@mapsight/ui 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1040) hide show
  1. package/README.md +3 -0
  2. package/dist/components/app.d.ts +6 -0
  3. package/dist/components/app.d.ts.map +1 -0
  4. package/dist/components/app.js +68 -0
  5. package/dist/components/app.js.map +1 -0
  6. package/dist/components/close-overlay-button.d.ts +8 -0
  7. package/dist/components/close-overlay-button.d.ts.map +1 -0
  8. package/dist/components/close-overlay-button.js +7 -0
  9. package/dist/components/close-overlay-button.js.map +1 -0
  10. package/dist/components/feature-details-content/feature-details-content-inner.d.ts +18 -0
  11. package/dist/components/feature-details-content/feature-details-content-inner.d.ts.map +1 -0
  12. package/dist/components/feature-details-content/feature-details-content-inner.js +47 -0
  13. package/dist/components/feature-details-content/feature-details-content-inner.js.map +1 -0
  14. package/dist/components/feature-details-content/feature-details-content.d.ts +9 -0
  15. package/dist/components/feature-details-content/feature-details-content.d.ts.map +1 -0
  16. package/dist/components/feature-details-content/feature-details-content.js +99 -0
  17. package/dist/components/feature-details-content/feature-details-content.js.map +1 -0
  18. package/dist/components/feature-details-content/index.d.ts +14 -0
  19. package/dist/components/feature-details-content/index.d.ts.map +1 -0
  20. package/dist/components/feature-details-content/index.js +11 -0
  21. package/dist/components/feature-details-content/index.js.map +1 -0
  22. package/dist/components/feature-details-content/share-feature-link-modal.d.ts +8 -0
  23. package/dist/components/feature-details-content/share-feature-link-modal.d.ts.map +1 -0
  24. package/dist/components/feature-details-content/share-feature-link-modal.js +14 -0
  25. package/dist/components/feature-details-content/share-feature-link-modal.js.map +1 -0
  26. package/dist/components/feature-list/content.d.ts +3 -0
  27. package/dist/components/feature-list/content.d.ts.map +1 -0
  28. package/dist/components/feature-list/content.js +17 -0
  29. package/dist/components/feature-list/content.js.map +1 -0
  30. package/dist/components/feature-list/context.d.ts +16 -0
  31. package/dist/components/feature-list/context.d.ts.map +1 -0
  32. package/dist/components/feature-list/context.js +13 -0
  33. package/dist/components/feature-list/context.js.map +1 -0
  34. package/dist/components/feature-list/empty-message.d.ts +7 -0
  35. package/dist/components/feature-list/empty-message.d.ts.map +1 -0
  36. package/dist/components/feature-list/empty-message.js +10 -0
  37. package/dist/components/feature-list/empty-message.js.map +1 -0
  38. package/dist/components/feature-list/filter.d.ts +4 -0
  39. package/dist/components/feature-list/filter.d.ts.map +1 -0
  40. package/dist/components/feature-list/filter.js +26 -0
  41. package/dist/components/feature-list/filter.js.map +1 -0
  42. package/dist/components/feature-list/footer.d.ts +6 -0
  43. package/dist/components/feature-list/footer.d.ts.map +1 -0
  44. package/dist/components/feature-list/footer.js +6 -0
  45. package/dist/components/feature-list/footer.js.map +1 -0
  46. package/dist/components/feature-list/grouped-content.d.ts +8 -0
  47. package/dist/components/feature-list/grouped-content.d.ts.map +1 -0
  48. package/dist/components/feature-list/grouped-content.js +31 -0
  49. package/dist/components/feature-list/grouped-content.js.map +1 -0
  50. package/dist/components/feature-list/header.d.ts +6 -0
  51. package/dist/components/feature-list/header.d.ts.map +1 -0
  52. package/dist/components/feature-list/header.js +7 -0
  53. package/dist/components/feature-list/header.js.map +1 -0
  54. package/dist/components/feature-list/hooks/useAutoloadFeatureSource.d.ts +2 -0
  55. package/dist/components/feature-list/hooks/useAutoloadFeatureSource.d.ts.map +1 -0
  56. package/dist/components/feature-list/hooks/useAutoloadFeatureSource.js +14 -0
  57. package/dist/components/feature-list/hooks/useAutoloadFeatureSource.js.map +1 -0
  58. package/dist/components/feature-list/hooks/useFeatureListFeatureSource.d.ts +10 -0
  59. package/dist/components/feature-list/hooks/useFeatureListFeatureSource.d.ts.map +1 -0
  60. package/dist/components/feature-list/hooks/useFeatureListFeatureSource.js +14 -0
  61. package/dist/components/feature-list/hooks/useFeatureListFeatureSource.js.map +1 -0
  62. package/dist/components/feature-list/hooks/useFeatureListItemGroups.d.ts +15 -0
  63. package/dist/components/feature-list/hooks/useFeatureListItemGroups.d.ts.map +1 -0
  64. package/dist/components/feature-list/hooks/useFeatureListItemGroups.js +69 -0
  65. package/dist/components/feature-list/hooks/useFeatureListItemGroups.js.map +1 -0
  66. package/dist/components/feature-list/hooks/useFeatureListState.d.ts +16 -0
  67. package/dist/components/feature-list/hooks/useFeatureListState.d.ts.map +1 -0
  68. package/dist/components/feature-list/hooks/useFeatureListState.js +43 -0
  69. package/dist/components/feature-list/hooks/useFeatureListState.js.map +1 -0
  70. package/dist/components/feature-list/hooks/useKeyboardNavigation.d.ts +14 -0
  71. package/dist/components/feature-list/hooks/useKeyboardNavigation.d.ts.map +1 -0
  72. package/dist/components/feature-list/hooks/useKeyboardNavigation.js +90 -0
  73. package/dist/components/feature-list/hooks/useKeyboardNavigation.js.map +1 -0
  74. package/dist/components/feature-list/hooks/useMakeHeaderSticky.d.ts +2 -0
  75. package/dist/components/feature-list/hooks/useMakeHeaderSticky.d.ts.map +1 -0
  76. package/dist/components/feature-list/hooks/useMakeHeaderSticky.js +26 -0
  77. package/dist/components/feature-list/hooks/useMakeHeaderSticky.js.map +1 -0
  78. package/dist/components/feature-list/hooks/usePaginatedFilteredFeatures.d.ts +11 -0
  79. package/dist/components/feature-list/hooks/usePaginatedFilteredFeatures.d.ts.map +1 -0
  80. package/dist/components/feature-list/hooks/usePaginatedFilteredFeatures.js +78 -0
  81. package/dist/components/feature-list/hooks/usePaginatedFilteredFeatures.js.map +1 -0
  82. package/dist/components/feature-list/hooks/useRestoreDocumentScroll.d.ts +2 -0
  83. package/dist/components/feature-list/hooks/useRestoreDocumentScroll.d.ts.map +1 -0
  84. package/dist/components/feature-list/hooks/useRestoreDocumentScroll.js +11 -0
  85. package/dist/components/feature-list/hooks/useRestoreDocumentScroll.js.map +1 -0
  86. package/dist/components/feature-list/hooks/useSelectFeature.d.ts +2 -0
  87. package/dist/components/feature-list/hooks/useSelectFeature.d.ts.map +1 -0
  88. package/dist/components/feature-list/hooks/useSelectFeature.js +43 -0
  89. package/dist/components/feature-list/hooks/useSelectFeature.js.map +1 -0
  90. package/dist/components/feature-list/index.d.ts +4 -0
  91. package/dist/components/feature-list/index.d.ts.map +1 -0
  92. package/dist/components/feature-list/index.js +139 -0
  93. package/dist/components/feature-list/index.js.map +1 -0
  94. package/dist/components/feature-list/pagination.d.ts +6 -0
  95. package/dist/components/feature-list/pagination.d.ts.map +1 -0
  96. package/dist/components/feature-list/pagination.js +24 -0
  97. package/dist/components/feature-list/pagination.js.map +1 -0
  98. package/dist/components/feature-list/query-input.d.ts +3 -0
  99. package/dist/components/feature-list/query-input.d.ts.map +1 -0
  100. package/dist/components/feature-list/query-input.js +8 -0
  101. package/dist/components/feature-list/query-input.js.map +1 -0
  102. package/dist/components/feature-list-cycling/button.d.ts +7 -0
  103. package/dist/components/feature-list-cycling/button.d.ts.map +1 -0
  104. package/dist/components/feature-list-cycling/button.js +6 -0
  105. package/dist/components/feature-list-cycling/button.js.map +1 -0
  106. package/dist/components/feature-list-cycling/dot.d.ts +11 -0
  107. package/dist/components/feature-list-cycling/dot.d.ts.map +1 -0
  108. package/dist/components/feature-list-cycling/dot.js +16 -0
  109. package/dist/components/feature-list-cycling/dot.js.map +1 -0
  110. package/dist/components/feature-list-cycling/feature-list-cycling.d.ts +11 -0
  111. package/dist/components/feature-list-cycling/feature-list-cycling.d.ts.map +1 -0
  112. package/dist/components/feature-list-cycling/feature-list-cycling.js +78 -0
  113. package/dist/components/feature-list-cycling/feature-list-cycling.js.map +1 -0
  114. package/dist/components/feature-list-cycling/index.d.ts +16 -0
  115. package/dist/components/feature-list-cycling/index.d.ts.map +1 -0
  116. package/dist/components/feature-list-cycling/index.js +35 -0
  117. package/dist/components/feature-list-cycling/index.js.map +1 -0
  118. package/dist/components/feature-list-item/head.d.ts +16 -0
  119. package/dist/components/feature-list-item/head.d.ts.map +1 -0
  120. package/dist/components/feature-list-item/head.js +56 -0
  121. package/dist/components/feature-list-item/head.js.map +1 -0
  122. package/dist/components/feature-list-item/hooks/useFeatureListItemScrollAndFocus.d.ts +6 -0
  123. package/dist/components/feature-list-item/hooks/useFeatureListItemScrollAndFocus.d.ts.map +1 -0
  124. package/dist/components/feature-list-item/hooks/useFeatureListItemScrollAndFocus.js +40 -0
  125. package/dist/components/feature-list-item/hooks/useFeatureListItemScrollAndFocus.js.map +1 -0
  126. package/dist/components/feature-list-item/hooks/useFeatureListItemState.d.ts +16 -0
  127. package/dist/components/feature-list-item/hooks/useFeatureListItemState.d.ts.map +1 -0
  128. package/dist/components/feature-list-item/hooks/useFeatureListItemState.js +44 -0
  129. package/dist/components/feature-list-item/hooks/useFeatureListItemState.js.map +1 -0
  130. package/dist/components/feature-list-item/icon.d.ts +9 -0
  131. package/dist/components/feature-list-item/icon.d.ts.map +1 -0
  132. package/dist/components/feature-list-item/icon.js +23 -0
  133. package/dist/components/feature-list-item/icon.js.map +1 -0
  134. package/dist/components/feature-list-item/index.d.ts +14 -0
  135. package/dist/components/feature-list-item/index.d.ts.map +1 -0
  136. package/dist/components/feature-list-item/index.js +72 -0
  137. package/dist/components/feature-list-item/index.js.map +1 -0
  138. package/dist/components/feature-list-sorting/feature-list-sorting.d.ts +22 -0
  139. package/dist/components/feature-list-sorting/feature-list-sorting.d.ts.map +1 -0
  140. package/dist/components/feature-list-sorting/feature-list-sorting.js +45 -0
  141. package/dist/components/feature-list-sorting/feature-list-sorting.js.map +1 -0
  142. package/dist/components/feature-list-sorting/index.d.ts +24 -0
  143. package/dist/components/feature-list-sorting/index.d.ts.map +1 -0
  144. package/dist/components/feature-list-sorting/index.js +19 -0
  145. package/dist/components/feature-list-sorting/index.js.map +1 -0
  146. package/dist/components/feature-list-sorting/status-indicator.d.ts +4 -0
  147. package/dist/components/feature-list-sorting/status-indicator.d.ts.map +1 -0
  148. package/dist/components/feature-list-sorting/status-indicator.js +6 -0
  149. package/dist/components/feature-list-sorting/status-indicator.js.map +1 -0
  150. package/dist/components/feature-select-button.d.ts +12 -0
  151. package/dist/components/feature-select-button.d.ts.map +1 -0
  152. package/dist/components/feature-select-button.js +47 -0
  153. package/dist/components/feature-select-button.js.map +1 -0
  154. package/dist/components/feature-selection-info/close-button.d.ts +8 -0
  155. package/dist/components/feature-selection-info/close-button.d.ts.map +1 -0
  156. package/dist/components/feature-selection-info/close-button.js +30 -0
  157. package/dist/components/feature-selection-info/close-button.js.map +1 -0
  158. package/dist/components/feature-selection-info/container.d.ts +7 -0
  159. package/dist/components/feature-selection-info/container.d.ts.map +1 -0
  160. package/dist/components/feature-selection-info/container.js +6 -0
  161. package/dist/components/feature-selection-info/container.js.map +1 -0
  162. package/dist/components/feature-selection-info/header.d.ts +14 -0
  163. package/dist/components/feature-selection-info/header.d.ts.map +1 -0
  164. package/dist/components/feature-selection-info/header.js +11 -0
  165. package/dist/components/feature-selection-info/header.js.map +1 -0
  166. package/dist/components/feature-selection-info/index.d.ts +6 -0
  167. package/dist/components/feature-selection-info/index.d.ts.map +1 -0
  168. package/dist/components/feature-selection-info/index.js +31 -0
  169. package/dist/components/feature-selection-info/index.js.map +1 -0
  170. package/dist/components/feature-selection-info/with-sticky-header.d.ts +9 -0
  171. package/dist/components/feature-selection-info/with-sticky-header.d.ts.map +1 -0
  172. package/dist/components/feature-selection-info/with-sticky-header.js +29 -0
  173. package/dist/components/feature-selection-info/with-sticky-header.js.map +1 -0
  174. package/dist/components/feature-selection-info/without-sticky-header.d.ts +8 -0
  175. package/dist/components/feature-selection-info/without-sticky-header.d.ts.map +1 -0
  176. package/dist/components/feature-selection-info/without-sticky-header.js +9 -0
  177. package/dist/components/feature-selection-info/without-sticky-header.js.map +1 -0
  178. package/dist/components/feature-selection-info/wrapper.d.ts +3 -0
  179. package/dist/components/feature-selection-info/wrapper.d.ts.map +1 -0
  180. package/dist/components/feature-selection-info/wrapper.js +26 -0
  181. package/dist/components/feature-selection-info/wrapper.js.map +1 -0
  182. package/dist/components/helping/app-channel.d.ts +23 -0
  183. package/dist/components/helping/app-channel.d.ts.map +1 -0
  184. package/dist/components/helping/app-channel.js +66 -0
  185. package/dist/components/helping/app-channel.js.map +1 -0
  186. package/dist/components/helping/app-context.d.ts +11 -0
  187. package/dist/components/helping/app-context.d.ts.map +1 -0
  188. package/dist/components/helping/app-context.js +9 -0
  189. package/dist/components/helping/app-context.js.map +1 -0
  190. package/dist/components/helping/visibility-wrapper.d.ts +16 -0
  191. package/dist/components/helping/visibility-wrapper.d.ts.map +1 -0
  192. package/dist/components/helping/visibility-wrapper.js +22 -0
  193. package/dist/components/helping/visibility-wrapper.js.map +1 -0
  194. package/dist/components/instance.d.ts +11 -0
  195. package/dist/components/instance.d.ts.map +1 -0
  196. package/dist/components/instance.js +14 -0
  197. package/dist/components/instance.js.map +1 -0
  198. package/dist/components/layer-switcher/GroupedLayerSwitcher.d.ts +5 -0
  199. package/dist/components/layer-switcher/GroupedLayerSwitcher.d.ts.map +1 -0
  200. package/dist/components/layer-switcher/GroupedLayerSwitcher.js +27 -0
  201. package/dist/components/layer-switcher/GroupedLayerSwitcher.js.map +1 -0
  202. package/dist/components/layer-switcher/LayerSwitcher.d.ts +16 -0
  203. package/dist/components/layer-switcher/LayerSwitcher.d.ts.map +1 -0
  204. package/dist/components/layer-switcher/LayerSwitcher.js +14 -0
  205. package/dist/components/layer-switcher/LayerSwitcher.js.map +1 -0
  206. package/dist/components/layer-switcher/LayerSwitcherEntry.d.ts +14 -0
  207. package/dist/components/layer-switcher/LayerSwitcherEntry.d.ts.map +1 -0
  208. package/dist/components/layer-switcher/LayerSwitcherEntry.js +80 -0
  209. package/dist/components/layer-switcher/LayerSwitcherEntry.js.map +1 -0
  210. package/dist/components/layer-switcher/LayerSwticherContainer.d.ts +4 -0
  211. package/dist/components/layer-switcher/LayerSwticherContainer.d.ts.map +1 -0
  212. package/dist/components/layer-switcher/LayerSwticherContainer.js +19 -0
  213. package/dist/components/layer-switcher/LayerSwticherContainer.js.map +1 -0
  214. package/dist/components/layer-switcher/index.d.ts +5 -0
  215. package/dist/components/layer-switcher/index.d.ts.map +1 -0
  216. package/dist/components/layer-switcher/index.js +28 -0
  217. package/dist/components/layer-switcher/index.js.map +1 -0
  218. package/dist/components/layout/additional-container/content.d.ts +7 -0
  219. package/dist/components/layout/additional-container/content.d.ts.map +1 -0
  220. package/dist/components/layout/additional-container/content.js +6 -0
  221. package/dist/components/layout/additional-container/content.js.map +1 -0
  222. package/dist/components/layout/additional-container/index.d.ts +7 -0
  223. package/dist/components/layout/additional-container/index.d.ts.map +1 -0
  224. package/dist/components/layout/additional-container/index.js +6 -0
  225. package/dist/components/layout/additional-container/index.js.map +1 -0
  226. package/dist/components/layout/additional-container/marginal.d.ts +8 -0
  227. package/dist/components/layout/additional-container/marginal.d.ts.map +1 -0
  228. package/dist/components/layout/additional-container/marginal.js +6 -0
  229. package/dist/components/layout/additional-container/marginal.js.map +1 -0
  230. package/dist/components/layout/main-container.d.ts +6 -0
  231. package/dist/components/layout/main-container.d.ts.map +1 -0
  232. package/dist/components/layout/main-container.js +6 -0
  233. package/dist/components/layout/main-container.js.map +1 -0
  234. package/dist/components/layout/map-row.d.ts +6 -0
  235. package/dist/components/layout/map-row.d.ts.map +1 -0
  236. package/dist/components/layout/map-row.js +6 -0
  237. package/dist/components/layout/map-row.js.map +1 -0
  238. package/dist/components/layout/title-bar.d.ts +10 -0
  239. package/dist/components/layout/title-bar.d.ts.map +1 -0
  240. package/dist/components/layout/title-bar.js +11 -0
  241. package/dist/components/layout/title-bar.js.map +1 -0
  242. package/dist/components/layout/wrapper.d.ts +7 -0
  243. package/dist/components/layout/wrapper.d.ts.map +1 -0
  244. package/dist/components/layout/wrapper.js +13 -0
  245. package/dist/components/layout/wrapper.js.map +1 -0
  246. package/dist/components/link-share.d.ts +9 -0
  247. package/dist/components/link-share.d.ts.map +1 -0
  248. package/dist/components/link-share.js +30 -0
  249. package/dist/components/link-share.js.map +1 -0
  250. package/dist/components/main-panel/container.d.ts +5 -0
  251. package/dist/components/main-panel/container.d.ts.map +1 -0
  252. package/dist/components/main-panel/container.js +13 -0
  253. package/dist/components/main-panel/container.js.map +1 -0
  254. package/dist/components/main-panel/context.d.ts +6 -0
  255. package/dist/components/main-panel/context.d.ts.map +1 -0
  256. package/dist/components/main-panel/context.js +45 -0
  257. package/dist/components/main-panel/context.js.map +1 -0
  258. package/dist/components/main-panel/index.d.ts +3 -0
  259. package/dist/components/main-panel/index.d.ts.map +1 -0
  260. package/dist/components/main-panel/index.js +19 -0
  261. package/dist/components/main-panel/index.js.map +1 -0
  262. package/dist/components/main-panel/list-toggle-button.d.ts +3 -0
  263. package/dist/components/main-panel/list-toggle-button.d.ts.map +1 -0
  264. package/dist/components/main-panel/list-toggle-button.js +23 -0
  265. package/dist/components/main-panel/list-toggle-button.js.map +1 -0
  266. package/dist/components/map-overlay/area.d.ts +12 -0
  267. package/dist/components/map-overlay/area.d.ts.map +1 -0
  268. package/dist/components/map-overlay/area.js +12 -0
  269. package/dist/components/map-overlay/area.js.map +1 -0
  270. package/dist/components/map-overlay/attribution-entries.d.ts +8 -0
  271. package/dist/components/map-overlay/attribution-entries.d.ts.map +1 -0
  272. package/dist/components/map-overlay/attribution-entries.js +8 -0
  273. package/dist/components/map-overlay/attribution-entries.js.map +1 -0
  274. package/dist/components/map-overlay/attribution.d.ts +4 -0
  275. package/dist/components/map-overlay/attribution.d.ts.map +1 -0
  276. package/dist/components/map-overlay/attribution.js +14 -0
  277. package/dist/components/map-overlay/attribution.js.map +1 -0
  278. package/dist/components/map-overlay/combined-buttons.d.ts +5 -0
  279. package/dist/components/map-overlay/combined-buttons.d.ts.map +1 -0
  280. package/dist/components/map-overlay/combined-buttons.js +6 -0
  281. package/dist/components/map-overlay/combined-buttons.js.map +1 -0
  282. package/dist/components/map-overlay/index.d.ts +5 -0
  283. package/dist/components/map-overlay/index.d.ts.map +1 -0
  284. package/dist/components/map-overlay/index.js +6 -0
  285. package/dist/components/map-overlay/index.js.map +1 -0
  286. package/dist/components/map-overlay/info-overlay-left.d.ts +4 -0
  287. package/dist/components/map-overlay/info-overlay-left.d.ts.map +1 -0
  288. package/dist/components/map-overlay/info-overlay-left.js +18 -0
  289. package/dist/components/map-overlay/info-overlay-left.js.map +1 -0
  290. package/dist/components/map-overlay/info-overlay-modal.d.ts +5 -0
  291. package/dist/components/map-overlay/info-overlay-modal.d.ts.map +1 -0
  292. package/dist/components/map-overlay/info-overlay-modal.js +27 -0
  293. package/dist/components/map-overlay/info-overlay-modal.js.map +1 -0
  294. package/dist/components/map-overlay/info-overlay-right.d.ts +4 -0
  295. package/dist/components/map-overlay/info-overlay-right.d.ts.map +1 -0
  296. package/dist/components/map-overlay/info-overlay-right.js +23 -0
  297. package/dist/components/map-overlay/info-overlay-right.js.map +1 -0
  298. package/dist/components/map-overlay/layer-switcher-overlay.d.ts +4 -0
  299. package/dist/components/map-overlay/layer-switcher-overlay.d.ts.map +1 -0
  300. package/dist/components/map-overlay/layer-switcher-overlay.js +31 -0
  301. package/dist/components/map-overlay/layer-switcher-overlay.js.map +1 -0
  302. package/dist/components/map-overlay/legend.d.ts +2 -0
  303. package/dist/components/map-overlay/legend.d.ts.map +1 -0
  304. package/dist/components/map-overlay/legend.js +13 -0
  305. package/dist/components/map-overlay/legend.js.map +1 -0
  306. package/dist/components/map-overlay/logo.d.ts +2 -0
  307. package/dist/components/map-overlay/logo.d.ts.map +1 -0
  308. package/dist/components/map-overlay/logo.js +6 -0
  309. package/dist/components/map-overlay/logo.js.map +1 -0
  310. package/dist/components/map-overlay/measure-distance-button.d.ts +8 -0
  311. package/dist/components/map-overlay/measure-distance-button.d.ts.map +1 -0
  312. package/dist/components/map-overlay/measure-distance-button.js +43 -0
  313. package/dist/components/map-overlay/measure-distance-button.js.map +1 -0
  314. package/dist/components/map-overlay/measure-distance-overlay.d.ts +5 -0
  315. package/dist/components/map-overlay/measure-distance-overlay.d.ts.map +1 -0
  316. package/dist/components/map-overlay/measure-distance-overlay.js +42 -0
  317. package/dist/components/map-overlay/measure-distance-overlay.js.map +1 -0
  318. package/dist/components/map-overlay/mini-legend.d.ts +8 -0
  319. package/dist/components/map-overlay/mini-legend.d.ts.map +1 -0
  320. package/dist/components/map-overlay/mini-legend.js +42 -0
  321. package/dist/components/map-overlay/mini-legend.js.map +1 -0
  322. package/dist/components/map-overlay/region-selector.d.ts +3 -0
  323. package/dist/components/map-overlay/region-selector.d.ts.map +1 -0
  324. package/dist/components/map-overlay/region-selector.js +32 -0
  325. package/dist/components/map-overlay/region-selector.js.map +1 -0
  326. package/dist/components/map-overlay/search-overlay.d.ts +4 -0
  327. package/dist/components/map-overlay/search-overlay.d.ts.map +1 -0
  328. package/dist/components/map-overlay/search-overlay.js +33 -0
  329. package/dist/components/map-overlay/search-overlay.js.map +1 -0
  330. package/dist/components/map-overlay/share-position-link-button.d.ts +8 -0
  331. package/dist/components/map-overlay/share-position-link-button.d.ts.map +1 -0
  332. package/dist/components/map-overlay/share-position-link-button.js +54 -0
  333. package/dist/components/map-overlay/share-position-link-button.js.map +1 -0
  334. package/dist/components/map-overlay/tool-overlay.d.ts +9 -0
  335. package/dist/components/map-overlay/tool-overlay.d.ts.map +1 -0
  336. package/dist/components/map-overlay/tool-overlay.js +8 -0
  337. package/dist/components/map-overlay/tool-overlay.js.map +1 -0
  338. package/dist/components/map-overlay/user-geo-location-button.d.ts +5 -0
  339. package/dist/components/map-overlay/user-geo-location-button.d.ts.map +1 -0
  340. package/dist/components/map-overlay/user-geo-location-button.js +63 -0
  341. package/dist/components/map-overlay/user-geo-location-button.js.map +1 -0
  342. package/dist/components/map-overlay/zoom-button.d.ts +20 -0
  343. package/dist/components/map-overlay/zoom-button.d.ts.map +1 -0
  344. package/dist/components/map-overlay/zoom-button.js +64 -0
  345. package/dist/components/map-overlay/zoom-button.js.map +1 -0
  346. package/dist/components/map-overlay/zoom-buttons.d.ts +3 -0
  347. package/dist/components/map-overlay/zoom-buttons.d.ts.map +1 -0
  348. package/dist/components/map-overlay/zoom-buttons.js +10 -0
  349. package/dist/components/map-overlay/zoom-buttons.js.map +1 -0
  350. package/dist/components/map-synced-interlay/index.d.ts +11 -0
  351. package/dist/components/map-synced-interlay/index.d.ts.map +1 -0
  352. package/dist/components/map-synced-interlay/index.js +12 -0
  353. package/dist/components/map-synced-interlay/index.js.map +1 -0
  354. package/dist/components/map-synced-interlay/map-synced-interlay.d.ts +6 -0
  355. package/dist/components/map-synced-interlay/map-synced-interlay.d.ts.map +1 -0
  356. package/dist/components/map-synced-interlay/map-synced-interlay.js +12 -0
  357. package/dist/components/map-synced-interlay/map-synced-interlay.js.map +1 -0
  358. package/dist/components/map-synced-interlay/tooltip-content.d.ts +15 -0
  359. package/dist/components/map-synced-interlay/tooltip-content.d.ts.map +1 -0
  360. package/dist/components/map-synced-interlay/tooltip-content.js +7 -0
  361. package/dist/components/map-synced-interlay/tooltip-content.js.map +1 -0
  362. package/dist/components/map-synced-interlay/tooltip.d.ts +10 -0
  363. package/dist/components/map-synced-interlay/tooltip.d.ts.map +1 -0
  364. package/dist/components/map-synced-interlay/tooltip.js +111 -0
  365. package/dist/components/map-synced-interlay/tooltip.js.map +1 -0
  366. package/dist/components/map-wrapper.d.ts +5 -0
  367. package/dist/components/map-wrapper.d.ts.map +1 -0
  368. package/dist/components/map-wrapper.js +39 -0
  369. package/dist/components/map-wrapper.js.map +1 -0
  370. package/dist/components/map.d.ts +8 -0
  371. package/dist/components/map.d.ts.map +1 -0
  372. package/dist/components/map.js +20 -0
  373. package/dist/components/map.js.map +1 -0
  374. package/dist/components/modal.d.ts +9 -0
  375. package/dist/components/modal.d.ts.map +1 -0
  376. package/dist/components/modal.js +9 -0
  377. package/dist/components/modal.js.map +1 -0
  378. package/dist/components/query-input-with-label.d.ts +15 -0
  379. package/dist/components/query-input-with-label.d.ts.map +1 -0
  380. package/dist/components/query-input-with-label.js +21 -0
  381. package/dist/components/query-input-with-label.js.map +1 -0
  382. package/dist/components/query-input.d.ts +15 -0
  383. package/dist/components/query-input.d.ts.map +1 -0
  384. package/dist/components/query-input.js +16 -0
  385. package/dist/components/query-input.js.map +1 -0
  386. package/dist/components/search/index.d.ts +7 -0
  387. package/dist/components/search/index.d.ts.map +1 -0
  388. package/dist/components/search/index.js +36 -0
  389. package/dist/components/search/index.js.map +1 -0
  390. package/dist/components/search/query-input.d.ts +3 -0
  391. package/dist/components/search/query-input.d.ts.map +1 -0
  392. package/dist/components/search/query-input.js +9 -0
  393. package/dist/components/search/query-input.js.map +1 -0
  394. package/dist/components/search/result-entry.d.ts +8 -0
  395. package/dist/components/search/result-entry.d.ts.map +1 -0
  396. package/dist/components/search/result-entry.js +37 -0
  397. package/dist/components/search/result-entry.js.map +1 -0
  398. package/dist/components/search/result.d.ts +7 -0
  399. package/dist/components/search/result.d.ts.map +1 -0
  400. package/dist/components/search/result.js +24 -0
  401. package/dist/components/search/result.js.map +1 -0
  402. package/dist/components/switcher/GroupedSwitcher.d.ts +4 -0
  403. package/dist/components/switcher/GroupedSwitcher.d.ts.map +1 -0
  404. package/dist/components/switcher/GroupedSwitcher.js +10 -0
  405. package/dist/components/switcher/GroupedSwitcher.js.map +1 -0
  406. package/dist/components/switcher/Switcher.d.ts +4 -0
  407. package/dist/components/switcher/Switcher.d.ts.map +1 -0
  408. package/dist/components/switcher/Switcher.js +23 -0
  409. package/dist/components/switcher/Switcher.js.map +1 -0
  410. package/dist/components/switcher/SwitcherButton.d.ts +3 -0
  411. package/dist/components/switcher/SwitcherButton.d.ts.map +1 -0
  412. package/dist/components/switcher/SwitcherButton.js +8 -0
  413. package/dist/components/switcher/SwitcherButton.js.map +1 -0
  414. package/dist/components/switcher/SwitcherEntry.d.ts +6 -0
  415. package/dist/components/switcher/SwitcherEntry.d.ts.map +1 -0
  416. package/dist/components/switcher/SwitcherEntry.js +55 -0
  417. package/dist/components/switcher/SwitcherEntry.js.map +1 -0
  418. package/dist/components/switcher/SwitcherHeader.d.ts +4 -0
  419. package/dist/components/switcher/SwitcherHeader.d.ts.map +1 -0
  420. package/dist/components/switcher/SwitcherHeader.js +16 -0
  421. package/dist/components/switcher/SwitcherHeader.js.map +1 -0
  422. package/dist/components/switcher/SwitcherStatusIcon.d.ts +3 -0
  423. package/dist/components/switcher/SwitcherStatusIcon.d.ts.map +1 -0
  424. package/dist/components/switcher/SwitcherStatusIcon.js +13 -0
  425. package/dist/components/switcher/SwitcherStatusIcon.js.map +1 -0
  426. package/dist/components/tag-switcher/TagSwitcher.d.ts +9 -0
  427. package/dist/components/tag-switcher/TagSwitcher.d.ts.map +1 -0
  428. package/dist/components/tag-switcher/TagSwitcher.js +31 -0
  429. package/dist/components/tag-switcher/TagSwitcher.js.map +1 -0
  430. package/dist/components/tag-switcher/createTagSwitcherEntry.d.ts +13 -0
  431. package/dist/components/tag-switcher/createTagSwitcherEntry.d.ts.map +1 -0
  432. package/dist/components/tag-switcher/createTagSwitcherEntry.js +22 -0
  433. package/dist/components/tag-switcher/createTagSwitcherEntry.js.map +1 -0
  434. package/dist/components/tag-switcher/createTagSwitcherHeader.d.ts +13 -0
  435. package/dist/components/tag-switcher/createTagSwitcherHeader.d.ts.map +1 -0
  436. package/dist/components/tag-switcher/createTagSwitcherHeader.js +18 -0
  437. package/dist/components/tag-switcher/createTagSwitcherHeader.js.map +1 -0
  438. package/dist/components/tag-switcher/index.d.ts +14 -0
  439. package/dist/components/tag-switcher/index.d.ts.map +1 -0
  440. package/dist/components/tag-switcher/index.js +11 -0
  441. package/dist/components/tag-switcher/index.js.map +1 -0
  442. package/dist/components/time-filter.d.ts +4 -0
  443. package/dist/components/time-filter.d.ts.map +1 -0
  444. package/dist/components/time-filter.js +112 -0
  445. package/dist/components/time-filter.js.map +1 -0
  446. package/dist/components/view-toggle-button/desktop-button.d.ts +3 -0
  447. package/dist/components/view-toggle-button/desktop-button.d.ts.map +1 -0
  448. package/dist/components/view-toggle-button/desktop-button.js +7 -0
  449. package/dist/components/view-toggle-button/desktop-button.js.map +1 -0
  450. package/dist/components/view-toggle-button/index.d.ts +16 -0
  451. package/dist/components/view-toggle-button/index.d.ts.map +1 -0
  452. package/dist/components/view-toggle-button/index.js +24 -0
  453. package/dist/components/view-toggle-button/index.js.map +1 -0
  454. package/dist/components/view-toggle-button/mobile-button.d.ts +3 -0
  455. package/dist/components/view-toggle-button/mobile-button.d.ts.map +1 -0
  456. package/dist/components/view-toggle-button/mobile-button.js +7 -0
  457. package/dist/components/view-toggle-button/mobile-button.js.map +1 -0
  458. package/dist/components/view-toggle-button/view-toggle-button.d.ts +11 -0
  459. package/dist/components/view-toggle-button/view-toggle-button.d.ts.map +1 -0
  460. package/dist/components/view-toggle-button/view-toggle-button.js +40 -0
  461. package/dist/components/view-toggle-button/view-toggle-button.js.map +1 -0
  462. package/dist/components/view-toggle-button/viewport-button.d.ts +3 -0
  463. package/dist/components/view-toggle-button/viewport-button.d.ts.map +1 -0
  464. package/dist/components/view-toggle-button/viewport-button.js +7 -0
  465. package/dist/components/view-toggle-button/viewport-button.js.map +1 -0
  466. package/dist/config/constants/app.d.ts +9 -0
  467. package/dist/config/constants/app.d.ts.map +1 -0
  468. package/dist/config/constants/app.js +8 -0
  469. package/dist/config/constants/app.js.map +1 -0
  470. package/dist/config/constants/controllers.d.ts +9 -0
  471. package/dist/config/constants/controllers.d.ts.map +1 -0
  472. package/dist/config/constants/controllers.js +9 -0
  473. package/dist/config/constants/controllers.js.map +1 -0
  474. package/dist/config/feature/selections.d.ts +16 -0
  475. package/dist/config/feature/selections.d.ts.map +1 -0
  476. package/dist/config/feature/selections.js +13 -0
  477. package/dist/config/feature/selections.js.map +1 -0
  478. package/dist/config/feature/sources.d.ts +37 -0
  479. package/dist/config/feature/sources.d.ts.map +1 -0
  480. package/dist/config/feature/sources.js +66 -0
  481. package/dist/config/feature/sources.js.map +1 -0
  482. package/dist/config/index.d.ts +64 -0
  483. package/dist/config/index.d.ts.map +1 -0
  484. package/dist/config/index.js +80 -0
  485. package/dist/config/index.js.map +1 -0
  486. package/dist/config/map/featureInteractions.d.ts +6 -0
  487. package/dist/config/map/featureInteractions.d.ts.map +1 -0
  488. package/dist/config/map/featureInteractions.js +42 -0
  489. package/dist/config/map/featureInteractions.js.map +1 -0
  490. package/dist/config/map/interactions.d.ts +4 -0
  491. package/dist/config/map/interactions.d.ts.map +1 -0
  492. package/dist/config/map/interactions.js +13 -0
  493. package/dist/config/map/interactions.js.map +1 -0
  494. package/dist/config/map/layers.d.ts +48 -0
  495. package/dist/config/map/layers.d.ts.map +1 -0
  496. package/dist/config/map/layers.js +110 -0
  497. package/dist/config/map/layers.js.map +1 -0
  498. package/dist/controllers/defaults.d.ts +4 -0
  499. package/dist/controllers/defaults.d.ts.map +1 -0
  500. package/dist/controllers/defaults.js +25 -0
  501. package/dist/controllers/defaults.js.map +1 -0
  502. package/dist/embed/browser.d.ts +20 -0
  503. package/dist/embed/browser.d.ts.map +1 -0
  504. package/dist/embed/browser.js +41 -0
  505. package/dist/embed/browser.js.map +1 -0
  506. package/dist/embed/node.d.ts +23 -0
  507. package/dist/embed/node.d.ts.map +1 -0
  508. package/dist/embed/node.js +26 -0
  509. package/dist/embed/node.js.map +1 -0
  510. package/dist/filters/tag-filter.d.ts +11 -0
  511. package/dist/filters/tag-filter.d.ts.map +1 -0
  512. package/dist/filters/tag-filter.js +86 -0
  513. package/dist/filters/tag-filter.js.map +1 -0
  514. package/dist/filters/time-filter.d.ts +16 -0
  515. package/dist/filters/time-filter.d.ts.map +1 -0
  516. package/dist/filters/time-filter.js +26 -0
  517. package/dist/filters/time-filter.js.map +1 -0
  518. package/dist/helpers/components.d.ts +26 -0
  519. package/dist/helpers/components.d.ts.map +1 -0
  520. package/dist/helpers/components.js +25 -0
  521. package/dist/helpers/components.js.map +1 -0
  522. package/dist/helpers/create-action-watcher.d.ts +10 -0
  523. package/dist/helpers/create-action-watcher.d.ts.map +1 -0
  524. package/dist/helpers/create-action-watcher.js +19 -0
  525. package/dist/helpers/create-action-watcher.js.map +1 -0
  526. package/dist/helpers/events.d.ts +10 -0
  527. package/dist/helpers/events.d.ts.map +1 -0
  528. package/dist/helpers/events.js +7 -0
  529. package/dist/helpers/events.js.map +1 -0
  530. package/dist/helpers/get-feature-property.d.ts +6 -0
  531. package/dist/helpers/get-feature-property.d.ts.map +1 -0
  532. package/dist/helpers/get-feature-property.js +8 -0
  533. package/dist/helpers/get-feature-property.js.map +1 -0
  534. package/dist/helpers/i18n/de.d.ts +3 -0
  535. package/dist/helpers/i18n/de.d.ts.map +1 -0
  536. package/dist/helpers/i18n/de.js +98 -0
  537. package/dist/helpers/i18n/de.js.map +1 -0
  538. package/dist/helpers/i18n/en.d.ts +3 -0
  539. package/dist/helpers/i18n/en.d.ts.map +1 -0
  540. package/dist/helpers/i18n/en.js +94 -0
  541. package/dist/helpers/i18n/en.js.map +1 -0
  542. package/dist/helpers/i18n/index.d.ts +10 -0
  543. package/dist/helpers/i18n/index.d.ts.map +1 -0
  544. package/dist/helpers/i18n/index.js +30 -0
  545. package/dist/helpers/i18n/index.js.map +1 -0
  546. package/dist/helpers/makeReplaceableComponent.d.ts +2 -0
  547. package/dist/helpers/makeReplaceableComponent.d.ts.map +1 -0
  548. package/dist/helpers/makeReplaceableComponent.js +2 -0
  549. package/dist/helpers/makeReplaceableComponent.js.map +1 -0
  550. package/dist/helpers/mod-classes.d.ts +7 -0
  551. package/dist/helpers/mod-classes.d.ts.map +1 -0
  552. package/dist/helpers/mod-classes.js +32 -0
  553. package/dist/helpers/mod-classes.js.map +1 -0
  554. package/dist/helpers/react.d.ts +3 -0
  555. package/dist/helpers/react.d.ts.map +1 -0
  556. package/dist/helpers/react.js +11 -0
  557. package/dist/helpers/react.js.map +1 -0
  558. package/dist/helpers/scroll-to-element-top.d.ts +2 -0
  559. package/dist/helpers/scroll-to-element-top.d.ts.map +1 -0
  560. package/dist/helpers/scroll-to-element-top.js +13 -0
  561. package/dist/helpers/scroll-to-element-top.js.map +1 -0
  562. package/dist/helpers/sort-features-by-distance.d.ts +15 -0
  563. package/dist/helpers/sort-features-by-distance.d.ts.map +1 -0
  564. package/dist/helpers/sort-features-by-distance.js +61 -0
  565. package/dist/helpers/sort-features-by-distance.js.map +1 -0
  566. package/dist/helpers/sticky.d.ts +2 -0
  567. package/dist/helpers/sticky.d.ts.map +1 -0
  568. package/dist/helpers/sticky.js +114 -0
  569. package/dist/helpers/sticky.js.map +1 -0
  570. package/dist/hooks/useCallbackRef.d.ts +2 -0
  571. package/dist/hooks/useCallbackRef.d.ts.map +1 -0
  572. package/dist/hooks/useCallbackRef.js +10 -0
  573. package/dist/hooks/useCallbackRef.js.map +1 -0
  574. package/dist/hooks/useControllableState.d.ts +7 -0
  575. package/dist/hooks/useControllableState.d.ts.map +1 -0
  576. package/dist/hooks/useControllableState.js +32 -0
  577. package/dist/hooks/useControllableState.js.map +1 -0
  578. package/dist/hooks/useDebounce.d.ts +7 -0
  579. package/dist/hooks/useDebounce.d.ts.map +1 -0
  580. package/dist/hooks/useDebounce.js +27 -0
  581. package/dist/hooks/useDebounce.js.map +1 -0
  582. package/dist/hooks/useHandleEscapeKeyDown.d.ts +3 -0
  583. package/dist/hooks/useHandleEscapeKeyDown.d.ts.map +1 -0
  584. package/dist/hooks/useHandleEscapeKeyDown.js +20 -0
  585. package/dist/hooks/useHandleEscapeKeyDown.js.map +1 -0
  586. package/dist/hooks/useMapsightPanel.d.ts +5 -0
  587. package/dist/hooks/useMapsightPanel.d.ts.map +1 -0
  588. package/dist/hooks/useMapsightPanel.js +22 -0
  589. package/dist/hooks/useMapsightPanel.js.map +1 -0
  590. package/dist/hooks/useMountable.d.ts +15 -0
  591. package/dist/hooks/useMountable.d.ts.map +1 -0
  592. package/dist/hooks/useMountable.js +26 -0
  593. package/dist/hooks/useMountable.js.map +1 -0
  594. package/dist/hooks/usePrevious.d.ts +2 -0
  595. package/dist/hooks/usePrevious.d.ts.map +1 -0
  596. package/dist/hooks/usePrevious.js +13 -0
  597. package/dist/hooks/usePrevious.js.map +1 -0
  598. package/dist/hooks/useStickyHeader.d.ts +15 -0
  599. package/dist/hooks/useStickyHeader.d.ts.map +1 -0
  600. package/dist/hooks/useStickyHeader.js +31 -0
  601. package/dist/hooks/useStickyHeader.js.map +1 -0
  602. package/dist/hooks/useUpdateMapSizeCallback.d.ts +5 -0
  603. package/dist/hooks/useUpdateMapSizeCallback.d.ts.map +1 -0
  604. package/dist/hooks/useUpdateMapSizeCallback.js +17 -0
  605. package/dist/hooks/useUpdateMapSizeCallback.js.map +1 -0
  606. package/dist/hooks/useUpdateMapSizeOnRender.d.ts +3 -0
  607. package/dist/hooks/useUpdateMapSizeOnRender.d.ts.map +1 -0
  608. package/dist/hooks/useUpdateMapSizeOnRender.js +12 -0
  609. package/dist/hooks/useUpdateMapSizeOnRender.js.map +1 -0
  610. package/dist/hooks/useUpdateMapSizeOnTransitionEnd.d.ts +5 -0
  611. package/dist/hooks/useUpdateMapSizeOnTransitionEnd.d.ts.map +1 -0
  612. package/dist/hooks/useUpdateMapSizeOnTransitionEnd.js +25 -0
  613. package/dist/hooks/useUpdateMapSizeOnTransitionEnd.js.map +1 -0
  614. package/dist/hooks/useUpdateMapSizeOnViewChange.d.ts +4 -0
  615. package/dist/hooks/useUpdateMapSizeOnViewChange.d.ts.map +1 -0
  616. package/dist/hooks/useUpdateMapSizeOnViewChange.js +26 -0
  617. package/dist/hooks/useUpdateMapSizeOnViewChange.js.map +1 -0
  618. package/dist/img/mapsight-ui/check-empty.svg +1 -0
  619. package/dist/img/mapsight-ui/check.svg +1 -0
  620. package/dist/img/mapsight-ui/close-list.svg +1 -0
  621. package/dist/img/mapsight-ui/close.svg +1 -0
  622. package/dist/img/mapsight-ui/error.svg +1 -0
  623. package/dist/img/mapsight-ui/fullscreen-close.svg +1 -0
  624. package/dist/img/mapsight-ui/fullscreen.svg +1 -0
  625. package/dist/img/mapsight-ui/geo-active.svg +1 -0
  626. package/dist/img/mapsight-ui/geo-error.svg +1 -0
  627. package/dist/img/mapsight-ui/geo-inactive.svg +1 -0
  628. package/dist/img/mapsight-ui/info.svg +1 -0
  629. package/dist/img/mapsight-ui/layers.svg +1 -0
  630. package/dist/img/mapsight-ui/loading.svg +1 -0
  631. package/dist/img/mapsight-ui/map.svg +1 -0
  632. package/dist/img/mapsight-ui/measure-distance.svg +1 -0
  633. package/dist/img/mapsight-ui/open-list.svg +1 -0
  634. package/dist/img/mapsight-ui/place-marker.svg +1 -0
  635. package/dist/img/mapsight-ui/print.svg +1 -0
  636. package/dist/img/mapsight-ui/reset-active.svg +1 -0
  637. package/dist/img/mapsight-ui/reset.svg +1 -0
  638. package/dist/img/mapsight-ui/search.svg +1 -0
  639. package/dist/img/mapsight-ui/sharing.svg +1 -0
  640. package/dist/img/mapsight-ui/sort-active.svg +1 -0
  641. package/dist/img/mapsight-ui/sort.svg +1 -0
  642. package/dist/img/mapsight-ui/watermark.svg +1 -0
  643. package/dist/img/mapsight-ui/zoom-in.svg +1 -0
  644. package/dist/img/mapsight-ui/zoom-out.svg +1 -0
  645. package/dist/index.d.ts +14 -0
  646. package/dist/index.d.ts.map +1 -0
  647. package/dist/index.js +243 -0
  648. package/dist/index.js.map +1 -0
  649. package/dist/plugins/browser/app-title.d.ts +12 -0
  650. package/dist/plugins/browser/app-title.d.ts.map +1 -0
  651. package/dist/plugins/browser/app-title.js +25 -0
  652. package/dist/plugins/browser/app-title.js.map +1 -0
  653. package/dist/plugins/browser/debug.d.ts +8 -0
  654. package/dist/plugins/browser/debug.d.ts.map +1 -0
  655. package/dist/plugins/browser/debug.js +28 -0
  656. package/dist/plugins/browser/debug.js.map +1 -0
  657. package/dist/plugins/browser/feature-deep-link.d.ts +29 -0
  658. package/dist/plugins/browser/feature-deep-link.d.ts.map +1 -0
  659. package/dist/plugins/browser/feature-deep-link.js +124 -0
  660. package/dist/plugins/browser/feature-deep-link.js.map +1 -0
  661. package/dist/plugins/browser/local-storage.d.ts +15 -0
  662. package/dist/plugins/browser/local-storage.d.ts.map +1 -0
  663. package/dist/plugins/browser/local-storage.js +57 -0
  664. package/dist/plugins/browser/local-storage.js.map +1 -0
  665. package/dist/plugins/browser/native-fullscreen.d.ts +17 -0
  666. package/dist/plugins/browser/native-fullscreen.d.ts.map +1 -0
  667. package/dist/plugins/browser/native-fullscreen.js +62 -0
  668. package/dist/plugins/browser/native-fullscreen.js.map +1 -0
  669. package/dist/plugins/browser/no-scroll.d.ts +30 -0
  670. package/dist/plugins/browser/no-scroll.d.ts.map +1 -0
  671. package/dist/plugins/browser/no-scroll.js +57 -0
  672. package/dist/plugins/browser/no-scroll.js.map +1 -0
  673. package/dist/plugins/browser/partial-content-changed-event.d.ts +11 -0
  674. package/dist/plugins/browser/partial-content-changed-event.d.ts.map +1 -0
  675. package/dist/plugins/browser/partial-content-changed-event.js +22 -0
  676. package/dist/plugins/browser/partial-content-changed-event.js.map +1 -0
  677. package/dist/plugins/browser/piwik-track-feature-selection-event.d.ts +20 -0
  678. package/dist/plugins/browser/piwik-track-feature-selection-event.d.ts.map +1 -0
  679. package/dist/plugins/browser/piwik-track-feature-selection-event.js +41 -0
  680. package/dist/plugins/browser/piwik-track-feature-selection-event.js.map +1 -0
  681. package/dist/plugins/browser/piwik-track-fullscreen-toggle-event.d.ts +18 -0
  682. package/dist/plugins/browser/piwik-track-fullscreen-toggle-event.d.ts.map +1 -0
  683. package/dist/plugins/browser/piwik-track-fullscreen-toggle-event.js +30 -0
  684. package/dist/plugins/browser/piwik-track-fullscreen-toggle-event.js.map +1 -0
  685. package/dist/plugins/browser/search.d.ts +14 -0
  686. package/dist/plugins/browser/search.d.ts.map +1 -0
  687. package/dist/plugins/browser/search.js +25 -0
  688. package/dist/plugins/browser/search.js.map +1 -0
  689. package/dist/plugins/browser/share-position-link.d.ts +121 -0
  690. package/dist/plugins/browser/share-position-link.d.ts.map +1 -0
  691. package/dist/plugins/browser/share-position-link.js +212 -0
  692. package/dist/plugins/browser/share-position-link.js.map +1 -0
  693. package/dist/plugins/browser/toggle-mobile-views.d.ts +14 -0
  694. package/dist/plugins/browser/toggle-mobile-views.d.ts.map +1 -0
  695. package/dist/plugins/browser/toggle-mobile-views.js +42 -0
  696. package/dist/plugins/browser/toggle-mobile-views.js.map +1 -0
  697. package/dist/plugins/browser/user-geolocation.d.ts +18 -0
  698. package/dist/plugins/browser/user-geolocation.d.ts.map +1 -0
  699. package/dist/plugins/browser/user-geolocation.js +71 -0
  700. package/dist/plugins/browser/user-geolocation.js.map +1 -0
  701. package/dist/plugins/browser/views.d.ts +17 -0
  702. package/dist/plugins/browser/views.d.ts.map +1 -0
  703. package/dist/plugins/browser/views.js +86 -0
  704. package/dist/plugins/browser/views.js.map +1 -0
  705. package/dist/plugins/browser-defaults.d.ts +35 -0
  706. package/dist/plugins/browser-defaults.d.ts.map +1 -0
  707. package/dist/plugins/browser-defaults.js +70 -0
  708. package/dist/plugins/browser-defaults.js.map +1 -0
  709. package/dist/plugins/common/feature-selection-details-url.d.ts +18 -0
  710. package/dist/plugins/common/feature-selection-details-url.d.ts.map +1 -0
  711. package/dist/plugins/common/feature-selection-details-url.js +79 -0
  712. package/dist/plugins/common/feature-selection-details-url.js.map +1 -0
  713. package/dist/plugins/common/lang.d.ts +9 -0
  714. package/dist/plugins/common/lang.d.ts.map +1 -0
  715. package/dist/plugins/common/lang.js +17 -0
  716. package/dist/plugins/common/lang.js.map +1 -0
  717. package/dist/plugins/common/measure-distance.d.ts +30 -0
  718. package/dist/plugins/common/measure-distance.d.ts.map +1 -0
  719. package/dist/plugins/common/measure-distance.js +143 -0
  720. package/dist/plugins/common/measure-distance.js.map +1 -0
  721. package/dist/plugins/common/ol-proxy.d.ts +13 -0
  722. package/dist/plugins/common/ol-proxy.d.ts.map +1 -0
  723. package/dist/plugins/common/ol-proxy.js +59 -0
  724. package/dist/plugins/common/ol-proxy.js.map +1 -0
  725. package/dist/plugins/common/render-await-feature-details-loaded.d.ts +16 -0
  726. package/dist/plugins/common/render-await-feature-details-loaded.d.ts.map +1 -0
  727. package/dist/plugins/common/render-await-feature-details-loaded.js +79 -0
  728. package/dist/plugins/common/render-await-feature-details-loaded.js.map +1 -0
  729. package/dist/plugins/common/render-await-list-feature-sources-loaded.d.ts +15 -0
  730. package/dist/plugins/common/render-await-list-feature-sources-loaded.d.ts.map +1 -0
  731. package/dist/plugins/common/render-await-list-feature-sources-loaded.js +58 -0
  732. package/dist/plugins/common/render-await-list-feature-sources-loaded.js.map +1 -0
  733. package/dist/plugins/server/feature-deep-link.d.ts +21 -0
  734. package/dist/plugins/server/feature-deep-link.d.ts.map +1 -0
  735. package/dist/plugins/server/feature-deep-link.js +37 -0
  736. package/dist/plugins/server/feature-deep-link.js.map +1 -0
  737. package/dist/plugins/server-defaults.d.ts +16 -0
  738. package/dist/plugins/server-defaults.d.ts.map +1 -0
  739. package/dist/plugins/server-defaults.js +25 -0
  740. package/dist/plugins/server-defaults.js.map +1 -0
  741. package/dist/renderer/browser-dom.d.ts +7 -0
  742. package/dist/renderer/browser-dom.d.ts.map +1 -0
  743. package/dist/renderer/browser-dom.js +12 -0
  744. package/dist/renderer/browser-dom.js.map +1 -0
  745. package/dist/renderer/server-string.d.ts +4 -0
  746. package/dist/renderer/server-string.d.ts.map +1 -0
  747. package/dist/renderer/server-string.js +10 -0
  748. package/dist/renderer/server-string.js.map +1 -0
  749. package/dist/server-handler.d.ts +2 -0
  750. package/dist/server-handler.d.ts.map +1 -0
  751. package/dist/server-handler.js +32 -0
  752. package/dist/server-handler.js.map +1 -0
  753. package/dist/store/actions.d.ts +261 -0
  754. package/dist/store/actions.d.ts.map +1 -0
  755. package/dist/store/actions.js +478 -0
  756. package/dist/store/actions.js.map +1 -0
  757. package/dist/store/reducers.d.ts +228 -0
  758. package/dist/store/reducers.d.ts.map +1 -0
  759. package/dist/store/reducers.js +386 -0
  760. package/dist/store/reducers.js.map +1 -0
  761. package/dist/store/selectors.d.ts +443 -0
  762. package/dist/store/selectors.d.ts.map +1 -0
  763. package/dist/store/selectors.js +195 -0
  764. package/dist/store/selectors.js.map +1 -0
  765. package/dist/types.d.ts +286 -0
  766. package/dist/types.d.ts.map +1 -0
  767. package/dist/types.js +2 -0
  768. package/dist/types.js.map +1 -0
  769. package/package.json +78 -0
  770. package/src/img/mapsight-ui/check-empty.svg +1 -0
  771. package/src/img/mapsight-ui/check.svg +2 -0
  772. package/src/img/mapsight-ui/close-list.svg +1 -0
  773. package/src/img/mapsight-ui/close.svg +1 -0
  774. package/src/img/mapsight-ui/error.svg +1 -0
  775. package/src/img/mapsight-ui/fullscreen-close.svg +1 -0
  776. package/src/img/mapsight-ui/fullscreen.svg +1 -0
  777. package/src/img/mapsight-ui/geo-active.svg +1 -0
  778. package/src/img/mapsight-ui/geo-error.svg +1 -0
  779. package/src/img/mapsight-ui/geo-inactive.svg +1 -0
  780. package/src/img/mapsight-ui/info.svg +1 -0
  781. package/src/img/mapsight-ui/layers.svg +1 -0
  782. package/src/img/mapsight-ui/loading.svg +1 -0
  783. package/src/img/mapsight-ui/map.svg +1 -0
  784. package/src/img/mapsight-ui/measure-distance.svg +7 -0
  785. package/src/img/mapsight-ui/open-list.svg +1 -0
  786. package/src/img/mapsight-ui/place-marker.svg +4 -0
  787. package/src/img/mapsight-ui/print.svg +4 -0
  788. package/src/img/mapsight-ui/reset-active.svg +1 -0
  789. package/src/img/mapsight-ui/reset.svg +1 -0
  790. package/src/img/mapsight-ui/search.svg +1 -0
  791. package/src/img/mapsight-ui/sharing.svg +7 -0
  792. package/src/img/mapsight-ui/sort-active.svg +1 -0
  793. package/src/img/mapsight-ui/sort.svg +1 -0
  794. package/src/img/mapsight-ui/watermark.svg +1 -0
  795. package/src/img/mapsight-ui/zoom-in.svg +3 -0
  796. package/src/img/mapsight-ui/zoom-out.svg +3 -0
  797. package/src/js/components/app.jsx +237 -0
  798. package/src/js/components/close-overlay-button.tsx +27 -0
  799. package/src/js/components/feature-details-content/feature-details-content-inner.tsx +116 -0
  800. package/src/js/components/feature-details-content/feature-details-content.jsx +185 -0
  801. package/src/js/components/feature-details-content/index.js +20 -0
  802. package/src/js/components/feature-details-content/share-feature-link-modal.jsx +56 -0
  803. package/src/js/components/feature-list/content.jsx +42 -0
  804. package/src/js/components/feature-list/context.tsx +47 -0
  805. package/src/js/components/feature-list/empty-message.jsx +15 -0
  806. package/src/js/components/feature-list/filter.jsx +35 -0
  807. package/src/js/components/feature-list/footer.jsx +5 -0
  808. package/src/js/components/feature-list/grouped-content.jsx +74 -0
  809. package/src/js/components/feature-list/header.jsx +7 -0
  810. package/src/js/components/feature-list/hooks/useAutoloadFeatureSource.ts +25 -0
  811. package/src/js/components/feature-list/hooks/useFeatureListFeatureSource.ts +22 -0
  812. package/src/js/components/feature-list/hooks/useFeatureListItemGroups.ts +127 -0
  813. package/src/js/components/feature-list/hooks/useFeatureListState.ts +90 -0
  814. package/src/js/components/feature-list/hooks/useKeyboardNavigation.js +112 -0
  815. package/src/js/components/feature-list/hooks/useMakeHeaderSticky.js +40 -0
  816. package/src/js/components/feature-list/hooks/usePaginatedFilteredFeatures.ts +129 -0
  817. package/src/js/components/feature-list/hooks/useRestoreDocumentScroll.js +12 -0
  818. package/src/js/components/feature-list/hooks/useSelectFeature.js +88 -0
  819. package/src/js/components/feature-list/index.jsx +278 -0
  820. package/src/js/components/feature-list/pagination.tsx +57 -0
  821. package/src/js/components/feature-list/query-input.jsx +14 -0
  822. package/src/js/components/feature-list-cycling/button.jsx +13 -0
  823. package/src/js/components/feature-list-cycling/dot.jsx +43 -0
  824. package/src/js/components/feature-list-cycling/feature-list-cycling.jsx +153 -0
  825. package/src/js/components/feature-list-cycling/index.js +82 -0
  826. package/src/js/components/feature-list-item/head.jsx +131 -0
  827. package/src/js/components/feature-list-item/hooks/useFeatureListItemScrollAndFocus.js +51 -0
  828. package/src/js/components/feature-list-item/hooks/useFeatureListItemState.ts +75 -0
  829. package/src/js/components/feature-list-item/icon.jsx +35 -0
  830. package/src/js/components/feature-list-item/index.jsx +168 -0
  831. package/src/js/components/feature-list-sorting/feature-list-sorting.tsx +144 -0
  832. package/src/js/components/feature-list-sorting/index.js +25 -0
  833. package/src/js/components/feature-list-sorting/status-indicator.jsx +10 -0
  834. package/src/js/components/feature-select-button.jsx +70 -0
  835. package/src/js/components/feature-selection-info/close-button.jsx +64 -0
  836. package/src/js/components/feature-selection-info/container.jsx +9 -0
  837. package/src/js/components/feature-selection-info/header.tsx +27 -0
  838. package/src/js/components/feature-selection-info/index.tsx +81 -0
  839. package/src/js/components/feature-selection-info/with-sticky-header.jsx +61 -0
  840. package/src/js/components/feature-selection-info/without-sticky-header.jsx +19 -0
  841. package/src/js/components/feature-selection-info/wrapper.jsx +43 -0
  842. package/src/js/components/helping/app-channel.tsx +99 -0
  843. package/src/js/components/helping/app-context.tsx +32 -0
  844. package/src/js/components/helping/visibility-wrapper.jsx +23 -0
  845. package/src/js/components/instance.tsx +48 -0
  846. package/src/js/components/layer-switcher/GroupedLayerSwitcher.js +47 -0
  847. package/src/js/components/layer-switcher/LayerSwitcher.js +27 -0
  848. package/src/js/components/layer-switcher/LayerSwitcherEntry.js +132 -0
  849. package/src/js/components/layer-switcher/LayerSwticherContainer.jsx +80 -0
  850. package/src/js/components/layer-switcher/index.js +47 -0
  851. package/src/js/components/layout/additional-container/content.jsx +10 -0
  852. package/src/js/components/layout/additional-container/index.jsx +5 -0
  853. package/src/js/components/layout/additional-container/marginal.jsx +10 -0
  854. package/src/js/components/layout/main-container.jsx +5 -0
  855. package/src/js/components/layout/map-row.jsx +5 -0
  856. package/src/js/components/layout/title-bar.tsx +25 -0
  857. package/src/js/components/layout/wrapper.jsx +28 -0
  858. package/src/js/components/link-share.jsx +78 -0
  859. package/src/js/components/main-panel/container.tsx +23 -0
  860. package/src/js/components/main-panel/context.jsx +62 -0
  861. package/src/js/components/main-panel/index.tsx +46 -0
  862. package/src/js/components/main-panel/list-toggle-button.jsx +43 -0
  863. package/src/js/components/map-overlay/area.jsx +17 -0
  864. package/src/js/components/map-overlay/attribution-entries.tsx +33 -0
  865. package/src/js/components/map-overlay/attribution.tsx +25 -0
  866. package/src/js/components/map-overlay/combined-buttons.jsx +5 -0
  867. package/src/js/components/map-overlay/index.jsx +5 -0
  868. package/src/js/components/map-overlay/info-overlay-left.jsx +51 -0
  869. package/src/js/components/map-overlay/info-overlay-modal.tsx +49 -0
  870. package/src/js/components/map-overlay/info-overlay-right.jsx +46 -0
  871. package/src/js/components/map-overlay/layer-switcher-overlay.tsx +100 -0
  872. package/src/js/components/map-overlay/legend.tsx +22 -0
  873. package/src/js/components/map-overlay/logo.jsx +11 -0
  874. package/src/js/components/map-overlay/measure-distance-button.tsx +116 -0
  875. package/src/js/components/map-overlay/measure-distance-overlay.jsx +56 -0
  876. package/src/js/components/map-overlay/mini-legend.jsx +103 -0
  877. package/src/js/components/map-overlay/region-selector.jsx +63 -0
  878. package/src/js/components/map-overlay/search-overlay.jsx +79 -0
  879. package/src/js/components/map-overlay/share-position-link-button.tsx +144 -0
  880. package/src/js/components/map-overlay/tool-overlay.tsx +28 -0
  881. package/src/js/components/map-overlay/user-geo-location-button.jsx +89 -0
  882. package/src/js/components/map-overlay/zoom-button.jsx +98 -0
  883. package/src/js/components/map-overlay/zoom-buttons.jsx +26 -0
  884. package/src/js/components/map-synced-interlay/index.js +17 -0
  885. package/src/js/components/map-synced-interlay/map-synced-interlay.jsx +22 -0
  886. package/src/js/components/map-synced-interlay/tooltip-content.tsx +22 -0
  887. package/src/js/components/map-synced-interlay/tooltip.tsx +199 -0
  888. package/src/js/components/map-wrapper.tsx +65 -0
  889. package/src/js/components/map.jsx +37 -0
  890. package/src/js/components/modal.tsx +40 -0
  891. package/src/js/components/query-input-with-label.tsx +71 -0
  892. package/src/js/components/query-input.tsx +81 -0
  893. package/src/js/components/search/index.jsx +83 -0
  894. package/src/js/components/search/query-input.jsx +20 -0
  895. package/src/js/components/search/result-entry.jsx +63 -0
  896. package/src/js/components/search/result.jsx +71 -0
  897. package/src/js/components/switcher/GroupedSwitcher.jsx +42 -0
  898. package/src/js/components/switcher/Switcher.jsx +54 -0
  899. package/src/js/components/switcher/SwitcherButton.jsx +23 -0
  900. package/src/js/components/switcher/SwitcherEntry.jsx +143 -0
  901. package/src/js/components/switcher/SwitcherHeader.jsx +58 -0
  902. package/src/js/components/switcher/SwitcherStatusIcon.jsx +36 -0
  903. package/src/js/components/tag-switcher/TagSwitcher.jsx +57 -0
  904. package/src/js/components/tag-switcher/createTagSwitcherEntry.js +41 -0
  905. package/src/js/components/tag-switcher/createTagSwitcherHeader.js +34 -0
  906. package/src/js/components/tag-switcher/index.js +20 -0
  907. package/src/js/components/time-filter.jsx +187 -0
  908. package/src/js/components/view-toggle-button/desktop-button.jsx +13 -0
  909. package/src/js/components/view-toggle-button/index.js +39 -0
  910. package/src/js/components/view-toggle-button/mobile-button.jsx +13 -0
  911. package/src/js/components/view-toggle-button/view-toggle-button.jsx +74 -0
  912. package/src/js/components/view-toggle-button/viewport-button.jsx +13 -0
  913. package/src/js/config/constants/app.ts +16 -0
  914. package/src/js/config/constants/controllers.ts +11 -0
  915. package/src/js/config/feature/selections.ts +13 -0
  916. package/src/js/config/feature/sources.ts +77 -0
  917. package/src/js/config/index.ts +133 -0
  918. package/src/js/config/map/featureInteractions.ts +53 -0
  919. package/src/js/config/map/interactions.ts +15 -0
  920. package/src/js/config/map/layers.ts +190 -0
  921. package/src/js/controllers/defaults.ts +36 -0
  922. package/src/js/embed/browser.ts +89 -0
  923. package/src/js/embed/node.ts +57 -0
  924. package/src/js/filters/tag-filter.ts +135 -0
  925. package/src/js/filters/time-filter.ts +53 -0
  926. package/src/js/global.d.ts +7 -0
  927. package/src/js/helpers/components.ts +66 -0
  928. package/src/js/helpers/create-action-watcher.ts +35 -0
  929. package/src/js/helpers/events.ts +11 -0
  930. package/src/js/helpers/get-feature-property.ts +14 -0
  931. package/src/js/helpers/i18n/de.ts +145 -0
  932. package/src/js/helpers/i18n/en.ts +140 -0
  933. package/src/js/helpers/i18n/index.ts +41 -0
  934. package/src/js/helpers/makeReplaceableComponent.ts +0 -0
  935. package/src/js/helpers/mod-classes.ts +47 -0
  936. package/src/js/helpers/react.ts +14 -0
  937. package/src/js/helpers/scroll-to-element-top.ts +16 -0
  938. package/src/js/helpers/sort-features-by-distance.ts +102 -0
  939. package/src/js/helpers/sticky.js +143 -0
  940. package/src/js/hooks/useCallbackRef.ts +14 -0
  941. package/src/js/hooks/useControllableState.ts +50 -0
  942. package/src/js/hooks/useDebounce.ts +32 -0
  943. package/src/js/hooks/useHandleEscapeKeyDown.ts +27 -0
  944. package/src/js/hooks/useMapsightPanel.ts +40 -0
  945. package/src/js/hooks/useMountable.ts +38 -0
  946. package/src/js/hooks/usePrevious.ts +15 -0
  947. package/src/js/hooks/useStickyHeader.ts +51 -0
  948. package/src/js/hooks/useUpdateMapSizeCallback.ts +32 -0
  949. package/src/js/hooks/useUpdateMapSizeOnRender.ts +16 -0
  950. package/src/js/hooks/useUpdateMapSizeOnTransitionEnd.ts +40 -0
  951. package/src/js/hooks/useUpdateMapSizeOnViewChange.ts +36 -0
  952. package/src/js/index.ts +319 -0
  953. package/src/js/plugins/browser/app-title.ts +36 -0
  954. package/src/js/plugins/browser/debug.ts +37 -0
  955. package/src/js/plugins/browser/feature-deep-link.ts +222 -0
  956. package/src/js/plugins/browser/local-storage.ts +79 -0
  957. package/src/js/plugins/browser/native-fullscreen.ts +81 -0
  958. package/src/js/plugins/browser/no-scroll.ts +90 -0
  959. package/src/js/plugins/browser/partial-content-changed-event.ts +23 -0
  960. package/src/js/plugins/browser/piwik-track-feature-selection-event.ts +75 -0
  961. package/src/js/plugins/browser/piwik-track-fullscreen-toggle-event.ts +46 -0
  962. package/src/js/plugins/browser/search.ts +42 -0
  963. package/src/js/plugins/browser/share-position-link.ts +463 -0
  964. package/src/js/plugins/browser/toggle-mobile-views.ts +60 -0
  965. package/src/js/plugins/browser/user-geolocation.ts +134 -0
  966. package/src/js/plugins/browser/views.ts +141 -0
  967. package/src/js/plugins/browser-defaults.ts +101 -0
  968. package/src/js/plugins/common/feature-selection-details-url.ts +135 -0
  969. package/src/js/plugins/common/lang.ts +17 -0
  970. package/src/js/plugins/common/measure-distance.ts +223 -0
  971. package/src/js/plugins/common/ol-proxy.ts +68 -0
  972. package/src/js/plugins/common/render-await-feature-details-loaded.ts +153 -0
  973. package/src/js/plugins/common/render-await-list-feature-sources-loaded.ts +108 -0
  974. package/src/js/plugins/server/feature-deep-link.ts +67 -0
  975. package/src/js/plugins/server-defaults.ts +36 -0
  976. package/src/js/renderer/browser-dom.tsx +23 -0
  977. package/src/js/renderer/server-string.tsx +17 -0
  978. package/src/js/server-handler.js +39 -0
  979. package/src/js/store/actions.ts +648 -0
  980. package/src/js/store/reducers.ts +491 -0
  981. package/src/js/store/selectors.ts +449 -0
  982. package/src/js/types.ts +381 -0
  983. package/src/scss/_reset.scss +205 -0
  984. package/src/scss/_variables.scss +94 -0
  985. package/src/scss/blocks/_additional-container.scss +25 -0
  986. package/src/scss/blocks/_app-overlay.scss +19 -0
  987. package/src/scss/blocks/_attribution.scss +41 -0
  988. package/src/scss/blocks/_dialog-close-button.scss +32 -0
  989. package/src/scss/blocks/_feature-link.scss +44 -0
  990. package/src/scss/blocks/_feature-selection-info.scss +107 -0
  991. package/src/scss/blocks/_features-sorting.scss +23 -0
  992. package/src/scss/blocks/_filter-button.scss +78 -0
  993. package/src/scss/blocks/_filter.scss +16 -0
  994. package/src/scss/blocks/_flex.scss +20 -0
  995. package/src/scss/blocks/_hint.scss +58 -0
  996. package/src/scss/blocks/_info-overlay.scss +26 -0
  997. package/src/scss/blocks/_input-container.scss +31 -0
  998. package/src/scss/blocks/_layer-switcher-overlay.scss +24 -0
  999. package/src/scss/blocks/_layer-switcher.scss +138 -0
  1000. package/src/scss/blocks/_link-share.scss +25 -0
  1001. package/src/scss/blocks/_list-cycling-box.scss +143 -0
  1002. package/src/scss/blocks/_list-header.scss +20 -0
  1003. package/src/scss/blocks/_list-pagination.scss +41 -0
  1004. package/src/scss/blocks/_list-toggle-button.scss +57 -0
  1005. package/src/scss/blocks/_list-wrapper.scss +25 -0
  1006. package/src/scss/blocks/_list.scss +100 -0
  1007. package/src/scss/blocks/_logo.scss +27 -0
  1008. package/src/scss/blocks/_main-container.scss +9 -0
  1009. package/src/scss/blocks/_map-overlay-combined-buttons.scss +45 -0
  1010. package/src/scss/blocks/_map-overlay.scss +224 -0
  1011. package/src/scss/blocks/_map-row.scss +13 -0
  1012. package/src/scss/blocks/_map-synced-interlay.scss +18 -0
  1013. package/src/scss/blocks/_map-target.scss +7 -0
  1014. package/src/scss/blocks/_map-usage.scss +6 -0
  1015. package/src/scss/blocks/_map-wrapper.scss +27 -0
  1016. package/src/scss/blocks/_marginal.scss +32 -0
  1017. package/src/scss/blocks/_mini-legend.scss +51 -0
  1018. package/src/scss/blocks/_modal.scss +67 -0
  1019. package/src/scss/blocks/_page-title.scss +19 -0
  1020. package/src/scss/blocks/_panel-container.scss +36 -0
  1021. package/src/scss/blocks/_panel.scss +30 -0
  1022. package/src/scss/blocks/_query-input-with-label.scss +55 -0
  1023. package/src/scss/blocks/_region-selector.scss +44 -0
  1024. package/src/scss/blocks/_search-overlay.scss +21 -0
  1025. package/src/scss/blocks/_search-result.scss +127 -0
  1026. package/src/scss/blocks/_search.scss +84 -0
  1027. package/src/scss/blocks/_share-link.scss +15 -0
  1028. package/src/scss/blocks/_sticky-header.scss +50 -0
  1029. package/src/scss/blocks/_switcher-header.scss +17 -0
  1030. package/src/scss/blocks/_tool-overlay.scss +38 -0
  1031. package/src/scss/blocks/_tooltip.scss +51 -0
  1032. package/src/scss/blocks/_viewport-button.scss +101 -0
  1033. package/src/scss/blocks/_watermark.scss +21 -0
  1034. package/src/scss/blocks/_wrapper.scss +22 -0
  1035. package/src/scss/default.scss +63 -0
  1036. package/src/scss/global/_no-scroll.scss +6 -0
  1037. package/src/scss/helpers/visually-hidden.scss +8 -0
  1038. package/src/scss/mixins/_visually-hidden.scss +31 -0
  1039. package/src/scss/ol/_viewport.scss +18 -0
  1040. package/src/scss/themes/2022-03.scss +48 -0
@@ -0,0 +1,17 @@
1
+ import { type View } from "../../config/constants/app";
2
+ import type { MapsightUiContext, PluginInstance } from "../../types.ts";
3
+ /**
4
+ * This plugin will dispatch breakpoint changes for the specified renderBreakpoints (@see {CreateOptions.renderBreakpoints})
5
+ *
6
+ * @param [options] options
7
+ * @param [options.determineInitialView] function to determine the INITIAL view breakpoint for
8
+ * the given currently active render breakpoints. Used for client-side rendering ONLY! Otherwise the initial view
9
+ * is determined server side.
10
+ * @param [options.resizeThrottleWait=100] ms to wait between window resize events before updating breakpoints
11
+ * @returns plugin instance
12
+ */
13
+ export default function createPlugin(options?: {
14
+ determineInitialView?: (currentBreakpoints: string[], context: MapsightUiContext) => View;
15
+ resizeThrottleWait?: number;
16
+ }): PluginInstance;
17
+ //# sourceMappingURL=views.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"views.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/browser/views.ts"],"names":[],"mappings":"AAEA,OAAO,EAA4B,KAAK,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAEhF,OAAO,KAAK,EACX,iBAAiB,EAEjB,cAAc,EACd,MAAM,gBAAgB,CAAC;AAiBxB;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CACnC,OAAO,GAAE;IACR,oBAAoB,CAAC,EAAE,CACtB,kBAAkB,EAAE,MAAM,EAAE,EAC5B,OAAO,EAAE,iBAAiB,KACtB,IAAI,CAAC;IACV,kBAAkB,CAAC,EAAE,MAAM,CAAC;CACvB,GACJ,cAAc,CAiFhB"}
@@ -0,0 +1,86 @@
1
+ import throttle from "lodash/throttle";
2
+ import { VIEW_DESKTOP, VIEW_MOBILE } from "../../config/constants/app";
3
+ import { setViewBreakpoints } from "../../store/actions";
4
+ const getViewportWidth = () => Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
5
+ const defaultResizeThrottleWait = 100;
6
+ function defaultDetermineInitialClientRenderingView(currentBreakpoints, _context) {
7
+ // NOTE: This will only be used for client side only rendering, otherwise INITIAL view will be determined by server!
8
+ return currentBreakpoints.indexOf("mobile") > -1
9
+ ? VIEW_MOBILE
10
+ : VIEW_DESKTOP;
11
+ }
12
+ /**
13
+ * This plugin will dispatch breakpoint changes for the specified renderBreakpoints (@see {CreateOptions.renderBreakpoints})
14
+ *
15
+ * @param [options] options
16
+ * @param [options.determineInitialView] function to determine the INITIAL view breakpoint for
17
+ * the given currently active render breakpoints. Used for client-side rendering ONLY! Otherwise the initial view
18
+ * is determined server side.
19
+ * @param [options.resizeThrottleWait=100] ms to wait between window resize events before updating breakpoints
20
+ * @returns plugin instance
21
+ */
22
+ export default function createPlugin(options = {}) {
23
+ const { determineInitialView = defaultDetermineInitialClientRenderingView, resizeThrottleWait = defaultResizeThrottleWait, } = options;
24
+ // sorted {label: [min (included), max (included)]}
25
+ // -1 = Infinity
26
+ let currentBreakpoints = [];
27
+ let currentWidth;
28
+ let renderBreakpoints = {};
29
+ if (typeof window === "undefined") {
30
+ console.error("This plugin will only work as intended in the browser!");
31
+ }
32
+ let isInitialSetDone = false;
33
+ return {
34
+ afterInit: function viewsInitPlugin(context) {
35
+ currentWidth = getViewportWidth();
36
+ renderBreakpoints = context.createOptions.renderBreakpoints ?? {};
37
+ currentBreakpoints = calculateCurrentBreakpoints(renderBreakpoints, currentWidth);
38
+ if (!context.isStateReHydrated && context.initialState?.app) {
39
+ context.initialState.app.view = determineInitialView(currentBreakpoints, context);
40
+ }
41
+ },
42
+ afterCreate: function viewsCreatePlugin(context) {
43
+ // We cannot change the state before we have not at least rendered the dehydrated html at least once
44
+ // to prevent a mixed up DOM when predicted (server-side) view and client-side determined view mismatch or has changed
45
+ // since page load. If the app is not rehydrated but initially rendered in the client we can omit the additional render
46
+ // and set the view breakpoints on creation (before render).
47
+ if (!context.isStateReHydrated) {
48
+ isInitialSetDone = true;
49
+ context.store?.dispatch(setViewBreakpoints(currentBreakpoints));
50
+ }
51
+ window.addEventListener("resize", throttle(function handleWindowResize() {
52
+ const widthBefore = currentWidth;
53
+ currentWidth = getViewportWidth();
54
+ if (widthBefore === currentWidth) {
55
+ return;
56
+ }
57
+ const breakpointsBefore = currentBreakpoints;
58
+ currentBreakpoints = calculateCurrentBreakpoints(renderBreakpoints, currentWidth);
59
+ if ((context.hasRendered &&
60
+ diffBreakpoints(breakpointsBefore, currentBreakpoints).length) ||
61
+ diffBreakpoints(currentBreakpoints, breakpointsBefore)
62
+ .length) {
63
+ context.store?.dispatch(setViewBreakpoints(currentBreakpoints));
64
+ isInitialSetDone = true;
65
+ }
66
+ }, resizeThrottleWait));
67
+ },
68
+ afterRender: function (context) {
69
+ if (!isInitialSetDone) {
70
+ isInitialSetDone = true;
71
+ context.store?.dispatch(setViewBreakpoints(currentBreakpoints));
72
+ }
73
+ },
74
+ };
75
+ }
76
+ function diffBreakpoints(a, b) {
77
+ return a.filter((x) => !b.includes(x));
78
+ }
79
+ function calculateCurrentBreakpoints(breakpoints, currentWidth) {
80
+ return Object.keys(breakpoints).filter((key) => {
81
+ const from = breakpoints[key][0];
82
+ const end = breakpoints[key][1];
83
+ return from <= currentWidth && (end === -1 || end >= currentWidth);
84
+ });
85
+ }
86
+ //# sourceMappingURL=views.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"views.js","sourceRoot":"","sources":["../../../src/js/plugins/browser/views.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AAEvC,OAAO,EAAC,YAAY,EAAE,WAAW,EAAY,MAAM,4BAA4B,CAAC;AAChF,OAAO,EAAC,kBAAkB,EAAC,MAAM,qBAAqB,CAAC;AAOvD,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAC7B,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,WAAW,EAAE,MAAM,CAAC,UAAU,IAAI,CAAC,CAAC,CAAC;AAExE,MAAM,yBAAyB,GAAG,GAAG,CAAC;AAEtC,SAAS,0CAA0C,CAClD,kBAA4B,EAC5B,QAA2B;IAE3B,oHAAoH;IACpH,OAAO,kBAAkB,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QAC/C,CAAC,CAAC,WAAW;QACb,CAAC,CAAC,YAAY,CAAC;AACjB,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,CAA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G,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QAEhC,OAAO,IAAI,IAAI,YAAY,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC,IAAI,GAAG,IAAI,YAAY,CAAC,CAAC;IACpE,CAAC,CAAqB,CAAC;AACxB,CAAC"}
@@ -0,0 +1,35 @@
1
+ import type { PluginDefinition } from "../types.ts";
2
+ import createAppTitlePlugin from "./browser/app-title.ts";
3
+ import createFeatureDeepLinkPlugin from "./browser/feature-deep-link.ts";
4
+ import createLocalStoragePlugin from "./browser/local-storage.ts";
5
+ import createNoScrollPlugin from "./browser/no-scroll.ts";
6
+ import createPiwikTrackFeatureSelectionEventPlugin from "./browser/piwik-track-feature-selection-event.ts";
7
+ import createPiwikTrackFullscreenToggleEventPlugin from "./browser/piwik-track-fullscreen-toggle-event.ts";
8
+ import createSearchPlugin from "./browser/search.ts";
9
+ import createToggleMobileViewsPlugin from "./browser/toggle-mobile-views.ts";
10
+ import createUserGeolocationPlugin from "./browser/user-geolocation.ts";
11
+ import createViewsPlugin from "./browser/views.ts";
12
+ import createFeatureSelectionDetailsUrlPlugin from "./common/feature-selection-details-url.ts";
13
+ import createOlProxyPlugin from "./common/ol-proxy.ts";
14
+ /**
15
+ * Create the default set of plugins for use in the browser IN ORDER!
16
+ *
17
+ * @param options options map for default plugins
18
+ * @returns sorted list of plugins
19
+ */
20
+ export default function createDefaultPlugins(options?: {
21
+ olProxy?: Parameters<typeof createOlProxyPlugin>[0];
22
+ appTitle?: Parameters<typeof createAppTitlePlugin>[0];
23
+ featurePreselectDeepLink?: Parameters<typeof createFeatureDeepLinkPlugin>[0];
24
+ featureDeepLink?: Parameters<typeof createFeatureDeepLinkPlugin>[0];
25
+ featureSelectionDetailsUrl?: Parameters<typeof createFeatureSelectionDetailsUrlPlugin>[0];
26
+ localStoragePlugin?: Parameters<typeof createLocalStoragePlugin>[0];
27
+ noScroll?: Parameters<typeof createNoScrollPlugin>[0];
28
+ piwikTrackFeatureSelectionEvent?: Parameters<typeof createPiwikTrackFeatureSelectionEventPlugin>[0];
29
+ piwikTrackFullscreenToggleEvent?: Parameters<typeof createPiwikTrackFullscreenToggleEventPlugin>[0];
30
+ search?: Parameters<typeof createSearchPlugin>[0];
31
+ toggleMobileViews?: Parameters<typeof createToggleMobileViewsPlugin>[0];
32
+ userGeolocation?: Parameters<typeof createUserGeolocationPlugin>[0];
33
+ views?: Parameters<typeof createViewsPlugin>[0];
34
+ }): PluginDefinition[];
35
+ //# sourceMappingURL=browser-defaults.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser-defaults.d.ts","sourceRoot":"","sources":["../../src/js/plugins/browser-defaults.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,aAAa,CAAC;AAClD,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,2BAA2B,MAAM,gCAAgC,CAAC;AACzE,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAClE,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,2CAA2C,MAAM,kDAAkD,CAAC;AAC3G,OAAO,2CAA2C,MAAM,kDAAkD,CAAC;AAE3G,OAAO,kBAAkB,MAAM,qBAAqB,CAAC;AACrD,OAAO,6BAA6B,MAAM,kCAAkC,CAAC;AAC7E,OAAO,2BAA2B,MAAM,+BAA+B,CAAC;AACxE,OAAO,iBAAiB,MAAM,oBAAoB,CAAC;AACnD,OAAO,sCAAsC,MAAM,2CAA2C,CAAC;AAE/F,OAAO,mBAAmB,MAAM,sBAAsB,CAAC;AAEvD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAC3C,OAAO,GAAE;IACR,OAAO,CAAC,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;IACpD,QAAQ,CAAC,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC;IACtD,wBAAwB,CAAC,EAAE,UAAU,CACpC,OAAO,2BAA2B,CAClC,CAAC,CAAC,CAAC,CAAC;IACL,eAAe,CAAC,EAAE,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAAC;IACpE,0BAA0B,CAAC,EAAE,UAAU,CACtC,OAAO,sCAAsC,CAC7C,CAAC,CAAC,CAAC,CAAC;IACL,kBAAkB,CAAC,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC;IACpE,QAAQ,CAAC,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC;IACtD,+BAA+B,CAAC,EAAE,UAAU,CAC3C,OAAO,2CAA2C,CAClD,CAAC,CAAC,CAAC,CAAC;IACL,+BAA+B,CAAC,EAAE,UAAU,CAC3C,OAAO,2CAA2C,CAClD,CAAC,CAAC,CAAC,CAAC;IACL,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;IAClD,iBAAiB,CAAC,EAAE,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC,CAAC,CAAC,CAAC;IACxE,eAAe,CAAC,EAAE,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAAC;IACpE,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;CAC3C,GACJ,gBAAgB,EAAE,CAqDpB"}
@@ -0,0 +1,70 @@
1
+ import { FEATURE_SELECTION_PRESELECT } from "../config/feature/selections";
2
+ import createAppTitlePlugin from "./browser/app-title.js";
3
+ import createFeatureDeepLinkPlugin from "./browser/feature-deep-link.js";
4
+ import createLocalStoragePlugin from "./browser/local-storage.js";
5
+ import createNoScrollPlugin from "./browser/no-scroll.js";
6
+ import createPiwikTrackFeatureSelectionEventPlugin from "./browser/piwik-track-feature-selection-event.js";
7
+ import createPiwikTrackFullscreenToggleEventPlugin from "./browser/piwik-track-fullscreen-toggle-event.js";
8
+ //import createQuitFullscreenOnRenderPlugin from './browser/quit-fullscreen-on-render';
9
+ import createSearchPlugin from "./browser/search.js";
10
+ import createToggleMobileViewsPlugin from "./browser/toggle-mobile-views.js";
11
+ import createUserGeolocationPlugin from "./browser/user-geolocation.js";
12
+ import createViewsPlugin from "./browser/views.js";
13
+ import createFeatureSelectionDetailsUrlPlugin from "./common/feature-selection-details-url.js";
14
+ import createLangPlugin from "./common/lang.js";
15
+ import createOlProxyPlugin from "./common/ol-proxy.js";
16
+ /**
17
+ * Create the default set of plugins for use in the browser IN ORDER!
18
+ *
19
+ * @param options options map for default plugins
20
+ * @returns sorted list of plugins
21
+ */
22
+ export default function createDefaultPlugins(options = {}) {
23
+ return [
24
+ ["lang", createLangPlugin()],
25
+ ["olProxy", createOlProxyPlugin(options.olProxy)],
26
+ ["appTitle", createAppTitlePlugin(options.appTitle)],
27
+ [
28
+ "featurePreselectDeepLink",
29
+ createFeatureDeepLinkPlugin({
30
+ getParameter: "preselect",
31
+ featureSelection: FEATURE_SELECTION_PRESELECT,
32
+ clearMissingParameters: ["feature"],
33
+ ...(options.featurePreselectDeepLink || {}),
34
+ }),
35
+ ],
36
+ [
37
+ "featureDeepLink",
38
+ createFeatureDeepLinkPlugin(options.featureDeepLink),
39
+ ],
40
+ [
41
+ "featureSelectionDetailsUrl",
42
+ createFeatureSelectionDetailsUrlPlugin(options.featureSelectionDetailsUrl),
43
+ ],
44
+ [
45
+ "localStoragePlugin",
46
+ createLocalStoragePlugin(options.localStoragePlugin),
47
+ ],
48
+ ["noScroll", createNoScrollPlugin(options.noScroll)],
49
+ [
50
+ "piwikTrackFeatureSelectionEvent",
51
+ createPiwikTrackFeatureSelectionEventPlugin(options.piwikTrackFeatureSelectionEvent),
52
+ ],
53
+ [
54
+ "piwikTrackFullscreenToggleEvent",
55
+ createPiwikTrackFullscreenToggleEventPlugin(options.piwikTrackFullscreenToggleEvent),
56
+ ],
57
+ ["search", createSearchPlugin(options.search)],
58
+ //['quitFullscreenOnRender', createQuitFullscreenOnRenderPlugin(options.quitFullscreenOnRender)],
59
+ [
60
+ "toggleMobileViews",
61
+ createToggleMobileViewsPlugin(options.toggleMobileViews),
62
+ ],
63
+ [
64
+ "userGeolocation",
65
+ createUserGeolocationPlugin(options.userGeolocation),
66
+ ],
67
+ ["views", createViewsPlugin(options.views)],
68
+ ];
69
+ }
70
+ //# sourceMappingURL=browser-defaults.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser-defaults.js","sourceRoot":"","sources":["../../src/js/plugins/browser-defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,2BAA2B,EAAC,MAAM,8BAA8B,CAAC;AAEzE,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,2BAA2B,MAAM,gCAAgC,CAAC;AACzE,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAClE,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,2CAA2C,MAAM,kDAAkD,CAAC;AAC3G,OAAO,2CAA2C,MAAM,kDAAkD,CAAC;AAC3G,uFAAuF;AACvF,OAAO,kBAAkB,MAAM,qBAAqB,CAAC;AACrD,OAAO,6BAA6B,MAAM,kCAAkC,CAAC;AAC7E,OAAO,2BAA2B,MAAM,+BAA+B,CAAC;AACxE,OAAO,iBAAiB,MAAM,oBAAoB,CAAC;AACnD,OAAO,sCAAsC,MAAM,2CAA2C,CAAC;AAC/F,OAAO,gBAAgB,MAAM,kBAAkB,CAAC;AAChD,OAAO,mBAAmB,MAAM,sBAAsB,CAAC;AAEvD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAC3C,UAsBI,EAAE;IAEN,OAAO;QACN,CAAC,MAAM,EAAE,gBAAgB,EAAE,CAAC;QAC5B,CAAC,SAAS,EAAE,mBAAmB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,CAAC,UAAU,EAAE,oBAAoB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QACpD;YACC,0BAA0B;YAC1B,2BAA2B,CAAC;gBAC3B,YAAY,EAAE,WAAW;gBACzB,gBAAgB,EAAE,2BAA2B;gBAC7C,sBAAsB,EAAE,CAAC,SAAS,CAAC;gBACnC,GAAG,CAAC,OAAO,CAAC,wBAAwB,IAAI,EAAE,CAAC;aAC3C,CAAC;SACF;QACD;YACC,iBAAiB;YACjB,2BAA2B,CAAC,OAAO,CAAC,eAAe,CAAC;SACpD;QACD;YACC,4BAA4B;YAC5B,sCAAsC,CACrC,OAAO,CAAC,0BAA0B,CAClC;SACD;QACD;YACC,oBAAoB;YACpB,wBAAwB,CAAC,OAAO,CAAC,kBAAkB,CAAC;SACpD;QACD,CAAC,UAAU,EAAE,oBAAoB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QACpD;YACC,iCAAiC;YACjC,2CAA2C,CAC1C,OAAO,CAAC,+BAA+B,CACvC;SACD;QACD;YACC,iCAAiC;YACjC,2CAA2C,CAC1C,OAAO,CAAC,+BAA+B,CACvC;SACD;QACD,CAAC,QAAQ,EAAE,kBAAkB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAC9C,iGAAiG;QACjG;YACC,mBAAmB;YACnB,6BAA6B,CAAC,OAAO,CAAC,iBAAiB,CAAC;SACxD;QACD;YACC,iBAAiB;YACjB,2BAA2B,CAAC,OAAO,CAAC,eAAe,CAAC;SACpD;QACD,CAAC,OAAO,EAAE,iBAAiB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;KAC3C,CAAC;AACH,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { MapsightUiFeatureProperty, PluginInstance } from "../../types.ts";
2
+ /**
3
+ * This plugin will load the dispatch the details url on feature selection.
4
+ *
5
+ * @param {object} [options] options
6
+ * @param {string} [options.featureSelectionsController] name of the feature selections controller, defaults to mapsight ui default
7
+ * @param {string} [options.featureSelection="select"] name of the feature selection to track
8
+ * @param {string} [options.featureSourcesController] name of the feature sources controller, defaults to mapsight ui default
9
+ * @param {string} [options.featurePropertyDetailsUrl="detailsUrl"] feature property to get the details url from
10
+ * @returns {import('../../types').PluginInstance} plugin instance
11
+ */
12
+ export default function createPlugin(options?: {
13
+ featureSelectionsController?: string;
14
+ featureSelection?: string;
15
+ featureSourcesController?: string;
16
+ featurePropertyDetailsUrl?: MapsightUiFeatureProperty;
17
+ }): PluginInstance;
18
+ //# sourceMappingURL=feature-selection-details-url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature-selection-details-url.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/common/feature-selection-details-url.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAEX,yBAAyB,EACzB,cAAc,EACd,MAAM,gBAAgB,CAAC;AAQxB;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CACnC,OAAO,GAAE;IACR,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,yBAAyB,CAAC,EAAE,yBAAyB,CAAC;CACjD,GACJ,cAAc,CA8FhB"}
@@ -0,0 +1,79 @@
1
+ import { createFeatureSelectionSelector } from "@mapsight/core/lib/feature-selections/selectors";
2
+ import { findFeatureInFeatureSourcesById } from "@mapsight/core/lib/feature-sources/selectors";
3
+ import { getAndObserveState } from "@mapsight/lib-redux/observe-state";
4
+ import * as c from "../../config/constants/controllers";
5
+ import { FEATURE_SELECTION_SELECT } from "../../config/feature/selections";
6
+ import getFeatureProperty from "../../helpers/get-feature-property";
7
+ import { setFeatureDetailsUrl } from "../../store/actions";
8
+ const defaultFeatureSelectionsController = c.FEATURE_SELECTIONS;
9
+ const defaultFeatureSourcesController = c.FEATURE_SOURCES;
10
+ const defaultFeatureSelection = FEATURE_SELECTION_SELECT;
11
+ const defaultFeaturePropertyDetailsUrl = "detailsUrl";
12
+ /**
13
+ * This plugin will load the dispatch the details url on feature selection.
14
+ *
15
+ * @param {object} [options] options
16
+ * @param {string} [options.featureSelectionsController] name of the feature selections controller, defaults to mapsight ui default
17
+ * @param {string} [options.featureSelection="select"] name of the feature selection to track
18
+ * @param {string} [options.featureSourcesController] name of the feature sources controller, defaults to mapsight ui default
19
+ * @param {string} [options.featurePropertyDetailsUrl="detailsUrl"] feature property to get the details url from
20
+ * @returns {import('../../types').PluginInstance} plugin instance
21
+ */
22
+ export default function createPlugin(options = {}) {
23
+ const { featureSelectionsController = defaultFeatureSelectionsController, featureSelection = defaultFeatureSelection, featureSourcesController = defaultFeatureSourcesController, featurePropertyDetailsUrl = defaultFeaturePropertyDetailsUrl, } = options;
24
+ const selectorSelectedFeatures = createFeatureSelectionSelector(featureSelectionsController, featureSelection);
25
+ return {
26
+ beforeRender: function setupFeatureSelection(context) {
27
+ const { store } = context;
28
+ if (!store)
29
+ return;
30
+ let unsubscribeObserveSelectedFeature;
31
+ const handleFeatureSelection = () => {
32
+ if (unsubscribeObserveSelectedFeature) {
33
+ unsubscribeObserveSelectedFeature();
34
+ unsubscribeObserveSelectedFeature = undefined;
35
+ }
36
+ const state = store.getState();
37
+ const selection = selectorSelectedFeatures(state);
38
+ const featureIds = selection?.features;
39
+ if (!featureIds || !featureIds.length) {
40
+ return;
41
+ }
42
+ // Anmerkung: Dieser Code ignoriert den Sonderfall, dass sich die URL eines bereits selektierten POI _nach_ dem Select und nach dem ersten Load aufgrund eines Reloads ändert
43
+ // Der Code in fetchText sieht zudem kein Refresh der Inhalte vor. Der angezeigte Text ist also auch aus anderen Gründen potentiell veraltet.
44
+ // In Beiden Fällen kann der User das Aktualsiseren auslösen indem er den POI deselektiert (Feature-Details schließt) und wieder selektiert.
45
+ // → diese Sonderfälle werden zu Recht ignoriert. Wo man das automatische Aktualisieren braucht, schreibe man die Description direkt in die geojson.
46
+ const detailsUrlSelector = (state) => {
47
+ const selectedFeature = findFeatureInFeatureSourcesById(state[featureSourcesController], featureIds[0]);
48
+ if (selectedFeature) {
49
+ return getFeatureProperty(selectedFeature, featurePropertyDetailsUrl);
50
+ }
51
+ return null;
52
+ };
53
+ const detailsUrl = detailsUrlSelector(state);
54
+ if (detailsUrl) {
55
+ // im Normalfall setzt der User das Select und da ist das Feature schon geladen.
56
+ store.dispatch(setFeatureDetailsUrl(detailsUrl));
57
+ return;
58
+ }
59
+ // wenn das feature anderweitig, zB. über einen Url-Parameter gesetzt wird, ist es noch nicht geladen
60
+ // dann und nur dann darauf warten.
61
+ // das betrifft aber nicht den SSR-Fall, dafür ist render-await-... zuständig.
62
+ const updateFeatureDetailsUrl = () => {
63
+ const updatedState = store.getState();
64
+ const updatedSelection = selectorSelectedFeatures(updatedState);
65
+ const updatedFeatureIds = updatedSelection?.features ?? [];
66
+ const updatedDetailsUrl = detailsUrlSelector(store.getState());
67
+ if (updatedDetailsUrl &&
68
+ featureIds[0] === updatedFeatureIds[0] // entprellen, falls updateFeatureDetailsUrl zB. beim unsubscribe aufgerufen wird und inzwischen ein anderer poi selektiert ist
69
+ ) {
70
+ store.dispatch(setFeatureDetailsUrl(updatedDetailsUrl));
71
+ }
72
+ };
73
+ unsubscribeObserveSelectedFeature = getAndObserveState(store, detailsUrlSelector, updateFeatureDetailsUrl);
74
+ };
75
+ getAndObserveState(store, selectorSelectedFeatures, handleFeatureSelection);
76
+ },
77
+ };
78
+ }
79
+ //# sourceMappingURL=feature-selection-details-url.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature-selection-details-url.js","sourceRoot":"","sources":["../../../src/js/plugins/common/feature-selection-details-url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,8BAA8B,EAAC,MAAM,iDAAiD,CAAC;AAC/F,OAAO,EAAC,+BAA+B,EAAC,MAAM,8CAA8C,CAAC;AAI7F,OAAO,EAAC,kBAAkB,EAAC,MAAM,mCAAmC,CAAC;AAErE,OAAO,KAAK,CAAC,MAAM,oCAAoC,CAAC;AACxD,OAAO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B,KAAK,EACL,wBAAwB,EACxB,sBAAsB,CACtB,CAAC;QACH,CAAC;KACD,CAAC;AACH,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { PluginInstance } from "../../types";
2
+ /**
3
+ * This plugin will apply a lang from the embedOptions to i18n
4
+ *
5
+ * @param [_options] options
6
+ * @returns plugin instance
7
+ */
8
+ export default function createLangPlugin(_options?: {}): PluginInstance;
9
+ //# sourceMappingURL=lang.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lang.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/common/lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,QAAQ,KAAK,GAAG,cAAc,CAOtE"}
@@ -0,0 +1,17 @@
1
+ import { setDocumentLanguage } from "../../helpers/i18n";
2
+ /**
3
+ * This plugin will apply a lang from the embedOptions to i18n
4
+ *
5
+ * @param [_options] options
6
+ * @returns plugin instance
7
+ */
8
+ export default function createLangPlugin(_options = {}) {
9
+ return {
10
+ beforeRender: function pluginLangBeforeRender(context) {
11
+ const { lang } = context.createOptions;
12
+ if (lang)
13
+ setDocumentLanguage(lang);
14
+ },
15
+ };
16
+ }
17
+ //# sourceMappingURL=lang.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lang.js","sourceRoot":"","sources":["../../../src/js/plugins/common/lang.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AAGvD;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,QAAQ,GAAG,EAAE;IACrD,OAAO;QACN,YAAY,EAAE,SAAS,sBAAsB,CAAC,OAAO;YACpD,MAAM,EAAC,IAAI,EAAC,GAAG,OAAO,CAAC,aAAa,CAAC;YACrC,IAAI,IAAI;gBAAE,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACrC,CAAC;KACD,CAAC;AACH,CAAC"}
@@ -0,0 +1,30 @@
1
+ import type { Definition } from "@mapsight/core/ol-proxy";
2
+ import type { PluginInstance } from "../../types.ts";
3
+ export declare const createActivateAction: (mapController: string, name: string) => import("@mapsight/core/types").Action;
4
+ export declare const createDeactivateAction: (mapController: string, name: string) => import("@mapsight/core/types").Action;
5
+ /**
6
+ * This plugin will allow drawing a link maker (to be used with the appropriate component)
7
+ * and/or display such a measurement.
8
+ *
9
+ * @param {object} [options] options
10
+ * @param [options.name="measureDistance"] name name of the editor (must be unique per mapsight instance)
11
+ * @param [options.mapControllerName="map"] map controller name
12
+ * @param [options.featureSourcesControllerName="featureSources"] feature sources controller name
13
+ * @param [options.featureSelectionsControllerName="featureSelections"] feature selections controller name
14
+ * @param [options.enableDrawing=true] enable drawing
15
+ * @param [options.displayStyle="features"] style for finished draw
16
+ * @param [options.drawStyle="drawMeasure"] style while drawing
17
+ * @param [options.drawInteraction] draw interaction
18
+ * @returns {import('../../types').PluginInstance} plugin
19
+ */
20
+ export default function createMeasureDistancePlugin(options?: {
21
+ name?: string;
22
+ enableDrawing?: boolean;
23
+ mapControllerName?: string;
24
+ featureSourcesControllerName?: string;
25
+ featureSelectionsControllerName?: string;
26
+ displayStyle?: string;
27
+ drawStyle?: string;
28
+ drawInteraction?: Definition | null;
29
+ }): PluginInstance;
30
+ //# sourceMappingURL=measure-distance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"measure-distance.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/common/measure-distance.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AAYxD,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAEnD,eAAO,MAAM,oBAAoB,GAAI,eAAe,MAAM,EAAE,MAAM,MAAM,0CACV,CAAC;AAC/D,eAAO,MAAM,sBAAsB,GAAI,eAAe,MAAM,EAAE,MAAM,MAAM,0CACV,CAAC;AA8HjE;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,OAAO,UAAU,2BAA2B,CAClD,OAAO,GAAE;IACR,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;CAC/B,GACJ,cAAc,CAwChB"}
@@ -0,0 +1,143 @@
1
+ import { createSelector } from "reselect";
2
+ import { mergeAll } from "@mapsight/core/lib/base/actions";
3
+ import { createFilteredFeatureSourceSelector } from "@mapsight/core/lib/feature-sources/selectors";
4
+ import { activateInteraction, deactivateInteraction, } from "@mapsight/core/lib/map/actions";
5
+ import { DEFAULT_DISPLAY_STYLE, DEFAULT_PROJECTION, } from "@mapsight/core/mixins/EditorMixin";
6
+ import { di } from "@mapsight/core/ol-proxy";
7
+ import DrawInteraction from "@mapsight/core/ol-proxy/definitions/interaction/DrawInteraction";
8
+ import { observeState } from "@mapsight/lib-redux/observe-state";
9
+ import { FEATURE_SELECTIONS, FEATURE_SOURCES, MAP, } from "../../config/constants/controllers";
10
+ import { getDictionary } from "../../helpers/i18n";
11
+ export const createActivateAction = (mapController, name) => activateInteraction(mapController, `${name}_drawInteraction`);
12
+ export const createDeactivateAction = (mapController, name) => deactivateInteraction(mapController, `${name}_drawInteraction`);
13
+ /**
14
+ * @param options options
15
+ * @param options.store store
16
+ * @param options.name name name of the editor (must be unique per mapsight instance)
17
+ * @param options.mapControllerName map controller name
18
+ * @param options.featureSourcesControllerName feature sources controller name
19
+ * @param options.featureSelectionsControllerName feature selections controller name
20
+ * @param options.displayStyle style for finished draw
21
+ * @param options.drawStyle style while drawing
22
+ */
23
+ function setupDrawInteraction({ store, name, featureSourcesControllerName, featureSelectionsControllerName, mapControllerName, drawStyle, displayStyle, }) {
24
+ const fSId = `${name}_featureSource`;
25
+ const drawLayerId = `${name}_drawLayer`;
26
+ const interactionId = `${name}_drawInteraction`;
27
+ const vFS = {
28
+ type: "VectorFeatureSource",
29
+ options: {
30
+ projection: DEFAULT_PROJECTION,
31
+ featureSourceId: fSId,
32
+ featureSourcesControllerName: featureSourcesControllerName,
33
+ featureSelectionsControllerName: featureSelectionsControllerName,
34
+ canAnimate: false,
35
+ canCluster: false,
36
+ featureSelections: [],
37
+ },
38
+ };
39
+ store.dispatch(mergeAll({
40
+ [mapControllerName]: {
41
+ interactions: {
42
+ [interactionId]: {
43
+ type: "DrawInteraction",
44
+ options: {
45
+ active: false,
46
+ type: "LineString",
47
+ style: drawStyle,
48
+ replacePrevious: true,
49
+ clearOnStart: true,
50
+ source: vFS,
51
+ stopClick: true,
52
+ measure: {
53
+ active: true,
54
+ keepLabel: true,
55
+ },
56
+ },
57
+ },
58
+ },
59
+ layers: {
60
+ [drawLayerId]: {
61
+ type: "VectorLayer",
62
+ options: {
63
+ visible: true,
64
+ style: displayStyle,
65
+ renderBuffer: 200,
66
+ selections: [],
67
+ source: vFS,
68
+ },
69
+ },
70
+ },
71
+ },
72
+ [featureSourcesControllerName]: {
73
+ [fSId]: {
74
+ enableHistory: false,
75
+ data: {},
76
+ isLoading: true,
77
+ },
78
+ },
79
+ }));
80
+ const featuresSelector = createSelector(createFilteredFeatureSourceSelector(featureSourcesControllerName, fSId, mapControllerName), (featureSourceState) => featureSourceState?.data?.features);
81
+ const deactivate = createDeactivateAction(mapControllerName, name);
82
+ observeState(store, featuresSelector, (createdFeatures) => {
83
+ if (createdFeatures?.[0]?.geometry?.type === "Point") {
84
+ store.dispatch(deactivate);
85
+ }
86
+ });
87
+ }
88
+ const translations = {
89
+ de: {
90
+ "ui.measure-distance.title": "Strecke messen",
91
+ "ui.measure-distance.instructions": "Klicken Sie auf die Karte um Punkte hinzuzufügen. Ein Doppelklick schließt die Strecke ab.",
92
+ "ui.measure-distance.instructions-done": "Klicken Sie auf die Karte um eine neue Strecke zu messen.",
93
+ "ui.measure-distance.measurement": "Streckenlänge",
94
+ },
95
+ en: {
96
+ "ui.measure-distance.title": "Measure distance",
97
+ "ui.measure-distance.instructions": "Click on the map to add points. Double click to end the line.",
98
+ "ui.measure-distance.instructions-done": "Click on the map to start measuring a new line.",
99
+ "ui.measure-distance.measurement": "Distance",
100
+ },
101
+ };
102
+ /**
103
+ * This plugin will allow drawing a link maker (to be used with the appropriate component)
104
+ * and/or display such a measurement.
105
+ *
106
+ * @param {object} [options] options
107
+ * @param [options.name="measureDistance"] name name of the editor (must be unique per mapsight instance)
108
+ * @param [options.mapControllerName="map"] map controller name
109
+ * @param [options.featureSourcesControllerName="featureSources"] feature sources controller name
110
+ * @param [options.featureSelectionsControllerName="featureSelections"] feature selections controller name
111
+ * @param [options.enableDrawing=true] enable drawing
112
+ * @param [options.displayStyle="features"] style for finished draw
113
+ * @param [options.drawStyle="drawMeasure"] style while drawing
114
+ * @param [options.drawInteraction] draw interaction
115
+ * @returns {import('../../types').PluginInstance} plugin
116
+ */
117
+ export default function createMeasureDistancePlugin(options = {}) {
118
+ const { name = "measureDistance", enableDrawing = true, mapControllerName = MAP, featureSourcesControllerName = FEATURE_SOURCES, featureSelectionsControllerName = FEATURE_SELECTIONS, displayStyle = DEFAULT_DISPLAY_STYLE, drawStyle = "drawMeasure", drawInteraction = DrawInteraction, } = options;
119
+ const dict = getDictionary();
120
+ Object.entries(translations).forEach(([key, obj]) => {
121
+ Object.assign((dict[key] ??= {}), obj);
122
+ });
123
+ return {
124
+ afterCreate: function measureDistancePlugin({ store }) {
125
+ if (!enableDrawing || !store) {
126
+ return;
127
+ }
128
+ if (drawInteraction) {
129
+ di.injectDefinitions([drawInteraction]);
130
+ }
131
+ setupDrawInteraction({
132
+ name: name,
133
+ store: store,
134
+ mapControllerName: mapControllerName,
135
+ featureSourcesControllerName: featureSourcesControllerName,
136
+ featureSelectionsControllerName: featureSelectionsControllerName,
137
+ drawStyle: drawStyle,
138
+ displayStyle: displayStyle,
139
+ });
140
+ },
141
+ };
142
+ }
143
+ //# sourceMappingURL=measure-distance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"measure-distance.js","sourceRoot":"","sources":["../../../src/js/plugins/common/measure-distance.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,cAAc,EAAC,MAAM,UAAU,CAAC;AAExC,OAAO,EAAC,QAAQ,EAAC,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAC,mCAAmC,EAAC,MAAM,8CAA8C,CAAC;AACjG,OAAO,EACN,mBAAmB,EACnB,qBAAqB,GACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACN,qBAAqB,EACrB,kBAAkB,GAClB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EAAC,EAAE,EAAC,MAAM,yBAAyB,CAAC;AAC3C,OAAO,eAAe,MAAM,iEAAiE,CAAC;AAE9F,OAAO,EAAC,YAAY,EAAC,MAAM,mCAAmC,CAAC;AAE/D,OAAO,EACN,kBAAkB,EAClB,eAAe,EACf,GAAG,GACH,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAGjD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,aAAqB,EAAE,IAAY,EAAE,EAAE,CAC3E,mBAAmB,CAAC,aAAa,EAAE,GAAG,IAAI,kBAAkB,CAAC,CAAC;AAC/D,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,aAAqB,EAAE,IAAY,EAAE,EAAE,CAC7E,qBAAqB,CAAC,aAAa,EAAE,GAAG,IAAI,kBAAkB,CAAC,CAAC;AAEjE;;;;;;;;;GASG;AACH,SAAS,oBAAoB,CAAC,EAC7B,KAAK,EACL,IAAI,EACJ,4BAA4B,EAC5B,+BAA+B,EAC/B,iB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EAAE,CAAC;IAE7B,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,EAAE;QACnD,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;IAEH,OAAO;QACN,WAAW,EAAE,SAAS,qBAAqB,CAAC,EAAC,KAAK,EAAC;YAClD,IAAI,CAAC,aAAa,IAAI,CAAC,KAAK,EAAE,CAAC;gBAC9B,OAAO;YACR,CAAC;YAED,IAAI,eAAe,EAAE,CAAC;gBACrB,EAAE,CAAC,iBAAiB,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC;YACzC,CAAC;YAED,oBAAoB,CAAC;gBACpB,IAAI,EAAE,IAAI;gBACV,KAAK,EAAE,KAAK;gBACZ,iBAAiB,EAAE,iBAAiB;gBACpC,4BAA4B,EAAE,4BAA4B;gBAC1D,+BAA+B,EAC9B,+BAA+B;gBAChC,SAAS,EAAE,SAAS;gBACpB,YAAY,EAAE,YAAY;aAC1B,CAAC,CAAC;QACJ,CAAC;KACD,CAAC;AACH,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { Definition } from "@mapsight/core/ol-proxy";
2
+ import type { PluginInstance } from "../../types.ts";
3
+ /**
4
+ * This plugin will inject the ol-proxy dependencies required by default.
5
+ *
6
+ * @param {object} [options] options
7
+ * @param {Array<import('@mapsight/core/ol-proxy').Definition<any>>} [options.dependencies={}] add or override dependencies
8
+ * @returns {import('../../types').PluginInstance} plugin instance
9
+ */
10
+ export default function createPlugin({ dependencies, }?: {
11
+ dependencies?: Definition[] | Record<string, Definition>;
12
+ }): PluginInstance;
13
+ //# sourceMappingURL=ol-proxy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ol-proxy.d.ts","sourceRoot":"","sources":["../../../src/js/plugins/common/ol-proxy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AAkBxD,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAEnD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACpC,YAAiB,GACjB,GAAE;IACF,YAAY,CAAC,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;CACpD,GAAG,cAAc,CAoCtB"}