qc-trousse-sdg 1.4.4 → 1.4.5
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 +75 -53
- package/dist/css/qc-sdg-design-tokens.min.css +1 -1
- package/dist/css/qc-sdg-no-grid.min.css +1 -1
- package/dist/css/qc-sdg.min.css +1 -1
- package/dist/img/QUEBEC_blanc.svg +3 -12
- package/dist/img/QUEBEC_couleur.svg +3 -23
- package/dist/js/qc-sdg.min.js +1 -1
- package/index.html +1 -1
- package/package.json +1 -1
- package/public/css/qc-sdg-design-tokens.css +0 -2
- package/public/css/qc-sdg-no-grid.css +119 -87
- package/public/css/qc-sdg.css +119 -87
- package/public/img/QUEBEC_blanc.svg +3 -12
- package/public/img/QUEBEC_couleur.svg +3 -23
- package/public/img/favicon.ico +0 -0
- package/public/index.html +13 -0
- package/public/js/qc-doc-sdg.js +443 -1380
- package/public/js/qc-sdg.js +320 -577
- package/src/doc/_index.html +3 -0
- package/src/sdg/_components.js +0 -1
- package/src/sdg/bases/form/_form.scss +0 -4
- package/src/sdg/components/Alert/Alert.svelte +1 -1
- package/src/sdg/components/Checkbox/Checkbox.svelte +3 -3
- package/src/sdg/components/Checkbox/CheckboxWC.svelte +3 -3
- package/src/sdg/components/Checkbox/{updateInput.svelte.js → updateChoiceInput.svelte.js} +6 -1
- package/src/sdg/components/ChoiceGroup/ChoiceGroup.svelte +2 -2
- package/src/sdg/components/ChoiceGroup/Test/ChoiceGroupeEmbededTest.svelte +3 -0
- package/src/sdg/components/ChoiceGroup/Test/checkboxBaselineTest.html +3 -0
- package/src/sdg/components/DropdownList/DropdownList.svelte +4 -7
- package/src/sdg/components/DropdownList/DropdownListItems/DropdownListItems.svelte +1 -6
- package/src/sdg/components/DropdownList/DropdownListItems/DropdownListItemsMultiple/_dropdownListItemsMultiple.scss +3 -8
- package/src/sdg/components/DropdownList/DropdownListItems/DropdownListItemsSingle/_dropdownListItemsSingle.scss +1 -2
- package/src/sdg/components/DropdownList/DropdownListItems/_dropdownListItems.scss +2 -4
- package/src/sdg/components/DropdownList/SelectWC.svelte +31 -50
- package/src/sdg/components/DropdownList/Test/DropdownListSvelteTest.svelte +37 -2
- package/src/sdg/components/DropdownList/Test/{dropdownListTest.html → dropdownListBaselineTest.html} +19 -1
- package/src/sdg/components/DropdownList/Test/dropdownListTestUtils.js +14 -0
- package/src/sdg/components/DropdownList/_dropdownList.scss +11 -16
- package/src/sdg/components/DropdownList/_select.html +9 -0
- package/src/sdg/components/Fieldset/_fieldset.scss +17 -4
- package/src/sdg/components/Label/_label.scss +1 -0
- package/src/sdg/components/PivFooter/PivFooter.svelte +2 -2
- package/src/sdg/components/PivHeader/PivHeader.svelte +79 -74
- package/src/sdg/components/PivHeader/Test/pivHeaderBaselineTest.html +12 -1
- package/src/sdg/components/PivHeader/Test/pivHeaderTest.js +9 -0
- package/src/sdg/components/PivHeader/_pivHeader.html +1 -0
- package/src/sdg/components/PivHeader/_pivHeader.scss +46 -19
- package/src/sdg/components/TextField/Test/textFieldBaselineTest.html +24 -5
- package/src/sdg/components/TextField/TextField.svelte +29 -25
- package/src/sdg/components/TextField/TextFieldWC.svelte +8 -0
- package/src/sdg/components/TextField/_textField.scss +6 -13
- package/src/sdg/qc-sdg-test.js +4 -0
- package/src/sdg/scss/settings/_tokens.scss +0 -4
- package/tests/buildSvelteTestsIgnore.json +2 -1
- package/tests/dropdown-list-baseline.spec.ts +51 -4
- package/tests/piv-header-baseline.spec.ts +3 -0
- package/src/sdg/components/Button/Button.svelte +0 -50
- package/src/sdg/components/Button/ButtonWC.svelte +0 -36
- package/tests/piv-header-svelte.spec.ts +0 -11
package/public/js/qc-doc-sdg.js
CHANGED
|
@@ -33,9 +33,6 @@
|
|
|
33
33
|
|
|
34
34
|
const UNINITIALIZED = Symbol();
|
|
35
35
|
|
|
36
|
-
// Dev-time component properties
|
|
37
|
-
const FILENAME = Symbol('filename');
|
|
38
|
-
|
|
39
36
|
const NAMESPACE_HTML = 'http://www.w3.org/1999/xhtml';
|
|
40
37
|
const NAMESPACE_SVG = 'http://www.w3.org/2000/svg';
|
|
41
38
|
|
|
@@ -44,16 +41,6 @@
|
|
|
44
41
|
/* This file is generated by scripts/process-messages/index.js. Do not edit! */
|
|
45
42
|
|
|
46
43
|
|
|
47
|
-
/**
|
|
48
|
-
* A snippet function was passed invalid arguments. Snippets should only be instantiated via `{@render ...}`
|
|
49
|
-
* @returns {never}
|
|
50
|
-
*/
|
|
51
|
-
function invalid_snippet_arguments() {
|
|
52
|
-
{
|
|
53
|
-
throw new Error(`https://svelte.dev/e/invalid_snippet_arguments`);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
44
|
/**
|
|
58
45
|
* `%name%(...)` can only be used during component initialisation
|
|
59
46
|
* @param {string} name
|
|
@@ -65,26 +52,6 @@
|
|
|
65
52
|
}
|
|
66
53
|
}
|
|
67
54
|
|
|
68
|
-
/**
|
|
69
|
-
* Attempted to render a snippet without a `{@render}` block. This would cause the snippet code to be stringified instead of its content being rendered to the DOM. To fix this, change `{snippet}` to `{@render snippet()}`.
|
|
70
|
-
* @returns {never}
|
|
71
|
-
*/
|
|
72
|
-
function snippet_without_render_tag() {
|
|
73
|
-
{
|
|
74
|
-
throw new Error(`https://svelte.dev/e/snippet_without_render_tag`);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* The `this` prop on `<svelte:element>` must be a string, if defined
|
|
80
|
-
* @returns {never}
|
|
81
|
-
*/
|
|
82
|
-
function svelte_element_invalid_this_value() {
|
|
83
|
-
{
|
|
84
|
-
throw new Error(`https://svelte.dev/e/svelte_element_invalid_this_value`);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
55
|
// Store the references to globals in case someone tries to monkey patch these, causing the below
|
|
89
56
|
// to de-opt (this occurs often when using popular extensions).
|
|
90
57
|
var is_array = Array.isArray;
|
|
@@ -145,7 +112,6 @@
|
|
|
145
112
|
const EFFECT_RAN = 1 << 15;
|
|
146
113
|
/** 'Transparent' effects do not create a transition boundary */
|
|
147
114
|
const EFFECT_TRANSPARENT = 1 << 16;
|
|
148
|
-
const INSPECT_EFFECT = 1 << 18;
|
|
149
115
|
const HEAD_EFFECT = 1 << 19;
|
|
150
116
|
const EFFECT_HAS_DERIVED = 1 << 20;
|
|
151
117
|
const EFFECT_IS_UPDATING = 1 << 21;
|
|
@@ -157,43 +123,6 @@
|
|
|
157
123
|
/* This file is generated by scripts/process-messages/index.js. Do not edit! */
|
|
158
124
|
|
|
159
125
|
|
|
160
|
-
/**
|
|
161
|
-
* Calling `%method%` on a component instance (of %component%) is no longer valid in Svelte 5
|
|
162
|
-
* @param {string} method
|
|
163
|
-
* @param {string} component
|
|
164
|
-
* @returns {never}
|
|
165
|
-
*/
|
|
166
|
-
function component_api_changed(method, component) {
|
|
167
|
-
{
|
|
168
|
-
throw new Error(`https://svelte.dev/e/component_api_changed`);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Attempted to instantiate %component% with `new %name%`, which is no longer valid in Svelte 5. If this component is not under your control, set the `compatibility.componentApi` compiler option to `4` to keep it working.
|
|
174
|
-
* @param {string} component
|
|
175
|
-
* @param {string} name
|
|
176
|
-
* @returns {never}
|
|
177
|
-
*/
|
|
178
|
-
function component_api_invalid_new(component, name) {
|
|
179
|
-
{
|
|
180
|
-
throw new Error(`https://svelte.dev/e/component_api_invalid_new`);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Keyed each block has duplicate key `%value%` at indexes %a% and %b%
|
|
186
|
-
* @param {string} a
|
|
187
|
-
* @param {string} b
|
|
188
|
-
* @param {string | undefined | null} [value]
|
|
189
|
-
* @returns {never}
|
|
190
|
-
*/
|
|
191
|
-
function each_key_duplicate(a, b, value) {
|
|
192
|
-
{
|
|
193
|
-
throw new Error(`https://svelte.dev/e/each_key_duplicate`);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
126
|
/**
|
|
198
127
|
* `%rune%` cannot be used inside an effect cleanup function
|
|
199
128
|
* @param {string} rune
|
|
@@ -290,49 +219,6 @@
|
|
|
290
219
|
/* This file is generated by scripts/process-messages/index.js. Do not edit! */
|
|
291
220
|
|
|
292
221
|
|
|
293
|
-
/**
|
|
294
|
-
* Assignment to `%property%` property (%location%) will evaluate to the right-hand side, not the value of `%property%` following the assignment. This may result in unexpected behaviour.
|
|
295
|
-
* @param {string} property
|
|
296
|
-
* @param {string} location
|
|
297
|
-
*/
|
|
298
|
-
function assignment_value_stale(property, location) {
|
|
299
|
-
{
|
|
300
|
-
console.warn(`https://svelte.dev/e/assignment_value_stale`);
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* `%binding%` (%location%) is binding to a non-reactive property
|
|
306
|
-
* @param {string} binding
|
|
307
|
-
* @param {string | undefined | null} [location]
|
|
308
|
-
*/
|
|
309
|
-
function binding_property_non_reactive(binding, location) {
|
|
310
|
-
{
|
|
311
|
-
console.warn(`https://svelte.dev/e/binding_property_non_reactive`);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
/**
|
|
316
|
-
* Your `console.%method%` contained `$state` proxies. Consider using `$inspect(...)` or `$state.snapshot(...)` instead
|
|
317
|
-
* @param {string} method
|
|
318
|
-
*/
|
|
319
|
-
function console_log_state(method) {
|
|
320
|
-
{
|
|
321
|
-
console.warn(`https://svelte.dev/e/console_log_state`);
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* %handler% should be a function. Did you mean to %suggestion%?
|
|
327
|
-
* @param {string} handler
|
|
328
|
-
* @param {string} suggestion
|
|
329
|
-
*/
|
|
330
|
-
function event_handler_invalid(handler, suggestion) {
|
|
331
|
-
{
|
|
332
|
-
console.warn(`https://svelte.dev/e/event_handler_invalid`);
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
|
|
336
222
|
/**
|
|
337
223
|
* Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near %location%
|
|
338
224
|
* @param {string | undefined | null} [location]
|
|
@@ -343,42 +229,6 @@
|
|
|
343
229
|
}
|
|
344
230
|
}
|
|
345
231
|
|
|
346
|
-
/**
|
|
347
|
-
* %parent% passed property `%prop%` to %child% with `bind:`, but its parent component %owner% did not declare `%prop%` as a binding. Consider creating a binding between %owner% and %parent% (e.g. `bind:%prop%={...}` instead of `%prop%={...}`)
|
|
348
|
-
* @param {string} parent
|
|
349
|
-
* @param {string} prop
|
|
350
|
-
* @param {string} child
|
|
351
|
-
* @param {string} owner
|
|
352
|
-
*/
|
|
353
|
-
function ownership_invalid_binding(parent, prop, child, owner) {
|
|
354
|
-
{
|
|
355
|
-
console.warn(`https://svelte.dev/e/ownership_invalid_binding`);
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
* Mutating unbound props (`%name%`, at %location%) is strongly discouraged. Consider using `bind:%prop%={...}` in %parent% (or using a callback) instead
|
|
361
|
-
* @param {string} name
|
|
362
|
-
* @param {string} location
|
|
363
|
-
* @param {string} prop
|
|
364
|
-
* @param {string} parent
|
|
365
|
-
*/
|
|
366
|
-
function ownership_invalid_mutation(name, location, prop, parent) {
|
|
367
|
-
{
|
|
368
|
-
console.warn(`https://svelte.dev/e/ownership_invalid_mutation`);
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* Reactive `$state(...)` proxies and the values they proxy have different identities. Because of this, comparisons with `%operator%` will produce unexpected results
|
|
374
|
-
* @param {string} operator
|
|
375
|
-
*/
|
|
376
|
-
function state_proxy_equality_mismatch(operator) {
|
|
377
|
-
{
|
|
378
|
-
console.warn(`https://svelte.dev/e/state_proxy_equality_mismatch`);
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
|
|
382
232
|
/** @import { TemplateNode } from '#client' */
|
|
383
233
|
|
|
384
234
|
|
|
@@ -467,19 +317,6 @@
|
|
|
467
317
|
}
|
|
468
318
|
}
|
|
469
319
|
|
|
470
|
-
/* This file is generated by scripts/process-messages/index.js. Do not edit! */
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
/**
|
|
474
|
-
* `<svelte:element this="%tag%">` is a void element — it cannot have content
|
|
475
|
-
* @param {string} tag
|
|
476
|
-
*/
|
|
477
|
-
function dynamic_void_element_content(tag) {
|
|
478
|
-
{
|
|
479
|
-
console.warn(`https://svelte.dev/e/dynamic_void_element_content`);
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
|
|
483
320
|
/** @import { Snapshot } from './types' */
|
|
484
321
|
|
|
485
322
|
/**
|
|
@@ -888,24 +725,6 @@
|
|
|
888
725
|
return Object.is(get_proxied_value(a), get_proxied_value(b));
|
|
889
726
|
}
|
|
890
727
|
|
|
891
|
-
/**
|
|
892
|
-
* @param {any} a
|
|
893
|
-
* @param {any} b
|
|
894
|
-
* @param {boolean} equal
|
|
895
|
-
* @returns {boolean}
|
|
896
|
-
*/
|
|
897
|
-
function strict_equals(a, b, equal = true) {
|
|
898
|
-
// try-catch needed because this tries to read properties of `a` and `b`,
|
|
899
|
-
// which could be disallowed for example in a secure context
|
|
900
|
-
try {
|
|
901
|
-
if ((a === b) !== (get_proxied_value(a) === get_proxied_value(b))) {
|
|
902
|
-
state_proxy_equality_mismatch(equal ? '===' : '!==');
|
|
903
|
-
}
|
|
904
|
-
} catch {}
|
|
905
|
-
|
|
906
|
-
return (a === b) === equal;
|
|
907
|
-
}
|
|
908
|
-
|
|
909
728
|
/** @import { TemplateNode } from '#client' */
|
|
910
729
|
|
|
911
730
|
// export these for reference in the compiled code, making global name deduplication unnecessary
|
|
@@ -1399,11 +1218,6 @@
|
|
|
1399
1218
|
}
|
|
1400
1219
|
}
|
|
1401
1220
|
|
|
1402
|
-
/** @param {() => void | (() => void)} fn */
|
|
1403
|
-
function inspect_effect(fn) {
|
|
1404
|
-
return create_effect(INSPECT_EFFECT, fn, true);
|
|
1405
|
-
}
|
|
1406
|
-
|
|
1407
1221
|
/**
|
|
1408
1222
|
* Internal representation of `$effect.root(...)`
|
|
1409
1223
|
* @param {() => void | (() => void)} fn
|
|
@@ -2751,23 +2565,6 @@
|
|
|
2751
2565
|
component_context = context;
|
|
2752
2566
|
}
|
|
2753
2567
|
|
|
2754
|
-
/**
|
|
2755
|
-
* The current component function. Different from current component context:
|
|
2756
|
-
* ```html
|
|
2757
|
-
* <!-- App.svelte -->
|
|
2758
|
-
* <Foo>
|
|
2759
|
-
* <Bar /> <!-- context == Foo.svelte, function == App.svelte -->
|
|
2760
|
-
* </Foo>
|
|
2761
|
-
* ```
|
|
2762
|
-
* @type {ComponentContext['function']}
|
|
2763
|
-
*/
|
|
2764
|
-
let dev_current_component_function = null;
|
|
2765
|
-
|
|
2766
|
-
/** @param {ComponentContext['function']} fn */
|
|
2767
|
-
function set_dev_current_component_function(fn) {
|
|
2768
|
-
dev_current_component_function = fn;
|
|
2769
|
-
}
|
|
2770
|
-
|
|
2771
2568
|
/**
|
|
2772
2569
|
* Retrieves the context that belongs to the closest parent component with the specified `key`.
|
|
2773
2570
|
* Must be called during component initialisation.
|
|
@@ -2874,33 +2671,6 @@
|
|
|
2874
2671
|
return null;
|
|
2875
2672
|
}
|
|
2876
2673
|
|
|
2877
|
-
const VOID_ELEMENT_NAMES = [
|
|
2878
|
-
'area',
|
|
2879
|
-
'base',
|
|
2880
|
-
'br',
|
|
2881
|
-
'col',
|
|
2882
|
-
'command',
|
|
2883
|
-
'embed',
|
|
2884
|
-
'hr',
|
|
2885
|
-
'img',
|
|
2886
|
-
'input',
|
|
2887
|
-
'keygen',
|
|
2888
|
-
'link',
|
|
2889
|
-
'meta',
|
|
2890
|
-
'param',
|
|
2891
|
-
'source',
|
|
2892
|
-
'track',
|
|
2893
|
-
'wbr'
|
|
2894
|
-
];
|
|
2895
|
-
|
|
2896
|
-
/**
|
|
2897
|
-
* Returns `true` if `name` is of a void element
|
|
2898
|
-
* @param {string} name
|
|
2899
|
-
*/
|
|
2900
|
-
function is_void(name) {
|
|
2901
|
-
return VOID_ELEMENT_NAMES.includes(name) || name.toLowerCase() === '!doctype';
|
|
2902
|
-
}
|
|
2903
|
-
|
|
2904
2674
|
/**
|
|
2905
2675
|
* @param {string} name
|
|
2906
2676
|
*/
|
|
@@ -3000,105 +2770,6 @@
|
|
|
3000
2770
|
return RAW_TEXT_ELEMENTS.includes(/** @type {RAW_TEXT_ELEMENTS[number]} */ (name));
|
|
3001
2771
|
}
|
|
3002
2772
|
|
|
3003
|
-
/**
|
|
3004
|
-
* Prevent devtools trying to make `location` a clickable link by inserting a zero-width space
|
|
3005
|
-
* @template {string | undefined} T
|
|
3006
|
-
* @param {T} location
|
|
3007
|
-
* @returns {T};
|
|
3008
|
-
*/
|
|
3009
|
-
function sanitize_location(location) {
|
|
3010
|
-
return /** @type {T} */ (location?.replace(/\//g, '/\u200b'));
|
|
3011
|
-
}
|
|
3012
|
-
|
|
3013
|
-
/**
|
|
3014
|
-
*
|
|
3015
|
-
* @param {any} a
|
|
3016
|
-
* @param {any} b
|
|
3017
|
-
* @param {string} property
|
|
3018
|
-
* @param {string} location
|
|
3019
|
-
*/
|
|
3020
|
-
function compare(a, b, property, location) {
|
|
3021
|
-
if (a !== b) {
|
|
3022
|
-
assignment_value_stale(property, /** @type {string} */ (sanitize_location(location)));
|
|
3023
|
-
}
|
|
3024
|
-
|
|
3025
|
-
return a;
|
|
3026
|
-
}
|
|
3027
|
-
|
|
3028
|
-
/**
|
|
3029
|
-
* @param {any} object
|
|
3030
|
-
* @param {string} property
|
|
3031
|
-
* @param {any} value
|
|
3032
|
-
* @param {string} location
|
|
3033
|
-
*/
|
|
3034
|
-
function assign(object, property, value, location) {
|
|
3035
|
-
return compare(
|
|
3036
|
-
(object[property] = value),
|
|
3037
|
-
untrack(() => object[property]),
|
|
3038
|
-
property,
|
|
3039
|
-
location
|
|
3040
|
-
);
|
|
3041
|
-
}
|
|
3042
|
-
|
|
3043
|
-
/** @import { SourceLocation } from '#shared' */
|
|
3044
|
-
|
|
3045
|
-
/**
|
|
3046
|
-
* @param {any} fn
|
|
3047
|
-
* @param {string} filename
|
|
3048
|
-
* @param {SourceLocation[]} locations
|
|
3049
|
-
* @returns {any}
|
|
3050
|
-
*/
|
|
3051
|
-
function add_locations(fn, filename, locations) {
|
|
3052
|
-
return (/** @type {any[]} */ ...args) => {
|
|
3053
|
-
const dom = fn(...args);
|
|
3054
|
-
|
|
3055
|
-
var node = hydrating ? dom : dom.nodeType === 11 ? dom.firstChild : dom;
|
|
3056
|
-
assign_locations(node, filename, locations);
|
|
3057
|
-
|
|
3058
|
-
return dom;
|
|
3059
|
-
};
|
|
3060
|
-
}
|
|
3061
|
-
|
|
3062
|
-
/**
|
|
3063
|
-
* @param {Element} element
|
|
3064
|
-
* @param {string} filename
|
|
3065
|
-
* @param {SourceLocation} location
|
|
3066
|
-
*/
|
|
3067
|
-
function assign_location(element, filename, location) {
|
|
3068
|
-
// @ts-expect-error
|
|
3069
|
-
element.__svelte_meta = {
|
|
3070
|
-
loc: { file: filename, line: location[0], column: location[1] }
|
|
3071
|
-
};
|
|
3072
|
-
|
|
3073
|
-
if (location[2]) {
|
|
3074
|
-
assign_locations(element.firstChild, filename, location[2]);
|
|
3075
|
-
}
|
|
3076
|
-
}
|
|
3077
|
-
|
|
3078
|
-
/**
|
|
3079
|
-
* @param {Node | null} node
|
|
3080
|
-
* @param {string} filename
|
|
3081
|
-
* @param {SourceLocation[]} locations
|
|
3082
|
-
*/
|
|
3083
|
-
function assign_locations(node, filename, locations) {
|
|
3084
|
-
var i = 0;
|
|
3085
|
-
var depth = 0;
|
|
3086
|
-
|
|
3087
|
-
while (node && i < locations.length) {
|
|
3088
|
-
if (hydrating && node.nodeType === 8) {
|
|
3089
|
-
var comment = /** @type {Comment} */ (node);
|
|
3090
|
-
if (comment.data === HYDRATION_START || comment.data === HYDRATION_START_ELSE) depth += 1;
|
|
3091
|
-
else if (comment.data[0] === HYDRATION_END) depth -= 1;
|
|
3092
|
-
}
|
|
3093
|
-
|
|
3094
|
-
if (depth === 0 && node.nodeType === 1) {
|
|
3095
|
-
assign_location(/** @type {Element} */ (node), filename, locations[i++]);
|
|
3096
|
-
}
|
|
3097
|
-
|
|
3098
|
-
node = node.nextSibling;
|
|
3099
|
-
}
|
|
3100
|
-
}
|
|
3101
|
-
|
|
3102
2773
|
/**
|
|
3103
2774
|
* @param {HTMLElement} dom
|
|
3104
2775
|
* @param {boolean} value
|
|
@@ -3411,48 +3082,6 @@
|
|
|
3411
3082
|
}
|
|
3412
3083
|
}
|
|
3413
3084
|
|
|
3414
|
-
/**
|
|
3415
|
-
* In dev, warn if an event handler is not a function, as it means the
|
|
3416
|
-
* user probably called the handler or forgot to add a `() =>`
|
|
3417
|
-
* @param {() => (event: Event, ...args: any) => void} thunk
|
|
3418
|
-
* @param {EventTarget} element
|
|
3419
|
-
* @param {[Event, ...any]} args
|
|
3420
|
-
* @param {any} component
|
|
3421
|
-
* @param {[number, number]} [loc]
|
|
3422
|
-
* @param {boolean} [remove_parens]
|
|
3423
|
-
*/
|
|
3424
|
-
function apply(
|
|
3425
|
-
thunk,
|
|
3426
|
-
element,
|
|
3427
|
-
args,
|
|
3428
|
-
component,
|
|
3429
|
-
loc,
|
|
3430
|
-
has_side_effects = false,
|
|
3431
|
-
remove_parens = false
|
|
3432
|
-
) {
|
|
3433
|
-
let handler;
|
|
3434
|
-
let error;
|
|
3435
|
-
|
|
3436
|
-
try {
|
|
3437
|
-
handler = thunk();
|
|
3438
|
-
} catch (e) {
|
|
3439
|
-
error = e;
|
|
3440
|
-
}
|
|
3441
|
-
|
|
3442
|
-
if (typeof handler !== 'function' && (has_side_effects || handler != null || error)) {
|
|
3443
|
-
component?.[FILENAME];
|
|
3444
|
-
const phase = args[0]?.eventPhase < Event.BUBBLING_PHASE ? 'capture' : '';
|
|
3445
|
-
args[0]?.type + phase;
|
|
3446
|
-
|
|
3447
|
-
event_handler_invalid();
|
|
3448
|
-
|
|
3449
|
-
if (error) {
|
|
3450
|
-
throw error;
|
|
3451
|
-
}
|
|
3452
|
-
}
|
|
3453
|
-
handler?.apply(element, args);
|
|
3454
|
-
}
|
|
3455
|
-
|
|
3456
3085
|
/** @param {string} html */
|
|
3457
3086
|
function create_fragment_from_html(html) {
|
|
3458
3087
|
var elem = document.createElement('template');
|
|
@@ -3816,152 +3445,6 @@
|
|
|
3816
3445
|
return Promise.resolve();
|
|
3817
3446
|
}
|
|
3818
3447
|
|
|
3819
|
-
/** @typedef {{ file: string, line: number, column: number }} Location */
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
/**
|
|
3823
|
-
* Sets up a validator that
|
|
3824
|
-
* - traverses the path of a prop to find out if it is allowed to be mutated
|
|
3825
|
-
* - checks that the binding chain is not interrupted
|
|
3826
|
-
* @param {Record<string, any>} props
|
|
3827
|
-
*/
|
|
3828
|
-
function create_ownership_validator(props) {
|
|
3829
|
-
const component = component_context?.function;
|
|
3830
|
-
const parent = component_context?.p?.function;
|
|
3831
|
-
|
|
3832
|
-
return {
|
|
3833
|
-
/**
|
|
3834
|
-
* @param {string} prop
|
|
3835
|
-
* @param {any[]} path
|
|
3836
|
-
* @param {any} result
|
|
3837
|
-
* @param {number} line
|
|
3838
|
-
* @param {number} column
|
|
3839
|
-
*/
|
|
3840
|
-
mutation: (prop, path, result, line, column) => {
|
|
3841
|
-
const name = path[0];
|
|
3842
|
-
if (is_bound_or_unset(props, name) || !parent) {
|
|
3843
|
-
return result;
|
|
3844
|
-
}
|
|
3845
|
-
|
|
3846
|
-
/** @type {any} */
|
|
3847
|
-
let value = props;
|
|
3848
|
-
|
|
3849
|
-
for (let i = 0; i < path.length - 1; i++) {
|
|
3850
|
-
value = value[path[i]];
|
|
3851
|
-
if (!value?.[STATE_SYMBOL]) {
|
|
3852
|
-
return result;
|
|
3853
|
-
}
|
|
3854
|
-
}
|
|
3855
|
-
|
|
3856
|
-
const location = sanitize_location(`${component[FILENAME]}:${line}:${column}`);
|
|
3857
|
-
|
|
3858
|
-
ownership_invalid_mutation(name, location, prop, parent[FILENAME]);
|
|
3859
|
-
|
|
3860
|
-
return result;
|
|
3861
|
-
},
|
|
3862
|
-
/**
|
|
3863
|
-
* @param {any} key
|
|
3864
|
-
* @param {any} child_component
|
|
3865
|
-
* @param {() => any} value
|
|
3866
|
-
*/
|
|
3867
|
-
binding: (key, child_component, value) => {
|
|
3868
|
-
if (!is_bound_or_unset(props, key) && parent && value()?.[STATE_SYMBOL]) {
|
|
3869
|
-
ownership_invalid_binding(
|
|
3870
|
-
component[FILENAME],
|
|
3871
|
-
key,
|
|
3872
|
-
child_component[FILENAME],
|
|
3873
|
-
parent[FILENAME]
|
|
3874
|
-
);
|
|
3875
|
-
}
|
|
3876
|
-
}
|
|
3877
|
-
};
|
|
3878
|
-
}
|
|
3879
|
-
|
|
3880
|
-
/**
|
|
3881
|
-
* @param {Record<string, any>} props
|
|
3882
|
-
* @param {string} prop_name
|
|
3883
|
-
*/
|
|
3884
|
-
function is_bound_or_unset(props, prop_name) {
|
|
3885
|
-
// Can be the case when someone does `mount(Component, props)` with `let props = $state({...})`
|
|
3886
|
-
// or `createClassComponent(Component, props)`
|
|
3887
|
-
const is_entry_props = STATE_SYMBOL in props || LEGACY_PROPS in props;
|
|
3888
|
-
return (
|
|
3889
|
-
!!get_descriptor(props, prop_name)?.set ||
|
|
3890
|
-
(is_entry_props && prop_name in props) ||
|
|
3891
|
-
!(prop_name in props)
|
|
3892
|
-
);
|
|
3893
|
-
}
|
|
3894
|
-
|
|
3895
|
-
/** @param {Function & { [FILENAME]: string }} target */
|
|
3896
|
-
function check_target(target) {
|
|
3897
|
-
if (target) {
|
|
3898
|
-
component_api_invalid_new(target[FILENAME] ?? 'a component', target.name);
|
|
3899
|
-
}
|
|
3900
|
-
}
|
|
3901
|
-
|
|
3902
|
-
function legacy_api() {
|
|
3903
|
-
const component = component_context?.function;
|
|
3904
|
-
|
|
3905
|
-
/** @param {string} method */
|
|
3906
|
-
function error(method) {
|
|
3907
|
-
component_api_changed(method, component[FILENAME]);
|
|
3908
|
-
}
|
|
3909
|
-
|
|
3910
|
-
return {
|
|
3911
|
-
$destroy: () => error('$destroy()'),
|
|
3912
|
-
$on: () => error('$on(...)'),
|
|
3913
|
-
$set: () => error('$set(...)')
|
|
3914
|
-
};
|
|
3915
|
-
}
|
|
3916
|
-
|
|
3917
|
-
/**
|
|
3918
|
-
* @param {() => any[]} get_value
|
|
3919
|
-
* @param {Function} [inspector]
|
|
3920
|
-
*/
|
|
3921
|
-
// eslint-disable-next-line no-console
|
|
3922
|
-
function inspect(get_value, inspector = console.log) {
|
|
3923
|
-
validate_effect();
|
|
3924
|
-
|
|
3925
|
-
let initial = true;
|
|
3926
|
-
|
|
3927
|
-
inspect_effect(() => {
|
|
3928
|
-
/** @type {any} */
|
|
3929
|
-
var value = UNINITIALIZED;
|
|
3930
|
-
|
|
3931
|
-
// Capturing the value might result in an exception due to the inspect effect being
|
|
3932
|
-
// sync and thus operating on stale data. In the case we encounter an exception we
|
|
3933
|
-
// can bail-out of reporting the value. Instead we simply console.error the error
|
|
3934
|
-
// so at least it's known that an error occured, but we don't stop execution
|
|
3935
|
-
try {
|
|
3936
|
-
value = get_value();
|
|
3937
|
-
} catch (error) {
|
|
3938
|
-
// eslint-disable-next-line no-console
|
|
3939
|
-
console.error(error);
|
|
3940
|
-
}
|
|
3941
|
-
|
|
3942
|
-
if (value !== UNINITIALIZED) {
|
|
3943
|
-
inspector(initial ? 'init' : 'update', ...snapshot(value, true));
|
|
3944
|
-
}
|
|
3945
|
-
|
|
3946
|
-
initial = false;
|
|
3947
|
-
});
|
|
3948
|
-
}
|
|
3949
|
-
|
|
3950
|
-
/**
|
|
3951
|
-
* @param {Node} anchor
|
|
3952
|
-
* @param {...(()=>any)[]} args
|
|
3953
|
-
*/
|
|
3954
|
-
function validate_snippet_args(anchor, ...args) {
|
|
3955
|
-
if (typeof anchor !== 'object' || !(anchor instanceof Node)) {
|
|
3956
|
-
invalid_snippet_arguments();
|
|
3957
|
-
}
|
|
3958
|
-
for (let arg of args) {
|
|
3959
|
-
if (typeof arg !== 'function') {
|
|
3960
|
-
invalid_snippet_arguments();
|
|
3961
|
-
}
|
|
3962
|
-
}
|
|
3963
|
-
}
|
|
3964
|
-
|
|
3965
3448
|
/** @import { Effect, Source, TemplateNode } from '#client' */
|
|
3966
3449
|
|
|
3967
3450
|
const PENDING = 0;
|
|
@@ -4907,41 +4390,6 @@
|
|
|
4907
4390
|
});
|
|
4908
4391
|
}
|
|
4909
4392
|
|
|
4910
|
-
/** @import { TemplateNode } from '#client' */
|
|
4911
|
-
/** @import { Getters } from '#shared' */
|
|
4912
|
-
|
|
4913
|
-
/**
|
|
4914
|
-
* @param {() => string} tag_fn
|
|
4915
|
-
* @returns {void}
|
|
4916
|
-
*/
|
|
4917
|
-
function validate_void_dynamic_element(tag_fn) {
|
|
4918
|
-
const tag = tag_fn();
|
|
4919
|
-
if (tag && is_void(tag)) {
|
|
4920
|
-
dynamic_void_element_content();
|
|
4921
|
-
}
|
|
4922
|
-
}
|
|
4923
|
-
|
|
4924
|
-
/** @param {() => unknown} tag_fn */
|
|
4925
|
-
function validate_dynamic_element_tag(tag_fn) {
|
|
4926
|
-
const tag = tag_fn();
|
|
4927
|
-
const is_string = typeof tag === 'string';
|
|
4928
|
-
if (tag && !is_string) {
|
|
4929
|
-
svelte_element_invalid_this_value();
|
|
4930
|
-
}
|
|
4931
|
-
}
|
|
4932
|
-
|
|
4933
|
-
/**
|
|
4934
|
-
* @template {() => unknown} T
|
|
4935
|
-
* @param {T} fn
|
|
4936
|
-
*/
|
|
4937
|
-
function prevent_snippet_stringification(fn) {
|
|
4938
|
-
fn.toString = () => {
|
|
4939
|
-
snippet_without_render_tag();
|
|
4940
|
-
return '';
|
|
4941
|
-
};
|
|
4942
|
-
return fn;
|
|
4943
|
-
}
|
|
4944
|
-
|
|
4945
4393
|
/** @import { Snippet } from 'svelte' */
|
|
4946
4394
|
/** @import { Effect, TemplateNode } from '#client' */
|
|
4947
4395
|
/** @import { Getters } from '#shared' */
|
|
@@ -4979,29 +4427,6 @@
|
|
|
4979
4427
|
}
|
|
4980
4428
|
}
|
|
4981
4429
|
|
|
4982
|
-
/**
|
|
4983
|
-
* In development, wrap the snippet function so that it passes validation, and so that the
|
|
4984
|
-
* correct component context is set for ownership checks
|
|
4985
|
-
* @param {any} component
|
|
4986
|
-
* @param {(node: TemplateNode, ...args: any[]) => void} fn
|
|
4987
|
-
*/
|
|
4988
|
-
function wrap_snippet(component, fn) {
|
|
4989
|
-
const snippet = (/** @type {TemplateNode} */ node, /** @type {any[]} */ ...args) => {
|
|
4990
|
-
var previous_component_function = dev_current_component_function;
|
|
4991
|
-
set_dev_current_component_function(component);
|
|
4992
|
-
|
|
4993
|
-
try {
|
|
4994
|
-
return fn(node, ...args);
|
|
4995
|
-
} finally {
|
|
4996
|
-
set_dev_current_component_function(previous_component_function);
|
|
4997
|
-
}
|
|
4998
|
-
};
|
|
4999
|
-
|
|
5000
|
-
prevent_snippet_stringification(snippet);
|
|
5001
|
-
|
|
5002
|
-
return snippet;
|
|
5003
|
-
}
|
|
5004
|
-
|
|
5005
4430
|
/** @import { Effect, TemplateNode } from '#client' */
|
|
5006
4431
|
|
|
5007
4432
|
/**
|
|
@@ -6424,80 +5849,6 @@
|
|
|
6424
5849
|
};
|
|
6425
5850
|
}
|
|
6426
5851
|
|
|
6427
|
-
/**
|
|
6428
|
-
* @param {() => any} collection
|
|
6429
|
-
* @param {(item: any, index: number) => string} key_fn
|
|
6430
|
-
* @returns {void}
|
|
6431
|
-
*/
|
|
6432
|
-
function validate_each_keys(collection, key_fn) {
|
|
6433
|
-
render_effect(() => {
|
|
6434
|
-
const keys = new Map();
|
|
6435
|
-
const maybe_array = collection();
|
|
6436
|
-
const array = is_array(maybe_array)
|
|
6437
|
-
? maybe_array
|
|
6438
|
-
: maybe_array == null
|
|
6439
|
-
? []
|
|
6440
|
-
: Array.from(maybe_array);
|
|
6441
|
-
const length = array.length;
|
|
6442
|
-
for (let i = 0; i < length; i++) {
|
|
6443
|
-
const key = key_fn(array[i], i);
|
|
6444
|
-
if (keys.has(key)) {
|
|
6445
|
-
String(keys.get(key));
|
|
6446
|
-
|
|
6447
|
-
/** @type {string | null} */
|
|
6448
|
-
let k = String(key);
|
|
6449
|
-
if (k.startsWith('[object ')) k = null;
|
|
6450
|
-
|
|
6451
|
-
each_key_duplicate();
|
|
6452
|
-
}
|
|
6453
|
-
keys.set(key, i);
|
|
6454
|
-
}
|
|
6455
|
-
});
|
|
6456
|
-
}
|
|
6457
|
-
|
|
6458
|
-
/**
|
|
6459
|
-
* @param {string} binding
|
|
6460
|
-
* @param {() => Record<string, any>} get_object
|
|
6461
|
-
* @param {() => string} get_property
|
|
6462
|
-
* @param {number} line
|
|
6463
|
-
* @param {number} column
|
|
6464
|
-
*/
|
|
6465
|
-
function validate_binding(binding, get_object, get_property, line, column) {
|
|
6466
|
-
var warned = false;
|
|
6467
|
-
|
|
6468
|
-
dev_current_component_function?.[FILENAME];
|
|
6469
|
-
|
|
6470
|
-
render_effect(() => {
|
|
6471
|
-
if (warned) return;
|
|
6472
|
-
|
|
6473
|
-
var [object, is_store_sub] = capture_store_binding(get_object);
|
|
6474
|
-
|
|
6475
|
-
if (is_store_sub) return;
|
|
6476
|
-
|
|
6477
|
-
var property = get_property();
|
|
6478
|
-
|
|
6479
|
-
var ran = false;
|
|
6480
|
-
|
|
6481
|
-
// by making the (possibly false, but it would be an extreme edge case) assumption
|
|
6482
|
-
// that a getter has a corresponding setter, we can determine if a property is
|
|
6483
|
-
// reactive by seeing if this effect has dependencies
|
|
6484
|
-
var effect = render_effect(() => {
|
|
6485
|
-
if (ran) return;
|
|
6486
|
-
|
|
6487
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
6488
|
-
object[property];
|
|
6489
|
-
});
|
|
6490
|
-
|
|
6491
|
-
ran = true;
|
|
6492
|
-
|
|
6493
|
-
if (effect.deps === null) {
|
|
6494
|
-
binding_property_non_reactive();
|
|
6495
|
-
|
|
6496
|
-
warned = true;
|
|
6497
|
-
}
|
|
6498
|
-
});
|
|
6499
|
-
}
|
|
6500
|
-
|
|
6501
5852
|
/** @import { ComponentConstructorOptions, ComponentType, SvelteComponent, Component } from 'svelte' */
|
|
6502
5853
|
|
|
6503
5854
|
/**
|
|
@@ -6968,37 +6319,6 @@
|
|
|
6968
6319
|
return Class;
|
|
6969
6320
|
}
|
|
6970
6321
|
|
|
6971
|
-
/**
|
|
6972
|
-
* @param {string} method
|
|
6973
|
-
* @param {...any} objects
|
|
6974
|
-
*/
|
|
6975
|
-
function log_if_contains_state(method, ...objects) {
|
|
6976
|
-
untrack(() => {
|
|
6977
|
-
try {
|
|
6978
|
-
let has_state = false;
|
|
6979
|
-
const transformed = [];
|
|
6980
|
-
|
|
6981
|
-
for (const obj of objects) {
|
|
6982
|
-
if (obj && typeof obj === 'object' && STATE_SYMBOL in obj) {
|
|
6983
|
-
transformed.push(snapshot(obj, true));
|
|
6984
|
-
has_state = true;
|
|
6985
|
-
} else {
|
|
6986
|
-
transformed.push(obj);
|
|
6987
|
-
}
|
|
6988
|
-
}
|
|
6989
|
-
|
|
6990
|
-
if (has_state) {
|
|
6991
|
-
console_log_state(method);
|
|
6992
|
-
|
|
6993
|
-
// eslint-disable-next-line no-console
|
|
6994
|
-
console.log('%c[snapshot]', 'color: grey', ...transformed);
|
|
6995
|
-
}
|
|
6996
|
-
} catch {}
|
|
6997
|
-
});
|
|
6998
|
-
|
|
6999
|
-
return objects;
|
|
7000
|
-
}
|
|
7001
|
-
|
|
7002
6322
|
function getDefaultExportFromCjs (x) {
|
|
7003
6323
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
7004
6324
|
}
|
|
@@ -74924,8 +74244,6 @@
|
|
|
74924
74244
|
var jsExports = requireJs();
|
|
74925
74245
|
var jsBeautify = /*@__PURE__*/getDefaultExportFromCjs(jsExports);
|
|
74926
74246
|
|
|
74927
|
-
Code[FILENAME] = 'src/doc/components/Code.svelte';
|
|
74928
|
-
|
|
74929
74247
|
function copy(_, prettyCode) {
|
|
74930
74248
|
navigator.clipboard.writeText(get(prettyCode));
|
|
74931
74249
|
this.classList.add('copied');
|
|
@@ -74938,34 +74256,17 @@
|
|
|
74938
74256
|
);
|
|
74939
74257
|
}
|
|
74940
74258
|
|
|
74941
|
-
var root$f =
|
|
74942
|
-
template(`<pre class="qc-hash-1fxiy4n"><code class="hljs"><button class="qc-button qc-compact qc-primary">
|
|
74259
|
+
var root$f = template(`<pre class="qc-hash-1fxiy4n"><code class="hljs"><button class="qc-button qc-compact qc-primary">
|
|
74943
74260
|
<span class="copy">copier</span>
|
|
74944
74261
|
<span class="copied">copié !</span>
|
|
74945
|
-
</button><!></code></pre>`)
|
|
74946
|
-
Code[FILENAME],
|
|
74947
|
-
[
|
|
74948
|
-
[
|
|
74949
|
-
54,
|
|
74950
|
-
0,
|
|
74951
|
-
[
|
|
74952
|
-
[
|
|
74953
|
-
55,
|
|
74954
|
-
5,
|
|
74955
|
-
[[56, 9, [[58, 12], [59, 12]]]]
|
|
74956
|
-
]
|
|
74957
|
-
]
|
|
74958
|
-
]
|
|
74959
|
-
]
|
|
74960
|
-
);
|
|
74262
|
+
</button><!></code></pre>`);
|
|
74961
74263
|
|
|
74962
74264
|
const $$css$5 = {
|
|
74963
74265
|
hash: 'qc-hash-1fxiy4n',
|
|
74964
|
-
code: 'pre.qc-hash-1fxiy4n {
|
|
74266
|
+
code: 'pre.qc-hash-1fxiy4n {max-inline-size:var(--qc-max-content-width);}'
|
|
74965
74267
|
};
|
|
74966
74268
|
|
|
74967
74269
|
function Code($$anchor, $$props) {
|
|
74968
|
-
check_target(new.target);
|
|
74969
74270
|
push($$props, true);
|
|
74970
74271
|
append_styles$1($$anchor, $$css$5);
|
|
74971
74272
|
|
|
@@ -74984,7 +74285,7 @@
|
|
|
74984
74285
|
|
|
74985
74286
|
rawCode.replace('class="mounted"', '').replace('/qc-hash-.*/g', '').replace('/is-external=""/g', 'is-external');
|
|
74986
74287
|
// prettyCode = pretty(rawCode, prettyOptions);
|
|
74987
|
-
set(prettyCode,
|
|
74288
|
+
set(prettyCode, language() === 'javascript' ? jsBeautify(rawCode) : pretty(rawCode, { wrap_attributes: 'force-aligned' }), true);
|
|
74988
74289
|
set(hlCode, HighlightJS.highlight(get(prettyCode), { language: language() }).value, true);
|
|
74989
74290
|
}
|
|
74990
74291
|
|
|
@@ -75031,8 +74332,7 @@
|
|
|
75031
74332
|
set outerHTML($$value = false) {
|
|
75032
74333
|
outerHTML($$value);
|
|
75033
74334
|
flushSync();
|
|
75034
|
-
}
|
|
75035
|
-
...legacy_api()
|
|
74335
|
+
}
|
|
75036
74336
|
});
|
|
75037
74337
|
}
|
|
75038
74338
|
|
|
@@ -75051,30 +74351,14 @@
|
|
|
75051
74351
|
false
|
|
75052
74352
|
));
|
|
75053
74353
|
|
|
75054
|
-
|
|
75055
|
-
|
|
75056
|
-
var root$e = add_locations(template(`<div class="color-details qc-hash-1we8qc0"><div></div> <div class="color-description qc-hash-1we8qc0"><strong> </strong><br> <code> </code></div></div>`), Color_doc[FILENAME], [
|
|
75057
|
-
[
|
|
75058
|
-
16,
|
|
75059
|
-
0,
|
|
75060
|
-
[
|
|
75061
|
-
[17, 4],
|
|
75062
|
-
[
|
|
75063
|
-
19,
|
|
75064
|
-
4,
|
|
75065
|
-
[[20, 8], [20, 32], [21, 8]]
|
|
75066
|
-
]
|
|
75067
|
-
]
|
|
75068
|
-
]
|
|
75069
|
-
]);
|
|
74354
|
+
var root$e = template(`<div class="color-details qc-hash-1we8qc0"><div></div> <div class="color-description qc-hash-1we8qc0"><strong> </strong><br> <code> </code></div></div>`);
|
|
75070
74355
|
|
|
75071
74356
|
const $$css$4 = {
|
|
75072
74357
|
hash: 'qc-hash-1we8qc0',
|
|
75073
|
-
code: '.qc-bg-color-white.qc-hash-1we8qc0 {
|
|
74358
|
+
code: '.qc-bg-color-white.qc-hash-1we8qc0 {background-color:var(--qc-color-white);}.qc-bg-color-blue-extra-pale.qc-hash-1we8qc0 {background-color:var(--qc-color-blue-extra-pale);}.qc-bg-color-blue-pale.qc-hash-1we8qc0 {background-color:var(--qc-color-blue-pale);}.qc-bg-color-blue-light.qc-hash-1we8qc0 {background-color:var(--qc-color-blue-light);}.qc-bg-color-blue-regular_light.qc-hash-1we8qc0 {background-color:var(--qc-color-blue-regular_light);}.qc-bg-color-blue-regular.qc-hash-1we8qc0 {background-color:var(--qc-color-blue-regular);}.qc-bg-color-blue-piv.qc-hash-1we8qc0 {background-color:var(--qc-color-blue-piv);}.qc-bg-color-blue-medium.qc-hash-1we8qc0 {background-color:var(--qc-color-blue-medium);}.qc-bg-color-blue-dark.qc-hash-1we8qc0 {background-color:var(--qc-color-blue-dark);}.qc-bg-color-purple.qc-hash-1we8qc0 {background-color:var(--qc-color-purple);}.qc-bg-color-grey-extra-pale.qc-hash-1we8qc0 {background-color:var(--qc-color-grey-extra-pale);}.qc-bg-color-grey-pale.qc-hash-1we8qc0 {background-color:var(--qc-color-grey-pale);}.qc-bg-color-grey-light.qc-hash-1we8qc0 {background-color:var(--qc-color-grey-light);}.qc-bg-color-grey-regular.qc-hash-1we8qc0 {background-color:var(--qc-color-grey-regular);}.qc-bg-color-grey-medium.qc-hash-1we8qc0 {background-color:var(--qc-color-grey-medium);}.qc-bg-color-grey-dark.qc-hash-1we8qc0 {background-color:var(--qc-color-grey-dark);}.qc-bg-color-pink-pale.qc-hash-1we8qc0 {background-color:var(--qc-color-pink-pale);}.qc-bg-color-pink-regular.qc-hash-1we8qc0 {background-color:var(--qc-color-pink-regular);}.qc-bg-color-red-pale.qc-hash-1we8qc0 {background-color:var(--qc-color-red-pale);}.qc-bg-color-red-light.qc-hash-1we8qc0 {background-color:var(--qc-color-red-light);}.qc-bg-color-red-regular_light.qc-hash-1we8qc0 {background-color:var(--qc-color-red-regular_light);}.qc-bg-color-red-regular.qc-hash-1we8qc0 {background-color:var(--qc-color-red-regular);}.qc-bg-color-red-medium.qc-hash-1we8qc0 {background-color:var(--qc-color-red-medium);}.qc-bg-color-red-dark.qc-hash-1we8qc0 {background-color:var(--qc-color-red-dark);}.qc-bg-color-green-pale.qc-hash-1we8qc0 {background-color:var(--qc-color-green-pale);}.qc-bg-color-green-regular.qc-hash-1we8qc0 {background-color:var(--qc-color-green-regular);}.qc-bg-color-green-dark.qc-hash-1we8qc0 {background-color:var(--qc-color-green-dark);}.qc-bg-color-yellow-pale.qc-hash-1we8qc0 {background-color:var(--qc-color-yellow-pale);}.qc-bg-color-yellow-regular.qc-hash-1we8qc0 {background-color:var(--qc-color-yellow-regular);}.qc-bg-color-yellow-dark.qc-hash-1we8qc0 {background-color:var(--qc-color-yellow-dark);}.qc-bg-color-background.qc-hash-1we8qc0 {background-color:var(--qc-color-background);}.qc-bg-color-text-primary.qc-hash-1we8qc0 {background-color:var(--qc-color-text-primary);}.qc-bg-color-accent.qc-hash-1we8qc0 {background-color:var(--qc-color-accent);}.qc-bg-color-success.qc-hash-1we8qc0 {background-color:var(--qc-color-success);}.qc-bg-color-error.qc-hash-1we8qc0 {background-color:var(--qc-color-error);}.qc-bg-color-danger.qc-hash-1we8qc0 {background-color:var(--qc-color-danger);}.qc-bg-color-link-text.qc-hash-1we8qc0 {background-color:var(--qc-color-link-text);}.qc-bg-color-link-hover.qc-hash-1we8qc0 {background-color:var(--qc-color-link-hover);}.qc-bg-color-link-visited.qc-hash-1we8qc0 {background-color:var(--qc-color-link-visited);}.qc-bg-color-link-active.qc-hash-1we8qc0 {background-color:var(--qc-color-link-active);}.qc-bg-color-link-focus-outline.qc-hash-1we8qc0 {background-color:var(--qc-color-link-focus-outline);}.qc-bg-color-formfield-border.qc-hash-1we8qc0 {background-color:var(--qc-color-formfield-border);}.qc-bg-color-formfield-focus-border.qc-hash-1we8qc0 {background-color:var(--qc-color-formfield-focus-border);}.qc-bg-color-formfield-focus-outline.qc-hash-1we8qc0 {background-color:var(--qc-color-formfield-focus-outline);}.qc-bg-color-searchinput-icon.qc-hash-1we8qc0 {background-color:var(--qc-color-searchinput-icon);}.qc-bg-color-box_shadow.qc-hash-1we8qc0 {background-color:var(--qc-color-box_shadow);}.color-details.qc-hash-1we8qc0 {display:flex;justify-content:flex-start;align-items:center;}.color-details.qc-hash-1we8qc0 > div:where(.qc-hash-1we8qc0) + div:where(.qc-hash-1we8qc0) {margin-left:var(--qc-spacer-md);}.color-sample.qc-hash-1we8qc0 {width:4.8rem;height:4.8rem;border-radius:50%;flex-shrink:0;}.border.qc-hash-1we8qc0 {border:1px solid var(--qc-color-grey-light);}'
|
|
75074
74359
|
};
|
|
75075
74360
|
|
|
75076
74361
|
function Color_doc($$anchor, $$props) {
|
|
75077
|
-
check_target(new.target);
|
|
75078
74362
|
push($$props, true);
|
|
75079
74363
|
append_styles$1($$anchor, $$css$4);
|
|
75080
74364
|
|
|
@@ -75134,8 +74418,7 @@
|
|
|
75134
74418
|
set border($$value = null) {
|
|
75135
74419
|
border($$value);
|
|
75136
74420
|
flushSync();
|
|
75137
|
-
}
|
|
75138
|
-
...legacy_api()
|
|
74421
|
+
}
|
|
75139
74422
|
});
|
|
75140
74423
|
}
|
|
75141
74424
|
|
|
@@ -75153,18 +74436,9 @@
|
|
|
75153
74436
|
true
|
|
75154
74437
|
));
|
|
75155
74438
|
|
|
75156
|
-
|
|
75157
|
-
|
|
75158
|
-
var root$d = add_locations(template(`<label><input type="checkbox" role="switch"> <span><!></span> <span class="qc-switch-slider"></span></label>`), ToggleSwitch[FILENAME], [
|
|
75159
|
-
[
|
|
75160
|
-
17,
|
|
75161
|
-
0,
|
|
75162
|
-
[[20, 4], [28, 4], [33, 4]]
|
|
75163
|
-
]
|
|
75164
|
-
]);
|
|
74439
|
+
var root$d = template(`<label><input type="checkbox" role="switch"> <span><!></span> <span class="qc-switch-slider"></span></label>`);
|
|
75165
74440
|
|
|
75166
74441
|
function ToggleSwitch($$anchor, $$props) {
|
|
75167
|
-
check_target(new.target);
|
|
75168
74442
|
push($$props, true);
|
|
75169
74443
|
|
|
75170
74444
|
let label = prop($$props, 'label', 7),
|
|
@@ -75175,7 +74449,7 @@
|
|
|
75175
74449
|
textAlign = prop($$props, 'textAlign', 7);
|
|
75176
74450
|
|
|
75177
74451
|
const usedId = "toggle-switch-" + (id() ? id() : Math.random().toString(36));
|
|
75178
|
-
let usedLabelTextAlignment =
|
|
74452
|
+
let usedLabelTextAlignment = textAlign()?.toLowerCase() === "end" ? "end" : "start";
|
|
75179
74453
|
var label_1 = root$d();
|
|
75180
74454
|
|
|
75181
74455
|
set_attribute(label_1, 'for', usedId);
|
|
@@ -75189,7 +74463,7 @@
|
|
|
75189
74463
|
|
|
75190
74464
|
set_class(span, 1, clsx([
|
|
75191
74465
|
"qc-switch-label",
|
|
75192
|
-
|
|
74466
|
+
usedLabelTextAlignment === "end" && "qc-switch-label-end"
|
|
75193
74467
|
]));
|
|
75194
74468
|
|
|
75195
74469
|
var node = child(span);
|
|
@@ -75253,8 +74527,7 @@
|
|
|
75253
74527
|
set textAlign($$value) {
|
|
75254
74528
|
textAlign($$value);
|
|
75255
74529
|
flushSync();
|
|
75256
|
-
}
|
|
75257
|
-
...legacy_api()
|
|
74530
|
+
}
|
|
75258
74531
|
});
|
|
75259
74532
|
}
|
|
75260
74533
|
|
|
@@ -75273,23 +74546,18 @@
|
|
|
75273
74546
|
true
|
|
75274
74547
|
);
|
|
75275
74548
|
|
|
75276
|
-
|
|
75277
|
-
|
|
75278
|
-
var root$c = add_locations(template(`<div role="complementary" class="qc-hash-ogsj9p"><div class="qc-container top-nav qc-hash-ogsj9p"><div class="switch-control qc-hash-ogsj9p"><!></div></div></div>`), TopNav[FILENAME], [
|
|
75279
|
-
[17, 0, [[18, 4, [[19, 8]]]]]
|
|
75280
|
-
]);
|
|
74549
|
+
var root$c = template(`<div role="complementary" class="qc-hash-ogsj9p"><div class="qc-container top-nav qc-hash-ogsj9p"><div class="switch-control qc-hash-ogsj9p"><!></div></div></div>`);
|
|
75281
74550
|
|
|
75282
74551
|
const $$css$3 = {
|
|
75283
74552
|
hash: 'qc-hash-ogsj9p',
|
|
75284
|
-
code: '[role=complementary].qc-hash-ogsj9p {
|
|
74553
|
+
code: '[role=complementary].qc-hash-ogsj9p {position:sticky;z-index:100;top:0;background-color:var(--qc-color-background);min-height:7.2rem;height:7.2rem;border-bottom:solid 0.1rem var(--qc-color-grey-light);}.top-nav.qc-hash-ogsj9p {position:absolute;inset:0;display:flex;align-items:end;padding-bottom:var(--qc-spacer-sm);}.top-nav.qc-hash-ogsj9p .switch-control:where(.qc-hash-ogsj9p) {margin-left:auto;margin-right:0;display:flex;align-items:center;}'
|
|
75285
74554
|
};
|
|
75286
74555
|
|
|
75287
74556
|
function TopNav($$anchor, $$props) {
|
|
75288
|
-
check_target(new.target);
|
|
75289
74557
|
push($$props, true);
|
|
75290
74558
|
append_styles$1($$anchor, $$css$3);
|
|
75291
74559
|
|
|
75292
|
-
let value = state(
|
|
74560
|
+
let value = state(localStorage.getItem('dark-theme') === "true");
|
|
75293
74561
|
|
|
75294
74562
|
user_effect(() => {
|
|
75295
74563
|
document.documentElement.classList.toggle('qc-dark-theme', get(value));
|
|
@@ -75315,22 +74583,19 @@
|
|
|
75315
74583
|
reset(div_1);
|
|
75316
74584
|
reset(div);
|
|
75317
74585
|
append($$anchor, div);
|
|
75318
|
-
|
|
74586
|
+
pop();
|
|
75319
74587
|
}
|
|
75320
74588
|
|
|
75321
74589
|
customElements.define('qc-doc-top-nav', create_custom_element(TopNav, {}, [], [], false));
|
|
75322
74590
|
|
|
75323
|
-
|
|
75324
|
-
|
|
75325
|
-
var root$b = add_locations(template(`<div class="switch qc-hash-qsg5d6"><input> <span class="slider round qc-hash-qsg5d6"></span></div>`), Switch[FILENAME], [[18, 0, [[24, 4], [31, 4]]]]);
|
|
74591
|
+
var root$b = template(`<div class="switch qc-hash-qsg5d6"><input> <span class="slider round qc-hash-qsg5d6"></span></div>`);
|
|
75326
74592
|
|
|
75327
74593
|
const $$css$2 = {
|
|
75328
74594
|
hash: 'qc-hash-qsg5d6',
|
|
75329
|
-
code: '/* The switch - the box around the slider
|
|
74595
|
+
code: '/* The switch - the box around the slider */.switch.qc-hash-qsg5d6 {position:relative;display:inline-block;width:5.6rem;height:3.2rem;}\n\n/* Hide default HTML checkbox */input.qc-hash-qsg5d6 {z-index:10;opacity:0;position:absolute;cursor:pointer;margin:0;padding:0;inset:0;height:auto;width:auto;}\n\n/* The slider */.slider.qc-hash-qsg5d6 {z-index:5;position:absolute;top:0;left:0;right:0;bottom:0;background-color:var(--unchecked-bg-color);-webkit-transition:0.4s;transition:0.4s;}.slider.qc-hash-qsg5d6::before {position:absolute;content:"";height:2.8rem;width:2.8rem;left:0.2rem;bottom:0.2rem;background-color:var(--slider-color);-webkit-transition:0.4s;transition:0.4s;}input.qc-hash-qsg5d6:checked + .slider:where(.qc-hash-qsg5d6) {background-color:var(--checked-bg-color);}input.qc-hash-qsg5d6:focus + .slider:where(.qc-hash-qsg5d6) {box-shadow:0 0 1px var(--qc-bok-shadow-color);}input.qc-hash-qsg5d6:checked + .slider:where(.qc-hash-qsg5d6)::before {transform:translateX(2.4rem);}.slider.round.qc-hash-qsg5d6, input.qc-hash-qsg5d6 {border-radius:3.2rem;}.slider.round.qc-hash-qsg5d6::before {border-radius:50%;}'
|
|
75330
74596
|
};
|
|
75331
74597
|
|
|
75332
74598
|
function Switch($$anchor, $$props) {
|
|
75333
|
-
check_target(new.target);
|
|
75334
74599
|
push($$props, true);
|
|
75335
74600
|
append_styles$1($$anchor, $$css$2);
|
|
75336
74601
|
|
|
@@ -75341,17 +74606,15 @@
|
|
|
75341
74606
|
checked: 'blue-regular',
|
|
75342
74607
|
slider: 'background'
|
|
75343
74608
|
})),
|
|
75344
|
-
rest = rest_props(
|
|
75345
|
-
$$
|
|
75346
|
-
|
|
75347
|
-
|
|
75348
|
-
|
|
75349
|
-
|
|
75350
|
-
|
|
75351
|
-
|
|
75352
|
-
|
|
75353
|
-
'color'
|
|
75354
|
-
]);
|
|
74609
|
+
rest = rest_props($$props, [
|
|
74610
|
+
'$$slots',
|
|
74611
|
+
'$$events',
|
|
74612
|
+
'$$legacy',
|
|
74613
|
+
'$$host',
|
|
74614
|
+
'value',
|
|
74615
|
+
'name',
|
|
74616
|
+
'color'
|
|
74617
|
+
]);
|
|
75355
74618
|
|
|
75356
74619
|
var div = root$b();
|
|
75357
74620
|
var input = child(div);
|
|
@@ -75413,30 +74676,20 @@
|
|
|
75413
74676
|
) {
|
|
75414
74677
|
color($$value);
|
|
75415
74678
|
flushSync();
|
|
75416
|
-
}
|
|
75417
|
-
...legacy_api()
|
|
74679
|
+
}
|
|
75418
74680
|
});
|
|
75419
74681
|
}
|
|
75420
74682
|
|
|
75421
74683
|
customElements.define('qc-switch', create_custom_element(Switch, { value: {}, name: {}, color: {} }, [], [], false));
|
|
75422
74684
|
|
|
75423
|
-
|
|
75424
|
-
|
|
75425
|
-
var root$a = add_locations(template(`<div class="exemple-area"><figure><div class="exemple qc-hash-1u5h5rs"></div> <figcaption><!></figcaption></figure> <!></div>`), Exemple[FILENAME], [
|
|
75426
|
-
[
|
|
75427
|
-
45,
|
|
75428
|
-
0,
|
|
75429
|
-
[[48, 4, [[51, 8], [54, 8]]]]
|
|
75430
|
-
]
|
|
75431
|
-
]);
|
|
74685
|
+
var root$a = template(`<div class="exemple-area"><figure><div class="exemple qc-hash-1u5h5rs"></div> <figcaption><!></figcaption></figure> <!></div>`);
|
|
75432
74686
|
|
|
75433
74687
|
const $$css$1 = {
|
|
75434
74688
|
hash: 'qc-hash-1u5h5rs',
|
|
75435
|
-
code: 'figure.qc-hash-1u5h5rs {
|
|
74689
|
+
code: 'figure.qc-hash-1u5h5rs {max-width:var(--qc-max-content-width);width:100%;border:1px solid var(--qc-box_shadow-0-color);margin-bottom:var(--qc-spacer-content-block-mb);}figure.qc-hash-1u5h5rs .exemple:where(.qc-hash-1u5h5rs) {padding:var(--qc-spacer-sm) var(--qc-spacer-sm) 0 var(--qc-spacer-sm);margin-bottom:var(--qc-spacer-sm);}'
|
|
75436
74690
|
};
|
|
75437
74691
|
|
|
75438
74692
|
function Exemple($$anchor, $$props) {
|
|
75439
|
-
check_target(new.target);
|
|
75440
74693
|
push($$props, true);
|
|
75441
74694
|
append_styles$1($$anchor, $$css$1);
|
|
75442
74695
|
|
|
@@ -75444,18 +74697,16 @@
|
|
|
75444
74697
|
codeTargetId = prop($$props, 'codeTargetId', 7),
|
|
75445
74698
|
hideCode = prop($$props, 'hideCode', 7, false),
|
|
75446
74699
|
rawCode = prop($$props, 'rawCode', 7),
|
|
75447
|
-
restProps = rest_props(
|
|
75448
|
-
$$
|
|
75449
|
-
|
|
75450
|
-
|
|
75451
|
-
|
|
75452
|
-
|
|
75453
|
-
|
|
75454
|
-
|
|
75455
|
-
|
|
75456
|
-
|
|
75457
|
-
'rawCode'
|
|
75458
|
-
]);
|
|
74700
|
+
restProps = rest_props($$props, [
|
|
74701
|
+
'$$slots',
|
|
74702
|
+
'$$events',
|
|
74703
|
+
'$$legacy',
|
|
74704
|
+
'$$host',
|
|
74705
|
+
'caption',
|
|
74706
|
+
'codeTargetId',
|
|
74707
|
+
'hideCode',
|
|
74708
|
+
'rawCode'
|
|
74709
|
+
]);
|
|
75459
74710
|
|
|
75460
74711
|
let exempleCode = state(void 0);
|
|
75461
74712
|
let figure = state(void 0);
|
|
@@ -75465,11 +74716,11 @@
|
|
|
75465
74716
|
|
|
75466
74717
|
onMount(() => {
|
|
75467
74718
|
get(rootElement).parentElement.childNodes.forEach((node) => {
|
|
75468
|
-
if (
|
|
74719
|
+
if (node.nodeType === 3) {
|
|
75469
74720
|
return;
|
|
75470
74721
|
}
|
|
75471
74722
|
|
|
75472
|
-
if (
|
|
74723
|
+
if (node !== get(rootElement)) {
|
|
75473
74724
|
get(exempleArea).appendChild(node);
|
|
75474
74725
|
}
|
|
75475
74726
|
|
|
@@ -75542,8 +74793,7 @@
|
|
|
75542
74793
|
set rawCode($$value) {
|
|
75543
74794
|
rawCode($$value);
|
|
75544
74795
|
flushSync();
|
|
75545
|
-
}
|
|
75546
|
-
...legacy_api()
|
|
74796
|
+
}
|
|
75547
74797
|
});
|
|
75548
74798
|
}
|
|
75549
74799
|
|
|
@@ -75699,13 +74949,10 @@
|
|
|
75699
74949
|
}
|
|
75700
74950
|
}
|
|
75701
74951
|
|
|
75702
|
-
|
|
75703
|
-
|
|
75704
|
-
var root_1$6 = add_locations(template(`<span class="qc-required" aria-hidden="true">*</span>`), LabelText[FILENAME], [[4, 26]]);
|
|
75705
|
-
var root$9 = add_locations(template(`<!><!>`, 1), LabelText[FILENAME], []);
|
|
74952
|
+
var root_1$6 = template(`<span class="qc-required" aria-hidden="true">*</span>`);
|
|
74953
|
+
var root$9 = template(`<!><!>`, 1);
|
|
75706
74954
|
|
|
75707
74955
|
function LabelText($$anchor, $$props) {
|
|
75708
|
-
check_target(new.target);
|
|
75709
74956
|
push($$props, true);
|
|
75710
74957
|
|
|
75711
74958
|
let text = prop($$props, 'text', 7),
|
|
@@ -75746,19 +74993,15 @@
|
|
|
75746
74993
|
set required($$value) {
|
|
75747
74994
|
required($$value);
|
|
75748
74995
|
flushSync();
|
|
75749
|
-
}
|
|
75750
|
-
...legacy_api()
|
|
74996
|
+
}
|
|
75751
74997
|
});
|
|
75752
74998
|
}
|
|
75753
74999
|
|
|
75754
75000
|
create_custom_element(LabelText, { text: {}, required: {} }, [], [], true);
|
|
75755
75001
|
|
|
75756
|
-
|
|
75757
|
-
|
|
75758
|
-
var root$8 = add_locations(template(`<label><!></label>`), Label[FILENAME], [[16, 0]]);
|
|
75002
|
+
var root$8 = template(`<label><!></label>`);
|
|
75759
75003
|
|
|
75760
75004
|
function Label($$anchor, $$props) {
|
|
75761
|
-
check_target(new.target);
|
|
75762
75005
|
push($$props, true);
|
|
75763
75006
|
|
|
75764
75007
|
let forId = prop($$props, 'forId', 7),
|
|
@@ -75768,21 +75011,19 @@
|
|
|
75768
75011
|
bold = prop($$props, 'bold', 7, false),
|
|
75769
75012
|
disabled = prop($$props, 'disabled', 7, false),
|
|
75770
75013
|
rootElement = prop($$props, 'rootElement', 15),
|
|
75771
|
-
rest = rest_props(
|
|
75772
|
-
$$
|
|
75773
|
-
|
|
75774
|
-
|
|
75775
|
-
|
|
75776
|
-
|
|
75777
|
-
|
|
75778
|
-
|
|
75779
|
-
|
|
75780
|
-
|
|
75781
|
-
|
|
75782
|
-
|
|
75783
|
-
|
|
75784
|
-
'rootElement'
|
|
75785
|
-
]);
|
|
75014
|
+
rest = rest_props($$props, [
|
|
75015
|
+
'$$slots',
|
|
75016
|
+
'$$events',
|
|
75017
|
+
'$$legacy',
|
|
75018
|
+
'$$host',
|
|
75019
|
+
'forId',
|
|
75020
|
+
'text',
|
|
75021
|
+
'required',
|
|
75022
|
+
'compact',
|
|
75023
|
+
'bold',
|
|
75024
|
+
'disabled',
|
|
75025
|
+
'rootElement'
|
|
75026
|
+
]);
|
|
75786
75027
|
|
|
75787
75028
|
var label = root$8();
|
|
75788
75029
|
let attributes;
|
|
@@ -75862,8 +75103,7 @@
|
|
|
75862
75103
|
set rootElement($$value) {
|
|
75863
75104
|
rootElement($$value);
|
|
75864
75105
|
flushSync();
|
|
75865
|
-
}
|
|
75866
|
-
...legacy_api()
|
|
75106
|
+
}
|
|
75867
75107
|
});
|
|
75868
75108
|
}
|
|
75869
75109
|
|
|
@@ -75883,12 +75123,9 @@
|
|
|
75883
75123
|
true
|
|
75884
75124
|
);
|
|
75885
75125
|
|
|
75886
|
-
|
|
75887
|
-
|
|
75888
|
-
var root$7 = add_locations(template(`<div></div>`), Icon[FILENAME], [[16, 0]]);
|
|
75126
|
+
var root$7 = template(`<div></div>`);
|
|
75889
75127
|
|
|
75890
75128
|
function Icon($$anchor, $$props) {
|
|
75891
|
-
check_target(new.target);
|
|
75892
75129
|
push($$props, true);
|
|
75893
75130
|
|
|
75894
75131
|
let type = prop($$props, 'type', 7),
|
|
@@ -75899,24 +75136,22 @@
|
|
|
75899
75136
|
height = prop($$props, 'height', 7, 'auto'),
|
|
75900
75137
|
src = prop($$props, 'src', 7, ''),
|
|
75901
75138
|
rotate = prop($$props, 'rotate', 7, 0),
|
|
75902
|
-
rest = rest_props(
|
|
75903
|
-
$$
|
|
75904
|
-
|
|
75905
|
-
|
|
75906
|
-
|
|
75907
|
-
|
|
75908
|
-
|
|
75909
|
-
|
|
75910
|
-
|
|
75911
|
-
|
|
75912
|
-
|
|
75913
|
-
|
|
75914
|
-
|
|
75915
|
-
|
|
75916
|
-
|
|
75917
|
-
|
|
75918
|
-
|
|
75919
|
-
let attributes = user_derived(() => strict_equals(width(), 'auto') ? { 'data-img-size': size() } : {});
|
|
75139
|
+
rest = rest_props($$props, [
|
|
75140
|
+
'$$slots',
|
|
75141
|
+
'$$events',
|
|
75142
|
+
'$$legacy',
|
|
75143
|
+
'$$host',
|
|
75144
|
+
'type',
|
|
75145
|
+
'label',
|
|
75146
|
+
'size',
|
|
75147
|
+
'color',
|
|
75148
|
+
'width',
|
|
75149
|
+
'height',
|
|
75150
|
+
'src',
|
|
75151
|
+
'rotate'
|
|
75152
|
+
]);
|
|
75153
|
+
|
|
75154
|
+
let attributes = user_derived(() => width() === 'auto' ? { 'data-img-size': size() } : {});
|
|
75920
75155
|
var div = root$7();
|
|
75921
75156
|
let attributes_1;
|
|
75922
75157
|
|
|
@@ -75996,8 +75231,7 @@
|
|
|
75996
75231
|
set rotate($$value = 0) {
|
|
75997
75232
|
rotate($$value);
|
|
75998
75233
|
flushSync();
|
|
75999
|
-
}
|
|
76000
|
-
...legacy_api()
|
|
75234
|
+
}
|
|
76001
75235
|
});
|
|
76002
75236
|
}
|
|
76003
75237
|
|
|
@@ -76018,13 +75252,10 @@
|
|
|
76018
75252
|
true
|
|
76019
75253
|
);
|
|
76020
75254
|
|
|
76021
|
-
|
|
76022
|
-
|
|
76023
|
-
var root_2$7 = add_locations(template(`<!> <span><!></span>`, 1), FormError[FILENAME], [[48, 8]]);
|
|
76024
|
-
var root_1$5 = add_locations(template(`<div role="alert"><!></div>`), FormError[FILENAME], [[35, 0]]);
|
|
75255
|
+
var root_2$7 = template(`<!> <span><!></span>`, 1);
|
|
75256
|
+
var root_1$5 = template(`<div role="alert"><!></div>`);
|
|
76025
75257
|
|
|
76026
75258
|
function FormError($$anchor, $$props) {
|
|
76027
|
-
check_target(new.target);
|
|
76028
75259
|
push($$props, true);
|
|
76029
75260
|
|
|
76030
75261
|
const lang = Utils.getPageLanguage();
|
|
@@ -76037,7 +75268,7 @@
|
|
|
76037
75268
|
rootElement = prop($$props, 'rootElement', 15);
|
|
76038
75269
|
|
|
76039
75270
|
let cleanLabel = user_derived(() => label().replace(/:\s*$/, '')),
|
|
76040
|
-
defaultInvalidText = user_derived(() => label() ?
|
|
75271
|
+
defaultInvalidText = user_derived(() => label() ? lang === 'fr' ? `Le champ ${get(cleanLabel)} est obligatoire.` : `${get(cleanLabel)} field is required.` : lang === 'fr' ? `Ce champ est obligatoire.` : `This field is required.`);
|
|
76041
75272
|
|
|
76042
75273
|
onMount(() => {
|
|
76043
75274
|
if (id()) return;
|
|
@@ -76136,8 +75367,7 @@
|
|
|
76136
75367
|
set rootElement($$value) {
|
|
76137
75368
|
rootElement($$value);
|
|
76138
75369
|
flushSync();
|
|
76139
|
-
}
|
|
76140
|
-
...legacy_api()
|
|
75370
|
+
}
|
|
76141
75371
|
});
|
|
76142
75372
|
}
|
|
76143
75373
|
|
|
@@ -76174,22 +75404,15 @@
|
|
|
76174
75404
|
setTextFieldRow(input.closest('.qc-formfield-row'));
|
|
76175
75405
|
}
|
|
76176
75406
|
|
|
76177
|
-
|
|
76178
|
-
|
|
76179
|
-
var
|
|
76180
|
-
var
|
|
76181
|
-
var root_1$4 = add_locations(template(`<!> <!> <!> <!> <!>`, 1), TextField[FILENAME], []);
|
|
76182
|
-
var root_6$1 = add_locations(template(`<div class="qc-textfield"><!></div>`), TextField[FILENAME], [[166, 4]]);
|
|
75407
|
+
var root_3$2 = template(`<div class="qc-description"><!></div>`);
|
|
75408
|
+
var root_4$3 = template(`<div aria-live="polite"><!></div>`);
|
|
75409
|
+
var root_1$4 = template(`<!> <!> <!> <!> <!>`, 1);
|
|
75410
|
+
var root_6$1 = template(`<div class="qc-textfield"><!></div>`);
|
|
76183
75411
|
|
|
76184
75412
|
function TextField($$anchor, $$props) {
|
|
76185
|
-
check_target(new.target);
|
|
76186
75413
|
push($$props, true);
|
|
76187
75414
|
|
|
76188
|
-
|
|
76189
|
-
|
|
76190
|
-
const textfield = wrap_snippet(TextField, function ($$anchor) {
|
|
76191
|
-
validate_snippet_args(...arguments);
|
|
76192
|
-
|
|
75415
|
+
const textfield = ($$anchor) => {
|
|
76193
75416
|
var fragment = root_1$4();
|
|
76194
75417
|
var node = first_child(fragment);
|
|
76195
75418
|
|
|
@@ -76198,30 +75421,26 @@
|
|
|
76198
75421
|
const expression = user_derived(() => input()?.disabled);
|
|
76199
75422
|
const expression_1 = user_derived(() => input()?.id);
|
|
76200
75423
|
|
|
76201
|
-
{
|
|
76202
|
-
|
|
76203
|
-
|
|
76204
|
-
|
|
76205
|
-
|
|
76206
|
-
|
|
76207
|
-
|
|
76208
|
-
|
|
76209
|
-
|
|
76210
|
-
|
|
76211
|
-
|
|
76212
|
-
|
|
76213
|
-
|
|
76214
|
-
|
|
76215
|
-
|
|
76216
|
-
|
|
76217
|
-
|
|
76218
|
-
|
|
76219
|
-
|
|
76220
|
-
|
|
76221
|
-
labelElement($$value);
|
|
76222
|
-
}
|
|
76223
|
-
});
|
|
76224
|
-
}
|
|
75424
|
+
Label($$anchor, {
|
|
75425
|
+
get required() {
|
|
75426
|
+
return required();
|
|
75427
|
+
},
|
|
75428
|
+
get disabled() {
|
|
75429
|
+
return get(expression);
|
|
75430
|
+
},
|
|
75431
|
+
get text() {
|
|
75432
|
+
return label();
|
|
75433
|
+
},
|
|
75434
|
+
get forId() {
|
|
75435
|
+
return get(expression_1);
|
|
75436
|
+
},
|
|
75437
|
+
get rootElement() {
|
|
75438
|
+
return labelElement();
|
|
75439
|
+
},
|
|
75440
|
+
set rootElement($$value) {
|
|
75441
|
+
labelElement($$value);
|
|
75442
|
+
}
|
|
75443
|
+
});
|
|
76225
75444
|
};
|
|
76226
75445
|
|
|
76227
75446
|
if_block(node, ($$render) => {
|
|
@@ -76277,7 +75496,7 @@
|
|
|
76277
75496
|
};
|
|
76278
75497
|
|
|
76279
75498
|
if_block(node_4, ($$render) => {
|
|
76280
|
-
if (
|
|
75499
|
+
if (maxlength() && maxlength() !== null) $$render(consequent_2);
|
|
76281
75500
|
});
|
|
76282
75501
|
}
|
|
76283
75502
|
|
|
@@ -76285,44 +75504,40 @@
|
|
|
76285
75504
|
const expression_2 = user_derived(() => invalidText() ? invalidText() : get(defaultInvalidText));
|
|
76286
75505
|
const expression_3 = user_derived(() => label() ? label() : input()?.getAttribute("aria-label"));
|
|
76287
75506
|
|
|
76288
|
-
{
|
|
76289
|
-
|
|
76290
|
-
|
|
76291
|
-
|
|
76292
|
-
|
|
76293
|
-
|
|
76294
|
-
|
|
76295
|
-
|
|
76296
|
-
|
|
76297
|
-
|
|
76298
|
-
|
|
76299
|
-
|
|
76300
|
-
|
|
76301
|
-
|
|
76302
|
-
|
|
76303
|
-
|
|
76304
|
-
|
|
76305
|
-
|
|
76306
|
-
|
|
76307
|
-
|
|
76308
|
-
|
|
76309
|
-
|
|
76310
|
-
|
|
76311
|
-
|
|
76312
|
-
formErrorElement($$value);
|
|
76313
|
-
}
|
|
76314
|
-
});
|
|
76315
|
-
}
|
|
75507
|
+
FormError(node_6, {
|
|
75508
|
+
get invalid() {
|
|
75509
|
+
return invalid();
|
|
75510
|
+
},
|
|
75511
|
+
get invalidText() {
|
|
75512
|
+
return get(expression_2);
|
|
75513
|
+
},
|
|
75514
|
+
get label() {
|
|
75515
|
+
return get(expression_3);
|
|
75516
|
+
},
|
|
75517
|
+
extraClasses: ['qc-xs-mt'],
|
|
75518
|
+
get id() {
|
|
75519
|
+
return get(errorId);
|
|
75520
|
+
},
|
|
75521
|
+
set id($$value) {
|
|
75522
|
+
set(errorId, $$value, true);
|
|
75523
|
+
},
|
|
75524
|
+
get rootElement() {
|
|
75525
|
+
return formErrorElement();
|
|
75526
|
+
},
|
|
75527
|
+
set rootElement($$value) {
|
|
75528
|
+
formErrorElement($$value);
|
|
75529
|
+
}
|
|
75530
|
+
});
|
|
76316
75531
|
|
|
76317
75532
|
append($$anchor, fragment);
|
|
76318
|
-
}
|
|
75533
|
+
};
|
|
76319
75534
|
|
|
76320
75535
|
const lang = Utils.getPageLanguage();
|
|
76321
75536
|
|
|
76322
75537
|
let label = prop($$props, 'label', 7, ''),
|
|
76323
75538
|
required = prop($$props, 'required', 15, false),
|
|
76324
75539
|
description = prop($$props, 'description', 7),
|
|
76325
|
-
size = prop($$props, 'size',
|
|
75540
|
+
size = prop($$props, 'size', 15),
|
|
76326
75541
|
maxlength = prop($$props, 'maxlength', 7),
|
|
76327
75542
|
maxlengthReached = prop($$props, 'maxlengthReached', 15, false),
|
|
76328
75543
|
invalidAtSubmit = prop($$props, 'invalidAtSubmit', 15, false),
|
|
@@ -76345,7 +75560,7 @@
|
|
|
76345
75560
|
textFieldRow = state(void 0),
|
|
76346
75561
|
defaultInvalidText = user_derived(() => {
|
|
76347
75562
|
if (!maxlengthReached()) return '';
|
|
76348
|
-
return
|
|
75563
|
+
return lang === 'fr' ? `La limite de caractères du champ ${label()} est dépassée.` : `The character limit for the ${label()} field has been exceeded.`;
|
|
76349
75564
|
});
|
|
76350
75565
|
|
|
76351
75566
|
onMount(() => {
|
|
@@ -76358,6 +75573,12 @@
|
|
|
76358
75573
|
onMountInput(input(), (textFieldRowParam) => set(textFieldRow, textFieldRowParam, true), (valueParam) => value(valueParam), (invalidParam) => invalid(invalidParam));
|
|
76359
75574
|
});
|
|
76360
75575
|
|
|
75576
|
+
user_effect(() => {
|
|
75577
|
+
if (size()) return;
|
|
75578
|
+
if (!input()) return;
|
|
75579
|
+
size(input().tagName === 'INPUT' ? 'md' : 'lg');
|
|
75580
|
+
});
|
|
75581
|
+
|
|
76361
75582
|
user_effect(() => {
|
|
76362
75583
|
invalidAtSubmit(required() && !value() || maxlengthReached());
|
|
76363
75584
|
});
|
|
@@ -76388,7 +75609,7 @@
|
|
|
76388
75609
|
|
|
76389
75610
|
const s = over > 1 ? 's' : '';
|
|
76390
75611
|
|
|
76391
|
-
set(charCountText, remaining >= 0 ?
|
|
75612
|
+
set(charCountText, remaining >= 0 ? lang === 'fr' ? `${remaining} caractère${s} restant${s}` : `${remaining} character${s} remaining` : lang === 'fr' ? `${over} caractère${s} en trop` : `${over} character${s} over the limit`, true);
|
|
76392
75613
|
});
|
|
76393
75614
|
|
|
76394
75615
|
// Génération des ID pour le aria-describedby
|
|
@@ -76558,8 +75779,7 @@
|
|
|
76558
75779
|
set children($$value) {
|
|
76559
75780
|
children($$value);
|
|
76560
75781
|
flushSync();
|
|
76561
|
-
}
|
|
76562
|
-
...legacy_api()
|
|
75782
|
+
}
|
|
76563
75783
|
});
|
|
76564
75784
|
}
|
|
76565
75785
|
|
|
@@ -76589,9 +75809,9 @@
|
|
|
76589
75809
|
true
|
|
76590
75810
|
);
|
|
76591
75811
|
|
|
76592
|
-
/*
|
|
75812
|
+
/* updateChoiceInput.svelte.js generated by Svelte v5.28.6 */
|
|
76593
75813
|
|
|
76594
|
-
function
|
|
75814
|
+
function updateChoiceInput(
|
|
76595
75815
|
input,
|
|
76596
75816
|
required,
|
|
76597
75817
|
invalid,
|
|
@@ -76601,10 +75821,16 @@
|
|
|
76601
75821
|
name
|
|
76602
75822
|
) {
|
|
76603
75823
|
if (!input) return;
|
|
76604
|
-
if (
|
|
75824
|
+
if (input.role === "switch") return;
|
|
75825
|
+
if (input.type === "hidden") return;
|
|
76605
75826
|
|
|
76606
75827
|
let label = input.closest('label');
|
|
76607
75828
|
|
|
75829
|
+
if (!label) {
|
|
75830
|
+
console.warn("Pas d'élément label parent pour l'input", input);
|
|
75831
|
+
return;
|
|
75832
|
+
}
|
|
75833
|
+
|
|
76608
75834
|
input.classList.add('qc-choicefield');
|
|
76609
75835
|
label.classList.add('qc-choicefield-label');
|
|
76610
75836
|
input.classList.toggle('qc-selection-button', selectionButton);
|
|
@@ -76623,18 +75849,13 @@
|
|
|
76623
75849
|
input.addEventListener('change', () => setInvalid(false));
|
|
76624
75850
|
}
|
|
76625
75851
|
|
|
76626
|
-
|
|
76627
|
-
|
|
76628
|
-
var root_2$6 = add_locations(template(`<span class="qc-required" aria-hidden="true">*</span>`), Checkbox[FILENAME], [[56, 4]]);
|
|
76629
|
-
var root$6 = add_locations(template(`<div><!> <!> <!></div>`), Checkbox[FILENAME], [[64, 4]]);
|
|
75852
|
+
var root_2$6 = template(`<span class="qc-required" aria-hidden="true">*</span>`);
|
|
75853
|
+
var root$6 = template(`<div><!> <!> <!></div>`);
|
|
76630
75854
|
|
|
76631
75855
|
function Checkbox($$anchor, $$props) {
|
|
76632
|
-
check_target(new.target);
|
|
76633
75856
|
push($$props, true);
|
|
76634
75857
|
|
|
76635
|
-
const requiredSpanSnippet =
|
|
76636
|
-
validate_snippet_args(...arguments);
|
|
76637
|
-
|
|
75858
|
+
const requiredSpanSnippet = ($$anchor) => {
|
|
76638
75859
|
var fragment = comment();
|
|
76639
75860
|
var node = first_child(fragment);
|
|
76640
75861
|
|
|
@@ -76652,7 +75873,7 @@
|
|
|
76652
75873
|
}
|
|
76653
75874
|
|
|
76654
75875
|
append($$anchor, fragment);
|
|
76655
|
-
}
|
|
75876
|
+
};
|
|
76656
75877
|
|
|
76657
75878
|
Utils.getPageLanguage();
|
|
76658
75879
|
const qcCheckoxContext = getContext("qc-checkbox");
|
|
@@ -76678,7 +75899,7 @@
|
|
|
76678
75899
|
onMount(() => {
|
|
76679
75900
|
if (qcCheckoxContext) return;
|
|
76680
75901
|
labelElement(get(rootElement)?.querySelector('label'));
|
|
76681
|
-
input(get(rootElement)?.querySelector('input'));
|
|
75902
|
+
input(get(rootElement)?.querySelector('input[type="checkbox"]'));
|
|
76682
75903
|
onChange(input(), (_invalid) => invalid(_invalid));
|
|
76683
75904
|
});
|
|
76684
75905
|
|
|
@@ -76688,7 +75909,7 @@
|
|
|
76688
75909
|
}
|
|
76689
75910
|
});
|
|
76690
75911
|
|
|
76691
|
-
user_effect((_) =>
|
|
75912
|
+
user_effect((_) => updateChoiceInput(input(), required(), invalid(), compact(), false, false));
|
|
76692
75913
|
|
|
76693
75914
|
user_effect(() => {
|
|
76694
75915
|
if (!required()) return;
|
|
@@ -76831,8 +76052,7 @@
|
|
|
76831
76052
|
set input($$value) {
|
|
76832
76053
|
input($$value);
|
|
76833
76054
|
flushSync();
|
|
76834
|
-
}
|
|
76835
|
-
...legacy_api()
|
|
76055
|
+
}
|
|
76836
76056
|
});
|
|
76837
76057
|
}
|
|
76838
76058
|
|
|
@@ -76859,12 +76079,9 @@
|
|
|
76859
76079
|
true
|
|
76860
76080
|
);
|
|
76861
76081
|
|
|
76862
|
-
|
|
76863
|
-
|
|
76864
|
-
var root$5 = add_locations(template(`<button><!></button>`), IconButton[FILENAME], [[16, 0]]);
|
|
76082
|
+
var root$5 = template(`<button><!></button>`);
|
|
76865
76083
|
|
|
76866
76084
|
function IconButton($$anchor, $$props) {
|
|
76867
|
-
check_target(new.target);
|
|
76868
76085
|
push($$props, true);
|
|
76869
76086
|
|
|
76870
76087
|
const size = prop($$props, 'size', 7, 'xl'),
|
|
@@ -76873,20 +76090,18 @@
|
|
|
76873
76090
|
iconSize = prop($$props, 'iconSize', 7),
|
|
76874
76091
|
iconColor = prop($$props, 'iconColor', 7),
|
|
76875
76092
|
className = prop($$props, 'class', 7, ''),
|
|
76876
|
-
rest = rest_props(
|
|
76877
|
-
$$
|
|
76878
|
-
|
|
76879
|
-
|
|
76880
|
-
|
|
76881
|
-
|
|
76882
|
-
|
|
76883
|
-
|
|
76884
|
-
|
|
76885
|
-
|
|
76886
|
-
|
|
76887
|
-
|
|
76888
|
-
'class'
|
|
76889
|
-
]);
|
|
76093
|
+
rest = rest_props($$props, [
|
|
76094
|
+
'$$slots',
|
|
76095
|
+
'$$events',
|
|
76096
|
+
'$$legacy',
|
|
76097
|
+
'$$host',
|
|
76098
|
+
'size',
|
|
76099
|
+
'label',
|
|
76100
|
+
'icon',
|
|
76101
|
+
'iconSize',
|
|
76102
|
+
'iconColor',
|
|
76103
|
+
'class'
|
|
76104
|
+
]);
|
|
76890
76105
|
|
|
76891
76106
|
var button = root$5();
|
|
76892
76107
|
let attributes;
|
|
@@ -76968,8 +76183,7 @@
|
|
|
76968
76183
|
set class($$value = '') {
|
|
76969
76184
|
className($$value);
|
|
76970
76185
|
flushSync();
|
|
76971
|
-
}
|
|
76972
|
-
...legacy_api()
|
|
76186
|
+
}
|
|
76973
76187
|
});
|
|
76974
76188
|
}
|
|
76975
76189
|
|
|
@@ -76988,38 +76202,33 @@
|
|
|
76988
76202
|
true
|
|
76989
76203
|
);
|
|
76990
76204
|
|
|
76991
|
-
|
|
76992
|
-
|
|
76993
|
-
var root$4 = add_locations(template(`<div><!> <input> <!></div>`), SearchInput[FILENAME], [[28, 0, [[39, 4]]]]);
|
|
76205
|
+
var root$4 = template(`<div><!> <input> <!></div>`);
|
|
76994
76206
|
|
|
76995
76207
|
function SearchInput($$anchor, $$props) {
|
|
76996
|
-
check_target(new.target);
|
|
76997
76208
|
push($$props, true);
|
|
76998
76209
|
|
|
76999
76210
|
const lang = Utils.getPageLanguage();
|
|
77000
76211
|
|
|
77001
76212
|
let value = prop($$props, 'value', 15, ''),
|
|
77002
|
-
ariaLabel = prop($$props, 'ariaLabel',
|
|
77003
|
-
clearAriaLabel = prop($$props, 'clearAriaLabel',
|
|
76213
|
+
ariaLabel = prop($$props, 'ariaLabel', 7, lang === "fr" ? "Rechercher..." : "Search..."),
|
|
76214
|
+
clearAriaLabel = prop($$props, 'clearAriaLabel', 7, lang === "fr" ? "Effacer le texte" : "Clear text"),
|
|
77004
76215
|
leftIcon = prop($$props, 'leftIcon', 7, false),
|
|
77005
76216
|
id = prop($$props, 'id', 23, () => `qc-search-input-${Math.random().toString(36).slice(2, 11)}`),
|
|
77006
|
-
rest = rest_props(
|
|
77007
|
-
$$
|
|
77008
|
-
|
|
77009
|
-
|
|
77010
|
-
|
|
77011
|
-
|
|
77012
|
-
|
|
77013
|
-
|
|
77014
|
-
|
|
77015
|
-
|
|
77016
|
-
|
|
77017
|
-
|
|
77018
|
-
|
|
77019
|
-
|
|
77020
|
-
|
|
77021
|
-
|
|
77022
|
-
const isDisabled = strict_equals($$props.disabled, true) || strict_equals($$props.disabled, "true") || strict_equals($$props.disabled, "");
|
|
76217
|
+
rest = rest_props($$props, [
|
|
76218
|
+
'$$slots',
|
|
76219
|
+
'$$events',
|
|
76220
|
+
'$$legacy',
|
|
76221
|
+
'$$host',
|
|
76222
|
+
'value',
|
|
76223
|
+
'ariaLabel',
|
|
76224
|
+
'clearAriaLabel',
|
|
76225
|
+
'leftIcon',
|
|
76226
|
+
'id'
|
|
76227
|
+
]);
|
|
76228
|
+
|
|
76229
|
+
leftIcon(leftIcon() === true || leftIcon() === "true" || leftIcon() === "");
|
|
76230
|
+
|
|
76231
|
+
const isDisabled = $$props.disabled === true || $$props.disabled === "true" || $$props.disabled === "";
|
|
77023
76232
|
let searchInput;
|
|
77024
76233
|
|
|
77025
76234
|
function focus() {
|
|
@@ -77099,9 +76308,7 @@
|
|
|
77099
76308
|
append($$anchor, div);
|
|
77100
76309
|
|
|
77101
76310
|
return pop({
|
|
77102
|
-
|
|
77103
|
-
return focus;
|
|
77104
|
-
},
|
|
76311
|
+
focus,
|
|
77105
76312
|
get value() {
|
|
77106
76313
|
return value();
|
|
77107
76314
|
},
|
|
@@ -77142,8 +76349,7 @@
|
|
|
77142
76349
|
) {
|
|
77143
76350
|
id($$value);
|
|
77144
76351
|
flushSync();
|
|
77145
|
-
}
|
|
77146
|
-
...legacy_api()
|
|
76352
|
+
}
|
|
77147
76353
|
});
|
|
77148
76354
|
}
|
|
77149
76355
|
|
|
@@ -77161,15 +76367,12 @@
|
|
|
77161
76367
|
true
|
|
77162
76368
|
);
|
|
77163
76369
|
|
|
77164
|
-
DropdownListItemsSingle[FILENAME] = 'src/sdg/components/DropdownList/DropdownListItems/DropdownListItemsSingle/DropdownListItemsSingle.svelte';
|
|
77165
|
-
|
|
77166
76370
|
var on_click$1 = (event, handleMouseUp, item) => handleMouseUp(event, get(item));
|
|
77167
|
-
var root_3$1 =
|
|
77168
|
-
var root_2$5 =
|
|
77169
|
-
var root_1$3 =
|
|
76371
|
+
var root_3$1 = template(`<span class="qc-sr-only"><!></span>`);
|
|
76372
|
+
var root_2$5 = template(`<li tabindex="0" role="option"><!></li>`);
|
|
76373
|
+
var root_1$3 = template(`<ul></ul>`);
|
|
77170
76374
|
|
|
77171
76375
|
function DropdownListItemsSingle($$anchor, $$props) {
|
|
77172
|
-
check_target(new.target);
|
|
77173
76376
|
push($$props, true);
|
|
77174
76377
|
|
|
77175
76378
|
const selectedElementCLass = "qc-dropdown-list-single-selected";
|
|
@@ -77198,7 +76401,7 @@
|
|
|
77198
76401
|
|
|
77199
76402
|
function focusOnFirstMatchingElement(passedValue) {
|
|
77200
76403
|
if (get(displayedItemsElements) && get(displayedItemsElements).length > 0) {
|
|
77201
|
-
const foundElement = get(displayedItemsElements).find((el) =>
|
|
76404
|
+
const foundElement = get(displayedItemsElements).find((el) => el.dataset.itemValue.toString() === passedValue.toString());
|
|
77202
76405
|
|
|
77203
76406
|
if (foundElement) {
|
|
77204
76407
|
foundElement.focus();
|
|
@@ -77210,8 +76413,8 @@
|
|
|
77210
76413
|
event.preventDefault();
|
|
77211
76414
|
|
|
77212
76415
|
if (!item.disabled) {
|
|
77213
|
-
items().forEach((item) =>
|
|
77214
|
-
items().find((option) =>
|
|
76416
|
+
items().forEach((item) => item.checked = false);
|
|
76417
|
+
items().find((option) => option.value === item.value).checked = true;
|
|
77215
76418
|
selectionCallback()();
|
|
77216
76419
|
}
|
|
77217
76420
|
}
|
|
@@ -77221,7 +76424,7 @@
|
|
|
77221
76424
|
}
|
|
77222
76425
|
|
|
77223
76426
|
function handleComboKey(event, index, item) {
|
|
77224
|
-
if (
|
|
76427
|
+
if (event.key === "ArrowDown") {
|
|
77225
76428
|
event.preventDefault();
|
|
77226
76429
|
event.stopPropagation();
|
|
77227
76430
|
|
|
@@ -77230,7 +76433,7 @@
|
|
|
77230
76433
|
}
|
|
77231
76434
|
}
|
|
77232
76435
|
|
|
77233
|
-
if (
|
|
76436
|
+
if (event.key === "ArrowUp") {
|
|
77234
76437
|
event.preventDefault();
|
|
77235
76438
|
event.stopPropagation();
|
|
77236
76439
|
|
|
@@ -77241,7 +76444,7 @@
|
|
|
77241
76444
|
}
|
|
77242
76445
|
}
|
|
77243
76446
|
|
|
77244
|
-
if (
|
|
76447
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
77245
76448
|
handleSelection(event, item);
|
|
77246
76449
|
}
|
|
77247
76450
|
|
|
@@ -77261,7 +76464,7 @@
|
|
|
77261
76464
|
}
|
|
77262
76465
|
|
|
77263
76466
|
function canExit(event, index) {
|
|
77264
|
-
return
|
|
76467
|
+
return event.key === "Escape" || !event.shiftKey && event.key === "Tab" && index === displayedItems().length - 1;
|
|
77265
76468
|
}
|
|
77266
76469
|
|
|
77267
76470
|
function itemsHaveIds() {
|
|
@@ -77283,8 +76486,6 @@
|
|
|
77283
76486
|
var consequent_1 = ($$anchor) => {
|
|
77284
76487
|
var ul = root_1$3();
|
|
77285
76488
|
|
|
77286
|
-
validate_each_keys(displayedItems, (item) => item.id);
|
|
77287
|
-
|
|
77288
76489
|
each(ul, 23, displayedItems, (item) => item.id, ($$anchor, item, index) => {
|
|
77289
76490
|
var li = root_2$5();
|
|
77290
76491
|
|
|
@@ -77317,7 +76518,6 @@
|
|
|
77317
76518
|
}
|
|
77318
76519
|
|
|
77319
76520
|
reset(li);
|
|
77320
|
-
validate_binding('bind:this={displayedItemsElements[index]}', () => get(displayedItemsElements), () => get(index));
|
|
77321
76521
|
bind_this(li, ($$value, index) => get(displayedItemsElements)[index] = $$value, (index) => get(displayedItemsElements)?.[index], () => [get(index)]);
|
|
77322
76522
|
|
|
77323
76523
|
template_effect(() => {
|
|
@@ -77348,15 +76548,9 @@
|
|
|
77348
76548
|
append($$anchor, fragment);
|
|
77349
76549
|
|
|
77350
76550
|
return pop({
|
|
77351
|
-
|
|
77352
|
-
|
|
77353
|
-
|
|
77354
|
-
get focusOnLastElement() {
|
|
77355
|
-
return focusOnLastElement;
|
|
77356
|
-
},
|
|
77357
|
-
get focusOnFirstMatchingElement() {
|
|
77358
|
-
return focusOnFirstMatchingElement;
|
|
77359
|
-
},
|
|
76551
|
+
focusOnFirstElement,
|
|
76552
|
+
focusOnLastElement,
|
|
76553
|
+
focusOnFirstMatchingElement,
|
|
77360
76554
|
get items() {
|
|
77361
76555
|
return items();
|
|
77362
76556
|
},
|
|
@@ -77405,8 +76599,7 @@
|
|
|
77405
76599
|
set handlePrintableCharacter($$value = () => {}) {
|
|
77406
76600
|
handlePrintableCharacter($$value);
|
|
77407
76601
|
flushSync();
|
|
77408
|
-
}
|
|
77409
|
-
...legacy_api()
|
|
76602
|
+
}
|
|
77410
76603
|
});
|
|
77411
76604
|
}
|
|
77412
76605
|
|
|
@@ -77432,32 +76625,17 @@
|
|
|
77432
76625
|
true
|
|
77433
76626
|
);
|
|
77434
76627
|
|
|
77435
|
-
DropdownListItemsMultiple[FILENAME] = 'src/sdg/components/DropdownList/DropdownListItems/DropdownListItemsMultiple/DropdownListItemsMultiple.svelte';
|
|
77436
|
-
|
|
77437
76628
|
function handleChange(_, selectionCallback) {
|
|
77438
76629
|
selectionCallback()();
|
|
77439
76630
|
}
|
|
77440
76631
|
|
|
77441
76632
|
var on_click = (e, handleLiClick, item) => handleLiClick(e, get(item));
|
|
77442
|
-
|
|
77443
|
-
var
|
|
77444
|
-
[
|
|
77445
|
-
153,
|
|
77446
|
-
12,
|
|
77447
|
-
[
|
|
77448
|
-
[163, 16, [[168, 20], [180, 20]]]
|
|
77449
|
-
]
|
|
77450
|
-
]
|
|
77451
|
-
]);
|
|
77452
|
-
|
|
77453
|
-
var root_1$2 = add_locations(template(`<ul></ul>`), DropdownListItemsMultiple[FILENAME], [[147, 4]]);
|
|
76633
|
+
var root_2$4 = template(`<li><label class="qc-choicefield-label" compact=""><input type="checkbox" class="qc-choicefield qc-compact"> <span> </span></label></li>`);
|
|
76634
|
+
var root_1$2 = template(`<ul></ul>`);
|
|
77454
76635
|
|
|
77455
76636
|
function DropdownListItemsMultiple($$anchor, $$props) {
|
|
77456
|
-
check_target(new.target);
|
|
77457
76637
|
push($$props, true);
|
|
77458
76638
|
|
|
77459
|
-
var $$ownership_validator = create_ownership_validator($$props);
|
|
77460
|
-
|
|
77461
76639
|
let displayedItems = prop($$props, 'displayedItems', 7),
|
|
77462
76640
|
handleExit = prop($$props, 'handleExit', 7, () => {}),
|
|
77463
76641
|
selectionCallback = prop($$props, 'selectionCallback', 7, () => {}),
|
|
@@ -77502,7 +76680,7 @@
|
|
|
77502
76680
|
}
|
|
77503
76681
|
|
|
77504
76682
|
function handleComboKey(event, index) {
|
|
77505
|
-
if (
|
|
76683
|
+
if (event.key === "ArrowDown") {
|
|
77506
76684
|
event.preventDefault();
|
|
77507
76685
|
event.stopPropagation();
|
|
77508
76686
|
|
|
@@ -77515,7 +76693,7 @@
|
|
|
77515
76693
|
}
|
|
77516
76694
|
}
|
|
77517
76695
|
|
|
77518
|
-
if (
|
|
76696
|
+
if (event.key === "ArrowUp") {
|
|
77519
76697
|
event.preventDefault();
|
|
77520
76698
|
event.stopPropagation();
|
|
77521
76699
|
|
|
@@ -77530,13 +76708,13 @@
|
|
|
77530
76708
|
}
|
|
77531
76709
|
}
|
|
77532
76710
|
|
|
77533
|
-
if (
|
|
76711
|
+
if (event.key === "Enter") {
|
|
77534
76712
|
event.preventDefault();
|
|
77535
76713
|
event.stopPropagation();
|
|
77536
76714
|
|
|
77537
76715
|
if (displayedItems().length > 0 && !displayedItems()[index].disabled) {
|
|
77538
76716
|
event.target.checked = !event.target.checked;
|
|
77539
|
-
|
|
76717
|
+
displayedItems()[index].checked = event.target.checked;
|
|
77540
76718
|
}
|
|
77541
76719
|
}
|
|
77542
76720
|
|
|
@@ -77556,10 +76734,10 @@
|
|
|
77556
76734
|
}
|
|
77557
76735
|
|
|
77558
76736
|
function handleLiKeyDown(event, index) {
|
|
77559
|
-
if (
|
|
76737
|
+
if (event.target.tagName !== "INPUT") {
|
|
77560
76738
|
handleKeyDown(event, index);
|
|
77561
76739
|
|
|
77562
|
-
if (
|
|
76740
|
+
if (event.key !== "Tab") {
|
|
77563
76741
|
event.preventDefault();
|
|
77564
76742
|
event.stopPropagation();
|
|
77565
76743
|
}
|
|
@@ -77567,7 +76745,7 @@
|
|
|
77567
76745
|
}
|
|
77568
76746
|
|
|
77569
76747
|
function handleLiClick(event, item) {
|
|
77570
|
-
if (
|
|
76748
|
+
if (event.target.tagName !== "INPUT") {
|
|
77571
76749
|
event.preventDefault();
|
|
77572
76750
|
event.stopPropagation();
|
|
77573
76751
|
|
|
@@ -77578,7 +76756,7 @@
|
|
|
77578
76756
|
}
|
|
77579
76757
|
|
|
77580
76758
|
function canExit(event, index) {
|
|
77581
|
-
return
|
|
76759
|
+
return event.key === "Escape" || !event.shiftKey && event.key === "Tab" && index === displayedItems().length - 1;
|
|
77582
76760
|
}
|
|
77583
76761
|
|
|
77584
76762
|
function itemsHaveIds() {
|
|
@@ -77600,8 +76778,6 @@
|
|
|
77600
76778
|
var consequent = ($$anchor) => {
|
|
77601
76779
|
var ul = root_1$2();
|
|
77602
76780
|
|
|
77603
|
-
validate_each_keys(displayedItems, (item) => item.id);
|
|
77604
|
-
|
|
77605
76781
|
each(ul, 23, displayedItems, (item) => item.id, ($$anchor, item, index) => {
|
|
77606
76782
|
var li = root_2$4();
|
|
77607
76783
|
|
|
@@ -77618,8 +76794,6 @@
|
|
|
77618
76794
|
set_attribute(input, 'name', name);
|
|
77619
76795
|
input.__change = [handleChange, selectionCallback];
|
|
77620
76796
|
input.__keydown = (e) => handleKeyDown(e, get(index));
|
|
77621
|
-
validate_binding('bind:checked={item.checked}', () => get(item), () => 'checked');
|
|
77622
|
-
validate_binding('bind:this={displayedItemsElements[index]}', () => get(displayedItemsElements), () => get(index));
|
|
77623
76797
|
bind_this(input, ($$value, index) => get(displayedItemsElements)[index] = $$value, (index) => get(displayedItemsElements)?.[index], () => [get(index)]);
|
|
77624
76798
|
|
|
77625
76799
|
var span = sibling(input, 2);
|
|
@@ -77663,15 +76837,9 @@
|
|
|
77663
76837
|
append($$anchor, fragment);
|
|
77664
76838
|
|
|
77665
76839
|
return pop({
|
|
77666
|
-
|
|
77667
|
-
|
|
77668
|
-
|
|
77669
|
-
get focusOnLastElement() {
|
|
77670
|
-
return focusOnLastElement;
|
|
77671
|
-
},
|
|
77672
|
-
get focusOnFirstMatchingElement() {
|
|
77673
|
-
return focusOnFirstMatchingElement;
|
|
77674
|
-
},
|
|
76840
|
+
focusOnFirstElement,
|
|
76841
|
+
focusOnLastElement,
|
|
76842
|
+
focusOnFirstMatchingElement,
|
|
77675
76843
|
get displayedItems() {
|
|
77676
76844
|
return displayedItems();
|
|
77677
76845
|
},
|
|
@@ -77706,8 +76874,7 @@
|
|
|
77706
76874
|
set handlePrintableCharacter($$value = () => {}) {
|
|
77707
76875
|
handlePrintableCharacter($$value);
|
|
77708
76876
|
flushSync();
|
|
77709
|
-
}
|
|
77710
|
-
...legacy_api()
|
|
76877
|
+
}
|
|
77711
76878
|
});
|
|
77712
76879
|
}
|
|
77713
76880
|
|
|
@@ -77731,13 +76898,10 @@
|
|
|
77731
76898
|
true
|
|
77732
76899
|
);
|
|
77733
76900
|
|
|
77734
|
-
|
|
77735
|
-
|
|
77736
|
-
var root_4$2 = add_locations(template(`<span class="qc-dropdown-list-no-options"><!></span>`), DropdownListItems[FILENAME], [[105, 16]]);
|
|
77737
|
-
var root$3 = add_locations(template(`<div class="qc-dropdown-list-items" tabindex="-1"><!> <div class="qc-dropdown-list-no-options-container" role="status"><!></div></div>`), DropdownListItems[FILENAME], [[67, 0, [[102, 4]]]]);
|
|
76901
|
+
var root_4$2 = template(`<span class="qc-dropdown-list-no-options"><!></span>`);
|
|
76902
|
+
var root$3 = template(`<div class="qc-dropdown-list-items" tabindex="-1"><!> <div class="qc-dropdown-list-no-options-container" role="status"><!></div></div>`);
|
|
77738
76903
|
|
|
77739
76904
|
function DropdownListItems($$anchor, $$props) {
|
|
77740
|
-
check_target(new.target);
|
|
77741
76905
|
push($$props, true);
|
|
77742
76906
|
|
|
77743
76907
|
let id = prop($$props, 'id', 7),
|
|
@@ -77754,9 +76918,6 @@
|
|
|
77754
76918
|
handlePrintableCharacter = prop($$props, 'handlePrintableCharacter', 7, () => {}),
|
|
77755
76919
|
placeholder = prop($$props, 'placeholder', 7);
|
|
77756
76920
|
|
|
77757
|
-
const precentRootFontSize = 62.5,
|
|
77758
|
-
remRatio = 0.16;
|
|
77759
|
-
|
|
77760
76921
|
let itemsComponent = state(void 0);
|
|
77761
76922
|
|
|
77762
76923
|
let usedHeight = user_derived(() => {
|
|
@@ -77896,21 +77057,15 @@
|
|
|
77896
77057
|
|
|
77897
77058
|
template_effect(() => {
|
|
77898
77059
|
set_attribute(div, 'id', id());
|
|
77899
|
-
set_style(div, `--dropdown-items-height: ${get(usedHeight)
|
|
77060
|
+
set_style(div, `--dropdown-items-height: ${get(usedHeight) ?? ''};`);
|
|
77900
77061
|
});
|
|
77901
77062
|
|
|
77902
77063
|
append($$anchor, div);
|
|
77903
77064
|
|
|
77904
77065
|
return pop({
|
|
77905
|
-
|
|
77906
|
-
|
|
77907
|
-
|
|
77908
|
-
get focusOnLastElement() {
|
|
77909
|
-
return focusOnLastElement;
|
|
77910
|
-
},
|
|
77911
|
-
get focusOnFirstMatchingElement() {
|
|
77912
|
-
return focusOnFirstMatchingElement;
|
|
77913
|
-
},
|
|
77066
|
+
focus,
|
|
77067
|
+
focusOnLastElement,
|
|
77068
|
+
focusOnFirstMatchingElement,
|
|
77914
77069
|
get id() {
|
|
77915
77070
|
return id();
|
|
77916
77071
|
},
|
|
@@ -78001,8 +77156,7 @@
|
|
|
78001
77156
|
set placeholder($$value) {
|
|
78002
77157
|
placeholder($$value);
|
|
78003
77158
|
flushSync();
|
|
78004
|
-
}
|
|
78005
|
-
...legacy_api()
|
|
77159
|
+
}
|
|
78006
77160
|
});
|
|
78007
77161
|
}
|
|
78008
77162
|
|
|
@@ -78032,14 +77186,11 @@
|
|
|
78032
77186
|
true
|
|
78033
77187
|
);
|
|
78034
77188
|
|
|
78035
|
-
|
|
78036
|
-
|
|
78037
|
-
var
|
|
78038
|
-
var root_2$3 = add_locations(template(`<span class="qc-dropdown-placeholder"><!></span>`), DropdownListButton[FILENAME], [[31, 8]]);
|
|
78039
|
-
var root$2 = add_locations(template(`<button><!> <span><!></span></button>`), DropdownListButton[FILENAME], [[19, 0, [[34, 4]]]]);
|
|
77189
|
+
var root_1$1 = template(`<span class="qc-dropdown-choice"><!></span>`);
|
|
77190
|
+
var root_2$3 = template(`<span class="qc-dropdown-placeholder"><!></span>`);
|
|
77191
|
+
var root$2 = template(`<button><!> <span><!></span></button>`);
|
|
78040
77192
|
|
|
78041
77193
|
function DropdownListButton($$anchor, $$props) {
|
|
78042
|
-
check_target(new.target);
|
|
78043
77194
|
push($$props, true);
|
|
78044
77195
|
|
|
78045
77196
|
let inputId = prop($$props, 'inputId', 7),
|
|
@@ -78047,19 +77198,17 @@
|
|
|
78047
77198
|
disabled = prop($$props, 'disabled', 7),
|
|
78048
77199
|
selectedOptionsText = prop($$props, 'selectedOptionsText', 7, ""),
|
|
78049
77200
|
placeholder = prop($$props, 'placeholder', 7),
|
|
78050
|
-
rest = rest_props(
|
|
78051
|
-
$$
|
|
78052
|
-
|
|
78053
|
-
|
|
78054
|
-
|
|
78055
|
-
|
|
78056
|
-
|
|
78057
|
-
|
|
78058
|
-
|
|
78059
|
-
|
|
78060
|
-
|
|
78061
|
-
'placeholder'
|
|
78062
|
-
]);
|
|
77201
|
+
rest = rest_props($$props, [
|
|
77202
|
+
'$$slots',
|
|
77203
|
+
'$$events',
|
|
77204
|
+
'$$legacy',
|
|
77205
|
+
'$$host',
|
|
77206
|
+
'inputId',
|
|
77207
|
+
'expanded',
|
|
77208
|
+
'disabled',
|
|
77209
|
+
'selectedOptionsText',
|
|
77210
|
+
'placeholder'
|
|
77211
|
+
]);
|
|
78063
77212
|
|
|
78064
77213
|
let button;
|
|
78065
77214
|
|
|
@@ -78130,9 +77279,7 @@
|
|
|
78130
77279
|
append($$anchor, button_1);
|
|
78131
77280
|
|
|
78132
77281
|
return pop({
|
|
78133
|
-
|
|
78134
|
-
return focus;
|
|
78135
|
-
},
|
|
77282
|
+
focus,
|
|
78136
77283
|
get inputId() {
|
|
78137
77284
|
return inputId();
|
|
78138
77285
|
},
|
|
@@ -78167,8 +77314,7 @@
|
|
|
78167
77314
|
set placeholder($$value) {
|
|
78168
77315
|
placeholder($$value);
|
|
78169
77316
|
flushSync();
|
|
78170
|
-
}
|
|
78171
|
-
...legacy_api()
|
|
77317
|
+
}
|
|
78172
77318
|
});
|
|
78173
77319
|
}
|
|
78174
77320
|
|
|
@@ -78186,36 +77332,13 @@
|
|
|
78186
77332
|
true
|
|
78187
77333
|
);
|
|
78188
77334
|
|
|
78189
|
-
|
|
78190
|
-
|
|
78191
|
-
var
|
|
78192
|
-
var root_3 = add_locations(template(`<span> </span>`), DropdownList[FILENAME], [[379, 24]]);
|
|
78193
|
-
|
|
78194
|
-
var root$1 = add_locations(template(`<div><div><!> <div tabindex="-1"><!> <div class="qc-dropdown-list-expanded" tabindex="-1" role="listbox"><!> <!> <div role="status" class="qc-sr-only"><!></div></div></div></div> <!></div>`), DropdownList[FILENAME], [
|
|
78195
|
-
[
|
|
78196
|
-
274,
|
|
78197
|
-
0,
|
|
78198
|
-
[
|
|
78199
|
-
[
|
|
78200
|
-
281,
|
|
78201
|
-
4,
|
|
78202
|
-
[
|
|
78203
|
-
[
|
|
78204
|
-
301,
|
|
78205
|
-
8,
|
|
78206
|
-
[[328, 12, [[377, 16]]]]
|
|
78207
|
-
]
|
|
78208
|
-
]
|
|
78209
|
-
]
|
|
78210
|
-
]
|
|
78211
|
-
]
|
|
78212
|
-
]);
|
|
77335
|
+
var root_2$2 = template(`<div class="qc-dropdown-list-search"><!></div>`);
|
|
77336
|
+
var root_3 = template(`<span> </span>`);
|
|
77337
|
+
var root$1 = template(`<div><div><!> <div tabindex="-1"><!> <div class="qc-dropdown-list-expanded" tabindex="-1" role="listbox"><!> <!> <div role="status" class="qc-sr-only"><!></div></div></div></div> <!></div>`);
|
|
78213
77338
|
|
|
78214
77339
|
function DropdownList($$anchor, $$props) {
|
|
78215
|
-
check_target(new.target);
|
|
78216
77340
|
push($$props, true);
|
|
78217
77341
|
|
|
78218
|
-
var $$ownership_validator = create_ownership_validator($$props);
|
|
78219
77342
|
const lang = Utils.getPageLanguage();
|
|
78220
77343
|
|
|
78221
77344
|
let id = prop($$props, 'id', 23, () => Math.random().toString(36).substring(2, 15)),
|
|
@@ -78225,7 +77348,7 @@
|
|
|
78225
77348
|
items = prop($$props, 'items', 23, () => []),
|
|
78226
77349
|
value = prop($$props, 'value', 31, () => proxy([])),
|
|
78227
77350
|
placeholder = prop($$props, 'placeholder', 7),
|
|
78228
|
-
noOptionsMessage = prop($$props, 'noOptionsMessage',
|
|
77351
|
+
noOptionsMessage = prop($$props, 'noOptionsMessage', 7, lang === "fr" ? "Aucun élément" : "No item"),
|
|
78229
77352
|
enableSearch = prop($$props, 'enableSearch', 7, false),
|
|
78230
77353
|
required = prop($$props, 'required', 7, false),
|
|
78231
77354
|
disabled = prop($$props, 'disabled', 7, false),
|
|
@@ -78235,10 +77358,9 @@
|
|
|
78235
77358
|
multiple = prop($$props, 'multiple', 7, false),
|
|
78236
77359
|
rootElement = prop($$props, 'rootElement', 15),
|
|
78237
77360
|
errorElement = prop($$props, 'errorElement', 15),
|
|
78238
|
-
webComponentMode = prop($$props, 'webComponentMode', 7, false)
|
|
78239
|
-
webComponentParentRow = prop($$props, 'webComponentParentRow', 7);
|
|
77361
|
+
webComponentMode = prop($$props, 'webComponentMode', 7, false);
|
|
78240
77362
|
|
|
78241
|
-
const defaultPlaceholder =
|
|
77363
|
+
const defaultPlaceholder = lang === "fr" ? "Faire une sélection" : "Select an option",
|
|
78242
77364
|
inputId = `${id()}-input`,
|
|
78243
77365
|
popupId = `${id()}-popup`,
|
|
78244
77366
|
itemsId = `${id()}-items`,
|
|
@@ -78254,7 +77376,7 @@
|
|
|
78254
77376
|
selectedItems = user_derived(() => items().filter((item) => item.checked) ?? []),
|
|
78255
77377
|
selectedOptionsText = user_derived(() => {
|
|
78256
77378
|
if (get(selectedItems).length >= 3) {
|
|
78257
|
-
if (
|
|
77379
|
+
if (lang === "fr") {
|
|
78258
77380
|
return `${get(selectedItems).length} options sélectionnées`;
|
|
78259
77381
|
}
|
|
78260
77382
|
|
|
@@ -78285,19 +77407,19 @@
|
|
|
78285
77407
|
};
|
|
78286
77408
|
})),
|
|
78287
77409
|
widthClass = user_derived(() => {
|
|
78288
|
-
|
|
77410
|
+
webComponentMode() ? "container" : "root";
|
|
78289
77411
|
|
|
78290
77412
|
if (availableWidths.includes(width())) {
|
|
78291
|
-
return `qc-dropdown-list-${
|
|
77413
|
+
return `qc-dropdown-list-${width()}`;
|
|
78292
77414
|
}
|
|
78293
77415
|
|
|
78294
|
-
return `qc-dropdown-list
|
|
77416
|
+
return `qc-dropdown-list-md`;
|
|
78295
77417
|
}),
|
|
78296
77418
|
srItemsCountText = user_derived(() => {
|
|
78297
77419
|
const s = get(displayedItems).length > 1 ? "s" : "";
|
|
78298
77420
|
|
|
78299
77421
|
if (get(displayedItems).length > 0) {
|
|
78300
|
-
return
|
|
77422
|
+
return lang === "fr" ? `${get(displayedItems).length} résultat${s} disponible${s}. Utilisez les flèches directionnelles haut et bas pour vous déplacer dans la liste.` : `${get(displayedItems).length} result${s} available. Use up and down arrow keys to navigate through the list.`;
|
|
78301
77423
|
}
|
|
78302
77424
|
|
|
78303
77425
|
return "";
|
|
@@ -78328,27 +77450,27 @@
|
|
|
78328
77450
|
// Le changement de focus a lieu après le lancement de l'événement clavier.
|
|
78329
77451
|
// Il faut donc faire un court sleep pour avoir le nouvel élément en focus.
|
|
78330
77452
|
Utils.sleep(5).then(() => {
|
|
78331
|
-
if (
|
|
77453
|
+
if (event.key === "Tab" && !Utils.componentIsActive(get(instance))) {
|
|
78332
77454
|
set(expanded, false);
|
|
78333
77455
|
}
|
|
78334
77456
|
}).catch(console.error);
|
|
78335
77457
|
}
|
|
78336
77458
|
|
|
78337
77459
|
function handleEscape(event) {
|
|
78338
|
-
if (
|
|
77460
|
+
if (event.key === "Escape") {
|
|
78339
77461
|
set(expanded, false);
|
|
78340
77462
|
}
|
|
78341
77463
|
}
|
|
78342
77464
|
|
|
78343
77465
|
function handleArrowUp(event, targetComponent) {
|
|
78344
|
-
if (
|
|
77466
|
+
if (event.key === "ArrowUp" && targetComponent) {
|
|
78345
77467
|
event.preventDefault();
|
|
78346
77468
|
targetComponent.focus();
|
|
78347
77469
|
}
|
|
78348
77470
|
}
|
|
78349
77471
|
|
|
78350
77472
|
function handleArrowDown(event, targetComponent) {
|
|
78351
|
-
if (
|
|
77473
|
+
if (event.key === "ArrowDown" && targetComponent) {
|
|
78352
77474
|
event.preventDefault();
|
|
78353
77475
|
set(expanded, true);
|
|
78354
77476
|
targetComponent.focus();
|
|
@@ -78359,7 +77481,7 @@
|
|
|
78359
77481
|
handleEscape(event);
|
|
78360
77482
|
handleTab(event);
|
|
78361
77483
|
|
|
78362
|
-
if (
|
|
77484
|
+
if (event.key === "ArrowDown") {
|
|
78363
77485
|
event.preventDefault();
|
|
78364
77486
|
|
|
78365
77487
|
if (get(expanded)) {
|
|
@@ -78370,7 +77492,7 @@
|
|
|
78370
77492
|
}
|
|
78371
77493
|
}
|
|
78372
77494
|
|
|
78373
|
-
if (
|
|
77495
|
+
if (event.key === "ArrowUp") {
|
|
78374
77496
|
event.preventDefault();
|
|
78375
77497
|
|
|
78376
77498
|
if (get(expanded)) {
|
|
@@ -78403,7 +77525,7 @@
|
|
|
78403
77525
|
set(expanded, false);
|
|
78404
77526
|
set(hiddenSearchText, "");
|
|
78405
77527
|
|
|
78406
|
-
if (
|
|
77528
|
+
if (key === "Escape" && get(button)) {
|
|
78407
77529
|
get(button).focus();
|
|
78408
77530
|
}
|
|
78409
77531
|
}
|
|
@@ -78425,7 +77547,7 @@
|
|
|
78425
77547
|
});
|
|
78426
77548
|
|
|
78427
77549
|
user_effect(() => {
|
|
78428
|
-
if (
|
|
77550
|
+
if (get(previousValue)?.toString() !== value()?.toString()) {
|
|
78429
77551
|
invalid(false);
|
|
78430
77552
|
}
|
|
78431
77553
|
});
|
|
@@ -78440,7 +77562,7 @@
|
|
|
78440
77562
|
user_effect(() => {
|
|
78441
77563
|
const tempValue = get(selectedItems)?.map((item) => item.value);
|
|
78442
77564
|
|
|
78443
|
-
if (
|
|
77565
|
+
if (tempValue?.toString() !== "") {
|
|
78444
77566
|
value(tempValue);
|
|
78445
77567
|
} else {
|
|
78446
77568
|
value([]);
|
|
@@ -78467,11 +77589,11 @@
|
|
|
78467
77589
|
const optionWithEmptyValue = findOptionWithEmptyValue();
|
|
78468
77590
|
|
|
78469
77591
|
if (!optionWithEmptyValue) return;
|
|
78470
|
-
placeholder(
|
|
77592
|
+
placeholder(optionWithEmptyValue.label !== "" ? optionWithEmptyValue.label : defaultPlaceholder);
|
|
78471
77593
|
});
|
|
78472
77594
|
|
|
78473
77595
|
function findOptionWithEmptyValue() {
|
|
78474
|
-
return items()?.find((item) =>
|
|
77596
|
+
return items()?.find((item) => item.value === "" || item.value === null || item.value === undefined);
|
|
78475
77597
|
}
|
|
78476
77598
|
|
|
78477
77599
|
var div = root$1();
|
|
@@ -78480,6 +77602,9 @@
|
|
|
78480
77602
|
event('keydown', $document.body, handleTab);
|
|
78481
77603
|
|
|
78482
77604
|
var div_1 = child(div);
|
|
77605
|
+
|
|
77606
|
+
set_class(div_1, 1, clsx(["qc-dropdown-list-container"]));
|
|
77607
|
+
|
|
78483
77608
|
var node = child(div_1);
|
|
78484
77609
|
|
|
78485
77610
|
{
|
|
@@ -78576,7 +77701,7 @@
|
|
|
78576
77701
|
handleArrowDown(e, get(dropdownItems));
|
|
78577
77702
|
handleArrowUp(e, get(button));
|
|
78578
77703
|
|
|
78579
|
-
if (
|
|
77704
|
+
if (e.key === "Enter") {
|
|
78580
77705
|
e.preventDefault();
|
|
78581
77706
|
}
|
|
78582
77707
|
},
|
|
@@ -78602,49 +77727,45 @@
|
|
|
78602
77727
|
|
|
78603
77728
|
var node_4 = sibling(node_2, 2);
|
|
78604
77729
|
|
|
78605
|
-
|
|
78606
|
-
|
|
78607
|
-
|
|
78608
|
-
|
|
78609
|
-
|
|
78610
|
-
|
|
78611
|
-
|
|
78612
|
-
|
|
78613
|
-
|
|
78614
|
-
|
|
78615
|
-
|
|
78616
|
-
|
|
78617
|
-
|
|
78618
|
-
|
|
78619
|
-
|
|
78620
|
-
|
|
78621
|
-
|
|
78622
|
-
|
|
78623
|
-
|
|
78624
|
-
|
|
78625
|
-
|
|
78626
|
-
|
|
78627
|
-
|
|
78628
|
-
|
|
78629
|
-
|
|
78630
|
-
|
|
78631
|
-
|
|
78632
|
-
|
|
78633
|
-
|
|
78634
|
-
|
|
78635
|
-
|
|
78636
|
-
|
|
78637
|
-
|
|
78638
|
-
|
|
78639
|
-
|
|
78640
|
-
|
|
78641
|
-
|
|
78642
|
-
|
|
78643
|
-
|
|
78644
|
-
($$value) => set(dropdownItems, $$value, true),
|
|
78645
|
-
() => get(dropdownItems)
|
|
78646
|
-
);
|
|
78647
|
-
}
|
|
77730
|
+
bind_this(
|
|
77731
|
+
DropdownListItems(node_4, {
|
|
77732
|
+
id: itemsId,
|
|
77733
|
+
get enableSearch() {
|
|
77734
|
+
return enableSearch();
|
|
77735
|
+
},
|
|
77736
|
+
get placeholder() {
|
|
77737
|
+
return placeholder();
|
|
77738
|
+
},
|
|
77739
|
+
get multiple() {
|
|
77740
|
+
return multiple();
|
|
77741
|
+
},
|
|
77742
|
+
get items() {
|
|
77743
|
+
return items();
|
|
77744
|
+
},
|
|
77745
|
+
get displayedItems() {
|
|
77746
|
+
return get(displayedItems);
|
|
77747
|
+
},
|
|
77748
|
+
get noOptionsMessage() {
|
|
77749
|
+
return noOptionsMessage();
|
|
77750
|
+
},
|
|
77751
|
+
selectionCallbackSingle: () => {
|
|
77752
|
+
closeDropdown("");
|
|
77753
|
+
get(button)?.focus();
|
|
77754
|
+
},
|
|
77755
|
+
handleExitSingle: (key) => closeDropdown(key),
|
|
77756
|
+
handleExitMultiple: (key) => closeDropdown(key),
|
|
77757
|
+
focusOnOuterElement: () => enableSearch() ? get(searchInput)?.focus() : get(button)?.focus(),
|
|
77758
|
+
handlePrintableCharacter,
|
|
77759
|
+
get value() {
|
|
77760
|
+
return value();
|
|
77761
|
+
},
|
|
77762
|
+
set value($$value) {
|
|
77763
|
+
value($$value);
|
|
77764
|
+
}
|
|
77765
|
+
}),
|
|
77766
|
+
($$value) => set(dropdownItems, $$value, true),
|
|
77767
|
+
() => get(dropdownItems)
|
|
77768
|
+
);
|
|
78648
77769
|
|
|
78649
77770
|
var div_5 = sibling(node_4, 2);
|
|
78650
77771
|
var node_5 = child(div_5);
|
|
@@ -78667,47 +77788,37 @@
|
|
|
78667
77788
|
var node_6 = sibling(div_1, 2);
|
|
78668
77789
|
const expression_1 = user_derived(() => label() ?? ariaLabel());
|
|
78669
77790
|
|
|
78670
|
-
{
|
|
78671
|
-
|
|
78672
|
-
|
|
78673
|
-
|
|
78674
|
-
|
|
78675
|
-
|
|
78676
|
-
|
|
78677
|
-
|
|
78678
|
-
|
|
78679
|
-
|
|
78680
|
-
|
|
78681
|
-
|
|
78682
|
-
|
|
78683
|
-
|
|
78684
|
-
|
|
78685
|
-
|
|
78686
|
-
|
|
78687
|
-
|
|
78688
|
-
|
|
78689
|
-
errorElement($$value);
|
|
78690
|
-
}
|
|
78691
|
-
});
|
|
78692
|
-
}
|
|
77791
|
+
FormError(node_6, {
|
|
77792
|
+
id: errorId,
|
|
77793
|
+
get invalid() {
|
|
77794
|
+
return invalid();
|
|
77795
|
+
},
|
|
77796
|
+
get invalidText() {
|
|
77797
|
+
return invalidText();
|
|
77798
|
+
},
|
|
77799
|
+
extraClasses: ["qc-xs-mt"],
|
|
77800
|
+
get label() {
|
|
77801
|
+
return get(expression_1);
|
|
77802
|
+
},
|
|
77803
|
+
get rootElement() {
|
|
77804
|
+
return errorElement();
|
|
77805
|
+
},
|
|
77806
|
+
set rootElement($$value) {
|
|
77807
|
+
errorElement($$value);
|
|
77808
|
+
}
|
|
77809
|
+
});
|
|
78693
77810
|
|
|
78694
77811
|
reset(div);
|
|
78695
77812
|
bind_this(div, ($$value) => rootElement($$value), () => rootElement());
|
|
78696
77813
|
|
|
78697
77814
|
template_effect(() => {
|
|
78698
77815
|
set_class(div, 1, clsx([
|
|
78699
|
-
"qc-
|
|
78700
|
-
!webComponentMode() && get(widthClass),
|
|
78701
|
-
!(get(parentRow) || webComponentParentRow()) && "qc-dropdown-list-margin"
|
|
78702
|
-
]));
|
|
78703
|
-
|
|
78704
|
-
set_class(div_1, 1, clsx([
|
|
78705
|
-
"qc-dropdown-list-container",
|
|
78706
|
-
webComponentMode() && get(widthClass)
|
|
77816
|
+
!get(parentRow) && !webComponentMode() && "qc-select"
|
|
78707
77817
|
]));
|
|
78708
77818
|
|
|
78709
77819
|
set_class(div_2, 1, clsx([
|
|
78710
77820
|
`qc-dropdown-list`,
|
|
77821
|
+
get(widthClass),
|
|
78711
77822
|
invalid() && "qc-dropdown-list-invalid"
|
|
78712
77823
|
]));
|
|
78713
77824
|
|
|
@@ -78846,15 +77957,7 @@
|
|
|
78846
77957
|
set webComponentMode($$value = false) {
|
|
78847
77958
|
webComponentMode($$value);
|
|
78848
77959
|
flushSync();
|
|
78849
|
-
}
|
|
78850
|
-
get webComponentParentRow() {
|
|
78851
|
-
return webComponentParentRow();
|
|
78852
|
-
},
|
|
78853
|
-
set webComponentParentRow($$value) {
|
|
78854
|
-
webComponentParentRow($$value);
|
|
78855
|
-
flushSync();
|
|
78856
|
-
},
|
|
78857
|
-
...legacy_api()
|
|
77960
|
+
}
|
|
78858
77961
|
});
|
|
78859
77962
|
}
|
|
78860
77963
|
|
|
@@ -78878,33 +77981,27 @@
|
|
|
78878
77981
|
multiple: {},
|
|
78879
77982
|
rootElement: {},
|
|
78880
77983
|
errorElement: {},
|
|
78881
|
-
webComponentMode: {}
|
|
78882
|
-
webComponentParentRow: {}
|
|
77984
|
+
webComponentMode: {}
|
|
78883
77985
|
},
|
|
78884
77986
|
[],
|
|
78885
77987
|
[],
|
|
78886
77988
|
true
|
|
78887
77989
|
);
|
|
78888
77990
|
|
|
78889
|
-
|
|
78890
|
-
|
|
78891
|
-
var
|
|
78892
|
-
var root_1 = add_locations(template(`<fieldset><!> <div><!></div> <!></fieldset>`), Fieldset[FILENAME], [[31, 0, [[47, 4]]]]);
|
|
78893
|
-
var root_4$1 = add_locations(template(`<div class="qc-fieldset-invalid"><!></div>`), Fieldset[FILENAME], [[70, 4]]);
|
|
77991
|
+
var root_2$1 = template(`<legend><!></legend>`);
|
|
77992
|
+
var root_1 = template(`<fieldset><!> <div><!></div> <!></fieldset>`);
|
|
77993
|
+
var root_4$1 = template(`<div class="qc-fieldset-invalid"><!></div>`);
|
|
78894
77994
|
|
|
78895
77995
|
function Fieldset($$anchor, $$props) {
|
|
78896
|
-
check_target(new.target);
|
|
78897
77996
|
push($$props, true);
|
|
78898
77997
|
|
|
78899
|
-
const fieldset =
|
|
78900
|
-
validate_snippet_args(...arguments);
|
|
78901
|
-
|
|
77998
|
+
const fieldset = ($$anchor) => {
|
|
78902
77999
|
var fieldset_1 = root_1();
|
|
78903
78000
|
|
|
78904
78001
|
set_attribute(fieldset_1, 'aria-describedby', legendId);
|
|
78905
78002
|
|
|
78906
78003
|
fieldset_1.__change = function (...$$args) {
|
|
78907
|
-
apply(
|
|
78004
|
+
onchange()?.apply(this, $$args);
|
|
78908
78005
|
};
|
|
78909
78006
|
|
|
78910
78007
|
var node = child(fieldset_1);
|
|
@@ -78984,7 +78081,7 @@
|
|
|
78984
78081
|
});
|
|
78985
78082
|
|
|
78986
78083
|
append($$anchor, fieldset_1);
|
|
78987
|
-
}
|
|
78084
|
+
};
|
|
78988
78085
|
|
|
78989
78086
|
let legend = prop($$props, 'legend', 7),
|
|
78990
78087
|
name = prop($$props, 'name', 7),
|
|
@@ -79134,8 +78231,7 @@
|
|
|
79134
78231
|
set rootElement($$value) {
|
|
79135
78232
|
rootElement($$value);
|
|
79136
78233
|
flushSync();
|
|
79137
|
-
}
|
|
79138
|
-
...legacy_api()
|
|
78234
|
+
}
|
|
79139
78235
|
});
|
|
79140
78236
|
}
|
|
79141
78237
|
|
|
@@ -79165,14 +78261,9 @@
|
|
|
79165
78261
|
true
|
|
79166
78262
|
);
|
|
79167
78263
|
|
|
79168
|
-
ChoiceGroup[FILENAME] = 'src/sdg/components/ChoiceGroup/ChoiceGroup.svelte';
|
|
79169
|
-
|
|
79170
78264
|
function ChoiceGroup($$anchor, $$props) {
|
|
79171
|
-
check_target(new.target);
|
|
79172
78265
|
push($$props, true);
|
|
79173
78266
|
|
|
79174
|
-
var $$ownership_validator = create_ownership_validator($$props);
|
|
79175
|
-
|
|
79176
78267
|
let invalid = prop($$props, 'invalid', 15, false),
|
|
79177
78268
|
invalidText = prop($$props, 'invalidText', 7),
|
|
79178
78269
|
children = prop($$props, 'children', 7),
|
|
@@ -79182,23 +78273,21 @@
|
|
|
79182
78273
|
host = prop($$props, 'host', 7),
|
|
79183
78274
|
name = prop($$props, 'name', 7),
|
|
79184
78275
|
required = prop($$props, 'required', 7),
|
|
79185
|
-
restProps = rest_props(
|
|
79186
|
-
$$
|
|
79187
|
-
|
|
79188
|
-
|
|
79189
|
-
|
|
79190
|
-
|
|
79191
|
-
|
|
79192
|
-
|
|
79193
|
-
|
|
79194
|
-
|
|
79195
|
-
|
|
79196
|
-
|
|
79197
|
-
|
|
79198
|
-
|
|
79199
|
-
|
|
79200
|
-
'required'
|
|
79201
|
-
]);
|
|
78276
|
+
restProps = rest_props($$props, [
|
|
78277
|
+
'$$slots',
|
|
78278
|
+
'$$events',
|
|
78279
|
+
'$$legacy',
|
|
78280
|
+
'$$host',
|
|
78281
|
+
'invalid',
|
|
78282
|
+
'invalidText',
|
|
78283
|
+
'children',
|
|
78284
|
+
'compact',
|
|
78285
|
+
'selectionButton',
|
|
78286
|
+
'inline',
|
|
78287
|
+
'host',
|
|
78288
|
+
'name',
|
|
78289
|
+
'required'
|
|
78290
|
+
]);
|
|
79202
78291
|
|
|
79203
78292
|
let fieldsetElement = state(void 0);
|
|
79204
78293
|
|
|
@@ -79209,56 +78298,52 @@
|
|
|
79209
78298
|
};
|
|
79210
78299
|
|
|
79211
78300
|
user_effect(() => {
|
|
79212
|
-
(host() ? host() : get(fieldsetElement)).querySelectorAll('input, .qc-choicefield').forEach((input) =>
|
|
78301
|
+
(host() ? host() : get(fieldsetElement)).querySelectorAll('input, .qc-choicefield').forEach((input) => updateChoiceInput(input, required(), invalid(), compact(), selectionButton(), inline(), name()));
|
|
79213
78302
|
});
|
|
79214
78303
|
|
|
79215
|
-
|
|
79216
|
-
|
|
79217
|
-
|
|
79218
|
-
|
|
79219
|
-
{
|
|
79220
|
-
get required() {
|
|
79221
|
-
return required();
|
|
79222
|
-
},
|
|
79223
|
-
get compact() {
|
|
79224
|
-
return compact();
|
|
79225
|
-
},
|
|
79226
|
-
get selectionButton() {
|
|
79227
|
-
return selectionButton();
|
|
79228
|
-
},
|
|
79229
|
-
get inline() {
|
|
79230
|
-
return inline();
|
|
79231
|
-
},
|
|
79232
|
-
get invalidText() {
|
|
79233
|
-
return invalidText();
|
|
79234
|
-
},
|
|
79235
|
-
onchange
|
|
78304
|
+
Fieldset($$anchor, spread_props(
|
|
78305
|
+
{
|
|
78306
|
+
get required() {
|
|
78307
|
+
return required();
|
|
79236
78308
|
},
|
|
79237
|
-
()
|
|
79238
|
-
|
|
79239
|
-
|
|
79240
|
-
|
|
79241
|
-
|
|
79242
|
-
|
|
79243
|
-
|
|
79244
|
-
|
|
79245
|
-
|
|
79246
|
-
|
|
79247
|
-
|
|
79248
|
-
|
|
79249
|
-
|
|
79250
|
-
|
|
79251
|
-
|
|
79252
|
-
|
|
79253
|
-
|
|
78309
|
+
get compact() {
|
|
78310
|
+
return compact();
|
|
78311
|
+
},
|
|
78312
|
+
get selectionButton() {
|
|
78313
|
+
return selectionButton();
|
|
78314
|
+
},
|
|
78315
|
+
get inline() {
|
|
78316
|
+
return inline();
|
|
78317
|
+
},
|
|
78318
|
+
get invalidText() {
|
|
78319
|
+
return invalidText();
|
|
78320
|
+
},
|
|
78321
|
+
onchange
|
|
78322
|
+
},
|
|
78323
|
+
() => restProps,
|
|
78324
|
+
{
|
|
78325
|
+
get invalid() {
|
|
78326
|
+
return invalid();
|
|
78327
|
+
},
|
|
78328
|
+
set invalid($$value) {
|
|
78329
|
+
invalid($$value);
|
|
78330
|
+
},
|
|
78331
|
+
get rootElement() {
|
|
78332
|
+
return get(fieldsetElement);
|
|
78333
|
+
},
|
|
78334
|
+
set rootElement($$value) {
|
|
78335
|
+
set(fieldsetElement, $$value, true);
|
|
78336
|
+
},
|
|
78337
|
+
children: ($$anchor, $$slotProps) => {
|
|
78338
|
+
var fragment_1 = comment();
|
|
78339
|
+
var node = first_child(fragment_1);
|
|
79254
78340
|
|
|
79255
|
-
|
|
79256
|
-
|
|
79257
|
-
|
|
79258
|
-
|
|
79259
|
-
|
|
79260
|
-
|
|
79261
|
-
}
|
|
78341
|
+
snippet(node, children);
|
|
78342
|
+
append($$anchor, fragment_1);
|
|
78343
|
+
},
|
|
78344
|
+
$$slots: { default: true }
|
|
78345
|
+
}
|
|
78346
|
+
));
|
|
79262
78347
|
|
|
79263
78348
|
return pop({
|
|
79264
78349
|
get invalid() {
|
|
@@ -79323,8 +78408,7 @@
|
|
|
79323
78408
|
set required($$value) {
|
|
79324
78409
|
required($$value);
|
|
79325
78410
|
flushSync();
|
|
79326
|
-
}
|
|
79327
|
-
...legacy_api()
|
|
78411
|
+
}
|
|
79328
78412
|
});
|
|
79329
78413
|
}
|
|
79330
78414
|
|
|
@@ -79346,27 +78430,24 @@
|
|
|
79346
78430
|
true
|
|
79347
78431
|
);
|
|
79348
78432
|
|
|
79349
|
-
|
|
79350
|
-
|
|
79351
|
-
var
|
|
79352
|
-
var
|
|
79353
|
-
var
|
|
79354
|
-
var
|
|
79355
|
-
var
|
|
79356
|
-
var
|
|
79357
|
-
var
|
|
79358
|
-
var
|
|
79359
|
-
var
|
|
79360
|
-
var root_10 = add_locations(template(`<!> <!>`, 1), TextFieldDemo[FILENAME], []);
|
|
79361
|
-
var root = add_locations(template(`<!> <div class="attributes qc-hash-f0iu2z"><!> <!> <!> <!> <!> <!> <!> <!></div> <link rel="stylesheet">`, 1), TextFieldDemo[FILENAME], [[68, 0], [142, 0]]);
|
|
78433
|
+
var root_2 = template(`<label><input type="checkbox"> Multiligne</label>`);
|
|
78434
|
+
var root_4 = template(`<label><input type="radio" name="size"> </label>`);
|
|
78435
|
+
var root_5 = template(`<label><input type="checkbox"> Required</label>`);
|
|
78436
|
+
var root_6 = template(`<label><input type="checkbox"> Invalid</label>`);
|
|
78437
|
+
var root_7 = template(`<input type="text">`);
|
|
78438
|
+
var root_8 = template(`<input type="text">`);
|
|
78439
|
+
var root_9 = template(`<input type="text">`);
|
|
78440
|
+
var root_11 = template(`<input type="text">`);
|
|
78441
|
+
var root_12 = template(`<input type="number">`);
|
|
78442
|
+
var root_10 = template(`<!> <!>`, 1);
|
|
78443
|
+
var root = template(`<!> <div class="attributes qc-hash-f0iu2z"><!> <!> <!> <!> <!> <!> <!> <!></div> <link rel="stylesheet">`, 1);
|
|
79362
78444
|
|
|
79363
78445
|
const $$css = {
|
|
79364
78446
|
hash: 'qc-hash-f0iu2z',
|
|
79365
|
-
code: '
|
|
78447
|
+
code: '.attributes.qc-hash-f0iu2z {display:flex;flex-direction:column;flex-wrap:wrap;gap:0 24px;max-height:352px;}'
|
|
79366
78448
|
};
|
|
79367
78449
|
|
|
79368
78450
|
function TextFieldDemo($$anchor, $$props) {
|
|
79369
|
-
check_target(new.target);
|
|
79370
78451
|
push($$props, true);
|
|
79371
78452
|
append_styles$1($$anchor, $$css);
|
|
79372
78453
|
|
|
@@ -79388,14 +78469,8 @@
|
|
|
79388
78469
|
inputType = state("text"),
|
|
79389
78470
|
multiligne = state(false);
|
|
79390
78471
|
|
|
79391
|
-
inspect(() => [
|
|
79392
|
-
get(multiligne),
|
|
79393
|
-
get(inputTag),
|
|
79394
|
-
get(inputType)
|
|
79395
|
-
]);
|
|
79396
|
-
|
|
79397
78472
|
user_effect(() => {
|
|
79398
|
-
console.log(
|
|
78473
|
+
console.log(get(multiligne), get(inputTag), get(inputType));
|
|
79399
78474
|
|
|
79400
78475
|
if (get(multiligne)) {
|
|
79401
78476
|
set(inputTag, "textarea");
|
|
@@ -79433,33 +78508,23 @@
|
|
|
79433
78508
|
get maxlength() {
|
|
79434
78509
|
return get(expression_1);
|
|
79435
78510
|
},
|
|
79436
|
-
children:
|
|
78511
|
+
children: ($$anchor, $$slotProps) => {
|
|
79437
78512
|
var fragment_1 = comment();
|
|
79438
78513
|
var node_1 = first_child(fragment_1);
|
|
79439
78514
|
|
|
79440
|
-
|
|
79441
|
-
|
|
79442
|
-
|
|
79443
|
-
|
|
79444
|
-
|
|
79445
|
-
|
|
79446
|
-
|
|
79447
|
-
|
|
79448
|
-
|
|
79449
|
-
|
|
79450
|
-
template_effect(() => attributes = set_attributes($$element, attributes, {
|
|
79451
|
-
inputType: get(inputType),
|
|
79452
|
-
value: value(),
|
|
79453
|
-
name: 'textfield-demo',
|
|
79454
|
-
placeholder: placeholder()
|
|
79455
|
-
}));
|
|
79456
|
-
},
|
|
79457
|
-
undefined,
|
|
79458
|
-
[58, 4]
|
|
79459
|
-
);
|
|
78515
|
+
element(node_1, () => get(inputTag), false, ($$element, $$anchor) => {
|
|
78516
|
+
let attributes;
|
|
78517
|
+
|
|
78518
|
+
template_effect(() => attributes = set_attributes($$element, attributes, {
|
|
78519
|
+
inputType: get(inputType),
|
|
78520
|
+
value: value(),
|
|
78521
|
+
name: 'textfield-demo',
|
|
78522
|
+
placeholder: placeholder()
|
|
78523
|
+
}));
|
|
78524
|
+
});
|
|
79460
78525
|
|
|
79461
78526
|
append($$anchor, fragment_1);
|
|
79462
|
-
}
|
|
78527
|
+
},
|
|
79463
78528
|
$$slots: { default: true }
|
|
79464
78529
|
});
|
|
79465
78530
|
|
|
@@ -79468,7 +78533,7 @@
|
|
|
79468
78533
|
|
|
79469
78534
|
Checkbox(node_2, {
|
|
79470
78535
|
compact: true,
|
|
79471
|
-
children:
|
|
78536
|
+
children: ($$anchor, $$slotProps) => {
|
|
79472
78537
|
var label_1 = root_2();
|
|
79473
78538
|
var input = child(label_1);
|
|
79474
78539
|
|
|
@@ -79477,7 +78542,7 @@
|
|
|
79477
78542
|
reset(label_1);
|
|
79478
78543
|
bind_checked(input, () => get(multiligne), ($$value) => set(multiligne, $$value));
|
|
79479
78544
|
append($$anchor, label_1);
|
|
79480
|
-
}
|
|
78545
|
+
},
|
|
79481
78546
|
$$slots: { default: true }
|
|
79482
78547
|
});
|
|
79483
78548
|
|
|
@@ -79487,7 +78552,7 @@
|
|
|
79487
78552
|
legend: 'Size',
|
|
79488
78553
|
selectionButton: true,
|
|
79489
78554
|
inline: true,
|
|
79490
|
-
children:
|
|
78555
|
+
children: ($$anchor, $$slotProps) => {
|
|
79491
78556
|
var fragment_2 = comment();
|
|
79492
78557
|
var node_4 = first_child(fragment_2);
|
|
79493
78558
|
|
|
@@ -79515,7 +78580,6 @@
|
|
|
79515
78580
|
[],
|
|
79516
78581
|
input_1,
|
|
79517
78582
|
() => {
|
|
79518
|
-
_size;
|
|
79519
78583
|
return size();
|
|
79520
78584
|
},
|
|
79521
78585
|
size
|
|
@@ -79525,7 +78589,7 @@
|
|
|
79525
78589
|
});
|
|
79526
78590
|
|
|
79527
78591
|
append($$anchor, fragment_2);
|
|
79528
|
-
}
|
|
78592
|
+
},
|
|
79529
78593
|
$$slots: { default: true }
|
|
79530
78594
|
});
|
|
79531
78595
|
|
|
@@ -79533,7 +78597,7 @@
|
|
|
79533
78597
|
|
|
79534
78598
|
Checkbox(node_5, {
|
|
79535
78599
|
compact: true,
|
|
79536
|
-
children:
|
|
78600
|
+
children: ($$anchor, $$slotProps) => {
|
|
79537
78601
|
var label_3 = root_5();
|
|
79538
78602
|
var input_2 = child(label_3);
|
|
79539
78603
|
|
|
@@ -79542,7 +78606,7 @@
|
|
|
79542
78606
|
reset(label_3);
|
|
79543
78607
|
bind_checked(input_2, required);
|
|
79544
78608
|
append($$anchor, label_3);
|
|
79545
|
-
}
|
|
78609
|
+
},
|
|
79546
78610
|
$$slots: { default: true }
|
|
79547
78611
|
});
|
|
79548
78612
|
|
|
@@ -79550,7 +78614,7 @@
|
|
|
79550
78614
|
|
|
79551
78615
|
Checkbox(node_6, {
|
|
79552
78616
|
compact: true,
|
|
79553
|
-
children:
|
|
78617
|
+
children: ($$anchor, $$slotProps) => {
|
|
79554
78618
|
var label_4 = root_6();
|
|
79555
78619
|
var input_3 = child(label_4);
|
|
79556
78620
|
|
|
@@ -79559,7 +78623,7 @@
|
|
|
79559
78623
|
reset(label_4);
|
|
79560
78624
|
bind_checked(input_3, invalid);
|
|
79561
78625
|
append($$anchor, label_4);
|
|
79562
|
-
}
|
|
78626
|
+
},
|
|
79563
78627
|
$$slots: { default: true }
|
|
79564
78628
|
});
|
|
79565
78629
|
|
|
@@ -79567,13 +78631,13 @@
|
|
|
79567
78631
|
|
|
79568
78632
|
TextField(node_7, {
|
|
79569
78633
|
label: 'placeholder',
|
|
79570
|
-
children:
|
|
78634
|
+
children: ($$anchor, $$slotProps) => {
|
|
79571
78635
|
var input_4 = root_7();
|
|
79572
78636
|
|
|
79573
78637
|
remove_input_defaults(input_4);
|
|
79574
78638
|
bind_value(input_4, placeholder);
|
|
79575
78639
|
append($$anchor, input_4);
|
|
79576
|
-
}
|
|
78640
|
+
},
|
|
79577
78641
|
$$slots: { default: true }
|
|
79578
78642
|
});
|
|
79579
78643
|
|
|
@@ -79581,13 +78645,13 @@
|
|
|
79581
78645
|
|
|
79582
78646
|
TextField(node_8, {
|
|
79583
78647
|
label: 'Libellé du champ',
|
|
79584
|
-
children:
|
|
78648
|
+
children: ($$anchor, $$slotProps) => {
|
|
79585
78649
|
var input_5 = root_8();
|
|
79586
78650
|
|
|
79587
78651
|
remove_input_defaults(input_5);
|
|
79588
78652
|
bind_value(input_5, label);
|
|
79589
78653
|
append($$anchor, input_5);
|
|
79590
|
-
}
|
|
78654
|
+
},
|
|
79591
78655
|
$$slots: { default: true }
|
|
79592
78656
|
});
|
|
79593
78657
|
|
|
@@ -79595,13 +78659,13 @@
|
|
|
79595
78659
|
|
|
79596
78660
|
TextField(node_9, {
|
|
79597
78661
|
label: 'Message d\'erreur',
|
|
79598
|
-
children:
|
|
78662
|
+
children: ($$anchor, $$slotProps) => {
|
|
79599
78663
|
var input_6 = root_9();
|
|
79600
78664
|
|
|
79601
78665
|
remove_input_defaults(input_6);
|
|
79602
78666
|
bind_value(input_6, invalidText);
|
|
79603
78667
|
append($$anchor, input_6);
|
|
79604
|
-
}
|
|
78668
|
+
},
|
|
79605
78669
|
$$slots: { default: true }
|
|
79606
78670
|
});
|
|
79607
78671
|
|
|
@@ -79615,13 +78679,13 @@
|
|
|
79615
78679
|
TextField(node_11, {
|
|
79616
78680
|
label: 'Description',
|
|
79617
78681
|
size: 'lg',
|
|
79618
|
-
children:
|
|
78682
|
+
children: ($$anchor, $$slotProps) => {
|
|
79619
78683
|
var input_7 = root_11();
|
|
79620
78684
|
|
|
79621
78685
|
remove_input_defaults(input_7);
|
|
79622
78686
|
bind_value(input_7, description);
|
|
79623
78687
|
append($$anchor, input_7);
|
|
79624
|
-
}
|
|
78688
|
+
},
|
|
79625
78689
|
$$slots: { default: true }
|
|
79626
78690
|
});
|
|
79627
78691
|
|
|
@@ -79630,13 +78694,13 @@
|
|
|
79630
78694
|
TextField(node_12, {
|
|
79631
78695
|
label: 'Maxlength',
|
|
79632
78696
|
size: 'xs',
|
|
79633
|
-
children:
|
|
78697
|
+
children: ($$anchor, $$slotProps) => {
|
|
79634
78698
|
var input_8 = root_12();
|
|
79635
78699
|
|
|
79636
78700
|
remove_input_defaults(input_8);
|
|
79637
78701
|
bind_value(input_8, maxlength);
|
|
79638
78702
|
append($$anchor, input_8);
|
|
79639
|
-
}
|
|
78703
|
+
},
|
|
79640
78704
|
$$slots: { default: true }
|
|
79641
78705
|
});
|
|
79642
78706
|
|
|
@@ -79737,8 +78801,7 @@
|
|
|
79737
78801
|
set invalidAtSubmit($$value = false) {
|
|
79738
78802
|
invalidAtSubmit($$value);
|
|
79739
78803
|
flushSync();
|
|
79740
|
-
}
|
|
79741
|
-
...legacy_api()
|
|
78804
|
+
}
|
|
79742
78805
|
});
|
|
79743
78806
|
}
|
|
79744
78807
|
|
|
@@ -79767,7 +78830,7 @@
|
|
|
79767
78830
|
));
|
|
79768
78831
|
|
|
79769
78832
|
if (document.getElementById("version")) {
|
|
79770
|
-
document.getElementById("version").textContent = `v1.4.
|
|
78833
|
+
document.getElementById("version").textContent = `v1.4.5`;
|
|
79771
78834
|
}
|
|
79772
78835
|
|
|
79773
78836
|
// Show maskable "general alert" component
|