@things-factory/menu-ui 5.0.0-zeta.9 → 5.0.7
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.
|
@@ -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 {
|
|
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
|
-
|
|
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.
|
|
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: '
|
|
250
|
+
filters: [...this.searchForm.queryFilters, { name: 'parentId', operator: 'eq', value: this.menuId }],
|
|
249
251
|
pagination: { page, limit },
|
|
250
252
|
sortings: sorters
|
|
251
253
|
})}) {
|
|
@@ -126,7 +126,7 @@ class RoleMenusManagement extends localize(i18next)(PageView) {
|
|
|
126
126
|
async refresh() {
|
|
127
127
|
const response = await client.query({
|
|
128
128
|
query: gql`
|
|
129
|
-
query ($filters: [Filter], $pagination: Pagination, $sortings: [Sorting]) {
|
|
129
|
+
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
130
130
|
menus(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
131
131
|
items {
|
|
132
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 {
|
|
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
|
-
|
|
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.
|
|
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.
|
|
3
|
+
"version": "5.0.7",
|
|
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
|
|
28
|
-
"@operato/layout": "^1.0.
|
|
29
|
-
"@things-factory/apptool-base": "^5.0.
|
|
30
|
-
"@things-factory/component-ui": "^5.0.0
|
|
31
|
-
"@things-factory/fav-base": "^5.0.
|
|
32
|
-
"@things-factory/form-ui": "^5.0.
|
|
33
|
-
"@things-factory/grist-ui": "^5.0.
|
|
34
|
-
"@things-factory/i18n-base": "^5.0.
|
|
35
|
-
"@things-factory/menu-base": "^5.0.
|
|
27
|
+
"@operato/i18n": "^1.0.0",
|
|
28
|
+
"@operato/layout": "^1.0.1",
|
|
29
|
+
"@things-factory/apptool-base": "^5.0.7",
|
|
30
|
+
"@things-factory/component-ui": "^5.0.0",
|
|
31
|
+
"@things-factory/fav-base": "^5.0.7",
|
|
32
|
+
"@things-factory/form-ui": "^5.0.1",
|
|
33
|
+
"@things-factory/grist-ui": "^5.0.7",
|
|
34
|
+
"@things-factory/i18n-base": "^5.0.7",
|
|
35
|
+
"@things-factory/menu-base": "^5.0.7"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "1c7c7618e2e3c9ef8b07d730c3df84c8bc01b35f"
|
|
38
38
|
}
|