@abgov/react-components 4.0.0-alpha.40 → 4.0.0-alpha.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/button/button.d.ts +0 -2
- package/lib/input/input.d.ts +4 -0
- package/package.json +1 -1
- package/react-components.esm.js +320 -199
- package/react-components.umd.js +321 -200
package/react-components.umd.js
CHANGED
|
@@ -1816,10 +1816,10 @@
|
|
|
1816
1816
|
let if_block1_anchor;
|
|
1817
1817
|
let if_block0 =
|
|
1818
1818
|
/*leadingicon*/
|
|
1819
|
-
ctx[
|
|
1819
|
+
ctx[3] && create_if_block_2$7(ctx);
|
|
1820
1820
|
let if_block1 =
|
|
1821
1821
|
/*trailingicon*/
|
|
1822
|
-
ctx[
|
|
1822
|
+
ctx[4] && create_if_block_1$a(ctx);
|
|
1823
1823
|
return {
|
|
1824
1824
|
c() {
|
|
1825
1825
|
if (if_block0) if_block0.c();
|
|
@@ -1844,7 +1844,7 @@
|
|
|
1844
1844
|
p(ctx, dirty) {
|
|
1845
1845
|
if (
|
|
1846
1846
|
/*leadingicon*/
|
|
1847
|
-
ctx[
|
|
1847
|
+
ctx[3]) {
|
|
1848
1848
|
if (if_block0) {
|
|
1849
1849
|
if_block0.p(ctx, dirty);
|
|
1850
1850
|
} else {
|
|
@@ -1859,7 +1859,7 @@
|
|
|
1859
1859
|
|
|
1860
1860
|
if (
|
|
1861
1861
|
/*trailingicon*/
|
|
1862
|
-
ctx[
|
|
1862
|
+
ctx[4]) {
|
|
1863
1863
|
if (if_block1) {
|
|
1864
1864
|
if_block1.p(ctx, dirty);
|
|
1865
1865
|
} else {
|
|
@@ -1883,7 +1883,7 @@
|
|
|
1883
1883
|
}
|
|
1884
1884
|
|
|
1885
1885
|
};
|
|
1886
|
-
} // (
|
|
1886
|
+
} // (53:2) {#if type === "start"}
|
|
1887
1887
|
|
|
1888
1888
|
|
|
1889
1889
|
function create_if_block$h(ctx) {
|
|
@@ -1917,7 +1917,7 @@
|
|
|
1917
1917
|
}
|
|
1918
1918
|
|
|
1919
1919
|
};
|
|
1920
|
-
} // (
|
|
1920
|
+
} // (59:4) {#if leadingicon}
|
|
1921
1921
|
|
|
1922
1922
|
|
|
1923
1923
|
function create_if_block_2$7(ctx) {
|
|
@@ -1928,10 +1928,10 @@
|
|
|
1928
1928
|
set_custom_element_data(goa_icon, "id", "leading-icon");
|
|
1929
1929
|
set_custom_element_data(goa_icon, "type",
|
|
1930
1930
|
/*leadingicon*/
|
|
1931
|
-
ctx[
|
|
1931
|
+
ctx[3]);
|
|
1932
1932
|
set_custom_element_data(goa_icon, "inverted",
|
|
1933
1933
|
/*isButtonDark*/
|
|
1934
|
-
ctx[
|
|
1934
|
+
ctx[6]);
|
|
1935
1935
|
},
|
|
1936
1936
|
|
|
1937
1937
|
m(target, anchor) {
|
|
@@ -1941,18 +1941,18 @@
|
|
|
1941
1941
|
p(ctx, dirty) {
|
|
1942
1942
|
if (dirty &
|
|
1943
1943
|
/*leadingicon*/
|
|
1944
|
-
|
|
1944
|
+
8) {
|
|
1945
1945
|
set_custom_element_data(goa_icon, "type",
|
|
1946
1946
|
/*leadingicon*/
|
|
1947
|
-
ctx[
|
|
1947
|
+
ctx[3]);
|
|
1948
1948
|
}
|
|
1949
1949
|
|
|
1950
1950
|
if (dirty &
|
|
1951
1951
|
/*isButtonDark*/
|
|
1952
|
-
|
|
1952
|
+
64) {
|
|
1953
1953
|
set_custom_element_data(goa_icon, "inverted",
|
|
1954
1954
|
/*isButtonDark*/
|
|
1955
|
-
ctx[
|
|
1955
|
+
ctx[6]);
|
|
1956
1956
|
}
|
|
1957
1957
|
},
|
|
1958
1958
|
|
|
@@ -1961,7 +1961,7 @@
|
|
|
1961
1961
|
}
|
|
1962
1962
|
|
|
1963
1963
|
};
|
|
1964
|
-
} // (
|
|
1964
|
+
} // (65:4) {#if trailingicon}
|
|
1965
1965
|
|
|
1966
1966
|
|
|
1967
1967
|
function create_if_block_1$a(ctx) {
|
|
@@ -1972,10 +1972,10 @@
|
|
|
1972
1972
|
set_custom_element_data(goa_icon, "id", "trailing-icon");
|
|
1973
1973
|
set_custom_element_data(goa_icon, "type",
|
|
1974
1974
|
/*trailingicon*/
|
|
1975
|
-
ctx[
|
|
1975
|
+
ctx[4]);
|
|
1976
1976
|
set_custom_element_data(goa_icon, "inverted",
|
|
1977
1977
|
/*isButtonDark*/
|
|
1978
|
-
ctx[
|
|
1978
|
+
ctx[6]);
|
|
1979
1979
|
},
|
|
1980
1980
|
|
|
1981
1981
|
m(target, anchor) {
|
|
@@ -1985,18 +1985,18 @@
|
|
|
1985
1985
|
p(ctx, dirty) {
|
|
1986
1986
|
if (dirty &
|
|
1987
1987
|
/*trailingicon*/
|
|
1988
|
-
|
|
1988
|
+
16) {
|
|
1989
1989
|
set_custom_element_data(goa_icon, "type",
|
|
1990
1990
|
/*trailingicon*/
|
|
1991
|
-
ctx[
|
|
1991
|
+
ctx[4]);
|
|
1992
1992
|
}
|
|
1993
1993
|
|
|
1994
1994
|
if (dirty &
|
|
1995
1995
|
/*isButtonDark*/
|
|
1996
|
-
|
|
1996
|
+
64) {
|
|
1997
1997
|
set_custom_element_data(goa_icon, "inverted",
|
|
1998
1998
|
/*isButtonDark*/
|
|
1999
|
-
ctx[
|
|
1999
|
+
ctx[6]);
|
|
2000
2000
|
}
|
|
2001
2001
|
},
|
|
2002
2002
|
|
|
@@ -2034,21 +2034,18 @@
|
|
|
2034
2034
|
ctx[1] + " " +
|
|
2035
2035
|
/*variant*/
|
|
2036
2036
|
ctx[2]));
|
|
2037
|
-
attr(button, "title",
|
|
2038
|
-
/*title*/
|
|
2039
|
-
ctx[3]);
|
|
2040
2037
|
button.disabled =
|
|
2041
2038
|
/*isDisabled*/
|
|
2042
|
-
ctx[
|
|
2039
|
+
ctx[7];
|
|
2043
2040
|
attr(button, "data-testid",
|
|
2044
2041
|
/*testid*/
|
|
2045
|
-
ctx[
|
|
2042
|
+
ctx[5]);
|
|
2046
2043
|
toggle_class(button, "leading",
|
|
2047
2044
|
/*leadingicon*/
|
|
2048
|
-
ctx[
|
|
2045
|
+
ctx[3]);
|
|
2049
2046
|
toggle_class(button, "trailing",
|
|
2050
2047
|
/*trailingicon*/
|
|
2051
|
-
ctx[
|
|
2048
|
+
ctx[4] ||
|
|
2052
2049
|
/*type*/
|
|
2053
2050
|
ctx[0] === "start");
|
|
2054
2051
|
},
|
|
@@ -2088,44 +2085,36 @@
|
|
|
2088
2085
|
attr(button, "class", button_class_value);
|
|
2089
2086
|
}
|
|
2090
2087
|
|
|
2091
|
-
if (dirty &
|
|
2092
|
-
/*title*/
|
|
2093
|
-
8) {
|
|
2094
|
-
attr(button, "title",
|
|
2095
|
-
/*title*/
|
|
2096
|
-
ctx[3]);
|
|
2097
|
-
}
|
|
2098
|
-
|
|
2099
2088
|
if (dirty &
|
|
2100
2089
|
/*isDisabled*/
|
|
2101
|
-
|
|
2090
|
+
128) {
|
|
2102
2091
|
button.disabled =
|
|
2103
2092
|
/*isDisabled*/
|
|
2104
|
-
ctx[
|
|
2093
|
+
ctx[7];
|
|
2105
2094
|
}
|
|
2106
2095
|
|
|
2107
2096
|
if (dirty &
|
|
2108
2097
|
/*testid*/
|
|
2109
|
-
|
|
2098
|
+
32) {
|
|
2110
2099
|
attr(button, "data-testid",
|
|
2111
2100
|
/*testid*/
|
|
2112
|
-
ctx[
|
|
2101
|
+
ctx[5]);
|
|
2113
2102
|
}
|
|
2114
2103
|
|
|
2115
2104
|
if (dirty &
|
|
2116
2105
|
/*type, size, variant, leadingicon*/
|
|
2117
|
-
|
|
2106
|
+
15) {
|
|
2118
2107
|
toggle_class(button, "leading",
|
|
2119
2108
|
/*leadingicon*/
|
|
2120
|
-
ctx[
|
|
2109
|
+
ctx[3]);
|
|
2121
2110
|
}
|
|
2122
2111
|
|
|
2123
2112
|
if (dirty &
|
|
2124
2113
|
/*type, size, variant, trailingicon, type*/
|
|
2125
|
-
|
|
2114
|
+
23) {
|
|
2126
2115
|
toggle_class(button, "trailing",
|
|
2127
2116
|
/*trailingicon*/
|
|
2128
|
-
ctx[
|
|
2117
|
+
ctx[4] ||
|
|
2129
2118
|
/*type*/
|
|
2130
2119
|
ctx[0] === "start");
|
|
2131
2120
|
}
|
|
@@ -2180,9 +2169,6 @@
|
|
|
2180
2169
|
let {
|
|
2181
2170
|
variant = "normal"
|
|
2182
2171
|
} = $$props;
|
|
2183
|
-
let {
|
|
2184
|
-
title = ""
|
|
2185
|
-
} = $$props;
|
|
2186
2172
|
let {
|
|
2187
2173
|
disabled = "false"
|
|
2188
2174
|
} = $$props;
|
|
@@ -2213,28 +2199,27 @@
|
|
|
2213
2199
|
if ('type' in $$props) $$invalidate(0, type = $$props.type);
|
|
2214
2200
|
if ('size' in $$props) $$invalidate(1, size = $$props.size);
|
|
2215
2201
|
if ('variant' in $$props) $$invalidate(2, variant = $$props.variant);
|
|
2216
|
-
if ('
|
|
2217
|
-
if ('
|
|
2218
|
-
if ('
|
|
2219
|
-
if ('
|
|
2220
|
-
if ('testid' in $$props) $$invalidate(6, testid = $$props.testid);
|
|
2202
|
+
if ('disabled' in $$props) $$invalidate(8, disabled = $$props.disabled);
|
|
2203
|
+
if ('leadingicon' in $$props) $$invalidate(3, leadingicon = $$props.leadingicon);
|
|
2204
|
+
if ('trailingicon' in $$props) $$invalidate(4, trailingicon = $$props.trailingicon);
|
|
2205
|
+
if ('testid' in $$props) $$invalidate(5, testid = $$props.testid);
|
|
2221
2206
|
};
|
|
2222
2207
|
|
|
2223
2208
|
$$self.$$.update = () => {
|
|
2224
2209
|
if ($$self.$$.dirty &
|
|
2225
2210
|
/*disabled*/
|
|
2226
|
-
|
|
2227
|
-
$$invalidate(
|
|
2211
|
+
256) {
|
|
2212
|
+
$$invalidate(7, isDisabled = toBoolean(disabled));
|
|
2228
2213
|
}
|
|
2229
2214
|
|
|
2230
2215
|
if ($$self.$$.dirty &
|
|
2231
2216
|
/*type*/
|
|
2232
2217
|
1) {
|
|
2233
|
-
$$invalidate(
|
|
2218
|
+
$$invalidate(6, isButtonDark = type === "primary" || type === "start");
|
|
2234
2219
|
}
|
|
2235
2220
|
};
|
|
2236
2221
|
|
|
2237
|
-
return [type, size, variant,
|
|
2222
|
+
return [type, size, variant, leadingicon, trailingicon, testid, isButtonDark, isDisabled, disabled];
|
|
2238
2223
|
}
|
|
2239
2224
|
|
|
2240
2225
|
class Button extends SvelteElement {
|
|
@@ -2250,11 +2235,10 @@
|
|
|
2250
2235
|
type: 0,
|
|
2251
2236
|
size: 1,
|
|
2252
2237
|
variant: 2,
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
testid: 6
|
|
2238
|
+
disabled: 8,
|
|
2239
|
+
leadingicon: 3,
|
|
2240
|
+
trailingicon: 4,
|
|
2241
|
+
testid: 5
|
|
2258
2242
|
}, null);
|
|
2259
2243
|
|
|
2260
2244
|
if (options) {
|
|
@@ -2270,7 +2254,7 @@
|
|
|
2270
2254
|
}
|
|
2271
2255
|
|
|
2272
2256
|
static get observedAttributes() {
|
|
2273
|
-
return ["type", "size", "variant", "
|
|
2257
|
+
return ["type", "size", "variant", "disabled", "leadingicon", "trailingicon", "testid"];
|
|
2274
2258
|
}
|
|
2275
2259
|
|
|
2276
2260
|
get type() {
|
|
@@ -2306,19 +2290,8 @@
|
|
|
2306
2290
|
flush();
|
|
2307
2291
|
}
|
|
2308
2292
|
|
|
2309
|
-
get title() {
|
|
2310
|
-
return this.$$.ctx[3];
|
|
2311
|
-
}
|
|
2312
|
-
|
|
2313
|
-
set title(title) {
|
|
2314
|
-
this.$$set({
|
|
2315
|
-
title
|
|
2316
|
-
});
|
|
2317
|
-
flush();
|
|
2318
|
-
}
|
|
2319
|
-
|
|
2320
2293
|
get disabled() {
|
|
2321
|
-
return this.$$.ctx[
|
|
2294
|
+
return this.$$.ctx[8];
|
|
2322
2295
|
}
|
|
2323
2296
|
|
|
2324
2297
|
set disabled(disabled) {
|
|
@@ -2329,7 +2302,7 @@
|
|
|
2329
2302
|
}
|
|
2330
2303
|
|
|
2331
2304
|
get leadingicon() {
|
|
2332
|
-
return this.$$.ctx[
|
|
2305
|
+
return this.$$.ctx[3];
|
|
2333
2306
|
}
|
|
2334
2307
|
|
|
2335
2308
|
set leadingicon(leadingicon) {
|
|
@@ -2340,7 +2313,7 @@
|
|
|
2340
2313
|
}
|
|
2341
2314
|
|
|
2342
2315
|
get trailingicon() {
|
|
2343
|
-
return this.$$.ctx[
|
|
2316
|
+
return this.$$.ctx[4];
|
|
2344
2317
|
}
|
|
2345
2318
|
|
|
2346
2319
|
set trailingicon(trailingicon) {
|
|
@@ -2351,7 +2324,7 @@
|
|
|
2351
2324
|
}
|
|
2352
2325
|
|
|
2353
2326
|
get testid() {
|
|
2354
|
-
return this.$$.ctx[
|
|
2327
|
+
return this.$$.ctx[5];
|
|
2355
2328
|
}
|
|
2356
2329
|
|
|
2357
2330
|
set testid(testid) {
|
|
@@ -6639,7 +6612,40 @@
|
|
|
6639
6612
|
customElements.define("goa-icon-button", IconButton);
|
|
6640
6613
|
/* libs/web-components/src/components/input/Input.svelte generated by Svelte v3.49.0 */
|
|
6641
6614
|
|
|
6642
|
-
function
|
|
6615
|
+
function create_if_block_7(ctx) {
|
|
6616
|
+
let div;
|
|
6617
|
+
let t;
|
|
6618
|
+
return {
|
|
6619
|
+
c() {
|
|
6620
|
+
div = element("div");
|
|
6621
|
+
t = text(
|
|
6622
|
+
/*prefix*/
|
|
6623
|
+
ctx[13]);
|
|
6624
|
+
attr(div, "class", "prefix");
|
|
6625
|
+
},
|
|
6626
|
+
|
|
6627
|
+
m(target, anchor) {
|
|
6628
|
+
insert(target, div, anchor);
|
|
6629
|
+
append(div, t);
|
|
6630
|
+
},
|
|
6631
|
+
|
|
6632
|
+
p(ctx, dirty) {
|
|
6633
|
+
if (dirty &
|
|
6634
|
+
/*prefix*/
|
|
6635
|
+
8192) set_data(t,
|
|
6636
|
+
/*prefix*/
|
|
6637
|
+
ctx[13]);
|
|
6638
|
+
},
|
|
6639
|
+
|
|
6640
|
+
d(detaching) {
|
|
6641
|
+
if (detaching) detach(div);
|
|
6642
|
+
}
|
|
6643
|
+
|
|
6644
|
+
};
|
|
6645
|
+
} // (81:4) {#if leadingicon}
|
|
6646
|
+
|
|
6647
|
+
|
|
6648
|
+
function create_if_block_6(ctx) {
|
|
6643
6649
|
let goa_icon;
|
|
6644
6650
|
return {
|
|
6645
6651
|
c() {
|
|
@@ -6670,10 +6676,10 @@
|
|
|
6670
6676
|
}
|
|
6671
6677
|
|
|
6672
6678
|
};
|
|
6673
|
-
} // (
|
|
6679
|
+
} // (110:4) {#if trailingicon && !handlesTrailingIconClick}
|
|
6674
6680
|
|
|
6675
6681
|
|
|
6676
|
-
function
|
|
6682
|
+
function create_if_block_5(ctx) {
|
|
6677
6683
|
let goa_icon;
|
|
6678
6684
|
return {
|
|
6679
6685
|
c() {
|
|
@@ -6705,10 +6711,10 @@
|
|
|
6705
6711
|
}
|
|
6706
6712
|
|
|
6707
6713
|
};
|
|
6708
|
-
} // (
|
|
6714
|
+
} // (120:4) {#if trailingicon && handlesTrailingIconClick}
|
|
6709
6715
|
|
|
6710
6716
|
|
|
6711
|
-
function
|
|
6717
|
+
function create_if_block_4$1(ctx) {
|
|
6712
6718
|
let goa_icon_button;
|
|
6713
6719
|
let mounted;
|
|
6714
6720
|
let dispose;
|
|
@@ -6717,7 +6723,7 @@
|
|
|
6717
6723
|
goa_icon_button = element("goa-icon-button");
|
|
6718
6724
|
set_custom_element_data(goa_icon_button, "disabled",
|
|
6719
6725
|
/*isDisabled*/
|
|
6720
|
-
ctx[
|
|
6726
|
+
ctx[18]);
|
|
6721
6727
|
set_custom_element_data(goa_icon_button, "variant", "nocolor");
|
|
6722
6728
|
set_custom_element_data(goa_icon_button, "size", "medium");
|
|
6723
6729
|
set_custom_element_data(goa_icon_button, "type",
|
|
@@ -6738,10 +6744,10 @@
|
|
|
6738
6744
|
p(ctx, dirty) {
|
|
6739
6745
|
if (dirty &
|
|
6740
6746
|
/*isDisabled*/
|
|
6741
|
-
|
|
6747
|
+
262144) {
|
|
6742
6748
|
set_custom_element_data(goa_icon_button, "disabled",
|
|
6743
6749
|
/*isDisabled*/
|
|
6744
|
-
ctx[
|
|
6750
|
+
ctx[18]);
|
|
6745
6751
|
}
|
|
6746
6752
|
|
|
6747
6753
|
if (dirty &
|
|
@@ -6760,7 +6766,40 @@
|
|
|
6760
6766
|
}
|
|
6761
6767
|
|
|
6762
6768
|
};
|
|
6763
|
-
} // (
|
|
6769
|
+
} // (131:4) {#if suffix}
|
|
6770
|
+
|
|
6771
|
+
|
|
6772
|
+
function create_if_block_3$3(ctx) {
|
|
6773
|
+
let span;
|
|
6774
|
+
let t;
|
|
6775
|
+
return {
|
|
6776
|
+
c() {
|
|
6777
|
+
span = element("span");
|
|
6778
|
+
t = text(
|
|
6779
|
+
/*suffix*/
|
|
6780
|
+
ctx[14]);
|
|
6781
|
+
attr(span, "class", "suffix");
|
|
6782
|
+
},
|
|
6783
|
+
|
|
6784
|
+
m(target, anchor) {
|
|
6785
|
+
insert(target, span, anchor);
|
|
6786
|
+
append(span, t);
|
|
6787
|
+
},
|
|
6788
|
+
|
|
6789
|
+
p(ctx, dirty) {
|
|
6790
|
+
if (dirty &
|
|
6791
|
+
/*suffix*/
|
|
6792
|
+
16384) set_data(t,
|
|
6793
|
+
/*suffix*/
|
|
6794
|
+
ctx[14]);
|
|
6795
|
+
},
|
|
6796
|
+
|
|
6797
|
+
d(detaching) {
|
|
6798
|
+
if (detaching) detach(span);
|
|
6799
|
+
}
|
|
6800
|
+
|
|
6801
|
+
};
|
|
6802
|
+
} // (137:2) {#if showCounter}
|
|
6764
6803
|
|
|
6765
6804
|
|
|
6766
6805
|
function create_if_block$a(ctx) {
|
|
@@ -6769,7 +6808,7 @@
|
|
|
6769
6808
|
function select_block_type(ctx, dirty) {
|
|
6770
6809
|
if (
|
|
6771
6810
|
/*maxcharcount*/
|
|
6772
|
-
ctx[
|
|
6811
|
+
ctx[15] > 0) return create_if_block_1$6;
|
|
6773
6812
|
if (
|
|
6774
6813
|
/*value*/
|
|
6775
6814
|
ctx[0].length > 0) return create_if_block_2$5;
|
|
@@ -6811,7 +6850,7 @@
|
|
|
6811
6850
|
}
|
|
6812
6851
|
|
|
6813
6852
|
};
|
|
6814
|
-
} // (
|
|
6853
|
+
} // (142:31)
|
|
6815
6854
|
|
|
6816
6855
|
|
|
6817
6856
|
function create_if_block_2$5(ctx) {
|
|
@@ -6845,7 +6884,7 @@
|
|
|
6845
6884
|
}
|
|
6846
6885
|
|
|
6847
6886
|
};
|
|
6848
|
-
} // (
|
|
6887
|
+
} // (138:4) {#if maxcharcount > 0}
|
|
6849
6888
|
|
|
6850
6889
|
|
|
6851
6890
|
function create_if_block_1$6(ctx) {
|
|
@@ -6856,7 +6895,7 @@
|
|
|
6856
6895
|
let t0;
|
|
6857
6896
|
let t1_value = `/${
|
|
6858
6897
|
/*maxcharcount*/
|
|
6859
|
-
ctx[
|
|
6898
|
+
ctx[15]}` + "";
|
|
6860
6899
|
let t1;
|
|
6861
6900
|
return {
|
|
6862
6901
|
c() {
|
|
@@ -6868,7 +6907,7 @@
|
|
|
6868
6907
|
/*value*/
|
|
6869
6908
|
ctx[0].length >
|
|
6870
6909
|
/*maxcharcount*/
|
|
6871
|
-
ctx[
|
|
6910
|
+
ctx[15]);
|
|
6872
6911
|
},
|
|
6873
6912
|
|
|
6874
6913
|
m(target, anchor) {
|
|
@@ -6885,18 +6924,18 @@
|
|
|
6885
6924
|
ctx[0].length + "")) set_data(t0, t0_value);
|
|
6886
6925
|
if (dirty &
|
|
6887
6926
|
/*maxcharcount*/
|
|
6888
|
-
|
|
6927
|
+
32768 && t1_value !== (t1_value = `/${
|
|
6889
6928
|
/*maxcharcount*/
|
|
6890
|
-
ctx[
|
|
6929
|
+
ctx[15]}` + "")) set_data(t1, t1_value);
|
|
6891
6930
|
|
|
6892
6931
|
if (dirty &
|
|
6893
6932
|
/*value, maxcharcount*/
|
|
6894
|
-
|
|
6933
|
+
32769) {
|
|
6895
6934
|
toggle_class(div, "counter-error",
|
|
6896
6935
|
/*value*/
|
|
6897
6936
|
ctx[0].length >
|
|
6898
6937
|
/*maxcharcount*/
|
|
6899
|
-
ctx[
|
|
6938
|
+
ctx[15]);
|
|
6900
6939
|
}
|
|
6901
6940
|
},
|
|
6902
6941
|
|
|
@@ -6911,46 +6950,58 @@
|
|
|
6911
6950
|
let div1;
|
|
6912
6951
|
let div0;
|
|
6913
6952
|
let t0;
|
|
6953
|
+
let t1;
|
|
6914
6954
|
let input;
|
|
6915
6955
|
let input_class_value;
|
|
6916
6956
|
let input_style_value;
|
|
6917
6957
|
let input_aria_label_value;
|
|
6918
|
-
let t1;
|
|
6919
6958
|
let t2;
|
|
6920
|
-
let div0_class_value;
|
|
6921
6959
|
let t3;
|
|
6960
|
+
let t4;
|
|
6961
|
+
let div0_class_value;
|
|
6962
|
+
let t5;
|
|
6922
6963
|
let div1_style_value;
|
|
6923
6964
|
let mounted;
|
|
6924
6965
|
let dispose;
|
|
6925
6966
|
let if_block0 =
|
|
6926
|
-
/*
|
|
6927
|
-
ctx[
|
|
6967
|
+
/*prefix*/
|
|
6968
|
+
ctx[13] && create_if_block_7(ctx);
|
|
6928
6969
|
let if_block1 =
|
|
6970
|
+
/*leadingicon*/
|
|
6971
|
+
ctx[4] && create_if_block_6(ctx);
|
|
6972
|
+
let if_block2 =
|
|
6929
6973
|
/*trailingicon*/
|
|
6930
6974
|
ctx[5] && !
|
|
6931
6975
|
/*handlesTrailingIconClick*/
|
|
6932
|
-
ctx[
|
|
6933
|
-
let
|
|
6976
|
+
ctx[21] && create_if_block_5(ctx);
|
|
6977
|
+
let if_block3 =
|
|
6934
6978
|
/*trailingicon*/
|
|
6935
6979
|
ctx[5] &&
|
|
6936
6980
|
/*handlesTrailingIconClick*/
|
|
6937
|
-
ctx[
|
|
6938
|
-
let
|
|
6981
|
+
ctx[21] && create_if_block_4$1(ctx);
|
|
6982
|
+
let if_block4 =
|
|
6983
|
+
/*suffix*/
|
|
6984
|
+
ctx[14] && create_if_block_3$3(ctx);
|
|
6985
|
+
let if_block5 =
|
|
6939
6986
|
/*showCounter*/
|
|
6940
|
-
ctx[
|
|
6987
|
+
ctx[17] && create_if_block$a(ctx);
|
|
6941
6988
|
return {
|
|
6942
6989
|
c() {
|
|
6943
6990
|
div1 = element("div");
|
|
6944
6991
|
div0 = element("div");
|
|
6945
6992
|
if (if_block0) if_block0.c();
|
|
6946
6993
|
t0 = space();
|
|
6947
|
-
input = element("input");
|
|
6948
|
-
t1 = space();
|
|
6949
6994
|
if (if_block1) if_block1.c();
|
|
6995
|
+
t1 = space();
|
|
6996
|
+
input = element("input");
|
|
6950
6997
|
t2 = space();
|
|
6951
6998
|
if (if_block2) if_block2.c();
|
|
6952
6999
|
t3 = space();
|
|
6953
7000
|
if (if_block3) if_block3.c();
|
|
7001
|
+
t4 = space();
|
|
7002
|
+
if (if_block4) if_block4.c();
|
|
7003
|
+
t5 = space();
|
|
7004
|
+
if (if_block5) if_block5.c();
|
|
6954
7005
|
this.c = noop;
|
|
6955
7006
|
attr(input, "class", input_class_value = `input--${
|
|
6956
7007
|
/*variant*/
|
|
@@ -6960,10 +7011,10 @@
|
|
|
6960
7011
|
ctx[5] ? "-0.5rem" : "0"}`);
|
|
6961
7012
|
input.readOnly =
|
|
6962
7013
|
/*isReadonly*/
|
|
6963
|
-
ctx[
|
|
7014
|
+
ctx[20];
|
|
6964
7015
|
input.disabled =
|
|
6965
7016
|
/*isDisabled*/
|
|
6966
|
-
ctx[
|
|
7017
|
+
ctx[18];
|
|
6967
7018
|
attr(input, "data-testid",
|
|
6968
7019
|
/*testid*/
|
|
6969
7020
|
ctx[7]);
|
|
@@ -6998,7 +7049,7 @@
|
|
|
6998
7049
|
goa-input
|
|
6999
7050
|
${
|
|
7000
7051
|
/*isDisabled*/
|
|
7001
|
-
ctx[
|
|
7052
|
+
ctx[18] ? "goa-input--disabled" : ""}
|
|
7002
7053
|
variant--${
|
|
7003
7054
|
/*variant*/
|
|
7004
7055
|
ctx[6]}
|
|
@@ -7008,7 +7059,7 @@
|
|
|
7008
7059
|
`);
|
|
7009
7060
|
toggle_class(div0, "error",
|
|
7010
7061
|
/*isError*/
|
|
7011
|
-
ctx[
|
|
7062
|
+
ctx[19]);
|
|
7012
7063
|
attr(div1, "class", "container");
|
|
7013
7064
|
attr(div1, "style", div1_style_value = `
|
|
7014
7065
|
--width: ${
|
|
@@ -7022,35 +7073,39 @@
|
|
|
7022
7073
|
append(div1, div0);
|
|
7023
7074
|
if (if_block0) if_block0.m(div0, null);
|
|
7024
7075
|
append(div0, t0);
|
|
7076
|
+
if (if_block1) if_block1.m(div0, null);
|
|
7077
|
+
append(div0, t1);
|
|
7025
7078
|
append(div0, input);
|
|
7026
7079
|
/*input_binding*/
|
|
7027
7080
|
|
|
7028
|
-
ctx[
|
|
7029
|
-
append(div0, t1);
|
|
7030
|
-
if (if_block1) if_block1.m(div0, null);
|
|
7081
|
+
ctx[30](input);
|
|
7031
7082
|
append(div0, t2);
|
|
7032
7083
|
if (if_block2) if_block2.m(div0, null);
|
|
7033
|
-
append(
|
|
7034
|
-
if (if_block3) if_block3.m(
|
|
7084
|
+
append(div0, t3);
|
|
7085
|
+
if (if_block3) if_block3.m(div0, null);
|
|
7086
|
+
append(div0, t4);
|
|
7087
|
+
if (if_block4) if_block4.m(div0, null);
|
|
7088
|
+
append(div1, t5);
|
|
7089
|
+
if (if_block5) if_block5.m(div1, null);
|
|
7035
7090
|
|
|
7036
7091
|
if (!mounted) {
|
|
7037
7092
|
dispose = [listen(input, "keyup",
|
|
7038
7093
|
/*onKeyUp*/
|
|
7039
|
-
ctx[
|
|
7094
|
+
ctx[22]), listen(input, "change",
|
|
7040
7095
|
/*onKeyUp*/
|
|
7041
|
-
ctx[
|
|
7096
|
+
ctx[22])];
|
|
7042
7097
|
mounted = true;
|
|
7043
7098
|
}
|
|
7044
7099
|
},
|
|
7045
7100
|
|
|
7046
7101
|
p(ctx, [dirty]) {
|
|
7047
7102
|
if (
|
|
7048
|
-
/*
|
|
7049
|
-
ctx[
|
|
7103
|
+
/*prefix*/
|
|
7104
|
+
ctx[13]) {
|
|
7050
7105
|
if (if_block0) {
|
|
7051
7106
|
if_block0.p(ctx, dirty);
|
|
7052
7107
|
} else {
|
|
7053
|
-
if_block0 =
|
|
7108
|
+
if_block0 = create_if_block_7(ctx);
|
|
7054
7109
|
if_block0.c();
|
|
7055
7110
|
if_block0.m(div0, t0);
|
|
7056
7111
|
}
|
|
@@ -7059,6 +7114,21 @@
|
|
|
7059
7114
|
if_block0 = null;
|
|
7060
7115
|
}
|
|
7061
7116
|
|
|
7117
|
+
if (
|
|
7118
|
+
/*leadingicon*/
|
|
7119
|
+
ctx[4]) {
|
|
7120
|
+
if (if_block1) {
|
|
7121
|
+
if_block1.p(ctx, dirty);
|
|
7122
|
+
} else {
|
|
7123
|
+
if_block1 = create_if_block_6(ctx);
|
|
7124
|
+
if_block1.c();
|
|
7125
|
+
if_block1.m(div0, t1);
|
|
7126
|
+
}
|
|
7127
|
+
} else if (if_block1) {
|
|
7128
|
+
if_block1.d(1);
|
|
7129
|
+
if_block1 = null;
|
|
7130
|
+
}
|
|
7131
|
+
|
|
7062
7132
|
if (dirty &
|
|
7063
7133
|
/*variant*/
|
|
7064
7134
|
64 && input_class_value !== (input_class_value = `input--${
|
|
@@ -7077,18 +7147,18 @@
|
|
|
7077
7147
|
|
|
7078
7148
|
if (dirty &
|
|
7079
7149
|
/*isReadonly*/
|
|
7080
|
-
|
|
7150
|
+
1048576) {
|
|
7081
7151
|
input.readOnly =
|
|
7082
7152
|
/*isReadonly*/
|
|
7083
|
-
ctx[
|
|
7153
|
+
ctx[20];
|
|
7084
7154
|
}
|
|
7085
7155
|
|
|
7086
7156
|
if (dirty &
|
|
7087
7157
|
/*isDisabled*/
|
|
7088
|
-
|
|
7158
|
+
262144) {
|
|
7089
7159
|
input.disabled =
|
|
7090
7160
|
/*isDisabled*/
|
|
7091
|
-
ctx[
|
|
7161
|
+
ctx[18];
|
|
7092
7162
|
}
|
|
7093
7163
|
|
|
7094
7164
|
if (dirty &
|
|
@@ -7171,43 +7241,58 @@
|
|
|
7171
7241
|
/*trailingicon*/
|
|
7172
7242
|
ctx[5] && !
|
|
7173
7243
|
/*handlesTrailingIconClick*/
|
|
7174
|
-
ctx[
|
|
7175
|
-
if (
|
|
7176
|
-
|
|
7244
|
+
ctx[21]) {
|
|
7245
|
+
if (if_block2) {
|
|
7246
|
+
if_block2.p(ctx, dirty);
|
|
7177
7247
|
} else {
|
|
7178
|
-
|
|
7179
|
-
|
|
7180
|
-
|
|
7248
|
+
if_block2 = create_if_block_5(ctx);
|
|
7249
|
+
if_block2.c();
|
|
7250
|
+
if_block2.m(div0, t3);
|
|
7181
7251
|
}
|
|
7182
|
-
} else if (
|
|
7183
|
-
|
|
7184
|
-
|
|
7252
|
+
} else if (if_block2) {
|
|
7253
|
+
if_block2.d(1);
|
|
7254
|
+
if_block2 = null;
|
|
7185
7255
|
}
|
|
7186
7256
|
|
|
7187
7257
|
if (
|
|
7188
7258
|
/*trailingicon*/
|
|
7189
7259
|
ctx[5] &&
|
|
7190
7260
|
/*handlesTrailingIconClick*/
|
|
7191
|
-
ctx[
|
|
7192
|
-
if (
|
|
7193
|
-
|
|
7261
|
+
ctx[21]) {
|
|
7262
|
+
if (if_block3) {
|
|
7263
|
+
if_block3.p(ctx, dirty);
|
|
7194
7264
|
} else {
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7265
|
+
if_block3 = create_if_block_4$1(ctx);
|
|
7266
|
+
if_block3.c();
|
|
7267
|
+
if_block3.m(div0, t4);
|
|
7198
7268
|
}
|
|
7199
|
-
} else if (
|
|
7200
|
-
|
|
7201
|
-
|
|
7269
|
+
} else if (if_block3) {
|
|
7270
|
+
if_block3.d(1);
|
|
7271
|
+
if_block3 = null;
|
|
7272
|
+
}
|
|
7273
|
+
|
|
7274
|
+
if (
|
|
7275
|
+
/*suffix*/
|
|
7276
|
+
ctx[14]) {
|
|
7277
|
+
if (if_block4) {
|
|
7278
|
+
if_block4.p(ctx, dirty);
|
|
7279
|
+
} else {
|
|
7280
|
+
if_block4 = create_if_block_3$3(ctx);
|
|
7281
|
+
if_block4.c();
|
|
7282
|
+
if_block4.m(div0, null);
|
|
7283
|
+
}
|
|
7284
|
+
} else if (if_block4) {
|
|
7285
|
+
if_block4.d(1);
|
|
7286
|
+
if_block4 = null;
|
|
7202
7287
|
}
|
|
7203
7288
|
|
|
7204
7289
|
if (dirty &
|
|
7205
7290
|
/*isDisabled, variant, type*/
|
|
7206
|
-
|
|
7291
|
+
262210 && div0_class_value !== (div0_class_value = `
|
|
7207
7292
|
goa-input
|
|
7208
7293
|
${
|
|
7209
7294
|
/*isDisabled*/
|
|
7210
|
-
ctx[
|
|
7295
|
+
ctx[18] ? "goa-input--disabled" : ""}
|
|
7211
7296
|
variant--${
|
|
7212
7297
|
/*variant*/
|
|
7213
7298
|
ctx[6]}
|
|
@@ -7220,25 +7305,25 @@
|
|
|
7220
7305
|
|
|
7221
7306
|
if (dirty &
|
|
7222
7307
|
/*isDisabled, variant, type, isError*/
|
|
7223
|
-
|
|
7308
|
+
786498) {
|
|
7224
7309
|
toggle_class(div0, "error",
|
|
7225
7310
|
/*isError*/
|
|
7226
|
-
ctx[
|
|
7311
|
+
ctx[19]);
|
|
7227
7312
|
}
|
|
7228
7313
|
|
|
7229
7314
|
if (
|
|
7230
7315
|
/*showCounter*/
|
|
7231
|
-
ctx[
|
|
7232
|
-
if (
|
|
7233
|
-
|
|
7316
|
+
ctx[17]) {
|
|
7317
|
+
if (if_block5) {
|
|
7318
|
+
if_block5.p(ctx, dirty);
|
|
7234
7319
|
} else {
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7320
|
+
if_block5 = create_if_block$a(ctx);
|
|
7321
|
+
if_block5.c();
|
|
7322
|
+
if_block5.m(div1, null);
|
|
7238
7323
|
}
|
|
7239
|
-
} else if (
|
|
7240
|
-
|
|
7241
|
-
|
|
7324
|
+
} else if (if_block5) {
|
|
7325
|
+
if_block5.d(1);
|
|
7326
|
+
if_block5 = null;
|
|
7242
7327
|
}
|
|
7243
7328
|
|
|
7244
7329
|
if (dirty &
|
|
@@ -7258,12 +7343,14 @@
|
|
|
7258
7343
|
d(detaching) {
|
|
7259
7344
|
if (detaching) detach(div1);
|
|
7260
7345
|
if (if_block0) if_block0.d();
|
|
7346
|
+
if (if_block1) if_block1.d();
|
|
7261
7347
|
/*input_binding*/
|
|
7262
7348
|
|
|
7263
|
-
ctx[
|
|
7264
|
-
if (if_block1) if_block1.d();
|
|
7349
|
+
ctx[30](null);
|
|
7265
7350
|
if (if_block2) if_block2.d();
|
|
7266
7351
|
if (if_block3) if_block3.d();
|
|
7352
|
+
if (if_block4) if_block4.d();
|
|
7353
|
+
if (if_block5) if_block5.d();
|
|
7267
7354
|
mounted = false;
|
|
7268
7355
|
run_all(dispose);
|
|
7269
7356
|
}
|
|
@@ -7338,6 +7425,12 @@
|
|
|
7338
7425
|
let {
|
|
7339
7426
|
step = null
|
|
7340
7427
|
} = $$props;
|
|
7428
|
+
let {
|
|
7429
|
+
prefix = ""
|
|
7430
|
+
} = $$props;
|
|
7431
|
+
let {
|
|
7432
|
+
suffix = ""
|
|
7433
|
+
} = $$props;
|
|
7341
7434
|
let {
|
|
7342
7435
|
showcounter = "false"
|
|
7343
7436
|
} = $$props;
|
|
@@ -7362,7 +7455,7 @@
|
|
|
7362
7455
|
function input_binding($$value) {
|
|
7363
7456
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
7364
7457
|
inputEl = $$value;
|
|
7365
|
-
$$invalidate(
|
|
7458
|
+
$$invalidate(16, inputEl);
|
|
7366
7459
|
});
|
|
7367
7460
|
}
|
|
7368
7461
|
|
|
@@ -7374,61 +7467,63 @@
|
|
|
7374
7467
|
if ('leadingicon' in $$props) $$invalidate(4, leadingicon = $$props.leadingicon);
|
|
7375
7468
|
if ('trailingicon' in $$props) $$invalidate(5, trailingicon = $$props.trailingicon);
|
|
7376
7469
|
if ('variant' in $$props) $$invalidate(6, variant = $$props.variant);
|
|
7377
|
-
if ('disabled' in $$props) $$invalidate(
|
|
7378
|
-
if ('handletrailingiconclick' in $$props) $$invalidate(
|
|
7379
|
-
if ('focused' in $$props) $$invalidate(
|
|
7380
|
-
if ('readonly' in $$props) $$invalidate(
|
|
7381
|
-
if ('error' in $$props) $$invalidate(
|
|
7470
|
+
if ('disabled' in $$props) $$invalidate(23, disabled = $$props.disabled);
|
|
7471
|
+
if ('handletrailingiconclick' in $$props) $$invalidate(24, handletrailingiconclick = $$props.handletrailingiconclick);
|
|
7472
|
+
if ('focused' in $$props) $$invalidate(25, focused = $$props.focused);
|
|
7473
|
+
if ('readonly' in $$props) $$invalidate(26, readonly = $$props.readonly);
|
|
7474
|
+
if ('error' in $$props) $$invalidate(27, error = $$props.error);
|
|
7382
7475
|
if ('testid' in $$props) $$invalidate(7, testid = $$props.testid);
|
|
7383
7476
|
if ('width' in $$props) $$invalidate(8, width = $$props.width);
|
|
7384
7477
|
if ('arialabel' in $$props) $$invalidate(9, arialabel = $$props.arialabel);
|
|
7385
7478
|
if ('min' in $$props) $$invalidate(10, min = $$props.min);
|
|
7386
7479
|
if ('max' in $$props) $$invalidate(11, max = $$props.max);
|
|
7387
7480
|
if ('step' in $$props) $$invalidate(12, step = $$props.step);
|
|
7388
|
-
if ('
|
|
7389
|
-
if ('
|
|
7481
|
+
if ('prefix' in $$props) $$invalidate(13, prefix = $$props.prefix);
|
|
7482
|
+
if ('suffix' in $$props) $$invalidate(14, suffix = $$props.suffix);
|
|
7483
|
+
if ('showcounter' in $$props) $$invalidate(28, showcounter = $$props.showcounter);
|
|
7484
|
+
if ('maxcharcount' in $$props) $$invalidate(15, maxcharcount = $$props.maxcharcount);
|
|
7390
7485
|
};
|
|
7391
7486
|
|
|
7392
7487
|
$$self.$$.update = () => {
|
|
7393
7488
|
if ($$self.$$.dirty &
|
|
7394
7489
|
/*handletrailingiconclick*/
|
|
7395
|
-
|
|
7396
|
-
$$invalidate(
|
|
7490
|
+
16777216) {
|
|
7491
|
+
$$invalidate(21, handlesTrailingIconClick = toBoolean(handletrailingiconclick));
|
|
7397
7492
|
}
|
|
7398
7493
|
|
|
7399
7494
|
if ($$self.$$.dirty &
|
|
7400
7495
|
/*focused*/
|
|
7401
|
-
|
|
7402
|
-
$$invalidate(
|
|
7496
|
+
33554432) {
|
|
7497
|
+
$$invalidate(29, isFocused = toBoolean(focused));
|
|
7403
7498
|
}
|
|
7404
7499
|
|
|
7405
7500
|
if ($$self.$$.dirty &
|
|
7406
7501
|
/*readonly*/
|
|
7407
|
-
|
|
7408
|
-
$$invalidate(
|
|
7502
|
+
67108864) {
|
|
7503
|
+
$$invalidate(20, isReadonly = toBoolean(readonly));
|
|
7409
7504
|
}
|
|
7410
7505
|
|
|
7411
7506
|
if ($$self.$$.dirty &
|
|
7412
7507
|
/*error*/
|
|
7413
|
-
|
|
7414
|
-
$$invalidate(
|
|
7508
|
+
134217728) {
|
|
7509
|
+
$$invalidate(19, isError = toBoolean(error));
|
|
7415
7510
|
}
|
|
7416
7511
|
|
|
7417
7512
|
if ($$self.$$.dirty &
|
|
7418
7513
|
/*disabled*/
|
|
7419
|
-
|
|
7420
|
-
$$invalidate(
|
|
7514
|
+
8388608) {
|
|
7515
|
+
$$invalidate(18, isDisabled = toBoolean(disabled));
|
|
7421
7516
|
}
|
|
7422
7517
|
|
|
7423
7518
|
if ($$self.$$.dirty &
|
|
7424
7519
|
/*showcounter*/
|
|
7425
|
-
|
|
7426
|
-
$$invalidate(
|
|
7520
|
+
268435456) {
|
|
7521
|
+
$$invalidate(17, showCounter = toBoolean(showcounter));
|
|
7427
7522
|
}
|
|
7428
7523
|
|
|
7429
7524
|
if ($$self.$$.dirty &
|
|
7430
7525
|
/*isFocused, inputEl*/
|
|
7431
|
-
|
|
7526
|
+
536936448) {
|
|
7432
7527
|
if (isFocused && inputEl) {
|
|
7433
7528
|
setTimeout(() => inputEl.focus(), 1);
|
|
7434
7529
|
}
|
|
@@ -7436,7 +7531,7 @@
|
|
|
7436
7531
|
|
|
7437
7532
|
if ($$self.$$.dirty &
|
|
7438
7533
|
/*inputEl, type*/
|
|
7439
|
-
|
|
7534
|
+
65538) {
|
|
7440
7535
|
if (inputEl && type === "search") {
|
|
7441
7536
|
inputEl.addEventListener("search", e => {
|
|
7442
7537
|
onKeyUp(e);
|
|
@@ -7445,13 +7540,13 @@
|
|
|
7445
7540
|
}
|
|
7446
7541
|
};
|
|
7447
7542
|
|
|
7448
|
-
return [value, type, name, placeholder, leadingicon, trailingicon, variant, testid, width, arialabel, min, max, step, maxcharcount, inputEl, showCounter, isDisabled, isError, isReadonly, handlesTrailingIconClick, onKeyUp, disabled, handletrailingiconclick, focused, readonly, error, showcounter, isFocused, input_binding];
|
|
7543
|
+
return [value, type, name, placeholder, leadingicon, trailingicon, variant, testid, width, arialabel, min, max, step, prefix, suffix, maxcharcount, inputEl, showCounter, isDisabled, isError, isReadonly, handlesTrailingIconClick, onKeyUp, disabled, handletrailingiconclick, focused, readonly, error, showcounter, isFocused, input_binding];
|
|
7449
7544
|
}
|
|
7450
7545
|
|
|
7451
7546
|
class Input extends SvelteElement {
|
|
7452
7547
|
constructor(options) {
|
|
7453
7548
|
super();
|
|
7454
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.container{position:relative;width:100%}@media(min-width: 640px){.container{width:var(--width)}}.goa-input,.goa-input *{box-sizing:border-box}.goa-input{box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:var(--input-border-radius);background:white;display:inline-flex;align-items:
|
|
7549
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.container{position:relative;width:100%}@media(min-width: 640px){.container{width:var(--width)}}.goa-input,.goa-input *{box-sizing:border-box}.goa-input{box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:var(--input-border-radius);background:white;display:inline-flex;align-items:stretch;vertical-align:middle;min-width:100%}.goa-input:hover{border-color: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);font-size:var(--input-font-size);padding:var(--input-padding);line-height:calc(40px - calc(var(--input-padding) * 2));background-color:transparent;width:0;flex:1 1 auto}input[type=date],input[type="datetime-local"],input[type=number]{font-family:var(--font-family)}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(--color-gray-100);border-color:var(--color-gray-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{background-color:var(--color-gray-100);padding:0 0.75rem;display:flex;align-items:center}.prefix{border-top-left-radius:var(--input-border-radius);border-bottom-left-radius:var(--input-border-radius);border-right:1px solid var(--color-gray-600)}.suffix{border-top-right-radius:var(--input-border-radius);border-bottom-right-radius:var(--input-border-radius);border-left:1px solid var(--color-gray-600)}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}.counter{position:absolute;padding-top:0.25rem;right:0;font-size:var(--fs-sm)}.counter-error{color:var(--goa-color-interactive--error)}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-interactive--error)}input[type="search" i]: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>')
|
|
7455
7550
|
center center no-repeat}</style>`;
|
|
7456
7551
|
init(this, {
|
|
7457
7552
|
target: this.shadowRoot,
|
|
@@ -7465,19 +7560,21 @@
|
|
|
7465
7560
|
leadingicon: 4,
|
|
7466
7561
|
trailingicon: 5,
|
|
7467
7562
|
variant: 6,
|
|
7468
|
-
disabled:
|
|
7469
|
-
handletrailingiconclick:
|
|
7470
|
-
focused:
|
|
7471
|
-
readonly:
|
|
7472
|
-
error:
|
|
7563
|
+
disabled: 23,
|
|
7564
|
+
handletrailingiconclick: 24,
|
|
7565
|
+
focused: 25,
|
|
7566
|
+
readonly: 26,
|
|
7567
|
+
error: 27,
|
|
7473
7568
|
testid: 7,
|
|
7474
7569
|
width: 8,
|
|
7475
7570
|
arialabel: 9,
|
|
7476
7571
|
min: 10,
|
|
7477
7572
|
max: 11,
|
|
7478
7573
|
step: 12,
|
|
7479
|
-
|
|
7480
|
-
|
|
7574
|
+
prefix: 13,
|
|
7575
|
+
suffix: 14,
|
|
7576
|
+
showcounter: 28,
|
|
7577
|
+
maxcharcount: 15
|
|
7481
7578
|
}, null);
|
|
7482
7579
|
|
|
7483
7580
|
if (options) {
|
|
@@ -7493,7 +7590,7 @@
|
|
|
7493
7590
|
}
|
|
7494
7591
|
|
|
7495
7592
|
static get observedAttributes() {
|
|
7496
|
-
return ["type", "name", "value", "placeholder", "leadingicon", "trailingicon", "variant", "disabled", "handletrailingiconclick", "focused", "readonly", "error", "testid", "width", "arialabel", "min", "max", "step", "showcounter", "maxcharcount"];
|
|
7593
|
+
return ["type", "name", "value", "placeholder", "leadingicon", "trailingicon", "variant", "disabled", "handletrailingiconclick", "focused", "readonly", "error", "testid", "width", "arialabel", "min", "max", "step", "prefix", "suffix", "showcounter", "maxcharcount"];
|
|
7497
7594
|
}
|
|
7498
7595
|
|
|
7499
7596
|
get type() {
|
|
@@ -7574,7 +7671,7 @@
|
|
|
7574
7671
|
}
|
|
7575
7672
|
|
|
7576
7673
|
get disabled() {
|
|
7577
|
-
return this.$$.ctx[
|
|
7674
|
+
return this.$$.ctx[23];
|
|
7578
7675
|
}
|
|
7579
7676
|
|
|
7580
7677
|
set disabled(disabled) {
|
|
@@ -7585,7 +7682,7 @@
|
|
|
7585
7682
|
}
|
|
7586
7683
|
|
|
7587
7684
|
get handletrailingiconclick() {
|
|
7588
|
-
return this.$$.ctx[
|
|
7685
|
+
return this.$$.ctx[24];
|
|
7589
7686
|
}
|
|
7590
7687
|
|
|
7591
7688
|
set handletrailingiconclick(handletrailingiconclick) {
|
|
@@ -7596,7 +7693,7 @@
|
|
|
7596
7693
|
}
|
|
7597
7694
|
|
|
7598
7695
|
get focused() {
|
|
7599
|
-
return this.$$.ctx[
|
|
7696
|
+
return this.$$.ctx[25];
|
|
7600
7697
|
}
|
|
7601
7698
|
|
|
7602
7699
|
set focused(focused) {
|
|
@@ -7607,7 +7704,7 @@
|
|
|
7607
7704
|
}
|
|
7608
7705
|
|
|
7609
7706
|
get readonly() {
|
|
7610
|
-
return this.$$.ctx[
|
|
7707
|
+
return this.$$.ctx[26];
|
|
7611
7708
|
}
|
|
7612
7709
|
|
|
7613
7710
|
set readonly(readonly) {
|
|
@@ -7618,7 +7715,7 @@
|
|
|
7618
7715
|
}
|
|
7619
7716
|
|
|
7620
7717
|
get error() {
|
|
7621
|
-
return this.$$.ctx[
|
|
7718
|
+
return this.$$.ctx[27];
|
|
7622
7719
|
}
|
|
7623
7720
|
|
|
7624
7721
|
set error(error) {
|
|
@@ -7694,8 +7791,30 @@
|
|
|
7694
7791
|
flush();
|
|
7695
7792
|
}
|
|
7696
7793
|
|
|
7794
|
+
get prefix() {
|
|
7795
|
+
return this.$$.ctx[13];
|
|
7796
|
+
}
|
|
7797
|
+
|
|
7798
|
+
set prefix(prefix) {
|
|
7799
|
+
this.$$set({
|
|
7800
|
+
prefix
|
|
7801
|
+
});
|
|
7802
|
+
flush();
|
|
7803
|
+
}
|
|
7804
|
+
|
|
7805
|
+
get suffix() {
|
|
7806
|
+
return this.$$.ctx[14];
|
|
7807
|
+
}
|
|
7808
|
+
|
|
7809
|
+
set suffix(suffix) {
|
|
7810
|
+
this.$$set({
|
|
7811
|
+
suffix
|
|
7812
|
+
});
|
|
7813
|
+
flush();
|
|
7814
|
+
}
|
|
7815
|
+
|
|
7697
7816
|
get showcounter() {
|
|
7698
|
-
return this.$$.ctx[
|
|
7817
|
+
return this.$$.ctx[28];
|
|
7699
7818
|
}
|
|
7700
7819
|
|
|
7701
7820
|
set showcounter(showcounter) {
|
|
@@ -7706,7 +7825,7 @@
|
|
|
7706
7825
|
}
|
|
7707
7826
|
|
|
7708
7827
|
get maxcharcount() {
|
|
7709
|
-
return this.$$.ctx[
|
|
7828
|
+
return this.$$.ctx[15];
|
|
7710
7829
|
}
|
|
7711
7830
|
|
|
7712
7831
|
set maxcharcount(maxcharcount) {
|
|
@@ -10037,7 +10156,7 @@
|
|
|
10037
10156
|
t0 = space();
|
|
10038
10157
|
div1 = element("div");
|
|
10039
10158
|
div1.innerHTML = `An official site of the <a href="https://www.alberta.ca/index.aspx">Alberta Government</a>`;
|
|
10040
|
-
attr(div0, "class", "service-
|
|
10159
|
+
attr(div0, "class", "service-type service-type--live");
|
|
10041
10160
|
attr(div1, "data-testid", "type");
|
|
10042
10161
|
attr(div1, "class", "site-text");
|
|
10043
10162
|
},
|
|
@@ -10085,7 +10204,7 @@
|
|
|
10085
10204
|
t4 = text(" service\n ");
|
|
10086
10205
|
if (if_block) if_block.c();
|
|
10087
10206
|
attr(div0, "data-testid", "type");
|
|
10088
|
-
attr(div0, "class", div0_class_value = "service-
|
|
10207
|
+
attr(div0, "class", div0_class_value = "service-type service-type--" +
|
|
10089
10208
|
/*type*/
|
|
10090
10209
|
ctx[0].toLowerCase());
|
|
10091
10210
|
attr(a, "href", "https://www.alberta.ca/index.aspx");
|
|
@@ -10113,7 +10232,7 @@
|
|
|
10113
10232
|
|
|
10114
10233
|
if (dirty &
|
|
10115
10234
|
/*type*/
|
|
10116
|
-
1 && div0_class_value !== (div0_class_value = "service-
|
|
10235
|
+
1 && div0_class_value !== (div0_class_value = "service-type service-type--" +
|
|
10117
10236
|
/*type*/
|
|
10118
10237
|
ctx[0].toLowerCase())) {
|
|
10119
10238
|
attr(div0, "class", div0_class_value);
|
|
@@ -13950,6 +14069,8 @@
|
|
|
13950
14069
|
min = _a.min,
|
|
13951
14070
|
max = _a.max,
|
|
13952
14071
|
step = _a.step,
|
|
14072
|
+
prefix = _a.prefix,
|
|
14073
|
+
suffix = _a.suffix,
|
|
13953
14074
|
onTrailingIconClick = _a.onTrailingIconClick,
|
|
13954
14075
|
onChange = _a.onChange;
|
|
13955
14076
|
var ref = react.useRef(null);
|
|
@@ -13997,6 +14118,8 @@
|
|
|
13997
14118
|
min: min,
|
|
13998
14119
|
max: max,
|
|
13999
14120
|
step: step,
|
|
14121
|
+
prefix: prefix,
|
|
14122
|
+
suffix: suffix,
|
|
14000
14123
|
showcounter: showCounter,
|
|
14001
14124
|
maxcharcount: maxCharCount,
|
|
14002
14125
|
handletrailingiconclick: !!onTrailingIconClick
|
|
@@ -14159,8 +14282,7 @@
|
|
|
14159
14282
|
styleInject(css_248z$1);
|
|
14160
14283
|
|
|
14161
14284
|
var GoAButton = function GoAButton(_a) {
|
|
14162
|
-
var
|
|
14163
|
-
_b = _a.disabled,
|
|
14285
|
+
var _b = _a.disabled,
|
|
14164
14286
|
disabled = _b === void 0 ? false : _b,
|
|
14165
14287
|
_c = _a.type,
|
|
14166
14288
|
type = _c === void 0 ? 'primary' : _c,
|
|
@@ -14194,7 +14316,6 @@
|
|
|
14194
14316
|
size: size,
|
|
14195
14317
|
variant: variant,
|
|
14196
14318
|
disabled: disabled,
|
|
14197
|
-
title: title,
|
|
14198
14319
|
leadingicon: leadingIcon,
|
|
14199
14320
|
trailingicon: trailingIcon
|
|
14200
14321
|
}, {
|