@things-factory/auth-ui 4.0.30 → 4.0.34
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/components/abstract-auth-page.js +3 -3
- package/client/components/abstract-password-reset.js +2 -3
- package/client/components/domain-switch.js +3 -3
- package/client/components/my-login-history.js +4 -4
- package/client/entries/auth/activate.js +0 -2
- package/client/entries/auth/checkin.js +3 -4
- package/client/entries/auth/result.js +2 -3
- package/client/pages/app-binding/app-binding.js +5 -5
- package/client/pages/appliance/appliance.js +5 -5
- package/client/pages/domain/domain-management.js +7 -7
- package/client/pages/profile.js +6 -4
- package/client/utils/password-rule.js +12 -14
- package/package.json +9 -9
|
@@ -8,12 +8,12 @@ import '@things-factory/layout-ui/client/layouts/snack-bar'
|
|
|
8
8
|
|
|
9
9
|
import { css, html, LitElement } from 'lit'
|
|
10
10
|
|
|
11
|
+
import { ScrollbarStyles } from '@operato/styles'
|
|
12
|
+
import { isSafari } from '@operato/utils'
|
|
11
13
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
12
|
-
import { ScrollbarStyles } from '@things-factory/styles'
|
|
13
14
|
|
|
14
15
|
import { AUTH_STYLE_SIGN } from '../auth-style-sign'
|
|
15
16
|
|
|
16
|
-
const isSafari = !navigator.userAgent.match(/chrome|chromium|crios/i) && navigator.userAgent.match(/safari/i)
|
|
17
17
|
export class AbstractAuthPage extends localize(i18next)(LitElement) {
|
|
18
18
|
static get styles() {
|
|
19
19
|
return [
|
|
@@ -117,7 +117,7 @@ export class AbstractAuthPage extends localize(i18next)(LitElement) {
|
|
|
117
117
|
<mwc-icon-button home icon="home" @click=${e => (window.location.href = '/')}></mwc-icon-button>
|
|
118
118
|
<snack-bar id="snackbar" level="error" .message=${this.message}></snack-bar>
|
|
119
119
|
|
|
120
|
-
${isSafari
|
|
120
|
+
${isSafari()
|
|
121
121
|
? html``
|
|
122
122
|
: html`
|
|
123
123
|
<div class="lottie-container">
|
|
@@ -5,14 +5,13 @@ import '../components/profile-component'
|
|
|
5
5
|
|
|
6
6
|
import { css, html } from 'lit'
|
|
7
7
|
|
|
8
|
+
import { isSafari } from '@operato/utils'
|
|
8
9
|
import { i18next } from '@things-factory/i18n-base'
|
|
9
10
|
|
|
10
11
|
import { AUTH_STYLE_SIGN } from '../auth-style-sign'
|
|
11
12
|
import { generatePasswordPatternHelp, generatePasswordPatternRegExp } from '../utils/password-rule'
|
|
12
13
|
import { AbstractAuthPage } from './abstract-auth-page'
|
|
13
14
|
|
|
14
|
-
const isSafari = !navigator.userAgent.match(/chrome|chromium|crios/i) && navigator.userAgent.match(/safari/i)
|
|
15
|
-
|
|
16
15
|
export class AbstractPasswordReset extends AbstractAuthPage {
|
|
17
16
|
static get styles() {
|
|
18
17
|
return [
|
|
@@ -126,7 +125,7 @@ export class AbstractPasswordReset extends AbstractAuthPage {
|
|
|
126
125
|
</div>
|
|
127
126
|
<snack-bar id="snackbar" level="error" .message=${this.message}></snack-bar>
|
|
128
127
|
|
|
129
|
-
${isSafari
|
|
128
|
+
${isSafari()
|
|
130
129
|
? html``
|
|
131
130
|
: html`
|
|
132
131
|
<div class="lottie-container">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { ScrollbarStyles } from '@things-factory/styles'
|
|
1
|
+
import { css, html, LitElement } from 'lit'
|
|
4
2
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
3
|
+
|
|
4
|
+
import { ScrollbarStyles } from '@operato/styles'
|
|
5
5
|
import { store } from '@things-factory/shell'
|
|
6
6
|
|
|
7
7
|
export class DomainSwitch extends connect(store)(LitElement) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import '@operato/data-grist'
|
|
2
2
|
|
|
3
|
-
import { LitElement, css, html } from 'lit'
|
|
4
|
-
|
|
5
|
-
import { client } from '@things-factory/shell'
|
|
6
3
|
import gql from 'graphql-tag'
|
|
4
|
+
import { css, html, LitElement } from 'lit'
|
|
5
|
+
|
|
6
|
+
import { isMobileDevice } from '@operato/utils'
|
|
7
7
|
import { i18next } from '@things-factory/i18n-base'
|
|
8
|
-
import {
|
|
8
|
+
import { client } from '@things-factory/shell'
|
|
9
9
|
|
|
10
10
|
class MyLoginHistory extends LitElement {
|
|
11
11
|
static get properties() {
|
|
@@ -6,8 +6,6 @@ import { css, html, LitElement } from 'lit'
|
|
|
6
6
|
|
|
7
7
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
8
8
|
|
|
9
|
-
const isSafari = !navigator.userAgent.match(/chrome|chromium|crios/i) && navigator.userAgent.match(/safari/i)
|
|
10
|
-
|
|
11
9
|
export class AuthActivate extends localize(i18next)(LitElement) {
|
|
12
10
|
static get styles() {
|
|
13
11
|
return [
|
|
@@ -4,13 +4,12 @@ import '@operato/lottie-player'
|
|
|
4
4
|
|
|
5
5
|
import { css, html, LitElement } from 'lit'
|
|
6
6
|
|
|
7
|
+
import { ScrollbarStyles } from '@operato/styles'
|
|
8
|
+
import { isSafari } from '@operato/utils'
|
|
7
9
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
8
|
-
import { ScrollbarStyles } from '@things-factory/styles'
|
|
9
10
|
|
|
10
11
|
import { AUTH_STYLE_SIGN } from '../../auth-style-sign'
|
|
11
12
|
|
|
12
|
-
const isSafari = !navigator.userAgent.match(/chrome|chromium|crios/i) && navigator.userAgent.match(/safari/i)
|
|
13
|
-
|
|
14
13
|
export class AuthCheckIn extends localize(i18next)(LitElement) {
|
|
15
14
|
static get properties() {
|
|
16
15
|
return {
|
|
@@ -141,7 +140,7 @@ export class AuthCheckIn extends localize(i18next)(LitElement) {
|
|
|
141
140
|
: ''}
|
|
142
141
|
</div>
|
|
143
142
|
|
|
144
|
-
${isSafari
|
|
143
|
+
${isSafari()
|
|
145
144
|
? html``
|
|
146
145
|
: html`
|
|
147
146
|
<div class="lottie-container">
|
|
@@ -4,10 +4,9 @@ import '@operato/lottie-player'
|
|
|
4
4
|
|
|
5
5
|
import { css, html, LitElement } from 'lit'
|
|
6
6
|
|
|
7
|
+
import { isSafari } from '@operato/utils'
|
|
7
8
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
8
9
|
|
|
9
|
-
const isSafari = !navigator.userAgent.match(/chrome|chromium|crios/i) && navigator.userAgent.match(/safari/i)
|
|
10
|
-
|
|
11
10
|
export class AuthResult extends localize(i18next)(LitElement) {
|
|
12
11
|
static get styles() {
|
|
13
12
|
return [
|
|
@@ -163,7 +162,7 @@ export class AuthResult extends localize(i18next)(LitElement) {
|
|
|
163
162
|
></mwc-button>
|
|
164
163
|
</div>
|
|
165
164
|
|
|
166
|
-
${isSafari
|
|
165
|
+
${isSafari()
|
|
167
166
|
? html``
|
|
168
167
|
: html`
|
|
169
168
|
<div class="lottie-container">
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { LitElement, css, html } from 'lit'
|
|
2
|
-
import { PageView, client, navigate, store } from '@things-factory/shell'
|
|
3
|
-
import { parseJwt, sleep } from '@things-factory/utils'
|
|
4
|
-
|
|
5
1
|
import Clipboard from 'clipboard'
|
|
2
|
+
import gql from 'graphql-tag'
|
|
3
|
+
import { css, html } from 'lit'
|
|
6
4
|
import { asyncReplace } from 'lit/directives/async-replace.js'
|
|
7
5
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
8
|
-
|
|
6
|
+
|
|
7
|
+
import { parseJwt, sleep } from '@operato/utils'
|
|
8
|
+
import { client, navigate, PageView, store } from '@things-factory/shell'
|
|
9
9
|
|
|
10
10
|
class AppBinding extends connect(store)(PageView) {
|
|
11
11
|
static get styles() {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { PageView, client, navigate, store } from '@things-factory/shell'
|
|
2
|
-
import { css, html } from 'lit'
|
|
3
|
-
import { parseJwt, sleep } from '@things-factory/utils'
|
|
4
|
-
|
|
5
1
|
import Clipboard from 'clipboard'
|
|
2
|
+
import gql from 'graphql-tag'
|
|
3
|
+
import { css, html } from 'lit'
|
|
6
4
|
import { asyncReplace } from 'lit/directives/async-replace.js'
|
|
7
5
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
8
|
-
|
|
6
|
+
|
|
7
|
+
import { parseJwt, sleep } from '@operato/utils'
|
|
8
|
+
import { client, navigate, PageView, store } from '@things-factory/shell'
|
|
9
9
|
|
|
10
10
|
class Appliance extends connect(store)(PageView) {
|
|
11
11
|
static get styles() {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import '@operato/data-grist'
|
|
2
2
|
import '../../components/create-domain-popup'
|
|
3
3
|
|
|
4
|
-
import
|
|
5
|
-
import { CustomAlert, PageView, client, store } from '@things-factory/shell'
|
|
4
|
+
import gql from 'graphql-tag'
|
|
6
5
|
import { css, html } from 'lit'
|
|
7
|
-
import { i18next, localize } from '@things-factory/i18n-base'
|
|
8
|
-
|
|
9
6
|
import { connect } from 'pwa-helpers/connect-mixin'
|
|
10
|
-
|
|
11
|
-
import {
|
|
7
|
+
|
|
8
|
+
import { CommonButtonStyles, ScrollbarStyles } from '@operato/styles'
|
|
9
|
+
import { isMobileDevice } from '@operato/utils'
|
|
10
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
12
11
|
import { openPopup } from '@things-factory/layout-base'
|
|
12
|
+
import { client, PageView, store } from '@things-factory/shell'
|
|
13
13
|
|
|
14
14
|
export class DomainManagement extends connect(store)(localize(i18next)(PageView)) {
|
|
15
15
|
static get properties() {
|
|
@@ -197,7 +197,7 @@ export class DomainManagement extends connect(store)(localize(i18next)(PageView)
|
|
|
197
197
|
|
|
198
198
|
const response = await client.query({
|
|
199
199
|
query: gql`
|
|
200
|
-
query($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
200
|
+
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
201
201
|
domains(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
202
202
|
items {
|
|
203
203
|
id
|
package/client/pages/profile.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { i18next, localize } from '@things-factory/i18n-base'
|
|
2
1
|
import '@things-factory/i18n-ui/client/components/i18n-selector'
|
|
3
|
-
import { PageView } from '@things-factory/shell'
|
|
4
|
-
import { ScrollbarStyles } from '@things-factory/styles'
|
|
5
|
-
import { css, html } from 'lit'
|
|
6
2
|
import '../components/profile-component'
|
|
7
3
|
|
|
4
|
+
import { css, html } from 'lit'
|
|
5
|
+
|
|
6
|
+
import { ScrollbarStyles } from '@operato/styles'
|
|
7
|
+
import { i18next, localize } from '@things-factory/i18n-base'
|
|
8
|
+
import { PageView } from '@things-factory/shell'
|
|
9
|
+
|
|
8
10
|
export class AuthProfile extends localize(i18next)(PageView) {
|
|
9
11
|
static get styles() {
|
|
10
12
|
return [
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { i18next } from '@things-factory/i18n-base'
|
|
2
2
|
|
|
3
|
-
export { generatePasswordPatternRegExp } from '@
|
|
4
|
-
export function generatePasswordPatternHelp(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} = {}
|
|
16
|
-
) {
|
|
3
|
+
export { generatePasswordPatternRegExp } from '@operato/utils'
|
|
4
|
+
export function generatePasswordPatternHelp({
|
|
5
|
+
lowerCase = true,
|
|
6
|
+
upperCase = true,
|
|
7
|
+
digit = true,
|
|
8
|
+
specialCharacter = true,
|
|
9
|
+
allowRepeat = false,
|
|
10
|
+
useTightPattern = true,
|
|
11
|
+
useLoosePattern = false,
|
|
12
|
+
tightCharacterLength = 8,
|
|
13
|
+
looseCharacterLength = 15
|
|
14
|
+
} = {}) {
|
|
17
15
|
var descriptions = []
|
|
18
16
|
|
|
19
17
|
if (useLoosePattern) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/auth-ui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.34",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"@material/mwc-icon-button": "^0.25.3",
|
|
31
31
|
"@material/mwc-textarea": "^0.25.3",
|
|
32
32
|
"@material/mwc-textfield": "^0.25.3",
|
|
33
|
-
"@operato/data-grist": "^0.3.
|
|
34
|
-
"@operato/lottie-player": "^0.3.
|
|
35
|
-
"@things-factory/auth-base": "^4.0.
|
|
36
|
-
"@things-factory/i18n-base": "^4.0.
|
|
37
|
-
"@things-factory/i18n-ui": "^4.0.
|
|
38
|
-
"@things-factory/layout-ui": "^4.0.
|
|
39
|
-
"@things-factory/more-base": "^4.0.
|
|
33
|
+
"@operato/data-grist": "^0.3.14",
|
|
34
|
+
"@operato/lottie-player": "^0.3.14",
|
|
35
|
+
"@things-factory/auth-base": "^4.0.34",
|
|
36
|
+
"@things-factory/i18n-base": "^4.0.34",
|
|
37
|
+
"@things-factory/i18n-ui": "^4.0.34",
|
|
38
|
+
"@things-factory/layout-ui": "^4.0.34",
|
|
39
|
+
"@things-factory/more-base": "^4.0.34",
|
|
40
40
|
"clipboard": "^2.0.6"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "b79919fd02f8388f1d40300c52a25903ad98110c"
|
|
43
43
|
}
|