@itfin/components 1.2.86 → 1.2.87
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
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
:title="title"
|
|
11
11
|
content
|
|
12
12
|
:size="size"
|
|
13
|
-
@
|
|
13
|
+
@keydown.native.shift.enter.stop.prevent="submitSaveItem()"
|
|
14
14
|
@update:visible="$emit('input', $event)"
|
|
15
15
|
@close="onClose"
|
|
16
16
|
>
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
@click="submitSaveItem()"
|
|
68
68
|
>
|
|
69
69
|
<span class="me-1">{{ saveBtnCaption }}</span>
|
|
70
|
-
<kbd
|
|
70
|
+
<kbd>Shift + ↵</kbd>
|
|
71
71
|
</itf-button>
|
|
72
72
|
</slot>
|
|
73
73
|
</slot>
|
|
@@ -111,8 +111,6 @@ class itfItemEditor extends Vue {
|
|
|
111
111
|
@Prop(Boolean) canDelete;
|
|
112
112
|
@Prop(Boolean) fullscreen;
|
|
113
113
|
@Prop(Boolean) readonly; // показує форму, але кнопка Save не викликає saveFunc
|
|
114
|
-
@Prop() createdAt;
|
|
115
|
-
@Prop() creator;
|
|
116
114
|
|
|
117
115
|
loading = false;
|
|
118
116
|
showError = false;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
<div v-if="currencySelect" class="itf-money-field__currency">
|
|
15
15
|
<span>{{ selectedCurrencyCode }}</span>
|
|
16
|
-
<select v-if="!
|
|
16
|
+
<select v-if="!disabled && !currencyDisabled" :value="currencyId" @input="onCurrencyChanged">
|
|
17
17
|
<option v-for="currency in currencies" :key="currency.Id" :value="currency.Id" :selected="currencyId === currency.Id">
|
|
18
18
|
{{ currency.Symbol }}, {{ currency.Code }} - {{ currency.Title }}
|
|
19
19
|
</option>
|
|
@@ -24,9 +24,14 @@
|
|
|
24
24
|
<style lang="scss">
|
|
25
25
|
.itf-money-field {
|
|
26
26
|
position: relative;
|
|
27
|
+
|
|
27
28
|
.itf-text-field input {
|
|
28
29
|
padding-left: var(--itf-money-field-padding-left, 1.5rem);
|
|
29
30
|
padding-right: 3rem;
|
|
31
|
+
|
|
32
|
+
&.is-invalid, &.is-valid {
|
|
33
|
+
padding-right: 4rem;
|
|
34
|
+
}
|
|
30
35
|
}
|
|
31
36
|
|
|
32
37
|
&__prepend {
|
|
@@ -40,12 +45,16 @@
|
|
|
40
45
|
position: absolute;
|
|
41
46
|
right: .75rem;
|
|
42
47
|
top: .5rem;
|
|
48
|
+
.is-invalid &, .is-valid & {
|
|
49
|
+
right: 1.75rem;
|
|
50
|
+
}
|
|
43
51
|
|
|
44
52
|
select {
|
|
45
53
|
position: absolute;
|
|
46
54
|
top: 0;
|
|
47
55
|
right: 0;
|
|
48
56
|
opacity: 0;
|
|
57
|
+
left: 0;
|
|
49
58
|
}
|
|
50
59
|
}
|
|
51
60
|
}
|