@tak-ps/vue-tabler 3.39.4 → 3.41.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,17 +10,25 @@
10
10
 
11
11
  ## Version History
12
12
 
13
+ ### v3.41.0
14
+
15
+ - :arrow_up: TablerInput `submit` event on `enter`
16
+
17
+ ### v3.30.0
18
+
19
+ - :arrow_up: Update Latest Deps
20
+
13
21
  ### v3.29.4
14
22
 
15
23
  - :rocket: Update Lint Rules
16
24
 
17
25
  ### v3.29.3
18
26
 
19
- - :bug: Remove Style
27
+ - :bug: Remove Style
20
28
 
21
29
  ### v3.29.2
22
30
 
23
- - :bug: Fix Commat
31
+ - :bug: Fix Commat
24
32
 
25
33
  ### v3.29.1
26
34
 
@@ -3,9 +3,18 @@
3
3
  <TablerLabel :label='label' :description='description' :required='required'><slot/></TablerLabel>
4
4
  <div class='col-12'>
5
5
  <template v-if='!rows || rows <= 1'>
6
- <input :disabled='disabled' :value='modelValue' @input='event => current = event.target.value' :type='computed_type' :class='{
7
- "is-invalid": errorstr
8
- }' class="form-control" :placeholder='label||placeholder||""'/>
6
+ <input
7
+ :disabled='disabled'
8
+ :value='modelValue'
9
+ @input='event => current = event.target.value'
10
+ @keyup.enter='$emit("submit")'
11
+ :type='computed_type'
12
+ :class='{
13
+ "is-invalid": errorstr
14
+ }'
15
+ class="form-control"
16
+ :placeholder='label||placeholder||""'
17
+ />
9
18
  </template>
10
19
  <template v-else>
11
20
  <textarea
@@ -14,6 +23,7 @@
14
23
  :rows='rows'
15
24
  :value='modelValue'
16
25
  @input='event => current = event.target.value'
26
+ @keyup.enter='$emit("submit")'
17
27
  :type='computed_type'
18
28
  :class='{
19
29
  "is-invalid": errorstr
@@ -32,6 +42,7 @@ import TablerLabel from '../internal/Label.vue';
32
42
 
33
43
  export default {
34
44
  name: 'TablerInput',
45
+ emits: ['submit'],
35
46
  props: {
36
47
  modelValue: {
37
48
  type: [String, 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.39.4",
4
+ "version": "3.41.0",
5
5
  "lib": "lib.js",
6
6
  "module": "lib.js",
7
7
  "description": "Tabler UI components for Vue3",