@limetech/lime-elements 37.61.1 → 37.61.3
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/CHANGELOG.md +16 -0
- package/dist/cjs/limel-form.cjs.entry.js +19 -3
- package/dist/cjs/limel-form.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-icon_2.cjs.entry.js +17 -15
- package/dist/cjs/limel-icon_2.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-info-tile.cjs.entry.js +1 -1
- package/dist/cjs/limel-info-tile.cjs.entry.js.map +1 -1
- package/dist/collection/components/form/templates/array-field-collapsible-item.js +19 -3
- package/dist/collection/components/form/templates/array-field-collapsible-item.js.map +1 -1
- package/dist/collection/components/info-tile/info-tile.js +1 -1
- package/dist/collection/components/info-tile/info-tile.js.map +1 -1
- package/dist/collection/components/portal/portal.js +17 -15
- package/dist/collection/components/portal/portal.js.map +1 -1
- package/dist/esm/limel-form.entry.js +19 -3
- package/dist/esm/limel-form.entry.js.map +1 -1
- package/dist/esm/limel-icon_2.entry.js +17 -15
- package/dist/esm/limel-icon_2.entry.js.map +1 -1
- package/dist/esm/limel-info-tile.entry.js +1 -1
- package/dist/esm/limel-info-tile.entry.js.map +1 -1
- package/dist/lime-elements/lime-elements.css +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-5862b851.entry.js +2 -0
- package/dist/lime-elements/p-5862b851.entry.js.map +1 -0
- package/dist/lime-elements/{p-c93ece44.entry.js → p-66bea69a.entry.js} +2 -2
- package/dist/lime-elements/p-66bea69a.entry.js.map +1 -0
- package/dist/lime-elements/{p-9bb104b1.entry.js → p-b852d3f5.entry.js} +2 -2
- package/dist/lime-elements/{p-9bb104b1.entry.js.map → p-b852d3f5.entry.js.map} +1 -1
- package/dist/types/components/form/templates/array-field-collapsible-item.d.ts +4 -1
- package/dist/types/components/portal/portal.d.ts +3 -1
- package/package.json +1 -1
- package/dist/lime-elements/p-c93ece44.entry.js.map +0 -1
- package/dist/lime-elements/p-d7c6ba55.entry.js +0 -2
- package/dist/lime-elements/p-d7c6ba55.entry.js.map +0 -1
|
@@ -1992,6 +1992,7 @@ var createPopper = /*#__PURE__*/popperGenerator({
|
|
|
1992
1992
|
|
|
1993
1993
|
const portalCss = ":host(limel-portal){display:block;position:absolute;top:0;bottom:0;width:100%;pointer-events:none}:host([hidden]){display:none}slot{display:none}";
|
|
1994
1994
|
|
|
1995
|
+
const IS_VISIBLE_CLASS = 'is-visible';
|
|
1995
1996
|
const Portal = class {
|
|
1996
1997
|
constructor(hostRef) {
|
|
1997
1998
|
registerInstance(this, hostRef);
|
|
@@ -2069,8 +2070,6 @@ const Portal = class {
|
|
|
2069
2070
|
this.container = document.createElement('div');
|
|
2070
2071
|
this.container.setAttribute('id', this.containerId);
|
|
2071
2072
|
this.container.setAttribute('class', 'limel-portal--container');
|
|
2072
|
-
this.container.style.fontFamily =
|
|
2073
|
-
'var(--limel-portal-font-family, inherit)';
|
|
2074
2073
|
Object.assign(this.container, {
|
|
2075
2074
|
portalSource: this.host,
|
|
2076
2075
|
});
|
|
@@ -2097,19 +2096,21 @@ const Portal = class {
|
|
|
2097
2096
|
this.container.parentElement.removeChild(this.container);
|
|
2098
2097
|
}
|
|
2099
2098
|
hideContainer() {
|
|
2100
|
-
this.container
|
|
2099
|
+
if (!this.container) {
|
|
2100
|
+
return;
|
|
2101
|
+
}
|
|
2102
|
+
this.container.classList.remove(IS_VISIBLE_CLASS);
|
|
2101
2103
|
}
|
|
2102
2104
|
showContainer() {
|
|
2103
|
-
this.container.
|
|
2105
|
+
this.container.classList.add(IS_VISIBLE_CLASS);
|
|
2104
2106
|
}
|
|
2105
2107
|
styleContainer() {
|
|
2108
|
+
this.setContainerWidth();
|
|
2109
|
+
this.setContainerHeight();
|
|
2110
|
+
this.setContainerStyles();
|
|
2111
|
+
}
|
|
2112
|
+
setContainerWidth() {
|
|
2106
2113
|
const hostWidth = this.host.getBoundingClientRect().width;
|
|
2107
|
-
if (this.visible) {
|
|
2108
|
-
this.container.style.display = 'block';
|
|
2109
|
-
}
|
|
2110
|
-
else {
|
|
2111
|
-
this.container.style.display = 'none';
|
|
2112
|
-
}
|
|
2113
2114
|
if (this.inheritParentWidth) {
|
|
2114
2115
|
const containerWidth = this.getContentWidth(this.container);
|
|
2115
2116
|
let width = containerWidth;
|
|
@@ -2118,10 +2119,6 @@ const Portal = class {
|
|
|
2118
2119
|
}
|
|
2119
2120
|
this.container.style.width = `${width}px`;
|
|
2120
2121
|
}
|
|
2121
|
-
this.ensureContainerFitsInViewPort();
|
|
2122
|
-
Object.keys(this.containerStyle).forEach((property) => {
|
|
2123
|
-
this.container.style[property] = this.containerStyle[property];
|
|
2124
|
-
});
|
|
2125
2122
|
}
|
|
2126
2123
|
getContentWidth(element) {
|
|
2127
2124
|
if (!element) {
|
|
@@ -2134,6 +2131,11 @@ const Portal = class {
|
|
|
2134
2131
|
const elementContent = element.querySelector('*');
|
|
2135
2132
|
return this.getContentWidth(elementContent);
|
|
2136
2133
|
}
|
|
2134
|
+
setContainerStyles() {
|
|
2135
|
+
Object.keys(this.containerStyle).forEach((property) => {
|
|
2136
|
+
this.container.style[property] = this.containerStyle[property];
|
|
2137
|
+
});
|
|
2138
|
+
}
|
|
2137
2139
|
createPopper() {
|
|
2138
2140
|
const config = this.createPopperConfig();
|
|
2139
2141
|
this.popperInstance = createPopper(this.anchor || this.host, this.container, config);
|
|
@@ -2193,7 +2195,7 @@ const Portal = class {
|
|
|
2193
2195
|
};
|
|
2194
2196
|
return flipPlacements[direction];
|
|
2195
2197
|
}
|
|
2196
|
-
|
|
2198
|
+
setContainerHeight() {
|
|
2197
2199
|
const viewHeight = Math.max(document.documentElement.clientHeight || 0, window.innerHeight || 0);
|
|
2198
2200
|
const { top, bottom } = this.host.getBoundingClientRect();
|
|
2199
2201
|
const spaceAboveTopOfSurface = Math.max(top, 0);
|