@inceptionbg/iui 2.0.16 → 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.
- package/dist/index.d.ts +155 -89
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/iui.css +1 -1
- package/package.json +3 -5
- package/src/assets/icons/duotone/faBell.ts +17 -0
- package/src/assets/icons/duotone/faPen.ts +18 -0
- package/src/assets/icons/duotone/faTrashCan.ts +18 -0
- package/src/assets/icons/light/faBell.ts +15 -0
- package/src/assets/icons/light/faEnvelope.ts +15 -0
- package/src/assets/icons/regular/faEllipsisVertical.ts +15 -0
- package/src/assets/icons/solid/faEnvelopeDot.ts +15 -0
- package/src/components/Button/SplitButton.tsx +5 -5
- package/src/components/Header/Components/ModuleSelect.tsx +5 -5
- package/src/components/Header/Components/Notifications.tsx +208 -0
- package/src/components/Header/Header.tsx +5 -4
- package/src/components/Inputs/NumberInput.tsx +3 -0
- package/src/components/Inputs/Selects/components/SelectWrapper.tsx +48 -29
- package/src/components/Loader/ProgressBar.tsx +1 -1
- package/src/components/Pullover/Pullover.tsx +12 -7
- package/src/components/Table/Table.tsx +5 -3
- package/src/components/Table/components/columns/TableColumnsEdit.tsx +5 -9
- package/src/components/Table/components/edit/TableEditRow.tsx +23 -12
- package/src/components/Table/components/header/TableHeaderRow.tsx +1 -0
- package/src/components/Table/components/items/TableItemActions.tsx +18 -13
- package/src/components/Table/components/print/TablePrint.tsx +1 -5
- package/src/components/Table/components/templates/CreateTemplateDialog.tsx +48 -0
- package/src/components/Table/components/templates/TableTemplates.tsx +24 -4
- package/src/components/Table/contexts/TableContext.tsx +33 -24
- package/src/components/Table/hooks/localHooks/useLocalTableColumns.tsx +6 -4
- package/src/components/Table/hooks/localHooks/useLocalTableData.tsx +17 -11
- package/src/components/Table/hooks/localHooks/useLocalTableKeyboard.ts +8 -6
- package/src/components/Table/hooks/useTableColumns.ts +1 -3
- package/src/components/Table/hooks/useTableEdit.tsx +24 -2
- package/src/components/Table/hooks/useTablePrint.ts +12 -4
- package/src/components/Table/hooks/useTableSelect.ts +1 -1
- package/src/components/Tooltip/Tooltip.tsx +81 -14
- package/src/hooks/useIsMenuOpen.ts +3 -3
- package/src/hooks/usePopupControl.ts +9 -4
- package/src/index.ts +23 -4
- package/src/styles/App.scss +1 -0
- package/src/styles/components/_badge.scss +7 -0
- package/src/styles/components/_header.scss +14 -1
- package/src/styles/components/_notifications.scss +71 -0
- package/src/styles/components/_page.scss +1 -0
- package/src/styles/components/_pullover.scss +1 -1
- package/src/styles/components/_sidebar.scss +1 -3
- package/src/styles/components/_table.scss +96 -54
- package/src/types/IKeyboard.ts +0 -5
- package/src/types/IMenu.ts +2 -2
- package/src/types/INotifications.ts +15 -0
- package/src/types/IPopup.ts +2 -2
- package/src/types/ITable.ts +35 -32
- package/src/utils/i18n/i18nIUICyrilic.ts +12 -0
- package/src/utils/i18n/i18nIUILatin.ts +13 -0
- package/src/utils/i18n/i18nIUIMe.ts +12 -0
- package/src/utils/objectUtils.ts +19 -0
- package/src/utils/tableUtils.ts +1 -1
- package/idea/Notifications.tsx +0 -245
- package/idea/Table/Components/Columns/ColumnsList.tsx +0 -61
- package/idea/Table/Components/Columns/SetColumnsList.tsx +0 -113
package/dist/index.d.ts
CHANGED
|
@@ -79,12 +79,12 @@ interface IValueLabel {
|
|
|
79
79
|
label: string;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
interface
|
|
82
|
+
interface IPopupControlRef {
|
|
83
83
|
onOpen: () => void;
|
|
84
84
|
onClose: () => void;
|
|
85
85
|
}
|
|
86
86
|
interface ILocalPopupControl {
|
|
87
|
-
controlRef: RefObject<
|
|
87
|
+
controlRef: RefObject<IPopupControlRef | null>;
|
|
88
88
|
isOpen: boolean;
|
|
89
89
|
setIsOpen: (isOpen: boolean) => void;
|
|
90
90
|
}
|
|
@@ -97,23 +97,24 @@ interface IPopupControl {
|
|
|
97
97
|
interface ITable<T = unknown> {
|
|
98
98
|
id?: string;
|
|
99
99
|
columnData: ITableColumnsData;
|
|
100
|
-
data: ITableDataItem[];
|
|
101
|
-
dataActions?: ITableDataActions
|
|
100
|
+
data: ITableDataItem<T>[];
|
|
101
|
+
dataActions?: ITableDataActions<T>;
|
|
102
102
|
rowSelect?: {
|
|
103
103
|
selectedRows: Set<string>;
|
|
104
104
|
setSelectedRows: Dispatch<SetStateAction<Set<string>>>;
|
|
105
|
-
actions
|
|
105
|
+
actions?: ITableSelectedAction[];
|
|
106
106
|
};
|
|
107
107
|
filterData?: ITableFilterData;
|
|
108
108
|
sortData?: ITableSortData;
|
|
109
109
|
templateData?: ITableTemplateData;
|
|
110
110
|
printData?: IPrintData<T>;
|
|
111
|
-
sumRows?: ITableDataItem[];
|
|
112
|
-
editable?: ITableEdit
|
|
111
|
+
sumRows?: ITableDataItem<T>[];
|
|
112
|
+
editable?: ITableEdit<T>;
|
|
113
113
|
selectedRowUuid?: string;
|
|
114
|
+
itemDeleteData?: ITableItemDeleteData;
|
|
114
115
|
keyboard?: {
|
|
115
116
|
enabled: boolean;
|
|
116
|
-
actions
|
|
117
|
+
actions?: ITableKeyboardActionsBase;
|
|
117
118
|
};
|
|
118
119
|
headerWrap?: boolean;
|
|
119
120
|
customHeader?: ITableColumn[][];
|
|
@@ -136,14 +137,16 @@ interface ITableColumn {
|
|
|
136
137
|
label?: string | ReactElement;
|
|
137
138
|
labelForFilter?: string;
|
|
138
139
|
align?: 'center' | 'left' | 'right' | 'justify' | undefined;
|
|
139
|
-
hidden?: boolean;
|
|
140
140
|
unavailable?: boolean;
|
|
141
|
+
hidden?: boolean;
|
|
142
|
+
printHidden?: boolean;
|
|
141
143
|
width?: string;
|
|
142
144
|
minWidth?: string;
|
|
143
145
|
colSpan?: number;
|
|
144
146
|
rowSpan?: number;
|
|
145
147
|
break?: boolean;
|
|
146
148
|
color?: 'secondary';
|
|
149
|
+
sticky?: boolean;
|
|
147
150
|
sortOptions?: {
|
|
148
151
|
asc: string;
|
|
149
152
|
desc: string;
|
|
@@ -152,11 +155,11 @@ interface ITableColumn {
|
|
|
152
155
|
notFirstCell?: boolean;
|
|
153
156
|
className?: string;
|
|
154
157
|
}
|
|
155
|
-
interface ITableDataItem {
|
|
158
|
+
interface ITableDataItem<T = unknown> {
|
|
156
159
|
uuid: string;
|
|
157
160
|
onRowClick?: (event?: MouseEvent<HTMLTableRowElement>) => void;
|
|
158
161
|
className?: string;
|
|
159
|
-
item?:
|
|
162
|
+
item?: T;
|
|
160
163
|
disableSelect?: boolean;
|
|
161
164
|
cells: ITableDataItemCells;
|
|
162
165
|
extendable?: {
|
|
@@ -177,18 +180,13 @@ interface ITableDataItemCells {
|
|
|
177
180
|
printValue?: string;
|
|
178
181
|
};
|
|
179
182
|
}
|
|
180
|
-
interface ITableDataActions {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
};
|
|
184
|
-
delete?: {
|
|
185
|
-
onClick: (itemUuid: string) => void;
|
|
186
|
-
hasAccess: boolean;
|
|
187
|
-
};
|
|
188
|
-
actions?: {
|
|
183
|
+
interface ITableDataActions<T = unknown> {
|
|
184
|
+
hasEditAccess: boolean;
|
|
185
|
+
actions?: (item?: T) => {
|
|
189
186
|
label: string;
|
|
190
|
-
onClick: (
|
|
187
|
+
onClick: () => void;
|
|
191
188
|
hasAccess: boolean;
|
|
189
|
+
disabled?: boolean;
|
|
192
190
|
}[];
|
|
193
191
|
}
|
|
194
192
|
interface ITableFilterData {
|
|
@@ -235,19 +233,22 @@ interface ITableSelectedAction {
|
|
|
235
233
|
interface ITableTemplateData {
|
|
236
234
|
identifier: string;
|
|
237
235
|
popupController: IPopupControl;
|
|
236
|
+
defaultTemplate?: IReportTemplate;
|
|
238
237
|
items: IReportTemplate[];
|
|
239
238
|
isLoading?: boolean;
|
|
240
239
|
isFetching?: boolean;
|
|
241
240
|
setSearch?: (search: string) => void;
|
|
242
|
-
initiateCreate: () => void;
|
|
243
|
-
initiateCreateDefault: () => void;
|
|
244
241
|
setItemToDeleteUuids: (itemUuids: string[]) => void;
|
|
245
|
-
|
|
246
|
-
|
|
242
|
+
DeleteDialog: ReactNode;
|
|
243
|
+
createItem: {
|
|
244
|
+
allowPublicCreate?: boolean;
|
|
245
|
+
onCreate: (data: Partial<IReportTemplate>) => void;
|
|
246
|
+
onCreateDefault: () => void;
|
|
247
|
+
};
|
|
247
248
|
}
|
|
248
|
-
interface ITableEdit<T =
|
|
249
|
-
selectedItem: T | null;
|
|
250
|
-
setSelectedItem: (item: T | null) => void;
|
|
249
|
+
interface ITableEdit<T = unknown> {
|
|
250
|
+
selectedItem: ITableDataItem<T> | null;
|
|
251
|
+
setSelectedItem: (item: ITableDataItem<T> | null) => void;
|
|
251
252
|
editData: Partial<T>;
|
|
252
253
|
setEditData: Dispatch<SetStateAction<Partial<T>>>;
|
|
253
254
|
onSubmit: (data: T, onSubmitCallback: () => void) => void;
|
|
@@ -257,6 +258,12 @@ interface ITableEdit<T = any> {
|
|
|
257
258
|
addLabel?: string;
|
|
258
259
|
keepEditOnSubmit?: boolean;
|
|
259
260
|
}
|
|
261
|
+
interface ITableItemDeleteData {
|
|
262
|
+
hasAccess: boolean;
|
|
263
|
+
itemToDeleteUuids: string[];
|
|
264
|
+
setItemToDeleteUuids: Dispatch<SetStateAction<string[]>>;
|
|
265
|
+
DeleteDialog: ReactNode;
|
|
266
|
+
}
|
|
260
267
|
interface IBasePrintData {
|
|
261
268
|
label: string;
|
|
262
269
|
organization?: {
|
|
@@ -289,7 +296,6 @@ type IGetPrintData<T> = (props: {
|
|
|
289
296
|
interface IPrintData<T = unknown> extends IBasePrintData {
|
|
290
297
|
printPopupControl: IPopupControl;
|
|
291
298
|
customHeader?: ITableColumn[][];
|
|
292
|
-
excludeColumnIds?: string[];
|
|
293
299
|
isLoading?: boolean;
|
|
294
300
|
progress?: number;
|
|
295
301
|
tableData?: ITableDataItem[];
|
|
@@ -351,11 +357,6 @@ interface IKeyboardAction {
|
|
|
351
357
|
interface ITableKeyboardActionsBase {
|
|
352
358
|
moveDisabled?: boolean;
|
|
353
359
|
editDisabled?: boolean;
|
|
354
|
-
delete?: {
|
|
355
|
-
enabled: boolean;
|
|
356
|
-
setItemToDeleteUuids: (itemUuids: string[]) => void;
|
|
357
|
-
onAction?: () => void;
|
|
358
|
-
};
|
|
359
360
|
additional?: (props: {
|
|
360
361
|
focusedRow: ITableDataItem | null;
|
|
361
362
|
isEditing: boolean;
|
|
@@ -385,6 +386,37 @@ interface IError {
|
|
|
385
386
|
values?: Record<string, string>;
|
|
386
387
|
}
|
|
387
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
|
+
|
|
388
420
|
interface ISelectData extends IValueLabel {
|
|
389
421
|
disabled?: boolean;
|
|
390
422
|
[id: string]: any;
|
|
@@ -513,7 +545,7 @@ interface ISidebarSubItem {
|
|
|
513
545
|
collapsed?: boolean;
|
|
514
546
|
}
|
|
515
547
|
|
|
516
|
-
interface Props$
|
|
548
|
+
interface Props$n {
|
|
517
549
|
modules: {
|
|
518
550
|
name: string;
|
|
519
551
|
icon: IconDefinition;
|
|
@@ -525,15 +557,16 @@ interface Props$m {
|
|
|
525
557
|
icon: IconDefinition;
|
|
526
558
|
} | null;
|
|
527
559
|
}
|
|
528
|
-
declare const ModuleSelect: FC<Props$
|
|
560
|
+
declare const ModuleSelect: FC<Props$n>;
|
|
529
561
|
|
|
530
|
-
interface Props$
|
|
562
|
+
interface Props$m {
|
|
531
563
|
customTitle?: string;
|
|
532
564
|
modulesProps?: ComponentProps<typeof ModuleSelect>;
|
|
533
565
|
userMenuProps: IHeaderUserMenuProps;
|
|
566
|
+
notificationsProps?: INotificationsProps;
|
|
534
567
|
children?: ReactNode;
|
|
535
568
|
}
|
|
536
|
-
declare const Header: FC<Props$
|
|
569
|
+
declare const Header: FC<Props$m>;
|
|
537
570
|
|
|
538
571
|
type IOrgLogo = 'MTS' | 'PPL' | 'INC';
|
|
539
572
|
|
|
@@ -545,22 +578,22 @@ interface ISidebarProps {
|
|
|
545
578
|
}
|
|
546
579
|
declare const Sidebar: FC<ISidebarProps>;
|
|
547
580
|
|
|
548
|
-
interface Props$
|
|
581
|
+
interface Props$l {
|
|
549
582
|
fullScreenRoutes: IRoute[];
|
|
550
583
|
appRoutes: IRoute[];
|
|
551
584
|
header: ComponentProps<typeof Header>;
|
|
552
585
|
sidebar: ComponentProps<typeof Sidebar>;
|
|
553
586
|
}
|
|
554
|
-
declare const Router: FC<Props$
|
|
587
|
+
declare const Router: FC<Props$l>;
|
|
555
588
|
|
|
556
|
-
interface Props$
|
|
589
|
+
interface Props$k {
|
|
557
590
|
tabs: ITab[];
|
|
558
591
|
initialValue?: string;
|
|
559
592
|
compact?: boolean;
|
|
560
593
|
keepContentInDom?: boolean;
|
|
561
594
|
className?: string;
|
|
562
595
|
}
|
|
563
|
-
declare const Accordions: FC<Props$
|
|
596
|
+
declare const Accordions: FC<Props$k>;
|
|
564
597
|
|
|
565
598
|
type IInfoType = 'success' | 'info' | 'warning' | 'danger';
|
|
566
599
|
|
|
@@ -573,28 +606,28 @@ interface IAlertProps {
|
|
|
573
606
|
}
|
|
574
607
|
declare const Alert: FC<IAlertProps>;
|
|
575
608
|
|
|
576
|
-
interface Props$
|
|
609
|
+
interface Props$j {
|
|
577
610
|
label: string;
|
|
578
611
|
color: IInfoType | 'gray';
|
|
579
612
|
className?: string;
|
|
580
613
|
}
|
|
581
|
-
declare const DotBadge: FC<Props$
|
|
614
|
+
declare const DotBadge: FC<Props$j>;
|
|
582
615
|
|
|
583
|
-
interface Props$
|
|
616
|
+
interface Props$i {
|
|
584
617
|
number?: number;
|
|
585
618
|
className?: string;
|
|
586
619
|
size?: 's' | 'm';
|
|
587
620
|
children?: ReactNode;
|
|
588
621
|
color?: IInfoType | 'primary';
|
|
589
622
|
}
|
|
590
|
-
declare const NotificationBadge: FC<Props$
|
|
623
|
+
declare const NotificationBadge: FC<Props$i>;
|
|
591
624
|
|
|
592
|
-
interface Props$
|
|
625
|
+
interface Props$h {
|
|
593
626
|
label: string;
|
|
594
627
|
color: IInfoType | 'gray';
|
|
595
628
|
className?: string;
|
|
596
629
|
}
|
|
597
|
-
declare const PillBadge: FC<Props$
|
|
630
|
+
declare const PillBadge: FC<Props$h>;
|
|
598
631
|
|
|
599
632
|
interface IIconButtonProps {
|
|
600
633
|
icon: IconDefinition;
|
|
@@ -633,7 +666,7 @@ declare const Dashboard: FC<{
|
|
|
633
666
|
children: ReactNode;
|
|
634
667
|
}>;
|
|
635
668
|
|
|
636
|
-
interface Props$
|
|
669
|
+
interface Props$g {
|
|
637
670
|
title: string;
|
|
638
671
|
icon?: any;
|
|
639
672
|
type?: 'warning' | 'info';
|
|
@@ -641,16 +674,16 @@ interface Props$f {
|
|
|
641
674
|
isLoading?: boolean;
|
|
642
675
|
children: ReactNode;
|
|
643
676
|
}
|
|
644
|
-
declare const DashboardWidget: FC<Props$
|
|
677
|
+
declare const DashboardWidget: FC<Props$g>;
|
|
645
678
|
|
|
646
|
-
interface Props$
|
|
679
|
+
interface Props$f {
|
|
647
680
|
links: {
|
|
648
681
|
icon?: IconDefinition;
|
|
649
682
|
label: string;
|
|
650
683
|
onClick: () => void;
|
|
651
684
|
}[];
|
|
652
685
|
}
|
|
653
|
-
declare const FastLinksWidget: FC<Props$
|
|
686
|
+
declare const FastLinksWidget: FC<Props$f>;
|
|
654
687
|
|
|
655
688
|
interface IDialogFooterActions {
|
|
656
689
|
confirmButton?: {
|
|
@@ -680,7 +713,7 @@ interface IDialogFooterActions {
|
|
|
680
713
|
};
|
|
681
714
|
}
|
|
682
715
|
|
|
683
|
-
interface Props$
|
|
716
|
+
interface Props$e {
|
|
684
717
|
control: ILocalPopupControl;
|
|
685
718
|
title?: string;
|
|
686
719
|
titleEl?: ReactNode;
|
|
@@ -698,15 +731,15 @@ interface Props$d {
|
|
|
698
731
|
className?: string;
|
|
699
732
|
children?: ReactNode;
|
|
700
733
|
}
|
|
701
|
-
declare const Dialog: FC<Props$
|
|
734
|
+
declare const Dialog: FC<Props$e>;
|
|
702
735
|
|
|
703
|
-
interface Props$
|
|
736
|
+
interface Props$d {
|
|
704
737
|
isOpen: boolean;
|
|
705
738
|
children: ReactNode;
|
|
706
739
|
keepContentInDom?: boolean;
|
|
707
740
|
className?: string;
|
|
708
741
|
}
|
|
709
|
-
declare const Collapse: FC<Props$
|
|
742
|
+
declare const Collapse: FC<Props$d>;
|
|
710
743
|
|
|
711
744
|
interface ICheckboxProps {
|
|
712
745
|
label?: string;
|
|
@@ -800,6 +833,7 @@ interface INumberInputProps {
|
|
|
800
833
|
placeholder?: string;
|
|
801
834
|
endText?: string;
|
|
802
835
|
isClearable?: boolean;
|
|
836
|
+
onClear?: () => void;
|
|
803
837
|
helperText?: string;
|
|
804
838
|
errorText?: string;
|
|
805
839
|
error?: boolean;
|
|
@@ -844,7 +878,7 @@ interface IRadioProps {
|
|
|
844
878
|
}
|
|
845
879
|
declare const Radio: FC<IRadioProps>;
|
|
846
880
|
|
|
847
|
-
interface Props$
|
|
881
|
+
interface Props$c {
|
|
848
882
|
title?: string | ReactElement;
|
|
849
883
|
desc?: string | ReactElement;
|
|
850
884
|
value: string;
|
|
@@ -854,7 +888,7 @@ interface Props$b {
|
|
|
854
888
|
className?: string;
|
|
855
889
|
children?: ReactNode;
|
|
856
890
|
}
|
|
857
|
-
declare const RadioLarge: FC<Props$
|
|
891
|
+
declare const RadioLarge: FC<Props$c>;
|
|
858
892
|
|
|
859
893
|
interface IProps {
|
|
860
894
|
label?: string;
|
|
@@ -914,13 +948,13 @@ interface IListItem {
|
|
|
914
948
|
disabled?: boolean;
|
|
915
949
|
}
|
|
916
950
|
|
|
917
|
-
interface Props$
|
|
951
|
+
interface Props$b {
|
|
918
952
|
items?: IListItem[];
|
|
919
953
|
noItemsMessage?: string;
|
|
920
954
|
}
|
|
921
|
-
declare const List: FC<Props$
|
|
955
|
+
declare const List: FC<Props$b>;
|
|
922
956
|
|
|
923
|
-
interface Props$
|
|
957
|
+
interface Props$a {
|
|
924
958
|
isLoading: boolean;
|
|
925
959
|
isFullPage?: boolean;
|
|
926
960
|
classNameLoader?: string;
|
|
@@ -929,19 +963,19 @@ interface Props$9 {
|
|
|
929
963
|
children: ReactElement | ReactNode;
|
|
930
964
|
}>;
|
|
931
965
|
}
|
|
932
|
-
declare const Loader: FC<Props$
|
|
966
|
+
declare const Loader: FC<Props$a>;
|
|
933
967
|
declare const FullScreenLoader: FC<{
|
|
934
968
|
isLoading: boolean;
|
|
935
969
|
}>;
|
|
936
970
|
declare const LazyLoader: FC;
|
|
937
971
|
|
|
938
|
-
interface Props$
|
|
972
|
+
interface Props$9 {
|
|
939
973
|
progress?: number;
|
|
940
974
|
label?: string;
|
|
941
975
|
}
|
|
942
|
-
declare const ProgressBar: FC<Props$
|
|
976
|
+
declare const ProgressBar: FC<Props$9>;
|
|
943
977
|
|
|
944
|
-
interface Props$
|
|
978
|
+
interface Props$8 {
|
|
945
979
|
id?: string;
|
|
946
980
|
isOpen: boolean;
|
|
947
981
|
onClose: () => void;
|
|
@@ -952,11 +986,11 @@ interface Props$7 {
|
|
|
952
986
|
className?: string;
|
|
953
987
|
children?: ReactNode;
|
|
954
988
|
}
|
|
955
|
-
declare const Menu: FC<Props$
|
|
989
|
+
declare const Menu: FC<Props$8>;
|
|
956
990
|
|
|
957
991
|
declare const MenuItem: FC<IMenuItem>;
|
|
958
992
|
|
|
959
|
-
interface Props$
|
|
993
|
+
interface Props$7 {
|
|
960
994
|
tabs: ITab[];
|
|
961
995
|
initialValue?: string;
|
|
962
996
|
control?: {
|
|
@@ -968,10 +1002,10 @@ interface Props$6 {
|
|
|
968
1002
|
className?: string;
|
|
969
1003
|
classNameContent?: string;
|
|
970
1004
|
}
|
|
971
|
-
declare const Tabs: FC<Props$
|
|
1005
|
+
declare const Tabs: FC<Props$7>;
|
|
972
1006
|
|
|
973
1007
|
type TooltipPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
974
|
-
interface Props$
|
|
1008
|
+
interface Props$6 {
|
|
975
1009
|
label?: string;
|
|
976
1010
|
position?: TooltipPosition;
|
|
977
1011
|
disabled?: boolean;
|
|
@@ -980,21 +1014,21 @@ interface Props$5 {
|
|
|
980
1014
|
children: ReactElement;
|
|
981
1015
|
ref?: Ref<HTMLElement> | null;
|
|
982
1016
|
}
|
|
983
|
-
declare const Tooltip: FC<Props$
|
|
1017
|
+
declare const Tooltip: FC<Props$6>;
|
|
984
1018
|
|
|
985
|
-
interface Props$
|
|
1019
|
+
interface Props$5 {
|
|
986
1020
|
data: ITreeItem[];
|
|
987
1021
|
selectedItemUuid?: string;
|
|
988
1022
|
onClick: (itemUuid: string) => void;
|
|
989
1023
|
}
|
|
990
|
-
declare const Tree: FC<Props$
|
|
1024
|
+
declare const Tree: FC<Props$5>;
|
|
991
1025
|
|
|
992
|
-
interface Props$
|
|
1026
|
+
interface Props$4 {
|
|
993
1027
|
condition: boolean;
|
|
994
1028
|
wrapper: (children: ReactNode) => ReactNode;
|
|
995
1029
|
children: ReactNode;
|
|
996
1030
|
}
|
|
997
|
-
declare const ConditionalWrapper: FC<Props$
|
|
1031
|
+
declare const ConditionalWrapper: FC<Props$4>;
|
|
998
1032
|
|
|
999
1033
|
interface IPageLayoutProps {
|
|
1000
1034
|
breadcrumbs?: (string | undefined)[];
|
|
@@ -1015,7 +1049,7 @@ interface IPageLayoutProps {
|
|
|
1015
1049
|
}
|
|
1016
1050
|
declare const PageLayout: FC<IPageLayoutProps>;
|
|
1017
1051
|
|
|
1018
|
-
interface Props$
|
|
1052
|
+
interface Props$3 {
|
|
1019
1053
|
id?: string;
|
|
1020
1054
|
control: ILocalPopupControl;
|
|
1021
1055
|
header?: {
|
|
@@ -1034,16 +1068,20 @@ interface Props$2 {
|
|
|
1034
1068
|
portalTarget?: HTMLElement;
|
|
1035
1069
|
children: ReactNode;
|
|
1036
1070
|
}
|
|
1037
|
-
declare const Pullover: FC<Props$
|
|
1071
|
+
declare const Pullover: FC<Props$3>;
|
|
1072
|
+
|
|
1073
|
+
declare const Table: <T>(props: ITable<T>) => react_jsx_runtime.JSX.Element;
|
|
1038
1074
|
|
|
1039
|
-
|
|
1075
|
+
interface Props$2 {
|
|
1076
|
+
control: ILocalPopupControl;
|
|
1077
|
+
}
|
|
1078
|
+
declare const CreateTemplateDialog: FC<Props$2>;
|
|
1040
1079
|
|
|
1041
1080
|
interface ITableColumnsProps {
|
|
1042
1081
|
defaultColumns: ITableColumn[];
|
|
1043
|
-
templateColumns?: ITableColumn[];
|
|
1044
1082
|
enableEdit?: boolean;
|
|
1045
1083
|
}
|
|
1046
|
-
declare const useTableColumns: ({ defaultColumns,
|
|
1084
|
+
declare const useTableColumns: ({ defaultColumns, enableEdit, }: ITableColumnsProps) => ITableColumnsData;
|
|
1047
1085
|
|
|
1048
1086
|
interface BaseItemProps$1<T> {
|
|
1049
1087
|
id: keyof T;
|
|
@@ -1063,6 +1101,9 @@ declare const useTableEdit: <T extends Record<string, any>>() => {
|
|
|
1063
1101
|
textEditCell: ({ placeholder, required, id, additionalClearIds, }: BaseItemProps$1<T>) => {
|
|
1064
1102
|
value: react_jsx_runtime.JSX.Element;
|
|
1065
1103
|
};
|
|
1104
|
+
numberEditCell: ({ placeholder, required, id, additionalClearIds, }: BaseItemProps$1<T>) => {
|
|
1105
|
+
value: react_jsx_runtime.JSX.Element;
|
|
1106
|
+
};
|
|
1066
1107
|
dateEditCell: ({ id, required, additionalClearIds, }: Omit<BaseItemProps$1<T>, "placeholder">) => {
|
|
1067
1108
|
value: react_jsx_runtime.JSX.Element;
|
|
1068
1109
|
};
|
|
@@ -1124,9 +1165,10 @@ declare const useTablePagination: (defaultLimit?: number) => {
|
|
|
1124
1165
|
|
|
1125
1166
|
type Props<T> = {
|
|
1126
1167
|
getPrintData: IGetPrintData<T>;
|
|
1168
|
+
createTableData?: (data: T[]) => ITableDataItem<T>[];
|
|
1127
1169
|
totalRows?: number;
|
|
1128
1170
|
};
|
|
1129
|
-
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">;
|
|
1130
1172
|
|
|
1131
1173
|
interface ITableSearchProps<T> {
|
|
1132
1174
|
setOffset: Dispatch<SetStateAction<number>>;
|
|
@@ -1140,9 +1182,7 @@ declare const useTableSearch: <T>({ setOffset, resetSelectedRows, defaultSearch,
|
|
|
1140
1182
|
onSearch: (filters: T) => void;
|
|
1141
1183
|
};
|
|
1142
1184
|
|
|
1143
|
-
declare const useTableSelect: (
|
|
1144
|
-
actions: ITableSelectedAction[];
|
|
1145
|
-
}) => {
|
|
1185
|
+
declare const useTableSelect: (actions?: ITableSelectedAction[]) => {
|
|
1146
1186
|
selectedRows: Set<string>;
|
|
1147
1187
|
setSelectedRows: react.Dispatch<react.SetStateAction<Set<string>>>;
|
|
1148
1188
|
resetSelectedRows: () => void;
|
|
@@ -1322,6 +1362,14 @@ declare const i18nIUILatin: {
|
|
|
1322
1362
|
DeletedSuccessfully: string;
|
|
1323
1363
|
ErrorMessage: string;
|
|
1324
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;
|
|
1325
1373
|
ReturnToHomepage: string;
|
|
1326
1374
|
FooterText: string;
|
|
1327
1375
|
PageNotFound: string;
|
|
@@ -1402,6 +1450,14 @@ declare const i18nIUICyrilic: {
|
|
|
1402
1450
|
DeletedSuccessfully: string;
|
|
1403
1451
|
ErrorMessage: string;
|
|
1404
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;
|
|
1405
1461
|
ReturnToHomepage: string;
|
|
1406
1462
|
FooterText: string;
|
|
1407
1463
|
PageNotFound: string;
|
|
@@ -1482,6 +1538,14 @@ declare const i18nIUIMe: {
|
|
|
1482
1538
|
DeletedSuccessfully: string;
|
|
1483
1539
|
ErrorMessage: string;
|
|
1484
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;
|
|
1485
1549
|
ReturnToHomepage: string;
|
|
1486
1550
|
FooterText: string;
|
|
1487
1551
|
PageNotFound: string;
|
|
@@ -1503,12 +1567,14 @@ declare const useHideZendesk: () => void;
|
|
|
1503
1567
|
declare const useOnEsc: (onEsc: () => void, disabled?: boolean) => void;
|
|
1504
1568
|
|
|
1505
1569
|
declare const useIsMenuOpen: () => {
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1570
|
+
isOpen: boolean;
|
|
1571
|
+
onOpen: () => void;
|
|
1572
|
+
onClose: () => number;
|
|
1509
1573
|
};
|
|
1510
1574
|
|
|
1511
|
-
declare const usePopupControl: (
|
|
1575
|
+
declare const usePopupControl: (props?: {
|
|
1576
|
+
onCloseCallback?: () => void;
|
|
1577
|
+
}) => IPopupControl;
|
|
1512
1578
|
|
|
1513
|
-
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 };
|
|
1514
|
-
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 };
|