@inceptionbg/iui 2.0.16 → 2.0.19
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 +156 -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/light/faBell.ts +15 -0
- package/src/assets/icons/light/faEnvelope.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 +20 -30
- package/src/components/Loader/ProgressBar.tsx +1 -1
- package/src/components/Pullover/Pullover.tsx +44 -33
- 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 +14 -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/components/Wrappers/FormWrapper.tsx +1 -1
- 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/_accordions.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/ISelect.ts +1 -0
- 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;
|
|
@@ -424,6 +456,7 @@ interface AsyncSelectProps extends BaseSelectProps {
|
|
|
424
456
|
variant: 'async';
|
|
425
457
|
loadOptions: any;
|
|
426
458
|
defaultData?: ISelectData[];
|
|
459
|
+
refresh?: any[];
|
|
427
460
|
}
|
|
428
461
|
interface CreatableSelectProps extends BaseSelectProps {
|
|
429
462
|
variant: 'async-creatable';
|
|
@@ -513,7 +546,7 @@ interface ISidebarSubItem {
|
|
|
513
546
|
collapsed?: boolean;
|
|
514
547
|
}
|
|
515
548
|
|
|
516
|
-
interface Props$
|
|
549
|
+
interface Props$n {
|
|
517
550
|
modules: {
|
|
518
551
|
name: string;
|
|
519
552
|
icon: IconDefinition;
|
|
@@ -525,15 +558,16 @@ interface Props$m {
|
|
|
525
558
|
icon: IconDefinition;
|
|
526
559
|
} | null;
|
|
527
560
|
}
|
|
528
|
-
declare const ModuleSelect: FC<Props$
|
|
561
|
+
declare const ModuleSelect: FC<Props$n>;
|
|
529
562
|
|
|
530
|
-
interface Props$
|
|
563
|
+
interface Props$m {
|
|
531
564
|
customTitle?: string;
|
|
532
565
|
modulesProps?: ComponentProps<typeof ModuleSelect>;
|
|
533
566
|
userMenuProps: IHeaderUserMenuProps;
|
|
567
|
+
notificationsProps?: INotificationsProps;
|
|
534
568
|
children?: ReactNode;
|
|
535
569
|
}
|
|
536
|
-
declare const Header: FC<Props$
|
|
570
|
+
declare const Header: FC<Props$m>;
|
|
537
571
|
|
|
538
572
|
type IOrgLogo = 'MTS' | 'PPL' | 'INC';
|
|
539
573
|
|
|
@@ -545,22 +579,22 @@ interface ISidebarProps {
|
|
|
545
579
|
}
|
|
546
580
|
declare const Sidebar: FC<ISidebarProps>;
|
|
547
581
|
|
|
548
|
-
interface Props$
|
|
582
|
+
interface Props$l {
|
|
549
583
|
fullScreenRoutes: IRoute[];
|
|
550
584
|
appRoutes: IRoute[];
|
|
551
585
|
header: ComponentProps<typeof Header>;
|
|
552
586
|
sidebar: ComponentProps<typeof Sidebar>;
|
|
553
587
|
}
|
|
554
|
-
declare const Router: FC<Props$
|
|
588
|
+
declare const Router: FC<Props$l>;
|
|
555
589
|
|
|
556
|
-
interface Props$
|
|
590
|
+
interface Props$k {
|
|
557
591
|
tabs: ITab[];
|
|
558
592
|
initialValue?: string;
|
|
559
593
|
compact?: boolean;
|
|
560
594
|
keepContentInDom?: boolean;
|
|
561
595
|
className?: string;
|
|
562
596
|
}
|
|
563
|
-
declare const Accordions: FC<Props$
|
|
597
|
+
declare const Accordions: FC<Props$k>;
|
|
564
598
|
|
|
565
599
|
type IInfoType = 'success' | 'info' | 'warning' | 'danger';
|
|
566
600
|
|
|
@@ -573,28 +607,28 @@ interface IAlertProps {
|
|
|
573
607
|
}
|
|
574
608
|
declare const Alert: FC<IAlertProps>;
|
|
575
609
|
|
|
576
|
-
interface Props$
|
|
610
|
+
interface Props$j {
|
|
577
611
|
label: string;
|
|
578
612
|
color: IInfoType | 'gray';
|
|
579
613
|
className?: string;
|
|
580
614
|
}
|
|
581
|
-
declare const DotBadge: FC<Props$
|
|
615
|
+
declare const DotBadge: FC<Props$j>;
|
|
582
616
|
|
|
583
|
-
interface Props$
|
|
617
|
+
interface Props$i {
|
|
584
618
|
number?: number;
|
|
585
619
|
className?: string;
|
|
586
620
|
size?: 's' | 'm';
|
|
587
621
|
children?: ReactNode;
|
|
588
622
|
color?: IInfoType | 'primary';
|
|
589
623
|
}
|
|
590
|
-
declare const NotificationBadge: FC<Props$
|
|
624
|
+
declare const NotificationBadge: FC<Props$i>;
|
|
591
625
|
|
|
592
|
-
interface Props$
|
|
626
|
+
interface Props$h {
|
|
593
627
|
label: string;
|
|
594
628
|
color: IInfoType | 'gray';
|
|
595
629
|
className?: string;
|
|
596
630
|
}
|
|
597
|
-
declare const PillBadge: FC<Props$
|
|
631
|
+
declare const PillBadge: FC<Props$h>;
|
|
598
632
|
|
|
599
633
|
interface IIconButtonProps {
|
|
600
634
|
icon: IconDefinition;
|
|
@@ -633,7 +667,7 @@ declare const Dashboard: FC<{
|
|
|
633
667
|
children: ReactNode;
|
|
634
668
|
}>;
|
|
635
669
|
|
|
636
|
-
interface Props$
|
|
670
|
+
interface Props$g {
|
|
637
671
|
title: string;
|
|
638
672
|
icon?: any;
|
|
639
673
|
type?: 'warning' | 'info';
|
|
@@ -641,16 +675,16 @@ interface Props$f {
|
|
|
641
675
|
isLoading?: boolean;
|
|
642
676
|
children: ReactNode;
|
|
643
677
|
}
|
|
644
|
-
declare const DashboardWidget: FC<Props$
|
|
678
|
+
declare const DashboardWidget: FC<Props$g>;
|
|
645
679
|
|
|
646
|
-
interface Props$
|
|
680
|
+
interface Props$f {
|
|
647
681
|
links: {
|
|
648
682
|
icon?: IconDefinition;
|
|
649
683
|
label: string;
|
|
650
684
|
onClick: () => void;
|
|
651
685
|
}[];
|
|
652
686
|
}
|
|
653
|
-
declare const FastLinksWidget: FC<Props$
|
|
687
|
+
declare const FastLinksWidget: FC<Props$f>;
|
|
654
688
|
|
|
655
689
|
interface IDialogFooterActions {
|
|
656
690
|
confirmButton?: {
|
|
@@ -680,7 +714,7 @@ interface IDialogFooterActions {
|
|
|
680
714
|
};
|
|
681
715
|
}
|
|
682
716
|
|
|
683
|
-
interface Props$
|
|
717
|
+
interface Props$e {
|
|
684
718
|
control: ILocalPopupControl;
|
|
685
719
|
title?: string;
|
|
686
720
|
titleEl?: ReactNode;
|
|
@@ -698,15 +732,15 @@ interface Props$d {
|
|
|
698
732
|
className?: string;
|
|
699
733
|
children?: ReactNode;
|
|
700
734
|
}
|
|
701
|
-
declare const Dialog: FC<Props$
|
|
735
|
+
declare const Dialog: FC<Props$e>;
|
|
702
736
|
|
|
703
|
-
interface Props$
|
|
737
|
+
interface Props$d {
|
|
704
738
|
isOpen: boolean;
|
|
705
739
|
children: ReactNode;
|
|
706
740
|
keepContentInDom?: boolean;
|
|
707
741
|
className?: string;
|
|
708
742
|
}
|
|
709
|
-
declare const Collapse: FC<Props$
|
|
743
|
+
declare const Collapse: FC<Props$d>;
|
|
710
744
|
|
|
711
745
|
interface ICheckboxProps {
|
|
712
746
|
label?: string;
|
|
@@ -800,6 +834,7 @@ interface INumberInputProps {
|
|
|
800
834
|
placeholder?: string;
|
|
801
835
|
endText?: string;
|
|
802
836
|
isClearable?: boolean;
|
|
837
|
+
onClear?: () => void;
|
|
803
838
|
helperText?: string;
|
|
804
839
|
errorText?: string;
|
|
805
840
|
error?: boolean;
|
|
@@ -844,7 +879,7 @@ interface IRadioProps {
|
|
|
844
879
|
}
|
|
845
880
|
declare const Radio: FC<IRadioProps>;
|
|
846
881
|
|
|
847
|
-
interface Props$
|
|
882
|
+
interface Props$c {
|
|
848
883
|
title?: string | ReactElement;
|
|
849
884
|
desc?: string | ReactElement;
|
|
850
885
|
value: string;
|
|
@@ -854,7 +889,7 @@ interface Props$b {
|
|
|
854
889
|
className?: string;
|
|
855
890
|
children?: ReactNode;
|
|
856
891
|
}
|
|
857
|
-
declare const RadioLarge: FC<Props$
|
|
892
|
+
declare const RadioLarge: FC<Props$c>;
|
|
858
893
|
|
|
859
894
|
interface IProps {
|
|
860
895
|
label?: string;
|
|
@@ -914,13 +949,13 @@ interface IListItem {
|
|
|
914
949
|
disabled?: boolean;
|
|
915
950
|
}
|
|
916
951
|
|
|
917
|
-
interface Props$
|
|
952
|
+
interface Props$b {
|
|
918
953
|
items?: IListItem[];
|
|
919
954
|
noItemsMessage?: string;
|
|
920
955
|
}
|
|
921
|
-
declare const List: FC<Props$
|
|
956
|
+
declare const List: FC<Props$b>;
|
|
922
957
|
|
|
923
|
-
interface Props$
|
|
958
|
+
interface Props$a {
|
|
924
959
|
isLoading: boolean;
|
|
925
960
|
isFullPage?: boolean;
|
|
926
961
|
classNameLoader?: string;
|
|
@@ -929,19 +964,19 @@ interface Props$9 {
|
|
|
929
964
|
children: ReactElement | ReactNode;
|
|
930
965
|
}>;
|
|
931
966
|
}
|
|
932
|
-
declare const Loader: FC<Props$
|
|
967
|
+
declare const Loader: FC<Props$a>;
|
|
933
968
|
declare const FullScreenLoader: FC<{
|
|
934
969
|
isLoading: boolean;
|
|
935
970
|
}>;
|
|
936
971
|
declare const LazyLoader: FC;
|
|
937
972
|
|
|
938
|
-
interface Props$
|
|
973
|
+
interface Props$9 {
|
|
939
974
|
progress?: number;
|
|
940
975
|
label?: string;
|
|
941
976
|
}
|
|
942
|
-
declare const ProgressBar: FC<Props$
|
|
977
|
+
declare const ProgressBar: FC<Props$9>;
|
|
943
978
|
|
|
944
|
-
interface Props$
|
|
979
|
+
interface Props$8 {
|
|
945
980
|
id?: string;
|
|
946
981
|
isOpen: boolean;
|
|
947
982
|
onClose: () => void;
|
|
@@ -952,11 +987,11 @@ interface Props$7 {
|
|
|
952
987
|
className?: string;
|
|
953
988
|
children?: ReactNode;
|
|
954
989
|
}
|
|
955
|
-
declare const Menu: FC<Props$
|
|
990
|
+
declare const Menu: FC<Props$8>;
|
|
956
991
|
|
|
957
992
|
declare const MenuItem: FC<IMenuItem>;
|
|
958
993
|
|
|
959
|
-
interface Props$
|
|
994
|
+
interface Props$7 {
|
|
960
995
|
tabs: ITab[];
|
|
961
996
|
initialValue?: string;
|
|
962
997
|
control?: {
|
|
@@ -968,10 +1003,10 @@ interface Props$6 {
|
|
|
968
1003
|
className?: string;
|
|
969
1004
|
classNameContent?: string;
|
|
970
1005
|
}
|
|
971
|
-
declare const Tabs: FC<Props$
|
|
1006
|
+
declare const Tabs: FC<Props$7>;
|
|
972
1007
|
|
|
973
1008
|
type TooltipPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
974
|
-
interface Props$
|
|
1009
|
+
interface Props$6 {
|
|
975
1010
|
label?: string;
|
|
976
1011
|
position?: TooltipPosition;
|
|
977
1012
|
disabled?: boolean;
|
|
@@ -980,21 +1015,21 @@ interface Props$5 {
|
|
|
980
1015
|
children: ReactElement;
|
|
981
1016
|
ref?: Ref<HTMLElement> | null;
|
|
982
1017
|
}
|
|
983
|
-
declare const Tooltip: FC<Props$
|
|
1018
|
+
declare const Tooltip: FC<Props$6>;
|
|
984
1019
|
|
|
985
|
-
interface Props$
|
|
1020
|
+
interface Props$5 {
|
|
986
1021
|
data: ITreeItem[];
|
|
987
1022
|
selectedItemUuid?: string;
|
|
988
1023
|
onClick: (itemUuid: string) => void;
|
|
989
1024
|
}
|
|
990
|
-
declare const Tree: FC<Props$
|
|
1025
|
+
declare const Tree: FC<Props$5>;
|
|
991
1026
|
|
|
992
|
-
interface Props$
|
|
1027
|
+
interface Props$4 {
|
|
993
1028
|
condition: boolean;
|
|
994
1029
|
wrapper: (children: ReactNode) => ReactNode;
|
|
995
1030
|
children: ReactNode;
|
|
996
1031
|
}
|
|
997
|
-
declare const ConditionalWrapper: FC<Props$
|
|
1032
|
+
declare const ConditionalWrapper: FC<Props$4>;
|
|
998
1033
|
|
|
999
1034
|
interface IPageLayoutProps {
|
|
1000
1035
|
breadcrumbs?: (string | undefined)[];
|
|
@@ -1015,7 +1050,7 @@ interface IPageLayoutProps {
|
|
|
1015
1050
|
}
|
|
1016
1051
|
declare const PageLayout: FC<IPageLayoutProps>;
|
|
1017
1052
|
|
|
1018
|
-
interface Props$
|
|
1053
|
+
interface Props$3 {
|
|
1019
1054
|
id?: string;
|
|
1020
1055
|
control: ILocalPopupControl;
|
|
1021
1056
|
header?: {
|
|
@@ -1034,16 +1069,20 @@ interface Props$2 {
|
|
|
1034
1069
|
portalTarget?: HTMLElement;
|
|
1035
1070
|
children: ReactNode;
|
|
1036
1071
|
}
|
|
1037
|
-
declare const Pullover: FC<Props$
|
|
1072
|
+
declare const Pullover: FC<Props$3>;
|
|
1073
|
+
|
|
1074
|
+
declare const Table: <T>(props: ITable<T>) => react_jsx_runtime.JSX.Element;
|
|
1038
1075
|
|
|
1039
|
-
|
|
1076
|
+
interface Props$2 {
|
|
1077
|
+
control: ILocalPopupControl;
|
|
1078
|
+
}
|
|
1079
|
+
declare const CreateTemplateDialog: FC<Props$2>;
|
|
1040
1080
|
|
|
1041
1081
|
interface ITableColumnsProps {
|
|
1042
1082
|
defaultColumns: ITableColumn[];
|
|
1043
|
-
templateColumns?: ITableColumn[];
|
|
1044
1083
|
enableEdit?: boolean;
|
|
1045
1084
|
}
|
|
1046
|
-
declare const useTableColumns: ({ defaultColumns,
|
|
1085
|
+
declare const useTableColumns: ({ defaultColumns, enableEdit, }: ITableColumnsProps) => ITableColumnsData;
|
|
1047
1086
|
|
|
1048
1087
|
interface BaseItemProps$1<T> {
|
|
1049
1088
|
id: keyof T;
|
|
@@ -1063,6 +1102,9 @@ declare const useTableEdit: <T extends Record<string, any>>() => {
|
|
|
1063
1102
|
textEditCell: ({ placeholder, required, id, additionalClearIds, }: BaseItemProps$1<T>) => {
|
|
1064
1103
|
value: react_jsx_runtime.JSX.Element;
|
|
1065
1104
|
};
|
|
1105
|
+
numberEditCell: ({ placeholder, required, id, additionalClearIds, }: BaseItemProps$1<T>) => {
|
|
1106
|
+
value: react_jsx_runtime.JSX.Element;
|
|
1107
|
+
};
|
|
1066
1108
|
dateEditCell: ({ id, required, additionalClearIds, }: Omit<BaseItemProps$1<T>, "placeholder">) => {
|
|
1067
1109
|
value: react_jsx_runtime.JSX.Element;
|
|
1068
1110
|
};
|
|
@@ -1124,9 +1166,10 @@ declare const useTablePagination: (defaultLimit?: number) => {
|
|
|
1124
1166
|
|
|
1125
1167
|
type Props<T> = {
|
|
1126
1168
|
getPrintData: IGetPrintData<T>;
|
|
1169
|
+
createTableData?: (data: T[]) => ITableDataItem<T>[];
|
|
1127
1170
|
totalRows?: number;
|
|
1128
1171
|
};
|
|
1129
|
-
declare const useTablePrint: <T>({ getPrintData, totalRows: initialTotalRows, }: Props<T>) => Pick<IPrintData<T>, "isLoading" | "progress" | "items" | "printPopupControl">;
|
|
1172
|
+
declare const useTablePrint: <T>({ getPrintData, createTableData, totalRows: initialTotalRows, }: Props<T>) => Pick<IPrintData<T>, "isLoading" | "progress" | "items" | "tableData" | "printPopupControl">;
|
|
1130
1173
|
|
|
1131
1174
|
interface ITableSearchProps<T> {
|
|
1132
1175
|
setOffset: Dispatch<SetStateAction<number>>;
|
|
@@ -1140,9 +1183,7 @@ declare const useTableSearch: <T>({ setOffset, resetSelectedRows, defaultSearch,
|
|
|
1140
1183
|
onSearch: (filters: T) => void;
|
|
1141
1184
|
};
|
|
1142
1185
|
|
|
1143
|
-
declare const useTableSelect: (
|
|
1144
|
-
actions: ITableSelectedAction[];
|
|
1145
|
-
}) => {
|
|
1186
|
+
declare const useTableSelect: (actions?: ITableSelectedAction[]) => {
|
|
1146
1187
|
selectedRows: Set<string>;
|
|
1147
1188
|
setSelectedRows: react.Dispatch<react.SetStateAction<Set<string>>>;
|
|
1148
1189
|
resetSelectedRows: () => void;
|
|
@@ -1322,6 +1363,14 @@ declare const i18nIUILatin: {
|
|
|
1322
1363
|
DeletedSuccessfully: string;
|
|
1323
1364
|
ErrorMessage: string;
|
|
1324
1365
|
TryAgain: string;
|
|
1366
|
+
InApp: string;
|
|
1367
|
+
MarkAllAsRead: string;
|
|
1368
|
+
NoNewNotifications: string;
|
|
1369
|
+
Notifications: string;
|
|
1370
|
+
NotificationsAll: string;
|
|
1371
|
+
NotificationsUnread: string;
|
|
1372
|
+
NotificationsRead: string;
|
|
1373
|
+
NotificationSound: string;
|
|
1325
1374
|
ReturnToHomepage: string;
|
|
1326
1375
|
FooterText: string;
|
|
1327
1376
|
PageNotFound: string;
|
|
@@ -1402,6 +1451,14 @@ declare const i18nIUICyrilic: {
|
|
|
1402
1451
|
DeletedSuccessfully: string;
|
|
1403
1452
|
ErrorMessage: string;
|
|
1404
1453
|
TryAgain: string;
|
|
1454
|
+
InApp: string;
|
|
1455
|
+
MarkAllAsRead: string;
|
|
1456
|
+
NoNewNotifications: string;
|
|
1457
|
+
Notifications: string;
|
|
1458
|
+
NotificationsAll: string;
|
|
1459
|
+
NotificationsUnread: string;
|
|
1460
|
+
NotificationsRead: string;
|
|
1461
|
+
NotificationSound: string;
|
|
1405
1462
|
ReturnToHomepage: string;
|
|
1406
1463
|
FooterText: string;
|
|
1407
1464
|
PageNotFound: string;
|
|
@@ -1482,6 +1539,14 @@ declare const i18nIUIMe: {
|
|
|
1482
1539
|
DeletedSuccessfully: string;
|
|
1483
1540
|
ErrorMessage: string;
|
|
1484
1541
|
TryAgain: string;
|
|
1542
|
+
InApp: string;
|
|
1543
|
+
MarkAllAsRead: string;
|
|
1544
|
+
NoNewNotifications: string;
|
|
1545
|
+
Notifications: string;
|
|
1546
|
+
NotificationsAll: string;
|
|
1547
|
+
NotificationsUnread: string;
|
|
1548
|
+
NotificationsRead: string;
|
|
1549
|
+
NotificationSound: string;
|
|
1485
1550
|
ReturnToHomepage: string;
|
|
1486
1551
|
FooterText: string;
|
|
1487
1552
|
PageNotFound: string;
|
|
@@ -1503,12 +1568,14 @@ declare const useHideZendesk: () => void;
|
|
|
1503
1568
|
declare const useOnEsc: (onEsc: () => void, disabled?: boolean) => void;
|
|
1504
1569
|
|
|
1505
1570
|
declare const useIsMenuOpen: () => {
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1571
|
+
isOpen: boolean;
|
|
1572
|
+
onOpen: () => void;
|
|
1573
|
+
onClose: () => number;
|
|
1509
1574
|
};
|
|
1510
1575
|
|
|
1511
|
-
declare const usePopupControl: (
|
|
1576
|
+
declare const usePopupControl: (props?: {
|
|
1577
|
+
onCloseCallback?: () => void;
|
|
1578
|
+
}) => IPopupControl;
|
|
1512
1579
|
|
|
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 };
|
|
1580
|
+
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 };
|
|
1581
|
+
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 };
|