@open-pioneer/printing 1.2.0-dev.20251128143231 → 1.2.0
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/CHANGELOG.md +10 -2
- package/Printing.js +3 -2
- package/Printing.js.map +1 -1
- package/PrintingServiceImpl.js +1 -1
- package/_virtual/{_virtual-pioneer-module_react-hooks.js → hooks.js} +1 -1
- package/_virtual/hooks.js.map +1 -0
- package/_virtual/source-info.js +4 -0
- package/_virtual/source-info.js.map +1 -0
- package/package.json +10 -10
- package/_virtual/_virtual-pioneer-module_react-hooks.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# @open-pioneer/printing
|
|
2
2
|
|
|
3
|
-
## 1.2.0
|
|
3
|
+
## 1.2.0
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
+
- 9c29256: Update to core packages 4.4.0
|
|
7
8
|
- 279ca67: Use `workspace:*` instead of `workspace:^` for local package references as default. This ensures that trails packages from this repository are always referenced with their exact version to avoid potential issues with version mismatches. If a project specifically wants to use other versions for some trails packages, a pnpm override can be used to force other versions.
|
|
9
|
+
- 9580bb4: Update various dependencies.
|
|
10
|
+
- 9580bb4: Update to Chakra 3.31.0
|
|
11
|
+
- Updated dependencies [597584b]
|
|
12
|
+
- Updated dependencies [9c29256]
|
|
8
13
|
- Updated dependencies [279ca67]
|
|
9
|
-
|
|
14
|
+
- Updated dependencies [597584b]
|
|
15
|
+
- Updated dependencies [9580bb4]
|
|
16
|
+
- Updated dependencies [9580bb4]
|
|
17
|
+
- @open-pioneer/map@1.2.0
|
|
10
18
|
|
|
11
19
|
## 1.1.0
|
|
12
20
|
|
package/Printing.js
CHANGED
|
@@ -4,11 +4,12 @@ import { NativeSelectRoot, NativeSelectField } from '@open-pioneer/chakra-snippe
|
|
|
4
4
|
import { createLogger } from '@open-pioneer/core';
|
|
5
5
|
import { useMapModelValue } from '@open-pioneer/map';
|
|
6
6
|
import { useCommonComponentProps } from '@open-pioneer/react-utils';
|
|
7
|
-
import { useIntl, useService } from './_virtual/
|
|
7
|
+
import { useIntl, useService } from './_virtual/hooks.js';
|
|
8
|
+
import { sourceId } from './_virtual/source-info.js';
|
|
8
9
|
import { useState, useEffect } from 'react';
|
|
9
10
|
import { PrintingController } from './PrintingController.js';
|
|
10
11
|
|
|
11
|
-
const LOG = createLogger(
|
|
12
|
+
const LOG = createLogger(sourceId);
|
|
12
13
|
const Printing = (props) => {
|
|
13
14
|
const intl = useIntl();
|
|
14
15
|
const { viewPadding = "auto" } = props;
|
package/Printing.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Printing.js","sources":["Printing.tsx"],"sourcesContent":["// SPDX-FileCopyrightText: 2023-2025 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\nimport { Box, Button, Field, HStack, Input } from \"@chakra-ui/react\";\nimport { NativeSelectField, NativeSelectRoot } from \"@open-pioneer/chakra-snippets/native-select\";\nimport { createLogger } from \"@open-pioneer/core\";\nimport { MapModel, MapModelProps, useMapModelValue } from \"@open-pioneer/map\";\nimport { NotificationService } from \"@open-pioneer/notifier\";\nimport { CommonComponentProps, useCommonComponentProps } from \"@open-pioneer/react-utils\";\nimport { PackageIntl } from \"@open-pioneer/runtime\";\nimport { useIntl, useService } from \"open-pioneer:react-hooks\";\nimport { FC, FormEvent, useEffect, useState } from \"react\";\nimport { FileFormatType, PrintingController } from \"./PrintingController\";\nimport type { PrintingService, ViewPaddingBehavior } from \"./index\";\n\nconst LOG = createLogger(\"printing\");\n\n/**\n * This is special property for the Printing.\n */\nexport interface PrintingProps extends CommonComponentProps, MapModelProps {\n /**\n * Whether to respect the map view's padding when printing (default: `\"auto\"`).\n *\n * See also {@link ViewPaddingBehavior}.\n */\n viewPadding?: ViewPaddingBehavior;\n}\n\n/**\n * The `Printing` component can be used to download the current map view as a printable file.\n */\nexport const Printing: FC<PrintingProps> = (props) => {\n const intl = useIntl();\n\n const { viewPadding = \"auto\" } = props;\n const { containerProps } = useCommonComponentProps(\"printing\", props);\n const [selectedFileFormat, setSelectedFileFormat] = useState<FileFormatType>(\"pdf\");\n const [title, setTitle] = useState<string>(\"\");\n const [running, setRunning] = useState<boolean>(false);\n\n const notifier = useService<NotificationService>(\"notifier.NotificationService\");\n\n const map = useMapModelValue(props);\n const controller = useController(map, intl, viewPadding);\n\n function changeFileFormat(fileFormat: string) {\n if (fileFormat === \"png\" || fileFormat === \"pdf\") {\n setSelectedFileFormat(fileFormat);\n }\n }\n\n function exportMap() {\n if (running || !controller) {\n return;\n }\n\n setRunning(true);\n controller\n .handleMapExport({\n title,\n fileFormat: selectedFileFormat\n })\n .catch((error) => {\n const errorMessage = intl.formatMessage({ id: \"printingFailed\" });\n notifier.notify({\n level: \"error\",\n message: errorMessage\n });\n LOG.error(\"Failed to print the map\", error);\n })\n .finally(() => {\n setRunning(false);\n });\n }\n\n return (\n <Box {...containerProps}>\n <Box\n as=\"form\"\n aria-label={intl.formatMessage({ id: \"formLabel\" })}\n m={2}\n alignItems=\"center\"\n onSubmit={(e: FormEvent) => {\n e.preventDefault();\n exportMap();\n }}\n >\n <Field.Root asChild>\n <HStack mb={2}>\n <Field.Label minWidth={82} mb={1}>\n {intl.formatMessage({ id: \"title\" })}\n </Field.Label>\n <Input\n placeholder={intl.formatMessage({ id: \"input.placeholder\" })}\n value={title}\n onChange={(event) => {\n setTitle(event.target.value);\n }}\n />\n </HStack>\n </Field.Root>\n <Field.Root asChild>\n <HStack mb={2}>\n <Field.Label minWidth={82} mb={1}>\n {intl.formatMessage({ id: \"fileFormat\" })}\n </Field.Label>\n <NativeSelectRoot>\n <NativeSelectField\n className=\"printing-select\"\n value={selectedFileFormat}\n onChange={(event) => {\n changeFileFormat(event.target.value);\n }}\n >\n <option value={\"png\"}>PNG</option>\n <option value={\"pdf\"}>PDF</option>\n </NativeSelectField>\n </NativeSelectRoot>\n </HStack>\n </Field.Root>\n <Button\n loading={running}\n loadingText={intl.formatMessage({ id: \"printingMap\" })}\n disabled={running}\n mt={2}\n p={2}\n className=\"printing-export-button\"\n type=\"submit\"\n width=\"100%\"\n >\n {intl.formatMessage({ id: \"export\" })}\n </Button>\n </Box>\n </Box>\n );\n};\n\n/**\n * Create a PrintingController instance to export the map view.\n */\nfunction useController(map: MapModel, intl: PackageIntl, viewPadding: ViewPaddingBehavior) {\n const printingService = useService<PrintingService>(\"printing.PrintingService\");\n const [controller, setController] = useState<PrintingController | undefined>(undefined);\n\n useEffect(() => {\n const controller = new PrintingController(map.olMap, printingService, {\n overlayText: intl.formatMessage({ id: \"printingMap\" })\n });\n setController(controller);\n\n return () => {\n controller.destroy();\n setController(undefined);\n };\n }, [map, intl, printingService]);\n\n useEffect(() => {\n controller?.setViewPadding(viewPadding);\n }, [controller, viewPadding]);\n\n return controller;\n}\n"],"names":["controller"],"mappings":";;;;;;;;;;AAcA,MAAM,GAAA,GAAM,aAAa,UAAU,CAAA;AAiB5B,MAAM,QAAA,GAA8B,CAAC,KAAA,KAAU;AAClD,EAAA,MAAM,OAAO,OAAA,EAAQ;AAErB,EAAA,MAAM,EAAE,WAAA,GAAc,MAAA,EAAO,GAAI,KAAA;AACjC,EAAA,MAAM,EAAE,cAAA,EAAe,GAAI,uBAAA,CAAwB,YAAY,KAAK,CAAA;AACpE,EAAA,MAAM,CAAC,kBAAA,EAAoB,qBAAqB,CAAA,GAAI,SAAyB,KAAK,CAAA;AAClF,EAAA,MAAM,CAAC,KAAA,EAAO,QAAQ,CAAA,GAAI,SAAiB,EAAE,CAAA;AAC7C,EAAA,MAAM,CAAC,OAAA,EAAS,UAAU,CAAA,GAAI,SAAkB,KAAK,CAAA;AAErD,EAAA,MAAM,QAAA,GAAW,WAAgC,8BAA8B,CAAA;AAE/E,EAAA,MAAM,GAAA,GAAM,iBAAiB,KAAK,CAAA;AAClC,EAAA,MAAM,UAAA,GAAa,aAAA,CAAc,GAAA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,aAAA,CAAc,MAAS,CAAA;AAAA,IAC3B,CAAA;AAAA,EACJ,CAAA,EAAG,CAAC,GAAA,EAAK,IAAA,EAAM,eAAe,CAAC,CAAA;AAE/B,EAAA,SAAA,CAAU,MAAM;AACZ,IAAA,UAAA,EAAY,eAAe,WAAW,CAAA;AAAA,EAC1C,CAAA,EAAG,CAAC,UAAA,EAAY,WAAW,CAAC,CAAA;AAE5B,EAAA,OAAO,UAAA;AACX;;;;"}
|
|
1
|
+
{"version":3,"file":"Printing.js","sources":["Printing.tsx"],"sourcesContent":["// SPDX-FileCopyrightText: 2023-2025 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\nimport { Box, Button, Field, HStack, Input } from \"@chakra-ui/react\";\nimport { NativeSelectField, NativeSelectRoot } from \"@open-pioneer/chakra-snippets/native-select\";\nimport { createLogger } from \"@open-pioneer/core\";\nimport { MapModel, MapModelProps, useMapModelValue } from \"@open-pioneer/map\";\nimport { NotificationService } from \"@open-pioneer/notifier\";\nimport { CommonComponentProps, useCommonComponentProps } from \"@open-pioneer/react-utils\";\nimport { PackageIntl } from \"@open-pioneer/runtime\";\nimport { useIntl, useService } from \"open-pioneer:react-hooks\";\nimport { sourceId } from \"open-pioneer:source-info\";\nimport { FC, FormEvent, useEffect, useState } from \"react\";\nimport { FileFormatType, PrintingController } from \"./PrintingController\";\nimport type { PrintingService, ViewPaddingBehavior } from \"./index\";\n\nconst LOG = createLogger(sourceId);\n\n/**\n * This is special property for the Printing.\n */\nexport interface PrintingProps extends CommonComponentProps, MapModelProps {\n /**\n * Whether to respect the map view's padding when printing (default: `\"auto\"`).\n *\n * See also {@link ViewPaddingBehavior}.\n */\n viewPadding?: ViewPaddingBehavior;\n}\n\n/**\n * The `Printing` component can be used to download the current map view as a printable file.\n */\nexport const Printing: FC<PrintingProps> = (props) => {\n const intl = useIntl();\n\n const { viewPadding = \"auto\" } = props;\n const { containerProps } = useCommonComponentProps(\"printing\", props);\n const [selectedFileFormat, setSelectedFileFormat] = useState<FileFormatType>(\"pdf\");\n const [title, setTitle] = useState<string>(\"\");\n const [running, setRunning] = useState<boolean>(false);\n\n const notifier = useService<NotificationService>(\"notifier.NotificationService\");\n\n const map = useMapModelValue(props);\n const controller = useController(map, intl, viewPadding);\n\n function changeFileFormat(fileFormat: string) {\n if (fileFormat === \"png\" || fileFormat === \"pdf\") {\n setSelectedFileFormat(fileFormat);\n }\n }\n\n function exportMap() {\n if (running || !controller) {\n return;\n }\n\n setRunning(true);\n controller\n .handleMapExport({\n title,\n fileFormat: selectedFileFormat\n })\n .catch((error) => {\n const errorMessage = intl.formatMessage({ id: \"printingFailed\" });\n notifier.notify({\n level: \"error\",\n message: errorMessage\n });\n LOG.error(\"Failed to print the map\", error);\n })\n .finally(() => {\n setRunning(false);\n });\n }\n\n return (\n <Box {...containerProps}>\n <Box\n as=\"form\"\n aria-label={intl.formatMessage({ id: \"formLabel\" })}\n m={2}\n alignItems=\"center\"\n onSubmit={(e: FormEvent) => {\n e.preventDefault();\n exportMap();\n }}\n >\n <Field.Root asChild>\n <HStack mb={2}>\n <Field.Label minWidth={82} mb={1}>\n {intl.formatMessage({ id: \"title\" })}\n </Field.Label>\n <Input\n placeholder={intl.formatMessage({ id: \"input.placeholder\" })}\n value={title}\n onChange={(event) => {\n setTitle(event.target.value);\n }}\n />\n </HStack>\n </Field.Root>\n <Field.Root asChild>\n <HStack mb={2}>\n <Field.Label minWidth={82} mb={1}>\n {intl.formatMessage({ id: \"fileFormat\" })}\n </Field.Label>\n <NativeSelectRoot>\n <NativeSelectField\n className=\"printing-select\"\n value={selectedFileFormat}\n onChange={(event) => {\n changeFileFormat(event.target.value);\n }}\n >\n <option value={\"png\"}>PNG</option>\n <option value={\"pdf\"}>PDF</option>\n </NativeSelectField>\n </NativeSelectRoot>\n </HStack>\n </Field.Root>\n <Button\n loading={running}\n loadingText={intl.formatMessage({ id: \"printingMap\" })}\n disabled={running}\n mt={2}\n p={2}\n className=\"printing-export-button\"\n type=\"submit\"\n width=\"100%\"\n >\n {intl.formatMessage({ id: \"export\" })}\n </Button>\n </Box>\n </Box>\n );\n};\n\n/**\n * Create a PrintingController instance to export the map view.\n */\nfunction useController(map: MapModel, intl: PackageIntl, viewPadding: ViewPaddingBehavior) {\n const printingService = useService<PrintingService>(\"printing.PrintingService\");\n const [controller, setController] = useState<PrintingController | undefined>(undefined);\n\n useEffect(() => {\n const controller = new PrintingController(map.olMap, printingService, {\n overlayText: intl.formatMessage({ id: \"printingMap\" })\n });\n setController(controller);\n\n return () => {\n controller.destroy();\n setController(undefined);\n };\n }, [map, intl, printingService]);\n\n useEffect(() => {\n controller?.setViewPadding(viewPadding);\n }, [controller, viewPadding]);\n\n return controller;\n}\n"],"names":["controller"],"mappings":";;;;;;;;;;;AAeA,MAAM,GAAA,GAAM,aAAa,QAAQ,CAAA;AAiB1B,MAAM,QAAA,GAA8B,CAAC,KAAA,KAAU;AAClD,EAAA,MAAM,OAAO,OAAA,EAAQ;AAErB,EAAA,MAAM,EAAE,WAAA,GAAc,MAAA,EAAO,GAAI,KAAA;AACjC,EAAA,MAAM,EAAE,cAAA,EAAe,GAAI,uBAAA,CAAwB,YAAY,KAAK,CAAA;AACpE,EAAA,MAAM,CAAC,kBAAA,EAAoB,qBAAqB,CAAA,GAAI,SAAyB,KAAK,CAAA;AAClF,EAAA,MAAM,CAAC,KAAA,EAAO,QAAQ,CAAA,GAAI,SAAiB,EAAE,CAAA;AAC7C,EAAA,MAAM,CAAC,OAAA,EAAS,UAAU,CAAA,GAAI,SAAkB,KAAK,CAAA;AAErD,EAAA,MAAM,QAAA,GAAW,WAAgC,8BAA8B,CAAA;AAE/E,EAAA,MAAM,GAAA,GAAM,iBAAiB,KAAK,CAAA;AAClC,EAAA,MAAM,UAAA,GAAa,aAAA,CAAc,GAAA,EAAK,IAAA,EAAM,WAAW,CAAA;AAEvD,EAAA,SAAS,iBAAiB,UAAA,EAAoB;AAC1C,IAAA,IAAI,UAAA,KAAe,KA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AAC,CAAA;AAE/B,EAAA,SAAA,CAAU,MAAM;AACZ,IAAA,UAAA,EAAY,eAAe,WAAW,CAAA;AAAA,EAC1C,CAAA,EAAG,CAAC,UAAA,EAAY,WAAW,CAAC,CAAA;AAE5B,EAAA,OAAO,UAAA;AACX;;;;"}
|
package/PrintingServiceImpl.js
CHANGED
|
@@ -5,4 +5,4 @@ const useService = /*@__PURE__*/ useServiceInternal.bind(undefined, PACKAGE_NAME
|
|
|
5
5
|
const useIntl = /*@__PURE__*/ useIntlInternal.bind(undefined, PACKAGE_NAME);
|
|
6
6
|
|
|
7
7
|
export { useIntl, useService };
|
|
8
|
-
//# sourceMappingURL=
|
|
8
|
+
//# sourceMappingURL=hooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-info.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@open-pioneer/printing",
|
|
4
|
-
"version": "1.2.0
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"description": "This package provides a UI component to export the current map view as a printable file.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"open-pioneer-trails"
|
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
"directory": "src/packages/printing"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@chakra-ui/react": "^3.
|
|
18
|
-
"@open-pioneer/chakra-snippets": "^4.
|
|
19
|
-
"@open-pioneer/core": "^4.
|
|
20
|
-
"@open-pioneer/notifier": "^4.
|
|
21
|
-
"@open-pioneer/react-utils": "^4.
|
|
22
|
-
"@open-pioneer/runtime": "^4.
|
|
17
|
+
"@chakra-ui/react": "^3.31.0",
|
|
18
|
+
"@open-pioneer/chakra-snippets": "^4.4.0",
|
|
19
|
+
"@open-pioneer/core": "^4.4.0",
|
|
20
|
+
"@open-pioneer/notifier": "^4.4.0",
|
|
21
|
+
"@open-pioneer/react-utils": "^4.4.0",
|
|
22
|
+
"@open-pioneer/runtime": "^4.4.0",
|
|
23
23
|
"classnames": "^2.5.1",
|
|
24
24
|
"html2canvas": "^1.4.1",
|
|
25
|
-
"jspdf": "^
|
|
25
|
+
"jspdf": "^4.0.0",
|
|
26
26
|
"ol": "^10.7.0",
|
|
27
|
-
"react": "^19.2.
|
|
28
|
-
"@open-pioneer/map": "1.2.0
|
|
27
|
+
"react": "^19.2.3",
|
|
28
|
+
"@open-pioneer/map": "1.2.0"
|
|
29
29
|
},
|
|
30
30
|
"exports": {
|
|
31
31
|
"./package.json": "./package.json",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_virtual-pioneer-module_react-hooks.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|