geonetwork-ui 2.4.0-dev.344a92f2 → 2.4.0-dev.3b6b95eb

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 (429) hide show
  1. package/esm2022/libs/api/metadata-converter/src/index.mjs +4 -1
  2. package/esm2022/libs/api/metadata-converter/src/lib/common/license.mjs +64 -0
  3. package/esm2022/libs/api/metadata-converter/src/lib/common/url.mjs +14 -0
  4. package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.mjs +254 -0
  5. package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/index.mjs +2 -0
  6. package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/namespaces.mjs +17 -0
  7. package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.mjs +196 -0
  8. package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/utils/graph-utils.mjs +46 -0
  9. package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/utils/serialize-to-xml.mjs +74 -0
  10. package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/utils/uri.mjs +2 -0
  11. package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/write-parts.mjs +27 -0
  12. package/esm2022/libs/api/metadata-converter/src/lib/find-converter.mjs +11 -1
  13. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.mjs +3 -3
  14. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.mjs +8 -23
  15. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +3 -3
  16. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +27 -37
  17. package/esm2022/libs/api/metadata-converter/src/lib/xml-utils.mjs +35 -3
  18. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +78 -39
  19. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +34 -26
  20. package/esm2022/libs/common/domain/src/lib/model/record/contact.model.mjs +1 -1
  21. package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
  22. package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
  23. package/esm2022/libs/feature/catalog/src/lib/feature-catalog.module.mjs +7 -4
  24. package/esm2022/libs/feature/catalog/src/lib/organisations/organisations.component.mjs +6 -6
  25. package/esm2022/libs/feature/dataviz/src/lib/feature-dataviz.module.mjs +10 -7
  26. package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +40 -50
  27. package/esm2022/libs/feature/editor/src/index.mjs +2 -1
  28. package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +5 -5
  29. package/esm2022/libs/feature/editor/src/lib/components/contact-card/contact-card.component.mjs +3 -3
  30. package/esm2022/libs/feature/editor/src/lib/components/import-record/import-record.component.mjs +95 -0
  31. package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +72 -0
  32. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.mjs +109 -0
  33. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +9 -8
  34. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +38 -60
  35. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.mjs +10 -7
  36. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.mjs +191 -0
  37. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.mjs +5 -4
  38. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +2 -2
  39. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +10 -6
  40. package/esm2022/libs/feature/editor/src/lib/components/wizard/wizard.component.mjs +3 -3
  41. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +17 -3
  42. package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +5 -5
  43. package/esm2022/libs/feature/map/src/index.mjs +2 -9
  44. package/esm2022/libs/feature/map/src/lib/+state/map.actions.mjs +4 -7
  45. package/esm2022/libs/feature/map/src/lib/+state/map.facade.mjs +9 -15
  46. package/esm2022/libs/feature/map/src/lib/+state/map.reducer.mjs +13 -44
  47. package/esm2022/libs/feature/map/src/lib/+state/map.selectors.mjs +3 -2
  48. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +15 -15
  49. package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +16 -10
  50. package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +10 -8
  51. package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +11 -7
  52. package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +10 -6
  53. package/esm2022/libs/feature/map/src/lib/constant/index.mjs +1 -2
  54. package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +4 -44
  55. package/esm2022/libs/feature/map/src/lib/geocoding/geocoding.component.mjs +43 -29
  56. package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +17 -8
  57. package/esm2022/libs/feature/map/src/lib/map-state-container/map-state-container.component.mjs +27 -0
  58. package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +4 -168
  59. package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +21 -17
  60. package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +14 -8
  61. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +40 -52
  62. package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +1 -1
  63. package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +11 -6
  64. package/esm2022/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.mjs +7 -7
  65. package/esm2022/libs/ui/catalog/src/lib/ui-catalog.module.mjs +1 -6
  66. package/esm2022/libs/ui/inputs/src/index.mjs +2 -1
  67. package/esm2022/libs/ui/inputs/src/lib/badge/badge.component.mjs +3 -3
  68. package/esm2022/libs/ui/inputs/src/lib/date-picker/date-picker.component.mjs +3 -3
  69. package/esm2022/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.mjs +3 -3
  70. package/esm2022/libs/ui/inputs/src/lib/file-input/file-input.component.mjs +3 -3
  71. package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +2 -2
  72. package/esm2022/libs/ui/inputs/src/lib/search-input/search-input.component.mjs +6 -4
  73. package/esm2022/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.mjs +5 -3
  74. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +2 -7
  75. package/esm2022/libs/ui/inputs/src/lib/url-input/url-input.component.mjs +20 -4
  76. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +3 -3
  77. package/esm2022/libs/ui/layout/src/lib/sortable-list/sortable-list.component.mjs +3 -3
  78. package/esm2022/libs/ui/map/src/index.mjs +4 -3
  79. package/esm2022/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.mjs +8 -6
  80. package/esm2022/libs/ui/map/src/lib/components/map-container/map-container.component.mjs +137 -0
  81. package/esm2022/libs/ui/map/src/lib/components/map-container/map-settings.token.mjs +13 -0
  82. package/esm2022/libs/ui/map/src/lib/map-utils.mjs +37 -0
  83. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +3 -3
  84. package/esm2022/libs/util/app-config/src/index.mjs +2 -1
  85. package/esm2022/libs/util/app-config/src/lib/map-layers.mjs +27 -0
  86. package/esm2022/libs/util/shared/src/lib/utils/index.mjs +2 -1
  87. package/esm2022/libs/util/shared/src/lib/utils/no-duplicate-file-name.mjs +19 -0
  88. package/esm2022/translations/de.json +19 -0
  89. package/esm2022/translations/en.json +51 -32
  90. package/esm2022/translations/es.json +19 -0
  91. package/esm2022/translations/fr.json +82 -63
  92. package/esm2022/translations/it.json +19 -0
  93. package/esm2022/translations/nl.json +19 -0
  94. package/esm2022/translations/pt.json +19 -0
  95. package/fesm2022/geonetwork-ui.mjs +6871 -6029
  96. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  97. package/libs/api/metadata-converter/src/index.d.ts +3 -0
  98. package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
  99. package/libs/api/metadata-converter/src/lib/common/license.d.ts +3 -0
  100. package/libs/api/metadata-converter/src/lib/common/license.d.ts.map +1 -0
  101. package/libs/api/metadata-converter/src/lib/common/url.d.ts +7 -0
  102. package/libs/api/metadata-converter/src/lib/common/url.d.ts.map +1 -0
  103. package/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.d.ts +13 -0
  104. package/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.d.ts.map +1 -0
  105. package/libs/api/metadata-converter/src/lib/dcat-ap/index.d.ts +2 -0
  106. package/libs/api/metadata-converter/src/lib/dcat-ap/index.d.ts.map +1 -0
  107. package/libs/api/metadata-converter/src/lib/dcat-ap/namespaces.d.ts +16 -0
  108. package/libs/api/metadata-converter/src/lib/dcat-ap/namespaces.d.ts.map +1 -0
  109. package/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.d.ts +20 -0
  110. package/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.d.ts.map +1 -0
  111. package/libs/api/metadata-converter/src/lib/dcat-ap/utils/graph-utils.d.ts +9 -0
  112. package/libs/api/metadata-converter/src/lib/dcat-ap/utils/graph-utils.d.ts.map +1 -0
  113. package/libs/api/metadata-converter/src/lib/dcat-ap/utils/serialize-to-xml.d.ts +8 -0
  114. package/libs/api/metadata-converter/src/lib/dcat-ap/utils/serialize-to-xml.d.ts.map +1 -0
  115. package/libs/api/metadata-converter/src/lib/dcat-ap/utils/uri.d.ts +2 -0
  116. package/libs/api/metadata-converter/src/lib/dcat-ap/utils/uri.d.ts.map +1 -0
  117. package/libs/api/metadata-converter/src/lib/dcat-ap/write-parts.d.ts +6 -0
  118. package/libs/api/metadata-converter/src/lib/dcat-ap/write-parts.d.ts.map +1 -0
  119. package/libs/api/metadata-converter/src/lib/find-converter.d.ts.map +1 -1
  120. package/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.d.ts.map +1 -1
  121. package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts +0 -1
  122. package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts.map +1 -1
  123. package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts.map +1 -1
  124. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +4 -6
  125. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  126. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts +58 -0
  127. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts.map +1 -1
  128. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +12 -7
  129. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  130. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +2 -15
  131. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  132. package/libs/common/domain/src/lib/model/record/contact.model.d.ts +1 -1
  133. package/libs/common/domain/src/lib/model/record/contact.model.d.ts.map +1 -1
  134. package/libs/common/domain/src/lib/platform.service.interface.d.ts +2 -3
  135. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  136. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +7 -0
  137. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  138. package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts +2 -1
  139. package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts.map +1 -1
  140. package/libs/feature/dataviz/src/lib/feature-dataviz.module.d.ts +10 -9
  141. package/libs/feature/dataviz/src/lib/feature-dataviz.module.d.ts.map +1 -1
  142. package/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.d.ts +13 -20
  143. package/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.d.ts.map +1 -1
  144. package/libs/feature/editor/src/index.d.ts +1 -0
  145. package/libs/feature/editor/src/index.d.ts.map +1 -1
  146. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts.map +1 -1
  147. package/libs/feature/editor/src/lib/components/import-record/import-record.component.d.ts +34 -0
  148. package/libs/feature/editor/src/lib/components/import-record/import-record.component.d.ts.map +1 -0
  149. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts +16 -0
  150. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -0
  151. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.d.ts +38 -0
  152. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.d.ts.map +1 -0
  153. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts +1 -1
  154. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts.map +1 -1
  155. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +6 -13
  156. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts.map +1 -1
  157. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.d.ts +1 -1
  158. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.d.ts.map +1 -1
  159. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.d.ts +44 -0
  160. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.d.ts.map +1 -0
  161. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts +1 -1
  162. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts.map +1 -1
  163. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
  164. package/libs/feature/editor/src/lib/fields.config.d.ts +2 -0
  165. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  166. package/libs/feature/editor/src/lib/services/editor.service.d.ts +2 -2
  167. package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
  168. package/libs/feature/map/src/index.d.ts +1 -8
  169. package/libs/feature/map/src/index.d.ts.map +1 -1
  170. package/libs/feature/map/src/lib/+state/map.actions.d.ts +13 -39
  171. package/libs/feature/map/src/lib/+state/map.actions.d.ts.map +1 -1
  172. package/libs/feature/map/src/lib/+state/map.facade.d.ts +9 -10
  173. package/libs/feature/map/src/lib/+state/map.facade.d.ts.map +1 -1
  174. package/libs/feature/map/src/lib/+state/map.reducer.d.ts +4 -2
  175. package/libs/feature/map/src/lib/+state/map.reducer.d.ts.map +1 -1
  176. package/libs/feature/map/src/lib/+state/map.selectors.d.ts +6 -1
  177. package/libs/feature/map/src/lib/+state/map.selectors.d.ts.map +1 -1
  178. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts +3 -5
  179. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts.map +1 -1
  180. package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts.map +1 -1
  181. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +2 -2
  182. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -1
  183. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts +1 -1
  184. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts.map +1 -1
  185. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts +1 -1
  186. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts.map +1 -1
  187. package/libs/feature/map/src/lib/constant/index.d.ts +0 -1
  188. package/libs/feature/map/src/lib/constant/index.d.ts.map +1 -1
  189. package/libs/feature/map/src/lib/feature-map.module.d.ts +12 -18
  190. package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
  191. package/libs/feature/map/src/lib/geocoding/geocoding.component.d.ts +7 -7
  192. package/libs/feature/map/src/lib/geocoding/geocoding.component.d.ts.map +1 -1
  193. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts +4 -3
  194. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts.map +1 -1
  195. package/libs/feature/map/src/lib/map-state-container/map-state-container.component.d.ts +14 -0
  196. package/libs/feature/map/src/lib/map-state-container/map-state-container.component.d.ts.map +1 -0
  197. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts +0 -30
  198. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
  199. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts +8 -5
  200. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
  201. package/libs/feature/record/src/lib/feature-record.module.d.ts +13 -11
  202. package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
  203. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +13 -19
  204. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  205. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +4 -3
  206. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
  207. package/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.d.ts +1 -1
  208. package/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.d.ts.map +1 -1
  209. package/libs/ui/catalog/src/lib/ui-catalog.module.d.ts +9 -10
  210. package/libs/ui/catalog/src/lib/ui-catalog.module.d.ts.map +1 -1
  211. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
  212. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +1 -1
  213. package/libs/ui/inputs/src/index.d.ts +1 -0
  214. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  215. package/libs/ui/inputs/src/lib/search-input/search-input.component.d.ts +1 -1
  216. package/libs/ui/inputs/src/lib/search-input/search-input.component.d.ts.map +1 -1
  217. package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts +1 -0
  218. package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts.map +1 -1
  219. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +25 -26
  220. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  221. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts +6 -3
  222. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts.map +1 -1
  223. package/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.d.ts +1 -1
  224. package/libs/ui/map/src/index.d.ts +3 -2
  225. package/libs/ui/map/src/index.d.ts.map +1 -1
  226. package/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.d.ts +3 -4
  227. package/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.d.ts.map +1 -1
  228. package/libs/ui/map/src/lib/components/map-container/map-container.component.d.ts +37 -0
  229. package/libs/ui/map/src/lib/components/map-container/map-container.component.d.ts.map +1 -0
  230. package/libs/ui/map/src/lib/components/map-container/map-settings.token.d.ts +18 -0
  231. package/libs/ui/map/src/lib/components/map-container/map-settings.token.d.ts.map +1 -0
  232. package/libs/ui/map/src/lib/map-utils.d.ts +7 -0
  233. package/libs/ui/map/src/lib/map-utils.d.ts.map +1 -0
  234. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +1 -1
  235. package/libs/util/app-config/src/index.d.ts +1 -0
  236. package/libs/util/app-config/src/index.d.ts.map +1 -1
  237. package/libs/util/app-config/src/lib/map-layers.d.ts +4 -0
  238. package/libs/util/app-config/src/lib/map-layers.d.ts.map +1 -0
  239. package/libs/util/shared/src/lib/utils/index.d.ts +1 -0
  240. package/libs/util/shared/src/lib/utils/index.d.ts.map +1 -1
  241. package/libs/util/shared/src/lib/utils/no-duplicate-file-name.d.ts +2 -0
  242. package/libs/util/shared/src/lib/utils/no-duplicate-file-name.d.ts.map +1 -0
  243. package/package.json +5 -3
  244. package/src/libs/api/metadata-converter/src/index.ts +3 -0
  245. package/src/libs/api/metadata-converter/src/lib/common/license.ts +66 -0
  246. package/src/libs/api/metadata-converter/src/lib/common/url.ts +15 -0
  247. package/src/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.ts +378 -0
  248. package/src/libs/api/metadata-converter/src/lib/dcat-ap/index.ts +1 -0
  249. package/src/libs/api/metadata-converter/src/lib/dcat-ap/namespaces.ts +17 -0
  250. package/src/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.ts +370 -0
  251. package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/graph-utils.ts +95 -0
  252. package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/individual-name.ts +20 -0
  253. package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/keyword.mapper.ts +16 -0
  254. package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/role.mapper.ts +48 -0
  255. package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/serialize-to-xml.ts +97 -0
  256. package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/status.mapper.ts +19 -0
  257. package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/update-frequency.mapper.ts +67 -0
  258. package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/uri.ts +1 -0
  259. package/src/libs/api/metadata-converter/src/lib/dcat-ap/write-parts.ts +68 -0
  260. package/src/libs/api/metadata-converter/src/lib/find-converter.ts +13 -0
  261. package/src/libs/api/metadata-converter/src/lib/fixtures/eu.dcat-ap.records.ts +272 -0
  262. package/src/libs/api/metadata-converter/src/lib/fixtures/opendataswiss.records.ts +110 -0
  263. package/src/libs/api/metadata-converter/src/lib/fixtures/sextant.records.ts +85 -0
  264. package/src/libs/api/metadata-converter/src/lib/fixtures/vlaanderen.dcat-ap.records.ts +73 -0
  265. package/src/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.ts +1 -2
  266. package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +7 -35
  267. package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +1 -2
  268. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +85 -120
  269. package/src/libs/api/metadata-converter/src/lib/xml-utils.ts +37 -2
  270. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +132 -68
  271. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +57 -30
  272. package/src/libs/common/domain/src/lib/model/record/contact.model.ts +1 -1
  273. package/src/libs/common/domain/src/lib/platform.service.interface.ts +2 -2
  274. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +10 -0
  275. package/src/libs/common/fixtures/src/index.ts +3 -0
  276. package/src/libs/common/fixtures/src/lib/individual.fixtures.ts +61 -0
  277. package/src/libs/common/fixtures/src/lib/map/index.ts +1 -0
  278. package/src/libs/common/fixtures/src/lib/map/map-context.fixtures.ts +53 -0
  279. package/src/libs/common/fixtures/src/lib/user.fixtures.ts +13 -0
  280. package/src/libs/feature/catalog/src/lib/feature-catalog.module.ts +5 -1
  281. package/src/libs/feature/dataviz/src/lib/feature-dataviz.module.ts +6 -2
  282. package/src/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.html +5 -2
  283. package/src/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.ts +38 -78
  284. package/src/libs/feature/editor/src/index.ts +1 -0
  285. package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +11 -4
  286. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.html +1 -1
  287. package/src/libs/feature/editor/src/lib/components/import-record/import-record.component.html +47 -0
  288. package/src/libs/feature/editor/src/lib/components/import-record/import-record.component.ts +132 -0
  289. package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.html +31 -0
  290. package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +82 -0
  291. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.html +40 -0
  292. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.ts +170 -0
  293. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.html +1 -1
  294. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +6 -8
  295. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +1 -4
  296. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.ts +41 -83
  297. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.html +20 -11
  298. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.ts +9 -5
  299. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.css +0 -0
  300. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.html +71 -0
  301. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.ts +241 -0
  302. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +4 -3
  303. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +1 -1
  304. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +15 -0
  305. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +7 -3
  306. package/src/libs/feature/editor/src/lib/components/wizard/wizard.component.html +2 -6
  307. package/src/libs/feature/editor/src/lib/fields.config.ts +18 -2
  308. package/src/libs/feature/editor/src/lib/services/editor.service.ts +7 -3
  309. package/src/libs/feature/map/src/index.ts +1 -8
  310. package/src/libs/feature/map/src/lib/+state/map.actions.ts +10 -25
  311. package/src/libs/feature/map/src/lib/+state/map.facade.ts +11 -15
  312. package/src/libs/feature/map/src/lib/+state/map.reducer.ts +16 -53
  313. package/src/libs/feature/map/src/lib/+state/map.selectors.ts +7 -2
  314. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts +12 -15
  315. package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.ts +17 -11
  316. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +11 -12
  317. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts +12 -10
  318. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts +11 -9
  319. package/src/libs/feature/map/src/lib/constant/index.ts +0 -1
  320. package/src/libs/feature/map/src/lib/feature-map.module.ts +0 -26
  321. package/src/libs/feature/map/src/lib/geocoding/geocoding.component.ts +38 -20
  322. package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.html +2 -2
  323. package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.ts +15 -5
  324. package/src/libs/feature/map/src/lib/map-state-container/map-state-container.component.css +0 -0
  325. package/src/libs/feature/map/src/lib/map-state-container/map-state-container.component.html +4 -0
  326. package/src/libs/feature/map/src/lib/map-state-container/map-state-container.component.ts +29 -0
  327. package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +1 -229
  328. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +27 -18
  329. package/src/libs/feature/record/src/lib/feature-record.module.ts +11 -3
  330. package/src/libs/feature/record/src/lib/map-view/map-view.component.html +4 -4
  331. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +44 -71
  332. package/src/libs/feature/router/src/lib/default/state/router.facade.ts +1 -1
  333. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +4 -1
  334. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +4 -2
  335. package/src/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.ts +8 -1
  336. package/src/libs/ui/catalog/src/lib/ui-catalog.module.ts +0 -3
  337. package/src/libs/ui/inputs/src/index.ts +1 -0
  338. package/src/libs/ui/inputs/src/lib/badge/badge.component.html +1 -2
  339. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.html +2 -1
  340. package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.html +2 -1
  341. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.html +8 -8
  342. package/src/libs/ui/inputs/src/lib/search-input/search-input.component.ts +5 -1
  343. package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.html +1 -1
  344. package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.ts +3 -1
  345. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +0 -3
  346. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.html +5 -1
  347. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.ts +25 -2
  348. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.css +1 -1
  349. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +2 -2
  350. package/src/libs/ui/layout/src/lib/sortable-list/sortable-list.component.html +1 -1
  351. package/src/libs/ui/map/src/index.ts +3 -2
  352. package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.html +1 -1
  353. package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.ts +8 -5
  354. package/src/libs/ui/map/src/lib/components/map-container/map-container.component.css +0 -0
  355. package/src/libs/ui/map/src/lib/components/map-container/map-container.component.ts +203 -0
  356. package/src/libs/ui/map/src/lib/components/map-container/map-settings.token.ts +23 -0
  357. package/src/libs/ui/map/src/lib/map-utils.ts +54 -0
  358. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +18 -14
  359. package/src/libs/util/app-config/src/index.ts +1 -0
  360. package/src/libs/util/app-config/src/lib/map-layers.ts +31 -0
  361. package/src/libs/util/shared/src/lib/utils/index.ts +1 -0
  362. package/src/libs/util/shared/src/lib/utils/no-duplicate-file-name.ts +23 -0
  363. package/tailwind.base.css +3 -2
  364. package/translations/de.json +19 -0
  365. package/translations/en.json +51 -32
  366. package/translations/es.json +19 -0
  367. package/translations/fr.json +82 -63
  368. package/translations/it.json +19 -0
  369. package/translations/nl.json +19 -0
  370. package/translations/pt.json +19 -0
  371. package/translations/sk.json +19 -0
  372. package/esm2022/libs/feature/map/src/lib/+state/map.effects.mjs +0 -15
  373. package/esm2022/libs/feature/map/src/lib/+state/map.models.mjs +0 -2
  374. package/esm2022/libs/feature/map/src/lib/constant/map-options.mjs +0 -8
  375. package/esm2022/libs/feature/map/src/lib/constant/style.constant.mjs +0 -17
  376. package/esm2022/libs/feature/map/src/lib/feature-info/feature-info.service.mjs +0 -38
  377. package/esm2022/libs/feature/map/src/lib/manager/map-instance.directive.mjs +0 -19
  378. package/esm2022/libs/feature/map/src/lib/manager/map-manager.service.mjs +0 -19
  379. package/esm2022/libs/feature/map/src/lib/map-container/map-container.component.mjs +0 -27
  380. package/esm2022/libs/feature/map/src/lib/map-context/component/map-context.component.mjs +0 -46
  381. package/esm2022/libs/feature/map/src/lib/map-context/map-context.model.mjs +0 -10
  382. package/esm2022/libs/feature/map/src/lib/map-context/map-context.service.mjs +0 -289
  383. package/esm2022/libs/ui/map/src/lib/components/map/map.component.mjs +0 -40
  384. package/esm2022/libs/ui/map/src/lib/ui-map.module.mjs +0 -33
  385. package/libs/feature/map/src/lib/+state/map.effects.d.ts +0 -9
  386. package/libs/feature/map/src/lib/+state/map.effects.d.ts.map +0 -1
  387. package/libs/feature/map/src/lib/+state/map.models.d.ts +0 -9
  388. package/libs/feature/map/src/lib/+state/map.models.d.ts.map +0 -1
  389. package/libs/feature/map/src/lib/constant/map-options.d.ts +0 -9
  390. package/libs/feature/map/src/lib/constant/map-options.d.ts.map +0 -1
  391. package/libs/feature/map/src/lib/constant/style.constant.d.ts +0 -4
  392. package/libs/feature/map/src/lib/constant/style.constant.d.ts.map +0 -1
  393. package/libs/feature/map/src/lib/feature-info/feature-info.service.d.ts +0 -16
  394. package/libs/feature/map/src/lib/feature-info/feature-info.service.d.ts.map +0 -1
  395. package/libs/feature/map/src/lib/manager/map-instance.directive.d.ts +0 -9
  396. package/libs/feature/map/src/lib/manager/map-instance.directive.d.ts.map +0 -1
  397. package/libs/feature/map/src/lib/manager/map-manager.service.d.ts +0 -11
  398. package/libs/feature/map/src/lib/manager/map-manager.service.d.ts.map +0 -1
  399. package/libs/feature/map/src/lib/map-container/map-container.component.d.ts +0 -12
  400. package/libs/feature/map/src/lib/map-container/map-container.component.d.ts.map +0 -1
  401. package/libs/feature/map/src/lib/map-context/component/map-context.component.d.ts +0 -26
  402. package/libs/feature/map/src/lib/map-context/component/map-context.component.d.ts.map +0 -1
  403. package/libs/feature/map/src/lib/map-context/map-context.model.d.ts +0 -77
  404. package/libs/feature/map/src/lib/map-context/map-context.model.d.ts.map +0 -1
  405. package/libs/feature/map/src/lib/map-context/map-context.service.d.ts +0 -26
  406. package/libs/feature/map/src/lib/map-context/map-context.service.d.ts.map +0 -1
  407. package/libs/ui/map/src/lib/components/map/map.component.d.ts +0 -19
  408. package/libs/ui/map/src/lib/components/map/map.component.d.ts.map +0 -1
  409. package/libs/ui/map/src/lib/ui-map.module.d.ts +0 -13
  410. package/libs/ui/map/src/lib/ui-map.module.d.ts.map +0 -1
  411. package/src/libs/feature/map/src/lib/+state/map.effects.ts +0 -7
  412. package/src/libs/feature/map/src/lib/+state/map.models.ts +0 -9
  413. package/src/libs/feature/map/src/lib/constant/map-options.ts +0 -17
  414. package/src/libs/feature/map/src/lib/feature-info/feature-info.service.ts +0 -42
  415. package/src/libs/feature/map/src/lib/manager/map-instance.directive.ts +0 -10
  416. package/src/libs/feature/map/src/lib/manager/map-manager.service.ts +0 -13
  417. package/src/libs/feature/map/src/lib/map-container/map-container.component.html +0 -1
  418. package/src/libs/feature/map/src/lib/map-container/map-container.component.ts +0 -26
  419. package/src/libs/feature/map/src/lib/map-context/component/map-context.component.html +0 -1
  420. package/src/libs/feature/map/src/lib/map-context/component/map-context.component.ts +0 -57
  421. package/src/libs/feature/map/src/lib/map-context/map-context.fixtures.ts +0 -55
  422. package/src/libs/feature/map/src/lib/map-context/map-context.model.ts +0 -95
  423. package/src/libs/feature/map/src/lib/map-context/map-context.service.ts +0 -318
  424. package/src/libs/ui/map/src/lib/components/map/map.component.ts +0 -57
  425. package/src/libs/ui/map/src/lib/ui-map.module.ts +0 -19
  426. /package/src/libs/feature/{map/src/lib/map-container/map-container.component.css → editor/src/lib/components/import-record/import-record.component.css} +0 -0
  427. /package/src/libs/feature/{map/src/lib/map-context/component/map-context.component.css → editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.css} +0 -0
  428. /package/src/libs/{ui/map/src/lib/components/map/map.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.css} +0 -0
  429. /package/src/libs/ui/map/src/lib/components/{map/map.component.html → map-container/map-container.component.html} +0 -0
@@ -5,7 +5,6 @@ import { OrganisationPreviewComponent } from './organisation-preview/organisatio
5
5
  import { TranslateModule } from '@ngx-translate/core'
6
6
  import { MatIconModule } from '@angular/material/icon'
7
7
  import { UiElementsModule } from '../../../../../libs/ui/elements/src'
8
- import { OrganisationsFilterComponent } from './organisations-filter/organisations-filter.component'
9
8
  import { UiInputsModule } from '../../../../../libs/ui/inputs/src'
10
9
  import { LanguageSwitcherComponent } from './language-switcher/language-switcher.component'
11
10
  import { OrganisationsResultComponent } from './organisations-result/organisations-result.component'
@@ -15,7 +14,6 @@ import { RouterLink } from '@angular/router'
15
14
  declarations: [
16
15
  CatalogTitleComponent,
17
16
  OrganisationPreviewComponent,
18
- OrganisationsFilterComponent,
19
17
  LanguageSwitcherComponent,
20
18
  OrganisationsResultComponent,
21
19
  ],
@@ -30,7 +28,6 @@ import { RouterLink } from '@angular/router'
30
28
  exports: [
31
29
  CatalogTitleComponent,
32
30
  OrganisationPreviewComponent,
33
- OrganisationsFilterComponent,
34
31
  LanguageSwitcherComponent,
35
32
  OrganisationsResultComponent,
36
33
  ],
@@ -19,6 +19,7 @@ export * from './lib/star-toggle/star-toggle.component'
19
19
  export * from './lib/text-area/text-area.component'
20
20
  export * from './lib/text-input/text-input.component'
21
21
  export * from './lib/ui-inputs.module'
22
+ export * from './lib/url-input/url-input.component'
22
23
  export * from './lib/viewport-intersector/viewport-intersector.component'
23
24
  export * from './lib/previous-next-buttons/previous-next-buttons.component'
24
25
  export * from './lib/switch-toggle/switch-toggle.component'
@@ -11,8 +11,7 @@
11
11
  type="light"
12
12
  *ngIf="removable"
13
13
  (buttonClick)="removeBadge()"
14
- class="ml-1 -my-[0.4em] -mr-[0.45em]"
15
- extraClass="border-0"
14
+ extraClass="text-xs border-0 px-0 py-0"
16
15
  style="
17
16
  --gn-ui-button-padding: 0;
18
17
  --gn-ui-button-font-size: 0.8em;
@@ -7,9 +7,10 @@
7
7
  />
8
8
  <gn-ui-button
9
9
  type="light"
10
+ class="absolute inset-y-[var(--side-padding)] right-[var(--side-padding)] z-10"
10
11
  (buttonClick)="picker.open()"
11
- extraClass="absolute inset-y-[var(--side-padding)] right-[var(--side-padding)]"
12
12
  data-cy="date-picker-button"
13
+ extraClass="h-full"
13
14
  >
14
15
  <mat-icon class="material-symbols-outlined text-primary"
15
16
  >calendar_today</mat-icon
@@ -16,8 +16,9 @@
16
16
 
17
17
  <gn-ui-button
18
18
  type="light"
19
+ class="absolute inset-y-[var(--side-padding)] right-[var(--side-padding)] z-10"
19
20
  (buttonClick)="picker.open()"
20
- extraClass="absolute inset-y-[var(--side-padding)] right-[var(--side-padding)]"
21
+ extraClass="h-full"
21
22
  data-cy="date-picker-button"
22
23
  >
23
24
  <mat-icon class="material-symbols-outlined text-primary"
@@ -12,6 +12,14 @@
12
12
  (dropFiles)="handleDropFiles($event)"
13
13
  (keydown.enter)="fileInput.click()"
14
14
  >
15
+ <input
16
+ #fileInput
17
+ type="file"
18
+ class="hidden"
19
+ (change)="handleFileInput($event)"
20
+ [disabled]="isUploadInProgress"
21
+ />
22
+
15
23
  <div
16
24
  class="w-14 h-14 rounded-md bg-gray-50 grid"
17
25
  *ngIf="!isUploadInProgress"
@@ -72,14 +80,6 @@
72
80
  >
73
81
  <span class="border-b border-gray-300 grow"></span>
74
82
  </p>
75
- <input
76
- #fileInput
77
- type="file"
78
- class="hidden"
79
- (change)="handleFileInput($event)"
80
- [disabled]="isUploadInProgress"
81
- />
82
-
83
83
  <gn-ui-url-input
84
84
  class="w-full"
85
85
  [disabled]="isUploadInProgress"
@@ -4,12 +4,16 @@ import {
4
4
  Input,
5
5
  Output,
6
6
  } from '@angular/core'
7
- import { Subject, distinctUntilChanged } from 'rxjs'
7
+ import { distinctUntilChanged, Subject } from 'rxjs'
8
+ import { MatIconModule } from '@angular/material/icon'
9
+ import { CommonModule } from '@angular/common'
8
10
 
9
11
  @Component({
10
12
  selector: 'gn-ui-search-input',
11
13
  templateUrl: './search-input.component.html',
12
14
  changeDetection: ChangeDetectionStrategy.OnPush,
15
+ standalone: true,
16
+ imports: [CommonModule, MatIconModule],
13
17
  })
14
18
  export class SearchInputComponent {
15
19
  @Input() value = ''
@@ -9,6 +9,6 @@
9
9
  [checked]="option.checked"
10
10
  (change)="onChange(option)"
11
11
  [class]="extraClasses"
12
- >{{ option.label }}</mat-button-toggle
12
+ >{{ option.label | translate }}</mat-button-toggle
13
13
  >
14
14
  </mat-button-toggle-group>
@@ -7,9 +7,11 @@ import {
7
7
  Output,
8
8
  } from '@angular/core'
9
9
  import { MatButtonToggleModule } from '@angular/material/button-toggle'
10
+ import { TranslateModule } from '@ngx-translate/core'
10
11
 
11
12
  export type SwitchToggleOption = {
12
13
  label: string
14
+ value?: unknown
13
15
  checked: boolean
14
16
  }
15
17
 
@@ -19,7 +21,7 @@ export type SwitchToggleOption = {
19
21
  styleUrls: ['./switch-toggle.component.css'],
20
22
  changeDetection: ChangeDetectionStrategy.OnPush,
21
23
  standalone: true,
22
- imports: [MatButtonToggleModule, CommonModule],
24
+ imports: [MatButtonToggleModule, CommonModule, TranslateModule],
23
25
  })
24
26
  export class SwitchToggleComponent {
25
27
  @Input() options: SwitchToggleOption[]
@@ -24,7 +24,6 @@ import { CopyTextButtonComponent } from './copy-text-button/copy-text-button.com
24
24
  import { MatTooltipModule } from '@angular/material/tooltip'
25
25
  import { CommonModule } from '@angular/common'
26
26
  import { CheckboxComponent } from './checkbox/checkbox.component'
27
- import { SearchInputComponent } from './search-input/search-input.component'
28
27
  import { DateRangePickerComponent } from './date-range-picker/date-range-picker.component'
29
28
  import { MatFormFieldModule } from '@angular/material/form-field'
30
29
  import { MatInputModule } from '@angular/material/input'
@@ -43,7 +42,6 @@ import { ImageInputComponent } from './image-input/image-input.component'
43
42
  ViewportIntersectorComponent,
44
43
  CopyTextButtonComponent,
45
44
  CheckboxComponent,
46
- SearchInputComponent,
47
45
  ],
48
46
  imports: [
49
47
  CommonModule,
@@ -85,7 +83,6 @@ import { ImageInputComponent } from './image-input/image-input.component'
85
83
  CheckToggleComponent,
86
84
  CopyTextButtonComponent,
87
85
  CheckboxComponent,
88
- SearchInputComponent,
89
86
  DateRangePickerComponent,
90
87
  EditableLabelDirective,
91
88
  ImageInputComponent,
@@ -27,7 +27,11 @@
27
27
  <gn-ui-button
28
28
  extraClass="absolute inset-y-[var(--side-padding)] right-[var(--side-padding)]"
29
29
  type="primary"
30
- [disabled]="disabled || input.value === ''"
30
+ [disabled]="
31
+ disabled ||
32
+ input.value === '' ||
33
+ (urlCanParse && !URLcanParse(input.value))
34
+ "
31
35
  (buttonClick)="handleChange(input)"
32
36
  >
33
37
  <mat-icon class="material-symbols-outlined text-[20px] leading-[24px]">
@@ -1,4 +1,11 @@
1
- import { ChangeDetectorRef, Component, Input, Output } from '@angular/core'
1
+ import {
2
+ ChangeDetectorRef,
3
+ Component,
4
+ Input,
5
+ OnChanges,
6
+ Output,
7
+ SimpleChanges,
8
+ } from '@angular/core'
2
9
  import { CommonModule } from '@angular/common'
3
10
  import { ButtonComponent } from '../button/button.component'
4
11
  import { MatIconModule } from '@angular/material/icon'
@@ -12,16 +19,23 @@ import { Subject } from 'rxjs'
12
19
  standalone: true,
13
20
  imports: [CommonModule, ButtonComponent, MatIconModule],
14
21
  })
15
- export class UrlInputComponent {
22
+ export class UrlInputComponent implements OnChanges {
16
23
  @Input() value = ''
17
24
  @Input() extraClass = ''
18
25
  @Input() placeholder = 'https://'
19
26
  @Input() disabled: boolean
27
+ @Input() urlCanParse?: boolean
20
28
  rawChange = new Subject<string>()
21
29
  @Output() valueChange = this.rawChange.pipe(filter((v) => !!v))
22
30
 
23
31
  constructor(private cd: ChangeDetectorRef) {}
24
32
 
33
+ ngOnChanges(changes: SimpleChanges): void {
34
+ if (changes.value) {
35
+ console.log('changes.value', changes.value)
36
+ }
37
+ }
38
+
25
39
  handleInput() {
26
40
  this.cd.markForCheck()
27
41
  }
@@ -30,4 +44,13 @@ export class UrlInputComponent {
30
44
  const value = element.value
31
45
  this.rawChange.next(value)
32
46
  }
47
+
48
+ URLcanParse(url: string): boolean {
49
+ try {
50
+ new URL(url)
51
+ return true
52
+ } catch (e) {
53
+ return false
54
+ }
55
+ }
33
56
  }
@@ -7,7 +7,7 @@
7
7
  }
8
8
 
9
9
  .table-header-cell {
10
- @apply text-gray-700 px-4 py-5 flex items-center truncate bg-white;
10
+ @apply text-gray-700 px-3 py-3 flex items-center truncate bg-white;
11
11
  }
12
12
 
13
13
  button.table-header-cell {
@@ -1,5 +1,5 @@
1
1
  <div class="grid w-full" [ngStyle]="gridStyle">
2
- <div class="contents">
2
+ <div class="contents w-full">
3
3
  <ng-container *ngFor="let column of columns">
4
4
  <button
5
5
  *ngIf="column.sortable"
@@ -44,7 +44,7 @@
44
44
  </div>
45
45
  <ng-container *ngFor="let column of columns">
46
46
  <div
47
- class="table-row-cell px-4 py-3 flex items-center bg-white transition-colors duration-75 truncate group-hover:text-main group-hover:bg-gray-50 border-b border-gray-200"
47
+ class="table-row-cell px-3 py-1.5 flex items-center bg-white transition-colors duration-75 truncate group-hover:text-main group-hover:bg-gray-50 border-b border-gray-200"
48
48
  >
49
49
  <ng-container
50
50
  *ngTemplateOutlet="column.cell; context: { $implicit: item }"
@@ -29,7 +29,7 @@
29
29
  "
30
30
  class="ml-[8px] mr-[10px]"
31
31
  (buttonClick)="removeItem(index)"
32
- data-cy="remove-item"
32
+ data-test="remove-item"
33
33
  ><span class="material-symbols-outlined gn-ui-icon-medium">close</span>
34
34
  </gn-ui-button>
35
35
  </div>
@@ -1,3 +1,4 @@
1
- export * from './lib/ui-map.module'
2
- export * from './lib/components/map/map.component'
1
+ export * from './lib/components/map-container/map-container.component'
2
+ export * from './lib/components/map-container/map-settings.token'
3
3
  export * from './lib/components/feature-detail/feature-detail.component'
4
+ export * from './lib/map-utils'
@@ -1,6 +1,6 @@
1
1
  <div *ngIf="feature" class="root">
2
2
  <div class="property" *ngFor="let propName of properties">
3
3
  <div>{{ propName }}</div>
4
- <div class="font-bold">{{ feature.get(propName) }}</div>
4
+ <div class="font-bold">{{ feature.properties[propName] }}</div>
5
5
  </div>
6
6
  </div>
@@ -1,6 +1,6 @@
1
- import { Component, ChangeDetectionStrategy, Input } from '@angular/core'
2
- import Feature from 'ol/Feature'
3
- import { Geometry } from 'ol/geom'
1
+ import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
2
+ import { CommonModule } from '@angular/common'
3
+ import type { Feature } from 'geojson'
4
4
 
5
5
  const geometryKeys = ['geometry', 'the_geom']
6
6
 
@@ -9,12 +9,15 @@ const geometryKeys = ['geometry', 'the_geom']
9
9
  templateUrl: './feature-detail.component.html',
10
10
  styleUrls: ['./feature-detail.component.css'],
11
11
  changeDetection: ChangeDetectionStrategy.OnPush,
12
+ standalone: true,
13
+ imports: [CommonModule],
12
14
  })
13
15
  export class FeatureDetailComponent {
14
- @Input() feature: Feature<Geometry>
16
+ @Input() feature: Feature
15
17
 
16
18
  get properties() {
17
- return Object.keys(this.feature.getProperties()).filter(
19
+ if (!this.feature) return []
20
+ return Object.keys(this.feature.properties).filter(
18
21
  (prop) => !geometryKeys.includes(prop)
19
22
  )
20
23
  }
@@ -0,0 +1,203 @@
1
+ import {
2
+ AfterViewInit,
3
+ ChangeDetectionStrategy,
4
+ Component,
5
+ ElementRef,
6
+ EventEmitter,
7
+ Inject,
8
+ Input,
9
+ OnChanges,
10
+ Output,
11
+ SimpleChanges,
12
+ ViewChild,
13
+ } from '@angular/core'
14
+ import { fromEvent, merge, Observable, of, timer } from 'rxjs'
15
+ import { delay, map, startWith, switchMap } from 'rxjs/operators'
16
+ import { CommonModule } from '@angular/common'
17
+ import { MatIconModule } from '@angular/material/icon'
18
+ import { TranslateModule } from '@ngx-translate/core'
19
+ import {
20
+ computeMapContextDiff,
21
+ Extent,
22
+ FeaturesClickEvent,
23
+ FeaturesClickEventType,
24
+ FeaturesHoverEvent,
25
+ FeaturesHoverEventType,
26
+ MapClickEvent,
27
+ MapClickEventType,
28
+ MapContext,
29
+ MapContextLayer,
30
+ MapContextLayerXyz,
31
+ MapContextView,
32
+ } from '@geospatial-sdk/core'
33
+ import {
34
+ applyContextDiffToMap,
35
+ createMapFromContext,
36
+ listen,
37
+ } from '@geospatial-sdk/openlayers'
38
+ import type OlMap from 'ol/Map'
39
+ import type { Feature } from 'geojson'
40
+ import {
41
+ BASEMAP_LAYERS,
42
+ DO_NOT_USE_DEFAULT_BASEMAP,
43
+ MAP_VIEW_CONSTRAINTS,
44
+ } from './map-settings.token'
45
+
46
+ const DEFAULT_BASEMAP_LAYER: MapContextLayerXyz = {
47
+ type: 'xyz',
48
+ url: `https://{a-c}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}.png`,
49
+ attributions: `<span>© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, © <a href="https://carto.com/">Carto</a></span>`,
50
+ }
51
+
52
+ const DEFAULT_VIEW: MapContextView = {
53
+ center: [0, 15],
54
+ zoom: 2,
55
+ }
56
+
57
+ @Component({
58
+ selector: 'gn-ui-map-container',
59
+ templateUrl: './map-container.component.html',
60
+ styleUrls: ['./map-container.component.css'],
61
+ changeDetection: ChangeDetectionStrategy.OnPush,
62
+ standalone: true,
63
+ imports: [CommonModule, MatIconModule, TranslateModule],
64
+ })
65
+ export class MapContainerComponent implements AfterViewInit, OnChanges {
66
+ @Input() context: MapContext | null
67
+
68
+ // these events only get registered on the map if they are used
69
+ _featuresClick: EventEmitter<Feature[]>
70
+ @Output() get featuresClick() {
71
+ if (!this._featuresClick) {
72
+ this.openlayersMap.then((olMap) => {
73
+ listen(
74
+ olMap,
75
+ FeaturesClickEventType,
76
+ ({ features }: FeaturesClickEvent) =>
77
+ this._featuresClick.emit(features)
78
+ )
79
+ })
80
+ this._featuresClick = new EventEmitter<Feature[]>()
81
+ }
82
+ return this._featuresClick
83
+ }
84
+ _featuresHover: EventEmitter<Feature[]>
85
+ @Output() get featuresHover() {
86
+ if (!this._featuresHover) {
87
+ this.openlayersMap.then((olMap) => {
88
+ listen(
89
+ olMap,
90
+ FeaturesHoverEventType,
91
+ ({ features }: FeaturesHoverEvent) =>
92
+ this._featuresHover.emit(features)
93
+ )
94
+ })
95
+ this._featuresHover = new EventEmitter<Feature[]>()
96
+ }
97
+ return this._featuresHover
98
+ }
99
+ _mapClick: EventEmitter<[number, number]>
100
+ @Output() get mapClick() {
101
+ if (!this._mapClick) {
102
+ this.openlayersMap.then((olMap) => {
103
+ listen(olMap, MapClickEventType, ({ coordinate }: MapClickEvent) =>
104
+ this._mapClick.emit(coordinate)
105
+ )
106
+ })
107
+ this._mapClick = new EventEmitter<[number, number]>()
108
+ }
109
+ return this._mapClick
110
+ }
111
+
112
+ @ViewChild('map') container: ElementRef
113
+ displayMessage$: Observable<boolean>
114
+ olMap: OlMap
115
+
116
+ constructor(
117
+ @Inject(DO_NOT_USE_DEFAULT_BASEMAP) private doNotUseDefaultBasemap: boolean,
118
+ @Inject(BASEMAP_LAYERS) private basemapLayers: MapContextLayer[],
119
+ @Inject(MAP_VIEW_CONSTRAINTS)
120
+ private mapViewConstraints: {
121
+ maxZoom?: number
122
+ maxExtent?: Extent
123
+ }
124
+ ) {}
125
+
126
+ private olMapResolver
127
+ openlayersMap = new Promise<OlMap>((resolve) => {
128
+ this.olMapResolver = resolve
129
+ })
130
+
131
+ async ngAfterViewInit() {
132
+ this.olMap = await createMapFromContext(
133
+ this.processContext(this.context),
134
+ this.container.nativeElement
135
+ )
136
+ this.displayMessage$ = merge(
137
+ fromEvent(this.olMap, 'mapmuted').pipe(map(() => true)),
138
+ fromEvent(this.olMap, 'movestart').pipe(map(() => false)),
139
+ fromEvent(this.olMap, 'singleclick').pipe(map(() => false))
140
+ ).pipe(
141
+ switchMap((muted) =>
142
+ muted
143
+ ? timer(2000).pipe(
144
+ map(() => false),
145
+ startWith(true),
146
+ delay(400)
147
+ )
148
+ : of(false)
149
+ )
150
+ )
151
+ this.olMapResolver(this.olMap)
152
+ }
153
+
154
+ async ngOnChanges(changes: SimpleChanges) {
155
+ if ('context' in changes && !changes['context'].isFirstChange()) {
156
+ const diff = computeMapContextDiff(
157
+ this.processContext(changes['context'].currentValue),
158
+ this.processContext(changes['context'].previousValue)
159
+ )
160
+ await applyContextDiffToMap(this.olMap, diff)
161
+ }
162
+ }
163
+
164
+ // This will apply basemap layers & view constraints
165
+ processContext(context: MapContext): MapContext {
166
+ const processed = context
167
+ ? { ...context, view: context.view ?? DEFAULT_VIEW }
168
+ : { layers: [], view: DEFAULT_VIEW }
169
+ if (this.basemapLayers.length) {
170
+ processed.layers = [...this.basemapLayers, ...processed.layers]
171
+ }
172
+ if (!this.doNotUseDefaultBasemap) {
173
+ processed.layers = [DEFAULT_BASEMAP_LAYER, ...processed.layers]
174
+ }
175
+ if (this.mapViewConstraints.maxZoom) {
176
+ processed.view = {
177
+ maxZoom: this.mapViewConstraints.maxZoom,
178
+ ...processed.view,
179
+ }
180
+ }
181
+ if (this.mapViewConstraints.maxExtent) {
182
+ processed.view = {
183
+ maxExtent: this.mapViewConstraints.maxExtent,
184
+ ...processed.view,
185
+ }
186
+ }
187
+ if (
188
+ processed.view &&
189
+ !('zoom' in processed.view) &&
190
+ !('center' in processed.view)
191
+ ) {
192
+ if (this.mapViewConstraints.maxExtent) {
193
+ processed.view = {
194
+ extent: this.mapViewConstraints.maxExtent,
195
+ ...processed.view,
196
+ }
197
+ } else {
198
+ processed.view = { ...DEFAULT_VIEW, ...processed.view }
199
+ }
200
+ }
201
+ return processed
202
+ }
203
+ }
@@ -0,0 +1,23 @@
1
+ import { InjectionToken } from '@angular/core'
2
+ import { Extent, MapContextLayer } from '@geospatial-sdk/core'
3
+
4
+ export const DO_NOT_USE_DEFAULT_BASEMAP = new InjectionToken(
5
+ 'doNotUseDefaultBasemap',
6
+ { factory: () => false }
7
+ )
8
+ export const BASEMAP_LAYERS = new InjectionToken<MapContextLayer[]>(
9
+ 'basemapLayers',
10
+ { factory: () => [] }
11
+ )
12
+ export const MAP_VIEW_CONSTRAINTS = new InjectionToken<{
13
+ maxZoom?: number
14
+ maxExtent?: Extent
15
+ }>('mapViewConstraints', {
16
+ factory: () => ({}),
17
+ })
18
+ export const VECTOR_STYLE_DEFAULT = new InjectionToken('vectorStyleDefault', {
19
+ factory: () => ({
20
+ fill: { color: 'rgba(255, 255, 255, 0.2)' },
21
+ stroke: { color: '#ffcc33', width: 2 },
22
+ }),
23
+ })
@@ -0,0 +1,54 @@
1
+ import Collection from 'ol/Collection'
2
+ import { defaults, DragPan, Interaction, MouseWheelZoom } from 'ol/interaction'
3
+ import MapBrowserEvent from 'ol/MapBrowserEvent'
4
+ import {
5
+ mouseOnly,
6
+ noModifierKeys,
7
+ platformModifierKeyOnly,
8
+ primaryAction,
9
+ } from 'ol/events/condition'
10
+
11
+ export function prioritizePageScroll(interactions: Collection<Interaction>) {
12
+ interactions.clear()
13
+ interactions.extend(
14
+ defaults({
15
+ // remove rotate interactions
16
+ altShiftDragRotate: false,
17
+ pinchRotate: false,
18
+ // replace drag and zoom interactions
19
+ dragPan: false,
20
+ mouseWheelZoom: false,
21
+ })
22
+ .extend([
23
+ new DragPan({
24
+ condition: dragPanCondition,
25
+ }),
26
+ new MouseWheelZoom({
27
+ condition: mouseWheelZoomCondition,
28
+ }),
29
+ ])
30
+ .getArray()
31
+ )
32
+ }
33
+
34
+ export function dragPanCondition(
35
+ this: DragPan,
36
+ event: MapBrowserEvent<PointerEvent>
37
+ ) {
38
+ const dragPanCondition = this.getPointerCount() === 2 || mouseOnly(event)
39
+ if (!dragPanCondition) {
40
+ this.getMap().dispatchEvent('mapmuted')
41
+ }
42
+ // combine the condition with the default DragPan conditions
43
+ return dragPanCondition && noModifierKeys(event) && primaryAction(event)
44
+ }
45
+
46
+ export function mouseWheelZoomCondition(
47
+ this: MouseWheelZoom,
48
+ event: MapBrowserEvent<UIEvent>
49
+ ) {
50
+ if (!platformModifierKeyOnly(event) && event.type === 'wheel') {
51
+ this.getMap().dispatchEvent('mapmuted')
52
+ }
53
+ return platformModifierKeyOnly(event)
54
+ }