@bildvitta/quasar-ui-asteroid 3.14.0-beta.3 → 3.14.0-beta.5

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@bildvitta/quasar-ui-asteroid",
3
3
  "description": "Asteroid",
4
- "version": "3.14.0-beta.3",
4
+ "version": "3.14.0-beta.5",
5
5
  "author": "Bild & Vitta <systemteam@bild.com.br>",
6
6
  "license": "MIT",
7
7
  "main": "dist/asteroid.cjs.min.js",
@@ -447,14 +447,11 @@ function onNavigation (date) {
447
447
  &__event {
448
448
  @include set-typography($caption);
449
449
 
450
- bottom: -6px;
451
450
  color: $primary;
452
451
  font-size: 10px !important;
453
- height: 20px;
454
- left: 50%;
455
- position: absolute;
456
- transform: translateX(-50%);
457
452
  width: 100%;
453
+ line-height: 1;
454
+ transition: color var(--qas-generic-transition);
458
455
 
459
456
  &--pointer {
460
457
  bottom: -6px;
@@ -472,6 +469,10 @@ function onNavigation (date) {
472
469
  width: 6px;
473
470
  }
474
471
 
472
+ .q-date__calendar-item {
473
+ vertical-align: initial;
474
+ }
475
+
475
476
  &--inative {
476
477
  .q-date {
477
478
  &__calendar-item--out,
@@ -493,31 +494,19 @@ function onNavigation (date) {
493
494
  }
494
495
  }
495
496
 
496
- &__calendar-item-event {
497
- .q-btn {
498
- &.bg-primary span {
499
- padding-bottom: 4px;
500
- }
497
+ .q-date {
498
+ &__navigation {
499
+ justify-content: space-between;
501
500
 
502
- &.bg-primary .qas-date__event {
503
- bottom: -2px;
501
+ > div:last-child,
502
+ > div:first-child {
503
+ min-width: auto;
504
+ width: auto;
504
505
  }
505
506
 
506
- &.bg-primary .qas-date__event--pointer {
507
- bottom: -2px;
507
+ > div:first-child {
508
+ min-width: 120px;
508
509
  }
509
- }
510
- }
511
-
512
- .q-date__navigation > div:last-child,
513
- .q-date__navigation > div:first-child {
514
- min-width: auto;
515
- width: auto;
516
- }
517
-
518
- .q-date {
519
- &__navigation {
520
- justify-content: space-between;
521
510
 
522
511
  .q-btn {
523
512
  @include set-button(tertiary, false, false, grey-10);
@@ -566,14 +555,15 @@ function onNavigation (date) {
566
555
  min-height: auto;
567
556
 
568
557
  .q-btn {
569
- border: 0;
558
+ @include set-typography($subtitle2);
559
+
560
+ border: 1px solid transparent;
570
561
  border-radius: $generic-border-radius;
571
562
  box-shadow: none;
572
- height: 36px !important;
573
- min-height: 30px;
574
- min-width: 30px;
563
+ height: auto !important;
564
+ line-height: 1;
565
+ width: 26px !important;
575
566
  transition: color var(--qas-generic-transition);
576
- width: 30px !important;
577
567
 
578
568
  .q-ripple,
579
569
  .q-focus-helper {
@@ -592,12 +582,17 @@ function onNavigation (date) {
592
582
  color: var(--q-primary-contrast);
593
583
  }
594
584
 
595
- @include set-typography($subtitle2);
596
- }
597
- }
585
+ &.bg-primary,
586
+ &.q-date__today {
587
+ border-color: $primary;
588
+ border-radius: $generic-border-radius;
589
+ font-weight: 700;
590
+ }
598
591
 
599
- &__today {
600
- color: $primary;
592
+ &.q-date__today {
593
+ color: $primary;
594
+ }
595
+ }
601
596
  }
602
597
  }
603
598
  }
@@ -68,12 +68,6 @@ const { isNotificationsEnabled, setUnreadNotificationsCount } = useNotifications
68
68
  const menuDrawer = ref(false)
69
69
  const notificationsDrawer = ref(false)
70
70
 
71
- /**
72
- * Como está sendo utilizado em um watcher com a propriedade 'immediate: true',
73
- * é necessário criar a variável antes de atribuí-la ao watcher, para assim conseguir pará-lo.
74
- */
75
- let unreadNotificationsCountWatcher = () => {}
76
-
77
71
  // computed
78
72
  const defaultAppMenuProps = computed(() => {
79
73
  return {
@@ -84,19 +78,7 @@ const defaultAppMenuProps = computed(() => {
84
78
 
85
79
  const showMenuDrawer = computed(() => !screen.untilLarge || menuDrawer.value)
86
80
 
87
- /**
88
- * A propriedade "initialUnreadNotificationsCount" é escutada apenas uma vez,
89
- * quando ela é iniciada, seta o "unreadNotificationsCount" do composable,
90
- * após isto quem controla é o QasLayout.
91
- */
92
- unreadNotificationsCountWatcher = watch(() => props.initialUnreadNotificationsCount, value => {
93
- if (value) {
94
- setUnreadNotificationsCount(value)
95
-
96
- // finaliza o watcher
97
- unreadNotificationsCountWatcher()
98
- }
99
- }, { immediate: true })
81
+ watch(() => props.initialUnreadNotificationsCount, setUnreadNotificationsCount, { immediate: true })
100
82
 
101
83
  // functions
102
84
  function signOut () {
@@ -10,8 +10,8 @@ defineOptions({ name: 'QasWhatsappLink' })
10
10
 
11
11
  const props = defineProps({
12
12
  callingCode: {
13
- type: String,
14
- default: '55'
13
+ type: [Number, String],
14
+ default: 55
15
15
  },
16
16
 
17
17
  phone: {
@@ -7,7 +7,7 @@ props:
7
7
  calling-code:
8
8
  desc: Propriedade para passar o DDI.
9
9
  default: 55
10
- type: String
10
+ type: [Number, String]
11
11
 
12
12
  phone:
13
13
  desc: Propriedade para passar o telefone.