@wavemaker/app-runtime-wm-build 11.3.4-rc.5323 → 11.3.4-rc.5326
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.
|
@@ -46421,6 +46421,11 @@
|
|
|
46421
46421
|
return;
|
|
46422
46422
|
}
|
|
46423
46423
|
this.variableInflight = false;
|
|
46424
|
+
if (newValue && newValue.length === 0) {
|
|
46425
|
+
this.callDataGridMethod("setStatus", "nodata", this.nodatamessage);
|
|
46426
|
+
} else {
|
|
46427
|
+
this.callDataGridMethod("setStatus", "ready");
|
|
46428
|
+
}
|
|
46424
46429
|
if (this.gridOptions.isNavTypeScrollOrOndemand()) {
|
|
46425
46430
|
_a = __read(this.paginationService.updateFieldsOnPagination(this, newValue), 2),
|
|
46426
46431
|
this._gridData = _a[0], this.currentPage = _a[1];
|
|
@@ -82244,9 +82249,152 @@
|
|
|
82244
82249
|
type: ComponentRefProvider
|
|
82245
82250
|
} ];
|
|
82246
82251
|
};
|
|
82252
|
+
var PipeProvider = function() {
|
|
82253
|
+
function PipeProvider(compiler, injector, domSanitizer, i18service) {
|
|
82254
|
+
var _this = this;
|
|
82255
|
+
var _a;
|
|
82256
|
+
this.compiler = compiler;
|
|
82257
|
+
this.injector = injector;
|
|
82258
|
+
this.domSanitizer = domSanitizer;
|
|
82259
|
+
this.i18service = i18service;
|
|
82260
|
+
this._locale = i2.getSessionStorageItem("selectedLocale") || "en";
|
|
82261
|
+
this.formatsByLocale = (_a = this.i18service) === null || _a === void 0 ? void 0 : _a.getwidgetLocale();
|
|
82262
|
+
this.preparePipeMeta = function(reference, name, pure, diDeps) {
|
|
82263
|
+
if (diDeps === void 0) {
|
|
82264
|
+
diDeps = [];
|
|
82265
|
+
}
|
|
82266
|
+
return {
|
|
82267
|
+
type: {
|
|
82268
|
+
reference: reference,
|
|
82269
|
+
diDeps: diDeps
|
|
82270
|
+
},
|
|
82271
|
+
name: name,
|
|
82272
|
+
pure: pure
|
|
82273
|
+
};
|
|
82274
|
+
};
|
|
82275
|
+
this._pipeData = [ this.preparePipeMeta(common.AsyncPipe, "async", false, [ i0.ChangeDetectorRef ]), this.preparePipeMeta(common.SlicePipe, "slice", false), this.preparePipeMeta(common.PercentPipe, "percent", true, [ this._locale ]), this.preparePipeMeta(common.I18nPluralPipe, "i18nPlural", true, [ common.NgLocalization ]), this.preparePipeMeta(common.I18nSelectPipe, "i18nSelect", true), this.preparePipeMeta(common.KeyValuePipe, "keyvalue", false, [ i0.KeyValueDiffers ]), this.preparePipeMeta(base.FileIconClassPipe, "fileIconClass", true), this.preparePipeMeta(base.FileExtensionFromMimePipe, "fileExtensionFromMime", true), this.preparePipeMeta(base.StateClassPipe, "stateClass", true), this.preparePipeMeta(base.FileSizePipe, "filesize", true), this.preparePipeMeta(base.FilterPipe, "filter", true), this.preparePipeMeta(common.UpperCasePipe, "uppercase", true), this.preparePipeMeta(common.LowerCasePipe, "lowercase", true), this.preparePipeMeta(common.JsonPipe, "json", false), this.preparePipeMeta(common.DecimalPipe, "number", true, [ this._locale ]), this.preparePipeMeta(common.TitleCasePipe, "titlecase", true), this.preparePipeMeta(common.CurrencyPipe, "currency", true, [ this._locale ]), this.preparePipeMeta(common.DatePipe, "date", true, [ this._locale ]), this.preparePipeMeta(base.ToDatePipe, "toDate", true, [ new common.DatePipe(this._locale) ]), this.preparePipeMeta(base.ToNumberPipe, "toNumber", true, [ new common.DecimalPipe(this._locale), this.i18service ]), this.preparePipeMeta(base.ToCurrencyPipe, "toCurrency", true, [ new common.DecimalPipe(this._locale), this.i18service ]), this.preparePipeMeta(base.PrefixPipe, "prefix", true), this.preparePipeMeta(base.SuffixPipe, "suffix", true), this.preparePipeMeta(base.TimeFromNowPipe, "timeFromNow", true), this.preparePipeMeta(base.NumberToStringPipe, "numberToString", true, [ new common.DecimalPipe(this._locale) ]), this.preparePipeMeta(base.StringToNumberPipe, "stringToNumber", true), this.preparePipeMeta(base.CustomPipe, "custom", true, [ this.injector.get(i2.CustomPipeManager) ]), this.preparePipeMeta(base.TrustAsPipe, "trustAs", true, [ this.domSanitizer ]), this.preparePipeMeta(base.SanitizePipe, "sanitize", true, [ this.domSanitizer ]) ];
|
|
82276
|
+
this._pipeMeta = new Map;
|
|
82277
|
+
this._pipeData.forEach((function(v) {
|
|
82278
|
+
_this._pipeMeta.set(v.name, v);
|
|
82279
|
+
}));
|
|
82280
|
+
}
|
|
82281
|
+
PipeProvider.prototype.unknownPipe = function(name) {
|
|
82282
|
+
throw Error("The pipe '" + name + "' could not be found");
|
|
82283
|
+
};
|
|
82284
|
+
PipeProvider.prototype.meta = function(name) {
|
|
82285
|
+
var meta = this._pipeMeta.get(name);
|
|
82286
|
+
if (!meta) {
|
|
82287
|
+
this.unknownPipe(name);
|
|
82288
|
+
}
|
|
82289
|
+
return meta;
|
|
82290
|
+
};
|
|
82291
|
+
PipeProvider.prototype.getPipeNameVsIsPureMap = function() {
|
|
82292
|
+
var _map = new Map;
|
|
82293
|
+
this._pipeMeta.forEach((function(v, k) {
|
|
82294
|
+
_map.set(k, v.pure);
|
|
82295
|
+
}));
|
|
82296
|
+
return _map;
|
|
82297
|
+
};
|
|
82298
|
+
PipeProvider.prototype.resolveDep = function(dep) {
|
|
82299
|
+
return this.injector.get(dep.token.identifier.reference);
|
|
82300
|
+
};
|
|
82301
|
+
PipeProvider.prototype.getInstance = function(name) {
|
|
82302
|
+
var e_1, _b;
|
|
82303
|
+
var _c = this.meta(name).type, ref = _c.reference, deps = _c.diDeps;
|
|
82304
|
+
if (!ref) {
|
|
82305
|
+
this.unknownPipe(name);
|
|
82306
|
+
}
|
|
82307
|
+
if (!deps.length) {
|
|
82308
|
+
return new ref;
|
|
82309
|
+
} else {
|
|
82310
|
+
var args = [];
|
|
82311
|
+
try {
|
|
82312
|
+
for (var deps_1 = __values(deps), deps_1_1 = deps_1.next(); !deps_1_1.done; deps_1_1 = deps_1.next()) {
|
|
82313
|
+
var dep = deps_1_1.value;
|
|
82314
|
+
args.push(dep);
|
|
82315
|
+
}
|
|
82316
|
+
} catch (e_1_1) {
|
|
82317
|
+
e_1 = {
|
|
82318
|
+
error: e_1_1
|
|
82319
|
+
};
|
|
82320
|
+
} finally {
|
|
82321
|
+
try {
|
|
82322
|
+
if (deps_1_1 && !deps_1_1.done && (_b = deps_1.return)) _b.call(deps_1);
|
|
82323
|
+
} finally {
|
|
82324
|
+
if (e_1) throw e_1.error;
|
|
82325
|
+
}
|
|
82326
|
+
}
|
|
82327
|
+
return new (ref.bind.apply(ref, __spreadArray([ void 0 ], __read(args))));
|
|
82328
|
+
}
|
|
82329
|
+
};
|
|
82330
|
+
return PipeProvider;
|
|
82331
|
+
}();
|
|
82332
|
+
PipeProvider.\u0275prov = i0__namespace.\u0275\u0275defineInjectable({
|
|
82333
|
+
factory: function PipeProvider_Factory() {
|
|
82334
|
+
return new PipeProvider(i0__namespace.\u0275\u0275inject(i0__namespace.Compiler), i0__namespace.\u0275\u0275inject(i0__namespace.INJECTOR), i0__namespace.\u0275\u0275inject(i1__namespace.DomSanitizer), i0__namespace.\u0275\u0275inject(i2__namespace.AbstractI18nService));
|
|
82335
|
+
},
|
|
82336
|
+
token: PipeProvider,
|
|
82337
|
+
providedIn: "root"
|
|
82338
|
+
});
|
|
82339
|
+
PipeProvider.decorators = [ {
|
|
82340
|
+
type: i0.Injectable,
|
|
82341
|
+
args: [ {
|
|
82342
|
+
providedIn: "root"
|
|
82343
|
+
} ]
|
|
82344
|
+
} ];
|
|
82345
|
+
PipeProvider.ctorParameters = function() {
|
|
82346
|
+
return [ {
|
|
82347
|
+
type: i0.Compiler
|
|
82348
|
+
}, {
|
|
82349
|
+
type: i0.Injector
|
|
82350
|
+
}, {
|
|
82351
|
+
type: i1.DomSanitizer
|
|
82352
|
+
}, {
|
|
82353
|
+
type: i2.AbstractI18nService
|
|
82354
|
+
} ];
|
|
82355
|
+
};
|
|
82356
|
+
var PipeService = function() {
|
|
82357
|
+
function PipeService(pipeProvider, $app) {
|
|
82358
|
+
this.pipeProvider = pipeProvider;
|
|
82359
|
+
this.$app = $app;
|
|
82360
|
+
this.supportedPipes = [ "toDate", "toCurrency", "prefix", "suffix", "numberToString", "stringToNumber", "timeFromNow", "trustAs", "sanitize" ];
|
|
82361
|
+
if (this.$app.isApplicationType) {
|
|
82362
|
+
this.supportedPipes.push("custom");
|
|
82363
|
+
}
|
|
82364
|
+
}
|
|
82365
|
+
PipeService.prototype.getPipe = function(name) {
|
|
82366
|
+
if (this.supportedPipes.includes(name)) {
|
|
82367
|
+
return this.pipeProvider.getInstance(name);
|
|
82368
|
+
} else {
|
|
82369
|
+
throw Error("The pipe '" + name + "' could not be found");
|
|
82370
|
+
}
|
|
82371
|
+
};
|
|
82372
|
+
return PipeService;
|
|
82373
|
+
}();
|
|
82374
|
+
PipeService.\u0275prov = i0__namespace.\u0275\u0275defineInjectable({
|
|
82375
|
+
factory: function PipeService_Factory() {
|
|
82376
|
+
return new PipeService(i0__namespace.\u0275\u0275inject(PipeProvider), i0__namespace.\u0275\u0275inject(i2__namespace.App));
|
|
82377
|
+
},
|
|
82378
|
+
token: PipeService,
|
|
82379
|
+
providedIn: "root"
|
|
82380
|
+
});
|
|
82381
|
+
PipeService.decorators = [ {
|
|
82382
|
+
type: i0.Injectable,
|
|
82383
|
+
args: [ {
|
|
82384
|
+
providedIn: "root"
|
|
82385
|
+
} ]
|
|
82386
|
+
} ];
|
|
82387
|
+
PipeService.ctorParameters = function() {
|
|
82388
|
+
return [ {
|
|
82389
|
+
type: PipeProvider
|
|
82390
|
+
}, {
|
|
82391
|
+
type: i2.App
|
|
82392
|
+
} ];
|
|
82393
|
+
};
|
|
82247
82394
|
var injectorMap = {
|
|
82248
82395
|
DialogService: i2.AbstractDialogService,
|
|
82249
82396
|
i18nService: i2.AbstractI18nService,
|
|
82397
|
+
PipeService: PipeService,
|
|
82250
82398
|
statePersistence: i2.StatePersistence,
|
|
82251
82399
|
SpinnerService: i2.AbstractSpinnerService,
|
|
82252
82400
|
StatePersistenceService: i2.StatePersistence,
|
|
@@ -83363,110 +83511,6 @@
|
|
|
83363
83511
|
type: i2.AbstractI18nService
|
|
83364
83512
|
} ];
|
|
83365
83513
|
};
|
|
83366
|
-
var PipeProvider = function() {
|
|
83367
|
-
function PipeProvider(compiler, injector, domSanitizer, i18service) {
|
|
83368
|
-
var _this = this;
|
|
83369
|
-
var _a;
|
|
83370
|
-
this.compiler = compiler;
|
|
83371
|
-
this.injector = injector;
|
|
83372
|
-
this.domSanitizer = domSanitizer;
|
|
83373
|
-
this.i18service = i18service;
|
|
83374
|
-
this._locale = i2.getSessionStorageItem("selectedLocale") || "en";
|
|
83375
|
-
this.formatsByLocale = (_a = this.i18service) === null || _a === void 0 ? void 0 : _a.getwidgetLocale();
|
|
83376
|
-
this.preparePipeMeta = function(reference, name, pure, diDeps) {
|
|
83377
|
-
if (diDeps === void 0) {
|
|
83378
|
-
diDeps = [];
|
|
83379
|
-
}
|
|
83380
|
-
return {
|
|
83381
|
-
type: {
|
|
83382
|
-
reference: reference,
|
|
83383
|
-
diDeps: diDeps
|
|
83384
|
-
},
|
|
83385
|
-
name: name,
|
|
83386
|
-
pure: pure
|
|
83387
|
-
};
|
|
83388
|
-
};
|
|
83389
|
-
this._pipeData = [ this.preparePipeMeta(common.AsyncPipe, "async", false, [ i0.ChangeDetectorRef ]), this.preparePipeMeta(common.SlicePipe, "slice", false), this.preparePipeMeta(common.PercentPipe, "percent", true, [ this._locale ]), this.preparePipeMeta(common.I18nPluralPipe, "i18nPlural", true, [ common.NgLocalization ]), this.preparePipeMeta(common.I18nSelectPipe, "i18nSelect", true), this.preparePipeMeta(common.KeyValuePipe, "keyvalue", false, [ i0.KeyValueDiffers ]), this.preparePipeMeta(base.FileIconClassPipe, "fileIconClass", true), this.preparePipeMeta(base.FileExtensionFromMimePipe, "fileExtensionFromMime", true), this.preparePipeMeta(base.StateClassPipe, "stateClass", true), this.preparePipeMeta(base.FileSizePipe, "filesize", true), this.preparePipeMeta(base.FilterPipe, "filter", true), this.preparePipeMeta(common.UpperCasePipe, "uppercase", true), this.preparePipeMeta(common.LowerCasePipe, "lowercase", true), this.preparePipeMeta(common.JsonPipe, "json", false), this.preparePipeMeta(common.DecimalPipe, "number", true, [ this._locale ]), this.preparePipeMeta(common.TitleCasePipe, "titlecase", true), this.preparePipeMeta(common.CurrencyPipe, "currency", true, [ this._locale ]), this.preparePipeMeta(common.DatePipe, "date", true, [ this._locale ]), this.preparePipeMeta(base.ToDatePipe, "toDate", true, [ new common.DatePipe(this._locale) ]), this.preparePipeMeta(base.ToNumberPipe, "toNumber", true, [ new common.DecimalPipe(this._locale), this.i18service ]), this.preparePipeMeta(base.ToCurrencyPipe, "toCurrency", true, [ new common.DecimalPipe(this._locale), this.i18service ]), this.preparePipeMeta(base.PrefixPipe, "prefix", true), this.preparePipeMeta(base.SuffixPipe, "suffix", true), this.preparePipeMeta(base.TimeFromNowPipe, "timeFromNow", true), this.preparePipeMeta(base.NumberToStringPipe, "numberToString", true, [ new common.DecimalPipe(this._locale) ]), this.preparePipeMeta(base.StringToNumberPipe, "stringToNumber", true), this.preparePipeMeta(base.CustomPipe, "custom", true, [ this.injector.get(i2.CustomPipeManager) ]), this.preparePipeMeta(base.TrustAsPipe, "trustAs", true, [ this.domSanitizer ]), this.preparePipeMeta(base.SanitizePipe, "sanitize", true, [ this.domSanitizer ]) ];
|
|
83390
|
-
this._pipeMeta = new Map;
|
|
83391
|
-
this._pipeData.forEach((function(v) {
|
|
83392
|
-
_this._pipeMeta.set(v.name, v);
|
|
83393
|
-
}));
|
|
83394
|
-
}
|
|
83395
|
-
PipeProvider.prototype.unknownPipe = function(name) {
|
|
83396
|
-
throw Error("The pipe '" + name + "' could not be found");
|
|
83397
|
-
};
|
|
83398
|
-
PipeProvider.prototype.meta = function(name) {
|
|
83399
|
-
var meta = this._pipeMeta.get(name);
|
|
83400
|
-
if (!meta) {
|
|
83401
|
-
this.unknownPipe(name);
|
|
83402
|
-
}
|
|
83403
|
-
return meta;
|
|
83404
|
-
};
|
|
83405
|
-
PipeProvider.prototype.getPipeNameVsIsPureMap = function() {
|
|
83406
|
-
var _map = new Map;
|
|
83407
|
-
this._pipeMeta.forEach((function(v, k) {
|
|
83408
|
-
_map.set(k, v.pure);
|
|
83409
|
-
}));
|
|
83410
|
-
return _map;
|
|
83411
|
-
};
|
|
83412
|
-
PipeProvider.prototype.resolveDep = function(dep) {
|
|
83413
|
-
return this.injector.get(dep.token.identifier.reference);
|
|
83414
|
-
};
|
|
83415
|
-
PipeProvider.prototype.getInstance = function(name) {
|
|
83416
|
-
var e_1, _b;
|
|
83417
|
-
var _c = this.meta(name).type, ref = _c.reference, deps = _c.diDeps;
|
|
83418
|
-
if (!ref) {
|
|
83419
|
-
this.unknownPipe(name);
|
|
83420
|
-
}
|
|
83421
|
-
if (!deps.length) {
|
|
83422
|
-
return new ref;
|
|
83423
|
-
} else {
|
|
83424
|
-
var args = [];
|
|
83425
|
-
try {
|
|
83426
|
-
for (var deps_1 = __values(deps), deps_1_1 = deps_1.next(); !deps_1_1.done; deps_1_1 = deps_1.next()) {
|
|
83427
|
-
var dep = deps_1_1.value;
|
|
83428
|
-
args.push(dep);
|
|
83429
|
-
}
|
|
83430
|
-
} catch (e_1_1) {
|
|
83431
|
-
e_1 = {
|
|
83432
|
-
error: e_1_1
|
|
83433
|
-
};
|
|
83434
|
-
} finally {
|
|
83435
|
-
try {
|
|
83436
|
-
if (deps_1_1 && !deps_1_1.done && (_b = deps_1.return)) _b.call(deps_1);
|
|
83437
|
-
} finally {
|
|
83438
|
-
if (e_1) throw e_1.error;
|
|
83439
|
-
}
|
|
83440
|
-
}
|
|
83441
|
-
return new (ref.bind.apply(ref, __spreadArray([ void 0 ], __read(args))));
|
|
83442
|
-
}
|
|
83443
|
-
};
|
|
83444
|
-
return PipeProvider;
|
|
83445
|
-
}();
|
|
83446
|
-
PipeProvider.\u0275prov = i0__namespace.\u0275\u0275defineInjectable({
|
|
83447
|
-
factory: function PipeProvider_Factory() {
|
|
83448
|
-
return new PipeProvider(i0__namespace.\u0275\u0275inject(i0__namespace.Compiler), i0__namespace.\u0275\u0275inject(i0__namespace.INJECTOR), i0__namespace.\u0275\u0275inject(i1__namespace.DomSanitizer), i0__namespace.\u0275\u0275inject(i2__namespace.AbstractI18nService));
|
|
83449
|
-
},
|
|
83450
|
-
token: PipeProvider,
|
|
83451
|
-
providedIn: "root"
|
|
83452
|
-
});
|
|
83453
|
-
PipeProvider.decorators = [ {
|
|
83454
|
-
type: i0.Injectable,
|
|
83455
|
-
args: [ {
|
|
83456
|
-
providedIn: "root"
|
|
83457
|
-
} ]
|
|
83458
|
-
} ];
|
|
83459
|
-
PipeProvider.ctorParameters = function() {
|
|
83460
|
-
return [ {
|
|
83461
|
-
type: i0.Compiler
|
|
83462
|
-
}, {
|
|
83463
|
-
type: i0.Injector
|
|
83464
|
-
}, {
|
|
83465
|
-
type: i1.DomSanitizer
|
|
83466
|
-
}, {
|
|
83467
|
-
type: i2.AbstractI18nService
|
|
83468
|
-
} ];
|
|
83469
|
-
};
|
|
83470
83514
|
var AppComponent = function() {
|
|
83471
83515
|
function AppComponent(_pipeProvider, _appRef, elRef, oAuthService, dialogService, spinnerService, ngZone, router$1, app, appManager) {
|
|
83472
83516
|
var _this = this;
|
|
@@ -84457,7 +84501,7 @@
|
|
|
84457
84501
|
provide: http.HTTP_INTERCEPTORS,
|
|
84458
84502
|
useClass: HttpCallInterceptor,
|
|
84459
84503
|
multi: true
|
|
84460
|
-
}, common.DecimalPipe, common.DatePipe, AppManagerService, PrefabManagerService, AuthGuard, RoleGuard, PageNotFoundGaurd, CanDeactivatePageGuard, AppJSResolve, AppExtensionJSResolve, I18nResolve, getSettingProvider(MAX_CACHE_SIZE, 10), getSettingProvider(MAX_CACHE_AGE, 30 * 60) ]
|
|
84504
|
+
}, PipeService, common.DecimalPipe, common.DatePipe, AppManagerService, PrefabManagerService, AuthGuard, RoleGuard, PageNotFoundGaurd, CanDeactivatePageGuard, AppJSResolve, AppExtensionJSResolve, I18nResolve, getSettingProvider(MAX_CACHE_SIZE, 10), getSettingProvider(MAX_CACHE_AGE, 30 * 60) ]
|
|
84461
84505
|
};
|
|
84462
84506
|
};
|
|
84463
84507
|
RuntimeBaseModule.prototype.getDeviceDetails = function() {
|
|
@@ -84650,6 +84694,7 @@
|
|
|
84650
84694
|
exports.NavigationServiceImpl = NavigationServiceImpl;
|
|
84651
84695
|
exports.PageNotFoundGaurd = PageNotFoundGaurd;
|
|
84652
84696
|
exports.PipeProvider = PipeProvider;
|
|
84697
|
+
exports.PipeService = PipeService;
|
|
84653
84698
|
exports.PrefabConfigProvider = PrefabConfigProvider;
|
|
84654
84699
|
exports.PrefabDirective = PrefabDirective;
|
|
84655
84700
|
exports.PrefabManagerService = PrefabManagerService;
|