@smart-factor/gem-ui-map-component 0.0.26 → 0.0.28
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-DrHjsRcp.js → MapButtons-CuNXX7Hn.js} +13243 -12611
- package/dist/api/services/generated/api.d.ts +31 -0
- package/dist/components/Layers/Layers.styles.d.ts +4 -0
- package/dist/components/Map/Map.d.ts +1 -1
- package/dist/components/Map/config.d.ts +2 -0
- package/dist/components/Map/types.d.ts +3 -1
- package/dist/components/MapButtons/index.js +1 -1
- package/dist/components/MapPopups/RoadValidationErrorModal/RoadValidationErrorModal.d.ts +1 -0
- package/dist/components/MapPopups/RoadValidationErrorModal/types.d.ts +4 -0
- package/dist/components/MapPopups/styles.d.ts +1 -1
- package/dist/components/MapSidebar/MapSidebar.style.d.ts +3 -3
- package/dist/components/SnapConfigBar/SnapConfigBar.styles.d.ts +1 -1
- package/dist/contexts/MapInteractionsContext/types.d.ts +1 -0
- package/dist/hooks/useSetupMap.d.ts +1 -1
- package/dist/main.js +2813 -3195
- package/dist/services/Layers/LayersService.d.ts +1 -0
- package/dist/services/Layers/layerIconUtils.d.ts +2 -0
- package/dist/services/Map/MapService.d.ts +4 -4
- package/dist/services/Map/labels.d.ts +6 -0
- package/dist/services/Map/types.d.ts +28 -0
- package/package.json +1 -1
|
@@ -357,6 +357,20 @@ export interface Search3Params extends CaseSearchCriteria, Pageable {
|
|
|
357
357
|
export type Search3Data = {
|
|
358
358
|
response: PageCaseDTO;
|
|
359
359
|
};
|
|
360
|
+
export interface RoadInfoDTO {
|
|
361
|
+
/** @format int32 */
|
|
362
|
+
roadId?: number;
|
|
363
|
+
roadNo?: string;
|
|
364
|
+
roadName?: string;
|
|
365
|
+
street?: string;
|
|
366
|
+
city?: string;
|
|
367
|
+
}
|
|
368
|
+
export type QueryClosestRoadInfoData = {
|
|
369
|
+
response: RoadInfoDTO[];
|
|
370
|
+
};
|
|
371
|
+
export interface RoadInfoPayload {
|
|
372
|
+
geometry?: Geometry;
|
|
373
|
+
}
|
|
360
374
|
export interface GEMRoad {
|
|
361
375
|
id: number;
|
|
362
376
|
category: string;
|
|
@@ -558,4 +572,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
558
572
|
*/
|
|
559
573
|
loginWithPassword: (query: LoginWithPasswordParams, params?: RequestParams) => Promise<AxiosResponse<LoginWithPasswordData, any>>;
|
|
560
574
|
};
|
|
575
|
+
euslugi: {
|
|
576
|
+
/**
|
|
577
|
+
* No description
|
|
578
|
+
*
|
|
579
|
+
* @tags e-services-controller
|
|
580
|
+
* @name QueryClosestRoadInfo
|
|
581
|
+
* @summary Zwraca informację o drogach leżących w podanym obszarze
|
|
582
|
+
* @request POST:/v1/eservices/roadInfo
|
|
583
|
+
* @secure
|
|
584
|
+
* @response `200` `QueryClosestRoadInfoData` OK
|
|
585
|
+
* @response `400` `string` Bad Request
|
|
586
|
+
* @response `404` `string` Not Found
|
|
587
|
+
* @response `406` `string` Not Acceptable
|
|
588
|
+
* @response `409` `(ErrorResponse | string)` Conflict
|
|
589
|
+
*/
|
|
590
|
+
queryClosestRoadInfo: (data: RoadInfoPayload, params?: RequestParams) => Promise<AxiosResponse<QueryClosestRoadInfoData, any>>;
|
|
591
|
+
};
|
|
561
592
|
}
|
|
@@ -6,3 +6,7 @@ export declare const LayersInnerContainer: import('@emotion/styled').StyledCompo
|
|
|
6
6
|
export declare const LoaderContainer: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
7
|
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
8
8
|
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
9
|
+
export declare const LayerIconWrapper: 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
|
+
export declare const LayerLabelText: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -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, }: MapExternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const MapWithProviders: ({ id, mapLayers, caseObjectId, sidebarConfig, mapButtonsConfig, mapElementsConfig, setOuterDrawnGeometries, setOuterSelectedMapObjects, selectedFeatures, multiSelectEnabled, initialDrawnGeometries, disableEditNonUserDrawnGeometries, enforceWithinRoad, }: MapExternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default MapWithProviders;
|
|
@@ -78,13 +78,15 @@ export type GEMLayer = {
|
|
|
78
78
|
export interface ProcessedGEMLayer {
|
|
79
79
|
id: string;
|
|
80
80
|
parent: string;
|
|
81
|
-
label: string;
|
|
81
|
+
label: string | JSX.Element;
|
|
82
|
+
searchText?: string;
|
|
82
83
|
checked: boolean;
|
|
83
84
|
config: GEMLayerConfig;
|
|
84
85
|
}
|
|
85
86
|
export interface GEMLayerTreeItem extends ProcessedGEMLayer {
|
|
86
87
|
children: GEMLayerTreeItem[];
|
|
87
88
|
isLeaf: boolean;
|
|
89
|
+
icon?: JSX.Element | null;
|
|
88
90
|
}
|
|
89
91
|
export type WMSLayerDetailed = {
|
|
90
92
|
id: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RoadValidationErrorModal: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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
2
|
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
-
}, "timeout" | "id" | "onError" | "
|
|
3
|
+
}, "timeout" | "id" | "onError" | "style" | "color" | "ref" | "children" | "prefix" | "className" | "classes" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "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" | "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" | "transitionDuration" | "sx" | "easing" | "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
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
5
|
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
6
6
|
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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
2
|
ref?: ((instance: SVGSVGElement | null) => void) | import('react').RefObject<SVGSVGElement> | null | undefined;
|
|
3
|
-
}, "
|
|
3
|
+
}, "style" | "color" | "children" | "className" | "classes" | "fontSize" | "shapeRendering" | "sx" | "viewBox" | "htmlColor" | "inheritViewBox" | "titleAccess"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
4
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
5
|
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
6
6
|
}, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -14,7 +14,7 @@ export declare const TitleContainer: import('@emotion/styled').StyledComponent<i
|
|
|
14
14
|
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
15
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
16
|
ref?: ((instance: HTMLButtonElement | null) => void) | import('react').RefObject<HTMLButtonElement> | null | undefined;
|
|
17
|
-
}, "edge" | "
|
|
17
|
+
}, "edge" | "style" | "size" | "color" | "children" | "className" | "classes" | "tabIndex" | "sx" | "disabled" | "action" | "loading" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "loadingIndicator"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
18
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
19
|
ref?: ((instance: HTMLHRElement | null) => void) | import('react').RefObject<HTMLHRElement> | null | undefined;
|
|
20
|
-
}, "
|
|
20
|
+
}, "style" | "textAlign" | "children" | "className" | "classes" | "sx" | "variant" | "orientation" | "absolute" | "flexItem" | "light"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -4,5 +4,5 @@ export declare const Container: import('@emotion/styled').StyledComponent<import
|
|
|
4
4
|
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
5
5
|
export declare const SnapSlider: import('@emotion/styled').StyledComponent<import('@mui/material').SliderOwnProps<number | number[]> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
6
6
|
ref?: ((instance: HTMLSpanElement | null) => void) | import('react').RefObject<HTMLSpanElement> | null | undefined;
|
|
7
|
-
}, "name" | "
|
|
7
|
+
}, "name" | "style" | "size" | "color" | "value" | "className" | "classes" | "track" | "defaultValue" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "scale" | "sx" | "max" | "min" | "orientation" | "disabled" | "step" | "components" | "componentsProps" | "slotProps" | "slots" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "marks" | "onChangeCommitted" | "shiftStep" | "valueLabelDisplay" | "valueLabelFormat"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
8
8
|
export declare const LightTooltip: import('@emotion/styled').StyledComponent<TooltipProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -50,4 +50,5 @@ export interface MapInteractionsContextProps {
|
|
|
50
50
|
caseObjectId: number;
|
|
51
51
|
setOuterDrawnGeometries: MapExternalProps['setOuterDrawnGeometries'];
|
|
52
52
|
setOuterSelectedMapObjects: MapExternalProps['setOuterSelectedMapObjects'];
|
|
53
|
+
disableEditNonUserDrawnGeometries?: boolean;
|
|
53
54
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { 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, initialSelectedFeatures?: SelectedFeature[], multiSelectEnabled?: boolean, initialDrawnGeometries?: InitialDrawnGeometry[]) => void;
|
|
3
|
+
export declare const useSetupMap: (id: string, mapLayers: MapLayer[], caseObjectId: number, initialSelectedFeatures?: SelectedFeature[], multiSelectEnabled?: boolean, initialDrawnGeometries?: InitialDrawnGeometry[], disableEditNonUserDrawnGeometries?: boolean, enforceWithinRoad?: boolean) => void;
|