@abgov/react-components 4.0.0-alpha.53 → 4.0.0-alpha.54
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/lib/input/input.d.ts +18 -15
- package/package.json +1 -1
- package/react-components.esm.js +245 -218
- package/react-components.umd.js +245 -218
package/react-components.umd.js
CHANGED
|
@@ -1797,7 +1797,7 @@
|
|
|
1797
1797
|
|
|
1798
1798
|
function create_else_block$2(ctx) {
|
|
1799
1799
|
let t0;
|
|
1800
|
-
let
|
|
1800
|
+
let slot;
|
|
1801
1801
|
let t1;
|
|
1802
1802
|
let if_block1_anchor;
|
|
1803
1803
|
let if_block0 =
|
|
@@ -1810,18 +1810,17 @@
|
|
|
1810
1810
|
c() {
|
|
1811
1811
|
if (if_block0) if_block0.c();
|
|
1812
1812
|
t0 = space();
|
|
1813
|
-
|
|
1814
|
-
div.innerHTML = `<slot></slot>`;
|
|
1813
|
+
slot = element("slot");
|
|
1815
1814
|
t1 = space();
|
|
1816
1815
|
if (if_block1) if_block1.c();
|
|
1817
1816
|
if_block1_anchor = empty();
|
|
1818
|
-
attr(
|
|
1817
|
+
attr(slot, "class", "text");
|
|
1819
1818
|
},
|
|
1820
1819
|
|
|
1821
1820
|
m(target, anchor) {
|
|
1822
1821
|
if (if_block0) if_block0.m(target, anchor);
|
|
1823
1822
|
insert(target, t0, anchor);
|
|
1824
|
-
insert(target,
|
|
1823
|
+
insert(target, slot, anchor);
|
|
1825
1824
|
insert(target, t1, anchor);
|
|
1826
1825
|
if (if_block1) if_block1.m(target, anchor);
|
|
1827
1826
|
insert(target, if_block1_anchor, anchor);
|
|
@@ -1862,7 +1861,7 @@
|
|
|
1862
1861
|
d(detaching) {
|
|
1863
1862
|
if (if_block0) if_block0.d(detaching);
|
|
1864
1863
|
if (detaching) detach(t0);
|
|
1865
|
-
if (detaching) detach(
|
|
1864
|
+
if (detaching) detach(slot);
|
|
1866
1865
|
if (detaching) detach(t1);
|
|
1867
1866
|
if (if_block1) if_block1.d(detaching);
|
|
1868
1867
|
if (detaching) detach(if_block1_anchor);
|
|
@@ -1873,23 +1872,22 @@
|
|
|
1873
1872
|
|
|
1874
1873
|
|
|
1875
1874
|
function create_if_block$h(ctx) {
|
|
1876
|
-
let
|
|
1875
|
+
let slot;
|
|
1877
1876
|
let t;
|
|
1878
1877
|
let goa_icon;
|
|
1879
1878
|
return {
|
|
1880
1879
|
c() {
|
|
1881
|
-
|
|
1882
|
-
div.innerHTML = `<slot></slot>`;
|
|
1880
|
+
slot = element("slot");
|
|
1883
1881
|
t = space();
|
|
1884
1882
|
goa_icon = element("goa-icon");
|
|
1885
|
-
attr(
|
|
1883
|
+
attr(slot, "class", "text");
|
|
1886
1884
|
set_custom_element_data(goa_icon, "id", "trailing-icon");
|
|
1887
1885
|
set_custom_element_data(goa_icon, "type", "arrow-forward");
|
|
1888
1886
|
set_custom_element_data(goa_icon, "inverted", "true");
|
|
1889
1887
|
},
|
|
1890
1888
|
|
|
1891
1889
|
m(target, anchor) {
|
|
1892
|
-
insert(target,
|
|
1890
|
+
insert(target, slot, anchor);
|
|
1893
1891
|
insert(target, t, anchor);
|
|
1894
1892
|
insert(target, goa_icon, anchor);
|
|
1895
1893
|
},
|
|
@@ -1897,13 +1895,13 @@
|
|
|
1897
1895
|
p: noop,
|
|
1898
1896
|
|
|
1899
1897
|
d(detaching) {
|
|
1900
|
-
if (detaching) detach(
|
|
1898
|
+
if (detaching) detach(slot);
|
|
1901
1899
|
if (detaching) detach(t);
|
|
1902
1900
|
if (detaching) detach(goa_icon);
|
|
1903
1901
|
}
|
|
1904
1902
|
|
|
1905
1903
|
};
|
|
1906
|
-
} // (
|
|
1904
|
+
} // (57:4) {#if leadingicon}
|
|
1907
1905
|
|
|
1908
1906
|
|
|
1909
1907
|
function create_if_block_2$7(ctx) {
|
|
@@ -1947,7 +1945,7 @@
|
|
|
1947
1945
|
}
|
|
1948
1946
|
|
|
1949
1947
|
};
|
|
1950
|
-
} // (
|
|
1948
|
+
} // (61:4) {#if trailingicon}
|
|
1951
1949
|
|
|
1952
1950
|
|
|
1953
1951
|
function create_if_block_1$a(ctx) {
|
|
@@ -2212,7 +2210,7 @@
|
|
|
2212
2210
|
constructor(options) {
|
|
2213
2211
|
super();
|
|
2214
2212
|
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}@media(max-width: 480px){:host{width:100%}button{width:100%}}button{display:inline-flex;box-sizing:border-box;border-radius:0.25rem;border:2px solid var(--goa-color-interactive);box-sizing:border-box;cursor:pointer;font-family:var(--font-family);font-size:var(--fs-lg);font-weight:400;height:var(--button-height);letter-spacing:0.5px;line-height:100%;padding:0 0.75rem;gap:0.5rem;align-items:center;justify-content:center;transition:transform 0.1s ease-in-out, background-color 0.2s ease-in-out,
|
|
2215
|
-
border-color 0.2s ease-in-out}.text{padding-bottom:var(--font-valign-fix)}button:disabled{pointer-events:none;opacity:0.5}button.compact{height:var(--button-height-compact);font-size:var(--fs-base)}button.start{height:var(--button-height-tall);font-weight:var(--fw-bold)}button.start,button.submit,button.primary{border:2px solid var(--goa-color-interactive);background:var(--goa-color-interactive);color:var(--goa-color-text-light)}button.start:hover,button.submit:hover,button.primary:hover{border-color:var(--goa-color-interactive--hover);background:var(--goa-color-interactive--hover)}button.start:focus,button.start:active,button.submit:focus,button.submit:active,button.primary:focus,button.primary:active{box-shadow:0 0 0 3px var(--goa-color-interactive--focus);border-color:var(--goa-color-interactive--active);background:var(--goa-color-interactive--active);outline:none}button.secondary{border:2px solid var(--goa-color-interactive);background:var(--color-white);color:var(--goa-color-interactive)}button.secondary:hover{border-color:var(--goa-color-interactive--hover);color:var(--goa-color-interactive--hover);background:var(--color-gray-100)}button.secondary:focus,button.secondary:active{border-color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);background:var(--color-gray-100);outline:none}button.tertiary{border:1px solid transparent;background:transparent;color:var(--goa-color-interactive);text-decoration:underline}button.tertiary:hover{border-color:var(--color-gray-100);color:var(--goa-color-interactive--hover);background:var(--color-gray-100)}button.tertiary:focus,button.tertiary:active{border-color:var(--color-gray-100);background:var(--color-gray-100);color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);outline:none}.submit.destructive,.primary.destructive{color:var(--color-white);background:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency)}.submit.destructive:hover,.primary.destructive:hover{background:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark)}.submit.destructive:focus,.primary.destructive:focus,.primary.destructive:active{background:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark)}.secondary.destructive{color:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency);background:var(--color-white)}.secondary.destructive:hover{border-color:var(--goa-color-status-emergency-dark);color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.secondary.destructive:focus,.secondary.destructive:active{color:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.tertiary.destructive{color:var(--goa-color-status-emergency);border-color:var(--color-gray-200);background:var(--color-white)}.tertiary.destructive:hover{border-color:var(--goa-color-status-emergency-dark);color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.tertiary.destructive:focus,.tertiary.destructive:active{color:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark);background:var(--color-white)}</style>`;
|
|
2213
|
+
border-color 0.2s ease-in-out}.text{padding-bottom:var(--font-valign-fix)}button:disabled{pointer-events:none;opacity:0.5}button.compact{height:var(--button-height-compact);font-size:var(--fs-base)}button.start{height:var(--button-height-tall);font-weight:var(--fw-bold)}button.start,button.submit,button.primary{border:2px solid var(--goa-color-interactive);background-color:var(--goa-color-interactive);color:var(--goa-color-text-light)}button.start:hover,button.submit:hover,button.primary:hover{border-color:var(--goa-color-interactive--hover);background-color:var(--goa-color-interactive--hover)}button.start:focus,button.start:active,button.submit:focus,button.submit:active,button.primary:focus,button.primary:active{box-shadow:0 0 0 3px var(--goa-color-interactive--focus);border-color:var(--goa-color-interactive--active);background-color:var(--goa-color-interactive--active);outline:none}button.secondary{border:2px solid var(--goa-color-interactive);background-color:var(--color-white);color:var(--goa-color-interactive)}button.secondary:hover{border-color:var(--goa-color-interactive--hover);color:var(--goa-color-interactive--hover);background-color:var(--color-gray-100)}button.secondary:focus,button.secondary:active{border-color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);background-color:var(--color-gray-100);outline:none}button.tertiary{border:1px solid transparent;background-color:transparent;color:var(--goa-color-interactive);text-decoration:underline}button.tertiary:hover{border-color:var(--color-gray-100);color:var(--goa-color-interactive--hover);background-color:var(--color-gray-100)}button.tertiary:focus,button.tertiary:active{border-color:var(--color-gray-100);background-color:var(--color-gray-100);color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);outline:none}.submit.destructive,.primary.destructive{color:var(--color-white);background-color:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency)}.submit.destructive:hover,.primary.destructive:hover{background-color:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark)}.submit.destructive:focus,.primary.destructive:focus,.primary.destructive:active{background-color:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark)}.secondary.destructive{color:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency);background-color:var(--color-white)}.secondary.destructive:hover{border-color:var(--goa-color-status-emergency-dark);color:var(--goa-color-status-emergency-dark);background-color:var(--color-white)}.secondary.destructive:focus,.secondary.destructive:active{color:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark);background-color:var(--color-white)}.tertiary.destructive{color:var(--goa-color-status-emergency);border-color:var(--color-gray-200);background-color:var(--color-white)}.tertiary.destructive:hover{border-color:var(--goa-color-status-emergency-dark);color:var(--goa-color-status-emergency-dark);background-color:var(--color-white)}.tertiary.destructive:focus,.tertiary.destructive:active{color:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark);background-color:var(--color-white)}</style>`;
|
|
2216
2214
|
init(this, {
|
|
2217
2215
|
target: this.shadowRoot,
|
|
2218
2216
|
props: attribute_to_object(this.attributes),
|
|
@@ -8301,7 +8299,7 @@
|
|
|
8301
8299
|
div = element("div");
|
|
8302
8300
|
t = text(
|
|
8303
8301
|
/*prefix*/
|
|
8304
|
-
ctx[
|
|
8302
|
+
ctx[14]);
|
|
8305
8303
|
attr(div, "class", "prefix");
|
|
8306
8304
|
},
|
|
8307
8305
|
|
|
@@ -8311,11 +8309,11 @@
|
|
|
8311
8309
|
},
|
|
8312
8310
|
|
|
8313
8311
|
p(ctx, dirty) {
|
|
8314
|
-
if (dirty &
|
|
8312
|
+
if (dirty[0] &
|
|
8315
8313
|
/*prefix*/
|
|
8316
|
-
|
|
8314
|
+
16384) set_data(t,
|
|
8317
8315
|
/*prefix*/
|
|
8318
|
-
ctx[
|
|
8316
|
+
ctx[14]);
|
|
8319
8317
|
},
|
|
8320
8318
|
|
|
8321
8319
|
d(detaching) {
|
|
@@ -8323,7 +8321,7 @@
|
|
|
8323
8321
|
}
|
|
8324
8322
|
|
|
8325
8323
|
};
|
|
8326
|
-
} // (
|
|
8324
|
+
} // (82:4) {#if leadingicon}
|
|
8327
8325
|
|
|
8328
8326
|
|
|
8329
8327
|
function create_if_block_6(ctx) {
|
|
@@ -8335,7 +8333,7 @@
|
|
|
8335
8333
|
set_custom_element_data(goa_icon, "data-testid", "leading-icon");
|
|
8336
8334
|
set_custom_element_data(goa_icon, "type",
|
|
8337
8335
|
/*leadingicon*/
|
|
8338
|
-
ctx[
|
|
8336
|
+
ctx[5]);
|
|
8339
8337
|
},
|
|
8340
8338
|
|
|
8341
8339
|
m(target, anchor) {
|
|
@@ -8343,12 +8341,12 @@
|
|
|
8343
8341
|
},
|
|
8344
8342
|
|
|
8345
8343
|
p(ctx, dirty) {
|
|
8346
|
-
if (dirty &
|
|
8344
|
+
if (dirty[0] &
|
|
8347
8345
|
/*leadingicon*/
|
|
8348
|
-
|
|
8346
|
+
32) {
|
|
8349
8347
|
set_custom_element_data(goa_icon, "type",
|
|
8350
8348
|
/*leadingicon*/
|
|
8351
|
-
ctx[
|
|
8349
|
+
ctx[5]);
|
|
8352
8350
|
}
|
|
8353
8351
|
},
|
|
8354
8352
|
|
|
@@ -8357,7 +8355,7 @@
|
|
|
8357
8355
|
}
|
|
8358
8356
|
|
|
8359
8357
|
};
|
|
8360
|
-
} // (
|
|
8358
|
+
} // (112:4) {#if trailingicon && !handlesTrailingIconClick}
|
|
8361
8359
|
|
|
8362
8360
|
|
|
8363
8361
|
function create_if_block_5(ctx) {
|
|
@@ -8370,7 +8368,7 @@
|
|
|
8370
8368
|
set_custom_element_data(goa_icon, "size", "medium");
|
|
8371
8369
|
set_custom_element_data(goa_icon, "type",
|
|
8372
8370
|
/*trailingicon*/
|
|
8373
|
-
ctx[
|
|
8371
|
+
ctx[6]);
|
|
8374
8372
|
},
|
|
8375
8373
|
|
|
8376
8374
|
m(target, anchor) {
|
|
@@ -8378,12 +8376,12 @@
|
|
|
8378
8376
|
},
|
|
8379
8377
|
|
|
8380
8378
|
p(ctx, dirty) {
|
|
8381
|
-
if (dirty &
|
|
8379
|
+
if (dirty[0] &
|
|
8382
8380
|
/*trailingicon*/
|
|
8383
|
-
|
|
8381
|
+
64) {
|
|
8384
8382
|
set_custom_element_data(goa_icon, "type",
|
|
8385
8383
|
/*trailingicon*/
|
|
8386
|
-
ctx[
|
|
8384
|
+
ctx[6]);
|
|
8387
8385
|
}
|
|
8388
8386
|
},
|
|
8389
8387
|
|
|
@@ -8392,7 +8390,7 @@
|
|
|
8392
8390
|
}
|
|
8393
8391
|
|
|
8394
8392
|
};
|
|
8395
|
-
} // (
|
|
8393
|
+
} // (122:4) {#if trailingicon && handlesTrailingIconClick}
|
|
8396
8394
|
|
|
8397
8395
|
|
|
8398
8396
|
function create_if_block_4(ctx) {
|
|
@@ -8404,12 +8402,12 @@
|
|
|
8404
8402
|
goa_icon_button = element("goa-icon-button");
|
|
8405
8403
|
set_custom_element_data(goa_icon_button, "disabled",
|
|
8406
8404
|
/*isDisabled*/
|
|
8407
|
-
ctx[
|
|
8405
|
+
ctx[19]);
|
|
8408
8406
|
set_custom_element_data(goa_icon_button, "variant", "nocolor");
|
|
8409
8407
|
set_custom_element_data(goa_icon_button, "size", "medium");
|
|
8410
8408
|
set_custom_element_data(goa_icon_button, "type",
|
|
8411
8409
|
/*trailingicon*/
|
|
8412
|
-
ctx[
|
|
8410
|
+
ctx[6]);
|
|
8413
8411
|
set_custom_element_data(goa_icon_button, "data-testid", "trailing-icon-button");
|
|
8414
8412
|
},
|
|
8415
8413
|
|
|
@@ -8423,20 +8421,20 @@
|
|
|
8423
8421
|
},
|
|
8424
8422
|
|
|
8425
8423
|
p(ctx, dirty) {
|
|
8426
|
-
if (dirty &
|
|
8424
|
+
if (dirty[0] &
|
|
8427
8425
|
/*isDisabled*/
|
|
8428
|
-
|
|
8426
|
+
524288) {
|
|
8429
8427
|
set_custom_element_data(goa_icon_button, "disabled",
|
|
8430
8428
|
/*isDisabled*/
|
|
8431
|
-
ctx[
|
|
8429
|
+
ctx[19]);
|
|
8432
8430
|
}
|
|
8433
8431
|
|
|
8434
|
-
if (dirty &
|
|
8432
|
+
if (dirty[0] &
|
|
8435
8433
|
/*trailingicon*/
|
|
8436
|
-
|
|
8434
|
+
64) {
|
|
8437
8435
|
set_custom_element_data(goa_icon_button, "type",
|
|
8438
8436
|
/*trailingicon*/
|
|
8439
|
-
ctx[
|
|
8437
|
+
ctx[6]);
|
|
8440
8438
|
}
|
|
8441
8439
|
},
|
|
8442
8440
|
|
|
@@ -8447,7 +8445,7 @@
|
|
|
8447
8445
|
}
|
|
8448
8446
|
|
|
8449
8447
|
};
|
|
8450
|
-
} // (
|
|
8448
|
+
} // (133:4) {#if suffix}
|
|
8451
8449
|
|
|
8452
8450
|
|
|
8453
8451
|
function create_if_block_3$2(ctx) {
|
|
@@ -8458,7 +8456,7 @@
|
|
|
8458
8456
|
span = element("span");
|
|
8459
8457
|
t = text(
|
|
8460
8458
|
/*suffix*/
|
|
8461
|
-
ctx[
|
|
8459
|
+
ctx[15]);
|
|
8462
8460
|
attr(span, "class", "suffix");
|
|
8463
8461
|
},
|
|
8464
8462
|
|
|
@@ -8468,11 +8466,11 @@
|
|
|
8468
8466
|
},
|
|
8469
8467
|
|
|
8470
8468
|
p(ctx, dirty) {
|
|
8471
|
-
if (dirty &
|
|
8469
|
+
if (dirty[0] &
|
|
8472
8470
|
/*suffix*/
|
|
8473
|
-
|
|
8471
|
+
32768) set_data(t,
|
|
8474
8472
|
/*suffix*/
|
|
8475
|
-
ctx[
|
|
8473
|
+
ctx[15]);
|
|
8476
8474
|
},
|
|
8477
8475
|
|
|
8478
8476
|
d(detaching) {
|
|
@@ -8480,7 +8478,7 @@
|
|
|
8480
8478
|
}
|
|
8481
8479
|
|
|
8482
8480
|
};
|
|
8483
|
-
} // (
|
|
8481
|
+
} // (139:2) {#if showCounter}
|
|
8484
8482
|
|
|
8485
8483
|
|
|
8486
8484
|
function create_if_block$7(ctx) {
|
|
@@ -8489,7 +8487,7 @@
|
|
|
8489
8487
|
function select_block_type(ctx, dirty) {
|
|
8490
8488
|
if (
|
|
8491
8489
|
/*maxcharcount*/
|
|
8492
|
-
ctx[
|
|
8490
|
+
ctx[16] > 0) return create_if_block_1$5;
|
|
8493
8491
|
if (
|
|
8494
8492
|
/*value*/
|
|
8495
8493
|
ctx[0].length > 0) return create_if_block_2$4;
|
|
@@ -8531,7 +8529,7 @@
|
|
|
8531
8529
|
}
|
|
8532
8530
|
|
|
8533
8531
|
};
|
|
8534
|
-
} // (
|
|
8532
|
+
} // (144:31)
|
|
8535
8533
|
|
|
8536
8534
|
|
|
8537
8535
|
function create_if_block_2$4(ctx) {
|
|
@@ -8553,7 +8551,7 @@
|
|
|
8553
8551
|
},
|
|
8554
8552
|
|
|
8555
8553
|
p(ctx, dirty) {
|
|
8556
|
-
if (dirty &
|
|
8554
|
+
if (dirty[0] &
|
|
8557
8555
|
/*value*/
|
|
8558
8556
|
1 && t_value !== (t_value =
|
|
8559
8557
|
/*value*/
|
|
@@ -8565,7 +8563,7 @@
|
|
|
8565
8563
|
}
|
|
8566
8564
|
|
|
8567
8565
|
};
|
|
8568
|
-
} // (
|
|
8566
|
+
} // (140:4) {#if maxcharcount > 0}
|
|
8569
8567
|
|
|
8570
8568
|
|
|
8571
8569
|
function create_if_block_1$5(ctx) {
|
|
@@ -8576,7 +8574,7 @@
|
|
|
8576
8574
|
let t0;
|
|
8577
8575
|
let t1_value = `/${
|
|
8578
8576
|
/*maxcharcount*/
|
|
8579
|
-
ctx[
|
|
8577
|
+
ctx[16]}` + "";
|
|
8580
8578
|
let t1;
|
|
8581
8579
|
return {
|
|
8582
8580
|
c() {
|
|
@@ -8588,7 +8586,7 @@
|
|
|
8588
8586
|
/*value*/
|
|
8589
8587
|
ctx[0].length >
|
|
8590
8588
|
/*maxcharcount*/
|
|
8591
|
-
ctx[
|
|
8589
|
+
ctx[16]);
|
|
8592
8590
|
},
|
|
8593
8591
|
|
|
8594
8592
|
m(target, anchor) {
|
|
@@ -8598,25 +8596,25 @@
|
|
|
8598
8596
|
},
|
|
8599
8597
|
|
|
8600
8598
|
p(ctx, dirty) {
|
|
8601
|
-
if (dirty &
|
|
8599
|
+
if (dirty[0] &
|
|
8602
8600
|
/*value*/
|
|
8603
8601
|
1 && t0_value !== (t0_value =
|
|
8604
8602
|
/*value*/
|
|
8605
8603
|
ctx[0].length + "")) set_data(t0, t0_value);
|
|
8606
|
-
if (dirty &
|
|
8604
|
+
if (dirty[0] &
|
|
8607
8605
|
/*maxcharcount*/
|
|
8608
|
-
|
|
8606
|
+
65536 && t1_value !== (t1_value = `/${
|
|
8609
8607
|
/*maxcharcount*/
|
|
8610
|
-
ctx[
|
|
8608
|
+
ctx[16]}` + "")) set_data(t1, t1_value);
|
|
8611
8609
|
|
|
8612
|
-
if (dirty &
|
|
8610
|
+
if (dirty[0] &
|
|
8613
8611
|
/*value, maxcharcount*/
|
|
8614
|
-
|
|
8612
|
+
65537) {
|
|
8615
8613
|
toggle_class(div, "counter-error",
|
|
8616
8614
|
/*value*/
|
|
8617
8615
|
ctx[0].length >
|
|
8618
8616
|
/*maxcharcount*/
|
|
8619
|
-
ctx[
|
|
8617
|
+
ctx[16]);
|
|
8620
8618
|
}
|
|
8621
8619
|
},
|
|
8622
8620
|
|
|
@@ -8646,26 +8644,26 @@
|
|
|
8646
8644
|
let dispose;
|
|
8647
8645
|
let if_block0 =
|
|
8648
8646
|
/*prefix*/
|
|
8649
|
-
ctx[
|
|
8647
|
+
ctx[14] && create_if_block_7(ctx);
|
|
8650
8648
|
let if_block1 =
|
|
8651
8649
|
/*leadingicon*/
|
|
8652
|
-
ctx[
|
|
8650
|
+
ctx[5] && create_if_block_6(ctx);
|
|
8653
8651
|
let if_block2 =
|
|
8654
8652
|
/*trailingicon*/
|
|
8655
|
-
ctx[
|
|
8653
|
+
ctx[6] && !
|
|
8656
8654
|
/*handlesTrailingIconClick*/
|
|
8657
|
-
ctx[
|
|
8655
|
+
ctx[22] && create_if_block_5(ctx);
|
|
8658
8656
|
let if_block3 =
|
|
8659
8657
|
/*trailingicon*/
|
|
8660
|
-
ctx[
|
|
8658
|
+
ctx[6] &&
|
|
8661
8659
|
/*handlesTrailingIconClick*/
|
|
8662
|
-
ctx[
|
|
8660
|
+
ctx[22] && create_if_block_4(ctx);
|
|
8663
8661
|
let if_block4 =
|
|
8664
8662
|
/*suffix*/
|
|
8665
|
-
ctx[
|
|
8663
|
+
ctx[15] && create_if_block_3$2(ctx);
|
|
8666
8664
|
let if_block5 =
|
|
8667
8665
|
/*showCounter*/
|
|
8668
|
-
ctx[
|
|
8666
|
+
ctx[18] && create_if_block$7(ctx);
|
|
8669
8667
|
return {
|
|
8670
8668
|
c() {
|
|
8671
8669
|
div1 = element("div");
|
|
@@ -8686,19 +8684,22 @@
|
|
|
8686
8684
|
this.c = noop;
|
|
8687
8685
|
attr(input, "class", input_class_value = `input--${
|
|
8688
8686
|
/*variant*/
|
|
8689
|
-
ctx[
|
|
8687
|
+
ctx[7]}`);
|
|
8690
8688
|
attr(input, "style", input_style_value = `--search-icon-offset: ${
|
|
8691
8689
|
/*trailingicon*/
|
|
8692
|
-
ctx[
|
|
8690
|
+
ctx[6] ? "-0.5rem" : "0"}`);
|
|
8693
8691
|
input.readOnly =
|
|
8694
8692
|
/*isReadonly*/
|
|
8695
|
-
ctx[
|
|
8693
|
+
ctx[21];
|
|
8696
8694
|
input.disabled =
|
|
8697
8695
|
/*isDisabled*/
|
|
8698
|
-
ctx[
|
|
8696
|
+
ctx[19];
|
|
8699
8697
|
attr(input, "data-testid",
|
|
8700
8698
|
/*testid*/
|
|
8701
|
-
ctx[
|
|
8699
|
+
ctx[8]);
|
|
8700
|
+
attr(input, "autocapitalize",
|
|
8701
|
+
/*autocapitalize*/
|
|
8702
|
+
ctx[3]);
|
|
8702
8703
|
attr(input, "name",
|
|
8703
8704
|
/*name*/
|
|
8704
8705
|
ctx[2]);
|
|
@@ -8710,42 +8711,42 @@
|
|
|
8710
8711
|
ctx[0];
|
|
8711
8712
|
attr(input, "placeholder",
|
|
8712
8713
|
/*placeholder*/
|
|
8713
|
-
ctx[
|
|
8714
|
+
ctx[4]);
|
|
8714
8715
|
attr(input, "min",
|
|
8715
8716
|
/*min*/
|
|
8716
|
-
ctx[
|
|
8717
|
+
ctx[11]);
|
|
8717
8718
|
attr(input, "max",
|
|
8718
8719
|
/*max*/
|
|
8719
|
-
ctx[
|
|
8720
|
+
ctx[12]);
|
|
8720
8721
|
attr(input, "step",
|
|
8721
8722
|
/*step*/
|
|
8722
|
-
ctx[
|
|
8723
|
+
ctx[13]);
|
|
8723
8724
|
attr(input, "role", "textbox");
|
|
8724
8725
|
attr(input, "aria-label", input_aria_label_value =
|
|
8725
8726
|
/*arialabel*/
|
|
8726
|
-
ctx[
|
|
8727
|
+
ctx[10] ||
|
|
8727
8728
|
/*name*/
|
|
8728
8729
|
ctx[2]);
|
|
8729
8730
|
attr(div0, "class", div0_class_value = `
|
|
8730
8731
|
goa-input
|
|
8731
8732
|
${
|
|
8732
8733
|
/*isDisabled*/
|
|
8733
|
-
ctx[
|
|
8734
|
+
ctx[19] ? "goa-input--disabled" : ""}
|
|
8734
8735
|
variant--${
|
|
8735
8736
|
/*variant*/
|
|
8736
|
-
ctx[
|
|
8737
|
+
ctx[7]}
|
|
8737
8738
|
type--${
|
|
8738
8739
|
/*type*/
|
|
8739
8740
|
ctx[1]}
|
|
8740
8741
|
`);
|
|
8741
8742
|
toggle_class(div0, "error",
|
|
8742
8743
|
/*isError*/
|
|
8743
|
-
ctx[
|
|
8744
|
+
ctx[20]);
|
|
8744
8745
|
attr(div1, "class", "container");
|
|
8745
8746
|
attr(div1, "style", div1_style_value = `
|
|
8746
8747
|
--width: ${
|
|
8747
8748
|
/*width*/
|
|
8748
|
-
ctx[
|
|
8749
|
+
ctx[9]};
|
|
8749
8750
|
`);
|
|
8750
8751
|
},
|
|
8751
8752
|
|
|
@@ -8759,7 +8760,7 @@
|
|
|
8759
8760
|
append(div0, input);
|
|
8760
8761
|
/*input_binding*/
|
|
8761
8762
|
|
|
8762
|
-
ctx[
|
|
8763
|
+
ctx[31](input);
|
|
8763
8764
|
append(div0, t2);
|
|
8764
8765
|
if (if_block2) if_block2.m(div0, null);
|
|
8765
8766
|
append(div0, t3);
|
|
@@ -8772,17 +8773,17 @@
|
|
|
8772
8773
|
if (!mounted) {
|
|
8773
8774
|
dispose = [listen(input, "keyup",
|
|
8774
8775
|
/*onKeyUp*/
|
|
8775
|
-
ctx[
|
|
8776
|
+
ctx[23]), listen(input, "change",
|
|
8776
8777
|
/*onKeyUp*/
|
|
8777
|
-
ctx[
|
|
8778
|
+
ctx[23])];
|
|
8778
8779
|
mounted = true;
|
|
8779
8780
|
}
|
|
8780
8781
|
},
|
|
8781
8782
|
|
|
8782
|
-
p(ctx,
|
|
8783
|
+
p(ctx, dirty) {
|
|
8783
8784
|
if (
|
|
8784
8785
|
/*prefix*/
|
|
8785
|
-
ctx[
|
|
8786
|
+
ctx[14]) {
|
|
8786
8787
|
if (if_block0) {
|
|
8787
8788
|
if_block0.p(ctx, dirty);
|
|
8788
8789
|
} else {
|
|
@@ -8797,7 +8798,7 @@
|
|
|
8797
8798
|
|
|
8798
8799
|
if (
|
|
8799
8800
|
/*leadingicon*/
|
|
8800
|
-
ctx[
|
|
8801
|
+
ctx[5]) {
|
|
8801
8802
|
if (if_block1) {
|
|
8802
8803
|
if_block1.p(ctx, dirty);
|
|
8803
8804
|
} else {
|
|
@@ -8810,47 +8811,55 @@
|
|
|
8810
8811
|
if_block1 = null;
|
|
8811
8812
|
}
|
|
8812
8813
|
|
|
8813
|
-
if (dirty &
|
|
8814
|
+
if (dirty[0] &
|
|
8814
8815
|
/*variant*/
|
|
8815
|
-
|
|
8816
|
+
128 && input_class_value !== (input_class_value = `input--${
|
|
8816
8817
|
/*variant*/
|
|
8817
|
-
ctx[
|
|
8818
|
+
ctx[7]}`)) {
|
|
8818
8819
|
attr(input, "class", input_class_value);
|
|
8819
8820
|
}
|
|
8820
8821
|
|
|
8821
|
-
if (dirty &
|
|
8822
|
+
if (dirty[0] &
|
|
8822
8823
|
/*trailingicon*/
|
|
8823
|
-
|
|
8824
|
+
64 && input_style_value !== (input_style_value = `--search-icon-offset: ${
|
|
8824
8825
|
/*trailingicon*/
|
|
8825
|
-
ctx[
|
|
8826
|
+
ctx[6] ? "-0.5rem" : "0"}`)) {
|
|
8826
8827
|
attr(input, "style", input_style_value);
|
|
8827
8828
|
}
|
|
8828
8829
|
|
|
8829
|
-
if (dirty &
|
|
8830
|
+
if (dirty[0] &
|
|
8830
8831
|
/*isReadonly*/
|
|
8831
|
-
|
|
8832
|
+
2097152) {
|
|
8832
8833
|
input.readOnly =
|
|
8833
8834
|
/*isReadonly*/
|
|
8834
|
-
ctx[
|
|
8835
|
+
ctx[21];
|
|
8835
8836
|
}
|
|
8836
8837
|
|
|
8837
|
-
if (dirty &
|
|
8838
|
+
if (dirty[0] &
|
|
8838
8839
|
/*isDisabled*/
|
|
8839
|
-
|
|
8840
|
+
524288) {
|
|
8840
8841
|
input.disabled =
|
|
8841
8842
|
/*isDisabled*/
|
|
8842
|
-
ctx[
|
|
8843
|
+
ctx[19];
|
|
8843
8844
|
}
|
|
8844
8845
|
|
|
8845
|
-
if (dirty &
|
|
8846
|
+
if (dirty[0] &
|
|
8846
8847
|
/*testid*/
|
|
8847
|
-
|
|
8848
|
+
256) {
|
|
8848
8849
|
attr(input, "data-testid",
|
|
8849
8850
|
/*testid*/
|
|
8850
|
-
ctx[
|
|
8851
|
+
ctx[8]);
|
|
8851
8852
|
}
|
|
8852
8853
|
|
|
8853
|
-
if (dirty &
|
|
8854
|
+
if (dirty[0] &
|
|
8855
|
+
/*autocapitalize*/
|
|
8856
|
+
8) {
|
|
8857
|
+
attr(input, "autocapitalize",
|
|
8858
|
+
/*autocapitalize*/
|
|
8859
|
+
ctx[3]);
|
|
8860
|
+
}
|
|
8861
|
+
|
|
8862
|
+
if (dirty[0] &
|
|
8854
8863
|
/*name*/
|
|
8855
8864
|
4) {
|
|
8856
8865
|
attr(input, "name",
|
|
@@ -8858,7 +8867,7 @@
|
|
|
8858
8867
|
ctx[2]);
|
|
8859
8868
|
}
|
|
8860
8869
|
|
|
8861
|
-
if (dirty &
|
|
8870
|
+
if (dirty[0] &
|
|
8862
8871
|
/*type*/
|
|
8863
8872
|
2) {
|
|
8864
8873
|
attr(input, "type",
|
|
@@ -8866,7 +8875,7 @@
|
|
|
8866
8875
|
ctx[1]);
|
|
8867
8876
|
}
|
|
8868
8877
|
|
|
8869
|
-
if (dirty &
|
|
8878
|
+
if (dirty[0] &
|
|
8870
8879
|
/*value*/
|
|
8871
8880
|
1 && input.value !==
|
|
8872
8881
|
/*value*/
|
|
@@ -8876,43 +8885,43 @@
|
|
|
8876
8885
|
ctx[0];
|
|
8877
8886
|
}
|
|
8878
8887
|
|
|
8879
|
-
if (dirty &
|
|
8888
|
+
if (dirty[0] &
|
|
8880
8889
|
/*placeholder*/
|
|
8881
|
-
|
|
8890
|
+
16) {
|
|
8882
8891
|
attr(input, "placeholder",
|
|
8883
8892
|
/*placeholder*/
|
|
8884
|
-
ctx[
|
|
8893
|
+
ctx[4]);
|
|
8885
8894
|
}
|
|
8886
8895
|
|
|
8887
|
-
if (dirty &
|
|
8896
|
+
if (dirty[0] &
|
|
8888
8897
|
/*min*/
|
|
8889
|
-
|
|
8898
|
+
2048) {
|
|
8890
8899
|
attr(input, "min",
|
|
8891
8900
|
/*min*/
|
|
8892
|
-
ctx[
|
|
8901
|
+
ctx[11]);
|
|
8893
8902
|
}
|
|
8894
8903
|
|
|
8895
|
-
if (dirty &
|
|
8904
|
+
if (dirty[0] &
|
|
8896
8905
|
/*max*/
|
|
8897
|
-
|
|
8906
|
+
4096) {
|
|
8898
8907
|
attr(input, "max",
|
|
8899
8908
|
/*max*/
|
|
8900
|
-
ctx[
|
|
8909
|
+
ctx[12]);
|
|
8901
8910
|
}
|
|
8902
8911
|
|
|
8903
|
-
if (dirty &
|
|
8912
|
+
if (dirty[0] &
|
|
8904
8913
|
/*step*/
|
|
8905
|
-
|
|
8914
|
+
8192) {
|
|
8906
8915
|
attr(input, "step",
|
|
8907
8916
|
/*step*/
|
|
8908
|
-
ctx[
|
|
8917
|
+
ctx[13]);
|
|
8909
8918
|
}
|
|
8910
8919
|
|
|
8911
|
-
if (dirty &
|
|
8920
|
+
if (dirty[0] &
|
|
8912
8921
|
/*arialabel, name*/
|
|
8913
|
-
|
|
8922
|
+
1028 && input_aria_label_value !== (input_aria_label_value =
|
|
8914
8923
|
/*arialabel*/
|
|
8915
|
-
ctx[
|
|
8924
|
+
ctx[10] ||
|
|
8916
8925
|
/*name*/
|
|
8917
8926
|
ctx[2])) {
|
|
8918
8927
|
attr(input, "aria-label", input_aria_label_value);
|
|
@@ -8920,9 +8929,9 @@
|
|
|
8920
8929
|
|
|
8921
8930
|
if (
|
|
8922
8931
|
/*trailingicon*/
|
|
8923
|
-
ctx[
|
|
8932
|
+
ctx[6] && !
|
|
8924
8933
|
/*handlesTrailingIconClick*/
|
|
8925
|
-
ctx[
|
|
8934
|
+
ctx[22]) {
|
|
8926
8935
|
if (if_block2) {
|
|
8927
8936
|
if_block2.p(ctx, dirty);
|
|
8928
8937
|
} else {
|
|
@@ -8937,9 +8946,9 @@
|
|
|
8937
8946
|
|
|
8938
8947
|
if (
|
|
8939
8948
|
/*trailingicon*/
|
|
8940
|
-
ctx[
|
|
8949
|
+
ctx[6] &&
|
|
8941
8950
|
/*handlesTrailingIconClick*/
|
|
8942
|
-
ctx[
|
|
8951
|
+
ctx[22]) {
|
|
8943
8952
|
if (if_block3) {
|
|
8944
8953
|
if_block3.p(ctx, dirty);
|
|
8945
8954
|
} else {
|
|
@@ -8954,7 +8963,7 @@
|
|
|
8954
8963
|
|
|
8955
8964
|
if (
|
|
8956
8965
|
/*suffix*/
|
|
8957
|
-
ctx[
|
|
8966
|
+
ctx[15]) {
|
|
8958
8967
|
if (if_block4) {
|
|
8959
8968
|
if_block4.p(ctx, dirty);
|
|
8960
8969
|
} else {
|
|
@@ -8967,16 +8976,16 @@
|
|
|
8967
8976
|
if_block4 = null;
|
|
8968
8977
|
}
|
|
8969
8978
|
|
|
8970
|
-
if (dirty &
|
|
8979
|
+
if (dirty[0] &
|
|
8971
8980
|
/*isDisabled, variant, type*/
|
|
8972
|
-
|
|
8981
|
+
524418 && div0_class_value !== (div0_class_value = `
|
|
8973
8982
|
goa-input
|
|
8974
8983
|
${
|
|
8975
8984
|
/*isDisabled*/
|
|
8976
|
-
ctx[
|
|
8985
|
+
ctx[19] ? "goa-input--disabled" : ""}
|
|
8977
8986
|
variant--${
|
|
8978
8987
|
/*variant*/
|
|
8979
|
-
ctx[
|
|
8988
|
+
ctx[7]}
|
|
8980
8989
|
type--${
|
|
8981
8990
|
/*type*/
|
|
8982
8991
|
ctx[1]}
|
|
@@ -8984,17 +8993,17 @@
|
|
|
8984
8993
|
attr(div0, "class", div0_class_value);
|
|
8985
8994
|
}
|
|
8986
8995
|
|
|
8987
|
-
if (dirty &
|
|
8996
|
+
if (dirty[0] &
|
|
8988
8997
|
/*isDisabled, variant, type, isError*/
|
|
8989
|
-
|
|
8998
|
+
1572994) {
|
|
8990
8999
|
toggle_class(div0, "error",
|
|
8991
9000
|
/*isError*/
|
|
8992
|
-
ctx[
|
|
9001
|
+
ctx[20]);
|
|
8993
9002
|
}
|
|
8994
9003
|
|
|
8995
9004
|
if (
|
|
8996
9005
|
/*showCounter*/
|
|
8997
|
-
ctx[
|
|
9006
|
+
ctx[18]) {
|
|
8998
9007
|
if (if_block5) {
|
|
8999
9008
|
if_block5.p(ctx, dirty);
|
|
9000
9009
|
} else {
|
|
@@ -9007,12 +9016,12 @@
|
|
|
9007
9016
|
if_block5 = null;
|
|
9008
9017
|
}
|
|
9009
9018
|
|
|
9010
|
-
if (dirty &
|
|
9019
|
+
if (dirty[0] &
|
|
9011
9020
|
/*width*/
|
|
9012
|
-
|
|
9021
|
+
512 && div1_style_value !== (div1_style_value = `
|
|
9013
9022
|
--width: ${
|
|
9014
9023
|
/*width*/
|
|
9015
|
-
ctx[
|
|
9024
|
+
ctx[9]};
|
|
9016
9025
|
`)) {
|
|
9017
9026
|
attr(div1, "style", div1_style_value);
|
|
9018
9027
|
}
|
|
@@ -9027,7 +9036,7 @@
|
|
|
9027
9036
|
if (if_block1) if_block1.d();
|
|
9028
9037
|
/*input_binding*/
|
|
9029
9038
|
|
|
9030
|
-
ctx[
|
|
9039
|
+
ctx[31](null);
|
|
9031
9040
|
if (if_block2) if_block2.d();
|
|
9032
9041
|
if (if_block3) if_block3.d();
|
|
9033
9042
|
if (if_block4) if_block4.d();
|
|
@@ -9061,6 +9070,9 @@
|
|
|
9061
9070
|
let {
|
|
9062
9071
|
value = ""
|
|
9063
9072
|
} = $$props;
|
|
9073
|
+
let {
|
|
9074
|
+
autocapitalize = "off"
|
|
9075
|
+
} = $$props;
|
|
9064
9076
|
let {
|
|
9065
9077
|
placeholder = ""
|
|
9066
9078
|
} = $$props;
|
|
@@ -9136,7 +9148,7 @@
|
|
|
9136
9148
|
function input_binding($$value) {
|
|
9137
9149
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
9138
9150
|
inputEl = $$value;
|
|
9139
|
-
$$invalidate(
|
|
9151
|
+
$$invalidate(17, inputEl);
|
|
9140
9152
|
});
|
|
9141
9153
|
}
|
|
9142
9154
|
|
|
@@ -9144,75 +9156,76 @@
|
|
|
9144
9156
|
if ('type' in $$props) $$invalidate(1, type = $$props.type);
|
|
9145
9157
|
if ('name' in $$props) $$invalidate(2, name = $$props.name);
|
|
9146
9158
|
if ('value' in $$props) $$invalidate(0, value = $$props.value);
|
|
9147
|
-
if ('
|
|
9148
|
-
if ('
|
|
9149
|
-
if ('
|
|
9150
|
-
if ('
|
|
9151
|
-
if ('
|
|
9152
|
-
if ('
|
|
9153
|
-
if ('
|
|
9154
|
-
if ('
|
|
9155
|
-
if ('
|
|
9156
|
-
if ('
|
|
9157
|
-
if ('
|
|
9158
|
-
if ('
|
|
9159
|
-
if ('
|
|
9160
|
-
if ('
|
|
9161
|
-
if ('
|
|
9162
|
-
if ('
|
|
9163
|
-
if ('
|
|
9164
|
-
if ('
|
|
9165
|
-
if ('
|
|
9159
|
+
if ('autocapitalize' in $$props) $$invalidate(3, autocapitalize = $$props.autocapitalize);
|
|
9160
|
+
if ('placeholder' in $$props) $$invalidate(4, placeholder = $$props.placeholder);
|
|
9161
|
+
if ('leadingicon' in $$props) $$invalidate(5, leadingicon = $$props.leadingicon);
|
|
9162
|
+
if ('trailingicon' in $$props) $$invalidate(6, trailingicon = $$props.trailingicon);
|
|
9163
|
+
if ('variant' in $$props) $$invalidate(7, variant = $$props.variant);
|
|
9164
|
+
if ('disabled' in $$props) $$invalidate(24, disabled = $$props.disabled);
|
|
9165
|
+
if ('handletrailingiconclick' in $$props) $$invalidate(25, handletrailingiconclick = $$props.handletrailingiconclick);
|
|
9166
|
+
if ('focused' in $$props) $$invalidate(26, focused = $$props.focused);
|
|
9167
|
+
if ('readonly' in $$props) $$invalidate(27, readonly = $$props.readonly);
|
|
9168
|
+
if ('error' in $$props) $$invalidate(28, error = $$props.error);
|
|
9169
|
+
if ('testid' in $$props) $$invalidate(8, testid = $$props.testid);
|
|
9170
|
+
if ('width' in $$props) $$invalidate(9, width = $$props.width);
|
|
9171
|
+
if ('arialabel' in $$props) $$invalidate(10, arialabel = $$props.arialabel);
|
|
9172
|
+
if ('min' in $$props) $$invalidate(11, min = $$props.min);
|
|
9173
|
+
if ('max' in $$props) $$invalidate(12, max = $$props.max);
|
|
9174
|
+
if ('step' in $$props) $$invalidate(13, step = $$props.step);
|
|
9175
|
+
if ('prefix' in $$props) $$invalidate(14, prefix = $$props.prefix);
|
|
9176
|
+
if ('suffix' in $$props) $$invalidate(15, suffix = $$props.suffix);
|
|
9177
|
+
if ('showcounter' in $$props) $$invalidate(29, showcounter = $$props.showcounter);
|
|
9178
|
+
if ('maxcharcount' in $$props) $$invalidate(16, maxcharcount = $$props.maxcharcount);
|
|
9166
9179
|
};
|
|
9167
9180
|
|
|
9168
9181
|
$$self.$$.update = () => {
|
|
9169
|
-
if ($$self.$$.dirty &
|
|
9182
|
+
if ($$self.$$.dirty[0] &
|
|
9170
9183
|
/*handletrailingiconclick*/
|
|
9171
|
-
|
|
9172
|
-
$$invalidate(
|
|
9184
|
+
33554432) {
|
|
9185
|
+
$$invalidate(22, handlesTrailingIconClick = toBoolean(handletrailingiconclick));
|
|
9173
9186
|
}
|
|
9174
9187
|
|
|
9175
|
-
if ($$self.$$.dirty &
|
|
9188
|
+
if ($$self.$$.dirty[0] &
|
|
9176
9189
|
/*focused*/
|
|
9177
|
-
|
|
9178
|
-
$$invalidate(
|
|
9190
|
+
67108864) {
|
|
9191
|
+
$$invalidate(30, isFocused = toBoolean(focused));
|
|
9179
9192
|
}
|
|
9180
9193
|
|
|
9181
|
-
if ($$self.$$.dirty &
|
|
9194
|
+
if ($$self.$$.dirty[0] &
|
|
9182
9195
|
/*readonly*/
|
|
9183
|
-
|
|
9184
|
-
$$invalidate(
|
|
9196
|
+
134217728) {
|
|
9197
|
+
$$invalidate(21, isReadonly = toBoolean(readonly));
|
|
9185
9198
|
}
|
|
9186
9199
|
|
|
9187
|
-
if ($$self.$$.dirty &
|
|
9200
|
+
if ($$self.$$.dirty[0] &
|
|
9188
9201
|
/*error*/
|
|
9189
|
-
|
|
9190
|
-
$$invalidate(
|
|
9202
|
+
268435456) {
|
|
9203
|
+
$$invalidate(20, isError = toBoolean(error));
|
|
9191
9204
|
}
|
|
9192
9205
|
|
|
9193
|
-
if ($$self.$$.dirty &
|
|
9206
|
+
if ($$self.$$.dirty[0] &
|
|
9194
9207
|
/*disabled*/
|
|
9195
|
-
|
|
9196
|
-
$$invalidate(
|
|
9208
|
+
16777216) {
|
|
9209
|
+
$$invalidate(19, isDisabled = toBoolean(disabled));
|
|
9197
9210
|
}
|
|
9198
9211
|
|
|
9199
|
-
if ($$self.$$.dirty &
|
|
9212
|
+
if ($$self.$$.dirty[0] &
|
|
9200
9213
|
/*showcounter*/
|
|
9201
|
-
|
|
9202
|
-
$$invalidate(
|
|
9214
|
+
536870912) {
|
|
9215
|
+
$$invalidate(18, showCounter = toBoolean(showcounter));
|
|
9203
9216
|
}
|
|
9204
9217
|
|
|
9205
|
-
if ($$self.$$.dirty &
|
|
9218
|
+
if ($$self.$$.dirty[0] &
|
|
9206
9219
|
/*isFocused, inputEl*/
|
|
9207
|
-
|
|
9220
|
+
1073872896) {
|
|
9208
9221
|
if (isFocused && inputEl) {
|
|
9209
9222
|
setTimeout(() => inputEl.focus(), 1);
|
|
9210
9223
|
}
|
|
9211
9224
|
}
|
|
9212
9225
|
|
|
9213
|
-
if ($$self.$$.dirty &
|
|
9226
|
+
if ($$self.$$.dirty[0] &
|
|
9214
9227
|
/*inputEl, type*/
|
|
9215
|
-
|
|
9228
|
+
131074) {
|
|
9216
9229
|
if (inputEl && type === "search") {
|
|
9217
9230
|
inputEl.addEventListener("search", e => {
|
|
9218
9231
|
onKeyUp(e);
|
|
@@ -9221,7 +9234,7 @@
|
|
|
9221
9234
|
}
|
|
9222
9235
|
};
|
|
9223
9236
|
|
|
9224
|
-
return [value, type, name, placeholder, leadingicon, trailingicon, variant, testid, width, arialabel, min, max, step, prefix, suffix, maxcharcount, inputEl, showCounter, isDisabled, isError, isReadonly, handlesTrailingIconClick, onKeyUp, disabled, handletrailingiconclick, focused, readonly, error, showcounter, isFocused, input_binding];
|
|
9237
|
+
return [value, type, name, autocapitalize, placeholder, leadingicon, trailingicon, variant, testid, width, arialabel, min, max, step, prefix, suffix, maxcharcount, inputEl, showCounter, isDisabled, isError, isReadonly, handlesTrailingIconClick, onKeyUp, disabled, handletrailingiconclick, focused, readonly, error, showcounter, isFocused, input_binding];
|
|
9225
9238
|
}
|
|
9226
9239
|
|
|
9227
9240
|
class Input extends SvelteElement {
|
|
@@ -9237,26 +9250,27 @@
|
|
|
9237
9250
|
type: 1,
|
|
9238
9251
|
name: 2,
|
|
9239
9252
|
value: 0,
|
|
9240
|
-
|
|
9241
|
-
|
|
9242
|
-
|
|
9243
|
-
|
|
9244
|
-
|
|
9245
|
-
|
|
9246
|
-
|
|
9247
|
-
|
|
9248
|
-
|
|
9249
|
-
|
|
9250
|
-
|
|
9251
|
-
|
|
9252
|
-
|
|
9253
|
-
|
|
9254
|
-
|
|
9255
|
-
|
|
9256
|
-
|
|
9257
|
-
|
|
9258
|
-
|
|
9259
|
-
|
|
9253
|
+
autocapitalize: 3,
|
|
9254
|
+
placeholder: 4,
|
|
9255
|
+
leadingicon: 5,
|
|
9256
|
+
trailingicon: 6,
|
|
9257
|
+
variant: 7,
|
|
9258
|
+
disabled: 24,
|
|
9259
|
+
handletrailingiconclick: 25,
|
|
9260
|
+
focused: 26,
|
|
9261
|
+
readonly: 27,
|
|
9262
|
+
error: 28,
|
|
9263
|
+
testid: 8,
|
|
9264
|
+
width: 9,
|
|
9265
|
+
arialabel: 10,
|
|
9266
|
+
min: 11,
|
|
9267
|
+
max: 12,
|
|
9268
|
+
step: 13,
|
|
9269
|
+
prefix: 14,
|
|
9270
|
+
suffix: 15,
|
|
9271
|
+
showcounter: 29,
|
|
9272
|
+
maxcharcount: 16
|
|
9273
|
+
}, null, [-1, -1]);
|
|
9260
9274
|
|
|
9261
9275
|
if (options) {
|
|
9262
9276
|
if (options.target) {
|
|
@@ -9271,7 +9285,7 @@
|
|
|
9271
9285
|
}
|
|
9272
9286
|
|
|
9273
9287
|
static get observedAttributes() {
|
|
9274
|
-
return ["type", "name", "value", "placeholder", "leadingicon", "trailingicon", "variant", "disabled", "handletrailingiconclick", "focused", "readonly", "error", "testid", "width", "arialabel", "min", "max", "step", "prefix", "suffix", "showcounter", "maxcharcount"];
|
|
9288
|
+
return ["type", "name", "value", "autocapitalize", "placeholder", "leadingicon", "trailingicon", "variant", "disabled", "handletrailingiconclick", "focused", "readonly", "error", "testid", "width", "arialabel", "min", "max", "step", "prefix", "suffix", "showcounter", "maxcharcount"];
|
|
9275
9289
|
}
|
|
9276
9290
|
|
|
9277
9291
|
get type() {
|
|
@@ -9307,10 +9321,21 @@
|
|
|
9307
9321
|
flush();
|
|
9308
9322
|
}
|
|
9309
9323
|
|
|
9310
|
-
get
|
|
9324
|
+
get autocapitalize() {
|
|
9311
9325
|
return this.$$.ctx[3];
|
|
9312
9326
|
}
|
|
9313
9327
|
|
|
9328
|
+
set autocapitalize(autocapitalize) {
|
|
9329
|
+
this.$$set({
|
|
9330
|
+
autocapitalize
|
|
9331
|
+
});
|
|
9332
|
+
flush();
|
|
9333
|
+
}
|
|
9334
|
+
|
|
9335
|
+
get placeholder() {
|
|
9336
|
+
return this.$$.ctx[4];
|
|
9337
|
+
}
|
|
9338
|
+
|
|
9314
9339
|
set placeholder(placeholder) {
|
|
9315
9340
|
this.$$set({
|
|
9316
9341
|
placeholder
|
|
@@ -9319,7 +9344,7 @@
|
|
|
9319
9344
|
}
|
|
9320
9345
|
|
|
9321
9346
|
get leadingicon() {
|
|
9322
|
-
return this.$$.ctx[
|
|
9347
|
+
return this.$$.ctx[5];
|
|
9323
9348
|
}
|
|
9324
9349
|
|
|
9325
9350
|
set leadingicon(leadingicon) {
|
|
@@ -9330,7 +9355,7 @@
|
|
|
9330
9355
|
}
|
|
9331
9356
|
|
|
9332
9357
|
get trailingicon() {
|
|
9333
|
-
return this.$$.ctx[
|
|
9358
|
+
return this.$$.ctx[6];
|
|
9334
9359
|
}
|
|
9335
9360
|
|
|
9336
9361
|
set trailingicon(trailingicon) {
|
|
@@ -9341,7 +9366,7 @@
|
|
|
9341
9366
|
}
|
|
9342
9367
|
|
|
9343
9368
|
get variant() {
|
|
9344
|
-
return this.$$.ctx[
|
|
9369
|
+
return this.$$.ctx[7];
|
|
9345
9370
|
}
|
|
9346
9371
|
|
|
9347
9372
|
set variant(variant) {
|
|
@@ -9352,7 +9377,7 @@
|
|
|
9352
9377
|
}
|
|
9353
9378
|
|
|
9354
9379
|
get disabled() {
|
|
9355
|
-
return this.$$.ctx[
|
|
9380
|
+
return this.$$.ctx[24];
|
|
9356
9381
|
}
|
|
9357
9382
|
|
|
9358
9383
|
set disabled(disabled) {
|
|
@@ -9363,7 +9388,7 @@
|
|
|
9363
9388
|
}
|
|
9364
9389
|
|
|
9365
9390
|
get handletrailingiconclick() {
|
|
9366
|
-
return this.$$.ctx[
|
|
9391
|
+
return this.$$.ctx[25];
|
|
9367
9392
|
}
|
|
9368
9393
|
|
|
9369
9394
|
set handletrailingiconclick(handletrailingiconclick) {
|
|
@@ -9374,7 +9399,7 @@
|
|
|
9374
9399
|
}
|
|
9375
9400
|
|
|
9376
9401
|
get focused() {
|
|
9377
|
-
return this.$$.ctx[
|
|
9402
|
+
return this.$$.ctx[26];
|
|
9378
9403
|
}
|
|
9379
9404
|
|
|
9380
9405
|
set focused(focused) {
|
|
@@ -9385,7 +9410,7 @@
|
|
|
9385
9410
|
}
|
|
9386
9411
|
|
|
9387
9412
|
get readonly() {
|
|
9388
|
-
return this.$$.ctx[
|
|
9413
|
+
return this.$$.ctx[27];
|
|
9389
9414
|
}
|
|
9390
9415
|
|
|
9391
9416
|
set readonly(readonly) {
|
|
@@ -9396,7 +9421,7 @@
|
|
|
9396
9421
|
}
|
|
9397
9422
|
|
|
9398
9423
|
get error() {
|
|
9399
|
-
return this.$$.ctx[
|
|
9424
|
+
return this.$$.ctx[28];
|
|
9400
9425
|
}
|
|
9401
9426
|
|
|
9402
9427
|
set error(error) {
|
|
@@ -9407,7 +9432,7 @@
|
|
|
9407
9432
|
}
|
|
9408
9433
|
|
|
9409
9434
|
get testid() {
|
|
9410
|
-
return this.$$.ctx[
|
|
9435
|
+
return this.$$.ctx[8];
|
|
9411
9436
|
}
|
|
9412
9437
|
|
|
9413
9438
|
set testid(testid) {
|
|
@@ -9418,7 +9443,7 @@
|
|
|
9418
9443
|
}
|
|
9419
9444
|
|
|
9420
9445
|
get width() {
|
|
9421
|
-
return this.$$.ctx[
|
|
9446
|
+
return this.$$.ctx[9];
|
|
9422
9447
|
}
|
|
9423
9448
|
|
|
9424
9449
|
set width(width) {
|
|
@@ -9429,7 +9454,7 @@
|
|
|
9429
9454
|
}
|
|
9430
9455
|
|
|
9431
9456
|
get arialabel() {
|
|
9432
|
-
return this.$$.ctx[
|
|
9457
|
+
return this.$$.ctx[10];
|
|
9433
9458
|
}
|
|
9434
9459
|
|
|
9435
9460
|
set arialabel(arialabel) {
|
|
@@ -9440,7 +9465,7 @@
|
|
|
9440
9465
|
}
|
|
9441
9466
|
|
|
9442
9467
|
get min() {
|
|
9443
|
-
return this.$$.ctx[
|
|
9468
|
+
return this.$$.ctx[11];
|
|
9444
9469
|
}
|
|
9445
9470
|
|
|
9446
9471
|
set min(min) {
|
|
@@ -9451,7 +9476,7 @@
|
|
|
9451
9476
|
}
|
|
9452
9477
|
|
|
9453
9478
|
get max() {
|
|
9454
|
-
return this.$$.ctx[
|
|
9479
|
+
return this.$$.ctx[12];
|
|
9455
9480
|
}
|
|
9456
9481
|
|
|
9457
9482
|
set max(max) {
|
|
@@ -9462,7 +9487,7 @@
|
|
|
9462
9487
|
}
|
|
9463
9488
|
|
|
9464
9489
|
get step() {
|
|
9465
|
-
return this.$$.ctx[
|
|
9490
|
+
return this.$$.ctx[13];
|
|
9466
9491
|
}
|
|
9467
9492
|
|
|
9468
9493
|
set step(step) {
|
|
@@ -9473,7 +9498,7 @@
|
|
|
9473
9498
|
}
|
|
9474
9499
|
|
|
9475
9500
|
get prefix() {
|
|
9476
|
-
return this.$$.ctx[
|
|
9501
|
+
return this.$$.ctx[14];
|
|
9477
9502
|
}
|
|
9478
9503
|
|
|
9479
9504
|
set prefix(prefix) {
|
|
@@ -9484,7 +9509,7 @@
|
|
|
9484
9509
|
}
|
|
9485
9510
|
|
|
9486
9511
|
get suffix() {
|
|
9487
|
-
return this.$$.ctx[
|
|
9512
|
+
return this.$$.ctx[15];
|
|
9488
9513
|
}
|
|
9489
9514
|
|
|
9490
9515
|
set suffix(suffix) {
|
|
@@ -9495,7 +9520,7 @@
|
|
|
9495
9520
|
}
|
|
9496
9521
|
|
|
9497
9522
|
get showcounter() {
|
|
9498
|
-
return this.$$.ctx[
|
|
9523
|
+
return this.$$.ctx[29];
|
|
9499
9524
|
}
|
|
9500
9525
|
|
|
9501
9526
|
set showcounter(showcounter) {
|
|
@@ -9506,7 +9531,7 @@
|
|
|
9506
9531
|
}
|
|
9507
9532
|
|
|
9508
9533
|
get maxcharcount() {
|
|
9509
|
-
return this.$$.ctx[
|
|
9534
|
+
return this.$$.ctx[16];
|
|
9510
9535
|
}
|
|
9511
9536
|
|
|
9512
9537
|
set maxcharcount(maxcharcount) {
|
|
@@ -14509,6 +14534,7 @@
|
|
|
14509
14534
|
var id = _a.id,
|
|
14510
14535
|
name = _a.name,
|
|
14511
14536
|
type = _a.type,
|
|
14537
|
+
autoCapitalize = _a.autoCapitalize,
|
|
14512
14538
|
leadingIcon = _a.leadingIcon,
|
|
14513
14539
|
trailingIcon = _a.trailingIcon,
|
|
14514
14540
|
_b = _a.variant,
|
|
@@ -14561,6 +14587,7 @@
|
|
|
14561
14587
|
focused: focused,
|
|
14562
14588
|
type: type,
|
|
14563
14589
|
name: name,
|
|
14590
|
+
autocapitalize: autoCapitalize,
|
|
14564
14591
|
id: id,
|
|
14565
14592
|
leadingicon: leadingIcon,
|
|
14566
14593
|
trailingicon: trailingIcon,
|