@abgov/web-components 1.40.0-dev.11 → 1.40.0-dev.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +83 -83
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -27,7 +27,7 @@ function me(t, e) {
27
27
  return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
28
28
  }
29
29
  let go;
30
- function xt(t, e) {
30
+ function Et(t, e) {
31
31
  return t === e ? !0 : (go || (go = document.createElement("a")), go.href = e, t === go.href);
32
32
  }
33
33
  function U1(t) {
@@ -231,7 +231,7 @@ function ta() {
231
231
  }
232
232
  return vo;
233
233
  }
234
- function Et(t, e) {
234
+ function jt(t, e) {
235
235
  getComputedStyle(t).position === "static" && (t.style.position = "relative");
236
236
  const i = C("iframe");
237
237
  i.setAttribute(
@@ -1609,7 +1609,7 @@ function La(t) {
1609
1609
  );
1610
1610
  return {
1611
1611
  c() {
1612
- e = C("div"), o = C("img"), n = R(), l = C("img"), a = R(), s && s.c(), u(o, "alt", "GoA Logo"), u(o, "class", "image-mobile svelte-10wpwl8"), xt(o.src, i = d1) || u(o, "src", i), u(l, "alt", "GoA Logo"), u(l, "class", "image-desktop svelte-10wpwl8"), xt(l.src, r = u1) || u(l, "src", r), u(e, "class", "header-logo-title-area svelte-10wpwl8");
1612
+ e = C("div"), o = C("img"), n = R(), l = C("img"), a = R(), s && s.c(), u(o, "alt", "GoA Logo"), u(o, "class", "image-mobile svelte-10wpwl8"), Et(o.src, i = d1) || u(o, "src", i), u(l, "alt", "GoA Logo"), u(l, "class", "image-desktop svelte-10wpwl8"), Et(l.src, r = u1) || u(l, "src", r), u(e, "class", "header-logo-title-area svelte-10wpwl8");
1613
1613
  },
1614
1614
  m(d, c) {
1615
1615
  T(d, e, c), _(e, o), _(e, n), _(e, l), _(e, a), s && s.m(e, null);
@@ -1630,7 +1630,7 @@ function qa(t) {
1630
1630
  );
1631
1631
  return {
1632
1632
  c() {
1633
- e = C("a"), o = C("img"), n = R(), l = C("img"), a = R(), s && s.c(), u(o, "alt", "GoA Logo"), u(o, "class", "image-mobile svelte-10wpwl8"), xt(o.src, i = d1) || u(o, "src", i), u(l, "alt", "GoA Logo"), u(l, "class", "image-desktop svelte-10wpwl8"), xt(l.src, r = u1) || u(l, "src", r), u(
1633
+ e = C("a"), o = C("img"), n = R(), l = C("img"), a = R(), s && s.c(), u(o, "alt", "GoA Logo"), u(o, "class", "image-mobile svelte-10wpwl8"), Et(o.src, i = d1) || u(o, "src", i), u(l, "alt", "GoA Logo"), u(l, "class", "image-desktop svelte-10wpwl8"), Et(l.src, r = u1) || u(l, "src", r), u(
1634
1634
  e,
1635
1635
  "href",
1636
1636
  /*url*/
@@ -4690,7 +4690,7 @@ function We(t, e) {
4690
4690
  const o = t < 0 ? "-" : "", i = Math.abs(t).toString().padStart(e, "0");
4691
4691
  return o + i;
4692
4692
  }
4693
- const Mt = {
4693
+ const xt = {
4694
4694
  // Year
4695
4695
  y(t, e) {
4696
4696
  const o = t.getFullYear(), i = o > 0 ? o : 1 - o;
@@ -4776,7 +4776,7 @@ const Mt = {
4776
4776
  const i = t.getFullYear(), n = i > 0 ? i : 1 - i;
4777
4777
  return o.ordinalNumber(n, { unit: "year" });
4778
4778
  }
4779
- return Mt.y(t, e);
4779
+ return xt.y(t, e);
4780
4780
  },
4781
4781
  // Local week-numbering year
4782
4782
  Y: function(t, e, o, i) {
@@ -4879,7 +4879,7 @@ const Mt = {
4879
4879
  switch (e) {
4880
4880
  case "M":
4881
4881
  case "MM":
4882
- return Mt.M(t, e);
4882
+ return xt.M(t, e);
4883
4883
  // 1st, 2nd, ..., 12th
4884
4884
  case "Mo":
4885
4885
  return o.ordinalNumber(i + 1, { unit: "month" });
@@ -4944,7 +4944,7 @@ const Mt = {
4944
4944
  },
4945
4945
  // Day of the month
4946
4946
  d: function(t, e, o) {
4947
- return e === "do" ? o.ordinalNumber(t.getDate(), { unit: "date" }) : Mt.d(t, e);
4947
+ return e === "do" ? o.ordinalNumber(t.getDate(), { unit: "date" }) : xt.d(t, e);
4948
4948
  },
4949
4949
  // Day of year
4950
4950
  D: function(t, e, o) {
@@ -5190,11 +5190,11 @@ const Mt = {
5190
5190
  let i = t.getHours() % 12;
5191
5191
  return i === 0 && (i = 12), o.ordinalNumber(i, { unit: "hour" });
5192
5192
  }
5193
- return Mt.h(t, e);
5193
+ return xt.h(t, e);
5194
5194
  },
5195
5195
  // Hour [0-23]
5196
5196
  H: function(t, e, o) {
5197
- return e === "Ho" ? o.ordinalNumber(t.getHours(), { unit: "hour" }) : Mt.H(t, e);
5197
+ return e === "Ho" ? o.ordinalNumber(t.getHours(), { unit: "hour" }) : xt.H(t, e);
5198
5198
  },
5199
5199
  // Hour [0-11]
5200
5200
  K: function(t, e, o) {
@@ -5208,15 +5208,15 @@ const Mt = {
5208
5208
  },
5209
5209
  // Minute
5210
5210
  m: function(t, e, o) {
5211
- return e === "mo" ? o.ordinalNumber(t.getMinutes(), { unit: "minute" }) : Mt.m(t, e);
5211
+ return e === "mo" ? o.ordinalNumber(t.getMinutes(), { unit: "minute" }) : xt.m(t, e);
5212
5212
  },
5213
5213
  // Second
5214
5214
  s: function(t, e, o) {
5215
- return e === "so" ? o.ordinalNumber(t.getSeconds(), { unit: "second" }) : Mt.s(t, e);
5215
+ return e === "so" ? o.ordinalNumber(t.getSeconds(), { unit: "second" }) : xt.s(t, e);
5216
5216
  },
5217
5217
  // Fraction of second
5218
5218
  S: function(t, e) {
5219
- return Mt.S(t, e);
5219
+ return xt.S(t, e);
5220
5220
  },
5221
5221
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
5222
5222
  X: function(t, e, o) {
@@ -7532,7 +7532,7 @@ max-width: ${/*maxwidth*/
7532
7532
  );
7533
7533
  },
7534
7534
  m(Z, F) {
7535
- T(Z, e, F), _(e, o), _(o, i), _(i, n), t[34](n), _(i, c), E && E.m(i, null), _(o, f), _(o, g), P && P.m(g, null), _(g, v), _(g, h), _(e, m), H && H.m(e, null), _(e, k), _(e, p), U && U.m(p, null), t[35](p), z = Et(
7535
+ T(Z, e, F), _(e, o), _(o, i), _(i, n), t[34](n), _(i, c), E && E.m(i, null), _(o, f), _(o, g), P && P.m(g, null), _(g, v), _(g, h), _(e, m), H && H.m(e, null), _(e, k), _(e, p), U && U.m(p, null), t[35](p), z = jt(
7536
7536
  p,
7537
7537
  /*div2_elementresize_handler*/
7538
7538
  t[36].bind(p)
@@ -10703,7 +10703,7 @@ function un(t) {
10703
10703
  t[10]);
10704
10704
  },
10705
10705
  m(r, a) {
10706
- T(r, e, a), l && l.m(e, null), o = Et(
10706
+ T(r, e, a), l && l.m(e, null), o = jt(
10707
10707
  e,
10708
10708
  /*section_elementresize_handler*/
10709
10709
  t[21].bind(e)
@@ -10845,7 +10845,7 @@ function Rc(t) {
10845
10845
  ), b(e, "class", "svelte-1w9txfo");
10846
10846
  },
10847
10847
  m(I, U) {
10848
- T(I, e, U), _(e, o), _(o, i), _(o, n), _(o, l), _(l, r), E && E.m(r, null), _(r, a), _(r, s), d = Et(
10848
+ T(I, e, U), _(e, o), _(o, i), _(o, n), _(o, l), _(l, r), E && E.m(r, null), _(r, a), _(r, s), d = jt(
10849
10849
  r,
10850
10850
  /*div0_elementresize_handler*/
10851
10851
  t[19].bind(r)
@@ -11204,7 +11204,7 @@ function Kc(t, e, o) {
11204
11204
  }
11205
11205
  });
11206
11206
  }
11207
- ut(async () => {
11207
+ ut(() => {
11208
11208
  je(s, x1, { value: l }, { bubbles: !0 });
11209
11209
  });
11210
11210
  function c(f) {
@@ -11251,11 +11251,11 @@ function Jc(t) {
11251
11251
  }
11252
11252
  function fn(t, e, o) {
11253
11253
  const i = t.slice();
11254
- return i[86] = e[o], i[90] = o, i;
11254
+ return i[85] = e[o], i[89] = o, i;
11255
11255
  }
11256
11256
  function gn(t, e, o) {
11257
11257
  const i = t.slice();
11258
- return i[86] = e[o], i;
11258
+ return i[85] = e[o], i;
11259
11259
  }
11260
11260
  function Qc(t) {
11261
11261
  let e, o, i, n, l, r, a, s, d, c, f, g, v, h, m, k = [], p = /* @__PURE__ */ new Map(), z, q, L, y, x, M, j, E, D;
@@ -11287,7 +11287,7 @@ function Qc(t) {
11287
11287
  );
11288
11288
  const Y = (A) => (
11289
11289
  /*index*/
11290
- A[90]
11290
+ A[89]
11291
11291
  );
11292
11292
  for (let A = 0; A < G.length; A += 1) {
11293
11293
  let N = fn(t, G, A), Q = Y(N);
@@ -11893,15 +11893,15 @@ function mn(t) {
11893
11893
  function bn(t, e) {
11894
11894
  let o, i = (
11895
11895
  /*option*/
11896
- (e[86].label || /*option*/
11897
- e[86].value) + ""
11896
+ (e[85].label || /*option*/
11897
+ e[85].value) + ""
11898
11898
  ), n, l, r, a, s, d, c, f, g;
11899
11899
  function v(...h) {
11900
11900
  return (
11901
11901
  /*click_handler*/
11902
11902
  e[52](
11903
11903
  /*option*/
11904
- e[86],
11904
+ e[85],
11905
11905
  ...h
11906
11906
  )
11907
11907
  );
@@ -11912,22 +11912,22 @@ function bn(t, e) {
11912
11912
  c() {
11913
11913
  var h, m;
11914
11914
  o = C("li"), n = ne(i), l = R(), u(o, "id", r = /*option*/
11915
- e[86].value), u(o, "aria-selected", a = /*_selectedOption*/
11915
+ e[85].value), u(o, "aria-selected", a = /*_selectedOption*/
11916
11916
  ((h = e[23]) == null ? void 0 : h.value) === /*option*/
11917
- e[86].value), u(o, "class", "dropdown-item svelte-avr26f"), u(o, "data-index", s = /*index*/
11918
- e[90]), u(o, "data-testid", d = `dropdown-item-${/*option*/
11919
- e[86].value}`), u(o, "data-value", c = /*option*/
11920
- e[86].value), u(o, "role", "option"), Ie(o, "display", "block"), B(
11917
+ e[85].value), u(o, "class", "dropdown-item svelte-avr26f"), u(o, "data-index", s = /*index*/
11918
+ e[89]), u(o, "data-testid", d = `dropdown-item-${/*option*/
11919
+ e[85].value}`), u(o, "data-value", c = /*option*/
11920
+ e[85].value), u(o, "role", "option"), Ie(o, "display", "block"), B(
11921
11921
  o,
11922
11922
  "selected",
11923
11923
  /*_selectedOption*/
11924
11924
  ((m = e[23]) == null ? void 0 : m.value) === /*option*/
11925
- e[86].value
11925
+ e[85].value
11926
11926
  ), B(
11927
11927
  o,
11928
11928
  "dropdown-item--highlighted",
11929
11929
  /*index*/
11930
- e[90] === /*_highlightedIndex*/
11930
+ e[89] === /*_highlightedIndex*/
11931
11931
  e[17]
11932
11932
  ), this.first = o;
11933
11933
  },
@@ -11938,31 +11938,31 @@ function bn(t, e) {
11938
11938
  var k, p;
11939
11939
  e = h, m[0] & /*_filteredOptions*/
11940
11940
  1048576 && i !== (i = /*option*/
11941
- (e[86].label || /*option*/
11942
- e[86].value) + "") && he(n, i), m[0] & /*_filteredOptions*/
11941
+ (e[85].label || /*option*/
11942
+ e[85].value) + "") && he(n, i), m[0] & /*_filteredOptions*/
11943
11943
  1048576 && r !== (r = /*option*/
11944
- e[86].value) && u(o, "id", r), m[0] & /*_selectedOption, _filteredOptions*/
11944
+ e[85].value) && u(o, "id", r), m[0] & /*_selectedOption, _filteredOptions*/
11945
11945
  9437184 && a !== (a = /*_selectedOption*/
11946
11946
  ((k = e[23]) == null ? void 0 : k.value) === /*option*/
11947
- e[86].value) && u(o, "aria-selected", a), m[0] & /*_filteredOptions*/
11947
+ e[85].value) && u(o, "aria-selected", a), m[0] & /*_filteredOptions*/
11948
11948
  1048576 && s !== (s = /*index*/
11949
- e[90]) && u(o, "data-index", s), m[0] & /*_filteredOptions*/
11949
+ e[89]) && u(o, "data-index", s), m[0] & /*_filteredOptions*/
11950
11950
  1048576 && d !== (d = `dropdown-item-${/*option*/
11951
- e[86].value}`) && u(o, "data-testid", d), m[0] & /*_filteredOptions*/
11951
+ e[85].value}`) && u(o, "data-testid", d), m[0] & /*_filteredOptions*/
11952
11952
  1048576 && c !== (c = /*option*/
11953
- e[86].value) && u(o, "data-value", c), m[0] & /*_selectedOption, _filteredOptions*/
11953
+ e[85].value) && u(o, "data-value", c), m[0] & /*_selectedOption, _filteredOptions*/
11954
11954
  9437184 && B(
11955
11955
  o,
11956
11956
  "selected",
11957
11957
  /*_selectedOption*/
11958
11958
  ((p = e[23]) == null ? void 0 : p.value) === /*option*/
11959
- e[86].value
11959
+ e[85].value
11960
11960
  ), m[0] & /*_filteredOptions, _highlightedIndex*/
11961
11961
  1179648 && B(
11962
11962
  o,
11963
11963
  "dropdown-item--highlighted",
11964
11964
  /*index*/
11965
- e[90] === /*_highlightedIndex*/
11965
+ e[89] === /*_highlightedIndex*/
11966
11966
  e[17]
11967
11967
  );
11968
11968
  },
@@ -11974,14 +11974,14 @@ function bn(t, e) {
11974
11974
  function pn(t) {
11975
11975
  let e, o = (
11976
11976
  /*option*/
11977
- t[86].label + ""
11977
+ t[85].label + ""
11978
11978
  ), i, n, l, r;
11979
11979
  return {
11980
11980
  c() {
11981
11981
  e = C("option"), i = ne(o), n = R(), e.selected = l = /*value*/
11982
11982
  t[0] === /*option*/
11983
- t[86].value, e.__value = r = /*option*/
11984
- t[86].value, ko(e, e.__value), u(e, "class", "svelte-avr26f");
11983
+ t[85].value, e.__value = r = /*option*/
11984
+ t[85].value, ko(e, e.__value), u(e, "class", "svelte-avr26f");
11985
11985
  },
11986
11986
  m(a, s) {
11987
11987
  T(a, e, s), _(e, i), _(e, n);
@@ -11989,12 +11989,12 @@ function pn(t) {
11989
11989
  p(a, s) {
11990
11990
  s[0] & /*_options*/
11991
11991
  65536 && o !== (o = /*option*/
11992
- a[86].label + "") && he(i, o), s[0] & /*value, _options*/
11992
+ a[85].label + "") && he(i, o), s[0] & /*value, _options*/
11993
11993
  65537 && l !== (l = /*value*/
11994
11994
  a[0] === /*option*/
11995
- a[86].value) && (e.selected = l), s[0] & /*_options*/
11995
+ a[85].value) && (e.selected = l), s[0] & /*_options*/
11996
11996
  65536 && r !== (r = /*option*/
11997
- a[86].value) && (e.__value = r, ko(e, e.__value));
11997
+ a[85].value) && (e.__value = r, ko(e, e.__value));
11998
11998
  },
11999
11999
  d(a) {
12000
12000
  a && S(e);
@@ -12179,13 +12179,13 @@ function ld(t, e, o) {
12179
12179
  }
12180
12180
  je(oe.el, "dropdown:bind", { el: te }), Se && clearTimeout(Se), Se = setTimeout(
12181
12181
  () => {
12182
- St(), l || (Ne(), ee && W && At());
12182
+ qt(), l || (Ne(), ee && W && At());
12183
12183
  },
12184
12184
  1
12185
12185
  );
12186
12186
  }
12187
12187
  function _e(oe) {
12188
- o(16, Y = Y.filter((Le) => Le.value !== oe.value));
12188
+ o(16, Y = Y.filter((Le) => Le.value !== oe.value)), qt();
12189
12189
  }
12190
12190
  function Ne() {
12191
12191
  o(23, W = Y.find((oe) => oe.value == se[0]));
@@ -12217,25 +12217,25 @@ function ld(t, e, o) {
12217
12217
  Le >= 0 && o(17, N = Le);
12218
12218
  }
12219
12219
  }
12220
- function jt(oe) {
12220
+ function Ht(oe) {
12221
12221
  let Le = N + oe, Ae = ge != null && ge.length ? ge : Y;
12222
- Ae.length !== 0 && (Le < 0 ? Le = r ? Ae.length - 1 : 0 : Le >= Ae.length && (Le = r ? 0 : Ae.length - 1), o(17, N = Le), Ht());
12222
+ Ae.length !== 0 && (Le < 0 ? Le = r ? Ae.length - 1 : 0 : Le >= Ae.length && (Le = r ? 0 : Ae.length - 1), o(17, N = Le), St());
12223
12223
  }
12224
- function Ht() {
12224
+ function St() {
12225
12225
  const oe = N, Le = V == null ? void 0 : V.querySelector(`li[data-index="${oe}"]`);
12226
12226
  if (!Le) return;
12227
12227
  const Ae = Le.getBoundingClientRect(), Lt = V.getBoundingClientRect();
12228
12228
  Ae.top >= 0 && Ae.left >= 0 && Ae.bottom <= Lt.height && Ae.right <= Lt.width || Le.scrollIntoView({ behavior: "smooth", block: "nearest" });
12229
12229
  }
12230
- function St() {
12230
+ function qt() {
12231
12231
  o(20, ge = r ? Y.filter((oe) => mo(oe, (ee == null ? void 0 : ee.value) || "")) : Y);
12232
12232
  }
12233
12233
  function zt() {
12234
12234
  i || setTimeout(
12235
12235
  async () => {
12236
- St(), o(24, A = !0), ee == null || ee.focus(), setTimeout(
12236
+ qt(), o(24, A = !0), ee == null || ee.focus(), setTimeout(
12237
12237
  () => {
12238
- (ee == null ? void 0 : ee.value) === "" && W && Jt(), Xt(), Ht();
12238
+ (ee == null ? void 0 : ee.value) === "" && W && Jt(), Xt(), St();
12239
12239
  },
12240
12240
  0
12241
12241
  );
@@ -12243,7 +12243,7 @@ function ld(t, e, o) {
12243
12243
  0
12244
12244
  );
12245
12245
  }
12246
- function qt() {
12246
+ function Mt() {
12247
12247
  o(24, A = !1), r && At();
12248
12248
  }
12249
12249
  function At() {
@@ -12255,18 +12255,18 @@ function ld(t, e, o) {
12255
12255
  J && (Ee(te, "_change", Le, { bubbles: !0 }), J = !1);
12256
12256
  }
12257
12257
  function re(oe) {
12258
- i || (J = oe.value !== (W == null ? void 0 : W.value), o(23, W = oe), l || (St(), At(), rt(), qt()), ao(oe.value));
12258
+ i || (J = oe.value !== (W == null ? void 0 : W.value), o(23, W = oe), l || (qt(), At(), rt(), Mt()), ao(oe.value));
12259
12259
  }
12260
12260
  function Ue(oe) {
12261
12261
  J = !0, re(oe);
12262
12262
  }
12263
12263
  function so(oe) {
12264
12264
  if (i || !r || !(F === "test-autofill" || ee.matches(":-webkit-autofill") || ee.matches(":autofill"))) return;
12265
- St();
12265
+ qt();
12266
12266
  const Ae = (ee == null ? void 0 : ee.value) || "", Tt = Ae !== "" ? ge.find((W1) => mo(W1, Ae, !1)) : null;
12267
12267
  W || (Tt ? Ue(Tt) : Jt()), setTimeout(
12268
12268
  () => {
12269
- qt();
12269
+ Mt();
12270
12270
  },
12271
12271
  2
12272
12272
  );
@@ -12288,7 +12288,7 @@ function ld(t, e, o) {
12288
12288
  J = !0, re(Ae);
12289
12289
  }
12290
12290
  function Jt() {
12291
- i || (o(29, a = void 0), o(17, N = -1), o(23, W = void 0), J = !0, St(), ao(""), At());
12291
+ i || (o(29, a = void 0), o(17, N = -1), o(23, W = void 0), J = !0, qt(), ao(""), At());
12292
12292
  }
12293
12293
  function A1(oe) {
12294
12294
  Ee(te, "help-text::announce", void 0, { bubbles: !0 });
@@ -12302,17 +12302,17 @@ function ld(t, e, o) {
12302
12302
  }
12303
12303
  onEnter(Le) {
12304
12304
  const Ae = ge[N];
12305
- Ae && (J = Ae.value !== (W == null ? void 0 : W.value), re(Ae)), W ? qt() : zt(), Le.stopPropagation();
12305
+ Ae && (J = Ae.value !== (W == null ? void 0 : W.value), re(Ae)), W ? Mt() : zt(), Le.stopPropagation();
12306
12306
  }
12307
12307
  onArrow(Le, Ae) {
12308
- A || zt(), jt(Ae === "up" ? -1 : 1), Le.stopPropagation();
12308
+ A || zt(), Ht(Ae === "up" ? -1 : 1), Le.stopPropagation();
12309
12309
  }
12310
12310
  onTab(Le) {
12311
12311
  const Ae = ge.find((Lt) => {
12312
12312
  var Tt;
12313
12313
  return ((Tt = Lt.label) == null ? void 0 : Tt.toLowerCase()) === this.input.value.toLowerCase();
12314
12314
  });
12315
- Ae && re(Ae), qt();
12315
+ Ae && re(Ae), Mt();
12316
12316
  }
12317
12317
  onKeyUp(Le) {
12318
12318
  this.input.value === "" && W && (o(23, W = void 0), o(17, N = -1)), zt();
@@ -12357,13 +12357,13 @@ function ld(t, e, o) {
12357
12357
  onEnter(Le) {
12358
12358
  if (A) {
12359
12359
  const Ae = ge[N];
12360
- Ae && re(Ae), qt();
12360
+ Ae && re(Ae), Mt();
12361
12361
  } else
12362
12362
  zt();
12363
12363
  Le.preventDefault(), Le.stopPropagation();
12364
12364
  }
12365
12365
  onArrow(Le, Ae) {
12366
- A || zt(), jt(Ae === "up" ? -1 : 1), Le.preventDefault(), Le.stopPropagation();
12366
+ A || zt(), Ht(Ae === "up" ? -1 : 1), Le.preventDefault(), Le.stopPropagation();
12367
12367
  }
12368
12368
  handleKeyDown(Le) {
12369
12369
  switch (Le.key) {
@@ -12378,7 +12378,7 @@ function ld(t, e, o) {
12378
12378
  this.onArrow(Le, "down");
12379
12379
  break;
12380
12380
  case "Tab":
12381
- qt();
12381
+ Mt();
12382
12382
  break;
12383
12383
  }
12384
12384
  return !1;
@@ -14216,7 +14216,7 @@ function Bd(t) {
14216
14216
  let e, o;
14217
14217
  return {
14218
14218
  c() {
14219
- e = C("img"), xt(e.src, o = E1) || u(e, "src", o), u(e, "alt", "Government of Alberta Logo"), u(e, "class", "logo svelte-gzux3e");
14219
+ e = C("img"), Et(e.src, o = E1) || u(e, "src", o), u(e, "alt", "Government of Alberta Logo"), u(e, "class", "logo svelte-gzux3e");
14220
14220
  },
14221
14221
  m(i, n) {
14222
14222
  T(i, e, n);
@@ -14231,7 +14231,7 @@ function Zd(t) {
14231
14231
  let e, o, i;
14232
14232
  return {
14233
14233
  c() {
14234
- e = C("a"), o = C("img"), xt(o.src, i = E1) || u(o, "src", i), u(o, "alt", "Government of Alberta Logo"), u(o, "class", "logo svelte-gzux3e"), u(
14234
+ e = C("a"), o = C("img"), Et(o.src, i = E1) || u(o, "src", i), u(o, "alt", "Government of Alberta Logo"), u(o, "class", "logo svelte-gzux3e"), u(
14235
14235
  e,
14236
14236
  "href",
14237
14237
  /*url*/
@@ -14322,7 +14322,7 @@ function Od(t) {
14322
14322
  ));
14323
14323
  },
14324
14324
  m(H, I) {
14325
- T(H, e, I), _(e, o), _(o, i), L && L.m(i, null), _(o, n), y && y.m(o, null), _(o, l), _(o, r), _(r, a), M && M.m(a, null), _(r, s), _(r, d), D.m(d, null), _(d, c), _(d, f), _(f, g), _(f, v), _(f, h), p = Et(
14325
+ T(H, e, I), _(e, o), _(o, i), L && L.m(i, null), _(o, n), y && y.m(o, null), _(o, l), _(o, r), _(r, a), M && M.m(a, null), _(r, s), _(r, d), D.m(d, null), _(d, c), _(d, f), _(f, g), _(f, v), _(f, h), p = jt(
14326
14326
  e,
14327
14327
  /*div5_elementresize_handler*/
14328
14328
  t[10].bind(e)
@@ -21120,7 +21120,7 @@ function I0(t, e, o) {
21120
21120
  ]), [g, v] = He("Input auto capitalize", ["on", "off", "none", "sentences", "words", "characters"]), [h, m] = He("Input text align", ["left", "right"]);
21121
21121
  let { type: k = "text" } = e, { name: p = "" } = e, { value: z = "" } = e, { autocapitalize: q = "off" } = e, { autocomplete: L = "" } = e, { placeholder: y = "" } = e, { leadingicon: x = null } = e, { trailingicon: M = null } = e, { variant: j = "goa" } = e, { disabled: E = "false" } = e, { handletrailingiconclick: D = "false" } = e, { focused: P = "false" } = e, { readonly: H = "false" } = e, { error: I = "false" } = e, { testid: U = "" } = e, { width: Z = "30ch" } = e, { arialabel: F = "" } = e, { arialabelledby: G = "" } = e, { min: Y = "" } = e, { max: W = "" } = e, { step: A = 1 } = e, { prefix: N = "" } = e, { suffix: Q = "" } = e, { debounce: Ce = 0 } = e, { maxlength: te = null } = e, { id: V = "" } = e, { mt: ee = null } = e, { mr: O = null } = e, { mb: X = null } = e, { ml: J = null } = e, { trailingiconarialabel: ge = "" } = e, { textalign: se = "left" } = e, { size: Se = "default" } = e, { version: et = "1" } = e, ot = !1, _t = !1, ke, Fe, Re, lt = !1, ae = !1, Ke = "", it = "";
21122
21122
  qe(() => {
21123
- f(k), v(q), m(se), _e(), qt(), zt(), Xt();
21123
+ f(k), v(q), m(se), _e(), Mt(), zt(), Xt();
21124
21124
  const { containerStyle: re, inputWidth: Ue } = Z0(Z, k);
21125
21125
  o(32, Ke = re), o(33, it = Ue);
21126
21126
  });
@@ -21154,7 +21154,7 @@ function I0(t, e, o) {
21154
21154
  function Xt() {
21155
21155
  p && je(Re, nt, { name: p, el: Fe }, { bubbles: !0, timeout: 10 });
21156
21156
  }
21157
- function jt(re) {
21157
+ function Ht(re) {
21158
21158
  const Ue = re.target;
21159
21159
  Ue && (l || (ke != null && clearTimeout(ke), ke = setTimeout(
21160
21160
  () => {
@@ -21177,7 +21177,7 @@ function I0(t, e, o) {
21177
21177
  }
21178
21178
  )), o(0, z = Ue.value)));
21179
21179
  }
21180
- function Ht(re) {
21180
+ function St(re) {
21181
21181
  const Ue = re.target;
21182
21182
  Ue.dispatchEvent(new CustomEvent(
21183
21183
  "_focus",
@@ -21187,7 +21187,7 @@ function I0(t, e, o) {
21187
21187
  }
21188
21188
  )), Ee(Re, "help-text::announce", void 0, { bubbles: !0 });
21189
21189
  }
21190
- function St(re) {
21190
+ function qt(re) {
21191
21191
  o(41, P = "false");
21192
21192
  const Ue = re.target;
21193
21193
  Ue.dispatchEvent(new CustomEvent(
@@ -21206,7 +21206,7 @@ function I0(t, e, o) {
21206
21206
  const Ue = Re.querySelector("slot[name=trailingContent]");
21207
21207
  (Ue == null ? void 0 : Ue.assignedNodes().length) > 0 && ((fo = (uo = Ue.assignedNodes()[0]) == null ? void 0 : uo.textContent) == null ? void 0 : fo.trim()) !== "" && o(31, _t = !0);
21208
21208
  }
21209
- function qt() {
21209
+ function Mt() {
21210
21210
  (N != "" || Q != "") && console.warn("GoAInput [prefix] and [suffix] properties are deprecated. Instead use leadingContent and trailingContent.");
21211
21211
  }
21212
21212
  function At(re) {
@@ -21232,7 +21232,7 @@ function I0(t, e, o) {
21232
21232
  134217728 | t.$$.dirty[1] & /*isFocused*/
21233
21233
  262144 && n && Fe && setTimeout(() => Fe.focus(), 2), t.$$.dirty[0] & /*_inputEl, type*/
21234
21234
  134217730 && Fe && k === "search" && Fe.addEventListener("search", (re) => {
21235
- jt(re);
21235
+ Ht(re);
21236
21236
  });
21237
21237
  }, [
21238
21238
  z,
@@ -21272,9 +21272,9 @@ function I0(t, e, o) {
21272
21272
  l,
21273
21273
  r,
21274
21274
  i,
21275
- jt,
21276
21275
  Ht,
21277
21276
  St,
21277
+ qt,
21278
21278
  d,
21279
21279
  P,
21280
21280
  I,
@@ -23162,11 +23162,11 @@ function er(t) {
23162
23162
  ), b(e, "class", "svelte-aepkat");
23163
23163
  },
23164
23164
  m(J, ge) {
23165
- T(J, e, ge), _(e, o), _(o, i), _(o, n), _(o, l), W && W.m(l, null), _(l, r), _(l, a), _(a, s), _(s, d), A && A.m(d, null), _(d, c), _(d, f), ~g && Q[g].m(f, null), _(s, m), te && te.m(s, null), t[28](s), p = Et(
23165
+ T(J, e, ge), _(e, o), _(o, i), _(o, n), _(o, l), W && W.m(l, null), _(l, r), _(l, a), _(a, s), _(s, d), A && A.m(d, null), _(d, c), _(d, f), ~g && Q[g].m(f, null), _(s, m), te && te.m(s, null), t[28](s), p = jt(
23166
23166
  s,
23167
23167
  /*header_elementresize_handler*/
23168
23168
  t[29].bind(s)
23169
- ), _(a, z), _(a, q), _(q, L), O && O.m(L, null), t[30](L), _(a, x), _(a, M), X && X.m(M, null), j = Et(
23169
+ ), _(a, z), _(a, q), _(q, L), O && O.m(L, null), t[30](L), _(a, x), _(a, M), X && X.m(M, null), j = jt(
23170
23170
  M,
23171
23171
  /*div4_elementresize_handler*/
23172
23172
  t[31].bind(M)
@@ -25018,7 +25018,7 @@ function J3(t) {
25018
25018
  ));
25019
25019
  },
25020
25020
  m(L, y) {
25021
- T(L, e, y), _(e, o), p && p.m(o, null), t[34](o), _(e, i), _(e, n), _(n, l), _(l, r), _(r, a), q && q.m(a, null), t[35](a), c = Et(
25021
+ T(L, e, y), _(e, o), p && p.m(o, null), t[34](o), _(e, i), _(e, n), _(n, l), _(l, r), _(r, a), q && q.m(a, null), t[35](a), c = jt(
25022
25022
  l,
25023
25023
  /*section_elementresize_handler*/
25024
25024
  t[36].bind(l)
@@ -25701,7 +25701,7 @@ function lf(t) {
25701
25701
  `), u(e, "data-testid", "root"), u(e, "class", "container svelte-zb2hbz");
25702
25702
  },
25703
25703
  m(M, j) {
25704
- T(M, e, j), _(e, o), _(o, i), _(o, r), _(o, a), _(o, s), _(o, d), _(d, f), _(e, g), L && L.m(e, null), _(e, v), _(e, h), x && x.m(h, null), t[27](h), m = Et(
25704
+ T(M, e, j), _(e, o), _(o, i), _(o, r), _(o, a), _(o, s), _(o, d), _(d, f), _(e, g), L && L.m(e, null), _(e, v), _(e, h), x && x.m(h, null), t[27](h), m = jt(
25705
25705
  h,
25706
25706
  /*div1_elementresize_handler*/
25707
25707
  t[28].bind(h)
@@ -32194,7 +32194,7 @@ function _4(t) {
32194
32194
  e = C("div"), o = C("img"), n = R(), l = C("goa-text"), r = ne(
32195
32195
  /*heading*/
32196
32196
  t[1]
32197
- ), u(o, "alt", "GoA Logo"), u(o, "class", "logo svelte-i9l4k4"), xt(o.src, i = S1) || u(o, "src", i), b(l, "mt", "0"), b(l, "mb", "0"), b(l, "class", "heading svelte-i9l4k4"), u(e, "class", "header svelte-i9l4k4");
32197
+ ), u(o, "alt", "GoA Logo"), u(o, "class", "logo svelte-i9l4k4"), Et(o.src, i = S1) || u(o, "src", i), b(l, "mt", "0"), b(l, "mb", "0"), b(l, "class", "heading svelte-i9l4k4"), u(e, "class", "header svelte-i9l4k4");
32198
32198
  },
32199
32199
  m(a, s) {
32200
32200
  T(a, e, s), _(e, o), _(e, n), _(e, l), _(l, r);
@@ -32219,7 +32219,7 @@ function k4(t) {
32219
32219
  e = C("a"), o = C("img"), n = R(), l = C("goa-text"), r = ne(
32220
32220
  /*heading*/
32221
32221
  t[1]
32222
- ), u(o, "alt", "GoA Logo"), u(o, "class", "logo svelte-i9l4k4"), xt(o.src, i = S1) || u(o, "src", i), b(l, "mt", "0"), b(l, "mb", "0"), b(l, "class", "heading svelte-i9l4k4"), u(
32222
+ ), u(o, "alt", "GoA Logo"), u(o, "class", "logo svelte-i9l4k4"), Et(o.src, i = S1) || u(o, "src", i), b(l, "mt", "0"), b(l, "mb", "0"), b(l, "class", "heading svelte-i9l4k4"), u(
32223
32223
  e,
32224
32224
  "href",
32225
32225
  /*url*/
@@ -32680,9 +32680,9 @@ function z4(t, e, o) {
32680
32680
  if (!Ne) return [];
32681
32681
  let Ye = Ne.assignedElements({ flatten: !0 }), rt = [];
32682
32682
  return Ye.forEach((Xt) => {
32683
- Array.from(Xt.children).forEach((jt) => {
32684
- const Ht = jt;
32685
- y4(Ht) && rt.push(Ht);
32683
+ Array.from(Xt.children).forEach((Ht) => {
32684
+ const St = Ht;
32685
+ y4(St) && rt.push(St);
32686
32686
  });
32687
32687
  }), rt;
32688
32688
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/web-components",
3
- "version": "1.40.0-dev.11",
3
+ "version": "1.40.0-dev.12",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Government of Alberta - UI Web components",
6
6
  "bugs": {