@abgov/web-components 1.12.2 → 1.13.0
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/html.html-data.json +1 -1
- package/index.css +1 -1
- package/package.json +1 -1
- package/web-components.es.js +451 -316
- package/web-components.umd.js +102 -102
package/web-components.es.js
CHANGED
|
@@ -1377,7 +1377,7 @@ customElements.define("goa-accordion", Accordion);
|
|
|
1377
1377
|
|
|
1378
1378
|
const { window: window_1$2 } = globals;
|
|
1379
1379
|
|
|
1380
|
-
function create_else_block$
|
|
1380
|
+
function create_else_block$d(ctx) {
|
|
1381
1381
|
let div;
|
|
1382
1382
|
let img0;
|
|
1383
1383
|
let img0_src_value;
|
|
@@ -1717,7 +1717,7 @@ function create_if_block_1$h(ctx) {
|
|
|
1717
1717
|
}
|
|
1718
1718
|
|
|
1719
1719
|
// (154:4) {#if _showMenu && _mobile || _desktop}
|
|
1720
|
-
function create_if_block$
|
|
1720
|
+
function create_if_block$t(ctx) {
|
|
1721
1721
|
let div;
|
|
1722
1722
|
|
|
1723
1723
|
return {
|
|
@@ -1753,7 +1753,7 @@ function create_fragment$X(ctx) {
|
|
|
1753
1753
|
|
|
1754
1754
|
function select_block_type(ctx, dirty) {
|
|
1755
1755
|
if (/*url*/ ctx[1]) return create_if_block_5$1;
|
|
1756
|
-
return create_else_block$
|
|
1756
|
+
return create_else_block$d;
|
|
1757
1757
|
}
|
|
1758
1758
|
|
|
1759
1759
|
let current_block_type = select_block_type(ctx);
|
|
@@ -1761,7 +1761,7 @@ function create_fragment$X(ctx) {
|
|
|
1761
1761
|
let if_block1 = /*_showToggleMenu*/ ctx[7] && /*_mobile*/ ctx[10] && create_if_block_4$4(ctx);
|
|
1762
1762
|
let if_block2 = /*_showToggleMenu*/ ctx[7] && /*_tablet*/ ctx[9] && create_if_block_2$c(ctx);
|
|
1763
1763
|
let if_block3 = !/*_showMenu*/ ctx[8] && (/*_mobile*/ ctx[10] || /*_tablet*/ ctx[9]) && create_if_block_1$h(ctx);
|
|
1764
|
-
let if_block4 = (/*_showMenu*/ ctx[8] && /*_mobile*/ ctx[10] || /*_desktop*/ ctx[5]) && create_if_block$
|
|
1764
|
+
let if_block4 = (/*_showMenu*/ ctx[8] && /*_mobile*/ ctx[10] || /*_desktop*/ ctx[5]) && create_if_block$t(ctx);
|
|
1765
1765
|
|
|
1766
1766
|
return {
|
|
1767
1767
|
c() {
|
|
@@ -1857,7 +1857,7 @@ function create_fragment$X(ctx) {
|
|
|
1857
1857
|
if (if_block4) {
|
|
1858
1858
|
if_block4.p(ctx, dirty);
|
|
1859
1859
|
} else {
|
|
1860
|
-
if_block4 = create_if_block$
|
|
1860
|
+
if_block4 = create_if_block$t(ctx);
|
|
1861
1861
|
if_block4.c();
|
|
1862
1862
|
if_block4.m(div0, null);
|
|
1863
1863
|
}
|
|
@@ -2134,7 +2134,7 @@ customElements.define("goa-app-header", AppHeader);
|
|
|
2134
2134
|
|
|
2135
2135
|
/* libs/web-components/src/components/badge/Badge.svelte generated by Svelte v3.59.2 */
|
|
2136
2136
|
|
|
2137
|
-
function create_else_block$
|
|
2137
|
+
function create_else_block$c(ctx) {
|
|
2138
2138
|
let div;
|
|
2139
2139
|
|
|
2140
2140
|
return {
|
|
@@ -2190,7 +2190,7 @@ function create_if_block_1$g(ctx) {
|
|
|
2190
2190
|
}
|
|
2191
2191
|
|
|
2192
2192
|
// (60:2) {#if content}
|
|
2193
|
-
function create_if_block$
|
|
2193
|
+
function create_if_block$s(ctx) {
|
|
2194
2194
|
let div;
|
|
2195
2195
|
let t;
|
|
2196
2196
|
|
|
@@ -2221,12 +2221,12 @@ function create_fragment$W(ctx) {
|
|
|
2221
2221
|
|
|
2222
2222
|
function select_block_type(ctx, dirty) {
|
|
2223
2223
|
if (/*showIcon*/ ctx[8]) return create_if_block_1$g;
|
|
2224
|
-
return create_else_block$
|
|
2224
|
+
return create_else_block$c;
|
|
2225
2225
|
}
|
|
2226
2226
|
|
|
2227
2227
|
let current_block_type = select_block_type(ctx);
|
|
2228
2228
|
let if_block0 = current_block_type(ctx);
|
|
2229
|
-
let if_block1 = /*content*/ ctx[2] && create_if_block$
|
|
2229
|
+
let if_block1 = /*content*/ ctx[2] && create_if_block$s(ctx);
|
|
2230
2230
|
|
|
2231
2231
|
return {
|
|
2232
2232
|
c() {
|
|
@@ -2264,7 +2264,7 @@ function create_fragment$W(ctx) {
|
|
|
2264
2264
|
if (if_block1) {
|
|
2265
2265
|
if_block1.p(ctx, dirty);
|
|
2266
2266
|
} else {
|
|
2267
|
-
if_block1 = create_if_block$
|
|
2267
|
+
if_block1 = create_if_block$s(ctx);
|
|
2268
2268
|
if_block1.c();
|
|
2269
2269
|
if_block1.m(div, null);
|
|
2270
2270
|
}
|
|
@@ -2686,7 +2686,7 @@ customElements.define("goa-block", Block);
|
|
|
2686
2686
|
|
|
2687
2687
|
/* libs/web-components/src/components/button/Button.svelte generated by Svelte v3.59.2 */
|
|
2688
2688
|
|
|
2689
|
-
function create_else_block$
|
|
2689
|
+
function create_else_block$b(ctx) {
|
|
2690
2690
|
let t0;
|
|
2691
2691
|
let span;
|
|
2692
2692
|
let t1;
|
|
@@ -2752,7 +2752,7 @@ function create_else_block$a(ctx) {
|
|
|
2752
2752
|
}
|
|
2753
2753
|
|
|
2754
2754
|
// (46:2) {#if type === "start"}
|
|
2755
|
-
function create_if_block$
|
|
2755
|
+
function create_if_block$r(ctx) {
|
|
2756
2756
|
let span;
|
|
2757
2757
|
let t;
|
|
2758
2758
|
let goa_icon;
|
|
@@ -2848,8 +2848,8 @@ function create_fragment$U(ctx) {
|
|
|
2848
2848
|
let dispose;
|
|
2849
2849
|
|
|
2850
2850
|
function select_block_type(ctx, dirty) {
|
|
2851
|
-
if (/*type*/ ctx[0] === "start") return create_if_block$
|
|
2852
|
-
return create_else_block$
|
|
2851
|
+
if (/*type*/ ctx[0] === "start") return create_if_block$r;
|
|
2852
|
+
return create_else_block$b;
|
|
2853
2853
|
}
|
|
2854
2854
|
|
|
2855
2855
|
let current_block_type = select_block_type(ctx);
|
|
@@ -3355,7 +3355,7 @@ customElements.define("goa-button-group", ButtonGroup);
|
|
|
3355
3355
|
|
|
3356
3356
|
/* libs/web-components/src/components/callout/Callout.svelte generated by Svelte v3.59.2 */
|
|
3357
3357
|
|
|
3358
|
-
function create_if_block$
|
|
3358
|
+
function create_if_block$q(ctx) {
|
|
3359
3359
|
let h3;
|
|
3360
3360
|
let t;
|
|
3361
3361
|
|
|
@@ -3396,7 +3396,7 @@ function create_fragment$S(ctx) {
|
|
|
3396
3396
|
let mounted;
|
|
3397
3397
|
let dispose;
|
|
3398
3398
|
add_render_callback(/*onwindowresize*/ ctx[12]);
|
|
3399
|
-
let if_block = /*heading*/ ctx[5] && create_if_block$
|
|
3399
|
+
let if_block = /*heading*/ ctx[5] && create_if_block$q(ctx);
|
|
3400
3400
|
|
|
3401
3401
|
return {
|
|
3402
3402
|
c() {
|
|
@@ -3455,7 +3455,7 @@ function create_fragment$S(ctx) {
|
|
|
3455
3455
|
if (if_block) {
|
|
3456
3456
|
if_block.p(ctx, dirty);
|
|
3457
3457
|
} else {
|
|
3458
|
-
if_block = create_if_block$
|
|
3458
|
+
if_block = create_if_block$q(ctx);
|
|
3459
3459
|
if_block.c();
|
|
3460
3460
|
if_block.m(span1, t1);
|
|
3461
3461
|
}
|
|
@@ -4162,7 +4162,7 @@ function create_if_block_1$e(ctx) {
|
|
|
4162
4162
|
}
|
|
4163
4163
|
|
|
4164
4164
|
// (68:4) {#if isIndeterminate}
|
|
4165
|
-
function create_if_block$
|
|
4165
|
+
function create_if_block$p(ctx) {
|
|
4166
4166
|
let svg;
|
|
4167
4167
|
let rect;
|
|
4168
4168
|
|
|
@@ -4203,7 +4203,7 @@ function create_fragment$M(ctx) {
|
|
|
4203
4203
|
let dispose;
|
|
4204
4204
|
|
|
4205
4205
|
function select_block_type(ctx, dirty) {
|
|
4206
|
-
if (/*isIndeterminate*/ ctx[10]) return create_if_block$
|
|
4206
|
+
if (/*isIndeterminate*/ ctx[10]) return create_if_block$p;
|
|
4207
4207
|
if (/*isChecked*/ ctx[9]) return create_if_block_1$e;
|
|
4208
4208
|
}
|
|
4209
4209
|
|
|
@@ -4633,7 +4633,7 @@ function create_if_block_1$d(ctx) {
|
|
|
4633
4633
|
}
|
|
4634
4634
|
|
|
4635
4635
|
// (54:2) {#if _deletable}
|
|
4636
|
-
function create_if_block$
|
|
4636
|
+
function create_if_block$o(ctx) {
|
|
4637
4637
|
let goa_icon;
|
|
4638
4638
|
let goa_icon_fillcolor_value;
|
|
4639
4639
|
let goa_icon_opacity_value;
|
|
@@ -4686,7 +4686,7 @@ function create_fragment$L(ctx) {
|
|
|
4686
4686
|
let mounted;
|
|
4687
4687
|
let dispose;
|
|
4688
4688
|
let if_block0 = /*leadingicon*/ ctx[4] && create_if_block_1$d(ctx);
|
|
4689
|
-
let if_block1 = /*_deletable*/ ctx[11] && create_if_block$
|
|
4689
|
+
let if_block1 = /*_deletable*/ ctx[11] && create_if_block$o(ctx);
|
|
4690
4690
|
|
|
4691
4691
|
return {
|
|
4692
4692
|
c() {
|
|
@@ -4749,7 +4749,7 @@ function create_fragment$L(ctx) {
|
|
|
4749
4749
|
if (if_block1) {
|
|
4750
4750
|
if_block1.p(ctx, dirty);
|
|
4751
4751
|
} else {
|
|
4752
|
-
if_block1 = create_if_block$
|
|
4752
|
+
if_block1 = create_if_block$o(ctx);
|
|
4753
4753
|
if_block1.c();
|
|
4754
4754
|
if_block1.m(div1, null);
|
|
4755
4755
|
}
|
|
@@ -5117,7 +5117,7 @@ function noscroll(_node, opts) {
|
|
|
5117
5117
|
|
|
5118
5118
|
/* libs/web-components/src/components/circular-progress/CircularProgress.svelte generated by Svelte v3.59.2 */
|
|
5119
5119
|
|
|
5120
|
-
function create_if_block$
|
|
5120
|
+
function create_if_block$n(ctx) {
|
|
5121
5121
|
let current_block_type_index;
|
|
5122
5122
|
let if_block;
|
|
5123
5123
|
let if_block_anchor;
|
|
@@ -5403,7 +5403,7 @@ function create_if_block_2$a(ctx) {
|
|
|
5403
5403
|
function create_fragment$K(ctx) {
|
|
5404
5404
|
let if_block_anchor;
|
|
5405
5405
|
let current;
|
|
5406
|
-
let if_block = /*isVisible*/ ctx[5] && create_if_block$
|
|
5406
|
+
let if_block = /*isVisible*/ ctx[5] && create_if_block$n(ctx);
|
|
5407
5407
|
|
|
5408
5408
|
return {
|
|
5409
5409
|
c() {
|
|
@@ -5425,7 +5425,7 @@ function create_fragment$K(ctx) {
|
|
|
5425
5425
|
transition_in(if_block, 1);
|
|
5426
5426
|
}
|
|
5427
5427
|
} else {
|
|
5428
|
-
if_block = create_if_block$
|
|
5428
|
+
if_block = create_if_block$n(ctx);
|
|
5429
5429
|
if_block.c();
|
|
5430
5430
|
transition_in(if_block, 1);
|
|
5431
5431
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -6228,19 +6228,19 @@ customElements.define("goa-divider", Divider);
|
|
|
6228
6228
|
|
|
6229
6229
|
function get_each_context_1(ctx, list, i) {
|
|
6230
6230
|
const child_ctx = ctx.slice();
|
|
6231
|
-
child_ctx[
|
|
6232
|
-
child_ctx[
|
|
6231
|
+
child_ctx[49] = list[i];
|
|
6232
|
+
child_ctx[53] = i;
|
|
6233
6233
|
return child_ctx;
|
|
6234
6234
|
}
|
|
6235
6235
|
|
|
6236
6236
|
function get_each_context$7(ctx, list, i) {
|
|
6237
6237
|
const child_ctx = ctx.slice();
|
|
6238
|
-
child_ctx[
|
|
6238
|
+
child_ctx[49] = list[i];
|
|
6239
6239
|
return child_ctx;
|
|
6240
6240
|
}
|
|
6241
6241
|
|
|
6242
|
-
// (
|
|
6243
|
-
function create_else_block$
|
|
6242
|
+
// (257:2) {:else}
|
|
6243
|
+
function create_else_block$a(ctx) {
|
|
6244
6244
|
let slot;
|
|
6245
6245
|
let t0;
|
|
6246
6246
|
let goa_popover;
|
|
@@ -6255,8 +6255,8 @@ function create_else_block$9(ctx) {
|
|
|
6255
6255
|
let goa_popover_width_value;
|
|
6256
6256
|
let mounted;
|
|
6257
6257
|
let dispose;
|
|
6258
|
-
let each_value_1 = /*_options*/ ctx[
|
|
6259
|
-
const get_key = ctx => /*index*/ ctx[
|
|
6258
|
+
let each_value_1 = /*_options*/ ctx[13];
|
|
6259
|
+
const get_key = ctx => /*index*/ ctx[53];
|
|
6260
6260
|
|
|
6261
6261
|
for (let i = 0; i < each_value_1.length; i += 1) {
|
|
6262
6262
|
let child_ctx = get_each_context_1(ctx, each_value_1, i);
|
|
@@ -6283,19 +6283,19 @@ function create_else_block$9(ctx) {
|
|
|
6283
6283
|
set_custom_element_data(goa_input, "leadingicon", /*leadingicon*/ ctx[2]);
|
|
6284
6284
|
set_custom_element_data(goa_input, "placeholder", /*placeholder*/ ctx[4]);
|
|
6285
6285
|
set_custom_element_data(goa_input, "aria-controls", "menu");
|
|
6286
|
-
set_custom_element_data(goa_input, "aria-expanded", /*_isMenuVisible*/ ctx[
|
|
6286
|
+
set_custom_element_data(goa_input, "aria-expanded", /*_isMenuVisible*/ ctx[18]);
|
|
6287
6287
|
set_custom_element_data(goa_input, "arialabel", goa_input_arialabel_value = /*arialabel*/ ctx[1] || /*name*/ ctx[0]);
|
|
6288
6288
|
set_custom_element_data(goa_input, "data-testid", goa_input_data_testid_value = `${/*name*/ ctx[0]}-dropdown-input`);
|
|
6289
6289
|
set_custom_element_data(goa_input, "readonly", "");
|
|
6290
6290
|
set_custom_element_data(goa_input, "role", "combobox");
|
|
6291
6291
|
set_custom_element_data(goa_input, "trailingicon", "chevron-down");
|
|
6292
6292
|
set_custom_element_data(goa_input, "type", "text");
|
|
6293
|
-
set_custom_element_data(goa_input, "value", /*_selectedLabel*/ ctx[
|
|
6293
|
+
set_custom_element_data(goa_input, "value", /*_selectedLabel*/ ctx[17]);
|
|
6294
6294
|
set_custom_element_data(goa_input, "width", "100%");
|
|
6295
6295
|
set_custom_element_data(goa_input, "name", /*name*/ ctx[0]);
|
|
6296
6296
|
attr(ul, "id", "menu");
|
|
6297
6297
|
attr(ul, "role", "listbox");
|
|
6298
|
-
attr(ul, "aria-activedescendant", /*_selectedLabel*/ ctx[
|
|
6298
|
+
attr(ul, "aria-activedescendant", /*_selectedLabel*/ ctx[17]);
|
|
6299
6299
|
attr(ul, "data-testid", "dropdown-menu");
|
|
6300
6300
|
attr(ul, "tabindex", "0");
|
|
6301
6301
|
|
|
@@ -6305,9 +6305,10 @@ function create_else_block$9(ctx) {
|
|
|
6305
6305
|
`);
|
|
6306
6306
|
|
|
6307
6307
|
set_custom_element_data(goa_popover, "disabled", /*disabled*/ ctx[6]);
|
|
6308
|
-
set_custom_element_data(goa_popover, "
|
|
6308
|
+
set_custom_element_data(goa_popover, "relative", /*relative*/ ctx[8]);
|
|
6309
|
+
set_custom_element_data(goa_popover, "open", /*_isMenuVisible*/ ctx[18]);
|
|
6309
6310
|
set_custom_element_data(goa_popover, "padded", "false");
|
|
6310
|
-
set_custom_element_data(goa_popover, "width", goa_popover_width_value = /*width*/ ctx[5] || /*_computedWidth*/ ctx[
|
|
6311
|
+
set_custom_element_data(goa_popover, "width", goa_popover_width_value = /*width*/ ctx[5] || /*_computedWidth*/ ctx[20]);
|
|
6311
6312
|
},
|
|
6312
6313
|
m(target, anchor) {
|
|
6313
6314
|
insert(target, slot, anchor);
|
|
@@ -6323,10 +6324,10 @@ function create_else_block$9(ctx) {
|
|
|
6323
6324
|
}
|
|
6324
6325
|
}
|
|
6325
6326
|
|
|
6326
|
-
/*ul_binding*/ ctx[
|
|
6327
|
+
/*ul_binding*/ ctx[33](ul);
|
|
6327
6328
|
|
|
6328
6329
|
if (!mounted) {
|
|
6329
|
-
dispose = listen(goa_input, "click", /*showMenu*/ ctx[
|
|
6330
|
+
dispose = listen(goa_input, "click", /*showMenu*/ ctx[25]);
|
|
6330
6331
|
mounted = true;
|
|
6331
6332
|
}
|
|
6332
6333
|
},
|
|
@@ -6347,8 +6348,8 @@ function create_else_block$9(ctx) {
|
|
|
6347
6348
|
set_custom_element_data(goa_input, "placeholder", /*placeholder*/ ctx[4]);
|
|
6348
6349
|
}
|
|
6349
6350
|
|
|
6350
|
-
if (dirty[0] & /*_isMenuVisible*/
|
|
6351
|
-
set_custom_element_data(goa_input, "aria-expanded", /*_isMenuVisible*/ ctx[
|
|
6351
|
+
if (dirty[0] & /*_isMenuVisible*/ 262144) {
|
|
6352
|
+
set_custom_element_data(goa_input, "aria-expanded", /*_isMenuVisible*/ ctx[18]);
|
|
6352
6353
|
}
|
|
6353
6354
|
|
|
6354
6355
|
if (dirty[0] & /*arialabel, name*/ 3 && goa_input_arialabel_value !== (goa_input_arialabel_value = /*arialabel*/ ctx[1] || /*name*/ ctx[0])) {
|
|
@@ -6359,21 +6360,21 @@ function create_else_block$9(ctx) {
|
|
|
6359
6360
|
set_custom_element_data(goa_input, "data-testid", goa_input_data_testid_value);
|
|
6360
6361
|
}
|
|
6361
6362
|
|
|
6362
|
-
if (dirty[0] & /*_selectedLabel*/
|
|
6363
|
-
set_custom_element_data(goa_input, "value", /*_selectedLabel*/ ctx[
|
|
6363
|
+
if (dirty[0] & /*_selectedLabel*/ 131072) {
|
|
6364
|
+
set_custom_element_data(goa_input, "value", /*_selectedLabel*/ ctx[17]);
|
|
6364
6365
|
}
|
|
6365
6366
|
|
|
6366
6367
|
if (dirty[0] & /*name*/ 1) {
|
|
6367
6368
|
set_custom_element_data(goa_input, "name", /*name*/ ctx[0]);
|
|
6368
6369
|
}
|
|
6369
6370
|
|
|
6370
|
-
if (dirty[0] & /*_options, _values, _highlightedIndex, onSelect*/
|
|
6371
|
-
each_value_1 = /*_options*/ ctx[
|
|
6371
|
+
if (dirty[0] & /*_options, _values, _highlightedIndex, onSelect*/ 67706880) {
|
|
6372
|
+
each_value_1 = /*_options*/ ctx[13];
|
|
6372
6373
|
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value_1, each_1_lookup, ul, destroy_block, create_each_block_1, null, get_each_context_1);
|
|
6373
6374
|
}
|
|
6374
6375
|
|
|
6375
|
-
if (dirty[0] & /*_selectedLabel*/
|
|
6376
|
-
attr(ul, "aria-activedescendant", /*_selectedLabel*/ ctx[
|
|
6376
|
+
if (dirty[0] & /*_selectedLabel*/ 131072) {
|
|
6377
|
+
attr(ul, "aria-activedescendant", /*_selectedLabel*/ ctx[17]);
|
|
6377
6378
|
}
|
|
6378
6379
|
|
|
6379
6380
|
if (dirty[0] & /*maxheight*/ 8 && ul_style_value !== (ul_style_value = `
|
|
@@ -6387,11 +6388,15 @@ function create_else_block$9(ctx) {
|
|
|
6387
6388
|
set_custom_element_data(goa_popover, "disabled", /*disabled*/ ctx[6]);
|
|
6388
6389
|
}
|
|
6389
6390
|
|
|
6390
|
-
if (dirty[0] & /*
|
|
6391
|
-
set_custom_element_data(goa_popover, "
|
|
6391
|
+
if (dirty[0] & /*relative*/ 256) {
|
|
6392
|
+
set_custom_element_data(goa_popover, "relative", /*relative*/ ctx[8]);
|
|
6393
|
+
}
|
|
6394
|
+
|
|
6395
|
+
if (dirty[0] & /*_isMenuVisible*/ 262144) {
|
|
6396
|
+
set_custom_element_data(goa_popover, "open", /*_isMenuVisible*/ ctx[18]);
|
|
6392
6397
|
}
|
|
6393
6398
|
|
|
6394
|
-
if (dirty[0] & /*width, _computedWidth*/
|
|
6399
|
+
if (dirty[0] & /*width, _computedWidth*/ 1048608 && goa_popover_width_value !== (goa_popover_width_value = /*width*/ ctx[5] || /*_computedWidth*/ ctx[20])) {
|
|
6395
6400
|
set_custom_element_data(goa_popover, "width", goa_popover_width_value);
|
|
6396
6401
|
}
|
|
6397
6402
|
},
|
|
@@ -6404,21 +6409,21 @@ function create_else_block$9(ctx) {
|
|
|
6404
6409
|
each_blocks[i].d();
|
|
6405
6410
|
}
|
|
6406
6411
|
|
|
6407
|
-
/*ul_binding*/ ctx[
|
|
6412
|
+
/*ul_binding*/ ctx[33](null);
|
|
6408
6413
|
mounted = false;
|
|
6409
6414
|
dispose();
|
|
6410
6415
|
}
|
|
6411
6416
|
};
|
|
6412
6417
|
}
|
|
6413
6418
|
|
|
6414
|
-
// (
|
|
6415
|
-
function create_if_block$
|
|
6419
|
+
// (238:2) {#if _native}
|
|
6420
|
+
function create_if_block$m(ctx) {
|
|
6416
6421
|
let select;
|
|
6417
6422
|
let slot;
|
|
6418
6423
|
let select_aria_label_value;
|
|
6419
6424
|
let mounted;
|
|
6420
6425
|
let dispose;
|
|
6421
|
-
let each_value = /*_options*/ ctx[
|
|
6426
|
+
let each_value = /*_options*/ ctx[13];
|
|
6422
6427
|
let each_blocks = [];
|
|
6423
6428
|
|
|
6424
6429
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -6434,9 +6439,9 @@ function create_if_block$l(ctx) {
|
|
|
6434
6439
|
each_blocks[i].c();
|
|
6435
6440
|
}
|
|
6436
6441
|
|
|
6437
|
-
select.disabled = /*_disabled*/ ctx[
|
|
6442
|
+
select.disabled = /*_disabled*/ ctx[23];
|
|
6438
6443
|
attr(select, "aria-label", select_aria_label_value = /*arialabel*/ ctx[1] || /*name*/ ctx[0]);
|
|
6439
|
-
toggle_class(select, "error", /*_error*/ ctx[
|
|
6444
|
+
toggle_class(select, "error", /*_error*/ ctx[24]);
|
|
6440
6445
|
},
|
|
6441
6446
|
m(target, anchor) {
|
|
6442
6447
|
insert(target, select, anchor);
|
|
@@ -6448,16 +6453,16 @@ function create_if_block$l(ctx) {
|
|
|
6448
6453
|
}
|
|
6449
6454
|
}
|
|
6450
6455
|
|
|
6451
|
-
/*select_binding*/ ctx[
|
|
6456
|
+
/*select_binding*/ ctx[31](select);
|
|
6452
6457
|
|
|
6453
6458
|
if (!mounted) {
|
|
6454
|
-
dispose = listen(select, "change", /*onNativeSelect*/ ctx[
|
|
6459
|
+
dispose = listen(select, "change", /*onNativeSelect*/ ctx[27]);
|
|
6455
6460
|
mounted = true;
|
|
6456
6461
|
}
|
|
6457
6462
|
},
|
|
6458
6463
|
p(ctx, dirty) {
|
|
6459
|
-
if (dirty[0] & /*_options*/
|
|
6460
|
-
each_value = /*_options*/ ctx[
|
|
6464
|
+
if (dirty[0] & /*_options*/ 8192) {
|
|
6465
|
+
each_value = /*_options*/ ctx[13];
|
|
6461
6466
|
let i;
|
|
6462
6467
|
|
|
6463
6468
|
for (i = 0; i < each_value.length; i += 1) {
|
|
@@ -6479,32 +6484,32 @@ function create_if_block$l(ctx) {
|
|
|
6479
6484
|
each_blocks.length = each_value.length;
|
|
6480
6485
|
}
|
|
6481
6486
|
|
|
6482
|
-
if (dirty[0] & /*_disabled*/
|
|
6483
|
-
select.disabled = /*_disabled*/ ctx[
|
|
6487
|
+
if (dirty[0] & /*_disabled*/ 8388608) {
|
|
6488
|
+
select.disabled = /*_disabled*/ ctx[23];
|
|
6484
6489
|
}
|
|
6485
6490
|
|
|
6486
6491
|
if (dirty[0] & /*arialabel, name*/ 3 && select_aria_label_value !== (select_aria_label_value = /*arialabel*/ ctx[1] || /*name*/ ctx[0])) {
|
|
6487
6492
|
attr(select, "aria-label", select_aria_label_value);
|
|
6488
6493
|
}
|
|
6489
6494
|
|
|
6490
|
-
if (dirty[0] & /*_error*/
|
|
6491
|
-
toggle_class(select, "error", /*_error*/ ctx[
|
|
6495
|
+
if (dirty[0] & /*_error*/ 16777216) {
|
|
6496
|
+
toggle_class(select, "error", /*_error*/ ctx[24]);
|
|
6492
6497
|
}
|
|
6493
6498
|
},
|
|
6494
6499
|
d(detaching) {
|
|
6495
6500
|
if (detaching) detach(select);
|
|
6496
6501
|
destroy_each(each_blocks, detaching);
|
|
6497
|
-
/*select_binding*/ ctx[
|
|
6502
|
+
/*select_binding*/ ctx[31](null);
|
|
6498
6503
|
mounted = false;
|
|
6499
6504
|
dispose();
|
|
6500
6505
|
}
|
|
6501
6506
|
};
|
|
6502
6507
|
}
|
|
6503
6508
|
|
|
6504
|
-
// (
|
|
6509
|
+
// (296:8) {#each _options as option, index (index)}
|
|
6505
6510
|
function create_each_block_1(key_1, ctx) {
|
|
6506
6511
|
let li;
|
|
6507
|
-
let t0_value = (/*option*/ ctx[
|
|
6512
|
+
let t0_value = (/*option*/ ctx[49].label || /*option*/ ctx[49].value) + "";
|
|
6508
6513
|
let t0;
|
|
6509
6514
|
let t1;
|
|
6510
6515
|
let li_id_value;
|
|
@@ -6517,7 +6522,7 @@ function create_each_block_1(key_1, ctx) {
|
|
|
6517
6522
|
let dispose;
|
|
6518
6523
|
|
|
6519
6524
|
function click_handler() {
|
|
6520
|
-
return /*click_handler*/ ctx[
|
|
6525
|
+
return /*click_handler*/ ctx[32](/*option*/ ctx[49]);
|
|
6521
6526
|
}
|
|
6522
6527
|
|
|
6523
6528
|
return {
|
|
@@ -6527,22 +6532,22 @@ function create_each_block_1(key_1, ctx) {
|
|
|
6527
6532
|
li = element("li");
|
|
6528
6533
|
t0 = text(t0_value);
|
|
6529
6534
|
t1 = space();
|
|
6530
|
-
attr(li, "id", li_id_value = /*option*/ ctx[
|
|
6535
|
+
attr(li, "id", li_id_value = /*option*/ ctx[49].label);
|
|
6531
6536
|
attr(li, "role", "option");
|
|
6532
|
-
attr(li, "aria-label", li_aria_label_value = /*option*/ ctx[
|
|
6537
|
+
attr(li, "aria-label", li_aria_label_value = /*option*/ ctx[49].label || /*option*/ ctx[49].value);
|
|
6533
6538
|
|
|
6534
|
-
attr(li, "aria-selected", li_aria_selected_value = /*_values*/ ctx[
|
|
6539
|
+
attr(li, "aria-selected", li_aria_selected_value = /*_values*/ ctx[16].includes(/*option*/ ctx[49].value)
|
|
6535
6540
|
? "true"
|
|
6536
6541
|
: "false");
|
|
6537
6542
|
|
|
6538
6543
|
attr(li, "class", "dropdown-item");
|
|
6539
|
-
attr(li, "data-testid", li_data_testid_value = `dropdown-item-${/*option*/ ctx[
|
|
6540
|
-
attr(li, "data-index", li_data_index_value = /*index*/ ctx[
|
|
6541
|
-
attr(li, "data-value", li_data_value_value = /*option*/ ctx[
|
|
6544
|
+
attr(li, "data-testid", li_data_testid_value = `dropdown-item-${/*option*/ ctx[49].value}`);
|
|
6545
|
+
attr(li, "data-index", li_data_index_value = /*index*/ ctx[53]);
|
|
6546
|
+
attr(li, "data-value", li_data_value_value = /*option*/ ctx[49].value);
|
|
6542
6547
|
set_style(li, "display", "block");
|
|
6543
6548
|
toggle_class(li, "dropdown-item--disabled", false);
|
|
6544
|
-
toggle_class(li, "dropdown-item--tabbed", /*index*/ ctx[
|
|
6545
|
-
toggle_class(li, "dropdown-item--selected", /*_values*/ ctx[
|
|
6549
|
+
toggle_class(li, "dropdown-item--tabbed", /*index*/ ctx[53] === /*_highlightedIndex*/ ctx[19]);
|
|
6550
|
+
toggle_class(li, "dropdown-item--selected", /*_values*/ ctx[16].includes(/*option*/ ctx[49].value));
|
|
6546
6551
|
this.first = li;
|
|
6547
6552
|
},
|
|
6548
6553
|
m(target, anchor) {
|
|
@@ -6557,40 +6562,40 @@ function create_each_block_1(key_1, ctx) {
|
|
|
6557
6562
|
},
|
|
6558
6563
|
p(new_ctx, dirty) {
|
|
6559
6564
|
ctx = new_ctx;
|
|
6560
|
-
if (dirty[0] & /*_options*/
|
|
6565
|
+
if (dirty[0] & /*_options*/ 8192 && t0_value !== (t0_value = (/*option*/ ctx[49].label || /*option*/ ctx[49].value) + "")) set_data(t0, t0_value);
|
|
6561
6566
|
|
|
6562
|
-
if (dirty[0] & /*_options*/
|
|
6567
|
+
if (dirty[0] & /*_options*/ 8192 && li_id_value !== (li_id_value = /*option*/ ctx[49].label)) {
|
|
6563
6568
|
attr(li, "id", li_id_value);
|
|
6564
6569
|
}
|
|
6565
6570
|
|
|
6566
|
-
if (dirty[0] & /*_options*/
|
|
6571
|
+
if (dirty[0] & /*_options*/ 8192 && li_aria_label_value !== (li_aria_label_value = /*option*/ ctx[49].label || /*option*/ ctx[49].value)) {
|
|
6567
6572
|
attr(li, "aria-label", li_aria_label_value);
|
|
6568
6573
|
}
|
|
6569
6574
|
|
|
6570
|
-
if (dirty[0] & /*_values, _options*/
|
|
6575
|
+
if (dirty[0] & /*_values, _options*/ 73728 && li_aria_selected_value !== (li_aria_selected_value = /*_values*/ ctx[16].includes(/*option*/ ctx[49].value)
|
|
6571
6576
|
? "true"
|
|
6572
6577
|
: "false")) {
|
|
6573
6578
|
attr(li, "aria-selected", li_aria_selected_value);
|
|
6574
6579
|
}
|
|
6575
6580
|
|
|
6576
|
-
if (dirty[0] & /*_options*/
|
|
6581
|
+
if (dirty[0] & /*_options*/ 8192 && li_data_testid_value !== (li_data_testid_value = `dropdown-item-${/*option*/ ctx[49].value}`)) {
|
|
6577
6582
|
attr(li, "data-testid", li_data_testid_value);
|
|
6578
6583
|
}
|
|
6579
6584
|
|
|
6580
|
-
if (dirty[0] & /*_options*/
|
|
6585
|
+
if (dirty[0] & /*_options*/ 8192 && li_data_index_value !== (li_data_index_value = /*index*/ ctx[53])) {
|
|
6581
6586
|
attr(li, "data-index", li_data_index_value);
|
|
6582
6587
|
}
|
|
6583
6588
|
|
|
6584
|
-
if (dirty[0] & /*_options*/
|
|
6589
|
+
if (dirty[0] & /*_options*/ 8192 && li_data_value_value !== (li_data_value_value = /*option*/ ctx[49].value)) {
|
|
6585
6590
|
attr(li, "data-value", li_data_value_value);
|
|
6586
6591
|
}
|
|
6587
6592
|
|
|
6588
|
-
if (dirty[0] & /*_options, _highlightedIndex*/
|
|
6589
|
-
toggle_class(li, "dropdown-item--tabbed", /*index*/ ctx[
|
|
6593
|
+
if (dirty[0] & /*_options, _highlightedIndex*/ 532480) {
|
|
6594
|
+
toggle_class(li, "dropdown-item--tabbed", /*index*/ ctx[53] === /*_highlightedIndex*/ ctx[19]);
|
|
6590
6595
|
}
|
|
6591
6596
|
|
|
6592
|
-
if (dirty[0] & /*_values, _options*/
|
|
6593
|
-
toggle_class(li, "dropdown-item--selected", /*_values*/ ctx[
|
|
6597
|
+
if (dirty[0] & /*_values, _options*/ 73728) {
|
|
6598
|
+
toggle_class(li, "dropdown-item--selected", /*_values*/ ctx[16].includes(/*option*/ ctx[49].value));
|
|
6594
6599
|
}
|
|
6595
6600
|
},
|
|
6596
6601
|
d(detaching) {
|
|
@@ -6601,10 +6606,10 @@ function create_each_block_1(key_1, ctx) {
|
|
|
6601
6606
|
};
|
|
6602
6607
|
}
|
|
6603
6608
|
|
|
6604
|
-
// (
|
|
6609
|
+
// (247:6) {#each _options as option}
|
|
6605
6610
|
function create_each_block$7(ctx) {
|
|
6606
6611
|
let option;
|
|
6607
|
-
let t0_value = /*option*/ ctx[
|
|
6612
|
+
let t0_value = /*option*/ ctx[49].label + "";
|
|
6608
6613
|
let t0;
|
|
6609
6614
|
let t1;
|
|
6610
6615
|
let option_selected_value;
|
|
@@ -6616,10 +6621,10 @@ function create_each_block$7(ctx) {
|
|
|
6616
6621
|
option = element("option");
|
|
6617
6622
|
t0 = text(t0_value);
|
|
6618
6623
|
t1 = space();
|
|
6619
|
-
option.selected = option_selected_value = /*option*/ ctx[
|
|
6620
|
-
option.__value = option_value_value = /*option*/ ctx[
|
|
6624
|
+
option.selected = option_selected_value = /*option*/ ctx[49].selected;
|
|
6625
|
+
option.__value = option_value_value = /*option*/ ctx[49].value;
|
|
6621
6626
|
option.value = option.__value;
|
|
6622
|
-
attr(option, "aria-label", option_aria_label_value = /*option*/ ctx[
|
|
6627
|
+
attr(option, "aria-label", option_aria_label_value = /*option*/ ctx[49].label);
|
|
6623
6628
|
},
|
|
6624
6629
|
m(target, anchor) {
|
|
6625
6630
|
insert(target, option, anchor);
|
|
@@ -6627,18 +6632,18 @@ function create_each_block$7(ctx) {
|
|
|
6627
6632
|
append(option, t1);
|
|
6628
6633
|
},
|
|
6629
6634
|
p(ctx, dirty) {
|
|
6630
|
-
if (dirty[0] & /*_options*/
|
|
6635
|
+
if (dirty[0] & /*_options*/ 8192 && t0_value !== (t0_value = /*option*/ ctx[49].label + "")) set_data(t0, t0_value);
|
|
6631
6636
|
|
|
6632
|
-
if (dirty[0] & /*_options*/
|
|
6637
|
+
if (dirty[0] & /*_options*/ 8192 && option_selected_value !== (option_selected_value = /*option*/ ctx[49].selected)) {
|
|
6633
6638
|
option.selected = option_selected_value;
|
|
6634
6639
|
}
|
|
6635
6640
|
|
|
6636
|
-
if (dirty[0] & /*_options*/
|
|
6641
|
+
if (dirty[0] & /*_options*/ 8192 && option_value_value !== (option_value_value = /*option*/ ctx[49].value)) {
|
|
6637
6642
|
option.__value = option_value_value;
|
|
6638
6643
|
option.value = option.__value;
|
|
6639
6644
|
}
|
|
6640
6645
|
|
|
6641
|
-
if (dirty[0] & /*_options*/
|
|
6646
|
+
if (dirty[0] & /*_options*/ 8192 && option_aria_label_value !== (option_aria_label_value = /*option*/ ctx[49].label)) {
|
|
6642
6647
|
attr(option, "aria-label", option_aria_label_value);
|
|
6643
6648
|
}
|
|
6644
6649
|
},
|
|
@@ -6654,8 +6659,8 @@ function create_fragment$G(ctx) {
|
|
|
6654
6659
|
let div_style_value;
|
|
6655
6660
|
|
|
6656
6661
|
function select_block_type(ctx, dirty) {
|
|
6657
|
-
if (/*_native*/ ctx[
|
|
6658
|
-
return create_else_block$
|
|
6662
|
+
if (/*_native*/ ctx[15]) return create_if_block$m;
|
|
6663
|
+
return create_else_block$a;
|
|
6659
6664
|
}
|
|
6660
6665
|
|
|
6661
6666
|
let current_block_type = select_block_type(ctx);
|
|
@@ -6670,16 +6675,16 @@ function create_fragment$G(ctx) {
|
|
|
6670
6675
|
attr(div, "class", "dropdown");
|
|
6671
6676
|
|
|
6672
6677
|
attr(div, "style", div_style_value = `
|
|
6673
|
-
${calculateMargin(/*mt*/ ctx[
|
|
6674
|
-
--width: ${/*width*/ ctx[5] || /*_computedWidth*/ ctx[
|
|
6678
|
+
${calculateMargin(/*mt*/ ctx[9], /*mr*/ ctx[10], /*mb*/ ctx[11], /*ml*/ ctx[12])}
|
|
6679
|
+
--width: ${/*width*/ ctx[5] || /*_computedWidth*/ ctx[20]}
|
|
6675
6680
|
`);
|
|
6676
6681
|
|
|
6677
|
-
toggle_class(div, "dropdown-native", /*_native*/ ctx[
|
|
6682
|
+
toggle_class(div, "dropdown-native", /*_native*/ ctx[15]);
|
|
6678
6683
|
},
|
|
6679
6684
|
m(target, anchor) {
|
|
6680
6685
|
insert(target, div, anchor);
|
|
6681
6686
|
if_block.m(div, null);
|
|
6682
|
-
/*div_binding*/ ctx[
|
|
6687
|
+
/*div_binding*/ ctx[34](div);
|
|
6683
6688
|
},
|
|
6684
6689
|
p(ctx, dirty) {
|
|
6685
6690
|
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
|
|
@@ -6698,15 +6703,15 @@ function create_fragment$G(ctx) {
|
|
|
6698
6703
|
attr(div, "data-testid", div_data_testid_value);
|
|
6699
6704
|
}
|
|
6700
6705
|
|
|
6701
|
-
if (dirty[0] & /*mt, mr, mb, ml, width, _computedWidth*/
|
|
6702
|
-
${calculateMargin(/*mt*/ ctx[
|
|
6703
|
-
--width: ${/*width*/ ctx[5] || /*_computedWidth*/ ctx[
|
|
6706
|
+
if (dirty[0] & /*mt, mr, mb, ml, width, _computedWidth*/ 1056288 && div_style_value !== (div_style_value = `
|
|
6707
|
+
${calculateMargin(/*mt*/ ctx[9], /*mr*/ ctx[10], /*mb*/ ctx[11], /*ml*/ ctx[12])}
|
|
6708
|
+
--width: ${/*width*/ ctx[5] || /*_computedWidth*/ ctx[20]}
|
|
6704
6709
|
`)) {
|
|
6705
6710
|
attr(div, "style", div_style_value);
|
|
6706
6711
|
}
|
|
6707
6712
|
|
|
6708
|
-
if (dirty[0] & /*_native*/
|
|
6709
|
-
toggle_class(div, "dropdown-native", /*_native*/ ctx[
|
|
6713
|
+
if (dirty[0] & /*_native*/ 32768) {
|
|
6714
|
+
toggle_class(div, "dropdown-native", /*_native*/ ctx[15]);
|
|
6710
6715
|
}
|
|
6711
6716
|
},
|
|
6712
6717
|
i: noop,
|
|
@@ -6714,7 +6719,7 @@ function create_fragment$G(ctx) {
|
|
|
6714
6719
|
d(detaching) {
|
|
6715
6720
|
if (detaching) detach(div);
|
|
6716
6721
|
if_block.d();
|
|
6717
|
-
/*div_binding*/ ctx[
|
|
6722
|
+
/*div_binding*/ ctx[34](null);
|
|
6718
6723
|
}
|
|
6719
6724
|
};
|
|
6720
6725
|
}
|
|
@@ -6750,6 +6755,7 @@ function instance$C($$self, $$props, $$invalidate) {
|
|
|
6750
6755
|
let { error = "false" } = $$props;
|
|
6751
6756
|
let { multiselect = "false" } = $$props;
|
|
6752
6757
|
let { native = "false" } = $$props;
|
|
6758
|
+
let { relative = "false" } = $$props;
|
|
6753
6759
|
let { mt = null } = $$props;
|
|
6754
6760
|
let { mr = null } = $$props;
|
|
6755
6761
|
let { mb = null } = $$props;
|
|
@@ -6774,9 +6780,9 @@ function instance$C($$self, $$props, $$invalidate) {
|
|
|
6774
6780
|
slot === null || slot === void 0
|
|
6775
6781
|
? void 0
|
|
6776
6782
|
: slot.addEventListener("slotchange", _e => {
|
|
6777
|
-
$$invalidate(
|
|
6778
|
-
$$invalidate(
|
|
6779
|
-
$$invalidate(
|
|
6783
|
+
$$invalidate(17, _selectedLabel = "");
|
|
6784
|
+
$$invalidate(16, _values = parseValues(value));
|
|
6785
|
+
$$invalidate(13, _options = getOptions());
|
|
6780
6786
|
});
|
|
6781
6787
|
});
|
|
6782
6788
|
|
|
@@ -6812,8 +6818,8 @@ function instance$C($$self, $$props, $$invalidate) {
|
|
|
6812
6818
|
const selected = _values.includes(value);
|
|
6813
6819
|
|
|
6814
6820
|
if (selected) {
|
|
6815
|
-
$$invalidate(
|
|
6816
|
-
$$invalidate(
|
|
6821
|
+
$$invalidate(17, _selectedLabel = label);
|
|
6822
|
+
$$invalidate(16, _values = [value]);
|
|
6817
6823
|
}
|
|
6818
6824
|
|
|
6819
6825
|
return { selected, value, label };
|
|
@@ -6856,7 +6862,7 @@ function instance$C($$self, $$props, $$invalidate) {
|
|
|
6856
6862
|
return;
|
|
6857
6863
|
}
|
|
6858
6864
|
|
|
6859
|
-
$$invalidate(
|
|
6865
|
+
$$invalidate(18, _isMenuVisible = true);
|
|
6860
6866
|
await tick();
|
|
6861
6867
|
|
|
6862
6868
|
// hide menu on blur
|
|
@@ -6870,27 +6876,24 @@ function instance$C($$self, $$props, $$invalidate) {
|
|
|
6870
6876
|
_menuEl.removeEventListener("blur", closeMenu);
|
|
6871
6877
|
_menuEl.removeEventListener("mouseover", onHighlight);
|
|
6872
6878
|
setHighlightedIndexToSelected();
|
|
6873
|
-
$$invalidate(
|
|
6879
|
+
$$invalidate(18, _isMenuVisible = false);
|
|
6874
6880
|
}
|
|
6875
6881
|
|
|
6876
6882
|
function setHighlightedIndexToSelected() {
|
|
6877
|
-
$$invalidate(
|
|
6883
|
+
$$invalidate(19, _highlightedIndex = _options.findIndex(option => _values.includes(option.value)));
|
|
6878
6884
|
}
|
|
6879
6885
|
|
|
6880
6886
|
// Event handlers
|
|
6881
|
-
/**
|
|
6882
|
-
* @property value the selected value
|
|
6883
|
-
*/
|
|
6884
6887
|
function onSelect(value, label, close) {
|
|
6885
6888
|
if (_disabled) return;
|
|
6886
|
-
$$invalidate(
|
|
6889
|
+
$$invalidate(17, _selectedLabel = label);
|
|
6887
6890
|
let detail;
|
|
6888
6891
|
|
|
6889
6892
|
if (_multiselect) {
|
|
6890
6893
|
_values.push(value);
|
|
6891
6894
|
detail = { name, values: _values };
|
|
6892
6895
|
} else {
|
|
6893
|
-
$$invalidate(
|
|
6896
|
+
$$invalidate(16, _values = [value]);
|
|
6894
6897
|
detail = { name, value };
|
|
6895
6898
|
}
|
|
6896
6899
|
|
|
@@ -6933,14 +6936,14 @@ function instance$C($$self, $$props, $$invalidate) {
|
|
|
6933
6936
|
|
|
6934
6937
|
function _handleArrowDown() {
|
|
6935
6938
|
if (_highlightedIndex < _options.length - 1) {
|
|
6936
|
-
$$invalidate(
|
|
6939
|
+
$$invalidate(19, _highlightedIndex++, _highlightedIndex);
|
|
6937
6940
|
onSelect(_options[_highlightedIndex].value, _options[_highlightedIndex].label, false);
|
|
6938
6941
|
}
|
|
6939
6942
|
}
|
|
6940
6943
|
|
|
6941
6944
|
function _handleArrowUp() {
|
|
6942
6945
|
if (_highlightedIndex > 0) {
|
|
6943
|
-
$$invalidate(
|
|
6946
|
+
$$invalidate(19, _highlightedIndex--, _highlightedIndex);
|
|
6944
6947
|
onSelect(_options[_highlightedIndex].value, _options[_highlightedIndex].label, false);
|
|
6945
6948
|
}
|
|
6946
6949
|
}
|
|
@@ -6956,7 +6959,7 @@ function instance$C($$self, $$props, $$invalidate) {
|
|
|
6956
6959
|
}
|
|
6957
6960
|
|
|
6958
6961
|
function onHighlight(e) {
|
|
6959
|
-
$$invalidate(
|
|
6962
|
+
$$invalidate(19, _highlightedIndex = Number(e.target.dataset.index));
|
|
6960
6963
|
}
|
|
6961
6964
|
|
|
6962
6965
|
function onNativeSelect(e) {
|
|
@@ -6968,8 +6971,8 @@ function instance$C($$self, $$props, $$invalidate) {
|
|
|
6968
6971
|
function select_binding($$value) {
|
|
6969
6972
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
6970
6973
|
_selectEl = $$value;
|
|
6971
|
-
$$invalidate(
|
|
6972
|
-
(((($$invalidate(
|
|
6974
|
+
$$invalidate(22, _selectEl);
|
|
6975
|
+
(((($$invalidate(13, _options), $$invalidate(14, _el)), $$invalidate(28, value)), $$invalidate(15, _native)), $$invalidate(30, native));
|
|
6973
6976
|
});
|
|
6974
6977
|
}
|
|
6975
6978
|
|
|
@@ -6978,60 +6981,61 @@ function instance$C($$self, $$props, $$invalidate) {
|
|
|
6978
6981
|
function ul_binding($$value) {
|
|
6979
6982
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
6980
6983
|
_menuEl = $$value;
|
|
6981
|
-
$$invalidate(
|
|
6984
|
+
$$invalidate(21, _menuEl);
|
|
6982
6985
|
});
|
|
6983
6986
|
}
|
|
6984
6987
|
|
|
6985
6988
|
function div_binding($$value) {
|
|
6986
6989
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
6987
6990
|
_el = $$value;
|
|
6988
|
-
$$invalidate(
|
|
6991
|
+
$$invalidate(14, _el);
|
|
6989
6992
|
});
|
|
6990
6993
|
}
|
|
6991
6994
|
|
|
6992
6995
|
$$self.$$set = $$props => {
|
|
6993
6996
|
if ('name' in $$props) $$invalidate(0, name = $$props.name);
|
|
6994
6997
|
if ('arialabel' in $$props) $$invalidate(1, arialabel = $$props.arialabel);
|
|
6995
|
-
if ('value' in $$props) $$invalidate(
|
|
6998
|
+
if ('value' in $$props) $$invalidate(28, value = $$props.value);
|
|
6996
6999
|
if ('leadingicon' in $$props) $$invalidate(2, leadingicon = $$props.leadingicon);
|
|
6997
7000
|
if ('maxheight' in $$props) $$invalidate(3, maxheight = $$props.maxheight);
|
|
6998
7001
|
if ('placeholder' in $$props) $$invalidate(4, placeholder = $$props.placeholder);
|
|
6999
7002
|
if ('width' in $$props) $$invalidate(5, width = $$props.width);
|
|
7000
7003
|
if ('disabled' in $$props) $$invalidate(6, disabled = $$props.disabled);
|
|
7001
7004
|
if ('error' in $$props) $$invalidate(7, error = $$props.error);
|
|
7002
|
-
if ('multiselect' in $$props) $$invalidate(
|
|
7003
|
-
if ('native' in $$props) $$invalidate(
|
|
7004
|
-
if ('
|
|
7005
|
-
if ('
|
|
7006
|
-
if ('
|
|
7007
|
-
if ('
|
|
7005
|
+
if ('multiselect' in $$props) $$invalidate(29, multiselect = $$props.multiselect);
|
|
7006
|
+
if ('native' in $$props) $$invalidate(30, native = $$props.native);
|
|
7007
|
+
if ('relative' in $$props) $$invalidate(8, relative = $$props.relative);
|
|
7008
|
+
if ('mt' in $$props) $$invalidate(9, mt = $$props.mt);
|
|
7009
|
+
if ('mr' in $$props) $$invalidate(10, mr = $$props.mr);
|
|
7010
|
+
if ('mb' in $$props) $$invalidate(11, mb = $$props.mb);
|
|
7011
|
+
if ('ml' in $$props) $$invalidate(12, ml = $$props.ml);
|
|
7008
7012
|
};
|
|
7009
7013
|
|
|
7010
7014
|
$$self.$$.update = () => {
|
|
7011
7015
|
if ($$self.$$.dirty[0] & /*disabled*/ 64) {
|
|
7012
|
-
$$invalidate(
|
|
7016
|
+
$$invalidate(23, _disabled = toBoolean(disabled));
|
|
7013
7017
|
}
|
|
7014
7018
|
|
|
7015
7019
|
if ($$self.$$.dirty[0] & /*error*/ 128) {
|
|
7016
|
-
$$invalidate(
|
|
7020
|
+
$$invalidate(24, _error = toBoolean(error));
|
|
7017
7021
|
}
|
|
7018
7022
|
|
|
7019
|
-
if ($$self.$$.dirty[0] & /*multiselect*/
|
|
7023
|
+
if ($$self.$$.dirty[0] & /*multiselect*/ 536870912) {
|
|
7020
7024
|
_multiselect = toBoolean(multiselect);
|
|
7021
7025
|
}
|
|
7022
7026
|
|
|
7023
|
-
if ($$self.$$.dirty[0] & /*native*/
|
|
7024
|
-
$$invalidate(
|
|
7027
|
+
if ($$self.$$.dirty[0] & /*native*/ 1073741824) {
|
|
7028
|
+
$$invalidate(15, _native = toBoolean(native));
|
|
7025
7029
|
}
|
|
7026
7030
|
|
|
7027
|
-
if ($$self.$$.dirty[0] & /*_el, value, _native, _options*/
|
|
7031
|
+
if ($$self.$$.dirty[0] & /*_el, value, _native, _options*/ 268492800) {
|
|
7028
7032
|
{
|
|
7029
7033
|
if (_el) {
|
|
7030
|
-
$$invalidate(
|
|
7031
|
-
$$invalidate(
|
|
7034
|
+
$$invalidate(16, _values = parseValues(value));
|
|
7035
|
+
$$invalidate(13, _options = getOptions());
|
|
7032
7036
|
|
|
7033
7037
|
if (!_native) {
|
|
7034
|
-
$$invalidate(
|
|
7038
|
+
$$invalidate(20, _computedWidth = getCustomDropdownWidth(_options));
|
|
7035
7039
|
addKeyboardEventListeners();
|
|
7036
7040
|
setHighlightedIndexToSelected();
|
|
7037
7041
|
}
|
|
@@ -7049,6 +7053,7 @@ function instance$C($$self, $$props, $$invalidate) {
|
|
|
7049
7053
|
width,
|
|
7050
7054
|
disabled,
|
|
7051
7055
|
error,
|
|
7056
|
+
relative,
|
|
7052
7057
|
mt,
|
|
7053
7058
|
mr,
|
|
7054
7059
|
mb,
|
|
@@ -7098,19 +7103,20 @@ class Dropdown extends SvelteElement {
|
|
|
7098
7103
|
{
|
|
7099
7104
|
name: 0,
|
|
7100
7105
|
arialabel: 1,
|
|
7101
|
-
value:
|
|
7106
|
+
value: 28,
|
|
7102
7107
|
leadingicon: 2,
|
|
7103
7108
|
maxheight: 3,
|
|
7104
7109
|
placeholder: 4,
|
|
7105
7110
|
width: 5,
|
|
7106
7111
|
disabled: 6,
|
|
7107
7112
|
error: 7,
|
|
7108
|
-
multiselect:
|
|
7109
|
-
native:
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
-
|
|
7113
|
+
multiselect: 29,
|
|
7114
|
+
native: 30,
|
|
7115
|
+
relative: 8,
|
|
7116
|
+
mt: 9,
|
|
7117
|
+
mr: 10,
|
|
7118
|
+
mb: 11,
|
|
7119
|
+
ml: 12
|
|
7114
7120
|
},
|
|
7115
7121
|
null,
|
|
7116
7122
|
[-1, -1]
|
|
@@ -7141,6 +7147,7 @@ class Dropdown extends SvelteElement {
|
|
|
7141
7147
|
"error",
|
|
7142
7148
|
"multiselect",
|
|
7143
7149
|
"native",
|
|
7150
|
+
"relative",
|
|
7144
7151
|
"mt",
|
|
7145
7152
|
"mr",
|
|
7146
7153
|
"mb",
|
|
@@ -7167,7 +7174,7 @@ class Dropdown extends SvelteElement {
|
|
|
7167
7174
|
}
|
|
7168
7175
|
|
|
7169
7176
|
get value() {
|
|
7170
|
-
return this.$$.ctx[
|
|
7177
|
+
return this.$$.ctx[28];
|
|
7171
7178
|
}
|
|
7172
7179
|
|
|
7173
7180
|
set value(value) {
|
|
@@ -7230,7 +7237,7 @@ class Dropdown extends SvelteElement {
|
|
|
7230
7237
|
}
|
|
7231
7238
|
|
|
7232
7239
|
get multiselect() {
|
|
7233
|
-
return this.$$.ctx[
|
|
7240
|
+
return this.$$.ctx[29];
|
|
7234
7241
|
}
|
|
7235
7242
|
|
|
7236
7243
|
set multiselect(multiselect) {
|
|
@@ -7239,7 +7246,7 @@ class Dropdown extends SvelteElement {
|
|
|
7239
7246
|
}
|
|
7240
7247
|
|
|
7241
7248
|
get native() {
|
|
7242
|
-
return this.$$.ctx[
|
|
7249
|
+
return this.$$.ctx[30];
|
|
7243
7250
|
}
|
|
7244
7251
|
|
|
7245
7252
|
set native(native) {
|
|
@@ -7247,17 +7254,26 @@ class Dropdown extends SvelteElement {
|
|
|
7247
7254
|
flush();
|
|
7248
7255
|
}
|
|
7249
7256
|
|
|
7250
|
-
get
|
|
7257
|
+
get relative() {
|
|
7251
7258
|
return this.$$.ctx[8];
|
|
7252
7259
|
}
|
|
7253
7260
|
|
|
7261
|
+
set relative(relative) {
|
|
7262
|
+
this.$$set({ relative });
|
|
7263
|
+
flush();
|
|
7264
|
+
}
|
|
7265
|
+
|
|
7266
|
+
get mt() {
|
|
7267
|
+
return this.$$.ctx[9];
|
|
7268
|
+
}
|
|
7269
|
+
|
|
7254
7270
|
set mt(mt) {
|
|
7255
7271
|
this.$$set({ mt });
|
|
7256
7272
|
flush();
|
|
7257
7273
|
}
|
|
7258
7274
|
|
|
7259
7275
|
get mr() {
|
|
7260
|
-
return this.$$.ctx[
|
|
7276
|
+
return this.$$.ctx[10];
|
|
7261
7277
|
}
|
|
7262
7278
|
|
|
7263
7279
|
set mr(mr) {
|
|
@@ -7266,7 +7282,7 @@ class Dropdown extends SvelteElement {
|
|
|
7266
7282
|
}
|
|
7267
7283
|
|
|
7268
7284
|
get mb() {
|
|
7269
|
-
return this.$$.ctx[
|
|
7285
|
+
return this.$$.ctx[11];
|
|
7270
7286
|
}
|
|
7271
7287
|
|
|
7272
7288
|
set mb(mb) {
|
|
@@ -7275,7 +7291,7 @@ class Dropdown extends SvelteElement {
|
|
|
7275
7291
|
}
|
|
7276
7292
|
|
|
7277
7293
|
get ml() {
|
|
7278
|
-
return this.$$.ctx[
|
|
7294
|
+
return this.$$.ctx[12];
|
|
7279
7295
|
}
|
|
7280
7296
|
|
|
7281
7297
|
set ml(ml) {
|
|
@@ -7516,7 +7532,7 @@ customElements.define("goa-focus-trap", FocusTrap);
|
|
|
7516
7532
|
|
|
7517
7533
|
/* libs/web-components/src/components/footer/Footer.svelte generated by Svelte v3.59.2 */
|
|
7518
7534
|
|
|
7519
|
-
function create_if_block$
|
|
7535
|
+
function create_if_block$l(ctx) {
|
|
7520
7536
|
let goa_divider;
|
|
7521
7537
|
|
|
7522
7538
|
return {
|
|
@@ -7547,7 +7563,7 @@ function create_fragment$D(ctx) {
|
|
|
7547
7563
|
let t3;
|
|
7548
7564
|
let a1;
|
|
7549
7565
|
let div5_style_value;
|
|
7550
|
-
let if_block = /*navLinks*/ ctx[2] && /*navLinks*/ ctx[2].length > 0 && create_if_block$
|
|
7566
|
+
let if_block = /*navLinks*/ ctx[2] && /*navLinks*/ ctx[2].length > 0 && create_if_block$l();
|
|
7551
7567
|
|
|
7552
7568
|
return {
|
|
7553
7569
|
c() {
|
|
@@ -7601,7 +7617,7 @@ function create_fragment$D(ctx) {
|
|
|
7601
7617
|
p(ctx, [dirty]) {
|
|
7602
7618
|
if (/*navLinks*/ ctx[2] && /*navLinks*/ ctx[2].length > 0) {
|
|
7603
7619
|
if (if_block) ; else {
|
|
7604
|
-
if_block = create_if_block$
|
|
7620
|
+
if_block = create_if_block$l();
|
|
7605
7621
|
if_block.c();
|
|
7606
7622
|
if_block.m(div4, t1);
|
|
7607
7623
|
}
|
|
@@ -7898,7 +7914,7 @@ function get_each_context$5(ctx, list, i) {
|
|
|
7898
7914
|
}
|
|
7899
7915
|
|
|
7900
7916
|
// (31:2) {#if heading}
|
|
7901
|
-
function create_if_block$
|
|
7917
|
+
function create_if_block$k(ctx) {
|
|
7902
7918
|
let div;
|
|
7903
7919
|
let t0;
|
|
7904
7920
|
let t1;
|
|
@@ -7970,7 +7986,7 @@ function create_fragment$B(ctx) {
|
|
|
7970
7986
|
let t1;
|
|
7971
7987
|
let ul;
|
|
7972
7988
|
let ul_style_value;
|
|
7973
|
-
let if_block = /*heading*/ ctx[0] && create_if_block$
|
|
7989
|
+
let if_block = /*heading*/ ctx[0] && create_if_block$k(ctx);
|
|
7974
7990
|
let each_value = /*children*/ ctx[3];
|
|
7975
7991
|
let each_blocks = [];
|
|
7976
7992
|
|
|
@@ -8026,7 +8042,7 @@ function create_fragment$B(ctx) {
|
|
|
8026
8042
|
if (if_block) {
|
|
8027
8043
|
if_block.p(ctx, dirty);
|
|
8028
8044
|
} else {
|
|
8029
|
-
if_block = create_if_block$
|
|
8045
|
+
if_block = create_if_block$k(ctx);
|
|
8030
8046
|
if_block.c();
|
|
8031
8047
|
if_block.m(section, t0);
|
|
8032
8048
|
}
|
|
@@ -8292,7 +8308,7 @@ function create_if_block_1$b(ctx) {
|
|
|
8292
8308
|
}
|
|
8293
8309
|
|
|
8294
8310
|
// (48:2) {#if helptext}
|
|
8295
|
-
function create_if_block$
|
|
8311
|
+
function create_if_block$j(ctx) {
|
|
8296
8312
|
let div;
|
|
8297
8313
|
let t;
|
|
8298
8314
|
|
|
@@ -8324,7 +8340,7 @@ function create_fragment$A(ctx) {
|
|
|
8324
8340
|
let div1_style_value;
|
|
8325
8341
|
let if_block0 = /*label*/ ctx[5] && create_if_block_2$9(ctx);
|
|
8326
8342
|
let if_block1 = /*error*/ ctx[7] && create_if_block_1$b(ctx);
|
|
8327
|
-
let if_block2 = /*helptext*/ ctx[6] && create_if_block$
|
|
8343
|
+
let if_block2 = /*helptext*/ ctx[6] && create_if_block$j(ctx);
|
|
8328
8344
|
|
|
8329
8345
|
return {
|
|
8330
8346
|
c() {
|
|
@@ -8384,7 +8400,7 @@ function create_fragment$A(ctx) {
|
|
|
8384
8400
|
if (if_block2) {
|
|
8385
8401
|
if_block2.p(ctx, dirty);
|
|
8386
8402
|
} else {
|
|
8387
|
-
if_block2 = create_if_block$
|
|
8403
|
+
if_block2 = create_if_block$j(ctx);
|
|
8388
8404
|
if_block2.c();
|
|
8389
8405
|
if_block2.m(div1, null);
|
|
8390
8406
|
}
|
|
@@ -9263,7 +9279,7 @@ customElements.define("goa-icon-button", IconButton);
|
|
|
9263
9279
|
|
|
9264
9280
|
/* libs/web-components/src/components/icon/Icon.svelte generated by Svelte v3.59.2 */
|
|
9265
9281
|
|
|
9266
|
-
function create_if_block$
|
|
9282
|
+
function create_if_block$i(ctx) {
|
|
9267
9283
|
let show_if;
|
|
9268
9284
|
let if_block_anchor;
|
|
9269
9285
|
|
|
@@ -9271,7 +9287,7 @@ function create_if_block$h(ctx) {
|
|
|
9271
9287
|
if (dirty & /*type*/ 16) show_if = null;
|
|
9272
9288
|
if (show_if == null) show_if = !!Object.keys(/*_iconOverrides*/ ctx[13]).includes(/*type*/ ctx[4]);
|
|
9273
9289
|
if (show_if) return create_if_block_1$a;
|
|
9274
|
-
return create_else_block$
|
|
9290
|
+
return create_else_block$9;
|
|
9275
9291
|
}
|
|
9276
9292
|
|
|
9277
9293
|
let current_block_type = select_block_type(ctx, -1);
|
|
@@ -9307,7 +9323,7 @@ function create_if_block$h(ctx) {
|
|
|
9307
9323
|
}
|
|
9308
9324
|
|
|
9309
9325
|
// (60:4) {:else}
|
|
9310
|
-
function create_else_block$
|
|
9326
|
+
function create_else_block$9(ctx) {
|
|
9311
9327
|
let ion_icon;
|
|
9312
9328
|
let ion_icon_name_value;
|
|
9313
9329
|
|
|
@@ -9362,7 +9378,7 @@ function create_fragment$w(ctx) {
|
|
|
9362
9378
|
let div_role_value;
|
|
9363
9379
|
let div_class_value;
|
|
9364
9380
|
let div_style_value;
|
|
9365
|
-
let if_block = /*type*/ ctx[4] && create_if_block$
|
|
9381
|
+
let if_block = /*type*/ ctx[4] && create_if_block$i(ctx);
|
|
9366
9382
|
|
|
9367
9383
|
return {
|
|
9368
9384
|
c() {
|
|
@@ -9392,7 +9408,7 @@ function create_fragment$w(ctx) {
|
|
|
9392
9408
|
if (if_block) {
|
|
9393
9409
|
if_block.p(ctx, dirty);
|
|
9394
9410
|
} else {
|
|
9395
|
-
if_block = create_if_block$
|
|
9411
|
+
if_block = create_if_block$i(ctx);
|
|
9396
9412
|
if_block.c();
|
|
9397
9413
|
if_block.m(div, null);
|
|
9398
9414
|
}
|
|
@@ -9726,7 +9742,7 @@ function create_if_block_4$2(ctx) {
|
|
|
9726
9742
|
};
|
|
9727
9743
|
}
|
|
9728
9744
|
|
|
9729
|
-
// (
|
|
9745
|
+
// (141:4) {#if leadingicon}
|
|
9730
9746
|
function create_if_block_3$8(ctx) {
|
|
9731
9747
|
let goa_icon;
|
|
9732
9748
|
|
|
@@ -9751,7 +9767,7 @@ function create_if_block_3$8(ctx) {
|
|
|
9751
9767
|
};
|
|
9752
9768
|
}
|
|
9753
9769
|
|
|
9754
|
-
// (
|
|
9770
|
+
// (178:4) {#if trailingicon && !handlesTrailingIconClick}
|
|
9755
9771
|
function create_if_block_2$8(ctx) {
|
|
9756
9772
|
let goa_icon;
|
|
9757
9773
|
|
|
@@ -9777,7 +9793,7 @@ function create_if_block_2$8(ctx) {
|
|
|
9777
9793
|
};
|
|
9778
9794
|
}
|
|
9779
9795
|
|
|
9780
|
-
// (
|
|
9796
|
+
// (188:4) {#if trailingicon && handlesTrailingIconClick}
|
|
9781
9797
|
function create_if_block_1$9(ctx) {
|
|
9782
9798
|
let goa_icon_button;
|
|
9783
9799
|
let mounted;
|
|
@@ -9818,8 +9834,8 @@ function create_if_block_1$9(ctx) {
|
|
|
9818
9834
|
};
|
|
9819
9835
|
}
|
|
9820
9836
|
|
|
9821
|
-
// (
|
|
9822
|
-
function create_if_block$
|
|
9837
|
+
// (201:4) {#if suffix}
|
|
9838
|
+
function create_if_block$h(ctx) {
|
|
9823
9839
|
let span;
|
|
9824
9840
|
let t;
|
|
9825
9841
|
|
|
@@ -9866,7 +9882,7 @@ function create_fragment$v(ctx) {
|
|
|
9866
9882
|
let if_block1 = /*leadingicon*/ ctx[5] && create_if_block_3$8(ctx);
|
|
9867
9883
|
let if_block2 = /*trailingicon*/ ctx[6] && !/*handlesTrailingIconClick*/ ctx[28] && create_if_block_2$8(ctx);
|
|
9868
9884
|
let if_block3 = /*trailingicon*/ ctx[6] && /*handlesTrailingIconClick*/ ctx[28] && create_if_block_1$9(ctx);
|
|
9869
|
-
let if_block4 = /*suffix*/ ctx[15] && create_if_block$
|
|
9885
|
+
let if_block4 = /*suffix*/ ctx[15] && create_if_block$h(ctx);
|
|
9870
9886
|
|
|
9871
9887
|
return {
|
|
9872
9888
|
c() {
|
|
@@ -9950,7 +9966,7 @@ function create_fragment$v(ctx) {
|
|
|
9950
9966
|
if (if_block1) if_block1.m(div2, null);
|
|
9951
9967
|
append(div2, t2);
|
|
9952
9968
|
append(div2, input);
|
|
9953
|
-
/*input_binding*/ ctx[
|
|
9969
|
+
/*input_binding*/ ctx[39](input);
|
|
9954
9970
|
append(div2, t3);
|
|
9955
9971
|
if (if_block2) if_block2.m(div2, null);
|
|
9956
9972
|
append(div2, t4);
|
|
@@ -9959,12 +9975,14 @@ function create_fragment$v(ctx) {
|
|
|
9959
9975
|
if (if_block4) if_block4.m(div2, null);
|
|
9960
9976
|
append(div2, t6);
|
|
9961
9977
|
append(div2, div1);
|
|
9962
|
-
/*div3_binding*/ ctx[
|
|
9978
|
+
/*div3_binding*/ ctx[40](div3);
|
|
9963
9979
|
|
|
9964
9980
|
if (!mounted) {
|
|
9965
9981
|
dispose = [
|
|
9966
9982
|
listen(input, "keyup", /*onKeyUp*/ ctx[29]),
|
|
9967
|
-
listen(input, "change", /*onKeyUp*/ ctx[29])
|
|
9983
|
+
listen(input, "change", /*onKeyUp*/ ctx[29]),
|
|
9984
|
+
listen(input, "focus", /*onFocus*/ ctx[30]),
|
|
9985
|
+
listen(input, "blur", /*onBlur*/ ctx[31])
|
|
9968
9986
|
];
|
|
9969
9987
|
|
|
9970
9988
|
mounted = true;
|
|
@@ -10095,7 +10113,7 @@ function create_fragment$v(ctx) {
|
|
|
10095
10113
|
if (if_block4) {
|
|
10096
10114
|
if_block4.p(ctx, dirty);
|
|
10097
10115
|
} else {
|
|
10098
|
-
if_block4 = create_if_block$
|
|
10116
|
+
if_block4 = create_if_block$h(ctx);
|
|
10099
10117
|
if_block4.c();
|
|
10100
10118
|
if_block4.m(div2, t6);
|
|
10101
10119
|
}
|
|
@@ -10136,11 +10154,11 @@ function create_fragment$v(ctx) {
|
|
|
10136
10154
|
if (detaching) detach(div3);
|
|
10137
10155
|
if (if_block0) if_block0.d();
|
|
10138
10156
|
if (if_block1) if_block1.d();
|
|
10139
|
-
/*input_binding*/ ctx[
|
|
10157
|
+
/*input_binding*/ ctx[39](null);
|
|
10140
10158
|
if (if_block2) if_block2.d();
|
|
10141
10159
|
if (if_block3) if_block3.d();
|
|
10142
10160
|
if (if_block4) if_block4.d();
|
|
10143
|
-
/*div3_binding*/ ctx[
|
|
10161
|
+
/*div3_binding*/ ctx[40](null);
|
|
10144
10162
|
mounted = false;
|
|
10145
10163
|
run_all(dispose);
|
|
10146
10164
|
}
|
|
@@ -10233,6 +10251,26 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
10233
10251
|
$$invalidate(0, value = input.value);
|
|
10234
10252
|
}
|
|
10235
10253
|
|
|
10254
|
+
function onFocus(e) {
|
|
10255
|
+
const input = e.target;
|
|
10256
|
+
|
|
10257
|
+
input.dispatchEvent(new CustomEvent("_focus",
|
|
10258
|
+
{
|
|
10259
|
+
composed: true,
|
|
10260
|
+
detail: { name, value: input.value }
|
|
10261
|
+
}));
|
|
10262
|
+
}
|
|
10263
|
+
|
|
10264
|
+
function onBlur(e) {
|
|
10265
|
+
const input = e.target;
|
|
10266
|
+
|
|
10267
|
+
input.dispatchEvent(new CustomEvent("_blur",
|
|
10268
|
+
{
|
|
10269
|
+
composed: true,
|
|
10270
|
+
detail: { name, value: input.value }
|
|
10271
|
+
}));
|
|
10272
|
+
}
|
|
10273
|
+
|
|
10236
10274
|
onMount(async () => {
|
|
10237
10275
|
await tick();
|
|
10238
10276
|
validateType(type);
|
|
@@ -10278,11 +10316,11 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
10278
10316
|
if ('leadingicon' in $$props) $$invalidate(5, leadingicon = $$props.leadingicon);
|
|
10279
10317
|
if ('trailingicon' in $$props) $$invalidate(6, trailingicon = $$props.trailingicon);
|
|
10280
10318
|
if ('variant' in $$props) $$invalidate(7, variant = $$props.variant);
|
|
10281
|
-
if ('disabled' in $$props) $$invalidate(
|
|
10282
|
-
if ('handletrailingiconclick' in $$props) $$invalidate(
|
|
10283
|
-
if ('focused' in $$props) $$invalidate(
|
|
10284
|
-
if ('readonly' in $$props) $$invalidate(
|
|
10285
|
-
if ('error' in $$props) $$invalidate(
|
|
10319
|
+
if ('disabled' in $$props) $$invalidate(32, disabled = $$props.disabled);
|
|
10320
|
+
if ('handletrailingiconclick' in $$props) $$invalidate(33, handletrailingiconclick = $$props.handletrailingiconclick);
|
|
10321
|
+
if ('focused' in $$props) $$invalidate(34, focused = $$props.focused);
|
|
10322
|
+
if ('readonly' in $$props) $$invalidate(35, readonly = $$props.readonly);
|
|
10323
|
+
if ('error' in $$props) $$invalidate(36, error = $$props.error);
|
|
10286
10324
|
if ('testid' in $$props) $$invalidate(8, testid = $$props.testid);
|
|
10287
10325
|
if ('width' in $$props) $$invalidate(9, width = $$props.width);
|
|
10288
10326
|
if ('arialabel' in $$props) $$invalidate(10, arialabel = $$props.arialabel);
|
|
@@ -10291,7 +10329,7 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
10291
10329
|
if ('step' in $$props) $$invalidate(13, step = $$props.step);
|
|
10292
10330
|
if ('prefix' in $$props) $$invalidate(14, prefix = $$props.prefix);
|
|
10293
10331
|
if ('suffix' in $$props) $$invalidate(15, suffix = $$props.suffix);
|
|
10294
|
-
if ('debounce' in $$props) $$invalidate(
|
|
10332
|
+
if ('debounce' in $$props) $$invalidate(37, debounce = $$props.debounce);
|
|
10295
10333
|
if ('maxlength' in $$props) $$invalidate(16, maxlength = $$props.maxlength);
|
|
10296
10334
|
if ('mt' in $$props) $$invalidate(17, mt = $$props.mt);
|
|
10297
10335
|
if ('mr' in $$props) $$invalidate(18, mr = $$props.mr);
|
|
@@ -10300,27 +10338,27 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
10300
10338
|
};
|
|
10301
10339
|
|
|
10302
10340
|
$$self.$$.update = () => {
|
|
10303
|
-
if ($$self.$$.dirty[1] & /*handletrailingiconclick*/
|
|
10341
|
+
if ($$self.$$.dirty[1] & /*handletrailingiconclick*/ 4) {
|
|
10304
10342
|
$$invalidate(28, handlesTrailingIconClick = toBoolean(handletrailingiconclick));
|
|
10305
10343
|
}
|
|
10306
10344
|
|
|
10307
|
-
if ($$self.$$.dirty[1] & /*focused*/
|
|
10308
|
-
$$invalidate(
|
|
10345
|
+
if ($$self.$$.dirty[1] & /*focused*/ 8) {
|
|
10346
|
+
$$invalidate(38, isFocused = toBoolean(focused));
|
|
10309
10347
|
}
|
|
10310
10348
|
|
|
10311
|
-
if ($$self.$$.dirty[1] & /*readonly*/
|
|
10349
|
+
if ($$self.$$.dirty[1] & /*readonly*/ 16) {
|
|
10312
10350
|
$$invalidate(25, isReadonly = toBoolean(readonly));
|
|
10313
10351
|
}
|
|
10314
10352
|
|
|
10315
|
-
if ($$self.$$.dirty[1] & /*error*/
|
|
10353
|
+
if ($$self.$$.dirty[1] & /*error*/ 32) {
|
|
10316
10354
|
$$invalidate(27, isError = toBoolean(error));
|
|
10317
10355
|
}
|
|
10318
10356
|
|
|
10319
|
-
if ($$self.$$.dirty[
|
|
10357
|
+
if ($$self.$$.dirty[1] & /*disabled*/ 2) {
|
|
10320
10358
|
$$invalidate(26, isDisabled = toBoolean(disabled));
|
|
10321
10359
|
}
|
|
10322
10360
|
|
|
10323
|
-
if ($$self.$$.dirty[0] & /*inputEl*/ 2097152 | $$self.$$.dirty[1] & /*isFocused*/
|
|
10361
|
+
if ($$self.$$.dirty[0] & /*inputEl*/ 2097152 | $$self.$$.dirty[1] & /*isFocused*/ 128) {
|
|
10324
10362
|
if (isFocused && inputEl) {
|
|
10325
10363
|
setTimeout(() => inputEl.focus(), 1);
|
|
10326
10364
|
}
|
|
@@ -10366,6 +10404,8 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
10366
10404
|
isError,
|
|
10367
10405
|
handlesTrailingIconClick,
|
|
10368
10406
|
onKeyUp,
|
|
10407
|
+
onFocus,
|
|
10408
|
+
onBlur,
|
|
10369
10409
|
disabled,
|
|
10370
10410
|
handletrailingiconclick,
|
|
10371
10411
|
focused,
|
|
@@ -10407,11 +10447,11 @@ class Input extends SvelteElement {
|
|
|
10407
10447
|
leadingicon: 5,
|
|
10408
10448
|
trailingicon: 6,
|
|
10409
10449
|
variant: 7,
|
|
10410
|
-
disabled:
|
|
10411
|
-
handletrailingiconclick:
|
|
10412
|
-
focused:
|
|
10413
|
-
readonly:
|
|
10414
|
-
error:
|
|
10450
|
+
disabled: 32,
|
|
10451
|
+
handletrailingiconclick: 33,
|
|
10452
|
+
focused: 34,
|
|
10453
|
+
readonly: 35,
|
|
10454
|
+
error: 36,
|
|
10415
10455
|
testid: 8,
|
|
10416
10456
|
width: 9,
|
|
10417
10457
|
arialabel: 10,
|
|
@@ -10420,7 +10460,7 @@ class Input extends SvelteElement {
|
|
|
10420
10460
|
step: 13,
|
|
10421
10461
|
prefix: 14,
|
|
10422
10462
|
suffix: 15,
|
|
10423
|
-
debounce:
|
|
10463
|
+
debounce: 37,
|
|
10424
10464
|
maxlength: 16,
|
|
10425
10465
|
mt: 17,
|
|
10426
10466
|
mr: 18,
|
|
@@ -10548,7 +10588,7 @@ class Input extends SvelteElement {
|
|
|
10548
10588
|
}
|
|
10549
10589
|
|
|
10550
10590
|
get disabled() {
|
|
10551
|
-
return this.$$.ctx[
|
|
10591
|
+
return this.$$.ctx[32];
|
|
10552
10592
|
}
|
|
10553
10593
|
|
|
10554
10594
|
set disabled(disabled) {
|
|
@@ -10557,7 +10597,7 @@ class Input extends SvelteElement {
|
|
|
10557
10597
|
}
|
|
10558
10598
|
|
|
10559
10599
|
get handletrailingiconclick() {
|
|
10560
|
-
return this.$$.ctx[
|
|
10600
|
+
return this.$$.ctx[33];
|
|
10561
10601
|
}
|
|
10562
10602
|
|
|
10563
10603
|
set handletrailingiconclick(handletrailingiconclick) {
|
|
@@ -10566,7 +10606,7 @@ class Input extends SvelteElement {
|
|
|
10566
10606
|
}
|
|
10567
10607
|
|
|
10568
10608
|
get focused() {
|
|
10569
|
-
return this.$$.ctx[
|
|
10609
|
+
return this.$$.ctx[34];
|
|
10570
10610
|
}
|
|
10571
10611
|
|
|
10572
10612
|
set focused(focused) {
|
|
@@ -10575,7 +10615,7 @@ class Input extends SvelteElement {
|
|
|
10575
10615
|
}
|
|
10576
10616
|
|
|
10577
10617
|
get readonly() {
|
|
10578
|
-
return this.$$.ctx[
|
|
10618
|
+
return this.$$.ctx[35];
|
|
10579
10619
|
}
|
|
10580
10620
|
|
|
10581
10621
|
set readonly(readonly) {
|
|
@@ -10584,7 +10624,7 @@ class Input extends SvelteElement {
|
|
|
10584
10624
|
}
|
|
10585
10625
|
|
|
10586
10626
|
get error() {
|
|
10587
|
-
return this.$$.ctx[
|
|
10627
|
+
return this.$$.ctx[36];
|
|
10588
10628
|
}
|
|
10589
10629
|
|
|
10590
10630
|
set error(error) {
|
|
@@ -10665,7 +10705,7 @@ class Input extends SvelteElement {
|
|
|
10665
10705
|
}
|
|
10666
10706
|
|
|
10667
10707
|
get debounce() {
|
|
10668
|
-
return this.$$.ctx[
|
|
10708
|
+
return this.$$.ctx[37];
|
|
10669
10709
|
}
|
|
10670
10710
|
|
|
10671
10711
|
set debounce(debounce) {
|
|
@@ -10845,7 +10885,7 @@ function create_if_block_2$7(ctx) {
|
|
|
10845
10885
|
}
|
|
10846
10886
|
|
|
10847
10887
|
// (46:4) {#if version}
|
|
10848
|
-
function create_if_block$
|
|
10888
|
+
function create_if_block$g(ctx) {
|
|
10849
10889
|
let div;
|
|
10850
10890
|
let t;
|
|
10851
10891
|
|
|
@@ -10880,7 +10920,7 @@ function create_fragment$u(ctx) {
|
|
|
10880
10920
|
let header_style_value;
|
|
10881
10921
|
let if_block0 = /*type*/ ctx[0] === "live" && create_if_block_3$7();
|
|
10882
10922
|
let if_block1 = show_if && create_if_block_1$8(ctx);
|
|
10883
|
-
let if_block2 = /*version*/ ctx[1] && create_if_block$
|
|
10923
|
+
let if_block2 = /*version*/ ctx[1] && create_if_block$g(ctx);
|
|
10884
10924
|
|
|
10885
10925
|
return {
|
|
10886
10926
|
c() {
|
|
@@ -10941,7 +10981,7 @@ function create_fragment$u(ctx) {
|
|
|
10941
10981
|
if (if_block2) {
|
|
10942
10982
|
if_block2.p(ctx, dirty);
|
|
10943
10983
|
} else {
|
|
10944
|
-
if_block2 = create_if_block$
|
|
10984
|
+
if_block2 = create_if_block$g(ctx);
|
|
10945
10985
|
if_block2.c();
|
|
10946
10986
|
if_block2.m(div1, null);
|
|
10947
10987
|
}
|
|
@@ -11074,7 +11114,7 @@ customElements.define("goa-microsite-header", MicrositeHeader);
|
|
|
11074
11114
|
|
|
11075
11115
|
/* libs/web-components/src/components/modal/Modal.svelte generated by Svelte v3.59.2 */
|
|
11076
11116
|
|
|
11077
|
-
function create_if_block$
|
|
11117
|
+
function create_if_block$f(ctx) {
|
|
11078
11118
|
let goa_focus_trap;
|
|
11079
11119
|
let div6;
|
|
11080
11120
|
let div0;
|
|
@@ -11103,7 +11143,7 @@ function create_if_block$e(ctx) {
|
|
|
11103
11143
|
|
|
11104
11144
|
function select_block_type(ctx, dirty) {
|
|
11105
11145
|
if (/*heading*/ ctx[0]) return create_if_block_2$6;
|
|
11106
|
-
return create_else_block$
|
|
11146
|
+
return create_else_block$8;
|
|
11107
11147
|
}
|
|
11108
11148
|
|
|
11109
11149
|
let current_block_type = select_block_type(ctx);
|
|
@@ -11340,7 +11380,7 @@ function create_if_block_3$6(ctx) {
|
|
|
11340
11380
|
}
|
|
11341
11381
|
|
|
11342
11382
|
// (150:14) {:else}
|
|
11343
|
-
function create_else_block$
|
|
11383
|
+
function create_else_block$8(ctx) {
|
|
11344
11384
|
let slot;
|
|
11345
11385
|
|
|
11346
11386
|
return {
|
|
@@ -11415,7 +11455,7 @@ function create_if_block_1$7(ctx) {
|
|
|
11415
11455
|
function create_fragment$t(ctx) {
|
|
11416
11456
|
let if_block_anchor;
|
|
11417
11457
|
let current;
|
|
11418
|
-
let if_block = /*_isOpen*/ ctx[7] && create_if_block$
|
|
11458
|
+
let if_block = /*_isOpen*/ ctx[7] && create_if_block$f(ctx);
|
|
11419
11459
|
|
|
11420
11460
|
return {
|
|
11421
11461
|
c() {
|
|
@@ -11437,7 +11477,7 @@ function create_fragment$t(ctx) {
|
|
|
11437
11477
|
transition_in(if_block, 1);
|
|
11438
11478
|
}
|
|
11439
11479
|
} else {
|
|
11440
|
-
if_block = create_if_block$
|
|
11480
|
+
if_block = create_if_block$f(ctx);
|
|
11441
11481
|
if_block.c();
|
|
11442
11482
|
transition_in(if_block, 1);
|
|
11443
11483
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -11776,7 +11816,7 @@ customElements.define("goa-modal", Modal);
|
|
|
11776
11816
|
|
|
11777
11817
|
/* libs/web-components/src/components/notification/Notification.svelte generated by Svelte v3.59.2 */
|
|
11778
11818
|
|
|
11779
|
-
function create_if_block$
|
|
11819
|
+
function create_if_block$e(ctx) {
|
|
11780
11820
|
let div4;
|
|
11781
11821
|
let div3;
|
|
11782
11822
|
let div0;
|
|
@@ -11899,7 +11939,7 @@ function create_if_block$d(ctx) {
|
|
|
11899
11939
|
function create_fragment$s(ctx) {
|
|
11900
11940
|
let if_block_anchor;
|
|
11901
11941
|
let current;
|
|
11902
|
-
let if_block = /*show*/ ctx[3] && create_if_block$
|
|
11942
|
+
let if_block = /*show*/ ctx[3] && create_if_block$e(ctx);
|
|
11903
11943
|
|
|
11904
11944
|
return {
|
|
11905
11945
|
c() {
|
|
@@ -11921,7 +11961,7 @@ function create_fragment$s(ctx) {
|
|
|
11921
11961
|
transition_in(if_block, 1);
|
|
11922
11962
|
}
|
|
11923
11963
|
} else {
|
|
11924
|
-
if_block = create_if_block$
|
|
11964
|
+
if_block = create_if_block$e(ctx);
|
|
11925
11965
|
if_block.c();
|
|
11926
11966
|
transition_in(if_block, 1);
|
|
11927
11967
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -12192,7 +12232,7 @@ function get_each_context$4(ctx, list, i) {
|
|
|
12192
12232
|
}
|
|
12193
12233
|
|
|
12194
12234
|
// (66:4) {#if variant === "all"}
|
|
12195
|
-
function create_if_block$
|
|
12235
|
+
function create_if_block$d(ctx) {
|
|
12196
12236
|
let goa_block;
|
|
12197
12237
|
let span0;
|
|
12198
12238
|
let t1;
|
|
@@ -12329,7 +12369,7 @@ function create_fragment$q(ctx) {
|
|
|
12329
12369
|
let goa_button1_disabled_value;
|
|
12330
12370
|
let mounted;
|
|
12331
12371
|
let dispose;
|
|
12332
|
-
let if_block = /*variant*/ ctx[1] === "all" && create_if_block$
|
|
12372
|
+
let if_block = /*variant*/ ctx[1] === "all" && create_if_block$d(ctx);
|
|
12333
12373
|
|
|
12334
12374
|
return {
|
|
12335
12375
|
c() {
|
|
@@ -12390,7 +12430,7 @@ function create_fragment$q(ctx) {
|
|
|
12390
12430
|
if (if_block) {
|
|
12391
12431
|
if_block.p(ctx, dirty);
|
|
12392
12432
|
} else {
|
|
12393
|
-
if_block = create_if_block$
|
|
12433
|
+
if_block = create_if_block$d(ctx);
|
|
12394
12434
|
if_block.c();
|
|
12395
12435
|
if_block.m(div, t0);
|
|
12396
12436
|
}
|
|
@@ -12667,7 +12707,7 @@ customElements.define("goa-pagination", Pagination);
|
|
|
12667
12707
|
|
|
12668
12708
|
/* libs/web-components/src/components/popover/Popover.svelte generated by Svelte v3.59.2 */
|
|
12669
12709
|
|
|
12670
|
-
function create_if_block$
|
|
12710
|
+
function create_if_block$c(ctx) {
|
|
12671
12711
|
let div0;
|
|
12672
12712
|
let t;
|
|
12673
12713
|
let div2;
|
|
@@ -12696,7 +12736,7 @@ function create_if_block$b(ctx) {
|
|
|
12696
12736
|
attr(section, "style", section_style_value = `
|
|
12697
12737
|
${cssVar("width", /*width*/ ctx[2])}
|
|
12698
12738
|
max-width: ${/*maxwidth*/ ctx[1]};
|
|
12699
|
-
padding: ${/*_padded*/ ctx[
|
|
12739
|
+
padding: ${/*_padded*/ ctx[18] ? "var(--goa-space-m)" : "0"};
|
|
12700
12740
|
`);
|
|
12701
12741
|
|
|
12702
12742
|
attr(div2, "class", "popover-container");
|
|
@@ -12708,19 +12748,19 @@ function create_if_block$b(ctx) {
|
|
|
12708
12748
|
append(div2, section);
|
|
12709
12749
|
append(section, goa_focus_trap);
|
|
12710
12750
|
append(goa_focus_trap, div1);
|
|
12711
|
-
/*div1_binding*/ ctx[
|
|
12712
|
-
/*section_binding*/ ctx[
|
|
12751
|
+
/*div1_binding*/ ctx[27](div1);
|
|
12752
|
+
/*section_binding*/ ctx[28](section);
|
|
12713
12753
|
|
|
12714
12754
|
if (!mounted) {
|
|
12715
|
-
dispose = listen(div0, "click", /*closePopover*/ ctx[
|
|
12755
|
+
dispose = listen(div0, "click", /*closePopover*/ ctx[20]);
|
|
12716
12756
|
mounted = true;
|
|
12717
12757
|
}
|
|
12718
12758
|
},
|
|
12719
12759
|
p(ctx, dirty) {
|
|
12720
|
-
if (dirty[0] & /*width, maxwidth, _padded*/
|
|
12760
|
+
if (dirty[0] & /*width, maxwidth, _padded*/ 262150 && section_style_value !== (section_style_value = `
|
|
12721
12761
|
${cssVar("width", /*width*/ ctx[2])}
|
|
12722
12762
|
max-width: ${/*maxwidth*/ ctx[1]};
|
|
12723
|
-
padding: ${/*_padded*/ ctx[
|
|
12763
|
+
padding: ${/*_padded*/ ctx[18] ? "var(--goa-space-m)" : "0"};
|
|
12724
12764
|
`)) {
|
|
12725
12765
|
attr(section, "style", section_style_value);
|
|
12726
12766
|
}
|
|
@@ -12729,8 +12769,8 @@ function create_if_block$b(ctx) {
|
|
|
12729
12769
|
if (detaching) detach(div0);
|
|
12730
12770
|
if (detaching) detach(t);
|
|
12731
12771
|
if (detaching) detach(div2);
|
|
12732
|
-
/*div1_binding*/ ctx[
|
|
12733
|
-
/*section_binding*/ ctx[
|
|
12772
|
+
/*div1_binding*/ ctx[27](null);
|
|
12773
|
+
/*section_binding*/ ctx[28](null);
|
|
12734
12774
|
mounted = false;
|
|
12735
12775
|
dispose();
|
|
12736
12776
|
}
|
|
@@ -12746,7 +12786,7 @@ function create_fragment$p(ctx) {
|
|
|
12746
12786
|
let div1_style_value;
|
|
12747
12787
|
let mounted;
|
|
12748
12788
|
let dispose;
|
|
12749
|
-
let if_block = /*_open*/ ctx[12] && create_if_block$
|
|
12789
|
+
let if_block = /*_open*/ ctx[12] && create_if_block$c(ctx);
|
|
12750
12790
|
|
|
12751
12791
|
return {
|
|
12752
12792
|
c() {
|
|
@@ -12763,6 +12803,7 @@ function create_fragment$p(ctx) {
|
|
|
12763
12803
|
attr(div1, "data-testid", /*testid*/ ctx[0]);
|
|
12764
12804
|
|
|
12765
12805
|
attr(div1, "style", div1_style_value = `
|
|
12806
|
+
${/*_relative*/ ctx[17] && "position: relative;"}
|
|
12766
12807
|
${calculateMargin(/*mt*/ ctx[3], /*mr*/ ctx[4], /*mb*/ ctx[5], /*ml*/ ctx[6])}
|
|
12767
12808
|
${cssVar("--offset-top", /*voffset*/ ctx[8])}
|
|
12768
12809
|
${cssVar("--offset-bottom", /*voffset*/ ctx[8])}
|
|
@@ -12776,13 +12817,13 @@ function create_fragment$p(ctx) {
|
|
|
12776
12817
|
insert(target, div1, anchor);
|
|
12777
12818
|
append(div1, div0);
|
|
12778
12819
|
append(div0, slot);
|
|
12779
|
-
/*div0_binding*/ ctx[
|
|
12820
|
+
/*div0_binding*/ ctx[26](div0);
|
|
12780
12821
|
append(div1, t);
|
|
12781
12822
|
if (if_block) if_block.m(div1, null);
|
|
12782
|
-
/*div1_binding_1*/ ctx[
|
|
12823
|
+
/*div1_binding_1*/ ctx[29](div1);
|
|
12783
12824
|
|
|
12784
12825
|
if (!mounted) {
|
|
12785
|
-
dispose = listen(div0, "click", /*openPopover*/ ctx[
|
|
12826
|
+
dispose = listen(div0, "click", /*openPopover*/ ctx[19]);
|
|
12786
12827
|
mounted = true;
|
|
12787
12828
|
}
|
|
12788
12829
|
},
|
|
@@ -12795,7 +12836,7 @@ function create_fragment$p(ctx) {
|
|
|
12795
12836
|
if (if_block) {
|
|
12796
12837
|
if_block.p(ctx, dirty);
|
|
12797
12838
|
} else {
|
|
12798
|
-
if_block = create_if_block$
|
|
12839
|
+
if_block = create_if_block$c(ctx);
|
|
12799
12840
|
if_block.c();
|
|
12800
12841
|
if_block.m(div1, null);
|
|
12801
12842
|
}
|
|
@@ -12808,7 +12849,8 @@ function create_fragment$p(ctx) {
|
|
|
12808
12849
|
attr(div1, "data-testid", /*testid*/ ctx[0]);
|
|
12809
12850
|
}
|
|
12810
12851
|
|
|
12811
|
-
if (dirty[0] & /*mt, mr, mb, ml, voffset, hoffset, focusborderwidth, borderradius*/
|
|
12852
|
+
if (dirty[0] & /*_relative, mt, mr, mb, ml, voffset, hoffset, focusborderwidth, borderradius*/ 135032 && div1_style_value !== (div1_style_value = `
|
|
12853
|
+
${/*_relative*/ ctx[17] && "position: relative;"}
|
|
12812
12854
|
${calculateMargin(/*mt*/ ctx[3], /*mr*/ ctx[4], /*mb*/ ctx[5], /*ml*/ ctx[6])}
|
|
12813
12855
|
${cssVar("--offset-top", /*voffset*/ ctx[8])}
|
|
12814
12856
|
${cssVar("--offset-bottom", /*voffset*/ ctx[8])}
|
|
@@ -12824,9 +12866,9 @@ function create_fragment$p(ctx) {
|
|
|
12824
12866
|
o: noop,
|
|
12825
12867
|
d(detaching) {
|
|
12826
12868
|
if (detaching) detach(div1);
|
|
12827
|
-
/*div0_binding*/ ctx[
|
|
12869
|
+
/*div0_binding*/ ctx[26](null);
|
|
12828
12870
|
if (if_block) if_block.d();
|
|
12829
|
-
/*div1_binding_1*/ ctx[
|
|
12871
|
+
/*div1_binding_1*/ ctx[29](null);
|
|
12830
12872
|
mounted = false;
|
|
12831
12873
|
dispose();
|
|
12832
12874
|
}
|
|
@@ -12857,11 +12899,13 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
|
12857
12899
|
let _padded;
|
|
12858
12900
|
let _open;
|
|
12859
12901
|
let _disabled;
|
|
12902
|
+
let _relative;
|
|
12860
12903
|
let { testid = "popover" } = $$props;
|
|
12861
12904
|
let { maxwidth = "320px" } = $$props;
|
|
12862
12905
|
let { width = "" } = $$props;
|
|
12863
12906
|
let { padded = "true" } = $$props;
|
|
12864
12907
|
let { position = "auto" } = $$props;
|
|
12908
|
+
let { relative = "false" } = $$props;
|
|
12865
12909
|
let { mt = null } = $$props;
|
|
12866
12910
|
let { mr = null } = $$props;
|
|
12867
12911
|
let { mb = null } = $$props;
|
|
@@ -12982,24 +13026,42 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
|
12982
13026
|
const windowOffset = usingNoScroll ? 0 : window.scrollY;
|
|
12983
13027
|
|
|
12984
13028
|
// If there's more space above, display the popover above the target element
|
|
12985
|
-
|
|
12986
|
-
|
|
12987
|
-
|
|
12988
|
-
|
|
12989
|
-
|
|
12990
|
-
|
|
12991
|
-
|
|
13029
|
+
if (_relative) {
|
|
13030
|
+
$$invalidate(
|
|
13031
|
+
15,
|
|
13032
|
+
_popoverEl.style.top = displayOnTop
|
|
13033
|
+
? `-${contentRect.height}px`
|
|
13034
|
+
: `${rootRect.height}px`,
|
|
13035
|
+
_popoverEl
|
|
13036
|
+
);
|
|
13037
|
+
} else {
|
|
13038
|
+
$$invalidate(
|
|
13039
|
+
15,
|
|
13040
|
+
_popoverEl.style.top = displayOnTop
|
|
13041
|
+
? `${rootRect.top - contentRect.height + windowOffset}px`
|
|
13042
|
+
: `${rootRect.top + rootRect.height + windowOffset}px`,
|
|
13043
|
+
_popoverEl
|
|
13044
|
+
);
|
|
13045
|
+
}
|
|
12992
13046
|
|
|
12993
13047
|
// Move the popover to the left if it is too far to the right and only if there is space to the left
|
|
12994
13048
|
const displayOnRight = document.body.clientWidth - targetRect.left < contentRect.width && targetRect.left > contentRect.width;
|
|
12995
13049
|
|
|
12996
|
-
|
|
12997
|
-
|
|
12998
|
-
|
|
12999
|
-
|
|
13000
|
-
|
|
13001
|
-
|
|
13002
|
-
|
|
13050
|
+
if (_relative) {
|
|
13051
|
+
if (displayOnRight) {
|
|
13052
|
+
$$invalidate(15, _popoverEl.style.right = "0", _popoverEl);
|
|
13053
|
+
} else {
|
|
13054
|
+
$$invalidate(15, _popoverEl.style.left = "0", _popoverEl);
|
|
13055
|
+
}
|
|
13056
|
+
} else {
|
|
13057
|
+
$$invalidate(
|
|
13058
|
+
15,
|
|
13059
|
+
_popoverEl.style.left = displayOnRight
|
|
13060
|
+
? `${rootRect.left + targetRect.width - contentRect.width}px`
|
|
13061
|
+
: `${rootRect.left}px`,
|
|
13062
|
+
_popoverEl
|
|
13063
|
+
);
|
|
13064
|
+
}
|
|
13003
13065
|
}
|
|
13004
13066
|
|
|
13005
13067
|
function div0_binding($$value) {
|
|
@@ -13034,14 +13096,15 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
|
13034
13096
|
if ('testid' in $$props) $$invalidate(0, testid = $$props.testid);
|
|
13035
13097
|
if ('maxwidth' in $$props) $$invalidate(1, maxwidth = $$props.maxwidth);
|
|
13036
13098
|
if ('width' in $$props) $$invalidate(2, width = $$props.width);
|
|
13037
|
-
if ('padded' in $$props) $$invalidate(
|
|
13038
|
-
if ('position' in $$props) $$invalidate(
|
|
13099
|
+
if ('padded' in $$props) $$invalidate(21, padded = $$props.padded);
|
|
13100
|
+
if ('position' in $$props) $$invalidate(22, position = $$props.position);
|
|
13101
|
+
if ('relative' in $$props) $$invalidate(23, relative = $$props.relative);
|
|
13039
13102
|
if ('mt' in $$props) $$invalidate(3, mt = $$props.mt);
|
|
13040
13103
|
if ('mr' in $$props) $$invalidate(4, mr = $$props.mr);
|
|
13041
13104
|
if ('mb' in $$props) $$invalidate(5, mb = $$props.mb);
|
|
13042
13105
|
if ('ml' in $$props) $$invalidate(6, ml = $$props.ml);
|
|
13043
|
-
if ('open' in $$props) $$invalidate(
|
|
13044
|
-
if ('disabled' in $$props) $$invalidate(
|
|
13106
|
+
if ('open' in $$props) $$invalidate(24, open = $$props.open);
|
|
13107
|
+
if ('disabled' in $$props) $$invalidate(25, disabled = $$props.disabled);
|
|
13045
13108
|
if ('tabindex' in $$props) $$invalidate(7, tabindex = $$props.tabindex);
|
|
13046
13109
|
if ('voffset' in $$props) $$invalidate(8, voffset = $$props.voffset);
|
|
13047
13110
|
if ('hoffset' in $$props) $$invalidate(9, hoffset = $$props.hoffset);
|
|
@@ -13050,19 +13113,23 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
|
13050
13113
|
};
|
|
13051
13114
|
|
|
13052
13115
|
$$self.$$.update = () => {
|
|
13053
|
-
if ($$self.$$.dirty[0] & /*padded*/
|
|
13116
|
+
if ($$self.$$.dirty[0] & /*padded*/ 2097152) {
|
|
13054
13117
|
// Reactive
|
|
13055
|
-
$$invalidate(
|
|
13118
|
+
$$invalidate(18, _padded = toBoolean(padded));
|
|
13056
13119
|
}
|
|
13057
13120
|
|
|
13058
|
-
if ($$self.$$.dirty[0] & /*open*/
|
|
13121
|
+
if ($$self.$$.dirty[0] & /*open*/ 16777216) {
|
|
13059
13122
|
$$invalidate(12, _open = toBoolean(open));
|
|
13060
13123
|
}
|
|
13061
13124
|
|
|
13062
|
-
if ($$self.$$.dirty[0] & /*disabled*/
|
|
13125
|
+
if ($$self.$$.dirty[0] & /*disabled*/ 33554432) {
|
|
13063
13126
|
_disabled = toBoolean(disabled);
|
|
13064
13127
|
}
|
|
13065
13128
|
|
|
13129
|
+
if ($$self.$$.dirty[0] & /*relative*/ 8388608) {
|
|
13130
|
+
$$invalidate(17, _relative = toBoolean(relative));
|
|
13131
|
+
}
|
|
13132
|
+
|
|
13066
13133
|
if ($$self.$$.dirty[0] & /*_open*/ 4096) {
|
|
13067
13134
|
(async () => _open && await setPopoverPosition())();
|
|
13068
13135
|
}
|
|
@@ -13096,11 +13163,13 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
|
13096
13163
|
_targetEl,
|
|
13097
13164
|
_popoverEl,
|
|
13098
13165
|
_focusTrapEl,
|
|
13166
|
+
_relative,
|
|
13099
13167
|
_padded,
|
|
13100
13168
|
openPopover,
|
|
13101
13169
|
closePopover,
|
|
13102
13170
|
padded,
|
|
13103
13171
|
position,
|
|
13172
|
+
relative,
|
|
13104
13173
|
open,
|
|
13105
13174
|
disabled,
|
|
13106
13175
|
div0_binding,
|
|
@@ -13114,7 +13183,7 @@ class Popover extends SvelteElement {
|
|
|
13114
13183
|
constructor(options) {
|
|
13115
13184
|
super();
|
|
13116
13185
|
const style = document.createElement('style');
|
|
13117
|
-
style.textContent = `:host{box-sizing:border-box;font-family:var(--goa-font-family-sans);font-size:var(--goa-font-size-4);display:flex;align-items:center}.popover-target{width:fit-content;cursor:pointer}.popover-target:focus{outline:var(--focus-border-width) solid var(--goa-color-interactive-focus)}.popover-content{color:var(--goa-color-text-default);position:absolute;
|
|
13186
|
+
style.textContent = `:host{box-sizing:border-box;font-family:var(--goa-font-family-sans);font-size:var(--goa-font-size-4);display:flex;align-items:center}.popover-target{width:fit-content;cursor:pointer}.popover-target:focus{outline:var(--focus-border-width) solid var(--goa-color-interactive-focus)}.popover-content{color:var(--goa-color-text-default);position:absolute;width:fit-content;max-width:260px;list-style-type:none;background:var(--goa-color-greyscale-white);border-radius:var(--border-radius);outline:none;filter:drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.2));z-index:99;width:max-content;margin-top:var(--offset-top, 3px);margin-bottom:var(--offset-bottom, 3px);margin-left:var(--offset-left, 0);margin-right:var(--offset-right, 0)}::slotted(ul){display:block;padding:0;margin:0;list-style-type:none;line-height:2rem}.popover-background{cursor:default;position:fixed;z-index:98;inset:0}`;
|
|
13118
13187
|
this.shadowRoot.appendChild(style);
|
|
13119
13188
|
|
|
13120
13189
|
init(
|
|
@@ -13131,14 +13200,15 @@ class Popover extends SvelteElement {
|
|
|
13131
13200
|
testid: 0,
|
|
13132
13201
|
maxwidth: 1,
|
|
13133
13202
|
width: 2,
|
|
13134
|
-
padded:
|
|
13135
|
-
position:
|
|
13203
|
+
padded: 21,
|
|
13204
|
+
position: 22,
|
|
13205
|
+
relative: 23,
|
|
13136
13206
|
mt: 3,
|
|
13137
13207
|
mr: 4,
|
|
13138
13208
|
mb: 5,
|
|
13139
13209
|
ml: 6,
|
|
13140
|
-
open:
|
|
13141
|
-
disabled:
|
|
13210
|
+
open: 24,
|
|
13211
|
+
disabled: 25,
|
|
13142
13212
|
tabindex: 7,
|
|
13143
13213
|
voffset: 8,
|
|
13144
13214
|
hoffset: 9,
|
|
@@ -13168,6 +13238,7 @@ class Popover extends SvelteElement {
|
|
|
13168
13238
|
"width",
|
|
13169
13239
|
"padded",
|
|
13170
13240
|
"position",
|
|
13241
|
+
"relative",
|
|
13171
13242
|
"mt",
|
|
13172
13243
|
"mr",
|
|
13173
13244
|
"mb",
|
|
@@ -13210,7 +13281,7 @@ class Popover extends SvelteElement {
|
|
|
13210
13281
|
}
|
|
13211
13282
|
|
|
13212
13283
|
get padded() {
|
|
13213
|
-
return this.$$.ctx[
|
|
13284
|
+
return this.$$.ctx[21];
|
|
13214
13285
|
}
|
|
13215
13286
|
|
|
13216
13287
|
set padded(padded) {
|
|
@@ -13219,7 +13290,7 @@ class Popover extends SvelteElement {
|
|
|
13219
13290
|
}
|
|
13220
13291
|
|
|
13221
13292
|
get position() {
|
|
13222
|
-
return this.$$.ctx[
|
|
13293
|
+
return this.$$.ctx[22];
|
|
13223
13294
|
}
|
|
13224
13295
|
|
|
13225
13296
|
set position(position) {
|
|
@@ -13227,6 +13298,15 @@ class Popover extends SvelteElement {
|
|
|
13227
13298
|
flush();
|
|
13228
13299
|
}
|
|
13229
13300
|
|
|
13301
|
+
get relative() {
|
|
13302
|
+
return this.$$.ctx[23];
|
|
13303
|
+
}
|
|
13304
|
+
|
|
13305
|
+
set relative(relative) {
|
|
13306
|
+
this.$$set({ relative });
|
|
13307
|
+
flush();
|
|
13308
|
+
}
|
|
13309
|
+
|
|
13230
13310
|
get mt() {
|
|
13231
13311
|
return this.$$.ctx[3];
|
|
13232
13312
|
}
|
|
@@ -13264,7 +13344,7 @@ class Popover extends SvelteElement {
|
|
|
13264
13344
|
}
|
|
13265
13345
|
|
|
13266
13346
|
get open() {
|
|
13267
|
-
return this.$$.ctx[
|
|
13347
|
+
return this.$$.ctx[24];
|
|
13268
13348
|
}
|
|
13269
13349
|
|
|
13270
13350
|
set open(open) {
|
|
@@ -13273,7 +13353,7 @@ class Popover extends SvelteElement {
|
|
|
13273
13353
|
}
|
|
13274
13354
|
|
|
13275
13355
|
get disabled() {
|
|
13276
|
-
return this.$$.ctx[
|
|
13356
|
+
return this.$$.ctx[25];
|
|
13277
13357
|
}
|
|
13278
13358
|
|
|
13279
13359
|
set disabled(disabled) {
|
|
@@ -14044,7 +14124,7 @@ function get_each_context$2(ctx, list, i) {
|
|
|
14044
14124
|
}
|
|
14045
14125
|
|
|
14046
14126
|
// (81:2) {:else}
|
|
14047
|
-
function create_else_block$
|
|
14127
|
+
function create_else_block$7(ctx) {
|
|
14048
14128
|
let div;
|
|
14049
14129
|
let div_class_value;
|
|
14050
14130
|
|
|
@@ -14337,7 +14417,7 @@ function create_if_block_1$6(ctx) {
|
|
|
14337
14417
|
}
|
|
14338
14418
|
|
|
14339
14419
|
// (43:2) {#if type === "card"}
|
|
14340
|
-
function create_if_block$
|
|
14420
|
+
function create_if_block$b(ctx) {
|
|
14341
14421
|
let div1;
|
|
14342
14422
|
let skeleton0;
|
|
14343
14423
|
let t0;
|
|
@@ -14479,11 +14559,11 @@ function create_fragment$m(ctx) {
|
|
|
14479
14559
|
let current;
|
|
14480
14560
|
|
|
14481
14561
|
const if_block_creators = [
|
|
14482
|
-
create_if_block$
|
|
14562
|
+
create_if_block$b,
|
|
14483
14563
|
create_if_block_1$6,
|
|
14484
14564
|
create_if_block_2$5,
|
|
14485
14565
|
create_if_block_3$5,
|
|
14486
|
-
create_else_block$
|
|
14566
|
+
create_else_block$7
|
|
14487
14567
|
];
|
|
14488
14568
|
|
|
14489
14569
|
const if_blocks = [];
|
|
@@ -15003,7 +15083,7 @@ function tweened(value, defaults = {}) {
|
|
|
15003
15083
|
|
|
15004
15084
|
/* libs/web-components/src/components/spinner/Spinner.svelte generated by Svelte v3.59.2 */
|
|
15005
15085
|
|
|
15006
|
-
function create_if_block$
|
|
15086
|
+
function create_if_block$a(ctx) {
|
|
15007
15087
|
let svg;
|
|
15008
15088
|
let circle;
|
|
15009
15089
|
let circle_stroke_value;
|
|
@@ -15114,7 +15194,7 @@ function create_if_block$9(ctx) {
|
|
|
15114
15194
|
|
|
15115
15195
|
function create_fragment$k(ctx) {
|
|
15116
15196
|
let if_block_anchor;
|
|
15117
|
-
let if_block = /*ready*/ ctx[6] && create_if_block$
|
|
15197
|
+
let if_block = /*ready*/ ctx[6] && create_if_block$a(ctx);
|
|
15118
15198
|
|
|
15119
15199
|
return {
|
|
15120
15200
|
c() {
|
|
@@ -15131,7 +15211,7 @@ function create_fragment$k(ctx) {
|
|
|
15131
15211
|
if (if_block) {
|
|
15132
15212
|
if_block.p(ctx, dirty);
|
|
15133
15213
|
} else {
|
|
15134
|
-
if_block = create_if_block$
|
|
15214
|
+
if_block = create_if_block$a(ctx);
|
|
15135
15215
|
if_block.c();
|
|
15136
15216
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
15137
15217
|
}
|
|
@@ -15339,62 +15419,116 @@ customElements.define("goa-spinner", Spinner);
|
|
|
15339
15419
|
|
|
15340
15420
|
/* libs/web-components/src/components/table/Table.svelte generated by Svelte v3.59.2 */
|
|
15341
15421
|
|
|
15342
|
-
function
|
|
15422
|
+
function create_else_block$6(ctx) {
|
|
15343
15423
|
let table;
|
|
15344
15424
|
let slot;
|
|
15345
|
-
let t0;
|
|
15346
|
-
let template;
|
|
15347
15425
|
let table_style_value;
|
|
15348
15426
|
|
|
15349
15427
|
return {
|
|
15350
15428
|
c() {
|
|
15351
15429
|
table = element("table");
|
|
15352
15430
|
slot = element("slot");
|
|
15353
|
-
|
|
15354
|
-
|
|
15431
|
+
attr(table, "style", table_style_value = /*width*/ ctx[0] && "width: 100%;");
|
|
15432
|
+
},
|
|
15433
|
+
m(target, anchor) {
|
|
15434
|
+
insert(target, table, anchor);
|
|
15435
|
+
append(table, slot);
|
|
15436
|
+
},
|
|
15437
|
+
p(ctx, dirty) {
|
|
15438
|
+
if (dirty & /*width*/ 1 && table_style_value !== (table_style_value = /*width*/ ctx[0] && "width: 100%;")) {
|
|
15439
|
+
attr(table, "style", table_style_value);
|
|
15440
|
+
}
|
|
15441
|
+
},
|
|
15442
|
+
d(detaching) {
|
|
15443
|
+
if (detaching) detach(table);
|
|
15444
|
+
}
|
|
15445
|
+
};
|
|
15446
|
+
}
|
|
15447
|
+
|
|
15448
|
+
// (83:2) {#if _isTableRoot}
|
|
15449
|
+
function create_if_block$9(ctx) {
|
|
15450
|
+
let slot;
|
|
15451
|
+
|
|
15452
|
+
return {
|
|
15453
|
+
c() {
|
|
15454
|
+
slot = element("slot");
|
|
15455
|
+
},
|
|
15456
|
+
m(target, anchor) {
|
|
15457
|
+
insert(target, slot, anchor);
|
|
15458
|
+
},
|
|
15459
|
+
p: noop,
|
|
15460
|
+
d(detaching) {
|
|
15461
|
+
if (detaching) detach(slot);
|
|
15462
|
+
}
|
|
15463
|
+
};
|
|
15464
|
+
}
|
|
15355
15465
|
|
|
15356
|
-
|
|
15357
|
-
|
|
15358
|
-
|
|
15466
|
+
function create_fragment$j(ctx) {
|
|
15467
|
+
let div;
|
|
15468
|
+
let div_class_value;
|
|
15469
|
+
let div_style_value;
|
|
15359
15470
|
|
|
15471
|
+
function select_block_type(ctx, dirty) {
|
|
15472
|
+
if (/*_isTableRoot*/ ctx[7]) return create_if_block$9;
|
|
15473
|
+
return create_else_block$6;
|
|
15474
|
+
}
|
|
15475
|
+
|
|
15476
|
+
let current_block_type = select_block_type(ctx);
|
|
15477
|
+
let if_block = current_block_type(ctx);
|
|
15478
|
+
|
|
15479
|
+
return {
|
|
15480
|
+
c() {
|
|
15481
|
+
div = element("div");
|
|
15482
|
+
if_block.c();
|
|
15360
15483
|
this.c = noop;
|
|
15361
|
-
attr(
|
|
15484
|
+
attr(div, "class", div_class_value = `goatable ${/*variant*/ ctx[1]}`);
|
|
15362
15485
|
|
|
15363
|
-
attr(
|
|
15364
|
-
${/*width*/ ctx[0]
|
|
15486
|
+
attr(div, "style", div_style_value = `
|
|
15487
|
+
${/*width*/ ctx[0] && `width: ${/*width*/ ctx[0]};`}
|
|
15365
15488
|
${calculateMargin(/*mt*/ ctx[2], /*mr*/ ctx[3], /*mb*/ ctx[4], /*ml*/ ctx[5])}
|
|
15366
15489
|
`);
|
|
15367
15490
|
|
|
15368
|
-
toggle_class(
|
|
15491
|
+
toggle_class(div, "sticky", /*_stickyHeader*/ ctx[8]);
|
|
15369
15492
|
},
|
|
15370
15493
|
m(target, anchor) {
|
|
15371
|
-
insert(target,
|
|
15372
|
-
|
|
15373
|
-
|
|
15374
|
-
append(table, template);
|
|
15375
|
-
/*table_binding*/ ctx[9](table);
|
|
15494
|
+
insert(target, div, anchor);
|
|
15495
|
+
if_block.m(div, null);
|
|
15496
|
+
/*div_binding*/ ctx[10](div);
|
|
15376
15497
|
},
|
|
15377
15498
|
p(ctx, [dirty]) {
|
|
15378
|
-
if (
|
|
15379
|
-
|
|
15499
|
+
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
|
|
15500
|
+
if_block.p(ctx, dirty);
|
|
15501
|
+
} else {
|
|
15502
|
+
if_block.d(1);
|
|
15503
|
+
if_block = current_block_type(ctx);
|
|
15504
|
+
|
|
15505
|
+
if (if_block) {
|
|
15506
|
+
if_block.c();
|
|
15507
|
+
if_block.m(div, null);
|
|
15508
|
+
}
|
|
15380
15509
|
}
|
|
15381
15510
|
|
|
15382
|
-
if (dirty & /*
|
|
15383
|
-
|
|
15511
|
+
if (dirty & /*variant*/ 2 && div_class_value !== (div_class_value = `goatable ${/*variant*/ ctx[1]}`)) {
|
|
15512
|
+
attr(div, "class", div_class_value);
|
|
15513
|
+
}
|
|
15514
|
+
|
|
15515
|
+
if (dirty & /*width, mt, mr, mb, ml*/ 61 && div_style_value !== (div_style_value = `
|
|
15516
|
+
${/*width*/ ctx[0] && `width: ${/*width*/ ctx[0]};`}
|
|
15384
15517
|
${calculateMargin(/*mt*/ ctx[2], /*mr*/ ctx[3], /*mb*/ ctx[4], /*ml*/ ctx[5])}
|
|
15385
15518
|
`)) {
|
|
15386
|
-
attr(
|
|
15519
|
+
attr(div, "style", div_style_value);
|
|
15387
15520
|
}
|
|
15388
15521
|
|
|
15389
|
-
if (dirty & /*variant, _stickyHeader*/
|
|
15390
|
-
toggle_class(
|
|
15522
|
+
if (dirty & /*variant, _stickyHeader*/ 258) {
|
|
15523
|
+
toggle_class(div, "sticky", /*_stickyHeader*/ ctx[8]);
|
|
15391
15524
|
}
|
|
15392
15525
|
},
|
|
15393
15526
|
i: noop,
|
|
15394
15527
|
o: noop,
|
|
15395
15528
|
d(detaching) {
|
|
15396
|
-
if (detaching) detach(
|
|
15397
|
-
|
|
15529
|
+
if (detaching) detach(div);
|
|
15530
|
+
if_block.d();
|
|
15531
|
+
/*div_binding*/ ctx[10](null);
|
|
15398
15532
|
}
|
|
15399
15533
|
};
|
|
15400
15534
|
}
|
|
@@ -15423,6 +15557,8 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
|
15423
15557
|
// Private
|
|
15424
15558
|
let _rootEl;
|
|
15425
15559
|
|
|
15560
|
+
let _isTableRoot = false;
|
|
15561
|
+
|
|
15426
15562
|
onMount(() => {
|
|
15427
15563
|
validateVariant(variant);
|
|
15428
15564
|
|
|
@@ -15436,10 +15572,8 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
|
15436
15572
|
return;
|
|
15437
15573
|
}
|
|
15438
15574
|
|
|
15439
|
-
// React
|
|
15440
|
-
|
|
15441
|
-
|
|
15442
|
-
_rootEl.append(...content.length > 0 ? content : slot.assignedElements());
|
|
15575
|
+
// React has everything nested in a table to prevent invalid DOM errors
|
|
15576
|
+
$$invalidate(7, _isTableRoot = slot.assignedElements()[0].tagName === "TABLE");
|
|
15443
15577
|
});
|
|
15444
15578
|
|
|
15445
15579
|
async function attachSortEventHandling() {
|
|
@@ -15488,7 +15622,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
|
15488
15622
|
});
|
|
15489
15623
|
}
|
|
15490
15624
|
|
|
15491
|
-
function
|
|
15625
|
+
function div_binding($$value) {
|
|
15492
15626
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
15493
15627
|
_rootEl = $$value;
|
|
15494
15628
|
$$invalidate(6, _rootEl);
|
|
@@ -15497,7 +15631,7 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
|
15497
15631
|
|
|
15498
15632
|
$$self.$$set = $$props => {
|
|
15499
15633
|
if ('width' in $$props) $$invalidate(0, width = $$props.width);
|
|
15500
|
-
if ('stickyheader' in $$props) $$invalidate(
|
|
15634
|
+
if ('stickyheader' in $$props) $$invalidate(9, stickyheader = $$props.stickyheader);
|
|
15501
15635
|
if ('variant' in $$props) $$invalidate(1, variant = $$props.variant);
|
|
15502
15636
|
if ('mt' in $$props) $$invalidate(2, mt = $$props.mt);
|
|
15503
15637
|
if ('mr' in $$props) $$invalidate(3, mr = $$props.mr);
|
|
@@ -15506,8 +15640,8 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
|
15506
15640
|
};
|
|
15507
15641
|
|
|
15508
15642
|
$$self.$$.update = () => {
|
|
15509
|
-
if ($$self.$$.dirty & /*stickyheader*/
|
|
15510
|
-
$$invalidate(
|
|
15643
|
+
if ($$self.$$.dirty & /*stickyheader*/ 512) {
|
|
15644
|
+
$$invalidate(8, _stickyHeader = toBoolean(stickyheader));
|
|
15511
15645
|
}
|
|
15512
15646
|
};
|
|
15513
15647
|
|
|
@@ -15519,9 +15653,10 @@ function instance$g($$self, $$props, $$invalidate) {
|
|
|
15519
15653
|
mb,
|
|
15520
15654
|
ml,
|
|
15521
15655
|
_rootEl,
|
|
15656
|
+
_isTableRoot,
|
|
15522
15657
|
_stickyHeader,
|
|
15523
15658
|
stickyheader,
|
|
15524
|
-
|
|
15659
|
+
div_binding
|
|
15525
15660
|
];
|
|
15526
15661
|
}
|
|
15527
15662
|
|
|
@@ -15529,7 +15664,7 @@ class Table extends SvelteElement {
|
|
|
15529
15664
|
constructor(options) {
|
|
15530
15665
|
super();
|
|
15531
15666
|
const style = document.createElement('style');
|
|
15532
|
-
style.textContent = `:host{overflow-x:auto}table{border-collapse:collapse}
|
|
15667
|
+
style.textContent = `:host{overflow-x:auto}table{border-collapse:collapse}`;
|
|
15533
15668
|
this.shadowRoot.appendChild(style);
|
|
15534
15669
|
|
|
15535
15670
|
init(
|
|
@@ -15544,7 +15679,7 @@ class Table extends SvelteElement {
|
|
|
15544
15679
|
safe_not_equal,
|
|
15545
15680
|
{
|
|
15546
15681
|
width: 0,
|
|
15547
|
-
stickyheader:
|
|
15682
|
+
stickyheader: 9,
|
|
15548
15683
|
variant: 1,
|
|
15549
15684
|
mt: 2,
|
|
15550
15685
|
mr: 3,
|
|
@@ -15580,7 +15715,7 @@ class Table extends SvelteElement {
|
|
|
15580
15715
|
}
|
|
15581
15716
|
|
|
15582
15717
|
get stickyheader() {
|
|
15583
|
-
return this.$$.ctx[
|
|
15718
|
+
return this.$$.ctx[9];
|
|
15584
15719
|
}
|
|
15585
15720
|
|
|
15586
15721
|
set stickyheader(stickyheader) {
|