geonetwork-ui 2.7.0-dev.fdfe671c3 → 2.8.0-dev.398701d7f

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 (70) hide show
  1. package/esm2022/libs/api/repository/src/lib/gn4/gn4.provider.mjs +7 -3
  2. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +20 -6
  3. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  4. package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
  5. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.mjs +55 -0
  6. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +6 -6
  7. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +2 -2
  8. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +51 -45
  9. package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +24 -17
  10. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +3 -3
  11. package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +5 -5
  12. package/esm2022/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.mjs +8 -4
  13. package/esm2022/translations/de.json +25 -23
  14. package/esm2022/translations/en.json +26 -23
  15. package/esm2022/translations/es.json +25 -23
  16. package/esm2022/translations/fr.json +25 -23
  17. package/esm2022/translations/it.json +25 -23
  18. package/esm2022/translations/nl.json +25 -23
  19. package/esm2022/translations/pt.json +25 -23
  20. package/esm2022/translations/sk.json +25 -23
  21. package/fesm2022/geonetwork-ui.mjs +335 -283
  22. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  23. package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts +5 -1
  24. package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts.map +1 -1
  25. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +6 -2
  26. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  27. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +1 -1
  28. package/libs/common/domain/src/lib/platform.service.interface.d.ts +1 -0
  29. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  30. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.d.ts +20 -0
  31. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.d.ts.map +1 -0
  32. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +1 -1
  33. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
  34. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts +1 -1
  35. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
  36. package/libs/feature/editor/src/lib/fields.config.d.ts +4 -4
  37. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  38. package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts +1 -0
  39. package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
  40. package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts.map +1 -1
  41. package/package.json +1 -1
  42. package/src/libs/api/repository/src/lib/gn4/gn4.provider.ts +13 -2
  43. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +17 -6
  44. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +1 -1
  45. package/src/libs/common/domain/src/lib/platform.service.interface.ts +1 -0
  46. package/src/libs/feature/editor/src/lib/components/record-form/form-field/{form-field-inspire-field/form-field-inspire-theme.component.html → form-field-topics/form-field-topics.component.html} +6 -6
  47. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.ts +57 -0
  48. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +3 -3
  49. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +3 -3
  50. package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +1 -1
  51. package/src/libs/feature/editor/src/lib/fields.config.ts +51 -45
  52. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +23 -16
  53. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +5 -1
  54. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +4 -3
  55. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.ts +2 -2
  56. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html +1 -4
  57. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.ts +5 -1
  58. package/translations/de.json +25 -23
  59. package/translations/en.json +26 -23
  60. package/translations/es.json +25 -23
  61. package/translations/fr.json +25 -23
  62. package/translations/it.json +25 -23
  63. package/translations/nl.json +25 -23
  64. package/translations/pt.json +25 -23
  65. package/translations/sk.json +25 -23
  66. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.mjs +0 -55
  67. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.d.ts +0 -20
  68. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.d.ts.map +0 -1
  69. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.ts +0 -57
  70. /package/src/libs/feature/editor/src/lib/components/record-form/form-field/{form-field-inspire-field/form-field-inspire-theme.component.css → form-field-topics/form-field-topics.component.css} +0 -0
@@ -184,26 +184,6 @@
184
184
  "editor.record.form.field.topics": "",
185
185
  "editor.record.form.field.uniqueIdentifier": "",
186
186
  "editor.record.form.field.updateFrequency": "",
187
- "editor.record.form.inspire.biota": "",
188
- "editor.record.form.inspire.boundaries": "",
189
- "editor.record.form.inspire.climatology": "",
190
- "editor.record.form.inspire.economy": "",
191
- "editor.record.form.inspire.elevation": "",
192
- "editor.record.form.inspire.environnement": "",
193
- "editor.record.form.inspire.farming": "",
194
- "editor.record.form.inspire.geoscientific": "",
195
- "editor.record.form.inspire.health": "",
196
- "editor.record.form.inspire.imagery": "",
197
- "editor.record.form.inspire.intelligence": "",
198
- "editor.record.form.inspire.location": "",
199
- "editor.record.form.inspire.oceans": "",
200
- "editor.record.form.inspire.placeholder": "",
201
- "editor.record.form.inspire.planning": "",
202
- "editor.record.form.inspire.society": "",
203
- "editor.record.form.inspire.structure": "",
204
- "editor.record.form.inspire.transportation": "",
205
- "editor.record.form.inspire.utilities": "",
206
- "editor.record.form.inspire.waters": "",
207
187
  "editor.record.form.keywords.place.placeholder": "",
208
188
  "editor.record.form.keywords.place.withoutExtent": "",
209
189
  "editor.record.form.keywords.placeholder": "",
@@ -239,15 +219,35 @@
239
219
  "editor.record.form.section.dataManagers.description": "",
240
220
  "editor.record.form.section.dataManagers.label": "",
241
221
  "editor.record.form.section.geographicalCoverage.label": "",
242
- "editor.record.form.section.inspire.description": "",
243
- "editor.record.form.section.inspire.label": "",
244
222
  "editor.record.form.section.metadataPointOfContact.description": "",
245
223
  "editor.record.form.section.metadataPointOfContact.label": "",
224
+ "editor.record.form.section.topics.description": "",
225
+ "editor.record.form.section.topics.label": "",
246
226
  "editor.record.form.section.useAndAccessConditions.label": "",
247
227
  "editor.record.form.temporalExtents.addDate": "",
248
228
  "editor.record.form.temporalExtents.addRange": "",
249
229
  "editor.record.form.temporalExtents.date": "",
250
230
  "editor.record.form.temporalExtents.range": "",
231
+ "editor.record.form.topics.inspire.biota": "",
232
+ "editor.record.form.topics.inspire.boundaries": "",
233
+ "editor.record.form.topics.inspire.climatology": "",
234
+ "editor.record.form.topics.inspire.economy": "",
235
+ "editor.record.form.topics.inspire.elevation": "",
236
+ "editor.record.form.topics.inspire.environnement": "",
237
+ "editor.record.form.topics.inspire.farming": "",
238
+ "editor.record.form.topics.inspire.geoscientific": "",
239
+ "editor.record.form.topics.inspire.health": "",
240
+ "editor.record.form.topics.inspire.imagery": "",
241
+ "editor.record.form.topics.inspire.intelligence": "",
242
+ "editor.record.form.topics.inspire.location": "",
243
+ "editor.record.form.topics.inspire.oceans": "",
244
+ "editor.record.form.topics.inspire.planning": "",
245
+ "editor.record.form.topics.inspire.society": "",
246
+ "editor.record.form.topics.inspire.structure": "",
247
+ "editor.record.form.topics.inspire.transportation": "",
248
+ "editor.record.form.topics.inspire.utilities": "",
249
+ "editor.record.form.topics.inspire.waters": "",
250
+ "editor.record.form.topics.placeholder": "",
251
251
  "editor.record.form.updateFrequency.planned": "Este conjunto de dados é atualizado regularmente.",
252
252
  "editor.record.importFromExternalFile.failure.body": "",
253
253
  "editor.record.importFromExternalFile.failure.title": "",
@@ -309,7 +309,8 @@
309
309
  "facets.block.title.tag.default": "",
310
310
  "facets.block.title.th_regions_tree.default": "",
311
311
  "favorite.not.authenticated.tooltip": "",
312
- "favorite.starToggle.label": "",
312
+ "favorite.starToggle.add": "Adicionar aos favoritos",
313
+ "favorite.starToggle.remove": "Remover dos favoritos",
313
314
  "feature.catalog.attribute.code": "Código",
314
315
  "feature.catalog.attribute.definition": "Descrição",
315
316
  "feature.catalog.attribute.name": "Nome",
@@ -522,6 +523,7 @@
522
523
  "record.metadata.usage": "",
523
524
  "record.metadata.userFeedbacks": "",
524
525
  "record.metadata.userFeedbacks.anonymousUser": "",
526
+ "record.metadata.userFeedbacks.authDisabled": "",
525
527
  "record.metadata.userFeedbacks.newAnswer.buttonTitle": "",
526
528
  "record.metadata.userFeedbacks.newAnswer.placeholder": "",
527
529
  "record.metadata.userFeedbacks.newComment.placeholder": "",
@@ -184,26 +184,6 @@
184
184
  "editor.record.form.field.topics": "",
185
185
  "editor.record.form.field.uniqueIdentifier": "",
186
186
  "editor.record.form.field.updateFrequency": "",
187
- "editor.record.form.inspire.biota": "",
188
- "editor.record.form.inspire.boundaries": "",
189
- "editor.record.form.inspire.climatology": "",
190
- "editor.record.form.inspire.economy": "",
191
- "editor.record.form.inspire.elevation": "",
192
- "editor.record.form.inspire.environnement": "",
193
- "editor.record.form.inspire.farming": "",
194
- "editor.record.form.inspire.geoscientific": "",
195
- "editor.record.form.inspire.health": "",
196
- "editor.record.form.inspire.imagery": "",
197
- "editor.record.form.inspire.intelligence": "",
198
- "editor.record.form.inspire.location": "",
199
- "editor.record.form.inspire.oceans": "",
200
- "editor.record.form.inspire.placeholder": "",
201
- "editor.record.form.inspire.planning": "",
202
- "editor.record.form.inspire.society": "",
203
- "editor.record.form.inspire.structure": "",
204
- "editor.record.form.inspire.transportation": "",
205
- "editor.record.form.inspire.utilities": "",
206
- "editor.record.form.inspire.waters": "",
207
187
  "editor.record.form.keywords.place.placeholder": "",
208
188
  "editor.record.form.keywords.place.withoutExtent": "",
209
189
  "editor.record.form.keywords.placeholder": "",
@@ -239,15 +219,35 @@
239
219
  "editor.record.form.section.dataManagers.description": "",
240
220
  "editor.record.form.section.dataManagers.label": "",
241
221
  "editor.record.form.section.geographicalCoverage.label": "",
242
- "editor.record.form.section.inspire.description": "",
243
- "editor.record.form.section.inspire.label": "",
244
222
  "editor.record.form.section.metadataPointOfContact.description": "",
245
223
  "editor.record.form.section.metadataPointOfContact.label": "",
224
+ "editor.record.form.section.topics.description": "",
225
+ "editor.record.form.section.topics.label": "",
246
226
  "editor.record.form.section.useAndAccessConditions.label": "",
247
227
  "editor.record.form.temporalExtents.addDate": "",
248
228
  "editor.record.form.temporalExtents.addRange": "",
249
229
  "editor.record.form.temporalExtents.date": "",
250
230
  "editor.record.form.temporalExtents.range": "",
231
+ "editor.record.form.topics.inspire.biota": "",
232
+ "editor.record.form.topics.inspire.boundaries": "",
233
+ "editor.record.form.topics.inspire.climatology": "",
234
+ "editor.record.form.topics.inspire.economy": "",
235
+ "editor.record.form.topics.inspire.elevation": "",
236
+ "editor.record.form.topics.inspire.environnement": "",
237
+ "editor.record.form.topics.inspire.farming": "",
238
+ "editor.record.form.topics.inspire.geoscientific": "",
239
+ "editor.record.form.topics.inspire.health": "",
240
+ "editor.record.form.topics.inspire.imagery": "",
241
+ "editor.record.form.topics.inspire.intelligence": "",
242
+ "editor.record.form.topics.inspire.location": "",
243
+ "editor.record.form.topics.inspire.oceans": "",
244
+ "editor.record.form.topics.inspire.planning": "",
245
+ "editor.record.form.topics.inspire.society": "",
246
+ "editor.record.form.topics.inspire.structure": "",
247
+ "editor.record.form.topics.inspire.transportation": "",
248
+ "editor.record.form.topics.inspire.utilities": "",
249
+ "editor.record.form.topics.inspire.waters": "",
250
+ "editor.record.form.topics.placeholder": "",
251
251
  "editor.record.form.updateFrequency.planned": "Táto množina údajov sa pravidelne aktualizuje",
252
252
  "editor.record.importFromExternalFile.failure.body": "",
253
253
  "editor.record.importFromExternalFile.failure.title": "",
@@ -309,7 +309,8 @@
309
309
  "facets.block.title.tag.default": "Štítok",
310
310
  "facets.block.title.th_regions_tree.default": "Regióny",
311
311
  "favorite.not.authenticated.tooltip": "<div><a href='{link}'>Prihlásiť sa</a> pre prístup k tejto funkcii</div>",
312
- "favorite.starToggle.label": "",
312
+ "favorite.starToggle.add": "Pridať k obľúbeným",
313
+ "favorite.starToggle.remove": "Odstrániť z obľúbených",
313
314
  "feature.catalog.attribute.code": "Kód",
314
315
  "feature.catalog.attribute.definition": "Popis",
315
316
  "feature.catalog.attribute.name": "Názov",
@@ -522,6 +523,7 @@
522
523
  "record.metadata.usage": "Použitie a obmedzenia",
523
524
  "record.metadata.userFeedbacks": "",
524
525
  "record.metadata.userFeedbacks.anonymousUser": "",
526
+ "record.metadata.userFeedbacks.authDisabled": "",
525
527
  "record.metadata.userFeedbacks.newAnswer.buttonTitle": "",
526
528
  "record.metadata.userFeedbacks.newAnswer.placeholder": "",
527
529
  "record.metadata.userFeedbacks.newComment.placeholder": "",
@@ -1,55 +0,0 @@
1
- import { Component, EventEmitter, Input, Output } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { AutocompleteComponent, BadgeComponent, DropdownMultiselectComponent, } from '../../../../../../../../../libs/ui/inputs/src';
4
- import { NgIconComponent } from '@ng-icons/core';
5
- import { INSPIRE_THEMES } from '../../../../fields.config';
6
- import { TranslatePipe, TranslateService } from '@ngx-translate/core';
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "@ngx-translate/core";
9
- import * as i2 from "@angular/common";
10
- export class FormFieldInspireThemeComponent {
11
- set value(themes) {
12
- this.themes = themes;
13
- }
14
- constructor(translateService) {
15
- this.translateService = translateService;
16
- this.themes = [];
17
- this.valueChange = new EventEmitter();
18
- this.availableThemes = INSPIRE_THEMES.map((theme) => {
19
- return {
20
- label: this.translateService.instant(theme.label),
21
- value: theme.value,
22
- };
23
- });
24
- }
25
- handleItemSelection(selectedItems) {
26
- this.themes = selectedItems;
27
- this.valueChange.emit(this.themes);
28
- }
29
- removeTheme(theme) {
30
- this.themes = this.themes.filter((t) => t !== theme);
31
- this.valueChange.emit(this.themes);
32
- }
33
- getTranslatedTheme(theme) {
34
- const themeKey = this.availableThemes.find((avail) => avail.value === theme)?.label;
35
- return themeKey ? this.translateService.instant(themeKey) : '';
36
- }
37
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormFieldInspireThemeComponent, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
38
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormFieldInspireThemeComponent, isStandalone: true, selector: "gn-ui-form-field-inspire-theme", inputs: { value: "value" }, outputs: { valueChange: "valueChange" }, ngImport: i0, template: "<div class=\"flex flex-col gap-3\">\n <div class=\"flex flex-col gap-4\">\n <gn-ui-dropdown-multiselect\n class=\"w-full\"\n [title]=\"'editor.record.form.inspire.placeholder' | translate\"\n [maxRows]=\"6\"\n [selected]=\"themes\"\n [choices]=\"availableThemes || []\"\n [allowSearch]=\"true\"\n (selectValues)=\"handleItemSelection($event)\"\n >\n </gn-ui-dropdown-multiselect>\n <div class=\"flex gap-2 flex-wrap\">\n <gn-ui-badge\n *ngFor=\"let theme of themes\"\n [removable]=\"true\"\n (badgeRemoveClicked)=\"removeTheme(theme)\"\n >{{ getTranslatedTheme(theme) }}\n </gn-ui-badge>\n </div>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: BadgeComponent, selector: "gn-ui-badge", inputs: ["clickable", "removable"], outputs: ["badgeRemoveClicked"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: DropdownMultiselectComponent, selector: "gn-ui-dropdown-multiselect", inputs: ["title", "choices", "selected", "allowSearch", "maxRows", "searchInputValue"], outputs: ["selectValues"] }] }); }
39
- }
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormFieldInspireThemeComponent, decorators: [{
41
- type: Component,
42
- args: [{ selector: 'gn-ui-form-field-inspire-theme', standalone: true, imports: [
43
- CommonModule,
44
- AutocompleteComponent,
45
- NgIconComponent,
46
- BadgeComponent,
47
- TranslatePipe,
48
- DropdownMultiselectComponent,
49
- ], template: "<div class=\"flex flex-col gap-3\">\n <div class=\"flex flex-col gap-4\">\n <gn-ui-dropdown-multiselect\n class=\"w-full\"\n [title]=\"'editor.record.form.inspire.placeholder' | translate\"\n [maxRows]=\"6\"\n [selected]=\"themes\"\n [choices]=\"availableThemes || []\"\n [allowSearch]=\"true\"\n (selectValues)=\"handleItemSelection($event)\"\n >\n </gn-ui-dropdown-multiselect>\n <div class=\"flex gap-2 flex-wrap\">\n <gn-ui-badge\n *ngFor=\"let theme of themes\"\n [removable]=\"true\"\n (badgeRemoveClicked)=\"removeTheme(theme)\"\n >{{ getTranslatedTheme(theme) }}\n </gn-ui-badge>\n </div>\n </div>\n</div>\n" }]
50
- }], ctorParameters: () => [{ type: i1.TranslateService }], propDecorators: { value: [{
51
- type: Input
52
- }], valueChange: [{
53
- type: Output
54
- }] } });
55
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC1pbnNwaXJlLXRoZW1lLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZmVhdHVyZS9lZGl0b3Ivc3JjL2xpYi9jb21wb25lbnRzL3JlY29yZC1mb3JtL2Zvcm0tZmllbGQvZm9ybS1maWVsZC1pbnNwaXJlLWZpZWxkL2Zvcm0tZmllbGQtaW5zcGlyZS10aGVtZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2ZlYXR1cmUvZWRpdG9yL3NyYy9saWIvY29tcG9uZW50cy9yZWNvcmQtZm9ybS9mb3JtLWZpZWxkL2Zvcm0tZmllbGQtaW5zcGlyZS1maWVsZC9mb3JtLWZpZWxkLWluc3BpcmUtdGhlbWUuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQTtBQUN0RSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUE7QUFDOUMsT0FBTyxFQUNMLHFCQUFxQixFQUNyQixjQUFjLEVBQ2QsNEJBQTRCLEdBQzdCLE1BQU0sK0NBQStDLENBQUE7QUFDdEQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLGdCQUFnQixDQUFBO0FBQ2hELE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSwyQkFBMkIsQ0F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VpLWRyb3Bkb3duLW11bHRpc2VsZWN0XG4gICAgICBjbGFzcz1cInctZnVsbFwiXG4gICAgICBbdGl0bGVdPVwiJ2VkaXRvci5yZWNvcmQuZm9ybS5pbnNwaXJlLnBsYWNlaG9sZGVyJyB8IHRyYW5zbGF0ZVwiXG4gICAgICBbbWF4Um93c109XCI2XCJcbiAgICAgIFtzZWxlY3RlZF09XCJ0aGVtZXNcIlxuICAgICAgW2Nob2ljZXNdPVwiYXZhaWxhYmxlVGhlbWVzIHx8IFtdXCJcbiAgICAgIFthbGxvd1NlYXJjaF09XCJ0cnVlXCJcbiAgICAgIChzZWxlY3RWYWx1ZXMpPVwiaGFuZGxlSXRlbVNlbGVjdGlvbigkZXZlbnQpXCJcbiAgICA+XG4gICAgPC9nbi11aS1kcm9wZG93bi1tdWx0aXNlbGVjdD5cbiAgICA8ZGl2IGNsYXNzPVwiZmxleCBnYXAtMiBmbGV4LXdyYXBcIj5cbiAgICAgIDxnbi11aS1iYWRnZVxuICAgICAgICAqbmdGb3I9XCJsZXQgdGhlbWUgb2YgdGhlbWVzXCJcbiAgICAgICAgW3JlbW92YWJsZV09XCJ0cnVlXCJcbiAgICAgICAgKGJhZGdlUmVtb3ZlQ2xpY2tlZCk9XCJyZW1vdmVUaGVtZSh0aGVtZSlcIlxuICAgICAgICA+e3sgZ2V0VHJhbnNsYXRlZFRoZW1lKHRoZW1lKSB9fVxuICAgICAgPC9nbi11aS1iYWRnZT5cbiAgICA8L2Rpdj5cbiAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
@@ -1,20 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { TranslateService } from '@ngx-translate/core';
3
- import * as i0 from "@angular/core";
4
- export declare class FormFieldInspireThemeComponent {
5
- private translateService;
6
- themes: any[];
7
- set value(themes: string[]);
8
- valueChange: EventEmitter<string[]>;
9
- availableThemes: {
10
- label: any;
11
- value: string;
12
- }[];
13
- constructor(translateService: TranslateService);
14
- handleItemSelection(selectedItems: string[]): void;
15
- removeTheme(theme: string): void;
16
- getTranslatedTheme(theme: string): any;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldInspireThemeComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldInspireThemeComponent, "gn-ui-form-field-inspire-theme", never, { "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
19
- }
20
- //# sourceMappingURL=form-field-inspire-theme.component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"form-field-inspire-theme.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAiB,MAAM,eAAe,CAAA;AAStE,OAAO,EAAiB,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;;AAErE,qBAca,8BAA8B;IAa7B,OAAO,CAAC,gBAAgB;IAZpC,MAAM,QAAK;IACX,IAAa,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,EAElC;IACS,WAAW,EAAE,YAAY,CAAC,MAAM,EAAE,CAAC,CAAqB;IAClE,eAAe;;;QAKb;gBAEkB,gBAAgB,EAAE,gBAAgB;IAEtD,mBAAmB,CAAC,aAAa,EAAE,MAAM,EAAE;IAK3C,WAAW,CAAC,KAAK,EAAE,MAAM;IAKzB,kBAAkB,CAAC,KAAK,EAAE,MAAM;yCAzBrB,8BAA8B;2CAA9B,8BAA8B;CA+B1C"}
@@ -1,57 +0,0 @@
1
- import { Component, EventEmitter, Input, Output } from '@angular/core'
2
- import { CommonModule } from '@angular/common'
3
- import {
4
- AutocompleteComponent,
5
- BadgeComponent,
6
- DropdownMultiselectComponent,
7
- } from '../../../../../../../../../libs/ui/inputs/src'
8
- import { NgIconComponent } from '@ng-icons/core'
9
- import { INSPIRE_THEMES } from '../../../../fields.config'
10
- import { TranslatePipe, TranslateService } from '@ngx-translate/core'
11
-
12
- @Component({
13
- selector: 'gn-ui-form-field-inspire-theme',
14
- standalone: true,
15
- imports: [
16
- CommonModule,
17
- AutocompleteComponent,
18
- NgIconComponent,
19
- BadgeComponent,
20
- TranslatePipe,
21
- DropdownMultiselectComponent,
22
- ],
23
- templateUrl: './form-field-inspire-theme.component.html',
24
- styleUrl: './form-field-inspire-theme.component.css',
25
- })
26
- export class FormFieldInspireThemeComponent {
27
- themes = []
28
- @Input() set value(themes: string[]) {
29
- this.themes = themes
30
- }
31
- @Output() valueChange: EventEmitter<string[]> = new EventEmitter()
32
- availableThemes = INSPIRE_THEMES.map((theme) => {
33
- return {
34
- label: this.translateService.instant(theme.label),
35
- value: theme.value,
36
- }
37
- })
38
-
39
- constructor(private translateService: TranslateService) {}
40
-
41
- handleItemSelection(selectedItems: string[]) {
42
- this.themes = selectedItems
43
- this.valueChange.emit(this.themes)
44
- }
45
-
46
- removeTheme(theme: string) {
47
- this.themes = this.themes.filter((t) => t !== theme)
48
- this.valueChange.emit(this.themes)
49
- }
50
-
51
- getTranslatedTheme(theme: string) {
52
- const themeKey = this.availableThemes.find(
53
- (avail) => avail.value === theme
54
- )?.label
55
- return themeKey ? this.translateService.instant(themeKey) : ''
56
- }
57
- }