@tak-ps/vue-tabler 3.44.1 → 3.45.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/CHANGELOG.md CHANGED
@@ -10,6 +10,10 @@
10
10
 
11
11
  ## Version History
12
12
 
13
+ ### v3.45.0
14
+
15
+ - :rocket: Add loading to delete button
16
+
13
17
  ### v3.44.1
14
18
 
15
19
  - :bug: Allow alert to open
@@ -20,7 +20,10 @@
20
20
  </div>
21
21
  <div class="modal-footer">
22
22
  <div @click='$emit("delete")' class="btn btn-danger">
23
- <IconTrash size='32'/><span class='mx-2' v-text='label'/>
23
+ <TablerLoading v-if='loading' :inline='true'/>
24
+ <template v-else>
25
+ <IconTrash size='32'/><span class='mx-2' v-text='label'/>
26
+ </template>
24
27
  </div>
25
28
  </div>
26
29
  </TablerModal>
@@ -29,6 +32,7 @@
29
32
 
30
33
  <script>
31
34
  import TablerModal from './Modal.vue';
35
+ import TablerLoading from './Loading.vue';
32
36
  import {
33
37
  IconTrash
34
38
  } from '@tabler/icons-vue';
@@ -47,11 +51,19 @@ export default {
47
51
  },
48
52
  data: function() {
49
53
  return {
54
+ loading: false,
50
55
  modal: false
51
56
  }
52
57
  },
58
+ methods: {
59
+ deleting: function() {
60
+ this.loading = true;
61
+ this.$emit('delete')
62
+ }
63
+ },
53
64
  components: {
54
65
  IconTrash,
66
+ TablerLoading,
55
67
  TablerModal
56
68
  }
57
69
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/vue-tabler",
3
3
  "type": "module",
4
- "version": "3.44.1",
4
+ "version": "3.45.0",
5
5
  "lib": "lib.js",
6
6
  "module": "lib.js",
7
7
  "description": "Tabler UI components for Vue3",