@supersoniks/concorde 3.1.15 → 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 (352) hide show
  1. package/index.html +0 -0
  2. package/notes de migration.md +0 -0
  3. package/package.json +1 -1
  4. package/postcss.config.cjs +0 -0
  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 +0 -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 +0 -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 +0 -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/tailwind/index.ts +0 -0
  238. package/src/docs.ts +0 -0
  239. package/src/index.ts +0 -0
  240. package/src/mixins.ts +0 -0
  241. package/src/tag-list.json +0 -0
  242. package/src/test-utils/TestUtils.ts +0 -0
  243. package/src/tsconfig-model.json +0 -0
  244. package/src/tsconfig.json +0 -0
  245. package/src/utils.ts +0 -0
  246. package/tailwind.config.js +0 -0
  247. package/test-utils/TestUtils.ts +0 -0
  248. package/vite/config.js +3 -0
  249. package/vite.config.mts +0 -0
  250. package/concorde-core.bundle.js +0 -3683
  251. package/concorde-core.es.js +0 -11787
  252. package/dist/concorde-core.bundle.js +0 -3683
  253. package/dist/concorde-core.es.js +0 -11787
  254. package/dist/css/docs.css +0 -0
  255. package/dist/fonts/ClashGrotesk-Bold.eot +0 -0
  256. package/dist/fonts/ClashGrotesk-Bold.ttf +0 -0
  257. package/dist/fonts/ClashGrotesk-Bold.woff +0 -0
  258. package/dist/fonts/ClashGrotesk-Bold.woff2 +0 -0
  259. package/dist/fonts/ClashGrotesk-Extralight.eot +0 -0
  260. package/dist/fonts/ClashGrotesk-Extralight.ttf +0 -0
  261. package/dist/fonts/ClashGrotesk-Extralight.woff +0 -0
  262. package/dist/fonts/ClashGrotesk-Extralight.woff2 +0 -0
  263. package/dist/fonts/ClashGrotesk-Light.eot +0 -0
  264. package/dist/fonts/ClashGrotesk-Light.ttf +0 -0
  265. package/dist/fonts/ClashGrotesk-Light.woff +0 -0
  266. package/dist/fonts/ClashGrotesk-Light.woff2 +0 -0
  267. package/dist/fonts/ClashGrotesk-Medium.eot +0 -0
  268. package/dist/fonts/ClashGrotesk-Medium.ttf +0 -0
  269. package/dist/fonts/ClashGrotesk-Medium.woff +0 -0
  270. package/dist/fonts/ClashGrotesk-Medium.woff2 +0 -0
  271. package/dist/fonts/ClashGrotesk-Regular.eot +0 -0
  272. package/dist/fonts/ClashGrotesk-Regular.ttf +0 -0
  273. package/dist/fonts/ClashGrotesk-Regular.woff +0 -0
  274. package/dist/fonts/ClashGrotesk-Regular.woff2 +0 -0
  275. package/dist/fonts/ClashGrotesk-Semibold.eot +0 -0
  276. package/dist/fonts/ClashGrotesk-Semibold.ttf +0 -0
  277. package/dist/fonts/ClashGrotesk-Semibold.woff +0 -0
  278. package/dist/fonts/ClashGrotesk-Semibold.woff2 +0 -0
  279. package/dist/fonts/ClashGrotesk-Variable.eot +0 -0
  280. package/dist/fonts/ClashGrotesk-Variable.ttf +0 -0
  281. package/dist/fonts/ClashGrotesk-Variable.woff +0 -0
  282. package/dist/fonts/ClashGrotesk-Variable.woff2 +0 -0
  283. package/dist/img/concorde-icon.svg +0 -5
  284. package/dist/img/concorde-logo.svg +0 -1
  285. package/dist/img/concorde.png +0 -0
  286. package/dist/img/concorde_def.png +0 -0
  287. package/dist/img/concorde_seuil.png.webp +0 -0
  288. package/dist/img/concorde_seuil_invert.png +0 -0
  289. package/dist/img/paul_metrand.jpg +0 -0
  290. package/dist/img/paul_metrand_xs.jpg +0 -0
  291. package/dist/svg/regular/plane.svg +0 -1
  292. package/dist/svg/solid/plane.svg +0 -1
  293. package/docs/assets/index--bDsd7qW.css +0 -1
  294. package/docs/assets/index-Ce3mr_lI.js +0 -4040
  295. package/docs/css/docs.css +0 -0
  296. package/docs/img/concorde-logo.svg +0 -1
  297. package/docs/img/concorde.png +0 -0
  298. package/docs/img/concorde_def.png +0 -0
  299. package/docs/index.html +0 -132
  300. package/docs/src/core/components/functional/date/date.md +0 -290
  301. package/docs/src/core/components/functional/fetch/fetch.md +0 -117
  302. package/docs/src/core/components/functional/if/if.md +0 -16
  303. package/docs/src/core/components/functional/list/list.md +0 -194
  304. package/docs/src/core/components/functional/mix/mix.md +0 -41
  305. package/docs/src/core/components/functional/queue/queue.md +0 -87
  306. package/docs/src/core/components/functional/router/router.md +0 -112
  307. package/docs/src/core/components/functional/sdui/default-library.json +0 -108
  308. package/docs/src/core/components/functional/sdui/example.json +0 -99
  309. package/docs/src/core/components/functional/sdui/sdui.md +0 -356
  310. package/docs/src/core/components/functional/states/states.md +0 -87
  311. package/docs/src/core/components/functional/submit/submit.md +0 -48
  312. package/docs/src/core/components/functional/subscriber/subscriber.md +0 -91
  313. package/docs/src/core/components/functional/value/value.md +0 -35
  314. package/docs/src/core/components/ui/alert/alert.md +0 -121
  315. package/docs/src/core/components/ui/badge/badge.md +0 -102
  316. package/docs/src/core/components/ui/button/button.md +0 -184
  317. package/docs/src/core/components/ui/captcha/captcha.md +0 -12
  318. package/docs/src/core/components/ui/card/card.md +0 -96
  319. package/docs/src/core/components/ui/divider/divider.md +0 -35
  320. package/docs/src/core/components/ui/form/checkbox/checkbox.md +0 -96
  321. package/docs/src/core/components/ui/form/fieldset/fieldset.md +0 -129
  322. package/docs/src/core/components/ui/form/form-actions/form-actions.md +0 -77
  323. package/docs/src/core/components/ui/form/form-layout/form-layout.md +0 -43
  324. package/docs/src/core/components/ui/form/input/input.md +0 -168
  325. package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +0 -130
  326. package/docs/src/core/components/ui/form/radio/radio.md +0 -86
  327. package/docs/src/core/components/ui/form/select/select.md +0 -99
  328. package/docs/src/core/components/ui/form/textarea/textarea.md +0 -66
  329. package/docs/src/core/components/ui/group/group.md +0 -75
  330. package/docs/src/core/components/ui/icon/icon.md +0 -125
  331. package/docs/src/core/components/ui/icon/icons.json +0 -1
  332. package/docs/src/core/components/ui/image/image.md +0 -107
  333. package/docs/src/core/components/ui/link/link.md +0 -43
  334. package/docs/src/core/components/ui/loader/loader.md +0 -37
  335. package/docs/src/core/components/ui/menu/menu.md +0 -288
  336. package/docs/src/core/components/ui/modal/modal.md +0 -123
  337. package/docs/src/core/components/ui/pop/pop.md +0 -79
  338. package/docs/src/core/components/ui/progress/progress.md +0 -65
  339. package/docs/src/core/components/ui/table/table.md +0 -467
  340. package/docs/src/core/components/ui/tooltip/tooltip.md +0 -37
  341. package/docs/src/docs/_core-concept/overview.md +0 -57
  342. package/docs/src/docs/_core-concept/subscriber.md +0 -76
  343. package/docs/src/docs/_getting-started/concorde-outside.md +0 -141
  344. package/docs/src/docs/_getting-started/create-a-component.md +0 -137
  345. package/docs/src/docs/_getting-started/pubsub.md +0 -150
  346. package/docs/src/docs/_getting-started/start.md +0 -37
  347. package/docs/src/docs/_getting-started/theming.md +0 -91
  348. package/docs/src/docs/search/docs-search.json +0 -3737
  349. package/docs/src/tag-list.json +0 -1
  350. package/docs/src/tsconfig.json +0 -113
  351. package/docs/svg/regular/plane.svg +0 -1
  352. package/docs/svg/solid/plane.svg +0 -1
@@ -1,22 +1,27 @@
1
- import {animate, fadeIn, fadeOut} from "@lit-labs/motion";
2
- import {customScroll} from "@supersoniks/concorde/core/components/ui/_css/scroll";
1
+ import { animate, fadeIn, fadeOut } from "@lit-labs/motion";
2
+ import { customScroll } from "@supersoniks/concorde/core/components/ui/_css/scroll";
3
3
  import Subscriber from "@supersoniks/concorde/core/mixins/Subscriber";
4
- import {css, html, LitElement, nothing, PropertyValues} from "lit";
5
- import {customElement, property, query, queryAssignedElements} from "lit/decorators.js";
6
- import {styleMap} from "lit/directives/style-map.js";
4
+ import { css, html, LitElement, nothing, PropertyValues } from "lit";
5
+ import {
6
+ customElement,
7
+ property,
8
+ query,
9
+ queryAssignedElements,
10
+ } from "lit/decorators.js";
11
+ import { styleMap } from "lit/directives/style-map.js";
7
12
 
8
13
  import "@supersoniks/concorde/core/components/ui/modal/modal-actions";
9
14
  import "@supersoniks/concorde/core/components/ui/modal/modal-close";
10
15
  import "@supersoniks/concorde/core/components/ui/modal/modal-content";
11
16
  import "@supersoniks/concorde/core/components/ui/modal/modal-subtitle";
12
17
  import "@supersoniks/concorde/core/components/ui/modal/modal-title";
13
- import {PublisherManager} from "@supersoniks/concorde/utils";
14
- import {ConcordeWindow} from "@supersoniks/concorde/core/_types/types";
15
- import {Theme} from "@supersoniks/concorde/core/components/ui/theme/theme";
16
- import {PrimitiveType} from "@supersoniks/concorde/core/_types/types";
17
- import {DirectiveResult} from "lit/directive.js";
18
+ import { PublisherManager } from "@supersoniks/concorde/utils";
19
+ import { ConcordeWindow } from "@supersoniks/concorde/core/_types/types";
20
+ import { Theme } from "@supersoniks/concorde/core/components/ui/theme/theme";
21
+ import { PrimitiveType } from "@supersoniks/concorde/core/_types/types";
22
+ import { DirectiveResult } from "lit/directive.js";
18
23
 
19
- import {unsafeHTML} from "lit/directives/unsafe-html.js";
24
+ import { unsafeHTML } from "lit/directives/unsafe-html.js";
20
25
 
21
26
  declare const window: ConcordeWindow;
22
27
  declare type ModalCreateOptions = {
@@ -97,14 +102,17 @@ export class Modal extends Subscriber(LitElement) {
97
102
  position: fixed;
98
103
  }
99
104
 
100
- ::slotted(sonic-modal-title) {
105
+ ::slotted(sonic-modal-title),
106
+ sonic-modal-title {
101
107
  margin-bottom: 1.25rem;
102
108
  }
103
- :host([align="left"]) ::slotted(sonic-modal-title) {
109
+ :host([align="left"]) ::slotted(sonic-modal-title),
110
+ :host([align="left"]) sonic-modal-title {
104
111
  padding-right: 1em;
105
112
  }
106
113
 
107
- ::slotted(sonic-modal-subtitle) {
114
+ ::slotted(sonic-modal-subtitle),
115
+ sonic-modal-subtitle {
108
116
  margin-top: -0.9rem;
109
117
  margin-bottom: 1.25rem;
110
118
  }
@@ -158,33 +166,38 @@ export class Modal extends Subscriber(LitElement) {
158
166
  ];
159
167
  static modals: Array<Modal> = [];
160
168
 
161
- @property({type: Boolean}) forceAction = false;
162
- @property({type: Boolean}) removeOnHide = false;
163
- @property({type: Boolean}) removeHashOnHide = false;
164
- @property({type: String, reflect: true}) align: "center" | "right" | "left" = "left";
165
-
166
- @property({type: String}) padding = "var(--sc-modal-py) var(--sc-modal-px)";
167
- @property({type: String}) maxWidth = "var(--sc-modal-max-w) ";
168
- @property({type: String}) maxHeight = "var(--sc-modal-max-h) ";
169
- @property({type: String}) width = "100%";
170
- @property({type: String}) height = "auto";
171
- @property({type: String}) zIndex = "var(--sc-modal-z-index)";
172
- @property({type: Object}) options?: ModalCreateOptions;
173
- @property({type: Boolean, reflect: true}) fullScreen = false;
174
- @property({type: Boolean, reflect: true}) visible = false;
169
+ @property({ type: Boolean }) forceAction = false;
170
+ @property({ type: Boolean }) removeOnHide = false;
171
+ @property({ type: Boolean }) removeHashOnHide = false;
172
+ @property({ type: String, reflect: true }) align:
173
+ | "center"
174
+ | "right"
175
+ | "left" = "left";
176
+
177
+ @property({ type: String }) padding = "var(--sc-modal-py) var(--sc-modal-px)";
178
+ @property({ type: String }) maxWidth = "var(--sc-modal-max-w) ";
179
+ @property({ type: String }) maxHeight = "var(--sc-modal-max-h) ";
180
+ @property({ type: String }) width = "100%";
181
+ @property({ type: String }) height = "auto";
182
+ @property({ type: String }) zIndex = "var(--sc-modal-z-index)";
183
+ @property({ type: Object }) options?: ModalCreateOptions;
184
+ @property({ type: Boolean, reflect: true }) fullScreen = false;
185
+ @property({ type: Boolean, reflect: true }) visible = false;
175
186
 
176
187
  @query(".modal-wrapper") modalWrapper!: HTMLDivElement;
177
188
  @query(".modal") modalElement!: HTMLDivElement;
178
189
 
179
- @queryAssignedElements({selector: "sonic-modal-close"})
190
+ @queryAssignedElements({ selector: "sonic-modal-close" })
180
191
  closeBtn!: Array<HTMLElement>;
181
192
  static create(options: ModalCreateOptions): Modal {
182
193
  const modal = document.createElement(tagName) as Modal;
183
194
  // modal styles
184
195
  modal.options = options;
185
196
 
186
- if (options.removeHashOnHide === true) modal.setAttribute("removeHashOnHide", "true");
187
- if (options.removeOnHide === true) modal.setAttribute("removeOnHide", "true");
197
+ if (options.removeHashOnHide === true)
198
+ modal.setAttribute("removeHashOnHide", "true");
199
+ if (options.removeOnHide === true)
200
+ modal.setAttribute("removeOnHide", "true");
188
201
 
189
202
  if (options.maxWidth) modal.maxWidth = options?.maxWidth;
190
203
  if (options.width) modal.width = options?.width;
@@ -192,9 +205,12 @@ export class Modal extends Subscriber(LitElement) {
192
205
  if (options.height) modal.height = options?.height;
193
206
  if (options.forceAction) modal.forceAction = true;
194
207
 
195
- if (options.paddingX) modal.style.setProperty("--sc-modal-px", options?.paddingX);
196
- if (options.paddingY) modal.style.setProperty("--sc-modal-py", options?.paddingY);
197
- if (options.zIndex) modal.style.setProperty("--sc-modal-z-index", options?.zIndex);
208
+ if (options.paddingX)
209
+ modal.style.setProperty("--sc-modal-px", options?.paddingX);
210
+ if (options.paddingY)
211
+ modal.style.setProperty("--sc-modal-py", options?.paddingY);
212
+ if (options.zIndex)
213
+ modal.style.setProperty("--sc-modal-z-index", options?.zIndex);
198
214
 
199
215
  const container = Theme.getPopContainer();
200
216
  container.appendChild(modal);
@@ -223,7 +239,7 @@ export class Modal extends Subscriber(LitElement) {
223
239
  function () {
224
240
  currentModal.hide();
225
241
  },
226
- {once: true}
242
+ { once: true }
227
243
  );
228
244
  });
229
245
  }
@@ -273,13 +289,28 @@ export class Modal extends Subscriber(LitElement) {
273
289
  duration: 400,
274
290
  easing: `cubic-bezier(0.250, 0.250, 0.420, 1.225)`,
275
291
  },
276
- in: [{transform: "translateY(25%) scale(1)", boxShadow: "0 0 0 rgba(0,0,0,0)", opacity: 0}],
277
- out: [{transform: "translateY(20%) scale(1)", boxShadow: "0 0 0 rgba(0,0,0,0)", opacity: 0}],
292
+ in: [
293
+ {
294
+ transform: "translateY(25%) scale(1)",
295
+ boxShadow: "0 0 0 rgba(0,0,0,0)",
296
+ opacity: 0,
297
+ },
298
+ ],
299
+ out: [
300
+ {
301
+ transform: "translateY(20%) scale(1)",
302
+ boxShadow: "0 0 0 rgba(0,0,0,0)",
303
+ opacity: 0,
304
+ },
305
+ ],
278
306
  })}
279
307
  >
280
308
  <div class="modal-content">
281
- ${!this.options?.forceAction ? html`<sonic-modal-close></sonic-modal-close>` : nothing} ${this.modalFragment("title")}
282
- ${this.modalFragment("subtitle")} ${this.modalFragment("content")} ${this.modalFragment("actions")}
309
+ ${!this.options?.forceAction
310
+ ? html`<sonic-modal-close></sonic-modal-close>`
311
+ : nothing}
312
+ ${this.modalFragment("title")} ${this.modalFragment("subtitle")}
313
+ ${this.modalFragment("content")} ${this.modalFragment("actions")}
283
314
 
284
315
  <slot></slot>
285
316
  </div>
@@ -293,7 +324,7 @@ export class Modal extends Subscriber(LitElement) {
293
324
  duration: 500,
294
325
  },
295
326
  in: fadeIn,
296
- out: [{opacity: 0, pointerEvents: "none"}],
327
+ out: [{ opacity: 0, pointerEvents: "none" }],
297
328
  })}
298
329
  ></div>`;
299
330
  }
@@ -337,7 +368,9 @@ export class Modal extends Subscriber(LitElement) {
337
368
  this.modalElement?.setAttribute("tabindex", "-1");
338
369
  this.dispatchEvent(new CustomEvent("hide"));
339
370
  if (this.hasAttribute("resetDataProviderOnHide")) {
340
- PublisherManager.get(this.getAttribute("resetDataProviderOnHide")).set({});
371
+ PublisherManager.get(this.getAttribute("resetDataProviderOnHide")).set(
372
+ {}
373
+ );
341
374
  }
342
375
  if (this.removeOnHide) {
343
376
  this.remove();
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
package/src/core/core.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
package/src/decorators.ts CHANGED
File without changes
package/src/directives.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
package/src/docs/code.ts CHANGED
File without changes
package/src/docs/docs.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
package/src/docs.ts CHANGED
File without changes
package/src/index.ts CHANGED
File without changes
package/src/mixins.ts CHANGED
File without changes
package/src/tag-list.json CHANGED
File without changes
File without changes
File without changes
package/src/tsconfig.json CHANGED
File without changes
package/src/utils.ts CHANGED
File without changes
File without changes
File without changes
package/vite/config.js CHANGED
@@ -164,6 +164,7 @@ const scopeComponents = (prefix, filesFilter) => {
164
164
  resolveId(source) {
165
165
  const source0 = source;
166
166
  if (shortPathMapping[source]) {
167
+ console.log("shortPathMapping", shortPathMapping[source]);
167
168
  return shortPathMapping[source][0];
168
169
  }
169
170
  /** old way */
@@ -200,6 +201,8 @@ const scopeComponents = (prefix, filesFilter) => {
200
201
  source.replace("@supersoniks/concorde", __dirname + "/../src") +
201
202
  extension
202
203
  );
204
+ // console.log("longPathMapping", result);
205
+
203
206
  return result;
204
207
  // return resolveURI(source0);
205
208
  },
package/vite.config.mts CHANGED
File without changes