@abgov/web-components 1.0.0-alpha.70 → 1.0.0-alpha.73
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/package.json +1 -1
- package/web-components.es.js +829 -336
- package/web-components.umd.js +24 -16
package/web-components.es.js
CHANGED
|
@@ -835,7 +835,7 @@ if (typeof HTMLElement === 'function') {
|
|
|
835
835
|
|
|
836
836
|
/* libs/web-components/src/components/page-block/PageBlock.svelte generated by Svelte v3.44.3 */
|
|
837
837
|
|
|
838
|
-
function create_fragment$
|
|
838
|
+
function create_fragment$C(ctx) {
|
|
839
839
|
let div;
|
|
840
840
|
|
|
841
841
|
return {
|
|
@@ -870,7 +870,7 @@ class PageBlock extends SvelteElement {
|
|
|
870
870
|
customElement: true
|
|
871
871
|
},
|
|
872
872
|
null,
|
|
873
|
-
create_fragment$
|
|
873
|
+
create_fragment$C,
|
|
874
874
|
safe_not_equal,
|
|
875
875
|
{},
|
|
876
876
|
null
|
|
@@ -888,7 +888,7 @@ customElements.define("goa-page-block", PageBlock);
|
|
|
888
888
|
|
|
889
889
|
/* libs/web-components/src/components/app-header/AppHeader.svelte generated by Svelte v3.44.3 */
|
|
890
890
|
|
|
891
|
-
function create_fragment$
|
|
891
|
+
function create_fragment$B(ctx) {
|
|
892
892
|
let div1;
|
|
893
893
|
let a;
|
|
894
894
|
let img0;
|
|
@@ -959,7 +959,7 @@ function create_fragment$z(ctx) {
|
|
|
959
959
|
};
|
|
960
960
|
}
|
|
961
961
|
|
|
962
|
-
function instance$
|
|
962
|
+
function instance$x($$self, $$props, $$invalidate) {
|
|
963
963
|
let { url = "#" } = $$props;
|
|
964
964
|
let { title = "" } = $$props;
|
|
965
965
|
let { testid = "" } = $$props;
|
|
@@ -985,8 +985,8 @@ class AppHeader extends SvelteElement {
|
|
|
985
985
|
props: attribute_to_object(this.attributes),
|
|
986
986
|
customElement: true
|
|
987
987
|
},
|
|
988
|
-
instance$
|
|
989
|
-
create_fragment$
|
|
988
|
+
instance$x,
|
|
989
|
+
create_fragment$B,
|
|
990
990
|
safe_not_equal,
|
|
991
991
|
{ url: 0, title: 1, testid: 2 },
|
|
992
992
|
null
|
|
@@ -1536,7 +1536,7 @@ function create_each_block$2(key_1, ctx) {
|
|
|
1536
1536
|
};
|
|
1537
1537
|
}
|
|
1538
1538
|
|
|
1539
|
-
function create_fragment$
|
|
1539
|
+
function create_fragment$A(ctx) {
|
|
1540
1540
|
let hr;
|
|
1541
1541
|
let t0;
|
|
1542
1542
|
let div3;
|
|
@@ -1715,7 +1715,7 @@ function create_fragment$y(ctx) {
|
|
|
1715
1715
|
};
|
|
1716
1716
|
}
|
|
1717
1717
|
|
|
1718
|
-
function instance$
|
|
1718
|
+
function instance$w($$self, $$props, $$invalidate) {
|
|
1719
1719
|
let isDefaultFooter;
|
|
1720
1720
|
let isMetaLinksOnlyFooter;
|
|
1721
1721
|
let isNavigationLinksOnlyFooter;
|
|
@@ -1862,8 +1862,8 @@ class AppFooter extends SvelteElement {
|
|
|
1862
1862
|
props: attribute_to_object(this.attributes),
|
|
1863
1863
|
customElement: true
|
|
1864
1864
|
},
|
|
1865
|
-
instance$
|
|
1866
|
-
create_fragment$
|
|
1865
|
+
instance$w,
|
|
1866
|
+
create_fragment$A,
|
|
1867
1867
|
safe_not_equal,
|
|
1868
1868
|
{
|
|
1869
1869
|
id: 14,
|
|
@@ -1958,7 +1958,7 @@ customElements.define("goa-app-footer", AppFooter);
|
|
|
1958
1958
|
|
|
1959
1959
|
/* libs/web-components/src/components/app-footer/MetaLink.svelte generated by Svelte v3.44.3 */
|
|
1960
1960
|
|
|
1961
|
-
function create_fragment$
|
|
1961
|
+
function create_fragment$z(ctx) {
|
|
1962
1962
|
return {
|
|
1963
1963
|
c() {
|
|
1964
1964
|
this.c = noop;
|
|
@@ -1971,7 +1971,7 @@ function create_fragment$x(ctx) {
|
|
|
1971
1971
|
};
|
|
1972
1972
|
}
|
|
1973
1973
|
|
|
1974
|
-
function instance$
|
|
1974
|
+
function instance$v($$self, $$props, $$invalidate) {
|
|
1975
1975
|
let { footerid = "goa-app-footer-id" } = $$props;
|
|
1976
1976
|
let { title = "" } = $$props;
|
|
1977
1977
|
let { url = "" } = $$props;
|
|
@@ -2002,8 +2002,8 @@ class MetaLink extends SvelteElement {
|
|
|
2002
2002
|
props: attribute_to_object(this.attributes),
|
|
2003
2003
|
customElement: true
|
|
2004
2004
|
},
|
|
2005
|
-
instance$
|
|
2006
|
-
create_fragment$
|
|
2005
|
+
instance$v,
|
|
2006
|
+
create_fragment$z,
|
|
2007
2007
|
safe_not_equal,
|
|
2008
2008
|
{ footerid: 0, title: 1, url: 2 },
|
|
2009
2009
|
null
|
|
@@ -2057,7 +2057,7 @@ customElements.define("goa-meta-link", MetaLink);
|
|
|
2057
2057
|
|
|
2058
2058
|
/* libs/web-components/src/components/app-footer/NavigationLink.svelte generated by Svelte v3.44.3 */
|
|
2059
2059
|
|
|
2060
|
-
function create_fragment$
|
|
2060
|
+
function create_fragment$y(ctx) {
|
|
2061
2061
|
return {
|
|
2062
2062
|
c() {
|
|
2063
2063
|
this.c = noop;
|
|
@@ -2070,7 +2070,7 @@ function create_fragment$w(ctx) {
|
|
|
2070
2070
|
};
|
|
2071
2071
|
}
|
|
2072
2072
|
|
|
2073
|
-
function instance$
|
|
2073
|
+
function instance$u($$self, $$props, $$invalidate) {
|
|
2074
2074
|
let { footerid = "goa-app-footer-id" } = $$props;
|
|
2075
2075
|
let { title = "" } = $$props;
|
|
2076
2076
|
let { url = "" } = $$props;
|
|
@@ -2109,8 +2109,8 @@ class NavigationLink extends SvelteElement {
|
|
|
2109
2109
|
props: attribute_to_object(this.attributes),
|
|
2110
2110
|
customElement: true
|
|
2111
2111
|
},
|
|
2112
|
-
instance$
|
|
2113
|
-
create_fragment$
|
|
2112
|
+
instance$u,
|
|
2113
|
+
create_fragment$y,
|
|
2114
2114
|
safe_not_equal,
|
|
2115
2115
|
{
|
|
2116
2116
|
footerid: 0,
|
|
@@ -2255,7 +2255,7 @@ function create_if_block$f(ctx) {
|
|
|
2255
2255
|
};
|
|
2256
2256
|
}
|
|
2257
2257
|
|
|
2258
|
-
function create_fragment$
|
|
2258
|
+
function create_fragment$x(ctx) {
|
|
2259
2259
|
let div;
|
|
2260
2260
|
let t;
|
|
2261
2261
|
let div_class_value;
|
|
@@ -2335,7 +2335,7 @@ function create_fragment$v(ctx) {
|
|
|
2335
2335
|
};
|
|
2336
2336
|
}
|
|
2337
2337
|
|
|
2338
|
-
function instance$
|
|
2338
|
+
function instance$t($$self, $$props, $$invalidate) {
|
|
2339
2339
|
let showIcon;
|
|
2340
2340
|
let iconType;
|
|
2341
2341
|
let { type } = $$props;
|
|
@@ -2376,7 +2376,7 @@ function instance$r($$self, $$props, $$invalidate) {
|
|
|
2376
2376
|
class Badge extends SvelteElement {
|
|
2377
2377
|
constructor(options) {
|
|
2378
2378
|
super();
|
|
2379
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-badge{display:inline-flex;border-radius:0.25rem;padding:3px 0.5rem;gap:0.25rem;font-weight:var(--fw-regular);margin:0.25rem}.icon-only{padding:0.25rem}.goa-badge-content{text-transform:capitalize;font-size:var(--fs-sm);line-height:var(--lh-sm)}.goa-badge.badge-information{background-color:var(--color-gray-100);color:var(--goa-color-status-info)}.goa-badge.badge-success{background-color:var(--goa-color-status-success);color:var(--goa-color-text-light)}.goa-badge.badge-warning{background-color:var(--goa-color-status-warning);color:var(--goa-color-text)}.goa-badge.badge-emergency{background-color:var(--goa-color-status-emergency);color:var(--goa-color-text-light)}.goa-badge.badge-dark{background-color:var(--color-black);color:var(--goa-color-text-light)}.goa-badge.badge-midtone{background-color:var(--color-gray-600);color:var(--goa-color-text-light)}.goa-badge.badge-light{background-color:var(--color-white);color:var(--goa-color-text)}.goa-badge.badge-inactive{background-color:var(--color-white);color:var(--goa-color-text)}</style>`;
|
|
2379
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-badge{display:inline-flex;align-items:center;border-radius:0.25rem;padding:3px 0.5rem;gap:0.25rem;font-weight:var(--fw-regular);margin:0.25rem}.icon-only{padding:0.25rem}.goa-badge-content{text-transform:capitalize;font-size:var(--fs-sm);line-height:var(--lh-sm);padding-bottom:var(--font-valign-fix)}.goa-badge.badge-information{background-color:var(--color-gray-100);color:var(--goa-color-status-info)}.goa-badge.badge-success{background-color:var(--goa-color-status-success);color:var(--goa-color-text-light)}.goa-badge.badge-warning{background-color:var(--goa-color-status-warning);color:var(--goa-color-text)}.goa-badge.badge-emergency{background-color:var(--goa-color-status-emergency);color:var(--goa-color-text-light)}.goa-badge.badge-dark{background-color:var(--color-black);color:var(--goa-color-text-light)}.goa-badge.badge-midtone{background-color:var(--color-gray-600);color:var(--goa-color-text-light)}.goa-badge.badge-light{background-color:var(--color-white);color:var(--goa-color-text)}.goa-badge.badge-inactive{background-color:var(--color-white);color:var(--goa-color-text)}</style>`;
|
|
2380
2380
|
|
|
2381
2381
|
init(
|
|
2382
2382
|
this,
|
|
@@ -2385,8 +2385,8 @@ class Badge extends SvelteElement {
|
|
|
2385
2385
|
props: attribute_to_object(this.attributes),
|
|
2386
2386
|
customElement: true
|
|
2387
2387
|
},
|
|
2388
|
-
instance$
|
|
2389
|
-
create_fragment$
|
|
2388
|
+
instance$t,
|
|
2389
|
+
create_fragment$x,
|
|
2390
2390
|
safe_not_equal,
|
|
2391
2391
|
{ type: 0, testid: 1, icon: 5, content: 2 },
|
|
2392
2392
|
null
|
|
@@ -2451,7 +2451,7 @@ customElements.define("goa-badge", Badge);
|
|
|
2451
2451
|
|
|
2452
2452
|
function create_else_block$2(ctx) {
|
|
2453
2453
|
let t0;
|
|
2454
|
-
let
|
|
2454
|
+
let div;
|
|
2455
2455
|
let t1;
|
|
2456
2456
|
let if_block1_anchor;
|
|
2457
2457
|
let if_block0 = /*leadingicon*/ ctx[4] && create_if_block_2$6(ctx);
|
|
@@ -2461,15 +2461,17 @@ function create_else_block$2(ctx) {
|
|
|
2461
2461
|
c() {
|
|
2462
2462
|
if (if_block0) if_block0.c();
|
|
2463
2463
|
t0 = space();
|
|
2464
|
-
|
|
2464
|
+
div = element("div");
|
|
2465
|
+
div.innerHTML = `<slot></slot>`;
|
|
2465
2466
|
t1 = space();
|
|
2466
2467
|
if (if_block1) if_block1.c();
|
|
2467
2468
|
if_block1_anchor = empty();
|
|
2469
|
+
attr(div, "class", "text");
|
|
2468
2470
|
},
|
|
2469
2471
|
m(target, anchor) {
|
|
2470
2472
|
if (if_block0) if_block0.m(target, anchor);
|
|
2471
2473
|
insert(target, t0, anchor);
|
|
2472
|
-
insert(target,
|
|
2474
|
+
insert(target, div, anchor);
|
|
2473
2475
|
insert(target, t1, anchor);
|
|
2474
2476
|
if (if_block1) if_block1.m(target, anchor);
|
|
2475
2477
|
insert(target, if_block1_anchor, anchor);
|
|
@@ -2504,7 +2506,7 @@ function create_else_block$2(ctx) {
|
|
|
2504
2506
|
d(detaching) {
|
|
2505
2507
|
if (if_block0) if_block0.d(detaching);
|
|
2506
2508
|
if (detaching) detach(t0);
|
|
2507
|
-
if (detaching) detach(
|
|
2509
|
+
if (detaching) detach(div);
|
|
2508
2510
|
if (detaching) detach(t1);
|
|
2509
2511
|
if (if_block1) if_block1.d(detaching);
|
|
2510
2512
|
if (detaching) detach(if_block1_anchor);
|
|
@@ -2512,43 +2514,47 @@ function create_else_block$2(ctx) {
|
|
|
2512
2514
|
};
|
|
2513
2515
|
}
|
|
2514
2516
|
|
|
2515
|
-
// (
|
|
2517
|
+
// (55:2) {#if type === "start"}
|
|
2516
2518
|
function create_if_block$e(ctx) {
|
|
2517
|
-
let
|
|
2519
|
+
let div;
|
|
2518
2520
|
let t;
|
|
2519
2521
|
let goa_icon;
|
|
2520
2522
|
|
|
2521
2523
|
return {
|
|
2522
2524
|
c() {
|
|
2523
|
-
|
|
2525
|
+
div = element("div");
|
|
2526
|
+
div.innerHTML = `<slot></slot>`;
|
|
2524
2527
|
t = space();
|
|
2525
2528
|
goa_icon = element("goa-icon");
|
|
2529
|
+
attr(div, "class", "text");
|
|
2530
|
+
set_custom_element_data(goa_icon, "id", "trailing-icon");
|
|
2526
2531
|
set_custom_element_data(goa_icon, "type", "arrow-forward");
|
|
2527
2532
|
set_custom_element_data(goa_icon, "inverted", "true");
|
|
2528
2533
|
},
|
|
2529
2534
|
m(target, anchor) {
|
|
2530
|
-
insert(target,
|
|
2535
|
+
insert(target, div, anchor);
|
|
2531
2536
|
insert(target, t, anchor);
|
|
2532
2537
|
insert(target, goa_icon, anchor);
|
|
2533
2538
|
},
|
|
2534
2539
|
p: noop,
|
|
2535
2540
|
d(detaching) {
|
|
2536
|
-
if (detaching) detach(
|
|
2541
|
+
if (detaching) detach(div);
|
|
2537
2542
|
if (detaching) detach(t);
|
|
2538
2543
|
if (detaching) detach(goa_icon);
|
|
2539
2544
|
}
|
|
2540
2545
|
};
|
|
2541
2546
|
}
|
|
2542
2547
|
|
|
2543
|
-
// (
|
|
2548
|
+
// (61:4) {#if leadingicon}
|
|
2544
2549
|
function create_if_block_2$6(ctx) {
|
|
2545
2550
|
let goa_icon;
|
|
2546
2551
|
|
|
2547
2552
|
return {
|
|
2548
2553
|
c() {
|
|
2549
2554
|
goa_icon = element("goa-icon");
|
|
2555
|
+
set_custom_element_data(goa_icon, "id", "leading-icon");
|
|
2550
2556
|
set_custom_element_data(goa_icon, "type", /*leadingicon*/ ctx[4]);
|
|
2551
|
-
set_custom_element_data(goa_icon, "inverted",
|
|
2557
|
+
set_custom_element_data(goa_icon, "inverted", /*isButtonDark*/ ctx[7]);
|
|
2552
2558
|
},
|
|
2553
2559
|
m(target, anchor) {
|
|
2554
2560
|
insert(target, goa_icon, anchor);
|
|
@@ -2557,6 +2563,10 @@ function create_if_block_2$6(ctx) {
|
|
|
2557
2563
|
if (dirty & /*leadingicon*/ 16) {
|
|
2558
2564
|
set_custom_element_data(goa_icon, "type", /*leadingicon*/ ctx[4]);
|
|
2559
2565
|
}
|
|
2566
|
+
|
|
2567
|
+
if (dirty & /*isButtonDark*/ 128) {
|
|
2568
|
+
set_custom_element_data(goa_icon, "inverted", /*isButtonDark*/ ctx[7]);
|
|
2569
|
+
}
|
|
2560
2570
|
},
|
|
2561
2571
|
d(detaching) {
|
|
2562
2572
|
if (detaching) detach(goa_icon);
|
|
@@ -2564,15 +2574,16 @@ function create_if_block_2$6(ctx) {
|
|
|
2564
2574
|
};
|
|
2565
2575
|
}
|
|
2566
2576
|
|
|
2567
|
-
// (
|
|
2577
|
+
// (67:4) {#if trailingicon}
|
|
2568
2578
|
function create_if_block_1$a(ctx) {
|
|
2569
2579
|
let goa_icon;
|
|
2570
2580
|
|
|
2571
2581
|
return {
|
|
2572
2582
|
c() {
|
|
2573
2583
|
goa_icon = element("goa-icon");
|
|
2584
|
+
set_custom_element_data(goa_icon, "id", "trailing-icon");
|
|
2574
2585
|
set_custom_element_data(goa_icon, "type", /*trailingicon*/ ctx[5]);
|
|
2575
|
-
set_custom_element_data(goa_icon, "inverted",
|
|
2586
|
+
set_custom_element_data(goa_icon, "inverted", /*isButtonDark*/ ctx[7]);
|
|
2576
2587
|
},
|
|
2577
2588
|
m(target, anchor) {
|
|
2578
2589
|
insert(target, goa_icon, anchor);
|
|
@@ -2581,6 +2592,10 @@ function create_if_block_1$a(ctx) {
|
|
|
2581
2592
|
if (dirty & /*trailingicon*/ 32) {
|
|
2582
2593
|
set_custom_element_data(goa_icon, "type", /*trailingicon*/ ctx[5]);
|
|
2583
2594
|
}
|
|
2595
|
+
|
|
2596
|
+
if (dirty & /*isButtonDark*/ 128) {
|
|
2597
|
+
set_custom_element_data(goa_icon, "inverted", /*isButtonDark*/ ctx[7]);
|
|
2598
|
+
}
|
|
2584
2599
|
},
|
|
2585
2600
|
d(detaching) {
|
|
2586
2601
|
if (detaching) detach(goa_icon);
|
|
@@ -2588,7 +2603,7 @@ function create_if_block_1$a(ctx) {
|
|
|
2588
2603
|
};
|
|
2589
2604
|
}
|
|
2590
2605
|
|
|
2591
|
-
function create_fragment$
|
|
2606
|
+
function create_fragment$w(ctx) {
|
|
2592
2607
|
let button;
|
|
2593
2608
|
let button_class_value;
|
|
2594
2609
|
let mounted;
|
|
@@ -2609,8 +2624,10 @@ function create_fragment$u(ctx) {
|
|
|
2609
2624
|
this.c = noop;
|
|
2610
2625
|
attr(button, "class", button_class_value = "" + (/*type*/ ctx[0] + " " + /*size*/ ctx[1] + " " + /*variant*/ ctx[2]));
|
|
2611
2626
|
attr(button, "title", /*title*/ ctx[3]);
|
|
2612
|
-
button.disabled = /*isDisabled*/ ctx[
|
|
2627
|
+
button.disabled = /*isDisabled*/ ctx[8];
|
|
2613
2628
|
attr(button, "data-testid", /*testid*/ ctx[6]);
|
|
2629
|
+
toggle_class(button, "leading", /*leadingicon*/ ctx[4]);
|
|
2630
|
+
toggle_class(button, "trailing", /*trailingicon*/ ctx[5] || /*type*/ ctx[0] === "start");
|
|
2614
2631
|
},
|
|
2615
2632
|
m(target, anchor) {
|
|
2616
2633
|
insert(target, button, anchor);
|
|
@@ -2642,13 +2659,21 @@ function create_fragment$u(ctx) {
|
|
|
2642
2659
|
attr(button, "title", /*title*/ ctx[3]);
|
|
2643
2660
|
}
|
|
2644
2661
|
|
|
2645
|
-
if (dirty & /*isDisabled*/
|
|
2646
|
-
button.disabled = /*isDisabled*/ ctx[
|
|
2662
|
+
if (dirty & /*isDisabled*/ 256) {
|
|
2663
|
+
button.disabled = /*isDisabled*/ ctx[8];
|
|
2647
2664
|
}
|
|
2648
2665
|
|
|
2649
2666
|
if (dirty & /*testid*/ 64) {
|
|
2650
2667
|
attr(button, "data-testid", /*testid*/ ctx[6]);
|
|
2651
2668
|
}
|
|
2669
|
+
|
|
2670
|
+
if (dirty & /*type, size, variant, leadingicon*/ 23) {
|
|
2671
|
+
toggle_class(button, "leading", /*leadingicon*/ ctx[4]);
|
|
2672
|
+
}
|
|
2673
|
+
|
|
2674
|
+
if (dirty & /*type, size, variant, trailingicon, type*/ 39) {
|
|
2675
|
+
toggle_class(button, "trailing", /*trailingicon*/ ctx[5] || /*type*/ ctx[0] === "start");
|
|
2676
|
+
}
|
|
2652
2677
|
},
|
|
2653
2678
|
i: noop,
|
|
2654
2679
|
o: noop,
|
|
@@ -2666,8 +2691,9 @@ function clickHandler(e) {
|
|
|
2666
2691
|
e.stopPropagation();
|
|
2667
2692
|
}
|
|
2668
2693
|
|
|
2669
|
-
function instance$
|
|
2694
|
+
function instance$s($$self, $$props, $$invalidate) {
|
|
2670
2695
|
let isDisabled;
|
|
2696
|
+
let isButtonDark;
|
|
2671
2697
|
const BUTTON_TYPES = ["primary", "secondary", "tertiary", "start"];
|
|
2672
2698
|
const SIZES = ["", "compact"];
|
|
2673
2699
|
const VARIANTS = ["", "danger"];
|
|
@@ -2713,15 +2739,19 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
|
2713
2739
|
if ('size' in $$props) $$invalidate(1, size = $$props.size);
|
|
2714
2740
|
if ('variant' in $$props) $$invalidate(2, variant = $$props.variant);
|
|
2715
2741
|
if ('title' in $$props) $$invalidate(3, title = $$props.title);
|
|
2716
|
-
if ('disabled' in $$props) $$invalidate(
|
|
2742
|
+
if ('disabled' in $$props) $$invalidate(9, disabled = $$props.disabled);
|
|
2717
2743
|
if ('leadingicon' in $$props) $$invalidate(4, leadingicon = $$props.leadingicon);
|
|
2718
2744
|
if ('trailingicon' in $$props) $$invalidate(5, trailingicon = $$props.trailingicon);
|
|
2719
2745
|
if ('testid' in $$props) $$invalidate(6, testid = $$props.testid);
|
|
2720
2746
|
};
|
|
2721
2747
|
|
|
2722
2748
|
$$self.$$.update = () => {
|
|
2723
|
-
if ($$self.$$.dirty & /*disabled*/
|
|
2724
|
-
$$invalidate(
|
|
2749
|
+
if ($$self.$$.dirty & /*disabled*/ 512) {
|
|
2750
|
+
$$invalidate(8, isDisabled = toBoolean(disabled));
|
|
2751
|
+
}
|
|
2752
|
+
|
|
2753
|
+
if ($$self.$$.dirty & /*type*/ 1) {
|
|
2754
|
+
$$invalidate(7, isButtonDark = type === "primary" || type === "start");
|
|
2725
2755
|
}
|
|
2726
2756
|
};
|
|
2727
2757
|
|
|
@@ -2733,6 +2763,7 @@ function instance$q($$self, $$props, $$invalidate) {
|
|
|
2733
2763
|
leadingicon,
|
|
2734
2764
|
trailingicon,
|
|
2735
2765
|
testid,
|
|
2766
|
+
isButtonDark,
|
|
2736
2767
|
isDisabled,
|
|
2737
2768
|
disabled
|
|
2738
2769
|
];
|
|
@@ -2742,8 +2773,8 @@ class Button extends SvelteElement {
|
|
|
2742
2773
|
constructor(options) {
|
|
2743
2774
|
super();
|
|
2744
2775
|
|
|
2745
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}@media(max-width: 480px){:host{width:100%}button{width:100%}}button{box-sizing:border-box;border-radius:0.25rem;border:2px solid var(--goa-color-interactive);box-sizing:border-box;cursor:pointer;font-family:var(--font-family);font-size:var(--fs-lg);font-weight:400;height:var(--button-height);letter-spacing:0.5px;line-height:100%;padding:0 0.75rem;
|
|
2746
|
-
border-color 0.2s ease-in-out}button:disabled{pointer-events:none;opacity:0.5}button.compact{height:var(--button-height-compact);font-size:var(--fs-base)}button.start{height:var(--button-height-tall);font-weight:var(--fw-bold)}button.start,button.primary{border:2px solid var(--goa-color-interactive);background:var(--goa-color-interactive);color:var(--goa-color-text-light)}button.start:hover,button.primary:hover{border-color:var(--goa-color-interactive--hover);background:var(--goa-color-interactive--hover)}button.start:focus,button.start:active,button.primary:focus,button.primary:active{box-shadow:0 0 0 3px var(--goa-color-interactive--focus);border-color:var(--goa-color-interactive--active);background:var(--goa-color-interactive--active);outline:none}button.secondary{border:2px solid var(--goa-color-interactive);background:var(--color-white);color:var(--goa-color-interactive)}button.secondary:hover{border-color:var(--goa-color-interactive--hover);color:var(--goa-color-interactive--hover);background:var(--color-gray-100)}button.secondary:focus,button.secondary:active{border-color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);background:var(--color-gray-100);outline:none}button.tertiary{border:1px solid transparent;background:var(--color-white);color:var(--goa-color-interactive);text-decoration:underline}button.tertiary:hover{border-color:var(--color-gray-100);color:var(--goa-color-interactive--hover);background:var(--color-gray-100)}button.tertiary:focus,button.tertiary:active{border-color:var(--color-gray-100);background:var(--color-gray-100);color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);outline:none}.primary.danger{color:var(--color-white);background:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency)}.primary.danger:hover{background:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark)}.primary.danger:focus,.primary.danger:active{background:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark)}.secondary.danger{color:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency);background:var(--color-white)}.secondary.danger:hover{border-color:var(--goa-color-status-emergency-dark);color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.secondary.danger:focus,.secondary.danger:active{color:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.tertiary.danger{color:var(--goa-color-status-emergency);border-color:var(--color-gray-200);background:var(--color-white)}.tertiary.danger:hover{border-color:var(--goa-color-status-emergency-dark);color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.tertiary.danger:focus,.tertiary.danger:active{color:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark);background:var(--color-white)}</style>`;
|
|
2776
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}@media(max-width: 480px){:host{width:100%}button{width:100%}}button{display:flex;box-sizing:border-box;border-radius:0.25rem;border:2px solid var(--goa-color-interactive);box-sizing:border-box;cursor:pointer;font-family:var(--font-family);font-size:var(--fs-lg);font-weight:400;height:var(--button-height);letter-spacing:0.5px;line-height:100%;padding:0 0.75rem;gap:0.5rem;align-items:center;justify-content:center;transition:transform 0.1s ease-in-out, background-color 0.2s ease-in-out,
|
|
2777
|
+
border-color 0.2s ease-in-out}.text{padding-bottom:var(--font-valign-fix)}button:disabled{pointer-events:none;opacity:0.5}button.compact{height:var(--button-height-compact);font-size:var(--fs-base)}button.start{height:var(--button-height-tall);font-weight:var(--fw-bold)}button.start,button.primary{border:2px solid var(--goa-color-interactive);background:var(--goa-color-interactive);color:var(--goa-color-text-light)}button.start:hover,button.primary:hover{border-color:var(--goa-color-interactive--hover);background:var(--goa-color-interactive--hover)}button.start:focus,button.start:active,button.primary:focus,button.primary:active{box-shadow:0 0 0 3px var(--goa-color-interactive--focus);border-color:var(--goa-color-interactive--active);background:var(--goa-color-interactive--active);outline:none}button.secondary{border:2px solid var(--goa-color-interactive);background:var(--color-white);color:var(--goa-color-interactive)}button.secondary:hover{border-color:var(--goa-color-interactive--hover);color:var(--goa-color-interactive--hover);background:var(--color-gray-100)}button.secondary:focus,button.secondary:active{border-color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);background:var(--color-gray-100);outline:none}button.tertiary{border:1px solid transparent;background:var(--color-white);color:var(--goa-color-interactive);text-decoration:underline}button.tertiary:hover{border-color:var(--color-gray-100);color:var(--goa-color-interactive--hover);background:var(--color-gray-100)}button.tertiary:focus,button.tertiary:active{border-color:var(--color-gray-100);background:var(--color-gray-100);color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);outline:none}.primary.danger{color:var(--color-white);background:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency)}.primary.danger:hover{background:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark)}.primary.danger:focus,.primary.danger:active{background:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark)}.secondary.danger{color:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency);background:var(--color-white)}.secondary.danger:hover{border-color:var(--goa-color-status-emergency-dark);color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.secondary.danger:focus,.secondary.danger:active{color:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.tertiary.danger{color:var(--goa-color-status-emergency);border-color:var(--color-gray-200);background:var(--color-white)}.tertiary.danger:hover{border-color:var(--goa-color-status-emergency-dark);color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.tertiary.danger:focus,.tertiary.danger:active{color:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark);background:var(--color-white)}</style>`;
|
|
2747
2778
|
|
|
2748
2779
|
init(
|
|
2749
2780
|
this,
|
|
@@ -2752,15 +2783,15 @@ class Button extends SvelteElement {
|
|
|
2752
2783
|
props: attribute_to_object(this.attributes),
|
|
2753
2784
|
customElement: true
|
|
2754
2785
|
},
|
|
2755
|
-
instance$
|
|
2756
|
-
create_fragment$
|
|
2786
|
+
instance$s,
|
|
2787
|
+
create_fragment$w,
|
|
2757
2788
|
safe_not_equal,
|
|
2758
2789
|
{
|
|
2759
2790
|
type: 0,
|
|
2760
2791
|
size: 1,
|
|
2761
2792
|
variant: 2,
|
|
2762
2793
|
title: 3,
|
|
2763
|
-
disabled:
|
|
2794
|
+
disabled: 9,
|
|
2764
2795
|
leadingicon: 4,
|
|
2765
2796
|
trailingicon: 5,
|
|
2766
2797
|
testid: 6
|
|
@@ -2830,7 +2861,7 @@ class Button extends SvelteElement {
|
|
|
2830
2861
|
}
|
|
2831
2862
|
|
|
2832
2863
|
get disabled() {
|
|
2833
|
-
return this.$$.ctx[
|
|
2864
|
+
return this.$$.ctx[9];
|
|
2834
2865
|
}
|
|
2835
2866
|
|
|
2836
2867
|
set disabled(disabled) {
|
|
@@ -2870,7 +2901,7 @@ customElements.define("goa-button", Button);
|
|
|
2870
2901
|
|
|
2871
2902
|
/* libs/web-components/src/components/button-group/ButtonGroup.svelte generated by Svelte v3.44.3 */
|
|
2872
2903
|
|
|
2873
|
-
function create_fragment$
|
|
2904
|
+
function create_fragment$v(ctx) {
|
|
2874
2905
|
let div;
|
|
2875
2906
|
let slot;
|
|
2876
2907
|
|
|
@@ -2903,7 +2934,7 @@ function create_fragment$t(ctx) {
|
|
|
2903
2934
|
};
|
|
2904
2935
|
}
|
|
2905
2936
|
|
|
2906
|
-
function instance$
|
|
2937
|
+
function instance$r($$self, $$props, $$invalidate) {
|
|
2907
2938
|
let { gap = "medium" } = $$props;
|
|
2908
2939
|
let { alignment } = $$props;
|
|
2909
2940
|
|
|
@@ -2927,8 +2958,8 @@ class ButtonGroup extends SvelteElement {
|
|
|
2927
2958
|
props: attribute_to_object(this.attributes),
|
|
2928
2959
|
customElement: true
|
|
2929
2960
|
},
|
|
2930
|
-
instance$
|
|
2931
|
-
create_fragment$
|
|
2961
|
+
instance$r,
|
|
2962
|
+
create_fragment$v,
|
|
2932
2963
|
safe_not_equal,
|
|
2933
2964
|
{ gap: 0, alignment: 1 },
|
|
2934
2965
|
null
|
|
@@ -2973,7 +3004,7 @@ customElements.define("goa-button-group", ButtonGroup);
|
|
|
2973
3004
|
|
|
2974
3005
|
/* libs/web-components/src/components/callout/Callout.svelte generated by Svelte v3.44.3 */
|
|
2975
3006
|
|
|
2976
|
-
function create_fragment$
|
|
3007
|
+
function create_fragment$u(ctx) {
|
|
2977
3008
|
let div;
|
|
2978
3009
|
let span0;
|
|
2979
3010
|
let goa_icon;
|
|
@@ -3043,7 +3074,7 @@ function create_fragment$s(ctx) {
|
|
|
3043
3074
|
};
|
|
3044
3075
|
}
|
|
3045
3076
|
|
|
3046
|
-
function instance$
|
|
3077
|
+
function instance$q($$self, $$props, $$invalidate) {
|
|
3047
3078
|
let iconType;
|
|
3048
3079
|
let { type } = $$props;
|
|
3049
3080
|
let { title } = $$props;
|
|
@@ -3084,8 +3115,8 @@ class Callout extends SvelteElement {
|
|
|
3084
3115
|
props: attribute_to_object(this.attributes),
|
|
3085
3116
|
customElement: true
|
|
3086
3117
|
},
|
|
3087
|
-
instance$
|
|
3088
|
-
create_fragment$
|
|
3118
|
+
instance$q,
|
|
3119
|
+
create_fragment$u,
|
|
3089
3120
|
safe_not_equal,
|
|
3090
3121
|
{ type: 0, title: 1, testid: 2 },
|
|
3091
3122
|
null
|
|
@@ -3139,7 +3170,7 @@ customElements.define("goa-callout", Callout);
|
|
|
3139
3170
|
|
|
3140
3171
|
/* libs/web-components/src/components/card/Card.svelte generated by Svelte v3.44.3 */
|
|
3141
3172
|
|
|
3142
|
-
function create_fragment$
|
|
3173
|
+
function create_fragment$t(ctx) {
|
|
3143
3174
|
let div;
|
|
3144
3175
|
let slot;
|
|
3145
3176
|
let div_style_value;
|
|
@@ -3179,7 +3210,7 @@ function create_fragment$r(ctx) {
|
|
|
3179
3210
|
};
|
|
3180
3211
|
}
|
|
3181
3212
|
|
|
3182
|
-
function instance$
|
|
3213
|
+
function instance$p($$self, $$props, $$invalidate) {
|
|
3183
3214
|
let { elevation = 0 } = $$props;
|
|
3184
3215
|
let { width = 320 } = $$props;
|
|
3185
3216
|
let { testId = "" } = $$props;
|
|
@@ -3207,8 +3238,8 @@ class Card extends SvelteElement {
|
|
|
3207
3238
|
props: attribute_to_object(this.attributes),
|
|
3208
3239
|
customElement: true
|
|
3209
3240
|
},
|
|
3210
|
-
instance$
|
|
3211
|
-
create_fragment$
|
|
3241
|
+
instance$p,
|
|
3242
|
+
create_fragment$t,
|
|
3212
3243
|
safe_not_equal,
|
|
3213
3244
|
{ elevation: 0, width: 1, testId: 2 },
|
|
3214
3245
|
null
|
|
@@ -3262,7 +3293,7 @@ customElements.define("goa-card", Card);
|
|
|
3262
3293
|
|
|
3263
3294
|
/* libs/web-components/src/components/card-actions/CardActions.svelte generated by Svelte v3.44.3 */
|
|
3264
3295
|
|
|
3265
|
-
function create_fragment$
|
|
3296
|
+
function create_fragment$s(ctx) {
|
|
3266
3297
|
let goa_card_content;
|
|
3267
3298
|
|
|
3268
3299
|
return {
|
|
@@ -3295,7 +3326,7 @@ class CardActions extends SvelteElement {
|
|
|
3295
3326
|
customElement: true
|
|
3296
3327
|
},
|
|
3297
3328
|
null,
|
|
3298
|
-
create_fragment$
|
|
3329
|
+
create_fragment$s,
|
|
3299
3330
|
safe_not_equal,
|
|
3300
3331
|
{},
|
|
3301
3332
|
null
|
|
@@ -3313,7 +3344,7 @@ customElements.define("goa-card-actions", CardActions);
|
|
|
3313
3344
|
|
|
3314
3345
|
/* libs/web-components/src/components/card-content/CardContent.svelte generated by Svelte v3.44.3 */
|
|
3315
3346
|
|
|
3316
|
-
function create_fragment$
|
|
3347
|
+
function create_fragment$r(ctx) {
|
|
3317
3348
|
let div;
|
|
3318
3349
|
|
|
3319
3350
|
return {
|
|
@@ -3348,7 +3379,7 @@ class CardContent extends SvelteElement {
|
|
|
3348
3379
|
customElement: true
|
|
3349
3380
|
},
|
|
3350
3381
|
null,
|
|
3351
|
-
create_fragment$
|
|
3382
|
+
create_fragment$r,
|
|
3352
3383
|
safe_not_equal,
|
|
3353
3384
|
{},
|
|
3354
3385
|
null
|
|
@@ -3366,7 +3397,7 @@ customElements.define("goa-card-content", CardContent);
|
|
|
3366
3397
|
|
|
3367
3398
|
/* libs/web-components/src/components/card-group/CardGroup.svelte generated by Svelte v3.44.3 */
|
|
3368
3399
|
|
|
3369
|
-
function create_fragment$
|
|
3400
|
+
function create_fragment$q(ctx) {
|
|
3370
3401
|
let div;
|
|
3371
3402
|
|
|
3372
3403
|
return {
|
|
@@ -3401,7 +3432,7 @@ class CardGroup extends SvelteElement {
|
|
|
3401
3432
|
customElement: true
|
|
3402
3433
|
},
|
|
3403
3434
|
null,
|
|
3404
|
-
create_fragment$
|
|
3435
|
+
create_fragment$q,
|
|
3405
3436
|
safe_not_equal,
|
|
3406
3437
|
{},
|
|
3407
3438
|
null
|
|
@@ -3419,7 +3450,7 @@ customElements.define("goa-card-group", CardGroup);
|
|
|
3419
3450
|
|
|
3420
3451
|
/* libs/web-components/src/components/card-image/CardImage.svelte generated by Svelte v3.44.3 */
|
|
3421
3452
|
|
|
3422
|
-
function create_fragment$
|
|
3453
|
+
function create_fragment$p(ctx) {
|
|
3423
3454
|
let div;
|
|
3424
3455
|
|
|
3425
3456
|
return {
|
|
@@ -3452,7 +3483,7 @@ function create_fragment$n(ctx) {
|
|
|
3452
3483
|
};
|
|
3453
3484
|
}
|
|
3454
3485
|
|
|
3455
|
-
function instance$
|
|
3486
|
+
function instance$o($$self, $$props, $$invalidate) {
|
|
3456
3487
|
let { src } = $$props;
|
|
3457
3488
|
let { height = "100%" } = $$props;
|
|
3458
3489
|
|
|
@@ -3476,8 +3507,8 @@ class CardImage extends SvelteElement {
|
|
|
3476
3507
|
props: attribute_to_object(this.attributes),
|
|
3477
3508
|
customElement: true
|
|
3478
3509
|
},
|
|
3479
|
-
instance$
|
|
3480
|
-
create_fragment$
|
|
3510
|
+
instance$o,
|
|
3511
|
+
create_fragment$p,
|
|
3481
3512
|
safe_not_equal,
|
|
3482
3513
|
{ src: 0, height: 1 },
|
|
3483
3514
|
null
|
|
@@ -3572,7 +3603,7 @@ function create_if_block$d(ctx) {
|
|
|
3572
3603
|
};
|
|
3573
3604
|
}
|
|
3574
3605
|
|
|
3575
|
-
function create_fragment$
|
|
3606
|
+
function create_fragment$o(ctx) {
|
|
3576
3607
|
let label;
|
|
3577
3608
|
let div0;
|
|
3578
3609
|
let input;
|
|
@@ -3706,7 +3737,7 @@ function create_fragment$m(ctx) {
|
|
|
3706
3737
|
};
|
|
3707
3738
|
}
|
|
3708
3739
|
|
|
3709
|
-
function instance$
|
|
3740
|
+
function instance$n($$self, $$props, $$invalidate) {
|
|
3710
3741
|
let id;
|
|
3711
3742
|
let isDisabled;
|
|
3712
3743
|
let isError;
|
|
@@ -3797,8 +3828,8 @@ class Checkbox extends SvelteElement {
|
|
|
3797
3828
|
props: attribute_to_object(this.attributes),
|
|
3798
3829
|
customElement: true
|
|
3799
3830
|
},
|
|
3800
|
-
instance$
|
|
3801
|
-
create_fragment$
|
|
3831
|
+
instance$n,
|
|
3832
|
+
create_fragment$o,
|
|
3802
3833
|
safe_not_equal,
|
|
3803
3834
|
{
|
|
3804
3835
|
name: 0,
|
|
@@ -3920,7 +3951,7 @@ function create_if_block_1$8(ctx) {
|
|
|
3920
3951
|
};
|
|
3921
3952
|
}
|
|
3922
3953
|
|
|
3923
|
-
// (
|
|
3954
|
+
// (42:2) {#if _deletable}
|
|
3924
3955
|
function create_if_block$c(ctx) {
|
|
3925
3956
|
let goa_icon;
|
|
3926
3957
|
let goa_icon_fillcolor_value;
|
|
@@ -3964,9 +3995,10 @@ function create_if_block$c(ctx) {
|
|
|
3964
3995
|
};
|
|
3965
3996
|
}
|
|
3966
3997
|
|
|
3967
|
-
function create_fragment$
|
|
3968
|
-
let
|
|
3998
|
+
function create_fragment$n(ctx) {
|
|
3999
|
+
let div1;
|
|
3969
4000
|
let t0;
|
|
4001
|
+
let div0;
|
|
3970
4002
|
let t1;
|
|
3971
4003
|
let t2;
|
|
3972
4004
|
let mounted;
|
|
@@ -3976,35 +4008,38 @@ function create_fragment$l(ctx) {
|
|
|
3976
4008
|
|
|
3977
4009
|
return {
|
|
3978
4010
|
c() {
|
|
3979
|
-
|
|
4011
|
+
div1 = element("div");
|
|
3980
4012
|
if (if_block0) if_block0.c();
|
|
3981
4013
|
t0 = space();
|
|
4014
|
+
div0 = element("div");
|
|
3982
4015
|
t1 = text(/*content*/ ctx[1]);
|
|
3983
4016
|
t2 = space();
|
|
3984
4017
|
if (if_block1) if_block1.c();
|
|
3985
4018
|
this.c = noop;
|
|
3986
|
-
attr(
|
|
3987
|
-
attr(
|
|
3988
|
-
attr(
|
|
3989
|
-
|
|
3990
|
-
toggle_class(
|
|
4019
|
+
attr(div0, "class", "text");
|
|
4020
|
+
attr(div1, "data-testid", "chip");
|
|
4021
|
+
attr(div1, "class", "chip");
|
|
4022
|
+
attr(div1, "tabindex", "0");
|
|
4023
|
+
toggle_class(div1, "deletable", /*_deletable*/ ctx[5]);
|
|
4024
|
+
toggle_class(div1, "error", /*_error*/ ctx[4]);
|
|
3991
4025
|
},
|
|
3992
4026
|
m(target, anchor) {
|
|
3993
|
-
insert(target,
|
|
3994
|
-
if (if_block0) if_block0.m(
|
|
3995
|
-
append(
|
|
3996
|
-
append(
|
|
3997
|
-
append(
|
|
3998
|
-
|
|
3999
|
-
|
|
4027
|
+
insert(target, div1, anchor);
|
|
4028
|
+
if (if_block0) if_block0.m(div1, null);
|
|
4029
|
+
append(div1, t0);
|
|
4030
|
+
append(div1, div0);
|
|
4031
|
+
append(div0, t1);
|
|
4032
|
+
append(div1, t2);
|
|
4033
|
+
if (if_block1) if_block1.m(div1, null);
|
|
4034
|
+
/*div1_binding*/ ctx[9](div1);
|
|
4000
4035
|
|
|
4001
4036
|
if (!mounted) {
|
|
4002
4037
|
dispose = [
|
|
4003
|
-
listen(
|
|
4004
|
-
listen(
|
|
4005
|
-
listen(
|
|
4006
|
-
listen(
|
|
4007
|
-
listen(
|
|
4038
|
+
listen(div1, "click", /*click_handler*/ ctx[10]),
|
|
4039
|
+
listen(div1, "mouseover", /*mouseover_handler*/ ctx[11]),
|
|
4040
|
+
listen(div1, "mouseout", /*mouseout_handler*/ ctx[12]),
|
|
4041
|
+
listen(div1, "focus", /*focus_handler*/ ctx[13]),
|
|
4042
|
+
listen(div1, "blur", /*blur_handler*/ ctx[14])
|
|
4008
4043
|
];
|
|
4009
4044
|
|
|
4010
4045
|
mounted = true;
|
|
@@ -4017,7 +4052,7 @@ function create_fragment$l(ctx) {
|
|
|
4017
4052
|
} else {
|
|
4018
4053
|
if_block0 = create_if_block_1$8(ctx);
|
|
4019
4054
|
if_block0.c();
|
|
4020
|
-
if_block0.m(
|
|
4055
|
+
if_block0.m(div1, t0);
|
|
4021
4056
|
}
|
|
4022
4057
|
} else if (if_block0) {
|
|
4023
4058
|
if_block0.d(1);
|
|
@@ -4032,7 +4067,7 @@ function create_fragment$l(ctx) {
|
|
|
4032
4067
|
} else {
|
|
4033
4068
|
if_block1 = create_if_block$c(ctx);
|
|
4034
4069
|
if_block1.c();
|
|
4035
|
-
if_block1.m(
|
|
4070
|
+
if_block1.m(div1, null);
|
|
4036
4071
|
}
|
|
4037
4072
|
} else if (if_block1) {
|
|
4038
4073
|
if_block1.d(1);
|
|
@@ -4040,27 +4075,27 @@ function create_fragment$l(ctx) {
|
|
|
4040
4075
|
}
|
|
4041
4076
|
|
|
4042
4077
|
if (dirty & /*_deletable*/ 32) {
|
|
4043
|
-
toggle_class(
|
|
4078
|
+
toggle_class(div1, "deletable", /*_deletable*/ ctx[5]);
|
|
4044
4079
|
}
|
|
4045
4080
|
|
|
4046
4081
|
if (dirty & /*_error*/ 16) {
|
|
4047
|
-
toggle_class(
|
|
4082
|
+
toggle_class(div1, "error", /*_error*/ ctx[4]);
|
|
4048
4083
|
}
|
|
4049
4084
|
},
|
|
4050
4085
|
i: noop,
|
|
4051
4086
|
o: noop,
|
|
4052
4087
|
d(detaching) {
|
|
4053
|
-
if (detaching) detach(
|
|
4088
|
+
if (detaching) detach(div1);
|
|
4054
4089
|
if (if_block0) if_block0.d();
|
|
4055
4090
|
if (if_block1) if_block1.d();
|
|
4056
|
-
/*
|
|
4091
|
+
/*div1_binding*/ ctx[9](null);
|
|
4057
4092
|
mounted = false;
|
|
4058
4093
|
run_all(dispose);
|
|
4059
4094
|
}
|
|
4060
4095
|
};
|
|
4061
4096
|
}
|
|
4062
4097
|
|
|
4063
|
-
function instance$
|
|
4098
|
+
function instance$m($$self, $$props, $$invalidate) {
|
|
4064
4099
|
let { leadingicon = null } = $$props;
|
|
4065
4100
|
let { error = "false" } = $$props;
|
|
4066
4101
|
let { deletable = "false" } = $$props;
|
|
@@ -4078,7 +4113,7 @@ function instance$k($$self, $$props, $$invalidate) {
|
|
|
4078
4113
|
e.stopPropagation();
|
|
4079
4114
|
}
|
|
4080
4115
|
|
|
4081
|
-
function
|
|
4116
|
+
function div1_binding($$value) {
|
|
4082
4117
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
4083
4118
|
el = $$value;
|
|
4084
4119
|
$$invalidate(2, el);
|
|
@@ -4118,7 +4153,7 @@ function instance$k($$self, $$props, $$invalidate) {
|
|
|
4118
4153
|
onDelete,
|
|
4119
4154
|
error,
|
|
4120
4155
|
deletable,
|
|
4121
|
-
|
|
4156
|
+
div1_binding,
|
|
4122
4157
|
click_handler,
|
|
4123
4158
|
mouseover_handler,
|
|
4124
4159
|
mouseout_handler,
|
|
@@ -4130,7 +4165,7 @@ function instance$k($$self, $$props, $$invalidate) {
|
|
|
4130
4165
|
class Chip extends SvelteElement {
|
|
4131
4166
|
constructor(options) {
|
|
4132
4167
|
super();
|
|
4133
|
-
this.shadowRoot.innerHTML = `<style>.leading-icon{margin-left:-0.25rem}.chip{vertical-align:middle;align-items:center;background-color:var(--color-white);border-radius:99px;border:1px solid #949494;box-sizing:border-box;color:var(--goa-color-text);display:inline-flex;flex-direction:row;font-size:var(--chip-font-size);font-weight:var(--fw-regular);gap:0.25rem;height:2rem;justify-content:center;margin:0.25rem;padding:0 0.75rem}.chip:focus{outline:2px solid var(--goa-color-interactive--focus);background-color:var(--color-white)}.chip:hover{background-color:var(--color-gray-200)}.deletable{cursor:pointer}.delete-icon{margin-right:-0.25rem}.error,.error:hover{background-color:var(--goa-color-status-emergency-light)}</style>`;
|
|
4168
|
+
this.shadowRoot.innerHTML = `<style>.leading-icon{margin-left:-0.25rem}.chip{vertical-align:middle;align-items:center;background-color:var(--color-white);border-radius:99px;border:1px solid #949494;box-sizing:border-box;color:var(--goa-color-text);display:inline-flex;flex-direction:row;font-size:var(--chip-font-size);font-weight:var(--fw-regular);gap:0.25rem;height:2rem;justify-content:center;margin:0.25rem;padding:0 0.75rem}.text{padding-bottom:var(--font-valign-fix)}.chip:focus{outline:2px solid var(--goa-color-interactive--focus);background-color:var(--color-white)}.chip:hover{background-color:var(--color-gray-200)}.deletable{cursor:pointer}.delete-icon{margin-right:-0.25rem}.error,.error:hover{background-color:var(--goa-color-status-emergency-light)}</style>`;
|
|
4134
4169
|
|
|
4135
4170
|
init(
|
|
4136
4171
|
this,
|
|
@@ -4139,8 +4174,8 @@ class Chip extends SvelteElement {
|
|
|
4139
4174
|
props: attribute_to_object(this.attributes),
|
|
4140
4175
|
customElement: true
|
|
4141
4176
|
},
|
|
4142
|
-
instance$
|
|
4143
|
-
create_fragment$
|
|
4177
|
+
instance$m,
|
|
4178
|
+
create_fragment$n,
|
|
4144
4179
|
safe_not_equal,
|
|
4145
4180
|
{
|
|
4146
4181
|
leadingicon: 0,
|
|
@@ -4208,7 +4243,7 @@ customElements.define("goa-chip", Chip);
|
|
|
4208
4243
|
|
|
4209
4244
|
/* libs/web-components/src/components/container/Container.svelte generated by Svelte v3.44.3 */
|
|
4210
4245
|
|
|
4211
|
-
function create_fragment$
|
|
4246
|
+
function create_fragment$m(ctx) {
|
|
4212
4247
|
let div3;
|
|
4213
4248
|
let header;
|
|
4214
4249
|
let div0;
|
|
@@ -4236,7 +4271,12 @@ function create_fragment$k(ctx) {
|
|
|
4236
4271
|
attr(div1, "class", "actions");
|
|
4237
4272
|
attr(header, "class", header_class_value = "heading--" + /*headingsize*/ ctx[1]);
|
|
4238
4273
|
attr(div2, "class", "content");
|
|
4239
|
-
|
|
4274
|
+
|
|
4275
|
+
attr(div3, "class", div3_class_value = `
|
|
4276
|
+
goa-container
|
|
4277
|
+
goa-container--${/*variant*/ ctx[0]}
|
|
4278
|
+
padding--${/*padding*/ ctx[2]}
|
|
4279
|
+
`);
|
|
4240
4280
|
},
|
|
4241
4281
|
m(target, anchor) {
|
|
4242
4282
|
insert(target, div3, anchor);
|
|
@@ -4252,7 +4292,11 @@ function create_fragment$k(ctx) {
|
|
|
4252
4292
|
attr(header, "class", header_class_value);
|
|
4253
4293
|
}
|
|
4254
4294
|
|
|
4255
|
-
if (dirty & /*variant*/
|
|
4295
|
+
if (dirty & /*variant, padding*/ 5 && div3_class_value !== (div3_class_value = `
|
|
4296
|
+
goa-container
|
|
4297
|
+
goa-container--${/*variant*/ ctx[0]}
|
|
4298
|
+
padding--${/*padding*/ ctx[2]}
|
|
4299
|
+
`)) {
|
|
4256
4300
|
attr(div3, "class", div3_class_value);
|
|
4257
4301
|
}
|
|
4258
4302
|
},
|
|
@@ -4264,22 +4308,24 @@ function create_fragment$k(ctx) {
|
|
|
4264
4308
|
};
|
|
4265
4309
|
}
|
|
4266
4310
|
|
|
4267
|
-
function instance$
|
|
4311
|
+
function instance$l($$self, $$props, $$invalidate) {
|
|
4268
4312
|
let { variant = 'default' } = $$props;
|
|
4269
4313
|
let { headingsize = 'large' } = $$props;
|
|
4314
|
+
let { padding = "relaxed" } = $$props;
|
|
4270
4315
|
|
|
4271
4316
|
$$self.$$set = $$props => {
|
|
4272
4317
|
if ('variant' in $$props) $$invalidate(0, variant = $$props.variant);
|
|
4273
4318
|
if ('headingsize' in $$props) $$invalidate(1, headingsize = $$props.headingsize);
|
|
4319
|
+
if ('padding' in $$props) $$invalidate(2, padding = $$props.padding);
|
|
4274
4320
|
};
|
|
4275
4321
|
|
|
4276
|
-
return [variant, headingsize];
|
|
4322
|
+
return [variant, headingsize, padding];
|
|
4277
4323
|
}
|
|
4278
4324
|
|
|
4279
4325
|
class Container extends SvelteElement {
|
|
4280
4326
|
constructor(options) {
|
|
4281
4327
|
super();
|
|
4282
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family);font-size:var(--fs-base)}.goa-container{margin-bottom:1rem;box-sizing:border-box}.goa-container *{box-sizing:border-box}header{
|
|
4328
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family);font-size:var(--fs-base)}.goa-container{margin-bottom:1rem;box-sizing:border-box}.goa-container *{box-sizing:border-box}header{display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:var(--fs-base);border-width:1px;border-style:solid;border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.content{border-bottom:1px solid var(--color-gray-200);border-left:1px solid var(--color-gray-200);border-right:1px solid var(--color-gray-200);border-bottom-left-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius)}.title>*,.actions>*{line-height:3rem}.padding--relaxed header{padding:0 1.5rem}.padding--relaxed .content{padding:1.5rem}.padding--compact header,.padding--compact .content{padding:0 1rem}.padding--compact header{padding:0 1rem}.padding--compact .content{padding:1rem}@media screen and (max-width: 480px){.padding--relaxed header{padding:0 1rem}.padding--relaxed .content{padding:1rem}}.goa-container--default header{background-color:var(--color-gray-100);border-color:var(--color-gray-200);color:var(--color-black)}.goa-container--primary header{background-color:var(--goa-color-brand);border-color:var(--goa-color-brand);color:var(--color-white)}.goa-container--info header{background-color:var(--goa-color-status-info);border-color:var(--goa-color-status-info);color:var(--color-white)}.goa-container--error header{background-color:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency);color:var(--color-white)}.goa-container--success header{background-color:var(--goa-color-status-success);border-color:var(--goa-color-status-success);color:var(--color-white)}.goa-container--warning header{background-color:var(--goa-color-status-warning);border-color:var(--goa-color-status-warning);color:var(--color-white)}.heading--large{padding:0.5rem 1.5rem;max-height:3rem;min-height:1rem}.heading--large .title{line-height:2rem}.heading--small{height:0.5rem}.heading--none{display:none}.heading--none~.content{border-top:1px solid var(--color-gray-200);border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius)}.heading--small .title,.heading--small .actions{display:none}.actions{display:flex;align-items:center}</style>`;
|
|
4283
4329
|
|
|
4284
4330
|
init(
|
|
4285
4331
|
this,
|
|
@@ -4288,10 +4334,10 @@ class Container extends SvelteElement {
|
|
|
4288
4334
|
props: attribute_to_object(this.attributes),
|
|
4289
4335
|
customElement: true
|
|
4290
4336
|
},
|
|
4291
|
-
instance$
|
|
4292
|
-
create_fragment$
|
|
4337
|
+
instance$l,
|
|
4338
|
+
create_fragment$m,
|
|
4293
4339
|
safe_not_equal,
|
|
4294
|
-
{ variant: 0, headingsize: 1 },
|
|
4340
|
+
{ variant: 0, headingsize: 1, padding: 2 },
|
|
4295
4341
|
null
|
|
4296
4342
|
);
|
|
4297
4343
|
|
|
@@ -4308,7 +4354,7 @@ class Container extends SvelteElement {
|
|
|
4308
4354
|
}
|
|
4309
4355
|
|
|
4310
4356
|
static get observedAttributes() {
|
|
4311
|
-
return ["variant", "headingsize"];
|
|
4357
|
+
return ["variant", "headingsize", "padding"];
|
|
4312
4358
|
}
|
|
4313
4359
|
|
|
4314
4360
|
get variant() {
|
|
@@ -4328,6 +4374,15 @@ class Container extends SvelteElement {
|
|
|
4328
4374
|
this.$$set({ headingsize });
|
|
4329
4375
|
flush();
|
|
4330
4376
|
}
|
|
4377
|
+
|
|
4378
|
+
get padding() {
|
|
4379
|
+
return this.$$.ctx[2];
|
|
4380
|
+
}
|
|
4381
|
+
|
|
4382
|
+
set padding(padding) {
|
|
4383
|
+
this.$$set({ padding });
|
|
4384
|
+
flush();
|
|
4385
|
+
}
|
|
4331
4386
|
}
|
|
4332
4387
|
|
|
4333
4388
|
customElements.define("goa-container", Container);
|
|
@@ -4338,12 +4393,12 @@ const BIND$1 = "bind";
|
|
|
4338
4393
|
|
|
4339
4394
|
function get_each_context$1(ctx, list, i) {
|
|
4340
4395
|
const child_ctx = ctx.slice();
|
|
4341
|
-
child_ctx[
|
|
4342
|
-
child_ctx[
|
|
4396
|
+
child_ctx[34] = list[i];
|
|
4397
|
+
child_ctx[36] = i;
|
|
4343
4398
|
return child_ctx;
|
|
4344
4399
|
}
|
|
4345
4400
|
|
|
4346
|
-
// (
|
|
4401
|
+
// (172:2) {#if isMenuVisible}
|
|
4347
4402
|
function create_if_block$b(ctx) {
|
|
4348
4403
|
let div;
|
|
4349
4404
|
let div_data_testid_value;
|
|
@@ -4353,7 +4408,7 @@ function create_if_block$b(ctx) {
|
|
|
4353
4408
|
return {
|
|
4354
4409
|
c() {
|
|
4355
4410
|
div = element("div");
|
|
4356
|
-
attr(div, "data-testid", div_data_testid_value = `${/*name*/ ctx[
|
|
4411
|
+
attr(div, "data-testid", div_data_testid_value = `${/*name*/ ctx[0]}-dropdown-background`);
|
|
4357
4412
|
attr(div, "class", "goa-dropdown-background");
|
|
4358
4413
|
},
|
|
4359
4414
|
m(target, anchor) {
|
|
@@ -4365,7 +4420,7 @@ function create_if_block$b(ctx) {
|
|
|
4365
4420
|
}
|
|
4366
4421
|
},
|
|
4367
4422
|
p(ctx, dirty) {
|
|
4368
|
-
if (dirty[0] & /*name*/
|
|
4423
|
+
if (dirty[0] & /*name*/ 1 && div_data_testid_value !== (div_data_testid_value = `${/*name*/ ctx[0]}-dropdown-background`)) {
|
|
4369
4424
|
attr(div, "data-testid", div_data_testid_value);
|
|
4370
4425
|
}
|
|
4371
4426
|
},
|
|
@@ -4377,10 +4432,10 @@ function create_if_block$b(ctx) {
|
|
|
4377
4432
|
};
|
|
4378
4433
|
}
|
|
4379
4434
|
|
|
4380
|
-
// (
|
|
4435
|
+
// (208:4) {#each options as option, index (option.value)}
|
|
4381
4436
|
function create_each_block$1(key_1, ctx) {
|
|
4382
4437
|
let li;
|
|
4383
|
-
let t0_value = /*option*/ ctx[
|
|
4438
|
+
let t0_value = /*option*/ ctx[34].label + "";
|
|
4384
4439
|
let t0;
|
|
4385
4440
|
let t1;
|
|
4386
4441
|
let li_data_testid_value;
|
|
@@ -4390,7 +4445,7 @@ function create_each_block$1(key_1, ctx) {
|
|
|
4390
4445
|
let dispose;
|
|
4391
4446
|
|
|
4392
4447
|
function click_handler() {
|
|
4393
|
-
return /*click_handler*/ ctx[
|
|
4448
|
+
return /*click_handler*/ ctx[22](/*option*/ ctx[34]);
|
|
4394
4449
|
}
|
|
4395
4450
|
|
|
4396
4451
|
return {
|
|
@@ -4400,13 +4455,13 @@ function create_each_block$1(key_1, ctx) {
|
|
|
4400
4455
|
li = element("li");
|
|
4401
4456
|
t0 = text(t0_value);
|
|
4402
4457
|
t1 = space();
|
|
4403
|
-
attr(li, "data-testid", li_data_testid_value = `${/*option*/ ctx[
|
|
4404
|
-
attr(li, "data-index", li_data_index_value = /*index*/ ctx[
|
|
4458
|
+
attr(li, "data-testid", li_data_testid_value = `${/*option*/ ctx[34].value}-dropdown-item`);
|
|
4459
|
+
attr(li, "data-index", li_data_index_value = /*index*/ ctx[36]);
|
|
4405
4460
|
attr(li, "class", "goa-dropdown-option");
|
|
4406
4461
|
attr(li, "style", li_style_value = `display: ${"block"}`);
|
|
4407
4462
|
toggle_class(li, "goa-dropdown-option--disabled", false);
|
|
4408
|
-
toggle_class(li, "goa-dropdown-option--tabbed", /*index*/ ctx[
|
|
4409
|
-
toggle_class(li, "goa-dropdown-option--selected", /*
|
|
4463
|
+
toggle_class(li, "goa-dropdown-option--tabbed", /*index*/ ctx[36] === /*highlightedIndex*/ ctx[11]);
|
|
4464
|
+
toggle_class(li, "goa-dropdown-option--selected", /*_values*/ ctx[7].includes(/*option*/ ctx[34].value));
|
|
4410
4465
|
this.first = li;
|
|
4411
4466
|
},
|
|
4412
4467
|
m(target, anchor) {
|
|
@@ -4421,22 +4476,22 @@ function create_each_block$1(key_1, ctx) {
|
|
|
4421
4476
|
},
|
|
4422
4477
|
p(new_ctx, dirty) {
|
|
4423
4478
|
ctx = new_ctx;
|
|
4424
|
-
if (dirty[0] & /*options*/ 256 && t0_value !== (t0_value = /*option*/ ctx[
|
|
4479
|
+
if (dirty[0] & /*options*/ 256 && t0_value !== (t0_value = /*option*/ ctx[34].label + "")) set_data(t0, t0_value);
|
|
4425
4480
|
|
|
4426
|
-
if (dirty[0] & /*options*/ 256 && li_data_testid_value !== (li_data_testid_value = `${/*option*/ ctx[
|
|
4481
|
+
if (dirty[0] & /*options*/ 256 && li_data_testid_value !== (li_data_testid_value = `${/*option*/ ctx[34].value}-dropdown-item`)) {
|
|
4427
4482
|
attr(li, "data-testid", li_data_testid_value);
|
|
4428
4483
|
}
|
|
4429
4484
|
|
|
4430
|
-
if (dirty[0] & /*options*/ 256 && li_data_index_value !== (li_data_index_value = /*index*/ ctx[
|
|
4485
|
+
if (dirty[0] & /*options*/ 256 && li_data_index_value !== (li_data_index_value = /*index*/ ctx[36])) {
|
|
4431
4486
|
attr(li, "data-index", li_data_index_value);
|
|
4432
4487
|
}
|
|
4433
4488
|
|
|
4434
4489
|
if (dirty[0] & /*options, highlightedIndex*/ 2304) {
|
|
4435
|
-
toggle_class(li, "goa-dropdown-option--tabbed", /*index*/ ctx[
|
|
4490
|
+
toggle_class(li, "goa-dropdown-option--tabbed", /*index*/ ctx[36] === /*highlightedIndex*/ ctx[11]);
|
|
4436
4491
|
}
|
|
4437
4492
|
|
|
4438
|
-
if (dirty[0] & /*
|
|
4439
|
-
toggle_class(li, "goa-dropdown-option--selected", /*
|
|
4493
|
+
if (dirty[0] & /*_values, options*/ 384) {
|
|
4494
|
+
toggle_class(li, "goa-dropdown-option--selected", /*_values*/ ctx[7].includes(/*option*/ ctx[34].value));
|
|
4440
4495
|
}
|
|
4441
4496
|
},
|
|
4442
4497
|
d(detaching) {
|
|
@@ -4447,7 +4502,7 @@ function create_each_block$1(key_1, ctx) {
|
|
|
4447
4502
|
};
|
|
4448
4503
|
}
|
|
4449
4504
|
|
|
4450
|
-
function create_fragment$
|
|
4505
|
+
function create_fragment$l(ctx) {
|
|
4451
4506
|
let div1;
|
|
4452
4507
|
let t0;
|
|
4453
4508
|
let div0;
|
|
@@ -4466,7 +4521,7 @@ function create_fragment$j(ctx) {
|
|
|
4466
4521
|
let dispose;
|
|
4467
4522
|
let if_block = /*isMenuVisible*/ ctx[10] && create_if_block$b(ctx);
|
|
4468
4523
|
let each_value = /*options*/ ctx[8];
|
|
4469
|
-
const get_key = ctx => /*option*/ ctx[
|
|
4524
|
+
const get_key = ctx => /*option*/ ctx[34].value;
|
|
4470
4525
|
|
|
4471
4526
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
4472
4527
|
let child_ctx = get_each_context$1(ctx, each_value, i);
|
|
@@ -4492,22 +4547,23 @@ function create_fragment$j(ctx) {
|
|
|
4492
4547
|
|
|
4493
4548
|
this.c = noop;
|
|
4494
4549
|
set_custom_element_data(goa_input, "error", /*isError*/ ctx[15]);
|
|
4495
|
-
set_custom_element_data(goa_input, "disabled", /*disabled*/ ctx[
|
|
4496
|
-
set_custom_element_data(goa_input, "leadingicon", /*leadingicon*/ ctx[
|
|
4497
|
-
set_custom_element_data(goa_input, "placeholder", /*placeholder*/ ctx[
|
|
4498
|
-
set_custom_element_data(goa_input, "width", goa_input_width_value = /*width*/ ctx[
|
|
4499
|
-
set_custom_element_data(goa_input, "id", goa_input_id_value = `${/*name*/ ctx[
|
|
4550
|
+
set_custom_element_data(goa_input, "disabled", /*disabled*/ ctx[4]);
|
|
4551
|
+
set_custom_element_data(goa_input, "leadingicon", /*leadingicon*/ ctx[1]);
|
|
4552
|
+
set_custom_element_data(goa_input, "placeholder", /*placeholder*/ ctx[3]);
|
|
4553
|
+
set_custom_element_data(goa_input, "width", goa_input_width_value = /*width*/ ctx[6] || /*computedWidth*/ ctx[12]);
|
|
4554
|
+
set_custom_element_data(goa_input, "id", goa_input_id_value = `${/*name*/ ctx[0]}-dropdown-input`);
|
|
4500
4555
|
set_custom_element_data(goa_input, "name", "search");
|
|
4501
4556
|
set_custom_element_data(goa_input, "readonly", "");
|
|
4502
4557
|
set_custom_element_data(goa_input, "trailingicon", "chevron-down");
|
|
4503
4558
|
set_custom_element_data(goa_input, "type", "text");
|
|
4504
4559
|
set_custom_element_data(goa_input, "value", /*selectedLabel*/ ctx[9]);
|
|
4505
|
-
attr(div0, "data-testid", div0_data_testid_value = `${/*name*/ ctx[
|
|
4560
|
+
attr(div0, "data-testid", div0_data_testid_value = `${/*name*/ ctx[0]}-dropdown`);
|
|
4561
|
+
attr(ul, "data-testid", "dropdown-menu");
|
|
4506
4562
|
attr(ul, "tabindex", "0");
|
|
4507
4563
|
attr(ul, "class", "goa-dropdown-list");
|
|
4508
|
-
attr(ul, "style", ul_style_value = `overflow-y: auto; max-height: ${/*maxheight*/ ctx[
|
|
4564
|
+
attr(ul, "style", ul_style_value = `overflow-y: auto; max-height: ${/*maxheight*/ ctx[2]}`);
|
|
4509
4565
|
toggle_class(ul, "dropdown-active", /*isMenuVisible*/ ctx[10]);
|
|
4510
|
-
attr(div1, "data-testid", /*testid*/ ctx[
|
|
4566
|
+
attr(div1, "data-testid", /*testid*/ ctx[5]);
|
|
4511
4567
|
attr(div1, "class", "goa-dropdown-box");
|
|
4512
4568
|
},
|
|
4513
4569
|
m(target, anchor) {
|
|
@@ -4525,8 +4581,8 @@ function create_fragment$j(ctx) {
|
|
|
4525
4581
|
each_blocks[i].m(ul, null);
|
|
4526
4582
|
}
|
|
4527
4583
|
|
|
4528
|
-
/*ul_binding*/ ctx[
|
|
4529
|
-
/*div1_binding*/ ctx[
|
|
4584
|
+
/*ul_binding*/ ctx[23](ul);
|
|
4585
|
+
/*div1_binding*/ ctx[24](div1);
|
|
4530
4586
|
|
|
4531
4587
|
if (!mounted) {
|
|
4532
4588
|
dispose = listen(goa_input, "click", /*showMenu*/ ctx[16]);
|
|
@@ -4551,23 +4607,23 @@ function create_fragment$j(ctx) {
|
|
|
4551
4607
|
set_custom_element_data(goa_input, "error", /*isError*/ ctx[15]);
|
|
4552
4608
|
}
|
|
4553
4609
|
|
|
4554
|
-
if (dirty[0] & /*disabled*/
|
|
4555
|
-
set_custom_element_data(goa_input, "disabled", /*disabled*/ ctx[
|
|
4610
|
+
if (dirty[0] & /*disabled*/ 16) {
|
|
4611
|
+
set_custom_element_data(goa_input, "disabled", /*disabled*/ ctx[4]);
|
|
4556
4612
|
}
|
|
4557
4613
|
|
|
4558
|
-
if (dirty[0] & /*leadingicon*/
|
|
4559
|
-
set_custom_element_data(goa_input, "leadingicon", /*leadingicon*/ ctx[
|
|
4614
|
+
if (dirty[0] & /*leadingicon*/ 2) {
|
|
4615
|
+
set_custom_element_data(goa_input, "leadingicon", /*leadingicon*/ ctx[1]);
|
|
4560
4616
|
}
|
|
4561
4617
|
|
|
4562
|
-
if (dirty[0] & /*placeholder*/
|
|
4563
|
-
set_custom_element_data(goa_input, "placeholder", /*placeholder*/ ctx[
|
|
4618
|
+
if (dirty[0] & /*placeholder*/ 8) {
|
|
4619
|
+
set_custom_element_data(goa_input, "placeholder", /*placeholder*/ ctx[3]);
|
|
4564
4620
|
}
|
|
4565
4621
|
|
|
4566
|
-
if (dirty[0] & /*width, computedWidth*/
|
|
4622
|
+
if (dirty[0] & /*width, computedWidth*/ 4160 && goa_input_width_value !== (goa_input_width_value = /*width*/ ctx[6] || /*computedWidth*/ ctx[12])) {
|
|
4567
4623
|
set_custom_element_data(goa_input, "width", goa_input_width_value);
|
|
4568
4624
|
}
|
|
4569
4625
|
|
|
4570
|
-
if (dirty[0] & /*name*/
|
|
4626
|
+
if (dirty[0] & /*name*/ 1 && goa_input_id_value !== (goa_input_id_value = `${/*name*/ ctx[0]}-dropdown-input`)) {
|
|
4571
4627
|
set_custom_element_data(goa_input, "id", goa_input_id_value);
|
|
4572
4628
|
}
|
|
4573
4629
|
|
|
@@ -4575,16 +4631,16 @@ function create_fragment$j(ctx) {
|
|
|
4575
4631
|
set_custom_element_data(goa_input, "value", /*selectedLabel*/ ctx[9]);
|
|
4576
4632
|
}
|
|
4577
4633
|
|
|
4578
|
-
if (dirty[0] & /*name*/
|
|
4634
|
+
if (dirty[0] & /*name*/ 1 && div0_data_testid_value !== (div0_data_testid_value = `${/*name*/ ctx[0]}-dropdown`)) {
|
|
4579
4635
|
attr(div0, "data-testid", div0_data_testid_value);
|
|
4580
4636
|
}
|
|
4581
4637
|
|
|
4582
|
-
if (dirty[0] & /*options, highlightedIndex,
|
|
4638
|
+
if (dirty[0] & /*options, highlightedIndex, _values, onSelect*/ 264576) {
|
|
4583
4639
|
each_value = /*options*/ ctx[8];
|
|
4584
4640
|
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, ul, destroy_block, create_each_block$1, null, get_each_context$1);
|
|
4585
4641
|
}
|
|
4586
4642
|
|
|
4587
|
-
if (dirty[0] & /*maxheight*/
|
|
4643
|
+
if (dirty[0] & /*maxheight*/ 4 && ul_style_value !== (ul_style_value = `overflow-y: auto; max-height: ${/*maxheight*/ ctx[2]}`)) {
|
|
4588
4644
|
attr(ul, "style", ul_style_value);
|
|
4589
4645
|
}
|
|
4590
4646
|
|
|
@@ -4592,8 +4648,8 @@ function create_fragment$j(ctx) {
|
|
|
4592
4648
|
toggle_class(ul, "dropdown-active", /*isMenuVisible*/ ctx[10]);
|
|
4593
4649
|
}
|
|
4594
4650
|
|
|
4595
|
-
if (dirty[0] & /*testid*/
|
|
4596
|
-
attr(div1, "data-testid", /*testid*/ ctx[
|
|
4651
|
+
if (dirty[0] & /*testid*/ 32) {
|
|
4652
|
+
attr(div1, "data-testid", /*testid*/ ctx[5]);
|
|
4597
4653
|
}
|
|
4598
4654
|
},
|
|
4599
4655
|
i: noop,
|
|
@@ -4606,31 +4662,33 @@ function create_fragment$j(ctx) {
|
|
|
4606
4662
|
each_blocks[i].d();
|
|
4607
4663
|
}
|
|
4608
4664
|
|
|
4609
|
-
/*ul_binding*/ ctx[
|
|
4610
|
-
/*div1_binding*/ ctx[
|
|
4665
|
+
/*ul_binding*/ ctx[23](null);
|
|
4666
|
+
/*div1_binding*/ ctx[24](null);
|
|
4611
4667
|
mounted = false;
|
|
4612
4668
|
dispose();
|
|
4613
4669
|
}
|
|
4614
4670
|
};
|
|
4615
4671
|
}
|
|
4616
4672
|
|
|
4617
|
-
const MAX_HEIGHT =
|
|
4673
|
+
const MAX_HEIGHT = "300px";
|
|
4618
4674
|
|
|
4619
|
-
function instance$
|
|
4675
|
+
function instance$k($$self, $$props, $$invalidate) {
|
|
4620
4676
|
let isError;
|
|
4621
4677
|
let { name } = $$props;
|
|
4622
|
-
let { value } = $$props;
|
|
4623
|
-
let { leadingicon } = $$props;
|
|
4678
|
+
let { value = "" } = $$props;
|
|
4679
|
+
let { leadingicon = null } = $$props;
|
|
4624
4680
|
let { maxheight = MAX_HEIGHT } = $$props;
|
|
4625
4681
|
let { placeholder = "" } = $$props;
|
|
4626
|
-
let { disabled } = $$props;
|
|
4627
|
-
let { error } = $$props;
|
|
4628
|
-
let { testid } = $$props;
|
|
4629
|
-
let { width } = $$props;
|
|
4682
|
+
let { disabled = false } = $$props;
|
|
4683
|
+
let { error = false } = $$props;
|
|
4684
|
+
let { testid = "" } = $$props;
|
|
4685
|
+
let { width = "" } = $$props;
|
|
4686
|
+
let { multiselect = false } = $$props;
|
|
4630
4687
|
|
|
4631
4688
|
// Private
|
|
4632
|
-
let
|
|
4689
|
+
let _values = [];
|
|
4633
4690
|
|
|
4691
|
+
let options = [];
|
|
4634
4692
|
let selectedLabel = "";
|
|
4635
4693
|
let isMenuVisible = false;
|
|
4636
4694
|
let highlightedIndex = 0;
|
|
@@ -4644,6 +4702,21 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
4644
4702
|
onMount(async () => {
|
|
4645
4703
|
el.addEventListener("focus", onFocus, true);
|
|
4646
4704
|
el.addEventListener("blur", onBlur, true);
|
|
4705
|
+
|
|
4706
|
+
// parse and convert values to strings to avoid later type comparison issues
|
|
4707
|
+
let rawValue;
|
|
4708
|
+
|
|
4709
|
+
try {
|
|
4710
|
+
rawValue = JSON.parse(value || "[]");
|
|
4711
|
+
} catch(e) {
|
|
4712
|
+
rawValue = [value];
|
|
4713
|
+
}
|
|
4714
|
+
|
|
4715
|
+
const rawValues = typeof rawValue === "object" ? rawValue : [rawValue];
|
|
4716
|
+
|
|
4717
|
+
// convert all values to strings to avoid later type comparison issues
|
|
4718
|
+
$$invalidate(7, _values = rawValues.map(val => `${val}`));
|
|
4719
|
+
|
|
4647
4720
|
bindContext();
|
|
4648
4721
|
});
|
|
4649
4722
|
|
|
@@ -4662,7 +4735,7 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
4662
4735
|
case BIND$1:
|
|
4663
4736
|
{
|
|
4664
4737
|
const _data = data;
|
|
4665
|
-
const selected =
|
|
4738
|
+
const selected = _values.includes(_data.value);
|
|
4666
4739
|
$$invalidate(8, options = [...options, Object.assign(Object.assign({}, _data), { selected })]);
|
|
4667
4740
|
|
|
4668
4741
|
if (selected) {
|
|
@@ -4709,15 +4782,33 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
4709
4782
|
}
|
|
4710
4783
|
|
|
4711
4784
|
function setHighlightedIndexToSelected() {
|
|
4712
|
-
$$invalidate(11, highlightedIndex = options.findIndex(option => option.value
|
|
4785
|
+
$$invalidate(11, highlightedIndex = options.findIndex(option => _values.includes(option.value)));
|
|
4713
4786
|
}
|
|
4714
4787
|
|
|
4715
4788
|
// Event handlers
|
|
4716
|
-
function onSelect(
|
|
4789
|
+
function onSelect(val, label) {
|
|
4790
|
+
if (disabled) return;
|
|
4717
4791
|
$$invalidate(9, selectedLabel = label);
|
|
4718
|
-
|
|
4792
|
+
|
|
4793
|
+
if (multiselect) {
|
|
4794
|
+
_values.push(val);
|
|
4795
|
+
|
|
4796
|
+
el.dispatchEvent(new CustomEvent("_change",
|
|
4797
|
+
{
|
|
4798
|
+
composed: true,
|
|
4799
|
+
detail: { name, values: _values }
|
|
4800
|
+
}));
|
|
4801
|
+
} else {
|
|
4802
|
+
$$invalidate(7, _values = [val]);
|
|
4803
|
+
|
|
4804
|
+
el.dispatchEvent(new CustomEvent("_change",
|
|
4805
|
+
{
|
|
4806
|
+
composed: true,
|
|
4807
|
+
detail: { name, value: _values[0] }
|
|
4808
|
+
}));
|
|
4809
|
+
}
|
|
4810
|
+
|
|
4719
4811
|
closeMenu();
|
|
4720
|
-
el.dispatchEvent(new CustomEvent("_change", { composed: true, detail: { name, value } }));
|
|
4721
4812
|
}
|
|
4722
4813
|
|
|
4723
4814
|
const onInputKeyDown = e => {
|
|
@@ -4755,7 +4846,7 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
4755
4846
|
break;
|
|
4756
4847
|
case "Tab":
|
|
4757
4848
|
case "Enter":
|
|
4758
|
-
onSelect(
|
|
4849
|
+
onSelect(options[highlightedIndex].value, options[highlightedIndex].label);
|
|
4759
4850
|
e.preventDefault();
|
|
4760
4851
|
break;
|
|
4761
4852
|
case "Escape":
|
|
@@ -4769,7 +4860,7 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
4769
4860
|
$$invalidate(11, highlightedIndex = Number(e.target.dataset.index));
|
|
4770
4861
|
}
|
|
4771
4862
|
|
|
4772
|
-
const click_handler = option => onSelect(option.
|
|
4863
|
+
const click_handler = option => onSelect(option.value, option.label);
|
|
4773
4864
|
|
|
4774
4865
|
function ul_binding($$value) {
|
|
4775
4866
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
@@ -4786,26 +4877,26 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
4786
4877
|
}
|
|
4787
4878
|
|
|
4788
4879
|
$$self.$$set = $$props => {
|
|
4789
|
-
if ('name' in $$props) $$invalidate(
|
|
4790
|
-
if ('value' in $$props) $$invalidate(
|
|
4791
|
-
if ('leadingicon' in $$props) $$invalidate(
|
|
4792
|
-
if ('maxheight' in $$props) $$invalidate(
|
|
4793
|
-
if ('placeholder' in $$props) $$invalidate(
|
|
4794
|
-
if ('disabled' in $$props) $$invalidate(
|
|
4795
|
-
if ('error' in $$props) $$invalidate(
|
|
4796
|
-
if ('testid' in $$props) $$invalidate(
|
|
4797
|
-
if ('width' in $$props) $$invalidate(
|
|
4880
|
+
if ('name' in $$props) $$invalidate(0, name = $$props.name);
|
|
4881
|
+
if ('value' in $$props) $$invalidate(19, value = $$props.value);
|
|
4882
|
+
if ('leadingicon' in $$props) $$invalidate(1, leadingicon = $$props.leadingicon);
|
|
4883
|
+
if ('maxheight' in $$props) $$invalidate(2, maxheight = $$props.maxheight);
|
|
4884
|
+
if ('placeholder' in $$props) $$invalidate(3, placeholder = $$props.placeholder);
|
|
4885
|
+
if ('disabled' in $$props) $$invalidate(4, disabled = $$props.disabled);
|
|
4886
|
+
if ('error' in $$props) $$invalidate(20, error = $$props.error);
|
|
4887
|
+
if ('testid' in $$props) $$invalidate(5, testid = $$props.testid);
|
|
4888
|
+
if ('width' in $$props) $$invalidate(6, width = $$props.width);
|
|
4889
|
+
if ('multiselect' in $$props) $$invalidate(21, multiselect = $$props.multiselect);
|
|
4798
4890
|
};
|
|
4799
4891
|
|
|
4800
4892
|
$$self.$$.update = () => {
|
|
4801
|
-
if ($$self.$$.dirty[0] & /*error*/
|
|
4893
|
+
if ($$self.$$.dirty[0] & /*error*/ 1048576) {
|
|
4802
4894
|
// TODO: remove this once goa-input has the toBoolean method removed
|
|
4803
4895
|
$$invalidate(15, isError = error ? "true" : "false");
|
|
4804
4896
|
}
|
|
4805
4897
|
};
|
|
4806
4898
|
|
|
4807
4899
|
return [
|
|
4808
|
-
value,
|
|
4809
4900
|
name,
|
|
4810
4901
|
leadingicon,
|
|
4811
4902
|
maxheight,
|
|
@@ -4813,6 +4904,7 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
4813
4904
|
disabled,
|
|
4814
4905
|
testid,
|
|
4815
4906
|
width,
|
|
4907
|
+
_values,
|
|
4816
4908
|
options,
|
|
4817
4909
|
selectedLabel,
|
|
4818
4910
|
isMenuVisible,
|
|
@@ -4824,7 +4916,9 @@ function instance$i($$self, $$props, $$invalidate) {
|
|
|
4824
4916
|
showMenu,
|
|
4825
4917
|
closeMenu,
|
|
4826
4918
|
onSelect,
|
|
4919
|
+
value,
|
|
4827
4920
|
error,
|
|
4921
|
+
multiselect,
|
|
4828
4922
|
click_handler,
|
|
4829
4923
|
ul_binding,
|
|
4830
4924
|
div1_binding
|
|
@@ -4843,19 +4937,20 @@ class Dropdown extends SvelteElement {
|
|
|
4843
4937
|
props: attribute_to_object(this.attributes),
|
|
4844
4938
|
customElement: true
|
|
4845
4939
|
},
|
|
4846
|
-
instance$
|
|
4847
|
-
create_fragment$
|
|
4940
|
+
instance$k,
|
|
4941
|
+
create_fragment$l,
|
|
4848
4942
|
safe_not_equal,
|
|
4849
4943
|
{
|
|
4850
|
-
name:
|
|
4851
|
-
value:
|
|
4852
|
-
leadingicon:
|
|
4853
|
-
maxheight:
|
|
4854
|
-
placeholder:
|
|
4855
|
-
disabled:
|
|
4856
|
-
error:
|
|
4857
|
-
testid:
|
|
4858
|
-
width:
|
|
4944
|
+
name: 0,
|
|
4945
|
+
value: 19,
|
|
4946
|
+
leadingicon: 1,
|
|
4947
|
+
maxheight: 2,
|
|
4948
|
+
placeholder: 3,
|
|
4949
|
+
disabled: 4,
|
|
4950
|
+
error: 20,
|
|
4951
|
+
testid: 5,
|
|
4952
|
+
width: 6,
|
|
4953
|
+
multiselect: 21
|
|
4859
4954
|
},
|
|
4860
4955
|
null,
|
|
4861
4956
|
[-1, -1]
|
|
@@ -4883,12 +4978,13 @@ class Dropdown extends SvelteElement {
|
|
|
4883
4978
|
"disabled",
|
|
4884
4979
|
"error",
|
|
4885
4980
|
"testid",
|
|
4886
|
-
"width"
|
|
4981
|
+
"width",
|
|
4982
|
+
"multiselect"
|
|
4887
4983
|
];
|
|
4888
4984
|
}
|
|
4889
4985
|
|
|
4890
4986
|
get name() {
|
|
4891
|
-
return this.$$.ctx[
|
|
4987
|
+
return this.$$.ctx[0];
|
|
4892
4988
|
}
|
|
4893
4989
|
|
|
4894
4990
|
set name(name) {
|
|
@@ -4897,7 +4993,7 @@ class Dropdown extends SvelteElement {
|
|
|
4897
4993
|
}
|
|
4898
4994
|
|
|
4899
4995
|
get value() {
|
|
4900
|
-
return this.$$.ctx[
|
|
4996
|
+
return this.$$.ctx[19];
|
|
4901
4997
|
}
|
|
4902
4998
|
|
|
4903
4999
|
set value(value) {
|
|
@@ -4906,7 +5002,7 @@ class Dropdown extends SvelteElement {
|
|
|
4906
5002
|
}
|
|
4907
5003
|
|
|
4908
5004
|
get leadingicon() {
|
|
4909
|
-
return this.$$.ctx[
|
|
5005
|
+
return this.$$.ctx[1];
|
|
4910
5006
|
}
|
|
4911
5007
|
|
|
4912
5008
|
set leadingicon(leadingicon) {
|
|
@@ -4915,7 +5011,7 @@ class Dropdown extends SvelteElement {
|
|
|
4915
5011
|
}
|
|
4916
5012
|
|
|
4917
5013
|
get maxheight() {
|
|
4918
|
-
return this.$$.ctx[
|
|
5014
|
+
return this.$$.ctx[2];
|
|
4919
5015
|
}
|
|
4920
5016
|
|
|
4921
5017
|
set maxheight(maxheight) {
|
|
@@ -4924,7 +5020,7 @@ class Dropdown extends SvelteElement {
|
|
|
4924
5020
|
}
|
|
4925
5021
|
|
|
4926
5022
|
get placeholder() {
|
|
4927
|
-
return this.$$.ctx[
|
|
5023
|
+
return this.$$.ctx[3];
|
|
4928
5024
|
}
|
|
4929
5025
|
|
|
4930
5026
|
set placeholder(placeholder) {
|
|
@@ -4933,7 +5029,7 @@ class Dropdown extends SvelteElement {
|
|
|
4933
5029
|
}
|
|
4934
5030
|
|
|
4935
5031
|
get disabled() {
|
|
4936
|
-
return this.$$.ctx[
|
|
5032
|
+
return this.$$.ctx[4];
|
|
4937
5033
|
}
|
|
4938
5034
|
|
|
4939
5035
|
set disabled(disabled) {
|
|
@@ -4942,7 +5038,7 @@ class Dropdown extends SvelteElement {
|
|
|
4942
5038
|
}
|
|
4943
5039
|
|
|
4944
5040
|
get error() {
|
|
4945
|
-
return this.$$.ctx[
|
|
5041
|
+
return this.$$.ctx[20];
|
|
4946
5042
|
}
|
|
4947
5043
|
|
|
4948
5044
|
set error(error) {
|
|
@@ -4951,7 +5047,7 @@ class Dropdown extends SvelteElement {
|
|
|
4951
5047
|
}
|
|
4952
5048
|
|
|
4953
5049
|
get testid() {
|
|
4954
|
-
return this.$$.ctx[
|
|
5050
|
+
return this.$$.ctx[5];
|
|
4955
5051
|
}
|
|
4956
5052
|
|
|
4957
5053
|
set testid(testid) {
|
|
@@ -4960,20 +5056,29 @@ class Dropdown extends SvelteElement {
|
|
|
4960
5056
|
}
|
|
4961
5057
|
|
|
4962
5058
|
get width() {
|
|
4963
|
-
return this.$$.ctx[
|
|
5059
|
+
return this.$$.ctx[6];
|
|
4964
5060
|
}
|
|
4965
5061
|
|
|
4966
5062
|
set width(width) {
|
|
4967
5063
|
this.$$set({ width });
|
|
4968
5064
|
flush();
|
|
4969
5065
|
}
|
|
5066
|
+
|
|
5067
|
+
get multiselect() {
|
|
5068
|
+
return this.$$.ctx[21];
|
|
5069
|
+
}
|
|
5070
|
+
|
|
5071
|
+
set multiselect(multiselect) {
|
|
5072
|
+
this.$$set({ multiselect });
|
|
5073
|
+
flush();
|
|
5074
|
+
}
|
|
4970
5075
|
}
|
|
4971
5076
|
|
|
4972
5077
|
customElements.define("goa-dropdown", Dropdown);
|
|
4973
5078
|
|
|
4974
5079
|
/* libs/web-components/src/components/dropdown/DropdownItem.svelte generated by Svelte v3.44.3 */
|
|
4975
5080
|
|
|
4976
|
-
function create_fragment$
|
|
5081
|
+
function create_fragment$k(ctx) {
|
|
4977
5082
|
return {
|
|
4978
5083
|
c() {
|
|
4979
5084
|
this.c = noop;
|
|
@@ -4986,7 +5091,7 @@ function create_fragment$i(ctx) {
|
|
|
4986
5091
|
};
|
|
4987
5092
|
}
|
|
4988
5093
|
|
|
4989
|
-
function instance$
|
|
5094
|
+
function instance$j($$self, $$props, $$invalidate) {
|
|
4990
5095
|
let { name = "" } = $$props;
|
|
4991
5096
|
let { value = "" } = $$props;
|
|
4992
5097
|
let { label = "" } = $$props;
|
|
@@ -5020,8 +5125,8 @@ class DropdownItem extends SvelteElement {
|
|
|
5020
5125
|
props: attribute_to_object(this.attributes),
|
|
5021
5126
|
customElement: true
|
|
5022
5127
|
},
|
|
5023
|
-
instance$
|
|
5024
|
-
create_fragment$
|
|
5128
|
+
instance$j,
|
|
5129
|
+
create_fragment$k,
|
|
5025
5130
|
safe_not_equal,
|
|
5026
5131
|
{ name: 0, value: 1, label: 2 },
|
|
5027
5132
|
null
|
|
@@ -5075,7 +5180,7 @@ customElements.define("goa-dropdown-item", DropdownItem);
|
|
|
5075
5180
|
|
|
5076
5181
|
/* libs/web-components/src/components/flex-row/FlexRow.svelte generated by Svelte v3.44.3 */
|
|
5077
5182
|
|
|
5078
|
-
function create_fragment$
|
|
5183
|
+
function create_fragment$j(ctx) {
|
|
5079
5184
|
let div;
|
|
5080
5185
|
let slot;
|
|
5081
5186
|
|
|
@@ -5104,7 +5209,7 @@ function create_fragment$h(ctx) {
|
|
|
5104
5209
|
};
|
|
5105
5210
|
}
|
|
5106
5211
|
|
|
5107
|
-
function instance$
|
|
5212
|
+
function instance$i($$self, $$props, $$invalidate) {
|
|
5108
5213
|
let _gap;
|
|
5109
5214
|
let { gap = "" } = $$props;
|
|
5110
5215
|
|
|
@@ -5137,8 +5242,8 @@ class FlexRow extends SvelteElement {
|
|
|
5137
5242
|
props: attribute_to_object(this.attributes),
|
|
5138
5243
|
customElement: true
|
|
5139
5244
|
},
|
|
5140
|
-
instance$
|
|
5141
|
-
create_fragment$
|
|
5245
|
+
instance$i,
|
|
5246
|
+
create_fragment$j,
|
|
5142
5247
|
safe_not_equal,
|
|
5143
5248
|
{ gap: 1 },
|
|
5144
5249
|
null
|
|
@@ -5281,7 +5386,7 @@ function create_if_block$a(ctx) {
|
|
|
5281
5386
|
};
|
|
5282
5387
|
}
|
|
5283
5388
|
|
|
5284
|
-
function create_fragment$
|
|
5389
|
+
function create_fragment$i(ctx) {
|
|
5285
5390
|
let div1;
|
|
5286
5391
|
let t0;
|
|
5287
5392
|
let div0;
|
|
@@ -5367,7 +5472,7 @@ function create_fragment$g(ctx) {
|
|
|
5367
5472
|
};
|
|
5368
5473
|
}
|
|
5369
5474
|
|
|
5370
|
-
function instance$
|
|
5475
|
+
function instance$h($$self, $$props, $$invalidate) {
|
|
5371
5476
|
let isOptional;
|
|
5372
5477
|
let { label = "" } = $$props;
|
|
5373
5478
|
let { helptext = "" } = $$props;
|
|
@@ -5402,8 +5507,8 @@ class FormItem extends SvelteElement {
|
|
|
5402
5507
|
props: attribute_to_object(this.attributes),
|
|
5403
5508
|
customElement: true
|
|
5404
5509
|
},
|
|
5405
|
-
instance$
|
|
5406
|
-
create_fragment$
|
|
5510
|
+
instance$h,
|
|
5511
|
+
create_fragment$i,
|
|
5407
5512
|
safe_not_equal,
|
|
5408
5513
|
{
|
|
5409
5514
|
label: 0,
|
|
@@ -5471,7 +5576,7 @@ customElements.define("goa-form-item", FormItem);
|
|
|
5471
5576
|
|
|
5472
5577
|
/* libs/web-components/src/components/hero-banner/HeroBanner.svelte generated by Svelte v3.44.3 */
|
|
5473
5578
|
|
|
5474
|
-
function create_fragment$
|
|
5579
|
+
function create_fragment$h(ctx) {
|
|
5475
5580
|
let div1;
|
|
5476
5581
|
let goa_page_block;
|
|
5477
5582
|
let h1;
|
|
@@ -5529,7 +5634,7 @@ function create_fragment$f(ctx) {
|
|
|
5529
5634
|
};
|
|
5530
5635
|
}
|
|
5531
5636
|
|
|
5532
|
-
function instance$
|
|
5637
|
+
function instance$g($$self, $$props, $$invalidate) {
|
|
5533
5638
|
let { title } = $$props;
|
|
5534
5639
|
let { backgroundurl } = $$props;
|
|
5535
5640
|
|
|
@@ -5553,8 +5658,8 @@ class HeroBanner extends SvelteElement {
|
|
|
5553
5658
|
props: attribute_to_object(this.attributes),
|
|
5554
5659
|
customElement: true
|
|
5555
5660
|
},
|
|
5556
|
-
instance$
|
|
5557
|
-
create_fragment$
|
|
5661
|
+
instance$g,
|
|
5662
|
+
create_fragment$h,
|
|
5558
5663
|
safe_not_equal,
|
|
5559
5664
|
{ title: 0, backgroundurl: 1 },
|
|
5560
5665
|
null
|
|
@@ -5607,7 +5712,7 @@ function create_if_block$9(ctx) {
|
|
|
5607
5712
|
c() {
|
|
5608
5713
|
ion_icon = element("ion-icon");
|
|
5609
5714
|
|
|
5610
|
-
set_custom_element_data(ion_icon, "name", ion_icon_name_value = /*theme*/ ctx[1] === "filled"
|
|
5715
|
+
set_custom_element_data(ion_icon, "name", ion_icon_name_value = /*theme*/ ctx[1] === "filled" || /*type*/ ctx[0].indexOf("logo") === 0
|
|
5611
5716
|
? /*type*/ ctx[0]
|
|
5612
5717
|
: `${/*type*/ ctx[0]}-${/*theme*/ ctx[1]}`);
|
|
5613
5718
|
},
|
|
@@ -5615,7 +5720,7 @@ function create_if_block$9(ctx) {
|
|
|
5615
5720
|
insert(target, ion_icon, anchor);
|
|
5616
5721
|
},
|
|
5617
5722
|
p(ctx, dirty) {
|
|
5618
|
-
if (dirty & /*theme, type*/ 3 && ion_icon_name_value !== (ion_icon_name_value = /*theme*/ ctx[1] === "filled"
|
|
5723
|
+
if (dirty & /*theme, type*/ 3 && ion_icon_name_value !== (ion_icon_name_value = /*theme*/ ctx[1] === "filled" || /*type*/ ctx[0].indexOf("logo") === 0
|
|
5619
5724
|
? /*type*/ ctx[0]
|
|
5620
5725
|
: `${/*type*/ ctx[0]}-${/*theme*/ ctx[1]}`)) {
|
|
5621
5726
|
set_custom_element_data(ion_icon, "name", ion_icon_name_value);
|
|
@@ -5627,7 +5732,7 @@ function create_if_block$9(ctx) {
|
|
|
5627
5732
|
};
|
|
5628
5733
|
}
|
|
5629
5734
|
|
|
5630
|
-
function create_fragment$
|
|
5735
|
+
function create_fragment$g(ctx) {
|
|
5631
5736
|
let div;
|
|
5632
5737
|
let div_data_testid_value;
|
|
5633
5738
|
let div_style_value;
|
|
@@ -5699,7 +5804,7 @@ function create_fragment$e(ctx) {
|
|
|
5699
5804
|
};
|
|
5700
5805
|
}
|
|
5701
5806
|
|
|
5702
|
-
function instance$
|
|
5807
|
+
function instance$f($$self, $$props, $$invalidate) {
|
|
5703
5808
|
let isInverted;
|
|
5704
5809
|
let _size;
|
|
5705
5810
|
let { type } = $$props;
|
|
@@ -5762,8 +5867,8 @@ class Icon extends SvelteElement {
|
|
|
5762
5867
|
props: attribute_to_object(this.attributes),
|
|
5763
5868
|
customElement: true
|
|
5764
5869
|
},
|
|
5765
|
-
instance$
|
|
5766
|
-
create_fragment$
|
|
5870
|
+
instance$f,
|
|
5871
|
+
create_fragment$g,
|
|
5767
5872
|
safe_not_equal,
|
|
5768
5873
|
{
|
|
5769
5874
|
type: 0,
|
|
@@ -5880,7 +5985,7 @@ customElements.define("goa-icon", Icon);
|
|
|
5880
5985
|
|
|
5881
5986
|
/* libs/web-components/src/components/icon-button/IconButton.svelte generated by Svelte v3.44.3 */
|
|
5882
5987
|
|
|
5883
|
-
function create_fragment$
|
|
5988
|
+
function create_fragment$f(ctx) {
|
|
5884
5989
|
let button;
|
|
5885
5990
|
let goa_icon;
|
|
5886
5991
|
let mounted;
|
|
@@ -5966,7 +6071,7 @@ function handleClick(e) {
|
|
|
5966
6071
|
e.target.dispatchEvent(new CustomEvent("_click", { composed: true, detail: { event: e } }));
|
|
5967
6072
|
}
|
|
5968
6073
|
|
|
5969
|
-
function instance$
|
|
6074
|
+
function instance$e($$self, $$props, $$invalidate) {
|
|
5970
6075
|
let css;
|
|
5971
6076
|
let isDisabled;
|
|
5972
6077
|
let isInverted;
|
|
@@ -6042,8 +6147,8 @@ class IconButton extends SvelteElement {
|
|
|
6042
6147
|
props: attribute_to_object(this.attributes),
|
|
6043
6148
|
customElement: true
|
|
6044
6149
|
},
|
|
6045
|
-
instance$
|
|
6046
|
-
create_fragment$
|
|
6150
|
+
instance$e,
|
|
6151
|
+
create_fragment$f,
|
|
6047
6152
|
safe_not_equal,
|
|
6048
6153
|
{
|
|
6049
6154
|
type: 0,
|
|
@@ -6355,7 +6460,7 @@ function create_if_block_1$6(ctx) {
|
|
|
6355
6460
|
};
|
|
6356
6461
|
}
|
|
6357
6462
|
|
|
6358
|
-
function create_fragment$
|
|
6463
|
+
function create_fragment$e(ctx) {
|
|
6359
6464
|
let div1;
|
|
6360
6465
|
let div0;
|
|
6361
6466
|
let t0;
|
|
@@ -6562,7 +6667,7 @@ function doClick() {
|
|
|
6562
6667
|
this.dispatchEvent(new CustomEvent("_trailingIconClick", { composed: true }));
|
|
6563
6668
|
}
|
|
6564
6669
|
|
|
6565
|
-
function instance$
|
|
6670
|
+
function instance$d($$self, $$props, $$invalidate) {
|
|
6566
6671
|
let handlesTrailingIconClick;
|
|
6567
6672
|
let isFocused;
|
|
6568
6673
|
let isReadonly;
|
|
@@ -6698,7 +6803,7 @@ class Input extends SvelteElement {
|
|
|
6698
6803
|
constructor(options) {
|
|
6699
6804
|
super();
|
|
6700
6805
|
|
|
6701
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.container{position:relative;width:100%}@media(min-width: 640px){.container{max-width:var(--width)}}.goa-input,.goa-input *{box-sizing:border-box}.goa-input{box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:var(--input-border-radius);background:white;display:inline-flex;align-items:center;vertical-align:middle;min-width:100%}.goa-input:hover{border-color:var(--goa-color-interactive--hover)}.goa-input:active,.goa-input:focus,.goa-input:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--focus)}
|
|
6806
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.container{position:relative;width:100%}@media(min-width: 640px){.container{max-width:var(--width)}}.goa-input,.goa-input *{box-sizing:border-box}.goa-input{box-sizing:border-box;outline:none;transition:box-shadow 0.1s ease-in;border:1px solid var(--color-gray-600);border-radius:var(--input-border-radius);background:white;display:inline-flex;align-items:center;vertical-align:middle;min-width:100%}.goa-input:hover{border-color:var(--goa-color-interactive--hover)}.goa-input:active,.goa-input:focus,.goa-input:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--focus)}.goa-input.type--range{border:none}.goa-input.type--range:active,.goa-input.type--range:focus,.goa-input.type--range:focus-within{box-shadow:none}.goa-input-leading-icon{display:flex;align-items:center;margin-left:0.5rem}.goa-input-trailing-icon{display:flex;align-items:center;margin-right:0.5rem}.goa-input-trailing-icon>.goa-icon-button{margin-right:-0.5rem}input{display:inline-block;color:var(--goa-color-text);font-size:var(--input-font-size);padding:var(--input-padding);line-height:calc(40px - calc(var(--input-padding) * 2));background-color:transparent;width:0;flex:1 1 auto}input[readonly]{cursor:pointer}.goa-input-leading-icon+input{padding-left:0.5rem}input,input:focus,input:hover,input:active{outline:none;border:none}.goa-input--disabled,.goa-input--disabled:hover,.goa-input--disabled:active,.goa-input--disabled:focus{background-color:var(--color-gray-100);border-color:var(--color-gray-200);cursor:default;box-shadow:none}.goa-input--disabled input,.goa-input--disabled input:hover,.goa-input--disabled input:active,.goa-input--disabled input:focus{color:var(--goa-color-text-secondary)}.goa-input--disabled input:hover{cursor:default !important}input.input--goa{display:block;border:none;flex:1 1 auto}.variant--bare{border:none}.variant--bare:focus,.variant--bare:active,.variant--bare:focus-within{box-shadow:none}.counter{position:absolute;padding-top:0.25rem;right:0;font-size:var(--fs-sm)}.counter-error{color:var(--goa-color-interactive--error)}.error:hover,.error:focus,.error{border:2px solid var(--goa-color-interactive--error)}input[type="search" i]:enabled:read-write:-webkit-any(:focus, :hover)::-webkit-search-cancel-button{position:relative;right:var(--search-icon-offset);cursor:pointer;-webkit-appearance:none;height:1.2rem;width:1.2rem;background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23333" d="M405 136.798L375.202 107 256 226.202 136.798 107 107 136.798 226.202 256 107 375.202 136.798 405 256 285.798 375.202 405 405 375.202 285.798 256z"/></svg>')
|
|
6702
6807
|
center center no-repeat}</style>`;
|
|
6703
6808
|
|
|
6704
6809
|
init(
|
|
@@ -6708,8 +6813,8 @@ class Input extends SvelteElement {
|
|
|
6708
6813
|
props: attribute_to_object(this.attributes),
|
|
6709
6814
|
customElement: true
|
|
6710
6815
|
},
|
|
6711
|
-
instance$
|
|
6712
|
-
create_fragment$
|
|
6816
|
+
instance$d,
|
|
6817
|
+
create_fragment$e,
|
|
6713
6818
|
safe_not_equal,
|
|
6714
6819
|
{
|
|
6715
6820
|
type: 1,
|
|
@@ -6990,6 +7095,7 @@ function noScroll(_node, opts) {
|
|
|
6990
7095
|
/* libs/web-components/src/components/modal/Modal.svelte generated by Svelte v3.44.3 */
|
|
6991
7096
|
|
|
6992
7097
|
function create_if_block$7(ctx) {
|
|
7098
|
+
let goa_focus_trap;
|
|
6993
7099
|
let div4;
|
|
6994
7100
|
let div0;
|
|
6995
7101
|
let t0;
|
|
@@ -7011,10 +7117,10 @@ function create_if_block$7(ctx) {
|
|
|
7011
7117
|
let mounted;
|
|
7012
7118
|
let dispose;
|
|
7013
7119
|
let if_block0 = /*heading*/ ctx[0] && create_if_block_3$2(ctx);
|
|
7014
|
-
let if_block1 = /*isClosable*/ ctx[
|
|
7120
|
+
let if_block1 = /*isClosable*/ ctx[5] && create_if_block_2$3(ctx);
|
|
7015
7121
|
|
|
7016
7122
|
function select_block_type(ctx, dirty) {
|
|
7017
|
-
if (/*isScrollable*/ ctx[
|
|
7123
|
+
if (/*isScrollable*/ ctx[7]) return create_if_block_1$5;
|
|
7018
7124
|
return create_else_block$1;
|
|
7019
7125
|
}
|
|
7020
7126
|
|
|
@@ -7023,6 +7129,7 @@ function create_if_block$7(ctx) {
|
|
|
7023
7129
|
|
|
7024
7130
|
return {
|
|
7025
7131
|
c() {
|
|
7132
|
+
goa_focus_trap = element("goa-focus-trap");
|
|
7026
7133
|
div4 = element("div");
|
|
7027
7134
|
div0 = element("div");
|
|
7028
7135
|
t0 = space();
|
|
@@ -7047,10 +7154,12 @@ function create_if_block$7(ctx) {
|
|
|
7047
7154
|
attr(div3, "class", "modal-pane");
|
|
7048
7155
|
attr(div4, "data-testid", "modal");
|
|
7049
7156
|
attr(div4, "class", "modal");
|
|
7050
|
-
attr(div4, "style", div4_style_value = "--scroll-offset: " + /*scrollOffset*/ ctx[
|
|
7157
|
+
attr(div4, "style", div4_style_value = "--scroll-offset: " + /*scrollOffset*/ ctx[4] + "px; " + (/*width*/ ctx[2] && `--width: ${/*width*/ ctx[2]};`) + ";");
|
|
7158
|
+
set_custom_element_data(goa_focus_trap, "open", /*open*/ ctx[1]);
|
|
7051
7159
|
},
|
|
7052
7160
|
m(target, anchor) {
|
|
7053
|
-
insert(target,
|
|
7161
|
+
insert(target, goa_focus_trap, anchor);
|
|
7162
|
+
append(goa_focus_trap, div4);
|
|
7054
7163
|
append(div4, div0);
|
|
7055
7164
|
append(div4, t0);
|
|
7056
7165
|
append(div4, div3);
|
|
@@ -7068,8 +7177,8 @@ function create_if_block$7(ctx) {
|
|
|
7068
7177
|
|
|
7069
7178
|
if (!mounted) {
|
|
7070
7179
|
dispose = [
|
|
7071
|
-
listen(div0, "click", /*close*/ ctx[
|
|
7072
|
-
action_destroyer(noscroll_action = noScroll.call(null, div4, { enable: /*isOpen*/ ctx[
|
|
7180
|
+
listen(div0, "click", /*close*/ ctx[8]),
|
|
7181
|
+
action_destroyer(noscroll_action = noScroll.call(null, div4, { enable: /*isOpen*/ ctx[3] }))
|
|
7073
7182
|
];
|
|
7074
7183
|
|
|
7075
7184
|
mounted = true;
|
|
@@ -7091,7 +7200,7 @@ function create_if_block$7(ctx) {
|
|
|
7091
7200
|
if_block0 = null;
|
|
7092
7201
|
}
|
|
7093
7202
|
|
|
7094
|
-
if (/*isClosable*/ ctx[
|
|
7203
|
+
if (/*isClosable*/ ctx[5]) {
|
|
7095
7204
|
if (if_block1) {
|
|
7096
7205
|
if_block1.p(ctx, dirty);
|
|
7097
7206
|
} else {
|
|
@@ -7114,11 +7223,15 @@ function create_if_block$7(ctx) {
|
|
|
7114
7223
|
}
|
|
7115
7224
|
}
|
|
7116
7225
|
|
|
7117
|
-
if (!current || dirty & /*scrollOffset, width*/
|
|
7226
|
+
if (!current || dirty & /*scrollOffset, width*/ 20 && div4_style_value !== (div4_style_value = "--scroll-offset: " + /*scrollOffset*/ ctx[4] + "px; " + (/*width*/ ctx[2] && `--width: ${/*width*/ ctx[2]};`) + ";")) {
|
|
7118
7227
|
attr(div4, "style", div4_style_value);
|
|
7119
7228
|
}
|
|
7120
7229
|
|
|
7121
|
-
if (noscroll_action && is_function(noscroll_action.update) && dirty & /*isOpen*/
|
|
7230
|
+
if (noscroll_action && is_function(noscroll_action.update) && dirty & /*isOpen*/ 8) noscroll_action.update.call(null, { enable: /*isOpen*/ ctx[3] });
|
|
7231
|
+
|
|
7232
|
+
if (!current || dirty & /*open*/ 2) {
|
|
7233
|
+
set_custom_element_data(goa_focus_trap, "open", /*open*/ ctx[1]);
|
|
7234
|
+
}
|
|
7122
7235
|
},
|
|
7123
7236
|
i(local) {
|
|
7124
7237
|
if (current) return;
|
|
@@ -7127,7 +7240,7 @@ function create_if_block$7(ctx) {
|
|
|
7127
7240
|
if (div3_outro) div3_outro.end(1);
|
|
7128
7241
|
|
|
7129
7242
|
div3_intro = create_in_transition(div3, fly, {
|
|
7130
|
-
duration: /*_transitionTime*/ ctx[
|
|
7243
|
+
duration: /*_transitionTime*/ ctx[6],
|
|
7131
7244
|
y: 200
|
|
7132
7245
|
});
|
|
7133
7246
|
|
|
@@ -7136,7 +7249,7 @@ function create_if_block$7(ctx) {
|
|
|
7136
7249
|
|
|
7137
7250
|
add_render_callback(() => {
|
|
7138
7251
|
if (div4_outro) div4_outro.end(1);
|
|
7139
|
-
div4_intro = create_in_transition(div4, fade, { duration: /*_transitionTime*/ ctx[
|
|
7252
|
+
div4_intro = create_in_transition(div4, fade, { duration: /*_transitionTime*/ ctx[6] });
|
|
7140
7253
|
div4_intro.start();
|
|
7141
7254
|
});
|
|
7142
7255
|
|
|
@@ -7146,22 +7259,22 @@ function create_if_block$7(ctx) {
|
|
|
7146
7259
|
if (div3_intro) div3_intro.invalidate();
|
|
7147
7260
|
|
|
7148
7261
|
div3_outro = create_out_transition(div3, fly, {
|
|
7149
|
-
delay: /*_transitionTime*/ ctx[
|
|
7150
|
-
duration: /*_transitionTime*/ ctx[
|
|
7262
|
+
delay: /*_transitionTime*/ ctx[6],
|
|
7263
|
+
duration: /*_transitionTime*/ ctx[6],
|
|
7151
7264
|
y: -100
|
|
7152
7265
|
});
|
|
7153
7266
|
|
|
7154
7267
|
if (div4_intro) div4_intro.invalidate();
|
|
7155
7268
|
|
|
7156
7269
|
div4_outro = create_out_transition(div4, fade, {
|
|
7157
|
-
delay: /*_transitionTime*/ ctx[
|
|
7158
|
-
duration: /*_transitionTime*/ ctx[
|
|
7270
|
+
delay: /*_transitionTime*/ ctx[6],
|
|
7271
|
+
duration: /*_transitionTime*/ ctx[6]
|
|
7159
7272
|
});
|
|
7160
7273
|
|
|
7161
7274
|
current = false;
|
|
7162
7275
|
},
|
|
7163
7276
|
d(detaching) {
|
|
7164
|
-
if (detaching) detach(
|
|
7277
|
+
if (detaching) detach(goa_focus_trap);
|
|
7165
7278
|
if (if_block0) if_block0.d();
|
|
7166
7279
|
if (if_block1) if_block1.d();
|
|
7167
7280
|
if_block2.d();
|
|
@@ -7173,7 +7286,7 @@ function create_if_block$7(ctx) {
|
|
|
7173
7286
|
};
|
|
7174
7287
|
}
|
|
7175
7288
|
|
|
7176
|
-
// (60:
|
|
7289
|
+
// (60:8) {#if heading}
|
|
7177
7290
|
function create_if_block_3$2(ctx) {
|
|
7178
7291
|
let div;
|
|
7179
7292
|
let t;
|
|
@@ -7198,7 +7311,7 @@ function create_if_block_3$2(ctx) {
|
|
|
7198
7311
|
};
|
|
7199
7312
|
}
|
|
7200
7313
|
|
|
7201
|
-
// (63:
|
|
7314
|
+
// (63:8) {#if isClosable}
|
|
7202
7315
|
function create_if_block_2$3(ctx) {
|
|
7203
7316
|
let div;
|
|
7204
7317
|
let goa_icon_button;
|
|
@@ -7218,7 +7331,7 @@ function create_if_block_2$3(ctx) {
|
|
|
7218
7331
|
append(div, goa_icon_button);
|
|
7219
7332
|
|
|
7220
7333
|
if (!mounted) {
|
|
7221
|
-
dispose = listen(goa_icon_button, "click", /*close*/ ctx[
|
|
7334
|
+
dispose = listen(goa_icon_button, "click", /*close*/ ctx[8]);
|
|
7222
7335
|
mounted = true;
|
|
7223
7336
|
}
|
|
7224
7337
|
},
|
|
@@ -7231,7 +7344,7 @@ function create_if_block_2$3(ctx) {
|
|
|
7231
7344
|
};
|
|
7232
7345
|
}
|
|
7233
7346
|
|
|
7234
|
-
// (77:
|
|
7347
|
+
// (77:10) {:else}
|
|
7235
7348
|
function create_else_block$1(ctx) {
|
|
7236
7349
|
let div;
|
|
7237
7350
|
|
|
@@ -7250,7 +7363,7 @@ function create_else_block$1(ctx) {
|
|
|
7250
7363
|
};
|
|
7251
7364
|
}
|
|
7252
7365
|
|
|
7253
|
-
// (73:
|
|
7366
|
+
// (73:10) {#if isScrollable}
|
|
7254
7367
|
function create_if_block_1$5(ctx) {
|
|
7255
7368
|
let goa_scrollable;
|
|
7256
7369
|
|
|
@@ -7271,10 +7384,10 @@ function create_if_block_1$5(ctx) {
|
|
|
7271
7384
|
};
|
|
7272
7385
|
}
|
|
7273
7386
|
|
|
7274
|
-
function create_fragment$
|
|
7387
|
+
function create_fragment$d(ctx) {
|
|
7275
7388
|
let if_block_anchor;
|
|
7276
7389
|
let current;
|
|
7277
|
-
let if_block = /*isOpen*/ ctx[
|
|
7390
|
+
let if_block = /*isOpen*/ ctx[3] && create_if_block$7(ctx);
|
|
7278
7391
|
|
|
7279
7392
|
return {
|
|
7280
7393
|
c() {
|
|
@@ -7288,11 +7401,11 @@ function create_fragment$b(ctx) {
|
|
|
7288
7401
|
current = true;
|
|
7289
7402
|
},
|
|
7290
7403
|
p(ctx, [dirty]) {
|
|
7291
|
-
if (/*isOpen*/ ctx[
|
|
7404
|
+
if (/*isOpen*/ ctx[3]) {
|
|
7292
7405
|
if (if_block) {
|
|
7293
7406
|
if_block.p(ctx, dirty);
|
|
7294
7407
|
|
|
7295
|
-
if (dirty & /*isOpen*/
|
|
7408
|
+
if (dirty & /*isOpen*/ 8) {
|
|
7296
7409
|
transition_in(if_block, 1);
|
|
7297
7410
|
}
|
|
7298
7411
|
} else {
|
|
@@ -7327,7 +7440,7 @@ function create_fragment$b(ctx) {
|
|
|
7327
7440
|
};
|
|
7328
7441
|
}
|
|
7329
7442
|
|
|
7330
|
-
function instance$
|
|
7443
|
+
function instance$c($$self, $$props, $$invalidate) {
|
|
7331
7444
|
let isClosable;
|
|
7332
7445
|
let isScrollable;
|
|
7333
7446
|
let isOpen;
|
|
@@ -7351,36 +7464,36 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
7351
7464
|
|
|
7352
7465
|
$$self.$$set = $$props => {
|
|
7353
7466
|
if ('heading' in $$props) $$invalidate(0, heading = $$props.heading);
|
|
7354
|
-
if ('closable' in $$props) $$invalidate(
|
|
7355
|
-
if ('scrollable' in $$props) $$invalidate(
|
|
7356
|
-
if ('open' in $$props) $$invalidate(
|
|
7467
|
+
if ('closable' in $$props) $$invalidate(9, closable = $$props.closable);
|
|
7468
|
+
if ('scrollable' in $$props) $$invalidate(10, scrollable = $$props.scrollable);
|
|
7469
|
+
if ('open' in $$props) $$invalidate(1, open = $$props.open);
|
|
7357
7470
|
if ('transition' in $$props) $$invalidate(11, transition = $$props.transition);
|
|
7358
|
-
if ('width' in $$props) $$invalidate(
|
|
7471
|
+
if ('width' in $$props) $$invalidate(2, width = $$props.width);
|
|
7359
7472
|
};
|
|
7360
7473
|
|
|
7361
7474
|
$$self.$$.update = () => {
|
|
7362
|
-
if ($$self.$$.dirty & /*closable*/
|
|
7363
|
-
$$invalidate(
|
|
7475
|
+
if ($$self.$$.dirty & /*closable*/ 512) {
|
|
7476
|
+
$$invalidate(5, isClosable = toBoolean(closable));
|
|
7364
7477
|
}
|
|
7365
7478
|
|
|
7366
|
-
if ($$self.$$.dirty & /*scrollable*/
|
|
7367
|
-
$$invalidate(
|
|
7479
|
+
if ($$self.$$.dirty & /*scrollable*/ 1024) {
|
|
7480
|
+
$$invalidate(7, isScrollable = toBoolean(scrollable));
|
|
7368
7481
|
}
|
|
7369
7482
|
|
|
7370
|
-
if ($$self.$$.dirty & /*open*/
|
|
7371
|
-
$$invalidate(
|
|
7483
|
+
if ($$self.$$.dirty & /*open*/ 2) {
|
|
7484
|
+
$$invalidate(3, isOpen = toBoolean(open));
|
|
7372
7485
|
}
|
|
7373
7486
|
|
|
7374
|
-
if ($$self.$$.dirty & /*isOpen*/
|
|
7487
|
+
if ($$self.$$.dirty & /*isOpen*/ 8) {
|
|
7375
7488
|
{
|
|
7376
7489
|
if (isOpen) {
|
|
7377
|
-
$$invalidate(
|
|
7490
|
+
$$invalidate(4, scrollOffset = window.pageYOffset);
|
|
7378
7491
|
}
|
|
7379
7492
|
}
|
|
7380
7493
|
}
|
|
7381
7494
|
|
|
7382
7495
|
if ($$self.$$.dirty & /*transition*/ 2048) {
|
|
7383
|
-
$$invalidate(
|
|
7496
|
+
$$invalidate(6, _transitionTime = transition === "none"
|
|
7384
7497
|
? 0
|
|
7385
7498
|
: transition === "slow" ? 400 : 200);
|
|
7386
7499
|
}
|
|
@@ -7388,6 +7501,7 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
7388
7501
|
|
|
7389
7502
|
return [
|
|
7390
7503
|
heading,
|
|
7504
|
+
open,
|
|
7391
7505
|
width,
|
|
7392
7506
|
isOpen,
|
|
7393
7507
|
scrollOffset,
|
|
@@ -7397,7 +7511,6 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
|
7397
7511
|
close,
|
|
7398
7512
|
closable,
|
|
7399
7513
|
scrollable,
|
|
7400
|
-
open,
|
|
7401
7514
|
transition
|
|
7402
7515
|
];
|
|
7403
7516
|
}
|
|
@@ -7414,16 +7527,16 @@ class Modal extends SvelteElement {
|
|
|
7414
7527
|
props: attribute_to_object(this.attributes),
|
|
7415
7528
|
customElement: true
|
|
7416
7529
|
},
|
|
7417
|
-
instance$
|
|
7418
|
-
create_fragment$
|
|
7530
|
+
instance$c,
|
|
7531
|
+
create_fragment$d,
|
|
7419
7532
|
safe_not_equal,
|
|
7420
7533
|
{
|
|
7421
7534
|
heading: 0,
|
|
7422
|
-
closable:
|
|
7423
|
-
scrollable:
|
|
7424
|
-
open:
|
|
7535
|
+
closable: 9,
|
|
7536
|
+
scrollable: 10,
|
|
7537
|
+
open: 1,
|
|
7425
7538
|
transition: 11,
|
|
7426
|
-
width:
|
|
7539
|
+
width: 2
|
|
7427
7540
|
},
|
|
7428
7541
|
null
|
|
7429
7542
|
);
|
|
@@ -7454,7 +7567,7 @@ class Modal extends SvelteElement {
|
|
|
7454
7567
|
}
|
|
7455
7568
|
|
|
7456
7569
|
get closable() {
|
|
7457
|
-
return this.$$.ctx[
|
|
7570
|
+
return this.$$.ctx[9];
|
|
7458
7571
|
}
|
|
7459
7572
|
|
|
7460
7573
|
set closable(closable) {
|
|
@@ -7463,7 +7576,7 @@ class Modal extends SvelteElement {
|
|
|
7463
7576
|
}
|
|
7464
7577
|
|
|
7465
7578
|
get scrollable() {
|
|
7466
|
-
return this.$$.ctx[
|
|
7579
|
+
return this.$$.ctx[10];
|
|
7467
7580
|
}
|
|
7468
7581
|
|
|
7469
7582
|
set scrollable(scrollable) {
|
|
@@ -7472,7 +7585,7 @@ class Modal extends SvelteElement {
|
|
|
7472
7585
|
}
|
|
7473
7586
|
|
|
7474
7587
|
get open() {
|
|
7475
|
-
return this.$$.ctx[
|
|
7588
|
+
return this.$$.ctx[1];
|
|
7476
7589
|
}
|
|
7477
7590
|
|
|
7478
7591
|
set open(open) {
|
|
@@ -7490,7 +7603,7 @@ class Modal extends SvelteElement {
|
|
|
7490
7603
|
}
|
|
7491
7604
|
|
|
7492
7605
|
get width() {
|
|
7493
|
-
return this.$$.ctx[
|
|
7606
|
+
return this.$$.ctx[2];
|
|
7494
7607
|
}
|
|
7495
7608
|
|
|
7496
7609
|
set width(width) {
|
|
@@ -7587,7 +7700,7 @@ function create_if_block$6(ctx) {
|
|
|
7587
7700
|
};
|
|
7588
7701
|
}
|
|
7589
7702
|
|
|
7590
|
-
function create_fragment$
|
|
7703
|
+
function create_fragment$c(ctx) {
|
|
7591
7704
|
let if_block_anchor;
|
|
7592
7705
|
let current;
|
|
7593
7706
|
let if_block = /*show*/ ctx[1] && create_if_block$6(ctx);
|
|
@@ -7643,7 +7756,7 @@ function create_fragment$a(ctx) {
|
|
|
7643
7756
|
};
|
|
7644
7757
|
}
|
|
7645
7758
|
|
|
7646
|
-
function instance$
|
|
7759
|
+
function instance$b($$self, $$props, $$invalidate) {
|
|
7647
7760
|
let iconType;
|
|
7648
7761
|
let { type } = $$props;
|
|
7649
7762
|
let show = true;
|
|
@@ -7683,8 +7796,8 @@ class Notification extends SvelteElement {
|
|
|
7683
7796
|
props: attribute_to_object(this.attributes),
|
|
7684
7797
|
customElement: true
|
|
7685
7798
|
},
|
|
7686
|
-
instance$
|
|
7687
|
-
create_fragment$
|
|
7799
|
+
instance$b,
|
|
7800
|
+
create_fragment$c,
|
|
7688
7801
|
safe_not_equal,
|
|
7689
7802
|
{ type: 0 },
|
|
7690
7803
|
null
|
|
@@ -7720,7 +7833,7 @@ customElements.define("goa-notification", Notification);
|
|
|
7720
7833
|
|
|
7721
7834
|
/* libs/web-components/src/layouts/PageLayout.svelte generated by Svelte v3.44.3 */
|
|
7722
7835
|
|
|
7723
|
-
function create_fragment$
|
|
7836
|
+
function create_fragment$b(ctx) {
|
|
7724
7837
|
let div;
|
|
7725
7838
|
|
|
7726
7839
|
return {
|
|
@@ -7755,7 +7868,7 @@ class PageLayout extends SvelteElement {
|
|
|
7755
7868
|
customElement: true
|
|
7756
7869
|
},
|
|
7757
7870
|
null,
|
|
7758
|
-
create_fragment$
|
|
7871
|
+
create_fragment$b,
|
|
7759
7872
|
safe_not_equal,
|
|
7760
7873
|
{},
|
|
7761
7874
|
null
|
|
@@ -8067,7 +8180,7 @@ function create_if_block_2$2(ctx) {
|
|
|
8067
8180
|
};
|
|
8068
8181
|
}
|
|
8069
8182
|
|
|
8070
|
-
function create_fragment$
|
|
8183
|
+
function create_fragment$a(ctx) {
|
|
8071
8184
|
let if_block_anchor;
|
|
8072
8185
|
let current;
|
|
8073
8186
|
let if_block = /*ready*/ ctx[3] && create_if_block$5(ctx);
|
|
@@ -8123,7 +8236,7 @@ function create_fragment$8(ctx) {
|
|
|
8123
8236
|
};
|
|
8124
8237
|
}
|
|
8125
8238
|
|
|
8126
|
-
function instance$
|
|
8239
|
+
function instance$a($$self, $$props, $$invalidate) {
|
|
8127
8240
|
let isVisible;
|
|
8128
8241
|
let fullscreen;
|
|
8129
8242
|
let inline;
|
|
@@ -8194,8 +8307,8 @@ class CircularProgress extends SvelteElement {
|
|
|
8194
8307
|
props: attribute_to_object(this.attributes),
|
|
8195
8308
|
customElement: true
|
|
8196
8309
|
},
|
|
8197
|
-
instance$
|
|
8198
|
-
create_fragment$
|
|
8310
|
+
instance$a,
|
|
8311
|
+
create_fragment$a,
|
|
8199
8312
|
safe_not_equal,
|
|
8200
8313
|
{
|
|
8201
8314
|
type: 0,
|
|
@@ -8393,7 +8506,7 @@ function create_each_block(key_1, ctx) {
|
|
|
8393
8506
|
};
|
|
8394
8507
|
}
|
|
8395
8508
|
|
|
8396
|
-
function create_fragment$
|
|
8509
|
+
function create_fragment$9(ctx) {
|
|
8397
8510
|
let div;
|
|
8398
8511
|
let slot;
|
|
8399
8512
|
let t;
|
|
@@ -8462,7 +8575,7 @@ function create_fragment$7(ctx) {
|
|
|
8462
8575
|
};
|
|
8463
8576
|
}
|
|
8464
8577
|
|
|
8465
|
-
function instance$
|
|
8578
|
+
function instance$9($$self, $$props, $$invalidate) {
|
|
8466
8579
|
let isDisabled;
|
|
8467
8580
|
let { name } = $$props;
|
|
8468
8581
|
let { value } = $$props;
|
|
@@ -8558,8 +8671,8 @@ class RadioGroup extends SvelteElement {
|
|
|
8558
8671
|
props: attribute_to_object(this.attributes),
|
|
8559
8672
|
customElement: true
|
|
8560
8673
|
},
|
|
8561
|
-
instance$
|
|
8562
|
-
create_fragment$
|
|
8674
|
+
instance$9,
|
|
8675
|
+
create_fragment$9,
|
|
8563
8676
|
safe_not_equal,
|
|
8564
8677
|
{
|
|
8565
8678
|
name: 1,
|
|
@@ -8647,7 +8760,7 @@ customElements.define("goa-radio-group", RadioGroup);
|
|
|
8647
8760
|
|
|
8648
8761
|
/* libs/web-components/src/components/radio-group/RadioItem.svelte generated by Svelte v3.44.3 */
|
|
8649
8762
|
|
|
8650
|
-
function create_fragment$
|
|
8763
|
+
function create_fragment$8(ctx) {
|
|
8651
8764
|
return {
|
|
8652
8765
|
c() {
|
|
8653
8766
|
this.c = noop;
|
|
@@ -8660,7 +8773,7 @@ function create_fragment$6(ctx) {
|
|
|
8660
8773
|
};
|
|
8661
8774
|
}
|
|
8662
8775
|
|
|
8663
|
-
function instance$
|
|
8776
|
+
function instance$8($$self, $$props, $$invalidate) {
|
|
8664
8777
|
let { value } = $$props;
|
|
8665
8778
|
let { label } = $$props;
|
|
8666
8779
|
let { name } = $$props;
|
|
@@ -8691,8 +8804,8 @@ class RadioItem extends SvelteElement {
|
|
|
8691
8804
|
props: attribute_to_object(this.attributes),
|
|
8692
8805
|
customElement: true
|
|
8693
8806
|
},
|
|
8694
|
-
instance$
|
|
8695
|
-
create_fragment$
|
|
8807
|
+
instance$8,
|
|
8808
|
+
create_fragment$8,
|
|
8696
8809
|
safe_not_equal,
|
|
8697
8810
|
{ value: 0, label: 1, name: 2 },
|
|
8698
8811
|
null
|
|
@@ -8746,7 +8859,7 @@ customElements.define("goa-radio-item", RadioItem);
|
|
|
8746
8859
|
|
|
8747
8860
|
/* libs/web-components/src/components/scrollable/Scrollable.svelte generated by Svelte v3.44.3 */
|
|
8748
8861
|
|
|
8749
|
-
function create_fragment$
|
|
8862
|
+
function create_fragment$7(ctx) {
|
|
8750
8863
|
let div;
|
|
8751
8864
|
let slot;
|
|
8752
8865
|
let div_style_value;
|
|
@@ -8793,7 +8906,7 @@ function create_fragment$5(ctx) {
|
|
|
8793
8906
|
};
|
|
8794
8907
|
}
|
|
8795
8908
|
|
|
8796
|
-
function instance$
|
|
8909
|
+
function instance$7($$self, $$props, $$invalidate) {
|
|
8797
8910
|
let { direction = "vertical" } = $$props;
|
|
8798
8911
|
let { hpadding = 0 } = $$props;
|
|
8799
8912
|
let { vpadding = 0 } = $$props;
|
|
@@ -8821,8 +8934,8 @@ class Scrollable extends SvelteElement {
|
|
|
8821
8934
|
props: attribute_to_object(this.attributes),
|
|
8822
8935
|
customElement: true
|
|
8823
8936
|
},
|
|
8824
|
-
instance$
|
|
8825
|
-
create_fragment$
|
|
8937
|
+
instance$7,
|
|
8938
|
+
create_fragment$7,
|
|
8826
8939
|
safe_not_equal,
|
|
8827
8940
|
{
|
|
8828
8941
|
direction: 0,
|
|
@@ -9046,7 +9159,7 @@ function create_if_block$4(ctx) {
|
|
|
9046
9159
|
};
|
|
9047
9160
|
}
|
|
9048
9161
|
|
|
9049
|
-
function create_fragment$
|
|
9162
|
+
function create_fragment$6(ctx) {
|
|
9050
9163
|
let header;
|
|
9051
9164
|
let t0;
|
|
9052
9165
|
let show_if = ["alpha", "beta"].includes(/*level*/ ctx[0]);
|
|
@@ -9137,7 +9250,7 @@ function capitalize(val) {
|
|
|
9137
9250
|
return val[0].toUpperCase() + val.slice(1);
|
|
9138
9251
|
}
|
|
9139
9252
|
|
|
9140
|
-
function instance$
|
|
9253
|
+
function instance$6($$self, $$props, $$invalidate) {
|
|
9141
9254
|
let { level } = $$props;
|
|
9142
9255
|
let { version } = $$props;
|
|
9143
9256
|
let { feedbackurl } = $$props;
|
|
@@ -9163,8 +9276,8 @@ class MicrositeHeader extends SvelteElement {
|
|
|
9163
9276
|
props: attribute_to_object(this.attributes),
|
|
9164
9277
|
customElement: true
|
|
9165
9278
|
},
|
|
9166
|
-
instance$
|
|
9167
|
-
create_fragment$
|
|
9279
|
+
instance$6,
|
|
9280
|
+
create_fragment$6,
|
|
9168
9281
|
safe_not_equal,
|
|
9169
9282
|
{ level: 0, version: 1, feedbackurl: 2 },
|
|
9170
9283
|
null
|
|
@@ -9453,7 +9566,7 @@ function create_if_block$3(ctx) {
|
|
|
9453
9566
|
};
|
|
9454
9567
|
}
|
|
9455
9568
|
|
|
9456
|
-
function create_fragment$
|
|
9569
|
+
function create_fragment$5(ctx) {
|
|
9457
9570
|
let current_block_type_index;
|
|
9458
9571
|
let if_block;
|
|
9459
9572
|
let if_block_anchor;
|
|
@@ -9524,7 +9637,7 @@ function create_fragment$3(ctx) {
|
|
|
9524
9637
|
};
|
|
9525
9638
|
}
|
|
9526
9639
|
|
|
9527
|
-
function instance$
|
|
9640
|
+
function instance$5($$self, $$props, $$invalidate) {
|
|
9528
9641
|
let { width = 320 } = $$props;
|
|
9529
9642
|
let { size = 1 } = $$props;
|
|
9530
9643
|
let { type } = $$props;
|
|
@@ -9550,8 +9663,8 @@ class Skeleton extends SvelteElement {
|
|
|
9550
9663
|
props: attribute_to_object(this.attributes),
|
|
9551
9664
|
customElement: true
|
|
9552
9665
|
},
|
|
9553
|
-
instance$
|
|
9554
|
-
create_fragment$
|
|
9666
|
+
instance$5,
|
|
9667
|
+
create_fragment$5,
|
|
9555
9668
|
safe_not_equal,
|
|
9556
9669
|
{ width: 0, size: 1, type: 2 },
|
|
9557
9670
|
null
|
|
@@ -9813,7 +9926,7 @@ function create_if_block$2(ctx) {
|
|
|
9813
9926
|
};
|
|
9814
9927
|
}
|
|
9815
9928
|
|
|
9816
|
-
function create_fragment$
|
|
9929
|
+
function create_fragment$4(ctx) {
|
|
9817
9930
|
let if_block_anchor;
|
|
9818
9931
|
let if_block = /*ready*/ ctx[6] && create_if_block$2(ctx);
|
|
9819
9932
|
|
|
@@ -9850,7 +9963,7 @@ function create_fragment$2(ctx) {
|
|
|
9850
9963
|
};
|
|
9851
9964
|
}
|
|
9852
9965
|
|
|
9853
|
-
function instance$
|
|
9966
|
+
function instance$4($$self, $$props, $$invalidate) {
|
|
9854
9967
|
let diameter;
|
|
9855
9968
|
let strokewidth;
|
|
9856
9969
|
let radius;
|
|
@@ -9963,8 +10076,8 @@ class Spinner extends SvelteElement {
|
|
|
9963
10076
|
props: attribute_to_object(this.attributes),
|
|
9964
10077
|
customElement: true
|
|
9965
10078
|
},
|
|
9966
|
-
instance$
|
|
9967
|
-
create_fragment$
|
|
10079
|
+
instance$4,
|
|
10080
|
+
create_fragment$4,
|
|
9968
10081
|
safe_not_equal,
|
|
9969
10082
|
{
|
|
9970
10083
|
size: 10,
|
|
@@ -10145,7 +10258,7 @@ function create_if_block_1$1(ctx) {
|
|
|
10145
10258
|
};
|
|
10146
10259
|
}
|
|
10147
10260
|
|
|
10148
|
-
function create_fragment$
|
|
10261
|
+
function create_fragment$3(ctx) {
|
|
10149
10262
|
let div;
|
|
10150
10263
|
let textarea;
|
|
10151
10264
|
let t;
|
|
@@ -10250,7 +10363,7 @@ function create_fragment$1(ctx) {
|
|
|
10250
10363
|
};
|
|
10251
10364
|
}
|
|
10252
10365
|
|
|
10253
|
-
function instance$
|
|
10366
|
+
function instance$3($$self, $$props, $$invalidate) {
|
|
10254
10367
|
let isError;
|
|
10255
10368
|
let isDisabled;
|
|
10256
10369
|
let isReadonly;
|
|
@@ -10349,8 +10462,8 @@ class TextArea extends SvelteElement {
|
|
|
10349
10462
|
props: attribute_to_object(this.attributes),
|
|
10350
10463
|
customElement: true
|
|
10351
10464
|
},
|
|
10352
|
-
instance$
|
|
10353
|
-
create_fragment$
|
|
10465
|
+
instance$3,
|
|
10466
|
+
create_fragment$3,
|
|
10354
10467
|
safe_not_equal,
|
|
10355
10468
|
{
|
|
10356
10469
|
name: 0,
|
|
@@ -10498,6 +10611,280 @@ class TextArea extends SvelteElement {
|
|
|
10498
10611
|
|
|
10499
10612
|
customElements.define("goa-textarea", TextArea);
|
|
10500
10613
|
|
|
10614
|
+
/* libs/web-components/src/components/focus-trap/FocusTrap.svelte generated by Svelte v3.44.3 */
|
|
10615
|
+
|
|
10616
|
+
function create_fragment$2(ctx) {
|
|
10617
|
+
let div;
|
|
10618
|
+
|
|
10619
|
+
return {
|
|
10620
|
+
c() {
|
|
10621
|
+
div = element("div");
|
|
10622
|
+
div.innerHTML = `<slot></slot>`;
|
|
10623
|
+
this.c = noop;
|
|
10624
|
+
},
|
|
10625
|
+
m(target, anchor) {
|
|
10626
|
+
insert(target, div, anchor);
|
|
10627
|
+
/*div_binding*/ ctx[3](div);
|
|
10628
|
+
},
|
|
10629
|
+
p: noop,
|
|
10630
|
+
i: noop,
|
|
10631
|
+
o: noop,
|
|
10632
|
+
d(detaching) {
|
|
10633
|
+
if (detaching) detach(div);
|
|
10634
|
+
/*div_binding*/ ctx[3](null);
|
|
10635
|
+
}
|
|
10636
|
+
};
|
|
10637
|
+
}
|
|
10638
|
+
|
|
10639
|
+
function isFocusable(element) {
|
|
10640
|
+
if (element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute('tabIndex') !== null) {
|
|
10641
|
+
return true;
|
|
10642
|
+
}
|
|
10643
|
+
|
|
10644
|
+
if (element.disabled) {
|
|
10645
|
+
return false;
|
|
10646
|
+
}
|
|
10647
|
+
|
|
10648
|
+
switch (element.nodeName) {
|
|
10649
|
+
case 'A':
|
|
10650
|
+
return !!element.href && element.rel !== 'ignore';
|
|
10651
|
+
case 'INPUT':
|
|
10652
|
+
return element.type !== 'hidden' && element.type !== 'file';
|
|
10653
|
+
case 'BUTTON':
|
|
10654
|
+
case 'SELECT':
|
|
10655
|
+
case 'TEXTAREA':
|
|
10656
|
+
return true;
|
|
10657
|
+
default:
|
|
10658
|
+
return false;
|
|
10659
|
+
}
|
|
10660
|
+
}
|
|
10661
|
+
|
|
10662
|
+
function instance$2($$self, $$props, $$invalidate) {
|
|
10663
|
+
let isOpen;
|
|
10664
|
+
let ignoreFocusChanges = false;
|
|
10665
|
+
let lastFocus;
|
|
10666
|
+
let element;
|
|
10667
|
+
let { open } = $$props;
|
|
10668
|
+
|
|
10669
|
+
function removeListeners() {
|
|
10670
|
+
document.removeEventListener('focus', trapFocus, true);
|
|
10671
|
+
}
|
|
10672
|
+
|
|
10673
|
+
function addListeners() {
|
|
10674
|
+
document.addEventListener('focus', trapFocus, true);
|
|
10675
|
+
}
|
|
10676
|
+
|
|
10677
|
+
function attemptFocusOnFirstDescendant(descendants) {
|
|
10678
|
+
if (!descendants) return false;
|
|
10679
|
+
|
|
10680
|
+
for (let i = 0; i < descendants.length; i++) {
|
|
10681
|
+
let descendant = descendants[i];
|
|
10682
|
+
|
|
10683
|
+
if (attemptFocus(descendant) || attemptFocusOnFirstDescendant(descendant.childNodes) || attemptFocusOnFirstDescendantOfSlotElement(descendant) || attemptFocusOnFirstDescendantOfShadowDOM(descendant)) {
|
|
10684
|
+
return true;
|
|
10685
|
+
}
|
|
10686
|
+
}
|
|
10687
|
+
|
|
10688
|
+
return false;
|
|
10689
|
+
}
|
|
10690
|
+
|
|
10691
|
+
function attemptFocusOnFirstDescendantOfSlotElement(node) {
|
|
10692
|
+
var _a;
|
|
10693
|
+
|
|
10694
|
+
if (node instanceof HTMLSlotElement) {
|
|
10695
|
+
let assingedNodesOfSlotElement = (_a = node) === null || _a === void 0
|
|
10696
|
+
? void 0
|
|
10697
|
+
: _a.assignedNodes();
|
|
10698
|
+
|
|
10699
|
+
if (attemptFocusOnFirstDescendant(assingedNodesOfSlotElement)) {
|
|
10700
|
+
return true;
|
|
10701
|
+
}
|
|
10702
|
+
}
|
|
10703
|
+
}
|
|
10704
|
+
|
|
10705
|
+
function attemptFocusOnFirstDescendantOfShadowDOM(node) {
|
|
10706
|
+
var _a, _b;
|
|
10707
|
+
|
|
10708
|
+
if (node instanceof HTMLElement) {
|
|
10709
|
+
let childNodesOfShadowRoot = (_b = (_a = node) === null || _a === void 0
|
|
10710
|
+
? void 0
|
|
10711
|
+
: _a.shadowRoot) === null || _b === void 0
|
|
10712
|
+
? void 0
|
|
10713
|
+
: _b.childNodes;
|
|
10714
|
+
|
|
10715
|
+
if (attemptFocusOnFirstDescendant(childNodesOfShadowRoot)) {
|
|
10716
|
+
return true;
|
|
10717
|
+
}
|
|
10718
|
+
}
|
|
10719
|
+
}
|
|
10720
|
+
|
|
10721
|
+
function attemptFocusOnLastDescendant(descendants) {
|
|
10722
|
+
if (!descendants) return false;
|
|
10723
|
+
|
|
10724
|
+
for (let i = descendants.length - 1; i >= 0; i--) {
|
|
10725
|
+
let descendant = descendants[i];
|
|
10726
|
+
|
|
10727
|
+
if (attemptFocus(descendant) || attemptFocusOnLastDescendant(descendant.childNodes) || attemptFocusOnLastDescendantOfSlotElement(descendant) || attemptFocusOnLastDescendantOfShadowDOM(descendant)) {
|
|
10728
|
+
return true;
|
|
10729
|
+
}
|
|
10730
|
+
}
|
|
10731
|
+
|
|
10732
|
+
return false;
|
|
10733
|
+
}
|
|
10734
|
+
|
|
10735
|
+
function attemptFocusOnLastDescendantOfSlotElement(node) {
|
|
10736
|
+
var _a;
|
|
10737
|
+
|
|
10738
|
+
if (node instanceof HTMLSlotElement) {
|
|
10739
|
+
let assingedNodesOfSlotElement = (_a = node) === null || _a === void 0
|
|
10740
|
+
? void 0
|
|
10741
|
+
: _a.assignedNodes();
|
|
10742
|
+
|
|
10743
|
+
if (attemptFocusOnLastDescendant(assingedNodesOfSlotElement)) {
|
|
10744
|
+
return true;
|
|
10745
|
+
}
|
|
10746
|
+
}
|
|
10747
|
+
}
|
|
10748
|
+
|
|
10749
|
+
function attemptFocusOnLastDescendantOfShadowDOM(node) {
|
|
10750
|
+
var _a, _b;
|
|
10751
|
+
|
|
10752
|
+
if (node instanceof HTMLElement) {
|
|
10753
|
+
let childNodesOfShadowRoot = (_b = (_a = node) === null || _a === void 0
|
|
10754
|
+
? void 0
|
|
10755
|
+
: _a.shadowRoot) === null || _b === void 0
|
|
10756
|
+
? void 0
|
|
10757
|
+
: _b.childNodes;
|
|
10758
|
+
|
|
10759
|
+
if (attemptFocusOnLastDescendant(childNodesOfShadowRoot)) {
|
|
10760
|
+
return true;
|
|
10761
|
+
}
|
|
10762
|
+
}
|
|
10763
|
+
}
|
|
10764
|
+
|
|
10765
|
+
function attemptFocus(element) {
|
|
10766
|
+
if (!isFocusable(element)) {
|
|
10767
|
+
return false;
|
|
10768
|
+
}
|
|
10769
|
+
|
|
10770
|
+
ignoreFocusChanges = true;
|
|
10771
|
+
|
|
10772
|
+
try {
|
|
10773
|
+
element.focus();
|
|
10774
|
+
} catch(e) {
|
|
10775
|
+
|
|
10776
|
+
}
|
|
10777
|
+
|
|
10778
|
+
ignoreFocusChanges = false;
|
|
10779
|
+
return document.activeElement === element;
|
|
10780
|
+
}
|
|
10781
|
+
|
|
10782
|
+
function trapFocus(event) {
|
|
10783
|
+
var _a;
|
|
10784
|
+
|
|
10785
|
+
if (ignoreFocusChanges) {
|
|
10786
|
+
return;
|
|
10787
|
+
}
|
|
10788
|
+
|
|
10789
|
+
const slotElements = (_a = element.firstChild) === null || _a === void 0
|
|
10790
|
+
? void 0
|
|
10791
|
+
: _a.assignedElements();
|
|
10792
|
+
|
|
10793
|
+
if (!(slotElements === null || slotElements === void 0
|
|
10794
|
+
? void 0
|
|
10795
|
+
: slotElements.length)) return;
|
|
10796
|
+
|
|
10797
|
+
const contentRootElement = slotElements[0];
|
|
10798
|
+
|
|
10799
|
+
if (event.composedPath().includes(contentRootElement)) {
|
|
10800
|
+
lastFocus = event.target;
|
|
10801
|
+
} else {
|
|
10802
|
+
attemptFocusOnFirstDescendant(contentRootElement.childNodes);
|
|
10803
|
+
|
|
10804
|
+
if (lastFocus == document.activeElement) {
|
|
10805
|
+
attemptFocusOnLastDescendant(contentRootElement.childNodes);
|
|
10806
|
+
}
|
|
10807
|
+
|
|
10808
|
+
lastFocus = document.activeElement;
|
|
10809
|
+
}
|
|
10810
|
+
}
|
|
10811
|
+
|
|
10812
|
+
function div_binding($$value) {
|
|
10813
|
+
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
10814
|
+
element = $$value;
|
|
10815
|
+
$$invalidate(0, element);
|
|
10816
|
+
});
|
|
10817
|
+
}
|
|
10818
|
+
|
|
10819
|
+
$$self.$$set = $$props => {
|
|
10820
|
+
if ('open' in $$props) $$invalidate(1, open = $$props.open);
|
|
10821
|
+
};
|
|
10822
|
+
|
|
10823
|
+
$$self.$$.update = () => {
|
|
10824
|
+
if ($$self.$$.dirty & /*open*/ 2) {
|
|
10825
|
+
$$invalidate(2, isOpen = toBoolean(open));
|
|
10826
|
+
}
|
|
10827
|
+
|
|
10828
|
+
if ($$self.$$.dirty & /*isOpen*/ 4) {
|
|
10829
|
+
{
|
|
10830
|
+
if (isOpen) {
|
|
10831
|
+
addListeners();
|
|
10832
|
+
} else {
|
|
10833
|
+
removeListeners();
|
|
10834
|
+
}
|
|
10835
|
+
}
|
|
10836
|
+
}
|
|
10837
|
+
};
|
|
10838
|
+
|
|
10839
|
+
return [element, open, isOpen, div_binding];
|
|
10840
|
+
}
|
|
10841
|
+
|
|
10842
|
+
class FocusTrap extends SvelteElement {
|
|
10843
|
+
constructor(options) {
|
|
10844
|
+
super();
|
|
10845
|
+
|
|
10846
|
+
init(
|
|
10847
|
+
this,
|
|
10848
|
+
{
|
|
10849
|
+
target: this.shadowRoot,
|
|
10850
|
+
props: attribute_to_object(this.attributes),
|
|
10851
|
+
customElement: true
|
|
10852
|
+
},
|
|
10853
|
+
instance$2,
|
|
10854
|
+
create_fragment$2,
|
|
10855
|
+
safe_not_equal,
|
|
10856
|
+
{ open: 1 },
|
|
10857
|
+
null
|
|
10858
|
+
);
|
|
10859
|
+
|
|
10860
|
+
if (options) {
|
|
10861
|
+
if (options.target) {
|
|
10862
|
+
insert(options.target, this, options.anchor);
|
|
10863
|
+
}
|
|
10864
|
+
|
|
10865
|
+
if (options.props) {
|
|
10866
|
+
this.$set(options.props);
|
|
10867
|
+
flush();
|
|
10868
|
+
}
|
|
10869
|
+
}
|
|
10870
|
+
}
|
|
10871
|
+
|
|
10872
|
+
static get observedAttributes() {
|
|
10873
|
+
return ["open"];
|
|
10874
|
+
}
|
|
10875
|
+
|
|
10876
|
+
get open() {
|
|
10877
|
+
return this.$$.ctx[1];
|
|
10878
|
+
}
|
|
10879
|
+
|
|
10880
|
+
set open(open) {
|
|
10881
|
+
this.$$set({ open });
|
|
10882
|
+
flush();
|
|
10883
|
+
}
|
|
10884
|
+
}
|
|
10885
|
+
|
|
10886
|
+
customElements.define("goa-focus-trap", FocusTrap);
|
|
10887
|
+
|
|
10501
10888
|
/* libs/web-components/src/components/container/ContainerWrapper.test.svelte generated by Svelte v3.44.3 */
|
|
10502
10889
|
|
|
10503
10890
|
function create_if_block_1(ctx) {
|
|
@@ -10546,7 +10933,7 @@ function create_if_block(ctx) {
|
|
|
10546
10933
|
};
|
|
10547
10934
|
}
|
|
10548
10935
|
|
|
10549
|
-
function create_fragment(ctx) {
|
|
10936
|
+
function create_fragment$1(ctx) {
|
|
10550
10937
|
let goa_container;
|
|
10551
10938
|
let t0;
|
|
10552
10939
|
let t1;
|
|
@@ -10623,7 +11010,7 @@ function create_fragment(ctx) {
|
|
|
10623
11010
|
};
|
|
10624
11011
|
}
|
|
10625
11012
|
|
|
10626
|
-
function instance($$self, $$props, $$invalidate) {
|
|
11013
|
+
function instance$1($$self, $$props, $$invalidate) {
|
|
10627
11014
|
let { title } = $$props;
|
|
10628
11015
|
let { actions = "" } = $$props;
|
|
10629
11016
|
let { content } = $$props;
|
|
@@ -10652,8 +11039,8 @@ class ContainerWrapper_test extends SvelteElement {
|
|
|
10652
11039
|
props: attribute_to_object(this.attributes),
|
|
10653
11040
|
customElement: true
|
|
10654
11041
|
},
|
|
10655
|
-
instance,
|
|
10656
|
-
create_fragment,
|
|
11042
|
+
instance$1,
|
|
11043
|
+
create_fragment$1,
|
|
10657
11044
|
safe_not_equal,
|
|
10658
11045
|
{
|
|
10659
11046
|
title: 0,
|
|
@@ -10729,4 +11116,110 @@ class ContainerWrapper_test extends SvelteElement {
|
|
|
10729
11116
|
|
|
10730
11117
|
customElements.define("test-container", ContainerWrapper_test);
|
|
10731
11118
|
|
|
10732
|
-
|
|
11119
|
+
/* libs/web-components/src/components/divider/Divider.svelte generated by Svelte v3.44.3 */
|
|
11120
|
+
|
|
11121
|
+
function create_fragment(ctx) {
|
|
11122
|
+
let hr;
|
|
11123
|
+
|
|
11124
|
+
return {
|
|
11125
|
+
c() {
|
|
11126
|
+
hr = element("hr");
|
|
11127
|
+
this.c = noop;
|
|
11128
|
+
set_style(hr, "--spacing", /*_spacing*/ ctx[0]);
|
|
11129
|
+
},
|
|
11130
|
+
m(target, anchor) {
|
|
11131
|
+
insert(target, hr, anchor);
|
|
11132
|
+
},
|
|
11133
|
+
p(ctx, [dirty]) {
|
|
11134
|
+
if (dirty & /*_spacing*/ 1) {
|
|
11135
|
+
set_style(hr, "--spacing", /*_spacing*/ ctx[0]);
|
|
11136
|
+
}
|
|
11137
|
+
},
|
|
11138
|
+
i: noop,
|
|
11139
|
+
o: noop,
|
|
11140
|
+
d(detaching) {
|
|
11141
|
+
if (detaching) detach(hr);
|
|
11142
|
+
}
|
|
11143
|
+
};
|
|
11144
|
+
}
|
|
11145
|
+
|
|
11146
|
+
function instance($$self, $$props, $$invalidate) {
|
|
11147
|
+
let _spacing;
|
|
11148
|
+
let { spacing = "" } = $$props;
|
|
11149
|
+
const SPACING = ["small", "medium", "large"];
|
|
11150
|
+
|
|
11151
|
+
function isSpacing(value) {
|
|
11152
|
+
return SPACING.includes(value);
|
|
11153
|
+
}
|
|
11154
|
+
|
|
11155
|
+
onMount(() => {
|
|
11156
|
+
if (!isSpacing(spacing)) {
|
|
11157
|
+
throw "Invalid spacing";
|
|
11158
|
+
}
|
|
11159
|
+
});
|
|
11160
|
+
|
|
11161
|
+
$$self.$$set = $$props => {
|
|
11162
|
+
if ('spacing' in $$props) $$invalidate(1, spacing = $$props.spacing);
|
|
11163
|
+
};
|
|
11164
|
+
|
|
11165
|
+
$$self.$$.update = () => {
|
|
11166
|
+
if ($$self.$$.dirty & /*spacing*/ 2) {
|
|
11167
|
+
$$invalidate(0, _spacing = ({
|
|
11168
|
+
small: "1rem",
|
|
11169
|
+
medium: "2rem",
|
|
11170
|
+
large: "4rem"
|
|
11171
|
+
})[spacing]);
|
|
11172
|
+
}
|
|
11173
|
+
};
|
|
11174
|
+
|
|
11175
|
+
return [_spacing, spacing];
|
|
11176
|
+
}
|
|
11177
|
+
|
|
11178
|
+
class Divider extends SvelteElement {
|
|
11179
|
+
constructor(options) {
|
|
11180
|
+
super();
|
|
11181
|
+
this.shadowRoot.innerHTML = `<style>hr{padding:0;margin:var(--spacing) 0;border:none;border-top:1px solid var(--color-gray-200)}</style>`;
|
|
11182
|
+
|
|
11183
|
+
init(
|
|
11184
|
+
this,
|
|
11185
|
+
{
|
|
11186
|
+
target: this.shadowRoot,
|
|
11187
|
+
props: attribute_to_object(this.attributes),
|
|
11188
|
+
customElement: true
|
|
11189
|
+
},
|
|
11190
|
+
instance,
|
|
11191
|
+
create_fragment,
|
|
11192
|
+
safe_not_equal,
|
|
11193
|
+
{ spacing: 1 },
|
|
11194
|
+
null
|
|
11195
|
+
);
|
|
11196
|
+
|
|
11197
|
+
if (options) {
|
|
11198
|
+
if (options.target) {
|
|
11199
|
+
insert(options.target, this, options.anchor);
|
|
11200
|
+
}
|
|
11201
|
+
|
|
11202
|
+
if (options.props) {
|
|
11203
|
+
this.$set(options.props);
|
|
11204
|
+
flush();
|
|
11205
|
+
}
|
|
11206
|
+
}
|
|
11207
|
+
}
|
|
11208
|
+
|
|
11209
|
+
static get observedAttributes() {
|
|
11210
|
+
return ["spacing"];
|
|
11211
|
+
}
|
|
11212
|
+
|
|
11213
|
+
get spacing() {
|
|
11214
|
+
return this.$$.ctx[1];
|
|
11215
|
+
}
|
|
11216
|
+
|
|
11217
|
+
set spacing(spacing) {
|
|
11218
|
+
this.$$set({ spacing });
|
|
11219
|
+
flush();
|
|
11220
|
+
}
|
|
11221
|
+
}
|
|
11222
|
+
|
|
11223
|
+
customElements.define("goa-divider", Divider);
|
|
11224
|
+
|
|
11225
|
+
export { ContainerWrapper_test as ContainerWrapper, Divider, AppFooter as GoAAppFooter, AppHeader as GoAAppHeader, Badge as GoABadge, Button as GoAButton, ButtonGroup as GoAButtonGroup, Callout as GoACallout, Card as GoACard, CardActions as GoACardActions, CardContent as GoACardContent, CardGroup as GoACardGroup, CardImage as GoACardImage, Checkbox as GoACheckbox, Chip as GoAChip, CircularProgress as GoACircularProgress, Container as GoAContainer, Dropdown as GoADropdown, DropdownItem as GoADropdownItem, FlexRow as GoAFlexRow, FocusTrap as GoAFocusTrap, FormItem as GoAFormItem, HeroBanner as GoAHeroBanner, Icon as GoAIcon, IconButton as GoAIconButton, Input as GoAInput, MetaLink as GoAMetaLink, MicrositeHeader as GoAMicrositeHeader, Modal as GoAModal, NavigationLink as GoANavigationLink, Notification as GoANotification, PageBlock as GoAPageBlock, PageLayout as GoAPageLayout, RadioGroup as GoARadioGroup, RadioItem as GoARadioItem, Scrollable as GoAScrollable, Skeleton as GoASkeleton, Spinner as GoASpinner, TextArea as GoATextArea };
|