@smart-factor/gem-ui-map-component 0.0.36 → 0.0.38
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/dist/{MapButtons-BBrNnHVQ.js → MapButtons-C1G5dcCi.js} +18301 -18276
- package/dist/api/queries/useGetRoadManagerTeryt.d.ts +2 -0
- package/dist/api/queryKeys.d.ts +1 -0
- package/dist/api/services/generated/api.d.ts +27 -0
- package/dist/components/Map/Map.d.ts +1 -1
- package/dist/components/Map/types.d.ts +15 -0
- package/dist/components/MapButtons/index.js +1 -1
- package/dist/hooks/useSetupMap.d.ts +2 -2
- package/dist/main.d.ts +1 -0
- package/dist/main.js +1145 -1128
- package/package.json +1 -1
package/dist/api/queryKeys.d.ts
CHANGED
|
@@ -371,6 +371,17 @@ export type QueryClosestRoadInfoData = {
|
|
|
371
371
|
export interface RoadInfoPayload {
|
|
372
372
|
geometry?: Geometry;
|
|
373
373
|
}
|
|
374
|
+
export interface RoadManagerDTO {
|
|
375
|
+
/** @format int32 */
|
|
376
|
+
id?: number;
|
|
377
|
+
name?: string;
|
|
378
|
+
symbol?: string;
|
|
379
|
+
description?: string;
|
|
380
|
+
territoryCode?: string;
|
|
381
|
+
}
|
|
382
|
+
export type QueryRoadManagersData = {
|
|
383
|
+
response: RoadManagerDTO;
|
|
384
|
+
};
|
|
374
385
|
export interface GEMRoad {
|
|
375
386
|
id: number;
|
|
376
387
|
category: string;
|
|
@@ -554,6 +565,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
554
565
|
*/
|
|
555
566
|
queryRoads: (params?: RequestParams) => Promise<AxiosResponse<QueryRoadsData, any>>;
|
|
556
567
|
};
|
|
568
|
+
roadmanager: {
|
|
569
|
+
/**
|
|
570
|
+
* @tags /roadmanager
|
|
571
|
+
* @name QueryRoadManagers
|
|
572
|
+
* @summary Zwraca listę zarządców drogi
|
|
573
|
+
* @request GET:/roadmanager
|
|
574
|
+
* @secure
|
|
575
|
+
* @response `200` `QueryRoadManagersData` Pobieranie zakończone sukcesem
|
|
576
|
+
* @response `400` `string` Bad Request
|
|
577
|
+
* @response `404` `string` Not Found
|
|
578
|
+
* @response `406` `string` Not Acceptable
|
|
579
|
+
* @response `409` `(ErrorResponse | string)` Conflict
|
|
580
|
+
* @response `500` `(RoadManagerDTO)[]` Wewnętrzny błąd serwera
|
|
581
|
+
*/
|
|
582
|
+
queryRoadManagers: (params?: RequestParams) => Promise<AxiosResponse<QueryRoadManagersData, any>>;
|
|
583
|
+
};
|
|
557
584
|
user: {
|
|
558
585
|
/**
|
|
559
586
|
* No description
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { MapExternalProps } from './types';
|
|
2
|
-
declare const MapWithProviders: ({ id, mapLayers, caseObjectId, sidebarConfig, mapButtonsConfig, mapElementsConfig, setOuterDrawnGeometries, setOuterSelectedMapObjects, selectedFeatures, multiSelectEnabled, initialDrawnGeometries, disableEditNonUserDrawnGeometries, enforceWithinRoad, disableTreeConfig, }: MapExternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const MapWithProviders: ({ id, mapLayers, caseObjectId, sidebarConfig, mapButtonsConfig, mapElementsConfig, setOuterDrawnGeometries, setOuterSelectedMapObjects, selectedFeatures, multiSelectEnabled, initialDrawnGeometries, disableEditNonUserDrawnGeometries, enforceWithinRoad, disableTreeConfig, defaultCoordinate, defaultZoom, }: MapExternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default MapWithProviders;
|
|
@@ -184,4 +184,19 @@ export interface MapExternalProps extends MapConfig {
|
|
|
184
184
|
caseObjectId?: number;
|
|
185
185
|
selectedFeatures?: SelectedFeature[];
|
|
186
186
|
initialDrawnGeometries?: InitialDrawnGeometry[];
|
|
187
|
+
/** GeoJSON-style Point with optional CRS used as the initial map center.
|
|
188
|
+
* `null` means the user has no saved default and the map should fall back. */
|
|
189
|
+
defaultCoordinate?: DefaultCoordinate | null;
|
|
190
|
+
/** Initial map zoom level (0-30). `null` falls back to the default zoom. */
|
|
191
|
+
defaultZoom?: number | null;
|
|
192
|
+
}
|
|
193
|
+
export interface DefaultCoordinate {
|
|
194
|
+
type?: string;
|
|
195
|
+
coordinates?: number[];
|
|
196
|
+
crs?: {
|
|
197
|
+
type?: string;
|
|
198
|
+
properties?: {
|
|
199
|
+
name?: string;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
187
202
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { InitialDrawnGeometry, MapLayer, SelectedFeature } from '../components/Map/types';
|
|
1
|
+
import { DefaultCoordinate, InitialDrawnGeometry, MapLayer, SelectedFeature } from '../components/Map/types';
|
|
2
2
|
export declare const GEOLOCATION_LAYER = "geolocationLayer";
|
|
3
|
-
export declare const useSetupMap: (id: string, mapLayers: MapLayer[], caseObjectId: number, disableEditNonUserDrawnGeometries: boolean, enforceWithinRoad: boolean, initialSelectedFeatures?: SelectedFeature[], multiSelectEnabled?: boolean, initialDrawnGeometries?: InitialDrawnGeometry[]) => void;
|
|
3
|
+
export declare const useSetupMap: (id: string, mapLayers: MapLayer[], caseObjectId: number, disableEditNonUserDrawnGeometries: boolean, enforceWithinRoad: boolean, initialSelectedFeatures?: SelectedFeature[], multiSelectEnabled?: boolean, initialDrawnGeometries?: InitialDrawnGeometry[], defaultCoordinate?: DefaultCoordinate | null, defaultZoom?: number | null) => void;
|
package/dist/main.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { type MapConfig } from './components/Map/config';
|
|
2
2
|
export { default as Map } from './components/Map/Map';
|
|
3
|
+
export { type DefaultCoordinate } from './components/Map/types';
|
|
3
4
|
export { default as GemUIMapComponentProvider } from './providers/GemUIMapComponentProvider';
|