imio.smartweb.core 1.1.14__py3-none-any.whl → 1.1.19__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 (133) hide show
  1. imio/smartweb/core/browser/configure.zcml +1 -0
  2. imio/smartweb/core/browser/controlpanel.py +24 -0
  3. imio/smartweb/core/browser/dashboards/__init__.py +0 -0
  4. imio/smartweb/core/browser/dashboards/configure.zcml +17 -0
  5. imio/smartweb/core/browser/dashboards/plausible.pt +29 -0
  6. imio/smartweb/core/browser/dashboards/plausible.py +21 -0
  7. imio/smartweb/core/browser/faceted/map.pt +3 -7
  8. imio/smartweb/core/browser/overrides/plone.app.content.browser.contents.templates.properties.pt +48 -0
  9. imio/smartweb/core/browser/static/icons/categorie-horaires.svg +2 -2
  10. imio/smartweb/core/browser/static/icons/reseausocial-facebook.svg +1 -1
  11. imio/smartweb/core/browser/static/icons/reseausocial-youtube.svg +1 -1
  12. imio/smartweb/core/browser/static/smartweb-swiperconfig-compiled.js +1 -0
  13. imio/smartweb/core/browser/static/smartweb-view-compiled.js +1 -1
  14. imio/smartweb/core/browser/static/src/swiper-config.js +46 -0
  15. imio/smartweb/core/browser/static/src/view.js +1 -46
  16. imio/smartweb/core/browser/static/swiper-bundle.min.css +4 -4
  17. imio/smartweb/core/browser/static/swiper-bundle.min.js +5 -4
  18. imio/smartweb/core/browser/static/webpack.config.js +2 -0
  19. imio/smartweb/core/browser/utils.py +33 -0
  20. imio/smartweb/core/contents/__init__.py +4 -0
  21. imio/smartweb/core/contents/cropping.py +3 -6
  22. imio/smartweb/core/contents/folder/content.py +1 -5
  23. imio/smartweb/core/contents/folder/views.py +3 -1
  24. imio/smartweb/core/contents/pages/pages.py +0 -5
  25. imio/smartweb/core/contents/pages/view.pt +3 -0
  26. imio/smartweb/core/contents/rest/base.py +16 -0
  27. imio/smartweb/core/contents/rest/directory/endpoint.py +8 -15
  28. imio/smartweb/core/contents/rest/events/endpoint.py +6 -12
  29. imio/smartweb/core/contents/rest/news/endpoint.py +6 -11
  30. imio/smartweb/core/contents/rest/search/endpoint.py +26 -6
  31. imio/smartweb/core/contents/sections/configure.zcml +1 -0
  32. imio/smartweb/core/contents/sections/contact/view.pt +1 -2
  33. imio/smartweb/core/contents/sections/contact/view.py +6 -8
  34. imio/smartweb/core/contents/sections/events/view.py +6 -7
  35. imio/smartweb/core/contents/sections/external_content/__init__.py +0 -0
  36. imio/smartweb/core/contents/sections/external_content/configure.zcml +14 -0
  37. imio/smartweb/core/contents/sections/external_content/content.py +32 -0
  38. imio/smartweb/core/contents/sections/external_content/view.pt +31 -0
  39. imio/smartweb/core/contents/sections/external_content/views.py +31 -0
  40. imio/smartweb/core/contents/sections/gallery/view.pt +1 -2
  41. imio/smartweb/core/contents/sections/macros.pt +0 -4
  42. imio/smartweb/core/contents/sections/news/view.py +6 -7
  43. imio/smartweb/core/contents/sections/text/configure.zcml +0 -6
  44. imio/smartweb/core/contents/sections/text/content.py +0 -12
  45. imio/smartweb/core/contents/sections/text/forms.py +2 -0
  46. imio/smartweb/core/contents/sections/views.py +25 -0
  47. imio/smartweb/core/permissions.zcml +6 -0
  48. imio/smartweb/core/profiles/default/metadata.xml +1 -1
  49. imio/smartweb/core/profiles/default/rolemap.xml +6 -0
  50. imio/smartweb/core/profiles/default/types/imio.smartweb.Page.xml +1 -0
  51. imio/smartweb/core/profiles/default/types/imio.smartweb.PortalPage.xml +1 -0
  52. imio/smartweb/core/profiles/default/types/imio.smartweb.Procedure.xml +1 -0
  53. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionContact.xml +0 -1
  54. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionEvents.xml +0 -1
  55. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionExternalContent.xml +35 -0
  56. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionFiles.xml +0 -1
  57. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionGallery.xml +0 -1
  58. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionHTML.xml +1 -1
  59. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionLinks.xml +0 -1
  60. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionMap.xml +0 -1
  61. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionNews.xml +0 -1
  62. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionPostit.xml +0 -1
  63. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionSelections.xml +0 -1
  64. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionSendinblue.xml +0 -1
  65. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionSlide.xml +0 -1
  66. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionText.xml +0 -1
  67. imio/smartweb/core/profiles/default/types/imio.smartweb.SectionVideo.xml +0 -1
  68. imio/smartweb/core/profiles/default/types.xml +1 -0
  69. imio/smartweb/core/profiles/default/workflows.xml +1 -0
  70. imio/smartweb/core/tests/resources/json_rest_directory.json +1099 -0
  71. imio/smartweb/core/tests/resources/json_rest_events.json +1099 -0
  72. imio/smartweb/core/tests/resources/json_rest_news.json +1103 -4
  73. imio/smartweb/core/tests/test_cropping.py +6 -28
  74. imio/smartweb/core/tests/test_folder.py +17 -13
  75. imio/smartweb/core/tests/test_page.py +0 -13
  76. imio/smartweb/core/tests/test_plausibleview.py +83 -0
  77. imio/smartweb/core/tests/test_rest.py +40 -0
  78. imio/smartweb/core/tests/test_section_contact.py +45 -0
  79. imio/smartweb/core/tests/test_section_events.py +56 -10
  80. imio/smartweb/core/tests/test_section_news.py +46 -11
  81. imio/smartweb/core/tests/test_sections.py +34 -0
  82. imio/smartweb/core/upgrades/configure.zcml +90 -0
  83. imio/smartweb/core/upgrades/profiles/1037_to_1038/registry/plausible.xml +9 -0
  84. imio/smartweb/core/upgrades/profiles/1038_to_1039/rolemap.xml +12 -0
  85. imio/smartweb/core/upgrades/profiles/1038_to_1039/types/imio.smartweb.Page.xml +11 -0
  86. imio/smartweb/core/upgrades/profiles/1038_to_1039/types/imio.smartweb.PortalPage.xml +11 -0
  87. imio/smartweb/core/upgrades/profiles/1038_to_1039/types/imio.smartweb.Procedure.xml +11 -0
  88. imio/smartweb/core/upgrades/profiles/1038_to_1039/types/imio.smartweb.SectionExternalContent.xml +36 -0
  89. imio/smartweb/core/upgrades/profiles/1038_to_1039/types.xml +4 -0
  90. imio/smartweb/core/upgrades/profiles/1038_to_1039/workflows.xml +6 -0
  91. imio/smartweb/core/upgrades/profiles/1039_to_1040/types/imio.smartweb.SectionSlide.xml +14 -0
  92. imio/smartweb/core/upgrades/profiles/1040_to_1041/types/imio.smartweb.SectionText.xml +17 -0
  93. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionContact.xml +14 -0
  94. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionEvents.xml +14 -0
  95. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionExternalContent.xml +15 -0
  96. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionFiles.xml +14 -0
  97. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionGallery.xml +15 -0
  98. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionLinks.xml +14 -0
  99. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionMap.xml +15 -0
  100. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionNews.xml +14 -0
  101. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionPostit.xml +14 -0
  102. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionSelections.xml +14 -0
  103. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionSendinblue.xml +14 -0
  104. imio/smartweb/core/upgrades/profiles/1041_to_1042/types/imio.smartweb.SectionVideo.xml +15 -0
  105. imio/smartweb/core/webcomponents/build/css/195.smartweb-webcomponents-compiled.css +1 -1
  106. imio/smartweb/core/webcomponents/build/css/552.smartweb-webcomponents-compiled.css +1 -1
  107. imio/smartweb/core/webcomponents/build/js/195.smartweb-webcomponents-compiled.js +1 -1
  108. imio/smartweb/core/webcomponents/build/js/212.smartweb-webcomponents-compiled.js +2 -0
  109. imio/smartweb/core/webcomponents/build/js/323.smartweb-webcomponents-compiled.js +1 -1
  110. imio/smartweb/core/webcomponents/build/js/510.smartweb-webcomponents-compiled.js +1 -1
  111. imio/smartweb/core/webcomponents/build/js/552.smartweb-webcomponents-compiled.js +1 -1
  112. imio/smartweb/core/webcomponents/build/js/{462.smartweb-webcomponents-compiled.js → 565.smartweb-webcomponents-compiled.js} +1 -1
  113. imio/smartweb/core/webcomponents/build/js/{842.smartweb-webcomponents-compiled.js → 729.smartweb-webcomponents-compiled.js} +2 -2
  114. imio/smartweb/core/webcomponents/build/js/9.smartweb-webcomponents-compiled.js +1 -1
  115. imio/smartweb/core/webcomponents/build/js/9.smartweb-webcomponents-compiled.js.LICENSE.txt +2 -2
  116. imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js +1 -1
  117. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactCard/ContactCard.jsx +2 -3
  118. imio/smartweb/core/webcomponents/src/components/Events/ContactCard/ContactCard.jsx +1 -2
  119. imio/smartweb/core/webcomponents/src/components/Events/Events.jsx +0 -1
  120. imio/smartweb/core/webcomponents/src/components/News/ContactCard/ContactCard.jsx +1 -2
  121. imio/smartweb/core/webcomponents/src/components/News/ContactContent/ContactContent.jsx +1 -1
  122. {imio.smartweb.core-1.1.14.dist-info → imio.smartweb.core-1.1.19.dist-info}/METADATA +106 -18
  123. {imio.smartweb.core-1.1.14.dist-info → imio.smartweb.core-1.1.19.dist-info}/RECORD +131 -96
  124. {imio.smartweb.core-1.1.14.dist-info → imio.smartweb.core-1.1.19.dist-info}/WHEEL +1 -1
  125. imio/smartweb/core/webcomponents/build/assets/img-placeholder-bla.a2b8b384c46ce56c99f042dc4625d309.png +0 -0
  126. imio/smartweb/core/webcomponents/build/js/650.smartweb-webcomponents-compiled.js +0 -2
  127. /imio/smartweb/core/webcomponents/build/js/{650.smartweb-webcomponents-compiled.js.LICENSE.txt → 212.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
  128. /imio/smartweb/core/webcomponents/build/js/{842.smartweb-webcomponents-compiled.js.LICENSE.txt → 729.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
  129. /imio.smartweb.core-1.1.14-nspkg.pth → /imio.smartweb.core-1.1.19-py3.10-nspkg.pth +0 -0
  130. {imio.smartweb.core-1.1.14.dist-info → imio.smartweb.core-1.1.19.dist-info}/LICENSE.GPL +0 -0
  131. {imio.smartweb.core-1.1.14.dist-info → imio.smartweb.core-1.1.19.dist-info}/LICENSE.rst +0 -0
  132. {imio.smartweb.core-1.1.14.dist-info → imio.smartweb.core-1.1.19.dist-info}/namespace_packages.txt +0 -0
  133. {imio.smartweb.core-1.1.14.dist-info → imio.smartweb.core-1.1.19.dist-info}/top_level.txt +0 -0
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import imgPlaceholder from "../../../assets/img-placeholder-bla.png";
3
2
 
4
3
  const ContactCard = ({ contactItem }) => {
5
4
  const title = contactItem.title && contactItem.title;
@@ -32,11 +31,11 @@ const ContactCard = ({ contactItem }) => {
32
31
  countryTitle
33
32
 
34
33
  itineraryLink = itineraryLink.replaceAll('+null', '')
35
-
34
+ console.log(contactItem)
36
35
  return (
37
36
  <div className="r-list-item">
38
37
  <div
39
- className={contactItem.image?"r-item-img":"r-item-img r-item-img-placeholder"}
38
+ className={contactItem.image_preview_scale?"r-item-img":"r-item-img r-item-img-placeholder"}
40
39
  style={{
41
40
  backgroundImage: contactItem.image_preview_scale
42
41
  ? "url(" + contactItem.image_preview_scale + ")"
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import imgPlaceholder from "../../../assets/img-placeholder-bla.png";
3
2
  import moment from "moment";
4
3
  import Moment from "react-moment";
5
4
  const ContactCard = ({ contactItem }) => {
@@ -20,7 +19,7 @@ const ContactCard = ({ contactItem }) => {
20
19
  return (
21
20
  <div className="r-list-item">
22
21
  <div
23
- className={contactItem.image?"r-item-img":"r-item-img r-item-img-placeholder"}
22
+ className={contactItem.image_preview_scale?"r-item-img":"r-item-img r-item-img-placeholder"}
24
23
  style={{
25
24
  backgroundImage: contactItem.image_preview_scale
26
25
  ? "url(" + contactItem.image_preview_scale + ")"
@@ -129,7 +129,6 @@ function EventsView(props) {
129
129
  }
130
130
 
131
131
  const divLoader = <div className="lds-roller-container"><div className="lds-roller"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div></div>;
132
-
133
132
  return (
134
133
  <Router>
135
134
  <div className="ref">
@@ -1,7 +1,6 @@
1
1
  import React, { useEffect, useState } from "react";
2
2
  import moment from "moment";
3
3
  import Moment from "react-moment";
4
- import imgPlaceholder from "../../../assets/img-placeholder-bla.png";
5
4
  import { Link } from "react-router-dom";
6
5
  import removeAccents from "remove-accents";
7
6
 
@@ -26,7 +25,7 @@ const ContactCard = ({ contactItem }) => {
26
25
  return (
27
26
  <div className="r-list-item">
28
27
  <div
29
- className={contactItem.image?"r-item-img":"r-item-img r-item-img-placeholder"}
28
+ className={contactItem.image_preview_scale?"r-item-img":"r-item-img r-item-img-placeholder"}
30
29
  style={{
31
30
  backgroundImage: contactItem.image_preview_scale
32
31
  ? "url(" + contactItem.image_preview_scale + ")"
@@ -247,7 +247,7 @@ const ContactContent = ({ queryUrl, onChange }) => {
247
247
  <div class="spotlight-group flexbin r-content-gallery">
248
248
  {gallery.map((image) => (
249
249
  <a class="spotlight" href={image.image_extralarge_scale} >
250
- <img src={image.image.scales.preview.download} />
250
+ <img src={image.image_preview_scale} />
251
251
  </a>
252
252
  ))}
253
253
  </div>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: imio.smartweb.core
3
- Version: 1.1.14
3
+ Version: 1.1.19
4
4
  Summary: Core product for iMio websites
5
5
  Home-page: https://github.com/imio/imio.smartweb.core
6
6
  Author: Christophe Boulanger
@@ -10,7 +10,6 @@ Project-URL: PyPI, https://pypi.python.org/pypi/imio.smartweb.core
10
10
  Project-URL: Source, https://github.com/imio/imio.smartweb.core
11
11
  Project-URL: Tracker, https://github.com/imio/imio.smartweb.core/issues
12
12
  Keywords: Python Plone CMS
13
- Platform: UNKNOWN
14
13
  Classifier: Development Status :: 5 - Production/Stable
15
14
  Classifier: Environment :: Web Environment
16
15
  Classifier: Framework :: Plone
@@ -24,6 +23,15 @@ Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
24
23
  Requires-Python: >=3.8
25
24
  License-File: LICENSE.GPL
26
25
  License-File: LICENSE.rst
26
+ Requires-Dist: setuptools
27
+ Requires-Dist: z3c.jbot
28
+ Requires-Dist: z3c.unconfigure
29
+ Requires-Dist: plone.api (>=1.8.4)
30
+ Requires-Dist: plone.gallery
31
+ Requires-Dist: plone.restapi
32
+ Requires-Dist: plone.app.dexterity
33
+ Requires-Dist: plone.app.imagecropping
34
+ Requires-Dist: eea.facetednavigation
27
35
  Requires-Dist: collective.anysurfer
28
36
  Requires-Dist: collective.autopublishing
29
37
  Requires-Dist: collective.faceted.map
@@ -34,28 +42,19 @@ Requires-Dist: collective.sendinblue
34
42
  Requires-Dist: collective.solr
35
43
  Requires-Dist: collective.taxonomy
36
44
  Requires-Dist: collective.z3cform.datagridfield
37
- Requires-Dist: eea.facetednavigation
38
45
  Requires-Dist: embeddify
46
+ Requires-Dist: more-itertools
39
47
  Requires-Dist: imio.smartweb.common
40
48
  Requires-Dist: imio.smartweb.locales
41
- Requires-Dist: more-itertools
42
- Requires-Dist: plone.api (>=1.8.4)
43
- Requires-Dist: plone.app.dexterity
44
- Requires-Dist: plone.app.imagecropping
45
- Requires-Dist: plone.gallery
46
- Requires-Dist: plone.restapi
47
- Requires-Dist: setuptools
48
- Requires-Dist: z3c.jbot
49
- Requires-Dist: z3c.unconfigure
50
49
  Provides-Extra: test
51
- Requires-Dist: beautifulsoup4 ; extra == 'test'
52
- Requires-Dist: freezegun ; extra == 'test'
50
+ Requires-Dist: plone.app.testing ; extra == 'test'
51
+ Requires-Dist: plone.testing (>=5.0.0) ; extra == 'test'
53
52
  Requires-Dist: plone.app.contenttypes ; extra == 'test'
54
53
  Requires-Dist: plone.app.robotframework[debug] ; extra == 'test'
55
- Requires-Dist: plone.app.testing ; extra == 'test'
56
54
  Requires-Dist: plone.restapi[test] ; extra == 'test'
57
- Requires-Dist: plone.testing (>=5.0.0) ; extra == 'test'
58
55
  Requires-Dist: requests-mock ; extra == 'test'
56
+ Requires-Dist: beautifulsoup4 ; extra == 'test'
57
+ Requires-Dist: freezegun ; extra == 'test'
59
58
 
60
59
  .. This README is meant for consumption by humans and pypi. Pypi can render rst files so please do not use Sphinx features.
61
60
  If you want to learn more about writing documentation, please check out: http://docs.plone.org/about/documentation_styleguide.html
@@ -190,6 +189,97 @@ Changelog
190
189
  =========
191
190
 
192
191
 
192
+ 1.1.19 (2023-08-07)
193
+ -------------------
194
+
195
+ - WEB-3956 : Update folder modification date when its layout changed to fix cache
196
+ [boulch]
197
+
198
+ - WEB-3934 : Hide image_size field
199
+ [boulch]
200
+
201
+ - WEB-3953 : Remove cropping from background_image field
202
+ [boulch]
203
+
204
+ - WEB-3952 : Disable image cropping on section text
205
+ [laulaz, boulch]
206
+
207
+ - Make "Image cropping" link conditional
208
+ [laulaz]
209
+
210
+ - Disable image cropping on Slide content type
211
+ [laulaz]
212
+
213
+ - Fix condition for image placeholder on React vue
214
+ [thomlamb]
215
+
216
+
217
+ 1.1.18 (2023-06-19)
218
+ -------------------
219
+
220
+ - Removal of unnecessary css in sections contact and gallery
221
+ [thomlamb]
222
+
223
+ - Add new browserview for Plausible
224
+ [remdub, boulch]
225
+
226
+ - Change some icons : SectionHTML and SectionExternalContent
227
+ [boulch]
228
+
229
+ - MWEBTUBA : Add new section : imio.smartweb.SectionExternalContent (Manage embeded contents)
230
+ [boulch]
231
+
232
+
233
+ 1.1.17 (2023-05-31)
234
+ -------------------
235
+
236
+ - New React build
237
+ [thomlamb]
238
+
239
+ - Use hash in gallery images URL for directory, events and news rest views
240
+ (based on modification date) to allow strong caching.
241
+ [boulch, laulaz]
242
+
243
+
244
+ 1.1.16 (2023-05-25)
245
+ -------------------
246
+
247
+ - Fix faceted map size after page loading.
248
+ [thomlamb]
249
+
250
+ - Adapt `@search` endpoint to handle multilingual
251
+ [mpeeters]
252
+
253
+
254
+ 1.1.15 (2023-05-22)
255
+ -------------------
256
+
257
+ - Fixed console error following unnecessary loading of js for swiper
258
+ [thomlamb]
259
+
260
+ - Avoid image cropping for banner scale (will have infinite height)
261
+ [laulaz]
262
+
263
+ - Cleanup `folder_contents` properties & add warning about Sections
264
+ [laulaz]
265
+
266
+ - Store hash in an annotation to refresh "dynamic" sections
267
+ [boulch, laulaz]
268
+
269
+ - WEB-3868 : Remove useless code (included in Plone 6.0.4)
270
+ See https://github.com/plone/plone.base/pull/37
271
+ [laulaz]
272
+
273
+ - Migrate to Plone 6.0.4
274
+ [boulch]
275
+
276
+ - Update static icon for better css implements
277
+ [thomlamb]
278
+
279
+ - SUP-30074 : Fix broken RelationValue "AttributeError: 'NoneType' object has no attribute 'UID'
280
+ [boulch]
281
+
282
+
193
283
  1.1.14 (2023-04-25)
194
284
  -------------------
195
285
 
@@ -1696,5 +1786,3 @@ Changelog
1696
1786
 
1697
1787
  - Initial release.
1698
1788
  [boulch]
1699
-
1700
-