@wavemaker/app-ng-runtime 11.5.1-rc.5402 → 11.5.1-rc.5413
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/components/base/bundles/index.umd.js +15 -8
- app-ng-runtime/components/base/esm2020/pipes/custom-pipes.mjs +16 -9
- app-ng-runtime/components/base/fesm2015/index.mjs +15 -8
- app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/base/fesm2020/index.mjs +15 -8
- app-ng-runtime/components/base/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/base/pipes/custom-pipes.d.ts +1 -0
- app-ng-runtime/components/containers/wizard/bundles/index.umd.js +14 -3
- app-ng-runtime/components/containers/wizard/esm2020/wizard.component.mjs +13 -4
- app-ng-runtime/components/containers/wizard/esm2020/wizard.props.mjs +2 -1
- app-ng-runtime/components/containers/wizard/fesm2015/index.mjs +14 -3
- app-ng-runtime/components/containers/wizard/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/wizard/fesm2020/index.mjs +13 -3
- app-ng-runtime/components/containers/wizard/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/wizard/wizard.component.d.ts +2 -0
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/runtime/base/bundles/index.umd.js +25 -0
- app-ng-runtime/runtime/base/components/base-page.component.d.ts +1 -0
- app-ng-runtime/runtime/base/esm2020/components/base-page.component.mjs +26 -1
- app-ng-runtime/runtime/base/fesm2015/index.mjs +25 -0
- app-ng-runtime/runtime/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/runtime/base/fesm2020/index.mjs +25 -0
- app-ng-runtime/runtime/base/fesm2020/index.mjs.map +1 -1
|
@@ -1329,9 +1329,34 @@ class BasePageComponent extends FragmentMonitor {
|
|
|
1329
1329
|
});
|
|
1330
1330
|
}
|
|
1331
1331
|
ngOnDestroy() {
|
|
1332
|
+
//this.captureApplicationThumbnail();
|
|
1332
1333
|
this.savePageSnapShot();
|
|
1333
1334
|
this.destroy$.complete();
|
|
1334
1335
|
}
|
|
1336
|
+
captureApplicationThumbnail() {
|
|
1337
|
+
const root = this;
|
|
1338
|
+
let captureApplicationThumbnail = localStorage.getItem("captureApplicationThumbnail") === "true" ? true : false;
|
|
1339
|
+
if (captureApplicationThumbnail && this.App.landingPageName === this.pageName && !this.App.isApplicationThumbnailCaptured) {
|
|
1340
|
+
html2canvas(document.body)
|
|
1341
|
+
.then(canvas => {
|
|
1342
|
+
try {
|
|
1343
|
+
root.App.isApplicationThumbnailCaptured = true;
|
|
1344
|
+
const screenshotUrl = canvas.toDataURL("image/png");
|
|
1345
|
+
console.log(screenshotUrl);
|
|
1346
|
+
const a = document.createElement("a");
|
|
1347
|
+
a.href = screenshotUrl;
|
|
1348
|
+
a.download = "screenshot.jpg";
|
|
1349
|
+
a.click();
|
|
1350
|
+
}
|
|
1351
|
+
catch (error) {
|
|
1352
|
+
console.error('Error in html2canvas then block:', error);
|
|
1353
|
+
}
|
|
1354
|
+
})
|
|
1355
|
+
.catch(error => {
|
|
1356
|
+
console.error('Error in html2canvas promise:', error);
|
|
1357
|
+
});
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1335
1360
|
onReady() { }
|
|
1336
1361
|
onBeforePageReady() { }
|
|
1337
1362
|
onBeforePageLeave() { }
|