playbook_ui 14.19.0.pre.alpha.borderfixadvancedtable7816 → 14.19.0.pre.alpha.play1997dropdownenablepillsinselection7702
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/Components/RegularTableView.tsx +1 -11
- data/app/pb_kits/playbook/pb_advanced_table/Components/TableActionBar.tsx +15 -148
- data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +3 -20
- data/app/pb_kits/playbook/pb_advanced_table/Hooks/useTableState.ts +13 -23
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +3 -10
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +2 -7
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.html.erb +8 -16
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.rb +0 -9
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -6
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -5
- data/app/pb_kits/playbook/pb_advanced_table/index.js +52 -355
- data/app/pb_kits/playbook/pb_advanced_table/scss_partials/advanced_table_sticky_mixin.scss +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/table_header.rb +0 -4
- data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownContainer.tsx +2 -2
- data/app/pb_kits/playbook/pb_file_upload/_file_upload.scss +0 -13
- data/app/pb_kits/playbook/pb_file_upload/_file_upload.tsx +1 -11
- data/app/pb_kits/playbook/pb_file_upload/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_file_upload/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_file_upload/file_upload.html.erb +0 -1
- data/app/pb_kits/playbook/pb_file_upload/file_upload.rb +1 -7
- data/app/pb_kits/playbook/pb_file_upload/fileupload.test.js +0 -18
- 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 +12 -19
- data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.tsx +7 -13
- 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 +0 -2
- 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 +1 -3
- 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 +2 -12
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss +9 -9
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.tsx +2 -2
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +2 -4
- data/dist/chunks/_typeahead-BQV04mOl.js +22 -0
- data/dist/chunks/_weekday_stacked-BdaYw6Ra.js +45 -0
- data/dist/chunks/{lib-B20MXZcW.js → lib-DwFasxbk.js} +2 -2
- data/dist/chunks/{pb_form_validation-WWvUXPKD.js → pb_form_validation-nnXW3T-3.js} +1 -1
- 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 +6 -23
- data/app/pb_kits/playbook/pb_advanced_table/Utilities/VisibilityTree.ts +0 -47
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_visibility.jsx +0 -57
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_visibility.md +0 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_visibility_custom.jsx +0 -62
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_visibility_custom.md +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_visibility_multi.jsx +0 -82
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_visibility_multi.md +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_visibility_with_state.jsx +0 -65
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_visibility_with_state.md +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions_rails.html.erb +0 -137
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions_rails.md +0 -3
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header_rails.html.erb +0 -40
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header_rails.md +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/table_action_bar.html.erb +0 -23
- data/app/pb_kits/playbook/pb_advanced_table/table_action_bar.rb +0 -19
- data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_error.html.erb +0 -1
- data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_error.jsx +0 -41
- data/dist/chunks/_typeahead-B9-s4j4U.js +0 -22
- data/dist/chunks/_weekday_stacked-CvzpmXD5.js +0 -45
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: "Power Home Remodeling",
|
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: "Talent Acquisition",
|
19
19
|
id: "talent1",
|
20
20
|
},
|
21
21
|
{
|
22
22
|
label: "Business Affairs",
|
23
|
-
value: "
|
23
|
+
value: "Business Affairs",
|
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: "Learning & Development",
|
34
34
|
id: "development1",
|
35
35
|
},
|
36
36
|
],
|
37
37
|
},
|
38
38
|
{
|
39
39
|
label: "People Experience",
|
40
|
-
value: "
|
40
|
+
value: "People Experience",
|
41
41
|
id: "experience1",
|
42
42
|
},
|
43
43
|
],
|
44
44
|
},
|
45
45
|
{
|
46
46
|
label: "Contact Center",
|
47
|
-
value: "
|
47
|
+
value: "Contact Center",
|
48
48
|
id: "contact1",
|
49
49
|
children: [
|
50
50
|
{
|
51
51
|
label: "Appointment Management",
|
52
|
-
value: "
|
52
|
+
value: "Appointment Management",
|
53
53
|
id: "appointment1",
|
54
54
|
},
|
55
55
|
{
|
56
56
|
label: "Customer Service",
|
57
|
-
value: "
|
57
|
+
value: "Customer Service",
|
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: "Power Home Remodeling",
|
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: "Talent Acquisition",
|
15
15
|
id: "102",
|
16
16
|
},
|
17
17
|
{
|
18
18
|
label: "Business Affairs",
|
19
|
-
value: "
|
19
|
+
value: "Business Affairs",
|
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: "Learning & Development",
|
30
30
|
id: "105",
|
31
31
|
},
|
32
32
|
],
|
33
33
|
},
|
34
34
|
{
|
35
35
|
label: "People Experience",
|
36
|
-
value: "
|
36
|
+
value: "People Experience",
|
37
37
|
id: "106",
|
38
38
|
},
|
39
39
|
],
|
40
40
|
},
|
41
41
|
{
|
42
42
|
label: "Contact Center",
|
43
|
-
value: "
|
43
|
+
value: "Contact Center",
|
44
44
|
id: "107",
|
45
45
|
children: [
|
46
46
|
{
|
47
47
|
label: "Appointment Management",
|
48
|
-
value: "
|
48
|
+
value: "Appointment Management",
|
49
49
|
id: "108",
|
50
50
|
},
|
51
51
|
{
|
52
52
|
label: "Customer Service",
|
53
|
-
value: "
|
53
|
+
value: "Customer Service",
|
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,5 +3,3 @@
|
|
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: "Power Home Remodeling",
|
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: "Talent Acquisition",
|
19
19
|
id: "talent1",
|
20
20
|
},
|
21
21
|
{
|
22
22
|
label: "Business Affairs",
|
23
|
-
value: "
|
23
|
+
value: "Business Affairs",
|
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: "Learning & Development",
|
34
34
|
id: "development1",
|
35
35
|
},
|
36
36
|
],
|
37
37
|
},
|
38
38
|
{
|
39
39
|
label: "People Experience",
|
40
|
-
value: "
|
40
|
+
value: "People Experience",
|
41
41
|
id: "experience1",
|
42
42
|
},
|
43
43
|
],
|
44
44
|
},
|
45
45
|
{
|
46
46
|
label: "Contact Center",
|
47
|
-
value: "
|
47
|
+
value: "Contact Center",
|
48
48
|
id: "contact1",
|
49
49
|
children: [
|
50
50
|
{
|
51
51
|
label: "Appointment Management",
|
52
|
-
value: "
|
52
|
+
value: "Appointment Management",
|
53
53
|
id: "appointment1",
|
54
54
|
},
|
55
55
|
{
|
56
56
|
label: "Customer Service",
|
57
|
-
value: "
|
57
|
+
value: "Customer Service",
|
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,6 +2,4 @@
|
|
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.
|
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.
|
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.
|
@@ -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: "Marketing & Sales PHL",
|
15
15
|
id: "marketingPHL",
|
16
16
|
},
|
17
17
|
{
|
18
18
|
label: "Installation Office PHL",
|
19
|
-
value: "
|
19
|
+
value: "Installation Office PHL",
|
20
20
|
id: "installationPHL",
|
21
21
|
},
|
22
22
|
{
|
23
23
|
label: "Warehouse PHL",
|
24
|
-
value: "
|
24
|
+
value: "Warehouse PHL",
|
25
25
|
id: "warehousePHL",
|
26
26
|
},
|
27
27
|
]
|
28
28
|
},
|
29
29
|
{
|
30
30
|
label: "New Jersey",
|
31
|
-
value: "
|
31
|
+
value: "New Jersey",
|
32
32
|
id: "nj",
|
33
33
|
children: [
|
34
34
|
{
|
35
35
|
label: "New Jersey",
|
36
|
-
value: "
|
36
|
+
value: "New Jersey",
|
37
37
|
id: "nj1",
|
38
38
|
children: [
|
39
39
|
{
|
40
40
|
label: "Marketing & Sales NJ",
|
41
|
-
value: "
|
41
|
+
value: "Marketing & Sales NJ",
|
42
42
|
id: "marketingNJ",
|
43
43
|
},
|
44
44
|
{
|
45
45
|
label: "Installation Office NJ",
|
46
|
-
value: "
|
46
|
+
value: "Installation Office NJ",
|
47
47
|
id: "installationNJ",
|
48
48
|
},
|
49
49
|
{
|
50
50
|
label: "Warehouse NJ",
|
51
|
-
value: "
|
51
|
+
value: "Warehouse NJ",
|
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: "Marketing & Sales Princeton",
|
64
64
|
id: "marketingPR",
|
65
65
|
},
|
66
66
|
{
|
67
67
|
label: "Installation Office Princeton",
|
68
|
-
value: "
|
68
|
+
value: "Installation Office Princeton",
|
69
69
|
id: "installationPR",
|
70
70
|
},
|
71
71
|
{
|
72
72
|
label: "Warehouse Princeton",
|
73
|
-
value: "
|
73
|
+
value: "Warehouse Princeton",
|
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: "Marketing & Sales MD",
|
88
88
|
id: "marketingMD",
|
89
89
|
},
|
90
90
|
{
|
91
91
|
label: "Installation Office MD",
|
92
|
-
value: "
|
92
|
+
value: "Installation Office MD",
|
93
93
|
id: "installationMD",
|
94
94
|
},
|
95
95
|
{
|
96
96
|
label: "Warehouse MD",
|
97
|
-
value: "
|
97
|
+
value: "Warehouse MD",
|
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: "Marketing & Sales CT",
|
110
110
|
id: "marketingCT",
|
111
111
|
},
|
112
112
|
{
|
113
113
|
label: "Installation Office CT",
|
114
|
-
value: "
|
114
|
+
value: "Installation Office CT",
|
115
115
|
id: "installationCT",
|
116
116
|
},
|
117
117
|
{
|
118
118
|
label: "Warehouse CT",
|
119
|
-
value: "
|
119
|
+
value: "Warehouse CT",
|
120
120
|
id: "warehouseCT",
|
121
121
|
},
|
122
122
|
]
|
@@ -4,76 +4,76 @@ import MultiLevelSelect from "../_multi_level_select";
|
|
4
4
|
const treeData = [
|
5
5
|
{
|
6
6
|
label: "HQ",
|
7
|
-
value: "
|
7
|
+
value: "HQ",
|
8
8
|
id: "hq",
|
9
9
|
},
|
10
10
|
{
|
11
11
|
label: "Philadelphia",
|
12
|
-
value: "
|
12
|
+
value: "Philadelphia",
|
13
13
|
id: "phl",
|
14
14
|
children: [
|
15
15
|
{
|
16
16
|
label: "Marketing & Sales PHL",
|
17
|
-
value: "
|
17
|
+
value: "Marketing & Sales PHL",
|
18
18
|
id: "marketingPHL",
|
19
19
|
},
|
20
20
|
{
|
21
21
|
label: "Installation Office PHL",
|
22
|
-
value: "
|
22
|
+
value: "Installation Office PHL",
|
23
23
|
id: "installationPHL",
|
24
24
|
},
|
25
25
|
{
|
26
26
|
label: "Warehouse PHL",
|
27
|
-
value: "
|
27
|
+
value: "Warehouse PHL",
|
28
28
|
id: "warehousePHL",
|
29
29
|
},
|
30
30
|
]
|
31
31
|
},
|
32
32
|
{
|
33
33
|
label: "New Jersey",
|
34
|
-
value: "
|
34
|
+
value: "New Jersey",
|
35
35
|
id: "nj",
|
36
36
|
children: [
|
37
37
|
{
|
38
38
|
label: "New Jersey",
|
39
|
-
value: "
|
39
|
+
value: "New Jersey",
|
40
40
|
id: "nj1",
|
41
41
|
children: [
|
42
42
|
{
|
43
43
|
label: "Marketing & Sales NJ",
|
44
|
-
value: "
|
44
|
+
value: "Marketing & Sales NJ",
|
45
45
|
id: "marketingNJ",
|
46
46
|
},
|
47
47
|
{
|
48
48
|
label: "Installation Office NJ",
|
49
|
-
value: "
|
49
|
+
value: "Installation Office NJ",
|
50
50
|
id: "installationNJ",
|
51
51
|
},
|
52
52
|
{
|
53
53
|
label: "Warehouse NJ",
|
54
|
-
value: "
|
54
|
+
value: "Warehouse NJ",
|
55
55
|
id: "warehouseNJ",
|
56
56
|
},
|
57
57
|
],
|
58
58
|
},
|
59
59
|
{
|
60
60
|
label: "Princeton",
|
61
|
-
value: "
|
61
|
+
value: "Princeton",
|
62
62
|
id: "princeton",
|
63
63
|
children: [
|
64
64
|
{
|
65
65
|
label: "Marketing & Sales Princeton",
|
66
|
-
value: "
|
66
|
+
value: "Marketing & Sales Princeton",
|
67
67
|
id: "marketingPR",
|
68
68
|
},
|
69
69
|
{
|
70
70
|
label: "Installation Office Princeton",
|
71
|
-
value: "
|
71
|
+
value: "Installation Office Princeton",
|
72
72
|
id: "installationPR",
|
73
73
|
},
|
74
74
|
{
|
75
75
|
label: "Warehouse Princeton",
|
76
|
-
value: "
|
76
|
+
value: "Warehouse Princeton",
|
77
77
|
id: "warehousePR",
|
78
78
|
},
|
79
79
|
]
|
@@ -82,44 +82,44 @@ const treeData = [
|
|
82
82
|
},
|
83
83
|
{
|
84
84
|
label: "Maryland",
|
85
|
-
value: "
|
85
|
+
value: "Maryland",
|
86
86
|
id: "MD",
|
87
87
|
children: [
|
88
88
|
{
|
89
89
|
label: "Marketing & Sales MD",
|
90
|
-
value: "
|
90
|
+
value: "Marketing & Sales MD",
|
91
91
|
id: "marketingMD",
|
92
92
|
},
|
93
93
|
{
|
94
94
|
label: "Installation Office MD",
|
95
|
-
value: "
|
95
|
+
value: "Installation Office MD",
|
96
96
|
id: "installationMD",
|
97
97
|
},
|
98
98
|
{
|
99
99
|
label: "Warehouse MD",
|
100
|
-
value: "
|
100
|
+
value: "Warehouse MD",
|
101
101
|
id: "warehouseMD",
|
102
102
|
},
|
103
103
|
]
|
104
104
|
},
|
105
105
|
{
|
106
106
|
label: "Connecticut",
|
107
|
-
value: "
|
107
|
+
value: "Connecticut",
|
108
108
|
id: "CT",
|
109
109
|
children: [
|
110
110
|
{
|
111
111
|
label: "Marketing & Sales CT",
|
112
|
-
value: "
|
112
|
+
value: "Marketing & Sales CT",
|
113
113
|
id: "marketingCT",
|
114
114
|
},
|
115
115
|
{
|
116
116
|
label: "Installation Office CT",
|
117
|
-
value: "
|
117
|
+
value: "Installation Office CT",
|
118
118
|
id: "installationCT",
|
119
119
|
},
|
120
120
|
{
|
121
121
|
label: "Warehouse CT",
|
122
|
-
value: "
|
122
|
+
value: "Warehouse CT",
|
123
123
|
id: "warehouseCT",
|
124
124
|
},
|
125
125
|
]
|
@@ -1,80 +1,80 @@
|
|
1
1
|
<% treeData = [
|
2
2
|
{
|
3
3
|
label: "HQ",
|
4
|
-
value: "
|
4
|
+
value: "HQ",
|
5
5
|
id: "hq1",
|
6
6
|
},
|
7
7
|
{
|
8
8
|
label: "Philadelphia",
|
9
|
-
value: "
|
9
|
+
value: "Philadelphia",
|
10
10
|
id: "phl1",
|
11
11
|
hideRadio: true,
|
12
12
|
children: [
|
13
13
|
{
|
14
14
|
label: "Marketing & Sales PHL",
|
15
|
-
value: "
|
15
|
+
value: "Marketing & Sales PHL",
|
16
16
|
id: "marketingPHL1",
|
17
17
|
},
|
18
18
|
{
|
19
19
|
label: "Installation Office PHL",
|
20
|
-
value: "
|
20
|
+
value: "Installation Office PHL",
|
21
21
|
id: "installationPHL1",
|
22
22
|
},
|
23
23
|
{
|
24
24
|
label: "Warehouse PHL",
|
25
|
-
value: "
|
25
|
+
value: "Warehouse PHL",
|
26
26
|
id: "warehousePHL1",
|
27
27
|
},
|
28
28
|
]
|
29
29
|
},
|
30
30
|
{
|
31
31
|
label: "New Jersey",
|
32
|
-
value: "
|
32
|
+
value: "New Jersey",
|
33
33
|
id: "nj2",
|
34
34
|
hideRadio: true,
|
35
35
|
children: [
|
36
36
|
{
|
37
37
|
label: "New Jersey",
|
38
|
-
value: "
|
38
|
+
value: "New Jersey",
|
39
39
|
id: "nj3",
|
40
40
|
hideRadio: true,
|
41
41
|
children: [
|
42
42
|
{
|
43
43
|
label: "Marketing & Sales NJ",
|
44
|
-
value: "
|
44
|
+
value: "Marketing & Sales NJ",
|
45
45
|
id: "marketingNJ1",
|
46
46
|
},
|
47
47
|
{
|
48
48
|
label: "Installation Office NJ",
|
49
|
-
value: "
|
49
|
+
value: "Installation Office NJ",
|
50
50
|
id: "installationNJ1",
|
51
51
|
},
|
52
52
|
{
|
53
53
|
label: "Warehouse NJ",
|
54
|
-
value: "
|
54
|
+
value: "Warehouse NJ",
|
55
55
|
id: "warehouseNJ1",
|
56
56
|
},
|
57
57
|
],
|
58
58
|
},
|
59
59
|
{
|
60
60
|
label: "Princeton",
|
61
|
-
value: "
|
61
|
+
value: "Princeton",
|
62
62
|
id: "princeton1",
|
63
63
|
hideRadio: true,
|
64
64
|
children: [
|
65
65
|
{
|
66
66
|
label: "Marketing & Sales Princeton",
|
67
|
-
value: "
|
67
|
+
value: "Marketing & Sales Princeton",
|
68
68
|
id: "marketingPR1",
|
69
69
|
},
|
70
70
|
{
|
71
71
|
label: "Installation Office Princeton",
|
72
|
-
value: "
|
72
|
+
value: "Installation Office Princeton",
|
73
73
|
id: "installationPR1",
|
74
74
|
},
|
75
75
|
{
|
76
76
|
label: "Warehouse Princeton",
|
77
|
-
value: "
|
77
|
+
value: "Warehouse Princeton",
|
78
78
|
id: "warehousePR1",
|
79
79
|
},
|
80
80
|
]
|
@@ -83,46 +83,46 @@
|
|
83
83
|
},
|
84
84
|
{
|
85
85
|
label: "Maryland",
|
86
|
-
value: "
|
86
|
+
value: "Maryland",
|
87
87
|
id: "MD1",
|
88
88
|
hideRadio: true,
|
89
89
|
children: [
|
90
90
|
{
|
91
91
|
label: "Marketing & Sales MD",
|
92
|
-
value: "
|
92
|
+
value: "Marketing & Sales MD",
|
93
93
|
id: "marketingMD1",
|
94
94
|
},
|
95
95
|
{
|
96
96
|
label: "Installation Office MD",
|
97
|
-
value: "
|
97
|
+
value: "Installation Office MD",
|
98
98
|
id: "installationMD1",
|
99
99
|
},
|
100
100
|
{
|
101
101
|
label: "Warehouse MD",
|
102
|
-
value: "
|
102
|
+
value: "Warehouse MD",
|
103
103
|
id: "warehouseMD1",
|
104
104
|
},
|
105
105
|
]
|
106
106
|
},
|
107
107
|
{
|
108
108
|
label: "Connecticut",
|
109
|
-
value: "
|
109
|
+
value: "Connecticut",
|
110
110
|
id: "CT1",
|
111
111
|
hideRadio: true,
|
112
112
|
children: [
|
113
113
|
{
|
114
114
|
label: "Marketing & Sales CT",
|
115
|
-
value: "
|
115
|
+
value: "Marketing & Sales CT",
|
116
116
|
id: "marketingCT1",
|
117
117
|
},
|
118
118
|
{
|
119
119
|
label: "Installation Office CT",
|
120
|
-
value: "
|
120
|
+
value: "Installation Office CT",
|
121
121
|
id: "installationCT1",
|
122
122
|
},
|
123
123
|
{
|
124
124
|
label: "Warehouse CT",
|
125
|
-
value: "
|
125
|
+
value: "Warehouse CT",
|
126
126
|
id: "warehouseCT1",
|
127
127
|
},
|
128
128
|
]
|