geonetwork-ui 2.5.0-dev.77e75b46a → 2.5.0-dev.8be73f10b

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 (291) hide show
  1. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +11 -1
  2. package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.mjs +1 -1
  3. package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +50 -32
  4. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +23 -3
  5. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  6. package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
  7. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +7 -4
  8. package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +18 -16
  9. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +24 -14
  10. package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +16 -18
  11. package/esm2022/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.mjs +3 -3
  12. package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +2 -2
  13. package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +2 -2
  14. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.mjs +2 -2
  15. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +3 -2
  16. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +2 -2
  17. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +7 -23
  18. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +2 -2
  19. package/esm2022/libs/feature/editor/src/lib/models/wizard-field.type.mjs +3 -4
  20. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +1 -1
  21. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +25 -5
  22. package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +6 -7
  23. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +10 -7
  24. package/esm2022/libs/feature/record/src/lib/state/mdview.actions.mjs +4 -1
  25. package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +7 -2
  26. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +9 -1
  27. package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +19 -1
  28. package/esm2022/libs/feature/record/src/lib/state/mdview.selectors.mjs +6 -1
  29. package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +6 -3
  30. package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +1 -1
  31. package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +46 -1
  32. package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +3 -2
  33. package/esm2022/libs/ui/dataviz/src/index.mjs +3 -3
  34. package/esm2022/libs/ui/dataviz/src/lib/data-table/custom.mat.paginator.intl.mjs +51 -0
  35. package/esm2022/libs/ui/dataviz/src/lib/data-table/data-table.component.mjs +133 -0
  36. package/esm2022/libs/ui/dataviz/src/lib/data-table/data-table.data.source.mjs +24 -0
  37. package/esm2022/libs/ui/dataviz/src/lib/data-table/data-table.fixtures.mjs +82 -0
  38. package/esm2022/libs/ui/elements/src/index.mjs +2 -1
  39. package/esm2022/libs/ui/elements/src/lib/application-banner/application-banner.component.mjs +78 -0
  40. package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +3 -3
  41. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +2 -1
  42. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +10 -4
  43. package/esm2022/libs/ui/inputs/src/index.mjs +1 -2
  44. package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +43 -3
  45. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +1 -6
  46. package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +14 -4
  47. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +10 -3
  48. package/esm2022/libs/ui/widgets/src/index.mjs +1 -2
  49. package/esm2022/libs/ui/widgets/src/lib/ui-widgets.module.mjs +5 -6
  50. package/esm2022/libs/util/data-fetcher/src/index.mjs +3 -1
  51. package/esm2022/libs/util/data-fetcher/src/lib/data-fetcher.mjs +5 -4
  52. package/esm2022/libs/util/data-fetcher/src/lib/model.mjs +7 -3
  53. package/esm2022/libs/util/data-fetcher/src/lib/readers/base-cache.mjs +12 -0
  54. package/esm2022/libs/util/data-fetcher/src/lib/readers/base-file.mjs +3 -3
  55. package/esm2022/libs/util/data-fetcher/src/lib/readers/base.mjs +1 -1
  56. package/esm2022/libs/util/data-fetcher/src/lib/readers/csv.mjs +2 -2
  57. package/esm2022/libs/util/data-fetcher/src/lib/readers/excel.mjs +2 -2
  58. package/esm2022/libs/util/data-fetcher/src/lib/readers/geojson.mjs +2 -2
  59. package/esm2022/libs/util/data-fetcher/src/lib/readers/gml.mjs +5 -3
  60. package/esm2022/libs/util/data-fetcher/src/lib/readers/json.mjs +2 -2
  61. package/esm2022/libs/util/data-fetcher/src/lib/readers/wfs.mjs +35 -9
  62. package/esm2022/libs/util/data-fetcher/src/lib/utils.mjs +14 -10
  63. package/esm2022/translations/de.json +10 -75
  64. package/esm2022/translations/en.json +10 -75
  65. package/esm2022/translations/es.json +9 -74
  66. package/esm2022/translations/fr.json +22 -87
  67. package/esm2022/translations/it.json +27 -91
  68. package/esm2022/translations/nl.json +9 -74
  69. package/esm2022/translations/pt.json +9 -74
  70. package/fesm2022/geonetwork-ui.mjs +911 -975
  71. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  72. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  73. package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts +3 -0
  74. package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts.map +1 -1
  75. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts +3 -1
  76. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
  77. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +2 -1
  78. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  79. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +6 -0
  80. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  81. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +2 -1
  82. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  83. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts +2 -1
  84. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
  85. package/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.d.ts +7 -9
  86. package/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.d.ts.map +1 -1
  87. package/libs/feature/dataviz/src/lib/service/data.service.d.ts +2 -2
  88. package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
  89. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +5 -7
  90. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
  91. 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
  92. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -1
  93. package/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.d.ts +1 -3
  94. package/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.d.ts.map +1 -1
  95. package/libs/feature/editor/src/lib/models/wizard-field.type.d.ts +2 -3
  96. package/libs/feature/editor/src/lib/models/wizard-field.type.d.ts.map +1 -1
  97. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +5 -1
  98. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
  99. package/libs/feature/record/src/lib/feature-record.module.d.ts +2 -2
  100. package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
  101. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +3 -2
  102. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  103. package/libs/feature/record/src/lib/state/mdview.actions.d.ts +16 -1
  104. package/libs/feature/record/src/lib/state/mdview.actions.d.ts.map +1 -1
  105. package/libs/feature/record/src/lib/state/mdview.effects.d.ts +5 -0
  106. package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
  107. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +2 -0
  108. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  109. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts +4 -1
  110. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts.map +1 -1
  111. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts +2 -0
  112. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts.map +1 -1
  113. package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts +2 -1
  114. package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts.map +1 -1
  115. package/libs/feature/search/src/lib/utils/service/fields.d.ts +10 -0
  116. package/libs/feature/search/src/lib/utils/service/fields.d.ts.map +1 -1
  117. package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
  118. package/libs/ui/dataviz/src/index.d.ts +2 -2
  119. package/libs/ui/dataviz/src/index.d.ts.map +1 -1
  120. package/libs/ui/dataviz/src/lib/data-table/custom.mat.paginator.intl.d.ts +14 -0
  121. package/libs/ui/dataviz/src/lib/data-table/custom.mat.paginator.intl.d.ts.map +1 -0
  122. package/libs/ui/dataviz/src/lib/data-table/data-table.component.d.ts +45 -0
  123. package/libs/ui/dataviz/src/lib/data-table/data-table.component.d.ts.map +1 -0
  124. package/libs/ui/dataviz/src/lib/data-table/data-table.data.source.d.ts +12 -0
  125. package/libs/ui/dataviz/src/lib/data-table/data-table.data.source.d.ts.map +1 -0
  126. package/libs/ui/dataviz/src/lib/data-table/data-table.fixtures.d.ts +10 -0
  127. package/libs/ui/dataviz/src/lib/data-table/data-table.fixtures.d.ts.map +1 -0
  128. package/libs/ui/elements/src/index.d.ts +1 -0
  129. package/libs/ui/elements/src/index.d.ts.map +1 -1
  130. package/libs/ui/elements/src/lib/application-banner/application-banner.component.d.ts +16 -0
  131. package/libs/ui/elements/src/lib/application-banner/application-banner.component.d.ts.map +1 -0
  132. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts.map +1 -1
  133. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +2 -1
  134. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  135. package/libs/ui/inputs/src/index.d.ts +0 -1
  136. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  137. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts +16 -1
  138. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
  139. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +27 -28
  140. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  141. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +4 -2
  142. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -1
  143. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +3 -1
  144. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  145. package/libs/ui/widgets/src/index.d.ts +0 -1
  146. package/libs/ui/widgets/src/index.d.ts.map +1 -1
  147. package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts +8 -9
  148. package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts.map +1 -1
  149. package/libs/util/data-fetcher/src/index.d.ts +3 -1
  150. package/libs/util/data-fetcher/src/index.d.ts.map +1 -1
  151. package/libs/util/data-fetcher/src/lib/data-fetcher.d.ts +2 -2
  152. package/libs/util/data-fetcher/src/lib/data-fetcher.d.ts.map +1 -1
  153. package/libs/util/data-fetcher/src/lib/model.d.ts +1 -1
  154. package/libs/util/data-fetcher/src/lib/model.d.ts.map +1 -1
  155. package/libs/util/data-fetcher/src/lib/readers/base-cache.d.ts +8 -0
  156. package/libs/util/data-fetcher/src/lib/readers/base-cache.d.ts.map +1 -0
  157. package/libs/util/data-fetcher/src/lib/readers/base-file.d.ts +2 -2
  158. package/libs/util/data-fetcher/src/lib/readers/base-file.d.ts.map +1 -1
  159. package/libs/util/data-fetcher/src/lib/readers/base.d.ts +2 -2
  160. package/libs/util/data-fetcher/src/lib/readers/base.d.ts.map +1 -1
  161. package/libs/util/data-fetcher/src/lib/readers/gml.d.ts +5 -3
  162. package/libs/util/data-fetcher/src/lib/readers/gml.d.ts.map +1 -1
  163. package/libs/util/data-fetcher/src/lib/readers/wfs.d.ts +7 -4
  164. package/libs/util/data-fetcher/src/lib/readers/wfs.d.ts.map +1 -1
  165. package/libs/util/data-fetcher/src/lib/utils.d.ts +2 -2
  166. package/libs/util/data-fetcher/src/lib/utils.d.ts.map +1 -1
  167. package/package.json +1 -1
  168. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +25 -0
  169. package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +4 -0
  170. package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +55 -32
  171. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +42 -7
  172. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +3 -1
  173. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +4 -1
  174. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +75 -0
  175. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +4 -1
  176. package/src/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.html +3 -3
  177. package/src/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.ts +17 -15
  178. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +43 -20
  179. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.html +4 -3
  180. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +10 -18
  181. package/src/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.html +1 -1
  182. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +1 -0
  183. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +1 -1
  184. package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.html +0 -13
  185. package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.ts +0 -20
  186. package/src/libs/feature/editor/src/lib/fields.config.ts +1 -1
  187. package/src/libs/feature/editor/src/lib/models/wizard-field.type.ts +0 -1
  188. package/src/libs/feature/record/src/lib/data-view/data-view.component.html +24 -11
  189. package/src/libs/feature/record/src/lib/data-view/data-view.component.ts +26 -4
  190. package/src/libs/feature/record/src/lib/feature-record.module.ts +6 -4
  191. package/src/libs/feature/record/src/lib/map-view/map-view.component.html +71 -60
  192. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +6 -3
  193. package/src/libs/feature/record/src/lib/state/mdview.actions.ts +16 -0
  194. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +21 -2
  195. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +15 -0
  196. package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +30 -1
  197. package/src/libs/feature/record/src/lib/state/mdview.selectors.ts +12 -0
  198. package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +1 -0
  199. package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.ts +1 -0
  200. package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +2 -0
  201. package/src/libs/feature/search/src/lib/utils/service/fields.ts +55 -0
  202. package/src/libs/ui/dataviz/src/index.ts +2 -2
  203. package/src/libs/ui/dataviz/src/lib/data-table/custom.mat.paginator.intl.ts +52 -0
  204. package/src/libs/ui/dataviz/src/lib/{table/table.component.css → data-table/data-table.component.css} +4 -0
  205. package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.html +67 -0
  206. package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.ts +173 -0
  207. package/src/libs/ui/dataviz/src/lib/data-table/data-table.data.source.ts +33 -0
  208. package/src/libs/ui/dataviz/src/lib/data-table/data-table.fixtures.ts +84 -0
  209. package/src/libs/ui/elements/src/index.ts +1 -0
  210. package/src/libs/ui/elements/src/lib/application-banner/application-banner.component.css +0 -0
  211. package/src/libs/ui/elements/src/lib/application-banner/application-banner.component.html +25 -0
  212. package/src/libs/ui/elements/src/lib/application-banner/application-banner.component.ts +70 -0
  213. package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.ts +2 -2
  214. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.ts +2 -0
  215. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +3 -0
  216. package/src/libs/ui/inputs/src/index.ts +0 -1
  217. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +48 -0
  218. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +0 -3
  219. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +37 -1
  220. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +8 -2
  221. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +2 -0
  222. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +6 -0
  223. package/src/libs/ui/widgets/src/index.ts +0 -1
  224. package/src/libs/ui/widgets/src/lib/ui-widgets.module.ts +2 -3
  225. package/src/libs/util/data-fetcher/src/index.ts +3 -0
  226. package/src/libs/util/data-fetcher/src/lib/data-fetcher.ts +13 -4
  227. package/src/libs/util/data-fetcher/src/lib/model.ts +6 -2
  228. package/src/libs/util/data-fetcher/src/lib/readers/base-cache.ts +14 -0
  229. package/src/libs/util/data-fetcher/src/lib/readers/base-file.ts +2 -1
  230. package/src/libs/util/data-fetcher/src/lib/readers/base.ts +2 -2
  231. package/src/libs/util/data-fetcher/src/lib/readers/csv.ts +1 -1
  232. package/src/libs/util/data-fetcher/src/lib/readers/excel.ts +1 -1
  233. package/src/libs/util/data-fetcher/src/lib/readers/geojson.ts +1 -1
  234. package/src/libs/util/data-fetcher/src/lib/readers/gml.ts +7 -7
  235. package/src/libs/util/data-fetcher/src/lib/readers/json.ts +1 -1
  236. package/src/libs/util/data-fetcher/src/lib/readers/wfs.ts +53 -8
  237. package/src/libs/util/data-fetcher/src/lib/utils.ts +38 -32
  238. package/translations/de.json +10 -75
  239. package/translations/en.json +10 -75
  240. package/translations/es.json +9 -74
  241. package/translations/fr.json +22 -87
  242. package/translations/it.json +27 -91
  243. package/translations/nl.json +9 -74
  244. package/translations/pt.json +9 -74
  245. package/translations/sk.json +9 -74
  246. package/esm2022/libs/ui/dataviz/src/lib/table/table.component.mjs +0 -61
  247. package/esm2022/libs/ui/dataviz/src/lib/table/table.fixtures.mjs +0 -40
  248. package/esm2022/libs/ui/inputs/src/lib/chips-input/chips-input.component.mjs +0 -78
  249. package/esm2022/libs/ui/widgets/src/lib/step-bar/step-bar.component.mjs +0 -55
  250. package/libs/ui/dataviz/src/lib/table/table.component.d.ts +0 -29
  251. package/libs/ui/dataviz/src/lib/table/table.component.d.ts.map +0 -1
  252. package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts +0 -11
  253. package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts.map +0 -1
  254. package/libs/ui/inputs/src/lib/chips-input/chips-input.component.d.ts +0 -33
  255. package/libs/ui/inputs/src/lib/chips-input/chips-input.component.d.ts.map +0 -1
  256. package/libs/ui/widgets/src/lib/step-bar/step-bar.component.d.ts +0 -21
  257. package/libs/ui/widgets/src/lib/step-bar/step-bar.component.d.ts.map +0 -1
  258. package/src/libs/data-access/datafeeder/src/index.ts +0 -1
  259. package/src/libs/data-access/datafeeder/src/openapi/api/api.ts +0 -11
  260. package/src/libs/data-access/datafeeder/src/openapi/api/config.api.service.ts +0 -168
  261. package/src/libs/data-access/datafeeder/src/openapi/api/dataPublishing.api.service.ts +0 -270
  262. package/src/libs/data-access/datafeeder/src/openapi/api/fileUpload.api.service.ts +0 -734
  263. package/src/libs/data-access/datafeeder/src/openapi/api.module.ts +0 -46
  264. package/src/libs/data-access/datafeeder/src/openapi/configuration.ts +0 -125
  265. package/src/libs/data-access/datafeeder/src/openapi/encoder.ts +0 -20
  266. package/src/libs/data-access/datafeeder/src/openapi/index.ts +0 -5
  267. package/src/libs/data-access/datafeeder/src/openapi/model/analysisStatusEnum.api.model.ts +0 -24
  268. package/src/libs/data-access/datafeeder/src/openapi/model/boundingBox.api.model.ts +0 -20
  269. package/src/libs/data-access/datafeeder/src/openapi/model/cRS.api.model.ts +0 -25
  270. package/src/libs/data-access/datafeeder/src/openapi/model/datasetMetadata.api.model.ts +0 -45
  271. package/src/libs/data-access/datafeeder/src/openapi/model/datasetPublishRequest.api.model.ts +0 -39
  272. package/src/libs/data-access/datafeeder/src/openapi/model/datasetPublishingStatus.api.model.ts +0 -50
  273. package/src/libs/data-access/datafeeder/src/openapi/model/datasetUploadStatus.api.model.ts +0 -39
  274. package/src/libs/data-access/datafeeder/src/openapi/model/models.ts +0 -13
  275. package/src/libs/data-access/datafeeder/src/openapi/model/property.api.model.ts +0 -17
  276. package/src/libs/data-access/datafeeder/src/openapi/model/publishJobStatus.api.model.ts +0 -33
  277. package/src/libs/data-access/datafeeder/src/openapi/model/publishRequest.api.model.ts +0 -16
  278. package/src/libs/data-access/datafeeder/src/openapi/model/publishStatusEnum.api.model.ts +0 -20
  279. package/src/libs/data-access/datafeeder/src/openapi/model/publishStepEnum.api.model.ts +0 -42
  280. package/src/libs/data-access/datafeeder/src/openapi/model/uploadJobStatus.api.model.ts +0 -33
  281. package/src/libs/data-access/datafeeder/src/openapi/variables.ts +0 -9
  282. package/src/libs/data-access/datafeeder/src/spec.yaml +0 -537
  283. package/src/libs/ui/dataviz/src/lib/table/table.component.html +0 -40
  284. package/src/libs/ui/dataviz/src/lib/table/table.component.ts +0 -80
  285. package/src/libs/ui/dataviz/src/lib/table/table.fixtures.ts +0 -40
  286. package/src/libs/ui/inputs/src/lib/chips-input/chips-input.component.css +0 -36
  287. package/src/libs/ui/inputs/src/lib/chips-input/chips-input.component.html +0 -23
  288. package/src/libs/ui/inputs/src/lib/chips-input/chips-input.component.ts +0 -81
  289. package/src/libs/ui/widgets/src/lib/step-bar/step-bar.component.css +0 -3
  290. package/src/libs/ui/widgets/src/lib/step-bar/step-bar.component.html +0 -13
  291. package/src/libs/ui/widgets/src/lib/step-bar/step-bar.component.ts +0 -55
@@ -1,11 +1,11 @@
1
1
  <div class="flex flex-row h-full overflow-auto">
2
- <gn-ui-table
2
+ <gn-ui-data-table
3
3
  #table
4
4
  class="w-1/2 overflow-auto"
5
- [data]="tableData"
5
+ [dataset]="dataset"
6
6
  [activeId]="selectionId"
7
7
  (selected)="onTableSelect($event)"
8
- ></gn-ui-table>
8
+ ></gn-ui-data-table>
9
9
  <gn-ui-map-container
10
10
  #mapContainer
11
11
  class="w-1/2 h-full"
@@ -8,7 +8,7 @@ import {
8
8
  ViewChild,
9
9
  } from '@angular/core'
10
10
  import {
11
- TableComponent,
11
+ DataTableComponent,
12
12
  TableItemId,
13
13
  TableItemModel,
14
14
  } from '../../../../../../libs/ui/dataviz/src'
@@ -19,18 +19,19 @@ import {
19
19
  FeatureDetailComponent,
20
20
  MapContainerComponent,
21
21
  } from '../../../../../../libs/ui/map/src'
22
+ import { BaseReader } from '../../../../../../libs/util/data-fetcher/src'
22
23
 
23
24
  @Component({
24
25
  selector: 'gn-ui-geo-table-view',
25
26
  templateUrl: './geo-table-view.component.html',
26
27
  styleUrls: ['./geo-table-view.component.css'],
27
28
  changeDetection: ChangeDetectionStrategy.OnPush,
28
- imports: [TableComponent, MapContainerComponent, FeatureDetailComponent],
29
+ imports: [MapContainerComponent, FeatureDetailComponent, DataTableComponent],
29
30
  standalone: true,
30
31
  })
31
32
  export class GeoTableViewComponent implements OnInit, OnDestroy {
32
- @Input() data: FeatureCollection = { type: 'FeatureCollection', features: [] }
33
- @ViewChild('table') uiTable: TableComponent
33
+ @Input() dataset: BaseReader
34
+ @ViewChild('table') uiTable: DataTableComponent
34
35
  @ViewChild('mapContainer') mapContainer: MapContainerComponent
35
36
 
36
37
  tableData: TableItemModel[]
@@ -39,21 +40,16 @@ export class GeoTableViewComponent implements OnInit, OnDestroy {
39
40
  selection: Feature
40
41
  private subscription = new Subscription()
41
42
 
42
- get features() {
43
- return this.data.features
44
- }
45
-
46
43
  constructor(private changeRef: ChangeDetectorRef) {}
47
44
 
48
- ngOnInit(): void {
49
- this.tableData = this.geojsonToTableData(this.data)
50
- this.mapContext = this.initMapContext()
45
+ async ngOnInit() {
46
+ this.mapContext = await this.initMapContext()
51
47
  }
52
48
 
53
49
  onTableSelect(tableEntry: TableItemModel) {
54
50
  const { id } = tableEntry
55
51
  this.selectionId = id
56
- this.selection = this.getFeatureFromId(id)
52
+ // this.selection = this.getFeatureFromId(id)
57
53
  if (this.selection) {
58
54
  this.animateToFeature(this.selection)
59
55
  }
@@ -77,7 +73,8 @@ export class GeoTableViewComponent implements OnInit, OnDestroy {
77
73
  }))
78
74
  }
79
75
 
80
- private initMapContext(): MapContext {
76
+ private async initMapContext(): Promise<MapContext> {
77
+ this.dataset.selectAll()
81
78
  return {
82
79
  layers: [
83
80
  {
@@ -86,7 +83,11 @@ export class GeoTableViewComponent implements OnInit, OnDestroy {
86
83
  },
87
84
  {
88
85
  type: 'geojson',
89
- data: this.data,
86
+ data: {
87
+ type: 'FeatureCollection',
88
+ // FIXME: we're not getting geojson here
89
+ features: await this.dataset.read(),
90
+ },
90
91
  },
91
92
  ],
92
93
  view: {
@@ -112,7 +113,8 @@ export class GeoTableViewComponent implements OnInit, OnDestroy {
112
113
  }
113
114
 
114
115
  private getFeatureFromId(id: TableItemId) {
115
- return this.features.find((feature) => feature.id === id)
116
+ // FIXME: restore this once we need it?
117
+ // return this.features.find((feature) => feature.id === id)
116
118
  }
117
119
 
118
120
  ngOnDestroy(): void {
@@ -164,17 +164,26 @@ export class DataService {
164
164
  wfsLink.url.toString(),
165
165
  wfsLink.name
166
166
  ).pipe(
167
- map((urls) => urls.all),
168
- map((urls) =>
169
- Object.keys(urls).map((format) => ({
170
- ...wfsLink,
171
- type: 'download',
172
- url: new URL(urls[format]),
173
- mimeType: getMimeTypeForFormat(
174
- getFileFormatFromServiceOutput(format)
175
- ),
176
- }))
177
- )
167
+ map((urls) => {
168
+ if (urls.geojson) {
169
+ urls.all['application/json'] = urls.geojson
170
+ }
171
+ return urls
172
+ }),
173
+ map((urls) => {
174
+ const resources: DatasetOnlineResource[] = Object.keys(urls.all).map(
175
+ (format) => ({
176
+ ...wfsLink,
177
+ name: wfsLink.name,
178
+ type: 'download' as const,
179
+ url: new URL(urls.all[format]),
180
+ mimeType: getMimeTypeForFormat(
181
+ getFileFormatFromServiceOutput(format)
182
+ ),
183
+ })
184
+ )
185
+ return resources
186
+ })
178
187
  )
179
188
  }
180
189
 
@@ -187,6 +196,7 @@ export class DataService {
187
196
  return Object.keys(collectionInfo.bulkDownloadLinks).map((downloadLink) => {
188
197
  return {
189
198
  ...ogcApiLink,
199
+ name: collectionInfo.id,
190
200
  type: 'download',
191
201
  url: new URL(collectionInfo.bulkDownloadLinks[downloadLink]),
192
202
  mimeType: getMimeTypeForFormat(
@@ -232,8 +242,11 @@ export class DataService {
232
242
  }))
233
243
  }
234
244
 
235
- readAsGeoJson(link: DatasetOnlineResource): Observable<FeatureCollection> {
236
- return this.getDataset(link).pipe(
245
+ readAsGeoJson(
246
+ link: DatasetOnlineResource,
247
+ cacheActive: boolean
248
+ ): Observable<FeatureCollection> {
249
+ return this.getDataset(link, cacheActive).pipe(
237
250
  switchMap((dataset) => dataset.selectAll().read()),
238
251
  map((features) => ({
239
252
  type: 'FeatureCollection',
@@ -242,13 +255,21 @@ export class DataService {
242
255
  )
243
256
  }
244
257
 
245
- getDataset(link: DatasetOnlineResource): Observable<BaseReader> {
258
+ getDataset(
259
+ link: DatasetOnlineResource,
260
+ cacheActive: boolean
261
+ ): Observable<BaseReader> {
246
262
  if (link.type === 'service' && link.accessServiceProtocol === 'wfs') {
247
263
  const wfsUrlEndpoint = this.proxy.getProxiedUrl(link.url.toString())
248
264
  return from(
249
- openDataset(wfsUrlEndpoint, 'wfs', {
250
- wfsFeatureType: link.name,
251
- })
265
+ openDataset(
266
+ wfsUrlEndpoint,
267
+ 'wfs',
268
+ {
269
+ wfsFeatureType: link.name,
270
+ },
271
+ cacheActive
272
+ )
252
273
  )
253
274
  } else if (link.type === 'download') {
254
275
  const linkProxifiedUrl = this.proxy.getProxiedUrl(link.url.toString())
@@ -257,7 +278,9 @@ export class DataService {
257
278
  SupportedTypes.indexOf(format as any) > -1
258
279
  ? (format as SupportedType)
259
280
  : undefined
260
- return from(openDataset(linkProxifiedUrl, supportedType)).pipe()
281
+ return from(
282
+ openDataset(linkProxifiedUrl, supportedType, undefined, cacheActive)
283
+ ).pipe()
261
284
  } else if (
262
285
  link.type === 'service' &&
263
286
  link.accessServiceProtocol === 'esriRest'
@@ -266,7 +289,7 @@ export class DataService {
266
289
  link.url.toString(),
267
290
  'geojson'
268
291
  )
269
- return from(openDataset(url, 'geojson')).pipe()
292
+ return from(openDataset(url, 'geojson', undefined, cacheActive)).pipe()
270
293
  } else if (
271
294
  link.type === 'service' &&
272
295
  link.accessServiceProtocol === 'ogcFeatures'
@@ -274,7 +297,7 @@ export class DataService {
274
297
  return from(this.getDownloadUrlsFromOgcApi(link.url.href)).pipe(
275
298
  switchMap((collectionInfo) => {
276
299
  const geojsonUrl = collectionInfo.jsonDownloadLink
277
- return openDataset(geojsonUrl, 'geojson')
300
+ return openDataset(geojsonUrl, 'geojson', undefined, cacheActive)
278
301
  }),
279
302
  tap((url) => {
280
303
  if (url === null) {
@@ -1,10 +1,11 @@
1
1
  <div class="w-full h-full flex flex-col">
2
2
  <div class="relative h-full">
3
- <gn-ui-table
3
+ <gn-ui-data-table
4
+ *ngIf="tableData$ | async as dataset"
4
5
  class="overflow-auto grow"
5
- [data]="tableData$ | async"
6
+ [dataset]="dataset"
6
7
  (selected)="onTableSelect($event)"
7
- ></gn-ui-table>
8
+ ></gn-ui-data-table>
8
9
  <gn-ui-loading-mask
9
10
  *ngIf="loading"
10
11
  class="absolute inset-0"
@@ -3,14 +3,13 @@ import { BehaviorSubject, Observable, of } from 'rxjs'
3
3
  import {
4
4
  catchError,
5
5
  finalize,
6
- map,
7
6
  shareReplay,
8
7
  startWith,
9
8
  switchMap,
10
9
  } from 'rxjs/operators'
11
- import { DataItem, FetchError } from '../../../../../../libs/util/data-fetcher/src'
10
+ import { BaseReader, FetchError } from '../../../../../../libs/util/data-fetcher/src'
12
11
  import { DataService } from '../service/data.service'
13
- import { TableComponent, TableItemModel } from '../../../../../../libs/ui/dataviz/src'
12
+ import { DataTableComponent } from '../../../../../../libs/ui/dataviz/src'
14
13
  import { DatasetOnlineResource } from '../../../../../../libs/common/domain/src/lib/model/record'
15
14
  import { TranslateModule, TranslateService } from '@ngx-translate/core'
16
15
  import {
@@ -26,7 +25,7 @@ import { CommonModule } from '@angular/common'
26
25
  changeDetection: ChangeDetectionStrategy.OnPush,
27
26
  imports: [
28
27
  CommonModule,
29
- TableComponent,
28
+ DataTableComponent,
30
29
  LoadingMaskComponent,
31
30
  PopupAlertComponent,
32
31
  TranslateModule,
@@ -34,6 +33,7 @@ import { CommonModule } from '@angular/common'
34
33
  standalone: true,
35
34
  })
36
35
  export class TableViewComponent {
36
+ @Input() cacheActive = true
37
37
  @Input() set link(value: DatasetOnlineResource) {
38
38
  this.currentLink$.next(value)
39
39
  }
@@ -45,25 +45,19 @@ export class TableViewComponent {
45
45
  tableData$ = this.currentLink$.pipe(
46
46
  switchMap((link) => {
47
47
  this.error = null
48
- if (!link) return of([] as TableItemModel[])
48
+ if (!link) return of(undefined)
49
49
  this.loading = true
50
- return this.fetchData(link).pipe(
51
- map((items) =>
52
- items.map((item) => ({
53
- id: item.id,
54
- ...item.properties,
55
- }))
56
- ),
50
+ return this.getDatasetReader(link).pipe(
57
51
  catchError((error) => {
58
52
  this.handleError(error)
59
- return of([] as TableItemModel[])
53
+ return of(undefined)
60
54
  }),
61
55
  finalize(() => {
62
56
  this.loading = false
63
57
  })
64
58
  )
65
59
  }),
66
- startWith([] as TableItemModel[]),
60
+ startWith(undefined),
67
61
  shareReplay(1)
68
62
  )
69
63
 
@@ -72,10 +66,8 @@ export class TableViewComponent {
72
66
  private translateService: TranslateService
73
67
  ) {}
74
68
 
75
- fetchData(link: DatasetOnlineResource): Observable<DataItem[]> {
76
- return this.dataService
77
- .getDataset(link)
78
- .pipe(switchMap((dataset) => dataset.read()))
69
+ getDatasetReader(link: DatasetOnlineResource): Observable<BaseReader> {
70
+ return this.dataService.getDataset(link, this.cacheActive)
79
71
  }
80
72
 
81
73
  onTableSelect(event) {
@@ -2,7 +2,7 @@
2
2
  <gn-ui-form-field-rich
3
3
  class="mt-[-8px]"
4
4
  [label]="label"
5
- [hint]="hint | translate"
5
+ [placeholder]="hint | translate"
6
6
  [value]="constraint_.text ?? ''"
7
7
  (valueChange)="handleConstraintTextChange($event)"
8
8
  ></gn-ui-form-field-rich>
@@ -79,6 +79,7 @@ export class FormFieldContactsForResourceComponent
79
79
  'owner',
80
80
  'point_of_contact',
81
81
  'author',
82
+ 'publisher',
82
83
  ]
83
84
 
84
85
  roleSectionsToDisplay: Role[] = []
@@ -28,7 +28,7 @@ import { FormFieldWrapperComponent } from '../../../../../../../../../libs/ui/la
28
28
  export class FormFieldRichComponent {
29
29
  @Input() label: string
30
30
  @Input() hint: string
31
- @Input() placeholder = 'Votre texte ici' //TODO: translate
31
+ @Input() placeholder = ''
32
32
  @Input() value: string
33
33
 
34
34
  @Output() valueChange: EventEmitter<string> = new EventEmitter()
@@ -16,19 +16,6 @@
16
16
  placeholder=""
17
17
  ></gn-ui-text-input>
18
18
  </div>
19
- <div
20
- class="flex-1 w-11/12"
21
- *ngIf="wizardFieldType.CHIPS === wizardFieldConfig.type"
22
- >
23
- <gn-ui-chips-input
24
- #chips
25
- [selectedItems]="wizardFieldData"
26
- placeholder=""
27
- [id]="wizardFieldConfig.id"
28
- [url]="wizardFieldConfig.options.url"
29
- [loadOnce]="wizardFieldConfig.options.loadOnce"
30
- ></gn-ui-chips-input>
31
- </div>
32
19
  <div
33
20
  class="h-32 w-11/12"
34
21
  *ngIf="wizardFieldType.TEXT_AREA === wizardFieldConfig.type"
@@ -23,7 +23,6 @@ import { WizardFieldModel } from '../../models/wizard-field.model'
23
23
  import { WizardFieldType } from '../../models/wizard-field.type'
24
24
  import { WizardService } from '../../services/wizard.service'
25
25
  import {
26
- ChipsInputComponent,
27
26
  DropdownSelectorComponent,
28
27
  TextAreaComponent,
29
28
  TextInputComponent,
@@ -74,7 +73,6 @@ export class WizardFieldComponent implements AfterViewInit, OnDestroy {
74
73
  @Input() wizardFieldConfig: WizardFieldModel
75
74
 
76
75
  @ViewChild('searchText') searchText: TextInputComponent
77
- @ViewChild('chips') chips: ChipsInputComponent
78
76
  @ViewChild('textArea') textArea: TextAreaComponent
79
77
  @ViewChild('dropdown') dropdown: DropdownSelectorComponent
80
78
 
@@ -96,9 +94,6 @@ export class WizardFieldComponent implements AfterViewInit, OnDestroy {
96
94
  case WizardFieldType.TEXT: {
97
95
  return data || ''
98
96
  }
99
- case WizardFieldType.CHIPS: {
100
- return data ? JSON.parse(data) : []
101
- }
102
97
  case WizardFieldType.TEXT_AREA: {
103
98
  return data || ''
104
99
  }
@@ -131,10 +126,6 @@ export class WizardFieldComponent implements AfterViewInit, OnDestroy {
131
126
  this.initializeTextInputListener()
132
127
  break
133
128
  }
134
- case WizardFieldType.CHIPS: {
135
- this.initializeChipsListener()
136
- break
137
- }
138
129
  case WizardFieldType.TEXT_AREA: {
139
130
  this.initializeTextAreaListener()
140
131
  return
@@ -161,17 +152,6 @@ export class WizardFieldComponent implements AfterViewInit, OnDestroy {
161
152
  )
162
153
  }
163
154
 
164
- private initializeChipsListener() {
165
- this.subs.add(
166
- this.chips.itemsChange.subscribe((items) => {
167
- this.wizardService.onWizardWizardFieldDataChanged(
168
- this.wizardFieldConfig.id,
169
- JSON.stringify(items)
170
- )
171
- })
172
- )
173
- }
174
-
175
155
  private initializeTextAreaListener() {
176
156
  this.subs.add(
177
157
  this.textArea.valueChange.subscribe((value) => {
@@ -275,8 +275,8 @@ export const DEFAULT_CONFIGURATION: EditorConfig = {
275
275
  labelKey: marker('editor.record.form.page.description'),
276
276
  sections: [
277
277
  TITLE_SECTION,
278
- ABOUT_SECTION,
279
278
  CLASSIFICATION_SECTION,
279
+ ABOUT_SECTION,
280
280
  GEOGRAPHICAL_COVERAGE_SECTION,
281
281
  ],
282
282
  },
@@ -1,7 +1,6 @@
1
1
  export enum WizardFieldType {
2
2
  TEXT,
3
3
  TEXT_AREA,
4
- CHIPS,
5
4
  DATA_PICKER,
6
5
  DROPDOWN,
7
6
  }
@@ -8,15 +8,28 @@
8
8
  [choices]="choices"
9
9
  (selectValue)="selectLink($event)"
10
10
  ></gn-ui-dropdown-selector>
11
- <div class="relative h-[420px]">
12
- <gn-ui-table-view
13
- *ngIf="mode === 'table'"
14
- [link]="selectedLink$ | async"
15
- ></gn-ui-table-view>
16
- <gn-ui-chart-view
17
- *ngIf="mode === 'chart'"
18
- (chartConfig$)="setChartConfig($event)"
19
- [link]="selectedLink$ | async"
20
- ></gn-ui-chart-view>
21
- </div>
11
+ <ng-container *ngIf="hidePreview; else dataView">
12
+ <gn-ui-popup-alert
13
+ type="warning"
14
+ icon="matErrorOutlineOutline"
15
+ class="block h-12 p-1"
16
+ >
17
+ <span translate>record.feature.limit</span>
18
+ </gn-ui-popup-alert>
19
+ </ng-container>
20
+ <ng-template #dataView>
21
+ <div class="relative h-[460px]">
22
+ <gn-ui-table-view
23
+ *ngIf="mode === 'table'"
24
+ [cacheActive]="cacheActive$ | async"
25
+ [link]="selectedLink$ | async"
26
+ ></gn-ui-table-view>
27
+ <gn-ui-chart-view
28
+ *ngIf="mode === 'chart'"
29
+ (chartConfig$)="setChartConfig($event)"
30
+ [cacheActive]="cacheActive$ | async"
31
+ [link]="selectedLink$ | async"
32
+ ></gn-ui-chart-view>
33
+ </div>
34
+ </ng-template>
22
35
  </div>
@@ -5,8 +5,8 @@ import {
5
5
  Output,
6
6
  } from '@angular/core'
7
7
  import { getLinkLabel, getLinkPriority } from '../../../../../../libs/util/shared/src'
8
- import { BehaviorSubject, combineLatest } from 'rxjs'
9
- import { map, tap } from 'rxjs/operators'
8
+ import { BehaviorSubject, combineLatest, of } from 'rxjs'
9
+ import { catchError, finalize, map, switchMap, tap } from 'rxjs/operators'
10
10
  import { MdViewFacade } from '../state'
11
11
  import { DatavizConfigurationModel } from '../../../../../../libs/common/domain/src/lib/model/dataviz/dataviz-configuration.model'
12
12
  import { DatasetOnlineResource } from '../../../../../../libs/common/domain/src/lib/model/record'
@@ -17,6 +17,7 @@ import {
17
17
  } from '../../../../../../libs/feature/dataviz/src'
18
18
  import { CommonModule } from '@angular/common'
19
19
  import { TranslateModule } from '@ngx-translate/core'
20
+ import { PopupAlertComponent } from '../../../../../../libs/ui/widgets/src'
20
21
 
21
22
  @Component({
22
23
  selector: 'gn-ui-data-view',
@@ -30,12 +31,21 @@ import { TranslateModule } from '@ngx-translate/core'
30
31
  TableViewComponent,
31
32
  TranslateModule,
32
33
  ChartViewComponent,
34
+ PopupAlertComponent,
33
35
  ],
34
36
  })
35
37
  export class DataViewComponent {
36
38
  @Input() mode: 'table' | 'chart'
37
39
  @Input() displaySource = true
40
+ @Input() set exceedsLimit(value: boolean) {
41
+ this.excludeWfs$.next(value)
42
+ }
38
43
  @Output() chartConfig$ = new BehaviorSubject<DatavizConfigurationModel>(null)
44
+ cacheActive$ = this.mdViewFacade.isHighUpdateFrequency$.pipe(
45
+ map((highF) => !highF)
46
+ )
47
+ hidePreview = false
48
+ excludeWfs$ = new BehaviorSubject(false)
39
49
  compatibleDataLinks$ = combineLatest([
40
50
  this.mdViewFacade.dataLinks$,
41
51
  this.mdViewFacade.geoDataLinks$,
@@ -49,7 +59,7 @@ export class DataViewComponent {
49
59
  dropdownChoices$ = this.compatibleDataLinks$.pipe(
50
60
  tap((links) => {
51
61
  if (links.indexOf(this.selectedLink$.value) === -1) {
52
- this.selectedLink$.next(links[0])
62
+ this.selectLink(JSON.stringify(links[0]))
53
63
  }
54
64
  }),
55
65
  map((links) =>
@@ -70,6 +80,18 @@ export class DataViewComponent {
70
80
  selectLink(linkAsString: string) {
71
81
  const link: DatasetOnlineResource = JSON.parse(linkAsString)
72
82
  link.url = new URL(link.url)
73
- this.selectedLink$.next(link)
83
+ this.excludeWfs$
84
+ .pipe(
85
+ tap((excludeWfs) => {
86
+ this.hidePreview =
87
+ link['accessServiceProtocol'] === 'wfs' &&
88
+ excludeWfs &&
89
+ this.mode === 'chart'
90
+ ? true
91
+ : false
92
+ this.selectedLink$.next(link)
93
+ })
94
+ )
95
+ .subscribe()
74
96
  }
75
97
  }
@@ -4,7 +4,10 @@ import { StoreModule } from '@ngrx/store'
4
4
  import { EffectsModule } from '@ngrx/effects'
5
5
  import { UiLayoutModule } from '../../../../../libs/ui/layout/src'
6
6
  import { FeatureMapModule } from '../../../../../libs/feature/map/src'
7
- import { UiInputsModule } from '../../../../../libs/ui/inputs/src'
7
+ import {
8
+ DropdownSelectorComponent,
9
+ UiInputsModule,
10
+ } from '../../../../../libs/ui/inputs/src'
8
11
  import { UiElementsModule } from '../../../../../libs/ui/elements/src'
9
12
  import { MdViewFacade } from './state'
10
13
  import { MdViewEffects } from './state/mdview.effects'
@@ -16,9 +19,8 @@ import { MatTabsModule } from '@angular/material/tabs'
16
19
  import { UiWidgetsModule } from '../../../../../libs/ui/widgets/src'
17
20
  import { TranslateModule } from '@ngx-translate/core'
18
21
  import { FeatureCatalogModule } from '../../../../../libs/feature/catalog/src'
19
- import { TableComponent } from '../../../../../libs/ui/dataviz/src'
22
+ import { DataTableComponent } from '../../../../../libs/ui/dataviz/src'
20
23
  import { NgIconsModule, provideNgIconsConfig } from '@ng-icons/core'
21
- import { DropdownSelectorComponent } from '../../../../../libs/ui/inputs/src'
22
24
 
23
25
  @NgModule({
24
26
  imports: [
@@ -33,7 +35,7 @@ import { DropdownSelectorComponent } from '../../../../../libs/ui/inputs/src'
33
35
  MatTabsModule,
34
36
  UiWidgetsModule,
35
37
  TranslateModule,
36
- TableComponent,
38
+ DataTableComponent,
37
39
  NgIconsModule,
38
40
  DropdownSelectorComponent,
39
41
  ],