@etsoo/materialui 1.0.1 → 1.0.2

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.
@@ -121,7 +121,7 @@ export class ReactApp extends CoreApp {
121
121
  * @param culture New culture definition
122
122
  */
123
123
  changeCulture(culture) {
124
- var _a, _b;
124
+ var _a, _b, _c;
125
125
  // Super call to update cultrue
126
126
  super.changeCulture(culture);
127
127
  // Update component labels
@@ -140,7 +140,9 @@ export class ReactApp extends CoreApp {
140
140
  // Notify host
141
141
  (_a = BridgeUtils.host) === null || _a === void 0 ? void 0 : _a.changeCulture(culture.name);
142
142
  // Document title
143
- document.title = (_b = this.get(this.name)) !== null && _b !== void 0 ? _b : this.name;
143
+ // Default is servier name's label or appName label
144
+ document.title =
145
+ (_c = (_b = this.get(this.name)) !== null && _b !== void 0 ? _b : this.get('appName')) !== null && _c !== void 0 ? _c : this.name;
144
146
  }
145
147
  /**
146
148
  * Change culture extended
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -53,10 +53,10 @@
53
53
  "@emotion/styled": "^11.10.0",
54
54
  "@etsoo/appscript": "^1.2.88",
55
55
  "@etsoo/notificationbase": "^1.1.7",
56
- "@etsoo/react": "^1.5.81",
56
+ "@etsoo/react": "^1.5.85",
57
57
  "@etsoo/shared": "^1.1.51",
58
- "@mui/icons-material": "^5.10.2",
59
- "@mui/material": "^5.10.2",
58
+ "@mui/icons-material": "^5.10.3",
59
+ "@mui/material": "^5.10.3",
60
60
  "@types/pica": "^9.0.1",
61
61
  "@types/pulltorefreshjs": "^0.1.5",
62
62
  "@types/react": "^18.0.17",
@@ -82,9 +82,9 @@
82
82
  "@babel/runtime-corejs3": "^7.18.9",
83
83
  "@testing-library/jest-dom": "^5.16.5",
84
84
  "@testing-library/react": "^13.3.0",
85
- "@types/jest": "^28.1.8",
86
- "@typescript-eslint/eslint-plugin": "^5.35.1",
87
- "@typescript-eslint/parser": "^5.35.1",
85
+ "@types/jest": "^29.0.0",
86
+ "@typescript-eslint/eslint-plugin": "^5.36.0",
87
+ "@typescript-eslint/parser": "^5.36.0",
88
88
  "eslint": "^8.23.0",
89
89
  "eslint-config-airbnb-base": "^15.0.0",
90
90
  "eslint-plugin-import": "^2.26.0",
@@ -309,7 +309,9 @@ export class ReactApp<
309
309
  BridgeUtils.host?.changeCulture(culture.name);
310
310
 
311
311
  // Document title
312
- document.title = this.get(this.name) ?? this.name;
312
+ // Default is servier name's label or appName label
313
+ document.title =
314
+ this.get(this.name) ?? this.get('appName') ?? this.name;
313
315
  }
314
316
 
315
317
  /**