cortex-react-ui 0.2.11 → 0.2.13
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/index.d.ts +1 -0
- package/lib/cjs/index.js +15 -3
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +1 -0
- package/lib/esm/index.js +15 -3
- package/lib/esm/index.js.map +1 -1
- package/lib/index.d.ts +83 -1
- package/lib/styles/Camera/index.scss +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
import React$1, { CSSProperties } from 'react';
|
|
3
3
|
import { IDetectedBarcode, IScannerProps } from '@yudiel/react-qr-scanner';
|
|
4
4
|
import { WebcamProps } from 'react-webcam';
|
|
5
|
+
import { MapContainerProps } from 'react-leaflet';
|
|
6
|
+
import { ControlPosition, LatLngTuple } from 'leaflet';
|
|
5
7
|
|
|
6
8
|
declare const PopperPlacement: {
|
|
7
9
|
readonly Center: "center";
|
|
@@ -164,6 +166,86 @@ interface TooltipProps {
|
|
|
164
166
|
}
|
|
165
167
|
declare const TagInput: React$1.FC<TooltipProps>;
|
|
166
168
|
|
|
169
|
+
declare class Point {
|
|
170
|
+
id: number;
|
|
171
|
+
order: number;
|
|
172
|
+
latitude: number;
|
|
173
|
+
longitude: number;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
declare class Location {
|
|
177
|
+
id: number;
|
|
178
|
+
objId: string;
|
|
179
|
+
points: Point[];
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
type CenterActiveAreaControlProps = {
|
|
183
|
+
autoCenter?: boolean;
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
/** Props interface for MapFullscreenControl component */
|
|
187
|
+
type MapFullscreenControlProps = {
|
|
188
|
+
/** Change the content of the button, can be HTML, default null */
|
|
189
|
+
content?: string | undefined;
|
|
190
|
+
/** Change the position of the button can be topleft, topright, bottomright or bottomleft, default topleft */
|
|
191
|
+
position?: ControlPosition | undefined;
|
|
192
|
+
/** Change the title of the button, default Full Screen */
|
|
193
|
+
title?: string | undefined;
|
|
194
|
+
/** Change the title of the button when fullscreen is on, default Exit Full Screen */
|
|
195
|
+
titleCancel?: string | undefined;
|
|
196
|
+
/** Force separate button to detach from zoom buttons, default false */
|
|
197
|
+
forceSeparateButton?: boolean | undefined;
|
|
198
|
+
/** Force use of pseudo full screen even if full screen API is available, default false */
|
|
199
|
+
forcePseudoFullscreen?: boolean | undefined;
|
|
200
|
+
/** Use pseudo fullscreen */
|
|
201
|
+
pseudoFullscreen?: boolean | undefined;
|
|
202
|
+
/** Dom element to render in full screen, false by default, fallback to map._container */
|
|
203
|
+
fullscreenElement?: false | HTMLElement | undefined;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
type DrawToolsProps = {
|
|
207
|
+
position?: ControlPosition | undefined;
|
|
208
|
+
handleOnCreated?: (v: void) => void;
|
|
209
|
+
handleOnDeleted?: (v: void) => void;
|
|
210
|
+
handleOnEdited?: (v: void) => void;
|
|
211
|
+
draw?: drawType;
|
|
212
|
+
editable?: boolean;
|
|
213
|
+
};
|
|
214
|
+
type drawType = {
|
|
215
|
+
polyline?: boolean;
|
|
216
|
+
polygon?: boolean;
|
|
217
|
+
rectangle?: boolean;
|
|
218
|
+
circle?: boolean;
|
|
219
|
+
marker?: boolean;
|
|
220
|
+
circlemarker?: boolean;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
type MapsProps = {
|
|
224
|
+
MapContainerProps?: MapContainerProps;
|
|
225
|
+
center?: LatLngTuple;
|
|
226
|
+
fullscreen?: MapFullscreenControlProps | boolean;
|
|
227
|
+
centerActiveArea?: CenterActiveAreaControlProps | boolean;
|
|
228
|
+
drawTools?: DrawToolsProps | boolean;
|
|
229
|
+
minZoom?: number;
|
|
230
|
+
maxZoom?: number;
|
|
231
|
+
zoom?: number;
|
|
232
|
+
data?: Location[];
|
|
233
|
+
toggleSatelliteView?: boolean;
|
|
234
|
+
singlePosition?: boolean;
|
|
235
|
+
onChange?: (locations: Location[]) => void;
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
declare const Map: React$1.FC<AppProps>;
|
|
239
|
+
type AppProps = MapsProps & {
|
|
240
|
+
onClose?: (() => void);
|
|
241
|
+
onSave?: ((locations: Location[]) => void);
|
|
242
|
+
onChange?: ((locations: Location[]) => void);
|
|
243
|
+
customButtons?: {
|
|
244
|
+
cancelButton?: HTMLElement;
|
|
245
|
+
saveButton?: HTMLElement;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
|
|
167
249
|
interface MenuProps {
|
|
168
250
|
containerRef: React$1.RefObject<HTMLElement>;
|
|
169
251
|
className?: string;
|
|
@@ -327,4 +409,4 @@ interface Props {
|
|
|
327
409
|
}
|
|
328
410
|
declare const CrossIcon: React$1.FC<Props>;
|
|
329
411
|
|
|
330
|
-
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 };
|
|
412
|
+
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, Map, Menu, MenuGroup, MenuItem, Popper, PopupMenu, Scanner, Selected, Spinner, TagInput, ToggleButton, Tooltip, WarningDialog };
|