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.
- imio/smartweb/core/contents/rest/events/content.py +7 -0
- imio/smartweb/core/contents/rest/events/view.pt +1 -0
- imio/smartweb/core/contents/rest/events/view.py +4 -0
- imio/smartweb/core/contents/sections/common_templates/carousel.pt +5 -1
- imio/smartweb/core/contents/sections/events/content.py +7 -0
- imio/smartweb/core/contents/sections/events/view.py +7 -0
- imio/smartweb/core/contents/sections/external_content/view.pt +3 -3
- imio/smartweb/core/contents/sections/news/content.py +7 -0
- imio/smartweb/core/contents/sections/news/view.py +7 -0
- imio/smartweb/core/contents/sections/views.py +4 -0
- imio/smartweb/core/webcomponents/build/10512eee43c7b5ed4757.svg +1 -0
- imio/smartweb/core/webcomponents/build/10dd862b2cdd9c68e1a8.svg +1 -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/a38272f263f8328349f2.svg +1 -0
- imio/smartweb/core/webcomponents/build/css/373.smartweb-webcomponents-compiled.css +1 -1
- imio/smartweb/core/webcomponents/build/css/486.smartweb-webcomponents-compiled.css +1 -1
- imio/smartweb/core/webcomponents/build/css/686.smartweb-webcomponents-compiled.css +1 -1
- imio/smartweb/core/webcomponents/build/css/919.smartweb-webcomponents-compiled.css +1 -1
- imio/smartweb/core/webcomponents/build/css/smartweb-webcomponents-compiled.css +1 -1
- imio/smartweb/core/webcomponents/build/f79b479fdc5c0fe0d553.svg +1 -0
- imio/smartweb/core/webcomponents/build/js/218.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/218.smartweb-webcomponents-compiled.js.LICENSE.txt +5 -8
- imio/smartweb/core/webcomponents/build/js/373.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/486.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/496.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/{674.smartweb-webcomponents-compiled.js.LICENSE.txt → 496.smartweb-webcomponents-compiled.js.LICENSE.txt} +1 -8
- imio/smartweb/core/webcomponents/build/js/686.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/736.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/736.smartweb-webcomponents-compiled.js.LICENSE.txt +32 -0
- imio/smartweb/core/webcomponents/build/js/799.smartweb-webcomponents-compiled.js +1 -1
- imio/smartweb/core/webcomponents/build/js/824.smartweb-webcomponents-compiled.js +2 -0
- imio/smartweb/core/webcomponents/build/js/919.smartweb-webcomponents-compiled.js +1 -1
- 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 +40 -40
- imio/smartweb/core/webcomponents/src/components/Annuaire/Annuaire.jsx +17 -9
- imio/smartweb/core/webcomponents/src/components/Annuaire/Annuaire.scss +227 -141
- imio/smartweb/core/webcomponents/src/components/Annuaire/ContactContent/ContactContent.jsx +7 -6
- imio/smartweb/core/webcomponents/src/components/Annuaire/ContactList/ContactList.jsx +2 -2
- imio/smartweb/core/webcomponents/src/components/Annuaire/Filters/Filter.jsx +18 -18
- imio/smartweb/core/webcomponents/src/components/Annuaire/index.js +1 -1
- imio/smartweb/core/webcomponents/src/components/Events/EventCard/EventCard.jsx +2 -2
- imio/smartweb/core/webcomponents/src/components/Events/EventContent/EventContent.jsx +8 -8
- imio/smartweb/core/webcomponents/src/components/Events/EventList/EventList.jsx +2 -2
- imio/smartweb/core/webcomponents/src/components/Events/Events.jsx +20 -11
- imio/smartweb/core/webcomponents/src/components/Events/Events.scss +244 -161
- imio/smartweb/core/webcomponents/src/components/Events/Filters/Filter.jsx +9 -8
- imio/smartweb/core/webcomponents/src/components/Filters/DateFilter.jsx +27 -27
- imio/smartweb/core/webcomponents/src/components/Filters/DateFilter.scss +10 -7
- imio/smartweb/core/webcomponents/src/components/News/Filters/Filter.jsx +11 -12
- imio/smartweb/core/webcomponents/src/components/News/News.jsx +53 -45
- imio/smartweb/core/webcomponents/src/components/News/NewsContent/NewsContent.jsx +101 -100
- imio/smartweb/core/webcomponents/src/components/News/NewsList/NewsList.jsx +3 -3
- imio/smartweb/core/webcomponents/src/components/Search/ContactResult/ContactResult.jsx +11 -11
- imio/smartweb/core/webcomponents/src/components/Search/EventsResult/EventsResult.jsx +11 -11
- imio/smartweb/core/webcomponents/src/components/Search/Filters/Filter.jsx +4 -5
- imio/smartweb/core/webcomponents/src/components/Search/NewsResult/NewsResult.jsx +5 -5
- imio/smartweb/core/webcomponents/src/components/Search/Search.jsx +5 -4
- imio/smartweb/core/webcomponents/src/components/Search/Search.scss +125 -105
- imio/smartweb/core/webcomponents/src/components/Search/WebResult/WebResult.jsx +2 -2
- imio/smartweb/core/webcomponents/src/components/Search/index.js +1 -1
- imio/smartweb/core/webcomponents/src/hooks/useAxios.js +3 -3
- imio/smartweb/core/webcomponents/src/hooks/useFilterQuery.js +1 -2
- imio/smartweb/core/webcomponents/src/index.jsx +3 -3
- imio/smartweb/core/webcomponents/src/index.scss +86 -22
- imio/smartweb/core/webcomponents/src/utils/Map.jsx +10 -10
- imio/smartweb/core/webcomponents/src/utils/Map.scss +2 -2
- imio/smartweb/core/webcomponents/src/utils/translation.js +8 -8
- {imio.smartweb.core-1.2.37.dist-info → imio.smartweb.core-1.2.39.dist-info}/METADATA +23 -1
- {imio.smartweb.core-1.2.37.dist-info → imio.smartweb.core-1.2.39.dist-info}/RECORD +80 -71
- imio/smartweb/core/webcomponents/build/js/209.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/674.smartweb-webcomponents-compiled.js +0 -2
- imio/smartweb/core/webcomponents/build/js/804.smartweb-webcomponents-compiled.js +0 -1
- /imio/smartweb/core/webcomponents/build/js/{209.smartweb-webcomponents-compiled.js.LICENSE.txt → 824.smartweb-webcomponents-compiled.js.LICENSE.txt} +0 -0
- /imio.smartweb.core-1.2.37-py3.10-nspkg.pth → /imio.smartweb.core-1.2.39-py3.10-nspkg.pth +0 -0
- {imio.smartweb.core-1.2.37.dist-info → imio.smartweb.core-1.2.39.dist-info}/LICENSE.GPL +0 -0
- {imio.smartweb.core-1.2.37.dist-info → imio.smartweb.core-1.2.39.dist-info}/LICENSE.rst +0 -0
- {imio.smartweb.core-1.2.37.dist-info → imio.smartweb.core-1.2.39.dist-info}/WHEEL +0 -0
- {imio.smartweb.core-1.2.37.dist-info → imio.smartweb.core-1.2.39.dist-info}/namespace_packages.txt +0 -0
- {imio.smartweb.core-1.2.37.dist-info → imio.smartweb.core-1.2.39.dist-info}/top_level.txt +0 -0
@@ -1,12 +1,12 @@
|
|
1
1
|
import React, { useEffect, useRef, useCallback, useState } from "react";
|
2
2
|
import Select from "react-select";
|
3
|
-
import {
|
3
|
+
import { useNavigate } from "react-router-dom";
|
4
4
|
import useAxios from "../../../hooks/useAxios";
|
5
5
|
import { Translator } from "react-translated";
|
6
|
+
import queryString from 'query-string';
|
6
7
|
|
7
8
|
function Filters(props) {
|
8
|
-
let
|
9
|
-
const queryString = require("query-string");
|
9
|
+
let navigate = useNavigate();
|
10
10
|
const [inputValues, setInputValues] = useState(props.activeFilter);
|
11
11
|
const [topicsFilter, setTopicsFilter] = useState(null);
|
12
12
|
const [taxonomyFilter, setTaxonomyFilter] = useState(null);
|
@@ -78,7 +78,7 @@ function Filters(props) {
|
|
78
78
|
firstUpdate.current = false;
|
79
79
|
return;
|
80
80
|
}
|
81
|
-
|
81
|
+
navigate({
|
82
82
|
pathname: "./",
|
83
83
|
search: queryString.stringify(inputValues),
|
84
84
|
});
|
@@ -188,23 +188,23 @@ function Filters(props) {
|
|
188
188
|
{/* <label>Facilité</label> */}
|
189
189
|
<Translator>
|
190
190
|
{({ translate }) => (
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
191
|
+
<Select
|
192
|
+
styles={customStyles}
|
193
|
+
name={"facilities"}
|
194
|
+
className="select-custom-class library-facilities"
|
195
|
+
isClearable
|
196
|
+
onChange={onChangeHandlerSelect}
|
197
|
+
options={facilitiesFilter && facilitiesFilter}
|
198
|
+
placeholder={translate({
|
199
|
+
text: 'Facilités'
|
200
|
+
})}
|
201
|
+
value={actFaci && actFaci[0]}
|
202
|
+
/>
|
203
|
+
)}
|
204
204
|
</Translator>
|
205
205
|
</div>
|
206
206
|
</React.Fragment>
|
207
207
|
);
|
208
208
|
}
|
209
209
|
|
210
|
-
export default Filters;
|
210
|
+
export default Filters;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import loadable from "@loadable/component";
|
2
|
-
export default loadable(() => import("./Annuaire"));
|
2
|
+
export default loadable(() => import("./Annuaire"));
|
@@ -19,7 +19,7 @@ const ContactCard = ({ item }) => {
|
|
19
19
|
return (
|
20
20
|
<div className="r-list-item">
|
21
21
|
<div
|
22
|
-
className={item.image_vignette_scale?"r-item-img":"r-item-img r-item-img-placeholder"}
|
22
|
+
className={item.image_vignette_scale ? "r-item-img" : "r-item-img r-item-img-placeholder"}
|
23
23
|
style={{
|
24
24
|
backgroundImage: item.image_vignette_scale
|
25
25
|
? "url(" + item.image_vignette_scale + ")"
|
@@ -40,4 +40,4 @@ const ContactCard = ({ item }) => {
|
|
40
40
|
);
|
41
41
|
};
|
42
42
|
|
43
|
-
export default ContactCard;
|
43
|
+
export default ContactCard;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { useNavigate } from "react-router-dom";
|
2
2
|
import React, { useEffect, useState } from "react";
|
3
3
|
import useAxios from "../../../hooks/useAxios";
|
4
4
|
import useFilterQuery from "../../../hooks/useFilterQuery";
|
@@ -7,10 +7,10 @@ import ReactMarkdown from 'react-markdown'
|
|
7
7
|
import Spotlight from "spotlight.js";
|
8
8
|
import "../../../../node_modules/flexbin/flexbin.css"
|
9
9
|
import { Translate } from "react-translated";
|
10
|
+
import queryString from 'query-string';
|
10
11
|
|
11
12
|
const ContactContent = ({ queryUrl, onChange }) => {
|
12
|
-
let
|
13
|
-
const queryString = require("query-string");
|
13
|
+
let navigate = useNavigate();
|
14
14
|
const { u, ...parsed } = Object.assign(
|
15
15
|
{ UID: queryString.parse(useFilterQuery().toString())['u'], fullobjects: 1 },
|
16
16
|
);
|
@@ -49,10 +49,10 @@ const ContactContent = ({ queryUrl, onChange }) => {
|
|
49
49
|
}
|
50
50
|
}, [item]);
|
51
51
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
52
|
+
function handleClick() {
|
53
|
+
navigate("..");
|
54
|
+
onChange(null);
|
55
|
+
}
|
56
56
|
moment.locale('be');
|
57
57
|
const start = moment.utc(item.start).format('DD-MM-YYYY');
|
58
58
|
const end = moment.utc(item.end).format('DD-MM-YYYY');
|
@@ -390,4 +390,4 @@ const ContactContent = ({ queryUrl, onChange }) => {
|
|
390
390
|
</div>
|
391
391
|
);
|
392
392
|
};
|
393
|
-
export default ContactContent;
|
393
|
+
export default ContactContent;
|
@@ -25,7 +25,7 @@ const ContactList = ({ itemsArray, onChange, onHover, parentCallback }) => {
|
|
25
25
|
className="r-list-item-link"
|
26
26
|
style={{ textDecoration: "none" }}
|
27
27
|
to={{
|
28
|
-
pathname: "/"+removeAccents(item.title).replace(/[^a-zA-Z ]/g, "").replace(/\s/g, "-").toLowerCase(),
|
28
|
+
pathname: "/" + removeAccents(item.title).replace(/[^a-zA-Z ]/g, "").replace(/\s/g, "-").toLowerCase(),
|
29
29
|
search: `?u=${item.UID}`,
|
30
30
|
state: {
|
31
31
|
idItem: item.UID,
|
@@ -39,4 +39,4 @@ const ContactList = ({ itemsArray, onChange, onHover, parentCallback }) => {
|
|
39
39
|
</React.Fragment>
|
40
40
|
);
|
41
41
|
};
|
42
|
-
export default ContactList;
|
42
|
+
export default ContactList;
|
@@ -1,5 +1,9 @@
|
|
1
1
|
import React, { useEffect, useState, useRef } from "react";
|
2
|
-
import {
|
2
|
+
import {
|
3
|
+
BrowserRouter,
|
4
|
+
Routes,
|
5
|
+
Route,
|
6
|
+
} from "react-router-dom";
|
3
7
|
import Filters from "./Filters/Filter";
|
4
8
|
import EventContent from "./EventContent/EventContent";
|
5
9
|
import EventList from "./EventList/EventList";
|
@@ -10,10 +14,12 @@ import useFilterQuery from "../../hooks/useFilterQuery";
|
|
10
14
|
import { Provider, Translate } from "react-translated";
|
11
15
|
import translation from '../../utils/translation';
|
12
16
|
import moment from "moment";
|
17
|
+
import queryString from 'query-string';
|
18
|
+
|
13
19
|
|
14
20
|
export default function Events(props) {
|
15
21
|
return (
|
16
|
-
<
|
22
|
+
<BrowserRouter basename={props.viewPath}>
|
17
23
|
<Provider language={props.currentLanguage} translation={translation}>
|
18
24
|
<EventsView
|
19
25
|
queryFilterUrl={props.queryFilterUrl}
|
@@ -21,16 +27,16 @@ export default function Events(props) {
|
|
21
27
|
proposeUrl={props.proposeUrl}
|
22
28
|
batchSize={props.batchSize}
|
23
29
|
displayMap={props.displayMap}
|
30
|
+
onlyPastEvents={props.onlyPastEvents}
|
24
31
|
language={props.currentLanguage}
|
25
32
|
/>
|
26
33
|
</Provider>
|
27
|
-
</
|
34
|
+
</BrowserRouter>
|
28
35
|
);
|
29
36
|
}
|
30
37
|
function EventsView(props) {
|
31
|
-
const queryString = require("query-string");
|
32
38
|
const { u, ...parsed } = Object.assign(
|
33
|
-
{ b_start: 0, fullobjects: 1, "event_dates.query":[moment().format('YYYY-MM-DD')],"event_dates.range":"min"},
|
39
|
+
{ b_start: 0, fullobjects: 1, "event_dates.query": [moment().format('YYYY-MM-DD')], "event_dates.range": props.onlyPastEvents === "True" ? "max" : "min"},
|
34
40
|
queryString.parse(useFilterQuery().toString())
|
35
41
|
);
|
36
42
|
const [itemsArray, setItemsArray] = useState([]);
|
@@ -151,6 +157,7 @@ function EventsView(props) {
|
|
151
157
|
activeFilter={filters}
|
152
158
|
onChange={filtersChange}
|
153
159
|
language={props.language}
|
160
|
+
onlyPastEvents={props.onlyPastEvents}
|
154
161
|
/>
|
155
162
|
{props.proposeUrl &&
|
156
163
|
(
|
@@ -171,9 +178,8 @@ function EventsView(props) {
|
|
171
178
|
)}
|
172
179
|
</div>
|
173
180
|
</div>
|
174
|
-
<
|
175
|
-
|
176
|
-
<Route exact path="/">
|
181
|
+
<Routes>
|
182
|
+
<Route exact path="/" element={
|
177
183
|
<div className="r-wrapper container r-annuaire-wrapper">
|
178
184
|
<div className="r-result r-annuaire-result">
|
179
185
|
<div>{listRender}</div>
|
@@ -205,8 +211,10 @@ function EventsView(props) {
|
|
205
211
|
</div>
|
206
212
|
}
|
207
213
|
</div>
|
214
|
+
}>
|
215
|
+
|
208
216
|
</Route>
|
209
|
-
<Route path={"/:name"}
|
217
|
+
<Route path={"/:name"} element={
|
210
218
|
<div className="r-wrapper container r-annuaire-wrapper">
|
211
219
|
<div className="r-result r-annuaire-result">
|
212
220
|
<EventContent queryUrl={props.queryUrl} onChange={clickID} />
|
@@ -222,8 +230,9 @@ function EventsView(props) {
|
|
222
230
|
</div>
|
223
231
|
}
|
224
232
|
</div>
|
233
|
+
}>
|
225
234
|
</Route>
|
226
|
-
</
|
235
|
+
</Routes>
|
227
236
|
</div>
|
228
237
|
);
|
229
|
-
}
|
238
|
+
}
|