@poadio/app-vue 0.1.0 → 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 +25 -0
- package/app-vue.css +95 -21
- package/dist/browser.d.ts +3 -1
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +18 -1
- package/dist/browser.js.map +1 -1
- 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 +5 -1
- package/dist/front-view.d.ts.map +1 -1
- package/dist/front-view.js +103 -44
- package/dist/front-view.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- 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 +16 -0
- package/dist/lazy.d.ts.map +1 -1
- package/dist/lazy.js +34 -1
- package/dist/lazy.js.map +1 -1
- package/dist/messages.d.ts +20 -2
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +40 -4
- package/dist/messages.js.map +1 -1
- package/dist/sections/grid.d.ts +25 -1
- package/dist/sections/grid.d.ts.map +1 -1
- package/dist/sections/grid.js +29 -2
- package/dist/sections/grid.js.map +1 -1
- package/package.json +4 -3
- package/runtime-dist/app.css +95 -21
- package/runtime-dist/app.js +2 -2
- 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-fg782zf4.js → c-7cjj18ea.js} +1 -1
- 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-pgxy0etb.js → c-ahcj5yr5.js} +1 -1
- 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-ns42txax.js → c-rasvf2z2.js} +2 -2
- 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/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 -1
- package/src/browser.ts +21 -2
- package/src/draft-toolbar.ts +67 -0
- package/src/front-view.ts +105 -51
- package/src/index.ts +2 -1
- package/src/items.ts +436 -0
- package/src/lazy.ts +38 -1
- package/src/messages.ts +40 -4
- package/src/sections/grid.ts +38 -3
- package/runtime-dist/c-7dddcgt2.js +0 -2
- package/runtime-dist/c-9a0nzf53.js +0 -2
- package/runtime-dist/c-c1e1x3y1.js +0 -1
- package/runtime-dist/c-fnkq09db.js +0 -1
- package/runtime-dist/c-j29w8z15.js +0 -1
- package/runtime-dist/c-mmxqs2mz.js +0 -1
- package/runtime-dist/c-xsq12y6b.js +0 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @poadio/ui-core — jauge segmentée (`.poad-meter`). Source unique du style pour tous les paquets de rendu :
|
|
3
|
+
* ui-angular l'inclut dans `poad-meter` (encapsulation désactivée), ui-react le fait charger par l'application. CSS
|
|
4
|
+
* pur, ne lit que les jetons --poad-* (charger `tokens.css` avant).
|
|
5
|
+
*
|
|
6
|
+
* Racine `.poad-meter` (`is-vertical`, `size-sm|lg`, `labels-start` de `meterRootClasses()`) > `.mt__bar` >
|
|
7
|
+
* `.mt__seg` ; légende `.mt__legend` > `.mt__li` (`is-rest` pour le reste) > point `<i>`, `.lb`, `.v` > `<small>`.
|
|
8
|
+
* Écrit à partir des styles `:host` du composant Angular, une règle pour une règle : `:host(X)` → `.poad-meter X`.
|
|
9
|
+
* Les éléments nus de la légende par défaut sont visés au plus près (`> i:has(+ .lb)`, `> .v > small`) : une
|
|
10
|
+
* légende de l'application (gabarit `poadMeterLabel` en Angular, `renderLabel` en React) n'en hérite pas.
|
|
11
|
+
*/
|
|
12
|
+
.poad-meter { display: grid; gap: 8px; font-family: var(--poad-font); font-size: var(--poad-font-size); color: var(--poad-fg); }
|
|
13
|
+
.poad-meter .mt__bar { display: flex; height: 8px; border-radius: 4px; background: var(--poad-elevated); overflow: hidden; gap: 1px; }
|
|
14
|
+
.poad-meter.size-sm .mt__bar { height: 5px; } .poad-meter.size-lg .mt__bar { height: 12px; }
|
|
15
|
+
.poad-meter .mt__seg { height: 100%; transition: flex-basis var(--poad-dur) var(--poad-ease); }
|
|
16
|
+
.poad-meter.is-vertical { grid-auto-flow: column; align-items: stretch; }
|
|
17
|
+
.poad-meter.is-vertical .mt__bar { flex-direction: column-reverse; width: 8px; height: 100%; min-height: 120px; }
|
|
18
|
+
.poad-meter.is-vertical.size-sm .mt__bar { width: 5px; } .poad-meter.is-vertical.size-lg .mt__bar { width: 12px; }
|
|
19
|
+
.poad-meter.is-vertical .mt__seg { width: 100%; height: auto; }
|
|
20
|
+
.poad-meter.is-vertical .mt__legend { flex-direction: column; }
|
|
21
|
+
.poad-meter .mt__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; }
|
|
22
|
+
.poad-meter .mt__li { display: inline-flex; align-items: center; gap: 6px; color: var(--poad-fg-secondary); }
|
|
23
|
+
.poad-meter .mt__li > i:has(+ .lb) { width: 9px; height: 9px; border-radius: 50%; background: var(--poad-elevated); flex: none; }
|
|
24
|
+
.poad-meter .mt__li .lb { color: var(--poad-fg); } .poad-meter .mt__li .v { font-family: var(--poad-font-mono); font-size: 11.5px; } .poad-meter .mt__li > .v > small { color: var(--poad-fg-muted); }
|
|
25
|
+
.poad-meter .mt__li.is-rest { color: var(--poad-fg-muted); }
|
|
26
|
+
@media (prefers-reduced-motion: reduce) { .poad-meter .mt__seg { transition: none; } }
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @poadio/ui-core — liste à choix multiples (`.poad-multiselect`). Source unique du style pour tous les paquets de
|
|
3
|
+
* rendu : ui-angular l'inclut dans `poad-multiselect` (encapsulation désactivée), les autres rendus le font charger
|
|
4
|
+
* par l'application. Ne lit que les jetons --poad-* (avec `option-list.css`, `icon.css` ; flottant : `floating.css`,
|
|
5
|
+
* feuille basse : `sheet.css`).
|
|
6
|
+
*
|
|
7
|
+
* Anatomie : racine `.poad-multiselect` (`is-open`, `is-disabled`, `is-readonly`, `is-invalid`, `is-focused`,
|
|
8
|
+
* `has-value`, `is-limit`, `size-sm|lg`, `display-chip` de `multiselectRootClasses()`) > `.poad-multiselect__trigger`
|
|
9
|
+
* (`role="combobox"`) > `.poad-multiselect__value` (`is-placeholder` ; puces `.poad-multiselect__chip` et leur
|
|
10
|
+
* `.poad-multiselect__chip-x`), `.poad-multiselect__spin`, `.poad-multiselect__clear`, `.poad-multiselect__chev`.
|
|
11
|
+
* Panneau `.poad-multiselect__panel` (hors de la racine quand il flotte ; `is-sheet`) > `.poad-multiselect__head`
|
|
12
|
+
* (case « tout » `.poad-multiselect__all` > `.poad-multiselect__check`, champ de filtre, `.poad-multiselect__all-label`),
|
|
13
|
+
* liste d'options (`option-list.css`), pied de la feuille basse `.poad-multiselect__sheet-foot`.
|
|
14
|
+
* Écrit à partir des styles `:host` du composant Angular, une règle pour une règle : `:host(X)` →
|
|
15
|
+
* `.poad-multiselect X`, une partie du déclencheur → `.poad-multiselect .partie`, une partie du panneau →
|
|
16
|
+
* `.poad-multiselect__panel .partie`. Le champ de filtre (`input[type="text"]`) garde la spécificité qu'il avait
|
|
17
|
+
* encapsulé : dans une feuille basse, sa taille de texte reste la sienne, comme avant. Le panneau lui-même, sans
|
|
18
|
+
* ancêtre du composant, est à une classe : dans une feuille basse, il est toujours aplati par `sheet.css` (avant,
|
|
19
|
+
* cela dépendait de l'ordre dans lequel Angular avait inséré les deux feuilles).
|
|
20
|
+
*/
|
|
21
|
+
.poad-multiselect { 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; }
|
|
22
|
+
.poad-multiselect .poad-multiselect__trigger {
|
|
23
|
+
display: flex; align-items: center; gap: 6px; width: 100%; box-sizing: border-box; min-height: var(--poad-control-h); padding-block: 3px; padding-inline: var(--poad-control-px) 8px;
|
|
24
|
+
background: var(--poad-input-bg); border: 1px solid var(--poad-input-border); border-radius: var(--poad-radius); cursor: pointer; outline: none; user-select: none;
|
|
25
|
+
transition: border-color var(--poad-dur) var(--poad-ease), box-shadow var(--poad-dur) var(--poad-ease);
|
|
26
|
+
}
|
|
27
|
+
.poad-multiselect.display-chip .poad-multiselect__trigger { padding-inline-start: 4px; }
|
|
28
|
+
.poad-multiselect.size-sm .poad-multiselect__trigger { min-height: var(--poad-control-h-sm); font-size: var(--poad-font-size-sm); border-radius: var(--poad-radius-sm); }
|
|
29
|
+
.poad-multiselect.size-lg .poad-multiselect__trigger { min-height: var(--poad-control-h-lg); font-size: var(--poad-font-size-lg); }
|
|
30
|
+
.poad-multiselect .poad-multiselect__trigger:focus-visible, .poad-multiselect.is-open .poad-multiselect__trigger { border-color: var(--poad-accent); box-shadow: 0 0 0 3px var(--poad-ring); }
|
|
31
|
+
.poad-multiselect.is-invalid .poad-multiselect__trigger { border-color: var(--poad-danger); }
|
|
32
|
+
.poad-multiselect.is-invalid.is-open .poad-multiselect__trigger, .poad-multiselect.is-invalid .poad-multiselect__trigger:focus-visible { box-shadow: 0 0 0 3px var(--poad-danger-soft); }
|
|
33
|
+
.poad-multiselect.is-disabled .poad-multiselect__trigger { opacity: .6; cursor: not-allowed; background: var(--poad-bg-subtle); }
|
|
34
|
+
.poad-multiselect.is-readonly .poad-multiselect__trigger { cursor: default; }
|
|
35
|
+
.poad-multiselect .poad-multiselect__value { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; overflow: hidden; }
|
|
36
|
+
.poad-multiselect:not(.display-chip) .poad-multiselect__value { display: block; white-space: nowrap; text-overflow: ellipsis; }
|
|
37
|
+
.poad-multiselect .poad-multiselect__value.is-placeholder { color: var(--poad-fg-muted); padding-inline-start: 6px; }
|
|
38
|
+
.poad-multiselect:not(.display-chip) .poad-multiselect__value.is-placeholder { padding-inline-start: 0; }
|
|
39
|
+
.poad-multiselect .poad-multiselect__chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding-block: 0; padding-inline: 8px 5px; border-radius: 999px; background: var(--poad-accent-soft); color: var(--poad-accent); font-size: var(--poad-font-size-sm); font-weight: 500; white-space: nowrap; }
|
|
40
|
+
.poad-multiselect.size-sm .poad-multiselect__chip { height: 18px; font-size: 11px; }
|
|
41
|
+
.poad-multiselect .poad-multiselect__chip-x { all: unset; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; cursor: pointer; color: inherit; opacity: .8; }
|
|
42
|
+
.poad-multiselect .poad-multiselect__chip-x:hover { opacity: 1; background: color-mix(in srgb, var(--poad-accent) 20%, transparent); }
|
|
43
|
+
.poad-multiselect .poad-multiselect__chev { color: var(--poad-fg-muted); flex: none; transition: transform var(--poad-dur) var(--poad-ease); }
|
|
44
|
+
.poad-multiselect.is-open .poad-multiselect__chev { transform: rotate(180deg); }
|
|
45
|
+
.poad-multiselect .poad-multiselect__spin { color: var(--poad-fg-muted); }
|
|
46
|
+
.poad-multiselect .poad-multiselect__clear { all: unset; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; color: var(--poad-fg-muted); cursor: pointer; }
|
|
47
|
+
.poad-multiselect .poad-multiselect__clear:hover { color: var(--poad-fg); background: var(--poad-hover); }
|
|
48
|
+
/* panneau (hors de la racine en Angular : couche d'overlay) */
|
|
49
|
+
.poad-multiselect__panel { 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); }
|
|
50
|
+
.poad-multiselect__panel .poad-multiselect__head { display: flex; align-items: center; gap: 8px; padding-block: 6px; padding-inline: 12px 10px; border-bottom: 1px solid var(--poad-border); color: var(--poad-fg-muted); }
|
|
51
|
+
.poad-multiselect__panel .poad-multiselect__head input[type="text"] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--poad-fg); font: var(--poad-font-size-sm)/1.4 var(--poad-font); }
|
|
52
|
+
.poad-multiselect__panel .poad-multiselect__head input[type="text"]::placeholder { color: var(--poad-fg-muted); }
|
|
53
|
+
.poad-multiselect__panel .poad-multiselect__all { all: unset; display: inline-flex; cursor: pointer; }
|
|
54
|
+
.poad-multiselect__panel .poad-multiselect__all[disabled] { opacity: .4; cursor: default; }
|
|
55
|
+
.poad-multiselect__panel .poad-multiselect__all-label { color: var(--poad-fg-secondary); cursor: pointer; font-size: var(--poad-font-size-sm); }
|
|
56
|
+
.poad-multiselect__panel .poad-multiselect__check { 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); }
|
|
57
|
+
.poad-multiselect__panel .poad-multiselect__check.is-on, .poad-multiselect__panel .poad-multiselect__check.is-mixed { background: var(--poad-accent); border-color: var(--poad-accent); }
|
|
58
|
+
.poad-multiselect__panel .poad-multiselect__check i { width: 8px; height: 2px; background: currentColor; border-radius: 1px; }
|
|
59
|
+
/* pied en feuille basse (mobile) */
|
|
60
|
+
.poad-multiselect__panel .poad-multiselect__sheet-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--poad-border); background: var(--poad-bg-subtle); position: sticky; bottom: 0; }
|
|
61
|
+
.poad-multiselect__panel .poad-multiselect__sheet-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: var(--poad-radius); border: 1px solid transparent; background: var(--poad-accent); color: var(--poad-fg-on-accent); font: 500 var(--poad-font-size-lg) var(--poad-font); cursor: pointer; }
|
|
62
|
+
.poad-multiselect__panel .poad-multiselect__sheet-btn.is-ghost { background: transparent; color: var(--poad-fg-secondary); }
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @poadio/ui-core — tiroir de navigation (`.poad-nav-drawer`). Source unique du style pour tous les paquets de rendu :
|
|
3
|
+
* ui-angular l'inclut dans `poad-nav-drawer` (encapsulation désactivée), les autres rendus le font charger par
|
|
4
|
+
* l'application. Ne lit que les jetons --poad-* (icônes : `icon.css`).
|
|
5
|
+
*
|
|
6
|
+
* Anatomie : `.poad-nav-drawer` (`is-permanent` ou `is-temporary`, `is-rail`, `is-open`, `is-right`) >
|
|
7
|
+
* `.poad-nav-drawer__scrim` (voile, mode tiroir ouvert) et `nav.poad-nav-drawer__panel` (`role="dialog"` modal en mode
|
|
8
|
+
* tiroir ouvert ; caché et inerte en mode tiroir fermé) > `.poad-nav-drawer__head` (contenu de l'en-tête, ou icône et
|
|
9
|
+
* titre), `ul.poad-nav-drawer__list` > `li` > `.poad-nav-drawer__item` (`<a>` ou `<button>` ; `is-active`,
|
|
10
|
+
* `is-disabled` ; icône, `.poad-nav-drawer__label`, `.poad-nav-drawer__badge` ou `.poad-nav-drawer__dot` en rail),
|
|
11
|
+
* `li.poad-nav-drawer__section` (intertitre), `button.poad-nav-drawer__section.is-collapsible` (`is-collapsed` ;
|
|
12
|
+
* `.poad-nav-drawer__chev`), `li.poad-nav-drawer__rule` (intertitre en rail) ; `.poad-nav-drawer__foot` (`is-empty`).
|
|
13
|
+
*
|
|
14
|
+
* Largeurs : `--poad-nav-drawer-w` (240 px), `--poad-nav-drawer-rail-w` (56 px). Écrit à partir des styles `:host` du
|
|
15
|
+
* composant Angular, une règle pour une règle.
|
|
16
|
+
*/
|
|
17
|
+
.poad-nav-drawer { display: block; box-sizing: border-box; font-family: var(--poad-font); }
|
|
18
|
+
.poad-nav-drawer.is-permanent { flex: none; }
|
|
19
|
+
|
|
20
|
+
.poad-nav-drawer .poad-nav-drawer__panel {
|
|
21
|
+
display: flex; flex-direction: column; min-height: 0; height: 100%; box-sizing: border-box;
|
|
22
|
+
width: var(--poad-nav-drawer-w, 240px);
|
|
23
|
+
background: var(--poad-bg-subtle); border-inline-end: 1px solid var(--poad-border);
|
|
24
|
+
transition: width var(--poad-dur) var(--poad-ease);
|
|
25
|
+
}
|
|
26
|
+
.poad-nav-drawer.is-rail .poad-nav-drawer__panel { width: var(--poad-nav-drawer-rail-w, 56px); }
|
|
27
|
+
.poad-nav-drawer.is-right .poad-nav-drawer__panel { border-inline-end: 0; border-inline-start: 1px solid var(--poad-border); }
|
|
28
|
+
|
|
29
|
+
/* Mode tiroir : hors flux, par-dessus le contenu. */
|
|
30
|
+
.poad-nav-drawer.is-temporary { position: fixed; inset: 0 auto 0 0; z-index: var(--poad-z-overlay, 100002); pointer-events: none; }
|
|
31
|
+
.poad-nav-drawer.is-temporary.is-right { inset: 0 0 0 auto; }
|
|
32
|
+
.poad-nav-drawer.is-temporary .poad-nav-drawer__panel {
|
|
33
|
+
pointer-events: auto; height: 100%; box-shadow: var(--poad-shadow-lg, 0 12px 24px rgba(15,23,42,.18));
|
|
34
|
+
transform: translateX(-100%); transition: transform var(--poad-dur) var(--poad-ease), visibility 0s linear var(--poad-dur);
|
|
35
|
+
visibility: hidden;
|
|
36
|
+
/* Zones sûres : en mode tiroir, le panneau couvre toute la hauteur de l'écran ; sans ce rembourrage (intérieur au
|
|
37
|
+
fond, la couleur monte jusqu'au bord), l'en-tête passe sous l'encoche et le pied sous l'indicateur d'accueil. */
|
|
38
|
+
padding-top: env(safe-area-inset-top, 0px);
|
|
39
|
+
padding-bottom: env(safe-area-inset-bottom, 0px);
|
|
40
|
+
}
|
|
41
|
+
.poad-nav-drawer.is-temporary.is-right .poad-nav-drawer__panel { transform: translateX(100%); }
|
|
42
|
+
.poad-nav-drawer.is-temporary.is-open .poad-nav-drawer__panel { transform: translateX(0); visibility: visible; transition: transform var(--poad-dur) var(--poad-ease); }
|
|
43
|
+
|
|
44
|
+
.poad-nav-drawer .poad-nav-drawer__scrim {
|
|
45
|
+
position: fixed; inset: 0; background: var(--poad-backdrop, rgba(2,6,23,.45));
|
|
46
|
+
pointer-events: auto; z-index: -1;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.poad-nav-drawer .poad-nav-drawer__head {
|
|
50
|
+
display: flex; align-items: center; gap: 9px; flex: none; box-sizing: border-box;
|
|
51
|
+
padding: 14px 14px 12px; border-bottom: 1px solid var(--poad-border); min-height: 48px;
|
|
52
|
+
color: var(--poad-fg); font-size: 13px;
|
|
53
|
+
}
|
|
54
|
+
.poad-nav-drawer.is-rail .poad-nav-drawer__head { justify-content: center; padding: 14px 0 12px; }
|
|
55
|
+
/* ni contenu d'en-tête, ni icône, ni titre : pas de bandeau vide */
|
|
56
|
+
.poad-nav-drawer .poad-nav-drawer__head:empty { display: none; }
|
|
57
|
+
.poad-nav-drawer .poad-nav-drawer__head > .poad-icon, .poad-nav-drawer .poad-nav-drawer__head > poad-icon { color: var(--poad-accent); flex: none; }
|
|
58
|
+
|
|
59
|
+
.poad-nav-drawer .poad-nav-drawer__list { list-style: none; margin: 0; padding: 8px 0; flex: 1; min-height: 0; overflow-y: auto; }
|
|
60
|
+
.poad-nav-drawer .poad-nav-drawer__section {
|
|
61
|
+
padding: 12px 14px 5px; font-size: 10px; font-weight: 500; letter-spacing: .07em;
|
|
62
|
+
text-transform: uppercase; color: var(--poad-fg-muted);
|
|
63
|
+
}
|
|
64
|
+
.poad-nav-drawer .poad-nav-drawer__rule { height: 1px; margin: 8px 12px; background: var(--poad-border); }
|
|
65
|
+
|
|
66
|
+
/* Intertitre repliable : « all: unset » remet tout à plat, y compris ce que .poad-nav-drawer__section vient de poser ;
|
|
67
|
+
d'où les re-déclarations dans cette même règle. */
|
|
68
|
+
.poad-nav-drawer .poad-nav-drawer__section.is-collapsible {
|
|
69
|
+
all: unset; box-sizing: border-box;
|
|
70
|
+
display: flex; align-items: center; gap: 8px; width: 100%; cursor: pointer;
|
|
71
|
+
padding: 12px 14px 5px;
|
|
72
|
+
font: 500 10px var(--poad-font); letter-spacing: .07em; text-transform: uppercase;
|
|
73
|
+
color: var(--poad-fg-muted);
|
|
74
|
+
}
|
|
75
|
+
.poad-nav-drawer .poad-nav-drawer__section.is-collapsible:hover { color: var(--poad-fg-secondary); }
|
|
76
|
+
/* spécificité relevée (liste comprise) : la règle commune de base.css, de même poids, ne doit pas l'emporter selon l'ordre de chargement */
|
|
77
|
+
.poad-nav-drawer .poad-nav-drawer__list .poad-nav-drawer__section.is-collapsible:focus-visible { outline: 2px solid var(--poad-accent); outline-offset: -2px; }
|
|
78
|
+
.poad-nav-drawer .poad-nav-drawer__chev { flex: none; transition: transform var(--poad-dur) var(--poad-ease); }
|
|
79
|
+
.poad-nav-drawer .poad-nav-drawer__section.is-collapsed .poad-nav-drawer__chev { transform: rotate(-90deg); }
|
|
80
|
+
[dir="rtl"] .poad-nav-drawer .poad-nav-drawer__section.is-collapsed .poad-nav-drawer__chev { transform: rotate(90deg); }
|
|
81
|
+
|
|
82
|
+
.poad-nav-drawer .poad-nav-drawer__item {
|
|
83
|
+
all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; position: relative;
|
|
84
|
+
cursor: pointer; padding: 8px 14px; min-height: 38px;
|
|
85
|
+
color: var(--poad-fg-secondary); font: 12.5px var(--poad-font); text-decoration: none;
|
|
86
|
+
}
|
|
87
|
+
.poad-nav-drawer.is-rail .poad-nav-drawer__item { justify-content: center; padding: 10px 0; }
|
|
88
|
+
.poad-nav-drawer .poad-nav-drawer__item:hover { background: var(--poad-hover); color: var(--poad-fg); }
|
|
89
|
+
.poad-nav-drawer .poad-nav-drawer__list .poad-nav-drawer__item:focus-visible { outline: 2px solid var(--poad-accent); outline-offset: -2px; }
|
|
90
|
+
/* Le filet du côté du contenu double la couleur : l'état actif reste lisible sans la percevoir. */
|
|
91
|
+
.poad-nav-drawer .poad-nav-drawer__item.is-active {
|
|
92
|
+
background: var(--poad-accent-soft); color: var(--poad-accent); font-weight: 500;
|
|
93
|
+
box-shadow: inset 3px 0 0 var(--poad-accent);
|
|
94
|
+
}
|
|
95
|
+
.poad-nav-drawer.is-right .poad-nav-drawer__item.is-active, [dir="rtl"] .poad-nav-drawer:not(.is-right) .poad-nav-drawer__item.is-active { box-shadow: inset -3px 0 0 var(--poad-accent); }
|
|
96
|
+
.poad-nav-drawer .poad-nav-drawer__item.is-disabled, .poad-nav-drawer .poad-nav-drawer__item:disabled { opacity: .45; cursor: not-allowed; }
|
|
97
|
+
.poad-nav-drawer .poad-nav-drawer__item.is-disabled:hover, .poad-nav-drawer .poad-nav-drawer__item:disabled:hover { background: none; color: var(--poad-fg-secondary); }
|
|
98
|
+
|
|
99
|
+
.poad-nav-drawer .poad-nav-drawer__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
|
|
100
|
+
.poad-nav-drawer .poad-nav-drawer__badge {
|
|
101
|
+
flex: none; font-size: 10.5px; font-family: var(--poad-font-mono); border-radius: var(--poad-radius-pill);
|
|
102
|
+
padding: 1px 7px; background: var(--poad-elevated, var(--poad-border)); color: var(--poad-fg-secondary);
|
|
103
|
+
font-weight: 400; letter-spacing: 0;
|
|
104
|
+
}
|
|
105
|
+
.poad-nav-drawer .poad-nav-drawer__item.is-active .poad-nav-drawer__badge { background: var(--poad-accent); color: var(--poad-fg-on-accent); }
|
|
106
|
+
/* En rail, le compte ne tient pas : un point en haut de l'icône, le nombre reste en title. */
|
|
107
|
+
.poad-nav-drawer .poad-nav-drawer__dot { position: absolute; top: 7px; left: calc(50% + 6px); width: 7px; height: 7px; border-radius: 50%; background: var(--poad-danger, #f85149); }
|
|
108
|
+
|
|
109
|
+
.poad-nav-drawer .poad-nav-drawer__foot { flex: none; border-top: 1px solid var(--poad-border); padding: 10px 14px; }
|
|
110
|
+
.poad-nav-drawer .poad-nav-drawer__foot.is-empty { display: none; }
|
|
111
|
+
.poad-nav-drawer.is-rail .poad-nav-drawer__foot { padding: 10px 4px; display: flex; justify-content: center; text-align: center; overflow-wrap: anywhere; }
|
|
112
|
+
|
|
113
|
+
.poad-touch .poad-nav-drawer .poad-nav-drawer__item { min-height: 44px; }
|
|
114
|
+
|
|
115
|
+
@media (prefers-reduced-motion: reduce) {
|
|
116
|
+
.poad-nav-drawer .poad-nav-drawer__panel, .poad-nav-drawer.is-temporary .poad-nav-drawer__panel, .poad-nav-drawer.is-temporary.is-open .poad-nav-drawer__panel { transition: none; }
|
|
117
|
+
.poad-nav-drawer .poad-nav-drawer__chev { transition: none; }
|
|
118
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @poadio/ui-core — champ numérique (`.poad-number`). Source unique du style pour tous les paquets de rendu :
|
|
3
|
+
* ui-angular l'inclut dans `poad-number` (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 ; les chevrons : `icon.css`).
|
|
5
|
+
*
|
|
6
|
+
* Racine `.poad-number` (`is-disabled`, `is-invalid`, `size-sm`, `size-lg` de `numberRootClasses()`) >
|
|
7
|
+
* `.poad-number__affix`? > `input.poad-number__input` > `.poad-number__affix`? > `.poad-number__btns` > 2 × `<button>`.
|
|
8
|
+
* Écrit à partir des styles `:host` du composant Angular, une règle pour une règle (comme `switch.css`).
|
|
9
|
+
*/
|
|
10
|
+
.poad-number { display: inline-flex; align-items: stretch; height: var(--poad-control-h); width: 100%; box-sizing: border-box; background: var(--poad-input-bg);
|
|
11
|
+
border: 1px solid var(--poad-input-border); border-radius: var(--poad-radius); font-family: var(--poad-font); font-size: var(--poad-font-size); color: var(--poad-fg);
|
|
12
|
+
transition: border-color var(--poad-dur), box-shadow var(--poad-dur); }
|
|
13
|
+
.poad-number.size-sm { height: var(--poad-control-h-sm); font-size: var(--poad-font-size-sm); }
|
|
14
|
+
.poad-number.size-lg { height: var(--poad-control-h-lg); font-size: var(--poad-font-size-lg); }
|
|
15
|
+
.poad-number:focus-within { border-color: var(--poad-accent); box-shadow: 0 0 0 3px var(--poad-ring); }
|
|
16
|
+
.poad-number.is-invalid { border-color: var(--poad-danger); }
|
|
17
|
+
.poad-number.is-invalid:focus-within { box-shadow: 0 0 0 3px var(--poad-danger-soft); }
|
|
18
|
+
.poad-number.is-disabled { opacity: .6; background: var(--poad-bg-subtle); }
|
|
19
|
+
.poad-number .poad-number__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; text-align: end; }
|
|
20
|
+
.poad-number .poad-number__affix { display: inline-flex; align-items: center; padding: 0 8px; color: var(--poad-fg-muted); font-size: var(--poad-font-size-sm); white-space: pre; }
|
|
21
|
+
.poad-number .poad-number__affix:first-child { padding-inline-end: 0; }
|
|
22
|
+
.poad-number .poad-number__btns { display: flex; flex-direction: column; border-inline-start: 1px solid var(--poad-input-border); width: 22px; }
|
|
23
|
+
.poad-number .poad-number__btns > button { flex: 1; border: 0; background: transparent; color: var(--poad-fg-muted); cursor: pointer; display: grid; place-items: center; padding: 0; }
|
|
24
|
+
.poad-number .poad-number__btns > button:hover:not([disabled]) { background: var(--poad-hover); color: var(--poad-fg); }
|
|
25
|
+
.poad-number .poad-number__btns > button[disabled] { opacity: .4; cursor: default; }
|
|
26
|
+
.poad-number .poad-number__btns > button:first-child { border-bottom: 1px solid var(--poad-input-border); }
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @poadio/ui-core — liste d'options d'un panneau de sélection (`.poad-optlist`, `role="listbox"`), partagée par la
|
|
3
|
+
* liste déroulante et la liste à choix multiples. Source unique pour tous les paquets de rendu : ui-angular l'inclut
|
|
4
|
+
* dans `poad-option-list` (encapsulation désactivée), ui-react le fait charger par l'application avec `select.css`.
|
|
5
|
+
* CSS pur, ne lit que les jetons --poad-* (charger `tokens.css` avant).
|
|
6
|
+
*
|
|
7
|
+
* Anatomie : `.poad-optlist` > `.poad-optlist__group` (titre de groupe), `.poad-optlist__opt` (`role="option"`, classes
|
|
8
|
+
* `is-active`, `is-selected`, `is-disabled` de `selectOptionProps()`) > `.poad-optlist__tick` / `.poad-optlist__check`
|
|
9
|
+
* (`.is-on`), `.poad-optlist__icon`, `.poad-optlist__label`, `.poad-optlist__hint` ; `.poad-optlist__empty`.
|
|
10
|
+
* Repris tel quel du composant Angular, déjà sans encapsulation.
|
|
11
|
+
*/
|
|
12
|
+
.poad-optlist { display: block; overflow-y: auto; overscroll-behavior: contain; padding: 4px; outline: none; font-family: var(--poad-font); font-size: var(--poad-font-size); color: var(--poad-fg); }
|
|
13
|
+
.poad-optlist__group { font: 600 10px/1 var(--poad-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--poad-fg-muted); padding: 8px 8px 4px; }
|
|
14
|
+
.poad-optlist__opt { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; user-select: none; line-height: 1.3; }
|
|
15
|
+
.poad-optlist__opt.is-active { background: var(--poad-hover); }
|
|
16
|
+
.poad-optlist__opt.is-selected { background: var(--poad-accent-soft); color: var(--poad-accent); font-weight: 500; }
|
|
17
|
+
.poad-optlist__opt.is-selected.is-active { background: color-mix(in srgb, var(--poad-accent-soft) 70%, var(--poad-hover)); }
|
|
18
|
+
.poad-optlist__opt.is-disabled { opacity: .45; cursor: not-allowed; }
|
|
19
|
+
.poad-optlist__tick { color: var(--poad-accent); flex: none; }
|
|
20
|
+
.poad-optlist__icon { color: var(--poad-fg-muted); flex: none; }
|
|
21
|
+
.poad-optlist__opt.is-selected .poad-optlist__icon { color: inherit; }
|
|
22
|
+
.poad-optlist__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
23
|
+
.poad-optlist__hint { margin-inline-start: auto; font: 11px var(--poad-font-mono); color: var(--poad-fg-muted); flex: none; }
|
|
24
|
+
.poad-optlist__check { 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); flex: none; transition: background var(--poad-dur), border-color var(--poad-dur); }
|
|
25
|
+
.poad-optlist__check poad-icon { visibility: hidden; }
|
|
26
|
+
.poad-optlist__check.is-on { background: var(--poad-accent); border-color: var(--poad-accent); }
|
|
27
|
+
.poad-optlist__check.is-on poad-icon { visibility: visible; }
|
|
28
|
+
.poad-optlist__empty { padding: 14px 10px; text-align: center; color: var(--poad-fg-muted); font-size: var(--poad-font-size-sm); }
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @poadio/ui-core — liste réordonnable (`.poad-orderlist`). Source unique du style pour tous les paquets de rendu :
|
|
3
|
+
* ui-angular l'inclut dans `poad-orderlist` (encapsulation désactivée), les autres rendus le font charger par
|
|
4
|
+
* l'application. CSS pur, ne lit que les jetons --poad-* (charger `tokens.css` avant ; boutons : `button.css` ; icônes :
|
|
5
|
+
* `icon.css`).
|
|
6
|
+
*
|
|
7
|
+
* Classes de la racine (`orderlistClasses()`) : `controls-side|top|none`, `is-disabled`, `is-striped`, `is-draggable`,
|
|
8
|
+
* `is-dragging`. Parties : `.poad-orderlist__ctrl` (boutons), `.poad-orderlist__box` > `.poad-orderlist__hd` (compteur
|
|
9
|
+
* `small`), `.poad-orderlist__filter` (`input.poad-orderlist__query`), `.poad-orderlist__list` > `.poad-orderlist__item`
|
|
10
|
+
* (`is-active`, `is-selected`, `is-dragging`, `is-ghost` (aperçu flottant), `is-drop-before|after` ; `.poad-orderlist__handle`,
|
|
11
|
+
* `.poad-orderlist__label`), `.poad-orderlist__empty` ; `.poad-orderlist__hint` et `.poad-orderlist__live` (cachées à
|
|
12
|
+
* l'œil, lues par les lecteurs d'écran). Écrit à partir des styles `:host` du composant Angular (anciens noms : `dh`,
|
|
13
|
+
* `lbl`, `input` du filtre ; le fantôme du CDK devient un trait de dépôt).
|
|
14
|
+
*/
|
|
15
|
+
.poad-orderlist { display: flex; gap: 8px; align-items: flex-start; min-width: 0; box-sizing: border-box; font-family: var(--poad-font); font-size: var(--poad-font-size); color: var(--poad-fg); }
|
|
16
|
+
.poad-orderlist.controls-top { flex-direction: column; align-items: stretch; }
|
|
17
|
+
.poad-orderlist.is-disabled { opacity: .6; }
|
|
18
|
+
.poad-orderlist .poad-orderlist__ctrl { display: flex; flex-direction: column; gap: 4px; flex: none; }
|
|
19
|
+
.poad-orderlist.controls-top .poad-orderlist__ctrl { flex-direction: row; }
|
|
20
|
+
.poad-orderlist .poad-orderlist__box { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; box-sizing: border-box; background: var(--poad-input-bg); border: 1px solid var(--poad-input-border); border-radius: var(--poad-radius); overflow: hidden; transition: border-color var(--poad-dur), box-shadow var(--poad-dur); }
|
|
21
|
+
.poad-orderlist .poad-orderlist__box:focus-within { border-color: var(--poad-accent); box-shadow: 0 0 0 3px var(--poad-ring); }
|
|
22
|
+
.poad-orderlist .poad-orderlist__hd { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-weight: 600; font-size: 12.5px; border-bottom: 1px solid var(--poad-border); background: var(--poad-bg-subtle); }
|
|
23
|
+
.poad-orderlist .poad-orderlist__hd small { margin-inline-start: auto; font: 500 10.5px var(--poad-font-mono); padding: 1px 6px; border-radius: 999px; background: var(--poad-elevated); color: var(--poad-fg-secondary); }
|
|
24
|
+
.poad-orderlist .poad-orderlist__filter { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid var(--poad-border); color: var(--poad-fg-muted); }
|
|
25
|
+
.poad-orderlist .poad-orderlist__query { flex: 1 1 0; width: 0; min-width: 0; border: 0; outline: 0; padding: 0; background: transparent; color: var(--poad-fg); font: inherit; font-size: var(--poad-font-size-sm); }
|
|
26
|
+
.poad-orderlist .poad-orderlist__list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px; outline: none; min-height: 40px; box-sizing: border-box; }
|
|
27
|
+
.poad-orderlist .poad-orderlist__item { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; cursor: default; user-select: none; -webkit-user-select: none; background: var(--poad-input-bg); line-height: 1.3; }
|
|
28
|
+
.poad-orderlist.is-draggable .poad-orderlist__item { cursor: grab; }
|
|
29
|
+
.poad-orderlist.is-striped .poad-orderlist__item:nth-child(even) { background: var(--poad-bg-subtle); }
|
|
30
|
+
.poad-orderlist .poad-orderlist__item:hover, .poad-orderlist .poad-orderlist__item.is-active { background: var(--poad-hover); }
|
|
31
|
+
.poad-orderlist .poad-orderlist__item.is-selected { background: var(--poad-accent-soft); color: var(--poad-accent); font-weight: 500; }
|
|
32
|
+
.poad-orderlist .poad-orderlist__list:focus-visible .poad-orderlist__item.is-active { box-shadow: inset 0 0 0 1px var(--poad-accent); }
|
|
33
|
+
.poad-orderlist .poad-orderlist__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
34
|
+
.poad-orderlist .poad-orderlist__handle { color: var(--poad-fg-muted); display: inline-grid; place-items: center; flex: none; touch-action: none; padding: 2px; margin: -2px; border-radius: 4px; }
|
|
35
|
+
.poad-orderlist.is-draggable .poad-orderlist__handle { cursor: grab; }
|
|
36
|
+
.poad-orderlist.is-dragging, .poad-orderlist.is-dragging .poad-orderlist__item, .poad-orderlist.is-dragging .poad-orderlist__handle { cursor: grabbing; }
|
|
37
|
+
/* au pointeur, l'élément reste à sa place (emplacement d'origine, en retrait) ; son aperçu flottant (`is-ghost`, brique dnd,
|
|
38
|
+
posé dans body sous une enveloppe `.poad-orderlist.poad-dnd-ghost`) suit le pointeur sur les deux axes */
|
|
39
|
+
.poad-orderlist .poad-orderlist__item.is-dragging { outline: 1px solid var(--poad-accent); outline-offset: -1px; }
|
|
40
|
+
.poad-orderlist.is-dragging .poad-orderlist__item.is-dragging { opacity: .45; outline-style: dashed; }
|
|
41
|
+
.poad-orderlist .poad-orderlist__item.is-ghost { background: var(--poad-overlay); color: var(--poad-fg); box-shadow: var(--poad-shadow-lg); outline: 1px solid var(--poad-accent); outline-offset: 0; opacity: .96; cursor: grabbing; }
|
|
42
|
+
/* trait de dépôt : à cheval sur la limite entre deux éléments, au-dessus de leurs fonds (z-index : le suivant ne le
|
|
43
|
+
recouvre plus), un anneau en tête pour ne pas le confondre avec l'anneau de focus ou le fond d'un élément choisi,
|
|
44
|
+
liseré de la couleur du fond pour rester net sur `is-selected` */
|
|
45
|
+
.poad-orderlist .poad-orderlist__item.is-drop-before::before, .poad-orderlist .poad-orderlist__item.is-drop-after::after { content: ''; position: absolute; z-index: 3; inset-inline: 0 4px; height: 9px; pointer-events: none;
|
|
46
|
+
background: radial-gradient(circle at 5px 50%, var(--poad-input-bg) 0 1.5px, var(--poad-accent) 2px 4px, transparent 4.5px), linear-gradient(var(--poad-accent), var(--poad-accent)) 9px 50% / calc(100% - 9px) 2px no-repeat;
|
|
47
|
+
filter: drop-shadow(0 0 1px var(--poad-input-bg)); }
|
|
48
|
+
.poad-orderlist .poad-orderlist__item.is-drop-before::before { top: -4.5px; }
|
|
49
|
+
.poad-orderlist .poad-orderlist__item.is-drop-after::after { bottom: -4.5px; }
|
|
50
|
+
.poad-orderlist .poad-orderlist__item.is-drop-before:dir(rtl)::before, .poad-orderlist .poad-orderlist__item.is-drop-after:dir(rtl)::after { inset-inline: 4px 0; transform: scaleX(-1); }
|
|
51
|
+
.poad-orderlist .poad-orderlist__empty { padding: 14px; text-align: center; color: var(--poad-fg-muted); font-size: var(--poad-font-size-sm); }
|
|
52
|
+
.poad-orderlist .poad-orderlist__hint, .poad-orderlist .poad-orderlist__live { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
|
|
53
|
+
@media (hover: none) { .poad-orderlist.is-draggable .poad-orderlist__item { cursor: default; } }
|
|
54
|
+
@media (prefers-reduced-motion: reduce) { .poad-orderlist .poad-orderlist__box { transition: none; } }
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @poadio/ui-core — organigramme (`.poad-orgchart`). Source unique du style pour tous les paquets de rendu : ui-angular
|
|
3
|
+
* l'inclut dans `poad-orgchart` (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 ; icônes : `icon.css` ; avatar : `avatar.css`).
|
|
5
|
+
*
|
|
6
|
+
* Racine `.poad-orgchart` (`is-horizontal`, `is-compact`, `is-zoomable`, `is-panning` ; variables `--oc-line`,
|
|
7
|
+
* `--oc-gap`, `--oc-h`) > `.oc-zoom` (boutons) et `.oc-viewport` > `.oc-content` > `ul.oc-level` > `li.oc-cell`
|
|
8
|
+
* (`has-children`, `is-single`) > `.oc-node` (`is-selected`, `is-active`, `is-selectable`) > `.oc-default` (avatar,
|
|
9
|
+
* `.oc-txt` > `.oc-lbl`, `.oc-sub`), `button.oc-tg`. Écrit à partir des styles `:host` du composant Angular (mêmes noms
|
|
10
|
+
* de parties) ; nouveau : connecteurs justes de droite à gauche (bords logiques), focus visible sur le nœud (focus
|
|
11
|
+
* itinérant), vue qui défile à l'horizontale quand l'organigramme est plus large qu'elle.
|
|
12
|
+
*/
|
|
13
|
+
/* hôte du composant web (sans la classe) : un bloc qui ne s'élargit pas à son contenu (dans une grille ou une boîte
|
|
14
|
+
flexible, la largeur de l'organigramme déplié le gardait hors du mode compact, vu au navigateur à 390 px) */
|
|
15
|
+
poad-orgchart:not(.poad-orgchart) { display: block; min-width: 0; }
|
|
16
|
+
.poad-orgchart { display: block; position: relative; min-width: 0; overflow: hidden; outline: none; font-family: var(--poad-font); font-size: var(--poad-font-size); color: var(--poad-fg); --oc-line: var(--poad-border-strong); --oc-gap: 24px; --oc-h: 22px; }
|
|
17
|
+
.poad-orgchart .oc-viewport { overflow: auto; width: 100%; height: 100%; min-height: 80px; overscroll-behavior-x: contain; }
|
|
18
|
+
.poad-orgchart.is-zoomable .oc-viewport { overflow: hidden; cursor: grab; touch-action: none; }
|
|
19
|
+
.poad-orgchart.is-zoomable.is-panning .oc-viewport { cursor: grabbing; }
|
|
20
|
+
.poad-orgchart .oc-content { display: inline-block; min-width: 100%; box-sizing: border-box; padding: 12px; transform-origin: 0 0; }
|
|
21
|
+
.poad-orgchart.is-zoomable .oc-content { min-width: 0; }
|
|
22
|
+
.poad-orgchart .oc-level { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; justify-content: center; }
|
|
23
|
+
.poad-orgchart .oc-cell { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 var(--oc-gap); }
|
|
24
|
+
/* connecteurs (vertical) : trait au-dessus de chaque cellule (sauf racines), trait horizontal reliant les frères, trait sous le parent */
|
|
25
|
+
.poad-orgchart .oc-level .oc-level .oc-cell::before { content: ''; position: absolute; top: 0; inset-inline-start: 50%; width: 1px; height: var(--oc-h); background: var(--oc-line); }
|
|
26
|
+
.poad-orgchart .oc-level .oc-level .oc-cell::after { content: ''; position: absolute; top: 0; inset-inline: 0; height: 1px; background: var(--oc-line); }
|
|
27
|
+
.poad-orgchart .oc-level .oc-level .oc-cell:first-child::after { inset-inline-start: 50%; }
|
|
28
|
+
.poad-orgchart .oc-level .oc-level .oc-cell:last-child::after { inset-inline-end: 50%; }
|
|
29
|
+
.poad-orgchart .oc-level .oc-level .oc-cell.is-single::after { display: none; }
|
|
30
|
+
.poad-orgchart .oc-level .oc-level { padding-top: var(--oc-h); }
|
|
31
|
+
.poad-orgchart .oc-cell.has-children > .oc-node::after { content: ''; position: absolute; inset-inline-start: 50%; bottom: calc(-1 * var(--oc-h)); width: 1px; height: var(--oc-h); background: var(--oc-line); }
|
|
32
|
+
.poad-orgchart .oc-level .oc-level .oc-node { margin-top: var(--oc-h); }
|
|
33
|
+
.poad-orgchart .oc-node { position: relative; background: var(--poad-surface); border: 1px solid var(--poad-border); border-radius: 8px; box-shadow: var(--poad-shadow-sm); padding: 8px 12px; min-width: 120px; box-sizing: border-box; outline: none; transition: border-color var(--poad-dur), box-shadow var(--poad-dur); }
|
|
34
|
+
.poad-orgchart .oc-node.is-selectable { cursor: pointer; }
|
|
35
|
+
.poad-orgchart .oc-node.is-selectable:hover { border-color: var(--poad-accent); }
|
|
36
|
+
.poad-orgchart .oc-node.is-selected { border-color: var(--poad-accent); background: var(--poad-accent-soft); box-shadow: 0 0 0 1px var(--poad-accent); }
|
|
37
|
+
.poad-orgchart .oc-node:focus-visible, .poad-orgchart .oc-node.is-active:focus { outline: 2px solid var(--poad-ring); outline-offset: 1px; }
|
|
38
|
+
.poad-orgchart .oc-default { display: flex; align-items: center; gap: 8px; }
|
|
39
|
+
.poad-orgchart .oc-txt { display: grid; min-width: 0; }
|
|
40
|
+
.poad-orgchart .oc-lbl { font-weight: 500; font-size: 12.5px; white-space: nowrap; }
|
|
41
|
+
.poad-orgchart .oc-sub { font-size: 11px; color: var(--poad-fg-secondary); white-space: nowrap; }
|
|
42
|
+
.poad-orgchart .oc-tg { position: absolute; inset-inline-start: 50%; bottom: -10px; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--oc-line); background: var(--poad-surface); color: var(--poad-fg-secondary); display: grid; place-items: center; cursor: pointer; padding: 0; z-index: 1; }
|
|
43
|
+
.poad-orgchart .oc-tg:dir(rtl) { transform: translateX(50%); }
|
|
44
|
+
.poad-orgchart .oc-tg:hover { border-color: var(--poad-accent); color: var(--poad-accent); }
|
|
45
|
+
/* horizontal : enfants à la suite (à droite ; à gauche de droite à gauche) */
|
|
46
|
+
.poad-orgchart.is-horizontal .oc-level { flex-direction: column; align-items: flex-start; }
|
|
47
|
+
.poad-orgchart.is-horizontal .oc-cell { flex-direction: row; align-items: center; padding: var(--oc-gap) 0; }
|
|
48
|
+
.poad-orgchart.is-horizontal .oc-level .oc-level { padding-top: 0; padding-inline-start: var(--oc-h); }
|
|
49
|
+
.poad-orgchart.is-horizontal .oc-level .oc-level .oc-cell::before { top: 50%; inset-inline-start: 0; width: var(--oc-h); height: 1px; }
|
|
50
|
+
.poad-orgchart.is-horizontal .oc-level .oc-level .oc-cell::after { top: 0; bottom: 0; inset-inline: 0 auto; width: 1px; height: auto; }
|
|
51
|
+
.poad-orgchart.is-horizontal .oc-level .oc-level .oc-cell:first-child::after { top: 50%; inset-inline-start: 0; }
|
|
52
|
+
.poad-orgchart.is-horizontal .oc-level .oc-level .oc-cell:last-child::after { bottom: 50%; inset-inline-end: auto; }
|
|
53
|
+
.poad-orgchart.is-horizontal .oc-level .oc-level .oc-node { margin-top: 0; margin-inline-start: var(--oc-h); }
|
|
54
|
+
.poad-orgchart.is-horizontal .oc-cell.has-children > .oc-node::after { inset-inline-start: auto; inset-inline-end: calc(-1 * var(--oc-h)); bottom: auto; top: 50%; width: var(--oc-h); height: 1px; }
|
|
55
|
+
.poad-orgchart.is-horizontal .oc-tg { inset-inline-start: auto; inset-inline-end: -10px; bottom: auto; top: 50%; transform: translateY(-50%); }
|
|
56
|
+
/* compact : liste indentée */
|
|
57
|
+
.poad-orgchart.is-compact .oc-content { display: block; transform: none !important; padding: 4px; }
|
|
58
|
+
.poad-orgchart.is-compact .oc-level { flex-direction: column; align-items: stretch; }
|
|
59
|
+
.poad-orgchart.is-compact .oc-cell { align-items: stretch; padding: 0; }
|
|
60
|
+
.poad-orgchart.is-compact .oc-level .oc-level { padding: 0; padding-inline-start: 18px; border-inline-start: 1px solid var(--oc-line); margin-inline-start: 12px; }
|
|
61
|
+
.poad-orgchart.is-compact .oc-cell::before, .poad-orgchart.is-compact .oc-cell::after, .poad-orgchart.is-compact .oc-node::after { display: none !important; }
|
|
62
|
+
.poad-orgchart.is-compact .oc-node { display: flex; align-items: center; gap: 8px; margin: 4px 0 !important; width: auto !important; min-width: 0; box-shadow: none; }
|
|
63
|
+
.poad-orgchart.is-compact .oc-default { min-width: 0; }
|
|
64
|
+
.poad-orgchart.is-compact .oc-lbl, .poad-orgchart.is-compact .oc-sub { overflow: hidden; text-overflow: ellipsis; }
|
|
65
|
+
.poad-orgchart.is-compact .oc-tg { position: static; transform: none; margin-inline-start: auto; flex: none; }
|
|
66
|
+
.poad-orgchart .oc-zoom { position: absolute; inset-inline-end: 8px; top: 8px; z-index: 2; display: flex; flex-direction: column; background: var(--poad-surface); border: 1px solid var(--poad-border); border-radius: 8px; overflow: hidden; box-shadow: var(--poad-shadow-sm); }
|
|
67
|
+
.poad-orgchart .oc-zoom button { width: 28px; height: 28px; border: 0; border-bottom: 1px solid var(--poad-border); background: transparent; color: var(--poad-fg-secondary); display: grid; place-items: center; cursor: pointer; }
|
|
68
|
+
.poad-orgchart .oc-zoom button:last-child { border-bottom: 0; }
|
|
69
|
+
.poad-orgchart .oc-zoom button:hover { background: var(--poad-hover); color: var(--poad-fg); }
|
|
70
|
+
@media (hover: none) { .poad-orgchart .oc-tg { width: 24px; height: 24px; bottom: -13px; } }
|
|
71
|
+
@media (prefers-reduced-motion: reduce) { .poad-orgchart .oc-node { transition: none; } }
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Paginateur (.poad-paginator) — partagé par tous les rendus : poad-paginator d'ui-angular (encapsulation désactivée),
|
|
3
|
+
* PoadPaginator d'ui-react et d'ui-vue, <poad-paginator> d'ui-elements. Calculs : machine `paginator` d'@poadio/ui-core.
|
|
4
|
+
*
|
|
5
|
+
* .poad-paginator (role="navigation") > span.poad-paginator__rpp > (span, .poad-select.poad-paginator__sel — liste déroulante de la
|
|
6
|
+
* bibliothèque, à importer avec `select.css` et `option-list.css` ; plus de <select> natif),
|
|
7
|
+
* span.poad-paginator__grow, span.poad-paginator__report, span.poad-paginator__pages > button[.is-on] | span.poad-paginator__dots
|
|
8
|
+
*/
|
|
9
|
+
.poad-paginator { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-width: 0; font: var(--poad-font-size-sm) var(--poad-font); color: var(--poad-fg-secondary); }
|
|
10
|
+
.poad-paginator.is-hidden { display: none; }
|
|
11
|
+
.poad-paginator .poad-paginator__grow { flex: 1; }
|
|
12
|
+
.poad-paginator .poad-paginator__rpp { display: inline-flex; align-items: center; gap: 8px; }
|
|
13
|
+
/* <poad-select> des composants web : hôte en display: contents, la liste est son enfant .poad-select */
|
|
14
|
+
.poad-paginator .poad-paginator__sel, .poad-paginator .poad-paginator__sel > .poad-select { width: auto; min-width: 72px; }
|
|
15
|
+
.poad-paginator .poad-paginator__rpp > span { white-space: nowrap; }
|
|
16
|
+
/* le compte ne se coupe jamais (« 1–3 sur 5 ») ; à l'étroit, le paginateur passe à la ligne plutôt que de déborder
|
|
17
|
+
* (marge pour des polices plus larges que celles du poste : la CI n'a pas les mêmes) */
|
|
18
|
+
.poad-paginator .poad-paginator__report { font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
19
|
+
.poad-paginator .poad-paginator__pages { display: inline-flex; flex-wrap: wrap; gap: 2px; align-items: center; min-width: 0; max-width: 100%; }
|
|
20
|
+
.poad-paginator .poad-paginator__pages > button { min-width: 26px; height: 26px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: var(--poad-fg-secondary); font: 500 var(--poad-font-size-sm) var(--poad-font); cursor: pointer; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
|
|
21
|
+
.poad-paginator .poad-paginator__pages > button.is-on { background: var(--poad-accent-soft); color: var(--poad-accent); }
|
|
22
|
+
.poad-paginator .poad-paginator__pages > button:hover:not(.is-on):not([disabled]) { background: var(--poad-hover); color: var(--poad-fg); }
|
|
23
|
+
.poad-paginator .poad-paginator__pages > button[disabled] { opacity: .4; cursor: default; }
|
|
24
|
+
.poad-paginator .poad-paginator__pages > button:focus-visible { outline: 2px solid var(--poad-ring); outline-offset: -1px; }
|
|
25
|
+
.poad-paginator .poad-paginator__dots { min-width: 20px; text-align: center; color: var(--poad-fg-muted); }
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @poadio/ui-core — panneau (`.poad-panel`), repliable ou non. Source unique du style pour tous les paquets de rendu :
|
|
3
|
+
* ui-angular l'inclut dans `poad-panel` (encapsulation désactivée), les autres rendus le font charger par
|
|
4
|
+
* l'application. CSS pur, ne lit que les jetons --poad-* (charger `tokens.css` avant ; le chevron : `icon.css`).
|
|
5
|
+
*
|
|
6
|
+
* Classes de la racine (`panelClasses()`) : `is-collapsed`, `is-flat`, `var-outline`, `is-headless`. Parties :
|
|
7
|
+
* `.poad-panel__head` > `.poad-panel__toggle` (`.poad-panel__chev`), `.poad-panel__title`, `.poad-panel__actions` ;
|
|
8
|
+
* `.poad-panel__wrap` (zone repliable : `grid-template-rows` de 1fr à 0fr, sans animation sous
|
|
9
|
+
* `prefers-reduced-motion`) > `.poad-panel__body` > `.poad-panel__content` + `.poad-panel__foot`.
|
|
10
|
+
* Écrit à partir des styles `:host` du composant Angular, une règle pour une règle : `:host(X)` → `.poad-panel X`,
|
|
11
|
+
* une partie → `.poad-panel .partie` (anciens noms : `pn__hd`, `pn__toggle`…) ; propriétés logiques sur l'axe en ligne.
|
|
12
|
+
*/
|
|
13
|
+
.poad-panel { display: block; border: 1px solid var(--poad-border); border-radius: var(--poad-radius-lg); background: var(--poad-surface); box-shadow: var(--poad-shadow-sm); overflow: hidden; font-family: var(--poad-font); font-size: var(--poad-font-size); color: var(--poad-fg); }
|
|
14
|
+
.poad-panel.is-flat { box-shadow: none; } .poad-panel.var-outline .poad-panel__head { background: transparent; }
|
|
15
|
+
.poad-panel .poad-panel__head { display: flex; align-items: center; gap: 8px; min-height: 42px; padding-block: 0; padding-inline: 12px 8px; background: var(--poad-bg-subtle); border-bottom: 1px solid var(--poad-border); }
|
|
16
|
+
.poad-panel.is-headless .poad-panel__head { display: none; }
|
|
17
|
+
.poad-panel.is-collapsed .poad-panel__head { border-bottom-color: transparent; }
|
|
18
|
+
.poad-panel .poad-panel__toggle { all: unset; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; cursor: pointer; color: var(--poad-fg-muted); margin-inline-start: -4px; }
|
|
19
|
+
.poad-panel .poad-panel__toggle:hover { background: var(--poad-elevated); color: var(--poad-fg); } .poad-panel .poad-panel__toggle:focus-visible { outline: 2px solid var(--poad-ring); }
|
|
20
|
+
.poad-panel .poad-panel__chev { transition: transform var(--poad-dur) var(--poad-ease); } .poad-panel:not(.is-collapsed) .poad-panel__chev { transform: rotate(90deg); }
|
|
21
|
+
.poad-panel .poad-panel__title { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
22
|
+
.poad-panel .poad-panel__actions { display: inline-flex; align-items: center; gap: 2px; }
|
|
23
|
+
.poad-panel .poad-panel__wrap { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 160ms var(--poad-ease); }
|
|
24
|
+
.poad-panel.is-collapsed .poad-panel__wrap { grid-template-rows: 0fr; }
|
|
25
|
+
.poad-panel .poad-panel__body { min-height: 0; overflow: hidden; }
|
|
26
|
+
.poad-panel .poad-panel__content { padding: 14px 16px; }
|
|
27
|
+
.poad-panel .poad-panel__foot:not(:empty) { padding: 10px 16px; border-top: 1px solid var(--poad-border); background: var(--poad-bg-subtle); }
|
|
28
|
+
@media (prefers-reduced-motion: reduce) { .poad-panel .poad-panel__wrap, .poad-panel .poad-panel__chev { transition: none; } }
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @poadio/ui-core — mot de passe (`.poad-password`). Source unique du style pour tous les paquets de rendu :
|
|
3
|
+
* ui-angular l'inclut dans `poad-password` (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 ; l'œil : `icon.css`).
|
|
5
|
+
*
|
|
6
|
+
* Racine `.poad-password` (`is-disabled`, `is-invalid`) > `.poad-password__box` > `<input>` + `<button>` œil ;
|
|
7
|
+
* `.poad-password__meter[data-level=1…4]` > 4 × `<i>` + `<span>`.
|
|
8
|
+
* Écrit à partir des styles `:host` du composant Angular, une règle pour une règle ; `input` / `button` du gabarit →
|
|
9
|
+
* enfants directs de `.poad-password__box`, `i` / `span` → enfants directs de `.poad-password__meter`.
|
|
10
|
+
*/
|
|
11
|
+
.poad-password { display: grid; gap: 6px; font-family: var(--poad-font); font-size: var(--poad-font-size); }
|
|
12
|
+
.poad-password .poad-password__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); }
|
|
13
|
+
.poad-password .poad-password__box:focus-within { border-color: var(--poad-accent); box-shadow: 0 0 0 3px var(--poad-ring); }
|
|
14
|
+
.poad-password.is-invalid .poad-password__box { border-color: var(--poad-danger); }
|
|
15
|
+
.poad-password.is-disabled .poad-password__box { opacity: .6; background: var(--poad-bg-subtle); }
|
|
16
|
+
.poad-password__box > input { flex: 1 1 0; width: 0; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--poad-fg); font: inherit; padding: 0 var(--poad-control-px); letter-spacing: .04em; }
|
|
17
|
+
.poad-password__box > input::placeholder { color: var(--poad-fg-muted); letter-spacing: 0; }
|
|
18
|
+
.poad-password__box > button { border: 0; background: transparent; color: var(--poad-fg-muted); cursor: pointer; padding: 0 10px; display: grid; place-items: center; }
|
|
19
|
+
.poad-password__box > button:hover { color: var(--poad-fg); }
|
|
20
|
+
.poad-password .poad-password__meter { display: flex; align-items: center; gap: 4px; }
|
|
21
|
+
.poad-password__meter > i { flex: 1; height: 4px; border-radius: 2px; background: var(--poad-elevated); }
|
|
22
|
+
.poad-password__meter > span { font-size: 11px; color: var(--poad-fg-muted); margin-inline-start: 6px; min-width: 60px; }
|
|
23
|
+
.poad-password__meter[data-level="1"] > i:nth-child(-n+1) { background: var(--poad-danger); }
|
|
24
|
+
.poad-password__meter[data-level="2"] > i:nth-child(-n+2) { background: var(--poad-warning); }
|
|
25
|
+
.poad-password__meter[data-level="3"] > i:nth-child(-n+3) { background: var(--poad-success); }
|
|
26
|
+
.poad-password__meter[data-level="4"] > i:nth-child(-n+4) { background: var(--poad-success); }
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @poadio/ui-core — double liste (`.poad-picklist`). Source unique du style pour tous les paquets de rendu : ui-angular
|
|
3
|
+
* l'inclut dans `poad-picklist` (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 ; boutons : `button.css` ; icônes : `icon.css`).
|
|
5
|
+
*
|
|
6
|
+
* Classes de la racine (`picklistClasses()`) : `is-stacked` (listes empilées sous `stackAt`, conteneur), `is-disabled`,
|
|
7
|
+
* `is-dragging`. Parties : `.poad-picklist__ctrl` (`is-mid` : transferts ; `is-side` : réordonner), `.poad-picklist__box`
|
|
8
|
+
* (`is-target`) > `.poad-picklist__hd` (compteur `small`), `.poad-picklist__filter` (`input.poad-picklist__query`),
|
|
9
|
+
* `.poad-picklist__list` (`is-draggable`, `is-receiving`) > `.poad-picklist__item` (`is-active`, `is-selected`,
|
|
10
|
+
* `is-dragging`, `is-ghost` (aperçu flottant), `is-drop-before|after` ; `.poad-picklist__handle`, `.poad-picklist__label`), `.poad-picklist__empty` ;
|
|
11
|
+
* `.poad-picklist__hint` et `.poad-picklist__live` (cachées à l'œil). Écrit à partir des styles `:host` du composant
|
|
12
|
+
* Angular (anciens noms `pl-*` ; le fantôme du CDK devient un trait de dépôt, `cdk-drop-list-receiving` devient
|
|
13
|
+
* `is-receiving`).
|
|
14
|
+
*/
|
|
15
|
+
.poad-picklist { display: flex; gap: 10px; align-items: stretch; min-width: 0; box-sizing: border-box; font-family: var(--poad-font); font-size: var(--poad-font-size); color: var(--poad-fg); }
|
|
16
|
+
.poad-picklist.is-disabled { opacity: .6; }
|
|
17
|
+
.poad-picklist .poad-picklist__box { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; box-sizing: border-box; background: var(--poad-input-bg); border: 1px solid var(--poad-input-border); border-radius: var(--poad-radius); overflow: hidden; transition: border-color var(--poad-dur), box-shadow var(--poad-dur); }
|
|
18
|
+
.poad-picklist .poad-picklist__box:focus-within { border-color: var(--poad-accent); box-shadow: 0 0 0 3px var(--poad-ring); }
|
|
19
|
+
.poad-picklist .poad-picklist__hd { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-weight: 600; font-size: 12.5px; border-bottom: 1px solid var(--poad-border); background: var(--poad-bg-subtle); }
|
|
20
|
+
.poad-picklist .poad-picklist__hd small { margin-inline-start: auto; font: 500 10.5px var(--poad-font-mono); padding: 1px 6px; border-radius: 999px; background: var(--poad-elevated); color: var(--poad-fg-secondary); }
|
|
21
|
+
.poad-picklist .poad-picklist__filter { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid var(--poad-border); color: var(--poad-fg-muted); }
|
|
22
|
+
.poad-picklist .poad-picklist__query { flex: 1 1 0; width: 0; min-width: 0; border: 0; outline: 0; padding: 0; background: transparent; color: var(--poad-fg); font: inherit; font-size: var(--poad-font-size-sm); }
|
|
23
|
+
.poad-picklist .poad-picklist__list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px; outline: none; min-height: 120px; box-sizing: border-box; transition: background var(--poad-dur); }
|
|
24
|
+
.poad-picklist .poad-picklist__list.is-receiving { background: var(--poad-accent-soft); }
|
|
25
|
+
.poad-picklist .poad-picklist__item { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; cursor: default; user-select: none; -webkit-user-select: none; background: var(--poad-input-bg); line-height: 1.3; }
|
|
26
|
+
.poad-picklist .poad-picklist__list.is-draggable .poad-picklist__item { cursor: grab; }
|
|
27
|
+
.poad-picklist .poad-picklist__item:hover, .poad-picklist .poad-picklist__item.is-active { background: var(--poad-hover); }
|
|
28
|
+
.poad-picklist .poad-picklist__item.is-selected { background: var(--poad-accent-soft); color: var(--poad-accent); font-weight: 500; }
|
|
29
|
+
.poad-picklist .poad-picklist__list:focus-visible .poad-picklist__item.is-active { box-shadow: inset 0 0 0 1px var(--poad-accent); }
|
|
30
|
+
.poad-picklist .poad-picklist__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
31
|
+
.poad-picklist .poad-picklist__handle { color: var(--poad-fg-muted); display: inline-grid; place-items: center; flex: none; touch-action: none; padding: 2px; margin: -2px; border-radius: 4px; }
|
|
32
|
+
.poad-picklist .poad-picklist__list.is-draggable .poad-picklist__handle { cursor: grab; }
|
|
33
|
+
.poad-picklist.is-dragging, .poad-picklist.is-dragging .poad-picklist__item, .poad-picklist.is-dragging .poad-picklist__handle { cursor: grabbing; }
|
|
34
|
+
/* au pointeur, l'élément reste à sa place (emplacement d'origine, en retrait) ; son aperçu flottant (`is-ghost`, brique dnd,
|
|
35
|
+
posé dans body sous une enveloppe `.poad-picklist.poad-dnd-ghost`) suit le pointeur sur les deux axes */
|
|
36
|
+
.poad-picklist .poad-picklist__item.is-dragging { outline: 1px solid var(--poad-accent); outline-offset: -1px; }
|
|
37
|
+
.poad-picklist.is-dragging .poad-picklist__item.is-dragging { opacity: .45; outline-style: dashed; }
|
|
38
|
+
.poad-picklist .poad-picklist__item.is-ghost { background: var(--poad-overlay); color: var(--poad-fg); box-shadow: var(--poad-shadow-lg); outline: 1px solid var(--poad-accent); outline-offset: 0; opacity: .96; cursor: grabbing; }
|
|
39
|
+
/* trait de dépôt : à cheval sur la limite entre deux éléments, au-dessus de leurs fonds (z-index : le suivant ne le
|
|
40
|
+
recouvre plus), un anneau en tête pour ne pas le confondre avec l'anneau de focus ou le fond d'un élément choisi,
|
|
41
|
+
liseré de la couleur du fond pour rester net sur `is-selected` */
|
|
42
|
+
.poad-picklist .poad-picklist__item.is-drop-before::before, .poad-picklist .poad-picklist__item.is-drop-after::after { content: ''; position: absolute; z-index: 3; inset-inline: 0 4px; height: 9px; pointer-events: none;
|
|
43
|
+
background: radial-gradient(circle at 5px 50%, var(--poad-input-bg) 0 1.5px, var(--poad-accent) 2px 4px, transparent 4.5px), linear-gradient(var(--poad-accent), var(--poad-accent)) 9px 50% / calc(100% - 9px) 2px no-repeat;
|
|
44
|
+
filter: drop-shadow(0 0 1px var(--poad-input-bg)); }
|
|
45
|
+
.poad-picklist .poad-picklist__item.is-drop-before::before { top: -4.5px; }
|
|
46
|
+
.poad-picklist .poad-picklist__item.is-drop-after::after { bottom: -4.5px; }
|
|
47
|
+
.poad-picklist .poad-picklist__item.is-drop-before:dir(rtl)::before, .poad-picklist .poad-picklist__item.is-drop-after:dir(rtl)::after { inset-inline: 4px 0; transform: scaleX(-1); }
|
|
48
|
+
.poad-picklist .poad-picklist__empty { padding: 14px; text-align: center; color: var(--poad-fg-muted); font-size: var(--poad-font-size-sm); }
|
|
49
|
+
.poad-picklist .poad-picklist__ctrl { display: flex; flex-direction: column; gap: 4px; justify-content: center; flex: none; }
|
|
50
|
+
.poad-picklist.is-stacked { flex-direction: column; }
|
|
51
|
+
/* empilées : chaque boîte garde sa hauteur (en colonne, `flex: 1 1 0` avec `overflow: hidden` la ramenait à 0) */
|
|
52
|
+
.poad-picklist.is-stacked .poad-picklist__box { flex: none; }
|
|
53
|
+
.poad-picklist.is-stacked .poad-picklist__ctrl { flex-direction: row; justify-content: center; }
|
|
54
|
+
.poad-picklist.is-stacked .poad-picklist__ctrl.is-mid .poad-icon { transform: rotate(90deg); }
|
|
55
|
+
.poad-picklist:not(.is-stacked):dir(rtl) .poad-picklist__ctrl.is-mid .poad-icon { transform: scaleX(-1); }
|
|
56
|
+
.poad-picklist .poad-picklist__hint, .poad-picklist .poad-picklist__live { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
|
|
57
|
+
@media (hover: none) { .poad-picklist .poad-picklist__list.is-draggable .poad-picklist__item { cursor: default; } }
|
|
58
|
+
@media (prefers-reduced-motion: reduce) { .poad-picklist .poad-picklist__box, .poad-picklist .poad-picklist__list { transition: none; } }
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @poadio/ui-core — popover (`.poad-popover`). Source unique du style pour tous les paquets de rendu :
|
|
3
|
+
* ui-angular l'inclut dans `poad-popover` (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
|
+
* `.poad-popover` (`role="dialog"`, `data-placement` = côté retenu, `has-arrow`, largeur / largeur minimale en style)
|
|
7
|
+
* > `.poad-popover__arrow`?, contenu de l'application. Dans une feuille basse (`sheet.css`), cadre et flèche
|
|
8
|
+
* disparaissent. Position : couche flottante du rendu ; position de la flèche le long du bord : style posé par le rendu
|
|
9
|
+
* (`floatingArrow()`), sinon centrée. Écrit à partir des styles du composant Angular, une règle pour une règle.
|
|
10
|
+
*/
|
|
11
|
+
.poad-popover { position: relative; 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);
|
|
12
|
+
padding: 10px 12px; color: var(--poad-fg); font-family: var(--poad-font); font-size: var(--poad-font-size); box-sizing: border-box; outline: none;
|
|
13
|
+
animation: poad-pop-in 120ms var(--poad-ease); }
|
|
14
|
+
.poad-popover .poad-popover__arrow { position: absolute; width: 10px; height: 10px; background: inherit; border: 1px solid var(--poad-border); transform: rotate(45deg); }
|
|
15
|
+
.poad-popover[data-placement="bottom"] .poad-popover__arrow { top: -6px; left: 50%; margin-inline-start: -5px; border-inline-end: 0; border-bottom: 0; }
|
|
16
|
+
.poad-popover[data-placement="top"] .poad-popover__arrow { bottom: -6px; left: 50%; margin-inline-start: -5px; border-inline-start: 0; border-top: 0; }
|
|
17
|
+
.poad-popover[data-placement="right"] .poad-popover__arrow { inset-inline-start: -6px; top: 50%; margin-top: -5px; border-inline-end: 0; border-top: 0; }
|
|
18
|
+
.poad-popover[data-placement="left"] .poad-popover__arrow { inset-inline-end: -6px; top: 50%; margin-top: -5px; border-inline-start: 0; border-bottom: 0; }
|
|
19
|
+
@keyframes poad-pop-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
|
|
20
|
+
@media (prefers-reduced-motion: reduce) { .poad-popover { animation: none; } }
|