imio.smartweb.core 1.2.37__py3-none-any.whl → 1.2.39__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 (83) hide show
  1. imio/smartweb/core/contents/rest/events/content.py +7 -0
  2. imio/smartweb/core/contents/rest/events/view.pt +1 -0
  3. imio/smartweb/core/contents/rest/events/view.py +4 -0
  4. imio/smartweb/core/contents/sections/common_templates/carousel.pt +5 -1
  5. imio/smartweb/core/contents/sections/events/content.py +7 -0
  6. imio/smartweb/core/contents/sections/events/view.py +7 -0
  7. imio/smartweb/core/contents/sections/external_content/view.pt +3 -3
  8. imio/smartweb/core/contents/sections/news/content.py +7 -0
  9. imio/smartweb/core/contents/sections/news/view.py +7 -0
  10. imio/smartweb/core/contents/sections/views.py +4 -0
  11. imio/smartweb/core/webcomponents/build/10512eee43c7b5ed4757.svg +1 -0
  12. imio/smartweb/core/webcomponents/build/10dd862b2cdd9c68e1a8.svg +1 -0
  13. imio/smartweb/core/webcomponents/build/1c1605a5fe9a2b10a88f.png +1 -0
  14. imio/smartweb/core/webcomponents/build/524db40e119aa11f4478.png +1 -0
  15. imio/smartweb/core/webcomponents/build/57d3b7cb1ab874660b39.svg +1 -0
  16. imio/smartweb/core/webcomponents/build/6cf03871df23ed2ee8b3.png +1 -0
  17. imio/smartweb/core/webcomponents/build/a38272f263f8328349f2.svg +1 -0
  18. imio/smartweb/core/webcomponents/build/css/373.smartweb-webcomponents-compiled.css +1 -1
  19. imio/smartweb/core/webcomponents/build/css/486.smartweb-webcomponents-compiled.css +1 -1
  20. imio/smartweb/core/webcomponents/build/css/686.smartweb-webcomponents-compiled.css +1 -1
  21. imio/smartweb/core/webcomponents/build/css/919.smartweb-webcomponents-compiled.css +1 -1
  22. imio/smartweb/core/webcomponents/build/css/smartweb-webcomponents-compiled.css +1 -1
  23. imio/smartweb/core/webcomponents/build/f79b479fdc5c0fe0d553.svg +1 -0
  24. imio/smartweb/core/webcomponents/build/js/218.smartweb-webcomponents-compiled.js +1 -1
  25. imio/smartweb/core/webcomponents/build/js/218.smartweb-webcomponents-compiled.js.LICENSE.txt +5 -8
  26. imio/smartweb/core/webcomponents/build/js/373.smartweb-webcomponents-compiled.js +1 -1
  27. imio/smartweb/core/webcomponents/build/js/486.smartweb-webcomponents-compiled.js +1 -1
  28. imio/smartweb/core/webcomponents/build/js/496.smartweb-webcomponents-compiled.js +2 -0
  29. imio/smartweb/core/webcomponents/build/js/{674.smartweb-webcomponents-compiled.js.LICENSE.txt → 496.smartweb-webcomponents-compiled.js.LICENSE.txt} +1 -8
  30. imio/smartweb/core/webcomponents/build/js/686.smartweb-webcomponents-compiled.js +1 -1
  31. imio/smartweb/core/webcomponents/build/js/736.smartweb-webcomponents-compiled.js +2 -0
  32. imio/smartweb/core/webcomponents/build/js/736.smartweb-webcomponents-compiled.js.LICENSE.txt +32 -0
  33. imio/smartweb/core/webcomponents/build/js/799.smartweb-webcomponents-compiled.js +1 -1
  34. imio/smartweb/core/webcomponents/build/js/824.smartweb-webcomponents-compiled.js +2 -0
  35. imio/smartweb/core/webcomponents/build/js/919.smartweb-webcomponents-compiled.js +1 -1
  36. imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js +1 -1
  37. imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js.LICENSE.txt +11 -14
  38. imio/smartweb/core/webcomponents/package.json +40 -40
  39. imio/smartweb/core/webcomponents/src/components/Annuaire/Annuaire.jsx +17 -9
  40. imio/smartweb/core/webcomponents/src/components/Annuaire/Annuaire.scss +227 -141
  41. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactContent/ContactContent.jsx +7 -6
  42. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactList/ContactList.jsx +2 -2
  43. imio/smartweb/core/webcomponents/src/components/Annuaire/Filters/Filter.jsx +18 -18
  44. imio/smartweb/core/webcomponents/src/components/Annuaire/index.js +1 -1
  45. imio/smartweb/core/webcomponents/src/components/Events/EventCard/EventCard.jsx +2 -2
  46. imio/smartweb/core/webcomponents/src/components/Events/EventContent/EventContent.jsx +8 -8
  47. imio/smartweb/core/webcomponents/src/components/Events/EventList/EventList.jsx +2 -2
  48. imio/smartweb/core/webcomponents/src/components/Events/Events.jsx +20 -11
  49. imio/smartweb/core/webcomponents/src/components/Events/Events.scss +244 -161
  50. imio/smartweb/core/webcomponents/src/components/Events/Filters/Filter.jsx +9 -8
  51. imio/smartweb/core/webcomponents/src/components/Filters/DateFilter.jsx +27 -27
  52. imio/smartweb/core/webcomponents/src/components/Filters/DateFilter.scss +10 -7
  53. imio/smartweb/core/webcomponents/src/components/News/Filters/Filter.jsx +11 -12
  54. imio/smartweb/core/webcomponents/src/components/News/News.jsx +53 -45
  55. imio/smartweb/core/webcomponents/src/components/News/NewsContent/NewsContent.jsx +101 -100
  56. imio/smartweb/core/webcomponents/src/components/News/NewsList/NewsList.jsx +3 -3
  57. imio/smartweb/core/webcomponents/src/components/Search/ContactResult/ContactResult.jsx +11 -11
  58. imio/smartweb/core/webcomponents/src/components/Search/EventsResult/EventsResult.jsx +11 -11
  59. imio/smartweb/core/webcomponents/src/components/Search/Filters/Filter.jsx +4 -5
  60. imio/smartweb/core/webcomponents/src/components/Search/NewsResult/NewsResult.jsx +5 -5
  61. imio/smartweb/core/webcomponents/src/components/Search/Search.jsx +5 -4
  62. imio/smartweb/core/webcomponents/src/components/Search/Search.scss +125 -105
  63. imio/smartweb/core/webcomponents/src/components/Search/WebResult/WebResult.jsx +2 -2
  64. imio/smartweb/core/webcomponents/src/components/Search/index.js +1 -1
  65. imio/smartweb/core/webcomponents/src/hooks/useAxios.js +3 -3
  66. imio/smartweb/core/webcomponents/src/hooks/useFilterQuery.js +1 -2
  67. imio/smartweb/core/webcomponents/src/index.jsx +3 -3
  68. imio/smartweb/core/webcomponents/src/index.scss +86 -22
  69. imio/smartweb/core/webcomponents/src/utils/Map.jsx +10 -10
  70. imio/smartweb/core/webcomponents/src/utils/Map.scss +2 -2
  71. imio/smartweb/core/webcomponents/src/utils/translation.js +8 -8
  72. {imio.smartweb.core-1.2.37.dist-info → imio.smartweb.core-1.2.39.dist-info}/METADATA +23 -1
  73. {imio.smartweb.core-1.2.37.dist-info → imio.smartweb.core-1.2.39.dist-info}/RECORD +80 -71
  74. imio/smartweb/core/webcomponents/build/js/209.smartweb-webcomponents-compiled.js +0 -2
  75. imio/smartweb/core/webcomponents/build/js/674.smartweb-webcomponents-compiled.js +0 -2
  76. imio/smartweb/core/webcomponents/build/js/804.smartweb-webcomponents-compiled.js +0 -1
  77. /imio/smartweb/core/webcomponents/build/js/{209.smartweb-webcomponents-compiled.js.LICENSE.txt → 824.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
  78. /imio.smartweb.core-1.2.37-py3.10-nspkg.pth → /imio.smartweb.core-1.2.39-py3.10-nspkg.pth +0 -0
  79. {imio.smartweb.core-1.2.37.dist-info → imio.smartweb.core-1.2.39.dist-info}/LICENSE.GPL +0 -0
  80. {imio.smartweb.core-1.2.37.dist-info → imio.smartweb.core-1.2.39.dist-info}/LICENSE.rst +0 -0
  81. {imio.smartweb.core-1.2.37.dist-info → imio.smartweb.core-1.2.39.dist-info}/WHEEL +0 -0
  82. {imio.smartweb.core-1.2.37.dist-info → imio.smartweb.core-1.2.39.dist-info}/namespace_packages.txt +0 -0
  83. {imio.smartweb.core-1.2.37.dist-info → imio.smartweb.core-1.2.39.dist-info}/top_level.txt +0 -0
@@ -1,28 +1,34 @@
1
- .portaltype-imio-smartweb-directoryview{
2
- #portal-header{
3
- margin-bottom: 0!important;
1
+ .portaltype-imio-smartweb-directoryview {
2
+ #portal-header {
3
+ margin-bottom: 0 !important;
4
4
  }
5
- #portal-breadcrumbs{
6
- margin-bottom: 0!important;
7
- .breadcrumb{
8
- margin-bottom: 0!important;
5
+
6
+ #portal-breadcrumbs {
7
+ margin-bottom: 0 !important;
8
+
9
+ .breadcrumb {
10
+ margin-bottom: 0 !important;
9
11
  }
10
12
  }
11
13
  }
12
14
 
13
15
  /* Filters */
14
- .r-wrapper{
16
+ .r-wrapper {
15
17
  position: relative;
16
- figure{
18
+
19
+ figure {
17
20
  display: block;
18
21
  }
19
22
  }
23
+
20
24
  .r-result-filter-container,
21
25
  .r-actu-wrapper {
22
26
  padding-top: 1rem;
23
27
  }
28
+
24
29
  .r-result {
25
30
  position: relative;
31
+
26
32
  &-filter {
27
33
  display: flex;
28
34
  flex-wrap: wrap;
@@ -30,14 +36,18 @@
30
36
  padding-bottom: 20px;
31
37
  border-bottom: solid 1px #cccc;
32
38
  align-items: center;
39
+
33
40
  .r-filter {
34
41
  width: 100%;
35
42
  max-width: 200px;
43
+
36
44
  label {
37
45
  display: block;
38
46
  }
47
+
39
48
  .r-filter-search {
40
49
  position: relative;
50
+
41
51
  .input-custom-class {
42
52
  line-height: 50px;
43
53
  border: 1px solid #CCCCCC;
@@ -47,6 +57,7 @@
47
57
  color: #000;
48
58
  width: 100%;
49
59
  letter-spacing: 1.2px;
60
+
50
61
  &::placeholder {
51
62
  color: #000;
52
63
  font-size: 12px;
@@ -55,6 +66,7 @@
55
66
  letter-spacing: '1.2px';
56
67
  }
57
68
  }
69
+
58
70
  button {
59
71
  background: url(./assets/search.svg) no-repeat;
60
72
  background-position: center;
@@ -71,28 +83,35 @@
71
83
  }
72
84
  }
73
85
  }
74
- .r-add-event,.r-add-news,.r-add-contact{
75
- a{
86
+
87
+ .r-add-event,
88
+ .r-add-news,
89
+ .r-add-contact {
90
+ a {
76
91
  background: #000;
77
92
  color: #fff;
78
93
  text-decoration: none;
79
94
  padding: 1rem;
80
95
  }
81
96
  }
97
+
82
98
  /* list item */
83
99
  .r-list-item-link {
84
100
  inset: 0px !important;
85
101
  position: absolute !important;
86
102
  }
103
+
87
104
  .r-list-item-group {
88
105
  margin: 15px 0;
89
106
  position: relative;
90
107
  }
108
+
91
109
  .r-list-item {
92
110
  display: flex;
93
111
  height: 100%;
94
112
  align-items: stretch;
95
113
  }
114
+
96
115
  /* load-more-link */
97
116
  .load-more-link {
98
117
  background: transparent;
@@ -111,10 +130,12 @@
111
130
  margin-bottom: 10px;
112
131
  }
113
132
  }
133
+
114
134
  // content
115
135
  .r-content-description {
116
136
  font-weight: 500;
117
137
  }
138
+
118
139
  .r-wrapper .r-result-list .r-list-item-group .r-list-item .r-item-text {
119
140
  flex: min-content;
120
141
  }
@@ -124,6 +145,7 @@
124
145
  .leaflet-popup {
125
146
  padding: 0 !important;
126
147
  }
148
+
127
149
  .leaflet-container {
128
150
  opacity: 1 !important;
129
151
  }
@@ -132,42 +154,49 @@
132
154
  // Flies and gallery
133
155
 
134
156
 
135
- .r-content-files{
157
+ .r-content-files {
136
158
  margin: 2rem 0;
137
- &-title{
159
+
160
+ &-title {
138
161
  margin-bottom: 1rem;
139
162
  }
140
- .r-content-file{
163
+
164
+ .r-content-file {
141
165
  margin: 1rem 0;
142
- &-link{
166
+
167
+ &-link {
143
168
  text-decoration: none;
144
169
  display: flex;
145
170
  gap: 20px;
146
171
  padding: 1rem;
147
172
  border: solid 1px #e6e6e6;
148
173
  justify-content: space-between;
149
- &:hover{
174
+
175
+ &:hover {
150
176
  border: solid 1px #868686;
151
177
  }
152
178
  }
153
179
  }
154
- span{
180
+
181
+ span {
155
182
  display: block;
156
183
  }
157
184
  }
158
185
 
159
- .r-content-gallery{
186
+ .r-content-gallery {
160
187
  margin: 2rem 0;
161
- &.flexbin > * > img {
188
+
189
+ &.flexbin>*>img {
162
190
  height: 226px;
163
191
  }
164
- &.flexbin > * {
192
+
193
+ &.flexbin>* {
165
194
  height: 226px;
166
195
  }
167
196
  }
168
197
 
169
198
  // loaer
170
- .lds-roller-container{
199
+ .lds-roller-container {
171
200
  position: absolute;
172
201
  bottom: 0;
173
202
  top: 0;
@@ -175,6 +204,7 @@
175
204
  right: 0;
176
205
  background: hsla(0, 0%, 100%, 0.82);
177
206
  }
207
+
178
208
  .lds-roller {
179
209
  display: inline-block;
180
210
  position: absolute;
@@ -185,10 +215,12 @@
185
215
  transform: translate(-50%, -50%);
186
216
  z-index: 0;
187
217
  }
218
+
188
219
  .lds-roller div {
189
220
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
190
221
  transform-origin: 40px 40px;
191
222
  }
223
+
192
224
  .lds-roller div:after {
193
225
  content: " ";
194
226
  display: block;
@@ -199,66 +231,84 @@
199
231
  background: rgb(51, 51, 51);
200
232
  margin: -4px 0 0 -4px;
201
233
  }
234
+
202
235
  .lds-roller div:nth-child(1) {
203
236
  animation-delay: -0.036s;
204
237
  }
238
+
205
239
  .lds-roller div:nth-child(1):after {
206
240
  top: 63px;
207
241
  left: 63px;
208
242
  }
243
+
209
244
  .lds-roller div:nth-child(2) {
210
245
  animation-delay: -0.072s;
211
246
  }
247
+
212
248
  .lds-roller div:nth-child(2):after {
213
249
  top: 68px;
214
250
  left: 56px;
215
251
  }
252
+
216
253
  .lds-roller div:nth-child(3) {
217
254
  animation-delay: -0.108s;
218
255
  }
256
+
219
257
  .lds-roller div:nth-child(3):after {
220
258
  top: 71px;
221
259
  left: 48px;
222
260
  }
261
+
223
262
  .lds-roller div:nth-child(4) {
224
263
  animation-delay: -0.144s;
225
264
  }
265
+
226
266
  .lds-roller div:nth-child(4):after {
227
267
  top: 72px;
228
268
  left: 40px;
229
269
  }
270
+
230
271
  .lds-roller div:nth-child(5) {
231
272
  animation-delay: -0.18s;
232
273
  }
274
+
233
275
  .lds-roller div:nth-child(5):after {
234
276
  top: 71px;
235
277
  left: 32px;
236
278
  }
279
+
237
280
  .lds-roller div:nth-child(6) {
238
281
  animation-delay: -0.216s;
239
282
  }
283
+
240
284
  .lds-roller div:nth-child(6):after {
241
285
  top: 68px;
242
286
  left: 24px;
243
287
  }
288
+
244
289
  .lds-roller div:nth-child(7) {
245
290
  animation-delay: -0.252s;
246
291
  }
292
+
247
293
  .lds-roller div:nth-child(7):after {
248
294
  top: 63px;
249
295
  left: 17px;
250
296
  }
297
+
251
298
  .lds-roller div:nth-child(8) {
252
299
  animation-delay: -0.288s;
253
300
  }
301
+
254
302
  .lds-roller div:nth-child(8):after {
255
303
  top: 56px;
256
304
  left: 12px;
257
305
  }
306
+
258
307
  @keyframes lds-roller {
259
308
  0% {
260
309
  transform: rotate(0deg);
261
310
  }
311
+
262
312
  100% {
263
313
  transform: rotate(360deg);
264
314
  }
@@ -269,6 +319,7 @@
269
319
  position: relative;
270
320
  aspect-ratio: 16/9;
271
321
  background-color: #000;
322
+
272
323
  &-blur {
273
324
  position: absolute;
274
325
  width: 100%;
@@ -279,7 +330,8 @@
279
330
  background-position: center;
280
331
  opacity: 0.8;
281
332
  }
282
- &-img{
333
+
334
+ &-img {
283
335
  position: absolute;
284
336
  width: 100%;
285
337
  height: 100%;
@@ -288,6 +340,7 @@
288
340
  backdrop-filter: blur(10px);
289
341
  }
290
342
  }
343
+
291
344
  .r-content-img-blur {
292
345
  position: absolute;
293
346
  width: 100%;
@@ -302,10 +355,21 @@
302
355
  background-size: cover;
303
356
  background-position: center;
304
357
  }
358
+
305
359
  .img-contain {
306
360
  object-fit: contain;
307
361
  object-position: center;
308
362
  background-size: contain;
309
363
  background-repeat: no-repeat;
310
364
  background-position: center;
365
+ }
366
+
367
+ .no-search-item-img {
368
+ background: black;
369
+ background-color: #c9c9c9 !important;
370
+ background-position: center !important;
371
+ }
372
+
373
+ .r-search-img {
374
+ background-color: #c9c9c9 !important;
311
375
  }
@@ -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,9 +28,8 @@ 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
31
  const { u, ...parsed } = Object.assign(
32
- { UID: queryString.parse(useFilterQuery().toString())['u']},
32
+ { UID: queryString.parse(useFilterQuery().toString())['u'] },
33
33
  );
34
34
  // Delete Imio positions
35
35
  useEffect(() => {
@@ -66,12 +66,12 @@ function Map(props) {
66
66
 
67
67
  useEffect(() => {
68
68
  var result =
69
- filterGeoArray &&
70
- filterGeoArray.filter((obj) => {
71
- return obj.UID === parsed.UID;
72
- });
73
- setActiveItem(result[0]);
74
- }, [filterGeoArray]);
69
+ filterGeoArray &&
70
+ filterGeoArray.filter((obj) => {
71
+ return obj.UID === parsed.UID;
72
+ });
73
+ setActiveItem(result[0]);
74
+ }, [filterGeoArray]);
75
75
 
76
76
 
77
77
  useEffect(() => {
@@ -143,10 +143,10 @@ function Map(props) {
143
143
  ) : (
144
144
  ""
145
145
  )}
146
- {filterGeoArray && markers }
146
+ {filterGeoArray && markers}
147
147
  </MapContainer>
148
148
  </div>
149
149
  );
150
150
  }
151
151
 
152
- export default Map;
152
+ export default Map;
@@ -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
  }
@@ -1,24 +1,24 @@
1
1
  export default {
2
2
  // common
3
- 'Publié' : {
3
+ 'Publié': {
4
4
  en: 'Published',
5
5
  fr: 'Publié',
6
6
  de: 'Veröffentlicht',
7
7
  nl: 'Gepubliceerd',
8
8
  },
9
- 'Actualisé' : {
9
+ 'Actualisé': {
10
10
  en: 'Updated',
11
11
  fr: 'Actualisé',
12
12
  de: 'Aktualisiert',
13
13
  nl: 'Bijgewerkt',
14
14
  },
15
- 'Événements' : {
15
+ 'Événements': {
16
16
  en: 'Events',
17
17
  fr: 'Événements',
18
18
  de: 'Veranstaltungen',
19
19
  nl: 'Evenementen',
20
20
  },
21
- 'Actualités' : {
21
+ 'Actualités': {
22
22
  en: 'News',
23
23
  fr: 'Actualités',
24
24
  de: 'Nachrichten',
@@ -227,13 +227,13 @@ export default {
227
227
  fr: "Demain",
228
228
  de: "Morgen",
229
229
  nl: "Morgen",
230
- },
230
+ },
231
231
  "Ce week-end": {
232
232
  en: "This weekend",
233
233
  fr: "Ce week-end",
234
234
  de: "Dieses Wochenende",
235
235
  nl: "Dit weekend",
236
- },
236
+ },
237
237
  "Cette semaine": {
238
238
  en: "This week",
239
239
  fr: "Cette semaine",
@@ -245,7 +245,7 @@ export default {
245
245
  fr: "Ce mois-ci",
246
246
  de: "Diesen Monat",
247
247
  nl: "Deze maand",
248
- },
248
+ },
249
249
  "Personnalisé (Du ... au ...)": {
250
250
  en: "Custom (From ... to ...)",
251
251
  fr: "Personnalisé (Du ... au ...)",
@@ -258,4 +258,4 @@ export default {
258
258
  de: "Benutzerdefiniert",
259
259
  nl: "Aangepast",
260
260
  }
261
- }
261
+ }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: imio.smartweb.core
3
- Version: 1.2.37
3
+ Version: 1.2.39
4
4
  Summary: Core product for iMio websites
5
5
  Home-page: https://github.com/imio/imio.smartweb.core
6
6
  Author: Christophe Boulanger
@@ -189,6 +189,28 @@ Changelog
189
189
  =========
190
190
 
191
191
 
192
+ 1.2.39 (2024-03-28)
193
+ -------------------
194
+
195
+ - MWEBPM-9 : Retrieve agenda id/title or news folder id/title and display it in "common templates" carousel
196
+ [boulch]
197
+
198
+ - MWEBPM-8 : Add "min" or "max" to queries depending to "only past events"
199
+ [thomlamb]
200
+
201
+ - MWEBPM-8 : Add field to manage "only past events" rest view
202
+ [boulch]
203
+
204
+ 1.2.38 (2024-03-18)
205
+ -------------------
206
+
207
+ - Fix React build
208
+ [thomlamb]
209
+
210
+ - Fix spelling mistake and react compilation
211
+ [boulch]
212
+
213
+
192
214
  1.2.37 (2024-03-18)
193
215
  -------------------
194
216