cortex-react-ui 0.2.18 → 0.2.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/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 +8 -20
- 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 +8 -20
- 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
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface BarLoaderProps {
|
|
3
|
-
title?: string;
|
|
4
|
-
color?: 'red' | 'blue' | 'yellow' | 'orange' | 'green';
|
|
5
|
-
className?: string;
|
|
6
|
-
isComplete: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const BarLoader: React.FC<BarLoaderProps>;
|
|
9
|
-
export default BarLoader;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface BarLoaderProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
color?: 'red' | 'blue' | 'yellow' | 'orange' | 'green';
|
|
5
|
+
className?: string;
|
|
6
|
+
isComplete: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const BarLoader: React.FC<BarLoaderProps>;
|
|
9
|
+
export default BarLoader;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './BarLoader';
|
|
1
|
+
export { default } from './BarLoader';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface ButtonProps {
|
|
3
|
-
variant?: 'text' | 'contained' | 'outlined';
|
|
4
|
-
color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
|
|
5
|
-
className?: string;
|
|
6
|
-
disable?: boolean;
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
9
|
-
}
|
|
10
|
-
declare const Button: React.FC<ButtonProps>;
|
|
11
|
-
export default Button;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ButtonProps {
|
|
3
|
+
variant?: 'text' | 'contained' | 'outlined';
|
|
4
|
+
color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
|
|
5
|
+
className?: string;
|
|
6
|
+
disable?: boolean;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const Button: React.FC<ButtonProps>;
|
|
11
|
+
export default Button;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Button';
|
|
1
|
+
export { default } from './Button';
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export default Camera;
|
|
1
|
+
import { WebcamProps } from 'react-webcam';
|
|
2
|
+
declare const Camera: React.FC<CameraProps>;
|
|
3
|
+
export type CameraProps = {
|
|
4
|
+
onCapture: ({ fileStoreName, fileRowId, file }: TfileCapturedProps) => void;
|
|
5
|
+
mode?: 'photo' | 'video';
|
|
6
|
+
isOffline?: boolean;
|
|
7
|
+
isShowOffline?: boolean;
|
|
8
|
+
validateText?: string;
|
|
9
|
+
resetText?: string;
|
|
10
|
+
isShowVideoButton?: boolean;
|
|
11
|
+
isShowSwitchButton?: boolean;
|
|
12
|
+
} & Partial<WebcamProps>;
|
|
13
|
+
export type TfileCapturedProps = {
|
|
14
|
+
fileStoreName?: string | null;
|
|
15
|
+
fileRowId?: number | null;
|
|
16
|
+
file?: File | null;
|
|
17
|
+
imageSrc?: string | null;
|
|
18
|
+
videoSrc?: string | null;
|
|
19
|
+
};
|
|
20
|
+
export default Camera;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
declare class FileStorageDB {
|
|
2
|
-
private dbName;
|
|
3
|
-
private storeName;
|
|
4
|
-
private db;
|
|
5
|
-
openDatabase(): Promise<IDBDatabase>;
|
|
6
|
-
storeFile(file: File): Promise<number>;
|
|
7
|
-
retrieveFile(id: number): Promise<File | null>;
|
|
8
|
-
}
|
|
9
|
-
export default FileStorageDB;
|
|
1
|
+
declare class FileStorageDB {
|
|
2
|
+
private dbName;
|
|
3
|
+
private storeName;
|
|
4
|
+
private db;
|
|
5
|
+
openDatabase(): Promise<IDBDatabase>;
|
|
6
|
+
storeFile(file: File): Promise<number>;
|
|
7
|
+
retrieveFile(id: number): Promise<File | null>;
|
|
8
|
+
}
|
|
9
|
+
export default FileStorageDB;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Camera';
|
|
1
|
+
export { default } from './Camera';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const useTimer: () => {
|
|
2
|
-
formatTime: (totalSeconds: number) => string;
|
|
3
|
-
startTimer: () => void;
|
|
4
|
-
stopTimer: () => void;
|
|
5
|
-
formatedTime: string;
|
|
6
|
-
};
|
|
1
|
+
export declare const useTimer: () => {
|
|
2
|
+
formatTime: (totalSeconds: number) => string;
|
|
3
|
+
startTimer: () => void;
|
|
4
|
+
stopTimer: () => void;
|
|
5
|
+
formatedTime: string;
|
|
6
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
value?: Date;
|
|
4
|
-
className?: string;
|
|
5
|
-
};
|
|
6
|
-
declare const DatePicker: React.FC<Props>;
|
|
7
|
-
export default DatePicker;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
value?: Date;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const DatePicker: React.FC<Props>;
|
|
7
|
+
export default DatePicker;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as DatePicker } from './DatePicker';
|
|
1
|
+
export { default as DatePicker } from './DatePicker';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface ConfirmDialogProps {
|
|
3
|
-
title: string;
|
|
4
|
-
ok?: string;
|
|
5
|
-
cancel?: string;
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
className?: string;
|
|
8
|
-
onClose?: (isOk: boolean) => void;
|
|
9
|
-
}
|
|
10
|
-
declare const ConfirmDialog: React.FC<ConfirmDialogProps>;
|
|
11
|
-
export default ConfirmDialog;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ConfirmDialogProps {
|
|
3
|
+
title: string;
|
|
4
|
+
ok?: string;
|
|
5
|
+
cancel?: string;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
onClose?: (isOk: boolean) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const ConfirmDialog: React.FC<ConfirmDialogProps>;
|
|
11
|
+
export default ConfirmDialog;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface DialogProps {
|
|
3
|
-
open: boolean;
|
|
4
|
-
width?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
-
fullWidth?: boolean;
|
|
6
|
-
fullHeight?: boolean;
|
|
7
|
-
className?: string;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
onClose?: (() => void);
|
|
10
|
-
}
|
|
11
|
-
declare const Dialog: React.FC<DialogProps>;
|
|
12
|
-
export default Dialog;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface DialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
width?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
+
fullWidth?: boolean;
|
|
6
|
+
fullHeight?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
onClose?: (() => void);
|
|
10
|
+
}
|
|
11
|
+
declare const Dialog: React.FC<DialogProps>;
|
|
12
|
+
export default Dialog;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface DialogActionsProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
declare const DialogActions: React.FC<DialogActionsProps>;
|
|
7
|
-
export default DialogActions;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface DialogActionsProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
declare const DialogActions: React.FC<DialogActionsProps>;
|
|
7
|
+
export default DialogActions;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface DialogContentProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
declare const DialogContent: React.FC<DialogContentProps>;
|
|
7
|
-
export default DialogContent;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface DialogContentProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
declare const DialogContent: React.FC<DialogContentProps>;
|
|
7
|
+
export default DialogContent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface DialogFooterProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
declare const DialogFooter: React.FC<DialogFooterProps>;
|
|
7
|
-
export default DialogFooter;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface DialogFooterProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
declare const DialogFooter: React.FC<DialogFooterProps>;
|
|
7
|
+
export default DialogFooter;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface DialogHeaderProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
declare const DialogHeader: React.FC<DialogHeaderProps>;
|
|
7
|
-
export default DialogHeader;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface DialogHeaderProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
declare const DialogHeader: React.FC<DialogHeaderProps>;
|
|
7
|
+
export default DialogHeader;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface DialogTitleProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
closeDisable?: boolean;
|
|
6
|
-
onClose?: (() => void);
|
|
7
|
-
}
|
|
8
|
-
declare const DialogTitle: React.FC<DialogTitleProps>;
|
|
9
|
-
export default DialogTitle;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface DialogTitleProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
closeDisable?: boolean;
|
|
6
|
+
onClose?: (() => void);
|
|
7
|
+
}
|
|
8
|
+
declare const DialogTitle: React.FC<DialogTitleProps>;
|
|
9
|
+
export default DialogTitle;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface ErrorDialogProps {
|
|
3
|
-
title: string;
|
|
4
|
-
ok?: string;
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
className?: string;
|
|
7
|
-
onClose?: (isOk: boolean) => void;
|
|
8
|
-
}
|
|
9
|
-
declare const ErrorDialog: React.FC<ErrorDialogProps>;
|
|
10
|
-
export default ErrorDialog;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ErrorDialogProps {
|
|
3
|
+
title: string;
|
|
4
|
+
ok?: string;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
onClose?: (isOk: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const ErrorDialog: React.FC<ErrorDialogProps>;
|
|
10
|
+
export default ErrorDialog;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface WarningDialogProps {
|
|
3
|
-
title: string;
|
|
4
|
-
ok?: string;
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
className?: string;
|
|
7
|
-
onClose?: (isOk: boolean) => void;
|
|
8
|
-
}
|
|
9
|
-
declare const WarningDialog: React.FC<WarningDialogProps>;
|
|
10
|
-
export default WarningDialog;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface WarningDialogProps {
|
|
3
|
+
title: string;
|
|
4
|
+
ok?: string;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
onClose?: (isOk: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const WarningDialog: React.FC<WarningDialogProps>;
|
|
10
|
+
export default WarningDialog;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { default } from './Dialog';
|
|
2
|
-
export { default as DialogContent } from './DialogContent';
|
|
3
|
-
export { default as DialogFooter } from './DialogFooter';
|
|
4
|
-
export { default as DialogHeader } from './DialogHeader';
|
|
5
|
-
export { default as DialogTitle } from './DialogTitle';
|
|
6
|
-
export { default as DialogActions } from './DialogActions';
|
|
7
|
-
export { default as ConfirmDialog } from './ConfirmDialog';
|
|
8
|
-
export { default as ErrorDialog } from './ErrorDialog';
|
|
9
|
-
export { default as WarningDialog } from './WarningDialog';
|
|
1
|
+
export { default } from './Dialog';
|
|
2
|
+
export { default as DialogContent } from './DialogContent';
|
|
3
|
+
export { default as DialogFooter } from './DialogFooter';
|
|
4
|
+
export { default as DialogHeader } from './DialogHeader';
|
|
5
|
+
export { default as DialogTitle } from './DialogTitle';
|
|
6
|
+
export { default as DialogActions } from './DialogActions';
|
|
7
|
+
export { default as ConfirmDialog } from './ConfirmDialog';
|
|
8
|
+
export { default as ErrorDialog } from './ErrorDialog';
|
|
9
|
+
export { default as WarningDialog } from './WarningDialog';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type Props = {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
container?: HTMLElement | (() => HTMLElement);
|
|
5
|
-
};
|
|
6
|
-
declare const DomContainer: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLElement>>;
|
|
7
|
-
export default DomContainer;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
container?: HTMLElement | (() => HTMLElement);
|
|
5
|
+
};
|
|
6
|
+
declare const DomContainer: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLElement>>;
|
|
7
|
+
export default DomContainer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './DomContainer';
|
|
1
|
+
export { default } from './DomContainer';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface Props {
|
|
3
|
-
className?: string;
|
|
4
|
-
}
|
|
5
|
-
declare const ChevronDownIcon: React.FC<Props>;
|
|
6
|
-
export default ChevronDownIcon;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface Props {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const ChevronDownIcon: React.FC<Props>;
|
|
6
|
+
export default ChevronDownIcon;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface Props {
|
|
3
|
-
className?: string;
|
|
4
|
-
}
|
|
5
|
-
declare const ChevronLeftIcon: React.FC<Props>;
|
|
6
|
-
export default ChevronLeftIcon;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface Props {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const ChevronLeftIcon: React.FC<Props>;
|
|
6
|
+
export default ChevronLeftIcon;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface Props {
|
|
3
|
-
className?: string;
|
|
4
|
-
}
|
|
5
|
-
declare const ChevronRightIcon: React.FC<Props>;
|
|
6
|
-
export default ChevronRightIcon;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface Props {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const ChevronRightIcon: React.FC<Props>;
|
|
6
|
+
export default ChevronRightIcon;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface Props {
|
|
3
|
-
className?: string;
|
|
4
|
-
}
|
|
5
|
-
declare const CrossIcon: React.FC<Props>;
|
|
6
|
-
export default CrossIcon;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface Props {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const CrossIcon: React.FC<Props>;
|
|
6
|
+
export default CrossIcon;
|
package/lib/cjs/Icons/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as ChevronDownIcon } from './ChevronDownIcon';
|
|
2
|
-
export { default as ChevronRightIcon } from './ChevronRightIcon';
|
|
3
|
-
export { default as ChevronLeftIcon } from './ChevronLeftIcon';
|
|
4
|
-
export { default as CrossIcon } from './CrossIcon';
|
|
1
|
+
export { default as ChevronDownIcon } from './ChevronDownIcon';
|
|
2
|
+
export { default as ChevronRightIcon } from './ChevronRightIcon';
|
|
3
|
+
export { default as ChevronLeftIcon } from './ChevronLeftIcon';
|
|
4
|
+
export { default as CrossIcon } from './CrossIcon';
|
package/lib/cjs/Input/Input.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface InputProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
inputComponent?: React.ReactElement;
|
|
5
|
-
}
|
|
6
|
-
declare const Input: React.FC<InputProps>;
|
|
7
|
-
export default Input;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface InputProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
inputComponent?: React.ReactElement;
|
|
5
|
+
}
|
|
6
|
+
declare const Input: React.FC<InputProps>;
|
|
7
|
+
export default Input;
|
package/lib/cjs/Input/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Input';
|
|
1
|
+
export { default } from './Input';
|
package/lib/cjs/Map/Map.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { MapsProps } from './components/Maps';
|
|
3
|
-
import 'leaflet/dist/leaflet.css';
|
|
4
|
-
import 'leaflet-draw/dist/leaflet.draw.css';
|
|
5
|
-
import { Location } from './models';
|
|
6
|
-
declare const Map: React.FC<AppProps>;
|
|
7
|
-
export type AppProps = MapsProps & {
|
|
8
|
-
onClose?: (() => void);
|
|
9
|
-
onSave?: ((locations: Location[]) => void);
|
|
10
|
-
onChange?: ((locations: Location[]) => void);
|
|
11
|
-
customButtons?: {
|
|
12
|
-
cancelButton?: HTMLElement;
|
|
13
|
-
saveButton?: HTMLElement;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export default Map;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MapsProps } from './components/Maps';
|
|
3
|
+
import 'leaflet/dist/leaflet.css';
|
|
4
|
+
import 'leaflet-draw/dist/leaflet.draw.css';
|
|
5
|
+
import { Location } from './models';
|
|
6
|
+
declare const Map: React.FC<AppProps>;
|
|
7
|
+
export type AppProps = MapsProps & {
|
|
8
|
+
onClose?: (() => void);
|
|
9
|
+
onSave?: ((locations: Location[]) => void);
|
|
10
|
+
onChange?: ((locations: Location[]) => void);
|
|
11
|
+
customButtons?: {
|
|
12
|
+
cancelButton?: HTMLElement;
|
|
13
|
+
saveButton?: HTMLElement;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default Map;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const CenterActiveAreaControl: React.FC<CenterActiveAreaControlProps>;
|
|
3
|
-
export type CenterActiveAreaControlProps = {
|
|
4
|
-
autoCenter?: boolean;
|
|
5
|
-
};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const CenterActiveAreaControl: React.FC<CenterActiveAreaControlProps>;
|
|
3
|
+
export type CenterActiveAreaControlProps = {
|
|
4
|
+
autoCenter?: boolean;
|
|
5
|
+
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ControlPosition, DrawEvents } from 'leaflet';
|
|
2
|
-
export declare const DrawTools: (props: DrawToolsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export type DrawToolsProps = {
|
|
4
|
-
position?: ControlPosition | undefined;
|
|
5
|
-
handleOnCreated?: (v: DrawEvents.Created) => void;
|
|
6
|
-
handleOnDeleted?: (v: DrawEvents.Deleted) => void;
|
|
7
|
-
handleOnEdited?: (v: DrawEvents.Edited) => void;
|
|
8
|
-
draw?: drawType;
|
|
9
|
-
editable?: boolean;
|
|
10
|
-
};
|
|
11
|
-
export type drawType = {
|
|
12
|
-
polyline?: boolean;
|
|
13
|
-
polygon?: boolean;
|
|
14
|
-
rectangle?: boolean;
|
|
15
|
-
circle?: boolean;
|
|
16
|
-
marker?: boolean;
|
|
17
|
-
circlemarker?: boolean;
|
|
18
|
-
};
|
|
1
|
+
import { ControlPosition, DrawEvents } from 'leaflet';
|
|
2
|
+
export declare const DrawTools: (props: DrawToolsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export type DrawToolsProps = {
|
|
4
|
+
position?: ControlPosition | undefined;
|
|
5
|
+
handleOnCreated?: (v: DrawEvents.Created) => void;
|
|
6
|
+
handleOnDeleted?: (v: DrawEvents.Deleted) => void;
|
|
7
|
+
handleOnEdited?: (v: DrawEvents.Edited) => void;
|
|
8
|
+
draw?: drawType;
|
|
9
|
+
editable?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type drawType = {
|
|
12
|
+
polyline?: boolean;
|
|
13
|
+
polygon?: boolean;
|
|
14
|
+
rectangle?: boolean;
|
|
15
|
+
circle?: boolean;
|
|
16
|
+
marker?: boolean;
|
|
17
|
+
circlemarker?: boolean;
|
|
18
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare const LocationContext: import("react").Context<LocationContent>;
|
|
1
|
+
import { Location } from '../models';
|
|
2
|
+
export type LocationContent = {
|
|
3
|
+
locations: Location[];
|
|
4
|
+
setLocations: React.Dispatch<React.SetStateAction<Location[]>>;
|
|
5
|
+
};
|
|
6
|
+
export declare const LocationContext: import("react").Context<LocationContent>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import 'leaflet.fullscreen/Control.FullScreen.css';
|
|
2
|
-
import { ControlPosition } from 'leaflet';
|
|
3
|
-
export declare const MapFullscreenControl: (props: MapFullscreenControlProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
/** Props interface for MapFullscreenControl component */
|
|
5
|
-
export type MapFullscreenControlProps = {
|
|
6
|
-
/** Change the content of the button, can be HTML, default null */
|
|
7
|
-
content?: string | undefined;
|
|
8
|
-
/** Change the position of the button can be topleft, topright, bottomright or bottomleft, default topleft */
|
|
9
|
-
position?: ControlPosition | undefined;
|
|
10
|
-
/** Change the title of the button, default Full Screen */
|
|
11
|
-
title?: string | undefined;
|
|
12
|
-
/** Change the title of the button when fullscreen is on, default Exit Full Screen */
|
|
13
|
-
titleCancel?: string | undefined;
|
|
14
|
-
/** Force separate button to detach from zoom buttons, default false */
|
|
15
|
-
forceSeparateButton?: boolean | undefined;
|
|
16
|
-
/** Force use of pseudo full screen even if full screen API is available, default false */
|
|
17
|
-
forcePseudoFullscreen?: boolean | undefined;
|
|
18
|
-
/** Use pseudo fullscreen */
|
|
19
|
-
pseudoFullscreen?: boolean | undefined;
|
|
20
|
-
/** Dom element to render in full screen, false by default, fallback to map._container */
|
|
21
|
-
fullscreenElement?: false | HTMLElement | undefined;
|
|
22
|
-
};
|
|
1
|
+
import 'leaflet.fullscreen/Control.FullScreen.css';
|
|
2
|
+
import { ControlPosition } from 'leaflet';
|
|
3
|
+
export declare const MapFullscreenControl: (props: MapFullscreenControlProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
/** Props interface for MapFullscreenControl component */
|
|
5
|
+
export type MapFullscreenControlProps = {
|
|
6
|
+
/** Change the content of the button, can be HTML, default null */
|
|
7
|
+
content?: string | undefined;
|
|
8
|
+
/** Change the position of the button can be topleft, topright, bottomright or bottomleft, default topleft */
|
|
9
|
+
position?: ControlPosition | undefined;
|
|
10
|
+
/** Change the title of the button, default Full Screen */
|
|
11
|
+
title?: string | undefined;
|
|
12
|
+
/** Change the title of the button when fullscreen is on, default Exit Full Screen */
|
|
13
|
+
titleCancel?: string | undefined;
|
|
14
|
+
/** Force separate button to detach from zoom buttons, default false */
|
|
15
|
+
forceSeparateButton?: boolean | undefined;
|
|
16
|
+
/** Force use of pseudo full screen even if full screen API is available, default false */
|
|
17
|
+
forcePseudoFullscreen?: boolean | undefined;
|
|
18
|
+
/** Use pseudo fullscreen */
|
|
19
|
+
pseudoFullscreen?: boolean | undefined;
|
|
20
|
+
/** Dom element to render in full screen, false by default, fallback to map._container */
|
|
21
|
+
fullscreenElement?: false | HTMLElement | undefined;
|
|
22
|
+
};
|