@itfin/components 1.0.78 → 1.0.79
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
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
|
|
3
|
-
<div class="itf-modal modal
|
|
3
|
+
<div class="itf-modal modal" ref="modal" tabindex="-1" :aria-labelledby="modalId" aria-hidden="true">
|
|
4
4
|
<div
|
|
5
5
|
class="modal-dialog modal-fullscreen-sm-down"
|
|
6
6
|
:class="{[`modal-${size}`]: size}"
|
|
7
7
|
>
|
|
8
8
|
<div class="modal-content itf-append-context" ref="content">
|
|
9
9
|
<div class="modal-header">
|
|
10
|
-
<
|
|
10
|
+
<slot name="title">
|
|
11
|
+
<h5 class="modal-title" :id="modalId">{{title}}</h5>
|
|
12
|
+
</slot>
|
|
11
13
|
<itf-button icon data-bs-dismiss="modal" aria-label="Close" class="btn-close"></itf-button>
|
|
12
14
|
</div>
|
|
13
15
|
<div class="modal-body" v-if="value">
|
|
@@ -33,11 +35,11 @@
|
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
|
-
|
|
37
|
-
-webkit-filter: blur(5px) grayscale(1);
|
|
38
|
-
-moz-filter: blur(5px) grayscale(1);
|
|
39
|
-
filter: blur(5px) grayscale(1);
|
|
40
|
-
}
|
|
38
|
+
//.modal-open .itf-app {
|
|
39
|
+
// -webkit-filter: blur(5px) grayscale(1);
|
|
40
|
+
// -moz-filter: blur(5px) grayscale(1);
|
|
41
|
+
// filter: blur(5px) grayscale(1);
|
|
42
|
+
//}
|
|
41
43
|
</style>
|
|
42
44
|
<script>
|
|
43
45
|
import { Vue, Component, Prop, Watch, PropSync, Inject } from 'vue-property-decorator';
|
|
@@ -165,6 +165,8 @@ class itfSegmentedControl extends Vue {
|
|
|
165
165
|
@Prop({ type: Boolean, default: false }) returnObject;
|
|
166
166
|
@Prop({ type: Boolean, default: false }) disabled;
|
|
167
167
|
|
|
168
|
+
timers = [];
|
|
169
|
+
|
|
168
170
|
get name () {
|
|
169
171
|
return `sc${this._uid}`;
|
|
170
172
|
}
|
|
@@ -210,20 +212,25 @@ class itfSegmentedControl extends Vue {
|
|
|
210
212
|
updatePillPosition(this);
|
|
211
213
|
|
|
212
214
|
function updatePillPosition (component) {
|
|
215
|
+
component.timers.forEach((timer) => {
|
|
216
|
+
clearTimeout(timer);
|
|
217
|
+
});
|
|
218
|
+
component.timers = [];
|
|
213
219
|
component.$refs.input.forEach((elem, index) => {
|
|
214
220
|
if (elem.checked) {
|
|
215
221
|
component.$nextTick(() => moveBackgroundPillToElement(component, elem, index));
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
222
|
+
component.timers = [
|
|
223
|
+
setTimeout(() => moveBackgroundPillToElement(component, elem, index), 500),
|
|
224
|
+
setTimeout(() => moveBackgroundPillToElement(component, elem, index), 750),
|
|
225
|
+
setTimeout(() => moveBackgroundPillToElement(component, elem, index), 1500),
|
|
226
|
+
setTimeout(() => moveBackgroundPillToElement(component, elem, index), 3000)
|
|
227
|
+
];
|
|
220
228
|
}
|
|
221
229
|
})
|
|
222
230
|
}
|
|
223
231
|
|
|
224
232
|
function moveBackgroundPillToElement (component, elem, index) {
|
|
225
233
|
const slider = component.$refs.slider;
|
|
226
|
-
console.info('init 2', slider);
|
|
227
234
|
if (slider) {
|
|
228
235
|
slider.style.transform = 'translateX(' + (elem.offsetWidth * index) + 'px)';
|
|
229
236
|
}
|