@eox/feedback 1.1.1 → 1.2.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.
- package/dist/eox-feedback.js +4197 -5307
- package/dist/eox-feedback.umd.cjs +70 -64
- package/dist/material-symbols-outlined.woff2 +0 -0
- package/dist/material-symbols-rounded.woff2 +0 -0
- package/dist/material-symbols-sharp.woff2 +0 -0
- package/dist/material-symbols-subset.woff2 +0 -0
- package/package.json +4 -4
- package/src/feedback-button.js +2 -2
- package/src/main.js +35 -3
- package/types/{feedback/src/enums → enums}/index.d.ts.map +1 -1
- package/types/{feedback/src/enums → enums}/test.d.ts.map +1 -1
- package/types/{feedback/src/feedback-button.d.ts → feedback-button.d.ts} +3 -3
- package/types/feedback-button.d.ts.map +1 -0
- package/types/{feedback/src/main.d.ts → main.d.ts} +23 -4
- package/types/main.d.ts.map +1 -0
- package/types/{feedback/src/style.d.ts.map → style.d.ts.map} +1 -1
- package/types/{feedback/src/style.eox.d.ts.map → style.eox.d.ts.map} +1 -1
- package/types/drawtools/src/components/controller.d.ts +0 -108
- package/types/drawtools/src/components/controller.d.ts.map +0 -1
- package/types/drawtools/src/components/list.d.ts +0 -144
- package/types/drawtools/src/components/list.d.ts.map +0 -1
- package/types/drawtools/src/enums/draw.d.ts +0 -9
- package/types/drawtools/src/enums/draw.d.ts.map +0 -1
- package/types/drawtools/src/enums/index.d.ts +0 -4
- package/types/drawtools/src/enums/index.d.ts.map +0 -1
- package/types/drawtools/src/enums/stories.d.ts +0 -26
- package/types/drawtools/src/enums/stories.d.ts.map +0 -1
- package/types/drawtools/src/enums/test.d.ts +0 -11
- package/types/drawtools/src/enums/test.d.ts.map +0 -1
- package/types/drawtools/src/helpers/copy-text-to-clipboard.d.ts +0 -7
- package/types/drawtools/src/helpers/copy-text-to-clipboard.d.ts.map +0 -1
- package/types/drawtools/src/helpers/features-to-geojson.d.ts +0 -12
- package/types/drawtools/src/helpers/features-to-geojson.d.ts.map +0 -1
- package/types/drawtools/src/helpers/features-to-wkt.d.ts +0 -9
- package/types/drawtools/src/helpers/features-to-wkt.d.ts.map +0 -1
- package/types/drawtools/src/helpers/generate-upload-events.d.ts +0 -19
- package/types/drawtools/src/helpers/generate-upload-events.d.ts.map +0 -1
- package/types/drawtools/src/helpers/index.d.ts +0 -4
- package/types/drawtools/src/helpers/index.d.ts.map +0 -1
- package/types/drawtools/src/main.d.ts +0 -270
- package/types/drawtools/src/main.d.ts.map +0 -1
- package/types/drawtools/src/methods/controller/index.d.ts +0 -2
- package/types/drawtools/src/methods/controller/index.d.ts.map +0 -1
- package/types/drawtools/src/methods/controller/update-button-states.d.ts +0 -12
- package/types/drawtools/src/methods/controller/update-button-states.d.ts.map +0 -1
- package/types/drawtools/src/methods/draw/create-select-handler.d.ts +0 -6
- package/types/drawtools/src/methods/draw/create-select-handler.d.ts.map +0 -1
- package/types/drawtools/src/methods/draw/discard-drawing.d.ts +0 -9
- package/types/drawtools/src/methods/draw/discard-drawing.d.ts.map +0 -1
- package/types/drawtools/src/methods/draw/emit-drawn-features.d.ts +0 -20
- package/types/drawtools/src/methods/draw/emit-drawn-features.d.ts.map +0 -1
- package/types/drawtools/src/methods/draw/handle-layer-id.d.ts +0 -12
- package/types/drawtools/src/methods/draw/handle-layer-id.d.ts.map +0 -1
- package/types/drawtools/src/methods/draw/index.d.ts +0 -9
- package/types/drawtools/src/methods/draw/index.d.ts.map +0 -1
- package/types/drawtools/src/methods/draw/init-layer.d.ts +0 -13
- package/types/drawtools/src/methods/draw/init-layer.d.ts.map +0 -1
- package/types/drawtools/src/methods/draw/init-selection.d.ts +0 -10
- package/types/drawtools/src/methods/draw/init-selection.d.ts.map +0 -1
- package/types/drawtools/src/methods/draw/on-draw-end.d.ts +0 -9
- package/types/drawtools/src/methods/draw/on-draw-end.d.ts.map +0 -1
- package/types/drawtools/src/methods/draw/start-drawing.d.ts +0 -9
- package/types/drawtools/src/methods/draw/start-drawing.d.ts.map +0 -1
- package/types/drawtools/src/methods/list/delete-feature.d.ts +0 -11
- package/types/drawtools/src/methods/list/delete-feature.d.ts.map +0 -1
- package/types/drawtools/src/methods/list/first-update.d.ts +0 -8
- package/types/drawtools/src/methods/list/first-update.d.ts.map +0 -1
- package/types/drawtools/src/methods/list/hover-feature.d.ts +0 -10
- package/types/drawtools/src/methods/list/hover-feature.d.ts.map +0 -1
- package/types/drawtools/src/methods/list/index.d.ts +0 -5
- package/types/drawtools/src/methods/list/index.d.ts.map +0 -1
- package/types/drawtools/src/methods/list/select-deselect-feature.d.ts +0 -9
- package/types/drawtools/src/methods/list/select-deselect-feature.d.ts.map +0 -1
- package/types/drawtools/src/style.eox.d.ts.map +0 -1
- package/types/feedback/src/feedback-button.d.ts.map +0 -1
- package/types/feedback/src/main.d.ts.map +0 -1
- package/types/feedback/src/style.eox.d.ts +0 -2
- package/types/jsonform/src/custom-inputs/buttons.d.ts +0 -20
- package/types/jsonform/src/custom-inputs/buttons.d.ts.map +0 -1
- package/types/jsonform/src/custom-inputs/index.d.ts +0 -5
- package/types/jsonform/src/custom-inputs/index.d.ts.map +0 -1
- package/types/jsonform/src/custom-inputs/minmax.d.ts +0 -16
- package/types/jsonform/src/custom-inputs/minmax.d.ts.map +0 -1
- package/types/jsonform/src/custom-inputs/spatial/editor.d.ts +0 -19
- package/types/jsonform/src/custom-inputs/spatial/editor.d.ts.map +0 -1
- package/types/jsonform/src/custom-inputs/spatial/index.d.ts +0 -3
- package/types/jsonform/src/custom-inputs/spatial/index.d.ts.map +0 -1
- package/types/jsonform/src/custom-inputs/spatial/utils.d.ts +0 -22
- package/types/jsonform/src/custom-inputs/spatial/utils.d.ts.map +0 -1
- package/types/jsonform/src/custom-inputs/spatial/validator.d.ts +0 -16
- package/types/jsonform/src/custom-inputs/spatial/validator.d.ts.map +0 -1
- package/types/jsonform/src/enums/editor.d.ts +0 -11
- package/types/jsonform/src/enums/editor.d.ts.map +0 -1
- package/types/jsonform/src/enums/index.d.ts +0 -4
- package/types/jsonform/src/enums/index.d.ts.map +0 -1
- package/types/jsonform/src/enums/stories.d.ts +0 -38
- package/types/jsonform/src/enums/stories.d.ts.map +0 -1
- package/types/jsonform/src/enums/test.d.ts +0 -4
- package/types/jsonform/src/enums/test.d.ts.map +0 -1
- package/types/jsonform/src/helpers/editor.d.ts +0 -18
- package/types/jsonform/src/helpers/editor.d.ts.map +0 -1
- package/types/jsonform/src/helpers/index.d.ts +0 -2
- package/types/jsonform/src/helpers/index.d.ts.map +0 -1
- package/types/jsonform/src/main.d.ts +0 -157
- package/types/jsonform/src/main.d.ts.map +0 -1
- package/types/jsonform/src/style.d.ts +0 -2
- package/types/jsonform/src/style.d.ts.map +0 -1
- package/types/jsonform/src/style.eox.d.ts +0 -2
- package/types/jsonform/src/style.eox.d.ts.map +0 -1
- package/types/map/src/components/compare.d.ts +0 -31
- package/types/map/src/components/compare.d.ts.map +0 -1
- package/types/map/src/components/tooltip.d.ts +0 -41
- package/types/map/src/components/tooltip.d.ts.map +0 -1
- package/types/map/src/controls/controls.d.ts +0 -21
- package/types/map/src/controls/controls.d.ts.map +0 -1
- package/types/map/src/controls/geo-location.d.ts +0 -41
- package/types/map/src/controls/geo-location.d.ts.map +0 -1
- package/types/map/src/controls/loading-indicator.d.ts +0 -20
- package/types/map/src/controls/loading-indicator.d.ts.map +0 -1
- package/types/map/src/custom/layers/MapboxStyle.d.ts +0 -13
- package/types/map/src/custom/layers/MapboxStyle.d.ts.map +0 -1
- package/types/map/src/custom/sources/Cluster.d.ts +0 -20
- package/types/map/src/custom/sources/Cluster.d.ts.map +0 -1
- package/types/map/src/custom/sources/FlatGeoBuf.d.ts +0 -28
- package/types/map/src/custom/sources/FlatGeoBuf.d.ts.map +0 -1
- package/types/map/src/custom/sources/WMTSCapabilities.d.ts +0 -35
- package/types/map/src/custom/sources/WMTSCapabilities.d.ts.map +0 -1
- package/types/map/src/enums/index.d.ts +0 -2
- package/types/map/src/enums/index.d.ts.map +0 -1
- package/types/map/src/enums/map.d.ts +0 -5
- package/types/map/src/enums/map.d.ts.map +0 -1
- package/types/map/src/helpers/add-new-feature.d.ts +0 -15
- package/types/map/src/helpers/add-new-feature.d.ts.map +0 -1
- package/types/map/src/helpers/cancel-animation.d.ts +0 -7
- package/types/map/src/helpers/cancel-animation.d.ts.map +0 -1
- package/types/map/src/helpers/center.d.ts +0 -12
- package/types/map/src/helpers/center.d.ts.map +0 -1
- package/types/map/src/helpers/cluster-explode.d.ts +0 -38
- package/types/map/src/helpers/cluster-explode.d.ts.map +0 -1
- package/types/map/src/helpers/coordinates-roughly-equals.d.ts +0 -12
- package/types/map/src/helpers/coordinates-roughly-equals.d.ts.map +0 -1
- package/types/map/src/helpers/draw.d.ts +0 -22
- package/types/map/src/helpers/draw.d.ts.map +0 -1
- package/types/map/src/helpers/generate.d.ts +0 -32
- package/types/map/src/helpers/generate.d.ts.map +0 -1
- package/types/map/src/helpers/index.d.ts +0 -17
- package/types/map/src/helpers/index.d.ts.map +0 -1
- package/types/map/src/helpers/interactions.d.ts +0 -16
- package/types/map/src/helpers/interactions.d.ts.map +0 -1
- package/types/map/src/helpers/layer.d.ts +0 -24
- package/types/map/src/helpers/layer.d.ts.map +0 -1
- package/types/map/src/helpers/parse-feature.d.ts +0 -8
- package/types/map/src/helpers/parse-feature.d.ts.map +0 -1
- package/types/map/src/helpers/parse-text.d.ts +0 -45
- package/types/map/src/helpers/parse-text.d.ts.map +0 -1
- package/types/map/src/helpers/register-projection-from-code.d.ts +0 -8
- package/types/map/src/helpers/register-projection-from-code.d.ts.map +0 -1
- package/types/map/src/helpers/register-projection.d.ts +0 -11
- package/types/map/src/helpers/register-projection.d.ts.map +0 -1
- package/types/map/src/helpers/select.d.ts +0 -95
- package/types/map/src/helpers/select.d.ts.map +0 -1
- package/types/map/src/helpers/tile-grid.d.ts +0 -10
- package/types/map/src/helpers/tile-grid.d.ts.map +0 -1
- package/types/map/src/helpers/transform.d.ts +0 -19
- package/types/map/src/helpers/transform.d.ts.map +0 -1
- package/types/map/src/layers.d.ts +0 -125
- package/types/map/src/layers.d.ts.map +0 -1
- package/types/map/src/main.d.ts +0 -459
- package/types/map/src/main.d.ts.map +0 -1
- package/types/map/src/methods/map/add-update-layer.d.ts +0 -13
- package/types/map/src/methods/map/add-update-layer.d.ts.map +0 -1
- package/types/map/src/methods/map/animate-to-state.d.ts +0 -7
- package/types/map/src/methods/map/animate-to-state.d.ts.map +0 -1
- package/types/map/src/methods/map/first-updated.d.ts +0 -9
- package/types/map/src/methods/map/first-updated.d.ts.map +0 -1
- package/types/map/src/methods/map/getters.d.ts +0 -22
- package/types/map/src/methods/map/getters.d.ts.map +0 -1
- package/types/map/src/methods/map/index.d.ts +0 -7
- package/types/map/src/methods/map/index.d.ts.map +0 -1
- package/types/map/src/methods/map/remove.d.ts +0 -22
- package/types/map/src/methods/map/remove.d.ts.map +0 -1
- package/types/map/src/methods/map/setters.d.ts +0 -82
- package/types/map/src/methods/map/setters.d.ts.map +0 -1
- package/types/map/src/plugins/globe/index.d.ts +0 -6
- package/types/map/src/plugins/globe/index.d.ts.map +0 -1
- package/types/map/src/plugins/globe/methods.d.ts +0 -8
- package/types/map/src/plugins/globe/methods.d.ts.map +0 -1
- package/types/map/src/plugins/globe/openglobus.d.ts +0 -16
- package/types/map/src/plugins/globe/openglobus.d.ts.map +0 -1
- package/types/map/src/types.d.ts +0 -178
- package/types/map/src/types.d.ts.map +0 -1
- /package/types/{feedback/src/enums → enums}/index.d.ts +0 -0
- /package/types/{feedback/src/enums → enums}/test.d.ts +0 -0
- /package/types/{feedback/src/style.d.ts → style.d.ts} +0 -0
- /package/types/{drawtools/src/style.eox.d.ts → style.eox.d.ts} +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eox/feedback",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git@github.com:EOX-A/EOxElements.git"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"vite": "^
|
|
10
|
+
"vite": "^8.2.2"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@eox/elements-utils": "^1.
|
|
14
|
-
"@eox/ui": "^
|
|
13
|
+
"@eox/elements-utils": "^1.2.0",
|
|
14
|
+
"@eox/ui": "^1.1.0",
|
|
15
15
|
"region-screenshot-js": "^1.1.0"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
package/src/feedback-button.js
CHANGED
|
@@ -89,8 +89,8 @@ export class EOxFeedbackButton extends HTMLElement {
|
|
|
89
89
|
${style}
|
|
90
90
|
${this.getAttribute("unstyled") === null && styleEOX}
|
|
91
91
|
:host {
|
|
92
|
-
position: fixed
|
|
93
|
-
margin: 0px 20px
|
|
92
|
+
position: fixed;
|
|
93
|
+
margin: 0px 20px;
|
|
94
94
|
${this.position.includes("top") ? "top: 0px;" : ""}
|
|
95
95
|
${this.position.includes("right") ? "right: 0px;" : ""}
|
|
96
96
|
${this.position.includes("bottom") ? "bottom: 0px;" : ""}
|
package/src/main.js
CHANGED
|
@@ -4,8 +4,27 @@ import { styleEOX } from "./style.eox";
|
|
|
4
4
|
import "./feedback-button.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* The `eox-feedback` element provides a modal dialog for collecting user feedback.
|
|
8
|
-
*
|
|
7
|
+
* The `eox-feedback` element provides a modal dialog for collecting user feedback.
|
|
8
|
+
* It supports screenshot capture, customizable endpoint, and flexible styling.
|
|
9
|
+
* The feedback modal (`<eox-feedback></eox-feedback>`) can be included in the DOM
|
|
10
|
+
* directly or via a floating button (`<eox-feedback-button></eox-feedback-button>`),
|
|
11
|
+
* which can be positioned in any corner of the viewport.
|
|
12
|
+
*
|
|
13
|
+
* On submit, the element sends a `POST` request with `FormData` to the configured
|
|
14
|
+
* `endpoint`. The payload includes the feedback message (or custom form fields when
|
|
15
|
+
* using a `schema`), the current page URL, the browser's user agent, screen resolution and optionally
|
|
16
|
+
* a screenshot file. This makes it straightforward to connect to any backend — for
|
|
17
|
+
* example a service that creates issues in a Git platform (GitLab, GitHub, …), sends
|
|
18
|
+
* notifications, or stores feedback in a database.
|
|
19
|
+
*
|
|
20
|
+
* The backend only needs to accept a `multipart/form-data` POST request, extract the
|
|
21
|
+
* fields and the optional file attachment, and then forward them to whatever system
|
|
22
|
+
* you use for tracking or processing feedback. Because all authentication and API
|
|
23
|
+
* tokens live on the server side, the browser never sees sensitive credentials.
|
|
24
|
+
* Typical backend responsibilities include input sanitization, CORS configuration to
|
|
25
|
+
* restrict which origins may submit feedback, and mapping the received fields into the
|
|
26
|
+
* format expected by the target system (e.g. composing an issue title and body, or
|
|
27
|
+
* building an email).
|
|
9
28
|
*
|
|
10
29
|
* @element eox-feedback
|
|
11
30
|
*
|
|
@@ -205,10 +224,12 @@ export class EOxFeedback extends HTMLElement {
|
|
|
205
224
|
const submitButton = this.shadowRoot.querySelector("button#submit");
|
|
206
225
|
submitButton.classList.add("disabled");
|
|
207
226
|
|
|
227
|
+
this.classList.add("hidden");
|
|
208
228
|
this.regionScreenshot = new RegionScreenshot();
|
|
209
229
|
|
|
210
230
|
["closed", "errorCreated", "screenshotDownload"].forEach((event) => {
|
|
211
231
|
this.regionScreenshot.on(event, () => {
|
|
232
|
+
this.classList.remove("hidden");
|
|
212
233
|
const checkbox = this.shadowRoot.querySelector("input[type=checkbox]");
|
|
213
234
|
if (!(checkbox instanceof HTMLInputElement)) return;
|
|
214
235
|
checkbox.checked = false;
|
|
@@ -229,6 +250,7 @@ export class EOxFeedback extends HTMLElement {
|
|
|
229
250
|
});
|
|
230
251
|
|
|
231
252
|
this.regionScreenshot.on("screenshotGenerated", (dataUrl) => {
|
|
253
|
+
this.classList.remove("hidden");
|
|
232
254
|
const screenshot = document.createElement("img");
|
|
233
255
|
screenshot.src = dataUrl;
|
|
234
256
|
screenshot.classList.add("border");
|
|
@@ -302,6 +324,11 @@ export class EOxFeedback extends HTMLElement {
|
|
|
302
324
|
|
|
303
325
|
requestBody.append("location", window.location.href);
|
|
304
326
|
|
|
327
|
+
requestBody.append(
|
|
328
|
+
"screenResolution",
|
|
329
|
+
`width: ${window.innerWidth}px | height: ${window.innerHeight}px`,
|
|
330
|
+
);
|
|
331
|
+
|
|
305
332
|
if (!this.endpoint) {
|
|
306
333
|
throw new Error("No endpoint attribute defined!");
|
|
307
334
|
}
|
|
@@ -364,7 +391,7 @@ export class EOxFeedback extends HTMLElement {
|
|
|
364
391
|
}
|
|
365
392
|
} else {
|
|
366
393
|
formContent = `
|
|
367
|
-
<div class="field
|
|
394
|
+
<div class="field border">
|
|
368
395
|
<textarea id="message" placeholder="${
|
|
369
396
|
!this.endpoint
|
|
370
397
|
? "Missing endpoint attribute!"
|
|
@@ -395,6 +422,7 @@ export class EOxFeedback extends HTMLElement {
|
|
|
395
422
|
}
|
|
396
423
|
z-index: 10000;
|
|
397
424
|
}
|
|
425
|
+
:host(.hidden),
|
|
398
426
|
.hidden {
|
|
399
427
|
display: none !important;
|
|
400
428
|
}
|
|
@@ -412,6 +440,10 @@ export class EOxFeedback extends HTMLElement {
|
|
|
412
440
|
.region-screenshot_tools {
|
|
413
441
|
z-index: 10001;
|
|
414
442
|
}
|
|
443
|
+
article {
|
|
444
|
+
max-height: calc(100dvh - 2rem);
|
|
445
|
+
overflow-y: auto;
|
|
446
|
+
}
|
|
415
447
|
</style>
|
|
416
448
|
<article class="no-margin small-round">
|
|
417
449
|
<div ${!this.endpoint ? 'class="disabled"' : ""}>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/enums/index.js"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../src/enums/test.js"],"names":[],"mappings":""}
|
|
@@ -9,15 +9,15 @@ export class EOxFeedbackButton extends HTMLElement {
|
|
|
9
9
|
*/
|
|
10
10
|
modal: import("./main").EOxFeedback;
|
|
11
11
|
position: string;
|
|
12
|
-
_schema:
|
|
12
|
+
_schema: any;
|
|
13
13
|
/**
|
|
14
14
|
* @param {import("@eox/jsonform").JsonSchema|null} newSchema
|
|
15
15
|
*/
|
|
16
|
-
set schema(newSchema:
|
|
16
|
+
set schema(newSchema: any | null);
|
|
17
17
|
/**
|
|
18
18
|
* @returns {import("@eox/jsonform").JsonSchema|null}
|
|
19
19
|
*/
|
|
20
|
-
get schema():
|
|
20
|
+
get schema(): any | null;
|
|
21
21
|
attributeChangedCallback(name: any, oldValue: any, newValue: any): void;
|
|
22
22
|
connectedCallback(): void;
|
|
23
23
|
disconnectedCallback(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feedback-button.d.ts","sourceRoot":"","sources":["../src/feedback-button.js"],"names":[],"mappings":"AAMA;;;GAGG;AACH;IACE,oCAAqD;IAMnD;;OAEG;IACH,OAFU,OAAO,QAAQ,EAAE,WAAW,CAErB;IAEjB,iBAA2B;IAE3B,aAAmB;IAUrB;;OAEG;IACH,sBAFW,GAAkC,GAAC,IAAI,EAOjD;IAfD;;OAEG;IACH,cAFa,GAAkC,GAAC,IAAI,CAInD;IAYD,wEAOC;IAED,0BAKC;IAED,6BAIC;IAED,sBAiBC;IAED,eAuBC;CACF"}
|
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The `eox-feedback` element provides a modal dialog for collecting user feedback.
|
|
3
|
-
*
|
|
2
|
+
* The `eox-feedback` element provides a modal dialog for collecting user feedback.
|
|
3
|
+
* It supports screenshot capture, customizable endpoint, and flexible styling.
|
|
4
|
+
* The feedback modal (`<eox-feedback></eox-feedback>`) can be included in the DOM
|
|
5
|
+
* directly or via a floating button (`<eox-feedback-button></eox-feedback-button>`),
|
|
6
|
+
* which can be positioned in any corner of the viewport.
|
|
7
|
+
*
|
|
8
|
+
* On submit, the element sends a `POST` request with `FormData` to the configured
|
|
9
|
+
* `endpoint`. The payload includes the feedback message (or custom form fields when
|
|
10
|
+
* using a `schema`), the current page URL, the browser's user agent, screen resolution and optionally
|
|
11
|
+
* a screenshot file. This makes it straightforward to connect to any backend — for
|
|
12
|
+
* example a service that creates issues in a Git platform (GitLab, GitHub, …), sends
|
|
13
|
+
* notifications, or stores feedback in a database.
|
|
14
|
+
*
|
|
15
|
+
* The backend only needs to accept a `multipart/form-data` POST request, extract the
|
|
16
|
+
* fields and the optional file attachment, and then forward them to whatever system
|
|
17
|
+
* you use for tracking or processing feedback. Because all authentication and API
|
|
18
|
+
* tokens live on the server side, the browser never sees sensitive credentials.
|
|
19
|
+
* Typical backend responsibilities include input sanitization, CORS configuration to
|
|
20
|
+
* restrict which origins may submit feedback, and mapping the received fields into the
|
|
21
|
+
* format expected by the target system (e.g. composing an issue title and body, or
|
|
22
|
+
* building an email).
|
|
4
23
|
*
|
|
5
24
|
* @element eox-feedback
|
|
6
25
|
*
|
|
@@ -41,11 +60,11 @@ export class EOxFeedback extends HTMLElement {
|
|
|
41
60
|
/**
|
|
42
61
|
* @param {import("@eox/jsonform").JsonSchema|null} newSchema
|
|
43
62
|
*/
|
|
44
|
-
set schema(newSchema:
|
|
63
|
+
set schema(newSchema: any | null);
|
|
45
64
|
/**
|
|
46
65
|
* @returns {import("@eox/jsonform").JsonSchema|null}
|
|
47
66
|
*/
|
|
48
|
-
get schema():
|
|
67
|
+
get schema(): any | null;
|
|
49
68
|
attributeChangedCallback(name: any, oldVal: any, newVal: any): void;
|
|
50
69
|
connectedCallback(): void;
|
|
51
70
|
disconnectedCallback(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.js"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH;IACE,oCAAqD;IAMnD,eAAe;IACf,0BAA6B;IAC7B,eAAe;IACf,sBAAyB;IAEzB,eAAe;IACf,yBAA4B;IAE5B,eAAe;IACf,uBAA0B;IAE1B,eAAe;IACf,kBAAqB;IAErB,eAAe;IACf,gBAAmB;IAEnB,eAAe;IACf,mBAAuB;IAUzB;;OAEG;IACH,kBAFW,MAAM,EAQhB;IAhBD;;OAEG;IACH,gBAFa,MAAM,CAIlB;IAoBD;;OAEG;IACH,sBAFW,GAAkC,GAAC,IAAI,EAKjD;IAbD;;OAEG;IACH,cAFa,GAAkC,GAAC,IAAI,CAInD;IAUD,oEAOC;IAED,0BA4BC;IAED,6BAsBC;IAED,eAAe;IACf,wBAUC;IAED,eAAe;IACf,wBAQC;IAED,eAAe;IACf,yBAYC;IAED,eAAe;IACf,2BAoEC;IAED,eAAe;IACf,iBAoFC;IAED,eAAe;IACf,iBAMC;IAED,eAAe;IACf,eA6GC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../src/style.js"],"names":[],"mappings":"AAAA,yBACE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.eox.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"style.eox.d.ts","sourceRoot":"","sources":["../src/style.eox.js"],"names":[],"mappings":"AAKA,8BAEE"}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Controller component for drawing features
|
|
3
|
-
*
|
|
4
|
-
* @element eox-drawtools-controller
|
|
5
|
-
*/
|
|
6
|
-
export class EOxDrawToolsController extends LitElement {
|
|
7
|
-
static properties: {
|
|
8
|
-
multipleFeatures: {
|
|
9
|
-
attribute: boolean;
|
|
10
|
-
type: BooleanConstructor;
|
|
11
|
-
};
|
|
12
|
-
drawnFeatures: {
|
|
13
|
-
attribute: boolean;
|
|
14
|
-
state: boolean;
|
|
15
|
-
type: ArrayConstructor;
|
|
16
|
-
};
|
|
17
|
-
currentlyDrawing: {
|
|
18
|
-
attribute: boolean;
|
|
19
|
-
state: boolean;
|
|
20
|
-
type: BooleanConstructor;
|
|
21
|
-
};
|
|
22
|
-
drawFunc: {
|
|
23
|
-
attribute: boolean;
|
|
24
|
-
type: ObjectConstructor;
|
|
25
|
-
};
|
|
26
|
-
select: {
|
|
27
|
-
type: BooleanConstructor;
|
|
28
|
-
};
|
|
29
|
-
importFeatures: {
|
|
30
|
-
attribute: string;
|
|
31
|
-
type: BooleanConstructor;
|
|
32
|
-
};
|
|
33
|
-
showEditor: {
|
|
34
|
-
attribute: string;
|
|
35
|
-
type: BooleanConstructor;
|
|
36
|
-
};
|
|
37
|
-
geoJSON: {
|
|
38
|
-
attribute: string;
|
|
39
|
-
type: StringConstructor;
|
|
40
|
-
};
|
|
41
|
-
type: {
|
|
42
|
-
attribute: string;
|
|
43
|
-
type: StringConstructor;
|
|
44
|
-
};
|
|
45
|
-
unstyled: {
|
|
46
|
-
type: BooleanConstructor;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* Allow adding more than one feature at a time
|
|
51
|
-
*/
|
|
52
|
-
multipleFeatures: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* The array of drawn native OpenLayers features. Normally includes only one feature,
|
|
55
|
-
* until multiple feature drawing is enabled.
|
|
56
|
-
*
|
|
57
|
-
* @type Array<import("ol").Feature>
|
|
58
|
-
*/
|
|
59
|
-
drawnFeatures: Array<import("ol").Feature>;
|
|
60
|
-
/**
|
|
61
|
-
* Allow import features using drag-drop and upload button
|
|
62
|
-
* @type Boolean
|
|
63
|
-
*/
|
|
64
|
-
importFeatures: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Show geo-json editor for draw tool
|
|
67
|
-
* @type Boolean
|
|
68
|
-
*/
|
|
69
|
-
showEditor: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Whether the user is currently in the process of drawing or not
|
|
72
|
-
*/
|
|
73
|
-
currentlyDrawing: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* List of draw function object like start, discard etc.
|
|
76
|
-
*/
|
|
77
|
-
drawFunc: any;
|
|
78
|
-
/**
|
|
79
|
-
* Parsed and Stringify Geo JSON
|
|
80
|
-
* @type String
|
|
81
|
-
*/
|
|
82
|
-
geoJSON: string;
|
|
83
|
-
/**
|
|
84
|
-
* Type of the drawn feature
|
|
85
|
-
* @type {"Polygon" | "Point" | "LineString" | "Circle" | "Box"}
|
|
86
|
-
*/
|
|
87
|
-
type: "Polygon" | "Point" | "LineString" | "Circle" | "Box";
|
|
88
|
-
/**
|
|
89
|
-
* Render the element without additional styles
|
|
90
|
-
*/
|
|
91
|
-
unstyled: boolean;
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
*/
|
|
95
|
-
select: boolean;
|
|
96
|
-
/**
|
|
97
|
-
* Updates button states based on conditions
|
|
98
|
-
*/
|
|
99
|
-
updateButtonStates(): void;
|
|
100
|
-
/**
|
|
101
|
-
* Overrides createRenderRoot to handle shadow DOM
|
|
102
|
-
*/
|
|
103
|
-
createRenderRoot(): this;
|
|
104
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
105
|
-
#private;
|
|
106
|
-
}
|
|
107
|
-
import { LitElement } from "lit";
|
|
108
|
-
//# sourceMappingURL=controller.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../../../drawtools/src/components/controller.js"],"names":[],"mappings":"AAKA;;;;GAIG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWE;IAeA;;OAEG;IACH,0BAA6B;IAE7B;;;;;OAKG;IACH,eAFS,KAAK,CAAC,OAAO,IAAI,EAAE,OAAO,CAAC,CAEb;IAEvB;;;OAGG;IACH,wBAA2B;IAE3B;;;OAGG;IACH,oBAAuB;IAEvB;;OAEG;IACH,0BAA6B;IAE7B;;OAEG;IACH,cAAoB;IAEpB;;;OAGG;IACH,gBAAiB;IAEjB;;;OAGG;IACH,MAFU,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,QAAQ,GAAG,KAAK,CAE1C;IAErB;;OAEG;IACH,kBAAqB;IAErB;;OAEG;IACH,gBAAmB;IAGrB;;OAEG;IACH,2BAKC;IAED;;OAEG;IACH,yBAEC;IAED,+CA0NC;;CACF;2BA5UyC,KAAK"}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Display list of features
|
|
3
|
-
*
|
|
4
|
-
* @element eox-drawtools-list
|
|
5
|
-
*/
|
|
6
|
-
export class EOxDrawToolsList extends LitElement {
|
|
7
|
-
static properties: {
|
|
8
|
-
eoxDrawTools: {
|
|
9
|
-
attribute: boolean;
|
|
10
|
-
state: boolean;
|
|
11
|
-
};
|
|
12
|
-
eoxMap: {
|
|
13
|
-
attribute: boolean;
|
|
14
|
-
state: boolean;
|
|
15
|
-
};
|
|
16
|
-
olMap: {
|
|
17
|
-
attribute: boolean;
|
|
18
|
-
state: boolean;
|
|
19
|
-
};
|
|
20
|
-
draw: {
|
|
21
|
-
attribute: boolean;
|
|
22
|
-
state: boolean;
|
|
23
|
-
};
|
|
24
|
-
drawLayer: {
|
|
25
|
-
attribute: boolean;
|
|
26
|
-
state: boolean;
|
|
27
|
-
};
|
|
28
|
-
drawnFeatures: {
|
|
29
|
-
attribute: boolean;
|
|
30
|
-
state: boolean;
|
|
31
|
-
type: ArrayConstructor;
|
|
32
|
-
};
|
|
33
|
-
featureName: {
|
|
34
|
-
attribute: boolean;
|
|
35
|
-
state: boolean;
|
|
36
|
-
type: StringConstructor;
|
|
37
|
-
};
|
|
38
|
-
featureNameKey: {
|
|
39
|
-
attribute: boolean;
|
|
40
|
-
state: boolean;
|
|
41
|
-
type: StringConstructor;
|
|
42
|
-
};
|
|
43
|
-
modify: {
|
|
44
|
-
attribute: boolean;
|
|
45
|
-
state: boolean;
|
|
46
|
-
};
|
|
47
|
-
unstyled: {
|
|
48
|
-
type: BooleanConstructor;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* @type {import("@eox/map").EOxMap["selectInteractions"][string]}
|
|
53
|
-
*/
|
|
54
|
-
hoverInteraction: import("@eox/map").EOxMap["selectInteractions"][string];
|
|
55
|
-
/**
|
|
56
|
-
* @type {import("@eox/map").EOxMap["selectInteractions"][string]}
|
|
57
|
-
*/
|
|
58
|
-
clickInteraction: import("@eox/map").EOxMap["selectInteractions"][string];
|
|
59
|
-
/**
|
|
60
|
-
* @type string | number
|
|
61
|
-
*/
|
|
62
|
-
hoverId: string | number;
|
|
63
|
-
/**
|
|
64
|
-
* @type string | number
|
|
65
|
-
*/
|
|
66
|
-
clickId: string | number;
|
|
67
|
-
/**
|
|
68
|
-
* @type import("../main").EOxDrawTools;
|
|
69
|
-
*/
|
|
70
|
-
eoxDrawTools: import("../main").EOxDrawTools;
|
|
71
|
-
/**
|
|
72
|
-
* @type import("@eox/map").EOxMap
|
|
73
|
-
*/
|
|
74
|
-
eoxMap: import("@eox/map").EOxMap;
|
|
75
|
-
/**
|
|
76
|
-
* @type import("ol").Map
|
|
77
|
-
*/
|
|
78
|
-
olMap: import("ol").Map;
|
|
79
|
-
/**
|
|
80
|
-
* The current native OpenLayers `draw` interaction
|
|
81
|
-
* @type import("ol/interaction").Draw
|
|
82
|
-
*/
|
|
83
|
-
draw: import("ol/interaction").Draw;
|
|
84
|
-
/**
|
|
85
|
-
* The current native OpenLayers draw `layer`
|
|
86
|
-
* @type import("ol/layer").Vector<import("ol/source").Vector>
|
|
87
|
-
*/
|
|
88
|
-
drawLayer: import("ol/layer").Vector<import("ol/source").Vector>;
|
|
89
|
-
/**
|
|
90
|
-
* The array of drawn native OpenLayers features. Normally includes only one feature,
|
|
91
|
-
* until multiple feature drawing is enabled.
|
|
92
|
-
*
|
|
93
|
-
* @type Array<import("ol").Feature>
|
|
94
|
-
*/
|
|
95
|
-
drawnFeatures: Array<import("ol").Feature>;
|
|
96
|
-
/**
|
|
97
|
-
* Default display name for features
|
|
98
|
-
*/
|
|
99
|
-
featureName: string;
|
|
100
|
-
/**
|
|
101
|
-
* The key of the property to display in the feature list.
|
|
102
|
-
*/
|
|
103
|
-
featureNameKey: any;
|
|
104
|
-
/**
|
|
105
|
-
* The current native OpenLayers `modify` interaction
|
|
106
|
-
* @type import("ol/interaction").Modify
|
|
107
|
-
*/
|
|
108
|
-
modify: import("ol/interaction").Modify;
|
|
109
|
-
/**
|
|
110
|
-
* Render the element without additional styles
|
|
111
|
-
*/
|
|
112
|
-
unstyled: boolean;
|
|
113
|
-
/**
|
|
114
|
-
* Handles the deletion of an individual feature.
|
|
115
|
-
*
|
|
116
|
-
* @param {Event & { target: HTMLButtonElement }} evt - Event object containing button target.
|
|
117
|
-
*/
|
|
118
|
-
_handleDelete(evt: Event & {
|
|
119
|
-
target: HTMLButtonElement;
|
|
120
|
-
}): void;
|
|
121
|
-
/**
|
|
122
|
-
* Handles the selection and deselection of a feature from the list.
|
|
123
|
-
*
|
|
124
|
-
* @param {import("ol").Feature} feature - The selected feature.
|
|
125
|
-
*/
|
|
126
|
-
_handleFeatureSelectAndDeselect(feature: import("ol").Feature): void;
|
|
127
|
-
/**
|
|
128
|
-
*
|
|
129
|
-
* @param {number | string | undefined} featureId - The ID of the feature to hover.
|
|
130
|
-
* @param {Boolean} mouseOut - Flag indicating mouse out event.
|
|
131
|
-
*/
|
|
132
|
-
_handleHoverFeature(featureId: number | string | undefined, mouseOut?: boolean): void;
|
|
133
|
-
/**
|
|
134
|
-
* Initiates initial settings and event triggers upon the component's first update.
|
|
135
|
-
*/
|
|
136
|
-
firstUpdated(): void;
|
|
137
|
-
/**
|
|
138
|
-
* Overrides createRenderRoot to handle shadow DOM.
|
|
139
|
-
*/
|
|
140
|
-
createRenderRoot(): this;
|
|
141
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
142
|
-
}
|
|
143
|
-
import { LitElement } from "lit";
|
|
144
|
-
//# sourceMappingURL=list.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../drawtools/src/components/list.js"],"names":[],"mappings":"AASA;;;;GAIG;AACH;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWE;IAEF;;OAEG;IACH,kBAFU,OAAO,UAAU,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAEhD;IAEjB;;OAEG;IACH,kBAFU,OAAO,UAAU,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAEhD;IAEjB;;OAEG;IACH,SAFS,MAAM,GAAG,MAAM,CAEhB;IAER;;OAEG;IACH,SAFS,MAAM,GAAG,MAAM,CAEhB;IAKN;;OAEG;IACH,cAFS,OAAO,SAAS,EAAE,YAAY,CAEf;IAExB;;OAEG;IACH,QAFS,OAAO,UAAU,EAAE,MAAM,CAEhB;IAElB;;OAEG;IACH,OAFS,OAAO,IAAI,EAAE,GAAG,CAER;IAEjB;;;OAGG;IAEH,MAHS,OAAO,gBAAgB,EAAE,IAAI,CAGtB;IAEhB;;;OAGG;IAEH,WAHS,OAAO,UAAU,EAAE,MAAM,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,CAGzC;IAErB;;;;;OAKG;IACH,eAFS,KAAK,CAAC,OAAO,IAAI,EAAE,OAAO,CAAC,CAEb;IAEvB;;OAEG;IACH,oBAA4B;IAE5B;;OAEG;IACH,oBAA0B;IAE1B;;;OAGG;IAEH,QAHS,OAAO,gBAAgB,EAAE,MAAM,CAGtB;IAElB;;OAEG;IACH,kBAAqB;IAGvB;;;;OAIG;IACH,mBAFW,KAAK,GAAG;QAAE,MAAM,EAAE,iBAAiB,CAAA;KAAE,QAK/C;IAED;;;;OAIG;IACH,yCAFW,OAAO,IAAI,EAAE,OAAO,QAI9B;IAED;;;;OAIG;IACH,+BAHW,MAAM,GAAG,MAAM,GAAG,SAAS,4BAKrC;IAED;;OAEG;IACH,qBAEC;IAED;;OAEG;IACH,yBAEC;IAED,+CAwEC;CACF;2BAlOyC,KAAK"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"draw.d.ts","sourceRoot":"","sources":["../../../../../drawtools/src/enums/draw.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../drawtools/src/enums/index.js"],"names":[],"mappings":""}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export const STORIES_LAYERS_ARRAY: {
|
|
2
|
-
type: string;
|
|
3
|
-
source: {
|
|
4
|
-
type: string;
|
|
5
|
-
};
|
|
6
|
-
}[];
|
|
7
|
-
export const STORIES_VECTOR_LAYERS: {
|
|
8
|
-
type: string;
|
|
9
|
-
background: string;
|
|
10
|
-
properties: {
|
|
11
|
-
id: string;
|
|
12
|
-
};
|
|
13
|
-
source: {
|
|
14
|
-
type: string;
|
|
15
|
-
url: string;
|
|
16
|
-
format: string;
|
|
17
|
-
attributions: string;
|
|
18
|
-
};
|
|
19
|
-
style: {
|
|
20
|
-
"stroke-color": string;
|
|
21
|
-
"stroke-width": number;
|
|
22
|
-
"fill-color": string;
|
|
23
|
-
};
|
|
24
|
-
}[];
|
|
25
|
-
export const STORIES_MAP_STYLE: "width: 400px; height: 300px;";
|
|
26
|
-
//# sourceMappingURL=stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stories.d.ts","sourceRoot":"","sources":["../../../../../drawtools/src/enums/stories.js"],"names":[],"mappings":"AAAA;;;;;IAOE;AAEF;;;;;;;;;;;;;;;;;IAmBE;AAEF,gCAAiC,8BAA8B,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export namespace TEST_SELECTORS {
|
|
2
|
-
let drawTools: string;
|
|
3
|
-
let controller: string;
|
|
4
|
-
let drawBtn: string;
|
|
5
|
-
let editorBtn: string;
|
|
6
|
-
let copyBtn: string;
|
|
7
|
-
let discardBtn: string;
|
|
8
|
-
let list: string;
|
|
9
|
-
let deleteFeatureBtn: string;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../../../../drawtools/src/enums/test.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"copy-text-to-clipboard.d.ts","sourceRoot":"","sources":["../../../../../drawtools/src/helpers/copy-text-to-clipboard.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,kDAFW,MAAM,QAShB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export default featuresToGeoJson;
|
|
2
|
-
/**
|
|
3
|
-
* Converts features to a GeoJSON representation.
|
|
4
|
-
*
|
|
5
|
-
* @param {import("ol").Feature[]} features
|
|
6
|
-
* @param {(Parameters<GeoJson["writeFeaturesObject"]>)["1"]} [options]
|
|
7
|
-
*/
|
|
8
|
-
declare function featuresToGeoJson(features: import("ol").Feature[], options?: Parameters<GeoJson["writeFeaturesObject"]>["1"]): import("geojson").FeatureCollection<import("geojson").Geometry, {
|
|
9
|
-
[name: string]: any;
|
|
10
|
-
}>;
|
|
11
|
-
import GeoJson from "ol/format/GeoJSON";
|
|
12
|
-
//# sourceMappingURL=features-to-geojson.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"features-to-geojson.d.ts","sourceRoot":"","sources":["../../../../../drawtools/src/helpers/features-to-geojson.js"],"names":[],"mappings":";AAEA;;;;;GAKG;AACH,6CAHW,OAAO,IAAI,EAAE,OAAO,EAAE,YACrB,UAAU,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAE,GAAG,CAAC;;GAK3D;oBAXmB,mBAAmB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export default featureToWKT;
|
|
2
|
-
/**
|
|
3
|
-
* Converts features to a Well-Known Text (WKT) representation.
|
|
4
|
-
*
|
|
5
|
-
* @type {WKT["writeFeatures"]}
|
|
6
|
-
*/
|
|
7
|
-
declare const featureToWKT: WKT["writeFeatures"];
|
|
8
|
-
import WKT from "ol/format/WKT.js";
|
|
9
|
-
//# sourceMappingURL=features-to-wkt.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"features-to-wkt.d.ts","sourceRoot":"","sources":["../../../../../drawtools/src/helpers/features-to-wkt.js"],"names":[],"mappings":";AAEA;;;;GAIG;AACH,4BAFU,GAAG,CAAC,eAAe,CAAC,CAK5B;gBAVc,kBAAkB"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Initializes upload-related event listeners for drag-and-drop interactions on a map element.
|
|
3
|
-
* It configures the map to react visually to drag-and-drop actions and processes dropped files.
|
|
4
|
-
*
|
|
5
|
-
* @param {import("../main.js").EOxDrawTools} EOxDrawTool - The drawing tool instance.
|
|
6
|
-
* @param {import("@eox/map").EOxMap} EOxMap - The EOx Map instance.
|
|
7
|
-
*/
|
|
8
|
-
export function initMapDragDropImport(EOxDrawTool: import("../main.js").EOxDrawTools, EOxMap: import("@eox/map").EOxMap): void;
|
|
9
|
-
/**
|
|
10
|
-
* Handles file input from drag-and-drop or file selection events,
|
|
11
|
-
* forwarding each file to a specified processing function.
|
|
12
|
-
*
|
|
13
|
-
* @param {DragEvent | InputEvent & { target: HTMLInputElement }} e - The event object from the file input interaction.
|
|
14
|
-
* @param {import("../main.js").EOxDrawTools} EOxDrawTool - The drawing tool instance.
|
|
15
|
-
*/
|
|
16
|
-
export function handleFiles(e: DragEvent | (InputEvent & {
|
|
17
|
-
target: HTMLInputElement;
|
|
18
|
-
}), EOxDrawTool: import("../main.js").EOxDrawTools): void;
|
|
19
|
-
//# sourceMappingURL=generate-upload-events.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generate-upload-events.d.ts","sourceRoot":"","sources":["../../../../../drawtools/src/helpers/generate-upload-events.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,mDAHW,OAAO,YAAY,EAAE,YAAY,UACjC,OAAO,UAAU,EAAE,MAAM,QA6BnC;AAaD;;;;;;GAMG;AACH,+BAHW,SAAS,IAAG,UAAU,GAAG;IAAE,MAAM,EAAE,gBAAgB,CAAA;CAAE,CAAA,eACrD,OAAO,YAAY,EAAE,YAAY,QAiB3C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../drawtools/src/helpers/index.js"],"names":[],"mappings":""}
|