@nixweb/nixloc-ui 0.0.302 → 0.0.304

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": "@nixweb/nixloc-ui",
3
- "version": "0.0.302",
3
+ "version": "0.0.304",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -53,7 +53,6 @@ export default {
53
53
  let obj = { fieldTarget: this.fieldTarget, value: this.valueLocal ? "true" : "false" };
54
54
  this.addFilter(obj);
55
55
  }
56
-
57
56
  },
58
57
  },
59
58
  };
@@ -31,6 +31,7 @@ export default {
31
31
  "triggerEvent",
32
32
  "min",
33
33
  "max",
34
+ "params",
34
35
  "changed"
35
36
  ],
36
37
  data() {
@@ -57,9 +58,9 @@ export default {
57
58
  this.executeFilter();
58
59
  }
59
60
  },
60
- enter(){
61
+ enter() {
61
62
  this.showEdit = false;
62
- if (this.changed) this.changed();
63
+ if (this.changed) this.changed(this.params);
63
64
  },
64
65
  executeFilter() {
65
66
  if (this.fieldTarget) {
@@ -67,7 +68,7 @@ export default {
67
68
  this.addFilter(obj);
68
69
  }
69
70
 
70
- if (this.changed) this.changed();
71
+ if (this.changed) this.changed(this.params);
71
72
  },
72
73
  },
73
74
  watch: {
@@ -90,6 +91,8 @@ export default {
90
91
  name: "updateIncrementDecrement",
91
92
  data: { name: this.name, value: this.number },
92
93
  });
94
+
95
+ // if (this.changed) this.changed(this.params);
93
96
  },
94
97
  deep: true,
95
98
  },
@@ -4,7 +4,7 @@
4
4
  @hidden="hideSideBar" backdrop shadow>
5
5
  <div class="margin-side-bar">
6
6
  <div>
7
- <Messages />
7
+ <!-- <Messages /> -->
8
8
  <b-row>
9
9
  <b-col sm="6">
10
10
  <div class="title-side-bar">{{ title }}</div>
@@ -51,8 +51,8 @@ export default {
51
51
  }
52
52
 
53
53
  .alert-success {
54
- background-color: #f6ffed !important;
55
- border: 1px solid #b7eb8f !important;
54
+ background-color: #f6ffed;
55
+ border: 1px solid #b7eb8f;
56
56
  }
57
57
 
58
58
  .alert-warning {
@@ -0,0 +1,68 @@
1
+ <template>
2
+ <div>
3
+ <transition name="slide-up" mode="out-in">
4
+ <div v-if="currentPhrase" :key="currentPhrase" class="phrase">
5
+ {{ currentPhrase }}
6
+ </div>
7
+ </transition>
8
+ </div>
9
+ </template>
10
+
11
+ <script>
12
+ export default {
13
+ name: "AnimatedPhrase",
14
+ props: {
15
+ phrases: {
16
+ type: Array,
17
+ required: true
18
+ },
19
+ interval: {
20
+ type: Number,
21
+ default: 3000
22
+ }
23
+ },
24
+ data() {
25
+ return {
26
+ currentPhrase: null,
27
+ timer: null
28
+ }
29
+ },
30
+ mounted() {
31
+ this.showRandomPhrase()
32
+ this.timer = setInterval(this.showRandomPhrase, this.interval)
33
+ },
34
+ beforeDestroy() {
35
+ clearInterval(this.timer)
36
+ },
37
+ methods: {
38
+ showRandomPhrase() {
39
+ const index = Math.floor(Math.random() * this.phrases.length)
40
+ this.currentPhrase = this.phrases[index]
41
+ }
42
+ }
43
+ }
44
+ </script>
45
+
46
+ <style scoped>
47
+ .phrase {
48
+ font-size: 15px;
49
+ margin-top: 20px;
50
+ opacity: 1;
51
+ transition: all 0.5s ease-in-out;
52
+ }
53
+
54
+ .slide-up-enter-active,
55
+ .slide-up-leave-active {
56
+ transition: all 0.5s ease;
57
+ }
58
+
59
+ .slide-up-enter,
60
+ .slide-up-leave-to {
61
+ opacity: 0;
62
+ transform: translateY(20px);
63
+ }
64
+
65
+ .slide-up-leave-active {
66
+ transform: translateY(-20px);
67
+ }
68
+ </style>
@@ -73,10 +73,13 @@ export default {
73
73
  watch: {
74
74
  event: {
75
75
  handler(event) {
76
- if (event.name == "updateCalendar")
76
+
77
+ if (event.name == "updateCalendar") {
77
78
  event.data.forEach(item => {
78
79
  this.calendarOptions.events.push(item);
79
80
  });
81
+ }
82
+
80
83
 
81
84
  if (event.name == "cleanCalendar")
82
85
  this.calendarOptions.events = [];
@@ -170,5 +173,4 @@ export default {
170
173
  .fc-button-primary:hover {
171
174
  background: #3e90b3 !important;
172
175
  }
173
-
174
176
  </style>
@@ -43,6 +43,9 @@ export default {
43
43
  removeItemMenu: (state) => {
44
44
  state.menu.items = [];
45
45
  },
46
+ updateStatusGoogle: (state, status) => {
47
+ state.userLogged.user.isConnectedGoogle = status;
48
+ },
46
49
  updateParameterRental: (state, parameterRental) => {
47
50
  state.userLogged.parameterRental = parameterRental;
48
51
  },