@abgov/web-components 1.0.0-alpha.73 → 1.0.0-alpha.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/web-components",
3
- "version": "1.0.0-alpha.73",
3
+ "version": "1.0.0-alpha.74",
4
4
  "description": "Government of Alberta - UI Web components",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -4393,12 +4393,12 @@ const BIND$1 = "bind";
4393
4393
 
4394
4394
  function get_each_context$1(ctx, list, i) {
4395
4395
  const child_ctx = ctx.slice();
4396
- child_ctx[34] = list[i];
4397
- child_ctx[36] = i;
4396
+ child_ctx[35] = list[i];
4397
+ child_ctx[37] = i;
4398
4398
  return child_ctx;
4399
4399
  }
4400
4400
 
4401
- // (172:2) {#if isMenuVisible}
4401
+ // (175:2) {#if isMenuVisible}
4402
4402
  function create_if_block$b(ctx) {
4403
4403
  let div;
4404
4404
  let div_data_testid_value;
@@ -4432,10 +4432,10 @@ function create_if_block$b(ctx) {
4432
4432
  };
4433
4433
  }
4434
4434
 
4435
- // (208:4) {#each options as option, index (option.value)}
4435
+ // (211:4) {#each options as option, index (option.value)}
4436
4436
  function create_each_block$1(key_1, ctx) {
4437
4437
  let li;
4438
- let t0_value = /*option*/ ctx[34].label + "";
4438
+ let t0_value = /*option*/ ctx[35].label + "";
4439
4439
  let t0;
4440
4440
  let t1;
4441
4441
  let li_data_testid_value;
@@ -4445,7 +4445,7 @@ function create_each_block$1(key_1, ctx) {
4445
4445
  let dispose;
4446
4446
 
4447
4447
  function click_handler() {
4448
- return /*click_handler*/ ctx[22](/*option*/ ctx[34]);
4448
+ return /*click_handler*/ ctx[21](/*option*/ ctx[35]);
4449
4449
  }
4450
4450
 
4451
4451
  return {
@@ -4455,13 +4455,13 @@ function create_each_block$1(key_1, ctx) {
4455
4455
  li = element("li");
4456
4456
  t0 = text(t0_value);
4457
4457
  t1 = space();
4458
- attr(li, "data-testid", li_data_testid_value = `${/*option*/ ctx[34].value}-dropdown-item`);
4459
- attr(li, "data-index", li_data_index_value = /*index*/ ctx[36]);
4458
+ attr(li, "data-testid", li_data_testid_value = `${/*option*/ ctx[35].value}-dropdown-item`);
4459
+ attr(li, "data-index", li_data_index_value = /*index*/ ctx[37]);
4460
4460
  attr(li, "class", "goa-dropdown-option");
4461
4461
  attr(li, "style", li_style_value = `display: ${"block"}`);
4462
4462
  toggle_class(li, "goa-dropdown-option--disabled", false);
4463
- toggle_class(li, "goa-dropdown-option--tabbed", /*index*/ ctx[36] === /*highlightedIndex*/ ctx[11]);
4464
- toggle_class(li, "goa-dropdown-option--selected", /*_values*/ ctx[7].includes(/*option*/ ctx[34].value));
4463
+ toggle_class(li, "goa-dropdown-option--tabbed", /*index*/ ctx[37] === /*highlightedIndex*/ ctx[12]);
4464
+ toggle_class(li, "goa-dropdown-option--selected", /*_values*/ ctx[8].includes(/*option*/ ctx[35].value));
4465
4465
  this.first = li;
4466
4466
  },
4467
4467
  m(target, anchor) {
@@ -4476,22 +4476,22 @@ function create_each_block$1(key_1, ctx) {
4476
4476
  },
4477
4477
  p(new_ctx, dirty) {
4478
4478
  ctx = new_ctx;
4479
- if (dirty[0] & /*options*/ 256 && t0_value !== (t0_value = /*option*/ ctx[34].label + "")) set_data(t0, t0_value);
4479
+ if (dirty[0] & /*options*/ 512 && t0_value !== (t0_value = /*option*/ ctx[35].label + "")) set_data(t0, t0_value);
4480
4480
 
4481
- if (dirty[0] & /*options*/ 256 && li_data_testid_value !== (li_data_testid_value = `${/*option*/ ctx[34].value}-dropdown-item`)) {
4481
+ if (dirty[0] & /*options*/ 512 && li_data_testid_value !== (li_data_testid_value = `${/*option*/ ctx[35].value}-dropdown-item`)) {
4482
4482
  attr(li, "data-testid", li_data_testid_value);
4483
4483
  }
4484
4484
 
4485
- if (dirty[0] & /*options*/ 256 && li_data_index_value !== (li_data_index_value = /*index*/ ctx[36])) {
4485
+ if (dirty[0] & /*options*/ 512 && li_data_index_value !== (li_data_index_value = /*index*/ ctx[37])) {
4486
4486
  attr(li, "data-index", li_data_index_value);
4487
4487
  }
4488
4488
 
4489
- if (dirty[0] & /*options, highlightedIndex*/ 2304) {
4490
- toggle_class(li, "goa-dropdown-option--tabbed", /*index*/ ctx[36] === /*highlightedIndex*/ ctx[11]);
4489
+ if (dirty[0] & /*options, highlightedIndex*/ 4608) {
4490
+ toggle_class(li, "goa-dropdown-option--tabbed", /*index*/ ctx[37] === /*highlightedIndex*/ ctx[12]);
4491
4491
  }
4492
4492
 
4493
- if (dirty[0] & /*_values, options*/ 384) {
4494
- toggle_class(li, "goa-dropdown-option--selected", /*_values*/ ctx[7].includes(/*option*/ ctx[34].value));
4493
+ if (dirty[0] & /*_values, options*/ 768) {
4494
+ toggle_class(li, "goa-dropdown-option--selected", /*_values*/ ctx[8].includes(/*option*/ ctx[35].value));
4495
4495
  }
4496
4496
  },
4497
4497
  d(detaching) {
@@ -4507,7 +4507,6 @@ function create_fragment$l(ctx) {
4507
4507
  let t0;
4508
4508
  let div0;
4509
4509
  let goa_input;
4510
- let goa_input_width_value;
4511
4510
  let goa_input_id_value;
4512
4511
  let div0_data_testid_value;
4513
4512
  let t1;
@@ -4517,11 +4516,12 @@ function create_fragment$l(ctx) {
4517
4516
  let each_blocks = [];
4518
4517
  let each_1_lookup = new Map();
4519
4518
  let ul_style_value;
4519
+ let div1_style_value;
4520
4520
  let mounted;
4521
4521
  let dispose;
4522
- let if_block = /*isMenuVisible*/ ctx[10] && create_if_block$b(ctx);
4523
- let each_value = /*options*/ ctx[8];
4524
- const get_key = ctx => /*option*/ ctx[34].value;
4522
+ let if_block = /*isMenuVisible*/ ctx[11] && create_if_block$b(ctx);
4523
+ let each_value = /*options*/ ctx[9];
4524
+ const get_key = ctx => /*option*/ ctx[35].value;
4525
4525
 
4526
4526
  for (let i = 0; i < each_value.length; i += 1) {
4527
4527
  let child_ctx = get_each_context$1(ctx, each_value, i);
@@ -4546,25 +4546,26 @@ function create_fragment$l(ctx) {
4546
4546
  }
4547
4547
 
4548
4548
  this.c = noop;
4549
- set_custom_element_data(goa_input, "error", /*isError*/ ctx[15]);
4550
- set_custom_element_data(goa_input, "disabled", /*disabled*/ ctx[4]);
4549
+ set_custom_element_data(goa_input, "error", /*error*/ ctx[7]);
4550
+ set_custom_element_data(goa_input, "disabled", /*disabled*/ ctx[6]);
4551
4551
  set_custom_element_data(goa_input, "leadingicon", /*leadingicon*/ ctx[1]);
4552
4552
  set_custom_element_data(goa_input, "placeholder", /*placeholder*/ ctx[3]);
4553
- set_custom_element_data(goa_input, "width", goa_input_width_value = /*width*/ ctx[6] || /*computedWidth*/ ctx[12]);
4553
+ set_custom_element_data(goa_input, "width", "100%");
4554
4554
  set_custom_element_data(goa_input, "id", goa_input_id_value = `${/*name*/ ctx[0]}-dropdown-input`);
4555
4555
  set_custom_element_data(goa_input, "name", "search");
4556
4556
  set_custom_element_data(goa_input, "readonly", "");
4557
4557
  set_custom_element_data(goa_input, "trailingicon", "chevron-down");
4558
4558
  set_custom_element_data(goa_input, "type", "text");
4559
- set_custom_element_data(goa_input, "value", /*selectedLabel*/ ctx[9]);
4559
+ set_custom_element_data(goa_input, "value", /*selectedLabel*/ ctx[10]);
4560
4560
  attr(div0, "data-testid", div0_data_testid_value = `${/*name*/ ctx[0]}-dropdown`);
4561
4561
  attr(ul, "data-testid", "dropdown-menu");
4562
4562
  attr(ul, "tabindex", "0");
4563
4563
  attr(ul, "class", "goa-dropdown-list");
4564
4564
  attr(ul, "style", ul_style_value = `overflow-y: auto; max-height: ${/*maxheight*/ ctx[2]}`);
4565
- toggle_class(ul, "dropdown-active", /*isMenuVisible*/ ctx[10]);
4566
- attr(div1, "data-testid", /*testid*/ ctx[5]);
4565
+ toggle_class(ul, "dropdown-active", /*isMenuVisible*/ ctx[11]);
4566
+ attr(div1, "data-testid", /*testid*/ ctx[4]);
4567
4567
  attr(div1, "class", "goa-dropdown-box");
4568
+ attr(div1, "style", div1_style_value = `--width: ${/*width*/ ctx[5] || /*computedWidth*/ ctx[13]}`);
4568
4569
  },
4569
4570
  m(target, anchor) {
4570
4571
  insert(target, div1, anchor);
@@ -4581,8 +4582,8 @@ function create_fragment$l(ctx) {
4581
4582
  each_blocks[i].m(ul, null);
4582
4583
  }
4583
4584
 
4584
- /*ul_binding*/ ctx[23](ul);
4585
- /*div1_binding*/ ctx[24](div1);
4585
+ /*ul_binding*/ ctx[22](ul);
4586
+ /*div1_binding*/ ctx[23](div1);
4586
4587
 
4587
4588
  if (!mounted) {
4588
4589
  dispose = listen(goa_input, "click", /*showMenu*/ ctx[16]);
@@ -4590,7 +4591,7 @@ function create_fragment$l(ctx) {
4590
4591
  }
4591
4592
  },
4592
4593
  p(ctx, dirty) {
4593
- if (/*isMenuVisible*/ ctx[10]) {
4594
+ if (/*isMenuVisible*/ ctx[11]) {
4594
4595
  if (if_block) {
4595
4596
  if_block.p(ctx, dirty);
4596
4597
  } else {
@@ -4603,12 +4604,12 @@ function create_fragment$l(ctx) {
4603
4604
  if_block = null;
4604
4605
  }
4605
4606
 
4606
- if (dirty[0] & /*isError*/ 32768) {
4607
- set_custom_element_data(goa_input, "error", /*isError*/ ctx[15]);
4607
+ if (dirty[0] & /*error*/ 128) {
4608
+ set_custom_element_data(goa_input, "error", /*error*/ ctx[7]);
4608
4609
  }
4609
4610
 
4610
- if (dirty[0] & /*disabled*/ 16) {
4611
- set_custom_element_data(goa_input, "disabled", /*disabled*/ ctx[4]);
4611
+ if (dirty[0] & /*disabled*/ 64) {
4612
+ set_custom_element_data(goa_input, "disabled", /*disabled*/ ctx[6]);
4612
4613
  }
4613
4614
 
4614
4615
  if (dirty[0] & /*leadingicon*/ 2) {
@@ -4619,24 +4620,20 @@ function create_fragment$l(ctx) {
4619
4620
  set_custom_element_data(goa_input, "placeholder", /*placeholder*/ ctx[3]);
4620
4621
  }
4621
4622
 
4622
- if (dirty[0] & /*width, computedWidth*/ 4160 && goa_input_width_value !== (goa_input_width_value = /*width*/ ctx[6] || /*computedWidth*/ ctx[12])) {
4623
- set_custom_element_data(goa_input, "width", goa_input_width_value);
4624
- }
4625
-
4626
4623
  if (dirty[0] & /*name*/ 1 && goa_input_id_value !== (goa_input_id_value = `${/*name*/ ctx[0]}-dropdown-input`)) {
4627
4624
  set_custom_element_data(goa_input, "id", goa_input_id_value);
4628
4625
  }
4629
4626
 
4630
- if (dirty[0] & /*selectedLabel*/ 512) {
4631
- set_custom_element_data(goa_input, "value", /*selectedLabel*/ ctx[9]);
4627
+ if (dirty[0] & /*selectedLabel*/ 1024) {
4628
+ set_custom_element_data(goa_input, "value", /*selectedLabel*/ ctx[10]);
4632
4629
  }
4633
4630
 
4634
4631
  if (dirty[0] & /*name*/ 1 && div0_data_testid_value !== (div0_data_testid_value = `${/*name*/ ctx[0]}-dropdown`)) {
4635
4632
  attr(div0, "data-testid", div0_data_testid_value);
4636
4633
  }
4637
4634
 
4638
- if (dirty[0] & /*options, highlightedIndex, _values, onSelect*/ 264576) {
4639
- each_value = /*options*/ ctx[8];
4635
+ if (dirty[0] & /*options, highlightedIndex, _values, onSelect*/ 267008) {
4636
+ each_value = /*options*/ ctx[9];
4640
4637
  each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, ul, destroy_block, create_each_block$1, null, get_each_context$1);
4641
4638
  }
4642
4639
 
@@ -4644,12 +4641,16 @@ function create_fragment$l(ctx) {
4644
4641
  attr(ul, "style", ul_style_value);
4645
4642
  }
4646
4643
 
4647
- if (dirty[0] & /*isMenuVisible*/ 1024) {
4648
- toggle_class(ul, "dropdown-active", /*isMenuVisible*/ ctx[10]);
4644
+ if (dirty[0] & /*isMenuVisible*/ 2048) {
4645
+ toggle_class(ul, "dropdown-active", /*isMenuVisible*/ ctx[11]);
4646
+ }
4647
+
4648
+ if (dirty[0] & /*testid*/ 16) {
4649
+ attr(div1, "data-testid", /*testid*/ ctx[4]);
4649
4650
  }
4650
4651
 
4651
- if (dirty[0] & /*testid*/ 32) {
4652
- attr(div1, "data-testid", /*testid*/ ctx[5]);
4652
+ if (dirty[0] & /*width, computedWidth*/ 8224 && div1_style_value !== (div1_style_value = `--width: ${/*width*/ ctx[5] || /*computedWidth*/ ctx[13]}`)) {
4653
+ attr(div1, "style", div1_style_value);
4653
4654
  }
4654
4655
  },
4655
4656
  i: noop,
@@ -4662,8 +4663,8 @@ function create_fragment$l(ctx) {
4662
4663
  each_blocks[i].d();
4663
4664
  }
4664
4665
 
4665
- /*ul_binding*/ ctx[23](null);
4666
- /*div1_binding*/ ctx[24](null);
4666
+ /*ul_binding*/ ctx[22](null);
4667
+ /*div1_binding*/ ctx[23](null);
4667
4668
  mounted = false;
4668
4669
  dispose();
4669
4670
  }
@@ -4673,17 +4674,18 @@ function create_fragment$l(ctx) {
4673
4674
  const MAX_HEIGHT = "300px";
4674
4675
 
4675
4676
  function instance$k($$self, $$props, $$invalidate) {
4676
- let isError;
4677
+ let _disabled;
4678
+ let _multiselect;
4677
4679
  let { name } = $$props;
4678
4680
  let { value = "" } = $$props;
4679
4681
  let { leadingicon = null } = $$props;
4680
4682
  let { maxheight = MAX_HEIGHT } = $$props;
4681
4683
  let { placeholder = "" } = $$props;
4682
- let { disabled = false } = $$props;
4683
- let { error = false } = $$props;
4684
4684
  let { testid = "" } = $$props;
4685
4685
  let { width = "" } = $$props;
4686
- let { multiselect = false } = $$props;
4686
+ let { disabled = "false" } = $$props;
4687
+ let { error = "false" } = $$props;
4688
+ let { multiselect = "false" } = $$props;
4687
4689
 
4688
4690
  // Private
4689
4691
  let _values = [];
@@ -4715,7 +4717,7 @@ function instance$k($$self, $$props, $$invalidate) {
4715
4717
  const rawValues = typeof rawValue === "object" ? rawValue : [rawValue];
4716
4718
 
4717
4719
  // convert all values to strings to avoid later type comparison issues
4718
- $$invalidate(7, _values = rawValues.map(val => `${val}`));
4720
+ $$invalidate(8, _values = rawValues.map(val => `${val}`));
4719
4721
 
4720
4722
  bindContext();
4721
4723
  });
@@ -4736,15 +4738,15 @@ function instance$k($$self, $$props, $$invalidate) {
4736
4738
  {
4737
4739
  const _data = data;
4738
4740
  const selected = _values.includes(_data.value);
4739
- $$invalidate(8, options = [...options, Object.assign(Object.assign({}, _data), { selected })]);
4741
+ $$invalidate(9, options = [...options, Object.assign(Object.assign({}, _data), { selected })]);
4740
4742
 
4741
4743
  if (selected) {
4742
- $$invalidate(9, selectedLabel = _data.label);
4744
+ $$invalidate(10, selectedLabel = _data.label);
4743
4745
  }
4744
4746
 
4745
4747
  if (!width && maxLetterCount < _data.label.length) {
4746
4748
  maxLetterCount = _data.label.length;
4747
- $$invalidate(12, computedWidth = `${Math.max(20, maxLetterCount + 12)}ch`);
4749
+ $$invalidate(13, computedWidth = `${Math.max(20, maxLetterCount + 12)}ch`);
4748
4750
  }
4749
4751
 
4750
4752
  setHighlightedIndexToSelected();
@@ -4755,11 +4757,11 @@ function instance$k($$self, $$props, $$invalidate) {
4755
4757
  }
4756
4758
 
4757
4759
  async function showMenu() {
4758
- if (disabled || isMenuVisible) {
4760
+ if (_disabled || isMenuVisible) {
4759
4761
  return;
4760
4762
  }
4761
4763
 
4762
- $$invalidate(10, isMenuVisible = true);
4764
+ $$invalidate(11, isMenuVisible = true);
4763
4765
  await tick();
4764
4766
 
4765
4767
  // hide menu on blur
@@ -4778,19 +4780,19 @@ function instance$k($$self, $$props, $$invalidate) {
4778
4780
  menuEl.removeEventListener("keydown", onMenuKeyDown);
4779
4781
  menuEl.removeEventListener("mouseover", onHighlight);
4780
4782
  setHighlightedIndexToSelected();
4781
- $$invalidate(10, isMenuVisible = false);
4783
+ $$invalidate(11, isMenuVisible = false);
4782
4784
  }
4783
4785
 
4784
4786
  function setHighlightedIndexToSelected() {
4785
- $$invalidate(11, highlightedIndex = options.findIndex(option => _values.includes(option.value)));
4787
+ $$invalidate(12, highlightedIndex = options.findIndex(option => _values.includes(option.value)));
4786
4788
  }
4787
4789
 
4788
4790
  // Event handlers
4789
4791
  function onSelect(val, label) {
4790
- if (disabled) return;
4791
- $$invalidate(9, selectedLabel = label);
4792
+ if (_disabled) return;
4793
+ $$invalidate(10, selectedLabel = label);
4792
4794
 
4793
- if (multiselect) {
4795
+ if (_multiselect) {
4794
4796
  _values.push(val);
4795
4797
 
4796
4798
  el.dispatchEvent(new CustomEvent("_change",
@@ -4799,7 +4801,7 @@ function instance$k($$self, $$props, $$invalidate) {
4799
4801
  detail: { name, values: _values }
4800
4802
  }));
4801
4803
  } else {
4802
- $$invalidate(7, _values = [val]);
4804
+ $$invalidate(8, _values = [val]);
4803
4805
 
4804
4806
  el.dispatchEvent(new CustomEvent("_change",
4805
4807
  {
@@ -4834,14 +4836,14 @@ function instance$k($$self, $$props, $$invalidate) {
4834
4836
  switch (e.key) {
4835
4837
  case "ArrowUp":
4836
4838
  if (highlightedIndex === 0) {
4837
- $$invalidate(11, highlightedIndex = options.length - 1);
4839
+ $$invalidate(12, highlightedIndex = options.length - 1);
4838
4840
  } else {
4839
- $$invalidate(11, highlightedIndex--, highlightedIndex);
4841
+ $$invalidate(12, highlightedIndex--, highlightedIndex);
4840
4842
  }
4841
4843
  e.preventDefault();
4842
4844
  break;
4843
4845
  case "ArrowDown":
4844
- $$invalidate(11, highlightedIndex = (highlightedIndex + 1) % options.length);
4846
+ $$invalidate(12, highlightedIndex = (highlightedIndex + 1) % options.length);
4845
4847
  e.preventDefault();
4846
4848
  break;
4847
4849
  case "Tab":
@@ -4857,7 +4859,7 @@ function instance$k($$self, $$props, $$invalidate) {
4857
4859
  }
4858
4860
 
4859
4861
  function onHighlight(e) {
4860
- $$invalidate(11, highlightedIndex = Number(e.target.dataset.index));
4862
+ $$invalidate(12, highlightedIndex = Number(e.target.dataset.index));
4861
4863
  }
4862
4864
 
4863
4865
  const click_handler = option => onSelect(option.value, option.label);
@@ -4865,14 +4867,14 @@ function instance$k($$self, $$props, $$invalidate) {
4865
4867
  function ul_binding($$value) {
4866
4868
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
4867
4869
  menuEl = $$value;
4868
- $$invalidate(14, menuEl);
4870
+ $$invalidate(15, menuEl);
4869
4871
  });
4870
4872
  }
4871
4873
 
4872
4874
  function div1_binding($$value) {
4873
4875
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
4874
4876
  el = $$value;
4875
- $$invalidate(13, el);
4877
+ $$invalidate(14, el);
4876
4878
  });
4877
4879
  }
4878
4880
 
@@ -4882,17 +4884,20 @@ function instance$k($$self, $$props, $$invalidate) {
4882
4884
  if ('leadingicon' in $$props) $$invalidate(1, leadingicon = $$props.leadingicon);
4883
4885
  if ('maxheight' in $$props) $$invalidate(2, maxheight = $$props.maxheight);
4884
4886
  if ('placeholder' in $$props) $$invalidate(3, placeholder = $$props.placeholder);
4885
- if ('disabled' in $$props) $$invalidate(4, disabled = $$props.disabled);
4886
- if ('error' in $$props) $$invalidate(20, error = $$props.error);
4887
- if ('testid' in $$props) $$invalidate(5, testid = $$props.testid);
4888
- if ('width' in $$props) $$invalidate(6, width = $$props.width);
4889
- if ('multiselect' in $$props) $$invalidate(21, multiselect = $$props.multiselect);
4887
+ if ('testid' in $$props) $$invalidate(4, testid = $$props.testid);
4888
+ if ('width' in $$props) $$invalidate(5, width = $$props.width);
4889
+ if ('disabled' in $$props) $$invalidate(6, disabled = $$props.disabled);
4890
+ if ('error' in $$props) $$invalidate(7, error = $$props.error);
4891
+ if ('multiselect' in $$props) $$invalidate(20, multiselect = $$props.multiselect);
4890
4892
  };
4891
4893
 
4892
4894
  $$self.$$.update = () => {
4893
- if ($$self.$$.dirty[0] & /*error*/ 1048576) {
4894
- // TODO: remove this once goa-input has the toBoolean method removed
4895
- $$invalidate(15, isError = error ? "true" : "false");
4895
+ if ($$self.$$.dirty[0] & /*disabled*/ 64) {
4896
+ _disabled = toBoolean(disabled);
4897
+ }
4898
+
4899
+ if ($$self.$$.dirty[0] & /*multiselect*/ 1048576) {
4900
+ _multiselect = toBoolean(multiselect);
4896
4901
  }
4897
4902
  };
4898
4903
 
@@ -4901,9 +4906,10 @@ function instance$k($$self, $$props, $$invalidate) {
4901
4906
  leadingicon,
4902
4907
  maxheight,
4903
4908
  placeholder,
4904
- disabled,
4905
4909
  testid,
4906
4910
  width,
4911
+ disabled,
4912
+ error,
4907
4913
  _values,
4908
4914
  options,
4909
4915
  selectedLabel,
@@ -4912,12 +4918,10 @@ function instance$k($$self, $$props, $$invalidate) {
4912
4918
  computedWidth,
4913
4919
  el,
4914
4920
  menuEl,
4915
- isError,
4916
4921
  showMenu,
4917
4922
  closeMenu,
4918
4923
  onSelect,
4919
4924
  value,
4920
- error,
4921
4925
  multiselect,
4922
4926
  click_handler,
4923
4927
  ul_binding,
@@ -4928,7 +4932,7 @@ function instance$k($$self, $$props, $$invalidate) {
4928
4932
  class Dropdown extends SvelteElement {
4929
4933
  constructor(options) {
4930
4934
  super();
4931
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-dropdown-box{position:relative;cursor:pointer;display:inline-block;width:100%}@media(min-width: 640px){.goa-dropdown-box{width:unset}}.goa-dropdown-background{cursor:default;position:fixed;z-index:98;inset:0}.goa-dropdown-list{position:absolute;left:0;right:0;padding:0;margin:0;margin-top:3px;list-style-type:none;background:var(--color-white);border-radius:var(--input-border-radius);outline:none;box-shadow:var(--shadow-1);z-index:99;scroll-behavior:smooth;scrollbar-width:thin;display:none}.dropdown-active{display:block}.goa-dropdown-list::-webkit-scrollbar{width:6px}.goa-dropdown-list::-webkit-scrollbar-track{background:#f1f1f1}.goa-dropdown-list::-webkit-scrollbar-thumb{background:#888}.goa-dropdown-list::-webkit-scrollbar-thumb:hover{background:#555}.goa-dropdown-option{margin:0;padding:0.5rem;cursor:pointer;color:var(--color-black);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.goa-dropdown-option--tabbed{background:var(--color-gray-100);color:var(--goa-color-interactive--hover)}.goa-dropdown-option--disabled{opacity:0.5;cursor:default}.goa-dropdown-option--disabled:hover{cursor:default;color:var(--color-gray-600)}.goa-dropdown-option--selected{background:var(--goa-color-interactive);color:var(--color-white)}.goa-dropdown-option--tabbed.goa-dropdown-option--selected,.goa-dropdown-option--selected:hover{background:var(--goa-color-interactive--hover);color:var(--color-white)}</style>`;
4935
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-dropdown-box{position:relative;cursor:pointer;display:inline-block;width:100%}@media(min-width: 640px){.goa-dropdown-box{width:var(--width)}}.goa-dropdown-background{cursor:default;position:fixed;z-index:98;inset:0}.goa-dropdown-list{position:absolute;left:0;right:0;padding:0;margin:0;margin-top:3px;list-style-type:none;background:var(--color-white);border-radius:var(--input-border-radius);outline:none;box-shadow:var(--shadow-1);z-index:99;scroll-behavior:smooth;scrollbar-width:thin;display:none}.dropdown-active{display:block}.goa-dropdown-list::-webkit-scrollbar{width:6px}.goa-dropdown-list::-webkit-scrollbar-track{background:#f1f1f1}.goa-dropdown-list::-webkit-scrollbar-thumb{background:#888}.goa-dropdown-list::-webkit-scrollbar-thumb:hover{background:#555}.goa-dropdown-option{margin:0;padding:0.5rem;cursor:pointer;color:var(--color-black);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.goa-dropdown-option--tabbed{background:var(--color-gray-100);color:var(--goa-color-interactive--hover)}.goa-dropdown-option--disabled{opacity:0.5;cursor:default}.goa-dropdown-option--disabled:hover{cursor:default;color:var(--color-gray-600)}.goa-dropdown-option--selected{background:var(--goa-color-interactive);color:var(--color-white)}.goa-dropdown-option--tabbed.goa-dropdown-option--selected,.goa-dropdown-option--selected:hover{background:var(--goa-color-interactive--hover);color:var(--color-white)}</style>`;
4932
4936
 
4933
4937
  init(
4934
4938
  this,
@@ -4946,11 +4950,11 @@ class Dropdown extends SvelteElement {
4946
4950
  leadingicon: 1,
4947
4951
  maxheight: 2,
4948
4952
  placeholder: 3,
4949
- disabled: 4,
4950
- error: 20,
4951
- testid: 5,
4952
- width: 6,
4953
- multiselect: 21
4953
+ testid: 4,
4954
+ width: 5,
4955
+ disabled: 6,
4956
+ error: 7,
4957
+ multiselect: 20
4954
4958
  },
4955
4959
  null,
4956
4960
  [-1, -1]
@@ -4975,10 +4979,10 @@ class Dropdown extends SvelteElement {
4975
4979
  "leadingicon",
4976
4980
  "maxheight",
4977
4981
  "placeholder",
4978
- "disabled",
4979
- "error",
4980
4982
  "testid",
4981
4983
  "width",
4984
+ "disabled",
4985
+ "error",
4982
4986
  "multiselect"
4983
4987
  ];
4984
4988
  }
@@ -5028,44 +5032,44 @@ class Dropdown extends SvelteElement {
5028
5032
  flush();
5029
5033
  }
5030
5034
 
5031
- get disabled() {
5035
+ get testid() {
5032
5036
  return this.$$.ctx[4];
5033
5037
  }
5034
5038
 
5035
- set disabled(disabled) {
5036
- this.$$set({ disabled });
5039
+ set testid(testid) {
5040
+ this.$$set({ testid });
5037
5041
  flush();
5038
5042
  }
5039
5043
 
5040
- get error() {
5041
- return this.$$.ctx[20];
5044
+ get width() {
5045
+ return this.$$.ctx[5];
5042
5046
  }
5043
5047
 
5044
- set error(error) {
5045
- this.$$set({ error });
5048
+ set width(width) {
5049
+ this.$$set({ width });
5046
5050
  flush();
5047
5051
  }
5048
5052
 
5049
- get testid() {
5050
- return this.$$.ctx[5];
5053
+ get disabled() {
5054
+ return this.$$.ctx[6];
5051
5055
  }
5052
5056
 
5053
- set testid(testid) {
5054
- this.$$set({ testid });
5057
+ set disabled(disabled) {
5058
+ this.$$set({ disabled });
5055
5059
  flush();
5056
5060
  }
5057
5061
 
5058
- get width() {
5059
- return this.$$.ctx[6];
5062
+ get error() {
5063
+ return this.$$.ctx[7];
5060
5064
  }
5061
5065
 
5062
- set width(width) {
5063
- this.$$set({ width });
5066
+ set error(error) {
5067
+ this.$$set({ error });
5064
5068
  flush();
5065
5069
  }
5066
5070
 
5067
5071
  get multiselect() {
5068
- return this.$$.ctx[21];
5072
+ return this.$$.ctx[20];
5069
5073
  }
5070
5074
 
5071
5075
  set multiselect(multiselect) {
@@ -6803,7 +6807,7 @@ class Input extends SvelteElement {
6803
6807
  constructor(options) {
6804
6808
  super();
6805
6809
 
6806
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.container{position:relative;width:100%}@media(min-width: 640px){.container{max-width:var(--width)}}.goa-input,.goa-input *{box-sizing:border-box}.goa-input{box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:var(--input-border-radius);background:white;display:inline-flex;align-items:center;vertical-align:middle;min-width:100%}.goa-input:hover{border-color:var(--goa-color-interactive--hover)}.goa-input:active,.goa-input:focus,.goa-input:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--focus)}.goa-input.type--range{border:none}.goa-input.type--range:active,.goa-input.type--range:focus,.goa-input.type--range:focus-within{box-shadow:none}.goa-input-leading-icon{display:flex;align-items:center;margin-left:0.5rem}.goa-input-trailing-icon{display:flex;align-items:center;margin-right:0.5rem}.goa-input-trailing-icon>.goa-icon-button{margin-right:-0.5rem}input{display:inline-block;color:var(--goa-color-text);font-size:var(--input-font-size);padding:var(--input-padding);line-height:calc(40px - calc(var(--input-padding) * 2));background-color:transparent;width:0;flex:1 1 auto}input[readonly]{cursor:pointer}.goa-input-leading-icon+input{padding-left:0.5rem}input,input:focus,input:hover,input:active{outline:none;border:none}.goa-input--disabled,.goa-input--disabled:hover,.goa-input--disabled:active,.goa-input--disabled:focus{background-color:var(--color-gray-100);border-color:var(--color-gray-200);cursor:default;box-shadow:none}.goa-input--disabled input,.goa-input--disabled input:hover,.goa-input--disabled input:active,.goa-input--disabled input:focus{color:var(--goa-color-text-secondary)}.goa-input--disabled input:hover{cursor:default !important}input.input--goa{display:block;border:none;flex:1 1 auto}.variant--bare{border:none}.variant--bare:focus,.variant--bare:active,.variant--bare:focus-within{box-shadow:none}.counter{position:absolute;padding-top:0.25rem;right:0;font-size:var(--fs-sm)}.counter-error{color:var(--goa-color-interactive--error)}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-interactive--error)}input[type="search" i]:enabled:read-write:-webkit-any(:focus, :hover)::-webkit-search-cancel-button{position:relative;right:var(--search-icon-offset);cursor:pointer;-webkit-appearance:none;height:1.2rem;width:1.2rem;background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23333" d="M405 136.798L375.202 107 256 226.202 136.798 107 107 136.798 226.202 256 107 375.202 136.798 405 256 285.798 375.202 405 405 375.202 285.798 256z"/></svg>')
6810
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.container{position:relative;width:100%}@media(min-width: 640px){.container{width:var(--width)}}.goa-input,.goa-input *{box-sizing:border-box}.goa-input{box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:var(--input-border-radius);background:white;display:inline-flex;align-items:center;vertical-align:middle;min-width:100%}.goa-input:hover{border-color:var(--goa-color-interactive--hover)}.goa-input:active,.goa-input:focus,.goa-input:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--focus)}.goa-input.type--range{border:none}.goa-input.type--range:active,.goa-input.type--range:focus,.goa-input.type--range:focus-within{box-shadow:none}.goa-input-leading-icon{display:flex;align-items:center;margin-left:0.5rem}.goa-input-trailing-icon{display:flex;align-items:center;margin-right:0.5rem}.goa-input-trailing-icon>.goa-icon-button{margin-right:-0.5rem}input{display:inline-block;color:var(--goa-color-text);font-size:var(--input-font-size);padding:var(--input-padding);line-height:calc(40px - calc(var(--input-padding) * 2));background-color:transparent;width:0;flex:1 1 auto}input[readonly]{cursor:pointer}.goa-input-leading-icon+input{padding-left:0.5rem}input,input:focus,input:hover,input:active{outline:none;border:none}.goa-input--disabled,.goa-input--disabled:hover,.goa-input--disabled:active,.goa-input--disabled:focus{background-color:var(--color-gray-100);border-color:var(--color-gray-200);cursor:default;box-shadow:none}.goa-input--disabled input,.goa-input--disabled input:hover,.goa-input--disabled input:active,.goa-input--disabled input:focus{color:var(--goa-color-text-secondary)}.goa-input--disabled input:hover{cursor:default !important}input.input--goa{display:block;border:none;flex:1 1 auto}.variant--bare{border:none}.variant--bare:focus,.variant--bare:active,.variant--bare:focus-within{box-shadow:none}.counter{position:absolute;padding-top:0.25rem;right:0;font-size:var(--fs-sm)}.counter-error{color:var(--goa-color-interactive--error)}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-interactive--error)}input[type="search" i]:enabled:read-write:-webkit-any(:focus, :hover)::-webkit-search-cancel-button{position:relative;right:var(--search-icon-offset);cursor:pointer;-webkit-appearance:none;height:1.2rem;width:1.2rem;background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23333" d="M405 136.798L375.202 107 256 226.202 136.798 107 107 136.798 226.202 256 107 375.202 136.798 405 256 285.798 375.202 405 405 375.202 285.798 256z"/></svg>')
6807
6811
  center center no-repeat}</style>`;
6808
6812
 
6809
6813
  init(