@supersoniks/concorde 3.2.4 → 3.2.6
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/README.md +163 -0
- package/build-infos.json +1 -1
- package/concorde-core.bundle.js +156 -128
- package/concorde-core.es.js +845 -756
- package/dist/concorde-core.bundle.js +156 -128
- package/dist/concorde-core.es.js +845 -756
- package/docs/assets/index-C0K6xugr.css +1 -0
- package/docs/assets/index-Dgl1lJQo.js +4861 -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 +129 -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 +24 -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 +104 -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 +131 -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 +96 -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 +3917 -0
- package/docs/src/tag-list.json +1 -0
- package/docs/src/tsconfig-model.json +23 -0
- package/docs/src/tsconfig.json +918 -0
- package/docs/svg/regular/plane.svg +1 -0
- package/docs/svg/solid/plane.svg +1 -0
- package/mcp-server/COMPARISON-MCP.md +176 -0
- package/mcp-server/README-MCP-NODEJS.md +284 -0
- package/mcp-server/README-MCP.md +114 -0
- package/mcp-server/README.md +127 -0
- package/mcp-server/TECHNICAL-DOCS.md +269 -0
- package/mcp-server/concorde-mcp-server.js +859 -0
- package/mcp-server/concorde-mcp-server.py +801 -0
- package/mcp-server/cursor-mcp-config-advanced.json +68 -0
- package/mcp-server/cursor-mcp-config-nodejs.json +74 -0
- package/mcp-server/cursor-mcp-config.json +11 -0
- package/mcp-server/install-mcp-nodejs.sh +104 -0
- package/mcp-server/install-mcp.sh +62 -0
- package/mcp-server/package-lock.json +147 -0
- package/mcp-server/package-mcp.json +40 -0
- package/mcp-server/package.json +40 -0
- package/mcp-server/test-mcp.js +107 -0
- package/mcp-server/test-mcp.py +73 -0
- package/package.json +2 -1
- package/php/get-challenge.php +34 -0
- package/php/some-service.php +42 -0
- package/src/core/components/functional/fetch/fetch.md +6 -0
- package/src/core/components/functional/list/list.demo.ts +0 -0
- package/src/core/components/functional/list/list.ts +0 -0
- package/src/core/components/functional/queue/queue.ts +0 -0
- package/src/core/components/ui/captcha/altchaStyles.ts +0 -0
- package/src/core/components/ui/form/checkbox/checkbox.ts +6 -0
- package/src/core/components/ui/form/input/input.ts +0 -0
- package/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +0 -0
- package/src/core/components/ui/form/input-autocomplete/input-autocomplete.ts +0 -0
- package/src/core/components/ui/form/radio/radio.ts +11 -1
- package/src/core/components/ui/form/select/select.ts +0 -0
- package/src/core/components/ui/icon/icon.ts +0 -0
- package/src/core/components/ui/icon/icons.ts +0 -0
- package/src/core/components/ui/modal/modal-close.ts +5 -1
- package/src/core/components/ui/modal/modal.ts +35 -8
- package/src/core/components/ui/pop/pop.ts +0 -0
- package/src/core/components/ui/toast/toast-item.ts +68 -2
- package/src/core/components/ui/toast/toast.md +166 -0
- package/src/core/components/ui/toast/toast.ts +1 -1
- package/src/core/mixins/Fetcher.ts +31 -4
- package/src/core/mixins/FormElement.ts +0 -0
- package/src/core/utils/PublisherProxy.ts +0 -0
- package/src/core/utils/aesCrypto.ts +0 -0
- package/src/docs/navigation/navigation.ts +1 -1
- package/src/docs/search/docs-search.json +135 -0
- package/src/tsconfig.tsbuildinfo +0 -0
- package/test-utils/TestUtils.ts +0 -0
- package/vite.config.mts +0 -0
|
@@ -121,6 +121,24 @@ const Fetcher = <
|
|
|
121
121
|
@property({ type: Number }) refetchEveryMs = 0;
|
|
122
122
|
refetchTimeOutId?: ReturnType<typeof setTimeout>;
|
|
123
123
|
|
|
124
|
+
private isFetching = false;
|
|
125
|
+
private mustRefetch = false;
|
|
126
|
+
handleStartFetching(): "fetching" | "okToFetch" {
|
|
127
|
+
if (this.isFetching) {
|
|
128
|
+
this.mustRefetch = true;
|
|
129
|
+
return "fetching";
|
|
130
|
+
}
|
|
131
|
+
this.isFetching = true;
|
|
132
|
+
return "okToFetch";
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
handleEndFetching() {
|
|
136
|
+
this.isFetching = false;
|
|
137
|
+
if (this.mustRefetch) {
|
|
138
|
+
this.mustRefetch = false;
|
|
139
|
+
this._fetchData();
|
|
140
|
+
}
|
|
141
|
+
}
|
|
124
142
|
/**
|
|
125
143
|
*
|
|
126
144
|
* C'est ici que les données sont chargées via l'utilitaire API
|
|
@@ -156,10 +174,19 @@ const Fetcher = <
|
|
|
156
174
|
});
|
|
157
175
|
}
|
|
158
176
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
177
|
+
const fetchStatus = this.handleStartFetching();
|
|
178
|
+
if (fetchStatus === "fetching") {
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
let data = null;
|
|
182
|
+
try {
|
|
183
|
+
data = await this.api.get<PropsType>(
|
|
184
|
+
this.endPoint || this.dataProvider || "",
|
|
185
|
+
headerData
|
|
186
|
+
);
|
|
187
|
+
} catch (_error) {}
|
|
188
|
+
|
|
189
|
+
this.handleEndFetching();
|
|
163
190
|
|
|
164
191
|
this.fetchedData = data;
|
|
165
192
|
if (this.api.lastResult && !this.api.lastResult.ok) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -127,7 +127,7 @@ export class DocsNavigation extends LitElement {
|
|
|
127
127
|
href: "#core/components/ui/form/textarea/textarea.md/textarea",
|
|
128
128
|
},
|
|
129
129
|
{ label: "Theme", href: "#" },
|
|
130
|
-
{ label: "Toast", href: "#" },
|
|
130
|
+
{ label: "Toast", href: "#core/components/ui/toast/toast.md/toast" },
|
|
131
131
|
{
|
|
132
132
|
label: "Tooltip",
|
|
133
133
|
href: "#core/components/ui/tooltip/tooltip.md/tooltip",
|
|
@@ -2279,6 +2279,141 @@
|
|
|
2279
2279
|
}
|
|
2280
2280
|
}
|
|
2281
2281
|
},
|
|
2282
|
+
{
|
|
2283
|
+
"search": "Toast",
|
|
2284
|
+
"files": {
|
|
2285
|
+
"core/components/ui/toast/toast.md": {
|
|
2286
|
+
"title": "Toast",
|
|
2287
|
+
"hashes": {
|
|
2288
|
+
"toast": {
|
|
2289
|
+
"count": 1,
|
|
2290
|
+
"title": "",
|
|
2291
|
+
"type": "page"
|
|
2292
|
+
}
|
|
2293
|
+
}
|
|
2294
|
+
}
|
|
2295
|
+
}
|
|
2296
|
+
},
|
|
2297
|
+
{
|
|
2298
|
+
"search": "Les statuts disponibles sont : success, error, warning, info ou vide (par défaut).\n",
|
|
2299
|
+
"files": {
|
|
2300
|
+
"core/components/ui/toast/toast.md": {
|
|
2301
|
+
"title": "Toast",
|
|
2302
|
+
"hashes": {
|
|
2303
|
+
"statut": {
|
|
2304
|
+
"count": 1,
|
|
2305
|
+
"title": "Statut",
|
|
2306
|
+
"type": "paragraph"
|
|
2307
|
+
}
|
|
2308
|
+
}
|
|
2309
|
+
}
|
|
2310
|
+
}
|
|
2311
|
+
},
|
|
2312
|
+
{
|
|
2313
|
+
"search": "Le contenu du toast peut contenir du HTML.\n",
|
|
2314
|
+
"files": {
|
|
2315
|
+
"core/components/ui/toast/toast.md": {
|
|
2316
|
+
"title": "Toast",
|
|
2317
|
+
"hashes": {
|
|
2318
|
+
"avec-contenu-html": {
|
|
2319
|
+
"count": 1,
|
|
2320
|
+
"title": "Avec contenu HTML",
|
|
2321
|
+
"type": "paragraph"
|
|
2322
|
+
}
|
|
2323
|
+
}
|
|
2324
|
+
}
|
|
2325
|
+
}
|
|
2326
|
+
},
|
|
2327
|
+
{
|
|
2328
|
+
"search": "Par défaut, les toasts disparaissent automatiquement. Avec preserve: true, le toast reste affiché jusqu'à ce qu'il soit fermé manuellement.\n",
|
|
2329
|
+
"files": {
|
|
2330
|
+
"core/components/ui/toast/toast.md": {
|
|
2331
|
+
"title": "Toast",
|
|
2332
|
+
"hashes": {
|
|
2333
|
+
"persistance": {
|
|
2334
|
+
"count": 1,
|
|
2335
|
+
"title": "Persistance",
|
|
2336
|
+
"type": "paragraph"
|
|
2337
|
+
}
|
|
2338
|
+
}
|
|
2339
|
+
}
|
|
2340
|
+
}
|
|
2341
|
+
},
|
|
2342
|
+
{
|
|
2343
|
+
"search": "Avec dismissForever: true et un id, le toast peut être masqué définitivement. Une fois fermé, il ne réapparaîtra plus même après rechargement de la page.\n",
|
|
2344
|
+
"files": {
|
|
2345
|
+
"core/components/ui/toast/toast.md": {
|
|
2346
|
+
"title": "Toast",
|
|
2347
|
+
"hashes": {
|
|
2348
|
+
"masquer-définitivement": {
|
|
2349
|
+
"count": 1,
|
|
2350
|
+
"title": "Masquer définitivement",
|
|
2351
|
+
"type": "paragraph"
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
}
|
|
2355
|
+
}
|
|
2356
|
+
},
|
|
2357
|
+
{
|
|
2358
|
+
"search": "Avec ghost: true, le toast devient semi-transparent et non-interactif.\n",
|
|
2359
|
+
"files": {
|
|
2360
|
+
"core/components/ui/toast/toast.md": {
|
|
2361
|
+
"title": "Toast",
|
|
2362
|
+
"hashes": {
|
|
2363
|
+
"fantôme": {
|
|
2364
|
+
"count": 1,
|
|
2365
|
+
"title": "Fantôme",
|
|
2366
|
+
"type": "paragraph"
|
|
2367
|
+
}
|
|
2368
|
+
}
|
|
2369
|
+
}
|
|
2370
|
+
}
|
|
2371
|
+
},
|
|
2372
|
+
{
|
|
2373
|
+
"search": "Supprime tous les toasts sauf ceux marqués comme ghost.\n",
|
|
2374
|
+
"files": {
|
|
2375
|
+
"core/components/ui/toast/toast.md": {
|
|
2376
|
+
"title": "Toast",
|
|
2377
|
+
"hashes": {
|
|
2378
|
+
"tout-supprimer": {
|
|
2379
|
+
"count": 1,
|
|
2380
|
+
"title": "Tout supprimer",
|
|
2381
|
+
"type": "paragraph"
|
|
2382
|
+
}
|
|
2383
|
+
}
|
|
2384
|
+
}
|
|
2385
|
+
}
|
|
2386
|
+
},
|
|
2387
|
+
{
|
|
2388
|
+
"search": "Supprime tous les toasts d'un statut spécifique.\n",
|
|
2389
|
+
"files": {
|
|
2390
|
+
"core/components/ui/toast/toast.md": {
|
|
2391
|
+
"title": "Toast",
|
|
2392
|
+
"hashes": {
|
|
2393
|
+
"supprimer-par-statut": {
|
|
2394
|
+
"count": 1,
|
|
2395
|
+
"title": "Supprimer par statut",
|
|
2396
|
+
"type": "paragraph"
|
|
2397
|
+
}
|
|
2398
|
+
}
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2401
|
+
},
|
|
2402
|
+
{
|
|
2403
|
+
"search": "Supprime tous les toasts qui ne sont pas marqués comme preserve.\n",
|
|
2404
|
+
"files": {
|
|
2405
|
+
"core/components/ui/toast/toast.md": {
|
|
2406
|
+
"title": "Toast",
|
|
2407
|
+
"hashes": {
|
|
2408
|
+
"supprimer-les-éléments-temporaires": {
|
|
2409
|
+
"count": 1,
|
|
2410
|
+
"title": "Supprimer les éléments temporaires",
|
|
2411
|
+
"type": "paragraph"
|
|
2412
|
+
}
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
}
|
|
2416
|
+
},
|
|
2282
2417
|
{
|
|
2283
2418
|
"search": "Tooltip",
|
|
2284
2419
|
"files": {
|
package/src/tsconfig.tsbuildinfo
CHANGED
|
File without changes
|
package/test-utils/TestUtils.ts
CHANGED
|
File without changes
|
package/vite.config.mts
CHANGED
|
File without changes
|