geonetwork-ui 2.4.0-dev.656babc7 → 2.4.0-dev.71a43b38

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 (260) hide show
  1. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +14 -5
  2. package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.mjs +2 -1
  3. package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.mjs +3 -1
  4. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +2 -2
  5. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +9 -5
  6. package/esm2022/libs/common/domain/src/lib/model/record/organization.model.mjs +1 -1
  7. package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
  8. package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
  9. package/esm2022/libs/data-access/gn4/src/openapi/model/user.api.model.mjs +1 -1
  10. package/esm2022/libs/feature/catalog/src/index.mjs +2 -1
  11. package/esm2022/libs/feature/catalog/src/lib/feature-catalog.module.mjs +1 -1
  12. package/esm2022/libs/feature/catalog/src/lib/organisations/organisations.component.mjs +6 -6
  13. package/esm2022/libs/feature/catalog/src/lib/organization-url.token.mjs +4 -0
  14. package/esm2022/libs/feature/catalog/src/lib/records/records.service.mjs +4 -6
  15. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +4 -4
  16. package/esm2022/libs/feature/dataviz/src/lib/feature-dataviz.module.mjs +7 -4
  17. package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +1 -1
  18. package/esm2022/libs/feature/editor/src/lib/+state/editor.actions.mjs +2 -1
  19. package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +6 -4
  20. package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +2 -1
  21. package/esm2022/libs/feature/editor/src/lib/+state/editor.selectors.mjs +2 -2
  22. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.mjs +16 -44
  23. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +64 -50
  24. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +12 -35
  25. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +5 -5
  26. package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +12 -6
  27. package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +42 -23
  28. package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +13 -5
  29. package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +49 -15
  30. package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +7 -4
  31. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +3 -3
  32. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +8 -12
  33. package/esm2022/libs/feature/router/src/lib/default/constants.mjs +2 -1
  34. package/esm2022/libs/feature/router/src/lib/default/router.config.mjs +1 -1
  35. package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +9 -2
  36. package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +8 -1
  37. package/esm2022/libs/feature/search/src/index.mjs +2 -2
  38. package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +7 -4
  39. package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +3 -3
  40. package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +49 -0
  41. package/esm2022/libs/feature/search/src/lib/state/search.facade.mjs +3 -2
  42. package/esm2022/libs/feature/search/src/lib/state/selectors.mjs +4 -1
  43. package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +7 -3
  44. package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +5 -5
  45. package/esm2022/libs/ui/catalog/src/lib/ui-catalog.module.mjs +5 -2
  46. package/esm2022/libs/ui/dataviz/src/lib/figure/figure.component.mjs +5 -8
  47. package/esm2022/libs/ui/elements/src/index.mjs +1 -2
  48. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +3 -3
  49. package/esm2022/libs/ui/elements/src/lib/error/error.component.mjs +5 -3
  50. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +4 -4
  51. package/esm2022/libs/ui/elements/src/lib/related-record-card/related-record-card.component.mjs +24 -5
  52. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +7 -9
  53. package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +59 -26
  54. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +2 -7
  55. package/esm2022/libs/ui/layout/src/index.mjs +2 -1
  56. package/esm2022/libs/ui/layout/src/lib/max-lines/max-lines.component.mjs +71 -0
  57. package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +1 -1
  58. package/esm2022/libs/ui/search/src/index.mjs +2 -1
  59. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +120 -0
  60. package/esm2022/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.mjs +5 -3
  61. package/esm2022/libs/ui/widgets/src/lib/ui-widgets.module.mjs +1 -6
  62. package/esm2022/translations/de.json +66 -34
  63. package/esm2022/translations/en.json +37 -5
  64. package/esm2022/translations/es.json +37 -5
  65. package/esm2022/translations/fr.json +38 -6
  66. package/esm2022/translations/it.json +37 -5
  67. package/esm2022/translations/nl.json +37 -5
  68. package/esm2022/translations/pt.json +37 -5
  69. package/fesm2022/geonetwork-ui.mjs +1070 -697
  70. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  71. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +1 -0
  72. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  73. package/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.d.ts.map +1 -1
  74. package/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.d.ts.map +1 -1
  75. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +2 -1
  76. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  77. package/libs/common/domain/src/lib/model/record/organization.model.d.ts +1 -0
  78. package/libs/common/domain/src/lib/model/record/organization.model.d.ts.map +1 -1
  79. package/libs/common/domain/src/lib/platform.service.interface.d.ts +2 -1
  80. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  81. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +3 -1
  82. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  83. package/libs/data-access/gn4/src/openapi/model/user.api.model.d.ts +1 -1
  84. package/libs/feature/catalog/src/index.d.ts +1 -0
  85. package/libs/feature/catalog/src/index.d.ts.map +1 -1
  86. package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts.map +1 -1
  87. package/libs/feature/catalog/src/lib/organisations/organisations.component.d.ts.map +1 -1
  88. package/libs/feature/catalog/src/lib/organization-url.token.d.ts +3 -0
  89. package/libs/feature/catalog/src/lib/organization-url.token.d.ts.map +1 -0
  90. package/libs/feature/catalog/src/lib/records/records.service.d.ts.map +1 -1
  91. package/libs/feature/dataviz/src/lib/feature-dataviz.module.d.ts +2 -1
  92. package/libs/feature/dataviz/src/lib/feature-dataviz.module.d.ts.map +1 -1
  93. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts +1 -0
  94. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts.map +1 -1
  95. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts +1 -1
  96. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts.map +1 -1
  97. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +1 -0
  98. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
  99. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts +14 -24
  100. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts.map +1 -1
  101. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts +6 -6
  102. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts.map +1 -1
  103. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +5 -10
  104. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
  105. package/libs/feature/editor/src/lib/services/editor.service.d.ts +1 -1
  106. package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
  107. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +4 -1
  108. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
  109. package/libs/feature/record/src/lib/data-view-share/data-view-share.component.d.ts +4 -1
  110. package/libs/feature/record/src/lib/data-view-share/data-view-share.component.d.ts.map +1 -1
  111. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +4 -1
  112. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts.map +1 -1
  113. package/libs/feature/record/src/lib/feature-record.module.d.ts +2 -1
  114. package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
  115. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  116. package/libs/feature/router/src/lib/default/constants.d.ts +1 -0
  117. package/libs/feature/router/src/lib/default/constants.d.ts.map +1 -1
  118. package/libs/feature/router/src/lib/default/router.config.d.ts +1 -0
  119. package/libs/feature/router/src/lib/default/router.config.d.ts.map +1 -1
  120. package/libs/feature/router/src/lib/default/router.service.d.ts +1 -0
  121. package/libs/feature/router/src/lib/default/router.service.d.ts.map +1 -1
  122. package/libs/feature/router/src/lib/default/state/router.facade.d.ts +1 -0
  123. package/libs/feature/router/src/lib/default/state/router.facade.d.ts.map +1 -1
  124. package/libs/feature/search/src/index.d.ts +1 -1
  125. package/libs/feature/search/src/index.d.ts.map +1 -1
  126. package/libs/feature/search/src/lib/feature-search.module.d.ts +2 -1
  127. package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
  128. package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts.map +1 -1
  129. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +25 -0
  130. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -0
  131. package/libs/feature/search/src/lib/state/search.facade.d.ts +1 -0
  132. package/libs/feature/search/src/lib/state/search.facade.d.ts.map +1 -1
  133. package/libs/feature/search/src/lib/state/selectors.d.ts +1 -0
  134. package/libs/feature/search/src/lib/state/selectors.d.ts.map +1 -1
  135. package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
  136. package/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.d.ts +2 -2
  137. package/libs/ui/catalog/src/lib/ui-catalog.module.d.ts +2 -1
  138. package/libs/ui/catalog/src/lib/ui-catalog.module.d.ts.map +1 -1
  139. package/libs/ui/dataviz/src/lib/figure/figure.component.d.ts +1 -2
  140. package/libs/ui/dataviz/src/lib/figure/figure.component.d.ts.map +1 -1
  141. package/libs/ui/elements/src/index.d.ts +0 -1
  142. package/libs/ui/elements/src/index.d.ts.map +1 -1
  143. package/libs/ui/elements/src/lib/error/error.component.d.ts +3 -1
  144. package/libs/ui/elements/src/lib/error/error.component.d.ts.map +1 -1
  145. package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts +5 -1
  146. package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts.map +1 -1
  147. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +19 -19
  148. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  149. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts +7 -4
  150. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
  151. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +35 -36
  152. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  153. package/libs/ui/layout/src/index.d.ts +1 -0
  154. package/libs/ui/layout/src/index.d.ts.map +1 -1
  155. package/libs/ui/{elements → layout}/src/lib/max-lines/max-lines.component.d.ts +2 -2
  156. package/libs/ui/layout/src/lib/max-lines/max-lines.component.d.ts.map +1 -0
  157. package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
  158. package/libs/ui/search/src/index.d.ts +1 -0
  159. package/libs/ui/search/src/index.d.ts.map +1 -1
  160. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +30 -0
  161. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -0
  162. package/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.d.ts +1 -1
  163. package/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.d.ts.map +1 -1
  164. package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts +10 -11
  165. package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts.map +1 -1
  166. package/package.json +1 -1
  167. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +21 -8
  168. package/src/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.ts +1 -0
  169. package/src/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.ts +3 -1
  170. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +1 -1
  171. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +26 -15
  172. package/src/libs/common/domain/src/lib/model/record/organization.model.ts +1 -0
  173. package/src/libs/common/domain/src/lib/platform.service.interface.ts +5 -1
  174. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +4 -1
  175. package/src/libs/common/fixtures/src/lib/organisations.fixture.ts +28 -0
  176. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +8 -0
  177. package/src/libs/data-access/datafeeder/src/openapi/model/datasetMetadata.api.model.ts +4 -0
  178. package/src/libs/data-access/datafeeder/src/openapi/model/datasetUploadStatus.api.model.ts +2 -0
  179. package/src/libs/data-access/gn4/src/openapi/model/user.api.model.ts +1 -1
  180. package/src/libs/feature/catalog/src/index.ts +1 -0
  181. package/src/libs/feature/catalog/src/lib/feature-catalog.module.ts +0 -1
  182. package/src/libs/feature/catalog/src/lib/organisations/organisations.component.html +1 -1
  183. package/src/libs/feature/catalog/src/lib/organisations/organisations.component.ts +2 -2
  184. package/src/libs/feature/catalog/src/lib/organization-url.token.ts +6 -0
  185. package/src/libs/feature/catalog/src/lib/records/records.service.ts +6 -8
  186. package/src/libs/feature/dataviz/src/lib/feature-dataviz.module.ts +2 -1
  187. package/src/libs/feature/editor/src/lib/+state/editor.actions.ts +2 -0
  188. package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +35 -29
  189. package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +1 -0
  190. package/src/libs/feature/editor/src/lib/+state/editor.selectors.ts +1 -1
  191. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.html +2 -3
  192. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.ts +23 -63
  193. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +95 -86
  194. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +2 -22
  195. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +11 -44
  196. package/src/libs/feature/editor/src/lib/fields.config.ts +4 -4
  197. package/src/libs/feature/editor/src/lib/services/editor.service.ts +20 -6
  198. package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +36 -19
  199. package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +6 -2
  200. package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.ts +11 -0
  201. package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +59 -12
  202. package/src/libs/feature/record/src/lib/feature-record.module.ts +3 -2
  203. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +42 -31
  204. package/src/libs/feature/router/src/lib/default/constants.ts +1 -0
  205. package/src/libs/feature/router/src/lib/default/router.config.ts +1 -0
  206. package/src/libs/feature/router/src/lib/default/router.service.ts +13 -1
  207. package/src/libs/feature/router/src/lib/default/state/router.facade.ts +9 -1
  208. package/src/libs/feature/search/src/index.ts +1 -1
  209. package/src/libs/feature/search/src/lib/feature-search.module.ts +2 -1
  210. package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.ts +2 -2
  211. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +9 -0
  212. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +49 -0
  213. package/src/libs/feature/search/src/lib/state/search.facade.ts +5 -0
  214. package/src/libs/feature/search/src/lib/state/selectors.ts +7 -0
  215. package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +16 -2
  216. package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.html +8 -6
  217. package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.ts +2 -2
  218. package/src/libs/ui/catalog/src/lib/ui-catalog.module.ts +2 -0
  219. package/src/libs/ui/dataviz/src/lib/figure/figure.component.html +11 -3
  220. package/src/libs/ui/dataviz/src/lib/figure/figure.component.ts +3 -7
  221. package/src/libs/ui/elements/src/index.ts +0 -1
  222. package/src/libs/ui/elements/src/lib/api-card/api-card.component.html +29 -29
  223. package/src/libs/ui/elements/src/lib/error/error.component.html +30 -6
  224. package/src/libs/ui/elements/src/lib/error/error.component.ts +2 -0
  225. package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.html +1 -1
  226. package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.ts +22 -1
  227. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +2 -4
  228. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.css +0 -1
  229. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +23 -19
  230. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +79 -27
  231. package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.css +31 -0
  232. package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.html +15 -0
  233. package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.ts +38 -0
  234. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +0 -3
  235. package/src/libs/ui/layout/src/index.ts +1 -0
  236. package/src/libs/ui/{elements → layout}/src/lib/max-lines/max-lines.component.html +1 -0
  237. package/src/libs/ui/{elements → layout}/src/lib/max-lines/max-lines.component.ts +9 -5
  238. package/src/libs/ui/layout/src/lib/ui-layout.module.ts +0 -1
  239. package/src/libs/ui/search/src/index.ts +1 -0
  240. package/src/libs/ui/search/src/lib/results-table/results-table.component.css +0 -0
  241. package/src/libs/{feature → ui}/search/src/lib/results-table/results-table.component.html +8 -8
  242. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +138 -0
  243. package/src/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.ts +4 -0
  244. package/src/libs/ui/widgets/src/lib/ui-widgets.module.ts +0 -3
  245. package/translations/de.json +66 -34
  246. package/translations/en.json +37 -5
  247. package/translations/es.json +37 -5
  248. package/translations/fr.json +38 -6
  249. package/translations/it.json +37 -5
  250. package/translations/nl.json +37 -5
  251. package/translations/pt.json +37 -5
  252. package/translations/sk.json +38 -6
  253. package/esm2022/libs/feature/search/src/lib/results-table/results-table.component.mjs +0 -136
  254. package/esm2022/libs/ui/elements/src/lib/max-lines/max-lines.component.mjs +0 -69
  255. package/libs/feature/search/src/lib/results-table/results-table.component.d.ts +0 -36
  256. package/libs/feature/search/src/lib/results-table/results-table.component.d.ts.map +0 -1
  257. package/libs/ui/elements/src/lib/max-lines/max-lines.component.d.ts.map +0 -1
  258. package/src/libs/feature/search/src/lib/results-table/results-table.component.ts +0 -171
  259. /package/src/libs/feature/search/src/lib/results-table/{results-table.component.css → results-table-container.component.css} +0 -0
  260. /package/src/libs/ui/{elements → layout}/src/lib/max-lines/max-lines.component.css +0 -0
@@ -1,24 +1,17 @@
1
1
  import { CommonModule } from '@angular/common'
2
- import {
3
- ChangeDetectionStrategy,
4
- Component,
5
- EventEmitter,
6
- Input,
7
- OnInit,
8
- Output,
9
- } from '@angular/core'
2
+ import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
10
3
  import { FormControl } from '@angular/forms'
11
- import {
12
- KeywordType,
13
- ThesaurusModel,
14
- } from '../../../../../../../../../libs/common/domain/src/lib/model/thesaurus'
15
4
  import { PlatformServiceInterface } from '../../../../../../../../../libs/common/domain/src/lib/platform.service.interface'
16
5
  import {
6
+ AutocompleteComponent,
17
7
  DropdownSelectorComponent,
18
8
  UiInputsModule,
19
9
  } from '../../../../../../../../../libs/ui/inputs/src'
20
10
  import { UiWidgetsModule } from '../../../../../../../../../libs/ui/widgets/src'
21
- import { Observable, map } from 'rxjs'
11
+ import { map } from 'rxjs'
12
+ import { Keyword } from '../../../../../../../../../libs/common/domain/src/lib/model/record'
13
+
14
+ type AutocompleteItem = { title: string; value: Keyword }
22
15
 
23
16
  @Component({
24
17
  selector: 'gn-ui-form-field-keywords',
@@ -31,69 +24,36 @@ import { Observable, map } from 'rxjs'
31
24
  UiInputsModule,
32
25
  CommonModule,
33
26
  UiWidgetsModule,
27
+ AutocompleteComponent,
34
28
  ],
35
29
  })
36
- export class FormFieldKeywordsComponent implements OnInit {
37
- @Input() control: FormControl<any>
38
- @Output() itemSelected = new EventEmitter<string>()
39
- @Output() inputSubmitted = new EventEmitter<string>()
40
- searchInputValue$: Observable<void | { title: string }>
41
- allThesaurus$: Observable<any[]>
30
+ export class FormFieldKeywordsComponent {
31
+ @Input() control: FormControl<Keyword[]>
42
32
 
43
- displayWithFn = (item) => {
44
- if (item) {
45
- return `${item?.title} (${item?.value?.name})`
46
- }
47
- return null
33
+ displayWithFn = (item: AutocompleteItem) => {
34
+ return `${item.title} (${item.value.thesaurus?.name})`
48
35
  }
49
36
 
50
37
  autoCompleteAction = (query: string) => {
51
- const keywords$ = this.platformService.searchKeywords(query).pipe(
52
- map((thesaurus) =>
53
- thesaurus.map((thes) => {
54
- return { title: thes.label, value: thes.thesaurus }
55
- })
38
+ return this.platformService
39
+ .searchKeywords(query, ['temporal', 'theme', 'other'])
40
+ .pipe(
41
+ map((keywords) =>
42
+ keywords.map((keyword) => {
43
+ return { title: keyword.label, value: keyword }
44
+ })
45
+ )
56
46
  )
57
- )
58
-
59
- return keywords$
60
47
  }
61
48
 
62
49
  constructor(private platformService: PlatformServiceInterface) {}
63
50
 
64
- ngOnInit(): void {
65
- this.searchInputValue$ = this.autoCompleteAction('')[0]
66
- }
67
-
68
- // type: { title: string; value: ThesaurusModel }
69
- handleItemSelection(item) {
70
- this.addKeyword({
71
- label: item.title,
72
- thesaurus: item.value,
73
- type: item.value.type,
74
- })
75
- }
76
-
77
- handleInputSubmission(any: string) {
78
- // Should there be an input submission?
79
-
80
- if (this.inputSubmitted.observers.length > 0) {
81
- this.inputSubmitted.emit(any)
82
- } else {
83
- // this.searchService.updateFilters({ any })
84
- }
85
- }
86
-
87
- async handleInputCleared() {
88
- this.autoCompleteAction('')
51
+ handleItemSelection(item: AutocompleteItem) {
52
+ this.addKeyword(item.value)
89
53
  }
90
54
 
91
- addKeyword(item: {
92
- label: string
93
- thesaurus: ThesaurusModel
94
- type: KeywordType
95
- }) {
96
- const addedKeywords = [...this.control.value, item]
55
+ addKeyword(keyword: Keyword) {
56
+ const addedKeywords = [...this.control.value, keyword]
97
57
 
98
58
  // remove duplicates from keyword
99
59
  const filteredKeywords = addedKeywords.filter((value, index, self) => {
@@ -5,12 +5,17 @@ import {
5
5
  OnInit,
6
6
  } from '@angular/core'
7
7
  import { FormControl } from '@angular/forms'
8
- import { marker } from '@biesbjerg/ngx-translate-extract-marker'
9
8
  import {
10
9
  CheckToggleComponent,
10
+ DropdownChoice,
11
11
  DropdownSelectorComponent,
12
12
  } from '../../../../../../../../../libs/ui/inputs/src'
13
13
  import { TranslateModule, TranslateService } from '@ngx-translate/core'
14
+ import {
15
+ UpdateFrequency,
16
+ UpdateFrequencyCustom,
17
+ } from '../../../../../../../../../libs/common/domain/src/lib/model/record'
18
+ import { firstValueFrom } from 'rxjs'
14
19
 
15
20
  @Component({
16
21
  selector: 'gn-ui-form-field-update-frequency',
@@ -21,26 +26,32 @@ import { TranslateModule, TranslateService } from '@ngx-translate/core'
21
26
  imports: [CheckToggleComponent, DropdownSelectorComponent, TranslateModule],
22
27
  })
23
28
  export class FormFieldUpdateFrequencyComponent implements OnInit {
24
- @Input() control: FormControl
29
+ @Input() control: FormControl<UpdateFrequency>
30
+
31
+ protected choices: DropdownChoice[] = []
25
32
 
26
33
  get planned() {
27
- return this.control.value !== 'notPlanned'
34
+ return typeof this.control.value !== 'string'
28
35
  }
29
36
 
30
37
  constructor(private translateService: TranslateService) {}
31
38
 
32
- ngOnInit() {
33
- const updatedTimes = this.control.value?.updatedTimes
34
- const per = this.control.value?.per
39
+ async ngOnInit() {
40
+ this.choices = await this.getInitialChoices()
41
+ if (typeof this.control.value === 'string') {
42
+ return
43
+ }
44
+ const updatedTimes = this.control.value.updatedTimes
45
+ const per = this.control.value.per
46
+ // the update frequency is not in the list; make it appear there
35
47
  if (updatedTimes && updatedTimes !== 1 && updatedTimes !== 2) {
36
48
  this.choices = [
37
49
  {
38
50
  value: `${per}.${updatedTimes}`,
39
- label: this.translateService.instant(
40
- `domain.record.updateFrequency.${per}`,
41
- {
51
+ label: await firstValueFrom(
52
+ this.translateService.get(`domain.record.updateFrequency.${per}`, {
42
53
  count: updatedTimes,
43
- }
54
+ })
44
55
  ),
45
56
  },
46
57
  ...this.choices,
@@ -56,88 +67,86 @@ export class FormFieldUpdateFrequencyComponent implements OnInit {
56
67
  }
57
68
  }
58
69
 
59
- get selectedFrequency() {
70
+ get selectedFrequency(): string {
71
+ if (typeof this.control.value === 'string') return null
60
72
  const { updatedTimes, per } = this.control.value
61
73
  return `${per}.${updatedTimes}`
62
74
  }
63
75
 
64
76
  onSelectFrequencyValue(value: unknown) {
65
77
  const split = (value as string).split('.')
66
- this.control.setValue({ updatedTimes: Number(split[1]), per: split[0] })
78
+ this.control.setValue({
79
+ updatedTimes: Number(split[1]),
80
+ per: split[0] as UpdateFrequencyCustom['per'],
81
+ })
67
82
  }
68
83
 
69
- choices = [
70
- {
71
- value: 'day.1',
72
- label: this.translateService.instant(
73
- 'domain.record.updateFrequency.day',
74
- {
75
- count: 1,
76
- }
77
- ),
78
- },
79
- {
80
- value: 'day.2',
81
- label: this.translateService.instant(
82
- 'domain.record.updateFrequency.day',
83
- {
84
- count: 2,
85
- }
86
- ),
87
- },
88
- {
89
- value: 'week.1',
90
- label: this.translateService.instant(
91
- 'domain.record.updateFrequency.week',
92
- {
93
- count: 1,
94
- }
95
- ),
96
- },
97
- {
98
- value: 'week.2',
99
- label: this.translateService.instant(
100
- 'domain.record.updateFrequency.week',
101
- {
102
- count: 2,
103
- }
104
- ),
105
- },
106
- {
107
- value: 'month.1',
108
- label: this.translateService.instant(
109
- 'domain.record.updateFrequency.month',
110
- {
111
- count: 1,
112
- }
113
- ),
114
- },
115
- {
116
- value: 'month.2',
117
- label: this.translateService.instant(
118
- 'domain.record.updateFrequency.month',
119
- {
120
- count: 2,
121
- }
122
- ),
123
- },
124
- {
125
- value: 'year.1',
126
- label: this.translateService.instant(
127
- 'domain.record.updateFrequency.year',
128
- {
129
- count: 1,
130
- }
131
- ),
132
- },
133
- {
134
- value: 'year.2',
135
- label: this.translateService.instant(
136
- 'domain.record.updateFrequency.year',
137
- {
138
- count: 2,
139
- }
140
- ),
141
- },
142
- ]
84
+ private async getInitialChoices() {
85
+ return [
86
+ {
87
+ value: 'day.1',
88
+ label: await firstValueFrom(
89
+ this.translateService.get('domain.record.updateFrequency.day', {
90
+ count: 1,
91
+ })
92
+ ),
93
+ },
94
+ {
95
+ value: 'day.2',
96
+ label: await firstValueFrom(
97
+ this.translateService.get('domain.record.updateFrequency.day', {
98
+ count: 2,
99
+ })
100
+ ),
101
+ },
102
+ {
103
+ value: 'week.1',
104
+ label: await firstValueFrom(
105
+ this.translateService.get('domain.record.updateFrequency.week', {
106
+ count: 1,
107
+ })
108
+ ),
109
+ },
110
+ {
111
+ value: 'week.2',
112
+ label: await firstValueFrom(
113
+ this.translateService.get('domain.record.updateFrequency.week', {
114
+ count: 2,
115
+ })
116
+ ),
117
+ },
118
+ {
119
+ value: 'month.1',
120
+ label: await firstValueFrom(
121
+ this.translateService.get('domain.record.updateFrequency.month', {
122
+ count: 1,
123
+ })
124
+ ),
125
+ },
126
+ {
127
+ value: 'month.2',
128
+ label: await firstValueFrom(
129
+ this.translateService.get('domain.record.updateFrequency.month', {
130
+ count: 2,
131
+ })
132
+ ),
133
+ },
134
+ {
135
+ value: 'year.1',
136
+ label: await firstValueFrom(
137
+ this.translateService.get('domain.record.updateFrequency.year', {
138
+ count: 1,
139
+ })
140
+ ),
141
+ },
142
+ {
143
+ value: 'year.2',
144
+ label: await firstValueFrom(
145
+ this.translateService.get('domain.record.updateFrequency.year', {
146
+ count: 2,
147
+ })
148
+ ),
149
+ },
150
+ ]
151
+ }
143
152
  }
@@ -68,25 +68,11 @@
68
68
  </ng-container>
69
69
  <ng-container *ngIf="isSimpleField">
70
70
  <gn-ui-form-field-simple
71
- [type]="simpleType"
71
+ type="text"
72
72
  [control]="formControl"
73
- [readonly]="isFieldLocked"
74
- [invalid]="isFieldInvalid"
73
+ [readonly]="isReadOnly"
75
74
  ></gn-ui-form-field-simple>
76
75
  </ng-container>
77
- <ng-container *ngIf="isFileField">
78
- <gn-ui-form-field-file
79
- [control]="formControl"
80
- [readonly]="isFieldLocked"
81
- [invalid]="isFieldInvalid"
82
- ></gn-ui-form-field-file>
83
- </ng-container>
84
- <ng-container *ngIf="isArrayField">
85
- <gn-ui-form-field-array></gn-ui-form-field-array>
86
- </ng-container>
87
- <ng-container *ngIf="isObjectField">
88
- <gn-ui-form-field-object></gn-ui-form-field-object>
89
- </ng-container>
90
76
  <ng-container *ngIf="isSpatialExtentField">
91
77
  <gn-ui-form-field-spatial-extent></gn-ui-form-field-spatial-extent>
92
78
  </ng-container>
@@ -95,10 +81,4 @@
95
81
  [control]="formControl"
96
82
  ></gn-ui-form-field-keywords>
97
83
  </ng-container>
98
- <div
99
- *ngIf="isFieldInvalid && config.invalidHintKey"
100
- class="mt-2 text-pink-500 text-sm field-invalid-hint"
101
- >
102
- {{ config.invalidHintKey | translate }}
103
- </div>
104
84
  </ng-template>
@@ -27,6 +27,7 @@ import { FormFieldSimpleComponent } from './form-field-simple/form-field-simple.
27
27
  import { FormFieldSpatialExtentComponent } from './form-field-spatial-extent/form-field-spatial-extent.component'
28
28
  import { FormFieldConfig } from './form-field.model'
29
29
  import { FormFieldUpdateFrequencyComponent } from './form-field-update-frequency/form-field-update-frequency.component'
30
+ import { CatalogRecordKeys } from '../../../../../../../../libs/common/domain/src/lib/model/record'
30
31
  import { FormFieldKeywordsComponent } from './form-field-keywords/form-field-keywords.component'
31
32
 
32
33
  @Component({
@@ -57,7 +58,7 @@ import { FormFieldKeywordsComponent } from './form-field-keywords/form-field-key
57
58
  ],
58
59
  })
59
60
  export class FormFieldComponent {
60
- @Input() model: string
61
+ @Input() model: CatalogRecordKeys
61
62
  @Input() config: FormFieldConfig
62
63
  @Input() set value(v: unknown) {
63
64
  this.formControl.setValue(v, {
@@ -78,49 +79,6 @@ export class FormFieldComponent {
78
79
  this.titleInput.nativeElement.children[0].focus()
79
80
  }
80
81
 
81
- get simpleType() {
82
- return this.config.type as
83
- | 'date'
84
- | 'url'
85
- | 'text'
86
- | 'number'
87
- | 'list'
88
- | 'toggle'
89
- }
90
-
91
- get isSimpleField() {
92
- return (
93
- this.config.type === 'text' ||
94
- this.config.type === 'number' ||
95
- this.config.type === 'date' ||
96
- this.config.type === 'list' ||
97
- this.config.type === 'url' ||
98
- this.config.type === 'toggle'
99
- )
100
- }
101
- get isFileField() {
102
- return this.config.type === 'file'
103
- }
104
- get isSpatialExtentField() {
105
- return this.config.type === 'spatial_extent'
106
- }
107
- get isArrayField() {
108
- return this.config.type === 'array'
109
- }
110
- get isObjectField() {
111
- return this.config.type === 'object'
112
- }
113
-
114
- get isFieldOk() {
115
- return !this.config.locked && !this.config.invalid
116
- }
117
- get isFieldLocked() {
118
- return this.config.locked
119
- }
120
- get isFieldInvalid() {
121
- return !this.config.locked && this.config.invalid
122
- }
123
-
124
82
  get isTitle() {
125
83
  return this.model === 'title'
126
84
  }
@@ -139,6 +97,15 @@ export class FormFieldComponent {
139
97
  get isTemporalExtents() {
140
98
  return this.model === 'temporalExtents'
141
99
  }
100
+ get isSpatialExtentField() {
101
+ return this.model === 'spatialExtents'
102
+ }
103
+ get isSimpleField() {
104
+ return this.model === 'uniqueIdentifier' || this.model === 'recordUpdated'
105
+ }
106
+ get isReadOnly() {
107
+ return this.model === 'uniqueIdentifier' || this.model === 'recordUpdated'
108
+ }
142
109
  get isKeywords() {
143
110
  return this.model === 'keywords'
144
111
  }
@@ -5,21 +5,21 @@ export const DEFAULT_FIELDS: EditorFieldsConfig = [
5
5
  {
6
6
  model: 'title',
7
7
  formFieldConfig: {
8
- labelKey: 'Metadata title',
8
+ labelKey: marker('editor.record.form.metadata.title'),
9
9
  type: 'text',
10
10
  },
11
11
  },
12
12
  {
13
13
  model: 'abstract',
14
14
  formFieldConfig: {
15
- labelKey: 'Abstract',
15
+ labelKey: marker('editor.record.form.abstract'),
16
16
  type: 'rich',
17
17
  },
18
18
  },
19
19
  {
20
20
  model: 'uniqueIdentifier',
21
21
  formFieldConfig: {
22
- labelKey: 'Unique identifier',
22
+ labelKey: marker('editor.record.form.unique.identifier'),
23
23
  type: 'text',
24
24
  locked: true,
25
25
  },
@@ -27,7 +27,7 @@ export const DEFAULT_FIELDS: EditorFieldsConfig = [
27
27
  {
28
28
  model: 'recordUpdated',
29
29
  formFieldConfig: {
30
- labelKey: 'Record Updated',
30
+ labelKey: marker('editor.record.form.record.updated'),
31
31
  type: 'text',
32
32
  locked: true,
33
33
  },
@@ -1,6 +1,6 @@
1
1
  import { Injectable } from '@angular/core'
2
- import { Observable } from 'rxjs'
3
- import { map } from 'rxjs/operators'
2
+ import { Observable, switchMap } from 'rxjs'
3
+ import { map, tap } from 'rxjs/operators'
4
4
  import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
5
5
  import { EditorFieldsConfig } from '../models/fields.model'
6
6
  import { evaluate } from '../expressions'
@@ -15,7 +15,8 @@ export class EditorService {
15
15
  // returns the record as it was when saved, alongside its source
16
16
  saveRecord(
17
17
  record: CatalogRecord,
18
- fieldsConfig: EditorFieldsConfig
18
+ fieldsConfig: EditorFieldsConfig,
19
+ generateNewUniqueIdentifier = false
19
20
  ): Observable<[CatalogRecord, string]> {
20
21
  const savedRecord = { ...record }
21
22
 
@@ -29,9 +30,22 @@ export class EditorService {
29
30
  })
30
31
  }
31
32
  }
32
- return this.recordsRepository
33
- .saveRecord(savedRecord)
34
- .pipe(map((recordSource) => [savedRecord, recordSource]))
33
+
34
+ // if we want a new unique identifier, clear the existing one
35
+ if (generateNewUniqueIdentifier) {
36
+ savedRecord.uniqueIdentifier = null
37
+ }
38
+
39
+ return this.recordsRepository.saveRecord(savedRecord).pipe(
40
+ switchMap((uniqueIdentifier) =>
41
+ this.recordsRepository.openRecordForEdition(uniqueIdentifier)
42
+ ),
43
+ tap(() => {
44
+ // if saving was successful, the original draft can be discarded
45
+ this.recordsRepository.clearRecordDraft(record.uniqueIdentifier)
46
+ }),
47
+ map(([record, recordSource]) => [record, recordSource])
48
+ )
35
49
  }
36
50
 
37
51
  // emits and completes once saving is done
@@ -3,10 +3,11 @@ import {
3
3
  Component,
4
4
  Inject,
5
5
  InjectionToken,
6
+ Input,
6
7
  Optional,
7
8
  } from '@angular/core'
8
9
  import { Configuration } from '../../../../../../libs/data-access/gn4/src'
9
- import { combineLatest, map } from 'rxjs'
10
+ import { BehaviorSubject, combineLatest, map } from 'rxjs'
10
11
  import { MdViewFacade } from '../state'
11
12
  import { GN_UI_VERSION } from '../gn-ui-version.token'
12
13
 
@@ -21,29 +22,45 @@ export const WEB_COMPONENT_EMBEDDER_URL = new InjectionToken<string>(
21
22
  changeDetection: ChangeDetectionStrategy.OnPush,
22
23
  })
23
24
  export class DataViewPermalinkComponent {
25
+ viewType$ = new BehaviorSubject<string>('map')
26
+ @Input()
27
+ set viewType(value: string) {
28
+ this.viewType$.next(value)
29
+ }
30
+
24
31
  permalinkUrl$ = combineLatest([
32
+ this.viewType$,
25
33
  this.facade.chartConfig$,
26
34
  this.facade.metadata$,
27
35
  ]).pipe(
28
- map(([config, metadata]) => {
29
- if (config) {
30
- const { aggregation, xProperty, yProperty, chartType } = config
31
- const url = new URL(`${this.wcEmbedderBaseUrl}`, window.location.origin)
32
- url.searchParams.set('v', `${this.version}`)
33
- url.searchParams.append('e', `gn-dataset-view-chart`)
34
- url.searchParams.append('a', `api-url=${this.config.basePath}`)
35
- url.searchParams.append('a', `dataset-id=${metadata.uniqueIdentifier}`)
36
- url.searchParams.append('a', `primary-color=#0f4395`)
37
- url.searchParams.append('a', `secondary-color=#8bc832`)
38
- url.searchParams.append('a', `main-color=#555`)
39
- url.searchParams.append('a', `background-color=#fdfbff`)
40
- url.searchParams.append('a', `aggregation=${aggregation}`)
41
- url.searchParams.append('a', `x-property=${xProperty}`)
42
- url.searchParams.append('a', `y-property=${yProperty}`)
43
- url.searchParams.append('a', `chart-type=${chartType}`)
44
- return url.toString()
36
+ map(([viewType, config, metadata]) => {
37
+ const url = new URL(`${this.wcEmbedderBaseUrl}`, window.location.origin)
38
+ url.searchParams.set('v', `${this.version}`)
39
+ if (viewType === 'chart') {
40
+ if (config) {
41
+ const { aggregation, xProperty, yProperty, chartType } = config
42
+ url.searchParams.append('e', `gn-dataset-view-chart`)
43
+ url.searchParams.append('a', `aggregation=${aggregation}`)
44
+ url.searchParams.append('a', `x-property=${xProperty}`)
45
+ url.searchParams.append('a', `y-property=${yProperty}`)
46
+ url.searchParams.append('a', `chart-type=${chartType}`)
47
+ } else {
48
+ return ''
49
+ }
50
+ } else if (viewType === 'table') {
51
+ // table
52
+ url.searchParams.append('e', `gn-dataset-view-table`)
53
+ } else {
54
+ // map
55
+ url.searchParams.append('e', `gn-dataset-view-map`)
45
56
  }
46
- return ''
57
+ url.searchParams.append('a', `api-url=${this.config.basePath}`)
58
+ url.searchParams.append('a', `dataset-id=${metadata.uniqueIdentifier}`)
59
+ url.searchParams.append('a', `primary-color=#0f4395`)
60
+ url.searchParams.append('a', `secondary-color=#8bc832`)
61
+ url.searchParams.append('a', `main-color=#555`)
62
+ url.searchParams.append('a', `background-color=#fdfbff`)
63
+ return url.toString()
47
64
  })
48
65
  )
49
66
 
@@ -10,7 +10,9 @@
10
10
  <ng-template mat-tab-label>
11
11
  <span class="tab-header-label-gray" translate>share.tab.permalink</span>
12
12
  </ng-template>
13
- <gn-ui-data-view-permalink></gn-ui-data-view-permalink>
13
+ <gn-ui-data-view-permalink
14
+ [viewType]="viewType"
15
+ ></gn-ui-data-view-permalink>
14
16
  </mat-tab>
15
17
  <mat-tab>
16
18
  <ng-template mat-tab-label>
@@ -24,7 +26,9 @@
24
26
  >share.tab.webComponent</span
25
27
  >
26
28
  </ng-template>
27
- <gn-ui-data-view-web-component></gn-ui-data-view-web-component>
29
+ <gn-ui-data-view-web-component
30
+ [viewType]="viewType"
31
+ ></gn-ui-data-view-web-component>
28
32
  </mat-tab>
29
33
  </mat-tab-group>
30
34
  </div>
@@ -2,6 +2,7 @@ import {
2
2
  ChangeDetectionStrategy,
3
3
  Component,
4
4
  Inject,
5
+ Input,
5
6
  Optional,
6
7
  } from '@angular/core'
7
8
  import { WEB_COMPONENT_EMBEDDER_URL } from '../data-view-permalink/data-view-permalink.component'
@@ -13,6 +14,16 @@ import { WEB_COMPONENT_EMBEDDER_URL } from '../data-view-permalink/data-view-per
13
14
  changeDetection: ChangeDetectionStrategy.OnPush,
14
15
  })
15
16
  export class DataViewShareComponent {
17
+ private _viewType: string
18
+
19
+ @Input()
20
+ set viewType(value: string) {
21
+ this._viewType = value
22
+ }
23
+
24
+ get viewType(): string {
25
+ return this._viewType
26
+ }
16
27
  constructor(
17
28
  @Optional()
18
29
  @Inject(WEB_COMPONENT_EMBEDDER_URL)