@wavemaker/app-ng-runtime 11.5.3-next.26259 → 11.5.3-next.51001

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 (62) hide show
  1. app-ng-runtime/components/base/bundles/index.umd.js +10 -39
  2. app-ng-runtime/components/base/esm2020/pipes/custom-pipes.mjs +11 -24
  3. app-ng-runtime/components/base/fesm2015/index.mjs +10 -39
  4. app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
  5. app-ng-runtime/components/base/fesm2020/index.mjs +10 -39
  6. app-ng-runtime/components/base/fesm2020/index.mjs.map +1 -1
  7. app-ng-runtime/components/base/pipes/custom-pipes.d.ts +2 -5
  8. app-ng-runtime/components/chart/bundles/index.umd.js +34 -46
  9. app-ng-runtime/components/chart/esm2020/chart.component.mjs +5 -5
  10. app-ng-runtime/components/chart/esm2020/chart.utils.mjs +13 -45
  11. app-ng-runtime/components/chart/fesm2015/index.mjs +16 -48
  12. app-ng-runtime/components/chart/fesm2015/index.mjs.map +1 -1
  13. app-ng-runtime/components/chart/fesm2020/index.mjs +16 -48
  14. app-ng-runtime/components/chart/fesm2020/index.mjs.map +1 -1
  15. app-ng-runtime/components/containers/wizard/bundles/index.umd.js +3 -14
  16. app-ng-runtime/components/containers/wizard/esm2020/wizard.component.mjs +4 -13
  17. app-ng-runtime/components/containers/wizard/esm2020/wizard.props.mjs +1 -2
  18. app-ng-runtime/components/containers/wizard/fesm2015/index.mjs +3 -14
  19. app-ng-runtime/components/containers/wizard/fesm2015/index.mjs.map +1 -1
  20. app-ng-runtime/components/containers/wizard/fesm2020/index.mjs +3 -13
  21. app-ng-runtime/components/containers/wizard/fesm2020/index.mjs.map +1 -1
  22. app-ng-runtime/components/containers/wizard/wizard.component.d.ts +0 -2
  23. app-ng-runtime/components/input/default/bundles/index.umd.js +162 -176
  24. app-ng-runtime/components/input/default/esm2020/number/number.component.mjs +6 -7
  25. app-ng-runtime/components/input/default/esm2020/number/number.props.mjs +2 -4
  26. app-ng-runtime/components/input/default/esm2020/text/calendar/input-calendar.component.mjs +6 -7
  27. app-ng-runtime/components/input/default/esm2020/text/calendar/input-calendar.props.mjs +2 -4
  28. app-ng-runtime/components/input/default/esm2020/text/color/input-color.component.mjs +6 -7
  29. app-ng-runtime/components/input/default/esm2020/text/color/input-color.props.mjs +2 -4
  30. app-ng-runtime/components/input/default/esm2020/text/email/input-email.component.mjs +6 -7
  31. app-ng-runtime/components/input/default/esm2020/text/email/input-email.props.mjs +2 -4
  32. app-ng-runtime/components/input/default/esm2020/text/number/input-number.component.mjs +5 -5
  33. app-ng-runtime/components/input/default/esm2020/text/number/input-number.props.mjs +2 -4
  34. app-ng-runtime/components/input/default/esm2020/text/text/input-text.component.mjs +7 -8
  35. app-ng-runtime/components/input/default/esm2020/text/text/input-text.props.mjs +2 -4
  36. app-ng-runtime/components/input/default/esm2020/textarea/textarea.component.mjs +5 -5
  37. app-ng-runtime/components/input/default/esm2020/textarea/textarea.props.mjs +1 -3
  38. app-ng-runtime/components/input/default/fesm2015/index.mjs +43 -57
  39. app-ng-runtime/components/input/default/fesm2015/index.mjs.map +1 -1
  40. app-ng-runtime/components/input/default/fesm2020/index.mjs +43 -57
  41. app-ng-runtime/components/input/default/fesm2020/index.mjs.map +1 -1
  42. app-ng-runtime/components/input/default/number/number.component.d.ts +0 -2
  43. app-ng-runtime/components/input/default/text/calendar/input-calendar.component.d.ts +0 -2
  44. app-ng-runtime/components/input/default/text/color/input-color.component.d.ts +0 -2
  45. app-ng-runtime/components/input/default/text/email/input-email.component.d.ts +0 -2
  46. app-ng-runtime/components/input/default/text/number/input-number.component.d.ts +0 -2
  47. app-ng-runtime/components/input/default/text/text/input-text.component.d.ts +0 -2
  48. app-ng-runtime/components/input/default/textarea/textarea.component.d.ts +0 -2
  49. app-ng-runtime/package.json +1 -1
  50. app-ng-runtime/runtime/base/bundles/index.umd.js +1 -26
  51. app-ng-runtime/runtime/base/components/base-page.component.d.ts +0 -1
  52. app-ng-runtime/runtime/base/esm2020/components/base-page.component.mjs +1 -26
  53. app-ng-runtime/runtime/base/esm2020/services/pipe-provider.service.mjs +2 -2
  54. app-ng-runtime/runtime/base/fesm2015/index.mjs +1 -26
  55. app-ng-runtime/runtime/base/fesm2015/index.mjs.map +1 -1
  56. app-ng-runtime/runtime/base/fesm2020/index.mjs +1 -26
  57. app-ng-runtime/runtime/base/fesm2020/index.mjs.map +1 -1
  58. app-ng-runtime/scripts/@wavemaker.com/nvd3/build/nv.d3.min.js +13 -0
  59. app-ng-runtime/scripts/d3/d3.min.js +5 -2
  60. app-ng-runtime/components/base/esm2020/pipes/wm-pipe.mjs +0 -17
  61. app-ng-runtime/components/base/pipes/wm-pipe.d.ts +0 -9
  62. app-ng-runtime/scripts/@wavemaker/nvd3/build/nv.d3.min.js +0 -1
@@ -2328,23 +2328,6 @@ TextContentDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TextCo
2328
2328
  type: Input
2329
2329
  }] }); })();
2330
2330
 
2331
- class WmPipe {
2332
- constructor(pipeName, customPipeManager) {
2333
- this.pipeName = pipeName;
2334
- this.customPipeManager = customPipeManager;
2335
- this.pipeRef = this.customPipeManager ? this.customPipeManager.getCustomPipe(pipeName) : null;
2336
- this.isCustomPipe = this.pipeRef && _.isFunction(this.pipeRef.formatter);
2337
- }
2338
- customFormatter(data, args) {
2339
- try {
2340
- return this.pipeRef.formatter(...args);
2341
- }
2342
- catch (error) {
2343
- return data;
2344
- }
2345
- }
2346
- }
2347
-
2348
2331
  const getEpochValue = data => {
2349
2332
  let epoch;
2350
2333
  // For data in form of string number ('123'), convert to number (123). And don't parse date objects.
@@ -2373,33 +2356,23 @@ TrailingZeroDecimalPipe.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "traili
2373
2356
  name: 'trailingZeroDecimalPipe'
2374
2357
  }]
2375
2358
  }], function () { return [{ type: i1$1.DecimalPipe }]; }, null); })();
2376
- class ToDatePipe extends WmPipe {
2377
- // This method calls the custom formatter fn after applying the exisitng date pattern
2378
- returnFn(data, args) {
2379
- if (this.isCustomPipe) {
2380
- if (args) {
2381
- args[0] = data;
2382
- }
2383
- return this.customFormatter(data, args);
2384
- }
2385
- return data;
2386
- }
2359
+ class ToDatePipe {
2387
2360
  transform(data, format, timezone, compInstance) {
2388
2361
  let timestamp;
2389
2362
  // 'null' is to be treated as a special case, If user wants to enter null value, empty string will be passed to the backend
2390
2363
  if (data === 'null' || data === '') {
2391
- return this.returnFn('', arguments);
2364
+ return '';
2392
2365
  }
2393
2366
  if (!isDefined(data)) {
2394
- return this.returnFn('', arguments);
2367
+ return '';
2395
2368
  }
2396
2369
  timestamp = getEpochValue(data);
2397
2370
  if (timestamp) {
2398
2371
  if (format === 'timestamp') {
2399
- return this.returnFn(timestamp, arguments);
2372
+ return timestamp;
2400
2373
  }
2401
2374
  if (format === 'UTC') {
2402
- return this.returnFn(new Date(timestamp).toISOString(), arguments);
2375
+ return new Date(timestamp).toISOString();
2403
2376
  }
2404
2377
  let formattedVal;
2405
2378
  const timeZone = this.i18nService ? this.i18nService.getTimezone(compInstance) : timezone;
@@ -2409,25 +2382,23 @@ class ToDatePipe extends WmPipe {
2409
2382
  else {
2410
2383
  formattedVal = this.datePipe.transform(timestamp, format);
2411
2384
  }
2412
- return this.returnFn(formattedVal, arguments);
2385
+ return formattedVal;
2413
2386
  }
2414
- return this.returnFn('', arguments);
2387
+ return '';
2415
2388
  }
2416
- constructor(datePipe, i18nService, customPipeManager) {
2417
- super('toDate', customPipeManager);
2389
+ constructor(datePipe, i18nService) {
2418
2390
  this.datePipe = datePipe;
2419
2391
  this.i18nService = i18nService;
2420
- this.customPipeManager = customPipeManager;
2421
2392
  }
2422
2393
  }
2423
- ToDatePipe.ɵfac = function ToDatePipe_Factory(t) { return new (t || ToDatePipe)(i0.ɵɵdirectiveInject(i1$1.DatePipe, 16), i0.ɵɵdirectiveInject(i1.AbstractI18nService, 16), i0.ɵɵdirectiveInject(i1.CustomPipeManager, 16)); };
2394
+ ToDatePipe.ɵfac = function ToDatePipe_Factory(t) { return new (t || ToDatePipe)(i0.ɵɵdirectiveInject(i1$1.DatePipe, 16), i0.ɵɵdirectiveInject(i1.AbstractI18nService, 16)); };
2424
2395
  ToDatePipe.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "toDate", type: ToDatePipe, pure: true });
2425
2396
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToDatePipe, [{
2426
2397
  type: Pipe,
2427
2398
  args: [{
2428
2399
  name: 'toDate'
2429
2400
  }]
2430
- }], function () { return [{ type: i1$1.DatePipe }, { type: i1.AbstractI18nService }, { type: i1.CustomPipeManager }]; }, null); })();
2401
+ }], function () { return [{ type: i1$1.DatePipe }, { type: i1.AbstractI18nService }]; }, null); })();
2431
2402
  class ToNumberPipe {
2432
2403
  transform(data, fracSize) {
2433
2404
  if (fracSize && !String(fracSize).match(/^(\d+)?\.((\d+)(-(\d+))?)?$/)) {