imio.smartweb.core 1.2.12__py3-none-any.whl → 1.2.68__py3-none-any.whl

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 (361) hide show
  1. imio/smartweb/core/behaviors/categorization.py +24 -0
  2. imio/smartweb/core/behaviors/configure.zcml +7 -0
  3. imio/smartweb/core/browser/configure.zcml +41 -1
  4. imio/smartweb/core/browser/controlpanel.py +41 -0
  5. imio/smartweb/core/browser/dashboards/configure.zcml +0 -2
  6. imio/smartweb/core/browser/dashboards/plausible.py +4 -4
  7. imio/smartweb/core/browser/faceted/block_view.pt +4 -4
  8. imio/smartweb/core/browser/faceted/summary_view.pt +4 -4
  9. imio/smartweb/core/browser/forms.py +3 -3
  10. imio/smartweb/core/browser/redirect_to_main_react_view.py +52 -0
  11. imio/smartweb/core/browser/search/search.pt +2 -1
  12. imio/smartweb/core/browser/search/search.py +4 -0
  13. imio/smartweb/core/browser/sitemap.py +148 -0
  14. imio/smartweb/core/browser/static/icons/action-delete.svg +3 -0
  15. imio/smartweb/core/browser/static/icons/action-e-guichet.svg +1 -1
  16. imio/smartweb/core/browser/static/icons/action-email.svg +1 -1
  17. imio/smartweb/core/browser/static/icons/action-engagement-2.svg +4 -0
  18. imio/smartweb/core/browser/static/icons/action-engagement.svg +1 -1
  19. imio/smartweb/core/browser/static/icons/action-nous-contacter.svg +1 -1
  20. imio/smartweb/core/browser/static/icons/action-nous-rejoindre.svg +2 -1
  21. imio/smartweb/core/browser/static/icons/action-organiser-un-evenement.svg +1 -1
  22. imio/smartweb/core/browser/static/icons/action-panneaux.svg +3 -0
  23. imio/smartweb/core/browser/static/icons/action-signaler-un-probleme.svg +1 -1
  24. imio/smartweb/core/browser/static/icons/action-voir-plan.svg +1 -1
  25. imio/smartweb/core/browser/static/icons/action-vote.svg +3 -0
  26. imio/smartweb/core/browser/static/icons/categorie-associations.svg +1 -1
  27. imio/smartweb/core/browser/static/icons/categorie-attention.svg +3 -0
  28. imio/smartweb/core/browser/static/icons/categorie-avis-et-enquetes.svg +1 -1
  29. imio/smartweb/core/browser/static/icons/categorie-cinema.svg +1 -1
  30. imio/smartweb/core/browser/static/icons/categorie-commerce.svg +1 -1
  31. imio/smartweb/core/browser/static/icons/categorie-concert.svg +1 -1
  32. imio/smartweb/core/browser/static/icons/categorie-culture.svg +1 -1
  33. imio/smartweb/core/browser/static/icons/categorie-demarches.svg +1 -1
  34. imio/smartweb/core/browser/static/icons/categorie-enfance.svg +1 -1
  35. imio/smartweb/core/browser/static/icons/categorie-enseignement.svg +1 -1
  36. imio/smartweb/core/browser/static/icons/categorie-environnement-gestion-des-dechets.svg +1 -1
  37. imio/smartweb/core/browser/static/icons/categorie-exposition.svg +1 -1
  38. imio/smartweb/core/browser/static/icons/categorie-horaires.svg +1 -1
  39. imio/smartweb/core/browser/static/icons/categorie-infos-travaux-2.svg +4 -0
  40. imio/smartweb/core/browser/static/icons/categorie-infos-travaux.svg +1 -1
  41. imio/smartweb/core/browser/static/icons/categorie-mandataires.svg +1 -1
  42. imio/smartweb/core/browser/static/icons/categorie-mobilite.svg +1 -1
  43. imio/smartweb/core/browser/static/icons/categorie-mon-dossier.svg +1 -1
  44. imio/smartweb/core/browser/static/icons/categorie-nature.svg +3 -0
  45. imio/smartweb/core/browser/static/icons/categorie-parc-de-stationnement.svg +1 -1
  46. imio/smartweb/core/browser/static/icons/categorie-parcs-a-conteneurs.svg +4 -0
  47. imio/smartweb/core/browser/static/icons/categorie-parcs-et-jardins.svg +1 -1
  48. imio/smartweb/core/browser/static/icons/categorie-plus.svg +3 -0
  49. imio/smartweb/core/browser/static/icons/categorie-primes-2.svg +5 -0
  50. imio/smartweb/core/browser/static/icons/categorie-primes.svg +1 -1
  51. imio/smartweb/core/browser/static/icons/categorie-sport-courir.svg +1 -1
  52. imio/smartweb/core/browser/static/icons/categorie-sport-natation.svg +4 -0
  53. imio/smartweb/core/browser/static/icons/categorie-sport-velo.svg +1 -1
  54. imio/smartweb/core/browser/static/icons/categorie-tourisme.svg +1 -1
  55. imio/smartweb/core/browser/static/icons/organisation-academie-musique.svg +1 -1
  56. imio/smartweb/core/browser/static/icons/organisation-centre-sportif.svg +1 -1
  57. imio/smartweb/core/browser/static/icons/organisation-cpas.svg +1 -1
  58. imio/smartweb/core/browser/static/icons/organisation-ecole-des-arts.svg +1 -1
  59. imio/smartweb/core/browser/static/icons/organisation-ecole-sac.svg +4 -0
  60. imio/smartweb/core/browser/static/icons/organisation-ecole.svg +1 -1
  61. imio/smartweb/core/browser/static/icons/organisation-mobilite.svg +1 -1
  62. imio/smartweb/core/browser/static/icons/organisation-scout.svg +3 -0
  63. imio/smartweb/core/browser/static/icons/reseausocial-behance.svg +3 -0
  64. imio/smartweb/core/browser/static/icons/reseausocial-facebook.svg +1 -1
  65. imio/smartweb/core/browser/static/icons/reseausocial-linkedin.svg +3 -0
  66. imio/smartweb/core/browser/static/icons/reseausocial-twitter.svg +3 -13
  67. imio/smartweb/core/browser/static/icons/reseausocial-vimeo.svg +1 -1
  68. imio/smartweb/core/browser/static/icons/reseausocial-youtube.svg +1 -1
  69. imio/smartweb/core/browser/static/icons/vue-actualites.svg +1 -1
  70. imio/smartweb/core/browser/static/icons/vue-agenda.svg +1 -1
  71. imio/smartweb/core/browser/static/icons/vue-annuaire.svg +1 -1
  72. imio/smartweb/core/browser/static/smartweb-edit-compiled.css +1 -1
  73. imio/smartweb/core/browser/static/smartweb-edit-compiled.js +1 -1
  74. imio/smartweb/core/browser/static/smartweb-view-compiled.css +1 -1
  75. imio/smartweb/core/browser/static/smartweb-view-compiled.js +1 -1
  76. imio/smartweb/core/browser/static/src/edit.js +5 -0
  77. imio/smartweb/core/browser/static/src/edit.less +42 -0
  78. imio/smartweb/core/browser/static/src/view.js +11 -0
  79. imio/smartweb/core/browser/static/src/view.less +4 -0
  80. imio/smartweb/core/browser/utils.py +5 -32
  81. imio/smartweb/core/browser/vocabulary.py +40 -0
  82. imio/smartweb/core/contents/__init__.py +4 -0
  83. imio/smartweb/core/contents/configure.zcml +1 -0
  84. imio/smartweb/core/contents/cropping.py +1 -1
  85. imio/smartweb/core/contents/folder/block_view.pt +8 -8
  86. imio/smartweb/core/contents/folder/summary_view.pt +4 -4
  87. imio/smartweb/core/contents/pages/cirkwi/content.py +5 -0
  88. imio/smartweb/core/contents/pages/cirkwi/view.py +2 -1
  89. imio/smartweb/core/contents/pages/portal_page/view.py +3 -0
  90. imio/smartweb/core/contents/pages/views.py +3 -1
  91. imio/smartweb/core/contents/publication/configure.zcml +5 -0
  92. imio/smartweb/core/contents/publication/content.py +23 -0
  93. imio/smartweb/core/contents/rest/base.py +24 -10
  94. imio/smartweb/core/contents/rest/configure.zcml +7 -0
  95. imio/smartweb/core/contents/rest/directory/content.py +2 -2
  96. imio/smartweb/core/contents/rest/directory/endpoint.py +2 -2
  97. imio/smartweb/core/contents/rest/directory/view.pt +3 -1
  98. imio/smartweb/core/contents/rest/directory/view.py +3 -0
  99. imio/smartweb/core/contents/rest/events/content.py +15 -2
  100. imio/smartweb/core/contents/rest/events/endpoint.py +5 -7
  101. imio/smartweb/core/contents/rest/events/view.pt +6 -1
  102. imio/smartweb/core/contents/rest/events/view.py +15 -0
  103. imio/smartweb/core/contents/rest/news/content.py +8 -2
  104. imio/smartweb/core/contents/rest/news/endpoint.py +4 -2
  105. imio/smartweb/core/contents/rest/news/view.pt +5 -1
  106. imio/smartweb/core/contents/rest/news/view.py +11 -0
  107. imio/smartweb/core/contents/rest/search/endpoint.py +4 -4
  108. imio/smartweb/core/contents/rest/traversal.py +18 -0
  109. imio/smartweb/core/contents/rest/utils.py +98 -0
  110. imio/smartweb/core/contents/rest/view.py +11 -0
  111. imio/smartweb/core/contents/sections/common_templates/carousel.pt +6 -2
  112. imio/smartweb/core/contents/sections/common_templates/table.pt +22 -8
  113. imio/smartweb/core/contents/sections/configure.zcml +18 -0
  114. imio/smartweb/core/contents/sections/contact/content.py +2 -2
  115. imio/smartweb/core/contents/sections/contact/utils.py +2 -154
  116. imio/smartweb/core/contents/sections/events/content.py +12 -4
  117. imio/smartweb/core/contents/sections/events/view.py +20 -2
  118. imio/smartweb/core/contents/sections/external_content/configure.zcml +29 -0
  119. imio/smartweb/core/contents/sections/external_content/view.pt +25 -7
  120. imio/smartweb/core/contents/sections/external_content/view_idelux_waste.pt +50 -0
  121. imio/smartweb/core/contents/sections/external_content/view_inbw_containers_affluence.pt +91 -0
  122. imio/smartweb/core/contents/sections/external_content/view_odwb_widget.pt +20 -0
  123. imio/smartweb/core/contents/sections/external_content/views.py +306 -125
  124. imio/smartweb/core/contents/sections/files/content.py +7 -1
  125. imio/smartweb/core/contents/sections/files/view.py +40 -12
  126. imio/smartweb/core/contents/sections/links/view.py +5 -0
  127. imio/smartweb/core/contents/sections/macros.pt +39 -9
  128. imio/smartweb/core/contents/sections/news/content.py +11 -3
  129. imio/smartweb/core/contents/sections/news/view.py +20 -2
  130. imio/smartweb/core/contents/sections/text/view.pt +5 -4
  131. imio/smartweb/core/contents/sections/text/views.py +2 -0
  132. imio/smartweb/core/contents/sections/views.py +81 -4
  133. imio/smartweb/core/interfaces.py +15 -0
  134. imio/smartweb/core/profiles/default/actions.xml +15 -0
  135. imio/smartweb/core/profiles/default/diff_tool.xml +8 -0
  136. imio/smartweb/core/profiles/default/metadata.xml +1 -1
  137. imio/smartweb/core/profiles/default/registry/plone.xml +21 -4
  138. imio/smartweb/core/profiles/default/repositorytool.xml +1 -0
  139. imio/smartweb/core/profiles/default/taxonomies/page_category.xml +16 -0
  140. imio/smartweb/core/profiles/default/taxonomies/procedure_category.xml +26 -0
  141. imio/smartweb/core/profiles/default/types/Collection.xml +13 -0
  142. imio/smartweb/core/profiles/default/types/File.xml +13 -0
  143. imio/smartweb/core/profiles/default/types/Image.xml +13 -0
  144. imio/smartweb/core/profiles/default/types/imio.smartweb.BlockLink.xml +5 -0
  145. imio/smartweb/core/profiles/default/types/imio.smartweb.CirkwiView.xml +1 -0
  146. imio/smartweb/core/profiles/default/types/imio.smartweb.DirectoryView.xml +1 -0
  147. imio/smartweb/core/profiles/default/types/imio.smartweb.EventsView.xml +2 -0
  148. imio/smartweb/core/profiles/default/types/imio.smartweb.Folder.xml +1 -0
  149. imio/smartweb/core/profiles/default/types/imio.smartweb.NewsView.xml +2 -0
  150. imio/smartweb/core/profiles/default/types/imio.smartweb.Page.xml +1 -0
  151. imio/smartweb/core/profiles/default/types/imio.smartweb.PortalPage.xml +1 -0
  152. imio/smartweb/core/profiles/default/types/imio.smartweb.Procedure.xml +1 -0
  153. imio/smartweb/core/profiles/default/types/imio.smartweb.Publication.xml +38 -0
  154. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionEvents.xml +1 -0
  155. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionFiles.xml +2 -0
  156. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionHTML.xml +0 -1
  157. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionNews.xml +1 -0
  158. imio/smartweb/core/profiles/default/types.xml +1 -0
  159. imio/smartweb/core/profiles/icons/basic/registry.xml +120 -0
  160. imio/smartweb/core/profiles/testing/types/imio.smartweb.DirectoryView.xml +11 -0
  161. imio/smartweb/core/profiles/testing/types/imio.smartweb.EventsView.xml +11 -0
  162. imio/smartweb/core/profiles/testing/types/imio.smartweb.NewsView.xml +11 -0
  163. imio/smartweb/core/profiles/validation/contentrules.xml +102 -0
  164. imio/smartweb/core/profiles.zcml +8 -0
  165. imio/smartweb/core/rest/authentic_sources.py +23 -11
  166. imio/smartweb/core/subscribers.py +24 -0
  167. imio/smartweb/core/subscribers.zcml +4 -0
  168. imio/smartweb/core/tests/resources/json_iadeliberations_institutions.json +60 -0
  169. imio/smartweb/core/tests/resources/json_iadeliberations_publication.json +105 -0
  170. imio/smartweb/core/tests/resources/json_iadeliberations_publications.json +270 -0
  171. imio/smartweb/core/tests/resources/json_rest_events.json +6 -2
  172. imio/smartweb/core/tests/resources/json_rest_news.json +2 -2
  173. imio/smartweb/core/tests/resources/json_rest_specific_events.json +1 -1
  174. imio/smartweb/core/tests/test_cropping.py +4 -4
  175. imio/smartweb/core/tests/test_htmx_in_sections.py +131 -0
  176. imio/smartweb/core/tests/test_iadeliberations.py +136 -0
  177. imio/smartweb/core/tests/test_icons.py +1 -1
  178. imio/smartweb/core/tests/test_redirect_to_main_react_view.py +79 -0
  179. imio/smartweb/core/tests/test_rest.py +283 -22
  180. imio/smartweb/core/tests/test_section_contact.py +2 -2
  181. imio/smartweb/core/tests/test_section_events.py +28 -5
  182. imio/smartweb/core/tests/test_section_external_content.py +26 -25
  183. imio/smartweb/core/tests/test_section_news.py +30 -8
  184. imio/smartweb/core/tests/test_sections.py +38 -15
  185. imio/smartweb/core/tests/test_sitemap.py +174 -0
  186. imio/smartweb/core/tests/test_vocabularies.py +61 -4
  187. imio/smartweb/core/tests/test_vocabulary.py +43 -0
  188. imio/smartweb/core/tests/utils.py +15 -0
  189. imio/smartweb/core/upgrades/configure.zcml +180 -0
  190. imio/smartweb/core/upgrades/profiles/1051_to_1052/actions.xml +20 -0
  191. imio/smartweb/core/upgrades/profiles/1052_to_1053/diff_tool.xml +8 -0
  192. imio/smartweb/core/upgrades/profiles/1052_to_1053/repositorytool.xml +9 -0
  193. imio/smartweb/core/upgrades/profiles/1052_to_1053/types/imio.smartweb.SectionHTML.xml +14 -0
  194. imio/smartweb/core/upgrades/profiles/1053_to_1054/registry.xml +39 -0
  195. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/Collection.xml +13 -0
  196. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/File.xml +13 -0
  197. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/Image.xml +13 -0
  198. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.BlockLink.xml +12 -0
  199. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.CirkwiView.xml +12 -0
  200. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.DirectoryView.xml +12 -0
  201. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.EventsView.xml +12 -0
  202. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.Folder.xml +12 -0
  203. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.NewsView.xml +12 -0
  204. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.Page.xml +12 -0
  205. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.PortalPage.xml +12 -0
  206. imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.Procedure.xml +12 -0
  207. imio/smartweb/core/upgrades/profiles/1055_to_1056/types/imio.smartweb.SectionFiles.xml +12 -0
  208. imio/smartweb/core/upgrades/profiles/1056_to_1057/types/imio.smartweb.EventsView.xml +11 -0
  209. imio/smartweb/core/upgrades/profiles/1056_to_1057/types/imio.smartweb.NewsView.xml +11 -0
  210. imio/smartweb/core/upgrades/profiles/1056_to_1057/types/imio.smartweb.SectionEvents.xml +11 -0
  211. imio/smartweb/core/upgrades/profiles/1056_to_1057/types/imio.smartweb.SectionNews.xml +11 -0
  212. imio/smartweb/core/upgrades/profiles/1057_to_1058/taxonomies/page_category.cfg +9 -0
  213. imio/smartweb/core/upgrades/profiles/1057_to_1058/taxonomies/page_category.xml +73 -0
  214. imio/smartweb/core/upgrades/profiles/1057_to_1058/taxonomies/procedure_category.cfg +9 -0
  215. imio/smartweb/core/upgrades/profiles/1057_to_1058/taxonomies/procedure_category.xml +118 -0
  216. imio/smartweb/core/upgrades/profiles/1058_to_1059/registry/linkedin-icon.xml +126 -0
  217. imio/smartweb/core/upgrades/profiles/1059_to_1060/registry/iadeliberation.xml +9 -0
  218. imio/smartweb/core/upgrades/profiles/1060_to_1061/types/imio.smartweb.Publication.xml +38 -0
  219. imio/smartweb/core/upgrades/profiles/1060_to_1061/types/imio.smartweb.SectionFiles.xml +11 -0
  220. imio/smartweb/core/upgrades/profiles/1060_to_1061/types.xml +4 -0
  221. imio/smartweb/core/upgrades/profiles/1060_to_1061/workflows.xml +6 -0
  222. imio/smartweb/core/utils.py +65 -3
  223. imio/smartweb/core/viewlets/configure.zcml +43 -0
  224. imio/smartweb/core/viewlets/external_content.py +13 -5
  225. imio/smartweb/core/viewlets/footer.pt +5 -0
  226. imio/smartweb/core/viewlets/footer.py +5 -0
  227. imio/smartweb/core/viewlets/htmx.py +15 -0
  228. imio/smartweb/core/viewlets/htmx_js_header.pt +59 -0
  229. imio/smartweb/core/viewlets/httpheaders.py +13 -0
  230. imio/smartweb/core/viewlets/odwb_widget_header.pt +19 -0
  231. imio/smartweb/core/viewlets/offcanvas.pt +2 -1
  232. imio/smartweb/core/viewlets/ogp_tag_header.pt +19 -0
  233. imio/smartweb/core/viewlets/ogptags.py +144 -0
  234. imio/smartweb/core/viewlets/social.py +23 -0
  235. imio/smartweb/core/vocabularies.py +66 -2
  236. imio/smartweb/core/vocabularies.zcml +18 -0
  237. imio/smartweb/core/webcomponents/build/1c1605a5fe9a2b10a88f.png +1 -0
  238. imio/smartweb/core/webcomponents/build/524db40e119aa11f4478.png +1 -0
  239. imio/smartweb/core/webcomponents/build/57d3b7cb1ab874660b39.svg +1 -0
  240. imio/smartweb/core/webcomponents/build/6cf03871df23ed2ee8b3.png +1 -0
  241. imio/smartweb/core/webcomponents/build/css/373.smartweb-webcomponents-compiled.css +1 -0
  242. imio/smartweb/core/webcomponents/build/css/486.smartweb-webcomponents-compiled.css +1 -0
  243. imio/smartweb/core/webcomponents/build/css/884.smartweb-webcomponents-compiled.css +1 -0
  244. imio/smartweb/core/webcomponents/build/css/919.smartweb-webcomponents-compiled.css +1 -0
  245. imio/smartweb/core/webcomponents/build/css/smartweb-webcomponents-compiled.css +1 -1
  246. imio/smartweb/core/webcomponents/build/js/218.smartweb-webcomponents-compiled.js +2 -0
  247. imio/smartweb/core/webcomponents/build/js/218.smartweb-webcomponents-compiled.js.LICENSE.txt +16 -0
  248. imio/smartweb/core/webcomponents/build/js/373.smartweb-webcomponents-compiled.js +2 -0
  249. imio/smartweb/core/webcomponents/build/js/373.smartweb-webcomponents-compiled.js.LICENSE.txt +10 -0
  250. imio/smartweb/core/webcomponents/build/js/486.smartweb-webcomponents-compiled.js +1 -0
  251. imio/smartweb/core/webcomponents/build/js/499.smartweb-webcomponents-compiled.js +2 -0
  252. imio/smartweb/core/webcomponents/build/js/{212.smartweb-webcomponents-compiled.js.LICENSE.txt → 499.smartweb-webcomponents-compiled.js.LICENSE.txt} +1 -8
  253. imio/smartweb/core/webcomponents/build/js/799.smartweb-webcomponents-compiled.js +2 -0
  254. imio/smartweb/core/webcomponents/build/js/824.smartweb-webcomponents-compiled.js +2 -0
  255. imio/smartweb/core/webcomponents/build/js/828.smartweb-webcomponents-compiled.js +2 -0
  256. imio/smartweb/core/webcomponents/build/js/828.smartweb-webcomponents-compiled.js.LICENSE.txt +32 -0
  257. imio/smartweb/core/webcomponents/build/js/884.smartweb-webcomponents-compiled.js +1 -0
  258. imio/smartweb/core/webcomponents/build/js/919.smartweb-webcomponents-compiled.js +1 -0
  259. imio/smartweb/core/webcomponents/build/js/963.smartweb-webcomponents-compiled.js +2 -0
  260. imio/smartweb/core/webcomponents/build/js/963.smartweb-webcomponents-compiled.js.LICENSE.txt +3 -0
  261. imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js +1 -1
  262. imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js.LICENSE.txt +11 -14
  263. imio/smartweb/core/webcomponents/package.json +46 -44
  264. imio/smartweb/core/webcomponents/src/assets/contentIcon/download.svg +1 -0
  265. imio/smartweb/core/webcomponents/src/components/Annuaire/Annuaire.jsx +160 -92
  266. imio/smartweb/core/webcomponents/src/components/Annuaire/Annuaire.scss +250 -157
  267. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactCard/ContactCard.jsx +113 -81
  268. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactContent/ContactContent.jsx +394 -188
  269. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactList/ContactList.jsx +26 -9
  270. imio/smartweb/core/webcomponents/src/components/Annuaire/Filters/Filter.jsx +213 -100
  271. imio/smartweb/core/webcomponents/src/components/Annuaire/index.js +1 -1
  272. imio/smartweb/core/webcomponents/src/components/Events/EventCard/EventCard.jsx +86 -0
  273. imio/smartweb/core/webcomponents/src/components/Events/EventContent/EventContent.jsx +615 -0
  274. imio/smartweb/core/webcomponents/src/components/Events/EventList/EventList.jsx +67 -0
  275. imio/smartweb/core/webcomponents/src/components/Events/Events.jsx +181 -103
  276. imio/smartweb/core/webcomponents/src/components/Events/Events.scss +316 -182
  277. imio/smartweb/core/webcomponents/src/components/Events/Filters/Filter.jsx +275 -80
  278. imio/smartweb/core/webcomponents/src/components/Filters/DateFilter.jsx +136 -0
  279. imio/smartweb/core/webcomponents/src/components/Filters/DateFilter.scss +104 -0
  280. imio/smartweb/core/webcomponents/src/components/Filters/IamData.jsx +42 -0
  281. imio/smartweb/core/webcomponents/src/components/Filters/MainFilter.scss +227 -0
  282. imio/smartweb/core/webcomponents/src/components/Filters/PublicTargetData.jsx +94 -0
  283. imio/smartweb/core/webcomponents/src/components/Filters/SelectStyles.js +58 -0
  284. imio/smartweb/core/webcomponents/src/components/Filters/TaxonomyFilter.jsx +149 -0
  285. imio/smartweb/core/webcomponents/src/components/Filters/TaxonomyFilter.scss +70 -0
  286. imio/smartweb/core/webcomponents/src/components/News/Filters/Filter.jsx +139 -83
  287. imio/smartweb/core/webcomponents/src/components/News/News.jsx +141 -74
  288. imio/smartweb/core/webcomponents/src/components/News/News.scss +41 -15
  289. imio/smartweb/core/webcomponents/src/components/News/NewsCard/NewsCard.jsx +96 -0
  290. imio/smartweb/core/webcomponents/src/components/News/NewsContent/NewsContent.jsx +309 -0
  291. imio/smartweb/core/webcomponents/src/components/News/NewsList/NewsList.jsx +76 -0
  292. imio/smartweb/core/webcomponents/src/components/Search/ContactResult/ContactResult.jsx +28 -14
  293. imio/smartweb/core/webcomponents/src/components/Search/EventsResult/EventsResult.jsx +28 -14
  294. imio/smartweb/core/webcomponents/src/components/Search/Filters/Filter.jsx +51 -32
  295. imio/smartweb/core/webcomponents/src/components/Search/NewsResult/NewsResult.jsx +29 -15
  296. imio/smartweb/core/webcomponents/src/components/Search/Search.jsx +18 -13
  297. imio/smartweb/core/webcomponents/src/components/Search/Search.scss +125 -105
  298. imio/smartweb/core/webcomponents/src/components/Search/WebResult/WebResult.jsx +19 -6
  299. imio/smartweb/core/webcomponents/src/components/Search/index.js +1 -1
  300. imio/smartweb/core/webcomponents/src/hooks/ScrollContext.jsx +3 -0
  301. imio/smartweb/core/webcomponents/src/hooks/useAxios.js +3 -6
  302. imio/smartweb/core/webcomponents/src/hooks/useFilterQuery.js +1 -2
  303. imio/smartweb/core/webcomponents/src/index.scss +246 -211
  304. imio/smartweb/core/webcomponents/src/utils/Map.jsx +159 -0
  305. imio/smartweb/core/webcomponents/src/{components/Annuaire/ContactMap/ContactMap.scss → utils/Map.scss} +2 -2
  306. imio/smartweb/core/webcomponents/src/utils/translation.js +283 -14
  307. imio.smartweb.core-1.2.68-py3.11-nspkg.pth +2 -0
  308. {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/METADATA +548 -3
  309. {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/RECORD +317 -240
  310. {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/WHEEL +1 -1
  311. imio/smartweb/core/webcomponents/build/assets/location-bla.1423bcce16ddcb21141430cac1428dc1.svg +0 -1
  312. imio/smartweb/core/webcomponents/build/assets/next-react-white.819cb069ac8eec300a9db6a7707712d6.svg +0 -1
  313. imio/smartweb/core/webcomponents/build/assets/next-react.17bc43ff4a6a86f4520f5782f6a89a72.svg +0 -1
  314. imio/smartweb/core/webcomponents/build/assets/search.57bdbf5b191499cd77514097d1c4972c.svg +0 -1
  315. imio/smartweb/core/webcomponents/build/css/267.smartweb-webcomponents-compiled.css +0 -1
  316. imio/smartweb/core/webcomponents/build/css/323.smartweb-webcomponents-compiled.css +0 -1
  317. imio/smartweb/core/webcomponents/build/css/552.smartweb-webcomponents-compiled.css +0 -1
  318. imio/smartweb/core/webcomponents/build/css/779.smartweb-webcomponents-compiled.css +0 -1
  319. imio/smartweb/core/webcomponents/build/js/144.smartweb-webcomponents-compiled.js +0 -2
  320. imio/smartweb/core/webcomponents/build/js/212.smartweb-webcomponents-compiled.js +0 -2
  321. imio/smartweb/core/webcomponents/build/js/267.smartweb-webcomponents-compiled.js +0 -1
  322. imio/smartweb/core/webcomponents/build/js/323.smartweb-webcomponents-compiled.js +0 -2
  323. imio/smartweb/core/webcomponents/build/js/323.smartweb-webcomponents-compiled.js.LICENSE.txt +0 -1
  324. imio/smartweb/core/webcomponents/build/js/552.smartweb-webcomponents-compiled.js +0 -2
  325. imio/smartweb/core/webcomponents/build/js/552.smartweb-webcomponents-compiled.js.LICENSE.txt +0 -1
  326. imio/smartweb/core/webcomponents/build/js/565.smartweb-webcomponents-compiled.js +0 -1
  327. imio/smartweb/core/webcomponents/build/js/612.smartweb-webcomponents-compiled.js +0 -2
  328. imio/smartweb/core/webcomponents/build/js/612.smartweb-webcomponents-compiled.js.LICENSE.txt +0 -1
  329. imio/smartweb/core/webcomponents/build/js/779.smartweb-webcomponents-compiled.js +0 -1
  330. imio/smartweb/core/webcomponents/build/js/9.smartweb-webcomponents-compiled.js +0 -2
  331. imio/smartweb/core/webcomponents/build/js/969.smartweb-webcomponents-compiled.js +0 -2
  332. imio/smartweb/core/webcomponents/build/js/969.smartweb-webcomponents-compiled.js.LICENSE.txt +0 -642
  333. imio/smartweb/core/webcomponents/pnpm-lock.yaml +0 -7066
  334. imio/smartweb/core/webcomponents/src/assets/facebook-news.svg +0 -1
  335. imio/smartweb/core/webcomponents/src/assets/location-bla.svg +0 -1
  336. imio/smartweb/core/webcomponents/src/assets/next-react.svg +0 -1
  337. imio/smartweb/core/webcomponents/src/assets/search.svg +0 -1
  338. imio/smartweb/core/webcomponents/src/assets/skeleton.svg +0 -1
  339. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactMap/ContactMap.jsx +0 -156
  340. imio/smartweb/core/webcomponents/src/components/Annuaire/Skeleton/LoaderCss.jsx +0 -7
  341. imio/smartweb/core/webcomponents/src/components/Annuaire/Skeleton/Skeleton.jsx +0 -20
  342. imio/smartweb/core/webcomponents/src/components/Events/ContactCard/ContactCard.jsx +0 -49
  343. imio/smartweb/core/webcomponents/src/components/Events/ContactContent/ContactContent.jsx +0 -400
  344. imio/smartweb/core/webcomponents/src/components/Events/ContactList/ContactList.jsx +0 -42
  345. imio/smartweb/core/webcomponents/src/components/Events/ContactMap/ContactMap.jsx +0 -156
  346. imio/smartweb/core/webcomponents/src/components/Events/Skeleton/Skeleton.jsx +0 -20
  347. imio/smartweb/core/webcomponents/src/components/News/ContactCard/ContactCard.jsx +0 -78
  348. imio/smartweb/core/webcomponents/src/components/News/ContactContent/ContactContent.jsx +0 -261
  349. imio/smartweb/core/webcomponents/src/components/News/ContactList/ContactList.jsx +0 -37
  350. imio/smartweb/core/webcomponents/src/components/News/ContactMap/ContactMap.jsx +0 -127
  351. imio/smartweb/core/webcomponents/src/components/News/ContactMap/ContactMap.scss +0 -4
  352. imio/smartweb/core/webcomponents/src/components/News/Skeleton/Skeleton.jsx +0 -20
  353. imio/smartweb/core/webcomponents/src/components/Search/Skeleton/Skeleton.jsx +0 -20
  354. imio.smartweb.core-1.2.12-py3.10-nspkg.pth +0 -3
  355. /imio/smartweb/core/{webcomponents/src/components/Events/ContactMap/ContactMap.scss → contents/publication/__init__.py} +0 -0
  356. /imio/smartweb/core/webcomponents/build/js/{144.smartweb-webcomponents-compiled.js.LICENSE.txt → 799.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
  357. /imio/smartweb/core/webcomponents/build/js/{9.smartweb-webcomponents-compiled.js.LICENSE.txt → 824.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
  358. {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/LICENSE.GPL +0 -0
  359. {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/LICENSE.rst +0 -0
  360. {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/namespace_packages.txt +0 -0
  361. {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/top_level.txt +0 -0
@@ -1,38 +1,55 @@
1
+ import React, { useEffect, useContext } from "react";
1
2
  import ContactCard from "../ContactCard/ContactCard";
2
3
  import { Link } from "react-router-dom";
3
- import React from "react";
4
4
  import removeAccents from "remove-accents";
5
- const ContactList = ({ contactArray, onChange, onHover, parentCallback }) => {
5
+ import { ScrollContext } from "../../../hooks/ScrollContext";
6
+ const ContactList = ({ contactArray, onChange, onHover, contextAuthenticatedUser }) => {
7
+ const { scrollPos, updateScrollPos } = useContext(ScrollContext);
8
+
6
9
  function handleClick(event) {
7
10
  onChange(event);
11
+ updateScrollPos(window.scrollY);
8
12
  }
9
13
 
10
14
  function handleHover(event) {
11
15
  onHover(event);
12
16
  }
17
+
18
+ useEffect(() => {
19
+ window.scrollTo({ top: scrollPos, left: 0, behavior: "instant" });
20
+ }, [contactArray]);
13
21
  return (
14
22
  <React.Fragment>
15
23
  <ul className="r-result-list annuaire-result-list">
16
- {contactArray.map((contactItem, i) => (
24
+ {contactArray.map((item, i) => (
17
25
  <li
18
26
  key={i}
19
27
  className="r-list-item-group"
20
- onMouseEnter={() => handleHover(contactItem.UID)}
28
+ onMouseEnter={() => handleHover(item.UID)}
21
29
  onMouseLeave={() => handleHover(null)}
22
- onClick={() => handleClick(contactItem.UID)}
30
+ onClick={() => handleClick(item.UID)}
23
31
  >
24
32
  <Link
25
33
  className="r-list-item-link"
26
34
  style={{ textDecoration: "none" }}
27
35
  to={{
28
- pathname: removeAccents(contactItem.title).replace(/[^a-zA-Z ]/g, "").replace(/\s/g, "-").toLowerCase(),
29
- search: `?u=${contactItem.UID}`,
36
+ pathname:
37
+ "/" +
38
+ removeAccents(item.title)
39
+ .replace(/[^a-zA-Z ]/g, "")
40
+ .replace(/\s/g, "-")
41
+ .toLowerCase(),
42
+ search: `?u=${item.UID}`,
30
43
  state: {
31
- idItem: contactItem.UID,
44
+ idItem: item.UID,
32
45
  },
33
46
  }}
34
47
  ></Link>
35
- <ContactCard contactItem={contactItem} key={contactItem.created} />
48
+ <ContactCard
49
+ item={item}
50
+ contextAuthenticatedUser={contextAuthenticatedUser}
51
+ key={item.created}
52
+ />
36
53
  </li>
37
54
  ))}
38
55
  </ul>
@@ -1,16 +1,51 @@
1
1
  import React, { useEffect, useRef, useCallback, useState } from "react";
2
2
  import Select from "react-select";
3
- import { useHistory } from "react-router-dom";
3
+ import { useNavigate } from "react-router-dom";
4
4
  import useAxios from "../../../hooks/useAxios";
5
5
  import { Translator } from "react-translated";
6
+ import queryString from "query-string";
7
+ // import TaxonomyFilter from "../../Filters/TaxonomyFilter";
8
+ import { iam } from "./../../Filters/IamData";
9
+ import { menuStyles, moreFilterStyles } from "./../../Filters/SelectStyles";
10
+
11
+ function formatData(data) {
12
+ let result = [];
13
+
14
+ data.forEach((item) => {
15
+ let titles = item.title.split(" » ");
16
+ let token = item.token;
17
+
18
+ let level = result;
19
+ titles.forEach((title) => {
20
+ let existingItem = level.find((x) => x.title === title);
21
+ if (existingItem) {
22
+ if (!existingItem.sub) {
23
+ existingItem.sub = [];
24
+ }
25
+ level = existingItem.sub;
26
+ } else {
27
+ let newItem = { title: title, token: token, sub: [] };
28
+ level.push(newItem);
29
+ level = newItem.sub;
30
+ }
31
+ });
32
+ });
33
+
34
+ // Remove empty 'sub' arrays
35
+ const cleanResult = JSON.parse(JSON.stringify(result).replace(/,"sub":\[\]/g, ""));
36
+
37
+ return cleanResult;
38
+ }
6
39
 
7
40
  function Filters(props) {
8
- let history = useHistory();
9
- const queryString = require("query-string");
41
+ let navigate = useNavigate();
10
42
  const [inputValues, setInputValues] = useState(props.activeFilter);
11
- const [topicsFilter, setTopicsFilter] = useState(null);
43
+ const [topicsFilter, setTopicsFilter] = useState([]);
44
+ // const [taxonomyData, setTaxonomyData] = useState(null);
12
45
  const [taxonomyFilter, setTaxonomyFilter] = useState(null);
13
46
  const [facilitiesFilter, setFacilitiesFilter] = useState(null);
47
+ const [cat, setCat] = useState(false);
48
+ const [activeComponent, setActiveComponent] = useState(null);
14
49
  const { response, error, isLoading } = useAxios({
15
50
  method: "get",
16
51
  url: "",
@@ -29,6 +64,8 @@ function Filters(props) {
29
64
  value: d.token,
30
65
  label: d.title,
31
66
  }));
67
+
68
+ // const taxodonnee = formatData(response.taxonomy_contact_category);
32
69
  const optionsTaxonomy =
33
70
  response.taxonomy_contact_category &&
34
71
  response.taxonomy_contact_category.map((d) => ({
@@ -42,11 +79,13 @@ function Filters(props) {
42
79
  label: d.title,
43
80
  }));
44
81
  setTopicsFilter(optionsTopics);
82
+ // setTaxonomyData(taxodonnee);
45
83
  setTaxonomyFilter(optionsTaxonomy);
46
84
  setFacilitiesFilter(optionsFacilities);
47
85
  }
48
86
  }, [response]);
49
87
 
88
+ // set values from search input
50
89
  const onChangeHandler = useCallback(({ target: { name, value } }) => {
51
90
  if (value.length > 2) {
52
91
  setInputValues((state) => ({ ...state, [name]: value }), []);
@@ -58,6 +97,8 @@ function Filters(props) {
58
97
  });
59
98
  }
60
99
  });
100
+
101
+ // set values from select
61
102
  const onChangeHandlerSelect = useCallback((value, action) => {
62
103
  const inputName = action.name;
63
104
  if (value) {
@@ -78,7 +119,7 @@ function Filters(props) {
78
119
  firstUpdate.current = false;
79
120
  return;
80
121
  }
81
- history.push({
122
+ navigate({
82
123
  pathname: "./",
83
124
  search: queryString.stringify(inputValues),
84
125
  });
@@ -98,110 +139,182 @@ function Filters(props) {
98
139
  taxonomyFilter.filter(
99
140
  (option) => option.value === props.activeFilter.taxonomy_contact_category
100
141
  );
142
+
101
143
  let actFaci =
102
144
  facilitiesFilter &&
103
145
  facilitiesFilter.filter((option) => option.value === props.activeFilter.facilities);
104
- const customStyles = {
105
- control: (styles) => ({
106
- ...styles,
107
- backgroundColor: "white",
108
- borderRadius: "0",
109
- height: "50px",
110
- }),
111
- placeholder: (styles) => ({
112
- ...styles,
113
- color: "000",
114
- fontWeight: "bold",
115
- fontSize: "12px",
116
- textTransform: "uppercase",
117
- letterSpacing: "1.2px",
118
- }),
119
- option: (styles, { data, isDisabled, isFocused, isSelected }) => {
120
- return {
121
- ...styles,
122
- };
123
- },
146
+
147
+ let actIam = iam && iam.filter((option) => option.value === props.activeFilter.topics);
148
+
149
+ const handleClick = (index) => {
150
+ setActiveComponent(index);
124
151
  };
125
152
 
126
153
  return (
127
154
  <React.Fragment>
128
- <form className="r-filter" onSubmit={handleSubmit}>
129
- {/* <label>Recherche</label> */}
130
- <div className="r-filter-search">
131
- <Translator>
132
- {({ translate }) => (
133
- <input
134
- className="input-custom-class"
135
- name="SearchableText"
136
- type="text"
137
- value={inputValues.SearchableText}
138
- onChange={onChangeHandler}
139
- placeholder={translate({
140
- text: 'Recherche'
141
- })}
142
- />
143
- )}
144
- </Translator>
145
- <button type="submit"></button>
155
+ <div className="react-filters-menu">
156
+ <div className="react-filters-container">
157
+ <form className="r-filter r-filter-search" onSubmit={handleSubmit}>
158
+ {/* Filtre Recherche */}
159
+ <div className="relative">
160
+ <Translator>
161
+ {({ translate }) => (
162
+ <input
163
+ className="input-custom-class"
164
+ name="SearchableText"
165
+ type="text"
166
+ value={inputValues.SearchableText}
167
+ onChange={onChangeHandler}
168
+ placeholder={translate({
169
+ text: "Recherche",
170
+ })}
171
+ />
172
+ )}
173
+ </Translator>
174
+ <svg
175
+ xmlns="http://www.w3.org/2000/svg"
176
+ fill="none"
177
+ stroke="#9f9f9f"
178
+ strokeWidth="4"
179
+ aria-hidden="true"
180
+ display="block"
181
+ overflow="visible"
182
+ style={{ height: 16, width: 16 }}
183
+ viewBox="0 0 32 32"
184
+ >
185
+ <path d="M13 24a11 11 0 1 0 0-22 11 11 0 0 0 0 22zm8-3 9 9" />
186
+ </svg>
187
+ </div>
188
+ </form>
189
+ {/* More filter*/}
190
+ <button
191
+ className="more-filter-btn collapsed"
192
+ type="button"
193
+ data-bs-toggle="collapse"
194
+ data-bs-target="#collapseOne"
195
+ aria-expanded="false"
196
+ aria-controls="collapseOne"
197
+ >
198
+ <svg
199
+ xmlns="http://www.w3.org/2000/svg"
200
+ viewBox="0 0 32 32"
201
+ style={{ height: 16, width: 16 }}
202
+ fill="none"
203
+ stroke="currentColor"
204
+ strokeWidth="3"
205
+ aria-hidden="true"
206
+ display="block"
207
+ overflow="visible"
208
+ >
209
+ <path d="M7 16H3m26 0H15M29 6h-4m-8 0H3m26 20h-4M7 16a4 4 0 108 0 4 4 0 00-8 0zM17 6a4 4 0 108 0 4 4 0 00-8 0zm0 20a4 4 0 108 0 4 4 0 00-8 0zm0 0H3"></path>
210
+ </svg>
211
+ </button>
212
+ <div className="react-sep-menu"></div>
213
+ {/* Filtre Thématique */}
214
+ <div className="r-filter top-filter topics-Filter">
215
+ <Translator>
216
+ {({ translate }) => (
217
+ <Select
218
+ styles={menuStyles}
219
+ name={"topics"}
220
+ className="select-custom-no-border"
221
+ isClearable
222
+ onChange={onChangeHandlerSelect}
223
+ options={topicsFilter && topicsFilter}
224
+ placeholder={translate({
225
+ text: "Thématiques",
226
+ })}
227
+ value={actTopi && actTopi[0]}
228
+ />
229
+ )}
230
+ </Translator>
231
+ </div>
232
+ {/* Filtre iam */}
233
+ <div className="r-filter top-filter iam-Filter">
234
+ {/* <label>Thématiques</label> */}
235
+ <Translator>
236
+ {({ translate }) => (
237
+ <Select
238
+ styles={menuStyles}
239
+ name={"iam"}
240
+ className="select-custom-no-border"
241
+ isClearable
242
+ onChange={onChangeHandlerSelect}
243
+ options={iam && iam}
244
+ placeholder={translate({
245
+ text: "Profil",
246
+ })}
247
+ value={actIam && actIam[0]}
248
+ />
249
+ )}
250
+ </Translator>
251
+ </div>
252
+ {/* Filtre Facilités */}
253
+ <div className="r-filter top-filter facilities-Filter">
254
+ {/* <label>Facilité</label> */}
255
+ <Translator>
256
+ {({ translate }) => (
257
+ <Select
258
+ styles={menuStyles}
259
+ name={"facilities"}
260
+ className="select-custom-no-border"
261
+ isClearable
262
+ onChange={onChangeHandlerSelect}
263
+ options={facilitiesFilter && facilitiesFilter}
264
+ placeholder={translate({
265
+ text: "Facilités",
266
+ })}
267
+ value={actFaci && actFaci[0]}
268
+ />
269
+ )}
270
+ </Translator>
271
+ </div>
146
272
  </div>
147
- </form>
148
-
149
- <div className="r-filter topics-Filter">
150
- {/* <label>Thématiques</label> */}
151
- <Translator>
152
- {({ translate }) => (
153
- <Select
154
- styles={customStyles}
155
- name={"topics"}
156
- className="select-custom-class library-topics"
157
- isClearable
158
- onChange={onChangeHandlerSelect}
159
- options={topicsFilter && topicsFilter}
160
- placeholder={translate({
161
- text: 'Thématiques'
162
- })}
163
- value={actTopi && actTopi[0]}
164
- />
165
- )}
166
- </Translator>
167
- </div>
168
- <div className="r-filter facilities-Filter">
169
- {/* <label>Catégories</label> */}
170
- <Translator>
171
- {({ translate }) => (
172
- <Select
173
- styles={customStyles}
174
- name={"taxonomy_contact_category_for_filtering"}
175
- className="select-custom-class library-facilities"
176
- isClearable
177
- onChange={onChangeHandlerSelect}
178
- options={taxonomyFilter && taxonomyFilter}
179
- placeholder={translate({
180
- text: 'Catégories'
181
- })}
182
- value={actTaxo && actTaxo[0]}
183
- />
184
- )}
185
- </Translator>
186
273
  </div>
187
- <div className="r-filter facilities-Filter">
188
- {/* <label>Facilité</label> */}
189
- <Translator>
190
- {({ translate }) => (
191
- <Select
192
- styles={customStyles}
193
- name={"facilities"}
194
- className="select-custom-class library-facilities"
195
- isClearable
196
- onChange={onChangeHandlerSelect}
197
- options={facilitiesFilter && facilitiesFilter}
198
- placeholder={translate({
199
- text: 'Facilités'
200
- })}
201
- value={actFaci && actFaci[0]}
202
- />
203
- )}
204
- </Translator>
274
+ {/* More filter */}
275
+
276
+ {/* Affichage dynamique des liens avec divs associées */}
277
+ <div
278
+ id="collapseOne"
279
+ className="accordion-collapse collapse more-filter-container "
280
+ aria-labelledby="headingOne"
281
+ data-bs-parent="#accordionExample"
282
+ >
283
+ <div className="accordion-body">
284
+ {/* <div className="taxonomy-Filter">
285
+ {taxonomyData &&
286
+ taxonomyData.map((donnees, i) => (
287
+ <TaxonomyFilter
288
+ key={i}
289
+ {...donnees}
290
+ setCat={setCat}
291
+ isActive={i === activeComponent}
292
+ onClick={() => handleClick(i)}
293
+ onChange={onChangeHandlerSelect}
294
+ test={i}
295
+ />
296
+ ))}
297
+ </div> */}
298
+ <div className="r-filter facilities-Filter">
299
+ {/* <label>Catégories</label> */}
300
+ <Translator>
301
+ {({ translate }) => (
302
+ <Select
303
+ styles={moreFilterStyles}
304
+ name={"taxonomy_contact_category_for_filtering"}
305
+ className="select-custom-class library-facilities"
306
+ isClearable
307
+ onChange={onChangeHandlerSelect}
308
+ options={taxonomyFilter && taxonomyFilter}
309
+ placeholder={translate({
310
+ text: "Catégories",
311
+ })}
312
+ value={actTaxo && actTaxo[0]}
313
+ />
314
+ )}
315
+ </Translator>
316
+ </div>
317
+ </div>
205
318
  </div>
206
319
  </React.Fragment>
207
320
  );
@@ -1,2 +1,2 @@
1
1
  import loadable from "@loadable/component";
2
- export default loadable(() => import("./Annuaire"));
2
+ export default loadable(() => import("./Annuaire"));
@@ -0,0 +1,86 @@
1
+ import React from "react";
2
+ import moment from "moment";
3
+ import { Translate } from "react-translated";
4
+
5
+ const ContactCard = ({ item, showCategoriesOrTopics, contextAuthenticatedUser }) => {
6
+ moment.locale("be");
7
+ const title = item.title && item.title;
8
+ const start = moment.utc(item.start).format("DD-MM-YYYY");
9
+ const end = moment.utc(item.end).format("DD-MM-YYYY");
10
+ return (
11
+ <>
12
+ {contextAuthenticatedUser === "False" ? (
13
+ <a
14
+ href={item["@id"]}
15
+ target="_blank"
16
+ title="Editer la fiche"
17
+ className="edit-rest-elements"
18
+ >
19
+ <svg
20
+ xmlns="http://www.w3.org/2000/svg"
21
+ width="16"
22
+ height="16"
23
+ fill="currentColor"
24
+ class="bi bi-pencil-square"
25
+ viewBox="0 0 16 16"
26
+ >
27
+ <path d="M15.502 1.94a.5.5 0 0 1 0 .706L14.459 3.69l-2-2L13.502.646a.5.5 0 0 1 .707 0l1.293 1.293zm-1.75 2.456-2-2L4.939 9.21a.5.5 0 0 0-.121.196l-.805 2.414a.25.25 0 0 0 .316.316l2.414-.805a.5.5 0 0 0 .196-.12l6.813-6.814z" />
28
+ <path
29
+ fill-rule="evenodd"
30
+ d="M1 13.5A1.5 1.5 0 0 0 2.5 15h11a1.5 1.5 0 0 0 1.5-1.5v-6a.5.5 0 0 0-1 0v6a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .5-.5H9a.5.5 0 0 0 0-1H2.5A1.5 1.5 0 0 0 1 2.5z"
31
+ />
32
+ </svg>
33
+ </a>
34
+ ) : (
35
+ ""
36
+ )}
37
+ <div className="r-list-item">
38
+ <div
39
+ className={
40
+ item.image_vignette_scale
41
+ ? "r-item-img"
42
+ : "r-item-img r-item-img-placeholder"
43
+ }
44
+ style={{
45
+ backgroundImage: item.image_vignette_scale
46
+ ? "url(" + item.image_vignette_scale + ")"
47
+ : "",
48
+ }}
49
+ />
50
+
51
+ <div className="r-item-text">
52
+ {start && (
53
+ <span className="r-item-date">
54
+ {start === end ? (
55
+ start
56
+ ) : (
57
+ <>
58
+ {start} <Translate text="au" /> {end}
59
+ </>
60
+ )}
61
+ </span>
62
+ )}
63
+ <span className="r-item-title">{title}</span>
64
+ {showCategoriesOrTopics === "topic" ? (
65
+ item.topics &&
66
+ item.topics[0] && (
67
+ <span className="r-item-categorie">{item.topics[0].title}</span>
68
+ )
69
+ ) : showCategoriesOrTopics === "category" ? (
70
+ item.local_category ? (
71
+ <span className="r-item-categorie">{item.local_category.title}</span>
72
+ ) : (
73
+ item.category && (
74
+ <span className="r-item-categorie">{item.category.title}</span>
75
+ )
76
+ )
77
+ ) : (
78
+ ""
79
+ )}
80
+ </div>
81
+ </div>
82
+ </>
83
+ );
84
+ };
85
+
86
+ export default ContactCard;