@supersoniks/concorde 5.0.0 → 5.0.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 (287) hide show
  1. package/.gitlab-ci.yml +0 -13
  2. package/build-infos.json +1 -1
  3. package/concorde-core.bundle.js +257 -273
  4. package/concorde-core.es.js +4127 -4039
  5. package/dist/concorde-core.bundle.js +257 -273
  6. package/dist/concorde-core.es.js +4127 -4039
  7. package/gitlab/job_tests.sh +25 -12
  8. package/index.html +1 -1
  9. package/package.json +3 -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/size.ts +0 -0
  23. package/src/core/components/ui/alert/alert.ts +0 -0
  24. package/src/core/components/ui/button/button.md +0 -0
  25. package/src/core/components/ui/captcha/altchaStyles.ts +0 -0
  26. package/src/core/components/ui/captcha/captcha.md +0 -0
  27. package/src/core/components/ui/card/card.md +0 -0
  28. package/src/core/components/ui/divider/divider.ts +0 -0
  29. package/src/core/components/ui/form/input/input.md +0 -0
  30. package/src/core/components/ui/form/radio/radio.md +0 -0
  31. package/src/core/components/ui/form/select/select.md +0 -0
  32. package/src/core/components/ui/form/switch/switch.md +0 -0
  33. package/src/core/components/ui/loader/loader.md +0 -0
  34. package/src/core/components/ui/menu/menu.md +0 -0
  35. package/src/core/components/ui/modal/modal-close.ts +0 -0
  36. package/src/core/components/ui/modal/modal.md +0 -0
  37. package/src/core/components/ui/pop/pop.md +103 -1
  38. package/src/core/components/ui/pop/pop.ts +70 -115
  39. package/src/core/components/ui/table/table-caption.ts +0 -0
  40. package/src/core/components/ui/table/table.md +0 -0
  41. package/src/core/components/ui/theme/theme.ts +1 -1
  42. package/src/core/components/ui/tooltip/tooltip.ts +178 -154
  43. package/src/core/utils/positioning.spec.ts +180 -0
  44. package/src/core/utils/positioning.ts +164 -0
  45. package/src/core/utils/route.ts +0 -0
  46. package/src/directives.ts +2 -3
  47. package/src/docs/_core-concept/subscriber.md +0 -0
  48. package/src/docs/_getting-started/concorde-outside.md +0 -0
  49. package/src/docs/_getting-started/my-first-subscriber.md +0 -0
  50. package/src/docs/_getting-started/pubsub.md +0 -0
  51. package/src/docs/_getting-started/start.md +0 -0
  52. package/src/docs/example/users.ts +0 -0
  53. package/src/docs/search/docs-search.json +90 -0
  54. package/src/docs/search/page.ts +0 -0
  55. package/src/docs/tailwind/css/tailwind.css +7 -6
  56. package/src/tsconfig.json +387 -381
  57. package/src/tsconfig.tsbuildinfo +1 -1
  58. package/vitest.setup.ts +49 -13
  59. package/.github/workflows/ci.yml +0 -21
  60. package/.github-export-ignore +0 -30
  61. package/CONTRIBUTING.md +0 -59
  62. package/DEV.md +0 -54
  63. package/LICENSE +0 -21
  64. package/OPEN_SOURCE_CHECKPOINT.md +0 -133
  65. package/concorde-3d.bundle.js +0 -3960
  66. package/concorde-3d.es.js +0 -33433
  67. package/concorde-hugging-face-infer.bundle.js +0 -32
  68. package/concorde-hugging-face-infer.es.js +0 -2952
  69. package/concorde-shader.bundle.js +0 -116
  70. package/concorde-shader.es.js +0 -8353
  71. package/concorde-webgpu.bundle.js +0 -307
  72. package/concorde-webgpu.es.js +0 -8627
  73. package/docs/altcha-widget.js +0 -2662
  74. package/docs/assets/index-BZiZXMU-.css +0 -1
  75. package/docs/assets/index-FmK4JaIM.js +0 -11992
  76. package/docs/crawl/core/components/functional/date/date.html +0 -190
  77. package/docs/crawl/core/components/functional/fetch/fetch.html +0 -109
  78. package/docs/crawl/core/components/functional/if/if.html +0 -27
  79. package/docs/crawl/core/components/functional/jsonata/jsonata.html +0 -79
  80. package/docs/crawl/core/components/functional/list/list.html +0 -70
  81. package/docs/crawl/core/components/functional/mix/mix.html +0 -45
  82. package/docs/crawl/core/components/functional/queue/queue.html +0 -96
  83. package/docs/crawl/core/components/functional/router/router.html +0 -106
  84. package/docs/crawl/core/components/functional/sdui/sdui.html +0 -269
  85. package/docs/crawl/core/components/functional/states/states.html +0 -66
  86. package/docs/crawl/core/components/functional/submit/submit.html +0 -160
  87. package/docs/crawl/core/components/functional/subscriber/subscriber.html +0 -67
  88. package/docs/crawl/core/components/functional/value/value.html +0 -51
  89. package/docs/crawl/core/components/ui/alert/alert.html +0 -110
  90. package/docs/crawl/core/components/ui/alert-messages/alert-messages.html +0 -23
  91. package/docs/crawl/core/components/ui/badge/badge.html +0 -119
  92. package/docs/crawl/core/components/ui/button/button.html +0 -149
  93. package/docs/crawl/core/components/ui/captcha/captcha.html +0 -30
  94. package/docs/crawl/core/components/ui/card/card.html +0 -99
  95. package/docs/crawl/core/components/ui/divider/divider.html +0 -58
  96. package/docs/crawl/core/components/ui/form/checkbox/checkbox.html +0 -73
  97. package/docs/crawl/core/components/ui/form/fieldset/fieldset.html +0 -135
  98. package/docs/crawl/core/components/ui/form/form-actions/form-actions.html +0 -79
  99. package/docs/crawl/core/components/ui/form/form-layout/form-layout.html +0 -62
  100. package/docs/crawl/core/components/ui/form/input/input.html +0 -109
  101. package/docs/crawl/core/components/ui/form/input-autocomplete/input-autocomplete.html +0 -106
  102. package/docs/crawl/core/components/ui/form/radio/radio.html +0 -56
  103. package/docs/crawl/core/components/ui/form/select/select.html +0 -73
  104. package/docs/crawl/core/components/ui/form/switch/switch.html +0 -56
  105. package/docs/crawl/core/components/ui/form/textarea/textarea.html +0 -59
  106. package/docs/crawl/core/components/ui/group/group.html +0 -82
  107. package/docs/crawl/core/components/ui/icon/icon.html +0 -133
  108. package/docs/crawl/core/components/ui/image/image.html +0 -110
  109. package/docs/crawl/core/components/ui/link/link.html +0 -42
  110. package/docs/crawl/core/components/ui/loader/loader.html +0 -50
  111. package/docs/crawl/core/components/ui/menu/menu.html +0 -322
  112. package/docs/crawl/core/components/ui/modal/modal.html +0 -117
  113. package/docs/crawl/core/components/ui/pop/pop.html +0 -102
  114. package/docs/crawl/core/components/ui/progress/progress.html +0 -58
  115. package/docs/crawl/core/components/ui/table/table.html +0 -413
  116. package/docs/crawl/core/components/ui/toast/toast.html +0 -122
  117. package/docs/crawl/core/components/ui/tooltip/tooltip.html +0 -79
  118. package/docs/crawl/docs/_core-concept/dataFlow.html +0 -177
  119. package/docs/crawl/docs/_core-concept/overview.html +0 -66
  120. package/docs/crawl/docs/_core-concept/subscriber.html +0 -75
  121. package/docs/crawl/docs/_decorators/ancestor-attribute.html +0 -116
  122. package/docs/crawl/docs/_decorators/auto-subscribe.html +0 -202
  123. package/docs/crawl/docs/_decorators/bind.html +0 -141
  124. package/docs/crawl/docs/_decorators/get.html +0 -149
  125. package/docs/crawl/docs/_decorators/handle.html +0 -165
  126. package/docs/crawl/docs/_decorators/on-assign.html +0 -355
  127. package/docs/crawl/docs/_decorators/patch.html +0 -78
  128. package/docs/crawl/docs/_decorators/post.html +0 -139
  129. package/docs/crawl/docs/_decorators/publish.html +0 -61
  130. package/docs/crawl/docs/_decorators/put.html +0 -78
  131. package/docs/crawl/docs/_decorators/subscribe.html +0 -109
  132. package/docs/crawl/docs/_decorators/wait-for-ancestors.html +0 -137
  133. package/docs/crawl/docs/_directives/sub.html +0 -93
  134. package/docs/crawl/docs/_getting-started/ai-agents.html +0 -173
  135. package/docs/crawl/docs/_getting-started/concorde-manual-install.html +0 -100
  136. package/docs/crawl/docs/_getting-started/concorde-outside.html +0 -58
  137. package/docs/crawl/docs/_getting-started/create-a-component.html +0 -111
  138. package/docs/crawl/docs/_getting-started/my-first-component.html +0 -189
  139. package/docs/crawl/docs/_getting-started/my-first-subscriber.html +0 -110
  140. package/docs/crawl/docs/_getting-started/pubsub.html +0 -62
  141. package/docs/crawl/docs/_getting-started/start.html +0 -76
  142. package/docs/crawl/docs/_getting-started/theming.html +0 -85
  143. package/docs/crawl/docs/_misc/api-configuration.html +0 -149
  144. package/docs/crawl/docs/_misc/dataProviderKey.html +0 -135
  145. package/docs/crawl/docs/_misc/docs-mock-api.html +0 -158
  146. package/docs/crawl/docs/_misc/dynamic-path.html +0 -180
  147. package/docs/crawl/docs/_misc/endpoint.html +0 -50
  148. package/docs/crawl/docs/_misc/formelement-subscriber-removal.html +0 -138
  149. package/docs/crawl/docs/_misc/html-integration.html +0 -48
  150. package/docs/crawl/hubs/decorators.html +0 -547
  151. package/docs/crawl/hubs/form-components.html +0 -357
  152. package/docs/crawl/hubs/remote-data.html +0 -452
  153. package/docs/crawl/index.html +0 -101
  154. package/docs/css/docs.css +0 -0
  155. package/docs/docs-mock-api-sw.js +0 -720
  156. package/docs/docs-mock-api-sw.js.map +0 -7
  157. package/docs/fonts/ClashGrotesk-Bold.eot +0 -0
  158. package/docs/fonts/ClashGrotesk-Bold.ttf +0 -0
  159. package/docs/fonts/ClashGrotesk-Bold.woff +0 -0
  160. package/docs/fonts/ClashGrotesk-Bold.woff2 +0 -0
  161. package/docs/fonts/ClashGrotesk-Extralight.eot +0 -0
  162. package/docs/fonts/ClashGrotesk-Extralight.ttf +0 -0
  163. package/docs/fonts/ClashGrotesk-Extralight.woff +0 -0
  164. package/docs/fonts/ClashGrotesk-Extralight.woff2 +0 -0
  165. package/docs/fonts/ClashGrotesk-Light.eot +0 -0
  166. package/docs/fonts/ClashGrotesk-Light.ttf +0 -0
  167. package/docs/fonts/ClashGrotesk-Light.woff +0 -0
  168. package/docs/fonts/ClashGrotesk-Light.woff2 +0 -0
  169. package/docs/fonts/ClashGrotesk-Medium.eot +0 -0
  170. package/docs/fonts/ClashGrotesk-Medium.ttf +0 -0
  171. package/docs/fonts/ClashGrotesk-Medium.woff +0 -0
  172. package/docs/fonts/ClashGrotesk-Medium.woff2 +0 -0
  173. package/docs/fonts/ClashGrotesk-Regular.eot +0 -0
  174. package/docs/fonts/ClashGrotesk-Regular.ttf +0 -0
  175. package/docs/fonts/ClashGrotesk-Regular.woff +0 -0
  176. package/docs/fonts/ClashGrotesk-Regular.woff2 +0 -0
  177. package/docs/fonts/ClashGrotesk-Semibold.eot +0 -0
  178. package/docs/fonts/ClashGrotesk-Semibold.ttf +0 -0
  179. package/docs/fonts/ClashGrotesk-Semibold.woff +0 -0
  180. package/docs/fonts/ClashGrotesk-Semibold.woff2 +0 -0
  181. package/docs/fonts/ClashGrotesk-Variable.eot +0 -0
  182. package/docs/fonts/ClashGrotesk-Variable.ttf +0 -0
  183. package/docs/fonts/ClashGrotesk-Variable.woff +0 -0
  184. package/docs/fonts/ClashGrotesk-Variable.woff2 +0 -0
  185. package/docs/img/concorde-icon.svg +0 -5
  186. package/docs/img/concorde-logo.svg +0 -1
  187. package/docs/img/concorde.png +0 -0
  188. package/docs/img/concorde_def.png +0 -0
  189. package/docs/img/concorde_seuil.png.webp +0 -0
  190. package/docs/img/concorde_seuil_invert.png +0 -0
  191. package/docs/img/paul_metrand.jpg +0 -0
  192. package/docs/img/paul_metrand_xs.jpg +0 -0
  193. package/docs/index.html +0 -93
  194. package/docs/llms-full.txt +0 -5787
  195. package/docs/llms.txt +0 -104
  196. package/docs/robots.txt +0 -16
  197. package/docs/sitemap.xml +0 -237
  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 -121
  214. package/docs/src/core/components/ui/alert-messages/alert-messages.md +0 -0
  215. package/docs/src/core/components/ui/badge/badge.md +0 -127
  216. package/docs/src/core/components/ui/button/button.md +0 -182
  217. package/docs/src/core/components/ui/captcha/captcha.md +0 -12
  218. package/docs/src/core/components/ui/card/card.md +0 -97
  219. package/docs/src/core/components/ui/divider/divider.md +0 -35
  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 -129
  222. package/docs/src/core/components/ui/form/form-actions/form-actions.md +0 -77
  223. package/docs/src/core/components/ui/form/form-layout/form-layout.md +0 -44
  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 -133
  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 -125
  232. package/docs/src/core/components/ui/icon/icons.json +0 -1
  233. package/docs/src/core/components/ui/image/image.md +0 -107
  234. package/docs/src/core/components/ui/link/link.md +0 -43
  235. package/docs/src/core/components/ui/loader/loader.md +0 -55
  236. package/docs/src/core/components/ui/menu/menu.md +0 -329
  237. package/docs/src/core/components/ui/modal/modal.md +0 -119
  238. package/docs/src/core/components/ui/pop/pop.md +0 -96
  239. package/docs/src/core/components/ui/progress/progress.md +0 -63
  240. package/docs/src/core/components/ui/table/table.md +0 -455
  241. package/docs/src/core/components/ui/toast/toast.md +0 -166
  242. package/docs/src/core/components/ui/tooltip/tooltip.md +0 -82
  243. package/docs/src/docs/_core-concept/dataFlow.md +0 -88
  244. package/docs/src/docs/_core-concept/overview.md +0 -57
  245. package/docs/src/docs/_core-concept/subscriber.md +0 -75
  246. package/docs/src/docs/_decorators/ancestor-attribute.md +0 -127
  247. package/docs/src/docs/_decorators/auto-subscribe.md +0 -202
  248. package/docs/src/docs/_decorators/bind.md +0 -167
  249. package/docs/src/docs/_decorators/get.md +0 -162
  250. package/docs/src/docs/_decorators/handle.md +0 -175
  251. package/docs/src/docs/_decorators/on-assign.md +0 -390
  252. package/docs/src/docs/_decorators/patch.md +0 -70
  253. package/docs/src/docs/_decorators/post.md +0 -146
  254. package/docs/src/docs/_decorators/publish.md +0 -55
  255. package/docs/src/docs/_decorators/put.md +0 -70
  256. package/docs/src/docs/_decorators/subscribe.md +0 -100
  257. package/docs/src/docs/_decorators/wait-for-ancestors.md +0 -163
  258. package/docs/src/docs/_directives/sub.md +0 -91
  259. package/docs/src/docs/_getting-started/ai-agents.md +0 -76
  260. package/docs/src/docs/_getting-started/concorde-manual-install.md +0 -133
  261. package/docs/src/docs/_getting-started/concorde-outside.md +0 -33
  262. package/docs/src/docs/_getting-started/create-a-component.md +0 -139
  263. package/docs/src/docs/_getting-started/my-first-component.md +0 -236
  264. package/docs/src/docs/_getting-started/my-first-subscriber.md +0 -120
  265. package/docs/src/docs/_getting-started/pubsub.md +0 -37
  266. package/docs/src/docs/_getting-started/start.md +0 -47
  267. package/docs/src/docs/_getting-started/theming.md +0 -91
  268. package/docs/src/docs/_misc/api-configuration.md +0 -81
  269. package/docs/src/docs/_misc/dataProviderKey.md +0 -168
  270. package/docs/src/docs/_misc/docs-mock-api.md +0 -63
  271. package/docs/src/docs/_misc/dynamic-path.md +0 -71
  272. package/docs/src/docs/_misc/endpoint.md +0 -45
  273. package/docs/src/docs/_misc/formelement-subscriber-removal.md +0 -115
  274. package/docs/src/docs/_misc/html-integration.md +0 -15
  275. package/docs/src/docs/search/docs-search.json +0 -9512
  276. package/docs/src/tag-list.json +0 -1
  277. package/docs/src/tsconfig-model.json +0 -23
  278. package/docs/src/tsconfig.declarations.json +0 -22
  279. package/docs/src/tsconfig.emit.json +0 -23
  280. package/docs/src/tsconfig.json +0 -858
  281. package/docs/svg/regular/plane.svg +0 -1
  282. package/docs/svg/solid/plane.svg +0 -1
  283. package/gitlab/job_github_mirror.sh +0 -39
  284. package/scripts/github-export.mjs +0 -150
  285. package/src/css.d.ts +0 -19
  286. package/src/tsconfig.declarations.json +0 -22
  287. package/src/tsconfig.emit.json +0 -23
@@ -1,142 +0,0 @@
1
- # Input
2
-
3
- <sonic-button type="info" size="sm" target="_blank" href="https://www.w3schools.com/tags/tag_input.asp#midcontentadcontainer">
4
- <sonic-icon library="iconoir" name="open-new-window" slot="prefix" ></sonic-icon>
5
- Native attibutes list
6
- </sonic-button>
7
-
8
- ## Label
9
- <sonic-code>
10
- <template>
11
- <sonic-input label="Label"></sonic-input>
12
- </template>
13
- </sonic-code>
14
-
15
- ## Placeholder
16
- <sonic-code>
17
- <template>
18
- <sonic-input placeholder="placeholder"></sonic-input>
19
- </template>
20
- </sonic-code>
21
-
22
- ## Value
23
- <sonic-code>
24
- <template>
25
- <sonic-input value="value"></sonic-input>
26
- </template>
27
- </sonic-code>
28
-
29
- ## Required
30
- <sonic-code>
31
- <template>
32
- <sonic-input required type="email" placeholder="you@email.com" label="Feedback on blur"></sonic-input>
33
- </template>
34
- </sonic-code>
35
-
36
- ## Description
37
- <sonic-code>
38
- <template>
39
- <sonic-input description="Description goes here" ></sonic-input>
40
- </template>
41
- </sonic-code>
42
-
43
- ## Type
44
- <sonic-button size="2xs" type="info" target="_blank" href="https://www.w3schools.com/html/html_form_input_types.asp">Liste des types</sonic-button>
45
-
46
- <sonic-code>
47
- <template>
48
- <div class="grid gap-3">
49
- <sonic-input type="text" label="Text">Text</sonic-input>
50
- <sonic-input type="email" label="Email" placeholder="plop@kiki.com"></sonic-input>
51
- <sonic-input type="password" label="Password"></sonic-input>
52
- <sonic-input type="date" label="Date"></sonic-input>
53
- <sonic-input type="number" label="Number"></sonic-input>
54
- <sonic-input type="color" label="Color" value="#ffff00"></sonic-input>
55
- </div>
56
- </template>
57
- </sonic-code>
58
-
59
- ## Size
60
- <sonic-code>
61
- <template>
62
- <div class="grid gap-3">
63
- <sonic-input size="2xs" value="2xs"></sonic-input>
64
- <sonic-input size="xs" value="xs"></sonic-input>
65
- <sonic-input size="sm" value="sm"></sonic-input>
66
- <sonic-input size="md" value="md"></sonic-input>
67
- <sonic-input value="default"></sonic-input>
68
- <sonic-input size="lg" value="lg"></sonic-input>
69
- <sonic-input size="xl" value="xl"></sonic-input>
70
- <sonic-input size="2xl" value="2xl"></sonic-input>
71
- </div>
72
- </template>
73
- </sonic-code>
74
-
75
- ## List
76
- <sonic-alert status="error" label="Non fonctionnel" class="mb-4"></sonic-alert>
77
-
78
- <sonic-code>
79
- <template>
80
- <sonic-input list="browsers"></sonic-input>
81
- <datalist id="browsers">
82
- <option value="Internet Explorer">
83
- <option value="Firefox">
84
- <option value="Google Chrome">
85
- <option value="Opera">
86
- <option value="Safari">
87
- </datalist>
88
- </template>
89
- </sonic-code>
90
-
91
- ## Prefix & suffix
92
-
93
- <sonic-code>
94
- <template>
95
- <div class="grid grid-cols-2 gap-3">
96
- <sonic-input type="search" label="Search" placeholder="Search plane">
97
- <sonic-icon library="iconoir" name="search" slot="prefix"></sonic-icon>
98
- </sonic-input>
99
- <sonic-input type="number" label="Amount" placeholder="0">
100
- <sonic-icon library="iconoir" name="euro" slot="suffix"></sonic-icon>
101
- </sonic-input>
102
- </div>
103
- </template>
104
- </sonic-code>
105
-
106
- ## InlineContent
107
-
108
- <sonic-code>
109
- <template>
110
- <div class="grid grid-cols-2 gap-3">
111
- <sonic-input inlineContent type="search" label="Search icon in input" placeholder="Search plane">
112
- <sonic-icon library="iconoir" name="search" slot="prefix"></sonic-icon>
113
- </sonic-input>
114
- <sonic-input inlineContent type="number" label="Number of seats" placeholder="0">
115
- <div slot="suffix" class="flex gap-2 items-center">
116
- <sonic-badge type="danger" size="sm">4 max</sonic-badge>
117
- <sonic-icon library="iconoir" name="euro" ></sonic-icon>
118
- </div>
119
- </sonic-input>
120
- </div>
121
- </template>
122
- </sonic-code>
123
-
124
-
125
-
126
- ## Example of use — search + queue
127
-
128
- Filter with **`formDataProvider`** + **`name="contains"`** (mock API: substring on joke text). Caption and rows via Lit (`@subscribe`, `.items` on `sonic-queue`):
129
-
130
- <docs-lit-demo for="docs-joke-search-demo"></docs-lit-demo>
131
-
132
-
133
- <sonic-code>
134
- <template>
135
- <sonic-input type="search" placeholder="Search plane" class="inline-block">
136
- </sonic-input>
137
- <sonic-button type="danger" label="Amount" placeholder="0">azdazd
138
- </sonic-button>
139
- </template>
140
- </sonic-code>
141
-
142
- <!-- <sonic-input type="password" inlineContent size="2xl"><span slot="suffix">PLOP</span></sonic-input> -->
@@ -1,133 +0,0 @@
1
- # Input-autocomplete
2
-
3
- The input-autocomplete component brings input and queue together in order to create a suggest behavior. This is why this component is partially configured as a form [input](#core/components/ui/form/input/input.md/input) and as a [queue](#core/components/functional/queue/queue.md/queue).
4
-
5
- Please note that only basic text input params and methods are implemented at this time. You should also be sure to understand the behavior of a [queue](#core/components/functional/queue/queue.md/queue) in order to take full advantage of the input-autocomplete component.
6
-
7
- Here are some of the features of the input-autocomplete component:
8
-
9
- Doc examples below use HTML binding on suggestion rows. The Lit equivalent uses an **`items`** callback with the row object (see `docs-queue-geo-demo` in `src/docs/example/docs-queue-demos.ts`). Embedding without Lit: [HTML integration](#docs/_misc/html-integration.md/html-integration).
10
-
11
- * It provides a suggest behavior, where the user can type a few letters and the component will suggest possible matches.
12
- * It can be used with a variety of data providers, such as an API.
13
- * It is fully customizable, so you can change the look and feel of the component to match your needs.
14
-
15
- If you are looking for a component to provide a suggest behavior, the input-autocomplete component is a good option.
16
-
17
-
18
-
19
- ## Simple Example
20
-
21
- In this example, the input will use its name as the search parameter when calling the service responsible for autocompletion.
22
-
23
- The template is used to render the list items of results.
24
- The list items are responsible for making a selection.
25
-
26
- This time, we added buttons with the same name as the input while keeping the same data provider.
27
- The result is that when you select an item, the input takes the value of the selected item, completing the classic suggest behavior.
28
-
29
-
30
- <sonic-code>
31
- <template>
32
- <sonic-input-autocomplete
33
- class="w-64"
34
- label="A french city name"
35
- formDataProvider="autoComplete-example-base"
36
- name="nom"
37
- propertyName="bloop"
38
- placeholder="Paris, Lyon, Tours, ..."
39
- serviceurl="/docs-mock-api/geo"
40
- dataproviderexpression="communes?limit=5&boost=population"
41
- >
42
- <template>
43
- <sonic-menu-item debug radio name="nom" data-bind ::inner-html="$nom" ::value="$nom"></sonic-menu-item>
44
- </template>
45
- </sonic-input-autocomplete>
46
- </template>
47
- </sonic-code>
48
-
49
-
50
- ## Value different from search parameter
51
-
52
- In this example, the search parameter is separated from the name of the input. This means that the input will use the name "nom" as the search parameter, but the form data provider will be filled with the data named "siren" from the selected list item.
53
-
54
- To do this, we need to use the `searchParam` attribute on the input element. This attribute specifies the name of the search parameter that will be used.
55
-
56
- We also need to use the `name` and `value` attribute on the list items. This attribute specifies the value of the data provider that will be used for the selected list item.
57
-
58
- By using these attributes, we can separate the search parameter from the name of the input and still fill the form data provider with the data from the selected list item.
59
-
60
-
61
- <sonic-code>
62
- <template>
63
- <sonic-input-autocomplete
64
- class="w-64"
65
- label="A french city name"
66
- formDataProvider="autoComplete-example"
67
- name="siren"
68
- value="212703771"
69
- placeholder="Paris, Lyon, Tours, ..."
70
- serviceurl="/docs-mock-api/geo"
71
- dataproviderexpression="communes?limit=5&boost=population"
72
- searchParameter="nom"
73
- >
74
- <template>
75
- <sonic-menu-item debug radio name="siren" data-bind ::inner-html="$nom" ::value="$siren"></sonic-menu-item>
76
- </template>
77
- </sonic-input-autocomplete>
78
- </template>
79
- </sonic-code>
80
-
81
-
82
- ## Select autocomplete / value different from search parameter
83
-
84
- This example is the same as the previous one, except that the `select` attribute is used. This attribute changes the look and feel of the component slightly.
85
-
86
- Now the text is less free because, you must select either something from the list given by the service, or nothing else.
87
-
88
- The following code shows how to use the `select` attribute in an autocomplete input:
89
-
90
- <sonic-code>
91
- <template>
92
- <sonic-input-autocomplete
93
- select
94
- class="w-64"
95
- label="A french city name"
96
- formDataProvider="autoComplete-example2"
97
- name="siren"
98
- value="212703771"
99
- placeholder="Paris, Lyon, Tours, ..."
100
- serviceurl="/docs-mock-api/geo"
101
- dataproviderexpression="communes?limit=5&boost=population"
102
- searchParameter="nom"
103
- >
104
- <template>
105
- <sonic-menu-item debug radio name="siren" data-bind ::inner-html="$nom" ::value="$siren"></sonic-menu-item>
106
- </template>
107
- </sonic-input-autocomplete>
108
- </template>
109
- </sonic-code>
110
-
111
- ## keyboard navigation
112
-
113
- At the moment you can enable keyboard up/down by adding an attribut "data-keyboard-nav" on the component and its listItems
114
-
115
- <sonic-code>
116
- <template>
117
- <sonic-input-autocomplete
118
- class="w-64"
119
- label="A french city name"
120
- formDataProvider="autoComplete-example-keyboard"
121
- name="nom"
122
- data-keyboard-nav="nav-autocomplete"
123
- placeholder="Paris, Lyon, Tours, ..."
124
- serviceurl="/docs-mock-api/geo"
125
- dataproviderexpression="communes?limit=60&boost=population"
126
- >
127
- <template>
128
- <sonic-menu-item debug radio name="nom" data-keyboard-nav="nav-autocomplete" data-bind ::inner-html="$nom" ::value="$nom"></sonic-menu-item>
129
- </template>
130
- </sonic-input-autocomplete>
131
- </template>
132
- </sonic-code>
133
-
@@ -1,57 +0,0 @@
1
- # Radio
2
-
3
- ## Size
4
- <sonic-code>
5
- <template>
6
- <div class="grid gap-2" formDataProvider="radioSizeExemple">
7
- <sonic-radio name="size" value="2xs" size="2xs">2xs radio</sonic-radio>
8
- <sonic-radio name="size" value="xs" size="xs">xs radio</sonic-radio>
9
- <sonic-radio name="size" value="sm" size="sm">sm radio</sonic-radio>
10
- <sonic-radio name="size" value="default" >default radio</sonic-radio>
11
- <sonic-radio name="size" value="lg" size="lg">lg radio</sonic-radio>
12
- <sonic-radio name="size" value="xl" size="xl">xl radio</sonic-radio>
13
- <sonic-radio name="size" value="2xl" size="2xl">2xl radio</sonic-radio>
14
- </div>
15
- </template>
16
- </sonic-code>
17
-
18
- ## Checked
19
- <sonic-code>
20
- <template>
21
- <sonic-radio checked
22
- >Already checked radio
23
- </sonic-radio>
24
- </template>
25
- </sonic-code>
26
-
27
- ## Disabled
28
- <sonic-code>
29
- <template>
30
- <sonic-radio disabled
31
- >Disabled radio
32
- </sonic-radio>
33
- </template>
34
- </sonic-code>
35
-
36
- ## Disabled and checked
37
- <sonic-code>
38
- <template>
39
- <sonic-radio disabled checked
40
- >Disabled but already checked radio
41
- </sonic-radio>
42
- </template>
43
- </sonic-code>
44
-
45
- ## radio with link
46
- <sonic-code>
47
- <template>
48
- <sonic-radio name="link" value="link">radio with <sonic-link href="#" class="underline text-info">link</sonic-link>
49
- </template>
50
- </sonic-code>
51
-
52
-
53
- ## Example of use — blacklist + queue
54
-
55
- Same mock filter as [Checkbox](#core/components/ui/form/checkbox/checkbox.md/checkbox) (`blacklistFlags` query param). Radio sends **one** flag at a time.
56
-
57
- <docs-lit-demo for="docs-joke-blacklist-radio-demo"></docs-lit-demo>
@@ -1,71 +0,0 @@
1
- # Select
2
-
3
- ## Options
4
- <sonic-code>
5
- <template>
6
- <div class="grid gap-3">
7
- <sonic-select>
8
- <option value="">No Selection</option>
9
- <option value="1">One</option>
10
- <option value="2" selected>Two (set by "tag")</option>
11
- <option value="3">Three</option>
12
- </sonic-select>
13
- <sonic-select options='[{"value":"", "wording":"Set options via \"attribute\""},
14
- {"value":"dark", "wording":"dark (set by \"attribute\")", "selected" : "true"}, {"value":"auto", "wording":"auto"}
15
- ]'>
16
- </sonic-select>
17
- </div>
18
- </template>
19
- </sonic-code>
20
-
21
- ## Size
22
- <sonic-code>
23
- <template>
24
- <div class="grid gap-3">
25
- <sonic-select size="2xs"><option>2xs</option></sonic-select>
26
- <sonic-select size="xs"><option>xs</option></sonic-select>
27
- <sonic-select size="sm"><option>sm</option></sonic-select>
28
- <sonic-select size="md"><option>md</option></sonic-select>
29
- <sonic-select size="default"><option>default</option></sonic-select>
30
- <sonic-select size="lg"><option>lg</option></sonic-select>
31
- <sonic-select size="xl"><option>xl</option></sonic-select>
32
- <sonic-select size="2xl"><option>2xl</option></sonic-select>
33
- </div>
34
- </template>
35
- </sonic-code>
36
-
37
-
38
- ## Multiple
39
- <sonic-code>
40
- <template>
41
- <div class="grid gap-3">
42
- <sonic-select multiple>
43
- <option value="">Choose a number</option>
44
- <option value="1">One</option>
45
- <option value="2">Two</option>
46
- <option value="3">Three</option>
47
- </sonic-select>
48
- </div>
49
- </template>
50
- </sonic-code>
51
-
52
-
53
- ## Disabled
54
- <sonic-code>
55
- <template>
56
- <div class="grid gap-3">
57
- <sonic-select disabled>
58
- <option value="">Choose a number</option>
59
- <option value="1">One</option>
60
- <option value="2">Two</option>
61
- <option value="3">Three</option>
62
- </sonic-select>
63
- </div>
64
- </template>
65
- </sonic-code>
66
-
67
- ## Example of use — language filter + queue
68
-
69
- **`name="lang"`** is sent as `?lang=fr|en` to the [doc mock API](#docs/_misc/docs-mock-api.md/docs-mock-api) (`filterDocsJokes`). Same pattern as [Input](#core/components/ui/form/input/input.md/input) (`contains`):
70
-
71
- <docs-lit-demo for="docs-joke-lang-demo"></docs-lit-demo>
@@ -1,57 +0,0 @@
1
- # Switch
2
-
3
- ## Size
4
- <sonic-code>
5
- <template>
6
- <div class="grid gap-2" formDataProvider="switchSizeExemple">
7
- <sonic-switch name="size2xs" value="2xs" size="2xs">2xs switch</sonic-switch>
8
- <sonic-switch name="sizexs" value="xs" size="xs">xs switch</sonic-switch>
9
- <sonic-switch name="sizesm" value="sm" size="sm">sm switch</sonic-switch>
10
- <sonic-switch name="size" value="default" >default switch</sonic-switch>
11
- <sonic-switch name="sizelg" value="lg" size="lg">lg switch</sonic-switch>
12
- <sonic-switch name="sizexl" value="xl" size="xl">xl switch</sonic-switch>
13
- <sonic-switch name="size2xl" value="2xl" size="2xl">2xl switch</sonic-switch>
14
- </div>
15
- </template>
16
- </sonic-code>
17
-
18
- ## Checked
19
- <sonic-code>
20
- <template>
21
- <sonic-switch checked
22
- >Already checked switch
23
- </sonic-switch>
24
- </template>
25
- </sonic-code>
26
-
27
- ## Disabled
28
- <sonic-code>
29
- <template>
30
- <sonic-switch disabled
31
- >Disabled switch
32
- </sonic-switch>
33
- </template>
34
- </sonic-code>
35
-
36
- ## Disabled and checked
37
- <sonic-code>
38
- <template>
39
- <sonic-switch disabled checked
40
- >Disabled but already checked switch
41
- </sonic-switch>
42
- </template>
43
- </sonic-code>
44
-
45
- ## switch with link
46
- <sonic-code>
47
- <template>
48
- <sonic-switch name="link" value="link">switch with <sonic-link href="#" class="underline text-info">link</sonic-link>
49
- </template>
50
- </sonic-code>
51
-
52
-
53
- ## Example of use — blacklist + queue
54
-
55
- Same mock filter as [Checkbox](#core/components/ui/form/checkbox/checkbox.md/checkbox); switches can enable several flags (comma-separated in the query).
56
-
57
- <docs-lit-demo for="docs-joke-blacklist-switch-demo"></docs-lit-demo>
@@ -1,65 +0,0 @@
1
- # Textarea
2
-
3
- <sonic-button type="info" size="sm" target="_blank" href="https://www.w3schools.com/tags/tag_textarea.asp#midcontentadcontainer">
4
- <sonic-icon library="iconoir" name="open-new-window" slot="prefix" ></sonic-icon>
5
- Native attibutes list
6
- </sonic-button>
7
-
8
-
9
- ## Label
10
- <sonic-code>
11
- <template>
12
- <sonic-textarea label="Label"></sonic-textarea>
13
- </template>
14
- </sonic-code>
15
-
16
- ## Placeholder
17
- <sonic-code>
18
- <template>
19
- <sonic-textarea placeholder="placeholder"></sonic-textarea>
20
- </template>
21
- </sonic-code>
22
-
23
- ## Value
24
- <sonic-code>
25
- <template>
26
- <sonic-textarea value="value"></sonic-textarea>
27
- </template>
28
- </sonic-code>
29
-
30
- ## Required
31
- <sonic-code>
32
- <template>
33
- <sonic-textarea required label="Feedback on blur" placeholder="required" ></sonic-textarea>
34
- </template>
35
- </sonic-code>
36
-
37
- ## Rows
38
- <sonic-code>
39
- <template>
40
- <sonic-textarea rows="8"></sonic-textarea>
41
- </template>
42
- </sonic-code>
43
-
44
- ## Description
45
- <sonic-code>
46
- <template>
47
- <sonic-textarea description="Description goes here" ></sonic-textarea>
48
- </template>
49
- </sonic-code>
50
-
51
-
52
- ## Size
53
- <sonic-code>
54
- <template>
55
- <div class="grid gap-4">
56
- <sonic-textarea size="2xs" value="2xs"></sonic-textarea>
57
- <sonic-textarea size="xs" value="xs"></sonic-textarea>
58
- <sonic-textarea size="sm" value="sm"></sonic-textarea>
59
- <sonic-textarea value="md / default"></sonic-textarea>
60
- <sonic-textarea size="lg" value="lg"></sonic-textarea>
61
- <sonic-textarea size="xl" value="xl"></sonic-textarea>
62
- <sonic-textarea size="2xl" value="2xl"></sonic-textarea>
63
- </div>
64
- </template>
65
- </sonic-code>
@@ -1,75 +0,0 @@
1
- # Group
2
-
3
- ## Radio group
4
- <sonic-code>
5
- <template>
6
- <sonic-group formDataProvider="subscriptionData">
7
- <sonic-button radio name="subscription" value="standard" type="default">😎 Standard</sonic-button>
8
- <sonic-button radio checked name="subscription" value="premium" type="default">⭐ Premium</sonic-button>
9
- <sonic-button radio name="subscription" value="diamond" type="default">💎 Diamond</sonic-button>
10
- </sonic-group>
11
- </template>
12
- </sonic-code>
13
-
14
- ## Button group
15
- <sonic-code>
16
- <template>
17
- <sonic-group>
18
- <sonic-button type="info" target="_blank" href="https://wwws.airfrance.fr/">🗼Air France</sonic-button>
19
- <sonic-button type="success" target="_blank" href="https://www.airtahitinui.com/">🌴 Air Tahiti</sonic-button>
20
- <sonic-button type="danger" target="_blank" href="https://www.aircorsica.com/">💣 Air Corsica</sonic-button>
21
- </sonic-group>
22
- </template>
23
- </sonic-code>
24
-
25
- ## Input actions prefix
26
- <sonic-code>
27
- <template>
28
- <div class="grid grid-cols-3 gap-3">
29
- <sonic-group>
30
- <sonic-button type="info" shape="square">
31
- <sonic-icon library="iconoir" library="iconoir" name="info-empty"></sonic-icon>
32
- </sonic-button>
33
- <sonic-input placeholder="placeholder" ></sonic-input>
34
- </sonic-group>
35
- <sonic-group label="Label">
36
- <sonic-button type="info" shape="square">
37
- <sonic-icon library="iconoir" library="iconoir" name="info-empty"></sonic-icon>
38
- </sonic-button>
39
- <sonic-input ></sonic-input>
40
- </sonic-group>
41
- <sonic-group description="Description">
42
- <sonic-button type="info" shape="square">
43
- <sonic-icon library="iconoir" library="iconoir" name="info-empty"></sonic-icon>
44
- </sonic-button>
45
- <sonic-input ></sonic-input>
46
- </sonic-group>
47
- </div>
48
- </template>
49
- </sonic-code>
50
-
51
- ## Input actions suffix
52
- <sonic-code>
53
- <template>
54
- <div class="grid grid-cols-3 gap-3">
55
- <sonic-group>
56
- <sonic-input placeholder="placeholder" ></sonic-input>
57
- <sonic-button type="primary" shape="square">
58
- <sonic-icon library="iconoir" library="iconoir" name="check"></sonic-icon>
59
- </sonic-button>
60
- </sonic-group>
61
- <sonic-group label="Label">
62
- <sonic-input ></sonic-input>
63
- <sonic-button type="primary" shape="square">
64
- <sonic-icon library="iconoir" library="iconoir" name="check"></sonic-icon>
65
- </sonic-button>
66
- </sonic-group>
67
- <sonic-group description="Description">
68
- <sonic-input ></sonic-input>
69
- <sonic-button type="primary" shape="square">
70
- <sonic-icon library="iconoir" library="iconoir" name="check"></sonic-icon>
71
- </sonic-button>
72
- </sonic-group>
73
- </div>
74
- </template>
75
- </sonic-code>