@wavemaker/app-runtime-wm-build 11.3.6-rc.5334 → 11.3.6-rc.5349

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.
@@ -3012,11 +3012,15 @@
3012
3012
  var isIos = function() {
3013
3013
  return isIphone() || isIpod() || isIpad();
3014
3014
  };
3015
- var isLargeTabletLandscape = function() {
3016
- return window.matchMedia("only screen and (min-device-width : 1366px) and (max-device-width : 1366px) and (min-device-height : 1024px) and (max-device-height : 1024px) and (min-width: 1366px) and (max-width: 1366px)").matches;
3015
+ var isLargeTabletLandscape = function(landScapeWidth, landScapeHeight) {
3016
+ var width = landScapeWidth || "1366px";
3017
+ var height = landScapeHeight || "1024px";
3018
+ return window.matchMedia("only screen and (min-device-width : " + width + ") and (max-device-width : " + width + ") and (min-device-height : " + height + ") and (max-device-height : " + height + ") and (min-width: " + width + ") and (max-width: " + width + ")").matches;
3017
3019
  };
3018
- var isLargeTabletPortrait = function() {
3019
- return window.matchMedia("only screen and (min-device-width : 1024px) and (max-device-width : 1024px) and (min-device-height : 1366px) and (max-device-height : 1366px) and (min-width: 1024px) and (max-width: 1024px)").matches;
3020
+ var isLargeTabletPortrait = function(landScapeWidth, landScapeHeight) {
3021
+ var height = landScapeWidth || "1366px";
3022
+ var width = landScapeHeight || "1024px";
3023
+ return window.matchMedia("only screen and (min-device-width : " + width + ") and (max-device-width : " + width + ") and (min-device-height : " + height + ") and (max-device-height : " + height + ") and (min-width: " + width + ") and (max-width: " + width + ")").matches;
3020
3024
  };
3021
3025
  var isMobile = function() {
3022
3026
  return isAndroid() || isIos() || isAndroidTablet() || $("#wm-mobile-display:visible").length > 0;
@@ -4466,6 +4470,8 @@
4466
4470
  this.isMobileType = true;
4467
4471
  }
4468
4472
  } else {
4473
+ MINIMUM_MOBILE_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue("--screen-xs")) || 480;
4474
+ MINIMUM_TAB_WIDTH = parseInt(getComputedStyle(document.documentElement).getPropertyValue("--screen-sm")) || 768;
4469
4475
  if (minValue >= MINIMUM_MOBILE_WIDTH && maxValue >= MINIMUM_TAB_WIDTH) {
4470
4476
  this.type = 1;
4471
4477
  if (isAndroid() || isIos() || isAndroidTablet()) {
@@ -10384,7 +10390,18 @@
10384
10390
  configurable: true
10385
10391
  });
10386
10392
  ShowInDeviceDirective.prototype.onResize = function($event) {
10387
- if (this.devices.indexOf("lg") > -1 && window.matchMedia("(min-width: 1200px)").matches && !core$1.isLargeTabletLandscape() || this.devices.indexOf("md") > -1 && (core$1.isLargeTabletLandscape() || window.matchMedia("(min-width: 992px) and (max-width: 1199px)").matches && !core$1.isLargeTabletPortrait()) || this.devices.indexOf("sm") > -1 && (window.matchMedia("(min-width: 768px) and (max-width: 991px)").matches || core$1.isLargeTabletPortrait()) || this.devices.indexOf("xs") > -1 && window.matchMedia("(max-width: 767px)").matches || this.devices.indexOf("all") > -1) {
10393
+ var lgWidth = getComputedStyle(document.documentElement).getPropertyValue("--screen-lg") || "1200px";
10394
+ var mdWidth = getComputedStyle(document.documentElement).getPropertyValue("--screen-md") || "992px";
10395
+ var smWidth = getComputedStyle(document.documentElement).getPropertyValue("--screen-sm") || "768px";
10396
+ var lgTabLandScapeWidth = getComputedStyle(document.documentElement).getPropertyValue("--screen-lg-tab-landscape") || "1366px";
10397
+ var lgTabPortraitWidth = getComputedStyle(document.documentElement).getPropertyValue("--screen-lg-tab-portrait") || "1024px";
10398
+ var lgWidthMin = parseFloat(lgWidth) - 1;
10399
+ var lgUnit = lgWidthMin + "px";
10400
+ var mdWidthMin = parseFloat(mdWidth) - 1;
10401
+ var mdUnit = mdWidthMin + "px";
10402
+ var smWidthMin = parseFloat(smWidth) - 1;
10403
+ var smUnit = smWidthMin + "px";
10404
+ if (this.devices.indexOf("lg") > -1 && window.matchMedia("(min-width: " + lgWidth + ")").matches && !core$1.isLargeTabletLandscape(lgTabLandScapeWidth, lgTabPortraitWidth) || this.devices.indexOf("md") > -1 && (core$1.isLargeTabletLandscape(lgTabLandScapeWidth, lgTabPortraitWidth) || window.matchMedia("(min-width: " + mdWidth + ") and (max-width: " + lgUnit + ")").matches && !core$1.isLargeTabletPortrait(lgTabLandScapeWidth, lgTabPortraitWidth)) || this.devices.indexOf("sm") > -1 && (window.matchMedia("(min-width: " + smWidth + ") and (max-width: " + mdUnit + ")").matches || core$1.isLargeTabletPortrait(lgTabLandScapeWidth, lgTabPortraitWidth)) || this.devices.indexOf("xs") > -1 && window.matchMedia("(max-width: " + smUnit + ")").matches || this.devices.indexOf("all") > -1) {
10388
10405
  if (!this.embeddedView) {
10389
10406
  this.embeddedView = this.viewContainerRef.createEmbeddedView(this.templateRef, this.context);
10390
10407
  }
@@ -32330,7 +32347,7 @@
32330
32347
  var value = _.get(dataObj, xKey);
32331
32348
  if (isLineTypeChart(this.type) && !core.isNumberType(this.xAxisDataType)) {
32332
32349
  this.xDataKeyArr.push(value);
32333
- return index;
32350
+ return value;
32334
32351
  }
32335
32352
  return value;
32336
32353
  };
@@ -46536,6 +46553,11 @@
46536
46553
  return;
46537
46554
  }
46538
46555
  this.variableInflight = false;
46556
+ if (newValue && newValue.length === 0) {
46557
+ this.callDataGridMethod("setStatus", "nodata", this.nodatamessage);
46558
+ } else {
46559
+ this.callDataGridMethod("setStatus", "ready");
46560
+ }
46539
46561
  if (this.gridOptions.isNavTypeScrollOrOndemand()) {
46540
46562
  _a = __read(this.paginationService.updateFieldsOnPagination(this, newValue), 2),
46541
46563
  this._gridData = _a[0], this.currentPage = _a[1];
@@ -59958,7 +59980,7 @@
59958
59980
  value: true
59959
59981
  }, base.PROP_BOOLEAN) ], [ "title", Object.assign({
59960
59982
  value: "Step Title"
59961
- }, base.PROP_STRING) ] ]));
59983
+ }, base.PROP_STRING) ], [ "subtitle", base.PROP_STRING ] ]));
59962
59984
  };
59963
59985
  var DEFAULT_CLS$1 = "app-wizard-step-content";
59964
59986
  var WIDGET_CONFIG$1 = {
@@ -60262,6 +60284,7 @@
60262
60284
  this.setDefaultStep(step);
60263
60285
  }
60264
60286
  }
60287
+ this.addMoreText();
60265
60288
  };
60266
60289
  WizardComponent.prototype.onWizardHeaderClick = function($event, currentStep) {
60267
60290
  var _this = this;
@@ -60277,6 +60300,7 @@
60277
60300
  }));
60278
60301
  this.currentStep = currentStep;
60279
60302
  this.currentStep.active = true;
60303
+ this.addMoreText();
60280
60304
  }
60281
60305
  };
60282
60306
  WizardComponent.prototype.next = function(eventName) {
@@ -60303,6 +60327,7 @@
60303
60327
  nextStep.active = true;
60304
60328
  this.currentStep = nextStep;
60305
60329
  }
60330
+ this.addMoreText();
60306
60331
  };
60307
60332
  WizardComponent.prototype.prev = function() {
60308
60333
  var currentStep = this.currentStep;
@@ -60318,6 +60343,7 @@
60318
60343
  prevStep.active = true;
60319
60344
  this.currentStep = prevStep;
60320
60345
  }
60346
+ this.addMoreText();
60321
60347
  };
60322
60348
  WizardComponent.prototype.skip = function() {
60323
60349
  this.next("skip");
@@ -60333,6 +60359,42 @@
60333
60359
  steps: this.steps.toArray()
60334
60360
  });
60335
60361
  };
60362
+ WizardComponent.prototype.addMoreText = function() {
60363
+ setTimeout((function() {
60364
+ var newWindowWidth = $(window).width();
60365
+ if (newWindowWidth < 768) {
60366
+ $(".app-wizard-step.current .subtitle-wrapper .step-title").css({
60367
+ height: "auto",
60368
+ display: "block"
60369
+ });
60370
+ var subtitleTextLength = $(".app-wizard-step.current .subtitle-wrapper .step-title").height();
60371
+ $(".read_more").css("display", "none");
60372
+ $(".current .subtitle-wrapper").removeClass("readmore_subtitle");
60373
+ if (subtitleTextLength > 44) {
60374
+ $(".app-wizard-step.current .subtitle-wrapper .step-title").css({
60375
+ height: "44px",
60376
+ display: "-webkit-box"
60377
+ });
60378
+ $(".current .read_more").css("display", "block");
60379
+ $(".active .read_more").css("display", "none");
60380
+ $(".disable .read_more").css("display", "none");
60381
+ $(".app-wizard-step>a").css("height", "100px");
60382
+ }
60383
+ }
60384
+ }));
60385
+ };
60386
+ WizardComponent.prototype.readMoreSubtitle = function() {
60387
+ $(".current .subtitle-wrapper").addClass("readmore_subtitle");
60388
+ $(".current .read_more").css("display", "none");
60389
+ $(document).on("mouseup", (function(e) {
60390
+ var container = $(".subtitle-wrapper");
60391
+ if (!container.is(e.target) && container.has(e.target).length === 0) {
60392
+ $(".current .subtitle-wrapper").removeClass("readmore_subtitle");
60393
+ $(".current .read_more").css("display", "block");
60394
+ $(document).off("mouseup");
60395
+ }
60396
+ }));
60397
+ };
60336
60398
  WizardComponent.prototype.isFirstStep = function(stepRef) {
60337
60399
  return this.steps.first === stepRef;
60338
60400
  };
@@ -60355,6 +60417,11 @@
60355
60417
  WizardComponent.prototype.ngAfterViewInit = function() {
60356
60418
  _super.prototype.ngAfterViewInit.call(this);
60357
60419
  base.styler(this.nativeElement.querySelector(".panel-body"), this, base.APPLY_STYLES_TYPE.INNER_SHELL);
60420
+ setTimeout((function() {
60421
+ if ($(window).width() < 768) {
60422
+ $(".app-wizard").removeClass("vertical");
60423
+ }
60424
+ }));
60358
60425
  };
60359
60426
  return WizardComponent;
60360
60427
  }(base.StylableComponent);
@@ -60363,7 +60430,7 @@
60363
60430
  type: core.Component,
60364
60431
  args: [ {
60365
60432
  selector: "div[wmWizard]",
60366
- template: '<div class="app-wizard-heading" role="tab">\n <ul class="app-wizard-steps nav nav-pills {{stepClass}}">\n <li class="app-wizard-step" *ngFor="let step of steps; let i = index" [hidden]="!step.show"\n [ngClass]="{active: step.done, current: step.active, disabled: step.disabled}"\n (click)="onWizardHeaderClick($event, step)">\n <a href="javascript:void(0)" [attr.aria-label]="step.title" [attr.title]="step.title">\n <span class="arrow" *ngIf="class && class.includes(\'classic\')"></span>\n <span class="wizard-step-number">\n <span class="count" *ngIf="class && class.includes(\'number\') && !step.isDone">{{i+1}}</span>\n <i class="dottedstepper" *ngIf="class && (class.includes(\'dottedstepper\') || class.includes(\'text-inline\') && !class.includes(\'iconstepper\')) && !step.isDone"></i>\n <i class="app-icon wi wi-done" *ngIf="class && (class.includes(\'dottedstepper\') || class.includes(\'number\')) && step.isDone"></i>\n <i class="app-icon {{step.iconclass}}" *ngIf="(class && class.includes(\'iconstepper\')) && ((step.iconclass && !step.isDone) || (step.iconclass && step.isDone && step.doneiconclass ===\'\'))"></i>\n <i class="app-icon {{step.doneiconclass}}" *ngIf="step.doneiconclass && step.isDone && (class && class.includes(\'iconstepper\'))"></i>\n </span>\n <span class="title-wrapper">\n <span *ngIf="class && class.includes(\'text-inline\')">{{\'0\' + (i+1)}}</span>\n <span class="step-title" [textContent]="step.title"></span>\n </span>\n </a>\n </li>\n </ul>\n</div>\n<div class="app-wizard-body panel-body" role="tabpanel">\n <p wmMessage *ngIf="message.caption" caption.bind="message.caption" type.bind="message.type"></p>\n <ng-content ngProjectAs="form[wmWizardStep]"></ng-content>\n</div>\n<div class="app-wizard-actions panel-footer {{actionsalignment}}">\n <a class="app-wizard-skip" name="skipStep_{{name}}" *ngIf="currentStep?.enableskip" title="Skip step" (click)="skip()">Skip &raquo;</a>\n <div class="app-wizard-actions-right">\n <button type="button" name="cancelBtn_{{name}}" class="btn app-button btn-default" *ngIf="cancelable"\n (click)="cancel()" [title]="cancelbtnlabel" [textContent]="cancelbtnlabel"></button>\n <button type="button" name="previousBtn_{{name}}" class="btn app-button btn-default"\n *ngIf="hasPrevStep" (click)="prev()" [disabled]="!enablePrev">\n <i class="app-icon wi wi-chevron-left"></i>\n <span class="btn-caption" [textContent]="previousbtnlabel"></span>\n </button>\n <button type="button" name="nextBtn_{{name}}" class="btn app-button btn-primary"\n *ngIf="hasNextStep" (click)="next()" [disabled]="!enableNext">\n <span class="btn-caption" [textContent]="nextbtnlabel"></span>\n <i class="app-icon wi wi-chevron-right"></i>\n </button>\n <button type="button" name="doneBtn_{{name}}" class="btn app-button btn-success"\n *ngIf="showDoneBtn" (click)="done()"\n [disabled]="!enableDone">\n <i class="app-icon wm-sl-l sl-check"></i>\n <span class="btn-caption" [textContent]="donebtnlabel"></span>\n </button>\n </div>\n</div>\n',
60433
+ template: '<div class="app-wizard-heading" role="tab">\n <ul class="app-wizard-steps nav nav-pills {{stepClass}}">\n <li class="app-wizard-step" *ngFor="let step of steps; let i = index" [hidden]="!step.show"\n [ngClass]="{active: step.done, current: step.active, disabled: step.disabled}"\n (click)="onWizardHeaderClick($event, step)">\n <a href="javascript:void(0)" [attr.aria-label]="step.title" [attr.title]="step.title" [ngClass]="{\'title-center-align\':class && class.includes(\'classic\') && !step.subtitle}">\n <span class="arrow" *ngIf="class && class.includes(\'classic\')"></span>\n <span class="wizard-step-number">\n <span class="count" *ngIf="class && class.includes(\'number\') && !step.isDone">{{i+1}}</span>\n <i class="dottedstepper" *ngIf="class && (class.includes(\'dottedstepper\') || class.includes(\'text-inline\') && !class.includes(\'iconstepper\')) && !step.isDone"></i>\n <i class="app-icon wi wi-done" *ngIf="class && (class.includes(\'dottedstepper\') || class.includes(\'number\')) && step.isDone"></i>\n <i class="app-icon {{step.iconclass}}" *ngIf="(class && class.includes(\'iconstepper\')) && ((step.iconclass && !step.isDone) || (step.iconclass && step.isDone && step.doneiconclass ===\'\'))"></i>\n <i class="app-icon {{step.doneiconclass}}" *ngIf="step.doneiconclass && step.isDone && (class && class.includes(\'iconstepper\'))"></i>\n </span>\n <span class="title-wrapper">\n <span *ngIf="class && class.includes(\'text-inline\')">{{\'0\' + (i+1)}}</span>\n <span class="step-title" [textContent]="step.title"></span>\n </span>\n <span class="subtitle-wrapper" [attr.title]="step.subtitle" *ngIf="step.subtitle">\n <span class="step-title" [textContent]="step.subtitle"></span>\n <a class="read_more" (click)="readMoreSubtitle()" style="display:none">more</a>\n </span>\n </a> \n </li>\n </ul>\n</div>\n<div class="app-wizard-body panel-body" role="tabpanel">\n <p wmMessage *ngIf="message.caption" caption.bind="message.caption" type.bind="message.type"></p>\n <ng-content ngProjectAs="form[wmWizardStep]"></ng-content>\n</div>\n<div class="app-wizard-actions panel-footer {{actionsalignment}}">\n <a class="app-wizard-skip" name="skipStep_{{name}}" *ngIf="currentStep?.enableskip" title="Skip step" (click)="skip()">Skip &raquo;</a>\n <div class="app-wizard-actions-right">\n <button type="button" name="cancelBtn_{{name}}" class="btn app-button btn-default" *ngIf="cancelable"\n (click)="cancel()" [title]="cancelbtnlabel" [textContent]="cancelbtnlabel"></button>\n <button type="button" name="previousBtn_{{name}}" class="btn app-button btn-default"\n *ngIf="hasPrevStep" (click)="prev()" [disabled]="!enablePrev">\n <i class="app-icon wi wi-chevron-left"></i>\n <span class="btn-caption" [textContent]="previousbtnlabel"></span>\n </button>\n <button type="button" name="nextBtn_{{name}}" class="btn app-button btn-primary"\n *ngIf="hasNextStep" (click)="next()" [disabled]="!enableNext">\n <span class="btn-caption" [textContent]="nextbtnlabel"></span>\n <i class="app-icon wi wi-chevron-right"></i>\n </button>\n <button type="button" name="doneBtn_{{name}}" class="btn app-button btn-success"\n *ngIf="showDoneBtn" (click)="done()"\n [disabled]="!enableDone">\n <i class="app-icon wm-sl-l sl-check"></i>\n <span class="btn-caption" [textContent]="donebtnlabel"></span>\n </button>\n </div>\n</div>\n',
60367
60434
  providers: [ base.provideAsWidgetRef(WizardComponent) ]
60368
60435
  } ]
60369
60436
  } ];
@@ -82383,9 +82450,152 @@
82383
82450
  type: ComponentRefProvider
82384
82451
  } ];
82385
82452
  };
82453
+ var PipeProvider = function() {
82454
+ function PipeProvider(compiler, injector, domSanitizer, i18service) {
82455
+ var _this = this;
82456
+ var _a;
82457
+ this.compiler = compiler;
82458
+ this.injector = injector;
82459
+ this.domSanitizer = domSanitizer;
82460
+ this.i18service = i18service;
82461
+ this._locale = i2.getSessionStorageItem("selectedLocale") || "en";
82462
+ this.formatsByLocale = (_a = this.i18service) === null || _a === void 0 ? void 0 : _a.getwidgetLocale();
82463
+ this.preparePipeMeta = function(reference, name, pure, diDeps) {
82464
+ if (diDeps === void 0) {
82465
+ diDeps = [];
82466
+ }
82467
+ return {
82468
+ type: {
82469
+ reference: reference,
82470
+ diDeps: diDeps
82471
+ },
82472
+ name: name,
82473
+ pure: pure
82474
+ };
82475
+ };
82476
+ 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 ]) ];
82477
+ this._pipeMeta = new Map;
82478
+ this._pipeData.forEach((function(v) {
82479
+ _this._pipeMeta.set(v.name, v);
82480
+ }));
82481
+ }
82482
+ PipeProvider.prototype.unknownPipe = function(name) {
82483
+ throw Error("The pipe '" + name + "' could not be found");
82484
+ };
82485
+ PipeProvider.prototype.meta = function(name) {
82486
+ var meta = this._pipeMeta.get(name);
82487
+ if (!meta) {
82488
+ this.unknownPipe(name);
82489
+ }
82490
+ return meta;
82491
+ };
82492
+ PipeProvider.prototype.getPipeNameVsIsPureMap = function() {
82493
+ var _map = new Map;
82494
+ this._pipeMeta.forEach((function(v, k) {
82495
+ _map.set(k, v.pure);
82496
+ }));
82497
+ return _map;
82498
+ };
82499
+ PipeProvider.prototype.resolveDep = function(dep) {
82500
+ return this.injector.get(dep.token.identifier.reference);
82501
+ };
82502
+ PipeProvider.prototype.getInstance = function(name) {
82503
+ var e_1, _b;
82504
+ var _c = this.meta(name).type, ref = _c.reference, deps = _c.diDeps;
82505
+ if (!ref) {
82506
+ this.unknownPipe(name);
82507
+ }
82508
+ if (!deps.length) {
82509
+ return new ref;
82510
+ } else {
82511
+ var args = [];
82512
+ try {
82513
+ for (var deps_1 = __values(deps), deps_1_1 = deps_1.next(); !deps_1_1.done; deps_1_1 = deps_1.next()) {
82514
+ var dep = deps_1_1.value;
82515
+ args.push(dep);
82516
+ }
82517
+ } catch (e_1_1) {
82518
+ e_1 = {
82519
+ error: e_1_1
82520
+ };
82521
+ } finally {
82522
+ try {
82523
+ if (deps_1_1 && !deps_1_1.done && (_b = deps_1.return)) _b.call(deps_1);
82524
+ } finally {
82525
+ if (e_1) throw e_1.error;
82526
+ }
82527
+ }
82528
+ return new (ref.bind.apply(ref, __spreadArray([ void 0 ], __read(args))));
82529
+ }
82530
+ };
82531
+ return PipeProvider;
82532
+ }();
82533
+ PipeProvider.\u0275prov = i0__namespace.\u0275\u0275defineInjectable({
82534
+ factory: function PipeProvider_Factory() {
82535
+ 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));
82536
+ },
82537
+ token: PipeProvider,
82538
+ providedIn: "root"
82539
+ });
82540
+ PipeProvider.decorators = [ {
82541
+ type: i0.Injectable,
82542
+ args: [ {
82543
+ providedIn: "root"
82544
+ } ]
82545
+ } ];
82546
+ PipeProvider.ctorParameters = function() {
82547
+ return [ {
82548
+ type: i0.Compiler
82549
+ }, {
82550
+ type: i0.Injector
82551
+ }, {
82552
+ type: i1.DomSanitizer
82553
+ }, {
82554
+ type: i2.AbstractI18nService
82555
+ } ];
82556
+ };
82557
+ var PipeService = function() {
82558
+ function PipeService(pipeProvider, $app) {
82559
+ this.pipeProvider = pipeProvider;
82560
+ this.$app = $app;
82561
+ this.supportedPipes = [ "toDate", "toCurrency", "prefix", "suffix", "numberToString", "stringToNumber", "timeFromNow", "trustAs", "sanitize" ];
82562
+ if (this.$app.isApplicationType) {
82563
+ this.supportedPipes.push("custom");
82564
+ }
82565
+ }
82566
+ PipeService.prototype.getPipe = function(name) {
82567
+ if (this.supportedPipes.includes(name)) {
82568
+ return this.pipeProvider.getInstance(name);
82569
+ } else {
82570
+ throw Error("The pipe '" + name + "' could not be found");
82571
+ }
82572
+ };
82573
+ return PipeService;
82574
+ }();
82575
+ PipeService.\u0275prov = i0__namespace.\u0275\u0275defineInjectable({
82576
+ factory: function PipeService_Factory() {
82577
+ return new PipeService(i0__namespace.\u0275\u0275inject(PipeProvider), i0__namespace.\u0275\u0275inject(i2__namespace.App));
82578
+ },
82579
+ token: PipeService,
82580
+ providedIn: "root"
82581
+ });
82582
+ PipeService.decorators = [ {
82583
+ type: i0.Injectable,
82584
+ args: [ {
82585
+ providedIn: "root"
82586
+ } ]
82587
+ } ];
82588
+ PipeService.ctorParameters = function() {
82589
+ return [ {
82590
+ type: PipeProvider
82591
+ }, {
82592
+ type: i2.App
82593
+ } ];
82594
+ };
82386
82595
  var injectorMap = {
82387
82596
  DialogService: i2.AbstractDialogService,
82388
82597
  i18nService: i2.AbstractI18nService,
82598
+ PipeService: PipeService,
82389
82599
  statePersistence: i2.StatePersistence,
82390
82600
  SpinnerService: i2.AbstractSpinnerService,
82391
82601
  StatePersistenceService: i2.StatePersistence,
@@ -83502,110 +83712,6 @@
83502
83712
  type: i2.AbstractI18nService
83503
83713
  } ];
83504
83714
  };
83505
- var PipeProvider = function() {
83506
- function PipeProvider(compiler, injector, domSanitizer, i18service) {
83507
- var _this = this;
83508
- var _a;
83509
- this.compiler = compiler;
83510
- this.injector = injector;
83511
- this.domSanitizer = domSanitizer;
83512
- this.i18service = i18service;
83513
- this._locale = i2.getSessionStorageItem("selectedLocale") || "en";
83514
- this.formatsByLocale = (_a = this.i18service) === null || _a === void 0 ? void 0 : _a.getwidgetLocale();
83515
- this.preparePipeMeta = function(reference, name, pure, diDeps) {
83516
- if (diDeps === void 0) {
83517
- diDeps = [];
83518
- }
83519
- return {
83520
- type: {
83521
- reference: reference,
83522
- diDeps: diDeps
83523
- },
83524
- name: name,
83525
- pure: pure
83526
- };
83527
- };
83528
- 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 ]) ];
83529
- this._pipeMeta = new Map;
83530
- this._pipeData.forEach((function(v) {
83531
- _this._pipeMeta.set(v.name, v);
83532
- }));
83533
- }
83534
- PipeProvider.prototype.unknownPipe = function(name) {
83535
- throw Error("The pipe '" + name + "' could not be found");
83536
- };
83537
- PipeProvider.prototype.meta = function(name) {
83538
- var meta = this._pipeMeta.get(name);
83539
- if (!meta) {
83540
- this.unknownPipe(name);
83541
- }
83542
- return meta;
83543
- };
83544
- PipeProvider.prototype.getPipeNameVsIsPureMap = function() {
83545
- var _map = new Map;
83546
- this._pipeMeta.forEach((function(v, k) {
83547
- _map.set(k, v.pure);
83548
- }));
83549
- return _map;
83550
- };
83551
- PipeProvider.prototype.resolveDep = function(dep) {
83552
- return this.injector.get(dep.token.identifier.reference);
83553
- };
83554
- PipeProvider.prototype.getInstance = function(name) {
83555
- var e_1, _b;
83556
- var _c = this.meta(name).type, ref = _c.reference, deps = _c.diDeps;
83557
- if (!ref) {
83558
- this.unknownPipe(name);
83559
- }
83560
- if (!deps.length) {
83561
- return new ref;
83562
- } else {
83563
- var args = [];
83564
- try {
83565
- for (var deps_1 = __values(deps), deps_1_1 = deps_1.next(); !deps_1_1.done; deps_1_1 = deps_1.next()) {
83566
- var dep = deps_1_1.value;
83567
- args.push(dep);
83568
- }
83569
- } catch (e_1_1) {
83570
- e_1 = {
83571
- error: e_1_1
83572
- };
83573
- } finally {
83574
- try {
83575
- if (deps_1_1 && !deps_1_1.done && (_b = deps_1.return)) _b.call(deps_1);
83576
- } finally {
83577
- if (e_1) throw e_1.error;
83578
- }
83579
- }
83580
- return new (ref.bind.apply(ref, __spreadArray([ void 0 ], __read(args))));
83581
- }
83582
- };
83583
- return PipeProvider;
83584
- }();
83585
- PipeProvider.\u0275prov = i0__namespace.\u0275\u0275defineInjectable({
83586
- factory: function PipeProvider_Factory() {
83587
- 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));
83588
- },
83589
- token: PipeProvider,
83590
- providedIn: "root"
83591
- });
83592
- PipeProvider.decorators = [ {
83593
- type: i0.Injectable,
83594
- args: [ {
83595
- providedIn: "root"
83596
- } ]
83597
- } ];
83598
- PipeProvider.ctorParameters = function() {
83599
- return [ {
83600
- type: i0.Compiler
83601
- }, {
83602
- type: i0.Injector
83603
- }, {
83604
- type: i1.DomSanitizer
83605
- }, {
83606
- type: i2.AbstractI18nService
83607
- } ];
83608
- };
83609
83715
  var AppComponent = function() {
83610
83716
  function AppComponent(_pipeProvider, _appRef, elRef, oAuthService, dialogService, spinnerService, ngZone, router$1, app, appManager) {
83611
83717
  var _this = this;
@@ -84596,7 +84702,7 @@
84596
84702
  provide: http.HTTP_INTERCEPTORS,
84597
84703
  useClass: HttpCallInterceptor,
84598
84704
  multi: true
84599
- }, common.DecimalPipe, common.DatePipe, AppManagerService, PrefabManagerService, AuthGuard, RoleGuard, PageNotFoundGaurd, CanDeactivatePageGuard, AppJSResolve, AppExtensionJSResolve, I18nResolve, getSettingProvider(MAX_CACHE_SIZE, 10), getSettingProvider(MAX_CACHE_AGE, 30 * 60) ]
84705
+ }, 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) ]
84600
84706
  };
84601
84707
  };
84602
84708
  RuntimeBaseModule.prototype.getDeviceDetails = function() {
@@ -84789,6 +84895,7 @@
84789
84895
  exports.NavigationServiceImpl = NavigationServiceImpl;
84790
84896
  exports.PageNotFoundGaurd = PageNotFoundGaurd;
84791
84897
  exports.PipeProvider = PipeProvider;
84898
+ exports.PipeService = PipeService;
84792
84899
  exports.PrefabConfigProvider = PrefabConfigProvider;
84793
84900
  exports.PrefabDirective = PrefabDirective;
84794
84901
  exports.PrefabManagerService = PrefabManagerService;