geonetwork-ui 2.5.0-dev.f8f8616a0 → 2.6.0-dev.01d2b5fc0

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 (76) hide show
  1. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +2 -2
  2. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +4 -2
  3. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +4 -8
  4. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +14 -13
  5. package/esm2022/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.mjs +2 -2
  6. package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +2 -2
  7. package/esm2022/libs/feature/editor/src/lib/components/import-record/import-record.component.mjs +5 -5
  8. package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +5 -3
  9. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.mjs +2 -2
  10. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +9 -12
  11. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.mjs +2 -2
  12. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.mjs +2 -2
  13. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.mjs +3 -3
  14. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +1 -1
  15. package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +12 -3
  16. package/esm2022/libs/ui/dataviz/src/lib/data-table/data-table.component.mjs +3 -3
  17. package/esm2022/libs/ui/elements/src/lib/image-input/image-input.component.mjs +50 -35
  18. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +23 -3
  19. package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +53 -7
  20. package/esm2022/libs/ui/inputs/src/lib/file-input/file-input.component.mjs +2 -2
  21. package/esm2022/libs/ui/inputs/src/lib/url-input/url-input.component.mjs +10 -3
  22. package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +3 -3
  23. package/esm2022/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.mjs +10 -3
  24. package/esm2022/translations/de.json +1 -1
  25. package/esm2022/translations/en.json +1 -1
  26. package/esm2022/translations/fr.json +1 -1
  27. package/esm2022/translations/it.json +1 -1
  28. package/fesm2022/geonetwork-ui.mjs +202 -105
  29. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  30. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  31. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  32. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  33. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts +1 -0
  34. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -1
  35. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts +1 -0
  36. 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
  37. package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts +4 -1
  38. package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts.map +1 -1
  39. package/libs/ui/elements/src/lib/image-input/image-input.component.d.ts +11 -9
  40. package/libs/ui/elements/src/lib/image-input/image-input.component.d.ts.map +1 -1
  41. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts.map +1 -1
  42. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts +8 -1
  43. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
  44. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts +5 -3
  45. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts.map +1 -1
  46. package/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.d.ts +1 -1
  47. package/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.d.ts.map +1 -1
  48. package/package.json +1 -1
  49. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +1 -1
  50. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +19 -17
  51. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +3 -11
  52. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +24 -26
  53. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +90 -0
  54. package/src/libs/feature/editor/src/lib/components/import-record/import-record.component.ts +3 -3
  55. package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.html +1 -0
  56. package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +2 -0
  57. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.html +1 -0
  58. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +10 -11
  59. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +1 -1
  60. package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +2 -0
  61. package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.ts +6 -0
  62. package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.html +3 -1
  63. package/src/libs/ui/elements/src/lib/image-input/image-input.component.html +20 -15
  64. package/src/libs/ui/elements/src/lib/image-input/image-input.component.ts +49 -35
  65. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +21 -9
  66. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +13 -0
  67. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +36 -19
  68. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +43 -2
  69. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.ts +8 -1
  70. package/src/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.html +1 -1
  71. package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.html +36 -11
  72. package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.ts +9 -1
  73. package/translations/de.json +1 -1
  74. package/translations/en.json +1 -1
  75. package/translations/fr.json +1 -1
  76. package/translations/it.json +1 -1
@@ -1,12 +1,37 @@
1
- <div class="flex h-full {{ color.outerBar }} rounded-t-lg rounded-b-lg">
2
- <div
3
- [style.width.%]="progress"
4
- class="flex {{
5
- color.innerBar
6
- }} my-1 mx-1 transition-width duration-500 ease-in-out rounded-t-md rounded-b-md shadow-xl"
7
- >
8
- <div class="flex items-center pl-2 py-1 {{ color.text }} font-bold text-4">
9
- {{ progress }}%
1
+ <ng-container [ngSwitch]="type">
2
+ <!-- Light Theme -->
3
+ <ng-container *ngSwitchCase="'light'">
4
+ <div class="flex items-center relative">
5
+ <div
6
+ class="flex-shrink-0 {{ color.text }} text-xs font-medium mr-2
7
+ text-opacity-100 !text-slate-800"
8
+ >
9
+ {{ progress }}%
10
+ </div>
11
+ <div class="flex-grow h-[6px] w-full {{ color.outerBar }} rounded-full">
12
+ <div
13
+ [style.width.%]="progress"
14
+ class="{{ color.innerBar }} transition-width duration-500
15
+ ease-in-out rounded-full shadow-sm h-full"
16
+ ></div>
17
+ </div>
10
18
  </div>
11
- </div>
12
- </div>
19
+ </ng-container>
20
+
21
+ <!-- Default / Primary / Secondary Themes -->
22
+ <ng-container *ngSwitchDefault>
23
+ <div class="flex h-full {{ color.outerBar }} rounded-t-lg rounded-b-lg">
24
+ <div
25
+ [style.width.%]="progress"
26
+ class="flex {{ color.innerBar }} my-1 mx-1 transition-width
27
+ duration-500 ease-in-out rounded-t-md rounded-b-md shadow-xl"
28
+ >
29
+ <div
30
+ class="flex items-center pl-2 py-1 {{ color.text }} font-bold text-4"
31
+ >
32
+ {{ progress }}%
33
+ </div>
34
+ </div>
35
+ </div>
36
+ </ng-container>
37
+ </ng-container>
@@ -1,4 +1,5 @@
1
1
  import { Component, Input } from '@angular/core'
2
+ import { NgSwitch, NgSwitchCase, NgSwitchDefault } from '@angular/common'
2
3
 
3
4
  interface ColorScheme {
4
5
  outerBar: string
@@ -11,10 +12,11 @@ interface ColorScheme {
11
12
  templateUrl: './progress-bar.component.html',
12
13
  styleUrls: ['./progress-bar.component.css'],
13
14
  standalone: true,
15
+ imports: [NgSwitch, NgSwitchCase, NgSwitchDefault],
14
16
  })
15
17
  export class ProgressBarComponent {
16
18
  @Input() value = 0
17
- @Input() type: 'primary' | 'secondary' | 'default' = 'default'
19
+ @Input() type: 'primary' | 'secondary' | 'default' | 'light' = 'default'
18
20
 
19
21
  get progress() {
20
22
  return this.value > 0 ? (this.value < 100 ? this.value : 100) : 0
@@ -40,6 +42,12 @@ export class ProgressBarComponent {
40
42
  innerBar: 'bg-secondary-lighter',
41
43
  text: 'text-white',
42
44
  }
45
+ case 'light':
46
+ return {
47
+ outerBar: 'bg-primary-white',
48
+ innerBar: 'bg-primary',
49
+ text: 'text-main',
50
+ }
43
51
  }
44
52
  }
45
53
  }
@@ -472,7 +472,7 @@
472
472
  "search.error.receivedError": "Ein Fehler ist aufgetreten",
473
473
  "search.error.recordHasnolink": "",
474
474
  "search.error.recordNotFound": "Der Datensatz mit der Kennung \"{ id }\" konnte nicht gefunden werden.",
475
- "search.field.any.placeholder": "Suche Datensätze ...",
475
+ "search.field.any.placeholder": "Suche im katalog ...",
476
476
  "search.field.sortBy": "Sortieren nach:",
477
477
  "search.filters.availableServices.download": "",
478
478
  "search.filters.availableServices.view": "",
@@ -472,7 +472,7 @@
472
472
  "search.error.receivedError": "An error was received",
473
473
  "search.error.recordHasnolink": "This dataset currently has no link yet, please come back later.",
474
474
  "search.error.recordNotFound": "The dataset with identifier \"{ id }\" could not be found.",
475
- "search.field.any.placeholder": "Search datasets ...",
475
+ "search.field.any.placeholder": "Search in the catalog ...",
476
476
  "search.field.sortBy": "Sort by:",
477
477
  "search.filters.availableServices.download": "",
478
478
  "search.filters.availableServices.view": "",
@@ -472,7 +472,7 @@
472
472
  "search.error.receivedError": "Erreur retournée",
473
473
  "search.error.recordHasnolink": "Ce jeu de données n'a pas encore de lien, réessayez plus tard s'il vous plaît.",
474
474
  "search.error.recordNotFound": "Cette donnée n'a pu être trouvée.",
475
- "search.field.any.placeholder": "Rechercher un jeu de données...",
475
+ "search.field.any.placeholder": "Rechercher dans le catalogue...",
476
476
  "search.field.sortBy": "Trier par :",
477
477
  "search.filters.availableServices.download": "",
478
478
  "search.filters.availableServices.view": "",
@@ -472,7 +472,7 @@
472
472
  "search.error.receivedError": "Errore restituito",
473
473
  "search.error.recordHasnolink": "Questo dataset non ha ancora alcun collegamento, riprova più tardi.",
474
474
  "search.error.recordNotFound": "Impossibile trovare questi dati.",
475
- "search.field.any.placeholder": "Cerca un dataset...",
475
+ "search.field.any.placeholder": "Cerca del catalogo...",
476
476
  "search.field.sortBy": "Ordina per:",
477
477
  "search.filters.availableServices.download": "",
478
478
  "search.filters.availableServices.view": "",