@things-factory/operato-ecs 7.0.1-beta.8 → 7.0.1-beta.9
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/bootstrap.js +7 -1
- package/package.json +21 -21
- package/schema.graphql +60 -0
package/client/bootstrap.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import '@things-factory/notification'
|
2
2
|
import '@things-factory/board-ui'
|
3
3
|
import '@operato/i18n/ox-i18n.js'
|
4
|
+
import '@things-factory/auth-ui/dist-client' /* for domain-switch */
|
4
5
|
import '@things-factory/setting-ui/dist-client' /* secure-iplist-setting-let, theme-mode-setting-let */
|
5
6
|
|
6
7
|
import { html } from 'lit-html'
|
@@ -8,6 +9,7 @@ import { html } from 'lit-html'
|
|
8
9
|
import { navigate, store } from '@operato/shell'
|
9
10
|
import { appendViewpart, toggleOverlay, TOOL_POSITION, VIEWPART_POSITION } from '@operato/layout'
|
10
11
|
import { registerDefaultGroups } from '@operato/board/register-default-groups.js'
|
12
|
+
import { isMobileDevice } from '@operato/utils'
|
11
13
|
|
12
14
|
import { hasPrivilege } from '@things-factory/auth-base/dist-client'
|
13
15
|
import { setAuthManagementMenus } from '@things-factory/auth-ui/dist-client'
|
@@ -46,7 +48,11 @@ export default async function bootstrap() {
|
|
46
48
|
contextToolbar: 'page-footer'
|
47
49
|
})
|
48
50
|
|
49
|
-
await setupMenuPart({
|
51
|
+
await setupMenuPart({
|
52
|
+
hovering: isMobileDevice(),
|
53
|
+
position: VIEWPART_POSITION.NAVBAR,
|
54
|
+
portraitSlotTemplate: html` <domain-switch attrname="description" slot="head"></domain-switch> `
|
55
|
+
})
|
50
56
|
updateMenuTemplate([])
|
51
57
|
|
52
58
|
/* add addon-menu management page morenda */
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@things-factory/operato-ecs",
|
3
|
-
"version": "7.0.1-beta.
|
3
|
+
"version": "7.0.1-beta.9",
|
4
4
|
"main": "dist-server/index.js",
|
5
5
|
"browser": "client/index.js",
|
6
6
|
"things-factory": true,
|
@@ -55,34 +55,34 @@
|
|
55
55
|
"@operato/scene-switch": "^2.0.0-beta.0",
|
56
56
|
"@operato/scene-table": "^2.0.0-beta.0",
|
57
57
|
"@operato/scene-timer": "^2.0.0-beta.0",
|
58
|
-
"@things-factory/api": "^7.0.1-beta.
|
59
|
-
"@things-factory/apptool-ui": "^7.0.1-beta.
|
60
|
-
"@things-factory/auth-ui": "^7.0.1-beta.
|
61
|
-
"@things-factory/board-service": "^7.0.1-beta.
|
62
|
-
"@things-factory/board-ui": "^7.0.1-beta.
|
58
|
+
"@things-factory/api": "^7.0.1-beta.9",
|
59
|
+
"@things-factory/apptool-ui": "^7.0.1-beta.9",
|
60
|
+
"@things-factory/auth-ui": "^7.0.1-beta.9",
|
61
|
+
"@things-factory/board-service": "^7.0.1-beta.9",
|
62
|
+
"@things-factory/board-ui": "^7.0.1-beta.9",
|
63
63
|
"@things-factory/context-ui": "^7.0.1-beta.8",
|
64
|
-
"@things-factory/dashboard": "^7.0.1-beta.
|
64
|
+
"@things-factory/dashboard": "^7.0.1-beta.9",
|
65
65
|
"@things-factory/export-ui": "^7.0.1-beta.8",
|
66
66
|
"@things-factory/help": "^7.0.1-beta.8",
|
67
|
-
"@things-factory/i18n-base": "^7.0.1-beta.
|
68
|
-
"@things-factory/integration-influxdb": "^7.0.1-beta.
|
69
|
-
"@things-factory/integration-melsec": "^7.0.1-beta.
|
70
|
-
"@things-factory/integration-modbus": "^7.0.1-beta.
|
71
|
-
"@things-factory/integration-opc": "^7.0.1-beta.
|
72
|
-
"@things-factory/integration-ui": "^7.0.1-beta.
|
73
|
-
"@things-factory/lite-menu": "^7.0.1-beta.
|
67
|
+
"@things-factory/i18n-base": "^7.0.1-beta.9",
|
68
|
+
"@things-factory/integration-influxdb": "^7.0.1-beta.9",
|
69
|
+
"@things-factory/integration-melsec": "^7.0.1-beta.9",
|
70
|
+
"@things-factory/integration-modbus": "^7.0.1-beta.9",
|
71
|
+
"@things-factory/integration-opc": "^7.0.1-beta.9",
|
72
|
+
"@things-factory/integration-ui": "^7.0.1-beta.9",
|
73
|
+
"@things-factory/lite-menu": "^7.0.1-beta.9",
|
74
74
|
"@things-factory/more-ui": "^7.0.1-beta.8",
|
75
|
-
"@things-factory/notification": "^7.0.1-beta.
|
76
|
-
"@things-factory/oauth2-client": "^7.0.1-beta.
|
77
|
-
"@things-factory/print-ui": "^7.0.1-beta.
|
78
|
-
"@things-factory/resource-ui": "^7.0.1-beta.
|
79
|
-
"@things-factory/setting-base": "^7.0.1-beta.
|
80
|
-
"@things-factory/setting-ui": "^7.0.1-beta.
|
75
|
+
"@things-factory/notification": "^7.0.1-beta.9",
|
76
|
+
"@things-factory/oauth2-client": "^7.0.1-beta.9",
|
77
|
+
"@things-factory/print-ui": "^7.0.1-beta.9",
|
78
|
+
"@things-factory/resource-ui": "^7.0.1-beta.9",
|
79
|
+
"@things-factory/setting-base": "^7.0.1-beta.9",
|
80
|
+
"@things-factory/setting-ui": "^7.0.1-beta.9",
|
81
81
|
"@things-factory/shell": "^7.0.1-beta.8",
|
82
82
|
"@things-factory/system": "^7.0.1-beta.8"
|
83
83
|
},
|
84
84
|
"devDependencies": {
|
85
85
|
"@things-factory/builder": "^7.0.1-beta.6"
|
86
86
|
},
|
87
|
-
"gitHead": "
|
87
|
+
"gitHead": "b2fb4923e2763b4d831f934905dd6ae0019446a4"
|
88
88
|
}
|
package/schema.graphql
CHANGED
@@ -1694,6 +1694,9 @@ type Mutation {
|
|
1694
1694
|
|
1695
1695
|
"""To create new user"""
|
1696
1696
|
createUser(user: NewUser!): User!
|
1697
|
+
|
1698
|
+
"""To create new UserPreference"""
|
1699
|
+
createUserPreference(preference: NewUserPreference!): UserPreference!
|
1697
1700
|
deleteAppBinding(id: String!): Boolean!
|
1698
1701
|
|
1699
1702
|
"""To delete appliance"""
|
@@ -1840,6 +1843,9 @@ type Mutation {
|
|
1840
1843
|
"""To delete my PagePreference"""
|
1841
1844
|
deleteMyPagePreference(element: String!, page: String!): Boolean!
|
1842
1845
|
|
1846
|
+
"""To delete my preference"""
|
1847
|
+
deleteMyUserPreference(element: String!, key: String!): Boolean!
|
1848
|
+
|
1843
1849
|
"""To delete Notification"""
|
1844
1850
|
deleteNotification(id: String!): Boolean!
|
1845
1851
|
|
@@ -1927,6 +1933,12 @@ type Mutation {
|
|
1927
1933
|
"""To delete a user"""
|
1928
1934
|
deleteUser(email: EmailAddress!): Boolean!
|
1929
1935
|
|
1936
|
+
"""To delete UserPreference"""
|
1937
|
+
deleteUserPreference(id: String!): Boolean!
|
1938
|
+
|
1939
|
+
"""To delete multiple UserPreferences"""
|
1940
|
+
deleteUserPreferences(ids: [String!]!): Boolean!
|
1941
|
+
|
1930
1942
|
"""To delete some users"""
|
1931
1943
|
deleteUsers(emails: [String!]!): Boolean!
|
1932
1944
|
|
@@ -2244,6 +2256,9 @@ type Mutation {
|
|
2244
2256
|
"""To create or update my PagePreference"""
|
2245
2257
|
updateMyPagePreference(element: String!, page: String!, preference: Object!): PagePreference!
|
2246
2258
|
|
2259
|
+
"""To create or update my preference"""
|
2260
|
+
updateMyUserPreference(key: String!, preference: Object!): UserPreference!
|
2261
|
+
|
2247
2262
|
"""To modify Notification information"""
|
2248
2263
|
updateNotification(id: String!, patch: NotificationPatch!): Notification!
|
2249
2264
|
|
@@ -2298,6 +2313,9 @@ type Mutation {
|
|
2298
2313
|
"""To modify user information"""
|
2299
2314
|
updateUser(email: EmailAddress!, patch: UserPatch!): User!
|
2300
2315
|
|
2316
|
+
"""To modify UserPreference information"""
|
2317
|
+
updateUserPreference(id: String!, patch: UserPreferencePatch!): UserPreference!
|
2318
|
+
|
2301
2319
|
"""To update roles for a user"""
|
2302
2320
|
updateUserRoles(availableRoles: [ObjectRef!]!, selectedRoles: [ObjectRef!]!, userId: String!): User!
|
2303
2321
|
}
|
@@ -2820,6 +2838,12 @@ input NewUserByDomainWizardInput {
|
|
2820
2838
|
roles: [NewRole!]!
|
2821
2839
|
}
|
2822
2840
|
|
2841
|
+
input NewUserPreference {
|
2842
|
+
key: String!
|
2843
|
+
preference: Object!
|
2844
|
+
user: ObjectRef!
|
2845
|
+
}
|
2846
|
+
|
2823
2847
|
"""Entity for Notification"""
|
2824
2848
|
type Notification {
|
2825
2849
|
body: String
|
@@ -3569,6 +3593,12 @@ type Query {
|
|
3569
3593
|
"""To fetch roles of current user"""
|
3570
3594
|
myRoles: [Role!]!
|
3571
3595
|
|
3596
|
+
"""To fetch a User's own UserPreference"""
|
3597
|
+
myUserPreference(element: String!, key: String!): UserPreference
|
3598
|
+
|
3599
|
+
"""To fetch multiple UserPreferences"""
|
3600
|
+
myUserPreferences(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): UserPreferenceList!
|
3601
|
+
|
3572
3602
|
"""To fetch a Notification"""
|
3573
3603
|
notification(id: String!): Notification
|
3574
3604
|
|
@@ -3615,6 +3645,9 @@ type Query {
|
|
3615
3645
|
"""To fetch multiple PlayGroups"""
|
3616
3646
|
playGroups(filters: [Filter!], inherited: InheritedValueType, pagination: Pagination, sortings: [Sorting!]): PlayGroupList!
|
3617
3647
|
|
3648
|
+
"""To fetch a UserPreference"""
|
3649
|
+
preference(id: String!): UserPreference
|
3650
|
+
|
3618
3651
|
"""To fetch a PrinterDevice"""
|
3619
3652
|
printerDevice(id: String!): PrinterDevice!
|
3620
3653
|
|
@@ -4092,6 +4125,33 @@ input UserPatch {
|
|
4092
4125
|
userType: String
|
4093
4126
|
}
|
4094
4127
|
|
4128
|
+
"""Entity for UserPreference"""
|
4129
|
+
type UserPreference {
|
4130
|
+
createdAt: DateTimeISO
|
4131
|
+
creator: User
|
4132
|
+
deletedAt: DateTimeISO
|
4133
|
+
domain: Domain
|
4134
|
+
id: ID!
|
4135
|
+
key: String
|
4136
|
+
preference: Object
|
4137
|
+
updatedAt: DateTimeISO
|
4138
|
+
updater: User
|
4139
|
+
user: User!
|
4140
|
+
}
|
4141
|
+
|
4142
|
+
type UserPreferenceList {
|
4143
|
+
items: [UserPreference!]!
|
4144
|
+
total: Int!
|
4145
|
+
}
|
4146
|
+
|
4147
|
+
input UserPreferencePatch {
|
4148
|
+
cuFlag: String
|
4149
|
+
id: ID
|
4150
|
+
key: String!
|
4151
|
+
preference: Object!
|
4152
|
+
user: ObjectRef!
|
4153
|
+
}
|
4154
|
+
|
4095
4155
|
type UserRole {
|
4096
4156
|
assigned: Boolean
|
4097
4157
|
description: String
|