@supersoniks/concorde 2.0.7 → 3.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 (407) hide show
  1. package/build-infos.json +1 -0
  2. package/concorde-core.bundle.js +387 -344
  3. package/concorde-core.es.js +8040 -11093
  4. package/index.html +44 -0
  5. package/notes de migration.md +21 -0
  6. package/package.json +23 -290
  7. package/scripts/postbuild.mjs +22 -0
  8. package/scripts/prebuild.mjs +22 -0
  9. package/{components.js → src/components.ts} +5 -2
  10. package/src/concorde-loaded.ts +3 -0
  11. package/src/core/_types/types.ts +55 -0
  12. package/src/core/components/functional/date/date.md +290 -0
  13. package/src/core/components/functional/date/date.ts +206 -0
  14. package/src/core/components/functional/example/example.ts +11 -0
  15. package/src/core/components/functional/fetch/fetch.md +117 -0
  16. package/{core/components/functional/fetch/fetch.js → src/core/components/functional/fetch/fetch.ts} +33 -37
  17. package/src/core/components/functional/if/if.md +16 -0
  18. package/src/core/components/functional/if/if.test.ts +40 -0
  19. package/src/core/components/functional/if/if.ts +23 -0
  20. package/src/core/components/functional/list/list.md +194 -0
  21. package/src/core/components/functional/list/list.ts +236 -0
  22. package/src/core/components/functional/mix/mix.md +41 -0
  23. package/src/core/components/functional/mix/mix.ts +95 -0
  24. package/src/core/components/functional/queue/queue.md +87 -0
  25. package/src/core/components/functional/queue/queue.ts +279 -0
  26. package/src/core/components/functional/router/redirect.ts +44 -0
  27. package/src/core/components/functional/router/router.md +112 -0
  28. package/src/core/components/functional/router/router.ts +108 -0
  29. package/src/core/components/functional/sdui/SDUIDescriptorTransformer.ts +229 -0
  30. package/{core → src/core}/components/functional/sdui/default-library.json +13 -13
  31. package/src/core/components/functional/sdui/example.json +99 -0
  32. package/src/core/components/functional/sdui/sdui-utils.ts +62 -0
  33. package/src/core/components/functional/sdui/sdui.md +356 -0
  34. package/src/core/components/functional/sdui/sdui.ts +230 -0
  35. package/src/core/components/functional/sdui/types.ts +34 -0
  36. package/src/core/components/functional/sonic-scope/sonic-scope.ts +13 -0
  37. package/src/core/components/functional/states/states.md +87 -0
  38. package/src/core/components/functional/states/states.ts +121 -0
  39. package/src/core/components/functional/submit/submit.md +48 -0
  40. package/src/core/components/functional/submit/submit.ts +265 -0
  41. package/src/core/components/functional/subscriber/subscriber.md +91 -0
  42. package/src/core/components/functional/subscriber/subscriber.ts +28 -0
  43. package/src/core/components/functional/value/value.md +35 -0
  44. package/src/core/components/functional/value/value.ts +18 -0
  45. package/{core/components/ui/_css/scroll.js → src/core/components/ui/_css/scroll.ts} +3 -2
  46. package/{core/components/ui/_css/size.js → src/core/components/ui/_css/size.ts} +5 -2
  47. package/{core/components/ui/_css/type.js → src/core/components/ui/_css/type.ts} +5 -3
  48. package/src/core/components/ui/alert/alert.md +121 -0
  49. package/src/core/components/ui/alert/alert.ts +177 -0
  50. package/src/core/components/ui/badge/badge.md +102 -0
  51. package/{core/components/ui/badge/badge.js → src/core/components/ui/badge/badge.ts} +36 -51
  52. package/src/core/components/ui/button/button.md +184 -0
  53. package/{core/components/ui/button/button.js → src/core/components/ui/button/button.ts} +258 -302
  54. package/src/core/components/ui/captcha/captcha.md +12 -0
  55. package/src/core/components/ui/captcha/captcha.ts +88 -0
  56. package/src/core/components/ui/card/card-footer.ts +19 -0
  57. package/src/core/components/ui/card/card-header-descripton.ts +24 -0
  58. package/{core/components/ui/card/card-header.js → src/core/components/ui/card/card-header.ts} +28 -38
  59. package/src/core/components/ui/card/card-main.ts +24 -0
  60. package/src/core/components/ui/card/card.md +96 -0
  61. package/{core/components/ui/card/card.js → src/core/components/ui/card/card.ts} +23 -34
  62. package/src/core/components/ui/divider/divider.md +35 -0
  63. package/{core/components/ui/divider/divider.js → src/core/components/ui/divider/divider.ts} +35 -65
  64. package/src/core/components/ui/form/checkbox/checkbox.md +96 -0
  65. package/{core/components/ui/form/checkbox/checkbox.js → src/core/components/ui/form/checkbox/checkbox.ts} +79 -98
  66. package/{core/components/ui/form/css/form-control.js → src/core/components/ui/form/css/form-control.ts} +9 -5
  67. package/src/core/components/ui/form/fieldset/fieldset.md +129 -0
  68. package/src/core/components/ui/form/fieldset/fieldset.ts +96 -0
  69. package/src/core/components/ui/form/fieldset/legend-description.ts +23 -0
  70. package/src/core/components/ui/form/fieldset/legend.ts +90 -0
  71. package/src/core/components/ui/form/form-actions/form-actions.md +77 -0
  72. package/src/core/components/ui/form/form-actions/form-actions.ts +32 -0
  73. package/src/core/components/ui/form/form-layout/form-layout.md +43 -0
  74. package/src/core/components/ui/form/form-layout/form-layout.ts +71 -0
  75. package/src/core/components/ui/form/input/input.md +168 -0
  76. package/src/core/components/ui/form/input/input.ts +227 -0
  77. package/src/core/components/ui/form/input/password-helper.ts +68 -0
  78. package/src/core/components/ui/form/input/same-value-helper.ts +48 -0
  79. package/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +130 -0
  80. package/src/core/components/ui/form/input-autocomplete/input-autocomplete.ts +285 -0
  81. package/src/core/components/ui/form/radio/radio.md +86 -0
  82. package/src/core/components/ui/form/radio/radio.ts +44 -0
  83. package/src/core/components/ui/form/select/select.md +99 -0
  84. package/src/core/components/ui/form/select/select.ts +310 -0
  85. package/src/core/components/ui/form/textarea/textarea.md +66 -0
  86. package/src/core/components/ui/form/textarea/textarea.ts +119 -0
  87. package/src/core/components/ui/group/group.md +75 -0
  88. package/src/core/components/ui/group/group.ts +101 -0
  89. package/src/core/components/ui/icon/icon.md +125 -0
  90. package/src/core/components/ui/icon/icon.stories.ts +100 -0
  91. package/src/core/components/ui/icon/icon.ts +106 -0
  92. package/src/core/components/ui/icon/icons.json +1 -0
  93. package/src/core/components/ui/icon/icons.ts +130 -0
  94. package/src/core/components/ui/icon/svgs/cancel.svg +3 -0
  95. package/src/core/components/ui/icon/svgs/check-circled-outline.svg +4 -0
  96. package/src/core/components/ui/icon/svgs/check.svg +3 -0
  97. package/src/core/components/ui/icon/svgs/emoji-puzzled.svg +1 -0
  98. package/src/core/components/ui/icon/svgs/info-empty.svg +5 -0
  99. package/src/core/components/ui/icon/svgs/loader.svg +1 -0
  100. package/src/core/components/ui/icon/svgs/minus-small.svg +3 -0
  101. package/src/core/components/ui/icon/svgs/more-horiz.svg +5 -0
  102. package/src/core/components/ui/icon/svgs/more-vert.svg +5 -0
  103. package/src/core/components/ui/icon/svgs/nav-arrow-down.svg +3 -0
  104. package/src/core/components/ui/icon/svgs/warning-circled-outline.svg +5 -0
  105. package/src/core/components/ui/image/image.md +107 -0
  106. package/src/core/components/ui/image/image.ts +117 -0
  107. package/src/core/components/ui/link/link.md +43 -0
  108. package/src/core/components/ui/link/link.ts +108 -0
  109. package/src/core/components/ui/loader/loader.md +37 -0
  110. package/src/core/components/ui/loader/loader.stories.ts +25 -0
  111. package/src/core/components/ui/loader/loader.ts +81 -0
  112. package/{core/components/ui/loader/styles/fixed.js → src/core/components/ui/loader/styles/fixed.ts} +2 -1
  113. package/{core/components/ui/loader/styles/inline.js → src/core/components/ui/loader/styles/inline.ts} +3 -2
  114. package/src/core/components/ui/menu/menu-item.ts +30 -0
  115. package/src/core/components/ui/menu/menu.md +288 -0
  116. package/src/core/components/ui/menu/menu.ts +292 -0
  117. package/src/core/components/ui/modal/modal-actions.ts +35 -0
  118. package/src/core/components/ui/modal/modal-close.ts +36 -0
  119. package/src/core/components/ui/modal/modal-content.ts +19 -0
  120. package/src/core/components/ui/modal/modal-subtitle.ts +23 -0
  121. package/src/core/components/ui/modal/modal-title.ts +22 -0
  122. package/src/core/components/ui/modal/modal.md +123 -0
  123. package/src/core/components/ui/modal/modal.stories.ts +140 -0
  124. package/src/core/components/ui/modal/modal.ts +386 -0
  125. package/src/core/components/ui/pop/pop.md +79 -0
  126. package/src/core/components/ui/pop/pop.ts +291 -0
  127. package/src/core/components/ui/progress/progress.md +65 -0
  128. package/{core/components/ui/progress/progress.js → src/core/components/ui/progress/progress.ts} +31 -50
  129. package/src/core/components/ui/table/table-caption.ts +21 -0
  130. package/src/core/components/ui/table/table-tbody.ts +32 -0
  131. package/src/core/components/ui/table/table-td.ts +47 -0
  132. package/src/core/components/ui/table/table-tfoot.ts +20 -0
  133. package/src/core/components/ui/table/table-th.ts +56 -0
  134. package/src/core/components/ui/table/table-thead.ts +18 -0
  135. package/src/core/components/ui/table/table-tr.ts +48 -0
  136. package/src/core/components/ui/table/table.md +467 -0
  137. package/{core/components/ui/table/table.js → src/core/components/ui/table/table.ts} +32 -53
  138. package/{core/components/ui/theme/theme-collection/core-variables.js → src/core/components/ui/theme/theme-collection/core-variables.ts} +3 -2
  139. package/{core/components/ui/theme/theme-collection/dark.js → src/core/components/ui/theme/theme-collection/dark.ts} +5 -3
  140. package/{core/components/ui/theme/theme-collection/light.js → src/core/components/ui/theme/theme-collection/light.ts} +3 -2
  141. package/src/core/components/ui/theme/theme.ts +118 -0
  142. package/src/core/components/ui/toast/message-subscriber.stories.ts +43 -0
  143. package/src/core/components/ui/toast/message-subscriber.ts +37 -0
  144. package/{core/components/ui/toast/toast-item.js → src/core/components/ui/toast/toast-item.ts} +86 -113
  145. package/src/core/components/ui/toast/toast.ts +237 -0
  146. package/src/core/components/ui/toast/types.ts +14 -0
  147. package/src/core/components/ui/tooltip/tooltip.md +37 -0
  148. package/{core/components/ui/tooltip/tooltip.js → src/core/components/ui/tooltip/tooltip.ts} +26 -47
  149. package/{core/components/ui/ui.js → src/core/components/ui/ui.ts} +2 -0
  150. package/src/core/core.ts +22 -0
  151. package/src/core/decorators/Subscriber.ts +187 -0
  152. package/src/core/directives/DataProvider.ts +113 -0
  153. package/src/core/directives/Wording.ts +220 -0
  154. package/src/core/mixins/Fetcher.ts +258 -0
  155. package/src/core/mixins/FormCheckable.ts +287 -0
  156. package/src/core/mixins/FormElement.ts +275 -0
  157. package/src/core/mixins/FormInput.ts +135 -0
  158. package/src/core/mixins/Subscriber.ts +352 -0
  159. package/src/core/mixins/TemplatesContainer.ts +70 -0
  160. package/{core/mixins/mixins.d.ts → src/core/mixins/mixins.ts} +1 -1
  161. package/src/core/utils/Arrays.ts +161 -0
  162. package/src/core/utils/DataBindObserver.ts +286 -0
  163. package/src/core/utils/Electron.ts +15 -0
  164. package/src/core/utils/Format.ts +58 -0
  165. package/src/core/utils/HTML.ts +126 -0
  166. package/src/core/utils/LocationHandler.ts +139 -0
  167. package/src/core/utils/Objects.ts +103 -0
  168. package/src/core/utils/PublisherProxy.ts +786 -0
  169. package/src/core/utils/Utils.ts +12 -0
  170. package/src/core/utils/api.ts +456 -0
  171. package/{core/utils/url-pattern.d.ts → src/core/utils/url-pattern.ts} +1 -0
  172. package/{decorators.js → src/decorators.ts} +6 -2
  173. package/{directives.js → src/directives.ts} +11 -6
  174. package/src/docs/_core-concept/overview.md +57 -0
  175. package/src/docs/_core-concept/subscriber.md +76 -0
  176. package/src/docs/_getting-started/concorde-outside.md +141 -0
  177. package/src/docs/_getting-started/create-a-component.md +137 -0
  178. package/src/docs/_getting-started/pubsub.md +150 -0
  179. package/src/docs/_getting-started/start.md +37 -0
  180. package/src/docs/_getting-started/theming.md +91 -0
  181. package/src/docs/code.ts +281 -0
  182. package/src/docs/docs.ts +6 -0
  183. package/src/docs/example/users.ts +64 -0
  184. package/src/docs/navigation/navigation.ts +101 -0
  185. package/src/docs/prism/index.ts +6 -0
  186. package/src/docs/prism/prism.css +158 -0
  187. package/src/docs/prism/prism.js +1022 -0
  188. package/src/docs/search/docs-search.json +3767 -0
  189. package/src/docs/search/markdown-renderer.ts +40 -0
  190. package/src/docs/search/page.ts +40 -0
  191. package/src/docs/search/search.ts +184 -0
  192. package/src/docs.ts +2 -0
  193. package/src/index.ts +7 -0
  194. package/{mixins.js → src/mixins.ts} +10 -6
  195. package/src/tag-list.json +1 -0
  196. package/src/test-utils/TestUtils.ts +13 -0
  197. package/src/tsconfig.json +113 -0
  198. package/{utils.js → src/utils.ts} +15 -11
  199. package/test-utils/TestUtils.ts +13 -0
  200. package/vite/config.js +136 -0
  201. package/vite.config.mts +87 -0
  202. package/README.md +0 -27
  203. package/cli.js +0 -75
  204. package/components.d.ts +0 -4
  205. package/core/_types/types.d.ts +0 -28
  206. package/core/_types/types.js +0 -2
  207. package/core/components/functional/date/date.d.ts +0 -45
  208. package/core/components/functional/date/date.js +0 -243
  209. package/core/components/functional/example/example.d.ts +0 -7
  210. package/core/components/functional/example/example.js +0 -26
  211. package/core/components/functional/fetch/fetch.d.ts +0 -93
  212. package/core/components/functional/functional.js +0 -15
  213. package/core/components/functional/if/if.d.ts +0 -12
  214. package/core/components/functional/if/if.js +0 -38
  215. package/core/components/functional/if/if.test.d.ts +0 -1
  216. package/core/components/functional/if/if.test.js +0 -35
  217. package/core/components/functional/list/list.d.ts +0 -117
  218. package/core/components/functional/list/list.js +0 -214
  219. package/core/components/functional/mix/mix.d.ts +0 -22
  220. package/core/components/functional/mix/mix.js +0 -102
  221. package/core/components/functional/queue/queue.d.ts +0 -67
  222. package/core/components/functional/queue/queue.js +0 -310
  223. package/core/components/functional/router/redirect.d.ts +0 -18
  224. package/core/components/functional/router/redirect.js +0 -53
  225. package/core/components/functional/router/router.d.ts +0 -27
  226. package/core/components/functional/router/router.js +0 -119
  227. package/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts +0 -58
  228. package/core/components/functional/sdui/SDUIDescriptorTransformer.js +0 -215
  229. package/core/components/functional/sdui/sdui-utils.d.ts +0 -5
  230. package/core/components/functional/sdui/sdui-utils.js +0 -63
  231. package/core/components/functional/sdui/sdui.d.ts +0 -136
  232. package/core/components/functional/sdui/sdui.js +0 -254
  233. package/core/components/functional/sdui/types.d.ts +0 -37
  234. package/core/components/functional/sdui/types.js +0 -1
  235. package/core/components/functional/sonic-scope/sonic-scope.d.ts +0 -5
  236. package/core/components/functional/sonic-scope/sonic-scope.js +0 -21
  237. package/core/components/functional/states/states.d.ts +0 -29
  238. package/core/components/functional/states/states.js +0 -134
  239. package/core/components/functional/submit/submit.d.ts +0 -30
  240. package/core/components/functional/submit/submit.js +0 -236
  241. package/core/components/functional/subscriber/subscriber.d.ts +0 -12
  242. package/core/components/functional/subscriber/subscriber.js +0 -38
  243. package/core/components/functional/value/value.d.ts +0 -7
  244. package/core/components/functional/value/value.js +0 -27
  245. package/core/components/ui/_css/scroll.d.ts +0 -1
  246. package/core/components/ui/_css/size.d.ts +0 -2
  247. package/core/components/ui/_css/type.d.ts +0 -2
  248. package/core/components/ui/alert/alert.d.ts +0 -34
  249. package/core/components/ui/alert/alert.js +0 -202
  250. package/core/components/ui/badge/badge.d.ts +0 -26
  251. package/core/components/ui/button/button.d.ts +0 -171
  252. package/core/components/ui/captcha/captcha.d.ts +0 -30
  253. package/core/components/ui/captcha/captcha.js +0 -93
  254. package/core/components/ui/card/card-footer.d.ts +0 -4
  255. package/core/components/ui/card/card-footer.js +0 -24
  256. package/core/components/ui/card/card-header-descripton.d.ts +0 -5
  257. package/core/components/ui/card/card-header-descripton.js +0 -32
  258. package/core/components/ui/card/card-header.d.ts +0 -8
  259. package/core/components/ui/card/card-main.d.ts +0 -4
  260. package/core/components/ui/card/card-main.js +0 -28
  261. package/core/components/ui/card/card.d.ts +0 -12
  262. package/core/components/ui/divider/divider.d.ts +0 -15
  263. package/core/components/ui/form/checkbox/checkbox.d.ts +0 -181
  264. package/core/components/ui/form/css/form-control.d.ts +0 -4
  265. package/core/components/ui/form/fieldset/fieldset.d.ts +0 -23
  266. package/core/components/ui/form/fieldset/fieldset.js +0 -118
  267. package/core/components/ui/form/fieldset/legend-description.d.ts +0 -5
  268. package/core/components/ui/form/fieldset/legend-description.js +0 -30
  269. package/core/components/ui/form/fieldset/legend.d.ts +0 -16
  270. package/core/components/ui/form/fieldset/legend.js +0 -112
  271. package/core/components/ui/form/form-actions/form-actions.d.ts +0 -7
  272. package/core/components/ui/form/form-actions/form-actions.js +0 -46
  273. package/core/components/ui/form/form-layout/form-layout.d.ts +0 -12
  274. package/core/components/ui/form/form-layout/form-layout.js +0 -83
  275. package/core/components/ui/form/input/input.d.ts +0 -106
  276. package/core/components/ui/form/input/input.js +0 -268
  277. package/core/components/ui/form/input/password-helper.d.ts +0 -25
  278. package/core/components/ui/form/input/password-helper.js +0 -119
  279. package/core/components/ui/form/input/same-value-helper.d.ts +0 -16
  280. package/core/components/ui/form/input/same-value-helper.js +0 -77
  281. package/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +0 -136
  282. package/core/components/ui/form/input-autocomplete/input-autocomplete.js +0 -296
  283. package/core/components/ui/form/radio/radio.d.ts +0 -12
  284. package/core/components/ui/form/radio/radio.js +0 -50
  285. package/core/components/ui/form/select/select.d.ts +0 -58
  286. package/core/components/ui/form/select/select.js +0 -298
  287. package/core/components/ui/form/textarea/textarea.d.ts +0 -84
  288. package/core/components/ui/form/textarea/textarea.js +0 -150
  289. package/core/components/ui/group/group.d.ts +0 -16
  290. package/core/components/ui/group/group.js +0 -118
  291. package/core/components/ui/icon/icon.d.ts +0 -26
  292. package/core/components/ui/icon/icon.js +0 -113
  293. package/core/components/ui/icon/icons.d.ts +0 -10
  294. package/core/components/ui/icon/icons.js +0 -126
  295. package/core/components/ui/icon/icons.json +0 -1
  296. package/core/components/ui/image/image.d.ts +0 -15
  297. package/core/components/ui/image/image.js +0 -153
  298. package/core/components/ui/link/link.d.ts +0 -29
  299. package/core/components/ui/link/link.js +0 -124
  300. package/core/components/ui/loader/loader.d.ts +0 -23
  301. package/core/components/ui/loader/loader.js +0 -97
  302. package/core/components/ui/loader/styles/fixed.d.ts +0 -1
  303. package/core/components/ui/loader/styles/inline.d.ts +0 -1
  304. package/core/components/ui/menu/menu-item.d.ts +0 -5
  305. package/core/components/ui/menu/menu-item.js +0 -34
  306. package/core/components/ui/menu/menu.d.ts +0 -41
  307. package/core/components/ui/menu/menu.js +0 -313
  308. package/core/components/ui/modal/modal-actions.d.ts +0 -7
  309. package/core/components/ui/modal/modal-actions.js +0 -42
  310. package/core/components/ui/modal/modal-close.d.ts +0 -7
  311. package/core/components/ui/modal/modal-close.js +0 -43
  312. package/core/components/ui/modal/modal-content.d.ts +0 -5
  313. package/core/components/ui/modal/modal-content.js +0 -26
  314. package/core/components/ui/modal/modal-subtitle.d.ts +0 -5
  315. package/core/components/ui/modal/modal-subtitle.js +0 -30
  316. package/core/components/ui/modal/modal-title.d.ts +0 -5
  317. package/core/components/ui/modal/modal-title.js +0 -29
  318. package/core/components/ui/modal/modal.d.ts +0 -58
  319. package/core/components/ui/modal/modal.js +0 -401
  320. package/core/components/ui/pop/pop.d.ts +0 -37
  321. package/core/components/ui/pop/pop.js +0 -299
  322. package/core/components/ui/progress/progress.d.ts +0 -10
  323. package/core/components/ui/table/table-caption.d.ts +0 -5
  324. package/core/components/ui/table/table-caption.js +0 -28
  325. package/core/components/ui/table/table-tbody.d.ts +0 -5
  326. package/core/components/ui/table/table-tbody.js +0 -39
  327. package/core/components/ui/table/table-td.d.ts +0 -12
  328. package/core/components/ui/table/table-td.js +0 -68
  329. package/core/components/ui/table/table-tfoot.d.ts +0 -5
  330. package/core/components/ui/table/table-tfoot.js +0 -27
  331. package/core/components/ui/table/table-th.d.ts +0 -11
  332. package/core/components/ui/table/table-th.js +0 -73
  333. package/core/components/ui/table/table-thead.d.ts +0 -5
  334. package/core/components/ui/table/table-thead.js +0 -25
  335. package/core/components/ui/table/table-tr.d.ts +0 -13
  336. package/core/components/ui/table/table-tr.js +0 -66
  337. package/core/components/ui/table/table.d.ts +0 -17
  338. package/core/components/ui/theme/theme-collection/core-variables.d.ts +0 -1
  339. package/core/components/ui/theme/theme-collection/dark.d.ts +0 -1
  340. package/core/components/ui/theme/theme-collection/light.d.ts +0 -1
  341. package/core/components/ui/theme/theme.d.ts +0 -19
  342. package/core/components/ui/theme/theme.js +0 -124
  343. package/core/components/ui/toast/message-subscriber.d.ts +0 -18
  344. package/core/components/ui/toast/message-subscriber.js +0 -40
  345. package/core/components/ui/toast/toast-item.d.ts +0 -19
  346. package/core/components/ui/toast/toast.d.ts +0 -25
  347. package/core/components/ui/toast/toast.js +0 -226
  348. package/core/components/ui/toast/types.d.ts +0 -11
  349. package/core/components/ui/toast/types.js +0 -1
  350. package/core/components/ui/tooltip/tooltip.d.ts +0 -10
  351. package/core/components/ui/ui.d.ts +0 -32
  352. package/core/core.d.ts +0 -4
  353. package/core/core.js +0 -19
  354. package/core/decorators/Subscriber.d.ts +0 -4
  355. package/core/decorators/Subscriber.js +0 -166
  356. package/core/directives/DataProvider.d.ts +0 -23
  357. package/core/directives/DataProvider.js +0 -102
  358. package/core/directives/Wording.d.ts +0 -42
  359. package/core/directives/Wording.js +0 -202
  360. package/core/mixins/Fetcher.d.ts +0 -90
  361. package/core/mixins/Fetcher.js +0 -242
  362. package/core/mixins/FormCheckable.d.ts +0 -88
  363. package/core/mixins/FormCheckable.js +0 -306
  364. package/core/mixins/FormElement.d.ts +0 -32
  365. package/core/mixins/FormElement.js +0 -272
  366. package/core/mixins/FormInput.d.ts +0 -70
  367. package/core/mixins/FormInput.js +0 -81
  368. package/core/mixins/Subscriber.d.ts +0 -36
  369. package/core/mixins/Subscriber.js +0 -333
  370. package/core/mixins/TemplatesContainer.d.ts +0 -13
  371. package/core/mixins/TemplatesContainer.js +0 -69
  372. package/core/mixins/mixins.js +0 -6
  373. package/core/utils/Arrays.d.ts +0 -97
  374. package/core/utils/Arrays.js +0 -140
  375. package/core/utils/DataBindObserver.d.ts +0 -83
  376. package/core/utils/DataBindObserver.js +0 -264
  377. package/core/utils/Electron.d.ts +0 -7
  378. package/core/utils/Electron.js +0 -11
  379. package/core/utils/Format.d.ts +0 -12
  380. package/core/utils/Format.js +0 -38
  381. package/core/utils/HTML.d.ts +0 -42
  382. package/core/utils/HTML.js +0 -119
  383. package/core/utils/LocationHandler.d.ts +0 -46
  384. package/core/utils/LocationHandler.js +0 -133
  385. package/core/utils/Objects.d.ts +0 -28
  386. package/core/utils/Objects.js +0 -102
  387. package/core/utils/PublisherProxy.d.ts +0 -176
  388. package/core/utils/PublisherProxy.js +0 -709
  389. package/core/utils/Utils.d.ts +0 -4
  390. package/core/utils/Utils.js +0 -12
  391. package/core/utils/api.d.ts +0 -139
  392. package/core/utils/api.js +0 -391
  393. package/core/utils/url-pattern.js +0 -2
  394. package/decorators.d.ts +0 -3
  395. package/directives.d.ts +0 -40
  396. package/img/concorde-logo.svg +0 -1
  397. package/img/concorde.png +0 -0
  398. package/img/concorde_def.png +0 -0
  399. package/mixins.d.ts +0 -181
  400. package/svg/regular/plane.svg +0 -1
  401. package/svg/solid/plane.svg +0 -1
  402. package/test-utils/TestUtils.d.ts +0 -4
  403. package/test-utils/TestUtils.js +0 -12
  404. package/utils.d.ts +0 -20
  405. /package/{core/components/functional/functional.d.ts → src/core/components/functional/functional.ts} +0 -0
  406. /package/{core → src/core}/components/ui/theme/css/tailwind.css +0 -0
  407. /package/{core → src/core}/components/ui/theme/css/tailwind.d.ts +0 -0
@@ -1,97 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var Loader_1;
8
- import { html, LitElement, css } from "lit";
9
- import { customElement, property } from "lit/decorators.js";
10
- import { inline } from "@supersoniks/concorde/core/components/ui/loader/styles/inline";
11
- import { fixed } from "@supersoniks/concorde/core/components/ui/loader/styles/fixed";
12
- import { Theme } from "@supersoniks/concorde/core/components/ui/theme/theme";
13
- const tagName = "sonic-loader";
14
- let Loader = Loader_1 = class Loader extends LitElement {
15
- constructor() {
16
- super(...arguments);
17
- /**
18
- * Mode d'affichage du loader
19
- * * inline : Loader dans le contenu
20
- * * fixed : Loader global par dessus la page
21
- */
22
- this.mode = "fixed";
23
- this.noDelay = false;
24
- }
25
- static show(conf) {
26
- if (!Loader_1.loader)
27
- Loader_1.loader = document.createElement("sonic-loader");
28
- const loader = Loader_1.loader;
29
- if (!conf)
30
- conf = {};
31
- if (conf.mode)
32
- loader.setAttribute("mode", conf.mode);
33
- if (conf.noDelay)
34
- loader.setAttribute("noDelay", "");
35
- if (!conf.container) {
36
- conf.container = Theme.getPopContainer();
37
- conf.mode = "fixed";
38
- }
39
- conf.container.appendChild(loader);
40
- Loader_1.callCounter++;
41
- }
42
- static hide() {
43
- Loader_1.callCounter--;
44
- if (Loader_1.callCounter > 0)
45
- return;
46
- if (Loader_1.loader)
47
- Loader_1.loader.remove();
48
- }
49
- render() {
50
- return html `<div class="sonic-loader sonic-loader--${this.mode} ${this.noDelay ? "sonic-loader--nodelay" : ""} ">
51
- <div></div>
52
- <div></div>
53
- <div></div>
54
- <div></div>
55
- </div>`;
56
- }
57
- };
58
- Loader.styles = [
59
- inline,
60
- fixed,
61
- css `
62
- :host {
63
- --sc-loader-bg: var(--sc-primary, currentColor);
64
- pointer-events: none;
65
- }
66
-
67
- .sonic-loader {
68
- opacity: 0;
69
- animation: showLoader 0.5s 0.5s forwards;
70
- }
71
- .sonic-loader--inline,
72
- .sonic-loader--nodelay {
73
- animation-delay: 0s;
74
- }
75
-
76
- @keyframes showLoader {
77
- 0% {
78
- opacity: 0;
79
- }
80
-
81
- 100% {
82
- opacity: 1;
83
- }
84
- }
85
- `,
86
- ];
87
- Loader.callCounter = 0;
88
- __decorate([
89
- property({ type: String })
90
- ], Loader.prototype, "mode", void 0);
91
- __decorate([
92
- property({ type: Boolean })
93
- ], Loader.prototype, "noDelay", void 0);
94
- Loader = Loader_1 = __decorate([
95
- customElement(tagName)
96
- ], Loader);
97
- export { Loader };
@@ -1 +0,0 @@
1
- export declare const fixed: import("lit").CSSResult;
@@ -1 +0,0 @@
1
- export declare const inline: import("lit").CSSResult;
@@ -1,5 +0,0 @@
1
- import { Button } from "@supersoniks/concorde/core/components/ui/button/button";
2
- export declare class MenuItem extends Button {
3
- constructor();
4
- connectedCallback(): void;
5
- }
@@ -1,34 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { customElement } from "lit/decorators.js";
8
- import { Button } from "@supersoniks/concorde/core/components/ui/button/button";
9
- const tagName = "sonic-menu-item";
10
- let MenuItem = class MenuItem extends Button {
11
- constructor() {
12
- super();
13
- }
14
- connectedCallback() {
15
- if (!this.hasAttribute("variant")) {
16
- this.variant = "ghost";
17
- }
18
- if (!this.hasAttribute("type")) {
19
- this.type = "primary";
20
- }
21
- if (!this.hasAttribute("shape")) {
22
- this.shape = "block";
23
- }
24
- const isSquareOrCircle = this.shape === "square" || this.shape === "circle";
25
- if (!this.hasAttribute("align") && !isSquareOrCircle) {
26
- this.align = "left";
27
- }
28
- super.connectedCallback();
29
- }
30
- };
31
- MenuItem = __decorate([
32
- customElement(tagName)
33
- ], MenuItem);
34
- export { MenuItem };
@@ -1,41 +0,0 @@
1
- import { LitElement, PropertyValues } from "lit";
2
- import "@supersoniks/concorde/core/components/ui/menu/menu-item";
3
- export declare class MenuItems extends LitElement {
4
- static styles: import("lit").CSSResult[];
5
- /**
6
- * Taille du composant, peut avoir un effet sur ses composants enfants
7
- * tels que les dividers / boutons,... qui n'auraient pas d'attribut size précisés.
8
- */
9
- size: "" | "xs" | "sm" | "lg";
10
- /**
11
- * Direction
12
- */
13
- direction: "row" | "column";
14
- gap: string;
15
- align: "center" | "left" | "right";
16
- /**
17
- * Ombre
18
- */
19
- shadow: "" | "sm" | "md" | "lg" | "xl" | "none" | null;
20
- moreShape: "square" | "circle";
21
- scrollable: boolean;
22
- observer: ResizeObserver | null;
23
- /**
24
- * Propriété min-width du bouton
25
- */
26
- minWidth: string;
27
- menu: HTMLElement;
28
- menuChildren: Array<HTMLElement>;
29
- moreElements: Array<HTMLElement>;
30
- hasMoreElements: boolean;
31
- checkIfMore(): void;
32
- updated(_changedProperties: PropertyValues): void;
33
- mainSlotChange(): void;
34
- connectedCallback(): void;
35
- disconnectedCallback(): void;
36
- updateIsScollable: () => void;
37
- initScrollable(): void;
38
- setScrollShadow(target: HTMLElement, direction: string): void;
39
- setChildrenSize(menuItems: Array<HTMLElement>): void;
40
- render(): import("lit-html").TemplateResult<1>;
41
- }
@@ -1,313 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { html, LitElement, css } from "lit";
8
- import { styleMap } from "lit/directives/style-map.js";
9
- import { customElement, property, queryAssignedElements, state, query } from "lit/decorators.js";
10
- import "@supersoniks/concorde/core/components/ui/menu/menu-item";
11
- const tagName = "sonic-menu";
12
- let MenuItems = class MenuItems extends LitElement {
13
- constructor() {
14
- super(...arguments);
15
- /**
16
- * Taille du composant, peut avoir un effet sur ses composants enfants
17
- * tels que les dividers / boutons,... qui n'auraient pas d'attribut size précisés.
18
- */
19
- this.size = "";
20
- /**
21
- * Direction
22
- */
23
- this.direction = "column";
24
- this.gap = "var(--sc-menu-gap)";
25
- this.align = "left";
26
- /**
27
- * Ombre
28
- */
29
- this.shadow = null;
30
- this.moreShape = "circle";
31
- this.scrollable = false;
32
- this.observer = null;
33
- /**
34
- * Propriété min-width du bouton
35
- */
36
- this.minWidth = "0";
37
- this.hasMoreElements = false;
38
- this.updateIsScollable = () => {
39
- if (this.scrollable) {
40
- this.initScrollable();
41
- this.setScrollShadow(this, this.direction);
42
- }
43
- };
44
- }
45
- checkIfMore() {
46
- this.hasMoreElements = !!this.moreElements?.length;
47
- }
48
- updated(_changedProperties) {
49
- const moreBtn = this.querySelector(".more-btn");
50
- if (this.size && moreBtn) {
51
- moreBtn.setAttribute("size", this.size);
52
- }
53
- const dividers = this.querySelectorAll("sonic-divider");
54
- dividers.forEach((elt) => {
55
- if (!elt.hasAttribute("size")) {
56
- elt.setAttribute("size", "xs");
57
- }
58
- });
59
- super.updated(_changedProperties);
60
- }
61
- mainSlotChange() {
62
- this.setChildrenSize(this.menuChildren);
63
- this.updateIsScollable();
64
- }
65
- connectedCallback() {
66
- this.observer = new ResizeObserver(this.updateIsScollable);
67
- // observe if menu elements are overflowing and initiate scrollable
68
- this.observer.observe(this);
69
- super.connectedCallback();
70
- }
71
- disconnectedCallback() {
72
- this.observer?.disconnect();
73
- super.disconnectedCallback();
74
- }
75
- initScrollable() {
76
- let isDown = false;
77
- let startX;
78
- let scrollLeft;
79
- if (this.scrollable) {
80
- this.addEventListener("mousedown", (e) => {
81
- isDown = true;
82
- this.classList.add("active");
83
- startX = e.pageX - this.offsetLeft;
84
- scrollLeft = this.scrollLeft;
85
- });
86
- this.addEventListener("mouseleave", () => {
87
- isDown = false;
88
- this.classList.remove("active");
89
- });
90
- this.addEventListener("mouseup", () => {
91
- isDown = false;
92
- this.classList.remove("active");
93
- });
94
- this.addEventListener("mousemove", (e) => {
95
- if (!isDown)
96
- return;
97
- e.preventDefault();
98
- const x = e.pageX - this.offsetLeft;
99
- const walk = (x - startX) * 1.5; //scroll-fast
100
- this.scrollLeft = scrollLeft - walk;
101
- this.setScrollShadow(this, this.direction);
102
- });
103
- this.addEventListener("scroll", (e) => {
104
- e.preventDefault();
105
- // const delta = Math.sign(e.deltaY);
106
- // this.scrollLeft += delta * 50;
107
- this.setScrollShadow(this, this.direction);
108
- });
109
- }
110
- }
111
- setScrollShadow(target, direction) {
112
- if (direction == "row") {
113
- if (target.scrollLeft > 0) {
114
- this.classList.add("shadow-left");
115
- }
116
- else {
117
- this.classList.remove("shadow-left");
118
- }
119
- if (target.scrollLeft < target.scrollWidth - target.offsetWidth) {
120
- this.classList.add("shadow-right");
121
- }
122
- else {
123
- this.classList.remove("shadow-right");
124
- }
125
- }
126
- else if (direction == "column") {
127
- if (target.scrollTop > 0) {
128
- this.classList.add("shadow-top");
129
- }
130
- else {
131
- this.classList.remove("shadow-top");
132
- }
133
- if (target.scrollTop < target.scrollHeight - (target.offsetHeight + 1)) {
134
- this.classList.add("shadow-bottom");
135
- }
136
- else {
137
- this.classList.remove("shadow-bottom");
138
- }
139
- }
140
- }
141
- setChildrenSize(menuItems) {
142
- menuItems.forEach((elt) => {
143
- if (this.size) {
144
- elt.setAttribute("size", this.size);
145
- }
146
- if (this.align) {
147
- if (elt.getAttribute("shape") != "square" && elt.getAttribute("shape") != "circle") {
148
- elt.setAttribute("align", this.align);
149
- }
150
- }
151
- if (this.direction == "row") {
152
- if (elt.getAttribute("shape") == "block") {
153
- elt.setAttribute("shape", "default");
154
- }
155
- }
156
- });
157
- }
158
- render() {
159
- const menuStyles = {
160
- minWidth: this.minWidth,
161
- flexDirection: this.direction,
162
- gap: this.gap,
163
- };
164
- const isMenuRow = this.direction == "row";
165
- const popStyles = {
166
- display: "block",
167
- alignSelf: isMenuRow ? "center" : "flex-start",
168
- justifySelf: "center",
169
- flexDirection: this.direction,
170
- };
171
- const popBtnStyles = {
172
- marginLeft: isMenuRow ? "" : ".55em",
173
- };
174
- return html `<menu part="menu" class="shadowable" style=${styleMap(menuStyles)}>
175
- <slot @slotchange=${this.mainSlotChange}></slot>
176
- <sonic-pop style=${styleMap(popStyles)} class=${!this.hasMoreElements ? "hidden" : ""}>
177
- <sonic-menu-item style=${styleMap(popBtnStyles)} class="more-btn" shape=${this.moreShape} align="center">
178
- <sonic-icon size="xl" name=${isMenuRow ? "more-vert" : "more-horiz"}></sonic-icon>
179
- </sonic-menu-item>
180
- <slot name="more" @slotchange=${this.checkIfMore} slot="content"></slot>
181
- </sonic-pop>
182
- </menu>`;
183
- }
184
- };
185
- MenuItems.styles = [
186
- css `
187
- :host {
188
- display: block;
189
- --sc-menu-gap: 0.15rem;
190
- }
191
-
192
- :host > menu {
193
- display: flex;
194
- border-radius: min(calc(var(--sc-btn-rounded) * 2), 0.4em);
195
- margin: 0;
196
- padding: 0.35em;
197
- }
198
-
199
- .hidden {
200
- display: none !important;
201
- }
202
-
203
- /*OMBRE*/
204
- :host([shadow]) .shadowable,
205
- :host([shadow="md"]) .shadowable,
206
- :host([shadow="true"]) .shadowable {
207
- box-shadow: var(--sc-shadow);
208
- }
209
-
210
- :host([shadow="sm"]) .shadowable {
211
- box-shadow: var(--sc-shadow-sm);
212
- }
213
-
214
- :host([shadow="lg"]) .shadowable {
215
- box-shadow: var(--sc-shadow-lg);
216
- }
217
-
218
- :host([shadow="none"]) .shadowable {
219
- box-shadow: none;
220
- }
221
-
222
- /* SCROLLABLE*/
223
- :host([scrollable]) {
224
- scrollbar-width: none;
225
- -ms-overflow-style: none;
226
- }
227
- :host([scrollable]) menu > * {
228
- scroll-snap-align: start;
229
- white-space: nowrap;
230
- }
231
- :host([scrollable][direction="row"]) {
232
- overflow-x: scroll;
233
- scroll-snap-type: x mandatory;
234
- }
235
- :host([scrollable][direction="column"]) {
236
- overflow-y: scroll;
237
- scroll-snap-type: y mandatory;
238
- }
239
- :host([scrollable])::-webkit-scrollbar {
240
- display: none !important;
241
- }
242
- :host([scrollable][direction="row"].shadow-right) {
243
- -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 10%);
244
- mask-image: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 10%);
245
- }
246
- :host([scrollable][direction="row"].shadow-left) {
247
- -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 10%);
248
- mask-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 10%);
249
- }
250
- :host([scrollable][direction="row"].shadow-left.shadow-right) {
251
- -webkit-mask-image: linear-gradient(
252
- to right,
253
- rgba(0, 0, 0, 0) 0%,
254
- rgba(0, 0, 0, 1) 10%,
255
- rgba(0, 0, 0, 1) 90%,
256
- rgba(0, 0, 0, 0) 100%
257
- );
258
- mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
259
- }
260
- :host([scrollable][direction="column"].shadow-top) {
261
- -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 10%);
262
- mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 10%);
263
- }
264
- :host([scrollable][direction="column"].shadow-bottom) {
265
- -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 10%);
266
- mask-image: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 10%);
267
- }
268
- :host([scrollable][direction="column"].shadow-top.shadow-bottom) {
269
- -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
270
- mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
271
- }
272
- `,
273
- ];
274
- __decorate([
275
- property({ type: String, reflect: true })
276
- ], MenuItems.prototype, "size", void 0);
277
- __decorate([
278
- property({ type: String, reflect: true })
279
- ], MenuItems.prototype, "direction", void 0);
280
- __decorate([
281
- property({ type: String })
282
- ], MenuItems.prototype, "gap", void 0);
283
- __decorate([
284
- property({ type: String, reflect: true })
285
- ], MenuItems.prototype, "align", void 0);
286
- __decorate([
287
- property({ type: String, reflect: true })
288
- ], MenuItems.prototype, "shadow", void 0);
289
- __decorate([
290
- property({ type: String })
291
- ], MenuItems.prototype, "moreShape", void 0);
292
- __decorate([
293
- property({ type: Boolean })
294
- ], MenuItems.prototype, "scrollable", void 0);
295
- __decorate([
296
- property({ type: String })
297
- ], MenuItems.prototype, "minWidth", void 0);
298
- __decorate([
299
- query("menu")
300
- ], MenuItems.prototype, "menu", void 0);
301
- __decorate([
302
- queryAssignedElements({ selector: "sonic-menu-item" })
303
- ], MenuItems.prototype, "menuChildren", void 0);
304
- __decorate([
305
- queryAssignedElements({ slot: "more", selector: "*" })
306
- ], MenuItems.prototype, "moreElements", void 0);
307
- __decorate([
308
- state()
309
- ], MenuItems.prototype, "hasMoreElements", void 0);
310
- MenuItems = __decorate([
311
- customElement(tagName)
312
- ], MenuItems);
313
- export { MenuItems };
@@ -1,7 +0,0 @@
1
- import { LitElement } from "lit";
2
- export declare class ModalActions extends LitElement {
3
- static styles: import("lit").CSSResult[];
4
- buttons: Array<HTMLElement>;
5
- firstUpdated(changedProperties: Map<string | number | symbol, unknown>): void;
6
- render(): import("lit-html").TemplateResult<1>;
7
- }
@@ -1,42 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { html, LitElement, css } from "lit";
8
- import { customElement, queryAssignedElements } from "lit/decorators.js";
9
- const tagName = "sonic-modal-actions";
10
- let ModalActions = class ModalActions extends LitElement {
11
- firstUpdated(changedProperties) {
12
- this.buttons?.forEach((btn) => {
13
- btn.addEventListener("click", () => {
14
- if (btn.getAttribute("hideModal") != "false") {
15
- const parentModal = this.closest("sonic-modal");
16
- parentModal?.hide();
17
- }
18
- });
19
- });
20
- super.firstUpdated(changedProperties);
21
- }
22
- render() {
23
- return html `<slot></slot>`;
24
- }
25
- };
26
- ModalActions.styles = [
27
- css `
28
- :host {
29
- display: flex;
30
- gap: 0.5rem;
31
- margin-top: auto;
32
- padding-top: 1.5rem;
33
- }
34
- `,
35
- ];
36
- __decorate([
37
- queryAssignedElements({ selector: "sonic-button" })
38
- ], ModalActions.prototype, "buttons", void 0);
39
- ModalActions = __decorate([
40
- customElement(tagName)
41
- ], ModalActions);
42
- export { ModalActions };
@@ -1,7 +0,0 @@
1
- import { LitElement } from "lit";
2
- export declare class ModalClose extends LitElement {
3
- static styles: import("lit").CSSResult[];
4
- reset?: string;
5
- render(): import("lit-html").TemplateResult<1>;
6
- handleClick(): void;
7
- }
@@ -1,43 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { html, LitElement, css } from "lit";
8
- import { customElement, property } from "lit/decorators.js";
9
- import { ifDefined } from "lit/directives/if-defined.js";
10
- import HTML from "@supersoniks/concorde/core/utils/HTML";
11
- const tagName = "sonic-modal-close";
12
- let ModalClose = class ModalClose extends LitElement {
13
- render() {
14
- return html `<sonic-button reset=${ifDefined(this.reset)} shape="circle" @click=${this.handleClick}
15
- ><sonic-icon name="cancel" size="lg"></sonic-icon
16
- ></sonic-button>`;
17
- }
18
- handleClick() {
19
- const parentModal = HTML.getClosestElement(this, "sonic-modal");
20
- parentModal.hide();
21
- }
22
- };
23
- ModalClose.styles = [
24
- css `
25
- :host {
26
- position: sticky;
27
- display: block;
28
- align-self: flex-end;
29
- height: 0;
30
- top: 0.5rem;
31
- right: 0.5rem;
32
- transform: translate3d(calc(var(--sc-modal-px)), calc(-1 * var(--sc-modal-py)), 0);
33
- z-index: 20;
34
- }
35
- `,
36
- ];
37
- __decorate([
38
- property()
39
- ], ModalClose.prototype, "reset", void 0);
40
- ModalClose = __decorate([
41
- customElement(tagName)
42
- ], ModalClose);
43
- export { ModalClose };
@@ -1,5 +0,0 @@
1
- import { LitElement } from "lit";
2
- export declare class ModalContent extends LitElement {
3
- static styles: import("lit").CSSResult[];
4
- render(): import("lit-html").TemplateResult<1>;
5
- }
@@ -1,26 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { html, LitElement, css } from "lit";
8
- import { customElement } from "lit/decorators.js";
9
- const tagName = "sonic-modal-content";
10
- let ModalContent = class ModalContent extends LitElement {
11
- render() {
12
- return html `<slot></slot>`;
13
- }
14
- };
15
- ModalContent.styles = [
16
- css `
17
- :host {
18
- display: block;
19
- width: 100%;
20
- }
21
- `,
22
- ];
23
- ModalContent = __decorate([
24
- customElement(tagName)
25
- ], ModalContent);
26
- export { ModalContent };
@@ -1,5 +0,0 @@
1
- import { LitElement } from "lit";
2
- export declare class ModalSubTitle extends LitElement {
3
- static styles: import("lit").CSSResult[];
4
- render(): import("lit-html").TemplateResult<1>;
5
- }
@@ -1,30 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { html, LitElement, css } from "lit";
8
- import { customElement } from "lit/decorators.js";
9
- const tagName = "sonic-modal-subtitle";
10
- let ModalSubTitle = class ModalSubTitle extends LitElement {
11
- render() {
12
- return html `<slot></slot>`;
13
- }
14
- };
15
- ModalSubTitle.styles = [
16
- css `
17
- :host {
18
- font-size: 1.1rem;
19
- display: block;
20
- line-height: 1.1rem;
21
- line-height: var(--sc-headings-line-height);
22
- font-family: var(--sc-headings-font-family);
23
- font-weight: var(--sc-headings-font-weight);
24
- }
25
- `,
26
- ];
27
- ModalSubTitle = __decorate([
28
- customElement(tagName)
29
- ], ModalSubTitle);
30
- export { ModalSubTitle };
@@ -1,5 +0,0 @@
1
- import { LitElement } from "lit";
2
- export declare class ModalTitle extends LitElement {
3
- static styles: import("lit").CSSResult[];
4
- render(): import("lit-html").TemplateResult<1>;
5
- }