geonetwork-ui 2.2.0-dev.438f1ef6 → 2.2.0-dev.55bb5e18

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 (108) hide show
  1. package/esm2022/libs/api/repository/src/index.mjs +2 -1
  2. package/esm2022/libs/feature/auth/src/lib/feature-auth.module.mjs +2 -2
  3. package/esm2022/libs/feature/catalog/src/lib/feature-catalog.module.mjs +2 -2
  4. package/esm2022/libs/feature/catalog/src/lib/organisations/organisations.component.mjs +4 -15
  5. package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +63 -0
  6. package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +5 -2
  7. package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +4 -3
  8. package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +9 -6
  9. package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +2 -2
  10. package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +1 -1
  11. package/esm2022/libs/feature/search/src/lib/state/effects.mjs +3 -3
  12. package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +2 -2
  13. package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +4 -4
  14. package/esm2022/libs/ui/elements/src/index.mjs +2 -1
  15. package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +17 -0
  16. package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +10 -3
  17. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +4 -6
  18. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +8 -3
  19. package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +22 -3
  20. package/esm2022/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.mjs +6 -3
  21. package/esm2022/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.mjs +3 -3
  22. package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +2 -2
  23. package/esm2022/libs/util/i18n/src/index.mjs +2 -1
  24. package/esm2022/libs/util/shared/src/lib/utils/fuzzy-filter.mjs +27 -0
  25. package/esm2022/libs/util/shared/src/lib/utils/index.mjs +2 -1
  26. package/esm2022/translations/de.json +7 -0
  27. package/esm2022/translations/en.json +8 -1
  28. package/esm2022/translations/es.json +7 -0
  29. package/esm2022/translations/fr.json +8 -1
  30. package/esm2022/translations/it.json +16 -9
  31. package/esm2022/translations/nl.json +7 -0
  32. package/esm2022/translations/pt.json +7 -0
  33. package/fesm2022/geonetwork-ui.mjs +216 -52
  34. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  35. package/libs/api/repository/src/index.d.ts +1 -0
  36. package/libs/api/repository/src/index.d.ts.map +1 -1
  37. package/libs/feature/catalog/src/lib/organisations/organisations.component.d.ts +0 -1
  38. package/libs/feature/catalog/src/lib/organisations/organisations.component.d.ts.map +1 -1
  39. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts +22 -0
  40. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts.map +1 -0
  41. package/libs/feature/map/src/lib/feature-map.module.d.ts +13 -12
  42. package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
  43. package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts +3 -2
  44. package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
  45. package/libs/feature/search/src/lib/state/effects.d.ts +1 -1
  46. package/libs/feature/search/src/lib/state/effects.d.ts.map +1 -1
  47. package/libs/feature/search/src/lib/utils/service/fields.d.ts +1 -1
  48. package/libs/feature/search/src/lib/utils/service/fields.d.ts.map +1 -1
  49. package/libs/ui/elements/src/index.d.ts +1 -0
  50. package/libs/ui/elements/src/index.d.ts.map +1 -1
  51. package/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.d.ts +8 -0
  52. package/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.d.ts.map +1 -0
  53. package/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.d.ts +1 -0
  54. package/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.d.ts.map +1 -1
  55. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +0 -1
  56. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
  57. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +12 -11
  58. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  59. package/libs/ui/inputs/src/lib/button/button.component.d.ts +2 -1
  60. package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
  61. package/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.d.ts.map +1 -1
  62. package/libs/util/i18n/src/index.d.ts +1 -0
  63. package/libs/util/i18n/src/index.d.ts.map +1 -1
  64. package/libs/util/shared/src/lib/utils/fuzzy-filter.d.ts +9 -0
  65. package/libs/util/shared/src/lib/utils/fuzzy-filter.d.ts.map +1 -0
  66. package/libs/util/shared/src/lib/utils/index.d.ts +1 -0
  67. package/libs/util/shared/src/lib/utils/index.d.ts.map +1 -1
  68. package/package.json +1 -1
  69. package/src/libs/api/repository/src/index.ts +1 -0
  70. package/src/libs/feature/auth/src/lib/feature-auth.module.ts +1 -1
  71. package/src/libs/feature/catalog/src/lib/feature-catalog.module.ts +1 -1
  72. package/src/libs/feature/catalog/src/lib/organisations/organisations.component.ts +3 -17
  73. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.css +0 -0
  74. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.html +55 -0
  75. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts +63 -0
  76. package/src/libs/feature/map/src/lib/feature-map.module.ts +2 -0
  77. package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.html +3 -1
  78. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.html +12 -4
  79. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +2 -4
  80. package/src/libs/feature/search/src/lib/feature-search.module.ts +1 -1
  81. package/src/libs/feature/search/src/lib/state/effects.ts +1 -1
  82. package/src/libs/feature/search/src/lib/utils/service/fields.ts +1 -1
  83. package/src/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.html +1 -0
  84. package/src/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.ts +1 -1
  85. package/src/libs/ui/elements/src/index.ts +1 -0
  86. package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.css +264 -0
  87. package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.html +1 -0
  88. package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.ts +16 -0
  89. package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +93 -27
  90. package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.ts +7 -0
  91. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +3 -25
  92. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +0 -4
  93. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +3 -0
  94. package/src/libs/ui/inputs/src/lib/button/button.component.ts +26 -3
  95. package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.ts +7 -4
  96. package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.html +8 -3
  97. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.css +1 -0
  98. package/src/libs/util/i18n/src/index.ts +1 -0
  99. package/src/libs/util/shared/src/lib/utils/fuzzy-filter.ts +32 -0
  100. package/src/libs/util/shared/src/lib/utils/index.ts +1 -0
  101. package/translations/de.json +7 -0
  102. package/translations/en.json +8 -1
  103. package/translations/es.json +7 -0
  104. package/translations/fr.json +8 -1
  105. package/translations/it.json +16 -9
  106. package/translations/nl.json +7 -0
  107. package/translations/pt.json +7 -0
  108. package/translations/sk.json +7 -0
@@ -1,3 +1,4 @@
1
1
  export * from './lib/metadata-language';
2
2
  export * from './lib/repository-url';
3
+ export * from './lib/gn4';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/api/repository/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/api/repository/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,WAAW,CAAA"}
@@ -22,7 +22,6 @@ export declare class OrganisationsComponent {
22
22
  protected setFilterBy(value: string): void;
23
23
  protected setSortBy(value: SortByField): void;
24
24
  private filterOrganisations;
25
- private normalizeString;
26
25
  private sortOrganisations;
27
26
  trackByIndex(index: number): number;
28
27
  getOrganisationUrl(organisation: Organization): string;
@@ -1 +1 @@
1
- {"version":3,"file":"organisations.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/catalog/src/lib/organisations/organisations.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAKb,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,YAAY,EAAE,MAAM,2DAA2D,CAAA;AACxF,OAAO,EAAE,eAAe,EAAiB,UAAU,EAAE,MAAM,MAAM,CAAA;AAGjE,OAAO,EAAE,6BAA6B,EAAE,MAAM,8EAA8E,CAAA;AAC5H,OAAO,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAA;;AAEvF,qBAMa,sBAAsB;IAK/B,OAAO,CAAC,oBAAoB;IAG5B,OAAO,CAAC,WAAW;IAPZ,WAAW,SAAK;IACf,SAAS,6BAAmC;gBAG5C,oBAAoB,EAAE,6BAA6B,EAGnD,WAAW,EAAE,MAAM;IAG7B,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,0BAAyB;IACrC,mBAAmB,EAAE,MAAM,CAAA;IAC3B,OAAO,EAAE,eAAe,CAAC,WAAW,CAAC,CAAuC;IAC5E,SAAS,EAAE,eAAe,CAAC,MAAM,CAAC,CAA0B;IAC5D,mBAAmB,qBAAgD;IACnE,+BAA+B,EAAE,UAAU,CAAC,YAAY,EAAE,CAAC,CAc1D;IAED,cAAc,EAAE,UAAU,CAAC,YAAY,EAAE,CAAC,CAczC;IAED,SAAS,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAI5C,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAK1C,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAI7C,OAAO,CAAC,mBAAmB;IAc3B,OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,iBAAiB;IAwBzB,YAAY,CAAC,KAAK,EAAE,MAAM;IAI1B,kBAAkB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM;yCA/G3C,sBAAsB;2CAAtB,sBAAsB;CAmHlC"}
1
+ {"version":3,"file":"organisations.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/catalog/src/lib/organisations/organisations.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAKb,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,YAAY,EAAE,MAAM,2DAA2D,CAAA;AACxF,OAAO,EAAE,eAAe,EAAiB,UAAU,EAAE,MAAM,MAAM,CAAA;AAGjE,OAAO,EAAE,6BAA6B,EAAE,MAAM,8EAA8E,CAAA;AAC5H,OAAO,EAAE,WAAW,EAAE,MAAM,2DAA2D,CAAA;;AAGvF,qBAMa,sBAAsB;IAK/B,OAAO,CAAC,oBAAoB;IAG5B,OAAO,CAAC,WAAW;IAPZ,WAAW,SAAK;IACf,SAAS,6BAAmC;gBAG5C,oBAAoB,EAAE,6BAA6B,EAGnD,WAAW,EAAE,MAAM;IAG7B,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,0BAAyB;IACrC,mBAAmB,EAAE,MAAM,CAAA;IAC3B,OAAO,EAAE,eAAe,CAAC,WAAW,CAAC,CAAuC;IAC5E,SAAS,EAAE,eAAe,CAAC,MAAM,CAAC,CAA0B;IAC5D,mBAAmB,qBAAgD;IACnE,+BAA+B,EAAE,UAAU,CAAC,YAAY,EAAE,CAAC,CAc1D;IAED,cAAc,EAAE,UAAU,CAAC,YAAY,EAAE,CAAC,CAczC;IAED,SAAS,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAI5C,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAK1C,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI;IAI7C,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,iBAAiB;IAwBzB,YAAY,CAAC,KAAK,EAAE,MAAM;IAI1B,kBAAkB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM;yCAhG3C,sBAAsB;2CAAtB,sBAAsB;CAoGlC"}
@@ -0,0 +1,22 @@
1
+ import { ChangeDetectorRef, OnInit } from '@angular/core';
2
+ import { WmsEndpoint, WmsLayerSummary } from '@camptocamp/ogc-client';
3
+ import { MapFacade } from '../+state/map.facade';
4
+ import { Subject } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ export declare class AddLayerFromWmsComponent implements OnInit {
7
+ private mapFacade;
8
+ private changeDetectorRef;
9
+ wmsUrl: string;
10
+ loading: boolean;
11
+ layers: WmsLayerSummary[];
12
+ wmsEndpoint: WmsEndpoint | null;
13
+ urlChange: Subject<string>;
14
+ errorMessage: string | null;
15
+ constructor(mapFacade: MapFacade, changeDetectorRef: ChangeDetectorRef);
16
+ ngOnInit(): void;
17
+ loadLayers(): Promise<void>;
18
+ addLayer(layer: WmsLayerSummary): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<AddLayerFromWmsComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<AddLayerFromWmsComponent, "gn-ui-add-layer-from-wms", never, {}, {}, never, never, false, never>;
21
+ }
22
+ //# sourceMappingURL=add-layer-from-wms.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-layer-from-wms.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,iBAAiB,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AACpE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAKhD,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;;AAG9B,qBAKa,wBAAyB,YAAW,MAAM;IASnD,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,iBAAiB;IAT3B,MAAM,SAAK;IACX,OAAO,UAAQ;IACf,MAAM,EAAE,eAAe,EAAE,CAAK;IAC9B,WAAW,EAAE,WAAW,GAAG,IAAI,CAAO;IACtC,SAAS,kBAAwB;IACjC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAO;gBAGxB,SAAS,EAAE,SAAS,EACpB,iBAAiB,EAAE,iBAAiB;IAG9C,QAAQ;IAIF,UAAU;IAsBhB,QAAQ,CAAC,KAAK,EAAE,eAAe;yCAvCpB,wBAAwB;2CAAxB,wBAAwB;CA+CpC"}
@@ -5,20 +5,21 @@ import * as i3 from "./layers-panel/layers-panel.component";
5
5
  import * as i4 from "./add-layer-from-catalog/add-layer-from-catalog.component";
6
6
  import * as i5 from "./map-container/map-container.component";
7
7
  import * as i6 from "./add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component";
8
- import * as i7 from "@angular/common";
9
- import * as i8 from "../../../../ui/map/src/lib/ui-map.module";
10
- import * as i9 from "../../../../ui/layout/src/lib/ui-layout.module";
11
- import * as i10 from "@angular/material/icon";
12
- import * as i11 from "@angular/material/tabs";
13
- import * as i12 from "@ngx-translate/core";
14
- import * as i13 from "../../../search/src/lib/feature-search.module";
15
- import * as i14 from "@ngrx/store";
16
- import * as i15 from "@ngrx/effects";
17
- import * as i16 from "../../../../ui/elements/src/lib/ui-elements.module";
18
- import * as i17 from "../../../../ui/inputs/src/lib/ui-inputs.module";
8
+ import * as i7 from "./add-layer-from-wms/add-layer-from-wms.component";
9
+ import * as i8 from "@angular/common";
10
+ import * as i9 from "../../../../ui/map/src/lib/ui-map.module";
11
+ import * as i10 from "../../../../ui/layout/src/lib/ui-layout.module";
12
+ import * as i11 from "@angular/material/icon";
13
+ import * as i12 from "@angular/material/tabs";
14
+ import * as i13 from "@ngx-translate/core";
15
+ import * as i14 from "../../../search/src/lib/feature-search.module";
16
+ import * as i15 from "@ngrx/store";
17
+ import * as i16 from "@ngrx/effects";
18
+ import * as i17 from "../../../../ui/elements/src/lib/ui-elements.module";
19
+ import * as i18 from "../../../../ui/inputs/src/lib/ui-inputs.module";
19
20
  export declare class FeatureMapModule {
20
21
  static ɵfac: i0.ɵɵFactoryDeclaration<FeatureMapModule, never>;
21
- static ɵmod: i0.ɵɵNgModuleDeclaration<FeatureMapModule, [typeof i1.MapContextComponent, typeof i2.MapInstanceDirective, typeof i3.LayersPanelComponent, typeof i4.AddLayerFromCatalogComponent, typeof i5.MapContainerComponent, typeof i6.AddLayerRecordPreviewComponent], [typeof i7.CommonModule, typeof i8.UiMapModule, typeof i9.UiLayoutModule, typeof i10.MatIconModule, typeof i11.MatTabsModule, typeof i12.TranslateModule, typeof i13.FeatureSearchModule, typeof i14.StoreFeatureModule, typeof i15.EffectsFeatureModule, typeof i16.UiElementsModule, typeof i17.UiInputsModule], [typeof i1.MapContextComponent, typeof i2.MapInstanceDirective, typeof i3.LayersPanelComponent, typeof i4.AddLayerFromCatalogComponent, typeof i5.MapContainerComponent]>;
22
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FeatureMapModule, [typeof i1.MapContextComponent, typeof i2.MapInstanceDirective, typeof i3.LayersPanelComponent, typeof i4.AddLayerFromCatalogComponent, typeof i5.MapContainerComponent, typeof i6.AddLayerRecordPreviewComponent, typeof i7.AddLayerFromWmsComponent], [typeof i8.CommonModule, typeof i9.UiMapModule, typeof i10.UiLayoutModule, typeof i11.MatIconModule, typeof i12.MatTabsModule, typeof i13.TranslateModule, typeof i14.FeatureSearchModule, typeof i15.StoreFeatureModule, typeof i16.EffectsFeatureModule, typeof i17.UiElementsModule, typeof i18.UiInputsModule], [typeof i1.MapContextComponent, typeof i2.MapInstanceDirective, typeof i3.LayersPanelComponent, typeof i4.AddLayerFromCatalogComponent, typeof i5.MapContainerComponent]>;
22
23
  static ɵinj: i0.ɵɵInjectorDeclaration<FeatureMapModule>;
23
24
  }
24
25
  //# sourceMappingURL=feature-map.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"feature-map.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/feature/map/src/lib/feature-map.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAuBA,qBAqCa,gBAAgB;yCAAhB,gBAAgB;0CAAhB,gBAAgB;0CAAhB,gBAAgB;CAAG"}
1
+ {"version":3,"file":"feature-map.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/feature/map/src/lib/feature-map.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAwBA,qBAsCa,gBAAgB;yCAAhB,gBAAgB;0CAAhB,gBAAgB;0CAAhB,gBAAgB;CAAG"}
@@ -2,7 +2,7 @@ import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy } from '@angula
2
2
  import { TranslateService } from '@ngx-translate/core';
3
3
  import { Observable, Subscription } from 'rxjs';
4
4
  import { CatalogRecord } from '../../../../../../../libs/common/domain/src/lib/model/record';
5
- import { AuthService, FavoritesService } from '../../../../../../../libs/api/repository/src/lib/gn4';
5
+ import { AuthService, FavoritesService } from '../../../../../../../libs/api/repository/src';
6
6
  import { PlatformServiceInterface } from '../../../../../../../libs/common/domain/src/lib/platform.service.interface';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class FavoriteStarComponent implements AfterViewInit, OnDestroy {
@@ -11,6 +11,7 @@ export declare class FavoriteStarComponent implements AfterViewInit, OnDestroy {
11
11
  private changeDetector;
12
12
  private authService;
13
13
  private translateService;
14
+ displayCount?: boolean;
14
15
  set record(value: CatalogRecord);
15
16
  get record(): CatalogRecord;
16
17
  isFavorite$: Observable<boolean>;
@@ -29,6 +30,6 @@ export declare class FavoriteStarComponent implements AfterViewInit, OnDestroy {
29
30
  ngOnDestroy(): void;
30
31
  toggleFavorite(isFavorite: any): void;
31
32
  static ɵfac: i0.ɵɵFactoryDeclaration<FavoriteStarComponent, never>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<FavoriteStarComponent, "gn-ui-favorite-star", never, { "record": { "alias": "record"; "required": false; }; }, {}, never, never, false, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<FavoriteStarComponent, "gn-ui-favorite-star", never, { "displayCount": { "alias": "displayCount"; "required": false; }; "record": { "alias": "record"; "required": false; }; }, {}, never, never, false, never>;
33
34
  }
34
35
  //# sourceMappingURL=favorite-star.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"favorite-star.component.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,iBAAiB,EAEjB,UAAU,EAEV,SAAS,EAEV,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEtD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,8DAA8D,CAAA;AAC5F,OAAO,EACL,WAAW,EACX,gBAAgB,EACjB,MAAM,sDAAsD,CAAA;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4EAA4E,CAAA;;AAErH,qBAMa,qBAAsB,YAAW,aAAa,EAAE,SAAS;IAmClE,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,gBAAgB;IAtC1B,IAAa,MAAM,CAAC,KAAK,eAAA,EAMxB;IACD,IAAI,MAAM,kBAET;IACD,WAAW,sBAEV;IACD,YAAY,sBAAqC;IACjD,OAAO,EAAE,aAAa,CAAA;IACtB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,OAAO,UAAQ;IACf,QAAQ,SAA4B;IACpC,aAAa,EAAE,UAAU,CAAC,MAAM,CAAC,CAKhC;IAED,aAAa,EAAE,UAAU,CAAA;IACzB,YAAY,EAAE,YAAY,CAAA;IAC1B,iBAAiB,EAAE,YAAY,CAAA;IAE/B,IAAI,gBAAgB,YAEnB;gBAGS,gBAAgB,EAAE,gBAAgB,EAClC,eAAe,EAAE,wBAAwB,EACzC,cAAc,EAAE,iBAAiB,EACjC,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,gBAAgB;IAG5C,eAAe,IAAI,IAAI;IAoCvB,WAAW,IAAI,IAAI;IAKnB,cAAc,CAAC,UAAU,KAAA;yCAnFd,qBAAqB;2CAArB,qBAAqB;CAqGjC"}
1
+ {"version":3,"file":"favorite-star.component.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,iBAAiB,EAEjB,UAAU,EAEV,SAAS,EAEV,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAEtD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,8DAA8D,CAAA;AAC5F,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAA;AAC5F,OAAO,EAAE,wBAAwB,EAAE,MAAM,4EAA4E,CAAA;;AAErH,qBAMa,qBAAsB,YAAW,aAAa,EAAE,SAAS;IAoClE,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,gBAAgB;IAvCjB,YAAY,CAAC,UAAO;IAC7B,IAAa,MAAM,CAAC,KAAK,eAAA,EAMxB;IACD,IAAI,MAAM,kBAET;IACD,WAAW,sBAEV;IACD,YAAY,sBAAqC;IACjD,OAAO,EAAE,aAAa,CAAA;IACtB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,OAAO,UAAQ;IACf,QAAQ,SAA4B;IACpC,aAAa,EAAE,UAAU,CAAC,MAAM,CAAC,CAKhC;IAED,aAAa,EAAE,UAAU,CAAA;IACzB,YAAY,EAAE,YAAY,CAAA;IAC1B,iBAAiB,EAAE,YAAY,CAAA;IAE/B,IAAI,gBAAgB,YAEnB;gBAGS,gBAAgB,EAAE,gBAAgB,EAClC,eAAe,EAAE,wBAAwB,EACzC,cAAc,EAAE,iBAAiB,EACjC,WAAW,EAAE,WAAW,EACxB,gBAAgB,EAAE,gBAAgB;IAG5C,eAAe,IAAI,IAAI;IAoCvB,WAAW,IAAI,IAAI;IAKnB,cAAc,CAAC,UAAU,KAAA;yCApFd,qBAAqB;2CAArB,qBAAqB;CAsGjC"}
@@ -4,7 +4,7 @@ import { Paginate, PatchResultsAggregations, RequestNewResults, SearchActions }
4
4
  import { SearchState } from './reducer';
5
5
  import { Geometry } from 'geojson';
6
6
  import { RecordsRepositoryInterface } from '../../../../../../libs/common/domain/src/lib/repository/records-repository.interface';
7
- import { FavoritesService } from '../../../../../../libs/api/repository/src/lib/gn4';
7
+ import { FavoritesService } from '../../../../../../libs/api/repository/src';
8
8
  import { PlatformServiceInterface } from '../../../../../../libs/common/domain/src/lib/platform.service.interface';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class SearchEffects {
@@ -1 +1 @@
1
- {"version":3,"file":"effects.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/search/src/lib/state/effects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAwB,MAAM,eAAe,CAAA;AAC7D,OAAO,EAAU,KAAK,EAAE,MAAM,aAAa,CAAA;AAU3C,OAAO,EAIL,QAAQ,EAER,wBAAwB,EAKxB,iBAAiB,EACjB,aAAa,EAad,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,WAAW,EAAqB,MAAM,WAAW,CAAA;AAI1D,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAElC,OAAO,EAAE,0BAA0B,EAAE,MAAM,sFAAsF,CAAA;AACjI,OAAO,EAAE,gBAAgB,EAAE,MAAM,mDAAmD,CAAA;AACpF,OAAO,EAAE,wBAAwB,EAAE,MAAM,yEAAyE,CAAA;;AAGlH,qBACa,aAAa;IAMtB,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,iBAAiB;IACzB,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,eAAe;IAGvB,OAAO,CAAC,cAAc;IAZxB,eAAe,sCAEF;gBAGH,QAAQ,EAAE,OAAO,EACjB,MAAM,EAAE,KAAK,CAAC,WAAW,CAAC,EAC1B,iBAAiB,EAAE,0BAA0B,EAC7C,gBAAgB,EAAE,gBAAgB,EAClC,eAAe,EAAE,wBAAwB,EAGzC,cAAc,EAAE,OAAO,CAAC,QAAQ,CAAC;IAG3C,gBAAgB,qFAWf;IAED,OAAO,CAAC,sBAAsB,CAW7B;IAED,kBAAkB,8FAajB;IAED,YAAY,0FA+FX;IAED,yBAAyB,qGA2BvB;yCArLS,aAAa;6CAAb,aAAa;CAsLzB"}
1
+ {"version":3,"file":"effects.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/search/src/lib/state/effects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAwB,MAAM,eAAe,CAAA;AAC7D,OAAO,EAAU,KAAK,EAAE,MAAM,aAAa,CAAA;AAU3C,OAAO,EAIL,QAAQ,EAER,wBAAwB,EAKxB,iBAAiB,EACjB,aAAa,EAad,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,WAAW,EAAqB,MAAM,WAAW,CAAA;AAI1D,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAElC,OAAO,EAAE,0BAA0B,EAAE,MAAM,sFAAsF,CAAA;AACjI,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,yEAAyE,CAAA;;AAGlH,qBACa,aAAa;IAMtB,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,iBAAiB;IACzB,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,eAAe;IAGvB,OAAO,CAAC,cAAc;IAZxB,eAAe,sCAEF;gBAGH,QAAQ,EAAE,OAAO,EACjB,MAAM,EAAE,KAAK,CAAC,WAAW,CAAC,EAC1B,iBAAiB,EAAE,0BAA0B,EAC7C,gBAAgB,EAAE,gBAAgB,EAClC,eAAe,EAAE,wBAAwB,EAGzC,cAAc,EAAE,OAAO,CAAC,QAAQ,CAAC;IAG3C,gBAAgB,qFAWf;IAED,OAAO,CAAC,sBAAsB,CAW7B;IAED,kBAAkB,8FAajB;IAED,YAAY,0FA+FX;IAED,yBAAyB,qGA2BvB;yCArLS,aAAa;6CAAb,aAAa;CAsLzB"}
@@ -3,7 +3,7 @@ import { Injector } from '@angular/core';
3
3
  import { RecordsRepositoryInterface } from '../../../../../../../libs/common/domain/src/lib/repository/records-repository.interface';
4
4
  import { PlatformServiceInterface } from '../../../../../../../libs/common/domain/src/lib/platform.service.interface';
5
5
  import { AggregationsParams, FieldFilters, TermBucket } from '../../../../../../../libs/common/domain/src/lib/model/search';
6
- import { ElasticsearchService } from '../../../../../../../libs/api/repository/src/lib/gn4';
6
+ import { ElasticsearchService } from '../../../../../../../libs/api/repository/src';
7
7
  export type FieldValue = string | number;
8
8
  export interface FieldAvailableValue {
9
9
  value: FieldValue;
@@ -1 +1 @@
1
- {"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/feature/search/src/lib/utils/service/fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,UAAU,EAAsB,MAAM,MAAM,CAAA;AAErE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAIxC,OAAO,EAAE,0BAA0B,EAAE,MAAM,yFAAyF,CAAA;AACpI,OAAO,EAAE,wBAAwB,EAAE,MAAM,4EAA4E,CAAA;AACrH,OAAO,EAEL,kBAAkB,EAElB,YAAY,EACZ,UAAU,EACX,MAAM,8DAA8D,CAAA;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAA;AAG3F,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,CAAA;AACxC,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,UAAU,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,8BAAsB,mBAAmB;IACvC,QAAQ,CAAC,kBAAkB,IAAI,UAAU,CAAC,mBAAmB,EAAE,CAAC;IAChE,QAAQ,CAAC,mBAAmB,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,YAAY,CAAC;IAC5E,QAAQ,CAAC,kBAAkB,CAAC,OAAO,EAAE,YAAY,GAAG,UAAU,CAAC,UAAU,EAAE,CAAC;CAC7E;AAED,qBAAa,iBAAkB,YAAW,mBAAmB;IAOzD,SAAS,CAAC,WAAW,EAAE,MAAM;IAC7B,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM;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B;cAW/B,cAAc,CAAC,MAAM,EAAE,UAAU;CAKlD;AAID,qBAAa,uBAAwB,YAAW,mBAAmB;IAGrD,OAAO,CAAC,QAAQ;IAF5B,OAAO,CAAC,WAAW,CAAmD;gBAElD,QAAQ,EAAE,QAAQ;IAEtC,mBAAmB,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,YAAY,CAAC;IAanE,kBAAkB,CAAC,OAAO,EAAE,YAAY,GAAG,UAAU,CAAC,UAAU,EAAE,CAAC;IAMnE,kBAAkB,IAAI,UAAU,CAAC,mBAAmB,EAAE,CAAC;CAcxD;AACD,qBAAa,gBAAiB,SAAQ,iBAAiB;gBACzC,QAAQ,EAAE,QAAQ;IAI9B,kBAAkB,IAAI,UAAU,CAAC,mBAAmB,EAAE,CAAC;CAGxD"}
@@ -19,4 +19,5 @@ export * from './lib/related-record-card/related-record-card.component';
19
19
  export * from './lib/search-results-error/search-results-error.component';
20
20
  export * from './lib/user-preview/user-preview.component';
21
21
  export * from './lib/record-api-form/record-api-form.component';
22
+ export * from './lib/markdown-parser/markdown-parser.component';
22
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/elements/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,6CAA6C,CAAA;AAC3D,cAAc,mDAAmD,CAAA;AACjE,cAAc,mDAAmD,CAAA;AACjE,cAAc,mDAAmD,CAAA;AACjE,cAAc,6DAA6D,CAAA;AAC3E,cAAc,2DAA2D,CAAA;AACzE,cAAc,qCAAqC,CAAA;AACnD,cAAc,6CAA6C,CAAA;AAC3D,cAAc,uDAAuD,CAAA;AACrE,cAAc,mCAAmC,CAAA;AACjD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6CAA6C,CAAA;AAC3D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,+CAA+C,CAAA;AAC7D,cAAc,qCAAqC,CAAA;AACnD,cAAc,uCAAuC,CAAA;AACrD,cAAc,yDAAyD,CAAA;AACvE,cAAc,2DAA2D,CAAA;AACzE,cAAc,2CAA2C,CAAA;AACzD,cAAc,iDAAiD,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/elements/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,6CAA6C,CAAA;AAC3D,cAAc,mDAAmD,CAAA;AACjE,cAAc,mDAAmD,CAAA;AACjE,cAAc,mDAAmD,CAAA;AACjE,cAAc,6DAA6D,CAAA;AAC3E,cAAc,2DAA2D,CAAA;AACzE,cAAc,qCAAqC,CAAA;AACnD,cAAc,6CAA6C,CAAA;AAC3D,cAAc,uDAAuD,CAAA;AACrE,cAAc,mCAAmC,CAAA;AACjD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6CAA6C,CAAA;AAC3D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,+CAA+C,CAAA;AAC7D,cAAc,qCAAqC,CAAA;AACnD,cAAc,uCAAuC,CAAA;AACrD,cAAc,yDAAyD,CAAA;AACvE,cAAc,2DAA2D,CAAA;AACzE,cAAc,2CAA2C,CAAA;AACzD,cAAc,iDAAiD,CAAA;AAC/D,cAAc,iDAAiD,CAAA"}
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class MarkdownParserComponent {
3
+ textContent: string;
4
+ get parsedMarkdown(): string | Promise<string>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<MarkdownParserComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<MarkdownParserComponent, "gn-ui-markdown-parser", never, { "textContent": { "alias": "textContent"; "required": false; }; }, {}, never, never, false, never>;
7
+ }
8
+ //# sourceMappingURL=markdown-parser.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown-parser.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.ts"],"names":[],"mappings":";AAGA,qBAMa,uBAAuB;IACzB,WAAW,EAAE,MAAM,CAAA;IAE5B,IAAI,cAAc,6BAEjB;yCALU,uBAAuB;2CAAvB,uBAAuB;CAMnC"}
@@ -7,6 +7,7 @@ export declare class MetadataContactComponent {
7
7
  contactClick: EventEmitter<Individual>;
8
8
  get shownOrganization(): Organization;
9
9
  get contacts(): Individual[];
10
+ get address(): string[];
10
11
  onOrganizationClick(): void;
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<MetadataContactComponent, never>;
12
13
  static ɵcmp: i0.ɵɵComponentDeclaration<MetadataContactComponent, "gn-ui-metadata-contact", never, { "metadata": { "alias": "metadata"; "required": false; }; }, { "organizationClick": "organizationClick"; "contactClick": "contactClick"; }, never, never, false, never>;
@@ -1 +1 @@
1
- {"version":3,"file":"metadata-contact.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,aAAa,EACb,UAAU,EACV,YAAY,EACb,MAAM,2DAA2D,CAAA;;AAElE,qBAMa,wBAAwB;IAC1B,QAAQ,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAC/B,iBAAiB,6BAAmC;IACpD,YAAY,2BAAiC;IAEvD,IAAI,iBAAiB,iBAEpB;IAED,IAAI,QAAQ,iBAMX;IAED,mBAAmB;yCAjBR,wBAAwB;2CAAxB,wBAAwB;CAoBpC"}
1
+ {"version":3,"file":"metadata-contact.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,aAAa,EACb,UAAU,EACV,YAAY,EACb,MAAM,2DAA2D,CAAA;;AAElE,qBAMa,wBAAwB;IAC1B,QAAQ,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAC/B,iBAAiB,6BAAmC;IACpD,YAAY,2BAAiC;IAEvD,IAAI,iBAAiB,iBAEpB;IAED,IAAI,QAAQ,iBAMX;IAED,IAAI,OAAO,aAKV;IAED,mBAAmB;yCAxBR,wBAAwB;2CAAxB,wBAAwB;CA2BpC"}
@@ -10,7 +10,6 @@ export declare class MetadataInfoComponent {
10
10
  get usages(): string[];
11
11
  get updateFrequency(): string;
12
12
  fieldReady(propName: string): boolean;
13
- onKeywordClick(keyword: string): void;
14
13
  static ɵfac: i0.ɵɵFactoryDeclaration<MetadataInfoComponent, never>;
15
14
  static ɵcmp: i0.ɵɵComponentDeclaration<MetadataInfoComponent, "gn-ui-metadata-info", never, { "metadata": { "alias": "metadata"; "required": false; }; "incomplete": { "alias": "incomplete"; "required": false; }; }, { "keyword": "keyword"; }, never, never, false, never>;
16
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"metadata-info.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;;AAEzF,qBAMa,qBAAqB;IACvB,QAAQ,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAChC,UAAU,EAAE,OAAO,CAAA;IAClB,OAAO,uBAA6B;IAC9C,YAAY,EAAE,MAAM,CAAA;IAEpB,IAAI,QAAQ,kBAMX;IAED,IAAI,MAAM,IAAI,MAAM,EAAE,CASrB;IAED,IAAI,eAAe,IAAI,MAAM,CAS5B;IAED,UAAU,CAAC,QAAQ,EAAE,MAAM;IAI3B,cAAc,CAAC,OAAO,EAAE,MAAM;yCAxCnB,qBAAqB;2CAArB,qBAAqB;CA2CjC"}
1
+ {"version":3,"file":"metadata-info.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;;AAEzF,qBAMa,qBAAqB;IACvB,QAAQ,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAChC,UAAU,EAAE,OAAO,CAAA;IAClB,OAAO,uBAA6B;IAC9C,YAAY,EAAE,MAAM,CAAA;IAEpB,IAAI,QAAQ,kBAMX;IAED,IAAI,MAAM,IAAI,MAAM,EAAE,CASrB;IAED,IAAI,eAAe,IAAI,MAAM,CAS5B;IAED,UAAU,CAAC,QAAQ,EAAE,MAAM;yCApChB,qBAAqB;2CAArB,qBAAqB;CAuCjC"}
@@ -19,19 +19,20 @@ import * as i17 from "./metadata-info/linkify.directive";
19
19
  import * as i18 from "./pagination-buttons/pagination-buttons.component";
20
20
  import * as i19 from "./max-lines/max-lines.component";
21
21
  import * as i20 from "./record-api-form/record-api-form.component";
22
- import * as i21 from "@angular/common";
23
- import * as i22 from "@angular/material/icon";
24
- import * as i23 from "@angular/material/tooltip";
25
- import * as i24 from "../../../widgets/src/lib/ui-widgets.module";
26
- import * as i25 from "../../../layout/src/lib/ui-layout.module";
27
- import * as i26 from "@ngx-translate/core";
28
- import * as i27 from "../../../../util/shared/src/lib/util-shared.module";
29
- import * as i28 from "@angular/router";
30
- import * as i29 from "../../../inputs/src/lib/ui-inputs.module";
31
- import * as i30 from "@angular/forms";
22
+ import * as i21 from "./markdown-parser/markdown-parser.component";
23
+ import * as i22 from "@angular/common";
24
+ import * as i23 from "@angular/material/icon";
25
+ import * as i24 from "@angular/material/tooltip";
26
+ import * as i25 from "../../../widgets/src/lib/ui-widgets.module";
27
+ import * as i26 from "../../../layout/src/lib/ui-layout.module";
28
+ import * as i27 from "@ngx-translate/core";
29
+ import * as i28 from "../../../../util/shared/src/lib/util-shared.module";
30
+ import * as i29 from "@angular/router";
31
+ import * as i30 from "../../../inputs/src/lib/ui-inputs.module";
32
+ import * as i31 from "@angular/forms";
32
33
  export declare class UiElementsModule {
33
34
  static ɵfac: i0.ɵɵFactoryDeclaration<UiElementsModule, never>;
34
- static ɵmod: i0.ɵɵNgModuleDeclaration<UiElementsModule, [typeof i1.MetadataInfoComponent, typeof i2.ContentGhostComponent, typeof i3.DownloadItemComponent, typeof i4.DownloadsListComponent, typeof i5.ApiCardComponent, typeof i6.LinkCardComponent, typeof i7.RelatedRecordCardComponent, typeof i8.MetadataContactComponent, typeof i9.MetadataCatalogComponent, typeof i10.MetadataQualityComponent, typeof i11.MetadataQualityItemComponent, typeof i12.SearchResultsErrorComponent, typeof i13.PaginationComponent, typeof i14.ThumbnailComponent, typeof i15.AvatarComponent, typeof i16.UserPreviewComponent, typeof i17.GnUiLinkifyDirective, typeof i18.PaginationButtonsComponent, typeof i19.MaxLinesComponent, typeof i20.RecordApiFormComponent], [typeof i21.CommonModule, typeof i22.MatIconModule, typeof i23.MatTooltipModule, typeof i24.UiWidgetsModule, typeof i25.UiLayoutModule, typeof i26.TranslateModule, typeof i27.UtilSharedModule, typeof i28.RouterModule, typeof i29.UiInputsModule, typeof i30.FormsModule, typeof i21.NgOptimizedImage], [typeof i1.MetadataInfoComponent, typeof i2.ContentGhostComponent, typeof i3.DownloadItemComponent, typeof i4.DownloadsListComponent, typeof i5.ApiCardComponent, typeof i6.LinkCardComponent, typeof i7.RelatedRecordCardComponent, typeof i8.MetadataContactComponent, typeof i9.MetadataCatalogComponent, typeof i10.MetadataQualityComponent, typeof i11.MetadataQualityItemComponent, typeof i12.SearchResultsErrorComponent, typeof i13.PaginationComponent, typeof i14.ThumbnailComponent, typeof i15.AvatarComponent, typeof i16.UserPreviewComponent, typeof i18.PaginationButtonsComponent, typeof i20.RecordApiFormComponent]>;
35
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UiElementsModule, [typeof i1.MetadataInfoComponent, typeof i2.ContentGhostComponent, typeof i3.DownloadItemComponent, typeof i4.DownloadsListComponent, typeof i5.ApiCardComponent, typeof i6.LinkCardComponent, typeof i7.RelatedRecordCardComponent, typeof i8.MetadataContactComponent, typeof i9.MetadataCatalogComponent, typeof i10.MetadataQualityComponent, typeof i11.MetadataQualityItemComponent, typeof i12.SearchResultsErrorComponent, typeof i13.PaginationComponent, typeof i14.ThumbnailComponent, typeof i15.AvatarComponent, typeof i16.UserPreviewComponent, typeof i17.GnUiLinkifyDirective, typeof i18.PaginationButtonsComponent, typeof i19.MaxLinesComponent, typeof i20.RecordApiFormComponent, typeof i21.MarkdownParserComponent], [typeof i22.CommonModule, typeof i23.MatIconModule, typeof i24.MatTooltipModule, typeof i25.UiWidgetsModule, typeof i26.UiLayoutModule, typeof i27.TranslateModule, typeof i28.UtilSharedModule, typeof i29.RouterModule, typeof i30.UiInputsModule, typeof i31.FormsModule, typeof i22.NgOptimizedImage], [typeof i1.MetadataInfoComponent, typeof i2.ContentGhostComponent, typeof i3.DownloadItemComponent, typeof i4.DownloadsListComponent, typeof i5.ApiCardComponent, typeof i6.LinkCardComponent, typeof i7.RelatedRecordCardComponent, typeof i8.MetadataContactComponent, typeof i9.MetadataCatalogComponent, typeof i10.MetadataQualityComponent, typeof i11.MetadataQualityItemComponent, typeof i12.SearchResultsErrorComponent, typeof i13.PaginationComponent, typeof i14.ThumbnailComponent, typeof i15.AvatarComponent, typeof i16.UserPreviewComponent, typeof i18.PaginationButtonsComponent, typeof i20.RecordApiFormComponent, typeof i21.MarkdownParserComponent]>;
35
36
  static ɵinj: i0.ɵɵInjectorDeclaration<UiElementsModule>;
36
37
  }
37
38
  //# sourceMappingURL=ui-elements.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui-elements.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/elements/src/lib/ui-elements.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,qBAyDa,gBAAgB;yCAAhB,gBAAgB;0CAAhB,gBAAgB;0CAAhB,gBAAgB;CAAG"}
1
+ {"version":3,"file":"ui-elements.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/elements/src/lib/ui-elements.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA,qBA2Da,gBAAgB;yCAAhB,gBAAgB;0CAAhB,gBAAgB;0CAAhB,gBAAgB;CAAG"}
@@ -1,7 +1,8 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class ButtonComponent {
4
- type: 'primary' | 'secondary' | 'default' | 'outline' | 'light';
4
+ private btnClass;
5
+ set type(value: 'primary' | 'secondary' | 'default' | 'outline' | 'light');
5
6
  disabled: boolean;
6
7
  extraClass: string;
7
8
  buttonClick: EventEmitter<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"button.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/button/button.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;;AAGtB,qBAMa,eAAe;IACjB,IAAI,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAC7D;IACF,QAAQ,UAAQ;IAChB,UAAU,SAAK;IACd,WAAW,qBAA2B;IAEhD,IAAI,SAAS,WAEZ;IAED,WAAW,CAAC,KAAK,EAAE,KAAK;yCAXb,eAAe;2CAAf,eAAe;CAgB3B"}
1
+ {"version":3,"file":"button.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/button/button.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;;AAGtB,qBAMa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAQ;IAGxB,IAAa,IAAI,CACf,KAAK,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,EAmBjE;IAEQ,QAAQ,UAAQ;IAChB,UAAU,SAAK;IACd,WAAW,qBAA2B;IAEhD,IAAI,SAAS,WAEZ;IAED,WAAW,CAAC,KAAK,EAAE,KAAK;yCAlCb,eAAe;2CAAf,eAAe;CAuC3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-multiselect.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACV,YAAY,EAGZ,SAAS,EAGV,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;;AAGrD,qBAMa,4BAA4B;IA8D3B,OAAO,CAAC,gBAAgB;IA7D3B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,QAAQ,EAAE,OAAO,EAAE,CAAK;IACxB,WAAW,UAAO;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,gBAAgB,SAAK;IACpB,YAAY,0BAAgC;IAC1B,aAAa,EAAE,gBAAgB,CAAA;IAC3B,OAAO,EAAE,mBAAmB,CAAA;IAE5D,gBAAgB,EAAE,UAAU,CAAA;IAE5B,gBAAgB,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAA;IAE9C,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC,CAAA;IACjC,gBAAgB,EAAE,iBAAiB,EAAE,CAepC;IACD,cAAc,0DAAqC;IACnD,WAAW,UAAQ;IACnB,YAAY,SAAS;IACrB,gBAAgB,SAAS;IACzB,EAAE,SAA8D;IAEhE,IAAI,kBAAkB,YAErB;IAED,IAAI,eAAe,aAIlB;IAED,IAAI,qBAAqB,aAIxB;IAED,IAAI,YAAY,IAAI,MAAM,GAAG,CAAC,CAAC,CAM9B;gBAEmB,gBAAgB,EAAE,qBAAqB;IAE3D,OAAO,CAAC,QAAQ;IAMhB,WAAW;IAiBX,YAAY;IAIN,oBAAoB,CAAC,KAAK,EAAE,aAAa;IAqB/C,oBAAoB,CAAC,KAAK,EAAE,aAAa;IAgBzC,cAAc;IAId,aAAa;IAIb,cAAc,CAAC,KAAK,EAAE,MAAM;IAS5B,UAAU,CAAC,MAAM,EAAE,MAAM;IAIzB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO;IAOxC,MAAM,CAAC,MAAM,EAAE,MAAM;IAIrB,cAAc,CAAC,KAAK,EAAE,KAAK;IAK3B,qBAAqB,CAAC,KAAK,EAAE,KAAK;yCArKvB,4BAA4B;2CAA5B,4BAA4B;CA0KxC"}
1
+ {"version":3,"file":"dropdown-multiselect.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACV,YAAY,EAGZ,SAAS,EAGV,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;;AAMrD,qBAMa,4BAA4B;IA8D3B,OAAO,CAAC,gBAAgB;IA7D3B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,QAAQ,EAAE,OAAO,EAAE,CAAK;IACxB,WAAW,UAAO;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,gBAAgB,SAAK;IACpB,YAAY,0BAAgC;IAC1B,aAAa,EAAE,gBAAgB,CAAA;IAC3B,OAAO,EAAE,mBAAmB,CAAA;IAE5D,gBAAgB,EAAE,UAAU,CAAA;IAE5B,gBAAgB,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAA;IAE9C,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC,CAAA;IACjC,gBAAgB,EAAE,iBAAiB,EAAE,CAepC;IACD,cAAc,0DAAqC;IACnD,WAAW,UAAQ;IACnB,YAAY,SAAS;IACrB,gBAAgB,SAAS;IACzB,EAAE,SAA8D;IAEhE,IAAI,kBAAkB,YAErB;IAED,IAAI,eAAe,aAIlB;IAED,IAAI,qBAAqB,aAIxB;IAED,IAAI,YAAY,IAAI,MAAM,GAAG,CAAC,CAAC,CAM9B;gBAEmB,gBAAgB,EAAE,qBAAqB;IAE3D,OAAO,CAAC,QAAQ;IAMhB,WAAW;IAiBX,YAAY;IAIN,oBAAoB,CAAC,KAAK,EAAE,aAAa;IAqB/C,oBAAoB,CAAC,KAAK,EAAE,aAAa;IAgBzC,cAAc;IAId,aAAa;IAIb,cAAc,CAAC,KAAK,EAAE,MAAM;IAS5B,UAAU,CAAC,MAAM,EAAE,MAAM;IAIzB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO;IAOxC,MAAM,CAAC,MAAM,EAAE,MAAM;IAIrB,cAAc,CAAC,KAAK,EAAE,KAAK;IAK3B,qBAAqB,CAAC,KAAK,EAAE,KAAK;yCArKvB,4BAA4B;2CAA5B,4BAA4B;CA0KxC"}
@@ -5,4 +5,5 @@ export * from './lib/lang.service';
5
5
  export * from './lib/file.translate.loader';
6
6
  export * from './lib/testing/test.translate.module';
7
7
  export * from './lib/embedded.translate.loader';
8
+ export * from './lib/translate.loader.utils';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/util/i18n/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qCAAqC,CAAA;AACnD,cAAc,iCAAiC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/util/i18n/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qCAAqC,CAAA;AACnD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,8BAA8B,CAAA"}
@@ -0,0 +1,9 @@
1
+ type FuzzyFilter = (input: string) => boolean;
2
+ /**
3
+ * This creates a filter function based on a pattern (typically a user-input
4
+ * search text).
5
+ * @param pattern
6
+ */
7
+ export declare function createFuzzyFilter(pattern: string): FuzzyFilter;
8
+ export {};
9
+ //# sourceMappingURL=fuzzy-filter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fuzzy-filter.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/utils/fuzzy-filter.ts"],"names":[],"mappings":"AAAA,KAAK,WAAW,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAA;AAkB7C;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAQ9D"}
@@ -5,4 +5,5 @@ export * from './geojson';
5
5
  export * from './sort-by';
6
6
  export * from './url';
7
7
  export * from './event';
8
+ export * from './fuzzy-filter';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geonetwork-ui",
3
- "version": "2.2.0-dev.438f1ef6",
3
+ "version": "2.2.0-dev.55bb5e18",
4
4
  "engines": {
5
5
  "node": ">=14.17.0"
6
6
  },
@@ -1,2 +1,3 @@
1
1
  export * from './lib/metadata-language'
2
2
  export * from './lib/repository-url'
3
+ export * from './lib/gn4'
@@ -3,7 +3,7 @@ import { CommonModule } from '@angular/common'
3
3
  import {
4
4
  AvatarServiceInterface,
5
5
  GravatarService,
6
- } from '../../../../../libs/api/repository/src/lib/gn4'
6
+ } from '../../../../../libs/api/repository/src'
7
7
 
8
8
  @NgModule({
9
9
  imports: [CommonModule],
@@ -20,7 +20,7 @@ import {
20
20
  OrganizationsFromGroupsService,
21
21
  OrganizationsFromMetadataService,
22
22
  OrganizationsStrategy,
23
- } from '../../../../../libs/api/repository/src/lib/gn4'
23
+ } from '../../../../../libs/api/repository/src'
24
24
  import { PlatformServiceInterface } from '../../../../../libs/common/domain/src/lib/platform.service.interface'
25
25
 
26
26
  // expects the replacement key ${name}
@@ -13,6 +13,7 @@ import { map, startWith, tap } from 'rxjs/operators'
13
13
  import { ORGANIZATION_URL_TOKEN } from '../feature-catalog.module'
14
14
  import { OrganizationsServiceInterface } from '../../../../../../libs/common/domain/src/lib/organizations.service.interface'
15
15
  import { SortByField } from '../../../../../../libs/common/domain/src/lib/model/search'
16
+ import { createFuzzyFilter } from '../../../../../../libs/util/shared/src'
16
17
 
17
18
  @Component({
18
19
  selector: 'gn-ui-organisations',
@@ -84,23 +85,8 @@ export class OrganisationsComponent {
84
85
 
85
86
  private filterOrganisations(organisations: Organization[], filterBy: string) {
86
87
  if (!filterBy) return organisations
87
- const filterRegex = new RegExp(
88
- this.normalizeString(filterBy) //ignore accents and case
89
- .replace(/[^a-z0-9\s]/g, ' ') //ignore special characters (also without spaces like l')
90
- .replace(/\s(?=.)/g, '.*') //replace whitespaces by "AND" separator
91
- .replace(/\s/g, ''), //remove potential whitespaces left
92
- 'i'
93
- )
94
- return [...organisations].filter((org) => {
95
- return this.normalizeString(org.name).match(filterRegex)
96
- })
97
- }
98
-
99
- private normalizeString(str: string) {
100
- return str
101
- .normalize('NFD')
102
- .replace(/[\u0300-\u036f]/g, '')
103
- .toLowerCase()
88
+ const filter = createFuzzyFilter(filterBy)
89
+ return organisations.filter((org) => filter(org.name))
104
90
  }
105
91
 
106
92
  private sortOrganisations(
@@ -0,0 +1,55 @@
1
+ <div class="flex items-center mb-5">
2
+ <gn-ui-text-input
3
+ [(value)]="wmsUrl"
4
+ (valueChange)="urlChange.next($event)"
5
+ [hint]="'map.wms.urlInput.hint' | translate"
6
+ class="w-96"
7
+ >
8
+ </gn-ui-text-input>
9
+ </div>
10
+
11
+ <div *ngIf="errorMessage" class="text-red-500 mt-2">
12
+ {{ errorMessage }}
13
+ </div>
14
+
15
+ <div *ngIf="loading">
16
+ <p class="loading-message" translate>map.loading.service</p>
17
+ </div>
18
+
19
+ <div *ngIf="!loading && layers.length > 0">
20
+ <h2 class="font-bold" translate>map.layers.available</h2>
21
+ <ng-container
22
+ *ngFor="let layer of layers"
23
+ [ngTemplateOutlet]="layerTreeItem"
24
+ [ngTemplateOutletContext]="{
25
+ layer: layer
26
+ }"
27
+ ></ng-container>
28
+ </div>
29
+
30
+ <ng-template #layerTreeItem let-layer="layer">
31
+ <div class="flex items-center justify-between layer-tree-item my-2">
32
+ <p class="max-w-xs overflow-hidden overflow-ellipsis whitespace-nowrap">
33
+ {{ layer.title }}
34
+ </p>
35
+ <gn-ui-button
36
+ *ngIf="layer.name"
37
+ class="layer-add-btn"
38
+ type="primary"
39
+ (buttonClick)="addLayer(layer)"
40
+ extraClass="text-sm !px-2 !py-1"
41
+ translate
42
+ ><span translate> map.layer.add </span></gn-ui-button
43
+ >
44
+ </div>
45
+ <div *ngIf="layer.children?.length > 0" class="ml-4">
46
+ <ng-container
47
+ *ngFor="let child of layer.children"
48
+ [ngTemplateOutlet]="layerTreeItem"
49
+ [ngTemplateOutletContext]="{
50
+ layer: child
51
+ }"
52
+ >
53
+ </ng-container>
54
+ </div>
55
+ </ng-template>
@@ -0,0 +1,63 @@
1
+ import { Component, ChangeDetectorRef, OnInit } from '@angular/core'
2
+ import { WmsEndpoint, WmsLayerSummary } from '@camptocamp/ogc-client'
3
+ import { MapFacade } from '../+state/map.facade'
4
+ import {
5
+ MapContextLayerModel,
6
+ MapContextLayerTypeEnum,
7
+ } from '../map-context/map-context.model'
8
+ import { Subject } from 'rxjs'
9
+ import { debounceTime } from 'rxjs/operators'
10
+
11
+ @Component({
12
+ selector: 'gn-ui-add-layer-from-wms',
13
+ templateUrl: './add-layer-from-wms.component.html',
14
+ styleUrls: ['./add-layer-from-wms.component.css'],
15
+ })
16
+ export class AddLayerFromWmsComponent implements OnInit {
17
+ wmsUrl = ''
18
+ loading = false
19
+ layers: WmsLayerSummary[] = []
20
+ wmsEndpoint: WmsEndpoint | null = null
21
+ urlChange = new Subject<string>()
22
+ errorMessage: string | null = null
23
+
24
+ constructor(
25
+ private mapFacade: MapFacade,
26
+ private changeDetectorRef: ChangeDetectorRef
27
+ ) {}
28
+
29
+ ngOnInit() {
30
+ this.urlChange.pipe(debounceTime(700)).subscribe(() => this.loadLayers())
31
+ }
32
+
33
+ async loadLayers() {
34
+ this.errorMessage = null
35
+ try {
36
+ this.loading = true
37
+
38
+ if (this.wmsUrl.trim() === '') {
39
+ this.layers = []
40
+ return
41
+ }
42
+
43
+ this.wmsEndpoint = await new WmsEndpoint(this.wmsUrl).isReady()
44
+ this.layers = this.wmsEndpoint.getLayers()
45
+ } catch (error) {
46
+ const err = error as Error
47
+ this.layers = []
48
+ this.errorMessage = 'Error loading layers: ' + err.message
49
+ } finally {
50
+ this.loading = false
51
+ this.changeDetectorRef.markForCheck()
52
+ }
53
+ }
54
+
55
+ addLayer(layer: WmsLayerSummary) {
56
+ const layerToAdd: MapContextLayerModel = {
57
+ name: layer.name,
58
+ url: this.wmsUrl.toString(),
59
+ type: MapContextLayerTypeEnum.WMS,
60
+ }
61
+ this.mapFacade.addLayer({ ...layerToAdd, title: layer.title })
62
+ }
63
+ }
@@ -20,6 +20,7 @@ import { MapContainerComponent } from './map-container/map-container.component'
20
20
  import { AddLayerRecordPreviewComponent } from './add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component'
21
21
  import { UiElementsModule } from '../../../../../libs/ui/elements/src'
22
22
  import { UiInputsModule } from '../../../../../libs/ui/inputs/src'
23
+ import { AddLayerFromWmsComponent } from './add-layer-from-wms/add-layer-from-wms.component'
23
24
 
24
25
  @NgModule({
25
26
  declarations: [
@@ -29,6 +30,7 @@ import { UiInputsModule } from '../../../../../libs/ui/inputs/src'
29
30
  AddLayerFromCatalogComponent,
30
31
  MapContainerComponent,
31
32
  AddLayerRecordPreviewComponent,
33
+ AddLayerFromWmsComponent,
32
34
  ],
33
35
  exports: [
34
36
  MapContextComponent,
@@ -31,7 +31,9 @@
31
31
  </div>
32
32
  </mat-tab>
33
33
  <mat-tab [label]="'map.add.layer.wms' | translate" bodyClass="h-full">
34
- <div class="p-3 h-full">Add from WMS</div>
34
+ <div class="p-3">
35
+ <gn-ui-add-layer-from-wms></gn-ui-add-layer-from-wms>
36
+ </div>
35
37
  </mat-tab>
36
38
  <mat-tab [label]="'map.add.layer.wfs' | translate" bodyClass="h-full">
37
39
  <div class="p-3 h-full">Add from WFS</div>
@@ -1,10 +1,18 @@
1
- <div>
2
- <span class="align-text-top mr-1.5 favorite-count" *ngIf="hasFavoriteCount">{{
3
- favoriteCount
4
- }}</span>
1
+ <div class="flex flex-row content-center">
2
+ <span
3
+ class="align-text-top mr-1.5 mt-1.5 favorite-count"
4
+ *ngIf="hasFavoriteCount && displayCount"
5
+ >{{ favoriteCount }}</span
6
+ >
5
7
  <gn-ui-star-toggle
6
8
  [toggled]="isFavorite$ | async"
7
9
  (newValue)="toggleFavorite($event)"
8
10
  [disabled]="loading || (isAnonymous$ | async)"
11
+ class="mt-1"
9
12
  ></gn-ui-star-toggle>
13
+ <span
14
+ class="align-text-top ml-1.5 favorite-count mt-1.5"
15
+ *ngIf="!displayCount"
16
+ translate="datahub.record.addToFavorites"
17
+ ></span>
10
18
  </div>