cortex-react-ui 0.2.18 → 0.2.20
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/lib/cjs/BarLoader/BarLoader.d.ts +9 -9
- package/lib/cjs/BarLoader/index.d.ts +1 -1
- package/lib/cjs/Button/Button.d.ts +11 -11
- package/lib/cjs/Button/index.d.ts +1 -1
- package/lib/cjs/Camera/Camera.d.ts +20 -21
- package/lib/cjs/Camera/FileStorageDb.d.ts +9 -9
- package/lib/cjs/Camera/index.d.ts +1 -1
- package/lib/cjs/Camera/useTimer.d.ts +6 -6
- package/lib/cjs/DatePicker/DatePicker.d.ts +7 -7
- package/lib/cjs/DatePicker/index.d.ts +1 -1
- package/lib/cjs/Dialog/ConfirmDialog.d.ts +11 -11
- package/lib/cjs/Dialog/Dialog.d.ts +12 -12
- package/lib/cjs/Dialog/DialogActions.d.ts +7 -7
- package/lib/cjs/Dialog/DialogContent.d.ts +7 -7
- package/lib/cjs/Dialog/DialogFooter.d.ts +7 -7
- package/lib/cjs/Dialog/DialogHeader.d.ts +7 -7
- package/lib/cjs/Dialog/DialogTitle.d.ts +9 -9
- package/lib/cjs/Dialog/ErrorDialog.d.ts +10 -10
- package/lib/cjs/Dialog/WarningDialog.d.ts +10 -10
- package/lib/cjs/Dialog/index.d.ts +9 -9
- package/lib/cjs/DomContainer/DomContainer.d.ts +7 -7
- package/lib/cjs/DomContainer/index.d.ts +1 -1
- package/lib/cjs/Icons/ChevronDownIcon.d.ts +6 -6
- package/lib/cjs/Icons/ChevronLeftIcon.d.ts +6 -6
- package/lib/cjs/Icons/ChevronRightIcon.d.ts +6 -6
- package/lib/cjs/Icons/CrossIcon.d.ts +6 -6
- package/lib/cjs/Icons/index.d.ts +4 -4
- package/lib/cjs/Input/Input.d.ts +7 -7
- package/lib/cjs/Input/index.d.ts +1 -1
- package/lib/cjs/Map/Map.d.ts +16 -16
- package/lib/cjs/Map/components/CenterActiveAreaControl.d.ts +5 -5
- package/lib/cjs/Map/components/DrawTools.d.ts +18 -18
- package/lib/cjs/Map/components/LocationContext.d.ts +6 -7
- package/lib/cjs/Map/components/MapFullscreenControl.d.ts +22 -22
- package/lib/cjs/Map/components/Maps.d.ts +22 -22
- package/lib/cjs/Map/config/appConfig.d.ts +4 -4
- package/lib/cjs/Map/config/config.d.ts +6 -6
- package/lib/cjs/Map/hooks/getGeoJSONTest.d.ts +16 -16
- package/lib/cjs/Map/hooks/useLocationContext.d.ts +1 -1
- package/lib/cjs/Map/index.d.ts +1 -1
- package/lib/cjs/Map/models/index.d.ts +2 -2
- package/lib/cjs/Map/models/location.d.ts +6 -6
- package/lib/cjs/Map/models/locationSearch.d.ts +4 -4
- package/lib/cjs/Map/models/point.d.ts +6 -6
- package/lib/cjs/Map/utils/logger.d.ts +17 -17
- package/lib/cjs/Map/utils/toolkit.d.ts +129 -129
- package/lib/cjs/Menu/AuthDownloadLink.d.ts +14 -14
- package/lib/cjs/Menu/ContextMenu.d.ts +13 -13
- package/lib/cjs/Menu/Divider.d.ts +6 -6
- package/lib/cjs/Menu/Menu.d.ts +10 -10
- package/lib/cjs/Menu/MenuGroup.d.ts +8 -8
- package/lib/cjs/Menu/MenuItem.d.ts +14 -14
- package/lib/cjs/Menu/PopupMenu.d.ts +16 -16
- package/lib/cjs/Menu/index.d.ts +7 -7
- package/lib/cjs/Popper/Popper.d.ts +38 -38
- package/lib/cjs/Popper/index.d.ts +1 -1
- package/lib/cjs/Scanner/Dialog.d.ts +8 -8
- package/lib/cjs/Scanner/DialogBody.d.ts +3 -3
- package/lib/cjs/Scanner/DialogMask.d.ts +3 -3
- package/lib/cjs/Scanner/ScanConfirmationDialog.d.ts +18 -19
- package/lib/cjs/Scanner/Scanner.d.ts +11 -12
- package/lib/cjs/Scanner/index.d.ts +1 -1
- package/lib/cjs/Select/Select.d.ts +6 -6
- package/lib/cjs/Select/index.d.ts +1 -1
- package/lib/cjs/Selected/Selected.d.ts +8 -8
- package/lib/cjs/Selected/index.d.ts +1 -1
- package/lib/cjs/Spinner/Spinner.d.ts +7 -7
- package/lib/cjs/Spinner/index.d.ts +1 -1
- package/lib/cjs/TagInput/TagInput.d.ts +12 -12
- package/lib/cjs/TagInput/TagItem.d.ts +9 -9
- package/lib/cjs/TagInput/TagSearchInput.d.ts +9 -9
- package/lib/cjs/TagInput/TagSuggestion.d.ts +13 -13
- package/lib/cjs/TagInput/TagSuggestionGroup.d.ts +8 -8
- package/lib/cjs/TagInput/TagSuggestionItem.d.ts +8 -8
- package/lib/cjs/TagInput/index.d.ts +1 -1
- package/lib/cjs/TagInput/types.d.ts +14 -14
- package/lib/cjs/TextField/TextField.d.ts +6 -6
- package/lib/cjs/TextField/TextFieldInput.d.ts +10 -10
- package/lib/cjs/TextField/index.d.ts +1 -1
- package/lib/cjs/ToggleButton/ToggleButton.d.ts +11 -11
- package/lib/cjs/ToggleButton/index.d.ts +1 -1
- package/lib/cjs/Tooltip/Tooltip.d.ts +12 -12
- package/lib/cjs/Tooltip/index.d.ts +1 -1
- package/lib/cjs/Transition/CSSTransition.d.ts +17 -17
- package/lib/cjs/Transition/Fade.d.ts +13 -13
- package/lib/cjs/index.d.ts +23 -23
- package/lib/cjs/index.js +7 -28
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/utils/classNames.d.ts +1 -1
- package/lib/cjs/utils/forwardRef.d.ts +35 -35
- package/lib/cjs/utils/setRef.d.ts +9 -9
- package/lib/cjs/utils/useClickOutside.d.ts +2 -2
- package/lib/cjs/utils/useElement.d.ts +2 -2
- package/lib/cjs/utils/useForkRef.d.ts +10 -10
- package/lib/esm/BarLoader/BarLoader.d.ts +9 -9
- package/lib/esm/BarLoader/index.d.ts +1 -1
- package/lib/esm/Button/Button.d.ts +11 -11
- package/lib/esm/Button/index.d.ts +1 -1
- package/lib/esm/Camera/Camera.d.ts +20 -21
- package/lib/esm/Camera/FileStorageDb.d.ts +9 -9
- package/lib/esm/Camera/index.d.ts +1 -1
- package/lib/esm/Camera/useTimer.d.ts +6 -6
- package/lib/esm/DatePicker/DatePicker.d.ts +7 -7
- package/lib/esm/DatePicker/index.d.ts +1 -1
- package/lib/esm/Dialog/ConfirmDialog.d.ts +11 -11
- package/lib/esm/Dialog/Dialog.d.ts +12 -12
- package/lib/esm/Dialog/DialogActions.d.ts +7 -7
- package/lib/esm/Dialog/DialogContent.d.ts +7 -7
- package/lib/esm/Dialog/DialogFooter.d.ts +7 -7
- package/lib/esm/Dialog/DialogHeader.d.ts +7 -7
- package/lib/esm/Dialog/DialogTitle.d.ts +9 -9
- package/lib/esm/Dialog/ErrorDialog.d.ts +10 -10
- package/lib/esm/Dialog/WarningDialog.d.ts +10 -10
- package/lib/esm/Dialog/index.d.ts +9 -9
- package/lib/esm/DomContainer/DomContainer.d.ts +7 -7
- package/lib/esm/DomContainer/index.d.ts +1 -1
- package/lib/esm/Icons/ChevronDownIcon.d.ts +6 -6
- package/lib/esm/Icons/ChevronLeftIcon.d.ts +6 -6
- package/lib/esm/Icons/ChevronRightIcon.d.ts +6 -6
- package/lib/esm/Icons/CrossIcon.d.ts +6 -6
- package/lib/esm/Icons/index.d.ts +4 -4
- package/lib/esm/Input/Input.d.ts +7 -7
- package/lib/esm/Input/index.d.ts +1 -1
- package/lib/esm/Map/Map.d.ts +16 -16
- package/lib/esm/Map/components/CenterActiveAreaControl.d.ts +5 -5
- package/lib/esm/Map/components/DrawTools.d.ts +18 -18
- package/lib/esm/Map/components/LocationContext.d.ts +6 -7
- package/lib/esm/Map/components/MapFullscreenControl.d.ts +22 -22
- package/lib/esm/Map/components/Maps.d.ts +22 -22
- package/lib/esm/Map/config/appConfig.d.ts +4 -4
- package/lib/esm/Map/config/config.d.ts +6 -6
- package/lib/esm/Map/hooks/getGeoJSONTest.d.ts +16 -16
- package/lib/esm/Map/hooks/useLocationContext.d.ts +1 -1
- package/lib/esm/Map/index.d.ts +1 -1
- package/lib/esm/Map/models/index.d.ts +2 -2
- package/lib/esm/Map/models/location.d.ts +6 -6
- package/lib/esm/Map/models/locationSearch.d.ts +4 -4
- package/lib/esm/Map/models/point.d.ts +6 -6
- package/lib/esm/Map/utils/logger.d.ts +17 -17
- package/lib/esm/Map/utils/toolkit.d.ts +129 -129
- package/lib/esm/Menu/AuthDownloadLink.d.ts +14 -14
- package/lib/esm/Menu/ContextMenu.d.ts +13 -13
- package/lib/esm/Menu/Divider.d.ts +6 -6
- package/lib/esm/Menu/Menu.d.ts +10 -10
- package/lib/esm/Menu/MenuGroup.d.ts +8 -8
- package/lib/esm/Menu/MenuItem.d.ts +14 -14
- package/lib/esm/Menu/PopupMenu.d.ts +16 -16
- package/lib/esm/Menu/index.d.ts +7 -7
- package/lib/esm/Popper/Popper.d.ts +38 -38
- package/lib/esm/Popper/index.d.ts +1 -1
- package/lib/esm/Scanner/Dialog.d.ts +8 -8
- package/lib/esm/Scanner/DialogBody.d.ts +3 -3
- package/lib/esm/Scanner/DialogMask.d.ts +3 -3
- package/lib/esm/Scanner/ScanConfirmationDialog.d.ts +18 -19
- package/lib/esm/Scanner/Scanner.d.ts +11 -12
- package/lib/esm/Scanner/index.d.ts +1 -1
- package/lib/esm/Select/Select.d.ts +6 -6
- package/lib/esm/Select/index.d.ts +1 -1
- package/lib/esm/Selected/Selected.d.ts +8 -8
- package/lib/esm/Selected/index.d.ts +1 -1
- package/lib/esm/Spinner/Spinner.d.ts +7 -7
- package/lib/esm/Spinner/index.d.ts +1 -1
- package/lib/esm/TagInput/TagInput.d.ts +12 -12
- package/lib/esm/TagInput/TagItem.d.ts +9 -9
- package/lib/esm/TagInput/TagSearchInput.d.ts +9 -9
- package/lib/esm/TagInput/TagSuggestion.d.ts +13 -13
- package/lib/esm/TagInput/TagSuggestionGroup.d.ts +8 -8
- package/lib/esm/TagInput/TagSuggestionItem.d.ts +8 -8
- package/lib/esm/TagInput/index.d.ts +1 -1
- package/lib/esm/TagInput/types.d.ts +14 -14
- package/lib/esm/TextField/TextField.d.ts +6 -6
- package/lib/esm/TextField/TextFieldInput.d.ts +10 -10
- package/lib/esm/TextField/index.d.ts +1 -1
- package/lib/esm/ToggleButton/ToggleButton.d.ts +11 -11
- package/lib/esm/ToggleButton/index.d.ts +1 -1
- package/lib/esm/Tooltip/Tooltip.d.ts +12 -12
- package/lib/esm/Tooltip/index.d.ts +1 -1
- package/lib/esm/Transition/CSSTransition.d.ts +17 -17
- package/lib/esm/Transition/Fade.d.ts +13 -13
- package/lib/esm/index.d.ts +23 -23
- package/lib/esm/index.js +7 -28
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/utils/classNames.d.ts +1 -1
- package/lib/esm/utils/forwardRef.d.ts +35 -35
- package/lib/esm/utils/setRef.d.ts +9 -9
- package/lib/esm/utils/useClickOutside.d.ts +2 -2
- package/lib/esm/utils/useElement.d.ts +2 -2
- package/lib/esm/utils/useForkRef.d.ts +10 -10
- package/lib/index.d.ts +358 -358
- package/package.json +45 -48
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import * as React$1 from 'react';
|
|
3
2
|
import React__default, { CSSProperties } from 'react';
|
|
4
3
|
import { IDetectedBarcode, IScannerProps } from '@yudiel/react-qr-scanner';
|
|
@@ -6,442 +5,443 @@ import { WebcamProps } from 'react-webcam';
|
|
|
6
5
|
import { MapContainerProps } from 'react-leaflet';
|
|
7
6
|
import { ControlPosition, DrawEvents, LatLngTuple } from 'leaflet';
|
|
8
7
|
|
|
9
|
-
declare const PopperPlacement: {
|
|
10
|
-
readonly Center: "center";
|
|
11
|
-
readonly BottomCenter: "bottom-center";
|
|
12
|
-
readonly BottomRight: "bottom-right";
|
|
13
|
-
readonly BottomLeft: "bottom-left";
|
|
14
|
-
readonly TopCenter: "top-center";
|
|
15
|
-
readonly TopRight: "top-right";
|
|
16
|
-
readonly TopLeft: "top-left";
|
|
17
|
-
readonly LeftTop: "left-top";
|
|
18
|
-
readonly LeftBottom: "left-bottom";
|
|
19
|
-
readonly LeftCenter: "left-center";
|
|
20
|
-
readonly RightTop: "right-top";
|
|
21
|
-
readonly RightBottom: "right-bottom";
|
|
22
|
-
readonly RightCenter: "right-center";
|
|
23
|
-
};
|
|
24
|
-
type Props$5 = {
|
|
25
|
-
anchorEl?: string | HTMLElement | React__default.RefObject<HTMLElement>;
|
|
26
|
-
anchorPosition?: {
|
|
27
|
-
top: number;
|
|
28
|
-
left: number;
|
|
29
|
-
};
|
|
30
|
-
placement?: ObjectValues<typeof PopperPlacement>;
|
|
31
|
-
open?: boolean;
|
|
32
|
-
role?: string;
|
|
33
|
-
children?: React__default.ReactNode;
|
|
34
|
-
className?: string;
|
|
35
|
-
overflow?: boolean;
|
|
36
|
-
onMouseEnter?: React__default.MouseEventHandler<HTMLDivElement>;
|
|
37
|
-
onMouseLeave?: React__default.MouseEventHandler<HTMLDivElement>;
|
|
38
|
-
onMouseMove?: React__default.MouseEventHandler<HTMLDivElement>;
|
|
39
|
-
onMouseOut?: React__default.MouseEventHandler<HTMLDivElement>;
|
|
40
|
-
onMouseOver?: React__default.MouseEventHandler<HTMLDivElement>;
|
|
41
|
-
onTouchStart?: React__default.TouchEventHandler<HTMLDivElement>;
|
|
42
|
-
onTouchEnd?: React__default.TouchEventHandler<HTMLDivElement>;
|
|
43
|
-
};
|
|
8
|
+
declare const PopperPlacement: {
|
|
9
|
+
readonly Center: "center";
|
|
10
|
+
readonly BottomCenter: "bottom-center";
|
|
11
|
+
readonly BottomRight: "bottom-right";
|
|
12
|
+
readonly BottomLeft: "bottom-left";
|
|
13
|
+
readonly TopCenter: "top-center";
|
|
14
|
+
readonly TopRight: "top-right";
|
|
15
|
+
readonly TopLeft: "top-left";
|
|
16
|
+
readonly LeftTop: "left-top";
|
|
17
|
+
readonly LeftBottom: "left-bottom";
|
|
18
|
+
readonly LeftCenter: "left-center";
|
|
19
|
+
readonly RightTop: "right-top";
|
|
20
|
+
readonly RightBottom: "right-bottom";
|
|
21
|
+
readonly RightCenter: "right-center";
|
|
22
|
+
};
|
|
23
|
+
type Props$5 = {
|
|
24
|
+
anchorEl?: string | HTMLElement | React__default.RefObject<HTMLElement>;
|
|
25
|
+
anchorPosition?: {
|
|
26
|
+
top: number;
|
|
27
|
+
left: number;
|
|
28
|
+
};
|
|
29
|
+
placement?: ObjectValues<typeof PopperPlacement>;
|
|
30
|
+
open?: boolean;
|
|
31
|
+
role?: string;
|
|
32
|
+
children?: React__default.ReactNode;
|
|
33
|
+
className?: string;
|
|
34
|
+
overflow?: boolean;
|
|
35
|
+
onMouseEnter?: React__default.MouseEventHandler<HTMLDivElement>;
|
|
36
|
+
onMouseLeave?: React__default.MouseEventHandler<HTMLDivElement>;
|
|
37
|
+
onMouseMove?: React__default.MouseEventHandler<HTMLDivElement>;
|
|
38
|
+
onMouseOut?: React__default.MouseEventHandler<HTMLDivElement>;
|
|
39
|
+
onMouseOver?: React__default.MouseEventHandler<HTMLDivElement>;
|
|
40
|
+
onTouchStart?: React__default.TouchEventHandler<HTMLDivElement>;
|
|
41
|
+
onTouchEnd?: React__default.TouchEventHandler<HTMLDivElement>;
|
|
42
|
+
};
|
|
44
43
|
declare const Popper: React__default.ForwardRefExoticComponent<Props$5 & React__default.RefAttributes<HTMLElement>>;
|
|
45
44
|
|
|
46
|
-
type Props$4 = {
|
|
47
|
-
children?: React__default.ReactNode;
|
|
48
|
-
container?: HTMLElement | (() => HTMLElement);
|
|
49
|
-
};
|
|
45
|
+
type Props$4 = {
|
|
46
|
+
children?: React__default.ReactNode;
|
|
47
|
+
container?: HTMLElement | (() => HTMLElement);
|
|
48
|
+
};
|
|
50
49
|
declare const DomContainer: React__default.ForwardRefExoticComponent<Props$4 & React__default.RefAttributes<HTMLElement>>;
|
|
51
50
|
|
|
52
|
-
interface SpinnerProps {
|
|
53
|
-
className?: string;
|
|
54
|
-
variant?: 'indeterminate' | 'determinate';
|
|
55
|
-
}
|
|
51
|
+
interface SpinnerProps {
|
|
52
|
+
className?: string;
|
|
53
|
+
variant?: 'indeterminate' | 'determinate';
|
|
54
|
+
}
|
|
56
55
|
declare const Spinner: React__default.FC<SpinnerProps>;
|
|
57
56
|
|
|
58
|
-
interface BarLoaderProps {
|
|
59
|
-
title?: string;
|
|
60
|
-
color?: 'red' | 'blue' | 'yellow' | 'orange' | 'green';
|
|
61
|
-
className?: string;
|
|
62
|
-
isComplete: boolean;
|
|
63
|
-
}
|
|
57
|
+
interface BarLoaderProps {
|
|
58
|
+
title?: string;
|
|
59
|
+
color?: 'red' | 'blue' | 'yellow' | 'orange' | 'green';
|
|
60
|
+
className?: string;
|
|
61
|
+
isComplete: boolean;
|
|
62
|
+
}
|
|
64
63
|
declare const BarLoader: React__default.FC<BarLoaderProps>;
|
|
65
64
|
|
|
66
|
-
interface SelectedProps {
|
|
67
|
-
title?: string;
|
|
68
|
-
data: any[];
|
|
69
|
-
onClick: (elt: any) => void;
|
|
70
|
-
}
|
|
65
|
+
interface SelectedProps {
|
|
66
|
+
title?: string;
|
|
67
|
+
data: any[];
|
|
68
|
+
onClick: (elt: any) => void;
|
|
69
|
+
}
|
|
71
70
|
declare const Selected: React__default.FC<SelectedProps>;
|
|
72
71
|
|
|
73
|
-
interface ButtonProps {
|
|
74
|
-
variant?: 'text' | 'contained' | 'outlined';
|
|
75
|
-
color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
|
|
76
|
-
className?: string;
|
|
77
|
-
disable?: boolean;
|
|
78
|
-
children?: React__default.ReactNode;
|
|
79
|
-
onClick?: (event: React__default.MouseEvent<HTMLButtonElement>) => void;
|
|
80
|
-
}
|
|
72
|
+
interface ButtonProps {
|
|
73
|
+
variant?: 'text' | 'contained' | 'outlined';
|
|
74
|
+
color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
|
|
75
|
+
className?: string;
|
|
76
|
+
disable?: boolean;
|
|
77
|
+
children?: React__default.ReactNode;
|
|
78
|
+
onClick?: (event: React__default.MouseEvent<HTMLButtonElement>) => void;
|
|
79
|
+
}
|
|
81
80
|
declare const Button: React__default.FC<ButtonProps>;
|
|
82
81
|
|
|
83
|
-
type TScanConfirmDialogLabels = {
|
|
84
|
-
title?: string;
|
|
85
|
-
message?: string;
|
|
86
|
-
btnOk?: {
|
|
87
|
-
label: string;
|
|
88
|
-
style?: React.CSSProperties;
|
|
89
|
-
};
|
|
90
|
-
btnCancel?: {
|
|
91
|
-
label: string;
|
|
92
|
-
style?: React.CSSProperties;
|
|
93
|
-
};
|
|
82
|
+
type TScanConfirmDialogLabels = {
|
|
83
|
+
title?: string;
|
|
84
|
+
message?: string;
|
|
85
|
+
btnOk?: {
|
|
86
|
+
label: string;
|
|
87
|
+
style?: React.CSSProperties;
|
|
88
|
+
};
|
|
89
|
+
btnCancel?: {
|
|
90
|
+
label: string;
|
|
91
|
+
style?: React.CSSProperties;
|
|
92
|
+
};
|
|
94
93
|
};
|
|
95
94
|
|
|
96
|
-
declare const Scanner: React.FC<ScannerProps>;
|
|
97
|
-
type TScanTrackerType = 'outline' | 'boundingBox' | 'centerText';
|
|
98
|
-
type ScannerProps = {
|
|
99
|
-
scanConfirmation?: boolean;
|
|
100
|
-
scanConfirmDialog?: TScanConfirmDialogLabels;
|
|
101
|
-
scanTrackerType?: TScanTrackerType;
|
|
102
|
-
onScan?: (detectedCodes: IDetectedBarcode[]) => void;
|
|
95
|
+
declare const Scanner: React.FC<ScannerProps>;
|
|
96
|
+
type TScanTrackerType = 'outline' | 'boundingBox' | 'centerText';
|
|
97
|
+
type ScannerProps = {
|
|
98
|
+
scanConfirmation?: boolean;
|
|
99
|
+
scanConfirmDialog?: TScanConfirmDialogLabels;
|
|
100
|
+
scanTrackerType?: TScanTrackerType;
|
|
101
|
+
onScan?: (detectedCodes: IDetectedBarcode[]) => void;
|
|
103
102
|
} & IScannerProps;
|
|
104
103
|
|
|
105
|
-
declare const Camera: React.FC<CameraProps>;
|
|
106
|
-
type CameraProps = {
|
|
107
|
-
onCapture: ({ fileStoreName, fileRowId, file }: TfileCapturedProps) => void;
|
|
108
|
-
mode?: 'photo' | 'video';
|
|
109
|
-
isOffline?: boolean;
|
|
110
|
-
isShowOffline?: boolean;
|
|
111
|
-
validateText?: string;
|
|
112
|
-
resetText?: string;
|
|
113
|
-
isShowVideoButton?: boolean;
|
|
114
|
-
isShowSwitchButton?: boolean;
|
|
115
|
-
} & Partial<WebcamProps>;
|
|
116
|
-
type TfileCapturedProps = {
|
|
117
|
-
fileStoreName?: string | null;
|
|
118
|
-
fileRowId?: number | null;
|
|
119
|
-
file?: File | null;
|
|
120
|
-
imageSrc?: string | null;
|
|
121
|
-
videoSrc?: string | null;
|
|
104
|
+
declare const Camera: React.FC<CameraProps>;
|
|
105
|
+
type CameraProps = {
|
|
106
|
+
onCapture: ({ fileStoreName, fileRowId, file }: TfileCapturedProps) => void;
|
|
107
|
+
mode?: 'photo' | 'video';
|
|
108
|
+
isOffline?: boolean;
|
|
109
|
+
isShowOffline?: boolean;
|
|
110
|
+
validateText?: string;
|
|
111
|
+
resetText?: string;
|
|
112
|
+
isShowVideoButton?: boolean;
|
|
113
|
+
isShowSwitchButton?: boolean;
|
|
114
|
+
} & Partial<WebcamProps>;
|
|
115
|
+
type TfileCapturedProps = {
|
|
116
|
+
fileStoreName?: string | null;
|
|
117
|
+
fileRowId?: number | null;
|
|
118
|
+
file?: File | null;
|
|
119
|
+
imageSrc?: string | null;
|
|
120
|
+
videoSrc?: string | null;
|
|
122
121
|
};
|
|
123
122
|
|
|
124
|
-
interface ToggleButtonProps {
|
|
125
|
-
selected?: boolean;
|
|
126
|
-
value?: string;
|
|
127
|
-
className?: string;
|
|
128
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
129
|
-
children?: React__default.ReactNode;
|
|
130
|
-
onChange?: (value: string | undefined) => void;
|
|
131
|
-
}
|
|
123
|
+
interface ToggleButtonProps {
|
|
124
|
+
selected?: boolean;
|
|
125
|
+
value?: string;
|
|
126
|
+
className?: string;
|
|
127
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
128
|
+
children?: React__default.ReactNode;
|
|
129
|
+
onChange?: (value: string | undefined) => void;
|
|
130
|
+
}
|
|
132
131
|
declare const ToggleButton: React__default.FC<ToggleButtonProps>;
|
|
133
132
|
|
|
134
|
-
interface TooltipProps$1 {
|
|
135
|
-
children?: React__default.ReactElement;
|
|
136
|
-
anchorEl?: string | HTMLElement | React__default.RefObject<HTMLElement>;
|
|
137
|
-
title: React__default.ReactNode;
|
|
138
|
-
enterDelay?: number;
|
|
139
|
-
leaveDelay?: number;
|
|
140
|
-
className?: string;
|
|
141
|
-
disabled?: boolean;
|
|
142
|
-
}
|
|
133
|
+
interface TooltipProps$1 {
|
|
134
|
+
children?: React__default.ReactElement;
|
|
135
|
+
anchorEl?: string | HTMLElement | React__default.RefObject<HTMLElement>;
|
|
136
|
+
title: React__default.ReactNode;
|
|
137
|
+
enterDelay?: number;
|
|
138
|
+
leaveDelay?: number;
|
|
139
|
+
className?: string;
|
|
140
|
+
disabled?: boolean;
|
|
141
|
+
}
|
|
143
142
|
declare const Tooltip: React__default.FC<TooltipProps$1>;
|
|
144
143
|
|
|
145
|
-
declare namespace Cortex {
|
|
146
|
-
type Tag = {
|
|
147
|
-
id: string;
|
|
148
|
-
label: string;
|
|
149
|
-
value: any;
|
|
150
|
-
};
|
|
151
|
-
type TagSuggestion = {
|
|
152
|
-
id: string;
|
|
153
|
-
label: string;
|
|
154
|
-
value?: any;
|
|
155
|
-
group?: boolean;
|
|
156
|
-
suggestions?: TagSuggestion[];
|
|
157
|
-
};
|
|
144
|
+
declare namespace Cortex {
|
|
145
|
+
type Tag = {
|
|
146
|
+
id: string;
|
|
147
|
+
label: string;
|
|
148
|
+
value: any;
|
|
149
|
+
};
|
|
150
|
+
type TagSuggestion = {
|
|
151
|
+
id: string;
|
|
152
|
+
label: string;
|
|
153
|
+
value?: any;
|
|
154
|
+
group?: boolean;
|
|
155
|
+
suggestions?: TagSuggestion[];
|
|
156
|
+
};
|
|
158
157
|
}
|
|
159
158
|
|
|
160
|
-
interface TooltipProps {
|
|
161
|
-
tags?: Cortex.Tag[];
|
|
162
|
-
className?: string;
|
|
163
|
-
suggestions?: Cortex.TagSuggestion[];
|
|
164
|
-
disableFilter?: boolean;
|
|
165
|
-
onTextChange?: (text: string) => void;
|
|
166
|
-
onChange?: (tags: Cortex.Tag[]) => void;
|
|
167
|
-
}
|
|
159
|
+
interface TooltipProps {
|
|
160
|
+
tags?: Cortex.Tag[];
|
|
161
|
+
className?: string;
|
|
162
|
+
suggestions?: Cortex.TagSuggestion[];
|
|
163
|
+
disableFilter?: boolean;
|
|
164
|
+
onTextChange?: (text: string) => void;
|
|
165
|
+
onChange?: (tags: Cortex.Tag[]) => void;
|
|
166
|
+
}
|
|
168
167
|
declare const TagInput: React__default.FC<TooltipProps>;
|
|
169
168
|
|
|
170
|
-
declare class Point {
|
|
171
|
-
id: number;
|
|
172
|
-
order: number;
|
|
173
|
-
latitude: number;
|
|
174
|
-
longitude: number;
|
|
169
|
+
declare class Point {
|
|
170
|
+
id: number;
|
|
171
|
+
order: number;
|
|
172
|
+
latitude: number;
|
|
173
|
+
longitude: number;
|
|
175
174
|
}
|
|
176
175
|
|
|
177
|
-
declare class Location {
|
|
178
|
-
id: number;
|
|
179
|
-
objId: string;
|
|
180
|
-
points: Point[];
|
|
176
|
+
declare class Location {
|
|
177
|
+
id: number;
|
|
178
|
+
objId: string;
|
|
179
|
+
points: Point[];
|
|
181
180
|
}
|
|
182
181
|
|
|
183
|
-
type CenterActiveAreaControlProps = {
|
|
184
|
-
autoCenter?: boolean;
|
|
182
|
+
type CenterActiveAreaControlProps = {
|
|
183
|
+
autoCenter?: boolean;
|
|
185
184
|
};
|
|
186
185
|
|
|
187
|
-
/** Props interface for MapFullscreenControl component */
|
|
188
|
-
type MapFullscreenControlProps = {
|
|
189
|
-
/** Change the content of the button, can be HTML, default null */
|
|
190
|
-
content?: string | undefined;
|
|
191
|
-
/** Change the position of the button can be topleft, topright, bottomright or bottomleft, default topleft */
|
|
192
|
-
position?: ControlPosition | undefined;
|
|
193
|
-
/** Change the title of the button, default Full Screen */
|
|
194
|
-
title?: string | undefined;
|
|
195
|
-
/** Change the title of the button when fullscreen is on, default Exit Full Screen */
|
|
196
|
-
titleCancel?: string | undefined;
|
|
197
|
-
/** Force separate button to detach from zoom buttons, default false */
|
|
198
|
-
forceSeparateButton?: boolean | undefined;
|
|
199
|
-
/** Force use of pseudo full screen even if full screen API is available, default false */
|
|
200
|
-
forcePseudoFullscreen?: boolean | undefined;
|
|
201
|
-
/** Use pseudo fullscreen */
|
|
202
|
-
pseudoFullscreen?: boolean | undefined;
|
|
203
|
-
/** Dom element to render in full screen, false by default, fallback to map._container */
|
|
204
|
-
fullscreenElement?: false | HTMLElement | undefined;
|
|
186
|
+
/** Props interface for MapFullscreenControl component */
|
|
187
|
+
type MapFullscreenControlProps = {
|
|
188
|
+
/** Change the content of the button, can be HTML, default null */
|
|
189
|
+
content?: string | undefined;
|
|
190
|
+
/** Change the position of the button can be topleft, topright, bottomright or bottomleft, default topleft */
|
|
191
|
+
position?: ControlPosition | undefined;
|
|
192
|
+
/** Change the title of the button, default Full Screen */
|
|
193
|
+
title?: string | undefined;
|
|
194
|
+
/** Change the title of the button when fullscreen is on, default Exit Full Screen */
|
|
195
|
+
titleCancel?: string | undefined;
|
|
196
|
+
/** Force separate button to detach from zoom buttons, default false */
|
|
197
|
+
forceSeparateButton?: boolean | undefined;
|
|
198
|
+
/** Force use of pseudo full screen even if full screen API is available, default false */
|
|
199
|
+
forcePseudoFullscreen?: boolean | undefined;
|
|
200
|
+
/** Use pseudo fullscreen */
|
|
201
|
+
pseudoFullscreen?: boolean | undefined;
|
|
202
|
+
/** Dom element to render in full screen, false by default, fallback to map._container */
|
|
203
|
+
fullscreenElement?: false | HTMLElement | undefined;
|
|
205
204
|
};
|
|
206
205
|
|
|
207
|
-
type DrawToolsProps = {
|
|
208
|
-
position?: ControlPosition | undefined;
|
|
209
|
-
handleOnCreated?: (v: DrawEvents.Created) => void;
|
|
210
|
-
handleOnDeleted?: (v: DrawEvents.Deleted) => void;
|
|
211
|
-
handleOnEdited?: (v: DrawEvents.Edited) => void;
|
|
212
|
-
draw?: drawType;
|
|
213
|
-
editable?: boolean;
|
|
214
|
-
};
|
|
215
|
-
type drawType = {
|
|
216
|
-
polyline?: boolean;
|
|
217
|
-
polygon?: boolean;
|
|
218
|
-
rectangle?: boolean;
|
|
219
|
-
circle?: boolean;
|
|
220
|
-
marker?: boolean;
|
|
221
|
-
circlemarker?: boolean;
|
|
206
|
+
type DrawToolsProps = {
|
|
207
|
+
position?: ControlPosition | undefined;
|
|
208
|
+
handleOnCreated?: (v: DrawEvents.Created) => void;
|
|
209
|
+
handleOnDeleted?: (v: DrawEvents.Deleted) => void;
|
|
210
|
+
handleOnEdited?: (v: DrawEvents.Edited) => void;
|
|
211
|
+
draw?: drawType;
|
|
212
|
+
editable?: boolean;
|
|
213
|
+
};
|
|
214
|
+
type drawType = {
|
|
215
|
+
polyline?: boolean;
|
|
216
|
+
polygon?: boolean;
|
|
217
|
+
rectangle?: boolean;
|
|
218
|
+
circle?: boolean;
|
|
219
|
+
marker?: boolean;
|
|
220
|
+
circlemarker?: boolean;
|
|
222
221
|
};
|
|
223
222
|
|
|
224
|
-
type MapsProps = {
|
|
225
|
-
MapContainerProps?: MapContainerProps;
|
|
226
|
-
center?: LatLngTuple;
|
|
227
|
-
fullscreen?: MapFullscreenControlProps | boolean;
|
|
228
|
-
centerActiveArea?: CenterActiveAreaControlProps | boolean;
|
|
229
|
-
drawTools?: DrawToolsProps | boolean;
|
|
230
|
-
minZoom?: number;
|
|
231
|
-
maxZoom?: number;
|
|
232
|
-
zoom?: number;
|
|
233
|
-
data?: Location[];
|
|
234
|
-
toggleSatelliteView?: boolean;
|
|
235
|
-
singlePosition?: boolean;
|
|
236
|
-
onChange?: (locations: Location[]) => void;
|
|
223
|
+
type MapsProps = {
|
|
224
|
+
MapContainerProps?: MapContainerProps;
|
|
225
|
+
center?: LatLngTuple;
|
|
226
|
+
fullscreen?: MapFullscreenControlProps | boolean;
|
|
227
|
+
centerActiveArea?: CenterActiveAreaControlProps | boolean;
|
|
228
|
+
drawTools?: DrawToolsProps | boolean;
|
|
229
|
+
minZoom?: number;
|
|
230
|
+
maxZoom?: number;
|
|
231
|
+
zoom?: number;
|
|
232
|
+
data?: Location[];
|
|
233
|
+
toggleSatelliteView?: boolean;
|
|
234
|
+
singlePosition?: boolean;
|
|
235
|
+
onChange?: (locations: Location[]) => void;
|
|
237
236
|
};
|
|
238
237
|
|
|
239
|
-
declare const Map: React__default.FC<AppProps>;
|
|
240
|
-
type AppProps = MapsProps & {
|
|
241
|
-
onClose?: (() => void);
|
|
242
|
-
onSave?: ((locations: Location[]) => void);
|
|
243
|
-
onChange?: ((locations: Location[]) => void);
|
|
244
|
-
customButtons?: {
|
|
245
|
-
cancelButton?: HTMLElement;
|
|
246
|
-
saveButton?: HTMLElement;
|
|
247
|
-
};
|
|
238
|
+
declare const Map: React__default.FC<AppProps>;
|
|
239
|
+
type AppProps = MapsProps & {
|
|
240
|
+
onClose?: (() => void);
|
|
241
|
+
onSave?: ((locations: Location[]) => void);
|
|
242
|
+
onChange?: ((locations: Location[]) => void);
|
|
243
|
+
customButtons?: {
|
|
244
|
+
cancelButton?: HTMLElement;
|
|
245
|
+
saveButton?: HTMLElement;
|
|
246
|
+
};
|
|
248
247
|
};
|
|
249
248
|
|
|
250
|
-
interface MenuProps {
|
|
251
|
-
containerRef: React__default.RefObject<HTMLElement>;
|
|
252
|
-
className?: string;
|
|
253
|
-
children?: React__default.ReactNode;
|
|
254
|
-
onClose?: () => void;
|
|
255
|
-
onClick?: (event: React__default.MouseEvent<HTMLUListElement> | undefined) => void;
|
|
256
|
-
}
|
|
249
|
+
interface MenuProps {
|
|
250
|
+
containerRef: React__default.RefObject<HTMLElement>;
|
|
251
|
+
className?: string;
|
|
252
|
+
children?: React__default.ReactNode;
|
|
253
|
+
onClose?: () => void;
|
|
254
|
+
onClick?: (event: React__default.MouseEvent<HTMLUListElement> | undefined) => void;
|
|
255
|
+
}
|
|
257
256
|
declare const Menu: React__default.FC<MenuProps>;
|
|
258
257
|
|
|
259
|
-
interface ContextMenuProps {
|
|
260
|
-
className?: string;
|
|
261
|
-
children?: React__default.ReactNode;
|
|
262
|
-
open?: boolean;
|
|
263
|
-
placement?: ObjectValues<typeof PopperPlacement>;
|
|
264
|
-
container?: string | HTMLElement | React__default.RefObject<HTMLElement>;
|
|
265
|
-
onOpen?: () => void;
|
|
266
|
-
onClose?: () => void;
|
|
267
|
-
}
|
|
258
|
+
interface ContextMenuProps {
|
|
259
|
+
className?: string;
|
|
260
|
+
children?: React__default.ReactNode;
|
|
261
|
+
open?: boolean;
|
|
262
|
+
placement?: ObjectValues<typeof PopperPlacement>;
|
|
263
|
+
container?: string | HTMLElement | React__default.RefObject<HTMLElement>;
|
|
264
|
+
onOpen?: () => void;
|
|
265
|
+
onClose?: () => void;
|
|
266
|
+
}
|
|
268
267
|
declare const ContextMenu: React__default.FC<ContextMenuProps>;
|
|
269
268
|
|
|
270
|
-
interface DividerProps {
|
|
271
|
-
className?: string;
|
|
272
|
-
}
|
|
269
|
+
interface DividerProps {
|
|
270
|
+
className?: string;
|
|
271
|
+
}
|
|
273
272
|
declare const Divider: React__default.FC<DividerProps>;
|
|
274
273
|
|
|
275
|
-
interface MenuItemProps {
|
|
276
|
-
className?: string;
|
|
277
|
-
style?: CSSProperties | undefined;
|
|
278
|
-
children?: React__default.ReactNode;
|
|
279
|
-
label?: string;
|
|
280
|
-
icon?: React__default.ReactNode;
|
|
281
|
-
active?: boolean;
|
|
282
|
-
disable?: boolean;
|
|
283
|
-
itemTemplate?: React__default.ReactNode;
|
|
284
|
-
onClick?: (event: React__default.MouseEvent<HTMLButtonElement> | undefined) => void;
|
|
285
|
-
}
|
|
274
|
+
interface MenuItemProps {
|
|
275
|
+
className?: string;
|
|
276
|
+
style?: CSSProperties | undefined;
|
|
277
|
+
children?: React__default.ReactNode;
|
|
278
|
+
label?: string;
|
|
279
|
+
icon?: React__default.ReactNode;
|
|
280
|
+
active?: boolean;
|
|
281
|
+
disable?: boolean;
|
|
282
|
+
itemTemplate?: React__default.ReactNode;
|
|
283
|
+
onClick?: (event: React__default.MouseEvent<HTMLButtonElement> | undefined) => void;
|
|
284
|
+
}
|
|
286
285
|
declare const MenuItem: React__default.FC<MenuItemProps>;
|
|
287
286
|
|
|
288
|
-
interface PopupMenuProps {
|
|
289
|
-
className?: string;
|
|
290
|
-
children?: React__default.ReactNode;
|
|
291
|
-
open?: boolean;
|
|
292
|
-
placement?: ObjectValues<typeof PopperPlacement>;
|
|
293
|
-
anchorPosition?: {
|
|
294
|
-
top: number;
|
|
295
|
-
left: number;
|
|
296
|
-
};
|
|
297
|
-
anchorEl?: string | HTMLElement | React__default.RefObject<HTMLElement>;
|
|
298
|
-
onClose?: () => void;
|
|
299
|
-
}
|
|
287
|
+
interface PopupMenuProps {
|
|
288
|
+
className?: string;
|
|
289
|
+
children?: React__default.ReactNode;
|
|
290
|
+
open?: boolean;
|
|
291
|
+
placement?: ObjectValues<typeof PopperPlacement>;
|
|
292
|
+
anchorPosition?: {
|
|
293
|
+
top: number;
|
|
294
|
+
left: number;
|
|
295
|
+
};
|
|
296
|
+
anchorEl?: string | HTMLElement | React__default.RefObject<HTMLElement>;
|
|
297
|
+
onClose?: () => void;
|
|
298
|
+
}
|
|
300
299
|
declare const PopupMenu: React__default.FC<PopupMenuProps>;
|
|
301
300
|
|
|
302
|
-
interface MenuGroupProps {
|
|
303
|
-
title?: string;
|
|
304
|
-
className?: string;
|
|
305
|
-
children?: React__default.ReactNode;
|
|
306
|
-
}
|
|
301
|
+
interface MenuGroupProps {
|
|
302
|
+
title?: string;
|
|
303
|
+
className?: string;
|
|
304
|
+
children?: React__default.ReactNode;
|
|
305
|
+
}
|
|
307
306
|
declare const MenuGroup: React__default.FC<MenuGroupProps>;
|
|
308
307
|
|
|
309
|
-
interface AuthDownloadLinkProps {
|
|
310
|
-
url: string;
|
|
311
|
-
queryParams?: {
|
|
312
|
-
[key: string]: string | number | boolean;
|
|
313
|
-
};
|
|
314
|
-
token: string;
|
|
315
|
-
label?: string;
|
|
316
|
-
onStart?: (event: React__default.MouseEvent<HTMLButtonElement> | undefined) => void;
|
|
317
|
-
onCompleted?: () => void;
|
|
318
|
-
onError?: (error: Error) => void;
|
|
319
|
-
}
|
|
308
|
+
interface AuthDownloadLinkProps {
|
|
309
|
+
url: string;
|
|
310
|
+
queryParams?: {
|
|
311
|
+
[key: string]: string | number | boolean;
|
|
312
|
+
};
|
|
313
|
+
token: string;
|
|
314
|
+
label?: string;
|
|
315
|
+
onStart?: (event: React__default.MouseEvent<HTMLButtonElement> | undefined) => void;
|
|
316
|
+
onCompleted?: () => void;
|
|
317
|
+
onError?: (error: Error) => void;
|
|
318
|
+
}
|
|
320
319
|
declare const AuthDownloadLink: React__default.FC<AuthDownloadLinkProps>;
|
|
321
320
|
|
|
322
|
-
interface DialogProps {
|
|
323
|
-
open: boolean;
|
|
324
|
-
width?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
325
|
-
fullWidth?: boolean;
|
|
326
|
-
fullHeight?: boolean;
|
|
327
|
-
className?: string;
|
|
328
|
-
children?: React__default.ReactNode;
|
|
329
|
-
onClose?: (() => void);
|
|
330
|
-
}
|
|
321
|
+
interface DialogProps {
|
|
322
|
+
open: boolean;
|
|
323
|
+
width?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
324
|
+
fullWidth?: boolean;
|
|
325
|
+
fullHeight?: boolean;
|
|
326
|
+
className?: string;
|
|
327
|
+
children?: React__default.ReactNode;
|
|
328
|
+
onClose?: (() => void);
|
|
329
|
+
}
|
|
331
330
|
declare const Dialog: React__default.FC<DialogProps>;
|
|
332
331
|
|
|
333
|
-
interface DialogContentProps {
|
|
334
|
-
className?: string;
|
|
335
|
-
children?: React__default.ReactNode;
|
|
336
|
-
}
|
|
332
|
+
interface DialogContentProps {
|
|
333
|
+
className?: string;
|
|
334
|
+
children?: React__default.ReactNode;
|
|
335
|
+
}
|
|
337
336
|
declare const DialogContent: React__default.FC<DialogContentProps>;
|
|
338
337
|
|
|
339
|
-
interface DialogFooterProps {
|
|
340
|
-
className?: string;
|
|
341
|
-
children?: React__default.ReactNode;
|
|
342
|
-
}
|
|
338
|
+
interface DialogFooterProps {
|
|
339
|
+
className?: string;
|
|
340
|
+
children?: React__default.ReactNode;
|
|
341
|
+
}
|
|
343
342
|
declare const DialogFooter: React__default.FC<DialogFooterProps>;
|
|
344
343
|
|
|
345
|
-
interface DialogHeaderProps {
|
|
346
|
-
className?: string;
|
|
347
|
-
children?: React__default.ReactNode;
|
|
348
|
-
}
|
|
344
|
+
interface DialogHeaderProps {
|
|
345
|
+
className?: string;
|
|
346
|
+
children?: React__default.ReactNode;
|
|
347
|
+
}
|
|
349
348
|
declare const DialogHeader: React__default.FC<DialogHeaderProps>;
|
|
350
349
|
|
|
351
|
-
interface DialogTitleProps {
|
|
352
|
-
className?: string;
|
|
353
|
-
children?: React__default.ReactNode;
|
|
354
|
-
closeDisable?: boolean;
|
|
355
|
-
onClose?: (() => void);
|
|
356
|
-
}
|
|
350
|
+
interface DialogTitleProps {
|
|
351
|
+
className?: string;
|
|
352
|
+
children?: React__default.ReactNode;
|
|
353
|
+
closeDisable?: boolean;
|
|
354
|
+
onClose?: (() => void);
|
|
355
|
+
}
|
|
357
356
|
declare const DialogTitle: React__default.FC<DialogTitleProps>;
|
|
358
357
|
|
|
359
|
-
interface DialogActionsProps {
|
|
360
|
-
className?: string;
|
|
361
|
-
children?: React__default.ReactNode;
|
|
362
|
-
}
|
|
358
|
+
interface DialogActionsProps {
|
|
359
|
+
className?: string;
|
|
360
|
+
children?: React__default.ReactNode;
|
|
361
|
+
}
|
|
363
362
|
declare const DialogActions: React__default.FC<DialogActionsProps>;
|
|
364
363
|
|
|
365
|
-
interface ConfirmDialogProps {
|
|
366
|
-
title: string;
|
|
367
|
-
ok?: string;
|
|
368
|
-
cancel?: string;
|
|
369
|
-
children?: React__default.ReactNode;
|
|
370
|
-
className?: string;
|
|
371
|
-
onClose?: (isOk: boolean) => void;
|
|
372
|
-
}
|
|
364
|
+
interface ConfirmDialogProps {
|
|
365
|
+
title: string;
|
|
366
|
+
ok?: string;
|
|
367
|
+
cancel?: string;
|
|
368
|
+
children?: React__default.ReactNode;
|
|
369
|
+
className?: string;
|
|
370
|
+
onClose?: (isOk: boolean) => void;
|
|
371
|
+
}
|
|
373
372
|
declare const ConfirmDialog: React__default.FC<ConfirmDialogProps>;
|
|
374
373
|
|
|
375
|
-
interface ErrorDialogProps {
|
|
376
|
-
title: string;
|
|
377
|
-
ok?: string;
|
|
378
|
-
children?: React__default.ReactNode;
|
|
379
|
-
className?: string;
|
|
380
|
-
onClose?: (isOk: boolean) => void;
|
|
381
|
-
}
|
|
374
|
+
interface ErrorDialogProps {
|
|
375
|
+
title: string;
|
|
376
|
+
ok?: string;
|
|
377
|
+
children?: React__default.ReactNode;
|
|
378
|
+
className?: string;
|
|
379
|
+
onClose?: (isOk: boolean) => void;
|
|
380
|
+
}
|
|
382
381
|
declare const ErrorDialog: React__default.FC<ErrorDialogProps>;
|
|
383
382
|
|
|
384
|
-
interface WarningDialogProps {
|
|
385
|
-
title: string;
|
|
386
|
-
ok?: string;
|
|
387
|
-
children?: React__default.ReactNode;
|
|
388
|
-
className?: string;
|
|
389
|
-
onClose?: (isOk: boolean) => void;
|
|
390
|
-
}
|
|
383
|
+
interface WarningDialogProps {
|
|
384
|
+
title: string;
|
|
385
|
+
ok?: string;
|
|
386
|
+
children?: React__default.ReactNode;
|
|
387
|
+
className?: string;
|
|
388
|
+
onClose?: (isOk: boolean) => void;
|
|
389
|
+
}
|
|
391
390
|
declare const WarningDialog: React__default.FC<WarningDialogProps>;
|
|
392
391
|
|
|
393
|
-
interface Props$3 {
|
|
394
|
-
className?: string;
|
|
395
|
-
}
|
|
392
|
+
interface Props$3 {
|
|
393
|
+
className?: string;
|
|
394
|
+
}
|
|
396
395
|
declare const ChevronDownIcon: React__default.FC<Props$3>;
|
|
397
396
|
|
|
398
|
-
interface Props$2 {
|
|
399
|
-
className?: string;
|
|
400
|
-
}
|
|
397
|
+
interface Props$2 {
|
|
398
|
+
className?: string;
|
|
399
|
+
}
|
|
401
400
|
declare const ChevronRightIcon: React__default.FC<Props$2>;
|
|
402
401
|
|
|
403
|
-
interface Props$1 {
|
|
404
|
-
className?: string;
|
|
405
|
-
}
|
|
402
|
+
interface Props$1 {
|
|
403
|
+
className?: string;
|
|
404
|
+
}
|
|
406
405
|
declare const ChevronLeftIcon: React__default.FC<Props$1>;
|
|
407
406
|
|
|
408
|
-
interface Props {
|
|
409
|
-
className?: string;
|
|
410
|
-
}
|
|
407
|
+
interface Props {
|
|
408
|
+
className?: string;
|
|
409
|
+
}
|
|
411
410
|
declare const CrossIcon: React__default.FC<Props>;
|
|
412
411
|
|
|
413
|
-
/**
|
|
414
|
-
* Utility type pour créer des props avec ref pour la compatibilité React 18/19
|
|
415
|
-
* En React 19, ref est passé directement dans les props
|
|
416
|
-
* En React 18, ref est passé séparément via forwardRef
|
|
417
|
-
*/
|
|
418
|
-
type ForwardRefProps<T, P = object> = P & {
|
|
419
|
-
ref?: React$1.Ref<T>;
|
|
420
|
-
};
|
|
421
|
-
/**
|
|
422
|
-
* Type pour la fonction de rendu compatible React 18/19
|
|
423
|
-
*/
|
|
424
|
-
type ForwardRefRenderFunction<T, P> = (props: P, ref: React$1.ForwardedRef<T>) => React$1.ReactElement | null;
|
|
425
|
-
/**
|
|
426
|
-
* Composant wrapper compatible React 18 et React 19
|
|
427
|
-
*
|
|
428
|
-
* Utilise la signature standard de React.forwardRef qui est compatible
|
|
429
|
-
* avec les deux versions de React.
|
|
430
|
-
*
|
|
431
|
-
* @example
|
|
432
|
-
* ```tsx
|
|
433
|
-
* interface MyComponentProps {
|
|
434
|
-
* className?: string;
|
|
435
|
-
* children?: React.ReactNode;
|
|
436
|
-
* }
|
|
437
|
-
*
|
|
438
|
-
* const MyComponent = forwardRef<HTMLDivElement, MyComponentProps>(
|
|
439
|
-
* (props, ref) => (
|
|
440
|
-
* <div ref={ref} className={props.className}>{props.children}</div>
|
|
441
|
-
* )
|
|
442
|
-
* );
|
|
443
|
-
* ```
|
|
444
|
-
*/
|
|
412
|
+
/**
|
|
413
|
+
* Utility type pour créer des props avec ref pour la compatibilité React 18/19
|
|
414
|
+
* En React 19, ref est passé directement dans les props
|
|
415
|
+
* En React 18, ref est passé séparément via forwardRef
|
|
416
|
+
*/
|
|
417
|
+
type ForwardRefProps<T, P = object> = P & {
|
|
418
|
+
ref?: React$1.Ref<T>;
|
|
419
|
+
};
|
|
420
|
+
/**
|
|
421
|
+
* Type pour la fonction de rendu compatible React 18/19
|
|
422
|
+
*/
|
|
423
|
+
type ForwardRefRenderFunction<T, P> = (props: P, ref: React$1.ForwardedRef<T>) => React$1.ReactElement | null;
|
|
424
|
+
/**
|
|
425
|
+
* Composant wrapper compatible React 18 et React 19
|
|
426
|
+
*
|
|
427
|
+
* Utilise la signature standard de React.forwardRef qui est compatible
|
|
428
|
+
* avec les deux versions de React.
|
|
429
|
+
*
|
|
430
|
+
* @example
|
|
431
|
+
* ```tsx
|
|
432
|
+
* interface MyComponentProps {
|
|
433
|
+
* className?: string;
|
|
434
|
+
* children?: React.ReactNode;
|
|
435
|
+
* }
|
|
436
|
+
*
|
|
437
|
+
* const MyComponent = forwardRef<HTMLDivElement, MyComponentProps>(
|
|
438
|
+
* (props, ref) => (
|
|
439
|
+
* <div ref={ref} className={props.className}>{props.children}</div>
|
|
440
|
+
* )
|
|
441
|
+
* );
|
|
442
|
+
* ```
|
|
443
|
+
*/
|
|
445
444
|
declare function forwardRef<T, P>(render: ForwardRefRenderFunction<T, P>): React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<P> & React$1.RefAttributes<T>>;
|
|
446
445
|
|
|
447
|
-
export { AuthDownloadLink, BarLoader, Button, Camera, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ConfirmDialog, ContextMenu, CrossIcon, Dialog, DialogActions, DialogContent, DialogFooter, DialogHeader, DialogTitle, Divider, DomContainer, ErrorDialog,
|
|
446
|
+
export { AuthDownloadLink, BarLoader, Button, Camera, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ConfirmDialog, ContextMenu, CrossIcon, Dialog, DialogActions, DialogContent, DialogFooter, DialogHeader, DialogTitle, Divider, DomContainer, ErrorDialog, Map, Menu, MenuGroup, MenuItem, Popper, PopupMenu, Scanner, Selected, Spinner, TagInput, ToggleButton, Tooltip, WarningDialog, forwardRef };
|
|
447
|
+
export type { ForwardRefProps, ForwardRefRenderFunction };
|