@poadio/app-vue 0.1.0 → 0.2.1
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 +37 -0
- package/app-vue.css +102 -23
- package/dist/browser.d.ts +3 -1
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +18 -1
- package/dist/browser.js.map +1 -1
- package/dist/draft-toolbar.d.ts +65 -0
- package/dist/draft-toolbar.d.ts.map +1 -0
- package/dist/draft-toolbar.js +62 -0
- package/dist/draft-toolbar.js.map +1 -0
- package/dist/front-view.d.ts +5 -1
- package/dist/front-view.d.ts.map +1 -1
- package/dist/front-view.js +103 -44
- package/dist/front-view.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/items.d.ts +33 -0
- package/dist/items.d.ts.map +1 -0
- package/dist/items.js +369 -0
- package/dist/items.js.map +1 -0
- package/dist/lazy.d.ts +16 -0
- package/dist/lazy.d.ts.map +1 -1
- package/dist/lazy.js +34 -1
- package/dist/lazy.js.map +1 -1
- package/dist/messages.d.ts +19 -2
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +38 -4
- package/dist/messages.js.map +1 -1
- package/dist/sections/grid.d.ts +25 -1
- package/dist/sections/grid.d.ts.map +1 -1
- package/dist/sections/grid.js +31 -3
- package/dist/sections/grid.js.map +1 -1
- package/package.json +4 -3
- package/runtime-dist/app.css +102 -23
- package/runtime-dist/app.js +2 -2
- package/runtime-dist/c-031pq7qf.js +2 -0
- package/runtime-dist/c-0vbs937h.js +18 -0
- package/runtime-dist/c-1h49vkah.js +2 -0
- package/runtime-dist/c-1hzd2pqr.js +2 -0
- package/runtime-dist/c-1q9r6ndn.js +1 -0
- package/runtime-dist/c-1re10yb3.js +1 -0
- package/runtime-dist/c-1v1v69qs.js +1 -0
- package/runtime-dist/c-1yjbg3yb.js +1 -0
- package/runtime-dist/c-2ag31260.js +2 -0
- package/runtime-dist/c-2c88ebgp.js +1 -0
- package/runtime-dist/c-30chvm5x.js +1 -0
- package/runtime-dist/c-37zx0wkd.js +1 -0
- package/runtime-dist/c-4agg4qbw.js +1 -0
- package/runtime-dist/c-4g3757ck.js +2 -0
- package/runtime-dist/c-4vjd8na5.js +1 -0
- package/runtime-dist/c-523qwqen.js +2 -0
- package/runtime-dist/c-56tgqzdn.js +2 -0
- package/runtime-dist/c-57mnqma1.js +1 -0
- package/runtime-dist/c-5gfe19fa.js +1 -0
- package/runtime-dist/c-5ma45m2j.js +1 -0
- package/runtime-dist/c-74emmp4y.js +1 -0
- package/runtime-dist/c-7dryrrsk.js +2 -0
- package/runtime-dist/c-82sqd7as.js +1 -0
- package/runtime-dist/c-8ahb2ywd.js +1 -0
- package/runtime-dist/c-8cc3yqpn.js +1 -0
- package/runtime-dist/c-8h2rwbd8.js +1 -0
- package/runtime-dist/c-8nyvd0h0.js +1 -0
- package/runtime-dist/c-8r1pgc8w.js +1 -0
- package/runtime-dist/c-8x8fdn2b.js +1 -0
- package/runtime-dist/c-8xxzrkpg.js +2 -0
- package/runtime-dist/c-98tbntdq.js +2 -0
- package/runtime-dist/c-9rx4pqjs.js +2 -0
- package/runtime-dist/c-b5wfx90n.js +1 -0
- package/runtime-dist/c-bhgqqt5x.js +2 -0
- package/runtime-dist/c-c60s3ncm.js +2 -0
- package/runtime-dist/c-cfrv87cv.js +1 -0
- package/runtime-dist/c-d3hafdna.js +1 -0
- package/runtime-dist/c-d8hfdner.js +2 -0
- package/runtime-dist/c-d9rzqgda.js +1 -0
- package/runtime-dist/c-dx8zkcbf.js +1 -0
- package/runtime-dist/c-dzx0rg0g.js +2 -0
- package/runtime-dist/c-e3rddwjq.js +1 -0
- package/runtime-dist/c-e45fhawr.js +1 -0
- package/runtime-dist/c-eh9ryhw7.js +2 -0
- package/runtime-dist/{c-fg782zf4.js → c-er7e0yqs.js} +1 -1
- package/runtime-dist/c-fbtxac36.js +1 -0
- package/runtime-dist/c-g4dt7z6r.js +2 -0
- package/runtime-dist/c-g6vc4fyb.js +1 -0
- package/runtime-dist/c-g9jhyx8j.js +1 -0
- package/runtime-dist/c-gf4wzfng.js +1 -0
- package/runtime-dist/c-gfzghvh2.js +1 -0
- package/runtime-dist/c-grqtxpm9.js +1 -0
- package/runtime-dist/c-h8ny4vpa.js +1 -0
- package/runtime-dist/c-hgdk0vqh.js +1 -0
- package/runtime-dist/c-hrbpqm8q.js +2 -0
- package/runtime-dist/c-j63hz554.js +2 -0
- package/runtime-dist/c-jxqht9an.js +2 -0
- package/runtime-dist/c-jy6yg5r5.js +3 -0
- package/runtime-dist/c-k3yb5e72.js +2 -0
- package/runtime-dist/c-k624qrhh.js +2 -0
- package/runtime-dist/c-kaqzctfm.js +15 -0
- package/runtime-dist/c-kbg0cafy.js +2 -0
- package/runtime-dist/c-kmx0mv0c.js +2 -0
- package/runtime-dist/c-kqsnm92z.js +1 -0
- package/runtime-dist/c-mcy4rvac.js +2 -0
- package/runtime-dist/c-mdj990nz.js +2 -0
- package/runtime-dist/c-mhzk96e8.js +1 -0
- package/runtime-dist/c-mv93h1f5.js +1 -0
- package/runtime-dist/c-mvdn43tv.js +2 -0
- package/runtime-dist/c-n27dcy6d.js +2 -0
- package/runtime-dist/c-n8sg12jt.js +1 -0
- package/runtime-dist/c-n9cyhrcb.js +2 -0
- package/runtime-dist/c-ny0mdx7k.js +2 -0
- package/runtime-dist/c-p3z8t4n5.js +1 -0
- package/runtime-dist/c-p8wyhrwm.js +2 -0
- package/runtime-dist/c-pfc9b97d.js +1 -0
- package/runtime-dist/c-pj08sk6j.js +2 -0
- package/runtime-dist/{c-pgxy0etb.js → c-pk2cv8zh.js} +1 -1
- package/runtime-dist/c-py0rvzyv.js +1 -0
- package/runtime-dist/c-pyj696ce.js +1 -0
- package/runtime-dist/c-qzar8xvm.js +2 -0
- package/runtime-dist/c-rf1xevya.js +1 -0
- package/runtime-dist/{c-ns42txax.js → c-rj7c7mwf.js} +2 -2
- package/runtime-dist/c-rktc0ksd.js +2 -0
- package/runtime-dist/c-rm0av36n.js +1 -0
- package/runtime-dist/c-rv7cxh2k.js +2 -0
- package/runtime-dist/c-s3vrabx6.js +1 -0
- package/runtime-dist/c-sd570jk7.js +2 -0
- package/runtime-dist/c-sjajadt4.js +2 -0
- package/runtime-dist/c-t83mbx7z.js +1 -0
- package/runtime-dist/c-tsyjqc1h.js +2 -0
- package/runtime-dist/c-vmp3ee81.js +1 -0
- package/runtime-dist/c-vztkfwfq.js +1 -0
- package/runtime-dist/c-xw7vce7r.js +2 -0
- package/runtime-dist/c-y7abh583.js +1 -0
- package/runtime-dist/c-ynwn0vws.js +1 -0
- package/runtime-dist/c-za724ed4.js +1 -0
- package/runtime-dist/c-zt8jhyxz.js +1 -0
- package/runtime-dist/c-zv49taf7.js +1 -0
- package/runtime-dist/ui-accordion.css +29 -0
- package/runtime-dist/ui-app-shell.css +36 -0
- package/runtime-dist/ui-avatar.css +28 -0
- package/runtime-dist/ui-badge.css +14 -0
- package/runtime-dist/ui-block-editor.css +85 -0
- package/runtime-dist/ui-block-view.css +50 -0
- package/runtime-dist/ui-block.css +20 -0
- package/runtime-dist/ui-bottom-nav.css +54 -0
- package/runtime-dist/ui-breadcrumb.css +25 -0
- package/runtime-dist/ui-button-group.css +39 -0
- package/runtime-dist/ui-calendar.css +168 -0
- package/runtime-dist/ui-card.css +26 -0
- package/runtime-dist/ui-carousel.css +35 -0
- package/runtime-dist/ui-chart.css +26 -0
- package/runtime-dist/ui-checkbox.css +25 -0
- package/runtime-dist/ui-chip.css +30 -0
- package/runtime-dist/ui-code-editor.css +25 -0
- package/runtime-dist/ui-colorpicker.css +46 -0
- package/runtime-dist/ui-combo.css +43 -0
- package/runtime-dist/ui-dataview.css +50 -0
- package/runtime-dist/ui-datepicker.css +80 -0
- package/runtime-dist/ui-dialog.css +119 -0
- package/runtime-dist/ui-divider.css +18 -0
- package/runtime-dist/ui-fieldset.css +25 -0
- package/runtime-dist/ui-filter-chip.css +24 -0
- package/runtime-dist/ui-floating.css +9 -0
- package/runtime-dist/ui-gantt.css +105 -0
- package/runtime-dist/ui-image.css +34 -0
- package/runtime-dist/ui-inplace.css +19 -0
- package/runtime-dist/ui-json-editor.css +40 -0
- package/runtime-dist/ui-layout.css +39 -0
- package/runtime-dist/ui-listbox.css +52 -0
- package/runtime-dist/ui-map.css +469 -0
- package/runtime-dist/ui-menu.css +38 -0
- package/runtime-dist/ui-menubar.css +55 -0
- package/runtime-dist/ui-meter.css +26 -0
- package/runtime-dist/ui-multiselect.css +62 -0
- package/runtime-dist/ui-nav-drawer.css +118 -0
- package/runtime-dist/ui-number.css +26 -0
- package/runtime-dist/ui-option-list.css +28 -0
- package/runtime-dist/ui-orderlist.css +54 -0
- package/runtime-dist/ui-orgchart.css +71 -0
- package/runtime-dist/ui-paginator.css +25 -0
- package/runtime-dist/ui-panel.css +28 -0
- package/runtime-dist/ui-password.css +26 -0
- package/runtime-dist/ui-picklist.css +58 -0
- package/runtime-dist/ui-popover.css +20 -0
- package/runtime-dist/ui-progress.css +31 -0
- package/runtime-dist/ui-radio.css +29 -0
- package/runtime-dist/ui-rating.css +19 -0
- package/runtime-dist/ui-richtext.css +48 -0
- package/runtime-dist/ui-scheduler.css +132 -0
- package/runtime-dist/ui-scroll-top.css +17 -0
- package/runtime-dist/ui-segmented.css +25 -0
- package/runtime-dist/ui-select.css +47 -0
- package/runtime-dist/ui-sheet.css +56 -0
- package/runtime-dist/ui-skeleton.css +18 -0
- package/runtime-dist/ui-slider.css +59 -0
- package/runtime-dist/ui-speed-dial.css +26 -0
- package/runtime-dist/ui-splitter.css +23 -0
- package/runtime-dist/ui-stepper.css +47 -0
- package/runtime-dist/ui-switch.css +31 -0
- package/runtime-dist/ui-table-panel.css +114 -0
- package/runtime-dist/ui-table.css +430 -0
- package/runtime-dist/ui-tabs.css +45 -0
- package/runtime-dist/ui-taskboard.css +104 -0
- package/runtime-dist/ui-timeline.css +44 -0
- package/runtime-dist/ui-toast.css +43 -0
- package/runtime-dist/ui-toggle-button.css +6 -0
- package/runtime-dist/ui-tooltip.css +21 -0
- package/runtime-dist/ui-tree.css +44 -0
- package/runtime-dist/ui-upload.css +46 -0
- package/runtime-dist/version.json +1 -1
- package/src/browser.ts +21 -2
- package/src/draft-toolbar.ts +67 -0
- package/src/front-view.ts +105 -51
- package/src/index.ts +2 -1
- package/src/items.ts +436 -0
- package/src/lazy.ts +38 -1
- package/src/messages.ts +38 -4
- package/src/sections/grid.ts +40 -4
- package/runtime-dist/c-7dddcgt2.js +0 -2
- package/runtime-dist/c-9a0nzf53.js +0 -2
- package/runtime-dist/c-c1e1x3y1.js +0 -1
- package/runtime-dist/c-fnkq09db.js +0 -1
- package/runtime-dist/c-j29w8z15.js +0 -1
- package/runtime-dist/c-mmxqs2mz.js +0 -1
- package/runtime-dist/c-xsq12y6b.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# Changelog — @poadio/app-vue
|
|
2
2
|
|
|
3
|
+
## 0.2.1 — 2026-11-29
|
|
4
|
+
|
|
5
|
+
- Canevas de la console (designer et cadres) : plus aucun cadre autour de la grille (ni pointillé ni bordure) ; la
|
|
6
|
+
grille occupe toute la hauteur de la page et grandit avec son contenu ; lignes très discrètes, seule structure de la
|
|
7
|
+
surface. L'invite d'une grille vide n'est plus écrite par le moteur sur le canevas : la console l'écrit, dans sa
|
|
8
|
+
langue (elle sortait en français dans une console en anglais).
|
|
9
|
+
- Page publiée encore vide : « Cette page est encore vide. » en texte discret, sans encadré.
|
|
10
|
+
- Plus de marge de page autour de la grille (24 px auparavant) : la colonne 1 commence au bord de la fenêtre, dans la
|
|
11
|
+
Lecture comme sur le canevas ; la marge de 6 px de chaque case sépare toujours les composants. Écran étroit
|
|
12
|
+
(empilés) : une gouttière de 6 px, le contenu à 12 px du bord. Page « En construction » sans encadré. Les marges de
|
|
13
|
+
page reviendront comme propriété de la page (étape 2).
|
|
14
|
+
|
|
15
|
+
## 0.2.0 — 2026-11-29
|
|
16
|
+
|
|
17
|
+
- Composants posés sur la grille : chaque type du catalogue d'`@poadio/app-core` rendu par le vrai composant de
|
|
18
|
+
`@poadio/ui-vue` (`src/items.ts`), avec ses props résolues ; les contrôles gardent une valeur locale (la liaison
|
|
19
|
+
aux données viendra avec le store). Titre et texte simples rendus par le moteur lui-même.
|
|
20
|
+
- Chargement à la demande : un chargeur par type, qui n'importe que son module de `@poadio/ui-vue` ; seuls les
|
|
21
|
+
types de la page sont chargés (`itemTypes`, `preloadPage`). Leurs feuilles de `@poadio/ui-core` aussi :
|
|
22
|
+
`runtime-dist/ui-<nom>.css`, chargées par `setStyleLoader`. Chart.js est désormais embarqué dans son propre
|
|
23
|
+
morceau (chargé seulement quand une page pose un graphique) ; maplibre et monaco restent hors du moteur.
|
|
24
|
+
- Grille : 24 colonnes, cases de `rowHeight` px, 6 px de marge par case ; sur le canevas, lignes visibles et six
|
|
25
|
+
lignes libres sous le dernier composant ; sous 640 px, composants empilés dans l'ordre de lecture.
|
|
26
|
+
- Aperçu : `poad:front:rendered` annonce la place des grilles (`gridLayouts`) au designer de la console.
|
|
27
|
+
- Plus de barre automatique (nom du front, onglets des pages, utilisateur) : une page ne montre que ce qui a été
|
|
28
|
+
dessiné dessus, en Lecture, dans l'Aperçu et sur le canevas de la console. Naviguer, c'est poser un composant :
|
|
29
|
+
barre de menu et barre de navigation mobile listent par défaut les pages du front (`source: 'pages'`, liens
|
|
30
|
+
`<a href>` suivis par le routeur du moteur, page courante marquée) ou une liste libre. Une page réservée sans
|
|
31
|
+
session montre l'écran de connexion seul ; « Se déconnecter » reviendra comme action ou composant.
|
|
32
|
+
- Lecture du brouillon : la barre flottante « Brouillon » remplace le bandeau. Taille d'écran (Ordinateur : toute la
|
|
33
|
+
fenêtre ; Tablette 820, Téléphone 390 : la page contenue et centrée ; empilement par requête de conteneur, donc réel en
|
|
34
|
+
Téléphone), thème du front, aller à une page (menu de la bibliothèque, feuille basse sur petit écran), recharger le
|
|
35
|
+
brouillon, replier / déplier par un chevron à côté du badge (il montre où va la barre, se retourne quand elle est à droite ; la pastille repliée est entièrement cliquable), déplacer à droite, fermer pour l'onglet ; Ordinateur sans cadre : la page occupe toute la fenêtre, comme pour un visiteur ; gardée pour l'onglet (sessionStorage) ;
|
|
36
|
+
chaque geste écrit `app_draft_toolbar` (l'action) dans le puits. Aucun lien vers la console.
|
|
37
|
+
- Journal : un composant qui ne se charge pas écrit `app_component_load_error` (avec `component` et `section`)
|
|
38
|
+
dans le puits de logs du projet.
|
|
39
|
+
|
|
3
40
|
## 0.1.0 — 2026-11-28
|
|
4
41
|
|
|
5
42
|
Première version : le rendu Vue 3 des fronts dessinés dans poad, sur `@poadio/app-core` et `@poadio/ui-vue`.
|
package/app-vue.css
CHANGED
|
@@ -45,7 +45,9 @@ body { font-family: var(--poad-font); font-size: 15px; line-height: 1.5; }
|
|
|
45
45
|
.poad-front__user { display: flex; align-items: center; gap: 12px; }
|
|
46
46
|
.poad-front__user-email { color: var(--poad-fg-secondary); font-size: 13px; }
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
/* La page : aucune marge autour de la grille (sa colonne 1 commence au bord de la fenêtre) ; les composants restent
|
|
49
|
+
séparés par la marge de leur case. Les marges de page viendront avec les propriétés de la page (étape 2). */
|
|
50
|
+
.poad-front__page { flex: 1; display: flex; flex-direction: column; gap: 24px; padding: 0; }
|
|
49
51
|
|
|
50
52
|
.poad-front__center { flex: 1; display: grid; place-items: center; padding: 32px 16px; }
|
|
51
53
|
.poad-front__loading { color: var(--poad-fg-muted); }
|
|
@@ -61,7 +63,6 @@ body { font-family: var(--poad-font); font-size: 15px; line-height: 1.5; }
|
|
|
61
63
|
.poad-front__under {
|
|
62
64
|
flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px;
|
|
63
65
|
min-height: 60vh; padding: 48px 24px;
|
|
64
|
-
background: var(--poad-surface); border: 1px dashed var(--poad-border-strong); border-radius: var(--poad-radius-lg);
|
|
65
66
|
}
|
|
66
67
|
.poad-front__under-mark { color: var(--poad-accent); margin-bottom: 8px; }
|
|
67
68
|
.poad-front__under-title { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -0.01em; }
|
|
@@ -73,35 +74,113 @@ body { font-family: var(--poad-font); font-size: 15px; line-height: 1.5; }
|
|
|
73
74
|
}
|
|
74
75
|
.poad-front__under-project strong { color: var(--poad-fg); font-weight: 600; }
|
|
75
76
|
|
|
76
|
-
|
|
77
|
-
.poad-front__grid
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
/* Grille de 24 colonnes : chaque composant dans sa case ; la case garde 6 px de marge (rien de collé à son voisin) */
|
|
78
|
+
.poad-front__grid { position: relative; border-radius: var(--poad-radius-lg); }
|
|
79
|
+
.poad-front__cells {
|
|
80
|
+
position: relative; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); grid-auto-rows: var(--poad-front-row, 40px);
|
|
81
|
+
min-height: calc(var(--poad-front-row, 40px) * var(--poad-front-rows, 0));
|
|
82
|
+
}
|
|
83
|
+
.poad-front__grid.is-canvas .poad-front__cells {
|
|
84
|
+
min-height: calc(var(--poad-front-row, 40px) * var(--poad-front-rows, 12));
|
|
85
|
+
/* Lignes très discrètes : la seule structure de la surface de dessin (aucun cadre, aucun pointillé) */
|
|
86
|
+
background-image: linear-gradient(to right, color-mix(in srgb, var(--poad-border) 38%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--poad-border) 38%, transparent) 1px, transparent 1px);
|
|
80
87
|
background-size: calc(100% / 24) var(--poad-front-row, 40px);
|
|
81
88
|
}
|
|
82
|
-
|
|
83
|
-
.poad-
|
|
89
|
+
/* Canevas de la console : la grille occupe toute la hauteur de la page, et grandit avec son contenu */
|
|
90
|
+
.poad-front.is-canvas .poad-front__grid { flex: 1 0 auto; display: flex; flex-direction: column; }
|
|
91
|
+
.poad-front.is-canvas .poad-front__cells { flex: 1 0 auto; }
|
|
92
|
+
/* Page publiée encore vide : un texte discret, sans encadré */
|
|
93
|
+
.poad-front__grid:not(.is-canvas):not(.has-items) { display: grid; place-items: center; padding: 24px; }
|
|
94
|
+
.poad-front__grid-empty { margin: 0; color: var(--poad-fg-muted); font-size: 13px; text-align: center; }
|
|
95
|
+
.poad-front__item { min-width: 0; min-height: 0; padding: 6px; display: flex; flex-direction: column; overflow: hidden; }
|
|
96
|
+
.poad-front__item > * { flex: 1 1 auto; min-height: 0; min-width: 0; }
|
|
97
|
+
.poad-front__item > .poad-button, .poad-front__item > .poad-message, .poad-front__item > .poad-toggle-button { flex: 0 0 auto; align-self: flex-start; }
|
|
98
|
+
.poad-front__item > .poad-button.is-block { align-self: stretch; }
|
|
99
|
+
/* Une case qui affiche un composant : son cadre plein, son contenu qui défile s'il dépasse */
|
|
100
|
+
.poad-front__fill { height: 100%; min-height: 0; overflow: auto; }
|
|
101
|
+
.poad-front__fill-field { height: 100%; display: flex; flex-direction: column; }
|
|
102
|
+
.poad-front__fill-field textarea { flex: 1; resize: none; }
|
|
103
|
+
.poad-front__center-v { display: flex; align-items: center; min-width: 0; }
|
|
104
|
+
.poad-front__center-v > * { flex: 1 1 auto; min-width: 0; }
|
|
105
|
+
.poad-front__center-v.is-fit > * { flex: 0 1 auto; }
|
|
106
|
+
.poad-front__center { display: grid; place-items: center; }
|
|
107
|
+
.poad-front__group { display: flex; flex-direction: column; gap: 8px; }
|
|
108
|
+
.poad-front__label { font-size: 13px; font-weight: 500; color: var(--poad-fg-secondary); }
|
|
109
|
+
.poad-front__body { margin: 0; color: var(--poad-fg-secondary); white-space: pre-line; overflow-wrap: anywhere; }
|
|
110
|
+
.poad-front__heading { margin: 0; color: var(--poad-fg); line-height: 1.25; overflow-wrap: anywhere; align-self: center; width: 100%; }
|
|
111
|
+
.poad-front__heading.is-h1 { font-size: 28px; font-weight: 700; }
|
|
112
|
+
.poad-front__heading.is-h2 { font-size: 22px; font-weight: 650; }
|
|
113
|
+
.poad-front__heading.is-h3 { font-size: 18px; font-weight: 600; }
|
|
114
|
+
.poad-front__item.is-heading { justify-content: center; }
|
|
115
|
+
.poad-front__item.is-heading > * { flex: 0 0 auto; }
|
|
116
|
+
.poad-front__text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; color: var(--poad-fg); }
|
|
117
|
+
.poad-front__split { height: 100%; display: grid; place-items: center; padding: 12px; color: var(--poad-fg-muted); font-size: 13px; }
|
|
118
|
+
.poad-front__slide { height: 100%; min-height: 120px; display: grid; place-items: center; padding: 16px; border-radius: var(--poad-radius); background: var(--poad-accent-soft); color: var(--poad-accent); font-weight: 600; }
|
|
119
|
+
.poad-front__placeholder {
|
|
120
|
+
height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; text-align: center;
|
|
121
|
+
border: 1px dashed var(--poad-border-strong); border-radius: var(--poad-radius); color: var(--poad-fg-muted); font-size: 13px; background: var(--poad-bg-subtle, var(--poad-surface));
|
|
122
|
+
}
|
|
123
|
+
/* Barre de navigation mobile posée dans une case : à sa place, pas collée au bas de l'écran */
|
|
124
|
+
.poad-front__item .poad-front__inline-nav { position: static; inset: auto; width: 100%; border-radius: var(--poad-radius); border: 1px solid var(--poad-border); }
|
|
125
|
+
|
|
126
|
+
/* Écran étroit : les composants s'empilent, dans l'ordre de lecture, chacun à sa hauteur. Requête de conteneur (la
|
|
127
|
+
largeur de l'écran du front, pas de la fenêtre) : la taille Téléphone de la barre du brouillon empile vraiment. */
|
|
128
|
+
@container poad-screen (max-width: 639px) {
|
|
129
|
+
.poad-front__cells { display: flex; flex-direction: column; min-height: 0; }
|
|
130
|
+
.poad-front__grid.is-canvas .poad-front__cells { min-height: calc(var(--poad-front-row, 40px) * 6); background-image: none; }
|
|
131
|
+
.poad-front__item { order: var(--poad-item-order, 0); min-height: calc(var(--poad-front-row, 40px) * var(--poad-item-h, 1)); }
|
|
132
|
+
/* Empilés : une gouttière de 6 px, plus la marge de 6 px de chaque case (le texte à 12 px du bord) */
|
|
133
|
+
.poad-front__page { padding: 0 6px; }
|
|
134
|
+
.poad-front__under { padding: 40px 20px; min-height: 50vh; }
|
|
135
|
+
.poad-front__under-title { font-size: 26px; }
|
|
136
|
+
}
|
|
84
137
|
|
|
85
138
|
/* Canevas de la console : aperçu non interactif (la console choisit la page) */
|
|
86
139
|
.poad-front.is-canvas .poad-front__bar a, .poad-front.is-canvas .poad-front__page { cursor: default; }
|
|
87
140
|
|
|
88
141
|
@media (max-width: 600px) {
|
|
89
|
-
.poad-front__bar { padding: 10px 16px; gap: 10px; }
|
|
90
|
-
.poad-front__page { padding: 16px; }
|
|
91
142
|
.poad-front__panel { padding: 22px 20px 24px; }
|
|
92
|
-
.poad-front__under { padding: 40px 20px; min-height: 50vh; }
|
|
93
|
-
.poad-front__under-title { font-size: 26px; }
|
|
94
|
-
.poad-front__user-email { display: none; }
|
|
95
143
|
}
|
|
96
144
|
|
|
97
|
-
/*
|
|
98
|
-
.poad-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
145
|
+
/* L'écran du front : ce que la page occupe ; conteneur des requêtes de largeur */
|
|
146
|
+
.poad-front__screen { flex: 1; min-width: 0; display: flex; flex-direction: column; container: poad-screen / inline-size; background: var(--poad-bg); }
|
|
147
|
+
/* Taille d'écran choisie dans la barre du brouillon : la page contenue à cette largeur, centrée, le fond autour */
|
|
148
|
+
.poad-front.is-framed { background: color-mix(in srgb, var(--poad-fg) 7%, var(--poad-bg)); }
|
|
149
|
+
.poad-front.is-framed .poad-front__screen {
|
|
150
|
+
width: 100%; max-width: var(--poad-front-frame); margin: 0 auto;
|
|
151
|
+
border-inline: 1px solid var(--poad-border); box-shadow: var(--poad-shadow-md);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* Barre du brouillon (Lecture du brouillon seulement) : petite, translucide, opaque au survol, jamais collée au bord */
|
|
155
|
+
.poad-draftbar {
|
|
156
|
+
position: fixed; z-index: 50;
|
|
157
|
+
left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
|
|
158
|
+
max-width: calc(100vw - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
|
|
159
|
+
display: flex; align-items: center; gap: 2px; padding: 4px;
|
|
160
|
+
background: color-mix(in srgb, var(--poad-surface) 90%, transparent);
|
|
161
|
+
color: var(--poad-fg-secondary); font-size: 12.5px;
|
|
162
|
+
border: 1px solid var(--poad-border); border-radius: 12px; box-shadow: var(--poad-shadow-md);
|
|
163
|
+
opacity: .8; transition: opacity .15s;
|
|
164
|
+
}
|
|
165
|
+
.poad-draftbar:hover, .poad-draftbar:focus-within { opacity: 1; }
|
|
166
|
+
.poad-draftbar.is-right { left: auto; right: calc(16px + env(safe-area-inset-right, 0px)); }
|
|
167
|
+
.poad-draftbar__badge {
|
|
168
|
+
padding: 3px 9px; border-radius: 999px; background: var(--poad-warning-soft); color: var(--poad-warning); font-weight: 600; font-size: 12px; white-space: nowrap;
|
|
103
169
|
}
|
|
104
|
-
.poad-
|
|
105
|
-
.poad-
|
|
106
|
-
.poad-
|
|
107
|
-
.poad-
|
|
170
|
+
.poad-draftbar__badge { margin: 0 2px 0 2px; }
|
|
171
|
+
.poad-draftbar.is-collapsed { padding: 4px; }
|
|
172
|
+
.poad-draftbar__pill { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 2px; border-radius: 10px; }
|
|
173
|
+
.poad-draftbar__pill .poad-draftbar__badge { margin: 0; }
|
|
174
|
+
.poad-draftbar__fold { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--poad-fg-secondary); }
|
|
175
|
+
.poad-draftbar__pill:hover .poad-draftbar__fold { background: var(--poad-hover); color: var(--poad-fg); }
|
|
176
|
+
.poad-draftbar__fold-btn { margin-inline-end: 4px; }
|
|
177
|
+
.poad-draftbar__group { display: inline-flex; gap: 2px; padding: 0 2px; }
|
|
178
|
+
.poad-draftbar__sep { width: 1px; align-self: stretch; margin: 4px 4px; background: var(--poad-border); }
|
|
179
|
+
.poad-draftbar__btn { all: unset; cursor: pointer; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--poad-fg-secondary); }
|
|
180
|
+
.poad-draftbar__btn:hover { background: var(--poad-hover); color: var(--poad-fg); }
|
|
181
|
+
.poad-draftbar__btn.is-on { background: var(--poad-accent-soft); color: var(--poad-accent); }
|
|
182
|
+
.poad-draftbar__btn:focus-visible, .poad-draftbar__pill:focus-visible { outline: 2px solid var(--poad-ring); outline-offset: 1px; }
|
|
183
|
+
/* Petit écran : sans les tailles d'écran (la fenêtre est déjà un téléphone) */
|
|
184
|
+
@media (max-width: 600px) { .poad-draftbar__devices { display: none; } }
|
|
185
|
+
/* Barre de menu posée : son menu déroulé (petit écran) passe au-dessus des composants voisins */
|
|
186
|
+
.poad-front__item.is-menubar { overflow: visible; z-index: 5; }
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { type App } from 'vue';
|
|
2
|
-
import { type BrowserLogLine, type FrontApp, type HistoryPort, type PoadAuthLike, type Theme } from '@poadio/app-core';
|
|
2
|
+
import { type BrowserLogLine, type FrontApp, type GridLayout, type HistoryPort, type PoadAuthLike, type Theme } from '@poadio/app-core';
|
|
3
3
|
export declare const browserHistory: () => HistoryPort;
|
|
4
4
|
/** Envoi des lignes à l'origine du front (POST /_poad/log) ; à la fermeture de la page, sendBeacon */
|
|
5
5
|
export declare const logSender: (endpoint?: string) => (lines: BrowserLogLine[], { final }: {
|
|
6
6
|
final: boolean;
|
|
7
7
|
}) => void;
|
|
8
8
|
export declare const applyTheme: (theme: Theme | null) => void;
|
|
9
|
+
/** Place des grilles de la page (le canevas de la console y pose ses poignées) */
|
|
10
|
+
export declare const gridLayouts: (doc?: Document) => GridLayout[];
|
|
9
11
|
export type BootOptions = {
|
|
10
12
|
el: Element;
|
|
11
13
|
/** Fabrique du client poad (createClient de @poadio/client-js) : url et clé anon viennent de front.json */
|
package/dist/browser.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,EAEU,KAAK,cAAc,EAAE,KAAK,QAAQ,EAAoB,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,KAAK,KAAK,
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,EAEU,KAAK,cAAc,EAAE,KAAK,QAAQ,EAAoB,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,KAAK,KAAK,EACtI,MAAM,kBAAkB,CAAC;AAK1B,eAAO,MAAM,cAAc,QAAO,WAShC,CAAC;AAEH,sGAAsG;AACtG,eAAO,MAAM,SAAS,GAAI,iBAAuB,MAAM,OAAO,cAAc,EAAE,EAAE,WAAW;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,SAW5G,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,KAAK,GAAG,IAAI,SAM7C,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,WAAW,GAAI,MAAK,QAAmB,KAAG,UAAU,EAgB7D,CAAC;AAEL,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,OAAO,CAAC;IACZ,2GAA2G;IAC3G,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,YAAY,CAAC;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;CACtC,CAAC;AAEF,uGAAuG;AACvG,eAAO,MAAM,SAAS,GAAU,MAAM,WAAW,KAAG,OAAO,CAAC;IAAE,GAAG,EAAE,QAAQ,CAAC;IAAC,GAAG,EAAE,GAAG,CAAA;CAAE,GAAG,IAAI,CAqD7F,CAAC"}
|
package/dist/browser.js
CHANGED
|
@@ -36,6 +36,23 @@ export const applyTheme = (theme) => {
|
|
|
36
36
|
root.classList.add(`theme-${t}`);
|
|
37
37
|
root.style.colorScheme = t;
|
|
38
38
|
};
|
|
39
|
+
/** Place des grilles de la page (le canevas de la console y pose ses poignées) */
|
|
40
|
+
export const gridLayouts = (doc = document) => [...doc.querySelectorAll('.poad-front__cells[data-grid]')].map((el) => {
|
|
41
|
+
const r = el.getBoundingClientRect();
|
|
42
|
+
const view = doc.defaultView;
|
|
43
|
+
const rows = Number(el.dataset['rows'] ?? 0);
|
|
44
|
+
const rowHeight = parseFloat(getComputedStyle(el).getPropertyValue('--poad-front-row')) || 40;
|
|
45
|
+
return {
|
|
46
|
+
section: el.dataset['grid'] ?? '',
|
|
47
|
+
x: r.left + (view?.scrollX ?? 0),
|
|
48
|
+
y: r.top + (view?.scrollY ?? 0),
|
|
49
|
+
width: r.width,
|
|
50
|
+
height: r.height,
|
|
51
|
+
rowHeight,
|
|
52
|
+
rows,
|
|
53
|
+
stacked: getComputedStyle(el).display !== 'grid',
|
|
54
|
+
};
|
|
55
|
+
});
|
|
39
56
|
/** Démarre un front servi par l'engine : config, client poad, journaux, aperçu de la console, rendu */
|
|
40
57
|
export const bootFront = async (opts) => {
|
|
41
58
|
const logger = createFrontLogger(logSender());
|
|
@@ -79,7 +96,7 @@ export const bootFront = async (opts) => {
|
|
|
79
96
|
const report = () => {
|
|
80
97
|
const s = app.state();
|
|
81
98
|
if (s.page)
|
|
82
|
-
bridge.rendered(s.page.id, document.documentElement.scrollWidth, document.documentElement.scrollHeight);
|
|
99
|
+
bridge.rendered(s.page.id, document.documentElement.scrollWidth, document.documentElement.scrollHeight, gridLayouts());
|
|
83
100
|
};
|
|
84
101
|
new ResizeObserver(report).observe(document.body);
|
|
85
102
|
app.subscribe(() => requestAnimationFrame(report));
|
package/dist/browser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA,8GAA8G;AAC9G,+GAA+G;AAC/G,OAAO,EAAE,SAAS,EAAY,MAAM,KAAK,CAAC;AAC1C,OAAO,EACL,cAAc,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,GAE/F,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,CAAC,MAAM,cAAc,GAAG,GAAgB,EAAE,CAAC,CAAC;IAChD,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;IACxF,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IAClD,+FAA+F;IAC/F,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChI,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE;QACb,MAAM,CAAC,gBAAgB,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;QACxC,OAAO,GA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,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACjF,GAAG,CAAC,MAAM,CAAC,YAAY,GAAG,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,qBAAsB,GAAa,EAAE,OAAO,IAAI,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAC9I,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACnB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,MAAM,CAAC,IAAI,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,mBAAmB,IAAI,GAAG,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,SAAS,EAAE,OAAO,IAAI,IAAI,EAAE,EAAE,CAAC,CAAC;IAChK,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AACtB,CAAC,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 { type PropType } from 'vue';
|
|
9
|
+
import { type DraftToolbarAction, type DraftToolbarState } from '@poadio/app-core';
|
|
10
|
+
import type { MessageKey } from './messages.js';
|
|
11
|
+
export declare const DraftToolbar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
|
+
state: {
|
|
13
|
+
type: PropType<DraftToolbarState>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
t: {
|
|
17
|
+
type: PropType<(k: MessageKey) => string>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
/** Le thème affiché (choisi, ou celui du système) */
|
|
21
|
+
dark: BooleanConstructor;
|
|
22
|
+
pages: {
|
|
23
|
+
type: PropType<{
|
|
24
|
+
id: string;
|
|
25
|
+
title: string;
|
|
26
|
+
}[]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
current: {
|
|
30
|
+
type: PropType<string | null>;
|
|
31
|
+
default: null;
|
|
32
|
+
};
|
|
33
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
+
act: (_: DraftToolbarAction) => true;
|
|
37
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
|
+
state: {
|
|
39
|
+
type: PropType<DraftToolbarState>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
t: {
|
|
43
|
+
type: PropType<(k: MessageKey) => string>;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
/** Le thème affiché (choisi, ou celui du système) */
|
|
47
|
+
dark: BooleanConstructor;
|
|
48
|
+
pages: {
|
|
49
|
+
type: PropType<{
|
|
50
|
+
id: string;
|
|
51
|
+
title: string;
|
|
52
|
+
}[]>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
current: {
|
|
56
|
+
type: PropType<string | null>;
|
|
57
|
+
default: null;
|
|
58
|
+
};
|
|
59
|
+
}>> & Readonly<{
|
|
60
|
+
onAct?: ((_: DraftToolbarAction) => any) | undefined;
|
|
61
|
+
}>, {
|
|
62
|
+
current: string | null;
|
|
63
|
+
dark: boolean;
|
|
64
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
65
|
+
//# sourceMappingURL=draft-toolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draft-toolbar.d.ts","sourceRoot":"","sources":["../src/draft-toolbar.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAsB,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAC;AACxD,OAAO,EAAkD,KAAK,kBAAkB,EAAE,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAEnI,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAMhD,eAAO,MAAM,YAAY;;cAGI,QAAQ,CAAC,iBAAiB,CAAC;;;;cAC7B,QAAQ,CAAC,CAAC,CAAC,EAAE,UAAU,KAAK,MAAM,CAAC;;;IAC1D,qDAAqD;;;cAE7B,QAAQ,CAAC;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;;;;cACtC,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;;;;;;aAElC,kBAAkB;;;cAPT,QAAQ,CAAC,iBAAiB,CAAC;;;;cAC7B,QAAQ,CAAC,CAAC,CAAC,EAAE,UAAU,KAAK,MAAM,CAAC;;;IAC1D,qDAAqD;;;cAE7B,QAAQ,CAAC;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;;;;cACtC,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC;;;;;;;;4EA0CpD,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 } from 'vue';
|
|
9
|
+
import { DRAFT_DEVICES, draftFoldIcon } from '@poadio/app-core';
|
|
10
|
+
import { PoadIcon, PoadMenu } from './lazy.js';
|
|
11
|
+
import { loadStyles } from './items.js';
|
|
12
|
+
const DEVICE_ICON = { desktop: 'layout-template', tablet: 'tablet', phone: 'smartphone' };
|
|
13
|
+
const DEVICE_LABEL = { desktop: 'draft.device.desktop', tablet: 'draft.device.tablet', phone: 'draft.device.phone' };
|
|
14
|
+
export const DraftToolbar = defineComponent({
|
|
15
|
+
name: 'PoadFrontDraftToolbar',
|
|
16
|
+
props: {
|
|
17
|
+
state: { type: Object, required: true },
|
|
18
|
+
t: { type: Function, required: true },
|
|
19
|
+
/** Le thème affiché (choisi, ou celui du système) */
|
|
20
|
+
dark: Boolean,
|
|
21
|
+
pages: { type: Array, required: true },
|
|
22
|
+
current: { type: String, default: null },
|
|
23
|
+
},
|
|
24
|
+
emits: { act: (_) => true },
|
|
25
|
+
setup(props, { emit }) {
|
|
26
|
+
// Le menu des pages : ses feuilles de @poadio/ui-core (flottant, feuille basse sur petit écran)
|
|
27
|
+
loadStyles(['menu', 'floating', 'sheet', 'popover']);
|
|
28
|
+
const act = (a) => emit('act', a);
|
|
29
|
+
const btn = (label, icon, onClick, extra = {}) => h('button', { type: 'button', class: 'poad-draftbar__btn', title: label, 'aria-label': label, onClick, ...extra }, [h(PoadIcon, { name: icon, size: 15 })]);
|
|
30
|
+
return () => {
|
|
31
|
+
const s = props.state;
|
|
32
|
+
const t = props.t;
|
|
33
|
+
if (s.closed)
|
|
34
|
+
return null;
|
|
35
|
+
const side = s.side === 'right' ? 'is-right' : null;
|
|
36
|
+
const fold = draftFoldIcon(s);
|
|
37
|
+
// Repliée : une pastille entièrement cliquable, le badge et le chevron qui montre où elle se déplie
|
|
38
|
+
if (s.collapsed)
|
|
39
|
+
return h('div', { class: ['poad-draftbar', 'is-collapsed', side], role: 'region', 'aria-label': t('draft.toolbar') }, [
|
|
40
|
+
h('button', { type: 'button', class: 'poad-draftbar__pill', title: t('draft.expand'), 'aria-label': t('draft.expand'), 'aria-expanded': 'false', onClick: () => act({ type: 'expand' }) }, [
|
|
41
|
+
h('span', { class: 'poad-draftbar__badge' }, t('draft.badge')),
|
|
42
|
+
h('span', { class: 'poad-draftbar__fold', 'aria-hidden': 'true' }, [h(PoadIcon, { name: fold, size: 15 })]),
|
|
43
|
+
]),
|
|
44
|
+
]);
|
|
45
|
+
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 }) }));
|
|
46
|
+
return h('div', { class: ['poad-draftbar', side], role: 'toolbar', 'aria-label': t('draft.toolbar') }, [
|
|
47
|
+
h('span', { class: 'poad-draftbar__badge', title: t('draft.text') }, t('draft.badge')),
|
|
48
|
+
btn(t('draft.collapse'), fold, () => act({ type: 'collapse' }), { 'aria-expanded': 'true', class: 'poad-draftbar__btn poad-draftbar__fold-btn' }),
|
|
49
|
+
h('span', { class: 'poad-draftbar__group poad-draftbar__devices', role: 'group', 'aria-label': t('draft.device') }, DRAFT_DEVICES.map((d) => 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'] }))),
|
|
50
|
+
btn(t(props.dark ? 'draft.theme.light' : 'draft.theme.dark'), props.dark ? 'sun' : 'moon', () => act({ type: 'theme', theme: props.dark ? 'light' : 'dark' })),
|
|
51
|
+
h(PoadMenu, { items: pages, ariaLabel: t('draft.pages') }, {
|
|
52
|
+
trigger: () => h('button', { type: 'button', class: 'poad-draftbar__btn', title: t('draft.pages'), 'aria-label': t('draft.pages') }, [h(PoadIcon, { name: 'files', size: 15 })]),
|
|
53
|
+
}),
|
|
54
|
+
btn(t('draft.reload'), 'rotate-cw', () => act({ type: 'reload' })),
|
|
55
|
+
h('span', { class: 'poad-draftbar__sep', 'aria-hidden': 'true' }),
|
|
56
|
+
btn(t('draft.move'), s.side === 'right' ? 'chevrons-left' : 'chevrons-right', () => act({ type: 'move' })),
|
|
57
|
+
btn(t('draft.close'), 'x', () => act({ type: 'close' })),
|
|
58
|
+
]);
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
//# sourceMappingURL=draft-toolbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draft-toolbar.js","sourceRoot":"","sources":["../src/draft-toolbar.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,eAAe,EAAE,CAAC,EAAiB,MAAM,KAAK,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,aAAa,EAAqE,MAAM,kBAAkB,CAAC;AACnI,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,MAAM,WAAW,GAAgC,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;AACvH,MAAM,YAAY,GAAoC,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,EAAE,qBAAqB,EAAE,KAAK,EAAE,oBAAoB,EAAE,CAAC;AAEtJ,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAC;IAC1C,IAAI,EAAE,uBAAuB;IAC7B,KAAK,EAAE;QACL,KAAK,EAAE,EAAE,IAAI,EAAE,MAAqC,EAAE,QAAQ,EAAE,IAAI,EAAE;QACtE,CAAC,EAAE,EAA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,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;aACzD,CAAC,CAAC;QACL,CAAC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
package/dist/front-view.d.ts
CHANGED
|
@@ -5,9 +5,13 @@
|
|
|
5
5
|
* gestes (navigation, connexion, déconnexion). Aucune logique ici : ce qui décide (page, connexion exigée, page
|
|
6
6
|
* introuvable, front pas encore publié) est dans le cœur, testé sans navigateur. Composants de @poadio/ui-vue,
|
|
7
7
|
* styles de @poadio/ui-core (+ `app-vue.css`), clair et sombre par `.theme-dark` / `.theme-light` sur la racine.
|
|
8
|
+
*
|
|
9
|
+
* Aucune barre automatique : une page ne montre que ce qui a été dessiné dessus. Naviguer entre les pages, c'est
|
|
10
|
+
* poser un composant de navigation (barre de menu, barre mobile : les pages du front par défaut) ; le nom du front
|
|
11
|
+
* et de la page restent dans le titre de l'onglet. Une page réservée sans session montre l'écran de connexion seul.
|
|
8
12
|
*/
|
|
9
13
|
import { type PropType, type VNode } from 'vue';
|
|
10
|
-
import type
|
|
14
|
+
import { type FrontApp } from '@poadio/app-core';
|
|
11
15
|
import { type Lang } from './messages.js';
|
|
12
16
|
export declare const PoadFrontView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
13
17
|
app: {
|
package/dist/front-view.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"front-view.d.ts","sourceRoot":"","sources":["../src/front-view.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"front-view.d.ts","sourceRoot":"","sources":["../src/front-view.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAyE,KAAK,QAAQ,EAAE,KAAK,KAAK,EAAE,MAAM,KAAK,CAAC;AACvH,OAAO,EAE2D,KAAK,QAAQ,EAC9E,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EAAc,KAAK,IAAI,EAAmB,MAAM,eAAe,CAAC;AAevE,eAAO,MAAM,aAAa;;cAGC,QAAQ,CAAC,QAAQ,CAAC;;;;cACjB,QAAQ,CAAC,IAAI,CAAC;;;;;;;cADf,QAAQ,CAAC,QAAQ,CAAC;;;;cACjB,QAAQ,CAAC,IAAI,CAAC;;;;;4EAkJxC,CAAC"}
|