@esfaenza/es-table 15.2.36 → 15.2.37
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/esm2020/lib/components/es-table/es_table.component.mjs +22 -10
- package/fesm2015/esfaenza-es-table.mjs +21 -9
- package/fesm2015/esfaenza-es-table.mjs.map +1 -1
- package/fesm2020/esfaenza-es-table.mjs +21 -9
- package/fesm2020/esfaenza-es-table.mjs.map +1 -1
- package/lib/components/es-table/es_table.component.d.ts +2 -0
- package/package.json +1 -1
|
@@ -4238,6 +4238,7 @@ class EsTableComponent {
|
|
|
4238
4238
|
this.firstCoordinates = null;
|
|
4239
4239
|
//* Piango
|
|
4240
4240
|
this.EsTdsCache = {};
|
|
4241
|
+
this.retries = 0;
|
|
4241
4242
|
// Copia e incolla si effettuano solo se la tabella attuale è univocamente selezionata
|
|
4242
4243
|
this.copySubscription = this.copyPasteDetector.OnCopy.subscribe(() => {
|
|
4243
4244
|
if (this.copyPasteDetector.ActiveEstReference == this)
|
|
@@ -5542,18 +5543,29 @@ class EsTableComponent {
|
|
|
5542
5543
|
this.EsTdsCache[`${event.id}_${event.hash}`] = event.self;
|
|
5543
5544
|
}
|
|
5544
5545
|
//* Piango ancora
|
|
5545
|
-
|
|
5546
|
+
// Gestione Embedding
|
|
5546
5547
|
showDialog(dlg, elementRef) {
|
|
5547
5548
|
dlg.show();
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
this.
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5549
|
+
this.retries = 0;
|
|
5550
|
+
if (this.emb.Embedded)
|
|
5551
|
+
this.doFixDialog(dlg, elementRef);
|
|
5552
|
+
}
|
|
5553
|
+
doFixDialog(dlg, elementRef) {
|
|
5554
|
+
this.retries++;
|
|
5555
|
+
let element = elementRef.nativeElement;
|
|
5556
|
+
if (!element) {
|
|
5557
|
+
if (this.retries > 10)
|
|
5558
|
+
return;
|
|
5559
|
+
setTimeout(() => this.doFixDialog(dlg, elementRef), 25);
|
|
5560
|
+
return;
|
|
5556
5561
|
}
|
|
5562
|
+
this.rendererRef.setStyle(element, "padding-top", "5%");
|
|
5563
|
+
this.rendererRef.setStyle(element, "margin-left", "-110px");
|
|
5564
|
+
this.rendererRef.setStyle(element, "width", "calc(100% + 110px)");
|
|
5565
|
+
this.rendererRef.setStyle(element, "overflow", "hidden");
|
|
5566
|
+
this.doFixBody(elementRef);
|
|
5567
|
+
let backdropHeight = dlg.backdrop.instance.element.nativeElement.clientHeight;
|
|
5568
|
+
this.emb.MainWindow.postMessage({ type: "modal-open", backdropHeight: backdropHeight }, "*");
|
|
5557
5569
|
}
|
|
5558
5570
|
doFixBody(elementRef) {
|
|
5559
5571
|
let body = elementRef.nativeElement.getElementsByClassName("modal-body")[0];
|