qc-trousse-sdg 1.4.7 → 1.4.8

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.
@@ -11656,9 +11656,232 @@
11656
11656
 
11657
11657
  customElements.define('qc-external-link', create_custom_element(ExternalLinkWC, { externalIconAlt: { attribute: 'img-alt' } }, [], [], false));
11658
11658
 
11659
+ LabelText[FILENAME] = 'src/sdg/components/Label/LabelText.svelte';
11660
+
11661
+ var root_1$6 = add_locations(from_html(`<span class="qc-required" aria-hidden="true">*</span>`), LabelText[FILENAME], [[5, 61]]);
11662
+ var root$c = add_locations(from_html(`<span class="qc-label-text"><!></span><!>`, 1), LabelText[FILENAME], [[5, 0]]);
11663
+
11664
+ function LabelText($$anchor, $$props) {
11665
+ check_target(new.target);
11666
+ push($$props, true);
11667
+
11668
+ let text = prop($$props, 'text', 7),
11669
+ required = prop($$props, 'required', 7);
11670
+
11671
+ var $$exports = {
11672
+ get text() {
11673
+ return text();
11674
+ },
11675
+
11676
+ set text($$value) {
11677
+ text($$value);
11678
+ flushSync();
11679
+ },
11680
+
11681
+ get required() {
11682
+ return required();
11683
+ },
11684
+
11685
+ set required($$value) {
11686
+ required($$value);
11687
+ flushSync();
11688
+ },
11689
+
11690
+ ...legacy_api()
11691
+ };
11692
+
11693
+ var fragment = root$c();
11694
+ var span = first_child(fragment);
11695
+ var node = child(span);
11696
+
11697
+ html(node, text);
11698
+ reset(span);
11699
+
11700
+ var node_1 = sibling(span);
11701
+
11702
+ {
11703
+ var consequent = ($$anchor) => {
11704
+ var span_1 = root_1$6();
11705
+
11706
+ append($$anchor, span_1);
11707
+ };
11708
+
11709
+ add_svelte_meta(
11710
+ () => if_block(node_1, ($$render) => {
11711
+ if (required()) $$render(consequent);
11712
+ }),
11713
+ 'if',
11714
+ LabelText,
11715
+ 5,
11716
+ 47
11717
+ );
11718
+ }
11719
+
11720
+ append($$anchor, fragment);
11721
+
11722
+ return pop($$exports);
11723
+ }
11724
+
11725
+ create_custom_element(LabelText, { text: {}, required: {} }, [], [], true);
11726
+
11727
+ Label[FILENAME] = 'src/sdg/components/Label/Label.svelte';
11728
+
11729
+ var root$b = add_locations(from_html(`<label><!></label>`), Label[FILENAME], [[16, 0]]);
11730
+
11731
+ function Label($$anchor, $$props) {
11732
+ check_target(new.target);
11733
+ push($$props, true);
11734
+
11735
+ let forId = prop($$props, 'forId', 7),
11736
+ text = prop($$props, 'text', 7),
11737
+ required = prop($$props, 'required', 7, false),
11738
+ compact = prop($$props, 'compact', 7, false),
11739
+ bold = prop($$props, 'bold', 7, false),
11740
+ disabled = prop($$props, 'disabled', 7, false),
11741
+ rootElement = prop($$props, 'rootElement', 15),
11742
+ rest = rest_props(
11743
+ $$props,
11744
+ [
11745
+ '$$slots',
11746
+ '$$events',
11747
+ '$$legacy',
11748
+ '$$host',
11749
+ 'forId',
11750
+ 'text',
11751
+ 'required',
11752
+ 'compact',
11753
+ 'bold',
11754
+ 'disabled',
11755
+ 'rootElement'
11756
+ ]);
11757
+
11758
+ var $$exports = {
11759
+ get forId() {
11760
+ return forId();
11761
+ },
11762
+
11763
+ set forId($$value) {
11764
+ forId($$value);
11765
+ flushSync();
11766
+ },
11767
+
11768
+ get text() {
11769
+ return text();
11770
+ },
11771
+
11772
+ set text($$value) {
11773
+ text($$value);
11774
+ flushSync();
11775
+ },
11776
+
11777
+ get required() {
11778
+ return required();
11779
+ },
11780
+
11781
+ set required($$value = false) {
11782
+ required($$value);
11783
+ flushSync();
11784
+ },
11785
+
11786
+ get compact() {
11787
+ return compact();
11788
+ },
11789
+
11790
+ set compact($$value = false) {
11791
+ compact($$value);
11792
+ flushSync();
11793
+ },
11794
+
11795
+ get bold() {
11796
+ return bold();
11797
+ },
11798
+
11799
+ set bold($$value = false) {
11800
+ bold($$value);
11801
+ flushSync();
11802
+ },
11803
+
11804
+ get disabled() {
11805
+ return disabled();
11806
+ },
11807
+
11808
+ set disabled($$value = false) {
11809
+ disabled($$value);
11810
+ flushSync();
11811
+ },
11812
+
11813
+ get rootElement() {
11814
+ return rootElement();
11815
+ },
11816
+
11817
+ set rootElement($$value) {
11818
+ rootElement($$value);
11819
+ flushSync();
11820
+ },
11821
+
11822
+ ...legacy_api()
11823
+ };
11824
+
11825
+ var label = root$b();
11826
+
11827
+ attribute_effect(label, () => ({
11828
+ for: forId(),
11829
+
11830
+ class: [
11831
+ "qc-label",
11832
+ compact() && "qc-compact",
11833
+ bold() && "qc-bold",
11834
+ disabled() && "qc-disabled"
11835
+ ],
11836
+
11837
+ ...rest
11838
+ }));
11839
+
11840
+ var node = child(label);
11841
+
11842
+ add_svelte_meta(
11843
+ () => LabelText(node, {
11844
+ get text() {
11845
+ return text();
11846
+ },
11847
+
11848
+ get required() {
11849
+ return required();
11850
+ }
11851
+ }),
11852
+ 'component',
11853
+ Label,
11854
+ 27,
11855
+ 4,
11856
+ { componentTag: 'LabelText' }
11857
+ );
11858
+
11859
+ reset(label);
11860
+ bind_this(label, ($$value) => rootElement($$value), () => rootElement());
11861
+ append($$anchor, label);
11862
+
11863
+ return pop($$exports);
11864
+ }
11865
+
11866
+ create_custom_element(
11867
+ Label,
11868
+ {
11869
+ forId: {},
11870
+ text: {},
11871
+ required: {},
11872
+ compact: {},
11873
+ bold: {},
11874
+ disabled: {},
11875
+ rootElement: {}
11876
+ },
11877
+ [],
11878
+ [],
11879
+ true
11880
+ );
11881
+
11659
11882
  SearchInput[FILENAME] = 'src/sdg/components/SearchInput/SearchInput.svelte';
11660
11883
 
11661
- var root$c = add_locations(from_html(`<div><!> <input/> <!></div>`), SearchInput[FILENAME], [[28, 0, [[39, 4]]]]);
11884
+ var root$a = add_locations(from_html(`<!> <div><!> <input/> <!></div>`, 1), SearchInput[FILENAME], [[38, 0, [[51, 4]]]]);
11662
11885
 
11663
11886
  function SearchInput($$anchor, $$props) {
11664
11887
  check_target(new.target);
@@ -11667,6 +11890,8 @@
11667
11890
  const lang = Utils.getPageLanguage();
11668
11891
 
11669
11892
  let value = prop($$props, 'value', 15, ''),
11893
+ label = prop($$props, 'label', 7, ''),
11894
+ size = prop($$props, 'size', 7, ''),
11670
11895
  ariaLabel = prop($$props, 'ariaLabel', 23, () => strict_equals(lang, "fr") ? "Rechercher..." : "Search..."),
11671
11896
  clearAriaLabel = prop($$props, 'clearAriaLabel', 23, () => strict_equals(lang, "fr") ? "Effacer le texte" : "Clear text"),
11672
11897
  leftIcon = prop($$props, 'leftIcon', 7, false),
@@ -11679,6 +11904,8 @@
11679
11904
  '$$legacy',
11680
11905
  '$$host',
11681
11906
  'value',
11907
+ 'label',
11908
+ 'size',
11682
11909
  'ariaLabel',
11683
11910
  'clearAriaLabel',
11684
11911
  'leftIcon',
@@ -11708,6 +11935,24 @@
11708
11935
  flushSync();
11709
11936
  },
11710
11937
 
11938
+ get label() {
11939
+ return label();
11940
+ },
11941
+
11942
+ set label($$value = '') {
11943
+ label($$value);
11944
+ flushSync();
11945
+ },
11946
+
11947
+ get size() {
11948
+ return size();
11949
+ },
11950
+
11951
+ set size($$value = '') {
11952
+ size($$value);
11953
+ flushSync();
11954
+ },
11955
+
11711
11956
  get ariaLabel() {
11712
11957
  return ariaLabel();
11713
11958
  },
@@ -11746,14 +11991,52 @@
11746
11991
  flushSync();
11747
11992
  },
11748
11993
 
11749
- ...legacy_api()
11750
- };
11994
+ ...legacy_api()
11995
+ };
11996
+
11997
+ var fragment = root$a();
11998
+ var node = first_child(fragment);
11999
+
12000
+ {
12001
+ var consequent = ($$anchor) => {
12002
+ add_svelte_meta(
12003
+ () => Label($$anchor, {
12004
+ get disabled() {
12005
+ return isDisabled;
12006
+ },
12007
+
12008
+ get text() {
12009
+ return label();
12010
+ },
12011
+
12012
+ get forId() {
12013
+ return id();
12014
+ }
12015
+ }),
12016
+ 'component',
12017
+ SearchInput,
12018
+ 32,
12019
+ 4,
12020
+ { componentTag: 'Label' }
12021
+ );
12022
+ };
12023
+
12024
+ add_svelte_meta(
12025
+ () => if_block(node, ($$render) => {
12026
+ if (label()) $$render(consequent);
12027
+ }),
12028
+ 'if',
12029
+ SearchInput,
12030
+ 31,
12031
+ 0
12032
+ );
12033
+ }
11751
12034
 
11752
- var div = root$c();
11753
- var node = child(div);
12035
+ var div = sibling(node, 2);
12036
+ var node_1 = child(div);
11754
12037
 
11755
12038
  {
11756
- var consequent = ($$anchor) => {
12039
+ var consequent_1 = ($$anchor) => {
11757
12040
  {
11758
12041
  let $0 = user_derived(() => `qc-icon${isDisabled ? ' is-disabled' : ''}`);
11759
12042
 
@@ -11768,7 +12051,7 @@
11768
12051
  }),
11769
12052
  'component',
11770
12053
  SearchInput,
11771
- 34,
12054
+ 46,
11772
12055
  8,
11773
12056
  { componentTag: 'Icon' }
11774
12057
  );
@@ -11776,24 +12059,24 @@
11776
12059
  };
11777
12060
 
11778
12061
  add_svelte_meta(
11779
- () => if_block(node, ($$render) => {
11780
- if (leftIcon()) $$render(consequent);
12062
+ () => if_block(node_1, ($$render) => {
12063
+ if (leftIcon()) $$render(consequent_1);
11781
12064
  }),
11782
12065
  'if',
11783
12066
  SearchInput,
11784
- 33,
12067
+ 45,
11785
12068
  4
11786
12069
  );
11787
12070
  }
11788
12071
 
11789
- var input = sibling(node, 2);
12072
+ var input = sibling(node_1, 2);
11790
12073
 
11791
12074
  attribute_effect(
11792
12075
  input,
11793
12076
  () => ({
11794
12077
  type: 'search',
11795
12078
  autocomplete: 'off',
11796
- 'aria-label': ariaLabel(),
12079
+ 'aria-label': label() ? undefined : ariaLabel(),
11797
12080
  class: isDisabled ? "qc-disabled" : "",
11798
12081
  id: id(),
11799
12082
  ...rest
@@ -11807,10 +12090,10 @@
11807
12090
 
11808
12091
  bind_this(input, ($$value) => searchInput = $$value, () => searchInput);
11809
12092
 
11810
- var node_1 = sibling(input, 2);
12093
+ var node_2 = sibling(input, 2);
11811
12094
 
11812
12095
  {
11813
- var consequent_1 = ($$anchor) => {
12096
+ var consequent_2 = ($$anchor) => {
11814
12097
  add_svelte_meta(
11815
12098
  () => IconButton($$anchor, {
11816
12099
  type: 'button',
@@ -11830,33 +12113,37 @@
11830
12113
  }),
11831
12114
  'component',
11832
12115
  SearchInput,
11833
- 49,
12116
+ 61,
11834
12117
  4,
11835
12118
  { componentTag: 'IconButton' }
11836
12119
  );
11837
12120
  };
11838
12121
 
11839
12122
  add_svelte_meta(
11840
- () => if_block(node_1, ($$render) => {
11841
- if (value()) $$render(consequent_1);
12123
+ () => if_block(node_2, ($$render) => {
12124
+ if (value()) $$render(consequent_2);
11842
12125
  }),
11843
12126
  'if',
11844
12127
  SearchInput,
11845
- 48,
12128
+ 60,
11846
12129
  4
11847
12130
  );
11848
12131
  }
11849
12132
 
11850
12133
  reset(div);
11851
12134
 
11852
- template_effect(() => set_class(div, 1, clsx([
11853
- "qc-search-input",
11854
- leftIcon() && "qc-search-left-icon",
11855
- leftIcon() && isDisabled && "qc-search-left-icon-disabled"
11856
- ])));
12135
+ template_effect(() => {
12136
+ set_class(div, 1, clsx([
12137
+ "qc-search-input",
12138
+ leftIcon() && "qc-search-left-icon",
12139
+ leftIcon() && isDisabled && "qc-search-left-icon-disabled"
12140
+ ]));
12141
+
12142
+ set_attribute(div, 'size', size());
12143
+ });
11857
12144
 
11858
12145
  bind_value(input, value);
11859
- append($$anchor, div);
12146
+ append($$anchor, fragment);
11860
12147
 
11861
12148
  return pop($$exports);
11862
12149
  }
@@ -11865,6 +12152,8 @@
11865
12152
  SearchInput,
11866
12153
  {
11867
12154
  value: {},
12155
+ label: {},
12156
+ size: {},
11868
12157
  ariaLabel: {},
11869
12158
  clearAriaLabel: {},
11870
12159
  leftIcon: {},
@@ -11877,7 +12166,7 @@
11877
12166
 
11878
12167
  SearchBar[FILENAME] = 'src/sdg/components/SearchBar/SearchBar.svelte';
11879
12168
 
11880
- var root$b = add_locations(from_html(`<div><!> <!></div>`), SearchBar[FILENAME], [[37, 0]]);
12169
+ var root$9 = add_locations(from_html(`<div><!> <!></div>`), SearchBar[FILENAME], [[37, 0]]);
11881
12170
 
11882
12171
  function SearchBar($$anchor, $$props) {
11883
12172
  check_target(new.target);
@@ -11959,7 +12248,7 @@
11959
12248
  ...legacy_api()
11960
12249
  };
11961
12250
 
11962
- var div = root$b();
12251
+ var div = root$9();
11963
12252
  let classes;
11964
12253
  var node = child(div);
11965
12254
 
@@ -12055,7 +12344,7 @@
12055
12344
  const props = rest_props($$props, ['$$slots', '$$events', '$$legacy', '$$host']);
12056
12345
  var $$exports = { ...legacy_api() };
12057
12346
 
12058
- add_svelte_meta(() => SearchInput($$anchor, spread_props(() => props)), 'component', SearchInputWC, 18, 0, { componentTag: 'SearchInput' });
12347
+ add_svelte_meta(() => SearchInput($$anchor, spread_props(() => props)), 'component', SearchInputWC, 20, 0, { componentTag: 'SearchInput' });
12059
12348
 
12060
12349
  return pop($$exports);
12061
12350
  }
@@ -12066,6 +12355,8 @@
12066
12355
  id: { attribute: 'id' },
12067
12356
  ariaLabel: { attribute: 'aria-label' },
12068
12357
  clearAriaLabel: { attribute: 'clear-aria-label' },
12358
+ label: { attribute: 'label' },
12359
+ size: { attribute: 'size' },
12069
12360
  leftIcon: { attribute: 'left-icon' }
12070
12361
  },
12071
12362
  [],
@@ -12135,7 +12426,7 @@
12135
12426
  FormError[FILENAME] = 'src/sdg/components/FormError/FormError.svelte';
12136
12427
 
12137
12428
  var root_2$6 = add_locations(from_html(`<!> <span><!></span>`, 1), FormError[FILENAME], [[48, 8]]);
12138
- var root_1$6 = add_locations(from_html(`<div role="alert"><!></div>`), FormError[FILENAME], [[35, 0]]);
12429
+ var root_1$5 = add_locations(from_html(`<div role="alert"><!></div>`), FormError[FILENAME], [[35, 0]]);
12139
12430
 
12140
12431
  function FormError($$anchor, $$props) {
12141
12432
  check_target(new.target);
@@ -12231,7 +12522,7 @@
12231
12522
 
12232
12523
  {
12233
12524
  var consequent = ($$anchor) => {
12234
- var div = root_1$6();
12525
+ var div = root_1$5();
12235
12526
  var node_1 = child(div);
12236
12527
 
12237
12528
  add_svelte_meta(
@@ -12311,74 +12602,6 @@
12311
12602
  true
12312
12603
  );
12313
12604
 
12314
- LabelText[FILENAME] = 'src/sdg/components/Label/LabelText.svelte';
12315
-
12316
- var root_1$5 = add_locations(from_html(`<span class="qc-required" aria-hidden="true">*</span>`), LabelText[FILENAME], [[5, 61]]);
12317
- var root$a = add_locations(from_html(`<span class="qc-label-text"><!></span><!>`, 1), LabelText[FILENAME], [[5, 0]]);
12318
-
12319
- function LabelText($$anchor, $$props) {
12320
- check_target(new.target);
12321
- push($$props, true);
12322
-
12323
- let text = prop($$props, 'text', 7),
12324
- required = prop($$props, 'required', 7);
12325
-
12326
- var $$exports = {
12327
- get text() {
12328
- return text();
12329
- },
12330
-
12331
- set text($$value) {
12332
- text($$value);
12333
- flushSync();
12334
- },
12335
-
12336
- get required() {
12337
- return required();
12338
- },
12339
-
12340
- set required($$value) {
12341
- required($$value);
12342
- flushSync();
12343
- },
12344
-
12345
- ...legacy_api()
12346
- };
12347
-
12348
- var fragment = root$a();
12349
- var span = first_child(fragment);
12350
- var node = child(span);
12351
-
12352
- html(node, text);
12353
- reset(span);
12354
-
12355
- var node_1 = sibling(span);
12356
-
12357
- {
12358
- var consequent = ($$anchor) => {
12359
- var span_1 = root_1$5();
12360
-
12361
- append($$anchor, span_1);
12362
- };
12363
-
12364
- add_svelte_meta(
12365
- () => if_block(node_1, ($$render) => {
12366
- if (required()) $$render(consequent);
12367
- }),
12368
- 'if',
12369
- LabelText,
12370
- 5,
12371
- 47
12372
- );
12373
- }
12374
-
12375
- append($$anchor, fragment);
12376
-
12377
- return pop($$exports);
12378
- }
12379
-
12380
- create_custom_element(LabelText, { text: {}, required: {} }, [], [], true);
12381
-
12382
12605
  Fieldset[FILENAME] = 'src/sdg/components/Fieldset/Fieldset.svelte';
12383
12606
 
12384
12607
  var root_2$5 = add_locations(from_html(`<legend><!></legend>`), Fieldset[FILENAME], [[43, 4]]);
@@ -12977,7 +13200,7 @@
12977
13200
 
12978
13201
  ChoiceGroupWC[FILENAME] = 'src/sdg/components/ChoiceGroup/ChoiceGroupWC.svelte';
12979
13202
 
12980
- var root$9 = add_locations(from_html(`<!> <link rel="stylesheet"/>`, 1), ChoiceGroupWC[FILENAME], [[47, 0]]);
13203
+ var root$8 = add_locations(from_html(`<!> <link rel="stylesheet"/>`, 1), ChoiceGroupWC[FILENAME], [[47, 0]]);
12981
13204
 
12982
13205
  function ChoiceGroupWC($$anchor, $$props) {
12983
13206
  check_target(new.target);
@@ -13080,7 +13303,7 @@
13080
13303
  ...legacy_api()
13081
13304
  };
13082
13305
 
13083
- var fragment = root$9();
13306
+ var fragment = root$8();
13084
13307
  var node = first_child(fragment);
13085
13308
 
13086
13309
  {
@@ -13177,7 +13400,7 @@
13177
13400
  Checkbox[FILENAME] = 'src/sdg/components/Checkbox/Checkbox.svelte';
13178
13401
 
13179
13402
  var root_2$4 = add_locations(from_html(`<span class="qc-required" aria-hidden="true">*</span>`), Checkbox[FILENAME], [[57, 4]]);
13180
- var root$8 = add_locations(from_html(`<div><!> <!> <!></div>`), Checkbox[FILENAME], [[65, 4]]);
13403
+ var root$7 = add_locations(from_html(`<div><!> <!> <!></div>`), Checkbox[FILENAME], [[65, 4]]);
13181
13404
 
13182
13405
  function Checkbox($$anchor, $$props) {
13183
13406
  check_target(new.target);
@@ -13386,7 +13609,7 @@
13386
13609
  ...legacy_api()
13387
13610
  };
13388
13611
 
13389
- var div = root$8();
13612
+ var div = root$7();
13390
13613
  var node_1 = child(div);
13391
13614
 
13392
13615
  add_svelte_meta(() => requiredSpanSnippet(node_1), 'render', Checkbox, 72, 8);
@@ -13460,7 +13683,7 @@
13460
13683
 
13461
13684
  CheckboxWC[FILENAME] = 'src/sdg/components/Checkbox/CheckboxWC.svelte';
13462
13685
 
13463
- var root$7 = add_locations(from_html(`<!> <link rel="stylesheet"/>`, 1), CheckboxWC[FILENAME], [[49, 0]]);
13686
+ var root$6 = add_locations(from_html(`<!> <link rel="stylesheet"/>`, 1), CheckboxWC[FILENAME], [[49, 0]]);
13464
13687
 
13465
13688
  function CheckboxWC($$anchor, $$props) {
13466
13689
  check_target(new.target);
@@ -13525,7 +13748,7 @@
13525
13748
  ...legacy_api()
13526
13749
  };
13527
13750
 
13528
- var fragment = root$7();
13751
+ var fragment = root$6();
13529
13752
  var node = first_child(fragment);
13530
13753
 
13531
13754
  {
@@ -13608,161 +13831,6 @@
13608
13831
  true
13609
13832
  ));
13610
13833
 
13611
- Label[FILENAME] = 'src/sdg/components/Label/Label.svelte';
13612
-
13613
- var root$6 = add_locations(from_html(`<label><!></label>`), Label[FILENAME], [[16, 0]]);
13614
-
13615
- function Label($$anchor, $$props) {
13616
- check_target(new.target);
13617
- push($$props, true);
13618
-
13619
- let forId = prop($$props, 'forId', 7),
13620
- text = prop($$props, 'text', 7),
13621
- required = prop($$props, 'required', 7, false),
13622
- compact = prop($$props, 'compact', 7, false),
13623
- bold = prop($$props, 'bold', 7, false),
13624
- disabled = prop($$props, 'disabled', 7, false),
13625
- rootElement = prop($$props, 'rootElement', 15),
13626
- rest = rest_props(
13627
- $$props,
13628
- [
13629
- '$$slots',
13630
- '$$events',
13631
- '$$legacy',
13632
- '$$host',
13633
- 'forId',
13634
- 'text',
13635
- 'required',
13636
- 'compact',
13637
- 'bold',
13638
- 'disabled',
13639
- 'rootElement'
13640
- ]);
13641
-
13642
- var $$exports = {
13643
- get forId() {
13644
- return forId();
13645
- },
13646
-
13647
- set forId($$value) {
13648
- forId($$value);
13649
- flushSync();
13650
- },
13651
-
13652
- get text() {
13653
- return text();
13654
- },
13655
-
13656
- set text($$value) {
13657
- text($$value);
13658
- flushSync();
13659
- },
13660
-
13661
- get required() {
13662
- return required();
13663
- },
13664
-
13665
- set required($$value = false) {
13666
- required($$value);
13667
- flushSync();
13668
- },
13669
-
13670
- get compact() {
13671
- return compact();
13672
- },
13673
-
13674
- set compact($$value = false) {
13675
- compact($$value);
13676
- flushSync();
13677
- },
13678
-
13679
- get bold() {
13680
- return bold();
13681
- },
13682
-
13683
- set bold($$value = false) {
13684
- bold($$value);
13685
- flushSync();
13686
- },
13687
-
13688
- get disabled() {
13689
- return disabled();
13690
- },
13691
-
13692
- set disabled($$value = false) {
13693
- disabled($$value);
13694
- flushSync();
13695
- },
13696
-
13697
- get rootElement() {
13698
- return rootElement();
13699
- },
13700
-
13701
- set rootElement($$value) {
13702
- rootElement($$value);
13703
- flushSync();
13704
- },
13705
-
13706
- ...legacy_api()
13707
- };
13708
-
13709
- var label = root$6();
13710
-
13711
- attribute_effect(label, () => ({
13712
- for: forId(),
13713
-
13714
- class: [
13715
- "qc-label",
13716
- compact() && "qc-compact",
13717
- bold() && "qc-bold",
13718
- disabled() && "qc-disabled"
13719
- ],
13720
-
13721
- ...rest
13722
- }));
13723
-
13724
- var node = child(label);
13725
-
13726
- add_svelte_meta(
13727
- () => LabelText(node, {
13728
- get text() {
13729
- return text();
13730
- },
13731
-
13732
- get required() {
13733
- return required();
13734
- }
13735
- }),
13736
- 'component',
13737
- Label,
13738
- 27,
13739
- 4,
13740
- { componentTag: 'LabelText' }
13741
- );
13742
-
13743
- reset(label);
13744
- bind_this(label, ($$value) => rootElement($$value), () => rootElement());
13745
- append($$anchor, label);
13746
-
13747
- return pop($$exports);
13748
- }
13749
-
13750
- create_custom_element(
13751
- Label,
13752
- {
13753
- forId: {},
13754
- text: {},
13755
- required: {},
13756
- compact: {},
13757
- bold: {},
13758
- disabled: {},
13759
- rootElement: {}
13760
- },
13761
- [],
13762
- [],
13763
- true
13764
- );
13765
-
13766
13834
  function onMountInput(input, setTextFieldRow, setValue, setInvalid, setRequired) {
13767
13835
  if (!input) return;
13768
13836
  if (!input.autocomplete) {
@@ -14315,7 +14383,7 @@
14315
14383
 
14316
14384
  TextFieldWC[FILENAME] = 'src/sdg/components/TextField/TextFieldWC.svelte';
14317
14385
 
14318
- var root$5 = add_locations(from_html(`<!> <link rel="stylesheet"/>`, 1), TextFieldWC[FILENAME], [[112, 0]]);
14386
+ var root$5 = add_locations(from_html(`<!> <link rel="stylesheet"/>`, 1), TextFieldWC[FILENAME], [[115, 0]]);
14319
14387
 
14320
14388
  function TextFieldWC($$anchor, $$props) {
14321
14389
  check_target(new.target);
@@ -14369,6 +14437,10 @@
14369
14437
  user_effect(() => {
14370
14438
  if (!get(input)) return;
14371
14439
 
14440
+ if (get(labelElement)) {
14441
+ get(input).before(get(labelElement));
14442
+ }
14443
+
14372
14444
  if (description()) {
14373
14445
  get(input).before(get(descriptionElement));
14374
14446
  }
@@ -14597,7 +14669,7 @@
14597
14669
  }),
14598
14670
  'component',
14599
14671
  TextFieldWC,
14600
- 92,
14672
+ 95,
14601
14673
  0,
14602
14674
  { componentTag: 'TextField' }
14603
14675
  );