@itfin/components 1.0.64 → 1.0.65
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/package.json
CHANGED
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
<div class="itf-checkbox form-check" :class="{ 'form-switch': this.switch, 'itf-checkbox__large': large, 'itf-checkbox__medium': medium }">
|
|
4
4
|
<input class="form-check-input" :id="id" type="checkbox" name="checkbox" v-model="isChecked" :disabled="isDisabled" />
|
|
5
|
-
<label :for="id"
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
<label :for="id" class="form-check-label">
|
|
6
|
+
<slot name="label">
|
|
7
|
+
{{label}}
|
|
8
|
+
<slot name="icon"></slot>
|
|
9
|
+
</slot>
|
|
8
10
|
</label>
|
|
9
11
|
</div>
|
|
10
12
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
|
|
3
3
|
<div class="itf-text-field input-group" :class="{ 'with-addon addon-start': prependIcon, 'with-addon addon-end': clearable }">
|
|
4
|
-
<div class="addon" v-if="prependIcon">
|
|
4
|
+
<div class="addon" v-if="prependIcon || $slots.addon">
|
|
5
5
|
<slot name="addon">
|
|
6
6
|
<itf-icon :name="prependIcon"/>
|
|
7
7
|
</slot>
|
|
@@ -19,6 +19,9 @@
|
|
|
19
19
|
:readonly="readonly"
|
|
20
20
|
@input="onInput($event.target.value)"
|
|
21
21
|
@keydown="$emit('keydown', $event)"
|
|
22
|
+
:min="min"
|
|
23
|
+
:max="max"
|
|
24
|
+
:step="step"
|
|
22
25
|
/>
|
|
23
26
|
|
|
24
27
|
<div class="addon-end" v-if="clearable && value">
|
|
@@ -68,6 +71,9 @@ class itfTextField extends Vue {
|
|
|
68
71
|
@Model('input') value;
|
|
69
72
|
@Prop(String) prependIcon;
|
|
70
73
|
@Prop(String) placeholder;
|
|
74
|
+
@Prop() step;
|
|
75
|
+
@Prop() min;
|
|
76
|
+
@Prop() max;
|
|
71
77
|
@Prop(Boolean) clearable;
|
|
72
78
|
@Prop(Boolean) disabled;
|
|
73
79
|
@Prop(Boolean) readonly;
|