@things-factory/menu-ui 4.1.40 → 4.3.0-alpha.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/client/apptools/favorite-tool.js +1 -1
- package/client/components/child-menus-selector.js +3 -3
- package/client/components/role-select-popup.js +2 -2
- package/client/pages/menu-list-page.js +1 -1
- package/client/pages/menu-management-detail.js +1 -1
- package/client/pages/menu-management.js +1 -1
- package/client/pages/role-menus-management.js +3 -3
- package/client/viewparts/menu-bar.js +1 -1
- package/client/viewparts/menu-tile-list.js +1 -1
- package/client/viewparts/menu-tree-bar.js +1 -1
- package/package.json +11 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
2
2
|
import { client } from '@things-factory/shell'
|
|
3
3
|
import gql from 'graphql-tag'
|
|
4
|
-
import { css, html, LitElement } from 'lit
|
|
4
|
+
import { css, html, LitElement } from 'lit'
|
|
5
5
|
|
|
6
6
|
class ChildMenusSelector extends localize(i18next)(LitElement) {
|
|
7
7
|
static get styles() {
|
|
@@ -105,7 +105,7 @@ class ChildMenusSelector extends localize(i18next)(LitElement) {
|
|
|
105
105
|
|
|
106
106
|
const response = await client.mutate({
|
|
107
107
|
mutation: gql`
|
|
108
|
-
mutation($roleId: String!, $parentMenuId: String!, $isCheckedAll: Boolean!) {
|
|
108
|
+
mutation ($roleId: String!, $parentMenuId: String!, $isCheckedAll: Boolean!) {
|
|
109
109
|
updateRoleMenus(roleId: $roleId, parentMenuId: $parentMenuId, isCheckedAll: $isCheckedAll) {
|
|
110
110
|
name
|
|
111
111
|
}
|
|
@@ -126,7 +126,7 @@ class ChildMenusSelector extends localize(i18next)(LitElement) {
|
|
|
126
126
|
|
|
127
127
|
const response = await client.mutate({
|
|
128
128
|
mutation: gql`
|
|
129
|
-
mutation($roleId: String!, $targetMenuId: String!, $isCheckedMenu: Boolean!) {
|
|
129
|
+
mutation ($roleId: String!, $targetMenuId: String!, $isCheckedMenu: Boolean!) {
|
|
130
130
|
updateRoleMenu(roleId: $roleId, targetMenuId: $targetMenuId, isCheckedMenu: $isCheckedMenu) {
|
|
131
131
|
id
|
|
132
132
|
name
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
2
2
|
import { client } from '@things-factory/shell'
|
|
3
3
|
import gql from 'graphql-tag'
|
|
4
|
-
import { css, html, LitElement } from 'lit
|
|
4
|
+
import { css, html, LitElement } from 'lit'
|
|
5
5
|
import { isMobileDevice } from '@things-factory/utils'
|
|
6
6
|
import '@material/mwc-button'
|
|
7
7
|
import '@things-factory/grist-ui'
|
|
@@ -138,7 +138,7 @@ class RoleSelectPopup extends localize(i18next)(LitElement) {
|
|
|
138
138
|
|
|
139
139
|
const response = await client.query({
|
|
140
140
|
query: gql`
|
|
141
|
-
query($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
141
|
+
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
142
142
|
roles(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
143
143
|
items {
|
|
144
144
|
id
|
|
@@ -5,7 +5,7 @@ import { client, CustomAlert } from '@things-factory/shell'
|
|
|
5
5
|
import { gqlBuilder, isMobileDevice } from '@things-factory/utils'
|
|
6
6
|
import { ScrollbarStyles, CommonButtonStyles } from '@things-factory/styles'
|
|
7
7
|
import gql from 'graphql-tag'
|
|
8
|
-
import { css, html, LitElement } from 'lit
|
|
8
|
+
import { css, html, LitElement } from 'lit'
|
|
9
9
|
import { getRenderer, getEditor } from '@things-factory/grist-ui'
|
|
10
10
|
|
|
11
11
|
class MenuManagementDetail extends localize(i18next)(LitElement) {
|
|
@@ -6,7 +6,7 @@ import { client, CustomAlert, PageView } from '@things-factory/shell'
|
|
|
6
6
|
import { gqlBuilder, isMobileDevice } from '@things-factory/utils'
|
|
7
7
|
import { ScrollbarStyles, CommonButtonStyles } from '@things-factory/styles'
|
|
8
8
|
import gql from 'graphql-tag'
|
|
9
|
-
import { css, html } from 'lit
|
|
9
|
+
import { css, html } from 'lit'
|
|
10
10
|
import './menu-management-detail'
|
|
11
11
|
|
|
12
12
|
class MenuManagement extends localize(i18next)(PageView) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { client, PageView } from '@things-factory/shell'
|
|
2
2
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
3
|
-
import { css, html } from 'lit
|
|
3
|
+
import { css, html } from 'lit'
|
|
4
4
|
import { openPopup } from '@things-factory/layout-base'
|
|
5
5
|
import gql from 'graphql-tag'
|
|
6
6
|
import '@material/mwc-button'
|
|
@@ -124,7 +124,7 @@ class RoleMenusManagement extends localize(i18next)(PageView) {
|
|
|
124
124
|
async refresh() {
|
|
125
125
|
const response = await client.query({
|
|
126
126
|
query: gql`
|
|
127
|
-
query($filters: [Filter], $pagination: Pagination, $sortings: [Sorting]) {
|
|
127
|
+
query ($filters: [Filter], $pagination: Pagination, $sortings: [Sorting]) {
|
|
128
128
|
menus(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
129
129
|
items {
|
|
130
130
|
id
|
|
@@ -155,7 +155,7 @@ class RoleMenusManagement extends localize(i18next)(PageView) {
|
|
|
155
155
|
async getMenus(targetRole) {
|
|
156
156
|
const response = await client.query({
|
|
157
157
|
query: gql`
|
|
158
|
-
query($roleId: String!) {
|
|
158
|
+
query ($roleId: String!) {
|
|
159
159
|
roleMenus(roleId: $roleId) {
|
|
160
160
|
items {
|
|
161
161
|
id
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/menu-ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0-alpha.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": "^0.
|
|
28
|
-
"@things-factory/apptool-base": "^4.
|
|
29
|
-
"@things-factory/component-ui": "^4.
|
|
30
|
-
"@things-factory/fav-base": "^4.
|
|
31
|
-
"@things-factory/form-ui": "^4.
|
|
32
|
-
"@things-factory/grist-ui": "^4.
|
|
33
|
-
"@things-factory/i18n-base": "^4.
|
|
34
|
-
"@things-factory/layout-base": "^4.
|
|
35
|
-
"@things-factory/menu-base": "^4.
|
|
27
|
+
"@operato/i18n": "^0.4.5",
|
|
28
|
+
"@things-factory/apptool-base": "^4.3.0-alpha.0",
|
|
29
|
+
"@things-factory/component-ui": "^4.3.0-alpha.0",
|
|
30
|
+
"@things-factory/fav-base": "^4.3.0-alpha.0",
|
|
31
|
+
"@things-factory/form-ui": "^4.3.0-alpha.0",
|
|
32
|
+
"@things-factory/grist-ui": "^4.3.0-alpha.0",
|
|
33
|
+
"@things-factory/i18n-base": "^4.3.0-alpha.0",
|
|
34
|
+
"@things-factory/layout-base": "^4.3.0-alpha.0",
|
|
35
|
+
"@things-factory/menu-base": "^4.3.0-alpha.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "6467d1b2a5b2f8abb1bc3982e4651a5742ad4043"
|
|
38
38
|
}
|