@tak-ps/vue-tabler 3.51.0 → 3.51.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 +8 -0
- package/components/input/Input.vue +13 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,14 @@
|
|
|
10
10
|
|
|
11
11
|
## Version History
|
|
12
12
|
|
|
13
|
+
### v3.51.2
|
|
14
|
+
|
|
15
|
+
- :bug: Fix fallback order of placeholder text in textarea
|
|
16
|
+
|
|
17
|
+
### v3.51.1
|
|
18
|
+
|
|
19
|
+
- :rocket: Add `lock` and `user` icons to TablerInput
|
|
20
|
+
|
|
13
21
|
### v3.51.0
|
|
14
22
|
|
|
15
23
|
- :bug: Fix broken required (`*`) on input forms ow that we don't use `form-label` due to it's margins
|
|
@@ -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='
|
|
27
|
-
<
|
|
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>
|
|
@@ -40,7 +42,7 @@
|
|
|
40
42
|
"is-invalid": errorstr
|
|
41
43
|
}'
|
|
42
44
|
class="form-control"
|
|
43
|
-
:placeholder='label||
|
|
45
|
+
:placeholder='placeholder||label||""'
|
|
44
46
|
/>
|
|
45
47
|
</template>
|
|
46
48
|
<div v-if='errorstr' v-text='errorstr' class="invalid-feedback"></div>
|
|
@@ -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
|
}
|