@supersoniks/concorde 3.1.83 → 3.1.85

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 (226) hide show
  1. package/build-infos.json +1 -1
  2. package/concorde-core.bundle.js +233 -9
  3. package/concorde-core.es.js +250 -24
  4. package/dist/concorde-core.bundle.js +233 -9
  5. package/dist/concorde-core.es.js +250 -24
  6. package/docs/assets/index-C0K6xugr.css +1 -0
  7. package/docs/assets/index-Dgl1lJQo.js +4861 -0
  8. package/docs/css/docs.css +0 -0
  9. package/docs/fonts/ClashGrotesk-Bold.eot +0 -0
  10. package/docs/fonts/ClashGrotesk-Bold.ttf +0 -0
  11. package/docs/fonts/ClashGrotesk-Bold.woff +0 -0
  12. package/docs/fonts/ClashGrotesk-Bold.woff2 +0 -0
  13. package/docs/fonts/ClashGrotesk-Extralight.eot +0 -0
  14. package/docs/fonts/ClashGrotesk-Extralight.ttf +0 -0
  15. package/docs/fonts/ClashGrotesk-Extralight.woff +0 -0
  16. package/docs/fonts/ClashGrotesk-Extralight.woff2 +0 -0
  17. package/docs/fonts/ClashGrotesk-Light.eot +0 -0
  18. package/docs/fonts/ClashGrotesk-Light.ttf +0 -0
  19. package/docs/fonts/ClashGrotesk-Light.woff +0 -0
  20. package/docs/fonts/ClashGrotesk-Light.woff2 +0 -0
  21. package/docs/fonts/ClashGrotesk-Medium.eot +0 -0
  22. package/docs/fonts/ClashGrotesk-Medium.ttf +0 -0
  23. package/docs/fonts/ClashGrotesk-Medium.woff +0 -0
  24. package/docs/fonts/ClashGrotesk-Medium.woff2 +0 -0
  25. package/docs/fonts/ClashGrotesk-Regular.eot +0 -0
  26. package/docs/fonts/ClashGrotesk-Regular.ttf +0 -0
  27. package/docs/fonts/ClashGrotesk-Regular.woff +0 -0
  28. package/docs/fonts/ClashGrotesk-Regular.woff2 +0 -0
  29. package/docs/fonts/ClashGrotesk-Semibold.eot +0 -0
  30. package/docs/fonts/ClashGrotesk-Semibold.ttf +0 -0
  31. package/docs/fonts/ClashGrotesk-Semibold.woff +0 -0
  32. package/docs/fonts/ClashGrotesk-Semibold.woff2 +0 -0
  33. package/docs/fonts/ClashGrotesk-Variable.eot +0 -0
  34. package/docs/fonts/ClashGrotesk-Variable.ttf +0 -0
  35. package/docs/fonts/ClashGrotesk-Variable.woff +0 -0
  36. package/docs/fonts/ClashGrotesk-Variable.woff2 +0 -0
  37. package/docs/img/concorde-icon.svg +5 -0
  38. package/docs/img/concorde-logo.svg +1 -0
  39. package/docs/img/concorde.png +0 -0
  40. package/docs/img/concorde_def.png +0 -0
  41. package/docs/img/concorde_seuil.png.webp +0 -0
  42. package/docs/img/concorde_seuil_invert.png +0 -0
  43. package/docs/img/paul_metrand.jpg +0 -0
  44. package/docs/img/paul_metrand_xs.jpg +0 -0
  45. package/docs/index.html +93 -0
  46. package/docs/src/core/components/functional/date/date.md +290 -0
  47. package/docs/src/core/components/functional/fetch/fetch.md +117 -0
  48. package/docs/src/core/components/functional/if/if.md +16 -0
  49. package/docs/src/core/components/functional/list/list.md +199 -0
  50. package/docs/src/core/components/functional/mix/mix.md +41 -0
  51. package/docs/src/core/components/functional/queue/queue.md +87 -0
  52. package/docs/src/core/components/functional/router/router.md +129 -0
  53. package/docs/src/core/components/functional/sdui/default-library.json +108 -0
  54. package/docs/src/core/components/functional/sdui/example.json +99 -0
  55. package/docs/src/core/components/functional/sdui/sdui.md +356 -0
  56. package/docs/src/core/components/functional/states/states.md +87 -0
  57. package/docs/src/core/components/functional/submit/submit.md +83 -0
  58. package/docs/src/core/components/functional/subscriber/subscriber.md +91 -0
  59. package/docs/src/core/components/functional/value/value.md +35 -0
  60. package/docs/src/core/components/ui/alert/alert.md +121 -0
  61. package/docs/src/core/components/ui/alert-messages/alert-messages.md +0 -0
  62. package/docs/src/core/components/ui/badge/badge.md +127 -0
  63. package/docs/src/core/components/ui/button/button.md +182 -0
  64. package/docs/src/core/components/ui/captcha/captcha.md +24 -0
  65. package/docs/src/core/components/ui/card/card.md +97 -0
  66. package/docs/src/core/components/ui/divider/divider.md +35 -0
  67. package/docs/src/core/components/ui/form/checkbox/checkbox.md +104 -0
  68. package/docs/src/core/components/ui/form/fieldset/fieldset.md +129 -0
  69. package/docs/src/core/components/ui/form/form-actions/form-actions.md +77 -0
  70. package/docs/src/core/components/ui/form/form-layout/form-layout.md +44 -0
  71. package/docs/src/core/components/ui/form/input/input.md +167 -0
  72. package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +131 -0
  73. package/docs/src/core/components/ui/form/radio/radio.md +84 -0
  74. package/docs/src/core/components/ui/form/select/select.md +97 -0
  75. package/docs/src/core/components/ui/form/switch/switch.md +84 -0
  76. package/docs/src/core/components/ui/form/textarea/textarea.md +65 -0
  77. package/docs/src/core/components/ui/group/group.md +75 -0
  78. package/docs/src/core/components/ui/icon/icon.md +125 -0
  79. package/docs/src/core/components/ui/icon/icons.json +1 -0
  80. package/docs/src/core/components/ui/image/image.md +107 -0
  81. package/docs/src/core/components/ui/link/link.md +43 -0
  82. package/docs/src/core/components/ui/loader/loader.md +67 -0
  83. package/docs/src/core/components/ui/menu/menu.md +288 -0
  84. package/docs/src/core/components/ui/modal/modal.md +123 -0
  85. package/docs/src/core/components/ui/pop/pop.md +96 -0
  86. package/docs/src/core/components/ui/progress/progress.md +63 -0
  87. package/docs/src/core/components/ui/table/table.md +455 -0
  88. package/docs/src/core/components/ui/tooltip/tooltip.md +82 -0
  89. package/docs/src/docs/_core-concept/overview.md +57 -0
  90. package/docs/src/docs/_core-concept/subscriber.md +76 -0
  91. package/docs/src/docs/_getting-started/concorde-outside.md +143 -0
  92. package/docs/src/docs/_getting-started/create-a-component.md +137 -0
  93. package/docs/src/docs/_getting-started/my-first-subscriber.md +174 -0
  94. package/docs/src/docs/_getting-started/pubsub.md +150 -0
  95. package/docs/src/docs/_getting-started/start.md +39 -0
  96. package/docs/src/docs/_getting-started/theming.md +91 -0
  97. package/docs/src/docs/search/docs-search.json +3917 -0
  98. package/docs/src/tag-list.json +1 -0
  99. package/docs/src/tsconfig-model.json +23 -0
  100. package/docs/src/tsconfig.json +918 -0
  101. package/docs/svg/regular/plane.svg +1 -0
  102. package/docs/svg/solid/plane.svg +1 -0
  103. package/index.html +0 -0
  104. package/package.json +4 -1
  105. package/php/get-challenge.php +34 -0
  106. package/php/some-service.php +42 -0
  107. package/scripts/create-search.js +0 -0
  108. package/scripts/generate-routes.js +0 -0
  109. package/src/core/_types/types.ts +0 -0
  110. package/src/core/components/functional/date/date.ts +0 -0
  111. package/src/core/components/functional/functional.ts +0 -0
  112. package/src/core/components/functional/if/if.md +0 -0
  113. package/src/core/components/functional/if/if.test.ts +0 -0
  114. package/src/core/components/functional/list/list.spec.ts +0 -0
  115. package/src/core/components/functional/queue/queue.demo.ts +0 -0
  116. package/src/core/components/functional/router/router.demo.ts +0 -0
  117. package/src/core/components/functional/router/router.md +0 -0
  118. package/src/core/components/functional/router/router.spec.ts +0 -0
  119. package/src/core/components/functional/router/router.ts +0 -0
  120. package/src/core/components/functional/sonic-scope/sonic-scope.ts +0 -0
  121. package/src/core/components/functional/states/states.demo.ts +0 -0
  122. package/src/core/components/functional/states/states.md +0 -0
  123. package/src/core/components/functional/states/states.spec.ts +0 -0
  124. package/src/core/components/functional/states/states.ts +0 -0
  125. package/src/core/components/functional/submit/submit.ts +0 -0
  126. package/src/core/components/functional/translation/translation.ts +0 -0
  127. package/src/core/components/ui/_css/scroll.ts +0 -0
  128. package/src/core/components/ui/_css/shadow.ts +0 -0
  129. package/src/core/components/ui/_css/size.ts +0 -0
  130. package/src/core/components/ui/_css/type.ts +0 -0
  131. package/src/core/components/ui/alert/alert.md +0 -0
  132. package/src/core/components/ui/alert/alert.ts +0 -0
  133. package/src/core/components/ui/alert-messages/alert-messages.md +0 -0
  134. package/src/core/components/ui/badge/badge.md +0 -0
  135. package/src/core/components/ui/badge/badge.ts +0 -0
  136. package/src/core/components/ui/button/button.md +0 -0
  137. package/src/core/components/ui/button/button.ts +0 -0
  138. package/src/core/components/ui/captcha/actchaStyles.ts +226 -0
  139. package/src/core/components/ui/captcha/captcha.md +0 -0
  140. package/src/core/components/ui/captcha/captcha.ts +5 -2
  141. package/src/core/components/ui/card/card-footer.ts +0 -0
  142. package/src/core/components/ui/card/card-header-descripton.ts +0 -0
  143. package/src/core/components/ui/card/card-header.ts +0 -0
  144. package/src/core/components/ui/card/card-main.ts +0 -0
  145. package/src/core/components/ui/card/card.md +0 -0
  146. package/src/core/components/ui/card/card.ts +0 -0
  147. package/src/core/components/ui/divider/divider.ts +0 -0
  148. package/src/core/components/ui/form/checkbox/checkbox.md +0 -0
  149. package/src/core/components/ui/form/checkbox/checkbox.ts +0 -0
  150. package/src/core/components/ui/form/css/form-control.ts +0 -0
  151. package/src/core/components/ui/form/fieldset/fieldset.ts +0 -0
  152. package/src/core/components/ui/form/fieldset/legend-description.ts +0 -0
  153. package/src/core/components/ui/form/fieldset/legend.ts +0 -0
  154. package/src/core/components/ui/form/form-layout/form-layout.md +0 -0
  155. package/src/core/components/ui/form/input/input.md +0 -0
  156. package/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +0 -0
  157. package/src/core/components/ui/form/input-autocomplete/input-autocomplete.ts +1 -1
  158. package/src/core/components/ui/form/radio/radio.md +0 -0
  159. package/src/core/components/ui/form/radio/radio.ts +0 -0
  160. package/src/core/components/ui/form/select/select.md +0 -0
  161. package/src/core/components/ui/form/select/select.ts +1 -1
  162. package/src/core/components/ui/form/switch/switch.md +0 -0
  163. package/src/core/components/ui/form/switch/switch.ts +0 -0
  164. package/src/core/components/ui/form/textarea/textarea.ts +0 -0
  165. package/src/core/components/ui/icon/icon.ts +0 -0
  166. package/src/core/components/ui/icon/icons.ts +0 -0
  167. package/src/core/components/ui/image/image.md +0 -0
  168. package/src/core/components/ui/image/image.ts +0 -0
  169. package/src/core/components/ui/loader/loader.md +0 -0
  170. package/src/core/components/ui/loader/loader.ts +0 -0
  171. package/src/core/components/ui/loader/styles/fixed.ts +0 -0
  172. package/src/core/components/ui/loader/styles/inline.ts +0 -0
  173. package/src/core/components/ui/menu/menu.ts +0 -0
  174. package/src/core/components/ui/modal/modal-actions.ts +0 -0
  175. package/src/core/components/ui/modal/modal-subtitle.ts +0 -0
  176. package/src/core/components/ui/modal/modal-title.ts +0 -0
  177. package/src/core/components/ui/modal/modal.md +0 -0
  178. package/src/core/components/ui/modal/modal.ts +0 -0
  179. package/src/core/components/ui/pop/pop.md +0 -0
  180. package/src/core/components/ui/pop/pop.ts +0 -0
  181. package/src/core/components/ui/progress/progress.ts +0 -0
  182. package/src/core/components/ui/table/table-tbody.ts +0 -0
  183. package/src/core/components/ui/table/table-th.ts +0 -0
  184. package/src/core/components/ui/table/table.ts +0 -0
  185. package/src/core/components/ui/theme/theme-collection/core-variables.ts +0 -0
  186. package/src/core/components/ui/theme/theme-collection/dark.ts +0 -0
  187. package/src/core/components/ui/theme/theme-collection/light.ts +0 -0
  188. package/src/core/components/ui/theme/theme.ts +0 -0
  189. package/src/core/components/ui/toast/toast-item.ts +0 -0
  190. package/src/core/components/ui/toast/toast.ts +0 -0
  191. package/src/core/components/ui/tooltip/tooltip.ts +0 -0
  192. package/src/core/components/ui/ui.ts +0 -0
  193. package/src/core/directives/DataProvider.ts +0 -0
  194. package/src/core/directives/Wording.ts +0 -0
  195. package/src/core/mixins/Fetcher.ts +0 -0
  196. package/src/core/mixins/FormCheckable.ts +0 -0
  197. package/src/core/mixins/TemplatesContainer.ts +0 -0
  198. package/src/core/utils/HTML.ts +0 -0
  199. package/src/core/utils/LocationHandler.ts +0 -0
  200. package/src/core/utils/Objects.ts +0 -0
  201. package/src/core/utils/PublisherProxy.ts +0 -0
  202. package/src/core/utils/Utils.ts +0 -0
  203. package/src/core/utils/aesCrypto.ts +0 -0
  204. package/src/core/utils/api.ts +0 -0
  205. package/src/core/utils/route.spec.ts +0 -0
  206. package/src/core/utils/route.ts +0 -0
  207. package/src/docs/code.ts +0 -0
  208. package/src/docs/docs.ts +0 -0
  209. package/src/docs/header/header.ts +0 -0
  210. package/src/docs/layout.ts +0 -0
  211. package/src/docs/navigation/navigation.ts +0 -0
  212. package/src/docs/search/docs-search.json +0 -0
  213. package/src/docs/search/markdown-renderer.ts +0 -0
  214. package/src/docs/search/page.ts +0 -0
  215. package/src/docs/search/search.ts +0 -0
  216. package/src/docs/tailwind/css/tailwind.css +0 -0
  217. package/src/docs/tailwind/css.d.ts +0 -0
  218. package/src/index.ts +0 -0
  219. package/src/test-utils/TestUtils.ts +0 -0
  220. package/src/tsconfig-model.json +0 -0
  221. package/src/tsconfig.json +9 -0
  222. package/src/tsconfig.tsbuildinfo +1 -1
  223. package/tailwind.config.js +0 -0
  224. package/templates-test.html +0 -0
  225. package/vite/config.js +0 -0
  226. package/vite.config.mts +2 -3
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M576 256C576 305 502.1 336 464.2 336H382.2L282.4 496C276.4 506 266.4 512 254.4 512H189.5C179.5 512 169.5 508 163.5 500C157.6 492 155.6 480.1 158.6 471L201.5 336H152.5L113.6 388C107.6 396 98.61 400 88.62 400H31.7C22.72 400 12.73 396 6.74 388C.7485 380-1.248 370 1.747 360L31.7 256L.7488 152C-1.248 143 .7488 133 6.74 125C12.73 117 22.72 112 31.7 112H88.62C98.61 112 107.6 117 113.6 125L152.5 176H201.5L158.6 41C155.6 32 157.6 21 163.5 13C169.5 5 179.5 0 189.5 0H254.4C265.4 0 277.4 7 281.4 16L381.2 176H463.2C502.1 176 576 208 576 256H576zM527.1 256C525.1 246 489.1 224 463.2 224H355.3L245.4 48H211.5L266.4 224H128.6L80.63 160H53.67L81.63 256L53.67 352H80.63L128.6 288H266.4L211.5 464H245.4L355.3 288H463.2C490.1 288 526.1 267 527.1 256V256z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M482.3 192c34.2 0 93.7 29 93.7 64c0 36-59.5 64-93.7 64l-116.6 0L265.2 495.9c-5.7 10-16.3 16.1-27.8 16.1l-56.2 0c-10.6 0-18.3-10.2-15.4-20.4l49-171.6L112 320 68.8 377.6c-3 4-7.8 6.4-12.8 6.4l-42 0c-7.8 0-14-6.3-14-14c0-1.3 .2-2.6 .5-3.9L32 256 .5 145.9c-.4-1.3-.5-2.6-.5-3.9c0-7.8 6.3-14 14-14l42 0c5 0 9.8 2.4 12.8 6.4L112 192l102.9 0-49-171.6C162.9 10.2 170.6 0 181.2 0l56.2 0c11.5 0 22.1 6.2 27.8 16.1L365.7 192l116.6 0z"/></svg>
package/index.html CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supersoniks/concorde",
3
- "version": "3.1.83",
3
+ "version": "3.1.85",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "",
@@ -106,6 +106,9 @@
106
106
  "./ui/badge": "./src/core/components/ui/badge/badge.ts",
107
107
  "./button": "./src/core/components/ui/button/button.ts",
108
108
  "./ui/button": "./src/core/components/ui/button/button.ts",
109
+ "./actchaStyles": "./src/core/components/ui/captcha/actchaStyles.ts",
110
+ "./ui/actchaStyles": "./src/core/components/ui/captcha/actchaStyles.ts",
111
+ "./ui/captcha/actchaStyles": "./src/core/components/ui/captcha/actchaStyles.ts",
109
112
  "./captcha": "./src/core/components/ui/captcha/captcha.ts",
110
113
  "./ui/captcha": "./src/core/components/ui/captcha/captcha.ts",
111
114
  "./card-footer": "./src/core/components/ui/card/card-footer.ts",
@@ -0,0 +1,34 @@
1
+ <?php
2
+ /* *
3
+ * Call get-challenge on auto-hosted latcha service at https://altcha.supersoniks.org
4
+ * */
5
+
6
+ // Autoriser toutes les origines
7
+ header("Access-Control-Allow-Origin: *");
8
+
9
+ // Autoriser les méthodes HTTP spécifiques
10
+ header("Access-Control-Allow-Methods: GET, POST, OPTIONS");
11
+
12
+ // Autoriser certains en-têtes spécifiques
13
+ header("Access-Control-Allow-Headers: Content-Type, Authorization");
14
+
15
+ // Si la méthode est OPTIONS, terminer la requête ici
16
+ if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') {
17
+ http_response_code(200);
18
+ exit();
19
+ }
20
+
21
+ function getChallenge($key){
22
+ $maxNumber=20000;
23
+ $queryString = $params = [
24
+ 'key' => $key,
25
+ 'maxNumber' => $maxNumber
26
+ ];
27
+ // Générer la chaîne de requête
28
+ $queryString = http_build_query($params);
29
+ $url = "https://altcha.supersoniks.org/get-challenge?key=".$queryString;
30
+ $response = file_get_contents($url);
31
+ return $response;
32
+ }
33
+
34
+ echo getChallenge($_GET['key']);
@@ -0,0 +1,42 @@
1
+ <?php
2
+ /* *
3
+ * Call verify-solution on auto-hosted latcha service at https://altcha.supersoniks.org
4
+ * */
5
+
6
+
7
+ // Autoriser toutes les origines
8
+ header("Access-Control-Allow-Origin: *");
9
+
10
+ // Autoriser les méthodes HTTP spécifiques
11
+ header("Access-Control-Allow-Methods: GET, POST, OPTIONS");
12
+
13
+ // Autoriser certains en-têtes spécifiques
14
+ header("Access-Control-Allow-Headers: Content-Type, Authorization, x-altcha-spam-filter");
15
+
16
+ // Si la méthode est OPTIONS, terminer la requête ici
17
+ if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') {
18
+ http_response_code(200);
19
+ exit();
20
+ }
21
+
22
+ function verifySolution($key, $solution){
23
+ $queryString = $params = [
24
+ 'key' => $key,
25
+ 'altcha' => $solution
26
+ ];
27
+ // Générer la chaîne de requête
28
+ $queryString = http_build_query($params);
29
+ $url = "https://altcha.supersoniks.org/verify-solution?".$queryString;
30
+ $response = file_get_contents($url);
31
+ return $response;
32
+ }
33
+
34
+ /**
35
+ * Get json posted data
36
+ */
37
+
38
+ // Get the posted data
39
+
40
+ $data = json_decode(file_get_contents("php://input"));
41
+
42
+ echo verifySolution($data->captchakey, $data->captchatoken);
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
@@ -0,0 +1,226 @@
1
+ import { css } from "lit";
2
+
3
+ export const altchaStyles = css`
4
+ @keyframes altcha-spinner {
5
+ to {
6
+ transform: rotate(360deg);
7
+ }
8
+ }
9
+ .altcha {
10
+ background: var(--altcha-color-base, transparent);
11
+ display: flex;
12
+ flex-direction: column;
13
+ position: relative;
14
+ }
15
+
16
+ .altcha[data-floating] {
17
+ background: var(--altcha-color-base, white);
18
+ display: none;
19
+ filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.2));
20
+ left: -100%;
21
+ position: fixed;
22
+ top: -100%;
23
+ width: var(--altcha-max-width, 260px);
24
+ z-index: 999999;
25
+ }
26
+ .altcha[data-floating="top"] .altcha-anchor-arrow {
27
+ border-bottom-color: transparent;
28
+ border-top-color: var(--altcha-color-border, #a0a0a0);
29
+ bottom: -12px;
30
+ top: auto;
31
+ }
32
+ .altcha[data-floating="bottom"]:focus-within::after {
33
+ border-bottom-color: var(--altcha-color-border-focus, currentColor);
34
+ }
35
+ .altcha[data-floating="top"]:focus-within::after {
36
+ border-top-color: var(--altcha-color-border-focus, currentColor);
37
+ }
38
+ .altcha[data-floating]:not([data-state="unverified"]) {
39
+ display: block;
40
+ }
41
+ .altcha-anchor-arrow {
42
+ border: 6px solid transparent;
43
+ border-bottom-color: var(--altcha-color-border, #a0a0a0);
44
+ content: "";
45
+ height: 0;
46
+ left: 12px;
47
+ position: absolute;
48
+ top: -12px;
49
+ width: 0;
50
+ }
51
+ .altcha-main {
52
+ align-items: center;
53
+ display: flex;
54
+ gap: 0.4rem;
55
+ padding: 0.7rem;
56
+ position: relative;
57
+ }
58
+ .altcha-code-challenge {
59
+ background: var(--altcha-color-base, white);
60
+ border: 1px solid var(--altcha-color-border-focus, currentColor);
61
+ border-radius: var(--altcha-border-radius, 3px);
62
+ filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.2));
63
+ padding: 0.5rem;
64
+ position: absolute;
65
+ top: 2.5rem;
66
+ z-index: 9999999;
67
+ }
68
+ .altcha-code-challenge > form {
69
+ display: flex;
70
+ flex-direction: column;
71
+ gap: 0.5rem;
72
+ }
73
+ .altcha-code-challenge-input {
74
+ border: 1px solid currentColor;
75
+ border-radius: 3px;
76
+ box-sizing: border-box;
77
+ outline: 0;
78
+ font-size: 16px;
79
+ padding: 0.35rem;
80
+ width: 220px;
81
+ }
82
+ .altcha-code-challenge-input:focus {
83
+ outline: 2px solid
84
+ color-mix(in srgb, var(--altcha-color-active, #1d1dc9) 20%, transparent);
85
+ }
86
+ .altcha-code-challenge-input:disabled {
87
+ opacity: 0.7;
88
+ }
89
+ .altcha-code-challenge-image {
90
+ background-color: #fff;
91
+ border: 1px solid currentColor;
92
+ border-radius: 3px;
93
+ box-sizing: border-box;
94
+ object-fit: contain;
95
+ height: 50px;
96
+ width: 220px;
97
+ }
98
+ .altcha-code-challenge-audio,
99
+ .altcha-code-challenge-reload {
100
+ background: color-mix(
101
+ in srgb,
102
+ var(--altcha-color-text, currentColor) 10%,
103
+ transparent
104
+ );
105
+ border: 0;
106
+ border-radius: 3px;
107
+ color: var(--altcha-color-text, currentColor);
108
+ cursor: pointer;
109
+ display: flex;
110
+ align-items: center;
111
+ justify-content: center;
112
+ padding: 0.35rem;
113
+ }
114
+ .altcha-code-challenge-audio:disabled,
115
+ .altcha-code-challenge-reload:disabled,
116
+ .altcha-code-challenge-verify:disabled {
117
+ opacity: 0.7;
118
+ pointer-events: none;
119
+ }
120
+ .altcha-code-challenge-audio > *,
121
+ .altcha-code-challenge-reload > * {
122
+ height: 20px;
123
+ width: 20px;
124
+ }
125
+ .altcha-code-challenge-buttons {
126
+ display: flex;
127
+ justify-content: space-between;
128
+ }
129
+ .altcha-code-challenge-buttons-left {
130
+ display: flex;
131
+ gap: 0.25rem;
132
+ }
133
+ .altcha-code-challenge-verify {
134
+ align-items: center;
135
+ background: var(--altcha-color-active, #1d1dc9);
136
+ border: 0;
137
+ border-radius: 3px;
138
+ color: #fff;
139
+ cursor: pointer;
140
+ display: flex;
141
+ gap: 0.5rem;
142
+ font-size: 100%;
143
+ padding: 0.35rem 1rem;
144
+ }
145
+ .altcha-code-challenge-arrow {
146
+ border: 6px solid transparent;
147
+ border-bottom-color: var(--altcha-color-border, currentColor);
148
+ content: "";
149
+ height: 0;
150
+ left: 0.15rem;
151
+ position: absolute;
152
+ top: -12px;
153
+ width: 0;
154
+ }
155
+ .altcha[data-floating="top"] .altcha-code-challenge {
156
+ top: -150px;
157
+ }
158
+ .altcha[data-floating="top"] .altcha-code-challenge-arrow {
159
+ border-bottom-color: transparent;
160
+ border-top-color: var(--altcha-color-border, currentColor);
161
+ bottom: -12px;
162
+ top: auto;
163
+ }
164
+ .altcha-label {
165
+ cursor: pointer;
166
+ flex-grow: 1;
167
+ line-height: 1.15;
168
+ }
169
+ .altcha-logo {
170
+ color: currentColor !important;
171
+ opacity: 0.7;
172
+ }
173
+ .altcha-footer:hover,
174
+ .altcha-logo:hover {
175
+ opacity: 1;
176
+ }
177
+ .altcha-error {
178
+ color: var(--altcha-color-error-text, #f23939);
179
+ display: flex;
180
+ font-size: 0.85rem;
181
+ gap: 0.3rem;
182
+ padding: 0 0.7rem 0.7rem;
183
+ }
184
+ .altcha-footer {
185
+ align-items: center;
186
+ background-color: var(--altcha-color-footer-bg, transparent);
187
+ display: flex;
188
+ font-size: 0.75rem;
189
+ opacity: 0.7;
190
+ justify-content: end;
191
+ padding: 0.2rem 0.7rem;
192
+ }
193
+ .altcha-footer a {
194
+ color: currentColor;
195
+ }
196
+ .altcha-checkbox {
197
+ display: flex;
198
+ align-items: center;
199
+ justify-content: center;
200
+ height: 24px;
201
+ position: relative;
202
+ width: 24px;
203
+ margin: 0;
204
+ }
205
+ .altcha-checkbox .altcha-spinner {
206
+ bottom: 0;
207
+ left: 0;
208
+ position: absolute;
209
+ right: 0;
210
+ top: 0;
211
+ }
212
+ .altcha-checkbox input {
213
+ width: 18px;
214
+ height: 18px;
215
+ margin: 0;
216
+ }
217
+ .altcha-checkbox-verifying input {
218
+ appearance: none;
219
+ opacity: 0;
220
+ pointer-events: none;
221
+ }
222
+ .altcha-spinner {
223
+ animation: altcha-spinner 0.75s infinite linear;
224
+ transform-origin: center;
225
+ }
226
+ `;
File without changes
@@ -8,6 +8,7 @@ import {
8
8
  generateKey,
9
9
  encryptToBase64,
10
10
  } from "@supersoniks/concorde/core/utils/aesCrypto";
11
+ import { altchaStyles } from "./actchaStyles";
11
12
 
12
13
  const PASS_PHRASE = "supersoniks_altcha";
13
14
  const IV = "Si2\\]X8M4!n9DCLd";
@@ -25,6 +26,7 @@ const tagName = "sonic-captcha";
25
26
  @customElement(tagName)
26
27
  export class Captcha extends Subscriber(LitElement) {
27
28
  static styles = [
29
+ altchaStyles,
28
30
  css`
29
31
  :host {
30
32
  --altcha-border-width: var(--sc-border-width, 1px);
@@ -34,13 +36,14 @@ export class Captcha extends Subscriber(LitElement) {
34
36
  --sc-input-border-color,
35
37
  var(--sc-base-content, #000)
36
38
  );
37
- --altcha-color-text: currentColor;
39
+ --altcha-color-text: var(--sc-base-content, #000);
40
+ --altcha-color-active: var(--sc-base-content, #000);
38
41
  --altcha-color-border-focus: currentColor;
39
42
  --altcha-color-error-text: var(
40
43
  --sc-danger,
41
44
  var(--sc-base-content, #000)
42
45
  );
43
- --altcha-color-footer-bg: var(--sc-base-100);
46
+ --altcha-color-footer-bg: var(--sc-base-100, #000);
44
47
  --altcha-max-width: 260px;
45
48
  }
46
49
  `,
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
@@ -106,7 +106,7 @@ export class InputAutocomplete extends TemplatesContainer(
106
106
  * @param value
107
107
  */
108
108
  private updateSearchParameter = (value: string) => {
109
- if (value == "") {
109
+ if (value == "" && this.isSearchParameter()) {
110
110
  this.lastValidSearch = "";
111
111
  return;
112
112
  }
File without changes
File without changes
File without changes
@@ -123,7 +123,7 @@ export class Select extends FormElement(Subscriber(LitElement)) {
123
123
  this._options = options;
124
124
  for (const option of options) {
125
125
  if (option.selected) {
126
- this.value = option.value || "";
126
+ this.value = option[this.valueKey] || "";
127
127
  }
128
128
  }
129
129
  const value = this.value || this.getAttribute("value");
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
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