@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.esm.js
CHANGED
|
@@ -1775,10 +1775,10 @@ function create_else_block$2(ctx) {
|
|
|
1775
1775
|
let if_block1_anchor;
|
|
1776
1776
|
let if_block0 =
|
|
1777
1777
|
/*leadingicon*/
|
|
1778
|
-
ctx[
|
|
1778
|
+
ctx[3] && create_if_block_2$7(ctx);
|
|
1779
1779
|
let if_block1 =
|
|
1780
1780
|
/*trailingicon*/
|
|
1781
|
-
ctx[
|
|
1781
|
+
ctx[4] && create_if_block_1$a(ctx);
|
|
1782
1782
|
return {
|
|
1783
1783
|
c() {
|
|
1784
1784
|
if (if_block0) if_block0.c();
|
|
@@ -1803,7 +1803,7 @@ function create_else_block$2(ctx) {
|
|
|
1803
1803
|
p(ctx, dirty) {
|
|
1804
1804
|
if (
|
|
1805
1805
|
/*leadingicon*/
|
|
1806
|
-
ctx[
|
|
1806
|
+
ctx[3]) {
|
|
1807
1807
|
if (if_block0) {
|
|
1808
1808
|
if_block0.p(ctx, dirty);
|
|
1809
1809
|
} else {
|
|
@@ -1818,7 +1818,7 @@ function create_else_block$2(ctx) {
|
|
|
1818
1818
|
|
|
1819
1819
|
if (
|
|
1820
1820
|
/*trailingicon*/
|
|
1821
|
-
ctx[
|
|
1821
|
+
ctx[4]) {
|
|
1822
1822
|
if (if_block1) {
|
|
1823
1823
|
if_block1.p(ctx, dirty);
|
|
1824
1824
|
} else {
|
|
@@ -1842,7 +1842,7 @@ function create_else_block$2(ctx) {
|
|
|
1842
1842
|
}
|
|
1843
1843
|
|
|
1844
1844
|
};
|
|
1845
|
-
} // (
|
|
1845
|
+
} // (53:2) {#if type === "start"}
|
|
1846
1846
|
|
|
1847
1847
|
|
|
1848
1848
|
function create_if_block$h(ctx) {
|
|
@@ -1876,7 +1876,7 @@ function create_if_block$h(ctx) {
|
|
|
1876
1876
|
}
|
|
1877
1877
|
|
|
1878
1878
|
};
|
|
1879
|
-
} // (
|
|
1879
|
+
} // (59:4) {#if leadingicon}
|
|
1880
1880
|
|
|
1881
1881
|
|
|
1882
1882
|
function create_if_block_2$7(ctx) {
|
|
@@ -1887,10 +1887,10 @@ function create_if_block_2$7(ctx) {
|
|
|
1887
1887
|
set_custom_element_data(goa_icon, "id", "leading-icon");
|
|
1888
1888
|
set_custom_element_data(goa_icon, "type",
|
|
1889
1889
|
/*leadingicon*/
|
|
1890
|
-
ctx[
|
|
1890
|
+
ctx[3]);
|
|
1891
1891
|
set_custom_element_data(goa_icon, "inverted",
|
|
1892
1892
|
/*isButtonDark*/
|
|
1893
|
-
ctx[
|
|
1893
|
+
ctx[6]);
|
|
1894
1894
|
},
|
|
1895
1895
|
|
|
1896
1896
|
m(target, anchor) {
|
|
@@ -1900,18 +1900,18 @@ function create_if_block_2$7(ctx) {
|
|
|
1900
1900
|
p(ctx, dirty) {
|
|
1901
1901
|
if (dirty &
|
|
1902
1902
|
/*leadingicon*/
|
|
1903
|
-
|
|
1903
|
+
8) {
|
|
1904
1904
|
set_custom_element_data(goa_icon, "type",
|
|
1905
1905
|
/*leadingicon*/
|
|
1906
|
-
ctx[
|
|
1906
|
+
ctx[3]);
|
|
1907
1907
|
}
|
|
1908
1908
|
|
|
1909
1909
|
if (dirty &
|
|
1910
1910
|
/*isButtonDark*/
|
|
1911
|
-
|
|
1911
|
+
64) {
|
|
1912
1912
|
set_custom_element_data(goa_icon, "inverted",
|
|
1913
1913
|
/*isButtonDark*/
|
|
1914
|
-
ctx[
|
|
1914
|
+
ctx[6]);
|
|
1915
1915
|
}
|
|
1916
1916
|
},
|
|
1917
1917
|
|
|
@@ -1920,7 +1920,7 @@ function create_if_block_2$7(ctx) {
|
|
|
1920
1920
|
}
|
|
1921
1921
|
|
|
1922
1922
|
};
|
|
1923
|
-
} // (
|
|
1923
|
+
} // (65:4) {#if trailingicon}
|
|
1924
1924
|
|
|
1925
1925
|
|
|
1926
1926
|
function create_if_block_1$a(ctx) {
|
|
@@ -1931,10 +1931,10 @@ function create_if_block_1$a(ctx) {
|
|
|
1931
1931
|
set_custom_element_data(goa_icon, "id", "trailing-icon");
|
|
1932
1932
|
set_custom_element_data(goa_icon, "type",
|
|
1933
1933
|
/*trailingicon*/
|
|
1934
|
-
ctx[
|
|
1934
|
+
ctx[4]);
|
|
1935
1935
|
set_custom_element_data(goa_icon, "inverted",
|
|
1936
1936
|
/*isButtonDark*/
|
|
1937
|
-
ctx[
|
|
1937
|
+
ctx[6]);
|
|
1938
1938
|
},
|
|
1939
1939
|
|
|
1940
1940
|
m(target, anchor) {
|
|
@@ -1944,18 +1944,18 @@ function create_if_block_1$a(ctx) {
|
|
|
1944
1944
|
p(ctx, dirty) {
|
|
1945
1945
|
if (dirty &
|
|
1946
1946
|
/*trailingicon*/
|
|
1947
|
-
|
|
1947
|
+
16) {
|
|
1948
1948
|
set_custom_element_data(goa_icon, "type",
|
|
1949
1949
|
/*trailingicon*/
|
|
1950
|
-
ctx[
|
|
1950
|
+
ctx[4]);
|
|
1951
1951
|
}
|
|
1952
1952
|
|
|
1953
1953
|
if (dirty &
|
|
1954
1954
|
/*isButtonDark*/
|
|
1955
|
-
|
|
1955
|
+
64) {
|
|
1956
1956
|
set_custom_element_data(goa_icon, "inverted",
|
|
1957
1957
|
/*isButtonDark*/
|
|
1958
|
-
ctx[
|
|
1958
|
+
ctx[6]);
|
|
1959
1959
|
}
|
|
1960
1960
|
},
|
|
1961
1961
|
|
|
@@ -1993,21 +1993,18 @@ function create_fragment$B(ctx) {
|
|
|
1993
1993
|
ctx[1] + " " +
|
|
1994
1994
|
/*variant*/
|
|
1995
1995
|
ctx[2]));
|
|
1996
|
-
attr(button, "title",
|
|
1997
|
-
/*title*/
|
|
1998
|
-
ctx[3]);
|
|
1999
1996
|
button.disabled =
|
|
2000
1997
|
/*isDisabled*/
|
|
2001
|
-
ctx[
|
|
1998
|
+
ctx[7];
|
|
2002
1999
|
attr(button, "data-testid",
|
|
2003
2000
|
/*testid*/
|
|
2004
|
-
ctx[
|
|
2001
|
+
ctx[5]);
|
|
2005
2002
|
toggle_class(button, "leading",
|
|
2006
2003
|
/*leadingicon*/
|
|
2007
|
-
ctx[
|
|
2004
|
+
ctx[3]);
|
|
2008
2005
|
toggle_class(button, "trailing",
|
|
2009
2006
|
/*trailingicon*/
|
|
2010
|
-
ctx[
|
|
2007
|
+
ctx[4] ||
|
|
2011
2008
|
/*type*/
|
|
2012
2009
|
ctx[0] === "start");
|
|
2013
2010
|
},
|
|
@@ -2047,44 +2044,36 @@ function create_fragment$B(ctx) {
|
|
|
2047
2044
|
attr(button, "class", button_class_value);
|
|
2048
2045
|
}
|
|
2049
2046
|
|
|
2050
|
-
if (dirty &
|
|
2051
|
-
/*title*/
|
|
2052
|
-
8) {
|
|
2053
|
-
attr(button, "title",
|
|
2054
|
-
/*title*/
|
|
2055
|
-
ctx[3]);
|
|
2056
|
-
}
|
|
2057
|
-
|
|
2058
2047
|
if (dirty &
|
|
2059
2048
|
/*isDisabled*/
|
|
2060
|
-
|
|
2049
|
+
128) {
|
|
2061
2050
|
button.disabled =
|
|
2062
2051
|
/*isDisabled*/
|
|
2063
|
-
ctx[
|
|
2052
|
+
ctx[7];
|
|
2064
2053
|
}
|
|
2065
2054
|
|
|
2066
2055
|
if (dirty &
|
|
2067
2056
|
/*testid*/
|
|
2068
|
-
|
|
2057
|
+
32) {
|
|
2069
2058
|
attr(button, "data-testid",
|
|
2070
2059
|
/*testid*/
|
|
2071
|
-
ctx[
|
|
2060
|
+
ctx[5]);
|
|
2072
2061
|
}
|
|
2073
2062
|
|
|
2074
2063
|
if (dirty &
|
|
2075
2064
|
/*type, size, variant, leadingicon*/
|
|
2076
|
-
|
|
2065
|
+
15) {
|
|
2077
2066
|
toggle_class(button, "leading",
|
|
2078
2067
|
/*leadingicon*/
|
|
2079
|
-
ctx[
|
|
2068
|
+
ctx[3]);
|
|
2080
2069
|
}
|
|
2081
2070
|
|
|
2082
2071
|
if (dirty &
|
|
2083
2072
|
/*type, size, variant, trailingicon, type*/
|
|
2084
|
-
|
|
2073
|
+
23) {
|
|
2085
2074
|
toggle_class(button, "trailing",
|
|
2086
2075
|
/*trailingicon*/
|
|
2087
|
-
ctx[
|
|
2076
|
+
ctx[4] ||
|
|
2088
2077
|
/*type*/
|
|
2089
2078
|
ctx[0] === "start");
|
|
2090
2079
|
}
|
|
@@ -2139,9 +2128,6 @@ function instance$w($$self, $$props, $$invalidate) {
|
|
|
2139
2128
|
let {
|
|
2140
2129
|
variant = "normal"
|
|
2141
2130
|
} = $$props;
|
|
2142
|
-
let {
|
|
2143
|
-
title = ""
|
|
2144
|
-
} = $$props;
|
|
2145
2131
|
let {
|
|
2146
2132
|
disabled = "false"
|
|
2147
2133
|
} = $$props;
|
|
@@ -2172,28 +2158,27 @@ function instance$w($$self, $$props, $$invalidate) {
|
|
|
2172
2158
|
if ('type' in $$props) $$invalidate(0, type = $$props.type);
|
|
2173
2159
|
if ('size' in $$props) $$invalidate(1, size = $$props.size);
|
|
2174
2160
|
if ('variant' in $$props) $$invalidate(2, variant = $$props.variant);
|
|
2175
|
-
if ('
|
|
2176
|
-
if ('
|
|
2177
|
-
if ('
|
|
2178
|
-
if ('
|
|
2179
|
-
if ('testid' in $$props) $$invalidate(6, testid = $$props.testid);
|
|
2161
|
+
if ('disabled' in $$props) $$invalidate(8, disabled = $$props.disabled);
|
|
2162
|
+
if ('leadingicon' in $$props) $$invalidate(3, leadingicon = $$props.leadingicon);
|
|
2163
|
+
if ('trailingicon' in $$props) $$invalidate(4, trailingicon = $$props.trailingicon);
|
|
2164
|
+
if ('testid' in $$props) $$invalidate(5, testid = $$props.testid);
|
|
2180
2165
|
};
|
|
2181
2166
|
|
|
2182
2167
|
$$self.$$.update = () => {
|
|
2183
2168
|
if ($$self.$$.dirty &
|
|
2184
2169
|
/*disabled*/
|
|
2185
|
-
|
|
2186
|
-
$$invalidate(
|
|
2170
|
+
256) {
|
|
2171
|
+
$$invalidate(7, isDisabled = toBoolean(disabled));
|
|
2187
2172
|
}
|
|
2188
2173
|
|
|
2189
2174
|
if ($$self.$$.dirty &
|
|
2190
2175
|
/*type*/
|
|
2191
2176
|
1) {
|
|
2192
|
-
$$invalidate(
|
|
2177
|
+
$$invalidate(6, isButtonDark = type === "primary" || type === "start");
|
|
2193
2178
|
}
|
|
2194
2179
|
};
|
|
2195
2180
|
|
|
2196
|
-
return [type, size, variant,
|
|
2181
|
+
return [type, size, variant, leadingicon, trailingicon, testid, isButtonDark, isDisabled, disabled];
|
|
2197
2182
|
}
|
|
2198
2183
|
|
|
2199
2184
|
class Button extends SvelteElement {
|
|
@@ -2209,11 +2194,10 @@ class Button extends SvelteElement {
|
|
|
2209
2194
|
type: 0,
|
|
2210
2195
|
size: 1,
|
|
2211
2196
|
variant: 2,
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
testid: 6
|
|
2197
|
+
disabled: 8,
|
|
2198
|
+
leadingicon: 3,
|
|
2199
|
+
trailingicon: 4,
|
|
2200
|
+
testid: 5
|
|
2217
2201
|
}, null);
|
|
2218
2202
|
|
|
2219
2203
|
if (options) {
|
|
@@ -2229,7 +2213,7 @@ class Button extends SvelteElement {
|
|
|
2229
2213
|
}
|
|
2230
2214
|
|
|
2231
2215
|
static get observedAttributes() {
|
|
2232
|
-
return ["type", "size", "variant", "
|
|
2216
|
+
return ["type", "size", "variant", "disabled", "leadingicon", "trailingicon", "testid"];
|
|
2233
2217
|
}
|
|
2234
2218
|
|
|
2235
2219
|
get type() {
|
|
@@ -2265,19 +2249,8 @@ class Button extends SvelteElement {
|
|
|
2265
2249
|
flush();
|
|
2266
2250
|
}
|
|
2267
2251
|
|
|
2268
|
-
get title() {
|
|
2269
|
-
return this.$$.ctx[3];
|
|
2270
|
-
}
|
|
2271
|
-
|
|
2272
|
-
set title(title) {
|
|
2273
|
-
this.$$set({
|
|
2274
|
-
title
|
|
2275
|
-
});
|
|
2276
|
-
flush();
|
|
2277
|
-
}
|
|
2278
|
-
|
|
2279
2252
|
get disabled() {
|
|
2280
|
-
return this.$$.ctx[
|
|
2253
|
+
return this.$$.ctx[8];
|
|
2281
2254
|
}
|
|
2282
2255
|
|
|
2283
2256
|
set disabled(disabled) {
|
|
@@ -2288,7 +2261,7 @@ class Button extends SvelteElement {
|
|
|
2288
2261
|
}
|
|
2289
2262
|
|
|
2290
2263
|
get leadingicon() {
|
|
2291
|
-
return this.$$.ctx[
|
|
2264
|
+
return this.$$.ctx[3];
|
|
2292
2265
|
}
|
|
2293
2266
|
|
|
2294
2267
|
set leadingicon(leadingicon) {
|
|
@@ -2299,7 +2272,7 @@ class Button extends SvelteElement {
|
|
|
2299
2272
|
}
|
|
2300
2273
|
|
|
2301
2274
|
get trailingicon() {
|
|
2302
|
-
return this.$$.ctx[
|
|
2275
|
+
return this.$$.ctx[4];
|
|
2303
2276
|
}
|
|
2304
2277
|
|
|
2305
2278
|
set trailingicon(trailingicon) {
|
|
@@ -2310,7 +2283,7 @@ class Button extends SvelteElement {
|
|
|
2310
2283
|
}
|
|
2311
2284
|
|
|
2312
2285
|
get testid() {
|
|
2313
|
-
return this.$$.ctx[
|
|
2286
|
+
return this.$$.ctx[5];
|
|
2314
2287
|
}
|
|
2315
2288
|
|
|
2316
2289
|
set testid(testid) {
|
|
@@ -6595,7 +6568,40 @@ class IconButton extends SvelteElement {
|
|
|
6595
6568
|
customElements.define("goa-icon-button", IconButton);
|
|
6596
6569
|
/* libs/web-components/src/components/input/Input.svelte generated by Svelte v3.49.0 */
|
|
6597
6570
|
|
|
6598
|
-
function
|
|
6571
|
+
function create_if_block_7(ctx) {
|
|
6572
|
+
let div;
|
|
6573
|
+
let t;
|
|
6574
|
+
return {
|
|
6575
|
+
c() {
|
|
6576
|
+
div = element("div");
|
|
6577
|
+
t = text(
|
|
6578
|
+
/*prefix*/
|
|
6579
|
+
ctx[13]);
|
|
6580
|
+
attr(div, "class", "prefix");
|
|
6581
|
+
},
|
|
6582
|
+
|
|
6583
|
+
m(target, anchor) {
|
|
6584
|
+
insert(target, div, anchor);
|
|
6585
|
+
append(div, t);
|
|
6586
|
+
},
|
|
6587
|
+
|
|
6588
|
+
p(ctx, dirty) {
|
|
6589
|
+
if (dirty &
|
|
6590
|
+
/*prefix*/
|
|
6591
|
+
8192) set_data(t,
|
|
6592
|
+
/*prefix*/
|
|
6593
|
+
ctx[13]);
|
|
6594
|
+
},
|
|
6595
|
+
|
|
6596
|
+
d(detaching) {
|
|
6597
|
+
if (detaching) detach(div);
|
|
6598
|
+
}
|
|
6599
|
+
|
|
6600
|
+
};
|
|
6601
|
+
} // (81:4) {#if leadingicon}
|
|
6602
|
+
|
|
6603
|
+
|
|
6604
|
+
function create_if_block_6(ctx) {
|
|
6599
6605
|
let goa_icon;
|
|
6600
6606
|
return {
|
|
6601
6607
|
c() {
|
|
@@ -6626,10 +6632,10 @@ function create_if_block_5(ctx) {
|
|
|
6626
6632
|
}
|
|
6627
6633
|
|
|
6628
6634
|
};
|
|
6629
|
-
} // (
|
|
6635
|
+
} // (110:4) {#if trailingicon && !handlesTrailingIconClick}
|
|
6630
6636
|
|
|
6631
6637
|
|
|
6632
|
-
function
|
|
6638
|
+
function create_if_block_5(ctx) {
|
|
6633
6639
|
let goa_icon;
|
|
6634
6640
|
return {
|
|
6635
6641
|
c() {
|
|
@@ -6661,10 +6667,10 @@ function create_if_block_4$1(ctx) {
|
|
|
6661
6667
|
}
|
|
6662
6668
|
|
|
6663
6669
|
};
|
|
6664
|
-
} // (
|
|
6670
|
+
} // (120:4) {#if trailingicon && handlesTrailingIconClick}
|
|
6665
6671
|
|
|
6666
6672
|
|
|
6667
|
-
function
|
|
6673
|
+
function create_if_block_4$1(ctx) {
|
|
6668
6674
|
let goa_icon_button;
|
|
6669
6675
|
let mounted;
|
|
6670
6676
|
let dispose;
|
|
@@ -6673,7 +6679,7 @@ function create_if_block_3$3(ctx) {
|
|
|
6673
6679
|
goa_icon_button = element("goa-icon-button");
|
|
6674
6680
|
set_custom_element_data(goa_icon_button, "disabled",
|
|
6675
6681
|
/*isDisabled*/
|
|
6676
|
-
ctx[
|
|
6682
|
+
ctx[18]);
|
|
6677
6683
|
set_custom_element_data(goa_icon_button, "variant", "nocolor");
|
|
6678
6684
|
set_custom_element_data(goa_icon_button, "size", "medium");
|
|
6679
6685
|
set_custom_element_data(goa_icon_button, "type",
|
|
@@ -6694,10 +6700,10 @@ function create_if_block_3$3(ctx) {
|
|
|
6694
6700
|
p(ctx, dirty) {
|
|
6695
6701
|
if (dirty &
|
|
6696
6702
|
/*isDisabled*/
|
|
6697
|
-
|
|
6703
|
+
262144) {
|
|
6698
6704
|
set_custom_element_data(goa_icon_button, "disabled",
|
|
6699
6705
|
/*isDisabled*/
|
|
6700
|
-
ctx[
|
|
6706
|
+
ctx[18]);
|
|
6701
6707
|
}
|
|
6702
6708
|
|
|
6703
6709
|
if (dirty &
|
|
@@ -6716,7 +6722,40 @@ function create_if_block_3$3(ctx) {
|
|
|
6716
6722
|
}
|
|
6717
6723
|
|
|
6718
6724
|
};
|
|
6719
|
-
} // (
|
|
6725
|
+
} // (131:4) {#if suffix}
|
|
6726
|
+
|
|
6727
|
+
|
|
6728
|
+
function create_if_block_3$3(ctx) {
|
|
6729
|
+
let span;
|
|
6730
|
+
let t;
|
|
6731
|
+
return {
|
|
6732
|
+
c() {
|
|
6733
|
+
span = element("span");
|
|
6734
|
+
t = text(
|
|
6735
|
+
/*suffix*/
|
|
6736
|
+
ctx[14]);
|
|
6737
|
+
attr(span, "class", "suffix");
|
|
6738
|
+
},
|
|
6739
|
+
|
|
6740
|
+
m(target, anchor) {
|
|
6741
|
+
insert(target, span, anchor);
|
|
6742
|
+
append(span, t);
|
|
6743
|
+
},
|
|
6744
|
+
|
|
6745
|
+
p(ctx, dirty) {
|
|
6746
|
+
if (dirty &
|
|
6747
|
+
/*suffix*/
|
|
6748
|
+
16384) set_data(t,
|
|
6749
|
+
/*suffix*/
|
|
6750
|
+
ctx[14]);
|
|
6751
|
+
},
|
|
6752
|
+
|
|
6753
|
+
d(detaching) {
|
|
6754
|
+
if (detaching) detach(span);
|
|
6755
|
+
}
|
|
6756
|
+
|
|
6757
|
+
};
|
|
6758
|
+
} // (137:2) {#if showCounter}
|
|
6720
6759
|
|
|
6721
6760
|
|
|
6722
6761
|
function create_if_block$a(ctx) {
|
|
@@ -6725,7 +6764,7 @@ function create_if_block$a(ctx) {
|
|
|
6725
6764
|
function select_block_type(ctx, dirty) {
|
|
6726
6765
|
if (
|
|
6727
6766
|
/*maxcharcount*/
|
|
6728
|
-
ctx[
|
|
6767
|
+
ctx[15] > 0) return create_if_block_1$6;
|
|
6729
6768
|
if (
|
|
6730
6769
|
/*value*/
|
|
6731
6770
|
ctx[0].length > 0) return create_if_block_2$5;
|
|
@@ -6767,7 +6806,7 @@ function create_if_block$a(ctx) {
|
|
|
6767
6806
|
}
|
|
6768
6807
|
|
|
6769
6808
|
};
|
|
6770
|
-
} // (
|
|
6809
|
+
} // (142:31)
|
|
6771
6810
|
|
|
6772
6811
|
|
|
6773
6812
|
function create_if_block_2$5(ctx) {
|
|
@@ -6801,7 +6840,7 @@ function create_if_block_2$5(ctx) {
|
|
|
6801
6840
|
}
|
|
6802
6841
|
|
|
6803
6842
|
};
|
|
6804
|
-
} // (
|
|
6843
|
+
} // (138:4) {#if maxcharcount > 0}
|
|
6805
6844
|
|
|
6806
6845
|
|
|
6807
6846
|
function create_if_block_1$6(ctx) {
|
|
@@ -6812,7 +6851,7 @@ function create_if_block_1$6(ctx) {
|
|
|
6812
6851
|
let t0;
|
|
6813
6852
|
let t1_value = `/${
|
|
6814
6853
|
/*maxcharcount*/
|
|
6815
|
-
ctx[
|
|
6854
|
+
ctx[15]}` + "";
|
|
6816
6855
|
let t1;
|
|
6817
6856
|
return {
|
|
6818
6857
|
c() {
|
|
@@ -6824,7 +6863,7 @@ function create_if_block_1$6(ctx) {
|
|
|
6824
6863
|
/*value*/
|
|
6825
6864
|
ctx[0].length >
|
|
6826
6865
|
/*maxcharcount*/
|
|
6827
|
-
ctx[
|
|
6866
|
+
ctx[15]);
|
|
6828
6867
|
},
|
|
6829
6868
|
|
|
6830
6869
|
m(target, anchor) {
|
|
@@ -6841,18 +6880,18 @@ function create_if_block_1$6(ctx) {
|
|
|
6841
6880
|
ctx[0].length + "")) set_data(t0, t0_value);
|
|
6842
6881
|
if (dirty &
|
|
6843
6882
|
/*maxcharcount*/
|
|
6844
|
-
|
|
6883
|
+
32768 && t1_value !== (t1_value = `/${
|
|
6845
6884
|
/*maxcharcount*/
|
|
6846
|
-
ctx[
|
|
6885
|
+
ctx[15]}` + "")) set_data(t1, t1_value);
|
|
6847
6886
|
|
|
6848
6887
|
if (dirty &
|
|
6849
6888
|
/*value, maxcharcount*/
|
|
6850
|
-
|
|
6889
|
+
32769) {
|
|
6851
6890
|
toggle_class(div, "counter-error",
|
|
6852
6891
|
/*value*/
|
|
6853
6892
|
ctx[0].length >
|
|
6854
6893
|
/*maxcharcount*/
|
|
6855
|
-
ctx[
|
|
6894
|
+
ctx[15]);
|
|
6856
6895
|
}
|
|
6857
6896
|
},
|
|
6858
6897
|
|
|
@@ -6867,46 +6906,58 @@ function create_fragment$j(ctx) {
|
|
|
6867
6906
|
let div1;
|
|
6868
6907
|
let div0;
|
|
6869
6908
|
let t0;
|
|
6909
|
+
let t1;
|
|
6870
6910
|
let input;
|
|
6871
6911
|
let input_class_value;
|
|
6872
6912
|
let input_style_value;
|
|
6873
6913
|
let input_aria_label_value;
|
|
6874
|
-
let t1;
|
|
6875
6914
|
let t2;
|
|
6876
|
-
let div0_class_value;
|
|
6877
6915
|
let t3;
|
|
6916
|
+
let t4;
|
|
6917
|
+
let div0_class_value;
|
|
6918
|
+
let t5;
|
|
6878
6919
|
let div1_style_value;
|
|
6879
6920
|
let mounted;
|
|
6880
6921
|
let dispose;
|
|
6881
6922
|
let if_block0 =
|
|
6882
|
-
/*
|
|
6883
|
-
ctx[
|
|
6923
|
+
/*prefix*/
|
|
6924
|
+
ctx[13] && create_if_block_7(ctx);
|
|
6884
6925
|
let if_block1 =
|
|
6926
|
+
/*leadingicon*/
|
|
6927
|
+
ctx[4] && create_if_block_6(ctx);
|
|
6928
|
+
let if_block2 =
|
|
6885
6929
|
/*trailingicon*/
|
|
6886
6930
|
ctx[5] && !
|
|
6887
6931
|
/*handlesTrailingIconClick*/
|
|
6888
|
-
ctx[
|
|
6889
|
-
let
|
|
6932
|
+
ctx[21] && create_if_block_5(ctx);
|
|
6933
|
+
let if_block3 =
|
|
6890
6934
|
/*trailingicon*/
|
|
6891
6935
|
ctx[5] &&
|
|
6892
6936
|
/*handlesTrailingIconClick*/
|
|
6893
|
-
ctx[
|
|
6894
|
-
let
|
|
6937
|
+
ctx[21] && create_if_block_4$1(ctx);
|
|
6938
|
+
let if_block4 =
|
|
6939
|
+
/*suffix*/
|
|
6940
|
+
ctx[14] && create_if_block_3$3(ctx);
|
|
6941
|
+
let if_block5 =
|
|
6895
6942
|
/*showCounter*/
|
|
6896
|
-
ctx[
|
|
6943
|
+
ctx[17] && create_if_block$a(ctx);
|
|
6897
6944
|
return {
|
|
6898
6945
|
c() {
|
|
6899
6946
|
div1 = element("div");
|
|
6900
6947
|
div0 = element("div");
|
|
6901
6948
|
if (if_block0) if_block0.c();
|
|
6902
6949
|
t0 = space();
|
|
6903
|
-
input = element("input");
|
|
6904
|
-
t1 = space();
|
|
6905
6950
|
if (if_block1) if_block1.c();
|
|
6951
|
+
t1 = space();
|
|
6952
|
+
input = element("input");
|
|
6906
6953
|
t2 = space();
|
|
6907
6954
|
if (if_block2) if_block2.c();
|
|
6908
6955
|
t3 = space();
|
|
6909
6956
|
if (if_block3) if_block3.c();
|
|
6957
|
+
t4 = space();
|
|
6958
|
+
if (if_block4) if_block4.c();
|
|
6959
|
+
t5 = space();
|
|
6960
|
+
if (if_block5) if_block5.c();
|
|
6910
6961
|
this.c = noop;
|
|
6911
6962
|
attr(input, "class", input_class_value = `input--${
|
|
6912
6963
|
/*variant*/
|
|
@@ -6916,10 +6967,10 @@ function create_fragment$j(ctx) {
|
|
|
6916
6967
|
ctx[5] ? "-0.5rem" : "0"}`);
|
|
6917
6968
|
input.readOnly =
|
|
6918
6969
|
/*isReadonly*/
|
|
6919
|
-
ctx[
|
|
6970
|
+
ctx[20];
|
|
6920
6971
|
input.disabled =
|
|
6921
6972
|
/*isDisabled*/
|
|
6922
|
-
ctx[
|
|
6973
|
+
ctx[18];
|
|
6923
6974
|
attr(input, "data-testid",
|
|
6924
6975
|
/*testid*/
|
|
6925
6976
|
ctx[7]);
|
|
@@ -6954,7 +7005,7 @@ function create_fragment$j(ctx) {
|
|
|
6954
7005
|
goa-input
|
|
6955
7006
|
${
|
|
6956
7007
|
/*isDisabled*/
|
|
6957
|
-
ctx[
|
|
7008
|
+
ctx[18] ? "goa-input--disabled" : ""}
|
|
6958
7009
|
variant--${
|
|
6959
7010
|
/*variant*/
|
|
6960
7011
|
ctx[6]}
|
|
@@ -6964,7 +7015,7 @@ function create_fragment$j(ctx) {
|
|
|
6964
7015
|
`);
|
|
6965
7016
|
toggle_class(div0, "error",
|
|
6966
7017
|
/*isError*/
|
|
6967
|
-
ctx[
|
|
7018
|
+
ctx[19]);
|
|
6968
7019
|
attr(div1, "class", "container");
|
|
6969
7020
|
attr(div1, "style", div1_style_value = `
|
|
6970
7021
|
--width: ${
|
|
@@ -6978,35 +7029,39 @@ function create_fragment$j(ctx) {
|
|
|
6978
7029
|
append(div1, div0);
|
|
6979
7030
|
if (if_block0) if_block0.m(div0, null);
|
|
6980
7031
|
append(div0, t0);
|
|
7032
|
+
if (if_block1) if_block1.m(div0, null);
|
|
7033
|
+
append(div0, t1);
|
|
6981
7034
|
append(div0, input);
|
|
6982
7035
|
/*input_binding*/
|
|
6983
7036
|
|
|
6984
|
-
ctx[
|
|
6985
|
-
append(div0, t1);
|
|
6986
|
-
if (if_block1) if_block1.m(div0, null);
|
|
7037
|
+
ctx[30](input);
|
|
6987
7038
|
append(div0, t2);
|
|
6988
7039
|
if (if_block2) if_block2.m(div0, null);
|
|
6989
|
-
append(
|
|
6990
|
-
if (if_block3) if_block3.m(
|
|
7040
|
+
append(div0, t3);
|
|
7041
|
+
if (if_block3) if_block3.m(div0, null);
|
|
7042
|
+
append(div0, t4);
|
|
7043
|
+
if (if_block4) if_block4.m(div0, null);
|
|
7044
|
+
append(div1, t5);
|
|
7045
|
+
if (if_block5) if_block5.m(div1, null);
|
|
6991
7046
|
|
|
6992
7047
|
if (!mounted) {
|
|
6993
7048
|
dispose = [listen(input, "keyup",
|
|
6994
7049
|
/*onKeyUp*/
|
|
6995
|
-
ctx[
|
|
7050
|
+
ctx[22]), listen(input, "change",
|
|
6996
7051
|
/*onKeyUp*/
|
|
6997
|
-
ctx[
|
|
7052
|
+
ctx[22])];
|
|
6998
7053
|
mounted = true;
|
|
6999
7054
|
}
|
|
7000
7055
|
},
|
|
7001
7056
|
|
|
7002
7057
|
p(ctx, [dirty]) {
|
|
7003
7058
|
if (
|
|
7004
|
-
/*
|
|
7005
|
-
ctx[
|
|
7059
|
+
/*prefix*/
|
|
7060
|
+
ctx[13]) {
|
|
7006
7061
|
if (if_block0) {
|
|
7007
7062
|
if_block0.p(ctx, dirty);
|
|
7008
7063
|
} else {
|
|
7009
|
-
if_block0 =
|
|
7064
|
+
if_block0 = create_if_block_7(ctx);
|
|
7010
7065
|
if_block0.c();
|
|
7011
7066
|
if_block0.m(div0, t0);
|
|
7012
7067
|
}
|
|
@@ -7015,6 +7070,21 @@ function create_fragment$j(ctx) {
|
|
|
7015
7070
|
if_block0 = null;
|
|
7016
7071
|
}
|
|
7017
7072
|
|
|
7073
|
+
if (
|
|
7074
|
+
/*leadingicon*/
|
|
7075
|
+
ctx[4]) {
|
|
7076
|
+
if (if_block1) {
|
|
7077
|
+
if_block1.p(ctx, dirty);
|
|
7078
|
+
} else {
|
|
7079
|
+
if_block1 = create_if_block_6(ctx);
|
|
7080
|
+
if_block1.c();
|
|
7081
|
+
if_block1.m(div0, t1);
|
|
7082
|
+
}
|
|
7083
|
+
} else if (if_block1) {
|
|
7084
|
+
if_block1.d(1);
|
|
7085
|
+
if_block1 = null;
|
|
7086
|
+
}
|
|
7087
|
+
|
|
7018
7088
|
if (dirty &
|
|
7019
7089
|
/*variant*/
|
|
7020
7090
|
64 && input_class_value !== (input_class_value = `input--${
|
|
@@ -7033,18 +7103,18 @@ function create_fragment$j(ctx) {
|
|
|
7033
7103
|
|
|
7034
7104
|
if (dirty &
|
|
7035
7105
|
/*isReadonly*/
|
|
7036
|
-
|
|
7106
|
+
1048576) {
|
|
7037
7107
|
input.readOnly =
|
|
7038
7108
|
/*isReadonly*/
|
|
7039
|
-
ctx[
|
|
7109
|
+
ctx[20];
|
|
7040
7110
|
}
|
|
7041
7111
|
|
|
7042
7112
|
if (dirty &
|
|
7043
7113
|
/*isDisabled*/
|
|
7044
|
-
|
|
7114
|
+
262144) {
|
|
7045
7115
|
input.disabled =
|
|
7046
7116
|
/*isDisabled*/
|
|
7047
|
-
ctx[
|
|
7117
|
+
ctx[18];
|
|
7048
7118
|
}
|
|
7049
7119
|
|
|
7050
7120
|
if (dirty &
|
|
@@ -7127,43 +7197,58 @@ function create_fragment$j(ctx) {
|
|
|
7127
7197
|
/*trailingicon*/
|
|
7128
7198
|
ctx[5] && !
|
|
7129
7199
|
/*handlesTrailingIconClick*/
|
|
7130
|
-
ctx[
|
|
7131
|
-
if (
|
|
7132
|
-
|
|
7200
|
+
ctx[21]) {
|
|
7201
|
+
if (if_block2) {
|
|
7202
|
+
if_block2.p(ctx, dirty);
|
|
7133
7203
|
} else {
|
|
7134
|
-
|
|
7135
|
-
|
|
7136
|
-
|
|
7204
|
+
if_block2 = create_if_block_5(ctx);
|
|
7205
|
+
if_block2.c();
|
|
7206
|
+
if_block2.m(div0, t3);
|
|
7137
7207
|
}
|
|
7138
|
-
} else if (
|
|
7139
|
-
|
|
7140
|
-
|
|
7208
|
+
} else if (if_block2) {
|
|
7209
|
+
if_block2.d(1);
|
|
7210
|
+
if_block2 = null;
|
|
7141
7211
|
}
|
|
7142
7212
|
|
|
7143
7213
|
if (
|
|
7144
7214
|
/*trailingicon*/
|
|
7145
7215
|
ctx[5] &&
|
|
7146
7216
|
/*handlesTrailingIconClick*/
|
|
7147
|
-
ctx[
|
|
7148
|
-
if (
|
|
7149
|
-
|
|
7217
|
+
ctx[21]) {
|
|
7218
|
+
if (if_block3) {
|
|
7219
|
+
if_block3.p(ctx, dirty);
|
|
7150
7220
|
} else {
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7221
|
+
if_block3 = create_if_block_4$1(ctx);
|
|
7222
|
+
if_block3.c();
|
|
7223
|
+
if_block3.m(div0, t4);
|
|
7154
7224
|
}
|
|
7155
|
-
} else if (
|
|
7156
|
-
|
|
7157
|
-
|
|
7225
|
+
} else if (if_block3) {
|
|
7226
|
+
if_block3.d(1);
|
|
7227
|
+
if_block3 = null;
|
|
7228
|
+
}
|
|
7229
|
+
|
|
7230
|
+
if (
|
|
7231
|
+
/*suffix*/
|
|
7232
|
+
ctx[14]) {
|
|
7233
|
+
if (if_block4) {
|
|
7234
|
+
if_block4.p(ctx, dirty);
|
|
7235
|
+
} else {
|
|
7236
|
+
if_block4 = create_if_block_3$3(ctx);
|
|
7237
|
+
if_block4.c();
|
|
7238
|
+
if_block4.m(div0, null);
|
|
7239
|
+
}
|
|
7240
|
+
} else if (if_block4) {
|
|
7241
|
+
if_block4.d(1);
|
|
7242
|
+
if_block4 = null;
|
|
7158
7243
|
}
|
|
7159
7244
|
|
|
7160
7245
|
if (dirty &
|
|
7161
7246
|
/*isDisabled, variant, type*/
|
|
7162
|
-
|
|
7247
|
+
262210 && div0_class_value !== (div0_class_value = `
|
|
7163
7248
|
goa-input
|
|
7164
7249
|
${
|
|
7165
7250
|
/*isDisabled*/
|
|
7166
|
-
ctx[
|
|
7251
|
+
ctx[18] ? "goa-input--disabled" : ""}
|
|
7167
7252
|
variant--${
|
|
7168
7253
|
/*variant*/
|
|
7169
7254
|
ctx[6]}
|
|
@@ -7176,25 +7261,25 @@ function create_fragment$j(ctx) {
|
|
|
7176
7261
|
|
|
7177
7262
|
if (dirty &
|
|
7178
7263
|
/*isDisabled, variant, type, isError*/
|
|
7179
|
-
|
|
7264
|
+
786498) {
|
|
7180
7265
|
toggle_class(div0, "error",
|
|
7181
7266
|
/*isError*/
|
|
7182
|
-
ctx[
|
|
7267
|
+
ctx[19]);
|
|
7183
7268
|
}
|
|
7184
7269
|
|
|
7185
7270
|
if (
|
|
7186
7271
|
/*showCounter*/
|
|
7187
|
-
ctx[
|
|
7188
|
-
if (
|
|
7189
|
-
|
|
7272
|
+
ctx[17]) {
|
|
7273
|
+
if (if_block5) {
|
|
7274
|
+
if_block5.p(ctx, dirty);
|
|
7190
7275
|
} else {
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7276
|
+
if_block5 = create_if_block$a(ctx);
|
|
7277
|
+
if_block5.c();
|
|
7278
|
+
if_block5.m(div1, null);
|
|
7194
7279
|
}
|
|
7195
|
-
} else if (
|
|
7196
|
-
|
|
7197
|
-
|
|
7280
|
+
} else if (if_block5) {
|
|
7281
|
+
if_block5.d(1);
|
|
7282
|
+
if_block5 = null;
|
|
7198
7283
|
}
|
|
7199
7284
|
|
|
7200
7285
|
if (dirty &
|
|
@@ -7214,12 +7299,14 @@ function create_fragment$j(ctx) {
|
|
|
7214
7299
|
d(detaching) {
|
|
7215
7300
|
if (detaching) detach(div1);
|
|
7216
7301
|
if (if_block0) if_block0.d();
|
|
7302
|
+
if (if_block1) if_block1.d();
|
|
7217
7303
|
/*input_binding*/
|
|
7218
7304
|
|
|
7219
|
-
ctx[
|
|
7220
|
-
if (if_block1) if_block1.d();
|
|
7305
|
+
ctx[30](null);
|
|
7221
7306
|
if (if_block2) if_block2.d();
|
|
7222
7307
|
if (if_block3) if_block3.d();
|
|
7308
|
+
if (if_block4) if_block4.d();
|
|
7309
|
+
if (if_block5) if_block5.d();
|
|
7223
7310
|
mounted = false;
|
|
7224
7311
|
run_all(dispose);
|
|
7225
7312
|
}
|
|
@@ -7294,6 +7381,12 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
7294
7381
|
let {
|
|
7295
7382
|
step = null
|
|
7296
7383
|
} = $$props;
|
|
7384
|
+
let {
|
|
7385
|
+
prefix = ""
|
|
7386
|
+
} = $$props;
|
|
7387
|
+
let {
|
|
7388
|
+
suffix = ""
|
|
7389
|
+
} = $$props;
|
|
7297
7390
|
let {
|
|
7298
7391
|
showcounter = "false"
|
|
7299
7392
|
} = $$props;
|
|
@@ -7318,7 +7411,7 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
7318
7411
|
function input_binding($$value) {
|
|
7319
7412
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
7320
7413
|
inputEl = $$value;
|
|
7321
|
-
$$invalidate(
|
|
7414
|
+
$$invalidate(16, inputEl);
|
|
7322
7415
|
});
|
|
7323
7416
|
}
|
|
7324
7417
|
|
|
@@ -7330,61 +7423,63 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
7330
7423
|
if ('leadingicon' in $$props) $$invalidate(4, leadingicon = $$props.leadingicon);
|
|
7331
7424
|
if ('trailingicon' in $$props) $$invalidate(5, trailingicon = $$props.trailingicon);
|
|
7332
7425
|
if ('variant' in $$props) $$invalidate(6, variant = $$props.variant);
|
|
7333
|
-
if ('disabled' in $$props) $$invalidate(
|
|
7334
|
-
if ('handletrailingiconclick' in $$props) $$invalidate(
|
|
7335
|
-
if ('focused' in $$props) $$invalidate(
|
|
7336
|
-
if ('readonly' in $$props) $$invalidate(
|
|
7337
|
-
if ('error' in $$props) $$invalidate(
|
|
7426
|
+
if ('disabled' in $$props) $$invalidate(23, disabled = $$props.disabled);
|
|
7427
|
+
if ('handletrailingiconclick' in $$props) $$invalidate(24, handletrailingiconclick = $$props.handletrailingiconclick);
|
|
7428
|
+
if ('focused' in $$props) $$invalidate(25, focused = $$props.focused);
|
|
7429
|
+
if ('readonly' in $$props) $$invalidate(26, readonly = $$props.readonly);
|
|
7430
|
+
if ('error' in $$props) $$invalidate(27, error = $$props.error);
|
|
7338
7431
|
if ('testid' in $$props) $$invalidate(7, testid = $$props.testid);
|
|
7339
7432
|
if ('width' in $$props) $$invalidate(8, width = $$props.width);
|
|
7340
7433
|
if ('arialabel' in $$props) $$invalidate(9, arialabel = $$props.arialabel);
|
|
7341
7434
|
if ('min' in $$props) $$invalidate(10, min = $$props.min);
|
|
7342
7435
|
if ('max' in $$props) $$invalidate(11, max = $$props.max);
|
|
7343
7436
|
if ('step' in $$props) $$invalidate(12, step = $$props.step);
|
|
7344
|
-
if ('
|
|
7345
|
-
if ('
|
|
7437
|
+
if ('prefix' in $$props) $$invalidate(13, prefix = $$props.prefix);
|
|
7438
|
+
if ('suffix' in $$props) $$invalidate(14, suffix = $$props.suffix);
|
|
7439
|
+
if ('showcounter' in $$props) $$invalidate(28, showcounter = $$props.showcounter);
|
|
7440
|
+
if ('maxcharcount' in $$props) $$invalidate(15, maxcharcount = $$props.maxcharcount);
|
|
7346
7441
|
};
|
|
7347
7442
|
|
|
7348
7443
|
$$self.$$.update = () => {
|
|
7349
7444
|
if ($$self.$$.dirty &
|
|
7350
7445
|
/*handletrailingiconclick*/
|
|
7351
|
-
|
|
7352
|
-
$$invalidate(
|
|
7446
|
+
16777216) {
|
|
7447
|
+
$$invalidate(21, handlesTrailingIconClick = toBoolean(handletrailingiconclick));
|
|
7353
7448
|
}
|
|
7354
7449
|
|
|
7355
7450
|
if ($$self.$$.dirty &
|
|
7356
7451
|
/*focused*/
|
|
7357
|
-
|
|
7358
|
-
$$invalidate(
|
|
7452
|
+
33554432) {
|
|
7453
|
+
$$invalidate(29, isFocused = toBoolean(focused));
|
|
7359
7454
|
}
|
|
7360
7455
|
|
|
7361
7456
|
if ($$self.$$.dirty &
|
|
7362
7457
|
/*readonly*/
|
|
7363
|
-
|
|
7364
|
-
$$invalidate(
|
|
7458
|
+
67108864) {
|
|
7459
|
+
$$invalidate(20, isReadonly = toBoolean(readonly));
|
|
7365
7460
|
}
|
|
7366
7461
|
|
|
7367
7462
|
if ($$self.$$.dirty &
|
|
7368
7463
|
/*error*/
|
|
7369
|
-
|
|
7370
|
-
$$invalidate(
|
|
7464
|
+
134217728) {
|
|
7465
|
+
$$invalidate(19, isError = toBoolean(error));
|
|
7371
7466
|
}
|
|
7372
7467
|
|
|
7373
7468
|
if ($$self.$$.dirty &
|
|
7374
7469
|
/*disabled*/
|
|
7375
|
-
|
|
7376
|
-
$$invalidate(
|
|
7470
|
+
8388608) {
|
|
7471
|
+
$$invalidate(18, isDisabled = toBoolean(disabled));
|
|
7377
7472
|
}
|
|
7378
7473
|
|
|
7379
7474
|
if ($$self.$$.dirty &
|
|
7380
7475
|
/*showcounter*/
|
|
7381
|
-
|
|
7382
|
-
$$invalidate(
|
|
7476
|
+
268435456) {
|
|
7477
|
+
$$invalidate(17, showCounter = toBoolean(showcounter));
|
|
7383
7478
|
}
|
|
7384
7479
|
|
|
7385
7480
|
if ($$self.$$.dirty &
|
|
7386
7481
|
/*isFocused, inputEl*/
|
|
7387
|
-
|
|
7482
|
+
536936448) {
|
|
7388
7483
|
if (isFocused && inputEl) {
|
|
7389
7484
|
setTimeout(() => inputEl.focus(), 1);
|
|
7390
7485
|
}
|
|
@@ -7392,7 +7487,7 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
7392
7487
|
|
|
7393
7488
|
if ($$self.$$.dirty &
|
|
7394
7489
|
/*inputEl, type*/
|
|
7395
|
-
|
|
7490
|
+
65538) {
|
|
7396
7491
|
if (inputEl && type === "search") {
|
|
7397
7492
|
inputEl.addEventListener("search", e => {
|
|
7398
7493
|
onKeyUp(e);
|
|
@@ -7401,13 +7496,13 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
7401
7496
|
}
|
|
7402
7497
|
};
|
|
7403
7498
|
|
|
7404
|
-
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];
|
|
7499
|
+
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];
|
|
7405
7500
|
}
|
|
7406
7501
|
|
|
7407
7502
|
class Input extends SvelteElement {
|
|
7408
7503
|
constructor(options) {
|
|
7409
7504
|
super();
|
|
7410
|
-
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:
|
|
7505
|
+
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>')
|
|
7411
7506
|
center center no-repeat}</style>`;
|
|
7412
7507
|
init(this, {
|
|
7413
7508
|
target: this.shadowRoot,
|
|
@@ -7421,19 +7516,21 @@ class Input extends SvelteElement {
|
|
|
7421
7516
|
leadingicon: 4,
|
|
7422
7517
|
trailingicon: 5,
|
|
7423
7518
|
variant: 6,
|
|
7424
|
-
disabled:
|
|
7425
|
-
handletrailingiconclick:
|
|
7426
|
-
focused:
|
|
7427
|
-
readonly:
|
|
7428
|
-
error:
|
|
7519
|
+
disabled: 23,
|
|
7520
|
+
handletrailingiconclick: 24,
|
|
7521
|
+
focused: 25,
|
|
7522
|
+
readonly: 26,
|
|
7523
|
+
error: 27,
|
|
7429
7524
|
testid: 7,
|
|
7430
7525
|
width: 8,
|
|
7431
7526
|
arialabel: 9,
|
|
7432
7527
|
min: 10,
|
|
7433
7528
|
max: 11,
|
|
7434
7529
|
step: 12,
|
|
7435
|
-
|
|
7436
|
-
|
|
7530
|
+
prefix: 13,
|
|
7531
|
+
suffix: 14,
|
|
7532
|
+
showcounter: 28,
|
|
7533
|
+
maxcharcount: 15
|
|
7437
7534
|
}, null);
|
|
7438
7535
|
|
|
7439
7536
|
if (options) {
|
|
@@ -7449,7 +7546,7 @@ class Input extends SvelteElement {
|
|
|
7449
7546
|
}
|
|
7450
7547
|
|
|
7451
7548
|
static get observedAttributes() {
|
|
7452
|
-
return ["type", "name", "value", "placeholder", "leadingicon", "trailingicon", "variant", "disabled", "handletrailingiconclick", "focused", "readonly", "error", "testid", "width", "arialabel", "min", "max", "step", "showcounter", "maxcharcount"];
|
|
7549
|
+
return ["type", "name", "value", "placeholder", "leadingicon", "trailingicon", "variant", "disabled", "handletrailingiconclick", "focused", "readonly", "error", "testid", "width", "arialabel", "min", "max", "step", "prefix", "suffix", "showcounter", "maxcharcount"];
|
|
7453
7550
|
}
|
|
7454
7551
|
|
|
7455
7552
|
get type() {
|
|
@@ -7530,7 +7627,7 @@ class Input extends SvelteElement {
|
|
|
7530
7627
|
}
|
|
7531
7628
|
|
|
7532
7629
|
get disabled() {
|
|
7533
|
-
return this.$$.ctx[
|
|
7630
|
+
return this.$$.ctx[23];
|
|
7534
7631
|
}
|
|
7535
7632
|
|
|
7536
7633
|
set disabled(disabled) {
|
|
@@ -7541,7 +7638,7 @@ class Input extends SvelteElement {
|
|
|
7541
7638
|
}
|
|
7542
7639
|
|
|
7543
7640
|
get handletrailingiconclick() {
|
|
7544
|
-
return this.$$.ctx[
|
|
7641
|
+
return this.$$.ctx[24];
|
|
7545
7642
|
}
|
|
7546
7643
|
|
|
7547
7644
|
set handletrailingiconclick(handletrailingiconclick) {
|
|
@@ -7552,7 +7649,7 @@ class Input extends SvelteElement {
|
|
|
7552
7649
|
}
|
|
7553
7650
|
|
|
7554
7651
|
get focused() {
|
|
7555
|
-
return this.$$.ctx[
|
|
7652
|
+
return this.$$.ctx[25];
|
|
7556
7653
|
}
|
|
7557
7654
|
|
|
7558
7655
|
set focused(focused) {
|
|
@@ -7563,7 +7660,7 @@ class Input extends SvelteElement {
|
|
|
7563
7660
|
}
|
|
7564
7661
|
|
|
7565
7662
|
get readonly() {
|
|
7566
|
-
return this.$$.ctx[
|
|
7663
|
+
return this.$$.ctx[26];
|
|
7567
7664
|
}
|
|
7568
7665
|
|
|
7569
7666
|
set readonly(readonly) {
|
|
@@ -7574,7 +7671,7 @@ class Input extends SvelteElement {
|
|
|
7574
7671
|
}
|
|
7575
7672
|
|
|
7576
7673
|
get error() {
|
|
7577
|
-
return this.$$.ctx[
|
|
7674
|
+
return this.$$.ctx[27];
|
|
7578
7675
|
}
|
|
7579
7676
|
|
|
7580
7677
|
set error(error) {
|
|
@@ -7650,8 +7747,30 @@ class Input extends SvelteElement {
|
|
|
7650
7747
|
flush();
|
|
7651
7748
|
}
|
|
7652
7749
|
|
|
7750
|
+
get prefix() {
|
|
7751
|
+
return this.$$.ctx[13];
|
|
7752
|
+
}
|
|
7753
|
+
|
|
7754
|
+
set prefix(prefix) {
|
|
7755
|
+
this.$$set({
|
|
7756
|
+
prefix
|
|
7757
|
+
});
|
|
7758
|
+
flush();
|
|
7759
|
+
}
|
|
7760
|
+
|
|
7761
|
+
get suffix() {
|
|
7762
|
+
return this.$$.ctx[14];
|
|
7763
|
+
}
|
|
7764
|
+
|
|
7765
|
+
set suffix(suffix) {
|
|
7766
|
+
this.$$set({
|
|
7767
|
+
suffix
|
|
7768
|
+
});
|
|
7769
|
+
flush();
|
|
7770
|
+
}
|
|
7771
|
+
|
|
7653
7772
|
get showcounter() {
|
|
7654
|
-
return this.$$.ctx[
|
|
7773
|
+
return this.$$.ctx[28];
|
|
7655
7774
|
}
|
|
7656
7775
|
|
|
7657
7776
|
set showcounter(showcounter) {
|
|
@@ -7662,7 +7781,7 @@ class Input extends SvelteElement {
|
|
|
7662
7781
|
}
|
|
7663
7782
|
|
|
7664
7783
|
get maxcharcount() {
|
|
7665
|
-
return this.$$.ctx[
|
|
7784
|
+
return this.$$.ctx[15];
|
|
7666
7785
|
}
|
|
7667
7786
|
|
|
7668
7787
|
set maxcharcount(maxcharcount) {
|
|
@@ -9990,7 +10109,7 @@ function create_if_block_3(ctx) {
|
|
|
9990
10109
|
t0 = space();
|
|
9991
10110
|
div1 = element("div");
|
|
9992
10111
|
div1.innerHTML = `An official site of the <a href="https://www.alberta.ca/index.aspx">Alberta Government</a>`;
|
|
9993
|
-
attr(div0, "class", "service-
|
|
10112
|
+
attr(div0, "class", "service-type service-type--live");
|
|
9994
10113
|
attr(div1, "data-testid", "type");
|
|
9995
10114
|
attr(div1, "class", "site-text");
|
|
9996
10115
|
},
|
|
@@ -10038,7 +10157,7 @@ function create_if_block_1$3(ctx) {
|
|
|
10038
10157
|
t4 = text(" service\n ");
|
|
10039
10158
|
if (if_block) if_block.c();
|
|
10040
10159
|
attr(div0, "data-testid", "type");
|
|
10041
|
-
attr(div0, "class", div0_class_value = "service-
|
|
10160
|
+
attr(div0, "class", div0_class_value = "service-type service-type--" +
|
|
10042
10161
|
/*type*/
|
|
10043
10162
|
ctx[0].toLowerCase());
|
|
10044
10163
|
attr(a, "href", "https://www.alberta.ca/index.aspx");
|
|
@@ -10066,7 +10185,7 @@ function create_if_block_1$3(ctx) {
|
|
|
10066
10185
|
|
|
10067
10186
|
if (dirty &
|
|
10068
10187
|
/*type*/
|
|
10069
|
-
1 && div0_class_value !== (div0_class_value = "service-
|
|
10188
|
+
1 && div0_class_value !== (div0_class_value = "service-type service-type--" +
|
|
10070
10189
|
/*type*/
|
|
10071
10190
|
ctx[0].toLowerCase())) {
|
|
10072
10191
|
attr(div0, "class", div0_class_value);
|
|
@@ -13894,6 +14013,8 @@ const GoAInput = ({
|
|
|
13894
14013
|
min,
|
|
13895
14014
|
max,
|
|
13896
14015
|
step,
|
|
14016
|
+
prefix,
|
|
14017
|
+
suffix,
|
|
13897
14018
|
onTrailingIconClick,
|
|
13898
14019
|
onChange
|
|
13899
14020
|
}) => {
|
|
@@ -13943,6 +14064,8 @@ const GoAInput = ({
|
|
|
13943
14064
|
min: min,
|
|
13944
14065
|
max: max,
|
|
13945
14066
|
step: step,
|
|
14067
|
+
prefix: prefix,
|
|
14068
|
+
suffix: suffix,
|
|
13946
14069
|
showcounter: showCounter,
|
|
13947
14070
|
maxcharcount: maxCharCount,
|
|
13948
14071
|
handletrailingiconclick: !!onTrailingIconClick
|
|
@@ -14112,7 +14235,6 @@ var css_248z$1 = "goa-button + goa-button {\n margin-top: 1.5rem;\n}\n\n/* TODO
|
|
|
14112
14235
|
styleInject(css_248z$1);
|
|
14113
14236
|
|
|
14114
14237
|
const GoAButton = ({
|
|
14115
|
-
title,
|
|
14116
14238
|
disabled: _disabled = false,
|
|
14117
14239
|
type: _type = 'primary',
|
|
14118
14240
|
size,
|
|
@@ -14146,7 +14268,6 @@ const GoAButton = ({
|
|
|
14146
14268
|
size: size,
|
|
14147
14269
|
variant: variant,
|
|
14148
14270
|
disabled: _disabled,
|
|
14149
|
-
title: title,
|
|
14150
14271
|
leadingicon: leadingIcon,
|
|
14151
14272
|
trailingicon: trailingIcon
|
|
14152
14273
|
}, {
|