qc-trousse-sdg 1.4.4 → 1.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/README.md +75 -53
  2. package/dist/css/qc-sdg-design-tokens.min.css +1 -1
  3. package/dist/css/qc-sdg-no-grid.min.css +1 -1
  4. package/dist/css/qc-sdg.min.css +1 -1
  5. package/dist/img/QUEBEC_blanc.svg +3 -12
  6. package/dist/img/QUEBEC_couleur.svg +3 -23
  7. package/dist/js/qc-sdg.min.js +1 -1
  8. package/index.html +1 -1
  9. package/package.json +1 -1
  10. package/public/css/qc-sdg-design-tokens.css +0 -2
  11. package/public/css/qc-sdg-no-grid.css +119 -87
  12. package/public/css/qc-sdg.css +119 -87
  13. package/public/img/QUEBEC_blanc.svg +3 -12
  14. package/public/img/QUEBEC_couleur.svg +3 -23
  15. package/public/img/favicon.ico +0 -0
  16. package/public/index.html +13 -0
  17. package/public/js/qc-doc-sdg.js +443 -1380
  18. package/public/js/qc-sdg.js +320 -577
  19. package/src/doc/_index.html +3 -0
  20. package/src/sdg/_components.js +0 -1
  21. package/src/sdg/bases/form/_form.scss +0 -4
  22. package/src/sdg/components/Alert/Alert.svelte +1 -1
  23. package/src/sdg/components/Checkbox/Checkbox.svelte +3 -3
  24. package/src/sdg/components/Checkbox/CheckboxWC.svelte +3 -3
  25. package/src/sdg/components/Checkbox/{updateInput.svelte.js → updateChoiceInput.svelte.js} +6 -1
  26. package/src/sdg/components/ChoiceGroup/ChoiceGroup.svelte +2 -2
  27. package/src/sdg/components/ChoiceGroup/Test/ChoiceGroupeEmbededTest.svelte +3 -0
  28. package/src/sdg/components/ChoiceGroup/Test/checkboxBaselineTest.html +3 -0
  29. package/src/sdg/components/DropdownList/DropdownList.svelte +4 -7
  30. package/src/sdg/components/DropdownList/DropdownListItems/DropdownListItems.svelte +1 -6
  31. package/src/sdg/components/DropdownList/DropdownListItems/DropdownListItemsMultiple/_dropdownListItemsMultiple.scss +3 -8
  32. package/src/sdg/components/DropdownList/DropdownListItems/DropdownListItemsSingle/_dropdownListItemsSingle.scss +1 -2
  33. package/src/sdg/components/DropdownList/DropdownListItems/_dropdownListItems.scss +2 -4
  34. package/src/sdg/components/DropdownList/SelectWC.svelte +31 -50
  35. package/src/sdg/components/DropdownList/Test/DropdownListSvelteTest.svelte +37 -2
  36. package/src/sdg/components/DropdownList/Test/{dropdownListTest.html → dropdownListBaselineTest.html} +19 -1
  37. package/src/sdg/components/DropdownList/Test/dropdownListTestUtils.js +14 -0
  38. package/src/sdg/components/DropdownList/_dropdownList.scss +11 -16
  39. package/src/sdg/components/DropdownList/_select.html +9 -0
  40. package/src/sdg/components/Fieldset/_fieldset.scss +17 -4
  41. package/src/sdg/components/Label/_label.scss +1 -0
  42. package/src/sdg/components/PivFooter/PivFooter.svelte +2 -2
  43. package/src/sdg/components/PivHeader/PivHeader.svelte +79 -74
  44. package/src/sdg/components/PivHeader/Test/pivHeaderBaselineTest.html +12 -1
  45. package/src/sdg/components/PivHeader/Test/pivHeaderTest.js +9 -0
  46. package/src/sdg/components/PivHeader/_pivHeader.html +1 -0
  47. package/src/sdg/components/PivHeader/_pivHeader.scss +46 -19
  48. package/src/sdg/components/TextField/Test/textFieldBaselineTest.html +24 -5
  49. package/src/sdg/components/TextField/TextField.svelte +29 -25
  50. package/src/sdg/components/TextField/TextFieldWC.svelte +8 -0
  51. package/src/sdg/components/TextField/_textField.scss +6 -13
  52. package/src/sdg/qc-sdg-test.js +4 -0
  53. package/src/sdg/scss/settings/_tokens.scss +0 -4
  54. package/tests/buildSvelteTestsIgnore.json +2 -1
  55. package/tests/dropdown-list-baseline.spec.ts +51 -4
  56. package/tests/piv-header-baseline.spec.ts +3 -0
  57. package/src/sdg/components/Button/Button.svelte +0 -50
  58. package/src/sdg/components/Button/ButtonWC.svelte +0 -36
  59. package/tests/piv-header-svelte.spec.ts +0 -11
@@ -311,6 +311,16 @@
311
311
  }
312
312
  }
313
313
 
314
+ /**
315
+ * Your `console.%method%` contained `$state` proxies. Consider using `$inspect(...)` or `$state.snapshot(...)` instead
316
+ * @param {string} method
317
+ */
318
+ function console_log_state(method) {
319
+ {
320
+ console.warn(`https://svelte.dev/e/console_log_state`);
321
+ }
322
+ }
323
+
314
324
  /**
315
325
  * %handler% should be a function. Did you mean to %suggestion%?
316
326
  * @param {string} handler
@@ -6841,6 +6851,37 @@
6841
6851
  return Class;
6842
6852
  }
6843
6853
 
6854
+ /**
6855
+ * @param {string} method
6856
+ * @param {...any} objects
6857
+ */
6858
+ function log_if_contains_state(method, ...objects) {
6859
+ untrack(() => {
6860
+ try {
6861
+ let has_state = false;
6862
+ const transformed = [];
6863
+
6864
+ for (const obj of objects) {
6865
+ if (obj && typeof obj === 'object' && STATE_SYMBOL in obj) {
6866
+ transformed.push(snapshot(obj, true));
6867
+ has_state = true;
6868
+ } else {
6869
+ transformed.push(obj);
6870
+ }
6871
+ }
6872
+
6873
+ if (has_state) {
6874
+ console_log_state(method);
6875
+
6876
+ // eslint-disable-next-line no-console
6877
+ console.log('%c[snapshot]', 'color: grey', ...transformed);
6878
+ }
6879
+ } catch {}
6880
+ });
6881
+
6882
+ return objects;
6883
+ }
6884
+
6844
6885
  class Utils {
6845
6886
 
6846
6887
  static assetsBasePath =
@@ -6982,7 +7023,7 @@
6982
7023
 
6983
7024
  Icon[FILENAME] = 'src/sdg/bases/Icon/Icon.svelte';
6984
7025
 
6985
- var root$o = add_locations(template(`<div></div>`), Icon[FILENAME], [[16, 0]]);
7026
+ var root$n = add_locations(template(`<div></div>`), Icon[FILENAME], [[16, 0]]);
6986
7027
 
6987
7028
  function Icon($$anchor, $$props) {
6988
7029
  check_target(new.target);
@@ -7014,7 +7055,7 @@
7014
7055
  ]);
7015
7056
 
7016
7057
  let attributes = user_derived(() => strict_equals(width(), 'auto') ? { 'data-img-size': size() } : {});
7017
- var div = root$o();
7058
+ var div = root$n();
7018
7059
  let attributes_1;
7019
7060
 
7020
7061
  template_effect(() => attributes_1 = set_attributes(div, attributes_1, {
@@ -7117,7 +7158,7 @@
7117
7158
 
7118
7159
  Notice[FILENAME] = 'src/sdg/components/Notice/Notice.svelte';
7119
7160
 
7120
- 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], [
7161
+ var root$m = 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], [
7121
7162
  [
7122
7163
  57,
7123
7164
  0,
@@ -7173,7 +7214,7 @@
7173
7214
  const computedType = shouldUseIcon ? "neutral" : usedType;
7174
7215
  const iconType = shouldUseIcon ? icon() ?? "note" : usedType;
7175
7216
  const iconLabel = typesDescriptions[type()] ?? typesDescriptions['information'];
7176
- var div = root$n();
7217
+ var div = root$m();
7177
7218
 
7178
7219
  set_class(div, 1, `qc-component qc-notice qc-${computedType ?? ''}`);
7179
7220
 
@@ -7297,14 +7338,14 @@
7297
7338
 
7298
7339
  NoticeWC[FILENAME] = 'src/sdg/components/Notice/NoticeWC.svelte';
7299
7340
 
7300
- var root$m = add_locations(template(`<!> <link rel="stylesheet">`, 1), NoticeWC[FILENAME], [[27, 0]]);
7341
+ var root$l = add_locations(template(`<!> <link rel="stylesheet">`, 1), NoticeWC[FILENAME], [[27, 0]]);
7301
7342
 
7302
7343
  function NoticeWC($$anchor, $$props) {
7303
7344
  check_target(new.target);
7304
7345
  push($$props, true);
7305
7346
 
7306
7347
  const props = rest_props($$props, ['$$slots', '$$events', '$$legacy', '$$host']);
7307
- var fragment = root$m();
7348
+ var fragment = root$l();
7308
7349
  var node = first_child(fragment);
7309
7350
 
7310
7351
  {
@@ -7344,8 +7385,10 @@
7344
7385
 
7345
7386
  PivHeader[FILENAME] = 'src/sdg/components/PivHeader/PivHeader.svelte';
7346
7387
 
7347
- var root_2$8 = add_locations(template(`<div class="title"><a> </a></div>`), PivHeader[FILENAME], [[71, 10, [[72, 14]]]]);
7348
- var root_3$3 = add_locations(template(`<div class="go-to-content"><a> </a></div>`), PivHeader[FILENAME], [[63, 6, [[64, 8]]]]);
7388
+ var root_3$3 = add_locations(template(`<a class="page-title"> </a>`), PivHeader[FILENAME], [[72, 24]]);
7389
+ var root_4$4 = add_locations(template(`<span class="page-title" role="heading" aria-level="1"> </span>`), PivHeader[FILENAME], [[74, 24]]);
7390
+ var root_2$8 = add_locations(template(`<div class="title"><!></div>`), PivHeader[FILENAME], [[70, 16]]);
7391
+ var root_5 = add_locations(template(`<div class="go-to-content"><a> </a></div>`), PivHeader[FILENAME], [[62, 12, [[63, 16]]]]);
7349
7392
 
7350
7393
  var on_click$3 = (evt, displaySearchForm, focusOnSearchInput) => {
7351
7394
  evt.preventDefault();
@@ -7356,30 +7399,40 @@
7356
7399
  });
7357
7400
  };
7358
7401
 
7359
- var root_4$4 = add_locations(template(`<a class="qc-search" href="/" role="button"><span> </span></a>`), PivHeader[FILENAME], [[91, 10, [[102, 12]]]]);
7360
- var root_8 = add_locations(template(`<li><a> </a></li>`), PivHeader[FILENAME], [[114, 32, [[114, 36]]]]);
7361
- var root_9 = add_locations(template(`<li><a> </a></li>`), PivHeader[FILENAME], [[117, 32, [[117, 36]]]]);
7362
- var root_7 = add_locations(template(`<nav><ul><!> <!></ul></nav>`), PivHeader[FILENAME], [[111, 20, [[112, 24]]]]);
7363
- var root_10 = add_locations(template(`<div class="search-zone"><!></div>`), PivHeader[FILENAME], [[130, 10]]);
7402
+ var root_6$1 = add_locations(template(`<a class="qc-search" href="/" role="button"><span class="no-link-title" role="heading" aria-level="1"> </span></a>`), PivHeader[FILENAME], [[95, 20, [[106, 24]]]]);
7403
+ var root_10 = add_locations(template(`<li><a> </a></li>`), PivHeader[FILENAME], [[119, 40, [[119, 44]]]]);
7404
+ var root_11 = add_locations(template(`<li><a> </a></li>`), PivHeader[FILENAME], [[122, 40, [[122, 44]]]]);
7405
+ var root_9 = add_locations(template(`<nav><ul><!> <!></ul></nav>`), PivHeader[FILENAME], [[116, 28, [[117, 32]]]]);
7406
+ var root_12 = add_locations(template(`<div class="search-zone"><!></div>`), PivHeader[FILENAME], [[135, 16]]);
7364
7407
 
7365
- 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], [
7408
+ var root$k = add_locations(template(`<div role="banner" class="qc-piv-header qc-component"><div><!> <div class="piv-top"><div class="signature-group"><div class="logo"><a rel="noreferrer"><img></a></div> <!></div> <div class="right-section"><!> <div class="links"><!></div></div></div> <!> <div class="piv-bottom"><!></div></div></div>`), PivHeader[FILENAME], [
7366
7409
  [
7367
7410
  57,
7368
7411
  0,
7369
7412
  [
7370
7413
  [
7371
- 61,
7372
- 2,
7414
+ 60,
7415
+ 4,
7373
7416
  [
7374
7417
  [
7375
- 78,
7376
- 6,
7418
+ 79,
7419
+ 8,
7377
7420
  [
7378
- [80, 8, [[85, 16]]],
7379
- [89, 6, [[105, 8]]]
7421
+ [
7422
+ 80,
7423
+ 12,
7424
+ [
7425
+ [
7426
+ 81,
7427
+ 16,
7428
+ [[82, 20, [[86, 24]]]]
7429
+ ]
7430
+ ]
7431
+ ],
7432
+ [93, 12, [[110, 16]]]
7380
7433
  ]
7381
7434
  ],
7382
- [128, 6]
7435
+ [133, 8]
7383
7436
  ]
7384
7437
  ]
7385
7438
  ]
@@ -7436,7 +7489,7 @@
7436
7489
  }
7437
7490
  });
7438
7491
 
7439
- var div = root$l();
7492
+ var div = root$k();
7440
7493
  var div_1 = child(div);
7441
7494
 
7442
7495
  {
@@ -7447,66 +7500,95 @@
7447
7500
  var node = first_child(fragment);
7448
7501
 
7449
7502
  {
7450
- var consequent = ($$anchor) => {
7503
+ var consequent_1 = ($$anchor) => {
7451
7504
  var div_2 = root_2$8();
7452
- var a = child(div_2);
7453
- var text = child(a, true);
7505
+ var node_1 = child(div_2);
7454
7506
 
7455
- reset(a);
7456
- reset(div_2);
7507
+ {
7508
+ var consequent = ($$anchor) => {
7509
+ var a = root_3$3();
7510
+ var text = child(a, true);
7457
7511
 
7458
- template_effect(() => {
7459
- set_attribute(a, 'href', titleUrl());
7460
- set_text(text, titleText());
7461
- });
7512
+ reset(a);
7513
+
7514
+ template_effect(() => {
7515
+ set_attribute(a, 'href', titleUrl());
7516
+ set_text(text, titleText());
7517
+ });
7518
+
7519
+ append($$anchor, a);
7520
+ };
7462
7521
 
7522
+ var alternate = ($$anchor) => {
7523
+ var span = root_4$4();
7524
+ var text_1 = child(span, true);
7525
+
7526
+ reset(span);
7527
+ template_effect(() => set_text(text_1, titleText()));
7528
+ append($$anchor, span);
7529
+ };
7530
+
7531
+ if_block(node_1, ($$render) => {
7532
+ if (titleUrl() && titleUrl().length > 0) $$render(consequent); else $$render(alternate, false);
7533
+ });
7534
+ }
7535
+
7536
+ reset(div_2);
7463
7537
  append($$anchor, div_2);
7464
7538
  };
7465
7539
 
7466
7540
  if_block(node, ($$render) => {
7467
- if (titleUrl() && titleText()) $$render(consequent);
7541
+ if (titleText()) $$render(consequent_1);
7468
7542
  });
7469
7543
  }
7470
7544
 
7471
7545
  append($$anchor, fragment);
7472
7546
  });
7473
7547
 
7474
- var node_1 = child(div_1);
7548
+ var node_2 = child(div_1);
7475
7549
 
7476
7550
  {
7477
- var consequent_1 = ($$anchor) => {
7478
- var div_3 = root_3$3();
7551
+ var consequent_2 = ($$anchor) => {
7552
+ var div_3 = root_5();
7479
7553
  var a_1 = child(div_3);
7480
- var text_1 = child(a_1, true);
7554
+ var text_2 = child(a_1, true);
7481
7555
 
7482
7556
  reset(a_1);
7483
7557
  reset(div_3);
7484
7558
 
7485
7559
  template_effect(() => {
7486
7560
  set_attribute(a_1, 'href', goToContentAnchor());
7487
- set_text(text_1, goToContentText());
7561
+ set_text(text_2, goToContentText());
7488
7562
  });
7489
7563
 
7490
7564
  append($$anchor, div_3);
7491
7565
  };
7492
7566
 
7493
- if_block(node_1, ($$render) => {
7494
- if (strict_equals(goToContent(), 'true')) $$render(consequent_1);
7567
+ if_block(node_2, ($$render) => {
7568
+ if (strict_equals(goToContent(), 'true')) $$render(consequent_2);
7495
7569
  });
7496
7570
  }
7497
7571
 
7498
- var div_4 = sibling(node_1, 2);
7499
- var a_2 = child(div_4);
7500
- var node_2 = sibling(a_2, 2);
7572
+ var div_4 = sibling(node_2, 2);
7573
+ var div_5 = child(div_4);
7574
+ var div_6 = child(div_5);
7575
+ var a_2 = child(div_6);
7576
+ var img = child(a_2);
7501
7577
 
7502
- title(node_2);
7578
+ reset(a_2);
7579
+ reset(div_6);
7503
7580
 
7504
- var div_5 = sibling(node_2, 2);
7505
- var node_3 = child(div_5);
7581
+ var node_3 = sibling(div_6, 2);
7582
+
7583
+ title(node_3);
7584
+ reset(div_5);
7585
+
7586
+ var div_7 = sibling(div_5, 2);
7587
+ var node_4 = child(div_7);
7506
7588
 
7507
7589
  {
7508
- var consequent_2 = ($$anchor) => {
7509
- var a_3 = root_4$4();
7590
+ var consequent_3 = ($$anchor) => {
7591
+ var a_3 = root_6$1();
7510
7592
 
7511
7593
  a_3.__click = [
7512
7594
  on_click$3,
@@ -7514,85 +7596,85 @@
7514
7596
  focusOnSearchInput
7515
7597
  ];
7516
7598
 
7517
- var span = child(a_3);
7518
- var text_2 = child(span, true);
7599
+ var span_1 = child(a_3);
7600
+ var text_3 = child(span_1, true);
7519
7601
 
7520
- reset(span);
7602
+ reset(span_1);
7521
7603
  reset(a_3);
7522
- template_effect(() => set_text(text_2, get(displaySearchForm) ? hideSearchText() : displaySearchText()));
7604
+ template_effect(() => set_text(text_3, get(displaySearchForm) ? hideSearchText() : displaySearchText()));
7523
7605
  append($$anchor, a_3);
7524
7606
  };
7525
7607
 
7526
- if_block(node_3, ($$render) => {
7527
- if (Utils.isTruthy(enableSearch())) $$render(consequent_2);
7608
+ if_block(node_4, ($$render) => {
7609
+ if (Utils.isTruthy(enableSearch())) $$render(consequent_3);
7528
7610
  });
7529
7611
  }
7530
7612
 
7531
- var div_6 = sibling(node_3, 2);
7532
- var node_4 = child(div_6);
7613
+ var div_8 = sibling(node_4, 2);
7614
+ var node_5 = child(div_8);
7533
7615
 
7534
7616
  {
7535
- var consequent_3 = ($$anchor) => {
7617
+ var consequent_4 = ($$anchor) => {
7536
7618
  var fragment_1 = comment();
7537
- var node_5 = first_child(fragment_1);
7619
+ var node_6 = first_child(fragment_1);
7538
7620
 
7539
- snippet(node_5, linksSlot);
7621
+ snippet(node_6, linksSlot);
7540
7622
  append($$anchor, fragment_1);
7541
7623
  };
7542
7624
 
7543
- var alternate = ($$anchor) => {
7625
+ var alternate_1 = ($$anchor) => {
7544
7626
  var fragment_2 = comment();
7545
- var node_6 = first_child(fragment_2);
7627
+ var node_7 = first_child(fragment_2);
7546
7628
 
7547
7629
  {
7548
- var consequent_6 = ($$anchor) => {
7549
- var nav = root_7();
7630
+ var consequent_7 = ($$anchor) => {
7631
+ var nav = root_9();
7550
7632
  var ul = child(nav);
7551
- var node_7 = child(ul);
7633
+ var node_8 = child(ul);
7552
7634
 
7553
7635
  {
7554
- var consequent_4 = ($$anchor) => {
7555
- var li = root_8();
7636
+ var consequent_5 = ($$anchor) => {
7637
+ var li = root_10();
7556
7638
  var a_4 = child(li);
7557
- var text_3 = child(a_4, true);
7639
+ var text_4 = child(a_4, true);
7558
7640
 
7559
7641
  reset(a_4);
7560
7642
  reset(li);
7561
7643
 
7562
7644
  template_effect(() => {
7563
7645
  set_attribute(a_4, 'href', altLanguageUrl());
7564
- set_text(text_3, altLanguageText());
7646
+ set_text(text_4, altLanguageText());
7565
7647
  });
7566
7648
 
7567
7649
  append($$anchor, li);
7568
7650
  };
7569
7651
 
7570
- if_block(node_7, ($$render) => {
7571
- if (altLanguageUrl()) $$render(consequent_4);
7652
+ if_block(node_8, ($$render) => {
7653
+ if (altLanguageUrl()) $$render(consequent_5);
7572
7654
  });
7573
7655
  }
7574
7656
 
7575
- var node_8 = sibling(node_7, 2);
7657
+ var node_9 = sibling(node_8, 2);
7576
7658
 
7577
7659
  {
7578
- var consequent_5 = ($$anchor) => {
7579
- var li_1 = root_9();
7660
+ var consequent_6 = ($$anchor) => {
7661
+ var li_1 = root_11();
7580
7662
  var a_5 = child(li_1);
7581
- var text_4 = child(a_5, true);
7663
+ var text_5 = child(a_5, true);
7582
7664
 
7583
7665
  reset(a_5);
7584
7666
  reset(li_1);
7585
7667
 
7586
7668
  template_effect(() => {
7587
7669
  set_attribute(a_5, 'href', joinUsUrl());
7588
- set_text(text_4, joinUsText());
7670
+ set_text(text_5, joinUsText());
7589
7671
  });
7590
7672
 
7591
7673
  append($$anchor, li_1);
7592
7674
  };
7593
7675
 
7594
- if_block(node_8, ($$render) => {
7595
- if (joinUsUrl()) $$render(consequent_5);
7676
+ if_block(node_9, ($$render) => {
7677
+ if (joinUsUrl()) $$render(consequent_6);
7596
7678
  });
7597
7679
  }
7598
7680
 
@@ -7602,75 +7684,71 @@
7602
7684
  append($$anchor, nav);
7603
7685
  };
7604
7686
 
7605
- if_block(node_6, ($$render) => {
7606
- if (joinUsUrl() || altLanguageUrl()) $$render(consequent_6);
7687
+ if_block(node_7, ($$render) => {
7688
+ if (joinUsUrl() || altLanguageUrl()) $$render(consequent_7);
7607
7689
  });
7608
7690
  }
7609
7691
 
7610
7692
  append($$anchor, fragment_2);
7611
7693
  };
7612
7694
 
7613
- if_block(node_4, ($$render) => {
7614
- if ((!slots() || slots()['links']) && linksSlot()) $$render(consequent_3); else $$render(alternate, false);
7695
+ if_block(node_5, ($$render) => {
7696
+ if ((!slots() || slots()['links']) && linksSlot()) $$render(consequent_4); else $$render(alternate_1, false);
7615
7697
  });
7616
7698
  }
7617
7699
 
7618
- reset(div_6);
7619
- reset(div_5);
7700
+ reset(div_8);
7701
+ reset(div_7);
7620
7702
  reset(div_4);
7621
7703
 
7622
- var node_9 = sibling(div_4, 2);
7704
+ var node_10 = sibling(div_4, 2);
7623
7705
 
7624
- title(node_9);
7706
+ title(node_10);
7625
7707
 
7626
- var div_7 = sibling(node_9, 2);
7627
- var node_10 = child(div_7);
7708
+ var div_9 = sibling(node_10, 2);
7709
+ var node_11 = child(div_9);
7628
7710
 
7629
7711
  {
7630
- var consequent_8 = ($$anchor) => {
7631
- var div_8 = root_10();
7632
- var node_11 = child(div_8);
7712
+ var consequent_9 = ($$anchor) => {
7713
+ var div_10 = root_12();
7714
+ var node_12 = child(div_10);
7633
7715
 
7634
7716
  {
7635
- var consequent_7 = ($$anchor) => {
7717
+ var consequent_8 = ($$anchor) => {
7636
7718
  var fragment_3 = comment();
7637
- var node_12 = first_child(fragment_3);
7719
+ var node_13 = first_child(fragment_3);
7638
7720
 
7639
- snippet(node_12, searchZoneSlot);
7721
+ snippet(node_13, searchZoneSlot);
7640
7722
  append($$anchor, fragment_3);
7641
7723
  };
7642
7724
 
7643
- if_block(node_11, ($$render) => {
7644
- if (searchZoneSlot()) $$render(consequent_7);
7725
+ if_block(node_12, ($$render) => {
7726
+ if (searchZoneSlot()) $$render(consequent_8);
7645
7727
  });
7646
7728
  }
7647
7729
 
7648
- reset(div_8);
7649
- bind_this(div_8, ($$value) => set(searchZone, $$value), () => get(searchZone));
7650
- append($$anchor, div_8);
7730
+ reset(div_10);
7731
+ bind_this(div_10, ($$value) => set(searchZone, $$value), () => get(searchZone));
7732
+ append($$anchor, div_10);
7651
7733
  };
7652
7734
 
7653
- if_block(node_10, ($$render) => {
7654
- if (get(displaySearchForm)) $$render(consequent_8);
7735
+ if_block(node_11, ($$render) => {
7736
+ if (get(displaySearchForm)) $$render(consequent_9);
7655
7737
  });
7656
7738
  }
7657
7739
 
7658
- reset(div_7);
7740
+ reset(div_9);
7659
7741
  reset(div_1);
7660
7742
 
7661
7743
  template_effect(() => {
7662
7744
  set_attribute(a_2, 'href', logoUrl());
7663
- set_attribute(a_2, 'aria-label', logoAlt());
7745
+ set_attribute(img, 'src', logoSrc());
7746
+ set_attribute(img, 'alt', logoAlt());
7664
7747
  });
7665
7748
  }
7666
7749
 
7667
7750
  reset(div);
7668
-
7669
- template_effect(() => {
7670
- set_style(div, `--logo-src:url(${logoSrc() ?? ''})`);
7671
- set_class(div_1, 1, get(containerClass));
7672
- });
7673
-
7751
+ template_effect(() => set_class(div_1, 1, get(containerClass)));
7674
7752
  append($$anchor, div);
7675
7753
 
7676
7754
  return pop({
@@ -7883,7 +7961,7 @@
7883
7961
 
7884
7962
  PivHeaderWC[FILENAME] = 'src/sdg/components/PivHeader/PivHeaderWC.svelte';
7885
7963
 
7886
- var root$k = add_locations(template(`<!> <link rel="stylesheet">`, 1), PivHeaderWC[FILENAME], [[56, 0]]);
7964
+ var root$j = add_locations(template(`<!> <link rel="stylesheet">`, 1), PivHeaderWC[FILENAME], [[56, 0]]);
7887
7965
 
7888
7966
  function PivHeaderWC($$anchor, $$props) {
7889
7967
  check_target(new.target);
@@ -7903,7 +7981,7 @@
7903
7981
  'self'
7904
7982
  ]);
7905
7983
 
7906
- var fragment = root$k();
7984
+ var fragment = root$j();
7907
7985
  var node = first_child(fragment);
7908
7986
 
7909
7987
  {
@@ -8002,7 +8080,7 @@
8002
8080
 
8003
8081
  var root_2$7 = add_locations(template(`<img>`), PivFooter[FILENAME], [[34, 12]]);
8004
8082
  var root_4$3 = add_locations(template(`<a> </a>`), PivFooter[FILENAME], [[45, 12]]);
8005
- 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]]]]);
8083
+ var root$i = 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]]]]);
8006
8084
 
8007
8085
  function PivFooter($$anchor, $$props) {
8008
8086
  check_target(new.target);
@@ -8011,8 +8089,8 @@
8011
8089
  const lang = Utils.getPageLanguage();
8012
8090
 
8013
8091
  let logoUrl = prop($$props, 'logoUrl', 7, '/'),
8014
- logoSrc = prop($$props, 'logoSrc', 23, () => Utils.imagesRelativePath + '/QUEBEC_couleur.svg'),
8015
- logoSrcDarkTheme = prop($$props, 'logoSrcDarkTheme', 23, () => Utils.imagesRelativePath + '/QUEBEC_blanc.svg'),
8092
+ logoSrc = prop($$props, 'logoSrc', 23, () => Utils.imagesRelativePath + 'QUEBEC_couleur.svg'),
8093
+ logoSrcDarkTheme = prop($$props, 'logoSrcDarkTheme', 23, () => Utils.imagesRelativePath + 'QUEBEC_blanc.svg'),
8016
8094
  logoAlt = prop($$props, 'logoAlt', 23, () => strict_equals(lang, 'fr') ? 'Logo du gouvernement du Québec' : 'Logo of the Quebec government'),
8017
8095
  logoWidth = prop($$props, 'logoWidth', 7, 139),
8018
8096
  logoHeight = prop($$props, 'logoHeight', 7, 50),
@@ -8022,7 +8100,7 @@
8022
8100
  copyrightSlot = prop($$props, 'copyrightSlot', 7),
8023
8101
  slots = prop($$props, 'slots', 23, () => ({}));
8024
8102
 
8025
- var div = root$j();
8103
+ var div = root$i();
8026
8104
  var node = child(div);
8027
8105
 
8028
8106
  {
@@ -8130,7 +8208,7 @@
8130
8208
  return logoSrc();
8131
8209
  },
8132
8210
  set logoSrc(
8133
- $$value = Utils.imagesRelativePath + '/QUEBEC_couleur.svg'
8211
+ $$value = Utils.imagesRelativePath + 'QUEBEC_couleur.svg'
8134
8212
  ) {
8135
8213
  logoSrc($$value);
8136
8214
  flushSync();
@@ -8139,7 +8217,7 @@
8139
8217
  return logoSrcDarkTheme();
8140
8218
  },
8141
8219
  set logoSrcDarkTheme(
8142
- $$value = Utils.imagesRelativePath + '/QUEBEC_blanc.svg'
8220
+ $$value = Utils.imagesRelativePath + 'QUEBEC_blanc.svg'
8143
8221
  ) {
8144
8222
  logoSrcDarkTheme($$value);
8145
8223
  flushSync();
@@ -8232,7 +8310,7 @@
8232
8310
 
8233
8311
  PivFooterWC[FILENAME] = 'src/sdg/components/PivFooter/PivFooterWC.svelte';
8234
8312
 
8235
- var root$i = add_locations(template(`<!> <link rel="stylesheet">`, 1), PivFooterWC[FILENAME], [[44, 0]]);
8313
+ var root$h = add_locations(template(`<!> <link rel="stylesheet">`, 1), PivFooterWC[FILENAME], [[44, 0]]);
8236
8314
 
8237
8315
  function PivFooterWC($$anchor, $$props) {
8238
8316
  check_target(new.target);
@@ -8252,7 +8330,7 @@
8252
8330
  'self'
8253
8331
  ]);
8254
8332
 
8255
- var fragment = root$i();
8333
+ var fragment = root$h();
8256
8334
  var node = first_child(fragment);
8257
8335
 
8258
8336
  {
@@ -8331,7 +8409,7 @@
8331
8409
 
8332
8410
  IconButton[FILENAME] = 'src/sdg/components/IconButton/IconButton.svelte';
8333
8411
 
8334
- var root$h = add_locations(template(`<button><!></button>`), IconButton[FILENAME], [[16, 0]]);
8412
+ var root$g = add_locations(template(`<button><!></button>`), IconButton[FILENAME], [[16, 0]]);
8335
8413
 
8336
8414
  function IconButton($$anchor, $$props) {
8337
8415
  check_target(new.target);
@@ -8358,7 +8436,7 @@
8358
8436
  'class'
8359
8437
  ]);
8360
8438
 
8361
- var button = root$h();
8439
+ var button = root$g();
8362
8440
  let attributes;
8363
8441
  var node = child(button);
8364
8442
 
@@ -8548,7 +8626,7 @@
8548
8626
  size: 'nm',
8549
8627
  icon: 'xclose',
8550
8628
  iconSize: 'sm',
8551
- iconColor: 'text-primary'
8629
+ iconColor: 'blue-piv'
8552
8630
  });
8553
8631
  };
8554
8632
 
@@ -8635,14 +8713,14 @@
8635
8713
 
8636
8714
  AlertWC[FILENAME] = 'src/sdg/components/Alert/AlertWC.svelte';
8637
8715
 
8638
- var root$g = add_locations(template(`<!> <link rel="stylesheet">`, 1), AlertWC[FILENAME], [[25, 0]]);
8716
+ var root$f = add_locations(template(`<!> <link rel="stylesheet">`, 1), AlertWC[FILENAME], [[25, 0]]);
8639
8717
 
8640
8718
  function AlertWC($$anchor, $$props) {
8641
8719
  check_target(new.target);
8642
8720
  push($$props, true);
8643
8721
 
8644
8722
  const props = rest_props($$props, ['$$slots', '$$events', '$$legacy', '$$host']);
8645
- var fragment = root$g();
8723
+ var fragment = root$f();
8646
8724
  var node = first_child(fragment);
8647
8725
 
8648
8726
  Alert(node, spread_props(() => props, { slotContent: `<slot />` }));
@@ -8681,7 +8759,7 @@
8681
8759
  }
8682
8760
 
8683
8761
  var on_click$2 = (e, scrollToTop) => scrollToTop(e);
8684
- var root$f = add_locations(template(`<a href="#top"><!> <span> </span></a>`), ToTop[FILENAME], [[67, 0, [[77, 3]]]]);
8762
+ var root$e = add_locations(template(`<a href="#top"><!> <span> </span></a>`), ToTop[FILENAME], [[67, 0, [[77, 3]]]]);
8685
8763
 
8686
8764
  function ToTop($$anchor, $$props) {
8687
8765
  check_target(new.target);
@@ -8725,7 +8803,7 @@
8725
8803
  lastScrollY = window.scrollY;
8726
8804
  });
8727
8805
 
8728
- var a = root$f();
8806
+ var a = root$e();
8729
8807
 
8730
8808
  event('scroll', $window, handleScrollUpButton);
8731
8809
 
@@ -8806,7 +8884,7 @@
8806
8884
 
8807
8885
  ExternalLink[FILENAME] = 'src/sdg/components/ExternalLink/ExternalLink.svelte';
8808
8886
 
8809
- var root$e = add_locations(template(`<span role="img" class="qc-ext-link-img"></span>`), ExternalLink[FILENAME], [[89, 0]]);
8887
+ var root$d = add_locations(template(`<span role="img" class="qc-ext-link-img"></span>`), ExternalLink[FILENAME], [[89, 0]]);
8810
8888
 
8811
8889
  function ExternalLink($$anchor, $$props) {
8812
8890
  check_target(new.target);
@@ -8888,7 +8966,7 @@
8888
8966
  });
8889
8967
  });
8890
8968
 
8891
- var span_1 = root$e();
8969
+ var span_1 = root$d();
8892
8970
 
8893
8971
  bind_this(span_1, ($$value) => set(imgElement, $$value), () => get(imgElement));
8894
8972
  template_effect(() => set_attribute(span_1, 'aria-label', externalIconAlt()));
@@ -8926,7 +9004,7 @@
8926
9004
 
8927
9005
  SearchInput[FILENAME] = 'src/sdg/components/SearchInput/SearchInput.svelte';
8928
9006
 
8929
- var root$d = add_locations(template(`<div><!> <input> <!></div>`), SearchInput[FILENAME], [[28, 0, [[39, 4]]]]);
9007
+ var root$c = add_locations(template(`<div><!> <input> <!></div>`), SearchInput[FILENAME], [[28, 0, [[39, 4]]]]);
8930
9008
 
8931
9009
  function SearchInput($$anchor, $$props) {
8932
9010
  check_target(new.target);
@@ -8962,7 +9040,7 @@
8962
9040
  searchInput?.focus();
8963
9041
  }
8964
9042
 
8965
- var div = root$d();
9043
+ var div = root$c();
8966
9044
  var node = child(div);
8967
9045
 
8968
9046
  {
@@ -9099,7 +9177,7 @@
9099
9177
 
9100
9178
  SearchBar[FILENAME] = 'src/sdg/components/SearchBar/SearchBar.svelte';
9101
9179
 
9102
- var root$c = add_locations(template(`<div><!> <!></div>`), SearchBar[FILENAME], [[37, 0]]);
9180
+ var root$b = add_locations(template(`<div><!> <!></div>`), SearchBar[FILENAME], [[37, 0]]);
9103
9181
 
9104
9182
  function SearchBar($$anchor, $$props) {
9105
9183
  check_target(new.target);
@@ -9143,7 +9221,7 @@
9143
9221
  ...Utils.computeFieldsAttributes("submit", rest)
9144
9222
  }));
9145
9223
 
9146
- var div = root$c();
9224
+ var div = root$b();
9147
9225
  let classes;
9148
9226
  var node = child(div);
9149
9227
 
@@ -9456,7 +9534,7 @@
9456
9534
  LabelText[FILENAME] = 'src/sdg/components/Label/LabelText.svelte';
9457
9535
 
9458
9536
  var root_1$5 = add_locations(template(`<span class="qc-required" aria-hidden="true">*</span>`), LabelText[FILENAME], [[4, 26]]);
9459
- var root$b = add_locations(template(`<!><!>`, 1), LabelText[FILENAME], []);
9537
+ var root$a = add_locations(template(`<!><!>`, 1), LabelText[FILENAME], []);
9460
9538
 
9461
9539
  function LabelText($$anchor, $$props) {
9462
9540
  check_target(new.target);
@@ -9465,7 +9543,7 @@
9465
9543
  let text = prop($$props, 'text', 7),
9466
9544
  required = prop($$props, 'required', 7);
9467
9545
 
9468
- var fragment = root$b();
9546
+ var fragment = root$a();
9469
9547
  var node = first_child(fragment);
9470
9548
 
9471
9549
  html(node, text);
@@ -9786,9 +9864,9 @@
9786
9864
  true
9787
9865
  );
9788
9866
 
9789
- /* updateInput.svelte.js generated by Svelte v5.28.6 */
9867
+ /* updateChoiceInput.svelte.js generated by Svelte v5.28.6 */
9790
9868
 
9791
- function updateInput(
9869
+ function updateChoiceInput(
9792
9870
  input,
9793
9871
  required,
9794
9872
  invalid,
@@ -9799,9 +9877,15 @@
9799
9877
  ) {
9800
9878
  if (!input) return;
9801
9879
  if (strict_equals(input.role, "switch")) return;
9880
+ if (strict_equals(input.type, "hidden")) return;
9802
9881
 
9803
9882
  let label = input.closest('label');
9804
9883
 
9884
+ if (!label) {
9885
+ console.warn(...log_if_contains_state('warn', "Pas d'élément label parent pour l'input", input));
9886
+ return;
9887
+ }
9888
+
9805
9889
  input.classList.add('qc-choicefield');
9806
9890
  label.classList.add('qc-choicefield-label');
9807
9891
  input.classList.toggle('qc-selection-button', selectionButton);
@@ -9864,7 +9948,7 @@
9864
9948
  };
9865
9949
 
9866
9950
  user_effect(() => {
9867
- (host() ? host() : get(fieldsetElement)).querySelectorAll('input, .qc-choicefield').forEach((input) => updateInput(input, required(), invalid(), compact(), selectionButton(), inline(), name()));
9951
+ (host() ? host() : get(fieldsetElement)).querySelectorAll('input, .qc-choicefield').forEach((input) => updateChoiceInput(input, required(), invalid(), compact(), selectionButton(), inline(), name()));
9868
9952
  });
9869
9953
 
9870
9954
  {
@@ -10003,7 +10087,7 @@
10003
10087
 
10004
10088
  ChoiceGroupWC[FILENAME] = 'src/sdg/components/ChoiceGroup/ChoiceGroupWC.svelte';
10005
10089
 
10006
- var root$a = add_locations(template(`<!> <link rel="stylesheet">`, 1), ChoiceGroupWC[FILENAME], [[47, 0]]);
10090
+ var root$9 = add_locations(template(`<!> <link rel="stylesheet">`, 1), ChoiceGroupWC[FILENAME], [[47, 0]]);
10007
10091
 
10008
10092
  function ChoiceGroupWC($$anchor, $$props) {
10009
10093
  check_target(new.target);
@@ -10021,7 +10105,7 @@
10021
10105
  columnCount = prop($$props, 'columnCount', 7),
10022
10106
  inline = prop($$props, 'inline', 7);
10023
10107
 
10024
- var fragment = root$a();
10108
+ var fragment = root$9();
10025
10109
  var node = first_child(fragment);
10026
10110
 
10027
10111
  {
@@ -10167,7 +10251,7 @@
10167
10251
  Checkbox[FILENAME] = 'src/sdg/components/Checkbox/Checkbox.svelte';
10168
10252
 
10169
10253
  var root_2$4 = add_locations(template(`<span class="qc-required" aria-hidden="true">*</span>`), Checkbox[FILENAME], [[56, 4]]);
10170
- var root$9 = add_locations(template(`<div><!> <!> <!></div>`), Checkbox[FILENAME], [[64, 4]]);
10254
+ var root$8 = add_locations(template(`<div><!> <!> <!></div>`), Checkbox[FILENAME], [[64, 4]]);
10171
10255
 
10172
10256
  function Checkbox($$anchor, $$props) {
10173
10257
  check_target(new.target);
@@ -10219,7 +10303,7 @@
10219
10303
  onMount(() => {
10220
10304
  if (qcCheckoxContext) return;
10221
10305
  labelElement(get(rootElement)?.querySelector('label'));
10222
- input(get(rootElement)?.querySelector('input'));
10306
+ input(get(rootElement)?.querySelector('input[type="checkbox"]'));
10223
10307
  onChange(input(), (_invalid) => invalid(_invalid));
10224
10308
  });
10225
10309
 
@@ -10229,7 +10313,7 @@
10229
10313
  }
10230
10314
  });
10231
10315
 
10232
- user_effect((_) => updateInput(input(), required(), invalid(), compact(), false, false));
10316
+ user_effect((_) => updateChoiceInput(input(), required(), invalid(), compact(), false, false));
10233
10317
 
10234
10318
  user_effect(() => {
10235
10319
  if (!required()) return;
@@ -10237,7 +10321,7 @@
10237
10321
  labelElement().appendChild(requiredSpan());
10238
10322
  });
10239
10323
 
10240
- var div = root$9();
10324
+ var div = root$8();
10241
10325
  var node_1 = child(div);
10242
10326
 
10243
10327
  requiredSpanSnippet(node_1);
@@ -10402,7 +10486,7 @@
10402
10486
 
10403
10487
  CheckboxWC[FILENAME] = 'src/sdg/components/Checkbox/CheckboxWC.svelte';
10404
10488
 
10405
- var root$8 = add_locations(template(`<!> <link rel="stylesheet">`, 1), CheckboxWC[FILENAME], [[49, 0]]);
10489
+ var root$7 = add_locations(template(`<!> <link rel="stylesheet">`, 1), CheckboxWC[FILENAME], [[49, 0]]);
10406
10490
 
10407
10491
  function CheckboxWC($$anchor, $$props) {
10408
10492
  check_target(new.target);
@@ -10422,12 +10506,12 @@
10422
10506
  input = state(void 0);
10423
10507
 
10424
10508
  onMount(() => {
10425
- set(labelElement, $$props.$$host.querySelector('label'), true);
10426
- set(input, $$props.$$host.querySelector('input'), true);
10509
+ set(labelElement, $$props.$$host.querySelector("label"), true);
10510
+ set(input, $$props.$$host.querySelector('input[type="checkbox"]'), true);
10427
10511
  onChange(get(input), (_invalid) => invalid(_invalid));
10428
10512
  });
10429
10513
 
10430
- var fragment = root$8();
10514
+ var fragment = root$7();
10431
10515
  var node = first_child(fragment);
10432
10516
 
10433
10517
  {
@@ -10525,7 +10609,7 @@
10525
10609
 
10526
10610
  Label[FILENAME] = 'src/sdg/components/Label/Label.svelte';
10527
10611
 
10528
- var root$7 = add_locations(template(`<label><!></label>`), Label[FILENAME], [[16, 0]]);
10612
+ var root$6 = add_locations(template(`<label><!></label>`), Label[FILENAME], [[16, 0]]);
10529
10613
 
10530
10614
  function Label($$anchor, $$props) {
10531
10615
  check_target(new.target);
@@ -10554,7 +10638,7 @@
10554
10638
  'rootElement'
10555
10639
  ]);
10556
10640
 
10557
- var label = root$7();
10641
+ var label = root$6();
10558
10642
  let attributes;
10559
10643
  var node = child(label);
10560
10644
 
@@ -10673,10 +10757,10 @@
10673
10757
 
10674
10758
  TextField[FILENAME] = 'src/sdg/components/TextField/TextField.svelte';
10675
10759
 
10676
- var root_3$2 = add_locations(template(`<div class="qc-description"><!></div>`), TextField[FILENAME], [[131, 8]]);
10677
- var root_4$1 = add_locations(template(`<div aria-live="polite"><!></div>`), TextField[FILENAME], [[142, 8]]);
10760
+ var root_3$2 = add_locations(template(`<div class="qc-description"><!></div>`), TextField[FILENAME], [[135, 8]]);
10761
+ var root_4$1 = add_locations(template(`<div aria-live="polite"><!></div>`), TextField[FILENAME], [[146, 8]]);
10678
10762
  var root_1$3 = add_locations(template(`<!> <!> <!> <!> <!>`, 1), TextField[FILENAME], []);
10679
- var root_6 = add_locations(template(`<div class="qc-textfield"><!></div>`), TextField[FILENAME], [[166, 4]]);
10763
+ var root_6 = add_locations(template(`<div class="qc-textfield"><!></div>`), TextField[FILENAME], [[170, 4]]);
10680
10764
 
10681
10765
  function TextField($$anchor, $$props) {
10682
10766
  check_target(new.target);
@@ -10774,7 +10858,7 @@
10774
10858
  };
10775
10859
 
10776
10860
  if_block(node_4, ($$render) => {
10777
- if (strict_equals(maxlength(), null, false)) $$render(consequent_2);
10861
+ if (maxlength() && strict_equals(maxlength(), null, false)) $$render(consequent_2);
10778
10862
  });
10779
10863
  }
10780
10864
 
@@ -10819,7 +10903,7 @@
10819
10903
  let label = prop($$props, 'label', 7, ''),
10820
10904
  required = prop($$props, 'required', 15, false),
10821
10905
  description = prop($$props, 'description', 7),
10822
- size = prop($$props, 'size', 7),
10906
+ size = prop($$props, 'size', 15),
10823
10907
  maxlength = prop($$props, 'maxlength', 7),
10824
10908
  maxlengthReached = prop($$props, 'maxlengthReached', 15, false),
10825
10909
  invalidAtSubmit = prop($$props, 'invalidAtSubmit', 15, false),
@@ -10855,6 +10939,12 @@
10855
10939
  onMountInput(input(), (textFieldRowParam) => set(textFieldRow, textFieldRowParam, true), (valueParam) => value(valueParam), (invalidParam) => invalid(invalidParam));
10856
10940
  });
10857
10941
 
10942
+ user_effect(() => {
10943
+ if (size()) return;
10944
+ if (!input()) return;
10945
+ size(strict_equals(input().tagName, 'INPUT') ? 'md' : 'lg');
10946
+ });
10947
+
10858
10948
  user_effect(() => {
10859
10949
  invalidAtSubmit(required() && !value() || maxlengthReached());
10860
10950
  });
@@ -11088,7 +11178,7 @@
11088
11178
 
11089
11179
  TextFieldWC[FILENAME] = 'src/sdg/components/TextField/TextFieldWC.svelte';
11090
11180
 
11091
- var root$6 = add_locations(template(`<!> <link rel="stylesheet">`, 1), TextFieldWC[FILENAME], [[90, 0]]);
11181
+ var root$5 = add_locations(template(`<!> <link rel="stylesheet">`, 1), TextFieldWC[FILENAME], [[98, 0]]);
11092
11182
 
11093
11183
  function TextFieldWC($$anchor, $$props) {
11094
11184
  check_target(new.target);
@@ -11104,6 +11194,7 @@
11104
11194
  description = prop($$props, 'description', 7),
11105
11195
  required = prop($$props, 'required', 7),
11106
11196
  maxlength = prop($$props, 'maxlength', 7),
11197
+ size = prop($$props, 'size', 7),
11107
11198
  maxlengthReached = prop($$props, 'maxlengthReached', 15, false),
11108
11199
  invalidAtSubmit = prop($$props, 'invalidAtSubmit', 15, false);
11109
11200
 
@@ -11120,6 +11211,11 @@
11120
11211
  onMountInput(get(input), (textFieldRowParam) => set(textFieldRow, textFieldRowParam, true), (valueParam) => set(value, valueParam, true), (invalidParam) => invalid(invalidParam));
11121
11212
  });
11122
11213
 
11214
+ user_effect(() => {
11215
+ if (!size()) return;
11216
+ $$props.$$host.setAttribute('size', size());
11217
+ });
11218
+
11123
11219
  user_effect(() => {
11124
11220
  if (!get(input)) return;
11125
11221
 
@@ -11144,10 +11240,11 @@
11144
11240
  }
11145
11241
  });
11146
11242
 
11147
- var fragment = root$6();
11243
+ var fragment = root$5();
11148
11244
  var node = first_child(fragment);
11149
11245
 
11150
11246
  {
11247
+ $$ownership_validator.binding('size', TextField, size);
11151
11248
  $$ownership_validator.binding('invalid', TextField, invalid);
11152
11249
  $$ownership_validator.binding('invalidText', TextField, invalidText);
11153
11250
  $$ownership_validator.binding('maxlengthReached', TextField, maxlengthReached);
@@ -11172,6 +11269,12 @@
11172
11269
  get value() {
11173
11270
  return get(value);
11174
11271
  },
11272
+ get size() {
11273
+ return size();
11274
+ },
11275
+ set size($$value) {
11276
+ size($$value);
11277
+ },
11175
11278
  get invalid() {
11176
11279
  return invalid();
11177
11280
  },
@@ -11279,6 +11382,13 @@
11279
11382
  maxlength($$value);
11280
11383
  flushSync();
11281
11384
  },
11385
+ get size() {
11386
+ return size();
11387
+ },
11388
+ set size($$value) {
11389
+ size($$value);
11390
+ flushSync();
11391
+ },
11282
11392
  get maxlengthReached() {
11283
11393
  return maxlengthReached();
11284
11394
  },
@@ -11319,350 +11429,6 @@
11319
11429
  true
11320
11430
  ));
11321
11431
 
11322
- Button[FILENAME] = 'src/sdg/components/Button/Button.svelte';
11323
-
11324
- var root$5 = add_locations(template(`<button><!> <!></button>`), Button[FILENAME], [[28, 0]]);
11325
-
11326
- function Button($$anchor, $$props) {
11327
- check_target(new.target);
11328
- push($$props, true);
11329
-
11330
- let variant = prop($$props, 'variant', 7, "primary"),
11331
- disabled = prop($$props, 'disabled', 7, false),
11332
- compact = prop($$props, 'compact', 7, false),
11333
- rounded = prop($$props, 'rounded', 7, false),
11334
- label = prop($$props, 'label', 7, ""),
11335
- icon = prop($$props, 'icon', 7, ""),
11336
- iconPosition = prop($$props, 'iconPosition', 7, "left"),
11337
- iconSrc = prop($$props, 'iconSrc', 7, ""),
11338
- rest = rest_props(
11339
- $$props,
11340
- [
11341
- '$$slots',
11342
- '$$events',
11343
- '$$legacy',
11344
- '$$host',
11345
- 'variant',
11346
- 'disabled',
11347
- 'compact',
11348
- 'rounded',
11349
- 'label',
11350
- 'icon',
11351
- 'iconPosition',
11352
- 'iconSrc'
11353
- ]);
11354
-
11355
- let className = state(void 0);
11356
-
11357
- user_effect(() => {
11358
- set(
11359
- className,
11360
- [
11361
- "qc-button",
11362
- `qc-${variant()}`,
11363
- compact() && "qc-compact",
11364
- rounded() && "qc-button-rounded"
11365
- ].filter(Boolean).join(" "),
11366
- true
11367
- );
11368
- });
11369
-
11370
- var button = root$5();
11371
- let attributes;
11372
- var node = child(button);
11373
-
11374
- {
11375
- var consequent_2 = ($$anchor) => {
11376
- var fragment = comment();
11377
- var node_1 = first_child(fragment);
11378
-
11379
- {
11380
- var consequent = ($$anchor) => {
11381
- Icon($$anchor, {
11382
- get src() {
11383
- return iconSrc();
11384
- }
11385
- });
11386
- };
11387
-
11388
- var alternate = ($$anchor, $$elseif) => {
11389
- {
11390
- var consequent_1 = ($$anchor) => {
11391
- Icon($$anchor, {
11392
- get type() {
11393
- return icon();
11394
- }
11395
- });
11396
- };
11397
-
11398
- if_block(
11399
- $$anchor,
11400
- ($$render) => {
11401
- if (icon()) $$render(consequent_1);
11402
- },
11403
- $$elseif
11404
- );
11405
- }
11406
- };
11407
-
11408
- if_block(node_1, ($$render) => {
11409
- if (iconSrc()) $$render(consequent); else $$render(alternate, false);
11410
- });
11411
- }
11412
-
11413
- append($$anchor, fragment);
11414
- };
11415
-
11416
- if_block(node, ($$render) => {
11417
- if (strict_equals(iconPosition(), "left")) $$render(consequent_2);
11418
- });
11419
- }
11420
-
11421
- var text = sibling(node);
11422
- var node_2 = sibling(text);
11423
-
11424
- {
11425
- var consequent_5 = ($$anchor) => {
11426
- var fragment_3 = comment();
11427
- var node_3 = first_child(fragment_3);
11428
-
11429
- {
11430
- var consequent_3 = ($$anchor) => {
11431
- Icon($$anchor, {
11432
- get src() {
11433
- return iconSrc();
11434
- }
11435
- });
11436
- };
11437
-
11438
- var alternate_1 = ($$anchor, $$elseif) => {
11439
- {
11440
- var consequent_4 = ($$anchor) => {
11441
- Icon($$anchor, {
11442
- get type() {
11443
- return icon();
11444
- }
11445
- });
11446
- };
11447
-
11448
- if_block(
11449
- $$anchor,
11450
- ($$render) => {
11451
- if (icon()) $$render(consequent_4);
11452
- },
11453
- $$elseif
11454
- );
11455
- }
11456
- };
11457
-
11458
- if_block(node_3, ($$render) => {
11459
- if (iconSrc()) $$render(consequent_3); else $$render(alternate_1, false);
11460
- });
11461
- }
11462
-
11463
- append($$anchor, fragment_3);
11464
- };
11465
-
11466
- if_block(node_2, ($$render) => {
11467
- if (icon() && strict_equals(iconPosition(), "right")) $$render(consequent_5);
11468
- });
11469
- }
11470
-
11471
- reset(button);
11472
-
11473
- template_effect(() => {
11474
- attributes = set_attributes(button, attributes, {
11475
- class: get(className),
11476
- disabled: disabled(),
11477
- ...rest
11478
- });
11479
-
11480
- set_text(text, ` ${label() ?? ''} `);
11481
- });
11482
-
11483
- append($$anchor, button);
11484
-
11485
- return pop({
11486
- get variant() {
11487
- return variant();
11488
- },
11489
- set variant($$value = "primary") {
11490
- variant($$value);
11491
- flushSync();
11492
- },
11493
- get disabled() {
11494
- return disabled();
11495
- },
11496
- set disabled($$value = false) {
11497
- disabled($$value);
11498
- flushSync();
11499
- },
11500
- get compact() {
11501
- return compact();
11502
- },
11503
- set compact($$value = false) {
11504
- compact($$value);
11505
- flushSync();
11506
- },
11507
- get rounded() {
11508
- return rounded();
11509
- },
11510
- set rounded($$value = false) {
11511
- rounded($$value);
11512
- flushSync();
11513
- },
11514
- get label() {
11515
- return label();
11516
- },
11517
- set label($$value = "") {
11518
- label($$value);
11519
- flushSync();
11520
- },
11521
- get icon() {
11522
- return icon();
11523
- },
11524
- set icon($$value = "") {
11525
- icon($$value);
11526
- flushSync();
11527
- },
11528
- get iconPosition() {
11529
- return iconPosition();
11530
- },
11531
- set iconPosition($$value = "left") {
11532
- iconPosition($$value);
11533
- flushSync();
11534
- },
11535
- get iconSrc() {
11536
- return iconSrc();
11537
- },
11538
- set iconSrc($$value = "") {
11539
- iconSrc($$value);
11540
- flushSync();
11541
- },
11542
- ...legacy_api()
11543
- });
11544
- }
11545
-
11546
- create_custom_element(
11547
- Button,
11548
- {
11549
- variant: {},
11550
- disabled: {},
11551
- compact: {},
11552
- rounded: {},
11553
- label: {},
11554
- icon: {},
11555
- iconPosition: {},
11556
- iconSrc: {}
11557
- },
11558
- [],
11559
- [],
11560
- true
11561
- );
11562
-
11563
- ButtonWC[FILENAME] = 'src/sdg/components/Button/ButtonWC.svelte';
11564
-
11565
- function ButtonWC($$anchor, $$props) {
11566
- check_target(new.target);
11567
- push($$props, true);
11568
-
11569
- let variant = prop($$props, 'variant', 7, "primary"),
11570
- disabled = prop($$props, 'disabled', 7, false),
11571
- compact = prop($$props, 'compact', 7, false),
11572
- rounded = prop($$props, 'rounded', 7, false),
11573
- label = prop($$props, 'label', 7, ""),
11574
- rest = rest_props(
11575
- $$props,
11576
- [
11577
- '$$slots',
11578
- '$$events',
11579
- '$$legacy',
11580
- '$$host',
11581
- 'variant',
11582
- 'disabled',
11583
- 'compact',
11584
- 'rounded',
11585
- 'label'
11586
- ]);
11587
-
11588
- Button($$anchor, spread_props(
11589
- {
11590
- get variant() {
11591
- return variant();
11592
- },
11593
- get disabled() {
11594
- return disabled();
11595
- },
11596
- get compact() {
11597
- return compact();
11598
- },
11599
- get rounded() {
11600
- return rounded();
11601
- },
11602
- get label() {
11603
- return label();
11604
- }
11605
- },
11606
- () => rest
11607
- ));
11608
-
11609
- return pop({
11610
- get variant() {
11611
- return variant();
11612
- },
11613
- set variant($$value = "primary") {
11614
- variant($$value);
11615
- flushSync();
11616
- },
11617
- get disabled() {
11618
- return disabled();
11619
- },
11620
- set disabled($$value = false) {
11621
- disabled($$value);
11622
- flushSync();
11623
- },
11624
- get compact() {
11625
- return compact();
11626
- },
11627
- set compact($$value = false) {
11628
- compact($$value);
11629
- flushSync();
11630
- },
11631
- get rounded() {
11632
- return rounded();
11633
- },
11634
- set rounded($$value = false) {
11635
- rounded($$value);
11636
- flushSync();
11637
- },
11638
- get label() {
11639
- return label();
11640
- },
11641
- set label($$value = "") {
11642
- label($$value);
11643
- flushSync();
11644
- },
11645
- ...legacy_api()
11646
- });
11647
- }
11648
-
11649
- customElements.define('qc-button', create_custom_element(
11650
- ButtonWC,
11651
- {
11652
- variant: { attribute: 'variant', type: 'String' },
11653
- disabled: { attribute: 'disabled', type: 'Boolean' },
11654
- compact: { attribute: 'compact', type: 'Boolean' },
11655
- rounded: { attribute: 'rounded', type: 'Boolean' },
11656
- label: { attribute: 'label', type: 'String' },
11657
- icon: { attribute: 'icon', type: 'String' },
11658
- iconPosition: { attribute: 'icon-position', type: 'String' },
11659
- iconSrc: { attribute: 'icon-src', type: 'String' }
11660
- },
11661
- [],
11662
- [],
11663
- false
11664
- ));
11665
-
11666
11432
  ToggleSwitch[FILENAME] = 'src/sdg/components/ToggleSwitch/ToggleSwitch.svelte';
11667
11433
 
11668
11434
  var root$4 = add_locations(template(`<label><input type="checkbox" role="switch"> <span><!></span> <span class="qc-switch-slider"></span></label>`), ToggleSwitch[FILENAME], [
@@ -12671,8 +12437,8 @@
12671
12437
 
12672
12438
  DropdownListItems[FILENAME] = 'src/sdg/components/DropdownList/DropdownListItems/DropdownListItems.svelte';
12673
12439
 
12674
- var root_4 = add_locations(template(`<span class="qc-dropdown-list-no-options"><!></span>`), DropdownListItems[FILENAME], [[105, 16]]);
12675
- 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]]]]);
12440
+ var root_4 = add_locations(template(`<span class="qc-dropdown-list-no-options"><!></span>`), DropdownListItems[FILENAME], [[100, 16]]);
12441
+ 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], [[62, 0, [[97, 4]]]]);
12676
12442
 
12677
12443
  function DropdownListItems($$anchor, $$props) {
12678
12444
  check_target(new.target);
@@ -12692,9 +12458,6 @@
12692
12458
  handlePrintableCharacter = prop($$props, 'handlePrintableCharacter', 7, () => {}),
12693
12459
  placeholder = prop($$props, 'placeholder', 7);
12694
12460
 
12695
- const precentRootFontSize = 62.5,
12696
- remRatio = 0.16;
12697
-
12698
12461
  let itemsComponent = state(void 0);
12699
12462
 
12700
12463
  let usedHeight = user_derived(() => {
@@ -12834,7 +12597,7 @@
12834
12597
 
12835
12598
  template_effect(() => {
12836
12599
  set_attribute(div, 'id', id());
12837
- set_style(div, `--dropdown-items-height: ${get(usedHeight) / (remRatio * precentRootFontSize)}rem;`);
12600
+ set_style(div, `--dropdown-items-height: ${get(usedHeight) ?? ''};`);
12838
12601
  });
12839
12602
 
12840
12603
  append($$anchor, div);
@@ -13126,22 +12889,22 @@
13126
12889
 
13127
12890
  DropdownList[FILENAME] = 'src/sdg/components/DropdownList/DropdownList.svelte';
13128
12891
 
13129
- var root_2 = add_locations(template(`<div class="qc-dropdown-list-search"><!></div>`), DropdownList[FILENAME], [[337, 20]]);
13130
- var root_3 = add_locations(template(`<span> </span>`), DropdownList[FILENAME], [[379, 24]]);
12892
+ var root_2 = add_locations(template(`<div class="qc-dropdown-list-search"><!></div>`), DropdownList[FILENAME], [[334, 20]]);
12893
+ var root_3 = add_locations(template(`<span> </span>`), DropdownList[FILENAME], [[376, 24]]);
13131
12894
 
13132
12895
  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], [
13133
12896
  [
13134
- 274,
12897
+ 273,
13135
12898
  0,
13136
12899
  [
13137
12900
  [
13138
- 281,
12901
+ 278,
13139
12902
  4,
13140
12903
  [
13141
12904
  [
13142
- 301,
12905
+ 297,
13143
12906
  8,
13144
- [[328, 12, [[377, 16]]]]
12907
+ [[325, 12, [[374, 16]]]]
13145
12908
  ]
13146
12909
  ]
13147
12910
  ]
@@ -13173,8 +12936,7 @@
13173
12936
  multiple = prop($$props, 'multiple', 7, false),
13174
12937
  rootElement = prop($$props, 'rootElement', 15),
13175
12938
  errorElement = prop($$props, 'errorElement', 15),
13176
- webComponentMode = prop($$props, 'webComponentMode', 7, false),
13177
- webComponentParentRow = prop($$props, 'webComponentParentRow', 7);
12939
+ webComponentMode = prop($$props, 'webComponentMode', 7, false);
13178
12940
 
13179
12941
  const defaultPlaceholder = strict_equals(lang, "fr") ? "Faire une sélection" : "Select an option",
13180
12942
  inputId = `${id()}-input`,
@@ -13223,13 +12985,13 @@
13223
12985
  };
13224
12986
  })),
13225
12987
  widthClass = user_derived(() => {
13226
- const keyword = webComponentMode() ? "container" : "root";
12988
+ webComponentMode() ? "container" : "root";
13227
12989
 
13228
12990
  if (availableWidths.includes(width())) {
13229
- return `qc-dropdown-list-${keyword}-${width()}`;
12991
+ return `qc-dropdown-list-${width()}`;
13230
12992
  }
13231
12993
 
13232
- return `qc-dropdown-list-${keyword}-md`;
12994
+ return `qc-dropdown-list-md`;
13233
12995
  }),
13234
12996
  srItemsCountText = user_derived(() => {
13235
12997
  const s = get(displayedItems).length > 1 ? "s" : "";
@@ -13418,6 +13180,9 @@
13418
13180
  event('keydown', $document.body, handleTab);
13419
13181
 
13420
13182
  var div_1 = child(div);
13183
+
13184
+ set_class(div_1, 1, clsx(["qc-dropdown-list-container"]));
13185
+
13421
13186
  var node = child(div_1);
13422
13187
 
13423
13188
  {
@@ -13634,18 +13399,12 @@
13634
13399
 
13635
13400
  template_effect(() => {
13636
13401
  set_class(div, 1, clsx([
13637
- "qc-dropdown-list-root",
13638
- !webComponentMode() && get(widthClass),
13639
- !(get(parentRow) || webComponentParentRow()) && "qc-dropdown-list-margin"
13640
- ]));
13641
-
13642
- set_class(div_1, 1, clsx([
13643
- "qc-dropdown-list-container",
13644
- webComponentMode() && get(widthClass)
13402
+ !get(parentRow) && !webComponentMode() && "qc-select"
13645
13403
  ]));
13646
13404
 
13647
13405
  set_class(div_2, 1, clsx([
13648
13406
  `qc-dropdown-list`,
13407
+ get(widthClass),
13649
13408
  invalid() && "qc-dropdown-list-invalid"
13650
13409
  ]));
13651
13410
 
@@ -13785,13 +13544,6 @@
13785
13544
  webComponentMode($$value);
13786
13545
  flushSync();
13787
13546
  },
13788
- get webComponentParentRow() {
13789
- return webComponentParentRow();
13790
- },
13791
- set webComponentParentRow($$value) {
13792
- webComponentParentRow($$value);
13793
- flushSync();
13794
- },
13795
13547
  ...legacy_api()
13796
13548
  });
13797
13549
  }
@@ -13816,8 +13568,7 @@
13816
13568
  multiple: {},
13817
13569
  rootElement: {},
13818
13570
  errorElement: {},
13819
- webComponentMode: {},
13820
- webComponentParentRow: {}
13571
+ webComponentMode: {}
13821
13572
  },
13822
13573
  [],
13823
13574
  [],
@@ -13826,7 +13577,7 @@
13826
13577
 
13827
13578
  SelectWC[FILENAME] = 'src/sdg/components/DropdownList/SelectWC.svelte';
13828
13579
 
13829
- var root = add_locations(template(`<div hidden><!></div> <!> <link rel="stylesheet">`, 1), SelectWC[FILENAME], [[137, 0], [158, 0]]);
13580
+ var root = add_locations(template(`<div hidden><!></div> <!> <link rel="stylesheet">`, 1), SelectWC[FILENAME], [[119, 0], [139, 0]]);
13830
13581
 
13831
13582
  function SelectWC($$anchor, $$props) {
13832
13583
  check_target(new.target);
@@ -13859,22 +13610,22 @@
13859
13610
  'width'
13860
13611
  ]);
13861
13612
 
13862
- const availableWidths = ["xs", "sm", "md", "lg", "xl"];
13863
13613
  let selectElement = state(void 0);
13864
13614
  let items = state(void 0);
13865
13615
  let labelElement = state(void 0);
13866
- let observer;
13616
+ let observer = new MutationObserver(setupItemsList);
13617
+
13618
+ let observerOptions = {
13619
+ childList: true,
13620
+ attributes: true,
13621
+ subtree: true,
13622
+ attributeFilter: ["label", "value", "disabled", "selected"]
13623
+ };
13624
+
13867
13625
  let instance = state(void 0);
13868
13626
  let errorElement = state(void 0);
13869
13627
  let parentRow = user_derived(() => $$props.$$host.closest(".qc-formfield-row"));
13870
-
13871
- let widthClass = user_derived(() => {
13872
- if (availableWidths.includes(width())) {
13873
- return `qc-dropdown-list-root-${width()}`;
13874
- }
13875
-
13876
- return `qc-dropdown-list-root-md`;
13877
- });
13628
+ let internalChange = false;
13878
13629
 
13879
13630
  onMount(() => {
13880
13631
  set(selectElement, $$props.$$host.querySelector("select"), true);
@@ -13887,40 +13638,46 @@
13887
13638
  if (get(selectElement)) {
13888
13639
  multiple(get(selectElement).multiple);
13889
13640
  disabled(get(selectElement).disabled);
13641
+ get(selectElement).addEventListener("change", handleSelectChange);
13642
+ observer.observe(get(selectElement), observerOptions);
13890
13643
  }
13891
13644
 
13892
13645
  setupItemsList();
13893
- setupObserver();
13646
+ $$props.$$host.classList.add("qc-select");
13894
13647
  });
13895
13648
 
13896
13649
  onDestroy(() => {
13897
13650
  observer?.disconnect();
13651
+ get(selectElement).removeEventListener("change", handleSelectChange);
13898
13652
  });
13899
13653
 
13900
13654
  user_effect(() => {
13901
- if (get(selectElement) && get(selectElement).options && get(selectElement).options.length > 0 && value() && value().length > 0) {
13902
- for (const option of get(selectElement).options) {
13903
- if (value().includes(option.value)) {
13904
- option.setAttribute('selected', '');
13905
- option.selected = true;
13906
- } else {
13907
- option.removeAttribute('selected');
13908
- option.selected = false;
13909
- }
13655
+ if (!get(selectElement)) return;
13656
+ if (!get(selectElement).options) return;
13657
+ internalChange = true;
13658
+
13659
+ let newOptionSelected = false;
13660
+
13661
+ for (const option of get(selectElement).options) {
13662
+ const selected = value().includes(option.value);
13663
+
13664
+ if (strict_equals(selected, option.selected, false)) {
13665
+ option.toggleAttribute("selected", selected);
13666
+ option.selected = selected;
13667
+ newOptionSelected = true;
13910
13668
  }
13911
13669
  }
13912
- });
13913
13670
 
13914
- user_effect(() => {
13915
- if (get(parentRow) && get(errorElement)) {
13916
- get(parentRow).appendChild(get(errorElement));
13671
+ if (newOptionSelected) {
13672
+ get(selectElement).dispatchEvent(new Event('change'));
13917
13673
  }
13674
+
13675
+ tick().then(() => internalChange = false);
13918
13676
  });
13919
13677
 
13920
13678
  user_effect(() => {
13921
- if (get(widthClass)) {
13922
- $$props.$$host.classList.add("qc-dropdown-list-root");
13923
- $$props.$$host.classList.add(get(widthClass));
13679
+ if (get(parentRow) && get(errorElement)) {
13680
+ get(parentRow).appendChild(get(errorElement));
13924
13681
  }
13925
13682
  });
13926
13683
 
@@ -13943,20 +13700,9 @@
13943
13700
  }
13944
13701
  }
13945
13702
 
13946
- function setupObserver() {
13947
- if (get(selectElement)) {
13948
- if (observer) {
13949
- return;
13950
- }
13951
-
13952
- observer = new MutationObserver(setupItemsList);
13953
-
13954
- observer.observe(get(selectElement), {
13955
- childList: true,
13956
- attributes: true,
13957
- attributeFilter: ["label", "value", "disabled", "selected"]
13958
- });
13959
- }
13703
+ function handleSelectChange() {
13704
+ if (internalChange) return;
13705
+ setupItemsList();
13960
13706
  }
13961
13707
 
13962
13708
  var fragment = root();
@@ -13991,9 +13737,6 @@
13991
13737
  return width();
13992
13738
  },
13993
13739
  webComponentMode: true,
13994
- get webComponentParentRow() {
13995
- return get(parentRow);
13996
- },
13997
13740
  get multiple() {
13998
13741
  return multiple();
13999
13742
  },