@nixweb/nixloc-ui 0.0.256 → 0.0.258

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.256",
3
+ "version": "0.0.258",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -3,7 +3,10 @@
3
3
  <div class="molded-totalization" @click="execute">
4
4
  <div class="title">{{ title }}</div>
5
5
  <div class="value" :class="{ clicked: clicked }" v-if="currency" :style="_style">
6
- {{ value | currency }}
6
+ <span v-if="discount > 0" class="div-discount">{{ discount }}%</span> {{ value | currency }}
7
+ <span class="icon-edit" v-if="clicked">
8
+ <i class="fa-solid fa-pen-to-square"></i>
9
+ </span>
7
10
  </div>
8
11
  <div class="value" :class="{ clicked: clicked }" v-else :style="_style">
9
12
  {{ value }}
@@ -20,6 +23,7 @@ export default {
20
23
  type: Boolean,
21
24
  default: true,
22
25
  },
26
+ discount: Number,
23
27
  value: Number,
24
28
  _style: String,
25
29
  clicked: Function,
@@ -63,6 +67,18 @@ export default {
63
67
 
64
68
  .clicked:hover {
65
69
  cursor: pointer;
66
- text-decoration: underline;
70
+ }
71
+
72
+ .icon-edit {
73
+ font-size: 14px;
74
+ }
75
+
76
+ .div-discount {
77
+ background-color: #FF4843;
78
+ width: 12px;
79
+ border-radius: 10px;
80
+ color: white;
81
+ font-size: 11px !important;
82
+ padding: 3px;
67
83
  }
68
84
  </style>
@@ -26,8 +26,8 @@ export default {
26
26
  name: "Messages",
27
27
  data() {
28
28
  return {
29
- maxSeconds: 10,
30
- countdown: 10,
29
+ maxSeconds: 20,
30
+ countdown: 20,
31
31
  storageNotification: [],
32
32
  };
33
33
  },
@@ -77,8 +77,7 @@ export default {
77
77
  color: #f0134d;
78
78
  }
79
79
 
80
- .text{
80
+ .text {
81
81
  margin-right: 10px;
82
82
  }
83
-
84
83
  </style>
@@ -92,6 +92,10 @@ export default {
92
92
  type: Boolean,
93
93
  default: true,
94
94
  },
95
+ isFilterStorage: {
96
+ type: Boolean,
97
+ default: false
98
+ }
95
99
  },
96
100
  components: {
97
101
  HorizontalFilter,
@@ -298,7 +302,9 @@ export default {
298
302
  propsParam: this.propsParam,
299
303
  paramsFilter: this.paramsFilter
300
304
  };
301
- this.addFilterStorage(obj);
305
+
306
+ if (this.isFilterStorage)
307
+ this.addFilterStorage(obj);
302
308
  }
303
309
  },
304
310
  watch: {
@@ -16,7 +16,8 @@
16
16
  </div>
17
17
  </div>
18
18
  <Molded>
19
- <ListViewWithDataHandler :templateList="templateList" :propsParam="propsParam" :buttonRemove="buttonRemove">
19
+ <ListViewWithDataHandler :templateList="templateList" :propsParam="propsParam" :isFilterStorage="true"
20
+ :buttonRemove="buttonRemove">
20
21
  <div slot="content-buttons-table-header">
21
22
  <slot name="content-buttons-table-header"></slot>
22
23
  </div>