@supersoniks/concorde 4.9.98-visual-stack.1 → 4.9.98-visual-stack.3

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 (340) hide show
  1. package/.gitlab-ci.yml +0 -13
  2. package/build-infos.json +1 -1
  3. package/concorde-3d.bundle.js +1 -1
  4. package/concorde-3d.es.js +2 -2
  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 +1 -1
  12. package/concorde-shader.es.js +2 -2
  13. package/concorde-webgpu.bundle.js +1 -1
  14. package/concorde-webgpu.es.js +2 -2
  15. package/dist/concorde-3d.bundle.js +1 -1
  16. package/dist/concorde-3d.es.js +2 -2
  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 +1 -1
  24. package/dist/concorde-shader.es.js +2 -2
  25. package/dist/concorde-webgpu.bundle.js +1 -1
  26. package/dist/concorde-webgpu.es.js +2 -2
  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/if/if.js +65 -7
  32. package/dist/js/core/components/functional/if/if.js.map +1 -1
  33. package/dist/js/core/components/functional/interactive/action.js +96 -0
  34. package/dist/js/core/components/functional/interactive/action.js.map +1 -0
  35. package/dist/js/core/components/functional/interactive/gamepad.js +206 -0
  36. package/dist/js/core/components/functional/interactive/gamepad.js.map +1 -0
  37. package/dist/js/core/components/functional/interactive/gesture.js +148 -0
  38. package/dist/js/core/components/functional/interactive/gesture.js.map +1 -0
  39. package/dist/js/core/components/functional/interactive/helpers.js +82 -0
  40. package/dist/js/core/components/functional/interactive/helpers.js.map +1 -0
  41. package/dist/js/core/components/functional/interactive/index.js +20 -0
  42. package/dist/js/core/components/functional/interactive/index.js.map +1 -0
  43. package/dist/js/core/components/functional/interactive/keyboard.js +183 -0
  44. package/dist/js/core/components/functional/interactive/keyboard.js.map +1 -0
  45. package/dist/js/core/components/functional/interactive/matrix.js +201 -0
  46. package/dist/js/core/components/functional/interactive/matrix.js.map +1 -0
  47. package/dist/js/core/components/functional/interactive/registry.js +28 -0
  48. package/dist/js/core/components/functional/interactive/registry.js.map +1 -0
  49. package/dist/js/core/components/functional/interactive/store.js +264 -0
  50. package/dist/js/core/components/functional/interactive/store.js.map +1 -0
  51. package/dist/js/core/components/functional/interactive/ticker.js +182 -0
  52. package/dist/js/core/components/functional/interactive/ticker.js.map +1 -0
  53. package/dist/js/core/components/functional/value/value.js +49 -4
  54. package/dist/js/core/components/functional/value/value.js.map +1 -1
  55. package/dist/js/core/components/ui/_css/rounded.js +34 -0
  56. package/dist/js/core/components/ui/_css/rounded.js.map +1 -0
  57. package/dist/js/core/components/ui/_css/type.js +44 -0
  58. package/dist/js/core/components/ui/_css/type.js.map +1 -1
  59. package/dist/js/core/components/ui/_i18n/ui-aria-labels.js +95 -0
  60. package/dist/js/core/components/ui/_i18n/ui-aria-labels.js.map +1 -0
  61. package/dist/js/core/components/ui/alert/alert.js +72 -87
  62. package/dist/js/core/components/ui/alert/alert.js.map +1 -1
  63. package/dist/js/core/components/ui/alert-messages/alert-messages.js +1 -0
  64. package/dist/js/core/components/ui/alert-messages/alert-messages.js.map +1 -1
  65. package/dist/js/core/components/ui/badge/badge.js +29 -80
  66. package/dist/js/core/components/ui/badge/badge.js.map +1 -1
  67. package/dist/js/core/components/ui/button/button.js +8 -7
  68. package/dist/js/core/components/ui/button/button.js.map +1 -1
  69. package/dist/js/core/components/ui/card/card-header.js +7 -2
  70. package/dist/js/core/components/ui/card/card-header.js.map +1 -1
  71. package/dist/js/core/components/ui/divider/divider.js +1 -1
  72. package/dist/js/core/components/ui/divider/divider.js.map +1 -1
  73. package/dist/js/core/components/ui/form/checkbox/checkbox.js +4 -20
  74. package/dist/js/core/components/ui/form/checkbox/checkbox.js.map +1 -1
  75. package/dist/js/core/components/ui/form/fieldset/legend-description.js +1 -1
  76. package/dist/js/core/components/ui/form/fieldset/legend.js +1 -1
  77. package/dist/js/core/components/ui/form/input/input.js +12 -15
  78. package/dist/js/core/components/ui/form/input/input.js.map +1 -1
  79. package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js +363 -158
  80. package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js.map +1 -1
  81. package/dist/js/core/components/ui/form/radio/radio.js +1 -1
  82. package/dist/js/core/components/ui/form/select/select.js +3 -6
  83. package/dist/js/core/components/ui/form/select/select.js.map +1 -1
  84. package/dist/js/core/components/ui/form/textarea/textarea.js +1 -2
  85. package/dist/js/core/components/ui/form/textarea/textarea.js.map +1 -1
  86. package/dist/js/core/components/ui/image/image.js +9 -37
  87. package/dist/js/core/components/ui/image/image.js.map +1 -1
  88. package/dist/js/core/components/ui/link/link.js +25 -26
  89. package/dist/js/core/components/ui/link/link.js.map +1 -1
  90. package/dist/js/core/components/ui/modal/modal-close.js +3 -12
  91. package/dist/js/core/components/ui/modal/modal-close.js.map +1 -1
  92. package/dist/js/core/components/ui/modal/modal.js +18 -18
  93. package/dist/js/core/components/ui/modal/modal.js.map +1 -1
  94. package/dist/js/core/components/ui/pop/pop.js +131 -112
  95. package/dist/js/core/components/ui/pop/pop.js.map +1 -1
  96. package/dist/js/core/components/ui/table/table.js.map +1 -1
  97. package/dist/js/core/components/ui/theme/theme.js +1 -1
  98. package/dist/js/core/components/ui/toast/dismissed.js +9 -0
  99. package/dist/js/core/components/ui/toast/dismissed.js.map +1 -0
  100. package/dist/js/core/components/ui/toast/render-content.js +14 -0
  101. package/dist/js/core/components/ui/toast/render-content.js.map +1 -0
  102. package/dist/js/core/components/ui/toast/toast-item.js +150 -96
  103. package/dist/js/core/components/ui/toast/toast-item.js.map +1 -1
  104. package/dist/js/core/components/ui/toast/toast.js +41 -13
  105. package/dist/js/core/components/ui/toast/toast.js.map +1 -1
  106. package/dist/js/core/components/ui/tooltip/tooltip.js +144 -143
  107. package/dist/js/core/components/ui/tooltip/tooltip.js.map +1 -1
  108. package/dist/js/core/decorators/subscriber/ancestorAttribute.js.map +1 -1
  109. package/dist/js/core/decorators/subscriber/derive.js +3 -1
  110. package/dist/js/core/decorators/subscriber/derive.js.map +1 -1
  111. package/dist/js/core/mixins/Fetcher.js.map +1 -1
  112. package/dist/js/core/mixins/FormCheckable.js +1 -8
  113. package/dist/js/core/mixins/FormCheckable.js.map +1 -1
  114. package/dist/js/core/mixins/FormElement.js +26 -53
  115. package/dist/js/core/mixins/FormElement.js.map +1 -1
  116. package/dist/js/core/utils/AncestorAttributeObserver.js +130 -55
  117. package/dist/js/core/utils/AncestorAttributeObserver.js.map +1 -1
  118. package/dist/js/core/utils/LocationHandler.js +1 -1
  119. package/dist/js/core/utils/LocationHandler.js.map +1 -1
  120. package/dist/js/core/utils/dismissed.js +23 -0
  121. package/dist/js/core/utils/dismissed.js.map +1 -0
  122. package/dist/js/core/utils/positioning.js +110 -0
  123. package/dist/js/core/utils/positioning.js.map +1 -0
  124. package/dist/js/directives.js +1 -2
  125. package/dist/js/directives.js.map +1 -1
  126. package/dist/types/addons/interactive.d.ts +6 -0
  127. package/dist/types/addons/interactive.d.ts.map +1 -0
  128. package/dist/types/core/components/functional/if/if.d.ts +14 -5
  129. package/dist/types/core/components/functional/if/if.d.ts.map +1 -1
  130. package/dist/types/core/components/functional/interactive/action.d.ts +22 -0
  131. package/dist/types/core/components/functional/interactive/action.d.ts.map +1 -0
  132. package/dist/types/core/components/functional/interactive/gamepad.d.ts +37 -0
  133. package/dist/types/core/components/functional/interactive/gamepad.d.ts.map +1 -0
  134. package/dist/types/core/components/functional/interactive/gesture.d.ts +26 -0
  135. package/dist/types/core/components/functional/interactive/gesture.d.ts.map +1 -0
  136. package/dist/types/core/components/functional/interactive/helpers.d.ts +23 -0
  137. package/dist/types/core/components/functional/interactive/helpers.d.ts.map +1 -0
  138. package/dist/types/core/components/functional/interactive/index.d.ts +20 -0
  139. package/dist/types/core/components/functional/interactive/index.d.ts.map +1 -0
  140. package/dist/types/core/components/functional/interactive/keyboard.d.ts +37 -0
  141. package/dist/types/core/components/functional/interactive/keyboard.d.ts.map +1 -0
  142. package/dist/types/core/components/functional/interactive/matrix.d.ts +31 -0
  143. package/dist/types/core/components/functional/interactive/matrix.d.ts.map +1 -0
  144. package/dist/types/core/components/functional/interactive/registry.d.ts +23 -0
  145. package/dist/types/core/components/functional/interactive/registry.d.ts.map +1 -0
  146. package/dist/types/core/components/functional/interactive/store.d.ts +46 -0
  147. package/dist/types/core/components/functional/interactive/store.d.ts.map +1 -0
  148. package/dist/types/core/components/functional/interactive/ticker.d.ts +33 -0
  149. package/dist/types/core/components/functional/interactive/ticker.d.ts.map +1 -0
  150. package/dist/types/core/components/functional/value/value.d.ts +6 -0
  151. package/dist/types/core/components/functional/value/value.d.ts.map +1 -1
  152. package/dist/types/core/components/ui/_css/rounded.d.ts +3 -0
  153. package/dist/types/core/components/ui/_css/rounded.d.ts.map +1 -0
  154. package/dist/types/core/components/ui/_css/type.d.ts +13 -0
  155. package/dist/types/core/components/ui/_css/type.d.ts.map +1 -1
  156. package/dist/types/core/components/ui/_i18n/ui-aria-labels.d.ts +83 -0
  157. package/dist/types/core/components/ui/_i18n/ui-aria-labels.d.ts.map +1 -0
  158. package/dist/types/core/components/ui/alert/alert.d.ts +14 -12
  159. package/dist/types/core/components/ui/alert/alert.d.ts.map +1 -1
  160. package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts.map +1 -1
  161. package/dist/types/core/components/ui/badge/badge.d.ts +1 -1
  162. package/dist/types/core/components/ui/badge/badge.d.ts.map +1 -1
  163. package/dist/types/core/components/ui/button/button.d.ts +13 -29
  164. package/dist/types/core/components/ui/button/button.d.ts.map +1 -1
  165. package/dist/types/core/components/ui/card/card-header.d.ts.map +1 -1
  166. package/dist/types/core/components/ui/divider/divider.d.ts +2 -1
  167. package/dist/types/core/components/ui/divider/divider.d.ts.map +1 -1
  168. package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts +25 -73
  169. package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts.map +1 -1
  170. package/dist/types/core/components/ui/form/input/input.d.ts +14 -29
  171. package/dist/types/core/components/ui/form/input/input.d.ts.map +1 -1
  172. package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +63 -65
  173. package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts.map +1 -1
  174. package/dist/types/core/components/ui/form/radio/radio.d.ts +1 -1
  175. package/dist/types/core/components/ui/form/select/select.d.ts +3 -5
  176. package/dist/types/core/components/ui/form/select/select.d.ts.map +1 -1
  177. package/dist/types/core/components/ui/form/textarea/textarea.d.ts +12 -28
  178. package/dist/types/core/components/ui/form/textarea/textarea.d.ts.map +1 -1
  179. package/dist/types/core/components/ui/image/image.d.ts +2 -1
  180. package/dist/types/core/components/ui/image/image.d.ts.map +1 -1
  181. package/dist/types/core/components/ui/link/link.d.ts +10 -9
  182. package/dist/types/core/components/ui/link/link.d.ts.map +1 -1
  183. package/dist/types/core/components/ui/modal/modal-close.d.ts +2 -2
  184. package/dist/types/core/components/ui/modal/modal-close.d.ts.map +1 -1
  185. package/dist/types/core/components/ui/pop/pop.d.ts +12 -4
  186. package/dist/types/core/components/ui/pop/pop.d.ts.map +1 -1
  187. package/dist/types/core/components/ui/table/table.d.ts +2 -1
  188. package/dist/types/core/components/ui/table/table.d.ts.map +1 -1
  189. package/dist/types/core/components/ui/toast/dismissed.d.ts +3 -0
  190. package/dist/types/core/components/ui/toast/dismissed.d.ts.map +1 -0
  191. package/dist/types/core/components/ui/toast/render-content.d.ts +7 -0
  192. package/dist/types/core/components/ui/toast/render-content.d.ts.map +1 -0
  193. package/dist/types/core/components/ui/toast/toast-item.d.ts +26 -9
  194. package/dist/types/core/components/ui/toast/toast-item.d.ts.map +1 -1
  195. package/dist/types/core/components/ui/toast/toast.d.ts +6 -3
  196. package/dist/types/core/components/ui/toast/toast.d.ts.map +1 -1
  197. package/dist/types/core/components/ui/toast/types.d.ts +12 -2
  198. package/dist/types/core/components/ui/toast/types.d.ts.map +1 -1
  199. package/dist/types/core/components/ui/tooltip/tooltip.d.ts +19 -11
  200. package/dist/types/core/components/ui/tooltip/tooltip.d.ts.map +1 -1
  201. package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts +3 -4
  202. package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts.map +1 -1
  203. package/dist/types/core/decorators/subscriber/derive.d.ts.map +1 -1
  204. package/dist/types/core/mixins/FormCheckable.d.ts +10 -27
  205. package/dist/types/core/mixins/FormCheckable.d.ts.map +1 -1
  206. package/dist/types/core/mixins/FormElement.d.ts +21 -10
  207. package/dist/types/core/mixins/FormElement.d.ts.map +1 -1
  208. package/dist/types/core/mixins/FormInput.d.ts +11 -27
  209. package/dist/types/core/mixins/FormInput.d.ts.map +1 -1
  210. package/dist/types/core/utils/AncestorAttributeObserver.d.ts +17 -9
  211. package/dist/types/core/utils/AncestorAttributeObserver.d.ts.map +1 -1
  212. package/dist/types/core/utils/LocationHandler.d.ts +3 -2
  213. package/dist/types/core/utils/LocationHandler.d.ts.map +1 -1
  214. package/dist/types/core/utils/dismissed.d.ts +3 -0
  215. package/dist/types/core/utils/dismissed.d.ts.map +1 -0
  216. package/dist/types/core/utils/positioning.d.ts +44 -0
  217. package/dist/types/core/utils/positioning.d.ts.map +1 -0
  218. package/dist/types/directives.d.ts +1 -3
  219. package/dist/types/directives.d.ts.map +1 -1
  220. package/dist/types/mixins.d.ts +22 -55
  221. package/dist/types/mixins.d.ts.map +1 -1
  222. package/docs/assets/{index-FmK4JaIM.js → index-D8MVWqY6.js} +946 -687
  223. package/docs/assets/index-DiD0qYvE.css +1 -0
  224. package/docs/crawl/core/components/ui/form/input-autocomplete/input-autocomplete.html +17 -85
  225. package/docs/crawl/docs/_misc/formelement-subscriber-removal.html +1 -1
  226. package/docs/crawl/hubs/form-components.html +13 -11
  227. package/docs/docs-mock-api-sw.js +5 -1
  228. package/docs/docs-mock-api-sw.js.map +2 -2
  229. package/docs/index.html +2 -2
  230. package/docs/llms-full.txt +12 -38
  231. package/docs/llms.txt +1 -1
  232. package/docs/src/core/components/functional/sdui/sdui.md +0 -0
  233. package/docs/src/core/components/ui/form/checkbox/checkbox.md +0 -0
  234. package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +14 -118
  235. package/docs/src/docs/_getting-started/create-a-component.md +0 -0
  236. package/docs/src/docs/_misc/formelement-subscriber-removal.md +1 -1
  237. package/docs/src/docs/search/docs-search.json +195 -200
  238. package/docs/src/tsconfig.json +324 -0
  239. package/gitlab/job_tests.sh +25 -12
  240. package/index.html +3 -3
  241. package/package.json +182 -10
  242. package/public/docs-mock-api-sw.js +5 -1
  243. package/public/docs-mock-api-sw.js.map +2 -2
  244. package/scripts/build-addons.mjs +2 -2
  245. package/scripts/post-build.mjs +9 -0
  246. package/src/addons/interactive.ts +5 -0
  247. package/src/core/components/functional/if/if.ts +54 -7
  248. package/src/core/components/functional/interactive/action.ts +84 -0
  249. package/src/core/components/functional/interactive/gamepad.ts +197 -0
  250. package/src/core/components/functional/interactive/gesture.ts +136 -0
  251. package/src/core/components/functional/interactive/helpers.spec.ts +50 -0
  252. package/src/core/components/functional/interactive/helpers.ts +97 -0
  253. package/src/core/components/functional/interactive/index.ts +25 -0
  254. package/src/core/components/functional/interactive/interactive.md +33 -0
  255. package/src/core/components/functional/interactive/keyboard.ts +171 -0
  256. package/src/core/components/functional/interactive/matrix.ts +185 -0
  257. package/src/core/components/functional/interactive/registry.ts +46 -0
  258. package/src/core/components/functional/interactive/store.ts +270 -0
  259. package/src/core/components/functional/interactive/ticker.ts +171 -0
  260. package/src/core/components/functional/list/list.ts +0 -0
  261. package/src/core/components/functional/subscriber/subscriber.ts +0 -0
  262. package/src/core/components/functional/value/value.ts +44 -4
  263. package/src/core/components/ui/_css/rounded.ts +36 -0
  264. package/src/core/components/ui/_css/type.ts +49 -0
  265. package/src/core/components/ui/_i18n/ui-aria-labels.ts +104 -0
  266. package/src/core/components/ui/alert/alert.md +128 -72
  267. package/src/core/components/ui/alert/alert.spec.ts +145 -0
  268. package/src/core/components/ui/alert/alert.ts +86 -91
  269. package/src/core/components/ui/alert-messages/alert-messages.ts +1 -1
  270. package/src/core/components/ui/badge/badge.md +126 -78
  271. package/src/core/components/ui/badge/badge.ts +29 -81
  272. package/src/core/components/ui/button/button.md +1 -0
  273. package/src/core/components/ui/button/button.ts +12 -10
  274. package/src/core/components/ui/card/card-header.ts +7 -2
  275. package/src/core/components/ui/card/card.md +120 -65
  276. package/src/core/components/ui/divider/divider.ts +4 -9
  277. package/src/core/components/ui/form/checkbox/checkbox.md +1 -1
  278. package/src/core/components/ui/form/checkbox/checkbox.ts +4 -20
  279. package/src/core/components/ui/form/fieldset/legend-description.ts +1 -1
  280. package/src/core/components/ui/form/fieldset/legend.ts +1 -1
  281. package/src/core/components/ui/form/input/input.md +1 -1
  282. package/src/core/components/ui/form/input/input.ts +25 -27
  283. package/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +14 -118
  284. package/src/core/components/ui/form/input-autocomplete/input-autocomplete.ts +419 -187
  285. package/src/core/components/ui/form/radio/radio.ts +1 -1
  286. package/src/core/components/ui/form/select/select.ts +3 -6
  287. package/src/core/components/ui/form/textarea/textarea.md +1 -1
  288. package/src/core/components/ui/form/textarea/textarea.ts +1 -2
  289. package/src/core/components/ui/image/image.md +147 -53
  290. package/src/core/components/ui/image/image.ts +10 -44
  291. package/src/core/components/ui/link/link.md +2 -2
  292. package/src/core/components/ui/link/link.ts +42 -37
  293. package/src/core/components/ui/modal/modal-close.ts +8 -12
  294. package/src/core/components/ui/modal/modal.ts +18 -18
  295. package/src/core/components/ui/pop/pop.md +105 -1
  296. package/src/core/components/ui/pop/pop.ts +145 -141
  297. package/src/core/components/ui/table/table.ts +2 -8
  298. package/src/core/components/ui/theme/theme.ts +1 -1
  299. package/src/core/components/ui/toast/dismissed.ts +14 -0
  300. package/src/core/components/ui/toast/render-content.ts +13 -0
  301. package/src/core/components/ui/toast/toast-item.ts +179 -103
  302. package/src/core/components/ui/toast/toast.ts +58 -21
  303. package/src/core/components/ui/toast/types.ts +14 -2
  304. package/src/core/components/ui/tooltip/tooltip.ts +176 -154
  305. package/src/core/decorators/subscriber/ancestorAttribute.spec.ts +26 -0
  306. package/src/core/decorators/subscriber/ancestorAttribute.ts +3 -4
  307. package/src/core/decorators/subscriber/derive.ts +3 -3
  308. package/src/core/mixins/Fetcher.ts +1 -1
  309. package/src/core/mixins/FormCheckable.ts +1 -8
  310. package/src/core/mixins/FormElement.ts +74 -76
  311. package/src/core/mixins/Subscriber.ts +5 -1
  312. package/src/core/utils/AncestorAttributeObserver.ts +183 -70
  313. package/src/core/utils/DataBindObserver.ts +0 -0
  314. package/src/core/utils/LocationHandler.ts +12 -5
  315. package/src/core/utils/Objects.ts +0 -0
  316. package/src/core/utils/dismissed.ts +22 -0
  317. package/src/core/utils/positioning.spec.ts +208 -0
  318. package/src/core/utils/positioning.ts +183 -0
  319. package/src/directives.ts +1 -3
  320. package/src/docs/_core-concept/dataFlow.md +1 -1
  321. package/src/docs/_decorators/ancestor-attribute.md +3 -2
  322. package/src/docs/_getting-started/cdn-addons.md +1 -0
  323. package/src/docs/_getting-started/concorde-outside.md +3 -3
  324. package/src/docs/_misc/formelement-subscriber-removal.md +115 -0
  325. package/src/docs/_misc/html-integration.md +2 -0
  326. package/src/docs/code.ts +3 -1
  327. package/src/docs/components/docs-demo-sources.ts +60 -0
  328. package/src/docs/docs.ts +1 -0
  329. package/src/docs/example/docs-input-autocomplete-demos.ts +110 -0
  330. package/src/docs/mock-api/router.ts +17 -1
  331. package/src/docs/navigation/navigation.ts +8 -0
  332. package/src/docs/search/docs-search.json +956 -243
  333. package/src/docs/tailwind/css/tailwind.css +13 -6
  334. package/src/tsconfig.json +135 -6
  335. package/src/tsconfig.tsbuildinfo +1 -1
  336. package/tailwind.config.js +50 -3
  337. package/vite/config.js +23 -35
  338. package/vite.config.mts +5 -0
  339. package/vitest.setup.ts +49 -13
  340. package/docs/assets/index-BZiZXMU-.css +0 -1
@@ -1,7 +1,7 @@
1
1
  import { LitElement, nothing } from "lit";
2
2
  import "@supersoniks/concorde/core/components/ui/icon/icon";
3
3
  import "@supersoniks/concorde/core/components/ui/toast/toast-item";
4
- import { Toast, ToastStatus } from "@supersoniks/concorde/core/components/ui/toast/types";
4
+ import { Toast, ToastContent, ToastStatus } from "@supersoniks/concorde/core/components/ui/toast/types";
5
5
  export declare class SonicToast extends LitElement {
6
6
  toasts: Toast[];
7
7
  static delegateToasts: boolean;
@@ -9,17 +9,20 @@ export declare class SonicToast extends LitElement {
9
9
  render(): typeof nothing | import("lit-html").TemplateResult<1>;
10
10
  static removeAll(): void;
11
11
  static removeItemsByStatus(status: ToastStatus): void;
12
+ static removeItemById(id: string | number): void;
12
13
  static removeTemporaryItems(): void;
13
14
  static instance?: SonicToast;
14
15
  static getInstance(): SonicToast;
15
16
  static add(conf: Toast): {
16
17
  id: string | number;
17
- text: string;
18
- title: string | undefined;
18
+ text: ToastContent;
19
+ label: ToastContent | undefined;
19
20
  status: ToastStatus;
20
21
  preserve: boolean | undefined;
21
22
  ghost: boolean | undefined;
22
23
  dismissForever: boolean | undefined;
24
+ styleSheet: import("../modal/modal-utils").ModalStyleSheetInput | undefined;
25
+ useSlot: boolean | undefined;
23
26
  } | null | undefined;
24
27
  static handleExistingToastDelegation(): void;
25
28
  static removeItem(toastToRemove?: Toast): void;
@@ -1 +1 @@
1
- {"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/ui/toast/toast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAKhD,OAAO,oDAAoD,CAAC;AAI5D,OAAO,2DAA2D,CAAC;AACnE,OAAO,EACL,KAAK,EACL,WAAW,EACZ,MAAM,sDAAsD,CAAC;AAS9D,qBACa,UAAW,SAAQ,UAAU;IACb,MAAM,EAAE,KAAK,EAAE,CAAM;IAChD,MAAM,CAAC,cAAc,UAAS;IAE9B,gBAAgB;IAIhB,MAAM;IAwEN,MAAM,CAAC,SAAS;IAYhB,MAAM,CAAC,mBAAmB,CAAC,MAAM,EAAE,WAAW;IAgB9C,MAAM,CAAC,oBAAoB;IAe3B,MAAM,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC;IAC7B,MAAM,CAAC,WAAW;IAMlB,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK;;;;;;;;;IAsDtB,MAAM,CAAC,6BAA6B;IAUpC,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,KAAK;IAcvC,UAAU,CAAC,aAAa,CAAC,EAAE,KAAK;CAQjC"}
1
+ {"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/ui/toast/toast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAKhD,OAAO,oDAAoD,CAAC;AAG5D,OAAO,2DAA2D,CAAC;AAGnE,OAAO,EACL,KAAK,EACL,YAAY,EACZ,WAAW,EACZ,MAAM,sDAAsD,CAAC;AA2B9D,qBACa,UAAW,SAAQ,UAAU;IACb,MAAM,EAAE,KAAK,EAAE,CAAM;IAChD,MAAM,CAAC,cAAc,UAAS;IAE9B,gBAAgB;IAIhB,MAAM;IAyEN,MAAM,CAAC,SAAS;IAYhB,MAAM,CAAC,mBAAmB,CAAC,MAAM,EAAE,WAAW;IAe9C,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM;IAezC,MAAM,CAAC,oBAAoB;IAe3B,MAAM,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC;IAC7B,MAAM,CAAC,WAAW;IAMlB,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK;;;;;;;;;;;IAoDtB,MAAM,CAAC,6BAA6B;IAUpC,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,KAAK;IAcvC,UAAU,CAAC,aAAa,CAAC,EAAE,KAAK;CAQjC"}
@@ -1,12 +1,22 @@
1
1
  import { Message } from "@supersoniks/concorde/core/_types/types";
2
+ import { TemplateResult } from "lit";
3
+ import { DirectiveResult } from "lit/directive.js";
4
+ import { ModalStyleSheetInput } from "@supersoniks/concorde/core/components/ui/modal/modal-utils";
2
5
  export type ToastStatus = Message["status"] | "" | "success";
6
+ export type ToastContent = string | TemplateResult | DirectiveResult;
7
+ export type ToastStyleSheetInput = ModalStyleSheetInput;
3
8
  export type Toast = {
4
9
  id?: string | number;
5
- text: string;
6
- title?: string;
10
+ text: ToastContent;
11
+ label?: ToastContent;
12
+ /** @deprecated Utiliser `label`. */
13
+ title?: ToastContent;
7
14
  status?: ToastStatus;
8
15
  preserve?: boolean;
9
16
  ghost?: boolean;
10
17
  dismissForever?: boolean;
18
+ styleSheet?: ToastStyleSheetInput;
19
+ /** Legacy: project text into the light DOM slot instead of the shadow root. */
20
+ useSlot?: boolean;
11
21
  };
12
22
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/ui/toast/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAElE,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC;AAG7D,MAAM,MAA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29 @@
1
1
  import { LitElement, PropertyValues } from "lit";
2
+ import { FloatingPlacement } from "@supersoniks/concorde/core/utils/positioning";
3
+ type TooltipPlacement = FloatingPlacement;
2
4
  export declare class Tooltip extends LitElement {
5
+ static readonly supportsPopover: boolean;
3
6
  static styles: import("lit").CSSResult[];
4
- label: string;
5
- placement?: "top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end";
7
+ label?: string;
8
+ placement?: TooltipPlacement;
6
9
  disabled: boolean;
7
10
  focusable: boolean;
8
- private lastKeyWasTab;
9
- private boundHandleKeyDown;
10
- private boundHandleMouseDown;
11
- constructor();
12
- private handleKeyDown;
13
- private handleMouseDown;
14
- private handleFocusIn;
15
- private handleFocusOut;
11
+ private bubbleEl?;
12
+ private stopPositioning?;
13
+ private get isEffectivelyDisabled();
14
+ private formatLabel;
15
+ private computePosition;
16
+ private showTooltip;
17
+ private hideTooltip;
18
+ private handleBeforeToggle;
19
+ private endPositioning;
20
+ private syncTabIndex;
21
+ /** Fallback natif quand Popover API indisponible */
22
+ private syncNativeTitle;
16
23
  connectedCallback(): void;
17
24
  disconnectedCallback(): void;
18
- protected willUpdate(_changedProperties: PropertyValues): void;
25
+ protected willUpdate(changedProperties: PropertyValues): void;
19
26
  render(): import("lit-html").TemplateResult<1>;
20
27
  }
28
+ export {};
21
29
  //# sourceMappingURL=tooltip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/ui/tooltip/tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAO,cAAc,EAAE,MAAM,KAAK,CAAC;AAG5D,qBACa,OAAQ,SAAQ,UAAU;IACrC,MAAM,CAAC,MAAM,4BA4GX;IAE0B,KAAK,SAAM;IACI,SAAS,CAAC,EACjD,KAAK,GACL,WAAW,GACX,SAAS,GACT,OAAO,GACP,aAAa,GACb,WAAW,GACX,QA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AAoD;IACpD,OAAO,CAAC,eAAe;IASvB,iBAAiB;IAWjB,oBAAoB;IAWpB,SAAS,CAAC,UAAU,CAAC,iBAAiB,EAAE,cAAc,GAAG,IAAI;IA4B7D,MAAM;CAqBP"}
@@ -1,9 +1,8 @@
1
1
  export type AncestorAttributeOptions = {
2
2
  /**
3
- * Si true, le composant reste synchronisé avec les attributs ancêtres via
4
- * `AncestorAttributeObserver` (mutations + reparenting). Requis pour que
5
- * `@bind` / `@subscribe` avec `${dataProvider}` se re-lient quand le scope change.
6
- * Défaut : false (lecture unique au connect, rétrocompat).
3
+ * Si true, reste synchronisé quand un attribut ancêtre change **et** au
4
+ * reparenting (sans flag séparé). MO attributs partagés ; childList seulement
5
+ * sur le parent direct (ignoré pour les siblings). Défaut : false.
7
6
  */
8
7
  dynamic?: boolean;
9
8
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ancestorAttribute.d.ts","sourceRoot":"","sources":["../../../../../src/core/decorators/subscriber/ancestorAttribute.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,wBAAgB,iBAAiB,CAC/B,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,wBAAwB,IAKjB,QAAQ,OAAO,EAAE,aAAa,MAAM,UA4BtD"}
1
+ {"version":3,"file":"ancestorAttribute.d.ts","sourceRoot":"","sources":["../../../../../src/core/decorators/subscriber/ancestorAttribute.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,wBAAgB,iBAAiB,CAC/B,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,wBAAwB,IAKjB,QAAQ,OAAO,EAAE,aAAa,MAAM,UA4BtD"}
@@ -1 +1 @@
1
- {"version":3,"file":"derive.d.ts","sourceRoot":"","sources":["../../../../../src/core/decorators/subscriber/derive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,6BAA6B,CAAC;AAMrC,MAAM,MAAM,sBAAsB,CAChC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,CAAC,EACD,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IACzB;IACF,IAAI,EAAE;SAAG,CAAC,IAAI,MAAM,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAAE,CAAC;IAChD,EAAE,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IACvB,kDAAkD;IAClD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAC5C,SAAS,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;CAChC,CAAC;AAIF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAC7B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,CAAC,EACD,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3B,OAAO,EAAE,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,IACvB,CAAC,SAAS,mBAAmB,CAAC,MAAM,CAAC,EACpD,MAAM,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,KAC9B,IAAI,CA6CR;AAED,0EAA0E;AAC1E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,CAAC"}
1
+ {"version":3,"file":"derive.d.ts","sourceRoot":"","sources":["../../../../../src/core/decorators/subscriber/derive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,6BAA6B,CAAC;AAOrC,MAAM,MAAM,sBAAsB,CAChC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,CAAC,EACD,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IACzB;IACF,IAAI,EAAE;SAAG,CAAC,IAAI,MAAM,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAAE,CAAC;IAChD,EAAE,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IACvB,kDAAkD;IAClD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAC5C,SAAS,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;CAChC,CAAC;AAIF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAC7B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,CAAC,EACD,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3B,OAAO,EAAE,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,IACvB,CAAC,SAAS,mBAAmB,CAAC,MAAM,CAAC,EACpD,MAAM,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,KAC9B,IAAI,CA4CR;AAED,0EAA0E;AAC1E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,CAAC"}
@@ -45,50 +45,33 @@ declare const Form: <T extends Constructor<FormElementInterface>>(superClass: T)
45
45
  unset(): void;
46
46
  disconnectedCallback(): void;
47
47
  connectedCallback(): void;
48
- getFormPublisher(): import("../_types/types").PublisherInterface;
48
+ getFormPublisher(): import("../_types/types").PublisherInterface | null;
49
49
  updateDataValue(): void;
50
50
  handleBlur(e?: Event): void;
51
- setValueFromPublisher(value: import("@supersoniks/concorde/core/mixins/FormElement").FormElementValue): void;
52
51
  setFormPublisherValue(value: import("@supersoniks/concorde/core/mixins/FormElement").FormElementValue): void;
53
52
  getFormPublisherValue(): import("@supersoniks/concorde/core/mixins/FormElement").FormElementValue;
54
53
  unsetOnDisconnect(): boolean;
55
54
  focus?: () => void;
56
- shadowRoot?: ShadowRoot;
55
+ shadowRoot: ShadowRoot | null;
57
56
  error: boolean;
58
57
  autofocus: boolean;
59
58
  required: boolean;
60
59
  disabled: boolean;
61
60
  formDataProvider: string;
62
- ariaLabelledby?: string;
63
- ariaLabel?: string;
61
+ ariaLabel: string | null;
62
+ ariaLabelledby: string | null;
64
63
  _name: string;
65
64
  name: string;
66
- props: import("../_types/types").CoreJSType;
67
- propertyMap: object;
68
- isConnected: boolean;
69
- children: HTMLCollection;
70
- appendChild(node: Node): Node;
71
65
  getAncestorAttributeValue(attributeName: string): string;
72
66
  hasAncestorAttribute(attributeName: string): boolean;
73
- querySelectorAll(selector: string): NodeListOf<Element>;
74
- publisher: import("../_types/types").TypeAndRecordOfType<import("../_types/types").PublisherInterface<PropsType>>;
75
- dataProvider: string | null;
76
- noShadowDom: string | null;
77
- debug: HTMLElement | null;
78
- defferedDebug: boolean | null;
79
- displayContents: boolean;
80
- shouldRenderLazy: boolean;
81
- dispatchEvent(event: Event): void;
82
- setAttribute(name: string, value: string): void;
83
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
84
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
85
- removeAttribute(name: string): void;
86
- initPublisher(): void;
87
- getApiConfiguration(): import("../utils/api").APIConfiguration;
67
+ isConnected: boolean;
88
68
  requestUpdate(): void;
89
- getAttribute(name: string): string;
69
+ getAttribute(name: string): string | null;
90
70
  hasAttribute(attributeName: string): boolean;
91
- getBoundingClientRect(): DOMRect;
71
+ setAttribute(name: string, value: string): void;
72
+ removeAttribute(name: string): void;
73
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
74
+ dispatchEvent(event: Event): void;
92
75
  };
93
76
  } & T;
94
77
  export default Form;
@@ -1 +1 @@
1
- {"version":3,"file":"FormCheckable.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/FormCheckable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAErF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,KAAK,WAAW,CAAC,CAAC,IAAI,KAAK,GAAG,IAAI,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC;AAC1D,QAAA,MAAM,IAAI,GAAI,CAAC,SAAS,WAAW,CAAC,oBAAoB,CAAC,EAAE,YAAY,CAAC;kBADpC,aAAa,EAAE;QAW/C;;WAEG;gBACK,MAAM,GAAG,IAAI;qBACI,MAAM,GAAG,IAAI;4BAGlB,MAAM,GAAG,IAAI;;QAiCjC;;WAEG;gBACkC,IAAI,GAAG,IAAI;QAChD;;WAEG;eACiC,IAAI,GAAG,IAAI;QAE/C;;WAEG;kBACO,IAAI,GAAG,IAAI,GAAG,eAAe;uBACZ,IAAI,GAAG,IAAI,GAAG,eAAe;6BAG5B,IAAI,GAAG,IAAI,GAAG,eAAe;;;iCA0ChC,IAAI,GAAG,IAAI,GAAG,eAAe;;QAsBtD;;;WAGG;;QAwBH;;;;WAIG;yCAC8B,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,IAAI;;;6BAmE/C,OAAO,MAAM;;gCAkBX,IAAI;6BAiBP,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAuC5B,CAAC;AACF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"FormCheckable.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/FormCheckable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAErF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,KAAK,WAAW,CAAC,CAAC,IAAI,KAAK,GAAG,IAAI,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC;AAC1D,QAAA,MAAM,IAAI,GAAI,CAAC,SAAS,WAAW,CAAC,oBAAoB,CAAC,EAAE,YAAY,CAAC;kBADpC,aAAa,EAAE;QAW/C;;WAEG;gBACK,MAAM,GAAG,IAAI;qBACI,MAAM,GAAG,IAAI;4BAGlB,MAAM,GAAG,IAAI;;QAiCjC;;WAEG;gBACkC,IAAI,GAAG,IAAI;QAChD;;WAEG;eACiC,IAAI,GAAG,IAAI;QAE/C;;WAEG;kBACO,IAAI,GAAG,IAAI,GAAG,eAAe;uBACZ,IAAI,GAAG,IAAI,GAAG,eAAe;6BAG5B,IAAI,GAAG,IAAI,GAAG,eAAe;;;iCA0ChC,IAAI,GAAG,IAAI,GAAG,eAAe;;QAiBtD;;;WAGG;;QAwBH;;;;WAIG;yCAC8B,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,IAAI;;;6BAmE/C,OAAO,MAAM;;gCAkBX,IAAI;6BAiBP,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqC5B,CAAC;AACF,eAAe,IAAI,CAAC"}
@@ -1,37 +1,48 @@
1
- import { SubscriberInterface } from "@supersoniks/concorde/core/mixins/Subscriber";
2
- import { PublisherInterface } from "../_types/types";
3
- import { MixinArgsType } from "../_types/types";
1
+ import { LitElement } from "lit";
2
+ import { PublisherInterface, MixinArgsType } from "../_types/types";
4
3
  type Constructor<T> = new (...args: MixinArgsType[]) => T;
5
4
  export type FormElementValue = string | string[] | object | null | undefined;
6
- export interface FormElementInterface extends SubscriberInterface {
7
- getFormPublisher(): PublisherInterface;
5
+ export interface FormElementInterface {
6
+ getFormPublisher(): PublisherInterface | null;
8
7
  updateDataValue(): void;
9
8
  handleChange(e?: Event): void;
10
9
  handleBlur(e?: Event): void;
11
10
  getValueForFormPublisher(): FormElementValue;
12
- setValueFromPublisher(value: FormElementValue): void;
13
11
  setFormPublisherValue(value: FormElementValue): void;
14
12
  getFormPublisherValue(): FormElementValue;
13
+ setFormValueFromPublisher(value: FormElementValue): void;
15
14
  unsetOnDisconnect(): boolean;
16
15
  unset(): void;
17
16
  validateFormElement(): void;
18
17
  focus?: () => void;
19
18
  forceAutoFill: boolean;
20
- shadowRoot?: ShadowRoot;
19
+ shadowRoot: ShadowRoot | null;
21
20
  error: boolean;
22
21
  autofocus: boolean;
23
22
  required: boolean;
24
23
  disabled: boolean;
25
24
  formDataProvider: string;
26
- ariaLabelledby?: string;
27
- ariaLabel?: string;
25
+ ariaLabel: string | null;
26
+ ariaLabelledby: string | null;
28
27
  _value: FormElementValue;
29
28
  get value(): FormElementValue;
30
29
  set value(value: FormElementValue);
31
30
  _name: string;
32
31
  get name(): string;
33
32
  set name(value: string);
33
+ getAncestorAttributeValue(attributeName: string): string;
34
+ hasAncestorAttribute(attributeName: string): boolean;
35
+ isConnected: boolean;
36
+ requestUpdate(): void;
37
+ getAttribute(name: string): string | null;
38
+ hasAttribute(attributeName: string): boolean;
39
+ setAttribute(name: string, value: string): void;
40
+ removeAttribute(name: string): void;
41
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
42
+ dispatchEvent(event: Event): void;
43
+ connectedCallback(): void;
44
+ disconnectedCallback(): void;
34
45
  }
35
- declare const Form: <T extends Constructor<SubscriberInterface>>(superClass: T) => Constructor<FormElementInterface> & T;
46
+ declare const Form: <T extends Constructor<LitElement>>(superClass: T) => Constructor<FormElementInterface> & T;
36
47
  export default Form;
37
48
  //# sourceMappingURL=FormElement.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormElement.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/FormElement.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C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C;IAC1B,oBAAoB,IAAI,IAAI,CAAC;CAC9B;AAID,QAAA,MAAM,IAAI,GAAI,CAAC,SAAS,WAAW,CAAC,UAAU,CAAC,EAAE,YAAY,CAAC,KAyRtC,WAAW,CAAC,oBAAoB,CAAC,GAAG,CAC3D,CAAC;AACF,eAAe,IAAI,CAAC"}
@@ -22,57 +22,41 @@ declare const Form: <T extends Constructor<FormElementInterface>>(superClass: T)
22
22
  status: "default" | "success" | "error" | "warning" | "info";
23
23
  tabindex?: number;
24
24
  autocomplete?: "off" | "on" | "name" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "email" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "url" | "photo";
25
- getFormPublisher(): import("../_types/types").PublisherInterface;
25
+ getFormPublisher(): import("../_types/types").PublisherInterface | null;
26
26
  updateDataValue(): void;
27
27
  handleChange(e?: Event): void;
28
28
  handleBlur(e?: Event): void;
29
29
  getValueForFormPublisher(): import("@supersoniks/concorde/core/mixins/FormElement").FormElementValue;
30
- setValueFromPublisher(value: import("@supersoniks/concorde/core/mixins/FormElement").FormElementValue): void;
31
30
  setFormPublisherValue(value: import("@supersoniks/concorde/core/mixins/FormElement").FormElementValue): void;
32
31
  getFormPublisherValue(): import("@supersoniks/concorde/core/mixins/FormElement").FormElementValue;
32
+ setFormValueFromPublisher(value: import("@supersoniks/concorde/core/mixins/FormElement").FormElementValue): void;
33
33
  unsetOnDisconnect(): boolean;
34
34
  unset(): void;
35
35
  focus?: () => void;
36
- shadowRoot?: ShadowRoot;
36
+ shadowRoot: ShadowRoot | null;
37
37
  error: boolean;
38
38
  autofocus: boolean;
39
39
  required: boolean;
40
40
  disabled: boolean;
41
41
  formDataProvider: string;
42
- ariaLabelledby?: string;
43
- ariaLabel?: string;
42
+ ariaLabel: string | null;
43
+ ariaLabelledby: string | null;
44
44
  _value: import("@supersoniks/concorde/core/mixins/FormElement").FormElementValue;
45
45
  value: import("@supersoniks/concorde/core/mixins/FormElement").FormElementValue;
46
46
  _name: string;
47
47
  name: string;
48
- props: import("../_types/types").CoreJSType;
49
- propertyMap: object;
50
- isConnected: boolean;
51
- children: HTMLCollection;
52
- appendChild(node: Node): Node;
53
48
  getAncestorAttributeValue(attributeName: string): string;
54
49
  hasAncestorAttribute(attributeName: string): boolean;
55
- querySelectorAll(selector: string): NodeListOf<Element>;
56
- publisher: import("../_types/types").TypeAndRecordOfType<import("../_types/types").PublisherInterface<PropsType>>;
57
- dataProvider: string | null;
58
- noShadowDom: string | null;
59
- debug: HTMLElement | null;
60
- defferedDebug: boolean | null;
61
- displayContents: boolean;
62
- shouldRenderLazy: boolean;
63
- dispatchEvent(event: Event): void;
50
+ isConnected: boolean;
51
+ requestUpdate(): void;
52
+ getAttribute(name: string): string | null;
53
+ hasAttribute(attributeName: string): boolean;
64
54
  setAttribute(name: string, value: string): void;
65
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
66
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
67
55
  removeAttribute(name: string): void;
68
- initPublisher(): void;
69
- getApiConfiguration(): import("../utils/api").APIConfiguration;
56
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
57
+ dispatchEvent(event: Event): void;
70
58
  connectedCallback(): void;
71
- requestUpdate(): void;
72
- getAttribute(name: string): string;
73
- hasAttribute(attributeName: string): boolean;
74
59
  disconnectedCallback(): void;
75
- getBoundingClientRect(): DOMRect;
76
60
  };
77
61
  } & T;
78
62
  export default Form;
@@ -1 +1 @@
1
- {"version":3,"file":"FormInput.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/FormInput.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,oBAAoB,EAAC,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE9C,KAAK,WAAW,CAAC,CAAC,IAAI,KAAK,GAAG,IAAI,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC;AAC1D,KAAK,IAAI,GACL,QAAQ,GACR,UAAU,GACV,OAAO,GACP,MAAM,GACN,gBAAgB,GAChB,OAAO,GACP,MAAM,GACN,QAAQ,GACR,OAAO,GACP,OAAO,GACP,QAAQ,GACR,UAAU,GACV,OAAO,GACP,OAAO,GACP,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,MAAM,CAAC;AACX,QAAA,MAAM,IAAI,GAAI,CAAC,SAAS,WAAW,CAAC,oBAAoB,CAAC,EAAE,YAAY,CAAC;kBAE/C,aAAa,EAAE;;;QAYpC;;;WAGG;eACI,IAAI;;;uBASI,MAAM;2BACU,MAAM,GAAG,SAAS;+BAAlB,MAAM,GAAG,SAAS;iBAQxC,MAAM;qBACU,MAAM,GAAG,SAAS;yBAAlB,MAAM,GAAG,SAAS;gBAQM,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM;mBAChE,MAAM;uBAEvC,KAAK,GACL,IAAI,GACJ,MAAM,GACN,kBAAkB,GAClB,YAAY,GACZ,iBAAiB,GACjB,aAAa,GACb,kBAAkB,GAClB,UAAU,GACV,OAAO,GACP,UAAU,GACV,cAAc,GACd,kBAAkB,GAClB,eAAe,GACf,oBAAoB,GACpB,cAAc,GACd,gBAAgB,GAChB,eAAe,GACf,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,SAAS,GACT,cAAc,GACd,aAAa,GACb,SAAS,GACT,eAAe,GACf,oBAAoB,GACpB,gBAAgB,GAChB,WAAW,GACX,QAAQ,GACR,cAAc,GACd,aAAa,GACb,QAAQ,GACR,SAAS,GACT,sBAAsB,GACtB,oBAAoB,GACpB,UAAU,GACV,MAAM,GACN,UAAU,GACV,YAAY,GACZ,WAAW,GACX,KAAK,GACL,KAAK,GACL,kBAAkB,GAClB,cAAc,GACd,eAAe,GACf,WAAW,GACX,eAAe,GACf,MAAM,GACN,KAAK,GACL,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAId,CAAC;AACF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"FormInput.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/FormInput.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,oBAAoB,EAAC,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE9C,KAAK,WAAW,CAAC,CAAC,IAAI,KAAK,GAAG,IAAI,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC;AAC1D,KAAK,IAAI,GACL,QAAQ,GACR,UAAU,GACV,OAAO,GACP,MAAM,GACN,gBAAgB,GAChB,OAAO,GACP,MAAM,GACN,QAAQ,GACR,OAAO,GACP,OAAO,GACP,QAAQ,GACR,UAAU,GACV,OAAO,GACP,OAAO,GACP,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,MAAM,CAAC;AACX,QAAA,MAAM,IAAI,GAAI,CAAC,SAAS,WAAW,CAAC,oBAAoB,CAAC,EAAE,YAAY,CAAC;kBAE/C,aAAa,EAAE;;;QAYpC;;;WAGG;eACI,IAAI;;;uBASI,MAAM;2BACU,MAAM,GAAG,SAAS;+BAAlB,MAAM,GAAG,SAAS;iBAQxC,MAAM;qBACU,MAAM,GAAG,SAAS;yBAAlB,MAAM,GAAG,SAAS;gBAQM,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM;mBAChE,MAAM;uBAEvC,KAAK,GACL,IAAI,GACJ,MAAM,GACN,kBAAkB,GAClB,YAAY,GACZ,iBAAiB,GACjB,aAAa,GACb,kBAAkB,GAClB,UAAU,GACV,OAAO,GACP,UAAU,GACV,cAAc,GACd,kBAAkB,GAClB,eAAe,GACf,oBAAoB,GACpB,cAAc,GACd,gBAAgB,GAChB,eAAe,GACf,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,SAAS,GACT,cAAc,GACd,aAAa,GACb,SAAS,GACT,eAAe,GACf,oBAAoB,GACpB,gBAAgB,GAChB,WAAW,GACX,QAAQ,GACR,cAAc,GACd,aAAa,GACb,QAAQ,GACR,SAAS,GACT,sBAAsB,GACtB,oBAAoB,GACpB,UAAU,GACV,MAAM,GACN,UAAU,GACV,YAAY,GACZ,WAAW,GACX,KAAK,GACL,KAAK,GACL,kBAAkB,GAClB,cAAc,GACd,eAAe,GACf,WAAW,GACX,eAAe,GACf,MAAM,GACN,KAAK,GACL,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAId,CAAC;AACF,eAAe,IAAI,CAAC"}
@@ -1,13 +1,14 @@
1
1
  /**
2
2
  * Observateur pour `@ancestorAttribute({ dynamic: true })`.
3
3
  *
4
- * Un MutationObserver sur `document` ne voit pas les mutations dans les shadow
5
- * roots (Lit par défaut). Chaque abonnement observe donc directement les nœuds
6
- * de sa chaîne d'ancêtres (composant → parent → … → host shadow), comme
7
- * `watchScopedConfiguration` dans `api.ts`.
4
+ * ## Perf (FF / listes denses d'icônes)
5
+ * Ancien modèle : 1 MO/abonnement avec `childList` sur **toute** la chaîne +
6
+ * `reconnect()` à chaque mutation → O(n²) quand une list insert des siblings.
8
7
  *
9
- * Après un `childList` (wrapper plus proche, reparenting), la chaîne est
10
- * recalculée pour écouter les nouveaux ancêtres.
8
+ * Modèle actuel :
9
+ * 1. **MO attributs partagés** — 1 observer par `(ancêtre, attributeName)`.
10
+ * 2. **Reparent** — 1 MO `childList` partagé sur le parent direct ; on ne
11
+ * réagit que si *notre* nœud est dans added/removed (insert sibling → no-op).
11
12
  */
12
13
  type SyncOptions = {
13
14
  /** En mode dynamique : écrire `null` si l'attribut ancêtre disparaît. */
@@ -16,19 +17,26 @@ type SyncOptions = {
16
17
  /**
17
18
  * Point unique de synchronisation DOM → propriété du composant.
18
19
  * N'assigne que si la valeur change (`Object.is`) pour limiter les re-renders Lit
19
- * et éviter de reboucler inutilement `observeDynamicProperty` (@bind / @subscribe).
20
+ * et éviter de reboucler inutilement `observeDynamicProperty` (@bind / `@subscribe`).
20
21
  */
21
22
  export declare function syncAncestorAttributeValue(component: object, attributeName: string, propertyKey: string, options: SyncOptions): void;
22
23
  export default class AncestorAttributeObserver {
23
24
  private static subscriptions;
24
25
  private static pendingRefresh;
25
26
  private static animationFrameId;
27
+ private static attrSlots;
28
+ private static parentSlots;
26
29
  /**
27
- * Enregistre un composant en mode `{ dynamic: true }`.
30
+ * Enregistre un composant en mode `{ dynamic: true }` (attributs + reparent).
28
31
  * Le `unsubscribe` retourné doit être appelé au `disconnectedCallback`.
29
32
  */
30
33
  static subscribe(component: HTMLElement, attributeName: string, propertyKey: string, syncOptions?: SyncOptions): () => void;
31
- /** Coupe les observateurs et retire l'abonnement (pas de fuite après disconnect). */
34
+ private static bindSubscription;
35
+ private static unbindWatchers;
36
+ private static addAttrSlot;
37
+ private static removeAttrSlot;
38
+ private static addParentSlot;
39
+ private static removeParentSlot;
32
40
  private static unsubscribe;
33
41
  private static scheduleRefresh;
34
42
  private static cancelScheduledRefresh;
@@ -1 +1 @@
1
- {"version":3,"file":"AncestorAttributeObserver.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/AncestorAttributeObserver.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,KAAK,WAAW,GAAG;IACjB,yEAAyE;IACzE,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAyEF;;;;GAIG;AACH,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,WAAW,GACnB,IAAI,CAUN;AAED,MAAM,CAAC,OAAO,OAAO,yBAAyB;IAC5C,OAAO,CAAC,MAAM,CAAC,aAAa,CAA2B;IACvD,OAAO,CAAC,MAAM,CAAC,cAAc,CAA2B;IACxD,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAuB;IAEtD;;;OAGG;IACH,MAAM,CAAC,SAAS,CACd,SAAS,EAAE,WAAW,EACtB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,WAAW,GAAE,WAAkC,GAC9C,MAAM,IAAI;IAyBb,qFAAqF;IACrF,OAAO,CAAC,MAAM,CAAC,WAAW;IAc1B,OAAO,CAAC,MAAM,CAAC,eAAe;IAQ9B,OAAO,CAAC,MAAM,CAAC,sBAAsB;IAQrC,OAAO,CAAC,MAAM,CAAC,YAAY;CAgB5B"}
1
+ {"version":3,"file":"AncestorAttributeObserver.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/AncestorAttributeObserver.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AAEH,KAAK,WAAW,GAAG;IACjB,yEAAyE;IACzE,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AA2CF;;;;GAIG;AACH,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,WAAW,GACnB,IAAI,CAUN;AAED,MAAM,CAAC,OAAO,OAAO,yBAAyB;IAC5C,OAAO,CAAC,MAAM,CAAC,aAAa,CAA2B;IACvD,OAAO,CAAC,MAAM,CAAC,cAAc,CAA2B;IACxD,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAuB;IAEtD,OAAO,CAAC,MAAM,CAAC,SAAS,CAAiD;IACzE,OAAO,CAAC,MAAM,CAAC,WAAW,CAAsC;IAEhE;;;OAGG;IACH,MAAM,CAAC,SAAS,CACd,SAAS,EAAE,WAAW,EACtB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,WAAW,GAAE,WAAkC,GAC9C,MAAM,IAAI;IAkBb,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAwB/B,OAAO,CAAC,MAAM,CAAC,cAAc;IAmB7B,OAAO,CAAC,MAAM,CAAC,WAAW;IAiC1B,OAAO,CAAC,MAAM,CAAC,cAAc;IAiB7B,OAAO,CAAC,MAAM,CAAC,aAAa;IAuC5B,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAkB/B,OAAO,CAAC,MAAM,CAAC,WAAW;IAY1B,OAAO,CAAC,MAAM,CAAC,eAAe;IAQ9B,OAAO,CAAC,MAAM,CAAC,sBAAsB;IAQrC,OAAO,CAAC,MAAM,CAAC,YAAY;CAe5B"}
@@ -1,12 +1,13 @@
1
1
  import { Route } from "./route";
2
+ export type AutoActiveMode = "strict" | "partial" | "disabled" | "strict-path-only";
2
3
  declare type Listener = {
3
4
  location: string;
4
5
  };
5
- declare type ActivableLink = HTMLElement & {
6
+ export type ActivableLink = HTMLElement & {
6
7
  location?: string;
7
8
  href?: Route | string;
8
9
  goBack?: Route | string | null;
9
- autoActive?: "strict" | "partial" | "disabled" | "strict-path-only";
10
+ autoActive?: AutoActiveMode;
10
11
  setAttribute(name: string, value: string): void;
11
12
  removeAttribute(name: string): void;
12
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"LocationHandler.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/LocationHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OA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AAC;CAClB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC;IAC/B,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAChD,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,eAAe;IAClC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAM;IACvC,MAAM,CAAC,SAAS,UAAS;IACzB,MAAM,CAAC,OAAO,EAAE,MAAM,CAGpB;IACF,MAAM,CAAC,MAAM;IAiBb;;OAEG;IACH,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,QAAQ;IAQnC;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,QAAQ;IASlC;;;;;;;QAOI;IACJ,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,aAAa;IAmDnD;;;;OAIG;IACH,MAAM,CAAC,0BAA0B,CAAC,SAAS,EAAE,aAAa;CA0B3D"}
@@ -0,0 +1,3 @@
1
+ export declare function isDismissed(storageKey: string, id: string | number): boolean;
2
+ export declare function markDismissed(storageKey: string, id: string | number): void;
3
+ //# sourceMappingURL=dismissed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dismissed.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/dismissed.ts"],"names":[],"mappings":"AASA,wBAAgB,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAE5E;AAED,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAQ3E"}
@@ -0,0 +1,44 @@
1
+ import { SearchableDomElement } from "./HTML";
2
+ export type FloatingSide = "top" | "right" | "bottom" | "left";
3
+ export type FloatingAlign = "start" | "center" | "end";
4
+ export type FloatingPlacement = FloatingSide | `${FloatingSide}-${FloatingAlign}`;
5
+ /** Découpe `"côté-alignement"` ; une valeur inconnue retombe sur le défaut. */
6
+ export declare function parsePlacement(placement: string | undefined, defaultSide: FloatingSide, defaultAlign: FloatingAlign): {
7
+ side: FloatingSide;
8
+ align: FloatingAlign;
9
+ };
10
+ export type FloatingBounds = {
11
+ minX: number;
12
+ minY: number;
13
+ maxX: number;
14
+ maxY: number;
15
+ };
16
+ type Rect = Pick<DOMRect, "left" | "top" | "right" | "bottom" | "width" | "height">;
17
+ type Size = Pick<DOMRect, "width" | "height">;
18
+ export declare const supportsPopover: boolean;
19
+ /**
20
+ * Zone dans laquelle un élément flottant doit rester visible :
21
+ * le viewport, restreint par le premier ancêtre qui scrolle ou clippe `node`.
22
+ */
23
+ export declare function getFloatingBounds(node: SearchableDomElement, padding?: number): FloatingBounds;
24
+ /**
25
+ * Position (coordonnées viewport) d'un élément flottant accolé à `anchor` :
26
+ * bascule sur le côté opposé s'il déborde, puis le contraint dans `bounds`.
27
+ * S'il est plus grand que `bounds`, c'est le bord bas / droit qui l'emporte.
28
+ */
29
+ export declare function computeFloatingPosition({ anchor, floating, side, align, gap, bounds, }: {
30
+ anchor: Rect;
31
+ floating: Size;
32
+ side: FloatingSide;
33
+ align?: FloatingAlign;
34
+ gap?: number;
35
+ bounds: FloatingBounds;
36
+ }): {
37
+ side: FloatingSide;
38
+ x: number;
39
+ y: number;
40
+ };
41
+ /** Appelle `callback` à chaque frame ; renvoie la fonction d'arrêt. */
42
+ export declare function startFrameLoop(callback: () => void): () => void;
43
+ export {};
44
+ //# sourceMappingURL=positioning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":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E,IAAI,CAAC;IACf,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;CACxB;;;;EAoBA;AAED,uEAAuE;AACvE,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,IAAI,cAQlD"}
@@ -1,5 +1,4 @@
1
1
  import { dp as pubDp, dataProvider as pubDataProvider, get as pubGet, set as pubSet } from "@supersoniks/concorde/core/utils/PublisherProxy";
2
- import type { DirectiveResult } from "lit/async-directive.js";
3
2
  /**
4
3
  * @deprecated @see pubDp
5
4
  */
@@ -8,8 +7,7 @@ export declare const dp: typeof pubDp;
8
7
  * @deprecated @see pubDataProvider
9
8
  */
10
9
  export declare const dataProvider: typeof pubDataProvider;
11
- export declare const subscribe: DirectiveResult;
12
- export declare const sub: DirectiveResult;
10
+ export { subscribe, sub } from "@supersoniks/concorde/core/directives/DataProvider";
13
11
  /**
14
12
  * @deprecated @see pubGet
15
13
  */
@@ -1 +1 @@
1
- {"version":3,"file":"directives.d.ts","sourceRoot":"","sources":["../../src/directives.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,EAAE,IAAI,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,GAAG,IAAI,MAAM,EAAE,GAAG,IAAI,MAAM,EAAC,MAAM,iDAAiD,CAAC;AAC3I,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAG5D;;GAEG;AACH,eAAO,MAAM,EAAE,cAAQ,CAAC;AACxB;;GAEG;AACH,eAAO,MAAM,YAAY,wBAAkB,CAAC;AAC5C,eAAO,MAAM,SAAS,EAA2B,eAAe,CAAC;AACjE,eAAO,MAAM,GAAG,EAAqB,eAAe,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,GAAG,eAAS,CAAC;AAC1B;;GAEG;AACH,eAAO,MAAM,GAAG,eAAS,CAAC"}
1
+ {"version":3,"file":"directives.d.ts","sourceRoot":"","sources":["../../src/directives.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,EAAE,IAAI,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,GAAG,IAAI,MAAM,EAAE,GAAG,IAAI,MAAM,EAAC,MAAM,iDAAiD,CAAC;AAG3I;;GAEG;AACH,eAAO,MAAM,EAAE,cAAQ,CAAC;AACxB;;GAEG;AACH,eAAO,MAAM,YAAY,wBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,oDAAoD,CAAC;AAEpF;;GAEG;AACH,eAAO,MAAM,GAAG,eAAS,CAAC;AAC1B;;GAEG;AACH,eAAO,MAAM,GAAG,eAAS,CAAC"}