@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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wavemaker/app-runtime-wm-build",
3
- "version": "11.3.4-rc.5323",
3
+ "version": "11.3.4-rc.5326",
4
4
  "description": "All modules required for a wavemaker application.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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];
@@ -67657,9 +67662,152 @@
67657
67662
  type: ComponentRefProvider
67658
67663
  } ];
67659
67664
  };
67665
+ var PipeProvider = function() {
67666
+ function PipeProvider(compiler, injector, domSanitizer, i18service) {
67667
+ var _this = this;
67668
+ var _a;
67669
+ this.compiler = compiler;
67670
+ this.injector = injector;
67671
+ this.domSanitizer = domSanitizer;
67672
+ this.i18service = i18service;
67673
+ this._locale = i2.getSessionStorageItem("selectedLocale") || "en";
67674
+ this.formatsByLocale = (_a = this.i18service) === null || _a === void 0 ? void 0 : _a.getwidgetLocale();
67675
+ this.preparePipeMeta = function(reference, name, pure, diDeps) {
67676
+ if (diDeps === void 0) {
67677
+ diDeps = [];
67678
+ }
67679
+ return {
67680
+ type: {
67681
+ reference: reference,
67682
+ diDeps: diDeps
67683
+ },
67684
+ name: name,
67685
+ pure: pure
67686
+ };
67687
+ };
67688
+ 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 ]) ];
67689
+ this._pipeMeta = new Map;
67690
+ this._pipeData.forEach((function(v) {
67691
+ _this._pipeMeta.set(v.name, v);
67692
+ }));
67693
+ }
67694
+ PipeProvider.prototype.unknownPipe = function(name) {
67695
+ throw Error("The pipe '" + name + "' could not be found");
67696
+ };
67697
+ PipeProvider.prototype.meta = function(name) {
67698
+ var meta = this._pipeMeta.get(name);
67699
+ if (!meta) {
67700
+ this.unknownPipe(name);
67701
+ }
67702
+ return meta;
67703
+ };
67704
+ PipeProvider.prototype.getPipeNameVsIsPureMap = function() {
67705
+ var _map = new Map;
67706
+ this._pipeMeta.forEach((function(v, k) {
67707
+ _map.set(k, v.pure);
67708
+ }));
67709
+ return _map;
67710
+ };
67711
+ PipeProvider.prototype.resolveDep = function(dep) {
67712
+ return this.injector.get(dep.token.identifier.reference);
67713
+ };
67714
+ PipeProvider.prototype.getInstance = function(name) {
67715
+ var e_1, _b;
67716
+ var _c = this.meta(name).type, ref = _c.reference, deps = _c.diDeps;
67717
+ if (!ref) {
67718
+ this.unknownPipe(name);
67719
+ }
67720
+ if (!deps.length) {
67721
+ return new ref;
67722
+ } else {
67723
+ var args = [];
67724
+ try {
67725
+ for (var deps_1 = __values(deps), deps_1_1 = deps_1.next(); !deps_1_1.done; deps_1_1 = deps_1.next()) {
67726
+ var dep = deps_1_1.value;
67727
+ args.push(dep);
67728
+ }
67729
+ } catch (e_1_1) {
67730
+ e_1 = {
67731
+ error: e_1_1
67732
+ };
67733
+ } finally {
67734
+ try {
67735
+ if (deps_1_1 && !deps_1_1.done && (_b = deps_1.return)) _b.call(deps_1);
67736
+ } finally {
67737
+ if (e_1) throw e_1.error;
67738
+ }
67739
+ }
67740
+ return new (ref.bind.apply(ref, __spreadArray([ void 0 ], __read(args))));
67741
+ }
67742
+ };
67743
+ return PipeProvider;
67744
+ }();
67745
+ PipeProvider.\u0275prov = i0__namespace.\u0275\u0275defineInjectable({
67746
+ factory: function PipeProvider_Factory() {
67747
+ 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));
67748
+ },
67749
+ token: PipeProvider,
67750
+ providedIn: "root"
67751
+ });
67752
+ PipeProvider.decorators = [ {
67753
+ type: i0.Injectable,
67754
+ args: [ {
67755
+ providedIn: "root"
67756
+ } ]
67757
+ } ];
67758
+ PipeProvider.ctorParameters = function() {
67759
+ return [ {
67760
+ type: i0.Compiler
67761
+ }, {
67762
+ type: i0.Injector
67763
+ }, {
67764
+ type: i1.DomSanitizer
67765
+ }, {
67766
+ type: i2.AbstractI18nService
67767
+ } ];
67768
+ };
67769
+ var PipeService = function() {
67770
+ function PipeService(pipeProvider, $app) {
67771
+ this.pipeProvider = pipeProvider;
67772
+ this.$app = $app;
67773
+ this.supportedPipes = [ "toDate", "toCurrency", "prefix", "suffix", "numberToString", "stringToNumber", "timeFromNow", "trustAs", "sanitize" ];
67774
+ if (this.$app.isApplicationType) {
67775
+ this.supportedPipes.push("custom");
67776
+ }
67777
+ }
67778
+ PipeService.prototype.getPipe = function(name) {
67779
+ if (this.supportedPipes.includes(name)) {
67780
+ return this.pipeProvider.getInstance(name);
67781
+ } else {
67782
+ throw Error("The pipe '" + name + "' could not be found");
67783
+ }
67784
+ };
67785
+ return PipeService;
67786
+ }();
67787
+ PipeService.\u0275prov = i0__namespace.\u0275\u0275defineInjectable({
67788
+ factory: function PipeService_Factory() {
67789
+ return new PipeService(i0__namespace.\u0275\u0275inject(PipeProvider), i0__namespace.\u0275\u0275inject(i2__namespace.App));
67790
+ },
67791
+ token: PipeService,
67792
+ providedIn: "root"
67793
+ });
67794
+ PipeService.decorators = [ {
67795
+ type: i0.Injectable,
67796
+ args: [ {
67797
+ providedIn: "root"
67798
+ } ]
67799
+ } ];
67800
+ PipeService.ctorParameters = function() {
67801
+ return [ {
67802
+ type: PipeProvider
67803
+ }, {
67804
+ type: i2.App
67805
+ } ];
67806
+ };
67660
67807
  var injectorMap = {
67661
67808
  DialogService: i2.AbstractDialogService,
67662
67809
  i18nService: i2.AbstractI18nService,
67810
+ PipeService: PipeService,
67663
67811
  statePersistence: i2.StatePersistence,
67664
67812
  SpinnerService: i2.AbstractSpinnerService,
67665
67813
  StatePersistenceService: i2.StatePersistence,
@@ -68776,110 +68924,6 @@
68776
68924
  type: i2.AbstractI18nService
68777
68925
  } ];
68778
68926
  };
68779
- var PipeProvider = function() {
68780
- function PipeProvider(compiler, injector, domSanitizer, i18service) {
68781
- var _this = this;
68782
- var _a;
68783
- this.compiler = compiler;
68784
- this.injector = injector;
68785
- this.domSanitizer = domSanitizer;
68786
- this.i18service = i18service;
68787
- this._locale = i2.getSessionStorageItem("selectedLocale") || "en";
68788
- this.formatsByLocale = (_a = this.i18service) === null || _a === void 0 ? void 0 : _a.getwidgetLocale();
68789
- this.preparePipeMeta = function(reference, name, pure, diDeps) {
68790
- if (diDeps === void 0) {
68791
- diDeps = [];
68792
- }
68793
- return {
68794
- type: {
68795
- reference: reference,
68796
- diDeps: diDeps
68797
- },
68798
- name: name,
68799
- pure: pure
68800
- };
68801
- };
68802
- 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 ]) ];
68803
- this._pipeMeta = new Map;
68804
- this._pipeData.forEach((function(v) {
68805
- _this._pipeMeta.set(v.name, v);
68806
- }));
68807
- }
68808
- PipeProvider.prototype.unknownPipe = function(name) {
68809
- throw Error("The pipe '" + name + "' could not be found");
68810
- };
68811
- PipeProvider.prototype.meta = function(name) {
68812
- var meta = this._pipeMeta.get(name);
68813
- if (!meta) {
68814
- this.unknownPipe(name);
68815
- }
68816
- return meta;
68817
- };
68818
- PipeProvider.prototype.getPipeNameVsIsPureMap = function() {
68819
- var _map = new Map;
68820
- this._pipeMeta.forEach((function(v, k) {
68821
- _map.set(k, v.pure);
68822
- }));
68823
- return _map;
68824
- };
68825
- PipeProvider.prototype.resolveDep = function(dep) {
68826
- return this.injector.get(dep.token.identifier.reference);
68827
- };
68828
- PipeProvider.prototype.getInstance = function(name) {
68829
- var e_1, _b;
68830
- var _c = this.meta(name).type, ref = _c.reference, deps = _c.diDeps;
68831
- if (!ref) {
68832
- this.unknownPipe(name);
68833
- }
68834
- if (!deps.length) {
68835
- return new ref;
68836
- } else {
68837
- var args = [];
68838
- try {
68839
- for (var deps_1 = __values(deps), deps_1_1 = deps_1.next(); !deps_1_1.done; deps_1_1 = deps_1.next()) {
68840
- var dep = deps_1_1.value;
68841
- args.push(dep);
68842
- }
68843
- } catch (e_1_1) {
68844
- e_1 = {
68845
- error: e_1_1
68846
- };
68847
- } finally {
68848
- try {
68849
- if (deps_1_1 && !deps_1_1.done && (_b = deps_1.return)) _b.call(deps_1);
68850
- } finally {
68851
- if (e_1) throw e_1.error;
68852
- }
68853
- }
68854
- return new (ref.bind.apply(ref, __spreadArray([ void 0 ], __read(args))));
68855
- }
68856
- };
68857
- return PipeProvider;
68858
- }();
68859
- PipeProvider.\u0275prov = i0__namespace.\u0275\u0275defineInjectable({
68860
- factory: function PipeProvider_Factory() {
68861
- 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));
68862
- },
68863
- token: PipeProvider,
68864
- providedIn: "root"
68865
- });
68866
- PipeProvider.decorators = [ {
68867
- type: i0.Injectable,
68868
- args: [ {
68869
- providedIn: "root"
68870
- } ]
68871
- } ];
68872
- PipeProvider.ctorParameters = function() {
68873
- return [ {
68874
- type: i0.Compiler
68875
- }, {
68876
- type: i0.Injector
68877
- }, {
68878
- type: i1.DomSanitizer
68879
- }, {
68880
- type: i2.AbstractI18nService
68881
- } ];
68882
- };
68883
68927
  var AppComponent = function() {
68884
68928
  function AppComponent(_pipeProvider, _appRef, elRef, oAuthService, dialogService, spinnerService, ngZone, router$1, app, appManager) {
68885
68929
  var _this = this;
@@ -69870,7 +69914,7 @@
69870
69914
  provide: http.HTTP_INTERCEPTORS,
69871
69915
  useClass: HttpCallInterceptor,
69872
69916
  multi: true
69873
- }, common.DecimalPipe, common.DatePipe, AppManagerService, PrefabManagerService, AuthGuard, RoleGuard, PageNotFoundGaurd, CanDeactivatePageGuard, AppJSResolve, AppExtensionJSResolve, I18nResolve, getSettingProvider(MAX_CACHE_SIZE, 10), getSettingProvider(MAX_CACHE_AGE, 30 * 60) ]
69917
+ }, 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) ]
69874
69918
  };
69875
69919
  };
69876
69920
  RuntimeBaseModule.prototype.getDeviceDetails = function() {
@@ -70063,6 +70107,7 @@
70063
70107
  exports.NavigationServiceImpl = NavigationServiceImpl;
70064
70108
  exports.PageNotFoundGaurd = PageNotFoundGaurd;
70065
70109
  exports.PipeProvider = PipeProvider;
70110
+ exports.PipeService = PipeService;
70066
70111
  exports.PrefabConfigProvider = PrefabConfigProvider;
70067
70112
  exports.PrefabDirective = PrefabDirective;
70068
70113
  exports.PrefabManagerService = PrefabManagerService;