@poadio/app-vue 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/LICENSE +22 -0
  3. package/README.md +16 -2
  4. package/app-vue.css +181 -0
  5. package/dist/browser.d.ts +23 -0
  6. package/dist/browser.d.ts.map +1 -0
  7. package/dist/browser.js +112 -0
  8. package/dist/browser.js.map +1 -0
  9. package/dist/draft-toolbar.d.ts +65 -0
  10. package/dist/draft-toolbar.d.ts.map +1 -0
  11. package/dist/draft-toolbar.js +62 -0
  12. package/dist/draft-toolbar.js.map +1 -0
  13. package/dist/front-view.d.ts +39 -0
  14. package/dist/front-view.d.ts.map +1 -0
  15. package/dist/front-view.js +174 -0
  16. package/dist/front-view.js.map +1 -0
  17. package/dist/index.d.ts +5 -0
  18. package/dist/index.d.ts.map +1 -0
  19. package/dist/index.js +6 -0
  20. package/dist/index.js.map +1 -0
  21. package/dist/items.d.ts +33 -0
  22. package/dist/items.d.ts.map +1 -0
  23. package/dist/items.js +369 -0
  24. package/dist/items.js.map +1 -0
  25. package/dist/lazy.d.ts +56 -0
  26. package/dist/lazy.d.ts.map +1 -0
  27. package/dist/lazy.js +68 -0
  28. package/dist/lazy.js.map +1 -0
  29. package/dist/messages.d.ts +56 -0
  30. package/dist/messages.d.ts.map +1 -0
  31. package/dist/messages.js +102 -0
  32. package/dist/messages.js.map +1 -0
  33. package/dist/sections/grid.d.ts +53 -0
  34. package/dist/sections/grid.d.ts.map +1 -0
  35. package/dist/sections/grid.js +46 -0
  36. package/dist/sections/grid.js.map +1 -0
  37. package/dist/sections/under-construction.d.ts +25 -0
  38. package/dist/sections/under-construction.d.ts.map +1 -0
  39. package/dist/sections/under-construction.js +32 -0
  40. package/dist/sections/under-construction.js.map +1 -0
  41. package/package.json +72 -4
  42. package/runtime-dist/app.css +535 -0
  43. package/runtime-dist/app.js +2 -0
  44. package/runtime-dist/c-0rxdxcn3.js +2 -0
  45. package/runtime-dist/c-0vbs937h.js +18 -0
  46. package/runtime-dist/c-0zqjsnm5.js +2 -0
  47. package/runtime-dist/c-13nx24wa.js +1 -0
  48. package/runtime-dist/c-16cdkp27.js +1 -0
  49. package/runtime-dist/c-16cm3n82.js +1 -0
  50. package/runtime-dist/c-1h49vkah.js +2 -0
  51. package/runtime-dist/c-1xpa1fqz.js +1 -0
  52. package/runtime-dist/c-29v2e09p.js +1 -0
  53. package/runtime-dist/c-2ag31260.js +2 -0
  54. package/runtime-dist/c-2s6r37jb.js +1 -0
  55. package/runtime-dist/c-2v244yc0.js +1 -0
  56. package/runtime-dist/c-3be398px.js +1 -0
  57. package/runtime-dist/c-3jm96b1p.js +2 -0
  58. package/runtime-dist/c-3pe5hprv.js +2 -0
  59. package/runtime-dist/c-3zbf5g3p.js +1 -0
  60. package/runtime-dist/c-4h51m4qq.js +1 -0
  61. package/runtime-dist/c-523qwqen.js +2 -0
  62. package/runtime-dist/c-572jz6y4.js +1 -0
  63. package/runtime-dist/c-64j9mv7a.js +1 -0
  64. package/runtime-dist/c-6f446pxt.js +1 -0
  65. package/runtime-dist/c-6pd33f4a.js +1 -0
  66. package/runtime-dist/c-6qa26wds.js +1 -0
  67. package/runtime-dist/c-6w0f1kqm.js +1 -0
  68. package/runtime-dist/c-72hj12cs.js +2 -0
  69. package/runtime-dist/c-7cjj18ea.js +1 -0
  70. package/runtime-dist/c-823yyjat.js +1 -0
  71. package/runtime-dist/c-8gpbevx2.js +1 -0
  72. package/runtime-dist/c-98tbntdq.js +2 -0
  73. package/runtime-dist/c-9sm6aybf.js +2 -0
  74. package/runtime-dist/c-a63rkaa9.js +1 -0
  75. package/runtime-dist/c-ahcj5yr5.js +1 -0
  76. package/runtime-dist/c-azvw5879.js +2 -0
  77. package/runtime-dist/c-b6g9ey7e.js +2 -0
  78. package/runtime-dist/c-bssc8kwn.js +1 -0
  79. package/runtime-dist/c-bvp9zbmr.js +1 -0
  80. package/runtime-dist/c-cc3m3rs1.js +2 -0
  81. package/runtime-dist/c-cp1ehb23.js +1 -0
  82. package/runtime-dist/c-cvsx6n6e.js +2 -0
  83. package/runtime-dist/c-d5y90g8f.js +1 -0
  84. package/runtime-dist/c-d8hfdner.js +2 -0
  85. package/runtime-dist/c-dqtdk937.js +1 -0
  86. package/runtime-dist/c-dzx0rg0g.js +2 -0
  87. package/runtime-dist/c-eczfywaq.js +1 -0
  88. package/runtime-dist/c-epemgj1a.js +2 -0
  89. package/runtime-dist/c-et83hbhc.js +1 -0
  90. package/runtime-dist/c-ffkh15py.js +1 -0
  91. package/runtime-dist/c-fn3059s1.js +2 -0
  92. package/runtime-dist/c-fnzeden9.js +1 -0
  93. package/runtime-dist/c-gen0a4bn.js +1 -0
  94. package/runtime-dist/c-gesjk5ph.js +1 -0
  95. package/runtime-dist/c-gkyekesy.js +15 -0
  96. package/runtime-dist/c-gs1k0twe.js +2 -0
  97. package/runtime-dist/c-gznx0sj4.js +2 -0
  98. package/runtime-dist/c-h5m94fwp.js +1 -0
  99. package/runtime-dist/c-hdstjg33.js +2 -0
  100. package/runtime-dist/c-hsy77frc.js +3 -0
  101. package/runtime-dist/c-j02ymtyd.js +2 -0
  102. package/runtime-dist/c-j63hz554.js +2 -0
  103. package/runtime-dist/c-jvrr9zb8.js +1 -0
  104. package/runtime-dist/c-jymrpj5m.js +1 -0
  105. package/runtime-dist/c-k624qrhh.js +2 -0
  106. package/runtime-dist/c-kbg0cafy.js +2 -0
  107. package/runtime-dist/c-kmx0mv0c.js +2 -0
  108. package/runtime-dist/c-krt6rpg1.js +1 -0
  109. package/runtime-dist/c-kyajr8zz.js +2 -0
  110. package/runtime-dist/c-m30q0jrb.js +1 -0
  111. package/runtime-dist/c-m49q9r7s.js +1 -0
  112. package/runtime-dist/c-m6yf7zaj.js +2 -0
  113. package/runtime-dist/c-m70tbfc5.js +2 -0
  114. package/runtime-dist/c-mdj990nz.js +2 -0
  115. package/runtime-dist/c-mvdn43tv.js +2 -0
  116. package/runtime-dist/c-mw3zx9yk.js +1 -0
  117. package/runtime-dist/c-n8mqnvjg.js +1 -0
  118. package/runtime-dist/c-nkrm4n9a.js +1 -0
  119. package/runtime-dist/c-nn49946s.js +1 -0
  120. package/runtime-dist/c-ny0mdx7k.js +2 -0
  121. package/runtime-dist/c-p8wyhrwm.js +2 -0
  122. package/runtime-dist/c-pbn2syef.js +1 -0
  123. package/runtime-dist/c-prt5qv2x.js +1 -0
  124. package/runtime-dist/c-qe1kevqk.js +1 -0
  125. package/runtime-dist/c-rasvf2z2.js +2 -0
  126. package/runtime-dist/c-rf1xevya.js +1 -0
  127. package/runtime-dist/c-rktc0ksd.js +2 -0
  128. package/runtime-dist/c-sd570jk7.js +2 -0
  129. package/runtime-dist/c-sdf15np5.js +1 -0
  130. package/runtime-dist/c-sjajadt4.js +2 -0
  131. package/runtime-dist/c-sv15z0aa.js +1 -0
  132. package/runtime-dist/c-tv3ksk7j.js +2 -0
  133. package/runtime-dist/c-vrmw0gka.js +1 -0
  134. package/runtime-dist/c-wjadf68q.js +1 -0
  135. package/runtime-dist/c-wnynh7zm.js +1 -0
  136. package/runtime-dist/c-xeqwqt9z.js +2 -0
  137. package/runtime-dist/c-xk9fqzsc.js +1 -0
  138. package/runtime-dist/c-xqf3j4w7.js +1 -0
  139. package/runtime-dist/c-xx4986kx.js +1 -0
  140. package/runtime-dist/c-y9120d6h.js +1 -0
  141. package/runtime-dist/c-ywzh0r63.js +1 -0
  142. package/runtime-dist/c-zyfkspym.js +2 -0
  143. package/runtime-dist/index.html +14 -0
  144. package/runtime-dist/ui-accordion.css +29 -0
  145. package/runtime-dist/ui-app-shell.css +36 -0
  146. package/runtime-dist/ui-avatar.css +28 -0
  147. package/runtime-dist/ui-badge.css +14 -0
  148. package/runtime-dist/ui-block-editor.css +85 -0
  149. package/runtime-dist/ui-block-view.css +50 -0
  150. package/runtime-dist/ui-block.css +20 -0
  151. package/runtime-dist/ui-bottom-nav.css +54 -0
  152. package/runtime-dist/ui-breadcrumb.css +25 -0
  153. package/runtime-dist/ui-button-group.css +39 -0
  154. package/runtime-dist/ui-calendar.css +168 -0
  155. package/runtime-dist/ui-card.css +26 -0
  156. package/runtime-dist/ui-carousel.css +35 -0
  157. package/runtime-dist/ui-chart.css +26 -0
  158. package/runtime-dist/ui-checkbox.css +25 -0
  159. package/runtime-dist/ui-chip.css +30 -0
  160. package/runtime-dist/ui-code-editor.css +25 -0
  161. package/runtime-dist/ui-colorpicker.css +46 -0
  162. package/runtime-dist/ui-combo.css +43 -0
  163. package/runtime-dist/ui-dataview.css +50 -0
  164. package/runtime-dist/ui-datepicker.css +80 -0
  165. package/runtime-dist/ui-dialog.css +119 -0
  166. package/runtime-dist/ui-divider.css +18 -0
  167. package/runtime-dist/ui-fieldset.css +25 -0
  168. package/runtime-dist/ui-filter-chip.css +24 -0
  169. package/runtime-dist/ui-floating.css +9 -0
  170. package/runtime-dist/ui-gantt.css +105 -0
  171. package/runtime-dist/ui-image.css +34 -0
  172. package/runtime-dist/ui-inplace.css +19 -0
  173. package/runtime-dist/ui-json-editor.css +40 -0
  174. package/runtime-dist/ui-layout.css +39 -0
  175. package/runtime-dist/ui-listbox.css +52 -0
  176. package/runtime-dist/ui-map.css +469 -0
  177. package/runtime-dist/ui-menu.css +38 -0
  178. package/runtime-dist/ui-menubar.css +55 -0
  179. package/runtime-dist/ui-meter.css +26 -0
  180. package/runtime-dist/ui-multiselect.css +62 -0
  181. package/runtime-dist/ui-nav-drawer.css +118 -0
  182. package/runtime-dist/ui-number.css +26 -0
  183. package/runtime-dist/ui-option-list.css +28 -0
  184. package/runtime-dist/ui-orderlist.css +54 -0
  185. package/runtime-dist/ui-orgchart.css +71 -0
  186. package/runtime-dist/ui-paginator.css +25 -0
  187. package/runtime-dist/ui-panel.css +28 -0
  188. package/runtime-dist/ui-password.css +26 -0
  189. package/runtime-dist/ui-picklist.css +58 -0
  190. package/runtime-dist/ui-popover.css +20 -0
  191. package/runtime-dist/ui-progress.css +31 -0
  192. package/runtime-dist/ui-radio.css +29 -0
  193. package/runtime-dist/ui-rating.css +19 -0
  194. package/runtime-dist/ui-richtext.css +48 -0
  195. package/runtime-dist/ui-scheduler.css +132 -0
  196. package/runtime-dist/ui-scroll-top.css +17 -0
  197. package/runtime-dist/ui-segmented.css +25 -0
  198. package/runtime-dist/ui-select.css +47 -0
  199. package/runtime-dist/ui-sheet.css +56 -0
  200. package/runtime-dist/ui-skeleton.css +18 -0
  201. package/runtime-dist/ui-slider.css +59 -0
  202. package/runtime-dist/ui-speed-dial.css +26 -0
  203. package/runtime-dist/ui-splitter.css +23 -0
  204. package/runtime-dist/ui-stepper.css +47 -0
  205. package/runtime-dist/ui-switch.css +31 -0
  206. package/runtime-dist/ui-table-panel.css +114 -0
  207. package/runtime-dist/ui-table.css +430 -0
  208. package/runtime-dist/ui-tabs.css +45 -0
  209. package/runtime-dist/ui-taskboard.css +104 -0
  210. package/runtime-dist/ui-timeline.css +44 -0
  211. package/runtime-dist/ui-toast.css +43 -0
  212. package/runtime-dist/ui-toggle-button.css +6 -0
  213. package/runtime-dist/ui-tooltip.css +21 -0
  214. package/runtime-dist/ui-tree.css +44 -0
  215. package/runtime-dist/ui-upload.css +46 -0
  216. package/runtime-dist/version.json +1 -0
  217. package/src/browser.ts +126 -0
  218. package/src/draft-toolbar.ts +67 -0
  219. package/src/front-view.ts +186 -0
  220. package/src/index.ts +5 -0
  221. package/src/items.ts +436 -0
  222. package/src/lazy.ts +76 -0
  223. package/src/messages.ts +110 -0
  224. package/src/sections/grid.ts +56 -0
  225. package/src/sections/under-construction.ts +34 -0
@@ -0,0 +1,104 @@
1
+ /*
2
+ * @poadio/ui-core — tableau de tâches (`.poad-taskboard`, kanban). Source unique du style pour tous les paquets de
3
+ * rendu : ui-angular l'inclut dans `poad-taskboard` (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 ; icônes : `icon.css` ; avatar :
5
+ * `avatar.css`).
6
+ *
7
+ * Racine `.poad-taskboard` (`is-compact`, `is-static`, `is-dragging` ; variable `--poad-taskboard-col`) > `.tb__live`,
8
+ * `.tb__hint` ; CARTES `.tb__board` > `.tb__col` (`is-drop-target`) > `.tb__head` (`.tb__dot`, `.tb__name`,
9
+ * `.tb__count` `is-full|is-over`) et `.tb__list` > `.tb__card` (`is-orphan`, `is-locked`, `is-dragging`, `is-ghost`,
10
+ * `is-drop-before|after` ; `.tb__title`, `.tb__prog`, `.tb__meta` > `.tb__tag`, `.tb__due` `is-late`, avatars) ou
11
+ * `.tb__empty` ; LISTE `.tb__rows` > `button.tb__grp` (`is-collapsed`) et `.tb__group-list` (`is-drop-target`) >
12
+ * `.tb__row` (`.tb__main`, `.tb__cell-due`, `.tb__pct`, `.tb__mob`).
13
+ * Écrit à partir des styles `:host` du composant Angular (mêmes noms de parties) ; le glisser du CDK devient celui de
14
+ * la brique `dnd` : la carte saisie reste en place, estompée, un aperçu flottant (`is-ghost`) suit le pointeur et un
15
+ * trait montre où elle tombera.
16
+ */
17
+ poad-taskboard:not(.poad-taskboard) { display: block; min-width: 0; min-height: 0; height: 100%; }
18
+ .poad-taskboard { display: flex; flex-direction: column; position: relative; min-width: 0; min-height: 0; height: 100%; box-sizing: border-box;
19
+ font: var(--poad-font-size)/1.35 var(--poad-font); color: var(--poad-fg); background: var(--poad-bg); }
20
+ .poad-taskboard *, .poad-taskboard *::before, .poad-taskboard *::after { box-sizing: border-box; }
21
+
22
+ /* ---------------- présentation CARTES ---------------- */
23
+ .poad-taskboard .tb__board { flex: 1; min-height: 0; display: flex; gap: 12px; padding: 12px; overflow-x: auto; overflow-y: hidden; scrollbar-gutter: stable; }
24
+ .poad-taskboard .tb__col { flex: 0 0 var(--poad-taskboard-col, 258px); display: flex; flex-direction: column; min-height: 0; background: var(--poad-bg-subtle); border: 1px solid var(--poad-border); border-radius: var(--poad-radius);
25
+ transition: border-color var(--poad-dur) var(--poad-ease), background-color var(--poad-dur) var(--poad-ease); }
26
+ .poad-taskboard .tb__col.is-drop-target { border-color: var(--poad-accent); background: var(--poad-accent-soft); }
27
+ .poad-taskboard .tb__head { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-bottom: 1px solid var(--poad-border); }
28
+ .poad-taskboard .tb__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--_c, var(--poad-border-strong)); }
29
+ .poad-taskboard .tb__name { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
30
+ .poad-taskboard .tb__count { font-family: var(--poad-font-mono); font-size: var(--poad-font-size-sm); padding: 2px 7px; border-radius: var(--poad-radius-pill); background: var(--poad-elevated); color: var(--poad-fg-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
31
+ .poad-taskboard .tb__count.is-full { background: var(--poad-warning-soft); color: var(--poad-warning); }
32
+ .poad-taskboard .tb__count.is-over { background: var(--poad-danger-soft); color: var(--poad-danger); font-weight: 500; }
33
+
34
+ .poad-taskboard .tb__list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; scrollbar-gutter: stable; }
35
+
36
+ .poad-taskboard .tb__card { position: relative; background: var(--poad-surface); border: 1px solid var(--poad-border); border-radius: var(--poad-radius-sm); padding: 9px 10px; box-shadow: var(--poad-shadow-sm);
37
+ display: flex; flex-direction: column; gap: 7px; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: manipulation; transition: border-color var(--poad-dur) var(--poad-ease), box-shadow var(--poad-dur) var(--poad-ease); }
38
+ .poad-taskboard .tb__card:hover { border-color: var(--poad-border-strong); box-shadow: var(--poad-shadow-md); }
39
+ .poad-taskboard .tb__card:focus-visible { outline: 2px solid var(--poad-ring); outline-offset: 1px; }
40
+ .poad-taskboard .tb__card.is-orphan { border-inline-start: 2px dashed var(--poad-warning); }
41
+ .poad-taskboard.is-static .tb__card, .poad-taskboard.is-static .tb__row, .poad-taskboard .is-locked { cursor: default; }
42
+
43
+ .poad-taskboard .tb__title { margin: 0; font-weight: 500; line-height: 1.32; overflow-wrap: anywhere; }
44
+ .poad-taskboard .tb__meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
45
+ .poad-taskboard .tb__tag { font-family: var(--poad-font-mono); font-size: 10px; padding: 2px 6px; border-radius: var(--poad-radius-sm); background: var(--poad-elevated); color: var(--poad-fg-secondary); }
46
+ .poad-taskboard .tb__due { font-family: var(--poad-font-mono); font-size: var(--poad-font-size-sm); color: var(--poad-fg-muted); font-variant-numeric: tabular-nums; }
47
+ .poad-taskboard .tb__due.is-late { color: var(--poad-danger); font-weight: 500; }
48
+ .poad-taskboard .tb__sp { flex: 1 1 auto; }
49
+ .poad-taskboard .tb__prog { height: 3px; border-radius: var(--poad-radius-pill); background: var(--poad-elevated); overflow: hidden; }
50
+ .poad-taskboard .tb__prog i { display: block; height: 100%; border-radius: var(--poad-radius-pill); background: var(--poad-accent); }
51
+ .poad-taskboard .tb__prog.is-done i { background: var(--poad-success); }
52
+
53
+ .poad-taskboard .tb__empty { margin: 0; padding: 14px 10px; text-align: center; color: var(--poad-fg-muted); font-size: var(--poad-font-size-sm); border: 1px dashed var(--poad-border-strong); border-radius: var(--poad-radius-sm); }
54
+ .poad-taskboard .tb__group-list .tb__empty { margin: 10px 14px; }
55
+
56
+ /* ---------------- présentation LISTE ---------------- */
57
+ .poad-taskboard .tb__rows { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 12px; scrollbar-gutter: stable; }
58
+ .poad-taskboard .tb__grp { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0; padding: 8px 14px; background: var(--poad-bg-subtle); border: 0; border-top: 1px solid var(--poad-border); border-bottom: 1px solid var(--poad-border);
59
+ position: sticky; top: 0; z-index: 1; cursor: pointer; text-align: start; font: inherit; color: inherit; }
60
+ .poad-taskboard .tb__grp:hover { background: var(--poad-hover); }
61
+ .poad-taskboard .tb__grp:focus-visible { outline: 2px solid var(--poad-ring); outline-offset: -2px; }
62
+ .poad-taskboard .tb__grp .poad-icon { color: var(--poad-fg-muted); transition: transform var(--poad-dur) var(--poad-ease); }
63
+ .poad-taskboard .tb__grp.is-collapsed .poad-icon { transform: rotate(-90deg); }
64
+ .poad-taskboard .tb__grp.is-collapsed .poad-icon:dir(rtl) { transform: rotate(90deg); }
65
+ .poad-taskboard .tb__grp b { font-weight: 500; }
66
+
67
+ .poad-taskboard .tb__group-list { display: block; }
68
+ .poad-taskboard .tb__group-list.is-drop-target { background: var(--poad-accent-soft); }
69
+ .poad-taskboard .tb__row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 92px 88px 26px; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--poad-border);
70
+ cursor: grab; user-select: none; -webkit-user-select: none; touch-action: manipulation; background: var(--poad-bg); }
71
+ .poad-taskboard .tb__row:hover { background: var(--poad-hover); }
72
+ .poad-taskboard .tb__row:focus-visible { outline: 2px solid var(--poad-ring); outline-offset: -2px; }
73
+ .poad-taskboard .tb__row.is-orphan { box-shadow: inset 2px 0 0 var(--poad-warning); }
74
+ .poad-taskboard .tb__main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
75
+ .poad-taskboard .tb__main .tb__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
76
+ .poad-taskboard .tb__pct { display: flex; align-items: center; gap: 7px; }
77
+ .poad-taskboard .tb__pct .tb__prog { flex: 1; }
78
+ .poad-taskboard .tb__pct span { font-family: var(--poad-font-mono); font-size: 10px; color: var(--poad-fg-muted); font-variant-numeric: tabular-nums; }
79
+
80
+ /* sous le seuil, la liste se resserre : l'échéance rejoint le titre, l'avancement s'efface */
81
+ .poad-taskboard.is-compact .tb__row { grid-template-columns: minmax(0, 1fr) 26px; }
82
+ .poad-taskboard.is-compact .tb__cell-due, .poad-taskboard.is-compact .tb__pct { display: none; }
83
+ .poad-taskboard.is-compact .tb__mob { display: inline-flex; }
84
+ .poad-taskboard .tb__mob { display: none; align-items: center; gap: 7px; }
85
+
86
+ /* ---------------- glisser (brique dnd) ---------------- */
87
+ .poad-taskboard.is-dragging, .poad-taskboard.is-dragging .tb__card, .poad-taskboard.is-dragging .tb__row { cursor: grabbing; }
88
+ /* la carte saisie reste à sa place, estompée ; son aperçu flottant suit le pointeur */
89
+ .poad-taskboard .is-dragging.tb__card, .poad-taskboard .is-dragging.tb__row { opacity: .4; outline: 1px dashed var(--poad-accent); outline-offset: -1px; }
90
+ .poad-taskboard .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; transform: rotate(1.5deg); }
91
+ /* trait de dépôt : où la carte tombera (avant celle-ci, ou après la dernière) */
92
+ .poad-taskboard .is-drop-before::before, .poad-taskboard .is-drop-after::after { content: ''; position: absolute; z-index: 3; inset-inline: 0; height: 9px; pointer-events: none;
93
+ 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;
94
+ filter: drop-shadow(0 0 1px var(--poad-input-bg)); }
95
+ .poad-taskboard .tb__card.is-drop-before::before { top: -9px; }
96
+ .poad-taskboard .tb__card.is-drop-after::after { bottom: -9px; }
97
+ .poad-taskboard .tb__row.is-drop-before::before { top: -5px; }
98
+ .poad-taskboard .tb__row.is-drop-after::after { bottom: -5px; }
99
+ .poad-taskboard .is-drop-before:dir(rtl)::before, .poad-taskboard .is-drop-after:dir(rtl)::after { transform: scaleX(-1); }
100
+
101
+ /* annonce et aide aux lecteurs d'écran — hors flux, jamais display:none (elles ne seraient plus lues) */
102
+ .poad-taskboard .tb__live, .poad-taskboard .tb__hint { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
103
+
104
+ @media (prefers-reduced-motion: reduce) { .poad-taskboard .tb__col, .poad-taskboard .tb__card, .poad-taskboard .tb__grp .poad-icon { transition: none; } .poad-taskboard .is-ghost { transform: none; } }
@@ -0,0 +1,44 @@
1
+ /*
2
+ * @poadio/ui-core — chronologie (`.poad-timeline`). Source unique du style pour tous les paquets de rendu : ui-angular
3
+ * l'inclut dans `poad-timeline` (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 des marqueurs : `icon.css`).
5
+ *
6
+ * Classes de la racine (`timelineClasses()`) : `align-left|right|alternate|top|bottom`, `is-horizontal`, `is-dense`.
7
+ * Parties : `.poad-timeline__event` (`is-done`, `is-current`, `is-alt`) > `.poad-timeline__opposite`,
8
+ * `.poad-timeline__separator` > `.poad-timeline__marker` (`has-icon` ; couleur `--_c`) + `.poad-timeline__connector`,
9
+ * `.poad-timeline__content`.
10
+ * Écrit à partir des styles `:host` du composant Angular, une règle pour une règle : `:host(X)` → `.poad-timeline X`,
11
+ * une partie → `.poad-timeline .partie` (anciens noms : `tl__ev`, `tl__opp`, `tl__sep`, `tl__marker`, `tl__conn`,
12
+ * `tl__content`) ; l'axe en ligne suit la direction du texte (flex, `text-align: start|end`), marges logiques.
13
+ */
14
+ .poad-timeline { display: flex; flex-direction: column; font-family: var(--poad-font); font-size: var(--poad-font-size); color: var(--poad-fg); }
15
+ .poad-timeline .poad-timeline__event { display: flex; min-height: 64px; }
16
+ .poad-timeline.is-dense .poad-timeline__event { min-height: 44px; }
17
+ .poad-timeline .poad-timeline__opposite, .poad-timeline .poad-timeline__content { flex: 1; min-width: 0; padding-block: 0 18px; padding-inline: 14px; }
18
+ .poad-timeline.is-dense .poad-timeline__opposite, .poad-timeline.is-dense .poad-timeline__content { padding-bottom: 10px; }
19
+ .poad-timeline .poad-timeline__opposite { text-align: end; color: var(--poad-fg-secondary); font-size: 12px; }
20
+ .poad-timeline .poad-timeline__separator { display: flex; flex-direction: column; align-items: center; flex: none; width: 28px; }
21
+ .poad-timeline .poad-timeline__marker { --_c: var(--poad-border-strong); width: 12px; height: 12px; border-radius: 50%; background: var(--_c); flex: none; margin-top: 4px; box-shadow: 0 0 0 3px var(--poad-surface); }
22
+ .poad-timeline .poad-timeline__marker.has-icon { width: 28px; height: 28px; display: grid; place-items: center; color: var(--poad-fg-on-accent); margin-top: 0; }
23
+ .poad-timeline .poad-timeline__connector { flex: 1; width: 2px; background: var(--poad-border-strong); margin: 4px 0; }
24
+ .poad-timeline .poad-timeline__event.is-done .poad-timeline__marker { --_c: var(--poad-accent); }
25
+ .poad-timeline .poad-timeline__event.is-done .poad-timeline__connector { background: var(--poad-accent); }
26
+ .poad-timeline .poad-timeline__event.is-current .poad-timeline__marker { box-shadow: 0 0 0 3px var(--poad-surface), 0 0 0 5px var(--poad-accent-soft); }
27
+ /* align-left : contenu après la ligne, pas d'opposé ; align-right : l'inverse */
28
+ .poad-timeline.align-left .poad-timeline__opposite { display: none; }
29
+ .poad-timeline.align-right .poad-timeline__content { display: none; }
30
+ .poad-timeline.align-right .poad-timeline__opposite { text-align: start; color: var(--poad-fg); font-size: inherit; }
31
+ .poad-timeline.align-right .poad-timeline__event { flex-direction: row-reverse; }
32
+ .poad-timeline.align-alternate .poad-timeline__event.is-alt { flex-direction: row-reverse; }
33
+ .poad-timeline.align-alternate .poad-timeline__event.is-alt .poad-timeline__opposite { text-align: start; }
34
+ .poad-timeline.align-alternate .poad-timeline__event.is-alt .poad-timeline__content { text-align: end; }
35
+ /* horizontale */
36
+ .poad-timeline.is-horizontal { flex-direction: row; }
37
+ .poad-timeline.is-horizontal .poad-timeline__event { flex-direction: column; flex: 1; min-height: 0; min-width: 120px; }
38
+ .poad-timeline.is-horizontal .poad-timeline__opposite, .poad-timeline.is-horizontal .poad-timeline__content { padding: 8px 8px; text-align: start; }
39
+ .poad-timeline.is-horizontal .poad-timeline__separator { flex-direction: row; width: auto; height: 28px; align-items: center; }
40
+ .poad-timeline.is-horizontal .poad-timeline__marker { margin: 0; }
41
+ .poad-timeline.is-horizontal .poad-timeline__connector { width: auto; height: 2px; flex: 1; margin: 0 4px; }
42
+ .poad-timeline.is-horizontal.align-top .poad-timeline__content { display: none; }
43
+ .poad-timeline.is-horizontal.align-bottom .poad-timeline__opposite { display: none; }
44
+ .poad-timeline.is-horizontal.align-alternate .poad-timeline__event.is-alt { flex-direction: column-reverse; }
@@ -0,0 +1,43 @@
1
+ /*
2
+ * @poadio/ui-core — toasts (`.poad-toast`). Source unique du style pour tous les paquets de rendu : ui-angular l'inclut
3
+ * dans `poad-toast` (encapsulation désactivée), les autres rendus le font charger par l'application. Ne lit que les
4
+ * jetons --poad-* (icônes : `icon.css` ; boutons d'action : `button.css`).
5
+ *
6
+ * Anatomie : conteneur `.poad-toast` (`pos-top-right|top-left|bottom-right|bottom-left|top-center|bottom-center`, en
7
+ * `position: fixed`) > des `.poad-toast__item` (`sev-*`, `is-out` ; `role="status"` ou `alert`) > icône
8
+ * `.poad-toast__icon`, `.poad-toast__text` (`b` résumé, `span` détail, `.poad-toast__actions`), `.poad-toast__close`,
9
+ * barre de vie `.poad-toast__progress`.
10
+ * Écrit à partir des styles `:host` du composant Angular, une règle pour une règle : `:host(X)` → `.poad-toast X`,
11
+ * une partie → `.poad-toast .partie` ; le résumé et le détail (`b`, `span`) sont les enfants directs de
12
+ * `.poad-toast__text`, pour ne pas atteindre les boutons d'action (leur libellé est un `span`). Le conteneur se range sous les barres de la coquille (`--poad-shell-top`,
13
+ * `--poad-shell-bottom`) et dans la zone sûre ; largeur en pourcentage (pas `vw`, qui compte la barre de défilement).
14
+ */
15
+ .poad-toast { position: fixed; display: flex; flex-direction: column; gap: 8px; width: 340px; max-width: calc(100% - 32px); pointer-events: none; font-family: var(--poad-font); }
16
+ .poad-toast { --_haut: calc(16px + max(var(--poad-shell-top, 0px), env(safe-area-inset-top, 0px)));
17
+ --_bas: calc(16px + max(var(--poad-shell-bottom, 0px), env(safe-area-inset-bottom, 0px))); }
18
+ .poad-toast.pos-top-right { top: var(--_haut); inset-inline-end: 16px; } .poad-toast.pos-top-left { top: var(--_haut); inset-inline-start: 16px; }
19
+ .poad-toast.pos-bottom-right { bottom: var(--_bas); inset-inline-end: 16px; flex-direction: column-reverse; } .poad-toast.pos-bottom-left { bottom: var(--_bas); inset-inline-start: 16px; flex-direction: column-reverse; }
20
+ .poad-toast.pos-top-center { top: var(--_haut); left: 50%; transform: translateX(-50%); } .poad-toast.pos-bottom-center { bottom: var(--_bas); left: 50%; transform: translateX(-50%); flex-direction: column-reverse; }
21
+ .poad-toast .poad-toast__item { --_c: var(--poad-accent); position: relative; overflow: hidden; pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px;
22
+ border-radius: 10px; background: var(--poad-overlay); --poad-hover: var(--poad-overlay-hover); border: 1px solid var(--poad-border); border-inline-start: 3px solid var(--_c); box-shadow: var(--poad-shadow-lg); color: var(--poad-fg);
23
+ animation: poad-toast-in 180ms var(--poad-ease); }
24
+ .poad-toast .poad-toast__item.is-out { animation: poad-toast-out 160ms var(--poad-ease) forwards; }
25
+ /* `[role]` (que porte chaque toast) : au-dessus de la règle « mouvement réduit », comme avant le passage au socle */
26
+ .poad-toast.pos-top-left .poad-toast__item[role], .poad-toast.pos-bottom-left .poad-toast__item[role] { animation-name: poad-toast-in-l; }
27
+ .poad-toast .poad-toast__item.sev-success { --_c: var(--poad-success); } .poad-toast .poad-toast__item.sev-info { --_c: var(--poad-info); }
28
+ .poad-toast .poad-toast__item.sev-warning { --_c: var(--poad-warning); } .poad-toast .poad-toast__item.sev-danger { --_c: var(--poad-danger); }
29
+ .poad-toast .poad-toast__item.sev-secondary { --_c: var(--poad-fg-muted); } .poad-toast .poad-toast__item.sev-contrast { --_c: var(--poad-fg); background: var(--poad-fg); color: var(--poad-bg); }
30
+ .poad-toast .poad-toast__icon { color: var(--_c); margin-top: 1px; flex: none; }
31
+ .poad-toast .poad-toast__text { display: grid; gap: 2px; flex: 1; min-width: 0; }
32
+ .poad-toast .poad-toast__text > b { font-weight: 600; font-size: 13px; }
33
+ .poad-toast .poad-toast__text > span { color: var(--poad-fg-secondary); font-size: 12.5px; line-height: 1.4; }
34
+ .poad-toast .sev-contrast .poad-toast__text > span { color: inherit; opacity: .8; }
35
+ .poad-toast .poad-toast__actions { display: flex; gap: 4px; margin-top: 4px; margin-inline-start: -8px; }
36
+ .poad-toast .poad-toast__close { border: 0; background: transparent; color: var(--poad-fg-muted); cursor: pointer; padding: 2px; border-radius: 4px; display: grid; place-items: center; flex: none; margin-block: -2px 0; margin-inline: 0 -4px; }
37
+ .poad-toast .poad-toast__close:hover { color: var(--poad-fg); background: var(--poad-hover); }
38
+ .poad-toast .poad-toast__progress { position: absolute; inset-inline-start: 0; bottom: 0; height: 2px; width: 100%; background: var(--_c); opacity: .5; transform-origin: left; animation: poad-toast-life linear forwards; }
39
+ @keyframes poad-toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
40
+ @keyframes poad-toast-in-l { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
41
+ @keyframes poad-toast-out { to { opacity: 0; transform: scale(.96); } }
42
+ @keyframes poad-toast-life { from { transform: scaleX(1); } to { transform: scaleX(0); } }
43
+ @media (prefers-reduced-motion: reduce) { .poad-toast .poad-toast__item, .poad-toast .poad-toast__item.is-out { animation-duration: 1ms; } }
@@ -0,0 +1,6 @@
1
+ /*
2
+ * @poadio/ui-core — bouton à bascule (`.poad-toggle-button`). La racine enveloppe un `.poad-button` (style
3
+ * `button.css`). ui-angular l'inclut dans `poad-toggle-button` (encapsulation désactivée), ui-react le fait charger
4
+ * par l'application. Écrit à partir des styles `:host` du composant Angular.
5
+ */
6
+ .poad-toggle-button { display: inline-flex; }
@@ -0,0 +1,21 @@
1
+ /*
2
+ * @poadio/ui-core — info-bulle (`.poad-tooltip`). Source unique du style pour tous les paquets de rendu :
3
+ * ui-angular l'inclut dans `poad-tooltip` (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-tooltip` (`role="tooltip"`, `data-placement` = côté retenu, `is-visible` une image après l'insertion pour la
7
+ * transition, `max-width` en style) > contenu, `.poad-tooltip__arrow`. Position de l'info-bulle : couche flottante du
8
+ * rendu (overlay du CDK en Angular, `.poad-floating` de `floating.css` ailleurs) ; position de la flèche le long du
9
+ * bord : style posé par le rendu (`floatingArrow()`), sinon centrée. Écrit à partir des styles `:host` du composant
10
+ * Angular, une règle pour une règle : `:host(X)` → `.poad-tooltip X`.
11
+ */
12
+ .poad-tooltip { position: relative; display: block; padding: 5px 9px; border-radius: 6px; background: var(--poad-tooltip-bg); color: var(--poad-tooltip-fg);
13
+ font: 12px/1.35 var(--poad-font); box-shadow: var(--poad-shadow-lg); pointer-events: none; opacity: 0; transform: translateY(2px);
14
+ transition: opacity 120ms var(--poad-ease), transform 120ms var(--poad-ease); word-wrap: break-word; }
15
+ .poad-tooltip.is-visible { opacity: 1; transform: none; }
16
+ .poad-tooltip .poad-tooltip__arrow { position: absolute; width: 8px; height: 8px; background: inherit; transform: rotate(45deg); }
17
+ .poad-tooltip[data-placement="top"] .poad-tooltip__arrow { left: 50%; bottom: -4px; margin-inline-start: -4px; }
18
+ .poad-tooltip[data-placement="bottom"] .poad-tooltip__arrow { left: 50%; top: -4px; margin-inline-start: -4px; }
19
+ .poad-tooltip[data-placement="left"] .poad-tooltip__arrow { inset-inline-end: -4px; top: 50%; margin-top: -4px; }
20
+ .poad-tooltip[data-placement="right"] .poad-tooltip__arrow { inset-inline-start: -4px; top: 50%; margin-top: -4px; }
21
+ @media (prefers-reduced-motion: reduce) { .poad-tooltip { transition: none; transform: none; } }
@@ -0,0 +1,44 @@
1
+ /*
2
+ * @poadio/ui-core — arbre (`.poad-tree`). Source unique du style pour tous les paquets de rendu : ui-angular l'inclut
3
+ * dans `poad-tree` (encapsulation désactivée), les autres rendus le font charger par l'application. CSS pur, ne lit
4
+ * que les jetons --poad-* (charger `tokens.css` avant ; icônes : `icon.css` ; case : `checkbox.css`).
5
+ *
6
+ * Racine `.poad-tree` (`has-lines` ; `--_indent` : retrait par niveau, défaut 18px) > `.poad-tree__filter` (icône,
7
+ * `input[type=search]`, bouton d'effacement) > `.poad-tree__list` (`role="tree"`) > `.poad-tree__node`
8
+ * (`role="treeitem"` ; `is-selected`, `is-partial`, `has-children`, `is-open`, `is-loading` ; `--_lvl`) > `i.ind` ou
9
+ * `i.tl` × niveau, bascule `button.tg` (`is-leaf`, `is-open`), case `.cb` (`.poad-checkbox` visuelle, `is-on` /
10
+ * `is-ind`), icône `.ic`, libellé `.lb` ; `.poad-tree__empty`. Écrit à partir
11
+ * des styles `:host` du composant Angular (mêmes noms de parties) ; nouveau : chevron en miroir de droite à gauche,
12
+ * case visuelle (l'état est porté par `aria-checked` du nœud), indicateur de chargement.
13
+ */
14
+ .poad-tree { display: block; font: var(--poad-font-size)/1.4 var(--poad-font); color: var(--poad-fg); min-width: 0; }
15
+ .poad-tree .poad-tree__filter { position: relative; display: flex; align-items: center; margin-bottom: 6px; }
16
+ .poad-tree .poad-tree__filter > .poad-icon { position: absolute; inset-inline-start: 9px; color: var(--poad-fg-muted); pointer-events: none; }
17
+ .poad-tree .poad-tree__filter input { width: 100%; box-sizing: border-box; height: 30px; padding-block: 0; padding-inline: 30px 28px; font: var(--poad-font-size) var(--poad-font); color: var(--poad-fg); background: var(--poad-input-bg); border: 1px solid var(--poad-input-border); border-radius: var(--poad-radius); outline: 0; transition: border-color var(--poad-dur), box-shadow var(--poad-dur); }
18
+ .poad-tree .poad-tree__filter input::-webkit-search-cancel-button { display: none; }
19
+ .poad-tree .poad-tree__filter input:focus { border-color: var(--poad-accent); box-shadow: 0 0 0 3px var(--poad-ring); }
20
+ .poad-tree .poad-tree__filter button { position: absolute; inset-inline-end: 6px; border: 0; background: transparent; color: var(--poad-fg-muted); cursor: pointer; display: grid; place-items: center; padding: 2px; border-radius: 4px; }
21
+ .poad-tree .poad-tree__filter button:hover { color: var(--poad-fg); background: var(--poad-hover); }
22
+ .poad-tree .poad-tree__list { outline: 0; }
23
+ .poad-tree .poad-tree__node { display: flex; align-items: center; gap: 4px; min-height: 30px; padding-block: 0; padding-inline: 4px 8px; border-radius: 6px; cursor: pointer; user-select: none; -webkit-user-select: none; }
24
+ .poad-tree .poad-tree__node:hover { background: var(--poad-hover); }
25
+ .poad-tree .poad-tree__node:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--poad-ring); }
26
+ .poad-tree .poad-tree__node.is-selected { background: var(--poad-accent-soft); color: var(--poad-accent); }
27
+ .poad-tree .poad-tree__node.is-selected .lb { font-weight: 500; }
28
+ .poad-tree .ind { display: inline-block; width: calc(var(--_lvl, 0) * var(--_indent, 18px)); flex: none; }
29
+ .poad-tree .tl { display: inline-block; width: var(--_indent, 18px); align-self: stretch; flex: none; position: relative; }
30
+ .poad-tree.has-lines .tl::before { content: ''; position: absolute; inset-inline-start: 8px; top: -2px; bottom: -2px; border-inline-start: 1px solid var(--poad-border); }
31
+ .poad-tree .tg { width: 20px; height: 20px; border: 0; border-radius: 5px; background: transparent; color: var(--poad-fg-muted); display: inline-grid; place-items: center; cursor: pointer; padding: 0; flex: none; }
32
+ .poad-tree .tg:hover { background: var(--poad-elevated); color: var(--poad-fg); }
33
+ .poad-tree .tg > .poad-icon { transition: transform var(--poad-dur); }
34
+ .poad-tree .tg.is-open > .poad-icon:not(.is-spin) { transform: rotate(90deg); }
35
+ .poad-tree .tg:dir(rtl):not(.is-open) > .poad-icon:not(.is-spin) { transform: scaleX(-1); }
36
+ .poad-tree .tg.is-leaf { visibility: hidden; pointer-events: none; }
37
+ .poad-tree .cb { margin: 0 2px; flex: none; cursor: pointer; }
38
+ .poad-tree .cb.is-disabled { cursor: not-allowed; }
39
+ .poad-tree .ic { color: var(--poad-fg-muted); margin-inline-end: 2px; flex: none; }
40
+ .poad-tree .poad-tree__node.is-selected .ic { color: inherit; }
41
+ .poad-tree .lb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
42
+ .poad-tree .poad-tree__empty { padding: 14px 8px; color: var(--poad-fg-muted); font-size: var(--poad-font-size-sm); text-align: center; }
43
+ @media (hover: none) { .poad-tree .poad-tree__node { min-height: 40px; } }
44
+ @media (prefers-reduced-motion: reduce) { .poad-tree .tg > .poad-icon { transition: none; } .poad-tree .poad-tree__filter input { transition: none; } }
@@ -0,0 +1,46 @@
1
+ /*
2
+ * @poadio/ui-core — envoi de fichiers (`.poad-upload`). Source unique du style pour tous les paquets de rendu :
3
+ * ui-angular l'inclut dans `poad-upload` (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`, barre :
5
+ * `progress.css`, icônes : `icon.css`).
6
+ *
7
+ * Classes de la racine (`uploadClasses()`) : `mode-advanced|dropzone|basic`, `is-drag`, `is-disabled`. Parties :
8
+ * `input.poad-upload__input` (caché), `.poad-upload__zone` (`is-drag`) > `.poad-upload__txt`, `.poad-upload__hint` ;
9
+ * `.poad-upload__list` > `.poad-upload__item` (`st-pending|uploading|done|error|invalid`) > `.poad-upload__thumb` |
10
+ * `.poad-upload__ic`, `.poad-upload__meta` > `.poad-upload__name`, `.poad-upload__sub` (`.poad-upload__msg.is-err`),
11
+ * `.poad-upload__st` (`.poad-upload__pct`), `.poad-upload__remove` ; `.poad-upload__actions` ;
12
+ * `.poad-upload__basic-info`. Écrit à partir des styles `:host` du composant Angular, une règle pour une règle
13
+ * (le message n'avait pas de classe ; couleur des icônes d'état portée par la ligne, plus en style en ligne).
14
+ */
15
+ .poad-upload { display: block; position: relative; min-width: 0; font-family: var(--poad-font); font-size: var(--poad-font-size); color: var(--poad-fg); }
16
+ .poad-upload.mode-basic { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
17
+ .poad-upload .poad-upload__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; clip-path: inset(50%); }
18
+ .poad-upload .poad-upload__zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 22px 16px; border: 1.5px dashed var(--poad-border-strong); border-radius: var(--poad-radius-lg); background: var(--poad-bg-subtle); color: var(--poad-fg-secondary); text-align: center; cursor: pointer; transition: border-color var(--poad-dur), background var(--poad-dur); }
19
+ .poad-upload .poad-upload__zone:hover, .poad-upload .poad-upload__zone.is-drag { border-color: var(--poad-accent); background: var(--poad-accent-soft); color: var(--poad-fg); }
20
+ .poad-upload .poad-upload__zone:focus-visible { outline: 2px solid var(--poad-ring); outline-offset: 2px; }
21
+ .poad-upload.is-disabled .poad-upload__zone { opacity: .6; cursor: not-allowed; }
22
+ .poad-upload.is-disabled .poad-upload__zone:hover { border-color: var(--poad-border-strong); background: var(--poad-bg-subtle); color: var(--poad-fg-secondary); }
23
+ .poad-upload .poad-upload__txt { display: grid; overflow-wrap: anywhere; }
24
+ .poad-upload .poad-upload__txt b { font-weight: 600; }
25
+ .poad-upload .poad-upload__txt span { font-size: 12px; color: var(--poad-accent); }
26
+ .poad-upload .poad-upload__hint { color: var(--poad-fg-muted); font-size: 11.5px; }
27
+ .poad-upload .poad-upload__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
28
+ .poad-upload .poad-upload__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--poad-border); border-radius: var(--poad-radius); background: var(--poad-surface); }
29
+ .poad-upload .poad-upload__item.st-error, .poad-upload .poad-upload__item.st-invalid { border-color: color-mix(in srgb, var(--poad-danger) 40%, transparent); }
30
+ .poad-upload .poad-upload__ic { width: 34px; height: 34px; border-radius: 6px; background: var(--poad-bg-subtle); display: grid; place-items: center; color: var(--poad-fg-secondary); flex: none; }
31
+ .poad-upload .poad-upload__thumb { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; flex: none; }
32
+ .poad-upload .poad-upload__meta { flex: 1; min-width: 0; display: grid; gap: 3px; }
33
+ .poad-upload .poad-upload__name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
34
+ .poad-upload .poad-upload__sub { font-size: 11.5px; color: var(--poad-fg-muted); overflow-wrap: anywhere; }
35
+ .poad-upload .poad-upload__msg.is-err { color: var(--poad-danger); }
36
+ .poad-upload .poad-upload__st { display: inline-flex; align-items: center; min-width: 20px; justify-content: center; flex: none; }
37
+ .poad-upload .poad-upload__item.st-done .poad-upload__st { color: var(--poad-success); }
38
+ .poad-upload .poad-upload__item.st-error .poad-upload__st { color: var(--poad-danger); }
39
+ .poad-upload .poad-upload__item.st-invalid .poad-upload__st { color: var(--poad-warning); }
40
+ .poad-upload .poad-upload__pct { font: 500 11px var(--poad-font-mono); color: var(--poad-fg-secondary); white-space: nowrap; }
41
+ .poad-upload .poad-upload__remove { flex: none; }
42
+ .poad-upload .poad-upload__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
43
+ .poad-upload .poad-upload__basic-info { font-size: 12px; color: var(--poad-fg-secondary); }
44
+ /* région d'annonce aux lecteurs d'écran : hors de la vue, lue quand son texte change */
45
+ .poad-upload .poad-upload__live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
46
+ @media (prefers-reduced-motion: reduce) { .poad-upload .poad-upload__zone { transition: none; } }
@@ -0,0 +1 @@
1
+ {"name":"@poadio/app-vue","version":"0.2.0"}
package/src/browser.ts ADDED
@@ -0,0 +1,126 @@
1
+ // Ce qui touche au navigateur : historique, envoi des journaux, thème, démarrage complet d'un front servi par
2
+ // l'engine (bootFront). Rien ici ne s'exécute à l'import : les fonctions lisent `window` quand on les appelle.
3
+ import { createApp, type App } from 'vue';
4
+ import {
5
+ createFrontApp, createFrontLogger, createPreviewBridge, isFrontConfig, poadAuth, previewModeOf,
6
+ type AuthPort, type BrowserLogLine, type FrontApp, type FrontConfig, type GridLayout, type HistoryPort, type PoadAuthLike, type Theme,
7
+ } from '@poadio/app-core';
8
+ import { PoadFrontView } from './front-view.js';
9
+ import { langOf } from './messages.js';
10
+ import { preloadPage } from './lazy.js';
11
+
12
+ export const browserHistory = (): HistoryPort => ({
13
+ location: () => ({ pathname: window.location.pathname, search: window.location.search }),
14
+ push: (p) => window.history.pushState(null, '', p),
15
+ // En aperçu, ?poad_preview=… reste dans l'adresse (un rechargement de l'iframe garde son mode)
16
+ replace: (p) => window.history.replaceState(null, '', p + (previewModeOf(window.location.search) ? window.location.search : '')),
17
+ listen: (cb) => {
18
+ window.addEventListener('popstate', cb);
19
+ return () => window.removeEventListener('popstate', cb);
20
+ },
21
+ });
22
+
23
+ /** Envoi des lignes à l'origine du front (POST /_poad/log) ; à la fermeture de la page, sendBeacon */
24
+ export const logSender = (endpoint = '/_poad/log') => (lines: BrowserLogLine[], { final }: { final: boolean }) => {
25
+ const body = JSON.stringify({ lines });
26
+ try {
27
+ if (final && navigator.sendBeacon) {
28
+ navigator.sendBeacon(endpoint, new Blob([body], { type: 'application/json' }));
29
+ return;
30
+ }
31
+ void fetch(endpoint, { method: 'POST', headers: { 'content-type': 'application/json' }, body, keepalive: true, credentials: 'omit' }).catch(() => {});
32
+ } catch {
33
+ /* jamais d'erreur à cause du journal */
34
+ }
35
+ };
36
+
37
+ export const applyTheme = (theme: Theme | null) => {
38
+ const t = theme ?? (window.matchMedia?.('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
39
+ const root = document.documentElement;
40
+ root.classList.remove('theme-dark', 'theme-light');
41
+ root.classList.add(`theme-${t}`);
42
+ root.style.colorScheme = t;
43
+ };
44
+
45
+ /** Place des grilles de la page (le canevas de la console y pose ses poignées) */
46
+ export const gridLayouts = (doc: Document = document): GridLayout[] =>
47
+ [...doc.querySelectorAll<HTMLElement>('.poad-front__cells[data-grid]')].map((el) => {
48
+ const r = el.getBoundingClientRect();
49
+ const view = doc.defaultView;
50
+ const rows = Number(el.dataset['rows'] ?? 0);
51
+ const rowHeight = parseFloat(getComputedStyle(el).getPropertyValue('--poad-front-row')) || 40;
52
+ return {
53
+ section: el.dataset['grid'] ?? '',
54
+ x: r.left + (view?.scrollX ?? 0),
55
+ y: r.top + (view?.scrollY ?? 0),
56
+ width: r.width,
57
+ height: r.height,
58
+ rowHeight,
59
+ rows,
60
+ stacked: getComputedStyle(el).display !== 'grid',
61
+ };
62
+ });
63
+
64
+ export type BootOptions = {
65
+ el: Element;
66
+ /** Fabrique du client poad (createClient de @poadio/client-js) : url et clé anon viennent de front.json */
67
+ createClient: (url: string, anonKey: string) => PoadAuthLike;
68
+ configUrl?: string;
69
+ fetchConfig?: () => Promise<unknown>;
70
+ };
71
+
72
+ /** Démarre un front servi par l'engine : config, client poad, journaux, aperçu de la console, rendu */
73
+ export const bootFront = async (opts: BootOptions): Promise<{ app: FrontApp; vue: App } | null> => {
74
+ const logger = createFrontLogger(logSender());
75
+ window.addEventListener('pagehide', () => logger.flush(true));
76
+ window.addEventListener('error', (e) => logger.error(`erreur JavaScript : ${e.message}`, { event: 'app_js_error', attrs: { source: String(e.filename ?? '').split('?')[0], line: e.lineno } }));
77
+ window.addEventListener('unhandledrejection', (e) => logger.error(`promesse rejetée : ${String((e.reason as Error)?.message ?? e.reason)}`, { event: 'app_js_error' }));
78
+ setInterval(() => logger.flush(), 2000);
79
+
80
+ let config: FrontConfig;
81
+ try {
82
+ const raw = opts.fetchConfig ? await opts.fetchConfig() : await (await fetch(opts.configUrl ?? '/_poad/front.json', { credentials: 'same-origin', cache: 'no-store' })).json();
83
+ if (!isFrontConfig(raw)) throw new Error('front.json illisible');
84
+ config = raw;
85
+ } catch (e) {
86
+ logger.error(`configuration du front illisible : ${(e as Error).message}`, { event: 'app_config_error' });
87
+ logger.flush();
88
+ opts.el.textContent = 'poad : configuration du front illisible.';
89
+ return null;
90
+ }
91
+
92
+ const mode = previewModeOf(window.location.search) ?? 'live';
93
+ const auth: AuthPort = poadAuth(opts.createClient(config.api.url, config.api.anonKey));
94
+ let bridge: ReturnType<typeof createPreviewBridge> | null = null;
95
+ const app = createFrontApp({ config, auth, history: browserHistory(), logger, mode, onNavigate: (page) => bridge?.navigate(page) });
96
+ applyTheme(null);
97
+ app.subscribe((s) => {
98
+ // Les modules de la page (sections, formulaire de connexion) partent avant le rendu
99
+ void preloadPage(s.page, s.needsLogin);
100
+ if (s.theme) applyTheme(s.theme);
101
+ if (s.front) document.title = s.page ? `${s.page.title} · ${s.front.name}` : s.front.name;
102
+ });
103
+
104
+ if (mode !== 'live') {
105
+ bridge = createPreviewBridge(window as never, config.console.origins, {
106
+ load: (front, page, m, theme, options) => app.loadPreview(front, page, m, theme, options),
107
+ page: (page) => app.showPage(page),
108
+ theme: (theme) => app.setTheme(theme),
109
+ });
110
+ // Taille rendue de la page, pour que le canevas cadre l'aperçu
111
+ const report = () => {
112
+ const s = app.state();
113
+ if (s.page) bridge!.rendered(s.page.id, document.documentElement.scrollWidth, document.documentElement.scrollHeight, gridLayouts());
114
+ };
115
+ new ResizeObserver(report).observe(document.body);
116
+ app.subscribe(() => requestAnimationFrame(report));
117
+ }
118
+
119
+ await app.start();
120
+ const vue = createApp(PoadFrontView, { app, lang: langOf(navigator.languages) });
121
+ vue.config.errorHandler = (err) => logger.error(`erreur de rendu : ${(err as Error)?.message ?? String(err)}`, { event: 'app_render_error' });
122
+ vue.mount(opts.el);
123
+ bridge?.ready();
124
+ logger.info(mode === 'live' ? 'front démarré' : `aperçu démarré (${mode})`, { event: 'app_boot', attrs: { mode, version: config.published?.version ?? null } });
125
+ return { app, vue };
126
+ };
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Barre du brouillon : petite barre flottante de la Lecture du brouillon, jamais montrée à un visiteur. Taille d'écran
3
+ * (la page contenue à la largeur du designer, vraiment : les composants s'empilent en Téléphone), thème du front, aller
4
+ * à une page (menu de la bibliothèque), recharger le brouillon, réduire en pastille, déplacer, fermer pour l'onglet.
5
+ * Aucune décision ici : l'état et ses règles sont dans @poadio/app-core (draft-toolbar.ts), le rendu les dessine.
6
+ * Jamais de lien vers la console ni de copie du lien du brouillon.
7
+ */
8
+ import { defineComponent, h, type PropType } from 'vue';
9
+ import { DRAFT_DEVICES, draftFoldIcon, type DraftDevice, type DraftToolbarAction, type DraftToolbarState } from '@poadio/app-core';
10
+ import { PoadIcon, PoadMenu } from './lazy.js';
11
+ import type { MessageKey } from './messages.js';
12
+ import { loadStyles } from './items.js';
13
+
14
+ const DEVICE_ICON: Record<DraftDevice, string> = { desktop: 'layout-template', tablet: 'tablet', phone: 'smartphone' };
15
+ const DEVICE_LABEL: Record<DraftDevice, MessageKey> = { desktop: 'draft.device.desktop', tablet: 'draft.device.tablet', phone: 'draft.device.phone' };
16
+
17
+ export const DraftToolbar = defineComponent({
18
+ name: 'PoadFrontDraftToolbar',
19
+ props: {
20
+ state: { type: Object as PropType<DraftToolbarState>, required: true },
21
+ t: { type: Function as PropType<(k: MessageKey) => string>, required: true },
22
+ /** Le thème affiché (choisi, ou celui du système) */
23
+ dark: Boolean,
24
+ pages: { type: Array as PropType<{ id: string; title: string }[]>, required: true },
25
+ current: { type: String as PropType<string | null>, default: null },
26
+ },
27
+ emits: { act: (_: DraftToolbarAction) => true },
28
+ setup(props, { emit }) {
29
+ // Le menu des pages : ses feuilles de @poadio/ui-core (flottant, feuille basse sur petit écran)
30
+ loadStyles(['menu', 'floating', 'sheet', 'popover']);
31
+ const act = (a: DraftToolbarAction) => emit('act', a);
32
+ const btn = (label: string, icon: string, onClick: () => void, extra: Record<string, unknown> = {}) =>
33
+ h('button', { type: 'button', class: 'poad-draftbar__btn', title: label, 'aria-label': label, onClick, ...extra }, [h(PoadIcon, { name: icon, size: 15 })]);
34
+
35
+ return () => {
36
+ const s = props.state;
37
+ const t = props.t;
38
+ if (s.closed) return null;
39
+ const side = s.side === 'right' ? 'is-right' : null;
40
+ const fold = draftFoldIcon(s);
41
+ // Repliée : une pastille entièrement cliquable, le badge et le chevron qui montre où elle se déplie
42
+ if (s.collapsed)
43
+ return h('div', { class: ['poad-draftbar', 'is-collapsed', side], role: 'region', 'aria-label': t('draft.toolbar') }, [
44
+ h('button', { type: 'button', class: 'poad-draftbar__pill', title: t('draft.expand'), 'aria-label': t('draft.expand'), 'aria-expanded': 'false', onClick: () => act({ type: 'expand' }) }, [
45
+ h('span', { class: 'poad-draftbar__badge' }, t('draft.badge')),
46
+ h('span', { class: 'poad-draftbar__fold', 'aria-hidden': 'true' }, [h(PoadIcon, { name: fold, size: 15 })]),
47
+ ]),
48
+ ]);
49
+ const pages = props.pages.map((p) => ({ id: p.id, label: p.title, icon: p.id === props.current ? 'check' : 'file-text', command: () => act({ type: 'page', page: p.id }) }));
50
+ return h('div', { class: ['poad-draftbar', side], role: 'toolbar', 'aria-label': t('draft.toolbar') }, [
51
+ h('span', { class: 'poad-draftbar__badge', title: t('draft.text') }, t('draft.badge')),
52
+ btn(t('draft.collapse'), fold, () => act({ type: 'collapse' }), { 'aria-expanded': 'true', class: 'poad-draftbar__btn poad-draftbar__fold-btn' }),
53
+ h('span', { class: 'poad-draftbar__group poad-draftbar__devices', role: 'group', 'aria-label': t('draft.device') }, DRAFT_DEVICES.map((d) =>
54
+ btn(t(DEVICE_LABEL[d]), DEVICE_ICON[d], () => act({ type: 'device', device: d }), { key: d, 'aria-pressed': s.device === d ? 'true' : 'false', class: ['poad-draftbar__btn', s.device === d && 'is-on'] }),
55
+ )),
56
+ btn(t(props.dark ? 'draft.theme.light' : 'draft.theme.dark'), props.dark ? 'sun' : 'moon', () => act({ type: 'theme', theme: props.dark ? 'light' : 'dark' })),
57
+ h(PoadMenu, { items: pages, ariaLabel: t('draft.pages') }, {
58
+ trigger: () => h('button', { type: 'button', class: 'poad-draftbar__btn', title: t('draft.pages'), 'aria-label': t('draft.pages') }, [h(PoadIcon, { name: 'files', size: 15 })]),
59
+ }),
60
+ btn(t('draft.reload'), 'rotate-cw', () => act({ type: 'reload' })),
61
+ h('span', { class: 'poad-draftbar__sep', 'aria-hidden': 'true' }),
62
+ btn(t('draft.move'), s.side === 'right' ? 'chevrons-left' : 'chevrons-right', () => act({ type: 'move' })),
63
+ btn(t('draft.close'), 'x', () => act({ type: 'close' })),
64
+ ]);
65
+ };
66
+ },
67
+ });