@lowcodeunit/applications-flow-common 1.33.87-lets-get-social-ish → 1.33.93-lets-get-social-ish
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.
- package/bundles/lowcodeunit-applications-flow-common.umd.js +474 -14
- package/bundles/lowcodeunit-applications-flow-common.umd.js.map +1 -1
- package/bundles/lowcodeunit-applications-flow-common.umd.min.js +2 -2
- package/bundles/lowcodeunit-applications-flow-common.umd.min.js.map +1 -1
- package/esm2015/lib/applications-flow.module.js +21 -4
- package/esm2015/lib/controls/processor-details-form/processor-details-form.component.js +265 -0
- package/esm2015/lib/controls/security-toggle/security-toggle.component.js +60 -0
- package/esm2015/lib/controls/source-control-form/source-control-form.component.js +59 -0
- package/esm2015/lib/elements/analytics-card/analytics-card.component.js +1 -1
- package/esm2015/lib/elements/feed-card-sm/feed-card-sm.component.js +1 -1
- package/esm2015/lib/elements/gh-control/gh-control.component.js +1 -1
- package/esm2015/lib/elements/main-feed-card/main-feed-card.component.js +1 -1
- package/esm2015/lib/elements/project-info-card/project-info-card.component.js +1 -1
- package/esm2015/lib/elements/slotted-card/slotted-card.component.js +4 -3
- package/esm2015/lowcodeunit-applications-flow-common.js +4 -1
- package/fesm2015/lowcodeunit-applications-flow-common.js +403 -11
- package/fesm2015/lowcodeunit-applications-flow-common.js.map +1 -1
- package/lib/applications-flow.module.d.ts.map +1 -1
- package/lib/controls/processor-details-form/processor-details-form.component.d.ts +48 -0
- package/lib/controls/processor-details-form/processor-details-form.component.d.ts.map +1 -0
- package/lib/controls/security-toggle/security-toggle.component.d.ts +16 -0
- package/lib/controls/security-toggle/security-toggle.component.d.ts.map +1 -0
- package/lib/controls/source-control-form/source-control-form.component.d.ts +26 -0
- package/lib/controls/source-control-form/source-control-form.component.d.ts.map +1 -0
- package/lib/elements/slotted-card/slotted-card.component.d.ts +1 -0
- package/lib/elements/slotted-card/slotted-card.component.d.ts.map +1 -1
- package/lowcodeunit-applications-flow-common.d.ts +3 -0
- package/lowcodeunit-applications-flow-common.d.ts.map +1 -1
- package/lowcodeunit-applications-flow-common.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@angular/common/http'), require('@lcu/common'), require('@angular/forms'), require('@angular/flex-layout'), require('@lowcodeunit/app-host-common'), require('@angular/cdk/keycodes'), require('rxjs/operators'), require('@angular/cdk/layout')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@lowcodeunit/applications-flow-common', ['exports', '@angular/core', 'rxjs', '@angular/common/http', '@lcu/common', '@angular/forms', '@angular/flex-layout', '@lowcodeunit/app-host-common', '@angular/cdk/keycodes', 'rxjs/operators', '@angular/cdk/layout'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.lowcodeunit = global.lowcodeunit || {}, global.lowcodeunit['applications-flow-common'] = {}), global.ng.core, global.rxjs, global.ng.common.http, global.i2, global.ng.forms, global.ng.flexLayout, global.appHostCommon, global.ng.cdk.keycodes, global.rxjs.operators, global.ng.cdk.layout));
|
|
5
|
-
}(this, (function (exports, i0, rxjs, i1, i2, forms, flexLayout, appHostCommon, keycodes, operators, layout) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@angular/common/http'), require('@lcu/common'), require('@angular/forms'), require('@angular/flex-layout'), require('@lowcodeunit/app-host-common'), require('@angular/cdk/keycodes'), require('rxjs/operators'), require('@angular/cdk/layout'), require('@angular/material/tooltip'), require('@angular/material/slide-toggle')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@lowcodeunit/applications-flow-common', ['exports', '@angular/core', 'rxjs', '@angular/common/http', '@lcu/common', '@angular/forms', '@angular/flex-layout', '@lowcodeunit/app-host-common', '@angular/cdk/keycodes', 'rxjs/operators', '@angular/cdk/layout', '@angular/material/tooltip', '@angular/material/slide-toggle'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.lowcodeunit = global.lowcodeunit || {}, global.lowcodeunit['applications-flow-common'] = {}), global.ng.core, global.rxjs, global.ng.common.http, global.i2, global.ng.forms, global.ng.flexLayout, global.appHostCommon, global.ng.cdk.keycodes, global.rxjs.operators, global.ng.cdk.layout, global.ng.material.tooltip, global.ng.material.slideToggle));
|
|
5
|
+
}(this, (function (exports, i0, rxjs, i1, i2, forms, flexLayout, appHostCommon, keycodes, operators, layout, tooltip, slideToggle) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -4717,8 +4717,8 @@
|
|
|
4717
4717
|
SlottedCardComponent.decorators = [
|
|
4718
4718
|
{ type: i0.Component, args: [{
|
|
4719
4719
|
selector: 'lcu-slotted-card',
|
|
4720
|
-
template: "<mat-card class=\"col-info-card\">\n <mat-card-header fxLayoutAlign=\"space-between center\">\n <mat-card-title class=\"card-title\">{{ Title }}</mat-card-title>\n <mat-icon class=\"header-icon\">{{ Icon }}</mat-icon>\n </mat-card-header>\n \n <mat-card-content>\n\n <div class=\"slot-main-container\">\n\n <div class=\"header-description\">{{ MainSlotDescription }}</div>\n\n <div class=\"slot-main\">\n <ng-content></ng-content>\n </div>\n \n </div>\n\n <div *ngIf=\"SecondarySlotDescription\" class=\"slot-secondary-container\">\n\n <div class=\"header-description\">{{ SecondarySlotDescription }}</div>\n\n <div class=\"slot-secondary\">\n <ng-content select=\"[secondary]\"></ng-content>\n </div>\n \n </div>\n \n </mat-card-content>\n\n <mat-card-actions *ngIf=\"ActionText\" fxLayoutAlign=\"center\">\n <
|
|
4721
|
-
styles: [".col-info-card{
|
|
4720
|
+
template: "<mat-card class=\"col-info-card\">\n <mat-card-header fxLayoutAlign=\"space-between center\">\n <mat-card-title class=\"card-title\">{{ Title }}</mat-card-title>\n <mat-icon class=\"header-icon\">{{ Icon }}</mat-icon>\n </mat-card-header>\n \n <mat-card-content>\n\n <div class=\"slot-main-container\">\n\n <div class=\"header-description\">{{ MainSlotDescription }}</div>\n\n <div class=\"slot-main\">\n <ng-content></ng-content>\n </div>\n \n </div>\n\n <div *ngIf=\"SecondarySlotDescription\" class=\"slot-secondary-container\">\n\n <div class=\"header-description\">{{ SecondarySlotDescription }}</div>\n\n <div class=\"slot-secondary\">\n <ng-content select=\"[secondary]\"></ng-content>\n </div>\n \n </div>\n \n </mat-card-content>\n\n <mat-card-actions *ngIf=\"ActionText\" fxLayoutAlign=\"center\">\n <a mat-button class=\"slotted-card-action-btn\" [href]=\"ActionPath\">{{ ActionText }}</a>\n </mat-card-actions>\n\n </mat-card>\n\n\n",
|
|
4721
|
+
styles: [".col-info-card{border:2px solid #d3d3d3;margin:20px;padding:0}.header-icon{margin-right:10px}.card-title{font-size:30px;margin-bottom:0}.header-description{background-color:#d3d3d3;margin-left:-2px;padding:10px}mat-card-actions{margin-bottom:0!important;margin-left:-1px!important;margin-right:0!important}.slotted-card-action-btn{border-radius:0 0 2px 2px;border-top:1px solid #d3d3d3;width:100%}"]
|
|
4722
4722
|
},] }
|
|
4723
4723
|
];
|
|
4724
4724
|
SlottedCardComponent.ctorParameters = function () { return []; };
|
|
@@ -4728,6 +4728,7 @@
|
|
|
4728
4728
|
MainSlotDescription: [{ type: i0.Input, args: ['main-slot-description',] }],
|
|
4729
4729
|
SecondarySlotDescription: [{ type: i0.Input, args: ['secondary-slot-description',] }],
|
|
4730
4730
|
ActionText: [{ type: i0.Input, args: ['action-text',] }],
|
|
4731
|
+
ActionPath: [{ type: i0.Input, args: ['action-path',] }],
|
|
4731
4732
|
MainActionClicked: [{ type: i0.Output, args: ['main-action-clicked',] }]
|
|
4732
4733
|
};
|
|
4733
4734
|
|
|
@@ -4750,7 +4751,7 @@
|
|
|
4750
4751
|
{ type: i0.Component, args: [{
|
|
4751
4752
|
selector: 'lcu-project-info-card',
|
|
4752
4753
|
template: "<mat-card class=\"project-info-card\">\n\n <div class=\"header-img-container\" fxLayout=\"row\" >\n <div class=\"round-project-img\" fxLayoutAlign=\"center center\">\n <mat-icon class=\"temp-icon\">flutter_dash</mat-icon>\n </div>\n </div>\n\n <div class=\"icon-btn-container\" fxLayout=\"row\" fxLayoutAlign=\"space-between center\" >\n <button mat-icon-button id=\"left-icon\" (click)=\"LeftIconClicked()\">\n <mat-icon>settings</mat-icon>\n </button>\n <button mat-icon-button id=\"right-icon\" (click)=\"RightIconClicked()\">\n <mat-icon>share</mat-icon>\n </button>\n </div>\n\n <mat-card-header class=\"project-card-header\" fxLayoutAlign=\"center center\">\n\n <mat-card-title class=\"project-card-name\" *ngIf=\"Name\">{{Name}}</mat-card-title>\n\n <mat-card-subtitle class=\"project-card-description\" *ngIf=\"Description\">{{Description}}</mat-card-subtitle>\n\n <mat-card-subtitle class=\"project-card-host\">\n <a class=\"host-anchor\" *ngIf=\"Subtext\" [href]=\"Subtext\" target=\"_blank\">{{Subtext}}</a>\n </mat-card-subtitle>\n\n </mat-card-header>\n <mat-card-content class=\"card-content-container\">\n <div class=\"stats-container\">\n <ng-content select=\"[stats]\"></ng-content>\n </div>\n\n <div class=\"promo-container\">\n <ng-content select=\"[promo]\"></ng-content>\n </div>\n\n </mat-card-content>\n <mat-card-actions class=\"actions-container\">\n <ng-content select=\"[action]\"></ng-content>\n \n </mat-card-actions>\n </mat-card>\n \n",
|
|
4753
|
-
styles: [".project-info-card{
|
|
4754
|
+
styles: [".project-info-card{border:2px solid #d3d3d3;margin:20px;padding:0}.round-project-img{background-color:#dfeff2;border:2px solid #fff;border-radius:40px;height:75px;margin-top:20px;text-align:center;width:75px}.temp-icon{font-size:50px;height:50px;width:50px}.icon-btn-container{margin:5px}.project-card-header{margin-top:50px;text-align:center}.host-anchor{color:#4a918e;text-decoration:none}.header-img-container{background-color:#a4bab3;border-radius:2px 2px 0 0;height:60px;justify-content:center;margin-right:-.5px;margin-top:-.5px!important}.project-card-name{font-size:30px;font-weight:600}.card-content-container{margin-bottom:0!important}.stats-container{border-bottom:1px solid #d3d3d3;border-top:1px solid #d3d3d3}mat-card-actions{margin-bottom:-1px!important;margin-left:0!important;margin-right:-.5px!important}.actions-container{padding:0!important}.info-card-btn{border-radius:0 0 2px 2px;border-top:1px solid #d3d3d3;width:100%}"]
|
|
4754
4755
|
},] }
|
|
4755
4756
|
];
|
|
4756
4757
|
ProjectInfoCardComponent.ctorParameters = function () { return []; };
|
|
@@ -4774,7 +4775,7 @@
|
|
|
4774
4775
|
{ type: i0.Component, args: [{
|
|
4775
4776
|
selector: 'lcu-analytics-card',
|
|
4776
4777
|
template: "<mat-card class=\"analytics-card\">\n <mat-card-header>\n <mat-card-title *ngIf=\"Title\">{{Title}}</mat-card-title>\n <mat-card-subtitle *ngIf=\"Subtext\">{{Subtext}}</mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <!-- <ng-container *ngFor=\"let atics of analytics \"> -->\n \n <div class=\"analytic-container\" fxLayout=\"row\" fxLayoutAlign=\"space-between center\">\n <div fxLayout=\"column\">\n <div class=\"analytic-number\">57</div>\n <div class=\"analytic-name\">Unique Visitors</div>\n </div>\n\n <div class=\"percent-change increase\" fxLayout=\"row\" fxLayoutAlign=\"space-around center\">\n <mat-icon>arrow_drop_up</mat-icon>\n <div>{{ .16 | percent}}</div>\n </div>\n\n <!-- <div class=\"percent-change decrease\" fxLayout=\"row\" fxLayoutAlign=\"space-around center\">\n <mat-icon>arrow_drop_down</mat-icon>\n <div>16</div>\n </div> -->\n </div>\n\n <!-- </ng-container> -->\n </mat-card-content>\n <!-- <mat-card-actions>\n <button mat-button>LIKE</button>\n <button mat-button>SHARE</button>\n </mat-card-actions> -->\n </mat-card>\n",
|
|
4777
|
-
styles: [".analytics-card{
|
|
4778
|
+
styles: [".analytics-card{border:2px solid #d3d3d3;margin:20px;padding:10px}.increase{color:green}.decrease{color:red}"]
|
|
4778
4779
|
},] }
|
|
4779
4780
|
];
|
|
4780
4781
|
AnalyticsCardComponent.ctorParameters = function () { return []; };
|
|
@@ -4805,7 +4806,7 @@
|
|
|
4805
4806
|
{ type: i0.Component, args: [{
|
|
4806
4807
|
selector: 'lcu-feed-card-sm',
|
|
4807
4808
|
template: "<mat-card class=\"social-card\">\n <div class=\"feed-card-container\" fxLayout=\"row\">\n <mat-icon *ngIf=\"Icon\" [style.color]=\"IconColor\">{{Icon}}</mat-icon>\n <div class=\"feed-card-main-content\">\n <mat-card-title *ngIf=\"Title\">{{Title}}</mat-card-title>\n <div *ngIf=\"Subtext\">{{Subtext}}</div>\n <div *ngIf=\"Description\">{{Description}}</div>\n <ng-content select=\"[more-details]\"></ng-content>\n </div>\n </div>\n\n <mat-card-actions fxLayout=\"row\" fxLayoutAlign=\"end\">\n <ng-content select=\"[actions]\"></ng-content>\n </mat-card-actions>\n </mat-card>\n",
|
|
4808
|
-
styles: [".social-card{
|
|
4809
|
+
styles: [".social-card{border:2px solid #d3d3d3;margin:20px;padding:15px 5px}mat-card-actions{margin-bottom:-1px!important;margin-left:0!important;margin-right:-.5px!important}.main-slot-container{padding:10px}.slot-header{align-items:center}.slot-content{width:100%}.slot-name{font-size:22px;font-weight:600;padding-left:5px}.slot-description{font-size:12px;margin-right:10px}.slot-action-anchor{color:#000;font-size:10px;text-decoration:none}.action-icon{font-size:25px;height:25px;width:25px}.gold-icon{color:#d4af37}.upgrade-text{cursor:pointer;font-weight:700;margin-left:10px}"]
|
|
4809
4810
|
},] }
|
|
4810
4811
|
];
|
|
4811
4812
|
FeedCardSmComponent.ctorParameters = function () { return []; };
|
|
@@ -4883,7 +4884,7 @@
|
|
|
4883
4884
|
{ type: i0.Component, args: [{
|
|
4884
4885
|
selector: 'lcu-gh-control',
|
|
4885
4886
|
template: "<mat-card class=\"social-card\">\n <div class=\"gh-card-container\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <mat-icon fxFlex=\"15%\" class=\"gh-icon\">error_outline</mat-icon>\n <div fxFlex=\"70%\"class=\"gh-card-main-content\">\n <mat-form-field appearance=\"fill\" class=\"gh-input\">\n <mat-label>{{InputLabel}}</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"value\">\n <!-- <button *ngIf=\"value\" matSuffix mat-icon-button aria-label=\"Clear\" (click)=\"value=''\">\n <mat-icon>close</mat-icon>\n </button> -->\n </mat-form-field>\n </div>\n <button fxFlex=\"15%\" mat-button (click)=\"Submit()\" id=\"submit-btn\">Submit</button>\n </div>\n\n <mat-card-actions fxLayout=\"row\" fxLayoutAlign=\"space-around center\">\n <button mat-button (click)=\"CreatePullRequest()\" id=\"pr-btn\">Pull Request</button>\n <button mat-button (click)=\"OpenIssue()\" id=\"oi-btn\">Open Issue</button>\n <button mat-button (click)=\"CreateFeatureBranch()\" id=\"fb-btn\">Feature Branch</button>\n <button mat-icon-button (click)=\"OpenMoreInfo()\">\n <mat-icon>more_horiz</mat-icon>\n </button>\n </mat-card-actions>\n </mat-card>",
|
|
4886
|
-
styles: [".social-card{
|
|
4887
|
+
styles: [".social-card{border:2px solid #d3d3d3;margin:20px;padding:15px 5px}mat-card-actions{margin-bottom:-1px!important;margin-left:0!important;margin-right:-.5px!important}.main-slot-container{padding:10px}.slot-header{align-items:center}.slot-content{width:100%}.slot-name{font-size:22px;font-weight:600;padding-left:5px}.slot-description{font-size:12px;margin-right:10px}.slot-action-anchor{color:#000;font-size:10px;text-decoration:none}.action-icon{font-size:25px;height:25px;width:25px}.gold-icon{color:#d4af37}.upgrade-text{cursor:pointer;font-weight:700;margin-left:10px}.gh-icon{font-size:60px;height:60px;text-align:center;width:60px}.gh-input{width:90%}.selected{border:1px solid green}::ng-deep .mat-form-field-flex{border:1px solid;border-radius:30px!important}::ng-deep .mat-form-field-wrapper{padding-bottom:0!important}"]
|
|
4887
4888
|
},] }
|
|
4888
4889
|
];
|
|
4889
4890
|
GhControlComponent.ctorParameters = function () { return []; };
|
|
@@ -4902,7 +4903,7 @@
|
|
|
4902
4903
|
{ type: i0.Component, args: [{
|
|
4903
4904
|
selector: 'lcu-main-feed-card',
|
|
4904
4905
|
template: "<mat-card class=\"social-card\">\n <mat-card-header fxLayout=\"row\">\n <div *ngIf=\"Avatar\" mat-card-avatar class=\"example-header-image\" [style.backgroundImage]=\"Avatar\" fxFlex=\"10%\"></div>\n <div class=\"header-main-content-container\" fxFlex=\"80%\">\n <mat-card-title *ngIf=\"Title\">{{Title}}</mat-card-title>\n <div *ngIf=\"Subtext\">{{Subtext}}</div>\n <div *ngIf=\"TimeAgo\">{{TimeAgo}}</div>\n </div>\n <div fxFlex=\"10%\">\n <button mat-icon-button (click)=\"MoreClicked()\" >\n <mat-icon>more_horiz</mat-icon>\n </button>\n </div>\n\n </mat-card-header>\n \n <div class=\"feed-card-container\" fxLayout=\"row\">\n <div class=\"feed-card-main-content\">\n <ng-content select=\"[tabs]\"></ng-content>\n </div>\n </div>\n\n <mat-card-actions fxLayout=\"row\" fxLayoutAlign=\"space-around center\">\n <ng-content select=\"[actions]\"></ng-content>\n \n\n </mat-card-actions>\n </mat-card>\n",
|
|
4905
|
-
styles: [".social-card{
|
|
4906
|
+
styles: [".social-card{border:2px solid #d3d3d3;margin:20px;padding:15px 5px}mat-card-actions{margin-bottom:-1px!important;margin-left:0!important;margin-right:-.5px!important}.main-slot-container{padding:10px}.slot-header{align-items:center}.slot-content{width:100%}.slot-name{font-size:22px;font-weight:600;padding-left:5px}.slot-description{font-size:12px;margin-right:10px}.slot-action-anchor{color:#000;font-size:10px;text-decoration:none}.action-icon{font-size:25px;height:25px;width:25px}.gold-icon{color:#d4af37}.upgrade-text{cursor:pointer;font-weight:700;margin-left:10px}.example-header-image{background-size:cover}"]
|
|
4906
4907
|
},] }
|
|
4907
4908
|
];
|
|
4908
4909
|
MainFeedCardComponent.ctorParameters = function () { return []; };
|
|
@@ -4996,6 +4997,450 @@
|
|
|
4996
4997
|
Stats: [{ type: i0.Input, args: ['stats',] }]
|
|
4997
4998
|
};
|
|
4998
4999
|
|
|
5000
|
+
var SecurityToggleComponent = /** @class */ (function () {
|
|
5001
|
+
function SecurityToggleComponent(formBldr) {
|
|
5002
|
+
this.formBldr = formBldr;
|
|
5003
|
+
}
|
|
5004
|
+
Object.defineProperty(SecurityToggleComponent.prototype, "IsPrivateFormControl", {
|
|
5005
|
+
get: function () {
|
|
5006
|
+
var _a;
|
|
5007
|
+
return (_a = this.SecurityFormGroup) === null || _a === void 0 ? void 0 : _a.controls.isPrivate;
|
|
5008
|
+
},
|
|
5009
|
+
enumerable: false,
|
|
5010
|
+
configurable: true
|
|
5011
|
+
});
|
|
5012
|
+
SecurityToggleComponent.prototype.ngOnInit = function () {
|
|
5013
|
+
this.setupSecurityFormGroup();
|
|
5014
|
+
};
|
|
5015
|
+
SecurityToggleComponent.prototype.SecuritySubmit = function () {
|
|
5016
|
+
console.log("submitting values");
|
|
5017
|
+
};
|
|
5018
|
+
SecurityToggleComponent.prototype.setupSecurityFormGroup = function () {
|
|
5019
|
+
var _a, _b;
|
|
5020
|
+
this.ProcessorType = ((_b = (_a = this.EditingApplication) === null || _a === void 0 ? void 0 : _a.Processor) === null || _b === void 0 ? void 0 : _b.Type) || '';
|
|
5021
|
+
if (this.EditingApplication != null) {
|
|
5022
|
+
// this.SecurityFormGroup = this.formBldr.group({
|
|
5023
|
+
// name: [this.EditingApplication.Application?.Name, Validators.required],
|
|
5024
|
+
// description: [
|
|
5025
|
+
// this.EditingApplication.Application?.Description,
|
|
5026
|
+
// Validators.required,
|
|
5027
|
+
// ],
|
|
5028
|
+
// route: [
|
|
5029
|
+
// this.EditingApplication.LookupConfig?.PathRegex.replace('.*', '') ||
|
|
5030
|
+
// '/',
|
|
5031
|
+
// Validators.required,
|
|
5032
|
+
// ],
|
|
5033
|
+
// // priority: [
|
|
5034
|
+
// // this.EditingApplication.Application?.Priority || 10000,
|
|
5035
|
+
// // Validators.required,
|
|
5036
|
+
// // ],
|
|
5037
|
+
// procType: [this.ProcessorType, [Validators.required]],
|
|
5038
|
+
// });
|
|
5039
|
+
}
|
|
5040
|
+
this.setupSecurityForm();
|
|
5041
|
+
};
|
|
5042
|
+
SecurityToggleComponent.prototype.setupSecurityForm = function () {
|
|
5043
|
+
var _a, _b;
|
|
5044
|
+
this.SecurityFormGroup.addControl('isPrivate', this.formBldr.control(((_a = this.EditingApplication.LookupConfig) === null || _a === void 0 ? void 0 : _a.IsPrivate) || false, [forms.Validators.required]));
|
|
5045
|
+
this.SecurityFormGroup.addControl('isTriggerSignIn', this.formBldr.control(((_b = this.EditingApplication.LookupConfig) === null || _b === void 0 ? void 0 : _b.IsTriggerSignIn) || false, [forms.Validators.required]));
|
|
5046
|
+
};
|
|
5047
|
+
return SecurityToggleComponent;
|
|
5048
|
+
}());
|
|
5049
|
+
SecurityToggleComponent.decorators = [
|
|
5050
|
+
{ type: i0.Component, args: [{
|
|
5051
|
+
selector: 'lcu-security-toggle',
|
|
5052
|
+
template: "<form class=\"security-form\" [formGroup]=\"SecurityFormGroup\" (ngSubmit)=\"SecuritySubmit()\">\n <mat-card class=\"spread flow-card\">\n <mat-card-header>\n <mat-card-title> Security Settings </mat-card-title>\n\n <div fxFlex></div>\n\n <mat-slide-toggle\n formControlName=\"isPrivate\"\n matTooltip=\"Is Secure Application?\"\n >\n </mat-slide-toggle>\n\n <mat-icon\n matSuffix\n matTooltip=\"A Secured Application is one that requires the user to be authenticated to use the application. The application is hosted behind an identity wall.\"\n >\n info_outline\n </mat-icon>\n </mat-card-header>\n\n <mat-card-content>\n <div>\n <div *ngIf=\"IsPrivateFormControl.value\">\n <div>\n <mat-slide-toggle formControlName=\"isTriggerSignIn\">\n Is Trigger Sign In Application?\n </mat-slide-toggle>\n\n <mat-icon\n matSuffix\n matTooltip=\"A Trigger Sign In Application will direct the user to sign in if they are not already.\"\n >\n info_outline\n </mat-icon>\n </div>\n </div>\n </div>\n </mat-card-content>\n \n <mat-card-actions>\n <!-- [disabled]=\"!SecurityFormGroup.valid || !SecurityFormGroup.dirty\" -->\n <button mat-raised-button type=\"submit\" >Save Security Settings</button>\n </mat-card-actions>\n </mat-card>\n</form>\n",
|
|
5053
|
+
styles: ["::ng-deep .mat-tooltip{color:#000!important}"]
|
|
5054
|
+
},] }
|
|
5055
|
+
];
|
|
5056
|
+
SecurityToggleComponent.ctorParameters = function () { return [
|
|
5057
|
+
{ type: forms.FormBuilder }
|
|
5058
|
+
]; };
|
|
5059
|
+
SecurityToggleComponent.propDecorators = {
|
|
5060
|
+
EditingApplication: [{ type: i0.Input, args: ['editing-application',] }]
|
|
5061
|
+
};
|
|
5062
|
+
|
|
5063
|
+
var ProcessorDetailsFormComponent = /** @class */ (function () {
|
|
5064
|
+
function ProcessorDetailsFormComponent(formBldr) {
|
|
5065
|
+
this.formBldr = formBldr;
|
|
5066
|
+
// this.EditingApplicationLookup = null;
|
|
5067
|
+
this.redirectTooltip = '';
|
|
5068
|
+
}
|
|
5069
|
+
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "BuildFormControl", {
|
|
5070
|
+
get: function () {
|
|
5071
|
+
var _a;
|
|
5072
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.build;
|
|
5073
|
+
},
|
|
5074
|
+
enumerable: false,
|
|
5075
|
+
configurable: true
|
|
5076
|
+
});
|
|
5077
|
+
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "ClientIDFormControl", {
|
|
5078
|
+
get: function () {
|
|
5079
|
+
var _a;
|
|
5080
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.clientId;
|
|
5081
|
+
},
|
|
5082
|
+
enumerable: false,
|
|
5083
|
+
configurable: true
|
|
5084
|
+
});
|
|
5085
|
+
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "DefaultFileFormControl", {
|
|
5086
|
+
get: function () {
|
|
5087
|
+
var _a;
|
|
5088
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.defaultFile;
|
|
5089
|
+
},
|
|
5090
|
+
enumerable: false,
|
|
5091
|
+
configurable: true
|
|
5092
|
+
});
|
|
5093
|
+
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "InboundPathFormControl", {
|
|
5094
|
+
get: function () {
|
|
5095
|
+
var _a;
|
|
5096
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.inboundPath;
|
|
5097
|
+
},
|
|
5098
|
+
enumerable: false,
|
|
5099
|
+
configurable: true
|
|
5100
|
+
});
|
|
5101
|
+
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "TokenLookupFormControl", {
|
|
5102
|
+
get: function () {
|
|
5103
|
+
var _a;
|
|
5104
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.tokenLookup;
|
|
5105
|
+
},
|
|
5106
|
+
enumerable: false,
|
|
5107
|
+
configurable: true
|
|
5108
|
+
});
|
|
5109
|
+
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "RedirectFormControl", {
|
|
5110
|
+
get: function () {
|
|
5111
|
+
var _a;
|
|
5112
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.redirect;
|
|
5113
|
+
},
|
|
5114
|
+
enumerable: false,
|
|
5115
|
+
configurable: true
|
|
5116
|
+
});
|
|
5117
|
+
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "ScopesFormControl", {
|
|
5118
|
+
get: function () {
|
|
5119
|
+
var _a;
|
|
5120
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.scopes;
|
|
5121
|
+
},
|
|
5122
|
+
enumerable: false,
|
|
5123
|
+
configurable: true
|
|
5124
|
+
});
|
|
5125
|
+
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "SecurityFormControl", {
|
|
5126
|
+
get: function () {
|
|
5127
|
+
var _a;
|
|
5128
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.security;
|
|
5129
|
+
},
|
|
5130
|
+
enumerable: false,
|
|
5131
|
+
configurable: true
|
|
5132
|
+
});
|
|
5133
|
+
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "SPARootFormControl", {
|
|
5134
|
+
get: function () {
|
|
5135
|
+
var _a;
|
|
5136
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.spaRoot;
|
|
5137
|
+
},
|
|
5138
|
+
enumerable: false,
|
|
5139
|
+
configurable: true
|
|
5140
|
+
});
|
|
5141
|
+
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "PermanentFormControl", {
|
|
5142
|
+
get: function () {
|
|
5143
|
+
var _a;
|
|
5144
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.permanent;
|
|
5145
|
+
},
|
|
5146
|
+
enumerable: false,
|
|
5147
|
+
configurable: true
|
|
5148
|
+
});
|
|
5149
|
+
Object.defineProperty(ProcessorDetailsFormComponent.prototype, "PreserveMethodFormControl", {
|
|
5150
|
+
get: function () {
|
|
5151
|
+
var _a;
|
|
5152
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.preserveMethod;
|
|
5153
|
+
},
|
|
5154
|
+
enumerable: false,
|
|
5155
|
+
configurable: true
|
|
5156
|
+
});
|
|
5157
|
+
ProcessorDetailsFormComponent.prototype.ngOnInit = function () {
|
|
5158
|
+
this.setupProcessorDetailsForm();
|
|
5159
|
+
};
|
|
5160
|
+
ProcessorDetailsFormComponent.prototype.DetermineTooltipText = function () {
|
|
5161
|
+
var permanentValue = this.PermanentFormControl.value;
|
|
5162
|
+
var preserveValue = this.PreserveMethodFormControl.value;
|
|
5163
|
+
if (permanentValue === true && preserveValue === false) {
|
|
5164
|
+
this.redirectTooltip = '301 – Permanent and Not Preserve';
|
|
5165
|
+
}
|
|
5166
|
+
else if (permanentValue === false && preserveValue === false) {
|
|
5167
|
+
this.redirectTooltip = '302 – Not Permanent and Not Preserve';
|
|
5168
|
+
}
|
|
5169
|
+
else if (permanentValue === false && preserveValue === true) {
|
|
5170
|
+
this.redirectTooltip = '307 – Not Permanent and Preserve';
|
|
5171
|
+
}
|
|
5172
|
+
else if (permanentValue === true && preserveValue === true) {
|
|
5173
|
+
this.redirectTooltip = '308 – Permanent and Preserve';
|
|
5174
|
+
}
|
|
5175
|
+
};
|
|
5176
|
+
ProcessorDetailsFormComponent.prototype.SubmitProcessorDetails = function () {
|
|
5177
|
+
};
|
|
5178
|
+
ProcessorDetailsFormComponent.prototype.ProcessorTypeChanged = function (event) {
|
|
5179
|
+
this.ProcessorType = event.value;
|
|
5180
|
+
this.setupProcessorTypeSubForm();
|
|
5181
|
+
};
|
|
5182
|
+
ProcessorDetailsFormComponent.prototype.LCUTypeChanged = function (event) {
|
|
5183
|
+
this.LCUType = event.value;
|
|
5184
|
+
this.setupLcuTypeSubForm();
|
|
5185
|
+
};
|
|
5186
|
+
//HELPERS
|
|
5187
|
+
ProcessorDetailsFormComponent.prototype.cleanupLcuTypeSubForm = function () {
|
|
5188
|
+
this.ProcessorDetailsFormGroup.removeControl('methods');
|
|
5189
|
+
this.ProcessorDetailsFormGroup.removeControl('apiRoot');
|
|
5190
|
+
this.ProcessorDetailsFormGroup.removeControl('security');
|
|
5191
|
+
this.ProcessorDetailsFormGroup.removeControl('spaRoot');
|
|
5192
|
+
this.ProcessorDetailsFormGroup.removeControl('applicationId');
|
|
5193
|
+
this.ProcessorDetailsFormGroup.removeControl('build');
|
|
5194
|
+
this.ProcessorDetailsFormGroup.removeControl('clientId');
|
|
5195
|
+
this.ProcessorDetailsFormGroup.removeControl('clientSecret');
|
|
5196
|
+
this.ProcessorDetailsFormGroup.removeControl('zipFile');
|
|
5197
|
+
};
|
|
5198
|
+
ProcessorDetailsFormComponent.prototype.cleanupProcessorTypeSubForm = function () {
|
|
5199
|
+
this.ProcessorDetailsFormGroup.removeControl('defaultFile');
|
|
5200
|
+
// this.ApplicationFormGroup.removeControl('dfsLcuType');
|
|
5201
|
+
// this.ApplicationFormGroup.removeControl('oauthLcuType');
|
|
5202
|
+
this.ProcessorDetailsFormGroup.removeControl('scopes');
|
|
5203
|
+
this.ProcessorDetailsFormGroup.removeControl('tokenLookup');
|
|
5204
|
+
this.ProcessorDetailsFormGroup.removeControl('inboundPath');
|
|
5205
|
+
this.ProcessorDetailsFormGroup.removeControl('proxyLcuType');
|
|
5206
|
+
this.ProcessorDetailsFormGroup.removeControl('redirect');
|
|
5207
|
+
this.ProcessorDetailsFormGroup.removeControl('permanent');
|
|
5208
|
+
this.ProcessorDetailsFormGroup.removeControl('preserveMethod');
|
|
5209
|
+
this.cleanupLcuTypeSubForm();
|
|
5210
|
+
};
|
|
5211
|
+
ProcessorDetailsFormComponent.prototype.setupLcuTypeSubForm = function () {
|
|
5212
|
+
this.cleanupLcuTypeSubForm();
|
|
5213
|
+
// this.ApplicationFormGroup.removeControl('package');
|
|
5214
|
+
// this.ApplicationFormGroup.removeControl('version');
|
|
5215
|
+
if (this.LCUType) {
|
|
5216
|
+
switch (this.LCUType) {
|
|
5217
|
+
case 'API':
|
|
5218
|
+
this.setupLCUAPIForm();
|
|
5219
|
+
break;
|
|
5220
|
+
case 'ApplicationPointer':
|
|
5221
|
+
this.setupLCUApplicationPointerForm();
|
|
5222
|
+
break;
|
|
5223
|
+
case 'GitHub':
|
|
5224
|
+
this.setupLCUGitHubForm();
|
|
5225
|
+
break;
|
|
5226
|
+
case 'GitHubOAuth':
|
|
5227
|
+
this.setupLCUGitHubOAuthForm();
|
|
5228
|
+
break;
|
|
5229
|
+
// case 'NPM':
|
|
5230
|
+
// this.setupLCUNPMForm();
|
|
5231
|
+
// break;
|
|
5232
|
+
case 'SPA':
|
|
5233
|
+
this.setupLCUSPAForm();
|
|
5234
|
+
break;
|
|
5235
|
+
case 'Zip':
|
|
5236
|
+
this.setupLCUZipForm();
|
|
5237
|
+
break;
|
|
5238
|
+
}
|
|
5239
|
+
}
|
|
5240
|
+
};
|
|
5241
|
+
ProcessorDetailsFormComponent.prototype.setupProcessorDetailsForm = function () {
|
|
5242
|
+
var _a, _b, _c, _d, _e;
|
|
5243
|
+
this.ProcessorType = ((_b = (_a = this.EditingApplication) === null || _a === void 0 ? void 0 : _a.Processor) === null || _b === void 0 ? void 0 : _b.Type) || '';
|
|
5244
|
+
if (this.EditingApplication != null) {
|
|
5245
|
+
this.ProcessorDetailsFormGroup = this.formBldr.group({
|
|
5246
|
+
name: [(_c = this.EditingApplication.Application) === null || _c === void 0 ? void 0 : _c.Name, forms.Validators.required],
|
|
5247
|
+
description: [
|
|
5248
|
+
(_d = this.EditingApplication.Application) === null || _d === void 0 ? void 0 : _d.Description,
|
|
5249
|
+
forms.Validators.required,
|
|
5250
|
+
],
|
|
5251
|
+
route: [
|
|
5252
|
+
((_e = this.EditingApplication.LookupConfig) === null || _e === void 0 ? void 0 : _e.PathRegex.replace('.*', '')) ||
|
|
5253
|
+
'/',
|
|
5254
|
+
forms.Validators.required,
|
|
5255
|
+
],
|
|
5256
|
+
// priority: [
|
|
5257
|
+
// this.EditingApplication.Application?.Priority || 10000,
|
|
5258
|
+
// Validators.required,
|
|
5259
|
+
// ],
|
|
5260
|
+
procType: [this.ProcessorType, [forms.Validators.required]],
|
|
5261
|
+
});
|
|
5262
|
+
}
|
|
5263
|
+
};
|
|
5264
|
+
ProcessorDetailsFormComponent.prototype.setupLCUGitHubForm = function () {
|
|
5265
|
+
var _a;
|
|
5266
|
+
this.ProcessorDetailsFormGroup.addControl('build', this.formBldr.control(((_a = this.EditingApplication.LowCodeUnit) === null || _a === void 0 ? void 0 : _a.Build) || 'latest', [forms.Validators.required]));
|
|
5267
|
+
};
|
|
5268
|
+
ProcessorDetailsFormComponent.prototype.setupLCUApplicationPointerForm = function () {
|
|
5269
|
+
var _a;
|
|
5270
|
+
this.ProcessorDetailsFormGroup.addControl('applicationId', this.formBldr.control(((_a = this.EditingApplication.LowCodeUnit) === null || _a === void 0 ? void 0 : _a.ApplicationID) || '', [forms.Validators.required]));
|
|
5271
|
+
};
|
|
5272
|
+
ProcessorDetailsFormComponent.prototype.setupLCUNPMForm = function () {
|
|
5273
|
+
// this.ApplicationFormGroup.addControl(
|
|
5274
|
+
// 'package',
|
|
5275
|
+
// this.formBldr.control(
|
|
5276
|
+
// this.EditingApplication.LowCodeUnit?.Package || '',
|
|
5277
|
+
// [Validators.required]
|
|
5278
|
+
// )
|
|
5279
|
+
// );
|
|
5280
|
+
// this.ApplicationFormGroup.addControl(
|
|
5281
|
+
// 'version',
|
|
5282
|
+
// this.formBldr.control(
|
|
5283
|
+
// this.EditingApplication.LowCodeUnit?.Version || '',
|
|
5284
|
+
// [Validators.required]
|
|
5285
|
+
// )
|
|
5286
|
+
// );
|
|
5287
|
+
};
|
|
5288
|
+
ProcessorDetailsFormComponent.prototype.setupLCUSPAForm = function () {
|
|
5289
|
+
var _a;
|
|
5290
|
+
this.ProcessorDetailsFormGroup.addControl('spaRoot', this.formBldr.control(((_a = this.EditingApplication.LowCodeUnit) === null || _a === void 0 ? void 0 : _a.SPARoot) || '', [forms.Validators.required]));
|
|
5291
|
+
};
|
|
5292
|
+
ProcessorDetailsFormComponent.prototype.setupLCUAPIForm = function () {
|
|
5293
|
+
var _a, _b, _c, _d;
|
|
5294
|
+
this.ProcessorDetailsFormGroup.addControl('methods', this.formBldr.control(((_b = (_a = this.EditingApplication.LookupConfig) === null || _a === void 0 ? void 0 : _a.AllowedMethods) === null || _b === void 0 ? void 0 : _b.join(' ')) || '', []));
|
|
5295
|
+
this.ProcessorDetailsFormGroup.addControl('apiRoot', this.formBldr.control(((_c = this.EditingApplication.LowCodeUnit) === null || _c === void 0 ? void 0 : _c.APIRoot) || '', [forms.Validators.required]));
|
|
5296
|
+
this.ProcessorDetailsFormGroup.addControl('security', this.formBldr.control(((_d = this.EditingApplication.LowCodeUnit) === null || _d === void 0 ? void 0 : _d.Security) || '', [forms.Validators.required]));
|
|
5297
|
+
};
|
|
5298
|
+
ProcessorDetailsFormComponent.prototype.setupLCUGitHubOAuthForm = function () {
|
|
5299
|
+
var _a, _b;
|
|
5300
|
+
this.ProcessorDetailsFormGroup.addControl('clientId', this.formBldr.control(((_a = this.EditingApplication.LowCodeUnit) === null || _a === void 0 ? void 0 : _a.ClientID) || '', [forms.Validators.required]));
|
|
5301
|
+
this.ProcessorDetailsFormGroup.addControl('clientSecret', this.formBldr.control(((_b = this.EditingApplication.LowCodeUnit) === null || _b === void 0 ? void 0 : _b.ClientSecret) || '', [forms.Validators.required]));
|
|
5302
|
+
};
|
|
5303
|
+
ProcessorDetailsFormComponent.prototype.setupProxyForm = function () {
|
|
5304
|
+
var _a, _b;
|
|
5305
|
+
this.LCUType = ((_a = this.EditingApplication.LowCodeUnit) === null || _a === void 0 ? void 0 : _a.Type) || '';
|
|
5306
|
+
this.ProcessorDetailsFormGroup.addControl('inboundPath', this.formBldr.control(((_b = this.EditingApplication.Processor) === null || _b === void 0 ? void 0 : _b.InboundPath) || '', [forms.Validators.required]));
|
|
5307
|
+
this.ProcessorDetailsFormGroup.addControl('lcuType', this.formBldr.control(this.LCUType, [forms.Validators.required]));
|
|
5308
|
+
};
|
|
5309
|
+
ProcessorDetailsFormComponent.prototype.setupRedirectForm = function () {
|
|
5310
|
+
var _a, _b, _c;
|
|
5311
|
+
this.ProcessorDetailsFormGroup.addControl('redirect', this.formBldr.control(((_a = this.EditingApplication.Processor) === null || _a === void 0 ? void 0 : _a.Redirect) || '', [
|
|
5312
|
+
forms.Validators.required,
|
|
5313
|
+
]));
|
|
5314
|
+
this.ProcessorDetailsFormGroup.addControl('permanent', this.formBldr.control(((_b = this.EditingApplication.Processor) === null || _b === void 0 ? void 0 : _b.Permanent) || false, []));
|
|
5315
|
+
this.ProcessorDetailsFormGroup.addControl('preserveMethod', this.formBldr.control(((_c = this.EditingApplication.Processor) === null || _c === void 0 ? void 0 : _c.PreserveMethod) || false, []));
|
|
5316
|
+
this.DetermineTooltipText();
|
|
5317
|
+
};
|
|
5318
|
+
ProcessorDetailsFormComponent.prototype.setupOAuthForm = function () {
|
|
5319
|
+
var _a, _b, _c, _d;
|
|
5320
|
+
this.LCUType = ((_a = this.EditingApplication.LowCodeUnit) === null || _a === void 0 ? void 0 : _a.Type) || '';
|
|
5321
|
+
this.ProcessorDetailsFormGroup.addControl('scopes', this.formBldr.control(((_c = (_b = this.EditingApplication.Processor) === null || _b === void 0 ? void 0 : _b.Scopes) === null || _c === void 0 ? void 0 : _c.Join(' ')) || '', [forms.Validators.required]));
|
|
5322
|
+
this.ProcessorDetailsFormGroup.addControl('tokenLookup', this.formBldr.control(((_d = this.EditingApplication.Processor) === null || _d === void 0 ? void 0 : _d.TokenLookup) || '', [forms.Validators.required]));
|
|
5323
|
+
this.ProcessorDetailsFormGroup.addControl('lcuType', this.formBldr.control(this.LCUType, [forms.Validators.required]));
|
|
5324
|
+
};
|
|
5325
|
+
ProcessorDetailsFormComponent.prototype.setupLCUZipForm = function () {
|
|
5326
|
+
var _a;
|
|
5327
|
+
this.ProcessorDetailsFormGroup.addControl('zipFile', this.formBldr.control(((_a = this.EditingApplication.LowCodeUnit) === null || _a === void 0 ? void 0 : _a.ZipFile) || '', [forms.Validators.required]));
|
|
5328
|
+
};
|
|
5329
|
+
ProcessorDetailsFormComponent.prototype.setupDfsForm = function () {
|
|
5330
|
+
var _a, _b;
|
|
5331
|
+
this.LCUType = ((_a = this.EditingApplication.LowCodeUnit) === null || _a === void 0 ? void 0 : _a.Type) || '';
|
|
5332
|
+
this.ProcessorDetailsFormGroup.addControl('defaultFile', this.formBldr.control(((_b = this.EditingApplication.Processor) === null || _b === void 0 ? void 0 : _b.DefaultFile) || 'index.html', [forms.Validators.required]));
|
|
5333
|
+
this.ProcessorDetailsFormGroup.addControl('lcuType', this.formBldr.control(this.LCUType, [forms.Validators.required]));
|
|
5334
|
+
};
|
|
5335
|
+
ProcessorDetailsFormComponent.prototype.setupProcessorTypeSubForm = function () {
|
|
5336
|
+
this.cleanupProcessorTypeSubForm();
|
|
5337
|
+
if (this.ProcessorType) {
|
|
5338
|
+
switch (this.ProcessorType) {
|
|
5339
|
+
case 'DFS':
|
|
5340
|
+
this.setupDfsForm();
|
|
5341
|
+
break;
|
|
5342
|
+
case 'OAuth':
|
|
5343
|
+
this.setupOAuthForm();
|
|
5344
|
+
break;
|
|
5345
|
+
case 'Proxy':
|
|
5346
|
+
this.setupProxyForm();
|
|
5347
|
+
break;
|
|
5348
|
+
case 'Redirect':
|
|
5349
|
+
this.setupRedirectForm();
|
|
5350
|
+
break;
|
|
5351
|
+
}
|
|
5352
|
+
}
|
|
5353
|
+
this.setupLcuTypeSubForm();
|
|
5354
|
+
};
|
|
5355
|
+
return ProcessorDetailsFormComponent;
|
|
5356
|
+
}());
|
|
5357
|
+
ProcessorDetailsFormComponent.decorators = [
|
|
5358
|
+
{ type: i0.Component, args: [{
|
|
5359
|
+
selector: 'lcu-processor-details-form',
|
|
5360
|
+
template: "<form class=\"processor-details-form\" [formGroup]=\"ProcessorDetailsFormGroup\" (ngSubmit)=\"SubmitProcessorDetails()\">\n<mat-card class=\"spread flow-card\">\n <mat-card-header>\n <mat-card-title> Processor Details </mat-card-title>\n </mat-card-header>\n\n <mat-card-content>\n <mat-form-field class=\"mat-full-width\">\n <mat-select\n placeholder=\"Type\"\n formControlName=\"procType\"\n (selectionChange)=\"ProcessorTypeChanged($event)\"\n required\n >\n <mat-option value=\"DFS\">View Package</mat-option>\n\n <mat-option value=\"Redirect\">Redirect</mat-option>\n\n <mat-option value=\"Proxy\">Proxy</mat-option>\n\n <mat-option value=\"OAuth\">OAuth</mat-option>\n </mat-select>\n </mat-form-field>\n\n <div [ngSwitch]=\"ProcessorType\">\n <div *ngSwitchCase=\"'DFS'\">\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Default File\"\n formControlName=\"defaultFile\"\n required\n />\n </mat-form-field>\n\n <mat-form-field class=\"mat-full-width\">\n <mat-select\n placeholder=\"Type\"\n formControlName=\"lcuType\"\n (selectionChange)=\"LCUTypeChanged($event)\"\n required\n >\n <mat-option value=\"NPM\">NPM</mat-option>\n\n <mat-option value=\"GitHub\">GitHub</mat-option>\n\n <!-- <mat-option value=\"Zip\">Zip</mat-option> -->\n </mat-select>\n </mat-form-field>\n\n <div [ngSwitch]=\"LCUType\">\n <div *ngSwitchCase=\"'GitHub'\">\n <lcu-source-control-form-controls\n [build-path]=\"EditingApplication?.LowCodeUnit?.Path\"\n [form-group]=\"ProcessorDetailsFormGroup\"\n [source-control]=\"DefaultSourceControl\"\n [use-branches]=\"false\"\n [use-build-path]=\"true\"\n ></lcu-source-control-form-controls>\n\n <mat-form-field\n class=\"mat-full-width\"\n *ngIf=\"\n SourceControlFormControls?.RepositoryFormControl?.valid\n \"\n >\n <input\n matInput\n placeholder=\"Build\"\n formControlName=\"build\"\n required\n />\n\n <mat-hint>\n Current Build:\n {{ EditingApplication?.LowCodeUnit?.CurrentBuild }}\n </mat-hint>\n </mat-form-field>\n </div>\n\n <div *ngSwitchCase=\"'NPM'\">\n <lcu-npm-package-select\n [npm-package]=\"EditingApplication?.LowCodeUnit?.Package\"\n [npm-package-version]=\"\n EditingApplication?.LowCodeUnit?.Version\n \"\n [form-group]=\"ProcessorDetailsFormGroup\"\n ></lcu-npm-package-select>\n\n <mat-hint>\n Current Version:\n {{ EditingApplication?.LowCodeUnit?.CurrentVersion }}\n </mat-hint>\n </div>\n </div>\n </div>\n\n <div *ngSwitchCase=\"'OAuth'\">\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Scopes (space separated)\"\n formControlName=\"scopes\"\n required\n />\n </mat-form-field>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Token Lookup\"\n formControlName=\"tokenLookup\"\n required\n />\n </mat-form-field>\n\n <mat-form-field class=\"mat-full-width\">\n <mat-select\n placeholder=\"Type\"\n formControlName=\"lcuType\"\n (selectionChange)=\"LCUTypeChanged($event)\"\n required\n >\n <mat-option value=\"GitHubOAuth\">GitHub</mat-option>\n </mat-select>\n </mat-form-field>\n\n <div [ngSwitch]=\"LCUType\">\n <div *ngSwitchCase=\"'GitHubOAuth'\">\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Client ID\"\n formControlName=\"clientId\"\n required\n />\n </mat-form-field>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Client Secret\"\n formControlName=\"clientSecret\"\n required\n />\n </mat-form-field>\n </div>\n </div>\n </div>\n\n <div *ngSwitchCase=\"'Proxy'\">\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Inbound Path\"\n formControlName=\"inboundPath\"\n required\n />\n </mat-form-field>\n\n <mat-form-field class=\"mat-full-width\">\n <mat-select\n placeholder=\"Type\"\n formControlName=\"lcuType\"\n (selectionChange)=\"LCUTypeChanged($event)\"\n required\n >\n <mat-option value=\"API\">API</mat-option>\n\n <mat-option value=\"SPA\">Single Page Application</mat-option>\n </mat-select>\n </mat-form-field>\n\n <div [ngSwitch]=\"LCUType\">\n <div *ngSwitchCase=\"'API'\">\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"API Root\"\n formControlName=\"apiRoot\"\n required\n />\n </mat-form-field>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Allowed Methods (separate with spaces)\"\n formControlName=\"methods\"\n />\n </mat-form-field>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Security ({header}~{value})\"\n formControlName=\"security\"\n required\n />\n </mat-form-field>\n </div>\n\n <div *ngSwitchCase=\"'SPA'\">\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"SPA Root\"\n formControlName=\"spaRoot\"\n required\n />\n </mat-form-field>\n </div>\n </div>\n </div>\n\n <div *ngSwitchCase=\"'Redirect'\">\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Redirect URL\"\n formControlName=\"redirect\"\n required\n />\n </mat-form-field>\n\n <div>\n <mat-slide-toggle \n class=\"spread\" \n formControlName=\"permanent\">\n Is Permanent?\n </mat-slide-toggle>\n\n <mat-slide-toggle\n class=\"spread\"\n formControlName=\"preserveMethod\"\n >\n Preserve Method?\n </mat-slide-toggle>\n\n <mat-icon\n class=\"spread\"\n matSuffix\n (mouseenter)=\"DetermineTooltipText()\"\n matTooltip={{redirectTooltip}}\n >\n info_outline\n </mat-icon>\n\n <!-- <mat-icon\n *ngIf=\"!IsPermanent && !IsPreserve\"\n\n class=\"spread\"\n matSuffix\n matTooltip=\"302 \u2013 Not Permanent and Not Preserve\"\n >\n info_outline\n </mat-icon> -->\n\n <!-- <mat-icon\n *ngIf=\"!IsPermanent && IsPreserve\"\n class=\"spread\"\n matSuffix\n matTooltip=\"307 \u2013 Not Permanent and Preserve\"\n >\n info_outline\n </mat-icon> -->\n\n <!-- <mat-icon\n *ngIf=\"IsPermanent && IsPreserve\"\n class=\"spread\"\n matSuffix\n matTooltip=\"308 \u2013 Permanent and Preserve\"\n >\n info_outline\n </mat-icon> -->\n\n \n\n <!-- <mat-icon\n class=\"spread\"\n matSuffix\n matTooltip=\"Values used to control the redirect type. Permanent and Not Preserve = 301; Not Permanent and Not Preserve = 302; Permanent and Preserve = 308; Not Permanent and Not Preserve = 307;\"\n >\n info_outline\n </mat-icon> -->\n </div>\n </div>\n </div>\n </mat-card-content>\n <mat-card-actions>\n <!-- [disabled]=\"!SecurityFormGroup.valid || !SecurityFormGroup.dirty\" -->\n <button mat-raised-button type=\"submit\" >Save Security Settings</button>\n </mat-card-actions>\n</mat-card>\n</form>\n \n",
|
|
5361
|
+
styles: [""]
|
|
5362
|
+
},] }
|
|
5363
|
+
];
|
|
5364
|
+
ProcessorDetailsFormComponent.ctorParameters = function () { return [
|
|
5365
|
+
{ type: forms.FormBuilder }
|
|
5366
|
+
]; };
|
|
5367
|
+
ProcessorDetailsFormComponent.propDecorators = {
|
|
5368
|
+
EditingApplication: [{ type: i0.Input, args: ['editing-application',] }]
|
|
5369
|
+
};
|
|
5370
|
+
|
|
5371
|
+
var SourceControlFormComponent = /** @class */ (function () {
|
|
5372
|
+
function SourceControlFormComponent(formBldr) {
|
|
5373
|
+
this.formBldr = formBldr;
|
|
5374
|
+
}
|
|
5375
|
+
Object.defineProperty(SourceControlFormComponent.prototype, "HasBuildFormControl", {
|
|
5376
|
+
get: function () {
|
|
5377
|
+
var _a;
|
|
5378
|
+
return (_a = this.SourceControlFormGroup) === null || _a === void 0 ? void 0 : _a.controls.hasBuild;
|
|
5379
|
+
},
|
|
5380
|
+
enumerable: false,
|
|
5381
|
+
configurable: true
|
|
5382
|
+
});
|
|
5383
|
+
Object.defineProperty(SourceControlFormComponent.prototype, "SourceControlLookupFormControl", {
|
|
5384
|
+
get: function () {
|
|
5385
|
+
var _a;
|
|
5386
|
+
return (_a = this.SourceControlFormGroup) === null || _a === void 0 ? void 0 : _a.controls.sourceControlLookup;
|
|
5387
|
+
},
|
|
5388
|
+
enumerable: false,
|
|
5389
|
+
configurable: true
|
|
5390
|
+
});
|
|
5391
|
+
Object.defineProperty(SourceControlFormComponent.prototype, "SourceControlLookups", {
|
|
5392
|
+
get: function () {
|
|
5393
|
+
return Object.keys(this.SourceControls || {});
|
|
5394
|
+
},
|
|
5395
|
+
enumerable: false,
|
|
5396
|
+
configurable: true
|
|
5397
|
+
});
|
|
5398
|
+
Object.defineProperty(SourceControlFormComponent.prototype, "SourceControls", {
|
|
5399
|
+
get: function () {
|
|
5400
|
+
console.log("Environment: ", this.Environment);
|
|
5401
|
+
return this.Environment.Sources || {};
|
|
5402
|
+
},
|
|
5403
|
+
enumerable: false,
|
|
5404
|
+
configurable: true
|
|
5405
|
+
});
|
|
5406
|
+
SourceControlFormComponent.prototype.ngOnInit = function () {
|
|
5407
|
+
this.setupSourceControlForm();
|
|
5408
|
+
};
|
|
5409
|
+
SourceControlFormComponent.prototype.SourceControlLookupChanged = function (event) {
|
|
5410
|
+
// TODO: Anything to do here on change?
|
|
5411
|
+
console.log("sourceControlLookupChanged: ", event);
|
|
5412
|
+
};
|
|
5413
|
+
SourceControlFormComponent.prototype.SubmitSourceControl = function () {
|
|
5414
|
+
};
|
|
5415
|
+
//HELPER
|
|
5416
|
+
SourceControlFormComponent.prototype.setupSourceControlForm = function () {
|
|
5417
|
+
var _a, _b;
|
|
5418
|
+
this.ProcessorType = ((_b = (_a = this.EditingApplication) === null || _a === void 0 ? void 0 : _a.Processor) === null || _b === void 0 ? void 0 : _b.Type) || '';
|
|
5419
|
+
this.setupBuildForm();
|
|
5420
|
+
};
|
|
5421
|
+
SourceControlFormComponent.prototype.setupBuildForm = function () {
|
|
5422
|
+
var _a, _b;
|
|
5423
|
+
this.SourceControlFormGroup.addControl('hasBuild', this.formBldr.control(!!((_a = this.EditingApplication.LowCodeUnit) === null || _a === void 0 ? void 0 : _a.SourceControlLookup) || false, [forms.Validators.required]));
|
|
5424
|
+
this.SourceControlFormGroup.addControl('sourceControlLookup', this.formBldr.control(((_b = this.EditingApplication.LowCodeUnit) === null || _b === void 0 ? void 0 : _b.SourceControlLookup) || '', []));
|
|
5425
|
+
};
|
|
5426
|
+
return SourceControlFormComponent;
|
|
5427
|
+
}());
|
|
5428
|
+
SourceControlFormComponent.decorators = [
|
|
5429
|
+
{ type: i0.Component, args: [{
|
|
5430
|
+
selector: 'lcu-source-control-form',
|
|
5431
|
+
template: "<form class=\"source-control-form\" [formGroup]=\"SourceControlFormGroup\" (ngSubmit)=\"SubmitSourceControl()\">\n\n<mat-card class=\"spread flow-card\" *ngIf=\"ProcessorType != 'Redirect'\">\n <mat-card-header>\n <mat-card-title *ngIf=\"!HasBuildFormControl.value\">\n Build & Source\n </mat-card-title>\n\n <mat-card-title *ngIf=\"HasBuildFormControl.value\">\n Source Control\n </mat-card-title>\n\n <div fxFlex></div>\n\n <mat-slide-toggle\n formControlName=\"hasBuild\"\n matTooltip=\"Has Build?\"\n >\n </mat-slide-toggle>\n\n <mat-icon\n matSuffix\n matTooltip=\"Configure source control, DevOps CI/CD, and artifacts.\"\n >\n info_outline\n </mat-icon>\n </mat-card-header>\n\n <mat-card-content>\n <mat-form-field\n class=\"mat-full-width\"\n *ngIf=\"\n HasBuildFormControl.value && SourceControlLookups?.length > 0\n \"\n >\n <mat-select\n formControlName=\"sourceControlLookup\"\n placeholder=\"Source Control\"\n (selectionChange)=\"SourceControlLookupChanged($event)\"\n [disabled]=\"\n SourceControlFormControls?.Loading || HostingDetails?.Loading\n \"\n >\n <ng-container\n *ngFor=\"let srcCtrlLookup of SourceControlLookups\"\n >\n <mat-option\n [value]=\"srcCtrlLookup\"\n *ngIf=\"SourceControls[srcCtrlLookup]; let srcCtrl\"\n >\n {{ srcCtrl.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n\n <div *ngIf=\"HasBuildFormControl?.value\">\n <h3>\n @{{\n SourceControlFormControls?.OrganizationFormControl?.value ||\n SourceControl?.Organization\n }}/{{\n SourceControlFormControls?.RepositoryFormControl?.value ||\n SourceControl?.Repository\n }}\n </h3>\n\n <p>Organization and Repository pulled from build settings</p>\n\n <mat-hint>\n CurrentBuild:\n {{ EditingApplication?.LowCodeUnit?.CurrentBuild }}\n </mat-hint>\n </div>\n </mat-form-field>\n\n <div *ngIf=\"SourceControlLookups?.length < 0\">\n <h3>\n Create source control locations under the DevOps tab above.\n </h3>\n </div>\n </mat-card-content>\n <mat-card-actions>\n <!-- [disabled]=\"!SourceControlFormGroup.valid || !SourceControlFormGroup.dirty\" -->\n <button mat-raised-button type=\"submit\" >Save</button>\n </mat-card-actions>\n </mat-card>\n</form>\n",
|
|
5432
|
+
styles: [""]
|
|
5433
|
+
},] }
|
|
5434
|
+
];
|
|
5435
|
+
SourceControlFormComponent.ctorParameters = function () { return [
|
|
5436
|
+
{ type: forms.FormBuilder }
|
|
5437
|
+
]; };
|
|
5438
|
+
SourceControlFormComponent.propDecorators = {
|
|
5439
|
+
EditingApplication: [{ type: i0.Input, args: ['editing-application',] }],
|
|
5440
|
+
Environment: [{ type: i0.Input, args: ['environment',] }],
|
|
5441
|
+
SourceControlFormControls: [{ type: i0.ViewChild, args: [SourceControlFormControlsComponent,] }]
|
|
5442
|
+
};
|
|
5443
|
+
|
|
4999
5444
|
var ApplicationsFlowModule = /** @class */ (function () {
|
|
5000
5445
|
function ApplicationsFlowModule() {
|
|
5001
5446
|
}
|
|
@@ -5048,7 +5493,10 @@
|
|
|
5048
5493
|
GhControlComponent,
|
|
5049
5494
|
MainFeedCardComponent,
|
|
5050
5495
|
TwoColumnHeaderComponent,
|
|
5051
|
-
CardCarouselComponent
|
|
5496
|
+
CardCarouselComponent,
|
|
5497
|
+
SecurityToggleComponent,
|
|
5498
|
+
ProcessorDetailsFormComponent,
|
|
5499
|
+
SourceControlFormComponent
|
|
5052
5500
|
],
|
|
5053
5501
|
imports: [
|
|
5054
5502
|
i2.FathymSharedModule,
|
|
@@ -5057,6 +5505,9 @@
|
|
|
5057
5505
|
flexLayout.FlexLayoutModule,
|
|
5058
5506
|
i2.MaterialModule,
|
|
5059
5507
|
appHostCommon.AppHostModule,
|
|
5508
|
+
tooltip.MatTooltipModule,
|
|
5509
|
+
slideToggle.MatSlideToggleModule
|
|
5510
|
+
// LazyElementModule,
|
|
5060
5511
|
],
|
|
5061
5512
|
exports: [
|
|
5062
5513
|
ApplicationsFlowProjectsElementComponent,
|
|
@@ -5090,7 +5541,10 @@
|
|
|
5090
5541
|
GhControlComponent,
|
|
5091
5542
|
MainFeedCardComponent,
|
|
5092
5543
|
TwoColumnHeaderComponent,
|
|
5093
|
-
CardCarouselComponent
|
|
5544
|
+
CardCarouselComponent,
|
|
5545
|
+
SecurityToggleComponent,
|
|
5546
|
+
ProcessorDetailsFormComponent,
|
|
5547
|
+
SourceControlFormComponent
|
|
5094
5548
|
],
|
|
5095
5549
|
entryComponents: [
|
|
5096
5550
|
ApplicationsFlowProjectsElementComponent,
|
|
@@ -5122,7 +5576,10 @@
|
|
|
5122
5576
|
GhControlComponent,
|
|
5123
5577
|
MainFeedCardComponent,
|
|
5124
5578
|
TwoColumnHeaderComponent,
|
|
5125
|
-
CardCarouselComponent
|
|
5579
|
+
CardCarouselComponent,
|
|
5580
|
+
SecurityToggleComponent,
|
|
5581
|
+
ProcessorDetailsFormComponent,
|
|
5582
|
+
SourceControlFormComponent
|
|
5126
5583
|
],
|
|
5127
5584
|
},] }
|
|
5128
5585
|
];
|
|
@@ -5208,6 +5665,8 @@
|
|
|
5208
5665
|
exports.UnpackLowCodeUnitRequest = UnpackLowCodeUnitRequest;
|
|
5209
5666
|
exports.ɵa = ApplicationsFlowEventsService;
|
|
5210
5667
|
exports.ɵb = DynamicTabsComponent;
|
|
5668
|
+
exports.ɵba = ProcessorDetailsFormComponent;
|
|
5669
|
+
exports.ɵbb = SourceControlFormComponent;
|
|
5211
5670
|
exports.ɵc = HeaderComponent;
|
|
5212
5671
|
exports.ɵd = ProjectTabsComponent;
|
|
5213
5672
|
exports.ɵe = GeneralComponent;
|
|
@@ -5231,6 +5690,7 @@
|
|
|
5231
5690
|
exports.ɵw = MainFeedCardComponent;
|
|
5232
5691
|
exports.ɵx = TwoColumnHeaderComponent;
|
|
5233
5692
|
exports.ɵy = CardCarouselComponent;
|
|
5693
|
+
exports.ɵz = SecurityToggleComponent;
|
|
5234
5694
|
|
|
5235
5695
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5236
5696
|
|