cortex-react-ui 0.2.26 → 0.2.28
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 +21 -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 -19
- package/lib/cjs/Map/components/LocationContext.d.ts +7 -6
- package/lib/cjs/Map/components/MapFullscreenControl.d.ts +22 -23
- package/lib/cjs/Map/components/Maps.d.ts +22 -23
- 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 -9
- 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 +19 -19
- package/lib/cjs/Scanner/Scanner.d.ts +12 -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 +30 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/utils/classNames.d.ts +1 -1
- package/lib/cjs/utils/forwardRef.d.ts +7 -35
- package/lib/cjs/utils/setRef.d.ts +2 -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 +21 -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 -19
- package/lib/esm/Map/components/LocationContext.d.ts +7 -6
- package/lib/esm/Map/components/MapFullscreenControl.d.ts +22 -23
- package/lib/esm/Map/components/Maps.d.ts +22 -23
- 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 -9
- 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 +19 -19
- package/lib/esm/Scanner/Scanner.d.ts +12 -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 +30 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/utils/classNames.d.ts +1 -1
- package/lib/esm/utils/forwardRef.d.ts +7 -35
- package/lib/esm/utils/setRef.d.ts +2 -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 +333 -361
- package/package.json +60 -61
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function classNames(...values: any[]): string;
|
|
1
|
+
export default function classNames(...values: any[]): string;
|
|
@@ -1,35 +1,7 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
ref?: React.Ref<T>;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Type pour la fonction de rendu compatible React 18/19
|
|
12
|
-
*/
|
|
13
|
-
export type ForwardRefRenderFunction<T, P> = (props: P, ref: React.ForwardedRef<T>) => React.ReactElement | null;
|
|
14
|
-
/**
|
|
15
|
-
* Composant wrapper compatible React 18 et React 19
|
|
16
|
-
*
|
|
17
|
-
* Utilise la signature standard de React.forwardRef qui est compatible
|
|
18
|
-
* avec les deux versions de React.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```tsx
|
|
22
|
-
* interface MyComponentProps {
|
|
23
|
-
* className?: string;
|
|
24
|
-
* children?: React.ReactNode;
|
|
25
|
-
* }
|
|
26
|
-
*
|
|
27
|
-
* const MyComponent = forwardRef<HTMLDivElement, MyComponentProps>(
|
|
28
|
-
* (props, ref) => (
|
|
29
|
-
* <div ref={ref} className={props.className}>{props.children}</div>
|
|
30
|
-
* )
|
|
31
|
-
* );
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
export declare function forwardRef<T, P>(render: ForwardRefRenderFunction<T, P>): React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<T>>;
|
|
35
|
-
export default forwardRef;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type ForwardRefProps<T, P = object> = P & {
|
|
3
|
+
ref?: React.Ref<T>;
|
|
4
|
+
};
|
|
5
|
+
export type ForwardRefRenderFunction<T, P> = (props: P, ref: React.ForwardedRef<T>) => React.ReactElement | null;
|
|
6
|
+
export declare function forwardRef<T, P>(render: ForwardRefRenderFunction<T, P>): React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<T>>;
|
|
7
|
+
export default forwardRef;
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
* Helper pour assigner une valeur à une ref React
|
|
4
|
-
* Compatible avec React 18 et React 19
|
|
5
|
-
*
|
|
6
|
-
* @param ref - La ref React (callback ref, MutableRefObject, ou RefObject)
|
|
7
|
-
* @param value - La valeur à assigner
|
|
8
|
-
*/
|
|
9
|
-
export default function setRef<T>(ref: React.Ref<T> | null | undefined, value: T | null): void;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export default function setRef<T>(ref: React.Ref<T> | null | undefined, value: T | null): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export default function useClickOutside(callback: () => void, nodes: (string | HTMLElement | React.RefObject<HTMLElement>)[]): void;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export default function useClickOutside(callback: () => void, nodes: (string | HTMLElement | React.RefObject<HTMLElement>)[]): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export default function useElement(element: string | HTMLElement | React.RefObject<HTMLElement> | undefined): HTMLElement | undefined;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export default function useElement(element: string | HTMLElement | React.RefObject<HTMLElement> | undefined): HTMLElement | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Hook pour combiner plusieurs refs en une seule
|
|
4
|
-
* Compatible avec React 18 et React 19
|
|
5
|
-
*
|
|
6
|
-
* @param refA - Première ref
|
|
7
|
-
* @param refB - Seconde ref
|
|
8
|
-
* @returns Une ref qui met à jour les deux refs
|
|
9
|
-
*/
|
|
10
|
-
export default function useForkRef<Instance>(refA: React.Ref<Instance> | null | undefined, refB: React.Ref<Instance> | null | undefined): React.RefCallback<Instance> | null;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Hook pour combiner plusieurs refs en une seule
|
|
4
|
+
* Compatible avec React 18 et React 19
|
|
5
|
+
*
|
|
6
|
+
* @param refA - Première ref
|
|
7
|
+
* @param refB - Seconde ref
|
|
8
|
+
* @returns Une ref qui met à jour les deux refs
|
|
9
|
+
*/
|
|
10
|
+
export default function useForkRef<Instance>(refA: React.Ref<Instance> | null | undefined, refB: React.Ref<Instance> | null | undefined): React.RefCallback<Instance> | null;
|
|
@@ -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,21 @@
|
|
|
1
|
-
|
|
2
|
-
import { WebcamProps } from 'react-webcam';
|
|
3
|
-
declare const Camera: React.FC<CameraProps>;
|
|
4
|
-
export type CameraProps = {
|
|
5
|
-
onCapture: ({ fileStoreName, fileRowId, file }: TfileCapturedProps) => void;
|
|
6
|
-
mode?: 'photo' | 'video';
|
|
7
|
-
isOffline?: boolean;
|
|
8
|
-
isShowOffline?: boolean;
|
|
9
|
-
validateText?: string;
|
|
10
|
-
resetText?: string;
|
|
11
|
-
isShowVideoButton?: boolean;
|
|
12
|
-
isShowSwitchButton?: boolean;
|
|
13
|
-
} & Partial<WebcamProps>;
|
|
14
|
-
export type TfileCapturedProps = {
|
|
15
|
-
fileStoreName?: string | null;
|
|
16
|
-
fileRowId?: number | null;
|
|
17
|
-
file?: File | null;
|
|
18
|
-
imageSrc?: string | null;
|
|
19
|
-
videoSrc?: string | null;
|
|
20
|
-
};
|
|
21
|
-
export default Camera;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WebcamProps } from 'react-webcam';
|
|
3
|
+
declare const Camera: React.FC<CameraProps>;
|
|
4
|
+
export type CameraProps = {
|
|
5
|
+
onCapture: ({ fileStoreName, fileRowId, file }: TfileCapturedProps) => void;
|
|
6
|
+
mode?: 'photo' | 'video';
|
|
7
|
+
isOffline?: boolean;
|
|
8
|
+
isShowOffline?: boolean;
|
|
9
|
+
validateText?: string;
|
|
10
|
+
resetText?: string;
|
|
11
|
+
isShowVideoButton?: boolean;
|
|
12
|
+
isShowSwitchButton?: boolean;
|
|
13
|
+
} & Partial<WebcamProps>;
|
|
14
|
+
export type TfileCapturedProps = {
|
|
15
|
+
fileStoreName?: string | null;
|
|
16
|
+
fileRowId?: number | null;
|
|
17
|
+
file?: File | null;
|
|
18
|
+
imageSrc?: string | null;
|
|
19
|
+
videoSrc?: string | null;
|
|
20
|
+
};
|
|
21
|
+
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/esm/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/esm/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/esm/Input/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './Input';
|
|
1
|
+
export { default } from './Input';
|
package/lib/esm/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,19 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
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
|
+
};
|