@abgov/react-components 4.0.0-alpha.51 → 4.0.0-alpha.53
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 +3 -3
- package/package.json +1 -1
- package/react-components.esm.js +80 -44
- package/react-components.umd.js +80 -44
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { FC, ReactNode } from 'react';
|
|
2
|
-
declare type
|
|
2
|
+
declare type ContainerType = 'interactive' | 'non-interactive' | 'info' | 'error' | 'success' | 'warning';
|
|
3
3
|
declare type HeadingSize = 'large' | 'small' | 'none';
|
|
4
4
|
declare type ContainerPadding = "relaxed" | "compact";
|
|
5
5
|
interface WCProps {
|
|
6
|
-
|
|
6
|
+
type?: ContainerType;
|
|
7
7
|
headingsize?: HeadingSize;
|
|
8
8
|
colored?: boolean;
|
|
9
9
|
padding?: ContainerPadding;
|
|
@@ -17,7 +17,7 @@ declare global {
|
|
|
17
17
|
}
|
|
18
18
|
interface Props {
|
|
19
19
|
headingSize?: HeadingSize;
|
|
20
|
-
|
|
20
|
+
type?: ContainerType;
|
|
21
21
|
title?: ReactNode;
|
|
22
22
|
colored?: boolean;
|
|
23
23
|
padding?: ContainerPadding;
|
package/package.json
CHANGED
package/react-components.esm.js
CHANGED
|
@@ -4483,7 +4483,7 @@ function create_fragment$r(ctx) {
|
|
|
4483
4483
|
attr(div3, "class", div3_class_value = `
|
|
4484
4484
|
goa-container
|
|
4485
4485
|
goa-container--${
|
|
4486
|
-
/*
|
|
4486
|
+
/*type*/
|
|
4487
4487
|
ctx[0]}
|
|
4488
4488
|
padding--${
|
|
4489
4489
|
/*padding*/
|
|
@@ -4514,11 +4514,11 @@ function create_fragment$r(ctx) {
|
|
|
4514
4514
|
}
|
|
4515
4515
|
|
|
4516
4516
|
if (dirty &
|
|
4517
|
-
/*
|
|
4517
|
+
/*type, padding*/
|
|
4518
4518
|
5 && div3_class_value !== (div3_class_value = `
|
|
4519
4519
|
goa-container
|
|
4520
4520
|
goa-container--${
|
|
4521
|
-
/*
|
|
4521
|
+
/*type*/
|
|
4522
4522
|
ctx[0]}
|
|
4523
4523
|
padding--${
|
|
4524
4524
|
/*padding*/
|
|
@@ -4528,7 +4528,7 @@ function create_fragment$r(ctx) {
|
|
|
4528
4528
|
}
|
|
4529
4529
|
|
|
4530
4530
|
if (dirty &
|
|
4531
|
-
/*
|
|
4531
|
+
/*type, padding, _colored*/
|
|
4532
4532
|
13) {
|
|
4533
4533
|
toggle_class(div3, "colored",
|
|
4534
4534
|
/*_colored*/
|
|
@@ -4550,7 +4550,7 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
4550
4550
|
let _colored;
|
|
4551
4551
|
|
|
4552
4552
|
let {
|
|
4553
|
-
|
|
4553
|
+
type = 'non-interactive'
|
|
4554
4554
|
} = $$props;
|
|
4555
4555
|
let {
|
|
4556
4556
|
colored = "false"
|
|
@@ -4563,7 +4563,7 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
4563
4563
|
} = $$props;
|
|
4564
4564
|
|
|
4565
4565
|
$$self.$$set = $$props => {
|
|
4566
|
-
if ('
|
|
4566
|
+
if ('type' in $$props) $$invalidate(0, type = $$props.type);
|
|
4567
4567
|
if ('colored' in $$props) $$invalidate(4, colored = $$props.colored);
|
|
4568
4568
|
if ('headingsize' in $$props) $$invalidate(1, headingsize = $$props.headingsize);
|
|
4569
4569
|
if ('padding' in $$props) $$invalidate(2, padding = $$props.padding);
|
|
@@ -4577,7 +4577,7 @@ function instance$p($$self, $$props, $$invalidate) {
|
|
|
4577
4577
|
}
|
|
4578
4578
|
};
|
|
4579
4579
|
|
|
4580
|
-
return [
|
|
4580
|
+
return [type, headingsize, padding, _colored, colored];
|
|
4581
4581
|
}
|
|
4582
4582
|
|
|
4583
4583
|
class Container extends SvelteElement {
|
|
@@ -4589,7 +4589,7 @@ class Container extends SvelteElement {
|
|
|
4589
4589
|
props: attribute_to_object(this.attributes),
|
|
4590
4590
|
customElement: true
|
|
4591
4591
|
}, instance$p, create_fragment$r, safe_not_equal, {
|
|
4592
|
-
|
|
4592
|
+
type: 0,
|
|
4593
4593
|
colored: 4,
|
|
4594
4594
|
headingsize: 1,
|
|
4595
4595
|
padding: 2
|
|
@@ -4608,16 +4608,16 @@ class Container extends SvelteElement {
|
|
|
4608
4608
|
}
|
|
4609
4609
|
|
|
4610
4610
|
static get observedAttributes() {
|
|
4611
|
-
return ["
|
|
4611
|
+
return ["type", "colored", "headingsize", "padding"];
|
|
4612
4612
|
}
|
|
4613
4613
|
|
|
4614
|
-
get
|
|
4614
|
+
get type() {
|
|
4615
4615
|
return this.$$.ctx[0];
|
|
4616
4616
|
}
|
|
4617
4617
|
|
|
4618
|
-
set
|
|
4618
|
+
set type(type) {
|
|
4619
4619
|
this.$$set({
|
|
4620
|
-
|
|
4620
|
+
type
|
|
4621
4621
|
});
|
|
4622
4622
|
flush();
|
|
4623
4623
|
}
|
|
@@ -4811,18 +4811,18 @@ function create_if_block$c(ctx) {
|
|
|
4811
4811
|
}
|
|
4812
4812
|
|
|
4813
4813
|
};
|
|
4814
|
-
} // (
|
|
4814
|
+
} // (239:4) {#each options as option, index}
|
|
4815
4815
|
|
|
4816
4816
|
|
|
4817
4817
|
function create_each_block$4(ctx) {
|
|
4818
4818
|
let li;
|
|
4819
|
-
let
|
|
4819
|
+
let t_value = (
|
|
4820
4820
|
/*option*/
|
|
4821
4821
|
ctx[39].label ||
|
|
4822
4822
|
/*option*/
|
|
4823
4823
|
ctx[39].value) + "";
|
|
4824
|
-
let
|
|
4825
|
-
let
|
|
4824
|
+
let t;
|
|
4825
|
+
let li_id_value;
|
|
4826
4826
|
let li_aria_label_value;
|
|
4827
4827
|
let li_data_testid_value;
|
|
4828
4828
|
let li_data_index_value;
|
|
@@ -4842,13 +4842,16 @@ function create_each_block$4(ctx) {
|
|
|
4842
4842
|
return {
|
|
4843
4843
|
c() {
|
|
4844
4844
|
li = element("li");
|
|
4845
|
-
|
|
4846
|
-
|
|
4845
|
+
t = text(t_value);
|
|
4846
|
+
attr(li, "id", li_id_value =
|
|
4847
|
+
/*option*/
|
|
4848
|
+
ctx[39].label);
|
|
4847
4849
|
attr(li, "aria-label", li_aria_label_value =
|
|
4848
4850
|
/*option*/
|
|
4849
4851
|
ctx[39].label ||
|
|
4850
4852
|
/*option*/
|
|
4851
4853
|
ctx[39].value);
|
|
4854
|
+
attr(li, "role", "option");
|
|
4852
4855
|
attr(li, "data-testid", li_data_testid_value = `${
|
|
4853
4856
|
/*option*/
|
|
4854
4857
|
ctx[39].value}-dropdown-item`);
|
|
@@ -4872,8 +4875,7 @@ function create_each_block$4(ctx) {
|
|
|
4872
4875
|
|
|
4873
4876
|
m(target, anchor) {
|
|
4874
4877
|
insert(target, li, anchor);
|
|
4875
|
-
append(li,
|
|
4876
|
-
append(li, t1);
|
|
4878
|
+
append(li, t);
|
|
4877
4879
|
|
|
4878
4880
|
if (!mounted) {
|
|
4879
4881
|
dispose = listen(li, "click", click_handler);
|
|
@@ -4885,11 +4887,19 @@ function create_each_block$4(ctx) {
|
|
|
4885
4887
|
ctx = new_ctx;
|
|
4886
4888
|
if (dirty[0] &
|
|
4887
4889
|
/*options*/
|
|
4888
|
-
1024 &&
|
|
4890
|
+
1024 && t_value !== (t_value = (
|
|
4889
4891
|
/*option*/
|
|
4890
4892
|
ctx[39].label ||
|
|
4891
4893
|
/*option*/
|
|
4892
|
-
ctx[39].value) + "")) set_data(
|
|
4894
|
+
ctx[39].value) + "")) set_data(t, t_value);
|
|
4895
|
+
|
|
4896
|
+
if (dirty[0] &
|
|
4897
|
+
/*options*/
|
|
4898
|
+
1024 && li_id_value !== (li_id_value =
|
|
4899
|
+
/*option*/
|
|
4900
|
+
ctx[39].label)) {
|
|
4901
|
+
attr(li, "id", li_id_value);
|
|
4902
|
+
}
|
|
4893
4903
|
|
|
4894
4904
|
if (dirty[0] &
|
|
4895
4905
|
/*options*/
|
|
@@ -4949,8 +4959,8 @@ function create_fragment$q(ctx) {
|
|
|
4949
4959
|
let div0_data_testid_value;
|
|
4950
4960
|
let t1;
|
|
4951
4961
|
let ul;
|
|
4952
|
-
let slot;
|
|
4953
4962
|
let t2;
|
|
4963
|
+
let slot;
|
|
4954
4964
|
let ul_style_value;
|
|
4955
4965
|
let div1_style_value;
|
|
4956
4966
|
let mounted;
|
|
@@ -4976,13 +4986,13 @@ function create_fragment$q(ctx) {
|
|
|
4976
4986
|
goa_input = element("goa-input");
|
|
4977
4987
|
t1 = space();
|
|
4978
4988
|
ul = element("ul");
|
|
4979
|
-
slot = element("slot");
|
|
4980
|
-
t2 = space();
|
|
4981
4989
|
|
|
4982
4990
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
4983
4991
|
each_blocks[i].c();
|
|
4984
4992
|
}
|
|
4985
4993
|
|
|
4994
|
+
t2 = space();
|
|
4995
|
+
slot = element("slot");
|
|
4986
4996
|
this.c = noop;
|
|
4987
4997
|
set_custom_element_data(goa_input, "error",
|
|
4988
4998
|
/*error*/
|
|
@@ -5000,11 +5010,16 @@ function create_fragment$q(ctx) {
|
|
|
5000
5010
|
set_custom_element_data(goa_input, "id", goa_input_id_value = `${
|
|
5001
5011
|
/*name*/
|
|
5002
5012
|
ctx[0]}-dropdown-input`);
|
|
5013
|
+
set_custom_element_data(goa_input, "role", "combobox");
|
|
5003
5014
|
set_custom_element_data(goa_input, "aria-label", goa_input_aria_label_value =
|
|
5004
5015
|
/*arialabel*/
|
|
5005
5016
|
ctx[1] ||
|
|
5006
5017
|
/*name*/
|
|
5007
5018
|
ctx[0]);
|
|
5019
|
+
set_custom_element_data(goa_input, "aria-expanded",
|
|
5020
|
+
/*isMenuVisible*/
|
|
5021
|
+
ctx[12]);
|
|
5022
|
+
set_custom_element_data(goa_input, "aria-controls", "menu");
|
|
5008
5023
|
set_custom_element_data(goa_input, "readonly", "");
|
|
5009
5024
|
set_custom_element_data(goa_input, "trailingicon", "chevron-down");
|
|
5010
5025
|
set_custom_element_data(goa_input, "type", "text");
|
|
@@ -5014,6 +5029,11 @@ function create_fragment$q(ctx) {
|
|
|
5014
5029
|
attr(div0, "data-testid", div0_data_testid_value = `${
|
|
5015
5030
|
/*name*/
|
|
5016
5031
|
ctx[0]}-dropdown`);
|
|
5032
|
+
attr(ul, "id", "menu");
|
|
5033
|
+
attr(ul, "role", "listbox");
|
|
5034
|
+
attr(ul, "aria-activedescendant",
|
|
5035
|
+
/*selectedLabel*/
|
|
5036
|
+
ctx[11]);
|
|
5017
5037
|
attr(ul, "data-testid", "dropdown-menu");
|
|
5018
5038
|
attr(ul, "tabindex", "0");
|
|
5019
5039
|
attr(ul, "class", "goa-dropdown-list");
|
|
@@ -5042,14 +5062,14 @@ function create_fragment$q(ctx) {
|
|
|
5042
5062
|
append(div0, goa_input);
|
|
5043
5063
|
append(div1, t1);
|
|
5044
5064
|
append(div1, ul);
|
|
5045
|
-
append(ul, slot);
|
|
5046
|
-
append(ul, t2);
|
|
5047
5065
|
|
|
5048
5066
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
5049
5067
|
each_blocks[i].m(ul, null);
|
|
5050
5068
|
}
|
|
5051
|
-
/*ul_binding*/
|
|
5052
5069
|
|
|
5070
|
+
append(ul, t2);
|
|
5071
|
+
append(ul, slot);
|
|
5072
|
+
/*ul_binding*/
|
|
5053
5073
|
|
|
5054
5074
|
ctx[23](ul);
|
|
5055
5075
|
/*div1_binding*/
|
|
@@ -5130,6 +5150,14 @@ function create_fragment$q(ctx) {
|
|
|
5130
5150
|
set_custom_element_data(goa_input, "aria-label", goa_input_aria_label_value);
|
|
5131
5151
|
}
|
|
5132
5152
|
|
|
5153
|
+
if (dirty[0] &
|
|
5154
|
+
/*isMenuVisible*/
|
|
5155
|
+
4096) {
|
|
5156
|
+
set_custom_element_data(goa_input, "aria-expanded",
|
|
5157
|
+
/*isMenuVisible*/
|
|
5158
|
+
ctx[12]);
|
|
5159
|
+
}
|
|
5160
|
+
|
|
5133
5161
|
if (dirty[0] &
|
|
5134
5162
|
/*selectedLabel*/
|
|
5135
5163
|
2048) {
|
|
@@ -5162,7 +5190,7 @@ function create_fragment$q(ctx) {
|
|
|
5162
5190
|
} else {
|
|
5163
5191
|
each_blocks[i] = create_each_block$4(child_ctx);
|
|
5164
5192
|
each_blocks[i].c();
|
|
5165
|
-
each_blocks[i].m(ul,
|
|
5193
|
+
each_blocks[i].m(ul, t2);
|
|
5166
5194
|
}
|
|
5167
5195
|
}
|
|
5168
5196
|
|
|
@@ -5173,6 +5201,14 @@ function create_fragment$q(ctx) {
|
|
|
5173
5201
|
each_blocks.length = each_value.length;
|
|
5174
5202
|
}
|
|
5175
5203
|
|
|
5204
|
+
if (dirty[0] &
|
|
5205
|
+
/*selectedLabel*/
|
|
5206
|
+
2048) {
|
|
5207
|
+
attr(ul, "aria-activedescendant",
|
|
5208
|
+
/*selectedLabel*/
|
|
5209
|
+
ctx[11]);
|
|
5210
|
+
}
|
|
5211
|
+
|
|
5176
5212
|
if (dirty[0] &
|
|
5177
5213
|
/*maxheight*/
|
|
5178
5214
|
8 && ul_style_value !== (ul_style_value = `overflow-y: auto; max-height: ${
|
|
@@ -13533,8 +13569,8 @@ function create_fragment$2(ctx) {
|
|
|
13533
13569
|
this.c = noop;
|
|
13534
13570
|
attr(div, "class", "content");
|
|
13535
13571
|
attr(div, "slot", "");
|
|
13536
|
-
set_custom_element_data(goa_container, "
|
|
13537
|
-
/*
|
|
13572
|
+
set_custom_element_data(goa_container, "type",
|
|
13573
|
+
/*type*/
|
|
13538
13574
|
ctx[3]);
|
|
13539
13575
|
set_custom_element_data(goa_container, "headingsize",
|
|
13540
13576
|
/*headingsize*/
|
|
@@ -13591,10 +13627,10 @@ function create_fragment$2(ctx) {
|
|
|
13591
13627
|
ctx[2];
|
|
13592
13628
|
|
|
13593
13629
|
if (dirty &
|
|
13594
|
-
/*
|
|
13630
|
+
/*type*/
|
|
13595
13631
|
8) {
|
|
13596
|
-
set_custom_element_data(goa_container, "
|
|
13597
|
-
/*
|
|
13632
|
+
set_custom_element_data(goa_container, "type",
|
|
13633
|
+
/*type*/
|
|
13598
13634
|
ctx[3]);
|
|
13599
13635
|
}
|
|
13600
13636
|
|
|
@@ -13630,7 +13666,7 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
13630
13666
|
content
|
|
13631
13667
|
} = $$props;
|
|
13632
13668
|
let {
|
|
13633
|
-
|
|
13669
|
+
type = "default"
|
|
13634
13670
|
} = $$props;
|
|
13635
13671
|
let {
|
|
13636
13672
|
headingsize = "large"
|
|
@@ -13640,11 +13676,11 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
13640
13676
|
if ('title' in $$props) $$invalidate(0, title = $$props.title);
|
|
13641
13677
|
if ('actions' in $$props) $$invalidate(1, actions = $$props.actions);
|
|
13642
13678
|
if ('content' in $$props) $$invalidate(2, content = $$props.content);
|
|
13643
|
-
if ('
|
|
13679
|
+
if ('type' in $$props) $$invalidate(3, type = $$props.type);
|
|
13644
13680
|
if ('headingsize' in $$props) $$invalidate(4, headingsize = $$props.headingsize);
|
|
13645
13681
|
};
|
|
13646
13682
|
|
|
13647
|
-
return [title, actions, content,
|
|
13683
|
+
return [title, actions, content, type, headingsize];
|
|
13648
13684
|
}
|
|
13649
13685
|
|
|
13650
13686
|
class ContainerWrapper_test extends SvelteElement {
|
|
@@ -13658,7 +13694,7 @@ class ContainerWrapper_test extends SvelteElement {
|
|
|
13658
13694
|
title: 0,
|
|
13659
13695
|
actions: 1,
|
|
13660
13696
|
content: 2,
|
|
13661
|
-
|
|
13697
|
+
type: 3,
|
|
13662
13698
|
headingsize: 4
|
|
13663
13699
|
}, null);
|
|
13664
13700
|
|
|
@@ -13675,7 +13711,7 @@ class ContainerWrapper_test extends SvelteElement {
|
|
|
13675
13711
|
}
|
|
13676
13712
|
|
|
13677
13713
|
static get observedAttributes() {
|
|
13678
|
-
return ["title", "actions", "content", "
|
|
13714
|
+
return ["title", "actions", "content", "type", "headingsize"];
|
|
13679
13715
|
}
|
|
13680
13716
|
|
|
13681
13717
|
get title() {
|
|
@@ -13711,13 +13747,13 @@ class ContainerWrapper_test extends SvelteElement {
|
|
|
13711
13747
|
flush();
|
|
13712
13748
|
}
|
|
13713
13749
|
|
|
13714
|
-
get
|
|
13750
|
+
get type() {
|
|
13715
13751
|
return this.$$.ctx[3];
|
|
13716
13752
|
}
|
|
13717
13753
|
|
|
13718
|
-
set
|
|
13754
|
+
set type(type) {
|
|
13719
13755
|
this.$$set({
|
|
13720
|
-
|
|
13756
|
+
type
|
|
13721
13757
|
});
|
|
13722
13758
|
flush();
|
|
13723
13759
|
}
|
|
@@ -14174,10 +14210,10 @@ const GoAContainer = ({
|
|
|
14174
14210
|
padding,
|
|
14175
14211
|
children,
|
|
14176
14212
|
actions,
|
|
14177
|
-
|
|
14213
|
+
type
|
|
14178
14214
|
}) => {
|
|
14179
14215
|
return jsxs("goa-container", Object.assign({
|
|
14180
|
-
|
|
14216
|
+
type: type,
|
|
14181
14217
|
padding: padding,
|
|
14182
14218
|
headingsize: headingSize,
|
|
14183
14219
|
colored: _colored
|
package/react-components.umd.js
CHANGED
|
@@ -4525,7 +4525,7 @@
|
|
|
4525
4525
|
attr(div3, "class", div3_class_value = `
|
|
4526
4526
|
goa-container
|
|
4527
4527
|
goa-container--${
|
|
4528
|
-
/*
|
|
4528
|
+
/*type*/
|
|
4529
4529
|
ctx[0]}
|
|
4530
4530
|
padding--${
|
|
4531
4531
|
/*padding*/
|
|
@@ -4556,11 +4556,11 @@
|
|
|
4556
4556
|
}
|
|
4557
4557
|
|
|
4558
4558
|
if (dirty &
|
|
4559
|
-
/*
|
|
4559
|
+
/*type, padding*/
|
|
4560
4560
|
5 && div3_class_value !== (div3_class_value = `
|
|
4561
4561
|
goa-container
|
|
4562
4562
|
goa-container--${
|
|
4563
|
-
/*
|
|
4563
|
+
/*type*/
|
|
4564
4564
|
ctx[0]}
|
|
4565
4565
|
padding--${
|
|
4566
4566
|
/*padding*/
|
|
@@ -4570,7 +4570,7 @@
|
|
|
4570
4570
|
}
|
|
4571
4571
|
|
|
4572
4572
|
if (dirty &
|
|
4573
|
-
/*
|
|
4573
|
+
/*type, padding, _colored*/
|
|
4574
4574
|
13) {
|
|
4575
4575
|
toggle_class(div3, "colored",
|
|
4576
4576
|
/*_colored*/
|
|
@@ -4592,7 +4592,7 @@
|
|
|
4592
4592
|
let _colored;
|
|
4593
4593
|
|
|
4594
4594
|
let {
|
|
4595
|
-
|
|
4595
|
+
type = 'non-interactive'
|
|
4596
4596
|
} = $$props;
|
|
4597
4597
|
let {
|
|
4598
4598
|
colored = "false"
|
|
@@ -4605,7 +4605,7 @@
|
|
|
4605
4605
|
} = $$props;
|
|
4606
4606
|
|
|
4607
4607
|
$$self.$$set = $$props => {
|
|
4608
|
-
if ('
|
|
4608
|
+
if ('type' in $$props) $$invalidate(0, type = $$props.type);
|
|
4609
4609
|
if ('colored' in $$props) $$invalidate(4, colored = $$props.colored);
|
|
4610
4610
|
if ('headingsize' in $$props) $$invalidate(1, headingsize = $$props.headingsize);
|
|
4611
4611
|
if ('padding' in $$props) $$invalidate(2, padding = $$props.padding);
|
|
@@ -4619,7 +4619,7 @@
|
|
|
4619
4619
|
}
|
|
4620
4620
|
};
|
|
4621
4621
|
|
|
4622
|
-
return [
|
|
4622
|
+
return [type, headingsize, padding, _colored, colored];
|
|
4623
4623
|
}
|
|
4624
4624
|
|
|
4625
4625
|
class Container extends SvelteElement {
|
|
@@ -4631,7 +4631,7 @@
|
|
|
4631
4631
|
props: attribute_to_object(this.attributes),
|
|
4632
4632
|
customElement: true
|
|
4633
4633
|
}, instance$p, create_fragment$r, safe_not_equal, {
|
|
4634
|
-
|
|
4634
|
+
type: 0,
|
|
4635
4635
|
colored: 4,
|
|
4636
4636
|
headingsize: 1,
|
|
4637
4637
|
padding: 2
|
|
@@ -4650,16 +4650,16 @@
|
|
|
4650
4650
|
}
|
|
4651
4651
|
|
|
4652
4652
|
static get observedAttributes() {
|
|
4653
|
-
return ["
|
|
4653
|
+
return ["type", "colored", "headingsize", "padding"];
|
|
4654
4654
|
}
|
|
4655
4655
|
|
|
4656
|
-
get
|
|
4656
|
+
get type() {
|
|
4657
4657
|
return this.$$.ctx[0];
|
|
4658
4658
|
}
|
|
4659
4659
|
|
|
4660
|
-
set
|
|
4660
|
+
set type(type) {
|
|
4661
4661
|
this.$$set({
|
|
4662
|
-
|
|
4662
|
+
type
|
|
4663
4663
|
});
|
|
4664
4664
|
flush();
|
|
4665
4665
|
}
|
|
@@ -4853,18 +4853,18 @@
|
|
|
4853
4853
|
}
|
|
4854
4854
|
|
|
4855
4855
|
};
|
|
4856
|
-
} // (
|
|
4856
|
+
} // (239:4) {#each options as option, index}
|
|
4857
4857
|
|
|
4858
4858
|
|
|
4859
4859
|
function create_each_block$4(ctx) {
|
|
4860
4860
|
let li;
|
|
4861
|
-
let
|
|
4861
|
+
let t_value = (
|
|
4862
4862
|
/*option*/
|
|
4863
4863
|
ctx[39].label ||
|
|
4864
4864
|
/*option*/
|
|
4865
4865
|
ctx[39].value) + "";
|
|
4866
|
-
let
|
|
4867
|
-
let
|
|
4866
|
+
let t;
|
|
4867
|
+
let li_id_value;
|
|
4868
4868
|
let li_aria_label_value;
|
|
4869
4869
|
let li_data_testid_value;
|
|
4870
4870
|
let li_data_index_value;
|
|
@@ -4884,13 +4884,16 @@
|
|
|
4884
4884
|
return {
|
|
4885
4885
|
c() {
|
|
4886
4886
|
li = element("li");
|
|
4887
|
-
|
|
4888
|
-
|
|
4887
|
+
t = text(t_value);
|
|
4888
|
+
attr(li, "id", li_id_value =
|
|
4889
|
+
/*option*/
|
|
4890
|
+
ctx[39].label);
|
|
4889
4891
|
attr(li, "aria-label", li_aria_label_value =
|
|
4890
4892
|
/*option*/
|
|
4891
4893
|
ctx[39].label ||
|
|
4892
4894
|
/*option*/
|
|
4893
4895
|
ctx[39].value);
|
|
4896
|
+
attr(li, "role", "option");
|
|
4894
4897
|
attr(li, "data-testid", li_data_testid_value = `${
|
|
4895
4898
|
/*option*/
|
|
4896
4899
|
ctx[39].value}-dropdown-item`);
|
|
@@ -4914,8 +4917,7 @@
|
|
|
4914
4917
|
|
|
4915
4918
|
m(target, anchor) {
|
|
4916
4919
|
insert(target, li, anchor);
|
|
4917
|
-
append(li,
|
|
4918
|
-
append(li, t1);
|
|
4920
|
+
append(li, t);
|
|
4919
4921
|
|
|
4920
4922
|
if (!mounted) {
|
|
4921
4923
|
dispose = listen(li, "click", click_handler);
|
|
@@ -4927,11 +4929,19 @@
|
|
|
4927
4929
|
ctx = new_ctx;
|
|
4928
4930
|
if (dirty[0] &
|
|
4929
4931
|
/*options*/
|
|
4930
|
-
1024 &&
|
|
4932
|
+
1024 && t_value !== (t_value = (
|
|
4931
4933
|
/*option*/
|
|
4932
4934
|
ctx[39].label ||
|
|
4933
4935
|
/*option*/
|
|
4934
|
-
ctx[39].value) + "")) set_data(
|
|
4936
|
+
ctx[39].value) + "")) set_data(t, t_value);
|
|
4937
|
+
|
|
4938
|
+
if (dirty[0] &
|
|
4939
|
+
/*options*/
|
|
4940
|
+
1024 && li_id_value !== (li_id_value =
|
|
4941
|
+
/*option*/
|
|
4942
|
+
ctx[39].label)) {
|
|
4943
|
+
attr(li, "id", li_id_value);
|
|
4944
|
+
}
|
|
4935
4945
|
|
|
4936
4946
|
if (dirty[0] &
|
|
4937
4947
|
/*options*/
|
|
@@ -4991,8 +5001,8 @@
|
|
|
4991
5001
|
let div0_data_testid_value;
|
|
4992
5002
|
let t1;
|
|
4993
5003
|
let ul;
|
|
4994
|
-
let slot;
|
|
4995
5004
|
let t2;
|
|
5005
|
+
let slot;
|
|
4996
5006
|
let ul_style_value;
|
|
4997
5007
|
let div1_style_value;
|
|
4998
5008
|
let mounted;
|
|
@@ -5018,13 +5028,13 @@
|
|
|
5018
5028
|
goa_input = element("goa-input");
|
|
5019
5029
|
t1 = space();
|
|
5020
5030
|
ul = element("ul");
|
|
5021
|
-
slot = element("slot");
|
|
5022
|
-
t2 = space();
|
|
5023
5031
|
|
|
5024
5032
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
5025
5033
|
each_blocks[i].c();
|
|
5026
5034
|
}
|
|
5027
5035
|
|
|
5036
|
+
t2 = space();
|
|
5037
|
+
slot = element("slot");
|
|
5028
5038
|
this.c = noop;
|
|
5029
5039
|
set_custom_element_data(goa_input, "error",
|
|
5030
5040
|
/*error*/
|
|
@@ -5042,11 +5052,16 @@
|
|
|
5042
5052
|
set_custom_element_data(goa_input, "id", goa_input_id_value = `${
|
|
5043
5053
|
/*name*/
|
|
5044
5054
|
ctx[0]}-dropdown-input`);
|
|
5055
|
+
set_custom_element_data(goa_input, "role", "combobox");
|
|
5045
5056
|
set_custom_element_data(goa_input, "aria-label", goa_input_aria_label_value =
|
|
5046
5057
|
/*arialabel*/
|
|
5047
5058
|
ctx[1] ||
|
|
5048
5059
|
/*name*/
|
|
5049
5060
|
ctx[0]);
|
|
5061
|
+
set_custom_element_data(goa_input, "aria-expanded",
|
|
5062
|
+
/*isMenuVisible*/
|
|
5063
|
+
ctx[12]);
|
|
5064
|
+
set_custom_element_data(goa_input, "aria-controls", "menu");
|
|
5050
5065
|
set_custom_element_data(goa_input, "readonly", "");
|
|
5051
5066
|
set_custom_element_data(goa_input, "trailingicon", "chevron-down");
|
|
5052
5067
|
set_custom_element_data(goa_input, "type", "text");
|
|
@@ -5056,6 +5071,11 @@
|
|
|
5056
5071
|
attr(div0, "data-testid", div0_data_testid_value = `${
|
|
5057
5072
|
/*name*/
|
|
5058
5073
|
ctx[0]}-dropdown`);
|
|
5074
|
+
attr(ul, "id", "menu");
|
|
5075
|
+
attr(ul, "role", "listbox");
|
|
5076
|
+
attr(ul, "aria-activedescendant",
|
|
5077
|
+
/*selectedLabel*/
|
|
5078
|
+
ctx[11]);
|
|
5059
5079
|
attr(ul, "data-testid", "dropdown-menu");
|
|
5060
5080
|
attr(ul, "tabindex", "0");
|
|
5061
5081
|
attr(ul, "class", "goa-dropdown-list");
|
|
@@ -5084,14 +5104,14 @@
|
|
|
5084
5104
|
append(div0, goa_input);
|
|
5085
5105
|
append(div1, t1);
|
|
5086
5106
|
append(div1, ul);
|
|
5087
|
-
append(ul, slot);
|
|
5088
|
-
append(ul, t2);
|
|
5089
5107
|
|
|
5090
5108
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
5091
5109
|
each_blocks[i].m(ul, null);
|
|
5092
5110
|
}
|
|
5093
|
-
/*ul_binding*/
|
|
5094
5111
|
|
|
5112
|
+
append(ul, t2);
|
|
5113
|
+
append(ul, slot);
|
|
5114
|
+
/*ul_binding*/
|
|
5095
5115
|
|
|
5096
5116
|
ctx[23](ul);
|
|
5097
5117
|
/*div1_binding*/
|
|
@@ -5172,6 +5192,14 @@
|
|
|
5172
5192
|
set_custom_element_data(goa_input, "aria-label", goa_input_aria_label_value);
|
|
5173
5193
|
}
|
|
5174
5194
|
|
|
5195
|
+
if (dirty[0] &
|
|
5196
|
+
/*isMenuVisible*/
|
|
5197
|
+
4096) {
|
|
5198
|
+
set_custom_element_data(goa_input, "aria-expanded",
|
|
5199
|
+
/*isMenuVisible*/
|
|
5200
|
+
ctx[12]);
|
|
5201
|
+
}
|
|
5202
|
+
|
|
5175
5203
|
if (dirty[0] &
|
|
5176
5204
|
/*selectedLabel*/
|
|
5177
5205
|
2048) {
|
|
@@ -5204,7 +5232,7 @@
|
|
|
5204
5232
|
} else {
|
|
5205
5233
|
each_blocks[i] = create_each_block$4(child_ctx);
|
|
5206
5234
|
each_blocks[i].c();
|
|
5207
|
-
each_blocks[i].m(ul,
|
|
5235
|
+
each_blocks[i].m(ul, t2);
|
|
5208
5236
|
}
|
|
5209
5237
|
}
|
|
5210
5238
|
|
|
@@ -5215,6 +5243,14 @@
|
|
|
5215
5243
|
each_blocks.length = each_value.length;
|
|
5216
5244
|
}
|
|
5217
5245
|
|
|
5246
|
+
if (dirty[0] &
|
|
5247
|
+
/*selectedLabel*/
|
|
5248
|
+
2048) {
|
|
5249
|
+
attr(ul, "aria-activedescendant",
|
|
5250
|
+
/*selectedLabel*/
|
|
5251
|
+
ctx[11]);
|
|
5252
|
+
}
|
|
5253
|
+
|
|
5218
5254
|
if (dirty[0] &
|
|
5219
5255
|
/*maxheight*/
|
|
5220
5256
|
8 && ul_style_value !== (ul_style_value = `overflow-y: auto; max-height: ${
|
|
@@ -13582,8 +13618,8 @@
|
|
|
13582
13618
|
this.c = noop;
|
|
13583
13619
|
attr(div, "class", "content");
|
|
13584
13620
|
attr(div, "slot", "");
|
|
13585
|
-
set_custom_element_data(goa_container, "
|
|
13586
|
-
/*
|
|
13621
|
+
set_custom_element_data(goa_container, "type",
|
|
13622
|
+
/*type*/
|
|
13587
13623
|
ctx[3]);
|
|
13588
13624
|
set_custom_element_data(goa_container, "headingsize",
|
|
13589
13625
|
/*headingsize*/
|
|
@@ -13640,10 +13676,10 @@
|
|
|
13640
13676
|
ctx[2];
|
|
13641
13677
|
|
|
13642
13678
|
if (dirty &
|
|
13643
|
-
/*
|
|
13679
|
+
/*type*/
|
|
13644
13680
|
8) {
|
|
13645
|
-
set_custom_element_data(goa_container, "
|
|
13646
|
-
/*
|
|
13681
|
+
set_custom_element_data(goa_container, "type",
|
|
13682
|
+
/*type*/
|
|
13647
13683
|
ctx[3]);
|
|
13648
13684
|
}
|
|
13649
13685
|
|
|
@@ -13679,7 +13715,7 @@
|
|
|
13679
13715
|
content
|
|
13680
13716
|
} = $$props;
|
|
13681
13717
|
let {
|
|
13682
|
-
|
|
13718
|
+
type = "default"
|
|
13683
13719
|
} = $$props;
|
|
13684
13720
|
let {
|
|
13685
13721
|
headingsize = "large"
|
|
@@ -13689,11 +13725,11 @@
|
|
|
13689
13725
|
if ('title' in $$props) $$invalidate(0, title = $$props.title);
|
|
13690
13726
|
if ('actions' in $$props) $$invalidate(1, actions = $$props.actions);
|
|
13691
13727
|
if ('content' in $$props) $$invalidate(2, content = $$props.content);
|
|
13692
|
-
if ('
|
|
13728
|
+
if ('type' in $$props) $$invalidate(3, type = $$props.type);
|
|
13693
13729
|
if ('headingsize' in $$props) $$invalidate(4, headingsize = $$props.headingsize);
|
|
13694
13730
|
};
|
|
13695
13731
|
|
|
13696
|
-
return [title, actions, content,
|
|
13732
|
+
return [title, actions, content, type, headingsize];
|
|
13697
13733
|
}
|
|
13698
13734
|
|
|
13699
13735
|
class ContainerWrapper_test extends SvelteElement {
|
|
@@ -13707,7 +13743,7 @@
|
|
|
13707
13743
|
title: 0,
|
|
13708
13744
|
actions: 1,
|
|
13709
13745
|
content: 2,
|
|
13710
|
-
|
|
13746
|
+
type: 3,
|
|
13711
13747
|
headingsize: 4
|
|
13712
13748
|
}, null);
|
|
13713
13749
|
|
|
@@ -13724,7 +13760,7 @@
|
|
|
13724
13760
|
}
|
|
13725
13761
|
|
|
13726
13762
|
static get observedAttributes() {
|
|
13727
|
-
return ["title", "actions", "content", "
|
|
13763
|
+
return ["title", "actions", "content", "type", "headingsize"];
|
|
13728
13764
|
}
|
|
13729
13765
|
|
|
13730
13766
|
get title() {
|
|
@@ -13760,13 +13796,13 @@
|
|
|
13760
13796
|
flush();
|
|
13761
13797
|
}
|
|
13762
13798
|
|
|
13763
|
-
get
|
|
13799
|
+
get type() {
|
|
13764
13800
|
return this.$$.ctx[3];
|
|
13765
13801
|
}
|
|
13766
13802
|
|
|
13767
|
-
set
|
|
13803
|
+
set type(type) {
|
|
13768
13804
|
this.$$set({
|
|
13769
|
-
|
|
13805
|
+
type
|
|
13770
13806
|
});
|
|
13771
13807
|
flush();
|
|
13772
13808
|
}
|
|
@@ -14256,9 +14292,9 @@
|
|
|
14256
14292
|
padding = _a.padding,
|
|
14257
14293
|
children = _a.children,
|
|
14258
14294
|
actions = _a.actions,
|
|
14259
|
-
|
|
14295
|
+
type = _a.type;
|
|
14260
14296
|
return jsxRuntime.jsxs("goa-container", __assign({
|
|
14261
|
-
|
|
14297
|
+
type: type,
|
|
14262
14298
|
padding: padding,
|
|
14263
14299
|
headingsize: headingSize,
|
|
14264
14300
|
colored: colored
|