@esfaenza/es-table 15.2.35 → 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 +23 -11
- package/esm2020/lib/core/handlers/ColumnMetadataHandler.mjs +1 -2
- package/fesm2015/esfaenza-es-table.mjs +22 -11
- package/fesm2015/esfaenza-es-table.mjs.map +1 -1
- package/fesm2020/esfaenza-es-table.mjs +22 -11
- 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
|
@@ -1434,7 +1434,6 @@ class ColumnMetadataHandler {
|
|
|
1434
1434
|
if (this.est.viewMode)
|
|
1435
1435
|
setTimeout(() => {
|
|
1436
1436
|
if (this.est.MainGroupView) {
|
|
1437
|
-
//this.emitSearchRequest(true, this.MainGroupView);
|
|
1438
1437
|
for (let i = 0; i < this.est.groupSearchRequestsCache.length; i++) {
|
|
1439
1438
|
let view = this.est.groupSearchRequestsCache[i].view;
|
|
1440
1439
|
view.columns = this.est.MainGroupView.columns;
|
|
@@ -4222,6 +4221,7 @@ class EsTableComponent {
|
|
|
4222
4221
|
this.firstCoordinates = null;
|
|
4223
4222
|
//* Piango
|
|
4224
4223
|
this.EsTdsCache = {};
|
|
4224
|
+
this.retries = 0;
|
|
4225
4225
|
// Copia e incolla si effettuano solo se la tabella attuale è univocamente selezionata
|
|
4226
4226
|
this.copySubscription = this.copyPasteDetector.OnCopy.subscribe(() => { if (this.copyPasteDetector.ActiveEstReference == this)
|
|
4227
4227
|
this.handleCopy(); });
|
|
@@ -4481,7 +4481,7 @@ class EsTableComponent {
|
|
|
4481
4481
|
}
|
|
4482
4482
|
this.finalizeContext();
|
|
4483
4483
|
this.postBoundSourceCalculation();
|
|
4484
|
-
if (this.View && !this.View.selfsearch && this.EsTableHandledSearch) {
|
|
4484
|
+
if (this.View && !this.View.selfsearch && this.EsTableHandledSearch && !this.View.firstsearch) {
|
|
4485
4485
|
this.View.selfsearch = true;
|
|
4486
4486
|
this.changed(true);
|
|
4487
4487
|
this.onSearchRequest.emit(false);
|
|
@@ -5500,18 +5500,29 @@ class EsTableComponent {
|
|
|
5500
5500
|
this.EsTdsCache[`${event.id}_${event.hash}`] = event.self;
|
|
5501
5501
|
}
|
|
5502
5502
|
//* Piango ancora
|
|
5503
|
-
|
|
5503
|
+
// Gestione Embedding
|
|
5504
5504
|
showDialog(dlg, elementRef) {
|
|
5505
5505
|
dlg.show();
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
this.
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5506
|
+
this.retries = 0;
|
|
5507
|
+
if (this.emb.Embedded)
|
|
5508
|
+
this.doFixDialog(dlg, elementRef);
|
|
5509
|
+
}
|
|
5510
|
+
doFixDialog(dlg, elementRef) {
|
|
5511
|
+
this.retries++;
|
|
5512
|
+
let element = elementRef.nativeElement;
|
|
5513
|
+
if (!element) {
|
|
5514
|
+
if (this.retries > 10)
|
|
5515
|
+
return;
|
|
5516
|
+
setTimeout(() => this.doFixDialog(dlg, elementRef), 25);
|
|
5517
|
+
return;
|
|
5514
5518
|
}
|
|
5519
|
+
this.rendererRef.setStyle(element, "padding-top", "5%");
|
|
5520
|
+
this.rendererRef.setStyle(element, "margin-left", "-110px");
|
|
5521
|
+
this.rendererRef.setStyle(element, "width", "calc(100% + 110px)");
|
|
5522
|
+
this.rendererRef.setStyle(element, "overflow", "hidden");
|
|
5523
|
+
this.doFixBody(elementRef);
|
|
5524
|
+
let backdropHeight = dlg.backdrop.instance.element.nativeElement.clientHeight;
|
|
5525
|
+
this.emb.MainWindow.postMessage({ type: "modal-open", backdropHeight: backdropHeight }, "*");
|
|
5515
5526
|
}
|
|
5516
5527
|
doFixBody(elementRef) {
|
|
5517
5528
|
let body = elementRef.nativeElement.getElementsByClassName("modal-body")[0];
|