@smart-factor/gem-ui-map-component 0.0.1

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 (83) hide show
  1. package/README.md +29 -0
  2. package/dist/MapButtons-Bsd6BBt9.js +94106 -0
  3. package/dist/api/mutations/useAssignMapRepresentation.d.ts +10 -0
  4. package/dist/api/queries/useGetCasesBySearch.d.ts +4 -0
  5. package/dist/api/queries/useGetMapRepresentation.d.ts +4 -0
  6. package/dist/api/queries/useGetPRGAddress.d.ts +20 -0
  7. package/dist/api/queries/useGetPlotBySearch.d.ts +5 -0
  8. package/dist/api/queryKeys.d.ts +29 -0
  9. package/dist/api/services/api.d.ts +3 -0
  10. package/dist/api/services/generated/api.d.ts +461 -0
  11. package/dist/components/AddressSearch/AddressSearch.d.ts +1 -0
  12. package/dist/components/AngleOverlay/AngleOverlay.d.ts +6 -0
  13. package/dist/components/AngleOverlay/AngleOverlay.styles.d.ts +3 -0
  14. package/dist/components/AngleOverlay/utils.d.ts +3 -0
  15. package/dist/components/CaseContextualSearch/CaseContextualSearch.d.ts +11 -0
  16. package/dist/components/CaseContextualSearch/index.d.ts +1 -0
  17. package/dist/components/CaseContextualSearch/useGetCasesContextual.d.ts +11 -0
  18. package/dist/components/DrawCreator/DrawCreator.d.ts +9 -0
  19. package/dist/components/DrawCreator/DrawCreator.styles.d.ts +3 -0
  20. package/dist/components/Layers/Layers.d.ts +2 -0
  21. package/dist/components/Layers/Layers.styles.d.ts +8 -0
  22. package/dist/components/Map/Map.d.ts +3 -0
  23. package/dist/components/Map/Map.styles.d.ts +29 -0
  24. package/dist/components/Map/config.d.ts +18 -0
  25. package/dist/components/Map/refManager.d.ts +65 -0
  26. package/dist/components/Map/types.d.ts +175 -0
  27. package/dist/components/Map/utils.d.ts +33 -0
  28. package/dist/components/MapButtons/MapButtons.d.ts +3 -0
  29. package/dist/components/MapButtons/index.d.ts +1 -0
  30. package/dist/components/MapButtons/index.js +4 -0
  31. package/dist/components/MapPopups/ChooseLayerModal/ChooseLayerModal.d.ts +1 -0
  32. package/dist/components/MapPopups/ChooseLayerModal/types.d.ts +4 -0
  33. package/dist/components/MapPopups/ChooseOverlappingGeometryModal/ChooseOverlappingGeometryModal.d.ts +1 -0
  34. package/dist/components/MapPopups/ChooseOverlappingGeometryModal/types.d.ts +6 -0
  35. package/dist/components/MapPopups/ConfirmDeleteModal/ConfirmDeleteModal.d.ts +1 -0
  36. package/dist/components/MapPopups/ConfirmDeleteModal/types.d.ts +4 -0
  37. package/dist/components/MapPopups/ConfirmDrawingModal/ConfirmDrawingModal.d.ts +1 -0
  38. package/dist/components/MapPopups/ConfirmDrawingModal/types.d.ts +4 -0
  39. package/dist/components/MapPopups/LayersInfoDrawer/LayersInfoDrawer.d.ts +1 -0
  40. package/dist/components/MapPopups/LayersInfoDrawer/types.d.ts +4 -0
  41. package/dist/components/MapPopups/MapPopups.d.ts +2 -0
  42. package/dist/components/MapPopups/styles.d.ts +13 -0
  43. package/dist/components/MapRepresentationSearch/MapRepresentationSearch.d.ts +1 -0
  44. package/dist/components/MapSidebar/MapSidebar.d.ts +2 -0
  45. package/dist/components/MapSidebar/MapSidebar.style.d.ts +20 -0
  46. package/dist/components/MapSidebar/index.d.ts +1 -0
  47. package/dist/components/Navigation/Navigation.d.ts +2 -0
  48. package/dist/components/Navigation/Navigation.styles.d.ts +3 -0
  49. package/dist/components/Navigation/NavigationContext.d.ts +29 -0
  50. package/dist/components/Navigation/RoadInputs.d.ts +1 -0
  51. package/dist/components/PlotSearch/PlotSearch.d.ts +1 -0
  52. package/dist/components/QueryClientProvider/QueryClientProvider.d.ts +6 -0
  53. package/dist/components/SnapConfigBar/SnapConfigBar.d.ts +1 -0
  54. package/dist/components/SnapConfigBar/SnapConfigBar.styles.d.ts +8 -0
  55. package/dist/constants/geometryTypes.d.ts +14 -0
  56. package/dist/constants/snapInteractionsTypes.d.ts +7 -0
  57. package/dist/constants/snapTypes.d.ts +5 -0
  58. package/dist/constants/style.d.ts +2 -0
  59. package/dist/contexts/MapInteractionsContext/MapInteractionsContextProvider.d.ts +6 -0
  60. package/dist/contexts/MapInteractionsContext/index.d.ts +2 -0
  61. package/dist/contexts/MapInteractionsContext/types.d.ts +41 -0
  62. package/dist/contexts/MapInteractionsContext/useMapInteractionsContext.d.ts +3 -0
  63. package/dist/contexts/MapOverlaysAndPopupsContext.d.ts +19 -0
  64. package/dist/contexts/MapPopupContext/MapPopupContext.d.ts +8 -0
  65. package/dist/contexts/MapPopupContext/types.d.ts +20 -0
  66. package/dist/helpers.d.ts +2 -0
  67. package/dist/hooks/useDebounce.d.ts +1 -0
  68. package/dist/hooks/useDelayedOpenAndClose.d.ts +1 -0
  69. package/dist/hooks/useMapGeolocation.d.ts +2 -0
  70. package/dist/hooks/useSetupMap.d.ts +3 -0
  71. package/dist/hooks/useTimeoutDebounce.d.ts +4 -0
  72. package/dist/main.d.ts +3 -0
  73. package/dist/main.js +11363 -0
  74. package/dist/providers/GemUIMapComponentProvider.d.ts +4 -0
  75. package/dist/services/EventEmitter.d.ts +7 -0
  76. package/dist/services/Layers/LayersService.d.ts +34 -0
  77. package/dist/services/Map/MapService.d.ts +70 -0
  78. package/dist/services/Map/types.d.ts +96 -0
  79. package/dist/services/Navigation/NavigationService.d.ts +12 -0
  80. package/dist/snap/helpers.d.ts +7 -0
  81. package/dist/snap/snap.d.ts +12 -0
  82. package/dist/snap/types.d.ts +49 -0
  83. package/package.json +107 -0
@@ -0,0 +1,18 @@
1
+ interface SidebarConfig {
2
+ sidebarVisible: boolean;
3
+ items: Record<'findGeometry' | 'plotSearch' | 'addressSearch' | 'roadNavigation' | 'mapObjectSearch' | 'mapLayers', boolean>;
4
+ }
5
+ interface MapButtonsConfig {
6
+ mapButtonsVisible: boolean;
7
+ items: Record<'draw' | 'info' | 'assign' | 'geoLocation', boolean>;
8
+ }
9
+ interface MapElementsConfig {
10
+ mapElementsVisible: boolean;
11
+ items: Record<'snapBar' | 'drawCreator', boolean>;
12
+ }
13
+ export interface MapConfig {
14
+ sidebarConfig: SidebarConfig;
15
+ mapButtonsConfig: MapButtonsConfig;
16
+ mapElementsConfig: MapElementsConfig;
17
+ }
18
+ export {};
@@ -0,0 +1,65 @@
1
+ import { MutableRefObject } from 'react';
2
+ import { Collection, Feature, Map, Overlay } from 'ol';
3
+ import { Coordinate } from 'ol/coordinate';
4
+ import { Geometry } from 'ol/geom';
5
+ import { default as Draw } from 'ol/interaction/Draw';
6
+ import { default as Modify } from 'ol/interaction/Modify';
7
+ import { default as Select } from 'ol/interaction/Select';
8
+ import { default as Snap } from 'ol/interaction/Snap';
9
+ import { default as VectorLayer } from 'ol/layer/Vector';
10
+ import { default as VectorSource } from 'ol/source/Vector';
11
+ import { GEMRoadNetDetails, SnapConfiguration, VectorLayerType } from './types';
12
+ import * as olProj from 'ol/proj';
13
+ export interface Interactions {
14
+ draw?: Draw;
15
+ modify?: Modify;
16
+ snap?: Snap;
17
+ hover?: Select;
18
+ select?: Select;
19
+ }
20
+ interface NonNullInteractions {
21
+ draw: Draw;
22
+ modify: Modify;
23
+ snap: Snap;
24
+ hover: Select;
25
+ select: Select;
26
+ }
27
+ type NonNullableRefManager = {
28
+ prefix: string;
29
+ initialized: MutableRefObject<boolean>;
30
+ interactions: MutableRefObject<NonNullInteractions>;
31
+ persistedGeometry: MutableRefObject<Geometry | undefined>;
32
+ interactLayers: MutableRefObject<VectorLayerType[]>;
33
+ hoveredGeometry: MutableRefObject<Feature<Geometry>>;
34
+ mapInstance: MutableRefObject<Map>;
35
+ showInfoLayerEnabledRef: MutableRefObject<boolean>;
36
+ distanceOverlayElement: MutableRefObject<HTMLElement>;
37
+ drawLayer: MutableRefObject<VectorLayerType>;
38
+ positionFeature: MutableRefObject<Feature<Geometry>>;
39
+ distanceOverlay: MutableRefObject<Overlay>;
40
+ angleOverlay: MutableRefObject<Overlay>;
41
+ angleOverlayElement: MutableRefObject<HTMLDivElement>;
42
+ projections: MutableRefObject<olProj.Projection | null>;
43
+ selectedNet: MutableRefObject<GEMRoadNetDetails>;
44
+ selectedRoadId: MutableRefObject<number>;
45
+ selectedRoadData: MutableRefObject<GEMRoadNetDetails[]>;
46
+ lastClickedPoint: MutableRefObject<Coordinate | null>;
47
+ selectedLayerId: MutableRefObject<number>;
48
+ isModalAccepted: MutableRefObject<boolean>;
49
+ snapFeatures: MutableRefObject<Collection<Feature<Geometry>>>;
50
+ drawnRoad: MutableRefObject<Feature<Geometry> | Feature<Geometry>[]>;
51
+ roadSource: MutableRefObject<VectorSource<Feature<Geometry>>>;
52
+ interactSnapLayers: MutableRefObject<VectorLayer[]>;
53
+ positionLayer: MutableRefObject<VectorLayerType>;
54
+ position: MutableRefObject<Coordinate>;
55
+ isSnapVisualization: MutableRefObject<boolean>;
56
+ isSnapToAngle: MutableRefObject<boolean>;
57
+ isSnapToMiddleActive: MutableRefObject<boolean>;
58
+ isSnapToAbsoluteCenter: MutableRefObject<boolean>;
59
+ isSnapActive: MutableRefObject<boolean>;
60
+ isSnapToAngleDisabled: MutableRefObject<boolean>;
61
+ snapConfig: MutableRefObject<SnapConfiguration>;
62
+ };
63
+ export declare const useInitializeInteractionsRefs: () => void;
64
+ export declare const getMapRefs: () => NonNullableRefManager;
65
+ export {};
@@ -0,0 +1,175 @@
1
+ import { Feature } from 'ol';
2
+ import { Coordinate } from 'ol/coordinate';
3
+ import { Geometry as GeometryApi, LineString, Point, Polygon } from 'ol/geom';
4
+ import { Type } from 'ol/geom/Geometry';
5
+ import { default as VectorLayer } from 'ol/layer/Vector';
6
+ import { default as VectorSource } from 'ol/source/Vector';
7
+ import { MapRepresentationDTO, Coordinate as CoordinateApi } from '../../api/services/generated/api';
8
+ import { GEMLayerConfig, WMSLayerConfig } from '../../services/Map/types';
9
+ import { MapConfig } from './config';
10
+ export type MapEvents = {
11
+ drawGemRoad: {
12
+ netId: number;
13
+ roadId: number;
14
+ chainage: number;
15
+ };
16
+ drawInitialGemRoad: {
17
+ netId: number;
18
+ roadId: number;
19
+ chainage: number;
20
+ };
21
+ drawGeometry: {
22
+ geometries: MapRepresentationDTO[] | GugikGeometryResponse['data']['response']['geometry'][];
23
+ };
24
+ movePointIcon: number;
25
+ 'map:geolocation:toggle': boolean;
26
+ setPositionChange: {
27
+ coords: Coordinate;
28
+ };
29
+ reloadFeatures: () => void;
30
+ };
31
+ export type SnapEvents = {
32
+ 'map:snap:deactivate': () => void;
33
+ 'map:snap:angle:disable': () => void;
34
+ 'map:snap:angle:enable': () => void;
35
+ 'map:snap:update:config': SnapConfiguration;
36
+ 'map:snap:middle:toggle': {
37
+ snapToMiddleOfLine: boolean;
38
+ };
39
+ 'map:snap:center:toggle': {
40
+ snapToCenter: boolean;
41
+ };
42
+ 'map:snap:angle:toggle': {
43
+ snapToAngle: boolean;
44
+ };
45
+ 'map:snap:toggle:visualization': boolean;
46
+ 'map:snap:toggle': () => void;
47
+ };
48
+ export type NavigationEvents = {
49
+ updateNavigationInfo: ItemPositionResponse;
50
+ };
51
+ export type GeometryEvents = {
52
+ clearDrawnGeometries: [];
53
+ };
54
+ export type LayersEvents = {
55
+ onLayersSelected: (GEMLayer | WMSLayerDetailed)[];
56
+ onLayersDeselected: (GEMLayer | WMSLayerDetailed)[];
57
+ onRestartLayers: () => void;
58
+ };
59
+ export type VectorLayerType = VectorLayer<VectorSource<Feature<GeometryApi>>, Feature<GeometryApi>>;
60
+ export type SliderValue = number | number[];
61
+ export interface SnapConfiguration {
62
+ [key: string]: boolean | SliderValue;
63
+ edge: boolean;
64
+ vertex: boolean;
65
+ pixelTolerance: SliderValue;
66
+ }
67
+ export interface InfoLayersStructure {
68
+ title: string;
69
+ hint: Record<string, string>[];
70
+ }
71
+ export type GEMLayer = {
72
+ id: string;
73
+ parent: string;
74
+ text: string;
75
+ config: GEMLayerConfig;
76
+ };
77
+ export interface ProcessedGEMLayer {
78
+ id: string;
79
+ parent: string;
80
+ label: string;
81
+ checked: boolean;
82
+ config: GEMLayerConfig;
83
+ }
84
+ export interface GEMLayerTreeItem extends ProcessedGEMLayer {
85
+ children: GEMLayerTreeItem[];
86
+ isLeaf: boolean;
87
+ }
88
+ export type WMSLayerDetailed = {
89
+ id: string;
90
+ parent: string;
91
+ text: string;
92
+ config: WMSLayerConfig;
93
+ key: string;
94
+ type: string;
95
+ };
96
+ export type GEMRoad = {
97
+ id: number;
98
+ category: string;
99
+ road_name: string;
100
+ name: string;
101
+ road_number: string;
102
+ start_mileage: number;
103
+ end_mileage: number;
104
+ };
105
+ export type ItemPositionResponse = {
106
+ net_id: number;
107
+ position: number;
108
+ road_id: number;
109
+ tab_index: number;
110
+ };
111
+ export type Geometry = {
112
+ coordinates: Coordinate[];
113
+ type: Type;
114
+ geometries: string | null;
115
+ };
116
+ export type CorrectGeometryType = Polygon | Point | LineString;
117
+ export type CorrectCoordinate = Coordinate[] & Coordinate[][];
118
+ export type GEMRoadNet = {
119
+ id: number;
120
+ display_name: string;
121
+ name: string;
122
+ nodes: string;
123
+ from_mileage: number;
124
+ to_mileage: number;
125
+ length: number;
126
+ };
127
+ export type GEMRoadNetResponse = {
128
+ response: {
129
+ road_id: number;
130
+ start_mileage: number;
131
+ end_mileage: number;
132
+ nets: GEMRoadNet[];
133
+ };
134
+ };
135
+ export type GEMRoadNetDetails = {
136
+ from_node: string;
137
+ geometry: Geometry;
138
+ id: number;
139
+ length: number;
140
+ net_name: string;
141
+ number_of_carriageways: number;
142
+ region_id: number;
143
+ road_category: string;
144
+ road_class: string;
145
+ road_id: number;
146
+ road_manager_id: number;
147
+ route_id: number | null;
148
+ to_node: string;
149
+ start_station: number;
150
+ };
151
+ export interface GugikGeometryResponse {
152
+ data: {
153
+ response: {
154
+ geometry: {
155
+ coordinates: CoordinateApi[];
156
+ };
157
+ };
158
+ };
159
+ }
160
+ export type RloParams = {
161
+ applicationId?: string;
162
+ caseId?: string;
163
+ caseObjectId?: string;
164
+ decisionId?: string;
165
+ };
166
+ export type MapLayer = {
167
+ name?: string;
168
+ symbol?: string;
169
+ layerId?: number;
170
+ geometryType?: string;
171
+ };
172
+ export interface MapExternalProps extends MapConfig {
173
+ mapLayers: MapLayer[];
174
+ caseObjectId: number;
175
+ }
@@ -0,0 +1,33 @@
1
+ import { Feature, Map } from 'ol';
2
+ import { Geometry } from 'ol/geom';
3
+ import { Type } from 'ol/geom/Geometry';
4
+ import { default as Draw } from 'ol/interaction/Draw';
5
+ import { default as VectorLayer } from 'ol/layer/Vector';
6
+ import { default as VectorSource } from 'ol/source/Vector';
7
+ import { Interactions } from './refManager';
8
+ import { InfoLayersStructure, MapLayer } from './types';
9
+ export declare const stripPrefix: (id: string | number | undefined, prefix: string) => string | number | undefined;
10
+ export declare const getIsFeatureNonIntractable: (feature: Feature<Geometry>, prefix: string) => boolean;
11
+ export declare const deactivateInteractions: (interactions?: Interactions) => void;
12
+ export declare const removeFeatureSafely: (source: VectorSource<Feature<Geometry>>, selectedFeature: Feature<Geometry>) => void;
13
+ export declare const transformToCorrectGeometryType: (value: MapLayer[] | undefined) => {
14
+ geometryType: string;
15
+ name?: string | undefined;
16
+ symbol?: string | undefined;
17
+ layerId?: number | undefined;
18
+ }[];
19
+ export declare const processHintStructure: (content: InfoLayersStructure) => {
20
+ title: string;
21
+ hint: {
22
+ key: string;
23
+ value: string;
24
+ }[];
25
+ };
26
+ export declare const queryHint: (id: number) => Promise<InfoLayersStructure>;
27
+ export declare const drawAtAnAngle: ({ angle, length, drawInteraction, }: {
28
+ angle: number;
29
+ length: number;
30
+ drawInteraction: Draw;
31
+ }) => void;
32
+ export declare const getOlGeometryFromGemMapLayer: (geometryId: number | undefined, layers: MapLayer[]) => Type;
33
+ export declare const getGeolocationLayer: (mapRef: Map) => VectorLayer<VectorSource<Feature<Geometry>>, Feature<Geometry>>;
@@ -0,0 +1,3 @@
1
+ import { MapExternalProps } from '../Map/types';
2
+ declare const MapButtons: ({ mapButtonsConfig, }: Pick<MapExternalProps, 'mapButtonsConfig'>) => import("react/jsx-runtime").JSX.Element;
3
+ export default MapButtons;
@@ -0,0 +1 @@
1
+ export { default } from './MapButtons';
@@ -0,0 +1,4 @@
1
+ import { M as f } from "../../MapButtons-Bsd6BBt9.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1 @@
1
+ export declare const ChooseLayerModal: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { MapPopupWithDataCall } from '../../../contexts/MapPopupContext/types';
2
+ export type ChooseLayerModalCall = MapPopupWithDataCall<'ChooseLayer', {
3
+ onCollapse: (accepted: boolean) => void;
4
+ }>;
@@ -0,0 +1 @@
1
+ export declare const ChooseOverlappingGeometryModal: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { Feature } from 'ol';
2
+ import { Geometry } from 'ol/geom';
3
+ import { MapPopupWithDataCall } from '../../../contexts/MapPopupContext/types';
4
+ export type ChooseOverlappingGeometryModalCall = MapPopupWithDataCall<'ChooseOverlappingGeometry', {
5
+ onCollapse: (newFeature?: Feature<Geometry>, isInfo?: boolean) => void;
6
+ }>;
@@ -0,0 +1 @@
1
+ export declare const ConfirmDeleteModal: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { MapPopupWithDataCall } from '../../../contexts/MapPopupContext/types';
2
+ export type ConfirmDeleteModalCall = MapPopupWithDataCall<'ConfirmDelete', {
3
+ onCollapse: (accepted: boolean) => void;
4
+ }>;
@@ -0,0 +1 @@
1
+ export declare const ConfirmDrawingModal: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { MapPopupWithDataCall } from '../../../contexts/MapPopupContext/types';
2
+ export type ConfirmDrawingModalCall = MapPopupWithDataCall<'ConfirmDrawing', {
3
+ onCollapse: (accepted: boolean) => void;
4
+ }>;
@@ -0,0 +1 @@
1
+ export declare const LayersInfoDrawer: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { MapPopupWithDataCall } from '../../../contexts/MapPopupContext/types';
2
+ export type LayersInfoDrawerCall = MapPopupWithDataCall<'LayersInfo', {
3
+ onCollapse: () => void;
4
+ }>;
@@ -0,0 +1,2 @@
1
+ import { ReactElement } from 'react';
2
+ export declare const MapPopups: () => ReactElement<any, string | import('react').JSXElementConstructor<any>> | null;
@@ -0,0 +1,13 @@
1
+ export declare const StyledBackdrop: import('@emotion/styled').StyledComponent<import('@mui/material').BackdropOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
+ ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
3
+ }, "timeout" | "id" | "onError" | "color" | "ref" | "children" | "prefix" | "slot" | "style" | "title" | "easing" | "content" | "transitionDuration" | "translate" | "hidden" | "className" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "in" | "open" | "components" | "componentsProps" | "slotProps" | "slots" | "mountOnEnter" | "unmountOnExit" | "addEndListener" | "onEnter" | "onEntering" | "onEntered" | "onExit" | "onExiting" | "onExited" | "appear" | "enter" | "exit" | "invisible" | "TransitionComponent"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
4
+ export declare const DrawerWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
5
+ ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
6
+ }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
7
+ open: boolean;
8
+ }, {}, {}>;
9
+ export declare const ModalWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
10
+ ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
11
+ }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
12
+ open: boolean;
13
+ }, {}, {}>;
@@ -0,0 +1 @@
1
+ export default function MapRepresentationSearch(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { MapExternalProps } from '../Map/types';
2
+ export declare const MapSidebar: ({ sidebarConfig, }: Pick<MapExternalProps, 'sidebarConfig'>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,20 @@
1
+ export declare const StyledCollapseIcon: import('@emotion/styled').StyledComponent<import('@mui/material').SvgIconOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').SVGProps<SVGSVGElement>, "ref"> & {
2
+ ref?: ((instance: SVGSVGElement | null) => void) | import('react').RefObject<SVGSVGElement> | null | undefined;
3
+ }, "color" | "children" | "style" | "fontSize" | "shapeRendering" | "className" | "classes" | "sx" | "viewBox" | "htmlColor" | "inheritViewBox" | "titleAccess"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
4
+ export declare const WrapperContainer: import('@emotion/styled').StyledComponent<import('@mui/material').StackOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
5
+ ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
6
+ }, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
7
+ export declare const InnerWrapper: import('@emotion/styled').StyledComponent<import('@mui/material').StackOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
8
+ ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
9
+ }, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
10
+ hidden: boolean;
11
+ }, {}, {}>;
12
+ export declare const TitleContainer: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
13
+ ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
14
+ }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
15
+ export declare const CollapseButton: import('@emotion/styled').StyledComponent<import('@mui/material').IconButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
16
+ ref?: ((instance: HTMLButtonElement | null) => void) | import('react').RefObject<HTMLButtonElement> | null | undefined;
17
+ }, "edge" | "color" | "children" | "style" | "className" | "classes" | "tabIndex" | "sx" | "disabled" | "action" | "size" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
18
+ export declare const ContentDivider: import('@emotion/styled').StyledComponent<import('@mui/material').DividerOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "ref"> & {
19
+ ref?: ((instance: HTMLHRElement | null) => void) | import('react').RefObject<HTMLHRElement> | null | undefined;
20
+ }, "children" | "style" | "textAlign" | "className" | "classes" | "sx" | "variant" | "orientation" | "absolute" | "flexItem" | "light"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -0,0 +1 @@
1
+ export * from './MapSidebar';
@@ -0,0 +1,2 @@
1
+ declare const NavigationComponent: () => import("react/jsx-runtime").JSX.Element;
2
+ export default NavigationComponent;
@@ -0,0 +1,3 @@
1
+ export declare const NavigationInnerContainer: import('@emotion/styled').StyledComponent<import('@mui/material').StackOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
+ ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
3
+ }, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -0,0 +1,29 @@
1
+ import { PrgAddressResponse } from '../../api/queries/useGetPRGAddress';
2
+ import { GEMRoad, GEMRoadNet } from '../Map/types';
3
+ interface NavigationContextProps {
4
+ setSelectedRoad: React.Dispatch<React.SetStateAction<GEMRoad | undefined>>;
5
+ selectedRoad: GEMRoad | undefined;
6
+ setSelectedNet: React.Dispatch<React.SetStateAction<GEMRoadNet | undefined>>;
7
+ selectedNet: GEMRoadNet | undefined;
8
+ setChainageLength: React.Dispatch<React.SetStateAction<number>>;
9
+ chainageLength: number;
10
+ setChainageValue: React.Dispatch<React.SetStateAction<number>>;
11
+ chainageValue: number;
12
+ setMileageStart: React.Dispatch<React.SetStateAction<number>>;
13
+ mileageStart: number;
14
+ setMileageEnd: React.Dispatch<React.SetStateAction<number>>;
15
+ mileageEnd: number;
16
+ setMileageValue: React.Dispatch<React.SetStateAction<number>>;
17
+ mileageValue: number;
18
+ setFilteredRoads: React.Dispatch<React.SetStateAction<GEMRoad[]>>;
19
+ filteredRoads: GEMRoad[];
20
+ nets: GEMRoadNet[];
21
+ setNets: React.Dispatch<React.SetStateAction<GEMRoadNet[]>>;
22
+ prgAddressValue: PrgAddressResponse | undefined;
23
+ setPrgAddressValue: React.Dispatch<React.SetStateAction<PrgAddressResponse | undefined>>;
24
+ }
25
+ export declare const useNavigationContext: () => NavigationContextProps;
26
+ export declare const NavigationProvider: ({ children, }: {
27
+ children: React.ReactNode;
28
+ }) => import("react/jsx-runtime").JSX.Element;
29
+ export {};
@@ -0,0 +1 @@
1
+ export declare const RoadInputs: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function PlotSearch(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ interface QueryClientProviderProps {
3
+ children: ReactNode;
4
+ }
5
+ declare const QueryClientProvider: ({ children }: QueryClientProviderProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default QueryClientProvider;
@@ -0,0 +1 @@
1
+ export declare const SnapConfigBar: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { TooltipProps } from '@mui/material';
2
+ export declare const Container: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
4
+ }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
5
+ export declare const SnapSlider: import('@emotion/styled').StyledComponent<import('@mui/material').SliderOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
6
+ ref?: ((instance: HTMLSpanElement | null) => void) | import('react').RefObject<HTMLSpanElement> | null | undefined;
7
+ }, "name" | "color" | "value" | "style" | "track" | "scale" | "className" | "classes" | "defaultValue" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "sx" | "max" | "min" | "orientation" | "disabled" | "size" | "step" | "components" | "componentsProps" | "slotProps" | "slots" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "marks" | "onChangeCommitted" | "shiftStep" | "valueLabelDisplay" | "valueLabelFormat"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
8
+ export declare const LightTooltip: import('@emotion/styled').StyledComponent<TooltipProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -0,0 +1,14 @@
1
+ export declare const HELPER_GEOMETRY_TYPES: {
2
+ LINESTRING: string;
3
+ POINT: string;
4
+ POLYGON: string;
5
+ MULTILINESTRING: string;
6
+ MULTIPOLYGON: string;
7
+ };
8
+ export declare const GEOMETRY_TYPES: {
9
+ POINT: string;
10
+ LINESTRING: string;
11
+ POLYGON: string;
12
+ MULTILINESTRING: string;
13
+ MULTIPOLYGON: string;
14
+ };
@@ -0,0 +1,7 @@
1
+ export declare const SNAP_INTERACTION_TYPES: {
2
+ HOVER_SNAP: string;
3
+ SNAP: string;
4
+ MIDDLE_POINT_SNAP: string;
5
+ CENTER_POINT_SNAP: string;
6
+ ANGLE_LINE_SNAP: string;
7
+ };
@@ -0,0 +1,5 @@
1
+ export declare const SNAP_TYPES: {
2
+ VERTEX_POINT: string;
3
+ MIDDLE_POINT: string;
4
+ CENTER_POINT: string;
5
+ };
@@ -0,0 +1,2 @@
1
+ import { Style } from 'ol/style';
2
+ export declare const GEOLOCATION_FEATURE_STYLE: Style;
@@ -0,0 +1,6 @@
1
+ import { MapLayer } from '../../components/Map/types';
2
+ export declare const MapInteractionsProvider: ({ children, mapLayers, caseObjectId, }: {
3
+ children: React.ReactNode;
4
+ mapLayers: MapLayer[];
5
+ caseObjectId: number;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { MapInteractionsProvider } from './MapInteractionsContextProvider';
2
+ export { useMapInteractionsContext } from './useMapInteractionsContext';
@@ -0,0 +1,41 @@
1
+ import { Feature } from 'ol';
2
+ import { Geometry, MultiPolygon } from 'ol/geom';
3
+ import { MapLayer } from '../../components/Map/types';
4
+ export interface MapInteractionsContextProps {
5
+ isSelected: boolean;
6
+ setIsSelected: React.Dispatch<React.SetStateAction<boolean>>;
7
+ allowModify: boolean;
8
+ setAllowModify: React.Dispatch<React.SetStateAction<boolean>>;
9
+ isDrawing: boolean;
10
+ setIsDrawing: React.Dispatch<React.SetStateAction<boolean>>;
11
+ isEditing: boolean;
12
+ setIsEditing: React.Dispatch<React.SetStateAction<boolean>>;
13
+ selectedGeometry: null | {
14
+ value: number;
15
+ label: string;
16
+ };
17
+ setSelectedGeometry: React.Dispatch<React.SetStateAction<{
18
+ value: number;
19
+ label: string;
20
+ } | null>>;
21
+ drawnFeatures: MultiPolygon[];
22
+ setDrawnFeatures: React.Dispatch<React.SetStateAction<MultiPolygon[]>>;
23
+ overlappingFeature: Feature<Geometry>[];
24
+ showLocationEnabled: boolean;
25
+ setOverlappingFeatures: React.Dispatch<React.SetStateAction<Feature<Geometry>[]>>;
26
+ mapLayers: MapLayer[];
27
+ showInfoLayerEnabled: boolean;
28
+ mapRepresentationIdToAssign: number | null;
29
+ setMapRepresentationIdToAssign: React.Dispatch<React.SetStateAction<number | null>>;
30
+ deselectAllFeatures: () => void;
31
+ onSaveEditClicked: () => void;
32
+ onDrawClicked: (accepted?: boolean, geometryChosen?: boolean) => void;
33
+ onCancelDrawClicked: () => void;
34
+ handleSendAllGeometries: () => void;
35
+ onCancelEditClicked: () => void;
36
+ onEditClicked: () => void;
37
+ onDeleteGeometryClicked: () => void;
38
+ onToggleShowInfoLayer: () => void;
39
+ onAssignMapRepresentation: () => void;
40
+ onToggleShowLocation: () => void;
41
+ }
@@ -0,0 +1,3 @@
1
+ import { MapInteractionsContextProps } from './types';
2
+ export declare const MapInteractionsContext: import('react').Context<MapInteractionsContextProps | undefined>;
3
+ export declare const useMapInteractionsContext: () => MapInteractionsContextProps;
@@ -0,0 +1,19 @@
1
+ import { Feature } from 'ol';
2
+ import { Geometry } from 'ol/geom';
3
+ import { InfoLayersStructure } from '../components/Map/types';
4
+ interface MapOverlaysAndPopupsContextProps {
5
+ isMeasurementHidden: boolean;
6
+ setIsMeasurementHidden: React.Dispatch<React.SetStateAction<boolean>>;
7
+ isAngleHidden: boolean;
8
+ setIsAngleHidden: React.Dispatch<React.SetStateAction<boolean>>;
9
+ angleValue: number | null;
10
+ setAngleValue: React.Dispatch<React.SetStateAction<number | null>>;
11
+ infoLayersContent: InfoLayersStructure;
12
+ setInfoLayersContent: React.Dispatch<React.SetStateAction<InfoLayersStructure>>;
13
+ onShowInfoDrawer: (feature?: Feature<Geometry>) => void;
14
+ }
15
+ export declare const useMapOverlaysAndPopupsContext: () => MapOverlaysAndPopupsContextProps;
16
+ export declare const MapOverlaysAndPopupsProvider: ({ children, }: {
17
+ children: React.ReactNode;
18
+ }) => import("react/jsx-runtime").JSX.Element;
19
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ import { AnyMapPopupCall, MapPopupCallData, UseMapPopup } from './types';
3
+ interface Props {
4
+ children: ReactNode;
5
+ }
6
+ declare const MapPopupProvider: (props: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const useMapPopup: <T extends AnyMapPopupCall>() => UseMapPopup<MapPopupCallData<T>>;
8
+ export default MapPopupProvider;