@poadio/app-vue 0.0.0-stage → 0.2.0
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.
- package/CHANGELOG.md +44 -0
- package/LICENSE +22 -0
- package/README.md +16 -2
- package/app-vue.css +181 -0
- package/dist/browser.d.ts +23 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +112 -0
- package/dist/browser.js.map +1 -0
- package/dist/draft-toolbar.d.ts +65 -0
- package/dist/draft-toolbar.d.ts.map +1 -0
- package/dist/draft-toolbar.js +62 -0
- package/dist/draft-toolbar.js.map +1 -0
- package/dist/front-view.d.ts +39 -0
- package/dist/front-view.d.ts.map +1 -0
- package/dist/front-view.js +174 -0
- package/dist/front-view.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/items.d.ts +33 -0
- package/dist/items.d.ts.map +1 -0
- package/dist/items.js +369 -0
- package/dist/items.js.map +1 -0
- package/dist/lazy.d.ts +56 -0
- package/dist/lazy.d.ts.map +1 -0
- package/dist/lazy.js +68 -0
- package/dist/lazy.js.map +1 -0
- package/dist/messages.d.ts +56 -0
- package/dist/messages.d.ts.map +1 -0
- package/dist/messages.js +102 -0
- package/dist/messages.js.map +1 -0
- package/dist/sections/grid.d.ts +53 -0
- package/dist/sections/grid.d.ts.map +1 -0
- package/dist/sections/grid.js +46 -0
- package/dist/sections/grid.js.map +1 -0
- package/dist/sections/under-construction.d.ts +25 -0
- package/dist/sections/under-construction.d.ts.map +1 -0
- package/dist/sections/under-construction.js +32 -0
- package/dist/sections/under-construction.js.map +1 -0
- package/package.json +72 -4
- package/runtime-dist/app.css +535 -0
- package/runtime-dist/app.js +2 -0
- package/runtime-dist/c-0rxdxcn3.js +2 -0
- package/runtime-dist/c-0vbs937h.js +18 -0
- package/runtime-dist/c-0zqjsnm5.js +2 -0
- package/runtime-dist/c-13nx24wa.js +1 -0
- package/runtime-dist/c-16cdkp27.js +1 -0
- package/runtime-dist/c-16cm3n82.js +1 -0
- package/runtime-dist/c-1h49vkah.js +2 -0
- package/runtime-dist/c-1xpa1fqz.js +1 -0
- package/runtime-dist/c-29v2e09p.js +1 -0
- package/runtime-dist/c-2ag31260.js +2 -0
- package/runtime-dist/c-2s6r37jb.js +1 -0
- package/runtime-dist/c-2v244yc0.js +1 -0
- package/runtime-dist/c-3be398px.js +1 -0
- package/runtime-dist/c-3jm96b1p.js +2 -0
- package/runtime-dist/c-3pe5hprv.js +2 -0
- package/runtime-dist/c-3zbf5g3p.js +1 -0
- package/runtime-dist/c-4h51m4qq.js +1 -0
- package/runtime-dist/c-523qwqen.js +2 -0
- package/runtime-dist/c-572jz6y4.js +1 -0
- package/runtime-dist/c-64j9mv7a.js +1 -0
- package/runtime-dist/c-6f446pxt.js +1 -0
- package/runtime-dist/c-6pd33f4a.js +1 -0
- package/runtime-dist/c-6qa26wds.js +1 -0
- package/runtime-dist/c-6w0f1kqm.js +1 -0
- package/runtime-dist/c-72hj12cs.js +2 -0
- package/runtime-dist/c-7cjj18ea.js +1 -0
- package/runtime-dist/c-823yyjat.js +1 -0
- package/runtime-dist/c-8gpbevx2.js +1 -0
- package/runtime-dist/c-98tbntdq.js +2 -0
- package/runtime-dist/c-9sm6aybf.js +2 -0
- package/runtime-dist/c-a63rkaa9.js +1 -0
- package/runtime-dist/c-ahcj5yr5.js +1 -0
- package/runtime-dist/c-azvw5879.js +2 -0
- package/runtime-dist/c-b6g9ey7e.js +2 -0
- package/runtime-dist/c-bssc8kwn.js +1 -0
- package/runtime-dist/c-bvp9zbmr.js +1 -0
- package/runtime-dist/c-cc3m3rs1.js +2 -0
- package/runtime-dist/c-cp1ehb23.js +1 -0
- package/runtime-dist/c-cvsx6n6e.js +2 -0
- package/runtime-dist/c-d5y90g8f.js +1 -0
- package/runtime-dist/c-d8hfdner.js +2 -0
- package/runtime-dist/c-dqtdk937.js +1 -0
- package/runtime-dist/c-dzx0rg0g.js +2 -0
- package/runtime-dist/c-eczfywaq.js +1 -0
- package/runtime-dist/c-epemgj1a.js +2 -0
- package/runtime-dist/c-et83hbhc.js +1 -0
- package/runtime-dist/c-ffkh15py.js +1 -0
- package/runtime-dist/c-fn3059s1.js +2 -0
- package/runtime-dist/c-fnzeden9.js +1 -0
- package/runtime-dist/c-gen0a4bn.js +1 -0
- package/runtime-dist/c-gesjk5ph.js +1 -0
- package/runtime-dist/c-gkyekesy.js +15 -0
- package/runtime-dist/c-gs1k0twe.js +2 -0
- package/runtime-dist/c-gznx0sj4.js +2 -0
- package/runtime-dist/c-h5m94fwp.js +1 -0
- package/runtime-dist/c-hdstjg33.js +2 -0
- package/runtime-dist/c-hsy77frc.js +3 -0
- package/runtime-dist/c-j02ymtyd.js +2 -0
- package/runtime-dist/c-j63hz554.js +2 -0
- package/runtime-dist/c-jvrr9zb8.js +1 -0
- package/runtime-dist/c-jymrpj5m.js +1 -0
- package/runtime-dist/c-k624qrhh.js +2 -0
- package/runtime-dist/c-kbg0cafy.js +2 -0
- package/runtime-dist/c-kmx0mv0c.js +2 -0
- package/runtime-dist/c-krt6rpg1.js +1 -0
- package/runtime-dist/c-kyajr8zz.js +2 -0
- package/runtime-dist/c-m30q0jrb.js +1 -0
- package/runtime-dist/c-m49q9r7s.js +1 -0
- package/runtime-dist/c-m6yf7zaj.js +2 -0
- package/runtime-dist/c-m70tbfc5.js +2 -0
- package/runtime-dist/c-mdj990nz.js +2 -0
- package/runtime-dist/c-mvdn43tv.js +2 -0
- package/runtime-dist/c-mw3zx9yk.js +1 -0
- package/runtime-dist/c-n8mqnvjg.js +1 -0
- package/runtime-dist/c-nkrm4n9a.js +1 -0
- package/runtime-dist/c-nn49946s.js +1 -0
- package/runtime-dist/c-ny0mdx7k.js +2 -0
- package/runtime-dist/c-p8wyhrwm.js +2 -0
- package/runtime-dist/c-pbn2syef.js +1 -0
- package/runtime-dist/c-prt5qv2x.js +1 -0
- package/runtime-dist/c-qe1kevqk.js +1 -0
- package/runtime-dist/c-rasvf2z2.js +2 -0
- package/runtime-dist/c-rf1xevya.js +1 -0
- package/runtime-dist/c-rktc0ksd.js +2 -0
- package/runtime-dist/c-sd570jk7.js +2 -0
- package/runtime-dist/c-sdf15np5.js +1 -0
- package/runtime-dist/c-sjajadt4.js +2 -0
- package/runtime-dist/c-sv15z0aa.js +1 -0
- package/runtime-dist/c-tv3ksk7j.js +2 -0
- package/runtime-dist/c-vrmw0gka.js +1 -0
- package/runtime-dist/c-wjadf68q.js +1 -0
- package/runtime-dist/c-wnynh7zm.js +1 -0
- package/runtime-dist/c-xeqwqt9z.js +2 -0
- package/runtime-dist/c-xk9fqzsc.js +1 -0
- package/runtime-dist/c-xqf3j4w7.js +1 -0
- package/runtime-dist/c-xx4986kx.js +1 -0
- package/runtime-dist/c-y9120d6h.js +1 -0
- package/runtime-dist/c-ywzh0r63.js +1 -0
- package/runtime-dist/c-zyfkspym.js +2 -0
- package/runtime-dist/index.html +14 -0
- package/runtime-dist/ui-accordion.css +29 -0
- package/runtime-dist/ui-app-shell.css +36 -0
- package/runtime-dist/ui-avatar.css +28 -0
- package/runtime-dist/ui-badge.css +14 -0
- package/runtime-dist/ui-block-editor.css +85 -0
- package/runtime-dist/ui-block-view.css +50 -0
- package/runtime-dist/ui-block.css +20 -0
- package/runtime-dist/ui-bottom-nav.css +54 -0
- package/runtime-dist/ui-breadcrumb.css +25 -0
- package/runtime-dist/ui-button-group.css +39 -0
- package/runtime-dist/ui-calendar.css +168 -0
- package/runtime-dist/ui-card.css +26 -0
- package/runtime-dist/ui-carousel.css +35 -0
- package/runtime-dist/ui-chart.css +26 -0
- package/runtime-dist/ui-checkbox.css +25 -0
- package/runtime-dist/ui-chip.css +30 -0
- package/runtime-dist/ui-code-editor.css +25 -0
- package/runtime-dist/ui-colorpicker.css +46 -0
- package/runtime-dist/ui-combo.css +43 -0
- package/runtime-dist/ui-dataview.css +50 -0
- package/runtime-dist/ui-datepicker.css +80 -0
- package/runtime-dist/ui-dialog.css +119 -0
- package/runtime-dist/ui-divider.css +18 -0
- package/runtime-dist/ui-fieldset.css +25 -0
- package/runtime-dist/ui-filter-chip.css +24 -0
- package/runtime-dist/ui-floating.css +9 -0
- package/runtime-dist/ui-gantt.css +105 -0
- package/runtime-dist/ui-image.css +34 -0
- package/runtime-dist/ui-inplace.css +19 -0
- package/runtime-dist/ui-json-editor.css +40 -0
- package/runtime-dist/ui-layout.css +39 -0
- package/runtime-dist/ui-listbox.css +52 -0
- package/runtime-dist/ui-map.css +469 -0
- package/runtime-dist/ui-menu.css +38 -0
- package/runtime-dist/ui-menubar.css +55 -0
- package/runtime-dist/ui-meter.css +26 -0
- package/runtime-dist/ui-multiselect.css +62 -0
- package/runtime-dist/ui-nav-drawer.css +118 -0
- package/runtime-dist/ui-number.css +26 -0
- package/runtime-dist/ui-option-list.css +28 -0
- package/runtime-dist/ui-orderlist.css +54 -0
- package/runtime-dist/ui-orgchart.css +71 -0
- package/runtime-dist/ui-paginator.css +25 -0
- package/runtime-dist/ui-panel.css +28 -0
- package/runtime-dist/ui-password.css +26 -0
- package/runtime-dist/ui-picklist.css +58 -0
- package/runtime-dist/ui-popover.css +20 -0
- package/runtime-dist/ui-progress.css +31 -0
- package/runtime-dist/ui-radio.css +29 -0
- package/runtime-dist/ui-rating.css +19 -0
- package/runtime-dist/ui-richtext.css +48 -0
- package/runtime-dist/ui-scheduler.css +132 -0
- package/runtime-dist/ui-scroll-top.css +17 -0
- package/runtime-dist/ui-segmented.css +25 -0
- package/runtime-dist/ui-select.css +47 -0
- package/runtime-dist/ui-sheet.css +56 -0
- package/runtime-dist/ui-skeleton.css +18 -0
- package/runtime-dist/ui-slider.css +59 -0
- package/runtime-dist/ui-speed-dial.css +26 -0
- package/runtime-dist/ui-splitter.css +23 -0
- package/runtime-dist/ui-stepper.css +47 -0
- package/runtime-dist/ui-switch.css +31 -0
- package/runtime-dist/ui-table-panel.css +114 -0
- package/runtime-dist/ui-table.css +430 -0
- package/runtime-dist/ui-tabs.css +45 -0
- package/runtime-dist/ui-taskboard.css +104 -0
- package/runtime-dist/ui-timeline.css +44 -0
- package/runtime-dist/ui-toast.css +43 -0
- package/runtime-dist/ui-toggle-button.css +6 -0
- package/runtime-dist/ui-tooltip.css +21 -0
- package/runtime-dist/ui-tree.css +44 -0
- package/runtime-dist/ui-upload.css +46 -0
- package/runtime-dist/version.json +1 -0
- package/src/browser.ts +126 -0
- package/src/draft-toolbar.ts +67 -0
- package/src/front-view.ts +186 -0
- package/src/index.ts +5 -0
- package/src/items.ts +436 -0
- package/src/lazy.ts +76 -0
- package/src/messages.ts +110 -0
- package/src/sections/grid.ts +56 -0
- package/src/sections/under-construction.ts +34 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @poadio/ui-core — calendrier (`.poad-calendar`). Source unique du style pour tous les paquets de rendu : ui-angular
|
|
3
|
+
* l'inclut dans `poad-calendar` (encapsulation désactivée), les autres rendus le font charger par l'application. CSS pur,
|
|
4
|
+
* ne lit que les jetons --poad-* (charger `tokens.css` avant).
|
|
5
|
+
*
|
|
6
|
+
* Racine `.poad-calendar` (`is-month|week|day|agenda|year`, `is-editable`, `is-dragging`) > `.cal__live`, `.cal__hint`,
|
|
7
|
+
* `.cal__corps` > `.cal__vue` > MOIS `.mois` (`.mois__jsem`, `.mois__sem` > `.mois__jour` `is-hors|is-auj|is-ferme` >
|
|
8
|
+
* `.mois__n`, `.mois__reserve`, `button.puce`, `button.plus` ; `.calque` > `button.bandeau` `is-avant|is-apres`) ;
|
|
9
|
+
* SEMAINE / JOUR `.grille` (`.grille__hd`, `.bande` > `.bande__zone` > `.bandeau`, `.heures` > `.heures__lbl`,
|
|
10
|
+
* `.heures__col` > `.trait`, `button.evt`, `.fantome`, `.maintenant`) ; AGENDA `.agenda` > `.ag__jour` > `.ag__d`,
|
|
11
|
+
* `.ag__l` > `button.ag__e` ; ANNÉE `.annee` > `.mm`. Édition : `is-editable`, `is-verrouille`, `.poignee is-haut|is-bas`.
|
|
12
|
+
* Écrit à partir des styles `:host` du composant Angular (mêmes noms de parties) ; nouveau : focus visible sur chaque
|
|
13
|
+
* événement et chaque case, région d'annonce et aide clavier.
|
|
14
|
+
*/
|
|
15
|
+
poad-calendar:not(.poad-calendar) { display: block; min-width: 0; min-height: 0; height: 100%; }
|
|
16
|
+
.poad-calendar { display: flex; flex-direction: column; position: relative; min-width: 0; min-height: 0; height: 100%; box-sizing: border-box;
|
|
17
|
+
font: var(--poad-font-size)/1.4 var(--poad-font); color: var(--poad-fg); background: var(--poad-bg); }
|
|
18
|
+
.poad-calendar *, .poad-calendar *::before, .poad-calendar *::after { box-sizing: border-box; }
|
|
19
|
+
.poad-calendar button { font: inherit; margin: 0; }
|
|
20
|
+
/* les événements sont des boutons : sans fond ni bord du navigateur (leurs règles, plus précises, posent les leurs) */
|
|
21
|
+
.poad-calendar :where(button.evt, button.bandeau, button.puce) { border: 0; background: none; padding: 0; color: inherit; text-align: start; }
|
|
22
|
+
|
|
23
|
+
.poad-calendar .cal__corps { flex: 1; min-height: 0; display: flex; }
|
|
24
|
+
.poad-calendar .cal__vue { flex: 1; min-width: 0; min-height: 0; overflow: auto; }
|
|
25
|
+
/* ---------------- MOIS ---------------- */
|
|
26
|
+
.poad-calendar .mois { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
27
|
+
grid-template-rows: auto; grid-auto-rows: minmax(84px, 1fr); min-height: 100%; }
|
|
28
|
+
/* grid-template-rows: auto pour la premiere rangee : sans elle, grid-auto-rows s'applique
|
|
29
|
+
aussi aux en-tetes de jour, qui heritent de la hauteur des cases et laissent une bande vide. */
|
|
30
|
+
.poad-calendar .mois__jsem { padding: 6px 8px; text-align: end; border-bottom: 1px solid var(--poad-border-strong);
|
|
31
|
+
background: var(--poad-bg-subtle); position: sticky; top: 0; z-index: 4;
|
|
32
|
+
font: 600 10.5px var(--poad-font-mono); letter-spacing: .06em; text-transform: uppercase;
|
|
33
|
+
color: var(--poad-fg-muted); }
|
|
34
|
+
/* La rangee de semaine est un CONTENEUR relatif : les bandeaux multi-jours sont un calque
|
|
35
|
+
par-dessus les cases, seule facon de les rendre continus d'un jour a l'autre. */
|
|
36
|
+
.poad-calendar .mois__sem { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
37
|
+
position: relative; border-bottom: 1px solid var(--poad-border); min-height: 84px; }
|
|
38
|
+
.poad-calendar .mois__jour { border-inline-end: 1px solid var(--poad-border); padding: 3px; min-width: 0;
|
|
39
|
+
display: flex; flex-direction: column; gap: 2px; }
|
|
40
|
+
.poad-calendar .mois__jour:last-child { border-inline-end: 0; }
|
|
41
|
+
.poad-calendar .mois__jour.is-hors { background: var(--poad-bg-subtle); }
|
|
42
|
+
.poad-calendar .mois__jour.is-ferme { background: var(--poad-bg-subtle); }
|
|
43
|
+
.poad-calendar .mois__n { font: 11px var(--poad-font-mono); color: var(--poad-fg-secondary); text-align: end;
|
|
44
|
+
padding: 1px 3px; font-variant-numeric: tabular-nums; flex: none; }
|
|
45
|
+
.poad-calendar .mois__jour.is-auj .mois__n { background: var(--poad-accent); color: var(--poad-fg-on-accent);
|
|
46
|
+
border-radius: var(--poad-radius-sm); font-weight: 600; }
|
|
47
|
+
.poad-calendar .mois__reserve { flex: none; }
|
|
48
|
+
.poad-calendar .calque { position: absolute; inset-inline-start: 0; inset-inline-end: 0; pointer-events: none; z-index: 2; }
|
|
49
|
+
.poad-calendar .bandeau { position: absolute; height: 17px; border-radius: var(--poad-radius-sm); padding: 0 7px;
|
|
50
|
+
font-size: 10.5px; line-height: 17px; white-space: nowrap; overflow: hidden;
|
|
51
|
+
text-overflow: ellipsis; pointer-events: auto; cursor: pointer;
|
|
52
|
+
background: color-mix(in srgb, var(--_c) 22%, transparent); color: var(--_c);
|
|
53
|
+
border: 1px solid color-mix(in srgb, var(--_c) 42%, transparent); }
|
|
54
|
+
.poad-calendar .bandeau.is-avant { border-start-start-radius: 0; border-end-start-radius: 0; border-inline-start-style: dashed; }
|
|
55
|
+
.poad-calendar .bandeau.is-apres { border-start-end-radius: 0; border-end-end-radius: 0; border-inline-end-style: dashed; }
|
|
56
|
+
.poad-calendar .puce { display: flex; align-items: center; gap: 5px; font-size: 10.5px; padding: 1px 5px;
|
|
57
|
+
border-radius: var(--poad-radius-sm); white-space: nowrap; overflow: hidden;
|
|
58
|
+
text-overflow: ellipsis; cursor: pointer; border-inline-start: 2px solid var(--_c);
|
|
59
|
+
background: color-mix(in srgb, var(--_c) 13%, transparent); color: var(--_c); }
|
|
60
|
+
.poad-calendar .puce:hover { background: color-mix(in srgb, var(--_c) 22%, transparent); }
|
|
61
|
+
.poad-calendar .puce__h { font: 9.5px var(--poad-font-mono); opacity: .85; flex: none; font-variant-numeric: tabular-nums; }
|
|
62
|
+
.poad-calendar .puce__t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
63
|
+
.poad-calendar .plus { all: unset; box-sizing: border-box; font-size: 10px; color: var(--poad-fg-muted);
|
|
64
|
+
padding: 1px 5px; cursor: pointer; border-radius: var(--poad-radius-sm); }
|
|
65
|
+
.poad-calendar .plus:hover { color: var(--poad-accent); background: var(--poad-hover); }
|
|
66
|
+
/* ---------------- SEMAINE / JOUR ---------------- */
|
|
67
|
+
.poad-calendar .grille { min-width: 0; display: flex; flex-direction: column; height: 100%; }
|
|
68
|
+
.poad-calendar .grille__hd { display: grid; position: sticky; top: 0; z-index: 5; background: var(--poad-bg-subtle);
|
|
69
|
+
border-bottom: 1px solid var(--poad-border-strong); flex: none; }
|
|
70
|
+
.poad-calendar .grille__hd > div { padding: 5px 6px; text-align: center; border-inline-end: 1px solid var(--poad-border); min-width: 0; }
|
|
71
|
+
.poad-calendar .grille__hd > div:last-child { border-inline-end: 0; }
|
|
72
|
+
.poad-calendar .grille__d { font: 10px var(--poad-font-mono); color: var(--poad-fg-muted);
|
|
73
|
+
text-transform: uppercase; letter-spacing: .06em; }
|
|
74
|
+
.poad-calendar .grille__n { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
|
|
75
|
+
.poad-calendar .is-auj .grille__n { color: var(--poad-accent); }
|
|
76
|
+
.poad-calendar .bande { display: grid; border-bottom: 1px solid var(--poad-border-strong);
|
|
77
|
+
background: var(--poad-bg-subtle); flex: none; }
|
|
78
|
+
.poad-calendar .bande__lbl { font: 9px var(--poad-font-mono); color: var(--poad-fg-muted); padding: 4px 6px;
|
|
79
|
+
text-align: end; border-inline-end: 1px solid var(--poad-border); }
|
|
80
|
+
.poad-calendar .bande__zone { grid-column: 2 / -1; position: relative; padding: 2px 0; }
|
|
81
|
+
.poad-calendar .heures { display: grid; position: relative; flex: 1; min-height: 0; overflow: auto; padding-top: 7px; }
|
|
82
|
+
/* le premier libellé d'heure remonte de 6 px pour s'aligner sur son trait : la marge du haut le garde visible */
|
|
83
|
+
.poad-calendar .heures__lbl { border-inline-end: 1px solid var(--poad-border); }
|
|
84
|
+
.poad-calendar .heures__lbl > div { font: 9.5px var(--poad-font-mono); color: var(--poad-fg-muted);
|
|
85
|
+
text-align: end; padding-inline-end: 6px; transform: translateY(-6px); }
|
|
86
|
+
.poad-calendar .heures__col { border-inline-end: 1px solid var(--poad-border); position: relative; min-width: 0; }
|
|
87
|
+
.poad-calendar .heures__col:last-child { border-inline-end: 0; }
|
|
88
|
+
.poad-calendar .heures__col.is-ferme { background: var(--poad-bg-subtle); }
|
|
89
|
+
.poad-calendar .trait { position: absolute; inset-inline-start: 0; inset-inline-end: 0; border-top: 1px solid var(--poad-border); pointer-events: none; }
|
|
90
|
+
.poad-calendar .trait.is-demi { border-top-style: dotted; opacity: .55; }
|
|
91
|
+
.poad-calendar .evt { position: absolute; border-radius: var(--poad-radius-sm); padding: 1px 5px; overflow: hidden;
|
|
92
|
+
cursor: pointer; border-inline-start: 3px solid var(--_c); font-size: 10.5px; line-height: 1.25;
|
|
93
|
+
background: color-mix(in srgb, var(--_c) 15%, transparent); color: var(--_c); }
|
|
94
|
+
.poad-calendar .evt:hover { background: color-mix(in srgb, var(--_c) 26%, transparent); }
|
|
95
|
+
.poad-calendar .evt__t { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
96
|
+
.poad-calendar .evt__h { font: 9px var(--poad-font-mono); opacity: .85; }
|
|
97
|
+
.poad-calendar .maintenant { position: absolute; inset-inline-start: 0; inset-inline-end: 0; height: 2px; background: var(--poad-danger); z-index: 4; pointer-events: none; }
|
|
98
|
+
.poad-calendar .maintenant::before { content: ''; position: absolute; inset-inline-start: -3px; top: -3px; width: 8px; height: 8px;
|
|
99
|
+
border-radius: 50%; background: var(--poad-danger); }
|
|
100
|
+
/* ---------------- AGENDA ---------------- */
|
|
101
|
+
.poad-calendar .agenda { display: flex; flex-direction: column; }
|
|
102
|
+
.poad-calendar .ag__jour { display: grid; grid-template-columns: 72px minmax(0, 1fr); border-bottom: 1px solid var(--poad-border); }
|
|
103
|
+
.poad-calendar .ag__d { padding: 9px 11px; border-inline-end: 1px solid var(--poad-border); background: var(--poad-bg-subtle); }
|
|
104
|
+
.poad-calendar .ag__d b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
|
|
105
|
+
.poad-calendar .ag__d span { display: block; font: 9.5px var(--poad-font-mono); color: var(--poad-fg-muted); text-transform: uppercase; }
|
|
106
|
+
.poad-calendar .ag__d.is-auj b { color: var(--poad-accent); }
|
|
107
|
+
.poad-calendar .ag__l { padding: 5px 0; min-width: 0; }
|
|
108
|
+
.poad-calendar .ag__e { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 9px;
|
|
109
|
+
padding: 6px 11px; cursor: pointer; width: 100%; min-height: 34px; }
|
|
110
|
+
.poad-calendar .ag__e:hover { background: var(--poad-hover); }
|
|
111
|
+
.poad-calendar .ag__e:focus-visible { outline: 2px solid var(--poad-accent); outline-offset: -2px; }
|
|
112
|
+
.poad-calendar .ag__p { width: 8px; height: 8px; border-radius: 50%; background: var(--_c); flex: none; }
|
|
113
|
+
.poad-calendar .ag__h { font: 11px var(--poad-font-mono); color: var(--poad-fg-secondary); flex: none;
|
|
114
|
+
width: 92px; font-variant-numeric: tabular-nums; }
|
|
115
|
+
.poad-calendar .ag__t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
116
|
+
.poad-calendar .ag__c { margin-inline-start: auto; font-size: 10.5px; color: var(--poad-fg-muted); flex: none; }
|
|
117
|
+
/* ---------------- ANNEE ---------------- */
|
|
118
|
+
.poad-calendar .annee { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; padding: 14px; }
|
|
119
|
+
.poad-calendar .mm { border: 1px solid var(--poad-border); border-radius: var(--poad-radius); padding: 8px; background: var(--poad-surface); }
|
|
120
|
+
.poad-calendar .mm__t { font-size: 12px; font-weight: 600; margin-bottom: 5px; text-transform: capitalize; }
|
|
121
|
+
.poad-calendar .mm__g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
|
|
122
|
+
.poad-calendar .mm__g > span, .poad-calendar .mm__g > button { all: unset; box-sizing: border-box; text-align: center;
|
|
123
|
+
font: 9.5px var(--poad-font-mono); padding: 2px 0; border-radius: 3px;
|
|
124
|
+
color: var(--poad-fg-secondary); font-variant-numeric: tabular-nums; }
|
|
125
|
+
.poad-calendar .mm__g > span { color: var(--poad-fg-muted); font-weight: 500; }
|
|
126
|
+
.poad-calendar .mm__g > button { cursor: pointer; position: relative; }
|
|
127
|
+
.poad-calendar .mm__g > button:hover { background: var(--poad-hover); }
|
|
128
|
+
.poad-calendar .mm__g > button.is-hors { opacity: .35; }
|
|
129
|
+
.poad-calendar .mm__g > button.is-auj { background: var(--poad-accent); color: var(--poad-fg-on-accent); font-weight: 600; }
|
|
130
|
+
.poad-calendar .mm__pt { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
|
|
131
|
+
width: 3px; height: 3px; border-radius: 50%; background: var(--poad-accent); }
|
|
132
|
+
.poad-calendar .mm__g > button.is-auj .mm__pt { background: var(--poad-fg-on-accent); }
|
|
133
|
+
/* ---------------- EDITION ---------------- */
|
|
134
|
+
/* Les poignees n'existent que si l'edition est active ET l'evenement manipulable : une
|
|
135
|
+
poignee qui ne repond pas est pire que pas de poignee. */
|
|
136
|
+
.poad-calendar .evt.is-editable, .poad-calendar .bandeau.is-editable, .poad-calendar .puce.is-editable { cursor: grab; }
|
|
137
|
+
.poad-calendar .evt.is-editable:active, .poad-calendar .bandeau.is-editable:active, .poad-calendar .puce.is-editable:active { cursor: grabbing; }
|
|
138
|
+
.poad-calendar .poignee { position: absolute; z-index: 2; }
|
|
139
|
+
.poad-calendar .evt .poignee { inset-inline-start: 0; inset-inline-end: 0; height: 6px; cursor: ns-resize; }
|
|
140
|
+
.poad-calendar .evt .poignee.is-haut { top: 0; }
|
|
141
|
+
.poad-calendar .evt .poignee.is-bas { bottom: 0; }
|
|
142
|
+
.poad-calendar .bandeau .poignee { top: 0; bottom: 0; width: 6px; cursor: ew-resize; }
|
|
143
|
+
.poad-calendar .bandeau .poignee.is-haut { inset-inline-start: 0; }
|
|
144
|
+
.poad-calendar .bandeau .poignee.is-bas { inset-inline-end: 0; }
|
|
145
|
+
.poad-calendar .poignee::after { content: ''; position: absolute; inset: 0; }
|
|
146
|
+
/* Une occurrence de SERIE n'est pas manipulable tant que l'edition de recurrence n'existe
|
|
147
|
+
pas : bouger une occurrence sans savoir si l'on modifie l'occurrence, la suite ou toute la
|
|
148
|
+
serie perdrait la modification en silence. On le MONTRE au lieu de laisser essayer. */
|
|
149
|
+
.poad-calendar .evt.is-verrouille, .poad-calendar .bandeau.is-verrouille, .poad-calendar .puce.is-verrouille { cursor: not-allowed; position: relative; }
|
|
150
|
+
.poad-calendar .evt.is-verrouille::after, .poad-calendar .bandeau.is-verrouille::after, .poad-calendar .puce.is-verrouille::after {
|
|
151
|
+
content: ''; position: absolute; inset: 0; pointer-events: none;
|
|
152
|
+
background: repeating-linear-gradient(-45deg, currentColor 0 1px, transparent 1px 5px); opacity: .18; }
|
|
153
|
+
/* Fantome du geste en cours : il montre ou l'on va tomber, apres aimantage. */
|
|
154
|
+
.poad-calendar .fantome { position: absolute; z-index: 6; pointer-events: none; border-radius: var(--poad-radius-sm);
|
|
155
|
+
background: var(--poad-accent-soft); border: 1px dashed var(--poad-accent);
|
|
156
|
+
color: var(--poad-accent); font: 10.5px var(--poad-font-mono); padding: 1px 5px;
|
|
157
|
+
overflow: hidden; white-space: nowrap; }
|
|
158
|
+
/* ---------------- vide ---------------- */
|
|
159
|
+
.poad-calendar .vide { padding: 28px 16px; color: var(--poad-fg-muted); text-align: center; }
|
|
160
|
+
|
|
161
|
+
/* ---------------- focus, annonce, glisser ---------------- */
|
|
162
|
+
.poad-calendar .evt:focus-visible, .poad-calendar .bandeau:focus-visible, .poad-calendar .puce:focus-visible, .poad-calendar .plus:focus-visible,
|
|
163
|
+
.poad-calendar .mm__g > button:focus-visible { outline: 2px solid var(--poad-ring); outline-offset: 1px; z-index: 7; }
|
|
164
|
+
.poad-calendar.is-dragging, .poad-calendar.is-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
|
|
165
|
+
.poad-calendar .evt.is-editable, .poad-calendar .bandeau.is-editable, .poad-calendar .puce.is-editable, .poad-calendar.is-editable .heures__col { touch-action: none; }
|
|
166
|
+
.poad-calendar .cal__live, .poad-calendar .cal__hint { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
|
|
167
|
+
|
|
168
|
+
@media (prefers-reduced-motion: reduce) { .poad-calendar * { transition: none !important; } }
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @poadio/ui-core — carte (`.poad-card`). Source unique du style pour tous les paquets de rendu : ui-angular l'inclut
|
|
3
|
+
* dans `poad-card` (encapsulation désactivée), les autres rendus le font charger par l'application. CSS pur, ne lit
|
|
4
|
+
* que les jetons --poad-* (charger `tokens.css` avant).
|
|
5
|
+
*
|
|
6
|
+
* Classes de la racine (`cardClasses()`) : `is-hoverable`, `is-flat`, `is-compact` ; propriété `--_pad` (marge
|
|
7
|
+
* intérieure, `padding` de l'application). Parties : `.poad-card__head` > `.poad-card__titles` (`.poad-card__title`,
|
|
8
|
+
* `.poad-card__sub`) + `.poad-card__actions` (vide : masqué) ; `.poad-card__body` ; `.poad-card__foot` (vide : masqué).
|
|
9
|
+
* Écrit à partir des styles `:host` du composant Angular, une règle pour une règle : `:host(X)` → `.poad-card X`,
|
|
10
|
+
* une partie → `.poad-card .partie` ; propriétés logiques sur l'axe en ligne (droite à gauche).
|
|
11
|
+
*/
|
|
12
|
+
.poad-card { --_pad: 16px; display: flex; flex-direction: column; background: var(--poad-surface); border: 1px solid var(--poad-border); border-radius: var(--poad-radius-lg); box-shadow: var(--poad-shadow-sm);
|
|
13
|
+
font-family: var(--poad-font); font-size: var(--poad-font-size); color: var(--poad-fg); overflow: hidden; transition: box-shadow var(--poad-dur), border-color var(--poad-dur); }
|
|
14
|
+
.poad-card.is-compact { --_pad: 10px; }
|
|
15
|
+
.poad-card.is-flat { box-shadow: none; }
|
|
16
|
+
.poad-card.is-hoverable:hover { box-shadow: var(--poad-shadow-md); border-color: var(--poad-border-strong); }
|
|
17
|
+
.poad-card .poad-card__head { display: flex; align-items: flex-start; gap: 10px; padding-block: var(--_pad) 0; padding-inline: var(--_pad); }
|
|
18
|
+
.poad-card .poad-card__titles { flex: 1; min-width: 0; }
|
|
19
|
+
.poad-card .poad-card__title { font-size: 14px; font-weight: 600; line-height: 1.3; }
|
|
20
|
+
.poad-card .poad-card__sub { font-size: var(--poad-font-size-sm); color: var(--poad-fg-secondary); margin-top: 2px; }
|
|
21
|
+
.poad-card .poad-card__actions { display: flex; gap: 4px; flex: none; }
|
|
22
|
+
.poad-card .poad-card__actions:empty { display: none; }
|
|
23
|
+
.poad-card .poad-card__body { padding: var(--_pad); flex: 1; }
|
|
24
|
+
.poad-card .poad-card__head + .poad-card__body { padding-top: 10px; }
|
|
25
|
+
.poad-card .poad-card__foot { padding: 10px var(--_pad); background: var(--poad-bg-subtle); border-top: 1px solid var(--poad-border); }
|
|
26
|
+
.poad-card .poad-card__foot:empty, .poad-card .poad-card__foot:not(:has(*)) { display: none; }
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @poadio/ui-core — carrousel (`.poad-carousel`). Source unique du style pour tous les paquets de rendu : ui-angular
|
|
3
|
+
* l'inclut dans `poad-carousel` (encapsulation désactivée), les autres rendus le font charger par l'application. CSS
|
|
4
|
+
* pur, ne lit que les jetons --poad-* (charger `tokens.css` avant ; flèches : `icon.css`).
|
|
5
|
+
*
|
|
6
|
+
* Classes de la racine (`carouselClasses()`) : `is-vertical` ; `--poad-carousel-h` hauteur de la vue verticale.
|
|
7
|
+
* Parties : `.poad-carousel__wrap` > `button.poad-carousel__nav.prev|next`, `.poad-carousel__view` >
|
|
8
|
+
* `.poad-carousel__track` (translation posée par le rendu, `--_n` éléments visibles) > `.poad-carousel__item` ;
|
|
9
|
+
* `.poad-carousel__foot` > `.poad-carousel__play` (rotation automatique) + `.poad-carousel__dots` > `button`
|
|
10
|
+
* (`is-on`). Défilement sans animation sous `prefers-reduced-motion`.
|
|
11
|
+
* Écrit à partir des styles `:host` du composant Angular, une règle pour une règle (anciens noms : `cr__wrap`,
|
|
12
|
+
* `cr__nav`, `cr__view`, `cr__track`, `cr__item`, `cr__dots`) ; propriétés logiques sur l'axe en ligne.
|
|
13
|
+
*/
|
|
14
|
+
.poad-carousel { display: block; outline: none; font-family: var(--poad-font); }
|
|
15
|
+
.poad-carousel:focus-visible .poad-carousel__view { outline: 2px solid var(--poad-ring); outline-offset: 2px; border-radius: 8px; }
|
|
16
|
+
.poad-carousel .poad-carousel__wrap { display: flex; align-items: center; gap: 8px; }
|
|
17
|
+
.poad-carousel.is-vertical .poad-carousel__wrap { flex-direction: column; }
|
|
18
|
+
.poad-carousel .poad-carousel__view { flex: 1; min-width: 0; overflow: hidden; touch-action: pan-y; }
|
|
19
|
+
.poad-carousel.is-vertical .poad-carousel__view { width: 100%; height: var(--poad-carousel-h, 320px); touch-action: pan-x; }
|
|
20
|
+
.poad-carousel .poad-carousel__track { display: flex; transition: transform 320ms var(--poad-ease); will-change: transform; }
|
|
21
|
+
.poad-carousel.is-vertical .poad-carousel__track { flex-direction: column; }
|
|
22
|
+
.poad-carousel .poad-carousel__item { flex: 0 0 calc(100% / var(--_n, 1)); min-width: 0; box-sizing: border-box; padding: 0 6px; }
|
|
23
|
+
.poad-carousel.is-vertical .poad-carousel__item { flex-basis: calc(var(--poad-carousel-h, 320px) / var(--_n, 1)); padding: 6px 0; }
|
|
24
|
+
.poad-carousel .poad-carousel__nav, .poad-carousel .poad-carousel__play { width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid var(--poad-border); background: var(--poad-surface); color: var(--poad-fg-secondary); display: grid; place-items: center; cursor: pointer; flex: none; box-shadow: var(--poad-shadow-sm); }
|
|
25
|
+
.poad-carousel .poad-carousel__nav:hover:not([disabled]), .poad-carousel .poad-carousel__play:hover { color: var(--poad-fg); border-color: var(--poad-border-strong); }
|
|
26
|
+
.poad-carousel .poad-carousel__nav[disabled] { opacity: .35; cursor: default; }
|
|
27
|
+
.poad-carousel .poad-carousel__nav:focus-visible, .poad-carousel .poad-carousel__play:focus-visible { outline: 2px solid var(--poad-ring); }
|
|
28
|
+
.poad-carousel .poad-carousel__play { width: 26px; height: 26px; box-shadow: none; }
|
|
29
|
+
.poad-carousel .poad-carousel__foot { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
|
|
30
|
+
.poad-carousel .poad-carousel__foot:empty { display: none; }
|
|
31
|
+
.poad-carousel .poad-carousel__dots { display: flex; justify-content: center; gap: 6px; }
|
|
32
|
+
.poad-carousel .poad-carousel__dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: var(--poad-border-strong); cursor: pointer; transition: width var(--poad-dur), background var(--poad-dur); }
|
|
33
|
+
.poad-carousel .poad-carousel__dots button.is-on { width: 20px; background: var(--poad-accent); }
|
|
34
|
+
.poad-carousel .poad-carousel__dots button:focus-visible { outline: 2px solid var(--poad-ring); outline-offset: 2px; }
|
|
35
|
+
@media (prefers-reduced-motion: reduce) { .poad-carousel .poad-carousel__track, .poad-carousel .poad-carousel__dots button { transition: none; } }
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Graphique (poad-chart) — même DOM sur tous les rendus :
|
|
3
|
+
* `.poad-chart` (`show-table|is-loading|is-error`, `--poad-chart-h`) > `.poad-chart__box` > `canvas` (role img) +
|
|
4
|
+
* `.poad-chart__state` (chargement, erreur) ; `.poad-chart__toggle` (bouton « Afficher les données », facultatif) ;
|
|
5
|
+
* `table.poad-chart__table` — l'alternative accessible : TOUJOURS dans le DOM, masquée visuellement sauf `show-table`.
|
|
6
|
+
*/
|
|
7
|
+
.poad-chart { display: block; font-family: var(--poad-font); color: var(--poad-fg); }
|
|
8
|
+
.poad-chart__box { position: relative; width: 100%; height: var(--poad-chart-h, 280px); }
|
|
9
|
+
.poad-chart__box canvas { display: block; width: 100% !important; height: 100% !important; }
|
|
10
|
+
.poad-chart__state { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; }
|
|
11
|
+
.poad-chart.show-table .poad-chart__box { display: none; }
|
|
12
|
+
.poad-chart__bar { display: flex; justify-content: flex-end; margin-block-start: 6px; }
|
|
13
|
+
.poad-chart__toggle { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 10px;
|
|
14
|
+
border-radius: var(--poad-radius-sm, 6px); font: inherit; font-size: 12px; color: var(--poad-accent); cursor: pointer; }
|
|
15
|
+
.poad-chart__toggle:hover { background: var(--poad-hover); }
|
|
16
|
+
.poad-chart__toggle:focus-visible { outline: 2px solid var(--poad-ring, var(--poad-accent)); outline-offset: 2px; }
|
|
17
|
+
.poad-chart__table { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
18
|
+
/* Masquée, la table garde sa largeur (une table s'élargit à son contenu, `overflow` ne la rogne pas) : c'est sa boîte
|
|
19
|
+
qui est masquée, pour qu'elle n'élargisse jamais la page (défilement horizontal à 390 px). */
|
|
20
|
+
.poad-chart:not(.show-table) .poad-chart__wrap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
21
|
+
.poad-chart.show-table .poad-chart__wrap { overflow-x: auto; }
|
|
22
|
+
.poad-chart.show-table .poad-chart__table { position: static; width: 100%; height: auto; clip-path: none; white-space: normal; margin-block-start: 8px;
|
|
23
|
+
border-collapse: collapse; font-size: 12px; }
|
|
24
|
+
.poad-chart.show-table .poad-chart__table caption { text-align: start; font-weight: 600; padding-block-end: 6px; }
|
|
25
|
+
.poad-chart.show-table .poad-chart__table th, .poad-chart.show-table .poad-chart__table td { border: 1px solid var(--poad-border); padding: 4px 8px; text-align: end; }
|
|
26
|
+
.poad-chart.show-table .poad-chart__table th { background: var(--poad-bg-subtle); text-align: start; font-weight: 600; }
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @poadio/ui-core — case à cocher (`.poad-checkbox`). Source unique du style pour tous les paquets de rendu :
|
|
3
|
+
* ui-angular l'inclut dans `poad-checkbox` (encapsulation désactivée), ui-react le fait charger par l'application.
|
|
4
|
+
* CSS pur, ne lit que les jetons --poad-* (charger `tokens.css` avant ; la coche : `icon.css`).
|
|
5
|
+
*
|
|
6
|
+
* Racine `.poad-checkbox` (`is-on`, `is-ind`, `is-disabled`, `is-invalid` de `checkboxRootClasses()`) >
|
|
7
|
+
* `<button role="checkbox">` > `.poad-checkbox__box` > `.poad-checkbox__dash` ou coche `.poad-icon` ;
|
|
8
|
+
* `<label class="poad-checkbox__label">`.
|
|
9
|
+
* Écrit à partir des styles `:host` du composant Angular, une règle pour une règle (comme `switch.css`) : le `button`
|
|
10
|
+
* du gabarit → `.poad-checkbox > button:where([role="checkbox"])`, même spécificité, sans viser un bouton de
|
|
11
|
+
* l'application posé dans le composant ; `:host-context(.poad-touch)` → `.poad-touch.poad-checkbox …, .poad-touch .poad-checkbox …`.
|
|
12
|
+
*/
|
|
13
|
+
.poad-checkbox { display: inline-flex; align-items: center; gap: 8px; font-family: var(--poad-font); font-size: var(--poad-font-size); color: var(--poad-fg); vertical-align: middle; }
|
|
14
|
+
.poad-checkbox > button:where([role="checkbox"]) { all: unset; display: inline-flex; cursor: pointer; border-radius: 4px; }
|
|
15
|
+
/* densité tactile : zone cliquable ≥ 44 px, visuel inchangé */
|
|
16
|
+
.poad-touch.poad-checkbox > button:where([role="checkbox"]), .poad-touch .poad-checkbox > button:where([role="checkbox"]) { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; margin: -12px; padding: 12px; box-sizing: border-box; }
|
|
17
|
+
.poad-checkbox > button:where([role="checkbox"]):focus-visible { outline: 2px solid var(--poad-ring); outline-offset: 2px; }
|
|
18
|
+
.poad-checkbox > button:where([role="checkbox"])[disabled] { cursor: not-allowed; }
|
|
19
|
+
.poad-checkbox.is-disabled { opacity: .55; }
|
|
20
|
+
.poad-checkbox .poad-checkbox__box { width: 16px; height: 16px; box-sizing: border-box; border: 1.5px solid var(--poad-border-strong); border-radius: 4px; background: var(--poad-input-bg); display: grid; place-items: center; color: var(--poad-fg-on-accent); transition: background var(--poad-dur), border-color var(--poad-dur); }
|
|
21
|
+
.poad-checkbox.is-on .poad-checkbox__box, .poad-checkbox.is-ind .poad-checkbox__box { background: var(--poad-accent); border-color: var(--poad-accent); }
|
|
22
|
+
.poad-checkbox.is-invalid .poad-checkbox__box { border-color: var(--poad-danger); }
|
|
23
|
+
.poad-checkbox .poad-checkbox__dash { width: 8px; height: 2px; background: currentColor; border-radius: 1px; }
|
|
24
|
+
.poad-checkbox .poad-checkbox__label { cursor: pointer; user-select: none; }
|
|
25
|
+
.poad-checkbox:hover:not(.is-disabled) .poad-checkbox__box { border-color: var(--poad-accent); }
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @poadio/ui-core — puce (`.poad-chip`). Source unique du style pour tous les paquets de rendu : ui-angular l'inclut
|
|
3
|
+
* dans `poad-chip` (encapsulation désactivée), ui-react le fait charger par l'application. CSS pur, ne lit que les
|
|
4
|
+
* jetons --poad-* (charger `tokens.css` avant ; avec un avatar, `avatar.css`).
|
|
5
|
+
*
|
|
6
|
+
* Classes de la racine (`chipClasses()`) : `sev-<sévérité>`, `size-sm`, `is-selected`, `is-disabled`,
|
|
7
|
+
* `is-clickable`. Parties : avatar `.poad-chip__avatar`, icône `.poad-icon`, `.poad-chip__label`, bouton de retrait
|
|
8
|
+
* `.poad-chip__rm`.
|
|
9
|
+
* Écrit à partir des styles `:host` du composant Angular, une règle pour une règle : `:host(X)` → `.poad-chip X`,
|
|
10
|
+
* une partie `.p` → `.poad-chip .p`.
|
|
11
|
+
*/
|
|
12
|
+
.poad-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--poad-radius-pill); background: var(--poad-elevated); color: var(--poad-fg);
|
|
13
|
+
font: 500 var(--poad-font-size-sm) var(--poad-font); white-space: nowrap; vertical-align: middle; box-sizing: border-box; transition: background var(--poad-dur), box-shadow var(--poad-dur); }
|
|
14
|
+
.poad-chip.size-sm { height: 20px; padding: 0 8px; font-size: 11px; gap: 4px; }
|
|
15
|
+
.poad-chip:has(.poad-chip__avatar) { padding-inline-start: 4px; }
|
|
16
|
+
.poad-chip:has(.poad-chip__rm) { padding-inline-end: 6px; }
|
|
17
|
+
.poad-chip.is-clickable { cursor: pointer; }
|
|
18
|
+
.poad-chip.is-clickable:hover:not(.is-disabled) { background: var(--poad-border-strong); }
|
|
19
|
+
.poad-chip.is-selected { background: var(--poad-accent-soft); color: var(--poad-accent); }
|
|
20
|
+
.poad-chip.is-disabled { opacity: .55; cursor: not-allowed; }
|
|
21
|
+
.poad-chip:focus-visible { outline: 2px solid var(--poad-ring); outline-offset: 1px; }
|
|
22
|
+
.poad-chip.sev-success { background: var(--poad-success-soft); color: var(--poad-success); }
|
|
23
|
+
.poad-chip.sev-warning { background: var(--poad-warning-soft); color: var(--poad-warning); }
|
|
24
|
+
.poad-chip.sev-danger { background: var(--poad-danger-soft); color: var(--poad-danger); }
|
|
25
|
+
.poad-chip.sev-info { background: var(--poad-info-soft); color: var(--poad-info); }
|
|
26
|
+
.poad-chip.sev-primary { background: var(--poad-accent-soft); color: var(--poad-accent); }
|
|
27
|
+
.poad-chip .poad-chip__avatar { width: 16px; height: 16px; font-size: 8px; }
|
|
28
|
+
.poad-chip .poad-chip__rm { all: unset; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: var(--poad-fg-muted); cursor: pointer; }
|
|
29
|
+
.poad-chip .poad-chip__rm:hover { color: var(--poad-fg); background: rgba(0,0,0,.08); }
|
|
30
|
+
.poad-chip.is-selected .poad-chip__rm { color: inherit; }
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Éditeur de code (poad-code-editor, Monaco) — même DOM sur tous les rendus :
|
|
3
|
+
* `.poad-code-editor` (`is-fullscreen|is-invalid|is-readonly`, `--poad-ce-h`) > `.poad-code-editor__bar` (langage,
|
|
4
|
+
* curseur, boutons) + `.poad-code-editor__box` > `.poad-code-editor__host` (Monaco) + `.poad-code-editor__state`
|
|
5
|
+
* (chargement, échec) ; `.poad-code-editor__hint` : consigne clavier, masquée visuellement.
|
|
6
|
+
*/
|
|
7
|
+
.poad-code-editor { display: flex; flex-direction: column; flex: 1 1 auto; width: 100%; min-width: 0; min-height: 0; box-sizing: border-box;
|
|
8
|
+
border: 1px solid var(--poad-input-border); border-radius: var(--poad-radius); background: var(--poad-input-bg); font-family: var(--poad-font); overflow: hidden; }
|
|
9
|
+
.poad-code-editor:focus-within { border-color: var(--poad-accent); box-shadow: 0 0 0 3px var(--poad-ring); }
|
|
10
|
+
.poad-code-editor.is-invalid { border-color: var(--poad-danger); }
|
|
11
|
+
.poad-code-editor.is-invalid:focus-within { box-shadow: 0 0 0 3px var(--poad-danger-soft); }
|
|
12
|
+
.poad-code-editor.is-fullscreen { position: fixed; inset: 16px; width: auto; z-index: var(--poad-z-overlay); box-shadow: var(--poad-shadow-lg); }
|
|
13
|
+
.poad-code-editor__bar { display: flex; align-items: center; gap: 2px; min-width: 0; padding: 4px 6px 4px 10px; border-bottom: 1px solid var(--poad-border); background: var(--poad-bg-subtle); }
|
|
14
|
+
.poad-code-editor__lang { font: 500 11.5px var(--poad-font-mono); color: var(--poad-fg); white-space: nowrap; }
|
|
15
|
+
.poad-code-editor__status { font: 11.5px var(--poad-font-mono); color: var(--poad-fg-muted); margin-inline-start: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
|
|
16
|
+
.poad-code-editor__grow { flex: 1; min-width: 8px; }
|
|
17
|
+
.poad-code-editor__box { position: relative; height: var(--poad-ce-h, 280px); min-height: 80px; }
|
|
18
|
+
.poad-code-editor.is-fullscreen .poad-code-editor__box { flex: 1; height: auto; }
|
|
19
|
+
.poad-code-editor__host { position: absolute; inset: 0; }
|
|
20
|
+
.poad-code-editor__host.is-hidden { visibility: hidden; }
|
|
21
|
+
.poad-code-editor__state { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 16px; text-align: center;
|
|
22
|
+
color: var(--poad-fg-secondary); font-size: var(--poad-font-size); }
|
|
23
|
+
.poad-code-editor__state.is-error b { color: var(--poad-fg); font-weight: 600; }
|
|
24
|
+
.poad-code-editor__state.is-error span { max-width: 56ch; font-size: var(--poad-font-size-sm); overflow-wrap: anywhere; }
|
|
25
|
+
.poad-code-editor__hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @poadio/ui-core — sélecteur de couleur (`.poad-colorpicker`). Source unique du style pour tous les paquets de rendu :
|
|
3
|
+
* ui-angular l'inclut dans `poad-colorpicker` (encapsulation désactivée), ui-react le fait charger par l'application.
|
|
4
|
+
* CSS pur, ne lit que les jetons --poad-* (charger `tokens.css` avant).
|
|
5
|
+
*
|
|
6
|
+
* Racine `.poad-colorpicker` (`is-open`, `is-disabled`, `is-invalid`, `is-inline`, `size-sm|lg` de
|
|
7
|
+
* `colorpickerRootClasses()`) > déclencheur `.cp-trigger` > `.cp-swatch` > `<i>`, `.cp-val` (`is-ph`), `.cp-clear`?,
|
|
8
|
+
* `.cp-chev`. Panneau `.poad-colorpicker-panel.cp-panel` (`is-inline` dans la racine ; sinon dans la couche flottante,
|
|
9
|
+
* HORS de la racine — d'où sa propre classe racine) > `.cp-sv` > `.cp-sv__thumb` ; `.cp-bars` > `.cp-eye`,
|
|
10
|
+
* `.cp-sliders` > `.cp-bar.cp-bar--hue|--alpha` > `.cp-bar__grad`?, `.cp-bar__thumb` ; `.cp-fields` > `label` > `span`,
|
|
11
|
+
* `input` ; `.cp-presets` > `button`* (`is-on`). Écrit à partir des styles `:host` du composant Angular, une règle
|
|
12
|
+
* pour une règle : `:host(X)` → `.poad-colorpicker X`, règles du panneau sous `.poad-colorpicker-panel`.
|
|
13
|
+
*/
|
|
14
|
+
.poad-colorpicker { display: inline-flex; width: 100%; font-family: var(--poad-font); font-size: var(--poad-font-size); color: var(--poad-fg); }
|
|
15
|
+
.poad-colorpicker.is-inline { width: auto; }
|
|
16
|
+
.poad-colorpicker .cp-trigger { display: flex; align-items: center; gap: 8px; width: 100%; height: var(--poad-control-h); padding: 0 8px 0 8px; box-sizing: border-box; background: var(--poad-input-bg); border: 1px solid var(--poad-input-border); border-radius: var(--poad-radius); cursor: pointer; color: inherit; font: inherit; text-align: start; transition: border-color var(--poad-dur), box-shadow var(--poad-dur); }
|
|
17
|
+
.poad-colorpicker.size-sm .cp-trigger { height: var(--poad-control-h-sm); font-size: var(--poad-font-size-sm); } .poad-colorpicker.size-lg .cp-trigger { height: var(--poad-control-h-lg); }
|
|
18
|
+
.poad-colorpicker .cp-trigger:focus-visible, .poad-colorpicker.is-open .cp-trigger { border-color: var(--poad-accent); box-shadow: 0 0 0 3px var(--poad-ring); outline: none; }
|
|
19
|
+
.poad-colorpicker.is-invalid .cp-trigger { border-color: var(--poad-danger); } .poad-colorpicker.is-disabled .cp-trigger { opacity: .6; cursor: not-allowed; background: var(--poad-bg-subtle); }
|
|
20
|
+
.poad-colorpicker .cp-swatch { position: relative; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--poad-border-strong); flex: none; overflow: hidden; background-image: repeating-conic-gradient(var(--poad-elevated) 0 25%, transparent 0 50%); background-size: 8px 8px; }
|
|
21
|
+
.poad-colorpicker .cp-swatch i { position: absolute; inset: 0; background: inherit; }
|
|
22
|
+
.poad-colorpicker .cp-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--poad-font-mono); font-size: var(--poad-font-size-sm); } .poad-colorpicker .cp-val.is-ph { color: var(--poad-fg-muted); font-family: var(--poad-font); }
|
|
23
|
+
.poad-colorpicker .cp-clear { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; color: var(--poad-fg-muted); } .poad-colorpicker .cp-clear:hover { background: var(--poad-hover); color: var(--poad-fg); }
|
|
24
|
+
.poad-colorpicker .cp-chev { color: var(--poad-fg-muted); transition: transform var(--poad-dur); } .poad-colorpicker.is-open .cp-chev { transform: rotate(180deg); }
|
|
25
|
+
.poad-colorpicker-panel { width: 260px; padding: 10px; box-sizing: border-box; background: var(--poad-overlay); --poad-hover: var(--poad-overlay-hover); border: 1px solid var(--poad-border); border-radius: 10px; box-shadow: var(--poad-shadow-lg); display: grid; gap: 10px; }
|
|
26
|
+
.poad-colorpicker-panel.is-inline { box-shadow: none; }
|
|
27
|
+
.poad-colorpicker-panel .cp-sv { position: relative; height: 150px; border-radius: 8px; cursor: crosshair; touch-action: none; background-image: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent); }
|
|
28
|
+
.poad-colorpicker-panel .cp-sv:focus-visible { outline: 2px solid var(--poad-ring); outline-offset: 2px; }
|
|
29
|
+
.poad-colorpicker-panel .cp-sv__thumb { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.4); pointer-events: none; }
|
|
30
|
+
.poad-colorpicker-panel .cp-bars { display: flex; gap: 8px; align-items: center; }
|
|
31
|
+
.poad-colorpicker-panel .cp-eye { all: unset; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--poad-border); color: var(--poad-fg-secondary); cursor: pointer; } .poad-colorpicker-panel .cp-eye:hover { background: var(--poad-hover); }
|
|
32
|
+
.poad-colorpicker-panel .cp-sliders { flex: 1; display: grid; gap: 8px; }
|
|
33
|
+
.poad-colorpicker-panel .cp-bar { position: relative; height: 12px; border-radius: 6px; cursor: pointer; touch-action: none; }
|
|
34
|
+
.poad-colorpicker-panel .cp-bar:focus-visible { outline: 2px solid var(--poad-ring); outline-offset: 2px; }
|
|
35
|
+
.poad-colorpicker-panel .cp-bar--hue { background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
|
|
36
|
+
.poad-colorpicker-panel .cp-bar--alpha { background-image: repeating-conic-gradient(var(--poad-elevated) 0 25%, transparent 0 50%); background-size: 8px 8px; }
|
|
37
|
+
.poad-colorpicker-panel .cp-bar__grad { position: absolute; inset: 0; border-radius: 6px; }
|
|
38
|
+
.poad-colorpicker-panel .cp-bar__thumb { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); pointer-events: none; }
|
|
39
|
+
.poad-colorpicker-panel .cp-fields { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 6px; }
|
|
40
|
+
.poad-colorpicker-panel .cp-fields label { display: grid; gap: 2px; font: 600 9.5px var(--poad-font-mono); color: var(--poad-fg-muted); text-transform: uppercase; }
|
|
41
|
+
.poad-colorpicker-panel .cp-fields input { width: 100%; box-sizing: border-box; height: 26px; padding: 0 6px; border: 1px solid var(--poad-input-border); border-radius: 5px; background: var(--poad-input-bg); color: var(--poad-fg); font: 11.5px var(--poad-font-mono); outline: none; }
|
|
42
|
+
.poad-colorpicker-panel .cp-fields input:focus { border-color: var(--poad-accent); box-shadow: 0 0 0 2px var(--poad-ring); }
|
|
43
|
+
.poad-colorpicker-panel .cp-fields input[type=number] { -moz-appearance: textfield; } .poad-colorpicker-panel .cp-fields input::-webkit-outer-spin-button, .poad-colorpicker-panel .cp-fields input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
|
|
44
|
+
.poad-colorpicker-panel .cp-presets { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
|
|
45
|
+
.poad-colorpicker-panel .cp-presets button { aspect-ratio: 1; border-radius: 6px; border: 1px solid var(--poad-border-strong); cursor: pointer; padding: 0; }
|
|
46
|
+
.poad-colorpicker-panel .cp-presets button:hover { transform: scale(1.1); } .poad-colorpicker-panel .cp-presets button.is-on { outline: 2px solid var(--poad-accent); outline-offset: 1px; }
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @poadio/ui-core — saisie avec suggestions (`.poad-combo`). Source unique du style pour tous les paquets de rendu :
|
|
3
|
+
* ui-angular l'inclut dans `poad-combo` (encapsulation désactivée), les autres rendus le font charger par
|
|
4
|
+
* l'application. Ne lit que les jetons --poad-* (icônes : `icon.css` ; flottant : `floating.css`).
|
|
5
|
+
*
|
|
6
|
+
* Anatomie : racine `.poad-combo` (`is-open`, `is-disabled`, `is-invalid`, `size-sm|lg` de `comboRootClasses()`) >
|
|
7
|
+
* `.st` (`st--multi`) > puces `.st__chips` / `.st__chip`, champ `input.st__input` (`role="combobox"`), `.st__spin`,
|
|
8
|
+
* `.st__clear`, `.st__dd` (`.st__chev`). Couche du panneau `.poad-combo-pane` (pane de l'overlay du CDK en Angular,
|
|
9
|
+
* `.poad-floating` ailleurs) > `.sp` > `ul.cb__list` (`role="listbox"`) > `li[role="option"]` (`is-active`, `is-on`)
|
|
10
|
+
* ou `li.sp__empty`.
|
|
11
|
+
* Écrit à partir des styles `:host` du composant Angular (déclencheur commun des sélecteurs, `POAD_SELECT_TRIGGER_STYLES`,
|
|
12
|
+
* et les siens), une règle pour une règle : `:host(X)` → `.poad-combo X`, une partie du champ → `.poad-combo .partie`,
|
|
13
|
+
* une partie du panneau → `.poad-combo-pane .partie` (la couche porte cette classe : mêmes spécificités qu'encapsulé).
|
|
14
|
+
*/
|
|
15
|
+
.poad-combo { display: inline-flex; width: 100%; box-sizing: border-box; font-family: var(--poad-font); font-size: var(--poad-font-size); color: var(--poad-fg); vertical-align: middle; }
|
|
16
|
+
.poad-combo .st { display: flex; align-items: center; gap: 6px; width: 100%; box-sizing: border-box; min-height: var(--poad-control-h); padding-block: 0; padding-inline: var(--poad-control-px) 8px; background: var(--poad-input-bg); border: 1px solid var(--poad-input-border); border-radius: var(--poad-radius); cursor: pointer; outline: none; user-select: none; transition: border-color var(--poad-dur) var(--poad-ease), box-shadow var(--poad-dur) var(--poad-ease); }
|
|
17
|
+
.poad-combo.size-sm .st { min-height: var(--poad-control-h-sm); font-size: var(--poad-font-size-sm); border-radius: var(--poad-radius-sm); }
|
|
18
|
+
.poad-combo.size-lg .st { min-height: var(--poad-control-h-lg); font-size: var(--poad-font-size-lg); }
|
|
19
|
+
.poad-combo .st:focus-visible, .poad-combo .st:focus-within, .poad-combo.is-open .st { border-color: var(--poad-accent); box-shadow: 0 0 0 3px var(--poad-ring); }
|
|
20
|
+
.poad-combo.is-invalid .st { border-color: var(--poad-danger); }
|
|
21
|
+
.poad-combo.is-invalid.is-open .st, .poad-combo.is-invalid .st:focus-within { box-shadow: 0 0 0 3px var(--poad-danger-soft); }
|
|
22
|
+
.poad-combo.is-disabled .st { opacity: .6; cursor: not-allowed; background: var(--poad-bg-subtle); }
|
|
23
|
+
.poad-combo .st__val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
|
|
24
|
+
.poad-combo .st__val.is-ph { color: var(--poad-fg-muted); }
|
|
25
|
+
.poad-combo .st__chips { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px; padding: 3px 0; }
|
|
26
|
+
.poad-combo .st__chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding-block: 0; padding-inline: 8px 6px; border-radius: 999px; background: var(--poad-accent-soft); color: var(--poad-accent); font-size: var(--poad-font-size-sm); font-weight: 500; }
|
|
27
|
+
.poad-combo .st__chip button { all: unset; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; cursor: pointer; }
|
|
28
|
+
.poad-combo .st__chip button:hover { background: rgba(0,0,0,.08); }
|
|
29
|
+
.poad-combo .st__input { flex: 1; min-width: 40px; border: 0; outline: 0; background: transparent; color: var(--poad-fg); font: inherit; padding: 0; height: calc(var(--poad-control-h) - 2px); }
|
|
30
|
+
.poad-combo .st__input::placeholder { color: var(--poad-fg-muted); }
|
|
31
|
+
.poad-combo .st__chev { color: var(--poad-fg-muted); flex: none; transition: transform var(--poad-dur) var(--poad-ease); }
|
|
32
|
+
.poad-combo.is-open .st__chev { transform: rotate(180deg); }
|
|
33
|
+
.poad-combo .st__clear, .poad-combo .st__dd { all: unset; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; color: var(--poad-fg-muted); cursor: pointer; }
|
|
34
|
+
.poad-combo .st__clear:hover, .poad-combo .st__dd:hover { color: var(--poad-fg); background: var(--poad-hover); }
|
|
35
|
+
.poad-combo .st__spin { color: var(--poad-fg-muted); }
|
|
36
|
+
.poad-combo-pane .sp { display: flex; flex-direction: column; box-sizing: border-box; background: var(--poad-overlay); --poad-hover: var(--poad-overlay-hover); border: 1px solid var(--poad-border); border-radius: 9px; box-shadow: var(--poad-shadow-lg); overflow: hidden; font-family: var(--poad-font); font-size: var(--poad-font-size); color: var(--poad-fg); }
|
|
37
|
+
.poad-combo-pane .sp__empty { padding: 12px; text-align: center; color: var(--poad-fg-muted); font-size: var(--poad-font-size-sm); }
|
|
38
|
+
.poad-combo .st { cursor: text; }
|
|
39
|
+
.poad-combo .st--multi { align-items: flex-start; }
|
|
40
|
+
.poad-combo-pane .cb__list { list-style: none; margin: 0; padding: 4px; overflow: auto; }
|
|
41
|
+
.poad-combo-pane .cb__list li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
|
|
42
|
+
.poad-combo-pane .cb__list li.is-active { background: var(--poad-hover); }
|
|
43
|
+
.poad-combo-pane .cb__list li.is-on { background: var(--poad-accent-soft); color: var(--poad-accent); font-weight: 500; }
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Vue de données (.poad-dataview) — feuille partagée par les rendus React, Vue et composants web (modèle `dataview`
|
|
3
|
+
* d'@poadio/ui-core). Écrite depuis les styles de `poad-dataview` d'ui-angular (`:host` → `.poad-dataview`), qui garde
|
|
4
|
+
* encore les siens et sa grille `poad-grid`. À importer avec `paginator.css`, `skeleton.css` et `icon.css`.
|
|
5
|
+
*
|
|
6
|
+
* .poad-dataview[.is-grid][.has-min] > .dv__hd > (.dv__hd-slot, .dv__switch > button.is-on) ;
|
|
7
|
+
* .dv__body.dv__list > .dv__row | .dv__body.dv__grid > (éléments) | .dv__empty | .dv__empty.dv__error ; .dv__ft
|
|
8
|
+
* Élément par défaut d'une vue liée (`data`, rôles `image`, `label`, `description`) :
|
|
9
|
+
* .dv-item > (img.dv-item__img, .dv-item__txt > (b.dv-item__label, span.dv-item__desc))
|
|
10
|
+
*/
|
|
11
|
+
.poad-dataview { display: block; font-family: var(--poad-font); font-size: var(--poad-font-size); color: var(--poad-fg); }
|
|
12
|
+
.poad-dataview .dv__hd { display: flex; align-items: center; gap: 8px; }
|
|
13
|
+
.poad-dataview .dv__hd:has(> .dv__hd-slot:not(:empty)), .poad-dataview .dv__hd:has(.dv__switch) { margin-bottom: 12px; }
|
|
14
|
+
.poad-dataview .dv__hd-slot { flex: 1; min-width: 0; }
|
|
15
|
+
.poad-dataview .dv__switch { display: inline-flex; padding: 3px; gap: 2px; background: var(--poad-bg-subtle); border: 1px solid var(--poad-border); border-radius: var(--poad-radius); }
|
|
16
|
+
.poad-dataview .dv__switch > button { width: 28px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--poad-fg-secondary); display: grid; place-items: center; cursor: pointer; padding: 0; }
|
|
17
|
+
.poad-dataview .dv__switch > button:hover { color: var(--poad-fg); }
|
|
18
|
+
.poad-dataview .dv__switch > button:focus-visible { outline: 2px solid var(--poad-ring); outline-offset: 1px; }
|
|
19
|
+
.poad-dataview .dv__switch > button.is-on { background: var(--poad-surface); color: var(--poad-fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
|
|
20
|
+
.poad-dataview .dv__list { display: flex; flex-direction: column; border: 1px solid var(--poad-border); border-radius: var(--poad-radius-lg); overflow: hidden; background: var(--poad-surface); }
|
|
21
|
+
.poad-dataview .dv__row { padding: 12px 14px; border-bottom: 1px solid var(--poad-border); }
|
|
22
|
+
.poad-dataview .dv__row:last-child { border-bottom: 0; }
|
|
23
|
+
/* grille : colonnes par point de rupture de la fenêtre (`--dv-cols*`, 640 / 768 / 1024 / 1280 / 1536 px), ou remplissage
|
|
24
|
+
avec une largeur minimale de carte (`has-min`, `--dv-min`) */
|
|
25
|
+
.poad-dataview .dv__grid { display: grid; gap: var(--poad-gap-md, 14px); min-width: 0; grid-template-columns: repeat(var(--dv-cols, 1), minmax(0, 1fr)); }
|
|
26
|
+
.poad-dataview .dv__grid > * { min-width: 0; }
|
|
27
|
+
@media (min-width: 640px) { .poad-dataview .dv__grid { grid-template-columns: repeat(var(--dv-cols-sm, var(--dv-cols, 1)), minmax(0, 1fr)); } }
|
|
28
|
+
@media (min-width: 768px) { .poad-dataview .dv__grid { grid-template-columns: repeat(var(--dv-cols-md, var(--dv-cols, 1)), minmax(0, 1fr)); } }
|
|
29
|
+
@media (min-width: 1024px) { .poad-dataview .dv__grid { grid-template-columns: repeat(var(--dv-cols-lg, var(--dv-cols, 1)), minmax(0, 1fr)); } }
|
|
30
|
+
@media (min-width: 1280px) { .poad-dataview .dv__grid { grid-template-columns: repeat(var(--dv-cols-xl, var(--dv-cols, 1)), minmax(0, 1fr)); } }
|
|
31
|
+
@media (min-width: 1536px) { .poad-dataview .dv__grid { grid-template-columns: repeat(var(--dv-cols-2xl, var(--dv-cols, 1)), minmax(0, 1fr)); } }
|
|
32
|
+
.poad-dataview.poad-dataview.has-min .dv__grid { grid-template-columns: repeat(auto-fit, minmax(min(var(--dv-min), 100%), 1fr)); }
|
|
33
|
+
.poad-dataview .dv__empty { display: grid; place-items: center; gap: 6px; padding: 32px; color: var(--poad-fg-muted); border: 1px dashed var(--poad-border-strong); border-radius: var(--poad-radius-lg); }
|
|
34
|
+
.poad-dataview .dv__error { color: var(--poad-fg-secondary); border-color: var(--poad-danger); }
|
|
35
|
+
.poad-dataview .dv__error > .poad-icon { color: var(--poad-danger); }
|
|
36
|
+
.poad-dataview .dv__error > b { color: var(--poad-fg); font-weight: 600; text-align: center; }
|
|
37
|
+
.poad-dataview .dv-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
|
|
38
|
+
.poad-dataview .dv__grid > .dv-item { flex-direction: column; align-items: stretch; padding: 12px; background: var(--poad-surface); border: 1px solid var(--poad-border); border-radius: var(--poad-radius-lg); }
|
|
39
|
+
.poad-dataview .dv-item__img { width: 44px; height: 44px; flex: none; object-fit: cover; border-radius: var(--poad-radius); background: var(--poad-bg-subtle); }
|
|
40
|
+
.poad-dataview .dv__grid > .dv-item > .dv-item__img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
|
|
41
|
+
.poad-dataview .dv-item__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
42
|
+
.poad-dataview .dv-item__label { font-weight: 600; color: var(--poad-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
43
|
+
.poad-dataview .dv-item__desc { color: var(--poad-fg-secondary); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
44
|
+
.poad-dataview .dv-item__desc:empty { display: none; }
|
|
45
|
+
.poad-dataview .dv__ft { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
|
|
46
|
+
.poad-dataview .dv__ft:empty { display: none; }
|
|
47
|
+
.poad-dataview .dv__ft { flex-wrap: wrap; }
|
|
48
|
+
/* sur un écran étroit, le paginateur passe à la ligne au lieu de déborder */
|
|
49
|
+
.poad-dataview .dv__ft > .poad-paginator { flex: 1; flex-wrap: wrap; row-gap: 8px; min-width: 0; }
|
|
50
|
+
@media (prefers-reduced-motion: reduce) { .poad-dataview .dv__switch > button { transition: none; } }
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @poadio/ui-core — sélecteur de date (`.poad-datepicker`). Source unique du style pour tous les paquets de rendu :
|
|
3
|
+
* ui-angular l'inclut dans `poad-datepicker` (encapsulation désactivée), les autres rendus le font charger par
|
|
4
|
+
* l'application. Ne lit que les jetons --poad-* (icônes : `icon.css` ; flottant : `floating.css` ; feuille basse :
|
|
5
|
+
* `sheet.css`, qui porte les ajustements tactiles du calendrier).
|
|
6
|
+
*
|
|
7
|
+
* Anatomie : racine `.poad-datepicker` (`is-open`, `is-disabled`, `is-invalid`, `is-inline`, `size-sm|lg` de
|
|
8
|
+
* `datepickerRootClasses()`) > `.poad-dp__box` > `input.poad-dp__input` (`role="combobox"`) et boutons `.poad-dp__btn`
|
|
9
|
+
* (`.poad-dp__cal`). Panneau `.poad-dp__panel` (`role="dialog"`, hors de la racine quand il flotte ; `is-inline`,
|
|
10
|
+
* `is-sheet`) > `.poad-dp__head` (`.poad-dp__nav`, `.poad-dp__title`), grille `.poad-dp__grid` (`role="grid"`,
|
|
11
|
+
* `has-week`) > `.poad-dp__row` > `button.poad-dp__day` (`is-out`, `is-today`, `is-sel`, `in-range`, `range-start`,
|
|
12
|
+
* `range-end`, `is-hover-range`) ; vues `.poad-dp__cells` ; heure `.poad-dp__time` ; barre `.poad-dp__bar`.
|
|
13
|
+
* Écrit à partir des styles `:host` du composant Angular, une règle pour une règle : `:host(X)` →
|
|
14
|
+
* `.poad-datepicker X`, une partie du champ → `.poad-datepicker .partie`, une partie du panneau →
|
|
15
|
+
* `.poad-dp__panel .partie`. (Les arrondis des extrémités d'un intervalle restent physiques, comme dans ui-angular.)
|
|
16
|
+
*/
|
|
17
|
+
.poad-datepicker { display: inline-block; width: 100%; font-family: var(--poad-font); font-size: var(--poad-font-size); color: var(--poad-fg); }
|
|
18
|
+
.poad-datepicker.is-inline { width: auto; }
|
|
19
|
+
.poad-datepicker .poad-dp__box { display: flex; align-items: stretch; height: var(--poad-control-h); background: var(--poad-input-bg); border: 1px solid var(--poad-input-border); border-radius: var(--poad-radius); transition: border-color var(--poad-dur), box-shadow var(--poad-dur); cursor: text; }
|
|
20
|
+
.poad-datepicker.size-sm .poad-dp__box { height: var(--poad-control-h-sm); font-size: var(--poad-font-size-sm); border-radius: var(--poad-radius-sm); }
|
|
21
|
+
.poad-datepicker.size-lg .poad-dp__box { height: var(--poad-control-h-lg); font-size: var(--poad-font-size-lg); }
|
|
22
|
+
.poad-datepicker .poad-dp__box:focus-within, .poad-datepicker.is-open .poad-dp__box { border-color: var(--poad-accent); box-shadow: 0 0 0 3px var(--poad-ring); }
|
|
23
|
+
.poad-datepicker.is-invalid .poad-dp__box { border-color: var(--poad-danger); }
|
|
24
|
+
.poad-datepicker.is-invalid .poad-dp__box:focus-within { box-shadow: 0 0 0 3px var(--poad-danger-soft); }
|
|
25
|
+
.poad-datepicker.is-disabled .poad-dp__box { opacity: .6; background: var(--poad-bg-subtle); cursor: not-allowed; }
|
|
26
|
+
.poad-datepicker .poad-dp__input { flex: 1 1 0; width: 0; min-width: 0; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; padding: 0 var(--poad-control-px); font-variant-numeric: tabular-nums; cursor: inherit; }
|
|
27
|
+
.poad-datepicker .poad-dp__input::placeholder { color: var(--poad-fg-muted); }
|
|
28
|
+
.poad-datepicker .poad-dp__btn { border: 0; background: transparent; color: var(--poad-fg-muted); cursor: pointer; padding: 0 8px; display: grid; place-items: center; }
|
|
29
|
+
.poad-datepicker .poad-dp__btn:hover { color: var(--poad-fg); }
|
|
30
|
+
.poad-datepicker .poad-dp__cal { padding-inline-end: 10px; }
|
|
31
|
+
|
|
32
|
+
.poad-dp__panel { background: var(--poad-overlay); --poad-hover: var(--poad-overlay-hover); border: 1px solid var(--poad-border); border-radius: 10px; box-shadow: var(--poad-shadow-lg); padding: 10px; width: 272px; box-sizing: border-box; user-select: none; }
|
|
33
|
+
.poad-dp__panel.is-inline { box-shadow: none; background: var(--poad-surface); }
|
|
34
|
+
.poad-dp__panel .poad-dp__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
|
|
35
|
+
.poad-dp__panel .poad-dp__nav { width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--poad-fg-secondary); cursor: pointer; display: grid; place-items: center; }
|
|
36
|
+
.poad-dp__panel .poad-dp__nav:hover { background: var(--poad-hover); color: var(--poad-fg); }
|
|
37
|
+
.poad-dp__panel .poad-dp__title { display: inline-flex; gap: 4px; font-weight: 600; text-transform: capitalize; }
|
|
38
|
+
.poad-dp__panel .poad-dp__title button { border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; padding: 3px 6px; border-radius: 6px; cursor: pointer; text-transform: capitalize; }
|
|
39
|
+
.poad-dp__panel .poad-dp__title button:hover { background: var(--poad-hover); }
|
|
40
|
+
.poad-dp__panel .poad-dp__grid { display: grid; gap: 2px; }
|
|
41
|
+
.poad-dp__panel .poad-dp__row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
|
|
42
|
+
.poad-dp__panel .has-week .poad-dp__row { grid-template-columns: 22px repeat(7, 1fr); }
|
|
43
|
+
.poad-dp__panel .poad-dp__weekdays span { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--poad-fg-muted); text-align: center; height: 22px; line-height: 22px; }
|
|
44
|
+
.poad-dp__panel .poad-dp__wk { font: 10px var(--poad-font-mono); color: var(--poad-fg-muted); text-align: center; align-self: center; }
|
|
45
|
+
.poad-dp__panel .poad-dp__day { position: relative; height: 32px; border: 0; border-radius: 7px; background: transparent; color: var(--poad-fg); font: inherit; font-size: 12.5px; cursor: pointer; font-variant-numeric: tabular-nums; }
|
|
46
|
+
.poad-dp__panel .poad-dp__day:hover:not([disabled]) { background: var(--poad-hover); }
|
|
47
|
+
.poad-dp__panel .poad-dp__day:focus-visible { outline: 2px solid var(--poad-ring); outline-offset: -1px; }
|
|
48
|
+
.poad-dp__panel .poad-dp__day.is-out { color: var(--poad-fg-muted); opacity: .7; }
|
|
49
|
+
.poad-dp__panel .poad-dp__day.is-today::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-inline-start: -2px; border-radius: 50%; background: var(--poad-accent); }
|
|
50
|
+
.poad-dp__panel .poad-dp__day.in-range, .poad-dp__panel .poad-dp__day.is-hover-range { background: var(--poad-accent-soft); border-radius: 0; color: var(--poad-fg); }
|
|
51
|
+
.poad-dp__panel .poad-dp__day.range-start { border-radius: 7px 0 0 7px; }
|
|
52
|
+
.poad-dp__panel .poad-dp__day.range-end { border-radius: 0 7px 7px 0; }
|
|
53
|
+
.poad-dp__panel .poad-dp__day.range-start.range-end { border-radius: 7px; }
|
|
54
|
+
.poad-dp__panel .poad-dp__day.is-sel { background: var(--poad-accent); color: var(--poad-fg-on-accent); font-weight: 600; }
|
|
55
|
+
.poad-dp__panel .poad-dp__day.is-sel.is-today::after { background: var(--poad-fg-on-accent); }
|
|
56
|
+
.poad-dp__panel .poad-dp__day[disabled] { color: var(--poad-fg-muted); opacity: .45; cursor: not-allowed; text-decoration: line-through; }
|
|
57
|
+
.poad-dp__panel .poad-dp__cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
|
|
58
|
+
.poad-dp__panel .poad-dp__cells button { height: 36px; border: 0; border-radius: 7px; background: transparent; color: var(--poad-fg); font: inherit; cursor: pointer; text-transform: capitalize; }
|
|
59
|
+
.poad-dp__panel .poad-dp__cells button:hover:not([disabled]) { background: var(--poad-hover); }
|
|
60
|
+
.poad-dp__panel .poad-dp__cells button.is-now { color: var(--poad-accent); font-weight: 600; }
|
|
61
|
+
.poad-dp__panel .poad-dp__cells button.is-sel { background: var(--poad-accent); color: var(--poad-fg-on-accent); font-weight: 600; }
|
|
62
|
+
.poad-dp__panel .poad-dp__cells button[disabled] { opacity: .45; cursor: not-allowed; }
|
|
63
|
+
.poad-dp__panel .poad-dp__time { display: flex; align-items: center; justify-content: center; gap: 4px; padding-top: 8px; }
|
|
64
|
+
.poad-dp__panel .poad-dp__time.has-border { border-top: 1px solid var(--poad-border); margin-top: 8px; }
|
|
65
|
+
.poad-dp__panel .poad-dp__spin { display: flex; flex-direction: column; align-items: center; }
|
|
66
|
+
.poad-dp__panel .poad-dp__spin button { width: 28px; height: 20px; border: 0; background: transparent; color: var(--poad-fg-muted); cursor: pointer; display: grid; place-items: center; border-radius: 5px; }
|
|
67
|
+
.poad-dp__panel .poad-dp__spin button:hover { background: var(--poad-hover); color: var(--poad-fg); }
|
|
68
|
+
.poad-dp__panel .poad-dp__spin input { width: 36px; height: 28px; text-align: center; border: 1px solid var(--poad-input-border); border-radius: 6px; background: var(--poad-input-bg); color: var(--poad-fg); font: 500 14px var(--poad-font-mono); outline: 0; }
|
|
69
|
+
.poad-dp__panel .poad-dp__spin input:focus { border-color: var(--poad-accent); box-shadow: 0 0 0 3px var(--poad-ring); }
|
|
70
|
+
.poad-dp__panel .poad-dp__colon { font-weight: 600; color: var(--poad-fg-muted); }
|
|
71
|
+
.poad-dp__panel .poad-dp__ampm { margin-inline-start: 6px; height: 28px; padding: 0 8px; border: 1px solid var(--poad-input-border); border-radius: 6px; background: transparent; color: var(--poad-fg); font: 600 11px var(--poad-font); cursor: pointer; }
|
|
72
|
+
.poad-dp__panel .poad-dp__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--poad-border); }
|
|
73
|
+
.poad-dp__panel .poad-dp__bar button { border: 0; background: transparent; color: var(--poad-accent); font: 500 12px var(--poad-font); padding: 4px 8px; border-radius: 6px; cursor: pointer; }
|
|
74
|
+
.poad-dp__panel .poad-dp__bar button:hover { background: var(--poad-accent-soft); }
|
|
75
|
+
.poad-dp__panel .poad-dp__bar button.is-muted { color: var(--poad-fg-secondary); }
|
|
76
|
+
.poad-dp__panel .poad-dp__bar button.is-muted:hover { background: var(--poad-hover); }
|
|
77
|
+
.poad-dp__panel .poad-dp__bar button.is-ok { margin-inline-start: auto; background: var(--poad-accent); color: var(--poad-fg-on-accent); padding: 8px 18px; font-size: var(--poad-font-size); }
|
|
78
|
+
.poad-dp__panel .poad-dp__bar button.is-ok:hover { background: var(--poad-accent-hover); }
|
|
79
|
+
.poad-dp__panel.is-sheet .poad-dp__bar button { min-height: 40px; }
|
|
80
|
+
.poad-dp__panel .poad-dp__count { font-size: 11px; color: var(--poad-fg-muted); }
|