geonetwork-ui 2.6.0-dev.9df114cd4 → 2.6.0-dev.a8e63e487

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 (469) hide show
  1. package/esm2022/libs/api/metadata-converter/src/index.mjs +2 -1
  2. package/esm2022/libs/api/metadata-converter/src/lib/base.converter.mjs +1 -1
  3. package/esm2022/libs/api/metadata-converter/src/lib/common/distribution.mapper.mjs +3 -1
  4. package/esm2022/libs/api/metadata-converter/src/lib/common/resource-types.mjs +17 -15
  5. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +39 -6
  6. package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.mjs +1 -1
  7. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.mjs +8 -4
  8. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.mjs +5 -2
  9. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +6 -6
  10. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +5 -5
  11. package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/constant.mjs +2 -1
  12. package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +4 -12
  13. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +42 -9
  14. package/esm2022/libs/api/repository/src/lib/gn4/gn4.provider.mjs +7 -1
  15. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  16. package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
  17. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +45 -9
  18. package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +2 -2
  19. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +32 -2
  20. package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +25 -6
  21. package/esm2022/libs/feature/editor/src/index.mjs +2 -1
  22. package/esm2022/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.mjs +273 -0
  23. package/esm2022/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +2 -3
  24. package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +1 -1
  25. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +5 -5
  26. package/esm2022/libs/feature/record/src/index.mjs +2 -4
  27. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +3 -3
  28. package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +5 -9
  29. package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +3 -3
  30. package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +7 -11
  31. package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +6 -3
  32. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +33 -7
  33. package/esm2022/libs/feature/record/src/lib/record-meta/record-meta.component.mjs +1 -1
  34. package/esm2022/libs/feature/record/src/lib/state/mdview.actions.mjs +3 -1
  35. package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +14 -5
  36. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +13 -15
  37. package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +7 -1
  38. package/esm2022/libs/feature/record/src/lib/state/mdview.selectors.mjs +3 -1
  39. package/esm2022/libs/feature/router/src/lib/default/constants.mjs +3 -1
  40. package/esm2022/libs/feature/router/src/lib/default/router.config.mjs +1 -1
  41. package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +10 -2
  42. package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +9 -3
  43. package/esm2022/libs/feature/search/src/index.mjs +2 -2
  44. package/esm2022/libs/feature/search/src/lib/constants.mjs +2 -1
  45. package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +4 -4
  46. package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +13 -19
  47. package/esm2022/libs/feature/search/src/lib/record-url.token.mjs +4 -2
  48. package/esm2022/libs/feature/search/src/lib/results-hits/results-hits.container.component.mjs +41 -0
  49. package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +30 -10
  50. package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +70 -1
  51. package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +4 -3
  52. package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +3 -3
  53. package/esm2022/libs/ui/dataviz/src/lib/chart/chart.component.mjs +5 -3
  54. package/esm2022/libs/ui/dataviz/src/lib/data-table/data-table.component.mjs +11 -6
  55. package/esm2022/libs/ui/elements/src/index.mjs +5 -1
  56. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +3 -3
  57. package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +3 -3
  58. package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +18 -7
  59. package/esm2022/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.mjs +55 -0
  60. package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +3 -3
  61. package/esm2022/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.mjs +27 -53
  62. package/esm2022/libs/ui/elements/src/lib/kind-badge/kind-badge.component.mjs +68 -0
  63. package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +3 -3
  64. package/esm2022/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.mjs +3 -3
  65. package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +3 -3
  66. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +8 -5
  67. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +3 -3
  68. package/esm2022/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.mjs +51 -0
  69. package/esm2022/libs/ui/elements/src/lib/related-record-card/related-record-card.component.mjs +17 -7
  70. package/esm2022/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.mjs +169 -0
  71. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +22 -4
  72. package/esm2022/libs/ui/inputs/src/index.mjs +3 -1
  73. package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +3 -3
  74. package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -2
  75. package/esm2022/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.mjs +3 -3
  76. package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +3 -3
  77. package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.mjs +42 -0
  78. package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.mjs +2 -0
  79. package/esm2022/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.mjs +68 -0
  80. package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +3 -3
  81. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +8 -9
  82. package/esm2022/libs/ui/layout/src/index.mjs +2 -1
  83. package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +48 -11
  84. package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +3 -3
  85. package/esm2022/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.mjs +34 -13
  86. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +15 -3
  87. package/esm2022/libs/ui/layout/src/lib/max-lines/max-lines.component.mjs +3 -3
  88. package/esm2022/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +6 -6
  89. package/esm2022/libs/ui/layout/src/lib/truncated-text/truncated-text.component.mjs +107 -0
  90. package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +4 -12
  91. package/esm2022/libs/ui/map/src/index.mjs +2 -1
  92. package/esm2022/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.mjs +29 -4
  93. package/esm2022/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.mjs +80 -0
  94. package/esm2022/libs/ui/search/src/index.mjs +3 -1
  95. package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +4 -8
  96. package/esm2022/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.mjs +3 -3
  97. package/esm2022/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.mjs +53 -0
  98. package/esm2022/libs/ui/search/src/lib/results-list/results-layout.config.mjs +2 -2
  99. package/esm2022/libs/ui/search/src/lib/results-list/results-list.component.mjs +3 -3
  100. package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +19 -12
  101. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +29 -15
  102. package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +19 -5
  103. package/esm2022/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.mjs +3 -3
  104. package/esm2022/libs/util/app-config/src/lib/app-config.mjs +2 -1
  105. package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +2 -1
  106. package/esm2022/libs/util/i18n/src/lib/i18n.constants.mjs +42 -1
  107. package/esm2022/libs/util/i18n/src/lib/language-codes.mjs +24 -2
  108. package/esm2022/libs/util/shared/src/index.mjs +2 -1
  109. package/esm2022/libs/util/shared/src/lib/gn-ui-version.mjs +6 -0
  110. package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +5 -1
  111. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +16 -6
  112. package/esm2022/translations/de.json +64 -7
  113. package/esm2022/translations/en.json +66 -9
  114. package/esm2022/translations/es.json +63 -6
  115. package/esm2022/translations/fr.json +65 -8
  116. package/esm2022/translations/it.json +70 -13
  117. package/esm2022/translations/nl.json +63 -6
  118. package/esm2022/translations/pt.json +63 -6
  119. package/fesm2022/geonetwork-ui.mjs +2912 -1096
  120. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  121. package/libs/api/metadata-converter/src/index.d.ts +1 -0
  122. package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
  123. package/libs/api/metadata-converter/src/lib/base.converter.d.ts.map +1 -1
  124. package/libs/api/metadata-converter/src/lib/common/distribution.mapper.d.ts.map +1 -1
  125. package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts +21 -0
  126. package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts.map +1 -1
  127. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  128. package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts +0 -1
  129. package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts.map +1 -1
  130. package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts +1 -0
  131. package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts.map +1 -1
  132. package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts.map +1 -1
  133. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
  134. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  135. package/libs/api/repository/src/lib/gn4/elasticsearch/constant.d.ts.map +1 -1
  136. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts +1 -1
  137. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
  138. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +7 -2
  139. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  140. package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts.map +1 -1
  141. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +6 -3
  142. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  143. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +3 -0
  144. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  145. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts +12 -8
  146. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
  147. package/libs/feature/dataviz/src/lib/service/data.service.d.ts +1 -0
  148. package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
  149. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +5 -2
  150. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
  151. package/libs/feature/editor/src/index.d.ts +1 -0
  152. package/libs/feature/editor/src/index.d.ts.map +1 -1
  153. package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts +52 -0
  154. package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts.map +1 -0
  155. package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts.map +1 -1
  156. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts +6 -6
  157. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -1
  158. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +1 -1
  159. package/libs/feature/record/src/index.d.ts +1 -3
  160. package/libs/feature/record/src/index.d.ts.map +1 -1
  161. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +9 -1
  162. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
  163. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +2 -3
  164. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
  165. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +1 -2
  166. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts.map +1 -1
  167. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts +2 -1
  168. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
  169. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  170. package/libs/feature/record/src/lib/record-meta/record-meta.component.d.ts +2 -2
  171. package/libs/feature/record/src/lib/state/mdview.actions.d.ts +10 -0
  172. package/libs/feature/record/src/lib/state/mdview.actions.d.ts.map +1 -1
  173. package/libs/feature/record/src/lib/state/mdview.effects.d.ts +9 -1
  174. package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
  175. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +28 -21
  176. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  177. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts +2 -0
  178. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts.map +1 -1
  179. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts +2 -0
  180. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts.map +1 -1
  181. package/libs/feature/router/src/lib/default/constants.d.ts +2 -0
  182. package/libs/feature/router/src/lib/default/constants.d.ts.map +1 -1
  183. package/libs/feature/router/src/lib/default/router.config.d.ts +2 -0
  184. package/libs/feature/router/src/lib/default/router.config.d.ts.map +1 -1
  185. package/libs/feature/router/src/lib/default/router.service.d.ts.map +1 -1
  186. package/libs/feature/router/src/lib/default/state/router.facade.d.ts +5 -0
  187. package/libs/feature/router/src/lib/default/state/router.facade.d.ts.map +1 -1
  188. package/libs/feature/search/src/index.d.ts +1 -1
  189. package/libs/feature/search/src/index.d.ts.map +1 -1
  190. package/libs/feature/search/src/lib/constants.d.ts.map +1 -1
  191. package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
  192. package/libs/feature/search/src/lib/feature-search.module.d.ts +4 -2
  193. package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
  194. package/libs/feature/search/src/lib/record-url.token.d.ts +3 -1
  195. package/libs/feature/search/src/lib/record-url.token.d.ts.map +1 -1
  196. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts +21 -0
  197. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts.map +1 -0
  198. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts +5 -3
  199. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts.map +1 -1
  200. package/libs/feature/search/src/lib/utils/service/fields.d.ts +21 -0
  201. package/libs/feature/search/src/lib/utils/service/fields.d.ts.map +1 -1
  202. package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
  203. package/libs/ui/dataviz/src/lib/chart/chart.component.d.ts +2 -1
  204. package/libs/ui/dataviz/src/lib/chart/chart.component.d.ts.map +1 -1
  205. package/libs/ui/dataviz/src/lib/data-table/data-table.component.d.ts +6 -1
  206. package/libs/ui/dataviz/src/lib/data-table/data-table.component.d.ts.map +1 -1
  207. package/libs/ui/elements/src/index.d.ts +4 -0
  208. package/libs/ui/elements/src/index.d.ts.map +1 -1
  209. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +1 -1
  210. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
  211. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +7 -1
  212. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts.map +1 -1
  213. package/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.d.ts +15 -0
  214. package/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.d.ts.map +1 -0
  215. package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts +3 -7
  216. package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts.map +1 -1
  217. package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts +13 -0
  218. package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts.map +1 -0
  219. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +1 -1
  220. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
  221. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +2 -2
  222. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
  223. package/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.d.ts +16 -0
  224. package/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.d.ts.map +1 -0
  225. package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts +8 -1
  226. package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts.map +1 -1
  227. package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts +31 -0
  228. package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts.map +1 -0
  229. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +4 -1
  230. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  231. package/libs/ui/inputs/src/index.d.ts +2 -0
  232. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  233. package/libs/ui/inputs/src/lib/button/button.component.d.ts +1 -1
  234. package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
  235. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts +14 -0
  236. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts.map +1 -0
  237. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts +6 -0
  238. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts.map +1 -0
  239. package/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.d.ts +17 -0
  240. package/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.d.ts.map +1 -0
  241. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +25 -24
  242. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  243. package/libs/ui/layout/src/index.d.ts +1 -0
  244. package/libs/ui/layout/src/index.d.ts.map +1 -1
  245. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +9 -2
  246. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -1
  247. package/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.d.ts +15 -8
  248. package/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.d.ts.map +1 -1
  249. package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts +2 -0
  250. package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts.map +1 -1
  251. package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts +27 -0
  252. package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts.map +1 -0
  253. package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
  254. package/libs/ui/map/src/index.d.ts +1 -0
  255. package/libs/ui/map/src/index.d.ts.map +1 -1
  256. package/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.d.ts +6 -2
  257. package/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.d.ts.map +1 -1
  258. package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts +15 -0
  259. package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts.map +1 -0
  260. package/libs/ui/search/src/index.d.ts +2 -0
  261. package/libs/ui/search/src/index.d.ts.map +1 -1
  262. package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts +17 -0
  263. package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts.map +1 -0
  264. package/libs/ui/search/src/lib/results-list/results-list.component.d.ts.map +1 -1
  265. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +3 -3
  266. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -1
  267. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +5 -1
  268. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  269. package/libs/ui/search/src/lib/ui-search.module.d.ts +22 -19
  270. package/libs/ui/search/src/lib/ui-search.module.d.ts.map +1 -1
  271. package/libs/util/app-config/src/lib/app-config.d.ts.map +1 -1
  272. package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
  273. package/libs/util/i18n/src/lib/i18n.constants.d.ts +1 -0
  274. package/libs/util/i18n/src/lib/i18n.constants.d.ts.map +1 -1
  275. package/libs/util/i18n/src/lib/language-codes.d.ts +23 -1
  276. package/libs/util/i18n/src/lib/language-codes.d.ts.map +1 -1
  277. package/libs/util/shared/src/index.d.ts +1 -0
  278. package/libs/util/shared/src/index.d.ts.map +1 -1
  279. package/libs/util/shared/src/lib/gn-ui-version.d.ts +3 -0
  280. package/libs/util/shared/src/lib/gn-ui-version.d.ts.map +1 -0
  281. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts +3 -3
  282. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts.map +1 -1
  283. package/libs/util/shared/src/lib/links/link-utils.d.ts +14 -7
  284. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  285. package/package.json +2 -2
  286. package/src/libs/api/metadata-converter/src/index.ts +1 -0
  287. package/src/libs/api/metadata-converter/src/lib/base.converter.ts +1 -4
  288. package/src/libs/api/metadata-converter/src/lib/common/distribution.mapper.ts +1 -0
  289. package/src/libs/api/metadata-converter/src/lib/common/resource-types.ts +29 -15
  290. package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.service+eaux-usees.ts +2 -2
  291. package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +3 -3
  292. package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +2 -2
  293. package/src/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.service+napitswallonia.ts +2 -2
  294. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +57 -6
  295. package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +0 -1
  296. package/src/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.ts +13 -3
  297. package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +5 -1
  298. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +10 -6
  299. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +7 -4
  300. package/src/libs/api/repository/src/lib/gn4/elasticsearch/constant.ts +1 -0
  301. package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +3 -11
  302. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +66 -7
  303. package/src/libs/api/repository/src/lib/gn4/gn4.provider.ts +6 -0
  304. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +11 -4
  305. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +3 -0
  306. package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +36 -26
  307. package/src/libs/common/fixtures/src/lib/link.fixtures.ts +16 -2
  308. package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +5 -5
  309. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +1 -1
  310. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.html +12 -9
  311. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +54 -10
  312. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +37 -0
  313. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.html +1 -0
  314. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +27 -1
  315. package/src/libs/feature/editor/src/index.ts +1 -0
  316. package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.html +120 -0
  317. package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.ts +325 -0
  318. package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +1 -2
  319. package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +2 -2
  320. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +2 -2
  321. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +2 -2
  322. package/src/libs/feature/record/src/index.ts +1 -3
  323. package/src/libs/feature/record/src/lib/data-view/data-view.component.html +16 -10
  324. package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +2 -3
  325. package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +1 -1
  326. package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +4 -5
  327. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.html +2 -2
  328. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +1 -0
  329. package/src/libs/feature/record/src/lib/map-view/map-view.component.html +25 -16
  330. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +35 -4
  331. package/src/libs/feature/record/src/lib/record-meta/record-meta.component.ts +2 -2
  332. package/src/libs/feature/record/src/lib/state/mdview.actions.ts +10 -0
  333. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +27 -3
  334. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +21 -17
  335. package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +12 -0
  336. package/src/libs/feature/record/src/lib/state/mdview.selectors.ts +9 -0
  337. package/src/libs/feature/router/src/lib/default/constants.ts +2 -0
  338. package/src/libs/feature/router/src/lib/default/router.config.ts +2 -0
  339. package/src/libs/feature/router/src/lib/default/router.service.ts +10 -0
  340. package/src/libs/feature/router/src/lib/default/state/router.facade.ts +10 -1
  341. package/src/libs/feature/search/src/index.ts +1 -1
  342. package/src/libs/feature/search/src/lib/constants.ts +1 -0
  343. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +2 -2
  344. package/src/libs/feature/search/src/lib/feature-search.module.ts +9 -10
  345. package/src/libs/feature/search/src/lib/record-url.token.ts +10 -1
  346. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.css +0 -0
  347. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.html +16 -0
  348. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.ts +59 -0
  349. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.html +1 -0
  350. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +26 -5
  351. package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +4 -5
  352. package/src/libs/feature/search/src/lib/utils/service/fields.ts +99 -0
  353. package/src/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.html +1 -1
  354. package/src/libs/ui/dataviz/src/lib/chart/chart.component.ts +2 -1
  355. package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.html +6 -3
  356. package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.ts +5 -4
  357. package/src/libs/ui/elements/src/index.ts +4 -0
  358. package/src/libs/ui/elements/src/lib/api-card/api-card.component.html +4 -4
  359. package/src/libs/ui/elements/src/lib/download-item/download-item.component.html +8 -5
  360. package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +2 -2
  361. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.html +38 -7
  362. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +29 -2
  363. package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.css +4 -0
  364. package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.html +13 -0
  365. package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.ts +54 -0
  366. package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +1 -1
  367. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.html +133 -138
  368. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.ts +19 -47
  369. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.css +6 -0
  370. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.html +11 -0
  371. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.ts +70 -0
  372. package/src/libs/ui/elements/src/lib/link-card/link-card.component.html +5 -2
  373. package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +3 -7
  374. package/src/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.html +3 -5
  375. package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +12 -9
  376. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.css +9 -0
  377. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +24 -7
  378. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +12 -4
  379. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +2 -3
  380. package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.html +48 -0
  381. package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.ts +52 -0
  382. package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.html +8 -29
  383. package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.ts +14 -1
  384. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.css +0 -0
  385. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.html +110 -0
  386. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.ts +191 -0
  387. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +9 -1
  388. package/src/libs/ui/inputs/src/index.ts +2 -0
  389. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +1 -1
  390. package/src/libs/ui/inputs/src/lib/button/button.component.ts +2 -2
  391. package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.html +1 -1
  392. package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html +1 -1
  393. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.html +23 -0
  394. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.ts +44 -0
  395. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.ts +5 -0
  396. package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.css +0 -0
  397. package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.html +43 -0
  398. package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.ts +77 -0
  399. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +3 -4
  400. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -3
  401. package/src/libs/ui/layout/src/index.ts +1 -0
  402. package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +22 -0
  403. package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +2 -2
  404. package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +43 -5
  405. package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +0 -1
  406. package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +1 -1
  407. package/src/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.html +24 -8
  408. package/src/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.ts +36 -10
  409. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +4 -7
  410. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts +13 -0
  411. package/src/libs/ui/layout/src/lib/max-lines/max-lines.component.html +1 -1
  412. package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.html +17 -5
  413. package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.ts +3 -3
  414. package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.html +44 -0
  415. package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.ts +130 -0
  416. package/src/libs/ui/layout/src/lib/ui-layout.module.ts +1 -5
  417. package/src/libs/ui/map/src/index.ts +1 -0
  418. package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.html +3 -3
  419. package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.ts +27 -3
  420. package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.css +0 -0
  421. package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.html +4 -0
  422. package/src/libs/{feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.ts → ui/map/src/lib/components/spatial-extent/spatial-extent.component.ts} +8 -8
  423. package/src/libs/ui/search/src/index.ts +2 -0
  424. package/src/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.html +9 -81
  425. package/src/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.html +1 -1
  426. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html +25 -0
  427. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.ts +53 -0
  428. package/src/libs/ui/search/src/lib/results-list/results-layout.config.ts +2 -2
  429. package/src/libs/ui/search/src/lib/results-list/results-list.component.html +1 -0
  430. package/src/libs/ui/search/src/lib/results-list/results-list.component.ts +0 -1
  431. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +11 -3
  432. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +14 -11
  433. package/src/libs/ui/search/src/lib/results-table/results-table.component.css +4 -0
  434. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +29 -16
  435. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +22 -11
  436. package/src/libs/ui/search/src/lib/ui-search.module.ts +8 -0
  437. package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.html +2 -1
  438. package/src/libs/util/app-config/src/lib/app-config.ts +1 -0
  439. package/src/libs/util/app-config/src/lib/fixtures.ts +1 -0
  440. package/src/libs/util/i18n/src/lib/i18n.constants.ts +42 -0
  441. package/src/libs/util/i18n/src/lib/language-codes.ts +23 -1
  442. package/src/libs/util/shared/src/index.ts +1 -0
  443. package/src/libs/util/shared/src/lib/gn-ui-version.ts +8 -0
  444. package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +15 -3
  445. package/src/libs/util/shared/src/lib/links/link-utils.ts +33 -12
  446. package/tailwind.base.config.js +3 -0
  447. package/tailwind.base.css +5 -17
  448. package/translations/de.json +64 -7
  449. package/translations/en.json +66 -9
  450. package/translations/es.json +63 -6
  451. package/translations/fr.json +65 -8
  452. package/translations/it.json +70 -13
  453. package/translations/nl.json +63 -6
  454. package/translations/pt.json +63 -6
  455. package/translations/sk.json +63 -6
  456. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +0 -79
  457. package/esm2022/libs/feature/record/src/lib/gn-ui-version.token.mjs +0 -3
  458. package/esm2022/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.mjs +0 -18
  459. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +0 -15
  460. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts.map +0 -1
  461. package/libs/feature/record/src/lib/gn-ui-version.token.d.ts +0 -3
  462. package/libs/feature/record/src/lib/gn-ui-version.token.d.ts.map +0 -1
  463. package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts +0 -9
  464. package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts.map +0 -1
  465. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +0 -1
  466. package/src/libs/feature/record/src/lib/gn-ui-version.token.ts +0 -3
  467. package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.html +0 -4
  468. package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.ts +0 -10
  469. /package/src/libs/feature/editor/src/lib/components/{record-form/form-field/form-field-map-container/form-field-map-container.component.css → multilingual-panel/multilingual-panel.component.css} +0 -0
@@ -15,6 +15,7 @@ export * from './lib/dropdown-selector/dropdown-selector.model'
15
15
  export * from './lib/editable-label/editable-label.directive'
16
16
  export * from './lib/file-input/file-input.component'
17
17
  export * from './lib/files-drop/files-drop.directive'
18
+ export * from './lib/inline-filter/inline-filter.component'
18
19
  export * from './lib/search-input/search-input.component'
19
20
  export * from './lib/star-toggle/star-toggle.component'
20
21
  export * from './lib/switch-toggle/switch-toggle.component'
@@ -23,3 +24,4 @@ export * from './lib/text-input/text-input.component'
23
24
  export * from './lib/ui-inputs.module'
24
25
  export * from './lib/url-input/url-input.component'
25
26
  export * from './lib/viewport-intersector/viewport-intersector.component'
27
+ export * from './lib/search-feature-catalog/search-feature-catalog.component'
@@ -79,7 +79,7 @@
79
79
  <mat-option
80
80
  *ngFor="let suggestion of suggestions$ | async"
81
81
  [value]="suggestion"
82
- class="p-2 suggestion"
82
+ class="p-2 suggestion text-start"
83
83
  >
84
84
  {{ displayWithFnInternal(suggestion) }}
85
85
  </mat-option>
@@ -56,14 +56,14 @@ export class ButtonComponent {
56
56
 
57
57
  @Input() disabled = false
58
58
  @Input() extraClass = ''
59
- @Output() buttonClick = new EventEmitter<void>()
59
+ @Output() buttonClick = new EventEmitter<Event>()
60
60
 
61
61
  get classList() {
62
62
  return `${this.btnClass} ${this.extraClass}`
63
63
  }
64
64
 
65
65
  handleClick(event: MouseEvent) {
66
- this.buttonClick.emit()
66
+ this.buttonClick.emit(event)
67
67
  event.preventDefault()
68
68
  ;(event.currentTarget as HTMLElement).blur()
69
69
  propagateToDocumentOnly(event)
@@ -59,7 +59,7 @@
59
59
  #overlayContainer
60
60
  >
61
61
  <div
62
- class="border border-gray-300 rounded mb-2 mx-2 min-h-[44px] flex flex-row flex-wrap p-2 focus-within:rounded focus-within:border-2 focus-within:border-primary"
62
+ class="border border-gray-300 rounded mb-2 mx-2 min-h-[44px] flex flex-row gap-[2px] flex-wrap p-2 focus-within:rounded focus-within:border-2 focus-within:border-primary"
63
63
  >
64
64
  <button
65
65
  type="button"
@@ -19,7 +19,7 @@
19
19
  (keydown)="handleTriggerKeydown($event)"
20
20
  [disabled]="disabled"
21
21
  >
22
- <div class="grow font-medium truncate py-1 mr-2 text-left">
22
+ <div class="grow truncate py-1 mr-2 text-left">
23
23
  {{ getChoiceLabel() | translate }}
24
24
  </div>
25
25
  <ng-icon
@@ -0,0 +1,23 @@
1
+ <ul class="flex flex-wrap list-none gap-2">
2
+ <li *ngFor="let choice of choices">
3
+ <label
4
+ class=""
5
+ [ngClass]="{
6
+ selected: isSelected(choice),
7
+ }"
8
+ >
9
+ <input
10
+ class="hidden"
11
+ type="checkbox"
12
+ #checkBox
13
+ [checked]="isSelected(choice)"
14
+ (change)="select(choice, checkBox.checked)"
15
+ [attr.data-cy]="'inlineFilter-' + choice.value"
16
+ />
17
+ <ng-container
18
+ *ngTemplateOutlet="itemTemplate; context: { $implicit: choice }"
19
+ >
20
+ </ng-container>
21
+ </label>
22
+ </li>
23
+ </ul>
@@ -0,0 +1,44 @@
1
+ import {
2
+ Component,
3
+ ContentChild,
4
+ EventEmitter,
5
+ Input,
6
+ Output,
7
+ TemplateRef,
8
+ } from '@angular/core'
9
+ import { Choice } from './inline-filter.model'
10
+
11
+ @Component({
12
+ selector: 'gn-ui-inline-filter',
13
+ templateUrl: './inline-filter.component.html',
14
+ })
15
+ export class InlineFilterComponent {
16
+ @Input() choices: Choice[]
17
+ @Input() selected: unknown[] = []
18
+
19
+ @Output() selectValues = new EventEmitter<unknown[]>()
20
+
21
+ @ContentChild(TemplateRef) itemTemplate: TemplateRef<any>
22
+
23
+ isSelected(choice: Choice) {
24
+ return (
25
+ this.selected.indexOf(choice.value) > -1 ||
26
+ (this.selected.length === 0 && choice.value === 'all')
27
+ )
28
+ }
29
+
30
+ select(choice: Choice, selected: boolean) {
31
+ if (choice.value === 'all' && selected) {
32
+ this.selected = [choice.value]
33
+ } else {
34
+ this.selected = selected
35
+ ? [...this.selected.filter((v) => v !== choice.value), choice.value]
36
+ : this.selected.filter((v) => v !== choice.value)
37
+
38
+ // If any value selected, unselect all
39
+ this.selected = this.selected.filter((v) => v !== 'all')
40
+ }
41
+
42
+ this.selectValues.emit(this.selected)
43
+ }
44
+ }
@@ -0,0 +1,5 @@
1
+ export interface Choice {
2
+ value: unknown
3
+ label: string
4
+ icon?: string
5
+ }
@@ -0,0 +1,43 @@
1
+ <div
2
+ class="flex items-center justify-between p-3 mt-8 bg-white rounded-lg border-b solid border-gray-300"
3
+ >
4
+ <div
5
+ class="relative shrink-0"
6
+ *ngIf="featureCatalog?.featureTypes?.length > 1"
7
+ >
8
+ <input
9
+ type="text"
10
+ [placeholder]="'search.filter.into.feature.catalog' | translate"
11
+ class="w-[220px] h-8 pl-3 pr-10 py-2 border rounded-md"
12
+ [(ngModel)]="searchTerm"
13
+ (ngModelChange)="filterAction(searchTerm)"
14
+ />
15
+ <ng-icon
16
+ class="absolute right-2.5 top-1 w-6 h-6 text-black"
17
+ name="iconoirSearch"
18
+ ></ng-icon>
19
+ </div>
20
+ <div class="text-sm px-1 ml-auto hidden sm:inline">
21
+ <ng-container *ngIf="featureCatalog?.featureTypes?.length > 1">
22
+ <span
23
+ class="text-sm font-medium text-gray-900"
24
+ data-cy="total-objects-label"
25
+ translate
26
+ >record.feature.catalog.number.total.object</span
27
+ ><span
28
+ class="text-sm font-bold px-1 text-gray-900"
29
+ data-cy="total-objects"
30
+ >{{ totalObjects }}</span
31
+ >
32
+ <span class="px-1.5">|</span>
33
+ </ng-container>
34
+ <span
35
+ class="text-sm font-medium px-1 text-gray-900"
36
+ data-cy="total-attributes-label"
37
+ translate
38
+ >record.feature.catalog.number.total.attribute</span
39
+ ><span class="text-sm font-bold text-gray-900" data-cy="total-attributes">{{
40
+ totalAttributes
41
+ }}</span>
42
+ </div>
43
+ </div>
@@ -0,0 +1,77 @@
1
+ import { Component, Input, Output, EventEmitter } from '@angular/core'
2
+ import { CommonModule } from '@angular/common'
3
+ import { TranslateModule } from '@ngx-translate/core'
4
+ import { NgIcon, provideIcons, provideNgIconsConfig } from '@ng-icons/core'
5
+ import { DatasetFeatureCatalog } from '../../../../../../libs/common/domain/src/lib/model/record'
6
+ import { FormsModule } from '@angular/forms'
7
+ import { of } from 'rxjs'
8
+ import { debounceTime, distinctUntilChanged, tap } from 'rxjs/operators'
9
+ import { createFuzzyFilter } from '../../../../../../libs/util/shared/src'
10
+ import { iconoirSearch } from '@ng-icons/iconoir'
11
+
12
+ @Component({
13
+ selector: 'gn-ui-search-feature-catalog',
14
+ templateUrl: './search-feature-catalog.component.html',
15
+ styleUrls: ['./search-feature-catalog.component.css'],
16
+ standalone: true,
17
+ imports: [CommonModule, NgIcon, TranslateModule, FormsModule],
18
+ viewProviders: [
19
+ provideIcons({ iconoirSearch }),
20
+ provideNgIconsConfig({
21
+ size: '1.5rem',
22
+ }),
23
+ ],
24
+ })
25
+ export class SearchFeatureCatalogComponent {
26
+ private _featureCatalog: DatasetFeatureCatalog
27
+ searchTerm: any
28
+ @Input() set featureCatalog(value: DatasetFeatureCatalog) {
29
+ this._featureCatalog = value
30
+ this.filteredFeatureCatalog = value
31
+ }
32
+ get featureCatalog(): DatasetFeatureCatalog {
33
+ return this._featureCatalog
34
+ }
35
+
36
+ @Output() filteredFeatureCatalogChange =
37
+ new EventEmitter<DatasetFeatureCatalog>()
38
+ filteredFeatureCatalog: DatasetFeatureCatalog
39
+
40
+ filterAction = (searchTerm: string): void => {
41
+ of(searchTerm)
42
+ .pipe(
43
+ debounceTime(300),
44
+ distinctUntilChanged(),
45
+ tap(() => {
46
+ const filtered = (this.featureCatalog?.featureTypes || []).filter(
47
+ (featureType) => {
48
+ const fuzzyFilter = createFuzzyFilter(searchTerm)
49
+ return (
50
+ fuzzyFilter(featureType.name) ||
51
+ (featureType.definition && fuzzyFilter(featureType.definition))
52
+ )
53
+ }
54
+ )
55
+ this.filteredFeatureCatalog = {
56
+ ...this.featureCatalog,
57
+ featureTypes: filtered,
58
+ }
59
+ this.filteredFeatureCatalogChange.emit(this.filteredFeatureCatalog)
60
+ })
61
+ )
62
+ .subscribe()
63
+ }
64
+
65
+ get totalObjects(): number {
66
+ return this.filteredFeatureCatalog?.featureTypes?.length || 0
67
+ }
68
+
69
+ get totalAttributes(): number {
70
+ return (
71
+ this.filteredFeatureCatalog?.featureTypes?.reduce(
72
+ (total, featureType) => total + (featureType.attributes?.length || 0),
73
+ 0
74
+ ) || 0
75
+ )
76
+ }
77
+ }
@@ -1,13 +1,12 @@
1
- <div class="inline-block relative align-middle" style="line-height: 0.7em">
1
+ <div class="inline-block relative align-middle">
2
2
  <gn-ui-button
3
3
  [type]="'outline'"
4
- class="-m-[8px] p-[8px]"
4
+ [disabled]="disabled"
5
5
  (buttonClick)="toggle($event)"
6
6
  [ngClass]="{
7
7
  enabled: toggled,
8
- disabled: !toggled,
8
+ disabled: !toggled || disabled,
9
9
  'transition hover:scale-125 will-change-transform': !disabled,
10
- 'cursor-default': disabled,
11
10
  }"
12
11
  >
13
12
  <ng-icon [name]="toggled ? 'matStar' : 'matStarBorder'"></ng-icon>
@@ -33,6 +33,7 @@ import { DragAndDropFileInputComponent } from './drag-and-drop-file-input/drag-a
33
33
  import { DropdownMultiselectComponent } from './dropdown-multiselect/dropdown-multiselect.component'
34
34
  import { DropdownSelectorComponent } from './dropdown-selector/dropdown-selector.component'
35
35
  import { EditableLabelDirective } from './editable-label/editable-label.directive'
36
+ import { InlineFilterComponent } from './inline-filter/inline-filter.component'
36
37
  import { TextAreaComponent } from './text-area/text-area.component'
37
38
  import { ViewportIntersectorComponent } from './viewport-intersector/viewport-intersector.component'
38
39
 
@@ -42,6 +43,7 @@ import { ViewportIntersectorComponent } from './viewport-intersector/viewport-in
42
43
  DropdownMultiselectComponent,
43
44
  ViewportIntersectorComponent,
44
45
  CheckboxComponent,
46
+ InlineFilterComponent,
45
47
  ],
46
48
  imports: [
47
49
  CommonModule,
@@ -75,9 +77,6 @@ import { ViewportIntersectorComponent } from './viewport-intersector/viewport-in
75
77
  matExpandMore,
76
78
  matExpandLess,
77
79
  }),
78
- provideNgIconsConfig({
79
- size: '0.9em',
80
- }),
81
80
  ],
82
81
  exports: [
83
82
  DropdownSelectorComponent,
@@ -90,6 +89,7 @@ import { ViewportIntersectorComponent } from './viewport-intersector/viewport-in
90
89
  CheckboxComponent,
91
90
  DateRangePickerComponent,
92
91
  EditableLabelDirective,
92
+ InlineFilterComponent,
93
93
  BadgeComponent,
94
94
  ],
95
95
  })
@@ -16,3 +16,4 @@ export * from './lib/pagination-dots/pagination-dots.component'
16
16
  export * from './lib/previous-next-buttons/previous-next-buttons.component'
17
17
  export * from './lib/paginable.interface'
18
18
  export * from './lib/ui-layout.module'
19
+ export * from './lib/truncated-text/truncated-text.component'
@@ -5,3 +5,25 @@
5
5
  :host {
6
6
  position: relative;
7
7
  }
8
+
9
+ @media screen and (min-width: 769px) {
10
+ .size-L {
11
+ grid-template-columns: repeat(1, minmax(0, 1fr));
12
+ grid-auto-rows: minmax(0, min-content);
13
+ }
14
+
15
+ .size-M {
16
+ grid-template-columns: repeat(2, minmax(0, 1fr));
17
+ grid-auto-rows: minmax(0, min-content);
18
+ }
19
+
20
+ .size-S {
21
+ grid-template-columns: repeat(3, minmax(0, 1fr));
22
+ grid-auto-rows: minmax(0, min-content);
23
+ }
24
+
25
+ .size-XS {
26
+ grid-template-columns: repeat(2, minmax(0, 1fr));
27
+ grid-auto-rows: minmax(0, min-content);
28
+ }
29
+ }
@@ -1,7 +1,7 @@
1
1
  <div
2
- class="block-list-container flex flex-col"
2
+ class="grid gap-4 w-full md:grid-cols-2"
3
3
  #blockContainer
4
- [ngClass]="containerClass"
4
+ [ngClass]="[containerClass, 'size-' + subComponentSize]"
5
5
  [ngStyle]="{ minHeight: minHeight + 'px' }"
6
6
  >
7
7
  <ng-content></ng-content>
@@ -5,7 +5,9 @@ import {
5
5
  Component,
6
6
  ContentChildren,
7
7
  ElementRef,
8
+ EventEmitter,
8
9
  Input,
10
+ Output,
9
11
  QueryList,
10
12
  ViewChild,
11
13
  } from '@angular/core'
@@ -13,6 +15,7 @@ import { CommonModule } from '@angular/common'
13
15
  import { Paginable } from '../paginable.interface'
14
16
  import { PaginationDotsComponent } from '../pagination-dots/pagination-dots.component'
15
17
 
18
+ type ComponentSize = 'L' | 'M' | 'S' | 'XS'
16
19
  @Component({
17
20
  selector: 'gn-ui-block-list',
18
21
  templateUrl: './block-list.component.html',
@@ -22,15 +25,16 @@ import { PaginationDotsComponent } from '../pagination-dots/pagination-dots.comp
22
25
  imports: [CommonModule, PaginationDotsComponent],
23
26
  })
24
27
  export class BlockListComponent implements AfterViewInit, Paginable {
25
- @Input() pageSize = 5
28
+ pageSize = 4
26
29
  @Input() containerClass = ''
27
30
  @Input() paginationContainerClass = 'w-full bottom-0 top-auto'
28
31
  @ContentChildren('block', { read: ElementRef }) blocks: QueryList<
29
32
  ElementRef<HTMLElement>
30
33
  >
31
34
  @ViewChild('blockContainer') blockContainer: ElementRef<HTMLElement>
32
-
33
35
  protected minHeight = 0
36
+ @Output() listChanges = new EventEmitter<BlockListComponent>()
37
+ subComponentSize: ComponentSize = 'M'
34
38
 
35
39
  protected currentPage_ = 0
36
40
  protected get pages() {
@@ -47,18 +51,26 @@ export class BlockListComponent implements AfterViewInit, Paginable {
47
51
  return this.blocks ? Math.ceil(this.blocks.length / this.pageSize) : 1
48
52
  }
49
53
  get currentPage() {
50
- return this.currentPage_ + 1 // this is 1-based
54
+ return this.currentPage_ + 1
51
55
  }
52
56
 
53
57
  constructor(private changeDetector: ChangeDetectorRef) {}
54
58
 
55
59
  ngAfterViewInit() {
56
- this.blocks.changes.subscribe(this.refreshBlocksVisibility)
60
+ this.blocks.changes.subscribe(() => {
61
+ this.updateSizes()
62
+ this.refreshBlocksVisibility()
63
+ this.goToPage(1)
64
+ this.changeDetector.detectChanges()
65
+ this.listChanges.emit(this)
66
+ })
67
+ this.updateSizes()
57
68
  this.refreshBlocksVisibility()
58
69
 
59
70
  // we store the first height as the min-height of the list container
60
71
  this.minHeight = this.blockContainer.nativeElement.clientHeight
61
72
  this.changeDetector.detectChanges()
73
+ this.listChanges.emit(this)
62
74
  }
63
75
 
64
76
  protected refreshBlocksVisibility = () => {
@@ -71,7 +83,33 @@ export class BlockListComponent implements AfterViewInit, Paginable {
71
83
  })
72
84
  }
73
85
 
74
- // pageIndex is 1-based
86
+ protected updateSizes() {
87
+ this.subComponentSize = this.computeSubComponentSize()
88
+ this.pageSize = this.computePageSize()
89
+ }
90
+
91
+ protected computeSubComponentSize(): ComponentSize {
92
+ if (!this.blocks) return 'M'
93
+ const subComponentsCount = this.blocks.length
94
+ if (subComponentsCount <= 3) return 'L'
95
+ if (subComponentsCount <= 12) return 'M'
96
+ if (subComponentsCount <= 18) return 'S'
97
+ return 'XS'
98
+ }
99
+
100
+ protected computePageSize(): number {
101
+ switch (this.subComponentSize) {
102
+ case 'L':
103
+ return 3
104
+ case 'S':
105
+ return 6
106
+ case 'XS':
107
+ return 8
108
+ default:
109
+ return 4
110
+ }
111
+ }
112
+
75
113
  public goToPage(pageIndex: number) {
76
114
  this.currentPage_ = Math.max(
77
115
  Math.min(pageIndex - 1, this.pagesCount - 1),
@@ -1,4 +1,3 @@
1
1
  :host {
2
2
  position: relative;
3
- display: block;
4
3
  }
@@ -1,4 +1,4 @@
1
- <div #carouselOverflowContainer class="w-full">
1
+ <div #carouselOverflowContainer class="w-full block">
2
2
  <div class="carousel-container flex" [ngClass]="containerClass">
3
3
  <ng-content></ng-content>
4
4
  </div>
@@ -1,22 +1,38 @@
1
1
  <div
2
- class="group flex align-middle title border-b border-gray-100 cursor-pointer pt-2.5"
2
+ class="group flex items-center justify-between title border-b border-gray-100 cursor-pointer"
3
3
  (click)="toggle()"
4
+ data-cy="expandable-panel-header"
4
5
  >
5
- <div class="grow font-medium text-black text-sm">
6
- {{ title }}
6
+ <div class="grow py-2.5">
7
+ <ng-container *ngIf="titleTemplate; else simpleTitle">
8
+ <div data-cy="expandable-panel-custom-title">
9
+ <ng-container *ngTemplateOutlet="titleTemplate"></ng-container>
10
+ </div>
11
+ </ng-container>
12
+ <ng-template #simpleTitle>
13
+ <div
14
+ class="font-medium text-black text-sm"
15
+ data-cy="expandable-panel-title"
16
+ >
17
+ {{ title }}
18
+ </div>
19
+ </ng-template>
7
20
  </div>
8
21
  <div
9
- class="w-8 opacity-25 text-primary group-hover:opacity-100 transition-opacity"
22
+ class="w-8 opacity-25 text-primary group-hover:opacity-100 transition-opacity flex items-center shrink-0"
10
23
  >
11
- <ng-icon name="matAdd" *ngIf="collapsed"></ng-icon>
12
- <ng-icon name="matRemove" *ngIf="!collapsed"></ng-icon>
24
+ <ng-icon
25
+ [name]="collapsed ? 'matAdd' : 'matRemove'"
26
+ [style.color]="iconColor"
27
+ ></ng-icon>
13
28
  </div>
14
29
  </div>
15
30
  <div
16
- class="content overflow-hidden transition-[max-height] duration-300"
31
+ class="content overflow-hidden transition-all duration-300"
17
32
  [ngClass]="collapsed ? 'ease-out' : 'ease-in'"
18
- [style.maxHeight]="maxHeight"
19
33
  #contentDiv
34
+ *ngIf="!collapsed"
35
+ data-cy="expandable-panel-content"
20
36
  >
21
37
  <ng-content></ng-content>
22
38
  </div>
@@ -1,9 +1,14 @@
1
1
  import {
2
2
  ChangeDetectionStrategy,
3
3
  Component,
4
+ ContentChild,
4
5
  ElementRef,
5
6
  Input,
7
+ TemplateRef,
6
8
  ViewChild,
9
+ OnDestroy,
10
+ ChangeDetectorRef,
11
+ AfterViewInit,
7
12
  } from '@angular/core'
8
13
  import { NgIcon, provideIcons } from '@ng-icons/core'
9
14
  import { CommonModule } from '@angular/common'
@@ -18,20 +23,41 @@ import { matAdd, matRemove } from '@ng-icons/material-icons/baseline'
18
23
  imports: [CommonModule, NgIcon],
19
24
  viewProviders: [provideIcons({ matAdd, matRemove })],
20
25
  })
21
- export class ExpandablePanelComponent {
22
- @Input() title: string
23
- @Input() collapsed = true
24
- @ViewChild('contentDiv') contentDiv: ElementRef
25
- maxHeight = this.setMaxHeight()
26
+ export class ExpandablePanelComponent implements AfterViewInit, OnDestroy {
27
+ @Input() title?: string
28
+ @Input() iconColor? = ''
29
+ @ContentChild('titleTemplate') titleTemplate?: TemplateRef<HTMLElement>
30
+ @ViewChild('contentDiv') contentDiv?: ElementRef
31
+
32
+ private _collapsed = true
33
+ private contentObserver?: ResizeObserver
34
+
35
+ constructor(private readonly changeDetector: ChangeDetectorRef) {}
36
+
37
+ ngAfterViewInit() {
38
+ if (this.contentDiv) {
39
+ this.contentObserver = new ResizeObserver(() => {
40
+ this.changeDetector.detectChanges()
41
+ })
42
+ this.contentObserver.observe(this.contentDiv.nativeElement)
43
+ }
44
+ }
45
+
46
+ @Input() set collapsed(value: boolean) {
47
+ this._collapsed = value
48
+ }
49
+
50
+ get collapsed(): boolean {
51
+ return this._collapsed
52
+ }
26
53
 
27
54
  toggle(): void {
28
55
  this.collapsed = !this.collapsed
29
- this.maxHeight = this.setMaxHeight()
30
56
  }
31
57
 
32
- setMaxHeight() {
33
- return `${
34
- this.collapsed ? '0' : this.contentDiv.nativeElement.scrollHeight
35
- }px`
58
+ ngOnDestroy() {
59
+ if (this.contentObserver) {
60
+ this.contentObserver.disconnect()
61
+ }
36
62
  }
37
63
  }
@@ -31,11 +31,8 @@
31
31
  *ngFor="let item of items"
32
32
  (click)="handleRowClick(item)"
33
33
  data-cy="table-row"
34
- [title]="
35
- !item.extras?.edit && !isDraftPage
36
- ? ('editor.record.lock.reason' | translate)
37
- : ''
38
- "
34
+ [attr.data-cy-title]="item.title"
35
+ [title]="getItemTitle(item) | translate"
39
36
  >
40
37
  <div
41
38
  class="relative h-0"
@@ -52,9 +49,9 @@
52
49
  class="table-row-cell px-3 py-1.5 flex items-center bg-white transition-colors duration-75 truncate border-b border-gray-200"
53
50
  [ngClass]="{
54
51
  'text-purple-light cursor-default':
55
- !item.extras?.edit && !isDraftPage,
52
+ (!item.extras?.edit && !isDraftPage) || item.kind !== 'dataset',
56
53
  'group-hover:text-main group-hover:bg-gray-50':
57
- item.extras?.edit || isDraftPage,
54
+ (item.extras?.edit || isDraftPage) && item.kind === 'dataset',
58
55
  }"
59
56
  >
60
57
  <ng-container
@@ -12,7 +12,11 @@ import { CommonModule } from '@angular/common'
12
12
  import { NgIconComponent, provideIcons } from '@ng-icons/core'
13
13
  import { iconoirNavArrowDown, iconoirNavArrowUp } from '@ng-icons/iconoir'
14
14
  import { TranslateModule } from '@ngx-translate/core'
15
+ import { marker } from '@biesbjerg/ngx-translate-extract-marker'
16
+ import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
15
17
 
18
+ marker('editor.record.lock.reason')
19
+ marker('editor.record.lock.format')
16
20
  @Component({
17
21
  selector: 'gn-ui-interactive-table',
18
22
  templateUrl: './interactive-table.component.html',
@@ -44,6 +48,15 @@ export class InteractiveTableComponent {
44
48
  }
45
49
  }
46
50
 
51
+ getItemTitle(item: CatalogRecord) {
52
+ if (!item.extras?.edit && !this.isDraftPage && item.kind === 'dataset') {
53
+ return 'editor.record.lock.reason'
54
+ } else if (item.kind !== 'dataset') {
55
+ return 'editor.record.lock.format'
56
+ }
57
+ return ''
58
+ }
59
+
47
60
  handleRowClick(item: unknown) {
48
61
  this.itemClick.emit(item)
49
62
  }
@@ -13,7 +13,7 @@
13
13
  <div
14
14
  *ngIf="showToggleButton"
15
15
  (click)="toggleDisplay()"
16
- class="text-secondary cursor-pointer pt-2.5"
16
+ class="text-primary cursor-pointer pt-2.5"
17
17
  data-cy="readMoreButton"
18
18
  >
19
19
  {{ (isExpanded ? 'ui.readLess' : 'ui.readMore') | translate }}