@tak-ps/vue-tabler 3.42.0 → 3.43.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.43.0
14
+
15
+ - :rocket: Reduce number of updates in `Input` and also declare all emits
16
+
13
17
  ### v3.42.0
14
18
 
15
19
  - :bug: Use intermediary value so v-model can be used on text input
@@ -40,7 +40,7 @@ import TablerLabel from '../internal/Label.vue';
40
40
 
41
41
  export default {
42
42
  name: 'TablerInput',
43
- emits: ['submit'],
43
+ emits: ['submit', 'update:modelValue'],
44
44
  props: {
45
45
  modelValue: {
46
46
  type: [String, Number],
@@ -93,7 +93,9 @@ export default {
93
93
  },
94
94
  watch: {
95
95
  modelValue: function() {
96
- this.current = String(this.modelValue);
96
+ if (this.current !== String(this.modelValue)) {
97
+ this.current = String(this.modelValue);
98
+ }
97
99
  },
98
100
  current: function() {
99
101
  if (typeof this.modelValue === 'number' || this.type === 'number') {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/vue-tabler",
3
3
  "type": "module",
4
- "version": "3.42.0",
4
+ "version": "3.43.0",
5
5
  "lib": "lib.js",
6
6
  "module": "lib.js",
7
7
  "description": "Tabler UI components for Vue3",