imio.smartweb.core 1.2.38__py3-none-any.whl → 1.2.79__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 (222) 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/controlpanel.py +43 -0
  4. imio/smartweb/core/browser/faceted/block_view.pt +4 -4
  5. imio/smartweb/core/browser/faceted/summary_view.pt +4 -4
  6. imio/smartweb/core/browser/sitemap.py +10 -3
  7. imio/smartweb/core/browser/static/icons/action-delete.svg +3 -0
  8. imio/smartweb/core/browser/static/icons/action-engagement-2.svg +4 -0
  9. imio/smartweb/core/browser/static/icons/action-panneaux.svg +3 -0
  10. imio/smartweb/core/browser/static/icons/action-vote.svg +3 -0
  11. imio/smartweb/core/browser/static/icons/categorie-attention.svg +3 -0
  12. imio/smartweb/core/browser/static/icons/categorie-infos-travaux-2.svg +4 -0
  13. imio/smartweb/core/browser/static/icons/categorie-nature.svg +3 -0
  14. imio/smartweb/core/browser/static/icons/categorie-parcs-a-conteneurs.svg +4 -0
  15. imio/smartweb/core/browser/static/icons/categorie-plus.svg +3 -0
  16. imio/smartweb/core/browser/static/icons/categorie-primes-2.svg +5 -0
  17. imio/smartweb/core/browser/static/icons/categorie-sport-natation.svg +4 -0
  18. imio/smartweb/core/browser/static/icons/organisation-ecole-sac.svg +4 -0
  19. imio/smartweb/core/browser/static/icons/organisation-scout.svg +3 -0
  20. imio/smartweb/core/browser/static/icons/reseausocial-behance.svg +3 -0
  21. imio/smartweb/core/browser/static/icons/reseausocial-linkedin.svg +3 -0
  22. imio/smartweb/core/browser/static/smartweb-edit-compiled.css +1 -1
  23. imio/smartweb/core/browser/static/smartweb-view-compiled.css +1 -1
  24. imio/smartweb/core/browser/static/src/edit.less +42 -0
  25. imio/smartweb/core/browser/static/src/view.less +109 -56
  26. imio/smartweb/core/browser/vocabulary.py +8 -3
  27. imio/smartweb/core/contents/__init__.py +2 -0
  28. imio/smartweb/core/contents/configure.zcml +1 -0
  29. imio/smartweb/core/contents/folder/block_view.pt +8 -8
  30. imio/smartweb/core/contents/folder/summary_view.pt +4 -4
  31. imio/smartweb/core/contents/pages/cirkwi/content.py +5 -0
  32. imio/smartweb/core/contents/pages/cirkwi/view.py +2 -1
  33. imio/smartweb/core/contents/pages/configure.zcml +1 -0
  34. imio/smartweb/core/contents/pages/portal_page/view.py +3 -0
  35. imio/smartweb/core/contents/pages/views.py +47 -1
  36. imio/smartweb/core/contents/publication/__init__.py +0 -0
  37. imio/smartweb/core/contents/publication/configure.zcml +5 -0
  38. imio/smartweb/core/contents/publication/content.py +23 -0
  39. imio/smartweb/core/contents/rest/base.py +9 -7
  40. imio/smartweb/core/contents/rest/directory/endpoint.py +2 -2
  41. imio/smartweb/core/contents/rest/directory/view.pt +2 -1
  42. imio/smartweb/core/contents/rest/events/content.py +13 -0
  43. imio/smartweb/core/contents/rest/events/endpoint.py +5 -3
  44. imio/smartweb/core/contents/rest/events/view.pt +5 -1
  45. imio/smartweb/core/contents/rest/events/view.py +12 -0
  46. imio/smartweb/core/contents/rest/news/content.py +6 -0
  47. imio/smartweb/core/contents/rest/news/endpoint.py +4 -2
  48. imio/smartweb/core/contents/rest/news/view.pt +4 -1
  49. imio/smartweb/core/contents/rest/news/view.py +8 -0
  50. imio/smartweb/core/contents/rest/utils.py +0 -1
  51. imio/smartweb/core/contents/rest/view.py +4 -0
  52. imio/smartweb/core/contents/sections/common_templates/carousel.pt +5 -1
  53. imio/smartweb/core/contents/sections/common_templates/table.pt +18 -4
  54. imio/smartweb/core/contents/sections/configure.zcml +18 -0
  55. imio/smartweb/core/contents/sections/contact/content.py +2 -2
  56. imio/smartweb/core/contents/sections/contact/macros.pt +28 -3
  57. imio/smartweb/core/contents/sections/contact/utils.py +2 -0
  58. imio/smartweb/core/contents/sections/contact/view.py +28 -12
  59. imio/smartweb/core/contents/sections/events/content.py +12 -4
  60. imio/smartweb/core/contents/sections/events/view.py +20 -2
  61. imio/smartweb/core/contents/sections/external_content/view.pt +4 -4
  62. imio/smartweb/core/contents/sections/external_content/views.py +6 -4
  63. imio/smartweb/core/contents/sections/files/content.py +7 -1
  64. imio/smartweb/core/contents/sections/files/view.py +43 -12
  65. imio/smartweb/core/contents/sections/links/view.py +5 -0
  66. imio/smartweb/core/contents/sections/macros.pt +26 -0
  67. imio/smartweb/core/contents/sections/news/content.py +11 -3
  68. imio/smartweb/core/contents/sections/news/view.py +20 -2
  69. imio/smartweb/core/contents/sections/text/views.py +2 -0
  70. imio/smartweb/core/contents/sections/views.py +73 -10
  71. imio/smartweb/core/interfaces.py +4 -0
  72. imio/smartweb/core/profiles/default/metadata.xml +1 -1
  73. imio/smartweb/core/profiles/default/taxonomies/page_category.xml +16 -0
  74. imio/smartweb/core/profiles/default/taxonomies/procedure_category.xml +26 -0
  75. imio/smartweb/core/profiles/default/types/imio.smartweb.EventsView.xml +1 -0
  76. imio/smartweb/core/profiles/default/types/imio.smartweb.NewsView.xml +1 -0
  77. imio/smartweb/core/profiles/default/types/imio.smartweb.Publication.xml +38 -0
  78. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionEvents.xml +1 -0
  79. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionFiles.xml +2 -0
  80. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionNews.xml +1 -0
  81. imio/smartweb/core/profiles/default/types.xml +1 -0
  82. imio/smartweb/core/profiles/icons/basic/registry.xml +120 -0
  83. imio/smartweb/core/rest/authentic_sources.py +17 -2
  84. imio/smartweb/core/subscribers.py +48 -0
  85. imio/smartweb/core/subscribers.zcml +12 -0
  86. imio/smartweb/core/tests/resources/json_iadeliberations_institutions.json +60 -0
  87. imio/smartweb/core/tests/resources/json_iadeliberations_publication.json +105 -0
  88. imio/smartweb/core/tests/resources/json_iadeliberations_publications.json +270 -0
  89. imio/smartweb/core/tests/resources/json_rest_events.json +6 -2
  90. imio/smartweb/core/tests/resources/json_rest_news.json +2 -2
  91. imio/smartweb/core/tests/resources/json_rest_specific_events.json +1 -1
  92. imio/smartweb/core/tests/test_htmx_in_sections.py +131 -0
  93. imio/smartweb/core/tests/test_iadeliberations.py +136 -0
  94. imio/smartweb/core/tests/test_icons.py +1 -1
  95. imio/smartweb/core/tests/test_rest.py +58 -17
  96. imio/smartweb/core/tests/test_section_contact.py +42 -10
  97. imio/smartweb/core/tests/test_section_events.py +28 -5
  98. imio/smartweb/core/tests/test_section_external_content.py +28 -2
  99. imio/smartweb/core/tests/test_section_news.py +30 -8
  100. imio/smartweb/core/tests/test_sections.py +17 -0
  101. imio/smartweb/core/tests/test_vocabularies.py +60 -3
  102. imio/smartweb/core/tests/test_vocabulary.py +43 -0
  103. imio/smartweb/core/upgrades/configure.zcml +108 -0
  104. imio/smartweb/core/upgrades/profiles/1055_to_1056/types/imio.smartweb.SectionFiles.xml +12 -0
  105. imio/smartweb/core/upgrades/profiles/1056_to_1057/types/imio.smartweb.EventsView.xml +11 -0
  106. imio/smartweb/core/upgrades/profiles/1056_to_1057/types/imio.smartweb.NewsView.xml +11 -0
  107. imio/smartweb/core/upgrades/profiles/1056_to_1057/types/imio.smartweb.SectionEvents.xml +11 -0
  108. imio/smartweb/core/upgrades/profiles/1056_to_1057/types/imio.smartweb.SectionNews.xml +11 -0
  109. imio/smartweb/core/upgrades/profiles/1057_to_1058/taxonomies/page_category.cfg +9 -0
  110. imio/smartweb/core/upgrades/profiles/1057_to_1058/taxonomies/page_category.xml +73 -0
  111. imio/smartweb/core/upgrades/profiles/1057_to_1058/taxonomies/procedure_category.cfg +9 -0
  112. imio/smartweb/core/upgrades/profiles/1057_to_1058/taxonomies/procedure_category.xml +118 -0
  113. imio/smartweb/core/upgrades/profiles/1058_to_1059/registry/linkedin-icon.xml +126 -0
  114. imio/smartweb/core/upgrades/profiles/1059_to_1060/registry/iadeliberation.xml +9 -0
  115. imio/smartweb/core/upgrades/profiles/1060_to_1061/types/imio.smartweb.Publication.xml +38 -0
  116. imio/smartweb/core/upgrades/profiles/1060_to_1061/types/imio.smartweb.SectionFiles.xml +11 -0
  117. imio/smartweb/core/upgrades/profiles/1060_to_1061/types.xml +4 -0
  118. imio/smartweb/core/upgrades/profiles/1060_to_1061/workflows.xml +6 -0
  119. imio/smartweb/core/utils.py +33 -2
  120. imio/smartweb/core/viewlets/configure.zcml +23 -1
  121. imio/smartweb/core/viewlets/footer.pt +5 -0
  122. imio/smartweb/core/viewlets/footer.py +5 -0
  123. imio/smartweb/core/viewlets/htmx.py +15 -0
  124. imio/smartweb/core/viewlets/htmx_js_header.pt +64 -0
  125. imio/smartweb/core/viewlets/ogptags.py +4 -3
  126. imio/smartweb/core/viewlets/social.py +23 -0
  127. imio/smartweb/core/vocabularies.py +65 -3
  128. imio/smartweb/core/vocabularies.zcml +18 -0
  129. imio/smartweb/core/webcomponents/build/1c1605a5fe9a2b10a88f.png +1 -0
  130. imio/smartweb/core/webcomponents/build/524db40e119aa11f4478.png +1 -0
  131. imio/smartweb/core/webcomponents/build/57d3b7cb1ab874660b39.svg +1 -0
  132. imio/smartweb/core/webcomponents/build/6cf03871df23ed2ee8b3.png +1 -0
  133. imio/smartweb/core/webcomponents/build/css/373.smartweb-webcomponents-compiled.css +1 -1
  134. imio/smartweb/core/webcomponents/build/css/486.smartweb-webcomponents-compiled.css +1 -1
  135. imio/smartweb/core/webcomponents/build/css/884.smartweb-webcomponents-compiled.css +1 -0
  136. imio/smartweb/core/webcomponents/build/css/919.smartweb-webcomponents-compiled.css +1 -1
  137. imio/smartweb/core/webcomponents/build/css/smartweb-webcomponents-compiled.css +1 -1
  138. imio/smartweb/core/webcomponents/build/js/218.smartweb-webcomponents-compiled.js +1 -1
  139. imio/smartweb/core/webcomponents/build/js/218.smartweb-webcomponents-compiled.js.LICENSE.txt +10 -8
  140. imio/smartweb/core/webcomponents/build/js/373.smartweb-webcomponents-compiled.js +2 -1
  141. imio/smartweb/core/webcomponents/build/js/{568.smartweb-webcomponents-compiled.js.LICENSE.txt → 373.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -4
  142. imio/smartweb/core/webcomponents/build/js/486.smartweb-webcomponents-compiled.js +1 -1
  143. imio/smartweb/core/webcomponents/build/js/499.smartweb-webcomponents-compiled.js +2 -0
  144. imio/smartweb/core/webcomponents/build/js/{674.smartweb-webcomponents-compiled.js.LICENSE.txt → 499.smartweb-webcomponents-compiled.js.LICENSE.txt} +1 -8
  145. imio/smartweb/core/webcomponents/build/js/799.smartweb-webcomponents-compiled.js +1 -1
  146. imio/smartweb/core/webcomponents/build/js/824.smartweb-webcomponents-compiled.js +2 -0
  147. imio/smartweb/core/webcomponents/build/js/828.smartweb-webcomponents-compiled.js +2 -0
  148. imio/smartweb/core/webcomponents/build/js/828.smartweb-webcomponents-compiled.js.LICENSE.txt +32 -0
  149. imio/smartweb/core/webcomponents/build/js/884.smartweb-webcomponents-compiled.js +1 -0
  150. imio/smartweb/core/webcomponents/build/js/919.smartweb-webcomponents-compiled.js +1 -1
  151. imio/smartweb/core/webcomponents/build/js/{568.smartweb-webcomponents-compiled.js → 963.smartweb-webcomponents-compiled.js} +2 -2
  152. imio/smartweb/core/webcomponents/build/js/963.smartweb-webcomponents-compiled.js.LICENSE.txt +3 -0
  153. imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js +1 -1
  154. imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js.LICENSE.txt +11 -14
  155. imio/smartweb/core/webcomponents/package.json +42 -40
  156. imio/smartweb/core/webcomponents/src/components/Annuaire/Annuaire.jsx +146 -79
  157. imio/smartweb/core/webcomponents/src/components/Annuaire/Annuaire.scss +415 -351
  158. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactCard/ContactCard.jsx +95 -62
  159. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactContent/ContactContent.jsx +328 -168
  160. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactList/ContactList.jsx +21 -4
  161. imio/smartweb/core/webcomponents/src/components/Annuaire/Filters/Filter.jsx +213 -100
  162. imio/smartweb/core/webcomponents/src/components/Annuaire/index.js +1 -1
  163. imio/smartweb/core/webcomponents/src/components/Events/EventCard/EventCard.jsx +76 -33
  164. imio/smartweb/core/webcomponents/src/components/Events/EventContent/EventContent.jsx +604 -377
  165. imio/smartweb/core/webcomponents/src/components/Events/EventList/EventList.jsx +29 -4
  166. imio/smartweb/core/webcomponents/src/components/Events/Events.jsx +162 -88
  167. imio/smartweb/core/webcomponents/src/components/Events/Events.scss +496 -378
  168. imio/smartweb/core/webcomponents/src/components/Events/Filters/Filter.jsx +259 -91
  169. imio/smartweb/core/webcomponents/src/components/Filters/DateFilter.jsx +62 -55
  170. imio/smartweb/core/webcomponents/src/components/Filters/DateFilter.scss +68 -17
  171. imio/smartweb/core/webcomponents/src/components/Filters/IamData.jsx +42 -0
  172. imio/smartweb/core/webcomponents/src/components/Filters/MainFilter.scss +229 -0
  173. imio/smartweb/core/webcomponents/src/components/Filters/PublicTargetData.jsx +94 -0
  174. imio/smartweb/core/webcomponents/src/components/Filters/SelectStyles.js +58 -0
  175. imio/smartweb/core/webcomponents/src/components/Filters/TaxonomyFilter.jsx +149 -0
  176. imio/smartweb/core/webcomponents/src/components/Filters/TaxonomyFilter.scss +70 -0
  177. imio/smartweb/core/webcomponents/src/components/News/Filters/Filter.jsx +139 -83
  178. imio/smartweb/core/webcomponents/src/components/News/News.jsx +133 -67
  179. imio/smartweb/core/webcomponents/src/components/News/News.scss +170 -127
  180. imio/smartweb/core/webcomponents/src/components/News/NewsCard/NewsCard.jsx +76 -44
  181. imio/smartweb/core/webcomponents/src/components/News/NewsContent/NewsContent.jsx +261 -188
  182. imio/smartweb/core/webcomponents/src/components/News/NewsList/NewsList.jsx +48 -9
  183. imio/smartweb/core/webcomponents/src/components/Search/ContactResult/ContactResult.jsx +21 -10
  184. imio/smartweb/core/webcomponents/src/components/Search/EventsResult/EventsResult.jsx +21 -10
  185. imio/smartweb/core/webcomponents/src/components/Search/Filters/Filter.jsx +8 -9
  186. imio/smartweb/core/webcomponents/src/components/Search/NewsResult/NewsResult.jsx +23 -12
  187. imio/smartweb/core/webcomponents/src/components/Search/Search.jsx +7 -6
  188. imio/smartweb/core/webcomponents/src/components/Search/Search.scss +115 -96
  189. imio/smartweb/core/webcomponents/src/components/Search/WebResult/WebResult.jsx +12 -3
  190. imio/smartweb/core/webcomponents/src/components/Search/index.js +1 -1
  191. imio/smartweb/core/webcomponents/src/hooks/ScrollContext.jsx +3 -0
  192. imio/smartweb/core/webcomponents/src/hooks/useAxios.js +3 -3
  193. imio/smartweb/core/webcomponents/src/hooks/useFilterQuery.js +1 -2
  194. imio/smartweb/core/webcomponents/src/index.scss +255 -211
  195. imio/smartweb/core/webcomponents/src/utils/Map.jsx +26 -19
  196. imio/smartweb/core/webcomponents/src/utils/Map.scss +2 -2
  197. imio/smartweb/core/webcomponents/src/utils/translation.js +129 -9
  198. imio.smartweb.core-1.2.79-py3.8-nspkg.pth +2 -0
  199. {imio.smartweb.core-1.2.38.dist-info → imio.smartweb.core-1.2.79.dist-info}/METADATA +403 -10
  200. {imio.smartweb.core-1.2.38.dist-info → imio.smartweb.core-1.2.79.dist-info}/RECORD +206 -160
  201. {imio.smartweb.core-1.2.38.dist-info → imio.smartweb.core-1.2.79.dist-info}/WHEEL +1 -1
  202. imio/smartweb/core/webcomponents/build/assets/location-bla.1423bcce16ddcb21141430cac1428dc1.svg +0 -1
  203. imio/smartweb/core/webcomponents/build/assets/next-react-white.819cb069ac8eec300a9db6a7707712d6.svg +0 -1
  204. imio/smartweb/core/webcomponents/build/assets/next-react.17bc43ff4a6a86f4520f5782f6a89a72.svg +0 -1
  205. imio/smartweb/core/webcomponents/build/assets/search.57bdbf5b191499cd77514097d1c4972c.svg +0 -1
  206. imio/smartweb/core/webcomponents/build/css/686.smartweb-webcomponents-compiled.css +0 -1
  207. imio/smartweb/core/webcomponents/build/js/209.smartweb-webcomponents-compiled.js +0 -2
  208. imio/smartweb/core/webcomponents/build/js/40.smartweb-webcomponents-compiled.js +0 -1
  209. imio/smartweb/core/webcomponents/build/js/674.smartweb-webcomponents-compiled.js +0 -2
  210. imio/smartweb/core/webcomponents/build/js/686.smartweb-webcomponents-compiled.js +0 -1
  211. imio/smartweb/core/webcomponents/src/assets/facebook-news.svg +0 -1
  212. imio/smartweb/core/webcomponents/src/assets/location-bla.svg +0 -1
  213. imio/smartweb/core/webcomponents/src/assets/next-react.svg +0 -1
  214. imio/smartweb/core/webcomponents/src/assets/search.svg +0 -1
  215. imio/smartweb/core/webcomponents/src/assets/skeleton.svg +0 -1
  216. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactContent/download.svg +0 -1
  217. imio.smartweb.core-1.2.38-py3.8-nspkg.pth +0 -3
  218. /imio/smartweb/core/webcomponents/build/js/{209.smartweb-webcomponents-compiled.js.LICENSE.txt → 824.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
  219. {imio.smartweb.core-1.2.38.dist-info → imio.smartweb.core-1.2.79.dist-info}/LICENSE.GPL +0 -0
  220. {imio.smartweb.core-1.2.38.dist-info → imio.smartweb.core-1.2.79.dist-info}/LICENSE.rst +0 -0
  221. {imio.smartweb.core-1.2.38.dist-info → imio.smartweb.core-1.2.79.dist-info}/namespace_packages.txt +0 -0
  222. {imio.smartweb.core-1.2.38.dist-info → imio.smartweb.core-1.2.79.dist-info}/top_level.txt +0 -0
@@ -1,275 +1,301 @@
1
- .portaltype-imio-smartweb-directoryview{
2
- #portal-header{
3
- margin-bottom: 0!important;
4
- }
5
- #portal-breadcrumbs{
6
- margin-bottom: 0!important;
7
- .breadcrumb{
8
- margin-bottom: 0!important;
1
+ .portaltype-imio-smartweb-directoryview {
2
+ #portal-header {
3
+ margin-bottom: 0 !important;
4
+ }
5
+
6
+ #portal-breadcrumbs {
7
+ margin-bottom: 0 !important;
8
+
9
+ .breadcrumb {
10
+ margin-bottom: 0 !important;
11
+ }
9
12
  }
10
- }
11
13
  }
12
14
 
13
- /* Filters */
14
- .r-wrapper{
15
- position: relative;
16
- figure{
17
- display: block;
18
- }
15
+ .r-wrapper {
16
+ position: relative;
17
+
18
+ figure {
19
+ display: block;
20
+ }
19
21
  }
20
- .r-result-filter-container,
22
+
21
23
  .r-actu-wrapper {
22
- padding-top: 1rem;
24
+ padding-top: 1rem;
23
25
  }
26
+
24
27
  .r-result {
25
- position: relative;
26
- &-filter {
27
- display: flex;
28
- flex-wrap: wrap;
29
- gap: 20px;
30
- padding-bottom: 20px;
31
- border-bottom: solid 1px #cccc;
32
- align-items: center;
33
- .r-filter {
34
- width: 100%;
35
- max-width: 200px;
36
- label {
37
- display: block;
38
- }
39
- .r-filter-search {
40
- position: relative;
41
- .input-custom-class {
42
- line-height: 50px;
43
- border: 1px solid #CCCCCC;
44
- height: 50px;
45
- padding: 0 10px;
46
- font-weight: bold;
47
- color: #000;
48
- width: 100%;
49
- letter-spacing: 1.2px;
50
- &::placeholder {
51
- color: #000;
52
- font-size: 12px;
53
- opacity: 1;
54
- text-transform: uppercase;
55
- letter-spacing: '1.2px';
56
- }
57
- }
58
- button {
59
- background: url(./assets/search.svg) no-repeat;
60
- background-position: center;
61
- background-size: 80%;
62
- border: none;
63
- width: 20px;
64
- position: absolute;
65
- right: 10px;
66
- top: 0;
67
- bottom: 0;
68
- }
69
- }
28
+ position: relative;
29
+ }
70
30
 
31
+ .r-add-event,
32
+ .r-add-news,
33
+ .r-add-contact {
34
+ @media screen and (min-width: 992px) {
35
+ position: absolute;
36
+ right: 0;
37
+ bottom: 0px;
38
+ padding-bottom: 1rem;
39
+ }
40
+ a {
41
+ color: #2d2d2d;
42
+ text-decoration: none;
43
+ display: flex;
44
+ flex-direction: row;
45
+ align-items: center;
46
+ gap: 7px;
47
+ &:hover,
48
+ &:focus {
49
+ text-decoration: underline;
50
+ }
71
51
  }
72
- }
73
- }
74
- .r-add-event,.r-add-news,.r-add-contact{
75
- a{
76
- background: #000;
77
- color: #fff;
78
- text-decoration: none;
79
- padding: 1rem;
80
- }
81
52
  }
53
+
82
54
  /* list item */
83
55
  .r-list-item-link {
84
- inset: 0px !important;
85
- position: absolute !important;
56
+ inset: 0px !important;
57
+ position: absolute !important;
86
58
  }
59
+
87
60
  .r-list-item-group {
88
- margin: 15px 0;
89
- position: relative;
61
+ margin: 15px 0;
62
+ position: relative;
90
63
  }
64
+
91
65
  .r-list-item {
92
- display: flex;
93
- height: 100%;
94
- align-items: stretch;
66
+ display: flex;
67
+ height: 100%;
68
+ align-items: stretch;
95
69
  }
70
+
96
71
  /* load-more-link */
97
72
  .load-more-link {
98
- background: transparent;
99
- margin: 0 auto;
100
- border: none;
101
- display: block;
73
+ background: transparent;
74
+ margin: 0 auto;
75
+ border: none;
76
+ display: block;
102
77
  }
103
78
 
104
79
  //// for bla ////
105
- /* filters */
106
- .r-filter {
107
- label {
108
- text-transform: uppercase;
109
- font-weight: bold;
110
- font-size: 13px;
111
- margin-bottom: 10px;
112
- }
113
- }
80
+
114
81
  // content
115
82
  .r-content-description {
116
- font-weight: 500;
83
+ font-weight: 500;
117
84
  }
85
+
118
86
  .r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text {
119
- flex: min-content;
87
+ flex: min-content;
120
88
  }
121
89
 
122
90
  // map
123
91
 
124
92
  .leaflet-popup {
125
- padding: 0 !important;
93
+ padding: 0 !important;
126
94
  }
95
+
127
96
  .leaflet-container {
128
- opacity: 1 !important;
97
+ opacity: 1 !important;
129
98
  }
130
99
 
131
-
132
100
  // Flies and gallery
133
101
 
102
+ .r-content-files {
103
+ margin: 2rem 0;
134
104
 
135
- .r-content-files{
136
- margin: 2rem 0;
137
- &-title{
138
- margin-bottom: 1rem;
139
- }
140
- .r-content-file{
141
- margin: 1rem 0;
142
- &-link{
143
- text-decoration: none;
144
- display: flex;
145
- gap: 20px;
146
- padding: 1rem;
147
- border: solid 1px #e6e6e6;
148
- justify-content: space-between;
149
- &:hover{
150
- border: solid 1px #868686;
151
- }
105
+ &-title {
106
+ margin-bottom: 1rem;
107
+ }
108
+
109
+ .r-content-file {
110
+ margin: 1rem 0;
111
+
112
+ &-link {
113
+ text-decoration: none;
114
+ display: flex;
115
+ gap: 20px;
116
+ padding: 1rem;
117
+ border: solid 1px #e6e6e6;
118
+ justify-content: space-between;
119
+
120
+ &:hover {
121
+ border: solid 1px #868686;
122
+ }
123
+ }
124
+ &-title {
125
+ display: flex;
126
+ align-items: center;
127
+ gap: 5px;
128
+ &-size {
129
+ font-size: 14px;
130
+ opacity: 0.5;
131
+ }
132
+ }
133
+ }
134
+
135
+ span {
136
+ display: block;
152
137
  }
153
- }
154
- span{
155
- display: block;
156
- }
157
138
  }
158
139
 
159
- .r-content-gallery{
160
- margin: 2rem 0;
161
- &.flexbin > * > img {
162
- height: 226px;
163
- }
164
- &.flexbin > * {
165
- height: 226px;
166
- }
140
+ .r-content-gallery {
141
+ margin: 2rem 0;
142
+
143
+ &.flexbin > * > img {
144
+ height: 226px;
145
+ }
146
+
147
+ &.flexbin > * {
148
+ height: 226px;
149
+ }
167
150
  }
168
151
 
169
152
  // loaer
170
- .lds-roller-container{
171
- position: absolute;
172
- bottom: 0;
173
- top: 0;
174
- left: 0;
175
- right: 0;
176
- background: hsla(0, 0%, 100%, 0.82);
153
+ .lds-roller-container {
154
+ position: absolute;
155
+ bottom: 0;
156
+ top: 0;
157
+ left: 0;
158
+ right: 0;
159
+ background: hsla(0, 0%, 100%, 0.82);
177
160
  }
161
+
178
162
  .lds-roller {
179
- display: inline-block;
180
- position: absolute;
181
- width: 80px;
182
- height: 80px;
183
- top: 5rem;
184
- left: 50%;
185
- transform: translate(-50%, -50%);
186
- z-index: 0;
163
+ display: inline-block;
164
+ position: absolute;
165
+ width: 80px;
166
+ height: 80px;
167
+ top: 5rem;
168
+ left: 50%;
169
+ transform: translate(-50%, -50%);
170
+ z-index: 0;
187
171
  }
172
+
188
173
  .lds-roller div {
189
- animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
190
- transform-origin: 40px 40px;
174
+ animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
175
+ transform-origin: 40px 40px;
191
176
  }
177
+
192
178
  .lds-roller div:after {
193
- content: " ";
194
- display: block;
195
- position: absolute;
196
- width: 7px;
197
- height: 7px;
198
- border-radius: 50%;
199
- background: rgb(51, 51, 51);
200
- margin: -4px 0 0 -4px;
179
+ content: " ";
180
+ display: block;
181
+ position: absolute;
182
+ width: 7px;
183
+ height: 7px;
184
+ border-radius: 50%;
185
+ background: rgb(51, 51, 51);
186
+ margin: -4px 0 0 -4px;
201
187
  }
188
+
202
189
  .lds-roller div:nth-child(1) {
203
- animation-delay: -0.036s;
190
+ animation-delay: -0.036s;
204
191
  }
192
+
205
193
  .lds-roller div:nth-child(1):after {
206
- top: 63px;
207
- left: 63px;
194
+ top: 63px;
195
+ left: 63px;
208
196
  }
197
+
209
198
  .lds-roller div:nth-child(2) {
210
- animation-delay: -0.072s;
199
+ animation-delay: -0.072s;
211
200
  }
201
+
212
202
  .lds-roller div:nth-child(2):after {
213
- top: 68px;
214
- left: 56px;
203
+ top: 68px;
204
+ left: 56px;
215
205
  }
206
+
216
207
  .lds-roller div:nth-child(3) {
217
- animation-delay: -0.108s;
208
+ animation-delay: -0.108s;
218
209
  }
210
+
219
211
  .lds-roller div:nth-child(3):after {
220
- top: 71px;
221
- left: 48px;
212
+ top: 71px;
213
+ left: 48px;
222
214
  }
215
+
223
216
  .lds-roller div:nth-child(4) {
224
- animation-delay: -0.144s;
217
+ animation-delay: -0.144s;
225
218
  }
219
+
226
220
  .lds-roller div:nth-child(4):after {
227
- top: 72px;
228
- left: 40px;
221
+ top: 72px;
222
+ left: 40px;
229
223
  }
224
+
230
225
  .lds-roller div:nth-child(5) {
231
- animation-delay: -0.18s;
226
+ animation-delay: -0.18s;
232
227
  }
228
+
233
229
  .lds-roller div:nth-child(5):after {
234
- top: 71px;
235
- left: 32px;
230
+ top: 71px;
231
+ left: 32px;
236
232
  }
233
+
237
234
  .lds-roller div:nth-child(6) {
238
- animation-delay: -0.216s;
235
+ animation-delay: -0.216s;
239
236
  }
237
+
240
238
  .lds-roller div:nth-child(6):after {
241
- top: 68px;
242
- left: 24px;
239
+ top: 68px;
240
+ left: 24px;
243
241
  }
242
+
244
243
  .lds-roller div:nth-child(7) {
245
- animation-delay: -0.252s;
244
+ animation-delay: -0.252s;
246
245
  }
246
+
247
247
  .lds-roller div:nth-child(7):after {
248
- top: 63px;
249
- left: 17px;
248
+ top: 63px;
249
+ left: 17px;
250
250
  }
251
+
251
252
  .lds-roller div:nth-child(8) {
252
- animation-delay: -0.288s;
253
+ animation-delay: -0.288s;
253
254
  }
255
+
254
256
  .lds-roller div:nth-child(8):after {
255
- top: 56px;
256
- left: 12px;
257
+ top: 56px;
258
+ left: 12px;
257
259
  }
260
+
258
261
  @keyframes lds-roller {
259
- 0% {
260
- transform: rotate(0deg);
261
- }
262
- 100% {
263
- transform: rotate(360deg);
264
- }
262
+ 0% {
263
+ transform: rotate(0deg);
264
+ }
265
+
266
+ 100% {
267
+ transform: rotate(360deg);
268
+ }
265
269
  }
266
270
 
267
271
  // image figure
268
272
  .r-content-figure {
269
- position: relative;
270
- aspect-ratio: 16/9;
271
- background-color: #000;
272
- &-blur {
273
+ position: relative;
274
+ aspect-ratio: 16/9;
275
+ background-color: #000;
276
+
277
+ &-blur {
278
+ position: absolute;
279
+ width: 100%;
280
+ height: 100%;
281
+ top: 0;
282
+ left: 0;
283
+ background-size: cover;
284
+ background-position: center;
285
+ opacity: 0.8;
286
+ }
287
+
288
+ &-img {
289
+ position: absolute;
290
+ width: 100%;
291
+ height: 100%;
292
+ object-fit: cover;
293
+ object-position: center;
294
+ backdrop-filter: blur(10px);
295
+ }
296
+ }
297
+
298
+ .r-content-img-blur {
273
299
  position: absolute;
274
300
  width: 100%;
275
301
  height: 100%;
@@ -277,35 +303,53 @@
277
303
  left: 0;
278
304
  background-size: cover;
279
305
  background-position: center;
280
- opacity: 0.8;
281
- }
282
- &-img{
283
- position: absolute;
284
- width: 100%;
285
- height: 100%;
286
- object-fit: cover;
287
- object-position: center;
288
- backdrop-filter: blur(10px);
289
- }
290
- }
291
- .r-content-img-blur {
292
- position: absolute;
293
- width: 100%;
294
- height: 100%;
295
- top: 0;
296
- left: 0;
297
- background-size: cover;
298
- background-position: center;
299
306
  }
300
307
 
301
308
  .img-cover {
302
- background-size: cover;
303
- background-position: center;
309
+ background-size: cover;
310
+ background-position: center;
304
311
  }
312
+
305
313
  .img-contain {
306
- object-fit: contain;
307
- object-position: center;
308
- background-size: contain;
309
- background-repeat: no-repeat;
310
- background-position: center;
311
- }
314
+ object-fit: contain;
315
+ object-position: center;
316
+ background-size: contain;
317
+ background-repeat: no-repeat;
318
+ background-position: center;
319
+ }
320
+
321
+ .no-search-item-img {
322
+ background: black;
323
+ background-color: #c9c9c9 !important;
324
+ background-position: center !important;
325
+ }
326
+
327
+ .r-search-img {
328
+ background-color: #c9c9c9 !important;
329
+ }
330
+
331
+ .portaltype-imio-smartweb-eventsview,
332
+ .portaltype-imio-smartweb-directoryview,
333
+ .portaltype-imio-smartweb-newsview {
334
+ #portal-breadcrumbs,
335
+ #portal-header {
336
+ margin-bottom: 0 !important;
337
+ }
338
+ }
339
+
340
+ .edit-rest-elements {
341
+ position: absolute;
342
+ right: 5px;
343
+ top: 5px;
344
+ display: flex;
345
+ flex-direction: column;
346
+ align-items: center;
347
+ padding: 10px;
348
+ }
349
+
350
+ .edit-rest-elements-content {
351
+ top: 10px;
352
+ }
353
+ .edit-rest-elements-news {
354
+ padding: 10px;
355
+ }
@@ -8,6 +8,7 @@ import { Link } from "react-router-dom";
8
8
  import "./Map.scss";
9
9
  import "leaflet/dist/leaflet.css";
10
10
  import removeAccents from "remove-accents";
11
+ import queryString from "query-string";
11
12
 
12
13
  function ChangeMapView({ activeItem, arrayOfLatLngs }) {
13
14
  const map = useMap();
@@ -27,13 +28,17 @@ function Map(props) {
27
28
  const [activeItem, setActiveItem] = useState(null);
28
29
  const [filterGeoArray, setFilterGeoArray] = useState([]);
29
30
  const [allPosition, setAllPosition] = useState(null);
30
- const queryString = require("query-string");
31
- const { u, ...parsed } = Object.assign(
32
- { UID: queryString.parse(useFilterQuery().toString())['u']},
33
- );
31
+ const { u, ...parsed } = Object.assign({
32
+ UID: queryString.parse(useFilterQuery().toString())["u"],
33
+ });
34
34
  // Delete Imio positions
35
35
  useEffect(() => {
36
- const filterArray = props.items.filter((isgeo) => isgeo.geolocation.latitude && isgeo.geolocation.latitude !== 50.4989185 && isgeo.geolocation.longitude !== 4.7184485);
36
+ const filterArray = props.items.filter(
37
+ (isgeo) =>
38
+ isgeo.geolocation.latitude &&
39
+ isgeo.geolocation.latitude !== 50.4989185 &&
40
+ isgeo.geolocation.longitude !== 4.7184485
41
+ );
37
42
  setFilterGeoArray(filterArray);
38
43
  }, [props]);
39
44
 
@@ -43,7 +48,7 @@ function Map(props) {
43
48
  iconUrl: url,
44
49
  iconSize: [29, 37],
45
50
  });
46
- }
51
+ };
47
52
  // Get Marker Icon and Z-index
48
53
  const getMarkerIcon = (index) => {
49
54
  if (index === parsed.UID) {
@@ -66,13 +71,12 @@ function Map(props) {
66
71
 
67
72
  useEffect(() => {
68
73
  var result =
69
- filterGeoArray &&
70
- filterGeoArray.filter((obj) => {
71
- return obj.UID === parsed.UID;
72
- });
73
- setActiveItem(result[0]);
74
- }, [filterGeoArray]);
75
-
74
+ filterGeoArray &&
75
+ filterGeoArray.filter((obj) => {
76
+ return obj.UID === parsed.UID;
77
+ });
78
+ setActiveItem(result[0]);
79
+ }, [filterGeoArray]);
76
80
 
77
81
  useEffect(() => {
78
82
  if (filterGeoArray.length > 0) {
@@ -87,9 +91,9 @@ function Map(props) {
87
91
  }, [filterGeoArray]);
88
92
  const position = [50.85034, 4.35171];
89
93
 
90
- const markers = filterGeoArray.map((mark) => (
94
+ const markers = filterGeoArray.map((mark,i) => (
91
95
  <Marker
92
- key={mark.UID}
96
+ key={i}
93
97
  icon={getMarkerIcon(mark.UID)}
94
98
  zIndexOffset={getMarkerZindex(mark.UID)}
95
99
  position={[
@@ -107,9 +111,12 @@ function Map(props) {
107
111
  className="r-map-popup"
108
112
  style={{ textDecoration: "none" }}
109
113
  to={{
110
- pathname: removeAccents(
111
- mark.title.replace(/\s/g, "-").toLowerCase()
112
- ),
114
+ pathname:
115
+ "/" +
116
+ removeAccents(mark.title)
117
+ .replace(/[^a-zA-Z ]/g, "")
118
+ .replace(/\s/g, "-")
119
+ .toLowerCase(),
113
120
  search: `?u=${mark.UID}`,
114
121
  state: {
115
122
  idItem: mark.UID,
@@ -143,7 +150,7 @@ function Map(props) {
143
150
  ) : (
144
151
  ""
145
152
  )}
146
- {filterGeoArray && markers }
153
+ {filterGeoArray && markers}
147
154
  </MapContainer>
148
155
  </div>
149
156
  );
@@ -1,7 +1,7 @@
1
- .leaflet-container{
1
+ .leaflet-container {
2
2
  height: 100vh;
3
3
  }
4
4
 
5
5
  .leaflet-popup {
6
- padding: 0;
6
+ padding: 0;
7
7
  }