@poadio/app-vue 0.2.1 → 0.4.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 (330) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/app-vue.css +17 -0
  3. package/dist/index.d.ts +1 -1
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +1 -1
  6. package/dist/index.js.map +1 -1
  7. package/dist/items.d.ts +1 -0
  8. package/dist/items.d.ts.map +1 -1
  9. package/dist/items.js +409 -71
  10. package/dist/items.js.map +1 -1
  11. package/dist/sections/grid.d.ts.map +1 -1
  12. package/dist/sections/grid.js +11 -2
  13. package/dist/sections/grid.js.map +1 -1
  14. package/package.json +11 -2
  15. package/runtime-dist/app.css +17 -0
  16. package/runtime-dist/app.js +2 -2
  17. package/runtime-dist/c-008ty6rk.js +2 -0
  18. package/runtime-dist/c-05mfa190.js +1 -0
  19. package/runtime-dist/c-0j0qq16x.js +1 -0
  20. package/runtime-dist/c-0q89m260.js +1 -0
  21. package/runtime-dist/{c-h8ny4vpa.js → c-0s78cd21.js} +1 -1
  22. package/runtime-dist/c-1ceh9z6n.js +1 -0
  23. package/runtime-dist/c-1hv05jxf.js +2 -0
  24. package/runtime-dist/c-2ad7era6.js +1 -0
  25. package/runtime-dist/c-2d4zg49c.js +1 -0
  26. package/runtime-dist/c-2e4pej9y.js +1 -0
  27. package/runtime-dist/c-2jaeb7hb.js +1 -0
  28. package/runtime-dist/{c-b5wfx90n.js → c-31k4h9e3.js} +1 -1
  29. package/runtime-dist/c-323cmvmr.js +2 -0
  30. package/runtime-dist/c-38mbqn1q.js +1 -0
  31. package/runtime-dist/{c-rktc0ksd.js → c-3at1wc60.js} +2 -2
  32. package/runtime-dist/c-3cbct4j0.js +1 -0
  33. package/runtime-dist/c-3yaegh2k.js +1 -0
  34. package/runtime-dist/c-4c6bp5ge.js +1 -0
  35. package/runtime-dist/c-4h6g9784.js +1 -0
  36. package/runtime-dist/c-4qan80kf.js +1 -0
  37. package/runtime-dist/c-4xcsa9sp.js +2 -0
  38. package/runtime-dist/c-5a6mxded.js +1 -0
  39. package/runtime-dist/c-5ap867xf.js +39 -0
  40. package/runtime-dist/c-5kyzr3hv.js +2 -0
  41. package/runtime-dist/{c-1h49vkah.js → c-5vtfap6v.js} +2 -2
  42. package/runtime-dist/{c-1hzd2pqr.js → c-5xrh3qmz.js} +2 -2
  43. package/runtime-dist/c-5zfmt59k.js +2 -0
  44. package/runtime-dist/c-6jjary0p.js +1 -0
  45. package/runtime-dist/c-6w1r241j.js +1 -0
  46. package/runtime-dist/c-770qn5gr.js +2 -0
  47. package/runtime-dist/c-7dq4rx1n.js +3 -0
  48. package/runtime-dist/c-80vaq27v.js +1 -0
  49. package/runtime-dist/c-81nspfex.js +1 -0
  50. package/runtime-dist/{c-rv7cxh2k.js → c-81zrdysm.js} +1 -1
  51. package/runtime-dist/c-8jrmqdq1.js +1 -0
  52. package/runtime-dist/c-8wdrb81n.js +1 -0
  53. package/runtime-dist/c-8wf8b0sr.js +1 -0
  54. package/runtime-dist/c-8zmpdrm5.js +2 -0
  55. package/runtime-dist/c-8zzjexhj.js +2 -0
  56. package/runtime-dist/c-900h0yca.js +1 -0
  57. package/runtime-dist/c-908e6t37.js +3 -0
  58. package/runtime-dist/c-90cnzxxw.js +2 -0
  59. package/runtime-dist/c-996zhc7v.js +1 -0
  60. package/runtime-dist/c-9q0awp0g.js +2 -0
  61. package/runtime-dist/c-afwe6e7h.js +1 -0
  62. package/runtime-dist/c-akbde6sp.js +2 -0
  63. package/runtime-dist/c-bbkx8ha0.js +2 -0
  64. package/runtime-dist/c-bezqdzja.js +800 -0
  65. package/runtime-dist/c-bxfxd3hv.js +1 -0
  66. package/runtime-dist/c-bz3efpds.js +1 -0
  67. package/runtime-dist/c-c6t3xp1f.js +1 -0
  68. package/runtime-dist/{c-pyj696ce.js → c-d0w2v0ry.js} +1 -1
  69. package/runtime-dist/c-d10mvt3y.js +1 -0
  70. package/runtime-dist/c-d15cp8ae.js +7 -0
  71. package/runtime-dist/c-darzv9dx.js +14 -0
  72. package/runtime-dist/c-dfmaz8kq.js +1 -0
  73. package/runtime-dist/c-e312a464.js +2 -0
  74. package/runtime-dist/c-e4eywyqm.js +2 -0
  75. package/runtime-dist/c-e71rhzgd.js +1 -0
  76. package/runtime-dist/c-ehvh73gz.js +2 -0
  77. package/runtime-dist/c-fgymwk56.js +2 -0
  78. package/runtime-dist/c-fj70dzwc.js +2 -0
  79. package/runtime-dist/c-fn3ddac2.js +1 -0
  80. package/runtime-dist/{c-56tgqzdn.js → c-fye4ktyb.js} +2 -2
  81. package/runtime-dist/c-g1sapcjb.js +1 -0
  82. package/runtime-dist/c-gcp7pgzj.js +1 -0
  83. package/runtime-dist/c-gqaaq5xd.js +2 -0
  84. package/runtime-dist/c-hga6v8y5.js +2 -0
  85. package/runtime-dist/c-hkqab6a9.js +1 -0
  86. package/runtime-dist/c-hqcvt3z9.js +2 -0
  87. package/runtime-dist/c-htmgkvv5.js +1 -0
  88. package/runtime-dist/c-htx6kd3m.js +1 -0
  89. package/runtime-dist/c-hwv8e548.js +1 -0
  90. package/runtime-dist/c-j18jra7n.js +1 -0
  91. package/runtime-dist/c-j2m0kaz5.js +1 -0
  92. package/runtime-dist/c-jcnz4p9h.js +1 -0
  93. package/runtime-dist/c-jeke4j5f.js +1 -0
  94. package/runtime-dist/{c-98tbntdq.js → c-jfhd21m0.js} +2 -2
  95. package/runtime-dist/{c-9rx4pqjs.js → c-jgq8c478.js} +2 -2
  96. package/runtime-dist/{c-er7e0yqs.js → c-jtbbtv7w.js} +1 -1
  97. package/runtime-dist/c-jz0pz4sa.js +2 -0
  98. package/runtime-dist/c-k473g4p1.js +1 -0
  99. package/runtime-dist/c-kge0a8jt.js +1 -0
  100. package/runtime-dist/{c-sd570jk7.js → c-kkgxaaxx.js} +2 -2
  101. package/runtime-dist/c-kvaqyz6q.js +1 -0
  102. package/runtime-dist/c-m1a3vb0b.js +1 -0
  103. package/runtime-dist/c-m61eyj12.js +2 -0
  104. package/runtime-dist/c-mc9sevgd.js +1 -0
  105. package/runtime-dist/c-mttkd1hb.js +1 -0
  106. package/runtime-dist/c-mzfdqh06.js +350 -0
  107. package/runtime-dist/c-n6ngg2xw.js +1 -0
  108. package/runtime-dist/{c-7dryrrsk.js → c-n77b13je.js} +2 -2
  109. package/runtime-dist/c-nc4950dr.js +1 -0
  110. package/runtime-dist/{c-jxqht9an.js → c-ndjpabjd.js} +2 -2
  111. package/runtime-dist/c-ndqn9k3b.js +1 -0
  112. package/runtime-dist/c-nh1crnme.js +2 -0
  113. package/runtime-dist/c-p1knyfjp.js +2 -0
  114. package/runtime-dist/{c-57mnqma1.js → c-p7exw6x4.js} +1 -1
  115. package/runtime-dist/c-p8gmqk2c.js +2 -0
  116. package/runtime-dist/{c-p3z8t4n5.js → c-peqr6b73.js} +1 -1
  117. package/runtime-dist/c-pf0hf4z0.js +1 -0
  118. package/runtime-dist/{c-mdj990nz.js → c-ppc1a1as.js} +2 -2
  119. package/runtime-dist/c-pwb1zdth.js +1 -0
  120. package/runtime-dist/{c-eh9ryhw7.js → c-q9sz4140.js} +2 -2
  121. package/runtime-dist/c-qancp7fv.js +1 -0
  122. package/runtime-dist/c-r8caw0b4.js +1 -0
  123. package/runtime-dist/c-ra8vp32m.js +1 -0
  124. package/runtime-dist/c-rpantxdv.js +5 -0
  125. package/runtime-dist/{c-n8sg12jt.js → c-sen28fd3.js} +1 -1
  126. package/runtime-dist/c-spzfyqjp.js +2 -0
  127. package/runtime-dist/c-t3at1w4r.js +2 -0
  128. package/runtime-dist/c-t77hdys1.js +2 -0
  129. package/runtime-dist/{c-p8wyhrwm.js → c-t8hew4h2.js} +2 -2
  130. package/runtime-dist/c-td669s77.js +2 -0
  131. package/runtime-dist/{c-pk2cv8zh.js → c-tfkx1ms2.js} +1 -1
  132. package/runtime-dist/c-traxh6dd.js +2 -0
  133. package/runtime-dist/c-v13nz4jj.js +1 -0
  134. package/runtime-dist/c-v59gffnx.js +7 -0
  135. package/runtime-dist/c-wcm09eer.js +1 -0
  136. package/runtime-dist/c-wfexgh4m.js +2 -0
  137. package/runtime-dist/c-wrja8cc7.js +2 -0
  138. package/runtime-dist/c-x4aywmb9.js +2 -0
  139. package/runtime-dist/c-x7f6s1vz.js +3 -0
  140. package/runtime-dist/c-y0qqtc02.js +1 -0
  141. package/runtime-dist/c-ydb0jv9k.js +1 -0
  142. package/runtime-dist/c-yg69d4wg.js +2 -0
  143. package/runtime-dist/c-yrfjn186.js +2 -0
  144. package/runtime-dist/c-yz4h2z4n.js +1 -0
  145. package/runtime-dist/{c-d3hafdna.js → c-z9ry29gh.js} +1 -1
  146. package/runtime-dist/c-zbjpj2yd.js +1 -0
  147. package/runtime-dist/maplibre-gl-csp-worker.js +6 -0
  148. package/runtime-dist/monaco/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  149. package/runtime-dist/monaco/vs/base/worker/workerMain.js +31 -0
  150. package/runtime-dist/monaco/vs/basic-languages/abap/abap.js +10 -0
  151. package/runtime-dist/monaco/vs/basic-languages/apex/apex.js +10 -0
  152. package/runtime-dist/monaco/vs/basic-languages/azcli/azcli.js +10 -0
  153. package/runtime-dist/monaco/vs/basic-languages/bat/bat.js +10 -0
  154. package/runtime-dist/monaco/vs/basic-languages/bicep/bicep.js +11 -0
  155. package/runtime-dist/monaco/vs/basic-languages/cameligo/cameligo.js +10 -0
  156. package/runtime-dist/monaco/vs/basic-languages/clojure/clojure.js +10 -0
  157. package/runtime-dist/monaco/vs/basic-languages/coffee/coffee.js +10 -0
  158. package/runtime-dist/monaco/vs/basic-languages/cpp/cpp.js +10 -0
  159. package/runtime-dist/monaco/vs/basic-languages/csharp/csharp.js +10 -0
  160. package/runtime-dist/monaco/vs/basic-languages/csp/csp.js +10 -0
  161. package/runtime-dist/monaco/vs/basic-languages/css/css.js +12 -0
  162. package/runtime-dist/monaco/vs/basic-languages/cypher/cypher.js +10 -0
  163. package/runtime-dist/monaco/vs/basic-languages/dart/dart.js +10 -0
  164. package/runtime-dist/monaco/vs/basic-languages/dockerfile/dockerfile.js +10 -0
  165. package/runtime-dist/monaco/vs/basic-languages/ecl/ecl.js +10 -0
  166. package/runtime-dist/monaco/vs/basic-languages/elixir/elixir.js +10 -0
  167. package/runtime-dist/monaco/vs/basic-languages/flow9/flow9.js +10 -0
  168. package/runtime-dist/monaco/vs/basic-languages/freemarker2/freemarker2.js +12 -0
  169. package/runtime-dist/monaco/vs/basic-languages/fsharp/fsharp.js +10 -0
  170. package/runtime-dist/monaco/vs/basic-languages/go/go.js +10 -0
  171. package/runtime-dist/monaco/vs/basic-languages/graphql/graphql.js +10 -0
  172. package/runtime-dist/monaco/vs/basic-languages/handlebars/handlebars.js +10 -0
  173. package/runtime-dist/monaco/vs/basic-languages/hcl/hcl.js +10 -0
  174. package/runtime-dist/monaco/vs/basic-languages/html/html.js +10 -0
  175. package/runtime-dist/monaco/vs/basic-languages/ini/ini.js +10 -0
  176. package/runtime-dist/monaco/vs/basic-languages/java/java.js +10 -0
  177. package/runtime-dist/monaco/vs/basic-languages/javascript/javascript.js +10 -0
  178. package/runtime-dist/monaco/vs/basic-languages/julia/julia.js +10 -0
  179. package/runtime-dist/monaco/vs/basic-languages/kotlin/kotlin.js +10 -0
  180. package/runtime-dist/monaco/vs/basic-languages/less/less.js +11 -0
  181. package/runtime-dist/monaco/vs/basic-languages/lexon/lexon.js +10 -0
  182. package/runtime-dist/monaco/vs/basic-languages/liquid/liquid.js +10 -0
  183. package/runtime-dist/monaco/vs/basic-languages/lua/lua.js +10 -0
  184. package/runtime-dist/monaco/vs/basic-languages/m3/m3.js +10 -0
  185. package/runtime-dist/monaco/vs/basic-languages/markdown/markdown.js +10 -0
  186. package/runtime-dist/monaco/vs/basic-languages/mdx/mdx.js +10 -0
  187. package/runtime-dist/monaco/vs/basic-languages/mips/mips.js +10 -0
  188. package/runtime-dist/monaco/vs/basic-languages/msdax/msdax.js +10 -0
  189. package/runtime-dist/monaco/vs/basic-languages/mysql/mysql.js +10 -0
  190. package/runtime-dist/monaco/vs/basic-languages/objective-c/objective-c.js +10 -0
  191. package/runtime-dist/monaco/vs/basic-languages/pascal/pascal.js +10 -0
  192. package/runtime-dist/monaco/vs/basic-languages/pascaligo/pascaligo.js +10 -0
  193. package/runtime-dist/monaco/vs/basic-languages/perl/perl.js +10 -0
  194. package/runtime-dist/monaco/vs/basic-languages/pgsql/pgsql.js +10 -0
  195. package/runtime-dist/monaco/vs/basic-languages/php/php.js +10 -0
  196. package/runtime-dist/monaco/vs/basic-languages/pla/pla.js +10 -0
  197. package/runtime-dist/monaco/vs/basic-languages/postiats/postiats.js +10 -0
  198. package/runtime-dist/monaco/vs/basic-languages/powerquery/powerquery.js +10 -0
  199. package/runtime-dist/monaco/vs/basic-languages/powershell/powershell.js +10 -0
  200. package/runtime-dist/monaco/vs/basic-languages/protobuf/protobuf.js +11 -0
  201. package/runtime-dist/monaco/vs/basic-languages/pug/pug.js +10 -0
  202. package/runtime-dist/monaco/vs/basic-languages/python/python.js +10 -0
  203. package/runtime-dist/monaco/vs/basic-languages/qsharp/qsharp.js +10 -0
  204. package/runtime-dist/monaco/vs/basic-languages/r/r.js +10 -0
  205. package/runtime-dist/monaco/vs/basic-languages/razor/razor.js +10 -0
  206. package/runtime-dist/monaco/vs/basic-languages/redis/redis.js +10 -0
  207. package/runtime-dist/monaco/vs/basic-languages/redshift/redshift.js +10 -0
  208. package/runtime-dist/monaco/vs/basic-languages/restructuredtext/restructuredtext.js +10 -0
  209. package/runtime-dist/monaco/vs/basic-languages/ruby/ruby.js +10 -0
  210. package/runtime-dist/monaco/vs/basic-languages/rust/rust.js +10 -0
  211. package/runtime-dist/monaco/vs/basic-languages/sb/sb.js +10 -0
  212. package/runtime-dist/monaco/vs/basic-languages/scala/scala.js +10 -0
  213. package/runtime-dist/monaco/vs/basic-languages/scheme/scheme.js +10 -0
  214. package/runtime-dist/monaco/vs/basic-languages/scss/scss.js +12 -0
  215. package/runtime-dist/monaco/vs/basic-languages/shell/shell.js +10 -0
  216. package/runtime-dist/monaco/vs/basic-languages/solidity/solidity.js +10 -0
  217. package/runtime-dist/monaco/vs/basic-languages/sophia/sophia.js +10 -0
  218. package/runtime-dist/monaco/vs/basic-languages/sparql/sparql.js +10 -0
  219. package/runtime-dist/monaco/vs/basic-languages/sql/sql.js +10 -0
  220. package/runtime-dist/monaco/vs/basic-languages/st/st.js +10 -0
  221. package/runtime-dist/monaco/vs/basic-languages/swift/swift.js +13 -0
  222. package/runtime-dist/monaco/vs/basic-languages/systemverilog/systemverilog.js +10 -0
  223. package/runtime-dist/monaco/vs/basic-languages/tcl/tcl.js +10 -0
  224. package/runtime-dist/monaco/vs/basic-languages/twig/twig.js +10 -0
  225. package/runtime-dist/monaco/vs/basic-languages/typescript/typescript.js +10 -0
  226. package/runtime-dist/monaco/vs/basic-languages/typespec/typespec.js +10 -0
  227. package/runtime-dist/monaco/vs/basic-languages/vb/vb.js +10 -0
  228. package/runtime-dist/monaco/vs/basic-languages/wgsl/wgsl.js +307 -0
  229. package/runtime-dist/monaco/vs/basic-languages/xml/xml.js +10 -0
  230. package/runtime-dist/monaco/vs/basic-languages/yaml/yaml.js +10 -0
  231. package/runtime-dist/monaco/vs/editor/editor.main.css +8 -0
  232. package/runtime-dist/monaco/vs/editor/editor.main.js +798 -0
  233. package/runtime-dist/monaco/vs/language/css/cssMode.js +13 -0
  234. package/runtime-dist/monaco/vs/language/css/cssWorker.js +77 -0
  235. package/runtime-dist/monaco/vs/language/html/htmlMode.js +13 -0
  236. package/runtime-dist/monaco/vs/language/html/htmlWorker.js +454 -0
  237. package/runtime-dist/monaco/vs/language/json/jsonMode.js +19 -0
  238. package/runtime-dist/monaco/vs/language/json/jsonWorker.js +42 -0
  239. package/runtime-dist/monaco/vs/language/typescript/tsMode.js +20 -0
  240. package/runtime-dist/monaco/vs/language/typescript/tsWorker.js +51328 -0
  241. package/runtime-dist/monaco/vs/loader.js +11 -0
  242. package/runtime-dist/monaco/vs/nls.messages.de.js +21 -0
  243. package/runtime-dist/monaco/vs/nls.messages.es.js +21 -0
  244. package/runtime-dist/monaco/vs/nls.messages.fr.js +19 -0
  245. package/runtime-dist/monaco/vs/nls.messages.it.js +19 -0
  246. package/runtime-dist/monaco/vs/nls.messages.ja.js +21 -0
  247. package/runtime-dist/monaco/vs/nls.messages.ko.js +19 -0
  248. package/runtime-dist/monaco/vs/nls.messages.ru.js +21 -0
  249. package/runtime-dist/monaco/vs/nls.messages.zh-cn.js +21 -0
  250. package/runtime-dist/monaco/vs/nls.messages.zh-tw.js +19 -0
  251. package/runtime-dist/monaco-worker.js +4 -0
  252. package/runtime-dist/ui-maplibre-gl.css +1 -0
  253. package/runtime-dist/version.json +1 -1
  254. package/src/index.ts +1 -1
  255. package/src/items.ts +527 -80
  256. package/src/sections/grid.ts +10 -2
  257. package/runtime-dist/c-031pq7qf.js +0 -2
  258. package/runtime-dist/c-1q9r6ndn.js +0 -1
  259. package/runtime-dist/c-1re10yb3.js +0 -1
  260. package/runtime-dist/c-1v1v69qs.js +0 -1
  261. package/runtime-dist/c-1yjbg3yb.js +0 -1
  262. package/runtime-dist/c-2ag31260.js +0 -2
  263. package/runtime-dist/c-2c88ebgp.js +0 -1
  264. package/runtime-dist/c-30chvm5x.js +0 -1
  265. package/runtime-dist/c-37zx0wkd.js +0 -1
  266. package/runtime-dist/c-4agg4qbw.js +0 -1
  267. package/runtime-dist/c-4g3757ck.js +0 -2
  268. package/runtime-dist/c-4vjd8na5.js +0 -1
  269. package/runtime-dist/c-523qwqen.js +0 -2
  270. package/runtime-dist/c-5gfe19fa.js +0 -1
  271. package/runtime-dist/c-5ma45m2j.js +0 -1
  272. package/runtime-dist/c-74emmp4y.js +0 -1
  273. package/runtime-dist/c-82sqd7as.js +0 -1
  274. package/runtime-dist/c-8ahb2ywd.js +0 -1
  275. package/runtime-dist/c-8cc3yqpn.js +0 -1
  276. package/runtime-dist/c-8h2rwbd8.js +0 -1
  277. package/runtime-dist/c-8nyvd0h0.js +0 -1
  278. package/runtime-dist/c-8r1pgc8w.js +0 -1
  279. package/runtime-dist/c-8x8fdn2b.js +0 -1
  280. package/runtime-dist/c-8xxzrkpg.js +0 -2
  281. package/runtime-dist/c-bhgqqt5x.js +0 -2
  282. package/runtime-dist/c-c60s3ncm.js +0 -2
  283. package/runtime-dist/c-cfrv87cv.js +0 -1
  284. package/runtime-dist/c-d8hfdner.js +0 -2
  285. package/runtime-dist/c-d9rzqgda.js +0 -1
  286. package/runtime-dist/c-dx8zkcbf.js +0 -1
  287. package/runtime-dist/c-e3rddwjq.js +0 -1
  288. package/runtime-dist/c-e45fhawr.js +0 -1
  289. package/runtime-dist/c-fbtxac36.js +0 -1
  290. package/runtime-dist/c-g4dt7z6r.js +0 -2
  291. package/runtime-dist/c-g6vc4fyb.js +0 -1
  292. package/runtime-dist/c-g9jhyx8j.js +0 -1
  293. package/runtime-dist/c-gf4wzfng.js +0 -1
  294. package/runtime-dist/c-gfzghvh2.js +0 -1
  295. package/runtime-dist/c-grqtxpm9.js +0 -1
  296. package/runtime-dist/c-hgdk0vqh.js +0 -1
  297. package/runtime-dist/c-hrbpqm8q.js +0 -2
  298. package/runtime-dist/c-j63hz554.js +0 -2
  299. package/runtime-dist/c-jy6yg5r5.js +0 -3
  300. package/runtime-dist/c-k3yb5e72.js +0 -2
  301. package/runtime-dist/c-k624qrhh.js +0 -2
  302. package/runtime-dist/c-kaqzctfm.js +0 -15
  303. package/runtime-dist/c-kbg0cafy.js +0 -2
  304. package/runtime-dist/c-kmx0mv0c.js +0 -2
  305. package/runtime-dist/c-kqsnm92z.js +0 -1
  306. package/runtime-dist/c-mcy4rvac.js +0 -2
  307. package/runtime-dist/c-mhzk96e8.js +0 -1
  308. package/runtime-dist/c-mv93h1f5.js +0 -1
  309. package/runtime-dist/c-mvdn43tv.js +0 -2
  310. package/runtime-dist/c-n27dcy6d.js +0 -2
  311. package/runtime-dist/c-n9cyhrcb.js +0 -2
  312. package/runtime-dist/c-ny0mdx7k.js +0 -2
  313. package/runtime-dist/c-pfc9b97d.js +0 -1
  314. package/runtime-dist/c-pj08sk6j.js +0 -2
  315. package/runtime-dist/c-py0rvzyv.js +0 -1
  316. package/runtime-dist/c-qzar8xvm.js +0 -2
  317. package/runtime-dist/c-rj7c7mwf.js +0 -2
  318. package/runtime-dist/c-rm0av36n.js +0 -1
  319. package/runtime-dist/c-s3vrabx6.js +0 -1
  320. package/runtime-dist/c-sjajadt4.js +0 -2
  321. package/runtime-dist/c-t83mbx7z.js +0 -1
  322. package/runtime-dist/c-tsyjqc1h.js +0 -2
  323. package/runtime-dist/c-vmp3ee81.js +0 -1
  324. package/runtime-dist/c-vztkfwfq.js +0 -1
  325. package/runtime-dist/c-xw7vce7r.js +0 -2
  326. package/runtime-dist/c-y7abh583.js +0 -1
  327. package/runtime-dist/c-ynwn0vws.js +0 -1
  328. package/runtime-dist/c-za724ed4.js +0 -1
  329. package/runtime-dist/c-zt8jhyxz.js +0 -1
  330. package/runtime-dist/c-zv49taf7.js +0 -1
package/src/items.ts CHANGED
@@ -55,10 +55,33 @@ const frontLink = (nav: FrontNav): Component => {
55
55
  const fromPages = (p: ItemProps, ctx: ItemContext) => (str(p, 'source') !== 'custom' && ctx.nav ? ctx.nav : null);
56
56
 
57
57
  const str = (p: ItemProps, k: string): string => (typeof p[k] === 'string' ? (p[k] as string) : '');
58
+ /** Un texte, ou rien quand il est vide (le composant prend alors son texte par défaut) */
59
+ const opt = (p: ItemProps, k: string): string | undefined => str(p, k) || undefined;
58
60
  const num = (p: ItemProps, k: string): number => (typeof p[k] === 'number' ? (p[k] as number) : 0);
61
+ /** Un nombre facultatif (`optnumber`) : null, rien à passer au composant */
62
+ const onum = (p: ItemProps, k: string): number | undefined => (typeof p[k] === 'number' ? (p[k] as number) : undefined);
59
63
  const bool = (p: ItemProps, k: string): boolean => p[k] === true;
60
64
  const list = (p: ItemProps, k: string): string[] => (Array.isArray(p[k]) ? (p[k] as string[]).filter((s) => s.trim() !== '') : []);
61
- const options = (p: ItemProps, k = 'options') => list(p, k).map((l) => ({ label: l, value: l }));
65
+ const options = (p: ItemProps, k: string) => list(p, k).map((l) => ({ label: l, value: l }));
66
+ /** Choix à trois états (auto / oui / non) : null, true ou false */
67
+ const tri = (p: ItemProps, k: string): boolean | null => (str(p, k) === 'yes' ? true : str(p, k) === 'no' ? false : null);
68
+ /** Choix numérique écrit en texte (`'1'`, `'-1'`) ; `auto` ou vide : rien */
69
+ const numChoice = (p: ItemProps, k: string): number | undefined => (/^-?\d+$/.test(str(p, k)) ? Number(str(p, k)) : undefined);
70
+ /** Choix dont une valeur dit « aucun » (`none`, `never`…) : null pour le composant */
71
+ const orNull = (p: ItemProps, k: string, none = 'none'): string | null => (str(p, k) && str(p, k) !== none ? str(p, k) : null);
72
+
73
+ /** Couleurs du thème (COLOR_TOKENS de app-core) → variables CSS de @poadio/ui-core */
74
+ const THEME_COLORS: Record<string, string> = {
75
+ primary: 'var(--poad-accent)', secondary: 'var(--poad-fg-secondary)', success: 'var(--poad-success)', warning: 'var(--poad-warning)',
76
+ danger: 'var(--poad-danger)', info: 'var(--poad-info)', neutral: 'var(--poad-fg-muted)',
77
+ };
78
+ /** Une propriété `color` en couleur CSS : jeton du thème → sa variable, #hex tel quel, vide → rien */
79
+ const cssColor = (p: ItemProps, k: string): string | undefined => (str(p, k) ? (THEME_COLORS[str(p, k)] ?? str(p, k)) : undefined);
80
+ /** Une date AAAA-MM-JJ (`date`) en Date locale, ou null */
81
+ const day = (p: ItemProps, k: string): Date | null => {
82
+ const m = /^(\d{4})-(\d{2})-(\d{2})$/.exec(str(p, k));
83
+ return m ? new Date(+m[1]!, +m[2]! - 1, +m[3]!) : null;
84
+ };
62
85
 
63
86
  /**
64
87
  * h() sans le typage strict des props de chaque composant : les valeurs viennent du catalogue (choix déjà vérifiés
@@ -84,7 +107,7 @@ const model = <T>(name: string, initial: (p: ItemProps) => T, render: (p: ItemPr
84
107
  },
85
108
  });
86
109
 
87
- const bind = <T>(v: Ref<T>) => ({ modelValue: v.value, 'onUpdate:modelValue': (x: T) => (v.value = x) });
110
+ const bind = <T>(v: Ref<T>, prop = 'modelValue') => ({ [prop]: v.value, [`onUpdate:${prop}`]: (x: T) => (v.value = x) });
88
111
 
89
112
  /** Texte d'un contenu de démonstration : « Contenu de « Onglet 1 ». » */
90
113
  const contentOf = (ctx: ItemContext, name: string) => ctx.t('item.content').replace('{name}', name);
@@ -92,141 +115,384 @@ const contentOf = (ctx: ItemContext, name: string) => ctx.t('item.content').repl
92
115
  const ui = {
93
116
  button: () => import('@poadio/ui-vue/button'),
94
117
  field: () => import('@poadio/ui-vue/field'),
118
+ icon: () => import('@poadio/ui-vue/icon'),
95
119
  };
96
120
 
97
- /** Libellé et contrôle, à la façon d'un champ de formulaire */
121
+ /** Props de l'enveloppe PoadField d'un champ : libellé, aide, obligatoire, mention facultatif, libellé à gauche, taille, désactivé */
122
+ const fieldShell = (p: ItemProps) => ({
123
+ label: opt(p, 'label'), hint: opt(p, 'hint'), required: bool(p, 'required'), optional: bool(p, 'optional'),
124
+ inline: bool(p, 'inline'), size: opt(p, 'size'), disabled: bool(p, 'disabled'),
125
+ });
126
+
127
+ /** Libellé et contrôle, à la façon d'un champ de formulaire ; le contrôle a sa propre boîte (`plain` : pas de double cadre) */
98
128
  const labelled = async <T>(name: string, load: () => Promise<Component>, initial: (p: ItemProps) => T, extra: (p: ItemProps) => Record<string, unknown> = () => ({})) => {
99
129
  const [{ PoadField }, control] = await Promise.all([ui.field(), load()]);
100
- return model(name, initial, (p, _ctx, v) =>
101
- el(PoadField, { label: str(p, 'label') || undefined, required: bool(p, 'required'), hint: str(p, 'hint') || undefined, bare: true }, () => el(control, { ...extra(p), ...bind(v) })),
102
- );
130
+ return model(name, initial, (p, _ctx, v) => el(PoadField, { ...fieldShell(p), plain: true }, () => el(control, { ...extra(p), ...bind(v) })));
103
131
  };
104
132
 
133
+ /** Éléments de menu (libellés seuls) à partir d'une liste */
134
+ const asItems = (p: ItemProps, k: string) => list(p, k).map((l) => ({ label: l }));
135
+
105
136
  /** Un chargeur par type : rend le composant Vue qui dessine ce type */
106
137
  export const ITEM_LOADERS: Record<string, () => Promise<Component>> = {
107
138
  // ---------------------------------------------------------------- Mise en page
108
139
  card: async () => {
109
140
  const { PoadCard } = await import('@poadio/ui-vue/card');
110
- return view('PoadItemCard', (p) => el(PoadCard, { header: str(p, 'header') || undefined, subheader: str(p, 'subheader') || undefined, class: 'poad-front__fill' }, () => h('p', { class: 'poad-front__body' }, str(p, 'body'))));
141
+ return view('PoadItemCard', (p) =>
142
+ el(PoadCard, { header: opt(p, 'header'), subheader: opt(p, 'subheader'), hoverable: bool(p, 'hoverable'), flat: bool(p, 'flat'), compact: bool(p, 'compact'), padding: opt(p, 'padding'), class: 'poad-front__fill' }, () =>
143
+ h('p', { class: 'poad-front__body' }, str(p, 'body')),
144
+ ),
145
+ );
111
146
  },
112
147
  panel: async () => {
113
148
  const { PoadPanel } = await import('@poadio/ui-vue/panel');
114
- return view('PoadItemPanel', (p) => el(PoadPanel, { header: str(p, 'header') || undefined, toggleable: bool(p, 'toggleable'), class: 'poad-front__fill' }, () => h('p', { class: 'poad-front__body' }, str(p, 'body'))));
149
+ return model('PoadItemPanel', (p) => bool(p, 'toggleable') && bool(p, 'collapsed'), (p, _ctx, v) =>
150
+ el(PoadPanel, { header: opt(p, 'header'), toggleable: bool(p, 'toggleable'), variant: opt(p, 'variant'), flat: bool(p, 'flat'), ...bind(v, 'collapsed'), class: 'poad-front__fill' }, () =>
151
+ h('p', { class: 'poad-front__body' }, str(p, 'body')),
152
+ ),
153
+ );
115
154
  },
116
155
  fieldset: async () => {
117
156
  const { PoadFieldset } = await import('@poadio/ui-vue/fieldset');
118
- return view('PoadItemFieldset', (p) => el(PoadFieldset, { legend: str(p, 'legend') || undefined, toggleable: bool(p, 'toggleable'), class: 'poad-front__fill' }, () => h('p', { class: 'poad-front__body' }, str(p, 'body'))));
157
+ return model('PoadItemFieldset', (p) => bool(p, 'toggleable') && bool(p, 'collapsed'), (p, _ctx, v) =>
158
+ el(PoadFieldset, { legend: opt(p, 'legend'), toggleable: bool(p, 'toggleable'), ...bind(v, 'collapsed'), class: 'poad-front__fill' }, () => h('p', { class: 'poad-front__body' }, str(p, 'body'))),
159
+ );
119
160
  },
120
161
  divider: async () => {
121
162
  const { PoadDivider } = await import('@poadio/ui-vue/divider');
122
- return view('PoadItemDivider', (p) => h('div', { class: 'poad-front__center-v' }, [el(PoadDivider, { align: str(p, 'align'), dashed: bool(p, 'dashed') }, str(p, 'label') ? () => str(p, 'label') : undefined)]));
163
+ return view('PoadItemDivider', (p) => {
164
+ const vertical = bool(p, 'vertical');
165
+ return h('div', vertical ? { class: 'poad-front__divider-v' } : { class: 'poad-front__center-v' }, [
166
+ el(PoadDivider, { align: str(p, 'align'), dashed: bool(p, 'dashed'), vertical }, str(p, 'label') ? () => str(p, 'label') : undefined),
167
+ ]);
168
+ });
123
169
  },
124
170
  tabs: async () => {
125
171
  const { PoadTabs, PoadTab } = await import('@poadio/ui-vue/tabs');
126
- return view('PoadItemTabs', (p, ctx) => el(PoadTabs, { variant: str(p, 'variant') }, () => list(p, 'tabs').map((l, i) => el(PoadTab, { key: i, value: i, label: l }, () => h('p', { class: 'poad-front__body' }, contentOf(ctx, l))))));
172
+ return model('PoadItemTabs', (p) => num(p, 'activeIndex'), (p, ctx, v) =>
173
+ el(PoadTabs, { variant: str(p, 'variant'), size: opt(p, 'size'), stretch: bool(p, 'stretch'), scrollable: bool(p, 'scrollable'), ...bind(v, 'activeIndex') }, () =>
174
+ list(p, 'tabs').map((l, i) => el(PoadTab, { key: i, label: l }, () => h('p', { class: 'poad-front__body' }, contentOf(ctx, l)))),
175
+ ),
176
+ );
127
177
  },
128
178
  accordion: async () => {
129
179
  const { PoadAccordion, PoadAccordionPanel } = await import('@poadio/ui-vue/accordion');
130
- return view('PoadItemAccordion', (p, ctx) =>
131
- el(PoadAccordion, { multiple: bool(p, 'multiple'), modelValue: bool(p, 'multiple') ? ['0'] : '0' }, () => list(p, 'panels').map((l, i) => el(PoadAccordionPanel, { key: i, value: String(i), header: l }, () => h('p', { class: 'poad-front__body' }, contentOf(ctx, l))))),
180
+ const open = (p: ItemProps): string | string[] | null => {
181
+ const i = onum(p, 'openIndex');
182
+ return bool(p, 'multiple') ? (i === undefined ? [] : [String(i)]) : i === undefined ? null : String(i);
183
+ };
184
+ return model('PoadItemAccordion', open, (p, ctx, v) =>
185
+ el(PoadAccordion, { multiple: bool(p, 'multiple'), expandIcon: opt(p, 'expandIcon'), flush: bool(p, 'flush'), ...bind(v) }, () =>
186
+ list(p, 'panels').map((l, i) => el(PoadAccordionPanel, { key: i, value: String(i), header: l }, () => h('p', { class: 'poad-front__body' }, contentOf(ctx, l)))),
187
+ ),
132
188
  );
133
189
  },
134
190
  stepper: async () => {
135
191
  const { PoadStepper, PoadStep } = await import('@poadio/ui-vue/stepper');
136
- return model('PoadItemStepper', (p) => num(p, 'current'), (p, _ctx, v) => el(PoadStepper, bind(v), () => list(p, 'steps').map((l, i) => el(PoadStep, { key: i, label: l }))));
192
+ return model('PoadItemStepper', (p) => num(p, 'current'), (p, _ctx, v) =>
193
+ el(PoadStepper, { orientation: str(p, 'orientation'), size: opt(p, 'size'), clickable: bool(p, 'clickable'), linear: bool(p, 'linear'), ariaLabel: opt(p, 'ariaLabel'), ...bind(v) }, () =>
194
+ list(p, 'steps').map((l, i) => el(PoadStep, { key: i, label: l })),
195
+ ),
196
+ );
137
197
  },
138
198
  splitter: async () => {
139
199
  const { PoadSplitter, PoadSplitterPanel } = await import('@poadio/ui-vue/splitter');
140
200
  return view('PoadItemSplitter', (p) =>
141
- el(PoadSplitter, { layout: str(p, 'layout'), class: 'poad-front__fill' }, () => list(p, 'panels').map((l, i) => el(PoadSplitterPanel, { key: i }, () => h('div', { class: 'poad-front__split' }, l)))),
201
+ el(PoadSplitter, { layout: str(p, 'layout'), gutterSize: num(p, 'gutterSize') || 6, stateKey: opt(p, 'stateKey'), class: 'poad-front__fill' }, () =>
202
+ list(p, 'panels').map((l, i) => el(PoadSplitterPanel, { key: i }, () => h('div', { class: 'poad-front__split' }, l))),
203
+ ),
142
204
  );
143
205
  },
144
206
 
145
207
  // ---------------------------------------------------------------- Formulaires
146
208
  field: async () => {
147
209
  const { PoadField, PoadInput } = await ui.field();
148
- return model('PoadItemField', () => '', (p, _ctx, v) =>
149
- el(PoadField, { label: str(p, 'label') || undefined, hint: str(p, 'hint') || undefined, required: bool(p, 'required') }, () =>
150
- el(PoadInput, { type: str(p, 'inputType') || 'text', placeholder: str(p, 'placeholder') || undefined, required: bool(p, 'required'), ...bind(v) }),
210
+ return model('PoadItemField', (p) => str(p, 'value'), (p, _ctx, v) =>
211
+ el(PoadField, fieldShell(p), () =>
212
+ el(PoadInput, {
213
+ type: str(p, 'inputType') || 'text', placeholder: opt(p, 'placeholder'), required: bool(p, 'required'), disabled: bool(p, 'disabled'), readonly: bool(p, 'readonly'),
214
+ maxlength: onum(p, 'maxLength'), mono: bool(p, 'mono'), size: opt(p, 'size'), ...bind(v),
215
+ }),
151
216
  ),
152
217
  );
153
218
  },
154
219
  textarea: async () => {
155
220
  const { PoadField, PoadTextarea } = await ui.field();
156
- return model('PoadItemTextarea', () => '', (p, _ctx, v) =>
157
- el(PoadField, { label: str(p, 'label') || undefined, required: bool(p, 'required'), class: 'poad-front__fill-field' }, () => el(PoadTextarea, { placeholder: str(p, 'placeholder') || undefined, ...bind(v) })),
221
+ return model('PoadItemTextarea', (p) => str(p, 'value'), (p, _ctx, v) =>
222
+ el(PoadField, { ...fieldShell(p), class: 'poad-front__fill-field' }, () =>
223
+ el(PoadTextarea, {
224
+ placeholder: opt(p, 'placeholder'), required: bool(p, 'required'), disabled: bool(p, 'disabled'), readonly: bool(p, 'readonly'),
225
+ maxlength: onum(p, 'maxLength'), mono: bool(p, 'mono'), size: opt(p, 'size'), ...bind(v),
226
+ }),
227
+ ),
158
228
  );
159
229
  },
160
230
  button: async () => {
161
- const { PoadButton } = await ui.button();
162
- return view('PoadItemButton', (p) => el(PoadButton, { severity: str(p, 'severity'), variant: str(p, 'variant'), block: bool(p, 'block') }, () => str(p, 'label')));
231
+ const [{ PoadButton }, { PoadIcon }] = await Promise.all([ui.button(), ui.icon()]);
232
+ return view('PoadItemButton', (p) => {
233
+ const name = str(p, 'icon');
234
+ const label = str(p, 'label');
235
+ return el(PoadButton, {
236
+ severity: str(p, 'severity'), variant: str(p, 'variant'), size: opt(p, 'size'), block: bool(p, 'block'), disabled: bool(p, 'disabled'), loading: bool(p, 'loading'),
237
+ // Une icône sans libellé : bouton carré, nommé pour les lecteurs d'écran par l'infobulle de la case
238
+ icon: !!name && !label,
239
+ }, () => [name ? el(PoadIcon, { name, size: 16 }) : null, label]);
240
+ });
163
241
  },
164
242
  'button-group': async () => {
165
243
  const [{ PoadButtonGroup }, { PoadButton }] = await Promise.all([import('@poadio/ui-vue/button-group'), ui.button()]);
166
- return model('PoadItemButtonGroup', (p) => list(p, 'buttons')[0] ?? null, (p, _ctx, v) =>
167
- el(PoadButtonGroup, { selectable: 'single', size: str(p, 'size'), ...bind(v) }, () => list(p, 'buttons').map((l) => el(PoadButton, { key: l, value: l }, () => l))),
244
+ return model('PoadItemButtonGroup', (p) => (str(p, 'selectable') === 'multiple' ? [] : (list(p, 'buttons')[0] ?? null)), (p, _ctx, v) =>
245
+ el(PoadButtonGroup, {
246
+ selectable: orNull(p, 'selectable'), size: str(p, 'size'), orientation: opt(p, 'orientation'), look: opt(p, 'look'), attached: bool(p, 'attached'), stretch: bool(p, 'stretch'),
247
+ ariaLabel: opt(p, 'ariaLabel'), ...bind(v),
248
+ }, () => list(p, 'buttons').map((l) => el(PoadButton, { key: l, value: l }, () => l))),
168
249
  );
169
250
  },
170
251
  checkbox: async () => {
171
252
  const { PoadCheckbox } = await import('@poadio/ui-vue/checkbox');
172
- return model('PoadItemCheckbox', (p) => bool(p, 'checked'), (p, _ctx, v) => h('div', { class: 'poad-front__center-v' }, [el(PoadCheckbox, { label: str(p, 'label'), ...bind(v) })]));
253
+ return model('PoadItemCheckbox', (p) => ({ checked: bool(p, 'checked'), indeterminate: bool(p, 'indeterminate') }), (p, _ctx, v) =>
254
+ h('div', { class: 'poad-front__center-v' }, [
255
+ el(PoadCheckbox, {
256
+ label: str(p, 'label'), disabled: bool(p, 'disabled'), readonly: bool(p, 'readonly'), ariaLabel: opt(p, 'ariaLabel'),
257
+ modelValue: v.value.checked, 'onUpdate:modelValue': (x: boolean) => (v.value = { ...v.value, checked: x }),
258
+ indeterminate: v.value.indeterminate, 'onUpdate:indeterminate': (x: boolean) => (v.value = { ...v.value, indeterminate: x }),
259
+ }),
260
+ ]),
261
+ );
173
262
  },
174
263
  radio: async () => {
175
264
  const { PoadRadioGroup, PoadRadio } = await import('@poadio/ui-vue/radio');
176
265
  return model('PoadItemRadio', (p) => list(p, 'options')[0] ?? null, (p, _ctx, v) =>
177
266
  h('div', { class: 'poad-front__group' }, [
178
267
  str(p, 'label') ? h('span', { class: 'poad-front__label' }, str(p, 'label')) : null,
179
- el(PoadRadioGroup, { orientation: str(p, 'orientation'), ariaLabel: str(p, 'label') || undefined, ...bind(v) }, () => list(p, 'options').map((o) => el(PoadRadio, { key: o, value: o, label: o }))),
268
+ el(PoadRadioGroup, { orientation: str(p, 'orientation'), disabled: bool(p, 'disabled'), ariaLabel: opt(p, 'label'), ...bind(v) }, () => list(p, 'options').map((o) => el(PoadRadio, { key: o, value: o, label: o }))),
180
269
  ]),
181
270
  );
182
271
  },
183
272
  switch: async () => {
184
273
  const { PoadSwitch } = await import('@poadio/ui-vue/switch');
185
- return model('PoadItemSwitch', (p) => bool(p, 'checked'), (p, _ctx, v) => h('div', { class: 'poad-front__center-v' }, [el(PoadSwitch, { label: str(p, 'label'), ...bind(v) })]));
274
+ return model('PoadItemSwitch', (p) => bool(p, 'checked'), (p, _ctx, v) =>
275
+ h('div', { class: 'poad-front__center-v' }, [
276
+ el(PoadSwitch, { label: str(p, 'label'), labelPosition: opt(p, 'labelPosition'), size: opt(p, 'size'), disabled: bool(p, 'disabled'), readonly: bool(p, 'readonly'), ariaLabel: opt(p, 'ariaLabel'), ...bind(v) }),
277
+ ]),
278
+ );
186
279
  },
187
280
  'toggle-button': async () => {
188
281
  const { PoadToggleButton } = await import('@poadio/ui-vue/toggle-button');
189
- return model('PoadItemToggle', () => false, (p, _ctx, v) => el(PoadToggleButton, { onLabel: str(p, 'onLabel'), offLabel: str(p, 'offLabel'), ...bind(v) }));
282
+ return model('PoadItemToggle', (p) => bool(p, 'checked'), (p, _ctx, v) =>
283
+ el(PoadToggleButton, {
284
+ onLabel: str(p, 'onLabel'), offLabel: str(p, 'offLabel'), onIcon: opt(p, 'onIcon'), offIcon: opt(p, 'offIcon'), severity: opt(p, 'severity'), size: opt(p, 'size'),
285
+ disabled: bool(p, 'disabled'), readonly: bool(p, 'readonly'), ariaLabel: opt(p, 'ariaLabel'), ...bind(v),
286
+ }),
287
+ );
190
288
  },
191
289
  segmented: async () => {
192
290
  const { PoadSegmented } = await import('@poadio/ui-vue/segmented');
193
- return model('PoadItemSegmented', (p) => list(p, 'options')[0] ?? null, (p, _ctx, v) => el(PoadSegmented, { options: options(p), block: bool(p, 'block'), ...bind(v) }));
291
+ const first = (p: ItemProps) => list(p, 'options')[0] ?? null;
292
+ return model('PoadItemSegmented', (p) => (bool(p, 'multiple') ? (first(p) === null ? [] : [first(p)]) : first(p)), (p, _ctx, v) =>
293
+ el(PoadSegmented, {
294
+ options: options(p, 'options'), block: bool(p, 'block'), size: opt(p, 'size'), shape: opt(p, 'shape'), multiple: bool(p, 'multiple'), allowEmpty: bool(p, 'allowEmpty'),
295
+ disabled: bool(p, 'disabled'), ariaLabel: opt(p, 'ariaLabel'), ...bind(v),
296
+ }),
297
+ );
194
298
  },
195
299
  select: async () =>
196
- labelled('PoadItemSelect', () => import('@poadio/ui-vue/select').then((m) => m.PoadSelect), () => null, (p) => ({ options: options(p), optionLabel: 'label', optionValue: 'value', placeholder: str(p, 'placeholder') || undefined })),
300
+ labelled('PoadItemSelect', () => import('@poadio/ui-vue/select').then((m) => m.PoadSelect), () => null, (p) => ({
301
+ options: options(p, 'options'), optionLabel: 'label', optionValue: 'value', placeholder: opt(p, 'placeholder'),
302
+ filter: bool(p, 'filter'), filterPlaceholder: opt(p, 'filterPlaceholder'), clearable: bool(p, 'clearable'), emptyMessage: opt(p, 'emptyMessage'), emptyFilterMessage: opt(p, 'emptyFilterMessage'),
303
+ size: opt(p, 'size'), disabled: bool(p, 'disabled'), readonly: bool(p, 'readonly'), panelMaxHeight: num(p, 'panelMaxHeight') || 260, mobile: opt(p, 'mobile'), sheetTitle: opt(p, 'sheetTitle'),
304
+ ariaLabel: opt(p, 'ariaLabel'),
305
+ })),
197
306
  combo: async () =>
198
- labelled('PoadItemCombo', () => import('@poadio/ui-vue/combo').then((m) => m.PoadCombo), () => '', (p) => ({ suggestions: list(p, 'options'), placeholder: str(p, 'placeholder') || undefined, dropdown: true })),
307
+ labelled('PoadItemCombo', () => import('@poadio/ui-vue/combo').then((m) => m.PoadCombo), (p) => (bool(p, 'multiple') ? ([] as string[]) : ''), (p) => ({
308
+ suggestions: list(p, 'options'), placeholder: opt(p, 'placeholder'), dropdown: bool(p, 'dropdown'), forceSelection: bool(p, 'forceSelection'), multiple: bool(p, 'multiple'),
309
+ clearable: bool(p, 'clearable'), minLength: num(p, 'minLength'), delay: num(p, 'delay'), emptyMessage: opt(p, 'emptyMessage'), size: opt(p, 'size'), panelMaxHeight: num(p, 'panelMaxHeight') || 260,
310
+ disabled: bool(p, 'disabled'), readonly: bool(p, 'readonly'), ariaLabel: opt(p, 'ariaLabel'),
311
+ })),
199
312
  listbox: async () => {
200
- const { PoadListbox } = await import('@poadio/ui-vue/listbox');
201
- return model('PoadItemListbox', (p) => (bool(p, 'multiple') ? [] : null), (p, _ctx, v) =>
202
- el(PoadListbox, { options: options(p), optionLabel: 'label', optionValue: 'value', multiple: bool(p, 'multiple'), filter: bool(p, 'filter'), class: 'poad-front__fill', ...bind(v) }),
203
- );
313
+ const [{ PoadListbox }, { PoadField }] = await Promise.all([import('@poadio/ui-vue/listbox'), ui.field()]);
314
+ return model('PoadItemListbox', (p) => (bool(p, 'multiple') ? [] : null), (p, _ctx, v) => {
315
+ const box = el(PoadListbox, {
316
+ options: options(p, 'options'), optionLabel: 'label', optionValue: 'value', multiple: bool(p, 'multiple'), checkbox: bool(p, 'checkbox'), filter: bool(p, 'filter'),
317
+ filterPlaceholder: opt(p, 'filterPlaceholder'), emptyMessage: opt(p, 'emptyMessage'), emptyFilterMessage: opt(p, 'emptyFilterMessage'),
318
+ selectAll: bool(p, 'selectAll'), selectAllLabel: opt(p, 'selectAllLabel'), metaKeySelection: bool(p, 'metaKeySelection'),
319
+ size: opt(p, 'size'), disabled: bool(p, 'disabled'), readonly: bool(p, 'readonly'), ariaLabel: opt(p, 'ariaLabel') ?? opt(p, 'label'), class: 'poad-front__fill', ...bind(v),
320
+ });
321
+ // Sans libellé, la liste seule (comme avant) ; avec, le libellé au-dessus et la liste qui remplit le reste
322
+ return str(p, 'label') ? el(PoadField, { label: str(p, 'label'), disabled: bool(p, 'disabled'), size: opt(p, 'size'), plain: true, class: 'poad-front__fill-field is-list' }, () => box) : box;
323
+ });
204
324
  },
205
325
  number: async () =>
206
- labelled('PoadItemNumber', () => import('@poadio/ui-vue/number').then((m) => m.PoadNumber), () => null as number | null, (p) => ({ min: num(p, 'min'), max: num(p, 'max'), suffix: str(p, 'suffix') ? ` ${str(p, 'suffix')}` : undefined })),
326
+ labelled('PoadItemNumber', () => import('@poadio/ui-vue/number').then((m) => m.PoadNumber), (p) => onum(p, 'value') ?? null, (p) => ({
327
+ min: onum(p, 'min'), max: onum(p, 'max'), step: onum(p, 'step'), decimals: onum(p, 'decimals'),
328
+ prefix: str(p, 'prefix') ? `${str(p, 'prefix')} ` : undefined, suffix: str(p, 'suffix') ? ` ${str(p, 'suffix')}` : undefined,
329
+ placeholder: opt(p, 'placeholder'), showButtons: bool(p, 'showButtons'), size: opt(p, 'size'), disabled: bool(p, 'disabled'), readonly: bool(p, 'readonly'),
330
+ })),
207
331
  password: async () =>
208
- labelled('PoadItemPassword', () => import('@poadio/ui-vue/password').then((m) => m.PoadPassword), () => '', (p) => ({ placeholder: str(p, 'placeholder') || undefined, feedback: bool(p, 'feedback'), autocomplete: 'new-password' })),
332
+ labelled('PoadItemPassword', () => import('@poadio/ui-vue/password').then((m) => m.PoadPassword), () => '', (p) => ({
333
+ placeholder: opt(p, 'placeholder'), feedback: bool(p, 'feedback'), toggleMask: bool(p, 'toggleMask'), autocomplete: str(p, 'autocomplete') || 'new-password', disabled: bool(p, 'disabled'),
334
+ })),
209
335
  mask: async () => {
210
336
  const [{ PoadField, PoadInput }, { vPoadMask }] = await Promise.all([ui.field(), import('@poadio/ui-vue/mask')]);
211
- return view('PoadItemMask', (p) => el(PoadField, { label: str(p, 'label') || undefined }, () => withDirectives(el(PoadInput, { key: str(p, 'preset'), inputmode: 'text' }), [[vPoadMask, { preset: str(p, 'preset') }]])));
337
+ return view('PoadItemMask', (p) => {
338
+ const mask = { preset: str(p, 'preset'), mask: opt(p, 'mask'), slotChar: opt(p, 'slotChar'), autoClear: bool(p, 'autoClear') };
339
+ return el(PoadField, fieldShell(p), () =>
340
+ withDirectives(el(PoadInput, { key: JSON.stringify(mask), inputmode: 'text', required: bool(p, 'required'), disabled: bool(p, 'disabled'), size: opt(p, 'size') }), [[vPoadMask, mask]]),
341
+ );
342
+ });
212
343
  },
213
344
  datepicker: async () =>
214
- labelled('PoadItemDate', () => import('@poadio/ui-vue/datepicker').then((m) => m.PoadDatepicker), () => null, (p) => ({ mode: str(p, 'mode'), selectionMode: bool(p, 'range') ? 'range' : 'single' })),
215
- color: async () => labelled('PoadItemColor', () => import('@poadio/ui-vue/colorpicker').then((m) => m.PoadColorpicker), () => null, (p) => ({ alpha: bool(p, 'alpha') })),
345
+ labelled('PoadItemDate', () => import('@poadio/ui-vue/datepicker').then((m) => m.PoadDatepicker), (p) => (str(p, 'mode') === 'date' && !bool(p, 'range') ? opt(p, 'value') ?? null : null), (p) => ({
346
+ mode: str(p, 'mode'), selectionMode: bool(p, 'range') ? 'range' : 'single', placeholder: opt(p, 'placeholder'), format: opt(p, 'format') ?? null,
347
+ min: opt(p, 'min') ?? null, max: opt(p, 'max') ?? null, showIcon: bool(p, 'showIcon'), showWeek: bool(p, 'showWeek'), showButtonBar: bool(p, 'showButtonBar'),
348
+ hourFormat: numChoice(p, 'hourFormat'), firstDayOfWeek: numChoice(p, 'firstDayOfWeek'), stepMinute: num(p, 'stepMinute') || 1, showSeconds: bool(p, 'showSeconds'),
349
+ clearable: bool(p, 'clearable'), manualInput: bool(p, 'manualInput'), readonlyInput: bool(p, 'readonlyInput'), closeOnSelect: tri(p, 'closeOnSelect'), mobile: opt(p, 'mobile'),
350
+ size: opt(p, 'size'), disabled: bool(p, 'disabled'), ariaLabel: opt(p, 'ariaLabel'),
351
+ })),
352
+ color: async () =>
353
+ labelled('PoadItemColor', () => import('@poadio/ui-vue/colorpicker').then((m) => m.PoadColorpicker), () => null, (p) => ({
354
+ alpha: bool(p, 'alpha'), format: opt(p, 'format'), placeholder: opt(p, 'placeholder'), clearable: bool(p, 'clearable'), size: opt(p, 'size'), disabled: bool(p, 'disabled'), ariaLabel: opt(p, 'ariaLabel'),
355
+ })),
216
356
  slider: async () =>
217
- labelled('PoadItemSlider', () => import('@poadio/ui-vue/slider').then((m) => m.PoadSlider), (p) => num(p, 'min'), (p) => ({ min: num(p, 'min'), max: num(p, 'max'), step: num(p, 'step') || 1, showValue: 'drag' })),
357
+ labelled('PoadItemSlider', () => import('@poadio/ui-vue/slider').then((m) => m.PoadSlider), (p) => (bool(p, 'range') ? [num(p, 'min'), num(p, 'max')] : num(p, 'min')), (p) => ({
358
+ min: num(p, 'min'), max: num(p, 'max'), step: num(p, 'step') || 1, range: bool(p, 'range'), showValue: str(p, 'showValue') || 'drag', marks: str(p, 'marks') === 'steps' ? 'steps' : undefined,
359
+ showTicks: bool(p, 'showTicks'), severity: opt(p, 'severity'), size: opt(p, 'size'), disabled: bool(p, 'disabled'), readonly: bool(p, 'readonly'),
360
+ })),
218
361
  rating: async () => {
219
- const { PoadRating } = await import('@poadio/ui-vue/rating');
220
- return model('PoadItemRating', () => null as number | null, (p, _ctx, v) => h('div', { class: 'poad-front__center-v is-fit' }, [el(PoadRating, { max: num(p, 'max') || 5, readonly: bool(p, 'readonly'), ...bind(v) })]));
362
+ const [{ PoadRating }, { PoadField }] = await Promise.all([import('@poadio/ui-vue/rating'), ui.field()]);
363
+ return model('PoadItemRating', (p) => onum(p, 'value') ?? null, (p, _ctx, v) => {
364
+ const stars = el(PoadRating, {
365
+ max: num(p, 'max') || 5, readonly: bool(p, 'readonly'), disabled: bool(p, 'disabled'), allowHalf: bool(p, 'allowHalf'), clearable: bool(p, 'clearable'), icon: opt(p, 'icon'),
366
+ size: opt(p, 'size'), severity: opt(p, 'severity'), showValue: bool(p, 'showValue'), ariaLabel: opt(p, 'ariaLabel') ?? opt(p, 'label'), ...bind(v),
367
+ });
368
+ return h('div', { class: 'poad-front__center-v is-fit' }, [str(p, 'label') ? el(PoadField, { label: str(p, 'label'), disabled: bool(p, 'disabled'), plain: true }, () => stars) : stars]);
369
+ });
221
370
  },
222
371
  upload: async () => {
223
372
  const { PoadUpload } = await import('@poadio/ui-vue/upload');
373
+ const mb = (p: ItemProps) => (onum(p, 'maxFileSize') === undefined ? null : Math.round(onum(p, 'maxFileSize')! * 1024 * 1024));
224
374
  // Choix seulement : l'envoi vers le stockage du projet viendra avec la liaison aux données
225
- return view('PoadItemUpload', (p) => el(PoadUpload, { mode: str(p, 'mode'), multiple: bool(p, 'multiple'), accept: str(p, 'accept'), selectOnly: true }));
375
+ return view('PoadItemUpload', (p) =>
376
+ el(PoadUpload, {
377
+ mode: str(p, 'mode'), multiple: bool(p, 'multiple'), accept: str(p, 'accept'), selectOnly: true, maxFileSize: mb(p), maxFiles: onum(p, 'maxFiles') ?? null,
378
+ hint: opt(p, 'hint'), dropLabel: opt(p, 'dropLabel'), browseLabel: opt(p, 'browseLabel'), chooseLabel: opt(p, 'chooseLabel'), cancelLabel: opt(p, 'cancelLabel'),
379
+ invalidFileSizeMessage: opt(p, 'invalidFileSizeMessage'), invalidFileTypeMessage: opt(p, 'invalidFileTypeMessage'), invalidFileLimitMessage: opt(p, 'invalidFileLimitMessage'),
380
+ size: opt(p, 'size'), severity: opt(p, 'severity'), previews: bool(p, 'previews'), showCancelButton: bool(p, 'showCancelButton'), disabled: bool(p, 'disabled'),
381
+ }),
382
+ );
226
383
  },
227
384
  richtext: async () => {
228
385
  const { PoadRichText } = await import('@poadio/ui-vue/richtext');
229
- return model('PoadItemRichText', () => '', (p, _ctx, v) => el(PoadRichText, { placeholder: str(p, 'placeholder'), minHeight: '100%', maxHeight: '100%', class: 'poad-front__fill', ...bind(v) }));
386
+ return model('PoadItemRichText', () => '', (p, _ctx, v) =>
387
+ el(PoadRichText, {
388
+ placeholder: str(p, 'placeholder'), toolbar: list(p, 'toolbar'), showCount: bool(p, 'showCount'), format: opt(p, 'format'), markdown: bool(p, 'markdown'),
389
+ disabled: bool(p, 'disabled'), readonly: bool(p, 'readonly'), maxLength: num(p, 'maxLength'), ariaLabel: opt(p, 'ariaLabel'),
390
+ minHeight: '100%', maxHeight: '100%', class: 'poad-front__fill', ...bind(v),
391
+ }),
392
+ );
393
+ },
394
+
395
+ multiselect: async () =>
396
+ labelled('PoadItemMultiselect', () => import('@poadio/ui-vue/multiselect').then((m) => m.PoadMultiselect), () => [] as string[], (p) => ({
397
+ options: options(p, 'options'), optionLabel: 'label', optionValue: 'value', placeholder: opt(p, 'placeholder'), display: opt(p, 'display'),
398
+ maxSelectedLabels: onum(p, 'maxSelectedLabels') ?? null, selectedItemsLabel: opt(p, 'selectedItemsLabel'), showToggleAll: bool(p, 'showToggleAll'), selectionLimit: onum(p, 'selectionLimit') ?? null,
399
+ filter: bool(p, 'filter'), filterPlaceholder: opt(p, 'filterPlaceholder'), clearable: bool(p, 'clearable'), emptyMessage: opt(p, 'emptyMessage'), emptyFilterMessage: opt(p, 'emptyFilterMessage'),
400
+ panelMaxHeight: num(p, 'panelMaxHeight') || 260, mobile: opt(p, 'mobile'), sheetTitle: opt(p, 'sheetTitle'), size: opt(p, 'size'), disabled: bool(p, 'disabled'), readonly: bool(p, 'readonly'),
401
+ ariaLabel: opt(p, 'ariaLabel'),
402
+ })),
403
+ picklist: async () => {
404
+ const { PoadPicklist } = await import('@poadio/ui-vue/picklist');
405
+ return model('PoadItemPicklist', () => [] as { label: string; value: string }[], (p, _ctx, v) =>
406
+ el(PoadPicklist, {
407
+ options: options(p, 'options'), dataKey: 'value', optionLabel: 'label', sourceHeader: opt(p, 'sourceHeader'), targetHeader: opt(p, 'targetHeader'),
408
+ sourceEmpty: opt(p, 'sourceEmpty'), targetEmpty: opt(p, 'targetEmpty'), filter: bool(p, 'filter'), filterPlaceholder: opt(p, 'filterPlaceholder'),
409
+ showSourceControls: bool(p, 'showSourceControls'), showTargetControls: bool(p, 'showTargetControls'), listHeight: opt(p, 'listHeight'), stackAt: num(p, 'stackAt'),
410
+ metaKeySelection: bool(p, 'metaKeySelection'), disabled: bool(p, 'disabled'), class: 'poad-front__fill', ...bind(v),
411
+ }),
412
+ );
413
+ },
414
+ orderlist: async () => {
415
+ const { PoadOrderlist } = await import('@poadio/ui-vue/orderlist');
416
+ return model('PoadItemOrderlist', (p) => options(p, 'items'), (p, _ctx, v) =>
417
+ el(PoadOrderlist, {
418
+ optionLabel: 'label', dataKey: 'value', header: opt(p, 'header'), emptyMessage: opt(p, 'emptyMessage'), filterPlaceholder: opt(p, 'filterPlaceholder'),
419
+ controls: opt(p, 'controls'), striped: bool(p, 'striped'), listHeight: opt(p, 'listHeight'), dragHandle: bool(p, 'dragHandle'), filter: bool(p, 'filter'),
420
+ metaKeySelection: bool(p, 'metaKeySelection'), disabled: bool(p, 'disabled'), ariaLabel: opt(p, 'ariaLabel'), class: 'poad-front__fill', ...bind(v),
421
+ }),
422
+ );
423
+ },
424
+ inplace: async () => {
425
+ const [{ PoadInplace }, { PoadInput }] = await Promise.all([import('@poadio/ui-vue/inplace'), ui.field()]);
426
+ return model('PoadItemInplace', (p) => str(p, 'display'), (p, _ctx, v) =>
427
+ h('div', { class: 'poad-front__center-v' }, [
428
+ el(PoadInplace, {
429
+ display: v.value, showIcon: bool(p, 'showIcon'), closable: bool(p, 'closable'), closeOnEscape: bool(p, 'closeOnEscape'), closeOnBlur: bool(p, 'closeOnBlur'),
430
+ disabled: bool(p, 'disabled'), ariaLabel: opt(p, 'ariaLabel'),
431
+ }, { content: () => el(PoadInput, { ...bind(v) }) }),
432
+ ]),
433
+ );
434
+ },
435
+ 'split-button': async () => {
436
+ const { PoadSplitButton } = await import('@poadio/ui-vue/split-button');
437
+ return view('PoadItemSplitButton', (p) =>
438
+ h('div', { class: 'poad-front__center-v is-fit' }, [
439
+ el(PoadSplitButton, {
440
+ label: str(p, 'label'), items: asItems(p, 'items'), severity: str(p, 'severity'), variant: opt(p, 'variant'), size: opt(p, 'size'), icon: opt(p, 'icon'),
441
+ menuMinWidth: num(p, 'menuMinWidth') || 180, mobile: opt(p, 'mobile'), disabled: bool(p, 'disabled'), loading: bool(p, 'loading'), dropdownAriaLabel: opt(p, 'dropdownAriaLabel'),
442
+ }),
443
+ ]),
444
+ );
445
+ },
446
+ 'filter-chip': async () => {
447
+ const { PoadFilterChip } = await import('@poadio/ui-vue/filter-chip');
448
+ return model('PoadItemFilterChip', (p) => bool(p, 'active'), (p, _ctx, v) =>
449
+ h('div', { class: 'poad-front__center-v is-fit' }, [
450
+ el(PoadFilterChip, {
451
+ label: str(p, 'label'), value: str(p, 'value'), icon: opt(p, 'icon'), removable: bool(p, 'removable'), disabled: bool(p, 'disabled'),
452
+ active: v.value, onClick: () => (v.value = !v.value), onRemove: () => (v.value = false),
453
+ }),
454
+ ]),
455
+ );
456
+ },
457
+
458
+ // ---------------------------------------------------------------- Éditeurs
459
+ code: async () => {
460
+ const { PoadCodeEditor, providePoadMonaco } = await import('@poadio/ui-vue/code-editor');
461
+ if (monacoBaseUrl) providePoadMonaco({ baseUrl: monacoBaseUrl });
462
+ return model('PoadItemCode', (p) => str(p, 'value'), (p, _ctx, v) =>
463
+ el(PoadCodeEditor, {
464
+ language: str(p, 'language') || 'plaintext', readonly: bool(p, 'readonly'), disabled: bool(p, 'disabled'), toolbar: bool(p, 'toolbar'), themed: bool(p, 'themed'), ariaLabel: opt(p, 'ariaLabel'),
465
+ height: '100%', class: 'poad-front__fill', ...bind(v),
466
+ }),
467
+ );
468
+ },
469
+ json: async () => {
470
+ const { PoadJsonEditor } = await import('@poadio/ui-vue/json-editor');
471
+ return model('PoadItemJson', (p) => str(p, 'value'), (p, _ctx, v) =>
472
+ el(PoadJsonEditor, { mode: 'string', placeholder: opt(p, 'placeholder'), toolbar: bool(p, 'toolbar'), readonly: bool(p, 'readonly'), ariaLabel: opt(p, 'ariaLabel'), height: '100%', class: 'poad-front__fill', ...bind(v) }),
473
+ );
474
+ },
475
+ 'block-editor': async () => {
476
+ const { PoadBlockEditor } = await import('@poadio/ui-vue/block-editor');
477
+ return model('PoadItemBlockEditor', () => null as object | null, (p, ctx, v) => {
478
+ const levels = list(p, 'headerLevels').map(Number);
479
+ return el(PoadBlockEditor, {
480
+ placeholder: opt(p, 'placeholder'), maxWidth: opt(p, 'maxWidth'), headerLevels: levels.length ? levels : undefined,
481
+ // Sur le canevas, le curseur n'est jamais volé au designer
482
+ autofocus: bool(p, 'autofocus') && !ctx.canvas,
483
+ disabled: bool(p, 'disabled'), readonly: bool(p, 'readonly'), ariaLabel: opt(p, 'ariaLabel'), minHeight: '100%', class: 'poad-front__fill', ...bind(v),
484
+ });
485
+ });
486
+ },
487
+ 'block-view': async () => {
488
+ const { PoadBlockView } = await import('@poadio/ui-vue/block-view');
489
+ return view('PoadItemBlockView', (p) =>
490
+ el(PoadBlockView, {
491
+ data: { blocks: [...(str(p, 'title') ? [{ type: 'header', data: { text: str(p, 'title'), level: 2 } }] : []), ...str(p, 'body').split(/\n+/).filter(Boolean).map((t) => ({ type: 'paragraph', data: { text: t } }))] },
492
+ externalLinksInNewTab: bool(p, 'externalLinksInNewTab'),
493
+ class: 'poad-front__fill',
494
+ }),
495
+ );
230
496
  },
231
497
 
232
498
  // ---------------------------------------------------------------- Données
@@ -236,26 +502,52 @@ export const ITEM_LOADERS: Record<string, () => Promise<Component>> = {
236
502
  el(PoadTable, {
237
503
  value: [],
238
504
  columns: list(p, 'columns').map((c, i) => ({ field: `c${i}`, header: c })),
239
- emptyMessage: str(p, 'emptyMessage') || undefined,
240
- paginator: bool(p, 'paginator'),
241
- striped: bool(p, 'striped'),
242
- // Sans source de données, la barre n'aurait qu'un compteur à 0 : elle reviendra avec la liaison au store
243
- showToolbar: false,
505
+ title: opt(p, 'title'), emptyMessage: opt(p, 'emptyMessage'), emptyHint: opt(p, 'emptyHint'), emptyIcon: str(p, 'emptyIcon'), searchPlaceholder: opt(p, 'searchPlaceholder'),
506
+ exportFilename: str(p, 'exportFilename') || 'export', currentPageReportTemplate: opt(p, 'currentPageReportTemplate'),
507
+ striped: bool(p, 'striped'), dense: bool(p, 'dense'), hoverable: bool(p, 'hoverable'), bordered: bool(p, 'bordered'), borderless: bool(p, 'borderless'),
508
+ stickyHeader: bool(p, 'stickyHeader'), stickyFirstColumn: bool(p, 'stickyFirstColumn'), showRowNumber: bool(p, 'showRowNumber'), scrollHeight: opt(p, 'scrollHeight'),
509
+ responsive: opt(p, 'responsive'), stackAt: num(p, 'stackAt'),
510
+ // Sans source de données, la barre n'aurait qu'un compteur à 0 : décochée par défaut (`showToolbar`)
511
+ showToolbar: bool(p, 'showToolbar'), showCount: bool(p, 'showCount'), showSearch: bool(p, 'showSearch'), showExport: bool(p, 'showExport'), showDensityToggle: bool(p, 'showDensityToggle'),
512
+ columnToggle: bool(p, 'columnToggle'), columnMenu: bool(p, 'columnMenu'), resizableColumns: bool(p, 'resizableColumns'), reorderableColumns: bool(p, 'reorderableColumns'),
513
+ sortMode: opt(p, 'sortMode'), defaultSortOrder: numChoice(p, 'defaultSortOrder'), selectionMode: orNull(p, 'selectionMode'), selectAll: bool(p, 'selectAll'), metaKeySelection: bool(p, 'metaKeySelection'),
514
+ paginator: bool(p, 'paginator'), rows: num(p, 'rows') || 25, pageLinks: num(p, 'pageLinks') || 5, showCurrentPageReport: bool(p, 'showCurrentPageReport'),
515
+ showFirstLastIcon: bool(p, 'showFirstLastIcon'), alwaysShowPaginator: bool(p, 'alwaysShowPaginator'),
244
516
  class: 'poad-front__fill',
245
517
  }),
246
518
  );
247
519
  },
248
520
  dataview: async () => {
249
521
  const { PoadDataview } = await import('@poadio/ui-vue/dataview');
250
- return view('PoadItemDataview', (p) => el(PoadDataview, { value: [], layout: str(p, 'layout'), emptyMessage: str(p, 'emptyMessage') || undefined, class: 'poad-front__fill' }));
522
+ return view('PoadItemDataview', (p) =>
523
+ el(PoadDataview, {
524
+ value: [], layout: str(p, 'layout'), emptyMessage: opt(p, 'emptyMessage'), gridMin: opt(p, 'gridMin'), showLayoutSwitch: bool(p, 'showLayoutSwitch'),
525
+ paginator: bool(p, 'paginator'), rows: num(p, 'rows') || 12, alwaysShowPaginator: bool(p, 'alwaysShowPaginator'), class: 'poad-front__fill',
526
+ }),
527
+ );
251
528
  },
252
529
  tree: async () => {
253
530
  const { PoadTree } = await import('@poadio/ui-vue/tree');
254
- return view('PoadItemTree', (p) => el(PoadTree, { value: list(p, 'nodes').map((l, i) => ({ key: String(i), label: l })), dataKey: 'key' }));
531
+ return view('PoadItemTree', (p) =>
532
+ el(PoadTree, {
533
+ value: list(p, 'nodes').map((l, i) => ({ key: String(i), label: l })), dataKey: 'key',
534
+ filterPlaceholder: opt(p, 'filterPlaceholder'), emptyMessage: opt(p, 'emptyMessage'), emptyFilterMessage: opt(p, 'emptyFilterMessage'), indent: opt(p, 'indent'), showLines: bool(p, 'showLines'),
535
+ selectionMode: orNull(p, 'selectionMode'), selectionPropagation: opt(p, 'selectionPropagation'), toggleOnClick: bool(p, 'toggleOnClick'), filter: bool(p, 'filter'), ariaLabel: opt(p, 'ariaLabel'),
536
+ }),
537
+ );
255
538
  },
256
539
  paginator: async () => {
257
540
  const { PoadPaginator } = await import('@poadio/ui-vue/paginator');
258
- return model('PoadItemPaginator', () => 0, (p, _ctx, v) => el(PoadPaginator, { totalRecords: num(p, 'totalRecords'), rows: num(p, 'rows') || 10, rowsPerPageOptions: [], first: v.value, 'onUpdate:first': (x: number) => (v.value = x) }));
541
+ return model('PoadItemPaginator', () => ({ first: 0, rows: 0 }), (p, _ctx, v) =>
542
+ el(PoadPaginator, {
543
+ totalRecords: num(p, 'totalRecords'), rows: v.value.rows || num(p, 'rows') || 10,
544
+ // Sans le choix, une liste vide (pas de liste) ; avec, celle du composant
545
+ rowsPerPageOptions: bool(p, 'showRowsPerPage') ? undefined : [], rowsPerPageLabel: opt(p, 'rowsPerPageLabel'),
546
+ currentPageReportTemplate: opt(p, 'currentPageReportTemplate'), pageLinks: num(p, 'pageLinks') || 5, showPageLinks: bool(p, 'showPageLinks'), showCurrentPageReport: bool(p, 'showCurrentPageReport'),
547
+ showFirstLastIcon: bool(p, 'showFirstLastIcon'), alwaysShow: bool(p, 'alwaysShow'),
548
+ first: v.value.first, 'onUpdate:first': (x: number) => (v.value = { ...v.value, first: x }), 'onUpdate:rows': (x: number) => (v.value = { ...v.value, rows: x }),
549
+ }),
550
+ );
259
551
  },
260
552
  chart: async () => {
261
553
  const { PoadChart } = await import('@poadio/ui-vue/chart');
@@ -263,6 +555,7 @@ export const ITEM_LOADERS: Record<string, () => Promise<Component>> = {
263
555
  el(PoadChart, {
264
556
  type: str(p, 'chartType'),
265
557
  data: { labels: list(p, 'labels'), datasets: [{ label: str(p, 'series'), data: list(p, 'values').map((v) => Number(v.replace(',', '.')) || 0) }] },
558
+ themed: bool(p, 'themed'), showTable: bool(p, 'showTable'), tableToggle: bool(p, 'tableToggle'), accessibleTable: bool(p, 'accessibleTable'), ariaLabel: opt(p, 'ariaLabel'),
266
559
  height: '100%',
267
560
  class: 'poad-front__fill',
268
561
  }),
@@ -270,39 +563,94 @@ export const ITEM_LOADERS: Record<string, () => Promise<Component>> = {
270
563
  },
271
564
  meter: async () => {
272
565
  const { PoadMeter } = await import('@poadio/ui-vue/meter');
273
- return view('PoadItemMeter', (p) => h('div', { class: 'poad-front__center-v' }, [el(PoadMeter, { values: [{ label: str(p, 'label') || '—', value: num(p, 'value') }], max: num(p, 'max') || 100, unit: str(p, 'unit') })]));
566
+ return view('PoadItemMeter', (p) =>
567
+ h('div', { class: 'poad-front__center-v' }, [
568
+ el(PoadMeter, {
569
+ values: [{ label: str(p, 'label') || '—', value: num(p, 'value'), ...(cssColor(p, 'color') ? { color: cssColor(p, 'color') } : {}) }],
570
+ min: num(p, 'min'), max: num(p, 'max') || 100, unit: str(p, 'unit'), remainingLabel: opt(p, 'remainingLabel'), size: opt(p, 'size'), labelPosition: opt(p, 'labelPosition'),
571
+ showLabels: bool(p, 'showLabels'), showRemaining: bool(p, 'showRemaining'), ariaLabel: opt(p, 'ariaLabel'),
572
+ }),
573
+ ]),
574
+ );
274
575
  },
275
576
  progress: async () => {
276
577
  const { PoadProgress } = await import('@poadio/ui-vue/progress');
277
- return view('PoadItemProgress', (p) => h('div', { class: 'poad-front__center-v' }, [el(PoadProgress, { value: num(p, 'value'), label: str(p, 'label') || undefined, showValue: bool(p, 'showValue'), severity: str(p, 'severity') })]));
578
+ return view('PoadItemProgress', (p) =>
579
+ h('div', { class: 'poad-front__center-v' }, [
580
+ el(PoadProgress, {
581
+ value: num(p, 'value'), max: num(p, 'max') || 100, label: opt(p, 'label'), showValue: bool(p, 'showValue'), severity: str(p, 'severity'), size: opt(p, 'size'),
582
+ striped: bool(p, 'striped'), indeterminate: bool(p, 'indeterminate'), ariaLabel: opt(p, 'ariaLabel'),
583
+ }),
584
+ ]),
585
+ );
278
586
  },
279
587
  timeline: async () => {
280
588
  const { PoadTimeline } = await import('@poadio/ui-vue/timeline');
281
- return view('PoadItemTimeline', (p) => el(PoadTimeline, { events: list(p, 'events').map((l) => ({ label: l })), layout: str(p, 'layout'), activeIndex: 0 }));
589
+ return view('PoadItemTimeline', (p) =>
590
+ el(PoadTimeline, { events: asItems(p, 'events'), layout: str(p, 'layout'), align: opt(p, 'align'), dense: bool(p, 'dense'), activeIndex: onum(p, 'activeIndex') ?? null }),
591
+ );
282
592
  },
283
593
  orgchart: async () => {
284
594
  const { PoadOrgchart } = await import('@poadio/ui-vue/orgchart');
285
595
  return view('PoadItemOrgchart', (p) =>
286
- el(PoadOrgchart, { value: [{ key: 'root', data: { label: str(p, 'root') }, children: list(p, 'children').map((l, i) => ({ key: `n${i}`, data: { label: l } })) }], class: 'poad-front__fill' }),
596
+ el(PoadOrgchart, {
597
+ value: [{ key: 'root', data: { label: str(p, 'root') }, children: list(p, 'children').map((l, i) => ({ key: `n${i}`, data: { label: l } })) }],
598
+ orientation: opt(p, 'orientation'), nodeWidth: opt(p, 'nodeWidth'), compact: tri(p, 'compact') ?? 'auto', compactAt: num(p, 'compactAt'), collapsible: bool(p, 'collapsible'),
599
+ zoomable: bool(p, 'zoomable'), selectionMode: orNull(p, 'selectionMode'), ariaLabel: opt(p, 'ariaLabel'),
600
+ class: 'poad-front__fill',
601
+ }),
602
+ );
603
+ },
604
+
605
+ // ---------------------------------------------------------------- Carte (maplibre chargé à la demande, son propre morceau)
606
+ map: async () => {
607
+ const { PoadMap } = await import('@poadio/ui-vue/map');
608
+ return view('PoadItemMap', (p) =>
609
+ el(PoadMap, {
610
+ basemap: str(p, 'basemap') || 'ign-plan', overlays: list(p, 'overlays'), overlayOpacity: num(p, 'overlayOpacity'), followTheme: bool(p, 'followTheme'),
611
+ controls: list(p, 'controls'), controlPosition: opt(p, 'controlPosition'), scalePosition: opt(p, 'scalePosition'),
612
+ zoom: num(p, 'zoom'), bearing: num(p, 'bearing'), pitch: num(p, 'pitch'), minZoom: num(p, 'minZoom'), maxZoom: num(p, 'maxZoom') || 20,
613
+ interactive: bool(p, 'interactive'), cooperativeGestures: bool(p, 'cooperativeGestures'), ariaLabel: opt(p, 'ariaLabel'),
614
+ center: [2.4, 46.6], class: 'poad-front__fill',
615
+ }),
287
616
  );
288
617
  },
289
618
 
290
619
  // ---------------------------------------------------------------- Planification (sans données : la liaison viendra avec le store)
291
620
  calendar: async () => {
292
621
  const { PoadCalendar } = await import('@poadio/ui-vue/calendar');
293
- return view('PoadItemCalendar', (p) => el(PoadCalendar, { view: str(p, 'view'), class: 'poad-front__fill' }));
622
+ return view('PoadItemCalendar', (p) =>
623
+ el(PoadCalendar, {
624
+ view: str(p, 'view'), date: day(p, 'date'), emptyText: opt(p, 'emptyText'), hourHeight: num(p, 'hourHeight') || 34, maxPerDay: num(p, 'maxPerDay') || 3, showNow: bool(p, 'showNow'),
625
+ firstDay: numChoice(p, 'firstDay') ?? null, dayStart: num(p, 'dayStart'), dayEnd: num(p, 'dayEnd') || 20, editable: bool(p, 'editable'), snap: num(p, 'snap') || 15,
626
+ class: 'poad-front__fill',
627
+ }),
628
+ );
294
629
  },
295
630
  scheduler: async () => {
296
631
  const { PoadScheduler } = await import('@poadio/ui-vue/scheduler');
297
- return view('PoadItemScheduler', (p) => el(PoadScheduler, { scale: str(p, 'scale'), class: 'poad-front__fill' }));
632
+ return view('PoadItemScheduler', (p) =>
633
+ el(PoadScheduler, {
634
+ scale: str(p, 'scale'), mode: opt(p, 'mode'), date: day(p, 'date'), emptyText: opt(p, 'emptyText'), tickWidth: onum(p, 'tickWidth') ?? null, showNow: bool(p, 'showNow'),
635
+ showUnplanned: bool(p, 'showUnplanned'), firstDay: numChoice(p, 'firstDay') ?? 1, dayStart: num(p, 'dayStart'), dayEnd: num(p, 'dayEnd') || 19, editable: bool(p, 'editable'),
636
+ snap: num(p, 'snap') || 30, class: 'poad-front__fill',
637
+ }),
638
+ );
298
639
  },
299
640
  gantt: async () => {
300
641
  const { PoadGantt } = await import('@poadio/ui-vue/gantt');
301
- return view('PoadItemGantt', (p) => el(PoadGantt, { scale: str(p, 'scale'), class: 'poad-front__fill' }));
642
+ return view('PoadItemGantt', (p) =>
643
+ el(PoadGantt, {
644
+ scale: str(p, 'scale'), emptyText: opt(p, 'emptyText'), taskColumnWidth: opt(p, 'taskColumnWidth'), tickWidth: onum(p, 'tickWidth') ?? null, showNow: bool(p, 'showNow'),
645
+ showUnplanned: bool(p, 'showUnplanned'), firstDay: numChoice(p, 'firstDay') ?? 1, editable: bool(p, 'editable'), class: 'poad-front__fill',
646
+ }),
647
+ );
302
648
  },
303
649
  taskboard: async () => {
304
650
  const { PoadTaskboard } = await import('@poadio/ui-vue/taskboard');
305
- return view('PoadItemTaskboard', (p) => el(PoadTaskboard, { mode: str(p, 'mode'), class: 'poad-front__fill' }));
651
+ return view('PoadItemTaskboard', (p) =>
652
+ el(PoadTaskboard, { mode: str(p, 'mode'), emptyText: opt(p, 'emptyText'), dateFormat: opt(p, 'dateFormat'), groupBy: opt(p, 'groupBy'), dragDisabled: bool(p, 'dragDisabled'), class: 'poad-front__fill' }),
653
+ );
306
654
  },
307
655
 
308
656
  // ---------------------------------------------------------------- Navigation
@@ -310,84 +658,168 @@ export const ITEM_LOADERS: Record<string, () => Promise<Component>> = {
310
658
  const { PoadMenubar } = await import('@poadio/ui-vue/menubar');
311
659
  return view('PoadItemMenubar', (p, ctx) => {
312
660
  const nav = fromPages(p, ctx);
661
+ const common = { breakpoint: str(p, 'breakpoint') === 'never' ? '' : str(p, 'breakpoint') || 'md', openOnHover: bool(p, 'openOnHover'), ariaLabel: opt(p, 'ariaLabel') ?? ctx.t('item.menu') };
313
662
  const bar = nav
314
- ? el(PoadMenubar, { items: nav.pages.map((pg) => ({ id: pg.id, label: pg.title, url: nav.href(pg.id) })), current: nav.current ? nav.href(nav.current) : null, linkAs: frontLink(nav), ariaLabel: ctx.t('item.menu') })
315
- : el(PoadMenubar, { items: list(p, 'items').map((l) => ({ label: l })), ariaLabel: ctx.t('item.menu') });
663
+ ? el(PoadMenubar, { items: nav.pages.map((pg) => ({ id: pg.id, label: pg.title, url: nav.href(pg.id) })), current: nav.current ? nav.href(nav.current) : null, linkAs: frontLink(nav), ...common })
664
+ : el(PoadMenubar, { items: asItems(p, 'items'), ...common });
316
665
  return h('div', { class: 'poad-front__center-v' }, [bar]);
317
666
  });
318
667
  },
319
668
  breadcrumb: async () => {
320
669
  const { PoadBreadcrumb } = await import('@poadio/ui-vue/breadcrumb');
321
- return view('PoadItemBreadcrumb', (p) => h('div', { class: 'poad-front__center-v' }, [el(PoadBreadcrumb, { items: list(p, 'items').map((l) => ({ label: l })) })]));
670
+ return view('PoadItemBreadcrumb', (p) =>
671
+ h('div', { class: 'poad-front__center-v' }, [el(PoadBreadcrumb, { items: asItems(p, 'items'), separatorIcon: opt(p, 'separatorIcon'), maxItems: num(p, 'maxItems') })]),
672
+ );
322
673
  },
323
674
  'bottom-nav': async () => {
324
675
  const { PoadBottomNav } = await import('@poadio/ui-vue/bottom-nav');
325
676
  const icons = ['home', 'search', 'user', 'settings', 'bell'];
326
677
  return model('PoadItemBottomNav', () => '0', (p, ctx, v) => {
327
678
  const nav = fromPages(p, ctx);
679
+ const common = {
680
+ labels: opt(p, 'labels'), maxItems: num(p, 'maxItems') || 5, breakpoint: opt(p, 'breakpoint'), alwaysShow: bool(p, 'alwaysShow'),
681
+ ariaLabel: opt(p, 'ariaLabel') ?? ctx.t('item.menu'), class: 'poad-front__inline-nav',
682
+ };
328
683
  return nav
329
684
  ? el(PoadBottomNav, {
330
685
  items: nav.pages.map((pg, i) => ({ value: pg.id, label: pg.title, icon: icons[i % icons.length]! })),
331
686
  modelValue: nav.current,
332
687
  'onUpdate:modelValue': (id: string) => nav.go(id),
333
- alwaysShow: true, ariaLabel: ctx.t('item.menu'), class: 'poad-front__inline-nav',
688
+ ...common,
334
689
  })
335
- : el(PoadBottomNav, { items: list(p, 'items').map((l, i) => ({ value: String(i), label: l, icon: icons[i % icons.length]! })), alwaysShow: true, ariaLabel: ctx.t('item.menu'), class: 'poad-front__inline-nav', ...bind(v) });
690
+ : el(PoadBottomNav, { items: list(p, 'items').map((l, i) => ({ value: String(i), label: l, icon: icons[i % icons.length]! })), ...common, ...bind(v) });
336
691
  });
337
692
  },
338
693
  'speed-dial': async () => {
339
694
  const { PoadSpeedDial } = await import('@poadio/ui-vue/speed-dial');
340
695
  const icons = ['pencil', 'share', 'trash'];
341
- return view('PoadItemSpeedDial', (p, ctx) => h('div', { class: 'poad-front__center' }, [el(PoadSpeedDial, { items: list(p, 'items').map((l, i) => ({ label: l, icon: icons[i % icons.length] })), direction: str(p, 'direction'), ariaLabel: ctx.t('item.actions') })]));
696
+ return view('PoadItemSpeedDial', (p, ctx) =>
697
+ h('div', { class: 'poad-front__center' }, [
698
+ el(PoadSpeedDial, {
699
+ items: list(p, 'items').map((l, i) => ({ label: l, icon: icons[i % icons.length] })), direction: str(p, 'direction'), type: opt(p, 'type'),
700
+ radius: num(p, 'radius') || 80, spacing: num(p, 'spacing') || 48, showIcon: opt(p, 'showIcon'), hideIcon: opt(p, 'hideIcon'), mask: bool(p, 'mask'), disabled: bool(p, 'disabled'),
701
+ ariaLabel: opt(p, 'ariaLabel') ?? ctx.t('item.actions'),
702
+ }),
703
+ ]),
704
+ );
705
+ },
706
+ 'nav-drawer': async () => {
707
+ const { PoadNavDrawer } = await import('@poadio/ui-vue/nav-drawer');
708
+ const icons = ['layout-dashboard', 'home', 'users', 'settings', 'file-text'];
709
+ return model('PoadItemNavDrawer', (p) => list(p, 'items')[0] ?? null, (p, ctx, v) =>
710
+ el(PoadNavDrawer, {
711
+ items: list(p, 'items').map((l, i) => ({ value: l, label: l, icon: icons[i % icons.length] })), title: str(p, 'title'), icon: str(p, 'icon'),
712
+ mode: str(p, 'mode') || 'permanent', position: opt(p, 'position'), breakpoint: opt(p, 'breakpoint'),
713
+ closeOnNavigate: bool(p, 'closeOnNavigate'), closeOnEscape: bool(p, 'closeOnEscape'), dismissableScrim: bool(p, 'dismissableScrim'),
714
+ ariaLabel: opt(p, 'ariaLabel') ?? ctx.t('item.menu'), class: 'poad-front__fill', ...bind(v),
715
+ }),
716
+ );
717
+ },
718
+ 'scroll-top': async () => {
719
+ const { PoadScrollTop } = await import('@poadio/ui-vue/scroll-top');
720
+ // Sur le canevas, le bouton se montre à sa place ; en vrai, il paraît en bas de l'écran après le seuil
721
+ return view('PoadItemScrollTop', (p, ctx) =>
722
+ h('div', { class: ['poad-front__center', ctx.canvas && 'poad-front__scrolltop-canvas'] }, [
723
+ el(PoadScrollTop, { threshold: ctx.canvas ? 0 : num(p, 'threshold'), icon: opt(p, 'icon'), behavior: opt(p, 'behavior'), ariaLabel: opt(p, 'ariaLabel') }),
724
+ ]),
725
+ );
342
726
  },
343
727
 
344
728
  // ---------------------------------------------------------------- Affichage
345
729
  heading: async () =>
346
- view('PoadItemHeading', (p) => h(str(p, 'level') || 'h2', { class: ['poad-front__heading', `is-${str(p, 'level') || 'h2'}`], style: { textAlign: str(p, 'align') || 'left' } }, str(p, 'text'))),
347
- text: async () => view('PoadItemText', (p) => h('p', { class: 'poad-front__text', style: { textAlign: str(p, 'align') || 'left' } }, str(p, 'text'))),
730
+ view('PoadItemHeading', (p) =>
731
+ h(str(p, 'level') || 'h2', { class: ['poad-front__heading', `is-${str(p, 'level') || 'h2'}`], style: { textAlign: str(p, 'align') || 'left', color: cssColor(p, 'color') } }, str(p, 'text')),
732
+ ),
733
+ text: async () => view('PoadItemText', (p) => h('p', { class: 'poad-front__text', style: { textAlign: str(p, 'align') || 'left', color: cssColor(p, 'color') } }, str(p, 'text'))),
348
734
  image: async () => {
349
- const [{ PoadImage }, { PoadIcon }] = await Promise.all([import('@poadio/ui-vue/image'), import('@poadio/ui-vue/icon')]);
735
+ const [{ PoadImage }, { PoadIcon }] = await Promise.all([import('@poadio/ui-vue/image'), ui.icon()]);
350
736
  return view('PoadItemImage', (p, ctx) =>
351
737
  str(p, 'src')
352
- ? el(PoadImage, { src: str(p, 'src'), alt: str(p, 'alt'), fit: str(p, 'fit'), rounded: bool(p, 'rounded'), width: '100%', height: '100%', class: 'poad-front__fill' })
738
+ ? el(PoadImage, {
739
+ src: str(p, 'src'), alt: str(p, 'alt'), caption: opt(p, 'caption'), fit: str(p, 'fit'), rounded: bool(p, 'rounded'), preview: bool(p, 'preview'), lazy: bool(p, 'lazy'),
740
+ width: '100%', height: '100%', class: 'poad-front__fill',
741
+ })
353
742
  : h('div', { class: 'poad-front__placeholder', role: 'img', 'aria-label': str(p, 'alt') || ctx.t('item.image.empty') }, [el(PoadIcon, { name: 'image', size: 28 }), h('span', ctx.t('item.image.empty'))]),
354
743
  );
355
744
  },
356
745
  avatar: async () => {
357
746
  const { PoadAvatar } = await import('@poadio/ui-vue/avatar');
358
- return view('PoadItemAvatar', (p) => h('div', { class: 'poad-front__center' }, [el(PoadAvatar, { text: str(p, 'text'), size: str(p, 'size'), shape: str(p, 'shape') })]));
747
+ return view('PoadItemAvatar', (p) =>
748
+ h('div', { class: 'poad-front__center' }, [el(PoadAvatar, { text: str(p, 'text'), size: str(p, 'size'), shape: str(p, 'shape'), color: cssColor(p, 'color'), icon: opt(p, 'icon'), label: opt(p, 'label') })]),
749
+ );
750
+ },
751
+ 'avatar-group': async () => {
752
+ const { PoadAvatar, PoadAvatarGroup } = await import('@poadio/ui-vue/avatar');
753
+ return view('PoadItemAvatarGroup', (p) =>
754
+ h('div', { class: 'poad-front__center' }, [
755
+ el(PoadAvatarGroup, { max: num(p, 'max') || undefined, size: opt(p, 'size'), moreColor: cssColor(p, 'moreColor') }, () =>
756
+ list(p, 'names').map((n) => el(PoadAvatar, { key: n, text: n, shape: opt(p, 'shape') })),
757
+ ),
758
+ ]),
759
+ );
760
+ },
761
+ spinner: async () => {
762
+ const { PoadSpinner } = await import('@poadio/ui-vue/progress');
763
+ return view('PoadItemSpinner', (p) =>
764
+ h('div', { class: 'poad-front__center' }, [el(PoadSpinner, { size: num(p, 'size') || 32, strokeWidth: num(p, 'strokeWidth') || 2.5, severity: opt(p, 'severity'), ariaLabel: opt(p, 'ariaLabel') })]),
765
+ );
359
766
  },
360
767
  badge: async () => {
361
768
  const { PoadBadge } = await import('@poadio/ui-vue/badge');
362
- return view('PoadItemBadge', (p) => h('div', { class: 'poad-front__center-v is-fit' }, [el(PoadBadge, { value: str(p, 'value'), severity: str(p, 'severity') })]));
769
+ return view('PoadItemBadge', (p) =>
770
+ h('div', { class: 'poad-front__center-v is-fit' }, [el(PoadBadge, { value: str(p, 'value'), severity: str(p, 'severity'), size: opt(p, 'size'), dot: bool(p, 'dot'), max: num(p, 'max') || 99, ariaLabel: opt(p, 'ariaLabel') })]),
771
+ );
363
772
  },
364
773
  tag: async () => {
365
774
  const { PoadTag } = await import('@poadio/ui-vue/tag');
366
- return view('PoadItemTag', (p) => h('div', { class: 'poad-front__center-v is-fit' }, [el(PoadTag, { value: str(p, 'value'), severity: str(p, 'severity'), rounded: bool(p, 'rounded') })]));
775
+ return view('PoadItemTag', (p) =>
776
+ h('div', { class: 'poad-front__center-v is-fit' }, [el(PoadTag, { value: str(p, 'value'), severity: str(p, 'severity'), size: opt(p, 'size'), icon: opt(p, 'icon'), dot: bool(p, 'dot'), rounded: bool(p, 'rounded') })]),
777
+ );
367
778
  },
368
779
  chip: async () => {
369
780
  const { PoadChip } = await import('@poadio/ui-vue/chip');
370
- return view('PoadItemChip', (p) => h('div', { class: 'poad-front__center-v is-fit' }, [el(PoadChip, { label: str(p, 'label'), removable: bool(p, 'removable') })]));
781
+ return view('PoadItemChip', (p) =>
782
+ h('div', { class: 'poad-front__center-v is-fit' }, [
783
+ el(PoadChip, {
784
+ label: str(p, 'label'), avatarText: opt(p, 'avatarText'), icon: opt(p, 'icon'), severity: orNull(p, 'severity'), size: opt(p, 'size'), removable: bool(p, 'removable'),
785
+ clickable: bool(p, 'clickable'), selected: bool(p, 'selected'), disabled: bool(p, 'disabled'),
786
+ }),
787
+ ]),
788
+ );
371
789
  },
372
790
  carousel: async () => {
373
791
  const { PoadCarousel } = await import('@poadio/ui-vue/carousel');
374
792
  return view('PoadItemCarousel', (p) =>
375
- el(PoadCarousel, { items: list(p, 'slides'), numVisible: num(p, 'numVisible') || 1, class: 'poad-front__fill' }, { item: ({ item }: { item: string }) => h('div', { class: 'poad-front__slide' }, item) }),
793
+ el(PoadCarousel, {
794
+ items: list(p, 'slides'), numVisible: num(p, 'numVisible') || 1, numScroll: num(p, 'numScroll') || 1, orientation: opt(p, 'orientation'), showIndicators: bool(p, 'showIndicators'),
795
+ showNavigators: bool(p, 'showNavigators'), circular: bool(p, 'circular'), autoplay: num(p, 'autoplay'), ariaLabel: opt(p, 'ariaLabel'), class: 'poad-front__fill',
796
+ }, { item: ({ item }: { item: string }) => h('div', { class: 'poad-front__slide' }, item) }),
376
797
  );
377
798
  },
378
799
  icon: async () => {
379
- const { PoadIcon } = await import('@poadio/ui-vue/icon');
380
- return view('PoadItemIcon', (p) => h('div', { class: 'poad-front__center' }, [el(PoadIcon, { name: str(p, 'name') || 'star', size: num(p, 'size') || 24 })]));
800
+ const { PoadIcon } = await ui.icon();
801
+ // La couleur d'une icône est celle du texte autour (`currentColor`)
802
+ return view('PoadItemIcon', (p) =>
803
+ h('div', { class: 'poad-front__center', style: { color: cssColor(p, 'color') } }, [
804
+ el(PoadIcon, {
805
+ name: str(p, 'name') || 'star', size: num(p, 'size') || 24, strokeWidth: num(p, 'strokeWidth') || 2, filled: bool(p, 'filled'), flip: orNull(p, 'flip') ?? undefined,
806
+ rotate: num(p, 'rotate') || undefined, spin: bool(p, 'spin'), label: opt(p, 'label'),
807
+ }),
808
+ ]),
809
+ );
381
810
  },
382
811
  message: async () => {
383
812
  const { PoadMessage } = await import('@poadio/ui-vue/message');
384
- return view('PoadItemMessage', (p) => el(PoadMessage, { severity: str(p, 'severity'), text: str(p, 'text') }));
813
+ return view('PoadItemMessage', (p) =>
814
+ el(PoadMessage, { severity: str(p, 'severity'), text: str(p, 'text'), variant: opt(p, 'variant'), size: opt(p, 'size'), icon: bool(p, 'showIcon') ? opt(p, 'icon') : '', closable: bool(p, 'closable') }),
815
+ );
385
816
  },
386
817
  skeleton: async () => {
387
818
  const { PoadSkeleton } = await import('@poadio/ui-vue/skeleton');
388
819
  return view('PoadItemSkeleton', (p) => {
389
820
  const shape = str(p, 'shape') || 'text';
390
- return el(PoadSkeleton, shape === 'text' ? { shape, lines: num(p, 'lines') || 3 } : { shape, width: shape === 'circle' ? '48px' : '100%', height: shape === 'circle' ? '48px' : '100%' });
821
+ const look = { animation: bool(p, 'animation') };
822
+ return el(PoadSkeleton, shape === 'text' ? { shape, lines: num(p, 'lines') || 3, lastWidth: opt(p, 'lastWidth'), ...look } : { shape, width: shape === 'circle' ? '48px' : '100%', height: shape === 'circle' ? '48px' : '100%', ...look });
391
823
  });
392
824
  },
393
825
  };
@@ -410,9 +842,24 @@ export const ITEM_STYLES: Record<string, readonly string[]> = {
410
842
  gantt: ['gantt', 'popover', 'segmented', 'dialog', 'menu', 'select', 'option-list', 'datepicker', 'skeleton'],
411
843
  taskboard: ['taskboard', 'popover', 'segmented', 'dialog', 'menu', 'avatar', 'select', 'option-list', 'skeleton'],
412
844
  menubar: ['menubar', 'menu', 'popover'], breadcrumb: ['breadcrumb', 'menu', 'popover'], 'bottom-nav': ['bottom-nav', 'badge'], 'speed-dial': ['speed-dial', 'tooltip'],
845
+ multiselect: ['multiselect', 'option-list', 'popover', 'chip', 'checkbox'], picklist: ['picklist', 'orderlist', 'checkbox'], orderlist: ['orderlist'],
846
+ inplace: ['inplace'], 'split-button': ['button-group', 'menu', 'popover'], 'filter-chip': ['filter-chip'],
847
+ code: ['code-editor', 'tooltip'], json: ['json-editor', 'tooltip'], 'block-editor': ['block-editor', 'block-view', 'menu', 'dialog', 'popover', 'tooltip'], 'block-view': ['block-view'],
848
+ map: ['map', 'maplibre-gl', 'popover', 'menu', 'tooltip'], 'nav-drawer': ['nav-drawer', 'sheet', 'badge'], 'scroll-top': ['scroll-top'], 'avatar-group': ['avatar'], spinner: ['progress'],
413
849
  heading: [], text: [], image: ['image'], avatar: ['avatar'], badge: ['badge'], tag: [], chip: ['chip', 'avatar'], carousel: ['carousel'], icon: [], message: [], skeleton: ['skeleton'],
414
850
  };
415
851
 
852
+ // ------------------------------------------------------------------ ressources du moteur
853
+
854
+ /**
855
+ * Où le moteur sert les ressources lourdes chargées à la demande : Monaco (dossier AMD min/vs). Le moteur servi par
856
+ * l'engine le règle (runtime/main.ts) ; une appli qui emploie app-vue directement le règle à son tour.
857
+ */
858
+ let monacoBaseUrl: string | null = null;
859
+ export const setMonacoBaseUrl = (url: string | null) => {
860
+ monacoBaseUrl = url;
861
+ };
862
+
416
863
  // ------------------------------------------------------------------ styles à la demande
417
864
 
418
865
  let styleLoader: ((name: string) => void) | null = null;