@things-factory/auth-ui 4.0.28 → 4.0.33

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.
@@ -8,8 +8,9 @@ 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
 
@@ -113,14 +114,16 @@ export class AbstractAuthPage extends localize(i18next)(LitElement) {
113
114
  </div>
114
115
  </div>
115
116
 
116
- <mwc-icon-button home icon="home" @click=${e => (window.location = '/')}></mwc-icon-button>
117
+ <mwc-icon-button home icon="home" @click=${e => (window.location.href = '/')}></mwc-icon-button>
117
118
  <snack-bar id="snackbar" level="error" .message=${this.message}></snack-bar>
118
119
 
119
- <!--lottie animation begin-->
120
- <div class="lottie-container">
121
- <lottie-player autoplay loop src="../../assets/images/background-animation.json"></lottie-player>
122
- </div>
123
- <!--lottie animation end-->
120
+ ${isSafari()
121
+ ? html``
122
+ : html`
123
+ <div class="lottie-container">
124
+ <lottie-player autoplay loop src="../../assets/images/background-animation.json"></lottie-player>
125
+ </div>
126
+ `}
124
127
  </div>
125
128
  `
126
129
  }
@@ -5,6 +5,7 @@ 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'
@@ -124,11 +125,13 @@ export class AbstractPasswordReset extends AbstractAuthPage {
124
125
  </div>
125
126
  <snack-bar id="snackbar" level="error" .message=${this.message}></snack-bar>
126
127
 
127
- <!--lottie animation begin-->
128
- <div class="lottie-container">
129
- <lottie-player autoplay loop src="../../assets/images/background-animation.json"></lottie-player>
130
- </div>
131
- <!--lottie animation end-->
128
+ ${isSafari()
129
+ ? html``
130
+ : html`
131
+ <div class="lottie-container">
132
+ <lottie-player autoplay loop src="../../assets/images/background-animation.json"></lottie-player>
133
+ </div>
134
+ `}
132
135
  `
133
136
  }
134
137
 
@@ -1,7 +1,7 @@
1
- import { LitElement, css, html } from 'lit'
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 { isMobileDevice } from '@things-factory/utils'
8
+ import { client } from '@things-factory/shell'
9
9
 
10
10
  class MyLoginHistory extends LitElement {
11
11
  static get properties() {
@@ -4,8 +4,9 @@ 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
 
@@ -139,11 +140,13 @@ export class AuthCheckIn extends localize(i18next)(LitElement) {
139
140
  : ''}
140
141
  </div>
141
142
 
142
- <!--lottie animation begin-->
143
- <div class="lottie-container">
144
- <lottie-player autoplay loop src="../../assets/images/background-animation.json"></lottie-player>
145
- </div>
146
- <!--lottie animation end-->
143
+ ${isSafari()
144
+ ? html``
145
+ : html`
146
+ <div class="lottie-container">
147
+ <lottie-player autoplay loop src="../../assets/images/background-animation.json"></lottie-player>
148
+ </div>
149
+ `}
147
150
  </div>
148
151
  </div>
149
152
  `
@@ -4,6 +4,7 @@ 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
10
  export class AuthResult extends localize(i18next)(LitElement) {
@@ -161,11 +162,13 @@ export class AuthResult extends localize(i18next)(LitElement) {
161
162
  ></mwc-button>
162
163
  </div>
163
164
 
164
- <!--lottie animation begin-->
165
- <div class="lottie-container">
166
- <lottie-player autoplay loop src="../../assets/images/background-animation.json"></lottie-player>
167
- </div>
168
- <!--lottie animation end-->
165
+ ${isSafari()
166
+ ? html``
167
+ : html`
168
+ <div class="lottie-container">
169
+ <lottie-player autoplay loop src="../../assets/images/background-animation.json"></lottie-player>
170
+ </div>
171
+ `}
169
172
  </div>
170
173
  `
171
174
  }
@@ -1,7 +1,8 @@
1
1
  import '@material/mwc-icon-button'
2
2
  import '@material/mwc-button'
3
3
 
4
- import { LitElement, css, html } from 'lit'
4
+ import { css, html, LitElement } from 'lit'
5
+
5
6
  import { i18next, localize } from '@things-factory/i18n-base'
6
7
 
7
8
  export class HomePage extends localize(i18next)(LitElement) {
@@ -178,8 +179,8 @@ export class HomePage extends localize(i18next)(LitElement) {
178
179
  const explanation2 = this.explanation2 || 'Everything you need to go from where you are, to where you want to be.'
179
180
 
180
181
  return html`
181
- <mwc-icon-button home icon="home" @click=${e => (window.location = '/')}></mwc-icon-button>
182
- <mwc-button signin dense @click=${e => (window.location = '/auth/signin')}>sign in</mwc-button>
182
+ <mwc-icon-button home icon="home" @click=${e => (window.location.href = '/')}></mwc-icon-button>
183
+ <mwc-button signin dense @click=${e => (window.location.href = '/auth/signin')}>sign in</mwc-button>
183
184
 
184
185
  <div message>
185
186
  <strong>${tagline}</strong> ${explanation1} <br />
@@ -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
- import gql from 'graphql-tag'
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
- import gql from 'graphql-tag'
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 { CommonButtonStyles, ScrollbarStyles } from '@things-factory/styles'
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
- import gql from 'graphql-tag'
11
- import { isMobileDevice } from '@things-factory/utils'
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
@@ -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 '@things-factory/utils'
4
- export function generatePasswordPatternHelp(
5
- {
6
- lowerCase = true,
7
- upperCase = true,
8
- digit = true,
9
- specialCharacter = true,
10
- allowRepeat = false,
11
- useTightPattern = true,
12
- useLoosePattern = false,
13
- tightCharacterLength = 8,
14
- looseCharacterLength = 15
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.28",
3
+ "version": "4.0.33",
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.4",
34
- "@operato/lottie-player": "^0.3.4",
35
- "@things-factory/auth-base": "^4.0.28",
36
- "@things-factory/i18n-base": "^4.0.28",
37
- "@things-factory/i18n-ui": "^4.0.28",
38
- "@things-factory/layout-ui": "^4.0.28",
39
- "@things-factory/more-base": "^4.0.28",
33
+ "@operato/data-grist": "^0.3.14",
34
+ "@operato/lottie-player": "^0.3.14",
35
+ "@things-factory/auth-base": "^4.0.33",
36
+ "@things-factory/i18n-base": "^4.0.33",
37
+ "@things-factory/i18n-ui": "^4.0.33",
38
+ "@things-factory/layout-ui": "^4.0.33",
39
+ "@things-factory/more-base": "^4.0.33",
40
40
  "clipboard": "^2.0.6"
41
41
  },
42
- "gitHead": "fc526e27ae290a6fa3f001ce7ee75a2904b1d363"
42
+ "gitHead": "0cd5e3b224feb8d526dd5ebc0ee838ff55e2c91c"
43
43
  }