@things-factory/auth-ui 7.0.0-alpha.9 → 7.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.
- package/client/auth-style-sign.ts +45 -33
- package/client/bootstrap.ts +6 -10
- package/client/components/abstract-auth-page.ts +48 -24
- package/client/components/abstract-password-reset.ts +13 -9
- package/client/components/abstract-sign.ts +105 -0
- package/client/components/change-password.ts +4 -4
- package/client/components/contact-us.ts +20 -26
- package/client/components/create-domain-popup.ts +16 -12
- package/client/components/create-role.ts +14 -16
- package/client/components/create-user.ts +15 -14
- package/client/components/credential-manager.ts +64 -0
- package/client/components/delete-user-popup.ts +4 -3
- package/client/components/domain-switch.ts +18 -15
- package/client/components/invite-customer.ts +6 -10
- package/client/components/invite-user.ts +5 -8
- package/client/components/my-login-history.ts +2 -2
- package/client/components/ownership-transfer-popup.ts +7 -7
- package/client/components/partner-info-card.ts +6 -6
- package/client/components/partner-role-editor.ts +15 -23
- package/client/components/profile-component.ts +71 -15
- package/client/components/role-edit-form.ts +3 -3
- package/client/components/role-privilege-editor.ts +19 -29
- package/client/components/role-selector.ts +7 -7
- package/client/components/user-role-editor.ts +43 -50
- package/client/entries/auth/activate.ts +20 -21
- package/client/entries/auth/checkin.ts +29 -31
- package/client/entries/auth/forgot-password.ts +15 -9
- package/client/entries/auth/result.ts +21 -18
- package/client/entries/auth/signin.ts +4 -0
- package/client/entries/auth/signup.ts +31 -14
- package/client/entries/oauth2/oauth2-decision-error-page.ts +2 -2
- package/client/entries/oauth2/oauth2-decision-page.ts +56 -55
- package/client/entries/public/home.ts +52 -28
- package/client/index.ts +93 -66
- package/client/pages/app-binding/app-binding.ts +48 -30
- package/client/pages/app-binding/app-bindings.ts +26 -7
- package/client/pages/appliance/appliance.ts +85 -26
- package/client/pages/appliance/home.ts +28 -6
- package/client/pages/appliance/register.ts +7 -7
- package/client/pages/application/application.ts +108 -76
- package/client/pages/application/applications.ts +29 -15
- package/client/pages/application/register.ts +8 -8
- package/client/pages/attribute/attribute-set-item-list.ts +13 -19
- package/client/pages/attribute/attribute-set-management.ts +14 -20
- package/client/pages/auth-provider/auth-provider-management.ts +10 -16
- package/client/pages/domain/domain-management.ts +4 -9
- package/client/pages/partner/partner-management.ts +2 -2
- package/client/pages/profile.ts +1 -1
- package/client/pages/role/role-management.ts +14 -12
- package/client/pages/user/user-management.ts +7 -5
- package/client/themes/auth-theme.css +7 -10
- package/dist-client/auth-style-sign.js +45 -33
- package/dist-client/auth-style-sign.js.map +1 -1
- package/dist-client/bootstrap.d.ts +1 -1
- package/dist-client/bootstrap.js +5 -5
- package/dist-client/bootstrap.js.map +1 -1
- package/dist-client/components/abstract-auth-page.d.ts +5 -4
- package/dist-client/components/abstract-auth-page.js +46 -24
- package/dist-client/components/abstract-auth-page.js.map +1 -1
- package/dist-client/components/abstract-password-reset.d.ts +3 -2
- package/dist-client/components/abstract-password-reset.js +12 -9
- package/dist-client/components/abstract-password-reset.js.map +1 -1
- package/dist-client/components/abstract-sign.d.ts +3 -0
- package/dist-client/components/abstract-sign.js +86 -0
- package/dist-client/components/abstract-sign.js.map +1 -1
- package/dist-client/components/change-password.js +4 -4
- package/dist-client/components/change-password.js.map +1 -1
- package/dist-client/components/contact-us.d.ts +4 -4
- package/dist-client/components/contact-us.js +19 -26
- package/dist-client/components/contact-us.js.map +1 -1
- package/dist-client/components/create-domain-popup.d.ts +1 -1
- package/dist-client/components/create-domain-popup.js +16 -12
- package/dist-client/components/create-domain-popup.js.map +1 -1
- package/dist-client/components/create-role.d.ts +1 -1
- package/dist-client/components/create-role.js +14 -16
- package/dist-client/components/create-role.js.map +1 -1
- package/dist-client/components/create-user.d.ts +2 -1
- package/dist-client/components/create-user.js +14 -14
- package/dist-client/components/create-user.js.map +1 -1
- package/dist-client/components/credential-manager.d.ts +11 -0
- package/dist-client/components/credential-manager.js +64 -0
- package/dist-client/components/credential-manager.js.map +1 -0
- package/dist-client/components/delete-user-popup.js +4 -3
- package/dist-client/components/delete-user-popup.js.map +1 -1
- package/dist-client/components/domain-switch.d.ts +2 -0
- package/dist-client/components/domain-switch.js +20 -15
- package/dist-client/components/domain-switch.js.map +1 -1
- package/dist-client/components/invite-customer.d.ts +1 -1
- package/dist-client/components/invite-customer.js +6 -9
- package/dist-client/components/invite-customer.js.map +1 -1
- package/dist-client/components/invite-user.js +5 -8
- package/dist-client/components/invite-user.js.map +1 -1
- package/dist-client/components/my-login-history.js +2 -2
- package/dist-client/components/my-login-history.js.map +1 -1
- package/dist-client/components/ownership-transfer-popup.d.ts +1 -1
- package/dist-client/components/ownership-transfer-popup.js +7 -7
- package/dist-client/components/ownership-transfer-popup.js.map +1 -1
- package/dist-client/components/partner-info-card.js +6 -6
- package/dist-client/components/partner-info-card.js.map +1 -1
- package/dist-client/components/partner-role-editor.d.ts +2 -2
- package/dist-client/components/partner-role-editor.js +15 -23
- package/dist-client/components/partner-role-editor.js.map +1 -1
- package/dist-client/components/profile-component.d.ts +7 -0
- package/dist-client/components/profile-component.js +70 -15
- package/dist-client/components/profile-component.js.map +1 -1
- package/dist-client/components/role-edit-form.js +3 -3
- package/dist-client/components/role-edit-form.js.map +1 -1
- package/dist-client/components/role-privilege-editor.js +19 -29
- package/dist-client/components/role-privilege-editor.js.map +1 -1
- package/dist-client/components/role-selector.js +7 -7
- package/dist-client/components/role-selector.js.map +1 -1
- package/dist-client/components/user-role-editor.d.ts +2 -0
- package/dist-client/components/user-role-editor.js +42 -49
- package/dist-client/components/user-role-editor.js.map +1 -1
- package/dist-client/entries/auth/activate.d.ts +5 -4
- package/dist-client/entries/auth/activate.js +19 -21
- package/dist-client/entries/auth/activate.js.map +1 -1
- package/dist-client/entries/auth/checkin.d.ts +5 -5
- package/dist-client/entries/auth/checkin.js +27 -28
- package/dist-client/entries/auth/checkin.js.map +1 -1
- package/dist-client/entries/auth/forgot-password.d.ts +2 -1
- package/dist-client/entries/auth/forgot-password.js +15 -9
- package/dist-client/entries/auth/forgot-password.js.map +1 -1
- package/dist-client/entries/auth/reset-password.js.map +1 -1
- package/dist-client/entries/auth/result.d.ts +5 -5
- package/dist-client/entries/auth/result.js +20 -18
- package/dist-client/entries/auth/result.js.map +1 -1
- package/dist-client/entries/auth/signin.d.ts +1 -0
- package/dist-client/entries/auth/signin.js +3 -0
- package/dist-client/entries/auth/signin.js.map +1 -1
- package/dist-client/entries/auth/signup.js +31 -14
- package/dist-client/entries/auth/signup.js.map +1 -1
- package/dist-client/entries/auth/unlock-user.js.map +1 -1
- package/dist-client/entries/oauth2/oauth2-decision-error-page.d.ts +1 -1
- package/dist-client/entries/oauth2/oauth2-decision-error-page.js +2 -2
- package/dist-client/entries/oauth2/oauth2-decision-error-page.js.map +1 -1
- package/dist-client/entries/oauth2/oauth2-decision-page.d.ts +1 -1
- package/dist-client/entries/oauth2/oauth2-decision-page.js +55 -54
- package/dist-client/entries/oauth2/oauth2-decision-page.js.map +1 -1
- package/dist-client/entries/public/home.d.ts +6 -5
- package/dist-client/entries/public/home.js +52 -28
- package/dist-client/entries/public/home.js.map +1 -1
- package/dist-client/index.d.ts +11 -2
- package/dist-client/index.js +74 -66
- package/dist-client/index.js.map +1 -1
- package/dist-client/pages/app-binding/app-binding.d.ts +1 -1
- package/dist-client/pages/app-binding/app-binding.js +47 -30
- package/dist-client/pages/app-binding/app-binding.js.map +1 -1
- package/dist-client/pages/app-binding/app-bindings.d.ts +2 -1
- package/dist-client/pages/app-binding/app-bindings.js +25 -7
- package/dist-client/pages/app-binding/app-bindings.js.map +1 -1
- package/dist-client/pages/appliance/appliance.d.ts +1 -1
- package/dist-client/pages/appliance/appliance.js +84 -26
- package/dist-client/pages/appliance/appliance.js.map +1 -1
- package/dist-client/pages/appliance/home.d.ts +2 -1
- package/dist-client/pages/appliance/home.js +27 -6
- package/dist-client/pages/appliance/home.js.map +1 -1
- package/dist-client/pages/appliance/register.js +7 -7
- package/dist-client/pages/appliance/register.js.map +1 -1
- package/dist-client/pages/application/application.d.ts +1 -1
- package/dist-client/pages/application/application.js +107 -76
- package/dist-client/pages/application/application.js.map +1 -1
- package/dist-client/pages/application/applications.d.ts +2 -1
- package/dist-client/pages/application/applications.js +28 -15
- package/dist-client/pages/application/applications.js.map +1 -1
- package/dist-client/pages/application/register.js +8 -8
- package/dist-client/pages/application/register.js.map +1 -1
- package/dist-client/pages/attribute/attribute-set-item-list.d.ts +1 -1
- package/dist-client/pages/attribute/attribute-set-item-list.js +11 -18
- package/dist-client/pages/attribute/attribute-set-item-list.js.map +1 -1
- package/dist-client/pages/attribute/attribute-set-management.d.ts +11 -2
- package/dist-client/pages/attribute/attribute-set-management.js +7 -11
- package/dist-client/pages/attribute/attribute-set-management.js.map +1 -1
- package/dist-client/pages/auth-provider/auth-provider-management.d.ts +11 -2
- package/dist-client/pages/auth-provider/auth-provider-management.js +8 -11
- package/dist-client/pages/auth-provider/auth-provider-management.js.map +1 -1
- package/dist-client/pages/domain/domain-management.d.ts +1 -0
- package/dist-client/pages/domain/domain-management.js +3 -7
- package/dist-client/pages/domain/domain-management.js.map +1 -1
- package/dist-client/pages/partner/partner-management.js +2 -2
- package/dist-client/pages/partner/partner-management.js.map +1 -1
- package/dist-client/pages/profile.js +1 -1
- package/dist-client/pages/profile.js.map +1 -1
- package/dist-client/pages/role/role-management.js +13 -10
- package/dist-client/pages/role/role-management.js.map +1 -1
- package/dist-client/pages/user/user-management.d.ts +1 -0
- package/dist-client/pages/user/user-management.js +6 -5
- package/dist-client/pages/user/user-management.js.map +1 -1
- package/dist-client/route.js.map +1 -1
- package/dist-client/themes/auth-theme.css +7 -10
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-client/utils/password-rule.js.map +1 -1
- package/dist-server/index.d.ts +0 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -18
- package/translations/en.json +2 -0
- package/translations/ja.json +2 -0
- package/translations/ko.json +2 -1
- package/translations/ms.json +2 -0
- package/translations/zh.json +2 -0
- package/views/auth-page.html +5 -3
- package/views/oauth2-page.html +3 -2
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import '@material/web/button/elevated-button.js'
|
|
2
|
+
import '@material/web/button/outlined-button.js'
|
|
3
|
+
|
|
1
4
|
import gql from 'graphql-tag'
|
|
2
5
|
import { css, html } from 'lit'
|
|
3
6
|
import { customElement, property } from 'lit/decorators.js'
|
|
@@ -11,15 +14,20 @@ class Applications extends connect(store)(PageView) {
|
|
|
11
14
|
static styles = [
|
|
12
15
|
css`
|
|
13
16
|
:host {
|
|
14
|
-
background-color: var(--
|
|
15
|
-
padding: var(--
|
|
17
|
+
background-color: var(--md-sys-color-background);
|
|
18
|
+
padding: var(--spacing-large);
|
|
16
19
|
|
|
17
20
|
overflow: auto;
|
|
18
21
|
}
|
|
19
22
|
|
|
20
|
-
|
|
23
|
+
md-elevated-button {
|
|
24
|
+
text-transform: capitalize;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
md-outlined-button {
|
|
21
28
|
float: right;
|
|
22
|
-
margin-top: var(--
|
|
29
|
+
margin-top: var(--spacing-medium);
|
|
30
|
+
text-transform: capitalize;
|
|
23
31
|
}
|
|
24
32
|
|
|
25
33
|
h2 {
|
|
@@ -27,25 +35,31 @@ class Applications extends connect(store)(PageView) {
|
|
|
27
35
|
font: var(--title-font);
|
|
28
36
|
color: var(--title-text-color);
|
|
29
37
|
}
|
|
38
|
+
|
|
30
39
|
[page-description] {
|
|
31
40
|
margin: var(--page-description-margin);
|
|
32
41
|
font: var(--page-description-font);
|
|
33
42
|
color: var(--page-description-color);
|
|
34
43
|
}
|
|
44
|
+
|
|
35
45
|
table {
|
|
36
|
-
margin: var(--
|
|
46
|
+
margin: var(--spacing-large) 0;
|
|
37
47
|
width: 100%;
|
|
38
48
|
border-collapse: collapse;
|
|
39
49
|
}
|
|
50
|
+
|
|
40
51
|
tr {
|
|
41
52
|
background-color: var(--tr-background-color);
|
|
42
53
|
}
|
|
54
|
+
|
|
43
55
|
tr:nth-child(odd) {
|
|
44
56
|
background-color: var(--tr-background-odd-color);
|
|
45
57
|
}
|
|
58
|
+
|
|
46
59
|
tr:hover {
|
|
47
60
|
background-color: var(--tr-background-hover-color);
|
|
48
61
|
}
|
|
62
|
+
|
|
49
63
|
th {
|
|
50
64
|
border-top: var(--th-border-top);
|
|
51
65
|
border-bottom: var(--td-border-bottom);
|
|
@@ -56,19 +70,21 @@ class Applications extends connect(store)(PageView) {
|
|
|
56
70
|
text-transform: var(--th-text-transform);
|
|
57
71
|
text-align: left;
|
|
58
72
|
}
|
|
73
|
+
|
|
59
74
|
td {
|
|
60
75
|
padding: var(--td-padding);
|
|
61
76
|
border-bottom: var(--td-border-bottom);
|
|
62
77
|
font: var(--td-font);
|
|
63
78
|
color: var(--td-color);
|
|
64
79
|
}
|
|
80
|
+
|
|
65
81
|
td a {
|
|
66
82
|
font: var(--td-font);
|
|
67
83
|
text-decoration: none;
|
|
68
|
-
color: var(--
|
|
84
|
+
color: var(--md-sys-color-on-surface);
|
|
69
85
|
}
|
|
86
|
+
|
|
70
87
|
td a strong {
|
|
71
|
-
color: var(--secondary-text-color);
|
|
72
88
|
font: bold 16px var(--theme-font);
|
|
73
89
|
|
|
74
90
|
display: block;
|
|
@@ -78,6 +94,7 @@ class Applications extends connect(store)(PageView) {
|
|
|
78
94
|
.text-align-center {
|
|
79
95
|
text-align: center;
|
|
80
96
|
}
|
|
97
|
+
|
|
81
98
|
.text-align-right {
|
|
82
99
|
text-align: right;
|
|
83
100
|
}
|
|
@@ -102,14 +119,12 @@ class Applications extends connect(store)(PageView) {
|
|
|
102
119
|
<p page-description>
|
|
103
120
|
What type of app are you building?<br />Choose the app type that best suits the audience you’re building for.
|
|
104
121
|
</p>
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
></mwc-button>
|
|
122
|
+
|
|
123
|
+
<md-elevated-button @click=${e => navigate('application-register')}
|
|
124
|
+
>register new application</md-elevated-button
|
|
125
|
+
>
|
|
110
126
|
</div>
|
|
111
127
|
|
|
112
|
-
<!-- <div> -->
|
|
113
128
|
<table>
|
|
114
129
|
<tr>
|
|
115
130
|
<th>app name</th>
|
|
@@ -134,8 +149,7 @@ class Applications extends connect(store)(PageView) {
|
|
|
134
149
|
)}
|
|
135
150
|
</table>
|
|
136
151
|
|
|
137
|
-
<
|
|
138
|
-
<!-- </div> -->
|
|
152
|
+
<md-outlined-button @click=${e => navigate('app-bindings')}>bound applications ..</md-outlined-button>
|
|
139
153
|
`
|
|
140
154
|
}
|
|
141
155
|
|
|
@@ -11,8 +11,8 @@ class ApplicationRegister extends connect(store)(PageView) {
|
|
|
11
11
|
static styles = [
|
|
12
12
|
css`
|
|
13
13
|
:host {
|
|
14
|
-
background-color: var(--
|
|
15
|
-
padding: var(--
|
|
14
|
+
background-color: var(--md-sys-color-background);
|
|
15
|
+
padding: var(--spacing-large);
|
|
16
16
|
|
|
17
17
|
position: relative;
|
|
18
18
|
|
|
@@ -42,15 +42,15 @@ class ApplicationRegister extends connect(store)(PageView) {
|
|
|
42
42
|
|
|
43
43
|
img[pagedeco] {
|
|
44
44
|
width: 150px;
|
|
45
|
-
margin: 0 var(--
|
|
45
|
+
margin: 0 var(--spacing-large);
|
|
46
46
|
float: left;
|
|
47
47
|
position: relative;
|
|
48
48
|
top: -20px;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
[form-container] {
|
|
52
|
-
background-color: var(--
|
|
53
|
-
padding: var(--
|
|
52
|
+
background-color: var(--md-sys-color-surface);
|
|
53
|
+
padding: var(--spacing-large);
|
|
54
54
|
border-radius: var(--border-radius);
|
|
55
55
|
box-shadow: var(--box-shadow);
|
|
56
56
|
max-width: var(--input-container-max-width);
|
|
@@ -60,11 +60,11 @@ class ApplicationRegister extends connect(store)(PageView) {
|
|
|
60
60
|
}
|
|
61
61
|
label {
|
|
62
62
|
font: var(--label-font);
|
|
63
|
-
color: var(--label-color);
|
|
63
|
+
color: var(--label-color, var(--md-sys-color-on-surface));
|
|
64
64
|
text-transform: var(--label-text-transform);
|
|
65
65
|
}
|
|
66
66
|
input {
|
|
67
|
-
border: var(--border-
|
|
67
|
+
border: var(--border-dim-color);
|
|
68
68
|
border-radius: var(--border-radius);
|
|
69
69
|
margin: var(--input-margin);
|
|
70
70
|
padding: var(--input-padding);
|
|
@@ -165,7 +165,7 @@ class ApplicationRegister extends connect(store)(PageView) {
|
|
|
165
165
|
<input id="email" type="text" name="email" />
|
|
166
166
|
</div>
|
|
167
167
|
|
|
168
|
-
<
|
|
168
|
+
<md-elevated-button grid-span @click=${this.createApplication.bind(this)}>register</md-elevated-button>
|
|
169
169
|
</div>
|
|
170
170
|
</form>
|
|
171
171
|
</div>
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import '@material/web/icon/icon.js'
|
|
2
|
+
|
|
1
3
|
import gql from 'graphql-tag'
|
|
2
4
|
|
|
3
5
|
import { css, html, LitElement } from 'lit'
|
|
@@ -6,7 +8,8 @@ import { customElement, property, query, state } from 'lit/decorators.js'
|
|
|
6
8
|
import { client } from '@operato/graphql'
|
|
7
9
|
import { i18next, localize } from '@operato/i18n'
|
|
8
10
|
import { isMobileDevice } from '@operato/utils'
|
|
9
|
-
import {
|
|
11
|
+
import { DataGrist, FetchOption } from '@operato/data-grist'
|
|
12
|
+
import { ButtonContainerStyles } from '@operato/styles'
|
|
10
13
|
|
|
11
14
|
@customElement('attribute-set-item-list')
|
|
12
15
|
class AttributeSetItemList extends localize(i18next)(LitElement) {
|
|
@@ -15,30 +18,18 @@ class AttributeSetItemList extends localize(i18next)(LitElement) {
|
|
|
15
18
|
@state() gristConfig: any
|
|
16
19
|
|
|
17
20
|
static styles = [
|
|
21
|
+
ButtonContainerStyles,
|
|
18
22
|
css`
|
|
19
23
|
:host {
|
|
20
24
|
display: flex;
|
|
21
25
|
flex-direction: column;
|
|
22
26
|
|
|
23
|
-
background-color:
|
|
27
|
+
background-color: var(--md-sys-color-surface);
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
ox-grist {
|
|
27
31
|
flex: 1;
|
|
28
32
|
}
|
|
29
|
-
|
|
30
|
-
.button-container {
|
|
31
|
-
display: flex;
|
|
32
|
-
margin-left: auto;
|
|
33
|
-
padding: var(--padding-default);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
[danger] {
|
|
37
|
-
--mdc-theme-primary: var(--mdc-danger-button-primary-color);
|
|
38
|
-
}
|
|
39
|
-
mwc-button {
|
|
40
|
-
margin-left: var(--margin-default);
|
|
41
|
-
}
|
|
42
33
|
`
|
|
43
34
|
]
|
|
44
35
|
|
|
@@ -51,11 +42,14 @@ class AttributeSetItemList extends localize(i18next)(LitElement) {
|
|
|
51
42
|
.config=${this.gristConfig}
|
|
52
43
|
.fetchHandler=${this.fetchHandler.bind(this)}
|
|
53
44
|
></ox-grist>
|
|
45
|
+
|
|
54
46
|
<div class="button-container">
|
|
55
|
-
<
|
|
56
|
-
>${i18next.t('button.delete')}
|
|
57
|
-
>
|
|
58
|
-
<
|
|
47
|
+
<button danger @click=${this.deleteAttributeSetItems.bind(this)}>
|
|
48
|
+
<md-icon>delete_forever</md-icon>${i18next.t('button.delete')}
|
|
49
|
+
</button>
|
|
50
|
+
<button @click=${this.updateAttributeSetItems.bind(this)}>
|
|
51
|
+
<md-icon>save</md-icon>${i18next.t('button.save')}
|
|
52
|
+
</button>
|
|
59
53
|
</div>
|
|
60
54
|
`
|
|
61
55
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import '@material/web/icon/icon.js'
|
|
2
|
+
|
|
1
3
|
import '@operato/data-grist'
|
|
2
4
|
import '@operato/context/ox-context-page-toolbar.js'
|
|
3
5
|
import './attribute-set-item-list.js'
|
|
@@ -67,7 +69,10 @@ export class AttributeSetManagementPage extends connect(store)(localize(i18next)
|
|
|
67
69
|
{
|
|
68
70
|
title: i18next.t('button.delete'),
|
|
69
71
|
action: this.deleteAttributeSet.bind(this),
|
|
70
|
-
icon: 'delete'
|
|
72
|
+
icon: 'delete',
|
|
73
|
+
emphasis: {
|
|
74
|
+
danger: true
|
|
75
|
+
}
|
|
71
76
|
}
|
|
72
77
|
],
|
|
73
78
|
toolbar: false
|
|
@@ -78,17 +83,9 @@ export class AttributeSetManagementPage extends connect(store)(localize(i18next)
|
|
|
78
83
|
const mode = this.mode || (isMobileDevice() ? 'CARD' : 'GRID')
|
|
79
84
|
|
|
80
85
|
return html`
|
|
81
|
-
<ox-grist
|
|
82
|
-
.mode=${mode}
|
|
83
|
-
.config=${this.gristConfig}
|
|
84
|
-
.fetchHandler=${this.fetchHandler.bind(this)}
|
|
85
|
-
?url-params-sensitive=${this.active}
|
|
86
|
-
>
|
|
86
|
+
<ox-grist .mode=${mode} .config=${this.gristConfig} .fetchHandler=${this.fetchHandler.bind(this)} ?url-params-sensitive=${this.active}>
|
|
87
87
|
<div slot="headroom" class="header">
|
|
88
|
-
<div class="title">
|
|
89
|
-
<mwc-icon>summarize</mwc-icon>
|
|
90
|
-
${i18next.t('title.attributes')}
|
|
91
|
-
</div>
|
|
88
|
+
<div class="title">${i18next.t('title.attributes')}</div>
|
|
92
89
|
|
|
93
90
|
<ox-context-page-toolbar class="actions" .context=${this.context}> </ox-context-page-toolbar>
|
|
94
91
|
</div>
|
|
@@ -112,15 +109,12 @@ export class AttributeSetManagementPage extends connect(store)(localize(i18next)
|
|
|
112
109
|
handlers: {
|
|
113
110
|
click: (columns, data, column, record, rowIndex) => {
|
|
114
111
|
if (!record.id) return
|
|
115
|
-
const popup = openPopup(
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
title: i18next.t('title.attribute-item list')
|
|
122
|
-
}
|
|
123
|
-
)
|
|
112
|
+
const popup = openPopup(html` <attribute-set-item-list .attribute=${record}></attribute-set-item-list> `, {
|
|
113
|
+
backdrop: true,
|
|
114
|
+
help: 'attribute/ui/attribute-set-item-list',
|
|
115
|
+
size: 'large',
|
|
116
|
+
title: i18next.t('title.attribute-item list')
|
|
117
|
+
})
|
|
124
118
|
popup.onclosed = () => {
|
|
125
119
|
this.grist.fetch()
|
|
126
120
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import '@material/web/icon/icon.js'
|
|
2
|
+
|
|
1
3
|
import '@operato/data-grist'
|
|
2
4
|
import '@operato/context/ox-context-page-toolbar.js'
|
|
3
5
|
|
|
@@ -68,7 +70,10 @@ export class AuthProviderManagementPage extends connect(store)(localize(i18next)
|
|
|
68
70
|
{
|
|
69
71
|
title: i18next.t('button.delete'),
|
|
70
72
|
action: this.deleteAuthProvider.bind(this),
|
|
71
|
-
icon: 'delete'
|
|
73
|
+
icon: 'delete',
|
|
74
|
+
emphasis: {
|
|
75
|
+
danger: true
|
|
76
|
+
}
|
|
72
77
|
}
|
|
73
78
|
],
|
|
74
79
|
toolbar: false
|
|
@@ -79,17 +84,9 @@ export class AuthProviderManagementPage extends connect(store)(localize(i18next)
|
|
|
79
84
|
const mode = this.mode || (isMobileDevice() ? 'CARD' : 'GRID')
|
|
80
85
|
|
|
81
86
|
return html`
|
|
82
|
-
<ox-grist
|
|
83
|
-
.mode=${mode}
|
|
84
|
-
.config=${this.gristConfig}
|
|
85
|
-
.fetchHandler=${this.fetchHandler.bind(this)}
|
|
86
|
-
?url-params-sensitive=${this.active}
|
|
87
|
-
>
|
|
87
|
+
<ox-grist .mode=${mode} .config=${this.gristConfig} .fetchHandler=${this.fetchHandler.bind(this)} ?url-params-sensitive=${this.active}>
|
|
88
88
|
<div slot="headroom" class="header">
|
|
89
|
-
<div class="title">
|
|
90
|
-
<mwc-icon>summarize</mwc-icon>
|
|
91
|
-
${i18next.t('title.auth-provider')}
|
|
92
|
-
</div>
|
|
89
|
+
<div class="title">${i18next.t('title.auth-provider')}</div>
|
|
93
90
|
|
|
94
91
|
<ox-filters-form autofocus without-search class="filters"></ox-filters-form>
|
|
95
92
|
|
|
@@ -184,11 +181,7 @@ export class AuthProviderManagementPage extends connect(store)(localize(i18next)
|
|
|
184
181
|
record: {
|
|
185
182
|
editable: true,
|
|
186
183
|
options: async (value, column, record, row, field) => {
|
|
187
|
-
const {
|
|
188
|
-
description,
|
|
189
|
-
help,
|
|
190
|
-
parameterSpec: spec
|
|
191
|
-
} = record.type ? this.authProviderTypes[record.type] : ({} as any)
|
|
184
|
+
const { description, help, parameterSpec: spec } = record.type ? this.authProviderTypes[record.type] : ({} as any)
|
|
192
185
|
const context = this.grist
|
|
193
186
|
|
|
194
187
|
return { description, help, spec, context }
|
|
@@ -236,6 +229,7 @@ export class AuthProviderManagementPage extends connect(store)(localize(i18next)
|
|
|
236
229
|
name
|
|
237
230
|
placeholder
|
|
238
231
|
property
|
|
232
|
+
styles
|
|
239
233
|
}
|
|
240
234
|
}
|
|
241
235
|
total
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import '@material/web/icon/icon.js'
|
|
2
|
+
|
|
1
3
|
import '@operato/data-grist/ox-grist.js'
|
|
2
4
|
import '@operato/data-grist/ox-filters-form.js'
|
|
3
5
|
import '@operato/context/ox-context-page-toolbar.js'
|
|
@@ -7,7 +9,7 @@ import '../../components/create-domain-popup'
|
|
|
7
9
|
import gql from 'graphql-tag'
|
|
8
10
|
import { css, html } from 'lit'
|
|
9
11
|
import { customElement, property, query } from 'lit/decorators.js'
|
|
10
|
-
import moment from 'moment-timezone'
|
|
12
|
+
import moment from '@operato/moment-timezone-es'
|
|
11
13
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
12
14
|
|
|
13
15
|
import { DataGrist } from '@operato/data-grist/ox-grist.js'
|
|
@@ -81,10 +83,7 @@ export class DomainManagement extends connect(store)(localize(i18next)(PageView)
|
|
|
81
83
|
return html`
|
|
82
84
|
<ox-grist .mode=${this.mode} .config=${this.config} .fetchHandler=${this.fetchHandler.bind(this)}>
|
|
83
85
|
<div slot="headroom" class="header">
|
|
84
|
-
<div class="title">
|
|
85
|
-
<mwc-icon>summarize</mwc-icon>
|
|
86
|
-
${i18next.t('text.domain management')}
|
|
87
|
-
</div>
|
|
86
|
+
<div class="title">${i18next.t('text.domain management')}</div>
|
|
88
87
|
|
|
89
88
|
<ox-context-page-toolbar class="actions" .context=${this.context}></ox-context-page-toolbar>
|
|
90
89
|
</div>
|
|
@@ -256,10 +255,6 @@ export class DomainManagement extends connect(store)(localize(i18next)(PageView)
|
|
|
256
255
|
}
|
|
257
256
|
]
|
|
258
257
|
}
|
|
259
|
-
|
|
260
|
-
await this.updateComplete
|
|
261
|
-
|
|
262
|
-
this.grist.fetch()
|
|
263
258
|
}
|
|
264
259
|
|
|
265
260
|
async pageUpdated(changes, lifecycle) {
|
|
@@ -19,8 +19,8 @@ class PartnerManagement extends connect(store)(PageView) {
|
|
|
19
19
|
:host {
|
|
20
20
|
display: flex;
|
|
21
21
|
flex-direction: column;
|
|
22
|
-
background-color: var(--
|
|
23
|
-
padding: var(--
|
|
22
|
+
background-color: var(--md-sys-color-background);
|
|
23
|
+
padding: var(--spacing-large);
|
|
24
24
|
|
|
25
25
|
overflow: auto;
|
|
26
26
|
}
|
package/client/pages/profile.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
|
10
10
|
|
|
11
11
|
import { client, gqlContext } from '@operato/graphql'
|
|
12
12
|
import { i18next } from '@operato/i18n'
|
|
13
|
-
import { PageView, store } from '@operato/shell'
|
|
13
|
+
import { InheritedValueType, PageView, store } from '@operato/shell'
|
|
14
14
|
|
|
15
15
|
@customElement('role-management')
|
|
16
16
|
class RoleManagement extends connect(store)(PageView) {
|
|
@@ -19,8 +19,8 @@ class RoleManagement extends connect(store)(PageView) {
|
|
|
19
19
|
:host {
|
|
20
20
|
display: flex;
|
|
21
21
|
flex-direction: column;
|
|
22
|
-
background-color: var(--
|
|
23
|
-
padding: var(--
|
|
22
|
+
background-color: var(--md-sys-color-background);
|
|
23
|
+
padding: var(--spacing-large);
|
|
24
24
|
overflow: auto;
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -37,11 +37,11 @@ class RoleManagement extends connect(store)(PageView) {
|
|
|
37
37
|
#roles-privileges {
|
|
38
38
|
flex: 1;
|
|
39
39
|
display: flex;
|
|
40
|
-
margin-top: var(--
|
|
40
|
+
margin-top: var(--spacing-medium);
|
|
41
41
|
max-width: var(--content-container-max-width);
|
|
42
42
|
flex-direction: row;
|
|
43
43
|
overflow: auto;
|
|
44
|
-
border-top: var(--border-
|
|
44
|
+
border-top: var(--border-dim-color);
|
|
45
45
|
}
|
|
46
46
|
`
|
|
47
47
|
]
|
|
@@ -74,10 +74,9 @@ class RoleManagement extends connect(store)(PageView) {
|
|
|
74
74
|
<div id="roles-privileges">
|
|
75
75
|
<quick-find-list
|
|
76
76
|
.data="${data}"
|
|
77
|
-
.openHeaderRenderer=${role =>
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
`}
|
|
77
|
+
.openHeaderRenderer=${role => html`
|
|
78
|
+
<role-edit-form .role="${role}" @roleChanged="${e => (this.updateRoleObj = e.detail)}"></role-edit-form>
|
|
79
|
+
`}
|
|
81
80
|
.contentRenderer="${(role, _currentTabKey) => html`
|
|
82
81
|
<role-privilege-editor
|
|
83
82
|
.updateRoleObj=${this.updateRoleObj || {}}
|
|
@@ -106,8 +105,8 @@ class RoleManagement extends connect(store)(PageView) {
|
|
|
106
105
|
async fetchRoles() {
|
|
107
106
|
const response = await client.query({
|
|
108
107
|
query: gql`
|
|
109
|
-
query roles($sortings: [Sorting!]) {
|
|
110
|
-
roles(sortings: $sortings) {
|
|
108
|
+
query roles($sortings: [Sorting!], $inherited: InheritedValueType) {
|
|
109
|
+
roles(sortings: $sortings, inherited: $inherited) {
|
|
111
110
|
items {
|
|
112
111
|
id
|
|
113
112
|
name
|
|
@@ -121,7 +120,10 @@ class RoleManagement extends connect(store)(PageView) {
|
|
|
121
120
|
}
|
|
122
121
|
}
|
|
123
122
|
`,
|
|
124
|
-
variables: {
|
|
123
|
+
variables: {
|
|
124
|
+
sortings: [{ name: 'name' }],
|
|
125
|
+
inherited: InheritedValueType.Only
|
|
126
|
+
},
|
|
125
127
|
context: gqlContext()
|
|
126
128
|
})
|
|
127
129
|
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import '@material/web/icon/icon.js'
|
|
2
|
+
|
|
1
3
|
import '@things-factory/component-ui'
|
|
2
4
|
import '../../components/invite-user'
|
|
3
5
|
import '../../components/ownership-transfer-popup'
|
|
@@ -20,14 +22,14 @@ class UserManagement extends PageView {
|
|
|
20
22
|
:host {
|
|
21
23
|
display: flex;
|
|
22
24
|
flex-direction: column;
|
|
23
|
-
background-color: var(--
|
|
24
|
-
padding: var(--
|
|
25
|
+
background-color: var(--md-sys-color-background);
|
|
26
|
+
padding: var(--spacing-large);
|
|
25
27
|
overflow: auto;
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
@media screen and (max-width: 600px) {
|
|
29
31
|
:host {
|
|
30
|
-
padding: var(--
|
|
32
|
+
padding: var(--spacing-small);
|
|
31
33
|
}
|
|
32
34
|
}
|
|
33
35
|
`
|
|
@@ -99,10 +101,10 @@ class UserManagement extends PageView {
|
|
|
99
101
|
return html`
|
|
100
102
|
${!user.activated
|
|
101
103
|
? html`
|
|
102
|
-
<
|
|
104
|
+
<md-icon>do_disturb</md-icon>
|
|
103
105
|
${user.name}
|
|
104
106
|
`
|
|
105
|
-
: html` ${user.owner ? html` <
|
|
107
|
+
: html` ${user.owner ? html` <md-icon>supervisor_account</md-icon> ` : ''} ${user.name} `}
|
|
106
108
|
`
|
|
107
109
|
}}
|
|
108
110
|
.contentRenderer=${user =>
|
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
body {
|
|
2
2
|
/* login page style*/
|
|
3
|
-
--auth-background: var(--primary-color);
|
|
4
3
|
--auth-brand-name: bold 20px var(--theme-font);
|
|
5
4
|
--auth-brand-name-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
|
|
6
5
|
--auth-brand-welcome-msg: normal 12px var(--theme-font);
|
|
7
6
|
|
|
8
|
-
--auth-title-color: var(--theme-white-color);
|
|
9
7
|
--auth-title-font: bold 32px var(--theme-font);
|
|
10
|
-
--auth-description-color: var(--secondary-text-color);
|
|
11
8
|
--auth-description-font: normal 12px var(--theme-font);
|
|
12
9
|
--auth-description-padding: 5px 5px 15px 5px;
|
|
13
10
|
|
|
14
11
|
--auth-input-font: normal 18px/24px var(--theme-font);
|
|
15
|
-
--auth-input-border: 1px solid
|
|
16
|
-
--auth-input-border-light: 1px solid
|
|
17
|
-
--auth-input-color: var(--
|
|
12
|
+
--auth-input-border: 1px solid rgba(0, 0, 0, 0.4);
|
|
13
|
+
--auth-input-border-light: 1px solid rgba(255, 255, 255, 0.8);
|
|
14
|
+
--auth-input-color: var(--md-sys-color-on-primary);
|
|
18
15
|
|
|
19
|
-
--auth-button-background-color: var(--
|
|
16
|
+
--auth-button-background-color: var(--md-sys-color-surface-variant);
|
|
20
17
|
--auth-button-background-focus-color: var(--status-success-color);
|
|
21
18
|
--auth-button-font: bold 20px var(--theme-font);
|
|
22
19
|
--auth-button-padding: 9px 12px 7px 12px;
|
|
@@ -42,11 +39,11 @@ body {
|
|
|
42
39
|
--auth-special-page-padding: 250px 0 100px 0;
|
|
43
40
|
|
|
44
41
|
/* domain select page style*/
|
|
45
|
-
--checkin-background-color: var(--
|
|
42
|
+
--checkin-background-color: var(--md-sys-color-background);
|
|
46
43
|
--checkin-header-height: 45px;
|
|
47
|
-
--checkin-header-background-color: var(--
|
|
44
|
+
--checkin-header-background-color: var(--md-sys-color-primary);
|
|
48
45
|
--checkin-header-title-font: bold 19px var(--theme-font);
|
|
49
|
-
--checkin-header-title-color: var(--
|
|
46
|
+
--checkin-header-title-color: var(--md-sys-color-on-primary);
|
|
50
47
|
--checkin-wrap-max-width: 500px;
|
|
51
48
|
--checkin-wrap-padding: var(--padding-wide);
|
|
52
49
|
}
|