geonetwork-ui 2.4.3 → 2.5.0-dev.1103960a3

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 (207) 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 +20 -17
  4. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +22 -2
  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/service/data.service.mjs +8 -8
  9. package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +7 -4
  10. package/esm2022/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.mjs +3 -3
  11. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +2 -1
  12. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +2 -2
  13. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +7 -23
  14. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +2 -2
  15. package/esm2022/libs/feature/editor/src/lib/models/wizard-field.type.mjs +3 -4
  16. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +25 -5
  17. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +10 -7
  18. package/esm2022/libs/feature/record/src/lib/state/mdview.actions.mjs +4 -1
  19. package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +7 -2
  20. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +9 -1
  21. package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +19 -1
  22. package/esm2022/libs/feature/record/src/lib/state/mdview.selectors.mjs +6 -1
  23. package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +1 -1
  24. package/esm2022/libs/ui/elements/src/lib/application-banner/application-banner.component.mjs +3 -3
  25. package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +3 -3
  26. package/esm2022/libs/ui/inputs/src/index.mjs +1 -2
  27. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +1 -6
  28. package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +14 -4
  29. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +10 -3
  30. package/esm2022/libs/ui/widgets/src/index.mjs +1 -2
  31. package/esm2022/libs/ui/widgets/src/lib/ui-widgets.module.mjs +5 -6
  32. package/esm2022/libs/util/data-fetcher/src/lib/data-fetcher.mjs +5 -4
  33. package/esm2022/libs/util/data-fetcher/src/lib/readers/base-cache.mjs +12 -0
  34. package/esm2022/libs/util/data-fetcher/src/lib/readers/base-file.mjs +3 -3
  35. package/esm2022/libs/util/data-fetcher/src/lib/readers/base.mjs +1 -1
  36. package/esm2022/libs/util/data-fetcher/src/lib/readers/csv.mjs +2 -2
  37. package/esm2022/libs/util/data-fetcher/src/lib/readers/excel.mjs +2 -2
  38. package/esm2022/libs/util/data-fetcher/src/lib/readers/geojson.mjs +2 -2
  39. package/esm2022/libs/util/data-fetcher/src/lib/readers/gml.mjs +5 -3
  40. package/esm2022/libs/util/data-fetcher/src/lib/readers/json.mjs +2 -2
  41. package/esm2022/libs/util/data-fetcher/src/lib/readers/wfs.mjs +19 -11
  42. package/esm2022/libs/util/data-fetcher/src/lib/utils.mjs +9 -7
  43. package/esm2022/translations/de.json +4 -76
  44. package/esm2022/translations/en.json +4 -76
  45. package/esm2022/translations/es.json +3 -75
  46. package/esm2022/translations/fr.json +16 -88
  47. package/esm2022/translations/it.json +21 -92
  48. package/esm2022/translations/nl.json +3 -75
  49. package/esm2022/translations/pt.json +3 -75
  50. package/fesm2022/geonetwork-ui.mjs +346 -844
  51. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  52. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  53. package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts +3 -0
  54. package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts.map +1 -1
  55. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts +1 -0
  56. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
  57. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +2 -1
  58. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  59. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +6 -0
  60. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  61. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +2 -1
  62. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  63. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts +2 -1
  64. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
  65. package/libs/feature/dataviz/src/lib/service/data.service.d.ts +2 -2
  66. package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
  67. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +2 -1
  68. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
  69. 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
  70. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -1
  71. package/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.d.ts +1 -3
  72. package/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.d.ts.map +1 -1
  73. package/libs/feature/editor/src/lib/models/wizard-field.type.d.ts +2 -3
  74. package/libs/feature/editor/src/lib/models/wizard-field.type.d.ts.map +1 -1
  75. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +5 -1
  76. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
  77. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +3 -2
  78. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  79. package/libs/feature/record/src/lib/state/mdview.actions.d.ts +16 -1
  80. package/libs/feature/record/src/lib/state/mdview.actions.d.ts.map +1 -1
  81. package/libs/feature/record/src/lib/state/mdview.effects.d.ts +5 -0
  82. package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
  83. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +2 -0
  84. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  85. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts +4 -1
  86. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts.map +1 -1
  87. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts +2 -0
  88. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts.map +1 -1
  89. package/libs/ui/inputs/src/index.d.ts +0 -1
  90. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  91. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +27 -28
  92. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  93. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +4 -2
  94. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -1
  95. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +3 -1
  96. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  97. package/libs/ui/widgets/src/index.d.ts +0 -1
  98. package/libs/ui/widgets/src/index.d.ts.map +1 -1
  99. package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts +8 -9
  100. package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts.map +1 -1
  101. package/libs/util/data-fetcher/src/lib/data-fetcher.d.ts +2 -2
  102. package/libs/util/data-fetcher/src/lib/data-fetcher.d.ts.map +1 -1
  103. package/libs/util/data-fetcher/src/lib/readers/base-cache.d.ts +8 -0
  104. package/libs/util/data-fetcher/src/lib/readers/base-cache.d.ts.map +1 -0
  105. package/libs/util/data-fetcher/src/lib/readers/base-file.d.ts +2 -2
  106. package/libs/util/data-fetcher/src/lib/readers/base-file.d.ts.map +1 -1
  107. package/libs/util/data-fetcher/src/lib/readers/base.d.ts +2 -2
  108. package/libs/util/data-fetcher/src/lib/readers/base.d.ts.map +1 -1
  109. package/libs/util/data-fetcher/src/lib/readers/gml.d.ts +5 -3
  110. package/libs/util/data-fetcher/src/lib/readers/gml.d.ts.map +1 -1
  111. package/libs/util/data-fetcher/src/lib/readers/wfs.d.ts +7 -4
  112. package/libs/util/data-fetcher/src/lib/readers/wfs.d.ts.map +1 -1
  113. package/libs/util/data-fetcher/src/lib/utils.d.ts +2 -2
  114. package/libs/util/data-fetcher/src/lib/utils.d.ts.map +1 -1
  115. package/package.json +1 -1
  116. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +25 -0
  117. package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +4 -0
  118. package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +22 -16
  119. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +41 -2
  120. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +3 -1
  121. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +4 -1
  122. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +75 -0
  123. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +4 -1
  124. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +22 -9
  125. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +2 -1
  126. package/src/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.html +1 -1
  127. 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
  128. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +1 -1
  129. package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.html +0 -13
  130. package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.ts +0 -20
  131. package/src/libs/feature/editor/src/lib/fields.config.ts +1 -1
  132. package/src/libs/feature/editor/src/lib/models/wizard-field.type.ts +0 -1
  133. package/src/libs/feature/record/src/lib/data-view/data-view.component.html +24 -11
  134. package/src/libs/feature/record/src/lib/data-view/data-view.component.ts +26 -4
  135. package/src/libs/feature/record/src/lib/map-view/map-view.component.html +71 -60
  136. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +6 -3
  137. package/src/libs/feature/record/src/lib/state/mdview.actions.ts +16 -0
  138. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +21 -2
  139. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +15 -0
  140. package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +30 -1
  141. package/src/libs/feature/record/src/lib/state/mdview.selectors.ts +12 -0
  142. package/src/libs/ui/elements/src/lib/application-banner/application-banner.component.html +2 -2
  143. package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.ts +2 -2
  144. package/src/libs/ui/inputs/src/index.ts +0 -1
  145. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +0 -3
  146. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +37 -1
  147. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +8 -2
  148. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +2 -0
  149. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +6 -0
  150. package/src/libs/ui/widgets/src/index.ts +0 -1
  151. package/src/libs/ui/widgets/src/lib/ui-widgets.module.ts +2 -3
  152. package/src/libs/util/data-fetcher/src/lib/data-fetcher.ts +13 -4
  153. package/src/libs/util/data-fetcher/src/lib/readers/base-cache.ts +14 -0
  154. package/src/libs/util/data-fetcher/src/lib/readers/base-file.ts +2 -1
  155. package/src/libs/util/data-fetcher/src/lib/readers/base.ts +2 -2
  156. package/src/libs/util/data-fetcher/src/lib/readers/csv.ts +1 -1
  157. package/src/libs/util/data-fetcher/src/lib/readers/excel.ts +1 -1
  158. package/src/libs/util/data-fetcher/src/lib/readers/geojson.ts +1 -1
  159. package/src/libs/util/data-fetcher/src/lib/readers/gml.ts +7 -7
  160. package/src/libs/util/data-fetcher/src/lib/readers/json.ts +1 -1
  161. package/src/libs/util/data-fetcher/src/lib/readers/wfs.ts +34 -11
  162. package/src/libs/util/data-fetcher/src/lib/utils.ts +36 -32
  163. package/translations/de.json +4 -76
  164. package/translations/en.json +4 -76
  165. package/translations/es.json +3 -75
  166. package/translations/fr.json +16 -88
  167. package/translations/it.json +21 -92
  168. package/translations/nl.json +3 -75
  169. package/translations/pt.json +3 -75
  170. package/translations/sk.json +3 -75
  171. package/esm2022/libs/ui/inputs/src/lib/chips-input/chips-input.component.mjs +0 -78
  172. package/esm2022/libs/ui/widgets/src/lib/step-bar/step-bar.component.mjs +0 -55
  173. package/libs/ui/inputs/src/lib/chips-input/chips-input.component.d.ts +0 -33
  174. package/libs/ui/inputs/src/lib/chips-input/chips-input.component.d.ts.map +0 -1
  175. package/libs/ui/widgets/src/lib/step-bar/step-bar.component.d.ts +0 -21
  176. package/libs/ui/widgets/src/lib/step-bar/step-bar.component.d.ts.map +0 -1
  177. package/src/libs/data-access/datafeeder/src/index.ts +0 -1
  178. package/src/libs/data-access/datafeeder/src/openapi/api/api.ts +0 -11
  179. package/src/libs/data-access/datafeeder/src/openapi/api/config.api.service.ts +0 -168
  180. package/src/libs/data-access/datafeeder/src/openapi/api/dataPublishing.api.service.ts +0 -270
  181. package/src/libs/data-access/datafeeder/src/openapi/api/fileUpload.api.service.ts +0 -734
  182. package/src/libs/data-access/datafeeder/src/openapi/api.module.ts +0 -46
  183. package/src/libs/data-access/datafeeder/src/openapi/configuration.ts +0 -125
  184. package/src/libs/data-access/datafeeder/src/openapi/encoder.ts +0 -20
  185. package/src/libs/data-access/datafeeder/src/openapi/index.ts +0 -5
  186. package/src/libs/data-access/datafeeder/src/openapi/model/analysisStatusEnum.api.model.ts +0 -24
  187. package/src/libs/data-access/datafeeder/src/openapi/model/boundingBox.api.model.ts +0 -20
  188. package/src/libs/data-access/datafeeder/src/openapi/model/cRS.api.model.ts +0 -25
  189. package/src/libs/data-access/datafeeder/src/openapi/model/datasetMetadata.api.model.ts +0 -45
  190. package/src/libs/data-access/datafeeder/src/openapi/model/datasetPublishRequest.api.model.ts +0 -39
  191. package/src/libs/data-access/datafeeder/src/openapi/model/datasetPublishingStatus.api.model.ts +0 -50
  192. package/src/libs/data-access/datafeeder/src/openapi/model/datasetUploadStatus.api.model.ts +0 -39
  193. package/src/libs/data-access/datafeeder/src/openapi/model/models.ts +0 -13
  194. package/src/libs/data-access/datafeeder/src/openapi/model/property.api.model.ts +0 -17
  195. package/src/libs/data-access/datafeeder/src/openapi/model/publishJobStatus.api.model.ts +0 -33
  196. package/src/libs/data-access/datafeeder/src/openapi/model/publishRequest.api.model.ts +0 -16
  197. package/src/libs/data-access/datafeeder/src/openapi/model/publishStatusEnum.api.model.ts +0 -20
  198. package/src/libs/data-access/datafeeder/src/openapi/model/publishStepEnum.api.model.ts +0 -42
  199. package/src/libs/data-access/datafeeder/src/openapi/model/uploadJobStatus.api.model.ts +0 -33
  200. package/src/libs/data-access/datafeeder/src/openapi/variables.ts +0 -9
  201. package/src/libs/data-access/datafeeder/src/spec.yaml +0 -537
  202. package/src/libs/ui/inputs/src/lib/chips-input/chips-input.component.css +0 -36
  203. package/src/libs/ui/inputs/src/lib/chips-input/chips-input.component.html +0 -23
  204. package/src/libs/ui/inputs/src/lib/chips-input/chips-input.component.ts +0 -81
  205. package/src/libs/ui/widgets/src/lib/step-bar/step-bar.component.css +0 -3
  206. package/src/libs/ui/widgets/src/lib/step-bar/step-bar.component.html +0 -13
  207. package/src/libs/ui/widgets/src/lib/step-bar/step-bar.component.ts +0 -55
@@ -1,35 +1,34 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./drag-and-drop-file-input/drag-and-drop-file-input.component";
3
- import * as i2 from "./chips-input/chips-input.component";
4
- import * as i3 from "./dropdown-multiselect/dropdown-multiselect.component";
5
- import * as i4 from "./viewport-intersector/viewport-intersector.component";
6
- import * as i5 from "./checkbox/checkbox.component";
7
- import * as i6 from "@angular/common";
8
- import * as i7 from "@ngx-translate/core";
9
- import * as i8 from "ngx-dropzone";
10
- import * as i9 from "@angular/forms";
11
- import * as i10 from "ngx-chips";
12
- import * as i11 from "../../../../util/shared/src/lib/util-shared.module";
13
- import * as i12 from "@angular/material/autocomplete";
14
- import * as i13 from "../../../widgets/src/lib/ui-widgets.module";
15
- import * as i14 from "@angular/cdk/overlay";
16
- import * as i15 from "@angular/material/checkbox";
17
- import * as i16 from "@angular/material/tooltip";
18
- import * as i17 from "@angular/material/form-field";
19
- import * as i18 from "@angular/material/input";
20
- import * as i19 from "@angular/material/datepicker";
21
- import * as i20 from "@angular/material/core";
22
- import * as i21 from "./editable-label/editable-label.directive";
23
- import * as i22 from "./text-area/text-area.component";
24
- import * as i23 from "./button/button.component";
25
- import * as i24 from "./dropdown-selector/dropdown-selector.component";
26
- import * as i25 from "./date-range-picker/date-range-picker.component";
27
- import * as i26 from "./check-toggle/check-toggle.component";
28
- import * as i27 from "./badge/badge.component";
29
- import * as i28 from "@ng-icons/core";
3
+ import * as i2 from "./dropdown-multiselect/dropdown-multiselect.component";
4
+ import * as i3 from "./viewport-intersector/viewport-intersector.component";
5
+ import * as i4 from "./checkbox/checkbox.component";
6
+ import * as i5 from "@angular/common";
7
+ import * as i6 from "@ngx-translate/core";
8
+ import * as i7 from "ngx-dropzone";
9
+ import * as i8 from "@angular/forms";
10
+ import * as i9 from "ngx-chips";
11
+ import * as i10 from "../../../../util/shared/src/lib/util-shared.module";
12
+ import * as i11 from "@angular/material/autocomplete";
13
+ import * as i12 from "../../../widgets/src/lib/ui-widgets.module";
14
+ import * as i13 from "@angular/cdk/overlay";
15
+ import * as i14 from "@angular/material/checkbox";
16
+ import * as i15 from "@angular/material/tooltip";
17
+ import * as i16 from "@angular/material/form-field";
18
+ import * as i17 from "@angular/material/input";
19
+ import * as i18 from "@angular/material/datepicker";
20
+ import * as i19 from "@angular/material/core";
21
+ import * as i20 from "./editable-label/editable-label.directive";
22
+ import * as i21 from "./text-area/text-area.component";
23
+ import * as i22 from "./button/button.component";
24
+ import * as i23 from "./dropdown-selector/dropdown-selector.component";
25
+ import * as i24 from "./date-range-picker/date-range-picker.component";
26
+ import * as i25 from "./check-toggle/check-toggle.component";
27
+ import * as i26 from "./badge/badge.component";
28
+ import * as i27 from "@ng-icons/core";
30
29
  export declare class UiInputsModule {
31
30
  static ɵfac: i0.ɵɵFactoryDeclaration<UiInputsModule, never>;
32
- static ɵmod: i0.ɵɵNgModuleDeclaration<UiInputsModule, [typeof i1.DragAndDropFileInputComponent, typeof i2.ChipsInputComponent, typeof i3.DropdownMultiselectComponent, typeof i4.ViewportIntersectorComponent, typeof i5.CheckboxComponent], [typeof i6.CommonModule, typeof i7.TranslateModule, typeof i8.NgxDropzoneModule, typeof i9.FormsModule, typeof i9.ReactiveFormsModule, typeof i10.TagInputModule, typeof i11.UtilSharedModule, typeof i12.MatAutocompleteModule, typeof i13.UiWidgetsModule, typeof i14.OverlayModule, typeof i15.MatCheckboxModule, typeof i16.MatTooltipModule, typeof i17.MatFormFieldModule, typeof i18.MatInputModule, typeof i19.MatDatepickerModule, typeof i20.MatNativeDateModule, typeof i21.EditableLabelDirective, typeof i22.TextAreaComponent, typeof i23.ButtonComponent, typeof i24.DropdownSelectorComponent, typeof i25.DateRangePickerComponent, typeof i26.CheckToggleComponent, typeof i27.BadgeComponent, typeof i28.NgIcon], [typeof i24.DropdownSelectorComponent, typeof i23.ButtonComponent, typeof i1.DragAndDropFileInputComponent, typeof i22.TextAreaComponent, typeof i2.ChipsInputComponent, typeof i3.DropdownMultiselectComponent, typeof i4.ViewportIntersectorComponent, typeof i26.CheckToggleComponent, typeof i5.CheckboxComponent, typeof i25.DateRangePickerComponent, typeof i21.EditableLabelDirective, typeof i27.BadgeComponent]>;
31
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UiInputsModule, [typeof i1.DragAndDropFileInputComponent, typeof i2.DropdownMultiselectComponent, typeof i3.ViewportIntersectorComponent, typeof i4.CheckboxComponent], [typeof i5.CommonModule, typeof i6.TranslateModule, typeof i7.NgxDropzoneModule, typeof i8.FormsModule, typeof i8.ReactiveFormsModule, typeof i9.TagInputModule, typeof i10.UtilSharedModule, typeof i11.MatAutocompleteModule, typeof i12.UiWidgetsModule, typeof i13.OverlayModule, typeof i14.MatCheckboxModule, typeof i15.MatTooltipModule, typeof i16.MatFormFieldModule, typeof i17.MatInputModule, typeof i18.MatDatepickerModule, typeof i19.MatNativeDateModule, typeof i20.EditableLabelDirective, typeof i21.TextAreaComponent, typeof i22.ButtonComponent, typeof i23.DropdownSelectorComponent, typeof i24.DateRangePickerComponent, typeof i25.CheckToggleComponent, typeof i26.BadgeComponent, typeof i27.NgIcon], [typeof i23.DropdownSelectorComponent, typeof i22.ButtonComponent, typeof i1.DragAndDropFileInputComponent, typeof i21.TextAreaComponent, typeof i2.DropdownMultiselectComponent, typeof i3.ViewportIntersectorComponent, typeof i25.CheckToggleComponent, typeof i4.CheckboxComponent, typeof i24.DateRangePickerComponent, typeof i20.EditableLabelDirective, typeof i26.BadgeComponent]>;
33
32
  static ɵinj: i0.ɵɵInjectorDeclaration<UiInputsModule>;
34
33
  }
35
34
  //# sourceMappingURL=ui-inputs.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui-inputs.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/inputs/src/lib/ui-inputs.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,qBA2Da,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAAG"}
1
+ {"version":3,"file":"ui-inputs.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/inputs/src/lib/ui-inputs.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA,qBAyDa,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAAG"}
@@ -2,15 +2,17 @@ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
2
  import { MatDialog } from '@angular/material/dialog';
3
3
  import { MatMenuTrigger } from '@angular/material/menu';
4
4
  import * as i0 from "@angular/core";
5
- type ActionMenuPage = 'mainMenu' | 'deleteMenu';
5
+ type ActionMenuPage = 'mainMenu' | 'deleteMenu' | 'rollbackMenu';
6
6
  export declare class ActionMenuComponent {
7
7
  dialog: MatDialog;
8
8
  private cdr;
9
9
  canDuplicate: boolean;
10
10
  canDelete: boolean;
11
+ isDraftPage: boolean;
11
12
  duplicate: EventEmitter<void>;
12
13
  delete: EventEmitter<void>;
13
14
  closeActionMenu: EventEmitter<void>;
15
+ rollback: EventEmitter<void>;
14
16
  trigger: MatMenuTrigger;
15
17
  sectionDisplayed: ActionMenuPage;
16
18
  constructor(dialog: MatDialog, cdr: ChangeDetectorRef);
@@ -18,7 +20,7 @@ export declare class ActionMenuComponent {
18
20
  displayMainMenu(): void;
19
21
  displayDeleteMenu(): void;
20
22
  static ɵfac: i0.ɵɵFactoryDeclaration<ActionMenuComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<ActionMenuComponent, "gn-ui-action-menu", never, { "canDuplicate": { "alias": "canDuplicate"; "required": false; }; "canDelete": { "alias": "canDelete"; "required": false; }; }, { "duplicate": "duplicate"; "delete": "delete"; "closeActionMenu": "closeActionMenu"; }, never, never, true, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActionMenuComponent, "gn-ui-action-menu", never, { "canDuplicate": { "alias": "canDuplicate"; "required": false; }; "canDelete": { "alias": "canDelete"; "required": false; }; "isDraftPage": { "alias": "isDraftPage"; "required": false; }; }, { "duplicate": "duplicate"; "delete": "delete"; "closeActionMenu": "closeActionMenu"; "rollback": "rollback"; }, never, never, true, never>;
22
24
  }
23
25
  export {};
24
26
  //# sourceMappingURL=action-menu.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"action-menu.component.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EAEjB,YAAY,EAIb,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,SAAS,EAAmB,MAAM,0BAA0B,CAAA;AACrE,OAAO,EAAiB,cAAc,EAAE,MAAM,wBAAwB,CAAA;;AAKtE,KAAK,cAAc,GAAG,UAAU,GAAG,YAAY,CAAA;AAE/C,qBAca,mBAAmB;IAYrB,MAAM,EAAE,SAAS;IACxB,OAAO,CAAC,GAAG;IAZJ,YAAY,EAAE,OAAO,CAAA;IACrB,SAAS,EAAE,OAAO,CAAA;IACjB,SAAS,qBAA2B;IACpC,MAAM,qBAA2B;IACjC,eAAe,qBAA2B;IAEzB,OAAO,EAAE,cAAc,CAAA;IAElD,gBAAgB,EAAE,cAAc,CAAa;gBAGpC,MAAM,EAAE,SAAS,EAChB,GAAG,EAAE,iBAAiB;IAGhC,QAAQ;IAIR,eAAe;IAKf,iBAAiB;yCAzBN,mBAAmB;2CAAnB,mBAAmB;CA6B/B"}
1
+ {"version":3,"file":"action-menu.component.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EAEjB,YAAY,EAIb,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,SAAS,EAAmB,MAAM,0BAA0B,CAAA;AACrE,OAAO,EAAiB,cAAc,EAAE,MAAM,wBAAwB,CAAA;;AAKtE,KAAK,cAAc,GAAG,UAAU,GAAG,YAAY,GAAG,cAAc,CAAA;AAEhE,qBAca,mBAAmB;IAcrB,MAAM,EAAE,SAAS;IACxB,OAAO,CAAC,GAAG;IAdJ,YAAY,EAAE,OAAO,CAAA;IACrB,SAAS,EAAE,OAAO,CAAA;IAClB,WAAW,EAAE,OAAO,CAAA;IACnB,SAAS,qBAA2B;IACpC,MAAM,qBAA2B;IACjC,eAAe,qBAA2B;IAC1C,QAAQ,qBAA2B;IAElB,OAAO,EAAE,cAAc,CAAA;IAElD,gBAAgB,EAAE,cAAc,CAAa;gBAGpC,MAAM,EAAE,SAAS,EAChB,GAAG,EAAE,iBAAiB;IAGhC,QAAQ;IAIR,eAAe;IAKf,iBAAiB;yCA3BN,mBAAmB;2CAAnB,mBAAmB;CAmC/B"}
@@ -21,6 +21,7 @@ export declare class ResultsTableComponent {
21
21
  recordClick: EventEmitter<CatalogRecord>;
22
22
  duplicateRecord: EventEmitter<CatalogRecord>;
23
23
  deleteRecord: EventEmitter<CatalogRecord>;
24
+ rollbackDraft: EventEmitter<CatalogRecord>;
24
25
  recordsSelectedChange: EventEmitter<[CatalogRecord[], boolean]>;
25
26
  actionMenuButtons: QueryList<ElementRef>;
26
27
  private overlayRef;
@@ -35,11 +36,12 @@ export declare class ResultsTableComponent {
35
36
  handleRecordClick(item: CatalogRecord): void;
36
37
  handleDuplicate(item: unknown): void;
37
38
  handleDelete(item: unknown): void;
39
+ handleRollback(item: unknown): void;
38
40
  setSortBy(col: string, order: 'asc' | 'desc'): void;
39
41
  isSortedBy(col: string): 'desc' | 'asc' | null;
40
42
  isChecked(record: CatalogRecord): boolean;
41
43
  handleRecordSelectedChange(selected: boolean, record: CatalogRecord): void;
42
44
  static ɵfac: i0.ɵɵFactoryDeclaration<ResultsTableComponent, never>;
43
- static ɵcmp: i0.ɵɵComponentDeclaration<ResultsTableComponent, "gn-ui-results-table", never, { "records": { "alias": "records"; "required": false; }; "selectedRecordsIdentifiers": { "alias": "selectedRecordsIdentifiers"; "required": false; }; "sortOrder": { "alias": "sortOrder"; "required": false; }; "hasDraft": { "alias": "hasDraft"; "required": false; }; "canDuplicate": { "alias": "canDuplicate"; "required": false; }; "canDelete": { "alias": "canDelete"; "required": false; }; "isDraftPage": { "alias": "isDraftPage"; "required": false; }; "isDuplicating": { "alias": "isDuplicating"; "required": false; }; }, { "sortByChange": "sortByChange"; "recordClick": "recordClick"; "duplicateRecord": "duplicateRecord"; "deleteRecord": "deleteRecord"; "recordsSelectedChange": "recordsSelectedChange"; }, never, never, true, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<ResultsTableComponent, "gn-ui-results-table", never, { "records": { "alias": "records"; "required": false; }; "selectedRecordsIdentifiers": { "alias": "selectedRecordsIdentifiers"; "required": false; }; "sortOrder": { "alias": "sortOrder"; "required": false; }; "hasDraft": { "alias": "hasDraft"; "required": false; }; "canDuplicate": { "alias": "canDuplicate"; "required": false; }; "canDelete": { "alias": "canDelete"; "required": false; }; "isDraftPage": { "alias": "isDraftPage"; "required": false; }; "isDuplicating": { "alias": "isDuplicating"; "required": false; }; }, { "sortByChange": "sortByChange"; "recordClick": "recordClick"; "duplicateRecord": "duplicateRecord"; "deleteRecord": "deleteRecord"; "rollbackDraft": "rollbackDraft"; "recordsSelectedChange": "recordsSelectedChange"; }, never, never, true, never>;
44
46
  }
45
47
  //# sourceMappingURL=results-table.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"results-table.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/search/src/lib/results-table/results-table.component.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EAEjB,UAAU,EACV,YAAY,EAGZ,SAAS,EAET,gBAAgB,EACjB,MAAM,eAAe,CAAA;AACtB,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AAM,EAAE,UAAU,GAAG,MAAM;IAIzC,iBAAiB,CAAC,IAAI,EAAE,aAAa;IAKrC,eAAe,CAAC,IAAI,EAAE,OAAO;IAI7B,YAAY,CAAC,IAAI,EAAE,OAAO;IAK1B,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM;IAI5C,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,IAAI;IAe9C,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO;IAIzC,0BAA0B,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa;yCAtJxD,qBAAqB;2CAArB,qBAAqB;CAyJjC"}
1
+ {"version":3,"file":"results-table.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/search/src/lib/results-table/results-table.component.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EAEjB,UAAU,EACV,YAAY,EAGZ,SAAS,EAET,gBAAgB,EACjB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;AACzF,OAAO,EAEL,WAAW,EACZ,MAAM,2DAA2D,CAAA;AAMlE,OAAO,EACL,WAAW,EACX,UAAU,EAKX,MAAM,wCAAwC,CAAA;AAK/C,OAAO,EAGL,OAAO,EAER,MAAM,sBAAsB,CAAA;;AAI7B,qBAkBa,qBAAqB;IA2B9B,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,GAAG;IACX,OAAO,CAAC,WAAW;IA7BZ,OAAO,EAAE,aAAa,EAAE,CAAK;IAC7B,0BAA0B,EAAE,MAAM,EAAE,CAAK;IACzC,SAAS,EAAE,WAAW,CAAO;IAC7B,QAAQ,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAc;IAC1D,YAAY,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAa;IAC7D,SAAS,E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.component';
6
6
  export * from './lib/popup-alert/popup-alert.component';
7
7
  export * from './lib/spinning-loader/spinning-loader.component';
8
- export * from './lib/step-bar/step-bar.component';
9
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/widgets/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,2CAA2C,CAAA;AACzD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,2CAA2C,CAAA;AACzD,cAAc,yCAAyC,CAAA;AACvD,cAAc,yCAAyC,CAAA;AACvD,cAAc,iDAAiD,CAAA;AAC/D,cAAc,mCAAmC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/widgets/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,2CAA2C,CAAA;AACzD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,2CAA2C,CAAA;AACzD,cAAc,yCAAyC,CAAA;AACvD,cAAc,yCAAyC,CAAA;AACvD,cAAc,iDAAiD,CAAA"}
@@ -1,16 +1,15 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./color-scale/color-scale.component";
3
- import * as i2 from "./step-bar/step-bar.component";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "@ngx-translate/core";
6
- import * as i5 from "ngx-dropzone";
7
- import * as i6 from "@angular/forms";
8
- import * as i7 from "ngx-chips";
9
- import * as i8 from "../../../../util/shared/src/lib/util-shared.module";
10
- import * as i9 from "@angular/material/progress-spinner";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@ngx-translate/core";
5
+ import * as i4 from "ngx-dropzone";
6
+ import * as i5 from "@angular/forms";
7
+ import * as i6 from "ngx-chips";
8
+ import * as i7 from "../../../../util/shared/src/lib/util-shared.module";
9
+ import * as i8 from "@angular/material/progress-spinner";
11
10
  export declare class UiWidgetsModule {
12
11
  static ɵfac: i0.ɵɵFactoryDeclaration<UiWidgetsModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<UiWidgetsModule, [typeof i1.ColorScaleComponent, typeof i2.StepBarComponent], [typeof i3.CommonModule, typeof i4.TranslateModule, typeof i5.NgxDropzoneModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.TagInputModule, typeof i8.UtilSharedModule, typeof i9.MatProgressSpinnerModule], [typeof i2.StepBarComponent]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UiWidgetsModule, [typeof i1.ColorScaleComponent], [typeof i2.CommonModule, typeof i3.TranslateModule, typeof i4.NgxDropzoneModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.TagInputModule, typeof i7.UtilSharedModule, typeof i8.MatProgressSpinnerModule], never>;
14
13
  static ɵinj: i0.ɵɵInjectorDeclaration<UiWidgetsModule>;
15
14
  }
16
15
  //# sourceMappingURL=ui-widgets.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui-widgets.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/widgets/src/lib/ui-widgets.module.ts"],"names":[],"mappings":";;;;;;;;;;AAWA,qBAca,eAAe;yCAAf,eAAe;0CAAf,eAAe;0CAAf,eAAe;CAAG"}
1
+ {"version":3,"file":"ui-widgets.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/widgets/src/lib/ui-widgets.module.ts"],"names":[],"mappings":";;;;;;;;;AAUA,qBAca,eAAe;yCAAf,eAAe;0CAAf,eAAe;0CAAf,eAAe;CAAG"}
@@ -5,7 +5,7 @@ export declare function openDataset(url: string, typeHint?: SupportedType, optio
5
5
  namespace?: string;
6
6
  wfsVersion?: WfsVersion;
7
7
  wfsFeatureType?: string;
8
- }): Promise<BaseReader>;
8
+ }, cacheActive?: boolean): Promise<BaseReader>;
9
9
  /**
10
10
  * This fetches the full dataset at the given URL and parses it according to its mime type.
11
11
  * All items in the dataset are converted to GeoJSON features, even if they do not bear any spatial geometry.
@@ -15,7 +15,7 @@ export declare function openDataset(url: string, typeHint?: SupportedType, optio
15
15
  * 2. otherwise, look for a Content-Type header in the response with a supported mime type
16
16
  * 3. if no valid mime type was found, look for an explicit file extension in the url (.csv, .geojson etc.)
17
17
  */
18
- export declare function readDataset(url: string, typeHint?: SupportedType, options?: any): Promise<DataItem[]>;
18
+ export declare function readDataset(url: string, typeHint?: SupportedType, options?: any, cacheActive?: boolean): Promise<DataItem[]>;
19
19
  /**
20
20
  * This fetches only the header of the dataset at the given URL, giving info on size, mime-type and last update if available.
21
21
  */
@@ -1 +1 @@
1
- {"version":3,"file":"data-fetcher.d.ts","sourceRoot":"","sources":["../../../../../src/libs/util/data-fetcher/src/lib/data-fetcher.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAc,aAAa,EAAE,MAAM,SAAS,CAAA;AAE7E,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAGnD,wBAAsB,WAAW,CAC/B,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,aAAa,EACxB,OAAO,CAAC,EAAE;IACR,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,GACA,OAAO,CAAC,UAAU,CAAC,CA6BrB;AAED;;;;;;;;GAQG;AACH,wBAAsB,WAAW,CAC/B,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,aAAa,EACxB,OAAO,CAAC,EAAE,GAAG,GACZ,OAAO,CAAC,QAAQ,EAAE,CAAC,CAOrB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAEvE"}
1
+ {"version":3,"file":"data-fetcher.d.ts","sourceRoot":"","sources":["../../../../../src/libs/util/data-fetcher/src/lib/data-fetcher.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAc,aAAa,EAAE,MAAM,SAAS,CAAA;AAE7E,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAGnD,wBAAsB,WAAW,CAC/B,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,aAAa,EACxB,OAAO,CAAC,EAAE;IACR,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,EACD,WAAW,CAAC,EAAE,OAAO,GACpB,OAAO,CAAC,UAAU,CAAC,CAoCrB;AAED;;;;;;;;GAQG;AACH,wBAAsB,WAAW,CAC/B,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,aAAa,EACxB,OAAO,CAAC,EAAE,GAAG,EACb,WAAW,UAAO,GACjB,OAAO,CAAC,QAAQ,EAAE,CAAC,CAOrB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAEvE"}
@@ -0,0 +1,8 @@
1
+ import { BaseReader } from './base';
2
+ export declare abstract class BaseCacheReader extends BaseReader {
3
+ protected url: string;
4
+ protected cacheActive: boolean;
5
+ constructor(url: string, cacheActive?: boolean);
6
+ setCacheActive(value: boolean): void;
7
+ }
8
+ //# sourceMappingURL=base-cache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-cache.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/data-fetcher/src/lib/readers/base-cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAEnC,8BAAsB,eAAgB,SAAQ,UAAU;IAEpD,SAAS,CAAC,GAAG,EAAE,MAAM;IACrB,SAAS,CAAC,WAAW;gBADX,GAAG,EAAE,MAAM,EACX,WAAW,UAAO;IAK9B,cAAc,CAAC,KAAK,EAAE,OAAO;CAG9B"}
@@ -1,10 +1,10 @@
1
- import { BaseReader } from './base';
2
1
  import { DataItem, DatasetInfo, PropertyInfo } from '../model';
2
+ import { BaseCacheReader } from './base-cache';
3
3
  type ParseResult = {
4
4
  items: DataItem[];
5
5
  properties: PropertyInfo[];
6
6
  };
7
- export declare class BaseFileReader extends BaseReader {
7
+ export declare class BaseFileReader extends BaseCacheReader {
8
8
  private parseResult_;
9
9
  protected getData(): Promise<ParseResult>;
10
10
  load(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"base-file.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/data-fetcher/src/lib/readers/base-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAI9D,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,QAAQ,EAAE,CAAA;IACjB,UAAU,EAAE,YAAY,EAAE,CAAA;CAC3B,CAAA;AAED,qBAAa,cAAe,SAAQ,UAAU;IAC5C,OAAO,CAAC,YAAY,CAAsB;IAE1C,SAAS,CAAC,OAAO,IAAI,OAAO,CAAC,WAAW,CAAC;IAIzC,IAAI;IAIJ,IAAI,UAAU,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC,CAExC;IAED,IAAI,IAAI,IAAI,OAAO,CAAC,WAAW,CAAC,CAO/B;IAEK,IAAI,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;CA8BlC"}
1
+ {"version":3,"file":"base-file.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/data-fetcher/src/lib/readers/base-file.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAG9D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAE9C,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,QAAQ,EAAE,CAAA;IACjB,UAAU,EAAE,YAAY,EAAE,CAAA;CAC3B,CAAA;AAED,qBAAa,cAAe,SAAQ,eAAe;IACjD,OAAO,CAAC,YAAY,CAAsB;IAE1C,SAAS,CAAC,OAAO,IAAI,OAAO,CAAC,WAAW,CAAC;IAIzC,IAAI;IAIJ,IAAI,UAAU,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC,CAExC;IAED,IAAI,IAAI,IAAI,OAAO,CAAC,WAAW,CAAC,CAO/B;IAEK,IAAI,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;CA8BlC"}
@@ -2,8 +2,8 @@ import { DataItem, DatasetInfo, FieldAggregation, FieldFilter, FieldGroupBy, Fie
2
2
  export declare class BaseReader {
3
3
  protected url: string;
4
4
  protected selected: FieldName[];
5
- protected groupedBy: FieldGroupBy[];
6
- protected aggregations: FieldAggregation[];
5
+ groupedBy: FieldGroupBy[];
6
+ aggregations: FieldAggregation[];
7
7
  protected filter: FieldFilter;
8
8
  protected sort: FieldSort[];
9
9
  protected startIndex: number;
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/data-fetcher/src/lib/readers/base.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,SAAS,EACT,SAAS,EACT,YAAY,EACb,MAAM,UAAU,CAAA;AAEjB,qBAAa,UAAU;IAST,SAAS,CAAC,GAAG,EAAE,MAAM;IARjC,SAAS,CAAC,QAAQ,EAAE,SAAS,EAAE,CAAO;IACtC,SAAS,CAAC,SAAS,EAAE,YAAY,EAAE,CAAO;IAC1C,SAAS,CAAC,YAAY,EAAE,gBAAgB,EAAE,CAAO;IACjD,SAAS,CAAC,MAAM,EAAE,WAAW,C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AAO;IAClC,SAAS,CAAC,UAAU,EAAE,MAAM,CAAO;IACnC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAO;gBAER,GAAG,EAAE,MAAM;IAEjC,IAAI;IAIJ,IAAI,UAAU,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC,CAExC;IAED,IAAI,IAAI,IAAI,OAAO,CAAC,WAAW,CAAC,CAE/B;IAED,IAAI,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;IAI3B,SAAS,IAAI,IAAI;IASjB,MAAM,CAAC,GAAG,cAAc,EAAE,SAAS,EAAE,GAAG,IAAI;IAM5C,OAAO,CAAC,GAAG,OAAO,EAAE,YAAY,EAAE,GAAG,IAAI;IAKzC,SAAS,CAAC,GAAG,YAAY,EAAE,gBAAgB,EAAE,GAAG,IAAI;IAIpD,KAAK,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;IAIhC,OAAO,CAAC,GAAG,UAAU,EAAE,SAAS,EAAE,GAAG,IAAI;IAIzC,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAK/C"}
@@ -6,9 +6,11 @@ export declare function parseGml(text: string, namespace: string, version: strin
6
6
  properties: PropertyInfo[];
7
7
  };
8
8
  export declare class GmlReader extends BaseFileReader {
9
- namespace: string;
10
- version: WfsVersion;
11
- constructor(url: any, namespace: any, version: any);
9
+ protected url: string;
10
+ protected namespace: string;
11
+ protected version: WfsVersion;
12
+ protected cacheActive: boolean;
13
+ constructor(url: string, namespace: string, version: WfsVersion, cacheActive?: boolean);
12
14
  protected getData(): Promise<{
13
15
  items: DataItem[];
14
16
  properties: PropertyInfo[];
@@ -1 +1 @@
1
- {"version":3,"file":"gml.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/data-fetcher/src/lib/readers/gml.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,YAAY,EAA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ACL,YAAY,EAAE;;CAyC3B"}
@@ -1,20 +1,23 @@
1
1
  import { WfsEndpoint, WfsVersion } from '@camptocamp/ogc-client';
2
2
  import { DataItem, DatasetInfo, PropertyInfo } from '../model';
3
- import { BaseReader } from './base';
4
3
  import { GmlReader } from './gml';
5
4
  import { GeojsonReader } from './geojson';
6
- export declare class WfsReader extends BaseReader {
5
+ import { BaseCacheReader } from './base-cache';
6
+ export declare class WfsReader extends BaseCacheReader {
7
7
  endpoint: WfsEndpoint;
8
8
  featureTypeName: string;
9
9
  version: WfsVersion;
10
- constructor(url: string, wfsEndpoint: WfsEndpoint, featureTypeName: string);
10
+ constructor(url: string, wfsEndpoint: WfsEndpoint, featureTypeName: string, cacheActive?: boolean);
11
11
  get properties(): Promise<PropertyInfo[]>;
12
12
  get info(): Promise<DatasetInfo>;
13
13
  static createReader(wfsUrlEndpoint: string, featureTypeName?: string): Promise<GeojsonReader | GmlReader | WfsReader>;
14
- protected getData(): Promise<{
14
+ getData(aggregation?: any, groupedBy?: any): Promise<{
15
15
  items: DataItem[];
16
16
  properties: PropertyInfo[];
17
+ } | {
18
+ items: any;
17
19
  }>;
20
+ getQueryData(): Promise<any>;
18
21
  load(): void;
19
22
  read(): Promise<DataItem[]>;
20
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"wfs.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/data-fetcher/src/lib/readers/wfs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAChE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE9D,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AACnC,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAgB,MAAM,WAAW,CAAA;AAGvD,qBAAa,SAAU,SAAQ,UAAU;IACvC,QAAQ,EAAE,W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4C7D,OAAO,CAAC,WAAW,CAAC,KAAA,EAAE,SAAS,CAAC,KAAA;;;;;;IAiChC,YAAY;IAkBzB,IAAI;IAIE,IAAI,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;CAGlC"}
@@ -1,8 +1,8 @@
1
1
  import { DataItem, DatasetHeaders, PropertyInfo, SupportedType } from './model';
2
2
  export declare function inferDatasetType(url: string, typeHint?: SupportedType): Promise<SupportedType>;
3
3
  export declare function fetchHeaders(url: string): Promise<DatasetHeaders>;
4
- export declare function fetchDataAsText(url: string): Promise<string>;
5
- export declare function fetchDataAsArrayBuffer(url: string): Promise<ArrayBuffer>;
4
+ export declare function fetchDataAsText(url: string, cacheActive: boolean): Promise<string>;
5
+ export declare function fetchDataAsArrayBuffer(url: string, cacheActive: boolean): Promise<ArrayBuffer>;
6
6
  export declare function tryParseDate(input: unknown): Date | null;
7
7
  export declare function tryParseNumber(input: string): number | null;
8
8
  export declare function jsonToGeojsonFeature(object: {
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/libs/util/data-fetcher/src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,cAAc,EAEd,YAAY,EACZ,aAAa,EAEd,MAAM,SAAS,CAAA;AAMhB,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,aAAa,GACvB,OAAO,CAAC,aAAa,CAAC,CAsBxB;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAWjE;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAgB5D;AACD,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAmBxE;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,GAAG,IAAI,CAkBx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3D;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,QAAQ,CAsB7E;AAqBD;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,QAAQ,EAAE,EACjB,UAAU,UAAQ,GACjB;IACD,KAAK,EAAE,QAAQ,EAAE,CAAA;IACjB,UAAU,EAAE,YAAY,EAAE,CAAA;CAC3B,CA0DA;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,QAAQ,EAAE,GAChB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAgB3B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geonetwork-ui",
3
- "version": "2.4.3",
3
+ "version": "2.5.0-dev.1103960a3",
4
4
  "engines": {
5
5
  "node": ">=20"
6
6
  },
@@ -277,6 +277,31 @@ export class Gn4FieldMapper {
277
277
  },
278
278
  output
279
279
  ),
280
+ featureTypes: (output, source) =>
281
+ this.addExtra(
282
+ {
283
+ featureTypes: selectField(source, 'featureTypes'),
284
+ },
285
+ output
286
+ ),
287
+ related: (output, source) => {
288
+ const fcatSource = selectField(
289
+ getFirstValue(
290
+ selectField(
291
+ <SourceWithUnknownProps>selectField(source, 'related'),
292
+ 'fcats'
293
+ )
294
+ ),
295
+ '_source'
296
+ )
297
+ const featureCatalogIdentifier = selectField(
298
+ <SourceWithUnknownProps>fcatSource,
299
+ 'uuid'
300
+ )
301
+ return featureCatalogIdentifier
302
+ ? this.addExtra({ featureCatalogIdentifier }, output)
303
+ : output
304
+ },
280
305
  isPublishedToAll: (output, source) =>
281
306
  this.addExtra(
282
307
  {
@@ -203,3 +203,7 @@ export interface Gn4Record {
203
203
  guestdownload?: boolean
204
204
  selected?: boolean
205
205
  }
206
+
207
+ export interface Gn4RecordRelated {
208
+ fcats?: Gn4Record[]
209
+ }
@@ -297,6 +297,25 @@ export class ElasticsearchService {
297
297
  return queryParts.length > 0 ? (queryParts as FilterQuery) : undefined
298
298
  }
299
299
 
300
+ private mustNotFilters(): Record<string, unknown>[] {
301
+ return [
302
+ {
303
+ ...this.queryFilterOnValues('resourceType', [
304
+ 'service',
305
+ 'map',
306
+ 'map/static',
307
+ 'mapDigital',
308
+ ]),
309
+ },
310
+ {
311
+ query_string: {
312
+ query:
313
+ 'resourceType:featureCatalog AND !resourceType:dataset AND !cl_level.key:dataset',
314
+ },
315
+ },
316
+ ]
317
+ }
318
+
300
319
  private buildPayloadQuery(
301
320
  { any, ...fieldSearchFilters }: SearchFilters,
302
321
  configFilters: SearchFilters,
@@ -304,14 +323,7 @@ export class ElasticsearchService {
304
323
  geometry?: Geometry
305
324
  ) {
306
325
  const must = [] as Record<string, unknown>[]
307
- const must_not = {
308
- ...this.queryFilterOnValues('resourceType', [
309
- 'service',
310
- 'map',
311
- 'map/static',
312
- 'mapDigital',
313
- ]),
314
- }
326
+ const must_not = this.mustNotFilters()
315
327
  const should = [] as Record<string, unknown>[]
316
328
  const filter = [this.queryFilterOnValues('isTemplate', 'n')] as Record<
317
329
  string,
@@ -413,14 +425,8 @@ export class ElasticsearchService {
413
425
  },
414
426
  },
415
427
  ],
416
- must_not: {
417
- ...this.queryFilterOnValues('resourceType', [
418
- 'service',
419
- 'map',
420
- 'map/static',
421
- 'mapDigital',
422
- ]),
423
- },
428
+
429
+ must_not: this.mustNotFilters(),
424
430
  },
425
431
  },
426
432
  _source: ['resourceTitleObject', 'uuid'],
@@ -12,7 +12,10 @@ import {
12
12
  Iso19139Converter,
13
13
  } from '../../../../../../libs/api/metadata-converter/src'
14
14
  import { PublicationVersionError } from '../../../../../../libs/common/domain/src/lib/model/error'
15
- import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
15
+ import {
16
+ CatalogRecord,
17
+ DatasetFeatureCatalog,
18
+ } from '../../../../../../libs/common/domain/src/lib/model/record'
16
19
  import {
17
20
  Aggregations,
18
21
  AggregationsParams,
@@ -27,6 +30,7 @@ import { RecordsRepositoryInterface } from '../../../../../../libs/common/domain
27
30
  import {
28
31
  RecordsApiService,
29
32
  SearchApiService,
33
+ FeatureResponseApiModel,
30
34
  } from '../../../../../../libs/data-access/gn4/src'
31
35
  import {
32
36
  combineLatest,
@@ -124,7 +128,7 @@ export class Gn4Repository implements RecordsRepositoryInterface {
124
128
  return this.gn4SearchApi
125
129
  .search(
126
130
  'bucket',
127
- null,
131
+ ['fcats'],
128
132
  JSON.stringify(
129
133
  this.gn4SearchHelper.getMetadataByIdPayload(uniqueIdentifier)
130
134
  )
@@ -137,6 +141,41 @@ export class Gn4Repository implements RecordsRepositoryInterface {
137
141
  )
138
142
  }
139
143
 
144
+ getFeatureCatalog(
145
+ record: CatalogRecord,
146
+ visited: Set<string> = new Set() // prevent looping
147
+ ): Observable<DatasetFeatureCatalog | null> {
148
+ if (
149
+ record.extras &&
150
+ record.extras['featureTypes'] &&
151
+ record.extras['featureTypes'][0]?.attributeTable &&
152
+ Array.isArray(record.extras['featureTypes'][0].attributeTable)
153
+ ) {
154
+ return of({
155
+ attributes: record.extras['featureTypes'][0]?.attributeTable?.map(
156
+ (attr) => ({
157
+ name: attr.name,
158
+ title: attr.definition,
159
+ })
160
+ ),
161
+ } as DatasetFeatureCatalog)
162
+ }
163
+
164
+ const featureCatalogIdentifier = record.extras[
165
+ 'featureCatalogIdentifier'
166
+ ] as string
167
+ if (featureCatalogIdentifier && !visited.has(featureCatalogIdentifier)) {
168
+ visited.add(featureCatalogIdentifier)
169
+ return this.getRecord(featureCatalogIdentifier).pipe(
170
+ switchMap((record) =>
171
+ record ? this.getFeatureCatalog(record, visited) : of(null)
172
+ )
173
+ )
174
+ }
175
+
176
+ return of(null)
177
+ }
178
+
140
179
  getSimilarRecords(similarTo: CatalogRecord): Observable<CatalogRecord[]> {
141
180
  return this.gn4SearchApi
142
181
  .search(
@@ -226,7 +226,9 @@ export interface DatasetRecord extends BaseRecord {
226
226
  temporalExtents: Array<DatasetTemporalExtent>
227
227
  spatialRepresentation?: SpatialRepresentationType
228
228
  }
229
-
229
+ export type DatasetFeatureCatalog = {
230
+ attributes: Array<{ name: string; title: string }>
231
+ }
230
232
  export interface ServiceEndpoint {
231
233
  endpointUrl: URL
232
234
  protocol: string
@@ -6,12 +6,15 @@ import {
6
6
  SearchParams,
7
7
  SearchResults,
8
8
  } from '../model/search'
9
- import { CatalogRecord } from '../model/record'
9
+ import { CatalogRecord, DatasetFeatureCatalog } from '../model/record'
10
10
 
11
11
  export abstract class RecordsRepositoryInterface {
12
12
  abstract search(params: SearchParams): Observable<SearchResults>
13
13
  abstract getMatchesCount(filters: FieldFilters): Observable<number>
14
14
  abstract getRecord(uniqueIdentifier: string): Observable<CatalogRecord | null>
15
+ abstract getFeatureCatalog(
16
+ record: CatalogRecord
17
+ ): Observable<DatasetFeatureCatalog | null>
15
18
  abstract aggregate(params: AggregationsParams): Observable<Aggregations>
16
19
  abstract getSimilarRecords(
17
20
  similarTo: CatalogRecord