@wavemaker/app-runtime-wm-build 11.4.0-next.25720 → 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.
- app-runtime-wm-build/package.json +1 -1
- app-runtime-wm-build/wmapp/scripts/wm-loader.js +215 -113
- app-runtime-wm-build/wmapp/scripts/wm-loader.min.js +5 -5
- app-runtime-wm-build/wmapp/styles/css/wm-style.css +1 -1
- app-runtime-wm-build/wmmobile/scripts/wm-mobileloader.js +215 -113
- app-runtime-wm-build/wmmobile/scripts/wm-mobileloader.min.js +5 -5
- 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
|
}
|
|
@@ -32417,7 +32434,7 @@
|
|
|
32417
32434
|
var value = _.get(dataObj, xKey);
|
|
32418
32435
|
if (isLineTypeChart(this.type) && !core.isNumberType(this.xAxisDataType)) {
|
|
32419
32436
|
this.xDataKeyArr.push(value);
|
|
32420
|
-
return
|
|
32437
|
+
return value;
|
|
32421
32438
|
}
|
|
32422
32439
|
return value;
|
|
32423
32440
|
};
|
|
@@ -60051,7 +60068,7 @@
|
|
|
60051
60068
|
value: true
|
|
60052
60069
|
}, base.PROP_BOOLEAN) ], [ "title", Object.assign({
|
|
60053
60070
|
value: "Step Title"
|
|
60054
|
-
}, base.PROP_STRING) ] ]));
|
|
60071
|
+
}, base.PROP_STRING) ], [ "subtitle", base.PROP_STRING ] ]));
|
|
60055
60072
|
};
|
|
60056
60073
|
var DEFAULT_CLS$1 = "app-wizard-step-content";
|
|
60057
60074
|
var WIDGET_CONFIG$1 = {
|
|
@@ -60355,6 +60372,7 @@
|
|
|
60355
60372
|
this.setDefaultStep(step);
|
|
60356
60373
|
}
|
|
60357
60374
|
}
|
|
60375
|
+
this.addMoreText();
|
|
60358
60376
|
};
|
|
60359
60377
|
WizardComponent.prototype.onWizardHeaderClick = function($event, currentStep) {
|
|
60360
60378
|
var _this = this;
|
|
@@ -60370,6 +60388,7 @@
|
|
|
60370
60388
|
}));
|
|
60371
60389
|
this.currentStep = currentStep;
|
|
60372
60390
|
this.currentStep.active = true;
|
|
60391
|
+
this.addMoreText();
|
|
60373
60392
|
}
|
|
60374
60393
|
};
|
|
60375
60394
|
WizardComponent.prototype.next = function(eventName) {
|
|
@@ -60396,6 +60415,7 @@
|
|
|
60396
60415
|
nextStep.active = true;
|
|
60397
60416
|
this.currentStep = nextStep;
|
|
60398
60417
|
}
|
|
60418
|
+
this.addMoreText();
|
|
60399
60419
|
};
|
|
60400
60420
|
WizardComponent.prototype.prev = function() {
|
|
60401
60421
|
var currentStep = this.currentStep;
|
|
@@ -60411,6 +60431,7 @@
|
|
|
60411
60431
|
prevStep.active = true;
|
|
60412
60432
|
this.currentStep = prevStep;
|
|
60413
60433
|
}
|
|
60434
|
+
this.addMoreText();
|
|
60414
60435
|
};
|
|
60415
60436
|
WizardComponent.prototype.skip = function() {
|
|
60416
60437
|
this.next("skip");
|
|
@@ -60426,6 +60447,42 @@
|
|
|
60426
60447
|
steps: this.steps.toArray()
|
|
60427
60448
|
});
|
|
60428
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
|
+
};
|
|
60429
60486
|
WizardComponent.prototype.isFirstStep = function(stepRef) {
|
|
60430
60487
|
return this.steps.first === stepRef;
|
|
60431
60488
|
};
|
|
@@ -60448,6 +60505,11 @@
|
|
|
60448
60505
|
WizardComponent.prototype.ngAfterViewInit = function() {
|
|
60449
60506
|
_super.prototype.ngAfterViewInit.call(this);
|
|
60450
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
|
+
}));
|
|
60451
60513
|
};
|
|
60452
60514
|
return WizardComponent;
|
|
60453
60515
|
}(base.StylableComponent);
|
|
@@ -60456,7 +60518,7 @@
|
|
|
60456
60518
|
type: core.Component,
|
|
60457
60519
|
args: [ {
|
|
60458
60520
|
selector: "div[wmWizard]",
|
|
60459
|
-
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
|
|
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 »</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',
|
|
60460
60522
|
providers: [ base.provideAsWidgetRef(WizardComponent) ]
|
|
60461
60523
|
} ]
|
|
60462
60524
|
} ];
|
|
@@ -67888,9 +67950,152 @@
|
|
|
67888
67950
|
type: ComponentRefProvider
|
|
67889
67951
|
} ];
|
|
67890
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
|
+
};
|
|
67891
68095
|
var injectorMap = {
|
|
67892
68096
|
DialogService: i2.AbstractDialogService,
|
|
67893
68097
|
i18nService: i2.AbstractI18nService,
|
|
68098
|
+
PipeService: PipeService,
|
|
67894
68099
|
statePersistence: i2.StatePersistence,
|
|
67895
68100
|
SpinnerService: i2.AbstractSpinnerService,
|
|
67896
68101
|
StatePersistenceService: i2.StatePersistence,
|
|
@@ -69007,110 +69212,6 @@
|
|
|
69007
69212
|
type: i2.AbstractI18nService
|
|
69008
69213
|
} ];
|
|
69009
69214
|
};
|
|
69010
|
-
var PipeProvider = function() {
|
|
69011
|
-
function PipeProvider(compiler, injector, domSanitizer, i18service) {
|
|
69012
|
-
var _this = this;
|
|
69013
|
-
var _a;
|
|
69014
|
-
this.compiler = compiler;
|
|
69015
|
-
this.injector = injector;
|
|
69016
|
-
this.domSanitizer = domSanitizer;
|
|
69017
|
-
this.i18service = i18service;
|
|
69018
|
-
this._locale = i2.getSessionStorageItem("selectedLocale") || "en";
|
|
69019
|
-
this.formatsByLocale = (_a = this.i18service) === null || _a === void 0 ? void 0 : _a.getwidgetLocale();
|
|
69020
|
-
this.preparePipeMeta = function(reference, name, pure, diDeps) {
|
|
69021
|
-
if (diDeps === void 0) {
|
|
69022
|
-
diDeps = [];
|
|
69023
|
-
}
|
|
69024
|
-
return {
|
|
69025
|
-
type: {
|
|
69026
|
-
reference: reference,
|
|
69027
|
-
diDeps: diDeps
|
|
69028
|
-
},
|
|
69029
|
-
name: name,
|
|
69030
|
-
pure: pure
|
|
69031
|
-
};
|
|
69032
|
-
};
|
|
69033
|
-
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 ]) ];
|
|
69034
|
-
this._pipeMeta = new Map;
|
|
69035
|
-
this._pipeData.forEach((function(v) {
|
|
69036
|
-
_this._pipeMeta.set(v.name, v);
|
|
69037
|
-
}));
|
|
69038
|
-
}
|
|
69039
|
-
PipeProvider.prototype.unknownPipe = function(name) {
|
|
69040
|
-
throw Error("The pipe '" + name + "' could not be found");
|
|
69041
|
-
};
|
|
69042
|
-
PipeProvider.prototype.meta = function(name) {
|
|
69043
|
-
var meta = this._pipeMeta.get(name);
|
|
69044
|
-
if (!meta) {
|
|
69045
|
-
this.unknownPipe(name);
|
|
69046
|
-
}
|
|
69047
|
-
return meta;
|
|
69048
|
-
};
|
|
69049
|
-
PipeProvider.prototype.getPipeNameVsIsPureMap = function() {
|
|
69050
|
-
var _map = new Map;
|
|
69051
|
-
this._pipeMeta.forEach((function(v, k) {
|
|
69052
|
-
_map.set(k, v.pure);
|
|
69053
|
-
}));
|
|
69054
|
-
return _map;
|
|
69055
|
-
};
|
|
69056
|
-
PipeProvider.prototype.resolveDep = function(dep) {
|
|
69057
|
-
return this.injector.get(dep.token.identifier.reference);
|
|
69058
|
-
};
|
|
69059
|
-
PipeProvider.prototype.getInstance = function(name) {
|
|
69060
|
-
var e_1, _b;
|
|
69061
|
-
var _c = this.meta(name).type, ref = _c.reference, deps = _c.diDeps;
|
|
69062
|
-
if (!ref) {
|
|
69063
|
-
this.unknownPipe(name);
|
|
69064
|
-
}
|
|
69065
|
-
if (!deps.length) {
|
|
69066
|
-
return new ref;
|
|
69067
|
-
} else {
|
|
69068
|
-
var args = [];
|
|
69069
|
-
try {
|
|
69070
|
-
for (var deps_1 = __values(deps), deps_1_1 = deps_1.next(); !deps_1_1.done; deps_1_1 = deps_1.next()) {
|
|
69071
|
-
var dep = deps_1_1.value;
|
|
69072
|
-
args.push(dep);
|
|
69073
|
-
}
|
|
69074
|
-
} catch (e_1_1) {
|
|
69075
|
-
e_1 = {
|
|
69076
|
-
error: e_1_1
|
|
69077
|
-
};
|
|
69078
|
-
} finally {
|
|
69079
|
-
try {
|
|
69080
|
-
if (deps_1_1 && !deps_1_1.done && (_b = deps_1.return)) _b.call(deps_1);
|
|
69081
|
-
} finally {
|
|
69082
|
-
if (e_1) throw e_1.error;
|
|
69083
|
-
}
|
|
69084
|
-
}
|
|
69085
|
-
return new (ref.bind.apply(ref, __spreadArray([ void 0 ], __read(args))));
|
|
69086
|
-
}
|
|
69087
|
-
};
|
|
69088
|
-
return PipeProvider;
|
|
69089
|
-
}();
|
|
69090
|
-
PipeProvider.\u0275prov = i0__namespace.\u0275\u0275defineInjectable({
|
|
69091
|
-
factory: function PipeProvider_Factory() {
|
|
69092
|
-
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));
|
|
69093
|
-
},
|
|
69094
|
-
token: PipeProvider,
|
|
69095
|
-
providedIn: "root"
|
|
69096
|
-
});
|
|
69097
|
-
PipeProvider.decorators = [ {
|
|
69098
|
-
type: i0.Injectable,
|
|
69099
|
-
args: [ {
|
|
69100
|
-
providedIn: "root"
|
|
69101
|
-
} ]
|
|
69102
|
-
} ];
|
|
69103
|
-
PipeProvider.ctorParameters = function() {
|
|
69104
|
-
return [ {
|
|
69105
|
-
type: i0.Compiler
|
|
69106
|
-
}, {
|
|
69107
|
-
type: i0.Injector
|
|
69108
|
-
}, {
|
|
69109
|
-
type: i1.DomSanitizer
|
|
69110
|
-
}, {
|
|
69111
|
-
type: i2.AbstractI18nService
|
|
69112
|
-
} ];
|
|
69113
|
-
};
|
|
69114
69215
|
var AppComponent = function() {
|
|
69115
69216
|
function AppComponent(_pipeProvider, _appRef, elRef, oAuthService, dialogService, spinnerService, ngZone, router$1, app, appManager) {
|
|
69116
69217
|
var _this = this;
|
|
@@ -70101,7 +70202,7 @@
|
|
|
70101
70202
|
provide: http.HTTP_INTERCEPTORS,
|
|
70102
70203
|
useClass: HttpCallInterceptor,
|
|
70103
70204
|
multi: true
|
|
70104
|
-
}, 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) ]
|
|
70105
70206
|
};
|
|
70106
70207
|
};
|
|
70107
70208
|
RuntimeBaseModule.prototype.getDeviceDetails = function() {
|
|
@@ -70294,6 +70395,7 @@
|
|
|
70294
70395
|
exports.NavigationServiceImpl = NavigationServiceImpl;
|
|
70295
70396
|
exports.PageNotFoundGaurd = PageNotFoundGaurd;
|
|
70296
70397
|
exports.PipeProvider = PipeProvider;
|
|
70398
|
+
exports.PipeService = PipeService;
|
|
70297
70399
|
exports.PrefabConfigProvider = PrefabConfigProvider;
|
|
70298
70400
|
exports.PrefabDirective = PrefabDirective;
|
|
70299
70401
|
exports.PrefabManagerService = PrefabManagerService;
|