@operato/shell 1.18.0 → 1.19.1
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/CHANGELOG.md +17 -0
- package/dist/src/app/app.js +5 -1
- package/dist/src/app/app.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/app/app.ts +7 -1
- package/yarn-error.log +17014 -0
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@operato/shell",
|
3
3
|
"description": "WebApplication architecturing shell following open-wc recommendations",
|
4
4
|
"author": "heartyoh",
|
5
|
-
"version": "1.
|
5
|
+
"version": "1.19.1",
|
6
6
|
"main": "dist/src/index.js",
|
7
7
|
"module": "dist/src/index.js",
|
8
8
|
"exports": {
|
@@ -59,9 +59,9 @@
|
|
59
59
|
"@material/mwc-button": "^0.27.0",
|
60
60
|
"@material/mwc-icon": "^0.27.0",
|
61
61
|
"@material/mwc-icon-button": "^0.27.0",
|
62
|
-
"@operato/graphql": "^1.
|
62
|
+
"@operato/graphql": "^1.19.0",
|
63
63
|
"@operato/styles": "^1.18.0",
|
64
|
-
"@operato/utils": "^1.
|
64
|
+
"@operato/utils": "^1.19.0",
|
65
65
|
"lit": "^2.5.0",
|
66
66
|
"lodash-es": "^4.17.21",
|
67
67
|
"pwa-helpers": "^0.9.1",
|
@@ -100,5 +100,5 @@
|
|
100
100
|
"prettier --write"
|
101
101
|
]
|
102
102
|
},
|
103
|
-
"gitHead": "
|
103
|
+
"gitHead": "8680f05515022268f71b8dd335d57626c0f8844e"
|
104
104
|
}
|
package/src/app/app.ts
CHANGED
@@ -114,7 +114,13 @@ export class ThingsApp extends connect(store)(LitElement) {
|
|
114
114
|
var { contextPath } = getPathInfo(pathname)
|
115
115
|
|
116
116
|
/* 페이지를 나가기 전에 옮기지 않도록 개입할 기회를 준다 */
|
117
|
-
if (
|
117
|
+
if (
|
118
|
+
lastPathName &&
|
119
|
+
lastPathName != pathname &&
|
120
|
+
this.activePage &&
|
121
|
+
this.activePage.canDeactivate &&
|
122
|
+
!(await this.activePage.canDeactivate())
|
123
|
+
) {
|
118
124
|
history.back()
|
119
125
|
return
|
120
126
|
}
|