geonetwork-ui 2.6.0-dev.128618187 → 2.6.0-dev.26001d617

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 (213) hide show
  1. package/esm2022/libs/api/metadata-converter/src/index.mjs +2 -1
  2. package/esm2022/libs/api/metadata-converter/src/lib/common/resource-types.mjs +17 -15
  3. package/esm2022/libs/api/repository/src/lib/gn4/gn4.provider.mjs +7 -1
  4. package/esm2022/libs/feature/editor/src/index.mjs +2 -1
  5. package/esm2022/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.mjs +18 -0
  6. package/esm2022/libs/feature/record/src/index.mjs +1 -2
  7. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +3 -3
  8. package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +5 -9
  9. package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +3 -3
  10. package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +7 -11
  11. package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +6 -3
  12. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +3 -3
  13. package/esm2022/libs/feature/search/src/index.mjs +2 -2
  14. package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +13 -19
  15. package/esm2022/libs/feature/search/src/lib/results-hits/results-hits.container.component.mjs +41 -0
  16. package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +70 -1
  17. package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +4 -3
  18. package/esm2022/libs/ui/elements/src/index.mjs +2 -1
  19. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +3 -3
  20. package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +3 -3
  21. package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +18 -7
  22. package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +3 -3
  23. package/esm2022/libs/ui/elements/src/lib/kind-badge/kind-badge.component.mjs +51 -0
  24. package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +3 -3
  25. package/esm2022/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.mjs +3 -3
  26. package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +3 -3
  27. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +3 -3
  28. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +3 -3
  29. package/esm2022/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.mjs +3 -3
  30. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +10 -4
  31. package/esm2022/libs/ui/inputs/src/index.mjs +2 -1
  32. package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -2
  33. package/esm2022/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.mjs +3 -3
  34. package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +3 -3
  35. package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.mjs +42 -0
  36. package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.mjs +2 -0
  37. package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +3 -3
  38. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +8 -9
  39. package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +48 -11
  40. package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +3 -3
  41. package/esm2022/libs/ui/layout/src/lib/max-lines/max-lines.component.mjs +3 -3
  42. package/esm2022/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +6 -6
  43. package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +4 -12
  44. package/esm2022/libs/ui/search/src/index.mjs +2 -1
  45. package/esm2022/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.mjs +3 -3
  46. package/esm2022/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.mjs +53 -0
  47. package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +11 -3
  48. package/esm2022/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.mjs +3 -3
  49. package/esm2022/libs/util/app-config/src/lib/app-config.mjs +2 -1
  50. package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +2 -1
  51. package/esm2022/libs/util/shared/src/index.mjs +2 -1
  52. package/esm2022/libs/util/shared/src/lib/gn-ui-version.mjs +6 -0
  53. package/esm2022/translations/de.json +8 -1
  54. package/esm2022/translations/en.json +8 -1
  55. package/esm2022/translations/es.json +8 -1
  56. package/esm2022/translations/fr.json +9 -2
  57. package/esm2022/translations/it.json +8 -1
  58. package/esm2022/translations/nl.json +8 -1
  59. package/esm2022/translations/pt.json +8 -1
  60. package/fesm2022/geonetwork-ui.mjs +594 -177
  61. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  62. package/libs/api/metadata-converter/src/index.d.ts +1 -0
  63. package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
  64. package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts +21 -0
  65. package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts.map +1 -1
  66. package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts.map +1 -1
  67. package/libs/feature/editor/src/index.d.ts +1 -0
  68. package/libs/feature/editor/src/index.d.ts.map +1 -1
  69. package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts +7 -0
  70. package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts.map +1 -0
  71. package/libs/feature/record/src/index.d.ts +0 -1
  72. package/libs/feature/record/src/index.d.ts.map +1 -1
  73. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +2 -3
  74. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
  75. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +1 -2
  76. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts.map +1 -1
  77. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts +2 -1
  78. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
  79. package/libs/feature/search/src/index.d.ts +1 -1
  80. package/libs/feature/search/src/index.d.ts.map +1 -1
  81. package/libs/feature/search/src/lib/feature-search.module.d.ts +4 -2
  82. package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
  83. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts +21 -0
  84. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts.map +1 -0
  85. package/libs/feature/search/src/lib/utils/service/fields.d.ts +21 -0
  86. package/libs/feature/search/src/lib/utils/service/fields.d.ts.map +1 -1
  87. package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
  88. package/libs/ui/elements/src/index.d.ts +1 -0
  89. package/libs/ui/elements/src/index.d.ts.map +1 -1
  90. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +1 -1
  91. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
  92. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +7 -1
  93. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts.map +1 -1
  94. package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts +11 -0
  95. package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts.map +1 -0
  96. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +1 -1
  97. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
  98. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +2 -1
  99. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  100. package/libs/ui/inputs/src/index.d.ts +1 -0
  101. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  102. package/libs/ui/inputs/src/lib/button/button.component.d.ts +1 -1
  103. package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
  104. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts +14 -0
  105. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts.map +1 -0
  106. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts +6 -0
  107. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts.map +1 -0
  108. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +25 -24
  109. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  110. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +9 -2
  111. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -1
  112. package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
  113. package/libs/ui/search/src/index.d.ts +1 -0
  114. package/libs/ui/search/src/index.d.ts.map +1 -1
  115. package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts +17 -0
  116. package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts.map +1 -0
  117. package/libs/ui/search/src/lib/ui-search.module.d.ts +21 -19
  118. package/libs/ui/search/src/lib/ui-search.module.d.ts.map +1 -1
  119. package/libs/util/app-config/src/lib/app-config.d.ts.map +1 -1
  120. package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
  121. package/libs/util/shared/src/index.d.ts +1 -0
  122. package/libs/util/shared/src/index.d.ts.map +1 -1
  123. package/libs/util/shared/src/lib/gn-ui-version.d.ts +3 -0
  124. package/libs/util/shared/src/lib/gn-ui-version.d.ts.map +1 -0
  125. package/package.json +1 -1
  126. package/src/libs/api/metadata-converter/src/index.ts +1 -0
  127. package/src/libs/api/metadata-converter/src/lib/common/resource-types.ts +29 -15
  128. package/src/libs/api/repository/src/lib/gn4/gn4.provider.ts +6 -0
  129. package/src/libs/feature/editor/src/index.ts +1 -0
  130. package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.css +0 -0
  131. package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.html +14 -0
  132. package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.ts +15 -0
  133. package/src/libs/feature/record/src/index.ts +0 -1
  134. package/src/libs/feature/record/src/lib/data-view/data-view.component.html +14 -10
  135. package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +2 -3
  136. package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +1 -1
  137. package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +4 -5
  138. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.html +2 -2
  139. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +1 -0
  140. package/src/libs/feature/record/src/lib/map-view/map-view.component.html +21 -15
  141. package/src/libs/feature/search/src/index.ts +1 -1
  142. package/src/libs/feature/search/src/lib/feature-search.module.ts +9 -10
  143. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.css +0 -0
  144. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.html +16 -0
  145. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.ts +59 -0
  146. package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +4 -5
  147. package/src/libs/feature/search/src/lib/utils/service/fields.ts +99 -0
  148. package/src/libs/ui/elements/src/index.ts +1 -0
  149. package/src/libs/ui/elements/src/lib/api-card/api-card.component.html +4 -4
  150. package/src/libs/ui/elements/src/lib/download-item/download-item.component.html +8 -5
  151. package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +2 -2
  152. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.html +38 -7
  153. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +29 -2
  154. package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +1 -1
  155. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.css +6 -0
  156. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.html +9 -0
  157. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.ts +51 -0
  158. package/src/libs/ui/elements/src/lib/link-card/link-card.component.html +5 -2
  159. package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +3 -7
  160. package/src/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.html +3 -5
  161. package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +9 -9
  162. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.css +1 -1
  163. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +7 -3
  164. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +2 -3
  165. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.html +1 -1
  166. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +3 -0
  167. package/src/libs/ui/inputs/src/index.ts +1 -0
  168. package/src/libs/ui/inputs/src/lib/button/button.component.ts +2 -2
  169. package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.html +1 -1
  170. package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html +1 -1
  171. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.html +23 -0
  172. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.ts +44 -0
  173. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.ts +5 -0
  174. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +2 -2
  175. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -3
  176. package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +22 -0
  177. package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +2 -2
  178. package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +43 -5
  179. package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +0 -1
  180. package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +1 -1
  181. package/src/libs/ui/layout/src/lib/max-lines/max-lines.component.html +1 -1
  182. package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.html +17 -5
  183. package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.ts +3 -3
  184. package/src/libs/ui/layout/src/lib/ui-layout.module.ts +1 -5
  185. package/src/libs/ui/search/src/index.ts +1 -0
  186. package/src/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.html +1 -1
  187. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html +24 -0
  188. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.ts +53 -0
  189. package/src/libs/ui/search/src/lib/ui-search.module.ts +5 -0
  190. package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.html +2 -1
  191. package/src/libs/util/app-config/src/lib/app-config.ts +1 -0
  192. package/src/libs/util/app-config/src/lib/fixtures.ts +1 -0
  193. package/src/libs/util/shared/src/index.ts +1 -0
  194. package/src/libs/util/shared/src/lib/gn-ui-version.ts +8 -0
  195. package/tailwind.base.config.js +3 -0
  196. package/tailwind.base.css +1 -13
  197. package/translations/de.json +8 -1
  198. package/translations/en.json +8 -1
  199. package/translations/es.json +8 -1
  200. package/translations/fr.json +9 -2
  201. package/translations/it.json +8 -1
  202. package/translations/nl.json +8 -1
  203. package/translations/pt.json +8 -1
  204. package/translations/sk.json +8 -1
  205. package/esm2022/libs/feature/record/src/lib/gn-ui-version.token.mjs +0 -3
  206. package/esm2022/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.mjs +0 -18
  207. package/libs/feature/record/src/lib/gn-ui-version.token.d.ts +0 -3
  208. package/libs/feature/record/src/lib/gn-ui-version.token.d.ts.map +0 -1
  209. package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts +0 -9
  210. package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts.map +0 -1
  211. package/src/libs/feature/record/src/lib/gn-ui-version.token.ts +0 -3
  212. package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.html +0 -4
  213. package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.ts +0 -10
@@ -1,6 +1,7 @@
1
- import { AfterViewInit, ChangeDetectorRef, ElementRef, QueryList } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, QueryList } from '@angular/core';
2
2
  import { Paginable } from '../paginable.interface';
3
3
  import * as i0 from "@angular/core";
4
+ type ComponentSize = 'L' | 'M' | 'S' | 'XS';
4
5
  export declare class BlockListComponent implements AfterViewInit, Paginable {
5
6
  private changeDetector;
6
7
  pageSize: number;
@@ -9,6 +10,8 @@ export declare class BlockListComponent implements AfterViewInit, Paginable {
9
10
  blocks: QueryList<ElementRef<HTMLElement>>;
10
11
  blockContainer: ElementRef<HTMLElement>;
11
12
  protected minHeight: number;
13
+ listChanges: EventEmitter<BlockListComponent>;
14
+ subComponentSize: ComponentSize;
12
15
  protected currentPage_: number;
13
16
  protected get pages(): number[];
14
17
  get isFirstPage(): boolean;
@@ -18,10 +21,14 @@ export declare class BlockListComponent implements AfterViewInit, Paginable {
18
21
  constructor(changeDetector: ChangeDetectorRef);
19
22
  ngAfterViewInit(): void;
20
23
  protected refreshBlocksVisibility: () => void;
24
+ protected updateSizes(): void;
25
+ protected computeSubComponentSize(): ComponentSize;
26
+ protected computePageSize(): number;
21
27
  goToPage(pageIndex: number): void;
22
28
  goToPrevPage(): void;
23
29
  goToNextPage(): void;
24
30
  static ɵfac: i0.ɵɵFactoryDeclaration<BlockListComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<BlockListComponent, "gn-ui-block-list", never, { "pageSize": { "alias": "pageSize"; "required": false; }; "containerClass": { "alias": "containerClass"; "required": false; }; "paginationContainerClass": { "alias": "paginationContainerClass"; "required": false; }; }, {}, ["blocks"], ["*"], true, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<BlockListComponent, "gn-ui-block-list", never, { "containerClass": { "alias": "containerClass"; "required": false; }; "paginationContainerClass": { "alias": "paginationContainerClass"; "required": false; }; }, { "listChanges": "listChanges"; }, ["blocks"], ["*"], true, never>;
26
32
  }
33
+ export {};
27
34
  //# sourceMappingURL=block-list.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"block-list.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/layout/src/lib/block-list/block-list.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,iBAAiB,EAGjB,UAAU,EAEV,SAAS,EAEV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;;AAGlD,qBAQa,kBAAmB,YAAW,aAAa,EAAE,SAAS;IA6BrD,OAAO,CAAC,cAAc;IA5BzB,QAAQ,SAAI;IACZ,cAAc,SAAK;IACnB,wBAAwB,SAA6B;IACd,MAAM,EAAE,SAAS,CAC/D,UAAU,CAAC,WAAW,CAAC,CACxB,CAAA;IAC4B,cAAc,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;IAEpE,SAAS,CAAC,SAAS,SAAI;IAEvB,SAAS,CAAC,YAAY,SAAI;IAC1B,SAAS,KAAK,KAAK,aAElB;IAED,IAAI,WAAW,YAEd;IACD,IAAI,UAAU,YAEb;IACD,IAAI,UAAU,WAEb;IACD,IAAI,WAAW,WAEd;gBAEmB,cAAc,EAAE,iBAAiB;IAErD,eAAe;IASf,SAAS,CAAC,uBAAuB,aAQhC;IAGM,QAAQ,CAAC,SAAS,EAAE,MAAM;IAS1B,YAAY;IAKZ,YAAY;yCAjER,kBAAkB;2CAAlB,kBAAkB;CAqE9B"}
1
+ {"version":3,"file":"block-list.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/layout/src/lib/block-list/block-list.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,iBAAiB,EAGjB,UAAU,EACV,YAAY,EAGZ,SAAS,EAEV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;;AAGlD,KAAK,aAAa,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAA;AAC3C,qBAQa,kBAAmB,YAAW,aAAa,EAAE,SAAS;IA8BrD,OAAO,CAAC,cAAc;IA7BlC,QAAQ,SAAI;IACH,cAAc,SAAK;IACnB,wBAAwB,SAA6B;IACd,MAAM,EAAE,SAAS,CAC/D,UAAU,CAAC,WAAW,CAAC,CACxB,CAAA;IAC4B,cAAc,EAAE,UAAU,CAAC,WAAW,CAAC,CAAA;IACpE,SAAS,CAAC,SAAS,SAAI;IACb,WAAW,mCAAyC;IAC9D,gBAAgB,EAAE,aAAa,CAAM;IAErC,SAAS,CAAC,YAAY,SAAI;IAC1B,SAAS,KAAK,KAAK,aAElB;IAED,IAAI,WAAW,YAEd;IACD,IAAI,UAAU,YAEb;IACD,IAAI,UAAU,WAEb;IACD,IAAI,WAAW,WAEd;gBAEmB,cAAc,EAAE,iBAAiB;IAErD,eAAe;IAiBf,SAAS,CAAC,uBAAuB,aAQhC;IAED,SAAS,CAAC,WAAW;IAKrB,SAAS,CAAC,uBAAuB,IAAI,aAAa;IASlD,SAAS,CAAC,eAAe,IAAI,MAAM;IAa5B,QAAQ,CAAC,SAAS,EAAE,MAAM;IAS1B,YAAY;IAKZ,YAAY;yCApGR,kBAAkB;2CAAlB,kBAAkB;CAwG9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"ui-layout.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/layout/src/lib/ui-layout.module.ts"],"names":[],"mappings":";;;;;;AAOA,qBAUa,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAAG"}
1
+ {"version":3,"file":"ui-layout.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/layout/src/lib/ui-layout.module.ts"],"names":[],"mappings":";;;;;;AAOA,qBAMa,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAAG"}
@@ -16,6 +16,7 @@ export * from './lib/record-preview-text/record-preview-text.component';
16
16
  export * from './lib/record-preview-title/record-preview-title.component';
17
17
  export * from './lib/record-metric/record-metric.component';
18
18
  export * from './lib/results-list-item/results-list-item.component';
19
+ export * from './lib/results-hits-search-kind/results-hits-search-kind.component';
19
20
  export * from './lib/results-hits-number/results-hits-number.component';
20
21
  export * from './lib/results-table/results-table.component';
21
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/search/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3E,cAAc,2BAA2B,CAAA;AACzC,cAAc,uBAAuB,CAAA;AACrC,cAAc,gDAAgD,CAAA;AAC9D,cAAc,8CAA8C,CAAA;AAC5D,cAAc,8CAA8C,CAAA;AAC5D,cAAc,wBAAwB,CAAA;AACtC,cAAc,0CAA0C,CAAA;AACxD,cAAc,2CAA2C,CAAA;AACzD,cAAc,+CAA+C,CAAA;AAC7D,cAAc,yDAAyD,CAAA;AACvE,cAAc,uDAAuD,CAAA;AACrE,cAAc,yDAAyD,CAAA;AACvE,cAAc,yDAAyD,CAAA;AACvE,cAAc,yDAAyD,CAAA;AACvE,cAAc,2DAA2D,CAAA;AACzE,cAAc,6CAA6C,CAAA;AAC3D,cAAc,qDAAqD,CAAA;AACnE,cAAc,yDAAyD,CAAA;AACvE,cAAc,6CAA6C,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/search/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3E,cAAc,2BAA2B,CAAA;AACzC,cAAc,uBAAuB,CAAA;AACrC,cAAc,gDAAgD,CAAA;AAC9D,cAAc,8CAA8C,CAAA;AAC5D,cAAc,8CAA8C,CAAA;AAC5D,cAAc,wBAAwB,CAAA;AACtC,cAAc,0CAA0C,CAAA;AACxD,cAAc,2CAA2C,CAAA;AACzD,cAAc,+CAA+C,CAAA;AAC7D,cAAc,yDAAyD,CAAA;AACvE,cAAc,uDAAuD,CAAA;AACrE,cAAc,yDAAyD,CAAA;AACvE,cAAc,yDAAyD,CAAA;AACvE,cAAc,yDAAyD,CAAA;AACvE,cAAc,2DAA2D,CAAA;AACzE,cAAc,6CAA6C,CAAA;AAC3D,cAAc,qDAAqD,CAAA;AACnE,cAAc,mEAAmE,CAAA;AACjF,cAAc,yDAAyD,CAAA;AACvE,cAAc,6CAA6C,CAAA"}
@@ -0,0 +1,17 @@
1
+ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { Choice } from '../../../../../../libs/ui/inputs/src';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ResultsHitsSearchKindComponent implements OnChanges {
5
+ selected: string[];
6
+ choices: Choice[];
7
+ selectionChanged: EventEmitter<string[]>;
8
+ availableChoices: Choice[];
9
+ ngOnChanges(changes: SimpleChanges): void;
10
+ buildFilterChoices(availableValues: Choice[]): Choice[];
11
+ onSelectedValues(values: string[]): void;
12
+ isSelectedChoice(choiceValue: string): boolean;
13
+ isAllChoice(choiceValue: string): boolean;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<ResultsHitsSearchKindComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<ResultsHitsSearchKindComponent, "gn-ui-results-hits-search-kind", never, { "selected": { "alias": "selected"; "required": false; }; "choices": { "alias": "choices"; "required": false; }; }, { "selectionChanged": "selectionChanged"; }, never, never, false, never>;
16
+ }
17
+ //# sourceMappingURL=results-hits-search-kind.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"results-hits-search-kind.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EAEZ,SAAS,EACT,aAAa,EAEd,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAA;;AAE7D,qBAIa,8BAA+B,YAAW,SAAS;IACrD,QAAQ,EAAE,MAAM,EAAE,CAAK;IACvB,OAAO,EAAE,MAAM,EAAE,CAAK;IACrB,gBAAgB,yBAA+B;IAEzD,gBAAgB,EAAE,MAAM,EAAE,CAAK;IAE/B,WAAW,CAAC,OAAO,EAAE,aAAa;IAMlC,kBAAkB,CAAC,eAAe,EAAE,MAAM,EAAE;IAY5C,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE;IAMjC,gBAAgB,CAAC,WAAW,EAAE,MAAM;IAIpC,WAAW,CAAC,WAAW,EAAE,MAAM;yCAnCpB,8BAA8B;2CAA9B,8BAA8B;CAsC1C"}
@@ -7,27 +7,29 @@ import * as i5 from "./record-preview-title/record-preview-title.component";
7
7
  import * as i6 from "./record-metric/record-metric.component";
8
8
  import * as i7 from "./results-list/results-list.component";
9
9
  import * as i8 from "./results-hits-number/results-hits-number.component";
10
- import * as i9 from "./results-list-item/results-list-item.component";
11
- import * as i10 from "./record-preview-feed/record-preview-feed.component";
12
- import * as i11 from "./record-preview-row/record-preview-row.component";
13
- import * as i12 from "@angular/common";
14
- import * as i13 from "@ngx-translate/core";
15
- import * as i14 from "ngx-dropzone";
16
- import * as i15 from "./facets/facets.module";
17
- import * as i16 from "@angular/forms";
18
- import * as i17 from "ngx-chips";
19
- import * as i18 from "../../../../util/shared/src/lib/util-shared.module";
20
- import * as i19 from "../../../widgets/src/lib/ui-widgets.module";
21
- import * as i20 from "../../../inputs/src/lib/ui-inputs.module";
22
- import * as i21 from "../../../elements/src/lib/ui-elements.module";
23
- import * as i22 from "@angular/material/checkbox";
24
- import * as i23 from "@angular/router";
25
- import * as i24 from "../../../layout/src/lib/interactive-table/interactive-table.component";
26
- import * as i25 from "@ng-icons/core";
27
- import * as i26 from "../../../elements/src/lib/metadata-quality/metadata-quality.component";
10
+ import * as i9 from "./results-hits-search-kind/results-hits-search-kind.component";
11
+ import * as i10 from "./results-list-item/results-list-item.component";
12
+ import * as i11 from "./record-preview-feed/record-preview-feed.component";
13
+ import * as i12 from "./record-preview-row/record-preview-row.component";
14
+ import * as i13 from "@angular/common";
15
+ import * as i14 from "@ngx-translate/core";
16
+ import * as i15 from "ngx-dropzone";
17
+ import * as i16 from "./facets/facets.module";
18
+ import * as i17 from "@angular/forms";
19
+ import * as i18 from "ngx-chips";
20
+ import * as i19 from "../../../../util/shared/src/lib/util-shared.module";
21
+ import * as i20 from "../../../widgets/src/lib/ui-widgets.module";
22
+ import * as i21 from "../../../inputs/src/lib/ui-inputs.module";
23
+ import * as i22 from "../../../elements/src/lib/ui-elements.module";
24
+ import * as i23 from "@angular/material/checkbox";
25
+ import * as i24 from "@angular/router";
26
+ import * as i25 from "../../../layout/src/lib/interactive-table/interactive-table.component";
27
+ import * as i26 from "@ng-icons/core";
28
+ import * as i27 from "../../../elements/src/lib/kind-badge/kind-badge.component";
29
+ import * as i28 from "../../../elements/src/lib/metadata-quality/metadata-quality.component";
28
30
  export declare class UiSearchModule {
29
31
  static ɵfac: i0.ɵɵFactoryDeclaration<UiSearchModule, never>;
30
- static ɵmod: i0.ɵɵNgModuleDeclaration<UiSearchModule, [typeof i1.RecordPreviewComponent, typeof i2.RecordPreviewListComponent, typeof i3.RecordPreviewCardComponent, typeof i4.RecordPreviewTextComponent, typeof i5.RecordPreviewTitleComponent, typeof i6.RecordMetricComponent, typeof i7.ResultsListComponent, typeof i8.ResultsHitsNumberComponent, typeof i9.ResultsListItemComponent, typeof i10.RecordPreviewFeedComponent, typeof i11.RecordPreviewRowComponent], [typeof i12.CommonModule, typeof i13.TranslateModule, typeof i14.NgxDropzoneModule, typeof i15.FacetsModule, typeof i16.FormsModule, typeof i16.ReactiveFormsModule, typeof i17.TagInputModule, typeof i18.UtilSharedModule, typeof i19.UiWidgetsModule, typeof i20.UiInputsModule, typeof i21.UiElementsModule, typeof i22.MatCheckboxModule, typeof i23.RouterLink, typeof i24.InteractiveTableComponent, typeof i25.NgIconsModule, typeof i26.MetadataQualityComponent], [typeof i2.RecordPreviewListComponent, typeof i3.RecordPreviewCardComponent, typeof i4.RecordPreviewTextComponent, typeof i5.RecordPreviewTitleComponent, typeof i6.RecordMetricComponent, typeof i7.ResultsListComponent, typeof i15.FacetsModule, typeof i1.RecordPreviewComponent, typeof i8.ResultsHitsNumberComponent, typeof i10.RecordPreviewFeedComponent, typeof i11.RecordPreviewRowComponent]>;
32
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UiSearchModule, [typeof i1.RecordPreviewComponent, typeof i2.RecordPreviewListComponent, typeof i3.RecordPreviewCardComponent, typeof i4.RecordPreviewTextComponent, typeof i5.RecordPreviewTitleComponent, typeof i6.RecordMetricComponent, typeof i7.ResultsListComponent, typeof i8.ResultsHitsNumberComponent, typeof i9.ResultsHitsSearchKindComponent, typeof i10.ResultsListItemComponent, typeof i11.RecordPreviewFeedComponent, typeof i12.RecordPreviewRowComponent], [typeof i13.CommonModule, typeof i14.TranslateModule, typeof i15.NgxDropzoneModule, typeof i16.FacetsModule, typeof i17.FormsModule, typeof i17.ReactiveFormsModule, typeof i18.TagInputModule, typeof i19.UtilSharedModule, typeof i20.UiWidgetsModule, typeof i21.UiInputsModule, typeof i22.UiElementsModule, typeof i23.MatCheckboxModule, typeof i24.RouterLink, typeof i25.InteractiveTableComponent, typeof i26.NgIconsModule, typeof i27.KindBadgeComponent, typeof i28.MetadataQualityComponent], [typeof i2.RecordPreviewListComponent, typeof i3.RecordPreviewCardComponent, typeof i4.RecordPreviewTextComponent, typeof i5.RecordPreviewTitleComponent, typeof i6.RecordMetricComponent, typeof i7.ResultsListComponent, typeof i16.FacetsModule, typeof i1.RecordPreviewComponent, typeof i8.ResultsHitsNumberComponent, typeof i9.ResultsHitsSearchKindComponent, typeof i11.RecordPreviewFeedComponent, typeof i12.RecordPreviewRowComponent]>;
31
33
  static ɵinj: i0.ɵɵInjectorDeclaration<UiSearchModule>;
32
34
  }
33
35
  //# sourceMappingURL=ui-search.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui-search.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/search/src/lib/ui-search.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,qBA0Da,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAAG"}
1
+ {"version":3,"file":"ui-search.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/search/src/lib/ui-search.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,qBA6Da,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"app-config.d.ts","sourceRoot":"","sources":["../../../../../src/libs/util/app-config/src/lib/app-config.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,kBAAkB,EAElB,YAAY,EAEZ,SAAS,EACT,qBAAqB,EACrB,YAAY,EACZ,WAAW,EACZ,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACxE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAA;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,EAAE,gCAAgC,EAAE,MAAM,6CAA6C,CAAA;AAS9F,wBAAgB,eAAe,IAAI,YAAY,CAG9C;AAID,wBAAgB,cAAc,IAAI,WAAW,CAG5C;AAID,wBAAgB,oBAAoB,IAAI,SAAS,GAAG,IAAI,CAEvD;AAID,wBAAgB,uBAAuB,IAAI,YAAY,GAAG,IAAI,CAE7D;AAGD,wBAAgB,wBAAwB,IAAI,qBAAqB,CAOhE;AAID,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,kBAAkB,CAG1E;AAID,wBAAgB,aAAa,kBAsN5B;AAED,wBAAgB,cAAc,YAE7B;AAED,wBAAgB,MAAM,SAIrB;AAED,eAAO,MAAM,+BAA+B;;;;;;;2BAOK,UAAU;;;;CAM1D,CAAA"}
1
+ {"version":3,"file":"app-config.d.ts","sourceRoot":"","sources":["../../../../../src/libs/util/app-config/src/lib/app-config.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,kBAAkB,EAElB,YAAY,EAEZ,SAAS,EACT,qBAAqB,EACrB,YAAY,EACZ,WAAW,EACZ,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACxE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAA;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,EAAE,gCAAgC,EAAE,MAAM,6CAA6C,CAAA;AAS9F,wBAAgB,eAAe,IAAI,YAAY,CAG9C;AAID,wBAAgB,cAAc,IAAI,WAAW,CAG5C;AAID,wBAAgB,oBAAoB,IAAI,SAAS,GAAG,IAAI,CAEvD;AAID,wBAAgB,uBAAuB,IAAI,YAAY,GAAG,IAAI,CAE7D;AAGD,wBAAgB,wBAAwB,IAAI,qBAAqB,CAOhE;AAID,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,kBAAkB,CAG1E;AAID,wBAAgB,aAAa,kBAuN5B;AAED,wBAAgB,cAAc,YAE7B;AAED,wBAAgB,MAAM,SAIrB;AAED,eAAO,MAAM,+BAA+B;;;;;;;2BAOK,UAAU;;;;CAM1D,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../../../src/libs/util/app-config/src/lib/fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEnC,eAAO,MAAM,kBAAkB,cA8D9B,CAAA;AAED,eAAO,MAAM,+BAA+B,cAA6B,CAAA;AAEzE,eAAO,MAAM,uBAAuB,cAUnC,CAAA;AAED,eAAO,MAAM,gBAAgB,QAAO,SAwBlC,CAAA;AAEF,eAAO,MAAM,sBAAsB,cAIlC,CAAA;AAED,eAAO,MAAM,6BAA6B,cAMzC,CAAA;AAED,eAAO,MAAM,8BAA8B,cAa1C,CAAA;AAED,eAAO,MAAM,6BAA6B,cAmCzC,CAAA"}
1
+ {"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../../../src/libs/util/app-config/src/lib/fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEnC,eAAO,MAAM,kBAAkB,cA+D9B,CAAA;AAED,eAAO,MAAM,+BAA+B,cAA6B,CAAA;AAEzE,eAAO,MAAM,uBAAuB,cAUnC,CAAA;AAED,eAAO,MAAM,gBAAgB,QAAO,SAwBlC,CAAA;AAEF,eAAO,MAAM,sBAAsB,cAIlC,CAAA;AAED,eAAO,MAAM,6BAA6B,cAMzC,CAAA;AAED,eAAO,MAAM,8BAA8B,cAa1C,CAAA;AAED,eAAO,MAAM,6BAA6B,cAmCzC,CAAA"}
@@ -3,4 +3,5 @@ export * from './lib/services';
3
3
  export * from './lib/utils';
4
4
  export * from './lib/links';
5
5
  export * from './lib/image-fallback.directive';
6
+ export * from './lib/gn-ui-version';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/util/shared/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,gCAAgC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/util/shared/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,gCAAgC,CAAA;AAC9C,cAAc,qBAAqB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const GEONETWORK_UI_VERSION: string;
2
+ export declare const GEONETWORK_UI_TAG_NAME: string;
3
+ //# sourceMappingURL=gn-ui-version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gn-ui-version.d.ts","sourceRoot":"","sources":["../../../../../src/libs/util/shared/src/lib/gn-ui-version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,QAAsB,CAAA;AAExD,eAAO,MAAM,sBAAsB,QAGJ,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geonetwork-ui",
3
- "version": "2.6.0-dev.128618187",
3
+ "version": "2.6.0-dev.26001d617",
4
4
  "engines": {
5
5
  "node": ">=20"
6
6
  },
@@ -5,3 +5,4 @@ export * from './lib/gn4'
5
5
  export * from './lib/dcat-ap'
6
6
  export * from './lib/xml-utils'
7
7
  export * from './lib/base.converter'
8
+ export * from './lib/common/resource-types'
@@ -4,23 +4,37 @@ import {
4
4
  ReuseType,
5
5
  } from '../../../../../../libs/common/domain/src/lib/model/record'
6
6
 
7
- export function getResourceType(type: string): RecordKind {
8
- const possibleResourceTypes = {
9
- application: 'reuse',
10
- dataset: 'dataset',
11
- map: 'reuse',
12
- 'map/static': 'reuse', // old index field
13
- 'map/interactive': 'reuse', // old index field
14
- 'map-interactive': 'reuse', // new index field since Oct 10, 2024
15
- 'map-static': 'reuse', // new index field
16
- mapDigital: 'reuse',
17
- interactiveMap: 'reuse',
18
- staticMap: 'reuse',
19
- service: 'service',
20
- } as const
7
+ export const PossibleResourceTypes = {
8
+ application: 'reuse',
9
+ dataset: 'dataset',
10
+ interactiveMap: 'reuse',
11
+ map: 'reuse',
12
+ 'map/static': 'reuse', // old index field
13
+ 'map/interactive': 'reuse', // old index field
14
+ 'map-interactive': 'reuse', // new index field since Oct 10, 2024
15
+ 'map-static': 'reuse', // new index field
16
+ mapDigital: 'reuse',
17
+ series: 'dataset',
18
+ service: 'service',
19
+ staticMap: 'reuse',
20
+ } as const
21
+
22
+ type KindType = keyof typeof PossibleResourceTypes
23
+ type ResourceType = 'reuse' | 'dataset' | 'service'
24
+ type PossibleResourceTypesGrouped = {
25
+ [K in ResourceType]: KindType[]
26
+ }
27
+
28
+ export const PossibleResourceTypesDefinition = Object.entries(
29
+ PossibleResourceTypes
30
+ ).reduce(
31
+ (acc, [key, val]) => ((acc[val] ??= []).push(key), acc),
32
+ {}
33
+ ) as PossibleResourceTypesGrouped
21
34
 
35
+ export function getResourceType(type: string): RecordKind {
22
36
  return (
23
- possibleResourceTypes[type as keyof typeof possibleResourceTypes] ||
37
+ PossibleResourceTypes[type as keyof typeof PossibleResourceTypes] ||
24
38
  'dataset'
25
39
  )
26
40
  }
@@ -2,6 +2,8 @@ import { Provider } from '@angular/core'
2
2
  import { PlatformServiceInterface } from '../../../../../../libs/common/domain/src/lib/platform.service.interface'
3
3
  import { Gn4PlatformService } from './platform/gn4-platform.service'
4
4
  import { Gn4PlatformMapper } from './platform/gn4-platform.mapper'
5
+ import { RecordsRepositoryInterface } from '../../../../../../libs/common/domain/src/lib/repository/records-repository.interface'
6
+ import { Gn4Repository } from './gn4-repository'
5
7
 
6
8
  export function provideGn4(): Provider[] {
7
9
  return [
@@ -9,6 +11,10 @@ export function provideGn4(): Provider[] {
9
11
  provide: PlatformServiceInterface,
10
12
  useClass: Gn4PlatformService,
11
13
  },
14
+ {
15
+ provide: RecordsRepositoryInterface,
16
+ useClass: Gn4Repository,
17
+ },
12
18
  Gn4PlatformMapper,
13
19
  ]
14
20
  }
@@ -11,3 +11,4 @@ export * from './lib/components/wizard/wizard.component'
11
11
  export * from './lib/components/wizard-field/wizard-field.component'
12
12
  export * from './lib/components/wizard-summarize/wizard-summarize.component'
13
13
  export * from './lib/components/record-form/form-field'
14
+ export * from './lib/components/multilingual-panel/multilingual-panel.component'
@@ -0,0 +1,14 @@
1
+ <div
2
+ class="flex flex-col h-full w-[302px] bg-neutral-100 border-l border-gray-300 py-9 px-3 gap-8"
3
+ >
4
+ <span class="text-3xl font-title text-black/80 px-2" translate
5
+ >editor.record.form.multilingual.title</span
6
+ >
7
+ <gn-ui-check-toggle
8
+ class="p-2"
9
+ [label]="'editor.record.form.multilingual.enable' | translate"
10
+ [color]="'primary'"
11
+ [value]="translationsEnabled"
12
+ (toggled)="translationsEnabled = $event"
13
+ ></gn-ui-check-toggle>
14
+ </div>
@@ -0,0 +1,15 @@
1
+ import { Component } from '@angular/core'
2
+ import { CommonModule } from '@angular/common'
3
+ import { CheckToggleComponent } from '../../../../../../../libs/ui/inputs/src'
4
+ import { TranslateModule } from '@ngx-translate/core'
5
+
6
+ @Component({
7
+ selector: 'gn-ui-multilingual-panel',
8
+ standalone: true,
9
+ imports: [CommonModule, CheckToggleComponent, TranslateModule],
10
+ templateUrl: './multilingual-panel.component.html',
11
+ styleUrl: './multilingual-panel.component.css',
12
+ })
13
+ export class MultilingualPanelComponent {
14
+ translationsEnabled = false
15
+ }
@@ -1,5 +1,4 @@
1
1
  export * from './lib/feature-record.module'
2
- export * from './lib/gn-ui-version.token'
3
2
  export * from './lib/state'
4
3
  export * from './lib/data-view-permalink/data-view-permalink.component'
5
4
  export * from './lib/data-view/data-view.component'
@@ -1,13 +1,17 @@
1
- <div class="w-full h-full flex flex-col p-1">
2
- <gn-ui-dropdown-selector
3
- *ngIf="dropdownChoices$ | async as choices"
4
- [ngClass]="{ hidden: !displaySource }"
5
- [title]="'table.select.data' | translate"
6
- class="truncate p-1 -mx-1 self-end mb-1"
7
- extraBtnClass="!text-primary font-sans font-medium"
8
- [choices]="choices"
9
- (selectValue)="selectLink($event)"
10
- ></gn-ui-dropdown-selector>
1
+ <div class="w-full h-full flex flex-col gap-[13px]">
2
+ <div
3
+ class="w-full py-4 px-5 bg-white border border-color-border rounded-lg mt-6"
4
+ >
5
+ <gn-ui-dropdown-selector
6
+ *ngIf="dropdownChoices$ | async as choices"
7
+ [ngClass]="{ hidden: !displaySource }"
8
+ [title]="'table.select.data' | translate"
9
+ class="h-[44px] w-full"
10
+ extraBtnClass="font-sans font-bold"
11
+ [choices]="choices"
12
+ (selectValue)="selectLink($event)"
13
+ ></gn-ui-dropdown-selector>
14
+ </div>
11
15
  <ng-container *ngIf="hidePreview; else dataView">
12
16
  <gn-ui-popup-alert
13
17
  type="warning"
@@ -9,10 +9,10 @@ import {
9
9
  import { Configuration } from '../../../../../../libs/data-access/gn4/src'
10
10
  import { BehaviorSubject, combineLatest, map } from 'rxjs'
11
11
  import { MdViewFacade } from '../state'
12
- import { GN_UI_VERSION } from '../gn-ui-version.token'
13
12
  import { CopyTextButtonComponent } from '../../../../../../libs/ui/inputs/src'
14
13
  import { CommonModule } from '@angular/common'
15
14
  import { TranslateModule } from '@ngx-translate/core'
15
+ import { GEONETWORK_UI_TAG_NAME } from '../../../../../../libs/util/shared/src'
16
16
 
17
17
  export const WEB_COMPONENT_EMBEDDER_URL = new InjectionToken<string>(
18
18
  'webComponentEmbedderUrl'
@@ -40,7 +40,7 @@ export class DataViewPermalinkComponent {
40
40
  ]).pipe(
41
41
  map(([viewType, config, metadata]) => {
42
42
  const url = new URL(`${this.wcEmbedderBaseUrl}`, window.location.origin)
43
- url.searchParams.set('v', `${this.version}`)
43
+ url.searchParams.set('v', `${GEONETWORK_UI_TAG_NAME}`)
44
44
  if (viewType === 'chart') {
45
45
  if (config) {
46
46
  const { aggregation, xProperty, yProperty, chartType } = config
@@ -74,7 +74,6 @@ export class DataViewPermalinkComponent {
74
74
  @Optional()
75
75
  @Inject(WEB_COMPONENT_EMBEDDER_URL)
76
76
  protected wcEmbedderBaseUrl: string,
77
- @Inject(GN_UI_VERSION) private version: string,
78
77
  private facade: MdViewFacade
79
78
  ) {}
80
79
  }
@@ -1,4 +1,4 @@
1
- <div class="px-5 my-1">
1
+ <div>
2
2
  <mat-tab-group
3
3
  [selectedIndex]="0"
4
4
  animationDuration="0ms"
@@ -7,10 +7,10 @@ import {
7
7
  import { Configuration } from '../../../../../../libs/data-access/gn4/src'
8
8
  import { MdViewFacade } from '../state'
9
9
  import { BehaviorSubject, combineLatest, map } from 'rxjs'
10
- import { GN_UI_VERSION } from '../gn-ui-version.token'
11
10
  import { CopyTextButtonComponent } from '../../../../../../libs/ui/inputs/src'
12
11
  import { CommonModule } from '@angular/common'
13
12
  import { TranslateModule } from '@ngx-translate/core'
13
+ import { GEONETWORK_UI_TAG_NAME } from '../../../../../../libs/util/shared/src'
14
14
 
15
15
  @Component({
16
16
  selector: 'gn-ui-data-view-web-component',
@@ -36,7 +36,7 @@ export class DataViewWebComponentComponent {
36
36
  if (config) {
37
37
  const { aggregation, xProperty, yProperty, chartType } = config
38
38
  return `<script src="https://cdn.jsdelivr.net/gh/geonetwork/geonetwork-ui@wc-dist-${
39
- this.version
39
+ GEONETWORK_UI_TAG_NAME
40
40
  }/gn-wc.js"></script>
41
41
  <gn-dataset-view-chart
42
42
  api-url="${new URL(
@@ -59,7 +59,7 @@ export class DataViewWebComponentComponent {
59
59
  return ''
60
60
  } else if (viewType === 'table') {
61
61
  return `<script src="https://cdn.jsdelivr.net/gh/geonetwork/geonetwork-ui@wc-dist-${
62
- this.version
62
+ GEONETWORK_UI_TAG_NAME
63
63
  }/gn-wc.js"></script>
64
64
  <gn-dataset-view-table
65
65
  api-url="${new URL(
@@ -76,7 +76,7 @@ export class DataViewWebComponentComponent {
76
76
  ></gn-dataset-view-table>`
77
77
  } else {
78
78
  return `<script src="https://cdn.jsdelivr.net/gh/geonetwork/geonetwork-ui@wc-dist-${
79
- this.version
79
+ GEONETWORK_UI_TAG_NAME
80
80
  }/gn-wc.js"></script>
81
81
  <gn-dataset-view-map
82
82
  api-url="${new URL(
@@ -97,7 +97,6 @@ export class DataViewWebComponentComponent {
97
97
 
98
98
  constructor(
99
99
  @Inject(Configuration) private config: Configuration,
100
- @Inject(GN_UI_VERSION) private version: string,
101
100
  private facade: MdViewFacade
102
101
  ) {}
103
102
  }
@@ -1,9 +1,9 @@
1
1
  <gn-ui-button
2
2
  *ngIf="externalViewer"
3
3
  (buttonClick)="openInExternalViewer()"
4
- type="secondary"
4
+ type="primary"
5
5
  [title]="'record.externalViewer.open' | translate"
6
- extraClass="ms-2 !rounded-lg"
6
+ [extraClass]="extraClass + 'bg-primary ms-2 !rounded-lg'"
7
7
  >
8
8
  <ng-icon name="matOpenInNew"></ng-icon>
9
9
  </gn-ui-button>
@@ -36,6 +36,7 @@ export const EXTERNAL_VIEWER_OPEN_NEW_TAB = new InjectionToken<boolean>(
36
36
  })
37
37
  export class ExternalViewerButtonComponent {
38
38
  @Input() link: DatasetOnlineResource
39
+ @Input() extraClass = ''
39
40
 
40
41
  get externalViewer() {
41
42
  return !!this.urlTemplate && !!this.supportedLinkLayerType
@@ -1,18 +1,24 @@
1
- <div class="w-full h-full flex flex-col p-1">
2
- <div class="w-full flex justify-end">
3
- <gn-ui-dropdown-selector
4
- [ngClass]="{ hidden: !displaySource }"
5
- class="truncate p-1 -mx-1 mb-1"
6
- extraBtnClass="!text-primary font-sans font-medium"
7
- [title]="'map.select.layer' | translate"
8
- [choices]="dropdownChoices$ | async"
9
- (selectValue)="selectLinkToDisplay($event)"
10
- ></gn-ui-dropdown-selector>
11
- <gn-ui-external-viewer-button
12
- class="shrink-0 py-1 place-self-end"
13
- [link]="selectedLink$ | async"
14
- >
15
- </gn-ui-external-viewer-button>
1
+ <div class="w-full h-full flex flex-col gap-[13px]">
2
+ <div
3
+ class="flex py-4 px-5 bg-white border border-color-border rounded-lg mt-6"
4
+ >
5
+ <div class="grow min-w-0">
6
+ <gn-ui-dropdown-selector
7
+ [ngClass]="{ hidden: !displaySource }"
8
+ class="w-full"
9
+ extraBtnClass="font-sans font-bold"
10
+ [title]="'map.select.layer' | translate"
11
+ [choices]="dropdownChoices$ | async"
12
+ (selectValue)="selectLinkToDisplay($event)"
13
+ ></gn-ui-dropdown-selector>
14
+ </div>
15
+ <div class="self-end">
16
+ <gn-ui-external-viewer-button
17
+ extraClass="w-[44px] h-[44px]"
18
+ [link]="selectedLink$ | async"
19
+ >
20
+ </gn-ui-external-viewer-button>
21
+ </div>
16
22
  </div>
17
23
  <ng-container *ngIf="hidePreview; else mapView">
18
24
  <gn-ui-popup-alert
@@ -17,7 +17,7 @@ export * from './lib/facets/facets.module'
17
17
  export * from './lib/facets/facets-container/facets-container.component'
18
18
  export * from './lib/records-metrics/records-metrics.component'
19
19
  export * from './lib/favorites/favorite-star/favorite-star.component'
20
- export * from './lib/results-hits-number/results-hits.container.component'
20
+ export * from './lib/results-hits/results-hits.container.component'
21
21
  export * from './lib/results-layout/results-layout.component'
22
22
  export * from './lib/sort-by/sort-by.component'
23
23
  export * from './lib/state/container/search-state.container.directive'
@@ -4,6 +4,7 @@ import { UiSearchModule } from '../../../../../libs/ui/search/src'
4
4
  import { EffectsModule } from '@ngrx/effects'
5
5
  import { StoreModule } from '@ngrx/store'
6
6
  import { TranslateModule } from '@ngx-translate/core'
7
+ import { NgIconsModule } from '@ng-icons/core'
7
8
  import { FacetsModule } from './facets/facets.module'
8
9
  import { FuzzySearchComponent } from './fuzzy-search/fuzzy-search.component'
9
10
  import { RecordsMetricsComponent } from './records-metrics/records-metrics.component'
@@ -12,7 +13,7 @@ import { ResultsListContainerComponent } from './results-list/results-list.conta
12
13
  import { SortByComponent } from './sort-by/sort-by.component'
13
14
  import { SearchEffects } from './state/effects'
14
15
  import { initialState, reducer, SEARCH_FEATURE_KEY } from './state/reducer'
15
- import { ResultsHitsContainerComponent } from './results-hits-number/results-hits.container.component'
16
+ import { ResultsHitsContainerComponent } from './results-hits/results-hits.container.component'
16
17
  import { SearchStateContainerDirective } from './state/container/search-state.container.directive'
17
18
  import {
18
19
  AutocompleteComponent,
@@ -20,14 +21,16 @@ import {
20
21
  UiInputsModule,
21
22
  } from '../../../../../libs/ui/inputs/src'
22
23
  import { NgModule } from '@angular/core'
23
- import { ErrorComponent, UiElementsModule } from '../../../../../libs/ui/elements/src'
24
+ import {
25
+ ErrorComponent,
26
+ KindBadgeComponent,
27
+ UiElementsModule,
28
+ } from '../../../../../libs/ui/elements/src'
24
29
  import { FilterDropdownComponent } from './filter-dropdown/filter-dropdown.component'
25
30
  import {
26
31
  SpinningLoaderComponent,
27
32
  UiWidgetsModule,
28
33
  } from '../../../../../libs/ui/widgets/src'
29
- import { RecordsRepositoryInterface } from '../../../../../libs/common/domain/src/lib/repository/records-repository.interface'
30
- import { Gn4Repository } from '../../../../../libs/api/repository/src'
31
34
  import { FavoriteStarComponent } from './favorites/favorite-star/favorite-star.component'
32
35
 
33
36
  @NgModule({
@@ -60,6 +63,8 @@ import { FavoriteStarComponent } from './favorites/favorite-star/favorite-star.c
60
63
  ErrorComponent,
61
64
  FavoriteStarComponent,
62
65
  DateRangeDropdownComponent,
66
+ NgIconsModule,
67
+ KindBadgeComponent,
63
68
  ],
64
69
  exports: [
65
70
  SortByComponent,
@@ -72,11 +77,5 @@ import { FavoriteStarComponent } from './favorites/favorite-star/favorite-star.c
72
77
  SearchStateContainerDirective,
73
78
  FilterDropdownComponent,
74
79
  ],
75
- providers: [
76
- {
77
- provide: RecordsRepositoryInterface,
78
- useClass: Gn4Repository,
79
- },
80
- ],
81
80
  })
82
81
  export class FeatureSearchModule {}
@@ -0,0 +1,16 @@
1
+ <div
2
+ class="flex flex-col gap-3 sm:flex-row justify-between"
3
+ [ngClass]="{
4
+ 'sm:items-center': (searchFacade.resultsHits$ | async) !== 0,
5
+ }"
6
+ >
7
+ <gn-ui-results-hits-number
8
+ [loading]="searchFacade.isLoading$ | async"
9
+ [hits]="searchFacade.resultsHits$ | async"
10
+ ></gn-ui-results-hits-number>
11
+ <gn-ui-results-hits-search-kind
12
+ (selectionChanged)="onSelectionChanged($event)"
13
+ [choices]="filterChoices$ | async"
14
+ [selected]="selected$ | async"
15
+ ></gn-ui-results-hits-search-kind>
16
+ </div>