@vaadin/login 25.0.2 → 25.0.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/login",
3
- "version": "25.0.2",
3
+ "version": "25.0.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,26 +34,27 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@open-wc/dedupe-mixin": "^1.3.0",
37
- "@vaadin/button": "~25.0.2",
38
- "@vaadin/component-base": "~25.0.2",
39
- "@vaadin/overlay": "~25.0.2",
40
- "@vaadin/password-field": "~25.0.2",
41
- "@vaadin/text-field": "~25.0.2",
42
- "@vaadin/vaadin-themable-mixin": "~25.0.2",
37
+ "@vaadin/button": "~25.0.4",
38
+ "@vaadin/component-base": "~25.0.4",
39
+ "@vaadin/overlay": "~25.0.4",
40
+ "@vaadin/password-field": "~25.0.4",
41
+ "@vaadin/text-field": "~25.0.4",
42
+ "@vaadin/vaadin-themable-mixin": "~25.0.4",
43
43
  "lit": "^3.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@vaadin/a11y-base": "~25.0.2",
47
- "@vaadin/chai-plugins": "~25.0.2",
48
- "@vaadin/checkbox": "~25.0.2",
49
- "@vaadin/test-runner-commands": "~25.0.2",
46
+ "@vaadin/a11y-base": "~25.0.4",
47
+ "@vaadin/aura": "~25.0.4",
48
+ "@vaadin/chai-plugins": "~25.0.4",
49
+ "@vaadin/checkbox": "~25.0.4",
50
+ "@vaadin/test-runner-commands": "~25.0.4",
50
51
  "@vaadin/testing-helpers": "^2.0.0",
51
- "@vaadin/vaadin-lumo-styles": "~25.0.2",
52
+ "@vaadin/vaadin-lumo-styles": "~25.0.4",
52
53
  "sinon": "^21.0.0"
53
54
  },
54
55
  "web-types": [
55
56
  "web-types.json",
56
57
  "web-types.lit.json"
57
58
  ],
58
- "gitHead": "d17c1f8b7c6f3f991cafd9dbdbe5759caa57afcd"
59
+ "gitHead": "17170982c3efa1d426af4fabb70ea36b70151347"
59
60
  }
@@ -41,6 +41,16 @@ export const LoginOverlayMixin = (superClass) =>
41
41
  type: String,
42
42
  value: 'App name',
43
43
  },
44
+
45
+ /** @private */
46
+ __effectiveTitle: {
47
+ type: String,
48
+ },
49
+
50
+ /** @private */
51
+ __effectiveDescription: {
52
+ type: String,
53
+ },
44
54
  };
45
55
  }
46
56
 
@@ -62,9 +72,10 @@ export const LoginOverlayMixin = (superClass) =>
62
72
  willUpdate(props) {
63
73
  super.willUpdate(props);
64
74
 
65
- if (props.has('__effectiveI18n') && this.__effectiveI18n.header) {
66
- this.title = this.__effectiveI18n.header.title;
67
- this.description = this.__effectiveI18n.header.description;
75
+ if (props.has('__effectiveI18n') || props.has('title') || props.has('description')) {
76
+ const header = this.__effectiveI18n && this.__effectiveI18n.header;
77
+ this.__effectiveTitle = header && header.title != null ? header.title : this.title;
78
+ this.__effectiveDescription = header && header.description != null ? header.description : this.description;
68
79
  }
69
80
  }
70
81
 
@@ -72,8 +83,8 @@ export const LoginOverlayMixin = (superClass) =>
72
83
  updated(props) {
73
84
  super.updated(props);
74
85
 
75
- if (props.has('title') || props.has('__effectiveI18n')) {
76
- this.__titleController.setTitle(this.title);
86
+ if (props.has('__effectiveTitle')) {
87
+ this.__titleController.setTitle(this.__effectiveTitle);
77
88
  }
78
89
 
79
90
  if (props.has('headingLevel')) {
@@ -113,7 +113,7 @@ class LoginOverlay extends LoginFormMixin(LoginOverlayMixin(ElementMixin(Themabl
113
113
  id="overlay"
114
114
  .owner="${this}"
115
115
  .opened="${this.opened}"
116
- .description="${this.description}"
116
+ .description="${this.__effectiveDescription}"
117
117
  focus-trap
118
118
  with-backdrop
119
119
  theme="${ifDefined(this._theme)}"
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/login",
4
- "version": "25.0.2",
4
+ "version": "25.0.4",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/login",
4
- "version": "25.0.2",
4
+ "version": "25.0.4",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {