@things-factory/menu-ui 4.3.534 → 4.3.535

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.
@@ -208,7 +208,10 @@ export default class MenuTreeBar extends connect(store)(LitElement) {
208
208
  >
209
209
 
210
210
  <ul grouplevel>
211
- ${menu.children.map(subMenu => {
211
+ ${menu.children
212
+ // sort submenus depending on rank, or default to 0 if rank not found
213
+ .sort((a, b) => (a.rank || 0) - (b.rank || 0))
214
+ .map(subMenu => {
212
215
  const routing = this._getFullRouting(subMenu)
213
216
  const favorite = this.favorites.includes(routing)
214
217
  const { icon } = this.routingTypes[subMenu.routingType] || {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/menu-ui",
3
- "version": "4.3.534",
3
+ "version": "4.3.535",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -24,14 +24,14 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@operato/i18n": "^0.4.6",
27
- "@things-factory/apptool-base": "^4.3.534",
27
+ "@things-factory/apptool-base": "^4.3.535",
28
28
  "@things-factory/component-ui": "^4.3.534",
29
- "@things-factory/fav-base": "^4.3.534",
30
- "@things-factory/form-ui": "^4.3.534",
31
- "@things-factory/grist-ui": "^4.3.534",
32
- "@things-factory/i18n-base": "^4.3.534",
33
- "@things-factory/layout-base": "^4.3.534",
34
- "@things-factory/menu-base": "^4.3.534"
29
+ "@things-factory/fav-base": "^4.3.535",
30
+ "@things-factory/form-ui": "^4.3.535",
31
+ "@things-factory/grist-ui": "^4.3.535",
32
+ "@things-factory/i18n-base": "^4.3.535",
33
+ "@things-factory/layout-base": "^4.3.535",
34
+ "@things-factory/menu-base": "^4.3.535"
35
35
  },
36
- "gitHead": "f106f97fc688c4e335b17a4c3fe9711ee31ea566"
36
+ "gitHead": "d2755223b36e17526402f86cb9a100d632728863"
37
37
  }