qc-trousse-sdg 1.4.1 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/README.md +21 -0
  2. package/dist/css/qc-sdg-no-grid.min.css +1 -1
  3. package/dist/css/qc-sdg.min.css +1 -1
  4. package/dist/js/qc-sdg.min.js +1 -1
  5. package/index.html +6 -0
  6. package/package.json +2 -2
  7. package/plugins/buildSvelteTests.js +36 -0
  8. package/public/css/qc-sdg-no-grid.css +42 -27
  9. package/public/css/qc-sdg.css +42 -27
  10. package/public/index.html +29 -4
  11. package/public/js/qc-doc-sdg.js +2888 -4618
  12. package/public/js/qc-sdg.js +759 -1796
  13. package/rollup.config.js +5 -0
  14. package/src/doc/components/TopNav.svelte +2 -2
  15. package/src/sdg/bases/Icon/Icon.svelte +1 -0
  16. package/src/sdg/bases/Icon/IconDoc.ejs +1 -1
  17. package/src/sdg/bases/Icon/_icon.html +1 -1
  18. package/src/sdg/components/Button/Test/{buttonTest.html → buttonBaselineTest.html} +3 -3
  19. package/src/sdg/components/Button/_button.html +28 -3
  20. package/src/sdg/components/Button/_button.scss +16 -6
  21. package/src/sdg/components/ChoiceGroup/_selectionButton.scss +5 -0
  22. package/src/sdg/components/DropdownList/DropdownListButton/_dropdownListButton.scss +1 -1
  23. package/src/sdg/components/DropdownList/_dropdownList.scss +4 -0
  24. package/src/sdg/components/Label/_label.scss +1 -1
  25. package/src/sdg/components/TextField/_textField.scss +3 -3
  26. package/src/sdg/components/ToTop/_toTop.scss +1 -0
  27. package/src/sdg/qc-sdg-test.js +1 -1
  28. package/src/sdg/scss/settings/_base.scss +0 -6
  29. package/tests/buildSvelteTestsIgnore.json +4 -0
  30. package/tests/{button.spec.ts → button-baseline.spec.ts} +2 -2
  31. package/tests/choice-group-baseline.spec.ts +20 -0
  32. package/tests/choice-group-svelte.spec.ts +20 -0
  33. package/tests/{icon.spec.ts → icon-baseline.spec.ts} +1 -9
  34. package/tests/icon-svelte.spec.ts +11 -0
  35. package/tests/piv-header-baseline.spec.ts +11 -0
  36. package/tests/piv-header-svelte.spec.ts +11 -0
  37. package/tests/{textfield.spec.ts → textfield-baseline.spec.ts} +1 -10
  38. package/tests/textfield-svelte.spec.ts +1 -1
  39. package/tests/toggle-switch-baseline.spec.ts +11 -0
  40. package/tests/toggle-switch-svelte.spec.ts +11 -0
  41. package/tests/choice-group.spec.ts +0 -36
  42. package/tests/pivHeader.spec.ts +0 -22
  43. package/tests/toggle-switch.spec.ts +0 -20
  44. /package/src/sdg/bases/Icon/Test/{IconEmbeddedTest.html → IconSvelteTest.html} +0 -0
  45. /package/src/sdg/bases/Icon/Test/{iconTest.html → iconBaselineTest.html} +0 -0
  46. /package/src/sdg/components/ChoiceGroup/Test/{checkboxTest.html → checkboxBaselineTest.html} +0 -0
  47. /package/src/sdg/components/ChoiceGroup/Test/{checkboxEmbeddedTest.html → checkboxSvelteTest.html} +0 -0
  48. /package/src/sdg/components/ChoiceGroup/Test/{radiosTest.html → radiosBaselineTest.html} +0 -0
  49. /package/src/sdg/components/ChoiceGroup/Test/{radiosEmbeddedTest.html → radiosSvelteTest.html} +0 -0
  50. /package/src/sdg/components/DropdownList/Test/{DropdownListEmbeddedTest.svelte → DropdownListSvelteTest.svelte} +0 -0
  51. /package/src/sdg/components/DropdownList/Test/{dropdownListEmbeddedTest.html → dropdownListSvelteTest.html} +0 -0
  52. /package/src/sdg/components/PivHeader/Test/{pivHeaderTest.html → pivHeaderBaselineTest.html} +0 -0
  53. /package/src/sdg/components/PivHeader/Test/{pivHeaderEmbeddedTest.html → pivHeaderSvelteTest.html} +0 -0
  54. /package/src/sdg/components/TextField/Test/{textFieldTest.html → textFieldBaselineTest.html} +0 -0
  55. /package/src/sdg/components/TextField/Test/{textFieldEmbeddedTest.html → textFieldSvelteTest.html} +0 -0
  56. /package/src/sdg/components/ToggleSwitch/Test/{toggleSwitchTest.html → toggleSwitchBaselineTest.html} +0 -0
  57. /package/src/sdg/components/ToggleSwitch/Test/{toggleSwitchEmbeddedTest.html → toggleSwitchSvelteTest.html} +0 -0
  58. /package/tests/{dropdown-list.spec.ts → dropdown-list-baseline.spec.ts} +0 -0
@@ -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;
@@ -156,43 +123,6 @@
156
123
  /* This file is generated by scripts/process-messages/index.js. Do not edit! */
157
124
 
158
125
 
159
- /**
160
- * Calling `%method%` on a component instance (of %component%) is no longer valid in Svelte 5
161
- * @param {string} method
162
- * @param {string} component
163
- * @returns {never}
164
- */
165
- function component_api_changed(method, component) {
166
- {
167
- throw new Error(`https://svelte.dev/e/component_api_changed`);
168
- }
169
- }
170
-
171
- /**
172
- * 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.
173
- * @param {string} component
174
- * @param {string} name
175
- * @returns {never}
176
- */
177
- function component_api_invalid_new(component, name) {
178
- {
179
- throw new Error(`https://svelte.dev/e/component_api_invalid_new`);
180
- }
181
- }
182
-
183
- /**
184
- * Keyed each block has duplicate key `%value%` at indexes %a% and %b%
185
- * @param {string} a
186
- * @param {string} b
187
- * @param {string | undefined | null} [value]
188
- * @returns {never}
189
- */
190
- function each_key_duplicate(a, b, value) {
191
- {
192
- throw new Error(`https://svelte.dev/e/each_key_duplicate`);
193
- }
194
- }
195
-
196
126
  /**
197
127
  * `%rune%` cannot be used inside an effect cleanup function
198
128
  * @param {string} rune
@@ -289,39 +219,6 @@
289
219
  /* This file is generated by scripts/process-messages/index.js. Do not edit! */
290
220
 
291
221
 
292
- /**
293
- * 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.
294
- * @param {string} property
295
- * @param {string} location
296
- */
297
- function assignment_value_stale(property, location) {
298
- {
299
- console.warn(`https://svelte.dev/e/assignment_value_stale`);
300
- }
301
- }
302
-
303
- /**
304
- * `%binding%` (%location%) is binding to a non-reactive property
305
- * @param {string} binding
306
- * @param {string | undefined | null} [location]
307
- */
308
- function binding_property_non_reactive(binding, location) {
309
- {
310
- console.warn(`https://svelte.dev/e/binding_property_non_reactive`);
311
- }
312
- }
313
-
314
- /**
315
- * %handler% should be a function. Did you mean to %suggestion%?
316
- * @param {string} handler
317
- * @param {string} suggestion
318
- */
319
- function event_handler_invalid(handler, suggestion) {
320
- {
321
- console.warn(`https://svelte.dev/e/event_handler_invalid`);
322
- }
323
- }
324
-
325
222
  /**
326
223
  * Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near %location%
327
224
  * @param {string | undefined | null} [location]
@@ -332,42 +229,6 @@
332
229
  }
333
230
  }
334
231
 
335
- /**
336
- * %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%={...}`)
337
- * @param {string} parent
338
- * @param {string} prop
339
- * @param {string} child
340
- * @param {string} owner
341
- */
342
- function ownership_invalid_binding(parent, prop, child, owner) {
343
- {
344
- console.warn(`https://svelte.dev/e/ownership_invalid_binding`);
345
- }
346
- }
347
-
348
- /**
349
- * Mutating unbound props (`%name%`, at %location%) is strongly discouraged. Consider using `bind:%prop%={...}` in %parent% (or using a callback) instead
350
- * @param {string} name
351
- * @param {string} location
352
- * @param {string} prop
353
- * @param {string} parent
354
- */
355
- function ownership_invalid_mutation(name, location, prop, parent) {
356
- {
357
- console.warn(`https://svelte.dev/e/ownership_invalid_mutation`);
358
- }
359
- }
360
-
361
- /**
362
- * Reactive `$state(...)` proxies and the values they proxy have different identities. Because of this, comparisons with `%operator%` will produce unexpected results
363
- * @param {string} operator
364
- */
365
- function state_proxy_equality_mismatch(operator) {
366
- {
367
- console.warn(`https://svelte.dev/e/state_proxy_equality_mismatch`);
368
- }
369
- }
370
-
371
232
  /** @import { TemplateNode } from '#client' */
372
233
 
373
234
 
@@ -456,19 +317,6 @@
456
317
  }
457
318
  }
458
319
 
459
- /* This file is generated by scripts/process-messages/index.js. Do not edit! */
460
-
461
-
462
- /**
463
- * `<svelte:element this="%tag%">` is a void element — it cannot have content
464
- * @param {string} tag
465
- */
466
- function dynamic_void_element_content(tag) {
467
- {
468
- console.warn(`https://svelte.dev/e/dynamic_void_element_content`);
469
- }
470
- }
471
-
472
320
  /** @import { Snapshot } from './types' */
473
321
 
474
322
  /**
@@ -848,45 +696,6 @@
848
696
  set(signal, signal.v + d);
849
697
  }
850
698
 
851
- /**
852
- * @param {any} value
853
- */
854
- function get_proxied_value(value) {
855
- try {
856
- if (value !== null && typeof value === 'object' && STATE_SYMBOL in value) {
857
- return value[STATE_SYMBOL];
858
- }
859
- } catch {
860
- // the above if check can throw an error if the value in question
861
- // is the contentWindow of an iframe on another domain, in which
862
- // case we want to just return the value (because it's definitely
863
- // not a proxied value) so we don't break any JavaScript interacting
864
- // with that iframe (such as various payment companies client side
865
- // JavaScript libraries interacting with their iframes on the same
866
- // domain)
867
- }
868
-
869
- return value;
870
- }
871
-
872
- /**
873
- * @param {any} a
874
- * @param {any} b
875
- * @param {boolean} equal
876
- * @returns {boolean}
877
- */
878
- function strict_equals(a, b, equal = true) {
879
- // try-catch needed because this tries to read properties of `a` and `b`,
880
- // which could be disallowed for example in a secure context
881
- try {
882
- if ((a === b) !== (get_proxied_value(a) === get_proxied_value(b))) {
883
- state_proxy_equality_mismatch(equal ? '===' : '!==');
884
- }
885
- } catch {}
886
-
887
- return (a === b) === equal;
888
- }
889
-
890
699
  /** @import { TemplateNode } from '#client' */
891
700
 
892
701
  // export these for reference in the compiled code, making global name deduplication unnecessary
@@ -2727,23 +2536,6 @@
2727
2536
  component_context = context;
2728
2537
  }
2729
2538
 
2730
- /**
2731
- * The current component function. Different from current component context:
2732
- * ```html
2733
- * <!-- App.svelte -->
2734
- * <Foo>
2735
- * <Bar /> <!-- context == Foo.svelte, function == App.svelte -->
2736
- * </Foo>
2737
- * ```
2738
- * @type {ComponentContext['function']}
2739
- */
2740
- let dev_current_component_function = null;
2741
-
2742
- /** @param {ComponentContext['function']} fn */
2743
- function set_dev_current_component_function(fn) {
2744
- dev_current_component_function = fn;
2745
- }
2746
-
2747
2539
  /**
2748
2540
  * Retrieves the context that belongs to the closest parent component with the specified `key`.
2749
2541
  * Must be called during component initialisation.
@@ -2868,33 +2660,6 @@
2868
2660
  return null;
2869
2661
  }
2870
2662
 
2871
- const VOID_ELEMENT_NAMES = [
2872
- 'area',
2873
- 'base',
2874
- 'br',
2875
- 'col',
2876
- 'command',
2877
- 'embed',
2878
- 'hr',
2879
- 'img',
2880
- 'input',
2881
- 'keygen',
2882
- 'link',
2883
- 'meta',
2884
- 'param',
2885
- 'source',
2886
- 'track',
2887
- 'wbr'
2888
- ];
2889
-
2890
- /**
2891
- * Returns `true` if `name` is of a void element
2892
- * @param {string} name
2893
- */
2894
- function is_void(name) {
2895
- return VOID_ELEMENT_NAMES.includes(name) || name.toLowerCase() === '!doctype';
2896
- }
2897
-
2898
2663
  /**
2899
2664
  * @param {string} name
2900
2665
  */
@@ -2994,105 +2759,6 @@
2994
2759
  return RAW_TEXT_ELEMENTS.includes(/** @type {RAW_TEXT_ELEMENTS[number]} */ (name));
2995
2760
  }
2996
2761
 
2997
- /**
2998
- * Prevent devtools trying to make `location` a clickable link by inserting a zero-width space
2999
- * @template {string | undefined} T
3000
- * @param {T} location
3001
- * @returns {T};
3002
- */
3003
- function sanitize_location(location) {
3004
- return /** @type {T} */ (location?.replace(/\//g, '/\u200b'));
3005
- }
3006
-
3007
- /**
3008
- *
3009
- * @param {any} a
3010
- * @param {any} b
3011
- * @param {string} property
3012
- * @param {string} location
3013
- */
3014
- function compare(a, b, property, location) {
3015
- if (a !== b) {
3016
- assignment_value_stale(property, /** @type {string} */ (sanitize_location(location)));
3017
- }
3018
-
3019
- return a;
3020
- }
3021
-
3022
- /**
3023
- * @param {any} object
3024
- * @param {string} property
3025
- * @param {any} value
3026
- * @param {string} location
3027
- */
3028
- function assign(object, property, value, location) {
3029
- return compare(
3030
- (object[property] = value),
3031
- untrack(() => object[property]),
3032
- property,
3033
- location
3034
- );
3035
- }
3036
-
3037
- /** @import { SourceLocation } from '#shared' */
3038
-
3039
- /**
3040
- * @param {any} fn
3041
- * @param {string} filename
3042
- * @param {SourceLocation[]} locations
3043
- * @returns {any}
3044
- */
3045
- function add_locations(fn, filename, locations) {
3046
- return (/** @type {any[]} */ ...args) => {
3047
- const dom = fn(...args);
3048
-
3049
- var node = hydrating ? dom : dom.nodeType === 11 ? dom.firstChild : dom;
3050
- assign_locations(node, filename, locations);
3051
-
3052
- return dom;
3053
- };
3054
- }
3055
-
3056
- /**
3057
- * @param {Element} element
3058
- * @param {string} filename
3059
- * @param {SourceLocation} location
3060
- */
3061
- function assign_location(element, filename, location) {
3062
- // @ts-expect-error
3063
- element.__svelte_meta = {
3064
- loc: { file: filename, line: location[0], column: location[1] }
3065
- };
3066
-
3067
- if (location[2]) {
3068
- assign_locations(element.firstChild, filename, location[2]);
3069
- }
3070
- }
3071
-
3072
- /**
3073
- * @param {Node | null} node
3074
- * @param {string} filename
3075
- * @param {SourceLocation[]} locations
3076
- */
3077
- function assign_locations(node, filename, locations) {
3078
- var i = 0;
3079
- var depth = 0;
3080
-
3081
- while (node && i < locations.length) {
3082
- if (hydrating && node.nodeType === 8) {
3083
- var comment = /** @type {Comment} */ (node);
3084
- if (comment.data === HYDRATION_START || comment.data === HYDRATION_START_ELSE) depth += 1;
3085
- else if (comment.data[0] === HYDRATION_END) depth -= 1;
3086
- }
3087
-
3088
- if (depth === 0 && node.nodeType === 1) {
3089
- assign_location(/** @type {Element} */ (node), filename, locations[i++]);
3090
- }
3091
-
3092
- node = node.nextSibling;
3093
- }
3094
- }
3095
-
3096
2762
  /**
3097
2763
  * @param {HTMLElement} dom
3098
2764
  * @param {boolean} value
@@ -3405,48 +3071,6 @@
3405
3071
  }
3406
3072
  }
3407
3073
 
3408
- /**
3409
- * In dev, warn if an event handler is not a function, as it means the
3410
- * user probably called the handler or forgot to add a `() =>`
3411
- * @param {() => (event: Event, ...args: any) => void} thunk
3412
- * @param {EventTarget} element
3413
- * @param {[Event, ...any]} args
3414
- * @param {any} component
3415
- * @param {[number, number]} [loc]
3416
- * @param {boolean} [remove_parens]
3417
- */
3418
- function apply(
3419
- thunk,
3420
- element,
3421
- args,
3422
- component,
3423
- loc,
3424
- has_side_effects = false,
3425
- remove_parens = false
3426
- ) {
3427
- let handler;
3428
- let error;
3429
-
3430
- try {
3431
- handler = thunk();
3432
- } catch (e) {
3433
- error = e;
3434
- }
3435
-
3436
- if (typeof handler !== 'function' && (has_side_effects || handler != null || error)) {
3437
- component?.[FILENAME];
3438
- const phase = args[0]?.eventPhase < Event.BUBBLING_PHASE ? 'capture' : '';
3439
- args[0]?.type + phase;
3440
-
3441
- event_handler_invalid();
3442
-
3443
- if (error) {
3444
- throw error;
3445
- }
3446
- }
3447
- handler?.apply(element, args);
3448
- }
3449
-
3450
3074
  /** @param {string} html */
3451
3075
  function create_fragment_from_html(html) {
3452
3076
  var elem = document.createElement('template');
@@ -3810,119 +3434,6 @@
3810
3434
  return Promise.resolve();
3811
3435
  }
3812
3436
 
3813
- /** @typedef {{ file: string, line: number, column: number }} Location */
3814
-
3815
-
3816
- /**
3817
- * Sets up a validator that
3818
- * - traverses the path of a prop to find out if it is allowed to be mutated
3819
- * - checks that the binding chain is not interrupted
3820
- * @param {Record<string, any>} props
3821
- */
3822
- function create_ownership_validator(props) {
3823
- const component = component_context?.function;
3824
- const parent = component_context?.p?.function;
3825
-
3826
- return {
3827
- /**
3828
- * @param {string} prop
3829
- * @param {any[]} path
3830
- * @param {any} result
3831
- * @param {number} line
3832
- * @param {number} column
3833
- */
3834
- mutation: (prop, path, result, line, column) => {
3835
- const name = path[0];
3836
- if (is_bound_or_unset(props, name) || !parent) {
3837
- return result;
3838
- }
3839
-
3840
- /** @type {any} */
3841
- let value = props;
3842
-
3843
- for (let i = 0; i < path.length - 1; i++) {
3844
- value = value[path[i]];
3845
- if (!value?.[STATE_SYMBOL]) {
3846
- return result;
3847
- }
3848
- }
3849
-
3850
- const location = sanitize_location(`${component[FILENAME]}:${line}:${column}`);
3851
-
3852
- ownership_invalid_mutation(name, location, prop, parent[FILENAME]);
3853
-
3854
- return result;
3855
- },
3856
- /**
3857
- * @param {any} key
3858
- * @param {any} child_component
3859
- * @param {() => any} value
3860
- */
3861
- binding: (key, child_component, value) => {
3862
- if (!is_bound_or_unset(props, key) && parent && value()?.[STATE_SYMBOL]) {
3863
- ownership_invalid_binding(
3864
- component[FILENAME],
3865
- key,
3866
- child_component[FILENAME],
3867
- parent[FILENAME]
3868
- );
3869
- }
3870
- }
3871
- };
3872
- }
3873
-
3874
- /**
3875
- * @param {Record<string, any>} props
3876
- * @param {string} prop_name
3877
- */
3878
- function is_bound_or_unset(props, prop_name) {
3879
- // Can be the case when someone does `mount(Component, props)` with `let props = $state({...})`
3880
- // or `createClassComponent(Component, props)`
3881
- const is_entry_props = STATE_SYMBOL in props || LEGACY_PROPS in props;
3882
- return (
3883
- !!get_descriptor(props, prop_name)?.set ||
3884
- (is_entry_props && prop_name in props) ||
3885
- !(prop_name in props)
3886
- );
3887
- }
3888
-
3889
- /** @param {Function & { [FILENAME]: string }} target */
3890
- function check_target(target) {
3891
- if (target) {
3892
- component_api_invalid_new(target[FILENAME] ?? 'a component', target.name);
3893
- }
3894
- }
3895
-
3896
- function legacy_api() {
3897
- const component = component_context?.function;
3898
-
3899
- /** @param {string} method */
3900
- function error(method) {
3901
- component_api_changed(method, component[FILENAME]);
3902
- }
3903
-
3904
- return {
3905
- $destroy: () => error('$destroy()'),
3906
- $on: () => error('$on(...)'),
3907
- $set: () => error('$set(...)')
3908
- };
3909
- }
3910
-
3911
- /**
3912
- * @param {Node} anchor
3913
- * @param {...(()=>any)[]} args
3914
- */
3915
- function validate_snippet_args(anchor, ...args) {
3916
- if (typeof anchor !== 'object' || !(anchor instanceof Node)) {
3917
- invalid_snippet_arguments();
3918
- }
3919
- for (let arg of args) {
3920
- if (typeof arg !== 'function') {
3921
- invalid_snippet_arguments();
3922
- }
3923
- }
3924
- }
3925
-
3926
3437
  /** @import { Effect, Source, TemplateNode } from '#client' */
3927
3438
 
3928
3439
  const PENDING = 0;
@@ -4907,41 +4418,6 @@
4907
4418
  return sanitized;
4908
4419
  }
4909
4420
 
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
4421
  /** @import { Snippet } from 'svelte' */
4946
4422
  /** @import { Effect, TemplateNode } from '#client' */
4947
4423
  /** @import { Getters } from '#shared' */
@@ -4978,31 +4454,8 @@
4978
4454
  anchor = hydrate_node;
4979
4455
  }
4980
4456
  }
4981
-
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
- /** @import { Effect, TemplateNode } from '#client' */
4457
+
4458
+ /** @import { Effect, TemplateNode } from '#client' */
5006
4459
 
5007
4460
  /**
5008
4461
  * @param {Comment | Element} node
@@ -6293,80 +5746,6 @@
6293
5746
  };
6294
5747
  }
6295
5748
 
6296
- /**
6297
- * @param {() => any} collection
6298
- * @param {(item: any, index: number) => string} key_fn
6299
- * @returns {void}
6300
- */
6301
- function validate_each_keys(collection, key_fn) {
6302
- render_effect(() => {
6303
- const keys = new Map();
6304
- const maybe_array = collection();
6305
- const array = is_array(maybe_array)
6306
- ? maybe_array
6307
- : maybe_array == null
6308
- ? []
6309
- : Array.from(maybe_array);
6310
- const length = array.length;
6311
- for (let i = 0; i < length; i++) {
6312
- const key = key_fn(array[i], i);
6313
- if (keys.has(key)) {
6314
- String(keys.get(key));
6315
-
6316
- /** @type {string | null} */
6317
- let k = String(key);
6318
- if (k.startsWith('[object ')) k = null;
6319
-
6320
- each_key_duplicate();
6321
- }
6322
- keys.set(key, i);
6323
- }
6324
- });
6325
- }
6326
-
6327
- /**
6328
- * @param {string} binding
6329
- * @param {() => Record<string, any>} get_object
6330
- * @param {() => string} get_property
6331
- * @param {number} line
6332
- * @param {number} column
6333
- */
6334
- function validate_binding(binding, get_object, get_property, line, column) {
6335
- var warned = false;
6336
-
6337
- dev_current_component_function?.[FILENAME];
6338
-
6339
- render_effect(() => {
6340
- if (warned) return;
6341
-
6342
- var [object, is_store_sub] = capture_store_binding(get_object);
6343
-
6344
- if (is_store_sub) return;
6345
-
6346
- var property = get_property();
6347
-
6348
- var ran = false;
6349
-
6350
- // by making the (possibly false, but it would be an extreme edge case) assumption
6351
- // that a getter has a corresponding setter, we can determine if a property is
6352
- // reactive by seeing if this effect has dependencies
6353
- var effect = render_effect(() => {
6354
- if (ran) return;
6355
-
6356
- // eslint-disable-next-line @typescript-eslint/no-unused-expressions
6357
- object[property];
6358
- });
6359
-
6360
- ran = true;
6361
-
6362
- if (effect.deps === null) {
6363
- binding_property_non_reactive();
6364
-
6365
- warned = true;
6366
- }
6367
- });
6368
- }
6369
-
6370
5749
  /** @import { ComponentConstructorOptions, ComponentType, SvelteComponent, Component } from 'svelte' */
6371
5750
 
6372
5751
  /**
@@ -6980,12 +6359,9 @@
6980
6359
  }
6981
6360
  }
6982
6361
 
6983
- Icon[FILENAME] = 'src/sdg/bases/Icon/Icon.svelte';
6984
-
6985
- var root$o = add_locations(template(`<div></div>`), Icon[FILENAME], [[16, 0]]);
6362
+ var root$o = template(`<div></div>`);
6986
6363
 
6987
6364
  function Icon($$anchor, $$props) {
6988
- check_target(new.target);
6989
6365
  push($$props, true);
6990
6366
 
6991
6367
  let type = prop($$props, 'type', 7),
@@ -6996,24 +6372,22 @@
6996
6372
  height = prop($$props, 'height', 7, 'auto'),
6997
6373
  src = prop($$props, 'src', 7, ''),
6998
6374
  rotate = prop($$props, 'rotate', 7, 0),
6999
- rest = rest_props(
7000
- $$props,
7001
- [
7002
- '$$slots',
7003
- '$$events',
7004
- '$$legacy',
7005
- '$$host',
7006
- 'type',
7007
- 'label',
7008
- 'size',
7009
- 'color',
7010
- 'width',
7011
- 'height',
7012
- 'src',
7013
- 'rotate'
7014
- ]);
7015
-
7016
- let attributes = user_derived(() => strict_equals(width(), 'auto') ? { 'data-img-size': size() } : {});
6375
+ rest = rest_props($$props, [
6376
+ '$$slots',
6377
+ '$$events',
6378
+ '$$legacy',
6379
+ '$$host',
6380
+ 'type',
6381
+ 'label',
6382
+ 'size',
6383
+ 'color',
6384
+ 'width',
6385
+ 'height',
6386
+ 'src',
6387
+ 'rotate'
6388
+ ]);
6389
+
6390
+ let attributes = user_derived(() => width() === 'auto' ? { 'data-img-size': size() } : {});
7017
6391
  var div = root$o();
7018
6392
  let attributes_1;
7019
6393
 
@@ -7029,6 +6403,7 @@
7029
6403
  'data-img-type': type(),
7030
6404
  ...get(attributes),
7031
6405
  ...rest,
6406
+ 'aria-hidden': label() ? undefined : true,
7032
6407
  [STYLE]: {
7033
6408
  '--img-rotate': rotate() && rotate() + "deg"
7034
6409
  }
@@ -7092,8 +6467,7 @@
7092
6467
  set rotate($$value = 0) {
7093
6468
  rotate($$value);
7094
6469
  flushSync();
7095
- },
7096
- ...legacy_api()
6470
+ }
7097
6471
  });
7098
6472
  }
7099
6473
 
@@ -7114,24 +6488,12 @@
7114
6488
  true
7115
6489
  );
7116
6490
 
7117
- Notice[FILENAME] = 'src/sdg/components/Notice/Notice.svelte';
7118
-
7119
- var root$n = add_locations(template(`<div tabindex="0"><div class="icon-container"><div class="qc-icon"><!></div></div> <div class="content-container"><div class="content"><!> <!> <!></div></div></div>`), Notice[FILENAME], [
7120
- [
7121
- 57,
7122
- 0,
7123
- [
7124
- [60, 2, [[61, 4]]],
7125
- [69, 2, [[70, 4]]]
7126
- ]
7127
- ]
7128
- ]);
6491
+ var root$n = template(`<div tabindex="0"><div class="icon-container"><div class="qc-icon"><!></div></div> <div class="content-container"><div class="content"><!> <!> <!></div></div></div>`);
7129
6492
 
7130
6493
  function Notice($$anchor, $$props) {
7131
- check_target(new.target);
7132
6494
  push($$props, true);
7133
6495
 
7134
- const isFr = strict_equals(Utils.getPageLanguage(), 'fr');
6496
+ const isFr = Utils.getPageLanguage() === 'fr';
7135
6497
  const defaultHeader = 'h2';
7136
6498
  const defaultType = 'information';
7137
6499
 
@@ -7154,7 +6516,7 @@
7154
6516
  const types = Object.keys(typesDescriptions);
7155
6517
  const usedType = types.includes(type()) ? type() : defaultType;
7156
6518
  const usedHeader = header().match(/h[1-6]/) ? header() : defaultHeader;
7157
- const role = strict_equals(usedType, "success") ? "status" : strict_equals(usedType, "error") ? "alert" : null;
6519
+ const role = usedType === "success" ? "status" : usedType === "error" ? "alert" : null;
7158
6520
  let noticeElement = state(null);
7159
6521
 
7160
6522
  user_effect(() => {
@@ -7167,7 +6529,7 @@
7167
6529
  }
7168
6530
  });
7169
6531
 
7170
- const shouldUseIcon = strict_equals(usedType, "advice") || strict_equals(usedType, "note");
6532
+ const shouldUseIcon = usedType === "advice" || usedType === "note";
7171
6533
  // Si le type est "advice" ou "note", on force "neutral" (le gris), sinon on garde le type normal
7172
6534
  const computedType = shouldUseIcon ? "neutral" : usedType;
7173
6535
  const iconType = shouldUseIcon ? icon() ?? "note" : usedType;
@@ -7196,26 +6558,19 @@
7196
6558
  var fragment = comment();
7197
6559
  var node_3 = first_child(fragment);
7198
6560
 
7199
- validate_void_dynamic_element(() => usedHeader);
7200
- validate_dynamic_element_tag(() => usedHeader);
7201
-
7202
- element(
7203
- node_3,
7204
- () => usedHeader,
7205
- false,
7206
- ($$element, $$anchor) => {
7207
- var fragment_1 = comment();
7208
- var node_4 = first_child(fragment_1);
6561
+ element(node_3, () => usedHeader, false, ($$element, $$anchor) => {
6562
+ var fragment_1 = comment();
6563
+ var node_4 = first_child(fragment_1);
7209
6564
 
7210
- html(node_4, title);
7211
- append($$anchor, fragment_1);
7212
- });
6565
+ html(node_4, title);
6566
+ append($$anchor, fragment_1);
6567
+ });
7213
6568
 
7214
6569
  append($$anchor, fragment);
7215
6570
  };
7216
6571
 
7217
6572
  if_block(node_2, ($$render) => {
7218
- if (title() && strict_equals(title(), "", false)) $$render(consequent);
6573
+ if (title() && title() !== "") $$render(consequent);
7219
6574
  });
7220
6575
  }
7221
6576
 
@@ -7274,8 +6629,7 @@
7274
6629
  set slotContent($$value) {
7275
6630
  slotContent($$value);
7276
6631
  flushSync();
7277
- },
7278
- ...legacy_api()
6632
+ }
7279
6633
  });
7280
6634
  }
7281
6635
 
@@ -7294,12 +6648,9 @@
7294
6648
  true
7295
6649
  );
7296
6650
 
7297
- NoticeWC[FILENAME] = 'src/sdg/components/Notice/NoticeWC.svelte';
7298
-
7299
- var root$m = add_locations(template(`<!> <link rel="stylesheet">`, 1), NoticeWC[FILENAME], [[27, 0]]);
6651
+ var root$m = template(`<!> <link rel="stylesheet">`, 1);
7300
6652
 
7301
6653
  function NoticeWC($$anchor, $$props) {
7302
- check_target(new.target);
7303
6654
  push($$props, true);
7304
6655
 
7305
6656
  const props = rest_props($$props, ['$$slots', '$$events', '$$legacy', '$$host']);
@@ -7307,15 +6658,13 @@
7307
6658
  var node = first_child(fragment);
7308
6659
 
7309
6660
  {
7310
- const slotContent = wrap_snippet(NoticeWC, function ($$anchor) {
7311
- validate_snippet_args(...arguments);
7312
-
6661
+ const slotContent = ($$anchor) => {
7313
6662
  var fragment_1 = comment();
7314
6663
  var node_1 = first_child(fragment_1);
7315
6664
 
7316
- slot(node_1, $$props, 'default', {}, null);
6665
+ slot(node_1, $$props, 'default', {});
7317
6666
  append($$anchor, fragment_1);
7318
- });
6667
+ };
7319
6668
 
7320
6669
  Notice(node, spread_props(() => props, { slotContent, $$slots: { slotContent: true } }));
7321
6670
  }
@@ -7324,7 +6673,7 @@
7324
6673
 
7325
6674
  template_effect(() => set_attribute(link, 'href', Utils.cssPath));
7326
6675
  append($$anchor, fragment);
7327
- return pop({ ...legacy_api() });
6676
+ pop();
7328
6677
  }
7329
6678
 
7330
6679
  customElements.define('qc-notice', create_custom_element(
@@ -7341,10 +6690,8 @@
7341
6690
  true
7342
6691
  ));
7343
6692
 
7344
- PivHeader[FILENAME] = 'src/sdg/components/PivHeader/PivHeader.svelte';
7345
-
7346
- var root_2$8 = add_locations(template(`<div class="title"><a> </a></div>`), PivHeader[FILENAME], [[71, 10, [[72, 14]]]]);
7347
- var root_3$3 = add_locations(template(`<div class="go-to-content"><a> </a></div>`), PivHeader[FILENAME], [[63, 6, [[64, 8]]]]);
6693
+ var root_2$8 = template(`<div class="title"><a> </a></div>`);
6694
+ var root_3$3 = template(`<div class="go-to-content"><a> </a></div>`);
7348
6695
 
7349
6696
  var on_click$3 = (evt, displaySearchForm, focusOnSearchInput) => {
7350
6697
  evt.preventDefault();
@@ -7355,38 +6702,14 @@
7355
6702
  });
7356
6703
  };
7357
6704
 
7358
- var root_4$4 = add_locations(template(`<a class="qc-search" href="/" role="button"><span> </span></a>`), PivHeader[FILENAME], [[91, 10, [[102, 12]]]]);
7359
- var root_8 = add_locations(template(`<li><a> </a></li>`), PivHeader[FILENAME], [[114, 32, [[114, 36]]]]);
7360
- var root_9 = add_locations(template(`<li><a> </a></li>`), PivHeader[FILENAME], [[117, 32, [[117, 36]]]]);
7361
- var root_7 = add_locations(template(`<nav><ul><!> <!></ul></nav>`), PivHeader[FILENAME], [[111, 20, [[112, 24]]]]);
7362
- var root_10 = add_locations(template(`<div class="search-zone"><!></div>`), PivHeader[FILENAME], [[130, 10]]);
7363
-
7364
- var root$l = add_locations(template(`<div role="banner" class="qc-piv-header qc-component"><div><!> <div class="piv-top"><a class="logo" rel="noreferrer"><div role="img"></div></a> <!> <div class="right-section"><!> <div class="links"><!></div></div></div> <!> <div class="piv-bottom"><!></div></div></div>`), PivHeader[FILENAME], [
7365
- [
7366
- 57,
7367
- 0,
7368
- [
7369
- [
7370
- 61,
7371
- 2,
7372
- [
7373
- [
7374
- 78,
7375
- 6,
7376
- [
7377
- [80, 8, [[85, 16]]],
7378
- [89, 6, [[105, 8]]]
7379
- ]
7380
- ],
7381
- [128, 6]
7382
- ]
7383
- ]
7384
- ]
7385
- ]
7386
- ]);
6705
+ var root_4$4 = template(`<a class="qc-search" href="/" role="button"><span> </span></a>`);
6706
+ var root_8 = template(`<li><a> </a></li>`);
6707
+ var root_9 = template(`<li><a> </a></li>`);
6708
+ var root_7 = template(`<nav><ul><!> <!></ul></nav>`);
6709
+ var root_10 = template(`<div class="search-zone"><!></div>`);
6710
+ var root$l = template(`<div role="banner" class="qc-piv-header qc-component"><div><!> <div class="piv-top"><a class="logo" rel="noreferrer"><div role="img"></div></a> <!> <div class="right-section"><!> <div class="links"><!></div></div></div> <!> <div class="piv-bottom"><!></div></div></div>`);
7387
6711
 
7388
6712
  function PivHeader($$anchor, $$props) {
7389
- check_target(new.target);
7390
6713
  push($$props, true);
7391
6714
 
7392
6715
  const lang = Utils.getPageLanguage();
@@ -7395,19 +6718,19 @@
7395
6718
  logoUrl = prop($$props, 'logoUrl', 7, '/'),
7396
6719
  fullWidth = prop($$props, 'fullWidth', 7, 'false'),
7397
6720
  logoSrc = prop($$props, 'logoSrc', 23, () => Utils.imagesRelativePath + 'QUEBEC_blanc.svg'),
7398
- logoAlt = prop($$props, 'logoAlt', 23, () => strict_equals(lang, 'fr') ? 'Logo du gouvernement du Québec' : 'Logo of government of Québec'),
6721
+ logoAlt = prop($$props, 'logoAlt', 7, lang === 'fr' ? 'Logo du gouvernement du Québec' : 'Logo of government of Québec'),
7399
6722
  titleUrl = prop($$props, 'titleUrl', 7, '/'),
7400
6723
  titleText = prop($$props, 'titleText', 7, ''),
7401
- joinUsText = prop($$props, 'joinUsText', 23, () => strict_equals(lang, 'fr') ? 'Nous joindre' : 'Contact us'),
6724
+ joinUsText = prop($$props, 'joinUsText', 7, lang === 'fr' ? 'Nous joindre' : 'Contact us'),
7402
6725
  joinUsUrl = prop($$props, 'joinUsUrl', 7, ''),
7403
- altLanguageText = prop($$props, 'altLanguageText', 23, () => strict_equals(lang, 'fr') ? 'English' : 'Français'),
6726
+ altLanguageText = prop($$props, 'altLanguageText', 7, lang === 'fr' ? 'English' : 'Français'),
7404
6727
  altLanguageUrl = prop($$props, 'altLanguageUrl', 7, ''),
7405
- linksLabel = prop($$props, 'linksLabel', 23, () => strict_equals(lang, 'fr') ? 'Navigation PIV' : 'PIV navigation'),
6728
+ linksLabel = prop($$props, 'linksLabel', 7, lang === 'fr' ? 'Navigation PIV' : 'PIV navigation'),
7406
6729
  goToContent = prop($$props, 'goToContent', 7, 'true'),
7407
6730
  goToContentAnchor = prop($$props, 'goToContentAnchor', 7, '#main'),
7408
- goToContentText = prop($$props, 'goToContentText', 23, () => strict_equals(lang, 'fr') ? 'Passer au contenu' : 'Skip to content'),
7409
- displaySearchText = prop($$props, 'displaySearchText', 23, () => strict_equals(lang, 'fr') ? 'Cliquer pour faire une recherche' : 'Click to search'),
7410
- hideSearchText = prop($$props, 'hideSearchText', 23, () => strict_equals(lang, 'fr') ? 'Masquer la barre de recherche' : 'Hide search bar'),
6731
+ goToContentText = prop($$props, 'goToContentText', 7, lang === 'fr' ? 'Passer au contenu' : 'Skip to content'),
6732
+ displaySearchText = prop($$props, 'displaySearchText', 7, lang === 'fr' ? 'Cliquer pour faire une recherche' : 'Click to search'),
6733
+ hideSearchText = prop($$props, 'hideSearchText', 7, lang === 'fr' ? 'Masquer la barre de recherche' : 'Hide search bar'),
7411
6734
  enableSearch = prop($$props, 'enableSearch', 7, 'false'),
7412
6735
  showSearch = prop($$props, 'showSearch', 7, 'false'),
7413
6736
  linksSlot = prop($$props, 'linksSlot', 7),
@@ -7427,9 +6750,9 @@
7427
6750
  }
7428
6751
 
7429
6752
  onMount(() => {
7430
- set(containerClass, get(containerClass) + (strict_equals(fullWidth(), 'true') ? '-fluid' : ''));
6753
+ set(containerClass, get(containerClass) + (fullWidth() === 'true' ? '-fluid' : ''));
7431
6754
 
7432
- if (strict_equals(showSearch(), 'true')) {
6755
+ if (showSearch() === 'true') {
7433
6756
  enableSearch('true');
7434
6757
  set(displaySearchForm, true);
7435
6758
  }
@@ -7439,9 +6762,7 @@
7439
6762
  var div_1 = child(div);
7440
6763
 
7441
6764
  {
7442
- const title = wrap_snippet(PivHeader, function ($$anchor) {
7443
- validate_snippet_args(...arguments);
7444
-
6765
+ const title = ($$anchor) => {
7445
6766
  var fragment = comment();
7446
6767
  var node = first_child(fragment);
7447
6768
 
@@ -7468,7 +6789,7 @@
7468
6789
  }
7469
6790
 
7470
6791
  append($$anchor, fragment);
7471
- });
6792
+ };
7472
6793
 
7473
6794
  var node_1 = child(div_1);
7474
6795
 
@@ -7490,7 +6811,7 @@
7490
6811
  };
7491
6812
 
7492
6813
  if_block(node_1, ($$render) => {
7493
- if (strict_equals(goToContent(), 'true')) $$render(consequent_1);
6814
+ if (goToContent() === 'true') $$render(consequent_1);
7494
6815
  });
7495
6816
  }
7496
6817
 
@@ -7842,8 +7163,7 @@
7842
7163
  set slots($$value = false) {
7843
7164
  slots($$value);
7844
7165
  flushSync();
7845
- },
7846
- ...legacy_api()
7166
+ }
7847
7167
  });
7848
7168
  }
7849
7169
 
@@ -7880,51 +7200,41 @@
7880
7200
  true
7881
7201
  );
7882
7202
 
7883
- PivHeaderWC[FILENAME] = 'src/sdg/components/PivHeader/PivHeaderWC.svelte';
7884
-
7885
- var root$k = add_locations(template(`<!> <link rel="stylesheet">`, 1), PivHeaderWC[FILENAME], [[56, 0]]);
7203
+ var root$k = template(`<!> <link rel="stylesheet">`, 1);
7886
7204
 
7887
7205
  function PivHeaderWC($$anchor, $$props) {
7888
- check_target(new.target);
7889
-
7890
7206
  const $$slots = sanitize_slots($$props);
7891
7207
 
7892
7208
  push($$props, true);
7893
7209
 
7894
7210
  let self = prop($$props, 'self', 7),
7895
- props = rest_props(
7896
- $$props,
7897
- [
7898
- '$$slots',
7899
- '$$events',
7900
- '$$legacy',
7901
- '$$host',
7902
- 'self'
7903
- ]);
7211
+ props = rest_props($$props, [
7212
+ '$$slots',
7213
+ '$$events',
7214
+ '$$legacy',
7215
+ '$$host',
7216
+ 'self'
7217
+ ]);
7904
7218
 
7905
7219
  var fragment = root$k();
7906
7220
  var node = first_child(fragment);
7907
7221
 
7908
7222
  {
7909
- const linksSlot = wrap_snippet(PivHeaderWC, function ($$anchor) {
7910
- validate_snippet_args(...arguments);
7911
-
7223
+ const linksSlot = ($$anchor) => {
7912
7224
  var fragment_1 = comment();
7913
7225
  var node_1 = first_child(fragment_1);
7914
7226
 
7915
- slot(node_1, $$props, 'links', {}, null);
7227
+ slot(node_1, $$props, 'links', {});
7916
7228
  append($$anchor, fragment_1);
7917
- });
7918
-
7919
- const searchZoneSlot = wrap_snippet(PivHeaderWC, function ($$anchor) {
7920
- validate_snippet_args(...arguments);
7229
+ };
7921
7230
 
7231
+ const searchZoneSlot = ($$anchor) => {
7922
7232
  var fragment_2 = comment();
7923
7233
  var node_2 = first_child(fragment_2);
7924
7234
 
7925
- slot(node_2, $$props, 'search-zone', {}, null);
7235
+ slot(node_2, $$props, 'search-zone', {});
7926
7236
  append($$anchor, fragment_2);
7927
- });
7237
+ };
7928
7238
 
7929
7239
  PivHeader(node, spread_props(
7930
7240
  {
@@ -7954,8 +7264,7 @@
7954
7264
  set self($$value) {
7955
7265
  self($$value);
7956
7266
  flushSync();
7957
- },
7958
- ...legacy_api()
7267
+ }
7959
7268
  });
7960
7269
  }
7961
7270
 
@@ -7997,14 +7306,11 @@
7997
7306
  }
7998
7307
  ));
7999
7308
 
8000
- PivFooter[FILENAME] = 'src/sdg/components/PivFooter/PivFooter.svelte';
8001
-
8002
- var root_2$7 = add_locations(template(`<img>`), PivFooter[FILENAME], [[34, 12]]);
8003
- var root_4$3 = add_locations(template(`<a> </a>`), PivFooter[FILENAME], [[45, 12]]);
8004
- var root$j = add_locations(template(`<div class="qc-piv-footer qc-container-fluid"><!> <a class="logo"></a> <span class="copyright"><!></span></div>`), PivFooter[FILENAME], [[20, 0, [[25, 4], [41, 4]]]]);
7309
+ var root_2$7 = template(`<img>`);
7310
+ var root_4$3 = template(`<a> </a>`);
7311
+ var root$j = template(`<div class="qc-piv-footer qc-container-fluid"><!> <a class="logo"></a> <span class="copyright"><!></span></div>`);
8005
7312
 
8006
7313
  function PivFooter($$anchor, $$props) {
8007
- check_target(new.target);
8008
7314
  push($$props, true);
8009
7315
 
8010
7316
  const lang = Utils.getPageLanguage();
@@ -8012,10 +7318,10 @@
8012
7318
  let logoUrl = prop($$props, 'logoUrl', 7, '/'),
8013
7319
  logoSrc = prop($$props, 'logoSrc', 23, () => Utils.imagesRelativePath + '/QUEBEC_couleur.svg'),
8014
7320
  logoSrcDarkTheme = prop($$props, 'logoSrcDarkTheme', 23, () => Utils.imagesRelativePath + '/QUEBEC_blanc.svg'),
8015
- logoAlt = prop($$props, 'logoAlt', 23, () => strict_equals(lang, 'fr') ? 'Logo du gouvernement du Québec' : 'Logo of the Quebec government'),
7321
+ logoAlt = prop($$props, 'logoAlt', 7, lang === 'fr' ? 'Logo du gouvernement du Québec' : 'Logo of the Quebec government'),
8016
7322
  logoWidth = prop($$props, 'logoWidth', 7, 139),
8017
7323
  logoHeight = prop($$props, 'logoHeight', 7, 50),
8018
- copyrightUrl = prop($$props, 'copyrightUrl', 23, () => strict_equals(lang, 'fr') ? 'https://www.quebec.ca/droit-auteur' : 'https://www.quebec.ca/en/copyright'),
7324
+ copyrightUrl = prop($$props, 'copyrightUrl', 7, lang === 'fr' ? 'https://www.quebec.ca/droit-auteur' : 'https://www.quebec.ca/en/copyright'),
8019
7325
  copyrightText = prop($$props, 'copyrightText', 23, () => '© Gouvernement du Québec, ' + new Date().getFullYear()),
8020
7326
  mainSlot = prop($$props, 'mainSlot', 7),
8021
7327
  copyrightSlot = prop($$props, 'copyrightSlot', 7),
@@ -8051,13 +7357,7 @@
8051
7357
  index,
8052
7358
  ($$anchor, $$item) => {
8053
7359
  let theme = () => get($$item)[0];
8054
-
8055
- theme();
8056
-
8057
7360
  let src = () => get($$item)[1];
8058
-
8059
- src();
8060
-
8061
7361
  var img = root_2$7();
8062
7362
 
8063
7363
  template_effect(() => {
@@ -8204,8 +7504,7 @@
8204
7504
  set slots($$value = {}) {
8205
7505
  slots($$value);
8206
7506
  flushSync();
8207
- },
8208
- ...legacy_api()
7507
+ }
8209
7508
  });
8210
7509
  }
8211
7510
 
@@ -8229,51 +7528,41 @@
8229
7528
  true
8230
7529
  );
8231
7530
 
8232
- PivFooterWC[FILENAME] = 'src/sdg/components/PivFooter/PivFooterWC.svelte';
8233
-
8234
- var root$i = add_locations(template(`<!> <link rel="stylesheet">`, 1), PivFooterWC[FILENAME], [[44, 0]]);
7531
+ var root$i = template(`<!> <link rel="stylesheet">`, 1);
8235
7532
 
8236
7533
  function PivFooterWC($$anchor, $$props) {
8237
- check_target(new.target);
8238
-
8239
7534
  const $$slots = sanitize_slots($$props);
8240
7535
 
8241
7536
  push($$props, true);
8242
7537
 
8243
7538
  let self = prop($$props, 'self', 7),
8244
- props = rest_props(
8245
- $$props,
8246
- [
8247
- '$$slots',
8248
- '$$events',
8249
- '$$legacy',
8250
- '$$host',
8251
- 'self'
8252
- ]);
7539
+ props = rest_props($$props, [
7540
+ '$$slots',
7541
+ '$$events',
7542
+ '$$legacy',
7543
+ '$$host',
7544
+ 'self'
7545
+ ]);
8253
7546
 
8254
7547
  var fragment = root$i();
8255
7548
  var node = first_child(fragment);
8256
7549
 
8257
7550
  {
8258
- const mainSlot = wrap_snippet(PivFooterWC, function ($$anchor) {
8259
- validate_snippet_args(...arguments);
8260
-
7551
+ const mainSlot = ($$anchor) => {
8261
7552
  var fragment_1 = comment();
8262
7553
  var node_1 = first_child(fragment_1);
8263
7554
 
8264
- slot(node_1, $$props, 'default', {}, null);
7555
+ slot(node_1, $$props, 'default', {});
8265
7556
  append($$anchor, fragment_1);
8266
- });
8267
-
8268
- const copyrightSlot = wrap_snippet(PivFooterWC, function ($$anchor) {
8269
- validate_snippet_args(...arguments);
7557
+ };
8270
7558
 
7559
+ const copyrightSlot = ($$anchor) => {
8271
7560
  var fragment_2 = comment();
8272
7561
  var node_2 = first_child(fragment_2);
8273
7562
 
8274
- slot(node_2, $$props, 'copyright', {}, null);
7563
+ slot(node_2, $$props, 'copyright', {});
8275
7564
  append($$anchor, fragment_2);
8276
- });
7565
+ };
8277
7566
 
8278
7567
  PivFooter(node, spread_props(() => props, {
8279
7568
  slots: $$slots,
@@ -8295,8 +7584,7 @@
8295
7584
  set self($$value) {
8296
7585
  self($$value);
8297
7586
  flushSync();
8298
- },
8299
- ...legacy_api()
7587
+ }
8300
7588
  });
8301
7589
  }
8302
7590
 
@@ -8328,12 +7616,9 @@
8328
7616
  }
8329
7617
  ));
8330
7618
 
8331
- IconButton[FILENAME] = 'src/sdg/components/IconButton/IconButton.svelte';
8332
-
8333
- var root$h = add_locations(template(`<button><!></button>`), IconButton[FILENAME], [[16, 0]]);
7619
+ var root$h = template(`<button><!></button>`);
8334
7620
 
8335
7621
  function IconButton($$anchor, $$props) {
8336
- check_target(new.target);
8337
7622
  push($$props, true);
8338
7623
 
8339
7624
  const size = prop($$props, 'size', 7, 'xl'),
@@ -8342,20 +7627,18 @@
8342
7627
  iconSize = prop($$props, 'iconSize', 7),
8343
7628
  iconColor = prop($$props, 'iconColor', 7),
8344
7629
  className = prop($$props, 'class', 7, ''),
8345
- rest = rest_props(
8346
- $$props,
8347
- [
8348
- '$$slots',
8349
- '$$events',
8350
- '$$legacy',
8351
- '$$host',
8352
- 'size',
8353
- 'label',
8354
- 'icon',
8355
- 'iconSize',
8356
- 'iconColor',
8357
- 'class'
8358
- ]);
7630
+ rest = rest_props($$props, [
7631
+ '$$slots',
7632
+ '$$events',
7633
+ '$$legacy',
7634
+ '$$host',
7635
+ 'size',
7636
+ 'label',
7637
+ 'icon',
7638
+ 'iconSize',
7639
+ 'iconColor',
7640
+ 'class'
7641
+ ]);
8359
7642
 
8360
7643
  var button = root$h();
8361
7644
  let attributes;
@@ -8437,8 +7720,7 @@
8437
7720
  set class($$value = '') {
8438
7721
  className($$value);
8439
7722
  flushSync();
8440
- },
8441
- ...legacy_api()
7723
+ }
8442
7724
  });
8443
7725
  }
8444
7726
 
@@ -8457,24 +7739,9 @@
8457
7739
  true
8458
7740
  );
8459
7741
 
8460
- Alert[FILENAME] = 'src/sdg/components/Alert/Alert.svelte';
8461
-
8462
- var root_1$7 = add_locations(template(`<div role="alert"><div><div class="qc-general-alert-elements"><!> <div class="qc-alert-content"><!> <!></div> <!></div></div></div>`), Alert[FILENAME], [
8463
- [
8464
- 40,
8465
- 4,
8466
- [
8467
- [
8468
- 43,
8469
- 8,
8470
- [[44, 12, [[50, 16]]]]
8471
- ]
8472
- ]
8473
- ]
8474
- ]);
7742
+ var root_1$7 = template(`<div role="alert"><div><div class="qc-general-alert-elements"><!> <div class="qc-alert-content"><!> <!></div> <!></div></div></div>`);
8475
7743
 
8476
7744
  function Alert($$anchor, $$props) {
8477
- check_target(new.target);
8478
7745
  push($$props, true);
8479
7746
 
8480
7747
  let type = prop($$props, 'type', 7, "general"),
@@ -8485,13 +7752,13 @@
8485
7752
  slotContent = prop($$props, 'slotContent', 7);
8486
7753
 
8487
7754
  const language = Utils.getPageLanguage();
8488
- const typeClass = strict_equals(type(), "", false) ? type() : 'general';
8489
- const closeLabel = strict_equals(language, 'fr') ? "Fermer l’alerte" : "Close l’alerte";
8490
- const warningLabel = strict_equals(language, 'fr') ? "Information d'importance élevée" : "Information of high importance";
8491
- const generalLabel = strict_equals(language, 'fr') ? "Information importante" : "Important information";
8492
- const label = strict_equals(type(), 'general') ? generalLabel : warningLabel;
7755
+ const typeClass = type() !== "" ? type() : 'general';
7756
+ const closeLabel = language === 'fr' ? "Fermer l’alerte" : "Close l’alerte";
7757
+ const warningLabel = language === 'fr' ? "Information d'importance élevée" : "Information of high importance";
7758
+ const generalLabel = language === 'fr' ? "Information importante" : "Important information";
7759
+ const label = type() === 'general' ? generalLabel : warningLabel;
8493
7760
  let rootElement = state(null);
8494
- let containerClass = "qc-container" + (strict_equals(fullWidth(), 'true') ? '-fluid' : '');
7761
+ let containerClass = "qc-container" + (fullWidth() === 'true' ? '-fluid' : '');
8495
7762
 
8496
7763
  function hideAlert() {
8497
7764
  hide("true");
@@ -8513,8 +7780,8 @@
8513
7780
 
8514
7781
  var div_2 = child(div_1);
8515
7782
  var node_1 = child(div_2);
8516
- const expression = user_derived(() => strict_equals(type(), 'warning') ? 'warning' : 'information');
8517
- const expression_1 = user_derived(() => strict_equals(type(), 'general') ? 'blue-piv' : 'yellow-dark');
7783
+ const expression = user_derived(() => type() === 'warning' ? 'warning' : 'information');
7784
+ const expression_1 = user_derived(() => type() === 'general' ? 'blue-piv' : 'yellow-dark');
8518
7785
 
8519
7786
  Icon(node_1, {
8520
7787
  get type() {
@@ -8612,8 +7879,7 @@
8612
7879
  set slotContent($$value) {
8613
7880
  slotContent($$value);
8614
7881
  flushSync();
8615
- },
8616
- ...legacy_api()
7882
+ }
8617
7883
  });
8618
7884
  }
8619
7885
 
@@ -8632,12 +7898,9 @@
8632
7898
  true
8633
7899
  );
8634
7900
 
8635
- AlertWC[FILENAME] = 'src/sdg/components/Alert/AlertWC.svelte';
8636
-
8637
- var root$g = add_locations(template(`<!> <link rel="stylesheet">`, 1), AlertWC[FILENAME], [[25, 0]]);
7901
+ var root$g = template(`<!> <link rel="stylesheet">`, 1);
8638
7902
 
8639
7903
  function AlertWC($$anchor, $$props) {
8640
- check_target(new.target);
8641
7904
  push($$props, true);
8642
7905
 
8643
7906
  const props = rest_props($$props, ['$$slots', '$$events', '$$legacy', '$$host']);
@@ -8650,7 +7913,7 @@
8650
7913
 
8651
7914
  template_effect(() => set_attribute(link, 'href', Utils.cssPath));
8652
7915
  append($$anchor, fragment);
8653
- return pop({ ...legacy_api() });
7916
+ pop();
8654
7917
  }
8655
7918
 
8656
7919
  customElements.define('qc-alert', create_custom_element(
@@ -8667,8 +7930,6 @@
8667
7930
  true
8668
7931
  ));
8669
7932
 
8670
- ToTop[FILENAME] = 'src/sdg/components/ToTop/ToTop.svelte';
8671
-
8672
7933
  function handleEnterAndSpace(e, scrollToTop) {
8673
7934
  switch (e.code) {
8674
7935
  case 'Enter':
@@ -8680,18 +7941,17 @@
8680
7941
  }
8681
7942
 
8682
7943
  var on_click$2 = (e, scrollToTop) => scrollToTop(e);
8683
- var root$f = add_locations(template(`<a href="#top"><!> <span> </span></a>`), ToTop[FILENAME], [[67, 0, [[77, 3]]]]);
7944
+ var root$f = template(`<a href="#top"><!> <span> </span></a>`);
8684
7945
 
8685
7946
  function ToTop($$anchor, $$props) {
8686
- check_target(new.target);
8687
7947
  push($$props, true);
8688
7948
 
8689
7949
  const lang = Utils.getPageLanguage();
8690
7950
 
8691
- const text = prop($$props, 'text', 23, () => strict_equals(lang, 'fr') ? "Retour en haut" : "Back to top"),
7951
+ const text = prop($$props, 'text', 7, lang === 'fr' ? "Retour en haut" : "Back to top"),
8692
7952
  demo = prop($$props, 'demo', 7, 'false');
8693
7953
 
8694
- let visible = state(proxy(strict_equals(demo(), 'true')));
7954
+ let visible = state(demo() === 'true');
8695
7955
  let lastVisible = setContext('visible', () => get(visible));
8696
7956
  let lastScrollY = 0;
8697
7957
  let minimumScrollHeight = 0;
@@ -8772,24 +8032,17 @@
8772
8032
  set demo($$value = 'false') {
8773
8033
  demo($$value);
8774
8034
  flushSync();
8775
- },
8776
- ...legacy_api()
8035
+ }
8777
8036
  });
8778
8037
  }
8779
8038
 
8780
8039
  delegate(['click', 'keydown']);
8781
8040
  create_custom_element(ToTop, { text: {}, demo: {} }, [], [], true);
8782
8041
 
8783
- ToTopWC[FILENAME] = 'src/sdg/components/ToTop/toTopWC.svelte';
8784
-
8785
8042
  function ToTopWC($$anchor, $$props) {
8786
- check_target(new.target);
8787
- push($$props, true);
8788
-
8789
8043
  const props = rest_props($$props, ['$$slots', '$$events', '$$legacy', '$$host']);
8790
8044
 
8791
8045
  ToTop($$anchor, spread_props(() => props));
8792
- return pop({ ...legacy_api() });
8793
8046
  }
8794
8047
 
8795
8048
  customElements.define('qc-to-top', create_custom_element(
@@ -8803,15 +8056,12 @@
8803
8056
  false
8804
8057
  ));
8805
8058
 
8806
- ExternalLink[FILENAME] = 'src/sdg/components/ExternalLink/ExternalLink.svelte';
8807
-
8808
- var root$e = add_locations(template(`<span role="img" class="qc-ext-link-img"></span>`), ExternalLink[FILENAME], [[89, 0]]);
8059
+ var root$e = template(`<span role="img" class="qc-ext-link-img"></span>`);
8809
8060
 
8810
8061
  function ExternalLink($$anchor, $$props) {
8811
- check_target(new.target);
8812
8062
  push($$props, true);
8813
8063
 
8814
- const externalIconAlt = prop($$props, 'externalIconAlt', 23, () => strict_equals(Utils.getPageLanguage(), 'fr') ? "Ce lien dirige vers un autre site." : "This link directs to another site.");
8064
+ const externalIconAlt = prop($$props, 'externalIconAlt', 23, () => Utils.getPageLanguage() === 'fr' ? "Ce lien dirige vers un autre site." : "This link directs to another site.");
8815
8065
  let imgElement = state(void 0);
8816
8066
 
8817
8067
  function createVisibleNodesTreeWalker() {
@@ -8825,7 +8075,7 @@
8825
8075
  const style = window.getComputedStyle(node);
8826
8076
 
8827
8077
  // Si l'élément est masqué par CSS (display ou visibility), on l'ignore
8828
- if (strict_equals(style.display, 'none') || strict_equals(style.visibility, 'hidden') || strict_equals(style.position, 'absolute')) {
8078
+ if (style.display === 'none' || style.visibility === 'hidden' || style.position === 'absolute') {
8829
8079
  return NodeFilter.FILTER_REJECT;
8830
8080
  }
8831
8081
  }
@@ -8902,59 +8152,47 @@
8902
8152
  ) {
8903
8153
  externalIconAlt($$value);
8904
8154
  flushSync();
8905
- },
8906
- ...legacy_api()
8155
+ }
8907
8156
  });
8908
8157
  }
8909
8158
 
8910
8159
  create_custom_element(ExternalLink, { externalIconAlt: {} }, [], [], true);
8911
8160
 
8912
- ExternalLinkWC[FILENAME] = 'src/sdg/components/ExternalLink/ExternalLinkWC.svelte';
8913
-
8914
8161
  function ExternalLinkWC($$anchor, $$props) {
8915
- check_target(new.target);
8916
- push($$props, true);
8917
-
8918
8162
  const props = rest_props($$props, ['$$slots', '$$events', '$$legacy', '$$host']);
8919
8163
 
8920
8164
  ExternalLink($$anchor, spread_props(() => props));
8921
- return pop({ ...legacy_api() });
8922
8165
  }
8923
8166
 
8924
8167
  customElements.define('qc-external-link', create_custom_element(ExternalLinkWC, { externalIconAlt: { attribute: 'img-alt' } }, [], [], false));
8925
8168
 
8926
- SearchInput[FILENAME] = 'src/sdg/components/SearchInput/SearchInput.svelte';
8927
-
8928
- var root$d = add_locations(template(`<div><!> <input> <!></div>`), SearchInput[FILENAME], [[28, 0, [[39, 4]]]]);
8169
+ var root$d = template(`<div><!> <input> <!></div>`);
8929
8170
 
8930
8171
  function SearchInput($$anchor, $$props) {
8931
- check_target(new.target);
8932
8172
  push($$props, true);
8933
8173
 
8934
8174
  const lang = Utils.getPageLanguage();
8935
8175
 
8936
8176
  let value = prop($$props, 'value', 15, ''),
8937
- ariaLabel = prop($$props, 'ariaLabel', 23, () => strict_equals(lang, "fr") ? "Rechercher..." : "Search..."),
8938
- clearAriaLabel = prop($$props, 'clearAriaLabel', 23, () => strict_equals(lang, "fr") ? "Effacer le texte" : "Clear text"),
8177
+ ariaLabel = prop($$props, 'ariaLabel', 7, lang === "fr" ? "Rechercher..." : "Search..."),
8178
+ clearAriaLabel = prop($$props, 'clearAriaLabel', 7, lang === "fr" ? "Effacer le texte" : "Clear text"),
8939
8179
  leftIcon = prop($$props, 'leftIcon', 7, false),
8940
8180
  id = prop($$props, 'id', 23, () => `qc-search-input-${Math.random().toString(36).slice(2, 11)}`),
8941
- rest = rest_props(
8942
- $$props,
8943
- [
8944
- '$$slots',
8945
- '$$events',
8946
- '$$legacy',
8947
- '$$host',
8948
- 'value',
8949
- 'ariaLabel',
8950
- 'clearAriaLabel',
8951
- 'leftIcon',
8952
- 'id'
8953
- ]);
8954
-
8955
- leftIcon(strict_equals(leftIcon(), true) || strict_equals(leftIcon(), "true") || strict_equals(leftIcon(), ""));
8956
-
8957
- const isDisabled = strict_equals($$props.disabled, true) || strict_equals($$props.disabled, "true") || strict_equals($$props.disabled, "");
8181
+ rest = rest_props($$props, [
8182
+ '$$slots',
8183
+ '$$events',
8184
+ '$$legacy',
8185
+ '$$host',
8186
+ 'value',
8187
+ 'ariaLabel',
8188
+ 'clearAriaLabel',
8189
+ 'leftIcon',
8190
+ 'id'
8191
+ ]);
8192
+
8193
+ leftIcon(leftIcon() === true || leftIcon() === "true" || leftIcon() === "");
8194
+
8195
+ const isDisabled = $$props.disabled === true || $$props.disabled === "true" || $$props.disabled === "";
8958
8196
  let searchInput;
8959
8197
 
8960
8198
  function focus() {
@@ -9034,9 +8272,7 @@
9034
8272
  append($$anchor, div);
9035
8273
 
9036
8274
  return pop({
9037
- get focus() {
9038
- return focus;
9039
- },
8275
+ focus,
9040
8276
  get value() {
9041
8277
  return value();
9042
8278
  },
@@ -9077,8 +8313,7 @@
9077
8313
  ) {
9078
8314
  id($$value);
9079
8315
  flushSync();
9080
- },
9081
- ...legacy_api()
8316
+ }
9082
8317
  });
9083
8318
  }
9084
8319
 
@@ -9096,41 +8331,31 @@
9096
8331
  true
9097
8332
  );
9098
8333
 
9099
- SearchBar[FILENAME] = 'src/sdg/components/SearchBar/SearchBar.svelte';
9100
-
9101
- var root$c = add_locations(template(`<div><!> <!></div>`), SearchBar[FILENAME], [[37, 0]]);
8334
+ var root$c = template(`<div><!> <!></div>`);
9102
8335
 
9103
8336
  function SearchBar($$anchor, $$props) {
9104
- check_target(new.target);
9105
8337
  push($$props, true);
9106
8338
 
9107
- var $$ownership_validator = create_ownership_validator($$props);
9108
8339
  const lang = Utils.getPageLanguage();
9109
8340
 
9110
8341
  let value = prop($$props, 'value', 15, ''),
9111
8342
  name = prop($$props, 'name', 7, 'q'),
9112
8343
  pivBackground = prop($$props, 'pivBackground', 7, false),
9113
- rest = rest_props(
9114
- $$props,
9115
- [
9116
- '$$slots',
9117
- '$$events',
9118
- '$$legacy',
9119
- '$$host',
9120
- 'value',
9121
- 'name',
9122
- 'pivBackground'
9123
- ]);
8344
+ rest = rest_props($$props, [
8345
+ '$$slots',
8346
+ '$$events',
8347
+ '$$legacy',
8348
+ '$$host',
8349
+ 'value',
8350
+ 'name',
8351
+ 'pivBackground'
8352
+ ]);
9124
8353
 
9125
8354
  let defaultsAttributes = {
9126
8355
  input: {
9127
- "placeholder": strict_equals(lang, "fr") ? "Rechercher…" : "Search",
9128
- "aria-label": strict_equals(lang, "fr") ? "Rechercher…" : "Search"
9129
- },
9130
- submit: {
9131
- "aria-label": strict_equals(lang, "fr") ? "Lancer la recherche" : "Submit search"
9132
- }
9133
- };
8356
+ "placeholder": lang === "fr" ? "Rechercher…" : "Search",
8357
+ "aria-label": lang === "fr" ? "Rechercher…" : "Search"
8358
+ }};
9134
8359
 
9135
8360
  let inputProps = user_derived(() => ({
9136
8361
  ...defaultsAttributes.input,
@@ -9146,18 +8371,14 @@
9146
8371
  let classes;
9147
8372
  var node = child(div);
9148
8373
 
9149
- {
9150
- $$ownership_validator.binding('value', SearchInput, value);
9151
-
9152
- SearchInput(node, spread_props(() => get(inputProps), {
9153
- get value() {
9154
- return value();
9155
- },
9156
- set value($$value) {
9157
- value($$value);
9158
- }
9159
- }));
9160
- }
8374
+ SearchInput(node, spread_props(() => get(inputProps), {
8375
+ get value() {
8376
+ return value();
8377
+ },
8378
+ set value($$value) {
8379
+ value($$value);
8380
+ }
8381
+ }));
9161
8382
 
9162
8383
  var node_1 = sibling(node, 2);
9163
8384
  const expression = user_derived(() => pivBackground() ? 'blue-piv' : 'background');
@@ -9203,23 +8424,16 @@
9203
8424
  set pivBackground($$value = false) {
9204
8425
  pivBackground($$value);
9205
8426
  flushSync();
9206
- },
9207
- ...legacy_api()
8427
+ }
9208
8428
  });
9209
8429
  }
9210
8430
 
9211
8431
  create_custom_element(SearchBar, { value: {}, name: {}, pivBackground: {} }, [], [], true);
9212
8432
 
9213
- SearchBarWC[FILENAME] = 'src/sdg/components/SearchBar/SearchBarWC.svelte';
9214
-
9215
8433
  function SearchBarWC($$anchor, $$props) {
9216
- check_target(new.target);
9217
- push($$props, true);
9218
-
9219
8434
  const props = rest_props($$props, ['$$slots', '$$events', '$$legacy', '$$host']);
9220
8435
 
9221
8436
  SearchBar($$anchor, spread_props(() => props));
9222
- return pop({ ...legacy_api() });
9223
8437
  }
9224
8438
 
9225
8439
  customElements.define('qc-search-bar', create_custom_element(
@@ -9234,16 +8448,10 @@
9234
8448
  false
9235
8449
  ));
9236
8450
 
9237
- SearchInputWC[FILENAME] = 'src/sdg/components/SearchInput/SearchInputWC.svelte';
9238
-
9239
8451
  function SearchInputWC($$anchor, $$props) {
9240
- check_target(new.target);
9241
- push($$props, true);
9242
-
9243
8452
  const props = rest_props($$props, ['$$slots', '$$events', '$$legacy', '$$host']);
9244
8453
 
9245
8454
  SearchInput($$anchor, spread_props(() => props));
9246
- return pop({ ...legacy_api() });
9247
8455
  }
9248
8456
 
9249
8457
  customElements.define('qc-search-input', create_custom_element(
@@ -9259,16 +8467,10 @@
9259
8467
  false
9260
8468
  ));
9261
8469
 
9262
- IconWC[FILENAME] = 'src/sdg/bases/Icon/IconWC.svelte';
9263
-
9264
8470
  function IconWC($$anchor, $$props) {
9265
- check_target(new.target);
9266
- push($$props, true);
9267
-
9268
8471
  const props = rest_props($$props, ['$$slots', '$$events', '$$legacy', '$$host']);
9269
8472
 
9270
8473
  Icon($$anchor, spread_props(() => props));
9271
- return pop({ ...legacy_api() });
9272
8474
  }
9273
8475
 
9274
8476
  customElements.define('qc-icon', create_custom_element(
@@ -9288,16 +8490,10 @@
9288
8490
  false
9289
8491
  ));
9290
8492
 
9291
- IconButtonWC[FILENAME] = 'src/sdg/components/IconButton/IconButtonWC.svelte';
9292
-
9293
8493
  function IconButtonWC($$anchor, $$props) {
9294
- check_target(new.target);
9295
- push($$props, true);
9296
-
9297
8494
  const props = rest_props($$props, ['$$slots', '$$events', '$$legacy', '$$host']);
9298
8495
 
9299
8496
  IconButton($$anchor, spread_props(() => props));
9300
- return pop({ ...legacy_api() });
9301
8497
  }
9302
8498
 
9303
8499
  customElements.define('qc-icon-button', create_custom_element(
@@ -9314,13 +8510,10 @@
9314
8510
  false
9315
8511
  ));
9316
8512
 
9317
- FormError[FILENAME] = 'src/sdg/components/FormError/FormError.svelte';
9318
-
9319
- var root_2$6 = add_locations(template(`<!> <span><!></span>`, 1), FormError[FILENAME], [[48, 8]]);
9320
- var root_1$6 = add_locations(template(`<div role="alert"><!></div>`), FormError[FILENAME], [[35, 0]]);
8513
+ var root_2$6 = template(`<!> <span><!></span>`, 1);
8514
+ var root_1$6 = template(`<div role="alert"><!></div>`);
9321
8515
 
9322
8516
  function FormError($$anchor, $$props) {
9323
- check_target(new.target);
9324
8517
  push($$props, true);
9325
8518
 
9326
8519
  const lang = Utils.getPageLanguage();
@@ -9333,7 +8526,7 @@
9333
8526
  rootElement = prop($$props, 'rootElement', 15);
9334
8527
 
9335
8528
  let cleanLabel = user_derived(() => label().replace(/:\s*$/, '')),
9336
- defaultInvalidText = user_derived(() => label() ? strict_equals(lang, 'fr') ? `Le champ ${get(cleanLabel)} est obligatoire.` : `${get(cleanLabel)} field is required.` : strict_equals(lang, 'fr') ? `Ce champ est obligatoire.` : `This field is required.`);
8529
+ 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.`);
9337
8530
 
9338
8531
  onMount(() => {
9339
8532
  if (id()) return;
@@ -9432,8 +8625,7 @@
9432
8625
  set rootElement($$value) {
9433
8626
  rootElement($$value);
9434
8627
  flushSync();
9435
- },
9436
- ...legacy_api()
8628
+ }
9437
8629
  });
9438
8630
  }
9439
8631
 
@@ -9452,13 +8644,10 @@
9452
8644
  true
9453
8645
  );
9454
8646
 
9455
- LabelText[FILENAME] = 'src/sdg/components/Label/LabelText.svelte';
9456
-
9457
- var root_1$5 = add_locations(template(`<span class="qc-required" aria-hidden="true">*</span>`), LabelText[FILENAME], [[4, 26]]);
9458
- var root$b = add_locations(template(`<!><!>`, 1), LabelText[FILENAME], []);
8647
+ var root_1$5 = template(`<span class="qc-required" aria-hidden="true">*</span>`);
8648
+ var root$b = template(`<!><!>`, 1);
9459
8649
 
9460
8650
  function LabelText($$anchor, $$props) {
9461
- check_target(new.target);
9462
8651
  push($$props, true);
9463
8652
 
9464
8653
  let text = prop($$props, 'text', 7),
@@ -9499,32 +8688,26 @@
9499
8688
  set required($$value) {
9500
8689
  required($$value);
9501
8690
  flushSync();
9502
- },
9503
- ...legacy_api()
8691
+ }
9504
8692
  });
9505
8693
  }
9506
8694
 
9507
8695
  create_custom_element(LabelText, { text: {}, required: {} }, [], [], true);
9508
8696
 
9509
- Fieldset[FILENAME] = 'src/sdg/components/Fieldset/Fieldset.svelte';
9510
-
9511
- var root_2$5 = add_locations(template(`<legend><!></legend>`), Fieldset[FILENAME], [[43, 4]]);
9512
- var root_1$4 = add_locations(template(`<fieldset><!> <div><!></div> <!></fieldset>`), Fieldset[FILENAME], [[31, 0, [[47, 4]]]]);
9513
- var root_4$2 = add_locations(template(`<div class="qc-fieldset-invalid"><!></div>`), Fieldset[FILENAME], [[70, 4]]);
8697
+ var root_2$5 = template(`<legend><!></legend>`);
8698
+ var root_1$4 = template(`<fieldset><!> <div><!></div> <!></fieldset>`);
8699
+ var root_4$2 = template(`<div class="qc-fieldset-invalid"><!></div>`);
9514
8700
 
9515
8701
  function Fieldset($$anchor, $$props) {
9516
- check_target(new.target);
9517
8702
  push($$props, true);
9518
8703
 
9519
- const fieldset = wrap_snippet(Fieldset, function ($$anchor) {
9520
- validate_snippet_args(...arguments);
9521
-
8704
+ const fieldset = ($$anchor) => {
9522
8705
  var fieldset_1 = root_1$4();
9523
8706
 
9524
8707
  set_attribute(fieldset_1, 'aria-describedby', legendId);
9525
8708
 
9526
8709
  fieldset_1.__change = function (...$$args) {
9527
- apply(onchange, this, $$args, Fieldset, [38, 11]);
8710
+ onchange()?.apply(this, $$args);
9528
8711
  };
9529
8712
 
9530
8713
  var node = child(fieldset_1);
@@ -9604,7 +8787,7 @@
9604
8787
  });
9605
8788
 
9606
8789
  append($$anchor, fieldset_1);
9607
- });
8790
+ };
9608
8791
 
9609
8792
  let legend = prop($$props, 'legend', 7),
9610
8793
  name = prop($$props, 'name', 7),
@@ -9754,8 +8937,7 @@
9754
8937
  set rootElement($$value) {
9755
8938
  rootElement($$value);
9756
8939
  flushSync();
9757
- },
9758
- ...legacy_api()
8940
+ }
9759
8941
  });
9760
8942
  }
9761
8943
 
@@ -9797,7 +8979,7 @@
9797
8979
  name
9798
8980
  ) {
9799
8981
  if (!input) return;
9800
- if (strict_equals(input.role, "switch")) return;
8982
+ if (input.role === "switch") return;
9801
8983
 
9802
8984
  let label = input.closest('label');
9803
8985
 
@@ -9819,14 +9001,9 @@
9819
9001
  input.addEventListener('change', () => setInvalid(false));
9820
9002
  }
9821
9003
 
9822
- ChoiceGroup[FILENAME] = 'src/sdg/components/ChoiceGroup/ChoiceGroup.svelte';
9823
-
9824
9004
  function ChoiceGroup($$anchor, $$props) {
9825
- check_target(new.target);
9826
9005
  push($$props, true);
9827
9006
 
9828
- var $$ownership_validator = create_ownership_validator($$props);
9829
-
9830
9007
  let invalid = prop($$props, 'invalid', 15, false),
9831
9008
  invalidText = prop($$props, 'invalidText', 7),
9832
9009
  children = prop($$props, 'children', 7),
@@ -9836,23 +9013,21 @@
9836
9013
  host = prop($$props, 'host', 7),
9837
9014
  name = prop($$props, 'name', 7),
9838
9015
  required = prop($$props, 'required', 7),
9839
- restProps = rest_props(
9840
- $$props,
9841
- [
9842
- '$$slots',
9843
- '$$events',
9844
- '$$legacy',
9845
- '$$host',
9846
- 'invalid',
9847
- 'invalidText',
9848
- 'children',
9849
- 'compact',
9850
- 'selectionButton',
9851
- 'inline',
9852
- 'host',
9853
- 'name',
9854
- 'required'
9855
- ]);
9016
+ restProps = rest_props($$props, [
9017
+ '$$slots',
9018
+ '$$events',
9019
+ '$$legacy',
9020
+ '$$host',
9021
+ 'invalid',
9022
+ 'invalidText',
9023
+ 'children',
9024
+ 'compact',
9025
+ 'selectionButton',
9026
+ 'inline',
9027
+ 'host',
9028
+ 'name',
9029
+ 'required'
9030
+ ]);
9856
9031
 
9857
9032
  let fieldsetElement = state(void 0);
9858
9033
 
@@ -9866,53 +9041,49 @@
9866
9041
  (host() ? host() : get(fieldsetElement)).querySelectorAll('input, .qc-choicefield').forEach((input) => updateInput(input, required(), invalid(), compact(), selectionButton(), inline(), name()));
9867
9042
  });
9868
9043
 
9869
- {
9870
- $$ownership_validator.binding('invalid', Fieldset, invalid);
9871
-
9872
- Fieldset($$anchor, spread_props(
9873
- {
9874
- get required() {
9875
- return required();
9876
- },
9877
- get compact() {
9878
- return compact();
9879
- },
9880
- get selectionButton() {
9881
- return selectionButton();
9882
- },
9883
- get inline() {
9884
- return inline();
9885
- },
9886
- get invalidText() {
9887
- return invalidText();
9888
- },
9889
- onchange
9044
+ Fieldset($$anchor, spread_props(
9045
+ {
9046
+ get required() {
9047
+ return required();
9890
9048
  },
9891
- () => restProps,
9892
- {
9893
- get invalid() {
9894
- return invalid();
9895
- },
9896
- set invalid($$value) {
9897
- invalid($$value);
9898
- },
9899
- get rootElement() {
9900
- return get(fieldsetElement);
9901
- },
9902
- set rootElement($$value) {
9903
- set(fieldsetElement, $$value, true);
9904
- },
9905
- children: wrap_snippet(ChoiceGroup, ($$anchor, $$slotProps) => {
9906
- var fragment_1 = comment();
9907
- var node = first_child(fragment_1);
9049
+ get compact() {
9050
+ return compact();
9051
+ },
9052
+ get selectionButton() {
9053
+ return selectionButton();
9054
+ },
9055
+ get inline() {
9056
+ return inline();
9057
+ },
9058
+ get invalidText() {
9059
+ return invalidText();
9060
+ },
9061
+ onchange
9062
+ },
9063
+ () => restProps,
9064
+ {
9065
+ get invalid() {
9066
+ return invalid();
9067
+ },
9068
+ set invalid($$value) {
9069
+ invalid($$value);
9070
+ },
9071
+ get rootElement() {
9072
+ return get(fieldsetElement);
9073
+ },
9074
+ set rootElement($$value) {
9075
+ set(fieldsetElement, $$value, true);
9076
+ },
9077
+ children: ($$anchor, $$slotProps) => {
9078
+ var fragment_1 = comment();
9079
+ var node = first_child(fragment_1);
9908
9080
 
9909
- snippet(node, children);
9910
- append($$anchor, fragment_1);
9911
- }),
9912
- $$slots: { default: true }
9913
- }
9914
- ));
9915
- }
9081
+ snippet(node, children);
9082
+ append($$anchor, fragment_1);
9083
+ },
9084
+ $$slots: { default: true }
9085
+ }
9086
+ ));
9916
9087
 
9917
9088
  return pop({
9918
9089
  get invalid() {
@@ -9977,8 +9148,7 @@
9977
9148
  set required($$value) {
9978
9149
  required($$value);
9979
9150
  flushSync();
9980
- },
9981
- ...legacy_api()
9151
+ }
9982
9152
  });
9983
9153
  }
9984
9154
 
@@ -10000,16 +9170,11 @@
10000
9170
  true
10001
9171
  );
10002
9172
 
10003
- ChoiceGroupWC[FILENAME] = 'src/sdg/components/ChoiceGroup/ChoiceGroupWC.svelte';
10004
-
10005
- var root$a = add_locations(template(`<!> <link rel="stylesheet">`, 1), ChoiceGroupWC[FILENAME], [[47, 0]]);
9173
+ var root$a = template(`<!> <link rel="stylesheet">`, 1);
10006
9174
 
10007
9175
  function ChoiceGroupWC($$anchor, $$props) {
10008
- check_target(new.target);
10009
9176
  push($$props, true);
10010
9177
 
10011
- var $$ownership_validator = create_ownership_validator($$props);
10012
-
10013
9178
  let name = prop($$props, 'name', 7),
10014
9179
  legend = prop($$props, 'legend', 7),
10015
9180
  compact = prop($$props, 'compact', 7),
@@ -10023,51 +9188,47 @@
10023
9188
  var fragment = root$a();
10024
9189
  var node = first_child(fragment);
10025
9190
 
10026
- {
10027
- $$ownership_validator.binding('invalid', ChoiceGroup, invalid);
10028
-
10029
- ChoiceGroup(node, {
10030
- get name() {
10031
- return name();
10032
- },
10033
- get legend() {
10034
- return legend();
10035
- },
10036
- get compact() {
10037
- return compact();
10038
- },
10039
- get required() {
10040
- return required();
10041
- },
10042
- get invalidText() {
10043
- return invalidText();
10044
- },
10045
- get selectionButton() {
10046
- return selectionButton();
10047
- },
10048
- get columnCount() {
10049
- return columnCount();
10050
- },
10051
- get inline() {
10052
- return inline();
10053
- },
10054
- host: $$props.$$host,
10055
- get invalid() {
10056
- return invalid();
10057
- },
10058
- set invalid($$value) {
10059
- invalid($$value);
10060
- },
10061
- children: wrap_snippet(ChoiceGroupWC, ($$anchor, $$slotProps) => {
10062
- var fragment_1 = comment();
10063
- var node_1 = first_child(fragment_1);
9191
+ ChoiceGroup(node, {
9192
+ get name() {
9193
+ return name();
9194
+ },
9195
+ get legend() {
9196
+ return legend();
9197
+ },
9198
+ get compact() {
9199
+ return compact();
9200
+ },
9201
+ get required() {
9202
+ return required();
9203
+ },
9204
+ get invalidText() {
9205
+ return invalidText();
9206
+ },
9207
+ get selectionButton() {
9208
+ return selectionButton();
9209
+ },
9210
+ get columnCount() {
9211
+ return columnCount();
9212
+ },
9213
+ get inline() {
9214
+ return inline();
9215
+ },
9216
+ host: $$props.$$host,
9217
+ get invalid() {
9218
+ return invalid();
9219
+ },
9220
+ set invalid($$value) {
9221
+ invalid($$value);
9222
+ },
9223
+ children: ($$anchor, $$slotProps) => {
9224
+ var fragment_1 = comment();
9225
+ var node_1 = first_child(fragment_1);
10064
9226
 
10065
- slot(node_1, $$props, 'default', {}, null);
10066
- append($$anchor, fragment_1);
10067
- }),
10068
- $$slots: { default: true }
10069
- });
10070
- }
9227
+ slot(node_1, $$props, 'default', {});
9228
+ append($$anchor, fragment_1);
9229
+ },
9230
+ $$slots: { default: true }
9231
+ });
10071
9232
 
10072
9233
  var link = sibling(node, 2);
10073
9234
 
@@ -10137,8 +9298,7 @@
10137
9298
  set inline($$value) {
10138
9299
  inline($$value);
10139
9300
  flushSync();
10140
- },
10141
- ...legacy_api()
9301
+ }
10142
9302
  });
10143
9303
  }
10144
9304
 
@@ -10163,18 +9323,13 @@
10163
9323
  true
10164
9324
  ));
10165
9325
 
10166
- Checkbox[FILENAME] = 'src/sdg/components/Checkbox/Checkbox.svelte';
10167
-
10168
- var root_2$4 = add_locations(template(`<span class="qc-required" aria-hidden="true">*</span>`), Checkbox[FILENAME], [[56, 4]]);
10169
- var root$9 = add_locations(template(`<div><!> <!> <!></div>`), Checkbox[FILENAME], [[64, 4]]);
9326
+ var root_2$4 = template(`<span class="qc-required" aria-hidden="true">*</span>`);
9327
+ var root$9 = template(`<div><!> <!> <!></div>`);
10170
9328
 
10171
9329
  function Checkbox($$anchor, $$props) {
10172
- check_target(new.target);
10173
9330
  push($$props, true);
10174
9331
 
10175
- const requiredSpanSnippet = wrap_snippet(Checkbox, function ($$anchor) {
10176
- validate_snippet_args(...arguments);
10177
-
9332
+ const requiredSpanSnippet = ($$anchor) => {
10178
9333
  var fragment = comment();
10179
9334
  var node = first_child(fragment);
10180
9335
 
@@ -10192,7 +9347,7 @@
10192
9347
  }
10193
9348
 
10194
9349
  append($$anchor, fragment);
10195
- });
9350
+ };
10196
9351
 
10197
9352
  Utils.getPageLanguage();
10198
9353
  const qcCheckoxContext = getContext("qc-checkbox");
@@ -10371,8 +9526,7 @@
10371
9526
  set input($$value) {
10372
9527
  input($$value);
10373
9528
  flushSync();
10374
- },
10375
- ...legacy_api()
9529
+ }
10376
9530
  });
10377
9531
  }
10378
9532
 
@@ -10399,16 +9553,10 @@
10399
9553
  true
10400
9554
  );
10401
9555
 
10402
- CheckboxWC[FILENAME] = 'src/sdg/components/Checkbox/CheckboxWC.svelte';
10403
-
10404
- var root$8 = add_locations(template(`<!> <link rel="stylesheet">`, 1), CheckboxWC[FILENAME], [[49, 0]]);
9556
+ var root$8 = template(`<!> <link rel="stylesheet">`, 1);
10405
9557
 
10406
9558
  function CheckboxWC($$anchor, $$props) {
10407
- check_target(new.target);
10408
9559
  push($$props, true);
10409
-
10410
- var $$ownership_validator = create_ownership_validator($$props);
10411
-
10412
9560
  setContext('qc-checkbox', true);
10413
9561
 
10414
9562
  let required = prop($$props, 'required', 15, false),
@@ -10429,47 +9577,43 @@
10429
9577
  var fragment = root$8();
10430
9578
  var node = first_child(fragment);
10431
9579
 
10432
- {
10433
- $$ownership_validator.binding('invalid', Checkbox, invalid);
10434
-
10435
- Checkbox(node, {
10436
- get compact() {
10437
- return compact();
10438
- },
10439
- get required() {
10440
- return required();
10441
- },
10442
- get invalidText() {
10443
- return invalidText();
10444
- },
10445
- get labelElement() {
10446
- return get(labelElement);
10447
- },
10448
- get input() {
10449
- return get(input);
10450
- },
10451
- get invalid() {
10452
- return invalid();
10453
- },
10454
- set invalid($$value) {
10455
- invalid($$value);
10456
- },
10457
- get requiredSpan() {
10458
- return get(requiredSpan);
10459
- },
10460
- set requiredSpan($$value) {
10461
- set(requiredSpan, $$value, true);
10462
- },
10463
- children: wrap_snippet(CheckboxWC, ($$anchor, $$slotProps) => {
10464
- var fragment_1 = comment();
10465
- var node_1 = first_child(fragment_1);
9580
+ Checkbox(node, {
9581
+ get compact() {
9582
+ return compact();
9583
+ },
9584
+ get required() {
9585
+ return required();
9586
+ },
9587
+ get invalidText() {
9588
+ return invalidText();
9589
+ },
9590
+ get labelElement() {
9591
+ return get(labelElement);
9592
+ },
9593
+ get input() {
9594
+ return get(input);
9595
+ },
9596
+ get invalid() {
9597
+ return invalid();
9598
+ },
9599
+ set invalid($$value) {
9600
+ invalid($$value);
9601
+ },
9602
+ get requiredSpan() {
9603
+ return get(requiredSpan);
9604
+ },
9605
+ set requiredSpan($$value) {
9606
+ set(requiredSpan, $$value, true);
9607
+ },
9608
+ children: ($$anchor, $$slotProps) => {
9609
+ var fragment_1 = comment();
9610
+ var node_1 = first_child(fragment_1);
10466
9611
 
10467
- slot(node_1, $$props, 'default', {}, null);
10468
- append($$anchor, fragment_1);
10469
- }),
10470
- $$slots: { default: true }
10471
- });
10472
- }
9612
+ slot(node_1, $$props, 'default', {});
9613
+ append($$anchor, fragment_1);
9614
+ },
9615
+ $$slots: { default: true }
9616
+ });
10473
9617
 
10474
9618
  var link = sibling(node, 2);
10475
9619
 
@@ -10504,8 +9648,7 @@
10504
9648
  set invalidText($$value) {
10505
9649
  invalidText($$value);
10506
9650
  flushSync();
10507
- },
10508
- ...legacy_api()
9651
+ }
10509
9652
  });
10510
9653
  }
10511
9654
 
@@ -10522,12 +9665,9 @@
10522
9665
  true
10523
9666
  ));
10524
9667
 
10525
- Label[FILENAME] = 'src/sdg/components/Label/Label.svelte';
10526
-
10527
- var root$7 = add_locations(template(`<label><!></label>`), Label[FILENAME], [[16, 0]]);
9668
+ var root$7 = template(`<label><!></label>`);
10528
9669
 
10529
9670
  function Label($$anchor, $$props) {
10530
- check_target(new.target);
10531
9671
  push($$props, true);
10532
9672
 
10533
9673
  let forId = prop($$props, 'forId', 7),
@@ -10537,21 +9677,19 @@
10537
9677
  bold = prop($$props, 'bold', 7, false),
10538
9678
  disabled = prop($$props, 'disabled', 7, false),
10539
9679
  rootElement = prop($$props, 'rootElement', 15),
10540
- rest = rest_props(
10541
- $$props,
10542
- [
10543
- '$$slots',
10544
- '$$events',
10545
- '$$legacy',
10546
- '$$host',
10547
- 'forId',
10548
- 'text',
10549
- 'required',
10550
- 'compact',
10551
- 'bold',
10552
- 'disabled',
10553
- 'rootElement'
10554
- ]);
9680
+ rest = rest_props($$props, [
9681
+ '$$slots',
9682
+ '$$events',
9683
+ '$$legacy',
9684
+ '$$host',
9685
+ 'forId',
9686
+ 'text',
9687
+ 'required',
9688
+ 'compact',
9689
+ 'bold',
9690
+ 'disabled',
9691
+ 'rootElement'
9692
+ ]);
10555
9693
 
10556
9694
  var label = root$7();
10557
9695
  let attributes;
@@ -10631,8 +9769,7 @@
10631
9769
  set rootElement($$value) {
10632
9770
  rootElement($$value);
10633
9771
  flushSync();
10634
- },
10635
- ...legacy_api()
9772
+ }
10636
9773
  });
10637
9774
  }
10638
9775
 
@@ -10670,22 +9807,15 @@
10670
9807
  setTextFieldRow(input.closest('.qc-formfield-row'));
10671
9808
  }
10672
9809
 
10673
- TextField[FILENAME] = 'src/sdg/components/TextField/TextField.svelte';
10674
-
10675
- var root_3$2 = add_locations(template(`<div class="qc-description"><!></div>`), TextField[FILENAME], [[131, 8]]);
10676
- var root_4$1 = add_locations(template(`<div aria-live="polite"><!></div>`), TextField[FILENAME], [[142, 8]]);
10677
- var root_1$3 = add_locations(template(`<!> <!> <!> <!> <!>`, 1), TextField[FILENAME], []);
10678
- var root_6 = add_locations(template(`<div class="qc-textfield"><!></div>`), TextField[FILENAME], [[166, 4]]);
9810
+ var root_3$2 = template(`<div class="qc-description"><!></div>`);
9811
+ var root_4$1 = template(`<div aria-live="polite"><!></div>`);
9812
+ var root_1$3 = template(`<!> <!> <!> <!> <!>`, 1);
9813
+ var root_6 = template(`<div class="qc-textfield"><!></div>`);
10679
9814
 
10680
9815
  function TextField($$anchor, $$props) {
10681
- check_target(new.target);
10682
9816
  push($$props, true);
10683
9817
 
10684
- var $$ownership_validator = create_ownership_validator($$props);
10685
-
10686
- const textfield = wrap_snippet(TextField, function ($$anchor) {
10687
- validate_snippet_args(...arguments);
10688
-
9818
+ const textfield = ($$anchor) => {
10689
9819
  var fragment = root_1$3();
10690
9820
  var node = first_child(fragment);
10691
9821
 
@@ -10694,30 +9824,26 @@
10694
9824
  const expression = user_derived(() => input()?.disabled);
10695
9825
  const expression_1 = user_derived(() => input()?.id);
10696
9826
 
10697
- {
10698
- $$ownership_validator.binding('labelElement', Label, labelElement);
10699
-
10700
- Label($$anchor, {
10701
- get required() {
10702
- return required();
10703
- },
10704
- get disabled() {
10705
- return get(expression);
10706
- },
10707
- get text() {
10708
- return label();
10709
- },
10710
- get forId() {
10711
- return get(expression_1);
10712
- },
10713
- get rootElement() {
10714
- return labelElement();
10715
- },
10716
- set rootElement($$value) {
10717
- labelElement($$value);
10718
- }
10719
- });
10720
- }
9827
+ Label($$anchor, {
9828
+ get required() {
9829
+ return required();
9830
+ },
9831
+ get disabled() {
9832
+ return get(expression);
9833
+ },
9834
+ get text() {
9835
+ return label();
9836
+ },
9837
+ get forId() {
9838
+ return get(expression_1);
9839
+ },
9840
+ get rootElement() {
9841
+ return labelElement();
9842
+ },
9843
+ set rootElement($$value) {
9844
+ labelElement($$value);
9845
+ }
9846
+ });
10721
9847
  };
10722
9848
 
10723
9849
  if_block(node, ($$render) => {
@@ -10773,7 +9899,7 @@
10773
9899
  };
10774
9900
 
10775
9901
  if_block(node_4, ($$render) => {
10776
- if (strict_equals(maxlength(), null, false)) $$render(consequent_2);
9902
+ if (maxlength() !== null) $$render(consequent_2);
10777
9903
  });
10778
9904
  }
10779
9905
 
@@ -10781,37 +9907,33 @@
10781
9907
  const expression_2 = user_derived(() => invalidText() ? invalidText() : get(defaultInvalidText));
10782
9908
  const expression_3 = user_derived(() => label() ? label() : input()?.getAttribute("aria-label"));
10783
9909
 
10784
- {
10785
- $$ownership_validator.binding('formErrorElement', FormError, formErrorElement);
10786
-
10787
- FormError(node_6, {
10788
- get invalid() {
10789
- return invalid();
10790
- },
10791
- get invalidText() {
10792
- return get(expression_2);
10793
- },
10794
- get label() {
10795
- return get(expression_3);
10796
- },
10797
- extraClasses: ['qc-xs-mt'],
10798
- get id() {
10799
- return get(errorId);
10800
- },
10801
- set id($$value) {
10802
- set(errorId, $$value, true);
10803
- },
10804
- get rootElement() {
10805
- return formErrorElement();
10806
- },
10807
- set rootElement($$value) {
10808
- formErrorElement($$value);
10809
- }
10810
- });
10811
- }
9910
+ FormError(node_6, {
9911
+ get invalid() {
9912
+ return invalid();
9913
+ },
9914
+ get invalidText() {
9915
+ return get(expression_2);
9916
+ },
9917
+ get label() {
9918
+ return get(expression_3);
9919
+ },
9920
+ extraClasses: ['qc-xs-mt'],
9921
+ get id() {
9922
+ return get(errorId);
9923
+ },
9924
+ set id($$value) {
9925
+ set(errorId, $$value, true);
9926
+ },
9927
+ get rootElement() {
9928
+ return formErrorElement();
9929
+ },
9930
+ set rootElement($$value) {
9931
+ formErrorElement($$value);
9932
+ }
9933
+ });
10812
9934
 
10813
9935
  append($$anchor, fragment);
10814
- });
9936
+ };
10815
9937
 
10816
9938
  const lang = Utils.getPageLanguage();
10817
9939
 
@@ -10841,7 +9963,7 @@
10841
9963
  textFieldRow = state(void 0),
10842
9964
  defaultInvalidText = user_derived(() => {
10843
9965
  if (!maxlengthReached()) return '';
10844
- return strict_equals(lang, 'fr') ? `La limite de caractères du champ ${label()} est dépassée.` : `The character limit for the ${label()} field has been exceeded.`;
9966
+ 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.`;
10845
9967
  });
10846
9968
 
10847
9969
  onMount(() => {
@@ -10884,7 +10006,7 @@
10884
10006
 
10885
10007
  const s = over > 1 ? 's' : '';
10886
10008
 
10887
- set(charCountText, remaining >= 0 ? strict_equals(lang, 'fr') ? `${remaining} caractère${s} restant${s}` : `${remaining} character${s} remaining` : strict_equals(lang, 'fr') ? `${over} caractère${s} en trop` : `${over} character${s} over the limit`, true);
10009
+ 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);
10888
10010
  });
10889
10011
 
10890
10012
  // Génération des ID pour le aria-describedby
@@ -11054,8 +10176,7 @@
11054
10176
  set children($$value) {
11055
10177
  children($$value);
11056
10178
  flushSync();
11057
- },
11058
- ...legacy_api()
10179
+ }
11059
10180
  });
11060
10181
  }
11061
10182
 
@@ -11085,16 +10206,10 @@
11085
10206
  true
11086
10207
  );
11087
10208
 
11088
- TextFieldWC[FILENAME] = 'src/sdg/components/TextField/TextFieldWC.svelte';
11089
-
11090
- var root$6 = add_locations(template(`<!> <link rel="stylesheet">`, 1), TextFieldWC[FILENAME], [[90, 0]]);
10209
+ var root$6 = template(`<!> <link rel="stylesheet">`, 1);
11091
10210
 
11092
10211
  function TextFieldWC($$anchor, $$props) {
11093
- check_target(new.target);
11094
10212
  push($$props, true);
11095
-
11096
- var $$ownership_validator = create_ownership_validator($$props);
11097
-
11098
10213
  setContext('webComponentMode', true);
11099
10214
 
11100
10215
  let invalid = prop($$props, 'invalid', 15, false),
@@ -11146,89 +10261,82 @@
11146
10261
  var fragment = root$6();
11147
10262
  var node = first_child(fragment);
11148
10263
 
11149
- {
11150
- $$ownership_validator.binding('invalid', TextField, invalid);
11151
- $$ownership_validator.binding('invalidText', TextField, invalidText);
11152
- $$ownership_validator.binding('maxlengthReached', TextField, maxlengthReached);
11153
- $$ownership_validator.binding('invalidAtSubmit', TextField, invalidAtSubmit);
11154
-
11155
- TextField(node, {
11156
- get label() {
11157
- return label();
11158
- },
11159
- get description() {
11160
- return description();
11161
- },
11162
- get input() {
11163
- return get(input);
11164
- },
11165
- get required() {
11166
- return required();
11167
- },
11168
- get maxlength() {
11169
- return maxlength();
11170
- },
11171
- get value() {
11172
- return get(value);
11173
- },
11174
- get invalid() {
11175
- return invalid();
11176
- },
11177
- set invalid($$value) {
11178
- invalid($$value);
11179
- },
11180
- get invalidText() {
11181
- return invalidText();
11182
- },
11183
- set invalidText($$value) {
11184
- invalidText($$value);
11185
- },
11186
- get maxlengthReached() {
11187
- return maxlengthReached();
11188
- },
11189
- set maxlengthReached($$value) {
11190
- maxlengthReached($$value);
11191
- },
11192
- get invalidAtSubmit() {
11193
- return invalidAtSubmit();
11194
- },
11195
- set invalidAtSubmit($$value) {
11196
- invalidAtSubmit($$value);
11197
- },
11198
- get labelElement() {
11199
- return get(labelElement);
11200
- },
11201
- set labelElement($$value) {
11202
- set(labelElement, $$value, true);
11203
- },
11204
- get formErrorElement() {
11205
- return get(formErrorElement);
11206
- },
11207
- set formErrorElement($$value) {
11208
- set(formErrorElement, $$value, true);
11209
- },
11210
- get descriptionElement() {
11211
- return get(descriptionElement);
11212
- },
11213
- set descriptionElement($$value) {
11214
- set(descriptionElement, $$value, true);
11215
- },
11216
- get maxlengthElement() {
11217
- return get(maxlengthElement);
11218
- },
11219
- set maxlengthElement($$value) {
11220
- set(maxlengthElement, $$value, true);
11221
- },
11222
- children: wrap_snippet(TextFieldWC, ($$anchor, $$slotProps) => {
11223
- var fragment_1 = comment();
11224
- var node_1 = first_child(fragment_1);
10264
+ TextField(node, {
10265
+ get label() {
10266
+ return label();
10267
+ },
10268
+ get description() {
10269
+ return description();
10270
+ },
10271
+ get input() {
10272
+ return get(input);
10273
+ },
10274
+ get required() {
10275
+ return required();
10276
+ },
10277
+ get maxlength() {
10278
+ return maxlength();
10279
+ },
10280
+ get value() {
10281
+ return get(value);
10282
+ },
10283
+ get invalid() {
10284
+ return invalid();
10285
+ },
10286
+ set invalid($$value) {
10287
+ invalid($$value);
10288
+ },
10289
+ get invalidText() {
10290
+ return invalidText();
10291
+ },
10292
+ set invalidText($$value) {
10293
+ invalidText($$value);
10294
+ },
10295
+ get maxlengthReached() {
10296
+ return maxlengthReached();
10297
+ },
10298
+ set maxlengthReached($$value) {
10299
+ maxlengthReached($$value);
10300
+ },
10301
+ get invalidAtSubmit() {
10302
+ return invalidAtSubmit();
10303
+ },
10304
+ set invalidAtSubmit($$value) {
10305
+ invalidAtSubmit($$value);
10306
+ },
10307
+ get labelElement() {
10308
+ return get(labelElement);
10309
+ },
10310
+ set labelElement($$value) {
10311
+ set(labelElement, $$value, true);
10312
+ },
10313
+ get formErrorElement() {
10314
+ return get(formErrorElement);
10315
+ },
10316
+ set formErrorElement($$value) {
10317
+ set(formErrorElement, $$value, true);
10318
+ },
10319
+ get descriptionElement() {
10320
+ return get(descriptionElement);
10321
+ },
10322
+ set descriptionElement($$value) {
10323
+ set(descriptionElement, $$value, true);
10324
+ },
10325
+ get maxlengthElement() {
10326
+ return get(maxlengthElement);
10327
+ },
10328
+ set maxlengthElement($$value) {
10329
+ set(maxlengthElement, $$value, true);
10330
+ },
10331
+ children: ($$anchor, $$slotProps) => {
10332
+ var fragment_1 = comment();
10333
+ var node_1 = first_child(fragment_1);
11225
10334
 
11226
- slot(node_1, $$props, 'default', {}, null);
11227
- append($$anchor, fragment_1);
11228
- }),
11229
- $$slots: { default: true }
11230
- });
11231
- }
10335
+ slot(node_1, $$props, 'default', {});
10336
+ append($$anchor, fragment_1);
10337
+ },
10338
+ $$slots: { default: true }
10339
+ });
11232
10340
 
11233
10341
  var link = sibling(node, 2);
11234
10342
 
@@ -11291,8 +10399,7 @@
11291
10399
  set invalidAtSubmit($$value = false) {
11292
10400
  invalidAtSubmit($$value);
11293
10401
  flushSync();
11294
- },
11295
- ...legacy_api()
10402
+ }
11296
10403
  });
11297
10404
  }
11298
10405
 
@@ -11318,12 +10425,9 @@
11318
10425
  true
11319
10426
  ));
11320
10427
 
11321
- Button[FILENAME] = 'src/sdg/components/Button/Button.svelte';
11322
-
11323
- var root$5 = add_locations(template(`<button><!> <!></button>`), Button[FILENAME], [[28, 0]]);
10428
+ var root$5 = template(`<button><!> <!></button>`);
11324
10429
 
11325
10430
  function Button($$anchor, $$props) {
11326
- check_target(new.target);
11327
10431
  push($$props, true);
11328
10432
 
11329
10433
  let variant = prop($$props, 'variant', 7, "primary"),
@@ -11334,22 +10438,20 @@
11334
10438
  icon = prop($$props, 'icon', 7, ""),
11335
10439
  iconPosition = prop($$props, 'iconPosition', 7, "left"),
11336
10440
  iconSrc = prop($$props, 'iconSrc', 7, ""),
11337
- rest = rest_props(
11338
- $$props,
11339
- [
11340
- '$$slots',
11341
- '$$events',
11342
- '$$legacy',
11343
- '$$host',
11344
- 'variant',
11345
- 'disabled',
11346
- 'compact',
11347
- 'rounded',
11348
- 'label',
11349
- 'icon',
11350
- 'iconPosition',
11351
- 'iconSrc'
11352
- ]);
10441
+ rest = rest_props($$props, [
10442
+ '$$slots',
10443
+ '$$events',
10444
+ '$$legacy',
10445
+ '$$host',
10446
+ 'variant',
10447
+ 'disabled',
10448
+ 'compact',
10449
+ 'rounded',
10450
+ 'label',
10451
+ 'icon',
10452
+ 'iconPosition',
10453
+ 'iconSrc'
10454
+ ]);
11353
10455
 
11354
10456
  let className = state(void 0);
11355
10457
 
@@ -11413,7 +10515,7 @@
11413
10515
  };
11414
10516
 
11415
10517
  if_block(node, ($$render) => {
11416
- if (strict_equals(iconPosition(), "left")) $$render(consequent_2);
10518
+ if (iconPosition() === "left") $$render(consequent_2);
11417
10519
  });
11418
10520
  }
11419
10521
 
@@ -11463,7 +10565,7 @@
11463
10565
  };
11464
10566
 
11465
10567
  if_block(node_2, ($$render) => {
11466
- if (icon() && strict_equals(iconPosition(), "right")) $$render(consequent_5);
10568
+ if (icon() && iconPosition() === "right") $$render(consequent_5);
11467
10569
  });
11468
10570
  }
11469
10571
 
@@ -11537,8 +10639,7 @@
11537
10639
  set iconSrc($$value = "") {
11538
10640
  iconSrc($$value);
11539
10641
  flushSync();
11540
- },
11541
- ...legacy_api()
10642
+ }
11542
10643
  });
11543
10644
  }
11544
10645
 
@@ -11559,10 +10660,7 @@
11559
10660
  true
11560
10661
  );
11561
10662
 
11562
- ButtonWC[FILENAME] = 'src/sdg/components/Button/ButtonWC.svelte';
11563
-
11564
10663
  function ButtonWC($$anchor, $$props) {
11565
- check_target(new.target);
11566
10664
  push($$props, true);
11567
10665
 
11568
10666
  let variant = prop($$props, 'variant', 7, "primary"),
@@ -11570,19 +10668,17 @@
11570
10668
  compact = prop($$props, 'compact', 7, false),
11571
10669
  rounded = prop($$props, 'rounded', 7, false),
11572
10670
  label = prop($$props, 'label', 7, ""),
11573
- rest = rest_props(
11574
- $$props,
11575
- [
11576
- '$$slots',
11577
- '$$events',
11578
- '$$legacy',
11579
- '$$host',
11580
- 'variant',
11581
- 'disabled',
11582
- 'compact',
11583
- 'rounded',
11584
- 'label'
11585
- ]);
10671
+ rest = rest_props($$props, [
10672
+ '$$slots',
10673
+ '$$events',
10674
+ '$$legacy',
10675
+ '$$host',
10676
+ 'variant',
10677
+ 'disabled',
10678
+ 'compact',
10679
+ 'rounded',
10680
+ 'label'
10681
+ ]);
11586
10682
 
11587
10683
  Button($$anchor, spread_props(
11588
10684
  {
@@ -11640,8 +10736,7 @@
11640
10736
  set label($$value = "") {
11641
10737
  label($$value);
11642
10738
  flushSync();
11643
- },
11644
- ...legacy_api()
10739
+ }
11645
10740
  });
11646
10741
  }
11647
10742
 
@@ -11662,18 +10757,9 @@
11662
10757
  false
11663
10758
  ));
11664
10759
 
11665
- ToggleSwitch[FILENAME] = 'src/sdg/components/ToggleSwitch/ToggleSwitch.svelte';
11666
-
11667
- var root$4 = add_locations(template(`<label><input type="checkbox" role="switch"> <span><!></span> <span class="qc-switch-slider"></span></label>`), ToggleSwitch[FILENAME], [
11668
- [
11669
- 17,
11670
- 0,
11671
- [[20, 4], [28, 4], [33, 4]]
11672
- ]
11673
- ]);
10760
+ var root$4 = template(`<label><input type="checkbox" role="switch"> <span><!></span> <span class="qc-switch-slider"></span></label>`);
11674
10761
 
11675
10762
  function ToggleSwitch($$anchor, $$props) {
11676
- check_target(new.target);
11677
10763
  push($$props, true);
11678
10764
 
11679
10765
  let label = prop($$props, 'label', 7),
@@ -11684,7 +10770,7 @@
11684
10770
  textAlign = prop($$props, 'textAlign', 7);
11685
10771
 
11686
10772
  const usedId = "toggle-switch-" + (id() ? id() : Math.random().toString(36));
11687
- let usedLabelTextAlignment = strict_equals(textAlign()?.toLowerCase(), "end") ? "end" : "start";
10773
+ let usedLabelTextAlignment = textAlign()?.toLowerCase() === "end" ? "end" : "start";
11688
10774
  var label_1 = root$4();
11689
10775
 
11690
10776
  set_attribute(label_1, 'for', usedId);
@@ -11698,7 +10784,7 @@
11698
10784
 
11699
10785
  set_class(span, 1, clsx([
11700
10786
  "qc-switch-label",
11701
- strict_equals(usedLabelTextAlignment, "end") && "qc-switch-label-end"
10787
+ usedLabelTextAlignment === "end" && "qc-switch-label-end"
11702
10788
  ]));
11703
10789
 
11704
10790
  var node = child(span);
@@ -11762,8 +10848,7 @@
11762
10848
  set textAlign($$value) {
11763
10849
  textAlign($$value);
11764
10850
  flushSync();
11765
- },
11766
- ...legacy_api()
10851
+ }
11767
10852
  });
11768
10853
  }
11769
10854
 
@@ -11782,34 +10867,27 @@
11782
10867
  true
11783
10868
  );
11784
10869
 
11785
- ToggleSwitchWC[FILENAME] = 'src/sdg/components/ToggleSwitch/ToggleSwitchWC.svelte';
11786
-
11787
10870
  function ToggleSwitchWC($$anchor, $$props) {
11788
- check_target(new.target);
11789
10871
  push($$props, true);
11790
10872
 
11791
- var $$ownership_validator = create_ownership_validator($$props);
11792
-
11793
10873
  let id = prop($$props, 'id', 7),
11794
10874
  label = prop($$props, 'label', 7),
11795
10875
  checked = prop($$props, 'checked', 15, false),
11796
10876
  disabled = prop($$props, 'disabled', 7, false),
11797
10877
  justified = prop($$props, 'justified', 7, false),
11798
10878
  textAlign = prop($$props, 'textAlign', 7),
11799
- rest = rest_props(
11800
- $$props,
11801
- [
11802
- '$$slots',
11803
- '$$events',
11804
- '$$legacy',
11805
- '$$host',
11806
- 'id',
11807
- 'label',
11808
- 'checked',
11809
- 'disabled',
11810
- 'justified',
11811
- 'textAlign'
11812
- ]);
10879
+ rest = rest_props($$props, [
10880
+ '$$slots',
10881
+ '$$events',
10882
+ '$$legacy',
10883
+ '$$host',
10884
+ 'id',
10885
+ 'label',
10886
+ 'checked',
10887
+ 'disabled',
10888
+ 'justified',
10889
+ 'textAlign'
10890
+ ]);
11813
10891
 
11814
10892
  let parent = state(void 0);
11815
10893
  let index;
@@ -11847,35 +10925,31 @@
11847
10925
 
11848
10926
  {
11849
10927
  var consequent = ($$anchor) => {
11850
- {
11851
- $$ownership_validator.binding('checked', ToggleSwitch, checked);
11852
-
11853
- ToggleSwitch($$anchor, spread_props(
11854
- {
11855
- get label() {
11856
- return label();
11857
- },
11858
- get disabled() {
11859
- return disabled();
11860
- },
11861
- get justified() {
11862
- return justified();
11863
- },
11864
- get textAlign() {
11865
- return textAlign();
11866
- }
10928
+ ToggleSwitch($$anchor, spread_props(
10929
+ {
10930
+ get label() {
10931
+ return label();
11867
10932
  },
11868
- () => rest,
11869
- {
11870
- get checked() {
11871
- return checked();
11872
- },
11873
- set checked($$value) {
11874
- checked($$value);
11875
- }
10933
+ get disabled() {
10934
+ return disabled();
10935
+ },
10936
+ get justified() {
10937
+ return justified();
10938
+ },
10939
+ get textAlign() {
10940
+ return textAlign();
11876
10941
  }
11877
- ));
11878
- }
10942
+ },
10943
+ () => rest,
10944
+ {
10945
+ get checked() {
10946
+ return checked();
10947
+ },
10948
+ set checked($$value) {
10949
+ checked($$value);
10950
+ }
10951
+ }
10952
+ ));
11879
10953
  };
11880
10954
 
11881
10955
  if_block(node, ($$render) => {
@@ -11927,8 +11001,7 @@
11927
11001
  set textAlign($$value) {
11928
11002
  textAlign($$value);
11929
11003
  flushSync();
11930
- },
11931
- ...legacy_api()
11004
+ }
11932
11005
  });
11933
11006
  }
11934
11007
 
@@ -11959,10 +11032,7 @@
11959
11032
  false
11960
11033
  ));
11961
11034
 
11962
- ToggleSwitchGroupWC[FILENAME] = 'src/sdg/components/ChoiceGroup/ToggleSwitchGroupWC.svelte';
11963
-
11964
11035
  function ToggleSwitchGroupWC($$anchor, $$props) {
11965
- check_target(new.target);
11966
11036
  push($$props, true);
11967
11037
 
11968
11038
  let disabled = prop($$props, 'disabled', 15, false),
@@ -11970,19 +11040,17 @@
11970
11040
  justified = prop($$props, 'justified', 7, false),
11971
11041
  textAlign = prop($$props, 'textAlign', 7),
11972
11042
  maxWidth = prop($$props, 'maxWidth', 7, "fit-content"),
11973
- rest = rest_props(
11974
- $$props,
11975
- [
11976
- '$$slots',
11977
- '$$events',
11978
- '$$legacy',
11979
- '$$host',
11980
- 'disabled',
11981
- 'items',
11982
- 'justified',
11983
- 'textAlign',
11984
- 'maxWidth'
11985
- ]);
11043
+ rest = rest_props($$props, [
11044
+ '$$slots',
11045
+ '$$events',
11046
+ '$$legacy',
11047
+ '$$host',
11048
+ 'disabled',
11049
+ 'items',
11050
+ 'justified',
11051
+ 'textAlign',
11052
+ 'maxWidth'
11053
+ ]);
11986
11054
 
11987
11055
  let usedWidth = user_derived(() => {
11988
11056
  if (maxWidth().match(/^\d+px$/) || maxWidth().match(/^\d*\.?\d*rem$/) || maxWidth().match(/^\d*\.?\d*em$/) || maxWidth().match(/^\d*\.?\d*%$/)) {
@@ -12001,13 +11069,11 @@
12001
11069
  },
12002
11070
  () => rest,
12003
11071
  {
12004
- children: wrap_snippet(ToggleSwitchGroupWC, ($$anchor, $$slotProps) => {
11072
+ children: ($$anchor, $$slotProps) => {
12005
11073
  var fragment_1 = comment();
12006
11074
  var node = first_child(fragment_1);
12007
11075
 
12008
11076
  each(node, 17, items, index, ($$anchor, item, $$index) => {
12009
- validate_binding('bind:checked={item.checked}', () => get(item), () => 'checked', 49, 12);
12010
-
12011
11077
  const expression = user_derived(() => get(item).disabled ?? disabled());
12012
11078
  const expression_1 = user_derived(() => justified() ?? get(item).justified);
12013
11079
  const expression_2 = user_derived(() => textAlign() ?? get(item).textAlign);
@@ -12038,7 +11104,7 @@
12038
11104
  });
12039
11105
 
12040
11106
  append($$anchor, fragment_1);
12041
- }),
11107
+ },
12042
11108
  $$slots: { default: true }
12043
11109
  }
12044
11110
  ));
@@ -12078,8 +11144,7 @@
12078
11144
  set maxWidth($$value = "fit-content") {
12079
11145
  maxWidth($$value);
12080
11146
  flushSync();
12081
- },
12082
- ...legacy_api()
11147
+ }
12083
11148
  });
12084
11149
  }
12085
11150
 
@@ -12098,15 +11163,12 @@
12098
11163
  false
12099
11164
  ));
12100
11165
 
12101
- DropdownListItemsSingle[FILENAME] = 'src/sdg/components/DropdownList/DropdownListItems/DropdownListItemsSingle/DropdownListItemsSingle.svelte';
12102
-
12103
11166
  var on_click$1 = (event, handleMouseUp, item) => handleMouseUp(event, get(item));
12104
- var root_3$1 = add_locations(template(`<span class="qc-sr-only"><!></span>`), DropdownListItemsSingle[FILENAME], [[129, 20]]);
12105
- var root_2$3 = add_locations(template(`<li tabindex="0" role="option"><!></li>`), DropdownListItemsSingle[FILENAME], [[113, 12]]);
12106
- var root_1$2 = add_locations(template(`<ul></ul>`), DropdownListItemsSingle[FILENAME], [[111, 4]]);
11167
+ var root_3$1 = template(`<span class="qc-sr-only"><!></span>`);
11168
+ var root_2$3 = template(`<li tabindex="0" role="option"><!></li>`);
11169
+ var root_1$2 = template(`<ul></ul>`);
12107
11170
 
12108
11171
  function DropdownListItemsSingle($$anchor, $$props) {
12109
- check_target(new.target);
12110
11172
  push($$props, true);
12111
11173
 
12112
11174
  const selectedElementCLass = "qc-dropdown-list-single-selected";
@@ -12135,7 +11197,7 @@
12135
11197
 
12136
11198
  function focusOnFirstMatchingElement(passedValue) {
12137
11199
  if (get(displayedItemsElements) && get(displayedItemsElements).length > 0) {
12138
- const foundElement = get(displayedItemsElements).find((el) => strict_equals(el.dataset.itemValue.toString(), passedValue.toString()));
11200
+ const foundElement = get(displayedItemsElements).find((el) => el.dataset.itemValue.toString() === passedValue.toString());
12139
11201
 
12140
11202
  if (foundElement) {
12141
11203
  foundElement.focus();
@@ -12147,8 +11209,8 @@
12147
11209
  event.preventDefault();
12148
11210
 
12149
11211
  if (!item.disabled) {
12150
- items().forEach((item) => assign(item, 'checked', false, 'src/​sdg/​components/​DropdownList/​DropdownListItems/​DropdownListItemsSingle/​DropdownListItemsSingle.svelte:45:34'));
12151
- items().find((option) => strict_equals(option.value, item.value)).checked = true;
11212
+ items().forEach((item) => item.checked = false);
11213
+ items().find((option) => option.value === item.value).checked = true;
12152
11214
  selectionCallback()();
12153
11215
  }
12154
11216
  }
@@ -12158,7 +11220,7 @@
12158
11220
  }
12159
11221
 
12160
11222
  function handleComboKey(event, index, item) {
12161
- if (strict_equals(event.key, "ArrowDown")) {
11223
+ if (event.key === "ArrowDown") {
12162
11224
  event.preventDefault();
12163
11225
  event.stopPropagation();
12164
11226
 
@@ -12167,7 +11229,7 @@
12167
11229
  }
12168
11230
  }
12169
11231
 
12170
- if (strict_equals(event.key, "ArrowUp")) {
11232
+ if (event.key === "ArrowUp") {
12171
11233
  event.preventDefault();
12172
11234
  event.stopPropagation();
12173
11235
 
@@ -12178,7 +11240,7 @@
12178
11240
  }
12179
11241
  }
12180
11242
 
12181
- if (strict_equals(event.key, "Enter") || strict_equals(event.key, " ")) {
11243
+ if (event.key === "Enter" || event.key === " ") {
12182
11244
  handleSelection(event, item);
12183
11245
  }
12184
11246
 
@@ -12198,7 +11260,7 @@
12198
11260
  }
12199
11261
 
12200
11262
  function canExit(event, index) {
12201
- return strict_equals(event.key, "Escape") || !event.shiftKey && strict_equals(event.key, "Tab") && strict_equals(index, displayedItems().length - 1);
11263
+ return event.key === "Escape" || !event.shiftKey && event.key === "Tab" && index === displayedItems().length - 1;
12202
11264
  }
12203
11265
 
12204
11266
  function itemsHaveIds() {
@@ -12220,8 +11282,6 @@
12220
11282
  var consequent_1 = ($$anchor) => {
12221
11283
  var ul = root_1$2();
12222
11284
 
12223
- validate_each_keys(displayedItems, (item) => item.id);
12224
-
12225
11285
  each(ul, 23, displayedItems, (item) => item.id, ($$anchor, item, index) => {
12226
11286
  var li = root_2$3();
12227
11287
 
@@ -12254,7 +11314,6 @@
12254
11314
  }
12255
11315
 
12256
11316
  reset(li);
12257
- validate_binding('bind:this={displayedItemsElements[index]}', () => get(displayedItemsElements), () => get(index));
12258
11317
  bind_this(li, ($$value, index) => get(displayedItemsElements)[index] = $$value, (index) => get(displayedItemsElements)?.[index], () => [get(index)]);
12259
11318
 
12260
11319
  template_effect(() => {
@@ -12285,15 +11344,9 @@
12285
11344
  append($$anchor, fragment);
12286
11345
 
12287
11346
  return pop({
12288
- get focusOnFirstElement() {
12289
- return focusOnFirstElement;
12290
- },
12291
- get focusOnLastElement() {
12292
- return focusOnLastElement;
12293
- },
12294
- get focusOnFirstMatchingElement() {
12295
- return focusOnFirstMatchingElement;
12296
- },
11347
+ focusOnFirstElement,
11348
+ focusOnLastElement,
11349
+ focusOnFirstMatchingElement,
12297
11350
  get items() {
12298
11351
  return items();
12299
11352
  },
@@ -12342,8 +11395,7 @@
12342
11395
  set handlePrintableCharacter($$value = () => {}) {
12343
11396
  handlePrintableCharacter($$value);
12344
11397
  flushSync();
12345
- },
12346
- ...legacy_api()
11398
+ }
12347
11399
  });
12348
11400
  }
12349
11401
 
@@ -12369,32 +11421,17 @@
12369
11421
  true
12370
11422
  );
12371
11423
 
12372
- DropdownListItemsMultiple[FILENAME] = 'src/sdg/components/DropdownList/DropdownListItems/DropdownListItemsMultiple/DropdownListItemsMultiple.svelte';
12373
-
12374
11424
  function handleChange(_, selectionCallback) {
12375
11425
  selectionCallback()();
12376
11426
  }
12377
11427
 
12378
11428
  var on_click = (e, handleLiClick, item) => handleLiClick(e, get(item));
12379
-
12380
- var root_2$2 = add_locations(template(`<li><label class="qc-choicefield-label" compact=""><input type="checkbox" class="qc-choicefield qc-compact"> <span> </span></label></li>`), DropdownListItemsMultiple[FILENAME], [
12381
- [
12382
- 153,
12383
- 12,
12384
- [
12385
- [163, 16, [[168, 20], [180, 20]]]
12386
- ]
12387
- ]
12388
- ]);
12389
-
12390
- var root_1$1 = add_locations(template(`<ul></ul>`), DropdownListItemsMultiple[FILENAME], [[147, 4]]);
11429
+ var root_2$2 = template(`<li><label class="qc-choicefield-label" compact=""><input type="checkbox" class="qc-choicefield qc-compact"> <span> </span></label></li>`);
11430
+ var root_1$1 = template(`<ul></ul>`);
12391
11431
 
12392
11432
  function DropdownListItemsMultiple($$anchor, $$props) {
12393
- check_target(new.target);
12394
11433
  push($$props, true);
12395
11434
 
12396
- var $$ownership_validator = create_ownership_validator($$props);
12397
-
12398
11435
  let displayedItems = prop($$props, 'displayedItems', 7),
12399
11436
  handleExit = prop($$props, 'handleExit', 7, () => {}),
12400
11437
  selectionCallback = prop($$props, 'selectionCallback', 7, () => {}),
@@ -12439,7 +11476,7 @@
12439
11476
  }
12440
11477
 
12441
11478
  function handleComboKey(event, index) {
12442
- if (strict_equals(event.key, "ArrowDown")) {
11479
+ if (event.key === "ArrowDown") {
12443
11480
  event.preventDefault();
12444
11481
  event.stopPropagation();
12445
11482
 
@@ -12452,7 +11489,7 @@
12452
11489
  }
12453
11490
  }
12454
11491
 
12455
- if (strict_equals(event.key, "ArrowUp")) {
11492
+ if (event.key === "ArrowUp") {
12456
11493
  event.preventDefault();
12457
11494
  event.stopPropagation();
12458
11495
 
@@ -12467,13 +11504,13 @@
12467
11504
  }
12468
11505
  }
12469
11506
 
12470
- if (strict_equals(event.key, "Enter")) {
11507
+ if (event.key === "Enter") {
12471
11508
  event.preventDefault();
12472
11509
  event.stopPropagation();
12473
11510
 
12474
11511
  if (displayedItems().length > 0 && !displayedItems()[index].disabled) {
12475
11512
  event.target.checked = !event.target.checked;
12476
- $$ownership_validator.mutation('displayedItems', ['displayedItems', index, 'checked'], displayedItems()[index].checked = event.target.checked, 86, 16);
11513
+ displayedItems()[index].checked = event.target.checked;
12477
11514
  }
12478
11515
  }
12479
11516
 
@@ -12493,10 +11530,10 @@
12493
11530
  }
12494
11531
 
12495
11532
  function handleLiKeyDown(event, index) {
12496
- if (strict_equals(event.target.tagName, "INPUT", false)) {
11533
+ if (event.target.tagName !== "INPUT") {
12497
11534
  handleKeyDown(event, index);
12498
11535
 
12499
- if (strict_equals(event.key, "Tab", false)) {
11536
+ if (event.key !== "Tab") {
12500
11537
  event.preventDefault();
12501
11538
  event.stopPropagation();
12502
11539
  }
@@ -12504,7 +11541,7 @@
12504
11541
  }
12505
11542
 
12506
11543
  function handleLiClick(event, item) {
12507
- if (strict_equals(event.target.tagName, "INPUT", false)) {
11544
+ if (event.target.tagName !== "INPUT") {
12508
11545
  event.preventDefault();
12509
11546
  event.stopPropagation();
12510
11547
 
@@ -12515,7 +11552,7 @@
12515
11552
  }
12516
11553
 
12517
11554
  function canExit(event, index) {
12518
- return strict_equals(event.key, "Escape") || !event.shiftKey && strict_equals(event.key, "Tab") && strict_equals(index, displayedItems().length - 1);
11555
+ return event.key === "Escape" || !event.shiftKey && event.key === "Tab" && index === displayedItems().length - 1;
12519
11556
  }
12520
11557
 
12521
11558
  function itemsHaveIds() {
@@ -12537,8 +11574,6 @@
12537
11574
  var consequent = ($$anchor) => {
12538
11575
  var ul = root_1$1();
12539
11576
 
12540
- validate_each_keys(displayedItems, (item) => item.id);
12541
-
12542
11577
  each(ul, 23, displayedItems, (item) => item.id, ($$anchor, item, index) => {
12543
11578
  var li = root_2$2();
12544
11579
 
@@ -12555,8 +11590,6 @@
12555
11590
  set_attribute(input, 'name', name);
12556
11591
  input.__change = [handleChange, selectionCallback];
12557
11592
  input.__keydown = (e) => handleKeyDown(e, get(index));
12558
- validate_binding('bind:checked={item.checked}', () => get(item), () => 'checked');
12559
- validate_binding('bind:this={displayedItemsElements[index]}', () => get(displayedItemsElements), () => get(index));
12560
11593
  bind_this(input, ($$value, index) => get(displayedItemsElements)[index] = $$value, (index) => get(displayedItemsElements)?.[index], () => [get(index)]);
12561
11594
 
12562
11595
  var span = sibling(input, 2);
@@ -12600,15 +11633,9 @@
12600
11633
  append($$anchor, fragment);
12601
11634
 
12602
11635
  return pop({
12603
- get focusOnFirstElement() {
12604
- return focusOnFirstElement;
12605
- },
12606
- get focusOnLastElement() {
12607
- return focusOnLastElement;
12608
- },
12609
- get focusOnFirstMatchingElement() {
12610
- return focusOnFirstMatchingElement;
12611
- },
11636
+ focusOnFirstElement,
11637
+ focusOnLastElement,
11638
+ focusOnFirstMatchingElement,
12612
11639
  get displayedItems() {
12613
11640
  return displayedItems();
12614
11641
  },
@@ -12643,8 +11670,7 @@
12643
11670
  set handlePrintableCharacter($$value = () => {}) {
12644
11671
  handlePrintableCharacter($$value);
12645
11672
  flushSync();
12646
- },
12647
- ...legacy_api()
11673
+ }
12648
11674
  });
12649
11675
  }
12650
11676
 
@@ -12668,13 +11694,10 @@
12668
11694
  true
12669
11695
  );
12670
11696
 
12671
- DropdownListItems[FILENAME] = 'src/sdg/components/DropdownList/DropdownListItems/DropdownListItems.svelte';
12672
-
12673
- var root_4 = add_locations(template(`<span class="qc-dropdown-list-no-options"><!></span>`), DropdownListItems[FILENAME], [[105, 16]]);
12674
- 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]]]]);
11697
+ var root_4 = template(`<span class="qc-dropdown-list-no-options"><!></span>`);
11698
+ var root$3 = template(`<div class="qc-dropdown-list-items" tabindex="-1"><!> <div class="qc-dropdown-list-no-options-container" role="status"><!></div></div>`);
12675
11699
 
12676
11700
  function DropdownListItems($$anchor, $$props) {
12677
- check_target(new.target);
12678
11701
  push($$props, true);
12679
11702
 
12680
11703
  let id = prop($$props, 'id', 7),
@@ -12839,15 +11862,9 @@
12839
11862
  append($$anchor, div);
12840
11863
 
12841
11864
  return pop({
12842
- get focus() {
12843
- return focus;
12844
- },
12845
- get focusOnLastElement() {
12846
- return focusOnLastElement;
12847
- },
12848
- get focusOnFirstMatchingElement() {
12849
- return focusOnFirstMatchingElement;
12850
- },
11865
+ focus,
11866
+ focusOnLastElement,
11867
+ focusOnFirstMatchingElement,
12851
11868
  get id() {
12852
11869
  return id();
12853
11870
  },
@@ -12938,8 +11955,7 @@
12938
11955
  set placeholder($$value) {
12939
11956
  placeholder($$value);
12940
11957
  flushSync();
12941
- },
12942
- ...legacy_api()
11958
+ }
12943
11959
  });
12944
11960
  }
12945
11961
 
@@ -12969,14 +11985,11 @@
12969
11985
  true
12970
11986
  );
12971
11987
 
12972
- DropdownListButton[FILENAME] = 'src/sdg/components/DropdownList/DropdownListButton/DropdownListButton.svelte';
12973
-
12974
- var root_1 = add_locations(template(`<span class="qc-dropdown-choice"><!></span>`), DropdownListButton[FILENAME], [[29, 8]]);
12975
- var root_2$1 = add_locations(template(`<span class="qc-dropdown-placeholder"><!></span>`), DropdownListButton[FILENAME], [[31, 8]]);
12976
- var root$2 = add_locations(template(`<button><!> <span><!></span></button>`), DropdownListButton[FILENAME], [[19, 0, [[34, 4]]]]);
11988
+ var root_1 = template(`<span class="qc-dropdown-choice"><!></span>`);
11989
+ var root_2$1 = template(`<span class="qc-dropdown-placeholder"><!></span>`);
11990
+ var root$2 = template(`<button><!> <span><!></span></button>`);
12977
11991
 
12978
11992
  function DropdownListButton($$anchor, $$props) {
12979
- check_target(new.target);
12980
11993
  push($$props, true);
12981
11994
 
12982
11995
  let inputId = prop($$props, 'inputId', 7),
@@ -12984,19 +11997,17 @@
12984
11997
  disabled = prop($$props, 'disabled', 7),
12985
11998
  selectedOptionsText = prop($$props, 'selectedOptionsText', 7, ""),
12986
11999
  placeholder = prop($$props, 'placeholder', 7),
12987
- rest = rest_props(
12988
- $$props,
12989
- [
12990
- '$$slots',
12991
- '$$events',
12992
- '$$legacy',
12993
- '$$host',
12994
- 'inputId',
12995
- 'expanded',
12996
- 'disabled',
12997
- 'selectedOptionsText',
12998
- 'placeholder'
12999
- ]);
12000
+ rest = rest_props($$props, [
12001
+ '$$slots',
12002
+ '$$events',
12003
+ '$$legacy',
12004
+ '$$host',
12005
+ 'inputId',
12006
+ 'expanded',
12007
+ 'disabled',
12008
+ 'selectedOptionsText',
12009
+ 'placeholder'
12010
+ ]);
13000
12011
 
13001
12012
  let button;
13002
12013
 
@@ -13067,9 +12078,7 @@
13067
12078
  append($$anchor, button_1);
13068
12079
 
13069
12080
  return pop({
13070
- get focus() {
13071
- return focus;
13072
- },
12081
+ focus,
13073
12082
  get inputId() {
13074
12083
  return inputId();
13075
12084
  },
@@ -13104,8 +12113,7 @@
13104
12113
  set placeholder($$value) {
13105
12114
  placeholder($$value);
13106
12115
  flushSync();
13107
- },
13108
- ...legacy_api()
12116
+ }
13109
12117
  });
13110
12118
  }
13111
12119
 
@@ -13123,36 +12131,13 @@
13123
12131
  true
13124
12132
  );
13125
12133
 
13126
- DropdownList[FILENAME] = 'src/sdg/components/DropdownList/DropdownList.svelte';
13127
-
13128
- var root_2 = add_locations(template(`<div class="qc-dropdown-list-search"><!></div>`), DropdownList[FILENAME], [[337, 20]]);
13129
- var root_3 = add_locations(template(`<span> </span>`), DropdownList[FILENAME], [[379, 24]]);
13130
-
13131
- 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], [
13132
- [
13133
- 274,
13134
- 0,
13135
- [
13136
- [
13137
- 281,
13138
- 4,
13139
- [
13140
- [
13141
- 301,
13142
- 8,
13143
- [[328, 12, [[377, 16]]]]
13144
- ]
13145
- ]
13146
- ]
13147
- ]
13148
- ]
13149
- ]);
12134
+ var root_2 = template(`<div class="qc-dropdown-list-search"><!></div>`);
12135
+ var root_3 = template(`<span> </span>`);
12136
+ 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>`);
13150
12137
 
13151
12138
  function DropdownList($$anchor, $$props) {
13152
- check_target(new.target);
13153
12139
  push($$props, true);
13154
12140
 
13155
- var $$ownership_validator = create_ownership_validator($$props);
13156
12141
  const lang = Utils.getPageLanguage();
13157
12142
 
13158
12143
  let id = prop($$props, 'id', 23, () => Math.random().toString(36).substring(2, 15)),
@@ -13162,7 +12147,7 @@
13162
12147
  items = prop($$props, 'items', 23, () => []),
13163
12148
  value = prop($$props, 'value', 31, () => proxy([])),
13164
12149
  placeholder = prop($$props, 'placeholder', 7),
13165
- noOptionsMessage = prop($$props, 'noOptionsMessage', 23, () => strict_equals(lang, "fr") ? "Aucun élément" : "No item"),
12150
+ noOptionsMessage = prop($$props, 'noOptionsMessage', 7, lang === "fr" ? "Aucun élément" : "No item"),
13166
12151
  enableSearch = prop($$props, 'enableSearch', 7, false),
13167
12152
  required = prop($$props, 'required', 7, false),
13168
12153
  disabled = prop($$props, 'disabled', 7, false),
@@ -13175,7 +12160,7 @@
13175
12160
  webComponentMode = prop($$props, 'webComponentMode', 7, false),
13176
12161
  webComponentParentRow = prop($$props, 'webComponentParentRow', 7);
13177
12162
 
13178
- const defaultPlaceholder = strict_equals(lang, "fr") ? "Faire une sélection" : "Select an option",
12163
+ const defaultPlaceholder = lang === "fr" ? "Faire une sélection" : "Select an option",
13179
12164
  inputId = `${id()}-input`,
13180
12165
  popupId = `${id()}-popup`,
13181
12166
  itemsId = `${id()}-items`,
@@ -13191,7 +12176,7 @@
13191
12176
  selectedItems = user_derived(() => items().filter((item) => item.checked) ?? []),
13192
12177
  selectedOptionsText = user_derived(() => {
13193
12178
  if (get(selectedItems).length >= 3) {
13194
- if (strict_equals(lang, "fr")) {
12179
+ if (lang === "fr") {
13195
12180
  return `${get(selectedItems).length} options sélectionnées`;
13196
12181
  }
13197
12182
 
@@ -13234,7 +12219,7 @@
13234
12219
  const s = get(displayedItems).length > 1 ? "s" : "";
13235
12220
 
13236
12221
  if (get(displayedItems).length > 0) {
13237
- return strict_equals(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.`;
12222
+ 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.`;
13238
12223
  }
13239
12224
 
13240
12225
  return "";
@@ -13265,27 +12250,27 @@
13265
12250
  // Le changement de focus a lieu après le lancement de l'événement clavier.
13266
12251
  // Il faut donc faire un court sleep pour avoir le nouvel élément en focus.
13267
12252
  Utils.sleep(5).then(() => {
13268
- if (strict_equals(event.key, "Tab") && !Utils.componentIsActive(get(instance))) {
12253
+ if (event.key === "Tab" && !Utils.componentIsActive(get(instance))) {
13269
12254
  set(expanded, false);
13270
12255
  }
13271
12256
  }).catch(console.error);
13272
12257
  }
13273
12258
 
13274
12259
  function handleEscape(event) {
13275
- if (strict_equals(event.key, "Escape")) {
12260
+ if (event.key === "Escape") {
13276
12261
  set(expanded, false);
13277
12262
  }
13278
12263
  }
13279
12264
 
13280
12265
  function handleArrowUp(event, targetComponent) {
13281
- if (strict_equals(event.key, "ArrowUp") && targetComponent) {
12266
+ if (event.key === "ArrowUp" && targetComponent) {
13282
12267
  event.preventDefault();
13283
12268
  targetComponent.focus();
13284
12269
  }
13285
12270
  }
13286
12271
 
13287
12272
  function handleArrowDown(event, targetComponent) {
13288
- if (strict_equals(event.key, "ArrowDown") && targetComponent) {
12273
+ if (event.key === "ArrowDown" && targetComponent) {
13289
12274
  event.preventDefault();
13290
12275
  set(expanded, true);
13291
12276
  targetComponent.focus();
@@ -13296,7 +12281,7 @@
13296
12281
  handleEscape(event);
13297
12282
  handleTab(event);
13298
12283
 
13299
- if (strict_equals(event.key, "ArrowDown")) {
12284
+ if (event.key === "ArrowDown") {
13300
12285
  event.preventDefault();
13301
12286
 
13302
12287
  if (get(expanded)) {
@@ -13307,7 +12292,7 @@
13307
12292
  }
13308
12293
  }
13309
12294
 
13310
- if (strict_equals(event.key, "ArrowUp")) {
12295
+ if (event.key === "ArrowUp") {
13311
12296
  event.preventDefault();
13312
12297
 
13313
12298
  if (get(expanded)) {
@@ -13340,7 +12325,7 @@
13340
12325
  set(expanded, false);
13341
12326
  set(hiddenSearchText, "");
13342
12327
 
13343
- if (strict_equals(key, "Escape") && get(button)) {
12328
+ if (key === "Escape" && get(button)) {
13344
12329
  get(button).focus();
13345
12330
  }
13346
12331
  }
@@ -13362,7 +12347,7 @@
13362
12347
  });
13363
12348
 
13364
12349
  user_effect(() => {
13365
- if (strict_equals(get(previousValue)?.toString(), value()?.toString(), false)) {
12350
+ if (get(previousValue)?.toString() !== value()?.toString()) {
13366
12351
  invalid(false);
13367
12352
  }
13368
12353
  });
@@ -13377,7 +12362,7 @@
13377
12362
  user_effect(() => {
13378
12363
  const tempValue = get(selectedItems)?.map((item) => item.value);
13379
12364
 
13380
- if (strict_equals(tempValue?.toString(), "", false)) {
12365
+ if (tempValue?.toString() !== "") {
13381
12366
  value(tempValue);
13382
12367
  } else {
13383
12368
  value([]);
@@ -13404,11 +12389,11 @@
13404
12389
  const optionWithEmptyValue = findOptionWithEmptyValue();
13405
12390
 
13406
12391
  if (!optionWithEmptyValue) return;
13407
- placeholder(strict_equals(optionWithEmptyValue.label, "", false) ? optionWithEmptyValue.label : defaultPlaceholder);
12392
+ placeholder(optionWithEmptyValue.label !== "" ? optionWithEmptyValue.label : defaultPlaceholder);
13408
12393
  });
13409
12394
 
13410
12395
  function findOptionWithEmptyValue() {
13411
- return items()?.find((item) => strict_equals(item.value, "") || strict_equals(item.value, null) || strict_equals(item.value, undefined));
12396
+ return items()?.find((item) => item.value === "" || item.value === null || item.value === undefined);
13412
12397
  }
13413
12398
 
13414
12399
  var div = root$1();
@@ -13513,7 +12498,7 @@
13513
12498
  handleArrowDown(e, get(dropdownItems));
13514
12499
  handleArrowUp(e, get(button));
13515
12500
 
13516
- if (strict_equals(e.key, "Enter")) {
12501
+ if (e.key === "Enter") {
13517
12502
  e.preventDefault();
13518
12503
  }
13519
12504
  },
@@ -13539,49 +12524,45 @@
13539
12524
 
13540
12525
  var node_4 = sibling(node_2, 2);
13541
12526
 
13542
- {
13543
- $$ownership_validator.binding('value', DropdownListItems, value);
13544
-
13545
- bind_this(
13546
- DropdownListItems(node_4, {
13547
- id: itemsId,
13548
- get enableSearch() {
13549
- return enableSearch();
13550
- },
13551
- get placeholder() {
13552
- return placeholder();
13553
- },
13554
- get multiple() {
13555
- return multiple();
13556
- },
13557
- get items() {
13558
- return items();
13559
- },
13560
- get displayedItems() {
13561
- return get(displayedItems);
13562
- },
13563
- get noOptionsMessage() {
13564
- return noOptionsMessage();
13565
- },
13566
- selectionCallbackSingle: () => {
13567
- closeDropdown("");
13568
- get(button)?.focus();
13569
- },
13570
- handleExitSingle: (key) => closeDropdown(key),
13571
- handleExitMultiple: (key) => closeDropdown(key),
13572
- focusOnOuterElement: () => enableSearch() ? get(searchInput)?.focus() : get(button)?.focus(),
13573
- handlePrintableCharacter,
13574
- get value() {
13575
- return value();
13576
- },
13577
- set value($$value) {
13578
- value($$value);
13579
- }
13580
- }),
13581
- ($$value) => set(dropdownItems, $$value, true),
13582
- () => get(dropdownItems)
13583
- );
13584
- }
12527
+ bind_this(
12528
+ DropdownListItems(node_4, {
12529
+ id: itemsId,
12530
+ get enableSearch() {
12531
+ return enableSearch();
12532
+ },
12533
+ get placeholder() {
12534
+ return placeholder();
12535
+ },
12536
+ get multiple() {
12537
+ return multiple();
12538
+ },
12539
+ get items() {
12540
+ return items();
12541
+ },
12542
+ get displayedItems() {
12543
+ return get(displayedItems);
12544
+ },
12545
+ get noOptionsMessage() {
12546
+ return noOptionsMessage();
12547
+ },
12548
+ selectionCallbackSingle: () => {
12549
+ closeDropdown("");
12550
+ get(button)?.focus();
12551
+ },
12552
+ handleExitSingle: (key) => closeDropdown(key),
12553
+ handleExitMultiple: (key) => closeDropdown(key),
12554
+ focusOnOuterElement: () => enableSearch() ? get(searchInput)?.focus() : get(button)?.focus(),
12555
+ handlePrintableCharacter,
12556
+ get value() {
12557
+ return value();
12558
+ },
12559
+ set value($$value) {
12560
+ value($$value);
12561
+ }
12562
+ }),
12563
+ ($$value) => set(dropdownItems, $$value, true),
12564
+ () => get(dropdownItems)
12565
+ );
13585
12566
 
13586
12567
  var div_5 = sibling(node_4, 2);
13587
12568
  var node_5 = child(div_5);
@@ -13604,29 +12585,25 @@
13604
12585
  var node_6 = sibling(div_1, 2);
13605
12586
  const expression_1 = user_derived(() => label() ?? ariaLabel());
13606
12587
 
13607
- {
13608
- $$ownership_validator.binding('errorElement', FormError, errorElement);
13609
-
13610
- FormError(node_6, {
13611
- id: errorId,
13612
- get invalid() {
13613
- return invalid();
13614
- },
13615
- get invalidText() {
13616
- return invalidText();
13617
- },
13618
- extraClasses: ["qc-xs-mt"],
13619
- get label() {
13620
- return get(expression_1);
13621
- },
13622
- get rootElement() {
13623
- return errorElement();
13624
- },
13625
- set rootElement($$value) {
13626
- errorElement($$value);
13627
- }
13628
- });
13629
- }
12588
+ FormError(node_6, {
12589
+ id: errorId,
12590
+ get invalid() {
12591
+ return invalid();
12592
+ },
12593
+ get invalidText() {
12594
+ return invalidText();
12595
+ },
12596
+ extraClasses: ["qc-xs-mt"],
12597
+ get label() {
12598
+ return get(expression_1);
12599
+ },
12600
+ get rootElement() {
12601
+ return errorElement();
12602
+ },
12603
+ set rootElement($$value) {
12604
+ errorElement($$value);
12605
+ }
12606
+ });
13630
12607
 
13631
12608
  reset(div);
13632
12609
  bind_this(div, ($$value) => rootElement($$value), () => rootElement());
@@ -13790,8 +12767,7 @@
13790
12767
  set webComponentParentRow($$value) {
13791
12768
  webComponentParentRow($$value);
13792
12769
  flushSync();
13793
- },
13794
- ...legacy_api()
12770
+ }
13795
12771
  });
13796
12772
  }
13797
12773
 
@@ -13823,16 +12799,11 @@
13823
12799
  true
13824
12800
  );
13825
12801
 
13826
- SelectWC[FILENAME] = 'src/sdg/components/DropdownList/SelectWC.svelte';
13827
-
13828
- var root = add_locations(template(`<div hidden><!></div> <!> <link rel="stylesheet">`, 1), SelectWC[FILENAME], [[137, 0], [158, 0]]);
12802
+ var root = template(`<div hidden><!></div> <!> <link rel="stylesheet">`, 1);
13829
12803
 
13830
12804
  function SelectWC($$anchor, $$props) {
13831
- check_target(new.target);
13832
12805
  push($$props, true);
13833
12806
 
13834
- var $$ownership_validator = create_ownership_validator($$props);
13835
-
13836
12807
  let invalid = prop($$props, 'invalid', 15, false),
13837
12808
  value = prop($$props, 'value', 31, () => proxy([])),
13838
12809
  multiple = prop($$props, 'multiple', 7),
@@ -13841,22 +12812,20 @@
13841
12812
  label = prop($$props, 'label', 7),
13842
12813
  placeholder = prop($$props, 'placeholder', 7),
13843
12814
  width = prop($$props, 'width', 7),
13844
- rest = rest_props(
13845
- $$props,
13846
- [
13847
- '$$slots',
13848
- '$$events',
13849
- '$$legacy',
13850
- '$$host',
13851
- 'invalid',
13852
- 'value',
13853
- 'multiple',
13854
- 'disabled',
13855
- 'required',
13856
- 'label',
13857
- 'placeholder',
13858
- 'width'
13859
- ]);
12815
+ rest = rest_props($$props, [
12816
+ '$$slots',
12817
+ '$$events',
12818
+ '$$legacy',
12819
+ '$$host',
12820
+ 'invalid',
12821
+ 'value',
12822
+ 'multiple',
12823
+ 'disabled',
12824
+ 'required',
12825
+ 'label',
12826
+ 'placeholder',
12827
+ 'width'
12828
+ ]);
13860
12829
 
13861
12830
  const availableWidths = ["xs", "sm", "md", "lg", "xl"];
13862
12831
  let selectElement = state(void 0);
@@ -13968,70 +12937,65 @@
13968
12937
  var node_1 = sibling(div, 2);
13969
12938
  const expression = user_derived(() => get(selectElement)?.getAttribute("aria-label"));
13970
12939
 
13971
- {
13972
- $$ownership_validator.binding('value', DropdownList, value);
13973
- $$ownership_validator.binding('invalid', DropdownList, invalid);
13974
-
13975
- DropdownList(node_1, spread_props(
13976
- {
13977
- get label() {
13978
- return label();
13979
- },
13980
- get ariaLabel() {
13981
- return get(expression);
13982
- },
13983
- get items() {
13984
- return get(items);
13985
- },
13986
- get placeholder() {
13987
- return placeholder();
13988
- },
13989
- get width() {
13990
- return width();
13991
- },
13992
- webComponentMode: true,
13993
- get webComponentParentRow() {
13994
- return get(parentRow);
13995
- },
13996
- get multiple() {
13997
- return multiple();
13998
- },
13999
- get disabled() {
14000
- return disabled();
14001
- },
14002
- get required() {
14003
- return required();
14004
- }
12940
+ DropdownList(node_1, spread_props(
12941
+ {
12942
+ get label() {
12943
+ return label();
14005
12944
  },
14006
- () => rest,
14007
- {
14008
- get value() {
14009
- return value();
14010
- },
14011
- set value($$value) {
14012
- value($$value);
14013
- },
14014
- get errorElement() {
14015
- return get(errorElement);
14016
- },
14017
- set errorElement($$value) {
14018
- set(errorElement, $$value, true);
14019
- },
14020
- get invalid() {
14021
- return invalid();
14022
- },
14023
- set invalid($$value) {
14024
- invalid($$value);
14025
- },
14026
- get rootElement() {
14027
- return get(instance);
14028
- },
14029
- set rootElement($$value) {
14030
- set(instance, $$value, true);
14031
- }
12945
+ get ariaLabel() {
12946
+ return get(expression);
12947
+ },
12948
+ get items() {
12949
+ return get(items);
12950
+ },
12951
+ get placeholder() {
12952
+ return placeholder();
12953
+ },
12954
+ get width() {
12955
+ return width();
12956
+ },
12957
+ webComponentMode: true,
12958
+ get webComponentParentRow() {
12959
+ return get(parentRow);
12960
+ },
12961
+ get multiple() {
12962
+ return multiple();
12963
+ },
12964
+ get disabled() {
12965
+ return disabled();
12966
+ },
12967
+ get required() {
12968
+ return required();
14032
12969
  }
14033
- ));
14034
- }
12970
+ },
12971
+ () => rest,
12972
+ {
12973
+ get value() {
12974
+ return value();
12975
+ },
12976
+ set value($$value) {
12977
+ value($$value);
12978
+ },
12979
+ get errorElement() {
12980
+ return get(errorElement);
12981
+ },
12982
+ set errorElement($$value) {
12983
+ set(errorElement, $$value, true);
12984
+ },
12985
+ get invalid() {
12986
+ return invalid();
12987
+ },
12988
+ set invalid($$value) {
12989
+ invalid($$value);
12990
+ },
12991
+ get rootElement() {
12992
+ return get(instance);
12993
+ },
12994
+ set rootElement($$value) {
12995
+ set(instance, $$value, true);
12996
+ }
12997
+ }
12998
+ ));
14035
12999
 
14036
13000
  var link = sibling(node_1, 2);
14037
13001
 
@@ -14094,8 +13058,7 @@
14094
13058
  set width($$value) {
14095
13059
  width($$value);
14096
13060
  flushSync();
14097
- },
14098
- ...legacy_api()
13061
+ }
14099
13062
  });
14100
13063
  }
14101
13064