@abgov/react-components 4.7.0 → 4.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/container/container.d.ts +1 -0
- package/lib/icon-button/icon-button.d.ts +3 -3
- package/package.json +1 -1
- package/react-components.esm.js +345 -231
- package/react-components.umd.js +350 -236
package/react-components.esm.js
CHANGED
|
@@ -1428,7 +1428,7 @@ class Accordion extends SvelteElement {
|
|
|
1428
1428
|
constructor(options) {
|
|
1429
1429
|
super();
|
|
1430
1430
|
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans);font-size:var(--goa-font-size-4)}.goa-accordion,.goa-accordion *{box-sizing:border-box}summary{min-height:3.5rem;border-width:var(--goa-border-width-s);border-style:solid;border-radius:var(--goa-border-radius-m);background-color:var(--goa-color-greyscale-100);border-color:var(--goa-color-greyscale-200);color:var(--goa-color-text-default);;;padding:0.875rem 1rem 0 0;cursor:pointer;list-style:none;display:flex;align-items:flex-start;position:relative}summary.container-medium{min-height:4rem}summary::marker,summary::-webkit-details-marker{display:none}summary .title{display:flex;align-items:center;flex:1}.title span{padding-bottom:var(--goa-space-3xs, 0)}summary .heading{font:var(--goa-typography-heading-s);padding-right:1rem}summary .secondary-text{font:var(--goa-typography-body-s);line-height:1.5rem;padding-right:1rem}summary .heading-content{flex:1
|
|
1431
|
-
}.content{border-bottom:var(--goa-border-width-s) solid var(--goa-color-greyscale-200);border-left:var(--goa-border-width-s) solid var(--goa-color-greyscale-200);border-right:var(--goa-border-width-s) solid var(--goa-color-greyscale-200);border-bottom-left-radius:var(--goa-border-radius-m);border-bottom-right-radius:var(--goa-border-radius-m);padding:1.5rem;padding-left:3.5rem;padding-right:2rem}summary goa-icon{padding:0.125rem 1rem}summary.container-medium goa-icon{padding:0.375rem 1rem}details[open] goa-icon{transform:rotate(90deg)}details[open] summary{border-bottom-left-radius:var(--goa-border-radius-none);border-bottom-right-radius:var(--goa-border-radius-none)}summary:hover{background-color:var(--goa-color-greyscale-200)}summary:focus,summary:active{background-color:var(--goa-color-greyscale-100);outline:none}summary:active::before,summary:focus::before{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border:var(--goa-border-width-l) solid var(--goa-color-interactive-focus);border-radius:4px}summary .heading.heading-medium{line-height:2rem;font:var(--goa-typography-heading-m)}@media(max-width: 640px){summary{align-items:flex-start}summary .title{flex-direction:column;align-items:flex-start}}</style>`;
|
|
1431
|
+
}.content{border-bottom:var(--goa-border-width-s) solid var(--goa-color-greyscale-200);border-left:var(--goa-border-width-s) solid var(--goa-color-greyscale-200);border-right:var(--goa-border-width-s) solid var(--goa-color-greyscale-200);border-bottom-left-radius:var(--goa-border-radius-m);border-bottom-right-radius:var(--goa-border-radius-m);padding:1.5rem;padding-left:3.5rem;padding-right:2rem}.content ::slotted(p:last-child){margin-bottom:0 !important}summary goa-icon{padding:0.125rem 1rem}summary.container-medium goa-icon{padding:0.375rem 1rem}details[open] goa-icon{transform:rotate(90deg)}details[open] summary{border-bottom-left-radius:var(--goa-border-radius-none);border-bottom-right-radius:var(--goa-border-radius-none)}summary:hover{background-color:var(--goa-color-greyscale-200)}summary:focus,summary:active{background-color:var(--goa-color-greyscale-100);outline:none}summary:active::before,summary:focus::before{content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border:var(--goa-border-width-l) solid var(--goa-color-interactive-focus);border-radius:4px}summary .heading.heading-medium{line-height:2rem;font:var(--goa-typography-heading-m)}@media(max-width: 640px){summary{align-items:flex-start}summary .title{flex-direction:column;align-items:flex-start}}</style>`;
|
|
1432
1432
|
init(this, {
|
|
1433
1433
|
target: this.shadowRoot,
|
|
1434
1434
|
props: attribute_to_object(this.attributes),
|
|
@@ -2176,7 +2176,7 @@ function instance$F($$self, $$props, $$invalidate) {
|
|
|
2176
2176
|
class Badge extends SvelteElement {
|
|
2177
2177
|
constructor(options) {
|
|
2178
2178
|
super();
|
|
2179
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.goa-badge{display:inline-flex;align-items:center;border-radius:0.25rem;padding:3px 0.5rem;gap:0.25rem;font-weight:var(--goa-font-weight-regular)}.icon-only{padding:0.25rem}.goa-badge-content{
|
|
2179
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.goa-badge{display:inline-flex;align-items:center;border-radius:0.25rem;padding:3px 0.5rem;gap:0.25rem;font-weight:var(--goa-font-weight-regular)}.icon-only{padding:0.25rem}.goa-badge-content{font-size:var(--goa-font-size-2);line-height:var(--goa-line-height-1);padding-bottom:var(--font-valign-fix, 0)}.goa-badge.badge-information{background-color:var(--goa-color-greyscale-100);color:var(--goa-color-info-default)}.goa-badge.badge-success{background-color:var(--goa-color-success-default);color:var(--goa-color-text-light)}.goa-badge.badge-important{background-color:var(--goa-color-warning-default);color:var(--goa-color-text-default)}.goa-badge.badge-emergency{background-color:var(--goa-color-emergency-default);color:var(--goa-color-text-light)}.goa-badge.badge-dark{background-color:var(--goa-color-greyscale-black);color:var(--goa-color-text-light)}.goa-badge.badge-midtone{background-color:var(--goa-color-greyscale-700);color:var(--goa-color-text-light)}.goa-badge.badge-light{background-color:var(--goa-color-greyscale-white);color:var(--goa-color-text-default)}</style>`;
|
|
2180
2180
|
init(this, {
|
|
2181
2181
|
target: this.shadowRoot,
|
|
2182
2182
|
props: attribute_to_object(this.attributes),
|
|
@@ -6175,7 +6175,7 @@ function instance$v($$self, $$props, $$invalidate) {
|
|
|
6175
6175
|
class Container extends SvelteElement {
|
|
6176
6176
|
constructor(options) {
|
|
6177
6177
|
super();
|
|
6178
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans);font-size:var(--goa-font-size-4)}.goa-container{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(--goa-font-size-4);border-width:1px;border-style:solid;border-top-left-radius:var(--goa-border-radius-m);border-top-right-radius:var(--goa-border-radius-m)}.content{border-bottom:1px solid var(--goa-color-greyscale-200);border-left:1px solid var(--goa-color-greyscale-200);border-right:1px solid var(--goa-color-greyscale-200);border-bottom-left-radius:var(--goa-border-radius-m);border-bottom-right-radius:var(--goa-border-radius-m)}.goa-container--non-interactive.accent--filled .content{border-color:var(--goa-color-greyscale-200);background-color:var(--goa-color-greyscale-100)}.goa-container--important.accent--filled .content{border-color:var(--goa-color-warning-default);background-color:var(--goa-color-warning-background)}.goa-container--error.accent--filled .content{border-color:var(--goa-color-emergency-default);background-color:var(--goa-color-emergency-background)}.goa-container--success.accent--filled .content{border-color:var(--goa-color-success-default);background-color:var(--goa-color-success-background)}.goa-container--info.accent--filled .content{border-color:var(--goa-color-info-default);background-color:var(--goa-color-info-background)}.title,.actions{padding:0.5rem 0}.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--non-interactive header{background-color:var(--goa-color-greyscale-100);border-color:var(--goa-color-greyscale-200);color:var(--goa-color-greyscale-black)}.goa-container--interactive header{background-color:var(--goa-color-brand-default);border-color:var(--goa-color-brand-default);color:var(--goa-color-greyscale-white)}.goa-container--info header{background-color:var(--goa-color-info-default);border-color:var(--goa-color-info-default);color:var(--goa-color-greyscale-white)}.goa-container--error header{background-color:var(--goa-color-emergency-default);border-color:var(--goa-color-emergency-default);color:var(--goa-color-greyscale-white)}.goa-container--success header{background-color:var(--goa-color-success-default);border-color:var(--goa-color-success-default);color:var(--goa-color-greyscale-white)}.goa-container--important header{background-color:var(--goa-color-warning-default);border-color:var(--goa-color-warning-default);color:var(--goa-color-greyscale-white)}.heading--thick{padding:0.5rem 1.5rem;max-height:3rem;min-height:1rem}.heading--thick .title{line-height:2rem}.heading--thin{height:0.5rem}.heading--filled{display:none}.heading--filled~.content{border-top:1px solid var(--goa-color-greyscale-200);border-top-left-radius:var(--goa-border-radius-m);border-top-right-radius:var(--goa-border-radius-m)}.heading--thin .title,.heading--thin .actions{display:none}.actions{display:flex;align-items:center}</style>`;
|
|
6178
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans);font-size:var(--goa-font-size-4)}.goa-container{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(--goa-font-size-4);border-width:1px;border-style:solid;border-top-left-radius:var(--goa-border-radius-m);border-top-right-radius:var(--goa-border-radius-m)}.content{border-bottom:1px solid var(--goa-color-greyscale-200);border-left:1px solid var(--goa-color-greyscale-200);border-right:1px solid var(--goa-color-greyscale-200);border-bottom-left-radius:var(--goa-border-radius-m);border-bottom-right-radius:var(--goa-border-radius-m)}.content ::slotted(p:last-child){margin-bottom:0 !important}.goa-container--non-interactive.accent--filled .content{border-color:var(--goa-color-greyscale-200);background-color:var(--goa-color-greyscale-100)}.goa-container--important.accent--filled .content{border-color:var(--goa-color-warning-default);background-color:var(--goa-color-warning-background)}.goa-container--error.accent--filled .content{border-color:var(--goa-color-emergency-default);background-color:var(--goa-color-emergency-background)}.goa-container--success.accent--filled .content{border-color:var(--goa-color-success-default);background-color:var(--goa-color-success-background)}.goa-container--info.accent--filled .content{border-color:var(--goa-color-info-default);background-color:var(--goa-color-info-background)}.title,.actions{padding:0.5rem 0}.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--non-interactive header{background-color:var(--goa-color-greyscale-100);border-color:var(--goa-color-greyscale-200);color:var(--goa-color-greyscale-black)}.goa-container--interactive header{background-color:var(--goa-color-brand-default);border-color:var(--goa-color-brand-default);color:var(--goa-color-greyscale-white)}.goa-container--info header{background-color:var(--goa-color-info-default);border-color:var(--goa-color-info-default);color:var(--goa-color-greyscale-white)}.goa-container--error header{background-color:var(--goa-color-emergency-default);border-color:var(--goa-color-emergency-default);color:var(--goa-color-greyscale-white)}.goa-container--success header{background-color:var(--goa-color-success-default);border-color:var(--goa-color-success-default);color:var(--goa-color-greyscale-white)}.goa-container--important header{background-color:var(--goa-color-warning-default);border-color:var(--goa-color-warning-default);color:var(--goa-color-greyscale-white)}.heading--thick{padding:0.5rem 1.5rem;max-height:3rem;min-height:1rem}.heading--thick .title{line-height:2rem}.heading--thin{height:0.5rem}.heading--filled{display:none}.heading--filled~.content{border-top:1px solid var(--goa-color-greyscale-200);border-top-left-radius:var(--goa-border-radius-m);border-top-right-radius:var(--goa-border-radius-m)}.heading--thin .title,.heading--thin .actions{display:none}.actions{display:flex;align-items:center}</style>`;
|
|
6179
6179
|
init(this, {
|
|
6180
6180
|
target: this.shadowRoot,
|
|
6181
6181
|
props: attribute_to_object(this.attributes),
|
|
@@ -6455,7 +6455,7 @@ function instance$u($$self, $$props, $$invalidate) {
|
|
|
6455
6455
|
class Details extends SvelteElement {
|
|
6456
6456
|
constructor(options) {
|
|
6457
6457
|
super();
|
|
6458
|
-
this.shadowRoot.innerHTML = `<style>:host{font-family:var(--goa-font-family-sans)}details{max-width:75ch;position:relative}details ::slotted(*){font:var(--goa-typography-body-m)}summary{padding:0.5rem;margin-bottom:0.5rem;cursor:pointer;list-style:none;display:flex;align-items:flex-start}goa-icon{position:absolute}details[open] goa-icon{transform:translateX(-1px) rotate(90deg);top:0.75rem}details summary::-webkit-details-marker{display:none}summary{border-radius:var(--goa-border-radius-m)}summary:focus,summary:active{outline:3px solid var(--goa-color-interactive-focus);border-radius:var(--goa-border-radius-m);color:var(--goa-color-interactive-hover);background-color:var(--goa-color-greyscale-100)}summary:hover{background-color:var(--goa-color-greyscale-100)}summary span{margin-left:2rem;text-decoration:underline;color:var(--goa-color-interactive-default);padding-bottom:var(--font-valign-fix);line-height:var(--goa-line-height-3)}summary:hover span{color:var(--goa-color-interactive-hover)}.content{border-left:4px solid var(--goa-color-greyscale-200);padding:1rem;margin-left:1.1rem;margin-bottom:var(--goa-space-s)}</style>`;
|
|
6458
|
+
this.shadowRoot.innerHTML = `<style>:host{font-family:var(--goa-font-family-sans)}details{max-width:75ch;position:relative}details ::slotted(*){font:var(--goa-typography-body-m)}summary{padding:0.5rem;margin-bottom:0.5rem;cursor:pointer;list-style:none;display:flex;align-items:flex-start}goa-icon{position:absolute}details[open] goa-icon{transform:translateX(-1px) rotate(90deg);top:0.75rem}details summary::-webkit-details-marker{display:none}summary{border-radius:var(--goa-border-radius-m)}summary:focus,summary:active{outline:3px solid var(--goa-color-interactive-focus);border-radius:var(--goa-border-radius-m);color:var(--goa-color-interactive-hover);background-color:var(--goa-color-greyscale-100)}summary:hover{background-color:var(--goa-color-greyscale-100)}summary span{margin-left:2rem;text-decoration:underline;color:var(--goa-color-interactive-default);padding-bottom:var(--font-valign-fix);line-height:var(--goa-line-height-3)}summary:hover span{color:var(--goa-color-interactive-hover)}.content{border-left:4px solid var(--goa-color-greyscale-200);padding:1rem;margin-left:1.1rem;margin-bottom:var(--goa-space-s)}.content ::slotted(p:last-child){margin-bottom:0 !important}</style>`;
|
|
6459
6459
|
init(this, {
|
|
6460
6460
|
target: this.shadowRoot,
|
|
6461
6461
|
props: attribute_to_object(this.attributes),
|
|
@@ -6725,16 +6725,16 @@ customElements.define("goa-divider", Divider);
|
|
|
6725
6725
|
|
|
6726
6726
|
function get_each_context_1(ctx, list, i) {
|
|
6727
6727
|
const child_ctx = ctx.slice();
|
|
6728
|
-
child_ctx[
|
|
6729
|
-
child_ctx[
|
|
6728
|
+
child_ctx[50] = list[i];
|
|
6729
|
+
child_ctx[54] = i;
|
|
6730
6730
|
return child_ctx;
|
|
6731
6731
|
}
|
|
6732
6732
|
|
|
6733
|
-
function get_each_context$
|
|
6733
|
+
function get_each_context$5(ctx, list, i) {
|
|
6734
6734
|
const child_ctx = ctx.slice();
|
|
6735
|
-
child_ctx[
|
|
6735
|
+
child_ctx[50] = list[i];
|
|
6736
6736
|
return child_ctx;
|
|
6737
|
-
} // (
|
|
6737
|
+
} // (270:2) {:else}
|
|
6738
6738
|
|
|
6739
6739
|
|
|
6740
6740
|
function create_else_block$5(ctx) {
|
|
@@ -6753,14 +6753,14 @@ function create_else_block$5(ctx) {
|
|
|
6753
6753
|
let dispose;
|
|
6754
6754
|
let if_block =
|
|
6755
6755
|
/*_isMenuVisible*/
|
|
6756
|
-
ctx[
|
|
6756
|
+
ctx[17] && create_if_block_1$7(ctx);
|
|
6757
6757
|
let each_value_1 =
|
|
6758
6758
|
/*_options*/
|
|
6759
|
-
ctx[
|
|
6759
|
+
ctx[12];
|
|
6760
6760
|
|
|
6761
6761
|
const get_key = ctx =>
|
|
6762
6762
|
/*index*/
|
|
6763
|
-
ctx[
|
|
6763
|
+
ctx[54];
|
|
6764
6764
|
|
|
6765
6765
|
for (let i = 0; i < each_value_1.length; i += 1) {
|
|
6766
6766
|
let child_ctx = get_each_context_1(ctx, each_value_1, i);
|
|
@@ -6797,7 +6797,7 @@ function create_else_block$5(ctx) {
|
|
|
6797
6797
|
set_custom_element_data(goa_input, "aria-controls", "menu");
|
|
6798
6798
|
set_custom_element_data(goa_input, "aria-expanded",
|
|
6799
6799
|
/*_isMenuVisible*/
|
|
6800
|
-
ctx[
|
|
6800
|
+
ctx[17]);
|
|
6801
6801
|
set_custom_element_data(goa_input, "arialabel", goa_input_arialabel_value =
|
|
6802
6802
|
/*arialabel*/
|
|
6803
6803
|
ctx[1] ||
|
|
@@ -6812,7 +6812,7 @@ function create_else_block$5(ctx) {
|
|
|
6812
6812
|
set_custom_element_data(goa_input, "type", "text");
|
|
6813
6813
|
set_custom_element_data(goa_input, "value",
|
|
6814
6814
|
/*_selectedLabel*/
|
|
6815
|
-
ctx[
|
|
6815
|
+
ctx[16]);
|
|
6816
6816
|
set_custom_element_data(goa_input, "width", "100%");
|
|
6817
6817
|
set_custom_element_data(goa_input, "name",
|
|
6818
6818
|
/*name*/
|
|
@@ -6821,16 +6821,22 @@ function create_else_block$5(ctx) {
|
|
|
6821
6821
|
attr(ul, "role", "listbox");
|
|
6822
6822
|
attr(ul, "aria-activedescendant",
|
|
6823
6823
|
/*_selectedLabel*/
|
|
6824
|
-
ctx[
|
|
6824
|
+
ctx[16]);
|
|
6825
6825
|
attr(ul, "data-testid", "dropdown-menu");
|
|
6826
6826
|
attr(ul, "tabindex", "0");
|
|
6827
6827
|
attr(ul, "class", "dropdown-list");
|
|
6828
|
-
attr(ul, "style", ul_style_value = `
|
|
6828
|
+
attr(ul, "style", ul_style_value = `
|
|
6829
|
+
overflow-y: auto;
|
|
6830
|
+
max-height: ${
|
|
6829
6831
|
/*maxheight*/
|
|
6830
|
-
ctx[3]}
|
|
6832
|
+
ctx[3]};
|
|
6833
|
+
--bottom: ${
|
|
6834
|
+
/*_dropdownMenuPos*/
|
|
6835
|
+
ctx[20]};
|
|
6836
|
+
`);
|
|
6831
6837
|
toggle_class(ul, "dropdown-active",
|
|
6832
6838
|
/*_isMenuVisible*/
|
|
6833
|
-
ctx[
|
|
6839
|
+
ctx[17]);
|
|
6834
6840
|
},
|
|
6835
6841
|
|
|
6836
6842
|
m(target, anchor) {
|
|
@@ -6848,12 +6854,12 @@ function create_else_block$5(ctx) {
|
|
|
6848
6854
|
/*ul_binding*/
|
|
6849
6855
|
|
|
6850
6856
|
|
|
6851
|
-
ctx[
|
|
6857
|
+
ctx[34](ul);
|
|
6852
6858
|
|
|
6853
6859
|
if (!mounted) {
|
|
6854
6860
|
dispose = listen(goa_input, "click",
|
|
6855
6861
|
/*showMenu*/
|
|
6856
|
-
ctx[
|
|
6862
|
+
ctx[25]);
|
|
6857
6863
|
mounted = true;
|
|
6858
6864
|
}
|
|
6859
6865
|
},
|
|
@@ -6861,7 +6867,7 @@ function create_else_block$5(ctx) {
|
|
|
6861
6867
|
p(ctx, dirty) {
|
|
6862
6868
|
if (
|
|
6863
6869
|
/*_isMenuVisible*/
|
|
6864
|
-
ctx[
|
|
6870
|
+
ctx[17]) {
|
|
6865
6871
|
if (if_block) {
|
|
6866
6872
|
if_block.p(ctx, dirty);
|
|
6867
6873
|
} else {
|
|
@@ -6908,10 +6914,10 @@ function create_else_block$5(ctx) {
|
|
|
6908
6914
|
|
|
6909
6915
|
if (dirty[0] &
|
|
6910
6916
|
/*_isMenuVisible*/
|
|
6911
|
-
|
|
6917
|
+
131072) {
|
|
6912
6918
|
set_custom_element_data(goa_input, "aria-expanded",
|
|
6913
6919
|
/*_isMenuVisible*/
|
|
6914
|
-
ctx[
|
|
6920
|
+
ctx[17]);
|
|
6915
6921
|
}
|
|
6916
6922
|
|
|
6917
6923
|
if (dirty[0] &
|
|
@@ -6934,10 +6940,10 @@ function create_else_block$5(ctx) {
|
|
|
6934
6940
|
|
|
6935
6941
|
if (dirty[0] &
|
|
6936
6942
|
/*_selectedLabel*/
|
|
6937
|
-
|
|
6943
|
+
65536) {
|
|
6938
6944
|
set_custom_element_data(goa_input, "value",
|
|
6939
6945
|
/*_selectedLabel*/
|
|
6940
|
-
ctx[
|
|
6946
|
+
ctx[16]);
|
|
6941
6947
|
}
|
|
6942
6948
|
|
|
6943
6949
|
if (dirty[0] &
|
|
@@ -6950,35 +6956,41 @@ function create_else_block$5(ctx) {
|
|
|
6950
6956
|
|
|
6951
6957
|
if (dirty[0] &
|
|
6952
6958
|
/*_options, _values, _highlightedIndex, onSelect*/
|
|
6953
|
-
|
|
6959
|
+
134516736) {
|
|
6954
6960
|
each_value_1 =
|
|
6955
6961
|
/*_options*/
|
|
6956
|
-
ctx[
|
|
6962
|
+
ctx[12];
|
|
6957
6963
|
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value_1, each_1_lookup, ul, destroy_block, create_each_block_1, null, get_each_context_1);
|
|
6958
6964
|
}
|
|
6959
6965
|
|
|
6960
6966
|
if (dirty[0] &
|
|
6961
6967
|
/*_selectedLabel*/
|
|
6962
|
-
|
|
6968
|
+
65536) {
|
|
6963
6969
|
attr(ul, "aria-activedescendant",
|
|
6964
6970
|
/*_selectedLabel*/
|
|
6965
|
-
ctx[
|
|
6971
|
+
ctx[16]);
|
|
6966
6972
|
}
|
|
6967
6973
|
|
|
6968
6974
|
if (dirty[0] &
|
|
6975
|
+
/*maxheight, _dropdownMenuPos*/
|
|
6976
|
+
1048584 && ul_style_value !== (ul_style_value = `
|
|
6977
|
+
overflow-y: auto;
|
|
6978
|
+
max-height: ${
|
|
6969
6979
|
/*maxheight*/
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6980
|
+
ctx[3]};
|
|
6981
|
+
--bottom: ${
|
|
6982
|
+
/*_dropdownMenuPos*/
|
|
6983
|
+
ctx[20]};
|
|
6984
|
+
`)) {
|
|
6973
6985
|
attr(ul, "style", ul_style_value);
|
|
6974
6986
|
}
|
|
6975
6987
|
|
|
6976
6988
|
if (dirty[0] &
|
|
6977
6989
|
/*_isMenuVisible*/
|
|
6978
|
-
|
|
6990
|
+
131072) {
|
|
6979
6991
|
toggle_class(ul, "dropdown-active",
|
|
6980
6992
|
/*_isMenuVisible*/
|
|
6981
|
-
ctx[
|
|
6993
|
+
ctx[17]);
|
|
6982
6994
|
}
|
|
6983
6995
|
},
|
|
6984
6996
|
|
|
@@ -6997,13 +7009,13 @@ function create_else_block$5(ctx) {
|
|
|
6997
7009
|
/*ul_binding*/
|
|
6998
7010
|
|
|
6999
7011
|
|
|
7000
|
-
ctx[
|
|
7012
|
+
ctx[34](null);
|
|
7001
7013
|
mounted = false;
|
|
7002
7014
|
dispose();
|
|
7003
7015
|
}
|
|
7004
7016
|
|
|
7005
7017
|
};
|
|
7006
|
-
} // (
|
|
7018
|
+
} // (251:2) {#if _native}
|
|
7007
7019
|
|
|
7008
7020
|
|
|
7009
7021
|
function create_if_block$f(ctx) {
|
|
@@ -7014,11 +7026,11 @@ function create_if_block$f(ctx) {
|
|
|
7014
7026
|
let dispose;
|
|
7015
7027
|
let each_value =
|
|
7016
7028
|
/*_options*/
|
|
7017
|
-
ctx[
|
|
7029
|
+
ctx[12];
|
|
7018
7030
|
let each_blocks = [];
|
|
7019
7031
|
|
|
7020
7032
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
7021
|
-
each_blocks[i] = create_each_block$
|
|
7033
|
+
each_blocks[i] = create_each_block$5(get_each_context$5(ctx, each_value, i));
|
|
7022
7034
|
}
|
|
7023
7035
|
|
|
7024
7036
|
return {
|
|
@@ -7032,7 +7044,7 @@ function create_if_block$f(ctx) {
|
|
|
7032
7044
|
|
|
7033
7045
|
select.disabled =
|
|
7034
7046
|
/*_disabled*/
|
|
7035
|
-
ctx[
|
|
7047
|
+
ctx[23];
|
|
7036
7048
|
attr(select, "aria-label", select_aria_label_value =
|
|
7037
7049
|
/*arialabel*/
|
|
7038
7050
|
ctx[1] ||
|
|
@@ -7040,7 +7052,7 @@ function create_if_block$f(ctx) {
|
|
|
7040
7052
|
ctx[0]);
|
|
7041
7053
|
toggle_class(select, "error",
|
|
7042
7054
|
/*_error*/
|
|
7043
|
-
ctx[
|
|
7055
|
+
ctx[24]);
|
|
7044
7056
|
},
|
|
7045
7057
|
|
|
7046
7058
|
m(target, anchor) {
|
|
@@ -7053,12 +7065,12 @@ function create_if_block$f(ctx) {
|
|
|
7053
7065
|
/*select_binding*/
|
|
7054
7066
|
|
|
7055
7067
|
|
|
7056
|
-
ctx[
|
|
7068
|
+
ctx[32](select);
|
|
7057
7069
|
|
|
7058
7070
|
if (!mounted) {
|
|
7059
7071
|
dispose = listen(select, "change",
|
|
7060
7072
|
/*onNativeSelect*/
|
|
7061
|
-
ctx[
|
|
7073
|
+
ctx[28]);
|
|
7062
7074
|
mounted = true;
|
|
7063
7075
|
}
|
|
7064
7076
|
},
|
|
@@ -7066,19 +7078,19 @@ function create_if_block$f(ctx) {
|
|
|
7066
7078
|
p(ctx, dirty) {
|
|
7067
7079
|
if (dirty[0] &
|
|
7068
7080
|
/*_options*/
|
|
7069
|
-
|
|
7081
|
+
4096) {
|
|
7070
7082
|
each_value =
|
|
7071
7083
|
/*_options*/
|
|
7072
|
-
ctx[
|
|
7084
|
+
ctx[12];
|
|
7073
7085
|
let i;
|
|
7074
7086
|
|
|
7075
7087
|
for (i = 0; i < each_value.length; i += 1) {
|
|
7076
|
-
const child_ctx = get_each_context$
|
|
7088
|
+
const child_ctx = get_each_context$5(ctx, each_value, i);
|
|
7077
7089
|
|
|
7078
7090
|
if (each_blocks[i]) {
|
|
7079
7091
|
each_blocks[i].p(child_ctx, dirty);
|
|
7080
7092
|
} else {
|
|
7081
|
-
each_blocks[i] = create_each_block$
|
|
7093
|
+
each_blocks[i] = create_each_block$5(child_ctx);
|
|
7082
7094
|
each_blocks[i].c();
|
|
7083
7095
|
each_blocks[i].m(select, null);
|
|
7084
7096
|
}
|
|
@@ -7093,10 +7105,10 @@ function create_if_block$f(ctx) {
|
|
|
7093
7105
|
|
|
7094
7106
|
if (dirty[0] &
|
|
7095
7107
|
/*_disabled*/
|
|
7096
|
-
|
|
7108
|
+
8388608) {
|
|
7097
7109
|
select.disabled =
|
|
7098
7110
|
/*_disabled*/
|
|
7099
|
-
ctx[
|
|
7111
|
+
ctx[23];
|
|
7100
7112
|
}
|
|
7101
7113
|
|
|
7102
7114
|
if (dirty[0] &
|
|
@@ -7111,10 +7123,10 @@ function create_if_block$f(ctx) {
|
|
|
7111
7123
|
|
|
7112
7124
|
if (dirty[0] &
|
|
7113
7125
|
/*_error*/
|
|
7114
|
-
|
|
7126
|
+
16777216) {
|
|
7115
7127
|
toggle_class(select, "error",
|
|
7116
7128
|
/*_error*/
|
|
7117
|
-
ctx[
|
|
7129
|
+
ctx[24]);
|
|
7118
7130
|
}
|
|
7119
7131
|
},
|
|
7120
7132
|
|
|
@@ -7123,18 +7135,19 @@ function create_if_block$f(ctx) {
|
|
|
7123
7135
|
destroy_each(each_blocks, detaching);
|
|
7124
7136
|
/*select_binding*/
|
|
7125
7137
|
|
|
7126
|
-
ctx[
|
|
7138
|
+
ctx[32](null);
|
|
7127
7139
|
mounted = false;
|
|
7128
7140
|
dispose();
|
|
7129
7141
|
}
|
|
7130
7142
|
|
|
7131
7143
|
};
|
|
7132
|
-
} // (
|
|
7144
|
+
} // (271:4) {#if _isMenuVisible}
|
|
7133
7145
|
|
|
7134
7146
|
|
|
7135
7147
|
function create_if_block_1$7(ctx) {
|
|
7136
7148
|
let div;
|
|
7137
7149
|
let div_data_testid_value;
|
|
7150
|
+
let noscroll_action;
|
|
7138
7151
|
let mounted;
|
|
7139
7152
|
let dispose;
|
|
7140
7153
|
return {
|
|
@@ -7150,9 +7163,13 @@ function create_if_block_1$7(ctx) {
|
|
|
7150
7163
|
insert(target, div, anchor);
|
|
7151
7164
|
|
|
7152
7165
|
if (!mounted) {
|
|
7153
|
-
dispose = listen(div, "click",
|
|
7166
|
+
dispose = [listen(div, "click",
|
|
7154
7167
|
/*closeMenu*/
|
|
7155
|
-
ctx[
|
|
7168
|
+
ctx[26]), action_destroyer(noscroll_action = noscroll.call(null, div, {
|
|
7169
|
+
enable:
|
|
7170
|
+
/*_isMenuVisible*/
|
|
7171
|
+
ctx[17]
|
|
7172
|
+
}))];
|
|
7156
7173
|
mounted = true;
|
|
7157
7174
|
}
|
|
7158
7175
|
},
|
|
@@ -7165,25 +7182,33 @@ function create_if_block_1$7(ctx) {
|
|
|
7165
7182
|
ctx[0]}-dropdown-background`)) {
|
|
7166
7183
|
attr(div, "data-testid", div_data_testid_value);
|
|
7167
7184
|
}
|
|
7185
|
+
|
|
7186
|
+
if (noscroll_action && is_function(noscroll_action.update) && dirty[0] &
|
|
7187
|
+
/*_isMenuVisible*/
|
|
7188
|
+
131072) noscroll_action.update.call(null, {
|
|
7189
|
+
enable:
|
|
7190
|
+
/*_isMenuVisible*/
|
|
7191
|
+
ctx[17]
|
|
7192
|
+
});
|
|
7168
7193
|
},
|
|
7169
7194
|
|
|
7170
7195
|
d(detaching) {
|
|
7171
7196
|
if (detaching) detach(div);
|
|
7172
7197
|
mounted = false;
|
|
7173
|
-
dispose
|
|
7198
|
+
run_all(dispose);
|
|
7174
7199
|
}
|
|
7175
7200
|
|
|
7176
7201
|
};
|
|
7177
|
-
} // (
|
|
7202
|
+
} // (319:6) {#each _options as option, index (index)}
|
|
7178
7203
|
|
|
7179
7204
|
|
|
7180
7205
|
function create_each_block_1(key_1, ctx) {
|
|
7181
7206
|
let li;
|
|
7182
7207
|
let t0_value = (
|
|
7183
7208
|
/*option*/
|
|
7184
|
-
ctx[
|
|
7209
|
+
ctx[50].label ||
|
|
7185
7210
|
/*option*/
|
|
7186
|
-
ctx[
|
|
7211
|
+
ctx[50].value) + "";
|
|
7187
7212
|
let t0;
|
|
7188
7213
|
let t1;
|
|
7189
7214
|
let li_id_value;
|
|
@@ -7199,9 +7224,9 @@ function create_each_block_1(key_1, ctx) {
|
|
|
7199
7224
|
function click_handler() {
|
|
7200
7225
|
return (
|
|
7201
7226
|
/*click_handler*/
|
|
7202
|
-
ctx[
|
|
7227
|
+
ctx[33](
|
|
7203
7228
|
/*option*/
|
|
7204
|
-
ctx[
|
|
7229
|
+
ctx[50])
|
|
7205
7230
|
);
|
|
7206
7231
|
}
|
|
7207
7232
|
|
|
@@ -7215,40 +7240,40 @@ function create_each_block_1(key_1, ctx) {
|
|
|
7215
7240
|
t1 = space();
|
|
7216
7241
|
attr(li, "id", li_id_value =
|
|
7217
7242
|
/*option*/
|
|
7218
|
-
ctx[
|
|
7243
|
+
ctx[50].label);
|
|
7219
7244
|
attr(li, "role", "option");
|
|
7220
7245
|
attr(li, "aria-label", li_aria_label_value =
|
|
7221
7246
|
/*option*/
|
|
7222
|
-
ctx[
|
|
7247
|
+
ctx[50].label ||
|
|
7223
7248
|
/*option*/
|
|
7224
|
-
ctx[
|
|
7249
|
+
ctx[50].value);
|
|
7225
7250
|
attr(li, "aria-selected", li_aria_selected_value =
|
|
7226
7251
|
/*_values*/
|
|
7227
|
-
ctx[
|
|
7252
|
+
ctx[15].includes(
|
|
7228
7253
|
/*option*/
|
|
7229
|
-
ctx[
|
|
7254
|
+
ctx[50].value) ? "true" : "false");
|
|
7230
7255
|
attr(li, "class", "dropdown-item");
|
|
7231
7256
|
attr(li, "data-testid", li_data_testid_value = `dropdown-item-${
|
|
7232
7257
|
/*option*/
|
|
7233
|
-
ctx[
|
|
7258
|
+
ctx[50].value}`);
|
|
7234
7259
|
attr(li, "data-index", li_data_index_value =
|
|
7235
7260
|
/*index*/
|
|
7236
|
-
ctx[
|
|
7261
|
+
ctx[54]);
|
|
7237
7262
|
attr(li, "data-value", li_data_value_value =
|
|
7238
7263
|
/*option*/
|
|
7239
|
-
ctx[
|
|
7264
|
+
ctx[50].value);
|
|
7240
7265
|
attr(li, "style", li_style_value = `display: ${"block"}`);
|
|
7241
7266
|
toggle_class(li, "dropdown-item--disabled", false);
|
|
7242
7267
|
toggle_class(li, "dropdown-item--tabbed",
|
|
7243
7268
|
/*index*/
|
|
7244
|
-
ctx[
|
|
7269
|
+
ctx[54] ===
|
|
7245
7270
|
/*_highlightedIndex*/
|
|
7246
|
-
ctx[
|
|
7271
|
+
ctx[18]);
|
|
7247
7272
|
toggle_class(li, "dropdown-item--selected",
|
|
7248
7273
|
/*_values*/
|
|
7249
|
-
ctx[
|
|
7274
|
+
ctx[15].includes(
|
|
7250
7275
|
/*option*/
|
|
7251
|
-
ctx[
|
|
7276
|
+
ctx[50].value));
|
|
7252
7277
|
this.first = li;
|
|
7253
7278
|
},
|
|
7254
7279
|
|
|
@@ -7267,82 +7292,82 @@ function create_each_block_1(key_1, ctx) {
|
|
|
7267
7292
|
ctx = new_ctx;
|
|
7268
7293
|
if (dirty[0] &
|
|
7269
7294
|
/*_options*/
|
|
7270
|
-
|
|
7295
|
+
4096 && t0_value !== (t0_value = (
|
|
7271
7296
|
/*option*/
|
|
7272
|
-
ctx[
|
|
7297
|
+
ctx[50].label ||
|
|
7273
7298
|
/*option*/
|
|
7274
|
-
ctx[
|
|
7299
|
+
ctx[50].value) + "")) set_data(t0, t0_value);
|
|
7275
7300
|
|
|
7276
7301
|
if (dirty[0] &
|
|
7277
7302
|
/*_options*/
|
|
7278
|
-
|
|
7303
|
+
4096 && li_id_value !== (li_id_value =
|
|
7279
7304
|
/*option*/
|
|
7280
|
-
ctx[
|
|
7305
|
+
ctx[50].label)) {
|
|
7281
7306
|
attr(li, "id", li_id_value);
|
|
7282
7307
|
}
|
|
7283
7308
|
|
|
7284
7309
|
if (dirty[0] &
|
|
7285
7310
|
/*_options*/
|
|
7286
|
-
|
|
7311
|
+
4096 && li_aria_label_value !== (li_aria_label_value =
|
|
7287
7312
|
/*option*/
|
|
7288
|
-
ctx[
|
|
7313
|
+
ctx[50].label ||
|
|
7289
7314
|
/*option*/
|
|
7290
|
-
ctx[
|
|
7315
|
+
ctx[50].value)) {
|
|
7291
7316
|
attr(li, "aria-label", li_aria_label_value);
|
|
7292
7317
|
}
|
|
7293
7318
|
|
|
7294
7319
|
if (dirty[0] &
|
|
7295
7320
|
/*_values, _options*/
|
|
7296
|
-
|
|
7321
|
+
36864 && li_aria_selected_value !== (li_aria_selected_value =
|
|
7297
7322
|
/*_values*/
|
|
7298
|
-
ctx[
|
|
7323
|
+
ctx[15].includes(
|
|
7299
7324
|
/*option*/
|
|
7300
|
-
ctx[
|
|
7325
|
+
ctx[50].value) ? "true" : "false")) {
|
|
7301
7326
|
attr(li, "aria-selected", li_aria_selected_value);
|
|
7302
7327
|
}
|
|
7303
7328
|
|
|
7304
7329
|
if (dirty[0] &
|
|
7305
7330
|
/*_options*/
|
|
7306
|
-
|
|
7331
|
+
4096 && li_data_testid_value !== (li_data_testid_value = `dropdown-item-${
|
|
7307
7332
|
/*option*/
|
|
7308
|
-
ctx[
|
|
7333
|
+
ctx[50].value}`)) {
|
|
7309
7334
|
attr(li, "data-testid", li_data_testid_value);
|
|
7310
7335
|
}
|
|
7311
7336
|
|
|
7312
7337
|
if (dirty[0] &
|
|
7313
7338
|
/*_options*/
|
|
7314
|
-
|
|
7339
|
+
4096 && li_data_index_value !== (li_data_index_value =
|
|
7315
7340
|
/*index*/
|
|
7316
|
-
ctx[
|
|
7341
|
+
ctx[54])) {
|
|
7317
7342
|
attr(li, "data-index", li_data_index_value);
|
|
7318
7343
|
}
|
|
7319
7344
|
|
|
7320
7345
|
if (dirty[0] &
|
|
7321
7346
|
/*_options*/
|
|
7322
|
-
|
|
7347
|
+
4096 && li_data_value_value !== (li_data_value_value =
|
|
7323
7348
|
/*option*/
|
|
7324
|
-
ctx[
|
|
7349
|
+
ctx[50].value)) {
|
|
7325
7350
|
attr(li, "data-value", li_data_value_value);
|
|
7326
7351
|
}
|
|
7327
7352
|
|
|
7328
7353
|
if (dirty[0] &
|
|
7329
7354
|
/*_options, _highlightedIndex*/
|
|
7330
|
-
|
|
7355
|
+
266240) {
|
|
7331
7356
|
toggle_class(li, "dropdown-item--tabbed",
|
|
7332
7357
|
/*index*/
|
|
7333
|
-
ctx[
|
|
7358
|
+
ctx[54] ===
|
|
7334
7359
|
/*_highlightedIndex*/
|
|
7335
|
-
ctx[
|
|
7360
|
+
ctx[18]);
|
|
7336
7361
|
}
|
|
7337
7362
|
|
|
7338
7363
|
if (dirty[0] &
|
|
7339
7364
|
/*_values, _options*/
|
|
7340
|
-
|
|
7365
|
+
36864) {
|
|
7341
7366
|
toggle_class(li, "dropdown-item--selected",
|
|
7342
7367
|
/*_values*/
|
|
7343
|
-
ctx[
|
|
7368
|
+
ctx[15].includes(
|
|
7344
7369
|
/*option*/
|
|
7345
|
-
ctx[
|
|
7370
|
+
ctx[50].value));
|
|
7346
7371
|
}
|
|
7347
7372
|
},
|
|
7348
7373
|
|
|
@@ -7353,14 +7378,14 @@ function create_each_block_1(key_1, ctx) {
|
|
|
7353
7378
|
}
|
|
7354
7379
|
|
|
7355
7380
|
};
|
|
7356
|
-
} // (
|
|
7381
|
+
} // (260:6) {#each _options as option}
|
|
7357
7382
|
|
|
7358
7383
|
|
|
7359
|
-
function create_each_block$
|
|
7384
|
+
function create_each_block$5(ctx) {
|
|
7360
7385
|
let option;
|
|
7361
7386
|
let t0_value =
|
|
7362
7387
|
/*option*/
|
|
7363
|
-
ctx[
|
|
7388
|
+
ctx[50].label + "";
|
|
7364
7389
|
let t0;
|
|
7365
7390
|
let t1;
|
|
7366
7391
|
let option_selected_value;
|
|
@@ -7373,14 +7398,14 @@ function create_each_block$4(ctx) {
|
|
|
7373
7398
|
t1 = space();
|
|
7374
7399
|
option.selected = option_selected_value =
|
|
7375
7400
|
/*option*/
|
|
7376
|
-
ctx[
|
|
7401
|
+
ctx[50].selected;
|
|
7377
7402
|
option.__value = option_value_value =
|
|
7378
7403
|
/*option*/
|
|
7379
|
-
ctx[
|
|
7404
|
+
ctx[50].value;
|
|
7380
7405
|
option.value = option.__value;
|
|
7381
7406
|
attr(option, "aria-label", option_aria_label_value =
|
|
7382
7407
|
/*option*/
|
|
7383
|
-
ctx[
|
|
7408
|
+
ctx[50].label);
|
|
7384
7409
|
},
|
|
7385
7410
|
|
|
7386
7411
|
m(target, anchor) {
|
|
@@ -7392,32 +7417,32 @@ function create_each_block$4(ctx) {
|
|
|
7392
7417
|
p(ctx, dirty) {
|
|
7393
7418
|
if (dirty[0] &
|
|
7394
7419
|
/*_options*/
|
|
7395
|
-
|
|
7420
|
+
4096 && t0_value !== (t0_value =
|
|
7396
7421
|
/*option*/
|
|
7397
|
-
ctx[
|
|
7422
|
+
ctx[50].label + "")) set_data(t0, t0_value);
|
|
7398
7423
|
|
|
7399
7424
|
if (dirty[0] &
|
|
7400
7425
|
/*_options*/
|
|
7401
|
-
|
|
7426
|
+
4096 && option_selected_value !== (option_selected_value =
|
|
7402
7427
|
/*option*/
|
|
7403
|
-
ctx[
|
|
7428
|
+
ctx[50].selected)) {
|
|
7404
7429
|
option.selected = option_selected_value;
|
|
7405
7430
|
}
|
|
7406
7431
|
|
|
7407
7432
|
if (dirty[0] &
|
|
7408
7433
|
/*_options*/
|
|
7409
|
-
|
|
7434
|
+
4096 && option_value_value !== (option_value_value =
|
|
7410
7435
|
/*option*/
|
|
7411
|
-
ctx[
|
|
7436
|
+
ctx[50].value)) {
|
|
7412
7437
|
option.__value = option_value_value;
|
|
7413
7438
|
option.value = option.__value;
|
|
7414
7439
|
}
|
|
7415
7440
|
|
|
7416
7441
|
if (dirty[0] &
|
|
7417
7442
|
/*_options*/
|
|
7418
|
-
|
|
7443
|
+
4096 && option_aria_label_value !== (option_aria_label_value =
|
|
7419
7444
|
/*option*/
|
|
7420
|
-
ctx[
|
|
7445
|
+
ctx[50].label)) {
|
|
7421
7446
|
attr(option, "aria-label", option_aria_label_value);
|
|
7422
7447
|
}
|
|
7423
7448
|
},
|
|
@@ -7437,7 +7462,7 @@ function create_fragment$v(ctx) {
|
|
|
7437
7462
|
function select_block_type(ctx, dirty) {
|
|
7438
7463
|
if (
|
|
7439
7464
|
/*_native*/
|
|
7440
|
-
ctx[
|
|
7465
|
+
ctx[14]) return create_if_block$f;
|
|
7441
7466
|
return create_else_block$5;
|
|
7442
7467
|
}
|
|
7443
7468
|
|
|
@@ -7466,11 +7491,11 @@ function create_fragment$v(ctx) {
|
|
|
7466
7491
|
/*width*/
|
|
7467
7492
|
ctx[5] ||
|
|
7468
7493
|
/*_computedWidth*/
|
|
7469
|
-
ctx[
|
|
7494
|
+
ctx[19]}
|
|
7470
7495
|
`);
|
|
7471
7496
|
toggle_class(div, "dropdown-native",
|
|
7472
7497
|
/*_native*/
|
|
7473
|
-
ctx[
|
|
7498
|
+
ctx[14]);
|
|
7474
7499
|
},
|
|
7475
7500
|
|
|
7476
7501
|
m(target, anchor) {
|
|
@@ -7478,7 +7503,7 @@ function create_fragment$v(ctx) {
|
|
|
7478
7503
|
if_block.m(div, null);
|
|
7479
7504
|
/*div_binding*/
|
|
7480
7505
|
|
|
7481
|
-
ctx[
|
|
7506
|
+
ctx[35](div);
|
|
7482
7507
|
},
|
|
7483
7508
|
|
|
7484
7509
|
p(ctx, dirty) {
|
|
@@ -7504,7 +7529,7 @@ function create_fragment$v(ctx) {
|
|
|
7504
7529
|
|
|
7505
7530
|
if (dirty[0] &
|
|
7506
7531
|
/*mt, mr, mb, ml, width, _computedWidth*/
|
|
7507
|
-
|
|
7532
|
+
528160 && div_style_value !== (div_style_value = `
|
|
7508
7533
|
${calculateMargin(
|
|
7509
7534
|
/*mt*/
|
|
7510
7535
|
ctx[8],
|
|
@@ -7518,17 +7543,17 @@ function create_fragment$v(ctx) {
|
|
|
7518
7543
|
/*width*/
|
|
7519
7544
|
ctx[5] ||
|
|
7520
7545
|
/*_computedWidth*/
|
|
7521
|
-
ctx[
|
|
7546
|
+
ctx[19]}
|
|
7522
7547
|
`)) {
|
|
7523
7548
|
attr(div, "style", div_style_value);
|
|
7524
7549
|
}
|
|
7525
7550
|
|
|
7526
7551
|
if (dirty[0] &
|
|
7527
7552
|
/*_native*/
|
|
7528
|
-
|
|
7553
|
+
16384) {
|
|
7529
7554
|
toggle_class(div, "dropdown-native",
|
|
7530
7555
|
/*_native*/
|
|
7531
|
-
ctx[
|
|
7556
|
+
ctx[14]);
|
|
7532
7557
|
}
|
|
7533
7558
|
},
|
|
7534
7559
|
|
|
@@ -7540,12 +7565,26 @@ function create_fragment$v(ctx) {
|
|
|
7540
7565
|
if_block.d();
|
|
7541
7566
|
/*div_binding*/
|
|
7542
7567
|
|
|
7543
|
-
ctx[
|
|
7568
|
+
ctx[35](null);
|
|
7544
7569
|
}
|
|
7545
7570
|
|
|
7546
7571
|
};
|
|
7547
7572
|
}
|
|
7548
7573
|
|
|
7574
|
+
function parseValues(selectedValue) {
|
|
7575
|
+
let rawValue;
|
|
7576
|
+
|
|
7577
|
+
try {
|
|
7578
|
+
rawValue = JSON.parse(selectedValue || "[]");
|
|
7579
|
+
} catch (e) {
|
|
7580
|
+
rawValue = [selectedValue];
|
|
7581
|
+
}
|
|
7582
|
+
|
|
7583
|
+
const rawValues = typeof rawValue === "object" ? rawValue : [rawValue]; // convert all values to strings to avoid later type comparison issues
|
|
7584
|
+
|
|
7585
|
+
return rawValues.map(val => `${val}`);
|
|
7586
|
+
}
|
|
7587
|
+
|
|
7549
7588
|
function instance$s($$self, $$props, $$invalidate) {
|
|
7550
7589
|
let _disabled;
|
|
7551
7590
|
|
|
@@ -7609,6 +7648,8 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
7609
7648
|
|
|
7610
7649
|
let _computedWidth;
|
|
7611
7650
|
|
|
7651
|
+
let _dropdownMenuPos = "auto";
|
|
7652
|
+
|
|
7612
7653
|
let _el;
|
|
7613
7654
|
|
|
7614
7655
|
let _menuEl;
|
|
@@ -7616,23 +7657,13 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
7616
7657
|
let _selectEl;
|
|
7617
7658
|
|
|
7618
7659
|
onMount(async () => {
|
|
7619
|
-
|
|
7620
|
-
$$invalidate(12, _values = parseValues());
|
|
7621
|
-
$$invalidate(13, _options = getOptions());
|
|
7622
|
-
|
|
7623
|
-
if (!_native) {
|
|
7624
|
-
$$invalidate(17, _computedWidth = getCustomDropdownWidth(_options));
|
|
7625
|
-
addKeyboardEventListeners();
|
|
7626
|
-
setHighlightedIndexToSelected();
|
|
7627
|
-
} // watch for DOM changes within the slot => dynamic binding
|
|
7628
|
-
|
|
7629
|
-
|
|
7660
|
+
// watch for DOM changes within the slot => dynamic binding
|
|
7630
7661
|
const slot = _el.querySelector("slot");
|
|
7631
7662
|
|
|
7632
7663
|
slot === null || slot === void 0 ? void 0 : slot.addEventListener("slotchange", _e => {
|
|
7633
|
-
$$invalidate(
|
|
7634
|
-
$$invalidate(
|
|
7635
|
-
$$invalidate(
|
|
7664
|
+
$$invalidate(16, _selectedLabel = "");
|
|
7665
|
+
$$invalidate(15, _values = parseValues(value));
|
|
7666
|
+
$$invalidate(12, _options = getOptions());
|
|
7636
7667
|
});
|
|
7637
7668
|
});
|
|
7638
7669
|
onDestroy(() => {
|
|
@@ -7665,8 +7696,8 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
7665
7696
|
const selected = _values.includes(value);
|
|
7666
7697
|
|
|
7667
7698
|
if (selected) {
|
|
7668
|
-
$$invalidate(
|
|
7669
|
-
$$invalidate(
|
|
7699
|
+
$$invalidate(16, _selectedLabel = label);
|
|
7700
|
+
$$invalidate(15, _values = [value]);
|
|
7670
7701
|
}
|
|
7671
7702
|
|
|
7672
7703
|
return {
|
|
@@ -7707,21 +7738,6 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
7707
7738
|
_el.removeEventListener("focus", onFocus, true);
|
|
7708
7739
|
|
|
7709
7740
|
_el.removeEventListener("blur", onBlur, true);
|
|
7710
|
-
} // parse and convert values to strings to avoid later type comparison issues
|
|
7711
|
-
|
|
7712
|
-
|
|
7713
|
-
function parseValues() {
|
|
7714
|
-
let rawValue;
|
|
7715
|
-
|
|
7716
|
-
try {
|
|
7717
|
-
rawValue = JSON.parse(value || "[]");
|
|
7718
|
-
} catch (e) {
|
|
7719
|
-
rawValue = [value];
|
|
7720
|
-
}
|
|
7721
|
-
|
|
7722
|
-
const rawValues = typeof rawValue === "object" ? rawValue : [rawValue]; // convert all values to strings to avoid later type comparison issues
|
|
7723
|
-
|
|
7724
|
-
return rawValues.map(val => `${val}`);
|
|
7725
7741
|
}
|
|
7726
7742
|
|
|
7727
7743
|
async function showMenu() {
|
|
@@ -7729,13 +7745,15 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
7729
7745
|
return;
|
|
7730
7746
|
}
|
|
7731
7747
|
|
|
7732
|
-
$$invalidate(
|
|
7748
|
+
$$invalidate(17, _isMenuVisible = true);
|
|
7733
7749
|
await tick(); // hide menu on blur
|
|
7734
7750
|
|
|
7735
7751
|
_menuEl.addEventListener("blur", closeMenu); // bind up/down arrows to navigate options
|
|
7736
7752
|
|
|
7737
7753
|
|
|
7738
7754
|
_menuEl.addEventListener("mouseover", onHighlight);
|
|
7755
|
+
|
|
7756
|
+
setDropdownMenuPosition();
|
|
7739
7757
|
}
|
|
7740
7758
|
|
|
7741
7759
|
function closeMenu() {
|
|
@@ -7744,11 +7762,22 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
7744
7762
|
_menuEl.removeEventListener("mouseover", onHighlight);
|
|
7745
7763
|
|
|
7746
7764
|
setHighlightedIndexToSelected();
|
|
7747
|
-
$$invalidate(
|
|
7765
|
+
$$invalidate(17, _isMenuVisible = false);
|
|
7766
|
+
$$invalidate(20, _dropdownMenuPos = "auto");
|
|
7767
|
+
}
|
|
7768
|
+
|
|
7769
|
+
function setDropdownMenuPosition() {
|
|
7770
|
+
const dropdownRect = _el.getBoundingClientRect();
|
|
7771
|
+
|
|
7772
|
+
const menuRect = _menuEl.getBoundingClientRect();
|
|
7773
|
+
|
|
7774
|
+
if (window.innerHeight - dropdownRect.top < dropdownRect.height + menuRect.height) {
|
|
7775
|
+
$$invalidate(20, _dropdownMenuPos = menuRect.top - dropdownRect.top + 'px');
|
|
7776
|
+
}
|
|
7748
7777
|
}
|
|
7749
7778
|
|
|
7750
7779
|
function setHighlightedIndexToSelected() {
|
|
7751
|
-
$$invalidate(
|
|
7780
|
+
$$invalidate(18, _highlightedIndex = _options.findIndex(option => _values.includes(option.value)));
|
|
7752
7781
|
} // Event handlers
|
|
7753
7782
|
|
|
7754
7783
|
/**
|
|
@@ -7758,7 +7787,7 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
7758
7787
|
|
|
7759
7788
|
function onSelect(value, label, close) {
|
|
7760
7789
|
if (_disabled) return;
|
|
7761
|
-
$$invalidate(
|
|
7790
|
+
$$invalidate(16, _selectedLabel = label);
|
|
7762
7791
|
let detail;
|
|
7763
7792
|
|
|
7764
7793
|
if (_multiselect) {
|
|
@@ -7769,7 +7798,7 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
7769
7798
|
values: _values
|
|
7770
7799
|
};
|
|
7771
7800
|
} else {
|
|
7772
|
-
$$invalidate(
|
|
7801
|
+
$$invalidate(15, _values = [value]);
|
|
7773
7802
|
detail = {
|
|
7774
7803
|
name,
|
|
7775
7804
|
value
|
|
@@ -7825,14 +7854,14 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
7825
7854
|
|
|
7826
7855
|
function _handleArrowDown() {
|
|
7827
7856
|
if (_highlightedIndex < _options.length - 1) {
|
|
7828
|
-
$$invalidate(
|
|
7857
|
+
$$invalidate(18, _highlightedIndex++, _highlightedIndex);
|
|
7829
7858
|
onSelect(_options[_highlightedIndex].value, _options[_highlightedIndex].label, false);
|
|
7830
7859
|
}
|
|
7831
7860
|
}
|
|
7832
7861
|
|
|
7833
7862
|
function _handleArrowUp() {
|
|
7834
7863
|
if (_highlightedIndex > 0) {
|
|
7835
|
-
$$invalidate(
|
|
7864
|
+
$$invalidate(18, _highlightedIndex--, _highlightedIndex);
|
|
7836
7865
|
onSelect(_options[_highlightedIndex].value, _options[_highlightedIndex].label, false);
|
|
7837
7866
|
}
|
|
7838
7867
|
} // add required bindings to component
|
|
@@ -7848,7 +7877,7 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
7848
7877
|
}
|
|
7849
7878
|
|
|
7850
7879
|
function onHighlight(e) {
|
|
7851
|
-
$$invalidate(
|
|
7880
|
+
$$invalidate(18, _highlightedIndex = Number(e.target.dataset.index));
|
|
7852
7881
|
}
|
|
7853
7882
|
|
|
7854
7883
|
function onNativeSelect(e) {
|
|
@@ -7860,8 +7889,8 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
7860
7889
|
function select_binding($$value) {
|
|
7861
7890
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
7862
7891
|
_selectEl = $$value;
|
|
7863
|
-
$$invalidate(
|
|
7864
|
-
$$invalidate(
|
|
7892
|
+
$$invalidate(22, _selectEl);
|
|
7893
|
+
((($$invalidate(12, _options), $$invalidate(13, _el)), $$invalidate(29, value)), $$invalidate(14, _native)), $$invalidate(31, native);
|
|
7865
7894
|
});
|
|
7866
7895
|
}
|
|
7867
7896
|
|
|
@@ -7870,29 +7899,29 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
7870
7899
|
function ul_binding($$value) {
|
|
7871
7900
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
7872
7901
|
_menuEl = $$value;
|
|
7873
|
-
$$invalidate(
|
|
7902
|
+
$$invalidate(21, _menuEl);
|
|
7874
7903
|
});
|
|
7875
7904
|
}
|
|
7876
7905
|
|
|
7877
7906
|
function div_binding($$value) {
|
|
7878
7907
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
7879
7908
|
_el = $$value;
|
|
7880
|
-
$$invalidate(
|
|
7909
|
+
$$invalidate(13, _el);
|
|
7881
7910
|
});
|
|
7882
7911
|
}
|
|
7883
7912
|
|
|
7884
7913
|
$$self.$$set = $$props => {
|
|
7885
7914
|
if ('name' in $$props) $$invalidate(0, name = $$props.name);
|
|
7886
7915
|
if ('arialabel' in $$props) $$invalidate(1, arialabel = $$props.arialabel);
|
|
7887
|
-
if ('value' in $$props) $$invalidate(
|
|
7916
|
+
if ('value' in $$props) $$invalidate(29, value = $$props.value);
|
|
7888
7917
|
if ('leadingicon' in $$props) $$invalidate(2, leadingicon = $$props.leadingicon);
|
|
7889
7918
|
if ('maxheight' in $$props) $$invalidate(3, maxheight = $$props.maxheight);
|
|
7890
7919
|
if ('placeholder' in $$props) $$invalidate(4, placeholder = $$props.placeholder);
|
|
7891
7920
|
if ('width' in $$props) $$invalidate(5, width = $$props.width);
|
|
7892
7921
|
if ('disabled' in $$props) $$invalidate(6, disabled = $$props.disabled);
|
|
7893
7922
|
if ('error' in $$props) $$invalidate(7, error = $$props.error);
|
|
7894
|
-
if ('multiselect' in $$props) $$invalidate(
|
|
7895
|
-
if ('native' in $$props) $$invalidate(
|
|
7923
|
+
if ('multiselect' in $$props) $$invalidate(30, multiselect = $$props.multiselect);
|
|
7924
|
+
if ('native' in $$props) $$invalidate(31, native = $$props.native);
|
|
7896
7925
|
if ('mt' in $$props) $$invalidate(8, mt = $$props.mt);
|
|
7897
7926
|
if ('mr' in $$props) $$invalidate(9, mr = $$props.mr);
|
|
7898
7927
|
if ('mb' in $$props) $$invalidate(10, mb = $$props.mb);
|
|
@@ -7903,35 +7932,52 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
7903
7932
|
if ($$self.$$.dirty[0] &
|
|
7904
7933
|
/*disabled*/
|
|
7905
7934
|
64) {
|
|
7906
|
-
$$invalidate(
|
|
7935
|
+
$$invalidate(23, _disabled = toBoolean(disabled));
|
|
7907
7936
|
}
|
|
7908
7937
|
|
|
7909
7938
|
if ($$self.$$.dirty[0] &
|
|
7910
7939
|
/*error*/
|
|
7911
7940
|
128) {
|
|
7912
|
-
$$invalidate(
|
|
7941
|
+
$$invalidate(24, _error = toBoolean(error));
|
|
7913
7942
|
}
|
|
7914
7943
|
|
|
7915
7944
|
if ($$self.$$.dirty[0] &
|
|
7916
7945
|
/*multiselect*/
|
|
7917
|
-
|
|
7946
|
+
1073741824) {
|
|
7918
7947
|
_multiselect = toBoolean(multiselect);
|
|
7919
7948
|
}
|
|
7920
7949
|
|
|
7921
|
-
if ($$self.$$.dirty[
|
|
7950
|
+
if ($$self.$$.dirty[1] &
|
|
7922
7951
|
/*native*/
|
|
7923
|
-
|
|
7924
|
-
$$invalidate(
|
|
7952
|
+
1) {
|
|
7953
|
+
$$invalidate(14, _native = toBoolean(native));
|
|
7954
|
+
}
|
|
7955
|
+
|
|
7956
|
+
if ($$self.$$.dirty[0] &
|
|
7957
|
+
/*_el, value, _native, _options*/
|
|
7958
|
+
536899584) {
|
|
7959
|
+
{
|
|
7960
|
+
if (_el) {
|
|
7961
|
+
$$invalidate(15, _values = parseValues(value));
|
|
7962
|
+
$$invalidate(12, _options = getOptions());
|
|
7963
|
+
|
|
7964
|
+
if (!_native) {
|
|
7965
|
+
$$invalidate(19, _computedWidth = getCustomDropdownWidth(_options));
|
|
7966
|
+
addKeyboardEventListeners();
|
|
7967
|
+
setHighlightedIndexToSelected();
|
|
7968
|
+
}
|
|
7969
|
+
}
|
|
7970
|
+
}
|
|
7925
7971
|
}
|
|
7926
7972
|
};
|
|
7927
7973
|
|
|
7928
|
-
return [name, arialabel, leadingicon, maxheight, placeholder, width, disabled, error, mt, mr, mb, ml,
|
|
7974
|
+
return [name, arialabel, leadingicon, maxheight, placeholder, width, disabled, error, mt, mr, mb, ml, _options, _el, _native, _values, _selectedLabel, _isMenuVisible, _highlightedIndex, _computedWidth, _dropdownMenuPos, _menuEl, _selectEl, _disabled, _error, showMenu, closeMenu, onSelect, onNativeSelect, value, multiselect, native, select_binding, click_handler, ul_binding, div_binding];
|
|
7929
7975
|
}
|
|
7930
7976
|
|
|
7931
7977
|
class Dropdown extends SvelteElement {
|
|
7932
7978
|
constructor(options) {
|
|
7933
7979
|
super();
|
|
7934
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.dropdown{position:relative;cursor:pointer;display:inline-block;width:
|
|
7980
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.dropdown{position:relative;cursor:pointer;display:inline-block;width:var(--width, 100%)}.dropdown-background{cursor:default;position:fixed;z-index:98;inset:0}.dropdown-list{position:absolute;left:0;right:0;padding:0;margin:0;margin-top:3px;list-style-type:none;background:var(--goa-color-greyscale-white);border-radius:var(--goa-border-radius-m);outline:none;box-shadow:var(--shadow-1);z-index:99;bottom:var(--bottom);scroll-behavior:smooth;scrollbar-width:thin;display:none}.dropdown-active{display:block}.dropdown-list::-webkit-scrollbar{width:6px}.dropdown-list::-webkit-scrollbar-track{background:#f1f1f1}.dropdown-list::-webkit-scrollbar-thumb{background:#888}.dropdown-list::-webkit-scrollbar-thumb:hover{background:#555}.dropdown-item{margin:0;padding:0.5rem;cursor:pointer;color:var(--goa-color-greyscale-black);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown-item--tabbed{background:var(--goa-color-greyscale-100);color:var(--goa-color-interactive-hover)}.dropdown-item--disabled{opacity:0.5;cursor:default}.dropdown-item--disabled:hover{cursor:default;color:var(--goa-color-greyscale-700)}.dropdown-item--selected{background:var(--goa-color-interactive-default);color:var(--goa-color-greyscale-white)}.dropdown-item--tabbed.dropdown-item--selected,.dropdown-item--selected:hover{background:var(--goa-color-interactive-hover);color:var(--goa-color-greyscale-white)}.dropdown-native{border:1px solid var(--goa-color-greyscale-700);border-radius:var(--goa-border-radius-m);background-color:var(--goa-color-greyscale-white);transition:box-shadow 0.1s ease-in}.dropdown-native:has(select:disabled){background-color:var(--goa-color-greyscale-100);border-color:var(--goa-color-greyscale-200);box-shadow:none;color:var(--goa-color-text-secondary);cursor:default}.dropdown-native:has(select.error){border:2px solid var(--goa-color-interactive-error)}.dropdown-native:hover{border-color:var(--goa-color-interactive-hover);box-shadow:0 0 0 var(--goa-border-width-m) var(--goa-color-interactive-hover)}select{border:none;background-color:transparent;color:var(--goa-color-text-default);font-size:var(--goa-font-size-4);appearance:none;padding:calc(var(--goa-space-xs) + 2px);padding-left:0.5rem;padding-right:3rem;outline:none;width:100%}.dropdown-native::after{content:"";position:absolute;right:0.6rem;top:0.6rem;pointer-events:none;width:1.5rem;height:1.5rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='48' d='M112 184l144 144 144-144' /%3E%3C/svg%3E");background-repeat:none}.dropdown-native:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive-focus)}</style>`;
|
|
7935
7981
|
init(this, {
|
|
7936
7982
|
target: this.shadowRoot,
|
|
7937
7983
|
props: attribute_to_object(this.attributes),
|
|
@@ -7939,15 +7985,15 @@ class Dropdown extends SvelteElement {
|
|
|
7939
7985
|
}, instance$s, create_fragment$v, safe_not_equal, {
|
|
7940
7986
|
name: 0,
|
|
7941
7987
|
arialabel: 1,
|
|
7942
|
-
value:
|
|
7988
|
+
value: 29,
|
|
7943
7989
|
leadingicon: 2,
|
|
7944
7990
|
maxheight: 3,
|
|
7945
7991
|
placeholder: 4,
|
|
7946
7992
|
width: 5,
|
|
7947
7993
|
disabled: 6,
|
|
7948
7994
|
error: 7,
|
|
7949
|
-
multiselect:
|
|
7950
|
-
native:
|
|
7995
|
+
multiselect: 30,
|
|
7996
|
+
native: 31,
|
|
7951
7997
|
mt: 8,
|
|
7952
7998
|
mr: 9,
|
|
7953
7999
|
mb: 10,
|
|
@@ -7993,7 +8039,7 @@ class Dropdown extends SvelteElement {
|
|
|
7993
8039
|
}
|
|
7994
8040
|
|
|
7995
8041
|
get value() {
|
|
7996
|
-
return this.$$.ctx[
|
|
8042
|
+
return this.$$.ctx[29];
|
|
7997
8043
|
}
|
|
7998
8044
|
|
|
7999
8045
|
set value(value) {
|
|
@@ -8070,7 +8116,7 @@ class Dropdown extends SvelteElement {
|
|
|
8070
8116
|
}
|
|
8071
8117
|
|
|
8072
8118
|
get multiselect() {
|
|
8073
|
-
return this.$$.ctx[
|
|
8119
|
+
return this.$$.ctx[30];
|
|
8074
8120
|
}
|
|
8075
8121
|
|
|
8076
8122
|
set multiselect(multiselect) {
|
|
@@ -8081,7 +8127,7 @@ class Dropdown extends SvelteElement {
|
|
|
8081
8127
|
}
|
|
8082
8128
|
|
|
8083
8129
|
get native() {
|
|
8084
|
-
return this.$$.ctx[
|
|
8130
|
+
return this.$$.ctx[31];
|
|
8085
8131
|
}
|
|
8086
8132
|
|
|
8087
8133
|
set native(native) {
|
|
@@ -8676,14 +8722,14 @@ class Footer extends SvelteElement {
|
|
|
8676
8722
|
customElements.define("goa-app-footer", Footer);
|
|
8677
8723
|
/* libs/web-components/src/components/footer-meta-section/FooterMetaSection.svelte generated by Svelte v3.51.0 */
|
|
8678
8724
|
|
|
8679
|
-
function get_each_context$
|
|
8725
|
+
function get_each_context$4(ctx, list, i) {
|
|
8680
8726
|
const child_ctx = ctx.slice();
|
|
8681
8727
|
child_ctx[3] = list[i];
|
|
8682
8728
|
return child_ctx;
|
|
8683
8729
|
} // (52:4) {#each children as child}
|
|
8684
8730
|
|
|
8685
8731
|
|
|
8686
|
-
function create_each_block$
|
|
8732
|
+
function create_each_block$4(ctx) {
|
|
8687
8733
|
let li;
|
|
8688
8734
|
let a;
|
|
8689
8735
|
let t_value =
|
|
@@ -8741,7 +8787,7 @@ function create_fragment$r(ctx) {
|
|
|
8741
8787
|
let each_blocks = [];
|
|
8742
8788
|
|
|
8743
8789
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
8744
|
-
each_blocks[i] = create_each_block$
|
|
8790
|
+
each_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));
|
|
8745
8791
|
}
|
|
8746
8792
|
|
|
8747
8793
|
return {
|
|
@@ -8785,12 +8831,12 @@ function create_fragment$r(ctx) {
|
|
|
8785
8831
|
let i;
|
|
8786
8832
|
|
|
8787
8833
|
for (i = 0; i < each_value.length; i += 1) {
|
|
8788
|
-
const child_ctx = get_each_context$
|
|
8834
|
+
const child_ctx = get_each_context$4(ctx, each_value, i);
|
|
8789
8835
|
|
|
8790
8836
|
if (each_blocks[i]) {
|
|
8791
8837
|
each_blocks[i].p(child_ctx, dirty);
|
|
8792
8838
|
} else {
|
|
8793
|
-
each_blocks[i] = create_each_block$
|
|
8839
|
+
each_blocks[i] = create_each_block$4(child_ctx);
|
|
8794
8840
|
each_blocks[i].c();
|
|
8795
8841
|
each_blocks[i].m(ul, null);
|
|
8796
8842
|
}
|
|
@@ -8867,7 +8913,7 @@ class FooterMetaSection extends SvelteElement {
|
|
|
8867
8913
|
customElements.define("goa-app-footer-meta-section", FooterMetaSection);
|
|
8868
8914
|
/* libs/web-components/src/components/footer-nav-section/FooterNavSection.svelte generated by Svelte v3.51.0 */
|
|
8869
8915
|
|
|
8870
|
-
function get_each_context$
|
|
8916
|
+
function get_each_context$3(ctx, list, i) {
|
|
8871
8917
|
const child_ctx = ctx.slice();
|
|
8872
8918
|
child_ctx[5] = list[i];
|
|
8873
8919
|
return child_ctx;
|
|
@@ -8916,7 +8962,7 @@ function create_if_block$d(ctx) {
|
|
|
8916
8962
|
} // (49:4) {#each children as child}
|
|
8917
8963
|
|
|
8918
8964
|
|
|
8919
|
-
function create_each_block$
|
|
8965
|
+
function create_each_block$3(ctx) {
|
|
8920
8966
|
let li;
|
|
8921
8967
|
let a;
|
|
8922
8968
|
let t_value =
|
|
@@ -8979,7 +9025,7 @@ function create_fragment$q(ctx) {
|
|
|
8979
9025
|
let each_blocks = [];
|
|
8980
9026
|
|
|
8981
9027
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
8982
|
-
each_blocks[i] = create_each_block$
|
|
9028
|
+
each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
|
|
8983
9029
|
}
|
|
8984
9030
|
|
|
8985
9031
|
return {
|
|
@@ -9057,12 +9103,12 @@ function create_fragment$q(ctx) {
|
|
|
9057
9103
|
let i;
|
|
9058
9104
|
|
|
9059
9105
|
for (i = 0; i < each_value.length; i += 1) {
|
|
9060
|
-
const child_ctx = get_each_context$
|
|
9106
|
+
const child_ctx = get_each_context$3(ctx, each_value, i);
|
|
9061
9107
|
|
|
9062
9108
|
if (each_blocks[i]) {
|
|
9063
9109
|
each_blocks[i].p(child_ctx, dirty);
|
|
9064
9110
|
} else {
|
|
9065
|
-
each_blocks[i] = create_each_block$
|
|
9111
|
+
each_blocks[i] = create_each_block$3(child_ctx);
|
|
9066
9112
|
each_blocks[i].c();
|
|
9067
9113
|
each_blocks[i].m(ul, null);
|
|
9068
9114
|
}
|
|
@@ -10277,7 +10323,7 @@ function instance$k($$self, $$props, $$invalidate) {
|
|
|
10277
10323
|
|
|
10278
10324
|
let _paddingSize;
|
|
10279
10325
|
|
|
10280
|
-
const [Variants, validateVariant] = typeValidator("Icon Button Variant", ["color", "nocolor", "dark"], true);
|
|
10326
|
+
const [Variants, validateVariant] = typeValidator("Icon Button Variant", ["color", "nocolor", "dark", "destructive"], true);
|
|
10281
10327
|
let {
|
|
10282
10328
|
icon
|
|
10283
10329
|
} = $$props;
|
|
@@ -10370,7 +10416,7 @@ function instance$k($$self, $$props, $$invalidate) {
|
|
|
10370
10416
|
class IconButton extends SvelteElement {
|
|
10371
10417
|
constructor(options) {
|
|
10372
10418
|
super();
|
|
10373
|
-
this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center;box-sizing:border-box;font-family:var(--goa-font-family-sans)}button,button *{box-sizing:border-box}button{display:inline-flex;align-items:center;box-sizing:border-box;justify-content:center;background:transparent;cursor:pointer;border:none;border-radius:0.5rem;padding:var(--pading-size)}.color,.dark{color:var(--goa-color-interactive-default);fill:var(--goa-color-interactive-default);cursor:pointer;transition:background-color 100ms ease-in, transform 100ms ease-in}.dark:not(.inverted){color:unset}button:hover{background-color:var(--goa-color-greyscale-100);border-color:var(--goa-color-greyscale-100);color:var(--goa-color-interactive-hover);outline:none}button:focus,button:active{background-color:var(--goa-color-greyscale-100);border-color:var(--goa-color-interactive-focus);color:var(--goa-color-interactive-focus);box-shadow:0 0 0 3px var(--goa-color-interactive-focus);outline:none}.color.inverted:hover{background-color:var(--goa-color-interactive-hover)}button:disabled{pointer-events:none;opacity:0.5;transform:none;cursor:default}button:disabled:hover{background-color:transparent}button.dark:hover{background-color:rgba(0, 0, 0, 0.3)}button.dark:focus,button.dark:active{background-color:rgba(0, 0, 0, 0.3);box-shadow:0 0 0 3px var(--goa-color-greyscale-white)}</style>`;
|
|
10419
|
+
this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center;box-sizing:border-box;font-family:var(--goa-font-family-sans)}button,button *{box-sizing:border-box}button{display:inline-flex;align-items:center;box-sizing:border-box;justify-content:center;background:transparent;cursor:pointer;border:none;border-radius:0.5rem;padding:var(--pading-size)}.color,.dark{color:var(--goa-color-interactive-default);fill:var(--goa-color-interactive-default);cursor:pointer;transition:background-color 100ms ease-in, transform 100ms ease-in}.dark:not(.inverted){color:unset}button:hover:not(.destructive){background-color:var(--goa-color-greyscale-100);border-color:var(--goa-color-greyscale-100);color:var(--goa-color-interactive-hover);outline:none}button:focus:not(.destructive),button:active:not(.destructive){background-color:var(--goa-color-greyscale-100);border-color:var(--goa-color-interactive-focus);color:var(--goa-color-interactive-focus);box-shadow:0 0 0 3px var(--goa-color-interactive-focus);outline:none}.color.inverted:hover{background-color:var(--goa-color-interactive-hover)}.destructive{color:var(--goa-color-emergency-dark);fill:var(--goa-color-emergency-dark)}.destructive:hover{background-color:var(--goa-color-emergency-light);border-color:var(--goa-color-emergency-light);outline:none}.destructive:focus,.destructive:active{background-color:var(--goa-color-emergency-light);border-color:var(--goa-color-interactive-focus);box-shadow:0 0 0 3px var(--goa-color-interactive-focus);outline:none}button:disabled{pointer-events:none;opacity:0.5;transform:none;cursor:default}button:disabled:hover{background-color:transparent}button.dark:hover{background-color:rgba(0, 0, 0, 0.3)}button.dark:focus,button.dark:active{background-color:rgba(0, 0, 0, 0.3);box-shadow:0 0 0 3px var(--goa-color-greyscale-white)}</style>`;
|
|
10374
10420
|
init(this, {
|
|
10375
10421
|
target: this.shadowRoot,
|
|
10376
10422
|
props: attribute_to_object(this.attributes),
|
|
@@ -13845,17 +13891,36 @@ class PageBlock extends SvelteElement {
|
|
|
13845
13891
|
customElements.define("goa-page-block", PageBlock);
|
|
13846
13892
|
/* libs/web-components/src/components/pagination/Pagination.svelte generated by Svelte v3.51.0 */
|
|
13847
13893
|
|
|
13894
|
+
function get_each_context$2(ctx, list, i) {
|
|
13895
|
+
const child_ctx = ctx.slice();
|
|
13896
|
+
child_ctx[18] = list[i];
|
|
13897
|
+
child_ctx[20] = i;
|
|
13898
|
+
return child_ctx;
|
|
13899
|
+
} // (66:4) {#if variant === "all"}
|
|
13900
|
+
|
|
13901
|
+
|
|
13848
13902
|
function create_if_block$6(ctx) {
|
|
13849
13903
|
let goa_block;
|
|
13850
13904
|
let span0;
|
|
13851
13905
|
let t1;
|
|
13852
13906
|
let input;
|
|
13853
13907
|
let t2;
|
|
13854
|
-
let
|
|
13908
|
+
let goa_dropdown;
|
|
13855
13909
|
let t3;
|
|
13856
13910
|
let span1;
|
|
13857
13911
|
let t4;
|
|
13858
13912
|
let t5;
|
|
13913
|
+
let each_value = {
|
|
13914
|
+
length:
|
|
13915
|
+
/*_pageCount*/
|
|
13916
|
+
ctx[8]
|
|
13917
|
+
};
|
|
13918
|
+
let each_blocks = [];
|
|
13919
|
+
|
|
13920
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
13921
|
+
each_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));
|
|
13922
|
+
}
|
|
13923
|
+
|
|
13859
13924
|
return {
|
|
13860
13925
|
c() {
|
|
13861
13926
|
goa_block = element("goa-block");
|
|
@@ -13864,7 +13929,12 @@ function create_if_block$6(ctx) {
|
|
|
13864
13929
|
t1 = space();
|
|
13865
13930
|
input = element("input");
|
|
13866
13931
|
t2 = space();
|
|
13867
|
-
|
|
13932
|
+
goa_dropdown = element("goa-dropdown");
|
|
13933
|
+
|
|
13934
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
13935
|
+
each_blocks[i].c();
|
|
13936
|
+
}
|
|
13937
|
+
|
|
13868
13938
|
t3 = space();
|
|
13869
13939
|
span1 = element("span");
|
|
13870
13940
|
t4 = text("of ");
|
|
@@ -13872,16 +13942,10 @@ function create_if_block$6(ctx) {
|
|
|
13872
13942
|
/*_pageCount*/
|
|
13873
13943
|
ctx[8]);
|
|
13874
13944
|
attr(input, "type", "hidden");
|
|
13875
|
-
set_custom_element_data(
|
|
13876
|
-
set_custom_element_data(goa_input, "value",
|
|
13945
|
+
set_custom_element_data(goa_dropdown, "value",
|
|
13877
13946
|
/*pagenumber*/
|
|
13878
13947
|
ctx[0]);
|
|
13879
|
-
set_custom_element_data(
|
|
13880
|
-
set_custom_element_data(goa_input, "debounce", "500");
|
|
13881
|
-
set_custom_element_data(goa_input, "min", "1");
|
|
13882
|
-
set_custom_element_data(goa_input, "max",
|
|
13883
|
-
/*_pageCount*/
|
|
13884
|
-
ctx[8]);
|
|
13948
|
+
set_custom_element_data(goa_dropdown, "width", "70px");
|
|
13885
13949
|
set_custom_element_data(goa_block, "data-testid", "page-selector");
|
|
13886
13950
|
set_custom_element_data(goa_block, "alignment", "center");
|
|
13887
13951
|
set_custom_element_data(goa_block, "gap", "s");
|
|
@@ -13896,10 +13960,15 @@ function create_if_block$6(ctx) {
|
|
|
13896
13960
|
|
|
13897
13961
|
ctx[12](input);
|
|
13898
13962
|
append(goa_block, t2);
|
|
13899
|
-
append(goa_block,
|
|
13900
|
-
|
|
13963
|
+
append(goa_block, goa_dropdown);
|
|
13964
|
+
|
|
13965
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
13966
|
+
each_blocks[i].m(goa_dropdown, null);
|
|
13967
|
+
}
|
|
13968
|
+
/*goa_dropdown_binding*/
|
|
13969
|
+
|
|
13901
13970
|
|
|
13902
|
-
ctx[13](
|
|
13971
|
+
ctx[13](goa_dropdown);
|
|
13903
13972
|
append(goa_block, t3);
|
|
13904
13973
|
append(goa_block, span1);
|
|
13905
13974
|
append(span1, t4);
|
|
@@ -13907,22 +13976,43 @@ function create_if_block$6(ctx) {
|
|
|
13907
13976
|
},
|
|
13908
13977
|
|
|
13909
13978
|
p(ctx, dirty) {
|
|
13979
|
+
if (dirty &
|
|
13980
|
+
/*_pageCount*/
|
|
13981
|
+
256) {
|
|
13982
|
+
each_value = {
|
|
13983
|
+
length:
|
|
13984
|
+
/*_pageCount*/
|
|
13985
|
+
ctx[8]
|
|
13986
|
+
};
|
|
13987
|
+
let i;
|
|
13988
|
+
|
|
13989
|
+
for (i = 0; i < each_value.length; i += 1) {
|
|
13990
|
+
const child_ctx = get_each_context$2(ctx, each_value, i);
|
|
13991
|
+
|
|
13992
|
+
if (each_blocks[i]) {
|
|
13993
|
+
each_blocks[i].p(child_ctx, dirty);
|
|
13994
|
+
} else {
|
|
13995
|
+
each_blocks[i] = create_each_block$2(child_ctx);
|
|
13996
|
+
each_blocks[i].c();
|
|
13997
|
+
each_blocks[i].m(goa_dropdown, null);
|
|
13998
|
+
}
|
|
13999
|
+
}
|
|
14000
|
+
|
|
14001
|
+
for (; i < each_blocks.length; i += 1) {
|
|
14002
|
+
each_blocks[i].d(1);
|
|
14003
|
+
}
|
|
14004
|
+
|
|
14005
|
+
each_blocks.length = each_value.length;
|
|
14006
|
+
}
|
|
14007
|
+
|
|
13910
14008
|
if (dirty &
|
|
13911
14009
|
/*pagenumber*/
|
|
13912
14010
|
1) {
|
|
13913
|
-
set_custom_element_data(
|
|
14011
|
+
set_custom_element_data(goa_dropdown, "value",
|
|
13914
14012
|
/*pagenumber*/
|
|
13915
14013
|
ctx[0]);
|
|
13916
14014
|
}
|
|
13917
14015
|
|
|
13918
|
-
if (dirty &
|
|
13919
|
-
/*_pageCount*/
|
|
13920
|
-
256) {
|
|
13921
|
-
set_custom_element_data(goa_input, "max",
|
|
13922
|
-
/*_pageCount*/
|
|
13923
|
-
ctx[8]);
|
|
13924
|
-
}
|
|
13925
|
-
|
|
13926
14016
|
if (dirty &
|
|
13927
14017
|
/*_pageCount*/
|
|
13928
14018
|
256) set_data(t5,
|
|
@@ -13935,11 +14025,39 @@ function create_if_block$6(ctx) {
|
|
|
13935
14025
|
/*input_binding*/
|
|
13936
14026
|
|
|
13937
14027
|
ctx[12](null);
|
|
13938
|
-
|
|
14028
|
+
destroy_each(each_blocks, detaching);
|
|
14029
|
+
/*goa_dropdown_binding*/
|
|
13939
14030
|
|
|
13940
14031
|
ctx[13](null);
|
|
13941
14032
|
}
|
|
13942
14033
|
|
|
14034
|
+
};
|
|
14035
|
+
} // (71:10) {#each {length: _pageCount} as _, i}
|
|
14036
|
+
|
|
14037
|
+
|
|
14038
|
+
function create_each_block$2(ctx) {
|
|
14039
|
+
let goa_dropdown_item;
|
|
14040
|
+
return {
|
|
14041
|
+
c() {
|
|
14042
|
+
goa_dropdown_item = element("goa-dropdown-item");
|
|
14043
|
+
set_custom_element_data(goa_dropdown_item, "value",
|
|
14044
|
+
/*i*/
|
|
14045
|
+
ctx[20] + 1);
|
|
14046
|
+
set_custom_element_data(goa_dropdown_item, "label",
|
|
14047
|
+
/*i*/
|
|
14048
|
+
ctx[20] + 1);
|
|
14049
|
+
},
|
|
14050
|
+
|
|
14051
|
+
m(target, anchor) {
|
|
14052
|
+
insert(target, goa_dropdown_item, anchor);
|
|
14053
|
+
},
|
|
14054
|
+
|
|
14055
|
+
p: noop,
|
|
14056
|
+
|
|
14057
|
+
d(detaching) {
|
|
14058
|
+
if (detaching) detach(goa_dropdown_item);
|
|
14059
|
+
}
|
|
14060
|
+
|
|
13943
14061
|
};
|
|
13944
14062
|
}
|
|
13945
14063
|
|
|
@@ -14135,7 +14253,7 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
14135
14253
|
ml = null
|
|
14136
14254
|
} = $$props; // private
|
|
14137
14255
|
|
|
14138
|
-
let
|
|
14256
|
+
let pageDropdownEl = null;
|
|
14139
14257
|
let hiddenEl = null; // needed to allow the inputEl's event to be cancelled
|
|
14140
14258
|
// hooks
|
|
14141
14259
|
|
|
@@ -14145,17 +14263,11 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
14145
14263
|
itemcount,
|
|
14146
14264
|
pagenumber
|
|
14147
14265
|
});
|
|
14148
|
-
validateVariant(variant); // prevent event propagation
|
|
14149
|
-
// (input[type=number] returns blank for non-numeric numbers)
|
|
14266
|
+
validateVariant(variant); // prevent event propagation
|
|
14150
14267
|
|
|
14151
|
-
|
|
14268
|
+
pageDropdownEl && pageDropdownEl.addEventListener("_change", e => {
|
|
14152
14269
|
const page = Number.parseInt(e.detail.value);
|
|
14153
14270
|
e.stopPropagation();
|
|
14154
|
-
|
|
14155
|
-
if (isNaN(page)) {
|
|
14156
|
-
return;
|
|
14157
|
-
}
|
|
14158
|
-
|
|
14159
14271
|
hiddenEl.dispatchEvent(new CustomEvent("_change", {
|
|
14160
14272
|
composed: true,
|
|
14161
14273
|
bubbles: true,
|
|
@@ -14189,10 +14301,10 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
14189
14301
|
});
|
|
14190
14302
|
}
|
|
14191
14303
|
|
|
14192
|
-
function
|
|
14304
|
+
function goa_dropdown_binding($$value) {
|
|
14193
14305
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
14194
|
-
|
|
14195
|
-
$$invalidate(6,
|
|
14306
|
+
pageDropdownEl = $$value;
|
|
14307
|
+
$$invalidate(6, pageDropdownEl);
|
|
14196
14308
|
});
|
|
14197
14309
|
}
|
|
14198
14310
|
|
|
@@ -14220,7 +14332,7 @@ function instance$d($$self, $$props, $$invalidate) {
|
|
|
14220
14332
|
}
|
|
14221
14333
|
};
|
|
14222
14334
|
|
|
14223
|
-
return [pagenumber, variant, mt, mr, mb, ml,
|
|
14335
|
+
return [pagenumber, variant, mt, mr, mb, ml, pageDropdownEl, hiddenEl, _pageCount, goto, itemcount, perpagecount, input_binding, goa_dropdown_binding, click_handler, click_handler_1];
|
|
14224
14336
|
}
|
|
14225
14337
|
|
|
14226
14338
|
class Pagination extends SvelteElement {
|
|
@@ -17292,7 +17404,7 @@ function instance$6($$self, $$props, $$invalidate) {
|
|
|
17292
17404
|
|
|
17293
17405
|
onMount(() => {
|
|
17294
17406
|
validateVariant(variant);
|
|
17295
|
-
attachSortEventHandling
|
|
17407
|
+
setTimeout(attachSortEventHandling, 0);
|
|
17296
17408
|
|
|
17297
17409
|
const slot = _rootEl.querySelector("slot");
|
|
17298
17410
|
|
|
@@ -19678,11 +19790,11 @@ const GoAAccordion = ({
|
|
|
19678
19790
|
mb: mb,
|
|
19679
19791
|
ml: ml
|
|
19680
19792
|
}, {
|
|
19681
|
-
children: [
|
|
19793
|
+
children: [headingContent && jsx("div", Object.assign({
|
|
19682
19794
|
slot: "headingcontent"
|
|
19683
19795
|
}, {
|
|
19684
19796
|
children: headingContent
|
|
19685
|
-
}), void 0)]
|
|
19797
|
+
}), void 0), children]
|
|
19686
19798
|
}), void 0);
|
|
19687
19799
|
};
|
|
19688
19800
|
|
|
@@ -20104,6 +20216,7 @@ const GoACircularProgress = ({
|
|
|
20104
20216
|
|
|
20105
20217
|
const GoAContainer = ({
|
|
20106
20218
|
accent,
|
|
20219
|
+
heading,
|
|
20107
20220
|
title,
|
|
20108
20221
|
padding,
|
|
20109
20222
|
children,
|
|
@@ -20115,6 +20228,7 @@ const GoAContainer = ({
|
|
|
20115
20228
|
ml,
|
|
20116
20229
|
testId
|
|
20117
20230
|
}) => {
|
|
20231
|
+
const headingContent = heading || title;
|
|
20118
20232
|
return jsxs("goa-container", Object.assign({
|
|
20119
20233
|
type: type,
|
|
20120
20234
|
padding: padding,
|
|
@@ -20125,10 +20239,10 @@ const GoAContainer = ({
|
|
|
20125
20239
|
ml: ml,
|
|
20126
20240
|
"data-testid": testId
|
|
20127
20241
|
}, {
|
|
20128
|
-
children: [
|
|
20242
|
+
children: [headingContent && jsx("div", Object.assign({
|
|
20129
20243
|
slot: "title"
|
|
20130
20244
|
}, {
|
|
20131
|
-
children:
|
|
20245
|
+
children: headingContent
|
|
20132
20246
|
}), void 0), children, actions && jsx("div", Object.assign({
|
|
20133
20247
|
slot: "actions"
|
|
20134
20248
|
}, {
|