@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/dist/items.js CHANGED
@@ -42,10 +42,32 @@ const frontLink = (nav) => {
42
42
  /** Pages listées par un composant de navigation : celles du front (source « pages »), ou sa liste libre */
43
43
  const fromPages = (p, ctx) => (str(p, 'source') !== 'custom' && ctx.nav ? ctx.nav : null);
44
44
  const str = (p, k) => (typeof p[k] === 'string' ? p[k] : '');
45
+ /** Un texte, ou rien quand il est vide (le composant prend alors son texte par défaut) */
46
+ const opt = (p, k) => str(p, k) || undefined;
45
47
  const num = (p, k) => (typeof p[k] === 'number' ? p[k] : 0);
48
+ /** Un nombre facultatif (`optnumber`) : null, rien à passer au composant */
49
+ const onum = (p, k) => (typeof p[k] === 'number' ? p[k] : undefined);
46
50
  const bool = (p, k) => p[k] === true;
47
51
  const list = (p, k) => (Array.isArray(p[k]) ? p[k].filter((s) => s.trim() !== '') : []);
48
- const options = (p, k = 'options') => list(p, k).map((l) => ({ label: l, value: l }));
52
+ const options = (p, k) => list(p, k).map((l) => ({ label: l, value: l }));
53
+ /** Choix à trois états (auto / oui / non) : null, true ou false */
54
+ const tri = (p, k) => (str(p, k) === 'yes' ? true : str(p, k) === 'no' ? false : null);
55
+ /** Choix numérique écrit en texte (`'1'`, `'-1'`) ; `auto` ou vide : rien */
56
+ const numChoice = (p, k) => (/^-?\d+$/.test(str(p, k)) ? Number(str(p, k)) : undefined);
57
+ /** Choix dont une valeur dit « aucun » (`none`, `never`…) : null pour le composant */
58
+ const orNull = (p, k, none = 'none') => (str(p, k) && str(p, k) !== none ? str(p, k) : null);
59
+ /** Couleurs du thème (COLOR_TOKENS de app-core) → variables CSS de @poadio/ui-core */
60
+ const THEME_COLORS = {
61
+ primary: 'var(--poad-accent)', secondary: 'var(--poad-fg-secondary)', success: 'var(--poad-success)', warning: 'var(--poad-warning)',
62
+ danger: 'var(--poad-danger)', info: 'var(--poad-info)', neutral: 'var(--poad-fg-muted)',
63
+ };
64
+ /** Une propriété `color` en couleur CSS : jeton du thème → sa variable, #hex tel quel, vide → rien */
65
+ const cssColor = (p, k) => (str(p, k) ? (THEME_COLORS[str(p, k)] ?? str(p, k)) : undefined);
66
+ /** Une date AAAA-MM-JJ (`date`) en Date locale, ou null */
67
+ const day = (p, k) => {
68
+ const m = /^(\d{4})-(\d{2})-(\d{2})$/.exec(str(p, k));
69
+ return m ? new Date(+m[1], +m[2] - 1, +m[3]) : null;
70
+ };
49
71
  /**
50
72
  * h() sans le typage strict des props de chaque composant : les valeurs viennent du catalogue (choix déjà vérifiés
51
73
  * par `resolveProps`), un texte y vaut une des valeurs permises.
@@ -64,120 +86,308 @@ const model = (name, initial, render) => defineComponent({
64
86
  return () => render(props.p, props.ctx, v);
65
87
  },
66
88
  });
67
- const bind = (v) => ({ modelValue: v.value, 'onUpdate:modelValue': (x) => (v.value = x) });
89
+ const bind = (v, prop = 'modelValue') => ({ [prop]: v.value, [`onUpdate:${prop}`]: (x) => (v.value = x) });
68
90
  /** Texte d'un contenu de démonstration : « Contenu de « Onglet 1 ». » */
69
91
  const contentOf = (ctx, name) => ctx.t('item.content').replace('{name}', name);
70
92
  const ui = {
71
93
  button: () => import('@poadio/ui-vue/button'),
72
94
  field: () => import('@poadio/ui-vue/field'),
95
+ icon: () => import('@poadio/ui-vue/icon'),
73
96
  };
74
- /** Libellé et contrôle, à la façon d'un champ de formulaire */
97
+ /** Props de l'enveloppe PoadField d'un champ : libellé, aide, obligatoire, mention facultatif, libellé à gauche, taille, désactivé */
98
+ const fieldShell = (p) => ({
99
+ label: opt(p, 'label'), hint: opt(p, 'hint'), required: bool(p, 'required'), optional: bool(p, 'optional'),
100
+ inline: bool(p, 'inline'), size: opt(p, 'size'), disabled: bool(p, 'disabled'),
101
+ });
102
+ /** 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) */
75
103
  const labelled = async (name, load, initial, extra = () => ({})) => {
76
104
  const [{ PoadField }, control] = await Promise.all([ui.field(), load()]);
77
- return model(name, initial, (p, _ctx, v) => el(PoadField, { label: str(p, 'label') || undefined, required: bool(p, 'required'), hint: str(p, 'hint') || undefined, bare: true }, () => el(control, { ...extra(p), ...bind(v) })));
105
+ return model(name, initial, (p, _ctx, v) => el(PoadField, { ...fieldShell(p), plain: true }, () => el(control, { ...extra(p), ...bind(v) })));
78
106
  };
107
+ /** Éléments de menu (libellés seuls) à partir d'une liste */
108
+ const asItems = (p, k) => list(p, k).map((l) => ({ label: l }));
79
109
  /** Un chargeur par type : rend le composant Vue qui dessine ce type */
80
110
  export const ITEM_LOADERS = {
81
111
  // ---------------------------------------------------------------- Mise en page
82
112
  card: async () => {
83
113
  const { PoadCard } = await import('@poadio/ui-vue/card');
84
- 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'))));
114
+ return view('PoadItemCard', (p) => 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' }, () => h('p', { class: 'poad-front__body' }, str(p, 'body'))));
85
115
  },
86
116
  panel: async () => {
87
117
  const { PoadPanel } = await import('@poadio/ui-vue/panel');
88
- 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'))));
118
+ return model('PoadItemPanel', (p) => bool(p, 'toggleable') && bool(p, 'collapsed'), (p, _ctx, v) => 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' }, () => h('p', { class: 'poad-front__body' }, str(p, 'body'))));
89
119
  },
90
120
  fieldset: async () => {
91
121
  const { PoadFieldset } = await import('@poadio/ui-vue/fieldset');
92
- 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'))));
122
+ return model('PoadItemFieldset', (p) => bool(p, 'toggleable') && bool(p, 'collapsed'), (p, _ctx, v) => 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'))));
93
123
  },
94
124
  divider: async () => {
95
125
  const { PoadDivider } = await import('@poadio/ui-vue/divider');
96
- 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)]));
126
+ return view('PoadItemDivider', (p) => {
127
+ const vertical = bool(p, 'vertical');
128
+ return h('div', vertical ? { class: 'poad-front__divider-v' } : { class: 'poad-front__center-v' }, [
129
+ el(PoadDivider, { align: str(p, 'align'), dashed: bool(p, 'dashed'), vertical }, str(p, 'label') ? () => str(p, 'label') : undefined),
130
+ ]);
131
+ });
97
132
  },
98
133
  tabs: async () => {
99
134
  const { PoadTabs, PoadTab } = await import('@poadio/ui-vue/tabs');
100
- 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))))));
135
+ return model('PoadItemTabs', (p) => num(p, 'activeIndex'), (p, ctx, v) => el(PoadTabs, { variant: str(p, 'variant'), size: opt(p, 'size'), stretch: bool(p, 'stretch'), scrollable: bool(p, 'scrollable'), ...bind(v, 'activeIndex') }, () => list(p, 'tabs').map((l, i) => el(PoadTab, { key: i, label: l }, () => h('p', { class: 'poad-front__body' }, contentOf(ctx, l))))));
101
136
  },
102
137
  accordion: async () => {
103
138
  const { PoadAccordion, PoadAccordionPanel } = await import('@poadio/ui-vue/accordion');
104
- return view('PoadItemAccordion', (p, ctx) => 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))))));
139
+ const open = (p) => {
140
+ const i = onum(p, 'openIndex');
141
+ return bool(p, 'multiple') ? (i === undefined ? [] : [String(i)]) : i === undefined ? null : String(i);
142
+ };
143
+ return model('PoadItemAccordion', open, (p, ctx, v) => el(PoadAccordion, { multiple: bool(p, 'multiple'), expandIcon: opt(p, 'expandIcon'), flush: bool(p, 'flush'), ...bind(v) }, () => list(p, 'panels').map((l, i) => el(PoadAccordionPanel, { key: i, value: String(i), header: l }, () => h('p', { class: 'poad-front__body' }, contentOf(ctx, l))))));
105
144
  },
106
145
  stepper: async () => {
107
146
  const { PoadStepper, PoadStep } = await import('@poadio/ui-vue/stepper');
108
- 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 }))));
147
+ return model('PoadItemStepper', (p) => num(p, 'current'), (p, _ctx, v) => el(PoadStepper, { orientation: str(p, 'orientation'), size: opt(p, 'size'), clickable: bool(p, 'clickable'), linear: bool(p, 'linear'), ariaLabel: opt(p, 'ariaLabel'), ...bind(v) }, () => list(p, 'steps').map((l, i) => el(PoadStep, { key: i, label: l }))));
109
148
  },
110
149
  splitter: async () => {
111
150
  const { PoadSplitter, PoadSplitterPanel } = await import('@poadio/ui-vue/splitter');
112
- return view('PoadItemSplitter', (p) => 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)))));
151
+ return view('PoadItemSplitter', (p) => el(PoadSplitter, { layout: str(p, 'layout'), gutterSize: num(p, 'gutterSize') || 6, stateKey: opt(p, 'stateKey'), class: 'poad-front__fill' }, () => list(p, 'panels').map((l, i) => el(PoadSplitterPanel, { key: i }, () => h('div', { class: 'poad-front__split' }, l)))));
113
152
  },
114
153
  // ---------------------------------------------------------------- Formulaires
115
154
  field: async () => {
116
155
  const { PoadField, PoadInput } = await ui.field();
117
- return model('PoadItemField', () => '', (p, _ctx, v) => el(PoadField, { label: str(p, 'label') || undefined, hint: str(p, 'hint') || undefined, required: bool(p, 'required') }, () => el(PoadInput, { type: str(p, 'inputType') || 'text', placeholder: str(p, 'placeholder') || undefined, required: bool(p, 'required'), ...bind(v) })));
156
+ return model('PoadItemField', (p) => str(p, 'value'), (p, _ctx, v) => el(PoadField, fieldShell(p), () => el(PoadInput, {
157
+ type: str(p, 'inputType') || 'text', placeholder: opt(p, 'placeholder'), required: bool(p, 'required'), disabled: bool(p, 'disabled'), readonly: bool(p, 'readonly'),
158
+ maxlength: onum(p, 'maxLength'), mono: bool(p, 'mono'), size: opt(p, 'size'), ...bind(v),
159
+ })));
118
160
  },
119
161
  textarea: async () => {
120
162
  const { PoadField, PoadTextarea } = await ui.field();
121
- return model('PoadItemTextarea', () => '', (p, _ctx, v) => 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) })));
163
+ return model('PoadItemTextarea', (p) => str(p, 'value'), (p, _ctx, v) => el(PoadField, { ...fieldShell(p), class: 'poad-front__fill-field' }, () => el(PoadTextarea, {
164
+ placeholder: opt(p, 'placeholder'), required: bool(p, 'required'), disabled: bool(p, 'disabled'), readonly: bool(p, 'readonly'),
165
+ maxlength: onum(p, 'maxLength'), mono: bool(p, 'mono'), size: opt(p, 'size'), ...bind(v),
166
+ })));
122
167
  },
123
168
  button: async () => {
124
- const { PoadButton } = await ui.button();
125
- return view('PoadItemButton', (p) => el(PoadButton, { severity: str(p, 'severity'), variant: str(p, 'variant'), block: bool(p, 'block') }, () => str(p, 'label')));
169
+ const [{ PoadButton }, { PoadIcon }] = await Promise.all([ui.button(), ui.icon()]);
170
+ return view('PoadItemButton', (p) => {
171
+ const name = str(p, 'icon');
172
+ const label = str(p, 'label');
173
+ return el(PoadButton, {
174
+ severity: str(p, 'severity'), variant: str(p, 'variant'), size: opt(p, 'size'), block: bool(p, 'block'), disabled: bool(p, 'disabled'), loading: bool(p, 'loading'),
175
+ // Une icône sans libellé : bouton carré, nommé pour les lecteurs d'écran par l'infobulle de la case
176
+ icon: !!name && !label,
177
+ }, () => [name ? el(PoadIcon, { name, size: 16 }) : null, label]);
178
+ });
126
179
  },
127
180
  'button-group': async () => {
128
181
  const [{ PoadButtonGroup }, { PoadButton }] = await Promise.all([import('@poadio/ui-vue/button-group'), ui.button()]);
129
- return model('PoadItemButtonGroup', (p) => list(p, 'buttons')[0] ?? null, (p, _ctx, v) => el(PoadButtonGroup, { selectable: 'single', size: str(p, 'size'), ...bind(v) }, () => list(p, 'buttons').map((l) => el(PoadButton, { key: l, value: l }, () => l))));
182
+ return model('PoadItemButtonGroup', (p) => (str(p, 'selectable') === 'multiple' ? [] : (list(p, 'buttons')[0] ?? null)), (p, _ctx, v) => el(PoadButtonGroup, {
183
+ selectable: orNull(p, 'selectable'), size: str(p, 'size'), orientation: opt(p, 'orientation'), look: opt(p, 'look'), attached: bool(p, 'attached'), stretch: bool(p, 'stretch'),
184
+ ariaLabel: opt(p, 'ariaLabel'), ...bind(v),
185
+ }, () => list(p, 'buttons').map((l) => el(PoadButton, { key: l, value: l }, () => l))));
130
186
  },
131
187
  checkbox: async () => {
132
188
  const { PoadCheckbox } = await import('@poadio/ui-vue/checkbox');
133
- 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) })]));
189
+ return model('PoadItemCheckbox', (p) => ({ checked: bool(p, 'checked'), indeterminate: bool(p, 'indeterminate') }), (p, _ctx, v) => h('div', { class: 'poad-front__center-v' }, [
190
+ el(PoadCheckbox, {
191
+ label: str(p, 'label'), disabled: bool(p, 'disabled'), readonly: bool(p, 'readonly'), ariaLabel: opt(p, 'ariaLabel'),
192
+ modelValue: v.value.checked, 'onUpdate:modelValue': (x) => (v.value = { ...v.value, checked: x }),
193
+ indeterminate: v.value.indeterminate, 'onUpdate:indeterminate': (x) => (v.value = { ...v.value, indeterminate: x }),
194
+ }),
195
+ ]));
134
196
  },
135
197
  radio: async () => {
136
198
  const { PoadRadioGroup, PoadRadio } = await import('@poadio/ui-vue/radio');
137
199
  return model('PoadItemRadio', (p) => list(p, 'options')[0] ?? null, (p, _ctx, v) => h('div', { class: 'poad-front__group' }, [
138
200
  str(p, 'label') ? h('span', { class: 'poad-front__label' }, str(p, 'label')) : null,
139
- 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 }))),
201
+ 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 }))),
140
202
  ]));
141
203
  },
142
204
  switch: async () => {
143
205
  const { PoadSwitch } = await import('@poadio/ui-vue/switch');
144
- 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) })]));
206
+ return model('PoadItemSwitch', (p) => bool(p, 'checked'), (p, _ctx, v) => h('div', { class: 'poad-front__center-v' }, [
207
+ 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) }),
208
+ ]));
145
209
  },
146
210
  'toggle-button': async () => {
147
211
  const { PoadToggleButton } = await import('@poadio/ui-vue/toggle-button');
148
- return model('PoadItemToggle', () => false, (p, _ctx, v) => el(PoadToggleButton, { onLabel: str(p, 'onLabel'), offLabel: str(p, 'offLabel'), ...bind(v) }));
212
+ return model('PoadItemToggle', (p) => bool(p, 'checked'), (p, _ctx, v) => el(PoadToggleButton, {
213
+ onLabel: str(p, 'onLabel'), offLabel: str(p, 'offLabel'), onIcon: opt(p, 'onIcon'), offIcon: opt(p, 'offIcon'), severity: opt(p, 'severity'), size: opt(p, 'size'),
214
+ disabled: bool(p, 'disabled'), readonly: bool(p, 'readonly'), ariaLabel: opt(p, 'ariaLabel'), ...bind(v),
215
+ }));
149
216
  },
150
217
  segmented: async () => {
151
218
  const { PoadSegmented } = await import('@poadio/ui-vue/segmented');
152
- return model('PoadItemSegmented', (p) => list(p, 'options')[0] ?? null, (p, _ctx, v) => el(PoadSegmented, { options: options(p), block: bool(p, 'block'), ...bind(v) }));
219
+ const first = (p) => list(p, 'options')[0] ?? null;
220
+ return model('PoadItemSegmented', (p) => (bool(p, 'multiple') ? (first(p) === null ? [] : [first(p)]) : first(p)), (p, _ctx, v) => el(PoadSegmented, {
221
+ options: options(p, 'options'), block: bool(p, 'block'), size: opt(p, 'size'), shape: opt(p, 'shape'), multiple: bool(p, 'multiple'), allowEmpty: bool(p, 'allowEmpty'),
222
+ disabled: bool(p, 'disabled'), ariaLabel: opt(p, 'ariaLabel'), ...bind(v),
223
+ }));
153
224
  },
154
- select: async () => 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 })),
155
- combo: async () => labelled('PoadItemCombo', () => import('@poadio/ui-vue/combo').then((m) => m.PoadCombo), () => '', (p) => ({ suggestions: list(p, 'options'), placeholder: str(p, 'placeholder') || undefined, dropdown: true })),
225
+ select: async () => labelled('PoadItemSelect', () => import('@poadio/ui-vue/select').then((m) => m.PoadSelect), () => null, (p) => ({
226
+ options: options(p, 'options'), optionLabel: 'label', optionValue: 'value', placeholder: opt(p, 'placeholder'),
227
+ filter: bool(p, 'filter'), filterPlaceholder: opt(p, 'filterPlaceholder'), clearable: bool(p, 'clearable'), emptyMessage: opt(p, 'emptyMessage'), emptyFilterMessage: opt(p, 'emptyFilterMessage'),
228
+ 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'),
229
+ ariaLabel: opt(p, 'ariaLabel'),
230
+ })),
231
+ combo: async () => labelled('PoadItemCombo', () => import('@poadio/ui-vue/combo').then((m) => m.PoadCombo), (p) => (bool(p, 'multiple') ? [] : ''), (p) => ({
232
+ suggestions: list(p, 'options'), placeholder: opt(p, 'placeholder'), dropdown: bool(p, 'dropdown'), forceSelection: bool(p, 'forceSelection'), multiple: bool(p, 'multiple'),
233
+ 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,
234
+ disabled: bool(p, 'disabled'), readonly: bool(p, 'readonly'), ariaLabel: opt(p, 'ariaLabel'),
235
+ })),
156
236
  listbox: async () => {
157
- const { PoadListbox } = await import('@poadio/ui-vue/listbox');
158
- return model('PoadItemListbox', (p) => (bool(p, 'multiple') ? [] : null), (p, _ctx, v) => el(PoadListbox, { options: options(p), optionLabel: 'label', optionValue: 'value', multiple: bool(p, 'multiple'), filter: bool(p, 'filter'), class: 'poad-front__fill', ...bind(v) }));
237
+ const [{ PoadListbox }, { PoadField }] = await Promise.all([import('@poadio/ui-vue/listbox'), ui.field()]);
238
+ return model('PoadItemListbox', (p) => (bool(p, 'multiple') ? [] : null), (p, _ctx, v) => {
239
+ const box = el(PoadListbox, {
240
+ options: options(p, 'options'), optionLabel: 'label', optionValue: 'value', multiple: bool(p, 'multiple'), checkbox: bool(p, 'checkbox'), filter: bool(p, 'filter'),
241
+ filterPlaceholder: opt(p, 'filterPlaceholder'), emptyMessage: opt(p, 'emptyMessage'), emptyFilterMessage: opt(p, 'emptyFilterMessage'),
242
+ selectAll: bool(p, 'selectAll'), selectAllLabel: opt(p, 'selectAllLabel'), metaKeySelection: bool(p, 'metaKeySelection'),
243
+ 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),
244
+ });
245
+ // Sans libellé, la liste seule (comme avant) ; avec, le libellé au-dessus et la liste qui remplit le reste
246
+ 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;
247
+ });
159
248
  },
160
- number: async () => labelled('PoadItemNumber', () => import('@poadio/ui-vue/number').then((m) => m.PoadNumber), () => null, (p) => ({ min: num(p, 'min'), max: num(p, 'max'), suffix: str(p, 'suffix') ? ` ${str(p, 'suffix')}` : undefined })),
161
- password: async () => labelled('PoadItemPassword', () => import('@poadio/ui-vue/password').then((m) => m.PoadPassword), () => '', (p) => ({ placeholder: str(p, 'placeholder') || undefined, feedback: bool(p, 'feedback'), autocomplete: 'new-password' })),
249
+ number: async () => labelled('PoadItemNumber', () => import('@poadio/ui-vue/number').then((m) => m.PoadNumber), (p) => onum(p, 'value') ?? null, (p) => ({
250
+ min: onum(p, 'min'), max: onum(p, 'max'), step: onum(p, 'step'), decimals: onum(p, 'decimals'),
251
+ prefix: str(p, 'prefix') ? `${str(p, 'prefix')} ` : undefined, suffix: str(p, 'suffix') ? ` ${str(p, 'suffix')}` : undefined,
252
+ placeholder: opt(p, 'placeholder'), showButtons: bool(p, 'showButtons'), size: opt(p, 'size'), disabled: bool(p, 'disabled'), readonly: bool(p, 'readonly'),
253
+ })),
254
+ password: async () => labelled('PoadItemPassword', () => import('@poadio/ui-vue/password').then((m) => m.PoadPassword), () => '', (p) => ({
255
+ placeholder: opt(p, 'placeholder'), feedback: bool(p, 'feedback'), toggleMask: bool(p, 'toggleMask'), autocomplete: str(p, 'autocomplete') || 'new-password', disabled: bool(p, 'disabled'),
256
+ })),
162
257
  mask: async () => {
163
258
  const [{ PoadField, PoadInput }, { vPoadMask }] = await Promise.all([ui.field(), import('@poadio/ui-vue/mask')]);
164
- 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') }]])));
259
+ return view('PoadItemMask', (p) => {
260
+ const mask = { preset: str(p, 'preset'), mask: opt(p, 'mask'), slotChar: opt(p, 'slotChar'), autoClear: bool(p, 'autoClear') };
261
+ return el(PoadField, fieldShell(p), () => withDirectives(el(PoadInput, { key: JSON.stringify(mask), inputmode: 'text', required: bool(p, 'required'), disabled: bool(p, 'disabled'), size: opt(p, 'size') }), [[vPoadMask, mask]]));
262
+ });
165
263
  },
166
- datepicker: async () => labelled('PoadItemDate', () => import('@poadio/ui-vue/datepicker').then((m) => m.PoadDatepicker), () => null, (p) => ({ mode: str(p, 'mode'), selectionMode: bool(p, 'range') ? 'range' : 'single' })),
167
- color: async () => labelled('PoadItemColor', () => import('@poadio/ui-vue/colorpicker').then((m) => m.PoadColorpicker), () => null, (p) => ({ alpha: bool(p, 'alpha') })),
168
- slider: async () => 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' })),
264
+ datepicker: async () => 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) => ({
265
+ mode: str(p, 'mode'), selectionMode: bool(p, 'range') ? 'range' : 'single', placeholder: opt(p, 'placeholder'), format: opt(p, 'format') ?? null,
266
+ min: opt(p, 'min') ?? null, max: opt(p, 'max') ?? null, showIcon: bool(p, 'showIcon'), showWeek: bool(p, 'showWeek'), showButtonBar: bool(p, 'showButtonBar'),
267
+ hourFormat: numChoice(p, 'hourFormat'), firstDayOfWeek: numChoice(p, 'firstDayOfWeek'), stepMinute: num(p, 'stepMinute') || 1, showSeconds: bool(p, 'showSeconds'),
268
+ clearable: bool(p, 'clearable'), manualInput: bool(p, 'manualInput'), readonlyInput: bool(p, 'readonlyInput'), closeOnSelect: tri(p, 'closeOnSelect'), mobile: opt(p, 'mobile'),
269
+ size: opt(p, 'size'), disabled: bool(p, 'disabled'), ariaLabel: opt(p, 'ariaLabel'),
270
+ })),
271
+ color: async () => labelled('PoadItemColor', () => import('@poadio/ui-vue/colorpicker').then((m) => m.PoadColorpicker), () => null, (p) => ({
272
+ 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'),
273
+ })),
274
+ slider: async () => 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) => ({
275
+ 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,
276
+ showTicks: bool(p, 'showTicks'), severity: opt(p, 'severity'), size: opt(p, 'size'), disabled: bool(p, 'disabled'), readonly: bool(p, 'readonly'),
277
+ })),
169
278
  rating: async () => {
170
- const { PoadRating } = await import('@poadio/ui-vue/rating');
171
- return model('PoadItemRating', () => 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) })]));
279
+ const [{ PoadRating }, { PoadField }] = await Promise.all([import('@poadio/ui-vue/rating'), ui.field()]);
280
+ return model('PoadItemRating', (p) => onum(p, 'value') ?? null, (p, _ctx, v) => {
281
+ const stars = el(PoadRating, {
282
+ 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'),
283
+ size: opt(p, 'size'), severity: opt(p, 'severity'), showValue: bool(p, 'showValue'), ariaLabel: opt(p, 'ariaLabel') ?? opt(p, 'label'), ...bind(v),
284
+ });
285
+ 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]);
286
+ });
172
287
  },
173
288
  upload: async () => {
174
289
  const { PoadUpload } = await import('@poadio/ui-vue/upload');
290
+ const mb = (p) => (onum(p, 'maxFileSize') === undefined ? null : Math.round(onum(p, 'maxFileSize') * 1024 * 1024));
175
291
  // Choix seulement : l'envoi vers le stockage du projet viendra avec la liaison aux données
176
- return view('PoadItemUpload', (p) => el(PoadUpload, { mode: str(p, 'mode'), multiple: bool(p, 'multiple'), accept: str(p, 'accept'), selectOnly: true }));
292
+ return view('PoadItemUpload', (p) => el(PoadUpload, {
293
+ mode: str(p, 'mode'), multiple: bool(p, 'multiple'), accept: str(p, 'accept'), selectOnly: true, maxFileSize: mb(p), maxFiles: onum(p, 'maxFiles') ?? null,
294
+ hint: opt(p, 'hint'), dropLabel: opt(p, 'dropLabel'), browseLabel: opt(p, 'browseLabel'), chooseLabel: opt(p, 'chooseLabel'), cancelLabel: opt(p, 'cancelLabel'),
295
+ invalidFileSizeMessage: opt(p, 'invalidFileSizeMessage'), invalidFileTypeMessage: opt(p, 'invalidFileTypeMessage'), invalidFileLimitMessage: opt(p, 'invalidFileLimitMessage'),
296
+ size: opt(p, 'size'), severity: opt(p, 'severity'), previews: bool(p, 'previews'), showCancelButton: bool(p, 'showCancelButton'), disabled: bool(p, 'disabled'),
297
+ }));
177
298
  },
178
299
  richtext: async () => {
179
300
  const { PoadRichText } = await import('@poadio/ui-vue/richtext');
180
- return model('PoadItemRichText', () => '', (p, _ctx, v) => el(PoadRichText, { placeholder: str(p, 'placeholder'), minHeight: '100%', maxHeight: '100%', class: 'poad-front__fill', ...bind(v) }));
301
+ return model('PoadItemRichText', () => '', (p, _ctx, v) => el(PoadRichText, {
302
+ placeholder: str(p, 'placeholder'), toolbar: list(p, 'toolbar'), showCount: bool(p, 'showCount'), format: opt(p, 'format'), markdown: bool(p, 'markdown'),
303
+ disabled: bool(p, 'disabled'), readonly: bool(p, 'readonly'), maxLength: num(p, 'maxLength'), ariaLabel: opt(p, 'ariaLabel'),
304
+ minHeight: '100%', maxHeight: '100%', class: 'poad-front__fill', ...bind(v),
305
+ }));
306
+ },
307
+ multiselect: async () => labelled('PoadItemMultiselect', () => import('@poadio/ui-vue/multiselect').then((m) => m.PoadMultiselect), () => [], (p) => ({
308
+ options: options(p, 'options'), optionLabel: 'label', optionValue: 'value', placeholder: opt(p, 'placeholder'), display: opt(p, 'display'),
309
+ maxSelectedLabels: onum(p, 'maxSelectedLabels') ?? null, selectedItemsLabel: opt(p, 'selectedItemsLabel'), showToggleAll: bool(p, 'showToggleAll'), selectionLimit: onum(p, 'selectionLimit') ?? null,
310
+ filter: bool(p, 'filter'), filterPlaceholder: opt(p, 'filterPlaceholder'), clearable: bool(p, 'clearable'), emptyMessage: opt(p, 'emptyMessage'), emptyFilterMessage: opt(p, 'emptyFilterMessage'),
311
+ 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'),
312
+ ariaLabel: opt(p, 'ariaLabel'),
313
+ })),
314
+ picklist: async () => {
315
+ const { PoadPicklist } = await import('@poadio/ui-vue/picklist');
316
+ return model('PoadItemPicklist', () => [], (p, _ctx, v) => el(PoadPicklist, {
317
+ options: options(p, 'options'), dataKey: 'value', optionLabel: 'label', sourceHeader: opt(p, 'sourceHeader'), targetHeader: opt(p, 'targetHeader'),
318
+ sourceEmpty: opt(p, 'sourceEmpty'), targetEmpty: opt(p, 'targetEmpty'), filter: bool(p, 'filter'), filterPlaceholder: opt(p, 'filterPlaceholder'),
319
+ showSourceControls: bool(p, 'showSourceControls'), showTargetControls: bool(p, 'showTargetControls'), listHeight: opt(p, 'listHeight'), stackAt: num(p, 'stackAt'),
320
+ metaKeySelection: bool(p, 'metaKeySelection'), disabled: bool(p, 'disabled'), class: 'poad-front__fill', ...bind(v),
321
+ }));
322
+ },
323
+ orderlist: async () => {
324
+ const { PoadOrderlist } = await import('@poadio/ui-vue/orderlist');
325
+ return model('PoadItemOrderlist', (p) => options(p, 'items'), (p, _ctx, v) => el(PoadOrderlist, {
326
+ optionLabel: 'label', dataKey: 'value', header: opt(p, 'header'), emptyMessage: opt(p, 'emptyMessage'), filterPlaceholder: opt(p, 'filterPlaceholder'),
327
+ controls: opt(p, 'controls'), striped: bool(p, 'striped'), listHeight: opt(p, 'listHeight'), dragHandle: bool(p, 'dragHandle'), filter: bool(p, 'filter'),
328
+ metaKeySelection: bool(p, 'metaKeySelection'), disabled: bool(p, 'disabled'), ariaLabel: opt(p, 'ariaLabel'), class: 'poad-front__fill', ...bind(v),
329
+ }));
330
+ },
331
+ inplace: async () => {
332
+ const [{ PoadInplace }, { PoadInput }] = await Promise.all([import('@poadio/ui-vue/inplace'), ui.field()]);
333
+ return model('PoadItemInplace', (p) => str(p, 'display'), (p, _ctx, v) => h('div', { class: 'poad-front__center-v' }, [
334
+ el(PoadInplace, {
335
+ display: v.value, showIcon: bool(p, 'showIcon'), closable: bool(p, 'closable'), closeOnEscape: bool(p, 'closeOnEscape'), closeOnBlur: bool(p, 'closeOnBlur'),
336
+ disabled: bool(p, 'disabled'), ariaLabel: opt(p, 'ariaLabel'),
337
+ }, { content: () => el(PoadInput, { ...bind(v) }) }),
338
+ ]));
339
+ },
340
+ 'split-button': async () => {
341
+ const { PoadSplitButton } = await import('@poadio/ui-vue/split-button');
342
+ return view('PoadItemSplitButton', (p) => h('div', { class: 'poad-front__center-v is-fit' }, [
343
+ el(PoadSplitButton, {
344
+ label: str(p, 'label'), items: asItems(p, 'items'), severity: str(p, 'severity'), variant: opt(p, 'variant'), size: opt(p, 'size'), icon: opt(p, 'icon'),
345
+ menuMinWidth: num(p, 'menuMinWidth') || 180, mobile: opt(p, 'mobile'), disabled: bool(p, 'disabled'), loading: bool(p, 'loading'), dropdownAriaLabel: opt(p, 'dropdownAriaLabel'),
346
+ }),
347
+ ]));
348
+ },
349
+ 'filter-chip': async () => {
350
+ const { PoadFilterChip } = await import('@poadio/ui-vue/filter-chip');
351
+ return model('PoadItemFilterChip', (p) => bool(p, 'active'), (p, _ctx, v) => h('div', { class: 'poad-front__center-v is-fit' }, [
352
+ el(PoadFilterChip, {
353
+ label: str(p, 'label'), value: str(p, 'value'), icon: opt(p, 'icon'), removable: bool(p, 'removable'), disabled: bool(p, 'disabled'),
354
+ active: v.value, onClick: () => (v.value = !v.value), onRemove: () => (v.value = false),
355
+ }),
356
+ ]));
357
+ },
358
+ // ---------------------------------------------------------------- Éditeurs
359
+ code: async () => {
360
+ const { PoadCodeEditor, providePoadMonaco } = await import('@poadio/ui-vue/code-editor');
361
+ if (monacoBaseUrl)
362
+ providePoadMonaco({ baseUrl: monacoBaseUrl });
363
+ return model('PoadItemCode', (p) => str(p, 'value'), (p, _ctx, v) => el(PoadCodeEditor, {
364
+ 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'),
365
+ height: '100%', class: 'poad-front__fill', ...bind(v),
366
+ }));
367
+ },
368
+ json: async () => {
369
+ const { PoadJsonEditor } = await import('@poadio/ui-vue/json-editor');
370
+ return model('PoadItemJson', (p) => str(p, 'value'), (p, _ctx, v) => 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) }));
371
+ },
372
+ 'block-editor': async () => {
373
+ const { PoadBlockEditor } = await import('@poadio/ui-vue/block-editor');
374
+ return model('PoadItemBlockEditor', () => null, (p, ctx, v) => {
375
+ const levels = list(p, 'headerLevels').map(Number);
376
+ return el(PoadBlockEditor, {
377
+ placeholder: opt(p, 'placeholder'), maxWidth: opt(p, 'maxWidth'), headerLevels: levels.length ? levels : undefined,
378
+ // Sur le canevas, le curseur n'est jamais volé au designer
379
+ autofocus: bool(p, 'autofocus') && !ctx.canvas,
380
+ disabled: bool(p, 'disabled'), readonly: bool(p, 'readonly'), ariaLabel: opt(p, 'ariaLabel'), minHeight: '100%', class: 'poad-front__fill', ...bind(v),
381
+ });
382
+ });
383
+ },
384
+ 'block-view': async () => {
385
+ const { PoadBlockView } = await import('@poadio/ui-vue/block-view');
386
+ return view('PoadItemBlockView', (p) => el(PoadBlockView, {
387
+ 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 } }))] },
388
+ externalLinksInNewTab: bool(p, 'externalLinksInNewTab'),
389
+ class: 'poad-front__fill',
390
+ }));
181
391
  },
182
392
  // ---------------------------------------------------------------- Données
183
393
  table: async () => {
@@ -185,145 +395,260 @@ export const ITEM_LOADERS = {
185
395
  return view('PoadItemTable', (p) => el(PoadTable, {
186
396
  value: [],
187
397
  columns: list(p, 'columns').map((c, i) => ({ field: `c${i}`, header: c })),
188
- emptyMessage: str(p, 'emptyMessage') || undefined,
189
- paginator: bool(p, 'paginator'),
190
- striped: bool(p, 'striped'),
191
- // Sans source de données, la barre n'aurait qu'un compteur à 0 : elle reviendra avec la liaison au store
192
- showToolbar: false,
398
+ title: opt(p, 'title'), emptyMessage: opt(p, 'emptyMessage'), emptyHint: opt(p, 'emptyHint'), emptyIcon: str(p, 'emptyIcon'), searchPlaceholder: opt(p, 'searchPlaceholder'),
399
+ exportFilename: str(p, 'exportFilename') || 'export', currentPageReportTemplate: opt(p, 'currentPageReportTemplate'),
400
+ striped: bool(p, 'striped'), dense: bool(p, 'dense'), hoverable: bool(p, 'hoverable'), bordered: bool(p, 'bordered'), borderless: bool(p, 'borderless'),
401
+ stickyHeader: bool(p, 'stickyHeader'), stickyFirstColumn: bool(p, 'stickyFirstColumn'), showRowNumber: bool(p, 'showRowNumber'), scrollHeight: opt(p, 'scrollHeight'),
402
+ responsive: opt(p, 'responsive'), stackAt: num(p, 'stackAt'),
403
+ // Sans source de données, la barre n'aurait qu'un compteur à 0 : décochée par défaut (`showToolbar`)
404
+ showToolbar: bool(p, 'showToolbar'), showCount: bool(p, 'showCount'), showSearch: bool(p, 'showSearch'), showExport: bool(p, 'showExport'), showDensityToggle: bool(p, 'showDensityToggle'),
405
+ columnToggle: bool(p, 'columnToggle'), columnMenu: bool(p, 'columnMenu'), resizableColumns: bool(p, 'resizableColumns'), reorderableColumns: bool(p, 'reorderableColumns'),
406
+ sortMode: opt(p, 'sortMode'), defaultSortOrder: numChoice(p, 'defaultSortOrder'), selectionMode: orNull(p, 'selectionMode'), selectAll: bool(p, 'selectAll'), metaKeySelection: bool(p, 'metaKeySelection'),
407
+ paginator: bool(p, 'paginator'), rows: num(p, 'rows') || 25, pageLinks: num(p, 'pageLinks') || 5, showCurrentPageReport: bool(p, 'showCurrentPageReport'),
408
+ showFirstLastIcon: bool(p, 'showFirstLastIcon'), alwaysShowPaginator: bool(p, 'alwaysShowPaginator'),
193
409
  class: 'poad-front__fill',
194
410
  }));
195
411
  },
196
412
  dataview: async () => {
197
413
  const { PoadDataview } = await import('@poadio/ui-vue/dataview');
198
- return view('PoadItemDataview', (p) => el(PoadDataview, { value: [], layout: str(p, 'layout'), emptyMessage: str(p, 'emptyMessage') || undefined, class: 'poad-front__fill' }));
414
+ return view('PoadItemDataview', (p) => el(PoadDataview, {
415
+ value: [], layout: str(p, 'layout'), emptyMessage: opt(p, 'emptyMessage'), gridMin: opt(p, 'gridMin'), showLayoutSwitch: bool(p, 'showLayoutSwitch'),
416
+ paginator: bool(p, 'paginator'), rows: num(p, 'rows') || 12, alwaysShowPaginator: bool(p, 'alwaysShowPaginator'), class: 'poad-front__fill',
417
+ }));
199
418
  },
200
419
  tree: async () => {
201
420
  const { PoadTree } = await import('@poadio/ui-vue/tree');
202
- return view('PoadItemTree', (p) => el(PoadTree, { value: list(p, 'nodes').map((l, i) => ({ key: String(i), label: l })), dataKey: 'key' }));
421
+ return view('PoadItemTree', (p) => el(PoadTree, {
422
+ value: list(p, 'nodes').map((l, i) => ({ key: String(i), label: l })), dataKey: 'key',
423
+ filterPlaceholder: opt(p, 'filterPlaceholder'), emptyMessage: opt(p, 'emptyMessage'), emptyFilterMessage: opt(p, 'emptyFilterMessage'), indent: opt(p, 'indent'), showLines: bool(p, 'showLines'),
424
+ selectionMode: orNull(p, 'selectionMode'), selectionPropagation: opt(p, 'selectionPropagation'), toggleOnClick: bool(p, 'toggleOnClick'), filter: bool(p, 'filter'), ariaLabel: opt(p, 'ariaLabel'),
425
+ }));
203
426
  },
204
427
  paginator: async () => {
205
428
  const { PoadPaginator } = await import('@poadio/ui-vue/paginator');
206
- 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) => (v.value = x) }));
429
+ return model('PoadItemPaginator', () => ({ first: 0, rows: 0 }), (p, _ctx, v) => el(PoadPaginator, {
430
+ totalRecords: num(p, 'totalRecords'), rows: v.value.rows || num(p, 'rows') || 10,
431
+ // Sans le choix, une liste vide (pas de liste) ; avec, celle du composant
432
+ rowsPerPageOptions: bool(p, 'showRowsPerPage') ? undefined : [], rowsPerPageLabel: opt(p, 'rowsPerPageLabel'),
433
+ currentPageReportTemplate: opt(p, 'currentPageReportTemplate'), pageLinks: num(p, 'pageLinks') || 5, showPageLinks: bool(p, 'showPageLinks'), showCurrentPageReport: bool(p, 'showCurrentPageReport'),
434
+ showFirstLastIcon: bool(p, 'showFirstLastIcon'), alwaysShow: bool(p, 'alwaysShow'),
435
+ first: v.value.first, 'onUpdate:first': (x) => (v.value = { ...v.value, first: x }), 'onUpdate:rows': (x) => (v.value = { ...v.value, rows: x }),
436
+ }));
207
437
  },
208
438
  chart: async () => {
209
439
  const { PoadChart } = await import('@poadio/ui-vue/chart');
210
440
  return view('PoadItemChart', (p) => el(PoadChart, {
211
441
  type: str(p, 'chartType'),
212
442
  data: { labels: list(p, 'labels'), datasets: [{ label: str(p, 'series'), data: list(p, 'values').map((v) => Number(v.replace(',', '.')) || 0) }] },
443
+ themed: bool(p, 'themed'), showTable: bool(p, 'showTable'), tableToggle: bool(p, 'tableToggle'), accessibleTable: bool(p, 'accessibleTable'), ariaLabel: opt(p, 'ariaLabel'),
213
444
  height: '100%',
214
445
  class: 'poad-front__fill',
215
446
  }));
216
447
  },
217
448
  meter: async () => {
218
449
  const { PoadMeter } = await import('@poadio/ui-vue/meter');
219
- 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') })]));
450
+ return view('PoadItemMeter', (p) => h('div', { class: 'poad-front__center-v' }, [
451
+ el(PoadMeter, {
452
+ values: [{ label: str(p, 'label') || '—', value: num(p, 'value'), ...(cssColor(p, 'color') ? { color: cssColor(p, 'color') } : {}) }],
453
+ 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'),
454
+ showLabels: bool(p, 'showLabels'), showRemaining: bool(p, 'showRemaining'), ariaLabel: opt(p, 'ariaLabel'),
455
+ }),
456
+ ]));
220
457
  },
221
458
  progress: async () => {
222
459
  const { PoadProgress } = await import('@poadio/ui-vue/progress');
223
- 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') })]));
460
+ return view('PoadItemProgress', (p) => h('div', { class: 'poad-front__center-v' }, [
461
+ el(PoadProgress, {
462
+ 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'),
463
+ striped: bool(p, 'striped'), indeterminate: bool(p, 'indeterminate'), ariaLabel: opt(p, 'ariaLabel'),
464
+ }),
465
+ ]));
224
466
  },
225
467
  timeline: async () => {
226
468
  const { PoadTimeline } = await import('@poadio/ui-vue/timeline');
227
- return view('PoadItemTimeline', (p) => el(PoadTimeline, { events: list(p, 'events').map((l) => ({ label: l })), layout: str(p, 'layout'), activeIndex: 0 }));
469
+ return view('PoadItemTimeline', (p) => el(PoadTimeline, { events: asItems(p, 'events'), layout: str(p, 'layout'), align: opt(p, 'align'), dense: bool(p, 'dense'), activeIndex: onum(p, 'activeIndex') ?? null }));
228
470
  },
229
471
  orgchart: async () => {
230
472
  const { PoadOrgchart } = await import('@poadio/ui-vue/orgchart');
231
- return view('PoadItemOrgchart', (p) => 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' }));
473
+ return view('PoadItemOrgchart', (p) => el(PoadOrgchart, {
474
+ value: [{ key: 'root', data: { label: str(p, 'root') }, children: list(p, 'children').map((l, i) => ({ key: `n${i}`, data: { label: l } })) }],
475
+ orientation: opt(p, 'orientation'), nodeWidth: opt(p, 'nodeWidth'), compact: tri(p, 'compact') ?? 'auto', compactAt: num(p, 'compactAt'), collapsible: bool(p, 'collapsible'),
476
+ zoomable: bool(p, 'zoomable'), selectionMode: orNull(p, 'selectionMode'), ariaLabel: opt(p, 'ariaLabel'),
477
+ class: 'poad-front__fill',
478
+ }));
479
+ },
480
+ // ---------------------------------------------------------------- Carte (maplibre chargé à la demande, son propre morceau)
481
+ map: async () => {
482
+ const { PoadMap } = await import('@poadio/ui-vue/map');
483
+ return view('PoadItemMap', (p) => el(PoadMap, {
484
+ basemap: str(p, 'basemap') || 'ign-plan', overlays: list(p, 'overlays'), overlayOpacity: num(p, 'overlayOpacity'), followTheme: bool(p, 'followTheme'),
485
+ controls: list(p, 'controls'), controlPosition: opt(p, 'controlPosition'), scalePosition: opt(p, 'scalePosition'),
486
+ zoom: num(p, 'zoom'), bearing: num(p, 'bearing'), pitch: num(p, 'pitch'), minZoom: num(p, 'minZoom'), maxZoom: num(p, 'maxZoom') || 20,
487
+ interactive: bool(p, 'interactive'), cooperativeGestures: bool(p, 'cooperativeGestures'), ariaLabel: opt(p, 'ariaLabel'),
488
+ center: [2.4, 46.6], class: 'poad-front__fill',
489
+ }));
232
490
  },
233
491
  // ---------------------------------------------------------------- Planification (sans données : la liaison viendra avec le store)
234
492
  calendar: async () => {
235
493
  const { PoadCalendar } = await import('@poadio/ui-vue/calendar');
236
- return view('PoadItemCalendar', (p) => el(PoadCalendar, { view: str(p, 'view'), class: 'poad-front__fill' }));
494
+ return view('PoadItemCalendar', (p) => el(PoadCalendar, {
495
+ 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'),
496
+ firstDay: numChoice(p, 'firstDay') ?? null, dayStart: num(p, 'dayStart'), dayEnd: num(p, 'dayEnd') || 20, editable: bool(p, 'editable'), snap: num(p, 'snap') || 15,
497
+ class: 'poad-front__fill',
498
+ }));
237
499
  },
238
500
  scheduler: async () => {
239
501
  const { PoadScheduler } = await import('@poadio/ui-vue/scheduler');
240
- return view('PoadItemScheduler', (p) => el(PoadScheduler, { scale: str(p, 'scale'), class: 'poad-front__fill' }));
502
+ return view('PoadItemScheduler', (p) => el(PoadScheduler, {
503
+ 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'),
504
+ showUnplanned: bool(p, 'showUnplanned'), firstDay: numChoice(p, 'firstDay') ?? 1, dayStart: num(p, 'dayStart'), dayEnd: num(p, 'dayEnd') || 19, editable: bool(p, 'editable'),
505
+ snap: num(p, 'snap') || 30, class: 'poad-front__fill',
506
+ }));
241
507
  },
242
508
  gantt: async () => {
243
509
  const { PoadGantt } = await import('@poadio/ui-vue/gantt');
244
- return view('PoadItemGantt', (p) => el(PoadGantt, { scale: str(p, 'scale'), class: 'poad-front__fill' }));
510
+ return view('PoadItemGantt', (p) => el(PoadGantt, {
511
+ scale: str(p, 'scale'), emptyText: opt(p, 'emptyText'), taskColumnWidth: opt(p, 'taskColumnWidth'), tickWidth: onum(p, 'tickWidth') ?? null, showNow: bool(p, 'showNow'),
512
+ showUnplanned: bool(p, 'showUnplanned'), firstDay: numChoice(p, 'firstDay') ?? 1, editable: bool(p, 'editable'), class: 'poad-front__fill',
513
+ }));
245
514
  },
246
515
  taskboard: async () => {
247
516
  const { PoadTaskboard } = await import('@poadio/ui-vue/taskboard');
248
- return view('PoadItemTaskboard', (p) => el(PoadTaskboard, { mode: str(p, 'mode'), class: 'poad-front__fill' }));
517
+ return view('PoadItemTaskboard', (p) => 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' }));
249
518
  },
250
519
  // ---------------------------------------------------------------- Navigation
251
520
  menubar: async () => {
252
521
  const { PoadMenubar } = await import('@poadio/ui-vue/menubar');
253
522
  return view('PoadItemMenubar', (p, ctx) => {
254
523
  const nav = fromPages(p, ctx);
524
+ const common = { breakpoint: str(p, 'breakpoint') === 'never' ? '' : str(p, 'breakpoint') || 'md', openOnHover: bool(p, 'openOnHover'), ariaLabel: opt(p, 'ariaLabel') ?? ctx.t('item.menu') };
255
525
  const bar = nav
256
- ? 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') })
257
- : el(PoadMenubar, { items: list(p, 'items').map((l) => ({ label: l })), ariaLabel: ctx.t('item.menu') });
526
+ ? 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 })
527
+ : el(PoadMenubar, { items: asItems(p, 'items'), ...common });
258
528
  return h('div', { class: 'poad-front__center-v' }, [bar]);
259
529
  });
260
530
  },
261
531
  breadcrumb: async () => {
262
532
  const { PoadBreadcrumb } = await import('@poadio/ui-vue/breadcrumb');
263
- return view('PoadItemBreadcrumb', (p) => h('div', { class: 'poad-front__center-v' }, [el(PoadBreadcrumb, { items: list(p, 'items').map((l) => ({ label: l })) })]));
533
+ return view('PoadItemBreadcrumb', (p) => h('div', { class: 'poad-front__center-v' }, [el(PoadBreadcrumb, { items: asItems(p, 'items'), separatorIcon: opt(p, 'separatorIcon'), maxItems: num(p, 'maxItems') })]));
264
534
  },
265
535
  'bottom-nav': async () => {
266
536
  const { PoadBottomNav } = await import('@poadio/ui-vue/bottom-nav');
267
537
  const icons = ['home', 'search', 'user', 'settings', 'bell'];
268
538
  return model('PoadItemBottomNav', () => '0', (p, ctx, v) => {
269
539
  const nav = fromPages(p, ctx);
540
+ const common = {
541
+ labels: opt(p, 'labels'), maxItems: num(p, 'maxItems') || 5, breakpoint: opt(p, 'breakpoint'), alwaysShow: bool(p, 'alwaysShow'),
542
+ ariaLabel: opt(p, 'ariaLabel') ?? ctx.t('item.menu'), class: 'poad-front__inline-nav',
543
+ };
270
544
  return nav
271
545
  ? el(PoadBottomNav, {
272
546
  items: nav.pages.map((pg, i) => ({ value: pg.id, label: pg.title, icon: icons[i % icons.length] })),
273
547
  modelValue: nav.current,
274
548
  'onUpdate:modelValue': (id) => nav.go(id),
275
- alwaysShow: true, ariaLabel: ctx.t('item.menu'), class: 'poad-front__inline-nav',
549
+ ...common,
276
550
  })
277
- : 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) });
551
+ : el(PoadBottomNav, { items: list(p, 'items').map((l, i) => ({ value: String(i), label: l, icon: icons[i % icons.length] })), ...common, ...bind(v) });
278
552
  });
279
553
  },
280
554
  'speed-dial': async () => {
281
555
  const { PoadSpeedDial } = await import('@poadio/ui-vue/speed-dial');
282
556
  const icons = ['pencil', 'share', 'trash'];
283
- 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') })]));
557
+ return view('PoadItemSpeedDial', (p, ctx) => h('div', { class: 'poad-front__center' }, [
558
+ el(PoadSpeedDial, {
559
+ items: list(p, 'items').map((l, i) => ({ label: l, icon: icons[i % icons.length] })), direction: str(p, 'direction'), type: opt(p, 'type'),
560
+ 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'),
561
+ ariaLabel: opt(p, 'ariaLabel') ?? ctx.t('item.actions'),
562
+ }),
563
+ ]));
564
+ },
565
+ 'nav-drawer': async () => {
566
+ const { PoadNavDrawer } = await import('@poadio/ui-vue/nav-drawer');
567
+ const icons = ['layout-dashboard', 'home', 'users', 'settings', 'file-text'];
568
+ return model('PoadItemNavDrawer', (p) => list(p, 'items')[0] ?? null, (p, ctx, v) => el(PoadNavDrawer, {
569
+ items: list(p, 'items').map((l, i) => ({ value: l, label: l, icon: icons[i % icons.length] })), title: str(p, 'title'), icon: str(p, 'icon'),
570
+ mode: str(p, 'mode') || 'permanent', position: opt(p, 'position'), breakpoint: opt(p, 'breakpoint'),
571
+ closeOnNavigate: bool(p, 'closeOnNavigate'), closeOnEscape: bool(p, 'closeOnEscape'), dismissableScrim: bool(p, 'dismissableScrim'),
572
+ ariaLabel: opt(p, 'ariaLabel') ?? ctx.t('item.menu'), class: 'poad-front__fill', ...bind(v),
573
+ }));
574
+ },
575
+ 'scroll-top': async () => {
576
+ const { PoadScrollTop } = await import('@poadio/ui-vue/scroll-top');
577
+ // Sur le canevas, le bouton se montre à sa place ; en vrai, il paraît en bas de l'écran après le seuil
578
+ return view('PoadItemScrollTop', (p, ctx) => h('div', { class: ['poad-front__center', ctx.canvas && 'poad-front__scrolltop-canvas'] }, [
579
+ el(PoadScrollTop, { threshold: ctx.canvas ? 0 : num(p, 'threshold'), icon: opt(p, 'icon'), behavior: opt(p, 'behavior'), ariaLabel: opt(p, 'ariaLabel') }),
580
+ ]));
284
581
  },
285
582
  // ---------------------------------------------------------------- Affichage
286
- heading: async () => 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'))),
287
- text: async () => view('PoadItemText', (p) => h('p', { class: 'poad-front__text', style: { textAlign: str(p, 'align') || 'left' } }, str(p, 'text'))),
583
+ heading: async () => view('PoadItemHeading', (p) => 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'))),
584
+ text: async () => view('PoadItemText', (p) => h('p', { class: 'poad-front__text', style: { textAlign: str(p, 'align') || 'left', color: cssColor(p, 'color') } }, str(p, 'text'))),
288
585
  image: async () => {
289
- const [{ PoadImage }, { PoadIcon }] = await Promise.all([import('@poadio/ui-vue/image'), import('@poadio/ui-vue/icon')]);
586
+ const [{ PoadImage }, { PoadIcon }] = await Promise.all([import('@poadio/ui-vue/image'), ui.icon()]);
290
587
  return view('PoadItemImage', (p, ctx) => str(p, 'src')
291
- ? 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' })
588
+ ? el(PoadImage, {
589
+ 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'),
590
+ width: '100%', height: '100%', class: 'poad-front__fill',
591
+ })
292
592
  : 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'))]));
293
593
  },
294
594
  avatar: async () => {
295
595
  const { PoadAvatar } = await import('@poadio/ui-vue/avatar');
296
- return view('PoadItemAvatar', (p) => h('div', { class: 'poad-front__center' }, [el(PoadAvatar, { text: str(p, 'text'), size: str(p, 'size'), shape: str(p, 'shape') })]));
596
+ return view('PoadItemAvatar', (p) => 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') })]));
597
+ },
598
+ 'avatar-group': async () => {
599
+ const { PoadAvatar, PoadAvatarGroup } = await import('@poadio/ui-vue/avatar');
600
+ return view('PoadItemAvatarGroup', (p) => h('div', { class: 'poad-front__center' }, [
601
+ el(PoadAvatarGroup, { max: num(p, 'max') || undefined, size: opt(p, 'size'), moreColor: cssColor(p, 'moreColor') }, () => list(p, 'names').map((n) => el(PoadAvatar, { key: n, text: n, shape: opt(p, 'shape') }))),
602
+ ]));
603
+ },
604
+ spinner: async () => {
605
+ const { PoadSpinner } = await import('@poadio/ui-vue/progress');
606
+ return view('PoadItemSpinner', (p) => 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') })]));
297
607
  },
298
608
  badge: async () => {
299
609
  const { PoadBadge } = await import('@poadio/ui-vue/badge');
300
- return view('PoadItemBadge', (p) => h('div', { class: 'poad-front__center-v is-fit' }, [el(PoadBadge, { value: str(p, 'value'), severity: str(p, 'severity') })]));
610
+ return view('PoadItemBadge', (p) => 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') })]));
301
611
  },
302
612
  tag: async () => {
303
613
  const { PoadTag } = await import('@poadio/ui-vue/tag');
304
- 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') })]));
614
+ return view('PoadItemTag', (p) => 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') })]));
305
615
  },
306
616
  chip: async () => {
307
617
  const { PoadChip } = await import('@poadio/ui-vue/chip');
308
- return view('PoadItemChip', (p) => h('div', { class: 'poad-front__center-v is-fit' }, [el(PoadChip, { label: str(p, 'label'), removable: bool(p, 'removable') })]));
618
+ return view('PoadItemChip', (p) => h('div', { class: 'poad-front__center-v is-fit' }, [
619
+ el(PoadChip, {
620
+ label: str(p, 'label'), avatarText: opt(p, 'avatarText'), icon: opt(p, 'icon'), severity: orNull(p, 'severity'), size: opt(p, 'size'), removable: bool(p, 'removable'),
621
+ clickable: bool(p, 'clickable'), selected: bool(p, 'selected'), disabled: bool(p, 'disabled'),
622
+ }),
623
+ ]));
309
624
  },
310
625
  carousel: async () => {
311
626
  const { PoadCarousel } = await import('@poadio/ui-vue/carousel');
312
- return view('PoadItemCarousel', (p) => el(PoadCarousel, { items: list(p, 'slides'), numVisible: num(p, 'numVisible') || 1, class: 'poad-front__fill' }, { item: ({ item }) => h('div', { class: 'poad-front__slide' }, item) }));
627
+ return view('PoadItemCarousel', (p) => el(PoadCarousel, {
628
+ items: list(p, 'slides'), numVisible: num(p, 'numVisible') || 1, numScroll: num(p, 'numScroll') || 1, orientation: opt(p, 'orientation'), showIndicators: bool(p, 'showIndicators'),
629
+ showNavigators: bool(p, 'showNavigators'), circular: bool(p, 'circular'), autoplay: num(p, 'autoplay'), ariaLabel: opt(p, 'ariaLabel'), class: 'poad-front__fill',
630
+ }, { item: ({ item }) => h('div', { class: 'poad-front__slide' }, item) }));
313
631
  },
314
632
  icon: async () => {
315
- const { PoadIcon } = await import('@poadio/ui-vue/icon');
316
- return view('PoadItemIcon', (p) => h('div', { class: 'poad-front__center' }, [el(PoadIcon, { name: str(p, 'name') || 'star', size: num(p, 'size') || 24 })]));
633
+ const { PoadIcon } = await ui.icon();
634
+ // La couleur d'une icône est celle du texte autour (`currentColor`)
635
+ return view('PoadItemIcon', (p) => h('div', { class: 'poad-front__center', style: { color: cssColor(p, 'color') } }, [
636
+ el(PoadIcon, {
637
+ name: str(p, 'name') || 'star', size: num(p, 'size') || 24, strokeWidth: num(p, 'strokeWidth') || 2, filled: bool(p, 'filled'), flip: orNull(p, 'flip') ?? undefined,
638
+ rotate: num(p, 'rotate') || undefined, spin: bool(p, 'spin'), label: opt(p, 'label'),
639
+ }),
640
+ ]));
317
641
  },
318
642
  message: async () => {
319
643
  const { PoadMessage } = await import('@poadio/ui-vue/message');
320
- return view('PoadItemMessage', (p) => el(PoadMessage, { severity: str(p, 'severity'), text: str(p, 'text') }));
644
+ return view('PoadItemMessage', (p) => 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') }));
321
645
  },
322
646
  skeleton: async () => {
323
647
  const { PoadSkeleton } = await import('@poadio/ui-vue/skeleton');
324
648
  return view('PoadItemSkeleton', (p) => {
325
649
  const shape = str(p, 'shape') || 'text';
326
- return el(PoadSkeleton, shape === 'text' ? { shape, lines: num(p, 'lines') || 3 } : { shape, width: shape === 'circle' ? '48px' : '100%', height: shape === 'circle' ? '48px' : '100%' });
650
+ const look = { animation: bool(p, 'animation') };
651
+ 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 });
327
652
  });
328
653
  },
329
654
  };
@@ -345,8 +670,21 @@ export const ITEM_STYLES = {
345
670
  gantt: ['gantt', 'popover', 'segmented', 'dialog', 'menu', 'select', 'option-list', 'datepicker', 'skeleton'],
346
671
  taskboard: ['taskboard', 'popover', 'segmented', 'dialog', 'menu', 'avatar', 'select', 'option-list', 'skeleton'],
347
672
  menubar: ['menubar', 'menu', 'popover'], breadcrumb: ['breadcrumb', 'menu', 'popover'], 'bottom-nav': ['bottom-nav', 'badge'], 'speed-dial': ['speed-dial', 'tooltip'],
673
+ multiselect: ['multiselect', 'option-list', 'popover', 'chip', 'checkbox'], picklist: ['picklist', 'orderlist', 'checkbox'], orderlist: ['orderlist'],
674
+ inplace: ['inplace'], 'split-button': ['button-group', 'menu', 'popover'], 'filter-chip': ['filter-chip'],
675
+ code: ['code-editor', 'tooltip'], json: ['json-editor', 'tooltip'], 'block-editor': ['block-editor', 'block-view', 'menu', 'dialog', 'popover', 'tooltip'], 'block-view': ['block-view'],
676
+ map: ['map', 'maplibre-gl', 'popover', 'menu', 'tooltip'], 'nav-drawer': ['nav-drawer', 'sheet', 'badge'], 'scroll-top': ['scroll-top'], 'avatar-group': ['avatar'], spinner: ['progress'],
348
677
  heading: [], text: [], image: ['image'], avatar: ['avatar'], badge: ['badge'], tag: [], chip: ['chip', 'avatar'], carousel: ['carousel'], icon: [], message: [], skeleton: ['skeleton'],
349
678
  };
679
+ // ------------------------------------------------------------------ ressources du moteur
680
+ /**
681
+ * Où le moteur sert les ressources lourdes chargées à la demande : Monaco (dossier AMD min/vs). Le moteur servi par
682
+ * l'engine le règle (runtime/main.ts) ; une appli qui emploie app-vue directement le règle à son tour.
683
+ */
684
+ let monacoBaseUrl = null;
685
+ export const setMonacoBaseUrl = (url) => {
686
+ monacoBaseUrl = url;
687
+ };
350
688
  // ------------------------------------------------------------------ styles à la demande
351
689
  let styleLoader = null;
352
690
  const loadedStyles = new Set();