@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.
- app-runtime-wm-build/package.json +1 -1
- app-runtime-wm-build/wmapp/scripts/wm-loader.js +220 -113
- app-runtime-wm-build/wmapp/scripts/wm-loader.min.js +6 -6
- app-runtime-wm-build/wmapp/styles/css/wm-style.css +1 -1
- app-runtime-wm-build/wmmobile/scripts/wm-mobileloader.js +220 -113
- app-runtime-wm-build/wmmobile/scripts/wm-mobileloader.min.js +6 -6
- app-runtime-wm-build/wmmobile/styles/css/wm-style.css +1 -1
|
@@ -3012,11 +3012,15 @@
|
|
|
3012
3012
|
var isIos = function() {
|
|
3013
3013
|
return isIphone() || isIpod() || isIpad();
|
|
3014
3014
|
};
|
|
3015
|
-
var isLargeTabletLandscape = function() {
|
|
3016
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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 »</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
|
} ];
|
|
@@ -67779,9 +67846,152 @@
|
|
|
67779
67846
|
type: ComponentRefProvider
|
|
67780
67847
|
} ];
|
|
67781
67848
|
};
|
|
67849
|
+
var PipeProvider = function() {
|
|
67850
|
+
function PipeProvider(compiler, injector, domSanitizer, i18service) {
|
|
67851
|
+
var _this = this;
|
|
67852
|
+
var _a;
|
|
67853
|
+
this.compiler = compiler;
|
|
67854
|
+
this.injector = injector;
|
|
67855
|
+
this.domSanitizer = domSanitizer;
|
|
67856
|
+
this.i18service = i18service;
|
|
67857
|
+
this._locale = i2.getSessionStorageItem("selectedLocale") || "en";
|
|
67858
|
+
this.formatsByLocale = (_a = this.i18service) === null || _a === void 0 ? void 0 : _a.getwidgetLocale();
|
|
67859
|
+
this.preparePipeMeta = function(reference, name, pure, diDeps) {
|
|
67860
|
+
if (diDeps === void 0) {
|
|
67861
|
+
diDeps = [];
|
|
67862
|
+
}
|
|
67863
|
+
return {
|
|
67864
|
+
type: {
|
|
67865
|
+
reference: reference,
|
|
67866
|
+
diDeps: diDeps
|
|
67867
|
+
},
|
|
67868
|
+
name: name,
|
|
67869
|
+
pure: pure
|
|
67870
|
+
};
|
|
67871
|
+
};
|
|
67872
|
+
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 ]) ];
|
|
67873
|
+
this._pipeMeta = new Map;
|
|
67874
|
+
this._pipeData.forEach((function(v) {
|
|
67875
|
+
_this._pipeMeta.set(v.name, v);
|
|
67876
|
+
}));
|
|
67877
|
+
}
|
|
67878
|
+
PipeProvider.prototype.unknownPipe = function(name) {
|
|
67879
|
+
throw Error("The pipe '" + name + "' could not be found");
|
|
67880
|
+
};
|
|
67881
|
+
PipeProvider.prototype.meta = function(name) {
|
|
67882
|
+
var meta = this._pipeMeta.get(name);
|
|
67883
|
+
if (!meta) {
|
|
67884
|
+
this.unknownPipe(name);
|
|
67885
|
+
}
|
|
67886
|
+
return meta;
|
|
67887
|
+
};
|
|
67888
|
+
PipeProvider.prototype.getPipeNameVsIsPureMap = function() {
|
|
67889
|
+
var _map = new Map;
|
|
67890
|
+
this._pipeMeta.forEach((function(v, k) {
|
|
67891
|
+
_map.set(k, v.pure);
|
|
67892
|
+
}));
|
|
67893
|
+
return _map;
|
|
67894
|
+
};
|
|
67895
|
+
PipeProvider.prototype.resolveDep = function(dep) {
|
|
67896
|
+
return this.injector.get(dep.token.identifier.reference);
|
|
67897
|
+
};
|
|
67898
|
+
PipeProvider.prototype.getInstance = function(name) {
|
|
67899
|
+
var e_1, _b;
|
|
67900
|
+
var _c = this.meta(name).type, ref = _c.reference, deps = _c.diDeps;
|
|
67901
|
+
if (!ref) {
|
|
67902
|
+
this.unknownPipe(name);
|
|
67903
|
+
}
|
|
67904
|
+
if (!deps.length) {
|
|
67905
|
+
return new ref;
|
|
67906
|
+
} else {
|
|
67907
|
+
var args = [];
|
|
67908
|
+
try {
|
|
67909
|
+
for (var deps_1 = __values(deps), deps_1_1 = deps_1.next(); !deps_1_1.done; deps_1_1 = deps_1.next()) {
|
|
67910
|
+
var dep = deps_1_1.value;
|
|
67911
|
+
args.push(dep);
|
|
67912
|
+
}
|
|
67913
|
+
} catch (e_1_1) {
|
|
67914
|
+
e_1 = {
|
|
67915
|
+
error: e_1_1
|
|
67916
|
+
};
|
|
67917
|
+
} finally {
|
|
67918
|
+
try {
|
|
67919
|
+
if (deps_1_1 && !deps_1_1.done && (_b = deps_1.return)) _b.call(deps_1);
|
|
67920
|
+
} finally {
|
|
67921
|
+
if (e_1) throw e_1.error;
|
|
67922
|
+
}
|
|
67923
|
+
}
|
|
67924
|
+
return new (ref.bind.apply(ref, __spreadArray([ void 0 ], __read(args))));
|
|
67925
|
+
}
|
|
67926
|
+
};
|
|
67927
|
+
return PipeProvider;
|
|
67928
|
+
}();
|
|
67929
|
+
PipeProvider.\u0275prov = i0__namespace.\u0275\u0275defineInjectable({
|
|
67930
|
+
factory: function PipeProvider_Factory() {
|
|
67931
|
+
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));
|
|
67932
|
+
},
|
|
67933
|
+
token: PipeProvider,
|
|
67934
|
+
providedIn: "root"
|
|
67935
|
+
});
|
|
67936
|
+
PipeProvider.decorators = [ {
|
|
67937
|
+
type: i0.Injectable,
|
|
67938
|
+
args: [ {
|
|
67939
|
+
providedIn: "root"
|
|
67940
|
+
} ]
|
|
67941
|
+
} ];
|
|
67942
|
+
PipeProvider.ctorParameters = function() {
|
|
67943
|
+
return [ {
|
|
67944
|
+
type: i0.Compiler
|
|
67945
|
+
}, {
|
|
67946
|
+
type: i0.Injector
|
|
67947
|
+
}, {
|
|
67948
|
+
type: i1.DomSanitizer
|
|
67949
|
+
}, {
|
|
67950
|
+
type: i2.AbstractI18nService
|
|
67951
|
+
} ];
|
|
67952
|
+
};
|
|
67953
|
+
var PipeService = function() {
|
|
67954
|
+
function PipeService(pipeProvider, $app) {
|
|
67955
|
+
this.pipeProvider = pipeProvider;
|
|
67956
|
+
this.$app = $app;
|
|
67957
|
+
this.supportedPipes = [ "toDate", "toCurrency", "prefix", "suffix", "numberToString", "stringToNumber", "timeFromNow", "trustAs", "sanitize" ];
|
|
67958
|
+
if (this.$app.isApplicationType) {
|
|
67959
|
+
this.supportedPipes.push("custom");
|
|
67960
|
+
}
|
|
67961
|
+
}
|
|
67962
|
+
PipeService.prototype.getPipe = function(name) {
|
|
67963
|
+
if (this.supportedPipes.includes(name)) {
|
|
67964
|
+
return this.pipeProvider.getInstance(name);
|
|
67965
|
+
} else {
|
|
67966
|
+
throw Error("The pipe '" + name + "' could not be found");
|
|
67967
|
+
}
|
|
67968
|
+
};
|
|
67969
|
+
return PipeService;
|
|
67970
|
+
}();
|
|
67971
|
+
PipeService.\u0275prov = i0__namespace.\u0275\u0275defineInjectable({
|
|
67972
|
+
factory: function PipeService_Factory() {
|
|
67973
|
+
return new PipeService(i0__namespace.\u0275\u0275inject(PipeProvider), i0__namespace.\u0275\u0275inject(i2__namespace.App));
|
|
67974
|
+
},
|
|
67975
|
+
token: PipeService,
|
|
67976
|
+
providedIn: "root"
|
|
67977
|
+
});
|
|
67978
|
+
PipeService.decorators = [ {
|
|
67979
|
+
type: i0.Injectable,
|
|
67980
|
+
args: [ {
|
|
67981
|
+
providedIn: "root"
|
|
67982
|
+
} ]
|
|
67983
|
+
} ];
|
|
67984
|
+
PipeService.ctorParameters = function() {
|
|
67985
|
+
return [ {
|
|
67986
|
+
type: PipeProvider
|
|
67987
|
+
}, {
|
|
67988
|
+
type: i2.App
|
|
67989
|
+
} ];
|
|
67990
|
+
};
|
|
67782
67991
|
var injectorMap = {
|
|
67783
67992
|
DialogService: i2.AbstractDialogService,
|
|
67784
67993
|
i18nService: i2.AbstractI18nService,
|
|
67994
|
+
PipeService: PipeService,
|
|
67785
67995
|
statePersistence: i2.StatePersistence,
|
|
67786
67996
|
SpinnerService: i2.AbstractSpinnerService,
|
|
67787
67997
|
StatePersistenceService: i2.StatePersistence,
|
|
@@ -68898,110 +69108,6 @@
|
|
|
68898
69108
|
type: i2.AbstractI18nService
|
|
68899
69109
|
} ];
|
|
68900
69110
|
};
|
|
68901
|
-
var PipeProvider = function() {
|
|
68902
|
-
function PipeProvider(compiler, injector, domSanitizer, i18service) {
|
|
68903
|
-
var _this = this;
|
|
68904
|
-
var _a;
|
|
68905
|
-
this.compiler = compiler;
|
|
68906
|
-
this.injector = injector;
|
|
68907
|
-
this.domSanitizer = domSanitizer;
|
|
68908
|
-
this.i18service = i18service;
|
|
68909
|
-
this._locale = i2.getSessionStorageItem("selectedLocale") || "en";
|
|
68910
|
-
this.formatsByLocale = (_a = this.i18service) === null || _a === void 0 ? void 0 : _a.getwidgetLocale();
|
|
68911
|
-
this.preparePipeMeta = function(reference, name, pure, diDeps) {
|
|
68912
|
-
if (diDeps === void 0) {
|
|
68913
|
-
diDeps = [];
|
|
68914
|
-
}
|
|
68915
|
-
return {
|
|
68916
|
-
type: {
|
|
68917
|
-
reference: reference,
|
|
68918
|
-
diDeps: diDeps
|
|
68919
|
-
},
|
|
68920
|
-
name: name,
|
|
68921
|
-
pure: pure
|
|
68922
|
-
};
|
|
68923
|
-
};
|
|
68924
|
-
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 ]) ];
|
|
68925
|
-
this._pipeMeta = new Map;
|
|
68926
|
-
this._pipeData.forEach((function(v) {
|
|
68927
|
-
_this._pipeMeta.set(v.name, v);
|
|
68928
|
-
}));
|
|
68929
|
-
}
|
|
68930
|
-
PipeProvider.prototype.unknownPipe = function(name) {
|
|
68931
|
-
throw Error("The pipe '" + name + "' could not be found");
|
|
68932
|
-
};
|
|
68933
|
-
PipeProvider.prototype.meta = function(name) {
|
|
68934
|
-
var meta = this._pipeMeta.get(name);
|
|
68935
|
-
if (!meta) {
|
|
68936
|
-
this.unknownPipe(name);
|
|
68937
|
-
}
|
|
68938
|
-
return meta;
|
|
68939
|
-
};
|
|
68940
|
-
PipeProvider.prototype.getPipeNameVsIsPureMap = function() {
|
|
68941
|
-
var _map = new Map;
|
|
68942
|
-
this._pipeMeta.forEach((function(v, k) {
|
|
68943
|
-
_map.set(k, v.pure);
|
|
68944
|
-
}));
|
|
68945
|
-
return _map;
|
|
68946
|
-
};
|
|
68947
|
-
PipeProvider.prototype.resolveDep = function(dep) {
|
|
68948
|
-
return this.injector.get(dep.token.identifier.reference);
|
|
68949
|
-
};
|
|
68950
|
-
PipeProvider.prototype.getInstance = function(name) {
|
|
68951
|
-
var e_1, _b;
|
|
68952
|
-
var _c = this.meta(name).type, ref = _c.reference, deps = _c.diDeps;
|
|
68953
|
-
if (!ref) {
|
|
68954
|
-
this.unknownPipe(name);
|
|
68955
|
-
}
|
|
68956
|
-
if (!deps.length) {
|
|
68957
|
-
return new ref;
|
|
68958
|
-
} else {
|
|
68959
|
-
var args = [];
|
|
68960
|
-
try {
|
|
68961
|
-
for (var deps_1 = __values(deps), deps_1_1 = deps_1.next(); !deps_1_1.done; deps_1_1 = deps_1.next()) {
|
|
68962
|
-
var dep = deps_1_1.value;
|
|
68963
|
-
args.push(dep);
|
|
68964
|
-
}
|
|
68965
|
-
} catch (e_1_1) {
|
|
68966
|
-
e_1 = {
|
|
68967
|
-
error: e_1_1
|
|
68968
|
-
};
|
|
68969
|
-
} finally {
|
|
68970
|
-
try {
|
|
68971
|
-
if (deps_1_1 && !deps_1_1.done && (_b = deps_1.return)) _b.call(deps_1);
|
|
68972
|
-
} finally {
|
|
68973
|
-
if (e_1) throw e_1.error;
|
|
68974
|
-
}
|
|
68975
|
-
}
|
|
68976
|
-
return new (ref.bind.apply(ref, __spreadArray([ void 0 ], __read(args))));
|
|
68977
|
-
}
|
|
68978
|
-
};
|
|
68979
|
-
return PipeProvider;
|
|
68980
|
-
}();
|
|
68981
|
-
PipeProvider.\u0275prov = i0__namespace.\u0275\u0275defineInjectable({
|
|
68982
|
-
factory: function PipeProvider_Factory() {
|
|
68983
|
-
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));
|
|
68984
|
-
},
|
|
68985
|
-
token: PipeProvider,
|
|
68986
|
-
providedIn: "root"
|
|
68987
|
-
});
|
|
68988
|
-
PipeProvider.decorators = [ {
|
|
68989
|
-
type: i0.Injectable,
|
|
68990
|
-
args: [ {
|
|
68991
|
-
providedIn: "root"
|
|
68992
|
-
} ]
|
|
68993
|
-
} ];
|
|
68994
|
-
PipeProvider.ctorParameters = function() {
|
|
68995
|
-
return [ {
|
|
68996
|
-
type: i0.Compiler
|
|
68997
|
-
}, {
|
|
68998
|
-
type: i0.Injector
|
|
68999
|
-
}, {
|
|
69000
|
-
type: i1.DomSanitizer
|
|
69001
|
-
}, {
|
|
69002
|
-
type: i2.AbstractI18nService
|
|
69003
|
-
} ];
|
|
69004
|
-
};
|
|
69005
69111
|
var AppComponent = function() {
|
|
69006
69112
|
function AppComponent(_pipeProvider, _appRef, elRef, oAuthService, dialogService, spinnerService, ngZone, router$1, app, appManager) {
|
|
69007
69113
|
var _this = this;
|
|
@@ -69992,7 +70098,7 @@
|
|
|
69992
70098
|
provide: http.HTTP_INTERCEPTORS,
|
|
69993
70099
|
useClass: HttpCallInterceptor,
|
|
69994
70100
|
multi: true
|
|
69995
|
-
}, common.DecimalPipe, common.DatePipe, AppManagerService, PrefabManagerService, AuthGuard, RoleGuard, PageNotFoundGaurd, CanDeactivatePageGuard, AppJSResolve, AppExtensionJSResolve, I18nResolve, getSettingProvider(MAX_CACHE_SIZE, 10), getSettingProvider(MAX_CACHE_AGE, 30 * 60) ]
|
|
70101
|
+
}, 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) ]
|
|
69996
70102
|
};
|
|
69997
70103
|
};
|
|
69998
70104
|
RuntimeBaseModule.prototype.getDeviceDetails = function() {
|
|
@@ -70185,6 +70291,7 @@
|
|
|
70185
70291
|
exports.NavigationServiceImpl = NavigationServiceImpl;
|
|
70186
70292
|
exports.PageNotFoundGaurd = PageNotFoundGaurd;
|
|
70187
70293
|
exports.PipeProvider = PipeProvider;
|
|
70294
|
+
exports.PipeService = PipeService;
|
|
70188
70295
|
exports.PrefabConfigProvider = PrefabConfigProvider;
|
|
70189
70296
|
exports.PrefabDirective = PrefabDirective;
|
|
70190
70297
|
exports.PrefabManagerService = PrefabManagerService;
|