@tak-ps/vue-tabler 2.2.0 → 2.2.2

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,14 @@
10
10
 
11
11
  ## Version History
12
12
 
13
+ ### v2.2.2
14
+
15
+ - :bug: TablerList: Only update filter if namekey is present
16
+
17
+ ### v2.2.1
18
+
19
+ - :tada: Add initial value for TablerList
20
+
13
21
  ### v2.2.0
14
22
 
15
23
  - :tada: Add toggle & list components
@@ -18,11 +18,12 @@
18
18
  import TablerInput from './Input.vue';
19
19
 
20
20
  export default {
21
- name: 'UserDropdown',
21
+ name: 'TablerList',
22
22
  props: {
23
23
  url: String,
24
24
  listkey: String,
25
25
  namekey: String,
26
+ initial: Object,
26
27
  label: {
27
28
  type: String,
28
29
  default: ''
@@ -50,6 +51,9 @@ export default {
50
51
  mounted: async function() {
51
52
  await this.fetchList();
52
53
  },
54
+ mounted: function() {
55
+ if (this.initial && this.initial[this.namekey]) this.filter = this.initial[this.namekey];
56
+ },
53
57
  methods: {
54
58
  select: function(ele) {
55
59
  this.filter = ele[this.namekey];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/vue-tabler",
3
3
  "type": "module",
4
- "version": "2.2.0",
4
+ "version": "2.2.2",
5
5
  "main": "lib.js",
6
6
  "module": "lib.js",
7
7
  "description": "Tabler UI components for Vue3",