cortex-react-ui 0.1.181 → 0.2.0

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 (222) hide show
  1. package/lib/cjs/{types/BarLoader → BarLoader}/BarLoader.d.ts +0 -1
  2. package/lib/cjs/{types/Camera → Camera}/Camera.d.ts +7 -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/components/CenterActiveAreaControl.d.ts +5 -0
  7. package/lib/cjs/Map/components/DrawTools.d.ts +16 -0
  8. package/lib/cjs/Map/components/LocationContext.d.ts +7 -0
  9. package/lib/cjs/Map/components/MapFullscreenControl.d.ts +22 -0
  10. package/lib/cjs/Map/components/Maps.d.ts +19 -0
  11. package/lib/cjs/Map/config/appConfig.d.ts +4 -0
  12. package/lib/cjs/Map/config/config.d.ts +6 -0
  13. package/lib/cjs/Map/hooks/getGeoJSONTest.d.ts +16 -0
  14. package/lib/cjs/Map/hooks/useLocationContext.d.ts +1 -0
  15. package/lib/cjs/Map/index.d.ts +1 -0
  16. package/lib/cjs/Map/models/index.d.ts +2 -0
  17. package/lib/cjs/Map/models/location.d.ts +6 -0
  18. package/lib/cjs/Map/models/locationSearch.d.ts +4 -0
  19. package/lib/cjs/Map/models/point.d.ts +6 -0
  20. package/lib/cjs/Map/utils/httpService.d.ts +16 -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 +7 -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/components/CenterActiveAreaControl.d.ts +5 -0
  42. package/lib/esm/Map/components/DrawTools.d.ts +16 -0
  43. package/lib/esm/Map/components/LocationContext.d.ts +7 -0
  44. package/lib/esm/Map/components/MapFullscreenControl.d.ts +22 -0
  45. package/lib/esm/Map/components/Maps.d.ts +19 -0
  46. package/lib/esm/Map/config/appConfig.d.ts +4 -0
  47. package/lib/esm/Map/config/config.d.ts +6 -0
  48. package/lib/esm/Map/hooks/getGeoJSONTest.d.ts +16 -0
  49. package/lib/esm/Map/hooks/useLocationContext.d.ts +1 -0
  50. package/lib/esm/Map/index.d.ts +1 -0
  51. package/lib/esm/Map/models/index.d.ts +2 -0
  52. package/lib/esm/Map/models/location.d.ts +6 -0
  53. package/lib/esm/Map/models/locationSearch.d.ts +4 -0
  54. package/lib/esm/Map/models/point.d.ts +6 -0
  55. package/lib/esm/Map/utils/httpService.d.ts +16 -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 +108 -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.css +75 -0
  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 +41 -13
  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/styles/Scanner/index.scss +0 -110
  105. /package/lib/cjs/{types/BarLoader → BarLoader}/index.d.ts +0 -0
  106. /package/lib/cjs/{types/Button → Button}/Button.d.ts +0 -0
  107. /package/lib/cjs/{types/Button → Button}/index.d.ts +0 -0
  108. /package/lib/cjs/{types/Camera → Camera}/FileStorageDb.d.ts +0 -0
  109. /package/lib/cjs/{types/Camera → Camera}/index.d.ts +0 -0
  110. /package/lib/cjs/{types/Camera → Camera}/useTimer.d.ts +0 -0
  111. /package/lib/cjs/{types/DatePicker → DatePicker}/index.d.ts +0 -0
  112. /package/lib/cjs/{types/Dialog → Dialog}/ConfirmDialog.d.ts +0 -0
  113. /package/lib/cjs/{types/Dialog → Dialog}/Dialog.d.ts +0 -0
  114. /package/lib/cjs/{types/Dialog → Dialog}/DialogActions.d.ts +0 -0
  115. /package/lib/cjs/{types/Dialog → Dialog}/DialogContent.d.ts +0 -0
  116. /package/lib/cjs/{types/Dialog → Dialog}/DialogFooter.d.ts +0 -0
  117. /package/lib/cjs/{types/Dialog → Dialog}/DialogHeader.d.ts +0 -0
  118. /package/lib/cjs/{types/Dialog → Dialog}/DialogTitle.d.ts +0 -0
  119. /package/lib/cjs/{types/Dialog → Dialog}/ErrorDialog.d.ts +0 -0
  120. /package/lib/cjs/{types/Dialog → Dialog}/WarningDialog.d.ts +0 -0
  121. /package/lib/cjs/{types/Dialog → Dialog}/index.d.ts +0 -0
  122. /package/lib/cjs/{types/DomContainer → DomContainer}/index.d.ts +0 -0
  123. /package/lib/cjs/{types/Icons → Icons}/ChevronDownIcon.d.ts +0 -0
  124. /package/lib/cjs/{types/Icons → Icons}/ChevronLeftIcon.d.ts +0 -0
  125. /package/lib/cjs/{types/Icons → Icons}/ChevronRightIcon.d.ts +0 -0
  126. /package/lib/cjs/{types/Icons → Icons}/CrossIcon.d.ts +0 -0
  127. /package/lib/cjs/{types/Icons → Icons}/index.d.ts +0 -0
  128. /package/lib/cjs/{types/Input → Input}/Input.d.ts +0 -0
  129. /package/lib/cjs/{types/Input → Input}/index.d.ts +0 -0
  130. /package/lib/cjs/{types/Menu → Menu}/AuthDownloadLink.d.ts +0 -0
  131. /package/lib/cjs/{types/Menu → Menu}/ContextMenu.d.ts +0 -0
  132. /package/lib/cjs/{types/Menu → Menu}/Divider.d.ts +0 -0
  133. /package/lib/cjs/{types/Menu → Menu}/Menu.d.ts +0 -0
  134. /package/lib/cjs/{types/Menu → Menu}/MenuGroup.d.ts +0 -0
  135. /package/lib/cjs/{types/Menu → Menu}/MenuItem.d.ts +0 -0
  136. /package/lib/cjs/{types/Menu → Menu}/PopupMenu.d.ts +0 -0
  137. /package/lib/cjs/{types/Popper → Popper}/index.d.ts +0 -0
  138. /package/lib/cjs/{types/Scanner → Scanner}/index.d.ts +0 -0
  139. /package/lib/cjs/{types/Select → Select}/Select.d.ts +0 -0
  140. /package/lib/cjs/{types/Select → Select}/index.d.ts +0 -0
  141. /package/lib/cjs/{types/Selected → Selected}/Selected.d.ts +0 -0
  142. /package/lib/cjs/{types/Selected → Selected}/index.d.ts +0 -0
  143. /package/lib/cjs/{types/Spinner → Spinner}/Spinner.d.ts +0 -0
  144. /package/lib/cjs/{types/Spinner → Spinner}/index.d.ts +0 -0
  145. /package/lib/cjs/{types/TagInput → TagInput}/TagInput.d.ts +0 -0
  146. /package/lib/cjs/{types/TagInput → TagInput}/TagItem.d.ts +0 -0
  147. /package/lib/cjs/{types/TagInput → TagInput}/TagSearchInput.d.ts +0 -0
  148. /package/lib/cjs/{types/TagInput → TagInput}/TagSuggestion.d.ts +0 -0
  149. /package/lib/cjs/{types/TagInput → TagInput}/TagSuggestionGroup.d.ts +0 -0
  150. /package/lib/cjs/{types/TagInput → TagInput}/TagSuggestionItem.d.ts +0 -0
  151. /package/lib/cjs/{types/TagInput → TagInput}/index.d.ts +0 -0
  152. /package/lib/cjs/{types/TagInput → TagInput}/types.d.ts +0 -0
  153. /package/lib/cjs/{types/TextField → TextField}/TextField.d.ts +0 -0
  154. /package/lib/cjs/{types/TextField → TextField}/TextFieldInput.d.ts +0 -0
  155. /package/lib/cjs/{types/TextField → TextField}/index.d.ts +0 -0
  156. /package/lib/cjs/{types/ToggleButton → ToggleButton}/ToggleButton.d.ts +0 -0
  157. /package/lib/cjs/{types/ToggleButton → ToggleButton}/index.d.ts +0 -0
  158. /package/lib/cjs/{types/Tooltip → Tooltip}/Tooltip.d.ts +0 -0
  159. /package/lib/cjs/{types/Tooltip → Tooltip}/index.d.ts +0 -0
  160. /package/lib/cjs/{types/utils → utils}/classNames.d.ts +0 -0
  161. /package/lib/cjs/{types/utils → utils}/useClickOutside.d.ts +0 -0
  162. /package/lib/cjs/{types/utils → utils}/useElement.d.ts +0 -0
  163. /package/lib/cjs/{types/utils → utils}/useForkRef.d.ts +0 -0
  164. /package/lib/esm/{types/BarLoader → BarLoader}/index.d.ts +0 -0
  165. /package/lib/esm/{types/Button → Button}/Button.d.ts +0 -0
  166. /package/lib/esm/{types/Button → Button}/index.d.ts +0 -0
  167. /package/lib/esm/{types/Camera → Camera}/FileStorageDb.d.ts +0 -0
  168. /package/lib/esm/{types/Camera → Camera}/index.d.ts +0 -0
  169. /package/lib/esm/{types/Camera → Camera}/useTimer.d.ts +0 -0
  170. /package/lib/esm/{types/DatePicker → DatePicker}/index.d.ts +0 -0
  171. /package/lib/esm/{types/Dialog → Dialog}/ConfirmDialog.d.ts +0 -0
  172. /package/lib/esm/{types/Dialog → Dialog}/Dialog.d.ts +0 -0
  173. /package/lib/esm/{types/Dialog → Dialog}/DialogActions.d.ts +0 -0
  174. /package/lib/esm/{types/Dialog → Dialog}/DialogContent.d.ts +0 -0
  175. /package/lib/esm/{types/Dialog → Dialog}/DialogFooter.d.ts +0 -0
  176. /package/lib/esm/{types/Dialog → Dialog}/DialogHeader.d.ts +0 -0
  177. /package/lib/esm/{types/Dialog → Dialog}/DialogTitle.d.ts +0 -0
  178. /package/lib/esm/{types/Dialog → Dialog}/ErrorDialog.d.ts +0 -0
  179. /package/lib/esm/{types/Dialog → Dialog}/WarningDialog.d.ts +0 -0
  180. /package/lib/esm/{types/Dialog → Dialog}/index.d.ts +0 -0
  181. /package/lib/esm/{types/DomContainer → DomContainer}/index.d.ts +0 -0
  182. /package/lib/esm/{types/Icons → Icons}/ChevronDownIcon.d.ts +0 -0
  183. /package/lib/esm/{types/Icons → Icons}/ChevronLeftIcon.d.ts +0 -0
  184. /package/lib/esm/{types/Icons → Icons}/ChevronRightIcon.d.ts +0 -0
  185. /package/lib/esm/{types/Icons → Icons}/CrossIcon.d.ts +0 -0
  186. /package/lib/esm/{types/Icons → Icons}/index.d.ts +0 -0
  187. /package/lib/esm/{types/Input → Input}/Input.d.ts +0 -0
  188. /package/lib/esm/{types/Input → Input}/index.d.ts +0 -0
  189. /package/lib/esm/{types/Menu → Menu}/AuthDownloadLink.d.ts +0 -0
  190. /package/lib/esm/{types/Menu → Menu}/ContextMenu.d.ts +0 -0
  191. /package/lib/esm/{types/Menu → Menu}/Divider.d.ts +0 -0
  192. /package/lib/esm/{types/Menu → Menu}/Menu.d.ts +0 -0
  193. /package/lib/esm/{types/Menu → Menu}/MenuGroup.d.ts +0 -0
  194. /package/lib/esm/{types/Menu → Menu}/MenuItem.d.ts +0 -0
  195. /package/lib/esm/{types/Menu → Menu}/PopupMenu.d.ts +0 -0
  196. /package/lib/esm/{types/Popper → Popper}/index.d.ts +0 -0
  197. /package/lib/esm/{types/Scanner → Scanner}/index.d.ts +0 -0
  198. /package/lib/esm/{types/Select → Select}/Select.d.ts +0 -0
  199. /package/lib/esm/{types/Select → Select}/index.d.ts +0 -0
  200. /package/lib/esm/{types/Selected → Selected}/Selected.d.ts +0 -0
  201. /package/lib/esm/{types/Selected → Selected}/index.d.ts +0 -0
  202. /package/lib/esm/{types/Spinner → Spinner}/Spinner.d.ts +0 -0
  203. /package/lib/esm/{types/Spinner → Spinner}/index.d.ts +0 -0
  204. /package/lib/esm/{types/TagInput → TagInput}/TagInput.d.ts +0 -0
  205. /package/lib/esm/{types/TagInput → TagInput}/TagItem.d.ts +0 -0
  206. /package/lib/esm/{types/TagInput → TagInput}/TagSearchInput.d.ts +0 -0
  207. /package/lib/esm/{types/TagInput → TagInput}/TagSuggestion.d.ts +0 -0
  208. /package/lib/esm/{types/TagInput → TagInput}/TagSuggestionGroup.d.ts +0 -0
  209. /package/lib/esm/{types/TagInput → TagInput}/TagSuggestionItem.d.ts +0 -0
  210. /package/lib/esm/{types/TagInput → TagInput}/index.d.ts +0 -0
  211. /package/lib/esm/{types/TagInput → TagInput}/types.d.ts +0 -0
  212. /package/lib/esm/{types/TextField → TextField}/TextField.d.ts +0 -0
  213. /package/lib/esm/{types/TextField → TextField}/TextFieldInput.d.ts +0 -0
  214. /package/lib/esm/{types/TextField → TextField}/index.d.ts +0 -0
  215. /package/lib/esm/{types/ToggleButton → ToggleButton}/ToggleButton.d.ts +0 -0
  216. /package/lib/esm/{types/ToggleButton → ToggleButton}/index.d.ts +0 -0
  217. /package/lib/esm/{types/Tooltip → Tooltip}/Tooltip.d.ts +0 -0
  218. /package/lib/esm/{types/Tooltip → Tooltip}/index.d.ts +0 -0
  219. /package/lib/esm/{types/utils → utils}/classNames.d.ts +0 -0
  220. /package/lib/esm/{types/utils → utils}/useClickOutside.d.ts +0 -0
  221. /package/lib/esm/{types/utils → utils}/useElement.d.ts +0 -0
  222. /package/lib/esm/{types/utils → utils}/useForkRef.d.ts +0 -0
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export default function setRef<T>(ref: React.MutableRefObject<T | null> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
Binary file
Binary file
Binary file
Binary file
Binary file
package/lib/index.d.ts CHANGED
@@ -1,6 +1,9 @@
1
+ /// <reference types="react" />
1
2
  import React$1, { CSSProperties } from 'react';
2
3
  import { IDetectedBarcode, IScannerProps } from '@yudiel/react-qr-scanner';
3
4
  import { WebcamProps } from 'react-webcam';
5
+ import { MapContainerProps } from 'react-leaflet';
6
+ import { ControlPosition, LatLngTuple } from 'leaflet';
4
7
 
5
8
  declare const PopperPlacement: {
6
9
  readonly Center: "center";
@@ -17,7 +20,7 @@ declare const PopperPlacement: {
17
20
  readonly RightBottom: "right-bottom";
18
21
  readonly RightCenter: "right-center";
19
22
  };
20
- declare type Props$5 = {
23
+ type Props$5 = {
21
24
  anchorEl?: string | HTMLElement | React$1.RefObject<HTMLElement>;
22
25
  anchorPosition?: {
23
26
  top: number;
@@ -39,7 +42,7 @@ declare type Props$5 = {
39
42
  };
40
43
  declare const Popper: React$1.ForwardRefExoticComponent<Props$5 & React$1.RefAttributes<HTMLElement>>;
41
44
 
42
- declare type Props$4 = {
45
+ type Props$4 = {
43
46
  children?: React$1.ReactNode;
44
47
  container?: HTMLElement | (() => HTMLElement);
45
48
  };
@@ -55,7 +58,6 @@ interface BarLoaderProps {
55
58
  title?: string;
56
59
  color?: 'red' | 'blue' | 'yellow' | 'orange' | 'green';
57
60
  className?: string;
58
- mode: 'determinate' | 'indeterminate';
59
61
  isComplete: boolean;
60
62
  }
61
63
  declare const BarLoader: React$1.FC<BarLoaderProps>;
@@ -77,7 +79,7 @@ interface ButtonProps {
77
79
  }
78
80
  declare const Button: React$1.FC<ButtonProps>;
79
81
 
80
- declare type TScanConfirmDialogLabels = {
82
+ type TScanConfirmDialogLabels = {
81
83
  title?: string;
82
84
  message?: string;
83
85
  btnOk?: {
@@ -90,23 +92,26 @@ declare type TScanConfirmDialogLabels = {
90
92
  };
91
93
  };
92
94
 
93
- declare const Scanner: ({ scanConfirmation, scanTrackerType, ...props }: ScannerProps) => JSX.Element;
94
- declare type TScanTrackerType = 'outline' | 'boundingBox' | 'centerText';
95
- declare type ScannerProps = {
95
+ declare const Scanner: React.FC<ScannerProps>;
96
+ type TScanTrackerType = 'outline' | 'boundingBox' | 'centerText';
97
+ type ScannerProps = {
96
98
  scanConfirmation?: boolean;
97
99
  scanConfirmDialog?: TScanConfirmDialogLabels;
98
100
  scanTrackerType?: TScanTrackerType;
99
101
  onScan?: (detectedCodes: IDetectedBarcode[]) => void;
100
102
  } & IScannerProps;
101
103
 
102
- declare const Camera: ({ onCapture, isOffline, mode, isShowOffline, ...props }: CameraProps) => JSX.Element;
103
- declare type CameraProps = {
104
+ declare const Camera: React.FC<CameraProps>;
105
+ type CameraProps = {
104
106
  onCapture: ({ fileStoreName, fileRowId, file }: TfileCapturedProps) => void;
105
107
  mode?: 'photo' | 'video';
106
108
  isOffline?: boolean;
107
109
  isShowOffline?: boolean;
110
+ validateText?: string;
111
+ resetText?: string;
112
+ isShowVideoButton?: boolean;
108
113
  } & Partial<WebcamProps>;
109
- declare type TfileCapturedProps = {
114
+ type TfileCapturedProps = {
110
115
  fileStoreName?: string | null;
111
116
  fileRowId?: number | null;
112
117
  file?: File | null;
@@ -160,6 +165,80 @@ interface TooltipProps {
160
165
  }
161
166
  declare const TagInput: React$1.FC<TooltipProps>;
162
167
 
168
+ declare class Point {
169
+ id: number;
170
+ order: number;
171
+ latitude: number;
172
+ longitude: number;
173
+ }
174
+
175
+ declare class Location {
176
+ id: number;
177
+ objId: string;
178
+ points: Point[];
179
+ }
180
+
181
+ type CenterActiveAreaControlProps = {
182
+ autoCenter?: boolean;
183
+ };
184
+
185
+ /** Props interface for MapFullscreenControl component */
186
+ type MapFullscreenControlProps = {
187
+ /** Change the content of the button, can be HTML, default null */
188
+ content?: string | undefined;
189
+ /** Change the position of the button can be topleft, topright, bottomright or bottomleft, default topleft */
190
+ position?: ControlPosition | undefined;
191
+ /** Change the title of the button, default Full Screen */
192
+ title?: string | undefined;
193
+ /** Change the title of the button when fullscreen is on, default Exit Full Screen */
194
+ titleCancel?: string | undefined;
195
+ /** Force separate button to detach from zoom buttons, default false */
196
+ forceSeparateButton?: boolean | undefined;
197
+ /** Force use of pseudo full screen even if full screen API is available, default false */
198
+ forcePseudoFullscreen?: boolean | undefined;
199
+ /** Use pseudo fullscreen */
200
+ pseudoFullscreen?: boolean | undefined;
201
+ /** Dom element to render in full screen, false by default, fallback to map._container */
202
+ fullscreenElement?: false | HTMLElement | undefined;
203
+ };
204
+
205
+ type DrawToolsProps = {
206
+ position?: ControlPosition | undefined;
207
+ handleOnCreated?: (v: void) => void;
208
+ handleOnDeleted?: (v: void) => void;
209
+ draw?: drawType;
210
+ };
211
+ type drawType = {
212
+ polyline?: boolean;
213
+ polygon?: boolean;
214
+ rectangle?: boolean;
215
+ circle?: boolean;
216
+ marker?: boolean;
217
+ circlemarker?: boolean;
218
+ };
219
+
220
+ type MapsProps = {
221
+ MapContainerProps?: MapContainerProps;
222
+ center?: LatLngTuple;
223
+ fullscreen?: MapFullscreenControlProps | boolean;
224
+ centerActiveArea?: CenterActiveAreaControlProps | boolean;
225
+ drawTools?: DrawToolsProps | boolean;
226
+ minZoom?: number;
227
+ maxZoom?: number;
228
+ zoom?: number;
229
+ data?: Location[];
230
+ };
231
+
232
+ declare const App: React$1.FC<AppProps>;
233
+ type AppProps = MapsProps & {
234
+ onClose: (() => void);
235
+ onSave: ((points: Point[]) => void);
236
+ customButtons?: {
237
+ cancelButton?: HTMLElement;
238
+ saveButton?: HTMLElement;
239
+ };
240
+ };
241
+
163
242
  interface MenuProps {
164
243
  containerRef: React$1.RefObject<HTMLElement>;
165
244
  className?: string;
@@ -169,19 +248,6 @@ interface MenuProps {
169
248
  }
170
249
  declare const Menu: React$1.FC<MenuProps>;
171
250
 
172
- interface AuthDownloadLinkProps {
173
- url: string;
174
- queryParams?: {
175
- [key: string]: any;
176
- };
177
- token: string;
178
- label?: string;
179
- onStart?: (event: React$1.MouseEvent<HTMLButtonElement> | undefined) => void;
180
- onCompleted?: () => void;
181
- onError?: (error: any) => void;
182
- }
183
- declare const AuthDownloadLink: React$1.FC<AuthDownloadLinkProps>;
184
-
185
251
  interface ContextMenuProps {
186
252
  className?: string;
187
253
  children?: React$1.ReactNode;
@@ -193,6 +259,11 @@ interface ContextMenuProps {
193
259
  }
194
260
  declare const ContextMenu: React$1.FC<ContextMenuProps>;
195
261
 
262
+ interface DividerProps {
263
+ className?: string;
264
+ }
265
+ declare const Divider: React$1.FC<DividerProps>;
266
+
196
267
  interface MenuItemProps {
197
268
  className?: string;
198
269
  style?: CSSProperties | undefined;
@@ -206,11 +277,6 @@ interface MenuItemProps {
206
277
  }
207
278
  declare const MenuItem: React$1.FC<MenuItemProps>;
208
279
 
209
- interface DividerProps {
210
- className?: string;
211
- }
212
- declare const Divider: React$1.FC<DividerProps>;
213
-
214
280
  interface PopupMenuProps {
215
281
  className?: string;
216
282
  children?: React$1.ReactNode;
@@ -232,6 +298,19 @@ interface MenuGroupProps {
232
298
  }
233
299
  declare const MenuGroup: React$1.FC<MenuGroupProps>;
234
300
 
301
+ interface AuthDownloadLinkProps {
302
+ url: string;
303
+ queryParams?: {
304
+ [key: string]: any;
305
+ };
306
+ token: string;
307
+ label?: string;
308
+ onStart?: (event: React$1.MouseEvent<HTMLButtonElement> | undefined) => void;
309
+ onCompleted?: () => void;
310
+ onError?: (error: any) => void;
311
+ }
312
+ declare const AuthDownloadLink: React$1.FC<AuthDownloadLinkProps>;
313
+
235
314
  interface DialogProps {
236
315
  open: boolean;
237
316
  width?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
@@ -323,4 +402,4 @@ interface Props {
323
402
  }
324
403
  declare const CrossIcon: React$1.FC<Props>;
325
404
 
326
- export { AuthDownloadLink, BarLoader, Button, Camera, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ConfirmDialog, ContextMenu, CrossIcon, Dialog, DialogActions, DialogContent$1 as DialogContent, DialogFooter, DialogHeader, DialogContent as DialogTitle, Divider, DomContainer, ErrorDialog, Menu, MenuGroup, MenuItem, Popper, PopupMenu, Scanner, Selected, Spinner, TagInput, ToggleButton, Tooltip, WarningDialog };
405
+ export { AuthDownloadLink, BarLoader, Button, Camera, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ConfirmDialog, ContextMenu, CrossIcon, Dialog, DialogActions, DialogContent$1 as DialogContent, DialogFooter, DialogHeader, DialogContent as DialogTitle, Divider, DomContainer, ErrorDialog, App as Map, Menu, MenuGroup, MenuItem, Popper, PopupMenu, Scanner, Selected, Spinner, TagInput, ToggleButton, Tooltip, WarningDialog };
@@ -1,12 +1,12 @@
1
- @import "../global.scss";
1
+ @use "../global.scss";
2
2
 
3
3
  @mixin barLoader($props: null, $options: null) {
4
- $internal-options: $default-options;
4
+ $internal-options: global.$default-options;
5
5
 
6
6
  $internal-props: ();
7
7
 
8
- $internal-props: safe-map-merge($internal-props, $props);
9
- $internal-options: safe-map-merge($internal-options, $options);
8
+ $internal-props: global.safe-map-merge($internal-props, $props);
9
+ $internal-options: global.safe-map-merge($internal-options, $options);
10
10
 
11
11
  .loader {
12
12
  position:relative;
@@ -1,12 +1,12 @@
1
- @import "../global.scss";
1
+ @use "../global.scss";
2
2
 
3
3
  @mixin button($props: null, $options: null) {
4
- $internal-options: $default-options;
4
+ $internal-options: global.$default-options;
5
5
 
6
6
  $internal-props: ();
7
7
 
8
- $internal-props: safe-map-merge($internal-props, $props);
9
- $internal-options: safe-map-merge($internal-options, $options);
8
+ $internal-props: global.safe-map-merge($internal-props, $props);
9
+ $internal-options: global.safe-map-merge($internal-options, $options);
10
10
 
11
11
  .ui-btn {
12
12
  position: relative;
@@ -21,14 +21,14 @@
21
21
  user-select: none;
22
22
  appearance: none;
23
23
  text-decoration: none;
24
- font-family: $font-family;
25
- font-weight: $font-weight-semi-bold;
26
- font-size: $font-size-md;
24
+ font-family: global.$font-family;
25
+ font-weight: global.$font-weight-semi-bold;
26
+ font-size: global.$font-size-md;
27
27
  letter-spacing: 0.02857em;
28
28
  text-transform: uppercase;
29
29
  min-width: 64px;
30
- padding: $spacer-sm;
31
- border-radius: $border-radius-xs;
30
+ padding: global.$spacer-sm;
31
+ border-radius: global.$border-radius-xs;
32
32
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
33
33
  box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
34
34
  border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
@@ -41,7 +41,7 @@
41
41
  }
42
42
 
43
43
  .ui-btn-disable {
44
- color: $color-blue-grey-lighter;
44
+ color: global.$color-blue-grey-lighter;
45
45
  }
46
46
 
47
47
  .ui-btn-contained {
@@ -50,97 +50,97 @@
50
50
  }
51
51
 
52
52
  &.ui-btn-disable {
53
- background-color: $color-blue-grey-lighter;
54
- color: $color-grey-lighter;
53
+ background-color: global.$color-blue-grey-lighter;
54
+ color: global.$color-grey-lighter;
55
55
  }
56
56
  }
57
57
 
58
58
  .ui-btn-outlined {
59
59
  &.ui-btn-disable {
60
- border-color: $color-blue-grey-lighter;
60
+ border-color: global.$color-blue-grey-lighter;
61
61
  }
62
62
  }
63
63
 
64
64
  .ui-btn-color-primary {
65
- color: $color-blue-dark;
65
+ color: global.$color-blue-dark;
66
66
 
67
67
  &:not(.ui-btn-disable).ui-btn-contained {
68
- background-color: $color-blue-dark;
68
+ background-color: global.$color-blue-dark;
69
69
  color: #fff;
70
70
 
71
71
  &:hover {
72
- background-color: $color-blue-darker;
72
+ background-color: global.$color-blue-darker;
73
73
  }
74
74
  }
75
75
 
76
76
  &:not(.ui-btn-disable).ui-btn-outlined {
77
- border-color: $color-blue-dark;
77
+ border-color: global.$color-blue-dark;
78
78
 
79
79
  &:hover {
80
- border-color: $color-blue-darker;
80
+ border-color: global.$color-blue-darker;
81
81
  }
82
82
  }
83
83
  }
84
84
 
85
85
  .ui-btn-color-secondary {
86
- color: $color-grey-dark;
86
+ color: global.$color-grey-dark;
87
87
 
88
88
  &:not(.ui-btn-disable).ui-btn-contained {
89
- background-color: $color-grey-dark;
89
+ background-color: global.$color-grey-dark;
90
90
  color: #fff;
91
91
 
92
92
  &:hover {
93
- background-color: $color-grey-darker;
93
+ background-color: global.$color-grey-darker;
94
94
  }
95
95
  }
96
96
 
97
97
  &:not(.ui-btn-disable).ui-btn-outlined {
98
- border-color: $color-grey-dark;
98
+ border-color: global.$color-grey-dark;
99
99
 
100
100
  &:hover {
101
- border-color: $color-grey-darker;
101
+ border-color: global.$color-grey-darker;
102
102
  }
103
103
  }
104
104
  }
105
105
 
106
106
  .ui-btn-color-success {
107
- color: $color-green;
107
+ color: global.$color-green;
108
108
 
109
109
  &:not(.ui-btn-disable).ui-btn-contained {
110
- background-color: $color-green;
110
+ background-color: global.$color-green;
111
111
  color: #fff;
112
112
 
113
113
  &:hover {
114
- background-color: $color-green-dark;
114
+ background-color: global.$color-green-dark;
115
115
  }
116
116
  }
117
117
 
118
118
  &:not(.ui-btn-disable).ui-btn-outlined {
119
- border-color: $color-green;
119
+ border-color: global.$color-green;
120
120
 
121
121
  &:hover {
122
- border-color: $color-green-dark;
122
+ border-color: global.$color-green-dark;
123
123
  }
124
124
  }
125
125
  }
126
126
 
127
127
  .ui-btn-color-danger {
128
- color: $color-red;
128
+ color: global.$color-red;
129
129
 
130
130
  &:not(.ui-btn-disable).ui-btn-contained {
131
- background-color: $color-red;
131
+ background-color: global.$color-red;
132
132
  color: #fff;
133
133
 
134
134
  &:hover {
135
- background-color: $color-red-dark;
135
+ background-color: global.$color-red-dark;
136
136
  }
137
137
  }
138
138
 
139
139
  &:not(.ui-btn-disable).ui-btn-outlined {
140
- border-color: $color-red;
140
+ border-color: global.$color-red;
141
141
 
142
142
  &:hover {
143
- border-color: $color-red-dark;
143
+ border-color: global.$color-red-dark;
144
144
  }
145
145
  }
146
146
  }
@@ -0,0 +1,192 @@
1
+ .camera-container {
2
+ width: 100%;
3
+ height: 100%;
4
+ background-color: #000;
5
+ }
6
+
7
+ .camera-switch-btn {
8
+ all: initial;
9
+ display: flex;
10
+ cursor: pointer;
11
+ }
12
+
13
+ .camera-recording-dot {
14
+ width: 8px;
15
+ height: 8px;
16
+ border-radius: 50%;
17
+ background-color: #f44336;
18
+ animation: clignote 1s infinite;
19
+ }
20
+
21
+ .camera-recording-timer {
22
+ z-index: 99;
23
+ position: absolute;
24
+ top: 1rem;
25
+ left: 20px;
26
+ display: flex;
27
+ align-items: center;
28
+ justify-content: center;
29
+ background: rgba(0, 0, 0, 0.2);
30
+ border-radius: 4px;
31
+ padding: 3px 7px;
32
+ font-size: 12px;
33
+ color: #fff;
34
+ font-family: sans-serif;
35
+ gap: 6px;
36
+ }
37
+
38
+ .camera-offline-mode {
39
+ position: absolute;
40
+ top: 1rem;
41
+ right: 20px;
42
+ display: flex;
43
+ align-items: center;
44
+ justify-content: center;
45
+ background: rgba(0, 0, 0, 0.2);
46
+ border-radius: 4px;
47
+ padding: 3px 7px;
48
+ font-size: 12px;
49
+ color: red;
50
+ font-family: sans-serif;
51
+ }
52
+
53
+ .camera-mode {
54
+ z-index: 9999;
55
+ position: absolute;
56
+ bottom: 2rem;
57
+ right: 20px;
58
+ padding: 0.5rem;
59
+ border-radius: 6px;
60
+ color: #ffffff;
61
+ border: none;
62
+ cursor: pointer;
63
+ display: flex;
64
+ justify-content: center;
65
+ align-items: center;
66
+ gap: 7px;
67
+ background-color: #2196f3;
68
+ transition: background-color 0.3s ease;
69
+ }
70
+
71
+ .camera-preview {
72
+ position: relative;
73
+ width: 100%;
74
+ height: 100%;
75
+ overflow: hidden;
76
+ }
77
+
78
+ .camera-controls {
79
+ z-index: 999;
80
+ position: absolute;
81
+ bottom: 2rem;
82
+ left: 0;
83
+ right: 0;
84
+ display: flex;
85
+ justify-content: center;
86
+ gap: 1rem;
87
+ }
88
+
89
+ .video-play-btn {
90
+ all: initial;
91
+ position: absolute;
92
+ bottom: 10%;
93
+ left: 50%;
94
+ z-index: 9;
95
+ width: 1em;
96
+ height: 1em;
97
+ min-width: 15px;
98
+ min-height: 15px;
99
+ transform: translate(-50%, -50%);
100
+ display: flex;
101
+ justify-content: center;
102
+ align-items: center;
103
+ border-radius: 50%;
104
+ border: 1px solid;
105
+ padding: 20px 20px;
106
+ background-color: #ffffff;
107
+ cursor: pointer;
108
+ }
109
+
110
+ .camera-button {
111
+ padding: 0.5rem;
112
+ border-radius: 6px;
113
+ color: #ffffff;
114
+ border: none;
115
+ cursor: pointer;
116
+ display: flex;
117
+ justify-content: center;
118
+ align-items: center;
119
+ gap: 7px;
120
+ transition: background-color 0.3s ease;
121
+ }
122
+ .camera-button--capture {
123
+ border-radius: 50%;
124
+ color: initial;
125
+ width: 50px;
126
+ height: 50px;
127
+ border: 1px solid black;
128
+ background-color: #ffffff;
129
+ }
130
+ .camera-button--record {
131
+ border-radius: 50%;
132
+ color: red;
133
+ width: 50px;
134
+ height: 50px;
135
+ border: 1px solid black;
136
+ background-color: #ffffff;
137
+ }
138
+ .camera-button--download {
139
+ background-color: #4caf50;
140
+ }
141
+ .camera-button--download:hover {
142
+ background-color: #388e3c;
143
+ }
144
+ .camera-button--reset {
145
+ background-color: #9e9e9e;
146
+ }
147
+ .camera-button--reset:hover {
148
+ background-color: #757575;
149
+ }
150
+
151
+ .camera-offline-mode {
152
+ font-size: 0.875rem;
153
+ font-family: sans-serif;
154
+ color: #d32f2f;
155
+ }
156
+
157
+ .camera-screen-animation {
158
+ animation: fadeIn 0.3s;
159
+ }
160
+
161
+ @keyframes fadeIn {
162
+ 0% {
163
+ opacity: 0;
164
+ }
165
+ 100% {
166
+ opacity: 1;
167
+ }
168
+ }
169
+ @keyframes pulse {
170
+ 0% {
171
+ transform: scale(1);
172
+ }
173
+ 50% {
174
+ transform: scale(1.05);
175
+ }
176
+ 100% {
177
+ transform: scale(1);
178
+ }
179
+ }
180
+ @keyframes clignote {
181
+ 0% {
182
+ opacity: 1;
183
+ }
184
+ 50% {
185
+ opacity: 0;
186
+ }
187
+ 100% {
188
+ opacity: 1;
189
+ }
190
+ }
191
+
192
+ /*# sourceMappingURL=index.css.map */