geonetwork-ui 2.5.0-dev.a538998f8 → 2.5.0-dev.aed8e2abc

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 (274) hide show
  1. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +11 -1
  2. package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.mjs +1 -1
  3. package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +20 -17
  4. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +25 -9
  5. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  6. package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
  7. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +7 -4
  8. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +8 -8
  9. package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +7 -4
  10. package/esm2022/libs/feature/editor/src/index.mjs +2 -1
  11. package/esm2022/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.mjs +3 -3
  12. package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +2 -2
  13. package/esm2022/libs/feature/editor/src/lib/components/import-record/import-record.component.mjs +5 -5
  14. package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +5 -3
  15. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.mjs +2 -2
  16. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +9 -11
  17. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.mjs +2 -2
  18. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.mjs +2 -2
  19. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +2 -2
  20. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +2 -1
  21. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +7 -23
  22. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +2 -2
  23. package/esm2022/libs/feature/editor/src/lib/models/wizard-field.type.mjs +3 -4
  24. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +1 -1
  25. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +25 -5
  26. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +10 -7
  27. package/esm2022/libs/feature/record/src/lib/state/mdview.actions.mjs +4 -1
  28. package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +7 -2
  29. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +9 -1
  30. package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +19 -1
  31. package/esm2022/libs/feature/record/src/lib/state/mdview.selectors.mjs +6 -1
  32. package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +15 -3
  33. package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +1 -1
  34. package/esm2022/libs/ui/dataviz/src/lib/data-table/data-table.component.mjs +3 -3
  35. package/esm2022/libs/ui/elements/src/index.mjs +2 -1
  36. package/esm2022/libs/ui/elements/src/lib/application-banner/application-banner.component.mjs +78 -0
  37. package/esm2022/libs/ui/elements/src/lib/image-input/image-input.component.mjs +32 -31
  38. package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +3 -3
  39. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +23 -3
  40. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +10 -4
  41. package/esm2022/libs/ui/inputs/src/index.mjs +1 -2
  42. package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +94 -8
  43. package/esm2022/libs/ui/inputs/src/lib/file-input/file-input.component.mjs +2 -2
  44. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +1 -6
  45. package/esm2022/libs/ui/inputs/src/lib/url-input/url-input.component.mjs +6 -4
  46. package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +3 -3
  47. package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +14 -4
  48. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +10 -3
  49. package/esm2022/libs/ui/widgets/src/index.mjs +1 -2
  50. package/esm2022/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.mjs +10 -3
  51. package/esm2022/libs/ui/widgets/src/lib/ui-widgets.module.mjs +5 -6
  52. package/esm2022/libs/util/data-fetcher/src/lib/data-fetcher.mjs +5 -4
  53. package/esm2022/libs/util/data-fetcher/src/lib/readers/base-cache.mjs +12 -0
  54. package/esm2022/libs/util/data-fetcher/src/lib/readers/base-file.mjs +3 -3
  55. package/esm2022/libs/util/data-fetcher/src/lib/readers/base.mjs +1 -1
  56. package/esm2022/libs/util/data-fetcher/src/lib/readers/csv.mjs +2 -2
  57. package/esm2022/libs/util/data-fetcher/src/lib/readers/excel.mjs +2 -2
  58. package/esm2022/libs/util/data-fetcher/src/lib/readers/geojson.mjs +2 -2
  59. package/esm2022/libs/util/data-fetcher/src/lib/readers/gml.mjs +5 -3
  60. package/esm2022/libs/util/data-fetcher/src/lib/readers/json.mjs +2 -2
  61. package/esm2022/libs/util/data-fetcher/src/lib/readers/wfs.mjs +19 -11
  62. package/esm2022/libs/util/data-fetcher/src/lib/utils.mjs +13 -9
  63. package/esm2022/translations/de.json +5 -77
  64. package/esm2022/translations/en.json +5 -77
  65. package/esm2022/translations/es.json +3 -75
  66. package/esm2022/translations/fr.json +17 -89
  67. package/esm2022/translations/it.json +22 -93
  68. package/esm2022/translations/nl.json +3 -75
  69. package/esm2022/translations/pt.json +3 -75
  70. package/fesm2022/geonetwork-ui.mjs +631 -933
  71. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  72. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  73. package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts +3 -0
  74. package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts.map +1 -1
  75. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts +1 -0
  76. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
  77. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +2 -1
  78. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  79. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +6 -0
  80. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  81. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +2 -1
  82. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  83. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts +2 -1
  84. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
  85. package/libs/feature/dataviz/src/lib/service/data.service.d.ts +2 -2
  86. package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
  87. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +2 -1
  88. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
  89. package/libs/feature/editor/src/index.d.ts +1 -0
  90. package/libs/feature/editor/src/index.d.ts.map +1 -1
  91. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts +1 -0
  92. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -1
  93. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts +1 -0
  94. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts.map +1 -1
  95. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -1
  96. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts +1 -0
  97. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
  98. package/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.d.ts +1 -3
  99. package/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.d.ts.map +1 -1
  100. package/libs/feature/editor/src/lib/models/wizard-field.type.d.ts +2 -3
  101. package/libs/feature/editor/src/lib/models/wizard-field.type.d.ts.map +1 -1
  102. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +5 -1
  103. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
  104. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +3 -2
  105. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  106. package/libs/feature/record/src/lib/state/mdview.actions.d.ts +16 -1
  107. package/libs/feature/record/src/lib/state/mdview.actions.d.ts.map +1 -1
  108. package/libs/feature/record/src/lib/state/mdview.effects.d.ts +5 -0
  109. package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
  110. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +2 -0
  111. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  112. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts +4 -1
  113. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts.map +1 -1
  114. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts +2 -0
  115. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts.map +1 -1
  116. package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts +5 -1
  117. package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts.map +1 -1
  118. package/libs/ui/elements/src/index.d.ts +1 -0
  119. package/libs/ui/elements/src/index.d.ts.map +1 -1
  120. package/libs/ui/elements/src/lib/application-banner/application-banner.component.d.ts +16 -0
  121. package/libs/ui/elements/src/lib/application-banner/application-banner.component.d.ts.map +1 -0
  122. package/libs/ui/elements/src/lib/image-input/image-input.component.d.ts +5 -6
  123. package/libs/ui/elements/src/lib/image-input/image-input.component.d.ts.map +1 -1
  124. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts.map +1 -1
  125. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +2 -1
  126. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  127. package/libs/ui/inputs/src/index.d.ts +0 -1
  128. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  129. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts +23 -1
  130. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
  131. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +27 -28
  132. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  133. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts +2 -1
  134. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts.map +1 -1
  135. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +4 -2
  136. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -1
  137. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +3 -1
  138. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  139. package/libs/ui/widgets/src/index.d.ts +0 -1
  140. package/libs/ui/widgets/src/index.d.ts.map +1 -1
  141. package/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.d.ts +1 -1
  142. package/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.d.ts.map +1 -1
  143. package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts +8 -9
  144. package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts.map +1 -1
  145. package/libs/util/data-fetcher/src/lib/data-fetcher.d.ts +2 -2
  146. package/libs/util/data-fetcher/src/lib/data-fetcher.d.ts.map +1 -1
  147. package/libs/util/data-fetcher/src/lib/readers/base-cache.d.ts +8 -0
  148. package/libs/util/data-fetcher/src/lib/readers/base-cache.d.ts.map +1 -0
  149. package/libs/util/data-fetcher/src/lib/readers/base-file.d.ts +2 -2
  150. package/libs/util/data-fetcher/src/lib/readers/base-file.d.ts.map +1 -1
  151. package/libs/util/data-fetcher/src/lib/readers/base.d.ts +2 -2
  152. package/libs/util/data-fetcher/src/lib/readers/base.d.ts.map +1 -1
  153. package/libs/util/data-fetcher/src/lib/readers/gml.d.ts +5 -3
  154. package/libs/util/data-fetcher/src/lib/readers/gml.d.ts.map +1 -1
  155. package/libs/util/data-fetcher/src/lib/readers/wfs.d.ts +7 -4
  156. package/libs/util/data-fetcher/src/lib/readers/wfs.d.ts.map +1 -1
  157. package/libs/util/data-fetcher/src/lib/utils.d.ts +2 -2
  158. package/libs/util/data-fetcher/src/lib/utils.d.ts.map +1 -1
  159. package/package.json +1 -1
  160. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +25 -0
  161. package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +4 -0
  162. package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +22 -16
  163. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +44 -13
  164. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +3 -1
  165. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +4 -1
  166. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +165 -0
  167. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +4 -1
  168. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +22 -9
  169. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +2 -1
  170. package/src/libs/feature/editor/src/index.ts +1 -0
  171. package/src/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.html +1 -1
  172. package/src/libs/feature/editor/src/lib/components/import-record/import-record.component.ts +3 -3
  173. package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.html +1 -0
  174. package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +2 -0
  175. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.html +1 -0
  176. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +10 -10
  177. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +1 -1
  178. package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +1 -0
  179. package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.html +0 -13
  180. package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.ts +0 -20
  181. package/src/libs/feature/editor/src/lib/fields.config.ts +1 -1
  182. package/src/libs/feature/editor/src/lib/models/wizard-field.type.ts +0 -1
  183. package/src/libs/feature/record/src/lib/data-view/data-view.component.html +24 -11
  184. package/src/libs/feature/record/src/lib/data-view/data-view.component.ts +26 -4
  185. package/src/libs/feature/record/src/lib/map-view/map-view.component.html +71 -60
  186. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +6 -3
  187. package/src/libs/feature/record/src/lib/state/mdview.actions.ts +16 -0
  188. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +21 -2
  189. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +15 -0
  190. package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +30 -1
  191. package/src/libs/feature/record/src/lib/state/mdview.selectors.ts +12 -0
  192. package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +3 -0
  193. package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.ts +7 -0
  194. package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.html +3 -1
  195. package/src/libs/ui/elements/src/index.ts +1 -0
  196. package/src/libs/ui/elements/src/lib/application-banner/application-banner.component.css +0 -0
  197. package/src/libs/ui/elements/src/lib/application-banner/application-banner.component.html +25 -0
  198. package/src/libs/ui/elements/src/lib/application-banner/application-banner.component.ts +70 -0
  199. package/src/libs/ui/elements/src/lib/image-input/image-input.component.html +20 -14
  200. package/src/libs/ui/elements/src/lib/image-input/image-input.component.ts +29 -32
  201. package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.ts +2 -2
  202. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +21 -9
  203. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +13 -0
  204. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +3 -0
  205. package/src/libs/ui/inputs/src/index.ts +0 -1
  206. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +36 -19
  207. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +91 -2
  208. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +0 -3
  209. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.ts +3 -2
  210. package/src/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.html +1 -1
  211. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +37 -1
  212. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +8 -2
  213. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +2 -0
  214. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +6 -0
  215. package/src/libs/ui/widgets/src/index.ts +0 -1
  216. package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.html +36 -11
  217. package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.ts +9 -1
  218. package/src/libs/ui/widgets/src/lib/ui-widgets.module.ts +2 -3
  219. package/src/libs/util/data-fetcher/src/lib/data-fetcher.ts +13 -4
  220. package/src/libs/util/data-fetcher/src/lib/readers/base-cache.ts +14 -0
  221. package/src/libs/util/data-fetcher/src/lib/readers/base-file.ts +2 -1
  222. package/src/libs/util/data-fetcher/src/lib/readers/base.ts +2 -2
  223. package/src/libs/util/data-fetcher/src/lib/readers/csv.ts +1 -1
  224. package/src/libs/util/data-fetcher/src/lib/readers/excel.ts +1 -1
  225. package/src/libs/util/data-fetcher/src/lib/readers/geojson.ts +1 -1
  226. package/src/libs/util/data-fetcher/src/lib/readers/gml.ts +7 -7
  227. package/src/libs/util/data-fetcher/src/lib/readers/json.ts +1 -1
  228. package/src/libs/util/data-fetcher/src/lib/readers/wfs.ts +34 -11
  229. package/src/libs/util/data-fetcher/src/lib/utils.ts +38 -32
  230. package/translations/de.json +5 -77
  231. package/translations/en.json +5 -77
  232. package/translations/es.json +3 -75
  233. package/translations/fr.json +17 -89
  234. package/translations/it.json +22 -93
  235. package/translations/nl.json +3 -75
  236. package/translations/pt.json +3 -75
  237. package/translations/sk.json +3 -75
  238. package/esm2022/libs/ui/inputs/src/lib/chips-input/chips-input.component.mjs +0 -78
  239. package/esm2022/libs/ui/widgets/src/lib/step-bar/step-bar.component.mjs +0 -55
  240. package/libs/ui/inputs/src/lib/chips-input/chips-input.component.d.ts +0 -33
  241. package/libs/ui/inputs/src/lib/chips-input/chips-input.component.d.ts.map +0 -1
  242. package/libs/ui/widgets/src/lib/step-bar/step-bar.component.d.ts +0 -21
  243. package/libs/ui/widgets/src/lib/step-bar/step-bar.component.d.ts.map +0 -1
  244. package/src/libs/data-access/datafeeder/src/index.ts +0 -1
  245. package/src/libs/data-access/datafeeder/src/openapi/api/api.ts +0 -11
  246. package/src/libs/data-access/datafeeder/src/openapi/api/config.api.service.ts +0 -168
  247. package/src/libs/data-access/datafeeder/src/openapi/api/dataPublishing.api.service.ts +0 -270
  248. package/src/libs/data-access/datafeeder/src/openapi/api/fileUpload.api.service.ts +0 -734
  249. package/src/libs/data-access/datafeeder/src/openapi/api.module.ts +0 -46
  250. package/src/libs/data-access/datafeeder/src/openapi/configuration.ts +0 -125
  251. package/src/libs/data-access/datafeeder/src/openapi/encoder.ts +0 -20
  252. package/src/libs/data-access/datafeeder/src/openapi/index.ts +0 -5
  253. package/src/libs/data-access/datafeeder/src/openapi/model/analysisStatusEnum.api.model.ts +0 -24
  254. package/src/libs/data-access/datafeeder/src/openapi/model/boundingBox.api.model.ts +0 -20
  255. package/src/libs/data-access/datafeeder/src/openapi/model/cRS.api.model.ts +0 -25
  256. package/src/libs/data-access/datafeeder/src/openapi/model/datasetMetadata.api.model.ts +0 -45
  257. package/src/libs/data-access/datafeeder/src/openapi/model/datasetPublishRequest.api.model.ts +0 -39
  258. package/src/libs/data-access/datafeeder/src/openapi/model/datasetPublishingStatus.api.model.ts +0 -50
  259. package/src/libs/data-access/datafeeder/src/openapi/model/datasetUploadStatus.api.model.ts +0 -39
  260. package/src/libs/data-access/datafeeder/src/openapi/model/models.ts +0 -13
  261. package/src/libs/data-access/datafeeder/src/openapi/model/property.api.model.ts +0 -17
  262. package/src/libs/data-access/datafeeder/src/openapi/model/publishJobStatus.api.model.ts +0 -33
  263. package/src/libs/data-access/datafeeder/src/openapi/model/publishRequest.api.model.ts +0 -16
  264. package/src/libs/data-access/datafeeder/src/openapi/model/publishStatusEnum.api.model.ts +0 -20
  265. package/src/libs/data-access/datafeeder/src/openapi/model/publishStepEnum.api.model.ts +0 -42
  266. package/src/libs/data-access/datafeeder/src/openapi/model/uploadJobStatus.api.model.ts +0 -33
  267. package/src/libs/data-access/datafeeder/src/openapi/variables.ts +0 -9
  268. package/src/libs/data-access/datafeeder/src/spec.yaml +0 -537
  269. package/src/libs/ui/inputs/src/lib/chips-input/chips-input.component.css +0 -36
  270. package/src/libs/ui/inputs/src/lib/chips-input/chips-input.component.html +0 -23
  271. package/src/libs/ui/inputs/src/lib/chips-input/chips-input.component.ts +0 -81
  272. package/src/libs/ui/widgets/src/lib/step-bar/step-bar.component.css +0 -3
  273. package/src/libs/ui/widgets/src/lib/step-bar/step-bar.component.html +0 -13
  274. package/src/libs/ui/widgets/src/lib/step-bar/step-bar.component.ts +0 -55
@@ -1,537 +0,0 @@
1
- openapi: 3.0.0
2
- servers:
3
- - description: SwaggerHub API Auto Mocking
4
- url: https://localhost:8080/
5
- info:
6
- title: DataFeeder API
7
- description: This API covers dataset upload and publishing features of the application
8
- version: "1.0.0"
9
- contact:
10
- email: psc@georchestra.org
11
- tags:
12
- - name: File Upload
13
- description: 'API to control jobs related to form based file upload of geospatial datasets'
14
- - name: Data Publishing
15
- description: 'API to control jobs related to publishing geospatial datasets previously uploaded'
16
-
17
- paths:
18
- /config/frontend:
19
- get:
20
- tags:
21
- - Config
22
- description: 'Get the front-end application configuration object'
23
- operationId: getFrontendConfig
24
- responses:
25
- 200:
26
- description: Front-end application configuration object
27
- content:
28
- application/json:
29
- schema:
30
- type: object
31
- 401:
32
- description: 'Not authenticated'
33
-
34
- /upload:
35
- post:
36
- tags:
37
- - File Upload
38
- description: Upload one or multiple files to the server, and get a handle to the job.
39
- Once the files are uploaded, the analysis process is automatically triggered. Its status can be polled with GET /upload/{jobId}
40
- operationId: uploadFiles
41
- requestBody:
42
- content:
43
- multipart/form-data:
44
- schema:
45
- type: object
46
- properties:
47
- filename:
48
- type: array
49
- items:
50
- type: string
51
- format: binary
52
- responses:
53
- 200:
54
- $ref: '#/components/responses/UploadStatusResponse'
55
- 401:
56
- description: 'Not authenticated'
57
- 403:
58
- description: 'Forbidden. User has no priviledges to upload files'
59
- get:
60
- tags:
61
- - File Upload
62
- description: 'Poll the status of all the upload jobs owned by the calling user'
63
- operationId: findUserUploadJobs
64
- responses:
65
- 200:
66
- $ref: '#/components/responses/UploadStatusResponseList'
67
- 401:
68
- description: 'Not authenticated'
69
- 403:
70
- description: 'Forbidden. User has no priviledges to query other users jobs'
71
-
72
- /upload/all:
73
- get:
74
- tags:
75
- - File Upload
76
- description: 'Poll the status of all the upload jobs. Access restricted to administrators'
77
- operationId: findAllUploadJobs
78
- responses:
79
- 200:
80
- $ref: '#/components/responses/UploadStatusResponseList'
81
- 401:
82
- description: 'Not authenticated'
83
- 403:
84
- description: 'Forbidden. User has no priviledges to upload files'
85
-
86
- /upload/{jobId}:
87
- get:
88
- tags:
89
- - File Upload
90
- description: 'Poll the status of a given upload job by id'
91
- operationId: findUploadJob
92
- parameters:
93
- - $ref: '#/components/parameters/jobId'
94
- responses:
95
- 200:
96
- $ref: '#/components/responses/UploadStatusResponse'
97
- 401:
98
- description: 'Not authenticated'
99
- 403:
100
- description: 'Forbidden. User has no priviledges access the requested job'
101
- delete:
102
- tags:
103
- - File Upload
104
- description: 'Remove a job and all its resources (e.g. temporary files). Does not unpublish. Use abort=true to abort a running analysis or publishing job'
105
- operationId: removeJob
106
- parameters:
107
- - $ref: '#/components/parameters/jobId'
108
- - name: abort
109
- in: query
110
- description: If true, abort the dataset analysis or publishing, if running. Defaults to false
111
- required: false
112
- schema:
113
- type: boolean
114
- default: false
115
- responses:
116
- 204:
117
- description: 'Job removed.'
118
- 401:
119
- description: 'Not authenticated'
120
- 403:
121
- description: 'Forbidden. User has no priviledges access the requested job'
122
- 409:
123
- description: 'Conflict. The abort=true parameter was not provided and the analysis or publishing job is running'
124
-
125
- /upload/{jobId}/{typeName}/sampleFeature:
126
- get:
127
- tags:
128
- - File Upload
129
- operationId: getSampleFeature
130
- description: Obtain a sample dataset feature in GeoJSON format, optionally specifying a feature index, crs, and/or dataset's character encoding.
131
- The response encoding is always UTF-8. The 'encoding' parameter can be used to force reading the native data in a different charset.
132
- The returned geometry CRS is controlled by the "srs", and "srsOverride" query parameters.
133
- If none is provided, the geometry is returned as-is, in the dataset's native CRS (possibly null).
134
- The "srsOverride" parameter allows to override the dataset's native CRS, which also means assuming a native CRS when the
135
- dataset didn't provide a native CRS (e.g. a shapefile uploaded without .prj side-car file).
136
- The "srs" parameter specifies the output geometry CRS. The geometry will be reprojected from the source CRS to the output CRS.
137
- parameters:
138
- - $ref: '#/components/parameters/jobId'
139
- - $ref: '#/components/parameters/typeName'
140
- - name: featureIndex
141
- in: query
142
- description: Optional feature index, if unspecified, the first feature (index 0) is returned
143
- required: false
144
- schema:
145
- type: integer
146
- format: int32
147
- minimum: 0
148
- - name: encoding
149
- in: query
150
- description: Optional, force dataset encoding
151
- required: false
152
- schema:
153
- type: string
154
- - name: srs
155
- in: query
156
- description: Optional, coordinate reference system (e.g. 'EPSG:3857')
157
- required: false
158
- schema:
159
- type: string
160
- - name: srsOverride
161
- in: query
162
- description: Optional, EPSG SRS used to override the native CRS, or assume a native SRS when the native CRS is unknown (for example, a shapefile uploaded without .prj side-car file).
163
- This allows to request a feature using a source CRS for datasets that do not specify a native CRS, and still get a reprojected response to
164
- another CRS in combination with the "srs" parameter.
165
- required: false
166
- schema:
167
- type: string
168
- example: EPSG:4326
169
- responses:
170
- 202:
171
- $ref: '#/components/responses/SampleFeatureResponse'
172
- 400:
173
- description: 'Bad request. Some parameter is not acceptable or missing'
174
- 401:
175
- description: 'Not authenticated'
176
- 403:
177
- description: 'Forbidden. User has no priviledges access the requested job'
178
-
179
- /upload/{jobId}/{typeName}/bounds:
180
- get:
181
- tags:
182
- - File Upload
183
- operationId: getBounds
184
- description: Get the bounding box of the dataset, optionally indicating the CRS and whether to reproject from the native CRS to the new one
185
- The returned geometry CRS is controlled by the "srs", and "srsOverride" query parameters.
186
- If none is provided, the geometry is returned as-is, in the dataset's native CRS (possibly null).
187
- The "srsOverride" parameter allows to override the dataset's native CRS, which also means assuming a native CRS when the
188
- dataset didn't provide a native CRS (e.g. a shapefile uploaded without .prj side-car file).
189
- The "srs" parameter specifies the output geometry CRS. The geometry will be reprojected from the source CRS to the output CRS.
190
- parameters:
191
- - $ref: '#/components/parameters/jobId'
192
- - $ref: '#/components/parameters/typeName'
193
- - name: srs
194
- in: query
195
- description: Optional, output coordinate reference system (e.g. 'EPSG:3857')
196
- required: false
197
- schema:
198
- type: string
199
- - name: srsOverride
200
- in: query
201
- description: Optional, EPSG SRS used to override the native CRS, or assume a native SRS when the native CRS is unknown (for example, a shapefile uploaded without .prj side-car file).
202
- This allows to request the dataset bounds using a user defined native CRS for datasets that do not specify a native CRS,
203
- and still get a reprojected response to another CRS in combination with the "srs" parameter.
204
- required: false
205
- schema:
206
- type: string
207
- example: EPSG:4326
208
- responses:
209
- 202:
210
- $ref: '#/components/responses/BoundingBoxResponse'
211
- 400:
212
- description: 'Bad request. Some parameter is not acceptable or missing'
213
- 401:
214
- description: 'Not authenticated'
215
- 403:
216
- description: 'Forbidden. User has no priviledges access the requested job'
217
-
218
- /upload/{jobId}/publish:
219
- post:
220
- tags:
221
- - Data Publishing
222
- description: 'Publish the dataset(s) from the given upload'
223
- operationId: publish
224
- parameters:
225
- - $ref: '#/components/parameters/jobId'
226
- requestBody:
227
- content:
228
- application/json:
229
- schema:
230
- $ref: '#/components/schemas/PublishRequest'
231
- responses:
232
- 202:
233
- $ref: '#/components/responses/PublishStatusResponse'
234
- 400:
235
- description: 'Bad request. Some parameter is not acceptable or missing'
236
- 401:
237
- description: 'Not authenticated'
238
- 403:
239
- description: 'Forbidden. User has no priviledges access the requested job'
240
- 409:
241
- description: 'Conflict. The upload is not ready for publishing.'
242
- get:
243
- tags:
244
- - Data Publishing
245
- description: 'Poll the publishing staus of the given job'
246
- operationId: getPublishingStatus
247
- parameters:
248
- - $ref: '#/components/parameters/jobId'
249
- responses:
250
- 200:
251
- $ref: '#/components/responses/PublishStatusResponse'
252
- 400:
253
- description: 'Bad request. Some parameter is not acceptable or missing'
254
- 401:
255
- description: 'Not authenticated'
256
- 403:
257
- description: 'Forbidden. User has no priviledges access the requested job'
258
-
259
- components:
260
- parameters:
261
- jobId:
262
- name: jobId
263
- in: path
264
- description: Unique job identifier
265
- required: true
266
- schema:
267
- type: string
268
- format: uuid
269
- typeName:
270
- name: typeName
271
- in: path
272
- description: Feature type name
273
- required: true
274
- schema:
275
- type: string
276
- responses:
277
- UploadStatusResponseList:
278
- description: Processing status of a list of dataset upload job
279
- content:
280
- application/json:
281
- schema:
282
- type: array
283
- items:
284
- $ref: '#/components/schemas/UploadJobStatus'
285
- UploadStatusResponse:
286
- description: Processing status of a dataset upload job
287
- content:
288
- application/json:
289
- schema:
290
- $ref: '#/components/schemas/UploadJobStatus'
291
- PublishStatusResponse:
292
- description: Processing status of a dataset publishing job
293
- content:
294
- application/json:
295
- schema:
296
- $ref: '#/components/schemas/PublishJobStatus'
297
- SampleFeatureResponse:
298
- description: Sample feature for an uploaded dataset
299
- content:
300
- application/geo+json:
301
- schema:
302
- type: object
303
- BoundingBoxResponse:
304
- description: dataset bounds in the requested CRS, if given, defaults to the native CRS
305
- content:
306
- application/json:
307
- schema:
308
- $ref: '#/components/schemas/BoundingBox'
309
- schemas:
310
- AnalysisStatusEnum:
311
- type: string
312
- enum: [PENDING, ANALYZING, DONE, ERROR]
313
- PublishStatusEnum:
314
- type: string
315
- enum: [PENDING, RUNNING, DONE, ERROR]
316
- PublishStepEnum:
317
- type: string
318
- enum: [SKIPPED, SCHEDULED, DATA_IMPORT_STARTED, DATA_IMPORT_FINISHED, OWS_PUBLISHING_STARTED, OWS_PUBLISHING_FINISHED, METADATA_PUBLISHING_STARTED, METADATA_PUBLISHING_FINISHED, OWS_METADATA_UPDATE_STARTED, OWS_METADATA_UPDATE_FINISHED, COMPLETED]
319
-
320
- UploadJobStatus:
321
- type: object
322
- description: Describes the status of processing a dataset upload
323
- properties:
324
- jobId:
325
- type: string
326
- format: uuid
327
- description: Identifier for the upload processing job
328
- progress:
329
- description: Estimated completion progress, from 0 to 1.
330
- type: number
331
- format: double
332
- minimum: 0.0
333
- maximum: 1.0
334
- default: 0.0
335
- status:
336
- $ref: '#/components/schemas/AnalysisStatusEnum'
337
- description: aggregate of status of all datasets in the upload package. If any dataset status is PENDING, ANALYZING, or ERROR, that's the job's status.
338
- If at least one dataset status is ERROR, then the job status is ERROR. If no datasets where recognized in the upload, status is ERROR.
339
- error:
340
- type: string
341
- description: short description of the error that prevents the job to complete successfully
342
- datasets:
343
- type: array
344
- items:
345
- $ref: '#/components/schemas/DatasetUploadStatus'
346
-
347
- DatasetUploadStatus:
348
- type: object
349
- description: Describes a recognized uploaded dataset
350
- properties:
351
- name:
352
- type: string
353
- description: Name of the dataset in the uploaded package
354
- status:
355
- $ref: '#/components/schemas/AnalysisStatusEnum'
356
- error:
357
- type: string
358
- description: short description of the error that prevents the dataset to be analysed
359
- featureCount:
360
- type: integer
361
- format: int32
362
- description: Number of features in the dataset
363
- nativeBounds:
364
- $ref: '#/components/schemas/BoundingBox'
365
- encoding:
366
- type: string
367
- description: detected charset
368
-
369
- Property:
370
- type: object
371
- properties:
372
- name:
373
- type: string
374
- value:
375
- type: string
376
- type:
377
- type: string
378
-
379
- CRS:
380
- type: object
381
- description: Coordinate Reference System
382
- properties:
383
- srs:
384
- type: string
385
- description: Coordinate Reference System's EPSG identifier.
386
- Can be null if a matching reference system couldn't be found in the EPSG database.
387
- wkt:
388
- type: string
389
- description: Coordinate Reference System's Well Known Text representation. Despite the 'srs' identifier being found or not, the WKT representation is still available.
390
- BoundingBox:
391
- type: object
392
- properties:
393
- crs:
394
- $ref: '#/components/schemas/CRS'
395
- minx:
396
- type: number
397
- format: double
398
- maxx:
399
- type: number
400
- format: double
401
- miny:
402
- type: number
403
- format: double
404
- maxy:
405
- type: number
406
- format: double
407
-
408
- PublishRequest:
409
- type: object
410
- properties:
411
- datasets:
412
- type: array
413
- items:
414
- $ref: '#/components/schemas/DatasetPublishRequest'
415
-
416
- DatasetMetadata:
417
- type: object
418
- description: User supplied dataset metadata information
419
- required:
420
- - title
421
- - abstract
422
- properties:
423
- title:
424
- type: string
425
- description: Metadata title for the dataset
426
- abstract:
427
- type: string
428
- description: Metadata abtract text for the dataset
429
- tags:
430
- type: array
431
- description: metadata keyworkds for the dataset
432
- items:
433
- type: string
434
- creationDate:
435
- description: Dataset creation date, in RFC3339 format
436
- type: string
437
- format: date
438
- example: 2017-07-21
439
- scale:
440
- description: Optional, scale the data was created for (e.g. 500000 for a 1:500000 scale)
441
- type: integer
442
- format: int32
443
- example: 25000
444
- creationProcessDescription:
445
- type: string
446
- description: textual description of dataset lineage
447
-
448
- DatasetPublishRequest:
449
- type: object
450
- description: Name of the dataset in the uploaded package, necessary to identify which dataset to publish from the UploadJobStatus
451
- required:
452
- - nativeName
453
- - metadata
454
- properties:
455
- nativeName:
456
- type: string
457
- description: Name of the dataset in the uploaded package, necessary to identify which dataset to publish from the UploadJobStatus
458
- publishedName:
459
- type: string
460
- description: Name under which the dataset is published to GeoServer, defaults to nativeName. It can be modified by the system to avoid duplicated layer names.
461
- encoding:
462
- type: string
463
- description: Specify which charset (e.g. ISO-8859-1, UTF-8, etc.) to interpret the dataset alphanumeric properties with. Takes effect only for uploaded shapefiles.
464
- srs:
465
- description: Optional, Coordinate Reference System identifier to publish the dataset in. If not provided, the dataset is published using the CRS inferred
466
- during the upload analysis process. If no CRS identifier was determined, the job will fail.
467
- type: string
468
- srs_reproject:
469
- description: Optional, whether to reproject from the native CRS to the one provided in the srs parameter.
470
- If false or not provided, the srs parameter overrides the native CRS without reprojection.
471
- type: boolean
472
- default: false
473
- metadata:
474
- $ref: '#/components/schemas/DatasetMetadata'
475
-
476
- PublishJobStatus:
477
- type: object
478
- description: Describes the processing status of a publishing job for a given upload
479
- properties:
480
- jobId:
481
- type: string
482
- format: uuid
483
- description: Identifier for the upload processing job
484
- progress:
485
- description: Estimated completion progress, from 0 to 1.
486
- type: number
487
- format: double
488
- minimum: 0.0
489
- maximum: 1.0
490
- default: 0.0
491
- status:
492
- $ref: '#/components/schemas/PublishStatusEnum'
493
- error:
494
- type: string
495
- description: short description of the error that prevents the job to complete successfully
496
- datasets:
497
- type: array
498
- items:
499
- $ref: '#/components/schemas/DatasetPublishingStatus'
500
-
501
- DatasetPublishingStatus:
502
- type: object
503
- description: Describes the status of publishing a given dataset
504
- properties:
505
- nativeName:
506
- type: string
507
- description: Name of the dataset in the uploaded package, necessary to identify which dataset to publish from the UploadJobStatus
508
- publishedWorkspace:
509
- type: string
510
- description: Name of the GeoServer workspace under which the dataset has been published.
511
- publishedName:
512
- type: string
513
- description: Final name under which the layer was published to GeoServer. It may have been modified from the requested layer name
514
- in order to avoid duplication if a layer with such name already exists in the target GeoServer workspace.
515
- metadataRecordId:
516
- type: string
517
- description: Identifier for the metadta record created while publishing the dataset's metadata to GeoNetwork.
518
- title:
519
- type: string
520
- status:
521
- $ref: '#/components/schemas/PublishStatusEnum'
522
- error:
523
- type: string
524
- description: short description of the error that prevents the dataset to be published
525
- publish:
526
- type: boolean
527
- description: true if this dataset is scheduled to be published (as requested through a PublishRequest)
528
- progress:
529
- description: Estimated completion progress, from 0 to 1.
530
- type: number
531
- format: double
532
- minimum: 0.0
533
- maximum: 1.0
534
- default: 0.0
535
- progressStep:
536
- $ref: '#/components/schemas/PublishStepEnum'
537
-
@@ -1,36 +0,0 @@
1
- tag-input::ng-deep .ng2-tag-input {
2
- border-bottom: none;
3
- }
4
- tag-input::ng-deep .ng2-tag-input.ng2-tag-input--focused {
5
- border-bottom: none;
6
- }
7
-
8
- tag-input::ng-deep tag {
9
- border-radius: 5px;
10
- background: var(--color-primary-lightest);
11
- font-family: inherit;
12
-
13
- align-content: center;
14
-
15
- font-style: italic;
16
- }
17
-
18
- tag-input::ng-deep
19
- tag::ng-deep:not(:focus):not(.tag--editing):not(:active):not(.readonly):hover,
20
- tag-input::ng-deep
21
- tag:not(:focus):not(.tag--editing):not(:active):not(.readonly):hover {
22
- background: var(--color-primary) !important;
23
- }
24
-
25
- tag-input::ng-deep .tag__text {
26
- padding-right: 7px;
27
- }
28
-
29
- tag-input::ng-deep div,
30
- tag-input::ng-deep form {
31
- height: 100%;
32
- }
33
-
34
- tag-input.invalid {
35
- border-color: var(--color-secondary);
36
- }
@@ -1,23 +0,0 @@
1
- <tag-input
2
- [ngModel]="items"
3
- (ngModelChange)="onChange($event)"
4
- onlyFromAutocomplete="true"
5
- [placeholder]="placeholder"
6
- [secondaryPlaceholder]="placeholder"
7
- [ripple]="false"
8
- [animationDuration]="{ enter: '0ms', leave: '0ms' }"
9
- [onTextChangeDebounce]="100"
10
- class="border-2 border-primary h-full rounded-lg p-2 bg-white text-sm focus:border-primary"
11
- [ngClass]="{ invalid: invalid }"
12
- >
13
- <tag-input-dropdown
14
- [autocompleteObservable]="requestAutocompleteItems"
15
- [minimumTextLength]="0"
16
- [keepOpen]="false"
17
- [showDropdownIfEmpty]="true"
18
- >
19
- <ng-template let-item="item" let-index="index">
20
- {{ item.display }}
21
- </ng-template>
22
- </tag-input-dropdown>
23
- </tag-input>
@@ -1,81 +0,0 @@
1
- import { HttpClient } from '@angular/common/http'
2
- import { Component, Input, OnDestroy, OnInit, Output } from '@angular/core'
3
- import { LANG_2_TO_3_MAPPER } from '../../../../../../libs/util/i18n/src'
4
- import { TranslateService } from '@ngx-translate/core'
5
- import { Observable, of, Subject, Subscription } from 'rxjs'
6
- import { distinctUntilChanged, map, shareReplay, tap } from 'rxjs/operators'
7
-
8
- export interface Items {
9
- display: string
10
- value: string
11
- }
12
-
13
- @Component({
14
- selector: 'gn-ui-chips-input',
15
- templateUrl: './chips-input.component.html',
16
- styleUrls: ['./chips-input.component.css'],
17
- })
18
- export class ChipsInputComponent implements OnInit, OnDestroy {
19
- @Input() url: (text) => string
20
- @Input() placeholder: string
21
- @Input() selectedItems: Items[]
22
- @Input() required = false
23
- @Input() loadOnce = false
24
- @Input() autocompleteItems: Items[] = []
25
- @Output() itemsChange: Observable<Items[]>
26
-
27
- private subscription: Subscription
28
-
29
- invalid = false
30
-
31
- rawChange: Subject<Items[]>
32
-
33
- items: Items[] = []
34
-
35
- loadedItems: Observable<Items[]>
36
-
37
- onChange(event) {
38
- this.rawChange.next(event)
39
- }
40
-
41
- requestAutocompleteItems = (text: string): Observable<any> => {
42
- if (this.url) {
43
- if (this.loadOnce && this.loadedItems) {
44
- return this.loadedItems
45
- }
46
- const url = this.url(text)
47
-
48
- const lang = LANG_2_TO_3_MAPPER[this.translate.currentLang.slice(0, 2)]
49
- return this.http
50
- .get<any>(url.replace('${lang}', lang))
51
- .pipe(map((item) => item.map((i) => i.values[lang])))
52
- } else {
53
- return of(this.autocompleteItems || [])
54
- }
55
- }
56
-
57
- constructor(
58
- private http: HttpClient,
59
- private translate: TranslateService
60
- ) {
61
- this.rawChange = new Subject<Items[]>()
62
- this.itemsChange = this.rawChange.pipe(distinctUntilChanged())
63
- this.subscription = new Subscription()
64
- }
65
-
66
- ngOnInit(): void {
67
- if (this.loadOnce) {
68
- this.loadedItems = this.requestAutocompleteItems('*').pipe(shareReplay(1))
69
- }
70
-
71
- this.items = this.selectedItems
72
- this.subscription = this.rawChange
73
- .pipe(tap((v) => (this.invalid = v.length === 0)))
74
- .subscribe()
75
- this.rawChange.next(this.items)
76
- }
77
-
78
- ngOnDestroy() {
79
- this.subscription.unsubscribe()
80
- }
81
- }
@@ -1,3 +0,0 @@
1
- .icon-check {
2
- color: var(--color-primary);
3
- }
@@ -1,13 +0,0 @@
1
- <div class="relative flex flex-col justify-center">
2
- <div class="flex justify-between ml-16 mr-16 z-10 circle-steps">
3
- <div
4
- *ngFor="let step of stepCounter; let i = index"
5
- class="shadow-md rounded-full h-6 w-6 {{ getCircleColor(i + 1) }}"
6
- >
7
- <span class="icon-check pl-1" *ngIf="getChecked(i)"></span>
8
- </div>
9
- </div>
10
- <div
11
- class="absolute rounded-lg right-0 w-full {{ color.outerBar }} h-2 z-0"
12
- ></div>
13
- </div>