@abgov/web-components 1.0.0-alpha.30 → 1.0.0-alpha.31
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 +178 -233
- package/web-components.umd.js +14 -14
package/web-components.es.js
CHANGED
|
@@ -2343,7 +2343,7 @@ function instance$k($$self, $$props, $$invalidate) {
|
|
|
2343
2343
|
class Checkbox extends SvelteElement {
|
|
2344
2344
|
constructor(options) {
|
|
2345
2345
|
super();
|
|
2346
|
-
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-checkbox{display:inline-flex;align-items:center;min-height:calc(3rem - 4px);cursor:pointer}.goa-checkbox input[type="checkbox"]{opacity:0;position:absolute}.goa-checkbox--disabled{opacity:
|
|
2346
|
+
this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.goa-checkbox{display:inline-flex;align-items:center;min-height:calc(3rem - 4px);cursor:pointer}.goa-checkbox input[type="checkbox"]{opacity:0;position:absolute;cursor:pointer}.goa-checkbox--disabled{opacity:40%}.goa-checkbox-container{box-sizing:border-box;border:1px solid var(--color-gray-600);border-radius:2px;background-color:var(--color-white);height:1.5rem;width:1.5rem;display:flex;justify-content:center;padding:3px}.goa-checkbox-container svg{fill:var(--color-white)}.goa-checkbox-container.goa-checkbox--selected{background-color:var(--goa-color-interactive)}.goa-checkbox-container.goa-checkbox--selected:hover{background-color:var(--goa-color-interactive--hover)}.goa-checkbox-container:hover{border:1px solid var(--goa-color-interactive)}.goa-checkbox-container:focus-within{box-shadow:0 0 0 3px var(--goa-color-interactive--highlight);outline:none}.goa-checkbox-text{padding-left:0.5rem;user-select:none;font-weight:var(--fw-regular)}.goa-checkbox--disabled .goa-checkbox-container,.goa-checkbox--disabled .goa-checkbox-container:hover{border:1px solid var(--color-gray-500)}.goa-checkbox--error .goa-checkbox-container,.goa-checkbox--error .goa-checkbox-container:hover{border:1px solid var(--goa-color-status-emergency);background-color:var(--color-white)}.goa-checkbox--error .goa-checkbox-container svg{fill:var(--goa-color-status-emergency)}</style>`;
|
|
2347
2347
|
|
|
2348
2348
|
init(
|
|
2349
2349
|
this,
|
|
@@ -3680,15 +3680,15 @@ function create_if_block_2$4(ctx) {
|
|
|
3680
3680
|
let label_1;
|
|
3681
3681
|
let t0;
|
|
3682
3682
|
let t1;
|
|
3683
|
-
let if_block = /*isOptional*/ ctx[
|
|
3683
|
+
let if_block = /*isOptional*/ ctx[3] && create_if_block_3$3();
|
|
3684
3684
|
|
|
3685
3685
|
return {
|
|
3686
3686
|
c() {
|
|
3687
3687
|
label_1 = element("label");
|
|
3688
|
-
t0 = text(/*label*/ ctx[
|
|
3688
|
+
t0 = text(/*label*/ ctx[0]);
|
|
3689
3689
|
t1 = space();
|
|
3690
3690
|
if (if_block) if_block.c();
|
|
3691
|
-
attr(label_1, "for",
|
|
3691
|
+
attr(label_1, "for", "");
|
|
3692
3692
|
},
|
|
3693
3693
|
m(target, anchor) {
|
|
3694
3694
|
insert(target, label_1, anchor);
|
|
@@ -3697,9 +3697,9 @@ function create_if_block_2$4(ctx) {
|
|
|
3697
3697
|
if (if_block) if_block.m(label_1, null);
|
|
3698
3698
|
},
|
|
3699
3699
|
p(ctx, dirty) {
|
|
3700
|
-
if (dirty & /*label*/
|
|
3700
|
+
if (dirty & /*label*/ 1) set_data(t0, /*label*/ ctx[0]);
|
|
3701
3701
|
|
|
3702
|
-
if (/*isOptional*/ ctx[
|
|
3702
|
+
if (/*isOptional*/ ctx[3]) {
|
|
3703
3703
|
if (if_block) ; else {
|
|
3704
3704
|
if_block = create_if_block_3$3();
|
|
3705
3705
|
if_block.c();
|
|
@@ -3709,10 +3709,6 @@ function create_if_block_2$4(ctx) {
|
|
|
3709
3709
|
if_block.d(1);
|
|
3710
3710
|
if_block = null;
|
|
3711
3711
|
}
|
|
3712
|
-
|
|
3713
|
-
if (dirty & /*name*/ 2) {
|
|
3714
|
-
attr(label_1, "for", /*name*/ ctx[1]);
|
|
3715
|
-
}
|
|
3716
3712
|
},
|
|
3717
3713
|
d(detaching) {
|
|
3718
3714
|
if (detaching) detach(label_1);
|
|
@@ -3771,7 +3767,7 @@ function create_if_block$9(ctx) {
|
|
|
3771
3767
|
return {
|
|
3772
3768
|
c() {
|
|
3773
3769
|
div = element("div");
|
|
3774
|
-
t = text(/*helptext*/ ctx[
|
|
3770
|
+
t = text(/*helptext*/ ctx[1]);
|
|
3775
3771
|
attr(div, "class", "help-msg");
|
|
3776
3772
|
},
|
|
3777
3773
|
m(target, anchor) {
|
|
@@ -3779,7 +3775,7 @@ function create_if_block$9(ctx) {
|
|
|
3779
3775
|
append(div, t);
|
|
3780
3776
|
},
|
|
3781
3777
|
p(ctx, dirty) {
|
|
3782
|
-
if (dirty & /*helptext*/
|
|
3778
|
+
if (dirty & /*helptext*/ 2) set_data(t, /*helptext*/ ctx[1]);
|
|
3783
3779
|
},
|
|
3784
3780
|
d(detaching) {
|
|
3785
3781
|
if (detaching) detach(div);
|
|
@@ -3793,9 +3789,9 @@ function create_fragment$g(ctx) {
|
|
|
3793
3789
|
let div0;
|
|
3794
3790
|
let t1;
|
|
3795
3791
|
let t2;
|
|
3796
|
-
let if_block0 = /*label*/ ctx[
|
|
3792
|
+
let if_block0 = /*label*/ ctx[0] && create_if_block_2$4(ctx);
|
|
3797
3793
|
let if_block1 = /*error*/ ctx[2] && create_if_block_1$6(ctx);
|
|
3798
|
-
let if_block2 = /*helptext*/ ctx[
|
|
3794
|
+
let if_block2 = /*helptext*/ ctx[1] && create_if_block$9(ctx);
|
|
3799
3795
|
|
|
3800
3796
|
return {
|
|
3801
3797
|
c() {
|
|
@@ -3823,7 +3819,7 @@ function create_fragment$g(ctx) {
|
|
|
3823
3819
|
if (if_block2) if_block2.m(div1, null);
|
|
3824
3820
|
},
|
|
3825
3821
|
p(ctx, [dirty]) {
|
|
3826
|
-
if (/*label*/ ctx[
|
|
3822
|
+
if (/*label*/ ctx[0]) {
|
|
3827
3823
|
if (if_block0) {
|
|
3828
3824
|
if_block0.p(ctx, dirty);
|
|
3829
3825
|
} else {
|
|
@@ -3849,7 +3845,7 @@ function create_fragment$g(ctx) {
|
|
|
3849
3845
|
if_block1 = null;
|
|
3850
3846
|
}
|
|
3851
3847
|
|
|
3852
|
-
if (/*helptext*/ ctx[
|
|
3848
|
+
if (/*helptext*/ ctx[1]) {
|
|
3853
3849
|
if (if_block2) {
|
|
3854
3850
|
if_block2.p(ctx, dirty);
|
|
3855
3851
|
} else {
|
|
@@ -3875,27 +3871,25 @@ function create_fragment$g(ctx) {
|
|
|
3875
3871
|
|
|
3876
3872
|
function instance$f($$self, $$props, $$invalidate) {
|
|
3877
3873
|
let isOptional;
|
|
3874
|
+
let { label = "" } = $$props;
|
|
3878
3875
|
let { helptext = "" } = $$props;
|
|
3879
|
-
let { name = "" } = $$props;
|
|
3880
3876
|
let { error = "" } = $$props;
|
|
3881
|
-
let { label = "" } = $$props;
|
|
3882
3877
|
let { optional } = $$props;
|
|
3883
3878
|
|
|
3884
3879
|
$$self.$$set = $$props => {
|
|
3885
|
-
if ('
|
|
3886
|
-
if ('
|
|
3880
|
+
if ('label' in $$props) $$invalidate(0, label = $$props.label);
|
|
3881
|
+
if ('helptext' in $$props) $$invalidate(1, helptext = $$props.helptext);
|
|
3887
3882
|
if ('error' in $$props) $$invalidate(2, error = $$props.error);
|
|
3888
|
-
if ('
|
|
3889
|
-
if ('optional' in $$props) $$invalidate(5, optional = $$props.optional);
|
|
3883
|
+
if ('optional' in $$props) $$invalidate(4, optional = $$props.optional);
|
|
3890
3884
|
};
|
|
3891
3885
|
|
|
3892
3886
|
$$self.$$.update = () => {
|
|
3893
|
-
if ($$self.$$.dirty & /*optional*/
|
|
3894
|
-
$$invalidate(
|
|
3887
|
+
if ($$self.$$.dirty & /*optional*/ 16) {
|
|
3888
|
+
$$invalidate(3, isOptional = toBoolean(optional));
|
|
3895
3889
|
}
|
|
3896
3890
|
};
|
|
3897
3891
|
|
|
3898
|
-
return [
|
|
3892
|
+
return [label, helptext, error, isOptional, optional];
|
|
3899
3893
|
}
|
|
3900
3894
|
|
|
3901
3895
|
class FormItem extends SvelteElement {
|
|
@@ -3914,11 +3908,10 @@ class FormItem extends SvelteElement {
|
|
|
3914
3908
|
create_fragment$g,
|
|
3915
3909
|
safe_not_equal,
|
|
3916
3910
|
{
|
|
3917
|
-
|
|
3918
|
-
|
|
3911
|
+
label: 0,
|
|
3912
|
+
helptext: 1,
|
|
3919
3913
|
error: 2,
|
|
3920
|
-
|
|
3921
|
-
optional: 5
|
|
3914
|
+
optional: 4
|
|
3922
3915
|
},
|
|
3923
3916
|
null
|
|
3924
3917
|
);
|
|
@@ -3936,24 +3929,24 @@ class FormItem extends SvelteElement {
|
|
|
3936
3929
|
}
|
|
3937
3930
|
|
|
3938
3931
|
static get observedAttributes() {
|
|
3939
|
-
return ["
|
|
3932
|
+
return ["label", "helptext", "error", "optional"];
|
|
3940
3933
|
}
|
|
3941
3934
|
|
|
3942
|
-
get
|
|
3935
|
+
get label() {
|
|
3943
3936
|
return this.$$.ctx[0];
|
|
3944
3937
|
}
|
|
3945
3938
|
|
|
3946
|
-
set
|
|
3947
|
-
this.$$set({
|
|
3939
|
+
set label(label) {
|
|
3940
|
+
this.$$set({ label });
|
|
3948
3941
|
flush();
|
|
3949
3942
|
}
|
|
3950
3943
|
|
|
3951
|
-
get
|
|
3944
|
+
get helptext() {
|
|
3952
3945
|
return this.$$.ctx[1];
|
|
3953
3946
|
}
|
|
3954
3947
|
|
|
3955
|
-
set
|
|
3956
|
-
this.$$set({
|
|
3948
|
+
set helptext(helptext) {
|
|
3949
|
+
this.$$set({ helptext });
|
|
3957
3950
|
flush();
|
|
3958
3951
|
}
|
|
3959
3952
|
|
|
@@ -3966,17 +3959,8 @@ class FormItem extends SvelteElement {
|
|
|
3966
3959
|
flush();
|
|
3967
3960
|
}
|
|
3968
3961
|
|
|
3969
|
-
get label() {
|
|
3970
|
-
return this.$$.ctx[3];
|
|
3971
|
-
}
|
|
3972
|
-
|
|
3973
|
-
set label(label) {
|
|
3974
|
-
this.$$set({ label });
|
|
3975
|
-
flush();
|
|
3976
|
-
}
|
|
3977
|
-
|
|
3978
3962
|
get optional() {
|
|
3979
|
-
return this.$$.ctx[
|
|
3963
|
+
return this.$$.ctx[4];
|
|
3980
3964
|
}
|
|
3981
3965
|
|
|
3982
3966
|
set optional(optional) {
|
|
@@ -4598,7 +4582,7 @@ function create_if_block_2$3(ctx) {
|
|
|
4598
4582
|
div = element("div");
|
|
4599
4583
|
goa_icon = element("goa-icon");
|
|
4600
4584
|
set_custom_element_data(goa_icon, "data-testid", "leading-icon");
|
|
4601
|
-
set_custom_element_data(goa_icon, "type", /*leadingicon*/ ctx[
|
|
4585
|
+
set_custom_element_data(goa_icon, "type", /*leadingicon*/ ctx[4]);
|
|
4602
4586
|
attr(div, "class", "goa-input-leading-icon");
|
|
4603
4587
|
},
|
|
4604
4588
|
m(target, anchor) {
|
|
@@ -4606,8 +4590,8 @@ function create_if_block_2$3(ctx) {
|
|
|
4606
4590
|
append(div, goa_icon);
|
|
4607
4591
|
},
|
|
4608
4592
|
p(ctx, dirty) {
|
|
4609
|
-
if (dirty & /*leadingicon*/
|
|
4610
|
-
set_custom_element_data(goa_icon, "type", /*leadingicon*/ ctx[
|
|
4593
|
+
if (dirty & /*leadingicon*/ 16) {
|
|
4594
|
+
set_custom_element_data(goa_icon, "type", /*leadingicon*/ ctx[4]);
|
|
4611
4595
|
}
|
|
4612
4596
|
},
|
|
4613
4597
|
d(detaching) {
|
|
@@ -4616,7 +4600,7 @@ function create_if_block_2$3(ctx) {
|
|
|
4616
4600
|
};
|
|
4617
4601
|
}
|
|
4618
4602
|
|
|
4619
|
-
// (
|
|
4603
|
+
// (72:2) {#if trailingicon && !handlesTrailingIconClick}
|
|
4620
4604
|
function create_if_block_1$5(ctx) {
|
|
4621
4605
|
let div;
|
|
4622
4606
|
let goa_icon;
|
|
@@ -4627,7 +4611,7 @@ function create_if_block_1$5(ctx) {
|
|
|
4627
4611
|
goa_icon = element("goa-icon");
|
|
4628
4612
|
set_custom_element_data(goa_icon, "data-testid", "trailing-icon");
|
|
4629
4613
|
set_custom_element_data(goa_icon, "size", "medium");
|
|
4630
|
-
set_custom_element_data(goa_icon, "type", /*trailingicon*/ ctx[
|
|
4614
|
+
set_custom_element_data(goa_icon, "type", /*trailingicon*/ ctx[5]);
|
|
4631
4615
|
attr(div, "class", "goa-input-trailing-icon");
|
|
4632
4616
|
},
|
|
4633
4617
|
m(target, anchor) {
|
|
@@ -4635,8 +4619,8 @@ function create_if_block_1$5(ctx) {
|
|
|
4635
4619
|
append(div, goa_icon);
|
|
4636
4620
|
},
|
|
4637
4621
|
p(ctx, dirty) {
|
|
4638
|
-
if (dirty & /*trailingicon*/
|
|
4639
|
-
set_custom_element_data(goa_icon, "type", /*trailingicon*/ ctx[
|
|
4622
|
+
if (dirty & /*trailingicon*/ 32) {
|
|
4623
|
+
set_custom_element_data(goa_icon, "type", /*trailingicon*/ ctx[5]);
|
|
4640
4624
|
}
|
|
4641
4625
|
},
|
|
4642
4626
|
d(detaching) {
|
|
@@ -4645,7 +4629,7 @@ function create_if_block_1$5(ctx) {
|
|
|
4645
4629
|
};
|
|
4646
4630
|
}
|
|
4647
4631
|
|
|
4648
|
-
// (
|
|
4632
|
+
// (78:2) {#if trailingicon && handlesTrailingIconClick}
|
|
4649
4633
|
function create_if_block$7(ctx) {
|
|
4650
4634
|
let div;
|
|
4651
4635
|
let goa_icon_button;
|
|
@@ -4656,10 +4640,10 @@ function create_if_block$7(ctx) {
|
|
|
4656
4640
|
c() {
|
|
4657
4641
|
div = element("div");
|
|
4658
4642
|
goa_icon_button = element("goa-icon-button");
|
|
4659
|
-
set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[
|
|
4643
|
+
set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[10]);
|
|
4660
4644
|
set_custom_element_data(goa_icon_button, "variant", "nocolor");
|
|
4661
4645
|
set_custom_element_data(goa_icon_button, "size", "medium");
|
|
4662
|
-
set_custom_element_data(goa_icon_button, "type", /*trailingicon*/ ctx[
|
|
4646
|
+
set_custom_element_data(goa_icon_button, "type", /*trailingicon*/ ctx[5]);
|
|
4663
4647
|
set_custom_element_data(goa_icon_button, "data-testid", "trailing-icon-button");
|
|
4664
4648
|
attr(div, "class", "goa-input-trailing-icon");
|
|
4665
4649
|
},
|
|
@@ -4673,12 +4657,12 @@ function create_if_block$7(ctx) {
|
|
|
4673
4657
|
}
|
|
4674
4658
|
},
|
|
4675
4659
|
p(ctx, dirty) {
|
|
4676
|
-
if (dirty & /*isDisabled*/
|
|
4677
|
-
set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[
|
|
4660
|
+
if (dirty & /*isDisabled*/ 1024) {
|
|
4661
|
+
set_custom_element_data(goa_icon_button, "disabled", /*isDisabled*/ ctx[10]);
|
|
4678
4662
|
}
|
|
4679
4663
|
|
|
4680
|
-
if (dirty & /*trailingicon*/
|
|
4681
|
-
set_custom_element_data(goa_icon_button, "type", /*trailingicon*/ ctx[
|
|
4664
|
+
if (dirty & /*trailingicon*/ 32) {
|
|
4665
|
+
set_custom_element_data(goa_icon_button, "type", /*trailingicon*/ ctx[5]);
|
|
4682
4666
|
}
|
|
4683
4667
|
},
|
|
4684
4668
|
d(detaching) {
|
|
@@ -4699,9 +4683,9 @@ function create_fragment$c(ctx) {
|
|
|
4699
4683
|
let div_class_value;
|
|
4700
4684
|
let mounted;
|
|
4701
4685
|
let dispose;
|
|
4702
|
-
let if_block0 = /*leadingicon*/ ctx[
|
|
4703
|
-
let if_block1 = /*trailingicon*/ ctx[
|
|
4704
|
-
let if_block2 = /*trailingicon*/ ctx[
|
|
4686
|
+
let if_block0 = /*leadingicon*/ ctx[4] && create_if_block_2$3(ctx);
|
|
4687
|
+
let if_block1 = /*trailingicon*/ ctx[5] && !/*handlesTrailingIconClick*/ ctx[13] && create_if_block_1$5(ctx);
|
|
4688
|
+
let if_block2 = /*trailingicon*/ ctx[5] && /*handlesTrailingIconClick*/ ctx[13] && create_if_block$7(ctx);
|
|
4705
4689
|
|
|
4706
4690
|
return {
|
|
4707
4691
|
c() {
|
|
@@ -4714,43 +4698,42 @@ function create_fragment$c(ctx) {
|
|
|
4714
4698
|
t2 = space();
|
|
4715
4699
|
if (if_block2) if_block2.c();
|
|
4716
4700
|
this.c = noop;
|
|
4717
|
-
attr(input, "
|
|
4718
|
-
|
|
4719
|
-
input.
|
|
4720
|
-
input
|
|
4721
|
-
attr(input, "data-testid", /*testid*/ ctx[8]);
|
|
4701
|
+
attr(input, "class", input_class_value = `input--${/*variant*/ ctx[6]}`);
|
|
4702
|
+
input.readOnly = /*isReadonly*/ ctx[12];
|
|
4703
|
+
input.disabled = /*isDisabled*/ ctx[10];
|
|
4704
|
+
attr(input, "data-testid", /*testid*/ ctx[7]);
|
|
4722
4705
|
attr(input, "name", /*name*/ ctx[1]);
|
|
4723
4706
|
attr(input, "type", /*type*/ ctx[0]);
|
|
4724
4707
|
input.value = /*value*/ ctx[2];
|
|
4725
|
-
attr(input, "placeholder", /*placeholder*/ ctx[
|
|
4726
|
-
attr(div, "style:width", /*width*/ ctx[
|
|
4708
|
+
attr(input, "placeholder", /*placeholder*/ ctx[3]);
|
|
4709
|
+
attr(div, "style:width", /*width*/ ctx[8]);
|
|
4727
4710
|
|
|
4728
4711
|
attr(div, "class", div_class_value = `
|
|
4729
|
-
goa-input ${/*isDisabled*/ ctx[
|
|
4730
|
-
variant--${/*variant*/ ctx[
|
|
4712
|
+
goa-input ${/*isDisabled*/ ctx[10] ? "goa-input--disabled" : ""}
|
|
4713
|
+
variant--${/*variant*/ ctx[6]}
|
|
4731
4714
|
type--${/*type*/ ctx[0]}
|
|
4732
4715
|
`);
|
|
4733
4716
|
|
|
4734
|
-
toggle_class(div, "error", /*isError*/ ctx[
|
|
4717
|
+
toggle_class(div, "error", /*isError*/ ctx[11]);
|
|
4735
4718
|
},
|
|
4736
4719
|
m(target, anchor) {
|
|
4737
4720
|
insert(target, div, anchor);
|
|
4738
4721
|
if (if_block0) if_block0.m(div, null);
|
|
4739
4722
|
append(div, t0);
|
|
4740
4723
|
append(div, input);
|
|
4741
|
-
/*input_binding*/ ctx[
|
|
4724
|
+
/*input_binding*/ ctx[21](input);
|
|
4742
4725
|
append(div, t1);
|
|
4743
4726
|
if (if_block1) if_block1.m(div, null);
|
|
4744
4727
|
append(div, t2);
|
|
4745
4728
|
if (if_block2) if_block2.m(div, null);
|
|
4746
4729
|
|
|
4747
4730
|
if (!mounted) {
|
|
4748
|
-
dispose = listen(input, "keyup", /*onKeyUp*/ ctx[
|
|
4731
|
+
dispose = listen(input, "keyup", /*onKeyUp*/ ctx[14]);
|
|
4749
4732
|
mounted = true;
|
|
4750
4733
|
}
|
|
4751
4734
|
},
|
|
4752
4735
|
p(ctx, [dirty]) {
|
|
4753
|
-
if (/*leadingicon*/ ctx[
|
|
4736
|
+
if (/*leadingicon*/ ctx[4]) {
|
|
4754
4737
|
if (if_block0) {
|
|
4755
4738
|
if_block0.p(ctx, dirty);
|
|
4756
4739
|
} else {
|
|
@@ -4763,24 +4746,20 @@ function create_fragment$c(ctx) {
|
|
|
4763
4746
|
if_block0 = null;
|
|
4764
4747
|
}
|
|
4765
4748
|
|
|
4766
|
-
if (dirty & /*
|
|
4767
|
-
attr(input, "id", /*id*/ ctx[3]);
|
|
4768
|
-
}
|
|
4769
|
-
|
|
4770
|
-
if (dirty & /*variant*/ 128 && input_class_value !== (input_class_value = `input--${/*variant*/ ctx[7]}`)) {
|
|
4749
|
+
if (dirty & /*variant*/ 64 && input_class_value !== (input_class_value = `input--${/*variant*/ ctx[6]}`)) {
|
|
4771
4750
|
attr(input, "class", input_class_value);
|
|
4772
4751
|
}
|
|
4773
4752
|
|
|
4774
|
-
if (dirty & /*isReadonly*/
|
|
4775
|
-
input.readOnly = /*isReadonly*/ ctx[
|
|
4753
|
+
if (dirty & /*isReadonly*/ 4096) {
|
|
4754
|
+
input.readOnly = /*isReadonly*/ ctx[12];
|
|
4776
4755
|
}
|
|
4777
4756
|
|
|
4778
|
-
if (dirty & /*isDisabled*/
|
|
4779
|
-
input.disabled = /*isDisabled*/ ctx[
|
|
4757
|
+
if (dirty & /*isDisabled*/ 1024) {
|
|
4758
|
+
input.disabled = /*isDisabled*/ ctx[10];
|
|
4780
4759
|
}
|
|
4781
4760
|
|
|
4782
|
-
if (dirty & /*testid*/
|
|
4783
|
-
attr(input, "data-testid", /*testid*/ ctx[
|
|
4761
|
+
if (dirty & /*testid*/ 128) {
|
|
4762
|
+
attr(input, "data-testid", /*testid*/ ctx[7]);
|
|
4784
4763
|
}
|
|
4785
4764
|
|
|
4786
4765
|
if (dirty & /*name*/ 2) {
|
|
@@ -4795,11 +4774,11 @@ function create_fragment$c(ctx) {
|
|
|
4795
4774
|
input.value = /*value*/ ctx[2];
|
|
4796
4775
|
}
|
|
4797
4776
|
|
|
4798
|
-
if (dirty & /*placeholder*/
|
|
4799
|
-
attr(input, "placeholder", /*placeholder*/ ctx[
|
|
4777
|
+
if (dirty & /*placeholder*/ 8) {
|
|
4778
|
+
attr(input, "placeholder", /*placeholder*/ ctx[3]);
|
|
4800
4779
|
}
|
|
4801
4780
|
|
|
4802
|
-
if (/*trailingicon*/ ctx[
|
|
4781
|
+
if (/*trailingicon*/ ctx[5] && !/*handlesTrailingIconClick*/ ctx[13]) {
|
|
4803
4782
|
if (if_block1) {
|
|
4804
4783
|
if_block1.p(ctx, dirty);
|
|
4805
4784
|
} else {
|
|
@@ -4812,7 +4791,7 @@ function create_fragment$c(ctx) {
|
|
|
4812
4791
|
if_block1 = null;
|
|
4813
4792
|
}
|
|
4814
4793
|
|
|
4815
|
-
if (/*trailingicon*/ ctx[
|
|
4794
|
+
if (/*trailingicon*/ ctx[5] && /*handlesTrailingIconClick*/ ctx[13]) {
|
|
4816
4795
|
if (if_block2) {
|
|
4817
4796
|
if_block2.p(ctx, dirty);
|
|
4818
4797
|
} else {
|
|
@@ -4825,20 +4804,20 @@ function create_fragment$c(ctx) {
|
|
|
4825
4804
|
if_block2 = null;
|
|
4826
4805
|
}
|
|
4827
4806
|
|
|
4828
|
-
if (dirty & /*width*/
|
|
4829
|
-
attr(div, "style:width", /*width*/ ctx[
|
|
4807
|
+
if (dirty & /*width*/ 256) {
|
|
4808
|
+
attr(div, "style:width", /*width*/ ctx[8]);
|
|
4830
4809
|
}
|
|
4831
4810
|
|
|
4832
|
-
if (dirty & /*isDisabled, variant, type*/
|
|
4833
|
-
goa-input ${/*isDisabled*/ ctx[
|
|
4834
|
-
variant--${/*variant*/ ctx[
|
|
4811
|
+
if (dirty & /*isDisabled, variant, type*/ 1089 && div_class_value !== (div_class_value = `
|
|
4812
|
+
goa-input ${/*isDisabled*/ ctx[10] ? "goa-input--disabled" : ""}
|
|
4813
|
+
variant--${/*variant*/ ctx[6]}
|
|
4835
4814
|
type--${/*type*/ ctx[0]}
|
|
4836
4815
|
`)) {
|
|
4837
4816
|
attr(div, "class", div_class_value);
|
|
4838
4817
|
}
|
|
4839
4818
|
|
|
4840
|
-
if (dirty & /*isDisabled, variant, type, isError*/
|
|
4841
|
-
toggle_class(div, "error", /*isError*/ ctx[
|
|
4819
|
+
if (dirty & /*isDisabled, variant, type, isError*/ 3137) {
|
|
4820
|
+
toggle_class(div, "error", /*isError*/ ctx[11]);
|
|
4842
4821
|
}
|
|
4843
4822
|
},
|
|
4844
4823
|
i: noop,
|
|
@@ -4846,7 +4825,7 @@ function create_fragment$c(ctx) {
|
|
|
4846
4825
|
d(detaching) {
|
|
4847
4826
|
if (detaching) detach(div);
|
|
4848
4827
|
if (if_block0) if_block0.d();
|
|
4849
|
-
/*input_binding*/ ctx[
|
|
4828
|
+
/*input_binding*/ ctx[21](null);
|
|
4850
4829
|
if (if_block1) if_block1.d();
|
|
4851
4830
|
if (if_block2) if_block2.d();
|
|
4852
4831
|
mounted = false;
|
|
@@ -4868,7 +4847,6 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
4868
4847
|
let { type = "text" } = $$props;
|
|
4869
4848
|
let { name = "" } = $$props;
|
|
4870
4849
|
let { value = "" } = $$props;
|
|
4871
|
-
let { id = "" } = $$props;
|
|
4872
4850
|
let { placeholder = "" } = $$props;
|
|
4873
4851
|
let { leadingicon = null } = $$props;
|
|
4874
4852
|
let { trailingicon = null } = $$props;
|
|
@@ -4897,7 +4875,7 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
4897
4875
|
function input_binding($$value) {
|
|
4898
4876
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
4899
4877
|
inputEl = $$value;
|
|
4900
|
-
$$invalidate(
|
|
4878
|
+
$$invalidate(9, inputEl);
|
|
4901
4879
|
});
|
|
4902
4880
|
}
|
|
4903
4881
|
|
|
@@ -4905,42 +4883,41 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
4905
4883
|
if ('type' in $$props) $$invalidate(0, type = $$props.type);
|
|
4906
4884
|
if ('name' in $$props) $$invalidate(1, name = $$props.name);
|
|
4907
4885
|
if ('value' in $$props) $$invalidate(2, value = $$props.value);
|
|
4908
|
-
if ('
|
|
4909
|
-
if ('
|
|
4910
|
-
if ('
|
|
4911
|
-
if ('
|
|
4912
|
-
if ('
|
|
4913
|
-
if ('
|
|
4914
|
-
if ('
|
|
4915
|
-
if ('
|
|
4916
|
-
if ('
|
|
4917
|
-
if ('
|
|
4918
|
-
if ('
|
|
4919
|
-
if ('width' in $$props) $$invalidate(9, width = $$props.width);
|
|
4886
|
+
if ('placeholder' in $$props) $$invalidate(3, placeholder = $$props.placeholder);
|
|
4887
|
+
if ('leadingicon' in $$props) $$invalidate(4, leadingicon = $$props.leadingicon);
|
|
4888
|
+
if ('trailingicon' in $$props) $$invalidate(5, trailingicon = $$props.trailingicon);
|
|
4889
|
+
if ('variant' in $$props) $$invalidate(6, variant = $$props.variant);
|
|
4890
|
+
if ('disabled' in $$props) $$invalidate(15, disabled = $$props.disabled);
|
|
4891
|
+
if ('handletrailingiconclick' in $$props) $$invalidate(16, handletrailingiconclick = $$props.handletrailingiconclick);
|
|
4892
|
+
if ('focused' in $$props) $$invalidate(17, focused = $$props.focused);
|
|
4893
|
+
if ('readonly' in $$props) $$invalidate(18, readonly = $$props.readonly);
|
|
4894
|
+
if ('error' in $$props) $$invalidate(19, error = $$props.error);
|
|
4895
|
+
if ('testid' in $$props) $$invalidate(7, testid = $$props.testid);
|
|
4896
|
+
if ('width' in $$props) $$invalidate(8, width = $$props.width);
|
|
4920
4897
|
};
|
|
4921
4898
|
|
|
4922
4899
|
$$self.$$.update = () => {
|
|
4923
|
-
if ($$self.$$.dirty & /*handletrailingiconclick*/
|
|
4924
|
-
$$invalidate(
|
|
4900
|
+
if ($$self.$$.dirty & /*handletrailingiconclick*/ 65536) {
|
|
4901
|
+
$$invalidate(13, handlesTrailingIconClick = toBoolean(handletrailingiconclick));
|
|
4925
4902
|
}
|
|
4926
4903
|
|
|
4927
|
-
if ($$self.$$.dirty & /*focused*/
|
|
4928
|
-
$$invalidate(
|
|
4904
|
+
if ($$self.$$.dirty & /*focused*/ 131072) {
|
|
4905
|
+
$$invalidate(20, isFocused = toBoolean(focused));
|
|
4929
4906
|
}
|
|
4930
4907
|
|
|
4931
|
-
if ($$self.$$.dirty & /*readonly*/
|
|
4932
|
-
$$invalidate(
|
|
4908
|
+
if ($$self.$$.dirty & /*readonly*/ 262144) {
|
|
4909
|
+
$$invalidate(12, isReadonly = toBoolean(readonly));
|
|
4933
4910
|
}
|
|
4934
4911
|
|
|
4935
|
-
if ($$self.$$.dirty & /*error*/
|
|
4936
|
-
$$invalidate(
|
|
4912
|
+
if ($$self.$$.dirty & /*error*/ 524288) {
|
|
4913
|
+
$$invalidate(11, isError = toBoolean(error));
|
|
4937
4914
|
}
|
|
4938
4915
|
|
|
4939
|
-
if ($$self.$$.dirty & /*disabled*/
|
|
4940
|
-
$$invalidate(
|
|
4916
|
+
if ($$self.$$.dirty & /*disabled*/ 32768) {
|
|
4917
|
+
$$invalidate(10, isDisabled = toBoolean(disabled));
|
|
4941
4918
|
}
|
|
4942
4919
|
|
|
4943
|
-
if ($$self.$$.dirty & /*isFocused, inputEl*/
|
|
4920
|
+
if ($$self.$$.dirty & /*isFocused, inputEl*/ 1049088) {
|
|
4944
4921
|
if (isFocused && inputEl) {
|
|
4945
4922
|
setTimeout(() => inputEl.focus(), 1);
|
|
4946
4923
|
}
|
|
@@ -4951,7 +4928,6 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
|
4951
4928
|
type,
|
|
4952
4929
|
name,
|
|
4953
4930
|
value,
|
|
4954
|
-
id,
|
|
4955
4931
|
placeholder,
|
|
4956
4932
|
leadingicon,
|
|
4957
4933
|
trailingicon,
|
|
@@ -4993,18 +4969,17 @@ class Input extends SvelteElement {
|
|
|
4993
4969
|
type: 0,
|
|
4994
4970
|
name: 1,
|
|
4995
4971
|
value: 2,
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
width: 9
|
|
4972
|
+
placeholder: 3,
|
|
4973
|
+
leadingicon: 4,
|
|
4974
|
+
trailingicon: 5,
|
|
4975
|
+
variant: 6,
|
|
4976
|
+
disabled: 15,
|
|
4977
|
+
handletrailingiconclick: 16,
|
|
4978
|
+
focused: 17,
|
|
4979
|
+
readonly: 18,
|
|
4980
|
+
error: 19,
|
|
4981
|
+
testid: 7,
|
|
4982
|
+
width: 8
|
|
5008
4983
|
},
|
|
5009
4984
|
null
|
|
5010
4985
|
);
|
|
@@ -5026,7 +5001,6 @@ class Input extends SvelteElement {
|
|
|
5026
5001
|
"type",
|
|
5027
5002
|
"name",
|
|
5028
5003
|
"value",
|
|
5029
|
-
"id",
|
|
5030
5004
|
"placeholder",
|
|
5031
5005
|
"leadingicon",
|
|
5032
5006
|
"trailingicon",
|
|
@@ -5068,17 +5042,8 @@ class Input extends SvelteElement {
|
|
|
5068
5042
|
flush();
|
|
5069
5043
|
}
|
|
5070
5044
|
|
|
5071
|
-
get id() {
|
|
5072
|
-
return this.$$.ctx[3];
|
|
5073
|
-
}
|
|
5074
|
-
|
|
5075
|
-
set id(id) {
|
|
5076
|
-
this.$$set({ id });
|
|
5077
|
-
flush();
|
|
5078
|
-
}
|
|
5079
|
-
|
|
5080
5045
|
get placeholder() {
|
|
5081
|
-
return this.$$.ctx[
|
|
5046
|
+
return this.$$.ctx[3];
|
|
5082
5047
|
}
|
|
5083
5048
|
|
|
5084
5049
|
set placeholder(placeholder) {
|
|
@@ -5087,7 +5052,7 @@ class Input extends SvelteElement {
|
|
|
5087
5052
|
}
|
|
5088
5053
|
|
|
5089
5054
|
get leadingicon() {
|
|
5090
|
-
return this.$$.ctx[
|
|
5055
|
+
return this.$$.ctx[4];
|
|
5091
5056
|
}
|
|
5092
5057
|
|
|
5093
5058
|
set leadingicon(leadingicon) {
|
|
@@ -5096,7 +5061,7 @@ class Input extends SvelteElement {
|
|
|
5096
5061
|
}
|
|
5097
5062
|
|
|
5098
5063
|
get trailingicon() {
|
|
5099
|
-
return this.$$.ctx[
|
|
5064
|
+
return this.$$.ctx[5];
|
|
5100
5065
|
}
|
|
5101
5066
|
|
|
5102
5067
|
set trailingicon(trailingicon) {
|
|
@@ -5105,7 +5070,7 @@ class Input extends SvelteElement {
|
|
|
5105
5070
|
}
|
|
5106
5071
|
|
|
5107
5072
|
get variant() {
|
|
5108
|
-
return this.$$.ctx[
|
|
5073
|
+
return this.$$.ctx[6];
|
|
5109
5074
|
}
|
|
5110
5075
|
|
|
5111
5076
|
set variant(variant) {
|
|
@@ -5114,7 +5079,7 @@ class Input extends SvelteElement {
|
|
|
5114
5079
|
}
|
|
5115
5080
|
|
|
5116
5081
|
get disabled() {
|
|
5117
|
-
return this.$$.ctx[
|
|
5082
|
+
return this.$$.ctx[15];
|
|
5118
5083
|
}
|
|
5119
5084
|
|
|
5120
5085
|
set disabled(disabled) {
|
|
@@ -5123,7 +5088,7 @@ class Input extends SvelteElement {
|
|
|
5123
5088
|
}
|
|
5124
5089
|
|
|
5125
5090
|
get handletrailingiconclick() {
|
|
5126
|
-
return this.$$.ctx[
|
|
5091
|
+
return this.$$.ctx[16];
|
|
5127
5092
|
}
|
|
5128
5093
|
|
|
5129
5094
|
set handletrailingiconclick(handletrailingiconclick) {
|
|
@@ -5132,7 +5097,7 @@ class Input extends SvelteElement {
|
|
|
5132
5097
|
}
|
|
5133
5098
|
|
|
5134
5099
|
get focused() {
|
|
5135
|
-
return this.$$.ctx[
|
|
5100
|
+
return this.$$.ctx[17];
|
|
5136
5101
|
}
|
|
5137
5102
|
|
|
5138
5103
|
set focused(focused) {
|
|
@@ -5141,7 +5106,7 @@ class Input extends SvelteElement {
|
|
|
5141
5106
|
}
|
|
5142
5107
|
|
|
5143
5108
|
get readonly() {
|
|
5144
|
-
return this.$$.ctx[
|
|
5109
|
+
return this.$$.ctx[18];
|
|
5145
5110
|
}
|
|
5146
5111
|
|
|
5147
5112
|
set readonly(readonly) {
|
|
@@ -5150,7 +5115,7 @@ class Input extends SvelteElement {
|
|
|
5150
5115
|
}
|
|
5151
5116
|
|
|
5152
5117
|
get error() {
|
|
5153
|
-
return this.$$.ctx[
|
|
5118
|
+
return this.$$.ctx[19];
|
|
5154
5119
|
}
|
|
5155
5120
|
|
|
5156
5121
|
set error(error) {
|
|
@@ -5159,7 +5124,7 @@ class Input extends SvelteElement {
|
|
|
5159
5124
|
}
|
|
5160
5125
|
|
|
5161
5126
|
get testid() {
|
|
5162
|
-
return this.$$.ctx[
|
|
5127
|
+
return this.$$.ctx[7];
|
|
5163
5128
|
}
|
|
5164
5129
|
|
|
5165
5130
|
set testid(testid) {
|
|
@@ -5168,7 +5133,7 @@ class Input extends SvelteElement {
|
|
|
5168
5133
|
}
|
|
5169
5134
|
|
|
5170
5135
|
get width() {
|
|
5171
|
-
return this.$$.ctx[
|
|
5136
|
+
return this.$$.ctx[8];
|
|
5172
5137
|
}
|
|
5173
5138
|
|
|
5174
5139
|
set width(width) {
|
|
@@ -8206,7 +8171,6 @@ customElements.define("goa-spinner", Spinner);
|
|
|
8206
8171
|
|
|
8207
8172
|
function create_fragment$1(ctx) {
|
|
8208
8173
|
let textarea;
|
|
8209
|
-
let textarea_id_value;
|
|
8210
8174
|
let mounted;
|
|
8211
8175
|
let dispose;
|
|
8212
8176
|
|
|
@@ -8214,60 +8178,55 @@ function create_fragment$1(ctx) {
|
|
|
8214
8178
|
c() {
|
|
8215
8179
|
textarea = element("textarea");
|
|
8216
8180
|
this.c = noop;
|
|
8217
|
-
attr(textarea, "
|
|
8218
|
-
attr(textarea, "
|
|
8219
|
-
|
|
8220
|
-
textarea
|
|
8221
|
-
attr(textarea, "rows", /*rows*/ ctx[4]);
|
|
8181
|
+
attr(textarea, "name", /*name*/ ctx[0]);
|
|
8182
|
+
attr(textarea, "placeholder", /*placeholder*/ ctx[2]);
|
|
8183
|
+
textarea.value = /*value*/ ctx[1];
|
|
8184
|
+
attr(textarea, "rows", /*rows*/ ctx[3]);
|
|
8222
8185
|
attr(textarea, "class", "goa-textarea");
|
|
8223
|
-
textarea.disabled = /*isDisabled*/ ctx[
|
|
8224
|
-
textarea.readOnly = /*isReadonly*/ ctx[
|
|
8225
|
-
attr(textarea, "data-testid", /*testid*/ ctx[
|
|
8226
|
-
toggle_class(textarea, "error", /*isError*/ ctx[
|
|
8186
|
+
textarea.disabled = /*isDisabled*/ ctx[5];
|
|
8187
|
+
textarea.readOnly = /*isReadonly*/ ctx[6];
|
|
8188
|
+
attr(textarea, "data-testid", /*testid*/ ctx[4]);
|
|
8189
|
+
toggle_class(textarea, "error", /*isError*/ ctx[7]);
|
|
8227
8190
|
},
|
|
8228
8191
|
m(target, anchor) {
|
|
8229
8192
|
insert(target, textarea, anchor);
|
|
8230
8193
|
|
|
8231
8194
|
if (!mounted) {
|
|
8232
|
-
dispose = listen(textarea, "keyup", /*onChange*/ ctx[
|
|
8195
|
+
dispose = listen(textarea, "keyup", /*onChange*/ ctx[8]);
|
|
8233
8196
|
mounted = true;
|
|
8234
8197
|
}
|
|
8235
8198
|
},
|
|
8236
8199
|
p(ctx, [dirty]) {
|
|
8237
|
-
if (dirty & /*
|
|
8238
|
-
attr(textarea, "
|
|
8200
|
+
if (dirty & /*name*/ 1) {
|
|
8201
|
+
attr(textarea, "name", /*name*/ ctx[0]);
|
|
8239
8202
|
}
|
|
8240
8203
|
|
|
8241
|
-
if (dirty & /*
|
|
8242
|
-
attr(textarea, "
|
|
8204
|
+
if (dirty & /*placeholder*/ 4) {
|
|
8205
|
+
attr(textarea, "placeholder", /*placeholder*/ ctx[2]);
|
|
8243
8206
|
}
|
|
8244
8207
|
|
|
8245
|
-
if (dirty & /*
|
|
8246
|
-
|
|
8208
|
+
if (dirty & /*value*/ 2) {
|
|
8209
|
+
textarea.value = /*value*/ ctx[1];
|
|
8247
8210
|
}
|
|
8248
8211
|
|
|
8249
|
-
if (dirty & /*
|
|
8250
|
-
textarea
|
|
8212
|
+
if (dirty & /*rows*/ 8) {
|
|
8213
|
+
attr(textarea, "rows", /*rows*/ ctx[3]);
|
|
8251
8214
|
}
|
|
8252
8215
|
|
|
8253
|
-
if (dirty & /*
|
|
8254
|
-
|
|
8255
|
-
}
|
|
8256
|
-
|
|
8257
|
-
if (dirty & /*isDisabled*/ 64) {
|
|
8258
|
-
textarea.disabled = /*isDisabled*/ ctx[6];
|
|
8216
|
+
if (dirty & /*isDisabled*/ 32) {
|
|
8217
|
+
textarea.disabled = /*isDisabled*/ ctx[5];
|
|
8259
8218
|
}
|
|
8260
8219
|
|
|
8261
|
-
if (dirty & /*isReadonly*/
|
|
8262
|
-
textarea.readOnly = /*isReadonly*/ ctx[
|
|
8220
|
+
if (dirty & /*isReadonly*/ 64) {
|
|
8221
|
+
textarea.readOnly = /*isReadonly*/ ctx[6];
|
|
8263
8222
|
}
|
|
8264
8223
|
|
|
8265
|
-
if (dirty & /*testid*/
|
|
8266
|
-
attr(textarea, "data-testid", /*testid*/ ctx[
|
|
8224
|
+
if (dirty & /*testid*/ 16) {
|
|
8225
|
+
attr(textarea, "data-testid", /*testid*/ ctx[4]);
|
|
8267
8226
|
}
|
|
8268
8227
|
|
|
8269
|
-
if (dirty & /*isError*/
|
|
8270
|
-
toggle_class(textarea, "error", /*isError*/ ctx[
|
|
8228
|
+
if (dirty & /*isError*/ 128) {
|
|
8229
|
+
toggle_class(textarea, "error", /*isError*/ ctx[7]);
|
|
8271
8230
|
}
|
|
8272
8231
|
},
|
|
8273
8232
|
i: noop,
|
|
@@ -8284,7 +8243,6 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
8284
8243
|
let isError;
|
|
8285
8244
|
let isDisabled;
|
|
8286
8245
|
let isReadonly;
|
|
8287
|
-
let { id = "" } = $$props;
|
|
8288
8246
|
let { name } = $$props;
|
|
8289
8247
|
let { value = "" } = $$props;
|
|
8290
8248
|
let { placeholder = "" } = $$props;
|
|
@@ -8311,33 +8269,31 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
8311
8269
|
}
|
|
8312
8270
|
|
|
8313
8271
|
$$self.$$set = $$props => {
|
|
8314
|
-
if ('
|
|
8315
|
-
if ('
|
|
8316
|
-
if ('
|
|
8317
|
-
if ('
|
|
8318
|
-
if ('
|
|
8319
|
-
if ('
|
|
8320
|
-
if ('
|
|
8321
|
-
if ('
|
|
8322
|
-
if ('disabled' in $$props) $$invalidate(12, disabled = $$props.disabled);
|
|
8272
|
+
if ('name' in $$props) $$invalidate(0, name = $$props.name);
|
|
8273
|
+
if ('value' in $$props) $$invalidate(1, value = $$props.value);
|
|
8274
|
+
if ('placeholder' in $$props) $$invalidate(2, placeholder = $$props.placeholder);
|
|
8275
|
+
if ('rows' in $$props) $$invalidate(3, rows = $$props.rows);
|
|
8276
|
+
if ('testid' in $$props) $$invalidate(4, testid = $$props.testid);
|
|
8277
|
+
if ('error' in $$props) $$invalidate(9, error = $$props.error);
|
|
8278
|
+
if ('readonly' in $$props) $$invalidate(10, readonly = $$props.readonly);
|
|
8279
|
+
if ('disabled' in $$props) $$invalidate(11, disabled = $$props.disabled);
|
|
8323
8280
|
};
|
|
8324
8281
|
|
|
8325
8282
|
$$self.$$.update = () => {
|
|
8326
|
-
if ($$self.$$.dirty & /*error*/
|
|
8327
|
-
$$invalidate(
|
|
8283
|
+
if ($$self.$$.dirty & /*error*/ 512) {
|
|
8284
|
+
$$invalidate(7, isError = toBoolean(error));
|
|
8328
8285
|
}
|
|
8329
8286
|
|
|
8330
|
-
if ($$self.$$.dirty & /*disabled*/
|
|
8331
|
-
$$invalidate(
|
|
8287
|
+
if ($$self.$$.dirty & /*disabled*/ 2048) {
|
|
8288
|
+
$$invalidate(5, isDisabled = toBoolean(disabled));
|
|
8332
8289
|
}
|
|
8333
8290
|
|
|
8334
|
-
if ($$self.$$.dirty & /*readonly*/
|
|
8335
|
-
$$invalidate(
|
|
8291
|
+
if ($$self.$$.dirty & /*readonly*/ 1024) {
|
|
8292
|
+
$$invalidate(6, isReadonly = toBoolean(readonly));
|
|
8336
8293
|
}
|
|
8337
8294
|
};
|
|
8338
8295
|
|
|
8339
8296
|
return [
|
|
8340
|
-
id,
|
|
8341
8297
|
name,
|
|
8342
8298
|
value,
|
|
8343
8299
|
placeholder,
|
|
@@ -8369,15 +8325,14 @@ class TextArea extends SvelteElement {
|
|
|
8369
8325
|
create_fragment$1,
|
|
8370
8326
|
safe_not_equal,
|
|
8371
8327
|
{
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
|
|
8380
|
-
disabled: 12
|
|
8328
|
+
name: 0,
|
|
8329
|
+
value: 1,
|
|
8330
|
+
placeholder: 2,
|
|
8331
|
+
rows: 3,
|
|
8332
|
+
testid: 4,
|
|
8333
|
+
error: 9,
|
|
8334
|
+
readonly: 10,
|
|
8335
|
+
disabled: 11
|
|
8381
8336
|
},
|
|
8382
8337
|
null
|
|
8383
8338
|
);
|
|
@@ -8396,7 +8351,6 @@ class TextArea extends SvelteElement {
|
|
|
8396
8351
|
|
|
8397
8352
|
static get observedAttributes() {
|
|
8398
8353
|
return [
|
|
8399
|
-
"id",
|
|
8400
8354
|
"name",
|
|
8401
8355
|
"value",
|
|
8402
8356
|
"placeholder",
|
|
@@ -8408,17 +8362,8 @@ class TextArea extends SvelteElement {
|
|
|
8408
8362
|
];
|
|
8409
8363
|
}
|
|
8410
8364
|
|
|
8411
|
-
get id() {
|
|
8412
|
-
return this.$$.ctx[0];
|
|
8413
|
-
}
|
|
8414
|
-
|
|
8415
|
-
set id(id) {
|
|
8416
|
-
this.$$set({ id });
|
|
8417
|
-
flush();
|
|
8418
|
-
}
|
|
8419
|
-
|
|
8420
8365
|
get name() {
|
|
8421
|
-
return this.$$.ctx[
|
|
8366
|
+
return this.$$.ctx[0];
|
|
8422
8367
|
}
|
|
8423
8368
|
|
|
8424
8369
|
set name(name) {
|
|
@@ -8427,7 +8372,7 @@ class TextArea extends SvelteElement {
|
|
|
8427
8372
|
}
|
|
8428
8373
|
|
|
8429
8374
|
get value() {
|
|
8430
|
-
return this.$$.ctx[
|
|
8375
|
+
return this.$$.ctx[1];
|
|
8431
8376
|
}
|
|
8432
8377
|
|
|
8433
8378
|
set value(value) {
|
|
@@ -8436,7 +8381,7 @@ class TextArea extends SvelteElement {
|
|
|
8436
8381
|
}
|
|
8437
8382
|
|
|
8438
8383
|
get placeholder() {
|
|
8439
|
-
return this.$$.ctx[
|
|
8384
|
+
return this.$$.ctx[2];
|
|
8440
8385
|
}
|
|
8441
8386
|
|
|
8442
8387
|
set placeholder(placeholder) {
|
|
@@ -8445,7 +8390,7 @@ class TextArea extends SvelteElement {
|
|
|
8445
8390
|
}
|
|
8446
8391
|
|
|
8447
8392
|
get rows() {
|
|
8448
|
-
return this.$$.ctx[
|
|
8393
|
+
return this.$$.ctx[3];
|
|
8449
8394
|
}
|
|
8450
8395
|
|
|
8451
8396
|
set rows(rows) {
|
|
@@ -8454,7 +8399,7 @@ class TextArea extends SvelteElement {
|
|
|
8454
8399
|
}
|
|
8455
8400
|
|
|
8456
8401
|
get testid() {
|
|
8457
|
-
return this.$$.ctx[
|
|
8402
|
+
return this.$$.ctx[4];
|
|
8458
8403
|
}
|
|
8459
8404
|
|
|
8460
8405
|
set testid(testid) {
|
|
@@ -8463,7 +8408,7 @@ class TextArea extends SvelteElement {
|
|
|
8463
8408
|
}
|
|
8464
8409
|
|
|
8465
8410
|
get error() {
|
|
8466
|
-
return this.$$.ctx[
|
|
8411
|
+
return this.$$.ctx[9];
|
|
8467
8412
|
}
|
|
8468
8413
|
|
|
8469
8414
|
set error(error) {
|
|
@@ -8472,7 +8417,7 @@ class TextArea extends SvelteElement {
|
|
|
8472
8417
|
}
|
|
8473
8418
|
|
|
8474
8419
|
get readonly() {
|
|
8475
|
-
return this.$$.ctx[
|
|
8420
|
+
return this.$$.ctx[10];
|
|
8476
8421
|
}
|
|
8477
8422
|
|
|
8478
8423
|
set readonly(readonly) {
|
|
@@ -8481,7 +8426,7 @@ class TextArea extends SvelteElement {
|
|
|
8481
8426
|
}
|
|
8482
8427
|
|
|
8483
8428
|
get disabled() {
|
|
8484
|
-
return this.$$.ctx[
|
|
8429
|
+
return this.$$.ctx[11];
|
|
8485
8430
|
}
|
|
8486
8431
|
|
|
8487
8432
|
set disabled(disabled) {
|