@skyservice-developers/vue-dev-kit 1.3.2 → 1.3.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": "@skyservice-developers/vue-dev-kit",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "Vue 2 and Vue 3 developer toolkit - components and helpers",
5
5
  "type": "module",
6
6
  "main": "./dist/vue3/vue-dev-kit.cjs",
@@ -320,7 +320,10 @@ export default {
320
320
  justify-content: center;
321
321
  width: 100%;
322
322
  transform: translateY(-52px);
323
- gap: 10px;
323
+ }
324
+
325
+ .sky-dialog-footer > * + * {
326
+ margin-left: 10px;
324
327
  }
325
328
 
326
329
  /* Кнопки в футері: 1 = 100%, 2 = по 50% */
@@ -299,7 +299,10 @@ export default {
299
299
  justify-content: center;
300
300
  width: 100%;
301
301
  transform: translateY(-52px);
302
- gap: 10px;
302
+ }
303
+
304
+ .sky-dialog-footer > * + * {
305
+ margin-left: 10px;
303
306
  }
304
307
 
305
308
  /* Кнопки в футері: 1 = 100%, 2 = по 50% */
@@ -197,7 +197,10 @@ export default {
197
197
  .header-left {
198
198
  display: flex;
199
199
  align-items: center;
200
- gap: 12px;
200
+ }
201
+
202
+ .header-left > * + * {
203
+ margin-left: 12px;
201
204
  }
202
205
 
203
206
  .titleAndDesc {
@@ -225,10 +225,13 @@ export default {
225
225
  border-top: 1px solid var(--sky-modal-border-color, #dee2e6);
226
226
  display: flex;
227
227
  justify-content: flex-end;
228
- gap: 10px;
229
228
  flex-shrink: 0;
230
229
  }
231
230
 
231
+ .sky-modal-footer > * + * {
232
+ margin-left: 10px;
233
+ }
234
+
232
235
  /* Animations */
233
236
  .modal-fade-enter-active,
234
237
  .modal-fade-leave-active {
@@ -342,7 +342,10 @@ onUnmounted(() => {
342
342
  justify-content: center;
343
343
  width: 100%;
344
344
  transform: translateY(-52px);
345
- gap: 10px;
345
+ }
346
+
347
+ .sky-dialog-footer > * + * {
348
+ margin-left: 10px;
346
349
  }
347
350
 
348
351
  /* Кнопки в футері: 1 = 100%, 2 = по 50% */
@@ -344,7 +344,10 @@ onUnmounted(() => {
344
344
  justify-content: center;
345
345
  width: 100%;
346
346
  transform: translateY(-52px);
347
- gap: 10px;
347
+ }
348
+
349
+ .sky-dialog-footer > * + * {
350
+ margin-left: 10px;
348
351
  }
349
352
 
350
353
  /* Кнопки в футері: 1 = 100%, 2 = по 50% */
@@ -149,11 +149,23 @@ if (isInIframe() && props.trackPageName) {
149
149
  })
150
150
  }
151
151
 
152
- // Set rocketMode in parent
152
+ // Set rocketMode in parent, remember previous value to restore on unmount
153
+ const previousRocketMode = ref(null)
154
+
153
155
  if (isInIframe()) {
154
- sendToParent({ type: 'setRocketMode', value: true })
156
+ getParentLocalStorage('rocketMode').then((value) => {
157
+ previousRocketMode.value = value
158
+ sendToParent({ type: 'setRocketMode', value: true })
159
+ })
155
160
  }
156
161
 
162
+ onUnmounted(() => {
163
+ if (isInIframe() && previousRocketMode.value !== null) {
164
+ const restore = previousRocketMode.value === 'true'
165
+ sendToParent({ type: 'setRocketMode', value: restore })
166
+ }
167
+ })
168
+
157
169
  // Load translations from parent
158
170
  if (isInIframe()) {
159
171
  getParentWindowValue('lang').then((data) => {
@@ -281,7 +293,10 @@ const handleBack = () => {
281
293
  .header-left {
282
294
  display: flex;
283
295
  align-items: center;
284
- gap: 12px;
296
+ }
297
+
298
+ .header-left > * + * {
299
+ margin-left: 12px;
285
300
  }
286
301
 
287
302
  .titleAndDesc {
@@ -226,10 +226,13 @@ onUnmounted(() => {
226
226
  border-top: 1px solid var(--sky-modal-border-color, #dee2e6);
227
227
  display: flex;
228
228
  justify-content: flex-end;
229
- gap: 10px;
230
229
  flex-shrink: 0;
231
230
  }
232
231
 
232
+ .sky-modal-footer > * + * {
233
+ margin-left: 10px;
234
+ }
235
+
233
236
  /* Animations */
234
237
  .modal-fade-enter-active,
235
238
  .modal-fade-leave-active {