@nixweb/nixloc-ui 0.0.190 → 0.0.192

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.190",
3
+ "version": "0.0.192",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -2,27 +2,17 @@
2
2
  <div>
3
3
  <b-row v-show="loadingAdd || loadingRemove">
4
4
  <b-col sm="2">
5
- <vue-loading
6
- v-if="true"
7
- type="bubbles"
8
- color="#D98621"
9
- :size="{ width: '50px', height: '50px' }"
10
- ></vue-loading>
5
+ <vue-loading v-if="true" type="bubbles" color="#D98621" :size="{ width: '50px', height: '50px' }"></vue-loading>
11
6
  </b-col>
12
7
  </b-row>
13
8
  <b-row v-show="!loadingAdd && !loadingRemove">
14
9
  <b-col sm="12">
15
10
  <div class="div-preview">
16
- <img
17
- :class="classCss"
18
- :style="'width:' + width + 'px;height:' + height + 'px'"
19
- :src="
20
- 'https://espaco.blob.core.windows.net/' +
21
- container +
22
- '/' +
23
- urlImage
24
- "
25
- />
11
+ <img :class="classCss" :style="'width:' + width + 'px;height:' + height + 'px'" :src="'https://espaco.blob.core.windows.net/' +
12
+ container +
13
+ '/' +
14
+ urlImage
15
+ " />
26
16
  </div>
27
17
  <div>
28
18
  <div v-if="!value">
@@ -36,36 +26,18 @@
36
26
  </div>
37
27
  <div v-else>
38
28
  <div class="div-button">
39
- <button
40
- class="button small danger"
41
- v-if="!loadingAdd"
42
- @click="remove()"
43
- >
44
- <span v-if="!loadingRemove"
45
- ><i class="fas fa-camera"></i> Remover Foto</span
46
- >
47
- <vue-loading
48
- v-if="loadingRemove"
49
- type="bubbles"
50
- color="#fff"
51
- :size="{ width: '20px', height: '20px' }"
52
- ></vue-loading>
29
+ <button class="button small danger" v-if="!loadingAdd" @click="remove()">
30
+ <span v-if="!loadingRemove"><i class="fas fa-camera"></i> Remover Foto</span>
31
+ <vue-loading v-if="loadingRemove" type="bubbles" color="#fff"
32
+ :size="{ width: '20px', height: '20px' }"></vue-loading>
53
33
  </button>
54
34
  </div>
55
35
  </div>
56
36
  </div>
57
37
  </b-col>
58
38
  </b-row>
59
- <my-upload
60
- field="img"
61
- @crop-success="cropSuccess"
62
- langType="pt-br"
63
- v-model="show"
64
- :width="width"
65
- :height="height"
66
- :noCircle="true"
67
- img-format="png"
68
- >
39
+ <my-upload field="img" @crop-success="cropSuccess" langType="pt-br" v-model="show" :width="width" :height="height"
40
+ :noCircle="true" img-format="png">
69
41
  </my-upload>
70
42
  </div>
71
43
  </template>
@@ -234,7 +206,6 @@ export default {
234
206
 
235
207
  .img-round {
236
208
  border-radius: 100px;
237
- margin-left: 15px;
238
209
  }
239
210
 
240
211
  .div-button {
@@ -8,18 +8,11 @@
8
8
  <Tip :field="field" :formName="formName" />
9
9
  </label>
10
10
  <div class="inner-addon right-addon">
11
- <div
12
- class="required glyphicon"
13
- v-if="notifications.length > 0 && formDirty"
14
- >
11
+ <div class="required glyphicon" v-if="notifications.length > 0 && formDirty">
15
12
  <i class="fas fa-exclamation-triangle"></i>
16
13
  </div>
17
14
  <slot v-else></slot>
18
- <gmap-autocomplete
19
- @place_changed="setPlace"
20
- class="form-control"
21
- v-bind:value="value"
22
- >
15
+ <gmap-autocomplete @place_changed="setPlace" class="form-control teste" v-bind:value="value">
23
16
  </gmap-autocomplete>
24
17
  </div>
25
18
  <div v-if="formDirty">
@@ -164,6 +157,7 @@ export default {
164
157
  color: #94aa2a;
165
158
  font-size: 14px;
166
159
  }
160
+
167
161
  .invalid {
168
162
  color: #f0134d;
169
163
  font-size: 14px;
@@ -172,4 +166,6 @@ export default {
172
166
  .margin-button {
173
167
  margin-top: -3px;
174
168
  }
169
+
170
+
175
171
  </style>
@@ -1,15 +1,7 @@
1
1
  <template>
2
2
  <div>
3
- <vodal
4
- :duration="80"
5
- :show="modal.open"
6
- @hide="hide()"
7
- :width="width"
8
- :height="height"
9
- :closeOnEsc="closeOnEsc"
10
- :closeButton="closeButton"
11
- :closeOnClickMask="false"
12
- >
3
+ <vodal :duration="80" :show="modal.open" @hide="hide()" :width="width" :height="height" :closeOnEsc="closeOnEsc"
4
+ :closeButton="closeButton" :closeOnClickMask="false">
13
5
  <div class="d-block text-left">
14
6
  <Messages v-if="!vodal.open" />
15
7
  <div class="title">{{ title }}</div>
@@ -7,7 +7,7 @@
7
7
  </div>
8
8
  </li>
9
9
  <li class="molded">
10
- <div class="text-center">
10
+ <div class="text-center div-photo" @click="editProfile">
11
11
  <img class="photo" :src="urlPhoto" />
12
12
  </div>
13
13
  <div class="box-main" v-for="(item, index) in menuFilter(true)" :key="index">
@@ -75,7 +75,7 @@
75
75
  </template>
76
76
 
77
77
  <script>
78
- import { mapState } from "vuex";
78
+ import { mapState, mapMutations } from "vuex";
79
79
  export default {
80
80
  name: "Menu",
81
81
  props: {
@@ -98,6 +98,10 @@ export default {
98
98
  };
99
99
  },
100
100
  methods: {
101
+ ...mapMutations("generic", ["addEvent"]),
102
+ editProfile() {
103
+ this.addEvent({ name: "clickedProfile" });
104
+ },
101
105
  openSubMenu(module) {
102
106
  this.subMenuFirstLevel = true;
103
107
  this.module = module;
@@ -246,4 +250,8 @@ img {
246
250
  border: 1px solid #e8eaed;
247
251
  border-radius: 12px !important;
248
252
  }
253
+
254
+ .div-photo {
255
+ cursor: pointer;
256
+ }
249
257
  </style>
@@ -3,47 +3,17 @@
3
3
  <div @click="execute()">
4
4
  <slot></slot>
5
5
  </div>
6
- <Modal
7
- v-if="isModal"
8
- :title="title"
9
- :width="450"
10
- :height="250"
11
- v-show="showModal(`confirmation${data.id}`)"
12
- >
6
+ <Modal v-if="isModal" :title="title" :width="450" :height="250" v-show="showModal(`confirmation${data.id}`)">
13
7
  <b-col sm="12">
14
8
  <div class="div-button text-center">
15
- <Button
16
- key="notConfirm"
17
- type="edit"
18
- title="cancel"
19
- size="small"
20
- :clicked="cancel"
21
- />
22
- <Button
23
- key="confirm"
24
- :type="type"
25
- title="Sim, confirmar"
26
- size="medium"
27
- :clicked="confirm"
28
- />
9
+ <Button key="notConfirm" type="edit" title="cancel" size="small" :clicked="cancel" />
10
+ <Button key="confirm" :type="type" title="Sim, confirmar" size="medium" :clicked="confirm" />
29
11
  </div>
30
12
  </b-col>
31
13
  </Modal>
32
14
  <div v-else class="div-button text-center">
33
- <Button
34
- _key="notConfirm"
35
- type="edit"
36
- title="cancel"
37
- size="small"
38
- :clicked="cancel"
39
- />
40
- <Button
41
- _key="confirm"
42
- :type="type"
43
- title="Sim, confirmar"
44
- size="medium"
45
- :clicked="confirm"
46
- />
15
+ <Button _key="notConfirm" type="edit" title="cancel" size="small" :clicked="cancel" />
16
+ <Button _key="confirm" :type="type" title="Sim, confirmar" size="medium" :clicked="confirm" />
47
17
  </div>
48
18
  </div>
49
19
  </template>
@@ -62,7 +62,7 @@ export default {
62
62
  handleChange(arg) {
63
63
  if (this.changedCalendar) this.changedCalendar(arg);
64
64
  },
65
- handleEventRender(arg) {},
65
+ handleEventRender(arg) { },
66
66
  handleDateClick: function (arg) {
67
67
  if (this.clickedCalendar) this.clickedCalendar(arg);
68
68
  },
@@ -74,7 +74,12 @@ export default {
74
74
  event: {
75
75
  handler(event) {
76
76
  if (event.name == "updateCalendar")
77
- this.calendarOptions.events = event.data;
77
+ event.data.forEach(item => {
78
+ this.calendarOptions.events.push(item);
79
+ });
80
+
81
+ if (event.name == "cleanCalendar")
82
+ this.calendarOptions.events = [];
78
83
  },
79
84
  deep: true,
80
85
  },
@@ -165,4 +170,5 @@ export default {
165
170
  .fc-button-primary:hover {
166
171
  background: #3e90b3 !important;
167
172
  }
173
+
168
174
  </style>
@@ -1,22 +1,17 @@
1
1
  <template>
2
2
  <div>
3
- <div
4
- :class="{ 'div-message': !modal.open }"
5
- v-if="storageNotification.length > 0"
6
- >
7
- <div v-for="notification in storageNotification">
3
+ <div :class="{ 'div-message': !modal.open }" v-if="storageNotification.length > 0">
4
+ <div>
8
5
  <Alert type="danger">
9
- {{ notification.message }}
6
+ <div class="side-by-side" v-for="notification in storageNotification">
7
+ <div class="side-by-side text">
8
+ {{ notification.message }}
9
+ </div>
10
+ </div>
10
11
  </Alert>
11
12
  </div>
12
- <b-alert
13
- v-show="false"
14
- :show="countdown"
15
- dismissible
16
- variant="danger"
17
- @dismissed="countdown = 0"
18
- @dismiss-count-down="countdownChanged"
19
- >
13
+ <b-alert v-show="false" :show="countdown" dismissible variant="danger" @dismissed="countdown = 0"
14
+ @dismiss-count-down="countdownChanged">
20
15
  </b-alert>
21
16
  </div>
22
17
  </div>
@@ -81,4 +76,9 @@ export default {
81
76
  .invalid {
82
77
  color: #f0134d;
83
78
  }
79
+
80
+ .text{
81
+ margin-right: 10px;
82
+ }
83
+
84
84
  </style>
@@ -130,7 +130,7 @@ export default {
130
130
  }
131
131
 
132
132
  .center-vertical {
133
- padding-top: 10px;
133
+ padding-top: 5px;
134
134
  }
135
135
 
136
136
  .center-vertical-bank {
@@ -156,6 +156,12 @@ export default {
156
156
  border-radius: 10px;
157
157
  }
158
158
 
159
+ .img-user {
160
+ width: 40px;
161
+ height: 40px;
162
+ border-radius: 20px;
163
+ }
164
+
159
165
  .period-rent {
160
166
  cursor: pointer;
161
167
  }
@@ -5,7 +5,7 @@
5
5
  <div slot="content-main">
6
6
  <br />
7
7
  <Loading type="line" :center="false" v-show="loadingSearch" />
8
- <div v-show="!showFilter">
8
+ <div v-show="!showFilter">
9
9
  <div class="div-progress" v-if="liveTotalRecords != baseParams.totalRecords && !loadingSearch && !cancel">
10
10
  <ProgressBar :text="`Carregando ${liveTotalRecords} registros de ${baseParams.totalRecords}`"
11
11
  :value="liveTotalRecords" :max="baseParams.totalRecords" size="medium" />
@@ -59,6 +59,9 @@ export default {
59
59
  },
60
60
  updateComunication: (state) => {
61
61
  state.userLogged.user.showComunication = false;
62
+ },
63
+ updatePhoto: (state, photo) => {
64
+ state.userLogged.user.photo = photo;
62
65
  }
63
66
  },
64
67
  }