@itfin/components 1.0.72 → 1.0.76
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 +1 -1
- package/src/components/datepicker/DatePicker.vue +20 -2
- package/src/components/form/Label.vue +6 -4
- package/src/components/modal/Modal.vue +1 -1
- package/src/components/overlay/SensitiveOverlay.vue +1 -0
- package/src/components/tabs/TabContent.vue +1 -1
- package/src/components/tabs/tabs.scss +10 -3
- package/src/components/text-field/Textarea.vue +1 -1
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="itf-datepicker" :class="{'with-addon addon-start': prependIcon}">
|
|
2
|
+
<div class="itf-datepicker input-group" :class="{'with-addon addon-start': prependIcon, 'with-addon addon-end': clearable}">
|
|
3
3
|
<div class="addon" v-if="prependIcon">
|
|
4
4
|
<slot name="addon">
|
|
5
5
|
<itf-icon :name="prependIcon" />
|
|
@@ -22,6 +22,18 @@
|
|
|
22
22
|
:lazy="!focused"
|
|
23
23
|
:placeholder="placeholder"
|
|
24
24
|
/>
|
|
25
|
+
|
|
26
|
+
<div class="addon-end" v-if="clearable && value">
|
|
27
|
+
<slot name="clear">
|
|
28
|
+
<itf-button
|
|
29
|
+
icon
|
|
30
|
+
small
|
|
31
|
+
@click="$emit('input', '')"
|
|
32
|
+
>
|
|
33
|
+
<itf-icon name="close" />
|
|
34
|
+
</itf-button>
|
|
35
|
+
</slot>
|
|
36
|
+
</div>
|
|
25
37
|
<div style="display: none">
|
|
26
38
|
<div ref="dropdown" class="itf-datepicker__dropdown">
|
|
27
39
|
<itf-date-picker-inline
|
|
@@ -42,10 +54,13 @@
|
|
|
42
54
|
@import '../../assets/scss/input-addon';
|
|
43
55
|
|
|
44
56
|
.itf-datepicker {
|
|
45
|
-
.addon-end {
|
|
57
|
+
&.with-addon .addon-end {
|
|
46
58
|
pointer-events: all;
|
|
47
59
|
padding-right: 0.25rem;
|
|
48
60
|
}
|
|
61
|
+
.form-control {
|
|
62
|
+
border-radius: $input-border-radius !important;
|
|
63
|
+
}
|
|
49
64
|
|
|
50
65
|
&__dropdown {
|
|
51
66
|
width: max-content;
|
|
@@ -75,6 +90,7 @@ import { DateTime } from 'luxon';
|
|
|
75
90
|
import { debounce } from '../../helpers/debounce';
|
|
76
91
|
import tippy from 'tippy.js';
|
|
77
92
|
import itfIcon from '../icon/Icon.vue';
|
|
93
|
+
import itfButton from '../button/Button.vue';
|
|
78
94
|
import itfDatePickerInline from './DatePickerInline.vue';
|
|
79
95
|
import ITFSettings from '../../ITFSettings';
|
|
80
96
|
|
|
@@ -82,6 +98,7 @@ export default @Component({
|
|
|
82
98
|
name: 'itfDatePicker',
|
|
83
99
|
components: {
|
|
84
100
|
itfIcon,
|
|
101
|
+
itfButton,
|
|
85
102
|
itfDatePickerInline,
|
|
86
103
|
IMaskComponent,
|
|
87
104
|
},
|
|
@@ -97,6 +114,7 @@ class itfDatePicker extends Vue {
|
|
|
97
114
|
@Prop({ type: Boolean, default: false }) onlyCalendar;
|
|
98
115
|
@Prop({ type: String, default: '' }) placeholder;
|
|
99
116
|
@Prop({ type: String, default: '' }) prependIcon;
|
|
117
|
+
@Prop(Boolean) clearable;
|
|
100
118
|
|
|
101
119
|
focused = false;
|
|
102
120
|
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
|
|
3
3
|
<div class="itf-label" :class="{'has-validation': hasState, 'no-details': hideDetails}">
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
<slot name="label" v-bind="{ required, label }">
|
|
5
|
+
<label class="itf-label__label form-label" v-if="label">
|
|
6
|
+
{{label}}
|
|
7
|
+
<span class="star" v-if="required">*</span>
|
|
8
|
+
</label>
|
|
9
|
+
</slot>
|
|
8
10
|
|
|
9
11
|
<div :class="{'is-invalid': hasState && hasError, 'is-valid': hasState && hasSuccess}">
|
|
10
12
|
<slot :validate="doValidation"></slot>
|
|
@@ -124,7 +124,7 @@ class itfModal extends Vue {
|
|
|
124
124
|
document.body.appendChild(this.$el); // should append only to body
|
|
125
125
|
}
|
|
126
126
|
const { default: Modal } = await import('bootstrap/js/src/modal.js');
|
|
127
|
-
this.modalEl = new Modal(this.$el);
|
|
127
|
+
this.modalEl = new Modal(this.$el, { backdrop: 'static' });
|
|
128
128
|
this.onVisibleChanged(this.value);
|
|
129
129
|
this.bindEvents();
|
|
130
130
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div v-
|
|
2
|
+
<div v-if="tabsManager && tabsManager.getValue() === id" :class="{ filled }" class="itf-tab-content" :data-test="`itf-tab-content-${id || _uid}`">
|
|
3
3
|
<slot />
|
|
4
4
|
</div>
|
|
5
5
|
</template>
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
&:after {
|
|
45
45
|
border-radius: 0 8px 0 0;
|
|
46
46
|
top: -5px;
|
|
47
|
-
box-shadow: rgb(0
|
|
47
|
+
box-shadow: rgb(0,0,0,.05) 1px -2px 1px, inset rgb(255 255 255 / 9%) 0 1px;
|
|
48
48
|
}
|
|
49
49
|
&:before {
|
|
50
50
|
border-radius: 0 0 8px 0;
|
|
51
51
|
transform: skew(0deg, -1deg);
|
|
52
52
|
top: auto;
|
|
53
53
|
bottom: -12px;
|
|
54
|
-
box-shadow: rgba(0,0,0,.
|
|
54
|
+
box-shadow: rgba(0,0,0,.05) 1px 2px 1px, inset rgba(255,255,255,.09) 0 -1px;
|
|
55
55
|
}
|
|
56
56
|
&:before, &:after {
|
|
57
57
|
height: calc(var(--itf-tabs-tab-padding) * 4);
|
|
@@ -65,6 +65,12 @@
|
|
|
65
65
|
border-top: 0 none;
|
|
66
66
|
border-right: 1px solid var(--itf-tabs-active-border-color);
|
|
67
67
|
}
|
|
68
|
+
&:after {
|
|
69
|
+
box-shadow: rgb(0 0 0 / 10%) 2px -3px 5px, inset rgb(255 255 255 / 9%) 0 1px;
|
|
70
|
+
}
|
|
71
|
+
&:before {
|
|
72
|
+
box-shadow: rgba(0,0,0,.1) 2px 3px 5px, inset rgba(255,255,255,.09) 0 -1px;
|
|
73
|
+
}
|
|
68
74
|
}
|
|
69
75
|
&:hover, &:hover:before, &:hover:after,
|
|
70
76
|
&:focus, &:focus:before, &:focus:after {
|
|
@@ -77,6 +83,7 @@
|
|
|
77
83
|
flex-grow: 1;
|
|
78
84
|
z-index: 1;
|
|
79
85
|
margin-right: -1px;
|
|
86
|
+
max-width: calc(100% - var(--itf-tabs-panel-width));
|
|
80
87
|
}
|
|
81
88
|
}
|
|
82
89
|
|
|
@@ -111,7 +118,7 @@
|
|
|
111
118
|
& > span {
|
|
112
119
|
position: relative;
|
|
113
120
|
z-index: 4;
|
|
114
|
-
opacity: .
|
|
121
|
+
opacity: .75;
|
|
115
122
|
display: block;
|
|
116
123
|
}
|
|
117
124
|
&:before, &:after {
|