Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0511c18b07 |
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "Planification",
|
"name": "Planification",
|
||||||
"version": "2026.5.26",
|
"version": "2026.5.27",
|
||||||
"description": "Vue claire et rapide du planning des techniciens EasyVista. Regroupe interventions et réservations par tech, affiche horaires, contact, lieu, catégorie et statut en un coup d'œil.",
|
"description": "Vue claire et rapide du planning des techniciens EasyVista. Regroupe interventions et réservations par tech, affiche horaires, contact, lieu, catégorie et statut en un coup d'œil.",
|
||||||
"browser_specific_settings": {
|
"browser_specific_settings": {
|
||||||
"gecko": {
|
"gecko": {
|
||||||
|
|||||||
+13
-4
@@ -2020,6 +2020,7 @@ body.modal-open {
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
gap: 12px;
|
||||||
line-height: 1.1;
|
line-height: 1.1;
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
@@ -2027,11 +2028,19 @@ body.modal-open {
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
.app-clock-date {
|
.app-clock-date {
|
||||||
font-size: 12px;
|
font-size: 22px;
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
|
color: var(--text);
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
font-variant-numeric: tabular-nums;
|
||||||
|
}
|
||||||
|
.app-clock-date::after {
|
||||||
|
content: "•";
|
||||||
|
margin-left: 12px;
|
||||||
color: var(--text-muted);
|
color: var(--text-muted);
|
||||||
letter-spacing: 0.3px;
|
font-size: 26px;
|
||||||
text-transform: capitalize;
|
line-height: 0.8;
|
||||||
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
.app-clock-time {
|
.app-clock-time {
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
|
|||||||
@@ -4821,24 +4821,37 @@ function buildCard(tech, isoDate) {
|
|||||||
note.classList.add("absent-" + absenceCategory);
|
note.classList.add("absent-" + absenceCategory);
|
||||||
}
|
}
|
||||||
const ab = absenceBlocks[0];
|
const ab = absenceBlocks[0];
|
||||||
if (ab.startDate && ab.endDate && ab.startDate !== ab.endDate) {
|
// v2026.5.27 : libellé enrichi "Absent du XX au YY — Maladie" ou "Absent — Congé"
|
||||||
note.textContent = `Absent du ${ab.startDate.substring(0, 5)} au ${ab.endDate.substring(0, 5)}`;
|
const multiDay = ab.startDate && ab.endDate && ab.startDate !== ab.endDate;
|
||||||
|
const catLabel = absenceCategory === "maladie" ? "Maladie/Accident"
|
||||||
|
: absenceCategory === "conge" ? (multiDay ? "Congés" : "Congé")
|
||||||
|
: null;
|
||||||
|
let txt;
|
||||||
|
if (multiDay) {
|
||||||
|
txt = `Absent du ${ab.startDate.substring(0, 5)} au ${ab.endDate.substring(0, 5)}`;
|
||||||
} else {
|
} else {
|
||||||
note.textContent = "Absent toute la journée";
|
txt = "Absent toute la journée";
|
||||||
}
|
}
|
||||||
|
if (catLabel) txt += ` — ${catLabel}`;
|
||||||
|
note.textContent = txt;
|
||||||
body.appendChild(note);
|
body.appendChild(note);
|
||||||
|
|
||||||
// v5.0.4 : tooltip au hover sur toute la carte absent (pas juste un
|
// v5.0.4 : tooltip au hover sur toute la carte absent (pas juste un
|
||||||
// bouton visible). Contient : détail période + bouton supprimer si
|
// bouton visible). Contient : détail période + bouton supprimer si
|
||||||
// c'est une absence supprimable (actionId réel, pas pompier récurrent).
|
// c'est une absence supprimable (actionId réel, pas pompier récurrent).
|
||||||
|
// v2026.5.33 : en vue horizontale, attacher le hover SEULEMENT au badge
|
||||||
|
// (Congé / Maladie/Accident / Absent) pour éviter que la popup s'affiche
|
||||||
|
// dès qu'on approche de la ligne du tech. En vue classique, on garde la
|
||||||
|
// carte entière comme zone de hover (comportement d'origine).
|
||||||
if (ab.actionId && !ab.isPompier && !ab._recurring) {
|
if (ab.actionId && !ab.isPompier && !ab._recurring) {
|
||||||
// On attache le tooltip sur la CARD ENTIÈRE (card) — comme ça
|
|
||||||
// survoler n'importe où sur la zone grisée "absent" le déclenche.
|
|
||||||
const ivCopy = {
|
const ivCopy = {
|
||||||
...ab,
|
...ab,
|
||||||
type: "AL-Absence" // force pour buildTooltipHTML
|
type: "AL-Absence"
|
||||||
};
|
};
|
||||||
|
const _isHorizontalView = () => document.documentElement.classList.contains("view-horizontal");
|
||||||
|
// Hover sur la carte entière : actif SEULEMENT en vue classique
|
||||||
card.addEventListener("mouseenter", (e) => {
|
card.addEventListener("mouseenter", (e) => {
|
||||||
|
if (_isHorizontalView()) return; // bloqué en horizontal
|
||||||
showTooltip(e, ivCopy, card);
|
showTooltip(e, ivCopy, card);
|
||||||
});
|
});
|
||||||
card.addEventListener("mouseleave", () => {
|
card.addEventListener("mouseleave", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user