geonetwork-ui 2.2.0 → 2.3.0-dev.139106e0

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 (387) hide show
  1. package/esm2022/index.mjs +2 -1
  2. package/esm2022/libs/api/metadata-converter/src/index.mjs +5 -5
  3. package/esm2022/libs/api/metadata-converter/src/lib/base.converter.mjs +14 -0
  4. package/esm2022/libs/api/metadata-converter/src/lib/find-converter.mjs +15 -0
  5. package/esm2022/libs/api/metadata-converter/src/lib/gn4/atomic-operations.mjs +3 -3
  6. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.converter.mjs +52 -0
  7. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +8 -4
  8. package/esm2022/libs/api/metadata-converter/src/lib/gn4/index.mjs +4 -0
  9. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/index.mjs +2 -0
  10. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.mjs +123 -0
  11. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.mjs +116 -0
  12. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.mjs +138 -0
  13. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/index.mjs +2 -0
  14. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +242 -0
  15. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +58 -62
  16. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/individual-name.mjs +18 -0
  17. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/keyword.mapper.mjs +14 -0
  18. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/role.mapper.mjs +48 -0
  19. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/status.mapper.mjs +18 -0
  20. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/update-frequency.mapper.mjs +64 -0
  21. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +75 -58
  22. package/esm2022/libs/api/metadata-converter/src/lib/xml-utils.mjs +76 -14
  23. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +4 -4
  24. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  25. package/esm2022/libs/data-access/gn4/src/openapi/api/records.api.service.mjs +35 -7
  26. package/esm2022/libs/data-access/gn4/src/openapi/model/models.mjs +1 -2
  27. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +2 -2
  28. package/esm2022/libs/feature/editor/src/index.mjs +2 -2
  29. package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +6 -2
  30. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-array/form-field-array.component.mjs +11 -0
  31. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-file/form-field-file.component.mjs +28 -0
  32. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.mjs +11 -0
  33. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +45 -0
  34. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.mjs +50 -0
  35. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +11 -0
  36. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.mjs +11 -0
  37. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +107 -0
  38. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.mjs +2 -0
  39. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +10 -0
  40. package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +29 -0
  41. package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +10 -10
  42. package/esm2022/libs/feature/editor/src/lib/models/fields.model.mjs +1 -1
  43. package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +8 -8
  44. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +6 -2
  45. package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +3 -3
  46. package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +72 -0
  47. package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +7 -3
  48. package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +12 -7
  49. package/esm2022/libs/feature/map/src/lib/map-context/map-context.model.mjs +2 -1
  50. package/esm2022/libs/feature/map/src/lib/map-context/map-context.service.mjs +52 -25
  51. package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +12 -49
  52. package/esm2022/libs/feature/notifications/src/index.mjs +4 -0
  53. package/esm2022/libs/feature/notifications/src/lib/feature-notifications.module.mjs +18 -0
  54. package/esm2022/libs/feature/notifications/src/lib/notification.model.mjs +2 -0
  55. package/esm2022/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.mjs +49 -0
  56. package/esm2022/libs/feature/notifications/src/lib/notifications.service.mjs +29 -0
  57. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +6 -2
  58. package/esm2022/libs/feature/search/src/lib/results-table/results-table.component.mjs +3 -3
  59. package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +3 -3
  60. package/esm2022/libs/ui/elements/src/index.mjs +15 -15
  61. package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +5 -5
  62. package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +45 -0
  63. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +3 -3
  64. package/esm2022/libs/ui/elements/src/lib/notification/notification.component.mjs +34 -0
  65. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +3 -3
  66. package/esm2022/libs/ui/elements/src/lib/thumbnail/thumbnail.component.mjs +4 -3
  67. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +6 -5
  68. package/esm2022/libs/ui/inputs/src/index.mjs +1 -2
  69. package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -1
  70. package/esm2022/libs/ui/inputs/src/lib/files-drop/files-drop.directive.mjs +59 -0
  71. package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +183 -0
  72. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +10 -23
  73. package/esm2022/libs/ui/layout/src/index.mjs +6 -5
  74. package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +18 -0
  75. package/esm2022/libs/util/shared/src/lib/utils/bytes-convert.mjs +4 -0
  76. package/esm2022/libs/util/shared/src/lib/utils/image-resize.mjs +60 -0
  77. package/esm2022/libs/util/shared/src/lib/utils/index.mjs +8 -6
  78. package/esm2022/translations/de.json +20 -0
  79. package/esm2022/translations/en.json +20 -0
  80. package/esm2022/translations/es.json +20 -0
  81. package/esm2022/translations/fr.json +20 -0
  82. package/esm2022/translations/it.json +20 -0
  83. package/esm2022/translations/nl.json +20 -0
  84. package/esm2022/translations/pt.json +20 -0
  85. package/fesm2022/geonetwork-ui.mjs +4464 -3180
  86. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  87. package/index.d.ts +1 -0
  88. package/index.d.ts.map +1 -1
  89. package/index.ts +1 -0
  90. package/libs/api/metadata-converter/src/index.d.ts +4 -4
  91. package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
  92. package/libs/api/metadata-converter/src/lib/{metadata-base.mapper.d.ts → base.converter.d.ts} +3 -3
  93. package/libs/api/metadata-converter/src/lib/base.converter.d.ts.map +1 -0
  94. package/libs/api/metadata-converter/src/lib/find-converter.d.ts +3 -0
  95. package/libs/api/metadata-converter/src/lib/find-converter.d.ts.map +1 -0
  96. package/libs/api/metadata-converter/src/lib/gn4/{gn4.metadata.mapper.d.ts → gn4.converter.d.ts} +5 -5
  97. package/libs/api/metadata-converter/src/lib/gn4/gn4.converter.d.ts.map +1 -0
  98. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  99. package/libs/api/metadata-converter/src/lib/gn4/index.d.ts +4 -0
  100. package/libs/api/metadata-converter/src/lib/gn4/index.d.ts.map +1 -0
  101. package/libs/api/metadata-converter/src/lib/iso19115-3/index.d.ts +2 -0
  102. package/libs/api/metadata-converter/src/lib/iso19115-3/index.d.ts.map +1 -0
  103. package/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.d.ts +9 -0
  104. package/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.d.ts.map +1 -0
  105. package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts +20 -0
  106. package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts.map +1 -0
  107. package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts +21 -0
  108. package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts.map +1 -0
  109. package/libs/api/metadata-converter/src/lib/iso19139/index.d.ts +2 -0
  110. package/libs/api/metadata-converter/src/lib/iso19139/index.d.ts.map +1 -0
  111. package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts +11 -0
  112. package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts.map +1 -0
  113. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +34 -6
  114. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
  115. package/libs/api/metadata-converter/src/lib/iso19139/utils/individual-name.d.ts +8 -0
  116. package/libs/api/metadata-converter/src/lib/iso19139/utils/individual-name.d.ts.map +1 -0
  117. package/libs/api/metadata-converter/src/lib/iso19139/utils/keyword.mapper.d.ts.map +1 -0
  118. package/libs/api/metadata-converter/src/lib/iso19139/utils/role.mapper.d.ts.map +1 -0
  119. package/libs/api/metadata-converter/src/lib/iso19139/utils/status.mapper.d.ts.map +1 -0
  120. package/libs/api/metadata-converter/src/lib/iso19139/utils/update-frequency.mapper.d.ts.map +1 -0
  121. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +39 -3
  122. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  123. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts +14 -1
  124. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts.map +1 -1
  125. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +2 -2
  126. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  127. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +6 -4
  128. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  129. package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts +9 -5
  130. package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts.map +1 -1
  131. package/libs/data-access/gn4/src/openapi/model/models.d.ts +0 -1
  132. package/libs/data-access/gn4/src/openapi/model/models.d.ts.map +1 -1
  133. package/libs/feature/editor/src/index.d.ts +1 -1
  134. package/libs/feature/editor/src/index.d.ts.map +1 -1
  135. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +8 -5
  136. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
  137. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.d.ts +1 -1
  138. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-array/form-field-array.component.d.ts.map +1 -0
  139. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.d.ts +1 -1
  140. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-file/form-field-file.component.d.ts.map +1 -0
  141. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-object/form-field-object.component.d.ts +1 -1
  142. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.d.ts.map +1 -0
  143. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts +16 -0
  144. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -0
  145. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-simple/form-field-simple.component.d.ts +2 -2
  146. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts.map +1 -0
  147. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts +1 -1
  148. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +1 -0
  149. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts +1 -1
  150. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts.map +1 -0
  151. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.component.d.ts +8 -3
  152. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -0
  153. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts.map +1 -0
  154. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -0
  155. package/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.d.ts +3 -3
  156. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -0
  157. package/libs/feature/editor/src/lib/feature-editor.module.d.ts +1 -1
  158. package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
  159. package/libs/feature/editor/src/lib/models/fields.model.d.ts +1 -1
  160. package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
  161. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts.map +1 -1
  162. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +23 -0
  163. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -0
  164. package/libs/feature/map/src/lib/feature-map.module.d.ts +2 -1
  165. package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
  166. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts +2 -0
  167. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts.map +1 -1
  168. package/libs/feature/map/src/lib/map-context/map-context.model.d.ts +10 -5
  169. package/libs/feature/map/src/lib/map-context/map-context.model.d.ts.map +1 -1
  170. package/libs/feature/map/src/lib/map-context/map-context.service.d.ts.map +1 -1
  171. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts +2 -3
  172. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
  173. package/libs/feature/notifications/src/index.d.ts +4 -0
  174. package/libs/feature/notifications/src/index.d.ts.map +1 -0
  175. package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts +7 -0
  176. package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts.map +1 -0
  177. package/libs/feature/notifications/src/lib/notification.model.d.ts +7 -0
  178. package/libs/feature/notifications/src/lib/notification.model.d.ts.map +1 -0
  179. package/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.d.ts +12 -0
  180. package/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.d.ts.map +1 -0
  181. package/libs/feature/notifications/src/lib/notifications.service.d.ts +15 -0
  182. package/libs/feature/notifications/src/lib/notifications.service.d.ts.map +1 -0
  183. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  184. package/libs/ui/elements/src/index.d.ts +14 -14
  185. package/libs/ui/elements/src/index.d.ts.map +1 -1
  186. package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts +13 -0
  187. package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts.map +1 -0
  188. package/libs/ui/elements/src/lib/notification/notification.component.d.ts +13 -0
  189. package/libs/ui/elements/src/lib/notification/notification.component.d.ts.map +1 -0
  190. package/libs/ui/elements/src/lib/thumbnail/thumbnail.component.d.ts +1 -1
  191. package/libs/ui/elements/src/lib/thumbnail/thumbnail.component.d.ts.map +1 -1
  192. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +20 -20
  193. package/libs/ui/inputs/src/index.d.ts +0 -1
  194. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  195. package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
  196. package/libs/ui/inputs/src/lib/files-drop/files-drop.directive.d.ts +14 -0
  197. package/libs/ui/inputs/src/lib/files-drop/files-drop.directive.d.ts.map +1 -0
  198. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts +44 -0
  199. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts.map +1 -0
  200. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +26 -33
  201. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  202. package/libs/ui/layout/src/index.d.ts +5 -4
  203. package/libs/ui/layout/src/index.d.ts.map +1 -1
  204. package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts +8 -0
  205. package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts.map +1 -0
  206. package/libs/util/shared/src/lib/utils/bytes-convert.d.ts +2 -0
  207. package/libs/util/shared/src/lib/utils/bytes-convert.d.ts.map +1 -0
  208. package/libs/util/shared/src/lib/utils/image-resize.d.ts +3 -0
  209. package/libs/util/shared/src/lib/utils/image-resize.d.ts.map +1 -0
  210. package/libs/util/shared/src/lib/utils/index.d.ts +7 -5
  211. package/libs/util/shared/src/lib/utils/index.d.ts.map +1 -1
  212. package/package.json +2 -2
  213. package/src/libs/api/metadata-converter/src/index.ts +4 -4
  214. package/src/libs/api/metadata-converter/src/lib/{metadata-base.mapper.ts → base.converter.ts} +2 -2
  215. package/src/libs/api/metadata-converter/src/lib/find-converter.ts +16 -0
  216. package/src/libs/api/metadata-converter/src/lib/fixtures/generic.records.ts +32 -5
  217. package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +11 -4
  218. package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +33 -7
  219. package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +580 -0
  220. package/src/libs/api/metadata-converter/src/lib/gn4/atomic-operations.ts +2 -2
  221. package/src/libs/api/metadata-converter/src/lib/gn4/{gn4.metadata.mapper.ts → gn4.converter.ts} +2 -2
  222. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +9 -3
  223. package/src/libs/api/metadata-converter/src/lib/gn4/index.ts +3 -0
  224. package/src/libs/api/metadata-converter/src/lib/iso19115-3/index.ts +1 -0
  225. package/src/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.ts +176 -0
  226. package/src/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.ts +329 -0
  227. package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +513 -0
  228. package/src/libs/api/metadata-converter/src/lib/iso19139/index.ts +1 -0
  229. package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +327 -0
  230. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +121 -82
  231. package/src/libs/api/metadata-converter/src/lib/iso19139/utils/individual-name.ts +20 -0
  232. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +175 -95
  233. package/src/libs/api/metadata-converter/src/lib/xml-utils.ts +84 -16
  234. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +2 -2
  235. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +9 -4
  236. package/src/libs/data-access/gn4/src/openapi/api/records.api.service.ts +43 -12
  237. package/src/libs/data-access/gn4/src/openapi/model/models.ts +0 -1
  238. package/src/libs/data-access/gn4/src/spec.yaml +1 -1
  239. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +1 -1
  240. package/src/libs/feature/editor/src/index.ts +1 -1
  241. package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +8 -1
  242. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html +8 -0
  243. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts +70 -0
  244. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.ts +1 -0
  245. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.ts +4 -1
  246. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-object/form-field-object.component.ts +1 -0
  247. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.html +20 -0
  248. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +44 -0
  249. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-simple/form-field-simple.component.ts +4 -1
  250. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +1 -0
  251. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-temporal-extent/form-field-temporal-extent.component.ts +1 -0
  252. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.component.html +28 -4
  253. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +121 -0
  254. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.css +0 -0
  255. package/src/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.html +1 -0
  256. package/src/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.ts +4 -4
  257. package/src/libs/feature/editor/src/lib/feature-editor.module.ts +9 -9
  258. package/src/libs/feature/editor/src/lib/models/fields.model.ts +1 -1
  259. package/src/libs/feature/editor/src/lib/services/editor.service.ts +27 -16
  260. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts +5 -1
  261. package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.html +1 -1
  262. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.css +0 -0
  263. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.html +36 -0
  264. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +80 -0
  265. package/src/libs/feature/map/src/lib/feature-map.module.ts +2 -0
  266. package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.html +8 -0
  267. package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.ts +5 -0
  268. package/src/libs/feature/map/src/lib/map-context/map-context.model.ts +10 -3
  269. package/src/libs/feature/map/src/lib/map-context/map-context.service.ts +60 -32
  270. package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +17 -61
  271. package/src/libs/feature/notifications/src/index.ts +3 -0
  272. package/src/libs/feature/notifications/src/lib/feature-notifications.module.ts +10 -0
  273. package/src/libs/feature/notifications/src/lib/notification.model.ts +6 -0
  274. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.css +0 -0
  275. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.html +17 -0
  276. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.ts +44 -0
  277. package/src/libs/feature/notifications/src/lib/notifications.service.ts +27 -0
  278. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +5 -1
  279. package/src/libs/feature/search/src/lib/results-table/results-table.component.html +3 -3
  280. package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.html +5 -5
  281. package/src/libs/ui/elements/src/index.ts +14 -14
  282. package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +1 -1
  283. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.css +0 -5
  284. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +0 -21
  285. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.ts +1 -14
  286. package/src/libs/ui/elements/src/lib/notification/notification.component.css +0 -0
  287. package/src/libs/ui/elements/src/lib/notification/notification.component.html +52 -0
  288. package/src/libs/ui/elements/src/lib/notification/notification.component.ts +31 -0
  289. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +1 -1
  290. package/src/libs/ui/elements/src/lib/thumbnail/thumbnail.component.ts +5 -3
  291. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +1 -1
  292. package/src/libs/ui/inputs/src/index.ts +0 -1
  293. package/src/libs/ui/inputs/src/lib/button/button.component.ts +1 -1
  294. package/src/libs/ui/inputs/src/lib/files-drop/files-drop.directive.ts +45 -0
  295. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.css +0 -0
  296. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.html +146 -0
  297. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.ts +193 -0
  298. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -19
  299. package/src/libs/ui/layout/src/index.ts +5 -4
  300. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.css +0 -0
  301. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +18 -0
  302. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.ts +16 -0
  303. package/src/libs/util/shared/src/lib/utils/bytes-convert.ts +3 -0
  304. package/src/libs/util/shared/src/lib/utils/image-resize.ts +72 -0
  305. package/src/libs/util/shared/src/lib/utils/index.ts +7 -5
  306. package/tailwind.base.css +36 -0
  307. package/translations/de.json +20 -0
  308. package/translations/en.json +20 -0
  309. package/translations/es.json +20 -0
  310. package/translations/fr.json +20 -0
  311. package/translations/it.json +20 -0
  312. package/translations/nl.json +20 -0
  313. package/translations/pt.json +20 -0
  314. package/translations/sk.json +20 -0
  315. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.mjs +0 -52
  316. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/codelists/keyword.mapper.mjs +0 -14
  317. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/codelists/role.mapper.mjs +0 -48
  318. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/codelists/status.mapper.mjs +0 -18
  319. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/codelists/update-frequency.mapper.mjs +0 -64
  320. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/converter.mjs +0 -130
  321. package/esm2022/libs/api/metadata-converter/src/lib/metadata-base.mapper.mjs +0 -14
  322. package/esm2022/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.mjs +0 -13
  323. package/esm2022/libs/feature/editor/src/lib/record-form/record-form.component.mjs +0 -30
  324. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-array/form-field-array.component.mjs +0 -11
  325. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-file/form-field-file.component.mjs +0 -27
  326. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-object/form-field-object.component.mjs +0 -11
  327. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.mjs +0 -27
  328. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.mjs +0 -49
  329. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +0 -11
  330. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.mjs +0 -11
  331. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field.component.mjs +0 -76
  332. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field.model.mjs +0 -2
  333. package/esm2022/libs/ui/inputs/src/lib/form-field/index.mjs +0 -10
  334. package/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.d.ts.map +0 -1
  335. package/libs/api/metadata-converter/src/lib/iso19139/codelists/keyword.mapper.d.ts.map +0 -1
  336. package/libs/api/metadata-converter/src/lib/iso19139/codelists/role.mapper.d.ts.map +0 -1
  337. package/libs/api/metadata-converter/src/lib/iso19139/codelists/status.mapper.d.ts.map +0 -1
  338. package/libs/api/metadata-converter/src/lib/iso19139/codelists/update-frequency.mapper.d.ts.map +0 -1
  339. package/libs/api/metadata-converter/src/lib/iso19139/converter.d.ts +0 -4
  340. package/libs/api/metadata-converter/src/lib/iso19139/converter.d.ts.map +0 -1
  341. package/libs/api/metadata-converter/src/lib/metadata-base.mapper.d.ts.map +0 -1
  342. package/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.d.ts +0 -18
  343. package/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.d.ts.map +0 -1
  344. package/libs/feature/editor/src/lib/record-form/record-form.component.d.ts.map +0 -1
  345. package/libs/ui/inputs/src/lib/form-field/form-field-array/form-field-array.component.d.ts.map +0 -1
  346. package/libs/ui/inputs/src/lib/form-field/form-field-file/form-field-file.component.d.ts.map +0 -1
  347. package/libs/ui/inputs/src/lib/form-field/form-field-object/form-field-object.component.d.ts.map +0 -1
  348. package/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.d.ts +0 -11
  349. package/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.d.ts.map +0 -1
  350. package/libs/ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.d.ts.map +0 -1
  351. package/libs/ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +0 -1
  352. package/libs/ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts.map +0 -1
  353. package/libs/ui/inputs/src/lib/form-field/form-field.component.d.ts.map +0 -1
  354. package/libs/ui/inputs/src/lib/form-field/form-field.model.d.ts.map +0 -1
  355. package/libs/ui/inputs/src/lib/form-field/index.d.ts.map +0 -1
  356. package/src/libs/api/metadata-converter/src/lib/iso19139/converter.ts +0 -196
  357. package/src/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.ts +0 -18
  358. package/src/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.html +0 -11
  359. package/src/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.ts +0 -15
  360. package/src/libs/ui/inputs/src/lib/form-field/form-field.component.ts +0 -80
  361. /package/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/keyword.mapper.d.ts +0 -0
  362. /package/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/role.mapper.d.ts +0 -0
  363. /package/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/status.mapper.d.ts +0 -0
  364. /package/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/update-frequency.mapper.d.ts +0 -0
  365. /package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.model.d.ts +0 -0
  366. /package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/index.d.ts +0 -0
  367. /package/src/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/keyword.mapper.ts +0 -0
  368. /package/src/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/role.mapper.ts +0 -0
  369. /package/src/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/status.mapper.ts +0 -0
  370. /package/src/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/update-frequency.mapper.ts +0 -0
  371. /package/src/libs/feature/editor/src/lib/{record-form/record-form.component.css → components/overview-upload/overview-upload.component.css} +0 -0
  372. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.css +0 -0
  373. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.html +0 -0
  374. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.css +0 -0
  375. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.html +0 -0
  376. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-object/form-field-object.component.css +0 -0
  377. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-object/form-field-object.component.html +0 -0
  378. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-rich/form-field-rich.component.css +0 -0
  379. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-simple/form-field-simple.component.css +0 -0
  380. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-simple/form-field-simple.component.html +0 -0
  381. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-spatial-extent/form-field-spatial-extent.component.css +0 -0
  382. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +0 -0
  383. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-temporal-extent/form-field-temporal-extent.component.css +0 -0
  384. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-temporal-extent/form-field-temporal-extent.component.html +0 -0
  385. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.component.css +0 -0
  386. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.model.ts +0 -0
  387. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/index.ts +0 -0
@@ -1,196 +0,0 @@
1
- import {
2
- CatalogRecord,
3
- DatasetRecord,
4
- ServiceRecord,
5
- } from '../../../../../../libs/common/domain/src/lib/model/record'
6
- import {
7
- createDocument,
8
- createElement,
9
- getRootElement,
10
- parseXmlString,
11
- xmlToString,
12
- } from '../xml-utils'
13
- import {
14
- writeAbstract,
15
- writeContacts,
16
- writeDatasetCreated,
17
- writeDatasetUpdated,
18
- writeDistributions,
19
- writeGraphicOverviews,
20
- writeKeywords,
21
- writeKind,
22
- writeLegalConstraints,
23
- writeLicenses,
24
- writeLineage,
25
- writeOnlineResources,
26
- writeOtherConstraints,
27
- writeOwnerOrganization,
28
- writeRecordUpdated,
29
- writeSecurityConstraints,
30
- writeSpatialRepresentation,
31
- writeStatus,
32
- writeTopics,
33
- writeTitle,
34
- writeUniqueIdentifier,
35
- writeUpdateFrequency,
36
- } from './write-parts'
37
- import {
38
- readAbstract,
39
- readContacts,
40
- readDatasetCreated,
41
- readDatasetUpdated,
42
- readDistributions,
43
- readIsoTopics,
44
- readKeywords,
45
- readKind,
46
- readLegalConstraints,
47
- readLicenses,
48
- readLineage,
49
- readOnlineResources,
50
- readOtherConstraints,
51
- readOverviews,
52
- readOwnerOrganization,
53
- readRecordUpdated,
54
- readRecordPublished,
55
- readSecurityConstraints,
56
- readSpatialExtents,
57
- readSpatialRepresentation,
58
- readStatus,
59
- readTemporalExtents,
60
- readTitle,
61
- readUniqueIdentifier,
62
- readUpdateFrequency,
63
- } from './read-parts'
64
- import { isEqual } from '../convert-utils'
65
-
66
- export function toModel(xml: string): CatalogRecord {
67
- const doc = parseXmlString(xml)
68
- const rootEl = getRootElement(doc)
69
-
70
- const uniqueIdentifier = readUniqueIdentifier(rootEl)
71
- const kind = readKind(rootEl)
72
- const ownerOrganization = readOwnerOrganization(rootEl)
73
- const title = readTitle(rootEl)
74
- const abstract = readAbstract(rootEl)
75
- const contacts = readContacts(rootEl)
76
- const recordUpdated = readRecordUpdated(rootEl)
77
- const recordCreated = recordUpdated
78
- const recordPublished = readRecordPublished(rootEl)
79
- const keywords = readKeywords(rootEl)
80
- const topics = readIsoTopics(rootEl)
81
- const legalConstraints = readLegalConstraints(rootEl)
82
- const otherConstraints = readOtherConstraints(rootEl)
83
- const securityConstraints = readSecurityConstraints(rootEl)
84
- const licenses = readLicenses(rootEl)
85
- const overviews = readOverviews(rootEl)
86
-
87
- if (kind === 'dataset') {
88
- const status = readStatus(rootEl)
89
- const datasetCreated = readDatasetCreated(rootEl)
90
- const datasetUpdated = readDatasetUpdated(rootEl)
91
- const spatialRepresentation = readSpatialRepresentation(rootEl)
92
- const spatialExtents = readSpatialExtents(rootEl)
93
- const temporalExtents = readTemporalExtents(rootEl)
94
- const lineage = readLineage(rootEl)
95
- const distributions = readDistributions(rootEl)
96
- const updateFrequency = readUpdateFrequency(rootEl)
97
-
98
- return {
99
- uniqueIdentifier,
100
- kind,
101
- languages: [],
102
- recordCreated,
103
- recordUpdated,
104
- recordPublished,
105
- status,
106
- title,
107
- abstract,
108
- ownerOrganization,
109
- contacts,
110
- contactsForResource: [], // FIXME: is that really useful??
111
- keywords,
112
- topics,
113
- licenses,
114
- legalConstraints,
115
- securityConstraints,
116
- otherConstraints,
117
- ...(datasetCreated && { datasetCreated }),
118
- ...(datasetUpdated && { datasetUpdated }),
119
- lineage,
120
- ...(spatialRepresentation && { spatialRepresentation }),
121
- overviews,
122
- spatialExtents,
123
- temporalExtents,
124
- distributions,
125
- updateFrequency,
126
- } as DatasetRecord
127
- } else {
128
- const onlineResources = readOnlineResources(rootEl)
129
- return {
130
- uniqueIdentifier,
131
- kind,
132
- languages: [],
133
- recordCreated,
134
- recordUpdated,
135
- recordPublished,
136
- title,
137
- abstract,
138
- ownerOrganization,
139
- contacts,
140
- keywords,
141
- topics,
142
- licenses,
143
- legalConstraints,
144
- securityConstraints,
145
- otherConstraints,
146
- overviews,
147
- onlineResources,
148
- } as ServiceRecord
149
- }
150
- }
151
-
152
- export function toXml(record: CatalogRecord, originalXml?: string): string {
153
- const originalDoc = originalXml ? parseXmlString(originalXml) : null
154
- const originalRecord = originalXml ? toModel(originalXml) : null
155
- const rootEl = originalDoc
156
- ? getRootElement(originalDoc)
157
- : createElement('gmd:MD_Metadata')()
158
-
159
- function fieldChanged(name: string) {
160
- return originalRecord !== null
161
- ? !isEqual(record[name], originalRecord[name])
162
- : true
163
- }
164
-
165
- writeUniqueIdentifier(record, rootEl)
166
- writeKind(record, rootEl)
167
- fieldChanged('ownerOrganization') && writeOwnerOrganization(record, rootEl)
168
- fieldChanged('recordUpdated') && writeRecordUpdated(record, rootEl)
169
- writeTitle(record, rootEl)
170
- writeAbstract(record, rootEl)
171
- fieldChanged('contacts') && writeContacts(record, rootEl)
172
- fieldChanged('keywords') && writeKeywords(record, rootEl)
173
- fieldChanged('topics') && writeTopics(record, rootEl)
174
- fieldChanged('legalConstraints') && writeLegalConstraints(record, rootEl)
175
- fieldChanged('securityConstraints') &&
176
- writeSecurityConstraints(record, rootEl)
177
- fieldChanged('licenses') && writeLicenses(record, rootEl)
178
- fieldChanged('otherConstraints') && writeOtherConstraints(record, rootEl)
179
-
180
- if (record.kind === 'dataset') {
181
- writeStatus(record, rootEl)
182
- fieldChanged('updateFrequency') && writeUpdateFrequency(record, rootEl)
183
- fieldChanged('datasetCreated') && writeDatasetCreated(record, rootEl)
184
- fieldChanged('datasetUpdated') && writeDatasetUpdated(record, rootEl)
185
- fieldChanged('spatialRepresentation') &&
186
- writeSpatialRepresentation(record, rootEl)
187
- fieldChanged('overviews') && writeGraphicOverviews(record, rootEl)
188
- fieldChanged('distributions') && writeDistributions(record, rootEl)
189
- writeLineage(record, rootEl)
190
- } else {
191
- fieldChanged('onlineResources') && writeOnlineResources(record, rootEl)
192
- }
193
-
194
- const newDocument = createDocument(rootEl)
195
- return xmlToString(newDocument)
196
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * GeoNetwork 4.2.7 OpenAPI Documentation
3
- * This is the description of the GeoNetwork OpenAPI. Use this API to manage your catalog.
4
- *
5
- * The version of the OpenAPI document: 4.2.7
6
- * Contact: geonetwork-users@lists.sourceforge.net
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
-
13
- export interface InlineObject3ApiModel {
14
- /**
15
- * The file to upload
16
- */
17
- file: Blob
18
- }
@@ -1,11 +0,0 @@
1
- <textarea
2
- [readonly]="readonly"
3
- [formControl]="control"
4
- [placeholder]="placeholder"
5
- class="border rounded-md p-3 w-full bg-white h-full resize-none transition-colors"
6
- [ngClass]="{
7
- 'border-pink-500': invalid,
8
- 'border-gray-200': !invalid,
9
- 'text-gray-600': readonly
10
- }"
11
- ></textarea>
@@ -1,15 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
2
- import { FormControl } from '@angular/forms'
3
-
4
- @Component({
5
- selector: 'gn-ui-form-field-rich',
6
- templateUrl: './form-field-rich.component.html',
7
- styleUrls: ['./form-field-rich.component.css'],
8
- changeDetection: ChangeDetectionStrategy.OnPush,
9
- })
10
- export class FormFieldRichComponent {
11
- @Input() control!: FormControl
12
- @Input() readonly = false
13
- @Input() invalid = false
14
- @Input() placeholder = ''
15
- }
@@ -1,80 +0,0 @@
1
- import {
2
- ChangeDetectionStrategy,
3
- Component,
4
- Input,
5
- Output,
6
- } from '@angular/core'
7
- import { FormFieldConfig } from './form-field.model'
8
- import { FormControl } from '@angular/forms'
9
- import { Observable } from 'rxjs'
10
-
11
- @Component({
12
- selector: 'gn-ui-form-field',
13
- templateUrl: './form-field.component.html',
14
- styleUrls: ['./form-field.component.css'],
15
- changeDetection: ChangeDetectionStrategy.OnPush,
16
- })
17
- export class FormFieldComponent {
18
- @Input() config: FormFieldConfig
19
- @Input() set value(v: unknown) {
20
- this.formControl.setValue(v, {
21
- emitEvent: false,
22
- })
23
- }
24
- @Output() valueChange: Observable<unknown>
25
-
26
- formControl = new FormControl()
27
-
28
- constructor() {
29
- this.valueChange = this.formControl.valueChanges
30
- }
31
-
32
- get simpleType() {
33
- return this.config.type as
34
- | 'date'
35
- | 'url'
36
- | 'text'
37
- | 'number'
38
- | 'list'
39
- | 'toggle'
40
- }
41
-
42
- get isSimpleField() {
43
- return (
44
- this.config.type === 'text' ||
45
- this.config.type === 'number' ||
46
- this.config.type === 'date' ||
47
- this.config.type === 'list' ||
48
- this.config.type === 'url' ||
49
- this.config.type === 'toggle'
50
- )
51
- }
52
- get isRichField() {
53
- return this.config.type === 'rich'
54
- }
55
- get isFileField() {
56
- return this.config.type === 'file'
57
- }
58
- get isSpatialExtentField() {
59
- return this.config.type === 'spatial_extent'
60
- }
61
- get isTemporalExtentField() {
62
- return this.config.type === 'temporal_extent'
63
- }
64
- get isArrayField() {
65
- return this.config.type === 'array'
66
- }
67
- get isObjectField() {
68
- return this.config.type === 'object'
69
- }
70
-
71
- get isFieldOk() {
72
- return !this.config.locked && !this.config.invalid
73
- }
74
- get isFieldLocked() {
75
- return this.config.locked
76
- }
77
- get isFieldInvalid() {
78
- return !this.config.locked && this.config.invalid
79
- }
80
- }