@open-pioneer/printing 0.10.0 → 0.11.0-dev.20250515143825

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @open-pioneer/printing
2
2
 
3
+ ## 0.11.0-dev.20250515143825
4
+
5
+ ### Minor Changes
6
+
7
+ - 738390e: Update to Chakra v3
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [738390e]
12
+ - Updated dependencies [738390e]
13
+ - @open-pioneer/map@0.11.0-dev.20250515143825
14
+
3
15
  ## 0.10.0
4
16
 
5
17
  ### Minor Changes
package/Printing.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
- import { Box, FormControl, HStack, FormLabel, Input, Select, Button } from '@open-pioneer/chakra-integration';
2
+ import { Box, Field, HStack, Input, Button } from '@chakra-ui/react';
3
+ import { NativeSelectRoot, NativeSelectField } from '@open-pioneer/chakra-snippets/native-select';
3
4
  import { createLogger } from '@open-pioneer/core';
4
5
  import { useMapModel } from '@open-pioneer/map';
5
6
  import { useCommonComponentProps } from '@open-pioneer/react-utils';
@@ -53,8 +54,8 @@ const Printing = (props) => {
53
54
  exportMap();
54
55
  },
55
56
  children: [
56
- /* @__PURE__ */ jsxs(FormControl, { as: HStack, mb: 2, children: [
57
- /* @__PURE__ */ jsx(FormLabel, { minWidth: "82", mb: 1, children: intl.formatMessage({ id: "title" }) }),
57
+ /* @__PURE__ */ jsx(Field.Root, { asChild: true, children: /* @__PURE__ */ jsxs(HStack, { mb: 2, children: [
58
+ /* @__PURE__ */ jsx(Field.Label, { minWidth: 82, mb: 1, children: intl.formatMessage({ id: "title" }) }),
58
59
  /* @__PURE__ */ jsx(
59
60
  Input,
60
61
  {
@@ -62,30 +63,31 @@ const Printing = (props) => {
62
63
  value: title,
63
64
  onChange: (event) => {
64
65
  setTitle(event.target.value);
65
- },
66
- autoFocus: true
66
+ }
67
67
  }
68
68
  )
69
- ] }),
70
- /* @__PURE__ */ jsxs(FormControl, { as: HStack, mb: 2, children: [
71
- /* @__PURE__ */ jsx(FormLabel, { minWidth: "82", mb: 1, children: intl.formatMessage({ id: "fileFormat" }) }),
72
- /* @__PURE__ */ jsxs(
73
- Select,
69
+ ] }) }),
70
+ /* @__PURE__ */ jsx(Field.Root, { asChild: true, children: /* @__PURE__ */ jsxs(HStack, { mb: 2, children: [
71
+ /* @__PURE__ */ jsx(Field.Label, { minWidth: 82, mb: 1, children: intl.formatMessage({ id: "fileFormat" }) }),
72
+ /* @__PURE__ */ jsx(NativeSelectRoot, { children: /* @__PURE__ */ jsxs(
73
+ NativeSelectField,
74
74
  {
75
- value: selectedFileFormat,
76
- onChange: (e) => changeFileFormat(e.target.value),
77
75
  className: "printing-select",
76
+ value: selectedFileFormat,
77
+ onChange: (event) => {
78
+ changeFileFormat(event.target.value);
79
+ },
78
80
  children: [
79
81
  /* @__PURE__ */ jsx("option", { value: "png", children: "PNG" }),
80
82
  /* @__PURE__ */ jsx("option", { value: "pdf", children: "PDF" })
81
83
  ]
82
84
  }
83
- )
84
- ] }),
85
+ ) })
86
+ ] }) }),
85
87
  /* @__PURE__ */ jsx(
86
88
  Button,
87
89
  {
88
- isLoading: running,
90
+ loading: running,
89
91
  loadingText: intl.formatMessage({ id: "printingMap" }),
90
92
  disabled: running,
91
93
  mt: 2,
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 {\n Box,\n Button,\n FormControl,\n FormLabel,\n HStack,\n Input,\n Select\n} from \"@open-pioneer/chakra-integration\";\nimport { createLogger } from \"@open-pioneer/core\";\nimport { MapModel, MapModelProps, useMapModel } 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 } = useMapModel(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 m={2}\n alignItems=\"center\"\n onSubmit={(e: FormEvent) => {\n e.preventDefault();\n exportMap();\n }}\n >\n <FormControl as={HStack} mb={2}>\n <FormLabel minWidth=\"82\" mb={1}>\n {intl.formatMessage({ id: \"title\" })}\n </FormLabel>\n <Input\n placeholder={intl.formatMessage({ id: \"input.placeholder\" })}\n value={title}\n onChange={(event) => {\n setTitle(event.target.value);\n }}\n autoFocus // eslint-disable-line jsx-a11y/no-autofocus\n />\n </FormControl>\n <FormControl as={HStack} mb={2}>\n <FormLabel minWidth=\"82\" mb={1}>\n {intl.formatMessage({ id: \"fileFormat\" })}\n </FormLabel>\n <Select\n value={selectedFileFormat}\n onChange={(e) => changeFileFormat(e.target.value)}\n className=\"printing-select\"\n >\n <option value={\"png\"}>PNG</option>\n <option value={\"pdf\"}>PDF</option>\n </Select>\n </FormControl>\n <Button\n isLoading={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(\n map: MapModel | undefined,\n intl: PackageIntl,\n viewPadding: ViewPaddingBehavior\n) {\n const printingService = useService<PrintingService>(\"printing.PrintingService\");\n const [controller, setController] = useState<PrintingController | undefined>(undefined);\n\n useEffect(() => {\n if (!map) {\n return;\n }\n\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":";;;;;;;;;AAqBA,MAAM,GAAA,GAAM,aAAa,UAAU,CAAA;AAiBtB,MAAA,QAAA,GAA8B,CAAC,KAAU,KAAA;AAClD,EAAA,MAAM,OAAO,OAAQ,EAAA;AAErB,EAAM,MAAA,EAAE,WAAc,GAAA,MAAA,EAAW,GAAA,KAAA;AACjC,EAAA,MAAM,EAAE,cAAA,E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AA,MAClE,aAAa,IAAK,CAAA,aAAA,CAAc,EAAE,EAAA,EAAI,eAAe;AAAA,KACxD,CAAA;AACD,IAAA,aAAA,CAAcA,WAAU,CAAA;AAExB,IAAA,OAAO,MAAM;AACT,MAAAA,YAAW,OAAQ,EAAA;AACnB,MAAA,aAAA,CAAc,MAAS,CAAA;AAAA,KAC3B;AAAA,GACD,EAAA,CAAC,GAAK,EAAA,IAAA,EAAM,eAAe,CAAC,CAAA;AAE/B,EAAA,SAAA,CAAU,MAAM;AACZ,IAAA,UAAA,EAAY,eAAe,WAAW,CAAA;AAAA,GACvC,EAAA,CAAC,UAAY,EAAA,WAAW,CAAC,CAAA;AAE5B,EAAO,OAAA,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, useMapModel } 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 } = useMapModel(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 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(\n map: MapModel | undefined,\n intl: PackageIntl,\n viewPadding: ViewPaddingBehavior\n) {\n const printingService = useService<PrintingService>(\"printing.PrintingService\");\n const [controller, setController] = useState<PrintingController | undefined>(undefined);\n\n useEffect(() => {\n if (!map) {\n return;\n }\n\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;AAiBtB,MAAA,QAAA,GAA8B,CAAC,KAAU,KAAA;AAClD,EAAA,MAAM,OAAO,OAAQ,EAAA;AAErB,EAAM,MAAA,EAAE,WAAc,GAAA,MAAA,EAAW,GAAA,KAAA;AACjC,EAAA,MAAM,EAAE,cAAA,EAAmB,GAAA,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,EAAM,MAAA,QAAA,GAAW,WAAgC,8BAA8B,CAAA;AAE/E,EAAA,MAAM,EAAE,GAAA,EAAQ,GAAA,WAAA,CAAY,KAAK,CAAA;AACjC,EAAA,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GACD,EAAA,CAAC,GAAK,EAAA,IAAA,EAAM,eAAe,CAAC,CAAA;AAE/B,EAAA,SAAA,CAAU,MAAM;AACZ,IAAA,UAAA,EAAY,eAAe,WAAW,CAAA;AAAA,GACvC,EAAA,CAAC,UAAY,EAAA,WAAW,CAAC,CAAA;AAE5B,EAAO,OAAA,UAAA;AACX;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@open-pioneer/printing",
4
- "version": "0.10.0",
4
+ "version": "0.11.0-dev.20250515143825",
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,17 +14,18 @@
14
14
  "directory": "src/packages/printing"
15
15
  },
16
16
  "dependencies": {
17
- "@open-pioneer/chakra-integration": "^3.1.0",
18
- "@open-pioneer/core": "^3.1.0",
19
- "@open-pioneer/notifier": "^3.1.0",
20
- "@open-pioneer/react-utils": "^3.1.0",
21
- "@open-pioneer/runtime": "^3.1.0",
17
+ "@chakra-ui/react": "^3.17.0",
18
+ "@open-pioneer/chakra-snippets": "4.0.0-dev.20250512105016",
19
+ "@open-pioneer/core": "4.0.0-dev.20250512105016",
20
+ "@open-pioneer/notifier": "4.0.0-dev.20250512105016",
21
+ "@open-pioneer/react-utils": "4.0.0-dev.20250512105016",
22
+ "@open-pioneer/runtime": "4.0.0-dev.20250512105016",
22
23
  "classnames": "^2.3.2",
23
24
  "html2canvas": "^1.4.1",
24
25
  "jspdf": "^3.0.1",
25
26
  "ol": "^10.5.0",
26
27
  "react": "^19.1.0",
27
- "@open-pioneer/map": "^0.10.0"
28
+ "@open-pioneer/map": "0.11.0-dev.20250515143825"
28
29
  },
29
30
  "exports": {
30
31
  "./package.json": "./package.json",