@abgov/web-components 1.0.0-alpha.100 → 1.0.0-alpha.102
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 +228 -192
- package/web-components.umd.js +28 -28
package/web-components.es.js
CHANGED
|
@@ -1472,7 +1472,7 @@ customElements.define("goa-button-group", ButtonGroup);
|
|
|
1472
1472
|
|
|
1473
1473
|
function create_else_block$2(ctx) {
|
|
1474
1474
|
let t0;
|
|
1475
|
-
let
|
|
1475
|
+
let slot;
|
|
1476
1476
|
let t1;
|
|
1477
1477
|
let if_block1_anchor;
|
|
1478
1478
|
let if_block0 = /*leadingicon*/ ctx[3] && create_if_block_2$7(ctx);
|
|
@@ -1482,17 +1482,16 @@ function create_else_block$2(ctx) {
|
|
|
1482
1482
|
c() {
|
|
1483
1483
|
if (if_block0) if_block0.c();
|
|
1484
1484
|
t0 = space();
|
|
1485
|
-
|
|
1486
|
-
div.innerHTML = `<slot></slot>`;
|
|
1485
|
+
slot = element("slot");
|
|
1487
1486
|
t1 = space();
|
|
1488
1487
|
if (if_block1) if_block1.c();
|
|
1489
1488
|
if_block1_anchor = empty();
|
|
1490
|
-
attr(
|
|
1489
|
+
attr(slot, "class", "text");
|
|
1491
1490
|
},
|
|
1492
1491
|
m(target, anchor) {
|
|
1493
1492
|
if (if_block0) if_block0.m(target, anchor);
|
|
1494
1493
|
insert(target, t0, anchor);
|
|
1495
|
-
insert(target,
|
|
1494
|
+
insert(target, slot, anchor);
|
|
1496
1495
|
insert(target, t1, anchor);
|
|
1497
1496
|
if (if_block1) if_block1.m(target, anchor);
|
|
1498
1497
|
insert(target, if_block1_anchor, anchor);
|
|
@@ -1527,7 +1526,7 @@ function create_else_block$2(ctx) {
|
|
|
1527
1526
|
d(detaching) {
|
|
1528
1527
|
if (if_block0) if_block0.d(detaching);
|
|
1529
1528
|
if (detaching) detach(t0);
|
|
1530
|
-
if (detaching) detach(
|
|
1529
|
+
if (detaching) detach(slot);
|
|
1531
1530
|
if (detaching) detach(t1);
|
|
1532
1531
|
if (if_block1) if_block1.d(detaching);
|
|
1533
1532
|
if (detaching) detach(if_block1_anchor);
|
|
@@ -1537,36 +1536,35 @@ function create_else_block$2(ctx) {
|
|
|
1537
1536
|
|
|
1538
1537
|
// (53:2) {#if type === "start"}
|
|
1539
1538
|
function create_if_block$h(ctx) {
|
|
1540
|
-
let
|
|
1539
|
+
let slot;
|
|
1541
1540
|
let t;
|
|
1542
1541
|
let goa_icon;
|
|
1543
1542
|
|
|
1544
1543
|
return {
|
|
1545
1544
|
c() {
|
|
1546
|
-
|
|
1547
|
-
div.innerHTML = `<slot></slot>`;
|
|
1545
|
+
slot = element("slot");
|
|
1548
1546
|
t = space();
|
|
1549
1547
|
goa_icon = element("goa-icon");
|
|
1550
|
-
attr(
|
|
1548
|
+
attr(slot, "class", "text");
|
|
1551
1549
|
set_custom_element_data(goa_icon, "id", "trailing-icon");
|
|
1552
1550
|
set_custom_element_data(goa_icon, "type", "arrow-forward");
|
|
1553
1551
|
set_custom_element_data(goa_icon, "inverted", "true");
|
|
1554
1552
|
},
|
|
1555
1553
|
m(target, anchor) {
|
|
1556
|
-
insert(target,
|
|
1554
|
+
insert(target, slot, anchor);
|
|
1557
1555
|
insert(target, t, anchor);
|
|
1558
1556
|
insert(target, goa_icon, anchor);
|
|
1559
1557
|
},
|
|
1560
1558
|
p: noop,
|
|
1561
1559
|
d(detaching) {
|
|
1562
|
-
if (detaching) detach(
|
|
1560
|
+
if (detaching) detach(slot);
|
|
1563
1561
|
if (detaching) detach(t);
|
|
1564
1562
|
if (detaching) detach(goa_icon);
|
|
1565
1563
|
}
|
|
1566
1564
|
};
|
|
1567
1565
|
}
|
|
1568
1566
|
|
|
1569
|
-
// (
|
|
1567
|
+
// (57:4) {#if leadingicon}
|
|
1570
1568
|
function create_if_block_2$7(ctx) {
|
|
1571
1569
|
let goa_icon;
|
|
1572
1570
|
|
|
@@ -1595,7 +1593,7 @@ function create_if_block_2$7(ctx) {
|
|
|
1595
1593
|
};
|
|
1596
1594
|
}
|
|
1597
1595
|
|
|
1598
|
-
// (
|
|
1596
|
+
// (61:4) {#if trailingicon}
|
|
1599
1597
|
function create_if_block_1$a(ctx) {
|
|
1600
1598
|
let goa_icon;
|
|
1601
1599
|
|
|
@@ -1787,7 +1785,7 @@ class Button extends SvelteElement {
|
|
|
1787
1785
|
super();
|
|
1788
1786
|
|
|
1789
1787
|
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,
|
|
1790
|
-
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>`;
|
|
1788
|
+
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>`;
|
|
1791
1789
|
|
|
1792
1790
|
init(
|
|
1793
1791
|
this,
|
|
@@ -4021,12 +4019,12 @@ function create_if_block$c(ctx) {
|
|
|
4021
4019
|
};
|
|
4022
4020
|
}
|
|
4023
4021
|
|
|
4024
|
-
// (
|
|
4022
|
+
// (239:4) {#each options as option, index}
|
|
4025
4023
|
function create_each_block$4(ctx) {
|
|
4026
4024
|
let li;
|
|
4027
|
-
let
|
|
4028
|
-
let
|
|
4029
|
-
let
|
|
4025
|
+
let t_value = (/*option*/ ctx[39].label || /*option*/ ctx[39].value) + "";
|
|
4026
|
+
let t;
|
|
4027
|
+
let li_id_value;
|
|
4030
4028
|
let li_aria_label_value;
|
|
4031
4029
|
let li_data_testid_value;
|
|
4032
4030
|
let li_data_index_value;
|
|
@@ -4041,9 +4039,10 @@ function create_each_block$4(ctx) {
|
|
|
4041
4039
|
return {
|
|
4042
4040
|
c() {
|
|
4043
4041
|
li = element("li");
|
|
4044
|
-
|
|
4045
|
-
|
|
4042
|
+
t = text(t_value);
|
|
4043
|
+
attr(li, "id", li_id_value = /*option*/ ctx[39].label);
|
|
4046
4044
|
attr(li, "aria-label", li_aria_label_value = /*option*/ ctx[39].label || /*option*/ ctx[39].value);
|
|
4045
|
+
attr(li, "role", "option");
|
|
4047
4046
|
attr(li, "data-testid", li_data_testid_value = `${/*option*/ ctx[39].value}-dropdown-item`);
|
|
4048
4047
|
attr(li, "data-index", li_data_index_value = /*index*/ ctx[41]);
|
|
4049
4048
|
attr(li, "class", "goa-dropdown-option");
|
|
@@ -4054,8 +4053,7 @@ function create_each_block$4(ctx) {
|
|
|
4054
4053
|
},
|
|
4055
4054
|
m(target, anchor) {
|
|
4056
4055
|
insert(target, li, anchor);
|
|
4057
|
-
append(li,
|
|
4058
|
-
append(li, t1);
|
|
4056
|
+
append(li, t);
|
|
4059
4057
|
|
|
4060
4058
|
if (!mounted) {
|
|
4061
4059
|
dispose = listen(li, "click", click_handler);
|
|
@@ -4064,7 +4062,11 @@ function create_each_block$4(ctx) {
|
|
|
4064
4062
|
},
|
|
4065
4063
|
p(new_ctx, dirty) {
|
|
4066
4064
|
ctx = new_ctx;
|
|
4067
|
-
if (dirty[0] & /*options*/ 1024 &&
|
|
4065
|
+
if (dirty[0] & /*options*/ 1024 && t_value !== (t_value = (/*option*/ ctx[39].label || /*option*/ ctx[39].value) + "")) set_data(t, t_value);
|
|
4066
|
+
|
|
4067
|
+
if (dirty[0] & /*options*/ 1024 && li_id_value !== (li_id_value = /*option*/ ctx[39].label)) {
|
|
4068
|
+
attr(li, "id", li_id_value);
|
|
4069
|
+
}
|
|
4068
4070
|
|
|
4069
4071
|
if (dirty[0] & /*options*/ 1024 && li_aria_label_value !== (li_aria_label_value = /*option*/ ctx[39].label || /*option*/ ctx[39].value)) {
|
|
4070
4072
|
attr(li, "aria-label", li_aria_label_value);
|
|
@@ -4100,8 +4102,8 @@ function create_fragment$q(ctx) {
|
|
|
4100
4102
|
let div0_data_testid_value;
|
|
4101
4103
|
let t1;
|
|
4102
4104
|
let ul;
|
|
4103
|
-
let slot;
|
|
4104
4105
|
let t2;
|
|
4106
|
+
let slot;
|
|
4105
4107
|
let ul_style_value;
|
|
4106
4108
|
let div1_style_value;
|
|
4107
4109
|
let mounted;
|
|
@@ -4123,13 +4125,13 @@ function create_fragment$q(ctx) {
|
|
|
4123
4125
|
goa_input = element("goa-input");
|
|
4124
4126
|
t1 = space();
|
|
4125
4127
|
ul = element("ul");
|
|
4126
|
-
slot = element("slot");
|
|
4127
|
-
t2 = space();
|
|
4128
4128
|
|
|
4129
4129
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
4130
4130
|
each_blocks[i].c();
|
|
4131
4131
|
}
|
|
4132
4132
|
|
|
4133
|
+
t2 = space();
|
|
4134
|
+
slot = element("slot");
|
|
4133
4135
|
this.c = noop;
|
|
4134
4136
|
set_custom_element_data(goa_input, "error", /*error*/ ctx[8]);
|
|
4135
4137
|
set_custom_element_data(goa_input, "disabled", /*disabled*/ ctx[7]);
|
|
@@ -4137,12 +4139,18 @@ function create_fragment$q(ctx) {
|
|
|
4137
4139
|
set_custom_element_data(goa_input, "placeholder", /*placeholder*/ ctx[4]);
|
|
4138
4140
|
set_custom_element_data(goa_input, "width", "100%");
|
|
4139
4141
|
set_custom_element_data(goa_input, "id", goa_input_id_value = `${/*name*/ ctx[0]}-dropdown-input`);
|
|
4142
|
+
set_custom_element_data(goa_input, "role", "combobox");
|
|
4140
4143
|
set_custom_element_data(goa_input, "aria-label", goa_input_aria_label_value = /*arialabel*/ ctx[1] || /*name*/ ctx[0]);
|
|
4144
|
+
set_custom_element_data(goa_input, "aria-expanded", /*isMenuVisible*/ ctx[12]);
|
|
4145
|
+
set_custom_element_data(goa_input, "aria-controls", "menu");
|
|
4141
4146
|
set_custom_element_data(goa_input, "readonly", "");
|
|
4142
4147
|
set_custom_element_data(goa_input, "trailingicon", "chevron-down");
|
|
4143
4148
|
set_custom_element_data(goa_input, "type", "text");
|
|
4144
4149
|
set_custom_element_data(goa_input, "value", /*selectedLabel*/ ctx[11]);
|
|
4145
4150
|
attr(div0, "data-testid", div0_data_testid_value = `${/*name*/ ctx[0]}-dropdown`);
|
|
4151
|
+
attr(ul, "id", "menu");
|
|
4152
|
+
attr(ul, "role", "listbox");
|
|
4153
|
+
attr(ul, "aria-activedescendant", /*selectedLabel*/ ctx[11]);
|
|
4146
4154
|
attr(ul, "data-testid", "dropdown-menu");
|
|
4147
4155
|
attr(ul, "tabindex", "0");
|
|
4148
4156
|
attr(ul, "class", "goa-dropdown-list");
|
|
@@ -4160,13 +4168,13 @@ function create_fragment$q(ctx) {
|
|
|
4160
4168
|
append(div0, goa_input);
|
|
4161
4169
|
append(div1, t1);
|
|
4162
4170
|
append(div1, ul);
|
|
4163
|
-
append(ul, slot);
|
|
4164
|
-
append(ul, t2);
|
|
4165
4171
|
|
|
4166
4172
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
4167
4173
|
each_blocks[i].m(ul, null);
|
|
4168
4174
|
}
|
|
4169
4175
|
|
|
4176
|
+
append(ul, t2);
|
|
4177
|
+
append(ul, slot);
|
|
4170
4178
|
/*ul_binding*/ ctx[23](ul);
|
|
4171
4179
|
/*div1_binding*/ ctx[24](div1);
|
|
4172
4180
|
|
|
@@ -4213,6 +4221,10 @@ function create_fragment$q(ctx) {
|
|
|
4213
4221
|
set_custom_element_data(goa_input, "aria-label", goa_input_aria_label_value);
|
|
4214
4222
|
}
|
|
4215
4223
|
|
|
4224
|
+
if (dirty[0] & /*isMenuVisible*/ 4096) {
|
|
4225
|
+
set_custom_element_data(goa_input, "aria-expanded", /*isMenuVisible*/ ctx[12]);
|
|
4226
|
+
}
|
|
4227
|
+
|
|
4216
4228
|
if (dirty[0] & /*selectedLabel*/ 2048) {
|
|
4217
4229
|
set_custom_element_data(goa_input, "value", /*selectedLabel*/ ctx[11]);
|
|
4218
4230
|
}
|
|
@@ -4233,7 +4245,7 @@ function create_fragment$q(ctx) {
|
|
|
4233
4245
|
} else {
|
|
4234
4246
|
each_blocks[i] = create_each_block$4(child_ctx);
|
|
4235
4247
|
each_blocks[i].c();
|
|
4236
|
-
each_blocks[i].m(ul,
|
|
4248
|
+
each_blocks[i].m(ul, t2);
|
|
4237
4249
|
}
|
|
4238
4250
|
}
|
|
4239
4251
|
|
|
@@ -4244,6 +4256,10 @@ function create_fragment$q(ctx) {
|
|
|
4244
4256
|
each_blocks.length = each_value.length;
|
|
4245
4257
|
}
|
|
4246
4258
|
|
|
4259
|
+
if (dirty[0] & /*selectedLabel*/ 2048) {
|
|
4260
|
+
attr(ul, "aria-activedescendant", /*selectedLabel*/ ctx[11]);
|
|
4261
|
+
}
|
|
4262
|
+
|
|
4247
4263
|
if (dirty[0] & /*maxheight*/ 8 && ul_style_value !== (ul_style_value = `overflow-y: auto; max-height: ${/*maxheight*/ ctx[3]}`)) {
|
|
4248
4264
|
attr(ul, "style", ul_style_value);
|
|
4249
4265
|
}
|
|
@@ -6926,7 +6942,7 @@ function create_if_block_7(ctx) {
|
|
|
6926
6942
|
return {
|
|
6927
6943
|
c() {
|
|
6928
6944
|
div = element("div");
|
|
6929
|
-
t = text(/*prefix*/ ctx[
|
|
6945
|
+
t = text(/*prefix*/ ctx[14]);
|
|
6930
6946
|
attr(div, "class", "prefix");
|
|
6931
6947
|
},
|
|
6932
6948
|
m(target, anchor) {
|
|
@@ -6934,7 +6950,7 @@ function create_if_block_7(ctx) {
|
|
|
6934
6950
|
append(div, t);
|
|
6935
6951
|
},
|
|
6936
6952
|
p(ctx, dirty) {
|
|
6937
|
-
if (dirty & /*prefix*/
|
|
6953
|
+
if (dirty[0] & /*prefix*/ 16384) set_data(t, /*prefix*/ ctx[14]);
|
|
6938
6954
|
},
|
|
6939
6955
|
d(detaching) {
|
|
6940
6956
|
if (detaching) detach(div);
|
|
@@ -6942,7 +6958,7 @@ function create_if_block_7(ctx) {
|
|
|
6942
6958
|
};
|
|
6943
6959
|
}
|
|
6944
6960
|
|
|
6945
|
-
// (
|
|
6961
|
+
// (82:4) {#if leadingicon}
|
|
6946
6962
|
function create_if_block_6(ctx) {
|
|
6947
6963
|
let goa_icon;
|
|
6948
6964
|
|
|
@@ -6951,14 +6967,14 @@ function create_if_block_6(ctx) {
|
|
|
6951
6967
|
goa_icon = element("goa-icon");
|
|
6952
6968
|
set_custom_element_data(goa_icon, "class", "goa-input-leading-icon");
|
|
6953
6969
|
set_custom_element_data(goa_icon, "data-testid", "leading-icon");
|
|
6954
|
-
set_custom_element_data(goa_icon, "type", /*leadingicon*/ ctx[
|
|
6970
|
+
set_custom_element_data(goa_icon, "type", /*leadingicon*/ ctx[5]);
|
|
6955
6971
|
},
|
|
6956
6972
|
m(target, anchor) {
|
|
6957
6973
|
insert(target, goa_icon, anchor);
|
|
6958
6974
|
},
|
|
6959
6975
|
p(ctx, dirty) {
|
|
6960
|
-
if (dirty & /*leadingicon*/
|
|
6961
|
-
set_custom_element_data(goa_icon, "type", /*leadingicon*/ ctx[
|
|
6976
|
+
if (dirty[0] & /*leadingicon*/ 32) {
|
|
6977
|
+
set_custom_element_data(goa_icon, "type", /*leadingicon*/ ctx[5]);
|
|
6962
6978
|
}
|
|
6963
6979
|
},
|
|
6964
6980
|
d(detaching) {
|
|
@@ -6967,7 +6983,7 @@ function create_if_block_6(ctx) {
|
|
|
6967
6983
|
};
|
|
6968
6984
|
}
|
|
6969
6985
|
|
|
6970
|
-
// (
|
|
6986
|
+
// (112:4) {#if trailingicon && !handlesTrailingIconClick}
|
|
6971
6987
|
function create_if_block_5(ctx) {
|
|
6972
6988
|
let goa_icon;
|
|
6973
6989
|
|
|
@@ -6977,14 +6993,14 @@ function create_if_block_5(ctx) {
|
|
|
6977
6993
|
set_custom_element_data(goa_icon, "class", "goa-input-trailing-icon");
|
|
6978
6994
|
set_custom_element_data(goa_icon, "data-testid", "trailing-icon");
|
|
6979
6995
|
set_custom_element_data(goa_icon, "size", "medium");
|
|
6980
|
-
set_custom_element_data(goa_icon, "type", /*trailingicon*/ ctx[
|
|
6996
|
+
set_custom_element_data(goa_icon, "type", /*trailingicon*/ ctx[6]);
|
|
6981
6997
|
},
|
|
6982
6998
|
m(target, anchor) {
|
|
6983
6999
|
insert(target, goa_icon, anchor);
|
|
6984
7000
|
},
|
|
6985
7001
|
p(ctx, dirty) {
|
|
6986
|
-
if (dirty & /*trailingicon*/
|
|
6987
|
-
set_custom_element_data(goa_icon, "type", /*trailingicon*/ ctx[
|
|
7002
|
+
if (dirty[0] & /*trailingicon*/ 64) {
|
|
7003
|
+
set_custom_element_data(goa_icon, "type", /*trailingicon*/ ctx[6]);
|
|
6988
7004
|
}
|
|
6989
7005
|
},
|
|
6990
7006
|
d(detaching) {
|
|
@@ -6993,7 +7009,7 @@ function create_if_block_5(ctx) {
|
|
|
6993
7009
|
};
|
|
6994
7010
|
}
|
|
6995
7011
|
|
|
6996
|
-
// (
|
|
7012
|
+
// (122:4) {#if trailingicon && handlesTrailingIconClick}
|
|
6997
7013
|
function create_if_block_4(ctx) {
|
|
6998
7014
|
let goa_icon_button;
|
|
6999
7015
|
let mounted;
|
|
@@ -7002,10 +7018,10 @@ function create_if_block_4(ctx) {
|
|
|
7002
7018
|
return {
|
|
7003
7019
|
c() {
|
|
7004
7020
|
goa_icon_button = element("goa-icon-button");
|
|
7005
|
-
set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[
|
|
7021
|
+
set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[19]);
|
|
7006
7022
|
set_custom_element_data(goa_icon_button, "variant", "nocolor");
|
|
7007
7023
|
set_custom_element_data(goa_icon_button, "size", "medium");
|
|
7008
|
-
set_custom_element_data(goa_icon_button, "type", /*trailingicon*/ ctx[
|
|
7024
|
+
set_custom_element_data(goa_icon_button, "type", /*trailingicon*/ ctx[6]);
|
|
7009
7025
|
set_custom_element_data(goa_icon_button, "data-testid", "trailing-icon-button");
|
|
7010
7026
|
},
|
|
7011
7027
|
m(target, anchor) {
|
|
@@ -7017,12 +7033,12 @@ function create_if_block_4(ctx) {
|
|
|
7017
7033
|
}
|
|
7018
7034
|
},
|
|
7019
7035
|
p(ctx, dirty) {
|
|
7020
|
-
if (dirty & /*isDisabled*/
|
|
7021
|
-
set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[
|
|
7036
|
+
if (dirty[0] & /*isDisabled*/ 524288) {
|
|
7037
|
+
set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[19]);
|
|
7022
7038
|
}
|
|
7023
7039
|
|
|
7024
|
-
if (dirty & /*trailingicon*/
|
|
7025
|
-
set_custom_element_data(goa_icon_button, "type", /*trailingicon*/ ctx[
|
|
7040
|
+
if (dirty[0] & /*trailingicon*/ 64) {
|
|
7041
|
+
set_custom_element_data(goa_icon_button, "type", /*trailingicon*/ ctx[6]);
|
|
7026
7042
|
}
|
|
7027
7043
|
},
|
|
7028
7044
|
d(detaching) {
|
|
@@ -7033,7 +7049,7 @@ function create_if_block_4(ctx) {
|
|
|
7033
7049
|
};
|
|
7034
7050
|
}
|
|
7035
7051
|
|
|
7036
|
-
// (
|
|
7052
|
+
// (133:4) {#if suffix}
|
|
7037
7053
|
function create_if_block_3$2(ctx) {
|
|
7038
7054
|
let span;
|
|
7039
7055
|
let t;
|
|
@@ -7041,7 +7057,7 @@ function create_if_block_3$2(ctx) {
|
|
|
7041
7057
|
return {
|
|
7042
7058
|
c() {
|
|
7043
7059
|
span = element("span");
|
|
7044
|
-
t = text(/*suffix*/ ctx[
|
|
7060
|
+
t = text(/*suffix*/ ctx[15]);
|
|
7045
7061
|
attr(span, "class", "suffix");
|
|
7046
7062
|
},
|
|
7047
7063
|
m(target, anchor) {
|
|
@@ -7049,7 +7065,7 @@ function create_if_block_3$2(ctx) {
|
|
|
7049
7065
|
append(span, t);
|
|
7050
7066
|
},
|
|
7051
7067
|
p(ctx, dirty) {
|
|
7052
|
-
if (dirty & /*suffix*/
|
|
7068
|
+
if (dirty[0] & /*suffix*/ 32768) set_data(t, /*suffix*/ ctx[15]);
|
|
7053
7069
|
},
|
|
7054
7070
|
d(detaching) {
|
|
7055
7071
|
if (detaching) detach(span);
|
|
@@ -7057,12 +7073,12 @@ function create_if_block_3$2(ctx) {
|
|
|
7057
7073
|
};
|
|
7058
7074
|
}
|
|
7059
7075
|
|
|
7060
|
-
// (
|
|
7076
|
+
// (139:2) {#if showCounter}
|
|
7061
7077
|
function create_if_block$7(ctx) {
|
|
7062
7078
|
let if_block_anchor;
|
|
7063
7079
|
|
|
7064
7080
|
function select_block_type(ctx, dirty) {
|
|
7065
|
-
if (/*maxcharcount*/ ctx[
|
|
7081
|
+
if (/*maxcharcount*/ ctx[16] > 0) return create_if_block_1$5;
|
|
7066
7082
|
if (/*value*/ ctx[0].length > 0) return create_if_block_2$4;
|
|
7067
7083
|
}
|
|
7068
7084
|
|
|
@@ -7101,7 +7117,7 @@ function create_if_block$7(ctx) {
|
|
|
7101
7117
|
};
|
|
7102
7118
|
}
|
|
7103
7119
|
|
|
7104
|
-
// (
|
|
7120
|
+
// (144:31)
|
|
7105
7121
|
function create_if_block_2$4(ctx) {
|
|
7106
7122
|
let div;
|
|
7107
7123
|
let t_value = /*value*/ ctx[0].length + "";
|
|
@@ -7118,7 +7134,7 @@ function create_if_block_2$4(ctx) {
|
|
|
7118
7134
|
append(div, t);
|
|
7119
7135
|
},
|
|
7120
7136
|
p(ctx, dirty) {
|
|
7121
|
-
if (dirty & /*value*/ 1 && t_value !== (t_value = /*value*/ ctx[0].length + "")) set_data(t, t_value);
|
|
7137
|
+
if (dirty[0] & /*value*/ 1 && t_value !== (t_value = /*value*/ ctx[0].length + "")) set_data(t, t_value);
|
|
7122
7138
|
},
|
|
7123
7139
|
d(detaching) {
|
|
7124
7140
|
if (detaching) detach(div);
|
|
@@ -7126,12 +7142,12 @@ function create_if_block_2$4(ctx) {
|
|
|
7126
7142
|
};
|
|
7127
7143
|
}
|
|
7128
7144
|
|
|
7129
|
-
// (
|
|
7145
|
+
// (140:4) {#if maxcharcount > 0}
|
|
7130
7146
|
function create_if_block_1$5(ctx) {
|
|
7131
7147
|
let div;
|
|
7132
7148
|
let t0_value = /*value*/ ctx[0].length + "";
|
|
7133
7149
|
let t0;
|
|
7134
|
-
let t1_value = `/${/*maxcharcount*/ ctx[
|
|
7150
|
+
let t1_value = `/${/*maxcharcount*/ ctx[16]}` + "";
|
|
7135
7151
|
let t1;
|
|
7136
7152
|
|
|
7137
7153
|
return {
|
|
@@ -7140,7 +7156,7 @@ function create_if_block_1$5(ctx) {
|
|
|
7140
7156
|
t0 = text(t0_value);
|
|
7141
7157
|
t1 = text(t1_value);
|
|
7142
7158
|
attr(div, "class", "counter");
|
|
7143
|
-
toggle_class(div, "counter-error", /*value*/ ctx[0].length > /*maxcharcount*/ ctx[
|
|
7159
|
+
toggle_class(div, "counter-error", /*value*/ ctx[0].length > /*maxcharcount*/ ctx[16]);
|
|
7144
7160
|
},
|
|
7145
7161
|
m(target, anchor) {
|
|
7146
7162
|
insert(target, div, anchor);
|
|
@@ -7148,11 +7164,11 @@ function create_if_block_1$5(ctx) {
|
|
|
7148
7164
|
append(div, t1);
|
|
7149
7165
|
},
|
|
7150
7166
|
p(ctx, dirty) {
|
|
7151
|
-
if (dirty & /*value*/ 1 && t0_value !== (t0_value = /*value*/ ctx[0].length + "")) set_data(t0, t0_value);
|
|
7152
|
-
if (dirty & /*maxcharcount*/
|
|
7167
|
+
if (dirty[0] & /*value*/ 1 && t0_value !== (t0_value = /*value*/ ctx[0].length + "")) set_data(t0, t0_value);
|
|
7168
|
+
if (dirty[0] & /*maxcharcount*/ 65536 && t1_value !== (t1_value = `/${/*maxcharcount*/ ctx[16]}` + "")) set_data(t1, t1_value);
|
|
7153
7169
|
|
|
7154
|
-
if (dirty & /*value, maxcharcount*/
|
|
7155
|
-
toggle_class(div, "counter-error", /*value*/ ctx[0].length > /*maxcharcount*/ ctx[
|
|
7170
|
+
if (dirty[0] & /*value, maxcharcount*/ 65537) {
|
|
7171
|
+
toggle_class(div, "counter-error", /*value*/ ctx[0].length > /*maxcharcount*/ ctx[16]);
|
|
7156
7172
|
}
|
|
7157
7173
|
},
|
|
7158
7174
|
d(detaching) {
|
|
@@ -7178,12 +7194,12 @@ function create_fragment$e(ctx) {
|
|
|
7178
7194
|
let div1_style_value;
|
|
7179
7195
|
let mounted;
|
|
7180
7196
|
let dispose;
|
|
7181
|
-
let if_block0 = /*prefix*/ ctx[
|
|
7182
|
-
let if_block1 = /*leadingicon*/ ctx[
|
|
7183
|
-
let if_block2 = /*trailingicon*/ ctx[
|
|
7184
|
-
let if_block3 = /*trailingicon*/ ctx[
|
|
7185
|
-
let if_block4 = /*suffix*/ ctx[
|
|
7186
|
-
let if_block5 = /*showCounter*/ ctx[
|
|
7197
|
+
let if_block0 = /*prefix*/ ctx[14] && create_if_block_7(ctx);
|
|
7198
|
+
let if_block1 = /*leadingicon*/ ctx[5] && create_if_block_6(ctx);
|
|
7199
|
+
let if_block2 = /*trailingicon*/ ctx[6] && !/*handlesTrailingIconClick*/ ctx[22] && create_if_block_5(ctx);
|
|
7200
|
+
let if_block3 = /*trailingicon*/ ctx[6] && /*handlesTrailingIconClick*/ ctx[22] && create_if_block_4(ctx);
|
|
7201
|
+
let if_block4 = /*suffix*/ ctx[15] && create_if_block_3$2(ctx);
|
|
7202
|
+
let if_block5 = /*showCounter*/ ctx[18] && create_if_block$7(ctx);
|
|
7187
7203
|
|
|
7188
7204
|
return {
|
|
7189
7205
|
c() {
|
|
@@ -7203,33 +7219,34 @@ function create_fragment$e(ctx) {
|
|
|
7203
7219
|
t5 = space();
|
|
7204
7220
|
if (if_block5) if_block5.c();
|
|
7205
7221
|
this.c = noop;
|
|
7206
|
-
attr(input, "class", input_class_value = `input--${/*variant*/ ctx[
|
|
7207
|
-
attr(input, "style", input_style_value = `--search-icon-offset: ${/*trailingicon*/ ctx[
|
|
7208
|
-
input.readOnly = /*isReadonly*/ ctx[
|
|
7209
|
-
input.disabled = /*isDisabled*/ ctx[
|
|
7210
|
-
attr(input, "data-testid", /*testid*/ ctx[
|
|
7222
|
+
attr(input, "class", input_class_value = `input--${/*variant*/ ctx[7]}`);
|
|
7223
|
+
attr(input, "style", input_style_value = `--search-icon-offset: ${/*trailingicon*/ ctx[6] ? "-0.5rem" : "0"}`);
|
|
7224
|
+
input.readOnly = /*isReadonly*/ ctx[21];
|
|
7225
|
+
input.disabled = /*isDisabled*/ ctx[19];
|
|
7226
|
+
attr(input, "data-testid", /*testid*/ ctx[8]);
|
|
7227
|
+
attr(input, "autocapitalize", /*autocapitalize*/ ctx[3]);
|
|
7211
7228
|
attr(input, "name", /*name*/ ctx[2]);
|
|
7212
7229
|
attr(input, "type", /*type*/ ctx[1]);
|
|
7213
7230
|
input.value = /*value*/ ctx[0];
|
|
7214
|
-
attr(input, "placeholder", /*placeholder*/ ctx[
|
|
7215
|
-
attr(input, "min", /*min*/ ctx[
|
|
7216
|
-
attr(input, "max", /*max*/ ctx[
|
|
7217
|
-
attr(input, "step", /*step*/ ctx[
|
|
7231
|
+
attr(input, "placeholder", /*placeholder*/ ctx[4]);
|
|
7232
|
+
attr(input, "min", /*min*/ ctx[11]);
|
|
7233
|
+
attr(input, "max", /*max*/ ctx[12]);
|
|
7234
|
+
attr(input, "step", /*step*/ ctx[13]);
|
|
7218
7235
|
attr(input, "role", "textbox");
|
|
7219
|
-
attr(input, "aria-label", input_aria_label_value = /*arialabel*/ ctx[
|
|
7236
|
+
attr(input, "aria-label", input_aria_label_value = /*arialabel*/ ctx[10] || /*name*/ ctx[2]);
|
|
7220
7237
|
|
|
7221
7238
|
attr(div0, "class", div0_class_value = `
|
|
7222
7239
|
goa-input
|
|
7223
|
-
${/*isDisabled*/ ctx[
|
|
7224
|
-
variant--${/*variant*/ ctx[
|
|
7240
|
+
${/*isDisabled*/ ctx[19] ? "goa-input--disabled" : ""}
|
|
7241
|
+
variant--${/*variant*/ ctx[7]}
|
|
7225
7242
|
type--${/*type*/ ctx[1]}
|
|
7226
7243
|
`);
|
|
7227
7244
|
|
|
7228
|
-
toggle_class(div0, "error", /*isError*/ ctx[
|
|
7245
|
+
toggle_class(div0, "error", /*isError*/ ctx[20]);
|
|
7229
7246
|
attr(div1, "class", "container");
|
|
7230
7247
|
|
|
7231
7248
|
attr(div1, "style", div1_style_value = `
|
|
7232
|
-
--width: ${/*width*/ ctx[
|
|
7249
|
+
--width: ${/*width*/ ctx[9]};
|
|
7233
7250
|
`);
|
|
7234
7251
|
},
|
|
7235
7252
|
m(target, anchor) {
|
|
@@ -7240,7 +7257,7 @@ function create_fragment$e(ctx) {
|
|
|
7240
7257
|
if (if_block1) if_block1.m(div0, null);
|
|
7241
7258
|
append(div0, t1);
|
|
7242
7259
|
append(div0, input);
|
|
7243
|
-
/*input_binding*/ ctx[
|
|
7260
|
+
/*input_binding*/ ctx[31](input);
|
|
7244
7261
|
append(div0, t2);
|
|
7245
7262
|
if (if_block2) if_block2.m(div0, null);
|
|
7246
7263
|
append(div0, t3);
|
|
@@ -7252,15 +7269,15 @@ function create_fragment$e(ctx) {
|
|
|
7252
7269
|
|
|
7253
7270
|
if (!mounted) {
|
|
7254
7271
|
dispose = [
|
|
7255
|
-
listen(input, "keyup", /*onKeyUp*/ ctx[
|
|
7256
|
-
listen(input, "change", /*onKeyUp*/ ctx[
|
|
7272
|
+
listen(input, "keyup", /*onKeyUp*/ ctx[23]),
|
|
7273
|
+
listen(input, "change", /*onKeyUp*/ ctx[23])
|
|
7257
7274
|
];
|
|
7258
7275
|
|
|
7259
7276
|
mounted = true;
|
|
7260
7277
|
}
|
|
7261
7278
|
},
|
|
7262
|
-
p(ctx,
|
|
7263
|
-
if (/*prefix*/ ctx[
|
|
7279
|
+
p(ctx, dirty) {
|
|
7280
|
+
if (/*prefix*/ ctx[14]) {
|
|
7264
7281
|
if (if_block0) {
|
|
7265
7282
|
if_block0.p(ctx, dirty);
|
|
7266
7283
|
} else {
|
|
@@ -7273,7 +7290,7 @@ function create_fragment$e(ctx) {
|
|
|
7273
7290
|
if_block0 = null;
|
|
7274
7291
|
}
|
|
7275
7292
|
|
|
7276
|
-
if (/*leadingicon*/ ctx[
|
|
7293
|
+
if (/*leadingicon*/ ctx[5]) {
|
|
7277
7294
|
if (if_block1) {
|
|
7278
7295
|
if_block1.p(ctx, dirty);
|
|
7279
7296
|
} else {
|
|
@@ -7286,59 +7303,63 @@ function create_fragment$e(ctx) {
|
|
|
7286
7303
|
if_block1 = null;
|
|
7287
7304
|
}
|
|
7288
7305
|
|
|
7289
|
-
if (dirty & /*variant*/
|
|
7306
|
+
if (dirty[0] & /*variant*/ 128 && input_class_value !== (input_class_value = `input--${/*variant*/ ctx[7]}`)) {
|
|
7290
7307
|
attr(input, "class", input_class_value);
|
|
7291
7308
|
}
|
|
7292
7309
|
|
|
7293
|
-
if (dirty & /*trailingicon*/
|
|
7310
|
+
if (dirty[0] & /*trailingicon*/ 64 && input_style_value !== (input_style_value = `--search-icon-offset: ${/*trailingicon*/ ctx[6] ? "-0.5rem" : "0"}`)) {
|
|
7294
7311
|
attr(input, "style", input_style_value);
|
|
7295
7312
|
}
|
|
7296
7313
|
|
|
7297
|
-
if (dirty & /*isReadonly*/
|
|
7298
|
-
input.readOnly = /*isReadonly*/ ctx[
|
|
7314
|
+
if (dirty[0] & /*isReadonly*/ 2097152) {
|
|
7315
|
+
input.readOnly = /*isReadonly*/ ctx[21];
|
|
7299
7316
|
}
|
|
7300
7317
|
|
|
7301
|
-
if (dirty & /*isDisabled*/
|
|
7302
|
-
input.disabled = /*isDisabled*/ ctx[
|
|
7318
|
+
if (dirty[0] & /*isDisabled*/ 524288) {
|
|
7319
|
+
input.disabled = /*isDisabled*/ ctx[19];
|
|
7303
7320
|
}
|
|
7304
7321
|
|
|
7305
|
-
if (dirty & /*testid*/
|
|
7306
|
-
attr(input, "data-testid", /*testid*/ ctx[
|
|
7322
|
+
if (dirty[0] & /*testid*/ 256) {
|
|
7323
|
+
attr(input, "data-testid", /*testid*/ ctx[8]);
|
|
7307
7324
|
}
|
|
7308
7325
|
|
|
7309
|
-
if (dirty & /*
|
|
7326
|
+
if (dirty[0] & /*autocapitalize*/ 8) {
|
|
7327
|
+
attr(input, "autocapitalize", /*autocapitalize*/ ctx[3]);
|
|
7328
|
+
}
|
|
7329
|
+
|
|
7330
|
+
if (dirty[0] & /*name*/ 4) {
|
|
7310
7331
|
attr(input, "name", /*name*/ ctx[2]);
|
|
7311
7332
|
}
|
|
7312
7333
|
|
|
7313
|
-
if (dirty & /*type*/ 2) {
|
|
7334
|
+
if (dirty[0] & /*type*/ 2) {
|
|
7314
7335
|
attr(input, "type", /*type*/ ctx[1]);
|
|
7315
7336
|
}
|
|
7316
7337
|
|
|
7317
|
-
if (dirty & /*value*/ 1 && input.value !== /*value*/ ctx[0]) {
|
|
7338
|
+
if (dirty[0] & /*value*/ 1 && input.value !== /*value*/ ctx[0]) {
|
|
7318
7339
|
input.value = /*value*/ ctx[0];
|
|
7319
7340
|
}
|
|
7320
7341
|
|
|
7321
|
-
if (dirty & /*placeholder*/
|
|
7322
|
-
attr(input, "placeholder", /*placeholder*/ ctx[
|
|
7342
|
+
if (dirty[0] & /*placeholder*/ 16) {
|
|
7343
|
+
attr(input, "placeholder", /*placeholder*/ ctx[4]);
|
|
7323
7344
|
}
|
|
7324
7345
|
|
|
7325
|
-
if (dirty & /*min*/
|
|
7326
|
-
attr(input, "min", /*min*/ ctx[
|
|
7346
|
+
if (dirty[0] & /*min*/ 2048) {
|
|
7347
|
+
attr(input, "min", /*min*/ ctx[11]);
|
|
7327
7348
|
}
|
|
7328
7349
|
|
|
7329
|
-
if (dirty & /*max*/
|
|
7330
|
-
attr(input, "max", /*max*/ ctx[
|
|
7350
|
+
if (dirty[0] & /*max*/ 4096) {
|
|
7351
|
+
attr(input, "max", /*max*/ ctx[12]);
|
|
7331
7352
|
}
|
|
7332
7353
|
|
|
7333
|
-
if (dirty & /*step*/
|
|
7334
|
-
attr(input, "step", /*step*/ ctx[
|
|
7354
|
+
if (dirty[0] & /*step*/ 8192) {
|
|
7355
|
+
attr(input, "step", /*step*/ ctx[13]);
|
|
7335
7356
|
}
|
|
7336
7357
|
|
|
7337
|
-
if (dirty & /*arialabel, name*/
|
|
7358
|
+
if (dirty[0] & /*arialabel, name*/ 1028 && input_aria_label_value !== (input_aria_label_value = /*arialabel*/ ctx[10] || /*name*/ ctx[2])) {
|
|
7338
7359
|
attr(input, "aria-label", input_aria_label_value);
|
|
7339
7360
|
}
|
|
7340
7361
|
|
|
7341
|
-
if (/*trailingicon*/ ctx[
|
|
7362
|
+
if (/*trailingicon*/ ctx[6] && !/*handlesTrailingIconClick*/ ctx[22]) {
|
|
7342
7363
|
if (if_block2) {
|
|
7343
7364
|
if_block2.p(ctx, dirty);
|
|
7344
7365
|
} else {
|
|
@@ -7351,7 +7372,7 @@ function create_fragment$e(ctx) {
|
|
|
7351
7372
|
if_block2 = null;
|
|
7352
7373
|
}
|
|
7353
7374
|
|
|
7354
|
-
if (/*trailingicon*/ ctx[
|
|
7375
|
+
if (/*trailingicon*/ ctx[6] && /*handlesTrailingIconClick*/ ctx[22]) {
|
|
7355
7376
|
if (if_block3) {
|
|
7356
7377
|
if_block3.p(ctx, dirty);
|
|
7357
7378
|
} else {
|
|
@@ -7364,7 +7385,7 @@ function create_fragment$e(ctx) {
|
|
|
7364
7385
|
if_block3 = null;
|
|
7365
7386
|
}
|
|
7366
7387
|
|
|
7367
|
-
if (/*suffix*/ ctx[
|
|
7388
|
+
if (/*suffix*/ ctx[15]) {
|
|
7368
7389
|
if (if_block4) {
|
|
7369
7390
|
if_block4.p(ctx, dirty);
|
|
7370
7391
|
} else {
|
|
@@ -7377,20 +7398,20 @@ function create_fragment$e(ctx) {
|
|
|
7377
7398
|
if_block4 = null;
|
|
7378
7399
|
}
|
|
7379
7400
|
|
|
7380
|
-
if (dirty & /*isDisabled, variant, type*/
|
|
7401
|
+
if (dirty[0] & /*isDisabled, variant, type*/ 524418 && div0_class_value !== (div0_class_value = `
|
|
7381
7402
|
goa-input
|
|
7382
|
-
${/*isDisabled*/ ctx[
|
|
7383
|
-
variant--${/*variant*/ ctx[
|
|
7403
|
+
${/*isDisabled*/ ctx[19] ? "goa-input--disabled" : ""}
|
|
7404
|
+
variant--${/*variant*/ ctx[7]}
|
|
7384
7405
|
type--${/*type*/ ctx[1]}
|
|
7385
7406
|
`)) {
|
|
7386
7407
|
attr(div0, "class", div0_class_value);
|
|
7387
7408
|
}
|
|
7388
7409
|
|
|
7389
|
-
if (dirty & /*isDisabled, variant, type, isError*/
|
|
7390
|
-
toggle_class(div0, "error", /*isError*/ ctx[
|
|
7410
|
+
if (dirty[0] & /*isDisabled, variant, type, isError*/ 1572994) {
|
|
7411
|
+
toggle_class(div0, "error", /*isError*/ ctx[20]);
|
|
7391
7412
|
}
|
|
7392
7413
|
|
|
7393
|
-
if (/*showCounter*/ ctx[
|
|
7414
|
+
if (/*showCounter*/ ctx[18]) {
|
|
7394
7415
|
if (if_block5) {
|
|
7395
7416
|
if_block5.p(ctx, dirty);
|
|
7396
7417
|
} else {
|
|
@@ -7403,8 +7424,8 @@ function create_fragment$e(ctx) {
|
|
|
7403
7424
|
if_block5 = null;
|
|
7404
7425
|
}
|
|
7405
7426
|
|
|
7406
|
-
if (dirty & /*width*/
|
|
7407
|
-
--width: ${/*width*/ ctx[
|
|
7427
|
+
if (dirty[0] & /*width*/ 512 && div1_style_value !== (div1_style_value = `
|
|
7428
|
+
--width: ${/*width*/ ctx[9]};
|
|
7408
7429
|
`)) {
|
|
7409
7430
|
attr(div1, "style", div1_style_value);
|
|
7410
7431
|
}
|
|
@@ -7415,7 +7436,7 @@ function create_fragment$e(ctx) {
|
|
|
7415
7436
|
if (detaching) detach(div1);
|
|
7416
7437
|
if (if_block0) if_block0.d();
|
|
7417
7438
|
if (if_block1) if_block1.d();
|
|
7418
|
-
/*input_binding*/ ctx[
|
|
7439
|
+
/*input_binding*/ ctx[31](null);
|
|
7419
7440
|
if (if_block2) if_block2.d();
|
|
7420
7441
|
if (if_block3) if_block3.d();
|
|
7421
7442
|
if (if_block4) if_block4.d();
|
|
@@ -7440,6 +7461,7 @@ function instance$c($$self, $$props, $$invalidate) {
|
|
|
7440
7461
|
let { type = "text" } = $$props;
|
|
7441
7462
|
let { name = "" } = $$props;
|
|
7442
7463
|
let { value = "" } = $$props;
|
|
7464
|
+
let { autocapitalize = "off" } = $$props;
|
|
7443
7465
|
let { placeholder = "" } = $$props;
|
|
7444
7466
|
let { leadingicon = null } = $$props;
|
|
7445
7467
|
let { trailingicon = null } = $$props;
|
|
@@ -7476,7 +7498,7 @@ function instance$c($$self, $$props, $$invalidate) {
|
|
|
7476
7498
|
function input_binding($$value) {
|
|
7477
7499
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
7478
7500
|
inputEl = $$value;
|
|
7479
|
-
$$invalidate(
|
|
7501
|
+
$$invalidate(17, inputEl);
|
|
7480
7502
|
});
|
|
7481
7503
|
}
|
|
7482
7504
|
|
|
@@ -7484,59 +7506,60 @@ function instance$c($$self, $$props, $$invalidate) {
|
|
|
7484
7506
|
if ('type' in $$props) $$invalidate(1, type = $$props.type);
|
|
7485
7507
|
if ('name' in $$props) $$invalidate(2, name = $$props.name);
|
|
7486
7508
|
if ('value' in $$props) $$invalidate(0, value = $$props.value);
|
|
7487
|
-
if ('
|
|
7488
|
-
if ('
|
|
7489
|
-
if ('
|
|
7490
|
-
if ('
|
|
7491
|
-
if ('
|
|
7492
|
-
if ('
|
|
7493
|
-
if ('
|
|
7494
|
-
if ('
|
|
7495
|
-
if ('
|
|
7496
|
-
if ('
|
|
7497
|
-
if ('
|
|
7498
|
-
if ('
|
|
7499
|
-
if ('
|
|
7500
|
-
if ('
|
|
7501
|
-
if ('
|
|
7502
|
-
if ('
|
|
7503
|
-
if ('
|
|
7504
|
-
if ('
|
|
7505
|
-
if ('
|
|
7509
|
+
if ('autocapitalize' in $$props) $$invalidate(3, autocapitalize = $$props.autocapitalize);
|
|
7510
|
+
if ('placeholder' in $$props) $$invalidate(4, placeholder = $$props.placeholder);
|
|
7511
|
+
if ('leadingicon' in $$props) $$invalidate(5, leadingicon = $$props.leadingicon);
|
|
7512
|
+
if ('trailingicon' in $$props) $$invalidate(6, trailingicon = $$props.trailingicon);
|
|
7513
|
+
if ('variant' in $$props) $$invalidate(7, variant = $$props.variant);
|
|
7514
|
+
if ('disabled' in $$props) $$invalidate(24, disabled = $$props.disabled);
|
|
7515
|
+
if ('handletrailingiconclick' in $$props) $$invalidate(25, handletrailingiconclick = $$props.handletrailingiconclick);
|
|
7516
|
+
if ('focused' in $$props) $$invalidate(26, focused = $$props.focused);
|
|
7517
|
+
if ('readonly' in $$props) $$invalidate(27, readonly = $$props.readonly);
|
|
7518
|
+
if ('error' in $$props) $$invalidate(28, error = $$props.error);
|
|
7519
|
+
if ('testid' in $$props) $$invalidate(8, testid = $$props.testid);
|
|
7520
|
+
if ('width' in $$props) $$invalidate(9, width = $$props.width);
|
|
7521
|
+
if ('arialabel' in $$props) $$invalidate(10, arialabel = $$props.arialabel);
|
|
7522
|
+
if ('min' in $$props) $$invalidate(11, min = $$props.min);
|
|
7523
|
+
if ('max' in $$props) $$invalidate(12, max = $$props.max);
|
|
7524
|
+
if ('step' in $$props) $$invalidate(13, step = $$props.step);
|
|
7525
|
+
if ('prefix' in $$props) $$invalidate(14, prefix = $$props.prefix);
|
|
7526
|
+
if ('suffix' in $$props) $$invalidate(15, suffix = $$props.suffix);
|
|
7527
|
+
if ('showcounter' in $$props) $$invalidate(29, showcounter = $$props.showcounter);
|
|
7528
|
+
if ('maxcharcount' in $$props) $$invalidate(16, maxcharcount = $$props.maxcharcount);
|
|
7506
7529
|
};
|
|
7507
7530
|
|
|
7508
7531
|
$$self.$$.update = () => {
|
|
7509
|
-
if ($$self.$$.dirty & /*handletrailingiconclick*/
|
|
7510
|
-
$$invalidate(
|
|
7532
|
+
if ($$self.$$.dirty[0] & /*handletrailingiconclick*/ 33554432) {
|
|
7533
|
+
$$invalidate(22, handlesTrailingIconClick = toBoolean(handletrailingiconclick));
|
|
7511
7534
|
}
|
|
7512
7535
|
|
|
7513
|
-
if ($$self.$$.dirty & /*focused*/
|
|
7514
|
-
$$invalidate(
|
|
7536
|
+
if ($$self.$$.dirty[0] & /*focused*/ 67108864) {
|
|
7537
|
+
$$invalidate(30, isFocused = toBoolean(focused));
|
|
7515
7538
|
}
|
|
7516
7539
|
|
|
7517
|
-
if ($$self.$$.dirty & /*readonly*/
|
|
7518
|
-
$$invalidate(
|
|
7540
|
+
if ($$self.$$.dirty[0] & /*readonly*/ 134217728) {
|
|
7541
|
+
$$invalidate(21, isReadonly = toBoolean(readonly));
|
|
7519
7542
|
}
|
|
7520
7543
|
|
|
7521
|
-
if ($$self.$$.dirty & /*error*/
|
|
7522
|
-
$$invalidate(
|
|
7544
|
+
if ($$self.$$.dirty[0] & /*error*/ 268435456) {
|
|
7545
|
+
$$invalidate(20, isError = toBoolean(error));
|
|
7523
7546
|
}
|
|
7524
7547
|
|
|
7525
|
-
if ($$self.$$.dirty & /*disabled*/
|
|
7526
|
-
$$invalidate(
|
|
7548
|
+
if ($$self.$$.dirty[0] & /*disabled*/ 16777216) {
|
|
7549
|
+
$$invalidate(19, isDisabled = toBoolean(disabled));
|
|
7527
7550
|
}
|
|
7528
7551
|
|
|
7529
|
-
if ($$self.$$.dirty & /*showcounter*/
|
|
7530
|
-
$$invalidate(
|
|
7552
|
+
if ($$self.$$.dirty[0] & /*showcounter*/ 536870912) {
|
|
7553
|
+
$$invalidate(18, showCounter = toBoolean(showcounter));
|
|
7531
7554
|
}
|
|
7532
7555
|
|
|
7533
|
-
if ($$self.$$.dirty & /*isFocused, inputEl*/
|
|
7556
|
+
if ($$self.$$.dirty[0] & /*isFocused, inputEl*/ 1073872896) {
|
|
7534
7557
|
if (isFocused && inputEl) {
|
|
7535
7558
|
setTimeout(() => inputEl.focus(), 1);
|
|
7536
7559
|
}
|
|
7537
7560
|
}
|
|
7538
7561
|
|
|
7539
|
-
if ($$self.$$.dirty & /*inputEl, type*/
|
|
7562
|
+
if ($$self.$$.dirty[0] & /*inputEl, type*/ 131074) {
|
|
7540
7563
|
if (inputEl && type === "search") {
|
|
7541
7564
|
inputEl.addEventListener("search", e => {
|
|
7542
7565
|
onKeyUp(e);
|
|
@@ -7549,6 +7572,7 @@ function instance$c($$self, $$props, $$invalidate) {
|
|
|
7549
7572
|
value,
|
|
7550
7573
|
type,
|
|
7551
7574
|
name,
|
|
7575
|
+
autocapitalize,
|
|
7552
7576
|
placeholder,
|
|
7553
7577
|
leadingicon,
|
|
7554
7578
|
trailingicon,
|
|
@@ -7601,27 +7625,29 @@ class Input extends SvelteElement {
|
|
|
7601
7625
|
type: 1,
|
|
7602
7626
|
name: 2,
|
|
7603
7627
|
value: 0,
|
|
7604
|
-
|
|
7605
|
-
|
|
7606
|
-
|
|
7607
|
-
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
|
|
7622
|
-
|
|
7628
|
+
autocapitalize: 3,
|
|
7629
|
+
placeholder: 4,
|
|
7630
|
+
leadingicon: 5,
|
|
7631
|
+
trailingicon: 6,
|
|
7632
|
+
variant: 7,
|
|
7633
|
+
disabled: 24,
|
|
7634
|
+
handletrailingiconclick: 25,
|
|
7635
|
+
focused: 26,
|
|
7636
|
+
readonly: 27,
|
|
7637
|
+
error: 28,
|
|
7638
|
+
testid: 8,
|
|
7639
|
+
width: 9,
|
|
7640
|
+
arialabel: 10,
|
|
7641
|
+
min: 11,
|
|
7642
|
+
max: 12,
|
|
7643
|
+
step: 13,
|
|
7644
|
+
prefix: 14,
|
|
7645
|
+
suffix: 15,
|
|
7646
|
+
showcounter: 29,
|
|
7647
|
+
maxcharcount: 16
|
|
7623
7648
|
},
|
|
7624
|
-
null
|
|
7649
|
+
null,
|
|
7650
|
+
[-1, -1]
|
|
7625
7651
|
);
|
|
7626
7652
|
|
|
7627
7653
|
if (options) {
|
|
@@ -7641,6 +7667,7 @@ class Input extends SvelteElement {
|
|
|
7641
7667
|
"type",
|
|
7642
7668
|
"name",
|
|
7643
7669
|
"value",
|
|
7670
|
+
"autocapitalize",
|
|
7644
7671
|
"placeholder",
|
|
7645
7672
|
"leadingicon",
|
|
7646
7673
|
"trailingicon",
|
|
@@ -7690,17 +7717,26 @@ class Input extends SvelteElement {
|
|
|
7690
7717
|
flush();
|
|
7691
7718
|
}
|
|
7692
7719
|
|
|
7693
|
-
get
|
|
7720
|
+
get autocapitalize() {
|
|
7694
7721
|
return this.$$.ctx[3];
|
|
7695
7722
|
}
|
|
7696
7723
|
|
|
7724
|
+
set autocapitalize(autocapitalize) {
|
|
7725
|
+
this.$$set({ autocapitalize });
|
|
7726
|
+
flush();
|
|
7727
|
+
}
|
|
7728
|
+
|
|
7729
|
+
get placeholder() {
|
|
7730
|
+
return this.$$.ctx[4];
|
|
7731
|
+
}
|
|
7732
|
+
|
|
7697
7733
|
set placeholder(placeholder) {
|
|
7698
7734
|
this.$$set({ placeholder });
|
|
7699
7735
|
flush();
|
|
7700
7736
|
}
|
|
7701
7737
|
|
|
7702
7738
|
get leadingicon() {
|
|
7703
|
-
return this.$$.ctx[
|
|
7739
|
+
return this.$$.ctx[5];
|
|
7704
7740
|
}
|
|
7705
7741
|
|
|
7706
7742
|
set leadingicon(leadingicon) {
|
|
@@ -7709,7 +7745,7 @@ class Input extends SvelteElement {
|
|
|
7709
7745
|
}
|
|
7710
7746
|
|
|
7711
7747
|
get trailingicon() {
|
|
7712
|
-
return this.$$.ctx[
|
|
7748
|
+
return this.$$.ctx[6];
|
|
7713
7749
|
}
|
|
7714
7750
|
|
|
7715
7751
|
set trailingicon(trailingicon) {
|
|
@@ -7718,7 +7754,7 @@ class Input extends SvelteElement {
|
|
|
7718
7754
|
}
|
|
7719
7755
|
|
|
7720
7756
|
get variant() {
|
|
7721
|
-
return this.$$.ctx[
|
|
7757
|
+
return this.$$.ctx[7];
|
|
7722
7758
|
}
|
|
7723
7759
|
|
|
7724
7760
|
set variant(variant) {
|
|
@@ -7727,7 +7763,7 @@ class Input extends SvelteElement {
|
|
|
7727
7763
|
}
|
|
7728
7764
|
|
|
7729
7765
|
get disabled() {
|
|
7730
|
-
return this.$$.ctx[
|
|
7766
|
+
return this.$$.ctx[24];
|
|
7731
7767
|
}
|
|
7732
7768
|
|
|
7733
7769
|
set disabled(disabled) {
|
|
@@ -7736,7 +7772,7 @@ class Input extends SvelteElement {
|
|
|
7736
7772
|
}
|
|
7737
7773
|
|
|
7738
7774
|
get handletrailingiconclick() {
|
|
7739
|
-
return this.$$.ctx[
|
|
7775
|
+
return this.$$.ctx[25];
|
|
7740
7776
|
}
|
|
7741
7777
|
|
|
7742
7778
|
set handletrailingiconclick(handletrailingiconclick) {
|
|
@@ -7745,7 +7781,7 @@ class Input extends SvelteElement {
|
|
|
7745
7781
|
}
|
|
7746
7782
|
|
|
7747
7783
|
get focused() {
|
|
7748
|
-
return this.$$.ctx[
|
|
7784
|
+
return this.$$.ctx[26];
|
|
7749
7785
|
}
|
|
7750
7786
|
|
|
7751
7787
|
set focused(focused) {
|
|
@@ -7754,7 +7790,7 @@ class Input extends SvelteElement {
|
|
|
7754
7790
|
}
|
|
7755
7791
|
|
|
7756
7792
|
get readonly() {
|
|
7757
|
-
return this.$$.ctx[
|
|
7793
|
+
return this.$$.ctx[27];
|
|
7758
7794
|
}
|
|
7759
7795
|
|
|
7760
7796
|
set readonly(readonly) {
|
|
@@ -7763,7 +7799,7 @@ class Input extends SvelteElement {
|
|
|
7763
7799
|
}
|
|
7764
7800
|
|
|
7765
7801
|
get error() {
|
|
7766
|
-
return this.$$.ctx[
|
|
7802
|
+
return this.$$.ctx[28];
|
|
7767
7803
|
}
|
|
7768
7804
|
|
|
7769
7805
|
set error(error) {
|
|
@@ -7772,7 +7808,7 @@ class Input extends SvelteElement {
|
|
|
7772
7808
|
}
|
|
7773
7809
|
|
|
7774
7810
|
get testid() {
|
|
7775
|
-
return this.$$.ctx[
|
|
7811
|
+
return this.$$.ctx[8];
|
|
7776
7812
|
}
|
|
7777
7813
|
|
|
7778
7814
|
set testid(testid) {
|
|
@@ -7781,7 +7817,7 @@ class Input extends SvelteElement {
|
|
|
7781
7817
|
}
|
|
7782
7818
|
|
|
7783
7819
|
get width() {
|
|
7784
|
-
return this.$$.ctx[
|
|
7820
|
+
return this.$$.ctx[9];
|
|
7785
7821
|
}
|
|
7786
7822
|
|
|
7787
7823
|
set width(width) {
|
|
@@ -7790,7 +7826,7 @@ class Input extends SvelteElement {
|
|
|
7790
7826
|
}
|
|
7791
7827
|
|
|
7792
7828
|
get arialabel() {
|
|
7793
|
-
return this.$$.ctx[
|
|
7829
|
+
return this.$$.ctx[10];
|
|
7794
7830
|
}
|
|
7795
7831
|
|
|
7796
7832
|
set arialabel(arialabel) {
|
|
@@ -7799,7 +7835,7 @@ class Input extends SvelteElement {
|
|
|
7799
7835
|
}
|
|
7800
7836
|
|
|
7801
7837
|
get min() {
|
|
7802
|
-
return this.$$.ctx[
|
|
7838
|
+
return this.$$.ctx[11];
|
|
7803
7839
|
}
|
|
7804
7840
|
|
|
7805
7841
|
set min(min) {
|
|
@@ -7808,7 +7844,7 @@ class Input extends SvelteElement {
|
|
|
7808
7844
|
}
|
|
7809
7845
|
|
|
7810
7846
|
get max() {
|
|
7811
|
-
return this.$$.ctx[
|
|
7847
|
+
return this.$$.ctx[12];
|
|
7812
7848
|
}
|
|
7813
7849
|
|
|
7814
7850
|
set max(max) {
|
|
@@ -7817,7 +7853,7 @@ class Input extends SvelteElement {
|
|
|
7817
7853
|
}
|
|
7818
7854
|
|
|
7819
7855
|
get step() {
|
|
7820
|
-
return this.$$.ctx[
|
|
7856
|
+
return this.$$.ctx[13];
|
|
7821
7857
|
}
|
|
7822
7858
|
|
|
7823
7859
|
set step(step) {
|
|
@@ -7826,7 +7862,7 @@ class Input extends SvelteElement {
|
|
|
7826
7862
|
}
|
|
7827
7863
|
|
|
7828
7864
|
get prefix() {
|
|
7829
|
-
return this.$$.ctx[
|
|
7865
|
+
return this.$$.ctx[14];
|
|
7830
7866
|
}
|
|
7831
7867
|
|
|
7832
7868
|
set prefix(prefix) {
|
|
@@ -7835,7 +7871,7 @@ class Input extends SvelteElement {
|
|
|
7835
7871
|
}
|
|
7836
7872
|
|
|
7837
7873
|
get suffix() {
|
|
7838
|
-
return this.$$.ctx[
|
|
7874
|
+
return this.$$.ctx[15];
|
|
7839
7875
|
}
|
|
7840
7876
|
|
|
7841
7877
|
set suffix(suffix) {
|
|
@@ -7844,7 +7880,7 @@ class Input extends SvelteElement {
|
|
|
7844
7880
|
}
|
|
7845
7881
|
|
|
7846
7882
|
get showcounter() {
|
|
7847
|
-
return this.$$.ctx[
|
|
7883
|
+
return this.$$.ctx[29];
|
|
7848
7884
|
}
|
|
7849
7885
|
|
|
7850
7886
|
set showcounter(showcounter) {
|
|
@@ -7853,7 +7889,7 @@ class Input extends SvelteElement {
|
|
|
7853
7889
|
}
|
|
7854
7890
|
|
|
7855
7891
|
get maxcharcount() {
|
|
7856
|
-
return this.$$.ctx[
|
|
7892
|
+
return this.$$.ctx[16];
|
|
7857
7893
|
}
|
|
7858
7894
|
|
|
7859
7895
|
set maxcharcount(maxcharcount) {
|