@nixweb/nixloc-ui 0.0.310 → 1.0.0

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.310",
3
+ "version": "1.0.0",
4
4
  "description": "Componentes UI",
5
5
  "author": "Fábio Ávila <fabio@nixweb.com.br>",
6
6
  "private": false,
@@ -64,7 +64,6 @@ export default {
64
64
  margin-left: 5px;
65
65
  }
66
66
 
67
-
68
67
  .title-btn {
69
68
  margin-left: 3px;
70
69
  }
@@ -8,7 +8,7 @@
8
8
  </span>
9
9
  </div>
10
10
  </template>
11
- <b-tab v-for="i in tabs" :key="'dyn-tab-' + i" :title="title(i).title">
11
+ <b-tab @click="execute(title(i).title)" v-for="i in tabs" :key="'dyn-tab-' + i" :title="title(i).title">
12
12
  <slot :name="i"></slot>
13
13
  </b-tab>
14
14
  <template #tabs-end v-if="tabs.length > 8">
@@ -23,6 +23,9 @@
23
23
  </template>
24
24
 
25
25
  <script>
26
+
27
+ import { mapMutations } from "vuex";
28
+
26
29
  export default {
27
30
  props: {
28
31
  initialTabs: Array,
@@ -52,6 +55,12 @@ export default {
52
55
  if (this.tabs.length <= 8) container.classList.add("nav-default");
53
56
  },
54
57
  methods: {
58
+ ...mapMutations("generic", ["addEvent"]),
59
+ execute(title) {
60
+ if (title == "Auditoria") {
61
+ this.addEvent({ name: "auditLogGetAll" });
62
+ }
63
+ },
55
64
  title(index) {
56
65
  var ret = this.initialTabs.find((x) => x.index == index);
57
66
  return ret;
@@ -293,6 +293,7 @@ export default {
293
293
  this.hideModal("confirmRemoved");
294
294
  this.removeLoading(["confirm"]);
295
295
  this.addSelected([]);
296
+ this.addEvent({ name: "itemsRemoved" });
296
297
  });
297
298
  },
298
299
  cleanParams() {
@@ -7,13 +7,8 @@
7
7
  <Search />
8
8
  <br />
9
9
  </div>
10
- <ListViewWithDataHandler
11
- :templateList="templateList"
12
- :propsParam="propsParam"
13
- :showMolded="false"
14
- :showHorizontalFilter="showHorizontalFilter"
15
- :buttonRemove="buttonRemove"
16
- >
10
+ <ListViewWithDataHandler :templateList="templateList" :propsParam="propsParam" :showMolded="false"
11
+ :showHorizontalFilter="showHorizontalFilter" :buttonRemove="buttonRemove">
17
12
  <div slot="content-buttons-table-header">
18
13
  <slot name="content-buttons-table-header"></slot>
19
14
  </div>