@abgov/web-components 1.0.0-alpha.209 → 1.0.0-alpha.210
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web-components.es.js +58 -34
- package/web-components.umd.js +48 -48
package/package.json
CHANGED
package/web-components.es.js
CHANGED
|
@@ -9726,7 +9726,7 @@ function create_if_block_4$2(ctx) {
|
|
|
9726
9726
|
};
|
|
9727
9727
|
}
|
|
9728
9728
|
|
|
9729
|
-
// (
|
|
9729
|
+
// (140:4) {#if leadingicon}
|
|
9730
9730
|
function create_if_block_3$8(ctx) {
|
|
9731
9731
|
let goa_icon;
|
|
9732
9732
|
|
|
@@ -9751,7 +9751,7 @@ function create_if_block_3$8(ctx) {
|
|
|
9751
9751
|
};
|
|
9752
9752
|
}
|
|
9753
9753
|
|
|
9754
|
-
// (
|
|
9754
|
+
// (177:4) {#if trailingicon && !handlesTrailingIconClick}
|
|
9755
9755
|
function create_if_block_2$8(ctx) {
|
|
9756
9756
|
let goa_icon;
|
|
9757
9757
|
|
|
@@ -9777,7 +9777,7 @@ function create_if_block_2$8(ctx) {
|
|
|
9777
9777
|
};
|
|
9778
9778
|
}
|
|
9779
9779
|
|
|
9780
|
-
// (
|
|
9780
|
+
// (187:4) {#if trailingicon && handlesTrailingIconClick}
|
|
9781
9781
|
function create_if_block_1$9(ctx) {
|
|
9782
9782
|
let goa_icon_button;
|
|
9783
9783
|
let mounted;
|
|
@@ -9818,7 +9818,7 @@ function create_if_block_1$9(ctx) {
|
|
|
9818
9818
|
};
|
|
9819
9819
|
}
|
|
9820
9820
|
|
|
9821
|
-
// (
|
|
9821
|
+
// (200:4) {#if suffix}
|
|
9822
9822
|
function create_if_block$g(ctx) {
|
|
9823
9823
|
let span;
|
|
9824
9824
|
let t;
|
|
@@ -9950,7 +9950,7 @@ function create_fragment$v(ctx) {
|
|
|
9950
9950
|
if (if_block1) if_block1.m(div2, null);
|
|
9951
9951
|
append(div2, t2);
|
|
9952
9952
|
append(div2, input);
|
|
9953
|
-
/*input_binding*/ ctx[
|
|
9953
|
+
/*input_binding*/ ctx[39](input);
|
|
9954
9954
|
append(div2, t3);
|
|
9955
9955
|
if (if_block2) if_block2.m(div2, null);
|
|
9956
9956
|
append(div2, t4);
|
|
@@ -9959,12 +9959,14 @@ function create_fragment$v(ctx) {
|
|
|
9959
9959
|
if (if_block4) if_block4.m(div2, null);
|
|
9960
9960
|
append(div2, t6);
|
|
9961
9961
|
append(div2, div1);
|
|
9962
|
-
/*div3_binding*/ ctx[
|
|
9962
|
+
/*div3_binding*/ ctx[40](div3);
|
|
9963
9963
|
|
|
9964
9964
|
if (!mounted) {
|
|
9965
9965
|
dispose = [
|
|
9966
9966
|
listen(input, "keyup", /*onKeyUp*/ ctx[29]),
|
|
9967
|
-
listen(input, "change", /*onKeyUp*/ ctx[29])
|
|
9967
|
+
listen(input, "change", /*onKeyUp*/ ctx[29]),
|
|
9968
|
+
listen(input, "focus", /*onFocus*/ ctx[30]),
|
|
9969
|
+
listen(input, "blur", /*onBlur*/ ctx[31])
|
|
9968
9970
|
];
|
|
9969
9971
|
|
|
9970
9972
|
mounted = true;
|
|
@@ -10136,11 +10138,11 @@ function create_fragment$v(ctx) {
|
|
|
10136
10138
|
if (detaching) detach(div3);
|
|
10137
10139
|
if (if_block0) if_block0.d();
|
|
10138
10140
|
if (if_block1) if_block1.d();
|
|
10139
|
-
/*input_binding*/ ctx[
|
|
10141
|
+
/*input_binding*/ ctx[39](null);
|
|
10140
10142
|
if (if_block2) if_block2.d();
|
|
10141
10143
|
if (if_block3) if_block3.d();
|
|
10142
10144
|
if (if_block4) if_block4.d();
|
|
10143
|
-
/*div3_binding*/ ctx[
|
|
10145
|
+
/*div3_binding*/ ctx[40](null);
|
|
10144
10146
|
mounted = false;
|
|
10145
10147
|
run_all(dispose);
|
|
10146
10148
|
}
|
|
@@ -10233,6 +10235,26 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
10233
10235
|
$$invalidate(0, value = input.value);
|
|
10234
10236
|
}
|
|
10235
10237
|
|
|
10238
|
+
function onFocus(e) {
|
|
10239
|
+
const input = e.target;
|
|
10240
|
+
|
|
10241
|
+
input.dispatchEvent(new CustomEvent("_focus",
|
|
10242
|
+
{
|
|
10243
|
+
composed: true,
|
|
10244
|
+
detail: { name, value: input.value }
|
|
10245
|
+
}));
|
|
10246
|
+
}
|
|
10247
|
+
|
|
10248
|
+
function onBlur(e) {
|
|
10249
|
+
const input = e.target;
|
|
10250
|
+
|
|
10251
|
+
input.dispatchEvent(new CustomEvent("_blur",
|
|
10252
|
+
{
|
|
10253
|
+
composed: true,
|
|
10254
|
+
detail: { name, value: input.value }
|
|
10255
|
+
}));
|
|
10256
|
+
}
|
|
10257
|
+
|
|
10236
10258
|
onMount(() => {
|
|
10237
10259
|
validateType(type);
|
|
10238
10260
|
validateAutoCapitalize(autocapitalize);
|
|
@@ -10277,11 +10299,11 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
10277
10299
|
if ('leadingicon' in $$props) $$invalidate(5, leadingicon = $$props.leadingicon);
|
|
10278
10300
|
if ('trailingicon' in $$props) $$invalidate(6, trailingicon = $$props.trailingicon);
|
|
10279
10301
|
if ('variant' in $$props) $$invalidate(7, variant = $$props.variant);
|
|
10280
|
-
if ('disabled' in $$props) $$invalidate(
|
|
10281
|
-
if ('handletrailingiconclick' in $$props) $$invalidate(
|
|
10282
|
-
if ('focused' in $$props) $$invalidate(
|
|
10283
|
-
if ('readonly' in $$props) $$invalidate(
|
|
10284
|
-
if ('error' in $$props) $$invalidate(
|
|
10302
|
+
if ('disabled' in $$props) $$invalidate(32, disabled = $$props.disabled);
|
|
10303
|
+
if ('handletrailingiconclick' in $$props) $$invalidate(33, handletrailingiconclick = $$props.handletrailingiconclick);
|
|
10304
|
+
if ('focused' in $$props) $$invalidate(34, focused = $$props.focused);
|
|
10305
|
+
if ('readonly' in $$props) $$invalidate(35, readonly = $$props.readonly);
|
|
10306
|
+
if ('error' in $$props) $$invalidate(36, error = $$props.error);
|
|
10285
10307
|
if ('testid' in $$props) $$invalidate(8, testid = $$props.testid);
|
|
10286
10308
|
if ('width' in $$props) $$invalidate(9, width = $$props.width);
|
|
10287
10309
|
if ('arialabel' in $$props) $$invalidate(10, arialabel = $$props.arialabel);
|
|
@@ -10290,7 +10312,7 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
10290
10312
|
if ('step' in $$props) $$invalidate(13, step = $$props.step);
|
|
10291
10313
|
if ('prefix' in $$props) $$invalidate(14, prefix = $$props.prefix);
|
|
10292
10314
|
if ('suffix' in $$props) $$invalidate(15, suffix = $$props.suffix);
|
|
10293
|
-
if ('debounce' in $$props) $$invalidate(
|
|
10315
|
+
if ('debounce' in $$props) $$invalidate(37, debounce = $$props.debounce);
|
|
10294
10316
|
if ('maxlength' in $$props) $$invalidate(16, maxlength = $$props.maxlength);
|
|
10295
10317
|
if ('mt' in $$props) $$invalidate(17, mt = $$props.mt);
|
|
10296
10318
|
if ('mr' in $$props) $$invalidate(18, mr = $$props.mr);
|
|
@@ -10299,27 +10321,27 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
10299
10321
|
};
|
|
10300
10322
|
|
|
10301
10323
|
$$self.$$.update = () => {
|
|
10302
|
-
if ($$self.$$.dirty[1] & /*handletrailingiconclick*/
|
|
10324
|
+
if ($$self.$$.dirty[1] & /*handletrailingiconclick*/ 4) {
|
|
10303
10325
|
$$invalidate(28, handlesTrailingIconClick = toBoolean(handletrailingiconclick));
|
|
10304
10326
|
}
|
|
10305
10327
|
|
|
10306
|
-
if ($$self.$$.dirty[1] & /*focused*/
|
|
10307
|
-
$$invalidate(
|
|
10328
|
+
if ($$self.$$.dirty[1] & /*focused*/ 8) {
|
|
10329
|
+
$$invalidate(38, isFocused = toBoolean(focused));
|
|
10308
10330
|
}
|
|
10309
10331
|
|
|
10310
|
-
if ($$self.$$.dirty[1] & /*readonly*/
|
|
10332
|
+
if ($$self.$$.dirty[1] & /*readonly*/ 16) {
|
|
10311
10333
|
$$invalidate(25, isReadonly = toBoolean(readonly));
|
|
10312
10334
|
}
|
|
10313
10335
|
|
|
10314
|
-
if ($$self.$$.dirty[1] & /*error*/
|
|
10336
|
+
if ($$self.$$.dirty[1] & /*error*/ 32) {
|
|
10315
10337
|
$$invalidate(27, isError = toBoolean(error));
|
|
10316
10338
|
}
|
|
10317
10339
|
|
|
10318
|
-
if ($$self.$$.dirty[
|
|
10340
|
+
if ($$self.$$.dirty[1] & /*disabled*/ 2) {
|
|
10319
10341
|
$$invalidate(26, isDisabled = toBoolean(disabled));
|
|
10320
10342
|
}
|
|
10321
10343
|
|
|
10322
|
-
if ($$self.$$.dirty[0] & /*inputEl*/ 2097152 | $$self.$$.dirty[1] & /*isFocused*/
|
|
10344
|
+
if ($$self.$$.dirty[0] & /*inputEl*/ 2097152 | $$self.$$.dirty[1] & /*isFocused*/ 128) {
|
|
10323
10345
|
if (isFocused && inputEl) {
|
|
10324
10346
|
setTimeout(() => inputEl.focus(), 1);
|
|
10325
10347
|
}
|
|
@@ -10365,6 +10387,8 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
10365
10387
|
isError,
|
|
10366
10388
|
handlesTrailingIconClick,
|
|
10367
10389
|
onKeyUp,
|
|
10390
|
+
onFocus,
|
|
10391
|
+
onBlur,
|
|
10368
10392
|
disabled,
|
|
10369
10393
|
handletrailingiconclick,
|
|
10370
10394
|
focused,
|
|
@@ -10406,11 +10430,11 @@ class Input extends SvelteElement {
|
|
|
10406
10430
|
leadingicon: 5,
|
|
10407
10431
|
trailingicon: 6,
|
|
10408
10432
|
variant: 7,
|
|
10409
|
-
disabled:
|
|
10410
|
-
handletrailingiconclick:
|
|
10411
|
-
focused:
|
|
10412
|
-
readonly:
|
|
10413
|
-
error:
|
|
10433
|
+
disabled: 32,
|
|
10434
|
+
handletrailingiconclick: 33,
|
|
10435
|
+
focused: 34,
|
|
10436
|
+
readonly: 35,
|
|
10437
|
+
error: 36,
|
|
10414
10438
|
testid: 8,
|
|
10415
10439
|
width: 9,
|
|
10416
10440
|
arialabel: 10,
|
|
@@ -10419,7 +10443,7 @@ class Input extends SvelteElement {
|
|
|
10419
10443
|
step: 13,
|
|
10420
10444
|
prefix: 14,
|
|
10421
10445
|
suffix: 15,
|
|
10422
|
-
debounce:
|
|
10446
|
+
debounce: 37,
|
|
10423
10447
|
maxlength: 16,
|
|
10424
10448
|
mt: 17,
|
|
10425
10449
|
mr: 18,
|
|
@@ -10547,7 +10571,7 @@ class Input extends SvelteElement {
|
|
|
10547
10571
|
}
|
|
10548
10572
|
|
|
10549
10573
|
get disabled() {
|
|
10550
|
-
return this.$$.ctx[
|
|
10574
|
+
return this.$$.ctx[32];
|
|
10551
10575
|
}
|
|
10552
10576
|
|
|
10553
10577
|
set disabled(disabled) {
|
|
@@ -10556,7 +10580,7 @@ class Input extends SvelteElement {
|
|
|
10556
10580
|
}
|
|
10557
10581
|
|
|
10558
10582
|
get handletrailingiconclick() {
|
|
10559
|
-
return this.$$.ctx[
|
|
10583
|
+
return this.$$.ctx[33];
|
|
10560
10584
|
}
|
|
10561
10585
|
|
|
10562
10586
|
set handletrailingiconclick(handletrailingiconclick) {
|
|
@@ -10565,7 +10589,7 @@ class Input extends SvelteElement {
|
|
|
10565
10589
|
}
|
|
10566
10590
|
|
|
10567
10591
|
get focused() {
|
|
10568
|
-
return this.$$.ctx[
|
|
10592
|
+
return this.$$.ctx[34];
|
|
10569
10593
|
}
|
|
10570
10594
|
|
|
10571
10595
|
set focused(focused) {
|
|
@@ -10574,7 +10598,7 @@ class Input extends SvelteElement {
|
|
|
10574
10598
|
}
|
|
10575
10599
|
|
|
10576
10600
|
get readonly() {
|
|
10577
|
-
return this.$$.ctx[
|
|
10601
|
+
return this.$$.ctx[35];
|
|
10578
10602
|
}
|
|
10579
10603
|
|
|
10580
10604
|
set readonly(readonly) {
|
|
@@ -10583,7 +10607,7 @@ class Input extends SvelteElement {
|
|
|
10583
10607
|
}
|
|
10584
10608
|
|
|
10585
10609
|
get error() {
|
|
10586
|
-
return this.$$.ctx[
|
|
10610
|
+
return this.$$.ctx[36];
|
|
10587
10611
|
}
|
|
10588
10612
|
|
|
10589
10613
|
set error(error) {
|
|
@@ -10664,7 +10688,7 @@ class Input extends SvelteElement {
|
|
|
10664
10688
|
}
|
|
10665
10689
|
|
|
10666
10690
|
get debounce() {
|
|
10667
|
-
return this.$$.ctx[
|
|
10691
|
+
return this.$$.ctx[37];
|
|
10668
10692
|
}
|
|
10669
10693
|
|
|
10670
10694
|
set debounce(debounce) {
|