@abgov/react-components 4.0.0-alpha.39 → 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 +471 -316
- package/react-components.umd.js +480 -323
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) {
|
|
@@ -4201,7 +4174,7 @@ function writable(value, start = noop) {
|
|
|
4201
4174
|
|
|
4202
4175
|
const stores = {};
|
|
4203
4176
|
|
|
4204
|
-
class
|
|
4177
|
+
class ContextStoreInternal {
|
|
4205
4178
|
constructor() {
|
|
4206
4179
|
this.store = writable();
|
|
4207
4180
|
}
|
|
@@ -4219,26 +4192,13 @@ class ContextStore {
|
|
|
4219
4192
|
}
|
|
4220
4193
|
|
|
4221
4194
|
function createContext(name) {
|
|
4222
|
-
const ctx = new
|
|
4195
|
+
const ctx = new ContextStoreInternal();
|
|
4223
4196
|
stores[name] = ctx;
|
|
4224
4197
|
return ctx;
|
|
4225
4198
|
}
|
|
4226
4199
|
|
|
4227
|
-
|
|
4228
|
-
return
|
|
4229
|
-
}
|
|
4230
|
-
|
|
4231
|
-
async function _getContext(name, attempts) {
|
|
4232
|
-
if (attempts > 10) {
|
|
4233
|
-
throw new Error(`Could not find context ${name}`);
|
|
4234
|
-
}
|
|
4235
|
-
|
|
4236
|
-
if (stores[name]) {
|
|
4237
|
-
return stores[name];
|
|
4238
|
-
}
|
|
4239
|
-
|
|
4240
|
-
await tick();
|
|
4241
|
-
return _getContext(name, attempts + 1);
|
|
4200
|
+
function getContext(name) {
|
|
4201
|
+
return stores[name];
|
|
4242
4202
|
}
|
|
4243
4203
|
|
|
4244
4204
|
function deleteContext(name) {
|
|
@@ -4252,10 +4212,10 @@ const BIND$1 = "bind";
|
|
|
4252
4212
|
|
|
4253
4213
|
function get_each_context$4(ctx, list, i) {
|
|
4254
4214
|
const child_ctx = ctx.slice();
|
|
4255
|
-
child_ctx[
|
|
4256
|
-
child_ctx[
|
|
4215
|
+
child_ctx[39] = list[i];
|
|
4216
|
+
child_ctx[41] = i;
|
|
4257
4217
|
return child_ctx;
|
|
4258
|
-
} // (
|
|
4218
|
+
} // (198:2) {#if isMenuVisible}
|
|
4259
4219
|
|
|
4260
4220
|
|
|
4261
4221
|
function create_if_block$d(ctx) {
|
|
@@ -4300,14 +4260,16 @@ function create_if_block$d(ctx) {
|
|
|
4300
4260
|
}
|
|
4301
4261
|
|
|
4302
4262
|
};
|
|
4303
|
-
} // (
|
|
4263
|
+
} // (234:4) {#each options as option, index}
|
|
4304
4264
|
|
|
4305
4265
|
|
|
4306
|
-
function create_each_block$4(
|
|
4266
|
+
function create_each_block$4(ctx) {
|
|
4307
4267
|
let li;
|
|
4308
|
-
let t0_value =
|
|
4268
|
+
let t0_value = (
|
|
4269
|
+
/*option*/
|
|
4270
|
+
ctx[39].label ||
|
|
4309
4271
|
/*option*/
|
|
4310
|
-
ctx[
|
|
4272
|
+
ctx[39].value) + "";
|
|
4311
4273
|
let t0;
|
|
4312
4274
|
let t1;
|
|
4313
4275
|
let li_aria_label_value;
|
|
@@ -4322,43 +4284,39 @@ function create_each_block$4(key_1, ctx) {
|
|
|
4322
4284
|
/*click_handler*/
|
|
4323
4285
|
ctx[22](
|
|
4324
4286
|
/*option*/
|
|
4325
|
-
ctx[
|
|
4287
|
+
ctx[39])
|
|
4326
4288
|
);
|
|
4327
4289
|
}
|
|
4328
4290
|
|
|
4329
4291
|
return {
|
|
4330
|
-
key: key_1,
|
|
4331
|
-
first: null,
|
|
4332
|
-
|
|
4333
4292
|
c() {
|
|
4334
4293
|
li = element("li");
|
|
4335
4294
|
t0 = text(t0_value);
|
|
4336
4295
|
t1 = space();
|
|
4337
4296
|
attr(li, "aria-label", li_aria_label_value =
|
|
4338
4297
|
/*option*/
|
|
4339
|
-
ctx[
|
|
4298
|
+
ctx[39].label ||
|
|
4340
4299
|
/*option*/
|
|
4341
|
-
ctx[
|
|
4300
|
+
ctx[39].value);
|
|
4342
4301
|
attr(li, "data-testid", li_data_testid_value = `${
|
|
4343
4302
|
/*option*/
|
|
4344
|
-
ctx[
|
|
4303
|
+
ctx[39].value}-dropdown-item`);
|
|
4345
4304
|
attr(li, "data-index", li_data_index_value =
|
|
4346
4305
|
/*index*/
|
|
4347
|
-
ctx[
|
|
4306
|
+
ctx[41]);
|
|
4348
4307
|
attr(li, "class", "goa-dropdown-option");
|
|
4349
4308
|
attr(li, "style", li_style_value = `display: ${"block"}`);
|
|
4350
4309
|
toggle_class(li, "goa-dropdown-option--disabled", false);
|
|
4351
4310
|
toggle_class(li, "goa-dropdown-option--tabbed",
|
|
4352
4311
|
/*index*/
|
|
4353
|
-
ctx[
|
|
4312
|
+
ctx[41] ===
|
|
4354
4313
|
/*highlightedIndex*/
|
|
4355
4314
|
ctx[13]);
|
|
4356
4315
|
toggle_class(li, "goa-dropdown-option--selected",
|
|
4357
4316
|
/*_values*/
|
|
4358
4317
|
ctx[9].includes(
|
|
4359
4318
|
/*option*/
|
|
4360
|
-
ctx[
|
|
4361
|
-
this.first = li;
|
|
4319
|
+
ctx[39].value));
|
|
4362
4320
|
},
|
|
4363
4321
|
|
|
4364
4322
|
m(target, anchor) {
|
|
@@ -4376,17 +4334,19 @@ function create_each_block$4(key_1, ctx) {
|
|
|
4376
4334
|
ctx = new_ctx;
|
|
4377
4335
|
if (dirty[0] &
|
|
4378
4336
|
/*options*/
|
|
4379
|
-
1024 && t0_value !== (t0_value =
|
|
4337
|
+
1024 && t0_value !== (t0_value = (
|
|
4338
|
+
/*option*/
|
|
4339
|
+
ctx[39].label ||
|
|
4380
4340
|
/*option*/
|
|
4381
|
-
ctx[
|
|
4341
|
+
ctx[39].value) + "")) set_data(t0, t0_value);
|
|
4382
4342
|
|
|
4383
4343
|
if (dirty[0] &
|
|
4384
4344
|
/*options*/
|
|
4385
4345
|
1024 && li_aria_label_value !== (li_aria_label_value =
|
|
4386
4346
|
/*option*/
|
|
4387
|
-
ctx[
|
|
4347
|
+
ctx[39].label ||
|
|
4388
4348
|
/*option*/
|
|
4389
|
-
ctx[
|
|
4349
|
+
ctx[39].value)) {
|
|
4390
4350
|
attr(li, "aria-label", li_aria_label_value);
|
|
4391
4351
|
}
|
|
4392
4352
|
|
|
@@ -4394,24 +4354,16 @@ function create_each_block$4(key_1, ctx) {
|
|
|
4394
4354
|
/*options*/
|
|
4395
4355
|
1024 && li_data_testid_value !== (li_data_testid_value = `${
|
|
4396
4356
|
/*option*/
|
|
4397
|
-
ctx[
|
|
4357
|
+
ctx[39].value}-dropdown-item`)) {
|
|
4398
4358
|
attr(li, "data-testid", li_data_testid_value);
|
|
4399
4359
|
}
|
|
4400
4360
|
|
|
4401
4361
|
if (dirty[0] &
|
|
4402
|
-
/*
|
|
4403
|
-
|
|
4404
|
-
/*index*/
|
|
4405
|
-
ctx[38])) {
|
|
4406
|
-
attr(li, "data-index", li_data_index_value);
|
|
4407
|
-
}
|
|
4408
|
-
|
|
4409
|
-
if (dirty[0] &
|
|
4410
|
-
/*options, highlightedIndex*/
|
|
4411
|
-
9216) {
|
|
4362
|
+
/*highlightedIndex*/
|
|
4363
|
+
8192) {
|
|
4412
4364
|
toggle_class(li, "goa-dropdown-option--tabbed",
|
|
4413
4365
|
/*index*/
|
|
4414
|
-
ctx[
|
|
4366
|
+
ctx[41] ===
|
|
4415
4367
|
/*highlightedIndex*/
|
|
4416
4368
|
ctx[13]);
|
|
4417
4369
|
}
|
|
@@ -4423,7 +4375,7 @@ function create_each_block$4(key_1, ctx) {
|
|
|
4423
4375
|
/*_values*/
|
|
4424
4376
|
ctx[9].includes(
|
|
4425
4377
|
/*option*/
|
|
4426
|
-
ctx[
|
|
4378
|
+
ctx[39].value));
|
|
4427
4379
|
}
|
|
4428
4380
|
},
|
|
4429
4381
|
|
|
@@ -4448,8 +4400,6 @@ function create_fragment$q(ctx) {
|
|
|
4448
4400
|
let ul;
|
|
4449
4401
|
let slot;
|
|
4450
4402
|
let t2;
|
|
4451
|
-
let each_blocks = [];
|
|
4452
|
-
let each_1_lookup = new Map();
|
|
4453
4403
|
let ul_style_value;
|
|
4454
4404
|
let div1_style_value;
|
|
4455
4405
|
let mounted;
|
|
@@ -4460,15 +4410,10 @@ function create_fragment$q(ctx) {
|
|
|
4460
4410
|
let each_value =
|
|
4461
4411
|
/*options*/
|
|
4462
4412
|
ctx[10];
|
|
4463
|
-
|
|
4464
|
-
const get_key = ctx =>
|
|
4465
|
-
/*option*/
|
|
4466
|
-
ctx[36].value;
|
|
4413
|
+
let each_blocks = [];
|
|
4467
4414
|
|
|
4468
4415
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
4469
|
-
|
|
4470
|
-
let key = get_key(child_ctx);
|
|
4471
|
-
each_1_lookup.set(key, each_blocks[i] = create_each_block$4(key, child_ctx));
|
|
4416
|
+
each_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));
|
|
4472
4417
|
}
|
|
4473
4418
|
|
|
4474
4419
|
return {
|
|
@@ -4656,7 +4601,25 @@ function create_fragment$q(ctx) {
|
|
|
4656
4601
|
each_value =
|
|
4657
4602
|
/*options*/
|
|
4658
4603
|
ctx[10];
|
|
4659
|
-
|
|
4604
|
+
let i;
|
|
4605
|
+
|
|
4606
|
+
for (i = 0; i < each_value.length; i += 1) {
|
|
4607
|
+
const child_ctx = get_each_context$4(ctx, each_value, i);
|
|
4608
|
+
|
|
4609
|
+
if (each_blocks[i]) {
|
|
4610
|
+
each_blocks[i].p(child_ctx, dirty);
|
|
4611
|
+
} else {
|
|
4612
|
+
each_blocks[i] = create_each_block$4(child_ctx);
|
|
4613
|
+
each_blocks[i].c();
|
|
4614
|
+
each_blocks[i].m(ul, null);
|
|
4615
|
+
}
|
|
4616
|
+
}
|
|
4617
|
+
|
|
4618
|
+
for (; i < each_blocks.length; i += 1) {
|
|
4619
|
+
each_blocks[i].d(1);
|
|
4620
|
+
}
|
|
4621
|
+
|
|
4622
|
+
each_blocks.length = each_value.length;
|
|
4660
4623
|
}
|
|
4661
4624
|
|
|
4662
4625
|
if (dirty[0] &
|
|
@@ -4700,13 +4663,9 @@ function create_fragment$q(ctx) {
|
|
|
4700
4663
|
d(detaching) {
|
|
4701
4664
|
if (detaching) detach(div1);
|
|
4702
4665
|
if (if_block) if_block.d();
|
|
4703
|
-
|
|
4704
|
-
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
4705
|
-
each_blocks[i].d();
|
|
4706
|
-
}
|
|
4666
|
+
destroy_each(each_blocks, detaching);
|
|
4707
4667
|
/*ul_binding*/
|
|
4708
4668
|
|
|
4709
|
-
|
|
4710
4669
|
ctx[23](null);
|
|
4711
4670
|
/*div1_binding*/
|
|
4712
4671
|
|
|
@@ -4770,15 +4729,42 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
4770
4729
|
let menuEl;
|
|
4771
4730
|
let ctx; // Hooks
|
|
4772
4731
|
|
|
4773
|
-
onMount(
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4732
|
+
onMount(() => {
|
|
4733
|
+
const maxAttempts = 10;
|
|
4734
|
+
let attempts = 0;
|
|
4735
|
+
const fn = setInterval(async () => {
|
|
4736
|
+
attempts++;
|
|
4737
|
+
|
|
4738
|
+
if (name && el) {
|
|
4739
|
+
addEventListeners();
|
|
4740
|
+
parseValues();
|
|
4741
|
+
bindContext();
|
|
4742
|
+
clearInterval(fn);
|
|
4743
|
+
}
|
|
4744
|
+
|
|
4745
|
+
if (attempts > maxAttempts) {
|
|
4746
|
+
console.error("goa-dropdown: missing the required `name` attribute. It must match the children's name attribute.");
|
|
4747
|
+
clearInterval(fn);
|
|
4748
|
+
}
|
|
4749
|
+
}, 10);
|
|
4750
|
+
});
|
|
4751
|
+
onDestroy(() => {
|
|
4752
|
+
removeEventListeners();
|
|
4753
|
+
deleteContext(name);
|
|
4754
|
+
}); // Functions
|
|
4778
4755
|
|
|
4756
|
+
function addEventListeners() {
|
|
4779
4757
|
el.addEventListener("focus", onFocus, true);
|
|
4780
|
-
el.addEventListener("blur", onBlur, true);
|
|
4758
|
+
el.addEventListener("blur", onBlur, true);
|
|
4759
|
+
}
|
|
4760
|
+
|
|
4761
|
+
function removeEventListeners() {
|
|
4762
|
+
el.removeEventListener("focus", onFocus, true);
|
|
4763
|
+
el.removeEventListener("blur", onBlur, true);
|
|
4764
|
+
}
|
|
4781
4765
|
|
|
4766
|
+
function parseValues() {
|
|
4767
|
+
// parse and convert values to strings to avoid later type comparison issues
|
|
4782
4768
|
let rawValue;
|
|
4783
4769
|
|
|
4784
4770
|
try {
|
|
@@ -4790,13 +4776,7 @@ function instance$o($$self, $$props, $$invalidate) {
|
|
|
4790
4776
|
const rawValues = typeof rawValue === "object" ? rawValue : [rawValue]; // convert all values to strings to avoid later type comparison issues
|
|
4791
4777
|
|
|
4792
4778
|
$$invalidate(9, _values = rawValues.map(val => `${val}`));
|
|
4793
|
-
|
|
4794
|
-
});
|
|
4795
|
-
onDestroy(() => {
|
|
4796
|
-
el.removeEventListener("focus", onFocus, true);
|
|
4797
|
-
el.removeEventListener("blur", onBlur, true);
|
|
4798
|
-
deleteContext(name);
|
|
4799
|
-
}); // Functions
|
|
4779
|
+
}
|
|
4800
4780
|
|
|
4801
4781
|
function bindContext() {
|
|
4802
4782
|
ctx = createContext(name);
|
|
@@ -5173,21 +5153,25 @@ function instance$n($$self, $$props, $$invalidate) {
|
|
|
5173
5153
|
label = ""
|
|
5174
5154
|
} = $$props; // private
|
|
5175
5155
|
|
|
5176
|
-
let ctx;
|
|
5156
|
+
let ctx;
|
|
5157
|
+
onMount(() => {
|
|
5158
|
+
const fn = setInterval(() => {
|
|
5159
|
+
if (name && value) {
|
|
5160
|
+
ctx = getContext(name);
|
|
5177
5161
|
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
return;
|
|
5182
|
-
}
|
|
5162
|
+
if (!ctx) {
|
|
5163
|
+
return;
|
|
5164
|
+
}
|
|
5183
5165
|
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5166
|
+
ctx.notify({
|
|
5167
|
+
type: BIND$1,
|
|
5168
|
+
name,
|
|
5169
|
+
label,
|
|
5170
|
+
value
|
|
5171
|
+
});
|
|
5172
|
+
clearInterval(fn);
|
|
5173
|
+
}
|
|
5174
|
+
}, 10);
|
|
5191
5175
|
});
|
|
5192
5176
|
|
|
5193
5177
|
$$self.$$set = $$props => {
|
|
@@ -6584,7 +6568,40 @@ class IconButton extends SvelteElement {
|
|
|
6584
6568
|
customElements.define("goa-icon-button", IconButton);
|
|
6585
6569
|
/* libs/web-components/src/components/input/Input.svelte generated by Svelte v3.49.0 */
|
|
6586
6570
|
|
|
6587
|
-
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) {
|
|
6588
6605
|
let goa_icon;
|
|
6589
6606
|
return {
|
|
6590
6607
|
c() {
|
|
@@ -6615,10 +6632,10 @@ function create_if_block_5(ctx) {
|
|
|
6615
6632
|
}
|
|
6616
6633
|
|
|
6617
6634
|
};
|
|
6618
|
-
} // (
|
|
6635
|
+
} // (110:4) {#if trailingicon && !handlesTrailingIconClick}
|
|
6619
6636
|
|
|
6620
6637
|
|
|
6621
|
-
function
|
|
6638
|
+
function create_if_block_5(ctx) {
|
|
6622
6639
|
let goa_icon;
|
|
6623
6640
|
return {
|
|
6624
6641
|
c() {
|
|
@@ -6650,10 +6667,10 @@ function create_if_block_4$1(ctx) {
|
|
|
6650
6667
|
}
|
|
6651
6668
|
|
|
6652
6669
|
};
|
|
6653
|
-
} // (
|
|
6670
|
+
} // (120:4) {#if trailingicon && handlesTrailingIconClick}
|
|
6654
6671
|
|
|
6655
6672
|
|
|
6656
|
-
function
|
|
6673
|
+
function create_if_block_4$1(ctx) {
|
|
6657
6674
|
let goa_icon_button;
|
|
6658
6675
|
let mounted;
|
|
6659
6676
|
let dispose;
|
|
@@ -6662,7 +6679,7 @@ function create_if_block_3$3(ctx) {
|
|
|
6662
6679
|
goa_icon_button = element("goa-icon-button");
|
|
6663
6680
|
set_custom_element_data(goa_icon_button, "disabled",
|
|
6664
6681
|
/*isDisabled*/
|
|
6665
|
-
ctx[
|
|
6682
|
+
ctx[18]);
|
|
6666
6683
|
set_custom_element_data(goa_icon_button, "variant", "nocolor");
|
|
6667
6684
|
set_custom_element_data(goa_icon_button, "size", "medium");
|
|
6668
6685
|
set_custom_element_data(goa_icon_button, "type",
|
|
@@ -6683,10 +6700,10 @@ function create_if_block_3$3(ctx) {
|
|
|
6683
6700
|
p(ctx, dirty) {
|
|
6684
6701
|
if (dirty &
|
|
6685
6702
|
/*isDisabled*/
|
|
6686
|
-
|
|
6703
|
+
262144) {
|
|
6687
6704
|
set_custom_element_data(goa_icon_button, "disabled",
|
|
6688
6705
|
/*isDisabled*/
|
|
6689
|
-
ctx[
|
|
6706
|
+
ctx[18]);
|
|
6690
6707
|
}
|
|
6691
6708
|
|
|
6692
6709
|
if (dirty &
|
|
@@ -6705,7 +6722,40 @@ function create_if_block_3$3(ctx) {
|
|
|
6705
6722
|
}
|
|
6706
6723
|
|
|
6707
6724
|
};
|
|
6708
|
-
} // (
|
|
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}
|
|
6709
6759
|
|
|
6710
6760
|
|
|
6711
6761
|
function create_if_block$a(ctx) {
|
|
@@ -6714,7 +6764,7 @@ function create_if_block$a(ctx) {
|
|
|
6714
6764
|
function select_block_type(ctx, dirty) {
|
|
6715
6765
|
if (
|
|
6716
6766
|
/*maxcharcount*/
|
|
6717
|
-
ctx[
|
|
6767
|
+
ctx[15] > 0) return create_if_block_1$6;
|
|
6718
6768
|
if (
|
|
6719
6769
|
/*value*/
|
|
6720
6770
|
ctx[0].length > 0) return create_if_block_2$5;
|
|
@@ -6756,7 +6806,7 @@ function create_if_block$a(ctx) {
|
|
|
6756
6806
|
}
|
|
6757
6807
|
|
|
6758
6808
|
};
|
|
6759
|
-
} // (
|
|
6809
|
+
} // (142:31)
|
|
6760
6810
|
|
|
6761
6811
|
|
|
6762
6812
|
function create_if_block_2$5(ctx) {
|
|
@@ -6790,7 +6840,7 @@ function create_if_block_2$5(ctx) {
|
|
|
6790
6840
|
}
|
|
6791
6841
|
|
|
6792
6842
|
};
|
|
6793
|
-
} // (
|
|
6843
|
+
} // (138:4) {#if maxcharcount > 0}
|
|
6794
6844
|
|
|
6795
6845
|
|
|
6796
6846
|
function create_if_block_1$6(ctx) {
|
|
@@ -6801,7 +6851,7 @@ function create_if_block_1$6(ctx) {
|
|
|
6801
6851
|
let t0;
|
|
6802
6852
|
let t1_value = `/${
|
|
6803
6853
|
/*maxcharcount*/
|
|
6804
|
-
ctx[
|
|
6854
|
+
ctx[15]}` + "";
|
|
6805
6855
|
let t1;
|
|
6806
6856
|
return {
|
|
6807
6857
|
c() {
|
|
@@ -6813,7 +6863,7 @@ function create_if_block_1$6(ctx) {
|
|
|
6813
6863
|
/*value*/
|
|
6814
6864
|
ctx[0].length >
|
|
6815
6865
|
/*maxcharcount*/
|
|
6816
|
-
ctx[
|
|
6866
|
+
ctx[15]);
|
|
6817
6867
|
},
|
|
6818
6868
|
|
|
6819
6869
|
m(target, anchor) {
|
|
@@ -6830,18 +6880,18 @@ function create_if_block_1$6(ctx) {
|
|
|
6830
6880
|
ctx[0].length + "")) set_data(t0, t0_value);
|
|
6831
6881
|
if (dirty &
|
|
6832
6882
|
/*maxcharcount*/
|
|
6833
|
-
|
|
6883
|
+
32768 && t1_value !== (t1_value = `/${
|
|
6834
6884
|
/*maxcharcount*/
|
|
6835
|
-
ctx[
|
|
6885
|
+
ctx[15]}` + "")) set_data(t1, t1_value);
|
|
6836
6886
|
|
|
6837
6887
|
if (dirty &
|
|
6838
6888
|
/*value, maxcharcount*/
|
|
6839
|
-
|
|
6889
|
+
32769) {
|
|
6840
6890
|
toggle_class(div, "counter-error",
|
|
6841
6891
|
/*value*/
|
|
6842
6892
|
ctx[0].length >
|
|
6843
6893
|
/*maxcharcount*/
|
|
6844
|
-
ctx[
|
|
6894
|
+
ctx[15]);
|
|
6845
6895
|
}
|
|
6846
6896
|
},
|
|
6847
6897
|
|
|
@@ -6856,46 +6906,58 @@ function create_fragment$j(ctx) {
|
|
|
6856
6906
|
let div1;
|
|
6857
6907
|
let div0;
|
|
6858
6908
|
let t0;
|
|
6909
|
+
let t1;
|
|
6859
6910
|
let input;
|
|
6860
6911
|
let input_class_value;
|
|
6861
6912
|
let input_style_value;
|
|
6862
6913
|
let input_aria_label_value;
|
|
6863
|
-
let t1;
|
|
6864
6914
|
let t2;
|
|
6865
|
-
let div0_class_value;
|
|
6866
6915
|
let t3;
|
|
6916
|
+
let t4;
|
|
6917
|
+
let div0_class_value;
|
|
6918
|
+
let t5;
|
|
6867
6919
|
let div1_style_value;
|
|
6868
6920
|
let mounted;
|
|
6869
6921
|
let dispose;
|
|
6870
6922
|
let if_block0 =
|
|
6871
|
-
/*
|
|
6872
|
-
ctx[
|
|
6923
|
+
/*prefix*/
|
|
6924
|
+
ctx[13] && create_if_block_7(ctx);
|
|
6873
6925
|
let if_block1 =
|
|
6926
|
+
/*leadingicon*/
|
|
6927
|
+
ctx[4] && create_if_block_6(ctx);
|
|
6928
|
+
let if_block2 =
|
|
6874
6929
|
/*trailingicon*/
|
|
6875
6930
|
ctx[5] && !
|
|
6876
6931
|
/*handlesTrailingIconClick*/
|
|
6877
|
-
ctx[
|
|
6878
|
-
let
|
|
6932
|
+
ctx[21] && create_if_block_5(ctx);
|
|
6933
|
+
let if_block3 =
|
|
6879
6934
|
/*trailingicon*/
|
|
6880
6935
|
ctx[5] &&
|
|
6881
6936
|
/*handlesTrailingIconClick*/
|
|
6882
|
-
ctx[
|
|
6883
|
-
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 =
|
|
6884
6942
|
/*showCounter*/
|
|
6885
|
-
ctx[
|
|
6943
|
+
ctx[17] && create_if_block$a(ctx);
|
|
6886
6944
|
return {
|
|
6887
6945
|
c() {
|
|
6888
6946
|
div1 = element("div");
|
|
6889
6947
|
div0 = element("div");
|
|
6890
6948
|
if (if_block0) if_block0.c();
|
|
6891
6949
|
t0 = space();
|
|
6892
|
-
input = element("input");
|
|
6893
|
-
t1 = space();
|
|
6894
6950
|
if (if_block1) if_block1.c();
|
|
6951
|
+
t1 = space();
|
|
6952
|
+
input = element("input");
|
|
6895
6953
|
t2 = space();
|
|
6896
6954
|
if (if_block2) if_block2.c();
|
|
6897
6955
|
t3 = space();
|
|
6898
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();
|
|
6899
6961
|
this.c = noop;
|
|
6900
6962
|
attr(input, "class", input_class_value = `input--${
|
|
6901
6963
|
/*variant*/
|
|
@@ -6905,10 +6967,10 @@ function create_fragment$j(ctx) {
|
|
|
6905
6967
|
ctx[5] ? "-0.5rem" : "0"}`);
|
|
6906
6968
|
input.readOnly =
|
|
6907
6969
|
/*isReadonly*/
|
|
6908
|
-
ctx[
|
|
6970
|
+
ctx[20];
|
|
6909
6971
|
input.disabled =
|
|
6910
6972
|
/*isDisabled*/
|
|
6911
|
-
ctx[
|
|
6973
|
+
ctx[18];
|
|
6912
6974
|
attr(input, "data-testid",
|
|
6913
6975
|
/*testid*/
|
|
6914
6976
|
ctx[7]);
|
|
@@ -6943,7 +7005,7 @@ function create_fragment$j(ctx) {
|
|
|
6943
7005
|
goa-input
|
|
6944
7006
|
${
|
|
6945
7007
|
/*isDisabled*/
|
|
6946
|
-
ctx[
|
|
7008
|
+
ctx[18] ? "goa-input--disabled" : ""}
|
|
6947
7009
|
variant--${
|
|
6948
7010
|
/*variant*/
|
|
6949
7011
|
ctx[6]}
|
|
@@ -6953,7 +7015,7 @@ function create_fragment$j(ctx) {
|
|
|
6953
7015
|
`);
|
|
6954
7016
|
toggle_class(div0, "error",
|
|
6955
7017
|
/*isError*/
|
|
6956
|
-
ctx[
|
|
7018
|
+
ctx[19]);
|
|
6957
7019
|
attr(div1, "class", "container");
|
|
6958
7020
|
attr(div1, "style", div1_style_value = `
|
|
6959
7021
|
--width: ${
|
|
@@ -6967,35 +7029,39 @@ function create_fragment$j(ctx) {
|
|
|
6967
7029
|
append(div1, div0);
|
|
6968
7030
|
if (if_block0) if_block0.m(div0, null);
|
|
6969
7031
|
append(div0, t0);
|
|
7032
|
+
if (if_block1) if_block1.m(div0, null);
|
|
7033
|
+
append(div0, t1);
|
|
6970
7034
|
append(div0, input);
|
|
6971
7035
|
/*input_binding*/
|
|
6972
7036
|
|
|
6973
|
-
ctx[
|
|
6974
|
-
append(div0, t1);
|
|
6975
|
-
if (if_block1) if_block1.m(div0, null);
|
|
7037
|
+
ctx[30](input);
|
|
6976
7038
|
append(div0, t2);
|
|
6977
7039
|
if (if_block2) if_block2.m(div0, null);
|
|
6978
|
-
append(
|
|
6979
|
-
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);
|
|
6980
7046
|
|
|
6981
7047
|
if (!mounted) {
|
|
6982
7048
|
dispose = [listen(input, "keyup",
|
|
6983
7049
|
/*onKeyUp*/
|
|
6984
|
-
ctx[
|
|
7050
|
+
ctx[22]), listen(input, "change",
|
|
6985
7051
|
/*onKeyUp*/
|
|
6986
|
-
ctx[
|
|
7052
|
+
ctx[22])];
|
|
6987
7053
|
mounted = true;
|
|
6988
7054
|
}
|
|
6989
7055
|
},
|
|
6990
7056
|
|
|
6991
7057
|
p(ctx, [dirty]) {
|
|
6992
7058
|
if (
|
|
6993
|
-
/*
|
|
6994
|
-
ctx[
|
|
7059
|
+
/*prefix*/
|
|
7060
|
+
ctx[13]) {
|
|
6995
7061
|
if (if_block0) {
|
|
6996
7062
|
if_block0.p(ctx, dirty);
|
|
6997
7063
|
} else {
|
|
6998
|
-
if_block0 =
|
|
7064
|
+
if_block0 = create_if_block_7(ctx);
|
|
6999
7065
|
if_block0.c();
|
|
7000
7066
|
if_block0.m(div0, t0);
|
|
7001
7067
|
}
|
|
@@ -7004,6 +7070,21 @@ function create_fragment$j(ctx) {
|
|
|
7004
7070
|
if_block0 = null;
|
|
7005
7071
|
}
|
|
7006
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
|
+
|
|
7007
7088
|
if (dirty &
|
|
7008
7089
|
/*variant*/
|
|
7009
7090
|
64 && input_class_value !== (input_class_value = `input--${
|
|
@@ -7022,18 +7103,18 @@ function create_fragment$j(ctx) {
|
|
|
7022
7103
|
|
|
7023
7104
|
if (dirty &
|
|
7024
7105
|
/*isReadonly*/
|
|
7025
|
-
|
|
7106
|
+
1048576) {
|
|
7026
7107
|
input.readOnly =
|
|
7027
7108
|
/*isReadonly*/
|
|
7028
|
-
ctx[
|
|
7109
|
+
ctx[20];
|
|
7029
7110
|
}
|
|
7030
7111
|
|
|
7031
7112
|
if (dirty &
|
|
7032
7113
|
/*isDisabled*/
|
|
7033
|
-
|
|
7114
|
+
262144) {
|
|
7034
7115
|
input.disabled =
|
|
7035
7116
|
/*isDisabled*/
|
|
7036
|
-
ctx[
|
|
7117
|
+
ctx[18];
|
|
7037
7118
|
}
|
|
7038
7119
|
|
|
7039
7120
|
if (dirty &
|
|
@@ -7116,43 +7197,58 @@ function create_fragment$j(ctx) {
|
|
|
7116
7197
|
/*trailingicon*/
|
|
7117
7198
|
ctx[5] && !
|
|
7118
7199
|
/*handlesTrailingIconClick*/
|
|
7119
|
-
ctx[
|
|
7120
|
-
if (
|
|
7121
|
-
|
|
7200
|
+
ctx[21]) {
|
|
7201
|
+
if (if_block2) {
|
|
7202
|
+
if_block2.p(ctx, dirty);
|
|
7122
7203
|
} else {
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
|
-
|
|
7204
|
+
if_block2 = create_if_block_5(ctx);
|
|
7205
|
+
if_block2.c();
|
|
7206
|
+
if_block2.m(div0, t3);
|
|
7126
7207
|
}
|
|
7127
|
-
} else if (
|
|
7128
|
-
|
|
7129
|
-
|
|
7208
|
+
} else if (if_block2) {
|
|
7209
|
+
if_block2.d(1);
|
|
7210
|
+
if_block2 = null;
|
|
7130
7211
|
}
|
|
7131
7212
|
|
|
7132
7213
|
if (
|
|
7133
7214
|
/*trailingicon*/
|
|
7134
7215
|
ctx[5] &&
|
|
7135
7216
|
/*handlesTrailingIconClick*/
|
|
7136
|
-
ctx[
|
|
7137
|
-
if (
|
|
7138
|
-
|
|
7217
|
+
ctx[21]) {
|
|
7218
|
+
if (if_block3) {
|
|
7219
|
+
if_block3.p(ctx, dirty);
|
|
7139
7220
|
} else {
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
|
|
7221
|
+
if_block3 = create_if_block_4$1(ctx);
|
|
7222
|
+
if_block3.c();
|
|
7223
|
+
if_block3.m(div0, t4);
|
|
7143
7224
|
}
|
|
7144
|
-
} else if (
|
|
7145
|
-
|
|
7146
|
-
|
|
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;
|
|
7147
7243
|
}
|
|
7148
7244
|
|
|
7149
7245
|
if (dirty &
|
|
7150
7246
|
/*isDisabled, variant, type*/
|
|
7151
|
-
|
|
7247
|
+
262210 && div0_class_value !== (div0_class_value = `
|
|
7152
7248
|
goa-input
|
|
7153
7249
|
${
|
|
7154
7250
|
/*isDisabled*/
|
|
7155
|
-
ctx[
|
|
7251
|
+
ctx[18] ? "goa-input--disabled" : ""}
|
|
7156
7252
|
variant--${
|
|
7157
7253
|
/*variant*/
|
|
7158
7254
|
ctx[6]}
|
|
@@ -7165,25 +7261,25 @@ function create_fragment$j(ctx) {
|
|
|
7165
7261
|
|
|
7166
7262
|
if (dirty &
|
|
7167
7263
|
/*isDisabled, variant, type, isError*/
|
|
7168
|
-
|
|
7264
|
+
786498) {
|
|
7169
7265
|
toggle_class(div0, "error",
|
|
7170
7266
|
/*isError*/
|
|
7171
|
-
ctx[
|
|
7267
|
+
ctx[19]);
|
|
7172
7268
|
}
|
|
7173
7269
|
|
|
7174
7270
|
if (
|
|
7175
7271
|
/*showCounter*/
|
|
7176
|
-
ctx[
|
|
7177
|
-
if (
|
|
7178
|
-
|
|
7272
|
+
ctx[17]) {
|
|
7273
|
+
if (if_block5) {
|
|
7274
|
+
if_block5.p(ctx, dirty);
|
|
7179
7275
|
} else {
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
|
|
7276
|
+
if_block5 = create_if_block$a(ctx);
|
|
7277
|
+
if_block5.c();
|
|
7278
|
+
if_block5.m(div1, null);
|
|
7183
7279
|
}
|
|
7184
|
-
} else if (
|
|
7185
|
-
|
|
7186
|
-
|
|
7280
|
+
} else if (if_block5) {
|
|
7281
|
+
if_block5.d(1);
|
|
7282
|
+
if_block5 = null;
|
|
7187
7283
|
}
|
|
7188
7284
|
|
|
7189
7285
|
if (dirty &
|
|
@@ -7203,12 +7299,14 @@ function create_fragment$j(ctx) {
|
|
|
7203
7299
|
d(detaching) {
|
|
7204
7300
|
if (detaching) detach(div1);
|
|
7205
7301
|
if (if_block0) if_block0.d();
|
|
7302
|
+
if (if_block1) if_block1.d();
|
|
7206
7303
|
/*input_binding*/
|
|
7207
7304
|
|
|
7208
|
-
ctx[
|
|
7209
|
-
if (if_block1) if_block1.d();
|
|
7305
|
+
ctx[30](null);
|
|
7210
7306
|
if (if_block2) if_block2.d();
|
|
7211
7307
|
if (if_block3) if_block3.d();
|
|
7308
|
+
if (if_block4) if_block4.d();
|
|
7309
|
+
if (if_block5) if_block5.d();
|
|
7212
7310
|
mounted = false;
|
|
7213
7311
|
run_all(dispose);
|
|
7214
7312
|
}
|
|
@@ -7283,6 +7381,12 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
7283
7381
|
let {
|
|
7284
7382
|
step = null
|
|
7285
7383
|
} = $$props;
|
|
7384
|
+
let {
|
|
7385
|
+
prefix = ""
|
|
7386
|
+
} = $$props;
|
|
7387
|
+
let {
|
|
7388
|
+
suffix = ""
|
|
7389
|
+
} = $$props;
|
|
7286
7390
|
let {
|
|
7287
7391
|
showcounter = "false"
|
|
7288
7392
|
} = $$props;
|
|
@@ -7307,7 +7411,7 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
7307
7411
|
function input_binding($$value) {
|
|
7308
7412
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
7309
7413
|
inputEl = $$value;
|
|
7310
|
-
$$invalidate(
|
|
7414
|
+
$$invalidate(16, inputEl);
|
|
7311
7415
|
});
|
|
7312
7416
|
}
|
|
7313
7417
|
|
|
@@ -7319,61 +7423,63 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
7319
7423
|
if ('leadingicon' in $$props) $$invalidate(4, leadingicon = $$props.leadingicon);
|
|
7320
7424
|
if ('trailingicon' in $$props) $$invalidate(5, trailingicon = $$props.trailingicon);
|
|
7321
7425
|
if ('variant' in $$props) $$invalidate(6, variant = $$props.variant);
|
|
7322
|
-
if ('disabled' in $$props) $$invalidate(
|
|
7323
|
-
if ('handletrailingiconclick' in $$props) $$invalidate(
|
|
7324
|
-
if ('focused' in $$props) $$invalidate(
|
|
7325
|
-
if ('readonly' in $$props) $$invalidate(
|
|
7326
|
-
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);
|
|
7327
7431
|
if ('testid' in $$props) $$invalidate(7, testid = $$props.testid);
|
|
7328
7432
|
if ('width' in $$props) $$invalidate(8, width = $$props.width);
|
|
7329
7433
|
if ('arialabel' in $$props) $$invalidate(9, arialabel = $$props.arialabel);
|
|
7330
7434
|
if ('min' in $$props) $$invalidate(10, min = $$props.min);
|
|
7331
7435
|
if ('max' in $$props) $$invalidate(11, max = $$props.max);
|
|
7332
7436
|
if ('step' in $$props) $$invalidate(12, step = $$props.step);
|
|
7333
|
-
if ('
|
|
7334
|
-
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);
|
|
7335
7441
|
};
|
|
7336
7442
|
|
|
7337
7443
|
$$self.$$.update = () => {
|
|
7338
7444
|
if ($$self.$$.dirty &
|
|
7339
7445
|
/*handletrailingiconclick*/
|
|
7340
|
-
|
|
7341
|
-
$$invalidate(
|
|
7446
|
+
16777216) {
|
|
7447
|
+
$$invalidate(21, handlesTrailingIconClick = toBoolean(handletrailingiconclick));
|
|
7342
7448
|
}
|
|
7343
7449
|
|
|
7344
7450
|
if ($$self.$$.dirty &
|
|
7345
7451
|
/*focused*/
|
|
7346
|
-
|
|
7347
|
-
$$invalidate(
|
|
7452
|
+
33554432) {
|
|
7453
|
+
$$invalidate(29, isFocused = toBoolean(focused));
|
|
7348
7454
|
}
|
|
7349
7455
|
|
|
7350
7456
|
if ($$self.$$.dirty &
|
|
7351
7457
|
/*readonly*/
|
|
7352
|
-
|
|
7353
|
-
$$invalidate(
|
|
7458
|
+
67108864) {
|
|
7459
|
+
$$invalidate(20, isReadonly = toBoolean(readonly));
|
|
7354
7460
|
}
|
|
7355
7461
|
|
|
7356
7462
|
if ($$self.$$.dirty &
|
|
7357
7463
|
/*error*/
|
|
7358
|
-
|
|
7359
|
-
$$invalidate(
|
|
7464
|
+
134217728) {
|
|
7465
|
+
$$invalidate(19, isError = toBoolean(error));
|
|
7360
7466
|
}
|
|
7361
7467
|
|
|
7362
7468
|
if ($$self.$$.dirty &
|
|
7363
7469
|
/*disabled*/
|
|
7364
|
-
|
|
7365
|
-
$$invalidate(
|
|
7470
|
+
8388608) {
|
|
7471
|
+
$$invalidate(18, isDisabled = toBoolean(disabled));
|
|
7366
7472
|
}
|
|
7367
7473
|
|
|
7368
7474
|
if ($$self.$$.dirty &
|
|
7369
7475
|
/*showcounter*/
|
|
7370
|
-
|
|
7371
|
-
$$invalidate(
|
|
7476
|
+
268435456) {
|
|
7477
|
+
$$invalidate(17, showCounter = toBoolean(showcounter));
|
|
7372
7478
|
}
|
|
7373
7479
|
|
|
7374
7480
|
if ($$self.$$.dirty &
|
|
7375
7481
|
/*isFocused, inputEl*/
|
|
7376
|
-
|
|
7482
|
+
536936448) {
|
|
7377
7483
|
if (isFocused && inputEl) {
|
|
7378
7484
|
setTimeout(() => inputEl.focus(), 1);
|
|
7379
7485
|
}
|
|
@@ -7381,7 +7487,7 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
7381
7487
|
|
|
7382
7488
|
if ($$self.$$.dirty &
|
|
7383
7489
|
/*inputEl, type*/
|
|
7384
|
-
|
|
7490
|
+
65538) {
|
|
7385
7491
|
if (inputEl && type === "search") {
|
|
7386
7492
|
inputEl.addEventListener("search", e => {
|
|
7387
7493
|
onKeyUp(e);
|
|
@@ -7390,13 +7496,13 @@ function instance$h($$self, $$props, $$invalidate) {
|
|
|
7390
7496
|
}
|
|
7391
7497
|
};
|
|
7392
7498
|
|
|
7393
|
-
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];
|
|
7394
7500
|
}
|
|
7395
7501
|
|
|
7396
7502
|
class Input extends SvelteElement {
|
|
7397
7503
|
constructor(options) {
|
|
7398
7504
|
super();
|
|
7399
|
-
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>')
|
|
7400
7506
|
center center no-repeat}</style>`;
|
|
7401
7507
|
init(this, {
|
|
7402
7508
|
target: this.shadowRoot,
|
|
@@ -7410,19 +7516,21 @@ class Input extends SvelteElement {
|
|
|
7410
7516
|
leadingicon: 4,
|
|
7411
7517
|
trailingicon: 5,
|
|
7412
7518
|
variant: 6,
|
|
7413
|
-
disabled:
|
|
7414
|
-
handletrailingiconclick:
|
|
7415
|
-
focused:
|
|
7416
|
-
readonly:
|
|
7417
|
-
error:
|
|
7519
|
+
disabled: 23,
|
|
7520
|
+
handletrailingiconclick: 24,
|
|
7521
|
+
focused: 25,
|
|
7522
|
+
readonly: 26,
|
|
7523
|
+
error: 27,
|
|
7418
7524
|
testid: 7,
|
|
7419
7525
|
width: 8,
|
|
7420
7526
|
arialabel: 9,
|
|
7421
7527
|
min: 10,
|
|
7422
7528
|
max: 11,
|
|
7423
7529
|
step: 12,
|
|
7424
|
-
|
|
7425
|
-
|
|
7530
|
+
prefix: 13,
|
|
7531
|
+
suffix: 14,
|
|
7532
|
+
showcounter: 28,
|
|
7533
|
+
maxcharcount: 15
|
|
7426
7534
|
}, null);
|
|
7427
7535
|
|
|
7428
7536
|
if (options) {
|
|
@@ -7438,7 +7546,7 @@ class Input extends SvelteElement {
|
|
|
7438
7546
|
}
|
|
7439
7547
|
|
|
7440
7548
|
static get observedAttributes() {
|
|
7441
|
-
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"];
|
|
7442
7550
|
}
|
|
7443
7551
|
|
|
7444
7552
|
get type() {
|
|
@@ -7519,7 +7627,7 @@ class Input extends SvelteElement {
|
|
|
7519
7627
|
}
|
|
7520
7628
|
|
|
7521
7629
|
get disabled() {
|
|
7522
|
-
return this.$$.ctx[
|
|
7630
|
+
return this.$$.ctx[23];
|
|
7523
7631
|
}
|
|
7524
7632
|
|
|
7525
7633
|
set disabled(disabled) {
|
|
@@ -7530,7 +7638,7 @@ class Input extends SvelteElement {
|
|
|
7530
7638
|
}
|
|
7531
7639
|
|
|
7532
7640
|
get handletrailingiconclick() {
|
|
7533
|
-
return this.$$.ctx[
|
|
7641
|
+
return this.$$.ctx[24];
|
|
7534
7642
|
}
|
|
7535
7643
|
|
|
7536
7644
|
set handletrailingiconclick(handletrailingiconclick) {
|
|
@@ -7541,7 +7649,7 @@ class Input extends SvelteElement {
|
|
|
7541
7649
|
}
|
|
7542
7650
|
|
|
7543
7651
|
get focused() {
|
|
7544
|
-
return this.$$.ctx[
|
|
7652
|
+
return this.$$.ctx[25];
|
|
7545
7653
|
}
|
|
7546
7654
|
|
|
7547
7655
|
set focused(focused) {
|
|
@@ -7552,7 +7660,7 @@ class Input extends SvelteElement {
|
|
|
7552
7660
|
}
|
|
7553
7661
|
|
|
7554
7662
|
get readonly() {
|
|
7555
|
-
return this.$$.ctx[
|
|
7663
|
+
return this.$$.ctx[26];
|
|
7556
7664
|
}
|
|
7557
7665
|
|
|
7558
7666
|
set readonly(readonly) {
|
|
@@ -7563,7 +7671,7 @@ class Input extends SvelteElement {
|
|
|
7563
7671
|
}
|
|
7564
7672
|
|
|
7565
7673
|
get error() {
|
|
7566
|
-
return this.$$.ctx[
|
|
7674
|
+
return this.$$.ctx[27];
|
|
7567
7675
|
}
|
|
7568
7676
|
|
|
7569
7677
|
set error(error) {
|
|
@@ -7639,8 +7747,30 @@ class Input extends SvelteElement {
|
|
|
7639
7747
|
flush();
|
|
7640
7748
|
}
|
|
7641
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
|
+
|
|
7642
7772
|
get showcounter() {
|
|
7643
|
-
return this.$$.ctx[
|
|
7773
|
+
return this.$$.ctx[28];
|
|
7644
7774
|
}
|
|
7645
7775
|
|
|
7646
7776
|
set showcounter(showcounter) {
|
|
@@ -7651,7 +7781,7 @@ class Input extends SvelteElement {
|
|
|
7651
7781
|
}
|
|
7652
7782
|
|
|
7653
7783
|
get maxcharcount() {
|
|
7654
|
-
return this.$$.ctx[
|
|
7784
|
+
return this.$$.ctx[15];
|
|
7655
7785
|
}
|
|
7656
7786
|
|
|
7657
7787
|
set maxcharcount(maxcharcount) {
|
|
@@ -9192,7 +9322,7 @@ function get_each_context$3(ctx, list, i) {
|
|
|
9192
9322
|
const child_ctx = ctx.slice();
|
|
9193
9323
|
child_ctx[14] = list[i];
|
|
9194
9324
|
return child_ctx;
|
|
9195
|
-
} // (
|
|
9325
|
+
} // (63:2) {#each options as option (option.value) }
|
|
9196
9326
|
|
|
9197
9327
|
|
|
9198
9328
|
function create_each_block$3(key_1, ctx) {
|
|
@@ -9487,20 +9617,29 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
9487
9617
|
let ctx;
|
|
9488
9618
|
let el;
|
|
9489
9619
|
onMount(() => {
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9495
|
-
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
|
|
9499
|
-
|
|
9500
|
-
|
|
9620
|
+
const maxAttempts = 10;
|
|
9621
|
+
let attempts = 0;
|
|
9622
|
+
const fn = setInterval(async () => {
|
|
9623
|
+
attempts++;
|
|
9624
|
+
|
|
9625
|
+
if (name) {
|
|
9626
|
+
ctx = createContext(name);
|
|
9627
|
+
ctx.subscribe(msg => {
|
|
9628
|
+
switch (msg === null || msg === void 0 ? void 0 : msg.type) {
|
|
9629
|
+
case BIND:
|
|
9630
|
+
{
|
|
9631
|
+
$$invalidate(4, options = [...options, msg]);
|
|
9632
|
+
}
|
|
9501
9633
|
}
|
|
9634
|
+
});
|
|
9635
|
+
clearInterval(fn);
|
|
9502
9636
|
}
|
|
9503
|
-
|
|
9637
|
+
|
|
9638
|
+
if (attempts > maxAttempts) {
|
|
9639
|
+
console.error("goa-radio: missing the required `name` attribute. It must match the children's name attribute.");
|
|
9640
|
+
clearInterval(fn);
|
|
9641
|
+
}
|
|
9642
|
+
}, 10);
|
|
9504
9643
|
});
|
|
9505
9644
|
|
|
9506
9645
|
function onChange(newValue) {
|
|
@@ -9683,18 +9822,32 @@ function instance$c($$self, $$props, $$invalidate) {
|
|
|
9683
9822
|
name
|
|
9684
9823
|
} = $$props;
|
|
9685
9824
|
let ctx;
|
|
9686
|
-
onMount(
|
|
9687
|
-
|
|
9688
|
-
|
|
9689
|
-
|
|
9690
|
-
|
|
9825
|
+
onMount(() => {
|
|
9826
|
+
const maxAttempts = 10;
|
|
9827
|
+
let attempts = 0;
|
|
9828
|
+
const fn = setInterval(() => {
|
|
9829
|
+
attempts++;
|
|
9691
9830
|
|
|
9692
|
-
|
|
9693
|
-
|
|
9694
|
-
|
|
9695
|
-
|
|
9696
|
-
|
|
9697
|
-
|
|
9831
|
+
if (name) {
|
|
9832
|
+
ctx = getContext(name);
|
|
9833
|
+
|
|
9834
|
+
if (!ctx) {
|
|
9835
|
+
return;
|
|
9836
|
+
}
|
|
9837
|
+
|
|
9838
|
+
ctx.notify({
|
|
9839
|
+
type: BIND,
|
|
9840
|
+
value,
|
|
9841
|
+
label
|
|
9842
|
+
});
|
|
9843
|
+
clearInterval(fn);
|
|
9844
|
+
}
|
|
9845
|
+
|
|
9846
|
+
if (attempts > maxAttempts) {
|
|
9847
|
+
console.error("goa-radio-item: missing the required `name` attribute. It must match the parent's name attribute.");
|
|
9848
|
+
clearInterval(fn);
|
|
9849
|
+
}
|
|
9850
|
+
}, 10);
|
|
9698
9851
|
});
|
|
9699
9852
|
|
|
9700
9853
|
$$self.$$set = $$props => {
|
|
@@ -9956,7 +10109,7 @@ function create_if_block_3(ctx) {
|
|
|
9956
10109
|
t0 = space();
|
|
9957
10110
|
div1 = element("div");
|
|
9958
10111
|
div1.innerHTML = `An official site of the <a href="https://www.alberta.ca/index.aspx">Alberta Government</a>`;
|
|
9959
|
-
attr(div0, "class", "service-
|
|
10112
|
+
attr(div0, "class", "service-type service-type--live");
|
|
9960
10113
|
attr(div1, "data-testid", "type");
|
|
9961
10114
|
attr(div1, "class", "site-text");
|
|
9962
10115
|
},
|
|
@@ -10004,7 +10157,7 @@ function create_if_block_1$3(ctx) {
|
|
|
10004
10157
|
t4 = text(" service\n ");
|
|
10005
10158
|
if (if_block) if_block.c();
|
|
10006
10159
|
attr(div0, "data-testid", "type");
|
|
10007
|
-
attr(div0, "class", div0_class_value = "service-
|
|
10160
|
+
attr(div0, "class", div0_class_value = "service-type service-type--" +
|
|
10008
10161
|
/*type*/
|
|
10009
10162
|
ctx[0].toLowerCase());
|
|
10010
10163
|
attr(a, "href", "https://www.alberta.ca/index.aspx");
|
|
@@ -10032,7 +10185,7 @@ function create_if_block_1$3(ctx) {
|
|
|
10032
10185
|
|
|
10033
10186
|
if (dirty &
|
|
10034
10187
|
/*type*/
|
|
10035
|
-
1 && div0_class_value !== (div0_class_value = "service-
|
|
10188
|
+
1 && div0_class_value !== (div0_class_value = "service-type service-type--" +
|
|
10036
10189
|
/*type*/
|
|
10037
10190
|
ctx[0].toLowerCase())) {
|
|
10038
10191
|
attr(div0, "class", div0_class_value);
|
|
@@ -13860,6 +14013,8 @@ const GoAInput = ({
|
|
|
13860
14013
|
min,
|
|
13861
14014
|
max,
|
|
13862
14015
|
step,
|
|
14016
|
+
prefix,
|
|
14017
|
+
suffix,
|
|
13863
14018
|
onTrailingIconClick,
|
|
13864
14019
|
onChange
|
|
13865
14020
|
}) => {
|
|
@@ -13909,6 +14064,8 @@ const GoAInput = ({
|
|
|
13909
14064
|
min: min,
|
|
13910
14065
|
max: max,
|
|
13911
14066
|
step: step,
|
|
14067
|
+
prefix: prefix,
|
|
14068
|
+
suffix: suffix,
|
|
13912
14069
|
showcounter: showCounter,
|
|
13913
14070
|
maxcharcount: maxCharCount,
|
|
13914
14071
|
handletrailingiconclick: !!onTrailingIconClick
|
|
@@ -14078,7 +14235,6 @@ var css_248z$1 = "goa-button + goa-button {\n margin-top: 1.5rem;\n}\n\n/* TODO
|
|
|
14078
14235
|
styleInject(css_248z$1);
|
|
14079
14236
|
|
|
14080
14237
|
const GoAButton = ({
|
|
14081
|
-
title,
|
|
14082
14238
|
disabled: _disabled = false,
|
|
14083
14239
|
type: _type = 'primary',
|
|
14084
14240
|
size,
|
|
@@ -14112,7 +14268,6 @@ const GoAButton = ({
|
|
|
14112
14268
|
size: size,
|
|
14113
14269
|
variant: variant,
|
|
14114
14270
|
disabled: _disabled,
|
|
14115
|
-
title: title,
|
|
14116
14271
|
leadingicon: leadingIcon,
|
|
14117
14272
|
trailingicon: trailingIcon
|
|
14118
14273
|
}, {
|