@abgov/web-components 1.0.0-alpha.166 → 1.0.0-alpha.168
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 +123 -119
- package/web-components.umd.js +34 -34
package/package.json
CHANGED
package/web-components.es.js
CHANGED
|
@@ -1203,7 +1203,7 @@ class Accordion extends SvelteElement {
|
|
|
1203
1203
|
super();
|
|
1204
1204
|
|
|
1205
1205
|
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
|
|
1206
|
-
}.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>`;
|
|
1206
|
+
}.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>`;
|
|
1207
1207
|
|
|
1208
1208
|
init(
|
|
1209
1209
|
this,
|
|
@@ -5038,7 +5038,7 @@ function instance$v($$self, $$props, $$invalidate) {
|
|
|
5038
5038
|
class Container extends SvelteElement {
|
|
5039
5039
|
constructor(options) {
|
|
5040
5040
|
super();
|
|
5041
|
-
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>`;
|
|
5041
|
+
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>`;
|
|
5042
5042
|
|
|
5043
5043
|
init(
|
|
5044
5044
|
this,
|
|
@@ -5266,7 +5266,7 @@ function instance$u($$self, $$props, $$invalidate) {
|
|
|
5266
5266
|
class Details extends SvelteElement {
|
|
5267
5267
|
constructor(options) {
|
|
5268
5268
|
super();
|
|
5269
|
-
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>`;
|
|
5269
|
+
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>`;
|
|
5270
5270
|
|
|
5271
5271
|
init(
|
|
5272
5272
|
this,
|
|
@@ -5484,18 +5484,18 @@ customElements.define("goa-divider", Divider);
|
|
|
5484
5484
|
|
|
5485
5485
|
function get_each_context_1(ctx, list, i) {
|
|
5486
5486
|
const child_ctx = ctx.slice();
|
|
5487
|
-
child_ctx[
|
|
5488
|
-
child_ctx[
|
|
5487
|
+
child_ctx[48] = list[i];
|
|
5488
|
+
child_ctx[52] = i;
|
|
5489
5489
|
return child_ctx;
|
|
5490
5490
|
}
|
|
5491
5491
|
|
|
5492
5492
|
function get_each_context$4(ctx, list, i) {
|
|
5493
5493
|
const child_ctx = ctx.slice();
|
|
5494
|
-
child_ctx[
|
|
5494
|
+
child_ctx[48] = list[i];
|
|
5495
5495
|
return child_ctx;
|
|
5496
5496
|
}
|
|
5497
5497
|
|
|
5498
|
-
// (
|
|
5498
|
+
// (259:2) {:else}
|
|
5499
5499
|
function create_else_block$5(ctx) {
|
|
5500
5500
|
let t0;
|
|
5501
5501
|
let goa_input;
|
|
@@ -5510,9 +5510,9 @@ function create_else_block$5(ctx) {
|
|
|
5510
5510
|
let ul_style_value;
|
|
5511
5511
|
let mounted;
|
|
5512
5512
|
let dispose;
|
|
5513
|
-
let if_block = /*_isMenuVisible*/ ctx[
|
|
5514
|
-
let each_value_1 = /*_options*/ ctx[
|
|
5515
|
-
const get_key = ctx => /*index*/ ctx[
|
|
5513
|
+
let if_block = /*_isMenuVisible*/ ctx[17] && create_if_block_1$7(ctx);
|
|
5514
|
+
let each_value_1 = /*_options*/ ctx[12];
|
|
5515
|
+
const get_key = ctx => /*index*/ ctx[52];
|
|
5516
5516
|
|
|
5517
5517
|
for (let i = 0; i < each_value_1.length; i += 1) {
|
|
5518
5518
|
let child_ctx = get_each_context_1(ctx, each_value_1, i);
|
|
@@ -5539,24 +5539,24 @@ function create_else_block$5(ctx) {
|
|
|
5539
5539
|
set_custom_element_data(goa_input, "leadingicon", /*leadingicon*/ ctx[2]);
|
|
5540
5540
|
set_custom_element_data(goa_input, "placeholder", /*placeholder*/ ctx[4]);
|
|
5541
5541
|
set_custom_element_data(goa_input, "aria-controls", "menu");
|
|
5542
|
-
set_custom_element_data(goa_input, "aria-expanded", /*_isMenuVisible*/ ctx[
|
|
5542
|
+
set_custom_element_data(goa_input, "aria-expanded", /*_isMenuVisible*/ ctx[17]);
|
|
5543
5543
|
set_custom_element_data(goa_input, "arialabel", goa_input_arialabel_value = /*arialabel*/ ctx[1] || /*name*/ ctx[0]);
|
|
5544
5544
|
set_custom_element_data(goa_input, "data-testid", goa_input_data_testid_value = `${/*name*/ ctx[0]}-dropdown-input`);
|
|
5545
5545
|
set_custom_element_data(goa_input, "readonly", "");
|
|
5546
5546
|
set_custom_element_data(goa_input, "role", "combobox");
|
|
5547
5547
|
set_custom_element_data(goa_input, "trailingicon", "chevron-down");
|
|
5548
5548
|
set_custom_element_data(goa_input, "type", "text");
|
|
5549
|
-
set_custom_element_data(goa_input, "value", /*_selectedLabel*/ ctx[
|
|
5549
|
+
set_custom_element_data(goa_input, "value", /*_selectedLabel*/ ctx[16]);
|
|
5550
5550
|
set_custom_element_data(goa_input, "width", "100%");
|
|
5551
5551
|
set_custom_element_data(goa_input, "name", /*name*/ ctx[0]);
|
|
5552
5552
|
attr(ul, "id", "menu");
|
|
5553
5553
|
attr(ul, "role", "listbox");
|
|
5554
|
-
attr(ul, "aria-activedescendant", /*_selectedLabel*/ ctx[
|
|
5554
|
+
attr(ul, "aria-activedescendant", /*_selectedLabel*/ ctx[16]);
|
|
5555
5555
|
attr(ul, "data-testid", "dropdown-menu");
|
|
5556
5556
|
attr(ul, "tabindex", "0");
|
|
5557
5557
|
attr(ul, "class", "dropdown-list");
|
|
5558
5558
|
attr(ul, "style", ul_style_value = `overflow-y: auto; max-height: ${/*maxheight*/ ctx[3]}`);
|
|
5559
|
-
toggle_class(ul, "dropdown-active", /*_isMenuVisible*/ ctx[
|
|
5559
|
+
toggle_class(ul, "dropdown-active", /*_isMenuVisible*/ ctx[17]);
|
|
5560
5560
|
},
|
|
5561
5561
|
m(target, anchor) {
|
|
5562
5562
|
if (if_block) if_block.m(target, anchor);
|
|
@@ -5579,7 +5579,7 @@ function create_else_block$5(ctx) {
|
|
|
5579
5579
|
}
|
|
5580
5580
|
},
|
|
5581
5581
|
p(ctx, dirty) {
|
|
5582
|
-
if (/*_isMenuVisible*/ ctx[
|
|
5582
|
+
if (/*_isMenuVisible*/ ctx[17]) {
|
|
5583
5583
|
if (if_block) {
|
|
5584
5584
|
if_block.p(ctx, dirty);
|
|
5585
5585
|
} else {
|
|
@@ -5608,8 +5608,8 @@ function create_else_block$5(ctx) {
|
|
|
5608
5608
|
set_custom_element_data(goa_input, "placeholder", /*placeholder*/ ctx[4]);
|
|
5609
5609
|
}
|
|
5610
5610
|
|
|
5611
|
-
if (dirty[0] & /*_isMenuVisible*/
|
|
5612
|
-
set_custom_element_data(goa_input, "aria-expanded", /*_isMenuVisible*/ ctx[
|
|
5611
|
+
if (dirty[0] & /*_isMenuVisible*/ 131072) {
|
|
5612
|
+
set_custom_element_data(goa_input, "aria-expanded", /*_isMenuVisible*/ ctx[17]);
|
|
5613
5613
|
}
|
|
5614
5614
|
|
|
5615
5615
|
if (dirty[0] & /*arialabel, name*/ 3 && goa_input_arialabel_value !== (goa_input_arialabel_value = /*arialabel*/ ctx[1] || /*name*/ ctx[0])) {
|
|
@@ -5620,29 +5620,29 @@ function create_else_block$5(ctx) {
|
|
|
5620
5620
|
set_custom_element_data(goa_input, "data-testid", goa_input_data_testid_value);
|
|
5621
5621
|
}
|
|
5622
5622
|
|
|
5623
|
-
if (dirty[0] & /*_selectedLabel*/
|
|
5624
|
-
set_custom_element_data(goa_input, "value", /*_selectedLabel*/ ctx[
|
|
5623
|
+
if (dirty[0] & /*_selectedLabel*/ 65536) {
|
|
5624
|
+
set_custom_element_data(goa_input, "value", /*_selectedLabel*/ ctx[16]);
|
|
5625
5625
|
}
|
|
5626
5626
|
|
|
5627
5627
|
if (dirty[0] & /*name*/ 1) {
|
|
5628
5628
|
set_custom_element_data(goa_input, "name", /*name*/ ctx[0]);
|
|
5629
5629
|
}
|
|
5630
5630
|
|
|
5631
|
-
if (dirty[0] & /*_options, _values, _highlightedIndex, onSelect*/
|
|
5632
|
-
each_value_1 = /*_options*/ ctx[
|
|
5631
|
+
if (dirty[0] & /*_options, _values, _highlightedIndex, onSelect*/ 67407872) {
|
|
5632
|
+
each_value_1 = /*_options*/ ctx[12];
|
|
5633
5633
|
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);
|
|
5634
5634
|
}
|
|
5635
5635
|
|
|
5636
|
-
if (dirty[0] & /*_selectedLabel*/
|
|
5637
|
-
attr(ul, "aria-activedescendant", /*_selectedLabel*/ ctx[
|
|
5636
|
+
if (dirty[0] & /*_selectedLabel*/ 65536) {
|
|
5637
|
+
attr(ul, "aria-activedescendant", /*_selectedLabel*/ ctx[16]);
|
|
5638
5638
|
}
|
|
5639
5639
|
|
|
5640
5640
|
if (dirty[0] & /*maxheight*/ 8 && ul_style_value !== (ul_style_value = `overflow-y: auto; max-height: ${/*maxheight*/ ctx[3]}`)) {
|
|
5641
5641
|
attr(ul, "style", ul_style_value);
|
|
5642
5642
|
}
|
|
5643
5643
|
|
|
5644
|
-
if (dirty[0] & /*_isMenuVisible*/
|
|
5645
|
-
toggle_class(ul, "dropdown-active", /*_isMenuVisible*/ ctx[
|
|
5644
|
+
if (dirty[0] & /*_isMenuVisible*/ 131072) {
|
|
5645
|
+
toggle_class(ul, "dropdown-active", /*_isMenuVisible*/ ctx[17]);
|
|
5646
5646
|
}
|
|
5647
5647
|
},
|
|
5648
5648
|
d(detaching) {
|
|
@@ -5665,14 +5665,14 @@ function create_else_block$5(ctx) {
|
|
|
5665
5665
|
};
|
|
5666
5666
|
}
|
|
5667
5667
|
|
|
5668
|
-
// (
|
|
5668
|
+
// (240:2) {#if _native}
|
|
5669
5669
|
function create_if_block$f(ctx) {
|
|
5670
5670
|
let select;
|
|
5671
5671
|
let slot;
|
|
5672
5672
|
let select_aria_label_value;
|
|
5673
5673
|
let mounted;
|
|
5674
5674
|
let dispose;
|
|
5675
|
-
let each_value = /*_options*/ ctx[
|
|
5675
|
+
let each_value = /*_options*/ ctx[12];
|
|
5676
5676
|
let each_blocks = [];
|
|
5677
5677
|
|
|
5678
5678
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -5688,7 +5688,7 @@ function create_if_block$f(ctx) {
|
|
|
5688
5688
|
each_blocks[i].c();
|
|
5689
5689
|
}
|
|
5690
5690
|
|
|
5691
|
-
select.disabled = /*_disabled*/ ctx[
|
|
5691
|
+
select.disabled = /*_disabled*/ ctx[22];
|
|
5692
5692
|
attr(select, "aria-label", select_aria_label_value = /*arialabel*/ ctx[1] || /*name*/ ctx[0]);
|
|
5693
5693
|
toggle_class(select, "error", /*_error*/ ctx[23]);
|
|
5694
5694
|
},
|
|
@@ -5708,8 +5708,8 @@ function create_if_block$f(ctx) {
|
|
|
5708
5708
|
}
|
|
5709
5709
|
},
|
|
5710
5710
|
p(ctx, dirty) {
|
|
5711
|
-
if (dirty[0] & /*_options*/
|
|
5712
|
-
each_value = /*_options*/ ctx[
|
|
5711
|
+
if (dirty[0] & /*_options*/ 4096) {
|
|
5712
|
+
each_value = /*_options*/ ctx[12];
|
|
5713
5713
|
let i;
|
|
5714
5714
|
|
|
5715
5715
|
for (i = 0; i < each_value.length; i += 1) {
|
|
@@ -5731,8 +5731,8 @@ function create_if_block$f(ctx) {
|
|
|
5731
5731
|
each_blocks.length = each_value.length;
|
|
5732
5732
|
}
|
|
5733
5733
|
|
|
5734
|
-
if (dirty[0] & /*_disabled*/
|
|
5735
|
-
select.disabled = /*_disabled*/ ctx[
|
|
5734
|
+
if (dirty[0] & /*_disabled*/ 4194304) {
|
|
5735
|
+
select.disabled = /*_disabled*/ ctx[22];
|
|
5736
5736
|
}
|
|
5737
5737
|
|
|
5738
5738
|
if (dirty[0] & /*arialabel, name*/ 3 && select_aria_label_value !== (select_aria_label_value = /*arialabel*/ ctx[1] || /*name*/ ctx[0])) {
|
|
@@ -5753,7 +5753,7 @@ function create_if_block$f(ctx) {
|
|
|
5753
5753
|
};
|
|
5754
5754
|
}
|
|
5755
5755
|
|
|
5756
|
-
// (
|
|
5756
|
+
// (260:4) {#if _isMenuVisible}
|
|
5757
5757
|
function create_if_block_1$7(ctx) {
|
|
5758
5758
|
let div;
|
|
5759
5759
|
let div_data_testid_value;
|
|
@@ -5787,10 +5787,10 @@ function create_if_block_1$7(ctx) {
|
|
|
5787
5787
|
};
|
|
5788
5788
|
}
|
|
5789
5789
|
|
|
5790
|
-
// (
|
|
5790
|
+
// (303:6) {#each _options as option, index (index)}
|
|
5791
5791
|
function create_each_block_1(key_1, ctx) {
|
|
5792
5792
|
let li;
|
|
5793
|
-
let t0_value = (/*option*/ ctx[
|
|
5793
|
+
let t0_value = (/*option*/ ctx[48].label || /*option*/ ctx[48].value) + "";
|
|
5794
5794
|
let t0;
|
|
5795
5795
|
let t1;
|
|
5796
5796
|
let li_id_value;
|
|
@@ -5804,7 +5804,7 @@ function create_each_block_1(key_1, ctx) {
|
|
|
5804
5804
|
let dispose;
|
|
5805
5805
|
|
|
5806
5806
|
function click_handler() {
|
|
5807
|
-
return /*click_handler*/ ctx[32](/*option*/ ctx[
|
|
5807
|
+
return /*click_handler*/ ctx[32](/*option*/ ctx[48]);
|
|
5808
5808
|
}
|
|
5809
5809
|
|
|
5810
5810
|
return {
|
|
@@ -5814,22 +5814,22 @@ function create_each_block_1(key_1, ctx) {
|
|
|
5814
5814
|
li = element("li");
|
|
5815
5815
|
t0 = text(t0_value);
|
|
5816
5816
|
t1 = space();
|
|
5817
|
-
attr(li, "id", li_id_value = /*option*/ ctx[
|
|
5817
|
+
attr(li, "id", li_id_value = /*option*/ ctx[48].label);
|
|
5818
5818
|
attr(li, "role", "option");
|
|
5819
|
-
attr(li, "aria-label", li_aria_label_value = /*option*/ ctx[
|
|
5819
|
+
attr(li, "aria-label", li_aria_label_value = /*option*/ ctx[48].label || /*option*/ ctx[48].value);
|
|
5820
5820
|
|
|
5821
|
-
attr(li, "aria-selected", li_aria_selected_value = /*_values*/ ctx[
|
|
5821
|
+
attr(li, "aria-selected", li_aria_selected_value = /*_values*/ ctx[15].includes(/*option*/ ctx[48].value)
|
|
5822
5822
|
? "true"
|
|
5823
5823
|
: "false");
|
|
5824
5824
|
|
|
5825
5825
|
attr(li, "class", "dropdown-item");
|
|
5826
|
-
attr(li, "data-testid", li_data_testid_value = `dropdown-item-${/*option*/ ctx[
|
|
5827
|
-
attr(li, "data-index", li_data_index_value = /*index*/ ctx[
|
|
5828
|
-
attr(li, "data-value", li_data_value_value = /*option*/ ctx[
|
|
5826
|
+
attr(li, "data-testid", li_data_testid_value = `dropdown-item-${/*option*/ ctx[48].value}`);
|
|
5827
|
+
attr(li, "data-index", li_data_index_value = /*index*/ ctx[52]);
|
|
5828
|
+
attr(li, "data-value", li_data_value_value = /*option*/ ctx[48].value);
|
|
5829
5829
|
attr(li, "style", li_style_value = `display: ${"block"}`);
|
|
5830
5830
|
toggle_class(li, "dropdown-item--disabled", false);
|
|
5831
|
-
toggle_class(li, "dropdown-item--tabbed", /*index*/ ctx[
|
|
5832
|
-
toggle_class(li, "dropdown-item--selected", /*_values*/ ctx[
|
|
5831
|
+
toggle_class(li, "dropdown-item--tabbed", /*index*/ ctx[52] === /*_highlightedIndex*/ ctx[18]);
|
|
5832
|
+
toggle_class(li, "dropdown-item--selected", /*_values*/ ctx[15].includes(/*option*/ ctx[48].value));
|
|
5833
5833
|
this.first = li;
|
|
5834
5834
|
},
|
|
5835
5835
|
m(target, anchor) {
|
|
@@ -5844,40 +5844,40 @@ function create_each_block_1(key_1, ctx) {
|
|
|
5844
5844
|
},
|
|
5845
5845
|
p(new_ctx, dirty) {
|
|
5846
5846
|
ctx = new_ctx;
|
|
5847
|
-
if (dirty[0] & /*_options*/
|
|
5847
|
+
if (dirty[0] & /*_options*/ 4096 && t0_value !== (t0_value = (/*option*/ ctx[48].label || /*option*/ ctx[48].value) + "")) set_data(t0, t0_value);
|
|
5848
5848
|
|
|
5849
|
-
if (dirty[0] & /*_options*/
|
|
5849
|
+
if (dirty[0] & /*_options*/ 4096 && li_id_value !== (li_id_value = /*option*/ ctx[48].label)) {
|
|
5850
5850
|
attr(li, "id", li_id_value);
|
|
5851
5851
|
}
|
|
5852
5852
|
|
|
5853
|
-
if (dirty[0] & /*_options*/
|
|
5853
|
+
if (dirty[0] & /*_options*/ 4096 && li_aria_label_value !== (li_aria_label_value = /*option*/ ctx[48].label || /*option*/ ctx[48].value)) {
|
|
5854
5854
|
attr(li, "aria-label", li_aria_label_value);
|
|
5855
5855
|
}
|
|
5856
5856
|
|
|
5857
|
-
if (dirty[0] & /*_values, _options*/
|
|
5857
|
+
if (dirty[0] & /*_values, _options*/ 36864 && li_aria_selected_value !== (li_aria_selected_value = /*_values*/ ctx[15].includes(/*option*/ ctx[48].value)
|
|
5858
5858
|
? "true"
|
|
5859
5859
|
: "false")) {
|
|
5860
5860
|
attr(li, "aria-selected", li_aria_selected_value);
|
|
5861
5861
|
}
|
|
5862
5862
|
|
|
5863
|
-
if (dirty[0] & /*_options*/
|
|
5863
|
+
if (dirty[0] & /*_options*/ 4096 && li_data_testid_value !== (li_data_testid_value = `dropdown-item-${/*option*/ ctx[48].value}`)) {
|
|
5864
5864
|
attr(li, "data-testid", li_data_testid_value);
|
|
5865
5865
|
}
|
|
5866
5866
|
|
|
5867
|
-
if (dirty[0] & /*_options*/
|
|
5867
|
+
if (dirty[0] & /*_options*/ 4096 && li_data_index_value !== (li_data_index_value = /*index*/ ctx[52])) {
|
|
5868
5868
|
attr(li, "data-index", li_data_index_value);
|
|
5869
5869
|
}
|
|
5870
5870
|
|
|
5871
|
-
if (dirty[0] & /*_options*/
|
|
5871
|
+
if (dirty[0] & /*_options*/ 4096 && li_data_value_value !== (li_data_value_value = /*option*/ ctx[48].value)) {
|
|
5872
5872
|
attr(li, "data-value", li_data_value_value);
|
|
5873
5873
|
}
|
|
5874
5874
|
|
|
5875
|
-
if (dirty[0] & /*_options, _highlightedIndex*/
|
|
5876
|
-
toggle_class(li, "dropdown-item--tabbed", /*index*/ ctx[
|
|
5875
|
+
if (dirty[0] & /*_options, _highlightedIndex*/ 266240) {
|
|
5876
|
+
toggle_class(li, "dropdown-item--tabbed", /*index*/ ctx[52] === /*_highlightedIndex*/ ctx[18]);
|
|
5877
5877
|
}
|
|
5878
5878
|
|
|
5879
|
-
if (dirty[0] & /*_values, _options*/
|
|
5880
|
-
toggle_class(li, "dropdown-item--selected", /*_values*/ ctx[
|
|
5879
|
+
if (dirty[0] & /*_values, _options*/ 36864) {
|
|
5880
|
+
toggle_class(li, "dropdown-item--selected", /*_values*/ ctx[15].includes(/*option*/ ctx[48].value));
|
|
5881
5881
|
}
|
|
5882
5882
|
},
|
|
5883
5883
|
d(detaching) {
|
|
@@ -5888,10 +5888,10 @@ function create_each_block_1(key_1, ctx) {
|
|
|
5888
5888
|
};
|
|
5889
5889
|
}
|
|
5890
5890
|
|
|
5891
|
-
// (
|
|
5891
|
+
// (249:6) {#each _options as option}
|
|
5892
5892
|
function create_each_block$4(ctx) {
|
|
5893
5893
|
let option;
|
|
5894
|
-
let t0_value = /*option*/ ctx[
|
|
5894
|
+
let t0_value = /*option*/ ctx[48].label + "";
|
|
5895
5895
|
let t0;
|
|
5896
5896
|
let t1;
|
|
5897
5897
|
let option_selected_value;
|
|
@@ -5903,10 +5903,10 @@ function create_each_block$4(ctx) {
|
|
|
5903
5903
|
option = element("option");
|
|
5904
5904
|
t0 = text(t0_value);
|
|
5905
5905
|
t1 = space();
|
|
5906
|
-
option.selected = option_selected_value = /*option*/ ctx[
|
|
5907
|
-
option.__value = option_value_value = /*option*/ ctx[
|
|
5906
|
+
option.selected = option_selected_value = /*option*/ ctx[48].selected;
|
|
5907
|
+
option.__value = option_value_value = /*option*/ ctx[48].value;
|
|
5908
5908
|
option.value = option.__value;
|
|
5909
|
-
attr(option, "aria-label", option_aria_label_value = /*option*/ ctx[
|
|
5909
|
+
attr(option, "aria-label", option_aria_label_value = /*option*/ ctx[48].label);
|
|
5910
5910
|
},
|
|
5911
5911
|
m(target, anchor) {
|
|
5912
5912
|
insert(target, option, anchor);
|
|
@@ -5914,18 +5914,18 @@ function create_each_block$4(ctx) {
|
|
|
5914
5914
|
append(option, t1);
|
|
5915
5915
|
},
|
|
5916
5916
|
p(ctx, dirty) {
|
|
5917
|
-
if (dirty[0] & /*_options*/
|
|
5917
|
+
if (dirty[0] & /*_options*/ 4096 && t0_value !== (t0_value = /*option*/ ctx[48].label + "")) set_data(t0, t0_value);
|
|
5918
5918
|
|
|
5919
|
-
if (dirty[0] & /*_options*/
|
|
5919
|
+
if (dirty[0] & /*_options*/ 4096 && option_selected_value !== (option_selected_value = /*option*/ ctx[48].selected)) {
|
|
5920
5920
|
option.selected = option_selected_value;
|
|
5921
5921
|
}
|
|
5922
5922
|
|
|
5923
|
-
if (dirty[0] & /*_options*/
|
|
5923
|
+
if (dirty[0] & /*_options*/ 4096 && option_value_value !== (option_value_value = /*option*/ ctx[48].value)) {
|
|
5924
5924
|
option.__value = option_value_value;
|
|
5925
5925
|
option.value = option.__value;
|
|
5926
5926
|
}
|
|
5927
5927
|
|
|
5928
|
-
if (dirty[0] & /*_options*/
|
|
5928
|
+
if (dirty[0] & /*_options*/ 4096 && option_aria_label_value !== (option_aria_label_value = /*option*/ ctx[48].label)) {
|
|
5929
5929
|
attr(option, "aria-label", option_aria_label_value);
|
|
5930
5930
|
}
|
|
5931
5931
|
},
|
|
@@ -5941,7 +5941,7 @@ function create_fragment$v(ctx) {
|
|
|
5941
5941
|
let div_style_value;
|
|
5942
5942
|
|
|
5943
5943
|
function select_block_type(ctx, dirty) {
|
|
5944
|
-
if (/*_native*/ ctx[
|
|
5944
|
+
if (/*_native*/ ctx[14]) return create_if_block$f;
|
|
5945
5945
|
return create_else_block$5;
|
|
5946
5946
|
}
|
|
5947
5947
|
|
|
@@ -5958,10 +5958,10 @@ function create_fragment$v(ctx) {
|
|
|
5958
5958
|
|
|
5959
5959
|
attr(div, "style", div_style_value = `
|
|
5960
5960
|
${calculateMargin(/*mt*/ ctx[8], /*mr*/ ctx[9], /*mb*/ ctx[10], /*ml*/ ctx[11])}
|
|
5961
|
-
--width: ${/*width*/ ctx[5] || /*_computedWidth*/ ctx[
|
|
5961
|
+
--width: ${/*width*/ ctx[5] || /*_computedWidth*/ ctx[19]}
|
|
5962
5962
|
`);
|
|
5963
5963
|
|
|
5964
|
-
toggle_class(div, "dropdown-native", /*_native*/ ctx[
|
|
5964
|
+
toggle_class(div, "dropdown-native", /*_native*/ ctx[14]);
|
|
5965
5965
|
},
|
|
5966
5966
|
m(target, anchor) {
|
|
5967
5967
|
insert(target, div, anchor);
|
|
@@ -5985,15 +5985,15 @@ function create_fragment$v(ctx) {
|
|
|
5985
5985
|
attr(div, "data-testid", div_data_testid_value);
|
|
5986
5986
|
}
|
|
5987
5987
|
|
|
5988
|
-
if (dirty[0] & /*mt, mr, mb, ml, width, _computedWidth*/
|
|
5988
|
+
if (dirty[0] & /*mt, mr, mb, ml, width, _computedWidth*/ 528160 && div_style_value !== (div_style_value = `
|
|
5989
5989
|
${calculateMargin(/*mt*/ ctx[8], /*mr*/ ctx[9], /*mb*/ ctx[10], /*ml*/ ctx[11])}
|
|
5990
|
-
--width: ${/*width*/ ctx[5] || /*_computedWidth*/ ctx[
|
|
5990
|
+
--width: ${/*width*/ ctx[5] || /*_computedWidth*/ ctx[19]}
|
|
5991
5991
|
`)) {
|
|
5992
5992
|
attr(div, "style", div_style_value);
|
|
5993
5993
|
}
|
|
5994
5994
|
|
|
5995
|
-
if (dirty[0] & /*_native*/
|
|
5996
|
-
toggle_class(div, "dropdown-native", /*_native*/ ctx[
|
|
5995
|
+
if (dirty[0] & /*_native*/ 16384) {
|
|
5996
|
+
toggle_class(div, "dropdown-native", /*_native*/ ctx[14]);
|
|
5997
5997
|
}
|
|
5998
5998
|
},
|
|
5999
5999
|
i: noop,
|
|
@@ -6006,6 +6006,21 @@ function create_fragment$v(ctx) {
|
|
|
6006
6006
|
};
|
|
6007
6007
|
}
|
|
6008
6008
|
|
|
6009
|
+
function parseValues(selectedValue) {
|
|
6010
|
+
let rawValue;
|
|
6011
|
+
|
|
6012
|
+
try {
|
|
6013
|
+
rawValue = JSON.parse(selectedValue || "[]");
|
|
6014
|
+
} catch(e) {
|
|
6015
|
+
rawValue = [selectedValue];
|
|
6016
|
+
}
|
|
6017
|
+
|
|
6018
|
+
const rawValues = typeof rawValue === "object" ? rawValue : [rawValue];
|
|
6019
|
+
|
|
6020
|
+
// convert all values to strings to avoid later type comparison issues
|
|
6021
|
+
return rawValues.map(val => `${val}`);
|
|
6022
|
+
}
|
|
6023
|
+
|
|
6009
6024
|
function instance$s($$self, $$props, $$invalidate) {
|
|
6010
6025
|
let _disabled;
|
|
6011
6026
|
let _error;
|
|
@@ -6040,25 +6055,15 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
6040
6055
|
let _selectEl;
|
|
6041
6056
|
|
|
6042
6057
|
onMount(async () => {
|
|
6043
|
-
await tick();
|
|
6044
|
-
$$invalidate(12, _values = parseValues());
|
|
6045
|
-
$$invalidate(13, _options = getOptions());
|
|
6046
|
-
|
|
6047
|
-
if (!_native) {
|
|
6048
|
-
$$invalidate(17, _computedWidth = getCustomDropdownWidth(_options));
|
|
6049
|
-
addKeyboardEventListeners();
|
|
6050
|
-
setHighlightedIndexToSelected();
|
|
6051
|
-
}
|
|
6052
|
-
|
|
6053
6058
|
// watch for DOM changes within the slot => dynamic binding
|
|
6054
6059
|
const slot = _el.querySelector("slot");
|
|
6055
6060
|
|
|
6056
6061
|
slot === null || slot === void 0
|
|
6057
6062
|
? void 0
|
|
6058
6063
|
: slot.addEventListener("slotchange", _e => {
|
|
6059
|
-
$$invalidate(
|
|
6060
|
-
$$invalidate(
|
|
6061
|
-
$$invalidate(
|
|
6064
|
+
$$invalidate(16, _selectedLabel = "");
|
|
6065
|
+
$$invalidate(15, _values = parseValues(value));
|
|
6066
|
+
$$invalidate(12, _options = getOptions());
|
|
6062
6067
|
});
|
|
6063
6068
|
});
|
|
6064
6069
|
|
|
@@ -6094,8 +6099,8 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
6094
6099
|
const selected = _values.includes(value);
|
|
6095
6100
|
|
|
6096
6101
|
if (selected) {
|
|
6097
|
-
$$invalidate(
|
|
6098
|
-
$$invalidate(
|
|
6102
|
+
$$invalidate(16, _selectedLabel = label);
|
|
6103
|
+
$$invalidate(15, _values = [value]);
|
|
6099
6104
|
}
|
|
6100
6105
|
|
|
6101
6106
|
return { selected, value, label };
|
|
@@ -6133,28 +6138,12 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
6133
6138
|
_el.removeEventListener("blur", onBlur, true);
|
|
6134
6139
|
}
|
|
6135
6140
|
|
|
6136
|
-
// parse and convert values to strings to avoid later type comparison issues
|
|
6137
|
-
function parseValues() {
|
|
6138
|
-
let rawValue;
|
|
6139
|
-
|
|
6140
|
-
try {
|
|
6141
|
-
rawValue = JSON.parse(value || "[]");
|
|
6142
|
-
} catch(e) {
|
|
6143
|
-
rawValue = [value];
|
|
6144
|
-
}
|
|
6145
|
-
|
|
6146
|
-
const rawValues = typeof rawValue === "object" ? rawValue : [rawValue];
|
|
6147
|
-
|
|
6148
|
-
// convert all values to strings to avoid later type comparison issues
|
|
6149
|
-
return rawValues.map(val => `${val}`);
|
|
6150
|
-
}
|
|
6151
|
-
|
|
6152
6141
|
async function showMenu() {
|
|
6153
6142
|
if (_disabled || _isMenuVisible) {
|
|
6154
6143
|
return;
|
|
6155
6144
|
}
|
|
6156
6145
|
|
|
6157
|
-
$$invalidate(
|
|
6146
|
+
$$invalidate(17, _isMenuVisible = true);
|
|
6158
6147
|
await tick();
|
|
6159
6148
|
|
|
6160
6149
|
// hide menu on blur
|
|
@@ -6168,11 +6157,11 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
6168
6157
|
_menuEl.removeEventListener("blur", closeMenu);
|
|
6169
6158
|
_menuEl.removeEventListener("mouseover", onHighlight);
|
|
6170
6159
|
setHighlightedIndexToSelected();
|
|
6171
|
-
$$invalidate(
|
|
6160
|
+
$$invalidate(17, _isMenuVisible = false);
|
|
6172
6161
|
}
|
|
6173
6162
|
|
|
6174
6163
|
function setHighlightedIndexToSelected() {
|
|
6175
|
-
$$invalidate(
|
|
6164
|
+
$$invalidate(18, _highlightedIndex = _options.findIndex(option => _values.includes(option.value)));
|
|
6176
6165
|
}
|
|
6177
6166
|
|
|
6178
6167
|
// Event handlers
|
|
@@ -6181,14 +6170,14 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
6181
6170
|
*/
|
|
6182
6171
|
function onSelect(value, label, close) {
|
|
6183
6172
|
if (_disabled) return;
|
|
6184
|
-
$$invalidate(
|
|
6173
|
+
$$invalidate(16, _selectedLabel = label);
|
|
6185
6174
|
let detail;
|
|
6186
6175
|
|
|
6187
6176
|
if (_multiselect) {
|
|
6188
6177
|
_values.push(value);
|
|
6189
6178
|
detail = { name, values: _values };
|
|
6190
6179
|
} else {
|
|
6191
|
-
$$invalidate(
|
|
6180
|
+
$$invalidate(15, _values = [value]);
|
|
6192
6181
|
detail = { name, value };
|
|
6193
6182
|
}
|
|
6194
6183
|
|
|
@@ -6231,14 +6220,14 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
6231
6220
|
|
|
6232
6221
|
function _handleArrowDown() {
|
|
6233
6222
|
if (_highlightedIndex < _options.length - 1) {
|
|
6234
|
-
$$invalidate(
|
|
6223
|
+
$$invalidate(18, _highlightedIndex++, _highlightedIndex);
|
|
6235
6224
|
onSelect(_options[_highlightedIndex].value, _options[_highlightedIndex].label, false);
|
|
6236
6225
|
}
|
|
6237
6226
|
}
|
|
6238
6227
|
|
|
6239
6228
|
function _handleArrowUp() {
|
|
6240
6229
|
if (_highlightedIndex > 0) {
|
|
6241
|
-
$$invalidate(
|
|
6230
|
+
$$invalidate(18, _highlightedIndex--, _highlightedIndex);
|
|
6242
6231
|
onSelect(_options[_highlightedIndex].value, _options[_highlightedIndex].label, false);
|
|
6243
6232
|
}
|
|
6244
6233
|
}
|
|
@@ -6254,7 +6243,7 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
6254
6243
|
}
|
|
6255
6244
|
|
|
6256
6245
|
function onHighlight(e) {
|
|
6257
|
-
$$invalidate(
|
|
6246
|
+
$$invalidate(18, _highlightedIndex = Number(e.target.dataset.index));
|
|
6258
6247
|
}
|
|
6259
6248
|
|
|
6260
6249
|
function onNativeSelect(e) {
|
|
@@ -6266,8 +6255,8 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
6266
6255
|
function select_binding($$value) {
|
|
6267
6256
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
6268
6257
|
_selectEl = $$value;
|
|
6269
|
-
$$invalidate(
|
|
6270
|
-
$$invalidate(
|
|
6258
|
+
$$invalidate(21, _selectEl);
|
|
6259
|
+
(((($$invalidate(12, _options), $$invalidate(13, _el)), $$invalidate(28, value)), $$invalidate(14, _native)), $$invalidate(30, native));
|
|
6271
6260
|
});
|
|
6272
6261
|
}
|
|
6273
6262
|
|
|
@@ -6276,14 +6265,14 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
6276
6265
|
function ul_binding($$value) {
|
|
6277
6266
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
6278
6267
|
_menuEl = $$value;
|
|
6279
|
-
$$invalidate(
|
|
6268
|
+
$$invalidate(20, _menuEl);
|
|
6280
6269
|
});
|
|
6281
6270
|
}
|
|
6282
6271
|
|
|
6283
6272
|
function div_binding($$value) {
|
|
6284
6273
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
6285
6274
|
_el = $$value;
|
|
6286
|
-
$$invalidate(
|
|
6275
|
+
$$invalidate(13, _el);
|
|
6287
6276
|
});
|
|
6288
6277
|
}
|
|
6289
6278
|
|
|
@@ -6307,7 +6296,7 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
6307
6296
|
|
|
6308
6297
|
$$self.$$.update = () => {
|
|
6309
6298
|
if ($$self.$$.dirty[0] & /*disabled*/ 64) {
|
|
6310
|
-
$$invalidate(
|
|
6299
|
+
$$invalidate(22, _disabled = toBoolean(disabled));
|
|
6311
6300
|
}
|
|
6312
6301
|
|
|
6313
6302
|
if ($$self.$$.dirty[0] & /*error*/ 128) {
|
|
@@ -6319,7 +6308,22 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
6319
6308
|
}
|
|
6320
6309
|
|
|
6321
6310
|
if ($$self.$$.dirty[0] & /*native*/ 1073741824) {
|
|
6322
|
-
$$invalidate(
|
|
6311
|
+
$$invalidate(14, _native = toBoolean(native));
|
|
6312
|
+
}
|
|
6313
|
+
|
|
6314
|
+
if ($$self.$$.dirty[0] & /*_el, value, _native, _options*/ 268464128) {
|
|
6315
|
+
{
|
|
6316
|
+
if (_el) {
|
|
6317
|
+
$$invalidate(15, _values = parseValues(value));
|
|
6318
|
+
$$invalidate(12, _options = getOptions());
|
|
6319
|
+
|
|
6320
|
+
if (!_native) {
|
|
6321
|
+
$$invalidate(19, _computedWidth = getCustomDropdownWidth(_options));
|
|
6322
|
+
addKeyboardEventListeners();
|
|
6323
|
+
setHighlightedIndexToSelected();
|
|
6324
|
+
}
|
|
6325
|
+
}
|
|
6326
|
+
}
|
|
6323
6327
|
}
|
|
6324
6328
|
};
|
|
6325
6329
|
|
|
@@ -6336,17 +6340,17 @@ function instance$s($$self, $$props, $$invalidate) {
|
|
|
6336
6340
|
mr,
|
|
6337
6341
|
mb,
|
|
6338
6342
|
ml,
|
|
6339
|
-
_values,
|
|
6340
6343
|
_options,
|
|
6344
|
+
_el,
|
|
6345
|
+
_native,
|
|
6346
|
+
_values,
|
|
6341
6347
|
_selectedLabel,
|
|
6342
6348
|
_isMenuVisible,
|
|
6343
6349
|
_highlightedIndex,
|
|
6344
6350
|
_computedWidth,
|
|
6345
|
-
_el,
|
|
6346
6351
|
_menuEl,
|
|
6347
6352
|
_selectEl,
|
|
6348
6353
|
_disabled,
|
|
6349
|
-
_native,
|
|
6350
6354
|
_error,
|
|
6351
6355
|
showMenu,
|
|
6352
6356
|
closeMenu,
|