@supersoniks/concorde 3.1.77 → 3.1.79
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.
- package/build-infos.json +1 -1
- package/concorde-core.bundle.js +52 -51
- package/concorde-core.es.js +194 -173
- package/dist/concorde-core.bundle.js +52 -51
- package/dist/concorde-core.es.js +194 -173
- package/docs/assets/index-D9bBwsCn.js +4537 -0
- package/docs/assets/index-DCRPZO3x.css +1 -0
- package/docs/css/docs.css +0 -0
- package/docs/fonts/ClashGrotesk-Bold.eot +0 -0
- package/docs/fonts/ClashGrotesk-Bold.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Bold.woff +0 -0
- package/docs/fonts/ClashGrotesk-Bold.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Extralight.eot +0 -0
- package/docs/fonts/ClashGrotesk-Extralight.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Extralight.woff +0 -0
- package/docs/fonts/ClashGrotesk-Extralight.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Light.eot +0 -0
- package/docs/fonts/ClashGrotesk-Light.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Light.woff +0 -0
- package/docs/fonts/ClashGrotesk-Light.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Medium.eot +0 -0
- package/docs/fonts/ClashGrotesk-Medium.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Medium.woff +0 -0
- package/docs/fonts/ClashGrotesk-Medium.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Regular.eot +0 -0
- package/docs/fonts/ClashGrotesk-Regular.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Regular.woff +0 -0
- package/docs/fonts/ClashGrotesk-Regular.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Semibold.eot +0 -0
- package/docs/fonts/ClashGrotesk-Semibold.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Semibold.woff +0 -0
- package/docs/fonts/ClashGrotesk-Semibold.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Variable.eot +0 -0
- package/docs/fonts/ClashGrotesk-Variable.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Variable.woff +0 -0
- package/docs/fonts/ClashGrotesk-Variable.woff2 +0 -0
- package/docs/img/concorde-icon.svg +5 -0
- package/docs/img/concorde-logo.svg +1 -0
- package/docs/img/concorde.png +0 -0
- package/docs/img/concorde_def.png +0 -0
- package/docs/img/concorde_seuil.png.webp +0 -0
- package/docs/img/concorde_seuil_invert.png +0 -0
- package/docs/img/paul_metrand.jpg +0 -0
- package/docs/img/paul_metrand_xs.jpg +0 -0
- package/docs/index.html +93 -0
- package/docs/src/core/components/functional/date/date.md +290 -0
- package/docs/src/core/components/functional/fetch/fetch.md +117 -0
- package/docs/src/core/components/functional/if/if.md +16 -0
- package/docs/src/core/components/functional/list/list.md +199 -0
- package/docs/src/core/components/functional/mix/mix.md +41 -0
- package/docs/src/core/components/functional/queue/queue.md +87 -0
- package/docs/src/core/components/functional/router/router.md +108 -0
- package/docs/src/core/components/functional/sdui/default-library.json +108 -0
- package/docs/src/core/components/functional/sdui/example.json +99 -0
- package/docs/src/core/components/functional/sdui/sdui.md +356 -0
- package/docs/src/core/components/functional/states/states.md +87 -0
- package/docs/src/core/components/functional/submit/submit.md +83 -0
- package/docs/src/core/components/functional/subscriber/subscriber.md +91 -0
- package/docs/src/core/components/functional/value/value.md +35 -0
- package/docs/src/core/components/ui/alert/alert.md +121 -0
- package/docs/src/core/components/ui/alert-messages/alert-messages.md +0 -0
- package/docs/src/core/components/ui/badge/badge.md +127 -0
- package/docs/src/core/components/ui/button/button.md +182 -0
- package/docs/src/core/components/ui/captcha/captcha.md +12 -0
- package/docs/src/core/components/ui/card/card.md +97 -0
- package/docs/src/core/components/ui/divider/divider.md +35 -0
- package/docs/src/core/components/ui/form/checkbox/checkbox.md +94 -0
- package/docs/src/core/components/ui/form/fieldset/fieldset.md +129 -0
- package/docs/src/core/components/ui/form/form-actions/form-actions.md +77 -0
- package/docs/src/core/components/ui/form/form-layout/form-layout.md +44 -0
- package/docs/src/core/components/ui/form/input/input.md +167 -0
- package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +130 -0
- package/docs/src/core/components/ui/form/radio/radio.md +84 -0
- package/docs/src/core/components/ui/form/select/select.md +97 -0
- package/docs/src/core/components/ui/form/switch/switch.md +84 -0
- package/docs/src/core/components/ui/form/textarea/textarea.md +65 -0
- package/docs/src/core/components/ui/group/group.md +75 -0
- package/docs/src/core/components/ui/icon/icon.md +125 -0
- package/docs/src/core/components/ui/icon/icons.json +1 -0
- package/docs/src/core/components/ui/image/image.md +107 -0
- package/docs/src/core/components/ui/link/link.md +43 -0
- package/docs/src/core/components/ui/loader/loader.md +67 -0
- package/docs/src/core/components/ui/menu/menu.md +288 -0
- package/docs/src/core/components/ui/modal/modal.md +123 -0
- package/docs/src/core/components/ui/pop/pop.md +79 -0
- package/docs/src/core/components/ui/progress/progress.md +63 -0
- package/docs/src/core/components/ui/table/table.md +455 -0
- package/docs/src/core/components/ui/tooltip/tooltip.md +82 -0
- package/docs/src/docs/_core-concept/overview.md +57 -0
- package/docs/src/docs/_core-concept/subscriber.md +76 -0
- package/docs/src/docs/_getting-started/concorde-outside.md +143 -0
- package/docs/src/docs/_getting-started/create-a-component.md +137 -0
- package/docs/src/docs/_getting-started/my-first-subscriber.md +174 -0
- package/docs/src/docs/_getting-started/pubsub.md +150 -0
- package/docs/src/docs/_getting-started/start.md +39 -0
- package/docs/src/docs/_getting-started/theming.md +91 -0
- package/docs/src/docs/search/docs-search.json +3902 -0
- package/docs/src/tag-list.json +1 -0
- package/docs/src/tsconfig-model.json +23 -0
- package/docs/src/tsconfig.json +835 -0
- package/docs/svg/regular/plane.svg +1 -0
- package/docs/svg/solid/plane.svg +1 -0
- package/index.html +0 -0
- package/package.json +1 -1
- package/php/get-challenge.php +34 -0
- package/php/some-service.php +42 -0
- package/scripts/create-search.js +0 -0
- package/scripts/generate-routes.js +0 -0
- package/src/core/_types/types.ts +0 -0
- package/src/core/components/functional/date/date.ts +0 -0
- package/src/core/components/functional/functional.ts +0 -0
- package/src/core/components/functional/if/if.md +0 -0
- package/src/core/components/functional/if/if.test.ts +0 -0
- package/src/core/components/functional/list/list.demo.ts +0 -0
- package/src/core/components/functional/list/list.spec.ts +0 -0
- package/src/core/components/functional/queue/queue.demo.ts +0 -0
- package/src/core/components/functional/queue/queue.ts +1 -1
- package/src/core/components/functional/router/router.demo.ts +0 -0
- package/src/core/components/functional/router/router.md +0 -0
- package/src/core/components/functional/router/router.spec.ts +0 -0
- package/src/core/components/functional/router/router.ts +0 -0
- package/src/core/components/functional/sonic-scope/sonic-scope.ts +0 -0
- package/src/core/components/functional/states/states.demo.ts +0 -0
- package/src/core/components/functional/states/states.md +0 -0
- package/src/core/components/functional/states/states.spec.ts +0 -0
- package/src/core/components/functional/states/states.ts +0 -0
- package/src/core/components/functional/translation/translation.ts +0 -0
- package/src/core/components/ui/_css/scroll.ts +0 -0
- package/src/core/components/ui/_css/shadow.ts +0 -0
- package/src/core/components/ui/_css/size.ts +0 -0
- package/src/core/components/ui/_css/type.ts +0 -0
- package/src/core/components/ui/alert/alert.md +0 -0
- package/src/core/components/ui/alert/alert.ts +0 -0
- package/src/core/components/ui/alert-messages/alert-messages.md +0 -0
- package/src/core/components/ui/badge/badge.md +0 -0
- package/src/core/components/ui/badge/badge.ts +0 -0
- package/src/core/components/ui/button/button.md +0 -0
- package/src/core/components/ui/button/button.ts +0 -0
- package/src/core/components/ui/captcha/captcha.md +0 -0
- package/src/core/components/ui/card/card-footer.ts +0 -0
- package/src/core/components/ui/card/card-header-descripton.ts +0 -0
- package/src/core/components/ui/card/card-header.ts +0 -0
- package/src/core/components/ui/card/card-main.ts +0 -0
- package/src/core/components/ui/card/card.md +0 -0
- package/src/core/components/ui/card/card.ts +0 -0
- package/src/core/components/ui/divider/divider.ts +0 -0
- package/src/core/components/ui/form/css/form-control.ts +0 -0
- package/src/core/components/ui/form/fieldset/fieldset.ts +0 -0
- package/src/core/components/ui/form/fieldset/legend-description.ts +0 -0
- package/src/core/components/ui/form/fieldset/legend.ts +0 -0
- package/src/core/components/ui/form/form-layout/form-layout.md +0 -0
- package/src/core/components/ui/form/input/input.md +0 -0
- package/src/core/components/ui/form/input/input.ts +26 -0
- package/src/core/components/ui/form/input-autocomplete/input-autocomplete.ts +19 -17
- package/src/core/components/ui/form/radio/radio.md +0 -0
- package/src/core/components/ui/form/radio/radio.ts +0 -0
- package/src/core/components/ui/form/select/select.md +0 -0
- package/src/core/components/ui/form/switch/switch.md +0 -0
- package/src/core/components/ui/form/switch/switch.ts +0 -0
- package/src/core/components/ui/icon/icon.ts +0 -0
- package/src/core/components/ui/icon/icons.ts +1 -1
- package/src/core/components/ui/image/image.md +0 -0
- package/src/core/components/ui/image/image.ts +0 -0
- package/src/core/components/ui/loader/loader.md +0 -0
- package/src/core/components/ui/loader/loader.ts +0 -0
- package/src/core/components/ui/loader/styles/fixed.ts +0 -0
- package/src/core/components/ui/loader/styles/inline.ts +0 -0
- package/src/core/components/ui/menu/menu.ts +0 -0
- package/src/core/components/ui/modal/modal-actions.ts +0 -0
- package/src/core/components/ui/modal/modal-subtitle.ts +0 -0
- package/src/core/components/ui/modal/modal-title.ts +0 -0
- package/src/core/components/ui/modal/modal.md +0 -0
- package/src/core/components/ui/modal/modal.ts +0 -0
- package/src/core/components/ui/progress/progress.ts +0 -0
- package/src/core/components/ui/table/table-tbody.ts +0 -0
- package/src/core/components/ui/table/table-th.ts +0 -0
- package/src/core/components/ui/table/table.ts +0 -0
- package/src/core/components/ui/theme/theme-collection/core-variables.ts +0 -0
- package/src/core/components/ui/theme/theme-collection/dark.ts +0 -0
- package/src/core/components/ui/theme/theme-collection/light.ts +0 -0
- package/src/core/components/ui/theme/theme.ts +0 -0
- package/src/core/components/ui/toast/toast-item.ts +0 -0
- package/src/core/components/ui/toast/toast.ts +0 -0
- package/src/core/components/ui/tooltip/tooltip.ts +0 -0
- package/src/core/components/ui/ui.ts +0 -0
- package/src/core/directives/DataProvider.ts +0 -0
- package/src/core/directives/Wording.ts +0 -0
- package/src/core/mixins/Fetcher.ts +0 -0
- package/src/core/mixins/FormElement.ts +3 -1
- package/src/core/mixins/Subscriber.ts +0 -0
- package/src/core/mixins/TemplatesContainer.ts +0 -0
- package/src/core/utils/LocationHandler.ts +0 -0
- package/src/core/utils/Objects.ts +0 -0
- package/src/core/utils/Utils.ts +0 -0
- package/src/core/utils/aesCrypto.ts +0 -0
- package/src/core/utils/api.ts +0 -0
- package/src/core/utils/route.spec.ts +0 -0
- package/src/core/utils/route.ts +0 -0
- package/src/docs/code.ts +0 -0
- package/src/docs/docs.ts +0 -0
- package/src/docs/header/header.ts +0 -0
- package/src/docs/layout.ts +0 -0
- package/src/docs/navigation/navigation.ts +0 -0
- package/src/docs/search/docs-search.json +0 -0
- package/src/docs/search/markdown-renderer.ts +0 -0
- package/src/docs/search/page.ts +0 -0
- package/src/docs/search/search.ts +0 -0
- package/src/docs/tailwind/css/tailwind.css +0 -0
- package/src/docs/tailwind/css.d.ts +0 -0
- package/src/index.ts +0 -0
- package/src/test-utils/TestUtils.ts +0 -0
- package/src/tsconfig-model.json +0 -0
- package/src/tsconfig.json +0 -0
- package/src/tsconfig.tsbuildinfo +1 -1
- package/tailwind.config.js +0 -0
- package/templates-test.html +0 -0
- package/vite/config.js +0 -0
- package/vite.config.mts +0 -0
|
@@ -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
|
@@ -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);
|
package/scripts/create-search.js
CHANGED
|
File without changes
|
|
File without changes
|
package/src/core/_types/types.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
|
|
@@ -370,7 +370,7 @@ export default class Queue extends Subscriber(LitElement, {} as QueueProps) {
|
|
|
370
370
|
idKey=${this.idKey}
|
|
371
371
|
.templates=${templates}
|
|
372
372
|
.items=${this.items}
|
|
373
|
-
.noItems=${this.noItems}
|
|
373
|
+
.noItems=${index == 0 ? this.noItems : undefined}
|
|
374
374
|
.skeleton=${this.skeleton}
|
|
375
375
|
>
|
|
376
376
|
</sonic-list>
|
|
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
|
|
@@ -182,6 +182,32 @@ export class Input extends FormInput(FormElement(Subscriber(LitElement))) {
|
|
|
182
182
|
// this.type = this.isPassword ? "password" : "text";
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
+
/**
|
|
186
|
+
* Code a réfléchir et tester a l'occasion :
|
|
187
|
+
* le changement programmatique de la valeur de l'input ne renvoie pas d'événement change.
|
|
188
|
+
* On pourrait le faire en surchargeant la propriété value de l'input.
|
|
189
|
+
*/
|
|
190
|
+
// protected firstUpdated(_changedProperties: PropertyValues): void {
|
|
191
|
+
// super.firstUpdated(_changedProperties);
|
|
192
|
+
// const descriptor = Object.getOwnPropertyDescriptor(
|
|
193
|
+
// HTMLInputElement.prototype,
|
|
194
|
+
// "value"
|
|
195
|
+
// );
|
|
196
|
+
// const that = this;
|
|
197
|
+
// Object.defineProperty(this.input, "value", {
|
|
198
|
+
// get() {
|
|
199
|
+
// return descriptor?.get?.call(this);
|
|
200
|
+
// },
|
|
201
|
+
// set(val) {
|
|
202
|
+
// const oldValue = this.value;
|
|
203
|
+
// if (val !== oldValue) {
|
|
204
|
+
// descriptor?.set?.call(this, val);
|
|
205
|
+
// that.input.dispatchEvent(new Event("input"));
|
|
206
|
+
// }
|
|
207
|
+
// },
|
|
208
|
+
// });
|
|
209
|
+
// }
|
|
210
|
+
|
|
185
211
|
render() {
|
|
186
212
|
const slotClasses = {
|
|
187
213
|
"has-prefix": this.hasPrefix,
|
|
@@ -23,7 +23,6 @@ import { Input } from "@supersoniks/concorde/core/components/ui/form/input/input
|
|
|
23
23
|
import { customScroll } from "@supersoniks/concorde/core/components/ui/_css/scroll";
|
|
24
24
|
import { ResizeController } from "@lit-labs/observers/resize-controller.js";
|
|
25
25
|
import { traverseDotNotation } from "@supersoniks/concorde/core/utils/Objects";
|
|
26
|
-
import { FormElementValue } from "@supersoniks/concorde/core/mixins/FormElement";
|
|
27
26
|
|
|
28
27
|
type ListItem = Record<string, string>;
|
|
29
28
|
|
|
@@ -87,6 +86,7 @@ export class InputAutocomplete extends TemplatesContainer(
|
|
|
87
86
|
private initSearchDataProvider = "";
|
|
88
87
|
private queueDataProvider = "";
|
|
89
88
|
private initQueueDataProvider = "";
|
|
89
|
+
@state()
|
|
90
90
|
private lastValidSearch: ListItem | string = "";
|
|
91
91
|
private searchPublisher?: PublisherProxy;
|
|
92
92
|
private countPublisher?: PublisherProxy;
|
|
@@ -100,15 +100,6 @@ export class InputAutocomplete extends TemplatesContainer(
|
|
|
100
100
|
this.hasInputPrefix = !!this.slotInputPrefixNodes?.length;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
override get value() {
|
|
104
|
-
return super.value;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
override set value(value: FormElementValue) {
|
|
108
|
-
this.searchPublisher?.set(value);
|
|
109
|
-
super.value = value;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
103
|
/**
|
|
113
104
|
* Run when the formDataProvider's field is updated
|
|
114
105
|
*
|
|
@@ -126,15 +117,16 @@ export class InputAutocomplete extends TemplatesContainer(
|
|
|
126
117
|
);
|
|
127
118
|
// Si la liste de this.queueDataProvider est bien initialisée, mais qu'aucun item ne correspond à la recherche
|
|
128
119
|
// On affiche quand même la valeur dans le champ de recherche, car il provient directement du formDataProvider
|
|
129
|
-
if (
|
|
130
|
-
found === false &&
|
|
131
|
-
(!this.searchParameter || this.searchParameter === this.name)
|
|
132
|
-
) {
|
|
120
|
+
if (found === false && this.isSearchParameter()) {
|
|
133
121
|
this.lastValidSearch = value;
|
|
134
122
|
this.searchPublisher?.set(this.lastValidSearch);
|
|
135
123
|
}
|
|
136
124
|
};
|
|
137
125
|
|
|
126
|
+
private isSearchParameter() {
|
|
127
|
+
return !this.searchParameter || this.searchParameter === this.name;
|
|
128
|
+
}
|
|
129
|
+
|
|
138
130
|
private updatePopContentVisibility = (value: string) => {
|
|
139
131
|
this.isPopVisible = (value?.length || 0) >= this.minSearchLength;
|
|
140
132
|
};
|
|
@@ -176,7 +168,9 @@ export class InputAutocomplete extends TemplatesContainer(
|
|
|
176
168
|
this.propertyName === "_self"
|
|
177
169
|
? listItem
|
|
178
170
|
: listItem[this.searchParameter || this.propertyName || this.name];
|
|
179
|
-
this.
|
|
171
|
+
if (this.isSearchParameter()) {
|
|
172
|
+
this.searchPublisher?.set(this.lastValidSearch);
|
|
173
|
+
}
|
|
180
174
|
};
|
|
181
175
|
private updateActiveSelection = () => {
|
|
182
176
|
this.queryQueueListItem(
|
|
@@ -310,12 +304,19 @@ export class InputAutocomplete extends TemplatesContainer(
|
|
|
310
304
|
if (!this.select) return;
|
|
311
305
|
if (this.searchPublisher?.get() == "") {
|
|
312
306
|
this.lastValidSearch = "";
|
|
313
|
-
this.formValuePublisher?.set("")
|
|
307
|
+
this.formValuePublisher?.set("");Œ
|
|
314
308
|
return;
|
|
315
309
|
}
|
|
316
310
|
this.searchPublisher?.set(this.lastValidSearch);
|
|
317
311
|
}
|
|
318
312
|
|
|
313
|
+
getInputValue() {
|
|
314
|
+
if (!this.isSearchParameter()) {
|
|
315
|
+
return this.lastValidSearch;
|
|
316
|
+
}
|
|
317
|
+
return this.searchPublisher?.get();
|
|
318
|
+
}
|
|
319
|
+
|
|
319
320
|
render() {
|
|
320
321
|
return html`
|
|
321
322
|
<sonic-pop noToggle style="display:block;" @hide=${this.handleHide}>
|
|
@@ -328,13 +329,14 @@ export class InputAutocomplete extends TemplatesContainer(
|
|
|
328
329
|
label="${ifDefined(this.label)}"
|
|
329
330
|
description="${ifDefined(this.description)}"
|
|
330
331
|
name="${ifDefined(this.searchParameter || this.name)}"
|
|
332
|
+
?required=${this.required}
|
|
331
333
|
placeholder="${ifDefined(this.placeholder)}"
|
|
332
334
|
?readonly="${this.readonly}"
|
|
333
335
|
autocomplete="off"
|
|
334
336
|
clearable
|
|
335
337
|
inlineContent
|
|
336
338
|
size=${this.size}
|
|
337
|
-
value
|
|
339
|
+
value=${ifDefined(this.getInputValue())}
|
|
338
340
|
>
|
|
339
341
|
<slot
|
|
340
342
|
name="prefix"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -10,7 +10,7 @@ import { log } from "@supersoniks/concorde/core/utils/api";
|
|
|
10
10
|
const loadingGetPromises: Map<string, Promise<string>> = new Map();
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* Les librairies en ligne.
|
|
13
|
+
* Les librairies en ligne.
|
|
14
14
|
* Pour chaque identifiant de librairie a une template d'url de chargement
|
|
15
15
|
* Les propriétés name et prefix de sonic-icon servent à remplir le template.
|
|
16
16
|
* la propriété library de sonic-icon correspond à une clef de librairies.
|
|
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
|
|
@@ -181,7 +181,9 @@ const Form = <T extends Constructor<SubscriberInterface>>(superClass: T) => {
|
|
|
181
181
|
(value as { _value?: CoreJSType })._value == undefined
|
|
182
182
|
)
|
|
183
183
|
value = "";
|
|
184
|
-
if (this._value == value)
|
|
184
|
+
if (this._value == value) {
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
185
187
|
this._value = value;
|
|
186
188
|
this.updateDataValue();
|
|
187
189
|
this.requestUpdate();
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/core/utils/Utils.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/src/core/utils/api.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/src/core/utils/route.ts
CHANGED
|
File without changes
|
package/src/docs/code.ts
CHANGED
|
File without changes
|
package/src/docs/docs.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/src/docs/layout.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/docs/search/page.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/index.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/src/tsconfig-model.json
CHANGED
|
File without changes
|
package/src/tsconfig.json
CHANGED
|
File without changes
|
package/src/tsconfig.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["./components.ts","./concorde-loaded.ts","./decorators.ts","./directives.ts","./index.ts","./mixins.ts","./utils.ts","./core/core.ts","./core/_types/types.ts","./core/components/functional/functional.ts","./core/components/functional/date/date.ts","./core/components/functional/example/example.ts","./core/components/functional/fetch/fetch.ts","./core/components/functional/if/if.test.ts","./core/components/functional/if/if.ts","./core/components/functional/list/list.demo.ts","./core/components/functional/list/list.spec.ts","./core/components/functional/list/list.ts","./core/components/functional/mix/mix.ts","./core/components/functional/queue/queue.demo.ts","./core/components/functional/queue/queue.ts","./core/components/functional/router/redirect.ts","./core/components/functional/router/router.demo.ts","./core/components/functional/router/router.spec.ts","./core/components/functional/router/router.ts","./core/components/functional/sdui/SDUIDescriptorTransformer.ts","./core/components/functional/sdui/sdui-utils.ts","./core/components/functional/sdui/sdui.ts","./core/components/functional/sdui/types.ts","./core/components/functional/sonic-scope/sonic-scope.ts","./core/components/functional/states/states.demo.ts","./core/components/functional/states/states.spec.ts","./core/components/functional/states/states.ts","./core/components/functional/submit/submit.ts","./core/components/functional/subscriber/subscriber.ts","./core/components/functional/translation/translation.ts","./core/components/functional/value/value.ts","./core/components/ui/ui.ts","./core/components/ui/_css/scroll.ts","./core/components/ui/_css/shadow.ts","./core/components/ui/_css/size.ts","./core/components/ui/_css/type.ts","./core/components/ui/alert/alert.ts","./core/components/ui/alert-messages/alert-messages.ts","./core/components/ui/badge/badge.ts","./core/components/ui/button/button.ts","./core/components/ui/captcha/captcha.ts","./core/components/ui/card/card-footer.ts","./core/components/ui/card/card-header-descripton.ts","./core/components/ui/card/card-header.ts","./core/components/ui/card/card-main.ts","./core/components/ui/card/card.ts","./core/components/ui/divider/divider.ts","./core/components/ui/form/checkbox/checkbox.ts","./core/components/ui/form/css/form-control.ts","./core/components/ui/form/fieldset/fieldset.ts","./core/components/ui/form/fieldset/legend-description.ts","./core/components/ui/form/fieldset/legend.ts","./core/components/ui/form/form-actions/form-actions.ts","./core/components/ui/form/form-layout/form-layout.ts","./core/components/ui/form/input/input.ts","./core/components/ui/form/input/password-helper.ts","./core/components/ui/form/input/same-value-helper.ts","./core/components/ui/form/input-autocomplete/input-autocomplete.ts","./core/components/ui/form/radio/radio.ts","./core/components/ui/form/select/select.ts","./core/components/ui/form/switch/switch.ts","./core/components/ui/form/textarea/textarea.ts","./core/components/ui/group/group.ts","./core/components/ui/icon/icon.stories.ts","./core/components/ui/icon/icon.ts","./core/components/ui/icon/icons.ts","./core/components/ui/image/image.ts","./core/components/ui/link/link.ts","./core/components/ui/loader/loader.stories.ts","./core/components/ui/loader/loader.ts","./core/components/ui/loader/styles/fixed.ts","./core/components/ui/loader/styles/inline.ts","./core/components/ui/menu/menu-item.ts","./core/components/ui/menu/menu.ts","./core/components/ui/modal/modal-actions.ts","./core/components/ui/modal/modal-close.ts","./core/components/ui/modal/modal-content.ts","./core/components/ui/modal/modal-subtitle.ts","./core/components/ui/modal/modal-title.ts","./core/components/ui/modal/modal.stories.ts","./core/components/ui/modal/modal.ts","./core/components/ui/pop/pop.ts","./core/components/ui/progress/progress.ts","./core/components/ui/table/table-caption.ts","./core/components/ui/table/table-tbody.ts","./core/components/ui/table/table-td.ts","./core/components/ui/table/table-tfoot.ts","./core/components/ui/table/table-th.ts","./core/components/ui/table/table-thead.ts","./core/components/ui/table/table-tr.ts","./core/components/ui/table/table.ts","./core/components/ui/theme/theme.ts","./core/components/ui/theme/theme-collection/core-variables.ts","./core/components/ui/theme/theme-collection/dark.ts","./core/components/ui/theme/theme-collection/light.ts","./core/components/ui/toast/message-subscriber.stories.ts","./core/components/ui/toast/message-subscriber.ts","./core/components/ui/toast/toast-item.ts","./core/components/ui/toast/toast.ts","./core/components/ui/toast/types.ts","./core/components/ui/tooltip/tooltip.ts","./core/decorators/Subscriber.ts","./core/directives/DataProvider.ts","./core/directives/Wording.ts","./core/mixins/Fetcher.ts","./core/mixins/FormCheckable.ts","./core/mixins/FormElement.ts","./core/mixins/FormInput.ts","./core/mixins/Subscriber.ts","./core/mixins/TemplatesContainer.ts","./core/mixins/mixins.ts","./core/utils/Arrays.ts","./core/utils/DataBindObserver.ts","./core/utils/Electron.ts","./core/utils/Format.ts","./core/utils/HTML.ts","./core/utils/LocationHandler.ts","./core/utils/Objects.ts","./core/utils/PublisherProxy.ts","./core/utils/Utils.ts","./core/utils/aesCrypto.ts","./core/utils/api.ts","./core/utils/route.spec.ts","./core/utils/route.ts","./core/utils/url-pattern.ts","./test-utils/TestUtils.ts"],"version":"5.6.3"}
|
|
1
|
+
{"root":["./components.ts","./concorde-loaded.ts","./decorators.ts","./directives.ts","./index.ts","./mixins.ts","./utils.ts","./core/core.ts","./core/_types/types.ts","./core/components/functional/functional.ts","./core/components/functional/date/date.ts","./core/components/functional/example/example.ts","./core/components/functional/fetch/fetch.ts","./core/components/functional/if/if.test.ts","./core/components/functional/if/if.ts","./core/components/functional/list/list.demo.ts","./core/components/functional/list/list.spec.ts","./core/components/functional/list/list.ts","./core/components/functional/mix/mix.ts","./core/components/functional/queue/queue.demo.ts","./core/components/functional/queue/queue.ts","./core/components/functional/router/redirect.ts","./core/components/functional/router/router.demo.ts","./core/components/functional/router/router.spec.ts","./core/components/functional/router/router.ts","./core/components/functional/sdui/SDUIDescriptorTransformer.ts","./core/components/functional/sdui/sdui-utils.ts","./core/components/functional/sdui/sdui.ts","./core/components/functional/sdui/types.ts","./core/components/functional/sonic-scope/sonic-scope.ts","./core/components/functional/states/states.demo.ts","./core/components/functional/states/states.spec.ts","./core/components/functional/states/states.ts","./core/components/functional/submit/submit.ts","./core/components/functional/subscriber/subscriber.ts","./core/components/functional/translation/translation.ts","./core/components/functional/value/value.ts","./core/components/ui/ui.ts","./core/components/ui/_css/scroll.ts","./core/components/ui/_css/shadow.ts","./core/components/ui/_css/size.ts","./core/components/ui/_css/type.ts","./core/components/ui/alert/alert.ts","./core/components/ui/alert-messages/alert-messages.ts","./core/components/ui/badge/badge.ts","./core/components/ui/button/button.ts","./core/components/ui/captcha/captcha.ts","./core/components/ui/card/card-footer.ts","./core/components/ui/card/card-header-descripton.ts","./core/components/ui/card/card-header.ts","./core/components/ui/card/card-main.ts","./core/components/ui/card/card.ts","./core/components/ui/divider/divider.ts","./core/components/ui/form/checkbox/checkbox.ts","./core/components/ui/form/css/form-control.ts","./core/components/ui/form/fieldset/fieldset.ts","./core/components/ui/form/fieldset/legend-description.ts","./core/components/ui/form/fieldset/legend.ts","./core/components/ui/form/form-actions/form-actions.ts","./core/components/ui/form/form-layout/form-layout.ts","./core/components/ui/form/input/input.ts","./core/components/ui/form/input/password-helper.ts","./core/components/ui/form/input/same-value-helper.ts","./core/components/ui/form/input-autocomplete/input-autocomplete.ts","./core/components/ui/form/radio/radio.ts","./core/components/ui/form/select/select.ts","./core/components/ui/form/switch/switch.ts","./core/components/ui/form/textarea/textarea.ts","./core/components/ui/group/group.ts","./core/components/ui/icon/icon.stories.ts","./core/components/ui/icon/icon.ts","./core/components/ui/icon/icons.ts","./core/components/ui/image/image.ts","./core/components/ui/link/link.ts","./core/components/ui/loader/loader.stories.ts","./core/components/ui/loader/loader.ts","./core/components/ui/loader/styles/fixed.ts","./core/components/ui/loader/styles/inline.ts","./core/components/ui/menu/menu-item.ts","./core/components/ui/menu/menu.ts","./core/components/ui/modal/modal-actions.ts","./core/components/ui/modal/modal-close.ts","./core/components/ui/modal/modal-content.ts","./core/components/ui/modal/modal-subtitle.ts","./core/components/ui/modal/modal-title.ts","./core/components/ui/modal/modal.stories.ts","./core/components/ui/modal/modal.ts","./core/components/ui/pop/pop.ts","./core/components/ui/progress/progress.ts","./core/components/ui/table/table-caption.ts","./core/components/ui/table/table-tbody.ts","./core/components/ui/table/table-td.ts","./core/components/ui/table/table-tfoot.ts","./core/components/ui/table/table-th.ts","./core/components/ui/table/table-thead.ts","./core/components/ui/table/table-tr.ts","./core/components/ui/table/table.ts","./core/components/ui/theme/theme.ts","./core/components/ui/theme/theme-collection/core-variables.ts","./core/components/ui/theme/theme-collection/dark.ts","./core/components/ui/theme/theme-collection/light.ts","./core/components/ui/toast/message-subscriber.stories.ts","./core/components/ui/toast/message-subscriber.ts","./core/components/ui/toast/toast-item.ts","./core/components/ui/toast/toast.ts","./core/components/ui/toast/types.ts","./core/components/ui/tooltip/tooltip.ts","./core/decorators/Subscriber.ts","./core/directives/DataProvider.ts","./core/directives/Wording.ts","./core/mixins/Fetcher.ts","./core/mixins/FormCheckable.ts","./core/mixins/FormElement.ts","./core/mixins/FormInput.ts","./core/mixins/Subscriber.ts","./core/mixins/TemplatesContainer.ts","./core/mixins/mixins.ts","./core/utils/Arrays.ts","./core/utils/DataBindObserver.ts","./core/utils/Electron.ts","./core/utils/Format.ts","./core/utils/HTML.ts","./core/utils/LocationHandler.ts","./core/utils/Objects.ts","./core/utils/PublisherProxy.ts","./core/utils/Utils.ts","./core/utils/aesCrypto.ts","./core/utils/api.ts","./core/utils/route.spec.ts","./core/utils/route.ts","./core/utils/url-pattern.ts","./test-utils/TestUtils.ts"],"errors":true,"version":"5.6.3"}
|
package/tailwind.config.js
CHANGED
|
File without changes
|
package/templates-test.html
CHANGED
|
File without changes
|
package/vite/config.js
CHANGED
|
File without changes
|
package/vite.config.mts
CHANGED
|
File without changes
|