geonetwork-ui 2.11.0-dev.0559cfd9d → 2.11.0-dev.05fe30eee

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 (34) hide show
  1. package/fesm2022/geonetwork-ui.mjs +373 -181
  2. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  3. package/index.d.ts +74 -10
  4. package/index.d.ts.map +1 -1
  5. package/package.json +1 -1
  6. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +78 -1
  7. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +11 -0
  8. package/src/libs/common/domain/src/lib/model/record/flags.model.ts +1 -0
  9. package/src/libs/common/domain/src/lib/model/record/index.ts +1 -0
  10. package/src/libs/common/domain/src/lib/platform.service.interface.ts +1 -0
  11. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +19 -0
  12. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints/form-field-constraints.component.ts +3 -5
  13. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.ts +2 -2
  14. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-record-flags/form-field-record-flag-component.css +0 -0
  15. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-record-flags/form-field-record-flag-component.html +18 -0
  16. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-record-flags/form-field-record-flag-component.ts +86 -0
  17. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +100 -88
  18. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +11 -4
  19. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.ts +18 -4
  20. package/src/libs/feature/editor/src/lib/expressions.ts +67 -0
  21. package/src/libs/feature/editor/src/lib/fields.config.ts +13 -0
  22. package/src/libs/feature/editor/src/lib/models/editor-config.model.ts +10 -4
  23. package/src/libs/util/app-config/src/index.ts +1 -0
  24. package/src/libs/util/app-config/src/lib/app-config.ts +338 -284
  25. package/src/libs/util/app-config/src/lib/model.ts +17 -0
  26. package/src/libs/util/app-config/src/lib/parse-utils.ts +8 -4
  27. package/translations/de.json +4 -0
  28. package/translations/en.json +4 -0
  29. package/translations/es.json +4 -0
  30. package/translations/fr.json +4 -0
  31. package/translations/it.json +4 -0
  32. package/translations/nl.json +4 -0
  33. package/translations/pt.json +4 -0
  34. package/translations/sk.json +4 -0
@@ -41,7 +41,7 @@ const checkKeys = (
41
41
  * pushes warnings and errors to the given arrays; returns null in case of error
42
42
  */
43
43
  export function parseConfigSection(
44
- fullConfigObj: Record<string, Record<string, unknown>>,
44
+ fullConfigObj: Record<string, unknown>,
45
45
  sectionName: string,
46
46
  mandatoryKeys: string[],
47
47
  optionalKeys: string[],
@@ -79,13 +79,17 @@ export function parseConfigSection(
79
79
  * This is optional
80
80
  */
81
81
  export function parseTranslationsConfigSection(
82
- fullConfigObj: Record<string, Record<string, unknown>>,
82
+ fullConfigObj: Record<string, unknown>,
83
83
  sectionName: string
84
84
  ): Record<string, unknown> {
85
85
  if (typeof fullConfigObj[sectionName] !== 'object') {
86
86
  return {}
87
87
  }
88
- return flatten('', fullConfigObj[sectionName], true)
88
+ return flatten(
89
+ '',
90
+ fullConfigObj[sectionName] as Record<string, unknown>,
91
+ true
92
+ )
89
93
  }
90
94
 
91
95
  /**
@@ -94,7 +98,7 @@ export function parseTranslationsConfigSection(
94
98
  * the sections
95
99
  */
96
100
  export function parseMultiConfigSection(
97
- fullConfigObj: Record<string, Record<string, unknown>[]>,
101
+ fullConfigObj: Record<string, unknown>,
98
102
  sectionName: string,
99
103
  mandatoryKeys: string[],
100
104
  optionalKeys: string[],
@@ -166,6 +166,8 @@
166
166
  "editor.record.error.back": "Zurück zum Katalog",
167
167
  "editor.record.error.explanation": "Möglicherweise haben Sie keinen Zugriff auf diese Datei,<br>oder dieser Link ist ungültig.",
168
168
  "editor.record.error.message": "Etwas ist nicht wie erwartet gelaufen.",
169
+ "editor.record.flag.saveError.body": "",
170
+ "editor.record.flag.saveError.title": "",
169
171
  "editor.record.form.bottomButtons.comeBackLater": "Später wiederkommen",
170
172
  "editor.record.form.bottomButtons.next": "Nächste",
171
173
  "editor.record.form.bottomButtons.previous": "Vorherige",
@@ -198,6 +200,8 @@
198
200
  "editor.record.form.field.contacts.placeholder": "Kontakt auswählen",
199
201
  "editor.record.form.field.contactsForResource.noContact": "Bitte geben Sie mindestens einen Ansprechpartner an, der für die Daten verantwortlich ist.",
200
202
  "editor.record.form.field.contactsForResource.placeholder": "Kontakt auswählen",
203
+ "editor.record.form.field.flags.IS_REFERENCE_DATASET": "",
204
+ "editor.record.form.field.hint.flags.IS_REFERENCE_DATASET": "",
201
205
  "editor.record.form.field.keywords": "Schlagwörter",
202
206
  "editor.record.form.field.legalConstraints": "Rechtliche Einschränkung",
203
207
  "editor.record.form.field.license": "Lizenz",
@@ -166,6 +166,8 @@
166
166
  "editor.record.error.back": "Go back to the catalog",
167
167
  "editor.record.error.explanation": "You might not have access to this record,<br> Or this link might not be valid.",
168
168
  "editor.record.error.message": "Something went wrong",
169
+ "editor.record.flag.saveError.body": "The {recordKind, select, dataset{dataset} service{service} reuse{reuse} other{record}} could not be modified:",
170
+ "editor.record.flag.saveError.title": "Record modification failed",
169
171
  "editor.record.form.bottomButtons.comeBackLater": "Come back later",
170
172
  "editor.record.form.bottomButtons.next": "Next",
171
173
  "editor.record.form.bottomButtons.previous": "Previous",
@@ -198,6 +200,8 @@
198
200
  "editor.record.form.field.contacts.placeholder": "Choose a contact",
199
201
  "editor.record.form.field.contactsForResource.noContact": "Please provide at least one point of contact responsible for the data.",
200
202
  "editor.record.form.field.contactsForResource.placeholder": "Choose a contact",
203
+ "editor.record.form.field.flags.IS_REFERENCE_DATASET": "Reference dataset",
204
+ "editor.record.form.field.hint.flags.IS_REFERENCE_DATASET": "Enabling this toggle will turn this dataset into a \"reference dataset\". It will be put forward and advertised as such in the search results.",
201
205
  "editor.record.form.field.keywords": "Keywords",
202
206
  "editor.record.form.field.legalConstraints": "Legal constraint",
203
207
  "editor.record.form.field.license": "License",
@@ -166,6 +166,8 @@
166
166
  "editor.record.error.back": "",
167
167
  "editor.record.error.explanation": "",
168
168
  "editor.record.error.message": "",
169
+ "editor.record.flag.saveError.body": "",
170
+ "editor.record.flag.saveError.title": "",
169
171
  "editor.record.form.bottomButtons.comeBackLater": "",
170
172
  "editor.record.form.bottomButtons.next": "",
171
173
  "editor.record.form.bottomButtons.previous": "",
@@ -198,6 +200,8 @@
198
200
  "editor.record.form.field.contacts.placeholder": "",
199
201
  "editor.record.form.field.contactsForResource.noContact": "",
200
202
  "editor.record.form.field.contactsForResource.placeholder": "",
203
+ "editor.record.form.field.flags.IS_REFERENCE_DATASET": "",
204
+ "editor.record.form.field.hint.flags.IS_REFERENCE_DATASET": "",
201
205
  "editor.record.form.field.keywords": "",
202
206
  "editor.record.form.field.legalConstraints": "",
203
207
  "editor.record.form.field.license": "",
@@ -166,6 +166,8 @@
166
166
  "editor.record.error.back": "Retour au catalogue",
167
167
  "editor.record.error.explanation": "Vous n'avez peut être pas accès à cette fiche,<br>Ou ce lien n'est peut être pas valide.",
168
168
  "editor.record.error.message": "Quelque chose ne s'est pas passé comme prévu",
169
+ "editor.record.flag.saveError.body": "{recordKind, select, dataset{Le jeu de données} service{Le service} reuse{La réutilisation} other{L'enregistrement}} n'a pas pu être modifié{recordKind, select, reuse{e} other{}} :",
170
+ "editor.record.flag.saveError.title": "Échec de la modification",
169
171
  "editor.record.form.bottomButtons.comeBackLater": "Revenir plus tard",
170
172
  "editor.record.form.bottomButtons.next": "Suivant",
171
173
  "editor.record.form.bottomButtons.previous": "Précédent",
@@ -198,6 +200,8 @@
198
200
  "editor.record.form.field.contacts.placeholder": "Choisissez un contact",
199
201
  "editor.record.form.field.contactsForResource.noContact": "Veuillez renseigner au moins un point de contact responsable de la donnée.",
200
202
  "editor.record.form.field.contactsForResource.placeholder": "Choisissez un contact",
203
+ "editor.record.form.field.flags.IS_REFERENCE_DATASET": "Donnée de référence",
204
+ "editor.record.form.field.hint.flags.IS_REFERENCE_DATASET": "Activer cette option fera de cette donnée une \"donnée de référence\". Elle sera mise en avant et présentée comme telle dans les résultats de recherche.",
201
205
  "editor.record.form.field.keywords": "Mots-clés",
202
206
  "editor.record.form.field.legalConstraints": "Contrainte légale",
203
207
  "editor.record.form.field.license": "Licence",
@@ -166,6 +166,8 @@
166
166
  "editor.record.error.back": "Ritorna al catalogo",
167
167
  "editor.record.error.explanation": "Forse non ha accesso a questa pagina oppure questo collegamento potrebbe non essere valido.",
168
168
  "editor.record.error.message": "Qualcosa è andato storto",
169
+ "editor.record.flag.saveError.body": "",
170
+ "editor.record.flag.saveError.title": "",
169
171
  "editor.record.form.bottomButtons.comeBackLater": "Ritorna più tardi",
170
172
  "editor.record.form.bottomButtons.next": "Avanti",
171
173
  "editor.record.form.bottomButtons.previous": "Precedente",
@@ -198,6 +200,8 @@
198
200
  "editor.record.form.field.contacts.placeholder": "Scegli un contatto",
199
201
  "editor.record.form.field.contactsForResource.noContact": "Inserisci almeno un punto di contatto responsabile dei dati.",
200
202
  "editor.record.form.field.contactsForResource.placeholder": "Scegli un contatto",
203
+ "editor.record.form.field.flags.IS_REFERENCE_DATASET": "",
204
+ "editor.record.form.field.hint.flags.IS_REFERENCE_DATASET": "",
201
205
  "editor.record.form.field.keywords": "Parole chiave",
202
206
  "editor.record.form.field.legalConstraints": "Vincolo legale",
203
207
  "editor.record.form.field.license": "Licenza",
@@ -166,6 +166,8 @@
166
166
  "editor.record.error.back": "",
167
167
  "editor.record.error.explanation": "",
168
168
  "editor.record.error.message": "",
169
+ "editor.record.flag.saveError.body": "",
170
+ "editor.record.flag.saveError.title": "",
169
171
  "editor.record.form.bottomButtons.comeBackLater": "",
170
172
  "editor.record.form.bottomButtons.next": "",
171
173
  "editor.record.form.bottomButtons.previous": "",
@@ -198,6 +200,8 @@
198
200
  "editor.record.form.field.contacts.placeholder": "",
199
201
  "editor.record.form.field.contactsForResource.noContact": "",
200
202
  "editor.record.form.field.contactsForResource.placeholder": "",
203
+ "editor.record.form.field.flags.IS_REFERENCE_DATASET": "",
204
+ "editor.record.form.field.hint.flags.IS_REFERENCE_DATASET": "",
201
205
  "editor.record.form.field.keywords": "",
202
206
  "editor.record.form.field.legalConstraints": "",
203
207
  "editor.record.form.field.license": "",
@@ -166,6 +166,8 @@
166
166
  "editor.record.error.back": "",
167
167
  "editor.record.error.explanation": "",
168
168
  "editor.record.error.message": "",
169
+ "editor.record.flag.saveError.body": "",
170
+ "editor.record.flag.saveError.title": "",
169
171
  "editor.record.form.bottomButtons.comeBackLater": "",
170
172
  "editor.record.form.bottomButtons.next": "",
171
173
  "editor.record.form.bottomButtons.previous": "",
@@ -198,6 +200,8 @@
198
200
  "editor.record.form.field.contacts.placeholder": "",
199
201
  "editor.record.form.field.contactsForResource.noContact": "",
200
202
  "editor.record.form.field.contactsForResource.placeholder": "",
203
+ "editor.record.form.field.flags.IS_REFERENCE_DATASET": "",
204
+ "editor.record.form.field.hint.flags.IS_REFERENCE_DATASET": "",
201
205
  "editor.record.form.field.keywords": "",
202
206
  "editor.record.form.field.legalConstraints": "",
203
207
  "editor.record.form.field.license": "",
@@ -166,6 +166,8 @@
166
166
  "editor.record.error.back": "",
167
167
  "editor.record.error.explanation": "",
168
168
  "editor.record.error.message": "",
169
+ "editor.record.flag.saveError.body": "",
170
+ "editor.record.flag.saveError.title": "",
169
171
  "editor.record.form.bottomButtons.comeBackLater": "",
170
172
  "editor.record.form.bottomButtons.next": "",
171
173
  "editor.record.form.bottomButtons.previous": "",
@@ -198,6 +200,8 @@
198
200
  "editor.record.form.field.contacts.placeholder": "",
199
201
  "editor.record.form.field.contactsForResource.noContact": "",
200
202
  "editor.record.form.field.contactsForResource.placeholder": "",
203
+ "editor.record.form.field.flags.IS_REFERENCE_DATASET": "",
204
+ "editor.record.form.field.hint.flags.IS_REFERENCE_DATASET": "",
201
205
  "editor.record.form.field.keywords": "",
202
206
  "editor.record.form.field.legalConstraints": "",
203
207
  "editor.record.form.field.license": "Licencia",