@supersoniks/concorde 5.0.0 → 5.0.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 (314) hide show
  1. package/.gitlab-ci.yml +0 -13
  2. package/build-infos.json +1 -1
  3. package/concorde-core.bundle.js +606 -689
  4. package/concorde-core.es.js +4511 -4329
  5. package/dist/concorde-core.bundle.js +606 -689
  6. package/dist/concorde-core.es.js +4511 -4329
  7. package/gitlab/job_tests.sh +25 -12
  8. package/index.html +3 -3
  9. package/package.json +16 -1
  10. package/scripts/post-build-docs.js +0 -0
  11. package/scripts/post-build.mjs +0 -0
  12. package/src/core/components/functional/fetch/fetch.md +0 -0
  13. package/src/core/components/functional/if/if.md +0 -0
  14. package/src/core/components/functional/list/list.demo.ts +0 -0
  15. package/src/core/components/functional/list/list.md +0 -0
  16. package/src/core/components/functional/list/list.ts +0 -0
  17. package/src/core/components/functional/router/router.md +0 -0
  18. package/src/core/components/functional/router/router.ts +0 -0
  19. package/src/core/components/functional/sdui/sdui.md +0 -0
  20. package/src/core/components/functional/states/states.md +0 -0
  21. package/src/core/components/functional/submit/submit.md +0 -0
  22. package/src/core/components/ui/_css/rounded.ts +36 -0
  23. package/src/core/components/ui/_css/size.ts +0 -0
  24. package/src/core/components/ui/_css/type.ts +49 -0
  25. package/src/core/components/ui/_i18n/ui-aria-labels.ts +104 -0
  26. package/src/core/components/ui/alert/alert.md +128 -72
  27. package/src/core/components/ui/alert/alert.spec.ts +145 -0
  28. package/src/core/components/ui/alert/alert.ts +86 -91
  29. package/src/core/components/ui/alert-messages/alert-messages.ts +1 -1
  30. package/src/core/components/ui/badge/badge.md +126 -78
  31. package/src/core/components/ui/badge/badge.ts +29 -81
  32. package/src/core/components/ui/button/button.md +1 -0
  33. package/src/core/components/ui/button/button.ts +11 -8
  34. package/src/core/components/ui/captcha/altchaStyles.ts +0 -0
  35. package/src/core/components/ui/captcha/captcha.md +0 -0
  36. package/src/core/components/ui/card/card-header.ts +7 -2
  37. package/src/core/components/ui/card/card.md +120 -65
  38. package/src/core/components/ui/divider/divider.ts +4 -9
  39. package/src/core/components/ui/form/fieldset/legend-description.ts +1 -1
  40. package/src/core/components/ui/form/fieldset/legend.ts +1 -1
  41. package/src/core/components/ui/form/input/input.md +1 -1
  42. package/src/core/components/ui/form/input/input.ts +19 -15
  43. package/src/core/components/ui/form/radio/radio.md +0 -0
  44. package/src/core/components/ui/form/select/select.md +0 -0
  45. package/src/core/components/ui/form/switch/switch.md +0 -0
  46. package/src/core/components/ui/form/textarea/textarea.md +1 -1
  47. package/src/core/components/ui/image/image.md +147 -53
  48. package/src/core/components/ui/image/image.ts +10 -44
  49. package/src/core/components/ui/link/link.md +2 -2
  50. package/src/core/components/ui/link/link.ts +42 -37
  51. package/src/core/components/ui/loader/loader.md +0 -0
  52. package/src/core/components/ui/menu/menu.md +0 -0
  53. package/src/core/components/ui/modal/modal-close.ts +8 -12
  54. package/src/core/components/ui/modal/modal.md +0 -0
  55. package/src/core/components/ui/modal/modal.ts +18 -18
  56. package/src/core/components/ui/pop/pop.md +105 -1
  57. package/src/core/components/ui/pop/pop.ts +143 -148
  58. package/src/core/components/ui/table/table-caption.ts +0 -0
  59. package/src/core/components/ui/table/table.md +0 -0
  60. package/src/core/components/ui/table/table.ts +2 -8
  61. package/src/core/components/ui/theme/theme.ts +1 -1
  62. package/src/core/components/ui/toast/dismissed.ts +14 -0
  63. package/src/core/components/ui/toast/toast-item.ts +139 -91
  64. package/src/core/components/ui/toast/toast.ts +4 -7
  65. package/src/core/components/ui/tooltip/tooltip.ts +176 -154
  66. package/src/core/utils/LocationHandler.ts +12 -5
  67. package/src/core/utils/dismissed.ts +22 -0
  68. package/src/core/utils/positioning.spec.ts +208 -0
  69. package/src/core/utils/positioning.ts +183 -0
  70. package/src/core/utils/route.ts +0 -0
  71. package/src/directives.ts +2 -3
  72. package/src/docs/_core-concept/subscriber.md +0 -0
  73. package/src/docs/_getting-started/concorde-outside.md +3 -3
  74. package/src/docs/_getting-started/my-first-subscriber.md +0 -0
  75. package/src/docs/_getting-started/pubsub.md +0 -0
  76. package/src/docs/_getting-started/start.md +0 -0
  77. package/src/docs/code.ts +3 -1
  78. package/src/docs/example/users.ts +0 -0
  79. package/src/docs/search/docs-search.json +651 -21
  80. package/src/docs/search/page.ts +0 -0
  81. package/src/docs/tailwind/css/tailwind.css +13 -6
  82. package/src/tsconfig.json +45 -0
  83. package/src/tsconfig.tsbuildinfo +1 -1
  84. package/tailwind.config.js +50 -3
  85. package/vitest.setup.ts +49 -13
  86. package/.github/workflows/ci.yml +0 -21
  87. package/.github-export-ignore +0 -30
  88. package/CONTRIBUTING.md +0 -59
  89. package/DEV.md +0 -54
  90. package/LICENSE +0 -21
  91. package/OPEN_SOURCE_CHECKPOINT.md +0 -133
  92. package/concorde-3d.bundle.js +0 -3960
  93. package/concorde-3d.es.js +0 -33433
  94. package/concorde-hugging-face-infer.bundle.js +0 -32
  95. package/concorde-hugging-face-infer.es.js +0 -2952
  96. package/concorde-shader.bundle.js +0 -116
  97. package/concorde-shader.es.js +0 -8353
  98. package/concorde-webgpu.bundle.js +0 -307
  99. package/concorde-webgpu.es.js +0 -8627
  100. package/docs/altcha-widget.js +0 -2662
  101. package/docs/assets/index-BZiZXMU-.css +0 -1
  102. package/docs/assets/index-FmK4JaIM.js +0 -11992
  103. package/docs/crawl/core/components/functional/date/date.html +0 -190
  104. package/docs/crawl/core/components/functional/fetch/fetch.html +0 -109
  105. package/docs/crawl/core/components/functional/if/if.html +0 -27
  106. package/docs/crawl/core/components/functional/jsonata/jsonata.html +0 -79
  107. package/docs/crawl/core/components/functional/list/list.html +0 -70
  108. package/docs/crawl/core/components/functional/mix/mix.html +0 -45
  109. package/docs/crawl/core/components/functional/queue/queue.html +0 -96
  110. package/docs/crawl/core/components/functional/router/router.html +0 -106
  111. package/docs/crawl/core/components/functional/sdui/sdui.html +0 -269
  112. package/docs/crawl/core/components/functional/states/states.html +0 -66
  113. package/docs/crawl/core/components/functional/submit/submit.html +0 -160
  114. package/docs/crawl/core/components/functional/subscriber/subscriber.html +0 -67
  115. package/docs/crawl/core/components/functional/value/value.html +0 -51
  116. package/docs/crawl/core/components/ui/alert/alert.html +0 -110
  117. package/docs/crawl/core/components/ui/alert-messages/alert-messages.html +0 -23
  118. package/docs/crawl/core/components/ui/badge/badge.html +0 -119
  119. package/docs/crawl/core/components/ui/button/button.html +0 -149
  120. package/docs/crawl/core/components/ui/captcha/captcha.html +0 -30
  121. package/docs/crawl/core/components/ui/card/card.html +0 -99
  122. package/docs/crawl/core/components/ui/divider/divider.html +0 -58
  123. package/docs/crawl/core/components/ui/form/checkbox/checkbox.html +0 -73
  124. package/docs/crawl/core/components/ui/form/fieldset/fieldset.html +0 -135
  125. package/docs/crawl/core/components/ui/form/form-actions/form-actions.html +0 -79
  126. package/docs/crawl/core/components/ui/form/form-layout/form-layout.html +0 -62
  127. package/docs/crawl/core/components/ui/form/input/input.html +0 -109
  128. package/docs/crawl/core/components/ui/form/input-autocomplete/input-autocomplete.html +0 -106
  129. package/docs/crawl/core/components/ui/form/radio/radio.html +0 -56
  130. package/docs/crawl/core/components/ui/form/select/select.html +0 -73
  131. package/docs/crawl/core/components/ui/form/switch/switch.html +0 -56
  132. package/docs/crawl/core/components/ui/form/textarea/textarea.html +0 -59
  133. package/docs/crawl/core/components/ui/group/group.html +0 -82
  134. package/docs/crawl/core/components/ui/icon/icon.html +0 -133
  135. package/docs/crawl/core/components/ui/image/image.html +0 -110
  136. package/docs/crawl/core/components/ui/link/link.html +0 -42
  137. package/docs/crawl/core/components/ui/loader/loader.html +0 -50
  138. package/docs/crawl/core/components/ui/menu/menu.html +0 -322
  139. package/docs/crawl/core/components/ui/modal/modal.html +0 -117
  140. package/docs/crawl/core/components/ui/pop/pop.html +0 -102
  141. package/docs/crawl/core/components/ui/progress/progress.html +0 -58
  142. package/docs/crawl/core/components/ui/table/table.html +0 -413
  143. package/docs/crawl/core/components/ui/toast/toast.html +0 -122
  144. package/docs/crawl/core/components/ui/tooltip/tooltip.html +0 -79
  145. package/docs/crawl/docs/_core-concept/dataFlow.html +0 -177
  146. package/docs/crawl/docs/_core-concept/overview.html +0 -66
  147. package/docs/crawl/docs/_core-concept/subscriber.html +0 -75
  148. package/docs/crawl/docs/_decorators/ancestor-attribute.html +0 -116
  149. package/docs/crawl/docs/_decorators/auto-subscribe.html +0 -202
  150. package/docs/crawl/docs/_decorators/bind.html +0 -141
  151. package/docs/crawl/docs/_decorators/get.html +0 -149
  152. package/docs/crawl/docs/_decorators/handle.html +0 -165
  153. package/docs/crawl/docs/_decorators/on-assign.html +0 -355
  154. package/docs/crawl/docs/_decorators/patch.html +0 -78
  155. package/docs/crawl/docs/_decorators/post.html +0 -139
  156. package/docs/crawl/docs/_decorators/publish.html +0 -61
  157. package/docs/crawl/docs/_decorators/put.html +0 -78
  158. package/docs/crawl/docs/_decorators/subscribe.html +0 -109
  159. package/docs/crawl/docs/_decorators/wait-for-ancestors.html +0 -137
  160. package/docs/crawl/docs/_directives/sub.html +0 -93
  161. package/docs/crawl/docs/_getting-started/ai-agents.html +0 -173
  162. package/docs/crawl/docs/_getting-started/concorde-manual-install.html +0 -100
  163. package/docs/crawl/docs/_getting-started/concorde-outside.html +0 -58
  164. package/docs/crawl/docs/_getting-started/create-a-component.html +0 -111
  165. package/docs/crawl/docs/_getting-started/my-first-component.html +0 -189
  166. package/docs/crawl/docs/_getting-started/my-first-subscriber.html +0 -110
  167. package/docs/crawl/docs/_getting-started/pubsub.html +0 -62
  168. package/docs/crawl/docs/_getting-started/start.html +0 -76
  169. package/docs/crawl/docs/_getting-started/theming.html +0 -85
  170. package/docs/crawl/docs/_misc/api-configuration.html +0 -149
  171. package/docs/crawl/docs/_misc/dataProviderKey.html +0 -135
  172. package/docs/crawl/docs/_misc/docs-mock-api.html +0 -158
  173. package/docs/crawl/docs/_misc/dynamic-path.html +0 -180
  174. package/docs/crawl/docs/_misc/endpoint.html +0 -50
  175. package/docs/crawl/docs/_misc/formelement-subscriber-removal.html +0 -138
  176. package/docs/crawl/docs/_misc/html-integration.html +0 -48
  177. package/docs/crawl/hubs/decorators.html +0 -547
  178. package/docs/crawl/hubs/form-components.html +0 -357
  179. package/docs/crawl/hubs/remote-data.html +0 -452
  180. package/docs/crawl/index.html +0 -101
  181. package/docs/css/docs.css +0 -0
  182. package/docs/docs-mock-api-sw.js +0 -720
  183. package/docs/docs-mock-api-sw.js.map +0 -7
  184. package/docs/fonts/ClashGrotesk-Bold.eot +0 -0
  185. package/docs/fonts/ClashGrotesk-Bold.ttf +0 -0
  186. package/docs/fonts/ClashGrotesk-Bold.woff +0 -0
  187. package/docs/fonts/ClashGrotesk-Bold.woff2 +0 -0
  188. package/docs/fonts/ClashGrotesk-Extralight.eot +0 -0
  189. package/docs/fonts/ClashGrotesk-Extralight.ttf +0 -0
  190. package/docs/fonts/ClashGrotesk-Extralight.woff +0 -0
  191. package/docs/fonts/ClashGrotesk-Extralight.woff2 +0 -0
  192. package/docs/fonts/ClashGrotesk-Light.eot +0 -0
  193. package/docs/fonts/ClashGrotesk-Light.ttf +0 -0
  194. package/docs/fonts/ClashGrotesk-Light.woff +0 -0
  195. package/docs/fonts/ClashGrotesk-Light.woff2 +0 -0
  196. package/docs/fonts/ClashGrotesk-Medium.eot +0 -0
  197. package/docs/fonts/ClashGrotesk-Medium.ttf +0 -0
  198. package/docs/fonts/ClashGrotesk-Medium.woff +0 -0
  199. package/docs/fonts/ClashGrotesk-Medium.woff2 +0 -0
  200. package/docs/fonts/ClashGrotesk-Regular.eot +0 -0
  201. package/docs/fonts/ClashGrotesk-Regular.ttf +0 -0
  202. package/docs/fonts/ClashGrotesk-Regular.woff +0 -0
  203. package/docs/fonts/ClashGrotesk-Regular.woff2 +0 -0
  204. package/docs/fonts/ClashGrotesk-Semibold.eot +0 -0
  205. package/docs/fonts/ClashGrotesk-Semibold.ttf +0 -0
  206. package/docs/fonts/ClashGrotesk-Semibold.woff +0 -0
  207. package/docs/fonts/ClashGrotesk-Semibold.woff2 +0 -0
  208. package/docs/fonts/ClashGrotesk-Variable.eot +0 -0
  209. package/docs/fonts/ClashGrotesk-Variable.ttf +0 -0
  210. package/docs/fonts/ClashGrotesk-Variable.woff +0 -0
  211. package/docs/fonts/ClashGrotesk-Variable.woff2 +0 -0
  212. package/docs/img/concorde-icon.svg +0 -5
  213. package/docs/img/concorde-logo.svg +0 -1
  214. package/docs/img/concorde.png +0 -0
  215. package/docs/img/concorde_def.png +0 -0
  216. package/docs/img/concorde_seuil.png.webp +0 -0
  217. package/docs/img/concorde_seuil_invert.png +0 -0
  218. package/docs/img/paul_metrand.jpg +0 -0
  219. package/docs/img/paul_metrand_xs.jpg +0 -0
  220. package/docs/index.html +0 -93
  221. package/docs/llms-full.txt +0 -5787
  222. package/docs/llms.txt +0 -104
  223. package/docs/robots.txt +0 -16
  224. package/docs/sitemap.xml +0 -237
  225. package/docs/src/core/components/functional/date/date.md +0 -290
  226. package/docs/src/core/components/functional/fetch/fetch.md +0 -125
  227. package/docs/src/core/components/functional/if/if.md +0 -9
  228. package/docs/src/core/components/functional/jsonata/jsonata.md +0 -56
  229. package/docs/src/core/components/functional/list/list.md +0 -65
  230. package/docs/src/core/components/functional/mix/mix.md +0 -41
  231. package/docs/src/core/components/functional/queue/queue.md +0 -72
  232. package/docs/src/core/components/functional/router/router.md +0 -94
  233. package/docs/src/core/components/functional/sdui/default-library.json +0 -108
  234. package/docs/src/core/components/functional/sdui/example.json +0 -99
  235. package/docs/src/core/components/functional/sdui/sdui.md +0 -356
  236. package/docs/src/core/components/functional/states/states.md +0 -87
  237. package/docs/src/core/components/functional/submit/submit.md +0 -114
  238. package/docs/src/core/components/functional/subscriber/subscriber.md +0 -91
  239. package/docs/src/core/components/functional/value/value.md +0 -35
  240. package/docs/src/core/components/ui/alert/alert.md +0 -121
  241. package/docs/src/core/components/ui/alert-messages/alert-messages.md +0 -0
  242. package/docs/src/core/components/ui/badge/badge.md +0 -127
  243. package/docs/src/core/components/ui/button/button.md +0 -182
  244. package/docs/src/core/components/ui/captcha/captcha.md +0 -12
  245. package/docs/src/core/components/ui/card/card.md +0 -97
  246. package/docs/src/core/components/ui/divider/divider.md +0 -35
  247. package/docs/src/core/components/ui/form/checkbox/checkbox.md +0 -77
  248. package/docs/src/core/components/ui/form/fieldset/fieldset.md +0 -129
  249. package/docs/src/core/components/ui/form/form-actions/form-actions.md +0 -77
  250. package/docs/src/core/components/ui/form/form-layout/form-layout.md +0 -44
  251. package/docs/src/core/components/ui/form/input/input.md +0 -142
  252. package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +0 -133
  253. package/docs/src/core/components/ui/form/radio/radio.md +0 -57
  254. package/docs/src/core/components/ui/form/select/select.md +0 -71
  255. package/docs/src/core/components/ui/form/switch/switch.md +0 -57
  256. package/docs/src/core/components/ui/form/textarea/textarea.md +0 -65
  257. package/docs/src/core/components/ui/group/group.md +0 -75
  258. package/docs/src/core/components/ui/icon/icon.md +0 -125
  259. package/docs/src/core/components/ui/icon/icons.json +0 -1
  260. package/docs/src/core/components/ui/image/image.md +0 -107
  261. package/docs/src/core/components/ui/link/link.md +0 -43
  262. package/docs/src/core/components/ui/loader/loader.md +0 -55
  263. package/docs/src/core/components/ui/menu/menu.md +0 -329
  264. package/docs/src/core/components/ui/modal/modal.md +0 -119
  265. package/docs/src/core/components/ui/pop/pop.md +0 -96
  266. package/docs/src/core/components/ui/progress/progress.md +0 -63
  267. package/docs/src/core/components/ui/table/table.md +0 -455
  268. package/docs/src/core/components/ui/toast/toast.md +0 -166
  269. package/docs/src/core/components/ui/tooltip/tooltip.md +0 -82
  270. package/docs/src/docs/_core-concept/dataFlow.md +0 -88
  271. package/docs/src/docs/_core-concept/overview.md +0 -57
  272. package/docs/src/docs/_core-concept/subscriber.md +0 -75
  273. package/docs/src/docs/_decorators/ancestor-attribute.md +0 -127
  274. package/docs/src/docs/_decorators/auto-subscribe.md +0 -202
  275. package/docs/src/docs/_decorators/bind.md +0 -167
  276. package/docs/src/docs/_decorators/get.md +0 -162
  277. package/docs/src/docs/_decorators/handle.md +0 -175
  278. package/docs/src/docs/_decorators/on-assign.md +0 -390
  279. package/docs/src/docs/_decorators/patch.md +0 -70
  280. package/docs/src/docs/_decorators/post.md +0 -146
  281. package/docs/src/docs/_decorators/publish.md +0 -55
  282. package/docs/src/docs/_decorators/put.md +0 -70
  283. package/docs/src/docs/_decorators/subscribe.md +0 -100
  284. package/docs/src/docs/_decorators/wait-for-ancestors.md +0 -163
  285. package/docs/src/docs/_directives/sub.md +0 -91
  286. package/docs/src/docs/_getting-started/ai-agents.md +0 -76
  287. package/docs/src/docs/_getting-started/concorde-manual-install.md +0 -133
  288. package/docs/src/docs/_getting-started/concorde-outside.md +0 -33
  289. package/docs/src/docs/_getting-started/create-a-component.md +0 -139
  290. package/docs/src/docs/_getting-started/my-first-component.md +0 -236
  291. package/docs/src/docs/_getting-started/my-first-subscriber.md +0 -120
  292. package/docs/src/docs/_getting-started/pubsub.md +0 -37
  293. package/docs/src/docs/_getting-started/start.md +0 -47
  294. package/docs/src/docs/_getting-started/theming.md +0 -91
  295. package/docs/src/docs/_misc/api-configuration.md +0 -81
  296. package/docs/src/docs/_misc/dataProviderKey.md +0 -168
  297. package/docs/src/docs/_misc/docs-mock-api.md +0 -63
  298. package/docs/src/docs/_misc/dynamic-path.md +0 -71
  299. package/docs/src/docs/_misc/endpoint.md +0 -45
  300. package/docs/src/docs/_misc/formelement-subscriber-removal.md +0 -115
  301. package/docs/src/docs/_misc/html-integration.md +0 -15
  302. package/docs/src/docs/search/docs-search.json +0 -9512
  303. package/docs/src/tag-list.json +0 -1
  304. package/docs/src/tsconfig-model.json +0 -23
  305. package/docs/src/tsconfig.declarations.json +0 -22
  306. package/docs/src/tsconfig.emit.json +0 -23
  307. package/docs/src/tsconfig.json +0 -858
  308. package/docs/svg/regular/plane.svg +0 -1
  309. package/docs/svg/solid/plane.svg +0 -1
  310. package/gitlab/job_github_mirror.sh +0 -39
  311. package/scripts/github-export.mjs +0 -150
  312. package/src/css.d.ts +0 -19
  313. package/src/tsconfig.declarations.json +0 -22
  314. package/src/tsconfig.emit.json +0 -23
@@ -1,190 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="fr" data-crawl-url="https://concorde.supersoniks.org/crawl/core/components/functional/date/date.html" data-doc-id="core/components/functional/date/date">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Date — Concorde</title>
7
- <meta name="description" content="Nothing is displayed.">
8
- <meta name="keywords" content="Concorde, supersoniks, core/components/functional/date/date, date, Date, functional component, sonic-date, web component">
9
- <meta name="concorde-doc-id" content="core/components/functional/date/date">
10
- <link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/functional/date/date.html">
11
- </head>
12
- <body>
13
- <header>
14
- <p><a href="../../../../index.html">Concorde documentation (crawl)</a> · <a href="https://concorde.supersoniks.org/#core/components/functional/date/date.md/date" rel="nofollow">interactive version</a></p>
15
- </header>
16
- <main>
17
- <article>
18
- <p class="doc-lead" id="doc-summary"><strong>Concorde functional component — Date</strong>. Nothing is displayed. <span>Doc ID: <code>core/components/functional/date/date</code>. Keywords: Concorde, supersoniks, core/components/functional/date/date, date, Date, functional component, sonic-date, web component. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/functional/date/date.html">https://concorde.supersoniks.org/crawl/core/components/functional/date/date.html</a>.</span></p>
19
- <h1 id="date">Date</h1>
20
- <h2 id="no-attribute">No attribute</h2>
21
- <p><strong>Nothing</strong> is displayed.</p>
22
- <pre><code>&lt;sonic-date&gt;&lt;/sonic-date&gt;
23
- </code></pre>
24
- <h2 id="now">Now</h2>
25
- <p>Displays the <strong>current date</strong>.</p>
26
- <pre><code>&lt;sonic-date now&gt;&lt;/sonic-date&gt;
27
- </code></pre>
28
- <h2 id="date-1">Date</h2>
29
- <p>Displays a date from a <strong>timestamp</strong>.</p>
30
- <pre><code>&lt;sonic-date date= &quot;1640265629&quot;&gt;&lt;/sonic-date&gt;
31
- </code></pre>
32
- <h2 id="date_string">Date_string</h2>
33
- <p>Displays a date from a <strong>string</strong>.</p>
34
- <pre><code>&lt;sonic-date date_string=&quot;July 20, 69 20:17:40 GMT+00:00&quot;&gt;&lt;/sonic-date&gt;
35
- </code></pre>
36
- <h2 id="start_date--end_date">Start_date / end_date</h2>
37
- <p>Displays a period of time <strong>from start_date to end_date</strong>.<br>When by itself <strong>start_date</strong> will act as <strong>date</strong><br>if a <strong>start_date is not specified</strong> it will be set by the <strong>current date</strong>.<br>if the <strong>end_date is anterior</strong> to start date date it will be <strong>used as the start_date</strong>. </p>
38
- <pre><code>&lt;!-- from start_date to end_date --&gt;
39
- &lt;sonic-date start_date=&quot;1640265629&quot; end_date= &quot;1640365629&quot;&gt;&lt;/sonic-date&gt;
40
- &lt;br&gt;
41
- &lt;!-- start_date is not specified --&gt;
42
- &lt;sonic-date end_date= &quot;2640365629&quot;&gt;&lt;/sonic-date&gt;
43
- &lt;br&gt;
44
- &lt;!-- end_date is anterior --&gt;
45
- &lt;sonic-date end_date= &quot;640365629&quot;&gt;&lt;/sonic-date&gt;
46
- </code></pre>
47
- <h2 id="start_date_string--end_date_string">Start_date_string / end_date_string</h2>
48
- <pre><code>&lt;!-- from start_date to end_date --&gt;
49
- &lt;sonic-date date_string=&quot;July 20, 90 20:17:40 GMT+00:00&quot; end_date_string= &quot;June 20, 94 20:17:40 GMT+00:00&quot;&gt;&lt;/sonic-date&gt;
50
- &lt;br&gt;
51
- &lt;!-- start_date is not specified --&gt;
52
- &lt;sonic-date end_date_string= &quot;May 20, 34 20:17:40 GMT+00:00&quot;&gt;&lt;/sonic-date&gt;
53
- &lt;br&gt;
54
- &lt;!-- end_date is anterior --&gt;
55
- &lt;sonic-date end_date_string= &quot;April 20, 06 20:17:40 GMT+00:00&quot;&gt;&lt;/sonic-date&gt;
56
- </code></pre>
57
- <h2 id="wording_billet_periode_validite">Wording_billet_periode_validite</h2>
58
- <pre><code>&lt;sonic-date wording_billet_periode_validite= &quot;À partir du %s jusqu&#39;au %s&quot; start_date=&quot;1640265629&quot; end_date= &quot;1640365629&quot;&gt;&lt;/sonic-date&gt;
59
- </code></pre>
60
- <h2 id="weekday">Weekday</h2>
61
- <pre><code>&lt;b&gt;narrow : &lt;/b&gt;
62
- &lt;sonic-date weekday=&quot;narrow&quot; now&gt;&lt;/sonic-date&gt;
63
- &lt;br&gt;
64
- &lt;b&gt;short (default) : &lt;/b&gt;
65
- &lt;sonic-date weekday=&quot;short&quot; now&gt;&lt;/sonic-date&gt;
66
- &lt;br&gt;
67
- &lt;b&gt;long : &lt;/b&gt;
68
- &lt;sonic-date weekday=&quot;long&quot; now&gt;&lt;/sonic-date&gt;
69
- &lt;br&gt;
70
- &lt;b&gt;hidden : &lt;/b&gt;
71
- &lt;sonic-date weekday=&quot;hidden&quot; now&gt;&lt;/sonic-date&gt;
72
- </code></pre>
73
- <h2 id="day">Day</h2>
74
- <pre><code>&lt;b&gt;numeric : &lt;/b&gt;
75
- &lt;sonic-date day=&quot;numeric&quot; date_string=&quot;July 01, 69&quot;&gt;&lt;/sonic-date&gt;
76
- &lt;br&gt;
77
- &lt;b&gt;2-digit (default) : &lt;/b&gt;
78
- &lt;sonic-date day=&quot;2-digit&quot; date_string=&quot;July 01, 69&quot;&gt;&lt;/sonic-date&gt;
79
- </code></pre>
80
- <h2 id="month">Month</h2>
81
- <pre><code>&lt;b&gt;numeric : &lt;/b&gt;
82
- &lt;sonic-date month=&quot;numeric&quot; now&gt;&lt;/sonic-date&gt;
83
- &lt;br&gt;
84
- &lt;b&gt;2-digit : &lt;/b&gt;
85
- &lt;sonic-date month=&quot;2-digit&quot; now&gt;&lt;/sonic-date&gt;
86
- &lt;br&gt;
87
- &lt;b&gt;narrow : &lt;/b&gt;
88
- &lt;sonic-date month=&quot;narrow&quot; now&gt;&lt;/sonic-date&gt;
89
- &lt;br&gt;
90
- &lt;b&gt;short (default) : &lt;/b&gt;
91
- &lt;sonic-date month=&quot;short&quot; now&gt;&lt;/sonic-date&gt;
92
- &lt;br&gt;
93
- &lt;b&gt;long : &lt;/b&gt;
94
- &lt;sonic-date month=&quot;long&quot; now&gt;&lt;/sonic-date&gt;
95
- </code></pre>
96
- <h2 id="year">Year</h2>
97
- <pre><code>&lt;b&gt;numeric (default) : &lt;/b&gt;
98
- &lt;sonic-date year=&quot;numeric&quot; now&gt;&lt;/sonic-date&gt;
99
- &lt;br&gt;
100
- &lt;b&gt;2-digit : &lt;/b&gt;
101
- &lt;sonic-date year=&quot;2-digit&quot; now&gt;&lt;/sonic-date&gt;
102
- </code></pre>
103
- <h2 id="hour">Hour</h2>
104
- <pre><code>&lt;b&gt;numeric : &lt;/b&gt;
105
- &lt;sonic-date hour=&quot;numeric&quot; date_string= &quot;June 20, 04 02:06:02 GMT+00:00&quot;&gt;&lt;/sonic-date&gt;
106
- &lt;br&gt;
107
- &lt;b&gt;2-digit (default) : &lt;/b&gt;
108
- &lt;sonic-date hour=&quot;2-digit&quot; date_string= &quot;June 20, 04 02:06:02 GMT+00:00&quot;&gt;&lt;/sonic-date&gt;
109
- &lt;br&gt;
110
- &lt;b&gt;hidden : &lt;/b&gt;
111
- &lt;sonic-date hour=&quot;hidden&quot; date_string= &quot;June 20, 04 02:06:02 GMT+00:00&quot;&gt;&lt;/sonic-date&gt;
112
- </code></pre>
113
- <h2 id="minute">Minute</h2>
114
- <pre><code>&lt;b&gt;numeric : &lt;/b&gt;
115
- &lt;sonic-date minute=&quot;numeric&quot; date_string= &quot;June 20, 04 02:06:02 GMT+00:00&quot;&gt;&lt;/sonic-date&gt;
116
- &lt;br&gt;
117
- &lt;b&gt;2-digit (default) : &lt;/b&gt;
118
- &lt;sonic-date minute=&quot;2-digit&quot; date_string= &quot;June 20, 04 02:06:02 GMT+00:00&quot;&gt;&lt;/sonic-date&gt;
119
- &lt;br&gt;
120
- &lt;b&gt;hidden : &lt;/b&gt;
121
- &lt;sonic-date minute=&quot;hidden&quot; date_string= &quot;June 20, 04 02:06:02 GMT+00:00&quot;&gt;&lt;/sonic-date&gt;
122
- </code></pre>
123
- <h2 id="language">Language</h2>
124
- <p><sonic-button href="https://www.w3schools.com/tags/ref_language_codes.asp" target="_blank" type="info" size="sm">ISO 639-1 Language Codes</sonic-button></p>
125
- <pre><code class="language-fr">&lt;b&gt;fr : &lt;/b&gt;
126
- &lt;sonic-date language=&quot;fr&quot; now&gt;&lt;/sonic-date&gt;
127
- &lt;br&gt;
128
- &lt;b&gt;en : &lt;/b&gt;
129
- &lt;sonic-date language=&quot;en&quot; now&gt;&lt;/sonic-date&gt;
130
- &lt;br&gt;
131
- &lt;b&gt;zh : &lt;/b&gt;
132
- &lt;sonic-date language=&quot;zh&quot; now&gt;&lt;/sonic-date&gt;
133
- &lt;br&gt;
134
- &lt;b&gt;ja : &lt;/b&gt;
135
- &lt;sonic-date language=&quot;ja&quot; now&gt;&lt;/sonic-date&gt;
136
- </code></pre>
137
- <h2 id="time_zone">Time_zone</h2>
138
- <p>For the list of supported timeZones, run <b class="text-info">Intl.supportedValuesOf(&#39;timeZone&#39;)</b> in the console</p>
139
- <pre><code>&lt;b&gt;Europe/London : &lt;/b&gt;
140
- &lt;sonic-date time_zone=&quot;Europe/London&quot; now&gt;&lt;/sonic-date&gt;
141
- &lt;br&gt;
142
- &lt;b&gt;Europe/Paris : &lt;/b&gt;
143
- &lt;sonic-date time_zone=&quot;Europe/Paris&quot; now&gt;&lt;/sonic-date&gt;
144
- &lt;br&gt;
145
- &lt;b&gt;America/Tijuana : &lt;/b&gt;
146
- &lt;sonic-date time_zone=&quot;America/Tijuana&quot; now&gt;&lt;/sonic-date&gt;
147
- </code></pre>
148
- <h2 id="era">Era</h2>
149
- <pre><code>&lt;b&gt;narrow : &lt;/b&gt;
150
- &lt;sonic-date era=&quot;narrow&quot; now&gt;&lt;/sonic-date&gt;
151
- &lt;br&gt;
152
- &lt;b&gt;short : &lt;/b&gt;
153
- &lt;sonic-date era=&quot;short&quot; now&gt;&lt;/sonic-date&gt;
154
- &lt;br&gt;
155
- &lt;b&gt;long : &lt;/b&gt;
156
- &lt;sonic-date era=&quot;long&quot; now&gt;&lt;/sonic-date&gt;
157
- </code></pre>
158
- <h2 id="renderif">.renderIf</h2>
159
- <p><sonic-alert status="error" background>Deprecated</sonic-alert></p>
160
- <pre><code>&lt;b&gt;True statement : &lt;/b&gt;
161
- &lt;sonic-date data-bind ::render-if=&quot;|10&gt;2&quot; now&gt;&lt;/sonic-date&gt;
162
- &lt;br&gt;
163
- &lt;b&gt;False statement : &lt;/b&gt;
164
- &lt;sonic-date data-bind ::render-if=&quot;|10&lt;2&quot; now&gt;&lt;/sonic-date&gt;
165
- </code></pre>
166
- <h2 id="designmode">DesignMode</h2>
167
- <pre><code>&lt;div class=&quot;relative max-w-lg rounded-lg overflow-hidden&quot;&gt;
168
- &lt;div class=&quot;absolute top-0 h-1/2 w-full bg-gradient-to-b from-[rgba(0,0,10,.2)] z-10 &quot;&gt;&lt;/div&gt;
169
- &lt;sonic-date
170
- designMode
171
- noShadowDom
172
- start_date= &quot;1640265629&quot;
173
- end_date= &quot;1640365629&quot;
174
- language= &quot;fr&quot;
175
- wording_billet_periode_validite= &quot;Du %s au %s&quot;
176
- year= &quot;numeric&quot;
177
- month= &quot;short&quot;
178
- weekday= &quot;short&quot;
179
- hour= &quot;2-digit&quot;
180
- minute= &quot;2-digit&quot;
181
- class=&quot;py-4 drop-shadow-lg text-contrast-content p-4 inline-block text-center absolute left-0 z-20 text-sm&quot;
182
- &gt;
183
- &lt;template data-value=&quot;weekday&quot;&gt;
184
- &lt;span class=&quot;hidden&quot;&gt;&lt;/span&gt;
185
- </code></pre>
186
-
187
- </article>
188
- </main>
189
- </body>
190
- </html>
@@ -1,109 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="fr" data-crawl-url="https://concorde.supersoniks.org/crawl/core/components/functional/fetch/fetch.html" data-doc-id="core/components/functional/fetch/fetch">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Fetch — Concorde</title>
7
- <meta name="description" content="&gt; New apps: prefer @get for a typed GET on a component, or List / Queue with fetch for collections. Use Local API demos (serviceURL=&quot;/docs-mock-api&quot;) to try examples offline.">
8
- <meta name="keywords" content="Concorde, supersoniks, core/components/functional/fetch/fetch, fetch, Fetch, functional component, sonic-fetch, web component, serviceURL=&quot;/docs-mock-api&quot;, {my:{data:{a:1,b:2}}}, key=&quot;my.data&quot;, {a:1 , b:2}">
9
- <meta name="concorde-doc-id" content="core/components/functional/fetch/fetch">
10
- <link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/functional/fetch/fetch.html">
11
- </head>
12
- <body>
13
- <header>
14
- <p><a href="../../../../index.html">Concorde documentation (crawl)</a> · <a href="https://concorde.supersoniks.org/#core/components/functional/fetch/fetch.md/fetch" rel="nofollow">interactive version</a></p>
15
- </header>
16
- <main>
17
- <article>
18
- <p class="doc-lead" id="doc-summary"><strong>Concorde functional component — Fetch</strong>. &gt; New apps: prefer @get for a typed GET on a component, or List / Queue with fetch for collections. Use Local API demos (serviceURL=&quot;/docs-mock-api&quot;) to try examples offline. <span>Doc ID: <code>core/components/functional/fetch/fetch</code>. Keywords: Concorde, supersoniks, core/components/functional/fetch/fetch, fetch, Fetch, functional component, sonic-fetch, web component, serviceURL=&quot;/docs-mock-api&quot;, {my:{data:{a:1,b:2}}}, key=&quot;my.data&quot;, {a:1 , b:2}. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/functional/fetch/fetch.html">https://concorde.supersoniks.org/crawl/core/components/functional/fetch/fetch.html</a>.</span></p>
19
- <h1 id="fetch">Fetch</h1>
20
- <blockquote>
21
- <p><strong>New apps:</strong> prefer <a href="../../../../docs/_decorators/get.html#get">@get</a> for a typed GET on a component, or <a href="../list/list.html#list">List</a> / <a href="../queue/queue.html#queue">Queue</a> with <code>fetch</code> for collections. Use <a href="../../../../docs/_misc/docs-mock-api.html#docs-mock-api">Local API demos</a> (<code>serviceURL=&quot;/docs-mock-api&quot;</code>) to try examples offline.</p>
22
- </blockquote>
23
- <p>The <strong>sonic-fetch</strong> component requests and stores API data. It extends the Fetcher and <a href="../../../../docs/_core-concept/subscriber.html#subscriber">Subscriber</a> mixins.</p>
24
- <h2 id="basic-usage">Basic usage</h2>
25
- <p>In order to work properly the <b>sonic-fetch</b> component needs at least the following attributes. </p>
26
- <ul>
27
- <li><strong>serviceURL</strong> : A base service url. This attribute can be inherited from an ancestor.
28
- <em>ex : /docs-mock-api</em></li>
29
- <li><strong>endPoint</strong> : the specific location where requests for information are sent (see the api docs).<br><em>ex : api/users | api/users?page=2 | api/users/2</em></li>
30
- <li><strong>dataProvider <em>(Required)</em></strong> : An ID that is used as a reference to the object storing the data returned by the API.
31
- This attribute can be inherited from an ancestor.</li>
32
- </ul>
33
- <pre><code>&lt;sonic-fetch serviceURL=&quot;/docs-mock-api&quot; endPoint=&quot;api/users?page=2&quot; dataProvider=&quot;myDataObj&quot;&gt;&lt;/sonic-fetch&gt;
34
- &lt;sonic-button dataProvider=&quot;myDataObj&quot; debug&gt;Hover to see the data&lt;/sonic-button&gt;
35
- </code></pre>
36
- <h2 id="dataprovider-as-an-endpoint">DataProvider as an endPoint</h2>
37
- <p>If no <strong>endPoint</strong> is specified it will be filled by the <strong>dataProvider ID</strong> instead </p>
38
- <pre><code>&lt;sonic-fetch serviceURL=&quot;/docs-mock-api&quot; dataProvider=&quot;api/users?page=2&quot; &gt;&lt;/sonic-fetch&gt;
39
- &lt;sonic-button dataProvider=&quot;api/users?page=2&quot; debug&gt;Hover to see the data&lt;/sonic-button&gt;
40
- </code></pre>
41
- <h2 id="headersdataprovider">HeadersDataProvider</h2>
42
- <p><sonic-alert status="error" background>Deprecated</sonic-alert></p>
43
- <h2 id="key">Key</h2>
44
- <p>When the <strong>key</strong> attribute is present, only a sub-part of the data received is injected into the <strong>dataProvider</strong>.
45
- We can use the dot syntax to target what we want to keep.</p>
46
- <p>For example if the data is <code>{my:{data:{a:1,b:2}}}</code> and the key is <code>key=&quot;my.data&quot;</code>, the data available in the <strong>dataProvider</strong> will be <code>{a:1 , b:2}</code></p>
47
- <pre><code>&lt;sonic-fetch serviceURL=&quot;/docs-mock-api&quot; dataProvider=&quot;api/users/2&quot; &gt;&lt;/sonic-fetch&gt;
48
- &lt;sonic-button dataProvider=&quot;api/users/2&quot; debug&gt;dataProvider object&lt;/sonic-button&gt;
49
- &lt;!-- Get the user ID --&gt;
50
- &lt;sonic-fetch serviceURL=&quot;/docs-mock-api&quot; dataProvider=&quot;id&quot; endPoint=&quot;api/users/2&quot; key=&quot;data.id&quot;&gt;&lt;/sonic-fetch&gt;
51
- &lt;sonic-button dataProvider=&quot;id&quot; debug&gt;data.id&lt;/sonic-button&gt;
52
- &lt;!-- Get the user First name --&gt;
53
- &lt;sonic-fetch serviceURL=&quot;/docs-mock-api&quot; dataProvider=&quot;first_name&quot; endPoint=&quot;api/users/2&quot; key=&quot;data.first_name&quot;&gt;&lt;/sonic-fetch&gt;
54
- &lt;sonic-button dataProvider=&quot;first_name&quot; debug&gt;data.first_name&lt;/sonic-button&gt;
55
- &lt;!-- Get the user Last name --&gt;
56
- &lt;sonic-fetch serviceURL=&quot;/docs-mock-api&quot; dataProvider=&quot;last_name&quot; endPoint=&quot;api/users/2&quot; key=&quot;data.last_name&quot;&gt;&lt;/sonic-fetch&gt;
57
- &lt;sonic-button dataProvider=&quot;last_name&quot; debug&gt;data.last_name&lt;/sonic-button&gt;
58
- &lt;!-- Get the user email --&gt;
59
- &lt;sonic-fetch serviceURL=&quot;/docs-mock-api&quot; dataProvider=&quot;email&quot; endPoint=&quot;api/users/2&quot; key=&quot;data.email&quot;&gt;&lt;/sonic-fetch&gt;
60
- &lt;sonic-button dataProvider=&quot;email&quot; debug&gt;data.email&lt;/sonic-button&gt;
61
- </code></pre>
62
- <h2 id="text-mode">Text mode</h2>
63
- <p>if the mime type of the content returned by the service begins with <strong>text/</strong>, then the dataProvider has a key named &quot;text&quot; which contains the text returned by the service.</p>
64
- <pre><code>&lt;sonic-fetch endPoint=&quot;README.md&quot; dataProvider=&quot;fetchText&quot;&gt;&lt;/sonic-fetch&gt;
65
- &lt;sonic-button dataProvider=&quot;fetchText&quot; debug&gt;Hover to see the data&lt;/sonic-button&gt;
66
- </code></pre>
67
- <h2 id="noloader">NoLoader</h2>
68
- <p>The noLoader attribute disables display of the default loader</p>
69
- <pre><code>&lt;sonic-fetch noLoader serviceURL=&quot;/docs-mock-api&quot; endPoint=&quot;api/users?page=2&quot; dataProvider=&quot;myDataObj&quot;&gt;&lt;/sonic-fetch&gt;
70
- &lt;sonic-button dataProvider=&quot;myDataObj&quot; debug&gt;Basic fetch with noLoader attribute&lt;/sonic-button&gt;
71
- </code></pre>
72
- <!--
73
- ## Summary
74
- Extends mixins : Fetcher, [Subscriber](../subscriber/subscriber.html#subscriber)
75
-
76
- ### Configuration via les attributs
77
-
78
- | nom | sur quelle balise | Description | Exemple de valeur | défaut / requis |
79
- |-----|-----|---|---|---|
80
- | serviceURL |Fetcher ou un de ses parents | URL de base des services. | http://la-billetterie.net/api/v2 | domain du site |
81
- | endpoint |Fetcher | point d'accès d'un service | user/2 | valeur de l'attribut dataProvider |
82
- | dataProvider |Fetcher ou un de ses parents | Identifiant d'un publisher qui stock les données, voir [subscriber](../subscriber/subscriber.html#subscriber). | billetterie/user/2 | *REQUIS* |
83
- | headersDataProvider |Fetcher ou un de ses parents | Identifiant d'un publisher qui stock les données destinées à être envoyées en entêtes de la requetes | MyCoockieHEaders | null |
84
- | key |Fetcher | extrait une sous propriété de la donnée chargée avant de l'assignée à son publisher | ma.data | null |
85
-
86
- *Si la données est `{ma:{data:{a:1,b:2}}}` et `key="ma.data"`, la données disponible dans le composant sera `{a:1, b:2}`*
87
-
88
- ### Intégration auto de basic auth (pour tester une api qui nécessite une authentification)
89
-
90
- Fetch utilise le service pour générer le token et l'ajoute au header de l'appel qui récupère les données.
91
-
92
- | nom | sur quelle balise | Description | Exemple de valeur | défaut / requis |
93
- |-----|-----|---|---|---|
94
- | userName | Fetcher ou un de ses parents | Nom de l'utilisateur | DjuDju | null |
95
- | password | Fetcher ou un de ses parents | mot de passe | pom_549 | null |
96
- | tokenProvider | Fetcher ou un de ses parents | point d'accès du service fournissant le token | auth | null |
97
- | token | Fetcher ou un de ses parents | A fournir à la place des autres attributs si on le possède | q<d34gb | null |
98
-
99
- ### Autres choses utiles
100
- L'attribut *noLoader* du composant permet de désactiver l'affichage du loader par défaut.
101
- On peut appeler la methode invalidate() sur le publisher associé au composant pour declencher le rechargement des données.
102
- endPoint est une propriété réctive, par conséquent, sa modification, manuelle via template ou data binbding provoque la mise à jour du contenu.
103
- -->
104
-
105
-
106
- </article>
107
- </main>
108
- </body>
109
- </html>
@@ -1,27 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="fr" data-crawl-url="https://concorde.supersoniks.org/crawl/core/components/functional/if/if.html" data-doc-id="core/components/functional/if/if">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>if — Concorde</title>
7
- <meta name="description" content="The sonic-if component shows its slot when .condition is true. In Lit, bind .condition from store-driven state (@subscribe on a formDataProvider field) — live preview and TypeScript source are the sam">
8
- <meta name="keywords" content="Concorde, supersoniks, core/components/functional/if/if, if, functional component, sonic-if, web component, .condition, @subscribe, formDataProvider, docs-lit-demo">
9
- <meta name="concorde-doc-id" content="core/components/functional/if/if">
10
- <link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/functional/if/if.html">
11
- </head>
12
- <body>
13
- <header>
14
- <p><a href="../../../../index.html">Concorde documentation (crawl)</a> · <a href="https://concorde.supersoniks.org/#core/components/functional/if/if.md/if" rel="nofollow">interactive version</a></p>
15
- </header>
16
- <main>
17
- <article>
18
- <p class="doc-lead" id="doc-summary"><strong>Concorde functional component — if</strong>. The sonic-if component shows its slot when .condition is true. In Lit, bind .condition from store-driven state (@subscribe on a formDataProvider field) — live preview and TypeScript source are the sam <span>Doc ID: <code>core/components/functional/if/if</code>. Keywords: Concorde, supersoniks, core/components/functional/if/if, if, functional component, sonic-if, web component, .condition, @subscribe, formDataProvider, docs-lit-demo. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/functional/if/if.html">https://concorde.supersoniks.org/crawl/core/components/functional/if/if.html</a>.</span></p>
19
- <h1 id="if">if</h1>
20
- <p>The <strong>sonic-if</strong> component shows its slot when <strong><code>.condition</code></strong> is true. In Lit, bind <code>.condition</code> from store-driven state (<code>@subscribe</code> on a <code>formDataProvider</code> field) — live preview and <strong>TypeScript source are the same file</strong> (<code>docs-lit-demo</code>):</p>
21
- <p><docs-lit-demo for="docs-toggle-if-demo"></docs-lit-demo></p>
22
- <p>Plain HTML without Lit: <a href="../../../../docs/_misc/html-integration.html#html-integration">HTML integration</a>.</p>
23
-
24
- </article>
25
- </main>
26
- </body>
27
- </html>
@@ -1,79 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="fr" data-crawl-url="https://concorde.supersoniks.org/crawl/core/components/functional/jsonata/jsonata.html" data-doc-id="core/components/functional/jsonata/jsonata">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Jsonata — Concorde</title>
7
- <meta name="description" content="sonic-jsonata : 1 input → expression → 1 output (readonly).">
8
- <meta name="keywords" content="Concorde, supersoniks, core/components/functional/jsonata/jsonata, jsonata, Jsonata, functional component, sonic-jsonata, web component, sonic-mix, serviceURL=&quot;/docs-mock-api&quot;, inputProvider, $input, outputProvider, expression, formDataProvider, $top, $taxPercent">
9
- <meta name="concorde-doc-id" content="core/components/functional/jsonata/jsonata">
10
- <link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/functional/jsonata/jsonata.html">
11
- </head>
12
- <body>
13
- <header>
14
- <p><a href="../../../../index.html">Concorde documentation (crawl)</a> · <a href="https://concorde.supersoniks.org/#core/components/functional/jsonata/jsonata.md/jsonata" rel="nofollow">interactive version</a></p>
15
- </header>
16
- <main>
17
- <article>
18
- <p class="doc-lead" id="doc-summary"><strong>Concorde functional component — Jsonata</strong>. sonic-jsonata : 1 input → expression → 1 output (readonly). <span>Doc ID: <code>core/components/functional/jsonata/jsonata</code>. Keywords: Concorde, supersoniks, core/components/functional/jsonata/jsonata, jsonata, Jsonata, functional component, sonic-jsonata, web component, sonic-mix, serviceURL=&quot;/docs-mock-api&quot;, inputProvider, $input, outputProvider, expression, formDataProvider, $top, $taxPercent. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/functional/jsonata/jsonata.html">https://concorde.supersoniks.org/crawl/core/components/functional/jsonata/jsonata.html</a>.</span></p>
19
- <h1 id="jsonata">Jsonata</h1>
20
- <p><code>sonic-jsonata</code> : <strong>1 input → expression → 1 output</strong> (readonly).</p>
21
- <p>Unidirectional (fetch → compute → display), unlike <a href="../mix/mix.html#mix"><code>sonic-mix</code></a>.</p>
22
- <blockquote>
23
- <p>Offline : <code>serviceURL=&quot;/docs-mock-api&quot;</code> — <a href="../../../../docs/_misc/docs-mock-api.html#docs-mock-api">Local API demos</a>.</p>
24
- </blockquote>
25
- <h2 id="demos">Demos</h2>
26
- <h3 id="groupby--top-n">Groupby + top N</h3>
27
- <p>Change <strong>Top N</strong> → recalcul sans refetch.</p>
28
- <p><docs-lit-demo for="docs-jsonata-space-cats-demo"></docs-lit-demo></p>
29
- <h3 id="totaux-somme--taxe">Totaux (somme + taxe)</h3>
30
- <p>Change <strong>Tax %</strong> → même idée.</p>
31
- <p><docs-lit-demo for="docs-jsonata-table-totals-demo"></docs-lit-demo></p>
32
- <h2 id="attributes">Attributes</h2>
33
- <table>
34
- <thead>
35
- <tr>
36
- <th>Attribute</th>
37
- <th>Role</th>
38
- </tr>
39
- </thead>
40
- <tbody><tr>
41
- <td><code>inputProvider</code></td>
42
- <td>Entrée (<code>$input</code> dans l’expression)</td>
43
- </tr>
44
- <tr>
45
- <td><code>outputProvider</code></td>
46
- <td>Sortie (readonly)</td>
47
- </tr>
48
- <tr>
49
- <td><code>expression</code></td>
50
- <td>Expression JSONata</td>
51
- </tr>
52
- <tr>
53
- <td><code>formDataProvider</code></td>
54
- <td>Form optionnel (<code>$top</code>, <code>$taxPercent</code>, …) — même id que le form</td>
55
- </tr>
56
- <tr>
57
- <td><code>outputSchema</code></td>
58
- <td>Schéma léger optionnel (<code>type</code>, <code>required</code>)</td>
59
- </tr>
60
- </tbody></table>
61
- <h2 id="helpers">Helpers</h2>
62
- <p><code>$ucFirst</code> · <code>$currency</code> · <code>$percent</code> · <code>$date</code> · <code>$toChart(items, labelKey, valueKey, datasetLabel?)</code></p>
63
- <p>Pas de DOM, pas de réseau, pas d’<code>eval</code>.</p>
64
- <h2 id="markup">Markup</h2>
65
- <pre><code class="language-html">&amp;lt;sonic-jsonata
66
- inputProvider=&quot;api/space-cats&quot;
67
- outputProvider=&quot;leaderboard&quot;
68
- formDataProvider=&quot;topForm&quot;
69
- expression=&#39;$input{name: $sum(points)} ~&gt; $each(function($v,$k){{&quot;name&quot;:$k,&quot;points&quot;:$v}}) ^(&gt;points)[[0..$number($top)-1]]&#39;
70
- &amp;gt;&amp;lt;/sonic-jsonata&amp;gt;
71
- </code></pre>
72
- <p>Pour du multi-entrées ou une fonction TS : primitive <a href="../../../../docs/_core-concept/dataFlow.html#dataFlow"><code>derive</code></a>.</p>
73
- <h2 id="states">States</h2>
74
- <p><code>{output}/_state_</code> → <code>{ status, error? }</code> (<code>loading</code> | <code>ready</code> | <code>error</code> | <code>empty</code>). Brancher avec <code>sonic-states</code>.</p>
75
-
76
- </article>
77
- </main>
78
- </body>
79
- </html>
@@ -1,70 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="fr" data-crawl-url="https://concorde.supersoniks.org/crawl/core/components/functional/list/list.html" data-doc-id="core/components/functional/list/list">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>List — Concorde</title>
7
- <meta name="description" content="&gt; Try offline: serviceURL=&quot;/docs-mock-api&quot; and dataProvider=&quot;api/users&quot; with key=&quot;data&quot; — see Local API demos. Recommended patterns: Data flow.">
8
- <meta name="keywords" content="Concorde, supersoniks, core/components/functional/list/list, list, List, functional component, sonic-list, web component, serviceURL=&quot;/docs-mock-api&quot;, dataProvider=&quot;api/users&quot;, key=&quot;data&quot;, props, dataProvider, fetch, serviceURL, key, items">
9
- <meta name="concorde-doc-id" content="core/components/functional/list/list">
10
- <link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/functional/list/list.html">
11
- </head>
12
- <body>
13
- <header>
14
- <p><a href="../../../../index.html">Concorde documentation (crawl)</a> · <a href="https://concorde.supersoniks.org/#core/components/functional/list/list.md/list" rel="nofollow">interactive version</a></p>
15
- </header>
16
- <main>
17
- <article>
18
- <p class="doc-lead" id="doc-summary"><strong>Concorde functional component — List</strong>. &gt; Try offline: serviceURL=&quot;/docs-mock-api&quot; and dataProvider=&quot;api/users&quot; with key=&quot;data&quot; — see Local API demos. Recommended patterns: Data flow. <span>Doc ID: <code>core/components/functional/list/list</code>. Keywords: Concorde, supersoniks, core/components/functional/list/list, list, List, functional component, sonic-list, web component, serviceURL=&quot;/docs-mock-api&quot;, dataProvider=&quot;api/users&quot;, key=&quot;data&quot;, props, dataProvider, fetch, serviceURL, key, items. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/functional/list/list.html">https://concorde.supersoniks.org/crawl/core/components/functional/list/list.html</a>.</span></p>
19
- <h1 id="list">List</h1>
20
- <blockquote>
21
- <p><strong>Try offline:</strong> <code>serviceURL=&quot;/docs-mock-api&quot;</code> and <code>dataProvider=&quot;api/users&quot;</code> with <code>key=&quot;data&quot;</code> — see <a href="../../../../docs/_misc/docs-mock-api.html#docs-mock-api">Local API demos</a>. Recommended patterns: <a href="../../../../docs/_core-concept/dataFlow.html#dataFlow">Data flow</a>.</p>
22
- </blockquote>
23
- <p>The <strong>sonic-list</strong> component renders one row per entry in <strong><code>props</code></strong> (array from fetch or set on the element).</p>
24
- <p>List extends <a href="../../../../docs/_core-concept/subscriber.html#subscriber">Subscriber</a> and <strong>Fetcher</strong>:</p>
25
- <ul>
26
- <li><strong>Subscriber</strong> — <code>props</code> + <code>dataProvider</code></li>
27
- <li><strong>Fetcher</strong> — optional <code>fetch</code> + <code>serviceURL</code> / <code>key</code> (see <a href="../fetch/fetch.html#fetch">Fetch</a>)</li>
28
- </ul>
29
- <h2 id="row-renderer-items--recommended">Row renderer (<code>items</code>) — recommended</h2>
30
- <p>From a <strong>Lit</strong> parent, pass a function on the <strong><code>items</code></strong> property (<code>ListItems</code>). Each row is wrapped in a <code>sonic-subscriber</code> with <code>dataProvider=&quot;…/list-item/n&quot;</code> (hover rows with <code>debug</code>).</p>
31
- <pre><code class="language-typescript">private items = ({ first_name, last_name, email, avatar }) =&gt; html`
32
- &lt;sonic-image src=${avatar} …&gt;&lt;/sonic-image&gt;
33
- &lt;div&gt;${first_name} &lt;b&gt;${last_name}&lt;/b&gt;&lt;/div&gt;
34
- &lt;div&gt;${email}&lt;/div&gt;
35
- `;
36
-
37
- html`&lt;sonic-list
38
- fetch
39
- dataProvider=&quot;api/users&quot;
40
- key=&quot;data&quot;
41
- serviceURL=&quot;/docs-mock-api&quot;
42
- .items=${this.items}
43
- &gt;&lt;/sonic-list&gt;`;
44
- </code></pre>
45
- <p>Use <strong><code>.items=${fn}</code></strong> (property binding): Lit passes functions only as properties, not as HTML attributes — <code>@property({ type: Function })</code> does not change that. Same for <strong><code>.noItems</code></strong>, <strong><code>.separator</code></strong>, <strong><code>.skeleton</code></strong>. The callback receives each row object (replacing <code>data-bind</code> / <code>&lt;sonic-value&gt;</code> in a <code>&lt;template&gt;</code>).</p>
46
- <p>Live demo + TypeScript source (one file, no Markdown copy):</p>
47
- <p><docs-lit-demo for="docs-users-list"></docs-lit-demo></p>
48
- <p>Implementation: <code>src/docs/example/docs-users-list.ts</code> — row markup in the <strong><code>items</code></strong> callback (<code>item.first_name</code>, …), same idea as replacing <code>data-bind</code> / <code>&lt;sonic-value&gt;</code> in a <code>&lt;template&gt;</code>.</p>
49
- <h2 id="alternating-row-layouts">Alternating row layouts</h2>
50
- <p>Use <strong><code>metadata</code></strong> (<code>even</code>, <code>odd</code>, <code>firstChild</code>, …) or fields on each item (e.g. <code>tpl</code> with <code>templateKey</code>):</p>
51
- <p><docs-lit-demo for="docs-list-alternate-demo"></docs-lit-demo></p>
52
- <p><docs-lit-demo for="docs-list-template-key-demo"></docs-lit-demo></p>
53
- <h2 id="separator-and-empty-list">Separator and empty list</h2>
54
- <p><docs-lit-demo for="docs-list-separator-demo"></docs-lit-demo></p>
55
- <h2 id="fetch--extractvalues">Fetch + <code>extractValues</code></h2>
56
- <p><docs-lit-demo for="docs-list-extract-values-demo"></docs-lit-demo></p>
57
- <h2 id="html-template-children-integration-without-lit">HTML <code>&lt;template&gt;</code> children (integration without Lit)</h2>
58
- <p>For <strong>plain HTML</strong> hosts, you can still declare <strong><code>&lt;template&gt;</code></strong> children (and <code>data-value</code> for <code>templateKey</code>, <code>separator</code>, <code>no-item</code>). That path is for <a href="../../../../docs/_misc/html-integration.html#html-integration">HTML integration</a> — not used in Concorde doc live demos.</p>
59
- <p>Each list row still gets <code>dataProvider=&quot;[list]/list-item/[index]&quot;</code>.</p>
60
- <h2 id="additionnal-tips">Additionnal tips</h2>
61
- <ul>
62
- <li>If the request returns an object, it is wrapped in an array (unless <code>extractValues</code> is set).</li>
63
- <li>Call <strong><code>invalidate()</code></strong> on the list publisher to reload fetch data.</li>
64
- <li>Each row publisher exposes <strong><code>_parent_</code></strong> pointing at the list publisher.</li>
65
- </ul>
66
-
67
- </article>
68
- </main>
69
- </body>
70
- </html>
@@ -1,45 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="fr" data-crawl-url="https://concorde.supersoniks.org/crawl/core/components/functional/mix/mix.html" data-doc-id="core/components/functional/mix/mix">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Mix — Concorde</title>
7
- <meta name="description" content="Mix allows you to mix several subsets of dataProvider in a new key/value structure which is itself associated with a new dataProvider. The data update is then bidirectional.">
8
- <meta name="keywords" content="Concorde, supersoniks, core/components/functional/mix/mix, mix, Mix, functional component, sonic-mix, web component">
9
- <meta name="concorde-doc-id" content="core/components/functional/mix/mix">
10
- <link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/functional/mix/mix.html">
11
- </head>
12
- <body>
13
- <header>
14
- <p><a href="../../../../index.html">Concorde documentation (crawl)</a> · <a href="https://concorde.supersoniks.org/#core/components/functional/mix/mix.md/mix" rel="nofollow">interactive version</a></p>
15
- </header>
16
- <main>
17
- <article>
18
- <p class="doc-lead" id="doc-summary"><strong>Concorde functional component — Mix</strong>. Mix allows you to mix several subsets of dataProvider in a new key/value structure which is itself associated with a new dataProvider. The data update is then bidirectional. <span>Doc ID: <code>core/components/functional/mix/mix</code>. Keywords: Concorde, supersoniks, core/components/functional/mix/mix, mix, Mix, functional component, sonic-mix, web component. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/functional/mix/mix.html">https://concorde.supersoniks.org/crawl/core/components/functional/mix/mix.html</a>.</span></p>
19
- <h1 id="mix">Mix</h1>
20
- <p>Mix allows you to mix several subsets of dataProvider in a new key/value structure which is itself associated with a new dataProvider. The data update is then bidirectional.</p>
21
- <p>Dot notation is supported to extract a sub-part of the data.</p>
22
- <p>For example, if we declare dataproviders as follows :</p>
23
- <pre><code>&lt;sonic-subscriber dataProvider=&quot;dataToMixA&quot; props=&#39;{&quot;foo&quot;:{&quot;bar&quot;:2}}&#39;&gt;&lt;/sonic-subscriber&gt;
24
- &lt;sonic-subscriber dataProvider=&quot;dataToMixB&quot; props=&#39;{&quot;baz&quot;:3}&#39;&gt;&lt;/sonic-subscriber&gt;
25
- </code></pre>
26
- <p>We can rearrange the data as follows</p>
27
- <pre><code>&lt;sonic-mix dataProvider=&quot;mixedData&quot; composition=&#39;{&quot;either&quot;:&quot;dataToMixB&quot;,&quot;orThat&quot;:&quot;dataToMixA.foo.bar&quot;}&#39;&gt;
28
- &lt;div&gt;Value of dataToMixA.foo.bar and mixedData.orThat : &lt;sonic-value key=&quot;orThat&quot;&gt;&lt;/sonic-value&gt;&lt;/div&gt;
29
- &lt;div&gt;Value of dataToMixB.baz and mixedData.either.baz : &lt;sonic-value key=&quot;either.baz&quot;&gt;&lt;/sonic-value&gt;&lt;/div&gt;
30
- &lt;/sonic-mix&gt;
31
- </code></pre>
32
- <p>Then we can change values in both dataProviders programaticaly this way, they will stay in sync</p>
33
- <pre><code class="language-javascript">SonicPublisherManager.get(&quot;mixedData&quot;).either.baz=6;
34
- SonicPublisherManager.get(&quot;dataToMixB&quot;).baz=8;
35
- SonicPublisherManager.get(&quot;dataToMixA&quot;).foo.bar=8;
36
- SonicPublisherManager.get(&quot;mixedData&quot;).orThat=6;
37
- </code></pre>
38
- <p>Or by using a form element</p>
39
- <pre><code>&lt;sonic-input label=&quot;mixedData.orThat&quot; formDataProvider=&quot;mixedData&quot; name=&quot;orThat&quot;&gt;&lt;/sonic-input&gt;
40
- </code></pre>
41
-
42
- </article>
43
- </main>
44
- </body>
45
- </html>