@lowcodeunit/applications-flow-common 1.33.86-lets-get-social-ish → 1.33.92-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.
Files changed (22) hide show
  1. package/bundles/lowcodeunit-applications-flow-common.umd.js +389 -10
  2. package/bundles/lowcodeunit-applications-flow-common.umd.js.map +1 -1
  3. package/bundles/lowcodeunit-applications-flow-common.umd.min.js +2 -2
  4. package/bundles/lowcodeunit-applications-flow-common.umd.min.js.map +1 -1
  5. package/esm2015/lib/applications-flow.module.js +17 -4
  6. package/esm2015/lib/controls/processor-details-form/processor-details-form.component.js +262 -0
  7. package/esm2015/lib/controls/security-toggle/security-toggle.component.js +60 -0
  8. package/esm2015/lib/elements/feed-card-sm/feed-card-sm.component.js +1 -1
  9. package/esm2015/lib/elements/gh-control/gh-control.component.js +1 -1
  10. package/esm2015/lib/elements/main-feed-card/main-feed-card.component.js +1 -1
  11. package/esm2015/lowcodeunit-applications-flow-common.js +3 -1
  12. package/fesm2015/lowcodeunit-applications-flow-common.js +336 -7
  13. package/fesm2015/lowcodeunit-applications-flow-common.js.map +1 -1
  14. package/lib/applications-flow.module.d.ts.map +1 -1
  15. package/lib/controls/processor-details-form/processor-details-form.component.d.ts +47 -0
  16. package/lib/controls/processor-details-form/processor-details-form.component.d.ts.map +1 -0
  17. package/lib/controls/security-toggle/security-toggle.component.d.ts +16 -0
  18. package/lib/controls/security-toggle/security-toggle.component.d.ts.map +1 -0
  19. package/lowcodeunit-applications-flow-common.d.ts +2 -0
  20. package/lowcodeunit-applications-flow-common.d.ts.map +1 -1
  21. package/lowcodeunit-applications-flow-common.metadata.json +1 -1
  22. 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.
@@ -4805,7 +4805,7 @@
4805
4805
  { type: i0.Component, args: [{
4806
4806
  selector: 'lcu-feed-card-sm',
4807
4807
  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{background-color:#fff;border:2px solid #d3d3d3;margin:20px;padding:15px 5px}mat-card-actions{margin-bottom:-1px!important;margin-left:0!important;margin-right:-.5px!important}"]
4808
+ styles: [".social-card{background-color:#fff;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
4809
  },] }
4810
4810
  ];
4811
4811
  FeedCardSmComponent.ctorParameters = function () { return []; };
@@ -4883,7 +4883,7 @@
4883
4883
  { type: i0.Component, args: [{
4884
4884
  selector: 'lcu-gh-control',
4885
4885
  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{background-color:#fff;border:2px solid #d3d3d3;margin:20px;padding:15px 5px}mat-card-actions{margin-bottom:-1px!important;margin-left:0!important;margin-right:-.5px!important}.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}"]
4886
+ styles: [".social-card{background-color:#fff;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
4887
  },] }
4888
4888
  ];
4889
4889
  GhControlComponent.ctorParameters = function () { return []; };
@@ -4902,7 +4902,7 @@
4902
4902
  { type: i0.Component, args: [{
4903
4903
  selector: 'lcu-main-feed-card',
4904
4904
  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{background-color:#fff;border:2px solid #d3d3d3;margin:20px;padding:15px 5px}mat-card-actions{margin-bottom:-1px!important;margin-left:0!important;margin-right:-.5px!important}.example-header-image{background-size:cover}"]
4905
+ styles: [".social-card{background-color:#fff;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
4906
  },] }
4907
4907
  ];
4908
4908
  MainFeedCardComponent.ctorParameters = function () { return []; };
@@ -4996,6 +4996,374 @@
4996
4996
  Stats: [{ type: i0.Input, args: ['stats',] }]
4997
4997
  };
4998
4998
 
4999
+ var SecurityToggleComponent = /** @class */ (function () {
5000
+ function SecurityToggleComponent(formBldr) {
5001
+ this.formBldr = formBldr;
5002
+ }
5003
+ Object.defineProperty(SecurityToggleComponent.prototype, "IsPrivateFormControl", {
5004
+ get: function () {
5005
+ var _a;
5006
+ return (_a = this.SecurityFormGroup) === null || _a === void 0 ? void 0 : _a.controls.isPrivate;
5007
+ },
5008
+ enumerable: false,
5009
+ configurable: true
5010
+ });
5011
+ SecurityToggleComponent.prototype.ngOnInit = function () {
5012
+ this.setupSecurityFormGroup();
5013
+ };
5014
+ SecurityToggleComponent.prototype.SecuritySubmit = function () {
5015
+ console.log("submitting values");
5016
+ };
5017
+ SecurityToggleComponent.prototype.setupSecurityFormGroup = function () {
5018
+ var _a, _b, _c, _d, _e;
5019
+ this.ProcessorType = ((_b = (_a = this.EditingApplication) === null || _a === void 0 ? void 0 : _a.Processor) === null || _b === void 0 ? void 0 : _b.Type) || '';
5020
+ if (this.EditingApplication != null) {
5021
+ this.SecurityFormGroup = this.formBldr.group({
5022
+ name: [(_c = this.EditingApplication.Application) === null || _c === void 0 ? void 0 : _c.Name, forms.Validators.required],
5023
+ description: [
5024
+ (_d = this.EditingApplication.Application) === null || _d === void 0 ? void 0 : _d.Description,
5025
+ forms.Validators.required,
5026
+ ],
5027
+ route: [
5028
+ ((_e = this.EditingApplication.LookupConfig) === null || _e === void 0 ? void 0 : _e.PathRegex.replace('.*', '')) ||
5029
+ '/',
5030
+ forms.Validators.required,
5031
+ ],
5032
+ // priority: [
5033
+ // this.EditingApplication.Application?.Priority || 10000,
5034
+ // Validators.required,
5035
+ // ],
5036
+ procType: [this.ProcessorType, [forms.Validators.required]],
5037
+ });
5038
+ }
5039
+ this.setupSecurityForm();
5040
+ };
5041
+ SecurityToggleComponent.prototype.setupSecurityForm = function () {
5042
+ var _a, _b;
5043
+ this.SecurityFormGroup.addControl('isPrivate', this.formBldr.control(((_a = this.EditingApplication.LookupConfig) === null || _a === void 0 ? void 0 : _a.IsPrivate) || false, [forms.Validators.required]));
5044
+ this.SecurityFormGroup.addControl('isTriggerSignIn', this.formBldr.control(((_b = this.EditingApplication.LookupConfig) === null || _b === void 0 ? void 0 : _b.IsTriggerSignIn) || false, [forms.Validators.required]));
5045
+ };
5046
+ return SecurityToggleComponent;
5047
+ }());
5048
+ SecurityToggleComponent.decorators = [
5049
+ { type: i0.Component, args: [{
5050
+ selector: 'lcu-security-toggle',
5051
+ 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",
5052
+ styles: ["::ng-deep .mat-tooltip{color:#000!important}"]
5053
+ },] }
5054
+ ];
5055
+ SecurityToggleComponent.ctorParameters = function () { return [
5056
+ { type: forms.FormBuilder }
5057
+ ]; };
5058
+ SecurityToggleComponent.propDecorators = {
5059
+ EditingApplication: [{ type: i0.Input, args: ['editing-application',] }]
5060
+ };
5061
+
5062
+ var ProcessorDetailsFormComponent = /** @class */ (function () {
5063
+ function ProcessorDetailsFormComponent(formBldr) {
5064
+ this.formBldr = formBldr;
5065
+ // this.EditingApplicationLookup = null;
5066
+ this.redirectTooltip = '';
5067
+ }
5068
+ Object.defineProperty(ProcessorDetailsFormComponent.prototype, "BuildFormControl", {
5069
+ get: function () {
5070
+ var _a;
5071
+ return (_a = this.ProsessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.build;
5072
+ },
5073
+ enumerable: false,
5074
+ configurable: true
5075
+ });
5076
+ Object.defineProperty(ProcessorDetailsFormComponent.prototype, "ClientIDFormControl", {
5077
+ get: function () {
5078
+ var _a;
5079
+ return (_a = this.ProsessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.clientId;
5080
+ },
5081
+ enumerable: false,
5082
+ configurable: true
5083
+ });
5084
+ Object.defineProperty(ProcessorDetailsFormComponent.prototype, "DefaultFileFormControl", {
5085
+ get: function () {
5086
+ var _a;
5087
+ return (_a = this.ProsessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.defaultFile;
5088
+ },
5089
+ enumerable: false,
5090
+ configurable: true
5091
+ });
5092
+ Object.defineProperty(ProcessorDetailsFormComponent.prototype, "InboundPathFormControl", {
5093
+ get: function () {
5094
+ var _a;
5095
+ return (_a = this.ProsessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.inboundPath;
5096
+ },
5097
+ enumerable: false,
5098
+ configurable: true
5099
+ });
5100
+ Object.defineProperty(ProcessorDetailsFormComponent.prototype, "TokenLookupFormControl", {
5101
+ get: function () {
5102
+ var _a;
5103
+ return (_a = this.ProsessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.tokenLookup;
5104
+ },
5105
+ enumerable: false,
5106
+ configurable: true
5107
+ });
5108
+ Object.defineProperty(ProcessorDetailsFormComponent.prototype, "RedirectFormControl", {
5109
+ get: function () {
5110
+ var _a;
5111
+ return (_a = this.ProsessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.redirect;
5112
+ },
5113
+ enumerable: false,
5114
+ configurable: true
5115
+ });
5116
+ Object.defineProperty(ProcessorDetailsFormComponent.prototype, "ScopesFormControl", {
5117
+ get: function () {
5118
+ var _a;
5119
+ return (_a = this.ProsessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.scopes;
5120
+ },
5121
+ enumerable: false,
5122
+ configurable: true
5123
+ });
5124
+ Object.defineProperty(ProcessorDetailsFormComponent.prototype, "SecurityFormControl", {
5125
+ get: function () {
5126
+ var _a;
5127
+ return (_a = this.ProsessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.security;
5128
+ },
5129
+ enumerable: false,
5130
+ configurable: true
5131
+ });
5132
+ Object.defineProperty(ProcessorDetailsFormComponent.prototype, "SPARootFormControl", {
5133
+ get: function () {
5134
+ var _a;
5135
+ return (_a = this.ProsessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.spaRoot;
5136
+ },
5137
+ enumerable: false,
5138
+ configurable: true
5139
+ });
5140
+ Object.defineProperty(ProcessorDetailsFormComponent.prototype, "PermanentFormControl", {
5141
+ get: function () {
5142
+ var _a;
5143
+ return (_a = this.ProsessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.permanent;
5144
+ },
5145
+ enumerable: false,
5146
+ configurable: true
5147
+ });
5148
+ Object.defineProperty(ProcessorDetailsFormComponent.prototype, "PreserveMethodFormControl", {
5149
+ get: function () {
5150
+ var _a;
5151
+ return (_a = this.ProsessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.preserveMethod;
5152
+ },
5153
+ enumerable: false,
5154
+ configurable: true
5155
+ });
5156
+ ProcessorDetailsFormComponent.prototype.ngOnInit = function () {
5157
+ };
5158
+ ProcessorDetailsFormComponent.prototype.DetermineTooltipText = function () {
5159
+ var permanentValue = this.PermanentFormControl.value;
5160
+ var preserveValue = this.PreserveMethodFormControl.value;
5161
+ if (permanentValue === true && preserveValue === false) {
5162
+ this.redirectTooltip = '301 – Permanent and Not Preserve';
5163
+ }
5164
+ else if (permanentValue === false && preserveValue === false) {
5165
+ this.redirectTooltip = '302 – Not Permanent and Not Preserve';
5166
+ }
5167
+ else if (permanentValue === false && preserveValue === true) {
5168
+ this.redirectTooltip = '307 – Not Permanent and Preserve';
5169
+ }
5170
+ else if (permanentValue === true && preserveValue === true) {
5171
+ this.redirectTooltip = '308 – Permanent and Preserve';
5172
+ }
5173
+ };
5174
+ ProcessorDetailsFormComponent.prototype.ProcessorTypeChanged = function (event) {
5175
+ this.ProcessorType = event.value;
5176
+ this.setupProcessorTypeSubForm();
5177
+ };
5178
+ ProcessorDetailsFormComponent.prototype.LCUTypeChanged = function (event) {
5179
+ this.LCUType = event.value;
5180
+ this.setupLcuTypeSubForm();
5181
+ };
5182
+ //HELPERS
5183
+ ProcessorDetailsFormComponent.prototype.cleanupLcuTypeSubForm = function () {
5184
+ this.ProsessorDetailsFormGroup.removeControl('methods');
5185
+ this.ProsessorDetailsFormGroup.removeControl('apiRoot');
5186
+ this.ProsessorDetailsFormGroup.removeControl('security');
5187
+ this.ProsessorDetailsFormGroup.removeControl('spaRoot');
5188
+ this.ProsessorDetailsFormGroup.removeControl('applicationId');
5189
+ this.ProsessorDetailsFormGroup.removeControl('build');
5190
+ this.ProsessorDetailsFormGroup.removeControl('clientId');
5191
+ this.ProsessorDetailsFormGroup.removeControl('clientSecret');
5192
+ this.ProsessorDetailsFormGroup.removeControl('zipFile');
5193
+ };
5194
+ ProcessorDetailsFormComponent.prototype.cleanupProcessorTypeSubForm = function () {
5195
+ this.ProsessorDetailsFormGroup.removeControl('defaultFile');
5196
+ // this.ApplicationFormGroup.removeControl('dfsLcuType');
5197
+ // this.ApplicationFormGroup.removeControl('oauthLcuType');
5198
+ this.ProsessorDetailsFormGroup.removeControl('scopes');
5199
+ this.ProsessorDetailsFormGroup.removeControl('tokenLookup');
5200
+ this.ProsessorDetailsFormGroup.removeControl('inboundPath');
5201
+ this.ProsessorDetailsFormGroup.removeControl('proxyLcuType');
5202
+ this.ProsessorDetailsFormGroup.removeControl('redirect');
5203
+ this.ProsessorDetailsFormGroup.removeControl('permanent');
5204
+ this.ProsessorDetailsFormGroup.removeControl('preserveMethod');
5205
+ this.cleanupLcuTypeSubForm();
5206
+ };
5207
+ ProcessorDetailsFormComponent.prototype.setupLcuTypeSubForm = function () {
5208
+ this.cleanupLcuTypeSubForm();
5209
+ // this.ApplicationFormGroup.removeControl('package');
5210
+ // this.ApplicationFormGroup.removeControl('version');
5211
+ if (this.LCUType) {
5212
+ switch (this.LCUType) {
5213
+ case 'API':
5214
+ this.setupLCUAPIForm();
5215
+ break;
5216
+ case 'ApplicationPointer':
5217
+ this.setupLCUApplicationPointerForm();
5218
+ break;
5219
+ case 'GitHub':
5220
+ this.setupLCUGitHubForm();
5221
+ break;
5222
+ case 'GitHubOAuth':
5223
+ this.setupLCUGitHubOAuthForm();
5224
+ break;
5225
+ case 'NPM':
5226
+ this.setupLCUNPMForm();
5227
+ break;
5228
+ case 'SPA':
5229
+ this.setupLCUSPAForm();
5230
+ break;
5231
+ case 'Zip':
5232
+ this.setupLCUZipForm();
5233
+ break;
5234
+ }
5235
+ }
5236
+ };
5237
+ ProcessorDetailsFormComponent.prototype.setupApplicationForm = function () {
5238
+ var _a, _b, _c, _d, _e;
5239
+ this.ProcessorType = ((_b = (_a = this.EditingApplication) === null || _a === void 0 ? void 0 : _a.Processor) === null || _b === void 0 ? void 0 : _b.Type) || '';
5240
+ if (this.EditingApplication != null) {
5241
+ this.ProsessorDetailsFormGroup = this.formBldr.group({
5242
+ name: [(_c = this.EditingApplication.Application) === null || _c === void 0 ? void 0 : _c.Name, forms.Validators.required],
5243
+ description: [
5244
+ (_d = this.EditingApplication.Application) === null || _d === void 0 ? void 0 : _d.Description,
5245
+ forms.Validators.required,
5246
+ ],
5247
+ route: [
5248
+ ((_e = this.EditingApplication.LookupConfig) === null || _e === void 0 ? void 0 : _e.PathRegex.replace('.*', '')) ||
5249
+ '/',
5250
+ forms.Validators.required,
5251
+ ],
5252
+ // priority: [
5253
+ // this.EditingApplication.Application?.Priority || 10000,
5254
+ // Validators.required,
5255
+ // ],
5256
+ procType: [this.ProcessorType, [forms.Validators.required]],
5257
+ });
5258
+ }
5259
+ };
5260
+ ProcessorDetailsFormComponent.prototype.setupLCUGitHubForm = function () {
5261
+ var _a;
5262
+ this.ProsessorDetailsFormGroup.addControl('build', this.formBldr.control(((_a = this.EditingApplication.LowCodeUnit) === null || _a === void 0 ? void 0 : _a.Build) || 'latest', [forms.Validators.required]));
5263
+ };
5264
+ ProcessorDetailsFormComponent.prototype.setupLCUApplicationPointerForm = function () {
5265
+ var _a;
5266
+ this.ProsessorDetailsFormGroup.addControl('applicationId', this.formBldr.control(((_a = this.EditingApplication.LowCodeUnit) === null || _a === void 0 ? void 0 : _a.ApplicationID) || '', [forms.Validators.required]));
5267
+ };
5268
+ ProcessorDetailsFormComponent.prototype.setupLCUNPMForm = function () {
5269
+ // this.ApplicationFormGroup.addControl(
5270
+ // 'package',
5271
+ // this.formBldr.control(
5272
+ // this.EditingApplication.LowCodeUnit?.Package || '',
5273
+ // [Validators.required]
5274
+ // )
5275
+ // );
5276
+ // this.ApplicationFormGroup.addControl(
5277
+ // 'version',
5278
+ // this.formBldr.control(
5279
+ // this.EditingApplication.LowCodeUnit?.Version || '',
5280
+ // [Validators.required]
5281
+ // )
5282
+ // );
5283
+ };
5284
+ ProcessorDetailsFormComponent.prototype.setupLCUSPAForm = function () {
5285
+ var _a;
5286
+ this.ProsessorDetailsFormGroup.addControl('spaRoot', this.formBldr.control(((_a = this.EditingApplication.LowCodeUnit) === null || _a === void 0 ? void 0 : _a.SPARoot) || '', [forms.Validators.required]));
5287
+ };
5288
+ ProcessorDetailsFormComponent.prototype.setupLCUAPIForm = function () {
5289
+ var _a, _b, _c, _d;
5290
+ this.ProsessorDetailsFormGroup.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(' ')) || '', []));
5291
+ this.ProsessorDetailsFormGroup.addControl('apiRoot', this.formBldr.control(((_c = this.EditingApplication.LowCodeUnit) === null || _c === void 0 ? void 0 : _c.APIRoot) || '', [forms.Validators.required]));
5292
+ this.ProsessorDetailsFormGroup.addControl('security', this.formBldr.control(((_d = this.EditingApplication.LowCodeUnit) === null || _d === void 0 ? void 0 : _d.Security) || '', [forms.Validators.required]));
5293
+ };
5294
+ ProcessorDetailsFormComponent.prototype.setupLCUGitHubOAuthForm = function () {
5295
+ var _a, _b;
5296
+ this.ProsessorDetailsFormGroup.addControl('clientId', this.formBldr.control(((_a = this.EditingApplication.LowCodeUnit) === null || _a === void 0 ? void 0 : _a.ClientID) || '', [forms.Validators.required]));
5297
+ this.ProsessorDetailsFormGroup.addControl('clientSecret', this.formBldr.control(((_b = this.EditingApplication.LowCodeUnit) === null || _b === void 0 ? void 0 : _b.ClientSecret) || '', [forms.Validators.required]));
5298
+ };
5299
+ ProcessorDetailsFormComponent.prototype.setupProxyForm = function () {
5300
+ var _a, _b;
5301
+ this.LCUType = ((_a = this.EditingApplication.LowCodeUnit) === null || _a === void 0 ? void 0 : _a.Type) || '';
5302
+ this.ProsessorDetailsFormGroup.addControl('inboundPath', this.formBldr.control(((_b = this.EditingApplication.Processor) === null || _b === void 0 ? void 0 : _b.InboundPath) || '', [forms.Validators.required]));
5303
+ this.ProsessorDetailsFormGroup.addControl('lcuType', this.formBldr.control(this.LCUType, [forms.Validators.required]));
5304
+ };
5305
+ ProcessorDetailsFormComponent.prototype.setupRedirectForm = function () {
5306
+ var _a, _b, _c;
5307
+ this.ProsessorDetailsFormGroup.addControl('redirect', this.formBldr.control(((_a = this.EditingApplication.Processor) === null || _a === void 0 ? void 0 : _a.Redirect) || '', [
5308
+ forms.Validators.required,
5309
+ ]));
5310
+ this.ProsessorDetailsFormGroup.addControl('permanent', this.formBldr.control(((_b = this.EditingApplication.Processor) === null || _b === void 0 ? void 0 : _b.Permanent) || false, []));
5311
+ this.ProsessorDetailsFormGroup.addControl('preserveMethod', this.formBldr.control(((_c = this.EditingApplication.Processor) === null || _c === void 0 ? void 0 : _c.PreserveMethod) || false, []));
5312
+ this.DetermineTooltipText();
5313
+ };
5314
+ ProcessorDetailsFormComponent.prototype.setupOAuthForm = function () {
5315
+ var _a, _b, _c, _d;
5316
+ this.LCUType = ((_a = this.EditingApplication.LowCodeUnit) === null || _a === void 0 ? void 0 : _a.Type) || '';
5317
+ this.ProsessorDetailsFormGroup.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]));
5318
+ this.ProsessorDetailsFormGroup.addControl('tokenLookup', this.formBldr.control(((_d = this.EditingApplication.Processor) === null || _d === void 0 ? void 0 : _d.TokenLookup) || '', [forms.Validators.required]));
5319
+ this.ProsessorDetailsFormGroup.addControl('lcuType', this.formBldr.control(this.LCUType, [forms.Validators.required]));
5320
+ };
5321
+ ProcessorDetailsFormComponent.prototype.setupLCUZipForm = function () {
5322
+ var _a;
5323
+ this.ProsessorDetailsFormGroup.addControl('zipFile', this.formBldr.control(((_a = this.EditingApplication.LowCodeUnit) === null || _a === void 0 ? void 0 : _a.ZipFile) || '', [forms.Validators.required]));
5324
+ };
5325
+ ProcessorDetailsFormComponent.prototype.setupDfsForm = function () {
5326
+ var _a, _b;
5327
+ this.LCUType = ((_a = this.EditingApplication.LowCodeUnit) === null || _a === void 0 ? void 0 : _a.Type) || '';
5328
+ this.ProsessorDetailsFormGroup.addControl('defaultFile', this.formBldr.control(((_b = this.EditingApplication.Processor) === null || _b === void 0 ? void 0 : _b.DefaultFile) || 'index.html', [forms.Validators.required]));
5329
+ this.ProsessorDetailsFormGroup.addControl('lcuType', this.formBldr.control(this.LCUType, [forms.Validators.required]));
5330
+ };
5331
+ ProcessorDetailsFormComponent.prototype.setupProcessorTypeSubForm = function () {
5332
+ this.cleanupProcessorTypeSubForm();
5333
+ if (this.ProcessorType) {
5334
+ switch (this.ProcessorType) {
5335
+ case 'DFS':
5336
+ this.setupDfsForm();
5337
+ break;
5338
+ case 'OAuth':
5339
+ this.setupOAuthForm();
5340
+ break;
5341
+ case 'Proxy':
5342
+ this.setupProxyForm();
5343
+ break;
5344
+ case 'Redirect':
5345
+ this.setupRedirectForm();
5346
+ break;
5347
+ }
5348
+ }
5349
+ this.setupLcuTypeSubForm();
5350
+ };
5351
+ return ProcessorDetailsFormComponent;
5352
+ }());
5353
+ ProcessorDetailsFormComponent.decorators = [
5354
+ { type: i0.Component, args: [{
5355
+ selector: 'lcu-processor-details-form',
5356
+ 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",
5357
+ styles: [""]
5358
+ },] }
5359
+ ];
5360
+ ProcessorDetailsFormComponent.ctorParameters = function () { return [
5361
+ { type: forms.FormBuilder }
5362
+ ]; };
5363
+ ProcessorDetailsFormComponent.propDecorators = {
5364
+ EditingApplication: [{ type: i0.Input, args: ['editing-application',] }]
5365
+ };
5366
+
4999
5367
  var ApplicationsFlowModule = /** @class */ (function () {
5000
5368
  function ApplicationsFlowModule() {
5001
5369
  }
@@ -5048,7 +5416,9 @@
5048
5416
  GhControlComponent,
5049
5417
  MainFeedCardComponent,
5050
5418
  TwoColumnHeaderComponent,
5051
- CardCarouselComponent
5419
+ CardCarouselComponent,
5420
+ SecurityToggleComponent,
5421
+ ProcessorDetailsFormComponent
5052
5422
  ],
5053
5423
  imports: [
5054
5424
  i2.FathymSharedModule,
@@ -5057,6 +5427,9 @@
5057
5427
  flexLayout.FlexLayoutModule,
5058
5428
  i2.MaterialModule,
5059
5429
  appHostCommon.AppHostModule,
5430
+ tooltip.MatTooltipModule,
5431
+ slideToggle.MatSlideToggleModule
5432
+ // LazyElementModule,
5060
5433
  ],
5061
5434
  exports: [
5062
5435
  ApplicationsFlowProjectsElementComponent,
@@ -5090,7 +5463,9 @@
5090
5463
  GhControlComponent,
5091
5464
  MainFeedCardComponent,
5092
5465
  TwoColumnHeaderComponent,
5093
- CardCarouselComponent
5466
+ CardCarouselComponent,
5467
+ SecurityToggleComponent,
5468
+ ProcessorDetailsFormComponent
5094
5469
  ],
5095
5470
  entryComponents: [
5096
5471
  ApplicationsFlowProjectsElementComponent,
@@ -5122,7 +5497,9 @@
5122
5497
  GhControlComponent,
5123
5498
  MainFeedCardComponent,
5124
5499
  TwoColumnHeaderComponent,
5125
- CardCarouselComponent
5500
+ CardCarouselComponent,
5501
+ SecurityToggleComponent,
5502
+ ProcessorDetailsFormComponent
5126
5503
  ],
5127
5504
  },] }
5128
5505
  ];
@@ -5208,6 +5585,7 @@
5208
5585
  exports.UnpackLowCodeUnitRequest = UnpackLowCodeUnitRequest;
5209
5586
  exports.ɵa = ApplicationsFlowEventsService;
5210
5587
  exports.ɵb = DynamicTabsComponent;
5588
+ exports.ɵba = ProcessorDetailsFormComponent;
5211
5589
  exports.ɵc = HeaderComponent;
5212
5590
  exports.ɵd = ProjectTabsComponent;
5213
5591
  exports.ɵe = GeneralComponent;
@@ -5231,6 +5609,7 @@
5231
5609
  exports.ɵw = MainFeedCardComponent;
5232
5610
  exports.ɵx = TwoColumnHeaderComponent;
5233
5611
  exports.ɵy = CardCarouselComponent;
5612
+ exports.ɵz = SecurityToggleComponent;
5234
5613
 
5235
5614
  Object.defineProperty(exports, '__esModule', { value: true });
5236
5615