10/11/2023 - 16h

recette2
cherif 2023-11-10 16:12:39 +01:00
parent 59ca865463
commit acdbc08870
6 changed files with 244 additions and 174 deletions

48
package-lock.json generated
View File

@ -18,10 +18,11 @@
"@fortawesome/free-regular-svg-icons": "^6.1.1",
"@fortawesome/free-solid-svg-icons": "^6.1.1",
"@fortawesome/react-fontawesome": "^0.1.18",
"@fullcalendar/core": "^6.1.8",
"@fullcalendar/core": "^6.1.9",
"@fullcalendar/daygrid": "^6.1.8",
"@fullcalendar/interaction": "^6.1.8",
"@fullcalendar/react": "^6.1.8",
"@fullcalendar/timegrid": "^6.1.9",
"@mantine/core": "^4.2.10",
"@mantine/hooks": "^4.2.10",
"@mantine/rte": "^4.2.10",
@ -2932,19 +2933,19 @@
}
},
"node_modules/@fullcalendar/core": {
"version": "6.1.8",
"resolved": "https://registry.npmjs.org/@fullcalendar/core/-/core-6.1.8.tgz",
"integrity": "sha512-i8JBIvZCWGO9dsMEDcx9bnsQZ9PtGSJdOXGgWbhLaGq2iq41OBdp9g9gM4b/Otv2oK8bL5Gl6CsMmb/HkDtA6Q==",
"version": "6.1.9",
"resolved": "https://registry.npmjs.org/@fullcalendar/core/-/core-6.1.9.tgz",
"integrity": "sha512-eeG+z9BWerdsU9Ac6j16rpYpPnE0wxtnEHiHrh/u/ADbGTR3hCOjCD9PxQOfhOTHbWOVs7JQunGcksSPu5WZBQ==",
"dependencies": {
"preact": "~10.12.1"
}
},
"node_modules/@fullcalendar/daygrid": {
"version": "6.1.8",
"resolved": "https://registry.npmjs.org/@fullcalendar/daygrid/-/daygrid-6.1.8.tgz",
"integrity": "sha512-kCZxQFKb9Vqa3CZRX0v7rMSJ2mlTt4gDpyLfiNJKxUAq7W51uKurPaFZWicaXy1ESHVBxKNlbx5uNjBpyu50JQ==",
"version": "6.1.9",
"resolved": "https://registry.npmjs.org/@fullcalendar/daygrid/-/daygrid-6.1.9.tgz",
"integrity": "sha512-o/6joH/7lmVHXAkbaa/tUbzWYnGp/LgfdiFyYPkqQbjKEeivNZWF1WhHqFbhx0zbFONSHtrvkjY2bjr+Ef2quQ==",
"peerDependencies": {
"@fullcalendar/core": "~6.1.8"
"@fullcalendar/core": "~6.1.9"
}
},
"node_modules/@fullcalendar/interaction": {
@ -2965,6 +2966,17 @@
"react-dom": "^16.7.0 || ^17 || ^18"
}
},
"node_modules/@fullcalendar/timegrid": {
"version": "6.1.9",
"resolved": "https://registry.npmjs.org/@fullcalendar/timegrid/-/timegrid-6.1.9.tgz",
"integrity": "sha512-le7UV05wVE1Trdr054kgJXTwa+A1pEI8nlCBnPWdcyrL+dTLoPvQ4AWEVCnV7So+4zRYaCqnqGXfCJsj0RQa0g==",
"dependencies": {
"@fullcalendar/daygrid": "~6.1.9"
},
"peerDependencies": {
"@fullcalendar/core": "~6.1.9"
}
},
"node_modules/@gatsbyjs/reach-router": {
"version": "1.3.9",
"license": "MIT",
@ -48167,17 +48179,17 @@
}
},
"@fullcalendar/core": {
"version": "6.1.8",
"resolved": "https://registry.npmjs.org/@fullcalendar/core/-/core-6.1.8.tgz",
"integrity": "sha512-i8JBIvZCWGO9dsMEDcx9bnsQZ9PtGSJdOXGgWbhLaGq2iq41OBdp9g9gM4b/Otv2oK8bL5Gl6CsMmb/HkDtA6Q==",
"version": "6.1.9",
"resolved": "https://registry.npmjs.org/@fullcalendar/core/-/core-6.1.9.tgz",
"integrity": "sha512-eeG+z9BWerdsU9Ac6j16rpYpPnE0wxtnEHiHrh/u/ADbGTR3hCOjCD9PxQOfhOTHbWOVs7JQunGcksSPu5WZBQ==",
"requires": {
"preact": "~10.12.1"
}
},
"@fullcalendar/daygrid": {
"version": "6.1.8",
"resolved": "https://registry.npmjs.org/@fullcalendar/daygrid/-/daygrid-6.1.8.tgz",
"integrity": "sha512-kCZxQFKb9Vqa3CZRX0v7rMSJ2mlTt4gDpyLfiNJKxUAq7W51uKurPaFZWicaXy1ESHVBxKNlbx5uNjBpyu50JQ==",
"version": "6.1.9",
"resolved": "https://registry.npmjs.org/@fullcalendar/daygrid/-/daygrid-6.1.9.tgz",
"integrity": "sha512-o/6joH/7lmVHXAkbaa/tUbzWYnGp/LgfdiFyYPkqQbjKEeivNZWF1WhHqFbhx0zbFONSHtrvkjY2bjr+Ef2quQ==",
"requires": {}
},
"@fullcalendar/interaction": {
@ -48192,6 +48204,14 @@
"integrity": "sha512-E8GQSQyZHkjpwxQW5Vci7iZgN7f33ntuRcvfGii4Fn35t9VHGz2SEyKAWXpVf38elcKTZKVgajU9ipStd+1LEg==",
"requires": {}
},
"@fullcalendar/timegrid": {
"version": "6.1.9",
"resolved": "https://registry.npmjs.org/@fullcalendar/timegrid/-/timegrid-6.1.9.tgz",
"integrity": "sha512-le7UV05wVE1Trdr054kgJXTwa+A1pEI8nlCBnPWdcyrL+dTLoPvQ4AWEVCnV7So+4zRYaCqnqGXfCJsj0RQa0g==",
"requires": {
"@fullcalendar/daygrid": "~6.1.9"
}
},
"@gatsbyjs/reach-router": {
"version": "1.3.9",
"peer": true,

View File

@ -13,10 +13,11 @@
"@fortawesome/free-regular-svg-icons": "^6.1.1",
"@fortawesome/free-solid-svg-icons": "^6.1.1",
"@fortawesome/react-fontawesome": "^0.1.18",
"@fullcalendar/core": "^6.1.8",
"@fullcalendar/core": "^6.1.9",
"@fullcalendar/daygrid": "^6.1.8",
"@fullcalendar/interaction": "^6.1.8",
"@fullcalendar/react": "^6.1.8",
"@fullcalendar/timegrid": "^6.1.9",
"@mantine/core": "^4.2.10",
"@mantine/hooks": "^4.2.10",
"@mantine/rte": "^4.2.10",

View File

@ -330,7 +330,7 @@ const Partner_Configuration_Technique = (props) => {
form.append("config_name", p_detail_config_point);
form.append("config_value", p_detail_config_valeur);
console.log(" form == ", form);
//console.log(" form == ", form);
var myurl = process.env.REACT_APP_API_URL + "myclass/api/Add_Update_Partner_Basic_Setup/";
@ -665,6 +665,8 @@ const Partner_Configuration_Technique = (props) => {
<MenuItem value="smtp_user" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >smtp_user &nbsp;</MenuItem>
<MenuItem value="smtp_user_pwd" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >smtp_user_pwd &nbsp;</MenuItem>
<MenuItem value="smtp_count_from_name" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >smtp_count_from_name</MenuItem>
<MenuItem value="smtp_count_port" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >smtp_count_port</MenuItem>
<MenuItem value="partner_smtp" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }} >partner_smtp</MenuItem>
</TextField>
</div>}

View File

@ -462,6 +462,7 @@ const Partner_Facture = (props) => {
const [isLoading, setLoading] = useState();
const [p_detail_header_client_nom, setp_detail_header_client_nom] = useState();
const [p_detail_header_email_client, setp_detail_header_email_client] = useState();
const [p_detail_header_client_nom_id, setp_detail_header_client_nom_id] = useState();
const [p_detail_header_description, setp_detail_header_description] = useState();
@ -743,6 +744,11 @@ const Partner_Facture = (props) => {
}
if (mylocal_order.order_header_email_client) {
setp_detail_header_email_client(mylocal_order.order_header_email_client);
}
//document.getElementsByName("detail_header_description")[0].value = "";
if (mylocal_order.order_header_description) {
setp_detail_header_description(mylocal_order.order_header_description);
@ -1329,6 +1335,12 @@ const Partner_Facture = (props) => {
document.getElementsByName("detail_nom_client")[0].style.backgroundColor = "#ECEFF1";
}
if (document.getElementsByName("detail_header_email_client")[0]) {
document.getElementsByName("detail_header_email_client")[0].disabled = true;
document.getElementsByName("detail_header_email_client")[0].style.backgroundColor = "#ECEFF1";
}
if (document.getElementsByName("detail_header_description")[0]) {
document.getElementsByName("detail_header_description")[0].disabled = true;
document.getElementsByName("detail_header_description")[0].style.backgroundColor = "#ECEFF1";
@ -1992,6 +2004,23 @@ const Partner_Facture = (props) => {
/>
</div>
<div className="session_caract"> Email Client<br />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
name="detail_header_email_client"
id="detail_header_email_client"
InputLabelProps={{
shrink: true,
}}
disabled={false}
className="disabled_style"
value={p_detail_header_email_client}
/>
</div>
<div className="session_caract"> Commande Ref. Externe<br />

View File

@ -24,8 +24,11 @@ import enUS from 'date-fns/locale/en-US'
import FullCalendar from "@fullcalendar/react";
import daygridPlugin from "@fullcalendar/daygrid";
import interactionPlugin from "@fullcalendar/interaction";
import timeGridPlugin from "@fullcalendar/timegrid";
import { v4 as uuid } from "uuid";
import { isCompositeComponent } from "react-dom/test-utils";
import moment from "moment";
import allLocales from '@fullcalendar/core/locales-all'
const locales = {
'en-US': enUS,
@ -269,8 +272,9 @@ const TestUrl_New = (props) => {
const [events, setEvents] = useState([]);
const handleSelect = (info) => {
const { start, end } = info;
const eventNamePrompt = prompt("Enter, event name");
const eventNamePrompt = prompt("Enter, Nom evenment_ch");
if (eventNamePrompt) {
console.log("### eventNamePrompt = ", eventNamePrompt, " ### info = ", info);
setEvents([
...events,
{
@ -287,7 +291,7 @@ const TestUrl_New = (props) => {
const { event } = info;
return (
<div>
<p>{event.title}</p>
<p>ch - {event.title}</p>
</div>
);
};
@ -408,7 +412,7 @@ const TestUrl_New = (props) => {
if (document.getElementsByName(String(field_name))[0]) {
var field_value = document.getElementsByName(String(field_name))[0].value;
var new_val = { 'field_name': field_name, 'field_value': field_value, 'field_type':field_type, 'field_label':field_label, 'is_mandatory':is_mandatory }
var new_val = { 'field_name': field_name, 'field_value': field_value, 'field_type': field_type, 'field_label': field_label, 'is_mandatory': is_mandatory }
var johnIndex = findIndexByProperty(spec_field_updated_values, 'field_name', field_name);
if (johnIndex > -1) {
spec_field_updated_values[johnIndex] = new_val;
@ -488,6 +492,8 @@ const TestUrl_New = (props) => {
<div style={{ "width": "90%", "marginLeft": "1%" }}>
<FullCalendar
locales={allLocales}
locale={'fr'}
editable
selectable
events={events}
@ -497,9 +503,18 @@ const TestUrl_New = (props) => {
end: "dayGridMonth dayGridWeek dayGridDay",
}}
eventContent={(info) => <EventItem info={info} />}
plugins={[daygridPlugin, interactionPlugin]}
//plugins={[timeGridPlugin]}
plugins={[timeGridPlugin, daygridPlugin, interactionPlugin]}
views={["dayGridMonth", "dayGridWeek", "dayGridDay"]}
slotMinTime="07:00"
slotMaxTime="20:00"
scrollTime='08:00'
/>;
</div>
<div className="div_row_gauche texte_area_filter" >

View File

@ -1,5 +1,8 @@
.testurl_new {
.fc-view-harness {
height: 35rem !important;
}
.Mui-disabled {
font-size: small !important;
@ -2157,7 +2160,7 @@
font-weight: normal;
}
.file_ariane{
.file_ariane {
font-size: large;
font-weight: 600;
width: 100%;