@abgov/web-components 1.0.0-alpha.61 → 1.0.0-alpha.62

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.
@@ -1155,14 +1155,14 @@ function get_each_context_2(ctx, list, i) {
1155
1155
  }
1156
1156
 
1157
1157
  // (83:6) {#if (navigationSections.length || navigationLinks.length) }
1158
- function create_if_block_1$b(ctx) {
1158
+ function create_if_block_1$c(ctx) {
1159
1159
  let div;
1160
1160
  let t;
1161
1161
  let hr;
1162
1162
 
1163
1163
  function select_block_type(ctx, dirty) {
1164
- if (/*navigationSections*/ ctx[6].length) return create_if_block_2$6;
1165
- if (/*navigationLinks*/ ctx[5].length) return create_if_block_3$4;
1164
+ if (/*navigationSections*/ ctx[6].length) return create_if_block_2$7;
1165
+ if (/*navigationLinks*/ ctx[5].length) return create_if_block_3$5;
1166
1166
  }
1167
1167
 
1168
1168
  let current_block_type = select_block_type(ctx);
@@ -1210,7 +1210,7 @@ function create_if_block_1$b(ctx) {
1210
1210
  }
1211
1211
 
1212
1212
  // (95:44)
1213
- function create_if_block_3$4(ctx) {
1213
+ function create_if_block_3$5(ctx) {
1214
1214
  let each_blocks = [];
1215
1215
  let each_1_lookup = new Map();
1216
1216
  let each_1_anchor;
@@ -1255,7 +1255,7 @@ function create_if_block_3$4(ctx) {
1255
1255
  }
1256
1256
 
1257
1257
  // (85:10) {#if navigationSections.length}
1258
- function create_if_block_2$6(ctx) {
1258
+ function create_if_block_2$7(ctx) {
1259
1259
  let each_blocks = [];
1260
1260
  let each_1_lookup = new Map();
1261
1261
  let each_1_anchor;
@@ -1445,7 +1445,7 @@ function create_each_block_1(key_1, ctx) {
1445
1445
  }
1446
1446
 
1447
1447
  // (106:8) {#if metaLinks.length }
1448
- function create_if_block$f(ctx) {
1448
+ function create_if_block$g(ctx) {
1449
1449
  let div;
1450
1450
  let each_blocks = [];
1451
1451
  let each_1_lookup = new Map();
@@ -1545,8 +1545,8 @@ function create_fragment$y(ctx) {
1545
1545
  let img_src_value;
1546
1546
  let t6;
1547
1547
  let div4;
1548
- let if_block0 = (/*navigationSections*/ ctx[6].length || /*navigationLinks*/ ctx[5].length) && create_if_block_1$b(ctx);
1549
- let if_block1 = /*metaLinks*/ ctx[4].length && create_if_block$f(ctx);
1548
+ let if_block0 = (/*navigationSections*/ ctx[6].length || /*navigationLinks*/ ctx[5].length) && create_if_block_1$c(ctx);
1549
+ let if_block1 = /*metaLinks*/ ctx[4].length && create_if_block$g(ctx);
1550
1550
 
1551
1551
  return {
1552
1552
  c() {
@@ -1616,7 +1616,7 @@ function create_fragment$y(ctx) {
1616
1616
  if (if_block0) {
1617
1617
  if_block0.p(ctx, dirty);
1618
1618
  } else {
1619
- if_block0 = create_if_block_1$b(ctx);
1619
+ if_block0 = create_if_block_1$c(ctx);
1620
1620
  if_block0.c();
1621
1621
  if_block0.m(div2, t1);
1622
1622
  }
@@ -1629,7 +1629,7 @@ function create_fragment$y(ctx) {
1629
1629
  if (if_block1) {
1630
1630
  if_block1.p(ctx, dirty);
1631
1631
  } else {
1632
- if_block1 = create_if_block$f(ctx);
1632
+ if_block1 = create_if_block$g(ctx);
1633
1633
  if_block1.c();
1634
1634
  if_block1.m(div1, t2);
1635
1635
  }
@@ -2163,7 +2163,7 @@ function create_else_block$3(ctx) {
2163
2163
  }
2164
2164
 
2165
2165
  // (35:2) {#if showIcon}
2166
- function create_if_block_1$a(ctx) {
2166
+ function create_if_block_1$b(ctx) {
2167
2167
  let goa_icon;
2168
2168
 
2169
2169
  return {
@@ -2187,7 +2187,7 @@ function create_if_block_1$a(ctx) {
2187
2187
  }
2188
2188
 
2189
2189
  // (40:2) {#if content}
2190
- function create_if_block$e(ctx) {
2190
+ function create_if_block$f(ctx) {
2191
2191
  let div;
2192
2192
  let t;
2193
2193
 
@@ -2216,13 +2216,13 @@ function create_fragment$v(ctx) {
2216
2216
  let div_class_value;
2217
2217
 
2218
2218
  function select_block_type(ctx, dirty) {
2219
- if (/*showIcon*/ ctx[4]) return create_if_block_1$a;
2219
+ if (/*showIcon*/ ctx[4]) return create_if_block_1$b;
2220
2220
  return create_else_block$3;
2221
2221
  }
2222
2222
 
2223
2223
  let current_block_type = select_block_type(ctx);
2224
2224
  let if_block0 = current_block_type(ctx);
2225
- let if_block1 = /*content*/ ctx[2] && create_if_block$e(ctx);
2225
+ let if_block1 = /*content*/ ctx[2] && create_if_block$f(ctx);
2226
2226
 
2227
2227
  return {
2228
2228
  c() {
@@ -2259,7 +2259,7 @@ function create_fragment$v(ctx) {
2259
2259
  if (if_block1) {
2260
2260
  if_block1.p(ctx, dirty);
2261
2261
  } else {
2262
- if_block1 = create_if_block$e(ctx);
2262
+ if_block1 = create_if_block$f(ctx);
2263
2263
  if_block1.c();
2264
2264
  if_block1.m(div, null);
2265
2265
  }
@@ -2409,8 +2409,8 @@ function create_else_block$2(ctx) {
2409
2409
  let slot;
2410
2410
  let t1;
2411
2411
  let if_block1_anchor;
2412
- let if_block0 = /*leadingicon*/ ctx[4] && create_if_block_2$5(ctx);
2413
- let if_block1 = /*trailingicon*/ ctx[5] && create_if_block_1$9(ctx);
2412
+ let if_block0 = /*leadingicon*/ ctx[4] && create_if_block_2$6(ctx);
2413
+ let if_block1 = /*trailingicon*/ ctx[5] && create_if_block_1$a(ctx);
2414
2414
 
2415
2415
  return {
2416
2416
  c() {
@@ -2434,7 +2434,7 @@ function create_else_block$2(ctx) {
2434
2434
  if (if_block0) {
2435
2435
  if_block0.p(ctx, dirty);
2436
2436
  } else {
2437
- if_block0 = create_if_block_2$5(ctx);
2437
+ if_block0 = create_if_block_2$6(ctx);
2438
2438
  if_block0.c();
2439
2439
  if_block0.m(t0.parentNode, t0);
2440
2440
  }
@@ -2447,7 +2447,7 @@ function create_else_block$2(ctx) {
2447
2447
  if (if_block1) {
2448
2448
  if_block1.p(ctx, dirty);
2449
2449
  } else {
2450
- if_block1 = create_if_block_1$9(ctx);
2450
+ if_block1 = create_if_block_1$a(ctx);
2451
2451
  if_block1.c();
2452
2452
  if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
2453
2453
  }
@@ -2468,7 +2468,7 @@ function create_else_block$2(ctx) {
2468
2468
  }
2469
2469
 
2470
2470
  // (33:2) {#if type === "get-started"}
2471
- function create_if_block$d(ctx) {
2471
+ function create_if_block$e(ctx) {
2472
2472
  let slot;
2473
2473
  let t;
2474
2474
  let goa_icon;
@@ -2496,7 +2496,7 @@ function create_if_block$d(ctx) {
2496
2496
  }
2497
2497
 
2498
2498
  // (37:4) {#if leadingicon}
2499
- function create_if_block_2$5(ctx) {
2499
+ function create_if_block_2$6(ctx) {
2500
2500
  let goa_icon;
2501
2501
 
2502
2502
  return {
@@ -2520,7 +2520,7 @@ function create_if_block_2$5(ctx) {
2520
2520
  }
2521
2521
 
2522
2522
  // (41:4) {#if trailingicon}
2523
- function create_if_block_1$9(ctx) {
2523
+ function create_if_block_1$a(ctx) {
2524
2524
  let goa_icon;
2525
2525
 
2526
2526
  return {
@@ -2550,7 +2550,7 @@ function create_fragment$u(ctx) {
2550
2550
  let dispose;
2551
2551
 
2552
2552
  function select_block_type(ctx, dirty) {
2553
- if (/*type*/ ctx[0] === "get-started") return create_if_block$d;
2553
+ if (/*type*/ ctx[0] === "get-started") return create_if_block$e;
2554
2554
  return create_else_block$2;
2555
2555
  }
2556
2556
 
@@ -3451,7 +3451,7 @@ customElements.define("goa-card-image", CardImage);
3451
3451
 
3452
3452
  /* libs/web-components/src/components/checkbox/Checkbox.svelte generated by Svelte v3.44.3 */
3453
3453
 
3454
- function create_if_block_1$8(ctx) {
3454
+ function create_if_block_1$9(ctx) {
3455
3455
  let svg;
3456
3456
  let path;
3457
3457
 
@@ -3476,7 +3476,7 @@ function create_if_block_1$8(ctx) {
3476
3476
  }
3477
3477
 
3478
3478
  // (50:4) {#if isIndeterminate}
3479
- function create_if_block$c(ctx) {
3479
+ function create_if_block$d(ctx) {
3480
3480
  let svg;
3481
3481
  let rect;
3482
3482
 
@@ -3515,8 +3515,8 @@ function create_fragment$m(ctx) {
3515
3515
  let dispose;
3516
3516
 
3517
3517
  function select_block_type(ctx, dirty) {
3518
- if (/*isIndeterminate*/ ctx[5]) return create_if_block$c;
3519
- if (/*isChecked*/ ctx[4]) return create_if_block_1$8;
3518
+ if (/*isIndeterminate*/ ctx[5]) return create_if_block$d;
3519
+ if (/*isChecked*/ ctx[4]) return create_if_block_1$9;
3520
3520
  }
3521
3521
 
3522
3522
  let current_block_type = select_block_type(ctx);
@@ -3825,7 +3825,7 @@ customElements.define("goa-checkbox", Checkbox);
3825
3825
 
3826
3826
  /* libs/web-components/src/components/chip/Chip.svelte generated by Svelte v3.44.3 */
3827
3827
 
3828
- function create_if_block_1$7(ctx) {
3828
+ function create_if_block_1$8(ctx) {
3829
3829
  let goa_icon;
3830
3830
 
3831
3831
  return {
@@ -3850,7 +3850,7 @@ function create_if_block_1$7(ctx) {
3850
3850
  }
3851
3851
 
3852
3852
  // (26:2) {#if _deletable}
3853
- function create_if_block$b(ctx) {
3853
+ function create_if_block$c(ctx) {
3854
3854
  let goa_icon;
3855
3855
  let mounted;
3856
3856
  let dispose;
@@ -3887,8 +3887,8 @@ function create_fragment$l(ctx) {
3887
3887
  let t0;
3888
3888
  let t1;
3889
3889
  let t2;
3890
- let if_block0 = /*leadingicon*/ ctx[0] && create_if_block_1$7(ctx);
3891
- let if_block1 = /*_deletable*/ ctx[2] && create_if_block$b();
3890
+ let if_block0 = /*leadingicon*/ ctx[0] && create_if_block_1$8(ctx);
3891
+ let if_block1 = /*_deletable*/ ctx[2] && create_if_block$c();
3892
3892
 
3893
3893
  return {
3894
3894
  c() {
@@ -3915,7 +3915,7 @@ function create_fragment$l(ctx) {
3915
3915
  if (if_block0) {
3916
3916
  if_block0.p(ctx, dirty);
3917
3917
  } else {
3918
- if_block0 = create_if_block_1$7(ctx);
3918
+ if_block0 = create_if_block_1$8(ctx);
3919
3919
  if_block0.c();
3920
3920
  if_block0.m(div, t0);
3921
3921
  }
@@ -3930,7 +3930,7 @@ function create_fragment$l(ctx) {
3930
3930
  if (if_block1) {
3931
3931
  if_block1.p(ctx, dirty);
3932
3932
  } else {
3933
- if_block1 = create_if_block$b();
3933
+ if_block1 = create_if_block$c();
3934
3934
  if_block1.c();
3935
3935
  if_block1.m(div, null);
3936
3936
  }
@@ -4197,7 +4197,7 @@ function get_each_context$1(ctx, list, i) {
4197
4197
  }
4198
4198
 
4199
4199
  // (144:2) {#if isMenuVisible}
4200
- function create_if_block$a(ctx) {
4200
+ function create_if_block$b(ctx) {
4201
4201
  let div;
4202
4202
  let div_data_testid_value;
4203
4203
  let mounted;
@@ -4317,7 +4317,7 @@ function create_fragment$j(ctx) {
4317
4317
  let ul_style_value;
4318
4318
  let mounted;
4319
4319
  let dispose;
4320
- let if_block = /*isMenuVisible*/ ctx[10] && create_if_block$a(ctx);
4320
+ let if_block = /*isMenuVisible*/ ctx[10] && create_if_block$b(ctx);
4321
4321
  let each_value = /*options*/ ctx[8];
4322
4322
  const get_key = ctx => /*option*/ ctx[32].value;
4323
4323
 
@@ -4391,7 +4391,7 @@ function create_fragment$j(ctx) {
4391
4391
  if (if_block) {
4392
4392
  if_block.p(ctx, dirty);
4393
4393
  } else {
4394
- if_block = create_if_block$a(ctx);
4394
+ if_block = create_if_block$b(ctx);
4395
4395
  if_block.c();
4396
4396
  if_block.m(div1, t0);
4397
4397
  }
@@ -5027,11 +5027,11 @@ customElements.define("goa-flex-row", FlexRow);
5027
5027
 
5028
5028
  /* libs/web-components/src/components/form-item/FormItem.svelte generated by Svelte v3.44.3 */
5029
5029
 
5030
- function create_if_block_2$4(ctx) {
5030
+ function create_if_block_2$5(ctx) {
5031
5031
  let label_1;
5032
5032
  let t0;
5033
5033
  let t1;
5034
- let if_block = /*isOptional*/ ctx[3] && create_if_block_3$3();
5034
+ let if_block = /*isOptional*/ ctx[3] && create_if_block_3$4();
5035
5035
 
5036
5036
  return {
5037
5037
  c() {
@@ -5052,7 +5052,7 @@ function create_if_block_2$4(ctx) {
5052
5052
 
5053
5053
  if (/*isOptional*/ ctx[3]) {
5054
5054
  if (if_block) ; else {
5055
- if_block = create_if_block_3$3();
5055
+ if_block = create_if_block_3$4();
5056
5056
  if_block.c();
5057
5057
  if_block.m(label_1, null);
5058
5058
  }
@@ -5069,7 +5069,7 @@ function create_if_block_2$4(ctx) {
5069
5069
  }
5070
5070
 
5071
5071
  // (18:6) {#if isOptional}
5072
- function create_if_block_3$3(ctx) {
5072
+ function create_if_block_3$4(ctx) {
5073
5073
  let em;
5074
5074
 
5075
5075
  return {
@@ -5087,7 +5087,7 @@ function create_if_block_3$3(ctx) {
5087
5087
  }
5088
5088
 
5089
5089
  // (26:2) {#if error}
5090
- function create_if_block_1$6(ctx) {
5090
+ function create_if_block_1$7(ctx) {
5091
5091
  let div;
5092
5092
  let t;
5093
5093
 
@@ -5111,7 +5111,7 @@ function create_if_block_1$6(ctx) {
5111
5111
  }
5112
5112
 
5113
5113
  // (29:2) {#if helptext}
5114
- function create_if_block$9(ctx) {
5114
+ function create_if_block$a(ctx) {
5115
5115
  let div;
5116
5116
  let t;
5117
5117
 
@@ -5140,9 +5140,9 @@ function create_fragment$g(ctx) {
5140
5140
  let div0;
5141
5141
  let t1;
5142
5142
  let t2;
5143
- let if_block0 = /*label*/ ctx[0] && create_if_block_2$4(ctx);
5144
- let if_block1 = /*error*/ ctx[2] && create_if_block_1$6(ctx);
5145
- let if_block2 = /*helptext*/ ctx[1] && create_if_block$9(ctx);
5143
+ let if_block0 = /*label*/ ctx[0] && create_if_block_2$5(ctx);
5144
+ let if_block1 = /*error*/ ctx[2] && create_if_block_1$7(ctx);
5145
+ let if_block2 = /*helptext*/ ctx[1] && create_if_block$a(ctx);
5146
5146
 
5147
5147
  return {
5148
5148
  c() {
@@ -5174,7 +5174,7 @@ function create_fragment$g(ctx) {
5174
5174
  if (if_block0) {
5175
5175
  if_block0.p(ctx, dirty);
5176
5176
  } else {
5177
- if_block0 = create_if_block_2$4(ctx);
5177
+ if_block0 = create_if_block_2$5(ctx);
5178
5178
  if_block0.c();
5179
5179
  if_block0.m(div1, t0);
5180
5180
  }
@@ -5187,7 +5187,7 @@ function create_fragment$g(ctx) {
5187
5187
  if (if_block1) {
5188
5188
  if_block1.p(ctx, dirty);
5189
5189
  } else {
5190
- if_block1 = create_if_block_1$6(ctx);
5190
+ if_block1 = create_if_block_1$7(ctx);
5191
5191
  if_block1.c();
5192
5192
  if_block1.m(div1, t2);
5193
5193
  }
@@ -5200,7 +5200,7 @@ function create_fragment$g(ctx) {
5200
5200
  if (if_block2) {
5201
5201
  if_block2.p(ctx, dirty);
5202
5202
  } else {
5203
- if_block2 = create_if_block$9(ctx);
5203
+ if_block2 = create_if_block$a(ctx);
5204
5204
  if_block2.c();
5205
5205
  if_block2.m(div1, null);
5206
5206
  }
@@ -5452,7 +5452,7 @@ customElements.define("goa-hero-banner", HeroBanner);
5452
5452
 
5453
5453
  /* libs/web-components/src/components/icon/Icon.svelte generated by Svelte v3.44.3 */
5454
5454
 
5455
- function create_if_block$8(ctx) {
5455
+ function create_if_block$9(ctx) {
5456
5456
  let ion_icon;
5457
5457
  let ion_icon_name_value;
5458
5458
 
@@ -5486,7 +5486,7 @@ function create_fragment$e(ctx) {
5486
5486
  let div;
5487
5487
  let div_data_testid_value;
5488
5488
  let div_style_value;
5489
- let if_block = /*type*/ ctx[0] && create_if_block$8(ctx);
5489
+ let if_block = /*type*/ ctx[0] && create_if_block$9(ctx);
5490
5490
 
5491
5491
  return {
5492
5492
  c() {
@@ -5513,7 +5513,7 @@ function create_fragment$e(ctx) {
5513
5513
  if (if_block) {
5514
5514
  if_block.p(ctx, dirty);
5515
5515
  } else {
5516
- if_block = create_if_block$8(ctx);
5516
+ if_block = create_if_block$9(ctx);
5517
5517
  if_block.c();
5518
5518
  if_block.m(div, null);
5519
5519
  }
@@ -5959,7 +5959,7 @@ customElements.define("goa-icon-button", IconButton);
5959
5959
 
5960
5960
  /* libs/web-components/src/components/input/Input.svelte generated by Svelte v3.44.3 */
5961
5961
 
5962
- function create_if_block_2$3(ctx) {
5962
+ function create_if_block_5(ctx) {
5963
5963
  let goa_icon;
5964
5964
 
5965
5965
  return {
@@ -5983,8 +5983,8 @@ function create_if_block_2$3(ctx) {
5983
5983
  };
5984
5984
  }
5985
5985
 
5986
- // (81:2) {#if trailingicon && !handlesTrailingIconClick}
5987
- function create_if_block_1$5(ctx) {
5986
+ // (93:4) {#if trailingicon && !handlesTrailingIconClick}
5987
+ function create_if_block_4$1(ctx) {
5988
5988
  let goa_icon;
5989
5989
 
5990
5990
  return {
@@ -6009,8 +6009,8 @@ function create_if_block_1$5(ctx) {
6009
6009
  };
6010
6010
  }
6011
6011
 
6012
- // (85:2) {#if trailingicon && handlesTrailingIconClick}
6013
- function create_if_block$7(ctx) {
6012
+ // (103:4) {#if trailingicon && handlesTrailingIconClick}
6013
+ function create_if_block_3$3(ctx) {
6014
6014
  let goa_icon_button;
6015
6015
  let mounted;
6016
6016
  let dispose;
@@ -6019,7 +6019,7 @@ function create_if_block$7(ctx) {
6019
6019
  c() {
6020
6020
  goa_icon_button = element("goa-icon-button");
6021
6021
  set_custom_element_data(goa_icon_button, "class", "goa-input-trailing-icon");
6022
- set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[10]);
6022
+ set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[12]);
6023
6023
  set_custom_element_data(goa_icon_button, "variant", "nocolor");
6024
6024
  set_custom_element_data(goa_icon_button, "size", "medium");
6025
6025
  set_custom_element_data(goa_icon_button, "type", /*trailingicon*/ ctx[5]);
@@ -6034,8 +6034,8 @@ function create_if_block$7(ctx) {
6034
6034
  }
6035
6035
  },
6036
6036
  p(ctx, dirty) {
6037
- if (dirty & /*isDisabled*/ 1024) {
6038
- set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[10]);
6037
+ if (dirty & /*isDisabled*/ 4096) {
6038
+ set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[12]);
6039
6039
  }
6040
6040
 
6041
6041
  if (dirty & /*trailingicon*/ 32) {
@@ -6050,25 +6050,133 @@ function create_if_block$7(ctx) {
6050
6050
  };
6051
6051
  }
6052
6052
 
6053
- function create_fragment$c(ctx) {
6053
+ // (117:2) {#if showCounter}
6054
+ function create_if_block$8(ctx) {
6055
+ let if_block_anchor;
6056
+
6057
+ function select_block_type(ctx, dirty) {
6058
+ if (/*maxcharcount*/ ctx[9] > 0) return create_if_block_1$6;
6059
+ if (/*value*/ ctx[0].length > 0) return create_if_block_2$4;
6060
+ }
6061
+
6062
+ let current_block_type = select_block_type(ctx);
6063
+ let if_block = current_block_type && current_block_type(ctx);
6064
+
6065
+ return {
6066
+ c() {
6067
+ if (if_block) if_block.c();
6068
+ if_block_anchor = empty();
6069
+ },
6070
+ m(target, anchor) {
6071
+ if (if_block) if_block.m(target, anchor);
6072
+ insert(target, if_block_anchor, anchor);
6073
+ },
6074
+ p(ctx, dirty) {
6075
+ if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
6076
+ if_block.p(ctx, dirty);
6077
+ } else {
6078
+ if (if_block) if_block.d(1);
6079
+ if_block = current_block_type && current_block_type(ctx);
6080
+
6081
+ if (if_block) {
6082
+ if_block.c();
6083
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
6084
+ }
6085
+ }
6086
+ },
6087
+ d(detaching) {
6088
+ if (if_block) {
6089
+ if_block.d(detaching);
6090
+ }
6091
+
6092
+ if (detaching) detach(if_block_anchor);
6093
+ }
6094
+ };
6095
+ }
6096
+
6097
+ // (122:31)
6098
+ function create_if_block_2$4(ctx) {
6054
6099
  let div;
6100
+ let t_value = /*value*/ ctx[0].length + "";
6101
+ let t;
6102
+
6103
+ return {
6104
+ c() {
6105
+ div = element("div");
6106
+ t = text(t_value);
6107
+ attr(div, "class", "counter");
6108
+ },
6109
+ m(target, anchor) {
6110
+ insert(target, div, anchor);
6111
+ append(div, t);
6112
+ },
6113
+ p(ctx, dirty) {
6114
+ if (dirty & /*value*/ 1 && t_value !== (t_value = /*value*/ ctx[0].length + "")) set_data(t, t_value);
6115
+ },
6116
+ d(detaching) {
6117
+ if (detaching) detach(div);
6118
+ }
6119
+ };
6120
+ }
6121
+
6122
+ // (118:4) {#if maxcharcount > 0}
6123
+ function create_if_block_1$6(ctx) {
6124
+ let div;
6125
+ let t0_value = /*value*/ ctx[0].length + "";
6126
+ let t0;
6127
+ let t1_value = `/${/*maxcharcount*/ ctx[9]}` + "";
6128
+ let t1;
6129
+
6130
+ return {
6131
+ c() {
6132
+ div = element("div");
6133
+ t0 = text(t0_value);
6134
+ t1 = text(t1_value);
6135
+ attr(div, "class", "counter");
6136
+ toggle_class(div, "counter-error", /*value*/ ctx[0].length > /*maxcharcount*/ ctx[9]);
6137
+ },
6138
+ m(target, anchor) {
6139
+ insert(target, div, anchor);
6140
+ append(div, t0);
6141
+ append(div, t1);
6142
+ },
6143
+ p(ctx, dirty) {
6144
+ if (dirty & /*value*/ 1 && t0_value !== (t0_value = /*value*/ ctx[0].length + "")) set_data(t0, t0_value);
6145
+ if (dirty & /*maxcharcount*/ 512 && t1_value !== (t1_value = `/${/*maxcharcount*/ ctx[9]}` + "")) set_data(t1, t1_value);
6146
+
6147
+ if (dirty & /*value, maxcharcount*/ 513) {
6148
+ toggle_class(div, "counter-error", /*value*/ ctx[0].length > /*maxcharcount*/ ctx[9]);
6149
+ }
6150
+ },
6151
+ d(detaching) {
6152
+ if (detaching) detach(div);
6153
+ }
6154
+ };
6155
+ }
6156
+
6157
+ function create_fragment$c(ctx) {
6158
+ let div1;
6159
+ let div0;
6055
6160
  let t0;
6056
6161
  let input;
6057
6162
  let input_class_value;
6058
6163
  let input_style_value;
6059
6164
  let t1;
6060
6165
  let t2;
6061
- let div_style_value;
6062
- let div_class_value;
6166
+ let div0_class_value;
6167
+ let t3;
6168
+ let div1_style_value;
6063
6169
  let mounted;
6064
6170
  let dispose;
6065
- let if_block0 = /*leadingicon*/ ctx[4] && create_if_block_2$3(ctx);
6066
- let if_block1 = /*trailingicon*/ ctx[5] && !/*handlesTrailingIconClick*/ ctx[13] && create_if_block_1$5(ctx);
6067
- let if_block2 = /*trailingicon*/ ctx[5] && /*handlesTrailingIconClick*/ ctx[13] && create_if_block$7(ctx);
6171
+ let if_block0 = /*leadingicon*/ ctx[4] && create_if_block_5(ctx);
6172
+ let if_block1 = /*trailingicon*/ ctx[5] && !/*handlesTrailingIconClick*/ ctx[15] && create_if_block_4$1(ctx);
6173
+ let if_block2 = /*trailingicon*/ ctx[5] && /*handlesTrailingIconClick*/ ctx[15] && create_if_block_3$3(ctx);
6174
+ let if_block3 = /*showCounter*/ ctx[11] && create_if_block$8(ctx);
6068
6175
 
6069
6176
  return {
6070
6177
  c() {
6071
- div = element("div");
6178
+ div1 = element("div");
6179
+ div0 = element("div");
6072
6180
  if (if_block0) if_block0.c();
6073
6181
  t0 = space();
6074
6182
  input = element("input");
@@ -6076,45 +6184,51 @@ function create_fragment$c(ctx) {
6076
6184
  if (if_block1) if_block1.c();
6077
6185
  t2 = space();
6078
6186
  if (if_block2) if_block2.c();
6187
+ t3 = space();
6188
+ if (if_block3) if_block3.c();
6079
6189
  this.c = noop;
6080
6190
  attr(input, "class", input_class_value = `input--${/*variant*/ ctx[6]}`);
6081
6191
  attr(input, "style", input_style_value = `--search-icon-offset: ${/*trailingicon*/ ctx[5] ? "-0.5rem" : "0"}`);
6082
- input.readOnly = /*isReadonly*/ ctx[12];
6083
- input.disabled = /*isDisabled*/ ctx[10];
6192
+ input.readOnly = /*isReadonly*/ ctx[14];
6193
+ input.disabled = /*isDisabled*/ ctx[12];
6084
6194
  attr(input, "data-testid", /*testid*/ ctx[7]);
6085
- attr(input, "name", /*name*/ ctx[1]);
6086
- attr(input, "type", /*type*/ ctx[0]);
6087
- input.value = /*value*/ ctx[2];
6195
+ attr(input, "name", /*name*/ ctx[2]);
6196
+ attr(input, "type", /*type*/ ctx[1]);
6197
+ input.value = /*value*/ ctx[0];
6088
6198
  attr(input, "placeholder", /*placeholder*/ ctx[3]);
6089
6199
 
6090
- attr(div, "style", div_style_value = `
6091
- --width: ${/*width*/ ctx[8]};
6092
- `);
6200
+ attr(div0, "class", div0_class_value = `
6201
+ goa-input
6202
+ ${/*isDisabled*/ ctx[12] ? "goa-input--disabled" : ""}
6203
+ variant--${/*variant*/ ctx[6]}
6204
+ type--${/*type*/ ctx[1]}
6205
+ `);
6093
6206
 
6094
- attr(div, "class", div_class_value = `
6095
- goa-input
6096
- ${/*isDisabled*/ ctx[10] ? "goa-input--disabled" : ""}
6097
- variant--${/*variant*/ ctx[6]}
6098
- type--${/*type*/ ctx[0]}
6099
- `);
6207
+ toggle_class(div0, "error", /*isError*/ ctx[13]);
6208
+ attr(div1, "class", "container");
6100
6209
 
6101
- toggle_class(div, "error", /*isError*/ ctx[11]);
6210
+ attr(div1, "style", div1_style_value = `
6211
+ --width: ${/*width*/ ctx[8]};
6212
+ `);
6102
6213
  },
6103
6214
  m(target, anchor) {
6104
- insert(target, div, anchor);
6105
- if (if_block0) if_block0.m(div, null);
6106
- append(div, t0);
6107
- append(div, input);
6108
- /*input_binding*/ ctx[21](input);
6109
- append(div, t1);
6110
- if (if_block1) if_block1.m(div, null);
6111
- append(div, t2);
6112
- if (if_block2) if_block2.m(div, null);
6215
+ insert(target, div1, anchor);
6216
+ append(div1, div0);
6217
+ if (if_block0) if_block0.m(div0, null);
6218
+ append(div0, t0);
6219
+ append(div0, input);
6220
+ /*input_binding*/ ctx[24](input);
6221
+ append(div0, t1);
6222
+ if (if_block1) if_block1.m(div0, null);
6223
+ append(div0, t2);
6224
+ if (if_block2) if_block2.m(div0, null);
6225
+ append(div1, t3);
6226
+ if (if_block3) if_block3.m(div1, null);
6113
6227
 
6114
6228
  if (!mounted) {
6115
6229
  dispose = [
6116
- listen(input, "keyup", /*onKeyUp*/ ctx[14]),
6117
- listen(input, "change", /*onKeyUp*/ ctx[14])
6230
+ listen(input, "keyup", /*onKeyUp*/ ctx[16]),
6231
+ listen(input, "change", /*onKeyUp*/ ctx[16])
6118
6232
  ];
6119
6233
 
6120
6234
  mounted = true;
@@ -6125,9 +6239,9 @@ function create_fragment$c(ctx) {
6125
6239
  if (if_block0) {
6126
6240
  if_block0.p(ctx, dirty);
6127
6241
  } else {
6128
- if_block0 = create_if_block_2$3(ctx);
6242
+ if_block0 = create_if_block_5(ctx);
6129
6243
  if_block0.c();
6130
- if_block0.m(div, t0);
6244
+ if_block0.m(div0, t0);
6131
6245
  }
6132
6246
  } else if (if_block0) {
6133
6247
  if_block0.d(1);
@@ -6142,87 +6256,101 @@ function create_fragment$c(ctx) {
6142
6256
  attr(input, "style", input_style_value);
6143
6257
  }
6144
6258
 
6145
- if (dirty & /*isReadonly*/ 4096) {
6146
- input.readOnly = /*isReadonly*/ ctx[12];
6259
+ if (dirty & /*isReadonly*/ 16384) {
6260
+ input.readOnly = /*isReadonly*/ ctx[14];
6147
6261
  }
6148
6262
 
6149
- if (dirty & /*isDisabled*/ 1024) {
6150
- input.disabled = /*isDisabled*/ ctx[10];
6263
+ if (dirty & /*isDisabled*/ 4096) {
6264
+ input.disabled = /*isDisabled*/ ctx[12];
6151
6265
  }
6152
6266
 
6153
6267
  if (dirty & /*testid*/ 128) {
6154
6268
  attr(input, "data-testid", /*testid*/ ctx[7]);
6155
6269
  }
6156
6270
 
6157
- if (dirty & /*name*/ 2) {
6158
- attr(input, "name", /*name*/ ctx[1]);
6271
+ if (dirty & /*name*/ 4) {
6272
+ attr(input, "name", /*name*/ ctx[2]);
6159
6273
  }
6160
6274
 
6161
- if (dirty & /*type*/ 1) {
6162
- attr(input, "type", /*type*/ ctx[0]);
6275
+ if (dirty & /*type*/ 2) {
6276
+ attr(input, "type", /*type*/ ctx[1]);
6163
6277
  }
6164
6278
 
6165
- if (dirty & /*value*/ 4 && input.value !== /*value*/ ctx[2]) {
6166
- input.value = /*value*/ ctx[2];
6279
+ if (dirty & /*value*/ 1 && input.value !== /*value*/ ctx[0]) {
6280
+ input.value = /*value*/ ctx[0];
6167
6281
  }
6168
6282
 
6169
6283
  if (dirty & /*placeholder*/ 8) {
6170
6284
  attr(input, "placeholder", /*placeholder*/ ctx[3]);
6171
6285
  }
6172
6286
 
6173
- if (/*trailingicon*/ ctx[5] && !/*handlesTrailingIconClick*/ ctx[13]) {
6287
+ if (/*trailingicon*/ ctx[5] && !/*handlesTrailingIconClick*/ ctx[15]) {
6174
6288
  if (if_block1) {
6175
6289
  if_block1.p(ctx, dirty);
6176
6290
  } else {
6177
- if_block1 = create_if_block_1$5(ctx);
6291
+ if_block1 = create_if_block_4$1(ctx);
6178
6292
  if_block1.c();
6179
- if_block1.m(div, t2);
6293
+ if_block1.m(div0, t2);
6180
6294
  }
6181
6295
  } else if (if_block1) {
6182
6296
  if_block1.d(1);
6183
6297
  if_block1 = null;
6184
6298
  }
6185
6299
 
6186
- if (/*trailingicon*/ ctx[5] && /*handlesTrailingIconClick*/ ctx[13]) {
6300
+ if (/*trailingicon*/ ctx[5] && /*handlesTrailingIconClick*/ ctx[15]) {
6187
6301
  if (if_block2) {
6188
6302
  if_block2.p(ctx, dirty);
6189
6303
  } else {
6190
- if_block2 = create_if_block$7(ctx);
6304
+ if_block2 = create_if_block_3$3(ctx);
6191
6305
  if_block2.c();
6192
- if_block2.m(div, null);
6306
+ if_block2.m(div0, null);
6193
6307
  }
6194
6308
  } else if (if_block2) {
6195
6309
  if_block2.d(1);
6196
6310
  if_block2 = null;
6197
6311
  }
6198
6312
 
6199
- if (dirty & /*width*/ 256 && div_style_value !== (div_style_value = `
6200
- --width: ${/*width*/ ctx[8]};
6201
- `)) {
6202
- attr(div, "style", div_style_value);
6313
+ if (dirty & /*isDisabled, variant, type*/ 4162 && div0_class_value !== (div0_class_value = `
6314
+ goa-input
6315
+ ${/*isDisabled*/ ctx[12] ? "goa-input--disabled" : ""}
6316
+ variant--${/*variant*/ ctx[6]}
6317
+ type--${/*type*/ ctx[1]}
6318
+ `)) {
6319
+ attr(div0, "class", div0_class_value);
6203
6320
  }
6204
6321
 
6205
- if (dirty & /*isDisabled, variant, type*/ 1089 && div_class_value !== (div_class_value = `
6206
- goa-input
6207
- ${/*isDisabled*/ ctx[10] ? "goa-input--disabled" : ""}
6208
- variant--${/*variant*/ ctx[6]}
6209
- type--${/*type*/ ctx[0]}
6210
- `)) {
6211
- attr(div, "class", div_class_value);
6322
+ if (dirty & /*isDisabled, variant, type, isError*/ 12354) {
6323
+ toggle_class(div0, "error", /*isError*/ ctx[13]);
6212
6324
  }
6213
6325
 
6214
- if (dirty & /*isDisabled, variant, type, isError*/ 3137) {
6215
- toggle_class(div, "error", /*isError*/ ctx[11]);
6326
+ if (/*showCounter*/ ctx[11]) {
6327
+ if (if_block3) {
6328
+ if_block3.p(ctx, dirty);
6329
+ } else {
6330
+ if_block3 = create_if_block$8(ctx);
6331
+ if_block3.c();
6332
+ if_block3.m(div1, null);
6333
+ }
6334
+ } else if (if_block3) {
6335
+ if_block3.d(1);
6336
+ if_block3 = null;
6337
+ }
6338
+
6339
+ if (dirty & /*width*/ 256 && div1_style_value !== (div1_style_value = `
6340
+ --width: ${/*width*/ ctx[8]};
6341
+ `)) {
6342
+ attr(div1, "style", div1_style_value);
6216
6343
  }
6217
6344
  },
6218
6345
  i: noop,
6219
6346
  o: noop,
6220
6347
  d(detaching) {
6221
- if (detaching) detach(div);
6348
+ if (detaching) detach(div1);
6222
6349
  if (if_block0) if_block0.d();
6223
- /*input_binding*/ ctx[21](null);
6350
+ /*input_binding*/ ctx[24](null);
6224
6351
  if (if_block1) if_block1.d();
6225
6352
  if (if_block2) if_block2.d();
6353
+ if (if_block3) if_block3.d();
6226
6354
  mounted = false;
6227
6355
  run_all(dispose);
6228
6356
  }
@@ -6239,6 +6367,7 @@ function instance$b($$self, $$props, $$invalidate) {
6239
6367
  let isReadonly;
6240
6368
  let isError;
6241
6369
  let isDisabled;
6370
+ let showCounter;
6242
6371
  let { type = "text" } = $$props;
6243
6372
  let { name = "" } = $$props;
6244
6373
  let { value = "" } = $$props;
@@ -6253,6 +6382,8 @@ function instance$b($$self, $$props, $$invalidate) {
6253
6382
  let { error = "false" } = $$props;
6254
6383
  let { testid = "" } = $$props;
6255
6384
  let { width = "30ch" } = $$props;
6385
+ let { showcounter = "false" } = $$props;
6386
+ let { maxcharcount = 0 } = $$props;
6256
6387
  let inputEl;
6257
6388
 
6258
6389
  function onKeyUp(e) {
@@ -6264,61 +6395,67 @@ function instance$b($$self, $$props, $$invalidate) {
6264
6395
  detail: { name, value: e.target.value }
6265
6396
  }));
6266
6397
 
6267
- e.stopPropagation();
6398
+ $$invalidate(0, value = e.target.value);
6268
6399
  }
6269
6400
 
6270
6401
  function input_binding($$value) {
6271
6402
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
6272
6403
  inputEl = $$value;
6273
- $$invalidate(9, inputEl);
6404
+ $$invalidate(10, inputEl);
6274
6405
  });
6275
6406
  }
6276
6407
 
6277
6408
  $$self.$$set = $$props => {
6278
- if ('type' in $$props) $$invalidate(0, type = $$props.type);
6279
- if ('name' in $$props) $$invalidate(1, name = $$props.name);
6280
- if ('value' in $$props) $$invalidate(2, value = $$props.value);
6409
+ if ('type' in $$props) $$invalidate(1, type = $$props.type);
6410
+ if ('name' in $$props) $$invalidate(2, name = $$props.name);
6411
+ if ('value' in $$props) $$invalidate(0, value = $$props.value);
6281
6412
  if ('placeholder' in $$props) $$invalidate(3, placeholder = $$props.placeholder);
6282
6413
  if ('leadingicon' in $$props) $$invalidate(4, leadingicon = $$props.leadingicon);
6283
6414
  if ('trailingicon' in $$props) $$invalidate(5, trailingicon = $$props.trailingicon);
6284
6415
  if ('variant' in $$props) $$invalidate(6, variant = $$props.variant);
6285
- if ('disabled' in $$props) $$invalidate(15, disabled = $$props.disabled);
6286
- if ('handletrailingiconclick' in $$props) $$invalidate(16, handletrailingiconclick = $$props.handletrailingiconclick);
6287
- if ('focused' in $$props) $$invalidate(17, focused = $$props.focused);
6288
- if ('readonly' in $$props) $$invalidate(18, readonly = $$props.readonly);
6289
- if ('error' in $$props) $$invalidate(19, error = $$props.error);
6416
+ if ('disabled' in $$props) $$invalidate(17, disabled = $$props.disabled);
6417
+ if ('handletrailingiconclick' in $$props) $$invalidate(18, handletrailingiconclick = $$props.handletrailingiconclick);
6418
+ if ('focused' in $$props) $$invalidate(19, focused = $$props.focused);
6419
+ if ('readonly' in $$props) $$invalidate(20, readonly = $$props.readonly);
6420
+ if ('error' in $$props) $$invalidate(21, error = $$props.error);
6290
6421
  if ('testid' in $$props) $$invalidate(7, testid = $$props.testid);
6291
6422
  if ('width' in $$props) $$invalidate(8, width = $$props.width);
6423
+ if ('showcounter' in $$props) $$invalidate(22, showcounter = $$props.showcounter);
6424
+ if ('maxcharcount' in $$props) $$invalidate(9, maxcharcount = $$props.maxcharcount);
6292
6425
  };
6293
6426
 
6294
6427
  $$self.$$.update = () => {
6295
- if ($$self.$$.dirty & /*handletrailingiconclick*/ 65536) {
6296
- $$invalidate(13, handlesTrailingIconClick = toBoolean(handletrailingiconclick));
6428
+ if ($$self.$$.dirty & /*handletrailingiconclick*/ 262144) {
6429
+ $$invalidate(15, handlesTrailingIconClick = toBoolean(handletrailingiconclick));
6430
+ }
6431
+
6432
+ if ($$self.$$.dirty & /*focused*/ 524288) {
6433
+ $$invalidate(23, isFocused = toBoolean(focused));
6297
6434
  }
6298
6435
 
6299
- if ($$self.$$.dirty & /*focused*/ 131072) {
6300
- $$invalidate(20, isFocused = toBoolean(focused));
6436
+ if ($$self.$$.dirty & /*readonly*/ 1048576) {
6437
+ $$invalidate(14, isReadonly = toBoolean(readonly));
6301
6438
  }
6302
6439
 
6303
- if ($$self.$$.dirty & /*readonly*/ 262144) {
6304
- $$invalidate(12, isReadonly = toBoolean(readonly));
6440
+ if ($$self.$$.dirty & /*error*/ 2097152) {
6441
+ $$invalidate(13, isError = toBoolean(error));
6305
6442
  }
6306
6443
 
6307
- if ($$self.$$.dirty & /*error*/ 524288) {
6308
- $$invalidate(11, isError = toBoolean(error));
6444
+ if ($$self.$$.dirty & /*disabled*/ 131072) {
6445
+ $$invalidate(12, isDisabled = toBoolean(disabled));
6309
6446
  }
6310
6447
 
6311
- if ($$self.$$.dirty & /*disabled*/ 32768) {
6312
- $$invalidate(10, isDisabled = toBoolean(disabled));
6448
+ if ($$self.$$.dirty & /*showcounter*/ 4194304) {
6449
+ $$invalidate(11, showCounter = toBoolean(showcounter));
6313
6450
  }
6314
6451
 
6315
- if ($$self.$$.dirty & /*isFocused, inputEl*/ 1049088) {
6452
+ if ($$self.$$.dirty & /*isFocused, inputEl*/ 8389632) {
6316
6453
  if (isFocused && inputEl) {
6317
6454
  setTimeout(() => inputEl.focus(), 1);
6318
6455
  }
6319
6456
  }
6320
6457
 
6321
- if ($$self.$$.dirty & /*inputEl, type*/ 513) {
6458
+ if ($$self.$$.dirty & /*inputEl, type*/ 1026) {
6322
6459
  if (inputEl && type === "search") {
6323
6460
  inputEl.addEventListener("search", e => {
6324
6461
  onKeyUp(e);
@@ -6328,16 +6465,18 @@ function instance$b($$self, $$props, $$invalidate) {
6328
6465
  };
6329
6466
 
6330
6467
  return [
6468
+ value,
6331
6469
  type,
6332
6470
  name,
6333
- value,
6334
6471
  placeholder,
6335
6472
  leadingicon,
6336
6473
  trailingicon,
6337
6474
  variant,
6338
6475
  testid,
6339
6476
  width,
6477
+ maxcharcount,
6340
6478
  inputEl,
6479
+ showCounter,
6341
6480
  isDisabled,
6342
6481
  isError,
6343
6482
  isReadonly,
@@ -6348,6 +6487,7 @@ function instance$b($$self, $$props, $$invalidate) {
6348
6487
  focused,
6349
6488
  readonly,
6350
6489
  error,
6490
+ showcounter,
6351
6491
  isFocused,
6352
6492
  input_binding
6353
6493
  ];
@@ -6356,7 +6496,9 @@ function instance$b($$self, $$props, $$invalidate) {
6356
6496
  class Input extends SvelteElement {
6357
6497
  constructor(options) {
6358
6498
  super();
6359
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.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)}@media(min-width: 640px){.goa-input{min-width:0;width:var(--width)}}.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}.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>') center center no-repeat}</style>`;
6499
+
6500
+ 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)}@media(min-width: 640px){.goa-input{min-width:0;width:var(--width)}}.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>')
6501
+ center center no-repeat}</style>`;
6360
6502
 
6361
6503
  init(
6362
6504
  this,
@@ -6369,20 +6511,22 @@ class Input extends SvelteElement {
6369
6511
  create_fragment$c,
6370
6512
  safe_not_equal,
6371
6513
  {
6372
- type: 0,
6373
- name: 1,
6374
- value: 2,
6514
+ type: 1,
6515
+ name: 2,
6516
+ value: 0,
6375
6517
  placeholder: 3,
6376
6518
  leadingicon: 4,
6377
6519
  trailingicon: 5,
6378
6520
  variant: 6,
6379
- disabled: 15,
6380
- handletrailingiconclick: 16,
6381
- focused: 17,
6382
- readonly: 18,
6383
- error: 19,
6521
+ disabled: 17,
6522
+ handletrailingiconclick: 18,
6523
+ focused: 19,
6524
+ readonly: 20,
6525
+ error: 21,
6384
6526
  testid: 7,
6385
- width: 8
6527
+ width: 8,
6528
+ showcounter: 22,
6529
+ maxcharcount: 9
6386
6530
  },
6387
6531
  null
6388
6532
  );
@@ -6414,12 +6558,14 @@ class Input extends SvelteElement {
6414
6558
  "readonly",
6415
6559
  "error",
6416
6560
  "testid",
6417
- "width"
6561
+ "width",
6562
+ "showcounter",
6563
+ "maxcharcount"
6418
6564
  ];
6419
6565
  }
6420
6566
 
6421
6567
  get type() {
6422
- return this.$$.ctx[0];
6568
+ return this.$$.ctx[1];
6423
6569
  }
6424
6570
 
6425
6571
  set type(type) {
@@ -6428,7 +6574,7 @@ class Input extends SvelteElement {
6428
6574
  }
6429
6575
 
6430
6576
  get name() {
6431
- return this.$$.ctx[1];
6577
+ return this.$$.ctx[2];
6432
6578
  }
6433
6579
 
6434
6580
  set name(name) {
@@ -6437,7 +6583,7 @@ class Input extends SvelteElement {
6437
6583
  }
6438
6584
 
6439
6585
  get value() {
6440
- return this.$$.ctx[2];
6586
+ return this.$$.ctx[0];
6441
6587
  }
6442
6588
 
6443
6589
  set value(value) {
@@ -6482,7 +6628,7 @@ class Input extends SvelteElement {
6482
6628
  }
6483
6629
 
6484
6630
  get disabled() {
6485
- return this.$$.ctx[15];
6631
+ return this.$$.ctx[17];
6486
6632
  }
6487
6633
 
6488
6634
  set disabled(disabled) {
@@ -6491,7 +6637,7 @@ class Input extends SvelteElement {
6491
6637
  }
6492
6638
 
6493
6639
  get handletrailingiconclick() {
6494
- return this.$$.ctx[16];
6640
+ return this.$$.ctx[18];
6495
6641
  }
6496
6642
 
6497
6643
  set handletrailingiconclick(handletrailingiconclick) {
@@ -6500,7 +6646,7 @@ class Input extends SvelteElement {
6500
6646
  }
6501
6647
 
6502
6648
  get focused() {
6503
- return this.$$.ctx[17];
6649
+ return this.$$.ctx[19];
6504
6650
  }
6505
6651
 
6506
6652
  set focused(focused) {
@@ -6509,7 +6655,7 @@ class Input extends SvelteElement {
6509
6655
  }
6510
6656
 
6511
6657
  get readonly() {
6512
- return this.$$.ctx[18];
6658
+ return this.$$.ctx[20];
6513
6659
  }
6514
6660
 
6515
6661
  set readonly(readonly) {
@@ -6518,7 +6664,7 @@ class Input extends SvelteElement {
6518
6664
  }
6519
6665
 
6520
6666
  get error() {
6521
- return this.$$.ctx[19];
6667
+ return this.$$.ctx[21];
6522
6668
  }
6523
6669
 
6524
6670
  set error(error) {
@@ -6543,6 +6689,24 @@ class Input extends SvelteElement {
6543
6689
  this.$$set({ width });
6544
6690
  flush();
6545
6691
  }
6692
+
6693
+ get showcounter() {
6694
+ return this.$$.ctx[22];
6695
+ }
6696
+
6697
+ set showcounter(showcounter) {
6698
+ this.$$set({ showcounter });
6699
+ flush();
6700
+ }
6701
+
6702
+ get maxcharcount() {
6703
+ return this.$$.ctx[9];
6704
+ }
6705
+
6706
+ set maxcharcount(maxcharcount) {
6707
+ this.$$set({ maxcharcount });
6708
+ flush();
6709
+ }
6546
6710
  }
6547
6711
 
6548
6712
  customElements.define("goa-input", Input);
@@ -6624,7 +6788,7 @@ function noScroll(node, opts) {
6624
6788
 
6625
6789
  /* libs/web-components/src/components/modal/Modal.svelte generated by Svelte v3.44.3 */
6626
6790
 
6627
- function create_if_block$6(ctx) {
6791
+ function create_if_block$7(ctx) {
6628
6792
  let div4;
6629
6793
  let div0;
6630
6794
  let t0;
@@ -6646,10 +6810,10 @@ function create_if_block$6(ctx) {
6646
6810
  let mounted;
6647
6811
  let dispose;
6648
6812
  let if_block0 = /*heading*/ ctx[0] && create_if_block_3$2(ctx);
6649
- let if_block1 = /*isClosable*/ ctx[4] && create_if_block_2$2(ctx);
6813
+ let if_block1 = /*isClosable*/ ctx[4] && create_if_block_2$3(ctx);
6650
6814
 
6651
6815
  function select_block_type(ctx, dirty) {
6652
- if (/*isScrollable*/ ctx[5]) return create_if_block_1$4;
6816
+ if (/*isScrollable*/ ctx[5]) return create_if_block_1$5;
6653
6817
  return create_else_block$1;
6654
6818
  }
6655
6819
 
@@ -6728,7 +6892,7 @@ function create_if_block$6(ctx) {
6728
6892
  if (if_block1) {
6729
6893
  if_block1.p(ctx, dirty);
6730
6894
  } else {
6731
- if_block1 = create_if_block_2$2(ctx);
6895
+ if_block1 = create_if_block_2$3(ctx);
6732
6896
  if_block1.c();
6733
6897
  if_block1.m(div3, t2);
6734
6898
  }
@@ -6816,7 +6980,7 @@ function create_if_block_3$2(ctx) {
6816
6980
  }
6817
6981
 
6818
6982
  // (57:6) {#if isClosable}
6819
- function create_if_block_2$2(ctx) {
6983
+ function create_if_block_2$3(ctx) {
6820
6984
  let div;
6821
6985
  let goa_icon_button;
6822
6986
  let mounted;
@@ -6868,7 +7032,7 @@ function create_else_block$1(ctx) {
6868
7032
  }
6869
7033
 
6870
7034
  // (67:8) {#if isScrollable}
6871
- function create_if_block_1$4(ctx) {
7035
+ function create_if_block_1$5(ctx) {
6872
7036
  let goa_scrollable;
6873
7037
 
6874
7038
  return {
@@ -6891,7 +7055,7 @@ function create_if_block_1$4(ctx) {
6891
7055
  function create_fragment$b(ctx) {
6892
7056
  let if_block_anchor;
6893
7057
  let current;
6894
- let if_block = /*isOpen*/ ctx[2] && create_if_block$6(ctx);
7058
+ let if_block = /*isOpen*/ ctx[2] && create_if_block$7(ctx);
6895
7059
 
6896
7060
  return {
6897
7061
  c() {
@@ -6913,7 +7077,7 @@ function create_fragment$b(ctx) {
6913
7077
  transition_in(if_block, 1);
6914
7078
  }
6915
7079
  } else {
6916
- if_block = create_if_block$6(ctx);
7080
+ if_block = create_if_block$7(ctx);
6917
7081
  if_block.c();
6918
7082
  transition_in(if_block, 1);
6919
7083
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
@@ -7099,7 +7263,7 @@ customElements.define("goa-modal", Modal);
7099
7263
 
7100
7264
  /* libs/web-components/src/components/notification/Notification.svelte generated by Svelte v3.44.3 */
7101
7265
 
7102
- function create_if_block$5(ctx) {
7266
+ function create_if_block$6(ctx) {
7103
7267
  let div3;
7104
7268
  let div0;
7105
7269
  let goa_icon;
@@ -7186,7 +7350,7 @@ function create_if_block$5(ctx) {
7186
7350
  function create_fragment$a(ctx) {
7187
7351
  let if_block_anchor;
7188
7352
  let current;
7189
- let if_block = /*show*/ ctx[1] && create_if_block$5(ctx);
7353
+ let if_block = /*show*/ ctx[1] && create_if_block$6(ctx);
7190
7354
 
7191
7355
  return {
7192
7356
  c() {
@@ -7208,7 +7372,7 @@ function create_fragment$a(ctx) {
7208
7372
  transition_in(if_block, 1);
7209
7373
  }
7210
7374
  } else {
7211
- if_block = create_if_block$5(ctx);
7375
+ if_block = create_if_block$6(ctx);
7212
7376
  if_block.c();
7213
7377
  transition_in(if_block, 1);
7214
7378
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
@@ -7369,12 +7533,12 @@ customElements.define("goa-page-layout", PageLayout);
7369
7533
 
7370
7534
  /* libs/web-components/src/components/circular-progress/CircularProgress.svelte generated by Svelte v3.44.3 */
7371
7535
 
7372
- function create_if_block$4(ctx) {
7536
+ function create_if_block$5(ctx) {
7373
7537
  let current_block_type_index;
7374
7538
  let if_block;
7375
7539
  let if_block_anchor;
7376
7540
  let current;
7377
- const if_block_creators = [create_if_block_1$3, create_if_block_3$1];
7541
+ const if_block_creators = [create_if_block_1$4, create_if_block_3$1];
7378
7542
  const if_blocks = [];
7379
7543
 
7380
7544
  function select_block_type(ctx, dirty) {
@@ -7526,7 +7690,7 @@ function create_if_block_3$1(ctx) {
7526
7690
  }
7527
7691
 
7528
7692
  // (24:2) {#if fullscreen}
7529
- function create_if_block_1$3(ctx) {
7693
+ function create_if_block_1$4(ctx) {
7530
7694
  let div;
7531
7695
  let goa_spinner;
7532
7696
  let goa_spinner_progress_value;
@@ -7535,7 +7699,7 @@ function create_if_block_1$3(ctx) {
7535
7699
  let current;
7536
7700
  let mounted;
7537
7701
  let dispose;
7538
- let if_block = /*message*/ ctx[1] && create_if_block_2$1(ctx);
7702
+ let if_block = /*message*/ ctx[1] && create_if_block_2$2(ctx);
7539
7703
 
7540
7704
  return {
7541
7705
  c() {
@@ -7577,7 +7741,7 @@ function create_if_block_1$3(ctx) {
7577
7741
  if (if_block) {
7578
7742
  if_block.p(ctx, dirty);
7579
7743
  } else {
7580
- if_block = create_if_block_2$1(ctx);
7744
+ if_block = create_if_block_2$2(ctx);
7581
7745
  if_block.c();
7582
7746
  if_block.m(div, null);
7583
7747
  }
@@ -7640,7 +7804,7 @@ function create_if_block_4(ctx) {
7640
7804
  }
7641
7805
 
7642
7806
  // (31:6) {#if message}
7643
- function create_if_block_2$1(ctx) {
7807
+ function create_if_block_2$2(ctx) {
7644
7808
  let div;
7645
7809
  let t;
7646
7810
 
@@ -7666,7 +7830,7 @@ function create_if_block_2$1(ctx) {
7666
7830
  function create_fragment$8(ctx) {
7667
7831
  let if_block_anchor;
7668
7832
  let current;
7669
- let if_block = /*ready*/ ctx[3] && create_if_block$4(ctx);
7833
+ let if_block = /*ready*/ ctx[3] && create_if_block$5(ctx);
7670
7834
 
7671
7835
  return {
7672
7836
  c() {
@@ -7688,7 +7852,7 @@ function create_fragment$8(ctx) {
7688
7852
  transition_in(if_block, 1);
7689
7853
  }
7690
7854
  } else {
7691
- if_block = create_if_block$4(ctx);
7855
+ if_block = create_if_block$5(ctx);
7692
7856
  if_block.c();
7693
7857
  transition_in(if_block, 1);
7694
7858
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
@@ -8516,7 +8680,7 @@ function create_if_block_3(ctx) {
8516
8680
  }
8517
8681
 
8518
8682
  // (42:2) {#if ["alpha", "beta"].includes(level)}
8519
- function create_if_block_1$2(ctx) {
8683
+ function create_if_block_1$3(ctx) {
8520
8684
  let div0;
8521
8685
  let t0_value = capitalize(/*level*/ ctx[0]) + "";
8522
8686
  let t0;
@@ -8526,7 +8690,7 @@ function create_if_block_1$2(ctx) {
8526
8690
  let t2;
8527
8691
  let a;
8528
8692
  let t4;
8529
- let if_block = /*feedbackurl*/ ctx[2] && create_if_block_2(ctx);
8693
+ let if_block = /*feedbackurl*/ ctx[2] && create_if_block_2$1(ctx);
8530
8694
 
8531
8695
  return {
8532
8696
  c() {
@@ -8566,7 +8730,7 @@ function create_if_block_1$2(ctx) {
8566
8730
  if (if_block) {
8567
8731
  if_block.p(ctx, dirty);
8568
8732
  } else {
8569
- if_block = create_if_block_2(ctx);
8733
+ if_block = create_if_block_2$1(ctx);
8570
8734
  if_block.c();
8571
8735
  if_block.m(div1, null);
8572
8736
  }
@@ -8585,7 +8749,7 @@ function create_if_block_1$2(ctx) {
8585
8749
  }
8586
8750
 
8587
8751
  // (52:6) {#if feedbackurl}
8588
- function create_if_block_2(ctx) {
8752
+ function create_if_block_2$1(ctx) {
8589
8753
  let span;
8590
8754
  let t0;
8591
8755
  let a;
@@ -8618,7 +8782,7 @@ function create_if_block_2(ctx) {
8618
8782
  }
8619
8783
 
8620
8784
  // (60:2) {#if version}
8621
- function create_if_block$3(ctx) {
8785
+ function create_if_block$4(ctx) {
8622
8786
  let div;
8623
8787
  let t;
8624
8788
 
@@ -8650,8 +8814,8 @@ function create_fragment$4(ctx) {
8650
8814
  let div;
8651
8815
  let t2;
8652
8816
  let if_block0 = /*level*/ ctx[0] === "live" && create_if_block_3();
8653
- let if_block1 = show_if && create_if_block_1$2(ctx);
8654
- let if_block2 = /*version*/ ctx[1] && create_if_block$3(ctx);
8817
+ let if_block1 = show_if && create_if_block_1$3(ctx);
8818
+ let if_block2 = /*version*/ ctx[1] && create_if_block$4(ctx);
8655
8819
 
8656
8820
  return {
8657
8821
  c() {
@@ -8695,7 +8859,7 @@ function create_fragment$4(ctx) {
8695
8859
  if (if_block1) {
8696
8860
  if_block1.p(ctx, dirty);
8697
8861
  } else {
8698
- if_block1 = create_if_block_1$2(ctx);
8862
+ if_block1 = create_if_block_1$3(ctx);
8699
8863
  if_block1.c();
8700
8864
  if_block1.m(header, t1);
8701
8865
  }
@@ -8708,7 +8872,7 @@ function create_fragment$4(ctx) {
8708
8872
  if (if_block2) {
8709
8873
  if_block2.p(ctx, dirty);
8710
8874
  } else {
8711
- if_block2 = create_if_block$3(ctx);
8875
+ if_block2 = create_if_block$4(ctx);
8712
8876
  if_block2.c();
8713
8877
  if_block2.m(header, null);
8714
8878
  }
@@ -8840,7 +9004,7 @@ function create_else_block(ctx) {
8840
9004
  }
8841
9005
 
8842
9006
  // (20:29)
8843
- function create_if_block_1$1(ctx) {
9007
+ function create_if_block_1$2(ctx) {
8844
9008
  let div2;
8845
9009
  let div0;
8846
9010
  let skeleton0;
@@ -8930,7 +9094,7 @@ function create_if_block_1$1(ctx) {
8930
9094
  }
8931
9095
 
8932
9096
  // (10:0) {#if type === "card"}
8933
- function create_if_block$2(ctx) {
9097
+ function create_if_block$3(ctx) {
8934
9098
  let div1;
8935
9099
  let skeleton0;
8936
9100
  let t0;
@@ -9054,7 +9218,7 @@ function create_fragment$3(ctx) {
9054
9218
  let if_block;
9055
9219
  let if_block_anchor;
9056
9220
  let current;
9057
- const if_block_creators = [create_if_block$2, create_if_block_1$1, create_else_block];
9221
+ const if_block_creators = [create_if_block$3, create_if_block_1$2, create_else_block];
9058
9222
  const if_blocks = [];
9059
9223
 
9060
9224
  function select_block_type(ctx, dirty) {
@@ -9300,7 +9464,7 @@ function tweened(value, defaults = {}) {
9300
9464
 
9301
9465
  /* libs/web-components/src/components/spinner/Spinner.svelte generated by Svelte v3.44.3 */
9302
9466
 
9303
- function create_if_block$1(ctx) {
9467
+ function create_if_block$2(ctx) {
9304
9468
  let svg;
9305
9469
  let circle;
9306
9470
  let circle_stroke_value;
@@ -9411,7 +9575,7 @@ function create_if_block$1(ctx) {
9411
9575
 
9412
9576
  function create_fragment$2(ctx) {
9413
9577
  let if_block_anchor;
9414
- let if_block = /*ready*/ ctx[6] && create_if_block$1(ctx);
9578
+ let if_block = /*ready*/ ctx[6] && create_if_block$2(ctx);
9415
9579
 
9416
9580
  return {
9417
9581
  c() {
@@ -9428,7 +9592,7 @@ function create_fragment$2(ctx) {
9428
9592
  if (if_block) {
9429
9593
  if_block.p(ctx, dirty);
9430
9594
  } else {
9431
- if_block = create_if_block$1(ctx);
9595
+ if_block = create_if_block$2(ctx);
9432
9596
  if_block.c();
9433
9597
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
9434
9598
  }
@@ -9638,36 +9802,148 @@ customElements.define("goa-spinner", Spinner);
9638
9802
 
9639
9803
  /* libs/web-components/src/components/text-area/TextArea.svelte generated by Svelte v3.44.3 */
9640
9804
 
9805
+ function create_if_block$1(ctx) {
9806
+ let if_block_anchor;
9807
+
9808
+ function select_block_type(ctx, dirty) {
9809
+ if (/*maxcharcount*/ ctx[6] > 0) return create_if_block_1$1;
9810
+ if (/*value*/ ctx[1].length > 0) return create_if_block_2;
9811
+ }
9812
+
9813
+ let current_block_type = select_block_type(ctx);
9814
+ let if_block = current_block_type && current_block_type(ctx);
9815
+
9816
+ return {
9817
+ c() {
9818
+ if (if_block) if_block.c();
9819
+ if_block_anchor = empty();
9820
+ },
9821
+ m(target, anchor) {
9822
+ if (if_block) if_block.m(target, anchor);
9823
+ insert(target, if_block_anchor, anchor);
9824
+ },
9825
+ p(ctx, dirty) {
9826
+ if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
9827
+ if_block.p(ctx, dirty);
9828
+ } else {
9829
+ if (if_block) if_block.d(1);
9830
+ if_block = current_block_type && current_block_type(ctx);
9831
+
9832
+ if (if_block) {
9833
+ if_block.c();
9834
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
9835
+ }
9836
+ }
9837
+ },
9838
+ d(detaching) {
9839
+ if (if_block) {
9840
+ if_block.d(detaching);
9841
+ }
9842
+
9843
+ if (detaching) detach(if_block_anchor);
9844
+ }
9845
+ };
9846
+ }
9847
+
9848
+ // (61:31)
9849
+ function create_if_block_2(ctx) {
9850
+ let div;
9851
+ let t_value = /*value*/ ctx[1].length + "";
9852
+ let t;
9853
+
9854
+ return {
9855
+ c() {
9856
+ div = element("div");
9857
+ t = text(t_value);
9858
+ attr(div, "class", "counter");
9859
+ },
9860
+ m(target, anchor) {
9861
+ insert(target, div, anchor);
9862
+ append(div, t);
9863
+ },
9864
+ p(ctx, dirty) {
9865
+ if (dirty & /*value*/ 2 && t_value !== (t_value = /*value*/ ctx[1].length + "")) set_data(t, t_value);
9866
+ },
9867
+ d(detaching) {
9868
+ if (detaching) detach(div);
9869
+ }
9870
+ };
9871
+ }
9872
+
9873
+ // (55:4) {#if maxcharcount > 0}
9874
+ function create_if_block_1$1(ctx) {
9875
+ let div;
9876
+ let t0_value = /*value*/ ctx[1].length + "";
9877
+ let t0;
9878
+ let t1_value = `/${/*maxcharcount*/ ctx[6]}` + "";
9879
+ let t1;
9880
+
9881
+ return {
9882
+ c() {
9883
+ div = element("div");
9884
+ t0 = text(t0_value);
9885
+ t1 = text(t1_value);
9886
+ attr(div, "class", "counter");
9887
+ toggle_class(div, "counter-error", /*value*/ ctx[1].length > /*maxcharcount*/ ctx[6]);
9888
+ },
9889
+ m(target, anchor) {
9890
+ insert(target, div, anchor);
9891
+ append(div, t0);
9892
+ append(div, t1);
9893
+ },
9894
+ p(ctx, dirty) {
9895
+ if (dirty & /*value*/ 2 && t0_value !== (t0_value = /*value*/ ctx[1].length + "")) set_data(t0, t0_value);
9896
+ if (dirty & /*maxcharcount*/ 64 && t1_value !== (t1_value = `/${/*maxcharcount*/ ctx[6]}` + "")) set_data(t1, t1_value);
9897
+
9898
+ if (dirty & /*value, maxcharcount*/ 66) {
9899
+ toggle_class(div, "counter-error", /*value*/ ctx[1].length > /*maxcharcount*/ ctx[6]);
9900
+ }
9901
+ },
9902
+ d(detaching) {
9903
+ if (detaching) detach(div);
9904
+ }
9905
+ };
9906
+ }
9907
+
9641
9908
  function create_fragment$1(ctx) {
9909
+ let div;
9642
9910
  let textarea;
9643
- let textarea_style_value;
9911
+ let t;
9912
+ let div_style_value;
9644
9913
  let mounted;
9645
9914
  let dispose;
9915
+ let if_block = /*showCounter*/ ctx[8] && create_if_block$1(ctx);
9646
9916
 
9647
9917
  return {
9648
9918
  c() {
9919
+ div = element("div");
9649
9920
  textarea = element("textarea");
9921
+ t = space();
9922
+ if (if_block) if_block.c();
9650
9923
  this.c = noop;
9651
9924
  attr(textarea, "name", /*name*/ ctx[0]);
9652
9925
  attr(textarea, "placeholder", /*placeholder*/ ctx[2]);
9653
9926
  textarea.value = /*value*/ ctx[1];
9654
9927
  attr(textarea, "rows", /*rows*/ ctx[3]);
9928
+ attr(textarea, "class", "goa-textarea");
9929
+ textarea.disabled = /*isDisabled*/ ctx[7];
9930
+ textarea.readOnly = /*isReadonly*/ ctx[9];
9931
+ attr(textarea, "data-testid", /*testid*/ ctx[4]);
9932
+ toggle_class(textarea, "error", /*isError*/ ctx[10]);
9933
+ attr(div, "class", "container");
9655
9934
 
9656
- attr(textarea, "style", textarea_style_value = `
9935
+ attr(div, "style", div_style_value = `
9657
9936
  --width: ${/*width*/ ctx[5]};
9658
9937
  `);
9659
-
9660
- attr(textarea, "class", "goa-textarea");
9661
- textarea.disabled = /*isDisabled*/ ctx[6];
9662
- textarea.readOnly = /*isReadonly*/ ctx[7];
9663
- attr(textarea, "data-testid", /*testid*/ ctx[4]);
9664
- toggle_class(textarea, "error", /*isError*/ ctx[8]);
9665
9938
  },
9666
9939
  m(target, anchor) {
9667
- insert(target, textarea, anchor);
9940
+ insert(target, div, anchor);
9941
+ append(div, textarea);
9942
+ append(div, t);
9943
+ if (if_block) if_block.m(div, null);
9668
9944
 
9669
9945
  if (!mounted) {
9670
- dispose = listen(textarea, "keyup", /*onChange*/ ctx[9]);
9946
+ dispose = listen(textarea, "keyup", /*onChange*/ ctx[11]);
9671
9947
  mounted = true;
9672
9948
  }
9673
9949
  },
@@ -9688,32 +9964,46 @@ function create_fragment$1(ctx) {
9688
9964
  attr(textarea, "rows", /*rows*/ ctx[3]);
9689
9965
  }
9690
9966
 
9691
- if (dirty & /*width*/ 32 && textarea_style_value !== (textarea_style_value = `
9692
- --width: ${/*width*/ ctx[5]};
9693
- `)) {
9694
- attr(textarea, "style", textarea_style_value);
9695
- }
9696
-
9697
- if (dirty & /*isDisabled*/ 64) {
9698
- textarea.disabled = /*isDisabled*/ ctx[6];
9967
+ if (dirty & /*isDisabled*/ 128) {
9968
+ textarea.disabled = /*isDisabled*/ ctx[7];
9699
9969
  }
9700
9970
 
9701
- if (dirty & /*isReadonly*/ 128) {
9702
- textarea.readOnly = /*isReadonly*/ ctx[7];
9971
+ if (dirty & /*isReadonly*/ 512) {
9972
+ textarea.readOnly = /*isReadonly*/ ctx[9];
9703
9973
  }
9704
9974
 
9705
9975
  if (dirty & /*testid*/ 16) {
9706
9976
  attr(textarea, "data-testid", /*testid*/ ctx[4]);
9707
9977
  }
9708
9978
 
9709
- if (dirty & /*isError*/ 256) {
9710
- toggle_class(textarea, "error", /*isError*/ ctx[8]);
9979
+ if (dirty & /*isError*/ 1024) {
9980
+ toggle_class(textarea, "error", /*isError*/ ctx[10]);
9981
+ }
9982
+
9983
+ if (/*showCounter*/ ctx[8]) {
9984
+ if (if_block) {
9985
+ if_block.p(ctx, dirty);
9986
+ } else {
9987
+ if_block = create_if_block$1(ctx);
9988
+ if_block.c();
9989
+ if_block.m(div, null);
9990
+ }
9991
+ } else if (if_block) {
9992
+ if_block.d(1);
9993
+ if_block = null;
9994
+ }
9995
+
9996
+ if (dirty & /*width*/ 32 && div_style_value !== (div_style_value = `
9997
+ --width: ${/*width*/ ctx[5]};
9998
+ `)) {
9999
+ attr(div, "style", div_style_value);
9711
10000
  }
9712
10001
  },
9713
10002
  i: noop,
9714
10003
  o: noop,
9715
10004
  d(detaching) {
9716
- if (detaching) detach(textarea);
10005
+ if (detaching) detach(div);
10006
+ if (if_block) if_block.d();
9717
10007
  mounted = false;
9718
10008
  dispose();
9719
10009
  }
@@ -9724,6 +10014,7 @@ function instance$1($$self, $$props, $$invalidate) {
9724
10014
  let isError;
9725
10015
  let isDisabled;
9726
10016
  let isReadonly;
10017
+ let showCounter;
9727
10018
  let { name } = $$props;
9728
10019
  let { value = "" } = $$props;
9729
10020
  let { placeholder = "" } = $$props;
@@ -9733,6 +10024,8 @@ function instance$1($$self, $$props, $$invalidate) {
9733
10024
  let { error = "false" } = $$props;
9734
10025
  let { readonly = "false" } = $$props;
9735
10026
  let { disabled = "false" } = $$props;
10027
+ let { showcounter = "false" } = $$props;
10028
+ let { maxcharcount = 0 } = $$props;
9736
10029
 
9737
10030
  function onChange(e) {
9738
10031
  const target = e.target;
@@ -9757,22 +10050,28 @@ function instance$1($$self, $$props, $$invalidate) {
9757
10050
  if ('rows' in $$props) $$invalidate(3, rows = $$props.rows);
9758
10051
  if ('testid' in $$props) $$invalidate(4, testid = $$props.testid);
9759
10052
  if ('width' in $$props) $$invalidate(5, width = $$props.width);
9760
- if ('error' in $$props) $$invalidate(10, error = $$props.error);
9761
- if ('readonly' in $$props) $$invalidate(11, readonly = $$props.readonly);
9762
- if ('disabled' in $$props) $$invalidate(12, disabled = $$props.disabled);
10053
+ if ('error' in $$props) $$invalidate(12, error = $$props.error);
10054
+ if ('readonly' in $$props) $$invalidate(13, readonly = $$props.readonly);
10055
+ if ('disabled' in $$props) $$invalidate(14, disabled = $$props.disabled);
10056
+ if ('showcounter' in $$props) $$invalidate(15, showcounter = $$props.showcounter);
10057
+ if ('maxcharcount' in $$props) $$invalidate(6, maxcharcount = $$props.maxcharcount);
9763
10058
  };
9764
10059
 
9765
10060
  $$self.$$.update = () => {
9766
- if ($$self.$$.dirty & /*error*/ 1024) {
9767
- $$invalidate(8, isError = toBoolean(error));
10061
+ if ($$self.$$.dirty & /*error*/ 4096) {
10062
+ $$invalidate(10, isError = toBoolean(error));
9768
10063
  }
9769
10064
 
9770
- if ($$self.$$.dirty & /*disabled*/ 4096) {
9771
- $$invalidate(6, isDisabled = toBoolean(disabled));
10065
+ if ($$self.$$.dirty & /*disabled*/ 16384) {
10066
+ $$invalidate(7, isDisabled = toBoolean(disabled));
9772
10067
  }
9773
10068
 
9774
- if ($$self.$$.dirty & /*readonly*/ 2048) {
9775
- $$invalidate(7, isReadonly = toBoolean(readonly));
10069
+ if ($$self.$$.dirty & /*readonly*/ 8192) {
10070
+ $$invalidate(9, isReadonly = toBoolean(readonly));
10071
+ }
10072
+
10073
+ if ($$self.$$.dirty & /*showcounter*/ 32768) {
10074
+ $$invalidate(8, showCounter = toBoolean(showcounter));
9776
10075
  }
9777
10076
  };
9778
10077
 
@@ -9783,20 +10082,25 @@ function instance$1($$self, $$props, $$invalidate) {
9783
10082
  rows,
9784
10083
  testid,
9785
10084
  width,
10085
+ maxcharcount,
9786
10086
  isDisabled,
10087
+ showCounter,
9787
10088
  isReadonly,
9788
10089
  isError,
9789
10090
  onChange,
9790
10091
  error,
9791
10092
  readonly,
9792
- disabled
10093
+ disabled,
10094
+ showcounter
9793
10095
  ];
9794
10096
  }
9795
10097
 
9796
10098
  class TextArea extends SvelteElement {
9797
10099
  constructor(options) {
9798
10100
  super();
9799
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-textarea{display:block;width:100%;box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:3px;background:var(--color-white);color:var(--color-black, #ccc);padding:var(--input-padding, 0.5rem);font-size:var(--input-font-size);font-family:var(--font-family);min-width:100%}@media(min-width: 640px){.goa-textarea{min-width:0;width:var(--width)}}.goa-textarea[readonly]{cursor:pointer}.goa-textarea:hover{border-color:var(--goa-color-interactive--hover)}.goa-textarea:active,.goa-textarea:focus,.goa-textarea:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--focus)}.goa-textarea:disabled{border-color:var(--color-gray-200)}.goa-textarea:disabled:hover{border-color:var(--color-gray-200)}.goa-textarea:disabled:focus,.goa-textarea:disabled:active{box-shadow:none}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-status-emergency-dark)}</style>`;
10101
+
10102
+ 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-textarea{display:block;width:100%;box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:3px;background:var(--color-white);color:var(--color-black, #ccc);padding:var(--input-padding, 0.5rem);font-size:var(--input-font-size);font-family:var(--font-family);min-width:100%}@media(min-width: 640px){.goa-textarea{min-width:0;width:var(--width)}}.goa-textarea[readonly]{cursor:pointer}.goa-textarea:hover{border-color:var(--goa-color-interactive--hover)}.goa-textarea:active,.goa-textarea:focus,.goa-textarea:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--focus)}.goa-textarea:disabled{border-color:var(--color-gray-200)}.goa-textarea:disabled:hover{border-color:var(--color-gray-200)}.goa-textarea:disabled:focus,.goa-textarea:disabled:active{box-shadow:none}.counter{position:absolute;right:0;padding-top:0.25rem;font-size:var(--fs-sm)}.counter-error{color:var(--goa-color-status-emergency-dark)
10103
+ }.error:hover,.error:focus,.error{border:2px solid var(--goa-color-status-emergency-dark)}</style>`;
9800
10104
 
9801
10105
  init(
9802
10106
  this,
@@ -9815,9 +10119,11 @@ class TextArea extends SvelteElement {
9815
10119
  rows: 3,
9816
10120
  testid: 4,
9817
10121
  width: 5,
9818
- error: 10,
9819
- readonly: 11,
9820
- disabled: 12
10122
+ error: 12,
10123
+ readonly: 13,
10124
+ disabled: 14,
10125
+ showcounter: 15,
10126
+ maxcharcount: 6
9821
10127
  },
9822
10128
  null
9823
10129
  );
@@ -9844,7 +10150,9 @@ class TextArea extends SvelteElement {
9844
10150
  "width",
9845
10151
  "error",
9846
10152
  "readonly",
9847
- "disabled"
10153
+ "disabled",
10154
+ "showcounter",
10155
+ "maxcharcount"
9848
10156
  ];
9849
10157
  }
9850
10158
 
@@ -9903,7 +10211,7 @@ class TextArea extends SvelteElement {
9903
10211
  }
9904
10212
 
9905
10213
  get error() {
9906
- return this.$$.ctx[10];
10214
+ return this.$$.ctx[12];
9907
10215
  }
9908
10216
 
9909
10217
  set error(error) {
@@ -9912,7 +10220,7 @@ class TextArea extends SvelteElement {
9912
10220
  }
9913
10221
 
9914
10222
  get readonly() {
9915
- return this.$$.ctx[11];
10223
+ return this.$$.ctx[13];
9916
10224
  }
9917
10225
 
9918
10226
  set readonly(readonly) {
@@ -9921,13 +10229,31 @@ class TextArea extends SvelteElement {
9921
10229
  }
9922
10230
 
9923
10231
  get disabled() {
9924
- return this.$$.ctx[12];
10232
+ return this.$$.ctx[14];
9925
10233
  }
9926
10234
 
9927
10235
  set disabled(disabled) {
9928
10236
  this.$$set({ disabled });
9929
10237
  flush();
9930
10238
  }
10239
+
10240
+ get showcounter() {
10241
+ return this.$$.ctx[15];
10242
+ }
10243
+
10244
+ set showcounter(showcounter) {
10245
+ this.$$set({ showcounter });
10246
+ flush();
10247
+ }
10248
+
10249
+ get maxcharcount() {
10250
+ return this.$$.ctx[6];
10251
+ }
10252
+
10253
+ set maxcharcount(maxcharcount) {
10254
+ this.$$set({ maxcharcount });
10255
+ flush();
10256
+ }
9931
10257
  }
9932
10258
 
9933
10259
  customElements.define("goa-textarea", TextArea);