@tactics/lokaal-loket 0.0.153 → 0.0.155
Sign up to get free protection for your applications and to get access to all the features.
- package/build/index.cjs +357 -357
- package/build/index.d.cts +7 -2
- package/build/index.d.ts +7 -2
- package/build/index.js +241 -241
- package/package.json +1 -1
package/build/index.d.cts
CHANGED
@@ -1137,14 +1137,18 @@ interface IPoint {
|
|
1137
1137
|
overlay: React$1.ReactNode;
|
1138
1138
|
}
|
1139
1139
|
interface ILine {
|
1140
|
+
key: string;
|
1140
1141
|
index: number;
|
1141
1142
|
label: string;
|
1142
1143
|
}
|
1143
1144
|
type IOrigin = Feature$1<Point, ITerminal>;
|
1144
1145
|
type IDestination = Feature$1<Point, ITerminal>;
|
1145
1146
|
type IPoints = FeatureCollection<Point, IPoint>;
|
1146
|
-
type IRoute =
|
1147
|
+
type IRoute = Feature$1<LineString, ILine>;
|
1147
1148
|
type IRoutes = IRoute[];
|
1149
|
+
interface IFailureMap {
|
1150
|
+
message: string;
|
1151
|
+
}
|
1148
1152
|
interface ILocationBasedMap {
|
1149
1153
|
points?: IPoints;
|
1150
1154
|
showLoader: boolean;
|
@@ -1163,7 +1167,7 @@ interface IDirectionBasedMapBase {
|
|
1163
1167
|
destination: IDestination;
|
1164
1168
|
travelModeLabels: TravelModeLabels;
|
1165
1169
|
onTravelModeChange?: (modes: google.maps.TravelMode[]) => void;
|
1166
|
-
onRouteChange?: (
|
1170
|
+
onRouteChange?: (route: IRoute) => void;
|
1167
1171
|
onZoomChange?: () => void;
|
1168
1172
|
}
|
1169
1173
|
interface IMap extends PropsWithChildren {
|
@@ -1182,6 +1186,7 @@ declare const Map: {
|
|
1182
1186
|
(props: IMap): react_jsx_runtime.JSX.Element;
|
1183
1187
|
Location: ({ points, showLoader, loader, origin, onRadiusChange, onZoomChange, onAreaChange, }: ILocationBasedMap) => react_jsx_runtime.JSX.Element | null;
|
1184
1188
|
Direction: ({ routes, origin, destination, travelModeLabels, points, showLoader, loader, onTravelModeChange, onRouteChange, onZoomChange, }: IDirectionBasedMapBase) => react_jsx_runtime.JSX.Element | null;
|
1189
|
+
Failed: ({ message }: IFailureMap) => react_jsx_runtime.JSX.Element | null;
|
1185
1190
|
};
|
1186
1191
|
|
1187
1192
|
interface IWizard {
|
package/build/index.d.ts
CHANGED
@@ -1137,14 +1137,18 @@ interface IPoint {
|
|
1137
1137
|
overlay: React$1.ReactNode;
|
1138
1138
|
}
|
1139
1139
|
interface ILine {
|
1140
|
+
key: string;
|
1140
1141
|
index: number;
|
1141
1142
|
label: string;
|
1142
1143
|
}
|
1143
1144
|
type IOrigin = Feature$1<Point, ITerminal>;
|
1144
1145
|
type IDestination = Feature$1<Point, ITerminal>;
|
1145
1146
|
type IPoints = FeatureCollection<Point, IPoint>;
|
1146
|
-
type IRoute =
|
1147
|
+
type IRoute = Feature$1<LineString, ILine>;
|
1147
1148
|
type IRoutes = IRoute[];
|
1149
|
+
interface IFailureMap {
|
1150
|
+
message: string;
|
1151
|
+
}
|
1148
1152
|
interface ILocationBasedMap {
|
1149
1153
|
points?: IPoints;
|
1150
1154
|
showLoader: boolean;
|
@@ -1163,7 +1167,7 @@ interface IDirectionBasedMapBase {
|
|
1163
1167
|
destination: IDestination;
|
1164
1168
|
travelModeLabels: TravelModeLabels;
|
1165
1169
|
onTravelModeChange?: (modes: google.maps.TravelMode[]) => void;
|
1166
|
-
onRouteChange?: (
|
1170
|
+
onRouteChange?: (route: IRoute) => void;
|
1167
1171
|
onZoomChange?: () => void;
|
1168
1172
|
}
|
1169
1173
|
interface IMap extends PropsWithChildren {
|
@@ -1182,6 +1186,7 @@ declare const Map: {
|
|
1182
1186
|
(props: IMap): react_jsx_runtime.JSX.Element;
|
1183
1187
|
Location: ({ points, showLoader, loader, origin, onRadiusChange, onZoomChange, onAreaChange, }: ILocationBasedMap) => react_jsx_runtime.JSX.Element | null;
|
1184
1188
|
Direction: ({ routes, origin, destination, travelModeLabels, points, showLoader, loader, onTravelModeChange, onRouteChange, onZoomChange, }: IDirectionBasedMapBase) => react_jsx_runtime.JSX.Element | null;
|
1189
|
+
Failed: ({ message }: IFailureMap) => react_jsx_runtime.JSX.Element | null;
|
1185
1190
|
};
|
1186
1191
|
|
1187
1192
|
interface IWizard {
|