@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.
- app-ng-runtime/components/base/bundles/index.umd.js +4 -26
- app-ng-runtime/components/base/esm2020/pipes/custom-pipes.mjs +5 -11
- app-ng-runtime/components/base/fesm2015/index.mjs +4 -26
- app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/base/fesm2020/index.mjs +4 -26
- app-ng-runtime/components/base/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/base/pipes/custom-pipes.d.ts +2 -4
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/runtime/base/bundles/index.umd.js +1 -1
- app-ng-runtime/runtime/base/esm2020/services/pipe-provider.service.mjs +2 -2
- app-ng-runtime/runtime/base/fesm2015/index.mjs +1 -1
- app-ng-runtime/runtime/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/runtime/base/fesm2020/index.mjs +1 -1
- app-ng-runtime/runtime/base/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/base/esm2020/pipes/wm-pipe.mjs +0 -17
- app-ng-runtime/components/base/pipes/wm-pipe.d.ts +0 -9
|
@@ -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
|
|
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
|
|
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)
|
|
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 }
|
|
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+))?)?$/)) {
|