@things-factory/auth-ui 4.0.2 → 4.0.7

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.
Files changed (44) hide show
  1. package/client/auth-style-sign.js +1 -1
  2. package/client/components/abstract-auth-page.js +8 -23
  3. package/client/components/abstract-password-reset.js +7 -6
  4. package/client/components/change-password.js +3 -2
  5. package/client/components/contact-us.js +4 -2
  6. package/client/components/create-domain-popup.js +4 -2
  7. package/client/components/create-role.js +3 -2
  8. package/client/components/create-user.js +2 -1
  9. package/client/components/delete-user-popup.js +3 -2
  10. package/client/components/domain-switch.js +3 -3
  11. package/client/components/invite-customer.js +5 -3
  12. package/client/components/invite-user.js +5 -3
  13. package/client/components/my-login-history.js +5 -3
  14. package/client/components/ownership-transfer-popup.js +4 -2
  15. package/client/components/partner-info-card.js +2 -1
  16. package/client/components/partner-role-editor.js +4 -2
  17. package/client/components/profile-component.js +6 -4
  18. package/client/components/role-edit-form.js +2 -2
  19. package/client/components/role-privilege-editor.js +3 -2
  20. package/client/components/role-selector.js +1 -1
  21. package/client/components/user-role-editor.js +8 -6
  22. package/client/entries/auth/activate.js +5 -2
  23. package/client/entries/auth/checkin.js +6 -2
  24. package/client/entries/auth/forgot-password.js +4 -3
  25. package/client/entries/auth/result.js +5 -2
  26. package/client/entries/auth/signup.js +1 -1
  27. package/client/entries/oauth2/oauth2-decision-error-page.js +2 -1
  28. package/client/entries/oauth2/oauth2-decision-page.js +6 -4
  29. package/client/entries/public/home.js +1 -2
  30. package/client/pages/app-binding/app-binding.js +6 -6
  31. package/client/pages/app-binding/app-bindings.js +4 -3
  32. package/client/pages/appliance/appliance.js +1 -1
  33. package/client/pages/appliance/home.js +2 -2
  34. package/client/pages/appliance/register.js +4 -4
  35. package/client/pages/application/application.js +4 -4
  36. package/client/pages/application/applications.js +4 -3
  37. package/client/pages/application/register.js +3 -3
  38. package/client/pages/domain/domain-management.js +1 -1
  39. package/client/pages/partner/partner-management.js +7 -5
  40. package/client/pages/profile.js +2 -4
  41. package/client/pages/role/role-management.js +7 -5
  42. package/client/pages/user/user-management.js +6 -4
  43. package/package.json +15 -15
  44. package/views/auth-page.html +0 -1
@@ -1,4 +1,4 @@
1
- import { css } from 'lit-element'
1
+ import { css } from 'lit'
2
2
 
3
3
  export const AUTH_STYLE_SIGN = css`
4
4
  :host {
@@ -2,11 +2,15 @@ import '@material/mwc-button'
2
2
  import '@material/mwc-icon'
3
3
  import '@material/mwc-icon-button'
4
4
  import '@material/mwc-textfield'
5
- import { ScrollbarStyles } from '@things-factory/styles'
6
- import { i18next, localize } from '@things-factory/i18n-base'
5
+ import '@operato/lottie-player'
7
6
  import '@things-factory/i18n-ui/client/components/i18n-selector'
8
7
  import '@things-factory/layout-ui/client/layouts/snack-bar'
9
- import { css, html, LitElement } from 'lit-element'
8
+
9
+ import { css, html, LitElement } from 'lit'
10
+
11
+ import { i18next, localize } from '@things-factory/i18n-base'
12
+ import { ScrollbarStyles } from '@things-factory/styles'
13
+
10
14
  import { AUTH_STYLE_SIGN } from '../auth-style-sign'
11
15
 
12
16
  export class AbstractAuthPage extends localize(i18next)(LitElement) {
@@ -90,7 +94,6 @@ export class AbstractAuthPage extends localize(i18next)(LitElement) {
90
94
  if (e.key == 'Enter') this._onSubmit(e)
91
95
  }}
92
96
  >
93
- <input id="locale-input" type="hidden" name="locale" .value="${i18next.language}" />
94
97
  ${this.formfields}
95
98
  </form>
96
99
  ${this.links}
@@ -103,9 +106,6 @@ export class AbstractAuthPage extends localize(i18next)(LitElement) {
103
106
  var locale = e.detail
104
107
  if (!locale) return
105
108
 
106
- var localeInput = this.renderRoot.querySelector('#locale-input')
107
- localeInput.value = locale
108
-
109
109
  i18next.changeLanguage(locale)
110
110
  }}
111
111
  ></i18n-selector>
@@ -156,8 +156,6 @@ export class AbstractAuthPage extends localize(i18next)(LitElement) {
156
156
  const email = this.data?.email || ''
157
157
 
158
158
  return html`
159
- <input id="email" type="hidden" name="email" .value=${email} />
160
- <input id="password" type="hidden" name="password" />
161
159
  <input id="redirectTo" type="hidden" name="redirectTo" .value=${this.redirectTo || '/'} />
162
160
 
163
161
  <div class="field">
@@ -167,23 +165,10 @@ export class AbstractAuthPage extends localize(i18next)(LitElement) {
167
165
  label=${i18next.t('field.email')}
168
166
  required
169
167
  .value=${email}
170
- @input=${e => {
171
- var emailInput = this.renderRoot.querySelector('#email')
172
- emailInput.value = e.target.value
173
- }}
174
168
  ></mwc-textfield>
175
169
  </div>
176
170
  <div class="field">
177
- <mwc-textfield
178
- name="password"
179
- type="password"
180
- label=${i18next.t('field.password')}
181
- required
182
- @input=${e => {
183
- var passwordInput = this.renderRoot.querySelector('#password')
184
- passwordInput.value = e.target.value
185
- }}
186
- ></mwc-textfield>
171
+ <mwc-textfield name="password" type="password" label=${i18next.t('field.password')} required></mwc-textfield>
187
172
  </div>
188
173
 
189
174
  <mwc-button class="ui" type="submit" raised @click=${e => this._onSubmit(e)}>
@@ -1,11 +1,15 @@
1
1
  import '@material/mwc-button'
2
2
  import '@material/mwc-textfield'
3
+ import '@operato/lottie-player'
4
+ import '../components/profile-component'
5
+
6
+ import { css, html } from 'lit'
7
+
3
8
  import { i18next } from '@things-factory/i18n-base'
4
- import { css, html } from 'lit-element'
9
+
5
10
  import { AUTH_STYLE_SIGN } from '../auth-style-sign'
6
- import '../components/profile-component'
11
+ import { generatePasswordPatternHelp, generatePasswordPatternRegExp } from '../utils/password-rule'
7
12
  import { AbstractAuthPage } from './abstract-auth-page'
8
- import { generatePasswordPatternRegExp, generatePasswordPatternHelp } from '../utils/password-rule'
9
13
 
10
14
  export class AbstractPasswordReset extends AbstractAuthPage {
11
15
  static get styles() {
@@ -71,7 +75,6 @@ export class AbstractPasswordReset extends AbstractAuthPage {
71
75
  }}
72
76
  >
73
77
  <input name="token" type="hidden" .value=${this.token} required />
74
- <input id="password" name="password" type="hidden" required />
75
78
  <div class="field">
76
79
  <mwc-textfield
77
80
  name="password"
@@ -83,8 +86,6 @@ export class AbstractPasswordReset extends AbstractAuthPage {
83
86
  @input=${e => {
84
87
  var val = e.target.value
85
88
  var confirmPass = this.renderRoot.querySelector('#confirm-password')
86
- var passwordInput = this.renderRoot.querySelector('#password')
87
- passwordInput.value = val
88
89
  confirmPass.setAttribute('pattern', val.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '[$&]'))
89
90
  }}
90
91
  required
@@ -1,7 +1,8 @@
1
- import { auth } from '@things-factory/auth-base'
1
+ import { LitElement, css, html } from 'lit'
2
2
  import { i18next, localize } from '@things-factory/i18n-base'
3
- import { css, html, LitElement } from 'lit-element'
3
+
4
4
  import { CustomAlert } from '@things-factory/shell'
5
+ import { auth } from '@things-factory/auth-base'
5
6
 
6
7
  export class ChangePassword extends localize(i18next)(LitElement) {
7
8
  static get styles() {
@@ -2,10 +2,12 @@ import '@material/mwc-textarea'
2
2
  import '@material/mwc-textfield'
3
3
  import '@material/mwc-button'
4
4
  import '@material/mwc-dialog'
5
- import { auth } from '@things-factory/auth-base'
6
5
  import '@things-factory/i18n-base'
6
+
7
+ import { LitElement, css, html } from 'lit'
7
8
  import { i18next, localize } from '@things-factory/i18n-base'
8
- import { css, html, LitElement } from 'lit-element'
9
+
10
+ import { auth } from '@things-factory/auth-base'
9
11
 
10
12
  export class ContactUs extends localize(i18next)(LitElement) {
11
13
  static get styles() {
@@ -1,8 +1,10 @@
1
1
  import '@material/mwc-button'
2
+
3
+ import { CustomAlert, client } from '@things-factory/shell'
4
+ import { LitElement, css, html } from 'lit'
2
5
  import { i18next, localize } from '@things-factory/i18n-base'
3
- import { client, CustomAlert } from '@things-factory/shell'
6
+
4
7
  import gql from 'graphql-tag'
5
- import { css, html, LitElement } from 'lit-element'
6
8
 
7
9
  class CreateDomainPopup extends localize(i18next)(LitElement) {
8
10
  static get properties() {
@@ -1,7 +1,8 @@
1
+ import { CustomAlert, client, gqlContext } from '@things-factory/shell'
2
+ import { LitElement, css, html } from 'lit'
1
3
  import { i18next, localize } from '@things-factory/i18n-base'
2
- import { client, CustomAlert, gqlContext } from '@things-factory/shell'
4
+
3
5
  import gql from 'graphql-tag'
4
- import { css, html, LitElement } from 'lit-element'
5
6
 
6
7
  class CreateRole extends localize(i18next)(LitElement) {
7
8
  static get styles() {
@@ -1,4 +1,5 @@
1
- import { css, html, LitElement } from 'lit-element'
1
+ import { LitElement, css, html } from 'lit'
2
+
2
3
  import { i18next } from '@things-factory/i18n-base'
3
4
 
4
5
  class CreateUser extends LitElement {
@@ -1,7 +1,8 @@
1
- import { auth } from '@things-factory/auth-base'
1
+ import { LitElement, css, html } from 'lit'
2
2
  import { i18next, localize } from '@things-factory/i18n-base'
3
+
4
+ import { auth } from '@things-factory/auth-base'
3
5
  import { notify } from '@things-factory/layout-base'
4
- import { css, html, LitElement } from 'lit-element'
5
6
 
6
7
  export class DeleteUserPopup extends localize(i18next)(LitElement) {
7
8
  static get styles() {
@@ -1,8 +1,8 @@
1
- import { css, html, LitElement } from 'lit-element'
2
- import { connect } from 'pwa-helpers/connect-mixin'
1
+ import { LitElement, css, html } from 'lit'
3
2
 
4
- import { store } from '@things-factory/shell'
5
3
  import { ScrollbarStyles } from '@things-factory/styles'
4
+ import { connect } from 'pwa-helpers/connect-mixin'
5
+ import { store } from '@things-factory/shell'
6
6
 
7
7
  export class DomainSwitch extends connect(store)(LitElement) {
8
8
  static get styles() {
@@ -1,8 +1,10 @@
1
- import { i18next, localize } from '@things-factory/i18n-base'
2
- import { client, CustomAlert, gqlContext } from '@things-factory/shell'
3
1
  import '@things-factory/auth-ui'
2
+
3
+ import { CustomAlert, client, gqlContext } from '@things-factory/shell'
4
+ import { LitElement, css, html } from 'lit'
5
+ import { i18next, localize } from '@things-factory/i18n-base'
6
+
4
7
  import gql from 'graphql-tag'
5
- import { css, html, LitElement } from 'lit-element'
6
8
 
7
9
  class InviteCustomer extends localize(i18next)(LitElement) {
8
10
  static get styles() {
@@ -1,8 +1,10 @@
1
+ import './user-role-editor'
2
+
3
+ import { CustomAlert, client, gqlContext } from '@things-factory/shell'
4
+ import { LitElement, css, html } from 'lit'
1
5
  import { i18next, localize } from '@things-factory/i18n-base'
2
- import { client, CustomAlert, gqlContext } from '@things-factory/shell'
6
+
3
7
  import gql from 'graphql-tag'
4
- import { css, html, LitElement } from 'lit-element'
5
- import './user-role-editor'
6
8
 
7
9
  class InviteUser extends localize(i18next)(LitElement) {
8
10
  static get styles() {
@@ -1,9 +1,11 @@
1
1
  import '@things-factory/grist-ui'
2
- import { i18next } from '@things-factory/i18n-base'
2
+
3
+ import { LitElement, css, html } from 'lit'
4
+
3
5
  import { client } from '@things-factory/shell'
4
- import { isMobileDevice } from '@things-factory/utils'
5
6
  import gql from 'graphql-tag'
6
- import { css, html, LitElement } from 'lit-element'
7
+ import { i18next } from '@things-factory/i18n-base'
8
+ import { isMobileDevice } from '@things-factory/utils'
7
9
 
8
10
  class MyLoginHistory extends LitElement {
9
11
  static get properties() {
@@ -1,8 +1,10 @@
1
1
  import '@material/mwc-button'
2
+
3
+ import { CustomAlert, client, gqlContext } from '@things-factory/shell'
4
+ import { LitElement, css, html } from 'lit'
2
5
  import { i18next, localize } from '@things-factory/i18n-base'
3
- import { client, CustomAlert, gqlContext } from '@things-factory/shell'
6
+
4
7
  import gql from 'graphql-tag'
5
- import { css, html, LitElement } from 'lit-element'
6
8
 
7
9
  class OwnershipTransferPopup extends localize(i18next)(LitElement) {
8
10
  static get properties() {
@@ -1,4 +1,5 @@
1
- import { LitElement, html, css } from 'lit-element'
1
+ import { LitElement, css, html } from 'lit'
2
+
2
3
  import { i18next } from '@things-factory/i18n-base'
3
4
 
4
5
  export class PartnerInfoCard extends LitElement {
@@ -1,9 +1,11 @@
1
1
  import '@material/mwc-icon'
2
2
  import '@things-factory/auth-ui'
3
+
4
+ import { CustomAlert, client, gqlContext } from '@things-factory/shell'
5
+ import { LitElement, css, html } from 'lit'
3
6
  import { i18next, localize } from '@things-factory/i18n-base'
4
- import { client, CustomAlert, gqlContext } from '@things-factory/shell'
7
+
5
8
  import gql from 'graphql-tag'
6
- import { css, html, LitElement } from 'lit-element'
7
9
 
8
10
  class PartnerRoleEditor extends localize(i18next)(LitElement) {
9
11
  static get styles() {
@@ -1,12 +1,14 @@
1
- import { auth } from '@things-factory/auth-base'
2
- import { i18next, localize } from '@things-factory/i18n-base'
3
1
  import '@things-factory/i18n-ui/client/components/i18n-selector'
4
- import { openPopup, notify } from '@things-factory/layout-base'
5
- import { css, html, LitElement } from 'lit-element'
6
2
  import './change-password'
7
3
  import './delete-user-popup'
8
4
  import './my-login-history'
9
5
 
6
+ import { LitElement, css, html } from 'lit'
7
+ import { i18next, localize } from '@things-factory/i18n-base'
8
+ import { notify, openPopup } from '@things-factory/layout-base'
9
+
10
+ import { auth } from '@things-factory/auth-base'
11
+
10
12
  export class ProfileComponent extends localize(i18next)(LitElement) {
11
13
  static get properties() {
12
14
  return {
@@ -1,5 +1,5 @@
1
- import { LitElement, html, css } from 'lit-element'
2
- import { localize, i18next } from '@things-factory/i18n-base'
1
+ import { LitElement, css, html } from 'lit'
2
+ import { i18next, localize } from '@things-factory/i18n-base'
3
3
 
4
4
  class RoleEditForm extends localize(i18next)(LitElement) {
5
5
  static get properties() {
@@ -1,7 +1,8 @@
1
+ import { CustomAlert, client, gqlContext } from '@things-factory/shell'
2
+ import { LitElement, css, html } from 'lit'
1
3
  import { i18next, localize } from '@things-factory/i18n-base'
2
- import { client, gqlContext, CustomAlert } from '@things-factory/shell'
4
+
3
5
  import gql from 'graphql-tag'
4
- import { css, html, LitElement } from 'lit-element'
5
6
 
6
7
  class RolePrivilegeEditor extends localize(i18next)(LitElement) {
7
8
  static get styles() {
@@ -1,4 +1,4 @@
1
- import { html, css, LitElement } from 'lit-element'
1
+ import { LitElement, css, html } from 'lit'
2
2
 
3
3
  export class RoleSelector extends LitElement {
4
4
  static get properties() {
@@ -1,12 +1,14 @@
1
- import { i18next } from '@things-factory/i18n-base'
2
- import { openPopup } from '@things-factory/layout-base'
3
- import { client, CustomAlert, gqlContext, store } from '@things-factory/shell'
4
- import gql from 'graphql-tag'
5
- import { css, html, LitElement } from 'lit-element'
6
- import { connect } from 'pwa-helpers/connect-mixin'
7
1
  import './ownership-transfer-popup'
8
2
  import './role-selector'
9
3
 
4
+ import { CustomAlert, client, gqlContext, store } from '@things-factory/shell'
5
+ import { LitElement, css, html } from 'lit'
6
+
7
+ import { connect } from 'pwa-helpers/connect-mixin'
8
+ import gql from 'graphql-tag'
9
+ import { i18next } from '@things-factory/i18n-base'
10
+ import { openPopup } from '@things-factory/layout-base'
11
+
10
12
  class UserRoleEditor extends connect(store)(LitElement) {
11
13
  static get styles() {
12
14
  return [
@@ -1,7 +1,10 @@
1
1
  import '@material/mwc-button'
2
- import { i18next, localize } from '@things-factory/i18n-base'
3
2
  import '@things-factory/layout-ui/client/layouts/snack-bar'
4
- import { css, html, LitElement } from 'lit-element'
3
+ import '@operato/lottie-player'
4
+
5
+ import { css, html, LitElement } from 'lit'
6
+
7
+ import { i18next, localize } from '@things-factory/i18n-base'
5
8
 
6
9
  export class AuthActivate extends localize(i18next)(LitElement) {
7
10
  static get styles() {
@@ -1,8 +1,12 @@
1
1
  import '@material/mwc-button'
2
2
  import '@material/mwc-icon'
3
- import { ScrollbarStyles } from '@things-factory/styles'
3
+ import '@operato/lottie-player'
4
+
5
+ import { css, html, LitElement } from 'lit'
6
+
4
7
  import { i18next, localize } from '@things-factory/i18n-base'
5
- import { css, html, LitElement } from 'lit-element'
8
+ import { ScrollbarStyles } from '@things-factory/styles'
9
+
6
10
  import { AUTH_STYLE_SIGN } from '../../auth-style-sign'
7
11
 
8
12
  export class AuthCheckIn extends localize(i18next)(LitElement) {
@@ -1,10 +1,11 @@
1
1
  import '@material/mwc-button'
2
- import { i18next } from '@things-factory/i18n-base'
3
2
  import '@things-factory/layout-ui/client/layouts/snack-bar'
4
- import { html } from 'lit-element'
5
- import { AbstractAuthPage } from '../../components/abstract-auth-page'
6
3
  import '../../components/profile-component'
7
4
 
5
+ import { AbstractAuthPage } from '../../components/abstract-auth-page'
6
+ import { html } from 'lit'
7
+ import { i18next } from '@things-factory/i18n-base'
8
+
8
9
  export class ForgotPassword extends AbstractAuthPage {
9
10
  get pageName() {
10
11
  return 'forgot password'
@@ -1,7 +1,10 @@
1
1
  import '@material/mwc-button'
2
- import { i18next, localize } from '@things-factory/i18n-base'
3
- import { css, html, LitElement } from 'lit-element'
4
2
  import '../../components/profile-component'
3
+ import '@operato/lottie-player'
4
+
5
+ import { css, html, LitElement } from 'lit'
6
+
7
+ import { i18next, localize } from '@things-factory/i18n-base'
5
8
 
6
9
  export class AuthResult extends localize(i18next)(LitElement) {
7
10
  static get styles() {
@@ -1,5 +1,5 @@
1
1
  import { i18next } from '@things-factory/i18n-base'
2
- import { html } from 'lit-element'
2
+ import { html } from 'lit'
3
3
  import { AbstractSign } from '../../components/abstract-sign'
4
4
  import { generatePasswordPatternRegExp, generatePasswordPatternHelp } from '../../utils/password-rule'
5
5
 
@@ -1,6 +1,7 @@
1
- import { html, LitElement } from 'lit-element'
2
1
  import '@material/mwc-button'
3
2
 
3
+ import { LitElement, html } from 'lit'
4
+
4
5
  class OAuth2DecisionErrorPage extends LitElement {
5
6
  static get properties() {
6
7
  return {
@@ -1,10 +1,12 @@
1
1
  import '@material/mwc-button'
2
- import { i18next } from '@things-factory/i18n-base'
3
- import { client, CustomAlert } from '@things-factory/shell'
4
- import gql from 'graphql-tag'
5
- import { css, html, LitElement } from 'lit-element'
6
2
  import '../../components/role-selector'
7
3
 
4
+ import { CustomAlert, client } from '@things-factory/shell'
5
+ import { LitElement, css, html } from 'lit'
6
+
7
+ import gql from 'graphql-tag'
8
+ import { i18next } from '@things-factory/i18n-base'
9
+
8
10
  class OAuth2DecisionPage extends LitElement {
9
11
  static get styles() {
10
12
  return css`
@@ -1,8 +1,7 @@
1
1
  import '@material/mwc-icon-button'
2
2
  import '@material/mwc-button'
3
3
 
4
- import { css, html, LitElement } from 'lit-element'
5
-
4
+ import { LitElement, css, html } from 'lit'
6
5
  import { i18next, localize } from '@things-factory/i18n-base'
7
6
 
8
7
  export class HomePage extends localize(i18next)(LitElement) {
@@ -1,11 +1,11 @@
1
- import { html, css, LitElement } from 'lit-element'
2
- import { asyncReplace } from 'lit-html/directives/async-replace'
3
- import gql from 'graphql-tag'
4
- import Clipboard from 'clipboard'
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'
5
4
 
5
+ import Clipboard from 'clipboard'
6
+ import { asyncReplace } from 'lit-html/directives/async-replace'
6
7
  import { connect } from 'pwa-helpers/connect-mixin.js'
7
- import { client, store, PageView, navigate } from '@things-factory/shell'
8
- import { sleep, parseJwt } from '@things-factory/utils'
8
+ import gql from 'graphql-tag'
9
9
 
10
10
  class AppBinding extends connect(store)(PageView) {
11
11
  static get styles() {
@@ -1,7 +1,8 @@
1
- import { html, css, LitElement } from 'lit-element'
2
- import gql from 'graphql-tag'
1
+ import { LitElement, css, html } from 'lit'
2
+ import { PageView, client, navigate, store } from '@things-factory/shell'
3
+
3
4
  import { connect } from 'pwa-helpers/connect-mixin.js'
4
- import { client, store, PageView, navigate } from '@things-factory/shell'
5
+ import gql from 'graphql-tag'
5
6
 
6
7
  class AppBindings extends connect(store)(PageView) {
7
8
  static get styles() {
@@ -1,4 +1,4 @@
1
- import { html, css, LitElement } from 'lit-element'
1
+ import { html, css, LitElement } from 'lit'
2
2
  import { asyncReplace } from 'lit-html/directives/async-replace'
3
3
  import gql from 'graphql-tag'
4
4
  import Clipboard from 'clipboard'
@@ -1,4 +1,4 @@
1
- import { html, css, LitElement } from 'lit-element'
1
+ import { html, css, LitElement } from 'lit'
2
2
  import gql from 'graphql-tag'
3
3
  import { connect } from 'pwa-helpers/connect-mixin.js'
4
4
  import { client, store, PageView, navigate } from '@things-factory/shell'
@@ -87,7 +87,7 @@ class Appliances extends connect(store)(PageView) {
87
87
  get context() {
88
88
  return {
89
89
  title: `appliance home`,
90
- help:'auth/appliance'
90
+ help: 'auth/appliance'
91
91
  }
92
92
  }
93
93
 
@@ -1,8 +1,8 @@
1
- import { html, css, LitElement } from 'lit-element'
2
- import gql from 'graphql-tag'
1
+ import { LitElement, css, html } from 'lit'
2
+ import { PageView, client, navigate, store } from '@things-factory/shell'
3
3
 
4
4
  import { connect } from 'pwa-helpers/connect-mixin.js'
5
- import { client, store, navigate, PageView } from '@things-factory/shell'
5
+ import gql from 'graphql-tag'
6
6
 
7
7
  class ApplianceRegister extends connect(store)(PageView) {
8
8
  static get styles() {
@@ -93,7 +93,7 @@ class ApplianceRegister extends connect(store)(PageView) {
93
93
  get context() {
94
94
  return {
95
95
  title: `appliance registration`,
96
- help:'auth/appliance'
96
+ help: 'auth/appliance'
97
97
  }
98
98
  }
99
99
 
@@ -1,9 +1,9 @@
1
- import { html, css, LitElement } from 'lit-element'
2
- import gql from 'graphql-tag'
3
- import Clipboard from 'clipboard'
1
+ import { LitElement, css, html } from 'lit'
2
+ import { PageView, client, navigate, store } from '@things-factory/shell'
4
3
 
4
+ import Clipboard from 'clipboard'
5
5
  import { connect } from 'pwa-helpers/connect-mixin.js'
6
- import { client, store, navigate, PageView } from '@things-factory/shell'
6
+ import gql from 'graphql-tag'
7
7
 
8
8
  class Application extends connect(store)(PageView) {
9
9
  static get styles() {
@@ -1,7 +1,8 @@
1
- import { html, css, LitElement } from 'lit-element'
2
- import gql from 'graphql-tag'
1
+ import { LitElement, css, html } from 'lit'
2
+ import { PageView, client, navigate, store } from '@things-factory/shell'
3
+
3
4
  import { connect } from 'pwa-helpers/connect-mixin.js'
4
- import { client, store, PageView, navigate } from '@things-factory/shell'
5
+ import gql from 'graphql-tag'
5
6
 
6
7
  class Applications extends connect(store)(PageView) {
7
8
  static get styles() {
@@ -1,8 +1,8 @@
1
- import { html, css, LitElement } from 'lit-element'
2
- import gql from 'graphql-tag'
1
+ import { LitElement, css, html } from 'lit'
2
+ import { PageView, client, navigate, store } from '@things-factory/shell'
3
3
 
4
4
  import { connect } from 'pwa-helpers/connect-mixin.js'
5
- import { client, store, navigate, PageView } from '@things-factory/shell'
5
+ import gql from 'graphql-tag'
6
6
 
7
7
  class ApplicationRegister extends connect(store)(PageView) {
8
8
  static get styles() {
@@ -4,7 +4,7 @@ import { client, PageView, store, CustomAlert } from '@things-factory/shell'
4
4
  import { isMobileDevice } from '@things-factory/utils'
5
5
  import { ScrollbarStyles, CommonButtonStyles } from '@things-factory/styles'
6
6
  import gql from 'graphql-tag'
7
- import { css, html } from 'lit-element'
7
+ import { css, html } from 'lit'
8
8
  import { connect } from 'pwa-helpers/connect-mixin'
9
9
  import { openPopup } from '@things-factory/layout-base'
10
10
  import '../../components/create-domain-popup'
@@ -1,13 +1,15 @@
1
- import { i18next } from '@things-factory/i18n-base'
2
1
  import '@things-factory/component-ui'
3
- import { client, gqlContext, PageView, store } from '@things-factory/shell'
4
- import gql from 'graphql-tag'
5
- import { css, html } from 'lit-element'
6
- import { connect } from 'pwa-helpers/connect-mixin.js'
7
2
  import '../../components/partner-info-card'
8
3
  import '../../components/partner-role-editor'
9
4
  import '../../components/invite-customer'
10
5
 
6
+ import { PageView, client, gqlContext, store } from '@things-factory/shell'
7
+ import { css, html } from 'lit'
8
+
9
+ import { connect } from 'pwa-helpers/connect-mixin.js'
10
+ import gql from 'graphql-tag'
11
+ import { i18next } from '@things-factory/i18n-base'
12
+
11
13
  class PartnerManagement extends connect(store)(PageView) {
12
14
  static get styles() {
13
15
  return [
@@ -2,7 +2,7 @@ import { i18next, localize } from '@things-factory/i18n-base'
2
2
  import '@things-factory/i18n-ui/client/components/i18n-selector'
3
3
  import { PageView } from '@things-factory/shell'
4
4
  import { ScrollbarStyles } from '@things-factory/styles'
5
- import { css, html } from 'lit-element'
5
+ import { css, html } from 'lit'
6
6
  import '../components/profile-component'
7
7
 
8
8
  export class AuthProfile extends localize(i18next)(PageView) {
@@ -26,9 +26,7 @@ export class AuthProfile extends localize(i18next)(PageView) {
26
26
  }
27
27
 
28
28
  render() {
29
- return html`
30
- <profile-component></profile-component>
31
- `
29
+ return html` <profile-component></profile-component> `
32
30
  }
33
31
  }
34
32
 
@@ -1,13 +1,15 @@
1
1
  import '@things-factory/component-ui'
2
- import { client, gqlContext, PageView, store } from '@things-factory/shell'
3
- import gql from 'graphql-tag'
4
- import { i18next } from '@things-factory/i18n-base'
5
- import { css, html } from 'lit-element'
6
- import { connect } from 'pwa-helpers/connect-mixin.js'
7
2
  import '../../components/create-role'
8
3
  import '../../components/role-edit-form'
9
4
  import '../../components/role-privilege-editor'
10
5
 
6
+ import { PageView, client, gqlContext, store } from '@things-factory/shell'
7
+ import { css, html } from 'lit'
8
+
9
+ import { connect } from 'pwa-helpers/connect-mixin.js'
10
+ import gql from 'graphql-tag'
11
+ import { i18next } from '@things-factory/i18n-base'
12
+
11
13
  class RoleManagement extends connect(store)(PageView) {
12
14
  static get styles() {
13
15
  return [
@@ -1,13 +1,15 @@
1
1
  import '@things-factory/component-ui'
2
- import { client, gqlContext, PageView, CustomAlert } from '@things-factory/shell'
3
- import { i18next } from '@things-factory/i18n-base'
4
- import gql from 'graphql-tag'
5
- import { css, html } from 'lit-element'
6
2
  import '../../components/invite-user'
7
3
  import '../../components/ownership-transfer-popup'
8
4
  import '../../components/user-role-editor'
9
5
  import '../../components/create-user'
10
6
 
7
+ import { CustomAlert, PageView, client, gqlContext } from '@things-factory/shell'
8
+ import { css, html } from 'lit'
9
+
10
+ import gql from 'graphql-tag'
11
+ import { i18next } from '@things-factory/i18n-base'
12
+
11
13
  class UserManagement extends PageView {
12
14
  static get styles() {
13
15
  return [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/auth-ui",
3
- "version": "4.0.2",
3
+ "version": "4.0.7",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -24,20 +24,20 @@
24
24
  "migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
25
25
  },
26
26
  "dependencies": {
27
- "@lottiefiles/lottie-player": "^1.4.4",
28
- "@material/mwc-button": "^0.22.1",
29
- "@material/mwc-dialog": "^0.22.1",
30
- "@material/mwc-icon": "^0.22.1",
31
- "@material/mwc-icon-button": "^0.22.1",
32
- "@material/mwc-textarea": "^0.22.1",
33
- "@material/mwc-textfield": "^0.22.1",
34
- "@things-factory/auth-base": "^4.0.1",
35
- "@things-factory/grist-ui": "^4.0.1",
36
- "@things-factory/i18n-base": "^4.0.1",
37
- "@things-factory/i18n-ui": "^4.0.1",
38
- "@things-factory/layout-ui": "^4.0.1",
39
- "@things-factory/more-base": "^4.0.1",
27
+ "@material/mwc-button": "^0.25.3",
28
+ "@material/mwc-dialog": "^0.25.3",
29
+ "@material/mwc-icon": "^0.25.3",
30
+ "@material/mwc-icon-button": "^0.25.3",
31
+ "@material/mwc-textarea": "^0.25.3",
32
+ "@material/mwc-textfield": "^0.25.3",
33
+ "@operato/lottie-player": "^0.2.27",
34
+ "@things-factory/auth-base": "^4.0.7",
35
+ "@things-factory/grist-ui": "^4.0.7",
36
+ "@things-factory/i18n-base": "^4.0.7",
37
+ "@things-factory/i18n-ui": "^4.0.7",
38
+ "@things-factory/layout-ui": "^4.0.7",
39
+ "@things-factory/more-base": "^4.0.7",
40
40
  "clipboard": "^2.0.6"
41
41
  },
42
- "gitHead": "db0fba9891f6706d3e07a2b2deab1e81eb064135"
42
+ "gitHead": "035fa60359aefa9b9111f807fc7e8db6a15a4a6e"
43
43
  }
@@ -80,7 +80,6 @@
80
80
  <!-- Load webcomponents-loader.js to check and load any polyfills your browser needs -->
81
81
  <script src="node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
82
82
  <script src="node_modules/web-animations-js/web-animations-next.min.js"></script>
83
- <script src="node_modules/@lottiefiles/lottie-player/dist/lottie-player.js"></script>
84
83
  <!-- Built with love using PWA Starter Kit -->
85
84
 
86
85
  <script src="<%- elementScript %>"></script>