@esfaenza/extensions 15.2.42 → 15.2.44
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.
|
@@ -1144,7 +1144,7 @@ class AppEmbeddingExtensions {
|
|
|
1144
1144
|
return;
|
|
1145
1145
|
}
|
|
1146
1146
|
let newRelativeUrl = this.router.createUrlTree([event?.data?.url]);
|
|
1147
|
-
let baseUrl = window.location.href.replace(this.router.url, '');
|
|
1147
|
+
let baseUrl = window.location.href.replace(this.router.url.replace("?ignoreStorage=true", ''), '');
|
|
1148
1148
|
let newUrl = baseUrl + decodeURIComponent(newRelativeUrl.toString());
|
|
1149
1149
|
if (replaceState)
|
|
1150
1150
|
history.pushState({ _pushed: true }, "", newUrl);
|
|
@@ -1172,7 +1172,7 @@ class AppEmbeddingExtensions {
|
|
|
1172
1172
|
const wrapperPaddingLeft = parseInt(wrapperStyles.getPropertyValue("padding-left"));
|
|
1173
1173
|
const wrapperPaddingRight = parseInt(wrapperStyles.getPropertyValue("padding-right"));
|
|
1174
1174
|
console.log(`Window message - Modal Open -> Backdrop Height: ${event?.data?.backdropHeight}`);
|
|
1175
|
-
var topHeight =
|
|
1175
|
+
var topHeight = 80; // valore fisso, distanza fra il top e l'inizio dell'iframe, non sarà mai diverso
|
|
1176
1176
|
var rightSpace = wrapperPaddingRight; // valore fisso, distanza fra la fine dell'iframe e il lato sinistro dello schermo, non sarà mai diverso
|
|
1177
1177
|
var leftSpace = this.sidebarWidth + wrapperPaddingLeft;
|
|
1178
1178
|
let commonStyles = "position: absolute; z-index: 9999; background-color: #000; opacity: 0.5; ";
|
|
@@ -1189,6 +1189,10 @@ class AppEmbeddingExtensions {
|
|
|
1189
1189
|
right.className = "embedded-modal-right";
|
|
1190
1190
|
right.style.cssText = commonStyles + `height: calc(100% - ${topHeight}px); top: ${topHeight}px; right: 0; width: ${rightSpace}px;`;
|
|
1191
1191
|
right.id = "right";
|
|
1192
|
+
// const bottom = document.createElement("div");
|
|
1193
|
+
// bottom.className = "embedded-modal-bottom";
|
|
1194
|
+
// bottom.style.cssText = commonStyles + `height: ${topHeight}px; bottom: 0; width: calc(100% - ${leftSpace}px); left: ${leftSpace}px`;
|
|
1195
|
+
// bottom.id = "bottom";
|
|
1192
1196
|
document.body.appendChild(top);
|
|
1193
1197
|
document.body.appendChild(left);
|
|
1194
1198
|
document.body.appendChild(right);
|