@wavemaker/app-ng-runtime 11.5.1-rc.5421 → 11.5.1-rc.5422

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.
Files changed (46) hide show
  1. app-ng-runtime/components/base/bundles/index.umd.js +39 -10
  2. app-ng-runtime/components/base/esm2020/pipes/custom-pipes.mjs +24 -11
  3. app-ng-runtime/components/base/esm2020/pipes/wm-pipe.mjs +17 -0
  4. app-ng-runtime/components/base/fesm2015/index.mjs +39 -10
  5. app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
  6. app-ng-runtime/components/base/fesm2020/index.mjs +39 -10
  7. app-ng-runtime/components/base/fesm2020/index.mjs.map +1 -1
  8. app-ng-runtime/components/base/pipes/custom-pipes.d.ts +5 -2
  9. app-ng-runtime/components/base/pipes/wm-pipe.d.ts +9 -0
  10. app-ng-runtime/components/chart/bundles/index.umd.js +20 -32
  11. app-ng-runtime/components/chart/esm2020/chart.component.mjs +5 -5
  12. app-ng-runtime/components/chart/esm2020/chart.utils.mjs +19 -11
  13. app-ng-runtime/components/chart/fesm2015/index.mjs +22 -14
  14. app-ng-runtime/components/chart/fesm2015/index.mjs.map +1 -1
  15. app-ng-runtime/components/chart/fesm2020/index.mjs +22 -14
  16. app-ng-runtime/components/chart/fesm2020/index.mjs.map +1 -1
  17. app-ng-runtime/components/containers/wizard/bundles/index.umd.js +14 -3
  18. app-ng-runtime/components/containers/wizard/esm2020/wizard.component.mjs +13 -4
  19. app-ng-runtime/components/containers/wizard/esm2020/wizard.props.mjs +2 -1
  20. app-ng-runtime/components/containers/wizard/fesm2015/index.mjs +14 -3
  21. app-ng-runtime/components/containers/wizard/fesm2015/index.mjs.map +1 -1
  22. app-ng-runtime/components/containers/wizard/fesm2020/index.mjs +13 -3
  23. app-ng-runtime/components/containers/wizard/fesm2020/index.mjs.map +1 -1
  24. app-ng-runtime/components/containers/wizard/wizard.component.d.ts +2 -0
  25. app-ng-runtime/components/input/default/bundles/index.umd.js +18 -6
  26. app-ng-runtime/components/input/default/esm2020/number/number.props.mjs +4 -2
  27. app-ng-runtime/components/input/default/esm2020/text/calendar/input-calendar.props.mjs +4 -2
  28. app-ng-runtime/components/input/default/esm2020/text/color/input-color.props.mjs +4 -2
  29. app-ng-runtime/components/input/default/esm2020/text/email/input-email.props.mjs +4 -2
  30. app-ng-runtime/components/input/default/esm2020/text/number/input-number.props.mjs +4 -2
  31. app-ng-runtime/components/input/default/esm2020/text/text/input-text.props.mjs +4 -2
  32. app-ng-runtime/components/input/default/fesm2015/index.mjs +18 -6
  33. app-ng-runtime/components/input/default/fesm2015/index.mjs.map +1 -1
  34. app-ng-runtime/components/input/default/fesm2020/index.mjs +18 -6
  35. app-ng-runtime/components/input/default/fesm2020/index.mjs.map +1 -1
  36. app-ng-runtime/package.json +1 -1
  37. app-ng-runtime/runtime/base/bundles/index.umd.js +26 -1
  38. app-ng-runtime/runtime/base/components/base-page.component.d.ts +1 -0
  39. app-ng-runtime/runtime/base/esm2020/components/base-page.component.mjs +26 -1
  40. app-ng-runtime/runtime/base/esm2020/services/pipe-provider.service.mjs +2 -2
  41. app-ng-runtime/runtime/base/fesm2015/index.mjs +26 -1
  42. app-ng-runtime/runtime/base/fesm2015/index.mjs.map +1 -1
  43. app-ng-runtime/runtime/base/fesm2020/index.mjs +26 -1
  44. app-ng-runtime/runtime/base/fesm2020/index.mjs.map +1 -1
  45. app-ng-runtime/scripts/@wavemaker.com/nvd3/build/nv.d3.min.js +1 -13
  46. app-ng-runtime/scripts/d3/d3.min.js +2 -5
@@ -1318,9 +1318,34 @@ class BasePageComponent extends FragmentMonitor {
1318
1318
  });
1319
1319
  }
1320
1320
  ngOnDestroy() {
1321
+ //this.captureApplicationThumbnail();
1321
1322
  this.savePageSnapShot();
1322
1323
  this.destroy$.complete();
1323
1324
  }
1325
+ captureApplicationThumbnail() {
1326
+ const root = this;
1327
+ let captureApplicationThumbnail = localStorage.getItem("captureApplicationThumbnail") === "true" ? true : false;
1328
+ if (captureApplicationThumbnail && this.App.landingPageName === this.pageName && !this.App.isApplicationThumbnailCaptured) {
1329
+ html2canvas(document.body)
1330
+ .then(canvas => {
1331
+ try {
1332
+ root.App.isApplicationThumbnailCaptured = true;
1333
+ const screenshotUrl = canvas.toDataURL("image/png");
1334
+ console.log(screenshotUrl);
1335
+ const a = document.createElement("a");
1336
+ a.href = screenshotUrl;
1337
+ a.download = "screenshot.jpg";
1338
+ a.click();
1339
+ }
1340
+ catch (error) {
1341
+ console.error('Error in html2canvas then block:', error);
1342
+ }
1343
+ })
1344
+ .catch(error => {
1345
+ console.error('Error in html2canvas promise:', error);
1346
+ });
1347
+ }
1348
+ }
1324
1349
  onReady() { }
1325
1350
  onBeforePageReady() { }
1326
1351
  onBeforePageLeave() { }
@@ -2365,7 +2390,7 @@ class PipeProvider {
2365
2390
  this.preparePipeMeta(CurrencyPipe, 'currency', true, [this._locale]),
2366
2391
  this.preparePipeMeta(DatePipe, 'date', true, [this._locale]),
2367
2392
  this.preparePipeMeta(ToDatePipe, 'toDate', true, [
2368
- new DatePipe(this._locale)
2393
+ new DatePipe(this._locale), undefined, this.injector.get(CustomPipeManager)
2369
2394
  ]),
2370
2395
  this.preparePipeMeta(ToNumberPipe, 'toNumber', true, [
2371
2396
  new DecimalPipe(this._locale),