@abgov/web-components 1.0.0-alpha.174 → 1.0.0-alpha.175
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 +118 -60
- package/web-components.umd.js +60 -48
package/package.json
CHANGED
package/web-components.es.js
CHANGED
|
@@ -9073,7 +9073,7 @@ function create_if_block_4(ctx) {
|
|
|
9073
9073
|
};
|
|
9074
9074
|
}
|
|
9075
9075
|
|
|
9076
|
-
// (
|
|
9076
|
+
// (123:4) {#if leadingicon}
|
|
9077
9077
|
function create_if_block_3$4(ctx) {
|
|
9078
9078
|
let goa_icon;
|
|
9079
9079
|
|
|
@@ -9098,7 +9098,7 @@ function create_if_block_3$4(ctx) {
|
|
|
9098
9098
|
};
|
|
9099
9099
|
}
|
|
9100
9100
|
|
|
9101
|
-
// (
|
|
9101
|
+
// (157:4) {#if trailingicon && !handlesTrailingIconClick}
|
|
9102
9102
|
function create_if_block_2$4(ctx) {
|
|
9103
9103
|
let goa_icon;
|
|
9104
9104
|
|
|
@@ -9124,7 +9124,7 @@ function create_if_block_2$4(ctx) {
|
|
|
9124
9124
|
};
|
|
9125
9125
|
}
|
|
9126
9126
|
|
|
9127
|
-
// (
|
|
9127
|
+
// (167:4) {#if trailingicon && handlesTrailingIconClick}
|
|
9128
9128
|
function create_if_block_1$4(ctx) {
|
|
9129
9129
|
let goa_icon_button;
|
|
9130
9130
|
let mounted;
|
|
@@ -9133,7 +9133,7 @@ function create_if_block_1$4(ctx) {
|
|
|
9133
9133
|
return {
|
|
9134
9134
|
c() {
|
|
9135
9135
|
goa_icon_button = element("goa-icon-button");
|
|
9136
|
-
set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[
|
|
9136
|
+
set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[24]);
|
|
9137
9137
|
set_custom_element_data(goa_icon_button, "variant", "nocolor");
|
|
9138
9138
|
set_custom_element_data(goa_icon_button, "size", "medium");
|
|
9139
9139
|
set_custom_element_data(goa_icon_button, "icon", /*trailingicon*/ ctx[6]);
|
|
@@ -9148,8 +9148,8 @@ function create_if_block_1$4(ctx) {
|
|
|
9148
9148
|
}
|
|
9149
9149
|
},
|
|
9150
9150
|
p(ctx, dirty) {
|
|
9151
|
-
if (dirty[0] & /*isDisabled*/
|
|
9152
|
-
set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[
|
|
9151
|
+
if (dirty[0] & /*isDisabled*/ 16777216) {
|
|
9152
|
+
set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[24]);
|
|
9153
9153
|
}
|
|
9154
9154
|
|
|
9155
9155
|
if (dirty[0] & /*trailingicon*/ 64) {
|
|
@@ -9164,7 +9164,7 @@ function create_if_block_1$4(ctx) {
|
|
|
9164
9164
|
};
|
|
9165
9165
|
}
|
|
9166
9166
|
|
|
9167
|
-
// (
|
|
9167
|
+
// (179:4) {#if suffix}
|
|
9168
9168
|
function create_if_block$a(ctx) {
|
|
9169
9169
|
let span;
|
|
9170
9170
|
let t;
|
|
@@ -9210,8 +9210,8 @@ function create_fragment$k(ctx) {
|
|
|
9210
9210
|
let dispose;
|
|
9211
9211
|
let if_block0 = /*prefix*/ ctx[14] && create_if_block_4(ctx);
|
|
9212
9212
|
let if_block1 = /*leadingicon*/ ctx[5] && create_if_block_3$4(ctx);
|
|
9213
|
-
let if_block2 = /*trailingicon*/ ctx[6] && !/*handlesTrailingIconClick*/ ctx[
|
|
9214
|
-
let if_block3 = /*trailingicon*/ ctx[6] && /*handlesTrailingIconClick*/ ctx[
|
|
9213
|
+
let if_block2 = /*trailingicon*/ ctx[6] && !/*handlesTrailingIconClick*/ ctx[27] && create_if_block_2$4(ctx);
|
|
9214
|
+
let if_block3 = /*trailingicon*/ ctx[6] && /*handlesTrailingIconClick*/ ctx[27] && create_if_block_1$4(ctx);
|
|
9215
9215
|
let if_block4 = /*suffix*/ ctx[15] && create_if_block$a(ctx);
|
|
9216
9216
|
|
|
9217
9217
|
return {
|
|
@@ -9237,10 +9237,20 @@ function create_fragment$k(ctx) {
|
|
|
9237
9237
|
div1.innerHTML = `<slot name="trailingContent"></slot>`;
|
|
9238
9238
|
this.c = noop;
|
|
9239
9239
|
attr(div0, "class", "leading-content");
|
|
9240
|
-
|
|
9240
|
+
|
|
9241
|
+
attr(input, "class", input_class_value = `
|
|
9242
|
+
input--${/*variant*/ ctx[7]}
|
|
9243
|
+
${/*_leadingContentSlot*/ ctx[22] && !/*isDisabled*/ ctx[24]
|
|
9244
|
+
? "input-leading-content"
|
|
9245
|
+
: ""}
|
|
9246
|
+
${/*_trailingContentSlot*/ ctx[23] && !/*isDisabled*/ ctx[24]
|
|
9247
|
+
? "input-trailing-content"
|
|
9248
|
+
: ""}
|
|
9249
|
+
`);
|
|
9250
|
+
|
|
9241
9251
|
attr(input, "style", input_style_value = `--search-icon-offset: ${/*trailingicon*/ ctx[6] ? "-0.5rem" : "0"}`);
|
|
9242
|
-
input.readOnly = /*isReadonly*/ ctx[
|
|
9243
|
-
input.disabled = /*isDisabled*/ ctx[
|
|
9252
|
+
input.readOnly = /*isReadonly*/ ctx[26];
|
|
9253
|
+
input.disabled = /*isDisabled*/ ctx[24];
|
|
9244
9254
|
attr(input, "data-testid", /*testid*/ ctx[8]);
|
|
9245
9255
|
attr(input, "autocapitalize", /*autocapitalize*/ ctx[3]);
|
|
9246
9256
|
attr(input, "name", /*name*/ ctx[2]);
|
|
@@ -9256,12 +9266,18 @@ function create_fragment$k(ctx) {
|
|
|
9256
9266
|
|
|
9257
9267
|
attr(div2, "class", div2_class_value = `
|
|
9258
9268
|
goa-input
|
|
9259
|
-
${/*isDisabled*/ ctx[
|
|
9269
|
+
${/*isDisabled*/ ctx[24] ? "goa-input--disabled" : ""}
|
|
9260
9270
|
variant--${/*variant*/ ctx[7]}
|
|
9261
9271
|
type--${/*type*/ ctx[1]}
|
|
9272
|
+
${/*_leadingContentSlot*/ ctx[22]
|
|
9273
|
+
? "goa-input-leading-content"
|
|
9274
|
+
: ""}
|
|
9275
|
+
${/*_trailingContentSlot*/ ctx[23]
|
|
9276
|
+
? "goa-input-trailing-content"
|
|
9277
|
+
: ""}
|
|
9262
9278
|
`);
|
|
9263
9279
|
|
|
9264
|
-
toggle_class(div2, "error", /*isError*/ ctx[
|
|
9280
|
+
toggle_class(div2, "error", /*isError*/ ctx[25]);
|
|
9265
9281
|
attr(div3, "class", "container");
|
|
9266
9282
|
|
|
9267
9283
|
attr(div3, "style", div3_style_value = `
|
|
@@ -9279,7 +9295,7 @@ function create_fragment$k(ctx) {
|
|
|
9279
9295
|
if (if_block1) if_block1.m(div2, null);
|
|
9280
9296
|
append(div2, t2);
|
|
9281
9297
|
append(div2, input);
|
|
9282
|
-
/*input_binding*/ ctx[
|
|
9298
|
+
/*input_binding*/ ctx[36](input);
|
|
9283
9299
|
append(div2, t3);
|
|
9284
9300
|
if (if_block2) if_block2.m(div2, null);
|
|
9285
9301
|
append(div2, t4);
|
|
@@ -9288,11 +9304,12 @@ function create_fragment$k(ctx) {
|
|
|
9288
9304
|
if (if_block4) if_block4.m(div2, null);
|
|
9289
9305
|
append(div2, t6);
|
|
9290
9306
|
append(div2, div1);
|
|
9307
|
+
/*div3_binding*/ ctx[37](div3);
|
|
9291
9308
|
|
|
9292
9309
|
if (!mounted) {
|
|
9293
9310
|
dispose = [
|
|
9294
|
-
listen(input, "keyup", /*onKeyUp*/ ctx[
|
|
9295
|
-
listen(input, "change", /*onKeyUp*/ ctx[
|
|
9311
|
+
listen(input, "keyup", /*onKeyUp*/ ctx[28]),
|
|
9312
|
+
listen(input, "change", /*onKeyUp*/ ctx[28])
|
|
9296
9313
|
];
|
|
9297
9314
|
|
|
9298
9315
|
mounted = true;
|
|
@@ -9325,7 +9342,15 @@ function create_fragment$k(ctx) {
|
|
|
9325
9342
|
if_block1 = null;
|
|
9326
9343
|
}
|
|
9327
9344
|
|
|
9328
|
-
if (dirty[0] & /*variant*/
|
|
9345
|
+
if (dirty[0] & /*variant, _leadingContentSlot, isDisabled, _trailingContentSlot*/ 29360256 && input_class_value !== (input_class_value = `
|
|
9346
|
+
input--${/*variant*/ ctx[7]}
|
|
9347
|
+
${/*_leadingContentSlot*/ ctx[22] && !/*isDisabled*/ ctx[24]
|
|
9348
|
+
? "input-leading-content"
|
|
9349
|
+
: ""}
|
|
9350
|
+
${/*_trailingContentSlot*/ ctx[23] && !/*isDisabled*/ ctx[24]
|
|
9351
|
+
? "input-trailing-content"
|
|
9352
|
+
: ""}
|
|
9353
|
+
`)) {
|
|
9329
9354
|
attr(input, "class", input_class_value);
|
|
9330
9355
|
}
|
|
9331
9356
|
|
|
@@ -9333,12 +9358,12 @@ function create_fragment$k(ctx) {
|
|
|
9333
9358
|
attr(input, "style", input_style_value);
|
|
9334
9359
|
}
|
|
9335
9360
|
|
|
9336
|
-
if (dirty[0] & /*isReadonly*/
|
|
9337
|
-
input.readOnly = /*isReadonly*/ ctx[
|
|
9361
|
+
if (dirty[0] & /*isReadonly*/ 67108864) {
|
|
9362
|
+
input.readOnly = /*isReadonly*/ ctx[26];
|
|
9338
9363
|
}
|
|
9339
9364
|
|
|
9340
|
-
if (dirty[0] & /*isDisabled*/
|
|
9341
|
-
input.disabled = /*isDisabled*/ ctx[
|
|
9365
|
+
if (dirty[0] & /*isDisabled*/ 16777216) {
|
|
9366
|
+
input.disabled = /*isDisabled*/ ctx[24];
|
|
9342
9367
|
}
|
|
9343
9368
|
|
|
9344
9369
|
if (dirty[0] & /*testid*/ 256) {
|
|
@@ -9381,7 +9406,7 @@ function create_fragment$k(ctx) {
|
|
|
9381
9406
|
attr(input, "aria-label", input_aria_label_value);
|
|
9382
9407
|
}
|
|
9383
9408
|
|
|
9384
|
-
if (/*trailingicon*/ ctx[6] && !/*handlesTrailingIconClick*/ ctx[
|
|
9409
|
+
if (/*trailingicon*/ ctx[6] && !/*handlesTrailingIconClick*/ ctx[27]) {
|
|
9385
9410
|
if (if_block2) {
|
|
9386
9411
|
if_block2.p(ctx, dirty);
|
|
9387
9412
|
} else {
|
|
@@ -9394,7 +9419,7 @@ function create_fragment$k(ctx) {
|
|
|
9394
9419
|
if_block2 = null;
|
|
9395
9420
|
}
|
|
9396
9421
|
|
|
9397
|
-
if (/*trailingicon*/ ctx[6] && /*handlesTrailingIconClick*/ ctx[
|
|
9422
|
+
if (/*trailingicon*/ ctx[6] && /*handlesTrailingIconClick*/ ctx[27]) {
|
|
9398
9423
|
if (if_block3) {
|
|
9399
9424
|
if_block3.p(ctx, dirty);
|
|
9400
9425
|
} else {
|
|
@@ -9420,17 +9445,23 @@ function create_fragment$k(ctx) {
|
|
|
9420
9445
|
if_block4 = null;
|
|
9421
9446
|
}
|
|
9422
9447
|
|
|
9423
|
-
if (dirty[0] & /*isDisabled, variant, type*/
|
|
9448
|
+
if (dirty[0] & /*isDisabled, variant, type, _leadingContentSlot, _trailingContentSlot*/ 29360258 && div2_class_value !== (div2_class_value = `
|
|
9424
9449
|
goa-input
|
|
9425
|
-
${/*isDisabled*/ ctx[
|
|
9450
|
+
${/*isDisabled*/ ctx[24] ? "goa-input--disabled" : ""}
|
|
9426
9451
|
variant--${/*variant*/ ctx[7]}
|
|
9427
9452
|
type--${/*type*/ ctx[1]}
|
|
9453
|
+
${/*_leadingContentSlot*/ ctx[22]
|
|
9454
|
+
? "goa-input-leading-content"
|
|
9455
|
+
: ""}
|
|
9456
|
+
${/*_trailingContentSlot*/ ctx[23]
|
|
9457
|
+
? "goa-input-trailing-content"
|
|
9458
|
+
: ""}
|
|
9428
9459
|
`)) {
|
|
9429
9460
|
attr(div2, "class", div2_class_value);
|
|
9430
9461
|
}
|
|
9431
9462
|
|
|
9432
|
-
if (dirty[0] & /*isDisabled, variant, type, isError*/
|
|
9433
|
-
toggle_class(div2, "error", /*isError*/ ctx[
|
|
9463
|
+
if (dirty[0] & /*isDisabled, variant, type, _leadingContentSlot, _trailingContentSlot, isError*/ 62914690) {
|
|
9464
|
+
toggle_class(div2, "error", /*isError*/ ctx[25]);
|
|
9434
9465
|
}
|
|
9435
9466
|
|
|
9436
9467
|
if (dirty[0] & /*mt, mr, mb, ml, width*/ 983552 && div3_style_value !== (div3_style_value = `
|
|
@@ -9446,10 +9477,11 @@ function create_fragment$k(ctx) {
|
|
|
9446
9477
|
if (detaching) detach(div3);
|
|
9447
9478
|
if (if_block0) if_block0.d();
|
|
9448
9479
|
if (if_block1) if_block1.d();
|
|
9449
|
-
/*input_binding*/ ctx[
|
|
9480
|
+
/*input_binding*/ ctx[36](null);
|
|
9450
9481
|
if (if_block2) if_block2.d();
|
|
9451
9482
|
if (if_block3) if_block3.d();
|
|
9452
9483
|
if (if_block4) if_block4.d();
|
|
9484
|
+
/*div3_binding*/ ctx[37](null);
|
|
9453
9485
|
mounted = false;
|
|
9454
9486
|
run_all(dispose);
|
|
9455
9487
|
}
|
|
@@ -9511,6 +9543,9 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
9511
9543
|
let { mb = null } = $$props;
|
|
9512
9544
|
let { ml = null } = $$props;
|
|
9513
9545
|
let inputEl;
|
|
9546
|
+
let _rootEL;
|
|
9547
|
+
let _leadingContentSlot = false;
|
|
9548
|
+
let _trailingContentSlot = false;
|
|
9514
9549
|
let _debounceId = null;
|
|
9515
9550
|
|
|
9516
9551
|
function onKeyUp(e) {
|
|
@@ -9544,6 +9579,18 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
9544
9579
|
if (prefix != "" || suffix != "") {
|
|
9545
9580
|
console.warn("GoAInput [prefix] and [suffix] properties are deprecated. Instead use leadingContent and trailingContent.");
|
|
9546
9581
|
}
|
|
9582
|
+
|
|
9583
|
+
const leadingContentSlot = _rootEL.querySelector("slot[name=leadingContent]");
|
|
9584
|
+
|
|
9585
|
+
if (leadingContentSlot && leadingContentSlot.assignedNodes().length > 0) {
|
|
9586
|
+
$$invalidate(22, _leadingContentSlot = true);
|
|
9587
|
+
}
|
|
9588
|
+
|
|
9589
|
+
const trailingContentSlot = _rootEL.querySelector("slot[name=trailingContent]");
|
|
9590
|
+
|
|
9591
|
+
if (trailingContentSlot && trailingContentSlot.assignedNodes().length > 0) {
|
|
9592
|
+
$$invalidate(23, _trailingContentSlot = true);
|
|
9593
|
+
}
|
|
9547
9594
|
});
|
|
9548
9595
|
|
|
9549
9596
|
function input_binding($$value) {
|
|
@@ -9553,6 +9600,13 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
9553
9600
|
});
|
|
9554
9601
|
}
|
|
9555
9602
|
|
|
9603
|
+
function div3_binding($$value) {
|
|
9604
|
+
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
9605
|
+
_rootEL = $$value;
|
|
9606
|
+
$$invalidate(21, _rootEL);
|
|
9607
|
+
});
|
|
9608
|
+
}
|
|
9609
|
+
|
|
9556
9610
|
$$self.$$set = $$props => {
|
|
9557
9611
|
if ('type' in $$props) $$invalidate(1, type = $$props.type);
|
|
9558
9612
|
if ('name' in $$props) $$invalidate(2, name = $$props.name);
|
|
@@ -9562,11 +9616,11 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
9562
9616
|
if ('leadingicon' in $$props) $$invalidate(5, leadingicon = $$props.leadingicon);
|
|
9563
9617
|
if ('trailingicon' in $$props) $$invalidate(6, trailingicon = $$props.trailingicon);
|
|
9564
9618
|
if ('variant' in $$props) $$invalidate(7, variant = $$props.variant);
|
|
9565
|
-
if ('disabled' in $$props) $$invalidate(
|
|
9566
|
-
if ('handletrailingiconclick' in $$props) $$invalidate(
|
|
9567
|
-
if ('focused' in $$props) $$invalidate(
|
|
9568
|
-
if ('readonly' in $$props) $$invalidate(
|
|
9569
|
-
if ('error' in $$props) $$invalidate(
|
|
9619
|
+
if ('disabled' in $$props) $$invalidate(29, disabled = $$props.disabled);
|
|
9620
|
+
if ('handletrailingiconclick' in $$props) $$invalidate(30, handletrailingiconclick = $$props.handletrailingiconclick);
|
|
9621
|
+
if ('focused' in $$props) $$invalidate(31, focused = $$props.focused);
|
|
9622
|
+
if ('readonly' in $$props) $$invalidate(32, readonly = $$props.readonly);
|
|
9623
|
+
if ('error' in $$props) $$invalidate(33, error = $$props.error);
|
|
9570
9624
|
if ('testid' in $$props) $$invalidate(8, testid = $$props.testid);
|
|
9571
9625
|
if ('width' in $$props) $$invalidate(9, width = $$props.width);
|
|
9572
9626
|
if ('arialabel' in $$props) $$invalidate(10, arialabel = $$props.arialabel);
|
|
@@ -9575,7 +9629,7 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
9575
9629
|
if ('step' in $$props) $$invalidate(13, step = $$props.step);
|
|
9576
9630
|
if ('prefix' in $$props) $$invalidate(14, prefix = $$props.prefix);
|
|
9577
9631
|
if ('suffix' in $$props) $$invalidate(15, suffix = $$props.suffix);
|
|
9578
|
-
if ('debounce' in $$props) $$invalidate(
|
|
9632
|
+
if ('debounce' in $$props) $$invalidate(34, debounce = $$props.debounce);
|
|
9579
9633
|
if ('mt' in $$props) $$invalidate(16, mt = $$props.mt);
|
|
9580
9634
|
if ('mr' in $$props) $$invalidate(17, mr = $$props.mr);
|
|
9581
9635
|
if ('mb' in $$props) $$invalidate(18, mb = $$props.mb);
|
|
@@ -9583,27 +9637,27 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
9583
9637
|
};
|
|
9584
9638
|
|
|
9585
9639
|
$$self.$$.update = () => {
|
|
9586
|
-
if ($$self.$$.dirty[0] & /*handletrailingiconclick*/
|
|
9587
|
-
$$invalidate(
|
|
9640
|
+
if ($$self.$$.dirty[0] & /*handletrailingiconclick*/ 1073741824) {
|
|
9641
|
+
$$invalidate(27, handlesTrailingIconClick = toBoolean(handletrailingiconclick));
|
|
9588
9642
|
}
|
|
9589
9643
|
|
|
9590
|
-
if ($$self.$$.dirty[
|
|
9591
|
-
$$invalidate(
|
|
9644
|
+
if ($$self.$$.dirty[1] & /*focused*/ 1) {
|
|
9645
|
+
$$invalidate(35, isFocused = toBoolean(focused));
|
|
9592
9646
|
}
|
|
9593
9647
|
|
|
9594
|
-
if ($$self.$$.dirty[
|
|
9595
|
-
$$invalidate(
|
|
9648
|
+
if ($$self.$$.dirty[1] & /*readonly*/ 2) {
|
|
9649
|
+
$$invalidate(26, isReadonly = toBoolean(readonly));
|
|
9596
9650
|
}
|
|
9597
9651
|
|
|
9598
|
-
if ($$self.$$.dirty[
|
|
9599
|
-
$$invalidate(
|
|
9652
|
+
if ($$self.$$.dirty[1] & /*error*/ 4) {
|
|
9653
|
+
$$invalidate(25, isError = toBoolean(error));
|
|
9600
9654
|
}
|
|
9601
9655
|
|
|
9602
|
-
if ($$self.$$.dirty[0] & /*disabled*/
|
|
9603
|
-
$$invalidate(
|
|
9656
|
+
if ($$self.$$.dirty[0] & /*disabled*/ 536870912) {
|
|
9657
|
+
$$invalidate(24, isDisabled = toBoolean(disabled));
|
|
9604
9658
|
}
|
|
9605
9659
|
|
|
9606
|
-
if ($$self.$$.dirty[0] & /*inputEl*/ 1048576 | $$self.$$.dirty[1] & /*isFocused*/
|
|
9660
|
+
if ($$self.$$.dirty[0] & /*inputEl*/ 1048576 | $$self.$$.dirty[1] & /*isFocused*/ 16) {
|
|
9607
9661
|
if (isFocused && inputEl) {
|
|
9608
9662
|
setTimeout(() => inputEl.focus(), 1);
|
|
9609
9663
|
}
|
|
@@ -9640,6 +9694,9 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
9640
9694
|
mb,
|
|
9641
9695
|
ml,
|
|
9642
9696
|
inputEl,
|
|
9697
|
+
_rootEL,
|
|
9698
|
+
_leadingContentSlot,
|
|
9699
|
+
_trailingContentSlot,
|
|
9643
9700
|
isDisabled,
|
|
9644
9701
|
isError,
|
|
9645
9702
|
isReadonly,
|
|
@@ -9652,7 +9709,8 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
9652
9709
|
error,
|
|
9653
9710
|
debounce,
|
|
9654
9711
|
isFocused,
|
|
9655
|
-
input_binding
|
|
9712
|
+
input_binding,
|
|
9713
|
+
div3_binding
|
|
9656
9714
|
];
|
|
9657
9715
|
}
|
|
9658
9716
|
|
|
@@ -9660,7 +9718,7 @@ class Input extends SvelteElement {
|
|
|
9660
9718
|
constructor(options) {
|
|
9661
9719
|
super();
|
|
9662
9720
|
|
|
9663
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box}.container{position:relative;width:100%;display:inline-block}@media(min-width: 640px){.container{width:var(--width)}}.goa-input,.goa-input *{box-sizing:border-box;line-height:normal}.goa-input{box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--goa-color-greyscale-700);border-radius:var(--goa-border-radius-m);display:inline-flex;align-items:stretch;vertical-align:middle;min-width:100%;background-color:var(--goa-color-greyscale-white)}.goa-input:hover{border-color:var(--goa-color-interactive-hover);box-shadow:0 0 0 var(--goa-border-width-m) var(--goa-color-interactive-hover)}.goa-input:active,.goa-input:focus,.goa-input:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive-focus)}.goa-input.type--range{border:none}.goa-input.type--range:active,.goa-input.type--range:focus,.goa-input.type--range:focus-within{box-shadow:none}.goa-input-leading-icon{margin-left:0.5rem}.goa-input-trailing-icon{margin-right:0.5rem}input{display:inline-block;color:var(--goa-color-text-default);font-size:var(--goa-font-size-4);padding:var(--goa-space-xs);line-height:calc(40px - calc(var(--goa-space-xs) * 2));background-color:transparent;width:100%;flex:1 1 auto;font-family:var(--goa-font-family-sans)}input[readonly]{cursor:pointer}.goa-input-leading-icon+input{padding-left:0.5rem}input,input:focus,input:hover,input:active{outline:none;border:none}.goa-input--disabled,.goa-input--disabled:hover,.goa-input--disabled:active,.goa-input--disabled:focus{background-color:var(--goa-color-greyscale-100);border-color:var(--goa-color-greyscale-200);cursor:default;box-shadow:none}.goa-input--disabled input,.goa-input--disabled input:hover,.goa-input--disabled input:active,.goa-input--disabled input:focus{color:var(--goa-color-text-secondary)}.goa-input--disabled input:hover{cursor:default !important}.prefix,.suffix,.leading-content ::slotted(div),.trailing-content ::slotted(div){background-color:var(--goa-color-greyscale-100);padding:0 0.75rem;display:flex;align-items:center}.leading-content ::slotted(div),.trailing-content ::slotted(div){padding:0.5rem 0.75rem}.prefix,.leading-content ::slotted(div){border-top-left-radius:var(--goa-border-radius-m);border-bottom-left-radius:var(--goa-border-radius-m);border-right:1px solid var(--goa-color-greyscale-700)}.suffix,.trailing-content ::slotted(div){border-top-right-radius:var(--goa-border-radius-m);border-bottom-right-radius:var(--goa-border-radius-m);border-left:1px solid var(--goa-color-greyscale-700)}.goa-input--disabled .prefix,.goa-input--disabled .leading-content ::slotted(div){border-right:1px solid var(--goa-color-greyscale-200)}.goa-input--disabled .suffix,.goa-input--disabled .trailing-content ::slotted(div){border-left:1px solid var(--goa-color-greyscale-200)}input.input--goa{display:block;border:none;flex:1 1 auto}.variant--bare{border:none}.variant--bare:focus,.variant--bare:active,.variant--bare:focus-within{box-shadow:none}.error,.error:hover{border:2px solid var(--goa-color-interactive-error);box-shadow:0 0 0 1px var(--goa-color-interactive-error)}.error:focus-within:hover{border:2px solid var(--goa-color-interactive-error);box-shadow:0 0 0 3px var(--goa-color-interactive-focus)}input[type="search"]:enabled:read-write:-webkit-any(:focus, :hover)::-webkit-search-cancel-button{position:relative;right:var(--search-icon-offset);cursor:pointer;-webkit-appearance:none;height:1.2rem;width:1.2rem;background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23333" d="M405 136.798L375.202 107 256 226.202 136.798 107 107 136.798 226.202 256 107 375.202 136.798 405 256 285.798 375.202 405 405 375.202 285.798 256z"/></svg>')
|
|
9721
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box}.container{position:relative;width:100%;display:inline-block}@media(min-width: 640px){.container{width:var(--width)}}.goa-input,.goa-input *{box-sizing:border-box;line-height:normal}.goa-input{box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--goa-color-greyscale-700);border-radius:var(--goa-border-radius-m);display:inline-flex;align-items:stretch;vertical-align:middle;min-width:100%;background-color:var(--goa-color-greyscale-white)}.goa-input:hover:not(.goa-input-leading-content):not(.goa-input-trailing-content){border-color:var(--goa-color-interactive-hover);box-shadow:0 0 0 var(--goa-border-width-m) var(--goa-color-interactive-hover)}.goa-input:active:not(.goa-input-leading-content):not(.goa-input-trailing-content),.goa-input:focus:not(.goa-input-leading-content):not(.goa-input-trailing-content),.goa-input:focus-within:not(.goa-input-leading-content):not(.goa-input-trailing-content){box-shadow:0 0 0 3px var(--goa-color-interactive-focus)}.goa-input.type--range{border:none}.goa-input.type--range:active,.goa-input.type--range:focus,.goa-input.type--range:focus-within{box-shadow:none}.goa-input-leading-icon{margin-left:0.5rem}.goa-input-trailing-icon{margin-right:0.5rem}input{display:inline-block;color:var(--goa-color-text-default);font-size:var(--goa-font-size-4);padding:var(--goa-space-xs);line-height:calc(40px - calc(var(--goa-space-xs) * 2));background-color:transparent;width:100%;flex:1 1 auto;font-family:var(--goa-font-family-sans);z-index:1}input[readonly]{cursor:pointer}.goa-input-leading-icon+input{padding-left:0.5rem}input,input:focus,input:hover,input:active{outline:none;border:none}.goa-input--disabled,.goa-input--disabled:hover,.goa-input--disabled:active,.goa-input--disabled:focus{background-color:var(--goa-color-greyscale-100);border-color:var(--goa-color-greyscale-200) !important;cursor:default;box-shadow:none !important}.goa-input--disabled input,.goa-input--disabled input:hover,.goa-input--disabled input:active,.goa-input--disabled input:focus{color:var(--goa-color-text-secondary)}.goa-input--disabled input:hover{cursor:default !important}.prefix,.suffix,.leading-content ::slotted(div),.trailing-content ::slotted(div){background-color:var(--goa-color-greyscale-100);padding:0 0.75rem;display:flex;align-items:center}.leading-content ::slotted(div),.trailing-content ::slotted(div){padding:0.5rem 0.75rem}.prefix,.leading-content ::slotted(div){border-top-left-radius:var(--goa-border-radius-m);border-bottom-left-radius:var(--goa-border-radius-m);border-right:1px solid var(--goa-color-greyscale-700)}.suffix,.trailing-content ::slotted(div){border-top-right-radius:var(--goa-border-radius-m);border-bottom-right-radius:var(--goa-border-radius-m);border-left:1px solid var(--goa-color-greyscale-700)}.goa-input--disabled .prefix,.goa-input--disabled .leading-content ::slotted(div){border-right:1px solid var(--goa-color-greyscale-200)}.goa-input--disabled .suffix,.goa-input--disabled .trailing-content ::slotted(div){border-left:1px solid var(--goa-color-greyscale-200)}input.input--goa{display:block;border:none;flex:1 1 auto}.variant--bare{border:none}.variant--bare:focus,.variant--bare:active,.variant--bare:focus-within{box-shadow:none}.error:not(.goa-input-leading-content):not(.goa-input-trailing-content),.error:hover:not(.goa-input-leading-content):not(.goa-input-trailing-content){border:2px solid var(--goa-color-interactive-error);box-shadow:0 0 0 1px var(--goa-color-interactive-error)}.error:focus-within:hover:not(.goa-input-leading-content):not(.goa-input-trailing-content){border:2px solid var(--goa-color-interactive-error);box-shadow:0 0 0 3px var(--goa-color-interactive-focus)}.error .input-leading-content,.error .input-leading-content:hover,.error .input-trailing-content,.error .input-trailing-content:hover{outline:var(--goa-border-width-s) solid var(--goa-color-interactive-error);box-shadow:inset 0 0 0 var(--goa-border-width-m) var(--goa-color-interactive-error)}.error .input-leading-content:focus,.error .input-trailing-content:focus,.error .input-leading-content:active,.error .input-trailing-content:active{outline:var(--goa-border-width-s) solid var(--goa-color-interactive-error);box-shadow:0 0 0 var(--goa-border-width-l) var(--goa-color-interactive-focus)}.input-leading-content:hover,.input-trailing-content:hover{box-shadow:inset 0 0 0 var(--goa-border-width-m) var(--goa-color-interactive-hover);outline:var(--goa-border-width-s) solid var(--goa-color-interactive-hover)}.input-leading-content:active,.input-leading-content:focus,.input-leading-content:focus-within,.input-trailing-content:active,.input-trailing-content:focus,.input-trailing-content:focus-within{box-shadow:0 0 0 var(--goa-border-width-l) var(--goa-color-interactive-focus);outline:var(--goa-border-width-s) solid var(--goa-color-greyscale-700)}.error .input-trailing-content,.input-trailing-content:hover,.input-trailing-content:active,.input-trailing-content:focus,.input-trailing-content:focus-within{border-top-left-radius:var(--goa-border-radius-m);border-bottom-left-radius:var(--goa-border-radius-m)}.error .input-leading-content,.input-leading-content:hover,.input-leading-content:active,.input-leading-content:focus,.input-leading-content:focus-within{border-top-right-radius:var(--goa-border-radius-m);border-bottom-right-radius:var(--goa-border-radius-m)}.input-leading-content.input-trailing-content,.input-leading-content.input-trailing-content:hover,.input-leading-content.input-trailing-content:active,.input-leading-content.input-trailing-content:focus,.input-leading-content.input-trailing-content:focus-within{border-radius:0}input[type="search"]:enabled:read-write:-webkit-any(:focus, :hover)::-webkit-search-cancel-button{position:relative;right:var(--search-icon-offset);cursor:pointer;-webkit-appearance:none;height:1.2rem;width:1.2rem;background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23333" d="M405 136.798L375.202 107 256 226.202 136.798 107 107 136.798 226.202 256 107 375.202 136.798 405 256 285.798 375.202 405 405 375.202 285.798 256z"/></svg>')
|
|
9664
9722
|
center center no-repeat}</style>`;
|
|
9665
9723
|
|
|
9666
9724
|
init(
|
|
@@ -9682,11 +9740,11 @@ class Input extends SvelteElement {
|
|
|
9682
9740
|
leadingicon: 5,
|
|
9683
9741
|
trailingicon: 6,
|
|
9684
9742
|
variant: 7,
|
|
9685
|
-
disabled:
|
|
9686
|
-
handletrailingiconclick:
|
|
9687
|
-
focused:
|
|
9688
|
-
readonly:
|
|
9689
|
-
error:
|
|
9743
|
+
disabled: 29,
|
|
9744
|
+
handletrailingiconclick: 30,
|
|
9745
|
+
focused: 31,
|
|
9746
|
+
readonly: 32,
|
|
9747
|
+
error: 33,
|
|
9690
9748
|
testid: 8,
|
|
9691
9749
|
width: 9,
|
|
9692
9750
|
arialabel: 10,
|
|
@@ -9695,7 +9753,7 @@ class Input extends SvelteElement {
|
|
|
9695
9753
|
step: 13,
|
|
9696
9754
|
prefix: 14,
|
|
9697
9755
|
suffix: 15,
|
|
9698
|
-
debounce:
|
|
9756
|
+
debounce: 34,
|
|
9699
9757
|
mt: 16,
|
|
9700
9758
|
mr: 17,
|
|
9701
9759
|
mb: 18,
|
|
@@ -9821,7 +9879,7 @@ class Input extends SvelteElement {
|
|
|
9821
9879
|
}
|
|
9822
9880
|
|
|
9823
9881
|
get disabled() {
|
|
9824
|
-
return this.$$.ctx[
|
|
9882
|
+
return this.$$.ctx[29];
|
|
9825
9883
|
}
|
|
9826
9884
|
|
|
9827
9885
|
set disabled(disabled) {
|
|
@@ -9830,7 +9888,7 @@ class Input extends SvelteElement {
|
|
|
9830
9888
|
}
|
|
9831
9889
|
|
|
9832
9890
|
get handletrailingiconclick() {
|
|
9833
|
-
return this.$$.ctx[
|
|
9891
|
+
return this.$$.ctx[30];
|
|
9834
9892
|
}
|
|
9835
9893
|
|
|
9836
9894
|
set handletrailingiconclick(handletrailingiconclick) {
|
|
@@ -9839,7 +9897,7 @@ class Input extends SvelteElement {
|
|
|
9839
9897
|
}
|
|
9840
9898
|
|
|
9841
9899
|
get focused() {
|
|
9842
|
-
return this.$$.ctx[
|
|
9900
|
+
return this.$$.ctx[31];
|
|
9843
9901
|
}
|
|
9844
9902
|
|
|
9845
9903
|
set focused(focused) {
|
|
@@ -9848,7 +9906,7 @@ class Input extends SvelteElement {
|
|
|
9848
9906
|
}
|
|
9849
9907
|
|
|
9850
9908
|
get readonly() {
|
|
9851
|
-
return this.$$.ctx[
|
|
9909
|
+
return this.$$.ctx[32];
|
|
9852
9910
|
}
|
|
9853
9911
|
|
|
9854
9912
|
set readonly(readonly) {
|
|
@@ -9857,7 +9915,7 @@ class Input extends SvelteElement {
|
|
|
9857
9915
|
}
|
|
9858
9916
|
|
|
9859
9917
|
get error() {
|
|
9860
|
-
return this.$$.ctx[
|
|
9918
|
+
return this.$$.ctx[33];
|
|
9861
9919
|
}
|
|
9862
9920
|
|
|
9863
9921
|
set error(error) {
|
|
@@ -9938,7 +9996,7 @@ class Input extends SvelteElement {
|
|
|
9938
9996
|
}
|
|
9939
9997
|
|
|
9940
9998
|
get debounce() {
|
|
9941
|
-
return this.$$.ctx[
|
|
9999
|
+
return this.$$.ctx[34];
|
|
9942
10000
|
}
|
|
9943
10001
|
|
|
9944
10002
|
set debounce(debounce) {
|