@supersoniks/concorde 5.0.5 → 5.1.1

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 (282) hide show
  1. package/.claude/launch.json +15 -0
  2. package/.claude/vite.http.config.mjs +7 -0
  3. package/.taste-skill/after/desktop-fold.jpg +0 -0
  4. package/.taste-skill/after/desktop-page-01.jpg +0 -0
  5. package/.taste-skill/after/desktop-page-02.jpg +0 -0
  6. package/.taste-skill/after/desktop-page-03.jpg +0 -0
  7. package/.taste-skill/after/mobile-fold.jpg +0 -0
  8. package/.taste-skill/after/mobile-page-01.jpg +0 -0
  9. package/.taste-skill/after/report.json +4103 -0
  10. package/.taste-skill/after/tablet-fold.jpg +0 -0
  11. package/.taste-skill/after/tablet-page-01.jpg +0 -0
  12. package/.taste-skill/after/tablet-page-02.jpg +0 -0
  13. package/.taste-skill/before/desktop-fold.jpg +0 -0
  14. package/.taste-skill/before/desktop-page-01.jpg +0 -0
  15. package/.taste-skill/before/desktop-page-02.jpg +0 -0
  16. package/.taste-skill/before/mobile-fold.jpg +0 -0
  17. package/.taste-skill/before/mobile-page-01.jpg +0 -0
  18. package/.taste-skill/before/report.json +2556 -0
  19. package/.taste-skill/before/tablet-fold.jpg +0 -0
  20. package/.taste-skill/before/tablet-page-01.jpg +0 -0
  21. package/.taste-skill/direction.json +510 -0
  22. package/.taste-skill/notes.md +84 -0
  23. package/.taste-skill/prod/desktop-fold.jpg +0 -0
  24. package/.taste-skill/prod/desktop-page-01.jpg +0 -0
  25. package/.taste-skill/prod/desktop-page-02.jpg +0 -0
  26. package/.taste-skill/prod/desktop-page-03.jpg +0 -0
  27. package/.taste-skill/prod/mobile-fold.jpg +0 -0
  28. package/.taste-skill/prod/mobile-page-01.jpg +0 -0
  29. package/.taste-skill/prod/mobile-page-02.jpg +0 -0
  30. package/.taste-skill/prod/report.json +1973 -0
  31. package/.taste-skill/prod/tablet-fold.jpg +0 -0
  32. package/.taste-skill/prod/tablet-page-01.jpg +0 -0
  33. package/.taste-skill/prod/tablet-page-02.jpg +0 -0
  34. package/.tmp-cem/custom-elements.json +13705 -0
  35. package/AUDIT.md +228 -0
  36. package/PLAN-AMELIORATION.md +220 -0
  37. package/build-infos.json +1 -1
  38. package/concorde-core.bundle.js +196 -196
  39. package/concorde-core.es.js +3854 -3572
  40. package/custom-elements-manifest.config.mjs +14 -0
  41. package/dist/concorde-core.bundle.js +196 -196
  42. package/dist/concorde-core.es.js +3854 -3572
  43. package/dist/img/archive/concorde-001-2cv.webp +0 -0
  44. package/dist/img/archive/concorde-red-arrows-2002-poster.jpg +0 -0
  45. package/dist/img/archive/concorde-red-arrows-2002.webm +0 -0
  46. package/dist/img/archive/credits.json +28 -0
  47. package/docs/assets/index-Bb-_LRyY.js +12280 -0
  48. package/docs/index.html +1 -1
  49. package/index.html +27 -63
  50. package/package.json +44 -3
  51. package/public/img/archive/concorde-001-2cv.webp +0 -0
  52. package/public/img/archive/concorde-red-arrows-2002-poster.jpg +0 -0
  53. package/public/img/archive/concorde-red-arrows-2002.webm +0 -0
  54. package/public/img/archive/credits.json +28 -0
  55. package/scripts/generate-sdui-catalog.mjs +250 -0
  56. package/scripts/generate-sdui-catalog.spec.ts +91 -0
  57. package/scripts/pre-build.mjs +15 -0
  58. package/src/core/components/functional/fetch/fetch.md +2 -2
  59. package/src/core/components/functional/sdui/SDUIDescriptorTransformer.ts +5 -5
  60. package/src/core/components/functional/sdui/__fixtures__/descriptors.ts +251 -0
  61. package/src/core/components/functional/sdui/__snapshots__/sdui-action.spec.ts.snap +73 -0
  62. package/src/core/components/functional/sdui/__snapshots__/sdui-incremental.spec.ts.snap +50 -0
  63. package/src/core/components/functional/sdui/__snapshots__/sdui-partial.spec.ts.snap +50 -0
  64. package/src/core/components/functional/sdui/__snapshots__/sdui.regression.spec.ts.snap +461 -0
  65. package/src/core/components/functional/sdui/component-catalog.gaps.json +511 -0
  66. package/src/core/components/functional/sdui/component-catalog.json +3103 -0
  67. package/src/core/components/functional/sdui/component-catalog.spec.ts +23 -0
  68. package/src/core/components/functional/sdui/sdui-action.spec.ts +99 -0
  69. package/src/core/components/functional/sdui/sdui-dom-snapshot.ts +61 -0
  70. package/src/core/components/functional/sdui/sdui-extension-points.md +94 -0
  71. package/src/core/components/functional/sdui/sdui-incremental.spec.ts +137 -0
  72. package/src/core/components/functional/sdui/sdui-partial.spec.ts +83 -0
  73. package/src/core/components/functional/sdui/sdui-partial.ts +19 -0
  74. package/src/core/components/functional/sdui/sdui-safe.spec.ts +188 -0
  75. package/src/core/components/functional/sdui/sdui-safe.ts +100 -0
  76. package/src/core/components/functional/sdui/sdui.md +122 -0
  77. package/src/core/components/functional/sdui/sdui.regression.spec.ts +64 -0
  78. package/src/core/components/functional/sdui/sdui.ts +442 -34
  79. package/src/core/components/functional/sdui/types.ts +49 -0
  80. package/src/core/components/ui/modal/modal.ts +14 -11
  81. package/src/docs/_getting-started/components.md +5 -0
  82. package/src/docs/_getting-started/theming.md +2 -2
  83. package/src/docs/code.ts +88 -75
  84. package/src/docs/components/docs-demo-sources.ts +16 -8
  85. package/src/docs/components/docs-lit-demo.ts +19 -37
  86. package/src/docs/docs.ts +5 -0
  87. package/src/docs/example/docs-boarding-pass-demo.ts +134 -0
  88. package/src/docs/example/docs-provider-keys.ts +12 -0
  89. package/src/docs/header/header.ts +233 -69
  90. package/src/docs/home/catalog.ts +44 -0
  91. package/src/docs/home/home.ts +513 -0
  92. package/src/docs/home/mach-stage.ts +389 -0
  93. package/src/docs/layout.ts +3 -1
  94. package/src/docs/navigation/components-index.ts +56 -0
  95. package/src/docs/navigation/navigation.ts +240 -232
  96. package/src/docs/navigation/pager.ts +67 -0
  97. package/src/docs/navigation/toc.ts +98 -0
  98. package/src/docs/search/docs-search.json +330 -20
  99. package/src/docs/search/markdown-renderer.ts +11 -3
  100. package/src/docs/shiki/index.ts +109 -0
  101. package/src/docs/tailwind/css/base/scrollbar.css +22 -0
  102. package/src/docs/tailwind/css/base/theme.css +96 -0
  103. package/src/docs/tailwind/css/base/typography.css +4 -0
  104. package/src/docs/tailwind/css/docs/boarding-pass.css +65 -0
  105. package/src/docs/tailwind/css/docs/content.css +32 -0
  106. package/src/docs/tailwind/css/docs/page.css +10 -0
  107. package/src/docs/tailwind/css/docs.css +9 -0
  108. package/src/docs/tailwind/css/home/hero.css +210 -0
  109. package/src/docs/tailwind/css/home/motion.css +84 -0
  110. package/src/docs/tailwind/css/home/sections.css +416 -0
  111. package/src/docs/tailwind/css/tailwind.css +7 -185
  112. package/src/tsconfig.json +113 -2
  113. package/src/tsconfig.tsbuildinfo +1 -1
  114. package/tailwind.config.js +8 -4
  115. package/docs/assets/index-wVZpLVYW.js +0 -12122
  116. package/docs/crawl/core/components/functional/date/date.html +0 -190
  117. package/docs/crawl/core/components/functional/fetch/fetch.html +0 -109
  118. package/docs/crawl/core/components/functional/if/if.html +0 -27
  119. package/docs/crawl/core/components/functional/jsonata/jsonata.html +0 -79
  120. package/docs/crawl/core/components/functional/list/list.html +0 -70
  121. package/docs/crawl/core/components/functional/mix/mix.html +0 -45
  122. package/docs/crawl/core/components/functional/queue/queue.html +0 -96
  123. package/docs/crawl/core/components/functional/router/router.html +0 -106
  124. package/docs/crawl/core/components/functional/sdui/sdui.html +0 -269
  125. package/docs/crawl/core/components/functional/states/states.html +0 -66
  126. package/docs/crawl/core/components/functional/submit/submit.html +0 -160
  127. package/docs/crawl/core/components/functional/subscriber/subscriber.html +0 -67
  128. package/docs/crawl/core/components/functional/value/value.html +0 -51
  129. package/docs/crawl/core/components/ui/alert/alert.html +0 -211
  130. package/docs/crawl/core/components/ui/alert-messages/alert-messages.html +0 -131
  131. package/docs/crawl/core/components/ui/badge/badge.html +0 -197
  132. package/docs/crawl/core/components/ui/button/button.html +0 -150
  133. package/docs/crawl/core/components/ui/captcha/captcha.html +0 -112
  134. package/docs/crawl/core/components/ui/card/card.html +0 -253
  135. package/docs/crawl/core/components/ui/divider/divider.html +0 -144
  136. package/docs/crawl/core/components/ui/form/checkbox/checkbox.html +0 -73
  137. package/docs/crawl/core/components/ui/form/fieldset/fieldset.html +0 -266
  138. package/docs/crawl/core/components/ui/form/form-actions/form-actions.html +0 -122
  139. package/docs/crawl/core/components/ui/form/form-layout/form-layout.html +0 -121
  140. package/docs/crawl/core/components/ui/form/input/input.html +0 -109
  141. package/docs/crawl/core/components/ui/form/input-autocomplete/input-autocomplete.html +0 -38
  142. package/docs/crawl/core/components/ui/form/radio/radio.html +0 -56
  143. package/docs/crawl/core/components/ui/form/select/select.html +0 -73
  144. package/docs/crawl/core/components/ui/form/switch/switch.html +0 -56
  145. package/docs/crawl/core/components/ui/form/textarea/textarea.html +0 -59
  146. package/docs/crawl/core/components/ui/group/group.html +0 -104
  147. package/docs/crawl/core/components/ui/icon/icon.html +0 -222
  148. package/docs/crawl/core/components/ui/image/image.html +0 -298
  149. package/docs/crawl/core/components/ui/link/link.html +0 -100
  150. package/docs/crawl/core/components/ui/loader/loader.html +0 -124
  151. package/docs/crawl/core/components/ui/menu/menu.html +0 -394
  152. package/docs/crawl/core/components/ui/modal/modal.html +0 -342
  153. package/docs/crawl/core/components/ui/pop/pop.html +0 -296
  154. package/docs/crawl/core/components/ui/progress/progress.html +0 -131
  155. package/docs/crawl/core/components/ui/table/table.html +0 -545
  156. package/docs/crawl/core/components/ui/theme/theme.html +0 -131
  157. package/docs/crawl/core/components/ui/toast/toast.html +0 -233
  158. package/docs/crawl/core/components/ui/tooltip/tooltip.html +0 -140
  159. package/docs/crawl/docs/_core-concept/dataFlow.html +0 -177
  160. package/docs/crawl/docs/_core-concept/overview.html +0 -66
  161. package/docs/crawl/docs/_core-concept/subscriber.html +0 -75
  162. package/docs/crawl/docs/_decorators/ancestor-attribute.html +0 -117
  163. package/docs/crawl/docs/_decorators/auto-subscribe.html +0 -202
  164. package/docs/crawl/docs/_decorators/bind.html +0 -141
  165. package/docs/crawl/docs/_decorators/get.html +0 -149
  166. package/docs/crawl/docs/_decorators/handle.html +0 -165
  167. package/docs/crawl/docs/_decorators/on-assign.html +0 -355
  168. package/docs/crawl/docs/_decorators/patch.html +0 -78
  169. package/docs/crawl/docs/_decorators/post.html +0 -139
  170. package/docs/crawl/docs/_decorators/publish.html +0 -61
  171. package/docs/crawl/docs/_decorators/put.html +0 -78
  172. package/docs/crawl/docs/_decorators/subscribe.html +0 -109
  173. package/docs/crawl/docs/_decorators/wait-for-ancestors.html +0 -137
  174. package/docs/crawl/docs/_directives/sub.html +0 -93
  175. package/docs/crawl/docs/_getting-started/ai-agents.html +0 -173
  176. package/docs/crawl/docs/_getting-started/concorde-manual-install.html +0 -100
  177. package/docs/crawl/docs/_getting-started/concorde-outside.html +0 -58
  178. package/docs/crawl/docs/_getting-started/create-a-component.html +0 -111
  179. package/docs/crawl/docs/_getting-started/my-first-component.html +0 -189
  180. package/docs/crawl/docs/_getting-started/my-first-subscriber.html +0 -110
  181. package/docs/crawl/docs/_getting-started/pubsub.html +0 -62
  182. package/docs/crawl/docs/_getting-started/start.html +0 -76
  183. package/docs/crawl/docs/_getting-started/theming.html +0 -333
  184. package/docs/crawl/docs/_misc/api-configuration.html +0 -149
  185. package/docs/crawl/docs/_misc/dataProviderKey.html +0 -135
  186. package/docs/crawl/docs/_misc/docs-mock-api.html +0 -158
  187. package/docs/crawl/docs/_misc/dynamic-path.html +0 -180
  188. package/docs/crawl/docs/_misc/endpoint.html +0 -50
  189. package/docs/crawl/docs/_misc/formelement-subscriber-removal.html +0 -138
  190. package/docs/crawl/docs/_misc/html-integration.html +0 -48
  191. package/docs/crawl/hubs/decorators.html +0 -547
  192. package/docs/crawl/hubs/form-components.html +0 -381
  193. package/docs/crawl/hubs/remote-data.html +0 -452
  194. package/docs/crawl/index.html +0 -102
  195. package/docs/llms-full.txt +0 -7008
  196. package/docs/llms.txt +0 -97
  197. package/docs/sitemap.xml +0 -240
  198. package/docs/src/core/components/functional/date/date.md +0 -290
  199. package/docs/src/core/components/functional/fetch/fetch.md +0 -125
  200. package/docs/src/core/components/functional/if/if.md +0 -9
  201. package/docs/src/core/components/functional/jsonata/jsonata.md +0 -56
  202. package/docs/src/core/components/functional/list/list.md +0 -65
  203. package/docs/src/core/components/functional/mix/mix.md +0 -41
  204. package/docs/src/core/components/functional/queue/queue.md +0 -72
  205. package/docs/src/core/components/functional/router/router.md +0 -94
  206. package/docs/src/core/components/functional/sdui/default-library.json +0 -108
  207. package/docs/src/core/components/functional/sdui/example.json +0 -99
  208. package/docs/src/core/components/functional/sdui/sdui.md +0 -356
  209. package/docs/src/core/components/functional/states/states.md +0 -87
  210. package/docs/src/core/components/functional/submit/submit.md +0 -114
  211. package/docs/src/core/components/functional/subscriber/subscriber.md +0 -91
  212. package/docs/src/core/components/functional/value/value.md +0 -35
  213. package/docs/src/core/components/ui/alert/alert.md +0 -196
  214. package/docs/src/core/components/ui/alert-messages/alert-messages.md +0 -85
  215. package/docs/src/core/components/ui/badge/badge.md +0 -188
  216. package/docs/src/core/components/ui/button/button.md +0 -183
  217. package/docs/src/core/components/ui/captcha/captcha.md +0 -71
  218. package/docs/src/core/components/ui/card/card.md +0 -215
  219. package/docs/src/core/components/ui/divider/divider.md +0 -129
  220. package/docs/src/core/components/ui/form/checkbox/checkbox.md +0 -77
  221. package/docs/src/core/components/ui/form/fieldset/fieldset.md +0 -205
  222. package/docs/src/core/components/ui/form/form-actions/form-actions.md +0 -100
  223. package/docs/src/core/components/ui/form/form-layout/form-layout.md +0 -119
  224. package/docs/src/core/components/ui/form/input/input.md +0 -142
  225. package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +0 -29
  226. package/docs/src/core/components/ui/form/radio/radio.md +0 -57
  227. package/docs/src/core/components/ui/form/select/select.md +0 -71
  228. package/docs/src/core/components/ui/form/switch/switch.md +0 -57
  229. package/docs/src/core/components/ui/form/textarea/textarea.md +0 -65
  230. package/docs/src/core/components/ui/group/group.md +0 -75
  231. package/docs/src/core/components/ui/icon/icon.md +0 -214
  232. package/docs/src/core/components/ui/icon/icons.json +0 -1
  233. package/docs/src/core/components/ui/image/image.md +0 -233
  234. package/docs/src/core/components/ui/link/link.md +0 -81
  235. package/docs/src/core/components/ui/loader/loader.md +0 -112
  236. package/docs/src/core/components/ui/menu/menu.md +0 -370
  237. package/docs/src/core/components/ui/modal/modal.md +0 -235
  238. package/docs/src/core/components/ui/pop/pop.md +0 -294
  239. package/docs/src/core/components/ui/progress/progress.md +0 -109
  240. package/docs/src/core/components/ui/table/table.md +0 -431
  241. package/docs/src/core/components/ui/theme/theme.md +0 -122
  242. package/docs/src/core/components/ui/toast/toast.md +0 -216
  243. package/docs/src/core/components/ui/tooltip/tooltip.md +0 -124
  244. package/docs/src/docs/_core-concept/dataFlow.md +0 -88
  245. package/docs/src/docs/_core-concept/overview.md +0 -57
  246. package/docs/src/docs/_core-concept/subscriber.md +0 -75
  247. package/docs/src/docs/_decorators/ancestor-attribute.md +0 -128
  248. package/docs/src/docs/_decorators/auto-subscribe.md +0 -202
  249. package/docs/src/docs/_decorators/bind.md +0 -167
  250. package/docs/src/docs/_decorators/get.md +0 -162
  251. package/docs/src/docs/_decorators/handle.md +0 -175
  252. package/docs/src/docs/_decorators/on-assign.md +0 -390
  253. package/docs/src/docs/_decorators/patch.md +0 -70
  254. package/docs/src/docs/_decorators/post.md +0 -146
  255. package/docs/src/docs/_decorators/publish.md +0 -55
  256. package/docs/src/docs/_decorators/put.md +0 -70
  257. package/docs/src/docs/_decorators/subscribe.md +0 -100
  258. package/docs/src/docs/_decorators/wait-for-ancestors.md +0 -163
  259. package/docs/src/docs/_directives/sub.md +0 -91
  260. package/docs/src/docs/_getting-started/ai-agents.md +0 -76
  261. package/docs/src/docs/_getting-started/concorde-manual-install.md +0 -133
  262. package/docs/src/docs/_getting-started/concorde-outside.md +0 -33
  263. package/docs/src/docs/_getting-started/create-a-component.md +0 -139
  264. package/docs/src/docs/_getting-started/my-first-component.md +0 -236
  265. package/docs/src/docs/_getting-started/my-first-subscriber.md +0 -120
  266. package/docs/src/docs/_getting-started/pubsub.md +0 -37
  267. package/docs/src/docs/_getting-started/start.md +0 -47
  268. package/docs/src/docs/_getting-started/theming.md +0 -253
  269. package/docs/src/docs/_misc/api-configuration.md +0 -81
  270. package/docs/src/docs/_misc/dataProviderKey.md +0 -168
  271. package/docs/src/docs/_misc/docs-mock-api.md +0 -63
  272. package/docs/src/docs/_misc/dynamic-path.md +0 -71
  273. package/docs/src/docs/_misc/endpoint.md +0 -45
  274. package/docs/src/docs/_misc/formelement-subscriber-removal.md +0 -115
  275. package/docs/src/docs/_misc/html-integration.md +0 -15
  276. package/docs/src/docs/search/docs-search.json +0 -12242
  277. package/docs/src/tag-list.json +0 -1
  278. package/docs/src/tsconfig-model.json +0 -23
  279. package/docs/src/tsconfig.json +0 -1242
  280. package/src/docs/prism/index.ts +0 -6
  281. package/src/docs/prism/prism.css +0 -158
  282. package/src/docs/prism/prism.js +0 -1022
@@ -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>