@supersoniks/concorde 4.9.98-visual-stack.1 → 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 (339) 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 +181 -9
  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 +264 -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 +0 -0
  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/concorde-outside.md +3 -3
  323. package/src/docs/_misc/formelement-subscriber-removal.md +115 -0
  324. package/src/docs/_misc/html-integration.md +2 -0
  325. package/src/docs/code.ts +3 -1
  326. package/src/docs/components/docs-demo-sources.ts +60 -0
  327. package/src/docs/docs.ts +1 -0
  328. package/src/docs/example/docs-input-autocomplete-demos.ts +110 -0
  329. package/src/docs/mock-api/router.ts +17 -1
  330. package/src/docs/navigation/navigation.ts +4 -0
  331. package/src/docs/search/docs-search.json +943 -2033
  332. package/src/docs/tailwind/css/tailwind.css +13 -6
  333. package/src/tsconfig.json +135 -6
  334. package/src/tsconfig.tsbuildinfo +1 -1
  335. package/tailwind.config.js +50 -3
  336. package/vite/config.js +23 -35
  337. package/vite.config.mts +5 -0
  338. package/vitest.setup.ts +49 -13
  339. package/docs/assets/index-BZiZXMU-.css +0 -1
@@ -0,0 +1,182 @@
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 { get } from "@supersoniks/concorde/core/utils/PublisherProxy";
10
+ import { dispatch } from "./registry";
11
+ const tagName = "sonic-ticker";
12
+ /**
13
+ * Horloge déclarative : émet `tick` avec `dt` vers un store.
14
+ */
15
+ let SonicTicker = class SonicTicker extends LitElement {
16
+ constructor() {
17
+ super(...arguments);
18
+ this.target = "";
19
+ this.interval = 500;
20
+ /** Chemin dans le DP du store pour l’intervalle (ex. `speed`). */
21
+ this.intervalKey = "";
22
+ /** Chemin booléen pause (ex. `running`). */
23
+ this.runningKey = "";
24
+ /** `interval` | `raf` */
25
+ this.mode = "interval";
26
+ this.dispatchEventFlag = false;
27
+ this.timer = null;
28
+ this.raf = 0;
29
+ this.last = 0;
30
+ this.acc = 0;
31
+ this.onVis = () => {
32
+ if (document.hidden)
33
+ this.stop();
34
+ else
35
+ this.restart();
36
+ };
37
+ }
38
+ connectedCallback() {
39
+ super.connectedCallback();
40
+ document.addEventListener("visibilitychange", this.onVis);
41
+ this.restart();
42
+ }
43
+ disconnectedCallback() {
44
+ document.removeEventListener("visibilitychange", this.onVis);
45
+ this.stop();
46
+ super.disconnectedCallback();
47
+ }
48
+ updated(changed) {
49
+ if (changed.has("interval") ||
50
+ changed.has("mode") ||
51
+ changed.has("target") ||
52
+ changed.has("intervalKey") ||
53
+ changed.has("runningKey")) {
54
+ this.restart();
55
+ }
56
+ }
57
+ stop() {
58
+ if (this.timer != null) {
59
+ clearInterval(this.timer);
60
+ this.timer = null;
61
+ }
62
+ if (this.raf) {
63
+ cancelAnimationFrame(this.raf);
64
+ this.raf = 0;
65
+ }
66
+ this.acc = 0;
67
+ }
68
+ restart() {
69
+ this.stop();
70
+ if (!this.target || document.hidden)
71
+ return;
72
+ this.last = performance.now();
73
+ if (this.mode === "raf") {
74
+ const loop = (now) => {
75
+ this.raf = requestAnimationFrame(loop);
76
+ if (!this.isRunning()) {
77
+ this.last = now;
78
+ return;
79
+ }
80
+ const raw = Math.min(100, now - this.last);
81
+ this.last = now;
82
+ this.acc += raw;
83
+ const ms = this.currentInterval();
84
+ while (this.acc >= ms) {
85
+ this.acc -= ms;
86
+ this.emit(ms);
87
+ }
88
+ };
89
+ this.raf = requestAnimationFrame(loop);
90
+ return;
91
+ }
92
+ this.timer = window.setInterval(() => {
93
+ if (!this.isRunning())
94
+ return;
95
+ const now = performance.now();
96
+ const dt = Math.min(1000, now - this.last);
97
+ this.last = now;
98
+ this.emit(dt);
99
+ }, this.currentInterval());
100
+ }
101
+ currentInterval() {
102
+ let ms = this.interval;
103
+ if (this.intervalKey && this.target) {
104
+ try {
105
+ const state = get(this.target);
106
+ const v = this.path(state, this.intervalKey);
107
+ if (typeof v === "number" && Number.isFinite(v))
108
+ ms = v;
109
+ }
110
+ catch {
111
+ /* keep */
112
+ }
113
+ }
114
+ return Math.max(16, ms);
115
+ }
116
+ isRunning() {
117
+ if (!this.runningKey || !this.target)
118
+ return true;
119
+ try {
120
+ const state = get(this.target);
121
+ return Boolean(this.path(state, this.runningKey));
122
+ }
123
+ catch {
124
+ return true;
125
+ }
126
+ }
127
+ path(obj, path) {
128
+ if (!obj || typeof obj !== "object")
129
+ return undefined;
130
+ let cur = obj;
131
+ for (const p of path.split(".").filter(Boolean)) {
132
+ if (cur == null)
133
+ return undefined;
134
+ cur = cur[p];
135
+ }
136
+ return cur;
137
+ }
138
+ emit(dt) {
139
+ const action = { type: "tick", payload: { dt }, dt };
140
+ if (this.target)
141
+ dispatch(this.target, action);
142
+ if (this.dispatchEventFlag) {
143
+ this.dispatchEvent(new CustomEvent("sonic-action", {
144
+ detail: action,
145
+ bubbles: true,
146
+ composed: true,
147
+ }));
148
+ }
149
+ }
150
+ render() {
151
+ return html ``;
152
+ }
153
+ };
154
+ SonicTicker.styles = css `
155
+ :host {
156
+ display: contents;
157
+ }
158
+ `;
159
+ __decorate([
160
+ property({ type: String })
161
+ ], SonicTicker.prototype, "target", void 0);
162
+ __decorate([
163
+ property({ type: Number })
164
+ ], SonicTicker.prototype, "interval", void 0);
165
+ __decorate([
166
+ property({ type: String, attribute: "interval-key" })
167
+ ], SonicTicker.prototype, "intervalKey", void 0);
168
+ __decorate([
169
+ property({ type: String, attribute: "running-key" })
170
+ ], SonicTicker.prototype, "runningKey", void 0);
171
+ __decorate([
172
+ property({ type: String })
173
+ ], SonicTicker.prototype, "mode", void 0);
174
+ __decorate([
175
+ property({ type: Boolean, attribute: "dispatch-event" })
176
+ ], SonicTicker.prototype, "dispatchEventFlag", void 0);
177
+ SonicTicker = __decorate([
178
+ customElement(tagName)
179
+ ], SonicTicker);
180
+ export { SonicTicker };
181
+ export default SonicTicker;
182
+ //# sourceMappingURL=ticker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ticker.js","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/ticker.ts"],"names":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C,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,EAAE,CAAC;IAChB,CAAC;;AA3JM,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;6CACZ;AAIf;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;gDACrC;AAIjB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;+CACrC;AAIhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yCACW;AAGtC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;sDAC/B;AA1Bf,WAAW;IADvB,aAAa,CAAC,OAAO,CAAC;GACV,WAAW,CA6JvB;;AAED,eAAe,WAAW,CAAC"}
@@ -5,22 +5,67 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
7
  import { LitElement, html } from "lit";
8
- import { customElement } from "lit/decorators.js";
8
+ import { customElement, property } from "lit/decorators.js";
9
9
  import { Subscriber } from "@supersoniks/concorde/mixins";
10
10
  import { unsafeHTML } from "lit/directives/unsafe-html.js";
11
- const tagName = "sonic-value"; // For Astro.build
11
+ const tagName = "sonic-value";
12
+ /**
13
+ * Affiche une valeur du DataProvider (`key`).
14
+ * `format="00000"` pad numérique, ou `format="intl:fr-FR"` / `format="intl:fr-FR:currency:EUR"`.
15
+ */
12
16
  let SonicValue = class SonicValue extends Subscriber(LitElement) {
17
+ constructor() {
18
+ super(...arguments);
19
+ this.format = "";
20
+ }
13
21
  connectedCallback() {
14
22
  this.setAttribute("subDataProvider", this.getAttribute("key"));
15
23
  super.connectedCallback();
16
24
  }
25
+ formatted() {
26
+ const raw = this.props;
27
+ if (typeof raw === "object" || raw === undefined)
28
+ return "";
29
+ const s = String(raw);
30
+ if (!this.format)
31
+ return s;
32
+ if (this.format.startsWith("intl:")) {
33
+ const parts = this.format.slice(5).split(":");
34
+ const locale = parts[0] || "fr-FR";
35
+ const style = parts[1];
36
+ const currency = parts[2] || "EUR";
37
+ const n = Number(raw);
38
+ if (!Number.isFinite(n))
39
+ return s;
40
+ if (style === "currency") {
41
+ return new Intl.NumberFormat(locale, { style: "currency", currency }).format(n);
42
+ }
43
+ if (style === "percent") {
44
+ return new Intl.NumberFormat(locale, { style: "percent" }).format(n);
45
+ }
46
+ return new Intl.NumberFormat(locale).format(n);
47
+ }
48
+ // pad pattern like 00000
49
+ if (/^0+$/.test(this.format)) {
50
+ const n = Math.floor(Number(raw));
51
+ if (!Number.isFinite(n))
52
+ return s;
53
+ return String(n).padStart(this.format.length, "0");
54
+ }
55
+ return s;
56
+ }
17
57
  render() {
18
- if (typeof this.props === "object" || this.props === undefined)
58
+ if (typeof this.props === "object" || this.props === undefined) {
19
59
  return html `<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`;
20
- return html `${unsafeHTML(this.props.toString())}<slot name="prefix"></slot><slot></slot
60
+ }
61
+ const text = this.format ? this.formatted() : this.props.toString();
62
+ return html `${unsafeHTML(text)}<slot name="prefix"></slot><slot></slot
21
63
  ><slot name="suffix"></slot>`;
22
64
  }
23
65
  };
66
+ __decorate([
67
+ property({ type: String })
68
+ ], SonicValue.prototype, "format", void 0);
24
69
  SonicValue = __decorate([
25
70
  customElement(tagName)
26
71
  ], SonicValue);
@@ -1 +1 @@
1
- {"version":3,"file":"value.js","sourceRoot":"","sources":["../../../../../../src/core/components/functional/value/value.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,KAAK,CAAC;AACrC,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,UAAU,EAAC,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAC,UAAU,EAAC,MAAM,+BAA+B,CAAC;AACzD,MAAM,OAAO,GAAG,aAAa,CAAC,CAAC,kBAAkB;AAE1C,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,UAAU,CAAC,UAAU,CAAC;IACpD,iBAAiB;QACf,IAAI,CAAC,YAAY,CAAC,iBAAiB,EAAE,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;QAC/D,KAAK,CAAC,iBAAiB,EAAE,CAAC;IAC5B,CAAC;IACD,MAAM;QACJ,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS;YAC5D,OAAO,IAAI,CAAA,qEAAqE,CAAC;QACnF,OAAO,IAAI,CAAA,GAAG,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;mCAChB,CAAC;IAClC,CAAC;CACF,CAAA;AAXY,UAAU;IADtB,aAAa,CAAC,OAAO,CAAC;GACV,UAAU,CAWtB"}
1
+ {"version":3,"file":"value.js","sourceRoot":"","sources":["../../../../../../src/core/components/functional/value/value.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,KAAK,CAAC;AACrC,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAC,UAAU,EAAC,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAC,UAAU,EAAC,MAAM,+BAA+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UAAU;IADtB,aAAa,CAAC,OAAO,CAAC;GACV,UAAU,CA6CtB"}
@@ -0,0 +1,34 @@
1
+ import { css } from "lit";
2
+ export const hostRounded = css `
3
+ :host {
4
+ --sc-_rounded: 0;
5
+ border-radius: var(--sc-_rounded);
6
+ }
7
+ :host([rounded]),
8
+ :host([rounded="base"]) {
9
+ --sc-_rounded: var(--sc-rounded);
10
+ overflow: hidden;
11
+ }
12
+ :host([rounded="sm"]) {
13
+ --sc-_rounded: var(--sc-rounded-sm);
14
+ }
15
+
16
+ :host([rounded="md"]) {
17
+ --sc-_rounded: var(--sc-rounded-md);
18
+ }
19
+
20
+ :host([rounded="lg"]) {
21
+ --sc-_rounded: var(--sc-rounded-lg);
22
+ }
23
+ :host([rounded="xl"]) {
24
+ --sc-_rounded: var(--sc-rounded-xl);
25
+ }
26
+
27
+ :host([rounded="full"]) {
28
+ --sc-_rounded: 50% !important;
29
+ }
30
+ :host([rounded="none"]) {
31
+ --sc-_rounded: 0 !important;
32
+ }
33
+ `;
34
+ //# sourceMappingURL=rounded.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rounded.js","sourceRoot":"","sources":["../../../../../../src/core/components/ui/_css/rounded.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAI1B,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+B7B,CAAC"}
@@ -1,4 +1,48 @@
1
1
  import { css } from "lit";
2
+ /** Icônes pour les composants à `status` (API messages, alert, toast). */
3
+ export const statusIcon = {
4
+ default: "info-empty",
5
+ info: "info-empty",
6
+ success: "check-circled-outline",
7
+ warning: "warning-circled-outline",
8
+ error: "warning-circled-outline",
9
+ };
10
+ export function toStatus(value) {
11
+ if (!value)
12
+ return undefined;
13
+ if (value === "danger")
14
+ return "error";
15
+ return value in statusIcon ? value : undefined;
16
+ }
17
+ export function statusAriaRole(status) {
18
+ return status === "error" ? "alert" : "status";
19
+ }
20
+ export function statusAriaLive(status) {
21
+ return status === "error" ? null : "polite";
22
+ }
23
+ export const statusColor = css `
24
+ :host {
25
+ --sc-_color: var(--sc-base-content, #000);
26
+ color: var(--sc-_color);
27
+ }
28
+
29
+ :host([status="warning"]) {
30
+ --sc-_color: var(--sc-warning, var(--sc-base-content, #000));
31
+ }
32
+ :host([status="error"]) {
33
+ --sc-_color: var(--sc-danger, var(--sc-base-content, #000));
34
+ }
35
+ :host([status="info"]) {
36
+ --sc-_color: var(--sc-info, var(--sc-base-content, #000));
37
+ }
38
+ :host([status="success"]) {
39
+ --sc-_color: var(--sc-success, var(--sc-base-content, #000));
40
+ }
41
+
42
+ .inherit-color {
43
+ color: var(--sc-_color);
44
+ }
45
+ `;
2
46
  export const typeColor = css `
3
47
  :host {
4
48
  --sc-_color: inherit;
@@ -1 +1 @@
1
- {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../../src/core/components/ui/_css/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;CAyB3B,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+DzB,CAAC"}
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../../src/core/components/ui/_css/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,0EAA0E;AAC1E,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,OAAO,EAAE,YAAY;IACrB,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,uBAAuB;IAChC,OAAO,EAAE,yBAAyB;IAClC,KAAK,EAAE,yBAAyB;CACjC,CAAC;AAIF,MAAM,UAAU,QAAQ,CAAC,KAAc;IACrC,IAAI,CAAC,KAAK;QAAE,OAAO,SAAS,CAAC;IAC7B,IAAI,KAAK,KAAK,QAAQ;QAAE,OAAO,OAAO,CAAC;IACvC,OAAO,KAAK,IAAI,UAAU,CAAC,CAAC,CAAE,KAAuB,CAAC,CAAC,CAAC,SAAS,CAAC;AACpE,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,MAAsB;IACnD,OAAO,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,MAAsB;IACnD,OAAO,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC9C,CAAC;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;CAsB7B,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;CAyB3B,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+DzB,CAAC"}
@@ -0,0 +1,95 @@
1
+ import HTML from "@supersoniks/concorde/core/utils/HTML";
2
+ const supported = new Set(["en", "fr", "de", "nl", "es", "it"]);
3
+ /** Lit la langue courante à chaque appel (pas d'état par composant). */
4
+ export function resolveUiLabel(dict, lang) {
5
+ const code = (lang ?? HTML.getLanguage() ?? "en").split("-")[0].toLowerCase();
6
+ if (supported.has(code) && dict[code]) {
7
+ return dict[code];
8
+ }
9
+ return dict.en;
10
+ }
11
+ export const uiAriaLabels = {
12
+ closeWindow: {
13
+ en: "Close window",
14
+ fr: "Fermer la fenêtre",
15
+ de: "Fenster schließen",
16
+ nl: "Venster sluiten",
17
+ es: "Cerrar ventana",
18
+ it: "Chiudi finestra",
19
+ },
20
+ closeAlert: {
21
+ en: "Close",
22
+ fr: "Fermer",
23
+ de: "Schließen",
24
+ nl: "Sluiten",
25
+ es: "Cerrar",
26
+ it: "Chiudi",
27
+ },
28
+ showPassword: {
29
+ en: "Show password",
30
+ fr: "Afficher le mot de passe",
31
+ de: "Passwort anzeigen",
32
+ nl: "Wachtwoord tonen",
33
+ es: "Mostrar contraseña",
34
+ it: "Mostra password",
35
+ },
36
+ hidePassword: {
37
+ en: "Hide password",
38
+ fr: "Masquer le mot de passe",
39
+ de: "Passwort ausblenden",
40
+ nl: "Wachtwoord verbergen",
41
+ es: "Ocultar contraseña",
42
+ it: "Nascondi password",
43
+ },
44
+ closeToast: {
45
+ en: "Close notification",
46
+ fr: "Fermer la notification",
47
+ de: "Benachrichtigung schließen",
48
+ nl: "Melding sluiten",
49
+ es: "Cerrar notificación",
50
+ it: "Chiudi notifica",
51
+ },
52
+ closeToastError: {
53
+ en: "Close error message",
54
+ fr: "Fermer le message d'erreur",
55
+ de: "Fehlermeldung schließen",
56
+ nl: "Foutmelding sluiten",
57
+ es: "Cerrar mensaje de error",
58
+ it: "Chiudi messaggio di errore",
59
+ },
60
+ closeToastWarning: {
61
+ en: "Close warning",
62
+ fr: "Fermer l'avertissement",
63
+ de: "Warnung schließen",
64
+ nl: "Waarschuwing sluiten",
65
+ es: "Cerrar advertencia",
66
+ it: "Chiudi avviso",
67
+ },
68
+ closeToastSuccess: {
69
+ en: "Close success message",
70
+ fr: "Fermer le message de succès",
71
+ de: "Erfolgsmeldung schließen",
72
+ nl: "Succesmelding sluiten",
73
+ es: "Cerrar mensaje de éxito",
74
+ it: "Chiudi messaggio di successo",
75
+ },
76
+ closeToastInfo: {
77
+ en: "Close information message",
78
+ fr: "Fermer l'information",
79
+ de: "Information schließen",
80
+ nl: "Informatie sluiten",
81
+ es: "Cerrar información",
82
+ it: "Chiudi informazione",
83
+ },
84
+ };
85
+ const toastCloseByStatus = {
86
+ error: uiAriaLabels.closeToastError,
87
+ warning: uiAriaLabels.closeToastWarning,
88
+ success: uiAriaLabels.closeToastSuccess,
89
+ info: uiAriaLabels.closeToastInfo,
90
+ };
91
+ export function resolveToastCloseLabel(status) {
92
+ const dict = status ? toastCloseByStatus[status] : undefined;
93
+ return resolveUiLabel(dict ?? uiAriaLabels.closeToast);
94
+ }
95
+ //# sourceMappingURL=ui-aria-labels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-aria-labels.js","sourceRoot":"","sources":["../../../../../../src/core/components/ui/_i18n/ui-aria-labels.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,uCAAuC,CAAC;AAOzD,MAAM,SAAS,GAAG,IAAI,GAAG,CAAS,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AAExE,wEAAwE;AACxE,MAAM,UAAU,cAAc,CAAC,IAAiB,EAAE,IAAa;IAC7D,MAAM,IAAI,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,EAAE,IAAI,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAC9E,IAAI,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAc,CAAC,EAAE,CAAC;QAChD,OAAO,IAAI,CAAC,IAAc,CAAE,CAAC;IAC/B,CAAC;IACD,OAAO,IAAI,CAAC,EAAE,CAAC;AACjB,CAAC;AAED,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,WAAW,EAAE;QACX,EAAE,EAAE,cAAc;QAClB,EAAE,EAAE,mBAAmB;QACvB,EAAE,EAAE,mBAAmB;QACvB,EAAE,EAAE,iBAAiB;QACrB,EAAE,EAAE,gBAAgB;QACpB,EAAE,EAAE,iBAAiB;KACtB;IACD,UAAU,EAAE;QACV,EAAE,EAAE,OAAO;QACX,EAAE,EA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