@wavemaker/app-ng-runtime 11.5.1-rc.5402 → 11.5.2-next.26257

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.
@@ -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,11 +2356,8 @@ 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 {
2359
+ class ToDatePipe {
2377
2360
  transform(data, format, timezone, compInstance) {
2378
- if (this.isCustomPipe) {
2379
- return this.customFormatter(data, arguments);
2380
- }
2381
2361
  let timestamp;
2382
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
2383
2363
  if (data === 'null' || data === '') {
@@ -2406,21 +2386,19 @@ class ToDatePipe extends WmPipe {
2406
2386
  }
2407
2387
  return '';
2408
2388
  }
2409
- constructor(datePipe, i18nService, customPipeManager) {
2410
- super('toDate', customPipeManager);
2389
+ constructor(datePipe, i18nService) {
2411
2390
  this.datePipe = datePipe;
2412
2391
  this.i18nService = i18nService;
2413
- this.customPipeManager = customPipeManager;
2414
2392
  }
2415
2393
  }
2416
- 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)); };
2417
2395
  ToDatePipe.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "toDate", type: ToDatePipe, pure: true });
2418
2396
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ToDatePipe, [{
2419
2397
  type: Pipe,
2420
2398
  args: [{
2421
2399
  name: 'toDate'
2422
2400
  }]
2423
- }], function () { return [{ type: i1$1.DatePipe }, { type: i1.AbstractI18nService }, { type: i1.CustomPipeManager }]; }, null); })();
2401
+ }], function () { return [{ type: i1$1.DatePipe }, { type: i1.AbstractI18nService }]; }, null); })();
2424
2402
  class ToNumberPipe {
2425
2403
  transform(data, fracSize) {
2426
2404
  if (fracSize && !String(fracSize).match(/^(\d+)?\.((\d+)(-(\d+))?)?$/)) {