@nixweb/nixloc-ui 0.0.252 → 0.0.254

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.252",
3
+ "version": "0.0.254",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -26,7 +26,7 @@
26
26
  <i class="icon-dropdown" :class="item.classIcon"></i>
27
27
  </b-col>
28
28
  <b-col sm="10">
29
- <span class="title"> {{ item.title }}</span>
29
+ <span class="title-dropdown"> {{ item.title }}</span>
30
30
  </b-col>
31
31
  </b-row>
32
32
  </div>
@@ -14,7 +14,7 @@
14
14
  </div>
15
15
  </div>
16
16
  </template>
17
-
17
+
18
18
  <script>
19
19
  export default {
20
20
  name: "InputTag",
@@ -65,7 +65,7 @@ export default {
65
65
 
66
66
  };
67
67
  </script>
68
-
68
+
69
69
  <style>
70
70
  .email-input-container {
71
71
  display: flex;
@@ -113,6 +113,8 @@ export default {
113
113
  font-size: 14px;
114
114
  padding: 4px;
115
115
  font-weight: 400 !important;
116
+ margin: 2px 5px 2px 5px;
117
+ background-color: transparent;
116
118
  }
117
119
 
118
120
  .email-input::placeholder {
@@ -120,5 +122,4 @@ export default {
120
122
  opacity: 0.5;
121
123
  color: #969595;
122
124
  }
123
- </style>
124
-
125
+ </style>
@@ -8,17 +8,8 @@
8
8
  <br />
9
9
  </b-col>
10
10
  <b-col xs="6" sm="6" md="6" lg="4" xl="4">
11
- <VueToggles
12
- height="23"
13
- width="60"
14
- checkedText="Sim"
15
- uncheckedText="Não"
16
- :checkedBg="color"
17
- uncheckedBg="lightgrey"
18
- :disabled="disabled"
19
- :value="value"
20
- @click="clicked"
21
- />
11
+ <VueToggles height="23" width="60" checkedText="Sim" uncheckedText="Não" :checkedBg="color"
12
+ uncheckedBg="lightgrey" :disabled="disabled" :value="value" @click="clicked" />
22
13
  </b-col>
23
14
  </b-row>
24
15
  </div>
@@ -0,0 +1,71 @@
1
+ <template>
2
+ <div>
3
+ <transition name="fade">
4
+ <div v-if="showFloating" class="div-fixed footer-bar">
5
+ <slot></slot>
6
+ </div>
7
+ </transition>
8
+
9
+ </div>
10
+ </template>
11
+ <script>
12
+ export default {
13
+ name: "BarFloating",
14
+ props: {
15
+ distance: {
16
+ type: Number,
17
+ default: 0,
18
+ }
19
+ },
20
+ data() {
21
+ return {
22
+ showFloating: true,
23
+ }
24
+ },
25
+ mounted() {
26
+ window.addEventListener('scroll', this.checkPosition);
27
+ },
28
+ destroyed() {
29
+ window.removeEventListener('scroll', this.checkPosition);
30
+ },
31
+ methods: {
32
+ checkPosition() {
33
+
34
+ if (this.distance == 0) {
35
+ return true;
36
+ }
37
+ else {
38
+ const currentPosition = window.scrollY;
39
+
40
+ if (currentPosition > this.distance) {
41
+ this.showFloating = true;
42
+ } else {
43
+ this.showFloating = false;
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ </script>
50
+ <style scoped>
51
+ .div-fixed {
52
+ position: fixed;
53
+ top: 50%;
54
+ left: 57%;
55
+ transform: translate(-50%, -50%);
56
+ width: 75%;
57
+ opacity: 1;
58
+ transition: opacity 1s ease;
59
+ z-index: 1000;
60
+ }
61
+
62
+ .fade-enter-active,
63
+ .fade-leave-active {
64
+ transition: opacity 0.5s;
65
+ }
66
+
67
+ .fade-enter,
68
+ .fade-leave-to {
69
+ opacity: 0;
70
+ }
71
+ </style>
@@ -13,9 +13,9 @@
13
13
  <div class="box-main" v-for="(item, index) in menuFilter(true)" :key="index">
14
14
  <a href="#" @click.prevent="openSubMenu(item.module)" :class="highlightSession(item.module)">
15
15
  <div :class="{
16
- 'icon-active': menuActive == item.module,
17
- 'icon-normal': menuActive != item.module,
18
- }">
16
+ 'icon-active': menuActive == item.module,
17
+ 'icon-normal': menuActive != item.module,
18
+ }">
19
19
  <b-row>
20
20
  <b-col sm="12">
21
21
  <div class="box-icon text-center">
@@ -51,7 +51,8 @@
51
51
  <li v-for="(item, index) in subMenuFilter(false)" :key="index">
52
52
  <h5 v-if="item.type === 'group'" class="context-menu__title">
53
53
  <span class="sub-title"> {{ item.groupName }}</span>
54
- <span v-if="index === 0" @click.prevent="hideSubMenu" class="context-menu__btn-close icon-close" href="#">
54
+ <span v-if="index === 0" @click.prevent="hideSubMenu" class="context-menu__btn-close icon-close"
55
+ href="#">
55
56
  <i class="fas fa-times-circle"></i>
56
57
  </span>
57
58
  </h5>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="div-header">
3
- <div class="title">Relatório {{ $route.params.name }}</span></div>
3
+ <div class="title-report-header">Relatório {{ $route.params.name }}</span></div>
4
4
  <div class="side-by-side div-tag" v-for="tag in tags" :key="tag.id">
5
5
  <span>{{ tag.title }}</span> <span>{{ tag.value }}</span>
6
6
  <span>,</span>
@@ -30,7 +30,7 @@ export default {
30
30
  margin-right: 10px;
31
31
  }
32
32
 
33
- .title {
33
+ .title-report-header {
34
34
  font-size: 18px;
35
35
  }
36
36
  </style>
@@ -2,14 +2,14 @@
2
2
  <div>
3
3
  <hr class="hr-report" />
4
4
  <div class="text-right">
5
- <span class="title"> Total de Registro(s) </span>
6
- <span class="title value"> {{ totalRecords }} </span>
5
+ <span class="title-report-header"> Total de Registro(s) </span>
6
+ <span class="title-report-header value-report-header"> {{ totalRecords }} </span>
7
7
  </div>
8
8
  <div class="text-right" v-for="item in totalization" :key="item.title">
9
9
  <span :class="convertName(item[0]).classCss">
10
- <span class="title">
10
+ <span class="title-report-header">
11
11
  {{ convertName(item[0]).title }}
12
- <span class="title value">
12
+ <span class="title-report-header value-report-header">
13
13
  <span v-if="convertName(item[0]).type == 'currency'">
14
14
  {{ item[1] | currency }}
15
15
  </span>
@@ -23,7 +23,7 @@
23
23
  </div>
24
24
  </template>
25
25
  <script>
26
- import { mapState, mapGetters, mapActions, mapMutations } from "vuex";
26
+ import { mapState } from "vuex";
27
27
 
28
28
  export default {
29
29
  name: "TotalizationReport",
@@ -43,12 +43,12 @@ export default {
43
43
  </script>
44
44
 
45
45
  <style scoped>
46
- .title {
46
+ .title-report-header {
47
47
  font-size: 15px;
48
48
  font-weight: 400;
49
49
  }
50
50
 
51
- .value {
51
+ .value-report-header {
52
52
  margin-left: 50px;
53
53
  }
54
54
 
@@ -25,15 +25,17 @@
25
25
  </b-col>
26
26
  </b-row>
27
27
  <Loading type="line" :center="false" v-show="isLoading('loadingLine')" />
28
- <div class="fixed-bar-options" v-show="selected.length > 0">
29
- <div class="side-by-side">
30
- <Button v-if="buttonRemove" key="remove" :title="`Remover ${selected.length}`" type="danger" size="small"
31
- :clicked="confirmRemoved" />
32
- </div>
33
- <div class="side-by-side">
34
- <slot name="content-buttons-table-header"></slot>
28
+ <BarFloating>
29
+ <div class="fixed-bar-options" v-show="selected.length > 0">
30
+ <div class="side-by-side">
31
+ <Button v-if="buttonRemove" key="remove" :title="`Remover ${selected.length}`" type="danger" size="small"
32
+ :clicked="confirmRemoved" />
33
+ </div>
34
+ <div class="side-by-side">
35
+ <slot name="content-buttons-table-header"></slot>
36
+ </div>
35
37
  </div>
36
- </div>
38
+ </BarFloating>
37
39
  <Table :header="templateList.headerTable" :data="content.data" :showChecks="templateList.showChecks"
38
40
  :dragAndDrop="templateList.dragAndDrop">
39
41
  <div slot="content-buttons-table">
@@ -61,6 +63,7 @@ import Pagination from "@nixweb/nixloc-ui/src/component/shared/Pagination.vue";
61
63
  import Table from "../shared/Table.vue";
62
64
  import Button from "../forms/Button.vue";
63
65
  import FixedBar from "../layout/FixedBar.vue";
66
+ import BarFloating from "@nixweb/nixloc-ui/src/component/layout/BarFloating.vue";
64
67
  import TableTotalRecords from "../shared/TableTotalRecords.vue";
65
68
  import TableTotalization from "../shared/TableTotalization.vue";
66
69
  import HorizontalFilter from "../shared/HorizontalFilter.vue";
@@ -95,6 +98,7 @@ export default {
95
98
  TableTotalization,
96
99
  TableTotalRecords,
97
100
  Confirmation,
101
+ BarFloating,
98
102
  Alert,
99
103
  Modal,
100
104
  Loading,
@@ -418,6 +418,9 @@ export default {
418
418
  headers: new Token().tokenHeaders(),
419
419
  })
420
420
  .then((response) => {
421
+
422
+ console.log(response);
423
+
421
424
  if (response.data.success) {
422
425
  context.commit('addMethodExecutedApi', params.methodExecutedApi);
423
426
  context.commit('removeNotificarions');