@wavemaker/app-runtime-wm-build 11.4.0-next.25718 → 11.4.0-next.25722

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.4.0-next.25718",
3
+ "version": "11.4.0-next.25722",
4
4
  "description": "All modules required for a wavemaker application.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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
  }
@@ -23207,10 +23224,12 @@
23207
23224
  if (nv > 0) {
23208
23225
  this.level = nv;
23209
23226
  }
23227
+ this.renderTree();
23210
23228
  break;
23211
23229
 
23212
23230
  case "treeicons":
23213
23231
  this.treeicon = nv;
23232
+ this.renderTree();
23214
23233
  break;
23215
23234
 
23216
23235
  case "nodelabel":
@@ -23234,6 +23253,7 @@
23234
23253
 
23235
23254
  case "class":
23236
23255
  this.treeClass = nv;
23256
+ this.renderTree();
23237
23257
  break;
23238
23258
 
23239
23259
  default:
@@ -23269,7 +23289,7 @@
23269
23289
  TreeComponent.prototype.getNodesFromString = function(value) {
23270
23290
  return value.split(",").map((function(item) {
23271
23291
  return {
23272
- name: item && item.trim()
23292
+ label: item && item.trim()
23273
23293
  };
23274
23294
  }));
23275
23295
  };
@@ -23400,24 +23420,33 @@
23400
23420
  };
23401
23421
  Object.defineProperty(TreeComponent.prototype, "childrenKey", {
23402
23422
  get: function() {
23423
+ if (!this.nodechildren) {
23424
+ return "children";
23425
+ }
23403
23426
  var depth = this.countDepth(this.nodechildren);
23404
- return depth ? this.nodechildren.split(".").pop() : this.nodechildren || "children";
23427
+ return depth ? this.nodechildren.split(".").pop() : this.nodechildren;
23405
23428
  },
23406
23429
  enumerable: false,
23407
23430
  configurable: true
23408
23431
  });
23409
23432
  Object.defineProperty(TreeComponent.prototype, "labelKey", {
23410
23433
  get: function() {
23434
+ if (!this.nodelabel) {
23435
+ return "label";
23436
+ }
23411
23437
  var depth = this.countDepth(this.nodelabel);
23412
- return depth ? this.nodelabel.split(".").pop() : this.nodelabel || "label";
23438
+ return depth ? this.nodelabel.split(".").pop() : this.nodelabel;
23413
23439
  },
23414
23440
  enumerable: false,
23415
23441
  configurable: true
23416
23442
  });
23417
23443
  Object.defineProperty(TreeComponent.prototype, "iconKey", {
23418
23444
  get: function() {
23445
+ if (!this.nodeicon) {
23446
+ return "icon";
23447
+ }
23419
23448
  var depth = this.countDepth(this.nodeicon);
23420
- return depth ? this.nodeicon.split(".").pop() : this.nodeicon || "icon";
23449
+ return depth ? this.nodeicon.split(".").pop() : this.nodeicon;
23421
23450
  },
23422
23451
  enumerable: false,
23423
23452
  configurable: true
@@ -23525,7 +23554,6 @@
23525
23554
  $.fn.zTreeKeyboardNavigation(zTree, $('ul[name="' + this.name + '"]'), null, this.treeicon || defaultTreeIconClass);
23526
23555
  };
23527
23556
  TreeComponent.prototype.setSelectedItem = function(treeNode) {
23528
- debugger;
23529
23557
  this.selecteditem = core.getClonedObject(treeNode) || {};
23530
23558
  this.selecteditem.path = this.getPath(treeNode, "");
23531
23559
  var deSelectElm = $("li[treenode].selected");
@@ -32406,7 +32434,7 @@
32406
32434
  var value = _.get(dataObj, xKey);
32407
32435
  if (isLineTypeChart(this.type) && !core.isNumberType(this.xAxisDataType)) {
32408
32436
  this.xDataKeyArr.push(value);
32409
- return index;
32437
+ return value;
32410
32438
  }
32411
32439
  return value;
32412
32440
  };
@@ -60040,7 +60068,7 @@
60040
60068
  value: true
60041
60069
  }, base.PROP_BOOLEAN) ], [ "title", Object.assign({
60042
60070
  value: "Step Title"
60043
- }, base.PROP_STRING) ] ]));
60071
+ }, base.PROP_STRING) ], [ "subtitle", base.PROP_STRING ] ]));
60044
60072
  };
60045
60073
  var DEFAULT_CLS$1 = "app-wizard-step-content";
60046
60074
  var WIDGET_CONFIG$1 = {
@@ -60344,6 +60372,7 @@
60344
60372
  this.setDefaultStep(step);
60345
60373
  }
60346
60374
  }
60375
+ this.addMoreText();
60347
60376
  };
60348
60377
  WizardComponent.prototype.onWizardHeaderClick = function($event, currentStep) {
60349
60378
  var _this = this;
@@ -60359,6 +60388,7 @@
60359
60388
  }));
60360
60389
  this.currentStep = currentStep;
60361
60390
  this.currentStep.active = true;
60391
+ this.addMoreText();
60362
60392
  }
60363
60393
  };
60364
60394
  WizardComponent.prototype.next = function(eventName) {
@@ -60385,6 +60415,7 @@
60385
60415
  nextStep.active = true;
60386
60416
  this.currentStep = nextStep;
60387
60417
  }
60418
+ this.addMoreText();
60388
60419
  };
60389
60420
  WizardComponent.prototype.prev = function() {
60390
60421
  var currentStep = this.currentStep;
@@ -60400,6 +60431,7 @@
60400
60431
  prevStep.active = true;
60401
60432
  this.currentStep = prevStep;
60402
60433
  }
60434
+ this.addMoreText();
60403
60435
  };
60404
60436
  WizardComponent.prototype.skip = function() {
60405
60437
  this.next("skip");
@@ -60415,6 +60447,42 @@
60415
60447
  steps: this.steps.toArray()
60416
60448
  });
60417
60449
  };
60450
+ WizardComponent.prototype.addMoreText = function() {
60451
+ setTimeout((function() {
60452
+ var newWindowWidth = $(window).width();
60453
+ if (newWindowWidth < 768) {
60454
+ $(".app-wizard-step.current .subtitle-wrapper .step-title").css({
60455
+ height: "auto",
60456
+ display: "block"
60457
+ });
60458
+ var subtitleTextLength = $(".app-wizard-step.current .subtitle-wrapper .step-title").height();
60459
+ $(".read_more").css("display", "none");
60460
+ $(".current .subtitle-wrapper").removeClass("readmore_subtitle");
60461
+ if (subtitleTextLength > 44) {
60462
+ $(".app-wizard-step.current .subtitle-wrapper .step-title").css({
60463
+ height: "44px",
60464
+ display: "-webkit-box"
60465
+ });
60466
+ $(".current .read_more").css("display", "block");
60467
+ $(".active .read_more").css("display", "none");
60468
+ $(".disable .read_more").css("display", "none");
60469
+ $(".app-wizard-step>a").css("height", "100px");
60470
+ }
60471
+ }
60472
+ }));
60473
+ };
60474
+ WizardComponent.prototype.readMoreSubtitle = function() {
60475
+ $(".current .subtitle-wrapper").addClass("readmore_subtitle");
60476
+ $(".current .read_more").css("display", "none");
60477
+ $(document).on("mouseup", (function(e) {
60478
+ var container = $(".subtitle-wrapper");
60479
+ if (!container.is(e.target) && container.has(e.target).length === 0) {
60480
+ $(".current .subtitle-wrapper").removeClass("readmore_subtitle");
60481
+ $(".current .read_more").css("display", "block");
60482
+ $(document).off("mouseup");
60483
+ }
60484
+ }));
60485
+ };
60418
60486
  WizardComponent.prototype.isFirstStep = function(stepRef) {
60419
60487
  return this.steps.first === stepRef;
60420
60488
  };
@@ -60437,6 +60505,11 @@
60437
60505
  WizardComponent.prototype.ngAfterViewInit = function() {
60438
60506
  _super.prototype.ngAfterViewInit.call(this);
60439
60507
  base.styler(this.nativeElement.querySelector(".panel-body"), this, base.APPLY_STYLES_TYPE.INNER_SHELL);
60508
+ setTimeout((function() {
60509
+ if ($(window).width() < 768) {
60510
+ $(".app-wizard").removeClass("vertical");
60511
+ }
60512
+ }));
60440
60513
  };
60441
60514
  return WizardComponent;
60442
60515
  }(base.StylableComponent);
@@ -60445,7 +60518,7 @@
60445
60518
  type: core.Component,
60446
60519
  args: [ {
60447
60520
  selector: "div[wmWizard]",
60448
- 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',
60521
+ 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',
60449
60522
  providers: [ base.provideAsWidgetRef(WizardComponent) ]
60450
60523
  } ]
60451
60524
  } ];
@@ -67877,9 +67950,152 @@
67877
67950
  type: ComponentRefProvider
67878
67951
  } ];
67879
67952
  };
67953
+ var PipeProvider = function() {
67954
+ function PipeProvider(compiler, injector, domSanitizer, i18service) {
67955
+ var _this = this;
67956
+ var _a;
67957
+ this.compiler = compiler;
67958
+ this.injector = injector;
67959
+ this.domSanitizer = domSanitizer;
67960
+ this.i18service = i18service;
67961
+ this._locale = i2.getSessionStorageItem("selectedLocale") || "en";
67962
+ this.formatsByLocale = (_a = this.i18service) === null || _a === void 0 ? void 0 : _a.getwidgetLocale();
67963
+ this.preparePipeMeta = function(reference, name, pure, diDeps) {
67964
+ if (diDeps === void 0) {
67965
+ diDeps = [];
67966
+ }
67967
+ return {
67968
+ type: {
67969
+ reference: reference,
67970
+ diDeps: diDeps
67971
+ },
67972
+ name: name,
67973
+ pure: pure
67974
+ };
67975
+ };
67976
+ 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 ]) ];
67977
+ this._pipeMeta = new Map;
67978
+ this._pipeData.forEach((function(v) {
67979
+ _this._pipeMeta.set(v.name, v);
67980
+ }));
67981
+ }
67982
+ PipeProvider.prototype.unknownPipe = function(name) {
67983
+ throw Error("The pipe '" + name + "' could not be found");
67984
+ };
67985
+ PipeProvider.prototype.meta = function(name) {
67986
+ var meta = this._pipeMeta.get(name);
67987
+ if (!meta) {
67988
+ this.unknownPipe(name);
67989
+ }
67990
+ return meta;
67991
+ };
67992
+ PipeProvider.prototype.getPipeNameVsIsPureMap = function() {
67993
+ var _map = new Map;
67994
+ this._pipeMeta.forEach((function(v, k) {
67995
+ _map.set(k, v.pure);
67996
+ }));
67997
+ return _map;
67998
+ };
67999
+ PipeProvider.prototype.resolveDep = function(dep) {
68000
+ return this.injector.get(dep.token.identifier.reference);
68001
+ };
68002
+ PipeProvider.prototype.getInstance = function(name) {
68003
+ var e_1, _b;
68004
+ var _c = this.meta(name).type, ref = _c.reference, deps = _c.diDeps;
68005
+ if (!ref) {
68006
+ this.unknownPipe(name);
68007
+ }
68008
+ if (!deps.length) {
68009
+ return new ref;
68010
+ } else {
68011
+ var args = [];
68012
+ try {
68013
+ for (var deps_1 = __values(deps), deps_1_1 = deps_1.next(); !deps_1_1.done; deps_1_1 = deps_1.next()) {
68014
+ var dep = deps_1_1.value;
68015
+ args.push(dep);
68016
+ }
68017
+ } catch (e_1_1) {
68018
+ e_1 = {
68019
+ error: e_1_1
68020
+ };
68021
+ } finally {
68022
+ try {
68023
+ if (deps_1_1 && !deps_1_1.done && (_b = deps_1.return)) _b.call(deps_1);
68024
+ } finally {
68025
+ if (e_1) throw e_1.error;
68026
+ }
68027
+ }
68028
+ return new (ref.bind.apply(ref, __spreadArray([ void 0 ], __read(args))));
68029
+ }
68030
+ };
68031
+ return PipeProvider;
68032
+ }();
68033
+ PipeProvider.\u0275prov = i0__namespace.\u0275\u0275defineInjectable({
68034
+ factory: function PipeProvider_Factory() {
68035
+ 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));
68036
+ },
68037
+ token: PipeProvider,
68038
+ providedIn: "root"
68039
+ });
68040
+ PipeProvider.decorators = [ {
68041
+ type: i0.Injectable,
68042
+ args: [ {
68043
+ providedIn: "root"
68044
+ } ]
68045
+ } ];
68046
+ PipeProvider.ctorParameters = function() {
68047
+ return [ {
68048
+ type: i0.Compiler
68049
+ }, {
68050
+ type: i0.Injector
68051
+ }, {
68052
+ type: i1.DomSanitizer
68053
+ }, {
68054
+ type: i2.AbstractI18nService
68055
+ } ];
68056
+ };
68057
+ var PipeService = function() {
68058
+ function PipeService(pipeProvider, $app) {
68059
+ this.pipeProvider = pipeProvider;
68060
+ this.$app = $app;
68061
+ this.supportedPipes = [ "toDate", "toCurrency", "prefix", "suffix", "numberToString", "stringToNumber", "timeFromNow", "trustAs", "sanitize" ];
68062
+ if (this.$app.isApplicationType) {
68063
+ this.supportedPipes.push("custom");
68064
+ }
68065
+ }
68066
+ PipeService.prototype.getPipe = function(name) {
68067
+ if (this.supportedPipes.includes(name)) {
68068
+ return this.pipeProvider.getInstance(name);
68069
+ } else {
68070
+ throw Error("The pipe '" + name + "' could not be found");
68071
+ }
68072
+ };
68073
+ return PipeService;
68074
+ }();
68075
+ PipeService.\u0275prov = i0__namespace.\u0275\u0275defineInjectable({
68076
+ factory: function PipeService_Factory() {
68077
+ return new PipeService(i0__namespace.\u0275\u0275inject(PipeProvider), i0__namespace.\u0275\u0275inject(i2__namespace.App));
68078
+ },
68079
+ token: PipeService,
68080
+ providedIn: "root"
68081
+ });
68082
+ PipeService.decorators = [ {
68083
+ type: i0.Injectable,
68084
+ args: [ {
68085
+ providedIn: "root"
68086
+ } ]
68087
+ } ];
68088
+ PipeService.ctorParameters = function() {
68089
+ return [ {
68090
+ type: PipeProvider
68091
+ }, {
68092
+ type: i2.App
68093
+ } ];
68094
+ };
67880
68095
  var injectorMap = {
67881
68096
  DialogService: i2.AbstractDialogService,
67882
68097
  i18nService: i2.AbstractI18nService,
68098
+ PipeService: PipeService,
67883
68099
  statePersistence: i2.StatePersistence,
67884
68100
  SpinnerService: i2.AbstractSpinnerService,
67885
68101
  StatePersistenceService: i2.StatePersistence,
@@ -68996,110 +69212,6 @@
68996
69212
  type: i2.AbstractI18nService
68997
69213
  } ];
68998
69214
  };
68999
- var PipeProvider = function() {
69000
- function PipeProvider(compiler, injector, domSanitizer, i18service) {
69001
- var _this = this;
69002
- var _a;
69003
- this.compiler = compiler;
69004
- this.injector = injector;
69005
- this.domSanitizer = domSanitizer;
69006
- this.i18service = i18service;
69007
- this._locale = i2.getSessionStorageItem("selectedLocale") || "en";
69008
- this.formatsByLocale = (_a = this.i18service) === null || _a === void 0 ? void 0 : _a.getwidgetLocale();
69009
- this.preparePipeMeta = function(reference, name, pure, diDeps) {
69010
- if (diDeps === void 0) {
69011
- diDeps = [];
69012
- }
69013
- return {
69014
- type: {
69015
- reference: reference,
69016
- diDeps: diDeps
69017
- },
69018
- name: name,
69019
- pure: pure
69020
- };
69021
- };
69022
- 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 ]) ];
69023
- this._pipeMeta = new Map;
69024
- this._pipeData.forEach((function(v) {
69025
- _this._pipeMeta.set(v.name, v);
69026
- }));
69027
- }
69028
- PipeProvider.prototype.unknownPipe = function(name) {
69029
- throw Error("The pipe '" + name + "' could not be found");
69030
- };
69031
- PipeProvider.prototype.meta = function(name) {
69032
- var meta = this._pipeMeta.get(name);
69033
- if (!meta) {
69034
- this.unknownPipe(name);
69035
- }
69036
- return meta;
69037
- };
69038
- PipeProvider.prototype.getPipeNameVsIsPureMap = function() {
69039
- var _map = new Map;
69040
- this._pipeMeta.forEach((function(v, k) {
69041
- _map.set(k, v.pure);
69042
- }));
69043
- return _map;
69044
- };
69045
- PipeProvider.prototype.resolveDep = function(dep) {
69046
- return this.injector.get(dep.token.identifier.reference);
69047
- };
69048
- PipeProvider.prototype.getInstance = function(name) {
69049
- var e_1, _b;
69050
- var _c = this.meta(name).type, ref = _c.reference, deps = _c.diDeps;
69051
- if (!ref) {
69052
- this.unknownPipe(name);
69053
- }
69054
- if (!deps.length) {
69055
- return new ref;
69056
- } else {
69057
- var args = [];
69058
- try {
69059
- for (var deps_1 = __values(deps), deps_1_1 = deps_1.next(); !deps_1_1.done; deps_1_1 = deps_1.next()) {
69060
- var dep = deps_1_1.value;
69061
- args.push(dep);
69062
- }
69063
- } catch (e_1_1) {
69064
- e_1 = {
69065
- error: e_1_1
69066
- };
69067
- } finally {
69068
- try {
69069
- if (deps_1_1 && !deps_1_1.done && (_b = deps_1.return)) _b.call(deps_1);
69070
- } finally {
69071
- if (e_1) throw e_1.error;
69072
- }
69073
- }
69074
- return new (ref.bind.apply(ref, __spreadArray([ void 0 ], __read(args))));
69075
- }
69076
- };
69077
- return PipeProvider;
69078
- }();
69079
- PipeProvider.\u0275prov = i0__namespace.\u0275\u0275defineInjectable({
69080
- factory: function PipeProvider_Factory() {
69081
- 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));
69082
- },
69083
- token: PipeProvider,
69084
- providedIn: "root"
69085
- });
69086
- PipeProvider.decorators = [ {
69087
- type: i0.Injectable,
69088
- args: [ {
69089
- providedIn: "root"
69090
- } ]
69091
- } ];
69092
- PipeProvider.ctorParameters = function() {
69093
- return [ {
69094
- type: i0.Compiler
69095
- }, {
69096
- type: i0.Injector
69097
- }, {
69098
- type: i1.DomSanitizer
69099
- }, {
69100
- type: i2.AbstractI18nService
69101
- } ];
69102
- };
69103
69215
  var AppComponent = function() {
69104
69216
  function AppComponent(_pipeProvider, _appRef, elRef, oAuthService, dialogService, spinnerService, ngZone, router$1, app, appManager) {
69105
69217
  var _this = this;
@@ -70090,7 +70202,7 @@
70090
70202
  provide: http.HTTP_INTERCEPTORS,
70091
70203
  useClass: HttpCallInterceptor,
70092
70204
  multi: true
70093
- }, common.DecimalPipe, common.DatePipe, AppManagerService, PrefabManagerService, AuthGuard, RoleGuard, PageNotFoundGaurd, CanDeactivatePageGuard, AppJSResolve, AppExtensionJSResolve, I18nResolve, getSettingProvider(MAX_CACHE_SIZE, 10), getSettingProvider(MAX_CACHE_AGE, 30 * 60) ]
70205
+ }, 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) ]
70094
70206
  };
70095
70207
  };
70096
70208
  RuntimeBaseModule.prototype.getDeviceDetails = function() {
@@ -70283,6 +70395,7 @@
70283
70395
  exports.NavigationServiceImpl = NavigationServiceImpl;
70284
70396
  exports.PageNotFoundGaurd = PageNotFoundGaurd;
70285
70397
  exports.PipeProvider = PipeProvider;
70398
+ exports.PipeService = PipeService;
70286
70399
  exports.PrefabConfigProvider = PrefabConfigProvider;
70287
70400
  exports.PrefabDirective = PrefabDirective;
70288
70401
  exports.PrefabManagerService = PrefabManagerService;