@wavemaker/app-ng-runtime 11.5.3-next.1417092 → 11.5.3-next.1417093
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.
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/runtime/base/bundles/index.umd.js +18 -24
- app-ng-runtime/runtime/base/components/base-page.component.d.ts +2 -2
- app-ng-runtime/runtime/base/esm2020/components/base-page.component.mjs +13 -17
- app-ng-runtime/runtime/base/fesm2015/index.mjs +15 -21
- app-ng-runtime/runtime/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/runtime/base/fesm2020/index.mjs +12 -16
- app-ng-runtime/runtime/base/fesm2020/index.mjs.map +1 -1
|
@@ -1308,6 +1308,7 @@ class BasePageComponent extends FragmentMonitor {
|
|
|
1308
1308
|
this.onPageContentReady = () => {
|
|
1309
1309
|
this.fragmentsLoaded$.subscribe(noop$1, noop$1, () => {
|
|
1310
1310
|
this.invokeOnReady();
|
|
1311
|
+
this.handlePageThumbnails();
|
|
1311
1312
|
});
|
|
1312
1313
|
unMuteWatchers();
|
|
1313
1314
|
this.viewInit$.complete();
|
|
@@ -1318,29 +1319,24 @@ class BasePageComponent extends FragmentMonitor {
|
|
|
1318
1319
|
});
|
|
1319
1320
|
}
|
|
1320
1321
|
ngOnDestroy() {
|
|
1321
|
-
this.
|
|
1322
|
-
|
|
1323
|
-
this.destroy$.complete();
|
|
1324
|
-
});
|
|
1322
|
+
this.savePageSnapShot();
|
|
1323
|
+
this.destroy$.complete();
|
|
1325
1324
|
}
|
|
1326
|
-
|
|
1325
|
+
handlePageThumbnails() {
|
|
1327
1326
|
let captureAppThumbnail = this.canCaptureApplicationThumbnail() ?? false;
|
|
1328
|
-
if (captureAppThumbnail
|
|
1329
|
-
|
|
1327
|
+
if (captureAppThumbnail) {
|
|
1328
|
+
setTimeout(() => {
|
|
1329
|
+
this.emitRunTimeAppThumbnailCaptureEvent();
|
|
1330
|
+
}, 2000);
|
|
1330
1331
|
}
|
|
1331
1332
|
}
|
|
1332
1333
|
canCaptureApplicationThumbnail() {
|
|
1333
|
-
//Conditions to capture only home pages
|
|
1334
|
+
//Conditions to capture only home pages.
|
|
1334
1335
|
return (localStorage.getItem("captureApplicationThumbnail") === 'true' && this?.App?.landingPageName === this?.pageName && window?.top?.html2canvas && !this.App.isAppThumbnailCaptured) ?? false;
|
|
1335
1336
|
}
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
this.App.isAppThumbnailCaptured = true;
|
|
1340
|
-
setTimeout(() => {
|
|
1341
|
-
resolve();
|
|
1342
|
-
}, 3000);
|
|
1343
|
-
});
|
|
1337
|
+
emitRunTimeAppThumbnailCaptureEvent() {
|
|
1338
|
+
window.top.postMessage({ key: 'capture-app-thumbnail' }, "*");
|
|
1339
|
+
this.App.isAppThumbnailCaptured = true;
|
|
1344
1340
|
}
|
|
1345
1341
|
onReady() { }
|
|
1346
1342
|
onBeforePageReady() { }
|