@tak-ps/vue-tabler 3.50.0 → 3.51.1

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.51.1
14
+
15
+ - :rocket: Add `lock` and `user` icons to TablerInput
16
+
17
+ ### v3.51.0
18
+
19
+ - :bug: Fix broken required (`*`) on input forms ow that we don't use `form-label` due to it's margins
20
+
13
21
  ### v3.50.0
14
22
 
15
23
  - :rocket: Show label conditionally to avoid 4px margin on top of input
@@ -11,6 +11,8 @@
11
11
  <div class='input-icon'>
12
12
  <span v-if='icon' class="input-icon-addon">
13
13
  <IconSearch v-if='icon === "search"' :size='20' :stroke='1'/>
14
+ <IconLock v-if='icon === "lock"' :size='20' :stroke='1'/>
15
+ <IconUser v-if='icon === "user"' :size='20' :stroke='1'/>
14
16
  </span>
15
17
  <input
16
18
  :disabled='disabled'
@@ -23,8 +25,8 @@
23
25
  class="form-control"
24
26
  :placeholder='placeholder||label||""'
25
27
  />
26
- <span v-if='$slots.posticon' class="input-icon-addon">
27
- <slot name='prepost'/>
28
+ <span v-if='loading' class="input-icon-addon">
29
+ <div class="spinner-border spinner-border-sm text-secondary" role="status"></div>
28
30
  </span>
29
31
  </div>
30
32
  </template>
@@ -51,6 +53,8 @@
51
53
  <script>
52
54
  import TablerLabel from '../internal/Label.vue';
53
55
  import {
56
+ IconUser,
57
+ IconLock,
54
58
  IconSearch
55
59
  } from '@tabler/icons-vue';
56
60
 
@@ -65,6 +69,10 @@ export default {
65
69
  icon: {
66
70
  type: String,
67
71
  },
72
+ loading: {
73
+ type: Boolean,
74
+ default: false
75
+ },
68
76
  required: {
69
77
  type: Boolean,
70
78
  default: false,
@@ -149,6 +157,8 @@ export default {
149
157
  }
150
158
  },
151
159
  components: {
160
+ IconUser,
161
+ IconLock,
152
162
  IconSearch,
153
163
  TablerLabel
154
164
  }
@@ -8,11 +8,10 @@
8
8
  <div
9
9
  v-if='label'
10
10
  class="px-2"
11
- v-text='label'
12
- :class='{
13
- "required": required
14
- }'
15
- ></div>
11
+ >
12
+ <span v-text='label'/>
13
+ <span v-if='required' class='text-red mx-1'>*</span>
14
+ </div>
16
15
  </div>
17
16
  <div class='ms-auto align-self-center'>
18
17
  <slot/>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/vue-tabler",
3
3
  "type": "module",
4
- "version": "3.50.0",
4
+ "version": "3.51.1",
5
5
  "lib": "lib.js",
6
6
  "module": "lib.js",
7
7
  "description": "Tabler UI components for Vue3",