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.
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +2 -2
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +4 -2
- package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +4 -8
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +14 -13
- package/esm2022/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.mjs +2 -2
- package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +2 -2
- package/esm2022/libs/feature/editor/src/lib/components/import-record/import-record.component.mjs +5 -5
- package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +5 -3
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.mjs +2 -2
- 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
- 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
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.mjs +2 -2
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.mjs +3 -3
- package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +1 -1
- package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +12 -3
- package/esm2022/libs/ui/dataviz/src/lib/data-table/data-table.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/image-input/image-input.component.mjs +50 -35
- package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +23 -3
- package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +53 -7
- package/esm2022/libs/ui/inputs/src/lib/file-input/file-input.component.mjs +2 -2
- package/esm2022/libs/ui/inputs/src/lib/url-input/url-input.component.mjs +10 -3
- package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +3 -3
- package/esm2022/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.mjs +10 -3
- package/esm2022/translations/de.json +1 -1
- package/esm2022/translations/en.json +1 -1
- package/esm2022/translations/fr.json +1 -1
- package/esm2022/translations/it.json +1 -1
- package/fesm2022/geonetwork-ui.mjs +202 -105
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts +1 -0
- package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -1
- 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
- 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
- package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts +4 -1
- package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/image-input/image-input.component.d.ts +11 -9
- package/libs/ui/elements/src/lib/image-input/image-input.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts +8 -1
- package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts +5 -3
- package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts.map +1 -1
- package/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.d.ts +1 -1
- package/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +19 -17
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +3 -11
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +24 -26
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +90 -0
- package/src/libs/feature/editor/src/lib/components/import-record/import-record.component.ts +3 -3
- package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.html +1 -0
- package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +2 -0
- 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
- 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
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +1 -1
- package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +2 -0
- package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.ts +6 -0
- package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.html +3 -1
- package/src/libs/ui/elements/src/lib/image-input/image-input.component.html +20 -15
- package/src/libs/ui/elements/src/lib/image-input/image-input.component.ts +49 -35
- package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +21 -9
- package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +13 -0
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +36 -19
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +43 -2
- package/src/libs/ui/inputs/src/lib/url-input/url-input.component.ts +8 -1
- package/src/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.html +1 -1
- package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.html +36 -11
- package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.ts +9 -1
- package/translations/de.json +1 -1
- package/translations/en.json +1 -1
- package/translations/fr.json +1 -1
- package/translations/it.json +1 -1
|
@@ -1,12 +1,37 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class="flex
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
</
|
|
12
|
-
|
|
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
|
}
|
package/translations/de.json
CHANGED
|
@@ -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
|
|
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": "",
|
package/translations/en.json
CHANGED
|
@@ -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
|
|
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": "",
|
package/translations/fr.json
CHANGED
|
@@ -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
|
|
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": "",
|
package/translations/it.json
CHANGED
|
@@ -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
|
|
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": "",
|