cortex-react-ui 0.1.182 → 0.2.1

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.
Files changed (221) hide show
  1. package/lib/cjs/{types/BarLoader → BarLoader}/BarLoader.d.ts +0 -1
  2. package/lib/cjs/{types/Camera → Camera}/Camera.d.ts +5 -3
  3. package/lib/{esm/types → cjs}/DatePicker/DatePicker.d.ts +1 -1
  4. package/lib/cjs/{types/DomContainer → DomContainer}/DomContainer.d.ts +1 -1
  5. package/lib/cjs/Map/App.d.ts +15 -0
  6. package/lib/cjs/Map/Map.d.ts +15 -0
  7. package/lib/cjs/Map/components/CenterActiveAreaControl.d.ts +5 -0
  8. package/lib/cjs/Map/components/DrawTools.d.ts +16 -0
  9. package/lib/cjs/Map/components/LocationContext.d.ts +7 -0
  10. package/lib/cjs/Map/components/MapFullscreenControl.d.ts +22 -0
  11. package/lib/cjs/Map/components/Maps.d.ts +19 -0
  12. package/lib/cjs/Map/config/appConfig.d.ts +4 -0
  13. package/lib/cjs/Map/config/config.d.ts +6 -0
  14. package/lib/cjs/Map/hooks/getGeoJSONTest.d.ts +16 -0
  15. package/lib/cjs/Map/hooks/useLocationContext.d.ts +1 -0
  16. package/lib/cjs/Map/index.d.ts +1 -0
  17. package/lib/cjs/Map/models/index.d.ts +2 -0
  18. package/lib/cjs/Map/models/location.d.ts +6 -0
  19. package/lib/cjs/Map/models/locationSearch.d.ts +4 -0
  20. package/lib/cjs/Map/models/point.d.ts +6 -0
  21. package/lib/cjs/Map/utils/logger.d.ts +17 -0
  22. package/lib/cjs/Map/utils/toolkit.d.ts +129 -0
  23. package/lib/cjs/{types/Menu → Menu}/index.d.ts +1 -1
  24. package/lib/cjs/{types/Popper → Popper}/Popper.d.ts +1 -1
  25. package/lib/cjs/Scanner/Dialog.d.ts +8 -0
  26. package/lib/cjs/Scanner/DialogBody.d.ts +3 -0
  27. package/lib/cjs/Scanner/DialogMask.d.ts +3 -0
  28. package/lib/{esm/types → cjs}/Scanner/ScanConfirmationDialog.d.ts +4 -3
  29. package/lib/cjs/{types/Scanner → Scanner}/Scanner.d.ts +4 -3
  30. package/lib/{esm/types → cjs}/Transition/CSSTransition.d.ts +1 -1
  31. package/lib/cjs/{types/Transition → Transition}/Fade.d.ts +1 -1
  32. package/lib/cjs/{types/index.d.ts → index.d.ts} +8 -1
  33. package/lib/cjs/index.js +26 -14
  34. package/lib/cjs/index.js.map +1 -1
  35. package/lib/cjs/{types/utils → utils}/setRef.d.ts +1 -0
  36. package/lib/esm/{types/BarLoader → BarLoader}/BarLoader.d.ts +0 -1
  37. package/lib/esm/{types/Camera → Camera}/Camera.d.ts +5 -3
  38. package/lib/{cjs/types → esm}/DatePicker/DatePicker.d.ts +1 -1
  39. package/lib/esm/{types/DomContainer → DomContainer}/DomContainer.d.ts +1 -1
  40. package/lib/esm/Map/App.d.ts +15 -0
  41. package/lib/esm/Map/Map.d.ts +15 -0
  42. package/lib/esm/Map/components/CenterActiveAreaControl.d.ts +5 -0
  43. package/lib/esm/Map/components/DrawTools.d.ts +16 -0
  44. package/lib/esm/Map/components/LocationContext.d.ts +7 -0
  45. package/lib/esm/Map/components/MapFullscreenControl.d.ts +22 -0
  46. package/lib/esm/Map/components/Maps.d.ts +19 -0
  47. package/lib/esm/Map/config/appConfig.d.ts +4 -0
  48. package/lib/esm/Map/config/config.d.ts +6 -0
  49. package/lib/esm/Map/hooks/getGeoJSONTest.d.ts +16 -0
  50. package/lib/esm/Map/hooks/useLocationContext.d.ts +1 -0
  51. package/lib/esm/Map/index.d.ts +1 -0
  52. package/lib/esm/Map/models/index.d.ts +2 -0
  53. package/lib/esm/Map/models/location.d.ts +6 -0
  54. package/lib/esm/Map/models/locationSearch.d.ts +4 -0
  55. package/lib/esm/Map/models/point.d.ts +6 -0
  56. package/lib/esm/Map/utils/logger.d.ts +17 -0
  57. package/lib/esm/Map/utils/toolkit.d.ts +129 -0
  58. package/lib/esm/{types/Menu → Menu}/index.d.ts +1 -1
  59. package/lib/esm/{types/Popper → Popper}/Popper.d.ts +1 -1
  60. package/lib/esm/Scanner/Dialog.d.ts +8 -0
  61. package/lib/esm/Scanner/DialogBody.d.ts +3 -0
  62. package/lib/esm/Scanner/DialogMask.d.ts +3 -0
  63. package/lib/{cjs/types → esm}/Scanner/ScanConfirmationDialog.d.ts +4 -3
  64. package/lib/esm/{types/Scanner → Scanner}/Scanner.d.ts +4 -3
  65. package/lib/{cjs/types → esm}/Transition/CSSTransition.d.ts +1 -1
  66. package/lib/esm/{types/Transition → Transition}/Fade.d.ts +1 -1
  67. package/lib/esm/{types/index.d.ts → index.d.ts} +8 -1
  68. package/lib/esm/index.js +15 -17
  69. package/lib/esm/index.js.map +1 -1
  70. package/lib/esm/{types/utils → utils}/setRef.d.ts +1 -0
  71. package/lib/images/layers-2x.png +0 -0
  72. package/lib/images/layers.png +0 -0
  73. package/lib/images/marker-icon-2x.png +0 -0
  74. package/lib/images/marker-icon.png +0 -0
  75. package/lib/images/marker-shadow.png +0 -0
  76. package/lib/index.d.ts +106 -29
  77. package/lib/styles/BarLoader/index.scss +4 -4
  78. package/lib/styles/Button/index.scss +33 -33
  79. package/lib/styles/Camera/index.css +192 -0
  80. package/lib/styles/Camera/index.scss +31 -13
  81. package/lib/styles/Dialog/index.scss +42 -42
  82. package/lib/styles/Icons/index.scss +1 -1
  83. package/lib/styles/Input/index.scss +4 -4
  84. package/lib/styles/Map/index.scss +50 -0
  85. package/lib/styles/Menu/index.scss +23 -23
  86. package/lib/styles/Popper/index.scss +4 -4
  87. package/lib/styles/Scanner/index.scss +14 -14
  88. package/lib/styles/Selected/index.scss +4 -4
  89. package/lib/styles/Spinner/index.scss +10 -10
  90. package/lib/styles/TagInput/index.scss +31 -31
  91. package/lib/styles/TextField/index.scss +4 -4
  92. package/lib/styles/ToggleButton/index.scss +20 -20
  93. package/lib/styles/Tooltip/index.scss +8 -8
  94. package/lib/styles/global.scss +20 -16
  95. package/lib/styles/index.scss +32 -30
  96. package/lib/typings/typings/css.d.ts +15 -0
  97. package/package.json +45 -16
  98. package/lib/cjs/types/Scanner/Dialog.d.ts +0 -13
  99. package/lib/cjs/types/Scanner/DialogBody.d.ts +0 -3
  100. package/lib/cjs/types/Scanner/DialogMask.d.ts +0 -3
  101. package/lib/esm/types/Scanner/Dialog.d.ts +0 -13
  102. package/lib/esm/types/Scanner/DialogBody.d.ts +0 -3
  103. package/lib/esm/types/Scanner/DialogMask.d.ts +0 -3
  104. /package/lib/cjs/{types/BarLoader → BarLoader}/index.d.ts +0 -0
  105. /package/lib/cjs/{types/Button → Button}/Button.d.ts +0 -0
  106. /package/lib/cjs/{types/Button → Button}/index.d.ts +0 -0
  107. /package/lib/cjs/{types/Camera → Camera}/FileStorageDb.d.ts +0 -0
  108. /package/lib/cjs/{types/Camera → Camera}/index.d.ts +0 -0
  109. /package/lib/cjs/{types/Camera → Camera}/useTimer.d.ts +0 -0
  110. /package/lib/cjs/{types/DatePicker → DatePicker}/index.d.ts +0 -0
  111. /package/lib/cjs/{types/Dialog → Dialog}/ConfirmDialog.d.ts +0 -0
  112. /package/lib/cjs/{types/Dialog → Dialog}/Dialog.d.ts +0 -0
  113. /package/lib/cjs/{types/Dialog → Dialog}/DialogActions.d.ts +0 -0
  114. /package/lib/cjs/{types/Dialog → Dialog}/DialogContent.d.ts +0 -0
  115. /package/lib/cjs/{types/Dialog → Dialog}/DialogFooter.d.ts +0 -0
  116. /package/lib/cjs/{types/Dialog → Dialog}/DialogHeader.d.ts +0 -0
  117. /package/lib/cjs/{types/Dialog → Dialog}/DialogTitle.d.ts +0 -0
  118. /package/lib/cjs/{types/Dialog → Dialog}/ErrorDialog.d.ts +0 -0
  119. /package/lib/cjs/{types/Dialog → Dialog}/WarningDialog.d.ts +0 -0
  120. /package/lib/cjs/{types/Dialog → Dialog}/index.d.ts +0 -0
  121. /package/lib/cjs/{types/DomContainer → DomContainer}/index.d.ts +0 -0
  122. /package/lib/cjs/{types/Icons → Icons}/ChevronDownIcon.d.ts +0 -0
  123. /package/lib/cjs/{types/Icons → Icons}/ChevronLeftIcon.d.ts +0 -0
  124. /package/lib/cjs/{types/Icons → Icons}/ChevronRightIcon.d.ts +0 -0
  125. /package/lib/cjs/{types/Icons → Icons}/CrossIcon.d.ts +0 -0
  126. /package/lib/cjs/{types/Icons → Icons}/index.d.ts +0 -0
  127. /package/lib/cjs/{types/Input → Input}/Input.d.ts +0 -0
  128. /package/lib/cjs/{types/Input → Input}/index.d.ts +0 -0
  129. /package/lib/cjs/{types/Menu → Menu}/AuthDownloadLink.d.ts +0 -0
  130. /package/lib/cjs/{types/Menu → Menu}/ContextMenu.d.ts +0 -0
  131. /package/lib/cjs/{types/Menu → Menu}/Divider.d.ts +0 -0
  132. /package/lib/cjs/{types/Menu → Menu}/Menu.d.ts +0 -0
  133. /package/lib/cjs/{types/Menu → Menu}/MenuGroup.d.ts +0 -0
  134. /package/lib/cjs/{types/Menu → Menu}/MenuItem.d.ts +0 -0
  135. /package/lib/cjs/{types/Menu → Menu}/PopupMenu.d.ts +0 -0
  136. /package/lib/cjs/{types/Popper → Popper}/index.d.ts +0 -0
  137. /package/lib/cjs/{types/Scanner → Scanner}/index.d.ts +0 -0
  138. /package/lib/cjs/{types/Select → Select}/Select.d.ts +0 -0
  139. /package/lib/cjs/{types/Select → Select}/index.d.ts +0 -0
  140. /package/lib/cjs/{types/Selected → Selected}/Selected.d.ts +0 -0
  141. /package/lib/cjs/{types/Selected → Selected}/index.d.ts +0 -0
  142. /package/lib/cjs/{types/Spinner → Spinner}/Spinner.d.ts +0 -0
  143. /package/lib/cjs/{types/Spinner → Spinner}/index.d.ts +0 -0
  144. /package/lib/cjs/{types/TagInput → TagInput}/TagInput.d.ts +0 -0
  145. /package/lib/cjs/{types/TagInput → TagInput}/TagItem.d.ts +0 -0
  146. /package/lib/cjs/{types/TagInput → TagInput}/TagSearchInput.d.ts +0 -0
  147. /package/lib/cjs/{types/TagInput → TagInput}/TagSuggestion.d.ts +0 -0
  148. /package/lib/cjs/{types/TagInput → TagInput}/TagSuggestionGroup.d.ts +0 -0
  149. /package/lib/cjs/{types/TagInput → TagInput}/TagSuggestionItem.d.ts +0 -0
  150. /package/lib/cjs/{types/TagInput → TagInput}/index.d.ts +0 -0
  151. /package/lib/cjs/{types/TagInput → TagInput}/types.d.ts +0 -0
  152. /package/lib/cjs/{types/TextField → TextField}/TextField.d.ts +0 -0
  153. /package/lib/cjs/{types/TextField → TextField}/TextFieldInput.d.ts +0 -0
  154. /package/lib/cjs/{types/TextField → TextField}/index.d.ts +0 -0
  155. /package/lib/cjs/{types/ToggleButton → ToggleButton}/ToggleButton.d.ts +0 -0
  156. /package/lib/cjs/{types/ToggleButton → ToggleButton}/index.d.ts +0 -0
  157. /package/lib/cjs/{types/Tooltip → Tooltip}/Tooltip.d.ts +0 -0
  158. /package/lib/cjs/{types/Tooltip → Tooltip}/index.d.ts +0 -0
  159. /package/lib/cjs/{types/utils → utils}/classNames.d.ts +0 -0
  160. /package/lib/cjs/{types/utils → utils}/useClickOutside.d.ts +0 -0
  161. /package/lib/cjs/{types/utils → utils}/useElement.d.ts +0 -0
  162. /package/lib/cjs/{types/utils → utils}/useForkRef.d.ts +0 -0
  163. /package/lib/esm/{types/BarLoader → BarLoader}/index.d.ts +0 -0
  164. /package/lib/esm/{types/Button → Button}/Button.d.ts +0 -0
  165. /package/lib/esm/{types/Button → Button}/index.d.ts +0 -0
  166. /package/lib/esm/{types/Camera → Camera}/FileStorageDb.d.ts +0 -0
  167. /package/lib/esm/{types/Camera → Camera}/index.d.ts +0 -0
  168. /package/lib/esm/{types/Camera → Camera}/useTimer.d.ts +0 -0
  169. /package/lib/esm/{types/DatePicker → DatePicker}/index.d.ts +0 -0
  170. /package/lib/esm/{types/Dialog → Dialog}/ConfirmDialog.d.ts +0 -0
  171. /package/lib/esm/{types/Dialog → Dialog}/Dialog.d.ts +0 -0
  172. /package/lib/esm/{types/Dialog → Dialog}/DialogActions.d.ts +0 -0
  173. /package/lib/esm/{types/Dialog → Dialog}/DialogContent.d.ts +0 -0
  174. /package/lib/esm/{types/Dialog → Dialog}/DialogFooter.d.ts +0 -0
  175. /package/lib/esm/{types/Dialog → Dialog}/DialogHeader.d.ts +0 -0
  176. /package/lib/esm/{types/Dialog → Dialog}/DialogTitle.d.ts +0 -0
  177. /package/lib/esm/{types/Dialog → Dialog}/ErrorDialog.d.ts +0 -0
  178. /package/lib/esm/{types/Dialog → Dialog}/WarningDialog.d.ts +0 -0
  179. /package/lib/esm/{types/Dialog → Dialog}/index.d.ts +0 -0
  180. /package/lib/esm/{types/DomContainer → DomContainer}/index.d.ts +0 -0
  181. /package/lib/esm/{types/Icons → Icons}/ChevronDownIcon.d.ts +0 -0
  182. /package/lib/esm/{types/Icons → Icons}/ChevronLeftIcon.d.ts +0 -0
  183. /package/lib/esm/{types/Icons → Icons}/ChevronRightIcon.d.ts +0 -0
  184. /package/lib/esm/{types/Icons → Icons}/CrossIcon.d.ts +0 -0
  185. /package/lib/esm/{types/Icons → Icons}/index.d.ts +0 -0
  186. /package/lib/esm/{types/Input → Input}/Input.d.ts +0 -0
  187. /package/lib/esm/{types/Input → Input}/index.d.ts +0 -0
  188. /package/lib/esm/{types/Menu → Menu}/AuthDownloadLink.d.ts +0 -0
  189. /package/lib/esm/{types/Menu → Menu}/ContextMenu.d.ts +0 -0
  190. /package/lib/esm/{types/Menu → Menu}/Divider.d.ts +0 -0
  191. /package/lib/esm/{types/Menu → Menu}/Menu.d.ts +0 -0
  192. /package/lib/esm/{types/Menu → Menu}/MenuGroup.d.ts +0 -0
  193. /package/lib/esm/{types/Menu → Menu}/MenuItem.d.ts +0 -0
  194. /package/lib/esm/{types/Menu → Menu}/PopupMenu.d.ts +0 -0
  195. /package/lib/esm/{types/Popper → Popper}/index.d.ts +0 -0
  196. /package/lib/esm/{types/Scanner → Scanner}/index.d.ts +0 -0
  197. /package/lib/esm/{types/Select → Select}/Select.d.ts +0 -0
  198. /package/lib/esm/{types/Select → Select}/index.d.ts +0 -0
  199. /package/lib/esm/{types/Selected → Selected}/Selected.d.ts +0 -0
  200. /package/lib/esm/{types/Selected → Selected}/index.d.ts +0 -0
  201. /package/lib/esm/{types/Spinner → Spinner}/Spinner.d.ts +0 -0
  202. /package/lib/esm/{types/Spinner → Spinner}/index.d.ts +0 -0
  203. /package/lib/esm/{types/TagInput → TagInput}/TagInput.d.ts +0 -0
  204. /package/lib/esm/{types/TagInput → TagInput}/TagItem.d.ts +0 -0
  205. /package/lib/esm/{types/TagInput → TagInput}/TagSearchInput.d.ts +0 -0
  206. /package/lib/esm/{types/TagInput → TagInput}/TagSuggestion.d.ts +0 -0
  207. /package/lib/esm/{types/TagInput → TagInput}/TagSuggestionGroup.d.ts +0 -0
  208. /package/lib/esm/{types/TagInput → TagInput}/TagSuggestionItem.d.ts +0 -0
  209. /package/lib/esm/{types/TagInput → TagInput}/index.d.ts +0 -0
  210. /package/lib/esm/{types/TagInput → TagInput}/types.d.ts +0 -0
  211. /package/lib/esm/{types/TextField → TextField}/TextField.d.ts +0 -0
  212. /package/lib/esm/{types/TextField → TextField}/TextFieldInput.d.ts +0 -0
  213. /package/lib/esm/{types/TextField → TextField}/index.d.ts +0 -0
  214. /package/lib/esm/{types/ToggleButton → ToggleButton}/ToggleButton.d.ts +0 -0
  215. /package/lib/esm/{types/ToggleButton → ToggleButton}/index.d.ts +0 -0
  216. /package/lib/esm/{types/Tooltip → Tooltip}/Tooltip.d.ts +0 -0
  217. /package/lib/esm/{types/Tooltip → Tooltip}/index.d.ts +0 -0
  218. /package/lib/esm/{types/utils → utils}/classNames.d.ts +0 -0
  219. /package/lib/esm/{types/utils → utils}/useClickOutside.d.ts +0 -0
  220. /package/lib/esm/{types/utils → utils}/useElement.d.ts +0 -0
  221. /package/lib/esm/{types/utils → utils}/useForkRef.d.ts +0 -0
@@ -3,7 +3,6 @@ export interface BarLoaderProps {
3
3
  title?: string;
4
4
  color?: 'red' | 'blue' | 'yellow' | 'orange' | 'green';
5
5
  className?: string;
6
- mode: 'determinate' | 'indeterminate';
7
6
  isComplete: boolean;
8
7
  }
9
8
  declare const BarLoader: React.FC<BarLoaderProps>;
@@ -1,14 +1,16 @@
1
+ /// <reference types="react" />
1
2
  import { WebcamProps } from 'react-webcam';
2
- declare const Camera: ({ onCapture, isOffline, mode, validateText, resetText, isShowOffline, ...props }: CameraProps) => JSX.Element;
3
- export declare type CameraProps = {
3
+ declare const Camera: React.FC<CameraProps>;
4
+ export type CameraProps = {
4
5
  onCapture: ({ fileStoreName, fileRowId, file }: TfileCapturedProps) => void;
5
6
  mode?: 'photo' | 'video';
6
7
  isOffline?: boolean;
7
8
  isShowOffline?: boolean;
8
9
  validateText?: string;
9
10
  resetText?: string;
11
+ isShowVideoButton?: boolean;
10
12
  } & Partial<WebcamProps>;
11
- export declare type TfileCapturedProps = {
13
+ export type TfileCapturedProps = {
12
14
  fileStoreName?: string | null;
13
15
  fileRowId?: number | null;
14
16
  file?: File | null;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type Props = {
2
+ type Props = {
3
3
  value?: Date;
4
4
  className?: string;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type Props = {
2
+ type Props = {
3
3
  children?: React.ReactNode;
4
4
  container?: HTMLElement | (() => HTMLElement);
5
5
  };
@@ -0,0 +1,15 @@
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 { Point } from './models';
6
+ declare const App: React.FC<AppProps>;
7
+ export type AppProps = MapsProps & {
8
+ onClose: (() => void);
9
+ onSave: ((points: Point[]) => void);
10
+ customButtons?: {
11
+ cancelButton?: HTMLElement;
12
+ saveButton?: HTMLElement;
13
+ };
14
+ };
15
+ export default App;
@@ -0,0 +1,15 @@
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 { Point } from './models';
6
+ declare const Map: React.FC<AppProps>;
7
+ export type AppProps = MapsProps & {
8
+ onClose: (() => void);
9
+ onSave: ((points: Point[]) => void);
10
+ customButtons?: {
11
+ cancelButton?: HTMLElement;
12
+ saveButton?: HTMLElement;
13
+ };
14
+ };
15
+ export default Map;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const CenterActiveAreaControl: React.FC<CenterActiveAreaControlProps>;
3
+ export type CenterActiveAreaControlProps = {
4
+ autoCenter?: boolean;
5
+ };
@@ -0,0 +1,16 @@
1
+ import { ControlPosition } 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: void) => void;
6
+ handleOnDeleted?: (v: void) => void;
7
+ draw?: drawType;
8
+ };
9
+ export type drawType = {
10
+ polyline?: boolean;
11
+ polygon?: boolean;
12
+ rectangle?: boolean;
13
+ circle?: boolean;
14
+ marker?: boolean;
15
+ circlemarker?: boolean;
16
+ };
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { Location } from '../models';
3
+ export type LocationContent = {
4
+ locations: Location[];
5
+ setLocations: React.Dispatch<React.SetStateAction<Location[]>>;
6
+ };
7
+ export declare const LocationContext: import("react").Context<LocationContent>;
@@ -0,0 +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
+ };
@@ -0,0 +1,19 @@
1
+ import { MapContainerProps } from 'react-leaflet';
2
+ import { LatLngTuple } from 'leaflet';
3
+ import { Location } from '../models';
4
+ import { CenterActiveAreaControlProps } from './CenterActiveAreaControl';
5
+ import { MapFullscreenControlProps } from './MapFullscreenControl';
6
+ import { DrawToolsProps } from './DrawTools';
7
+ declare const Maps: (props: MapsProps) => import("react/jsx-runtime").JSX.Element;
8
+ export type MapsProps = {
9
+ MapContainerProps?: MapContainerProps;
10
+ center?: LatLngTuple;
11
+ fullscreen?: MapFullscreenControlProps | boolean;
12
+ centerActiveArea?: CenterActiveAreaControlProps | boolean;
13
+ drawTools?: DrawToolsProps | boolean;
14
+ minZoom?: number;
15
+ maxZoom?: number;
16
+ zoom?: number;
17
+ data?: Location[];
18
+ };
19
+ export default Maps;
@@ -0,0 +1,4 @@
1
+ export default class AppConfig {
2
+ prod: boolean;
3
+ apiUrl: string;
4
+ }
@@ -0,0 +1,6 @@
1
+ import AppConfig from './appConfig';
2
+ declare class Config extends AppConfig {
3
+ constructor();
4
+ }
5
+ declare const _default: Config;
6
+ export default _default;
@@ -0,0 +1,16 @@
1
+ export declare const getGeoJSONTest: () => {
2
+ type: string;
3
+ features: {
4
+ type: string;
5
+ properties: {
6
+ "marker-color": string;
7
+ "marker-size": string;
8
+ "marker-symbol": string;
9
+ description: string;
10
+ };
11
+ geometry: {
12
+ type: string;
13
+ coordinates: number[];
14
+ };
15
+ }[];
16
+ };
@@ -0,0 +1 @@
1
+ export declare const useLocationContext: () => import("../components/LocationContext").LocationContent;
@@ -0,0 +1 @@
1
+ export { default } from './Map';
@@ -0,0 +1,2 @@
1
+ export { default as Location } from './location';
2
+ export { default as Point } from './point';
@@ -0,0 +1,6 @@
1
+ import Point from "./point";
2
+ export default class Location {
3
+ id: number;
4
+ objId: string;
5
+ points: Point[];
6
+ }
@@ -0,0 +1,4 @@
1
+ export default class LocationSearch {
2
+ objId: string[];
3
+ type: string;
4
+ }
@@ -0,0 +1,6 @@
1
+ export default class Point {
2
+ id: number;
3
+ order: number;
4
+ latitude: number;
5
+ longitude: number;
6
+ }
@@ -0,0 +1,17 @@
1
+ interface LogOptions {
2
+ tags?: string[];
3
+ context?: any;
4
+ method?: Function | string;
5
+ }
6
+ export declare enum LogLevel {
7
+ Info = 0,
8
+ Warning = 1,
9
+ Error = 2
10
+ }
11
+ declare class Logger {
12
+ info(msg: any | any[], options?: LogOptions): void;
13
+ warn(msg: any | any[], options?: LogOptions): void;
14
+ error(msg: any | any[], options?: LogOptions): void;
15
+ }
16
+ declare const _default: Logger;
17
+ export default _default;
@@ -0,0 +1,129 @@
1
+ interface MapOptions {
2
+ transformIsoToDate?: boolean;
3
+ strictMapping?: boolean;
4
+ ignoreStrictMappingWhenNull?: boolean;
5
+ }
6
+ interface DiffOptions {
7
+ objectKey?: string;
8
+ predicate?: (item: any, array: any[]) => boolean;
9
+ format?: (item: any) => any;
10
+ alternativeFormat?: (item: any) => any;
11
+ }
12
+ export default class ToolKit {
13
+ /**
14
+ * Type checks
15
+ */
16
+ static isEmailFormat(email: string): boolean;
17
+ static isDefined<T>(arg: T): arg is NonNullable<T>;
18
+ static isObject(arg: any): arg is Object;
19
+ static isString(arg: any): arg is string;
20
+ static isFunction(arg: any): arg is Function;
21
+ static isArray(arg: any): arg is any[];
22
+ static isBoolean(arg: any): arg is boolean;
23
+ static isNumber(arg: any): arg is number;
24
+ static isValidNumber(arg: any): arg is number;
25
+ static isNaN(arg: any): boolean;
26
+ static isFloat(value: number): boolean;
27
+ static isDate(arg: any): arg is Date;
28
+ static isValidDate(arg: any): arg is Date;
29
+ static hasValue(arg: any): boolean;
30
+ static isUndefined(arg: any): arg is undefined;
31
+ static isNull(arg: any): arg is null;
32
+ static isUndefinedOrNull(arg: any): arg is undefined | null;
33
+ static isNativeTypeObject(arg: any): boolean;
34
+ static isEmpty<T extends string | any[]>(arg: T): boolean;
35
+ static noop(): void;
36
+ /**
37
+ * Array
38
+ */
39
+ static take<T>(array: T[], count: number, from?: number): T[];
40
+ static addRange(src: any[], newElements: any[]): void;
41
+ static removeFromCollection<T>(array: T[], predicate: (item: T, index: number) => boolean): boolean;
42
+ static removeAt<T>(array: T[], index: number): boolean;
43
+ static replaceAt<T>(array: T[], index: number, item: T): void;
44
+ static replaceCollectionItem<T>(array: T[], item: T, predicate: (item: T, index: number) => boolean): void;
45
+ static clearCollection(collection: any[]): void;
46
+ static diffCollection(array: any[], values: any[], options?: DiffOptions): any[];
47
+ static findIndex<T>(array: T[], predicate: (item: T, index: number) => boolean): number;
48
+ static find<T>(array: T[], predicate: (item: T, index: number) => boolean): T | null;
49
+ static orderBy<T>(array: T[], propertyAccessor: string, options?: {
50
+ nullFirst?: boolean;
51
+ ascending?: boolean;
52
+ }): void;
53
+ static countCollection<T>(array: T[], predicate: (item: T, index: number) => boolean): number;
54
+ static isCollectionOf<T = any>(array: T[], instanceOf: any): boolean;
55
+ /**
56
+ * String
57
+ */
58
+ static fixedLenInteger(value: number, length: number): string;
59
+ static fixedLenString(value: string, length: number): string;
60
+ static toCamelCase(value: string): string;
61
+ static capitalize(value: string): string;
62
+ /**
63
+ * Number
64
+ */
65
+ static randomNumber(minValue: number, maxValue: number): number;
66
+ /**
67
+ * Date
68
+ */
69
+ static dateOnly(date: Date): Date;
70
+ static formatDateTime(date: Date, timezone?: string): string;
71
+ static formatDateTimeUTC: (date: Date) => string;
72
+ static formatDateUTC: (date: Date, customFn?: (year: string, month: string, day: string) => string) => string;
73
+ static formatDate: (date: Date, customFn?: (year: string, month: string, day: string) => string) => string;
74
+ static formatHourUTC: (value: Date | number, customFn?: (h: string, m: string, s: string) => string) => string;
75
+ static formatHour: (value: Date | number, customFn?: (h: string, m: string, s: string) => string) => string;
76
+ static parseDateUTC(input: string): Date | null;
77
+ static parseDate(input: string): Date | null;
78
+ static parseHour(input: string): Date | null;
79
+ static mergeDateAndTime(date: Date, time: Date): Date | null;
80
+ static safeParseIsoDate<T>(value: T): Date | T;
81
+ static safeParseDate<T>(value: T): Date | T;
82
+ static safeParseUTCDate<T>(value: T): Date | T;
83
+ /**
84
+ * Classes
85
+ */
86
+ static getClassName(instance: any): string | null;
87
+ static getClassMethodName(instance: any, method: Function): string | null;
88
+ static className(...args: any[]): string | undefined;
89
+ /**
90
+ * Utilities
91
+ */
92
+ static getObjectKeysDeep(object: any, prefix?: string): string[];
93
+ static mapToShallowObject(target: any, src: any, filterPredicate?: (key: string, value: any) => boolean): void;
94
+ static mapToDeepObject(target: any, src: any, options?: MapOptions): void;
95
+ static getPropertySafe(obj: any, propertyAccessor: string): any | undefined;
96
+ static cast<T = any>(arg: any): T;
97
+ static safeJsonReplacer(_key: any, value: any): any;
98
+ static safeJsonReviver(_key: any, value: any): any;
99
+ static quickClone<T>(arg: T): T | null;
100
+ static hasProperty(obj: any, prop: string | number): boolean;
101
+ static pureObjectAssign(...values: any[]): any | null;
102
+ static getTimezones(): Record<string, {
103
+ utc: number;
104
+ dst: number;
105
+ code: string;
106
+ }>;
107
+ }
108
+ declare global {
109
+ interface Date {
110
+ updateTime(time: Date): void;
111
+ updateDate(date: Date): void;
112
+ isDstObserved(): boolean;
113
+ stdTimezoneOffset(): number;
114
+ toTimezone(timezone: string): Date;
115
+ getTimezones(): Record<string, {
116
+ u: number;
117
+ d: number;
118
+ c: string;
119
+ }>;
120
+ }
121
+ }
122
+ export declare const removeFromCollection: <T>(array: T[], predicate: (item: T, index: number) => boolean) => boolean;
123
+ type ObserverCallback<T> = (data: T) => unknown;
124
+ export declare class Observer<T extends any = any, CallbackType extends Function = ObserverCallback<T>> {
125
+ protected subscribers: CallbackType[];
126
+ subscribe(callback: CallbackType): () => void;
127
+ notify(data: T): void;
128
+ }
129
+ export {};
@@ -1,4 +1,4 @@
1
- export { default } from './Menu';
1
+ export { default as Menu } from './Menu';
2
2
  export { default as AuthDownloadLink } from './AuthDownloadLink';
3
3
  export { default as ContextMenu } from './ContextMenu';
4
4
  export { default as MenuItem } from './MenuItem';
@@ -14,7 +14,7 @@ export declare const PopperPlacement: {
14
14
  readonly RightBottom: "right-bottom";
15
15
  readonly RightCenter: "right-center";
16
16
  };
17
- declare type Props = {
17
+ type Props = {
18
18
  anchorEl?: string | HTMLElement | React.RefObject<HTMLElement>;
19
19
  anchorPosition?: {
20
20
  top: number;
@@ -0,0 +1,8 @@
1
+ export declare const Dialog: (props: DialogProps) => import("react/jsx-runtime").JSX.Element;
2
+ export type DialogTitleProps = {
3
+ title?: string;
4
+ };
5
+ export type DialogProps = DialogTitleProps & {
6
+ open: boolean;
7
+ onClose?: () => void;
8
+ };
@@ -0,0 +1,3 @@
1
+ import React, { HTMLAttributes } from 'react';
2
+ export declare const DialogBody: React.FC<DialogBodyProps>;
3
+ export type DialogBodyProps = HTMLAttributes<HTMLDivElement>;
@@ -0,0 +1,3 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export declare const DialogMask: (props: DialogMaskProps) => import("react/jsx-runtime").JSX.Element;
3
+ export type DialogMaskProps = HTMLAttributes<HTMLDivElement>;
@@ -1,5 +1,6 @@
1
- export declare const ScanConfirmationDialog: (props: TScanConfirmDialogProps) => JSX.Element;
2
- export declare type TScanConfirmDialogLabels = {
1
+ /// <reference types="react" />
2
+ export declare const ScanConfirmationDialog: React.FC<TScanConfirmDialogProps>;
3
+ export type TScanConfirmDialogLabels = {
3
4
  title?: string;
4
5
  message?: string;
5
6
  btnOk?: {
@@ -11,7 +12,7 @@ export declare type TScanConfirmDialogLabels = {
11
12
  style?: React.CSSProperties;
12
13
  };
13
14
  };
14
- export declare type TScanConfirmDialogProps = {
15
+ export type TScanConfirmDialogProps = {
15
16
  open: boolean;
16
17
  onConfirm: () => void;
17
18
  onClose: () => void;
@@ -1,8 +1,9 @@
1
+ /// <reference types="react" />
1
2
  import { IDetectedBarcode, IScannerProps } from '@yudiel/react-qr-scanner';
2
3
  import { TScanConfirmDialogLabels } from './ScanConfirmationDialog';
3
- declare const Scanner: ({ scanConfirmation, scanTrackerType, ...props }: ScannerProps) => JSX.Element;
4
- export declare type TScanTrackerType = 'outline' | 'boundingBox' | 'centerText';
5
- declare type ScannerProps = {
4
+ declare const Scanner: React.FC<ScannerProps>;
5
+ export type TScanTrackerType = 'outline' | 'boundingBox' | 'centerText';
6
+ type ScannerProps = {
6
7
  scanConfirmation?: boolean;
7
8
  scanConfirmDialog?: TScanConfirmDialogLabels;
8
9
  scanTrackerType?: TScanTrackerType;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type Props = {
2
+ type Props = {
3
3
  trigger: boolean;
4
4
  mode: 'appear' | 'disappear';
5
5
  children?: React.ReactElement<any>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type Props = {
2
+ type Props = {
3
3
  trigger: boolean;
4
4
  children?: React.ReactElement<any>;
5
5
  onEnter?: () => void;
@@ -9,6 +9,13 @@ export { default as Camera } from './Camera';
9
9
  export { default as ToggleButton } from './ToggleButton';
10
10
  export { default as Tooltip } from './Tooltip';
11
11
  export { default as TagInput } from './TagInput';
12
- export { default as Menu, ContextMenu, Divider, MenuItem, PopupMenu, MenuGroup, AuthDownloadLink } from './Menu';
12
+ export { default as Map } from './Map';
13
+ export { default as Menu } from './Menu/Menu';
14
+ export { default as ContextMenu } from './Menu/ContextMenu';
15
+ export { default as Divider } from './Menu/Divider';
16
+ export { default as MenuItem } from './Menu/MenuItem';
17
+ export { default as PopupMenu } from './Menu/PopupMenu';
18
+ export { default as MenuGroup } from './Menu/MenuGroup';
19
+ export { default as AuthDownloadLink } from './Menu/AuthDownloadLink';
13
20
  export { default as Dialog, DialogContent, DialogHeader, DialogFooter, ConfirmDialog, ErrorDialog, WarningDialog, DialogActions, DialogTitle } from './Dialog';
14
21
  export { ChevronDownIcon, ChevronRightIcon, ChevronLeftIcon, CrossIcon } from './Icons';