@smart-factor/gem-ui-map-component 0.0.30 → 0.0.31
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-DiqEb1dh.js → MapButtons-kdaSzGas.js} +1157 -1077
- package/dist/components/Map/config.d.ts +1 -1
- package/dist/components/MapButtons/index.js +1 -1
- package/dist/components/MapPopups/PrintConfigDrawer/AdditionalOptions.d.ts +9 -0
- package/dist/components/MapPopups/PrintConfigDrawer/FrameManagement.d.ts +10 -0
- package/dist/components/MapPopups/PrintConfigDrawer/PrintConfigDrawer.d.ts +1 -0
- package/dist/components/MapPopups/PrintConfigDrawer/index.d.ts +2 -0
- package/dist/components/MapPopups/PrintConfigDrawer/styles.d.ts +22 -0
- package/dist/components/MapPopups/PrintConfigDrawer/types.d.ts +4 -0
- package/dist/components/MapPopups/PrintConfigDrawer/usePrintConfigDrawer.d.ts +22 -0
- package/dist/components/MapPopups/PrintConfigDrawer/utils.d.ts +21 -0
- package/dist/main.js +16271 -7004
- package/dist/services/Layers/LayersService.d.ts +1 -0
- package/dist/services/Print/PrintService.d.ts +112 -0
- package/dist/snap/helpers.d.ts +1 -1
- package/dist/types/print.d.ts +116 -0
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ interface SidebarConfig {
|
|
|
4
4
|
}
|
|
5
5
|
interface MapButtonsConfig {
|
|
6
6
|
mapButtonsVisible: boolean;
|
|
7
|
-
items: Record<'draw' | 'info' | 'assign' | 'geoLocation' | 'send' | 'smartGemSync' | 'centerToInitial' | 'centerToSelected' | 'deselectAllSelected', boolean>;
|
|
7
|
+
items: Record<'draw' | 'info' | 'assign' | 'geoLocation' | 'send' | 'smartGemSync' | 'centerToInitial' | 'centerToSelected' | 'deselectAllSelected' | 'print', boolean>;
|
|
8
8
|
}
|
|
9
9
|
interface MapElementsConfig {
|
|
10
10
|
mapElementsVisible: boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PrintConfig } from '../../../types/print';
|
|
2
|
+
type AdditionalOptionsProps = {
|
|
3
|
+
config: PrintConfig;
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onToggle: () => void;
|
|
6
|
+
onConfigChange: <K extends keyof PrintConfig>(key: K, value: PrintConfig[K]) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const AdditionalOptions: ({ config, isOpen, onToggle, onConfigChange, }: AdditionalOptionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PrintConfig } from '../../../types/print';
|
|
2
|
+
type FrameManagementProps = {
|
|
3
|
+
config: PrintConfig;
|
|
4
|
+
frameCount: number;
|
|
5
|
+
onOffsetChange: (offset: number) => void;
|
|
6
|
+
onAddFrame: () => void;
|
|
7
|
+
onRemoveFrame: (index: number) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const FrameManagement: ({ config, frameCount, onOffsetChange, onAddFrame, onRemoveFrame, }: FrameManagementProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PrintConfigDrawer: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const PrintDrawerWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & 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/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
4
|
+
open: boolean;
|
|
5
|
+
}, {}, {}>;
|
|
6
|
+
export declare const FormRow: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
8
|
+
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
9
|
+
export declare const FormLabel: import('@emotion/styled').StyledComponent<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
10
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import('react').RefObject<HTMLSpanElement> | null | undefined;
|
|
11
|
+
}, "zIndex" | "style" | "bottom" | "top" | "textAlign" | "left" | "right" | "overflow" | "color" | "width" | "children" | "className" | "classes" | "p" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "position" | "boxShadow" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textTransform" | "sx" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variant" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
12
|
+
export declare const SelectWrapper: 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 ColorInput: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
|
|
16
|
+
export declare const CollapseButton: import('@emotion/styled').StyledComponent<import('@smart-factor/gem-ui-components/dist/components/Button/Button').ButtonProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
17
|
+
export declare const FrameListItem: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
18
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
19
|
+
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
20
|
+
export declare const TemplateRow: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
21
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
22
|
+
}, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PrintConfig } from '../../../types/print';
|
|
2
|
+
export declare const usePrintConfigDrawer: () => {
|
|
3
|
+
isOpen: boolean | undefined;
|
|
4
|
+
config: PrintConfig;
|
|
5
|
+
isPrinting: boolean;
|
|
6
|
+
additionalOptionsOpen: boolean;
|
|
7
|
+
selectedTemplate: number | undefined;
|
|
8
|
+
frameCount: number;
|
|
9
|
+
templateOptions: {
|
|
10
|
+
value: number;
|
|
11
|
+
label: string;
|
|
12
|
+
}[];
|
|
13
|
+
handleClose: () => void;
|
|
14
|
+
updateConfig: <K extends keyof PrintConfig>(key: K, value: PrintConfig[K]) => void;
|
|
15
|
+
handleAddFrame: () => void;
|
|
16
|
+
handleRemoveFrame: (index: number) => void;
|
|
17
|
+
handleTemplateSelect: (templateId: unknown) => void;
|
|
18
|
+
handleSaveTemplate: () => Promise<void>;
|
|
19
|
+
handleDeleteTemplates: () => Promise<void>;
|
|
20
|
+
handlePrint: () => Promise<void>;
|
|
21
|
+
toggleAdditionalOptions: () => void;
|
|
22
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OutputFormat, PrintFormat, PrintOrientation } from '../../../types/print';
|
|
2
|
+
export declare const formatOptions: {
|
|
3
|
+
value: PrintFormat;
|
|
4
|
+
label: PrintFormat;
|
|
5
|
+
}[];
|
|
6
|
+
export declare const orientationOptions: {
|
|
7
|
+
value: PrintOrientation;
|
|
8
|
+
label: string;
|
|
9
|
+
}[];
|
|
10
|
+
export declare const scaleOptions: {
|
|
11
|
+
value: number;
|
|
12
|
+
label: string;
|
|
13
|
+
}[];
|
|
14
|
+
export declare const dpiOptions: {
|
|
15
|
+
value: number;
|
|
16
|
+
label: string;
|
|
17
|
+
}[];
|
|
18
|
+
export declare const outputFormatOptions: {
|
|
19
|
+
value: OutputFormat;
|
|
20
|
+
label: string;
|
|
21
|
+
}[];
|