volto-dropdownmenu 2.2.8 → 2.4.0

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/.release-it.json CHANGED
@@ -12,6 +12,6 @@
12
12
  "after:bump": "npx auto-changelog --commit-limit false -p"
13
13
  },
14
14
  "npm": {
15
- "publish": false
15
+ "publish": true
16
16
  }
17
17
  }
package/CHANGELOG.md CHANGED
@@ -4,10 +4,37 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### [v2.4.0](https://github.com/collective/volto-dropdownmenu/compare/v2.3.0...v2.4.0)
8
+
9
+ > 4 March 2022
10
+
11
+ - feat: added clickableNavigationRoots configurable option [`4f75f3b`](https://github.com/collective/volto-dropdownmenu/commit/4f75f3b8e1714b2e159bfe964d8ff7ca0bf445a9)
12
+ - fix: fix hasBlocks data if has only one empty text block [`584f6a2`](https://github.com/collective/volto-dropdownmenu/commit/584f6a280e38c8f2f589acb18534c8ca5d8163af)
13
+ - fix: fixed readme [`d16175a`](https://github.com/collective/volto-dropdownmenu/commit/d16175a99a68c6bc33c4b102f44d2479a30fafca)
14
+
15
+ #### [v2.3.0](https://github.com/collective/volto-dropdownmenu/compare/v2.2.9...v2.3.0)
16
+
17
+ > 26 October 2021
18
+
19
+ - chore: added npm publish true [`b8b1b6c`](https://github.com/collective/volto-dropdownmenu/commit/b8b1b6c6428fac759a7345bb33df95533524e517)
20
+ - chore: removed yarn.lock [`3037dd0`](https://github.com/collective/volto-dropdownmenu/commit/3037dd0f53a23d7b6dfd1835b5454a824481315c)
21
+ - chore: updated volto 14 [`a81180e`](https://github.com/collective/volto-dropdownmenu/commit/a81180e8ff81e08045ea2c45abe658475bbfa195)
22
+ - Release 2.3.0 [`5f785c5`](https://github.com/collective/volto-dropdownmenu/commit/5f785c58cee5351c8b6996b9f2c715a07c2bd04d)
23
+
24
+ #### [v2.2.9](https://github.com/collective/volto-dropdownmenu/compare/v2.2.8...v2.2.9)
25
+
26
+ > 30 August 2021
27
+
28
+ - Release 2.2.9 [`7f2cbca`](https://github.com/collective/volto-dropdownmenu/commit/7f2cbca43e11ca997725a0b86221a1d889880253)
29
+ - fix: close menu on navigation [`4b46bf1`](https://github.com/collective/volto-dropdownmenu/commit/4b46bf1d37c4cfa9d674225fd0530331ac6ca776)
30
+
7
31
  #### [v2.2.8](https://github.com/collective/volto-dropdownmenu/compare/v2.2.7...v2.2.8)
8
32
 
33
+ > 2 August 2021
34
+
9
35
  - fix: active claass on open menu [`#24`](https://github.com/collective/volto-dropdownmenu/pull/24)
10
36
  - ay11 navigation fixes [`#23`](https://github.com/collective/volto-dropdownmenu/pull/23)
37
+ - Release 2.2.8 [`24ffa94`](https://github.com/collective/volto-dropdownmenu/commit/24ffa940215a5eb0c9d09acd3279e59a1e11ede0)
11
38
 
12
39
  #### [v2.2.7](https://github.com/collective/volto-dropdownmenu/compare/v2.2.6...v2.2.7)
13
40
 
package/README.md CHANGED
@@ -23,6 +23,19 @@ To use the default template for the dropdown menu, add `src/addons/volto-dropdow
23
23
  ]
24
24
  ```
25
25
 
26
+ ### Navigation roots
27
+
28
+ By default, navigations roots are clickable, but there's the possibility to make them not clickable.
29
+ Enabling the field 'clickableNavigationRoots' in volto-dropdownmenu config, a field appears in configuration form and let editor to decide if make navigation roots clickable or not.
30
+
31
+ ```json
32
+ config.settings["volto-dropdownmenu"] = {
33
+ "options": {
34
+ "clickableNavigationRoots": true, //if true, a checkbox option in dropdown menu appears
35
+ },
36
+ };
37
+ ```
38
+
26
39
  ## Screenshots and demo
27
40
 
28
41
  ### Controlpanel
package/babel.config.js CHANGED
@@ -1 +1,17 @@
1
- module.exports = require('@plone/volto/babel');
1
+ module.exports = function (api) {
2
+ api.cache(true);
3
+ const presets = ['razzle/babel'];
4
+ const plugins = [
5
+ [
6
+ 'react-intl', // React Intl extractor, required for the whole i18n infrastructure to work
7
+ {
8
+ messagesDir: './build/messages/',
9
+ },
10
+ ],
11
+ ];
12
+
13
+ return {
14
+ plugins,
15
+ presets,
16
+ };
17
+ };
@@ -11,122 +11,142 @@ msgstr ""
11
11
  "Content-Transfer-Encoding: \n"
12
12
  "Plural-Forms: \n"
13
13
 
14
- #: customizations/components/theme/Navigation/Navigation
15
- msgid "Close menu"
16
- msgstr ""
17
-
18
- #: customizations/components/theme/Navigation/Navigation
19
- msgid "Main navigation"
20
- msgstr ""
21
-
22
- #: customizations/components/theme/Navigation/Navigation
23
- msgid "Open menu"
24
- msgstr ""
25
-
26
14
  #: components/DropdownMenu
15
+ # defaultMessage: Unknown Block {block}
27
16
  msgid "Unknown Block"
28
17
  msgstr ""
29
18
 
30
19
  #: widget/MenuConfigurationWidget
20
+ # defaultMessage: Add menu path
31
21
  msgid "dropdownmenu-add-rootpath"
32
22
  msgstr ""
33
23
 
34
24
  #: widget/MenuConfigurationForm
25
+ # defaultMessage: Additional classes
35
26
  msgid "dropdownmenu-additionalClasses"
36
27
  msgstr ""
37
28
 
38
29
  #: widget/MenuConfigurationForm
30
+ # defaultMessage: Additional classes for the item to apply specific styles, accordingly to site layout.
39
31
  msgid "dropdownmenu-additionalClassesDescription"
40
32
  msgstr ""
41
33
 
42
34
  #: widget/MenuConfigurationWidget
35
+ # defaultMessage: Add menu item
43
36
  msgid "dropdownmenu-addmenuitem"
44
37
  msgstr ""
45
38
 
46
39
  #: widget/MenuConfigurationForm
40
+ # defaultMessage: Blocks
47
41
  msgid "dropdownmenu-blocks"
48
42
  msgstr ""
49
43
 
50
44
  #: widget/MenuConfigurationForm
45
+ # defaultMessage: Add some blocks to show in dropdown menu.
51
46
  msgid "dropdownmenu-blocks-description"
52
47
  msgstr ""
53
48
 
49
+ #: widget/MenuConfigurationForm
50
+ # defaultMessage: Clickable navigation roots
51
+ msgid "dropdownmenu-clickableNavigationRoots"
52
+ msgstr ""
53
+
54
54
  #: components/DropdownMenu
55
+ # defaultMessage: Close menu
55
56
  msgid "dropdownmenu-close-menu-button"
56
57
  msgstr ""
57
58
 
58
59
  #: widget/MenuConfigurationWidget
60
+ # defaultMessage: Delete
59
61
  msgid "dropdownmenu-delete-button"
60
62
  msgstr ""
61
63
 
62
64
  #: widget/MenuConfigurationWidget
65
+ # defaultMessage: Delete menu path
63
66
  msgid "dropdownmenu-delete-menupath"
64
67
  msgstr ""
65
68
 
66
69
  #: widget/MenuConfigurationForm
70
+ # defaultMessage: Delete menu item
67
71
  msgid "dropdownmenu-deletemenuitem"
68
72
  msgstr ""
69
73
 
70
74
  #: widget/MenuConfigurationForm
75
+ # defaultMessage: Delete menu item
71
76
  msgid "dropdownmenu-deletemenuitem-button"
72
77
  msgstr ""
73
78
 
74
79
  #: widget/MenuConfigurationWidget
80
+ # defaultMessage: Select a menu item
75
81
  msgid "dropdownmenu-emptyActiveMenuItem"
76
82
  msgstr ""
77
83
 
78
84
  #: widget/MenuConfigurationWidget
85
+ # defaultMessage: Select a menu path
79
86
  msgid "dropdownmenu-emptyActiveMenuPath"
80
87
  msgstr ""
81
88
 
82
89
  #: widget/MenuConfigurationForm
90
+ # defaultMessage: Link
83
91
  msgid "dropdownmenu-linkUrl"
84
92
  msgstr ""
85
93
 
86
94
  #: widget/MenuConfigurationWidget
95
+ # defaultMessage: Menu items
87
96
  msgid "dropdownmenu-menuitems-header"
88
97
  msgstr ""
89
98
 
90
99
  #: widget/MenuConfigurationForm
100
+ # defaultMessage: Mode
91
101
  msgid "dropdownmenu-mode"
92
102
  msgstr ""
93
103
 
94
104
  #: widget/MenuConfigurationForm
105
+ # defaultMessage: Dropdown
95
106
  msgid "dropdownmenu-mode-dropdown"
96
107
  msgstr ""
97
108
 
98
109
  #: widget/MenuConfigurationForm
110
+ # defaultMessage: Simple link
99
111
  msgid "dropdownmenu-mode-simpleLink"
100
112
  msgstr ""
101
113
 
102
114
  #: widget/MenuConfigurationWidget
115
+ # defaultMessage: Move menu item down
103
116
  msgid "dropdownmenu-move-menuitem-down"
104
117
  msgstr ""
105
118
 
106
119
  #: widget/MenuConfigurationWidget
120
+ # defaultMessage: Move menu item up
107
121
  msgid "dropdownmenu-move-menuitem-up"
108
122
  msgstr ""
109
123
 
110
124
  #: widget/MenuConfigurationForm
125
+ # defaultMessage: Navigation root
111
126
  msgid "dropdownmenu-navigationRoot"
112
127
  msgstr ""
113
128
 
114
129
  #: widget/MenuConfigurationWidget
130
+ # defaultMessage: Root path
115
131
  msgid "dropdownmenu-rootpath"
116
132
  msgstr ""
117
133
 
118
134
  #: widget/MenuConfigurationForm
135
+ # defaultMessage: "Show more" link
119
136
  msgid "dropdownmenu-showMoreLink"
120
137
  msgstr ""
121
138
 
122
139
  #: widget/MenuConfigurationForm
140
+ # defaultMessage: "Show more" link text
123
141
  msgid "dropdownmenu-showMoreText"
124
142
  msgstr ""
125
143
 
126
144
  #: widget/MenuConfigurationForm
145
+ # defaultMessage: Title
127
146
  msgid "dropdownmenu-title"
128
147
  msgstr ""
129
148
 
130
149
  #: widget/MenuConfigurationForm
150
+ # defaultMessage: Visible
131
151
  msgid "dropdownmenu-visible"
132
152
  msgstr ""
@@ -11,122 +11,142 @@ msgstr ""
11
11
  "Content-Transfer-Encoding: \n"
12
12
  "Plural-Forms: \n"
13
13
 
14
- #: customizations/components/theme/Navigation/Navigation
15
- msgid "Close menu"
16
- msgstr "Close menu"
17
-
18
- #: customizations/components/theme/Navigation/Navigation
19
- msgid "Main navigation"
20
- msgstr "Main navigation"
21
-
22
- #: customizations/components/theme/Navigation/Navigation
23
- msgid "Open menu"
24
- msgstr "Open menu"
25
-
26
14
  #: components/DropdownMenu
15
+ # defaultMessage: Unknown Block {block}
27
16
  msgid "Unknown Block"
28
17
  msgstr "Unknown Block {block}"
29
18
 
30
19
  #: widget/MenuConfigurationWidget
20
+ # defaultMessage: Add menu path
31
21
  msgid "dropdownmenu-add-rootpath"
32
22
  msgstr "Add menu path"
33
23
 
34
24
  #: widget/MenuConfigurationForm
25
+ # defaultMessage: Additional classes
35
26
  msgid "dropdownmenu-additionalClasses"
36
27
  msgstr "Additional classes"
37
28
 
38
29
  #: widget/MenuConfigurationForm
30
+ # defaultMessage: Additional classes for the item to apply specific styles, accordingly to site layout.
39
31
  msgid "dropdownmenu-additionalClassesDescription"
40
32
  msgstr "Additional classes for the item to apply specific styles, accordingly to site layout."
41
33
 
42
34
  #: widget/MenuConfigurationWidget
35
+ # defaultMessage: Add menu item
43
36
  msgid "dropdownmenu-addmenuitem"
44
37
  msgstr "Add menu item"
45
38
 
46
39
  #: widget/MenuConfigurationForm
40
+ # defaultMessage: Blocks
47
41
  msgid "dropdownmenu-blocks"
48
42
  msgstr "Blocks"
49
43
 
50
44
  #: widget/MenuConfigurationForm
45
+ # defaultMessage: Add some blocks to show in dropdown menu.
51
46
  msgid "dropdownmenu-blocks-description"
52
47
  msgstr "Add some blocks to show in dropdown menu."
53
48
 
49
+ #: widget/MenuConfigurationForm
50
+ # defaultMessage: Clickable navigation roots
51
+ msgid "dropdownmenu-clickableNavigationRoots"
52
+ msgstr ""
53
+
54
54
  #: components/DropdownMenu
55
+ # defaultMessage: Close menu
55
56
  msgid "dropdownmenu-close-menu-button"
56
57
  msgstr "Close menu"
57
58
 
58
59
  #: widget/MenuConfigurationWidget
60
+ # defaultMessage: Delete
59
61
  msgid "dropdownmenu-delete-button"
60
62
  msgstr "Delete"
61
63
 
62
64
  #: widget/MenuConfigurationWidget
65
+ # defaultMessage: Delete menu path
63
66
  msgid "dropdownmenu-delete-menupath"
64
67
  msgstr "Delete menu path"
65
68
 
66
69
  #: widget/MenuConfigurationForm
70
+ # defaultMessage: Delete menu item
67
71
  msgid "dropdownmenu-deletemenuitem"
68
72
  msgstr "Delete menu item"
69
73
 
70
74
  #: widget/MenuConfigurationForm
75
+ # defaultMessage: Delete menu item
71
76
  msgid "dropdownmenu-deletemenuitem-button"
72
77
  msgstr "Delete menu item"
73
78
 
74
79
  #: widget/MenuConfigurationWidget
80
+ # defaultMessage: Select a menu item
75
81
  msgid "dropdownmenu-emptyActiveMenuItem"
76
82
  msgstr "Select a menu path"
77
83
 
78
84
  #: widget/MenuConfigurationWidget
85
+ # defaultMessage: Select a menu path
79
86
  msgid "dropdownmenu-emptyActiveMenuPath"
80
87
  msgstr "Select a menu item"
81
88
 
82
89
  #: widget/MenuConfigurationForm
90
+ # defaultMessage: Link
83
91
  msgid "dropdownmenu-linkUrl"
84
92
  msgstr "Link"
85
93
 
86
94
  #: widget/MenuConfigurationWidget
95
+ # defaultMessage: Menu items
87
96
  msgid "dropdownmenu-menuitems-header"
88
97
  msgstr "Menu items"
89
98
 
90
99
  #: widget/MenuConfigurationForm
100
+ # defaultMessage: Mode
91
101
  msgid "dropdownmenu-mode"
92
102
  msgstr "Mode"
93
103
 
94
104
  #: widget/MenuConfigurationForm
105
+ # defaultMessage: Dropdown
95
106
  msgid "dropdownmenu-mode-dropdown"
96
107
  msgstr "Dropdown"
97
108
 
98
109
  #: widget/MenuConfigurationForm
110
+ # defaultMessage: Simple link
99
111
  msgid "dropdownmenu-mode-simpleLink"
100
112
  msgstr "Simple link"
101
113
 
102
114
  #: widget/MenuConfigurationWidget
115
+ # defaultMessage: Move menu item down
103
116
  msgid "dropdownmenu-move-menuitem-down"
104
117
  msgstr "Move menu item up"
105
118
 
106
119
  #: widget/MenuConfigurationWidget
120
+ # defaultMessage: Move menu item up
107
121
  msgid "dropdownmenu-move-menuitem-up"
108
122
  msgstr "Move menu item down"
109
123
 
110
124
  #: widget/MenuConfigurationForm
125
+ # defaultMessage: Navigation root
111
126
  msgid "dropdownmenu-navigationRoot"
112
127
  msgstr "Navigation root"
113
128
 
114
129
  #: widget/MenuConfigurationWidget
130
+ # defaultMessage: Root path
115
131
  msgid "dropdownmenu-rootpath"
116
132
  msgstr "Root path"
117
133
 
118
134
  #: widget/MenuConfigurationForm
135
+ # defaultMessage: "Show more" link
119
136
  msgid "dropdownmenu-showMoreLink"
120
137
  msgstr "Show more link"
121
138
 
122
139
  #: widget/MenuConfigurationForm
140
+ # defaultMessage: "Show more" link text
123
141
  msgid "dropdownmenu-showMoreText"
124
142
  msgstr "Show more link text"
125
143
 
126
144
  #: widget/MenuConfigurationForm
145
+ # defaultMessage: Title
127
146
  msgid "dropdownmenu-title"
128
147
  msgstr "Title"
129
148
 
130
149
  #: widget/MenuConfigurationForm
150
+ # defaultMessage: Visible
131
151
  msgid "dropdownmenu-visible"
132
152
  msgstr "Visible"
@@ -11,122 +11,142 @@ msgstr ""
11
11
  "Content-Transfer-Encoding: \n"
12
12
  "Plural-Forms: \n"
13
13
 
14
- #: customizations/components/theme/Navigation/Navigation
15
- msgid "Close menu"
16
- msgstr ""
17
-
18
- #: customizations/components/theme/Navigation/Navigation
19
- msgid "Main navigation"
20
- msgstr ""
21
-
22
- #: customizations/components/theme/Navigation/Navigation
23
- msgid "Open menu"
24
- msgstr ""
25
-
26
14
  #: components/DropdownMenu
15
+ # defaultMessage: Unknown Block {block}
27
16
  msgid "Unknown Block"
28
17
  msgstr ""
29
18
 
30
19
  #: widget/MenuConfigurationWidget
20
+ # defaultMessage: Add menu path
31
21
  msgid "dropdownmenu-add-rootpath"
32
22
  msgstr ""
33
23
 
34
24
  #: widget/MenuConfigurationForm
25
+ # defaultMessage: Additional classes
35
26
  msgid "dropdownmenu-additionalClasses"
36
27
  msgstr ""
37
28
 
38
29
  #: widget/MenuConfigurationForm
30
+ # defaultMessage: Additional classes for the item to apply specific styles, accordingly to site layout.
39
31
  msgid "dropdownmenu-additionalClassesDescription"
40
32
  msgstr ""
41
33
 
42
34
  #: widget/MenuConfigurationWidget
35
+ # defaultMessage: Add menu item
43
36
  msgid "dropdownmenu-addmenuitem"
44
37
  msgstr ""
45
38
 
46
39
  #: widget/MenuConfigurationForm
40
+ # defaultMessage: Blocks
47
41
  msgid "dropdownmenu-blocks"
48
42
  msgstr ""
49
43
 
50
44
  #: widget/MenuConfigurationForm
45
+ # defaultMessage: Add some blocks to show in dropdown menu.
51
46
  msgid "dropdownmenu-blocks-description"
52
47
  msgstr ""
53
48
 
49
+ #: widget/MenuConfigurationForm
50
+ # defaultMessage: Clickable navigation roots
51
+ msgid "dropdownmenu-clickableNavigationRoots"
52
+ msgstr ""
53
+
54
54
  #: components/DropdownMenu
55
+ # defaultMessage: Close menu
55
56
  msgid "dropdownmenu-close-menu-button"
56
57
  msgstr ""
57
58
 
58
59
  #: widget/MenuConfigurationWidget
60
+ # defaultMessage: Delete
59
61
  msgid "dropdownmenu-delete-button"
60
62
  msgstr ""
61
63
 
62
64
  #: widget/MenuConfigurationWidget
65
+ # defaultMessage: Delete menu path
63
66
  msgid "dropdownmenu-delete-menupath"
64
67
  msgstr ""
65
68
 
66
69
  #: widget/MenuConfigurationForm
70
+ # defaultMessage: Delete menu item
67
71
  msgid "dropdownmenu-deletemenuitem"
68
72
  msgstr ""
69
73
 
70
74
  #: widget/MenuConfigurationForm
75
+ # defaultMessage: Delete menu item
71
76
  msgid "dropdownmenu-deletemenuitem-button"
72
77
  msgstr ""
73
78
 
74
79
  #: widget/MenuConfigurationWidget
80
+ # defaultMessage: Select a menu item
75
81
  msgid "dropdownmenu-emptyActiveMenuItem"
76
82
  msgstr ""
77
83
 
78
84
  #: widget/MenuConfigurationWidget
85
+ # defaultMessage: Select a menu path
79
86
  msgid "dropdownmenu-emptyActiveMenuPath"
80
87
  msgstr ""
81
88
 
82
89
  #: widget/MenuConfigurationForm
90
+ # defaultMessage: Link
83
91
  msgid "dropdownmenu-linkUrl"
84
92
  msgstr ""
85
93
 
86
94
  #: widget/MenuConfigurationWidget
95
+ # defaultMessage: Menu items
87
96
  msgid "dropdownmenu-menuitems-header"
88
97
  msgstr ""
89
98
 
90
99
  #: widget/MenuConfigurationForm
100
+ # defaultMessage: Mode
91
101
  msgid "dropdownmenu-mode"
92
102
  msgstr ""
93
103
 
94
104
  #: widget/MenuConfigurationForm
105
+ # defaultMessage: Dropdown
95
106
  msgid "dropdownmenu-mode-dropdown"
96
107
  msgstr ""
97
108
 
98
109
  #: widget/MenuConfigurationForm
110
+ # defaultMessage: Simple link
99
111
  msgid "dropdownmenu-mode-simpleLink"
100
112
  msgstr ""
101
113
 
102
114
  #: widget/MenuConfigurationWidget
115
+ # defaultMessage: Move menu item down
103
116
  msgid "dropdownmenu-move-menuitem-down"
104
117
  msgstr ""
105
118
 
106
119
  #: widget/MenuConfigurationWidget
120
+ # defaultMessage: Move menu item up
107
121
  msgid "dropdownmenu-move-menuitem-up"
108
122
  msgstr ""
109
123
 
110
124
  #: widget/MenuConfigurationForm
125
+ # defaultMessage: Navigation root
111
126
  msgid "dropdownmenu-navigationRoot"
112
127
  msgstr ""
113
128
 
114
129
  #: widget/MenuConfigurationWidget
130
+ # defaultMessage: Root path
115
131
  msgid "dropdownmenu-rootpath"
116
132
  msgstr ""
117
133
 
118
134
  #: widget/MenuConfigurationForm
135
+ # defaultMessage: "Show more" link
119
136
  msgid "dropdownmenu-showMoreLink"
120
137
  msgstr ""
121
138
 
122
139
  #: widget/MenuConfigurationForm
140
+ # defaultMessage: "Show more" link text
123
141
  msgid "dropdownmenu-showMoreText"
124
142
  msgstr ""
125
143
 
126
144
  #: widget/MenuConfigurationForm
145
+ # defaultMessage: Title
127
146
  msgid "dropdownmenu-title"
128
147
  msgstr ""
129
148
 
130
149
  #: widget/MenuConfigurationForm
150
+ # defaultMessage: Visible
131
151
  msgid "dropdownmenu-visible"
132
152
  msgstr ""