@poadio/app-vue 0.0.0-stage → 0.1.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 +19 -0
- package/LICENSE +22 -0
- package/README.md +16 -2
- package/app-vue.css +107 -0
- package/dist/browser.d.ts +21 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +95 -0
- package/dist/browser.js.map +1 -0
- package/dist/front-view.d.ts +35 -0
- package/dist/front-view.d.ts.map +1 -0
- package/dist/front-view.js +115 -0
- package/dist/front-view.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/lazy.d.ts +40 -0
- package/dist/lazy.d.ts.map +1 -0
- package/dist/lazy.js +35 -0
- package/dist/lazy.js.map +1 -0
- package/dist/messages.d.ts +38 -0
- package/dist/messages.d.ts.map +1 -0
- package/dist/messages.js +66 -0
- package/dist/messages.js.map +1 -0
- package/dist/sections/grid.d.ts +29 -0
- package/dist/sections/grid.d.ts.map +1 -0
- package/dist/sections/grid.js +19 -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 +71 -4
- package/runtime-dist/app.css +461 -0
- package/runtime-dist/app.js +2 -0
- package/runtime-dist/c-7dddcgt2.js +2 -0
- package/runtime-dist/c-9a0nzf53.js +2 -0
- package/runtime-dist/c-c1e1x3y1.js +1 -0
- package/runtime-dist/c-fg782zf4.js +1 -0
- package/runtime-dist/c-fnkq09db.js +1 -0
- package/runtime-dist/c-j29w8z15.js +1 -0
- package/runtime-dist/c-mmxqs2mz.js +1 -0
- package/runtime-dist/c-ns42txax.js +2 -0
- package/runtime-dist/c-pgxy0etb.js +1 -0
- package/runtime-dist/c-xsq12y6b.js +1 -0
- package/runtime-dist/index.html +14 -0
- package/runtime-dist/version.json +1 -0
- package/src/browser.ts +107 -0
- package/src/front-view.ts +132 -0
- package/src/index.ts +4 -0
- package/src/lazy.ts +39 -0
- package/src/messages.ts +74 -0
- package/src/sections/grid.ts +21 -0
- package/src/sections/under-construction.ts +34 -0
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
/* @poadio/ui-core/tokens.css */
|
|
2
|
+
/*
|
|
3
|
+
* @poadio/ui-core — jetons de design (3 couches : primitif → sémantique → composant), thèmes clair et sombre.
|
|
4
|
+
* SOURCE UNIQUE des `--poad-*` : les paquets de rendu (@poadio/ui-angular, puis React, Vue, composants web)
|
|
5
|
+
* chargent ce fichier tel quel. CSS pur : aucune valeur n'est calculée par un préprocesseur.
|
|
6
|
+
*
|
|
7
|
+
* Les tokens sémantiques `--poad-*` sont des ALIAS des variables déjà définies par le studio
|
|
8
|
+
* (styles.scss : --surface-*, --text-*, --accent-*, --shadow-*), avec repli si absentes.
|
|
9
|
+
* Le thème est porté par `.theme-dark` sur <html> (mécanique existante) : les composants
|
|
10
|
+
* ne contiennent AUCUN sélecteur de thème, ils ne lisent que --poad-*.
|
|
11
|
+
*
|
|
12
|
+
* ⚠️ THÈME PAR ZONE (24/08) — le sélecteur ci-dessous est une LISTE, et ce n'est pas
|
|
13
|
+
* décoratif : un alias `--poad-x: var(--surface-y)` déclaré SEULEMENT sur :root est
|
|
14
|
+
* résolu À LA RACINE ; une classe de thème posée sur un sous-arbre (le canevas de
|
|
15
|
+
* l'atelier) redéfinit --surface-y localement mais l'alias, lui, garde la valeur
|
|
16
|
+
* calculée en haut — le sous-arbre reste dans l'ancien thème SANS erreur. Redéclarer
|
|
17
|
+
* les alias sur `.theme-dark`/`.theme-light` les fait re-résoudre AU PORTEUR de la
|
|
18
|
+
* classe : le thème devient scopable à n'importe quelle zone.
|
|
19
|
+
*/
|
|
20
|
+
:root,
|
|
21
|
+
.theme-dark,
|
|
22
|
+
.theme-light {
|
|
23
|
+
/* ---- primitifs (seulement ce que le studio ne définit pas déjà) ---- */
|
|
24
|
+
--poad-hue: 217;
|
|
25
|
+
--poad-radius-sm: 6px;
|
|
26
|
+
--poad-radius: 8px;
|
|
27
|
+
--poad-radius-lg: 12px;
|
|
28
|
+
--poad-radius-pill: 999px;
|
|
29
|
+
--poad-font-size: 0.8125rem; /* taille de base du studio */
|
|
30
|
+
--poad-font-size-sm: 0.75rem;
|
|
31
|
+
--poad-font-size-lg: 0.9375rem;
|
|
32
|
+
--poad-line: 1.35;
|
|
33
|
+
--poad-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
|
34
|
+
--poad-font-mono: 'Fira Code', 'Cascadia Code', 'Source Code Pro', ui-monospace, monospace;
|
|
35
|
+
--poad-dur: 140ms;
|
|
36
|
+
--poad-ease: cubic-bezier(.2, .7, .2, 1);
|
|
37
|
+
--poad-z-overlay: 100002; /* au-dessus des backdrops PrimeNG (100000) tant qu'ils coexistent */
|
|
38
|
+
--poad-backdrop: rgba(2, 6, 23, .45);
|
|
39
|
+
|
|
40
|
+
/* ---- sémantiques : surfaces ---- */
|
|
41
|
+
--poad-bg: var(--surface-ground, #ffffff);
|
|
42
|
+
--poad-bg-subtle: var(--surface-section, #f8fafc);
|
|
43
|
+
--poad-surface: var(--surface-card, #ffffff);
|
|
44
|
+
--poad-overlay: var(--surface-overlay, #ffffff);
|
|
45
|
+
--poad-hover: var(--surface-hover, #f1f5f9);
|
|
46
|
+
/* Survol SUR UNE SURFACE FLOTTANTE (menu, liste d'options, calendrier, feuille…).
|
|
47
|
+
Il ne peut pas être `--poad-hover` : celui-ci est un écart depuis la surface de CARTE, et
|
|
48
|
+
rien n'oblige un thème à le distinguer de la surface d'overlay. Le thème sombre du studio
|
|
49
|
+
donne justement la MÊME couleur aux deux (#21262d) — donc aucun survol n'était visible
|
|
50
|
+
dans le moindre menu ou select, sauf les entrées `danger` qui ont leur propre teinte.
|
|
51
|
+
Signalé par SZU le 21/08/2026 sur poad-menu. On le DÉRIVE de la surface plutôt que de le
|
|
52
|
+
déclarer à côté : deux tokens indépendants peuvent coïncider, un écart calculé, jamais. */
|
|
53
|
+
--poad-overlay-hover: var(--surface-overlay-hover, color-mix(in srgb, var(--poad-fg) 9%, var(--poad-overlay)));
|
|
54
|
+
--poad-elevated: var(--bg-elevated, #e2e8f0);
|
|
55
|
+
--poad-border: var(--surface-border, #e2e8f0);
|
|
56
|
+
--poad-border-strong: var(--border-light, #cbd5e1);
|
|
57
|
+
|
|
58
|
+
/* ---- sémantiques : texte ---- */
|
|
59
|
+
--poad-fg: var(--text-primary, #1e293b);
|
|
60
|
+
--poad-fg-secondary: var(--text-secondary, #475569);
|
|
61
|
+
--poad-fg-muted: var(--text-muted, #94a3b8);
|
|
62
|
+
--poad-fg-on-accent: #ffffff;
|
|
63
|
+
|
|
64
|
+
/* ---- sémantiques : accent + sévérités ---- */
|
|
65
|
+
/* accent clair recalé pour AA sur blanc (décision à valider SZU) ; le sombre garde #58a6ff */
|
|
66
|
+
--poad-accent: #2f6feb;
|
|
67
|
+
--poad-accent-hover: #245fd0;
|
|
68
|
+
--poad-accent-soft: rgba(47, 111, 235, .12);
|
|
69
|
+
--poad-ring: rgba(47, 111, 235, .35);
|
|
70
|
+
--poad-success: var(--accent-success, #3fb950);
|
|
71
|
+
--poad-warning: var(--accent-warning, #d29922);
|
|
72
|
+
--poad-danger: var(--accent-danger, #f85149);
|
|
73
|
+
--poad-info: var(--accent-secondary, #79c0ff);
|
|
74
|
+
--poad-success-soft: rgba(63, 185, 80, .14);
|
|
75
|
+
--poad-warning-soft: rgba(210, 153, 34, .16);
|
|
76
|
+
--poad-danger-soft: rgba(248, 81, 73, .14);
|
|
77
|
+
--poad-info-soft: rgba(121, 192, 255, .16);
|
|
78
|
+
|
|
79
|
+
/* ---- sémantiques : ombres ---- */
|
|
80
|
+
--poad-shadow-sm: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.05));
|
|
81
|
+
--poad-shadow-md: var(--shadow-md, 0 4px 6px rgba(0,0,0,.07));
|
|
82
|
+
--poad-shadow-lg: var(--shadow-lg, 0 12px 24px rgba(15,23,42,.08));
|
|
83
|
+
|
|
84
|
+
/* ---- composants ---- */
|
|
85
|
+
--poad-control-h-sm: 26px;
|
|
86
|
+
--poad-control-h: 32px;
|
|
87
|
+
--poad-control-h-lg: 40px;
|
|
88
|
+
--poad-control-px: 10px;
|
|
89
|
+
--poad-input-bg: var(--input-bg, var(--poad-bg));
|
|
90
|
+
--poad-input-border: var(--input-border, var(--poad-border-strong));
|
|
91
|
+
--poad-table-stripe: var(--table-even-row-color, var(--poad-bg-subtle));
|
|
92
|
+
--poad-tooltip-bg: #1e293b; /* contraste inversé (maquette .tip) */
|
|
93
|
+
--poad-tooltip-fg: #f8fafc;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.theme-dark {
|
|
97
|
+
--poad-backdrop: rgba(0, 0, 0, .6);
|
|
98
|
+
--poad-accent: var(--accent-primary, #58a6ff);
|
|
99
|
+
--poad-accent-hover: #79c0ff;
|
|
100
|
+
--poad-accent-soft: rgba(88, 166, 255, .16);
|
|
101
|
+
--poad-ring: rgba(88, 166, 255, .40);
|
|
102
|
+
--poad-fg-on-accent: #0d1117;
|
|
103
|
+
--poad-tooltip-bg: #f0f6fc;
|
|
104
|
+
--poad-tooltip-fg: #0d1117;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* ---- breakpoints (nommage Tailwind) — utilisés par PoadBreakpointService et les primitives layout ---- */
|
|
108
|
+
:root {
|
|
109
|
+
--poad-bp-sm: 640px; --poad-bp-md: 768px; --poad-bp-lg: 1024px; --poad-bp-xl: 1280px; --poad-bp-2xl: 1536px;
|
|
110
|
+
--poad-container-max: 1440px;
|
|
111
|
+
--poad-gap-xs: 4px; --poad-gap-sm: 8px; --poad-gap-md: 14px; --poad-gap-lg: 22px; --poad-gap-xl: 32px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* ---- densité tactile : classe `poad-touch` posée sur <html> par PoadBreakpointService (pointer: coarse, ou POAD_TOUCH_DENSITY='on') ---- */
|
|
115
|
+
:root { --poad-table-row-h: 42px; }
|
|
116
|
+
.poad-touch {
|
|
117
|
+
--poad-control-h: 40px; --poad-control-h-sm: 32px; --poad-control-h-lg: 48px;
|
|
118
|
+
--poad-font-size: 0.9375rem; --poad-control-px: 12px;
|
|
119
|
+
--poad-table-row-h: 48px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* @poadio/ui-core/base.css */
|
|
123
|
+
/*
|
|
124
|
+
* @poadio/ui-core — base commune à tous les paquets de rendu : focus, mouvement réduit, champ natif stylé `.poad-input`.
|
|
125
|
+
* CSS pur. Ne charge PAS les jetons : charger `tokens.css` avant ce fichier. Chaque paquet de rendu ajoute ce qui
|
|
126
|
+
* lui est propre (ui-angular : la feuille des overlays du CDK).
|
|
127
|
+
*/
|
|
128
|
+
|
|
129
|
+
.poad-focus-ring, [class^='poad-'] :where(button, a, [tabindex]):not(.poad-input):focus-visible {
|
|
130
|
+
outline: 2px solid var(--poad-ring);
|
|
131
|
+
outline-offset: 1px;
|
|
132
|
+
}
|
|
133
|
+
/* les champs (input/textarea/select) portent leur propre focus (bordure + ring sur la BOÎTE) — jamais d'outline interne */
|
|
134
|
+
[class^='poad-'] :where(input, textarea, select):focus-visible, .poad-input:focus-visible { outline: none; }
|
|
135
|
+
|
|
136
|
+
@media (prefers-reduced-motion: reduce) {
|
|
137
|
+
[class^='poad-'], [class*=' poad-'] { transition: none !important; animation: none !important; }
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* Contrôle natif stylé (directive poadInput en Angular), utilisable hors poad-field */
|
|
141
|
+
.poad-input {
|
|
142
|
+
box-sizing: border-box; width: 100%; height: var(--poad-control-h); padding: 0 var(--poad-control-px);
|
|
143
|
+
font: var(--poad-font-size)/1.3 var(--poad-font); color: var(--poad-fg);
|
|
144
|
+
background: var(--poad-input-bg); border: 1px solid var(--poad-input-border); border-radius: var(--poad-radius);
|
|
145
|
+
outline: none; transition: border-color var(--poad-dur) var(--poad-ease), box-shadow var(--poad-dur) var(--poad-ease);
|
|
146
|
+
}
|
|
147
|
+
.poad-input::placeholder { color: var(--poad-fg-muted); }
|
|
148
|
+
.poad-input:focus { border-color: var(--poad-accent); box-shadow: 0 0 0 3px var(--poad-ring); }
|
|
149
|
+
.poad-input.is-invalid { border-color: var(--poad-danger); }
|
|
150
|
+
.poad-input.is-invalid:focus { box-shadow: 0 0 0 3px var(--poad-danger-soft); }
|
|
151
|
+
.poad-input:disabled, .poad-input[readonly].is-readonly { background: var(--poad-bg-subtle); color: var(--poad-fg-muted); cursor: not-allowed; }
|
|
152
|
+
.poad-input.size-sm { height: var(--poad-control-h-sm); font-size: var(--poad-font-size-sm); border-radius: var(--poad-radius-sm); }
|
|
153
|
+
.poad-input.size-lg { height: var(--poad-control-h-lg); font-size: var(--poad-font-size-lg); }
|
|
154
|
+
.poad-input.is-mono { font-family: var(--poad-font-mono); font-size: var(--poad-font-size-sm); }
|
|
155
|
+
textarea.poad-input { height: auto; min-height: calc(var(--poad-control-h) * 2); padding: 8px var(--poad-control-px); resize: vertical; line-height: 1.45; }
|
|
156
|
+
select.poad-input { appearance: none; padding-inline-end: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 14px; }
|
|
157
|
+
|
|
158
|
+
/* @poadio/ui-core/button.css */
|
|
159
|
+
/*
|
|
160
|
+
* @poadio/ui-core — bouton (`.poad-button`). Source unique du style du bouton pour tous les paquets de rendu :
|
|
161
|
+
* ui-angular l'inclut dans `button[poadButton]` (encapsulation désactivée), ui-react le fait charger par
|
|
162
|
+
* l'application. CSS pur, ne lit que les jetons --poad-* (charger `tokens.css` avant).
|
|
163
|
+
*
|
|
164
|
+
* Classes posées sur l'élément (calculées par `buttonClasses()` du socle) : `sev-<sévérité>`, `var-<variante>`,
|
|
165
|
+
* `size-<taille>`, `is-loading`, `is-icon`, `is-block`, `is-pressed`. Parties : `.poad-button__spinner`,
|
|
166
|
+
* `.poad-button__label`.
|
|
167
|
+
*
|
|
168
|
+
* Écrit à partir des styles `:host` du composant Angular, une règle pour une règle : `:host(X)` → `.poad-button X`.
|
|
169
|
+
*/
|
|
170
|
+
.poad-button {
|
|
171
|
+
--_h: var(--poad-control-h);
|
|
172
|
+
--_px: 12px;
|
|
173
|
+
--_fs: var(--poad-font-size);
|
|
174
|
+
--_bg: var(--poad-accent);
|
|
175
|
+
--_fg: var(--poad-fg-on-accent);
|
|
176
|
+
--_bd: transparent;
|
|
177
|
+
--_bg-hover: var(--poad-accent-hover);
|
|
178
|
+
|
|
179
|
+
position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
|
|
180
|
+
height: var(--_h); padding: 0 var(--_px); box-sizing: border-box;
|
|
181
|
+
font: 500 var(--_fs)/1 var(--poad-font); letter-spacing: .01em; white-space: nowrap;
|
|
182
|
+
color: var(--_fg); background: var(--_bg); border: 1px solid var(--_bd);
|
|
183
|
+
border-radius: var(--poad-radius); cursor: pointer; user-select: none; text-decoration: none;
|
|
184
|
+
transition: background var(--poad-dur) var(--poad-ease), border-color var(--poad-dur) var(--poad-ease),
|
|
185
|
+
color var(--poad-dur) var(--poad-ease), transform var(--poad-dur) var(--poad-ease);
|
|
186
|
+
}
|
|
187
|
+
.poad-button:hover:not([disabled]) { background: var(--_bg-hover); }
|
|
188
|
+
.poad-button:active:not([disabled]) { transform: translateY(1px); }
|
|
189
|
+
.poad-button:focus-visible { outline: 2px solid var(--poad-ring); outline-offset: 1px; }
|
|
190
|
+
.poad-button[disabled] { opacity: .55; cursor: not-allowed; }
|
|
191
|
+
|
|
192
|
+
/* tailles */
|
|
193
|
+
.poad-button.size-sm { --_h: var(--poad-control-h-sm); --_px: 8px; --_fs: var(--poad-font-size-sm); border-radius: var(--poad-radius-sm); }
|
|
194
|
+
.poad-button.size-lg { --_h: var(--poad-control-h-lg); --_px: 16px; --_fs: var(--poad-font-size-lg); }
|
|
195
|
+
.poad-button.is-icon { --_px: 0; width: var(--_h); }
|
|
196
|
+
.poad-button.is-block { display: flex; width: 100%; }
|
|
197
|
+
|
|
198
|
+
/* sévérités (solid) */
|
|
199
|
+
.poad-button.sev-secondary { --_bg: var(--poad-elevated); --_fg: var(--poad-fg); --_bg-hover: var(--poad-border-strong); }
|
|
200
|
+
.poad-button.sev-success { --_bg: var(--poad-success); --_fg: #fff; --_bg-hover: color-mix(in srgb, var(--poad-success) 85%, black); }
|
|
201
|
+
.poad-button.sev-warning { --_bg: var(--poad-warning); --_fg: #1a1400; --_bg-hover: color-mix(in srgb, var(--poad-warning) 85%, black); }
|
|
202
|
+
.poad-button.sev-danger { --_bg: var(--poad-danger); --_fg: #fff; --_bg-hover: color-mix(in srgb, var(--poad-danger) 85%, black); }
|
|
203
|
+
.poad-button.sev-info { --_bg: var(--poad-info); --_fg: #0d1117; --_bg-hover: color-mix(in srgb, var(--poad-info) 85%, black); }
|
|
204
|
+
.poad-button.sev-ghost { --_bg: transparent; --_fg: var(--poad-fg-secondary); --_bg-hover: var(--poad-hover); }
|
|
205
|
+
.poad-button.sev-ghost:hover:not([disabled]) { --_fg: var(--poad-fg); }
|
|
206
|
+
|
|
207
|
+
/* variantes */
|
|
208
|
+
.poad-button.var-outline { --_bg: transparent; --_bd: currentColor; --_bg-hover: var(--poad-accent-soft); --_fg: var(--poad-accent); }
|
|
209
|
+
.poad-button.var-outline.sev-danger { --_fg: var(--poad-danger); --_bg-hover: var(--poad-danger-soft); }
|
|
210
|
+
.poad-button.var-outline.sev-success { --_fg: var(--poad-success); --_bg-hover: var(--poad-success-soft); }
|
|
211
|
+
.poad-button.var-outline.sev-secondary { --_fg: var(--poad-fg-secondary); --_bd: var(--poad-border-strong); --_bg-hover: var(--poad-hover); }
|
|
212
|
+
.poad-button.var-text { --_bg: transparent; --_bd: transparent; --_fg: var(--poad-accent); --_bg-hover: var(--poad-accent-soft); }
|
|
213
|
+
.poad-button.var-text.sev-danger { --_fg: var(--poad-danger); --_bg-hover: var(--poad-danger-soft); }
|
|
214
|
+
.poad-button.var-text.sev-secondary { --_fg: var(--poad-fg-secondary); --_bg-hover: var(--poad-hover); }
|
|
215
|
+
|
|
216
|
+
.poad-button .poad-button__label { display: inline-flex; align-items: center; gap: 6px; }
|
|
217
|
+
/* enfoncé (aria-pressed) */
|
|
218
|
+
/* enfoncé = fond plein inversé (accent), quel que soit le variant */
|
|
219
|
+
.poad-button.is-pressed.var-outline, .poad-button.is-pressed.var-text, .poad-button.is-pressed.sev-secondary, .poad-button.is-pressed.sev-ghost { --_bg: var(--poad-accent); --_fg: var(--poad-fg-on-accent); --_bd: var(--poad-accent); --_bg-hover: var(--poad-accent-hover); box-shadow: inset 0 1px 2px rgba(0,0,0,.12); }
|
|
220
|
+
.poad-button.is-pressed.var-outline.sev-danger, .poad-button.is-pressed.var-text.sev-danger { --_bg: var(--poad-danger); --_fg: #fff; --_bd: var(--poad-danger); }
|
|
221
|
+
.poad-button.is-pressed.var-outline.sev-success, .poad-button.is-pressed.var-text.sev-success { --_bg: var(--poad-success); --_fg: #fff; --_bd: var(--poad-success); }
|
|
222
|
+
.poad-button.is-pressed.var-solid.sev-primary { --_bg: var(--poad-accent-hover); box-shadow: inset 0 2px 3px rgba(0,0,0,.18); }
|
|
223
|
+
/* chargement */
|
|
224
|
+
.poad-button.is-loading .poad-button__label { opacity: .6; }
|
|
225
|
+
.poad-button .poad-button__spinner {
|
|
226
|
+
width: .9em; height: .9em; border-radius: 50%; flex: none;
|
|
227
|
+
border: 2px solid currentColor; border-inline-end-color: transparent;
|
|
228
|
+
animation: poad-spin .7s linear infinite;
|
|
229
|
+
}
|
|
230
|
+
@keyframes poad-spin { to { transform: rotate(360deg); } }
|
|
231
|
+
@media (prefers-reduced-motion: reduce) { .poad-button { transition: none; } .poad-button .poad-button__spinner { animation-duration: 1.5s; } }
|
|
232
|
+
|
|
233
|
+
/* @poadio/ui-core/field.css */
|
|
234
|
+
/*
|
|
235
|
+
* @poadio/ui-core — champ (`.poad-field` : libellé, boîte, aide / erreur). Source unique du style du champ pour
|
|
236
|
+
* tous les paquets de rendu : ui-angular l'inclut dans `poad-field` (encapsulation désactivée), ui-react le fait
|
|
237
|
+
* charger par l'application. Le contrôle natif `.poad-input` est dans `base.css`. CSS pur, ne lit que les jetons
|
|
238
|
+
* --poad-* (charger `tokens.css` avant).
|
|
239
|
+
*
|
|
240
|
+
* Anatomie : racine `.poad-field` (classes `is-invalid`, `is-disabled`, `is-inline`, `size-sm`, `size-lg`, `is-plain`
|
|
241
|
+
* de `fieldRootClasses()`) > `.poad-field__label` (`.poad-field__req`, `.poad-field__opt`), `.poad-field__box`,
|
|
242
|
+
* `.poad-field__msg` (`.is-error`).
|
|
243
|
+
*
|
|
244
|
+
* Écrit à partir des styles `:host` du composant Angular, une règle pour une règle : `:host(X)` → `.poad-field X`,
|
|
245
|
+
* `::ng-deep` (contenu projeté) → simple descendant.
|
|
246
|
+
*/
|
|
247
|
+
.poad-field { display: grid; gap: 5px; align-content: start; font-family: var(--poad-font); font-size: var(--poad-font-size); }
|
|
248
|
+
.poad-field.is-inline { grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; }
|
|
249
|
+
.poad-field.is-inline .poad-field__msg { grid-column: 2; }
|
|
250
|
+
.poad-field .poad-field__label { font-size: var(--poad-font-size-sm); font-weight: 500; color: var(--poad-fg-secondary); display: inline-flex; gap: 3px; align-items: baseline; }
|
|
251
|
+
.poad-field .poad-field__req { color: var(--poad-danger); }
|
|
252
|
+
.poad-field .poad-field__opt { color: var(--poad-fg-muted); font-weight: 400; margin-inline-start: 4px; }
|
|
253
|
+
.poad-field .poad-field__box {
|
|
254
|
+
display: flex; align-items: stretch; min-height: var(--poad-control-h);
|
|
255
|
+
background: var(--poad-input-bg); border: 1px solid var(--poad-input-border); border-radius: var(--poad-radius);
|
|
256
|
+
transition: border-color var(--poad-dur) var(--poad-ease), box-shadow var(--poad-dur) var(--poad-ease);
|
|
257
|
+
}
|
|
258
|
+
.poad-field.size-sm .poad-field__box { min-height: var(--poad-control-h-sm); border-radius: var(--poad-radius-sm); }
|
|
259
|
+
.poad-field.size-lg .poad-field__box { min-height: var(--poad-control-h-lg); }
|
|
260
|
+
.poad-field .poad-field__box.has-focus, .poad-field .poad-field__box:focus-within { border-color: var(--poad-accent); box-shadow: 0 0 0 3px var(--poad-ring); }
|
|
261
|
+
.poad-field.is-invalid .poad-field__box { border-color: var(--poad-danger); }
|
|
262
|
+
.poad-field.is-invalid .poad-field__box:focus-within { box-shadow: 0 0 0 3px var(--poad-danger-soft); }
|
|
263
|
+
.poad-field.is-disabled .poad-field__box { background: var(--poad-bg-subtle); opacity: .7; }
|
|
264
|
+
/* le contrôle natif se fond dans la boîte */
|
|
265
|
+
/* Un éditeur posé dans le champ (texte riche, code, blocs, JSON) garde UN seul contour : celui de la boîte, qui porte aussi le focus. */
|
|
266
|
+
.poad-field .poad-field__box :is(poad-richtext, .poad-richtext, poad-code-editor, poad-block-editor, poad-json-editor):not(.is-fullscreen) { border: 0 !important; box-shadow: none !important; border-radius: inherit; background: transparent; }
|
|
267
|
+
.poad-field .poad-field__box .poad-input { border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none !important; flex: 1 1 0; width: 0; min-width: 0; border-radius: inherit; }
|
|
268
|
+
.poad-field .poad-field__box [poadAddon] {
|
|
269
|
+
display: inline-flex; align-items: center; padding: 0 10px; font-family: var(--poad-font-mono); font-size: var(--poad-font-size-sm);
|
|
270
|
+
color: var(--poad-fg-secondary); background: var(--poad-bg-subtle); border-inline-end: 1px solid var(--poad-input-border);
|
|
271
|
+
border-radius: calc(var(--poad-radius) - 1px) 0 0 calc(var(--poad-radius) - 1px); white-space: nowrap;
|
|
272
|
+
}
|
|
273
|
+
.poad-field .poad-field__box [poadPrefix], .poad-field .poad-field__box [poadSuffix] {
|
|
274
|
+
display: inline-flex; align-items: center; align-self: center; color: var(--poad-fg-muted); margin: 0 0 0 10px; flex: none;
|
|
275
|
+
}
|
|
276
|
+
.poad-field .poad-field__box [poadSuffix] { margin: 0 8px 0 0; }
|
|
277
|
+
.poad-field .poad-field__box [poadPrefix] + .poad-input { padding-inline-start: 8px; }
|
|
278
|
+
.poad-field .poad-field__box button[poadSuffix] { align-self: center; color: var(--poad-fg-muted); }
|
|
279
|
+
/* plain : pas de boîte (le contenu porte sa propre boîte : poad-select, poad-number, poad-datepicker, template…) */
|
|
280
|
+
.poad-field.is-plain .poad-field__box { border: 0; background: transparent; box-shadow: none !important; min-height: 0; border-radius: 0; display: block; }
|
|
281
|
+
.poad-field .poad-field__msg { font-size: 11.5px; color: var(--poad-fg-muted); line-height: 1.3; }
|
|
282
|
+
.poad-field .poad-field__msg.is-error { color: var(--poad-danger); }
|
|
283
|
+
/* Champ lié aux données (@poadio/data) : modifié, en conflit, boutons du conflit */
|
|
284
|
+
.poad-field .poad-field__mod { margin-inline-start: 6px; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 500; line-height: 1.5; color: var(--poad-accent); background: var(--poad-accent-soft); }
|
|
285
|
+
.poad-field.is-dirty:not(.is-invalid) .poad-field__box { border-color: color-mix(in srgb, var(--poad-accent) 55%, var(--poad-input-border)); }
|
|
286
|
+
.poad-field.is-saving .poad-field__box { opacity: .75; }
|
|
287
|
+
.poad-field.is-conflict .poad-field__box { border-color: var(--poad-warning); }
|
|
288
|
+
.poad-field .poad-field__msg.is-conflict { color: var(--poad-fg); background: var(--poad-warning-soft); border-radius: var(--poad-radius-sm); padding: 6px 8px; }
|
|
289
|
+
.poad-field .poad-field__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
|
|
290
|
+
|
|
291
|
+
/* @poadio/ui-core/message.css */
|
|
292
|
+
/*
|
|
293
|
+
* @poadio/ui-core — message en ligne (`.poad-message`). Source unique du style pour tous les paquets de rendu :
|
|
294
|
+
* ui-angular l'inclut dans `poad-message` (encapsulation désactivée), ui-react le fait charger par l'application. CSS
|
|
295
|
+
* pur, ne lit que les jetons --poad-* (charger `tokens.css` avant ; les icônes : `icon.css`).
|
|
296
|
+
*
|
|
297
|
+
* Classes de la racine (`messageClasses()`) : `sev-<sévérité>`, `var-soft|outline`, `size-sm`, `is-hidden`. Parties :
|
|
298
|
+
* `.poad-message__icon`, `.poad-message__body` (le contenu de l'application : `<b>`, `<code>` mis en forme),
|
|
299
|
+
* `.poad-message__close`.
|
|
300
|
+
* Écrit à partir des styles `:host` du composant Angular, une règle pour une règle : `:host(X)` → `.poad-message X`,
|
|
301
|
+
* `::ng-deep` (contenu projeté) → simple descendant.
|
|
302
|
+
*/
|
|
303
|
+
.poad-message { --_c: var(--poad-info); --_s: var(--poad-info-soft); display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; border-radius: var(--poad-radius);
|
|
304
|
+
font-family: var(--poad-font); font-size: 12.5px; line-height: 1.45; color: var(--poad-fg); background: var(--_s); border: 1px solid color-mix(in srgb, var(--_c) 35%, transparent); box-sizing: border-box; }
|
|
305
|
+
.poad-message.is-hidden { display: none; }
|
|
306
|
+
.poad-message.size-sm { padding: 5px 9px; font-size: 12px; gap: 6px; }
|
|
307
|
+
.poad-message.sev-success { --_c: var(--poad-success); --_s: var(--poad-success-soft); }
|
|
308
|
+
.poad-message.sev-warning { --_c: var(--poad-warning); --_s: var(--poad-warning-soft); }
|
|
309
|
+
.poad-message.sev-danger { --_c: var(--poad-danger); --_s: var(--poad-danger-soft); }
|
|
310
|
+
.poad-message.sev-secondary { --_c: var(--poad-fg-muted); --_s: var(--poad-bg-subtle); }
|
|
311
|
+
.poad-message.var-outline { background: transparent; }
|
|
312
|
+
.poad-message .poad-message__icon { color: var(--_c); flex: none; margin-top: 2px; }
|
|
313
|
+
.poad-message .poad-message__body { flex: 1; min-width: 0; }
|
|
314
|
+
.poad-message .poad-message__body b { font-weight: 600; }
|
|
315
|
+
.poad-message .poad-message__body code { font-family: var(--poad-font-mono); font-size: 11.5px; background: var(--poad-bg-subtle); border: 1px solid var(--poad-border); border-radius: 4px; padding: 0 4px; }
|
|
316
|
+
.poad-message .poad-message__close { border: 0; background: transparent; color: var(--poad-fg-muted); cursor: pointer; padding: 2px; border-radius: 4px; display: grid; place-items: center; margin-block: 0; margin-inline: 0 -4px; }
|
|
317
|
+
.poad-message .poad-message__close:hover { color: var(--poad-fg); background: var(--poad-hover); }
|
|
318
|
+
|
|
319
|
+
/* @poadio/ui-core/tag.css */
|
|
320
|
+
/*
|
|
321
|
+
* @poadio/ui-core — étiquette (`.poad-tag`). Source unique du style pour tous les paquets de rendu : ui-angular
|
|
322
|
+
* l'inclut dans `poad-tag` (encapsulation désactivée), ui-react le fait charger par l'application. CSS pur, ne lit
|
|
323
|
+
* que les jetons --poad-* (charger `tokens.css` avant).
|
|
324
|
+
*
|
|
325
|
+
* Classes de la racine (`tagClasses()`) : `sev-<sévérité>`, `size-sm`, `is-rounded`, `has-dot`. Parties : point
|
|
326
|
+
* `.poad-tag__dot`, icône `.poad-icon`, `<span>` du texte.
|
|
327
|
+
* Écrit à partir des styles `:host` du composant Angular, une règle pour une règle : `:host(X)` → `.poad-tag X`,
|
|
328
|
+
* une partie `.p` → `.poad-tag .p`.
|
|
329
|
+
*/
|
|
330
|
+
.poad-tag { --_c: var(--poad-accent); --_s: var(--poad-accent-soft); display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 5px;
|
|
331
|
+
font: 600 11px/1 var(--poad-font); letter-spacing: .01em; background: var(--_s); color: var(--_c); white-space: nowrap; vertical-align: middle; box-sizing: border-box; }
|
|
332
|
+
.poad-tag.size-sm { height: 16px; padding: 0 5px; font-size: 10px; }
|
|
333
|
+
.poad-tag.is-rounded { border-radius: var(--poad-radius-pill); }
|
|
334
|
+
.poad-tag.sev-success { --_c: var(--poad-success); --_s: var(--poad-success-soft); }
|
|
335
|
+
.poad-tag.sev-warning { --_c: var(--poad-warning); --_s: var(--poad-warning-soft); }
|
|
336
|
+
.poad-tag.sev-danger { --_c: var(--poad-danger); --_s: var(--poad-danger-soft); }
|
|
337
|
+
.poad-tag.sev-info { --_c: var(--poad-info); --_s: var(--poad-info-soft); }
|
|
338
|
+
.poad-tag.sev-neutral { --_c: var(--poad-fg-secondary); --_s: var(--poad-elevated); }
|
|
339
|
+
.poad-tag .poad-tag__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
|
|
340
|
+
|
|
341
|
+
/* @poadio/ui-core/icon.css */
|
|
342
|
+
/*
|
|
343
|
+
* @poadio/ui-core — icône (`.poad-icon` : un `<svg>` à trait, couleur `currentColor`). Écrit à partir des styles
|
|
344
|
+
* `:host` de `poad-icon` d'ui-angular, une règle pour une règle (`:host(X)` → `.poad-icon X`). Source unique du
|
|
345
|
+
* style de l'icône : ui-angular l'inclut dans `poad-icon` (encapsulation désactivée), ui-react (`<PoadIcon>`, et les
|
|
346
|
+
* icônes de ses composants) le fait charger par l'application. Tracés : registre `createIconRegistry()` du socle.
|
|
347
|
+
*/
|
|
348
|
+
.poad-icon { display: inline-flex; flex: none; vertical-align: middle; line-height: 0; }
|
|
349
|
+
.poad-icon svg { width: 100%; height: 100%; display: block; }
|
|
350
|
+
.poad-icon.is-spin svg { animation: poad-icon-spin 1s linear infinite; }
|
|
351
|
+
@keyframes poad-icon-spin { to { transform: rotate(360deg); } }
|
|
352
|
+
@media (prefers-reduced-motion: reduce) { .poad-icon.is-spin svg { animation-duration: 2s; } }
|
|
353
|
+
|
|
354
|
+
/* @poadio/app-vue/app-vue.css */
|
|
355
|
+
/* Rendu des fronts (@poadio/app-vue) : mise en page du moteur, sur les jetons de @poadio/ui-core.
|
|
356
|
+
Règle poad : rien de collé — chaque panneau a son remplissage, chaque bloc sa marge. */
|
|
357
|
+
/* Thème : les variables « studio » que reprennent les jetons --poad-* de @poadio/ui-core (même palette que
|
|
358
|
+
ui/site/src/styles/theme.css et la console). Sans elles, ui-core n'a pas de surfaces sombres : un front en
|
|
359
|
+
.theme-dark restait blanc. La classe est posée sur <html> par le moteur (thème du système, ou celui de la
|
|
360
|
+
console dans un aperçu). */
|
|
361
|
+
:root, .theme-light {
|
|
362
|
+
--surface-ground: #ffffff; --surface-section: #f8fafc; --surface-card: #ffffff; --surface-overlay: #ffffff;
|
|
363
|
+
--surface-border: #e2e8f0; --surface-hover: #f1f5f9;
|
|
364
|
+
--text-primary: #1e293b; --text-secondary: #475569; --text-muted: #64748b;
|
|
365
|
+
--bg-elevated: #e2e8f0; --border-light: #cbd5e1;
|
|
366
|
+
--shadow-sm: 0 1px 2px rgba(0,0,0,.05); --shadow-md: 0 4px 6px rgba(0,0,0,.07); --shadow-lg: 0 12px 24px rgba(15,23,42,.08);
|
|
367
|
+
--input-bg: #ffffff; --input-border: #cbd5e1;
|
|
368
|
+
color-scheme: light;
|
|
369
|
+
}
|
|
370
|
+
.theme-dark {
|
|
371
|
+
--surface-ground: #0d1117; --surface-section: #161b22; --surface-card: #161b22; --surface-overlay: #21262d;
|
|
372
|
+
--surface-border: #30363d; --surface-hover: #21262d;
|
|
373
|
+
--text-primary: #f0f6fc; --text-secondary: #9ba5b0; --text-muted: #7d8590;
|
|
374
|
+
--bg-elevated: #30363d; --border-light: #484f58;
|
|
375
|
+
--shadow-sm: 0 1px 2px rgba(0,0,0,.3); --shadow-md: 0 4px 6px rgba(0,0,0,.4); --shadow-lg: 0 12px 24px rgba(0,0,0,.5);
|
|
376
|
+
--input-bg: #0d1117; --input-border: #30363d;
|
|
377
|
+
color-scheme: dark;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
html, body { margin: 0; min-height: 100%; background: var(--poad-bg); color: var(--poad-fg); }
|
|
381
|
+
body { font-family: var(--poad-font); font-size: 15px; line-height: 1.5; }
|
|
382
|
+
|
|
383
|
+
.poad-front { min-height: 100vh; display: flex; flex-direction: column; background: var(--poad-bg); color: var(--poad-fg); box-sizing: border-box; }
|
|
384
|
+
.poad-front *, .poad-front *::before, .poad-front *::after { box-sizing: border-box; }
|
|
385
|
+
|
|
386
|
+
.poad-front__bar {
|
|
387
|
+
display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
|
|
388
|
+
min-height: 56px; padding: 10px 24px;
|
|
389
|
+
background: var(--poad-surface); border-bottom: 1px solid var(--poad-border);
|
|
390
|
+
}
|
|
391
|
+
.poad-front__brand { font-weight: 600; font-size: 16px; color: var(--poad-fg); text-decoration: none; white-space: nowrap; }
|
|
392
|
+
.poad-front__nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; min-width: 0; }
|
|
393
|
+
.poad-front__spacer { flex: 1; }
|
|
394
|
+
.poad-front__nav-link {
|
|
395
|
+
padding: 6px 12px; border-radius: var(--poad-radius); color: var(--poad-fg-secondary); text-decoration: none; font-size: 14px;
|
|
396
|
+
}
|
|
397
|
+
.poad-front__nav-link:hover { background: var(--poad-hover); color: var(--poad-fg); }
|
|
398
|
+
.poad-front__nav-link.is-current { background: var(--poad-accent-soft); color: var(--poad-accent); font-weight: 500; }
|
|
399
|
+
.poad-front__user { display: flex; align-items: center; gap: 12px; }
|
|
400
|
+
.poad-front__user-email { color: var(--poad-fg-secondary); font-size: 13px; }
|
|
401
|
+
|
|
402
|
+
.poad-front__page { flex: 1; display: flex; flex-direction: column; gap: 24px; padding: 24px; }
|
|
403
|
+
|
|
404
|
+
.poad-front__center { flex: 1; display: grid; place-items: center; padding: 32px 16px; }
|
|
405
|
+
.poad-front__loading { color: var(--poad-fg-muted); }
|
|
406
|
+
.poad-front__panel {
|
|
407
|
+
width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px;
|
|
408
|
+
padding: 28px 28px 32px; background: var(--poad-surface); border: 1px solid var(--poad-border);
|
|
409
|
+
border-radius: var(--poad-radius-lg); box-shadow: var(--poad-shadow-sm);
|
|
410
|
+
}
|
|
411
|
+
.poad-front__panel-title { margin: 0; font-size: 22px; font-weight: 600; }
|
|
412
|
+
.poad-front__panel-text { margin: 0; color: var(--poad-fg-secondary); }
|
|
413
|
+
.poad-front__signin .poad-button { margin-top: 8px; }
|
|
414
|
+
|
|
415
|
+
.poad-front__under {
|
|
416
|
+
flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px;
|
|
417
|
+
min-height: 60vh; padding: 48px 24px;
|
|
418
|
+
background: var(--poad-surface); border: 1px dashed var(--poad-border-strong); border-radius: var(--poad-radius-lg);
|
|
419
|
+
}
|
|
420
|
+
.poad-front__under-mark { color: var(--poad-accent); margin-bottom: 8px; }
|
|
421
|
+
.poad-front__under-title { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -0.01em; }
|
|
422
|
+
.poad-front__under-front { margin: 0; font-size: 18px; color: var(--poad-fg); }
|
|
423
|
+
.poad-front__under-text { margin: 0; max-width: 46ch; color: var(--poad-fg-secondary); }
|
|
424
|
+
.poad-front__under-project {
|
|
425
|
+
margin: 12px 0 0; padding: 8px 14px; border-radius: var(--poad-radius-pill);
|
|
426
|
+
background: var(--poad-bg-subtle); border: 1px solid var(--poad-border); color: var(--poad-fg-secondary); font-size: 14px;
|
|
427
|
+
}
|
|
428
|
+
.poad-front__under-project strong { color: var(--poad-fg); font-weight: 600; }
|
|
429
|
+
|
|
430
|
+
.poad-front__grid { min-height: calc(var(--poad-front-row, 40px) * 6); border-radius: var(--poad-radius-lg); }
|
|
431
|
+
.poad-front__grid.is-canvas {
|
|
432
|
+
padding: 16px; border: 1px dashed var(--poad-border-strong);
|
|
433
|
+
background-image: linear-gradient(to right, var(--poad-border) 1px, transparent 1px), linear-gradient(to bottom, var(--poad-border) 1px, transparent 1px);
|
|
434
|
+
background-size: calc(100% / 24) var(--poad-front-row, 40px);
|
|
435
|
+
}
|
|
436
|
+
.poad-front__grid:not(.is-canvas) { display: grid; place-items: center; padding: 24px; border: 1px dashed var(--poad-border); }
|
|
437
|
+
.poad-front__grid-empty { margin: 0; padding: 10px 14px; display: inline-block; background: var(--poad-surface); border-radius: var(--poad-radius); color: var(--poad-fg-muted); font-size: 13px; }
|
|
438
|
+
|
|
439
|
+
/* Canevas de la console : aperçu non interactif (la console choisit la page) */
|
|
440
|
+
.poad-front.is-canvas .poad-front__bar a, .poad-front.is-canvas .poad-front__page { cursor: default; }
|
|
441
|
+
|
|
442
|
+
@media (max-width: 600px) {
|
|
443
|
+
.poad-front__bar { padding: 10px 16px; gap: 10px; }
|
|
444
|
+
.poad-front__page { padding: 16px; }
|
|
445
|
+
.poad-front__panel { padding: 22px 20px 24px; }
|
|
446
|
+
.poad-front__under { padding: 40px 20px; min-height: 50vh; }
|
|
447
|
+
.poad-front__under-title { font-size: 26px; }
|
|
448
|
+
.poad-front__user-email { display: none; }
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/* Lecture du brouillon depuis la console : bandeau discret, fermable */
|
|
452
|
+
.poad-front__draft {
|
|
453
|
+
position: fixed; left: 16px; bottom: 16px; z-index: 50; max-width: calc(100vw - 32px);
|
|
454
|
+
display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px;
|
|
455
|
+
background: var(--poad-surface); color: var(--poad-fg-secondary); font-size: 13px;
|
|
456
|
+
border: 1px solid var(--poad-border); border-radius: var(--poad-radius-lg); box-shadow: var(--poad-shadow-md);
|
|
457
|
+
}
|
|
458
|
+
.poad-front__draft-badge { padding: 2px 8px; border-radius: var(--poad-radius-pill); background: var(--poad-warning-soft); color: var(--poad-warning); font-weight: 600; font-size: 12px; }
|
|
459
|
+
.poad-front__draft-close { all: unset; cursor: pointer; width: 24px; height: 24px; display: grid; place-items: center; border-radius: var(--poad-radius); font-size: 16px; color: var(--poad-fg-muted); }
|
|
460
|
+
.poad-front__draft-close:hover { background: var(--poad-hover); color: var(--poad-fg); }
|
|
461
|
+
.poad-front__draft-close:focus-visible { outline: 2px solid var(--poad-ring); }
|