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.
- imio/smartweb/core/behaviors/categorization.py +24 -0
- imio/smartweb/core/behaviors/configure.zcml +7 -0
- imio/smartweb/core/browser/configure.zcml +41 -1
- imio/smartweb/core/browser/controlpanel.py +41 -0
- imio/smartweb/core/browser/dashboards/configure.zcml +0 -2
- imio/smartweb/core/browser/dashboards/plausible.py +4 -4
- imio/smartweb/core/browser/faceted/block_view.pt +4 -4
- imio/smartweb/core/browser/faceted/summary_view.pt +4 -4
- imio/smartweb/core/browser/forms.py +3 -3
- imio/smartweb/core/browser/redirect_to_main_react_view.py +52 -0
- imio/smartweb/core/browser/search/search.pt +2 -1
- imio/smartweb/core/browser/search/search.py +4 -0
- imio/smartweb/core/browser/sitemap.py +148 -0
- imio/smartweb/core/browser/static/icons/action-delete.svg +3 -0
- imio/smartweb/core/browser/static/icons/action-e-guichet.svg +1 -1
- imio/smartweb/core/browser/static/icons/action-email.svg +1 -1
- imio/smartweb/core/browser/static/icons/action-engagement-2.svg +4 -0
- imio/smartweb/core/browser/static/icons/action-engagement.svg +1 -1
- imio/smartweb/core/browser/static/icons/action-nous-contacter.svg +1 -1
- imio/smartweb/core/browser/static/icons/action-nous-rejoindre.svg +2 -1
- imio/smartweb/core/browser/static/icons/action-organiser-un-evenement.svg +1 -1
- imio/smartweb/core/browser/static/icons/action-panneaux.svg +3 -0
- imio/smartweb/core/browser/static/icons/action-signaler-un-probleme.svg +1 -1
- imio/smartweb/core/browser/static/icons/action-voir-plan.svg +1 -1
- imio/smartweb/core/browser/static/icons/action-vote.svg +3 -0
- imio/smartweb/core/browser/static/icons/categorie-associations.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-attention.svg +3 -0
- imio/smartweb/core/browser/static/icons/categorie-avis-et-enquetes.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-cinema.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-commerce.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-concert.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-culture.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-demarches.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-enfance.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-enseignement.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-environnement-gestion-des-dechets.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-exposition.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-horaires.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-infos-travaux-2.svg +4 -0
- imio/smartweb/core/browser/static/icons/categorie-infos-travaux.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-mandataires.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-mobilite.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-mon-dossier.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-nature.svg +3 -0
- imio/smartweb/core/browser/static/icons/categorie-parc-de-stationnement.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-parcs-a-conteneurs.svg +4 -0
- imio/smartweb/core/browser/static/icons/categorie-parcs-et-jardins.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-plus.svg +3 -0
- imio/smartweb/core/browser/static/icons/categorie-primes-2.svg +5 -0
- imio/smartweb/core/browser/static/icons/categorie-primes.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-sport-courir.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-sport-natation.svg +4 -0
- imio/smartweb/core/browser/static/icons/categorie-sport-velo.svg +1 -1
- imio/smartweb/core/browser/static/icons/categorie-tourisme.svg +1 -1
- imio/smartweb/core/browser/static/icons/organisation-academie-musique.svg +1 -1
- imio/smartweb/core/browser/static/icons/organisation-centre-sportif.svg +1 -1
- imio/smartweb/core/browser/static/icons/organisation-cpas.svg +1 -1
- imio/smartweb/core/browser/static/icons/organisation-ecole-des-arts.svg +1 -1
- imio/smartweb/core/browser/static/icons/organisation-ecole-sac.svg +4 -0
- imio/smartweb/core/browser/static/icons/organisation-ecole.svg +1 -1
- imio/smartweb/core/browser/static/icons/organisation-mobilite.svg +1 -1
- imio/smartweb/core/browser/static/icons/organisation-scout.svg +3 -0
- imio/smartweb/core/browser/static/icons/reseausocial-behance.svg +3 -0
- imio/smartweb/core/browser/static/icons/reseausocial-facebook.svg +1 -1
- imio/smartweb/core/browser/static/icons/reseausocial-linkedin.svg +3 -0
- imio/smartweb/core/browser/static/icons/reseausocial-twitter.svg +3 -13
- imio/smartweb/core/browser/static/icons/reseausocial-vimeo.svg +1 -1
- imio/smartweb/core/browser/static/icons/reseausocial-youtube.svg +1 -1
- imio/smartweb/core/browser/static/icons/vue-actualites.svg +1 -1
- imio/smartweb/core/browser/static/icons/vue-agenda.svg +1 -1
- imio/smartweb/core/browser/static/icons/vue-annuaire.svg +1 -1
- imio/smartweb/core/browser/static/smartweb-edit-compiled.css +1 -1
- imio/smartweb/core/browser/static/smartweb-edit-compiled.js +1 -1
- imio/smartweb/core/browser/static/smartweb-view-compiled.css +1 -1
- imio/smartweb/core/browser/static/smartweb-view-compiled.js +1 -1
- imio/smartweb/core/browser/static/src/edit.js +5 -0
- imio/smartweb/core/browser/static/src/edit.less +42 -0
- imio/smartweb/core/browser/static/src/view.js +11 -0
- imio/smartweb/core/browser/static/src/view.less +4 -0
- imio/smartweb/core/browser/utils.py +5 -32
- imio/smartweb/core/browser/vocabulary.py +40 -0
- imio/smartweb/core/contents/__init__.py +4 -0
- imio/smartweb/core/contents/configure.zcml +1 -0
- imio/smartweb/core/contents/cropping.py +1 -1
- imio/smartweb/core/contents/folder/block_view.pt +8 -8
- imio/smartweb/core/contents/folder/summary_view.pt +4 -4
- imio/smartweb/core/contents/pages/cirkwi/content.py +5 -0
- imio/smartweb/core/contents/pages/cirkwi/view.py +2 -1
- imio/smartweb/core/contents/pages/portal_page/view.py +3 -0
- imio/smartweb/core/contents/pages/views.py +3 -1
- imio/smartweb/core/contents/publication/configure.zcml +5 -0
- imio/smartweb/core/contents/publication/content.py +23 -0
- imio/smartweb/core/contents/rest/base.py +24 -10
- imio/smartweb/core/contents/rest/configure.zcml +7 -0
- imio/smartweb/core/contents/rest/directory/content.py +2 -2
- imio/smartweb/core/contents/rest/directory/endpoint.py +2 -2
- imio/smartweb/core/contents/rest/directory/view.pt +3 -1
- imio/smartweb/core/contents/rest/directory/view.py +3 -0
- imio/smartweb/core/contents/rest/events/content.py +15 -2
- imio/smartweb/core/contents/rest/events/endpoint.py +5 -7
- imio/smartweb/core/contents/rest/events/view.pt +6 -1
- imio/smartweb/core/contents/rest/events/view.py +15 -0
- imio/smartweb/core/contents/rest/news/content.py +8 -2
- imio/smartweb/core/contents/rest/news/endpoint.py +4 -2
- imio/smartweb/core/contents/rest/news/view.pt +5 -1
- imio/smartweb/core/contents/rest/news/view.py +11 -0
- imio/smartweb/core/contents/rest/search/endpoint.py +4 -4
- imio/smartweb/core/contents/rest/traversal.py +18 -0
- imio/smartweb/core/contents/rest/utils.py +98 -0
- imio/smartweb/core/contents/rest/view.py +11 -0
- imio/smartweb/core/contents/sections/common_templates/carousel.pt +6 -2
- imio/smartweb/core/contents/sections/common_templates/table.pt +22 -8
- imio/smartweb/core/contents/sections/configure.zcml +18 -0
- imio/smartweb/core/contents/sections/contact/content.py +2 -2
- imio/smartweb/core/contents/sections/contact/utils.py +2 -154
- imio/smartweb/core/contents/sections/events/content.py +12 -4
- imio/smartweb/core/contents/sections/events/view.py +20 -2
- imio/smartweb/core/contents/sections/external_content/configure.zcml +29 -0
- imio/smartweb/core/contents/sections/external_content/view.pt +25 -7
- imio/smartweb/core/contents/sections/external_content/view_idelux_waste.pt +50 -0
- imio/smartweb/core/contents/sections/external_content/view_inbw_containers_affluence.pt +91 -0
- imio/smartweb/core/contents/sections/external_content/view_odwb_widget.pt +20 -0
- imio/smartweb/core/contents/sections/external_content/views.py +306 -125
- imio/smartweb/core/contents/sections/files/content.py +7 -1
- imio/smartweb/core/contents/sections/files/view.py +40 -12
- imio/smartweb/core/contents/sections/links/view.py +5 -0
- imio/smartweb/core/contents/sections/macros.pt +39 -9
- imio/smartweb/core/contents/sections/news/content.py +11 -3
- imio/smartweb/core/contents/sections/news/view.py +20 -2
- imio/smartweb/core/contents/sections/text/view.pt +5 -4
- imio/smartweb/core/contents/sections/text/views.py +2 -0
- imio/smartweb/core/contents/sections/views.py +81 -4
- imio/smartweb/core/interfaces.py +15 -0
- imio/smartweb/core/profiles/default/actions.xml +15 -0
- imio/smartweb/core/profiles/default/diff_tool.xml +8 -0
- imio/smartweb/core/profiles/default/metadata.xml +1 -1
- imio/smartweb/core/profiles/default/registry/plone.xml +21 -4
- imio/smartweb/core/profiles/default/repositorytool.xml +1 -0
- imio/smartweb/core/profiles/default/taxonomies/page_category.xml +16 -0
- imio/smartweb/core/profiles/default/taxonomies/procedure_category.xml +26 -0
- imio/smartweb/core/profiles/default/types/Collection.xml +13 -0
- imio/smartweb/core/profiles/default/types/File.xml +13 -0
- imio/smartweb/core/profiles/default/types/Image.xml +13 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.BlockLink.xml +5 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.CirkwiView.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.DirectoryView.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.EventsView.xml +2 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.Folder.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.NewsView.xml +2 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.Page.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.PortalPage.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.Procedure.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.Publication.xml +38 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionEvents.xml +1 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionFiles.xml +2 -0
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionHTML.xml +0 -1
- imio/smartweb/core/profiles/default/types/imio.smartweb.SectionNews.xml +1 -0
- imio/smartweb/core/profiles/default/types.xml +1 -0
- imio/smartweb/core/profiles/icons/basic/registry.xml +120 -0
- imio/smartweb/core/profiles/testing/types/imio.smartweb.DirectoryView.xml +11 -0
- imio/smartweb/core/profiles/testing/types/imio.smartweb.EventsView.xml +11 -0
- imio/smartweb/core/profiles/testing/types/imio.smartweb.NewsView.xml +11 -0
- imio/smartweb/core/profiles/validation/contentrules.xml +102 -0
- imio/smartweb/core/profiles.zcml +8 -0
- imio/smartweb/core/rest/authentic_sources.py +23 -11
- imio/smartweb/core/subscribers.py +24 -0
- imio/smartweb/core/subscribers.zcml +4 -0
- imio/smartweb/core/tests/resources/json_iadeliberations_institutions.json +60 -0
- imio/smartweb/core/tests/resources/json_iadeliberations_publication.json +105 -0
- imio/smartweb/core/tests/resources/json_iadeliberations_publications.json +270 -0
- imio/smartweb/core/tests/resources/json_rest_events.json +6 -2
- imio/smartweb/core/tests/resources/json_rest_news.json +2 -2
- imio/smartweb/core/tests/resources/json_rest_specific_events.json +1 -1
- imio/smartweb/core/tests/test_cropping.py +4 -4
- imio/smartweb/core/tests/test_htmx_in_sections.py +131 -0
- imio/smartweb/core/tests/test_iadeliberations.py +136 -0
- imio/smartweb/core/tests/test_icons.py +1 -1
- imio/smartweb/core/tests/test_redirect_to_main_react_view.py +79 -0
- imio/smartweb/core/tests/test_rest.py +283 -22
- imio/smartweb/core/tests/test_section_contact.py +2 -2
- imio/smartweb/core/tests/test_section_events.py +28 -5
- imio/smartweb/core/tests/test_section_external_content.py +26 -25
- imio/smartweb/core/tests/test_section_news.py +30 -8
- imio/smartweb/core/tests/test_sections.py +38 -15
- imio/smartweb/core/tests/test_sitemap.py +174 -0
- imio/smartweb/core/tests/test_vocabularies.py +61 -4
- imio/smartweb/core/tests/test_vocabulary.py +43 -0
- imio/smartweb/core/tests/utils.py +15 -0
- imio/smartweb/core/upgrades/configure.zcml +180 -0
- imio/smartweb/core/upgrades/profiles/1051_to_1052/actions.xml +20 -0
- imio/smartweb/core/upgrades/profiles/1052_to_1053/diff_tool.xml +8 -0
- imio/smartweb/core/upgrades/profiles/1052_to_1053/repositorytool.xml +9 -0
- imio/smartweb/core/upgrades/profiles/1052_to_1053/types/imio.smartweb.SectionHTML.xml +14 -0
- imio/smartweb/core/upgrades/profiles/1053_to_1054/registry.xml +39 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/Collection.xml +13 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/File.xml +13 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/Image.xml +13 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.BlockLink.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.CirkwiView.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.DirectoryView.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.EventsView.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.Folder.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.NewsView.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.Page.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.PortalPage.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1054_to_1055/types/imio.smartweb.Procedure.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1055_to_1056/types/imio.smartweb.SectionFiles.xml +12 -0
- imio/smartweb/core/upgrades/profiles/1056_to_1057/types/imio.smartweb.EventsView.xml +11 -0
- imio/smartweb/core/upgrades/profiles/1056_to_1057/types/imio.smartweb.NewsView.xml +11 -0
- imio/smartweb/core/upgrades/profiles/1056_to_1057/types/imio.smartweb.SectionEvents.xml +11 -0
- imio/smartweb/core/upgrades/profiles/1056_to_1057/types/imio.smartweb.SectionNews.xml +11 -0
- imio/smartweb/core/upgrades/profiles/1057_to_1058/taxonomies/page_category.cfg +9 -0
- imio/smartweb/core/upgrades/profiles/1057_to_1058/taxonomies/page_category.xml +73 -0
- imio/smartweb/core/upgrades/profiles/1057_to_1058/taxonomies/procedure_category.cfg +9 -0
- imio/smartweb/core/upgrades/profiles/1057_to_1058/taxonomies/procedure_category.xml +118 -0
- imio/smartweb/core/upgrades/profiles/1058_to_1059/registry/linkedin-icon.xml +126 -0
- imio/smartweb/core/upgrades/profiles/1059_to_1060/registry/iadeliberation.xml +9 -0
- imio/smartweb/core/upgrades/profiles/1060_to_1061/types/imio.smartweb.Publication.xml +38 -0
- imio/smartweb/core/upgrades/profiles/1060_to_1061/types/imio.smartweb.SectionFiles.xml +11 -0
- imio/smartweb/core/upgrades/profiles/1060_to_1061/types.xml +4 -0
- imio/smartweb/core/upgrades/profiles/1060_to_1061/workflows.xml +6 -0
- imio/smartweb/core/utils.py +65 -3
- imio/smartweb/core/viewlets/configure.zcml +43 -0
- imio/smartweb/core/viewlets/external_content.py +13 -5
- imio/smartweb/core/viewlets/footer.pt +5 -0
- imio/smartweb/core/viewlets/footer.py +5 -0
- imio/smartweb/core/viewlets/htmx.py +15 -0
- imio/smartweb/core/viewlets/htmx_js_header.pt +59 -0
- imio/smartweb/core/viewlets/httpheaders.py +13 -0
- imio/smartweb/core/viewlets/odwb_widget_header.pt +19 -0
- imio/smartweb/core/viewlets/offcanvas.pt +2 -1
- imio/smartweb/core/viewlets/ogp_tag_header.pt +19 -0
- imio/smartweb/core/viewlets/ogptags.py +144 -0
- imio/smartweb/core/viewlets/social.py +23 -0
- imio/smartweb/core/vocabularies.py +66 -2
- imio/smartweb/core/vocabularies.zcml +18 -0
- imio/smartweb/core/webcomponents/build/1c1605a5fe9a2b10a88f.png +1 -0
- imio/smartweb/core/webcomponents/build/524db40e119aa11f4478.png +1 -0
- imio/smartweb/core/webcomponents/build/57d3b7cb1ab874660b39.svg +1 -0
- imio/smartweb/core/webcomponents/build/6cf03871df23ed2ee8b3.png +1 -0
- imio/smartweb/core/webcomponents/build/css/373.smartweb-webcomponents-compiled.css +1 -0
- imio/smartweb/core/webcomponents/build/css/486.smartweb-webcomponents-compiled.css +1 -0
- imio/smartweb/core/webcomponents/build/css/884.smartweb-webcomponents-compiled.css +1 -0
- imio/smartweb/core/webcomponents/build/css/919.smartweb-webcomponents-compiled.css +1 -0
- imio/smartweb/core/webcomponents/build/css/smartweb-webcomponents-compiled.css +1 -1
- imio/smartweb/core/webcomponents/build/js/218.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/218.smartweb-webcomponents-compiled.js.LICENSE.txt +16 -0
- imio/smartweb/core/webcomponents/build/js/373.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/373.smartweb-webcomponents-compiled.js.LICENSE.txt +10 -0
- imio/smartweb/core/webcomponents/build/js/486.smartweb-webcomponents-compiled.js +1 -0
- imio/smartweb/core/webcomponents/build/js/499.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/{212.smartweb-webcomponents-compiled.js.LICENSE.txt → 499.smartweb-webcomponents-compiled.js.LICENSE.txt} +1 -8
- imio/smartweb/core/webcomponents/build/js/799.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/824.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/828.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/828.smartweb-webcomponents-compiled.js.LICENSE.txt +32 -0
- imio/smartweb/core/webcomponents/build/js/884.smartweb-webcomponents-compiled.js +1 -0
- imio/smartweb/core/webcomponents/build/js/919.smartweb-webcomponents-compiled.js +1 -0
- imio/smartweb/core/webcomponents/build/js/963.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/963.smartweb-webcomponents-compiled.js.LICENSE.txt +3 -0
- imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js.LICENSE.txt +11 -14
- imio/smartweb/core/webcomponents/package.json +46 -44
- imio/smartweb/core/webcomponents/src/assets/contentIcon/download.svg +1 -0
- imio/smartweb/core/webcomponents/src/components/Annuaire/Annuaire.jsx +160 -92
- imio/smartweb/core/webcomponents/src/components/Annuaire/Annuaire.scss +250 -157
- imio/smartweb/core/webcomponents/src/components/Annuaire/ContactCard/ContactCard.jsx +113 -81
- imio/smartweb/core/webcomponents/src/components/Annuaire/ContactContent/ContactContent.jsx +394 -188
- imio/smartweb/core/webcomponents/src/components/Annuaire/ContactList/ContactList.jsx +26 -9
- imio/smartweb/core/webcomponents/src/components/Annuaire/Filters/Filter.jsx +213 -100
- imio/smartweb/core/webcomponents/src/components/Annuaire/index.js +1 -1
- imio/smartweb/core/webcomponents/src/components/Events/EventCard/EventCard.jsx +86 -0
- imio/smartweb/core/webcomponents/src/components/Events/EventContent/EventContent.jsx +615 -0
- imio/smartweb/core/webcomponents/src/components/Events/EventList/EventList.jsx +67 -0
- imio/smartweb/core/webcomponents/src/components/Events/Events.jsx +181 -103
- imio/smartweb/core/webcomponents/src/components/Events/Events.scss +316 -182
- imio/smartweb/core/webcomponents/src/components/Events/Filters/Filter.jsx +275 -80
- imio/smartweb/core/webcomponents/src/components/Filters/DateFilter.jsx +136 -0
- imio/smartweb/core/webcomponents/src/components/Filters/DateFilter.scss +104 -0
- imio/smartweb/core/webcomponents/src/components/Filters/IamData.jsx +42 -0
- imio/smartweb/core/webcomponents/src/components/Filters/MainFilter.scss +227 -0
- imio/smartweb/core/webcomponents/src/components/Filters/PublicTargetData.jsx +94 -0
- imio/smartweb/core/webcomponents/src/components/Filters/SelectStyles.js +58 -0
- imio/smartweb/core/webcomponents/src/components/Filters/TaxonomyFilter.jsx +149 -0
- imio/smartweb/core/webcomponents/src/components/Filters/TaxonomyFilter.scss +70 -0
- imio/smartweb/core/webcomponents/src/components/News/Filters/Filter.jsx +139 -83
- imio/smartweb/core/webcomponents/src/components/News/News.jsx +141 -74
- imio/smartweb/core/webcomponents/src/components/News/News.scss +41 -15
- imio/smartweb/core/webcomponents/src/components/News/NewsCard/NewsCard.jsx +96 -0
- imio/smartweb/core/webcomponents/src/components/News/NewsContent/NewsContent.jsx +309 -0
- imio/smartweb/core/webcomponents/src/components/News/NewsList/NewsList.jsx +76 -0
- imio/smartweb/core/webcomponents/src/components/Search/ContactResult/ContactResult.jsx +28 -14
- imio/smartweb/core/webcomponents/src/components/Search/EventsResult/EventsResult.jsx +28 -14
- imio/smartweb/core/webcomponents/src/components/Search/Filters/Filter.jsx +51 -32
- imio/smartweb/core/webcomponents/src/components/Search/NewsResult/NewsResult.jsx +29 -15
- imio/smartweb/core/webcomponents/src/components/Search/Search.jsx +18 -13
- imio/smartweb/core/webcomponents/src/components/Search/Search.scss +125 -105
- imio/smartweb/core/webcomponents/src/components/Search/WebResult/WebResult.jsx +19 -6
- imio/smartweb/core/webcomponents/src/components/Search/index.js +1 -1
- imio/smartweb/core/webcomponents/src/hooks/ScrollContext.jsx +3 -0
- imio/smartweb/core/webcomponents/src/hooks/useAxios.js +3 -6
- imio/smartweb/core/webcomponents/src/hooks/useFilterQuery.js +1 -2
- imio/smartweb/core/webcomponents/src/index.scss +246 -211
- imio/smartweb/core/webcomponents/src/utils/Map.jsx +159 -0
- imio/smartweb/core/webcomponents/src/{components/Annuaire/ContactMap/ContactMap.scss → utils/Map.scss} +2 -2
- imio/smartweb/core/webcomponents/src/utils/translation.js +283 -14
- imio.smartweb.core-1.2.68-py3.11-nspkg.pth +2 -0
- {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/METADATA +548 -3
- {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/RECORD +317 -240
- {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/WHEEL +1 -1
- imio/smartweb/core/webcomponents/build/assets/location-bla.1423bcce16ddcb21141430cac1428dc1.svg +0 -1
- imio/smartweb/core/webcomponents/build/assets/next-react-white.819cb069ac8eec300a9db6a7707712d6.svg +0 -1
- imio/smartweb/core/webcomponents/build/assets/next-react.17bc43ff4a6a86f4520f5782f6a89a72.svg +0 -1
- imio/smartweb/core/webcomponents/build/assets/search.57bdbf5b191499cd77514097d1c4972c.svg +0 -1
- imio/smartweb/core/webcomponents/build/css/267.smartweb-webcomponents-compiled.css +0 -1
- imio/smartweb/core/webcomponents/build/css/323.smartweb-webcomponents-compiled.css +0 -1
- imio/smartweb/core/webcomponents/build/css/552.smartweb-webcomponents-compiled.css +0 -1
- imio/smartweb/core/webcomponents/build/css/779.smartweb-webcomponents-compiled.css +0 -1
- imio/smartweb/core/webcomponents/build/js/144.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/212.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/267.smartweb-webcomponents-compiled.js +0 -1
- imio/smartweb/core/webcomponents/build/js/323.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/323.smartweb-webcomponents-compiled.js.LICENSE.txt +0 -1
- imio/smartweb/core/webcomponents/build/js/552.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/552.smartweb-webcomponents-compiled.js.LICENSE.txt +0 -1
- imio/smartweb/core/webcomponents/build/js/565.smartweb-webcomponents-compiled.js +0 -1
- imio/smartweb/core/webcomponents/build/js/612.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/612.smartweb-webcomponents-compiled.js.LICENSE.txt +0 -1
- imio/smartweb/core/webcomponents/build/js/779.smartweb-webcomponents-compiled.js +0 -1
- imio/smartweb/core/webcomponents/build/js/9.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/969.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/969.smartweb-webcomponents-compiled.js.LICENSE.txt +0 -642
- imio/smartweb/core/webcomponents/pnpm-lock.yaml +0 -7066
- imio/smartweb/core/webcomponents/src/assets/facebook-news.svg +0 -1
- imio/smartweb/core/webcomponents/src/assets/location-bla.svg +0 -1
- imio/smartweb/core/webcomponents/src/assets/next-react.svg +0 -1
- imio/smartweb/core/webcomponents/src/assets/search.svg +0 -1
- imio/smartweb/core/webcomponents/src/assets/skeleton.svg +0 -1
- imio/smartweb/core/webcomponents/src/components/Annuaire/ContactMap/ContactMap.jsx +0 -156
- imio/smartweb/core/webcomponents/src/components/Annuaire/Skeleton/LoaderCss.jsx +0 -7
- imio/smartweb/core/webcomponents/src/components/Annuaire/Skeleton/Skeleton.jsx +0 -20
- imio/smartweb/core/webcomponents/src/components/Events/ContactCard/ContactCard.jsx +0 -49
- imio/smartweb/core/webcomponents/src/components/Events/ContactContent/ContactContent.jsx +0 -400
- imio/smartweb/core/webcomponents/src/components/Events/ContactList/ContactList.jsx +0 -42
- imio/smartweb/core/webcomponents/src/components/Events/ContactMap/ContactMap.jsx +0 -156
- imio/smartweb/core/webcomponents/src/components/Events/Skeleton/Skeleton.jsx +0 -20
- imio/smartweb/core/webcomponents/src/components/News/ContactCard/ContactCard.jsx +0 -78
- imio/smartweb/core/webcomponents/src/components/News/ContactContent/ContactContent.jsx +0 -261
- imio/smartweb/core/webcomponents/src/components/News/ContactList/ContactList.jsx +0 -37
- imio/smartweb/core/webcomponents/src/components/News/ContactMap/ContactMap.jsx +0 -127
- imio/smartweb/core/webcomponents/src/components/News/ContactMap/ContactMap.scss +0 -4
- imio/smartweb/core/webcomponents/src/components/News/Skeleton/Skeleton.jsx +0 -20
- imio/smartweb/core/webcomponents/src/components/Search/Skeleton/Skeleton.jsx +0 -20
- imio.smartweb.core-1.2.12-py3.10-nspkg.pth +0 -3
- /imio/smartweb/core/{webcomponents/src/components/Events/ContactMap/ContactMap.scss → contents/publication/__init__.py} +0 -0
- /imio/smartweb/core/webcomponents/build/js/{144.smartweb-webcomponents-compiled.js.LICENSE.txt → 799.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
- /imio/smartweb/core/webcomponents/build/js/{9.smartweb-webcomponents-compiled.js.LICENSE.txt → 824.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
- {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/LICENSE.GPL +0 -0
- {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/LICENSE.rst +0 -0
- {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/namespace_packages.txt +0 -0
- {imio.smartweb.core-1.2.12.dist-info → imio.smartweb.core-1.2.68.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,76 @@
|
|
1
|
+
import React, { useEffect, useContext } from "react";
|
2
|
+
import NewsCard from "../NewsCard/NewsCard";
|
3
|
+
import { Link } from "react-router-dom";
|
4
|
+
import removeAccents from "remove-accents";
|
5
|
+
import { ScrollContext } from "../../../hooks/ScrollContext";
|
6
|
+
const NewsList = ({ itemsArray, onChange, showCategoriesOrTopics, contextAuthenticatedUser }) => {
|
7
|
+
const { scrollPos, updateScrollPos } = useContext(ScrollContext);
|
8
|
+
|
9
|
+
function handleClick(event) {
|
10
|
+
onChange(event);
|
11
|
+
updateScrollPos(window.scrollY);
|
12
|
+
}
|
13
|
+
|
14
|
+
useEffect(() => {
|
15
|
+
window.scrollTo({ top: scrollPos, left: 0, behavior: "instant" });
|
16
|
+
}, [itemsArray]);
|
17
|
+
return (
|
18
|
+
<React.Fragment>
|
19
|
+
<ul className="r-result-list actu-result-list">
|
20
|
+
{itemsArray.map((item, i) => (
|
21
|
+
<li key={i} className="r-list-item-group" onClick={() => handleClick(item.UID)}>
|
22
|
+
{contextAuthenticatedUser === "False" ? (
|
23
|
+
<a
|
24
|
+
href={item["@id"]}
|
25
|
+
target="_blank"
|
26
|
+
title="Editer la fiche"
|
27
|
+
className="edit-rest-elements edit-rest-elements-news"
|
28
|
+
>
|
29
|
+
<svg
|
30
|
+
xmlns="http://www.w3.org/2000/svg"
|
31
|
+
width="16"
|
32
|
+
height="16"
|
33
|
+
fill="currentColor"
|
34
|
+
class="bi bi-pencil-square"
|
35
|
+
viewBox="0 0 16 16"
|
36
|
+
>
|
37
|
+
<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" />
|
38
|
+
<path
|
39
|
+
fill-rule="evenodd"
|
40
|
+
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"
|
41
|
+
/>
|
42
|
+
</svg>
|
43
|
+
</a>
|
44
|
+
) : (
|
45
|
+
""
|
46
|
+
)}
|
47
|
+
<Link
|
48
|
+
className="r-news-list-item-link"
|
49
|
+
style={{ textDecoration: "none" }}
|
50
|
+
to={{
|
51
|
+
pathname:
|
52
|
+
"/" +
|
53
|
+
removeAccents(item.title)
|
54
|
+
.replace(/[^a-zA-Z ]/g, "")
|
55
|
+
.replace(/\s/g, "-")
|
56
|
+
.toLowerCase(),
|
57
|
+
search: `?u=${item.UID}`,
|
58
|
+
state: {
|
59
|
+
idItem: item.UID,
|
60
|
+
},
|
61
|
+
}}
|
62
|
+
>
|
63
|
+
<NewsCard
|
64
|
+
item={item}
|
65
|
+
showCategoriesOrTopics={showCategoriesOrTopics}
|
66
|
+
key={item.created}
|
67
|
+
contextAuthenticatedUser={contextAuthenticatedUser}
|
68
|
+
/>
|
69
|
+
</Link>
|
70
|
+
</li>
|
71
|
+
))}
|
72
|
+
</ul>
|
73
|
+
</React.Fragment>
|
74
|
+
);
|
75
|
+
};
|
76
|
+
export default NewsList;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import React, { useState, useEffect } from "react";
|
2
2
|
import useAxios from "../../../hooks/useAxios";
|
3
3
|
import Highlighter from "react-highlight-words";
|
4
|
+
import { Translate } from "react-translated";
|
4
5
|
|
5
6
|
const ContactResult = (props) => {
|
6
7
|
const [resultArray, setresultArray] = useState([]);
|
@@ -12,7 +13,10 @@ const ContactResult = (props) => {
|
|
12
13
|
headers: {
|
13
14
|
Accept: "application/json",
|
14
15
|
},
|
15
|
-
params:
|
16
|
+
params:
|
17
|
+
props.urlParams.SearchableText || props.urlParams.iam || props.urlParams.topics
|
18
|
+
? props.urlParams
|
19
|
+
: {},
|
16
20
|
},
|
17
21
|
[props]
|
18
22
|
);
|
@@ -27,30 +31,40 @@ const ContactResult = (props) => {
|
|
27
31
|
return (
|
28
32
|
<div className="search-contact">
|
29
33
|
<div className="r-search-header">
|
30
|
-
<h2 className="r-search-header-title">
|
34
|
+
<h2 className="r-search-header-title">
|
35
|
+
<Translate text="Contacts" />
|
36
|
+
</h2>
|
31
37
|
<p className="r-search-header-count">
|
32
|
-
{resultArray
|
38
|
+
{resultArray.length > 0 ? (
|
39
|
+
<>
|
40
|
+
{" "}
|
41
|
+
{resultArray.length} <Translate text="Résultats" />{" "}
|
42
|
+
</>
|
43
|
+
) : (
|
44
|
+
<Translate text="Aucun résultat" />
|
45
|
+
)}
|
33
46
|
</p>
|
34
47
|
</div>
|
35
48
|
<ul className="r-search-list">
|
36
|
-
{resultArray.map((
|
49
|
+
{resultArray.map((item, i) => (
|
37
50
|
<li key={i} className="r-search-item">
|
38
|
-
<a href={
|
51
|
+
<a href={item["_url"]}>
|
39
52
|
<div className="r-search-img">
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
53
|
+
{item.has_leadimage[0] ? (
|
54
|
+
<div
|
55
|
+
className="r-search-img"
|
56
|
+
style={{
|
57
|
+
backgroundImage: "url(" + item.image_url + ")",
|
58
|
+
}}
|
59
|
+
></div>
|
60
|
+
) : (
|
46
61
|
<div className="r-search-img no-search-item-img"></div>
|
47
|
-
)
|
48
|
-
}
|
62
|
+
)}
|
49
63
|
</div>
|
50
64
|
<Highlighter
|
51
65
|
highlightClassName="r-search-highlighter"
|
52
66
|
searchWords={[props.urlParams.SearchableText]}
|
53
|
-
textToHighlight={
|
67
|
+
textToHighlight={item.title}
|
54
68
|
/>
|
55
69
|
</a>
|
56
70
|
</li>
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import React, { useState, useEffect } from "react";
|
2
2
|
import useAxios from "../../../hooks/useAxios";
|
3
3
|
import Highlighter from "react-highlight-words";
|
4
|
+
import { Translate } from "react-translated";
|
4
5
|
|
5
6
|
const EventsResult = (props) => {
|
6
7
|
const [resultArray, setresultArray] = useState([]);
|
@@ -12,7 +13,10 @@ const EventsResult = (props) => {
|
|
12
13
|
headers: {
|
13
14
|
Accept: "application/json",
|
14
15
|
},
|
15
|
-
params:
|
16
|
+
params:
|
17
|
+
props.urlParams.SearchableText || props.urlParams.iam || props.urlParams.topics
|
18
|
+
? props.urlParams
|
19
|
+
: {},
|
16
20
|
},
|
17
21
|
[props]
|
18
22
|
);
|
@@ -27,30 +31,40 @@ const EventsResult = (props) => {
|
|
27
31
|
return (
|
28
32
|
<div className="search-events">
|
29
33
|
<div className="r-search-header">
|
30
|
-
<h2 className="r-search-header-title"
|
34
|
+
<h2 className="r-search-header-title">
|
35
|
+
<Translate text="Événements" />
|
36
|
+
</h2>
|
31
37
|
<p className="r-search-header-count">
|
32
|
-
{resultArray
|
38
|
+
{resultArray.length > 0 ? (
|
39
|
+
<>
|
40
|
+
{" "}
|
41
|
+
{resultArray.length} <Translate text="Résultats" />{" "}
|
42
|
+
</>
|
43
|
+
) : (
|
44
|
+
<Translate text="Aucun résultat" />
|
45
|
+
)}
|
33
46
|
</p>
|
34
47
|
</div>
|
35
48
|
<ul className="r-search-list">
|
36
|
-
{resultArray.map((
|
49
|
+
{resultArray.map((item, i) => (
|
37
50
|
<li key={i} className="r-search-item">
|
38
|
-
<a href={
|
51
|
+
<a href={item["_url"]}>
|
39
52
|
<div className="r-search-img">
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
53
|
+
{item.has_leadimage[0] ? (
|
54
|
+
<div
|
55
|
+
className="r-search-img"
|
56
|
+
style={{
|
57
|
+
backgroundImage: "url(" + item.image_url + ")",
|
58
|
+
}}
|
59
|
+
></div>
|
60
|
+
) : (
|
46
61
|
<div className="r-search-img no-search-item-img"></div>
|
47
|
-
)
|
48
|
-
}
|
62
|
+
)}
|
49
63
|
</div>
|
50
64
|
<Highlighter
|
51
65
|
highlightClassName="r-search-highlighter"
|
52
66
|
searchWords={[props.urlParams.SearchableText]}
|
53
|
-
textToHighlight={
|
67
|
+
textToHighlight={item.title}
|
54
68
|
/>
|
55
69
|
</a>
|
56
70
|
</li>
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import React, { useEffect, useCallback, useRef, useState } from "react";
|
2
2
|
import Select from "react-select";
|
3
|
-
import {
|
3
|
+
import { useNavigate } from "react-router-dom";
|
4
4
|
import axios from "axios";
|
5
|
-
|
6
|
-
|
7
|
-
const queryString = require("query-string");
|
5
|
+
import { Translate, Translator } from "react-translated";
|
6
|
+
import queryString from "query-string";
|
8
7
|
|
8
|
+
function Filters(props) {
|
9
|
+
let navigate = useNavigate();
|
9
10
|
const [inputValues, setInputValues] = useState(props.activeFilter);
|
10
11
|
const [searchValues, setSearchValues] = useState({});
|
11
12
|
const [topicsFilter, setTopicsFilter] = useState(null);
|
@@ -107,7 +108,7 @@ function Filters(props) {
|
|
107
108
|
firstUpdate.current = false;
|
108
109
|
return;
|
109
110
|
}
|
110
|
-
|
111
|
+
navigate({
|
111
112
|
pathname: "./",
|
112
113
|
search: queryString.stringify(inputValues),
|
113
114
|
});
|
@@ -144,40 +145,58 @@ function Filters(props) {
|
|
144
145
|
<div className="col-md-6 py-1 r-search search-bar-filter">
|
145
146
|
<form onSubmit={handleSubmit}>
|
146
147
|
<label>
|
147
|
-
<
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
148
|
+
<Translator>
|
149
|
+
{({ translate }) => (
|
150
|
+
<input
|
151
|
+
name="SearchableText"
|
152
|
+
type="text"
|
153
|
+
onChange={HandlerText}
|
154
|
+
value={searchValues.SearchableText}
|
155
|
+
placeholder={translate({
|
156
|
+
text: "Recherche",
|
157
|
+
})}
|
158
|
+
/>
|
159
|
+
)}
|
160
|
+
</Translator>
|
154
161
|
</label>
|
155
162
|
<button type="submit"></button>
|
156
163
|
</form>
|
157
164
|
</div>
|
158
165
|
<div className="col-md-3 col-lg-2 py-1 r-search search-select-filter">
|
159
|
-
<
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
166
|
+
<Translator>
|
167
|
+
{({ translate }) => (
|
168
|
+
<Select
|
169
|
+
styles={customStyles}
|
170
|
+
name={"iam"}
|
171
|
+
className="r-search-select"
|
172
|
+
isClearable
|
173
|
+
onChange={onChangeHandlerSelect}
|
174
|
+
options={iamFilter && iamFilter}
|
175
|
+
placeholder={translate({
|
176
|
+
text: "Je suis",
|
177
|
+
})}
|
178
|
+
value={actIam && actIam[0]}
|
179
|
+
/>
|
180
|
+
)}
|
181
|
+
</Translator>
|
169
182
|
</div>
|
170
183
|
<div className="col-md-3 col-lg-2 py-1 r-search search-select-filter">
|
171
|
-
<
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
184
|
+
<Translator>
|
185
|
+
{({ translate }) => (
|
186
|
+
<Select
|
187
|
+
styles={customStyles}
|
188
|
+
name={"topics"}
|
189
|
+
className="r-search-select"
|
190
|
+
isClearable
|
191
|
+
onChange={onChangeHandlerSelect}
|
192
|
+
options={topicsFilter && topicsFilter}
|
193
|
+
placeholder={translate({
|
194
|
+
text: "Thématiques",
|
195
|
+
})}
|
196
|
+
value={actTopi && actTopi[0]}
|
197
|
+
/>
|
198
|
+
)}
|
199
|
+
</Translator>
|
181
200
|
</div>
|
182
201
|
</React.Fragment>
|
183
202
|
);
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import React, { useState, useEffect } from "react";
|
2
2
|
import useAxios from "../../../hooks/useAxios";
|
3
3
|
import Highlighter from "react-highlight-words";
|
4
|
+
import { Translate } from "react-translated";
|
4
5
|
|
5
6
|
const NewsResult = (props) => {
|
6
7
|
const [resultArray, setresultArray] = useState([]);
|
@@ -12,7 +13,10 @@ const NewsResult = (props) => {
|
|
12
13
|
headers: {
|
13
14
|
Accept: "application/json",
|
14
15
|
},
|
15
|
-
params:
|
16
|
+
params:
|
17
|
+
props.urlParams.SearchableText || props.urlParams.iam || props.urlParams.topics
|
18
|
+
? props.urlParams
|
19
|
+
: {},
|
16
20
|
},
|
17
21
|
[props]
|
18
22
|
);
|
@@ -27,30 +31,40 @@ const NewsResult = (props) => {
|
|
27
31
|
return (
|
28
32
|
<div className="search-news">
|
29
33
|
<div className="r-search-header">
|
30
|
-
<h2 className="r-search-header-title">
|
34
|
+
<h2 className="r-search-header-title">
|
35
|
+
<Translate text="Actualités" />
|
36
|
+
</h2>
|
31
37
|
<p className="r-search-header-count">
|
32
|
-
{resultArray
|
38
|
+
{resultArray.length > 0 ? (
|
39
|
+
<>
|
40
|
+
{" "}
|
41
|
+
{resultArray.length} <Translate text="Résultats" />{" "}
|
42
|
+
</>
|
43
|
+
) : (
|
44
|
+
<Translate text="Aucun résultat" />
|
45
|
+
)}
|
33
46
|
</p>
|
34
47
|
</div>
|
35
48
|
<ul className="r-search-list">
|
36
|
-
{resultArray.map((
|
49
|
+
{resultArray.map((item, i) => (
|
37
50
|
<li key={i} className="r-search-item">
|
38
|
-
<a href={
|
51
|
+
<a href={item["_url"]}>
|
39
52
|
<div className="r-search-img">
|
40
|
-
{
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
53
|
+
{item.has_leadimage[0] ? (
|
54
|
+
<div
|
55
|
+
className="r-search-img"
|
56
|
+
style={{
|
57
|
+
backgroundImage: "url(" + item.image_url + ")",
|
58
|
+
}}
|
59
|
+
></div>
|
60
|
+
) : (
|
61
|
+
<div className="r-search-img no-search-item-img"></div>
|
62
|
+
)}
|
49
63
|
</div>
|
50
64
|
<Highlighter
|
51
65
|
highlightClassName="r-search-highlighter"
|
52
66
|
searchWords={[props.urlParams.SearchableText]}
|
53
|
-
textToHighlight={
|
67
|
+
textToHighlight={item.title}
|
54
68
|
/>
|
55
69
|
</a>
|
56
70
|
</li>
|
@@ -1,33 +1,38 @@
|
|
1
|
-
import React, {
|
2
|
-
import { BrowserRouter
|
1
|
+
import React, { useState } from "react";
|
2
|
+
import { BrowserRouter } from "react-router-dom";
|
3
3
|
import Filters from "./Filters/Filter";
|
4
4
|
import ContactResult from "./ContactResult/ContactResult";
|
5
5
|
import NewsResult from "./NewsResult/NewsResult";
|
6
6
|
import EventsResult from "./EventsResult/EventsResult";
|
7
7
|
import WebResult from "./WebResult/WebResult";
|
8
8
|
import useFilterQuery from "../../hooks/useFilterQuery";
|
9
|
+
import { Provider } from "react-translated";
|
10
|
+
import translation from "../../utils/translation";
|
11
|
+
import queryString from "query-string";
|
12
|
+
|
9
13
|
import "./Search.scss";
|
10
14
|
|
11
15
|
export default function Search(props) {
|
12
16
|
return (
|
13
|
-
<
|
14
|
-
<
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
<BrowserRouter>
|
18
|
+
<Provider language={props.currentLanguage} translation={translation}>
|
19
|
+
<SearchView
|
20
|
+
queryFilterUrl={props.queryFilterUrl}
|
21
|
+
queryUrl={props.queryUrl}
|
22
|
+
resultOption={JSON.parse(props.resultOption)}
|
23
|
+
/>
|
24
|
+
</Provider>
|
25
|
+
</BrowserRouter>
|
20
26
|
);
|
21
27
|
}
|
22
28
|
const SearchView = (props) => {
|
23
|
-
const queryString = require("query-string");
|
24
29
|
const parsed = queryString.parse(useFilterQuery().toString());
|
25
|
-
const { SearchableText, iam,topics } = parsed;
|
26
|
-
const parsed2 = {
|
30
|
+
const { SearchableText, iam, topics } = parsed;
|
31
|
+
const parsed2 = { SearchableText: SearchableText, iam: iam, topics: topics };
|
27
32
|
// const parsed2 = { ...parsed };
|
28
33
|
const [filters, setFilters] = useState(parsed2);
|
29
34
|
const [batchSize, setBatchSize] = useState(6);
|
30
|
-
|
35
|
+
|
31
36
|
const filtersChange = (value) => {
|
32
37
|
setFilters(value);
|
33
38
|
};
|