@abgov/react-components 4.0.0-alpha.134 → 4.0.0-alpha.136
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/react-components.esm.js +176 -132
- package/react-components.umd.js +176 -132
package/react-components.esm.js
CHANGED
|
@@ -10599,7 +10599,7 @@ function create_if_block$b(ctx) {
|
|
|
10599
10599
|
16) show_if = null;
|
|
10600
10600
|
if (show_if == null) show_if = !!Object.keys(
|
|
10601
10601
|
/*_iconOverrides*/
|
|
10602
|
-
ctx[
|
|
10602
|
+
ctx[12]).includes(
|
|
10603
10603
|
/*type*/
|
|
10604
10604
|
ctx[4]);
|
|
10605
10605
|
if (show_if) return create_if_block_1$5;
|
|
@@ -10639,7 +10639,7 @@ function create_if_block$b(ctx) {
|
|
|
10639
10639
|
}
|
|
10640
10640
|
|
|
10641
10641
|
};
|
|
10642
|
-
} // (
|
|
10642
|
+
} // (60:4) {:else}
|
|
10643
10643
|
|
|
10644
10644
|
|
|
10645
10645
|
function create_else_block$4(ctx) {
|
|
@@ -10688,7 +10688,7 @@ function create_else_block$4(ctx) {
|
|
|
10688
10688
|
}
|
|
10689
10689
|
|
|
10690
10690
|
};
|
|
10691
|
-
} // (
|
|
10691
|
+
} // (55:4) {#if Object.keys(_iconOverrides).includes(type)}
|
|
10692
10692
|
|
|
10693
10693
|
|
|
10694
10694
|
function create_if_block_1$5(ctx) {
|
|
@@ -10696,7 +10696,7 @@ function create_if_block_1$5(ctx) {
|
|
|
10696
10696
|
let html_tag;
|
|
10697
10697
|
let raw_value =
|
|
10698
10698
|
/*_iconOverrides*/
|
|
10699
|
-
ctx[
|
|
10699
|
+
ctx[12][
|
|
10700
10700
|
/*type*/
|
|
10701
10701
|
ctx[4]] + "";
|
|
10702
10702
|
let t;
|
|
@@ -10723,7 +10723,7 @@ function create_if_block_1$5(ctx) {
|
|
|
10723
10723
|
/*type*/
|
|
10724
10724
|
16 && raw_value !== (raw_value =
|
|
10725
10725
|
/*_iconOverrides*/
|
|
10726
|
-
ctx[
|
|
10726
|
+
ctx[12][
|
|
10727
10727
|
/*type*/
|
|
10728
10728
|
ctx[4]] + "")) html_tag.p(raw_value);
|
|
10729
10729
|
},
|
|
@@ -10749,10 +10749,10 @@ function create_fragment$l(ctx) {
|
|
|
10749
10749
|
attr(div, "class", "goa-icon");
|
|
10750
10750
|
attr(div, "data-testid",
|
|
10751
10751
|
/*testid*/
|
|
10752
|
-
ctx[
|
|
10752
|
+
ctx[9]);
|
|
10753
10753
|
attr(div, "title",
|
|
10754
10754
|
/*title*/
|
|
10755
|
-
ctx[
|
|
10755
|
+
ctx[8]);
|
|
10756
10756
|
attr(div, "style", div_style_value = `
|
|
10757
10757
|
${calculateMargin(
|
|
10758
10758
|
/*mt*/
|
|
@@ -10765,20 +10765,17 @@ function create_fragment$l(ctx) {
|
|
|
10765
10765
|
ctx[3])}
|
|
10766
10766
|
--size: ${
|
|
10767
10767
|
/*_size*/
|
|
10768
|
-
ctx[
|
|
10768
|
+
ctx[10]};
|
|
10769
10769
|
--fill-color: ${
|
|
10770
10770
|
/*fillcolor*/
|
|
10771
10771
|
ctx[6]};
|
|
10772
|
-
--hover-color: ${
|
|
10773
|
-
/*hovercolor*/
|
|
10774
|
-
ctx[7]};
|
|
10775
10772
|
--opacity: ${
|
|
10776
10773
|
/*opacity*/
|
|
10777
|
-
ctx[
|
|
10774
|
+
ctx[7]};
|
|
10778
10775
|
`);
|
|
10779
10776
|
toggle_class(div, "inverted",
|
|
10780
10777
|
/*isInverted*/
|
|
10781
|
-
ctx[
|
|
10778
|
+
ctx[11]);
|
|
10782
10779
|
},
|
|
10783
10780
|
|
|
10784
10781
|
m(target, anchor) {
|
|
@@ -10804,23 +10801,23 @@ function create_fragment$l(ctx) {
|
|
|
10804
10801
|
|
|
10805
10802
|
if (dirty &
|
|
10806
10803
|
/*testid*/
|
|
10807
|
-
|
|
10804
|
+
512) {
|
|
10808
10805
|
attr(div, "data-testid",
|
|
10809
10806
|
/*testid*/
|
|
10810
|
-
ctx[
|
|
10807
|
+
ctx[9]);
|
|
10811
10808
|
}
|
|
10812
10809
|
|
|
10813
10810
|
if (dirty &
|
|
10814
10811
|
/*title*/
|
|
10815
|
-
|
|
10812
|
+
256) {
|
|
10816
10813
|
attr(div, "title",
|
|
10817
10814
|
/*title*/
|
|
10818
|
-
ctx[
|
|
10815
|
+
ctx[8]);
|
|
10819
10816
|
}
|
|
10820
10817
|
|
|
10821
10818
|
if (dirty &
|
|
10822
|
-
/*mt, mr, mb, ml, _size, fillcolor,
|
|
10823
|
-
|
|
10819
|
+
/*mt, mr, mb, ml, _size, fillcolor, opacity*/
|
|
10820
|
+
1231 && div_style_value !== (div_style_value = `
|
|
10824
10821
|
${calculateMargin(
|
|
10825
10822
|
/*mt*/
|
|
10826
10823
|
ctx[0],
|
|
@@ -10832,26 +10829,23 @@ function create_fragment$l(ctx) {
|
|
|
10832
10829
|
ctx[3])}
|
|
10833
10830
|
--size: ${
|
|
10834
10831
|
/*_size*/
|
|
10835
|
-
ctx[
|
|
10832
|
+
ctx[10]};
|
|
10836
10833
|
--fill-color: ${
|
|
10837
10834
|
/*fillcolor*/
|
|
10838
10835
|
ctx[6]};
|
|
10839
|
-
--hover-color: ${
|
|
10840
|
-
/*hovercolor*/
|
|
10841
|
-
ctx[7]};
|
|
10842
10836
|
--opacity: ${
|
|
10843
10837
|
/*opacity*/
|
|
10844
|
-
ctx[
|
|
10838
|
+
ctx[7]};
|
|
10845
10839
|
`)) {
|
|
10846
10840
|
attr(div, "style", div_style_value);
|
|
10847
10841
|
}
|
|
10848
10842
|
|
|
10849
10843
|
if (dirty &
|
|
10850
10844
|
/*isInverted*/
|
|
10851
|
-
|
|
10845
|
+
2048) {
|
|
10852
10846
|
toggle_class(div, "inverted",
|
|
10853
10847
|
/*isInverted*/
|
|
10854
|
-
ctx[
|
|
10848
|
+
ctx[11]);
|
|
10855
10849
|
}
|
|
10856
10850
|
},
|
|
10857
10851
|
|
|
@@ -10898,9 +10892,6 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
|
10898
10892
|
let {
|
|
10899
10893
|
fillcolor = ""
|
|
10900
10894
|
} = $$props;
|
|
10901
|
-
let {
|
|
10902
|
-
hovercolor = ""
|
|
10903
|
-
} = $$props;
|
|
10904
10895
|
let {
|
|
10905
10896
|
opacity = 1
|
|
10906
10897
|
} = $$props;
|
|
@@ -10929,27 +10920,26 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
|
10929
10920
|
if ('mb' in $$props) $$invalidate(2, mb = $$props.mb);
|
|
10930
10921
|
if ('ml' in $$props) $$invalidate(3, ml = $$props.ml);
|
|
10931
10922
|
if ('type' in $$props) $$invalidate(4, type = $$props.type);
|
|
10932
|
-
if ('size' in $$props) $$invalidate(
|
|
10923
|
+
if ('size' in $$props) $$invalidate(13, size = $$props.size);
|
|
10933
10924
|
if ('theme' in $$props) $$invalidate(5, theme = $$props.theme);
|
|
10934
|
-
if ('inverted' in $$props) $$invalidate(
|
|
10925
|
+
if ('inverted' in $$props) $$invalidate(14, inverted = $$props.inverted);
|
|
10935
10926
|
if ('fillcolor' in $$props) $$invalidate(6, fillcolor = $$props.fillcolor);
|
|
10936
|
-
if ('
|
|
10937
|
-
if ('
|
|
10938
|
-
if ('
|
|
10939
|
-
if ('testid' in $$props) $$invalidate(10, testid = $$props.testid);
|
|
10927
|
+
if ('opacity' in $$props) $$invalidate(7, opacity = $$props.opacity);
|
|
10928
|
+
if ('title' in $$props) $$invalidate(8, title = $$props.title);
|
|
10929
|
+
if ('testid' in $$props) $$invalidate(9, testid = $$props.testid);
|
|
10940
10930
|
};
|
|
10941
10931
|
|
|
10942
10932
|
$$self.$$.update = () => {
|
|
10943
10933
|
if ($$self.$$.dirty &
|
|
10944
10934
|
/*inverted*/
|
|
10945
|
-
|
|
10946
|
-
$$invalidate(
|
|
10935
|
+
16384) {
|
|
10936
|
+
$$invalidate(11, isInverted = toBoolean(inverted));
|
|
10947
10937
|
}
|
|
10948
10938
|
|
|
10949
10939
|
if ($$self.$$.dirty &
|
|
10950
10940
|
/*size*/
|
|
10951
|
-
|
|
10952
|
-
$$invalidate(
|
|
10941
|
+
8192) {
|
|
10942
|
+
$$invalidate(10, _size = {
|
|
10953
10943
|
small: "1.25rem",
|
|
10954
10944
|
medium: "1.5rem",
|
|
10955
10945
|
large: "2rem"
|
|
@@ -10957,13 +10947,13 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
|
10957
10947
|
}
|
|
10958
10948
|
};
|
|
10959
10949
|
|
|
10960
|
-
return [mt, mr, mb, ml, type, theme, fillcolor,
|
|
10950
|
+
return [mt, mr, mb, ml, type, theme, fillcolor, opacity, title, testid, _size, isInverted, _iconOverrides, size, inverted];
|
|
10961
10951
|
}
|
|
10962
10952
|
|
|
10963
10953
|
class Icon extends SvelteElement {
|
|
10964
10954
|
constructor(options) {
|
|
10965
10955
|
super();
|
|
10966
|
-
this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center}ion-icon{pointer-events:none;width:100%;height:100%}.goa-icon{width:var(--size);height:var(--size);fill:var(--fill-color);color:var(--fill-color);opacity:var(--opacity);display:inline-flex;align-items:center;justify-content:center}.
|
|
10956
|
+
this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center}ion-icon{pointer-events:none;width:100%;height:100%}.goa-icon{width:var(--size);height:var(--size);fill:var(--fill-color);color:var(--fill-color);opacity:var(--opacity);display:inline-flex;align-items:center;justify-content:center}.icon-override{display:flex;flex-direction:column;align-items:center}.icon-override *{fill:var(--goa-color-interactive-default)}.inverted *{color:#fff;fill:#fff}</style>`;
|
|
10967
10957
|
init(this, {
|
|
10968
10958
|
target: this.shadowRoot,
|
|
10969
10959
|
props: attribute_to_object(this.attributes),
|
|
@@ -10974,14 +10964,13 @@ class Icon extends SvelteElement {
|
|
|
10974
10964
|
mb: 2,
|
|
10975
10965
|
ml: 3,
|
|
10976
10966
|
type: 4,
|
|
10977
|
-
size:
|
|
10967
|
+
size: 13,
|
|
10978
10968
|
theme: 5,
|
|
10979
|
-
inverted:
|
|
10969
|
+
inverted: 14,
|
|
10980
10970
|
fillcolor: 6,
|
|
10981
|
-
|
|
10982
|
-
|
|
10983
|
-
|
|
10984
|
-
testid: 10
|
|
10971
|
+
opacity: 7,
|
|
10972
|
+
title: 8,
|
|
10973
|
+
testid: 9
|
|
10985
10974
|
}, null);
|
|
10986
10975
|
|
|
10987
10976
|
if (options) {
|
|
@@ -10997,7 +10986,7 @@ class Icon extends SvelteElement {
|
|
|
10997
10986
|
}
|
|
10998
10987
|
|
|
10999
10988
|
static get observedAttributes() {
|
|
11000
|
-
return ["mt", "mr", "mb", "ml", "type", "size", "theme", "inverted", "fillcolor", "
|
|
10989
|
+
return ["mt", "mr", "mb", "ml", "type", "size", "theme", "inverted", "fillcolor", "opacity", "title", "testid"];
|
|
11001
10990
|
}
|
|
11002
10991
|
|
|
11003
10992
|
get mt() {
|
|
@@ -11056,7 +11045,7 @@ class Icon extends SvelteElement {
|
|
|
11056
11045
|
}
|
|
11057
11046
|
|
|
11058
11047
|
get size() {
|
|
11059
|
-
return this.$$.ctx[
|
|
11048
|
+
return this.$$.ctx[13];
|
|
11060
11049
|
}
|
|
11061
11050
|
|
|
11062
11051
|
set size(size) {
|
|
@@ -11078,7 +11067,7 @@ class Icon extends SvelteElement {
|
|
|
11078
11067
|
}
|
|
11079
11068
|
|
|
11080
11069
|
get inverted() {
|
|
11081
|
-
return this.$$.ctx[
|
|
11070
|
+
return this.$$.ctx[14];
|
|
11082
11071
|
}
|
|
11083
11072
|
|
|
11084
11073
|
set inverted(inverted) {
|
|
@@ -11099,19 +11088,8 @@ class Icon extends SvelteElement {
|
|
|
11099
11088
|
flush();
|
|
11100
11089
|
}
|
|
11101
11090
|
|
|
11102
|
-
get hovercolor() {
|
|
11103
|
-
return this.$$.ctx[7];
|
|
11104
|
-
}
|
|
11105
|
-
|
|
11106
|
-
set hovercolor(hovercolor) {
|
|
11107
|
-
this.$$set({
|
|
11108
|
-
hovercolor
|
|
11109
|
-
});
|
|
11110
|
-
flush();
|
|
11111
|
-
}
|
|
11112
|
-
|
|
11113
11091
|
get opacity() {
|
|
11114
|
-
return this.$$.ctx[
|
|
11092
|
+
return this.$$.ctx[7];
|
|
11115
11093
|
}
|
|
11116
11094
|
|
|
11117
11095
|
set opacity(opacity) {
|
|
@@ -11122,7 +11100,7 @@ class Icon extends SvelteElement {
|
|
|
11122
11100
|
}
|
|
11123
11101
|
|
|
11124
11102
|
get title() {
|
|
11125
|
-
return this.$$.ctx[
|
|
11103
|
+
return this.$$.ctx[8];
|
|
11126
11104
|
}
|
|
11127
11105
|
|
|
11128
11106
|
set title(title) {
|
|
@@ -11133,7 +11111,7 @@ class Icon extends SvelteElement {
|
|
|
11133
11111
|
}
|
|
11134
11112
|
|
|
11135
11113
|
get testid() {
|
|
11136
|
-
return this.$$.ctx[
|
|
11114
|
+
return this.$$.ctx[9];
|
|
11137
11115
|
}
|
|
11138
11116
|
|
|
11139
11117
|
set testid(testid) {
|
|
@@ -11178,7 +11156,7 @@ function create_if_block_4(ctx) {
|
|
|
11178
11156
|
}
|
|
11179
11157
|
|
|
11180
11158
|
};
|
|
11181
|
-
} // (
|
|
11159
|
+
} // (123:4) {#if leadingicon}
|
|
11182
11160
|
|
|
11183
11161
|
|
|
11184
11162
|
function create_if_block_3$4(ctx) {
|
|
@@ -11212,7 +11190,7 @@ function create_if_block_3$4(ctx) {
|
|
|
11212
11190
|
}
|
|
11213
11191
|
|
|
11214
11192
|
};
|
|
11215
|
-
} // (
|
|
11193
|
+
} // (157:4) {#if trailingicon && !handlesTrailingIconClick}
|
|
11216
11194
|
|
|
11217
11195
|
|
|
11218
11196
|
function create_if_block_2$4(ctx) {
|
|
@@ -11247,7 +11225,7 @@ function create_if_block_2$4(ctx) {
|
|
|
11247
11225
|
}
|
|
11248
11226
|
|
|
11249
11227
|
};
|
|
11250
|
-
} // (
|
|
11228
|
+
} // (167:4) {#if trailingicon && handlesTrailingIconClick}
|
|
11251
11229
|
|
|
11252
11230
|
|
|
11253
11231
|
function create_if_block_1$4(ctx) {
|
|
@@ -11259,7 +11237,7 @@ function create_if_block_1$4(ctx) {
|
|
|
11259
11237
|
goa_icon_button = element("goa-icon-button");
|
|
11260
11238
|
set_custom_element_data(goa_icon_button, "disabled",
|
|
11261
11239
|
/*isDisabled*/
|
|
11262
|
-
ctx[
|
|
11240
|
+
ctx[24]);
|
|
11263
11241
|
set_custom_element_data(goa_icon_button, "variant", "nocolor");
|
|
11264
11242
|
set_custom_element_data(goa_icon_button, "size", "medium");
|
|
11265
11243
|
set_custom_element_data(goa_icon_button, "icon",
|
|
@@ -11280,10 +11258,10 @@ function create_if_block_1$4(ctx) {
|
|
|
11280
11258
|
p(ctx, dirty) {
|
|
11281
11259
|
if (dirty[0] &
|
|
11282
11260
|
/*isDisabled*/
|
|
11283
|
-
|
|
11261
|
+
16777216) {
|
|
11284
11262
|
set_custom_element_data(goa_icon_button, "disabled",
|
|
11285
11263
|
/*isDisabled*/
|
|
11286
|
-
ctx[
|
|
11264
|
+
ctx[24]);
|
|
11287
11265
|
}
|
|
11288
11266
|
|
|
11289
11267
|
if (dirty[0] &
|
|
@@ -11302,7 +11280,7 @@ function create_if_block_1$4(ctx) {
|
|
|
11302
11280
|
}
|
|
11303
11281
|
|
|
11304
11282
|
};
|
|
11305
|
-
} // (
|
|
11283
|
+
} // (179:4) {#if suffix}
|
|
11306
11284
|
|
|
11307
11285
|
|
|
11308
11286
|
function create_if_block$a(ctx) {
|
|
@@ -11367,12 +11345,12 @@ function create_fragment$k(ctx) {
|
|
|
11367
11345
|
/*trailingicon*/
|
|
11368
11346
|
ctx[6] && !
|
|
11369
11347
|
/*handlesTrailingIconClick*/
|
|
11370
|
-
ctx[
|
|
11348
|
+
ctx[27] && create_if_block_2$4(ctx);
|
|
11371
11349
|
let if_block3 =
|
|
11372
11350
|
/*trailingicon*/
|
|
11373
11351
|
ctx[6] &&
|
|
11374
11352
|
/*handlesTrailingIconClick*/
|
|
11375
|
-
ctx[
|
|
11353
|
+
ctx[27] && create_if_block_1$4(ctx);
|
|
11376
11354
|
let if_block4 =
|
|
11377
11355
|
/*suffix*/
|
|
11378
11356
|
ctx[15] && create_if_block$a(ctx);
|
|
@@ -11399,18 +11377,30 @@ function create_fragment$k(ctx) {
|
|
|
11399
11377
|
div1.innerHTML = `<slot name="trailingContent"></slot>`;
|
|
11400
11378
|
this.c = noop;
|
|
11401
11379
|
attr(div0, "class", "leading-content");
|
|
11402
|
-
attr(input, "class", input_class_value = `
|
|
11380
|
+
attr(input, "class", input_class_value = `
|
|
11381
|
+
input--${
|
|
11403
11382
|
/*variant*/
|
|
11404
|
-
ctx[7]}
|
|
11383
|
+
ctx[7]}
|
|
11384
|
+
${
|
|
11385
|
+
/*_leadingContentSlot*/
|
|
11386
|
+
ctx[22] && !
|
|
11387
|
+
/*isDisabled*/
|
|
11388
|
+
ctx[24] ? "input-leading-content" : ""}
|
|
11389
|
+
${
|
|
11390
|
+
/*_trailingContentSlot*/
|
|
11391
|
+
ctx[23] && !
|
|
11392
|
+
/*isDisabled*/
|
|
11393
|
+
ctx[24] ? "input-trailing-content" : ""}
|
|
11394
|
+
`);
|
|
11405
11395
|
attr(input, "style", input_style_value = `--search-icon-offset: ${
|
|
11406
11396
|
/*trailingicon*/
|
|
11407
11397
|
ctx[6] ? "-0.5rem" : "0"}`);
|
|
11408
11398
|
input.readOnly =
|
|
11409
11399
|
/*isReadonly*/
|
|
11410
|
-
ctx[
|
|
11400
|
+
ctx[26];
|
|
11411
11401
|
input.disabled =
|
|
11412
11402
|
/*isDisabled*/
|
|
11413
|
-
ctx[
|
|
11403
|
+
ctx[24];
|
|
11414
11404
|
attr(input, "data-testid",
|
|
11415
11405
|
/*testid*/
|
|
11416
11406
|
ctx[8]);
|
|
@@ -11449,17 +11439,23 @@ function create_fragment$k(ctx) {
|
|
|
11449
11439
|
goa-input
|
|
11450
11440
|
${
|
|
11451
11441
|
/*isDisabled*/
|
|
11452
|
-
ctx[
|
|
11442
|
+
ctx[24] ? "goa-input--disabled" : ""}
|
|
11453
11443
|
variant--${
|
|
11454
11444
|
/*variant*/
|
|
11455
11445
|
ctx[7]}
|
|
11456
11446
|
type--${
|
|
11457
11447
|
/*type*/
|
|
11458
11448
|
ctx[1]}
|
|
11449
|
+
${
|
|
11450
|
+
/*_leadingContentSlot*/
|
|
11451
|
+
ctx[22] ? "goa-input-leading-content" : ""}
|
|
11452
|
+
${
|
|
11453
|
+
/*_trailingContentSlot*/
|
|
11454
|
+
ctx[23] ? "goa-input-trailing-content" : ""}
|
|
11459
11455
|
`);
|
|
11460
11456
|
toggle_class(div2, "error",
|
|
11461
11457
|
/*isError*/
|
|
11462
|
-
ctx[
|
|
11458
|
+
ctx[25]);
|
|
11463
11459
|
attr(div3, "class", "container");
|
|
11464
11460
|
attr(div3, "style", div3_style_value = `
|
|
11465
11461
|
${calculateMargin(
|
|
@@ -11489,7 +11485,7 @@ function create_fragment$k(ctx) {
|
|
|
11489
11485
|
append(div2, input);
|
|
11490
11486
|
/*input_binding*/
|
|
11491
11487
|
|
|
11492
|
-
ctx[
|
|
11488
|
+
ctx[36](input);
|
|
11493
11489
|
append(div2, t3);
|
|
11494
11490
|
if (if_block2) if_block2.m(div2, null);
|
|
11495
11491
|
append(div2, t4);
|
|
@@ -11498,13 +11494,16 @@ function create_fragment$k(ctx) {
|
|
|
11498
11494
|
if (if_block4) if_block4.m(div2, null);
|
|
11499
11495
|
append(div2, t6);
|
|
11500
11496
|
append(div2, div1);
|
|
11497
|
+
/*div3_binding*/
|
|
11498
|
+
|
|
11499
|
+
ctx[37](div3);
|
|
11501
11500
|
|
|
11502
11501
|
if (!mounted) {
|
|
11503
11502
|
dispose = [listen(input, "keyup",
|
|
11504
11503
|
/*onKeyUp*/
|
|
11505
|
-
ctx[
|
|
11504
|
+
ctx[28]), listen(input, "change",
|
|
11506
11505
|
/*onKeyUp*/
|
|
11507
|
-
ctx[
|
|
11506
|
+
ctx[28])];
|
|
11508
11507
|
mounted = true;
|
|
11509
11508
|
}
|
|
11510
11509
|
},
|
|
@@ -11541,10 +11540,22 @@ function create_fragment$k(ctx) {
|
|
|
11541
11540
|
}
|
|
11542
11541
|
|
|
11543
11542
|
if (dirty[0] &
|
|
11543
|
+
/*variant, _leadingContentSlot, isDisabled, _trailingContentSlot*/
|
|
11544
|
+
29360256 && input_class_value !== (input_class_value = `
|
|
11545
|
+
input--${
|
|
11544
11546
|
/*variant*/
|
|
11545
|
-
|
|
11546
|
-
|
|
11547
|
-
|
|
11547
|
+
ctx[7]}
|
|
11548
|
+
${
|
|
11549
|
+
/*_leadingContentSlot*/
|
|
11550
|
+
ctx[22] && !
|
|
11551
|
+
/*isDisabled*/
|
|
11552
|
+
ctx[24] ? "input-leading-content" : ""}
|
|
11553
|
+
${
|
|
11554
|
+
/*_trailingContentSlot*/
|
|
11555
|
+
ctx[23] && !
|
|
11556
|
+
/*isDisabled*/
|
|
11557
|
+
ctx[24] ? "input-trailing-content" : ""}
|
|
11558
|
+
`)) {
|
|
11548
11559
|
attr(input, "class", input_class_value);
|
|
11549
11560
|
}
|
|
11550
11561
|
|
|
@@ -11558,18 +11569,18 @@ function create_fragment$k(ctx) {
|
|
|
11558
11569
|
|
|
11559
11570
|
if (dirty[0] &
|
|
11560
11571
|
/*isReadonly*/
|
|
11561
|
-
|
|
11572
|
+
67108864) {
|
|
11562
11573
|
input.readOnly =
|
|
11563
11574
|
/*isReadonly*/
|
|
11564
|
-
ctx[
|
|
11575
|
+
ctx[26];
|
|
11565
11576
|
}
|
|
11566
11577
|
|
|
11567
11578
|
if (dirty[0] &
|
|
11568
11579
|
/*isDisabled*/
|
|
11569
|
-
|
|
11580
|
+
16777216) {
|
|
11570
11581
|
input.disabled =
|
|
11571
11582
|
/*isDisabled*/
|
|
11572
|
-
ctx[
|
|
11583
|
+
ctx[24];
|
|
11573
11584
|
}
|
|
11574
11585
|
|
|
11575
11586
|
if (dirty[0] &
|
|
@@ -11660,7 +11671,7 @@ function create_fragment$k(ctx) {
|
|
|
11660
11671
|
/*trailingicon*/
|
|
11661
11672
|
ctx[6] && !
|
|
11662
11673
|
/*handlesTrailingIconClick*/
|
|
11663
|
-
ctx[
|
|
11674
|
+
ctx[27]) {
|
|
11664
11675
|
if (if_block2) {
|
|
11665
11676
|
if_block2.p(ctx, dirty);
|
|
11666
11677
|
} else {
|
|
@@ -11677,7 +11688,7 @@ function create_fragment$k(ctx) {
|
|
|
11677
11688
|
/*trailingicon*/
|
|
11678
11689
|
ctx[6] &&
|
|
11679
11690
|
/*handlesTrailingIconClick*/
|
|
11680
|
-
ctx[
|
|
11691
|
+
ctx[27]) {
|
|
11681
11692
|
if (if_block3) {
|
|
11682
11693
|
if_block3.p(ctx, dirty);
|
|
11683
11694
|
} else {
|
|
@@ -11706,28 +11717,34 @@ function create_fragment$k(ctx) {
|
|
|
11706
11717
|
}
|
|
11707
11718
|
|
|
11708
11719
|
if (dirty[0] &
|
|
11709
|
-
/*isDisabled, variant, type*/
|
|
11710
|
-
|
|
11720
|
+
/*isDisabled, variant, type, _leadingContentSlot, _trailingContentSlot*/
|
|
11721
|
+
29360258 && div2_class_value !== (div2_class_value = `
|
|
11711
11722
|
goa-input
|
|
11712
11723
|
${
|
|
11713
11724
|
/*isDisabled*/
|
|
11714
|
-
ctx[
|
|
11725
|
+
ctx[24] ? "goa-input--disabled" : ""}
|
|
11715
11726
|
variant--${
|
|
11716
11727
|
/*variant*/
|
|
11717
11728
|
ctx[7]}
|
|
11718
11729
|
type--${
|
|
11719
11730
|
/*type*/
|
|
11720
11731
|
ctx[1]}
|
|
11732
|
+
${
|
|
11733
|
+
/*_leadingContentSlot*/
|
|
11734
|
+
ctx[22] ? "goa-input-leading-content" : ""}
|
|
11735
|
+
${
|
|
11736
|
+
/*_trailingContentSlot*/
|
|
11737
|
+
ctx[23] ? "goa-input-trailing-content" : ""}
|
|
11721
11738
|
`)) {
|
|
11722
11739
|
attr(div2, "class", div2_class_value);
|
|
11723
11740
|
}
|
|
11724
11741
|
|
|
11725
11742
|
if (dirty[0] &
|
|
11726
|
-
/*isDisabled, variant, type, isError*/
|
|
11727
|
-
|
|
11743
|
+
/*isDisabled, variant, type, _leadingContentSlot, _trailingContentSlot, isError*/
|
|
11744
|
+
62914690) {
|
|
11728
11745
|
toggle_class(div2, "error",
|
|
11729
11746
|
/*isError*/
|
|
11730
|
-
ctx[
|
|
11747
|
+
ctx[25]);
|
|
11731
11748
|
}
|
|
11732
11749
|
|
|
11733
11750
|
if (dirty[0] &
|
|
@@ -11759,10 +11776,13 @@ function create_fragment$k(ctx) {
|
|
|
11759
11776
|
if (if_block1) if_block1.d();
|
|
11760
11777
|
/*input_binding*/
|
|
11761
11778
|
|
|
11762
|
-
ctx[
|
|
11779
|
+
ctx[36](null);
|
|
11763
11780
|
if (if_block2) if_block2.d();
|
|
11764
11781
|
if (if_block3) if_block3.d();
|
|
11765
11782
|
if (if_block4) if_block4.d();
|
|
11783
|
+
/*div3_binding*/
|
|
11784
|
+
|
|
11785
|
+
ctx[37](null);
|
|
11766
11786
|
mounted = false;
|
|
11767
11787
|
run_all(dispose);
|
|
11768
11788
|
}
|
|
@@ -11863,6 +11883,11 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
11863
11883
|
ml = null
|
|
11864
11884
|
} = $$props;
|
|
11865
11885
|
let inputEl;
|
|
11886
|
+
|
|
11887
|
+
let _rootEL;
|
|
11888
|
+
|
|
11889
|
+
let _leadingContentSlot = false;
|
|
11890
|
+
let _trailingContentSlot = false;
|
|
11866
11891
|
let _debounceId = null;
|
|
11867
11892
|
|
|
11868
11893
|
function onKeyUp(e) {
|
|
@@ -11894,6 +11919,18 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
11894
11919
|
if (prefix != "" || suffix != "") {
|
|
11895
11920
|
console.warn("GoAInput [prefix] and [suffix] properties are deprecated. Instead use leadingContent and trailingContent.");
|
|
11896
11921
|
}
|
|
11922
|
+
|
|
11923
|
+
const leadingContentSlot = _rootEL.querySelector("slot[name=leadingContent]");
|
|
11924
|
+
|
|
11925
|
+
if (leadingContentSlot && leadingContentSlot.assignedNodes().length > 0) {
|
|
11926
|
+
$$invalidate(22, _leadingContentSlot = true);
|
|
11927
|
+
}
|
|
11928
|
+
|
|
11929
|
+
const trailingContentSlot = _rootEL.querySelector("slot[name=trailingContent]");
|
|
11930
|
+
|
|
11931
|
+
if (trailingContentSlot && trailingContentSlot.assignedNodes().length > 0) {
|
|
11932
|
+
$$invalidate(23, _trailingContentSlot = true);
|
|
11933
|
+
}
|
|
11897
11934
|
});
|
|
11898
11935
|
|
|
11899
11936
|
function input_binding($$value) {
|
|
@@ -11903,6 +11940,13 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
11903
11940
|
});
|
|
11904
11941
|
}
|
|
11905
11942
|
|
|
11943
|
+
function div3_binding($$value) {
|
|
11944
|
+
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
11945
|
+
_rootEL = $$value;
|
|
11946
|
+
$$invalidate(21, _rootEL);
|
|
11947
|
+
});
|
|
11948
|
+
}
|
|
11949
|
+
|
|
11906
11950
|
$$self.$$set = $$props => {
|
|
11907
11951
|
if ('type' in $$props) $$invalidate(1, type = $$props.type);
|
|
11908
11952
|
if ('name' in $$props) $$invalidate(2, name = $$props.name);
|
|
@@ -11912,11 +11956,11 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
11912
11956
|
if ('leadingicon' in $$props) $$invalidate(5, leadingicon = $$props.leadingicon);
|
|
11913
11957
|
if ('trailingicon' in $$props) $$invalidate(6, trailingicon = $$props.trailingicon);
|
|
11914
11958
|
if ('variant' in $$props) $$invalidate(7, variant = $$props.variant);
|
|
11915
|
-
if ('disabled' in $$props) $$invalidate(
|
|
11916
|
-
if ('handletrailingiconclick' in $$props) $$invalidate(
|
|
11917
|
-
if ('focused' in $$props) $$invalidate(
|
|
11918
|
-
if ('readonly' in $$props) $$invalidate(
|
|
11919
|
-
if ('error' in $$props) $$invalidate(
|
|
11959
|
+
if ('disabled' in $$props) $$invalidate(29, disabled = $$props.disabled);
|
|
11960
|
+
if ('handletrailingiconclick' in $$props) $$invalidate(30, handletrailingiconclick = $$props.handletrailingiconclick);
|
|
11961
|
+
if ('focused' in $$props) $$invalidate(31, focused = $$props.focused);
|
|
11962
|
+
if ('readonly' in $$props) $$invalidate(32, readonly = $$props.readonly);
|
|
11963
|
+
if ('error' in $$props) $$invalidate(33, error = $$props.error);
|
|
11920
11964
|
if ('testid' in $$props) $$invalidate(8, testid = $$props.testid);
|
|
11921
11965
|
if ('width' in $$props) $$invalidate(9, width = $$props.width);
|
|
11922
11966
|
if ('arialabel' in $$props) $$invalidate(10, arialabel = $$props.arialabel);
|
|
@@ -11925,7 +11969,7 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
11925
11969
|
if ('step' in $$props) $$invalidate(13, step = $$props.step);
|
|
11926
11970
|
if ('prefix' in $$props) $$invalidate(14, prefix = $$props.prefix);
|
|
11927
11971
|
if ('suffix' in $$props) $$invalidate(15, suffix = $$props.suffix);
|
|
11928
|
-
if ('debounce' in $$props) $$invalidate(
|
|
11972
|
+
if ('debounce' in $$props) $$invalidate(34, debounce = $$props.debounce);
|
|
11929
11973
|
if ('mt' in $$props) $$invalidate(16, mt = $$props.mt);
|
|
11930
11974
|
if ('mr' in $$props) $$invalidate(17, mr = $$props.mr);
|
|
11931
11975
|
if ('mb' in $$props) $$invalidate(18, mb = $$props.mb);
|
|
@@ -11935,39 +11979,39 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
11935
11979
|
$$self.$$.update = () => {
|
|
11936
11980
|
if ($$self.$$.dirty[0] &
|
|
11937
11981
|
/*handletrailingiconclick*/
|
|
11938
|
-
|
|
11939
|
-
$$invalidate(
|
|
11982
|
+
1073741824) {
|
|
11983
|
+
$$invalidate(27, handlesTrailingIconClick = toBoolean(handletrailingiconclick));
|
|
11940
11984
|
}
|
|
11941
11985
|
|
|
11942
|
-
if ($$self.$$.dirty[
|
|
11986
|
+
if ($$self.$$.dirty[1] &
|
|
11943
11987
|
/*focused*/
|
|
11944
|
-
|
|
11945
|
-
$$invalidate(
|
|
11988
|
+
1) {
|
|
11989
|
+
$$invalidate(35, isFocused = toBoolean(focused));
|
|
11946
11990
|
}
|
|
11947
11991
|
|
|
11948
|
-
if ($$self.$$.dirty[
|
|
11992
|
+
if ($$self.$$.dirty[1] &
|
|
11949
11993
|
/*readonly*/
|
|
11950
|
-
|
|
11951
|
-
$$invalidate(
|
|
11994
|
+
2) {
|
|
11995
|
+
$$invalidate(26, isReadonly = toBoolean(readonly));
|
|
11952
11996
|
}
|
|
11953
11997
|
|
|
11954
|
-
if ($$self.$$.dirty[
|
|
11998
|
+
if ($$self.$$.dirty[1] &
|
|
11955
11999
|
/*error*/
|
|
11956
|
-
|
|
11957
|
-
$$invalidate(
|
|
12000
|
+
4) {
|
|
12001
|
+
$$invalidate(25, isError = toBoolean(error));
|
|
11958
12002
|
}
|
|
11959
12003
|
|
|
11960
12004
|
if ($$self.$$.dirty[0] &
|
|
11961
12005
|
/*disabled*/
|
|
11962
|
-
|
|
11963
|
-
$$invalidate(
|
|
12006
|
+
536870912) {
|
|
12007
|
+
$$invalidate(24, isDisabled = toBoolean(disabled));
|
|
11964
12008
|
}
|
|
11965
12009
|
|
|
11966
12010
|
if ($$self.$$.dirty[0] &
|
|
11967
12011
|
/*inputEl*/
|
|
11968
12012
|
1048576 | $$self.$$.dirty[1] &
|
|
11969
12013
|
/*isFocused*/
|
|
11970
|
-
|
|
12014
|
+
16) {
|
|
11971
12015
|
if (isFocused && inputEl) {
|
|
11972
12016
|
setTimeout(() => inputEl.focus(), 1);
|
|
11973
12017
|
}
|
|
@@ -11984,13 +12028,13 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
11984
12028
|
}
|
|
11985
12029
|
};
|
|
11986
12030
|
|
|
11987
|
-
return [value, type, name, autocapitalize, placeholder, leadingicon, trailingicon, variant, testid, width, arialabel, min, max, step, prefix, suffix, mt, mr, mb, ml, inputEl, isDisabled, isError, isReadonly, handlesTrailingIconClick, onKeyUp, disabled, handletrailingiconclick, focused, readonly, error, debounce, isFocused, input_binding];
|
|
12031
|
+
return [value, type, name, autocapitalize, placeholder, leadingicon, trailingicon, variant, testid, width, arialabel, min, max, step, prefix, suffix, mt, mr, mb, ml, inputEl, _rootEL, _leadingContentSlot, _trailingContentSlot, isDisabled, isError, isReadonly, handlesTrailingIconClick, onKeyUp, disabled, handletrailingiconclick, focused, readonly, error, debounce, isFocused, input_binding, div3_binding];
|
|
11988
12032
|
}
|
|
11989
12033
|
|
|
11990
12034
|
class Input extends SvelteElement {
|
|
11991
12035
|
constructor(options) {
|
|
11992
12036
|
super();
|
|
11993
|
-
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>')
|
|
12037
|
+
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>')
|
|
11994
12038
|
center center no-repeat}</style>`;
|
|
11995
12039
|
init(this, {
|
|
11996
12040
|
target: this.shadowRoot,
|
|
@@ -12005,11 +12049,11 @@ class Input extends SvelteElement {
|
|
|
12005
12049
|
leadingicon: 5,
|
|
12006
12050
|
trailingicon: 6,
|
|
12007
12051
|
variant: 7,
|
|
12008
|
-
disabled:
|
|
12009
|
-
handletrailingiconclick:
|
|
12010
|
-
focused:
|
|
12011
|
-
readonly:
|
|
12012
|
-
error:
|
|
12052
|
+
disabled: 29,
|
|
12053
|
+
handletrailingiconclick: 30,
|
|
12054
|
+
focused: 31,
|
|
12055
|
+
readonly: 32,
|
|
12056
|
+
error: 33,
|
|
12013
12057
|
testid: 8,
|
|
12014
12058
|
width: 9,
|
|
12015
12059
|
arialabel: 10,
|
|
@@ -12018,7 +12062,7 @@ class Input extends SvelteElement {
|
|
|
12018
12062
|
step: 13,
|
|
12019
12063
|
prefix: 14,
|
|
12020
12064
|
suffix: 15,
|
|
12021
|
-
debounce:
|
|
12065
|
+
debounce: 34,
|
|
12022
12066
|
mt: 16,
|
|
12023
12067
|
mr: 17,
|
|
12024
12068
|
mb: 18,
|
|
@@ -12130,7 +12174,7 @@ class Input extends SvelteElement {
|
|
|
12130
12174
|
}
|
|
12131
12175
|
|
|
12132
12176
|
get disabled() {
|
|
12133
|
-
return this.$$.ctx[
|
|
12177
|
+
return this.$$.ctx[29];
|
|
12134
12178
|
}
|
|
12135
12179
|
|
|
12136
12180
|
set disabled(disabled) {
|
|
@@ -12141,7 +12185,7 @@ class Input extends SvelteElement {
|
|
|
12141
12185
|
}
|
|
12142
12186
|
|
|
12143
12187
|
get handletrailingiconclick() {
|
|
12144
|
-
return this.$$.ctx[
|
|
12188
|
+
return this.$$.ctx[30];
|
|
12145
12189
|
}
|
|
12146
12190
|
|
|
12147
12191
|
set handletrailingiconclick(handletrailingiconclick) {
|
|
@@ -12152,7 +12196,7 @@ class Input extends SvelteElement {
|
|
|
12152
12196
|
}
|
|
12153
12197
|
|
|
12154
12198
|
get focused() {
|
|
12155
|
-
return this.$$.ctx[
|
|
12199
|
+
return this.$$.ctx[31];
|
|
12156
12200
|
}
|
|
12157
12201
|
|
|
12158
12202
|
set focused(focused) {
|
|
@@ -12163,7 +12207,7 @@ class Input extends SvelteElement {
|
|
|
12163
12207
|
}
|
|
12164
12208
|
|
|
12165
12209
|
get readonly() {
|
|
12166
|
-
return this.$$.ctx[
|
|
12210
|
+
return this.$$.ctx[32];
|
|
12167
12211
|
}
|
|
12168
12212
|
|
|
12169
12213
|
set readonly(readonly) {
|
|
@@ -12174,7 +12218,7 @@ class Input extends SvelteElement {
|
|
|
12174
12218
|
}
|
|
12175
12219
|
|
|
12176
12220
|
get error() {
|
|
12177
|
-
return this.$$.ctx[
|
|
12221
|
+
return this.$$.ctx[33];
|
|
12178
12222
|
}
|
|
12179
12223
|
|
|
12180
12224
|
set error(error) {
|
|
@@ -12273,7 +12317,7 @@ class Input extends SvelteElement {
|
|
|
12273
12317
|
}
|
|
12274
12318
|
|
|
12275
12319
|
get debounce() {
|
|
12276
|
-
return this.$$.ctx[
|
|
12320
|
+
return this.$$.ctx[34];
|
|
12277
12321
|
}
|
|
12278
12322
|
|
|
12279
12323
|
set debounce(debounce) {
|