@things-factory/menu-ui 5.0.0-zeta.7 → 5.0.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.
@@ -4,9 +4,9 @@ import './viewparts/menu-tree-bar'
4
4
 
5
5
  import { html } from 'lit-html'
6
6
 
7
+ import { appendViewpart, TOOL_POSITION, VIEWPART_POSITION } from '@operato/layout'
7
8
  import { APPEND_APP_TOOL } from '@things-factory/apptool-base'
8
9
  import { auth } from '@things-factory/auth-base'
9
- import { appendViewpart, TOOL_POSITION, VIEWPART_POSITION } from '@things-factory/layout-base'
10
10
  import { ADD_MORENDA } from '@things-factory/more-base'
11
11
  import { navigate, store } from '@things-factory/shell'
12
12
  import { isMobileDevice } from '@things-factory/utils'
@@ -1,13 +1,13 @@
1
+ import '../viewparts/menu-bar'
2
+ import '../viewparts/menu-tile-list'
3
+
4
+ import gql from 'graphql-tag'
1
5
  import { css, html } from 'lit'
2
6
  import { connect } from 'pwa-helpers/connect-mixin.js'
3
- import gql from 'graphql-tag'
4
7
 
5
- import { store, client, PageView, navigate } from '@things-factory/shell'
6
- import { pulltorefresh, swipe } from '@things-factory/utils'
8
+ import { client, navigate, PageView, store } from '@things-factory/shell'
7
9
  import { ScrollbarStyles } from '@things-factory/styles'
8
-
9
- import '../viewparts/menu-bar'
10
- import '../viewparts/menu-tile-list'
10
+ import { pulltorefresh, swipe } from '@things-factory/utils'
11
11
 
12
12
  class MenuListPage extends connect(store)(PageView) {
13
13
  static get styles() {
@@ -68,7 +68,7 @@ class MenuListPage extends connect(store)(PageView) {
68
68
  const response = await client.query({
69
69
  query: gql`
70
70
  query {
71
- menus: userMenus {
71
+ userMenus {
72
72
  id
73
73
  name
74
74
  children {
@@ -86,7 +86,7 @@ class MenuListPage extends connect(store)(PageView) {
86
86
  `
87
87
  })
88
88
 
89
- return response.data.menus
89
+ return response.data.userMenus
90
90
  }
91
91
 
92
92
  async updated(changes) {
@@ -1,12 +1,14 @@
1
1
  import '@things-factory/form-ui'
2
2
  import '@things-factory/grist-ui'
3
+
4
+ import gql from 'graphql-tag'
5
+ import { css, html, LitElement } from 'lit'
6
+
7
+ import { getEditor, getRenderer } from '@things-factory/grist-ui'
3
8
  import { i18next, localize } from '@things-factory/i18n-base'
4
9
  import { client, CustomAlert } from '@things-factory/shell'
10
+ import { ScrollbarStyles } from '@things-factory/styles'
5
11
  import { gqlBuilder, isMobileDevice } from '@things-factory/utils'
6
- import { ScrollbarStyles, CommonButtonStyles } from '@things-factory/styles'
7
- import gql from 'graphql-tag'
8
- import { css, html, LitElement } from 'lit'
9
- import { getRenderer, getEditor } from '@things-factory/grist-ui'
10
12
 
11
13
  class MenuManagementDetail extends localize(i18next)(LitElement) {
12
14
  static get styles() {
@@ -245,7 +247,7 @@ class MenuManagementDetail extends localize(i18next)(LitElement) {
245
247
  query: gql`
246
248
  query {
247
249
  menus(${gqlBuilder.buildArgs({
248
- filters: [...this.searchForm.queryFilters, { name: 'parent', operator: 'eq', value: this.menuId }],
250
+ filters: [...this.searchForm.queryFilters, { name: 'parentId', operator: 'eq', value: this.menuId }],
249
251
  pagination: { page, limit },
250
252
  sortings: sorters
251
253
  })}) {
@@ -1,13 +1,15 @@
1
1
  import '@things-factory/form-ui'
2
2
  import '@things-factory/grist-ui'
3
+ import './menu-management-detail'
4
+
5
+ import gql from 'graphql-tag'
6
+ import { css, html } from 'lit'
7
+
8
+ import { openPopup } from '@operato/layout'
3
9
  import { i18next, localize } from '@things-factory/i18n-base'
4
- import { openPopup } from '@things-factory/layout-base'
5
10
  import { client, CustomAlert, PageView } from '@things-factory/shell'
11
+ import { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
6
12
  import { gqlBuilder, isMobileDevice } from '@things-factory/utils'
7
- import { ScrollbarStyles, CommonButtonStyles } from '@things-factory/styles'
8
- import gql from 'graphql-tag'
9
- import { css, html } from 'lit'
10
- import './menu-management-detail'
11
13
 
12
14
  class MenuManagement extends localize(i18next)(PageView) {
13
15
  static get properties() {
@@ -1,13 +1,15 @@
1
- import { client, PageView } from '@things-factory/shell'
2
- import { i18next, localize } from '@things-factory/i18n-base'
3
- import { css, html } from 'lit'
4
- import { openPopup } from '@things-factory/layout-base'
5
- import gql from 'graphql-tag'
6
1
  import '@material/mwc-button'
7
2
  import '@things-factory/component-ui'
8
3
  import '../components/role-select-popup'
9
4
  import '../components/child-menus-selector'
10
5
 
6
+ import gql from 'graphql-tag'
7
+ import { css, html } from 'lit'
8
+
9
+ import { openPopup } from '@operato/layout'
10
+ import { i18next, localize } from '@things-factory/i18n-base'
11
+ import { client, PageView } from '@things-factory/shell'
12
+
11
13
  class RoleMenusManagement extends localize(i18next)(PageView) {
12
14
  static get styles() {
13
15
  return [
@@ -124,7 +126,7 @@ class RoleMenusManagement extends localize(i18next)(PageView) {
124
126
  async refresh() {
125
127
  const response = await client.query({
126
128
  query: gql`
127
- query ($filters: [Filter], $pagination: Pagination, $sortings: [Sorting]) {
129
+ query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
128
130
  menus(filters: $filters, pagination: $pagination, sortings: $sortings) {
129
131
  items {
130
132
  id
@@ -1,10 +1,10 @@
1
+ import '@material/mwc-icon'
2
+
3
+ import gql from 'graphql-tag'
1
4
  import { css, html, LitElement } from 'lit'
2
5
  import { connect } from 'pwa-helpers/connect-mixin.js'
3
- import gql from 'graphql-tag'
4
-
5
- import '@material/mwc-icon'
6
6
 
7
- import { store, client } from '@things-factory/shell'
7
+ import { client, store } from '@things-factory/shell'
8
8
  import { ScrollbarStyles } from '@things-factory/styles'
9
9
 
10
10
  export default class MenuTreeBar extends connect(store)(LitElement) {
@@ -265,7 +265,7 @@ export default class MenuTreeBar extends connect(store)(LitElement) {
265
265
  const response = await client.query({
266
266
  query: gql`
267
267
  query {
268
- menus: userMenus {
268
+ userMenus {
269
269
  id
270
270
  name
271
271
  children {
@@ -285,7 +285,7 @@ export default class MenuTreeBar extends connect(store)(LitElement) {
285
285
  `
286
286
  })
287
287
 
288
- return response.data.menus
288
+ return response.data.userMenus
289
289
  }
290
290
  }
291
291
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/menu-ui",
3
- "version": "5.0.0-zeta.7",
3
+ "version": "5.0.0",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -24,15 +24,15 @@
24
24
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
25
25
  },
26
26
  "dependencies": {
27
- "@operato/i18n": "1.0.0-beta.38",
28
- "@things-factory/apptool-base": "^5.0.0-zeta.7",
29
- "@things-factory/component-ui": "^5.0.0-zeta.7",
30
- "@things-factory/fav-base": "^5.0.0-zeta.7",
31
- "@things-factory/form-ui": "^5.0.0-zeta.7",
32
- "@things-factory/grist-ui": "^5.0.0-zeta.7",
33
- "@things-factory/i18n-base": "^5.0.0-zeta.7",
34
- "@things-factory/layout-base": "^5.0.0-zeta.7",
35
- "@things-factory/menu-base": "^5.0.0-zeta.7"
27
+ "@operato/i18n": "^1.0.0",
28
+ "@operato/layout": "^1.0.0",
29
+ "@things-factory/apptool-base": "^5.0.0",
30
+ "@things-factory/component-ui": "^5.0.0",
31
+ "@things-factory/fav-base": "^5.0.0",
32
+ "@things-factory/form-ui": "^5.0.0",
33
+ "@things-factory/grist-ui": "^5.0.0",
34
+ "@things-factory/i18n-base": "^5.0.0",
35
+ "@things-factory/menu-base": "^5.0.0"
36
36
  },
37
- "gitHead": "e9618dfd6077ba14ebbca0ffb123a5a82660697b"
37
+ "gitHead": "32cb91663e38de9ab1bb7a72af923c3bf8ac187b"
38
38
  }