@supersoniks/concorde 4.9.98-visual-stack.0 → 4.9.98-visual-stack.2

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 (476) hide show
  1. package/.gitlab-ci.yml +0 -13
  2. package/build-infos.json +1 -1
  3. package/concorde-3d.bundle.js +201 -152
  4. package/concorde-3d.es.js +14688 -13906
  5. package/concorde-core.bundle.js +557 -622
  6. package/concorde-core.es.js +6025 -5575
  7. package/concorde-hugging-face-infer.bundle.js +1 -1
  8. package/concorde-hugging-face-infer.es.js +1 -1
  9. package/concorde-interactive.bundle.js +1162 -0
  10. package/concorde-interactive.es.js +10723 -0
  11. package/concorde-shader.bundle.js +31 -20
  12. package/concorde-shader.es.js +2773 -2547
  13. package/concorde-webgpu.bundle.js +43 -32
  14. package/concorde-webgpu.es.js +1819 -1553
  15. package/dist/concorde-3d.bundle.js +201 -152
  16. package/dist/concorde-3d.es.js +14688 -13906
  17. package/dist/concorde-core.bundle.js +557 -622
  18. package/dist/concorde-core.es.js +6025 -5575
  19. package/dist/concorde-hugging-face-infer.bundle.js +1 -1
  20. package/dist/concorde-hugging-face-infer.es.js +1 -1
  21. package/dist/concorde-interactive.bundle.js +1162 -0
  22. package/dist/concorde-interactive.es.js +10723 -0
  23. package/dist/concorde-shader.bundle.js +31 -20
  24. package/dist/concorde-shader.es.js +2773 -2547
  25. package/dist/concorde-webgpu.bundle.js +43 -32
  26. package/dist/concorde-webgpu.es.js +1819 -1553
  27. package/dist/docs-mock-api-sw.js +5 -1
  28. package/dist/docs-mock-api-sw.js.map +2 -2
  29. package/dist/js/addons/interactive.js +6 -0
  30. package/dist/js/addons/interactive.js.map +1 -0
  31. package/dist/js/core/components/functional/3d/3d.js +90 -2
  32. package/dist/js/core/components/functional/3d/3d.js.map +1 -1
  33. package/dist/js/core/components/functional/3d/constants.js +1 -0
  34. package/dist/js/core/components/functional/3d/constants.js.map +1 -1
  35. package/dist/js/core/components/functional/3d/ensure.js +6 -3
  36. package/dist/js/core/components/functional/3d/ensure.js.map +1 -1
  37. package/dist/js/core/components/functional/3d/form-params.js +2 -0
  38. package/dist/js/core/components/functional/3d/form-params.js.map +1 -1
  39. package/dist/js/core/components/functional/3d/life.js +2 -1
  40. package/dist/js/core/components/functional/3d/life.js.map +1 -1
  41. package/dist/js/core/components/functional/3d/out-publish.js +3 -2
  42. package/dist/js/core/components/functional/3d/out-publish.js.map +1 -1
  43. package/dist/js/core/components/functional/3d/playback.js +6 -1
  44. package/dist/js/core/components/functional/3d/playback.js.map +1 -1
  45. package/dist/js/core/components/functional/3d/post-bind.js +207 -0
  46. package/dist/js/core/components/functional/3d/post-bind.js.map +1 -0
  47. package/dist/js/core/components/functional/3d/post-channels.js +39 -0
  48. package/dist/js/core/components/functional/3d/post-channels.js.map +1 -0
  49. package/dist/js/core/components/functional/3d/post-fx.js +495 -0
  50. package/dist/js/core/components/functional/3d/post-fx.js.map +1 -0
  51. package/dist/js/core/components/functional/3d/props.js +142 -0
  52. package/dist/js/core/components/functional/3d/props.js.map +1 -1
  53. package/dist/js/core/components/functional/3d/reload.js +2 -0
  54. package/dist/js/core/components/functional/3d/reload.js.map +1 -1
  55. package/dist/js/core/components/functional/3d/runtime.js +80 -3
  56. package/dist/js/core/components/functional/3d/runtime.js.map +1 -1
  57. package/dist/js/core/components/functional/3d/scene-runtime.js +1 -1
  58. package/dist/js/core/components/functional/3d/scene-runtime.js.map +1 -1
  59. package/dist/js/core/components/functional/3d/tune.js +21 -0
  60. package/dist/js/core/components/functional/3d/tune.js.map +1 -1
  61. package/dist/js/core/components/functional/3d/updated.js +13 -1
  62. package/dist/js/core/components/functional/3d/updated.js.map +1 -1
  63. package/dist/js/core/components/functional/if/if.js +65 -7
  64. package/dist/js/core/components/functional/if/if.js.map +1 -1
  65. package/dist/js/core/components/functional/interactive/action.js +96 -0
  66. package/dist/js/core/components/functional/interactive/action.js.map +1 -0
  67. package/dist/js/core/components/functional/interactive/gamepad.js +206 -0
  68. package/dist/js/core/components/functional/interactive/gamepad.js.map +1 -0
  69. package/dist/js/core/components/functional/interactive/gesture.js +148 -0
  70. package/dist/js/core/components/functional/interactive/gesture.js.map +1 -0
  71. package/dist/js/core/components/functional/interactive/helpers.js +82 -0
  72. package/dist/js/core/components/functional/interactive/helpers.js.map +1 -0
  73. package/dist/js/core/components/functional/interactive/index.js +20 -0
  74. package/dist/js/core/components/functional/interactive/index.js.map +1 -0
  75. package/dist/js/core/components/functional/interactive/keyboard.js +183 -0
  76. package/dist/js/core/components/functional/interactive/keyboard.js.map +1 -0
  77. package/dist/js/core/components/functional/interactive/matrix.js +201 -0
  78. package/dist/js/core/components/functional/interactive/matrix.js.map +1 -0
  79. package/dist/js/core/components/functional/interactive/registry.js +28 -0
  80. package/dist/js/core/components/functional/interactive/registry.js.map +1 -0
  81. package/dist/js/core/components/functional/interactive/store.js +264 -0
  82. package/dist/js/core/components/functional/interactive/store.js.map +1 -0
  83. package/dist/js/core/components/functional/interactive/ticker.js +182 -0
  84. package/dist/js/core/components/functional/interactive/ticker.js.map +1 -0
  85. package/dist/js/core/components/functional/shader/gl-runtime.js +128 -14
  86. package/dist/js/core/components/functional/shader/gl-runtime.js.map +1 -1
  87. package/dist/js/core/components/functional/shader/shader.js +154 -57
  88. package/dist/js/core/components/functional/shader/shader.js.map +1 -1
  89. package/dist/js/core/components/functional/shader/shadertoy-prelude.js +39 -5
  90. package/dist/js/core/components/functional/shader/shadertoy-prelude.js.map +1 -1
  91. package/dist/js/core/components/functional/shader/types.js +58 -7
  92. package/dist/js/core/components/functional/shader/types.js.map +1 -1
  93. package/dist/js/core/components/functional/value/value.js +49 -4
  94. package/dist/js/core/components/functional/value/value.js.map +1 -1
  95. package/dist/js/core/components/functional/webgpu/gl-fallback.js +27 -6
  96. package/dist/js/core/components/functional/webgpu/gl-fallback.js.map +1 -1
  97. package/dist/js/core/components/functional/webgpu/gpu-runtime.js +115 -13
  98. package/dist/js/core/components/functional/webgpu/gpu-runtime.js.map +1 -1
  99. package/dist/js/core/components/functional/webgpu/helpers.js +8 -2
  100. package/dist/js/core/components/functional/webgpu/helpers.js.map +1 -1
  101. package/dist/js/core/components/functional/webgpu/webgpu.js +34 -1
  102. package/dist/js/core/components/functional/webgpu/webgpu.js.map +1 -1
  103. package/dist/js/core/components/ui/_css/rounded.js +34 -0
  104. package/dist/js/core/components/ui/_css/rounded.js.map +1 -0
  105. package/dist/js/core/components/ui/_css/type.js +44 -0
  106. package/dist/js/core/components/ui/_css/type.js.map +1 -1
  107. package/dist/js/core/components/ui/_i18n/ui-aria-labels.js +95 -0
  108. package/dist/js/core/components/ui/_i18n/ui-aria-labels.js.map +1 -0
  109. package/dist/js/core/components/ui/alert/alert.js +72 -87
  110. package/dist/js/core/components/ui/alert/alert.js.map +1 -1
  111. package/dist/js/core/components/ui/alert-messages/alert-messages.js +1 -0
  112. package/dist/js/core/components/ui/alert-messages/alert-messages.js.map +1 -1
  113. package/dist/js/core/components/ui/badge/badge.js +29 -80
  114. package/dist/js/core/components/ui/badge/badge.js.map +1 -1
  115. package/dist/js/core/components/ui/button/button.js +8 -7
  116. package/dist/js/core/components/ui/button/button.js.map +1 -1
  117. package/dist/js/core/components/ui/card/card-header.js +7 -2
  118. package/dist/js/core/components/ui/card/card-header.js.map +1 -1
  119. package/dist/js/core/components/ui/divider/divider.js +1 -1
  120. package/dist/js/core/components/ui/divider/divider.js.map +1 -1
  121. package/dist/js/core/components/ui/form/checkbox/checkbox.js +4 -20
  122. package/dist/js/core/components/ui/form/checkbox/checkbox.js.map +1 -1
  123. package/dist/js/core/components/ui/form/fieldset/legend-description.js +1 -1
  124. package/dist/js/core/components/ui/form/fieldset/legend.js +1 -1
  125. package/dist/js/core/components/ui/form/input/input.js +12 -15
  126. package/dist/js/core/components/ui/form/input/input.js.map +1 -1
  127. package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js +363 -158
  128. package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js.map +1 -1
  129. package/dist/js/core/components/ui/form/radio/radio.js +1 -1
  130. package/dist/js/core/components/ui/form/select/select.js +3 -6
  131. package/dist/js/core/components/ui/form/select/select.js.map +1 -1
  132. package/dist/js/core/components/ui/form/textarea/textarea.js +1 -2
  133. package/dist/js/core/components/ui/form/textarea/textarea.js.map +1 -1
  134. package/dist/js/core/components/ui/image/image.js +9 -37
  135. package/dist/js/core/components/ui/image/image.js.map +1 -1
  136. package/dist/js/core/components/ui/link/link.js +25 -26
  137. package/dist/js/core/components/ui/link/link.js.map +1 -1
  138. package/dist/js/core/components/ui/modal/modal-close.js +3 -12
  139. package/dist/js/core/components/ui/modal/modal-close.js.map +1 -1
  140. package/dist/js/core/components/ui/modal/modal.js +18 -18
  141. package/dist/js/core/components/ui/modal/modal.js.map +1 -1
  142. package/dist/js/core/components/ui/pop/pop.js +131 -112
  143. package/dist/js/core/components/ui/pop/pop.js.map +1 -1
  144. package/dist/js/core/components/ui/table/table.js.map +1 -1
  145. package/dist/js/core/components/ui/theme/theme.js +1 -1
  146. package/dist/js/core/components/ui/toast/dismissed.js +9 -0
  147. package/dist/js/core/components/ui/toast/dismissed.js.map +1 -0
  148. package/dist/js/core/components/ui/toast/render-content.js +14 -0
  149. package/dist/js/core/components/ui/toast/render-content.js.map +1 -0
  150. package/dist/js/core/components/ui/toast/toast-item.js +150 -96
  151. package/dist/js/core/components/ui/toast/toast-item.js.map +1 -1
  152. package/dist/js/core/components/ui/toast/toast.js +41 -13
  153. package/dist/js/core/components/ui/toast/toast.js.map +1 -1
  154. package/dist/js/core/components/ui/tooltip/tooltip.js +144 -143
  155. package/dist/js/core/components/ui/tooltip/tooltip.js.map +1 -1
  156. package/dist/js/core/decorators/subscriber/ancestorAttribute.js.map +1 -1
  157. package/dist/js/core/decorators/subscriber/derive.js +3 -1
  158. package/dist/js/core/decorators/subscriber/derive.js.map +1 -1
  159. package/dist/js/core/mixins/Fetcher.js.map +1 -1
  160. package/dist/js/core/mixins/FormCheckable.js +1 -8
  161. package/dist/js/core/mixins/FormCheckable.js.map +1 -1
  162. package/dist/js/core/mixins/FormElement.js +26 -53
  163. package/dist/js/core/mixins/FormElement.js.map +1 -1
  164. package/dist/js/core/utils/AncestorAttributeObserver.js +130 -55
  165. package/dist/js/core/utils/AncestorAttributeObserver.js.map +1 -1
  166. package/dist/js/core/utils/LocationHandler.js +1 -1
  167. package/dist/js/core/utils/LocationHandler.js.map +1 -1
  168. package/dist/js/core/utils/dismissed.js +23 -0
  169. package/dist/js/core/utils/dismissed.js.map +1 -0
  170. package/dist/js/core/utils/mediaRef.js +37 -0
  171. package/dist/js/core/utils/mediaRef.js.map +1 -1
  172. package/dist/js/core/utils/positioning.js +110 -0
  173. package/dist/js/core/utils/positioning.js.map +1 -0
  174. package/dist/js/directives.js +1 -2
  175. package/dist/js/directives.js.map +1 -1
  176. package/dist/types/addons/interactive.d.ts +6 -0
  177. package/dist/types/addons/interactive.d.ts.map +1 -0
  178. package/dist/types/core/components/functional/3d/3d.d.ts +26 -3
  179. package/dist/types/core/components/functional/3d/3d.d.ts.map +1 -1
  180. package/dist/types/core/components/functional/3d/constants.d.ts +1 -1
  181. package/dist/types/core/components/functional/3d/constants.d.ts.map +1 -1
  182. package/dist/types/core/components/functional/3d/ensure.d.ts +3 -0
  183. package/dist/types/core/components/functional/3d/ensure.d.ts.map +1 -1
  184. package/dist/types/core/components/functional/3d/form-params.d.ts.map +1 -1
  185. package/dist/types/core/components/functional/3d/life.d.ts +2 -0
  186. package/dist/types/core/components/functional/3d/life.d.ts.map +1 -1
  187. package/dist/types/core/components/functional/3d/out-publish.d.ts +1 -0
  188. package/dist/types/core/components/functional/3d/out-publish.d.ts.map +1 -1
  189. package/dist/types/core/components/functional/3d/playback.d.ts +9 -0
  190. package/dist/types/core/components/functional/3d/playback.d.ts.map +1 -1
  191. package/dist/types/core/components/functional/3d/post-bind.d.ts +52 -0
  192. package/dist/types/core/components/functional/3d/post-bind.d.ts.map +1 -0
  193. package/dist/types/core/components/functional/3d/post-channels.d.ts +40 -0
  194. package/dist/types/core/components/functional/3d/post-channels.d.ts.map +1 -0
  195. package/dist/types/core/components/functional/3d/post-fx.d.ts +73 -0
  196. package/dist/types/core/components/functional/3d/post-fx.d.ts.map +1 -0
  197. package/dist/types/core/components/functional/3d/props.d.ts +42 -0
  198. package/dist/types/core/components/functional/3d/props.d.ts.map +1 -1
  199. package/dist/types/core/components/functional/3d/reload.d.ts.map +1 -1
  200. package/dist/types/core/components/functional/3d/runtime.d.ts +16 -1
  201. package/dist/types/core/components/functional/3d/runtime.d.ts.map +1 -1
  202. package/dist/types/core/components/functional/3d/scene-runtime.d.ts +1 -1
  203. package/dist/types/core/components/functional/3d/scene-runtime.d.ts.map +1 -1
  204. package/dist/types/core/components/functional/3d/tune.d.ts +5 -0
  205. package/dist/types/core/components/functional/3d/tune.d.ts.map +1 -1
  206. package/dist/types/core/components/functional/3d/types.d.ts +9 -0
  207. package/dist/types/core/components/functional/3d/types.d.ts.map +1 -1
  208. package/dist/types/core/components/functional/3d/updated.d.ts.map +1 -1
  209. package/dist/types/core/components/functional/if/if.d.ts +14 -5
  210. package/dist/types/core/components/functional/if/if.d.ts.map +1 -1
  211. package/dist/types/core/components/functional/interactive/action.d.ts +22 -0
  212. package/dist/types/core/components/functional/interactive/action.d.ts.map +1 -0
  213. package/dist/types/core/components/functional/interactive/gamepad.d.ts +37 -0
  214. package/dist/types/core/components/functional/interactive/gamepad.d.ts.map +1 -0
  215. package/dist/types/core/components/functional/interactive/gesture.d.ts +26 -0
  216. package/dist/types/core/components/functional/interactive/gesture.d.ts.map +1 -0
  217. package/dist/types/core/components/functional/interactive/helpers.d.ts +23 -0
  218. package/dist/types/core/components/functional/interactive/helpers.d.ts.map +1 -0
  219. package/dist/types/core/components/functional/interactive/index.d.ts +20 -0
  220. package/dist/types/core/components/functional/interactive/index.d.ts.map +1 -0
  221. package/dist/types/core/components/functional/interactive/keyboard.d.ts +37 -0
  222. package/dist/types/core/components/functional/interactive/keyboard.d.ts.map +1 -0
  223. package/dist/types/core/components/functional/interactive/matrix.d.ts +31 -0
  224. package/dist/types/core/components/functional/interactive/matrix.d.ts.map +1 -0
  225. package/dist/types/core/components/functional/interactive/registry.d.ts +23 -0
  226. package/dist/types/core/components/functional/interactive/registry.d.ts.map +1 -0
  227. package/dist/types/core/components/functional/interactive/store.d.ts +46 -0
  228. package/dist/types/core/components/functional/interactive/store.d.ts.map +1 -0
  229. package/dist/types/core/components/functional/interactive/ticker.d.ts +33 -0
  230. package/dist/types/core/components/functional/interactive/ticker.d.ts.map +1 -0
  231. package/dist/types/core/components/functional/shader/gl-runtime.d.ts +33 -1
  232. package/dist/types/core/components/functional/shader/gl-runtime.d.ts.map +1 -1
  233. package/dist/types/core/components/functional/shader/shader.d.ts +28 -7
  234. package/dist/types/core/components/functional/shader/shader.d.ts.map +1 -1
  235. package/dist/types/core/components/functional/shader/shadertoy-prelude.d.ts +16 -2
  236. package/dist/types/core/components/functional/shader/shadertoy-prelude.d.ts.map +1 -1
  237. package/dist/types/core/components/functional/shader/types.d.ts +29 -5
  238. package/dist/types/core/components/functional/shader/types.d.ts.map +1 -1
  239. package/dist/types/core/components/functional/value/value.d.ts +6 -0
  240. package/dist/types/core/components/functional/value/value.d.ts.map +1 -1
  241. package/dist/types/core/components/functional/webgpu/gl-fallback.d.ts +4 -0
  242. package/dist/types/core/components/functional/webgpu/gl-fallback.d.ts.map +1 -1
  243. package/dist/types/core/components/functional/webgpu/gpu-runtime.d.ts +14 -0
  244. package/dist/types/core/components/functional/webgpu/gpu-runtime.d.ts.map +1 -1
  245. package/dist/types/core/components/functional/webgpu/helpers.d.ts +1 -0
  246. package/dist/types/core/components/functional/webgpu/helpers.d.ts.map +1 -1
  247. package/dist/types/core/components/functional/webgpu/webgpu.d.ts +7 -1
  248. package/dist/types/core/components/functional/webgpu/webgpu.d.ts.map +1 -1
  249. package/dist/types/core/components/ui/_css/rounded.d.ts +3 -0
  250. package/dist/types/core/components/ui/_css/rounded.d.ts.map +1 -0
  251. package/dist/types/core/components/ui/_css/type.d.ts +13 -0
  252. package/dist/types/core/components/ui/_css/type.d.ts.map +1 -1
  253. package/dist/types/core/components/ui/_i18n/ui-aria-labels.d.ts +83 -0
  254. package/dist/types/core/components/ui/_i18n/ui-aria-labels.d.ts.map +1 -0
  255. package/dist/types/core/components/ui/alert/alert.d.ts +14 -12
  256. package/dist/types/core/components/ui/alert/alert.d.ts.map +1 -1
  257. package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts.map +1 -1
  258. package/dist/types/core/components/ui/badge/badge.d.ts +1 -1
  259. package/dist/types/core/components/ui/badge/badge.d.ts.map +1 -1
  260. package/dist/types/core/components/ui/button/button.d.ts +13 -29
  261. package/dist/types/core/components/ui/button/button.d.ts.map +1 -1
  262. package/dist/types/core/components/ui/card/card-header.d.ts.map +1 -1
  263. package/dist/types/core/components/ui/divider/divider.d.ts +2 -1
  264. package/dist/types/core/components/ui/divider/divider.d.ts.map +1 -1
  265. package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts +25 -73
  266. package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts.map +1 -1
  267. package/dist/types/core/components/ui/form/input/input.d.ts +14 -29
  268. package/dist/types/core/components/ui/form/input/input.d.ts.map +1 -1
  269. package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +63 -65
  270. package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts.map +1 -1
  271. package/dist/types/core/components/ui/form/radio/radio.d.ts +1 -1
  272. package/dist/types/core/components/ui/form/select/select.d.ts +3 -5
  273. package/dist/types/core/components/ui/form/select/select.d.ts.map +1 -1
  274. package/dist/types/core/components/ui/form/textarea/textarea.d.ts +12 -28
  275. package/dist/types/core/components/ui/form/textarea/textarea.d.ts.map +1 -1
  276. package/dist/types/core/components/ui/image/image.d.ts +2 -1
  277. package/dist/types/core/components/ui/image/image.d.ts.map +1 -1
  278. package/dist/types/core/components/ui/link/link.d.ts +10 -9
  279. package/dist/types/core/components/ui/link/link.d.ts.map +1 -1
  280. package/dist/types/core/components/ui/modal/modal-close.d.ts +2 -2
  281. package/dist/types/core/components/ui/modal/modal-close.d.ts.map +1 -1
  282. package/dist/types/core/components/ui/pop/pop.d.ts +12 -4
  283. package/dist/types/core/components/ui/pop/pop.d.ts.map +1 -1
  284. package/dist/types/core/components/ui/table/table.d.ts +2 -1
  285. package/dist/types/core/components/ui/table/table.d.ts.map +1 -1
  286. package/dist/types/core/components/ui/toast/dismissed.d.ts +3 -0
  287. package/dist/types/core/components/ui/toast/dismissed.d.ts.map +1 -0
  288. package/dist/types/core/components/ui/toast/render-content.d.ts +7 -0
  289. package/dist/types/core/components/ui/toast/render-content.d.ts.map +1 -0
  290. package/dist/types/core/components/ui/toast/toast-item.d.ts +26 -9
  291. package/dist/types/core/components/ui/toast/toast-item.d.ts.map +1 -1
  292. package/dist/types/core/components/ui/toast/toast.d.ts +6 -3
  293. package/dist/types/core/components/ui/toast/toast.d.ts.map +1 -1
  294. package/dist/types/core/components/ui/toast/types.d.ts +12 -2
  295. package/dist/types/core/components/ui/toast/types.d.ts.map +1 -1
  296. package/dist/types/core/components/ui/tooltip/tooltip.d.ts +19 -11
  297. package/dist/types/core/components/ui/tooltip/tooltip.d.ts.map +1 -1
  298. package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts +3 -4
  299. package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts.map +1 -1
  300. package/dist/types/core/decorators/subscriber/derive.d.ts.map +1 -1
  301. package/dist/types/core/mixins/FormCheckable.d.ts +10 -27
  302. package/dist/types/core/mixins/FormCheckable.d.ts.map +1 -1
  303. package/dist/types/core/mixins/FormElement.d.ts +21 -10
  304. package/dist/types/core/mixins/FormElement.d.ts.map +1 -1
  305. package/dist/types/core/mixins/FormInput.d.ts +11 -27
  306. package/dist/types/core/mixins/FormInput.d.ts.map +1 -1
  307. package/dist/types/core/utils/AncestorAttributeObserver.d.ts +17 -9
  308. package/dist/types/core/utils/AncestorAttributeObserver.d.ts.map +1 -1
  309. package/dist/types/core/utils/LocationHandler.d.ts +3 -2
  310. package/dist/types/core/utils/LocationHandler.d.ts.map +1 -1
  311. package/dist/types/core/utils/dismissed.d.ts +3 -0
  312. package/dist/types/core/utils/dismissed.d.ts.map +1 -0
  313. package/dist/types/core/utils/mediaRef.d.ts +15 -0
  314. package/dist/types/core/utils/mediaRef.d.ts.map +1 -1
  315. package/dist/types/core/utils/positioning.d.ts +44 -0
  316. package/dist/types/core/utils/positioning.d.ts.map +1 -0
  317. package/dist/types/directives.d.ts +1 -3
  318. package/dist/types/directives.d.ts.map +1 -1
  319. package/dist/types/mixins.d.ts +22 -55
  320. package/dist/types/mixins.d.ts.map +1 -1
  321. package/docs/assets/{index-FmK4JaIM.js → index-D8MVWqY6.js} +946 -687
  322. package/docs/assets/index-DiD0qYvE.css +1 -0
  323. package/docs/crawl/core/components/ui/form/input-autocomplete/input-autocomplete.html +17 -85
  324. package/docs/crawl/docs/_misc/formelement-subscriber-removal.html +1 -1
  325. package/docs/crawl/hubs/form-components.html +13 -11
  326. package/docs/docs-mock-api-sw.js +5 -1
  327. package/docs/docs-mock-api-sw.js.map +2 -2
  328. package/docs/index.html +2 -2
  329. package/docs/llms-full.txt +12 -38
  330. package/docs/llms.txt +1 -1
  331. package/docs/src/core/components/functional/sdui/sdui.md +0 -0
  332. package/docs/src/core/components/ui/form/checkbox/checkbox.md +0 -0
  333. package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +14 -118
  334. package/docs/src/docs/_getting-started/create-a-component.md +0 -0
  335. package/docs/src/docs/_misc/formelement-subscriber-removal.md +1 -1
  336. package/docs/src/docs/search/docs-search.json +195 -200
  337. package/docs/src/tsconfig.json +324 -0
  338. package/gitlab/job_tests.sh +25 -12
  339. package/index.html +3 -3
  340. package/package.json +217 -9
  341. package/public/docs-mock-api-sw.js +5 -1
  342. package/public/docs-mock-api-sw.js.map +2 -2
  343. package/scripts/build-addons.mjs +2 -2
  344. package/scripts/post-build.mjs +9 -0
  345. package/src/addons/interactive.ts +5 -0
  346. package/src/core/components/functional/3d/3d.md +34 -1
  347. package/src/core/components/functional/3d/3d.spec.ts +42 -0
  348. package/src/core/components/functional/3d/3d.ts +101 -3
  349. package/src/core/components/functional/3d/constants.ts +1 -0
  350. package/src/core/components/functional/3d/ensure.ts +11 -3
  351. package/src/core/components/functional/3d/form-params.ts +2 -0
  352. package/src/core/components/functional/3d/life.ts +4 -1
  353. package/src/core/components/functional/3d/out-publish.ts +4 -3
  354. package/src/core/components/functional/3d/playback.ts +13 -1
  355. package/src/core/components/functional/3d/post-bind.ts +262 -0
  356. package/src/core/components/functional/3d/post-channels.spec.ts +36 -0
  357. package/src/core/components/functional/3d/post-channels.ts +69 -0
  358. package/src/core/components/functional/3d/post-fx.ts +594 -0
  359. package/src/core/components/functional/3d/props.ts +45 -0
  360. package/src/core/components/functional/3d/reload.ts +2 -0
  361. package/src/core/components/functional/3d/runtime.ts +93 -4
  362. package/src/core/components/functional/3d/scene-runtime.ts +3 -0
  363. package/src/core/components/functional/3d/tune.ts +21 -0
  364. package/src/core/components/functional/3d/types.ts +9 -0
  365. package/src/core/components/functional/3d/updated.ts +17 -1
  366. package/src/core/components/functional/if/if.ts +54 -7
  367. package/src/core/components/functional/interactive/action.ts +84 -0
  368. package/src/core/components/functional/interactive/gamepad.ts +197 -0
  369. package/src/core/components/functional/interactive/gesture.ts +136 -0
  370. package/src/core/components/functional/interactive/helpers.spec.ts +50 -0
  371. package/src/core/components/functional/interactive/helpers.ts +97 -0
  372. package/src/core/components/functional/interactive/index.ts +25 -0
  373. package/src/core/components/functional/interactive/interactive.md +33 -0
  374. package/src/core/components/functional/interactive/keyboard.ts +171 -0
  375. package/src/core/components/functional/interactive/matrix.ts +185 -0
  376. package/src/core/components/functional/interactive/registry.ts +46 -0
  377. package/src/core/components/functional/interactive/store.ts +264 -0
  378. package/src/core/components/functional/interactive/ticker.ts +171 -0
  379. package/src/core/components/functional/list/list.ts +0 -0
  380. package/src/core/components/functional/shader/gl-runtime.ts +169 -12
  381. package/src/core/components/functional/shader/shader.md +27 -4
  382. package/src/core/components/functional/shader/shader.spec.ts +267 -0
  383. package/src/core/components/functional/shader/shader.ts +177 -55
  384. package/src/core/components/functional/shader/shadertoy-prelude.ts +49 -5
  385. package/src/core/components/functional/shader/types.ts +89 -12
  386. package/src/core/components/functional/subscriber/subscriber.ts +0 -0
  387. package/src/core/components/functional/value/value.ts +44 -4
  388. package/src/core/components/functional/webgpu/gl-fallback.ts +28 -4
  389. package/src/core/components/functional/webgpu/gpu-runtime.ts +154 -18
  390. package/src/core/components/functional/webgpu/helpers.ts +8 -2
  391. package/src/core/components/functional/webgpu/webgpu.md +13 -2
  392. package/src/core/components/functional/webgpu/webgpu.spec.ts +37 -0
  393. package/src/core/components/functional/webgpu/webgpu.ts +39 -1
  394. package/src/core/components/ui/_css/rounded.ts +36 -0
  395. package/src/core/components/ui/_css/type.ts +49 -0
  396. package/src/core/components/ui/_i18n/ui-aria-labels.ts +104 -0
  397. package/src/core/components/ui/alert/alert.md +128 -72
  398. package/src/core/components/ui/alert/alert.spec.ts +145 -0
  399. package/src/core/components/ui/alert/alert.ts +86 -91
  400. package/src/core/components/ui/alert-messages/alert-messages.ts +1 -1
  401. package/src/core/components/ui/badge/badge.md +126 -78
  402. package/src/core/components/ui/badge/badge.ts +29 -81
  403. package/src/core/components/ui/button/button.md +1 -0
  404. package/src/core/components/ui/button/button.ts +12 -10
  405. package/src/core/components/ui/card/card-header.ts +7 -2
  406. package/src/core/components/ui/card/card.md +120 -65
  407. package/src/core/components/ui/divider/divider.ts +4 -9
  408. package/src/core/components/ui/form/checkbox/checkbox.md +1 -1
  409. package/src/core/components/ui/form/checkbox/checkbox.ts +4 -20
  410. package/src/core/components/ui/form/fieldset/legend-description.ts +1 -1
  411. package/src/core/components/ui/form/fieldset/legend.ts +1 -1
  412. package/src/core/components/ui/form/input/input.md +1 -1
  413. package/src/core/components/ui/form/input/input.ts +25 -27
  414. package/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +14 -118
  415. package/src/core/components/ui/form/input-autocomplete/input-autocomplete.ts +419 -187
  416. package/src/core/components/ui/form/radio/radio.ts +1 -1
  417. package/src/core/components/ui/form/select/select.ts +3 -6
  418. package/src/core/components/ui/form/textarea/textarea.md +1 -1
  419. package/src/core/components/ui/form/textarea/textarea.ts +1 -2
  420. package/src/core/components/ui/image/image.md +147 -53
  421. package/src/core/components/ui/image/image.ts +10 -44
  422. package/src/core/components/ui/link/link.md +2 -2
  423. package/src/core/components/ui/link/link.ts +42 -37
  424. package/src/core/components/ui/modal/modal-close.ts +8 -12
  425. package/src/core/components/ui/modal/modal.ts +18 -18
  426. package/src/core/components/ui/pop/pop.md +105 -1
  427. package/src/core/components/ui/pop/pop.ts +145 -141
  428. package/src/core/components/ui/table/table.ts +2 -8
  429. package/src/core/components/ui/theme/theme.ts +1 -1
  430. package/src/core/components/ui/toast/dismissed.ts +14 -0
  431. package/src/core/components/ui/toast/render-content.ts +13 -0
  432. package/src/core/components/ui/toast/toast-item.ts +179 -103
  433. package/src/core/components/ui/toast/toast.ts +58 -21
  434. package/src/core/components/ui/toast/types.ts +14 -2
  435. package/src/core/components/ui/tooltip/tooltip.ts +176 -154
  436. package/src/core/decorators/subscriber/ancestorAttribute.spec.ts +26 -0
  437. package/src/core/decorators/subscriber/ancestorAttribute.ts +3 -4
  438. package/src/core/decorators/subscriber/derive.ts +3 -3
  439. package/src/core/mixins/Fetcher.ts +1 -1
  440. package/src/core/mixins/FormCheckable.ts +1 -8
  441. package/src/core/mixins/FormElement.ts +74 -76
  442. package/src/core/mixins/Subscriber.ts +0 -0
  443. package/src/core/utils/AncestorAttributeObserver.ts +183 -70
  444. package/src/core/utils/DataBindObserver.ts +0 -0
  445. package/src/core/utils/LocationHandler.ts +12 -5
  446. package/src/core/utils/Objects.ts +0 -0
  447. package/src/core/utils/dismissed.ts +22 -0
  448. package/src/core/utils/mediaRef.spec.ts +25 -0
  449. package/src/core/utils/mediaRef.ts +45 -0
  450. package/src/core/utils/positioning.spec.ts +208 -0
  451. package/src/core/utils/positioning.ts +183 -0
  452. package/src/directives.ts +1 -3
  453. package/src/docs/_core-concept/dataFlow.md +1 -1
  454. package/src/docs/_decorators/ancestor-attribute.md +3 -2
  455. package/src/docs/_getting-started/concorde-outside.md +3 -3
  456. package/src/docs/_misc/formelement-subscriber-removal.md +115 -0
  457. package/src/docs/_misc/html-integration.md +2 -0
  458. package/src/docs/_misc/visual-stack.md +19 -1
  459. package/src/docs/code.ts +3 -1
  460. package/src/docs/components/docs-demo-sources.ts +88 -0
  461. package/src/docs/docs.ts +3 -0
  462. package/src/docs/example/docs-3d-post-depth-demo.ts +68 -0
  463. package/src/docs/example/docs-3d-webgpu-live-demo.ts +83 -0
  464. package/src/docs/example/docs-harris-webgpu-demo.ts +53 -55
  465. package/src/docs/example/docs-input-autocomplete-demos.ts +110 -0
  466. package/src/docs/mock-api/router.ts +17 -1
  467. package/src/docs/navigation/navigation.ts +4 -0
  468. package/src/docs/search/docs-search.json +922 -1762
  469. package/src/docs/tailwind/css/tailwind.css +13 -6
  470. package/src/tsconfig.json +162 -6
  471. package/src/tsconfig.tsbuildinfo +1 -1
  472. package/tailwind.config.js +50 -3
  473. package/vite/config.js +23 -35
  474. package/vite.config.mts +5 -0
  475. package/vitest.setup.ts +49 -13
  476. package/docs/assets/index-BZiZXMU-.css +0 -1
@@ -0,0 +1,96 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { LitElement, css, html } from "lit";
8
+ import { customElement, property } from "lit/decorators.js";
9
+ import { dispatch } from "./registry";
10
+ const tagName = "sonic-action";
11
+ /**
12
+ * Wrapper clic → dispatch vers un store.
13
+ * `hold-repeat="170,50"` pour d-pad tactile.
14
+ */
15
+ let SonicAction = class SonicAction extends LitElement {
16
+ constructor() {
17
+ super(...arguments);
18
+ this.target = "";
19
+ this.type = "";
20
+ this.payload = null;
21
+ this.holdRepeat = "";
22
+ this.dispatchEventFlag = false;
23
+ this.holdTimer = null;
24
+ this.holdInterval = null;
25
+ this.onPointerDown = (e) => {
26
+ if (e.button != null && e.button !== 0)
27
+ return;
28
+ this.emit();
29
+ const parts = this.holdRepeat.split(",").map((s) => Number(s.trim()));
30
+ if (parts.length === 2 && parts.every((n) => Number.isFinite(n))) {
31
+ const [delay, interval] = parts;
32
+ this.holdTimer = window.setTimeout(() => {
33
+ this.emit();
34
+ this.holdInterval = window.setInterval(() => this.emit(), Math.max(16, interval));
35
+ }, Math.max(0, delay));
36
+ }
37
+ };
38
+ this.onPointerUp = () => this.clearHold();
39
+ }
40
+ clearHold() {
41
+ if (this.holdTimer != null)
42
+ clearTimeout(this.holdTimer);
43
+ if (this.holdInterval != null)
44
+ clearInterval(this.holdInterval);
45
+ this.holdTimer = null;
46
+ this.holdInterval = null;
47
+ }
48
+ emit() {
49
+ if (!this.type)
50
+ return;
51
+ const action = { type: this.type, payload: this.payload };
52
+ if (this.target)
53
+ dispatch(this.target, action);
54
+ if (this.dispatchEventFlag) {
55
+ this.dispatchEvent(new CustomEvent("sonic-action", {
56
+ detail: action,
57
+ bubbles: true,
58
+ composed: true,
59
+ }));
60
+ }
61
+ }
62
+ render() {
63
+ return html `<slot
64
+ @pointerdown=${this.onPointerDown}
65
+ @pointerup=${this.onPointerUp}
66
+ @pointercancel=${this.onPointerUp}
67
+ @pointerleave=${this.onPointerUp}
68
+ ></slot>`;
69
+ }
70
+ };
71
+ SonicAction.styles = css `
72
+ :host {
73
+ display: contents;
74
+ }
75
+ `;
76
+ __decorate([
77
+ property({ type: String })
78
+ ], SonicAction.prototype, "target", void 0);
79
+ __decorate([
80
+ property({ type: String })
81
+ ], SonicAction.prototype, "type", void 0);
82
+ __decorate([
83
+ property({ type: Object })
84
+ ], SonicAction.prototype, "payload", void 0);
85
+ __decorate([
86
+ property({ type: String, attribute: "hold-repeat" })
87
+ ], SonicAction.prototype, "holdRepeat", void 0);
88
+ __decorate([
89
+ property({ type: Boolean, attribute: "dispatch-event" })
90
+ ], SonicAction.prototype, "dispatchEventFlag", void 0);
91
+ SonicAction = __decorate([
92
+ customElement(tagName)
93
+ ], SonicAction);
94
+ export { SonicAction };
95
+ export default SonicAction;
96
+ //# sourceMappingURL=action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.js","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/action.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAA2B,MAAM,YAAY,CAAC;AAE/D,MAAM,OAAO,GAAG,cAAc,CAAC;AAE/B;;;GAGG;AAEI,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,UAAU;IAApC;;QAQL,WAAM,GAAG,EAAE,CAAC;QAGZ,SAAI,GAAG,EAAE,CAAC;QAGV,YAAO,GAAY,IAAI,CAAC;QAGxB,eAAU,GAAG,EAAE,CAAC;QAGhB,sBAAiB,GAAG,KAAK,CAAC;QAElB,cAAS,GAAkB,IAAI,CAAC;QAChC,iBAAY,GAAkB,IAAI,CAAC;QAEnC,kBAAa,GAAG,CAAC,CAAe,EAAE,EAAE;YAC1C,IAAI,CAAC,CAAC,MAAM,IAAI,IAAI,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC;gBAAE,OAAO;YAC/C,IAAI,CAAC,IAAI,EAA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AuB,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC;QAC9E,IAAI,IAAI,CAAC,MAAM;YAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC/C,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;YAC3B,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CAAC,cAAc,EAAE;gBAC9B,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,IAAI;gBACb,QAAQ,EAAE,IAAI;aACf,CAAC,CACH,CAAC;QACJ,CAAC;IACH,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA;qBACM,IAAI,CAAC,aAAa;mBACpB,IAAI,CAAC,WAAW;uBACZ,IAAI,CAAC,WAAW;sBACjB,IAAI,CAAC,WAAW;aACzB,CAAC;IACZ,CAAC;;AApEM,kBAAM,GAAG,GAAG,CAAA;;;;GAIlB,AAJY,CAIX;AAGF;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2CACf;AAGZ;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yCACjB;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CACH;AAGxB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;+CACrC;AAGhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;sDAC/B;AApBf,WAAW;IADvB,aAAa,CAAC,OAAO,CAAC;GACV,WAAW,CAsEvB;;AAED,eAAe,WAAW,CAAC"}
@@ -0,0 +1,206 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { LitElement, css, html } from "lit";
8
+ import { customElement, property, state } from "lit/decorators.js";
9
+ import { dispatch } from "./registry";
10
+ import { set } from "@supersoniks/concorde/core/utils/PublisherProxy";
11
+ const tagName = "sonic-gamepad";
12
+ const STANDARD = {
13
+ "dpad-up": 12,
14
+ "dpad-down": 13,
15
+ "dpad-left": 14,
16
+ "dpad-right": 15,
17
+ a: 0,
18
+ b: 1,
19
+ x: 2,
20
+ y: 3,
21
+ start: 9,
22
+ select: 8,
23
+ "ls-x-": { axis: 0, dir: -1 },
24
+ "ls-x+": { axis: 0, dir: 1 },
25
+ "ls-y-": { axis: 1, dir: -1 },
26
+ "ls-y+": { axis: 1, dir: 1 },
27
+ };
28
+ /**
29
+ * Manette → actions store. Raf uniquement si une pad est connectée.
30
+ */
31
+ let SonicGamepad = class SonicGamepad extends LitElement {
32
+ constructor() {
33
+ super(...arguments);
34
+ this.target = "";
35
+ this.keymap = {
36
+ "dpad-left": "left",
37
+ "dpad-right": "right",
38
+ "dpad-up": "rotate",
39
+ "dpad-down": "soft-drop",
40
+ a: "rotate",
41
+ b: "drop",
42
+ start: "pause",
43
+ };
44
+ this.deadzone = 0.25;
45
+ this.repeat = {};
46
+ this.dataProvider = "";
47
+ this.dispatchEventFlag = false;
48
+ this.connected = false;
49
+ this.raf = 0;
50
+ this.prev = new Map();
51
+ this.heldTimers = new Map();
52
+ this.onConnect = () => this.scan();
53
+ this.onDisconnect = () => this.scan();
54
+ }
55
+ connectedCallback() {
56
+ super.connectedCallback();
57
+ window.addEventListener("gamepadconnected", this.onConnect);
58
+ window.addEventListener("gamepaddisconnected", this.onDisconnect);
59
+ this.scan();
60
+ }
61
+ disconnectedCallback() {
62
+ window.removeEventListener("gamepadconnected", this.onConnect);
63
+ window.removeEventListener("gamepaddisconnected", this.onDisconnect);
64
+ this.stopLoop();
65
+ this.clearHolds();
66
+ super.disconnectedCallback();
67
+ }
68
+ scan() {
69
+ const pads = navigator.getGamepads?.() ?? [];
70
+ const any = [...pads].some(Boolean);
71
+ this.connected = any;
72
+ this.publishStatus();
73
+ if (any)
74
+ this.startLoop();
75
+ else
76
+ this.stopLoop();
77
+ }
78
+ publishStatus() {
79
+ if (!this.dataProvider)
80
+ return;
81
+ const pads = navigator.getGamepads?.() ?? [];
82
+ const first = [...pads].find(Boolean);
83
+ set(this.dataProvider, {
84
+ connected: this.connected,
85
+ id: first?.id ?? null,
86
+ });
87
+ }
88
+ startLoop() {
89
+ if (this.raf)
90
+ return;
91
+ const loop = () => {
92
+ this.raf = requestAnimationFrame(loop);
93
+ this.poll();
94
+ };
95
+ this.raf = requestAnimationFrame(loop);
96
+ }
97
+ stopLoop() {
98
+ if (this.raf)
99
+ cancelAnimationFrame(this.raf);
100
+ this.raf = 0;
101
+ }
102
+ poll() {
103
+ const pads = navigator.getGamepads?.() ?? [];
104
+ const pad = [...pads].find(Boolean);
105
+ if (!pad) {
106
+ this.scan();
107
+ return;
108
+ }
109
+ for (const [name, mapped] of Object.entries(this.keymap || {})) {
110
+ const spec = STANDARD[name];
111
+ if (spec == null)
112
+ continue;
113
+ let pressed = false;
114
+ if (typeof spec === "number") {
115
+ pressed = Boolean(pad.buttons[spec]?.pressed);
116
+ }
117
+ else {
118
+ const axis = pad.axes[spec.axis] ?? 0;
119
+ pressed = spec.dir < 0 ? axis < -this.deadzone : axis > this.deadzone;
120
+ }
121
+ const was = this.prev.get(name) ?? false;
122
+ if (pressed && !was) {
123
+ this.fire(mapped);
124
+ this.startRepeat(name, mapped);
125
+ }
126
+ else if (!pressed && was) {
127
+ this.stopRepeat(name);
128
+ }
129
+ this.prev.set(name, pressed);
130
+ }
131
+ }
132
+ startRepeat(name, mapped) {
133
+ const action = typeof mapped === "string" ? { type: mapped } : mapped;
134
+ const rep = this.repeat?.[action.type];
135
+ if (!rep)
136
+ return;
137
+ const [delay, interval] = rep;
138
+ const entry = {};
139
+ entry.timer = window.setTimeout(() => {
140
+ this.fire(mapped);
141
+ entry.interval = window.setInterval(() => this.fire(mapped), Math.max(16, interval));
142
+ }, Math.max(0, delay));
143
+ this.heldTimers.set(name, entry);
144
+ }
145
+ stopRepeat(name) {
146
+ const h = this.heldTimers.get(name);
147
+ if (!h)
148
+ return;
149
+ if (h.timer)
150
+ clearTimeout(h.timer);
151
+ if (h.interval)
152
+ clearInterval(h.interval);
153
+ this.heldTimers.delete(name);
154
+ }
155
+ clearHolds() {
156
+ for (const name of [...this.heldTimers.keys()])
157
+ this.stopRepeat(name);
158
+ }
159
+ fire(mapped) {
160
+ const action = typeof mapped === "string" ? { type: mapped } : { type: mapped.type, payload: mapped.payload };
161
+ if (this.target)
162
+ dispatch(this.target, action);
163
+ if (this.dispatchEventFlag) {
164
+ this.dispatchEvent(new CustomEvent("sonic-action", {
165
+ detail: action,
166
+ bubbles: true,
167
+ composed: true,
168
+ }));
169
+ }
170
+ }
171
+ render() {
172
+ return html ``;
173
+ }
174
+ };
175
+ SonicGamepad.styles = css `
176
+ :host {
177
+ display: contents;
178
+ }
179
+ `;
180
+ __decorate([
181
+ property({ type: String })
182
+ ], SonicGamepad.prototype, "target", void 0);
183
+ __decorate([
184
+ property({ type: Object })
185
+ ], SonicGamepad.prototype, "keymap", void 0);
186
+ __decorate([
187
+ property({ type: Number })
188
+ ], SonicGamepad.prototype, "deadzone", void 0);
189
+ __decorate([
190
+ property({ type: Object })
191
+ ], SonicGamepad.prototype, "repeat", void 0);
192
+ __decorate([
193
+ property({ type: String })
194
+ ], SonicGamepad.prototype, "dataProvider", void 0);
195
+ __decorate([
196
+ property({ type: Boolean, attribute: "dispatch-event" })
197
+ ], SonicGamepad.prototype, "dispatchEventFlag", void 0);
198
+ __decorate([
199
+ state()
200
+ ], SonicGamepad.prototype, "connected", void 0);
201
+ SonicGamepad = __decorate([
202
+ customElement(tagName)
203
+ ], SonicGamepad);
204
+ export { SonicGamepad };
205
+ export default SonicGamepad;
206
+ //# sourceMappingURL=gamepad.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gamepad.js","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/gamepad.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,QAAQ,EAA2B,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAE,GAAG,EAAE,MAAM,iDAAiD,CAAC;AAEtE,MAAM,OAAO,GAAG,eAAe,CAAC;AAIhC,MAAM,QAAQ,GAA2D;IACvE,SAAS,EAAE,EAAE;IACb,WAAW,EAAE,EAAE;IACf,WAAW,EAAE,EAAE;IACf,YAAY,EAAE,EAAE;IAChB,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,CAAC;IACT,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE;IAC7B,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE;IAC5B,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE;IAC7B,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE;CAC7B,CAAC;AAEF;;GAEG;AAEI,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU;IAArC;;QAQL,WAAM,GAAG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,EAAE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;uDAC/B;AAET;IAAhB,KAAK,EAAE;+CAA2B;AAjCxB,YAAY;IADxB,aAAa,CAAC,OAAO,CAAC;GACV,YAAY,CAoKxB;;AAED,eAAe,YAAY,CAAC"}
@@ -0,0 +1,148 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { LitElement, css, html } from "lit";
8
+ import { customElement, property } from "lit/decorators.js";
9
+ import { dispatch } from "./registry";
10
+ const tagName = "sonic-gesture";
11
+ /**
12
+ * Zone tactile : tap, double-tap, swipe, long-press (+ drag optionnel).
13
+ */
14
+ let SonicGesture = class SonicGesture extends LitElement {
15
+ constructor() {
16
+ super(...arguments);
17
+ this.target = "";
18
+ this.swipeThreshold = 40;
19
+ this.longPressMs = 450;
20
+ this.doubleTapMs = 280;
21
+ this.drag = false;
22
+ this.dispatchEventFlag = false;
23
+ this.startX = 0;
24
+ this.startY = 0;
25
+ this.startT = 0;
26
+ this.longTimer = null;
27
+ this.lastTap = 0;
28
+ this.pointerId = null;
29
+ this.onDown = (e) => {
30
+ if (this.pointerId != null)
31
+ return;
32
+ this.pointerId = e.pointerId;
33
+ this.setPointerCapture(e.pointerId);
34
+ this.startX = e.clientX;
35
+ this.startY = e.clientY;
36
+ this.startT = performance.now();
37
+ this.longTimer = window.setTimeout(() => {
38
+ this.emit({ type: "long-press" });
39
+ this.longTimer = null;
40
+ }, this.longPressMs);
41
+ };
42
+ this.onMove = (e) => {
43
+ if (this.pointerId !== e.pointerId)
44
+ return;
45
+ const dx = e.clientX - this.startX;
46
+ const dy = e.clientY - this.startY;
47
+ if (Math.hypot(dx, dy) > 10 && this.longTimer != null) {
48
+ clearTimeout(this.longTimer);
49
+ this.longTimer = null;
50
+ }
51
+ if (this.drag) {
52
+ const rect = this.getBoundingClientRect();
53
+ this.emit({
54
+ type: "drag",
55
+ payload: {
56
+ dx: rect.width ? dx / rect.width : 0,
57
+ dy: rect.height ? dy / rect.height : 0,
58
+ },
59
+ });
60
+ }
61
+ };
62
+ this.onUp = (e) => {
63
+ if (this.pointerId !== e.pointerId)
64
+ return;
65
+ if (this.longTimer != null) {
66
+ clearTimeout(this.longTimer);
67
+ this.longTimer = null;
68
+ }
69
+ const dx = e.clientX - this.startX;
70
+ const dy = e.clientY - this.startY;
71
+ const dist = Math.hypot(dx, dy);
72
+ const dt = performance.now() - this.startT;
73
+ this.pointerId = null;
74
+ if (dist >= this.swipeThreshold) {
75
+ const type = Math.abs(dx) > Math.abs(dy)
76
+ ? dx > 0
77
+ ? "swipe-right"
78
+ : "swipe-left"
79
+ : dy > 0
80
+ ? "swipe-down"
81
+ : "swipe-up";
82
+ this.emit({ type });
83
+ return;
84
+ }
85
+ if (dt < this.longPressMs) {
86
+ const now = performance.now();
87
+ if (now - this.lastTap < this.doubleTapMs) {
88
+ this.emit({ type: "double-tap" });
89
+ this.lastTap = 0;
90
+ }
91
+ else {
92
+ this.emit({ type: "tap" });
93
+ this.lastTap = now;
94
+ }
95
+ }
96
+ };
97
+ }
98
+ emit(action) {
99
+ if (this.target)
100
+ dispatch(this.target, action);
101
+ if (this.dispatchEventFlag) {
102
+ this.dispatchEvent(new CustomEvent("sonic-action", {
103
+ detail: action,
104
+ bubbles: true,
105
+ composed: true,
106
+ }));
107
+ }
108
+ }
109
+ render() {
110
+ return html `<slot
111
+ @pointerdown=${this.onDown}
112
+ @pointermove=${this.onMove}
113
+ @pointerup=${this.onUp}
114
+ @pointercancel=${this.onUp}
115
+ ></slot>`;
116
+ }
117
+ };
118
+ SonicGesture.styles = css `
119
+ :host {
120
+ display: block;
121
+ touch-action: none;
122
+ user-select: none;
123
+ }
124
+ `;
125
+ __decorate([
126
+ property({ type: String })
127
+ ], SonicGesture.prototype, "target", void 0);
128
+ __decorate([
129
+ property({ type: Number, attribute: "swipe-threshold" })
130
+ ], SonicGesture.prototype, "swipeThreshold", void 0);
131
+ __decorate([
132
+ property({ type: Number, attribute: "long-press-ms" })
133
+ ], SonicGesture.prototype, "longPressMs", void 0);
134
+ __decorate([
135
+ property({ type: Number, attribute: "double-tap-ms" })
136
+ ], SonicGesture.prototype, "doubleTapMs", void 0);
137
+ __decorate([
138
+ property({ type: Boolean })
139
+ ], SonicGesture.prototype, "drag", void 0);
140
+ __decorate([
141
+ property({ type: Boolean, attribute: "dispatch-event" })
142
+ ], SonicGesture.prototype, "dispatchEventFlag", void 0);
143
+ SonicGesture = __decorate([
144
+ customElement(tagName)
145
+ ], SonicGesture);
146
+ export { SonicGesture };
147
+ export default SonicGesture;
148
+ //# sourceMappingURL=gesture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gesture.js","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/gesture.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAA2B,MAAM,YAAY,CAAC;AAE/D,MAAM,OAAO,GAAG,eAAe,CAAC;AAEhC;;GAEG;AAEI,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU;IAArC;;QAUL,WAAM,GAAG,EAAE,CAAC;QAGZ,mBAAc,GAAG,EAAE,CAAC;QAGpB,gBAAW,GAAG,GAAG,CAAC;QAGlB,gBAAW,GAAG,GAAG,CAAC;QAGlB,SAAI,GAAG,KAAK,CAAC;Q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AAI,CAAC,MAAM;qBACX,IAAI,CAAC,MAAM;mBACb,IAAI,CAAC,IAAI;uBACL,IAAI,CAAC,IAAI;aACnB,CAAC;IACZ,CAAC;;AAzHM,mBAAM,GAAG,GAAG,CAAA;;;;;;GAMlB,AANY,CAMX;AAGF;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CACf;AAGZ;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;oDACrC;AAGpB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;iDACrC;AAGlB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;iDACrC;AAGlB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;0CACf;AAGb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;uDAC/B;AAzBf,YAAY;IADxB,aAAa,CAAC,OAAO,CAAC;GACV,YAAY,CA2HxB;;AAED,eAAe,YAAY,CAAC"}
@@ -0,0 +1,82 @@
1
+ /** mulberry32 → { value: 0..1, seed } */
2
+ export function rand(seed) {
3
+ let t = (Number(seed) >>> 0) + 0x6d2b79f5;
4
+ t = Math.imul(t ^ (t >>> 15), t | 1);
5
+ t ^= t + Math.imul(t ^ (t >>> 7), t | 61);
6
+ const next = t >>> 0;
7
+ return { value: ((next ^ (next >>> 14)) >>> 0) / 4294967296, seed: next };
8
+ }
9
+ export function randInt(seed, n) {
10
+ const r = rand(seed);
11
+ const max = Math.max(1, Math.floor(Number(n) || 1));
12
+ return { value: Math.floor(r.value * max), seed: r.seed };
13
+ }
14
+ export function clamp(value, min, max) {
15
+ const v = Number(value);
16
+ const a = Number(min);
17
+ const b = Number(max);
18
+ return Math.min(b, Math.max(a, v));
19
+ }
20
+ export function range(n) {
21
+ const len = Math.max(0, Math.min(10_000, Math.floor(Number(n) || 0)));
22
+ return Array.from({ length: len }, (_, i) => i);
23
+ }
24
+ /** Set immuable par chemin dot (`a.b.0.c`). */
25
+ export function immutableSet(obj, path, value) {
26
+ const parts = String(path ?? "")
27
+ .split(".")
28
+ .filter(Boolean);
29
+ if (!parts.length)
30
+ return value;
31
+ const clone = (v) => {
32
+ if (Array.isArray(v))
33
+ return v.slice();
34
+ if (v && typeof v === "object")
35
+ return { ...v };
36
+ return v;
37
+ };
38
+ const root = clone(obj ?? {});
39
+ let cur = root;
40
+ for (let i = 0; i < parts.length - 1; i++) {
41
+ const key = parts[i];
42
+ const next = cur[key];
43
+ cur[key] = clone(next ?? (/^\d+$/.test(parts[i + 1]) ? [] : {}));
44
+ cur = cur[key];
45
+ }
46
+ cur[parts[parts.length - 1]] = value;
47
+ return root;
48
+ }
49
+ export function matrix(w, h, fill = 0) {
50
+ const width = Math.max(0, Math.min(256, Math.floor(Number(w) || 0)));
51
+ const height = Math.max(0, Math.min(256, Math.floor(Number(h) || 0)));
52
+ const f = Number(fill) || 0;
53
+ return Array.from({ length: height }, () => Array.from({ length: width }, () => f));
54
+ }
55
+ /** Rotation 90° horaire d’une matrice 2D. */
56
+ export function rotate(mat) {
57
+ if (!Array.isArray(mat) || !mat.length)
58
+ return [];
59
+ const rows = mat;
60
+ const h = rows.length;
61
+ const w = Array.isArray(rows[0]) ? rows[0].length : 0;
62
+ const out = Array.from({ length: w }, () => Array.from({ length: h }, () => 0));
63
+ for (let y = 0; y < h; y++) {
64
+ const row = rows[y];
65
+ if (!Array.isArray(row))
66
+ continue;
67
+ for (let x = 0; x < w; x++) {
68
+ out[x][h - 1 - y] = Number(row[x]) || 0;
69
+ }
70
+ }
71
+ return out;
72
+ }
73
+ export function registerInteractiveHelpers(expression) {
74
+ expression.registerFunction("rand", rand);
75
+ expression.registerFunction("randInt", randInt);
76
+ expression.registerFunction("clamp", clamp);
77
+ expression.registerFunction("range", range);
78
+ expression.registerFunction("set", immutableSet);
79
+ expression.registerFunction("matrix", matrix);
80
+ expression.registerFunction("rotate", rotate);
81
+ }
82
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/helpers.ts"],"names":[],"mappings":"AAMA,yCAAyC;AACzC,MAAM,UAAU,IAAI,CAAC,IAAa;IAChC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,UAAU,CAAC;IAC1C,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1C,MAAM,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;IACrB,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC,IAAI,GAAG,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAC5E,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,IAAa,EAAE,CAAU;IAC/C,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IACrB,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpD,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;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AAI,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,UAAsB;IAC/D,UAAU,CAAC,gBAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC1C,UAAU,CAAC,gBAAgB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAChD,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC5C,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC5C,UAAU,CAAC,gBAAgB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;IACjD,UAAU,CAAC,gBAAgB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC9C,UAAU,CAAC,gBAAgB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAChD,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Addon interactivity déclarative (stores, inputs, matrix).
3
+ * Opt-in : `@supersoniks/concorde/interactive`
4
+ */
5
+ export { dispatch, getStore, listStoreIds, } from "./registry";
6
+ export { SonicStore } from "./store";
7
+ export { SonicKeyboard } from "./keyboard";
8
+ export { SonicGamepad } from "./gamepad";
9
+ export { SonicGesture } from "./gesture";
10
+ export { SonicAction } from "./action";
11
+ export { SonicTicker } from "./ticker";
12
+ export { SonicMatrix } from "./matrix";
13
+ import "./store";
14
+ import "./keyboard";
15
+ import "./gamepad";
16
+ import "./gesture";
17
+ import "./action";
18
+ import "./ticker";
19
+ import "./matrix";
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,YAAY,GAEb,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,OAAO,SAAS,CAAC;AACjB,OAAO,YAAY,CAAC;AACpB,OAAO,WAAW,CAAC;AACnB,OAAO,WAAW,CAAC;AACnB,OAAO,UAAU,CAAC;AAClB,OAAO,UAAU,CAAC;AAClB,OAAO,UAAU,CAAC"}