@itfin/components 1.2.53 → 1.2.55
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
|
@@ -55,6 +55,7 @@ class itfModal extends Vue {
|
|
|
55
55
|
@Prop({ type: Boolean, default: false }) escClose
|
|
56
56
|
@Prop({ type: Function, default: null }) onEscClose;
|
|
57
57
|
@Prop({ type: Boolean, default: true }) appendToBody;
|
|
58
|
+
@Prop({ type: Boolean, default: false }) appendToContext;
|
|
58
59
|
@Prop({ type: Boolean, default: false }) content;
|
|
59
60
|
@Prop({ type: Boolean, default: false }) scrolling;
|
|
60
61
|
@Prop({ type: Number, default: null }) zIndex;
|
|
@@ -104,7 +105,11 @@ class itfModal extends Vue {
|
|
|
104
105
|
if (typeof window === 'undefined') {
|
|
105
106
|
return;
|
|
106
107
|
}
|
|
107
|
-
if (this.
|
|
108
|
+
if (this.appendToContext && this.$el instanceof Node && this.$el.parentNode) {
|
|
109
|
+
const context = this.$el.closest('.itf-append-context') || document.body;
|
|
110
|
+
this.$el.parentNode.removeChild(this.$el);
|
|
111
|
+
context.appendChild(this.$el); // should append only to body
|
|
112
|
+
} else if (this.appendToBody && this.$el instanceof Node && this.$el.parentNode) {
|
|
108
113
|
this.$el.parentNode.removeChild(this.$el);
|
|
109
114
|
document.body.appendChild(this.$el); // should append only to body
|
|
110
115
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
v-if="active || (tabsManager && tabsManager.getValue() === id)"
|
|
4
|
-
:class="{ filled }"
|
|
4
|
+
:class="{ filled, 'itf-tab-content': !simple }"
|
|
5
5
|
:data-test="`itf-tab-content-${id || _uid}`">
|
|
6
6
|
<slot />
|
|
7
7
|
</div>
|
|
@@ -19,5 +19,9 @@ class itfTabContent extends Vue {
|
|
|
19
19
|
@Prop() id;
|
|
20
20
|
@Prop(Boolean) filled;
|
|
21
21
|
@Prop(Boolean) active;
|
|
22
|
+
|
|
23
|
+
get simple() {
|
|
24
|
+
return this.tabsManager && this.tabsManager.simple;
|
|
25
|
+
}
|
|
22
26
|
}
|
|
23
27
|
</script>
|