@tak-ps/vue-tabler 3.62.0 → 3.63.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,14 @@
10
10
 
11
11
  ## Version History
12
12
 
13
+ ### v3.63.0
14
+
15
+ - :rocket: Include Icon Slot
16
+
17
+ ### v3.62.1
18
+
19
+ - :rocket: Update text selection on loading
20
+
13
21
  ### v3.62.0
14
22
 
15
23
  - :tada: Allow custom sizes of dropdown
@@ -13,7 +13,7 @@
13
13
  />
14
14
  <div
15
15
  v-if='desc && desc.length'
16
- class='mx-3 align-self-center'
16
+ class='mx-3 align-self-center user-select-none'
17
17
  v-text='desc'
18
18
  />
19
19
  </div>
@@ -29,7 +29,7 @@
29
29
  <template v-if='desc && desc.length'>
30
30
  <div class='d-flex justify-content-center my-4'>
31
31
  <div
32
- class=''
32
+ class='user-select-none'
33
33
  v-text='desc'
34
34
  />
35
35
  </div>
@@ -12,7 +12,7 @@
12
12
  <template v-if='!rows || rows <= 1'>
13
13
  <div class='input-icon'>
14
14
  <span
15
- v-if='icon'
15
+ v-if='icon || $slots.icon'
16
16
  class='input-icon-addon'
17
17
  >
18
18
  <IconSearch
@@ -21,15 +21,19 @@
21
21
  :stroke='1'
22
22
  />
23
23
  <IconLock
24
- v-if='icon === "lock"'
24
+ v-else-if='icon === "lock"'
25
25
  :size='20'
26
26
  :stroke='1'
27
27
  />
28
28
  <IconUser
29
- v-if='icon === "user"'
29
+ v-else-if='icon === "user"'
30
30
  :size='20'
31
31
  :stroke='1'
32
32
  />
33
+ <slot
34
+ v-else-if='$slots.icon'
35
+ name='icon'
36
+ />
33
37
  </span>
34
38
  <input
35
39
  ref='text-input'
@@ -162,11 +166,6 @@ export default {
162
166
  current: this.modelValue === undefined ? '' : this.modelValue
163
167
  }
164
168
  },
165
- mounted: function() {
166
- if (this.autofocus) {
167
- this.$refs['text-input'].focus();
168
- }
169
- },
170
169
  computed: {
171
170
  errorstr: function() {
172
171
  if (this.error) return this.error;
@@ -214,6 +213,11 @@ export default {
214
213
  this.$emit('update:modelValue', this.current);
215
214
  }
216
215
  }
216
+ },
217
+ mounted: function() {
218
+ if (this.autofocus) {
219
+ this.$refs['text-input'].focus();
220
+ }
217
221
  }
218
222
  }
219
223
  </script>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/vue-tabler",
3
3
  "type": "module",
4
- "version": "3.62.0",
4
+ "version": "3.63.0",
5
5
  "lib": "lib.js",
6
6
  "module": "lib.js",
7
7
  "description": "Tabler UI components for Vue3",