@tactics/lokaal-loket 0.0.315 → 0.0.317
Sign up to get free protection for your applications and to get access to all the features.
- package/build/index.cjs +604 -602
- package/build/index.d.cts +110 -110
- package/build/index.d.ts +110 -110
- package/build/index.js +604 -602
- package/package.json +1 -1
package/build/index.d.cts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
2
|
import * as React$1 from 'react';
|
3
|
-
import React__default, {
|
3
|
+
import React__default, { PropsWithChildren, Ref, ReactElement, ReactNode, FC } from 'react';
|
4
4
|
import { TypographyFontKey, TypographyFontsKey, TypographyFontWeightKey, SpacingKey, Color, ColorVariant } from '@tactics/tacky/contract';
|
5
5
|
export { Color, ColorVariant, Radius, Spacing, ThemeConfigI, ThemeI, ThemeVariantsI, TypographyFont, TypographyFonts } from '@tactics/tacky/contract';
|
6
6
|
import { Feature as Feature$1, Point, LineString } from 'geojson';
|
@@ -267,8 +267,115 @@ declare enum FramePadding {
|
|
267
267
|
SMALL = "SMALL"
|
268
268
|
}
|
269
269
|
|
270
|
+
type TerminalType = "ORIGIN" | "DESTINATION" | "VIEW_ONLY";
|
271
|
+
type PointType = "DAYCARE" | "CHILDMINDER" | "COOPERATIVE" | "OUT_OF_RANGE" | "VIEW_ONLY";
|
272
|
+
interface ITerminal {
|
273
|
+
key: string;
|
274
|
+
name: string;
|
275
|
+
type: TerminalType;
|
276
|
+
}
|
277
|
+
interface IPin {
|
278
|
+
key: string;
|
279
|
+
name: string;
|
280
|
+
address: string;
|
281
|
+
showsExactLocation: boolean;
|
282
|
+
type: PointType;
|
283
|
+
overlay: React__default.ReactNode;
|
284
|
+
}
|
285
|
+
interface ILine {
|
286
|
+
key: string;
|
287
|
+
index: number;
|
288
|
+
label: string;
|
289
|
+
durationInSeconds: number;
|
290
|
+
distanceInMeters: number;
|
291
|
+
steps: IRouteStep[];
|
292
|
+
}
|
293
|
+
interface IStep {
|
294
|
+
key: string;
|
295
|
+
instructions: string;
|
296
|
+
travel_mode: google.maps.TravelMode;
|
297
|
+
}
|
298
|
+
type IOrigin = Feature$1<Point, ITerminal>;
|
299
|
+
type IDestination = Feature$1<Point, ITerminal>;
|
300
|
+
type IPoint = Feature$1<Point, IPin>;
|
301
|
+
type IPoints = IPoint[];
|
302
|
+
type IRoute = Feature$1<LineString, ILine>;
|
303
|
+
type IRoutes = Record<string, IRoute>;
|
304
|
+
type IRouteStep = Feature$1<LineString, IStep>;
|
305
|
+
interface IFailureMap {
|
306
|
+
message: string;
|
307
|
+
}
|
308
|
+
interface IMapLegendLabel {
|
309
|
+
figure: React__default.ReactElement<IFigure>;
|
310
|
+
label: string;
|
311
|
+
}
|
312
|
+
interface IMapLegendItem {
|
313
|
+
pin: React__default.ReactElement<IPin>;
|
314
|
+
label: string;
|
315
|
+
}
|
316
|
+
interface ILocationBasedMap {
|
317
|
+
updateOriginOnAreaChange: boolean;
|
318
|
+
viewOnly?: boolean;
|
319
|
+
points?: IPoints;
|
320
|
+
showLoader: boolean;
|
321
|
+
loader?: React__default.ReactNode;
|
322
|
+
origin: IOrigin;
|
323
|
+
radius: number;
|
324
|
+
legend?: React__default.ReactElement<IMapLegendItem>[];
|
325
|
+
legendToggle?: React__default.ReactElement<IMapLegendLabel>;
|
326
|
+
onAreaChange?: (origin: google.maps.LatLng, center: google.maps.LatLng, bounds: google.maps.LatLngBounds, radius: number, zoomLevel: number) => void;
|
327
|
+
}
|
328
|
+
interface IDirectionBasedMapBase {
|
329
|
+
routes?: IRoutes;
|
330
|
+
viewOnly?: boolean;
|
331
|
+
activeRoute: string;
|
332
|
+
points?: IPoints;
|
333
|
+
showLoader: boolean;
|
334
|
+
loader?: React__default.ReactNode;
|
335
|
+
origin?: IOrigin;
|
336
|
+
destination?: IDestination;
|
337
|
+
deviation: number;
|
338
|
+
activeTravelMode: google.maps.TravelMode;
|
339
|
+
legend?: React__default.ReactElement<IMapLegendItem>[];
|
340
|
+
legendToggle?: React__default.ReactElement<IMapLegendLabel>;
|
341
|
+
onRouteChange?: (activeRoute: string, route: IRoute, travelMode: google.maps.TravelMode, deviation: number) => void;
|
342
|
+
onTravelModeChange?: (travelMode: google.maps.TravelMode, deviation: number) => void;
|
343
|
+
onAreaChange?: (origin: google.maps.LatLng, destination: google.maps.LatLng, center: google.maps.LatLng, bounds: google.maps.LatLngBounds, zoomLevel: number) => void;
|
344
|
+
}
|
345
|
+
interface IMap extends PropsWithChildren {
|
346
|
+
mapId: string;
|
347
|
+
defaultCenter: google.maps.LatLngLiteral;
|
348
|
+
zoom?: number;
|
349
|
+
}
|
350
|
+
|
351
|
+
interface DirectionMapHandle {
|
352
|
+
closeMapOverlay: () => void;
|
353
|
+
}
|
354
|
+
|
355
|
+
interface LocationMapHandle {
|
356
|
+
panTo: (lat: number, lng: number) => void;
|
357
|
+
closeMapOverlay: () => void;
|
358
|
+
}
|
359
|
+
|
360
|
+
declare const MapLegendLabel: ({ figure, label }: IMapLegendLabel) => react_jsx_runtime.JSX.Element;
|
361
|
+
declare const MapLegendItem: ({ pin, label }: IMapLegendItem) => react_jsx_runtime.JSX.Element;
|
362
|
+
|
363
|
+
declare const Map: {
|
364
|
+
(props: IMap): react_jsx_runtime.JSX.Element;
|
365
|
+
Location: (props: ILocationBasedMap & {
|
366
|
+
ref?: React__default.Ref<LocationMapHandle>;
|
367
|
+
}) => JSX.Element;
|
368
|
+
Direction: (props: IDirectionBasedMapBase & {
|
369
|
+
ref?: React__default.Ref<DirectionMapHandle>;
|
370
|
+
}) => JSX.Element;
|
371
|
+
Failed: ({ message }: IFailureMap) => react_jsx_runtime.JSX.Element | null;
|
372
|
+
Loading: ({ loader }: {
|
373
|
+
loader: React__default.ReactNode;
|
374
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
375
|
+
};
|
376
|
+
|
270
377
|
interface IFrame {
|
271
|
-
around: React__default.ReactElement<IIcon | IFigure>;
|
378
|
+
around: React__default.ReactElement<IIcon | IFigure | IPin>;
|
272
379
|
split?: string | false;
|
273
380
|
background?: string;
|
274
381
|
padding?: FramePadding;
|
@@ -1279,7 +1386,7 @@ declare enum PlaceholderPhotoType {
|
|
1279
1386
|
}
|
1280
1387
|
|
1281
1388
|
interface IPlaceholderPhoto {
|
1282
|
-
figure:
|
1389
|
+
figure: React__default.ReactElement<IFigure>;
|
1283
1390
|
type: PlaceholderPhotoType;
|
1284
1391
|
height: string;
|
1285
1392
|
}
|
@@ -1579,113 +1686,6 @@ interface IFooter {
|
|
1579
1686
|
|
1580
1687
|
declare const Footer: ({ top, left, right, bottom }: IFooter) => react_jsx_runtime.JSX.Element;
|
1581
1688
|
|
1582
|
-
type TerminalType = "ORIGIN" | "DESTINATION" | "VIEW_ONLY";
|
1583
|
-
type PointType = "DAYCARE" | "CHILDMINDER" | "COOPERATIVE" | "OUT_OF_RANGE" | "VIEW_ONLY";
|
1584
|
-
interface ITerminal {
|
1585
|
-
key: string;
|
1586
|
-
name: string;
|
1587
|
-
type: TerminalType;
|
1588
|
-
}
|
1589
|
-
interface IPin {
|
1590
|
-
key: string;
|
1591
|
-
name: string;
|
1592
|
-
address: string;
|
1593
|
-
showsExactLocation: boolean;
|
1594
|
-
type: PointType;
|
1595
|
-
overlay: React__default.ReactNode;
|
1596
|
-
}
|
1597
|
-
interface ILine {
|
1598
|
-
key: string;
|
1599
|
-
index: number;
|
1600
|
-
label: string;
|
1601
|
-
durationInSeconds: number;
|
1602
|
-
distanceInMeters: number;
|
1603
|
-
steps: IRouteStep[];
|
1604
|
-
}
|
1605
|
-
interface IStep {
|
1606
|
-
key: string;
|
1607
|
-
instructions: string;
|
1608
|
-
travel_mode: google.maps.TravelMode;
|
1609
|
-
}
|
1610
|
-
type IOrigin = Feature$1<Point, ITerminal>;
|
1611
|
-
type IDestination = Feature$1<Point, ITerminal>;
|
1612
|
-
type IPoint = Feature$1<Point, IPin>;
|
1613
|
-
type IPoints = IPoint[];
|
1614
|
-
type IRoute = Feature$1<LineString, ILine>;
|
1615
|
-
type IRoutes = Record<string, IRoute>;
|
1616
|
-
type IRouteStep = Feature$1<LineString, IStep>;
|
1617
|
-
interface IFailureMap {
|
1618
|
-
message: string;
|
1619
|
-
}
|
1620
|
-
interface IMapLegendLabel {
|
1621
|
-
figure: React__default.ReactElement<IFigure>;
|
1622
|
-
label: string;
|
1623
|
-
}
|
1624
|
-
interface IMapLegendItem {
|
1625
|
-
pin: React__default.ReactElement<IPin>;
|
1626
|
-
label: string;
|
1627
|
-
}
|
1628
|
-
interface ILocationBasedMap {
|
1629
|
-
updateOriginOnAreaChange: boolean;
|
1630
|
-
viewOnly?: boolean;
|
1631
|
-
points?: IPoints;
|
1632
|
-
showLoader: boolean;
|
1633
|
-
loader?: React__default.ReactNode;
|
1634
|
-
origin: IOrigin;
|
1635
|
-
radius: number;
|
1636
|
-
legend?: React__default.ReactElement<IMapLegendItem>[];
|
1637
|
-
legendToggle?: React__default.ReactElement<IMapLegendLabel>;
|
1638
|
-
onAreaChange?: (origin: google.maps.LatLng, center: google.maps.LatLng, bounds: google.maps.LatLngBounds, radius: number, zoomLevel: number) => void;
|
1639
|
-
}
|
1640
|
-
interface IDirectionBasedMapBase {
|
1641
|
-
routes?: IRoutes;
|
1642
|
-
viewOnly?: boolean;
|
1643
|
-
activeRoute: string;
|
1644
|
-
points?: IPoints;
|
1645
|
-
showLoader: boolean;
|
1646
|
-
loader?: React__default.ReactNode;
|
1647
|
-
origin?: IOrigin;
|
1648
|
-
destination?: IDestination;
|
1649
|
-
deviation: number;
|
1650
|
-
activeTravelMode: google.maps.TravelMode;
|
1651
|
-
legend?: React__default.ReactElement<IMapLegendItem>[];
|
1652
|
-
legendToggle?: React__default.ReactElement<IMapLegendLabel>;
|
1653
|
-
onRouteChange?: (activeRoute: string, route: IRoute, travelMode: google.maps.TravelMode, deviation: number) => void;
|
1654
|
-
onTravelModeChange?: (travelMode: google.maps.TravelMode, deviation: number) => void;
|
1655
|
-
onAreaChange?: (origin: google.maps.LatLng, destination: google.maps.LatLng, center: google.maps.LatLng, bounds: google.maps.LatLngBounds, zoomLevel: number) => void;
|
1656
|
-
}
|
1657
|
-
interface IMap extends PropsWithChildren {
|
1658
|
-
mapId: string;
|
1659
|
-
defaultCenter: google.maps.LatLngLiteral;
|
1660
|
-
zoom?: number;
|
1661
|
-
}
|
1662
|
-
|
1663
|
-
interface DirectionMapHandle {
|
1664
|
-
closeMapOverlay: () => void;
|
1665
|
-
}
|
1666
|
-
|
1667
|
-
interface LocationMapHandle {
|
1668
|
-
panTo: (lat: number, lng: number) => void;
|
1669
|
-
closeMapOverlay: () => void;
|
1670
|
-
}
|
1671
|
-
|
1672
|
-
declare const MapLegendLabel: ({ figure, label }: IMapLegendLabel) => react_jsx_runtime.JSX.Element;
|
1673
|
-
declare const MapLegendItem: ({ pin, label }: IMapLegendItem) => react_jsx_runtime.JSX.Element;
|
1674
|
-
|
1675
|
-
declare const Map: {
|
1676
|
-
(props: IMap): react_jsx_runtime.JSX.Element;
|
1677
|
-
Location: (props: ILocationBasedMap & {
|
1678
|
-
ref?: React__default.Ref<LocationMapHandle>;
|
1679
|
-
}) => JSX.Element;
|
1680
|
-
Direction: (props: IDirectionBasedMapBase & {
|
1681
|
-
ref?: React__default.Ref<DirectionMapHandle>;
|
1682
|
-
}) => JSX.Element;
|
1683
|
-
Failed: ({ message }: IFailureMap) => react_jsx_runtime.JSX.Element | null;
|
1684
|
-
Loading: ({ loader }: {
|
1685
|
-
loader: React__default.ReactNode;
|
1686
|
-
}) => react_jsx_runtime.JSX.Element | null;
|
1687
|
-
};
|
1688
|
-
|
1689
1689
|
interface IProgress {
|
1690
1690
|
steps: number;
|
1691
1691
|
activeStep: number;
|
package/build/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
2
|
import * as React$1 from 'react';
|
3
|
-
import React__default, {
|
3
|
+
import React__default, { PropsWithChildren, Ref, ReactElement, ReactNode, FC } from 'react';
|
4
4
|
import { TypographyFontKey, TypographyFontsKey, TypographyFontWeightKey, SpacingKey, Color, ColorVariant } from '@tactics/tacky/contract';
|
5
5
|
export { Color, ColorVariant, Radius, Spacing, ThemeConfigI, ThemeI, ThemeVariantsI, TypographyFont, TypographyFonts } from '@tactics/tacky/contract';
|
6
6
|
import { Feature as Feature$1, Point, LineString } from 'geojson';
|
@@ -267,8 +267,115 @@ declare enum FramePadding {
|
|
267
267
|
SMALL = "SMALL"
|
268
268
|
}
|
269
269
|
|
270
|
+
type TerminalType = "ORIGIN" | "DESTINATION" | "VIEW_ONLY";
|
271
|
+
type PointType = "DAYCARE" | "CHILDMINDER" | "COOPERATIVE" | "OUT_OF_RANGE" | "VIEW_ONLY";
|
272
|
+
interface ITerminal {
|
273
|
+
key: string;
|
274
|
+
name: string;
|
275
|
+
type: TerminalType;
|
276
|
+
}
|
277
|
+
interface IPin {
|
278
|
+
key: string;
|
279
|
+
name: string;
|
280
|
+
address: string;
|
281
|
+
showsExactLocation: boolean;
|
282
|
+
type: PointType;
|
283
|
+
overlay: React__default.ReactNode;
|
284
|
+
}
|
285
|
+
interface ILine {
|
286
|
+
key: string;
|
287
|
+
index: number;
|
288
|
+
label: string;
|
289
|
+
durationInSeconds: number;
|
290
|
+
distanceInMeters: number;
|
291
|
+
steps: IRouteStep[];
|
292
|
+
}
|
293
|
+
interface IStep {
|
294
|
+
key: string;
|
295
|
+
instructions: string;
|
296
|
+
travel_mode: google.maps.TravelMode;
|
297
|
+
}
|
298
|
+
type IOrigin = Feature$1<Point, ITerminal>;
|
299
|
+
type IDestination = Feature$1<Point, ITerminal>;
|
300
|
+
type IPoint = Feature$1<Point, IPin>;
|
301
|
+
type IPoints = IPoint[];
|
302
|
+
type IRoute = Feature$1<LineString, ILine>;
|
303
|
+
type IRoutes = Record<string, IRoute>;
|
304
|
+
type IRouteStep = Feature$1<LineString, IStep>;
|
305
|
+
interface IFailureMap {
|
306
|
+
message: string;
|
307
|
+
}
|
308
|
+
interface IMapLegendLabel {
|
309
|
+
figure: React__default.ReactElement<IFigure>;
|
310
|
+
label: string;
|
311
|
+
}
|
312
|
+
interface IMapLegendItem {
|
313
|
+
pin: React__default.ReactElement<IPin>;
|
314
|
+
label: string;
|
315
|
+
}
|
316
|
+
interface ILocationBasedMap {
|
317
|
+
updateOriginOnAreaChange: boolean;
|
318
|
+
viewOnly?: boolean;
|
319
|
+
points?: IPoints;
|
320
|
+
showLoader: boolean;
|
321
|
+
loader?: React__default.ReactNode;
|
322
|
+
origin: IOrigin;
|
323
|
+
radius: number;
|
324
|
+
legend?: React__default.ReactElement<IMapLegendItem>[];
|
325
|
+
legendToggle?: React__default.ReactElement<IMapLegendLabel>;
|
326
|
+
onAreaChange?: (origin: google.maps.LatLng, center: google.maps.LatLng, bounds: google.maps.LatLngBounds, radius: number, zoomLevel: number) => void;
|
327
|
+
}
|
328
|
+
interface IDirectionBasedMapBase {
|
329
|
+
routes?: IRoutes;
|
330
|
+
viewOnly?: boolean;
|
331
|
+
activeRoute: string;
|
332
|
+
points?: IPoints;
|
333
|
+
showLoader: boolean;
|
334
|
+
loader?: React__default.ReactNode;
|
335
|
+
origin?: IOrigin;
|
336
|
+
destination?: IDestination;
|
337
|
+
deviation: number;
|
338
|
+
activeTravelMode: google.maps.TravelMode;
|
339
|
+
legend?: React__default.ReactElement<IMapLegendItem>[];
|
340
|
+
legendToggle?: React__default.ReactElement<IMapLegendLabel>;
|
341
|
+
onRouteChange?: (activeRoute: string, route: IRoute, travelMode: google.maps.TravelMode, deviation: number) => void;
|
342
|
+
onTravelModeChange?: (travelMode: google.maps.TravelMode, deviation: number) => void;
|
343
|
+
onAreaChange?: (origin: google.maps.LatLng, destination: google.maps.LatLng, center: google.maps.LatLng, bounds: google.maps.LatLngBounds, zoomLevel: number) => void;
|
344
|
+
}
|
345
|
+
interface IMap extends PropsWithChildren {
|
346
|
+
mapId: string;
|
347
|
+
defaultCenter: google.maps.LatLngLiteral;
|
348
|
+
zoom?: number;
|
349
|
+
}
|
350
|
+
|
351
|
+
interface DirectionMapHandle {
|
352
|
+
closeMapOverlay: () => void;
|
353
|
+
}
|
354
|
+
|
355
|
+
interface LocationMapHandle {
|
356
|
+
panTo: (lat: number, lng: number) => void;
|
357
|
+
closeMapOverlay: () => void;
|
358
|
+
}
|
359
|
+
|
360
|
+
declare const MapLegendLabel: ({ figure, label }: IMapLegendLabel) => react_jsx_runtime.JSX.Element;
|
361
|
+
declare const MapLegendItem: ({ pin, label }: IMapLegendItem) => react_jsx_runtime.JSX.Element;
|
362
|
+
|
363
|
+
declare const Map: {
|
364
|
+
(props: IMap): react_jsx_runtime.JSX.Element;
|
365
|
+
Location: (props: ILocationBasedMap & {
|
366
|
+
ref?: React__default.Ref<LocationMapHandle>;
|
367
|
+
}) => JSX.Element;
|
368
|
+
Direction: (props: IDirectionBasedMapBase & {
|
369
|
+
ref?: React__default.Ref<DirectionMapHandle>;
|
370
|
+
}) => JSX.Element;
|
371
|
+
Failed: ({ message }: IFailureMap) => react_jsx_runtime.JSX.Element | null;
|
372
|
+
Loading: ({ loader }: {
|
373
|
+
loader: React__default.ReactNode;
|
374
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
375
|
+
};
|
376
|
+
|
270
377
|
interface IFrame {
|
271
|
-
around: React__default.ReactElement<IIcon | IFigure>;
|
378
|
+
around: React__default.ReactElement<IIcon | IFigure | IPin>;
|
272
379
|
split?: string | false;
|
273
380
|
background?: string;
|
274
381
|
padding?: FramePadding;
|
@@ -1279,7 +1386,7 @@ declare enum PlaceholderPhotoType {
|
|
1279
1386
|
}
|
1280
1387
|
|
1281
1388
|
interface IPlaceholderPhoto {
|
1282
|
-
figure:
|
1389
|
+
figure: React__default.ReactElement<IFigure>;
|
1283
1390
|
type: PlaceholderPhotoType;
|
1284
1391
|
height: string;
|
1285
1392
|
}
|
@@ -1579,113 +1686,6 @@ interface IFooter {
|
|
1579
1686
|
|
1580
1687
|
declare const Footer: ({ top, left, right, bottom }: IFooter) => react_jsx_runtime.JSX.Element;
|
1581
1688
|
|
1582
|
-
type TerminalType = "ORIGIN" | "DESTINATION" | "VIEW_ONLY";
|
1583
|
-
type PointType = "DAYCARE" | "CHILDMINDER" | "COOPERATIVE" | "OUT_OF_RANGE" | "VIEW_ONLY";
|
1584
|
-
interface ITerminal {
|
1585
|
-
key: string;
|
1586
|
-
name: string;
|
1587
|
-
type: TerminalType;
|
1588
|
-
}
|
1589
|
-
interface IPin {
|
1590
|
-
key: string;
|
1591
|
-
name: string;
|
1592
|
-
address: string;
|
1593
|
-
showsExactLocation: boolean;
|
1594
|
-
type: PointType;
|
1595
|
-
overlay: React__default.ReactNode;
|
1596
|
-
}
|
1597
|
-
interface ILine {
|
1598
|
-
key: string;
|
1599
|
-
index: number;
|
1600
|
-
label: string;
|
1601
|
-
durationInSeconds: number;
|
1602
|
-
distanceInMeters: number;
|
1603
|
-
steps: IRouteStep[];
|
1604
|
-
}
|
1605
|
-
interface IStep {
|
1606
|
-
key: string;
|
1607
|
-
instructions: string;
|
1608
|
-
travel_mode: google.maps.TravelMode;
|
1609
|
-
}
|
1610
|
-
type IOrigin = Feature$1<Point, ITerminal>;
|
1611
|
-
type IDestination = Feature$1<Point, ITerminal>;
|
1612
|
-
type IPoint = Feature$1<Point, IPin>;
|
1613
|
-
type IPoints = IPoint[];
|
1614
|
-
type IRoute = Feature$1<LineString, ILine>;
|
1615
|
-
type IRoutes = Record<string, IRoute>;
|
1616
|
-
type IRouteStep = Feature$1<LineString, IStep>;
|
1617
|
-
interface IFailureMap {
|
1618
|
-
message: string;
|
1619
|
-
}
|
1620
|
-
interface IMapLegendLabel {
|
1621
|
-
figure: React__default.ReactElement<IFigure>;
|
1622
|
-
label: string;
|
1623
|
-
}
|
1624
|
-
interface IMapLegendItem {
|
1625
|
-
pin: React__default.ReactElement<IPin>;
|
1626
|
-
label: string;
|
1627
|
-
}
|
1628
|
-
interface ILocationBasedMap {
|
1629
|
-
updateOriginOnAreaChange: boolean;
|
1630
|
-
viewOnly?: boolean;
|
1631
|
-
points?: IPoints;
|
1632
|
-
showLoader: boolean;
|
1633
|
-
loader?: React__default.ReactNode;
|
1634
|
-
origin: IOrigin;
|
1635
|
-
radius: number;
|
1636
|
-
legend?: React__default.ReactElement<IMapLegendItem>[];
|
1637
|
-
legendToggle?: React__default.ReactElement<IMapLegendLabel>;
|
1638
|
-
onAreaChange?: (origin: google.maps.LatLng, center: google.maps.LatLng, bounds: google.maps.LatLngBounds, radius: number, zoomLevel: number) => void;
|
1639
|
-
}
|
1640
|
-
interface IDirectionBasedMapBase {
|
1641
|
-
routes?: IRoutes;
|
1642
|
-
viewOnly?: boolean;
|
1643
|
-
activeRoute: string;
|
1644
|
-
points?: IPoints;
|
1645
|
-
showLoader: boolean;
|
1646
|
-
loader?: React__default.ReactNode;
|
1647
|
-
origin?: IOrigin;
|
1648
|
-
destination?: IDestination;
|
1649
|
-
deviation: number;
|
1650
|
-
activeTravelMode: google.maps.TravelMode;
|
1651
|
-
legend?: React__default.ReactElement<IMapLegendItem>[];
|
1652
|
-
legendToggle?: React__default.ReactElement<IMapLegendLabel>;
|
1653
|
-
onRouteChange?: (activeRoute: string, route: IRoute, travelMode: google.maps.TravelMode, deviation: number) => void;
|
1654
|
-
onTravelModeChange?: (travelMode: google.maps.TravelMode, deviation: number) => void;
|
1655
|
-
onAreaChange?: (origin: google.maps.LatLng, destination: google.maps.LatLng, center: google.maps.LatLng, bounds: google.maps.LatLngBounds, zoomLevel: number) => void;
|
1656
|
-
}
|
1657
|
-
interface IMap extends PropsWithChildren {
|
1658
|
-
mapId: string;
|
1659
|
-
defaultCenter: google.maps.LatLngLiteral;
|
1660
|
-
zoom?: number;
|
1661
|
-
}
|
1662
|
-
|
1663
|
-
interface DirectionMapHandle {
|
1664
|
-
closeMapOverlay: () => void;
|
1665
|
-
}
|
1666
|
-
|
1667
|
-
interface LocationMapHandle {
|
1668
|
-
panTo: (lat: number, lng: number) => void;
|
1669
|
-
closeMapOverlay: () => void;
|
1670
|
-
}
|
1671
|
-
|
1672
|
-
declare const MapLegendLabel: ({ figure, label }: IMapLegendLabel) => react_jsx_runtime.JSX.Element;
|
1673
|
-
declare const MapLegendItem: ({ pin, label }: IMapLegendItem) => react_jsx_runtime.JSX.Element;
|
1674
|
-
|
1675
|
-
declare const Map: {
|
1676
|
-
(props: IMap): react_jsx_runtime.JSX.Element;
|
1677
|
-
Location: (props: ILocationBasedMap & {
|
1678
|
-
ref?: React__default.Ref<LocationMapHandle>;
|
1679
|
-
}) => JSX.Element;
|
1680
|
-
Direction: (props: IDirectionBasedMapBase & {
|
1681
|
-
ref?: React__default.Ref<DirectionMapHandle>;
|
1682
|
-
}) => JSX.Element;
|
1683
|
-
Failed: ({ message }: IFailureMap) => react_jsx_runtime.JSX.Element | null;
|
1684
|
-
Loading: ({ loader }: {
|
1685
|
-
loader: React__default.ReactNode;
|
1686
|
-
}) => react_jsx_runtime.JSX.Element | null;
|
1687
|
-
};
|
1688
|
-
|
1689
1689
|
interface IProgress {
|
1690
1690
|
steps: number;
|
1691
1691
|
activeStep: number;
|