imio.smartweb.core 1.2.38__py3-none-any.whl → 1.2.40__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 (90) hide show
  1. imio/smartweb/core/contents/rest/events/content.py +13 -0
  2. imio/smartweb/core/contents/rest/events/endpoint.py +1 -0
  3. imio/smartweb/core/contents/rest/events/view.pt +3 -1
  4. imio/smartweb/core/contents/rest/events/view.py +8 -0
  5. imio/smartweb/core/contents/rest/news/content.py +6 -0
  6. imio/smartweb/core/contents/rest/news/endpoint.py +1 -0
  7. imio/smartweb/core/contents/rest/news/view.pt +2 -1
  8. imio/smartweb/core/contents/rest/news/view.py +4 -0
  9. imio/smartweb/core/contents/sections/common_templates/carousel.pt +5 -1
  10. imio/smartweb/core/contents/sections/common_templates/table.pt +6 -2
  11. imio/smartweb/core/contents/sections/events/content.py +7 -0
  12. imio/smartweb/core/contents/sections/events/view.py +7 -0
  13. imio/smartweb/core/contents/sections/external_content/view.pt +3 -3
  14. imio/smartweb/core/contents/sections/news/content.py +7 -0
  15. imio/smartweb/core/contents/sections/news/view.py +7 -0
  16. imio/smartweb/core/contents/sections/views.py +4 -0
  17. imio/smartweb/core/tests/test_rest.py +2 -0
  18. imio/smartweb/core/webcomponents/build/10512eee43c7b5ed4757.svg +1 -0
  19. imio/smartweb/core/webcomponents/build/10dd862b2cdd9c68e1a8.svg +1 -0
  20. imio/smartweb/core/webcomponents/build/1c1605a5fe9a2b10a88f.png +1 -0
  21. imio/smartweb/core/webcomponents/build/524db40e119aa11f4478.png +1 -0
  22. imio/smartweb/core/webcomponents/build/57d3b7cb1ab874660b39.svg +1 -0
  23. imio/smartweb/core/webcomponents/build/6cf03871df23ed2ee8b3.png +1 -0
  24. imio/smartweb/core/webcomponents/build/a38272f263f8328349f2.svg +1 -0
  25. imio/smartweb/core/webcomponents/build/css/373.smartweb-webcomponents-compiled.css +1 -1
  26. imio/smartweb/core/webcomponents/build/css/486.smartweb-webcomponents-compiled.css +1 -1
  27. imio/smartweb/core/webcomponents/build/css/686.smartweb-webcomponents-compiled.css +1 -1
  28. imio/smartweb/core/webcomponents/build/css/919.smartweb-webcomponents-compiled.css +1 -1
  29. imio/smartweb/core/webcomponents/build/css/smartweb-webcomponents-compiled.css +1 -1
  30. imio/smartweb/core/webcomponents/build/f79b479fdc5c0fe0d553.svg +1 -0
  31. imio/smartweb/core/webcomponents/build/js/218.smartweb-webcomponents-compiled.js +1 -1
  32. imio/smartweb/core/webcomponents/build/js/218.smartweb-webcomponents-compiled.js.LICENSE.txt +5 -8
  33. imio/smartweb/core/webcomponents/build/js/373.smartweb-webcomponents-compiled.js +1 -1
  34. imio/smartweb/core/webcomponents/build/js/486.smartweb-webcomponents-compiled.js +1 -1
  35. imio/smartweb/core/webcomponents/build/js/496.smartweb-webcomponents-compiled.js +2 -0
  36. imio/smartweb/core/webcomponents/build/js/{674.smartweb-webcomponents-compiled.js.LICENSE.txt → 496.smartweb-webcomponents-compiled.js.LICENSE.txt} +1 -8
  37. imio/smartweb/core/webcomponents/build/js/686.smartweb-webcomponents-compiled.js +1 -1
  38. imio/smartweb/core/webcomponents/build/js/736.smartweb-webcomponents-compiled.js +2 -0
  39. imio/smartweb/core/webcomponents/build/js/736.smartweb-webcomponents-compiled.js.LICENSE.txt +32 -0
  40. imio/smartweb/core/webcomponents/build/js/799.smartweb-webcomponents-compiled.js +1 -1
  41. imio/smartweb/core/webcomponents/build/js/824.smartweb-webcomponents-compiled.js +2 -0
  42. imio/smartweb/core/webcomponents/build/js/919.smartweb-webcomponents-compiled.js +1 -1
  43. imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js +1 -1
  44. imio/smartweb/core/webcomponents/build/js/smartweb-webcomponents-compiled.js.LICENSE.txt +11 -14
  45. imio/smartweb/core/webcomponents/package.json +40 -40
  46. imio/smartweb/core/webcomponents/src/components/Annuaire/Annuaire.jsx +17 -9
  47. imio/smartweb/core/webcomponents/src/components/Annuaire/Annuaire.scss +227 -141
  48. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactContent/ContactContent.jsx +7 -6
  49. imio/smartweb/core/webcomponents/src/components/Annuaire/ContactList/ContactList.jsx +2 -2
  50. imio/smartweb/core/webcomponents/src/components/Annuaire/Filters/Filter.jsx +18 -18
  51. imio/smartweb/core/webcomponents/src/components/Annuaire/index.js +1 -1
  52. imio/smartweb/core/webcomponents/src/components/Events/EventCard/EventCard.jsx +2 -2
  53. imio/smartweb/core/webcomponents/src/components/Events/EventContent/EventContent.jsx +8 -8
  54. imio/smartweb/core/webcomponents/src/components/Events/EventList/EventList.jsx +2 -2
  55. imio/smartweb/core/webcomponents/src/components/Events/Events.jsx +20 -11
  56. imio/smartweb/core/webcomponents/src/components/Events/Events.scss +244 -161
  57. imio/smartweb/core/webcomponents/src/components/Events/Filters/Filter.jsx +9 -8
  58. imio/smartweb/core/webcomponents/src/components/Filters/DateFilter.jsx +27 -27
  59. imio/smartweb/core/webcomponents/src/components/Filters/DateFilter.scss +10 -7
  60. imio/smartweb/core/webcomponents/src/components/News/Filters/Filter.jsx +11 -12
  61. imio/smartweb/core/webcomponents/src/components/News/News.jsx +53 -45
  62. imio/smartweb/core/webcomponents/src/components/News/NewsContent/NewsContent.jsx +101 -100
  63. imio/smartweb/core/webcomponents/src/components/News/NewsList/NewsList.jsx +3 -3
  64. imio/smartweb/core/webcomponents/src/components/Search/ContactResult/ContactResult.jsx +11 -11
  65. imio/smartweb/core/webcomponents/src/components/Search/EventsResult/EventsResult.jsx +11 -11
  66. imio/smartweb/core/webcomponents/src/components/Search/Filters/Filter.jsx +4 -5
  67. imio/smartweb/core/webcomponents/src/components/Search/NewsResult/NewsResult.jsx +5 -5
  68. imio/smartweb/core/webcomponents/src/components/Search/Search.jsx +5 -4
  69. imio/smartweb/core/webcomponents/src/components/Search/Search.scss +125 -105
  70. imio/smartweb/core/webcomponents/src/components/Search/WebResult/WebResult.jsx +2 -2
  71. imio/smartweb/core/webcomponents/src/components/Search/index.js +1 -1
  72. imio/smartweb/core/webcomponents/src/hooks/useAxios.js +3 -3
  73. imio/smartweb/core/webcomponents/src/hooks/useFilterQuery.js +1 -2
  74. imio/smartweb/core/webcomponents/src/index.jsx +3 -3
  75. imio/smartweb/core/webcomponents/src/index.scss +86 -22
  76. imio/smartweb/core/webcomponents/src/utils/Map.jsx +10 -10
  77. imio/smartweb/core/webcomponents/src/utils/Map.scss +2 -2
  78. imio/smartweb/core/webcomponents/src/utils/translation.js +8 -8
  79. {imio.smartweb.core-1.2.38.dist-info → imio.smartweb.core-1.2.40.dist-info}/METADATA +25 -3
  80. {imio.smartweb.core-1.2.38.dist-info → imio.smartweb.core-1.2.40.dist-info}/RECORD +87 -78
  81. {imio.smartweb.core-1.2.38.dist-info → imio.smartweb.core-1.2.40.dist-info}/WHEEL +1 -1
  82. imio/smartweb/core/webcomponents/build/js/209.smartweb-webcomponents-compiled.js +0 -2
  83. imio/smartweb/core/webcomponents/build/js/40.smartweb-webcomponents-compiled.js +0 -1
  84. imio/smartweb/core/webcomponents/build/js/674.smartweb-webcomponents-compiled.js +0 -2
  85. /imio/smartweb/core/webcomponents/build/js/{209.smartweb-webcomponents-compiled.js.LICENSE.txt → 824.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
  86. /imio.smartweb.core-1.2.38-py3.8-nspkg.pth → /imio.smartweb.core-1.2.40-py3.10-nspkg.pth +0 -0
  87. {imio.smartweb.core-1.2.38.dist-info → imio.smartweb.core-1.2.40.dist-info}/LICENSE.GPL +0 -0
  88. {imio.smartweb.core-1.2.38.dist-info → imio.smartweb.core-1.2.40.dist-info}/LICENSE.rst +0 -0
  89. {imio.smartweb.core-1.2.38.dist-info → imio.smartweb.core-1.2.40.dist-info}/namespace_packages.txt +0 -0
  90. {imio.smartweb.core-1.2.38.dist-info → imio.smartweb.core-1.2.40.dist-info}/top_level.txt +0 -0
@@ -1,11 +1,6 @@
1
- /*
2
- object-assign
3
- (c) Sindre Sorhus
4
- @license MIT
5
- */
6
-
7
- /** @license React v0.20.2
8
- * scheduler.production.min.js
1
+ /**
2
+ * @license React
3
+ * react-dom.production.min.js
9
4
  *
10
5
  * Copyright (c) Facebook, Inc. and its affiliates.
11
6
  *
@@ -13,8 +8,9 @@ object-assign
13
8
  * LICENSE file in the root directory of this source tree.
14
9
  */
15
10
 
16
- /** @license React v16.13.1
17
- * react-is.production.min.js
11
+ /**
12
+ * @license React
13
+ * react.production.min.js
18
14
  *
19
15
  * Copyright (c) Facebook, Inc. and its affiliates.
20
16
  *
@@ -22,8 +18,9 @@ object-assign
22
18
  * LICENSE file in the root directory of this source tree.
23
19
  */
24
20
 
25
- /** @license React v17.0.2
26
- * react-dom.production.min.js
21
+ /**
22
+ * @license React
23
+ * scheduler.production.min.js
27
24
  *
28
25
  * Copyright (c) Facebook, Inc. and its affiliates.
29
26
  *
@@ -31,8 +28,8 @@ object-assign
31
28
  * LICENSE file in the root directory of this source tree.
32
29
  */
33
30
 
34
- /** @license React v17.0.2
35
- * react.production.min.js
31
+ /** @license React v16.13.1
32
+ * react-is.production.min.js
36
33
  *
37
34
  * Copyright (c) Facebook, Inc. and its affiliates.
38
35
  *
@@ -19,62 +19,62 @@
19
19
  "not dead"
20
20
  ],
21
21
  "devDependencies": {
22
- "@babel/core": "^7.14.6",
22
+ "@babel/core": "^7.24.3",
23
23
  "@babel/plugin-proposal-async-generator-functions": "^7.20.7",
24
- "@babel/plugin-transform-react-jsx": "^7.14.5",
25
- "@babel/preset-env": "^7.14.7",
26
- "@fullhuman/postcss-purgecss": "^4.0.3",
24
+ "@babel/plugin-transform-react-jsx": "^7.23.4",
25
+ "@babel/preset-env": "^7.24.3",
26
+ "@fullhuman/postcss-purgecss": "^5.0.0",
27
27
  "@svgr/webpack": "^8.1.0",
28
- "autoprefixer": "^10.3.3",
29
- "babel-loader": "^8.2.2",
28
+ "autoprefixer": "^10.4.19",
29
+ "babel-loader": "^9.1.3",
30
30
  "clean-webpack-plugin": "^4.0.0",
31
- "core-js": "^3.33.0",
32
- "css-loader": "^5.2.6",
33
- "css-minimizer-webpack-plugin": "^3.0.2",
34
- "eslint": "^7.32.0",
35
- "eslint-plugin-import": "^2.23.4",
36
- "eslint-plugin-react": "^7.26.1",
31
+ "core-js": "^3.36.1",
32
+ "css-loader": "^6.10.0",
33
+ "css-minimizer-webpack-plugin": "^6.0.0",
34
+ "eslint": "^8.57.0",
35
+ "eslint-plugin-import": "^2.29.1",
36
+ "eslint-plugin-react": "^7.34.1",
37
37
  "file-loader": "^6.2.0",
38
- "json-minimizer-webpack-plugin": "^3.0.0",
39
- "mini-css-extract-plugin": "^2.1.0",
40
- "postcss": "^8.4.31",
41
- "postcss-loader": "^7.3.3",
42
- "prettier": "2.3.2",
38
+ "json-minimizer-webpack-plugin": "^5.0.0",
39
+ "mini-css-extract-plugin": "^2.8.1",
40
+ "postcss": "^8.4.38",
41
+ "postcss-loader": "^8.1.1",
42
+ "prettier": "3.2.5",
43
43
  "purgecss": "^5.0.0",
44
- "sass": "^1.69.4",
45
- "sass-loader": "^13.3.2",
46
- "style-loader": "^3.3.3",
47
- "webpack": "^5.89.0",
44
+ "sass": "^1.72.0",
45
+ "sass-loader": "^14.1.1",
46
+ "style-loader": "^3.3.4",
47
+ "webpack": "^5.91.0",
48
48
  "webpack-cli": "^5.1.4",
49
- "webpack-dev-server": "^4.15.1",
49
+ "webpack-dev-server": "^5.0.4",
50
50
  "xml2js": "^0.6.2"
51
51
  },
52
52
  "dependencies": {
53
53
  "@babel/polyfill": "^7.12.1",
54
- "@loadable/component": "^5.15.0",
55
- "axios": "^1.5.1",
54
+ "@loadable/component": "^5.16.3",
55
+ "axios": "^1.6.8",
56
56
  "babel-polyfill": "^6.26.0",
57
- "date-fns": "^3.3.1",
57
+ "date-fns": "^3.6.0",
58
58
  "flexbin": "^0.2.0",
59
- "leaflet": "^1.7.1",
59
+ "leaflet": "^1.9.4",
60
60
  "lodash": "^4.17.21",
61
- "moment": "^2.29.1",
62
- "query-string": "^7.0.1",
63
- "react": "^17.0.2",
64
- "react-bootstrap": "^2.10.0",
65
- "react-content-loader": "^6.0.3",
66
- "react-datepicker": "^4.25.0",
67
- "react-dom": "^17.0.2",
68
- "react-highlight-words": "^0.17.0",
69
- "react-leaflet": "^3.2.5",
70
- "react-markdown": "^8.0.3",
71
- "react-moment": "^1.1.1",
72
- "react-router-dom": "^5.3.0",
73
- "react-select": "^5.7.7",
61
+ "moment": "^2.30.1",
62
+ "query-string": "^9.0.0",
63
+ "react": "^18.2.0",
64
+ "react-bootstrap": "^2.10.2",
65
+ "react-content-loader": "^7.0.0",
66
+ "react-datepicker": "^6.6.0",
67
+ "react-dom": "^18.2.0",
68
+ "react-highlight-words": "^0.20.0",
69
+ "react-leaflet": "^4.2.1",
70
+ "react-markdown": "^9.0.1",
71
+ "react-moment": "^1.1.3",
72
+ "react-router-dom": "^6.22.3",
73
+ "react-select": "^5.8.0",
74
74
  "react-translated": "^2.5.0",
75
75
  "react-web-component": "^2.0.2",
76
76
  "react-web-component-style-loader": "^0.1.4-alpha",
77
- "remove-accents": "^0.4.2",
77
+ "remove-accents": "^0.5.0",
78
78
  "spotlight.js": "^0.7.8"
79
79
  }
80
80
  }
@@ -1,5 +1,9 @@
1
1
  import React, { useEffect, useState, useRef } from "react";
2
- import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
2
+ import {
3
+ BrowserRouter,
4
+ Routes,
5
+ Route,
6
+ } from "react-router-dom";
3
7
  import Filters from "./Filters/Filter";
4
8
  import ContactContent from "./ContactContent/ContactContent";
5
9
  import ContactList from "./ContactList/ContactList";
@@ -9,10 +13,11 @@ import "./Annuaire.scss";
9
13
  import useFilterQuery from "../../hooks/useFilterQuery";
10
14
  import { Provider, Translate } from "react-translated";
11
15
  import translation from '../../utils/translation';
16
+ import queryString from 'query-string';
12
17
 
13
18
  export default function Annuaire(props) {
14
19
  return (
15
- <Router basename={props.viewPath}>
20
+ <BrowserRouter basename={props.viewPath}>
16
21
  <Provider language={props.currentLanguage} translation={translation}>
17
22
  <AnnuaireView
18
23
  queryFilterUrl={props.queryFilterUrl}
@@ -22,11 +27,10 @@ export default function Annuaire(props) {
22
27
  displayMap={props.displayMap}
23
28
  />
24
29
  </Provider>
25
- </Router>
30
+ </BrowserRouter>
26
31
  );
27
32
  }
28
33
  function AnnuaireView(props) {
29
- const queryString = require("query-string");
30
34
  const { u, ...parsed } = Object.assign(
31
35
  { b_start: 0, fullobjects: 1 },
32
36
  queryString.parse(useFilterQuery().toString())
@@ -167,8 +171,8 @@ function AnnuaireView(props) {
167
171
  )}
168
172
  </div>
169
173
  </div>
170
- <Switch>
171
- <Route exact path="/">
174
+ <Routes>
175
+ <Route exact path="/" element={
172
176
  <div className="r-wrapper container r-annuaire-wrapper">
173
177
  <div className="r-result r-annuaire-result">
174
178
  <div>{listRender}</div>
@@ -200,8 +204,10 @@ function AnnuaireView(props) {
200
204
  </div>
201
205
  }
202
206
  </div>
207
+ }>
208
+
203
209
  </Route>
204
- <Route path={"/:name"}>
210
+ <Route path={"/:name"} element={
205
211
  <div className="r-wrapper container r-annuaire-wrapper">
206
212
  <div className="r-result r-annuaire-result">
207
213
  <ContactContent queryUrl={props.queryUrl} onChange={clickID} />
@@ -217,8 +223,10 @@ function AnnuaireView(props) {
217
223
  </div>
218
224
  }
219
225
  </div>
226
+ }>
227
+
220
228
  </Route>
221
- </Switch>
229
+ </Routes>
222
230
  </div>
223
231
  );
224
- }
232
+ }