geonetwork-ui 2.4.0-dev.00c93bef → 2.4.0-dev.10a614b2

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 (255) hide show
  1. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +5 -5
  2. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +30 -2
  3. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.mjs +31 -0
  4. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +23 -1
  5. package/esm2022/libs/api/metadata-converter/src/lib/xml-utils.mjs +10 -3
  6. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +31 -3
  7. package/esm2022/libs/common/domain/src/lib/model/record/contact.model.mjs +28 -1
  8. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  9. package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
  10. package/esm2022/libs/data-access/gn4/src/openapi/api/records.api.service.mjs +2 -6
  11. package/esm2022/libs/feature/editor/src/lib/components/contact-card/contact-card.component.mjs +29 -0
  12. package/esm2022/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.mjs +131 -0
  13. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +170 -0
  14. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.mjs +3 -3
  15. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.mjs +47 -0
  16. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.mjs +21 -0
  17. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.mjs +7 -6
  18. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +33 -9
  19. package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +3 -3
  20. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +8 -8
  21. package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +6 -4
  22. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +30 -3
  23. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +6 -6
  24. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +6 -5
  25. package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +8 -5
  26. package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +6 -7
  27. package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +8 -7
  28. package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +7 -6
  29. package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +7 -26
  30. package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +29 -13
  31. package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +10 -5
  32. package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +3 -3
  33. package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +46 -7
  34. package/esm2022/libs/feature/search/src/lib/state/search.facade.mjs +6 -2
  35. package/esm2022/libs/ui/elements/src/index.mjs +2 -1
  36. package/esm2022/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.mjs +27 -0
  37. package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +4 -3
  38. package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +2 -2
  39. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +3 -3
  40. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +5 -11
  41. package/esm2022/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.mjs +3 -3
  42. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +5 -5
  43. package/esm2022/libs/ui/elements/src/lib/sortable-list/sortable-list.component.mjs +7 -3
  44. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +11 -5
  45. package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +19 -5
  46. package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +17 -14
  47. package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +6 -21
  48. package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +6 -17
  49. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +3 -7
  50. package/esm2022/libs/ui/inputs/src/lib/url-input/url-input.component.mjs +43 -0
  51. package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +3 -3
  52. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +3 -3
  53. package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +67 -0
  54. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +28 -8
  55. package/esm2022/libs/ui/widgets/src/index.mjs +2 -1
  56. package/esm2022/libs/ui/widgets/src/lib/popover/popover.component.mjs +68 -0
  57. package/esm2022/translations/de.json +48 -17
  58. package/esm2022/translations/en.json +41 -10
  59. package/esm2022/translations/es.json +40 -9
  60. package/esm2022/translations/fr.json +53 -22
  61. package/esm2022/translations/it.json +41 -10
  62. package/esm2022/translations/nl.json +40 -9
  63. package/esm2022/translations/pt.json +40 -9
  64. package/fesm2022/geonetwork-ui.mjs +4192 -3172
  65. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  66. package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts.map +1 -1
  67. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +8 -1
  68. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
  69. package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts +5 -0
  70. package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts.map +1 -0
  71. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +3 -1
  72. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  73. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts +1 -0
  74. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts.map +1 -1
  75. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +7 -1
  76. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  77. package/libs/common/domain/src/lib/model/record/contact.model.d.ts +1 -0
  78. package/libs/common/domain/src/lib/model/record/contact.model.d.ts.map +1 -1
  79. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +2 -1
  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 +17 -0
  82. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  83. package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts.map +1 -1
  84. package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts +12 -0
  85. package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts.map +1 -0
  86. package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.d.ts +27 -0
  87. package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.d.ts.map +1 -0
  88. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts +47 -0
  89. 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 -0
  90. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.d.ts +17 -0
  91. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.d.ts.map +1 -0
  92. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts +11 -0
  93. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts.map +1 -0
  94. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts +3 -1
  95. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts.map +1 -1
  96. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +9 -1
  97. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
  98. package/libs/feature/editor/src/lib/feature-editor.module.d.ts +2 -1
  99. package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
  100. package/libs/feature/editor/src/lib/fields.config.d.ts +7 -0
  101. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  102. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts +1 -1
  103. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts.map +1 -1
  104. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts +1 -1
  105. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts.map +1 -1
  106. package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts +1 -1
  107. package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts.map +1 -1
  108. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +1 -1
  109. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -1
  110. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts +1 -1
  111. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts.map +1 -1
  112. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts +1 -1
  113. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts.map +1 -1
  114. package/libs/feature/map/src/lib/feature-map.module.d.ts +16 -21
  115. package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
  116. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts +1 -1
  117. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts.map +1 -1
  118. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
  119. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +14 -4
  120. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
  121. package/libs/feature/search/src/lib/state/search.facade.d.ts +1 -0
  122. package/libs/feature/search/src/lib/state/search.facade.d.ts.map +1 -1
  123. package/libs/ui/elements/src/index.d.ts +1 -0
  124. package/libs/ui/elements/src/index.d.ts.map +1 -1
  125. package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts +18 -0
  126. package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts.map +1 -0
  127. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
  128. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts +0 -3
  129. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts.map +1 -1
  130. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +1 -1
  131. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts +4 -4
  132. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts.map +1 -1
  133. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +8 -6
  134. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  135. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts +9 -1
  136. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
  137. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts +3 -4
  138. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts.map +1 -1
  139. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts +0 -4
  140. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts.map +1 -1
  141. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts +2 -4
  142. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts.map +1 -1
  143. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +34 -35
  144. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  145. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts +18 -0
  146. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts.map +1 -0
  147. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +20 -0
  148. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -0
  149. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +9 -3
  150. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  151. package/libs/ui/widgets/src/index.d.ts +1 -0
  152. package/libs/ui/widgets/src/index.d.ts.map +1 -1
  153. package/libs/ui/widgets/src/lib/popover/popover.component.d.ts +19 -0
  154. package/libs/ui/widgets/src/lib/popover/popover.component.d.ts.map +1 -0
  155. package/package.json +1 -1
  156. package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +5 -1
  157. package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +37 -12
  158. package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +5 -1
  159. package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +4 -2
  160. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +72 -2
  161. package/src/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.ts +39 -0
  162. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +70 -1
  163. package/src/libs/api/metadata-converter/src/lib/xml-utils.ts +13 -5
  164. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +42 -2
  165. package/src/libs/common/domain/src/lib/model/record/contact.model.ts +28 -0
  166. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +2 -1
  167. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +22 -0
  168. package/src/libs/data-access/gn4/src/openapi/api/records.api.service.ts +1 -5
  169. package/src/libs/data-access/gn4/src/spec.yaml +0 -8
  170. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.css +0 -0
  171. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.html +25 -0
  172. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.ts +30 -0
  173. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html +2 -1
  174. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts +110 -19
  175. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.css +0 -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.html +76 -0
  177. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +271 -0
  178. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.html +1 -1
  179. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.css +0 -0
  180. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.html +6 -0
  181. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.ts +59 -0
  182. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.css +0 -0
  183. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.html +5 -0
  184. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +22 -0
  185. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts +8 -7
  186. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +18 -1
  187. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +30 -1
  188. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.html +1 -1
  189. package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.html +1 -1
  190. package/src/libs/feature/editor/src/lib/feature-editor.module.ts +2 -1
  191. package/src/libs/feature/editor/src/lib/fields.config.ts +32 -2
  192. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.ts +3 -0
  193. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts +5 -1
  194. package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.ts +5 -0
  195. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.html +1 -1
  196. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +10 -7
  197. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.html +1 -1
  198. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts +5 -0
  199. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.html +1 -1
  200. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts +6 -1
  201. package/src/libs/feature/map/src/lib/feature-map.module.ts +2 -15
  202. package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.ts +24 -1
  203. package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +8 -4
  204. package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +1 -1
  205. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +3 -1
  206. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +57 -3
  207. package/src/libs/feature/search/src/lib/state/search.facade.ts +6 -0
  208. package/src/libs/ui/elements/src/index.ts +1 -0
  209. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.css +0 -0
  210. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.html +12 -0
  211. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.ts +37 -0
  212. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +4 -1
  213. package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.css +2 -1
  214. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +12 -8
  215. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +14 -20
  216. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +0 -10
  217. package/src/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.html +1 -1
  218. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +2 -2
  219. package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.html +3 -1
  220. package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.ts +8 -4
  221. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +8 -2
  222. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +15 -3
  223. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.css +0 -0
  224. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.html +85 -0
  225. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.ts +91 -0
  226. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.html +49 -49
  227. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.ts +15 -13
  228. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.html +2 -1
  229. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +2 -27
  230. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.html +4 -3
  231. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.ts +4 -16
  232. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +0 -3
  233. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.css +9 -0
  234. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.html +37 -0
  235. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.ts +33 -0
  236. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +1 -1
  237. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +1 -0
  238. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.css +0 -0
  239. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +26 -0
  240. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +74 -0
  241. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +15 -1
  242. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +26 -12
  243. package/src/libs/ui/widgets/src/index.ts +1 -0
  244. package/src/libs/ui/widgets/src/lib/popover/popover.component.css +0 -0
  245. package/src/libs/ui/widgets/src/lib/popover/popover.component.html +3 -0
  246. package/src/libs/ui/widgets/src/lib/popover/popover.component.ts +85 -0
  247. package/tailwind.base.css +18 -5
  248. package/translations/de.json +48 -17
  249. package/translations/en.json +41 -10
  250. package/translations/es.json +40 -9
  251. package/translations/fr.json +53 -22
  252. package/translations/it.json +41 -10
  253. package/translations/nl.json +40 -9
  254. package/translations/pt.json +40 -9
  255. package/translations/sk.json +41 -10
@@ -7,17 +7,16 @@ import {
7
7
  } from '@angular/core'
8
8
  import { Subject } from 'rxjs'
9
9
  import { distinctUntilChanged } from 'rxjs/operators'
10
+ import { CommonModule } from '@angular/common'
10
11
 
11
12
  @Component({
12
13
  selector: 'gn-ui-text-area',
13
14
  templateUrl: './text-area.component.html',
14
15
  styleUrls: ['./text-area.component.css'],
15
16
  standalone: true,
17
+ imports: [CommonModule],
16
18
  })
17
19
  export class TextAreaComponent implements AfterViewInit {
18
- private readonly baseClasses: string
19
- private readonly disabledClasses: string
20
-
21
20
  @Input() value = ''
22
21
  @Input() disabled = false
23
22
  @Input() extraClass = ''
@@ -29,30 +28,6 @@ export class TextAreaComponent implements AfterViewInit {
29
28
 
30
29
  @ViewChild('input') input
31
30
 
32
- constructor() {
33
- this.baseClasses = [
34
- 'w-full',
35
- 'pt-2',
36
- 'pl-2',
37
- 'resize-none',
38
- 'border',
39
- 'border-gray-800',
40
- 'rounded italic',
41
- 'leading-tight',
42
- 'focus:outline-none',
43
- 'focus:bg-background',
44
- 'focus:border-primary',
45
- ].join(' ')
46
-
47
- this.disabledClasses = ['cursor-not-allowed'].join(' ')
48
- }
49
-
50
- get classList() {
51
- return `${this.baseClasses} ${this.extraClass} ${
52
- this.disabled ? this.disabledClasses : ''
53
- }`
54
- }
55
-
56
31
  ngAfterViewInit() {
57
32
  this.checkRequired(this.input.nativeElement.value)
58
33
  }
@@ -1,12 +1,13 @@
1
1
  <input
2
2
  #input
3
- [class]="classList"
3
+ class="gn-ui-text-input"
4
+ [ngClass]="extraClass"
4
5
  type="text"
5
6
  [value]="value"
6
7
  (change)="handleChange($event)"
7
8
  (input)="handleChange($event)"
8
- [placeholder]="hint"
9
- [attr.aria-label]="hint"
9
+ [placeholder]="placeholder"
10
+ [attr.aria-label]="placeholder"
10
11
  [attr.required]="required || null"
11
12
  [disabled]="disabled"
12
13
  />
@@ -7,37 +7,25 @@ import {
7
7
  } from '@angular/core'
8
8
  import { distinctUntilChanged } from 'rxjs/operators'
9
9
  import { Subject } from 'rxjs'
10
+ import { CommonModule } from '@angular/common'
10
11
 
11
12
  @Component({
12
13
  selector: 'gn-ui-text-input',
13
14
  templateUrl: './text-input.component.html',
14
15
  styleUrls: ['./text-input.component.css'],
16
+ standalone: true,
17
+ imports: [CommonModule],
15
18
  })
16
19
  export class TextInputComponent implements AfterViewInit {
17
- private readonly baseClass = [
18
- 'appearance-none',
19
- 'border border-gray-300',
20
- 'rounded w-full',
21
- 'p-2',
22
- 'text-gray-700',
23
- 'leading-tight',
24
- 'focus:outline-none',
25
- 'focus:border-primary',
26
- ].join(' ')
27
-
28
20
  @Input() value = ''
29
21
  @Input() extraClass = ''
30
- @Input() hint: string
22
+ @Input() placeholder: string
31
23
  @Input() required = false
32
24
  @Input() disabled: boolean
33
25
  rawChange = new Subject<string>()
34
26
  @Output() valueChange = this.rawChange.pipe(distinctUntilChanged())
35
27
  @ViewChild('input') input
36
28
 
37
- get classList() {
38
- return `${this.baseClass} ${this.extraClass}`
39
- }
40
-
41
29
  ngAfterViewInit() {
42
30
  this.checkRequired(this.input.nativeElement.value)
43
31
  }
@@ -10,7 +10,6 @@ import { ChipsInputComponent } from './chips-input/chips-input.component'
10
10
  import { DragAndDropFileInputComponent } from './drag-and-drop-file-input/drag-and-drop-file-input.component'
11
11
  import { DropdownSelectorComponent } from './dropdown-selector/dropdown-selector.component'
12
12
  import { TextAreaComponent } from './text-area/text-area.component'
13
- import { TextInputComponent } from './text-input/text-input.component'
14
13
  import { MatAutocompleteModule } from '@angular/material/autocomplete'
15
14
  import { MatIconModule } from '@angular/material/icon'
16
15
  import { NavigationButtonComponent } from './navigation-button/navigation-button.component'
@@ -36,7 +35,6 @@ import { ImageInputComponent } from './image-input/image-input.component'
36
35
 
37
36
  @NgModule({
38
37
  declarations: [
39
- TextInputComponent,
40
38
  DragAndDropFileInputComponent,
41
39
  ChipsInputComponent,
42
40
  NavigationButtonComponent,
@@ -77,7 +75,6 @@ import { ImageInputComponent } from './image-input/image-input.component'
77
75
  exports: [
78
76
  DropdownSelectorComponent,
79
77
  ButtonComponent,
80
- TextInputComponent,
81
78
  DragAndDropFileInputComponent,
82
79
  TextAreaComponent,
83
80
  ChipsInputComponent,
@@ -0,0 +1,9 @@
1
+ :host {
2
+ --gn-ui-button-rounded: 8px;
3
+ --gn-ui-button-width: 32px;
4
+ --gn-ui-button-padding: 0;
5
+
6
+ --side-padding: calc(var(--gn-ui-text-input-padding, 0.6em) - 6px);
7
+ --2x-side-padding: calc(var(--side-padding) * 2);
8
+ --text-padding: calc(var(--side-padding) + 40px);
9
+ }
@@ -0,0 +1,37 @@
1
+ <span class="w-full inline-block relative">
2
+ <input
3
+ #input
4
+ class="gn-ui-text-input px-[var(--text-padding)]"
5
+ [ngClass]="extraClass"
6
+ type="url"
7
+ [value]="value"
8
+ (input)="handleInput()"
9
+ (keydown.enter)="handleChange(input)"
10
+ [placeholder]="placeholder"
11
+ [attr.aria-label]="placeholder"
12
+ [disabled]="disabled"
13
+ />
14
+ <div
15
+ class="absolute inset-y-[var(--side-padding)] left-[var(--2x-side-padding)] grid justify-center items-center pointer-events-none"
16
+ [ngClass]='{
17
+ "text-primary": !disabled,
18
+ "text-primary-lightest": disabled,
19
+ }'
20
+ >
21
+ <mat-icon
22
+ class="material-symbols-outlined h-[24px] !w-[26px] text-[28px] leading-[24px]"
23
+ >
24
+ link
25
+ </mat-icon>
26
+ </div>
27
+ <gn-ui-button
28
+ extraClass="absolute inset-y-[var(--side-padding)] right-[var(--side-padding)]"
29
+ type="primary"
30
+ [disabled]="disabled || input.value === ''"
31
+ (buttonClick)="handleChange(input)"
32
+ >
33
+ <mat-icon class="material-symbols-outlined text-[20px] leading-[26px]">
34
+ arrow_upward
35
+ </mat-icon>
36
+ </gn-ui-button>
37
+ </span>
@@ -0,0 +1,33 @@
1
+ import { ChangeDetectorRef, Component, Input, Output } from '@angular/core'
2
+ import { CommonModule } from '@angular/common'
3
+ import { ButtonComponent } from '../button/button.component'
4
+ import { MatIconModule } from '@angular/material/icon'
5
+ import { filter } from 'rxjs/operators'
6
+ import { Subject } from 'rxjs'
7
+
8
+ @Component({
9
+ selector: 'gn-ui-url-input',
10
+ templateUrl: './url-input.component.html',
11
+ styleUrls: ['./url-input.component.css'],
12
+ standalone: true,
13
+ imports: [CommonModule, ButtonComponent, MatIconModule],
14
+ })
15
+ export class UrlInputComponent {
16
+ @Input() value = ''
17
+ @Input() extraClass = ''
18
+ @Input() placeholder = 'https://'
19
+ @Input() disabled: boolean
20
+ rawChange = new Subject<string>()
21
+ @Output() valueChange = this.rawChange.pipe(filter((v) => !!v))
22
+
23
+ constructor(private cd: ChangeDetectorRef) {}
24
+
25
+ handleInput() {
26
+ this.cd.markForCheck()
27
+ }
28
+
29
+ handleChange(element: HTMLInputElement) {
30
+ const value = element.value
31
+ this.rawChange.next(value)
32
+ }
33
+ }
@@ -12,7 +12,7 @@
12
12
  </span>
13
13
  </div>
14
14
  </div>
15
- <div class="flex-1">
15
+ <div class="flex-1 overflow-y-auto">
16
16
  <ng-content></ng-content>
17
17
  </div>
18
18
  </div>
@@ -30,6 +30,7 @@
30
30
  class="contents text-gray-900 cursor-pointer group"
31
31
  *ngFor="let item of items"
32
32
  (click)="handleRowClick(item)"
33
+ data-cy="table-row"
33
34
  >
34
35
  <div
35
36
  class="relative h-0"
@@ -0,0 +1,26 @@
1
+ <gn-ui-button
2
+ type="light"
3
+ [matMenuTriggerFor]="menu"
4
+ (buttonClick)="openMenu()"
5
+ data-test="record-menu-button"
6
+ >
7
+ <mat-icon class="material-symbols-outlined">more_vert</mat-icon>
8
+ </gn-ui-button>
9
+ <mat-menu #menu="matMenu">
10
+ <button
11
+ mat-menu-item
12
+ [disabled]="!canDuplicate"
13
+ (click)="duplicate.emit()"
14
+ data-test="record-menu-duplicate-button"
15
+ >
16
+ <span translate>record.action.duplicate</span>
17
+ </button>
18
+ <button
19
+ mat-menu-item
20
+ [disabled]="!canDelete"
21
+ (click)="openDeleteConfirmationDialog()"
22
+ data-test="record-menu-delete-button"
23
+ >
24
+ <span translate>record.action.delete</span>
25
+ </button>
26
+ </mat-menu>
@@ -0,0 +1,74 @@
1
+ import {
2
+ Component,
3
+ EventEmitter,
4
+ Input,
5
+ Output,
6
+ ViewChild,
7
+ } from '@angular/core'
8
+ import { MatDialog, MatDialogModule } from '@angular/material/dialog'
9
+ import { MatIconModule } from '@angular/material/icon'
10
+ import { MatMenuModule, MatMenuTrigger } from '@angular/material/menu'
11
+ import { ConfirmationDialogComponent } from '../../../../../../../libs/ui/elements/src'
12
+ import { ButtonComponent } from '../../../../../../../libs/ui/inputs/src'
13
+ import { TranslateModule, TranslateService } from '@ngx-translate/core'
14
+
15
+ @Component({
16
+ selector: 'gn-ui-action-menu',
17
+ templateUrl: './action-menu.component.html',
18
+ styleUrls: ['./action-menu.component.css'],
19
+ standalone: true,
20
+ imports: [
21
+ MatIconModule,
22
+ ButtonComponent,
23
+ MatMenuModule,
24
+ MatDialogModule,
25
+ ConfirmationDialogComponent,
26
+ TranslateModule,
27
+ ],
28
+ })
29
+ export class ActionMenuComponent {
30
+ @Input() canDuplicate: boolean
31
+ @Input() canDelete: boolean
32
+ @Output() duplicate = new EventEmitter<void>()
33
+ @Output() delete = new EventEmitter<void>()
34
+
35
+ @ViewChild(MatMenuTrigger) trigger: MatMenuTrigger
36
+
37
+ constructor(
38
+ public dialog: MatDialog,
39
+ private translateService: TranslateService
40
+ ) {}
41
+
42
+ openMenu() {
43
+ this.trigger.openMenu()
44
+ }
45
+
46
+ openDeleteConfirmationDialog() {
47
+ const dialogRef = this.dialog.open(ConfirmationDialogComponent, {
48
+ data: {
49
+ title: this.translateService.instant(
50
+ 'editor.record.delete.confirmation.title'
51
+ ),
52
+ message: this.translateService.instant(
53
+ 'editor.record.delete.confirmation.message'
54
+ ),
55
+ confirmText: this.translateService.instant(
56
+ 'editor.record.delete.confirmation.confirmText'
57
+ ),
58
+ cancelText: this.translateService.instant(
59
+ 'editor.record.delete.confirmation.cancelText'
60
+ ),
61
+ },
62
+ restoreFocus: false,
63
+ })
64
+
65
+ // Manually restore focus to the menu trigger since the element that
66
+ // opens the dialog won't be in the DOM any more when the dialog closes.
67
+ dialogRef.afterClosed().subscribe((confirmed) => {
68
+ this.trigger.focus()
69
+ if (confirmed) {
70
+ this.delete.emit()
71
+ }
72
+ })
73
+ }
74
+ }
@@ -37,7 +37,7 @@
37
37
  <div class="flex flex-row items-center gap-2 max-w-full">
38
38
  <span class="overflow-hidden text-ellipsis">{{ item.title }}</span>
39
39
  <gn-ui-badge
40
- *ngIf="recordHasDraft(item)"
40
+ *ngIf="hasDraft(item)"
41
41
  [style.--gn-ui-badge-padding]="'0.4em 0.6em'"
42
42
  [style.--gn-ui-badge-text-color]="'#3d2006'"
43
43
  [style.--gn-ui-badge-background-color]="'#ffbc7b'"
@@ -120,4 +120,18 @@
120
120
  {{ dateToString(item.recordUpdated) }}
121
121
  </ng-template>
122
122
  </gn-ui-interactive-table-column>
123
+
124
+ <!-- ACTION MENU COLUMN -->
125
+ <gn-ui-interactive-table-column>
126
+ <ng-template #header> </ng-template>
127
+ <ng-template #cell let-item>
128
+ <gn-ui-action-menu
129
+ [canDuplicate]="canDuplicate(item)"
130
+ [canDelete]="canDelete(item)"
131
+ (duplicate)="handleDuplicate(item)"
132
+ (delete)="handleDelete(item)"
133
+ >
134
+ </gn-ui-action-menu>
135
+ </ng-template>
136
+ </gn-ui-interactive-table-column>
123
137
  </gn-ui-interactive-table>
@@ -1,23 +1,24 @@
1
+ import { CommonModule } from '@angular/common'
1
2
  import { Component, EventEmitter, Input, Output } from '@angular/core'
3
+ import { MatIconModule } from '@angular/material/icon'
2
4
  import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
3
5
  import {
4
- FileFormat,
5
- getBadgeColor,
6
- getFileFormat,
7
- getFormatPriority,
8
- } from '../../../../../../libs/util/shared/src'
6
+ FieldSort,
7
+ SortByField,
8
+ } from '../../../../../../libs/common/domain/src/lib/model/search'
9
9
  import { BadgeComponent, UiInputsModule } from '../../../../../../libs/ui/inputs/src'
10
10
  import {
11
11
  InteractiveTableColumnComponent,
12
12
  InteractiveTableComponent,
13
13
  } from '../../../../../../libs/ui/layout/src'
14
- import { MatIconModule } from '@angular/material/icon'
15
- import { TranslateModule } from '@ngx-translate/core'
16
- import { CommonModule } from '@angular/common'
17
14
  import {
18
- FieldSort,
19
- SortByField,
20
- } from '../../../../../../libs/common/domain/src/lib/model/search'
15
+ FileFormat,
16
+ getBadgeColor,
17
+ getFileFormat,
18
+ getFormatPriority,
19
+ } from '../../../../../../libs/util/shared/src'
20
+ import { TranslateModule } from '@ngx-translate/core'
21
+ import { ActionMenuComponent } from './action-menu/action-menu.component'
21
22
 
22
23
  @Component({
23
24
  selector: 'gn-ui-results-table',
@@ -32,17 +33,22 @@ import {
32
33
  MatIconModule,
33
34
  TranslateModule,
34
35
  BadgeComponent,
36
+ ActionMenuComponent,
35
37
  ],
36
38
  })
37
39
  export class ResultsTableComponent {
38
40
  @Input() records: CatalogRecord[] = []
39
41
  @Input() selectedRecordsIdentifiers: string[] = []
40
42
  @Input() sortOrder: SortByField = null
41
- @Input() recordHasDraft: (record: CatalogRecord) => boolean = () => false
43
+ @Input() hasDraft: (record: CatalogRecord) => boolean = () => false
44
+ @Input() canDuplicate: (record: CatalogRecord) => boolean = () => true
45
+ @Input() canDelete: (record: CatalogRecord) => boolean = () => true
42
46
 
43
47
  // emits the column (field) as well as the order
44
48
  @Output() sortByChange = new EventEmitter<[string, 'asc' | 'desc']>()
45
49
  @Output() recordClick = new EventEmitter<CatalogRecord>()
50
+ @Output() duplicateRecord = new EventEmitter<CatalogRecord>()
51
+ @Output() deleteRecord = new EventEmitter<CatalogRecord>()
46
52
  @Output() recordsSelectedChange = new EventEmitter<
47
53
  [CatalogRecord[], boolean]
48
54
  >()
@@ -89,6 +95,14 @@ export class ResultsTableComponent {
89
95
  this.recordClick.emit(item as CatalogRecord)
90
96
  }
91
97
 
98
+ handleDuplicate(item: unknown) {
99
+ this.duplicateRecord.emit(item as CatalogRecord)
100
+ }
101
+
102
+ handleDelete(item: unknown) {
103
+ this.deleteRecord.emit(item as CatalogRecord)
104
+ }
105
+
92
106
  setSortBy(col: string, order: 'asc' | 'desc') {
93
107
  this.sortByChange.emit([col, order])
94
108
  }
@@ -1,5 +1,6 @@
1
1
  export * from './lib/ui-widgets.module'
2
2
  export * from './lib/progress-bar/progress-bar.component'
3
+ export * from './lib/popover/popover.component'
3
4
  export * from './lib/loading-mask/loading-mask.component'
4
5
  export * from './lib/color-scale/color-scale.component'
5
6
  export * from './lib/popup-alert/popup-alert.component'
@@ -0,0 +1,3 @@
1
+ <span #popoverContent>
2
+ <ng-content></ng-content>
3
+ </span>
@@ -0,0 +1,85 @@
1
+ import { CommonModule } from '@angular/common'
2
+ import {
3
+ Component,
4
+ AfterViewInit,
5
+ ElementRef,
6
+ Input,
7
+ ViewChild,
8
+ OnDestroy,
9
+ OnChanges,
10
+ SimpleChanges,
11
+ TemplateRef,
12
+ Renderer2,
13
+ ViewContainerRef,
14
+ EmbeddedViewRef,
15
+ } from '@angular/core'
16
+ import tippy, { Instance } from 'tippy.js'
17
+
18
+ @Component({
19
+ selector: 'gn-ui-popover',
20
+ templateUrl: './popover.component.html',
21
+ styleUrls: ['./popover.component.css'],
22
+ standalone: true,
23
+ imports: [CommonModule],
24
+ })
25
+ export class PopoverComponent implements AfterViewInit, OnChanges, OnDestroy {
26
+ @ViewChild('popoverContent', { static: false }) popoverContent: ElementRef
27
+ @Input() content: string | TemplateRef<any>
28
+ @Input() theme: 'light' | 'light-border' | 'translucent' | 'material' | ''
29
+
30
+ private tippyInstance: Instance
31
+ private view: EmbeddedViewRef<any>
32
+
33
+ constructor(
34
+ private viewContainerRef: ViewContainerRef,
35
+ private renderer: Renderer2
36
+ ) {}
37
+
38
+ private getContent(): string | HTMLElement {
39
+ if (this.content instanceof TemplateRef) {
40
+ if (this.view) {
41
+ this.view.destroy()
42
+ }
43
+ this.view = this.viewContainerRef.createEmbeddedView(this.content)
44
+ this.view.detectChanges()
45
+ const wrapper = this.renderer.createElement('div') // Create a wrapper div
46
+ this.view.rootNodes.forEach((node) => {
47
+ this.renderer.appendChild(wrapper, node) // Append each root node to the wrapper
48
+ })
49
+ return wrapper
50
+ }
51
+ return this.content
52
+ }
53
+
54
+ ngAfterViewInit(): void {
55
+ this.tippyInstance = tippy(this.popoverContent.nativeElement as Element, {
56
+ content: this.getContent(),
57
+ allowHTML: true,
58
+ theme: this.theme,
59
+ })
60
+ }
61
+
62
+ ngOnChanges(changes: SimpleChanges): void {
63
+ if (changes['theme']) {
64
+ this.theme = changes['theme'].currentValue
65
+ if (this.tippyInstance) {
66
+ this.tippyInstance.setProps({ theme: this.theme })
67
+ }
68
+ }
69
+ if (changes['content']) {
70
+ this.content = changes['content'].currentValue
71
+ if (this.tippyInstance) {
72
+ this.tippyInstance.setContent(this.getContent())
73
+ }
74
+ }
75
+ }
76
+
77
+ ngOnDestroy(): void {
78
+ if (this.tippyInstance) {
79
+ this.tippyInstance.destroy()
80
+ }
81
+ if (this.view) {
82
+ this.view.destroy()
83
+ }
84
+ }
85
+ }
package/tailwind.base.css CHANGED
@@ -74,10 +74,6 @@
74
74
  margin-bottom: -0.325em;
75
75
  flex-shrink: 0;
76
76
  }
77
- /* makes spinners appear in the right color */
78
- .gn-ui-btn mat-spinner circle {
79
- stroke: currentColor !important;
80
- }
81
77
 
82
78
  .gn-ui-btn-default {
83
79
  @apply gn-ui-btn text-white
@@ -115,7 +111,8 @@
115
111
  --padding: var(--gn-ui-badge-padding, 0.375em 0.75em);
116
112
  --text-color: var(--gn-ui-badge-text-color, var(--color-gray-50));
117
113
  --background-color: var(--gn-ui-badge-background-color, black);
118
- @apply inline-block opacity-70 p-[--padding] rounded-[--rounded]
114
+ --opacity: var(--gn-ui-badge-opacity, 0.7);
115
+ @apply inline-block opacity-[--opacity] p-[--padding] rounded-[--rounded]
119
116
  font-medium text-[length:0.875em] leading-none text-[color:--text-color] bg-[color:--background-color];
120
117
  }
121
118
  /* makes sure icons will not make the badges grow vertically; also make size proportional */
@@ -134,10 +131,26 @@
134
131
  @apply flex items-center justify-center px-4 py-1 text-white rounded backdrop-blur;
135
132
  }
136
133
 
134
+ /* GENERIC TEXT INPUT (textarea, text field, url input...) */
135
+ .gn-ui-text-input {
136
+ --rounded: var(--gn-ui-text-input-rounded, 0.25em);
137
+ --padding: var(--gn-ui-text-input-padding, 0.6em);
138
+ @apply appearance-none border-2 p-[--padding] rounded-[--rounded] w-full transition-colors duration-75
139
+ text-[14px] leading-none border-gray-300 text-main placeholder-gray-800
140
+ focus:outline-none focus:border-main hover:border-main
141
+ disabled:cursor-not-allowed disabled:border-gray-100 disabled:placeholder-gray-300 disabled:text-gray-700 disabled:bg-white;
142
+ }
143
+
137
144
  /* TODO: add prefix */
138
145
  .card-icon {
139
146
  @apply text-primary opacity-50 group-hover:text-secondary group-hover:opacity-100 transition-colors transition-opacity;
140
147
  }
148
+
149
+ /* makes spinners appear in the right color */
150
+ mat-spinner circle,
151
+ mat-progress-spinner circle {
152
+ stroke: currentColor !important;
153
+ }
141
154
  }
142
155
 
143
156
  html {