playbook_ui 14.19.0.pre.alpha.PLAY21297675 → 14.19.0.pre.alpha.borderfixadvancedtable7815
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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +4 -3
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.html.erb +16 -8
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.rb +9 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions_rails.html.erb +137 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions_rails.md +3 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header_rails.html.erb +40 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header_rails.md +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_advanced_table/index.js +355 -52
- data/app/pb_kits/playbook/pb_advanced_table/table_action_bar.html.erb +23 -0
- data/app/pb_kits/playbook/pb_advanced_table/table_action_bar.rb +19 -0
- data/app/pb_kits/playbook/pb_advanced_table/table_header.rb +4 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.jsx +11 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.md +1 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.html.erb +33 -2
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.md +3 -1
- data/app/pb_kits/playbook/pb_dropdown/index.js +14 -1
- data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownTrigger.tsx +1 -1
- data/app/pb_kits/playbook/pb_file_upload/_file_upload.scss +13 -0
- data/app/pb_kits/playbook/pb_file_upload/_file_upload.tsx +11 -1
- data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_error.html.erb +1 -0
- data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_error.jsx +41 -0
- data/app/pb_kits/playbook/pb_file_upload/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_file_upload/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_file_upload/file_upload.html.erb +1 -0
- data/app/pb_kits/playbook/pb_file_upload/file_upload.rb +7 -1
- data/app/pb_kits/playbook/pb_file_upload/fileupload.test.js +18 -0
- data/app/pb_kits/playbook/pb_form_group/_error_state_mixin.scss +2 -2
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +19 -12
- data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.tsx +13 -7
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +2 -2
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color.html.erb +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color.jsx +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_default.html.erb +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_default.jsx +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled.html.erb +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled.jsx +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled_options.html.erb +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled_options.jsx +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled_options_default.html.erb +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled_options_default.jsx +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled_options_parent.html.erb +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled_options_parent.jsx +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled_options_parent_default.html.erb +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled_options_parent_default.jsx +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_error.html.erb +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_error.jsx +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_label.html.erb +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_label.jsx +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_hook.jsx +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_reset.html.erb +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_return_all_selected.html.erb +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_return_all_selected.jsx +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_selected_ids.html.erb +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_selected_ids.md +2 -0
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_selected_ids_react.jsx +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_selected_ids_react.md +3 -1
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single.html.erb +22 -22
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single.jsx +22 -22
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single_children_only.html.erb +22 -22
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_single_children_only.jsx +22 -22
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children.jsx +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children_with_radios.jsx +11 -11
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_form.html.erb +11 -11
- data/app/pb_kits/playbook/pb_person/_person.tsx +12 -2
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss +9 -9
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +4 -2
- data/dist/chunks/{_typeahead-BPSIWtFT.js → _typeahead-B9-s4j4U.js} +1 -1
- data/dist/chunks/_weekday_stacked-CvzpmXD5.js +45 -0
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +1 -1
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +12 -4
- data/dist/chunks/_weekday_stacked-BeuPAmxG.js +0 -45
@@ -5,63 +5,63 @@ import { useForm } from "react-hook-form"
|
|
5
5
|
const treeData = [
|
6
6
|
{
|
7
7
|
label: "Power Home Remodeling",
|
8
|
-
value: "
|
8
|
+
value: "powerHomeRemodeling",
|
9
9
|
id: "powerhome1",
|
10
10
|
expanded: true,
|
11
11
|
children: [
|
12
12
|
{
|
13
13
|
label: "People",
|
14
|
-
value: "
|
14
|
+
value: "people",
|
15
15
|
id: "people1",
|
16
16
|
expanded: true,
|
17
17
|
children: [
|
18
18
|
{
|
19
19
|
label: "Talent Acquisition",
|
20
|
-
value: "
|
20
|
+
value: "talentAcquisition",
|
21
21
|
id: "talent1",
|
22
22
|
},
|
23
23
|
{
|
24
24
|
label: "Business Affairs",
|
25
|
-
value: "
|
25
|
+
value: "businessAffairs",
|
26
26
|
id: "business1",
|
27
27
|
children: [
|
28
28
|
{
|
29
29
|
label: "Initiatives",
|
30
|
-
value: "
|
30
|
+
value: "initiatives",
|
31
31
|
id: "initiative1",
|
32
32
|
},
|
33
33
|
{
|
34
34
|
label: "Learning & Development",
|
35
|
-
value: "
|
35
|
+
value: "learningAndDevelopment",
|
36
36
|
id: "development1",
|
37
37
|
},
|
38
38
|
],
|
39
39
|
},
|
40
40
|
{
|
41
41
|
label: "People Experience",
|
42
|
-
value: "
|
42
|
+
value: "peopleExperience",
|
43
43
|
id: "experience1",
|
44
44
|
},
|
45
45
|
],
|
46
46
|
},
|
47
47
|
{
|
48
48
|
label: "Contact Center",
|
49
|
-
value: "
|
49
|
+
value: "contactCenter",
|
50
50
|
id: "contact1",
|
51
51
|
children: [
|
52
52
|
{
|
53
53
|
label: "Appointment Management",
|
54
|
-
value: "
|
54
|
+
value: "appointmentManagement",
|
55
55
|
id: "appointment1",
|
56
56
|
},
|
57
57
|
{
|
58
58
|
label: "Customer Service",
|
59
|
-
value: "
|
59
|
+
value: "customerService",
|
60
60
|
id: "customer1",
|
61
61
|
},
|
62
62
|
{
|
63
63
|
label: "Energy",
|
64
|
-
value: "
|
64
|
+
value: "energy",
|
65
65
|
id: "energy1",
|
66
66
|
},
|
67
67
|
],
|
@@ -1,62 +1,62 @@
|
|
1
1
|
<% treeData = [{
|
2
2
|
label: "Power Home Remodeling",
|
3
|
-
value: "
|
3
|
+
value: "powerHomeRemodeling",
|
4
4
|
id: "100",
|
5
5
|
expanded: true,
|
6
6
|
children: [
|
7
7
|
{
|
8
8
|
label: "People",
|
9
|
-
value: "
|
9
|
+
value: "people",
|
10
10
|
id: "101",
|
11
11
|
expanded: true,
|
12
12
|
children: [
|
13
13
|
{
|
14
14
|
label: "Talent Acquisition",
|
15
|
-
value: "
|
15
|
+
value: "talentAcquisition",
|
16
16
|
id: "102",
|
17
17
|
},
|
18
18
|
{
|
19
19
|
label: "Business Affairs",
|
20
|
-
value: "
|
20
|
+
value: "businessAffairs",
|
21
21
|
id: "103",
|
22
22
|
children: [
|
23
23
|
{
|
24
24
|
label: "Initiatives",
|
25
|
-
value: "
|
25
|
+
value: "initiatives",
|
26
26
|
id: "104",
|
27
27
|
},
|
28
28
|
{
|
29
29
|
label: "Learning & Development",
|
30
|
-
value: "
|
30
|
+
value: "learningAndDevelopment",
|
31
31
|
id: "105",
|
32
32
|
},
|
33
33
|
],
|
34
34
|
},
|
35
35
|
{
|
36
36
|
label: "People Experience",
|
37
|
-
value: "
|
37
|
+
value: "peopleExperience",
|
38
38
|
id: "106",
|
39
39
|
},
|
40
40
|
],
|
41
41
|
},
|
42
42
|
{
|
43
43
|
label: "Contact Center",
|
44
|
-
value: "
|
44
|
+
value: "contactCenter",
|
45
45
|
id: "107",
|
46
46
|
children: [
|
47
47
|
{
|
48
48
|
label: "Appointment Management",
|
49
|
-
value: "
|
49
|
+
value: "appointmentManagement",
|
50
50
|
id: "108",
|
51
51
|
},
|
52
52
|
{
|
53
53
|
label: "Customer Service",
|
54
|
-
value: "
|
54
|
+
value: "customerService",
|
55
55
|
id: "109",
|
56
56
|
},
|
57
57
|
{
|
58
58
|
label: "Energy",
|
59
|
-
value: "
|
59
|
+
value: "energy",
|
60
60
|
id: "110",
|
61
61
|
},
|
62
62
|
],
|
@@ -1,61 +1,61 @@
|
|
1
1
|
<% treeData = [{
|
2
2
|
label: "Power Home Remodeling",
|
3
|
-
value: "
|
3
|
+
value: "powerHomeRemodeling",
|
4
4
|
id: "100",
|
5
5
|
expanded: true,
|
6
6
|
children: [
|
7
7
|
{
|
8
8
|
label: "People",
|
9
|
-
value: "
|
9
|
+
value: "people",
|
10
10
|
id: "101",
|
11
11
|
children: [
|
12
12
|
{
|
13
13
|
label: "Talent Acquisition",
|
14
|
-
value: "
|
14
|
+
value: "talentAcquisition",
|
15
15
|
id: "102",
|
16
16
|
},
|
17
17
|
{
|
18
18
|
label: "Business Affairs",
|
19
|
-
value: "
|
19
|
+
value: "businessAffairs",
|
20
20
|
id: "103",
|
21
21
|
children: [
|
22
22
|
{
|
23
23
|
label: "Initiatives",
|
24
|
-
value: "
|
24
|
+
value: "initiatives",
|
25
25
|
id: "104",
|
26
26
|
},
|
27
27
|
{
|
28
28
|
label: "Learning & Development",
|
29
|
-
value: "
|
29
|
+
value: "learningAndDevelopment",
|
30
30
|
id: "105",
|
31
31
|
},
|
32
32
|
],
|
33
33
|
},
|
34
34
|
{
|
35
35
|
label: "People Experience",
|
36
|
-
value: "
|
36
|
+
value: "peopleExperience",
|
37
37
|
id: "106",
|
38
38
|
},
|
39
39
|
],
|
40
40
|
},
|
41
41
|
{
|
42
42
|
label: "Contact Center",
|
43
|
-
value: "
|
43
|
+
value: "contactCenter",
|
44
44
|
id: "107",
|
45
45
|
children: [
|
46
46
|
{
|
47
47
|
label: "Appointment Management",
|
48
|
-
value: "
|
48
|
+
value: "appointmentManagement",
|
49
49
|
id: "108",
|
50
50
|
},
|
51
51
|
{
|
52
52
|
label: "Customer Service",
|
53
|
-
value: "
|
53
|
+
value: "customerService",
|
54
54
|
id: "109",
|
55
55
|
},
|
56
56
|
{
|
57
57
|
label: "Energy",
|
58
|
-
value: "
|
58
|
+
value: "energy",
|
59
59
|
id: "110",
|
60
60
|
},
|
61
61
|
],
|
data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_return_all_selected.jsx
CHANGED
@@ -4,62 +4,62 @@ import MultiLevelSelect from "../_multi_level_select";
|
|
4
4
|
const treeData = [
|
5
5
|
{
|
6
6
|
label: "Power Home Remodeling",
|
7
|
-
value: "
|
7
|
+
value: "powerHomeRemodeling",
|
8
8
|
id: "powerhome1",
|
9
9
|
expanded: true,
|
10
10
|
children: [
|
11
11
|
{
|
12
12
|
label: "People",
|
13
|
-
value: "
|
13
|
+
value: "people",
|
14
14
|
id: "people1",
|
15
15
|
children: [
|
16
16
|
{
|
17
17
|
label: "Talent Acquisition",
|
18
|
-
value: "
|
18
|
+
value: "talentAcquisition",
|
19
19
|
id: "talent1",
|
20
20
|
},
|
21
21
|
{
|
22
22
|
label: "Business Affairs",
|
23
|
-
value: "
|
23
|
+
value: "businessAffairs",
|
24
24
|
id: "business1",
|
25
25
|
children: [
|
26
26
|
{
|
27
27
|
label: "Initiatives",
|
28
|
-
value: "
|
28
|
+
value: "initiatives",
|
29
29
|
id: "initiative1",
|
30
30
|
},
|
31
31
|
{
|
32
32
|
label: "Learning & Development",
|
33
|
-
value: "
|
33
|
+
value: "learningAndDevelopment",
|
34
34
|
id: "development1",
|
35
35
|
},
|
36
36
|
],
|
37
37
|
},
|
38
38
|
{
|
39
39
|
label: "People Experience",
|
40
|
-
value: "
|
40
|
+
value: "peopleExperience",
|
41
41
|
id: "experience1",
|
42
42
|
},
|
43
43
|
],
|
44
44
|
},
|
45
45
|
{
|
46
46
|
label: "Contact Center",
|
47
|
-
value: "
|
47
|
+
value: "contactCenter",
|
48
48
|
id: "contact1",
|
49
49
|
children: [
|
50
50
|
{
|
51
51
|
label: "Appointment Management",
|
52
|
-
value: "
|
52
|
+
value: "appointmentManagement",
|
53
53
|
id: "appointment1",
|
54
54
|
},
|
55
55
|
{
|
56
56
|
label: "Customer Service",
|
57
|
-
value: "
|
57
|
+
value: "customerService",
|
58
58
|
id: "customer1",
|
59
59
|
},
|
60
60
|
{
|
61
61
|
label: "Energy",
|
62
|
-
value: "
|
62
|
+
value: "energy",
|
63
63
|
id: "energy1",
|
64
64
|
},
|
65
65
|
],
|
data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_selected_ids.html.erb
CHANGED
@@ -1,61 +1,61 @@
|
|
1
1
|
<% treeData = [{
|
2
2
|
label: "Power Home Remodeling",
|
3
|
-
value: "
|
3
|
+
value: "powerHomeRemodeling",
|
4
4
|
id: "100",
|
5
5
|
expanded: true,
|
6
6
|
children: [
|
7
7
|
{
|
8
8
|
label: "People",
|
9
|
-
value: "
|
9
|
+
value: "people",
|
10
10
|
id: "101",
|
11
11
|
children: [
|
12
12
|
{
|
13
13
|
label: "Talent Acquisition",
|
14
|
-
value: "
|
14
|
+
value: "talentAcquisition",
|
15
15
|
id: "102",
|
16
16
|
},
|
17
17
|
{
|
18
18
|
label: "Business Affairs",
|
19
|
-
value: "
|
19
|
+
value: "businessAffairs",
|
20
20
|
id: "103",
|
21
21
|
children: [
|
22
22
|
{
|
23
23
|
label: "Initiatives",
|
24
|
-
value: "
|
24
|
+
value: "initiatives",
|
25
25
|
id: "104",
|
26
26
|
},
|
27
27
|
{
|
28
28
|
label: "Learning & Development",
|
29
|
-
value: "
|
29
|
+
value: "learningAndDevelopment",
|
30
30
|
id: "105",
|
31
31
|
},
|
32
32
|
],
|
33
33
|
},
|
34
34
|
{
|
35
35
|
label: "People Experience",
|
36
|
-
value: "
|
36
|
+
value: "peopleExperience",
|
37
37
|
id: "106",
|
38
38
|
},
|
39
39
|
],
|
40
40
|
},
|
41
41
|
{
|
42
42
|
label: "Contact Center",
|
43
|
-
value: "
|
43
|
+
value: "contactCenter",
|
44
44
|
id: "107",
|
45
45
|
children: [
|
46
46
|
{
|
47
47
|
label: "Appointment Management",
|
48
|
-
value: "
|
48
|
+
value: "appointmentManagement",
|
49
49
|
id: "108",
|
50
50
|
},
|
51
51
|
{
|
52
52
|
label: "Customer Service",
|
53
|
-
value: "
|
53
|
+
value: "customerService",
|
54
54
|
id: "109",
|
55
55
|
},
|
56
56
|
{
|
57
57
|
label: "Energy",
|
58
|
-
value: "
|
58
|
+
value: "energy",
|
59
59
|
id: "110",
|
60
60
|
},
|
61
61
|
],
|
@@ -3,3 +3,5 @@
|
|
3
3
|
Items that include `checked:true` on the treeData itself will also be selected on page load, even without being passed to `selectedIds`.
|
4
4
|
|
5
5
|
When an item is marked as checked on page load by any means, the dropdown will expand to show the checked items for easier accessibility.
|
6
|
+
|
7
|
+
When using `selected_ids` and `variant: "single"` together (see [single select doc examples](https://playbook.powerapp.cloud/kits/multi_level_select#single-select)), the `selected_ids` array should contain only one id, because only one item can be selected and displayed at a time. If the `selected_ids` array has multiple ids in it, the first id in the array will be the treeData node checked upon page load.
|
data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_selected_ids_react.jsx
CHANGED
@@ -4,62 +4,62 @@ import MultiLevelSelect from "../_multi_level_select";
|
|
4
4
|
const treeData = [
|
5
5
|
{
|
6
6
|
label: "Power Home Remodeling",
|
7
|
-
value: "
|
7
|
+
value: "powerHomeRemodeling",
|
8
8
|
id: "powerhome1",
|
9
9
|
expanded: true,
|
10
10
|
children: [
|
11
11
|
{
|
12
12
|
label: "People",
|
13
|
-
value: "
|
13
|
+
value: "people",
|
14
14
|
id: "people1",
|
15
15
|
children: [
|
16
16
|
{
|
17
17
|
label: "Talent Acquisition",
|
18
|
-
value: "
|
18
|
+
value: "talentAcquisition",
|
19
19
|
id: "talent1",
|
20
20
|
},
|
21
21
|
{
|
22
22
|
label: "Business Affairs",
|
23
|
-
value: "
|
23
|
+
value: "businessAffairs",
|
24
24
|
id: "business1",
|
25
25
|
children: [
|
26
26
|
{
|
27
27
|
label: "Initiatives",
|
28
|
-
value: "
|
28
|
+
value: "initiatives",
|
29
29
|
id: "initiative1",
|
30
30
|
},
|
31
31
|
{
|
32
32
|
label: "Learning & Development",
|
33
|
-
value: "
|
33
|
+
value: "learningAndDevelopment",
|
34
34
|
id: "development1",
|
35
35
|
},
|
36
36
|
],
|
37
37
|
},
|
38
38
|
{
|
39
39
|
label: "People Experience",
|
40
|
-
value: "
|
40
|
+
value: "peopleExperience",
|
41
41
|
id: "experience1",
|
42
42
|
},
|
43
43
|
],
|
44
44
|
},
|
45
45
|
{
|
46
46
|
label: "Contact Center",
|
47
|
-
value: "
|
47
|
+
value: "contactCenter",
|
48
48
|
id: "contact1",
|
49
49
|
children: [
|
50
50
|
{
|
51
51
|
label: "Appointment Management",
|
52
|
-
value: "
|
52
|
+
value: "appointmentManagement",
|
53
53
|
id: "appointment1",
|
54
54
|
},
|
55
55
|
{
|
56
56
|
label: "Customer Service",
|
57
|
-
value: "
|
57
|
+
value: "customerService",
|
58
58
|
id: "customer1",
|
59
59
|
},
|
60
60
|
{
|
61
61
|
label: "Energy",
|
62
|
-
value: "
|
62
|
+
value: "energy",
|
63
63
|
id: "energy1",
|
64
64
|
},
|
65
65
|
],
|
data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_selected_ids_react.md
CHANGED
@@ -2,4 +2,6 @@
|
|
2
2
|
|
3
3
|
Items that include `checked:true` on the treeData itself will also be selected on page load, even without being passed to `selectedIds`.
|
4
4
|
|
5
|
-
When an item is marked as checked on page load by any means, the dropdown will expand to show the checked items for easier accessibility.
|
5
|
+
When an item is marked as checked on page load by any means, the dropdown will expand to show the checked items for easier accessibility.
|
6
|
+
|
7
|
+
When using `selectedIds` and `variant="single"` together (see [single select doc examples](https://playbook.powerapp.cloud/kits/multi_level_select/react#single-select)), the `selectedIds` array should contain only one id, because only one item can be selected and displayed at a time. If the `selectedIds` array has multiple ids in it, the first id in the array will be the treeData node checked upon page load.
|
@@ -1,76 +1,76 @@
|
|
1
1
|
<% treeData = [
|
2
2
|
{
|
3
3
|
label: "HQ",
|
4
|
-
value: "
|
4
|
+
value: "hQ",
|
5
5
|
id: "hq",
|
6
6
|
},
|
7
7
|
{
|
8
8
|
label: "Philadelphia",
|
9
|
-
value: "
|
9
|
+
value: "philadelphia",
|
10
10
|
id: "phl",
|
11
11
|
children: [
|
12
12
|
{
|
13
13
|
label: "Marketing & Sales PHL",
|
14
|
-
value: "
|
14
|
+
value: "marketingAndSalesPhl",
|
15
15
|
id: "marketingPHL",
|
16
16
|
},
|
17
17
|
{
|
18
18
|
label: "Installation Office PHL",
|
19
|
-
value: "
|
19
|
+
value: "installationOfficePhl",
|
20
20
|
id: "installationPHL",
|
21
21
|
},
|
22
22
|
{
|
23
23
|
label: "Warehouse PHL",
|
24
|
-
value: "
|
24
|
+
value: "warehousePhl",
|
25
25
|
id: "warehousePHL",
|
26
26
|
},
|
27
27
|
]
|
28
28
|
},
|
29
29
|
{
|
30
30
|
label: "New Jersey",
|
31
|
-
value: "
|
31
|
+
value: "newJersey",
|
32
32
|
id: "nj",
|
33
33
|
children: [
|
34
34
|
{
|
35
35
|
label: "New Jersey",
|
36
|
-
value: "
|
36
|
+
value: "newJersey",
|
37
37
|
id: "nj1",
|
38
38
|
children: [
|
39
39
|
{
|
40
40
|
label: "Marketing & Sales NJ",
|
41
|
-
value: "
|
41
|
+
value: "marketingAndSalesNj",
|
42
42
|
id: "marketingNJ",
|
43
43
|
},
|
44
44
|
{
|
45
45
|
label: "Installation Office NJ",
|
46
|
-
value: "
|
46
|
+
value: "installationOfficeNj",
|
47
47
|
id: "installationNJ",
|
48
48
|
},
|
49
49
|
{
|
50
50
|
label: "Warehouse NJ",
|
51
|
-
value: "
|
51
|
+
value: "warehouseNj",
|
52
52
|
id: "warehouseNJ",
|
53
53
|
},
|
54
54
|
],
|
55
55
|
},
|
56
56
|
{
|
57
57
|
label: "Princeton",
|
58
|
-
value: "
|
58
|
+
value: "princeton",
|
59
59
|
id: "princeton",
|
60
60
|
children: [
|
61
61
|
{
|
62
62
|
label: "Marketing & Sales Princeton",
|
63
|
-
value: "
|
63
|
+
value: "marketingAndSalesPrinceton",
|
64
64
|
id: "marketingPR",
|
65
65
|
},
|
66
66
|
{
|
67
67
|
label: "Installation Office Princeton",
|
68
|
-
value: "
|
68
|
+
value: "installationOfficePrinceton",
|
69
69
|
id: "installationPR",
|
70
70
|
},
|
71
71
|
{
|
72
72
|
label: "Warehouse Princeton",
|
73
|
-
value: "
|
73
|
+
value: "warehousePrinceton",
|
74
74
|
id: "warehousePR",
|
75
75
|
},
|
76
76
|
]
|
@@ -79,44 +79,44 @@
|
|
79
79
|
},
|
80
80
|
{
|
81
81
|
label: "Maryland",
|
82
|
-
value: "
|
82
|
+
value: "maryland",
|
83
83
|
id: "MD",
|
84
84
|
children: [
|
85
85
|
{
|
86
86
|
label: "Marketing & Sales MD",
|
87
|
-
value: "
|
87
|
+
value: "marketingAndSalesMd",
|
88
88
|
id: "marketingMD",
|
89
89
|
},
|
90
90
|
{
|
91
91
|
label: "Installation Office MD",
|
92
|
-
value: "
|
92
|
+
value: "installationOfficeMd",
|
93
93
|
id: "installationMD",
|
94
94
|
},
|
95
95
|
{
|
96
96
|
label: "Warehouse MD",
|
97
|
-
value: "
|
97
|
+
value: "warehouseMd",
|
98
98
|
id: "warehouseMD",
|
99
99
|
},
|
100
100
|
]
|
101
101
|
},
|
102
102
|
{
|
103
103
|
label: "Connecticut",
|
104
|
-
value: "
|
104
|
+
value: "connecticut",
|
105
105
|
id: "CT",
|
106
106
|
children: [
|
107
107
|
{
|
108
108
|
label: "Marketing & Sales CT",
|
109
|
-
value: "
|
109
|
+
value: "marketingAndSalesCt",
|
110
110
|
id: "marketingCT",
|
111
111
|
},
|
112
112
|
{
|
113
113
|
label: "Installation Office CT",
|
114
|
-
value: "
|
114
|
+
value: "installationOfficeCt",
|
115
115
|
id: "installationCT",
|
116
116
|
},
|
117
117
|
{
|
118
118
|
label: "Warehouse CT",
|
119
|
-
value: "
|
119
|
+
value: "warehouseCt",
|
120
120
|
id: "warehouseCT",
|
121
121
|
},
|
122
122
|
]
|