Groupe d’étiquettes de filtre pour écran de démonstration de spectacle
Dans le scénario de l’écran de démonstration de spectacle, réalisez un groupe d’étiquettes de filtrage : contenu réel, contrôles utilisables, retours d’état clairs et mise en page multi-tailles.
Après activation de JavaScript, ce cas peut être modifié, exécuté et enregistré. Code source fixe ci-dessous :
<!doctype html>
<html lang="fr" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Groupe d’étiquettes de filtre pour écran de démonstration de spectacle</title>
<style>
:root { --ink:#18314f; --paper:#f7f8f2; --accent:#ff6b5e; --secondary:#71c9b5; --line:color-mix(in srgb, var(--ink) 18%, transparent); --shadow:0 24px 60px color-mix(in srgb, var(--ink) 16%, transparent); color-scheme:light; }
* { box-sizing:border-box; }
html { min-width:320px; background:var(--paper); }
body { min-height:100vh; margin:0; overflow-x:hidden; color:var(--ink); font-family:Optima,"Songti SC",serif; background:radial-gradient(ellipse at top left,color-mix(in srgb,var(--secondary) 32%,transparent),transparent 42%),radial-gradient(ellipse at bottom right,color-mix(in srgb,var(--accent) 18%,transparent),transparent 45%),var(--paper); }
button,input,select,textarea { color:inherit; font:inherit; }
button,[role="button"],input,select,textarea { accent-color:var(--accent); }
button { cursor:pointer; }
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
[hidden] { display:none !important; }
@media (max-width:700px) { .mast h1 { line-height:1.08 !important; letter-spacing:-.035em !important; overflow-wrap:anywhere; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; } }
.page{width:min(1100px,calc(100% - 34px));margin:auto;padding:68px 0}.mast{display:grid;grid-template-columns:1fr auto;align-items:center;gap:40px;margin:0 4vw 36px}.mast h1{font-family:Optima,"Songti SC",serif;font-weight:700;font-size:clamp(40px,8vw,86px);letter-spacing:-.025em;margin:0;line-height:1.02}.eyebrow{display:block;margin-bottom:12px;color:var(--accent);font-size:12px;letter-spacing:.2em}.intro{max-width:60ch;line-height:1.9}.scenario{display:grid;width:108px;height:108px;place-items:center;padding:12px;border:1px solid var(--line);border-radius:50%;text-align:center}.demo{border-radius:72px 18px 72px 18px;box-shadow:0 28px 80px color-mix(in srgb,var(--ink) 14%,transparent);position:relative;min-height:430px;overflow:hidden;padding:clamp(28px,5vw,58px);background:color-mix(in srgb,var(--paper) 84%,transparent)}@media(max-width:700px){.page{width:calc(100% - 18px);padding:24px 0}.mast{grid-template-columns:1fr;margin-inline:12px}.scenario{width:auto;height:auto;border-radius:999px}.demo{padding:18px}}
.panel{padding:20px;border:1px dashed var(--secondary);border-radius:8px;background:color-mix(in srgb,var(--paper) 92%,#000)}.stack{display:grid;gap:10px}.row{display:flex;flex-wrap:wrap;gap:7px}.action{min-height:40px;padding:8px 12px;border:1px solid var(--secondary);border-radius:5px;color:var(--ink);background:transparent;font:700 12px/1 ui-monospace,monospace}.action.primary,.action.is-active{color:var(--paper);background:var(--accent)}.status{min-height:22px;color:var(--secondary);font:700 12px/1.5 ui-monospace,monospace}.status::before{content:"status: "}.metric{font:800 clamp(28px,6vw,56px)/1 ui-monospace,monospace}.muted{opacity:.64;font-family:ui-monospace,monospace}.meter{height:8px;background:repeating-linear-gradient(90deg,var(--line) 0 8px,transparent 8px 10px)}.meter>i{display:block;height:100%;background:var(--secondary)}.chip{padding:4px 7px;border:1px solid var(--secondary);font:700 10px/1 ui-monospace,monospace}
.composition-deck{display:grid;grid-template-rows:auto 1fr;border:1px solid var(--line);border-radius:24px;overflow:hidden;background:color-mix(in srgb,var(--ink) 4%,var(--paper))}.deck-bar{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:12px 18px;color:var(--paper);background:var(--ink);font:700 12px/1 ui-monospace,monospace}.deck-lights{display:flex;gap:7px}.deck-lights i{width:10px;height:10px;border-radius:50%;background:var(--accent)}.deck-lights i:nth-child(2){background:var(--secondary)}.deck-lights i:nth-child(3){background:color-mix(in srgb,var(--paper) 55%,transparent)}.composition-deck .demo{border:0;border-radius:0;box-shadow:none}
.filter-chip-demo{display:grid;gap:20px}.filter-chip-demo header{display:flex;justify-content:space-between;gap:20px;align-items:end}.filter-chip-demo h2{margin:.2em 0}.filter-chip-demo header output{padding:9px 13px;border-radius:999px;color:var(--paper);background:var(--accent);font-weight:900}.filter-chip-demo fieldset{margin:0;padding:20px;border:1px dashed var(--line)}.filter-chip-demo legend{padding-inline:8px;font-weight:800}.chip-cloud{display:flex;flex-wrap:wrap;gap:10px}.chip-cloud label{position:relative}.chip-cloud input{position:absolute;opacity:0}.chip-cloud span{display:flex;gap:9px;align-items:center;padding:11px 16px;border:1px solid var(--line);border-radius:999px;background:var(--paper)}.chip-cloud i{display:none;font-style:normal}.chip-cloud input:checked+span{color:var(--paper);border-color:var(--ink);background:var(--ink)}.chip-cloud input:checked+span i{display:inline}.chip-cloud input:focus-visible+span{outline:3px solid var(--accent);outline-offset:3px}.chip-summary{display:flex;justify-content:space-between;gap:16px;align-items:center;padding-top:16px;border-top:1px solid var(--line)}.chip-summary p{margin:0;font-weight:800}@media(max-width:560px){.filter-chip-demo header,.chip-summary{align-items:flex-start;flex-direction:column}}.workflow-dispatch{display:grid;grid-template-columns:minmax(210px,.48fr) minmax(0,1.52fr);gap:18px}.dispatch-console{display:grid;align-content:start;gap:16px;padding:22px;border:1px solid var(--line);border-radius:18px;background:color-mix(in srgb,var(--secondary) 12%,var(--paper))}.dispatch-console h2{margin:.2em 0}.dispatch-console form,.dispatch-console label{display:grid;gap:7px}.dispatch-console input,.dispatch-console select{min-width:0;width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.dispatch-console fieldset{display:flex;gap:12px;border:1px solid var(--line);border-radius:10px}.dispatch-console fieldset label{display:flex;align-items:center}.dispatch-workbench{--dispatch-load:.22;min-width:0;padding:14px;border-left:8px solid color-mix(in srgb,var(--accent) calc(var(--dispatch-load)*100%),var(--line));background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 8%,transparent),transparent 28%)}.dispatch-workbench[data-dispatch-priority="urgent"]{box-shadow:inset 0 0 0 2px var(--accent)}@media(max-width:900px){.workflow-dispatch{grid-template-columns:1fr}.dispatch-console{order:2}}.atlas-shell{--atlas-zoom:100;display:grid;gap:18px;padding:clamp(18px,4vw,30px);border:1px solid var(--line);border-radius:34px;background:linear-gradient(165deg,color-mix(in srgb,var(--secondary) 10%,transparent),color-mix(in srgb,var(--paper) 96%,transparent));box-shadow:var(--shadow)}.atlas-head{display:flex;justify-content:space-between;gap:20px;align-items:end}.atlas-head h2{margin:.18em 0}.atlas-controls{display:grid;gap:10px;justify-items:end}.atlas-modes{display:flex;flex-wrap:wrap;gap:8px;justify-content:end}.atlas-controls output{padding:10px 14px;border:1px solid var(--line);border-radius:999px;background:var(--paper);font-weight:900}.atlas-body{display:grid;grid-template-columns:minmax(240px,.56fr) minmax(0,1.44fr);gap:16px}.atlas-index{display:grid;align-content:start;gap:14px;padding:18px;border-radius:26px;color:var(--paper);background:linear-gradient(180deg,color-mix(in srgb,var(--ink) 88%,#071310),color-mix(in srgb,var(--ink) 72%,#21110f))}.atlas-index label{display:grid;gap:8px}.atlas-index input,.atlas-index select{width:100%;padding:10px;border:1px solid #ffffff2e;border-radius:10px;color:inherit;background:#ffffff12}.atlas-chapters{display:grid;gap:10px;margin:0;padding:0;list-style:none}.atlas-chapters button{display:grid;gap:6px;width:100%;padding:14px;border:1px solid #ffffff24;border-radius:18px;color:inherit;background:#ffffff0e;text-align:left}.atlas-chapters button[aria-pressed="true"]{border-color:var(--secondary);background:#ffffff18;box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--secondary) 28%,transparent)}.atlas-chapters span{font:800 11px/1 ui-monospace,monospace;letter-spacing:.16em}.atlas-chapters small{line-height:1.5;opacity:.76}.atlas-meta{display:grid;gap:10px;margin:0}.atlas-meta div{display:grid;gap:4px;padding:12px;border:1px solid #ffffff1f;border-radius:14px;background:#ffffff10}.atlas-meta dt{font:700 11px/1 ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;opacity:.72}.atlas-meta dd{margin:0;font-weight:900}.atlas-stage{display:grid;gap:14px;min-width:0}.atlas-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.atlas-summary article{display:grid;gap:6px;padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--paper)}.atlas-summary article[data-active="true"]{background:color-mix(in srgb,var(--secondary) 14%,var(--paper));box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--accent) 18%,transparent)}.atlas-summary span{font:800 11px/1 ui-monospace,monospace;letter-spacing:.16em}.atlas-core-shell{min-width:0;padding:clamp(14px,3vw,22px);overflow:auto;border:1px solid var(--line);border-radius:26px;background:radial-gradient(circle at top right,color-mix(in srgb,var(--accent) 8%,transparent),transparent 35%),color-mix(in srgb,var(--paper) 94%,transparent)}.atlas-core-shell>*{display:block;width:calc(10000%/var(--atlas-zoom));max-width:none;transform:scale(calc(var(--atlas-zoom)/100));transform-origin:top left}.atlas-log{display:grid;gap:8px;margin:0;padding-left:18px}.atlas-log li{line-height:1.55}.atlas-shell[data-atlas-mode="trace"] .atlas-core-shell{outline:4px solid color-mix(in srgb,var(--accent) 24%,transparent);outline-offset:3px}.atlas-shell[data-atlas-mode="handoff"] .atlas-index{background:linear-gradient(180deg,color-mix(in srgb,var(--ink) 82%,#28120f),color-mix(in srgb,var(--ink) 68%,#11201d))}@media(max-width:960px){.atlas-body{grid-template-columns:1fr}.atlas-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.atlas-head{align-items:stretch;flex-direction:column}.atlas-controls{justify-items:start}.atlas-modes{justify-content:start}.atlas-summary{grid-template-columns:1fr}.atlas-core-shell>*{width:100%;transform:none}}
</style>
</head>
<body data-aesthetic="organic" data-composition="control-deck">
<main class="page">
<header class="mast"><div><span class="eyebrow">organic / groupe de filtres / INTERMEDIATE</span><h1>Groupe d’étiquettes de filtre pour écran de démonstration de spectacle</h1><p class="intro">Dans le scénario de l’écran de démonstration de spectacle, réalisez un groupe d’étiquettes de filtrage : contenu réel, contrôles utilisables, retours d’état clairs et mise en page multi-tailles.</p></div><span class="scenario">écran de démonstration de spectacle</span></header>
<div class="composition-deck"><div class="deck-bar"><span>CONTROL DECK · 04</span><span>groupe d’étiquettes de filtre</span><span class="deck-lights" aria-hidden="true"><i></i><i></i><i></i></span></div><section class="demo" aria-label="Zone interactive du groupe d’étiquettes de filtrage de l’écran de démonstration de performance"><section id="atlasShell" class="atlas-shell" data-atlas-mode="brief"><header class="atlas-head"><div><span class="eyebrow">Écran de démonstration de spectacle / ATLAS DOSSIER</span><h2>Exemple de cartographie de groupes de filtres</h2><p>Réencapsuler le cas principal dans une page d’exemple de type atlas, en séparant l’index des exemples, la vue de suivi, les annotations de passation et les notes de terrain.</p></div><div class="atlas-controls"><div class="atlas-modes"><button class="action primary" type="button" data-atlas-mode="brief">Briefing</button><button class="action" type="button" data-atlas-mode="trace">Suivi</button><button class="action" type="button" data-atlas-mode="handoff">Transfert</button></div><output id="atlasState">En attente de création d’échantillon</output></div></header><div class="atlas-body"><aside class="atlas-index"><ol class="atlas-chapters"><li><button type="button" data-atlas-card="0" aria-pressed="true"><span>01</span><strong>Écran de démonstration de spectacle enregistré</strong><small>Vérifier si les changements d’état sont visibles</small></button></li><li><button type="button" data-atlas-card="1" aria-pressed="false"><span>02</span><strong>aperçu de l’écran de démonstration de l’exposition</strong><small>Confirmer la cohérence entre l’entrée au clavier et le clic</small></button></li><li><button type="button" data-atlas-card="2" aria-pressed="false"><span>03</span><strong>Plan de l’écran de démonstration du spectacle</strong><small>Vérifiez si la disposition se replie sur les écrans étroits</small></button></li><li><button type="button" data-atlas-card="3" aria-pressed="false"><span>04</span><strong>Inspiration pour l’écran de démonstration du défilé</strong><small>Enregistrer la conclusion de la révision en cours</small></button></li></ol><label>Ratio de mise en page<input id="atlasZoom" type="range" min="82" max="132" value="100"><output id="atlasZoomValue">100%</output></label><label>focus de l’échantillonnage<select id="atlasFocus"><option value="0">Écran de démonstration de spectacle enregistré</option><option value="1">aperçu de l’écran de démonstration de l’exposition</option><option value="2">Plan de l’écran de démonstration du spectacle</option><option value="3">Inspiration pour l’écran de démonstration du défilé</option></select></label><button id="atlasCapture" class="action primary" type="button">Échantillon inclus</button><dl class="atlas-meta"><div><dt>Nombre de contenus</dt><dd id="atlasCount">0</dd></div><div><dt>Focus actuel</dt><dd id="atlasCurrent">Écran de démonstration de spectacle enregistré</dd></div><div><dt>Mode de relecture</dt><dd id="atlasModeLabel">Briefing</dd></div></dl></aside><section class="atlas-stage"><div class="atlas-summary"><article data-active="true"><span>Sample</span><strong>Écran de démonstration de spectacle enregistré</strong><p>Vérifier si les changements d’état sont visibles</p></article><article><span>Trace</span><strong>aperçu de l’écran de démonstration de l’exposition</strong><p>Confirmer la cohérence entre l’entrée au clavier et le clic</p></article><article><span>Signal</span><strong>Plan de l’écran de démonstration du spectacle</strong><p>Vérifiez si la disposition se replie sur les écrans étroits</p></article><article><span>Handoff</span><strong>Inspiration pour l’écran de démonstration du défilé</strong><p>Enregistrer la conclusion de la révision en cours</p></article></div><div id="atlasCoreShell" class="atlas-core-shell"><div class="workflow-dispatch"><aside class="dispatch-console"><span class="eyebrow">Écran de démonstration du spectacle DISPATCH</span><h2>Poste de commande de la scène de démonstration</h2><form id="workflowDispatchForm"><label>Type de tâche<select id="workflowDispatchKind"><option>Mode manuel de l’écran de démonstration du spectacle</option><option>Mode intelligent pour écran de démonstration de spectacle</option><option>Mode de liaison de l’écran de démonstration du spectacle</option></select></label><label>Charge de l’équipement<input id="workflowDispatchAmount" type="number" min="1" max="9999" value="30"><span>%</span></label><fieldset><legend>Priorité de traitement</legend><label><input type="radio" name="workflowPriority" value="normal" checked>Standard</label><label><input type="radio" name="workflowPriority" value="urgent">Urgent</label></fieldset><button class="action primary" type="submit">Scénarios d’application</button></form><label>Tâche en cours<select id="workflowDispatchActive" aria-label="Basculer la tâche en cours"><option value="1">Mode manuel de l’écran de démonstration du spectacle</option><option value="2">Mode intelligent pour écran de démonstration de spectacle</option></select></label><output id="workflowDispatchSummary">En attente de planification</output></aside><section id="workflowCore" class="workflow-core dispatch-workbench" data-dispatch-priority="normal"><!-- 11DZ_CORE_START:controls-selectors-filter-chips --><section class="filter-chip-demo"><header><div><span class="eyebrow">FILTER CHIPS</span><h2>Combinaison de filtres pour l’écran de démonstration de spectacle</h2></div><output id="chipCount">2 éléments sélectionnés</output></header><fieldset><legend>Sélectionnez un ou plusieurs critères de filtre</legend><div class="chip-cloud"><label><input type="checkbox" value="Écran de démonstration de spectacle enregistré" checked data-core-bridge="controls-selectors-filter-chips"><span>Écran de démonstration de spectacle enregistré<i aria-hidden="true">✓</i></span></label><label><input type="checkbox" value="aperçu de l’écran de démonstration de l’exposition" checked><span>aperçu de l’écran de démonstration de l’exposition<i aria-hidden="true">✓</i></span></label><label><input type="checkbox" value="Plan de l’écran de démonstration du spectacle"><span>Plan de l’écran de démonstration du spectacle<i aria-hidden="true">✓</i></span></label><label><input type="checkbox" value="Inspiration pour l’écran de démonstration du défilé"><span>Inspiration pour l’écran de démonstration du défilé<i aria-hidden="true">✓</i></span></label><label><input type="checkbox" value="Enregistrement du écran de démonstration du spectacle"><span>Enregistrement du écran de démonstration du spectacle<i aria-hidden="true">✓</i></span></label><label><input type="checkbox" value="Collaboration pour l’écran de démonstration de spectacle"><span>Collaboration pour l’écran de démonstration de spectacle<i aria-hidden="true">✓</i></span></label><label><input type="checkbox" value="Progression de l’écran de démonstration de l’activité"><span>Progression de l’écran de démonstration de l’activité<i aria-hidden="true">✓</i></span></label></div></fieldset><div class="chip-summary"><p id="chipSummary">Collection et aperçu de la scène de démonstration d’une plateforme de spectacle</p><button id="chipClear" class="action" type="button">Effacer les filtres</button></div></section><!-- 11DZ_CORE_END --></section></div></div><ol id="atlasLog" class="atlas-log"><li>En attente du premier échantillon du graphe</li></ol></section></div></section><p id="status" class="status" role="status" aria-live="polite"></p></section></div>
</main>
<script>
'use strict';
const statusOutput = document.querySelector('#status');
const announce = message => { statusOutput.textContent = message; };
/* 11DZ_CORE_SCRIPT_START:controls-selectors-filter-chips */
const chipInputs=[...document.querySelectorAll('.chip-cloud input')];const chipSummary=document.querySelector('#chipSummary');const chipCount=document.querySelector('#chipCount');function renderChips(){const active=chipInputs.filter(input=>input.checked).map(input=>input.value);chipCount.textContent='sélectionné '+active.length+' élément';chipSummary.textContent=active.join('、')||'Afficher tout le contenu actuellement';announce(active.length?'Appliqué '+active.length+' conditions de filtrage':'Filtre effacé');}chipInputs.forEach(input=>input.addEventListener('change',renderChips));document.querySelector('#chipClear').addEventListener('click',()=>{chipInputs.forEach(input=>{input.checked=false;});renderChips();});
/* 11DZ_CORE_SCRIPT_END */
const workflowBridgeSpec={"name":"controls-selectors-filter-chips","selector":"[data-core-bridge=\"controls-selectors-filter-chips\"]","mode":"toggle","key":" "};const workflowBridgeCore=document.querySelector('#workflowCore');const workflowBridgeControl=workflowBridgeCore.querySelector(workflowBridgeSpec.selector);if(!workflowBridgeControl)throw new Error('Missing core bridge: '+workflowBridgeSpec.name);const workflowBridgeControlledId=workflowBridgeControl.getAttribute('aria-controls');const workflowBridgeControlled=workflowBridgeControlledId?document.getElementById(workflowBridgeControlledId):null;workflowBridgeCore.dataset.workflowBridge=workflowBridgeSpec.name;workflowBridgeCore.dataset.workflowVersion='0';function workflowBridgeSerialize(){const visualNode=workflowBridgeCore.firstElementChild||workflowBridgeCore;const visual=getComputedStyle(visualNode);const outputs=[...workflowBridgeCore.querySelectorAll('output,[role="status"],[aria-live],meter,progress')].map(node=>node.textContent.trim()+'|'+node.getAttribute('aria-valuenow')+'|'+node.getAttribute('value'));const canvas=[...workflowBridgeCore.querySelectorAll('canvas')].map(node=>{try{return node.toDataURL().slice(-160);}catch{return 'canvas-unavailable';}});return JSON.stringify({html:workflowBridgeCore.innerHTML,status:statusOutput.textContent,outputs,canvas,visual:[visual.display,visual.visibility,visual.opacity,visual.transform,visual.filter,visual.backgroundColor,visual.width,visual.height],scroll:workflowBridgeSpec.mode==='scroll'?workflowBridgeControl.scrollTop:null});}let workflowBridgeLastEffect=workflowBridgeSerialize();function workflowBridgeSummary(){const label=(workflowBridgeControl.getAttribute('aria-label')||workflowBridgeControl.textContent||workflowBridgeControl.value||workflowBridgeSpec.name).trim().replace(/\s+/g,' ').slice(0,72);return label+' · Version de base '+workflowBridgeCore.dataset.workflowVersion;}function workflowBridgeCommit(){const effect=workflowBridgeSerialize();if(effect===workflowBridgeLastEffect)return {changed:false,summary:workflowBridgeSummary()};workflowBridgeLastEffect=effect;workflowBridgeCore.dataset.workflowVersion=String(Number(workflowBridgeCore.dataset.workflowVersion||0)+1);return {changed:true,summary:workflowBridgeSummary()};}function workflowBridgeScheduleCommit(){queueMicrotask(workflowBridgeCommit);setTimeout(workflowBridgeCommit,0);}workflowBridgeControl.setAttribute('aria-keyshortcuts',workflowBridgeSpec.key===' '?'Space':workflowBridgeSpec.key);const workflowBridgeToggleKeyMatches=event=>event.key===workflowBridgeSpec.key||event.key==='Spacebar'||event.code==='Space';workflowBridgeControl.addEventListener('keydown',event=>{if(!workflowBridgeToggleKeyMatches(event))return;event.preventDefault();});workflowBridgeControl.addEventListener('keyup',event=>{if(!workflowBridgeToggleKeyMatches(event))return;event.preventDefault();workflowBridgeControl.click();});workflowBridgeControl.addEventListener("change",workflowBridgeScheduleCommit);const workflowBridgeStateTargets=new Set(workflowBridgeCore.querySelectorAll('dialog'));if(workflowBridgeControlled&&workflowBridgeCore.contains(workflowBridgeControlled))workflowBridgeStateTargets.add(workflowBridgeControlled);workflowBridgeStateTargets.forEach(target=>['close','cancel','toggle'].forEach(eventName=>target.addEventListener(eventName,workflowBridgeScheduleCommit)));function workflowBridgeActivate(){workflowBridgeControl.focus();workflowBridgeControl.click();const result=workflowBridgeCommit();setTimeout(workflowBridgeCommit,0);return result;}function workflowBridgeReset(){workflowBridgeCore.dataset.workflowVersion='0';workflowBridgeLastEffect=workflowBridgeSerialize();}
const workflowDispatchCore=document.querySelector('#workflowCore');const workflowDispatchForm=document.querySelector('#workflowDispatchForm');const workflowDispatchSelect=document.querySelector('#workflowDispatchActive');const workflowDispatchJobs=new Map([["1",{"label":"Mode manuel de l’écran de démonstration du spectacle","amount":12,"priority":"normal","touches":0}],["2",{"label":"Mode intelligent pour écran de démonstration de spectacle","amount":21,"priority":"urgent","touches":0}]]);let workflowDispatchSerial=workflowDispatchJobs.size;function workflowDispatchDrive(job,activate=false){workflowDispatchCore.dataset.dispatchPriority=job.priority;workflowDispatchCore.style.setProperty('--dispatch-load',Math.min(.95,.16+job.amount/120));const bridge=activate?workflowBridgeActivate():{changed:false,summary:workflowBridgeSummary()};document.querySelector('#workflowDispatchSummary').textContent=job.label+' · '+job.amount+' % · '+bridge.summary;announce('Tâche actuelle de l’écran de démonstration du spectacle :'+job.label);}function workflowDispatchRender(activeId,activate=false){workflowDispatchSelect.replaceChildren(...[...workflowDispatchJobs].map(([id,job])=>{const option=document.createElement('option');option.value=id;option.textContent=job.label+(job.priority==='urgent'?' · Urgent':'');return option;}));workflowDispatchSelect.value=activeId;workflowDispatchDrive(workflowDispatchJobs.get(activeId),activate);}workflowDispatchForm.addEventListener('submit',event=>{event.preventDefault();const data=new FormData(workflowDispatchForm);const id=String(++workflowDispatchSerial);workflowDispatchJobs.set(id,{label:document.querySelector('#workflowDispatchKind').value,amount:Math.max(1,Number(document.querySelector('#workflowDispatchAmount').value)||1),priority:data.get('workflowPriority'),touches:0});workflowDispatchRender(id,true);});workflowDispatchSelect.addEventListener('change',()=>workflowDispatchDrive(workflowDispatchJobs.get(workflowDispatchSelect.value),true));workflowDispatchCore.addEventListener('focusin',()=>{const job=workflowDispatchJobs.get(workflowDispatchSelect.value);if(!job)return;job.touches+=1;document.querySelector('#workflowDispatchSummary').textContent=job.label+' · '+job.amount+' % · '+workflowBridgeSummary();});workflowDispatchRender('1',false);
workflowBridgeReset();
const atlasShell=document.querySelector('#atlasShell');const atlasState=document.querySelector('#atlasState');const atlasZoom=document.querySelector('#atlasZoom');const atlasZoomValue=document.querySelector('#atlasZoomValue');const atlasFocus=document.querySelector('#atlasFocus');const atlasCurrent=document.querySelector('#atlasCurrent');const atlasCount=document.querySelector('#atlasCount');const atlasModeLabel=document.querySelector('#atlasModeLabel');const atlasCards=[...document.querySelectorAll('[data-atlas-card]')];const atlasSummary=[...document.querySelectorAll('.atlas-summary article')];const atlasLog=document.querySelector('#atlasLog');const atlasModeButtons=[...atlasShell.querySelectorAll('[data-atlas-mode]')];const atlasNotes=["Écran de démonstration de spectacle enregistré","aperçu de l’écran de démonstration de l’exposition","Plan de l’écran de démonstration du spectacle","Inspiration pour l’écran de démonstration du défilé"];const atlasCore=document.querySelector('#workflowCore');let atlasCaptures=0;function atlasSetActive(index){atlasCards.forEach((button,buttonIndex)=>button.setAttribute('aria-pressed',String(buttonIndex===index)));atlasSummary.forEach((card,cardIndex)=>{if(cardIndex===index)card.setAttribute('data-active','true');else card.removeAttribute('data-active');});atlasCurrent.textContent=atlasNotes[index]||atlasNotes[0]||'Sans titre - focalisation';}function atlasRender(reason){const version=atlasCore?.dataset.workflowVersion||'0';const zoom=Number(atlasZoom.value);const active=Math.min(atlasNotes.length-1,Number(atlasFocus.value)||0);atlasShell.style.setProperty('--atlas-zoom',String(zoom));atlasZoomValue.textContent=zoom+'%';atlasCount.textContent=String(atlasCaptures);atlasSetActive(active);atlasModeLabel.textContent={brief:'Briefing',trace:'Suivi',handoff:'Transfert'}[atlasShell.dataset.atlasMode]||'Briefing';atlasState.textContent=reason+' · Version de base '+version;}atlasModeButtons.forEach(button=>button.addEventListener('click',()=>{atlasModeButtons.forEach(item=>item.classList.toggle('primary',item===button));atlasShell.dataset.atlasMode=button.dataset.atlasMode;atlasRender('Basculé vers'+button.textContent);announce('Mode graphe :'+button.textContent);}));atlasCards.forEach((button,index)=>button.addEventListener('click',()=>{atlasFocus.value=String(index);atlasRender('Focalisation de l’échantillon changée');announce('Focus du graphe :'+atlasNotes[index]);}));atlasZoom.addEventListener('input',()=>{atlasRender('Le niveau de zoom de la mise en page a été mis à jour');announce('Échelle du graphe '+atlasZoom.value+'%');});atlasFocus.addEventListener('change',()=>{atlasRender('Focus d’échantillonnage changé');announce('Point d’échantillonnage :'+atlasNotes[Number(atlasFocus.value)||0]);});document.querySelector('#atlasCapture').addEventListener('click',()=>{const index=Math.min(atlasNotes.length-1,Number(atlasFocus.value)||0);const note=atlasNotes[index]||atlasNotes[0]||'Sans titre - focalisation';const version=atlasCore?.dataset.workflowVersion||'0';atlasCaptures+=1;const item=document.createElement('li');item.textContent='échantillon '+atlasCaptures+' · '+note+' · Version de base '+version;const empty=atlasLog.querySelector('li')?.textContent==='En attente du premier échantillon du graphe';if(empty)atlasLog.replaceChildren(item);else atlasLog.prepend(item);while(atlasLog.children.length>6)atlasLog.lastElementChild.remove();atlasRender('Échantillon inclus '+atlasCaptures);announce('Échantillon inclus '+atlasCaptures+' · '+note);});atlasCore?.addEventListener('focusin',()=>atlasRender('L’élément principal a le focus'));atlasCore?.addEventListener('click',()=>atlasRender('Interaction de l’exemple principal'));atlasRender('En attente de création d’échantillon');
</script>
</body>
</html>