@things-factory/menu-ui 3.6.50 → 3.6.51
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.
|
@@ -64,7 +64,7 @@ class ChildMenusSelector extends localize(i18next)(LitElement) {
|
|
|
64
64
|
|
|
65
65
|
render() {
|
|
66
66
|
const parentMenu = this.parentMenu || {}
|
|
67
|
-
const menus = parentMenu.
|
|
67
|
+
const menus = parentMenu.children || []
|
|
68
68
|
const roleMenus = this.roleMenus || []
|
|
69
69
|
|
|
70
70
|
return html`
|
|
@@ -90,7 +90,7 @@ class RoleMenusManagement extends localize(i18next)(PageView) {
|
|
|
90
90
|
</div>
|
|
91
91
|
|
|
92
92
|
<div subtitle>${i18next.t('title.menus')}</div>
|
|
93
|
-
<div id="
|
|
93
|
+
<div id="children-menus">
|
|
94
94
|
<div>
|
|
95
95
|
<quick-find-list
|
|
96
96
|
.data="${data}"
|
|
@@ -130,7 +130,7 @@ class RoleMenusManagement extends localize(i18next)(PageView) {
|
|
|
130
130
|
id
|
|
131
131
|
name
|
|
132
132
|
description
|
|
133
|
-
|
|
133
|
+
children {
|
|
134
134
|
id
|
|
135
135
|
name
|
|
136
136
|
}
|
|
@@ -148,7 +148,7 @@ class RoleMenusManagement extends localize(i18next)(PageView) {
|
|
|
148
148
|
|
|
149
149
|
if (!response.errors?.length) {
|
|
150
150
|
const menus = response.data.menus.items || []
|
|
151
|
-
this.parentMenus = menus.filter(menu => menu.
|
|
151
|
+
this.parentMenus = menus.filter(menu => menu.children?.length)
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
|
|
@@ -50,7 +50,7 @@ export default class MenuTileList extends LitElement {
|
|
|
50
50
|
text-decoration: none;
|
|
51
51
|
|
|
52
52
|
font-size: 1.4em;
|
|
53
|
-
line-height:1.3;
|
|
53
|
+
line-height: 1.3;
|
|
54
54
|
word-wrap: break-word;
|
|
55
55
|
word-break: keep-all;
|
|
56
56
|
|
|
@@ -153,7 +153,7 @@ export default class MenuTileList extends LitElement {
|
|
|
153
153
|
if (menuId !== 0 && !menuId) {
|
|
154
154
|
/* favorite menus */
|
|
155
155
|
var submenus = topmenus.reduce((allmenu, topmenu) => {
|
|
156
|
-
let menus = (topmenu && topmenu.
|
|
156
|
+
let menus = (topmenu && topmenu.children) || []
|
|
157
157
|
menus.forEach(menu => {
|
|
158
158
|
if (this.favorites.includes(this._getFullRouting(menu))) {
|
|
159
159
|
allmenu.push(menu)
|
|
@@ -163,7 +163,7 @@ export default class MenuTileList extends LitElement {
|
|
|
163
163
|
}, [])
|
|
164
164
|
} else {
|
|
165
165
|
var menu = topmenus[menuId]
|
|
166
|
-
var submenus = (menu && menu.
|
|
166
|
+
var submenus = (menu && menu.children) || []
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
return html`
|
|
@@ -193,7 +193,7 @@ export default class MenuTreeBar extends connect(store)(LitElement) {
|
|
|
193
193
|
>
|
|
194
194
|
|
|
195
195
|
<ul grouplevel>
|
|
196
|
-
${menu.
|
|
196
|
+
${menu.children.map(subMenu => {
|
|
197
197
|
const routing = this._getFullRouting(subMenu)
|
|
198
198
|
const favorite = this.favorites.includes(routing)
|
|
199
199
|
const { icon } = this.routingTypes[subMenu.routingType] || {}
|
|
@@ -268,7 +268,7 @@ export default class MenuTreeBar extends connect(store)(LitElement) {
|
|
|
268
268
|
menus: userMenus {
|
|
269
269
|
id
|
|
270
270
|
name
|
|
271
|
-
|
|
271
|
+
children {
|
|
272
272
|
id
|
|
273
273
|
name
|
|
274
274
|
routingType
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/menu-ui",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.51",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@things-factory/grist-ui": "^3.6.45",
|
|
32
32
|
"@things-factory/i18n-ui": "^3.6.49",
|
|
33
33
|
"@things-factory/layout-base": "^3.6.50",
|
|
34
|
-
"@things-factory/menu-base": "^3.6.
|
|
34
|
+
"@things-factory/menu-base": "^3.6.51"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "330ce06166b810143eecf0be412d802ff628a5e9"
|
|
37
37
|
}
|