@inceptionbg/iui 2.0.15 → 2.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.
Files changed (76) hide show
  1. package/dist/NoAccessPage-BmizYfw0.js +2 -0
  2. package/dist/{NoAccessPage-DBq5IzIf.js.map → NoAccessPage-BmizYfw0.js.map} +1 -1
  3. package/dist/NotFoundPage-Cv544vAr.js +2 -0
  4. package/dist/{NotFoundPage-DM-I96ar.js.map → NotFoundPage-Cv544vAr.js.map} +1 -1
  5. package/dist/index.d.ts +160 -91
  6. package/dist/index.js +1 -1
  7. package/dist/index.js.map +1 -1
  8. package/dist/iui.css +1 -1
  9. package/package.json +4 -7
  10. package/src/assets/icons/duotone/faBell.ts +17 -0
  11. package/src/assets/icons/duotone/faPen.ts +18 -0
  12. package/src/assets/icons/duotone/faTrashCan.ts +18 -0
  13. package/src/assets/icons/light/faBell.ts +15 -0
  14. package/src/assets/icons/light/faEnvelope.ts +15 -0
  15. package/src/assets/icons/regular/faEllipsisVertical.ts +15 -0
  16. package/src/assets/icons/solid/faEnvelopeDot.ts +15 -0
  17. package/src/components/Button/SplitButton.tsx +5 -5
  18. package/src/components/Dialog/Dialog.tsx +3 -3
  19. package/src/components/Header/Components/ModuleSelect.tsx +5 -5
  20. package/src/components/Header/Components/Notifications.tsx +208 -0
  21. package/src/components/Header/Components/UserMenu.tsx +15 -14
  22. package/src/components/Header/Header.tsx +5 -4
  23. package/src/components/Inputs/NumberInput.tsx +3 -0
  24. package/src/components/Inputs/Selects/components/SelectWrapper.tsx +48 -29
  25. package/src/components/Inputs/TextInput.tsx +1 -0
  26. package/src/components/List/ListItem.tsx +1 -1
  27. package/src/components/Loader/ProgressBar.tsx +1 -1
  28. package/src/components/Menu/Menu.tsx +3 -0
  29. package/src/components/Pullover/Pullover.tsx +38 -39
  30. package/src/components/Table/Table.tsx +23 -32
  31. package/{idea/Table/Components/Columns → src/components/Table/components/columns}/ColumnsList.tsx +12 -14
  32. package/src/components/Table/components/columns/TableColumnsEdit.tsx +112 -0
  33. package/src/components/Table/components/edit/TableEditRow.tsx +26 -21
  34. package/src/components/Table/components/header/TableHeaderRow.tsx +2 -1
  35. package/src/components/Table/components/items/TableItemActions.tsx +18 -13
  36. package/src/components/Table/components/print/TablePrint.tsx +1 -5
  37. package/src/components/Table/components/templates/CreateTemplateDialog.tsx +48 -0
  38. package/src/components/Table/components/templates/TableTemplates.tsx +24 -4
  39. package/src/components/Table/contexts/TableContext.tsx +34 -33
  40. package/src/components/Table/hooks/localHooks/useLocalTableColumns.tsx +27 -28
  41. package/src/components/Table/hooks/localHooks/useLocalTableData.tsx +17 -11
  42. package/src/components/Table/hooks/localHooks/useLocalTableKeyboard.ts +8 -6
  43. package/src/components/Table/hooks/useTableColumns.ts +16 -10
  44. package/src/components/Table/hooks/useTableEdit.tsx +24 -2
  45. package/src/components/Table/hooks/useTablePrint.ts +12 -4
  46. package/src/components/Table/hooks/useTableSelect.ts +1 -1
  47. package/src/components/Tabs/Tabs.tsx +1 -0
  48. package/src/components/Tooltip/Tooltip.tsx +81 -14
  49. package/src/hooks/useIsMenuOpen.ts +3 -3
  50. package/src/hooks/usePopupControl.ts +9 -4
  51. package/src/index.ts +24 -5
  52. package/src/styles/App.scss +1 -0
  53. package/src/styles/components/_badge.scss +8 -1
  54. package/src/styles/components/_header.scss +18 -8
  55. package/src/styles/components/_list.scss +1 -1
  56. package/src/styles/components/_notifications.scss +71 -0
  57. package/src/styles/components/_page.scss +1 -0
  58. package/src/styles/components/_pullover.scss +1 -1
  59. package/src/styles/components/_sidebar.scss +1 -3
  60. package/src/styles/components/_table.scss +110 -57
  61. package/src/styles/variables/_variables.scss +9 -0
  62. package/src/types/IHeader.ts +1 -1
  63. package/src/types/IKeyboard.ts +0 -5
  64. package/src/types/IMenu.ts +2 -2
  65. package/src/types/INotifications.ts +15 -0
  66. package/src/types/IPopup.ts +2 -2
  67. package/src/types/ITable.ts +36 -32
  68. package/src/utils/i18n/i18nIUICyrilic.ts +12 -0
  69. package/src/utils/i18n/i18nIUILatin.ts +13 -0
  70. package/src/utils/i18n/i18nIUIMe.ts +12 -0
  71. package/src/utils/objectUtils.ts +19 -0
  72. package/src/utils/tableUtils.ts +1 -1
  73. package/dist/NoAccessPage-DBq5IzIf.js +0 -2
  74. package/dist/NotFoundPage-DM-I96ar.js +0 -2
  75. package/idea/Notifications.tsx +0 -245
  76. package/idea/Table/Components/Columns/SetColumnsList.tsx +0 -113
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ export { IconDefinition } from '@fortawesome/fontawesome-svg-core';
4
4
  export { default as clsx } from 'clsx';
5
5
  import dayjs from 'dayjs';
6
6
  export { default as dayjs } from 'dayjs';
7
- export { DragDropContext, Draggable, Droppable } from 'react-beautiful-dnd';
7
+ export { DragDropContext, Draggable, Droppable } from '@hello-pangea/dnd';
8
8
  import * as react_toastify from 'react-toastify';
9
9
  export { ToastContainer } from 'react-toastify';
10
10
  import * as react from 'react';
@@ -79,12 +79,12 @@ interface IValueLabel {
79
79
  label: string;
80
80
  }
81
81
 
82
- interface PopupControlRef {
82
+ interface IPopupControlRef {
83
83
  onOpen: () => void;
84
84
  onClose: () => void;
85
85
  }
86
86
  interface ILocalPopupControl {
87
- controlRef: RefObject<PopupControlRef | null>;
87
+ controlRef: RefObject<IPopupControlRef | null>;
88
88
  isOpen: boolean;
89
89
  setIsOpen: (isOpen: boolean) => void;
90
90
  }
@@ -95,24 +95,26 @@ interface IPopupControl {
95
95
  }
96
96
 
97
97
  interface ITable<T = unknown> {
98
+ id?: string;
98
99
  columnData: ITableColumnsData;
99
- data: ITableDataItem[];
100
- dataActions?: ITableDataActions;
100
+ data: ITableDataItem<T>[];
101
+ dataActions?: ITableDataActions<T>;
101
102
  rowSelect?: {
102
103
  selectedRows: Set<string>;
103
104
  setSelectedRows: Dispatch<SetStateAction<Set<string>>>;
104
- actions: ITableSelectedAction[];
105
+ actions?: ITableSelectedAction[];
105
106
  };
106
107
  filterData?: ITableFilterData;
107
108
  sortData?: ITableSortData;
108
109
  templateData?: ITableTemplateData;
109
110
  printData?: IPrintData<T>;
110
- sumRows?: ITableDataItem[];
111
- editable?: ITableEdit;
111
+ sumRows?: ITableDataItem<T>[];
112
+ editable?: ITableEdit<T>;
112
113
  selectedRowUuid?: string;
114
+ itemDeleteData?: ITableItemDeleteData;
113
115
  keyboard?: {
114
116
  enabled: boolean;
115
- actions: ITableKeyboardActionsBase;
117
+ actions?: ITableKeyboardActionsBase;
116
118
  };
117
119
  headerWrap?: boolean;
118
120
  customHeader?: ITableColumn[][];
@@ -135,14 +137,16 @@ interface ITableColumn {
135
137
  label?: string | ReactElement;
136
138
  labelForFilter?: string;
137
139
  align?: 'center' | 'left' | 'right' | 'justify' | undefined;
138
- hidden?: boolean;
139
140
  unavailable?: boolean;
141
+ hidden?: boolean;
142
+ printHidden?: boolean;
140
143
  width?: string;
141
144
  minWidth?: string;
142
145
  colSpan?: number;
143
146
  rowSpan?: number;
144
147
  break?: boolean;
145
148
  color?: 'secondary';
149
+ sticky?: boolean;
146
150
  sortOptions?: {
147
151
  asc: string;
148
152
  desc: string;
@@ -151,11 +155,11 @@ interface ITableColumn {
151
155
  notFirstCell?: boolean;
152
156
  className?: string;
153
157
  }
154
- interface ITableDataItem {
158
+ interface ITableDataItem<T = unknown> {
155
159
  uuid: string;
156
160
  onRowClick?: (event?: MouseEvent<HTMLTableRowElement>) => void;
157
161
  className?: string;
158
- item?: Record<string, any>;
162
+ item?: T;
159
163
  disableSelect?: boolean;
160
164
  cells: ITableDataItemCells;
161
165
  extendable?: {
@@ -176,18 +180,13 @@ interface ITableDataItemCells {
176
180
  printValue?: string;
177
181
  };
178
182
  }
179
- interface ITableDataActions {
180
- edit?: {
181
- hasAccess: boolean;
182
- };
183
- delete?: {
184
- onClick: (itemUuid: string) => void;
185
- hasAccess: boolean;
186
- };
187
- actions?: {
183
+ interface ITableDataActions<T = unknown> {
184
+ hasEditAccess: boolean;
185
+ actions?: (item?: T) => {
188
186
  label: string;
189
- onClick: (item: ITableDataItem) => void;
187
+ onClick: () => void;
190
188
  hasAccess: boolean;
189
+ disabled?: boolean;
191
190
  }[];
192
191
  }
193
192
  interface ITableFilterData {
@@ -234,19 +233,22 @@ interface ITableSelectedAction {
234
233
  interface ITableTemplateData {
235
234
  identifier: string;
236
235
  popupController: IPopupControl;
236
+ defaultTemplate?: IReportTemplate;
237
237
  items: IReportTemplate[];
238
238
  isLoading?: boolean;
239
239
  isFetching?: boolean;
240
240
  setSearch?: (search: string) => void;
241
- initiateCreate: () => void;
242
- initiateCreateDefault: () => void;
243
241
  setItemToDeleteUuids: (itemUuids: string[]) => void;
244
- allowPublicCreate?: boolean;
245
- TemplateNode: ReactNode;
242
+ DeleteDialog: ReactNode;
243
+ createItem: {
244
+ allowPublicCreate?: boolean;
245
+ onCreate: (data: Partial<IReportTemplate>) => void;
246
+ onCreateDefault: () => void;
247
+ };
246
248
  }
247
- interface ITableEdit<T = any> {
248
- selectedItem: T | null;
249
- setSelectedItem: (item: T | null) => void;
249
+ interface ITableEdit<T = unknown> {
250
+ selectedItem: ITableDataItem<T> | null;
251
+ setSelectedItem: (item: ITableDataItem<T> | null) => void;
250
252
  editData: Partial<T>;
251
253
  setEditData: Dispatch<SetStateAction<Partial<T>>>;
252
254
  onSubmit: (data: T, onSubmitCallback: () => void) => void;
@@ -256,6 +258,12 @@ interface ITableEdit<T = any> {
256
258
  addLabel?: string;
257
259
  keepEditOnSubmit?: boolean;
258
260
  }
261
+ interface ITableItemDeleteData {
262
+ hasAccess: boolean;
263
+ itemToDeleteUuids: string[];
264
+ setItemToDeleteUuids: Dispatch<SetStateAction<string[]>>;
265
+ DeleteDialog: ReactNode;
266
+ }
259
267
  interface IBasePrintData {
260
268
  label: string;
261
269
  organization?: {
@@ -288,7 +296,6 @@ type IGetPrintData<T> = (props: {
288
296
  interface IPrintData<T = unknown> extends IBasePrintData {
289
297
  printPopupControl: IPopupControl;
290
298
  customHeader?: ITableColumn[][];
291
- excludeColumnIds?: string[];
292
299
  isLoading?: boolean;
293
300
  progress?: number;
294
301
  tableData?: ITableDataItem[];
@@ -350,11 +357,6 @@ interface IKeyboardAction {
350
357
  interface ITableKeyboardActionsBase {
351
358
  moveDisabled?: boolean;
352
359
  editDisabled?: boolean;
353
- delete?: {
354
- enabled: boolean;
355
- setItemToDeleteUuids: (itemUuids: string[]) => void;
356
- onAction?: () => void;
357
- };
358
360
  additional?: (props: {
359
361
  focusedRow: ITableDataItem | null;
360
362
  isEditing: boolean;
@@ -384,6 +386,37 @@ interface IError {
384
386
  values?: Record<string, string>;
385
387
  }
386
388
 
389
+ interface INotification {
390
+ uuid: string;
391
+ type: INotificationType;
392
+ values?: {
393
+ key: string;
394
+ value: string;
395
+ url?: string;
396
+ format?: 'TRANSLATE' | 'DATE' | 'DATE_TIME';
397
+ }[];
398
+ seen: boolean;
399
+ event: string;
400
+ organization?: string;
401
+ createdAt: string;
402
+ }
403
+ type INotificationType = 'WEB' | 'EMAIL';
404
+
405
+ interface INotificationsProps {
406
+ notificationCount: number;
407
+ notifications: INotification[];
408
+ isLoading: boolean;
409
+ menuControl: {
410
+ isOpen: boolean;
411
+ onClose: () => void;
412
+ onOpen: () => void;
413
+ };
414
+ seen: boolean | null;
415
+ setSeen: Dispatch<SetStateAction<boolean | null>>;
416
+ markAsSeen: (uuid: string) => void;
417
+ markAllAsSeen: () => void;
418
+ }
419
+
387
420
  interface ISelectData extends IValueLabel {
388
421
  disabled?: boolean;
389
422
  [id: string]: any;
@@ -464,7 +497,7 @@ type IHeaderUserMenuProps = {
464
497
  userName?: string;
465
498
  organizationName?: string;
466
499
  menuItems: IMenuItem[];
467
- showBadge?: boolean;
500
+ inviteCount?: number;
468
501
  controls: {
469
502
  myAccountControl: IPopupControl;
470
503
  changeOrgControl: IPopupControl;
@@ -512,7 +545,7 @@ interface ISidebarSubItem {
512
545
  collapsed?: boolean;
513
546
  }
514
547
 
515
- interface Props$m {
548
+ interface Props$n {
516
549
  modules: {
517
550
  name: string;
518
551
  icon: IconDefinition;
@@ -524,15 +557,16 @@ interface Props$m {
524
557
  icon: IconDefinition;
525
558
  } | null;
526
559
  }
527
- declare const ModuleSelect: FC<Props$m>;
560
+ declare const ModuleSelect: FC<Props$n>;
528
561
 
529
- interface Props$l {
562
+ interface Props$m {
530
563
  customTitle?: string;
531
564
  modulesProps?: ComponentProps<typeof ModuleSelect>;
532
565
  userMenuProps: IHeaderUserMenuProps;
566
+ notificationsProps?: INotificationsProps;
533
567
  children?: ReactNode;
534
568
  }
535
- declare const Header: FC<Props$l>;
569
+ declare const Header: FC<Props$m>;
536
570
 
537
571
  type IOrgLogo = 'MTS' | 'PPL' | 'INC';
538
572
 
@@ -544,22 +578,22 @@ interface ISidebarProps {
544
578
  }
545
579
  declare const Sidebar: FC<ISidebarProps>;
546
580
 
547
- interface Props$k {
581
+ interface Props$l {
548
582
  fullScreenRoutes: IRoute[];
549
583
  appRoutes: IRoute[];
550
584
  header: ComponentProps<typeof Header>;
551
585
  sidebar: ComponentProps<typeof Sidebar>;
552
586
  }
553
- declare const Router: FC<Props$k>;
587
+ declare const Router: FC<Props$l>;
554
588
 
555
- interface Props$j {
589
+ interface Props$k {
556
590
  tabs: ITab[];
557
591
  initialValue?: string;
558
592
  compact?: boolean;
559
593
  keepContentInDom?: boolean;
560
594
  className?: string;
561
595
  }
562
- declare const Accordions: FC<Props$j>;
596
+ declare const Accordions: FC<Props$k>;
563
597
 
564
598
  type IInfoType = 'success' | 'info' | 'warning' | 'danger';
565
599
 
@@ -572,28 +606,28 @@ interface IAlertProps {
572
606
  }
573
607
  declare const Alert: FC<IAlertProps>;
574
608
 
575
- interface Props$i {
609
+ interface Props$j {
576
610
  label: string;
577
611
  color: IInfoType | 'gray';
578
612
  className?: string;
579
613
  }
580
- declare const DotBadge: FC<Props$i>;
614
+ declare const DotBadge: FC<Props$j>;
581
615
 
582
- interface Props$h {
616
+ interface Props$i {
583
617
  number?: number;
584
618
  className?: string;
585
619
  size?: 's' | 'm';
586
620
  children?: ReactNode;
587
621
  color?: IInfoType | 'primary';
588
622
  }
589
- declare const NotificationBadge: FC<Props$h>;
623
+ declare const NotificationBadge: FC<Props$i>;
590
624
 
591
- interface Props$g {
625
+ interface Props$h {
592
626
  label: string;
593
627
  color: IInfoType | 'gray';
594
628
  className?: string;
595
629
  }
596
- declare const PillBadge: FC<Props$g>;
630
+ declare const PillBadge: FC<Props$h>;
597
631
 
598
632
  interface IIconButtonProps {
599
633
  icon: IconDefinition;
@@ -632,7 +666,7 @@ declare const Dashboard: FC<{
632
666
  children: ReactNode;
633
667
  }>;
634
668
 
635
- interface Props$f {
669
+ interface Props$g {
636
670
  title: string;
637
671
  icon?: any;
638
672
  type?: 'warning' | 'info';
@@ -640,16 +674,16 @@ interface Props$f {
640
674
  isLoading?: boolean;
641
675
  children: ReactNode;
642
676
  }
643
- declare const DashboardWidget: FC<Props$f>;
677
+ declare const DashboardWidget: FC<Props$g>;
644
678
 
645
- interface Props$e {
679
+ interface Props$f {
646
680
  links: {
647
681
  icon?: IconDefinition;
648
682
  label: string;
649
683
  onClick: () => void;
650
684
  }[];
651
685
  }
652
- declare const FastLinksWidget: FC<Props$e>;
686
+ declare const FastLinksWidget: FC<Props$f>;
653
687
 
654
688
  interface IDialogFooterActions {
655
689
  confirmButton?: {
@@ -679,7 +713,7 @@ interface IDialogFooterActions {
679
713
  };
680
714
  }
681
715
 
682
- interface Props$d {
716
+ interface Props$e {
683
717
  control: ILocalPopupControl;
684
718
  title?: string;
685
719
  titleEl?: ReactNode;
@@ -697,15 +731,15 @@ interface Props$d {
697
731
  className?: string;
698
732
  children?: ReactNode;
699
733
  }
700
- declare const Dialog: FC<Props$d>;
734
+ declare const Dialog: FC<Props$e>;
701
735
 
702
- interface Props$c {
736
+ interface Props$d {
703
737
  isOpen: boolean;
704
738
  children: ReactNode;
705
739
  keepContentInDom?: boolean;
706
740
  className?: string;
707
741
  }
708
- declare const Collapse: FC<Props$c>;
742
+ declare const Collapse: FC<Props$d>;
709
743
 
710
744
  interface ICheckboxProps {
711
745
  label?: string;
@@ -799,6 +833,7 @@ interface INumberInputProps {
799
833
  placeholder?: string;
800
834
  endText?: string;
801
835
  isClearable?: boolean;
836
+ onClear?: () => void;
802
837
  helperText?: string;
803
838
  errorText?: string;
804
839
  error?: boolean;
@@ -843,7 +878,7 @@ interface IRadioProps {
843
878
  }
844
879
  declare const Radio: FC<IRadioProps>;
845
880
 
846
- interface Props$b {
881
+ interface Props$c {
847
882
  title?: string | ReactElement;
848
883
  desc?: string | ReactElement;
849
884
  value: string;
@@ -853,7 +888,7 @@ interface Props$b {
853
888
  className?: string;
854
889
  children?: ReactNode;
855
890
  }
856
- declare const RadioLarge: FC<Props$b>;
891
+ declare const RadioLarge: FC<Props$c>;
857
892
 
858
893
  interface IProps {
859
894
  label?: string;
@@ -913,13 +948,13 @@ interface IListItem {
913
948
  disabled?: boolean;
914
949
  }
915
950
 
916
- interface Props$a {
951
+ interface Props$b {
917
952
  items?: IListItem[];
918
953
  noItemsMessage?: string;
919
954
  }
920
- declare const List: FC<Props$a>;
955
+ declare const List: FC<Props$b>;
921
956
 
922
- interface Props$9 {
957
+ interface Props$a {
923
958
  isLoading: boolean;
924
959
  isFullPage?: boolean;
925
960
  classNameLoader?: string;
@@ -928,19 +963,20 @@ interface Props$9 {
928
963
  children: ReactElement | ReactNode;
929
964
  }>;
930
965
  }
931
- declare const Loader: FC<Props$9>;
966
+ declare const Loader: FC<Props$a>;
932
967
  declare const FullScreenLoader: FC<{
933
968
  isLoading: boolean;
934
969
  }>;
935
970
  declare const LazyLoader: FC;
936
971
 
937
- interface Props$8 {
972
+ interface Props$9 {
938
973
  progress?: number;
939
974
  label?: string;
940
975
  }
941
- declare const ProgressBar: FC<Props$8>;
976
+ declare const ProgressBar: FC<Props$9>;
942
977
 
943
- interface Props$7 {
978
+ interface Props$8 {
979
+ id?: string;
944
980
  isOpen: boolean;
945
981
  onClose: () => void;
946
982
  renderButton: (ref: RefObject<any>) => ReactNode;
@@ -950,11 +986,11 @@ interface Props$7 {
950
986
  className?: string;
951
987
  children?: ReactNode;
952
988
  }
953
- declare const Menu: FC<Props$7>;
989
+ declare const Menu: FC<Props$8>;
954
990
 
955
991
  declare const MenuItem: FC<IMenuItem>;
956
992
 
957
- interface Props$6 {
993
+ interface Props$7 {
958
994
  tabs: ITab[];
959
995
  initialValue?: string;
960
996
  control?: {
@@ -966,10 +1002,10 @@ interface Props$6 {
966
1002
  className?: string;
967
1003
  classNameContent?: string;
968
1004
  }
969
- declare const Tabs: FC<Props$6>;
1005
+ declare const Tabs: FC<Props$7>;
970
1006
 
971
1007
  type TooltipPosition = 'left' | 'right' | 'top' | 'bottom';
972
- interface Props$5 {
1008
+ interface Props$6 {
973
1009
  label?: string;
974
1010
  position?: TooltipPosition;
975
1011
  disabled?: boolean;
@@ -978,21 +1014,21 @@ interface Props$5 {
978
1014
  children: ReactElement;
979
1015
  ref?: Ref<HTMLElement> | null;
980
1016
  }
981
- declare const Tooltip: FC<Props$5>;
1017
+ declare const Tooltip: FC<Props$6>;
982
1018
 
983
- interface Props$4 {
1019
+ interface Props$5 {
984
1020
  data: ITreeItem[];
985
1021
  selectedItemUuid?: string;
986
1022
  onClick: (itemUuid: string) => void;
987
1023
  }
988
- declare const Tree: FC<Props$4>;
1024
+ declare const Tree: FC<Props$5>;
989
1025
 
990
- interface Props$3 {
1026
+ interface Props$4 {
991
1027
  condition: boolean;
992
1028
  wrapper: (children: ReactNode) => ReactNode;
993
1029
  children: ReactNode;
994
1030
  }
995
- declare const ConditionalWrapper: FC<Props$3>;
1031
+ declare const ConditionalWrapper: FC<Props$4>;
996
1032
 
997
1033
  interface IPageLayoutProps {
998
1034
  breadcrumbs?: (string | undefined)[];
@@ -1013,7 +1049,7 @@ interface IPageLayoutProps {
1013
1049
  }
1014
1050
  declare const PageLayout: FC<IPageLayoutProps>;
1015
1051
 
1016
- interface Props$2 {
1052
+ interface Props$3 {
1017
1053
  id?: string;
1018
1054
  control: ILocalPopupControl;
1019
1055
  header?: {
@@ -1032,15 +1068,20 @@ interface Props$2 {
1032
1068
  portalTarget?: HTMLElement;
1033
1069
  children: ReactNode;
1034
1070
  }
1035
- declare const Pullover: FC<Props$2>;
1071
+ declare const Pullover: FC<Props$3>;
1036
1072
 
1037
- declare const Table: FC<ITable>;
1073
+ declare const Table: <T>(props: ITable<T>) => react_jsx_runtime.JSX.Element;
1074
+
1075
+ interface Props$2 {
1076
+ control: ILocalPopupControl;
1077
+ }
1078
+ declare const CreateTemplateDialog: FC<Props$2>;
1038
1079
 
1039
1080
  interface ITableColumnsProps {
1040
1081
  defaultColumns: ITableColumn[];
1041
- templateColumns?: ITableColumn[];
1082
+ enableEdit?: boolean;
1042
1083
  }
1043
- declare const useTableColumns: ({ defaultColumns, templateColumns, }: ITableColumnsProps) => ITableColumnsData;
1084
+ declare const useTableColumns: ({ defaultColumns, enableEdit, }: ITableColumnsProps) => ITableColumnsData;
1044
1085
 
1045
1086
  interface BaseItemProps$1<T> {
1046
1087
  id: keyof T;
@@ -1060,6 +1101,9 @@ declare const useTableEdit: <T extends Record<string, any>>() => {
1060
1101
  textEditCell: ({ placeholder, required, id, additionalClearIds, }: BaseItemProps$1<T>) => {
1061
1102
  value: react_jsx_runtime.JSX.Element;
1062
1103
  };
1104
+ numberEditCell: ({ placeholder, required, id, additionalClearIds, }: BaseItemProps$1<T>) => {
1105
+ value: react_jsx_runtime.JSX.Element;
1106
+ };
1063
1107
  dateEditCell: ({ id, required, additionalClearIds, }: Omit<BaseItemProps$1<T>, "placeholder">) => {
1064
1108
  value: react_jsx_runtime.JSX.Element;
1065
1109
  };
@@ -1121,9 +1165,10 @@ declare const useTablePagination: (defaultLimit?: number) => {
1121
1165
 
1122
1166
  type Props<T> = {
1123
1167
  getPrintData: IGetPrintData<T>;
1168
+ createTableData?: (data: T[]) => ITableDataItem<T>[];
1124
1169
  totalRows?: number;
1125
1170
  };
1126
- declare const useTablePrint: <T>({ getPrintData, totalRows: initialTotalRows, }: Props<T>) => Pick<IPrintData<T>, "isLoading" | "progress" | "items" | "printPopupControl">;
1171
+ declare const useTablePrint: <T>({ getPrintData, createTableData, totalRows: initialTotalRows, }: Props<T>) => Pick<IPrintData<T>, "isLoading" | "progress" | "items" | "tableData" | "printPopupControl">;
1127
1172
 
1128
1173
  interface ITableSearchProps<T> {
1129
1174
  setOffset: Dispatch<SetStateAction<number>>;
@@ -1137,9 +1182,7 @@ declare const useTableSearch: <T>({ setOffset, resetSelectedRows, defaultSearch,
1137
1182
  onSearch: (filters: T) => void;
1138
1183
  };
1139
1184
 
1140
- declare const useTableSelect: ({ actions }: {
1141
- actions: ITableSelectedAction[];
1142
- }) => {
1185
+ declare const useTableSelect: (actions?: ITableSelectedAction[]) => {
1143
1186
  selectedRows: Set<string>;
1144
1187
  setSelectedRows: react.Dispatch<react.SetStateAction<Set<string>>>;
1145
1188
  resetSelectedRows: () => void;
@@ -1319,6 +1362,14 @@ declare const i18nIUILatin: {
1319
1362
  DeletedSuccessfully: string;
1320
1363
  ErrorMessage: string;
1321
1364
  TryAgain: string;
1365
+ InApp: string;
1366
+ MarkAllAsRead: string;
1367
+ NoNewNotifications: string;
1368
+ Notifications: string;
1369
+ NotificationsAll: string;
1370
+ NotificationsUnread: string;
1371
+ NotificationsRead: string;
1372
+ NotificationSound: string;
1322
1373
  ReturnToHomepage: string;
1323
1374
  FooterText: string;
1324
1375
  PageNotFound: string;
@@ -1399,6 +1450,14 @@ declare const i18nIUICyrilic: {
1399
1450
  DeletedSuccessfully: string;
1400
1451
  ErrorMessage: string;
1401
1452
  TryAgain: string;
1453
+ InApp: string;
1454
+ MarkAllAsRead: string;
1455
+ NoNewNotifications: string;
1456
+ Notifications: string;
1457
+ NotificationsAll: string;
1458
+ NotificationsUnread: string;
1459
+ NotificationsRead: string;
1460
+ NotificationSound: string;
1402
1461
  ReturnToHomepage: string;
1403
1462
  FooterText: string;
1404
1463
  PageNotFound: string;
@@ -1479,6 +1538,14 @@ declare const i18nIUIMe: {
1479
1538
  DeletedSuccessfully: string;
1480
1539
  ErrorMessage: string;
1481
1540
  TryAgain: string;
1541
+ InApp: string;
1542
+ MarkAllAsRead: string;
1543
+ NoNewNotifications: string;
1544
+ Notifications: string;
1545
+ NotificationsAll: string;
1546
+ NotificationsUnread: string;
1547
+ NotificationsRead: string;
1548
+ NotificationSound: string;
1482
1549
  ReturnToHomepage: string;
1483
1550
  FooterText: string;
1484
1551
  PageNotFound: string;
@@ -1500,12 +1567,14 @@ declare const useHideZendesk: () => void;
1500
1567
  declare const useOnEsc: (onEsc: () => void, disabled?: boolean) => void;
1501
1568
 
1502
1569
  declare const useIsMenuOpen: () => {
1503
- isMenuOpen: boolean;
1504
- onMenuOpen: () => void;
1505
- onMenuClose: () => number;
1570
+ isOpen: boolean;
1571
+ onOpen: () => void;
1572
+ onClose: () => number;
1506
1573
  };
1507
1574
 
1508
- declare const usePopupControl: () => IPopupControl;
1575
+ declare const usePopupControl: (props?: {
1576
+ onCloseCallback?: () => void;
1577
+ }) => IPopupControl;
1509
1578
 
1510
- export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, CurrencyInput, Dashboard, DashboardWidget, DateInput, Dialog, DotBadge, FastLinksWidget, FormWrapper, FullScreenLoader, IconButton, LazyLoader, List, Loader, Menu, MenuItem, NotificationBadge, NumberInput, PageLayout, PasswordInput, PillBadge, ProgressBar, Pullover, Radio, RadioLarge, Router, SearchInput, Select, SelectAsyncPaginate, SelectCreatable, SplitButton, Table, Tabs, TextAreaInput, TextInput, TimeInput, Tooltip, Tree, areStringArraysEqual, calculateFilesSize, checkIfExpired, compareArrayItemsIndex, convertArrayToBooleanObject, convertBooleanObjectToArray, convertReportTemplateFilterToSearch, convertSearchToReportTemplateFilter, dataURLtoFile, dateAddDays, deepCopy, deleteEmptyProps, deleteEmptyPropsIncludingArray, deleteProps, deletePropsThatEndsWith, downloadDocumentFile, downloadFile, formatCurrency, formatCurrencyNoDecimals, formatDate, formatDateAndTime, formatDateYMD, formatDecimalNumber, formatTime, formatYearMonth, getActiveFilterNumber, getActiveOrgUuid, getBase64FromFile, getBase64FromUrl, getCurrentDateFormatted, getCurrentDateFormattedYMD, getDaysLeft, getDefaultOrgUuid, getExtensionFromFilename, getFileFromUrl, getInputHelperText, getInputMinMaxPattern, getPrintColumns, getVisibleColumnsIds, i18nIUICyrilic, i18nIUILatin, i18nIUIMe, inputPattern, intersectArrays, lsGet, lsRemove, lsSet, maxChar, parseUrlSearch, rootDir, rotateBase64Image, setActiveOrgUuid, setDefaultOrgUuid, setTemplateData, sizeInBytesPretty, splitBase64File, tableCustomLimit1000, toastError, toastSuccess, useHideZendesk, useIsMenuOpen, useOnEsc, usePopupControl, useTableColumns, useTableEdit, useTableFilterFields, useTablePagination, useTablePrint, useTableSearch, useTableSelect, useTableSort };
1511
- export type { DeepPartial, IAlertProps, IAnyObject, IBooleanObject, IError, IFormWrapper, IGetPrintData, IHeaderAction, IHeaderUserMenuProps, IKeyboardAction, IMenuItem, IMenuPlacement, IPagination, IPaginationControl, IPopupControl, IReportTemplate, IReportTemplateData, IReportTemplateFilterValue, IRoute, ISelectData, ISidebarItem, ISimpleObject, ISimpleObjectWithCode, IStringObject, ITab, ITable, ITableColumn, ITableDataActions, ITableDataItem, ITableDataItemCells, ITableEdit, ITableFilter, ITableFilterData, ITableFilterItem, ITableSort, ITableTemplateData, ITreeItem, IValueLabel, PopupControlRef };
1579
+ export { Accordions, Alert, Button, Checkbox, Collapse, ConditionalWrapper, CreateTemplateDialog, CurrencyInput, Dashboard, DashboardWidget, DateInput, Dialog, DotBadge, FastLinksWidget, FormWrapper, FullScreenLoader, IconButton, LazyLoader, List, Loader, Menu, MenuItem, NotificationBadge, NumberInput, PageLayout, PasswordInput, PillBadge, ProgressBar, Pullover, Radio, RadioLarge, Router, SearchInput, Select, SelectAsyncPaginate, SelectCreatable, SplitButton, Table, Tabs, TextAreaInput, TextInput, TimeInput, Tooltip, Tree, areStringArraysEqual, calculateFilesSize, checkIfExpired, compareArrayItemsIndex, convertArrayToBooleanObject, convertBooleanObjectToArray, convertReportTemplateFilterToSearch, convertSearchToReportTemplateFilter, dataURLtoFile, dateAddDays, deepCopy, deleteEmptyProps, deleteEmptyPropsIncludingArray, deleteProps, deletePropsThatEndsWith, downloadDocumentFile, downloadFile, formatCurrency, formatCurrencyNoDecimals, formatDate, formatDateAndTime, formatDateYMD, formatDecimalNumber, formatTime, formatYearMonth, getActiveFilterNumber, getActiveOrgUuid, getBase64FromFile, getBase64FromUrl, getCurrentDateFormatted, getCurrentDateFormattedYMD, getDaysLeft, getDefaultOrgUuid, getExtensionFromFilename, getFileFromUrl, getInputHelperText, getInputMinMaxPattern, getPrintColumns, getVisibleColumnsIds, i18nIUICyrilic, i18nIUILatin, i18nIUIMe, inputPattern, intersectArrays, lsGet, lsRemove, lsSet, maxChar, parseUrlSearch, rootDir, rotateBase64Image, setActiveOrgUuid, setDefaultOrgUuid, setTemplateData, sizeInBytesPretty, splitBase64File, tableCustomLimit1000, toastError, toastSuccess, useHideZendesk, useIsMenuOpen, useOnEsc, usePopupControl, useTableColumns, useTableEdit, useTableFilterFields, useTablePagination, useTablePrint, useTableSearch, useTableSelect, useTableSort };
1580
+ export type { DeepPartial, IAlertProps, IAnyObject, IBooleanObject, IError, IFormWrapper, IGetPrintData, IHeaderAction, IHeaderUserMenuProps, IKeyboardAction, ILocalPopupControl, IMenuItem, IMenuPlacement, INotification, INotificationsProps, IPagination, IPaginationControl, IPopupControl, IPrintData, IReportTemplate, IReportTemplateData, IReportTemplateFilterValue, IRoute, ISelectData, ISidebarItem, ISimpleObject, ISimpleObjectWithCode, IStringObject, ITab, ITable, ITableColumn, ITableDataActions, ITableDataItem, ITableDataItemCells, ITableEdit, ITableFilter, ITableFilterData, ITableFilterItem, ITableItemDeleteData, ITableSearchProps, ITableSort, ITableTemplateData, ITreeItem, IValueLabel, IPopupControlRef as PopupControlRef };