@skyservice-developers/vue-dev-kit 1.3.5 → 1.3.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.
- package/dist/vue2/style.css +1 -1
- package/dist/vue2/vue-dev-kit.cjs +1 -1
- package/dist/vue2/vue-dev-kit.js +355 -298
- package/dist/vue3/style.css +1 -1
- package/dist/vue3/vue-dev-kit.cjs +1 -1
- package/dist/vue3/vue-dev-kit.js +309 -307
- package/package.json +1 -1
- package/src/vue2/components/DialogModal.vue +0 -4
- package/src/vue2/components/DialogNext.vue +0 -4
- package/src/vue2/components/Header.vue +25 -2
- package/src/vue2/components/Modal.vue +0 -4
- package/src/vue3/components/DialogModal.vue +0 -4
- package/src/vue3/components/DialogNext.vue +0 -4
- package/src/vue3/components/Header.vue +9 -4
- package/src/vue3/components/Modal.vue +0 -4
package/package.json
CHANGED
|
@@ -249,10 +249,6 @@ export default {
|
|
|
249
249
|
height: 100%;
|
|
250
250
|
border-radius: var(--sky-dialog-radius, 5px);
|
|
251
251
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.24);
|
|
252
|
-
padding-top: env(safe-area-inset-top, 0px);
|
|
253
|
-
padding-bottom: env(safe-area-inset-bottom, 0px);
|
|
254
|
-
padding-left: env(safe-area-inset-left, 0px);
|
|
255
|
-
padding-right: env(safe-area-inset-right, 0px);
|
|
256
252
|
}
|
|
257
253
|
|
|
258
254
|
.sky-dialog-title {
|
|
@@ -217,10 +217,6 @@ export default {
|
|
|
217
217
|
width: 100%;
|
|
218
218
|
height: 100%;
|
|
219
219
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.24);
|
|
220
|
-
padding-top: env(safe-area-inset-top, 0px);
|
|
221
|
-
padding-bottom: env(safe-area-inset-bottom, 0px);
|
|
222
|
-
padding-left: env(safe-area-inset-left, 0px);
|
|
223
|
-
padding-right: env(safe-area-inset-right, 0px);
|
|
224
220
|
}
|
|
225
221
|
|
|
226
222
|
.sky-dialog-header {
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
|
|
72
72
|
<script>
|
|
73
73
|
import { isInIframe } from '../../shared/utils/webviewCheck'
|
|
74
|
+
import { getParentLocalStorage, sendToParent, setSenderId, getSenderId } from '../../shared/utils/parentBridge'
|
|
74
75
|
|
|
75
76
|
export default {
|
|
76
77
|
name: 'Header',
|
|
@@ -106,11 +107,16 @@ export default {
|
|
|
106
107
|
visitLabel: {
|
|
107
108
|
type: String,
|
|
108
109
|
default: 'Останнє відвідування'
|
|
110
|
+
},
|
|
111
|
+
appId: {
|
|
112
|
+
type: String,
|
|
113
|
+
default: ''
|
|
109
114
|
}
|
|
110
115
|
},
|
|
111
116
|
data() {
|
|
112
117
|
return {
|
|
113
|
-
isDropdownOpen: false
|
|
118
|
+
isDropdownOpen: false,
|
|
119
|
+
previousRocketMode: null
|
|
114
120
|
}
|
|
115
121
|
},
|
|
116
122
|
computed: {
|
|
@@ -121,17 +127,34 @@ export default {
|
|
|
121
127
|
return this.backEvent || (this.showBackButton && isInIframe())
|
|
122
128
|
}
|
|
123
129
|
},
|
|
130
|
+
created() {
|
|
131
|
+
setSenderId(this.appId || getSenderId())
|
|
132
|
+
if (isInIframe()) {
|
|
133
|
+
getParentLocalStorage('rocketMode').then((value) => {
|
|
134
|
+
this.previousRocketMode = value
|
|
135
|
+
sendToParent({ type: 'setRocketMode', value: true })
|
|
136
|
+
})
|
|
137
|
+
}
|
|
138
|
+
},
|
|
124
139
|
mounted() {
|
|
125
140
|
document.addEventListener('click', this.handleClickOutside, true)
|
|
126
141
|
},
|
|
127
142
|
beforeDestroy() {
|
|
128
143
|
document.removeEventListener('click', this.handleClickOutside, true)
|
|
144
|
+
this.restoreRocketMode()
|
|
129
145
|
},
|
|
130
146
|
methods: {
|
|
147
|
+
restoreRocketMode() {
|
|
148
|
+
if (isInIframe() && this.previousRocketMode !== null) {
|
|
149
|
+
const restore = this.previousRocketMode === 'true'
|
|
150
|
+
sendToParent({ type: 'setRocketMode', value: restore })
|
|
151
|
+
}
|
|
152
|
+
},
|
|
131
153
|
handleBack() {
|
|
132
154
|
if (this.backEvent) return this.backEvent()
|
|
133
155
|
|
|
134
|
-
|
|
156
|
+
this.restoreRocketMode()
|
|
157
|
+
sendToParent({ type: 'exit' })
|
|
135
158
|
},
|
|
136
159
|
toggleDropdown() {
|
|
137
160
|
if (this.sortedItems.length) {
|
|
@@ -151,10 +151,6 @@ export default {
|
|
|
151
151
|
flex-direction: column;
|
|
152
152
|
max-width: 100%;
|
|
153
153
|
max-height: 100%;
|
|
154
|
-
padding-top: env(safe-area-inset-top, 0px);
|
|
155
|
-
padding-bottom: env(safe-area-inset-bottom, 0px);
|
|
156
|
-
padding-left: env(safe-area-inset-left, 0px);
|
|
157
|
-
padding-right: env(safe-area-inset-right, 0px);
|
|
158
154
|
}
|
|
159
155
|
|
|
160
156
|
.sky-modal-header {
|
|
@@ -271,10 +271,6 @@ onUnmounted(() => {
|
|
|
271
271
|
height: 100%;
|
|
272
272
|
border-radius: var(--sky-dialog-radius, 5px);
|
|
273
273
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.24);
|
|
274
|
-
padding-top: env(safe-area-inset-top, 0px);
|
|
275
|
-
padding-bottom: env(safe-area-inset-bottom, 0px);
|
|
276
|
-
padding-left: env(safe-area-inset-left, 0px);
|
|
277
|
-
padding-right: env(safe-area-inset-right, 0px);
|
|
278
274
|
}
|
|
279
275
|
|
|
280
276
|
.sky-dialog-title {
|
|
@@ -262,10 +262,6 @@ onUnmounted(() => {
|
|
|
262
262
|
width: 100%;
|
|
263
263
|
height: 100%;
|
|
264
264
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.24);
|
|
265
|
-
padding-top: env(safe-area-inset-top, 0px);
|
|
266
|
-
padding-bottom: env(safe-area-inset-bottom, 0px);
|
|
267
|
-
padding-left: env(safe-area-inset-left, 0px);
|
|
268
|
-
padding-right: env(safe-area-inset-right, 0px);
|
|
269
265
|
}
|
|
270
266
|
|
|
271
267
|
.sky-dialog-header {
|
|
@@ -160,10 +160,7 @@ if (isInIframe()) {
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
onUnmounted(() => {
|
|
163
|
-
|
|
164
|
-
const restore = previousRocketMode.value === 'true'
|
|
165
|
-
sendToParent({ type: 'setRocketMode', value: restore })
|
|
166
|
-
}
|
|
163
|
+
restoreRocketMode()
|
|
167
164
|
})
|
|
168
165
|
|
|
169
166
|
// Load translations from parent
|
|
@@ -261,9 +258,17 @@ const shouldShowBackButton = computed(() => {
|
|
|
261
258
|
return props.backEvent || (props.showBackButton && isInIframe());
|
|
262
259
|
});
|
|
263
260
|
|
|
261
|
+
const restoreRocketMode = () => {
|
|
262
|
+
if (previousRocketMode.value !== null) {
|
|
263
|
+
const restore = previousRocketMode.value === 'true'
|
|
264
|
+
sendToParent({ type: 'setRocketMode', value: restore })
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
264
268
|
const handleBack = () => {
|
|
265
269
|
if (props.backEvent) return props.backEvent()
|
|
266
270
|
|
|
271
|
+
restoreRocketMode()
|
|
267
272
|
sendToParent({ type: 'exit' })
|
|
268
273
|
}
|
|
269
274
|
</script>
|
|
@@ -152,10 +152,6 @@ onUnmounted(() => {
|
|
|
152
152
|
flex-direction: column;
|
|
153
153
|
max-width: 100%;
|
|
154
154
|
max-height: 100%;
|
|
155
|
-
padding-top: env(safe-area-inset-top, 0px);
|
|
156
|
-
padding-bottom: env(safe-area-inset-bottom, 0px);
|
|
157
|
-
padding-left: env(safe-area-inset-left, 0px);
|
|
158
|
-
padding-right: env(safe-area-inset-right, 0px);
|
|
159
155
|
}
|
|
160
156
|
|
|
161
157
|
.sky-modal-header {
|