Domain

Epdr Repartition Table

la répartition des messages par station (une rangée par message, une colonne par station)

Options

Composant métier : posé tel quel, avec vos données. Ce qui change d’une page à l’autre :

Une colonne par station
epdr-repartition-table__column 112 chacune ; le cadre défile quand elles dépassent la carte
Nom coupé
rien à écrire le JS du tableau lui donne sa bulle (Tooltip)
Cadre qui défile
tabindex="0"role="group"aria-label="Répartition des messages par station" aucune rangée n’a de contrôle

Répartition

Sous un Section Label dont l’action « Actualiser » (Ghost Neutral sm, icône de tête) est à droite. Total et stations en colonnes de 112, tout à gauche. Un nom de station trop long est coupé par « … » et reçoit sa bulle.

Répartition des messages par station
Message Total Nostalgie Paris Chérie FM Lyon Rire et Chansons Lille Radio Scoop Saint-Étienne-du-Rouvray Virgin Radio Nantes RFM Bordeaux
Message 1 96 / 14 18 / 3 15 / 2 12 / 2 10 / 2 11 / 3 9 / 2
Message 2 71 / 10 12 / 2 12 / 2 9 / 1 8 / 1 6 / 2 5 / 2
HTML
<div class="section-label">
  <h2 class="section-label__title">Répartition</h2>
  <button class="button button--ghost button--neutral button--sm section-label__actions" type="button"><svg class="icon icon--sm" aria-hidden="true"><use href="/icons.svg#icon-refresh"></use></svg>Actualiser</button>
</div>
<div class="card">
  <div class="card__row card__row--flush">
    <div class="table-scroll" tabindex="0" role="group" aria-label="Répartition des messages par station">
      <table class="table table--compact epdr-repartition-table">
        <caption class="visually-hidden">Répartition des messages par station</caption>
        <thead class="table__head">
          <tr class="table__row">
            <th class="table__header epdr-repartition-table__message" scope="col">Message</th>
            <th class="table__header epdr-repartition-table__column" scope="col">Total<button class="table__info" type="button" aria-label="Information sur le total" aria-describedby="repartition-info-total" data-tooltip="repartition-info-total"><svg class="icon icon--xs" aria-hidden="true"><use href="/icons.svg#icon-info"></use></svg></button><span class="tooltip" id="repartition-info-total" role="tooltip" hidden>GRP / diffusions</span></th>
            <th class="table__header epdr-repartition-table__column" scope="col">Nostalgie Paris</th>
            <th class="table__header epdr-repartition-table__column" scope="col">Chérie FM Lyon</th>
            <th class="table__header epdr-repartition-table__column" scope="col">Rire et Chansons Lille</th>
            <th class="table__header epdr-repartition-table__column" scope="col">Radio Scoop Saint-Étienne-du-Rouvray</th>
            <th class="table__header epdr-repartition-table__column" scope="col">Virgin Radio Nantes</th>
            <th class="table__header epdr-repartition-table__column" scope="col">RFM Bordeaux</th>
          </tr>
        </thead>
        <tbody class="table__body">
          <tr class="table__row">
            <th class="table__cell epdr-repartition-table__row-header" scope="row"><span class="epdr-message-select epdr-message-select--read"><span class="epdr-message-select__dot epdr-message-select__dot--blue" aria-hidden="true"></span>Message 1</span></th>
            <td class="table__cell">96 / 14</td>
            <td class="table__cell">18 / 3</td>
            <td class="table__cell">15 / 2</td>
            <td class="table__cell">12 / 2</td>
            <td class="table__cell">10 / 2</td>
            <td class="table__cell">11 / 3</td>
            <td class="table__cell">9 / 2</td>
          </tr>
          <tr class="table__row">
            <th class="table__cell epdr-repartition-table__row-header" scope="row"><span class="epdr-message-select epdr-message-select--read"><span class="epdr-message-select__dot epdr-message-select__dot--amber" aria-hidden="true"></span>Message 2</span></th>
            <td class="table__cell">71 / 10</td>
            <td class="table__cell">12 / 2</td>
            <td class="table__cell">12 / 2</td>
            <td class="table__cell">9 / 1</td>
            <td class="table__cell">8 / 1</td>
            <td class="table__cell">6 / 2</td>
            <td class="table__cell">5 / 2</td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
</div>