@skyservice-developers/vue-dev-kit 1.5.4 → 1.5.6

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.5.4",
3
+ "version": "1.5.6",
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",
@@ -39,7 +39,6 @@ export interface DialogProps {
39
39
  subtitle?: string
40
40
  zIndex?: number | string
41
41
  closeText?: string
42
- enableAnimation?: boolean
43
42
  closeOnEsc?: boolean
44
43
  mode?: 'next' | 'classic' | null
45
44
  }
@@ -9,6 +9,7 @@
9
9
 
10
10
  ::-webkit-scrollbar-thumb {
11
11
  background: #c1c1c1;
12
+ border-radius: 0;
12
13
  }
13
14
 
14
15
  ::-webkit-scrollbar-thumb:hover {
@@ -6,7 +6,6 @@
6
6
  :subtitle="subtitle"
7
7
  :z-index="zIndex"
8
8
  :close-text="closeText"
9
- :enable-animation="enableAnimation"
10
9
  :close-on-esc="closeOnEsc"
11
10
  :has-buttons="!!$slots.buttons"
12
11
  @close="$emit('close')"
@@ -50,10 +49,6 @@ export default {
50
49
  type: String,
51
50
  default: ''
52
51
  },
53
- enableAnimation: {
54
- type: Boolean,
55
- default: false
56
- },
57
52
  closeOnEsc: {
58
53
  type: Boolean,
59
54
  default: true
@@ -1,14 +1,12 @@
1
1
  <template>
2
- <transition :name="enableAnimation ? 'dialog-slide' : ''">
2
+ <div
3
+ v-if="modelValue"
4
+ class="sky-dialogbox sky-dialogbox-classic"
5
+ :style="[zIndex ? { 'z-index': zIndex } : null]"
6
+ >
3
7
  <div
4
- v-if="modelValue"
5
- class="sky-dialogbox sky-dialogbox-classic"
6
- :style="[zIndex ? { 'z-index': zIndex } : null]"
8
+ class="sky-dialog-overlay"
7
9
  >
8
- <div
9
- class="sky-dialog-overlay"
10
- :class="{ 'sky-dialog-animate': enableAnimation }"
11
- >
12
10
  <div ref="dialogContent" class="sky-dialog-content">
13
11
  <!-- Header -->
14
12
  <div
@@ -61,14 +59,13 @@
61
59
  <div
62
60
  v-if="showFooter"
63
61
  class="sky-dialog-footer"
64
- :class="{ 'sky-dialog-footer-animate': enableAnimation }"
65
62
  >
66
63
  <slot name="buttons"></slot>
67
64
  </div>
68
65
  </div>
69
66
  </div>
70
67
  </div>
71
- </transition>
68
+ </div>
72
69
  </template>
73
70
 
74
71
  <script>
@@ -100,10 +97,6 @@ export default {
100
97
  type: String,
101
98
  default: "Закрити",
102
99
  },
103
- enableAnimation: {
104
- type: Boolean,
105
- default: false,
106
- },
107
100
  closeOnEsc: {
108
101
  type: Boolean,
109
102
  default: true,
@@ -431,46 +424,6 @@ export default {
431
424
  }
432
425
  }
433
426
 
434
- /* Animations */
435
- .sky-dialog-animate {
436
- animation: sky-dialog-slide-in 0.4s ease-in-out;
437
- }
438
-
439
- .sky-dialog-footer-animate {
440
- animation: sky-dialog-footer-in 0.4s ease-in-out;
441
- }
442
-
443
- @keyframes sky-dialog-slide-in {
444
- 0% {
445
- opacity: 0;
446
- margin-top: -1600px;
447
- }
448
- 100% {
449
- opacity: 1;
450
- margin-top: 0;
451
- }
452
- }
453
-
454
- @keyframes sky-dialog-footer-in {
455
- 0% {
456
- opacity: 0;
457
- bottom: -100px;
458
- }
459
- 50% {
460
- opacity: 0.25;
461
- bottom: -50px;
462
- }
463
- 100% {
464
- opacity: 1;
465
- bottom: 15px;
466
- }
467
- }
468
-
469
- /* Transition */
470
- .dialog-slide-leave-active {
471
- animation: sky-dialog-slide-in 0.4s reverse;
472
- }
473
-
474
427
  /* iOS safe area */
475
428
  @supports (padding-top: env(safe-area-inset-top)) {
476
429
  .sky-dialog-title {
@@ -1,11 +1,10 @@
1
1
  <template>
2
- <transition :name="enableAnimation ? 'dialog-slide' : ''">
3
- <div
4
- v-if="modelValue"
5
- class="sky-dialogbox sky-dialogbox-next"
6
- :style="[zIndex ? { 'z-index': zIndex } : null]"
7
- >
8
- <div class="sky-dialog-overlay" :class="{ 'sky-dialog-animate': enableAnimation }">
2
+ <div
3
+ v-if="modelValue"
4
+ class="sky-dialogbox sky-dialogbox-next"
5
+ :style="[zIndex ? { 'z-index': zIndex } : null]"
6
+ >
7
+ <div class="sky-dialog-overlay">
9
8
  <div ref="dialogContent" class="sky-dialog-content">
10
9
  <!-- Header -->
11
10
  <div class="sky-dialog-header">
@@ -34,13 +33,13 @@
34
33
  </div>
35
34
 
36
35
  <!-- Footer -->
37
- <div v-if="showFooter" class="sky-dialog-footer" :class="{ 'sky-dialog-footer-animate': enableAnimation }">
36
+ <div v-if="showFooter" class="sky-dialog-footer">
38
37
  <slot name="buttons"></slot>
39
38
  </div>
40
39
  </div>
41
40
  </div>
42
41
  </div>
43
- </transition>
42
+ </div>
44
43
  </template>
45
44
 
46
45
  <script>
@@ -69,10 +68,6 @@ export default {
69
68
  type: String,
70
69
  default: 'Назад'
71
70
  },
72
- enableAnimation: {
73
- type: Boolean,
74
- default: false
75
- },
76
71
  closeOnEsc: {
77
72
  type: Boolean,
78
73
  default: true
@@ -372,46 +367,6 @@ export default {
372
367
  }
373
368
  }
374
369
 
375
- /* Animations */
376
- .sky-dialog-animate {
377
- animation: sky-dialog-slide-in 0.4s ease-in-out;
378
- }
379
-
380
- .sky-dialog-footer-animate {
381
- animation: sky-dialog-footer-in 0.4s ease-in-out;
382
- }
383
-
384
- @keyframes sky-dialog-slide-in {
385
- 0% {
386
- opacity: 0;
387
- margin-top: -1600px;
388
- }
389
- 100% {
390
- opacity: 1;
391
- margin-top: 0;
392
- }
393
- }
394
-
395
- @keyframes sky-dialog-footer-in {
396
- 0% {
397
- opacity: 0;
398
- bottom: -100px;
399
- }
400
- 50% {
401
- opacity: 0.25;
402
- bottom: -50px;
403
- }
404
- 100% {
405
- opacity: 1;
406
- bottom: 15px;
407
- }
408
- }
409
-
410
- /* Transition */
411
- .dialog-slide-leave-active {
412
- animation: sky-dialog-slide-in 0.4s reverse;
413
- }
414
-
415
370
  /* iOS safe area */
416
371
  @supports (padding-top: env(safe-area-inset-top)) {
417
372
  .sky-dialog-header {
@@ -1,7 +1,6 @@
1
1
  <template>
2
- <base-teleport to="body">
3
- <transition>
4
- <div v-if="isOpen" class="sky-modal-overlay" @click.self="handleOverlayClick">
2
+ <base-teleport to="body">
3
+ <div v-if="isOpen" class="sky-modal-overlay" @click.self="handleOverlayClick">
5
4
  <div class="sky-modal" :style="modalStyle">
6
5
  <div class="sky-modal-header">
7
6
  <button class="sky-modal-back" @click="close" :title="closeTitle">
@@ -24,7 +23,6 @@
24
23
  </div>
25
24
  </div>
26
25
  </div>
27
- </transition>
28
26
  </base-teleport>
29
27
  </template>
30
28
 
@@ -232,30 +230,6 @@ export default {
232
230
  margin-left: 10px;
233
231
  }
234
232
 
235
- /* Animations */
236
- .modal-fade-enter-active,
237
- .modal-fade-leave-active {
238
- transition: opacity 0.3s ease;
239
- }
240
-
241
- .modal-fade-enter-active .sky-modal,
242
- .modal-fade-leave-active .sky-modal {
243
- transition: transform 0.3s ease;
244
- }
245
-
246
- .modal-fade-enter,
247
- .modal-fade-leave-to {
248
- opacity: 0;
249
- }
250
-
251
- .modal-fade-enter .sky-modal {
252
- transform: translateY(-20px);
253
- }
254
-
255
- .modal-fade-leave-to .sky-modal {
256
- transform: translateY(20px);
257
- }
258
-
259
233
  /* Responsive */
260
234
  @media (min-width: 768px) {
261
235
  .sky-modal {
@@ -6,7 +6,6 @@
6
6
  :subtitle="subtitle"
7
7
  :z-index="zIndex"
8
8
  :close-text="closeText"
9
- :enable-animation="enableAnimation"
10
9
  :close-on-esc="closeOnEsc"
11
10
  :has-buttons="!!$slots.buttons"
12
11
  @close="$emit('close')"
@@ -45,10 +44,6 @@ const props = defineProps({
45
44
  type: String,
46
45
  default: ''
47
46
  },
48
- enableAnimation: {
49
- type: Boolean,
50
- default: false
51
- },
52
47
  closeOnEsc: {
53
48
  type: Boolean,
54
49
  default: true
@@ -1,15 +1,13 @@
1
1
  <template>
2
2
  <Teleport to="body">
3
- <transition :name="enableAnimation ? 'dialog-slide' : ''">
3
+ <div
4
+ v-if="modelValue"
5
+ class="sky-dialogbox sky-dialogbox-classic"
6
+ :style="[zIndex ? { 'z-index': zIndex } : null]"
7
+ >
4
8
  <div
5
- v-if="modelValue"
6
- class="sky-dialogbox sky-dialogbox-classic"
7
- :style="[zIndex ? { 'z-index': zIndex } : null]"
9
+ class="sky-dialog-overlay"
8
10
  >
9
- <div
10
- class="sky-dialog-overlay"
11
- :class="{ 'sky-dialog-animate': enableAnimation }"
12
- >
13
11
  <div ref="dialogContent" class="sky-dialog-content">
14
12
  <!-- Header -->
15
13
  <div
@@ -62,7 +60,6 @@
62
60
  <div
63
61
  v-if="showFooter"
64
62
  class="sky-dialog-footer"
65
- :class="{ 'sky-dialog-footer-animate': enableAnimation }"
66
63
  >
67
64
  <!-- Порожні блоки ремонтують відображення на windows в додатку, не видаляти! -->
68
65
  <slot name="buttons"></slot>
@@ -70,7 +67,6 @@
70
67
  </div>
71
68
  </div>
72
69
  </div>
73
- </transition>
74
70
  </Teleport>
75
71
  </template>
76
72
 
@@ -112,10 +108,6 @@ const props = defineProps({
112
108
  type: String,
113
109
  default: "Закрити",
114
110
  },
115
- enableAnimation: {
116
- type: Boolean,
117
- default: false,
118
- },
119
111
  closeOnEsc: {
120
112
  type: Boolean,
121
113
  default: true,
@@ -451,46 +443,6 @@ onUnmounted(() => {
451
443
  }
452
444
  }
453
445
 
454
- /* Animations */
455
- .sky-dialog-animate {
456
- animation: sky-dialog-slide-in 0.4s ease-in-out;
457
- }
458
-
459
- .sky-dialog-footer-animate {
460
- animation: sky-dialog-footer-in 0.4s ease-in-out;
461
- }
462
-
463
- @keyframes sky-dialog-slide-in {
464
- 0% {
465
- opacity: 0;
466
- margin-top: -1600px;
467
- }
468
- 100% {
469
- opacity: 1;
470
- margin-top: 0;
471
- }
472
- }
473
-
474
- @keyframes sky-dialog-footer-in {
475
- 0% {
476
- opacity: 0;
477
- bottom: -100px;
478
- }
479
- 50% {
480
- opacity: 0.25;
481
- bottom: -50px;
482
- }
483
- 100% {
484
- opacity: 1;
485
- bottom: 15px;
486
- }
487
- }
488
-
489
- /* Transition */
490
- .dialog-slide-leave-active {
491
- animation: sky-dialog-slide-in 0.4s reverse;
492
- }
493
-
494
446
  /* iOS safe area */
495
447
  @supports (padding-top: env(safe-area-inset-top)) {
496
448
  .sky-dialog-title {
@@ -1,15 +1,13 @@
1
1
  <template>
2
2
  <Teleport to="body">
3
- <transition :name="enableAnimation ? 'dialog-slide' : ''">
3
+ <div
4
+ v-if="modelValue"
5
+ class="sky-dialogbox sky-dialogbox-next"
6
+ :style="[zIndex ? { 'z-index': zIndex } : null]"
7
+ >
4
8
  <div
5
- v-if="modelValue"
6
- class="sky-dialogbox sky-dialogbox-next"
7
- :style="[zIndex ? { 'z-index': zIndex } : null]"
9
+ class="sky-dialog-overlay"
8
10
  >
9
- <div
10
- class="sky-dialog-overlay"
11
- :class="{ 'sky-dialog-animate': enableAnimation }"
12
- >
13
11
  <div ref="dialogContent" class="sky-dialog-content">
14
12
  <!-- Header -->
15
13
  <div class="sky-dialog-header">
@@ -54,15 +52,13 @@
54
52
  <div
55
53
  v-if="showFooter"
56
54
  class="sky-dialog-footer"
57
- :class="{ 'sky-dialog-footer-animate': enableAnimation }"
58
55
  >
59
56
  <!-- Порожні блоки ремонтують відображення на windows в додатку, не видаляти! -->
60
57
  <slot name="buttons"></slot>
61
58
  </div>
62
59
  </div>
63
- </div>
64
60
  </div>
65
- </transition>
61
+ </div>
66
62
  </Teleport>
67
63
  </template>
68
64
 
@@ -104,10 +100,6 @@ const props = defineProps({
104
100
  type: String,
105
101
  default: "Назад",
106
102
  },
107
- enableAnimation: {
108
- type: Boolean,
109
- default: false,
110
- },
111
103
  closeOnEsc: {
112
104
  type: Boolean,
113
105
  default: true,
@@ -423,46 +415,6 @@ onUnmounted(() => {
423
415
  }
424
416
  }
425
417
 
426
- /* Animations */
427
- .sky-dialog-animate {
428
- animation: sky-dialog-slide-in 0.4s ease-in-out;
429
- }
430
-
431
- .sky-dialog-footer-animate {
432
- animation: sky-dialog-footer-in 0.4s ease-in-out;
433
- }
434
-
435
- @keyframes sky-dialog-slide-in {
436
- 0% {
437
- opacity: 0;
438
- margin-top: -1600px;
439
- }
440
- 100% {
441
- opacity: 1;
442
- margin-top: 0;
443
- }
444
- }
445
-
446
- @keyframes sky-dialog-footer-in {
447
- 0% {
448
- opacity: 0;
449
- bottom: -100px;
450
- }
451
- 50% {
452
- opacity: 0.25;
453
- bottom: -50px;
454
- }
455
- 100% {
456
- opacity: 1;
457
- bottom: 15px;
458
- }
459
- }
460
-
461
- /* Transition */
462
- .dialog-slide-leave-active {
463
- animation: sky-dialog-slide-in 0.4s reverse;
464
- }
465
-
466
418
  /* iOS safe area */
467
419
  @supports (padding-top: env(safe-area-inset-top)) {
468
420
  .sky-dialog-header {
@@ -1,11 +1,10 @@
1
1
  <template>
2
2
  <BaseTeleport to="body">
3
- <transition>
4
- <div
5
- v-if="modelValue"
6
- class="sky-modal-overlay"
7
- @click.self="handleOverlayClick"
8
- >
3
+ <div
4
+ v-if="modelValue"
5
+ class="sky-modal-overlay"
6
+ @click.self="handleOverlayClick"
7
+ >
9
8
  <div class="sky-modal" :style="modalStyle">
10
9
  <div class="sky-modal-header">
11
10
  <button class="sky-modal-back" @click="close" :title="closeTitle">
@@ -41,7 +40,6 @@
41
40
  </div>
42
41
  </div>
43
42
  </div>
44
- </transition>
45
43
  </BaseTeleport>
46
44
  </template>
47
45
 
@@ -233,30 +231,6 @@ onUnmounted(() => {
233
231
  margin-left: 10px;
234
232
  }
235
233
 
236
- /* Animations */
237
- .modal-fade-enter-active,
238
- .modal-fade-leave-active {
239
- transition: opacity 0.3s ease;
240
- }
241
-
242
- .modal-fade-enter-active .sky-modal,
243
- .modal-fade-leave-active .sky-modal {
244
- transition: transform 0.3s ease;
245
- }
246
-
247
- .modal-fade-enter-from,
248
- .modal-fade-leave-to {
249
- opacity: 0;
250
- }
251
-
252
- .modal-fade-enter-from .sky-modal {
253
- transform: translateY(-20px);
254
- }
255
-
256
- .modal-fade-leave-to .sky-modal {
257
- transform: translateY(20px);
258
- }
259
-
260
234
  /* Responsive */
261
235
  @media (min-width: 768px) {
262
236
  .sky-modal {