@abgov/web-components 1.0.0-alpha.196 → 1.0.0-alpha.198
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/package.json +1 -1
- package/web-components.es.js +216 -164
- package/web-components.umd.js +83 -82
package/web-components.es.js
CHANGED
|
@@ -372,7 +372,7 @@ function wait() {
|
|
|
372
372
|
}
|
|
373
373
|
return promise;
|
|
374
374
|
}
|
|
375
|
-
function dispatch(node, direction, kind) {
|
|
375
|
+
function dispatch$1(node, direction, kind) {
|
|
376
376
|
node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));
|
|
377
377
|
}
|
|
378
378
|
const outroing = new Set();
|
|
@@ -436,12 +436,12 @@ function create_in_transition(node, fn, params) {
|
|
|
436
436
|
if (task)
|
|
437
437
|
task.abort();
|
|
438
438
|
running = true;
|
|
439
|
-
add_render_callback(() => dispatch(node, true, 'start'));
|
|
439
|
+
add_render_callback(() => dispatch$1(node, true, 'start'));
|
|
440
440
|
task = loop(now => {
|
|
441
441
|
if (running) {
|
|
442
442
|
if (now >= end_time) {
|
|
443
443
|
tick(1, 0);
|
|
444
|
-
dispatch(node, true, 'end');
|
|
444
|
+
dispatch$1(node, true, 'end');
|
|
445
445
|
cleanup();
|
|
446
446
|
return running = false;
|
|
447
447
|
}
|
|
@@ -491,12 +491,12 @@ function create_out_transition(node, fn, params) {
|
|
|
491
491
|
animation_name = create_rule(node, 1, 0, duration, delay, easing, css);
|
|
492
492
|
const start_time = now() + delay;
|
|
493
493
|
const end_time = start_time + duration;
|
|
494
|
-
add_render_callback(() => dispatch(node, false, 'start'));
|
|
494
|
+
add_render_callback(() => dispatch$1(node, false, 'start'));
|
|
495
495
|
loop(now => {
|
|
496
496
|
if (running) {
|
|
497
497
|
if (now >= end_time) {
|
|
498
498
|
tick(0, 1);
|
|
499
|
-
dispatch(node, false, 'end');
|
|
499
|
+
dispatch$1(node, false, 'end');
|
|
500
500
|
if (!--group.r) {
|
|
501
501
|
// this will result in `end()` being called,
|
|
502
502
|
// so we don't need to clean up here
|
|
@@ -582,12 +582,12 @@ function create_bidirectional_transition(node, fn, params, intro) {
|
|
|
582
582
|
if (b)
|
|
583
583
|
tick(0, 1);
|
|
584
584
|
running_program = init(program, duration);
|
|
585
|
-
add_render_callback(() => dispatch(node, b, 'start'));
|
|
585
|
+
add_render_callback(() => dispatch$1(node, b, 'start'));
|
|
586
586
|
loop(now => {
|
|
587
587
|
if (pending_program && now > pending_program.start) {
|
|
588
588
|
running_program = init(pending_program, duration);
|
|
589
589
|
pending_program = null;
|
|
590
|
-
dispatch(node, running_program.b, 'start');
|
|
590
|
+
dispatch$1(node, running_program.b, 'start');
|
|
591
591
|
if (css) {
|
|
592
592
|
clear_animation();
|
|
593
593
|
animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);
|
|
@@ -596,7 +596,7 @@ function create_bidirectional_transition(node, fn, params, intro) {
|
|
|
596
596
|
if (running_program) {
|
|
597
597
|
if (now >= running_program.end) {
|
|
598
598
|
tick(t = running_program.b, 1 - t);
|
|
599
|
-
dispatch(node, running_program.b, 'end');
|
|
599
|
+
dispatch$1(node, running_program.b, 'end');
|
|
600
600
|
if (!pending_program) {
|
|
601
601
|
// we're done
|
|
602
602
|
if (running_program.b) {
|
|
@@ -1608,7 +1608,7 @@ function create_else_block$9(ctx) {
|
|
|
1608
1608
|
}
|
|
1609
1609
|
|
|
1610
1610
|
// (51:2) {#if showIcon}
|
|
1611
|
-
function create_if_block_1$
|
|
1611
|
+
function create_if_block_1$g(ctx) {
|
|
1612
1612
|
let goa_icon;
|
|
1613
1613
|
let goa_icon_arialabel_value;
|
|
1614
1614
|
|
|
@@ -1674,7 +1674,7 @@ function create_fragment$Q(ctx) {
|
|
|
1674
1674
|
let div_class_value;
|
|
1675
1675
|
|
|
1676
1676
|
function select_block_type(ctx, dirty) {
|
|
1677
|
-
if (/*showIcon*/ ctx[8]) return create_if_block_1$
|
|
1677
|
+
if (/*showIcon*/ ctx[8]) return create_if_block_1$g;
|
|
1678
1678
|
return create_else_block$9;
|
|
1679
1679
|
}
|
|
1680
1680
|
|
|
@@ -2142,7 +2142,7 @@ function create_else_block$8(ctx) {
|
|
|
2142
2142
|
let t1;
|
|
2143
2143
|
let if_block1_anchor;
|
|
2144
2144
|
let if_block0 = /*leadingicon*/ ctx[3] && create_if_block_2$a(ctx);
|
|
2145
|
-
let if_block1 = /*trailingicon*/ ctx[4] && create_if_block_1$
|
|
2145
|
+
let if_block1 = /*trailingicon*/ ctx[4] && create_if_block_1$f(ctx);
|
|
2146
2146
|
|
|
2147
2147
|
return {
|
|
2148
2148
|
c() {
|
|
@@ -2181,7 +2181,7 @@ function create_else_block$8(ctx) {
|
|
|
2181
2181
|
if (if_block1) {
|
|
2182
2182
|
if_block1.p(ctx, dirty);
|
|
2183
2183
|
} else {
|
|
2184
|
-
if_block1 = create_if_block_1$
|
|
2184
|
+
if_block1 = create_if_block_1$f(ctx);
|
|
2185
2185
|
if_block1.c();
|
|
2186
2186
|
if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
|
|
2187
2187
|
}
|
|
@@ -2262,7 +2262,7 @@ function create_if_block_2$a(ctx) {
|
|
|
2262
2262
|
}
|
|
2263
2263
|
|
|
2264
2264
|
// (58:4) {#if trailingicon}
|
|
2265
|
-
function create_if_block_1$
|
|
2265
|
+
function create_if_block_1$f(ctx) {
|
|
2266
2266
|
let goa_icon;
|
|
2267
2267
|
|
|
2268
2268
|
return {
|
|
@@ -3572,7 +3572,7 @@ customElements.define("goa-card-image", CardImage);
|
|
|
3572
3572
|
|
|
3573
3573
|
/* libs/web-components/src/components/checkbox/Checkbox.svelte generated by Svelte v3.51.0 */
|
|
3574
3574
|
|
|
3575
|
-
function create_if_block_1$
|
|
3575
|
+
function create_if_block_1$e(ctx) {
|
|
3576
3576
|
let svg;
|
|
3577
3577
|
let path;
|
|
3578
3578
|
|
|
@@ -3639,7 +3639,7 @@ function create_fragment$G(ctx) {
|
|
|
3639
3639
|
|
|
3640
3640
|
function select_block_type(ctx, dirty) {
|
|
3641
3641
|
if (/*isIndeterminate*/ ctx[10]) return create_if_block$l;
|
|
3642
|
-
if (/*isChecked*/ ctx[9]) return create_if_block_1$
|
|
3642
|
+
if (/*isChecked*/ ctx[9]) return create_if_block_1$e;
|
|
3643
3643
|
}
|
|
3644
3644
|
|
|
3645
3645
|
let current_block_type = select_block_type(ctx);
|
|
@@ -4041,7 +4041,7 @@ customElements.define("goa-checkbox", Checkbox);
|
|
|
4041
4041
|
|
|
4042
4042
|
/* libs/web-components/src/components/chip/Chip.svelte generated by Svelte v3.51.0 */
|
|
4043
4043
|
|
|
4044
|
-
function create_if_block_1$
|
|
4044
|
+
function create_if_block_1$d(ctx) {
|
|
4045
4045
|
let goa_icon;
|
|
4046
4046
|
|
|
4047
4047
|
return {
|
|
@@ -4118,7 +4118,7 @@ function create_fragment$F(ctx) {
|
|
|
4118
4118
|
let div1_style_value;
|
|
4119
4119
|
let mounted;
|
|
4120
4120
|
let dispose;
|
|
4121
|
-
let if_block0 = /*leadingicon*/ ctx[4] && create_if_block_1$
|
|
4121
|
+
let if_block0 = /*leadingicon*/ ctx[4] && create_if_block_1$d(ctx);
|
|
4122
4122
|
let if_block1 = /*_deletable*/ ctx[11] && create_if_block$k(ctx);
|
|
4123
4123
|
|
|
4124
4124
|
return {
|
|
@@ -4167,7 +4167,7 @@ function create_fragment$F(ctx) {
|
|
|
4167
4167
|
if (if_block0) {
|
|
4168
4168
|
if_block0.p(ctx, dirty);
|
|
4169
4169
|
} else {
|
|
4170
|
-
if_block0 = create_if_block_1$
|
|
4170
|
+
if_block0 = create_if_block_1$d(ctx);
|
|
4171
4171
|
if_block0.c();
|
|
4172
4172
|
if_block0.m(div1, t0);
|
|
4173
4173
|
}
|
|
@@ -4551,7 +4551,7 @@ function create_if_block$j(ctx) {
|
|
|
4551
4551
|
let if_block;
|
|
4552
4552
|
let if_block_anchor;
|
|
4553
4553
|
let current;
|
|
4554
|
-
const if_block_creators = [create_if_block_1$
|
|
4554
|
+
const if_block_creators = [create_if_block_1$c, create_if_block_3$9];
|
|
4555
4555
|
const if_blocks = [];
|
|
4556
4556
|
|
|
4557
4557
|
function select_block_type(ctx, dirty) {
|
|
@@ -4697,7 +4697,7 @@ function create_if_block_3$9(ctx) {
|
|
|
4697
4697
|
}
|
|
4698
4698
|
|
|
4699
4699
|
// (32:2) {#if fullscreen}
|
|
4700
|
-
function create_if_block_1$
|
|
4700
|
+
function create_if_block_1$c(ctx) {
|
|
4701
4701
|
let div;
|
|
4702
4702
|
let goa_spinner;
|
|
4703
4703
|
let t;
|
|
@@ -5674,7 +5674,7 @@ function create_else_block$7(ctx) {
|
|
|
5674
5674
|
let ul_style_value;
|
|
5675
5675
|
let mounted;
|
|
5676
5676
|
let dispose;
|
|
5677
|
-
let if_block = /*_isMenuVisible*/ ctx[17] && create_if_block_1$
|
|
5677
|
+
let if_block = /*_isMenuVisible*/ ctx[17] && create_if_block_1$b(ctx);
|
|
5678
5678
|
let each_value_1 = /*_options*/ ctx[12];
|
|
5679
5679
|
const get_key = ctx => /*index*/ ctx[54];
|
|
5680
5680
|
|
|
@@ -5753,7 +5753,7 @@ function create_else_block$7(ctx) {
|
|
|
5753
5753
|
if (if_block) {
|
|
5754
5754
|
if_block.p(ctx, dirty);
|
|
5755
5755
|
} else {
|
|
5756
|
-
if_block = create_if_block_1$
|
|
5756
|
+
if_block = create_if_block_1$b(ctx);
|
|
5757
5757
|
if_block.c();
|
|
5758
5758
|
if_block.m(t0.parentNode, t0);
|
|
5759
5759
|
}
|
|
@@ -5928,7 +5928,7 @@ function create_if_block$i(ctx) {
|
|
|
5928
5928
|
}
|
|
5929
5929
|
|
|
5930
5930
|
// (271:4) {#if _isMenuVisible}
|
|
5931
|
-
function create_if_block_1$
|
|
5931
|
+
function create_if_block_1$b(ctx) {
|
|
5932
5932
|
let div;
|
|
5933
5933
|
let div_data_testid_value;
|
|
5934
5934
|
let noscroll_action;
|
|
@@ -7808,7 +7808,7 @@ function create_if_block_3$8(ctx) {
|
|
|
7808
7808
|
}
|
|
7809
7809
|
|
|
7810
7810
|
// (42:2) {#if error}
|
|
7811
|
-
function create_if_block_1$
|
|
7811
|
+
function create_if_block_1$a(ctx) {
|
|
7812
7812
|
let div;
|
|
7813
7813
|
let goa_icon;
|
|
7814
7814
|
let t0;
|
|
@@ -7873,7 +7873,7 @@ function create_fragment$u(ctx) {
|
|
|
7873
7873
|
let t2;
|
|
7874
7874
|
let div1_style_value;
|
|
7875
7875
|
let if_block0 = /*label*/ ctx[5] && create_if_block_2$8(ctx);
|
|
7876
|
-
let if_block1 = /*error*/ ctx[7] && create_if_block_1$
|
|
7876
|
+
let if_block1 = /*error*/ ctx[7] && create_if_block_1$a(ctx);
|
|
7877
7877
|
let if_block2 = /*helptext*/ ctx[6] && create_if_block$f(ctx);
|
|
7878
7878
|
|
|
7879
7879
|
return {
|
|
@@ -7921,7 +7921,7 @@ function create_fragment$u(ctx) {
|
|
|
7921
7921
|
if (if_block1) {
|
|
7922
7922
|
if_block1.p(ctx, dirty);
|
|
7923
7923
|
} else {
|
|
7924
|
-
if_block1 = create_if_block_1$
|
|
7924
|
+
if_block1 = create_if_block_1$a(ctx);
|
|
7925
7925
|
if_block1.c();
|
|
7926
7926
|
if_block1.m(div1, t2);
|
|
7927
7927
|
}
|
|
@@ -8812,7 +8812,7 @@ function create_if_block$e(ctx) {
|
|
|
8812
8812
|
function select_block_type(ctx, dirty) {
|
|
8813
8813
|
if (dirty & /*type*/ 16) show_if = null;
|
|
8814
8814
|
if (show_if == null) show_if = !!Object.keys(/*_iconOverrides*/ ctx[13]).includes(/*type*/ ctx[4]);
|
|
8815
|
-
if (show_if) return create_if_block_1$
|
|
8815
|
+
if (show_if) return create_if_block_1$9;
|
|
8816
8816
|
return create_else_block$6;
|
|
8817
8817
|
}
|
|
8818
8818
|
|
|
@@ -8878,7 +8878,7 @@ function create_else_block$6(ctx) {
|
|
|
8878
8878
|
}
|
|
8879
8879
|
|
|
8880
8880
|
// (56:4) {#if Object.keys(_iconOverrides).includes(type)}
|
|
8881
|
-
function create_if_block_1$
|
|
8881
|
+
function create_if_block_1$9(ctx) {
|
|
8882
8882
|
let div;
|
|
8883
8883
|
let raw_value = /*_iconOverrides*/ ctx[13][/*type*/ ctx[4]] + "";
|
|
8884
8884
|
|
|
@@ -9266,7 +9266,7 @@ function create_if_block_4$2(ctx) {
|
|
|
9266
9266
|
};
|
|
9267
9267
|
}
|
|
9268
9268
|
|
|
9269
|
-
// (
|
|
9269
|
+
// (124:4) {#if leadingicon}
|
|
9270
9270
|
function create_if_block_3$7(ctx) {
|
|
9271
9271
|
let goa_icon;
|
|
9272
9272
|
|
|
@@ -9291,7 +9291,7 @@ function create_if_block_3$7(ctx) {
|
|
|
9291
9291
|
};
|
|
9292
9292
|
}
|
|
9293
9293
|
|
|
9294
|
-
// (
|
|
9294
|
+
// (159:4) {#if trailingicon && !handlesTrailingIconClick}
|
|
9295
9295
|
function create_if_block_2$7(ctx) {
|
|
9296
9296
|
let goa_icon;
|
|
9297
9297
|
|
|
@@ -9317,8 +9317,8 @@ function create_if_block_2$7(ctx) {
|
|
|
9317
9317
|
};
|
|
9318
9318
|
}
|
|
9319
9319
|
|
|
9320
|
-
// (
|
|
9321
|
-
function create_if_block_1$
|
|
9320
|
+
// (169:4) {#if trailingicon && handlesTrailingIconClick}
|
|
9321
|
+
function create_if_block_1$8(ctx) {
|
|
9322
9322
|
let goa_icon_button;
|
|
9323
9323
|
let mounted;
|
|
9324
9324
|
let dispose;
|
|
@@ -9326,7 +9326,7 @@ function create_if_block_1$7(ctx) {
|
|
|
9326
9326
|
return {
|
|
9327
9327
|
c() {
|
|
9328
9328
|
goa_icon_button = element("goa-icon-button");
|
|
9329
|
-
set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[
|
|
9329
|
+
set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[25]);
|
|
9330
9330
|
set_custom_element_data(goa_icon_button, "variant", "nocolor");
|
|
9331
9331
|
set_custom_element_data(goa_icon_button, "size", "medium");
|
|
9332
9332
|
set_custom_element_data(goa_icon_button, "icon", /*trailingicon*/ ctx[6]);
|
|
@@ -9341,8 +9341,8 @@ function create_if_block_1$7(ctx) {
|
|
|
9341
9341
|
}
|
|
9342
9342
|
},
|
|
9343
9343
|
p(ctx, dirty) {
|
|
9344
|
-
if (dirty[0] & /*isDisabled*/
|
|
9345
|
-
set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[
|
|
9344
|
+
if (dirty[0] & /*isDisabled*/ 33554432) {
|
|
9345
|
+
set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[25]);
|
|
9346
9346
|
}
|
|
9347
9347
|
|
|
9348
9348
|
if (dirty[0] & /*trailingicon*/ 64) {
|
|
@@ -9357,7 +9357,7 @@ function create_if_block_1$7(ctx) {
|
|
|
9357
9357
|
};
|
|
9358
9358
|
}
|
|
9359
9359
|
|
|
9360
|
-
// (
|
|
9360
|
+
// (181:4) {#if suffix}
|
|
9361
9361
|
function create_if_block$d(ctx) {
|
|
9362
9362
|
let span;
|
|
9363
9363
|
let t;
|
|
@@ -9403,8 +9403,8 @@ function create_fragment$p(ctx) {
|
|
|
9403
9403
|
let dispose;
|
|
9404
9404
|
let if_block0 = /*prefix*/ ctx[14] && create_if_block_4$2(ctx);
|
|
9405
9405
|
let if_block1 = /*leadingicon*/ ctx[5] && create_if_block_3$7(ctx);
|
|
9406
|
-
let if_block2 = /*trailingicon*/ ctx[6] && !/*handlesTrailingIconClick*/ ctx[
|
|
9407
|
-
let if_block3 = /*trailingicon*/ ctx[6] && /*handlesTrailingIconClick*/ ctx[
|
|
9406
|
+
let if_block2 = /*trailingicon*/ ctx[6] && !/*handlesTrailingIconClick*/ ctx[28] && create_if_block_2$7(ctx);
|
|
9407
|
+
let if_block3 = /*trailingicon*/ ctx[6] && /*handlesTrailingIconClick*/ ctx[28] && create_if_block_1$8(ctx);
|
|
9408
9408
|
let if_block4 = /*suffix*/ ctx[15] && create_if_block$d(ctx);
|
|
9409
9409
|
|
|
9410
9410
|
return {
|
|
@@ -9433,17 +9433,17 @@ function create_fragment$p(ctx) {
|
|
|
9433
9433
|
|
|
9434
9434
|
attr(input, "class", input_class_value = `
|
|
9435
9435
|
input--${/*variant*/ ctx[7]}
|
|
9436
|
-
${/*_leadingContentSlot*/ ctx[
|
|
9436
|
+
${/*_leadingContentSlot*/ ctx[23] && !/*isDisabled*/ ctx[25]
|
|
9437
9437
|
? "input-leading-content"
|
|
9438
9438
|
: ""}
|
|
9439
|
-
${/*_trailingContentSlot*/ ctx[
|
|
9439
|
+
${/*_trailingContentSlot*/ ctx[24] && !/*isDisabled*/ ctx[25]
|
|
9440
9440
|
? "input-trailing-content"
|
|
9441
9441
|
: ""}
|
|
9442
9442
|
`);
|
|
9443
9443
|
|
|
9444
9444
|
attr(input, "style", input_style_value = `--search-icon-offset: ${/*trailingicon*/ ctx[6] ? "-0.5rem" : "0"}`);
|
|
9445
|
-
input.readOnly = /*isReadonly*/ ctx[
|
|
9446
|
-
input.disabled = /*isDisabled*/ ctx[
|
|
9445
|
+
input.readOnly = /*isReadonly*/ ctx[27];
|
|
9446
|
+
input.disabled = /*isDisabled*/ ctx[25];
|
|
9447
9447
|
attr(input, "data-testid", /*testid*/ ctx[8]);
|
|
9448
9448
|
attr(input, "autocapitalize", /*autocapitalize*/ ctx[3]);
|
|
9449
9449
|
attr(input, "name", /*name*/ ctx[2]);
|
|
@@ -9453,28 +9453,29 @@ function create_fragment$p(ctx) {
|
|
|
9453
9453
|
attr(input, "min", /*min*/ ctx[11]);
|
|
9454
9454
|
attr(input, "max", /*max*/ ctx[12]);
|
|
9455
9455
|
attr(input, "step", /*step*/ ctx[13]);
|
|
9456
|
+
attr(input, "maxlength", /*maxlength*/ ctx[16]);
|
|
9456
9457
|
attr(input, "role", "textbox");
|
|
9457
9458
|
attr(input, "aria-label", input_aria_label_value = /*arialabel*/ ctx[10] || /*name*/ ctx[2]);
|
|
9458
9459
|
attr(div1, "class", "trailing-content");
|
|
9459
9460
|
|
|
9460
9461
|
attr(div2, "class", div2_class_value = `
|
|
9461
9462
|
goa-input
|
|
9462
|
-
${/*isDisabled*/ ctx[
|
|
9463
|
+
${/*isDisabled*/ ctx[25] ? "goa-input--disabled" : ""}
|
|
9463
9464
|
variant--${/*variant*/ ctx[7]}
|
|
9464
9465
|
type--${/*type*/ ctx[1]}
|
|
9465
|
-
${/*_leadingContentSlot*/ ctx[
|
|
9466
|
+
${/*_leadingContentSlot*/ ctx[23]
|
|
9466
9467
|
? "goa-input-leading-content"
|
|
9467
9468
|
: ""}
|
|
9468
|
-
${/*_trailingContentSlot*/ ctx[
|
|
9469
|
+
${/*_trailingContentSlot*/ ctx[24]
|
|
9469
9470
|
? "goa-input-trailing-content"
|
|
9470
9471
|
: ""}
|
|
9471
9472
|
`);
|
|
9472
9473
|
|
|
9473
|
-
toggle_class(div2, "error", /*isError*/ ctx[
|
|
9474
|
+
toggle_class(div2, "error", /*isError*/ ctx[26]);
|
|
9474
9475
|
attr(div3, "class", "container");
|
|
9475
9476
|
|
|
9476
9477
|
attr(div3, "style", div3_style_value = `
|
|
9477
|
-
${calculateMargin(/*mt*/ ctx[
|
|
9478
|
+
${calculateMargin(/*mt*/ ctx[17], /*mr*/ ctx[18], /*mb*/ ctx[19], /*ml*/ ctx[20])};
|
|
9478
9479
|
--width: ${/*width*/ ctx[9]};
|
|
9479
9480
|
`);
|
|
9480
9481
|
},
|
|
@@ -9488,7 +9489,7 @@ function create_fragment$p(ctx) {
|
|
|
9488
9489
|
if (if_block1) if_block1.m(div2, null);
|
|
9489
9490
|
append(div2, t2);
|
|
9490
9491
|
append(div2, input);
|
|
9491
|
-
/*input_binding*/ ctx[
|
|
9492
|
+
/*input_binding*/ ctx[37](input);
|
|
9492
9493
|
append(div2, t3);
|
|
9493
9494
|
if (if_block2) if_block2.m(div2, null);
|
|
9494
9495
|
append(div2, t4);
|
|
@@ -9497,12 +9498,12 @@ function create_fragment$p(ctx) {
|
|
|
9497
9498
|
if (if_block4) if_block4.m(div2, null);
|
|
9498
9499
|
append(div2, t6);
|
|
9499
9500
|
append(div2, div1);
|
|
9500
|
-
/*div3_binding*/ ctx[
|
|
9501
|
+
/*div3_binding*/ ctx[38](div3);
|
|
9501
9502
|
|
|
9502
9503
|
if (!mounted) {
|
|
9503
9504
|
dispose = [
|
|
9504
|
-
listen(input, "keyup", /*onKeyUp*/ ctx[
|
|
9505
|
-
listen(input, "change", /*onKeyUp*/ ctx[
|
|
9505
|
+
listen(input, "keyup", /*onKeyUp*/ ctx[29]),
|
|
9506
|
+
listen(input, "change", /*onKeyUp*/ ctx[29])
|
|
9506
9507
|
];
|
|
9507
9508
|
|
|
9508
9509
|
mounted = true;
|
|
@@ -9535,12 +9536,12 @@ function create_fragment$p(ctx) {
|
|
|
9535
9536
|
if_block1 = null;
|
|
9536
9537
|
}
|
|
9537
9538
|
|
|
9538
|
-
if (dirty[0] & /*variant, _leadingContentSlot, isDisabled, _trailingContentSlot*/
|
|
9539
|
+
if (dirty[0] & /*variant, _leadingContentSlot, isDisabled, _trailingContentSlot*/ 58720384 && input_class_value !== (input_class_value = `
|
|
9539
9540
|
input--${/*variant*/ ctx[7]}
|
|
9540
|
-
${/*_leadingContentSlot*/ ctx[
|
|
9541
|
+
${/*_leadingContentSlot*/ ctx[23] && !/*isDisabled*/ ctx[25]
|
|
9541
9542
|
? "input-leading-content"
|
|
9542
9543
|
: ""}
|
|
9543
|
-
${/*_trailingContentSlot*/ ctx[
|
|
9544
|
+
${/*_trailingContentSlot*/ ctx[24] && !/*isDisabled*/ ctx[25]
|
|
9544
9545
|
? "input-trailing-content"
|
|
9545
9546
|
: ""}
|
|
9546
9547
|
`)) {
|
|
@@ -9551,12 +9552,12 @@ function create_fragment$p(ctx) {
|
|
|
9551
9552
|
attr(input, "style", input_style_value);
|
|
9552
9553
|
}
|
|
9553
9554
|
|
|
9554
|
-
if (dirty[0] & /*isReadonly*/
|
|
9555
|
-
input.readOnly = /*isReadonly*/ ctx[
|
|
9555
|
+
if (dirty[0] & /*isReadonly*/ 134217728) {
|
|
9556
|
+
input.readOnly = /*isReadonly*/ ctx[27];
|
|
9556
9557
|
}
|
|
9557
9558
|
|
|
9558
|
-
if (dirty[0] & /*isDisabled*/
|
|
9559
|
-
input.disabled = /*isDisabled*/ ctx[
|
|
9559
|
+
if (dirty[0] & /*isDisabled*/ 33554432) {
|
|
9560
|
+
input.disabled = /*isDisabled*/ ctx[25];
|
|
9560
9561
|
}
|
|
9561
9562
|
|
|
9562
9563
|
if (dirty[0] & /*testid*/ 256) {
|
|
@@ -9595,11 +9596,15 @@ function create_fragment$p(ctx) {
|
|
|
9595
9596
|
attr(input, "step", /*step*/ ctx[13]);
|
|
9596
9597
|
}
|
|
9597
9598
|
|
|
9599
|
+
if (dirty[0] & /*maxlength*/ 65536) {
|
|
9600
|
+
attr(input, "maxlength", /*maxlength*/ ctx[16]);
|
|
9601
|
+
}
|
|
9602
|
+
|
|
9598
9603
|
if (dirty[0] & /*arialabel, name*/ 1028 && input_aria_label_value !== (input_aria_label_value = /*arialabel*/ ctx[10] || /*name*/ ctx[2])) {
|
|
9599
9604
|
attr(input, "aria-label", input_aria_label_value);
|
|
9600
9605
|
}
|
|
9601
9606
|
|
|
9602
|
-
if (/*trailingicon*/ ctx[6] && !/*handlesTrailingIconClick*/ ctx[
|
|
9607
|
+
if (/*trailingicon*/ ctx[6] && !/*handlesTrailingIconClick*/ ctx[28]) {
|
|
9603
9608
|
if (if_block2) {
|
|
9604
9609
|
if_block2.p(ctx, dirty);
|
|
9605
9610
|
} else {
|
|
@@ -9612,11 +9617,11 @@ function create_fragment$p(ctx) {
|
|
|
9612
9617
|
if_block2 = null;
|
|
9613
9618
|
}
|
|
9614
9619
|
|
|
9615
|
-
if (/*trailingicon*/ ctx[6] && /*handlesTrailingIconClick*/ ctx[
|
|
9620
|
+
if (/*trailingicon*/ ctx[6] && /*handlesTrailingIconClick*/ ctx[28]) {
|
|
9616
9621
|
if (if_block3) {
|
|
9617
9622
|
if_block3.p(ctx, dirty);
|
|
9618
9623
|
} else {
|
|
9619
|
-
if_block3 = create_if_block_1$
|
|
9624
|
+
if_block3 = create_if_block_1$8(ctx);
|
|
9620
9625
|
if_block3.c();
|
|
9621
9626
|
if_block3.m(div2, t5);
|
|
9622
9627
|
}
|
|
@@ -9638,27 +9643,27 @@ function create_fragment$p(ctx) {
|
|
|
9638
9643
|
if_block4 = null;
|
|
9639
9644
|
}
|
|
9640
9645
|
|
|
9641
|
-
if (dirty[0] & /*isDisabled, variant, type, _leadingContentSlot, _trailingContentSlot*/
|
|
9646
|
+
if (dirty[0] & /*isDisabled, variant, type, _leadingContentSlot, _trailingContentSlot*/ 58720386 && div2_class_value !== (div2_class_value = `
|
|
9642
9647
|
goa-input
|
|
9643
|
-
${/*isDisabled*/ ctx[
|
|
9648
|
+
${/*isDisabled*/ ctx[25] ? "goa-input--disabled" : ""}
|
|
9644
9649
|
variant--${/*variant*/ ctx[7]}
|
|
9645
9650
|
type--${/*type*/ ctx[1]}
|
|
9646
|
-
${/*_leadingContentSlot*/ ctx[
|
|
9651
|
+
${/*_leadingContentSlot*/ ctx[23]
|
|
9647
9652
|
? "goa-input-leading-content"
|
|
9648
9653
|
: ""}
|
|
9649
|
-
${/*_trailingContentSlot*/ ctx[
|
|
9654
|
+
${/*_trailingContentSlot*/ ctx[24]
|
|
9650
9655
|
? "goa-input-trailing-content"
|
|
9651
9656
|
: ""}
|
|
9652
9657
|
`)) {
|
|
9653
9658
|
attr(div2, "class", div2_class_value);
|
|
9654
9659
|
}
|
|
9655
9660
|
|
|
9656
|
-
if (dirty[0] & /*isDisabled, variant, type, _leadingContentSlot, _trailingContentSlot, isError*/
|
|
9657
|
-
toggle_class(div2, "error", /*isError*/ ctx[
|
|
9661
|
+
if (dirty[0] & /*isDisabled, variant, type, _leadingContentSlot, _trailingContentSlot, isError*/ 125829250) {
|
|
9662
|
+
toggle_class(div2, "error", /*isError*/ ctx[26]);
|
|
9658
9663
|
}
|
|
9659
9664
|
|
|
9660
|
-
if (dirty[0] & /*mt, mr, mb, ml, width*/
|
|
9661
|
-
${calculateMargin(/*mt*/ ctx[
|
|
9665
|
+
if (dirty[0] & /*mt, mr, mb, ml, width*/ 1966592 && div3_style_value !== (div3_style_value = `
|
|
9666
|
+
${calculateMargin(/*mt*/ ctx[17], /*mr*/ ctx[18], /*mb*/ ctx[19], /*ml*/ ctx[20])};
|
|
9662
9667
|
--width: ${/*width*/ ctx[9]};
|
|
9663
9668
|
`)) {
|
|
9664
9669
|
attr(div3, "style", div3_style_value);
|
|
@@ -9670,11 +9675,11 @@ function create_fragment$p(ctx) {
|
|
|
9670
9675
|
if (detaching) detach(div3);
|
|
9671
9676
|
if (if_block0) if_block0.d();
|
|
9672
9677
|
if (if_block1) if_block1.d();
|
|
9673
|
-
/*input_binding*/ ctx[
|
|
9678
|
+
/*input_binding*/ ctx[37](null);
|
|
9674
9679
|
if (if_block2) if_block2.d();
|
|
9675
9680
|
if (if_block3) if_block3.d();
|
|
9676
9681
|
if (if_block4) if_block4.d();
|
|
9677
|
-
/*div3_binding*/ ctx[
|
|
9682
|
+
/*div3_binding*/ ctx[38](null);
|
|
9678
9683
|
mounted = false;
|
|
9679
9684
|
run_all(dispose);
|
|
9680
9685
|
}
|
|
@@ -9731,6 +9736,7 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
|
9731
9736
|
let { prefix = "" } = $$props;
|
|
9732
9737
|
let { suffix = "" } = $$props;
|
|
9733
9738
|
let { debounce = 0 } = $$props;
|
|
9739
|
+
let { maxlength = null } = $$props;
|
|
9734
9740
|
let { mt = null } = $$props;
|
|
9735
9741
|
let { mr = null } = $$props;
|
|
9736
9742
|
let { mb = null } = $$props;
|
|
@@ -9776,27 +9782,27 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
|
9776
9782
|
const leadingContentSlot = _rootEL.querySelector("slot[name=leadingContent]");
|
|
9777
9783
|
|
|
9778
9784
|
if (leadingContentSlot && leadingContentSlot.assignedNodes().length > 0) {
|
|
9779
|
-
$$invalidate(
|
|
9785
|
+
$$invalidate(23, _leadingContentSlot = true);
|
|
9780
9786
|
}
|
|
9781
9787
|
|
|
9782
9788
|
const trailingContentSlot = _rootEL.querySelector("slot[name=trailingContent]");
|
|
9783
9789
|
|
|
9784
9790
|
if (trailingContentSlot && trailingContentSlot.assignedNodes().length > 0) {
|
|
9785
|
-
$$invalidate(
|
|
9791
|
+
$$invalidate(24, _trailingContentSlot = true);
|
|
9786
9792
|
}
|
|
9787
9793
|
});
|
|
9788
9794
|
|
|
9789
9795
|
function input_binding($$value) {
|
|
9790
9796
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
9791
9797
|
inputEl = $$value;
|
|
9792
|
-
$$invalidate(
|
|
9798
|
+
$$invalidate(21, inputEl);
|
|
9793
9799
|
});
|
|
9794
9800
|
}
|
|
9795
9801
|
|
|
9796
9802
|
function div3_binding($$value) {
|
|
9797
9803
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
9798
9804
|
_rootEL = $$value;
|
|
9799
|
-
$$invalidate(
|
|
9805
|
+
$$invalidate(22, _rootEL);
|
|
9800
9806
|
});
|
|
9801
9807
|
}
|
|
9802
9808
|
|
|
@@ -9809,11 +9815,11 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
|
9809
9815
|
if ('leadingicon' in $$props) $$invalidate(5, leadingicon = $$props.leadingicon);
|
|
9810
9816
|
if ('trailingicon' in $$props) $$invalidate(6, trailingicon = $$props.trailingicon);
|
|
9811
9817
|
if ('variant' in $$props) $$invalidate(7, variant = $$props.variant);
|
|
9812
|
-
if ('disabled' in $$props) $$invalidate(
|
|
9813
|
-
if ('handletrailingiconclick' in $$props) $$invalidate(
|
|
9814
|
-
if ('focused' in $$props) $$invalidate(
|
|
9815
|
-
if ('readonly' in $$props) $$invalidate(
|
|
9816
|
-
if ('error' in $$props) $$invalidate(
|
|
9818
|
+
if ('disabled' in $$props) $$invalidate(30, disabled = $$props.disabled);
|
|
9819
|
+
if ('handletrailingiconclick' in $$props) $$invalidate(31, handletrailingiconclick = $$props.handletrailingiconclick);
|
|
9820
|
+
if ('focused' in $$props) $$invalidate(32, focused = $$props.focused);
|
|
9821
|
+
if ('readonly' in $$props) $$invalidate(33, readonly = $$props.readonly);
|
|
9822
|
+
if ('error' in $$props) $$invalidate(34, error = $$props.error);
|
|
9817
9823
|
if ('testid' in $$props) $$invalidate(8, testid = $$props.testid);
|
|
9818
9824
|
if ('width' in $$props) $$invalidate(9, width = $$props.width);
|
|
9819
9825
|
if ('arialabel' in $$props) $$invalidate(10, arialabel = $$props.arialabel);
|
|
@@ -9822,41 +9828,42 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
|
9822
9828
|
if ('step' in $$props) $$invalidate(13, step = $$props.step);
|
|
9823
9829
|
if ('prefix' in $$props) $$invalidate(14, prefix = $$props.prefix);
|
|
9824
9830
|
if ('suffix' in $$props) $$invalidate(15, suffix = $$props.suffix);
|
|
9825
|
-
if ('debounce' in $$props) $$invalidate(
|
|
9826
|
-
if ('
|
|
9827
|
-
if ('
|
|
9828
|
-
if ('
|
|
9829
|
-
if ('
|
|
9831
|
+
if ('debounce' in $$props) $$invalidate(35, debounce = $$props.debounce);
|
|
9832
|
+
if ('maxlength' in $$props) $$invalidate(16, maxlength = $$props.maxlength);
|
|
9833
|
+
if ('mt' in $$props) $$invalidate(17, mt = $$props.mt);
|
|
9834
|
+
if ('mr' in $$props) $$invalidate(18, mr = $$props.mr);
|
|
9835
|
+
if ('mb' in $$props) $$invalidate(19, mb = $$props.mb);
|
|
9836
|
+
if ('ml' in $$props) $$invalidate(20, ml = $$props.ml);
|
|
9830
9837
|
};
|
|
9831
9838
|
|
|
9832
9839
|
$$self.$$.update = () => {
|
|
9833
|
-
if ($$self.$$.dirty[
|
|
9834
|
-
$$invalidate(
|
|
9840
|
+
if ($$self.$$.dirty[1] & /*handletrailingiconclick*/ 1) {
|
|
9841
|
+
$$invalidate(28, handlesTrailingIconClick = toBoolean(handletrailingiconclick));
|
|
9835
9842
|
}
|
|
9836
9843
|
|
|
9837
|
-
if ($$self.$$.dirty[1] & /*focused*/
|
|
9838
|
-
$$invalidate(
|
|
9844
|
+
if ($$self.$$.dirty[1] & /*focused*/ 2) {
|
|
9845
|
+
$$invalidate(36, isFocused = toBoolean(focused));
|
|
9839
9846
|
}
|
|
9840
9847
|
|
|
9841
|
-
if ($$self.$$.dirty[1] & /*readonly*/
|
|
9842
|
-
$$invalidate(
|
|
9848
|
+
if ($$self.$$.dirty[1] & /*readonly*/ 4) {
|
|
9849
|
+
$$invalidate(27, isReadonly = toBoolean(readonly));
|
|
9843
9850
|
}
|
|
9844
9851
|
|
|
9845
|
-
if ($$self.$$.dirty[1] & /*error*/
|
|
9846
|
-
$$invalidate(
|
|
9852
|
+
if ($$self.$$.dirty[1] & /*error*/ 8) {
|
|
9853
|
+
$$invalidate(26, isError = toBoolean(error));
|
|
9847
9854
|
}
|
|
9848
9855
|
|
|
9849
|
-
if ($$self.$$.dirty[0] & /*disabled*/
|
|
9850
|
-
$$invalidate(
|
|
9856
|
+
if ($$self.$$.dirty[0] & /*disabled*/ 1073741824) {
|
|
9857
|
+
$$invalidate(25, isDisabled = toBoolean(disabled));
|
|
9851
9858
|
}
|
|
9852
9859
|
|
|
9853
|
-
if ($$self.$$.dirty[0] & /*inputEl*/
|
|
9860
|
+
if ($$self.$$.dirty[0] & /*inputEl*/ 2097152 | $$self.$$.dirty[1] & /*isFocused*/ 32) {
|
|
9854
9861
|
if (isFocused && inputEl) {
|
|
9855
9862
|
setTimeout(() => inputEl.focus(), 1);
|
|
9856
9863
|
}
|
|
9857
9864
|
}
|
|
9858
9865
|
|
|
9859
|
-
if ($$self.$$.dirty[0] & /*inputEl, type*/
|
|
9866
|
+
if ($$self.$$.dirty[0] & /*inputEl, type*/ 2097154) {
|
|
9860
9867
|
if (inputEl && type === "search") {
|
|
9861
9868
|
inputEl.addEventListener("search", e => {
|
|
9862
9869
|
onKeyUp(e);
|
|
@@ -9882,6 +9889,7 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
|
9882
9889
|
step,
|
|
9883
9890
|
prefix,
|
|
9884
9891
|
suffix,
|
|
9892
|
+
maxlength,
|
|
9885
9893
|
mt,
|
|
9886
9894
|
mr,
|
|
9887
9895
|
mb,
|
|
@@ -9933,11 +9941,11 @@ class Input extends SvelteElement {
|
|
|
9933
9941
|
leadingicon: 5,
|
|
9934
9942
|
trailingicon: 6,
|
|
9935
9943
|
variant: 7,
|
|
9936
|
-
disabled:
|
|
9937
|
-
handletrailingiconclick:
|
|
9938
|
-
focused:
|
|
9939
|
-
readonly:
|
|
9940
|
-
error:
|
|
9944
|
+
disabled: 30,
|
|
9945
|
+
handletrailingiconclick: 31,
|
|
9946
|
+
focused: 32,
|
|
9947
|
+
readonly: 33,
|
|
9948
|
+
error: 34,
|
|
9941
9949
|
testid: 8,
|
|
9942
9950
|
width: 9,
|
|
9943
9951
|
arialabel: 10,
|
|
@@ -9946,11 +9954,12 @@ class Input extends SvelteElement {
|
|
|
9946
9954
|
step: 13,
|
|
9947
9955
|
prefix: 14,
|
|
9948
9956
|
suffix: 15,
|
|
9949
|
-
debounce:
|
|
9950
|
-
|
|
9951
|
-
|
|
9952
|
-
|
|
9953
|
-
|
|
9957
|
+
debounce: 35,
|
|
9958
|
+
maxlength: 16,
|
|
9959
|
+
mt: 17,
|
|
9960
|
+
mr: 18,
|
|
9961
|
+
mb: 19,
|
|
9962
|
+
ml: 20
|
|
9954
9963
|
},
|
|
9955
9964
|
null,
|
|
9956
9965
|
[-1, -1]
|
|
@@ -9992,6 +10001,7 @@ class Input extends SvelteElement {
|
|
|
9992
10001
|
"prefix",
|
|
9993
10002
|
"suffix",
|
|
9994
10003
|
"debounce",
|
|
10004
|
+
"maxlength",
|
|
9995
10005
|
"mt",
|
|
9996
10006
|
"mr",
|
|
9997
10007
|
"mb",
|
|
@@ -10072,7 +10082,7 @@ class Input extends SvelteElement {
|
|
|
10072
10082
|
}
|
|
10073
10083
|
|
|
10074
10084
|
get disabled() {
|
|
10075
|
-
return this.$$.ctx[
|
|
10085
|
+
return this.$$.ctx[30];
|
|
10076
10086
|
}
|
|
10077
10087
|
|
|
10078
10088
|
set disabled(disabled) {
|
|
@@ -10081,7 +10091,7 @@ class Input extends SvelteElement {
|
|
|
10081
10091
|
}
|
|
10082
10092
|
|
|
10083
10093
|
get handletrailingiconclick() {
|
|
10084
|
-
return this.$$.ctx[
|
|
10094
|
+
return this.$$.ctx[31];
|
|
10085
10095
|
}
|
|
10086
10096
|
|
|
10087
10097
|
set handletrailingiconclick(handletrailingiconclick) {
|
|
@@ -10090,7 +10100,7 @@ class Input extends SvelteElement {
|
|
|
10090
10100
|
}
|
|
10091
10101
|
|
|
10092
10102
|
get focused() {
|
|
10093
|
-
return this.$$.ctx[
|
|
10103
|
+
return this.$$.ctx[32];
|
|
10094
10104
|
}
|
|
10095
10105
|
|
|
10096
10106
|
set focused(focused) {
|
|
@@ -10099,7 +10109,7 @@ class Input extends SvelteElement {
|
|
|
10099
10109
|
}
|
|
10100
10110
|
|
|
10101
10111
|
get readonly() {
|
|
10102
|
-
return this.$$.ctx[
|
|
10112
|
+
return this.$$.ctx[33];
|
|
10103
10113
|
}
|
|
10104
10114
|
|
|
10105
10115
|
set readonly(readonly) {
|
|
@@ -10108,7 +10118,7 @@ class Input extends SvelteElement {
|
|
|
10108
10118
|
}
|
|
10109
10119
|
|
|
10110
10120
|
get error() {
|
|
10111
|
-
return this.$$.ctx[
|
|
10121
|
+
return this.$$.ctx[34];
|
|
10112
10122
|
}
|
|
10113
10123
|
|
|
10114
10124
|
set error(error) {
|
|
@@ -10189,7 +10199,7 @@ class Input extends SvelteElement {
|
|
|
10189
10199
|
}
|
|
10190
10200
|
|
|
10191
10201
|
get debounce() {
|
|
10192
|
-
return this.$$.ctx[
|
|
10202
|
+
return this.$$.ctx[35];
|
|
10193
10203
|
}
|
|
10194
10204
|
|
|
10195
10205
|
set debounce(debounce) {
|
|
@@ -10197,17 +10207,26 @@ class Input extends SvelteElement {
|
|
|
10197
10207
|
flush();
|
|
10198
10208
|
}
|
|
10199
10209
|
|
|
10200
|
-
get
|
|
10210
|
+
get maxlength() {
|
|
10201
10211
|
return this.$$.ctx[16];
|
|
10202
10212
|
}
|
|
10203
10213
|
|
|
10214
|
+
set maxlength(maxlength) {
|
|
10215
|
+
this.$$set({ maxlength });
|
|
10216
|
+
flush();
|
|
10217
|
+
}
|
|
10218
|
+
|
|
10219
|
+
get mt() {
|
|
10220
|
+
return this.$$.ctx[17];
|
|
10221
|
+
}
|
|
10222
|
+
|
|
10204
10223
|
set mt(mt) {
|
|
10205
10224
|
this.$$set({ mt });
|
|
10206
10225
|
flush();
|
|
10207
10226
|
}
|
|
10208
10227
|
|
|
10209
10228
|
get mr() {
|
|
10210
|
-
return this.$$.ctx[
|
|
10229
|
+
return this.$$.ctx[18];
|
|
10211
10230
|
}
|
|
10212
10231
|
|
|
10213
10232
|
set mr(mr) {
|
|
@@ -10216,7 +10235,7 @@ class Input extends SvelteElement {
|
|
|
10216
10235
|
}
|
|
10217
10236
|
|
|
10218
10237
|
get mb() {
|
|
10219
|
-
return this.$$.ctx[
|
|
10238
|
+
return this.$$.ctx[19];
|
|
10220
10239
|
}
|
|
10221
10240
|
|
|
10222
10241
|
set mb(mb) {
|
|
@@ -10225,7 +10244,7 @@ class Input extends SvelteElement {
|
|
|
10225
10244
|
}
|
|
10226
10245
|
|
|
10227
10246
|
get ml() {
|
|
10228
|
-
return this.$$.ctx[
|
|
10247
|
+
return this.$$.ctx[20];
|
|
10229
10248
|
}
|
|
10230
10249
|
|
|
10231
10250
|
set ml(ml) {
|
|
@@ -10258,7 +10277,7 @@ function create_if_block_3$6(ctx) {
|
|
|
10258
10277
|
}
|
|
10259
10278
|
|
|
10260
10279
|
// (31:4) {#if ["alpha", "beta"].includes(type)}
|
|
10261
|
-
function create_if_block_1$
|
|
10280
|
+
function create_if_block_1$7(ctx) {
|
|
10262
10281
|
let div0;
|
|
10263
10282
|
let t0_value = capitalize(/*type*/ ctx[0]) + "";
|
|
10264
10283
|
let t0;
|
|
@@ -10394,7 +10413,7 @@ function create_fragment$o(ctx) {
|
|
|
10394
10413
|
let t2;
|
|
10395
10414
|
let header_style_value;
|
|
10396
10415
|
let if_block0 = /*type*/ ctx[0] === "live" && create_if_block_3$6();
|
|
10397
|
-
let if_block1 = show_if && create_if_block_1$
|
|
10416
|
+
let if_block1 = show_if && create_if_block_1$7(ctx);
|
|
10398
10417
|
let if_block2 = /*version*/ ctx[1] && create_if_block$c(ctx);
|
|
10399
10418
|
|
|
10400
10419
|
return {
|
|
@@ -10443,7 +10462,7 @@ function create_fragment$o(ctx) {
|
|
|
10443
10462
|
if (if_block1) {
|
|
10444
10463
|
if_block1.p(ctx, dirty);
|
|
10445
10464
|
} else {
|
|
10446
|
-
if_block1 = create_if_block_1$
|
|
10465
|
+
if_block1 = create_if_block_1$7(ctx);
|
|
10447
10466
|
if_block1.c();
|
|
10448
10467
|
if_block1.m(div1, t1);
|
|
10449
10468
|
}
|
|
@@ -10621,7 +10640,7 @@ function create_if_block$b(ctx) {
|
|
|
10621
10640
|
|
|
10622
10641
|
let current_block_type = select_block_type(ctx);
|
|
10623
10642
|
let if_block1 = current_block_type(ctx);
|
|
10624
|
-
let if_block2 = /*_isClosable*/ ctx[9] && create_if_block_1$
|
|
10643
|
+
let if_block2 = /*_isClosable*/ ctx[9] && create_if_block_1$6(ctx);
|
|
10625
10644
|
|
|
10626
10645
|
return {
|
|
10627
10646
|
c() {
|
|
@@ -10730,7 +10749,7 @@ function create_if_block$b(ctx) {
|
|
|
10730
10749
|
if (if_block2) {
|
|
10731
10750
|
if_block2.p(ctx, dirty);
|
|
10732
10751
|
} else {
|
|
10733
|
-
if_block2 = create_if_block_1$
|
|
10752
|
+
if_block2 = create_if_block_1$6(ctx);
|
|
10734
10753
|
if_block2.c();
|
|
10735
10754
|
if_block2.m(header, null);
|
|
10736
10755
|
}
|
|
@@ -10890,7 +10909,7 @@ function create_if_block_2$5(ctx) {
|
|
|
10890
10909
|
}
|
|
10891
10910
|
|
|
10892
10911
|
// (154:12) {#if _isClosable}
|
|
10893
|
-
function create_if_block_1$
|
|
10912
|
+
function create_if_block_1$6(ctx) {
|
|
10894
10913
|
let div;
|
|
10895
10914
|
let goa_icon_button;
|
|
10896
10915
|
let mounted;
|
|
@@ -13474,7 +13493,7 @@ function create_if_block_2$4(ctx) {
|
|
|
13474
13493
|
}
|
|
13475
13494
|
|
|
13476
13495
|
// (54:31)
|
|
13477
|
-
function create_if_block_1$
|
|
13496
|
+
function create_if_block_1$5(ctx) {
|
|
13478
13497
|
let div2;
|
|
13479
13498
|
let div0;
|
|
13480
13499
|
let skeleton0;
|
|
@@ -13707,7 +13726,7 @@ function create_fragment$g(ctx) {
|
|
|
13707
13726
|
|
|
13708
13727
|
const if_block_creators = [
|
|
13709
13728
|
create_if_block$7,
|
|
13710
|
-
create_if_block_1$
|
|
13729
|
+
create_if_block_1$5,
|
|
13711
13730
|
create_if_block_2$4,
|
|
13712
13731
|
create_if_block_3$4,
|
|
13713
13732
|
create_else_block$4
|
|
@@ -14622,6 +14641,16 @@ function create_fragment$d(ctx) {
|
|
|
14622
14641
|
};
|
|
14623
14642
|
}
|
|
14624
14643
|
|
|
14644
|
+
function dispatch(el, params) {
|
|
14645
|
+
el.dispatchEvent(new CustomEvent("_sort",
|
|
14646
|
+
{
|
|
14647
|
+
composed: true,
|
|
14648
|
+
bubbles: true,
|
|
14649
|
+
cancelable: false,
|
|
14650
|
+
detail: params
|
|
14651
|
+
}));
|
|
14652
|
+
}
|
|
14653
|
+
|
|
14625
14654
|
function instance$a($$self, $$props, $$invalidate) {
|
|
14626
14655
|
let _stickyHeader;
|
|
14627
14656
|
const [Variants, validateVariant] = typeValidator("Table variant", ["normal", "relaxed"], true);
|
|
@@ -14638,7 +14667,11 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
14638
14667
|
|
|
14639
14668
|
onMount(() => {
|
|
14640
14669
|
validateVariant(variant);
|
|
14670
|
+
|
|
14671
|
+
// without setTimeout it won't properly sort in Safari
|
|
14641
14672
|
setTimeout(attachSortEventHandling, 0);
|
|
14673
|
+
|
|
14674
|
+
// exit here if when running tests (tests don't have assignedElements)
|
|
14642
14675
|
const slot = _rootEl.querySelector("slot");
|
|
14643
14676
|
|
|
14644
14677
|
if (!slot || slot.assignedElements().length === 0) {
|
|
@@ -14663,10 +14696,10 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
14663
14696
|
// relay state to all children
|
|
14664
14697
|
headings.forEach(child => {
|
|
14665
14698
|
if (child.getAttribute("name") === sortBy) {
|
|
14666
|
-
const direction = child
|
|
14699
|
+
const direction = child["direction"];
|
|
14667
14700
|
|
|
14668
|
-
// starting direction is
|
|
14669
|
-
const newDirection = direction === "
|
|
14701
|
+
// starting direction is asc
|
|
14702
|
+
const newDirection = direction === "asc" ? "desc" : "asc";
|
|
14670
14703
|
|
|
14671
14704
|
sortDir = newDirection === "asc" ? 1 : -1;
|
|
14672
14705
|
child.setAttribute("direction", newDirection);
|
|
@@ -14675,14 +14708,25 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
14675
14708
|
}
|
|
14676
14709
|
});
|
|
14677
14710
|
|
|
14678
|
-
heading
|
|
14679
|
-
{
|
|
14680
|
-
composed: true,
|
|
14681
|
-
bubbles: false,
|
|
14682
|
-
cancelable: true,
|
|
14683
|
-
detail: { sortBy, sortDir }
|
|
14684
|
-
}));
|
|
14711
|
+
dispatch(heading, { sortBy, sortDir });
|
|
14685
14712
|
});
|
|
14713
|
+
|
|
14714
|
+
// dispatch the default sort params if initially set
|
|
14715
|
+
const initialSortBy = heading.getAttribute("name");
|
|
14716
|
+
|
|
14717
|
+
const initialDirection = heading["direction"];
|
|
14718
|
+
|
|
14719
|
+
if (initialDirection && initialDirection !== "none") {
|
|
14720
|
+
setTimeout(
|
|
14721
|
+
() => {
|
|
14722
|
+
dispatch(heading, {
|
|
14723
|
+
sortBy: initialSortBy,
|
|
14724
|
+
sortDir: initialDirection === "asc" ? 1 : -1
|
|
14725
|
+
});
|
|
14726
|
+
},
|
|
14727
|
+
10
|
|
14728
|
+
);
|
|
14729
|
+
}
|
|
14686
14730
|
});
|
|
14687
14731
|
}
|
|
14688
14732
|
|
|
@@ -14835,51 +14879,60 @@ customElements.define("goa-table", Table);
|
|
|
14835
14879
|
/* libs/web-components/src/components/table/TableSortHeader.svelte generated by Svelte v3.51.0 */
|
|
14836
14880
|
|
|
14837
14881
|
function create_else_block$3(ctx) {
|
|
14838
|
-
let
|
|
14839
|
-
let img_src_value;
|
|
14882
|
+
let div;
|
|
14840
14883
|
|
|
14841
14884
|
return {
|
|
14842
14885
|
c() {
|
|
14843
|
-
|
|
14844
|
-
|
|
14845
|
-
|
|
14846
|
-
|
|
14886
|
+
div = element("div");
|
|
14887
|
+
|
|
14888
|
+
div.innerHTML = `<goa-icon type="caret-up" size="small"></goa-icon>
|
|
14889
|
+
<goa-icon type="caret-down" size="small"></goa-icon>`;
|
|
14890
|
+
|
|
14891
|
+
attr(div, "class", "direction--none");
|
|
14847
14892
|
},
|
|
14848
14893
|
m(target, anchor) {
|
|
14849
|
-
insert(target,
|
|
14894
|
+
insert(target, div, anchor);
|
|
14850
14895
|
},
|
|
14851
|
-
|
|
14852
|
-
if (
|
|
14853
|
-
|
|
14854
|
-
|
|
14896
|
+
d(detaching) {
|
|
14897
|
+
if (detaching) detach(div);
|
|
14898
|
+
}
|
|
14899
|
+
};
|
|
14900
|
+
}
|
|
14855
14901
|
|
|
14856
|
-
|
|
14857
|
-
|
|
14858
|
-
|
|
14902
|
+
// (71:32)
|
|
14903
|
+
function create_if_block_1$4(ctx) {
|
|
14904
|
+
let goa_icon;
|
|
14905
|
+
|
|
14906
|
+
return {
|
|
14907
|
+
c() {
|
|
14908
|
+
goa_icon = element("goa-icon");
|
|
14909
|
+
set_custom_element_data(goa_icon, "type", "caret-up");
|
|
14910
|
+
set_custom_element_data(goa_icon, "size", "small");
|
|
14911
|
+
},
|
|
14912
|
+
m(target, anchor) {
|
|
14913
|
+
insert(target, goa_icon, anchor);
|
|
14859
14914
|
},
|
|
14860
14915
|
d(detaching) {
|
|
14861
|
-
if (detaching) detach(
|
|
14916
|
+
if (detaching) detach(goa_icon);
|
|
14862
14917
|
}
|
|
14863
14918
|
};
|
|
14864
14919
|
}
|
|
14865
14920
|
|
|
14866
|
-
// (
|
|
14921
|
+
// (69:2) {#if direction === "desc"}
|
|
14867
14922
|
function create_if_block$5(ctx) {
|
|
14868
|
-
let
|
|
14869
|
-
let img_src_value;
|
|
14923
|
+
let goa_icon;
|
|
14870
14924
|
|
|
14871
14925
|
return {
|
|
14872
14926
|
c() {
|
|
14873
|
-
|
|
14874
|
-
|
|
14875
|
-
|
|
14927
|
+
goa_icon = element("goa-icon");
|
|
14928
|
+
set_custom_element_data(goa_icon, "type", "caret-down");
|
|
14929
|
+
set_custom_element_data(goa_icon, "size", "small");
|
|
14876
14930
|
},
|
|
14877
14931
|
m(target, anchor) {
|
|
14878
|
-
insert(target,
|
|
14932
|
+
insert(target, goa_icon, anchor);
|
|
14879
14933
|
},
|
|
14880
|
-
p: noop,
|
|
14881
14934
|
d(detaching) {
|
|
14882
|
-
if (detaching) detach(
|
|
14935
|
+
if (detaching) detach(goa_icon);
|
|
14883
14936
|
}
|
|
14884
14937
|
};
|
|
14885
14938
|
}
|
|
@@ -14890,7 +14943,8 @@ function create_fragment$c(ctx) {
|
|
|
14890
14943
|
let t;
|
|
14891
14944
|
|
|
14892
14945
|
function select_block_type(ctx, dirty) {
|
|
14893
|
-
if (/*direction*/ ctx[0] === "
|
|
14946
|
+
if (/*direction*/ ctx[0] === "desc") return create_if_block$5;
|
|
14947
|
+
if (/*direction*/ ctx[0] === "asc") return create_if_block_1$4;
|
|
14894
14948
|
return create_else_block$3;
|
|
14895
14949
|
}
|
|
14896
14950
|
|
|
@@ -14912,9 +14966,7 @@ function create_fragment$c(ctx) {
|
|
|
14912
14966
|
if_block.m(button, null);
|
|
14913
14967
|
},
|
|
14914
14968
|
p(ctx, [dirty]) {
|
|
14915
|
-
if (current_block_type
|
|
14916
|
-
if_block.p(ctx, dirty);
|
|
14917
|
-
} else {
|
|
14969
|
+
if (current_block_type !== (current_block_type = select_block_type(ctx))) {
|
|
14918
14970
|
if_block.d(1);
|
|
14919
14971
|
if_block = current_block_type(ctx);
|
|
14920
14972
|
|
|
@@ -14946,7 +14998,7 @@ function instance$9($$self, $$props, $$invalidate) {
|
|
|
14946
14998
|
class TableSortHeader extends SvelteElement {
|
|
14947
14999
|
constructor(options) {
|
|
14948
15000
|
super();
|
|
14949
|
-
this.shadowRoot.innerHTML = `<style>:host{display:flex;align-items:flex-end}button{border:none;background:none;display:flex;font-family:inherit;font-size:inherit;font-weight:inherit;color:inherit;
|
|
15001
|
+
this.shadowRoot.innerHTML = `<style>:host{display:flex;align-items:flex-end}button{border:none;background:none;display:flex;font-family:inherit;font-size:inherit;font-weight:inherit;color:inherit;width:100%;height:3.75rem;align-items:center;padding:0 1rem;text-align:left;gap:0.25rem;align-items:center}button:hover{background-color:var(--goa-color-greyscale-100);cursor:pointer;color:var(--goa-color-interactive-hover)}button goa-icon{color:var(--goa-color-interactive-default)}button:hover goa-icon{color:var(--goa-color-interactive-hover)}button .direction--none goa-icon{color:var(--goa-color-greyscale-400)}button:hover .direction--none goa-icon{color:var(--goa-color-greyscale-400)}goa-icon{scale:0.8}.direction--none goa-icon{height:0.625rem}.direction--none{display:inline-flex;flex-direction:column;align-items:center}</style>`;
|
|
14950
15002
|
|
|
14951
15003
|
init(
|
|
14952
15004
|
this,
|