@eox/feedback 1.0.1 → 1.1.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.
Files changed (192) hide show
  1. package/dist/eox-feedback.js +2478 -2404
  2. package/dist/eox-feedback.umd.cjs +49 -56
  3. package/package.json +10 -3
  4. package/src/feedback-button.js +28 -1
  5. package/src/main.js +196 -26
  6. package/types/drawtools/src/components/controller.d.ts +108 -0
  7. package/types/drawtools/src/components/controller.d.ts.map +1 -0
  8. package/types/drawtools/src/components/list.d.ts +144 -0
  9. package/types/drawtools/src/components/list.d.ts.map +1 -0
  10. package/types/drawtools/src/enums/draw.d.ts +9 -0
  11. package/types/drawtools/src/enums/draw.d.ts.map +1 -0
  12. package/types/drawtools/src/enums/index.d.ts +4 -0
  13. package/types/drawtools/src/enums/index.d.ts.map +1 -0
  14. package/types/drawtools/src/enums/stories.d.ts +26 -0
  15. package/types/drawtools/src/enums/stories.d.ts.map +1 -0
  16. package/types/drawtools/src/enums/test.d.ts +11 -0
  17. package/types/drawtools/src/enums/test.d.ts.map +1 -0
  18. package/types/drawtools/src/helpers/copy-text-to-clipboard.d.ts +7 -0
  19. package/types/drawtools/src/helpers/copy-text-to-clipboard.d.ts.map +1 -0
  20. package/types/drawtools/src/helpers/features-to-geojson.d.ts +12 -0
  21. package/types/drawtools/src/helpers/features-to-geojson.d.ts.map +1 -0
  22. package/types/drawtools/src/helpers/features-to-wkt.d.ts +9 -0
  23. package/types/drawtools/src/helpers/features-to-wkt.d.ts.map +1 -0
  24. package/types/drawtools/src/helpers/generate-upload-events.d.ts +19 -0
  25. package/types/drawtools/src/helpers/generate-upload-events.d.ts.map +1 -0
  26. package/types/drawtools/src/helpers/index.d.ts +4 -0
  27. package/types/drawtools/src/helpers/index.d.ts.map +1 -0
  28. package/types/drawtools/src/main.d.ts +270 -0
  29. package/types/drawtools/src/main.d.ts.map +1 -0
  30. package/types/drawtools/src/methods/controller/index.d.ts +2 -0
  31. package/types/drawtools/src/methods/controller/index.d.ts.map +1 -0
  32. package/types/drawtools/src/methods/controller/update-button-states.d.ts +12 -0
  33. package/types/drawtools/src/methods/controller/update-button-states.d.ts.map +1 -0
  34. package/types/drawtools/src/methods/draw/create-select-handler.d.ts +6 -0
  35. package/types/drawtools/src/methods/draw/create-select-handler.d.ts.map +1 -0
  36. package/types/drawtools/src/methods/draw/discard-drawing.d.ts +9 -0
  37. package/types/drawtools/src/methods/draw/discard-drawing.d.ts.map +1 -0
  38. package/types/drawtools/src/methods/draw/emit-drawn-features.d.ts +20 -0
  39. package/types/drawtools/src/methods/draw/emit-drawn-features.d.ts.map +1 -0
  40. package/types/drawtools/src/methods/draw/handle-layer-id.d.ts +12 -0
  41. package/types/drawtools/src/methods/draw/handle-layer-id.d.ts.map +1 -0
  42. package/types/drawtools/src/methods/draw/index.d.ts +9 -0
  43. package/types/drawtools/src/methods/draw/index.d.ts.map +1 -0
  44. package/types/drawtools/src/methods/draw/init-layer.d.ts +13 -0
  45. package/types/drawtools/src/methods/draw/init-layer.d.ts.map +1 -0
  46. package/types/drawtools/src/methods/draw/init-selection.d.ts +10 -0
  47. package/types/drawtools/src/methods/draw/init-selection.d.ts.map +1 -0
  48. package/types/drawtools/src/methods/draw/on-draw-end.d.ts +9 -0
  49. package/types/drawtools/src/methods/draw/on-draw-end.d.ts.map +1 -0
  50. package/types/drawtools/src/methods/draw/start-drawing.d.ts +9 -0
  51. package/types/drawtools/src/methods/draw/start-drawing.d.ts.map +1 -0
  52. package/types/drawtools/src/methods/list/delete-feature.d.ts +11 -0
  53. package/types/drawtools/src/methods/list/delete-feature.d.ts.map +1 -0
  54. package/types/drawtools/src/methods/list/first-update.d.ts +8 -0
  55. package/types/drawtools/src/methods/list/first-update.d.ts.map +1 -0
  56. package/types/drawtools/src/methods/list/hover-feature.d.ts +10 -0
  57. package/types/drawtools/src/methods/list/hover-feature.d.ts.map +1 -0
  58. package/types/drawtools/src/methods/list/index.d.ts +5 -0
  59. package/types/drawtools/src/methods/list/index.d.ts.map +1 -0
  60. package/types/drawtools/src/methods/list/select-deselect-feature.d.ts +9 -0
  61. package/types/drawtools/src/methods/list/select-deselect-feature.d.ts.map +1 -0
  62. package/types/drawtools/src/style.eox.d.ts.map +1 -0
  63. package/types/{enums → feedback/src/enums}/index.d.ts.map +1 -1
  64. package/types/{enums → feedback/src/enums}/test.d.ts.map +1 -1
  65. package/types/{feedback-button.d.ts → feedback/src/feedback-button.d.ts} +13 -1
  66. package/types/feedback/src/feedback-button.d.ts.map +1 -0
  67. package/types/feedback/src/main.d.ts +67 -0
  68. package/types/feedback/src/main.d.ts.map +1 -0
  69. package/types/{style.d.ts.map → feedback/src/style.d.ts.map} +1 -1
  70. package/types/feedback/src/style.eox.d.ts +2 -0
  71. package/types/{style.eox.d.ts.map → feedback/src/style.eox.d.ts.map} +1 -1
  72. package/types/jsonform/src/custom-inputs/buttons.d.ts +20 -0
  73. package/types/jsonform/src/custom-inputs/buttons.d.ts.map +1 -0
  74. package/types/jsonform/src/custom-inputs/index.d.ts +5 -0
  75. package/types/jsonform/src/custom-inputs/index.d.ts.map +1 -0
  76. package/types/jsonform/src/custom-inputs/minmax.d.ts +16 -0
  77. package/types/jsonform/src/custom-inputs/minmax.d.ts.map +1 -0
  78. package/types/jsonform/src/custom-inputs/spatial/editor.d.ts +19 -0
  79. package/types/jsonform/src/custom-inputs/spatial/editor.d.ts.map +1 -0
  80. package/types/jsonform/src/custom-inputs/spatial/index.d.ts +3 -0
  81. package/types/jsonform/src/custom-inputs/spatial/index.d.ts.map +1 -0
  82. package/types/jsonform/src/custom-inputs/spatial/utils.d.ts +22 -0
  83. package/types/jsonform/src/custom-inputs/spatial/utils.d.ts.map +1 -0
  84. package/types/jsonform/src/custom-inputs/spatial/validator.d.ts +16 -0
  85. package/types/jsonform/src/custom-inputs/spatial/validator.d.ts.map +1 -0
  86. package/types/jsonform/src/enums/editor.d.ts +11 -0
  87. package/types/jsonform/src/enums/editor.d.ts.map +1 -0
  88. package/types/jsonform/src/enums/index.d.ts +4 -0
  89. package/types/jsonform/src/enums/index.d.ts.map +1 -0
  90. package/types/jsonform/src/enums/stories.d.ts +38 -0
  91. package/types/jsonform/src/enums/stories.d.ts.map +1 -0
  92. package/types/jsonform/src/enums/test.d.ts +4 -0
  93. package/types/jsonform/src/enums/test.d.ts.map +1 -0
  94. package/types/jsonform/src/helpers/editor.d.ts +18 -0
  95. package/types/jsonform/src/helpers/editor.d.ts.map +1 -0
  96. package/types/jsonform/src/helpers/index.d.ts +2 -0
  97. package/types/jsonform/src/helpers/index.d.ts.map +1 -0
  98. package/types/jsonform/src/main.d.ts +157 -0
  99. package/types/jsonform/src/main.d.ts.map +1 -0
  100. package/types/jsonform/src/style.d.ts +2 -0
  101. package/types/jsonform/src/style.d.ts.map +1 -0
  102. package/types/jsonform/src/style.eox.d.ts +2 -0
  103. package/types/jsonform/src/style.eox.d.ts.map +1 -0
  104. package/types/map/src/components/compare.d.ts +31 -0
  105. package/types/map/src/components/compare.d.ts.map +1 -0
  106. package/types/map/src/components/tooltip.d.ts +41 -0
  107. package/types/map/src/components/tooltip.d.ts.map +1 -0
  108. package/types/map/src/controls/controls.d.ts +21 -0
  109. package/types/map/src/controls/controls.d.ts.map +1 -0
  110. package/types/map/src/controls/geo-location.d.ts +41 -0
  111. package/types/map/src/controls/geo-location.d.ts.map +1 -0
  112. package/types/map/src/controls/loading-indicator.d.ts +20 -0
  113. package/types/map/src/controls/loading-indicator.d.ts.map +1 -0
  114. package/types/map/src/custom/layers/MapboxStyle.d.ts +13 -0
  115. package/types/map/src/custom/layers/MapboxStyle.d.ts.map +1 -0
  116. package/types/map/src/custom/sources/Cluster.d.ts +20 -0
  117. package/types/map/src/custom/sources/Cluster.d.ts.map +1 -0
  118. package/types/map/src/custom/sources/FlatGeoBuf.d.ts +28 -0
  119. package/types/map/src/custom/sources/FlatGeoBuf.d.ts.map +1 -0
  120. package/types/map/src/custom/sources/WMTSCapabilities.d.ts +35 -0
  121. package/types/map/src/custom/sources/WMTSCapabilities.d.ts.map +1 -0
  122. package/types/map/src/enums/index.d.ts +2 -0
  123. package/types/map/src/enums/index.d.ts.map +1 -0
  124. package/types/map/src/enums/map.d.ts +5 -0
  125. package/types/map/src/enums/map.d.ts.map +1 -0
  126. package/types/map/src/helpers/add-new-feature.d.ts +15 -0
  127. package/types/map/src/helpers/add-new-feature.d.ts.map +1 -0
  128. package/types/map/src/helpers/cancel-animation.d.ts +7 -0
  129. package/types/map/src/helpers/cancel-animation.d.ts.map +1 -0
  130. package/types/map/src/helpers/center.d.ts +12 -0
  131. package/types/map/src/helpers/center.d.ts.map +1 -0
  132. package/types/map/src/helpers/cluster-explode.d.ts +38 -0
  133. package/types/map/src/helpers/cluster-explode.d.ts.map +1 -0
  134. package/types/map/src/helpers/coordinates-roughly-equals.d.ts +12 -0
  135. package/types/map/src/helpers/coordinates-roughly-equals.d.ts.map +1 -0
  136. package/types/map/src/helpers/draw.d.ts +22 -0
  137. package/types/map/src/helpers/draw.d.ts.map +1 -0
  138. package/types/map/src/helpers/generate.d.ts +32 -0
  139. package/types/map/src/helpers/generate.d.ts.map +1 -0
  140. package/types/map/src/helpers/index.d.ts +17 -0
  141. package/types/map/src/helpers/index.d.ts.map +1 -0
  142. package/types/map/src/helpers/interactions.d.ts +16 -0
  143. package/types/map/src/helpers/interactions.d.ts.map +1 -0
  144. package/types/map/src/helpers/layer.d.ts +24 -0
  145. package/types/map/src/helpers/layer.d.ts.map +1 -0
  146. package/types/map/src/helpers/parse-feature.d.ts +8 -0
  147. package/types/map/src/helpers/parse-feature.d.ts.map +1 -0
  148. package/types/map/src/helpers/parse-text.d.ts +45 -0
  149. package/types/map/src/helpers/parse-text.d.ts.map +1 -0
  150. package/types/map/src/helpers/register-projection-from-code.d.ts +8 -0
  151. package/types/map/src/helpers/register-projection-from-code.d.ts.map +1 -0
  152. package/types/map/src/helpers/register-projection.d.ts +11 -0
  153. package/types/map/src/helpers/register-projection.d.ts.map +1 -0
  154. package/types/map/src/helpers/select.d.ts +95 -0
  155. package/types/map/src/helpers/select.d.ts.map +1 -0
  156. package/types/map/src/helpers/tile-grid.d.ts +10 -0
  157. package/types/map/src/helpers/tile-grid.d.ts.map +1 -0
  158. package/types/map/src/helpers/transform.d.ts +19 -0
  159. package/types/map/src/helpers/transform.d.ts.map +1 -0
  160. package/types/map/src/layers.d.ts +125 -0
  161. package/types/map/src/layers.d.ts.map +1 -0
  162. package/types/map/src/main.d.ts +459 -0
  163. package/types/map/src/main.d.ts.map +1 -0
  164. package/types/map/src/methods/map/add-update-layer.d.ts +13 -0
  165. package/types/map/src/methods/map/add-update-layer.d.ts.map +1 -0
  166. package/types/map/src/methods/map/animate-to-state.d.ts +7 -0
  167. package/types/map/src/methods/map/animate-to-state.d.ts.map +1 -0
  168. package/types/map/src/methods/map/first-updated.d.ts +9 -0
  169. package/types/map/src/methods/map/first-updated.d.ts.map +1 -0
  170. package/types/map/src/methods/map/getters.d.ts +22 -0
  171. package/types/map/src/methods/map/getters.d.ts.map +1 -0
  172. package/types/map/src/methods/map/index.d.ts +7 -0
  173. package/types/map/src/methods/map/index.d.ts.map +1 -0
  174. package/types/map/src/methods/map/remove.d.ts +22 -0
  175. package/types/map/src/methods/map/remove.d.ts.map +1 -0
  176. package/types/map/src/methods/map/setters.d.ts +82 -0
  177. package/types/map/src/methods/map/setters.d.ts.map +1 -0
  178. package/types/map/src/plugins/globe/index.d.ts +6 -0
  179. package/types/map/src/plugins/globe/index.d.ts.map +1 -0
  180. package/types/map/src/plugins/globe/methods.d.ts +8 -0
  181. package/types/map/src/plugins/globe/methods.d.ts.map +1 -0
  182. package/types/map/src/plugins/globe/openglobus.d.ts +16 -0
  183. package/types/map/src/plugins/globe/openglobus.d.ts.map +1 -0
  184. package/types/map/src/types.d.ts +178 -0
  185. package/types/map/src/types.d.ts.map +1 -0
  186. package/types/feedback-button.d.ts.map +0 -1
  187. package/types/main.d.ts +0 -25
  188. package/types/main.d.ts.map +0 -1
  189. /package/types/{style.eox.d.ts → drawtools/src/style.eox.d.ts} +0 -0
  190. /package/types/{enums → feedback/src/enums}/index.d.ts +0 -0
  191. /package/types/{enums → feedback/src/enums}/test.d.ts +0 -0
  192. /package/types/{style.d.ts → feedback/src/style.d.ts} +0 -0
@@ -0,0 +1,9 @@
1
+ export default selectAndDeselectFeature;
2
+ /**
3
+ * Handles selecting and deselecting a feature on the map.
4
+ *
5
+ * @param {import("ol").Feature} feature - The selected feature.
6
+ * @param {import("../../components/list").EOxDrawToolsList} EoxDrawToolList - The list of drawn features.
7
+ */
8
+ declare function selectAndDeselectFeature(feature: import("ol").Feature, EoxDrawToolList: import("../../components/list").EOxDrawToolsList): void;
9
+ //# sourceMappingURL=select-deselect-feature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-deselect-feature.d.ts","sourceRoot":"","sources":["../../../../../../drawtools/src/methods/list/select-deselect-feature.js"],"names":[],"mappings":";AAEA;;;;;GAKG;AACH,mDAHW,OAAO,IAAI,EAAE,OAAO,mBACpB,OAAO,uBAAuB,EAAE,gBAAgB,QA2B1D"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.eox.d.ts","sourceRoot":"","sources":["../../../../drawtools/src/style.eox.js"],"names":[],"mappings":"AAKA,8BAYE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/enums/index.js"],"names":[],"mappings":""}
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":["../../src/enums/test.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../../../src/enums/test.js"],"names":[],"mappings":""}
@@ -4,8 +4,20 @@
4
4
  */
5
5
  export class EOxFeedbackButton extends HTMLElement {
6
6
  static observedAttributes: string[];
7
- modal: HTMLElement;
7
+ /**
8
+ * @type {import("./main").EOxFeedback}
9
+ */
10
+ modal: import("./main").EOxFeedback;
8
11
  position: string;
12
+ _schema: import("@eox/jsonform").JsonSchema;
13
+ /**
14
+ * @param {import("@eox/jsonform").JsonSchema|null} newSchema
15
+ */
16
+ set schema(newSchema: import("@eox/jsonform").JsonSchema | null);
17
+ /**
18
+ * @returns {import("@eox/jsonform").JsonSchema|null}
19
+ */
20
+ get schema(): import("@eox/jsonform").JsonSchema | null;
9
21
  attributeChangedCallback(name: any, oldValue: any, newValue: any): void;
10
22
  connectedCallback(): void;
11
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,4CAAmB;IAUrB;;OAEG;IACH,sBAFW,OAAO,eAAe,EAAE,UAAU,GAAC,IAAI,EAOjD;IAfD;;OAEG;IACH,cAFa,OAAO,eAAe,EAAE,UAAU,GAAC,IAAI,CAInD;IAYD,wEAOC;IAED,0BAKC;IAED,6BAIC;IAED,sBAiBC;IAED,eAuBC;CACF"}
@@ -0,0 +1,67 @@
1
+ /**
2
+ * The `eox-feedback` element provides a modal dialog for collecting user feedback. It supports screenshot capture, customizable endpoint, and flexible styling.
3
+ * The feedback modal (`<eox-feedback></eox-feedback>`) can be included in the DOM directly or via a floating button (`<eox-feedback-button></eox-feedback-button>`), which can be positioned in any corner of the viewport.
4
+ *
5
+ * @element eox-feedback
6
+ *
7
+ * @attr {string} endpoint - The endpoint to send the feedback to as POST message.
8
+ * @attr {string} unstyled - If provided, the element will not be styled with EOX styles.
9
+ *
10
+ * @property {string} endpoint - The endpoint to send the feedback to as POST message.
11
+ * @property {string} unstyled - If provided, the element will not be styled with EOX styles.
12
+ * @property {import("@eox/jsonform").JsonSchema} schema - The JSON schema for the feedback form (option). Requires `eox-jsonform` to be imported.
13
+ *
14
+ * @fires close - The modal was closed.
15
+ * @fires submit - The feedback was submitted. The `CustomEvent.detail` contains the FormData object.
16
+ */
17
+ export class EOxFeedback extends HTMLElement {
18
+ static observedAttributes: string[];
19
+ /** @private */
20
+ private includeScreenshot;
21
+ /** @private */
22
+ private areaSelection;
23
+ /** @private */
24
+ private regionScreenshot;
25
+ /** @private */
26
+ private screenShotFile;
27
+ /** @private */
28
+ private _endpoint;
29
+ /** @private */
30
+ private _schema;
31
+ /** @private */
32
+ private _submitted;
33
+ /**
34
+ * @param {string} val
35
+ */
36
+ set endpoint(val: string);
37
+ /**
38
+ * @returns {string}
39
+ */
40
+ get endpoint(): string;
41
+ /**
42
+ * @param {import("@eox/jsonform").JsonSchema|null} newSchema
43
+ */
44
+ set schema(newSchema: import("@eox/jsonform").JsonSchema | null);
45
+ /**
46
+ * @returns {import("@eox/jsonform").JsonSchema|null}
47
+ */
48
+ get schema(): import("@eox/jsonform").JsonSchema | null;
49
+ attributeChangedCallback(name: any, oldVal: any, newVal: any): void;
50
+ connectedCallback(): void;
51
+ disconnectedCallback(): void;
52
+ /** @private */
53
+ private onKeyboardInput;
54
+ /** @private */
55
+ private onTextareaInput;
56
+ /** @private */
57
+ private onJsonFormChange;
58
+ /** @private */
59
+ private onToggleScreenshot;
60
+ /** @private */
61
+ private onSubmit;
62
+ /** @private */
63
+ private onCancel;
64
+ /** @private */
65
+ private render;
66
+ }
67
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main.js"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;GAeG;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,OAAO,eAAe,EAAE,UAAU,GAAC,IAAI,EAKjD;IAbD;;OAEG;IACH,cAFa,OAAO,eAAe,EAAE,UAAU,GAAC,IAAI,CAInD;IAUD,oEAOC;IAED,0BA4BC;IAED,6BAsBC;IAED,eAAe;IACf,wBAUC;IAED,eAAe;IACf,wBAQC;IAED,eAAe;IACf,yBAYC;IAED,eAAe;IACf,2BAiEC;IAED,eAAe;IACf,iBA+EC;IAED,eAAe;IACf,iBAMC;IAED,eAAe;IACf,eAwGC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../src/style.js"],"names":[],"mappings":"AAAA,yBACE"}
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../src/style.js"],"names":[],"mappings":"AAAA,yBACE"}
@@ -0,0 +1,2 @@
1
+ export const styleEOX: string;
2
+ //# sourceMappingURL=style.eox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"style.eox.d.ts","sourceRoot":"","sources":["../src/style.eox.js"],"names":[],"mappings":"AAKA,8BAEE"}
1
+ {"version":3,"file":"style.eox.d.ts","sourceRoot":"","sources":["../../../src/style.eox.js"],"names":[],"mappings":"AAKA,8BAEE"}
@@ -0,0 +1,20 @@
1
+ export class ButtonsEditor {
2
+ register(): void;
3
+ unregister(): void;
4
+ build(): void;
5
+ header: any;
6
+ label: any;
7
+ description: any;
8
+ infoButton: any;
9
+ input: HTMLInputElement;
10
+ buttonContainer: HTMLElement;
11
+ buttons: any[];
12
+ control: any;
13
+ setValue(value: any): void;
14
+ value: any;
15
+ enable(): void;
16
+ disable(always_disabled: any): void;
17
+ always_disabled: boolean;
18
+ destroy(): void;
19
+ }
20
+ //# sourceMappingURL=buttons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buttons.d.ts","sourceRoot":"","sources":["../../../../../jsonform/src/custom-inputs/buttons.js"],"names":[],"mappings":"AAEA;IACE,iBAEC;IAED,mBAEC;IAED,cA6EC;IAvEG,YAGC;IAHa,WAGb;IAID,iBAEC;IAID,gBAEC;IAGH,wBAA4C;IAI5C,6BAAoD;IAGpD,eAAiB;IAiCjB,aAKC;IAUH,2BAqBC;IAhBC,WAAkB;IAkBpB,eAKC;IAED,oCAIC;IAHsB,yBAA2B;IAKlD,gBAMC;CACF"}
@@ -0,0 +1,5 @@
1
+ export function addCustomInputs(startVals: {
2
+ [key: string]: any;
3
+ }, customEditorInterfaces: any[]): void;
4
+ export default addCustomInputs;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../jsonform/src/custom-inputs/index.js"],"names":[],"mappings":"AAoKO,2CAHI;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAC,uCAuB9B"}
@@ -0,0 +1,16 @@
1
+ export class MinMaxEditor {
2
+ register(): void;
3
+ unregister(): void;
4
+ build(): void;
5
+ header: any;
6
+ label: any;
7
+ description: any;
8
+ infoButton: any;
9
+ input: HTMLInputElement;
10
+ control: any;
11
+ value: {
12
+ [x: string]: any;
13
+ };
14
+ destroy(): void;
15
+ }
16
+ //# sourceMappingURL=minmax.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"minmax.d.ts","sourceRoot":"","sources":["../../../../../jsonform/src/custom-inputs/minmax.js"],"names":[],"mappings":"AAiBA;IACE,iBAEC;IAED,mBAEC;IAGD,cA+EC;IAtEG,YAGC;IAHa,WAGb;IAED,iBAEC;IAED,gBAEC;IAyBH,wBAAkB;IAElB,aAKC;IAiBK;;MAGC;IAUT,gBAQC;CACF"}
@@ -0,0 +1,19 @@
1
+ export class SpatialEditor {
2
+ register(): void;
3
+ unregister(): void;
4
+ build(): void;
5
+ header: any;
6
+ label: any;
7
+ description: any;
8
+ infoButton: any;
9
+ input: import("@eox/drawtools").EOxDrawTools & {
10
+ disabled: boolean;
11
+ };
12
+ control: any;
13
+ value: any;
14
+ refreshValue(): void;
15
+ showValidationErrors(errors: any): void;
16
+ previous_error_setting: any;
17
+ destroy(): void;
18
+ }
19
+ //# sourceMappingURL=editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../../../../jsonform/src/custom-inputs/spatial/editor.js"],"names":[],"mappings":"AAgBA;IACE,iBAEC;IAED,mBAEC;IAGD,cA8PC;IAhPG,YAGC;IAHa,WAGb;IAED,iBAEC;IAED,gBAEC;IAwGH;;MAAwB;IAExB,aAKC;IAsCS,WAAiB;IAkF7B,qBAOC;IAED,wCAsBC;IAfC,4BAAiE;IAkBnE,gBAWC;CACF"}
@@ -0,0 +1,3 @@
1
+ export { SpatialEditor } from "./editor";
2
+ export { default as spatialValidatorCreator } from "./validator";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../jsonform/src/custom-inputs/spatial/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Set multiple attributes to an element
3
+ *
4
+ * @param {Element} element - The DOM element to set attributes on
5
+ * @param {{[key: string]: any}} attributes - The attributes to set on the element
6
+ */
7
+ export function setAttributesAndProperties(element: Element, attributes: {
8
+ [key: string]: any;
9
+ }): void;
10
+ export function isSelection(schema: any): boolean;
11
+ export function isPolygon(schema: any): boolean;
12
+ export function isPoint(schema: any): boolean;
13
+ export function isBox(schema: any): boolean;
14
+ export function isLine(schema: any): boolean;
15
+ export function isWKT(schema: any): boolean;
16
+ export function isGeoJSON(schema: any): boolean;
17
+ export function isMulti(schema: any): boolean;
18
+ export function isSupported(schema: any): boolean;
19
+ export function satisfiesType(val: any, type: string): boolean;
20
+ export function bboxesToFeatures(bboxes: any): any;
21
+ export function valueToFeatureCollection(value: any, schema: any): any;
22
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../jsonform/src/custom-inputs/spatial/utils.js"],"names":[],"mappings":"AA0DA;;;;;GAKG;AACH,oDAHW,OAAO,cACP;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAC,QAU9B;AAnEM,kDACoD;AAKpD,gDAC2C;AAK3C,8CAAwE;AAKxE,4CACsD;AAKtD,6CAAqE;AAKrE,4CAAgD;AAKhD,gDAAwD;AAKxD,8CAGJ;AAKI,kDAKS;AA0BT,mCAJI,GAAC,QACD,MAAM,GACJ,OAAO,CAwBnB;AAKM,mDAGN;AAKM,uEA2CN"}
@@ -0,0 +1,16 @@
1
+ export default spatialValidatorCreator;
2
+ /**
3
+ * @param {{
4
+ * type?: string
5
+ * format: string
6
+ * func: Record<string,any> & { new (): any }
7
+ * }[]} inputs
8
+ **/
9
+ declare function spatialValidatorCreator(inputs: {
10
+ type?: string;
11
+ format: string;
12
+ func: Record<string, any> & {
13
+ new (): any;
14
+ };
15
+ }[]): (schema: any, value: any, path: any) => any[];
16
+ //# sourceMappingURL=validator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validator.d.ts","sourceRoot":"","sources":["../../../../../../jsonform/src/custom-inputs/spatial/validator.js"],"names":[],"mappings":";AAaA;;;;;;IAMI;AACJ,iDANY;IACP,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAC,MAAM,EAAC,GAAG,CAAC,GAAG;QAAE,QAAQ,GAAG,CAAA;KAAE,CAAA;CAC3C,EAAE,IAUa,QAJN,GAIY,EAAE,OAHd,GAGmB,EAAE,MAFrB,GAEyB,WAqGrC"}
@@ -0,0 +1,11 @@
1
+ export namespace FALLBACK_SCHEMA {
2
+ let type: string;
3
+ namespace properties {
4
+ namespace fallback {
5
+ let format: string;
6
+ let title: string;
7
+ let description: string;
8
+ }
9
+ }
10
+ }
11
+ //# sourceMappingURL=editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../../../jsonform/src/enums/editor.js"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export { TEST_SELECTORS } from "./test";
2
+ export { FALLBACK_SCHEMA } from "./editor";
3
+ export { STORIES_BlUE_VECTOR_LAYERS, STORIES_GREY_VECTOR_LAYERS, STORIES_MAP_STYLE } from "./stories";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../jsonform/src/enums/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,38 @@
1
+ export const STORIES_MAP_STYLE: "width: 100%; height: 300px; margin: 7px;";
2
+ export const STORIES_GREY_VECTOR_LAYERS: {
3
+ type: string;
4
+ background: string;
5
+ properties: {
6
+ id: string;
7
+ };
8
+ source: {
9
+ type: string;
10
+ url: string;
11
+ format: string;
12
+ attributions: string;
13
+ };
14
+ style: {
15
+ "stroke-color": string;
16
+ "stroke-width": number;
17
+ "fill-color": string;
18
+ };
19
+ }[];
20
+ export const STORIES_BlUE_VECTOR_LAYERS: {
21
+ type: string;
22
+ background: string;
23
+ properties: {
24
+ id: string;
25
+ };
26
+ source: {
27
+ type: string;
28
+ url: string;
29
+ format: string;
30
+ attributions: string;
31
+ };
32
+ style: {
33
+ "stroke-color": string;
34
+ "stroke-width": number;
35
+ "fill-color": string;
36
+ };
37
+ }[];
38
+ //# sourceMappingURL=stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stories.d.ts","sourceRoot":"","sources":["../../../../../jsonform/src/enums/stories.js"],"names":[],"mappings":"AAAA,gCAAiC,0CAA0C,CAAC;AAE5E;;;;;;;;;;;;;;;;;IAmBE;AAEF;;;;;;;;;;;;;;;;;IAmBE"}
@@ -0,0 +1,4 @@
1
+ export namespace TEST_SELECTORS {
2
+ let jsonForm: string;
3
+ }
4
+ //# sourceMappingURL=test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../../../../jsonform/src/enums/test.js"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Fetch properties from a URL and return them
3
+ *
4
+ * @typedef {JSON & {properties: object}} JsonSchema
5
+ * @param {JsonSchema | String} property - The property to fetch or parse
6
+ * @returns {Promise<JsonSchema | String>} - The parsed property or fetched schema
7
+ */
8
+ export function parseProperty(property: JsonSchema | string): Promise<JsonSchema | string>;
9
+ export function createEditor(element: import("../main").EOxJSONForm): JSONEditor;
10
+ export function transformLinks(element: import("../main").EOxJSONForm): void;
11
+ export function initShowOptInElement(element: import("../main").EOxJSONForm): void;
12
+ /**
13
+ * Fetch properties from a URL and return them
14
+ */
15
+ export type JsonSchema = JSON & {
16
+ properties: object;
17
+ };
18
+ //# sourceMappingURL=editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../../../jsonform/src/helpers/editor.js"],"names":[],"mappings":"AAqbA;;;;;;GAMG;AACH,wCAHW,UAAU,SAAS,GACjB,OAAO,CAAC,UAAU,SAAS,CAAC,CAiBxC;AAvaM,sCAHI,OAAO,SAAS,EAAE,WAAW,GAC3B,UAAU,CAiZtB;AAqEM,wCAFE,OAAO,SAAS,EAAE,WAAW,QAYrC;AAsBM,8CAFI,OAAO,SAAS,EAAE,WAAW,QAiGvC;;;;yBA/LY,IAAI,GAAG;IAAC,UAAU,EAAE,MAAM,CAAA;CAAC"}
@@ -0,0 +1,2 @@
1
+ export { createEditor, parseProperty, transformLinks, initShowOptInElement } from "./editor";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../jsonform/src/helpers/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,157 @@
1
+ /**
2
+ * `eox-jsonform` is a flexible and extensible web component for rendering dynamic forms based on JSON schema definitions.
3
+ * It is based on [JSON Editor](https://github.com/json-editor/json-editor) and extends its functionality to support various advanced features.
4
+ * Also check out the [JSON Editor documentation](https://github.com/json-editor/json-editor?tab=readme-ov-file#options) for more details on the available options and configurations.
5
+ *
6
+ * Features:
7
+ * - Renders forms from JSON schema, supporting complex nested structures and custom validation.
8
+ * - All properties and event handlers are passed via args, enabling dynamic configuration and integration.
9
+ * - Supports custom editor interfaces for advanced input types and external editor integration (e.g., Ace, Markdown, spatial drawtools).
10
+ * - Handles spatial inputs (bounding box, polygons, points, lines) and outputs in various formats (GeoJSON, WKT).
11
+ * - Allows toggling and opt-in/optional properties, with dynamic visibility and value updates.
12
+ * - Can load schema and values from external URLs, supporting async loading and ready events.
13
+ * - Integrates with `eox-map` for spatial feature selection when required.
14
+ * - Supports unstyled rendering for custom design integration.
15
+ *
16
+ * See the stories for usage examples covering validation, custom editors, spatial inputs, opt-in/optional properties, external loading, and more.
17
+ *
18
+ * @typedef {JSON & {properties: object}} JsonSchema
19
+ * @element eox-jsonform
20
+ */
21
+ export class EOxJSONForm extends LitElement {
22
+ static properties: {
23
+ schema: {
24
+ attribute: boolean;
25
+ type: ObjectConstructor;
26
+ };
27
+ value: {
28
+ attribute: boolean;
29
+ type: ObjectConstructor;
30
+ };
31
+ defaults: {
32
+ attribute: boolean;
33
+ type: ObjectConstructor;
34
+ };
35
+ options: {
36
+ attribute: boolean;
37
+ type: ObjectConstructor;
38
+ };
39
+ customEditorInterfaces: {
40
+ attribute: boolean;
41
+ type: ArrayConstructor;
42
+ };
43
+ noShadow: {
44
+ attribute: string;
45
+ type: BooleanConstructor;
46
+ };
47
+ propertiesToggle: {
48
+ attribute: string;
49
+ type: BooleanConstructor;
50
+ };
51
+ unstyled: {
52
+ type: BooleanConstructor;
53
+ };
54
+ };
55
+ /**
56
+ * Setter for the JSON schema used to render the form
57
+ *
58
+ * @param {JsonSchema} newSchema
59
+ */
60
+ set schema(newSchema: JsonSchema);
61
+ /**
62
+ * Getter for the JSON schema used to render the form
63
+ *
64
+ * @return {JsonSchema | String}
65
+ */
66
+ get schema(): JsonSchema | string;
67
+ /**
68
+ * Setter for the JSON value of the form
69
+ *
70
+ * @param {JsonSchema} newVal
71
+ */
72
+ set value(newVal: JsonSchema);
73
+ /**
74
+ * Getter for the JSON value of the form
75
+ */
76
+ get value(): JsonSchema;
77
+ /**
78
+ * Default values for the JSONEditor instance
79
+ *
80
+ * @type {object}
81
+ */
82
+ defaults: object;
83
+ /**
84
+ * Options for the form editor
85
+ *
86
+ * @type {object}
87
+ */
88
+ options: object;
89
+ /**
90
+ * Renders the element without a shadow root
91
+ *
92
+ * @type {Boolean}
93
+ */
94
+ noShadow: boolean;
95
+ /**
96
+ * Shows a toggle for showing/hiding object properties editing buttons
97
+ * To be used in combination with `options.disable_properties = false`
98
+ *
99
+ * @type {Boolean}
100
+ */
101
+ propertiesToggle: boolean;
102
+ /**
103
+ * Render the element without additional styles
104
+ *
105
+ * @type {Boolean}
106
+ */
107
+ unstyled: boolean;
108
+ /**
109
+ * List of custom editor interface
110
+ * Read more about the implementation of custom editor interfaces here:
111
+ * https://github.com/json-editor/json-editor/blob/master/docs/custom-editor.html
112
+ *
113
+ * @type {Array}
114
+ */
115
+ customEditorInterfaces: any[];
116
+ /**
117
+ * Getter for the JSONEditor instance
118
+ */
119
+ get editor(): {
120
+ [key: string]: any;
121
+ };
122
+ _schema: string | import("./helpers/editor").JsonSchema | JsonSchema;
123
+ _value: any;
124
+ /**
125
+ * Lifecycle method called when the element is updated
126
+ *
127
+ * @param {import("lit").PropertyValues} changedProperties
128
+ */
129
+ updated(changedProperties: import("lit").PropertyValues): Promise<void>;
130
+ /**
131
+ * Renders the component's HTML and CSS
132
+ */
133
+ render(): import("lit-html").TemplateResult<1>;
134
+ #private;
135
+ }
136
+ /**
137
+ * `eox-jsonform` is a flexible and extensible web component for rendering dynamic forms based on JSON schema definitions.
138
+ * It is based on [JSON Editor](https://github.com/json-editor/json-editor) and extends its functionality to support various advanced features.
139
+ * Also check out the [JSON Editor documentation](https://github.com/json-editor/json-editor?tab=readme-ov-file#options) for more details on the available options and configurations.
140
+ *
141
+ * Features:
142
+ * - Renders forms from JSON schema, supporting complex nested structures and custom validation.
143
+ * - All properties and event handlers are passed via args, enabling dynamic configuration and integration.
144
+ * - Supports custom editor interfaces for advanced input types and external editor integration (e.g., Ace, Markdown, spatial drawtools).
145
+ * - Handles spatial inputs (bounding box, polygons, points, lines) and outputs in various formats (GeoJSON, WKT).
146
+ * - Allows toggling and opt-in/optional properties, with dynamic visibility and value updates.
147
+ * - Can load schema and values from external URLs, supporting async loading and ready events.
148
+ * - Integrates with `eox-map` for spatial feature selection when required.
149
+ * - Supports unstyled rendering for custom design integration.
150
+ *
151
+ * See the stories for usage examples covering validation, custom editors, spatial inputs, opt-in/optional properties, external loading, and more.
152
+ */
153
+ export type JsonSchema = JSON & {
154
+ properties: object;
155
+ };
156
+ import { LitElement } from "lit";
157
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../jsonform/src/main.js"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;;GAmBG;AACH;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MASE;IAuFF;;;;OAIG;IACH,sBAFW,UAAU,EAOpB;IAnBD;;;;OAIG;IACH,cAFY,UAAU,SAAS,CAI9B;IAqBD;;;;OAIG;IACH,kBAFW,UAAU,EAOpB;IAjBD;;OAEG;IACH,aAOW,UAAU,CALpB;IA/EC;;;;OAIG;IACH,UAFU,MAAM,CAEE;IAElB;;;;OAIG;IACH,SAFU,MAAM,CAEC;IAEjB;;;;OAIG;IACH,kBAAqB;IAErB;;;;;OAKG;IACH,0BAA6B;IAE7B;;;;OAIG;IACH,kBAAqB;IAErB;;;;;;OAMG;IACH,8BAAgC;IAGlC;;OAEG;IACH;;MAEC;IAoBC,qEAAwB;IAmBxB,YAAoB;IAgEtB;;;;OAIG;IACH,2BAFW,OAAO,KAAK,EAAE,cAAc,iBAsBtC;IASD;;OAEG;IACH,+CAqEC;;CACF;;;;;;;;;;;;;;;;;;yBA3SY,IAAI,GAAG;IAAC,UAAU,EAAE,MAAM,CAAA;CAAC;2BA9BP,KAAK"}
@@ -0,0 +1,2 @@
1
+ export const style: "\n form.hide-errors .alert-danger,\n form.hide-errors .error-msg,\n form.hide-errors .invalid-feedback,\n form.hide-errors .text-danger,\n form.hide-errors div[style*=\"color: red\"],\n form.hide-errors div[style*=\"color:red\"] {\n display: none !important;\n }\n";
2
+ //# sourceMappingURL=style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../jsonform/src/style.js"],"names":[],"mappings":"AAAA,ySASE"}
@@ -0,0 +1,2 @@
1
+ export const styleEOX: string;
2
+ //# sourceMappingURL=style.eox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.eox.d.ts","sourceRoot":"","sources":["../../../../jsonform/src/style.eox.js"],"names":[],"mappings":"AAKA,8BA+SE"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * A custom element for comparing two map layers or images using a slider.
3
+ * This component creates a split-screen view with an adjustable slider to compare two images or layers.
4
+ */
5
+ export class EOxMapCompare extends LitElement {
6
+ static get properties(): {
7
+ value: {
8
+ attribute: string;
9
+ type: NumberConstructor;
10
+ };
11
+ enabled: {
12
+ attribute: string;
13
+ type: StringConstructor;
14
+ };
15
+ };
16
+ /**
17
+ * The current position of the comparison slider (0 to 100).
18
+ * @type {number}
19
+ */
20
+ value: number;
21
+ /**
22
+ * Whether the comparison is enabled and which part is visible.
23
+ * Accepts values: "first", "second", or "true" (default).
24
+ * @type {string}
25
+ */
26
+ enabled: string;
27
+ render(): import("lit-html").TemplateResult<1>;
28
+ #private;
29
+ }
30
+ import { LitElement } from "lit";
31
+ //# sourceMappingURL=compare.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["../../../../../map/src/components/compare.js"],"names":[],"mappings":"AAGA;;;GAGG;AACH;IACE;;;;;;;;;MAKC;IAKC;;;OAGG;IACH,OAFU,MAAM,CAED;IAEf;;;;OAIG;IACH,SAFU,MAAM,CAEK;IAYvB,+CA+JC;;CACF;2BAzMgC,KAAK"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * A custom element that serves as a tooltip for the map.
3
+ * Displays information about map features in a styled format.
4
+ */
5
+ export class EOxMapTooltip extends LitElement {
6
+ static get properties(): {
7
+ feature: {
8
+ attribute: boolean;
9
+ property: boolean;
10
+ type: ObjectConstructor;
11
+ };
12
+ propertyTransform: {
13
+ attribute: boolean;
14
+ property: boolean;
15
+ type: FunctionConstructor;
16
+ };
17
+ };
18
+ /**
19
+ * The rendered feature.
20
+ *
21
+ * @type {import("ol/Feature").default | import("ol/render/Feature").default}
22
+ */
23
+ feature: import("ol/Feature").default | import("ol/render/Feature").default;
24
+ /**
25
+ * A function to transform properties before rendering.
26
+ *
27
+ * @param {{ key: string; value: unknown }} property
28
+ * @param {import("ol/Feature").default | import("ol/render/Feature").default} _feature
29
+ */
30
+ propertyTransform: (property: {
31
+ key: string;
32
+ value: unknown;
33
+ }, _feature: import("ol/Feature").default | import("ol/render/Feature").default) => {
34
+ key: string;
35
+ value: unknown;
36
+ };
37
+ render(): import("lit-html").TemplateResult<1> | typeof nothing;
38
+ }
39
+ import { LitElement } from "lit";
40
+ import { nothing } from "lit";
41
+ //# sourceMappingURL=tooltip.d.ts.map