@supersoniks/concorde 3.1.14 → 3.1.16

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 (291) hide show
  1. package/build-infos.json +1 -1
  2. package/index.html +0 -0
  3. package/notes de migration.md +0 -0
  4. package/package.json +259 -3
  5. package/public/css/docs.css +0 -0
  6. package/public/fonts/ClashGrotesk-Bold.eot +0 -0
  7. package/public/fonts/ClashGrotesk-Bold.ttf +0 -0
  8. package/public/fonts/ClashGrotesk-Bold.woff +0 -0
  9. package/public/fonts/ClashGrotesk-Bold.woff2 +0 -0
  10. package/public/fonts/ClashGrotesk-Extralight.eot +0 -0
  11. package/public/fonts/ClashGrotesk-Extralight.ttf +0 -0
  12. package/public/fonts/ClashGrotesk-Extralight.woff +0 -0
  13. package/public/fonts/ClashGrotesk-Extralight.woff2 +0 -0
  14. package/public/fonts/ClashGrotesk-Light.eot +0 -0
  15. package/public/fonts/ClashGrotesk-Light.ttf +0 -0
  16. package/public/fonts/ClashGrotesk-Light.woff +0 -0
  17. package/public/fonts/ClashGrotesk-Light.woff2 +0 -0
  18. package/public/fonts/ClashGrotesk-Medium.eot +0 -0
  19. package/public/fonts/ClashGrotesk-Medium.ttf +0 -0
  20. package/public/fonts/ClashGrotesk-Medium.woff +0 -0
  21. package/public/fonts/ClashGrotesk-Medium.woff2 +0 -0
  22. package/public/fonts/ClashGrotesk-Regular.eot +0 -0
  23. package/public/fonts/ClashGrotesk-Regular.ttf +0 -0
  24. package/public/fonts/ClashGrotesk-Regular.woff +0 -0
  25. package/public/fonts/ClashGrotesk-Regular.woff2 +0 -0
  26. package/public/fonts/ClashGrotesk-Semibold.eot +0 -0
  27. package/public/fonts/ClashGrotesk-Semibold.ttf +0 -0
  28. package/public/fonts/ClashGrotesk-Semibold.woff +0 -0
  29. package/public/fonts/ClashGrotesk-Semibold.woff2 +0 -0
  30. package/public/fonts/ClashGrotesk-Variable.eot +0 -0
  31. package/public/fonts/ClashGrotesk-Variable.ttf +0 -0
  32. package/public/fonts/ClashGrotesk-Variable.woff +0 -0
  33. package/public/fonts/ClashGrotesk-Variable.woff2 +0 -0
  34. package/public/img/concorde-icon.svg +0 -0
  35. package/public/img/concorde-logo.svg +0 -0
  36. package/public/img/concorde.png +0 -0
  37. package/public/img/concorde_def.png +0 -0
  38. package/public/img/concorde_seuil.png.webp +0 -0
  39. package/public/img/concorde_seuil_invert.png +0 -0
  40. package/public/img/paul_metrand.jpg +0 -0
  41. package/public/img/paul_metrand_xs.jpg +0 -0
  42. package/public/svg/regular/plane.svg +0 -0
  43. package/public/svg/solid/plane.svg +0 -0
  44. package/scripts/create-search.js +0 -0
  45. package/scripts/post-build-docs.js +0 -0
  46. package/scripts/post-build.mjs +0 -0
  47. package/scripts/pre-build.mjs +109 -0
  48. package/src/components.ts +0 -0
  49. package/src/concorde-loaded.ts +0 -0
  50. package/src/core/_types/types.ts +0 -0
  51. package/src/core/components/functional/date/date.md +0 -0
  52. package/src/core/components/functional/date/date.ts +0 -0
  53. package/src/core/components/functional/example/example.ts +0 -0
  54. package/src/core/components/functional/fetch/fetch.md +0 -0
  55. package/src/core/components/functional/fetch/fetch.ts +0 -0
  56. package/src/core/components/functional/functional.ts +0 -0
  57. package/src/core/components/functional/if/if.md +0 -0
  58. package/src/core/components/functional/if/if.test.ts +0 -0
  59. package/src/core/components/functional/if/if.ts +0 -0
  60. package/src/core/components/functional/list/list.md +0 -0
  61. package/src/core/components/functional/list/list.ts +0 -0
  62. package/src/core/components/functional/mix/mix.md +0 -0
  63. package/src/core/components/functional/mix/mix.ts +0 -0
  64. package/src/core/components/functional/queue/queue.md +0 -0
  65. package/src/core/components/functional/queue/queue.ts +0 -0
  66. package/src/core/components/functional/router/redirect.ts +0 -0
  67. package/src/core/components/functional/router/router.md +0 -0
  68. package/src/core/components/functional/router/router.ts +0 -0
  69. package/src/core/components/functional/sdui/SDUIDescriptorTransformer.ts +0 -0
  70. package/src/core/components/functional/sdui/default-library.json +0 -0
  71. package/src/core/components/functional/sdui/example.json +0 -0
  72. package/src/core/components/functional/sdui/sdui-utils.ts +0 -0
  73. package/src/core/components/functional/sdui/sdui.md +0 -0
  74. package/src/core/components/functional/sdui/sdui.ts +0 -0
  75. package/src/core/components/functional/sdui/types.ts +0 -0
  76. package/src/core/components/functional/sonic-scope/sonic-scope.ts +0 -0
  77. package/src/core/components/functional/states/states.md +0 -0
  78. package/src/core/components/functional/states/states.ts +0 -0
  79. package/src/core/components/functional/submit/submit.md +0 -0
  80. package/src/core/components/functional/submit/submit.ts +0 -0
  81. package/src/core/components/functional/subscriber/subscriber.md +0 -0
  82. package/src/core/components/functional/subscriber/subscriber.ts +0 -0
  83. package/src/core/components/functional/value/value.md +0 -0
  84. package/src/core/components/functional/value/value.ts +0 -0
  85. package/src/core/components/ui/_css/scroll.ts +0 -0
  86. package/src/core/components/ui/_css/size.ts +0 -0
  87. package/src/core/components/ui/_css/type.ts +0 -0
  88. package/src/core/components/ui/alert/alert.md +0 -0
  89. package/src/core/components/ui/alert/alert.ts +0 -0
  90. package/src/core/components/ui/badge/badge.md +0 -0
  91. package/src/core/components/ui/badge/badge.ts +0 -0
  92. package/src/core/components/ui/button/button.md +0 -0
  93. package/src/core/components/ui/button/button.ts +0 -0
  94. package/src/core/components/ui/captcha/captcha.md +0 -0
  95. package/src/core/components/ui/captcha/captcha.ts +0 -0
  96. package/src/core/components/ui/card/card-footer.ts +0 -0
  97. package/src/core/components/ui/card/card-header-descripton.ts +0 -0
  98. package/src/core/components/ui/card/card-header.ts +0 -0
  99. package/src/core/components/ui/card/card-main.ts +0 -0
  100. package/src/core/components/ui/card/card.md +0 -0
  101. package/src/core/components/ui/card/card.ts +0 -0
  102. package/src/core/components/ui/divider/divider.md +0 -0
  103. package/src/core/components/ui/divider/divider.ts +0 -0
  104. package/src/core/components/ui/form/checkbox/checkbox.md +0 -0
  105. package/src/core/components/ui/form/checkbox/checkbox.ts +0 -0
  106. package/src/core/components/ui/form/css/form-control.ts +0 -0
  107. package/src/core/components/ui/form/fieldset/fieldset.md +0 -0
  108. package/src/core/components/ui/form/fieldset/fieldset.ts +22 -14
  109. package/src/core/components/ui/form/fieldset/legend-description.ts +0 -0
  110. package/src/core/components/ui/form/fieldset/legend.ts +0 -0
  111. package/src/core/components/ui/form/form-actions/form-actions.md +0 -0
  112. package/src/core/components/ui/form/form-actions/form-actions.ts +0 -0
  113. package/src/core/components/ui/form/form-layout/form-layout.md +0 -0
  114. package/src/core/components/ui/form/form-layout/form-layout.ts +0 -0
  115. package/src/core/components/ui/form/input/input.md +0 -0
  116. package/src/core/components/ui/form/input/input.ts +0 -0
  117. package/src/core/components/ui/form/input/password-helper.ts +0 -0
  118. package/src/core/components/ui/form/input/same-value-helper.ts +0 -0
  119. package/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +0 -0
  120. package/src/core/components/ui/form/input-autocomplete/input-autocomplete.ts +0 -0
  121. package/src/core/components/ui/form/radio/radio.md +0 -0
  122. package/src/core/components/ui/form/radio/radio.ts +0 -0
  123. package/src/core/components/ui/form/select/select.md +0 -0
  124. package/src/core/components/ui/form/select/select.ts +0 -0
  125. package/src/core/components/ui/form/textarea/textarea.md +0 -0
  126. package/src/core/components/ui/form/textarea/textarea.ts +0 -0
  127. package/src/core/components/ui/group/group.md +0 -0
  128. package/src/core/components/ui/group/group.ts +0 -0
  129. package/src/core/components/ui/icon/icon.md +0 -0
  130. package/src/core/components/ui/icon/icon.stories.ts +0 -0
  131. package/src/core/components/ui/icon/icon.ts +0 -0
  132. package/src/core/components/ui/icon/icons.json +0 -0
  133. package/src/core/components/ui/icon/icons.ts +0 -0
  134. package/src/core/components/ui/icon/svgs/cancel.svg +0 -0
  135. package/src/core/components/ui/icon/svgs/check-circled-outline.svg +0 -0
  136. package/src/core/components/ui/icon/svgs/check.svg +0 -0
  137. package/src/core/components/ui/icon/svgs/emoji-puzzled.svg +0 -0
  138. package/src/core/components/ui/icon/svgs/info-empty.svg +0 -0
  139. package/src/core/components/ui/icon/svgs/loader.svg +0 -0
  140. package/src/core/components/ui/icon/svgs/minus-small.svg +0 -0
  141. package/src/core/components/ui/icon/svgs/more-horiz.svg +0 -0
  142. package/src/core/components/ui/icon/svgs/more-vert.svg +0 -0
  143. package/src/core/components/ui/icon/svgs/nav-arrow-down.svg +0 -0
  144. package/src/core/components/ui/icon/svgs/warning-circled-outline.svg +0 -0
  145. package/src/core/components/ui/image/image.md +0 -0
  146. package/src/core/components/ui/image/image.ts +0 -0
  147. package/src/core/components/ui/link/link.md +0 -0
  148. package/src/core/components/ui/link/link.ts +0 -0
  149. package/src/core/components/ui/loader/loader.md +0 -0
  150. package/src/core/components/ui/loader/loader.stories.ts +0 -0
  151. package/src/core/components/ui/loader/loader.ts +0 -0
  152. package/src/core/components/ui/loader/styles/fixed.ts +0 -0
  153. package/src/core/components/ui/loader/styles/inline.ts +0 -0
  154. package/src/core/components/ui/menu/menu-item.ts +0 -0
  155. package/src/core/components/ui/menu/menu.md +0 -0
  156. package/src/core/components/ui/menu/menu.ts +0 -0
  157. package/src/core/components/ui/modal/modal-actions.ts +0 -0
  158. package/src/core/components/ui/modal/modal-close.ts +0 -0
  159. package/src/core/components/ui/modal/modal-content.ts +0 -0
  160. package/src/core/components/ui/modal/modal-subtitle.ts +0 -0
  161. package/src/core/components/ui/modal/modal-title.ts +0 -0
  162. package/src/core/components/ui/modal/modal.md +0 -0
  163. package/src/core/components/ui/modal/modal.stories.ts +0 -0
  164. package/src/core/components/ui/modal/modal.ts +74 -41
  165. package/src/core/components/ui/pop/pop.md +0 -0
  166. package/src/core/components/ui/pop/pop.ts +0 -0
  167. package/src/core/components/ui/progress/progress.md +0 -0
  168. package/src/core/components/ui/progress/progress.ts +0 -0
  169. package/src/core/components/ui/table/table-caption.ts +0 -0
  170. package/src/core/components/ui/table/table-tbody.ts +0 -0
  171. package/src/core/components/ui/table/table-td.ts +0 -0
  172. package/src/core/components/ui/table/table-tfoot.ts +0 -0
  173. package/src/core/components/ui/table/table-th.ts +0 -0
  174. package/src/core/components/ui/table/table-thead.ts +0 -0
  175. package/src/core/components/ui/table/table-tr.ts +0 -0
  176. package/src/core/components/ui/table/table.md +0 -0
  177. package/src/core/components/ui/table/table.ts +0 -0
  178. package/src/core/components/ui/theme/theme-collection/core-variables.ts +0 -0
  179. package/src/core/components/ui/theme/theme-collection/dark.ts +0 -0
  180. package/src/core/components/ui/theme/theme-collection/light.ts +0 -0
  181. package/src/core/components/ui/theme/theme.ts +0 -0
  182. package/src/core/components/ui/toast/message-subscriber.stories.ts +0 -0
  183. package/src/core/components/ui/toast/message-subscriber.ts +0 -0
  184. package/src/core/components/ui/toast/toast-item.ts +0 -0
  185. package/src/core/components/ui/toast/toast.ts +0 -0
  186. package/src/core/components/ui/toast/types.ts +0 -0
  187. package/src/core/components/ui/tooltip/tooltip.md +0 -0
  188. package/src/core/components/ui/tooltip/tooltip.ts +0 -0
  189. package/src/core/components/ui/ui.ts +0 -0
  190. package/src/core/core.ts +1 -0
  191. package/src/core/decorators/Subscriber.ts +0 -0
  192. package/src/core/directives/DataProvider.ts +0 -0
  193. package/src/core/directives/Wording.ts +0 -0
  194. package/src/core/mixins/Fetcher.ts +0 -0
  195. package/src/core/mixins/FormCheckable.ts +0 -0
  196. package/src/core/mixins/FormElement.ts +0 -0
  197. package/src/core/mixins/FormInput.ts +0 -0
  198. package/src/core/mixins/Subscriber.ts +0 -0
  199. package/src/core/mixins/TemplatesContainer.ts +0 -0
  200. package/src/core/mixins/mixins.ts +0 -0
  201. package/src/core/utils/Arrays.ts +0 -0
  202. package/src/core/utils/DataBindObserver.ts +0 -0
  203. package/src/core/utils/Electron.ts +0 -0
  204. package/src/core/utils/Format.ts +0 -0
  205. package/src/core/utils/HTML.ts +0 -0
  206. package/src/core/utils/LocationHandler.ts +0 -0
  207. package/src/core/utils/Objects.ts +0 -0
  208. package/src/core/utils/PublisherProxy.ts +0 -0
  209. package/src/core/utils/Utils.ts +0 -0
  210. package/src/core/utils/api.ts +0 -0
  211. package/src/core/utils/route.ts +149 -0
  212. package/src/core/utils/url-pattern.ts +0 -0
  213. package/src/decorators.ts +0 -0
  214. package/src/directives.ts +0 -0
  215. package/src/docs/_core-concept/overview.md +0 -0
  216. package/src/docs/_core-concept/subscriber.md +0 -0
  217. package/src/docs/_getting-started/concorde-outside.md +0 -0
  218. package/src/docs/_getting-started/create-a-component.md +0 -0
  219. package/src/docs/_getting-started/my-first-subscriber.md +0 -0
  220. package/src/docs/_getting-started/pubsub.md +0 -0
  221. package/src/docs/_getting-started/start.md +0 -0
  222. package/src/docs/_getting-started/theming.md +0 -0
  223. package/src/docs/code.ts +0 -0
  224. package/src/docs/docs.ts +0 -0
  225. package/src/docs/example/users.ts +0 -0
  226. package/src/docs/header/header.ts +0 -0
  227. package/src/docs/navigation/navigation.ts +0 -0
  228. package/src/docs/prism/index.ts +0 -0
  229. package/src/docs/prism/prism.css +0 -0
  230. package/src/docs/prism/prism.js +0 -0
  231. package/src/docs/search/docs-search.json +0 -0
  232. package/src/docs/search/markdown-renderer.ts +0 -0
  233. package/src/docs/search/page.ts +0 -0
  234. package/src/docs/search/search.ts +0 -0
  235. package/src/docs/tailwind/css/tailwind.css +0 -0
  236. package/src/docs/tailwind/css/tailwind.d.ts +0 -0
  237. package/src/docs.ts +0 -0
  238. package/src/index.ts +0 -0
  239. package/src/mixins.ts +0 -0
  240. package/src/tag-list.json +0 -0
  241. package/src/test-utils/TestUtils.ts +0 -0
  242. package/src/tsconfig-model.json +19 -0
  243. package/src/tsconfig.json +794 -109
  244. package/src/utils.ts +0 -0
  245. package/tailwind.config.js +0 -0
  246. package/test-utils/TestUtils.ts +0 -0
  247. package/vite/config.js +148 -21
  248. package/vite.config.mts +0 -0
  249. package/concorde-core.bundle.js +0 -3687
  250. package/concorde-core.es.js +0 -11777
  251. package/dist/concorde-core.bundle.js +0 -3687
  252. package/dist/concorde-core.es.js +0 -11777
  253. package/dist/css/docs.css +0 -0
  254. package/dist/fonts/ClashGrotesk-Bold.eot +0 -0
  255. package/dist/fonts/ClashGrotesk-Bold.ttf +0 -0
  256. package/dist/fonts/ClashGrotesk-Bold.woff +0 -0
  257. package/dist/fonts/ClashGrotesk-Bold.woff2 +0 -0
  258. package/dist/fonts/ClashGrotesk-Extralight.eot +0 -0
  259. package/dist/fonts/ClashGrotesk-Extralight.ttf +0 -0
  260. package/dist/fonts/ClashGrotesk-Extralight.woff +0 -0
  261. package/dist/fonts/ClashGrotesk-Extralight.woff2 +0 -0
  262. package/dist/fonts/ClashGrotesk-Light.eot +0 -0
  263. package/dist/fonts/ClashGrotesk-Light.ttf +0 -0
  264. package/dist/fonts/ClashGrotesk-Light.woff +0 -0
  265. package/dist/fonts/ClashGrotesk-Light.woff2 +0 -0
  266. package/dist/fonts/ClashGrotesk-Medium.eot +0 -0
  267. package/dist/fonts/ClashGrotesk-Medium.ttf +0 -0
  268. package/dist/fonts/ClashGrotesk-Medium.woff +0 -0
  269. package/dist/fonts/ClashGrotesk-Medium.woff2 +0 -0
  270. package/dist/fonts/ClashGrotesk-Regular.eot +0 -0
  271. package/dist/fonts/ClashGrotesk-Regular.ttf +0 -0
  272. package/dist/fonts/ClashGrotesk-Regular.woff +0 -0
  273. package/dist/fonts/ClashGrotesk-Regular.woff2 +0 -0
  274. package/dist/fonts/ClashGrotesk-Semibold.eot +0 -0
  275. package/dist/fonts/ClashGrotesk-Semibold.ttf +0 -0
  276. package/dist/fonts/ClashGrotesk-Semibold.woff +0 -0
  277. package/dist/fonts/ClashGrotesk-Semibold.woff2 +0 -0
  278. package/dist/fonts/ClashGrotesk-Variable.eot +0 -0
  279. package/dist/fonts/ClashGrotesk-Variable.ttf +0 -0
  280. package/dist/fonts/ClashGrotesk-Variable.woff +0 -0
  281. package/dist/fonts/ClashGrotesk-Variable.woff2 +0 -0
  282. package/dist/img/concorde-icon.svg +0 -5
  283. package/dist/img/concorde-logo.svg +0 -1
  284. package/dist/img/concorde.png +0 -0
  285. package/dist/img/concorde_def.png +0 -0
  286. package/dist/img/concorde_seuil.png.webp +0 -0
  287. package/dist/img/concorde_seuil_invert.png +0 -0
  288. package/dist/img/paul_metrand.jpg +0 -0
  289. package/dist/img/paul_metrand_xs.jpg +0 -0
  290. package/dist/svg/regular/plane.svg +0 -1
  291. package/dist/svg/solid/plane.svg +0 -1
package/build-infos.json CHANGED
@@ -1 +1 @@
1
- {"date":1723200814}
1
+ {"date":1724402855}
package/index.html CHANGED
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supersoniks/concorde",
3
- "version": "3.1.14",
3
+ "version": "3.1.16",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "",
@@ -17,7 +17,263 @@
17
17
  "./core/components/functional/sdui/default-library.json": "./src/core/components/functional/sdui/default-library.json",
18
18
  "./*": "./src/*.ts",
19
19
  "./vite-config": "./vite/config.js",
20
- "./rollup-plugin-*": "./rollup/plugin-*.js"
20
+ "./rollup-plugin-*": "./rollup/plugin-*.js",
21
+ "./_types/types": "./src/core/_types/types.ts",
22
+ "./date": "./src/core/components/functional/date/date.ts",
23
+ "./functional/date": "./src/core/components/functional/date/date.ts",
24
+ "./example": "./src/core/components/functional/example/example.ts",
25
+ "./functional/example": "./src/core/components/functional/example/example.ts",
26
+ "./fetch": "./src/core/components/functional/fetch/fetch.ts",
27
+ "./functional/fetch": "./src/core/components/functional/fetch/fetch.ts",
28
+ "./functional": "./src/core/components/functional/functional.ts",
29
+ "./functional/functional": "./src/core/components/functional/functional.ts",
30
+ "./if.test": "./src/core/components/functional/if/if.test.ts",
31
+ "./functional/if.test": "./src/core/components/functional/if/if.test.ts",
32
+ "./functional/if/if.test": "./src/core/components/functional/if/if.test.ts",
33
+ "./if": "./src/core/components/functional/if/if.ts",
34
+ "./functional/if": "./src/core/components/functional/if/if.ts",
35
+ "./list": "./src/core/components/functional/list/list.ts",
36
+ "./functional/list": "./src/core/components/functional/list/list.ts",
37
+ "./mix": "./src/core/components/functional/mix/mix.ts",
38
+ "./functional/mix": "./src/core/components/functional/mix/mix.ts",
39
+ "./queue": "./src/core/components/functional/queue/queue.ts",
40
+ "./functional/queue": "./src/core/components/functional/queue/queue.ts",
41
+ "./redirect": "./src/core/components/functional/router/redirect.ts",
42
+ "./functional/redirect": "./src/core/components/functional/router/redirect.ts",
43
+ "./functional/router/redirect": "./src/core/components/functional/router/redirect.ts",
44
+ "./router": "./src/core/components/functional/router/router.ts",
45
+ "./functional/router": "./src/core/components/functional/router/router.ts",
46
+ "./SDUIDescriptorTransformer": "./src/core/components/functional/sdui/SDUIDescriptorTransformer.ts",
47
+ "./functional/SDUIDescriptorTransformer": "./src/core/components/functional/sdui/SDUIDescriptorTransformer.ts",
48
+ "./functional/sdui/SDUIDescriptorTransformer": "./src/core/components/functional/sdui/SDUIDescriptorTransformer.ts",
49
+ "./sdui-utils": "./src/core/components/functional/sdui/sdui-utils.ts",
50
+ "./functional/sdui-utils": "./src/core/components/functional/sdui/sdui-utils.ts",
51
+ "./functional/sdui/sdui-utils": "./src/core/components/functional/sdui/sdui-utils.ts",
52
+ "./sdui": "./src/core/components/functional/sdui/sdui.ts",
53
+ "./functional/sdui": "./src/core/components/functional/sdui/sdui.ts",
54
+ "./sonic-scope": "./src/core/components/functional/sonic-scope/sonic-scope.ts",
55
+ "./functional/sonic-scope": "./src/core/components/functional/sonic-scope/sonic-scope.ts",
56
+ "./states": "./src/core/components/functional/states/states.ts",
57
+ "./functional/states": "./src/core/components/functional/states/states.ts",
58
+ "./submit": "./src/core/components/functional/submit/submit.ts",
59
+ "./functional/submit": "./src/core/components/functional/submit/submit.ts",
60
+ "./subscriber": "./src/core/components/functional/subscriber/subscriber.ts",
61
+ "./functional/subscriber": "./src/core/components/functional/subscriber/subscriber.ts",
62
+ "./value": "./src/core/components/functional/value/value.ts",
63
+ "./functional/value": "./src/core/components/functional/value/value.ts",
64
+ "./scroll": "./src/core/components/ui/_css/scroll.ts",
65
+ "./ui/scroll": "./src/core/components/ui/_css/scroll.ts",
66
+ "./ui/_css/scroll": "./src/core/components/ui/_css/scroll.ts",
67
+ "./size": "./src/core/components/ui/_css/size.ts",
68
+ "./ui/size": "./src/core/components/ui/_css/size.ts",
69
+ "./ui/_css/size": "./src/core/components/ui/_css/size.ts",
70
+ "./type": "./src/core/components/ui/_css/type.ts",
71
+ "./ui/type": "./src/core/components/ui/_css/type.ts",
72
+ "./ui/_css/type": "./src/core/components/ui/_css/type.ts",
73
+ "./alert": "./src/core/components/ui/alert/alert.ts",
74
+ "./ui/alert": "./src/core/components/ui/alert/alert.ts",
75
+ "./badge": "./src/core/components/ui/badge/badge.ts",
76
+ "./ui/badge": "./src/core/components/ui/badge/badge.ts",
77
+ "./button": "./src/core/components/ui/button/button.ts",
78
+ "./ui/button": "./src/core/components/ui/button/button.ts",
79
+ "./captcha": "./src/core/components/ui/captcha/captcha.ts",
80
+ "./ui/captcha": "./src/core/components/ui/captcha/captcha.ts",
81
+ "./card-footer": "./src/core/components/ui/card/card-footer.ts",
82
+ "./ui/card-footer": "./src/core/components/ui/card/card-footer.ts",
83
+ "./ui/card/card-footer": "./src/core/components/ui/card/card-footer.ts",
84
+ "./card-header-descripton": "./src/core/components/ui/card/card-header-descripton.ts",
85
+ "./ui/card-header-descripton": "./src/core/components/ui/card/card-header-descripton.ts",
86
+ "./ui/card/card-header-descripton": "./src/core/components/ui/card/card-header-descripton.ts",
87
+ "./card-header": "./src/core/components/ui/card/card-header.ts",
88
+ "./ui/card-header": "./src/core/components/ui/card/card-header.ts",
89
+ "./ui/card/card-header": "./src/core/components/ui/card/card-header.ts",
90
+ "./card-main": "./src/core/components/ui/card/card-main.ts",
91
+ "./ui/card-main": "./src/core/components/ui/card/card-main.ts",
92
+ "./ui/card/card-main": "./src/core/components/ui/card/card-main.ts",
93
+ "./card": "./src/core/components/ui/card/card.ts",
94
+ "./ui/card": "./src/core/components/ui/card/card.ts",
95
+ "./divider": "./src/core/components/ui/divider/divider.ts",
96
+ "./ui/divider": "./src/core/components/ui/divider/divider.ts",
97
+ "./checkbox": "./src/core/components/ui/form/checkbox/checkbox.ts",
98
+ "./ui/checkbox": "./src/core/components/ui/form/checkbox/checkbox.ts",
99
+ "./ui/form/checkbox": "./src/core/components/ui/form/checkbox/checkbox.ts",
100
+ "./form-control": "./src/core/components/ui/form/css/form-control.ts",
101
+ "./ui/form-control": "./src/core/components/ui/form/css/form-control.ts",
102
+ "./ui/form/form-control": "./src/core/components/ui/form/css/form-control.ts",
103
+ "./fieldset": "./src/core/components/ui/form/fieldset/fieldset.ts",
104
+ "./ui/fieldset": "./src/core/components/ui/form/fieldset/fieldset.ts",
105
+ "./ui/form/fieldset": "./src/core/components/ui/form/fieldset/fieldset.ts",
106
+ "./legend-description": "./src/core/components/ui/form/fieldset/legend-description.ts",
107
+ "./ui/legend-description": "./src/core/components/ui/form/fieldset/legend-description.ts",
108
+ "./ui/form/legend-description": "./src/core/components/ui/form/fieldset/legend-description.ts",
109
+ "./legend": "./src/core/components/ui/form/fieldset/legend.ts",
110
+ "./ui/legend": "./src/core/components/ui/form/fieldset/legend.ts",
111
+ "./ui/form/legend": "./src/core/components/ui/form/fieldset/legend.ts",
112
+ "./form-actions": "./src/core/components/ui/form/form-actions/form-actions.ts",
113
+ "./ui/form-actions": "./src/core/components/ui/form/form-actions/form-actions.ts",
114
+ "./ui/form/form-actions": "./src/core/components/ui/form/form-actions/form-actions.ts",
115
+ "./form-layout": "./src/core/components/ui/form/form-layout/form-layout.ts",
116
+ "./ui/form-layout": "./src/core/components/ui/form/form-layout/form-layout.ts",
117
+ "./ui/form/form-layout": "./src/core/components/ui/form/form-layout/form-layout.ts",
118
+ "./input": "./src/core/components/ui/form/input/input.ts",
119
+ "./ui/input": "./src/core/components/ui/form/input/input.ts",
120
+ "./ui/form/input": "./src/core/components/ui/form/input/input.ts",
121
+ "./password-helper": "./src/core/components/ui/form/input/password-helper.ts",
122
+ "./ui/password-helper": "./src/core/components/ui/form/input/password-helper.ts",
123
+ "./ui/form/password-helper": "./src/core/components/ui/form/input/password-helper.ts",
124
+ "./same-value-helper": "./src/core/components/ui/form/input/same-value-helper.ts",
125
+ "./ui/same-value-helper": "./src/core/components/ui/form/input/same-value-helper.ts",
126
+ "./ui/form/same-value-helper": "./src/core/components/ui/form/input/same-value-helper.ts",
127
+ "./input-autocomplete": "./src/core/components/ui/form/input-autocomplete/input-autocomplete.ts",
128
+ "./ui/input-autocomplete": "./src/core/components/ui/form/input-autocomplete/input-autocomplete.ts",
129
+ "./ui/form/input-autocomplete": "./src/core/components/ui/form/input-autocomplete/input-autocomplete.ts",
130
+ "./radio": "./src/core/components/ui/form/radio/radio.ts",
131
+ "./ui/radio": "./src/core/components/ui/form/radio/radio.ts",
132
+ "./ui/form/radio": "./src/core/components/ui/form/radio/radio.ts",
133
+ "./select": "./src/core/components/ui/form/select/select.ts",
134
+ "./ui/select": "./src/core/components/ui/form/select/select.ts",
135
+ "./ui/form/select": "./src/core/components/ui/form/select/select.ts",
136
+ "./textarea": "./src/core/components/ui/form/textarea/textarea.ts",
137
+ "./ui/textarea": "./src/core/components/ui/form/textarea/textarea.ts",
138
+ "./ui/form/textarea": "./src/core/components/ui/form/textarea/textarea.ts",
139
+ "./group": "./src/core/components/ui/group/group.ts",
140
+ "./ui/group": "./src/core/components/ui/group/group.ts",
141
+ "./icon.stories": "./src/core/components/ui/icon/icon.stories.ts",
142
+ "./ui/icon.stories": "./src/core/components/ui/icon/icon.stories.ts",
143
+ "./ui/icon/icon.stories": "./src/core/components/ui/icon/icon.stories.ts",
144
+ "./icon": "./src/core/components/ui/icon/icon.ts",
145
+ "./ui/icon": "./src/core/components/ui/icon/icon.ts",
146
+ "./icons": "./src/core/components/ui/icon/icons.ts",
147
+ "./ui/icons": "./src/core/components/ui/icon/icons.ts",
148
+ "./ui/icon/icons": "./src/core/components/ui/icon/icons.ts",
149
+ "./image": "./src/core/components/ui/image/image.ts",
150
+ "./ui/image": "./src/core/components/ui/image/image.ts",
151
+ "./link": "./src/core/components/ui/link/link.ts",
152
+ "./ui/link": "./src/core/components/ui/link/link.ts",
153
+ "./loader.stories": "./src/core/components/ui/loader/loader.stories.ts",
154
+ "./ui/loader.stories": "./src/core/components/ui/loader/loader.stories.ts",
155
+ "./ui/loader/loader.stories": "./src/core/components/ui/loader/loader.stories.ts",
156
+ "./loader": "./src/core/components/ui/loader/loader.ts",
157
+ "./ui/loader": "./src/core/components/ui/loader/loader.ts",
158
+ "./fixed": "./src/core/components/ui/loader/styles/fixed.ts",
159
+ "./ui/fixed": "./src/core/components/ui/loader/styles/fixed.ts",
160
+ "./ui/loader/fixed": "./src/core/components/ui/loader/styles/fixed.ts",
161
+ "./inline": "./src/core/components/ui/loader/styles/inline.ts",
162
+ "./ui/inline": "./src/core/components/ui/loader/styles/inline.ts",
163
+ "./ui/loader/inline": "./src/core/components/ui/loader/styles/inline.ts",
164
+ "./menu-item": "./src/core/components/ui/menu/menu-item.ts",
165
+ "./ui/menu-item": "./src/core/components/ui/menu/menu-item.ts",
166
+ "./ui/menu/menu-item": "./src/core/components/ui/menu/menu-item.ts",
167
+ "./menu": "./src/core/components/ui/menu/menu.ts",
168
+ "./ui/menu": "./src/core/components/ui/menu/menu.ts",
169
+ "./modal-actions": "./src/core/components/ui/modal/modal-actions.ts",
170
+ "./ui/modal-actions": "./src/core/components/ui/modal/modal-actions.ts",
171
+ "./ui/modal/modal-actions": "./src/core/components/ui/modal/modal-actions.ts",
172
+ "./modal-close": "./src/core/components/ui/modal/modal-close.ts",
173
+ "./ui/modal-close": "./src/core/components/ui/modal/modal-close.ts",
174
+ "./ui/modal/modal-close": "./src/core/components/ui/modal/modal-close.ts",
175
+ "./modal-content": "./src/core/components/ui/modal/modal-content.ts",
176
+ "./ui/modal-content": "./src/core/components/ui/modal/modal-content.ts",
177
+ "./ui/modal/modal-content": "./src/core/components/ui/modal/modal-content.ts",
178
+ "./modal-subtitle": "./src/core/components/ui/modal/modal-subtitle.ts",
179
+ "./ui/modal-subtitle": "./src/core/components/ui/modal/modal-subtitle.ts",
180
+ "./ui/modal/modal-subtitle": "./src/core/components/ui/modal/modal-subtitle.ts",
181
+ "./modal-title": "./src/core/components/ui/modal/modal-title.ts",
182
+ "./ui/modal-title": "./src/core/components/ui/modal/modal-title.ts",
183
+ "./ui/modal/modal-title": "./src/core/components/ui/modal/modal-title.ts",
184
+ "./modal.stories": "./src/core/components/ui/modal/modal.stories.ts",
185
+ "./ui/modal.stories": "./src/core/components/ui/modal/modal.stories.ts",
186
+ "./ui/modal/modal.stories": "./src/core/components/ui/modal/modal.stories.ts",
187
+ "./modal": "./src/core/components/ui/modal/modal.ts",
188
+ "./ui/modal": "./src/core/components/ui/modal/modal.ts",
189
+ "./pop": "./src/core/components/ui/pop/pop.ts",
190
+ "./ui/pop": "./src/core/components/ui/pop/pop.ts",
191
+ "./progress": "./src/core/components/ui/progress/progress.ts",
192
+ "./ui/progress": "./src/core/components/ui/progress/progress.ts",
193
+ "./table-caption": "./src/core/components/ui/table/table-caption.ts",
194
+ "./ui/table-caption": "./src/core/components/ui/table/table-caption.ts",
195
+ "./ui/table/table-caption": "./src/core/components/ui/table/table-caption.ts",
196
+ "./table-tbody": "./src/core/components/ui/table/table-tbody.ts",
197
+ "./ui/table-tbody": "./src/core/components/ui/table/table-tbody.ts",
198
+ "./ui/table/table-tbody": "./src/core/components/ui/table/table-tbody.ts",
199
+ "./table-td": "./src/core/components/ui/table/table-td.ts",
200
+ "./ui/table-td": "./src/core/components/ui/table/table-td.ts",
201
+ "./ui/table/table-td": "./src/core/components/ui/table/table-td.ts",
202
+ "./table-tfoot": "./src/core/components/ui/table/table-tfoot.ts",
203
+ "./ui/table-tfoot": "./src/core/components/ui/table/table-tfoot.ts",
204
+ "./ui/table/table-tfoot": "./src/core/components/ui/table/table-tfoot.ts",
205
+ "./table-th": "./src/core/components/ui/table/table-th.ts",
206
+ "./ui/table-th": "./src/core/components/ui/table/table-th.ts",
207
+ "./ui/table/table-th": "./src/core/components/ui/table/table-th.ts",
208
+ "./table-thead": "./src/core/components/ui/table/table-thead.ts",
209
+ "./ui/table-thead": "./src/core/components/ui/table/table-thead.ts",
210
+ "./ui/table/table-thead": "./src/core/components/ui/table/table-thead.ts",
211
+ "./table-tr": "./src/core/components/ui/table/table-tr.ts",
212
+ "./ui/table-tr": "./src/core/components/ui/table/table-tr.ts",
213
+ "./ui/table/table-tr": "./src/core/components/ui/table/table-tr.ts",
214
+ "./table": "./src/core/components/ui/table/table.ts",
215
+ "./ui/table": "./src/core/components/ui/table/table.ts",
216
+ "./core-variables": "./src/core/components/ui/theme/theme-collection/core-variables.ts",
217
+ "./ui/core-variables": "./src/core/components/ui/theme/theme-collection/core-variables.ts",
218
+ "./ui/theme/core-variables": "./src/core/components/ui/theme/theme-collection/core-variables.ts",
219
+ "./dark": "./src/core/components/ui/theme/theme-collection/dark.ts",
220
+ "./ui/dark": "./src/core/components/ui/theme/theme-collection/dark.ts",
221
+ "./ui/theme/dark": "./src/core/components/ui/theme/theme-collection/dark.ts",
222
+ "./light": "./src/core/components/ui/theme/theme-collection/light.ts",
223
+ "./ui/light": "./src/core/components/ui/theme/theme-collection/light.ts",
224
+ "./ui/theme/light": "./src/core/components/ui/theme/theme-collection/light.ts",
225
+ "./theme": "./src/core/components/ui/theme/theme.ts",
226
+ "./ui/theme": "./src/core/components/ui/theme/theme.ts",
227
+ "./message-subscriber.stories": "./src/core/components/ui/toast/message-subscriber.stories.ts",
228
+ "./ui/message-subscriber.stories": "./src/core/components/ui/toast/message-subscriber.stories.ts",
229
+ "./ui/toast/message-subscriber.stories": "./src/core/components/ui/toast/message-subscriber.stories.ts",
230
+ "./message-subscriber": "./src/core/components/ui/toast/message-subscriber.ts",
231
+ "./ui/message-subscriber": "./src/core/components/ui/toast/message-subscriber.ts",
232
+ "./ui/toast/message-subscriber": "./src/core/components/ui/toast/message-subscriber.ts",
233
+ "./toast-item": "./src/core/components/ui/toast/toast-item.ts",
234
+ "./ui/toast-item": "./src/core/components/ui/toast/toast-item.ts",
235
+ "./ui/toast/toast-item": "./src/core/components/ui/toast/toast-item.ts",
236
+ "./toast": "./src/core/components/ui/toast/toast.ts",
237
+ "./ui/toast": "./src/core/components/ui/toast/toast.ts",
238
+ "./tooltip": "./src/core/components/ui/tooltip/tooltip.ts",
239
+ "./ui/tooltip": "./src/core/components/ui/tooltip/tooltip.ts",
240
+ "./ui": "./src/core/components/ui/ui.ts",
241
+ "./ui/ui": "./src/core/components/ui/ui.ts",
242
+ "./core": "./src/core/core.ts",
243
+ "./decorators/Subscriber": "./src/core/decorators/Subscriber.ts",
244
+ "./directives/DataProvider": "./src/core/directives/DataProvider.ts",
245
+ "./directives/Wording": "./src/core/directives/Wording.ts",
246
+ "./mixins/Fetcher": "./src/core/mixins/Fetcher.ts",
247
+ "./mixins/FormCheckable": "./src/core/mixins/FormCheckable.ts",
248
+ "./mixins/FormElement": "./src/core/mixins/FormElement.ts",
249
+ "./mixins/FormInput": "./src/core/mixins/FormInput.ts",
250
+ "./mixins/Subscriber": "./src/core/mixins/Subscriber.ts",
251
+ "./mixins/TemplatesContainer": "./src/core/mixins/TemplatesContainer.ts",
252
+ "./mixins/mixins": "./src/core/mixins/mixins.ts",
253
+ "./utils/Arrays": "./src/core/utils/Arrays.ts",
254
+ "./utils/DataBindObserver": "./src/core/utils/DataBindObserver.ts",
255
+ "./utils/Electron": "./src/core/utils/Electron.ts",
256
+ "./utils/Format": "./src/core/utils/Format.ts",
257
+ "./utils/HTML": "./src/core/utils/HTML.ts",
258
+ "./utils/LocationHandler": "./src/core/utils/LocationHandler.ts",
259
+ "./utils/Objects": "./src/core/utils/Objects.ts",
260
+ "./utils/PublisherProxy": "./src/core/utils/PublisherProxy.ts",
261
+ "./utils/Utils": "./src/core/utils/Utils.ts",
262
+ "./utils/api": "./src/core/utils/api.ts",
263
+ "./utils/route": "./src/core/utils/route.ts",
264
+ "./utils/url-pattern": "./src/core/utils/url-pattern.ts",
265
+ "./code": "./src/docs/code.ts",
266
+ "./docs": "./src/docs/docs.ts",
267
+ "./example/users": "./src/docs/example/users.ts",
268
+ "./header/header": "./src/docs/header/header.ts",
269
+ "./navigation/navigation": "./src/docs/navigation/navigation.ts",
270
+ "./prism/index": "./src/docs/prism/index.ts",
271
+ "./search/markdown-renderer": "./src/docs/search/markdown-renderer.ts",
272
+ "./search/page": "./src/docs/search/page.ts",
273
+ "./search/search": "./src/docs/search/search.ts",
274
+ "./tailwind/css/tailwind.d": "./src/docs/tailwind/css/tailwind.d.ts",
275
+ "./tailwind/index": "./src/docs/tailwind/index.ts",
276
+ "./TestUtils": "./src/test-utils/TestUtils.ts"
21
277
  },
22
278
  "devDependencies": {
23
279
  "@jest/globals": "^29.7.0",
@@ -42,4 +298,4 @@
42
298
  "@lit-labs/observers": "^2.0.2",
43
299
  "url-pattern": "^1.0.3"
44
300
  }
45
- }
301
+ }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -2,6 +2,10 @@
2
2
 
3
3
  import fs from "fs";
4
4
  import path from "path";
5
+ import { fileURLToPath } from "url";
6
+ const __filename = fileURLToPath(import.meta.url);
7
+
8
+ const __dirname = path.dirname(__filename);
5
9
 
6
10
  /**
7
11
  * Generates concorde icons from svgs
@@ -20,3 +24,108 @@ fs.writeFileSync(
20
24
  path.resolve("src/core/components/ui/icon/icons.json"),
21
25
  JSON.stringify(icons)
22
26
  );
27
+
28
+ console.log("🚀 Maintenance des shortPath");
29
+ function listFiles(dir) {
30
+ let files = [];
31
+ let list = fs.readdirSync(dir);
32
+ list.forEach((file) => {
33
+ const path = dir + "/" + file;
34
+ let stat = fs.statSync(path);
35
+ if (stat && stat.isDirectory()) {
36
+ files = files.concat(listFiles(path));
37
+ } else {
38
+ if (path.indexOf(".ts") != -1) {
39
+ files.push(path);
40
+ }
41
+ }
42
+ });
43
+ return files;
44
+ }
45
+ const componentsFiles = listFiles(path.resolve(__dirname, "../src"));
46
+ //short notation for ts file
47
+ const shortPathMapping = {};
48
+ componentsFiles.forEach((file) => {
49
+ if (!file.match(/\.ts$/)) {
50
+ return;
51
+ }
52
+ //add simplified path to tsconfig paths
53
+ const filePath = file
54
+ .replace(path.resolve(__dirname, "../src") + "/", "")
55
+ .replace(".ts", "");
56
+ //add path to tsconfig paths
57
+ const split = filePath.split("/");
58
+ if (split[1] == "components") {
59
+ const last = split.pop();
60
+ if (last == "types") {
61
+ return;
62
+ }
63
+ const type = split[2];
64
+ const subType = split[3];
65
+ if (!last) {
66
+ return;
67
+ }
68
+ if (shortPathMapping[`./${last}`]) {
69
+ console.warn(
70
+ `./${last} already exists in ${shortPathMapping[`./${last}`]} : ${file}`
71
+ );
72
+ }
73
+ shortPathMapping[`./${last}`] = [file];
74
+ shortPathMapping[`./${type}/${last}`] = [file];
75
+ if (subType && subType != last) {
76
+ shortPathMapping[`./${type}/${subType}/${last}`] = [file];
77
+ }
78
+ } else {
79
+ split.shift();
80
+ const joined = split.join("/");
81
+ if (!joined) {
82
+ return;
83
+ }
84
+ if (shortPathMapping[`./${joined}`]) {
85
+ console.warn(
86
+ `./${joined} already exists in ${shortPathMapping[`./${joined}`]}`
87
+ );
88
+ }
89
+ shortPathMapping[`./${joined}`] = [file];
90
+ }
91
+ });
92
+
93
+ //set paths in tsconfig
94
+ const tsConfigPathModel = path.resolve(__dirname, "../src/tsconfig-model.json");
95
+ const tsConfigPath = path.resolve(__dirname, "../src/tsconfig.json");
96
+ let jsonString = fs.readFileSync(tsConfigPathModel);
97
+ //remove comments from tsconfig
98
+ jsonString = jsonString;
99
+
100
+ const tsConfig = JSON.parse(jsonString);
101
+ tsConfig.compilerOptions.paths = { ...shortPathMapping };
102
+ tsConfig.compilerOptions.paths["@supersoniks/concorde/*"] = ["./*"];
103
+ tsConfig.compilerOptions.paths["@concorde/*"] = ["./*"];
104
+ fs.writeFileSync(tsConfigPath, JSON.stringify(tsConfig, null, 2));
105
+
106
+ //Do the same using shrotpathMapping to fill the exports un package.json
107
+
108
+ const packageJsonPath = path.resolve(__dirname, "../package.json");
109
+ let packageJson = JSON.parse(fs.readFileSync(packageJsonPath));
110
+
111
+ const pExports = {
112
+ "./core/components/ui/icon/icons.json":
113
+ "./src/core/components/ui/icon/icons.json",
114
+ "./core/components/functional/sdui/default-library.json":
115
+ "./src/core/components/functional/sdui/default-library.json",
116
+ "./*": "./src/*.ts",
117
+ "./vite-config": "./vite/config.js",
118
+ "./rollup-plugin-*": "./rollup/plugin-*.js",
119
+ };
120
+
121
+ for (let key in shortPathMapping) {
122
+ // set key relative to project root
123
+ let p = shortPathMapping[key][0];
124
+ //set path relative to project source
125
+ p = p.replace(path.resolve(__dirname, "../src") + "/", "./src/");
126
+ pExports[key] = p;
127
+ }
128
+
129
+ packageJson.exports = pExports;
130
+
131
+ fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2));
package/src/components.ts CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes