@lowcodeunit/applications-flow-common 1.33.101-lets-get-social-ish → 1.33.102-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 +134 -42
- 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/controls/build-pipeline-form/build-pipeline-form.component.js +106 -25
- package/esm2015/lib/controls/devops-source-control-form/devops-source-control-form.component.js +18 -18
- package/esm2015/lib/dialogs/build-pipeline-dialog/build-pipeline-dialog.component.js +2 -2
- package/fesm2015/lowcodeunit-applications-flow-common.js +121 -42
- package/fesm2015/lowcodeunit-applications-flow-common.js.map +1 -1
- package/lib/controls/build-pipeline-form/build-pipeline-form.component.d.ts +12 -2
- package/lib/controls/build-pipeline-form/build-pipeline-form.component.d.ts.map +1 -1
- package/lib/dialogs/build-pipeline-dialog/build-pipeline-dialog.component.d.ts +1 -0
- package/lib/dialogs/build-pipeline-dialog/build-pipeline-dialog.component.d.ts.map +1 -1
- package/lowcodeunit-applications-flow-common.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -5489,7 +5489,8 @@
|
|
|
5489
5489
|
};
|
|
5490
5490
|
|
|
5491
5491
|
var BuildPipelineFormComponent = /** @class */ (function () {
|
|
5492
|
-
function BuildPipelineFormComponent(formBuilder, appsFlowSvc) {
|
|
5492
|
+
function BuildPipelineFormComponent(eacSvc, formBuilder, appsFlowSvc) {
|
|
5493
|
+
this.eacSvc = eacSvc;
|
|
5493
5494
|
this.formBuilder = formBuilder;
|
|
5494
5495
|
this.appsFlowSvc = appsFlowSvc;
|
|
5495
5496
|
this.HostingDetails = new ProjectHostingDetails();
|
|
@@ -5544,6 +5545,13 @@
|
|
|
5544
5545
|
enumerable: false,
|
|
5545
5546
|
configurable: true
|
|
5546
5547
|
});
|
|
5548
|
+
Object.defineProperty(BuildPipelineFormComponent.prototype, "DevOpsActionNameFormControl", {
|
|
5549
|
+
get: function () {
|
|
5550
|
+
return this.BuildPipelineFormGroup.get('devOpsActionName');
|
|
5551
|
+
},
|
|
5552
|
+
enumerable: false,
|
|
5553
|
+
configurable: true
|
|
5554
|
+
});
|
|
5547
5555
|
Object.defineProperty(BuildPipelineFormComponent.prototype, "EditingSourceControl", {
|
|
5548
5556
|
get: function () {
|
|
5549
5557
|
var _a, _b;
|
|
@@ -5556,6 +5564,13 @@
|
|
|
5556
5564
|
enumerable: false,
|
|
5557
5565
|
configurable: true
|
|
5558
5566
|
});
|
|
5567
|
+
Object.defineProperty(BuildPipelineFormComponent.prototype, "NPMTokenFormControl", {
|
|
5568
|
+
get: function () {
|
|
5569
|
+
return this.BuildPipelineFormGroup.get('npmToken');
|
|
5570
|
+
},
|
|
5571
|
+
enumerable: false,
|
|
5572
|
+
configurable: true
|
|
5573
|
+
});
|
|
5559
5574
|
Object.defineProperty(BuildPipelineFormComponent.prototype, "SelectedHostingOption", {
|
|
5560
5575
|
// (ho) => ho.Lookup === this.BuildPipeline
|
|
5561
5576
|
get: function () {
|
|
@@ -5566,6 +5581,19 @@
|
|
|
5566
5581
|
enumerable: false,
|
|
5567
5582
|
configurable: true
|
|
5568
5583
|
});
|
|
5584
|
+
Object.defineProperty(BuildPipelineFormComponent.prototype, "SelectedHostingOptionInputControlValues", {
|
|
5585
|
+
get: function () {
|
|
5586
|
+
var _this = this;
|
|
5587
|
+
var _a, _b;
|
|
5588
|
+
return (_b = (_a = this.SelectedHostingOption) === null || _a === void 0 ? void 0 : _a.Inputs) === null || _b === void 0 ? void 0 : _b.reduce(function (prev, cur) {
|
|
5589
|
+
var res = Object.assign({}, prev);
|
|
5590
|
+
res[cur.Lookup] = _this.BuildPipelineFormGroup.controls[cur.Lookup].value;
|
|
5591
|
+
return res;
|
|
5592
|
+
}, {});
|
|
5593
|
+
},
|
|
5594
|
+
enumerable: false,
|
|
5595
|
+
configurable: true
|
|
5596
|
+
});
|
|
5569
5597
|
Object.defineProperty(BuildPipelineFormComponent.prototype, "SourceControlLookups", {
|
|
5570
5598
|
get: function () {
|
|
5571
5599
|
return Object.keys(this.SourceControls || {});
|
|
@@ -5581,22 +5609,18 @@
|
|
|
5581
5609
|
configurable: true
|
|
5582
5610
|
});
|
|
5583
5611
|
BuildPipelineFormComponent.prototype.ngOnInit = function () {
|
|
5584
|
-
var _a, _b, _c;
|
|
5585
5612
|
this.BuildPipelineFormGroup = this.formBuilder.group({});
|
|
5586
|
-
this.loadProjectHostingDetails();
|
|
5587
5613
|
console.log("ARTIFACT: ", this.Artifact);
|
|
5588
5614
|
// this.BuildPipeline ||
|
|
5589
5615
|
// github-artifacts-release is this.HostingDetails?.HostingOptions[0]?.Lookup
|
|
5590
|
-
this.BuildPipeline =
|
|
5591
|
-
((_a = this.HostingDetails) === null || _a === void 0 ? void 0 : _a.HostingOptions) ? (_c = (_b = this.HostingDetails) === null || _b === void 0 ? void 0 : _b.HostingOptions[0]) === null || _c === void 0 ? void 0 : _c.Lookup : '';
|
|
5592
|
-
console.log("Build Pipeline HERE= ", this.BuildPipeline);
|
|
5593
5616
|
if (this.BuildPipelineFormGroup != null) {
|
|
5594
5617
|
this.BuildPipelineFormGroup.removeControl('hostingDetails');
|
|
5595
5618
|
}
|
|
5596
5619
|
this.BuildPipelineFormGroup.addControl('hostingDetails', this.formBuilder.group({
|
|
5597
5620
|
buildPipeline: [this.BuildPipeline, [forms.Validators.required]],
|
|
5598
5621
|
}));
|
|
5599
|
-
this.
|
|
5622
|
+
this.loadProjectHostingDetails();
|
|
5623
|
+
// this.setupControlsForForm();
|
|
5600
5624
|
};
|
|
5601
5625
|
//API METHODS
|
|
5602
5626
|
BuildPipelineFormComponent.prototype.BuildPipelineChanged = function () {
|
|
@@ -5605,18 +5629,81 @@
|
|
|
5605
5629
|
this.BuildPipeline = (_b = this.BuildPipelineFormControl) === null || _b === void 0 ? void 0 : _b.value;
|
|
5606
5630
|
this.setupControlsForForm();
|
|
5607
5631
|
};
|
|
5632
|
+
BuildPipelineFormComponent.prototype.SubmitBuildPipeline = function () {
|
|
5633
|
+
};
|
|
5634
|
+
BuildPipelineFormComponent.prototype.SaveEnvironment = function () {
|
|
5635
|
+
var _a;
|
|
5636
|
+
var saveEnvReq = {
|
|
5637
|
+
Environment: Object.assign(Object.assign({}, this.Environment), { Artifacts: this.Environment.Artifacts || {}, DevOpsActions: this.Environment.DevOpsActions || {}, Secrets: this.Environment.Secrets || {}, Sources: this.Environment.Sources || {} }),
|
|
5638
|
+
EnvironmentLookup: this.EnvironmentLookup,
|
|
5639
|
+
EnterpriseDataTokens: {},
|
|
5640
|
+
};
|
|
5641
|
+
var artifactLookup;
|
|
5642
|
+
var artifact = Object.assign(Object.assign({}, this.Artifact), this.SelectedHostingOptionInputControlValues);
|
|
5643
|
+
if (!this.ArtifactLookup) {
|
|
5644
|
+
artifactLookup = i2.Guid.CreateRaw();
|
|
5645
|
+
artifact = Object.assign(Object.assign({}, artifact), { Type: this.SelectedHostingOption
|
|
5646
|
+
.ArtifactType, Name: this.SelectedHostingOption.Name, NPMRegistry: 'https://registry.npmjs.org/' });
|
|
5647
|
+
}
|
|
5648
|
+
else {
|
|
5649
|
+
artifactLookup = this.ArtifactLookup;
|
|
5650
|
+
}
|
|
5651
|
+
saveEnvReq.Environment.Artifacts[artifactLookup] = artifact;
|
|
5652
|
+
var devOpsActionLookup;
|
|
5653
|
+
if (!this.DevOpsActionLookup) {
|
|
5654
|
+
devOpsActionLookup = i2.Guid.CreateRaw();
|
|
5655
|
+
var doa = Object.assign(Object.assign({}, this.DevOpsAction), { ArtifactLookups: [artifactLookup], Name: this.DevOpsActionNameFormControl.value, Path: this.SelectedHostingOption.Path, Templates: this.SelectedHostingOption.Templates });
|
|
5656
|
+
if ((_a = this.NPMTokenFormControl) === null || _a === void 0 ? void 0 : _a.value) {
|
|
5657
|
+
var secretLookup = 'npm-access-token';
|
|
5658
|
+
doa.SecretLookups = [secretLookup];
|
|
5659
|
+
saveEnvReq.Environment.Secrets[secretLookup] = {
|
|
5660
|
+
Name: 'NPM Access Token',
|
|
5661
|
+
DataTokenLookup: secretLookup,
|
|
5662
|
+
KnownAs: 'NPM_TOKEN',
|
|
5663
|
+
};
|
|
5664
|
+
saveEnvReq.EnterpriseDataTokens[secretLookup] = {
|
|
5665
|
+
Name: saveEnvReq.Environment.Secrets[secretLookup].Name,
|
|
5666
|
+
Description: saveEnvReq.Environment.Secrets[secretLookup].Name,
|
|
5667
|
+
Value: this.NPMTokenFormControl.value,
|
|
5668
|
+
};
|
|
5669
|
+
}
|
|
5670
|
+
saveEnvReq.Environment.DevOpsActions[devOpsActionLookup] = doa;
|
|
5671
|
+
}
|
|
5672
|
+
else {
|
|
5673
|
+
devOpsActionLookup = this.DevOpsActionLookup;
|
|
5674
|
+
var doa = Object.assign(Object.assign({}, this.DevOpsAction), { Name: this.DevOpsActionNameFormControl.value });
|
|
5675
|
+
saveEnvReq.Environment.DevOpsActions[devOpsActionLookup] = doa;
|
|
5676
|
+
}
|
|
5677
|
+
// let source: EaCSourceControl = {
|
|
5678
|
+
// ...this.EditingSourceControl,
|
|
5679
|
+
// Branches: this.SourceControlFormControls.SelectedBranches,
|
|
5680
|
+
// MainBranch: this.SourceControlFormControls.MainBranchFormControl.value,
|
|
5681
|
+
// };
|
|
5682
|
+
// source = {
|
|
5683
|
+
// ...source,
|
|
5684
|
+
// Type: 'GitHub',
|
|
5685
|
+
// Name: this.EditingSourceControlLookup,
|
|
5686
|
+
// DevOpsActionTriggerLookups: [devOpsActionLookup],
|
|
5687
|
+
// Organization:
|
|
5688
|
+
// this.SourceControlFormControls.OrganizationFormControl.value,
|
|
5689
|
+
// Repository: this.SourceControlFormControls.RepositoryFormControl.value,
|
|
5690
|
+
// };
|
|
5691
|
+
// const scLookup = `github://${source.Organization}/${source.Repository}`;
|
|
5692
|
+
// saveEnvReq.Environment.Sources[scLookup] = source;
|
|
5693
|
+
this.eacSvc.SaveEnvironmentAsCode(saveEnvReq);
|
|
5694
|
+
};
|
|
5608
5695
|
// Helpers
|
|
5609
5696
|
BuildPipelineFormComponent.prototype.setupControlsForForm = function () {
|
|
5610
5697
|
var _this = this;
|
|
5611
|
-
//for (const ctrlName in this.BuildPipelineFormGroup.controls) {
|
|
5612
|
-
//devOpsAction doesn't exist
|
|
5613
|
-
//removes hosting details
|
|
5614
|
-
// if (ctrlName !== 'buildPipeline' && ctrlName !== 'devOpsAction') {
|
|
5615
|
-
// console.log("removing control: ", ctrlName)
|
|
5616
|
-
// this.BuildPipelineFormGroup.removeControl(ctrlName);
|
|
5617
|
-
// }
|
|
5618
|
-
//}
|
|
5619
5698
|
var _a, _b, _c, _d, _e, _f;
|
|
5699
|
+
for (var ctrlName in this.BuildPipelineFormGroup.controls) {
|
|
5700
|
+
//devOpsAction doesn't exist
|
|
5701
|
+
//removes hosting details
|
|
5702
|
+
if (ctrlName !== 'buildPipeline' && ctrlName !== 'devOpsAction') {
|
|
5703
|
+
console.log("removing control: ", ctrlName);
|
|
5704
|
+
this.BuildPipelineFormGroup.removeControl(ctrlName);
|
|
5705
|
+
}
|
|
5706
|
+
}
|
|
5620
5707
|
this.BuildPipelineFormGroup.addControl('devOpsActionName', this.formBuilder.control(((_a = this.DevOpsAction) === null || _a === void 0 ? void 0 : _a.Name) || ((_b = this.SelectedHostingOption) === null || _b === void 0 ? void 0 : _b.Name) || '', [forms.Validators.required]));
|
|
5621
5708
|
(_d = (_c = this.SelectedHostingOption) === null || _c === void 0 ? void 0 : _c.Inputs) === null || _d === void 0 ? void 0 : _d.forEach(function (input) {
|
|
5622
5709
|
var validators = input.Required ? [forms.Validators.required] : [];
|
|
@@ -5625,9 +5712,7 @@
|
|
|
5625
5712
|
// this.FormGroup.controls[input.Lookup].disable();
|
|
5626
5713
|
// }
|
|
5627
5714
|
});
|
|
5628
|
-
debugger;
|
|
5629
5715
|
if (((_e = this.BuildPipelineFormControl) === null || _e === void 0 ? void 0 : _e.value) === 'npm-release') {
|
|
5630
|
-
debugger;
|
|
5631
5716
|
if (!this.BuildPipelineFormGroup.controls.npmToken) {
|
|
5632
5717
|
this.BuildPipelineFormGroup.addControl('npmToken', this.formBuilder.control('', this.Disabled ? [] : [forms.Validators.required]));
|
|
5633
5718
|
if (this.Disabled) {
|
|
@@ -5643,23 +5728,28 @@
|
|
|
5643
5728
|
};
|
|
5644
5729
|
BuildPipelineFormComponent.prototype.loadProjectHostingDetails = function () {
|
|
5645
5730
|
var _this = this;
|
|
5646
|
-
|
|
5731
|
+
this.HostingDetails.Loading = true;
|
|
5647
5732
|
// this.Organization,
|
|
5648
5733
|
// this.Repository,
|
|
5649
5734
|
// this.MainBranch
|
|
5650
|
-
//
|
|
5651
|
-
//
|
|
5652
|
-
//
|
|
5735
|
+
// "powhound4",
|
|
5736
|
+
// "RedwoodCrystals",
|
|
5737
|
+
// "master"
|
|
5653
5738
|
this.appsFlowSvc
|
|
5654
5739
|
.NewLoadProjectHostingDetails()
|
|
5655
5740
|
.subscribe(function (response) {
|
|
5741
|
+
var _a, _b, _c;
|
|
5656
5742
|
_this.HostingDetails = response.Model;
|
|
5657
5743
|
console.log("response: ", response);
|
|
5658
5744
|
_this.HostingDetails.Loading = false;
|
|
5745
|
+
_this.BuildPipeline =
|
|
5746
|
+
((_a = _this.HostingDetails) === null || _a === void 0 ? void 0 : _a.HostingOptions) ? (_c = (_b = _this.HostingDetails) === null || _b === void 0 ? void 0 : _b.HostingOptions[0]) === null || _c === void 0 ? void 0 : _c.Lookup : '';
|
|
5747
|
+
console.log("Build Pipeline HERE= ", _this.BuildPipeline);
|
|
5748
|
+
_this.setupControlsForForm();
|
|
5659
5749
|
}, function (err) {
|
|
5660
|
-
_this.HostingDetails.Loading = false;
|
|
5661
5750
|
console.log("hosting details LOADING EERR: ", _this.HostingDetails);
|
|
5662
5751
|
console.log("ERR: ", err);
|
|
5752
|
+
_this.HostingDetails.Loading = false;
|
|
5663
5753
|
});
|
|
5664
5754
|
console.log("HOSTING DETAILS: ", this.HostingDetails);
|
|
5665
5755
|
};
|
|
@@ -5668,11 +5758,12 @@
|
|
|
5668
5758
|
BuildPipelineFormComponent.decorators = [
|
|
5669
5759
|
{ type: i0.Component, args: [{
|
|
5670
5760
|
selector: 'lcu-build-pipeline-form',
|
|
5671
|
-
template: "<form class=\"form-card\" [formGroup]=\"BuildPipelineFormGroup\">\n <!-- *ngIf=\"EditingSourceControl?.Branches?.length > 0\" -->\n <mat-card\n class=\"spread\" \n >\n <mat-card-header>\n <mat-card-title> Build Pipeline </mat-card-title>\n\n <mat-hint>\n Changes made here are reflected for all sources using this\n DevOpsAction\n </mat-hint>\n </mat-card-header>\n\n <mat-card-content>\n\n <ng-container>\n\n <div *ngIf=\"!HostingDetails?.Loading\">\n <mat-form-field class=\"mat-full-width\">\n <mat-select\n formControlName=\"buildPipeline\"\n placeholder=\"Build Pipeline\"\n [disabled]=\"Disabled\"\n (selectionChange)=\"BuildPipelineChanged()\"\n required\n >\n <ng-container\n *ngFor=\"let hostOption of HostingDetails?.HostingOptions; let i = index\"\n >\n <mat-option [value]=\"hostOption?.Lookup\">\n {{ hostOption.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n \n <mat-hint>\n <ng-container *ngFor=\"let hostOption of HostingDetails?.HostingOptions\">\n <span *ngIf=\"BuildPipeline == hostOption?.Lookup\">\n {{ hostOption.Description }}\n </span>\n </ng-container>\n </mat-hint>\n </mat-form-field>\n \n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n formControlName=\"devOpsActionName\"\n placeholder=\"Name of DevOps Action\"\n required=\"true\"\n />\n </mat-form-field>\n \n <ng-container *ngFor=\"let input of SelectedHostingOption?.Inputs\">\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n [formControlName]=\"input.Lookup\"\n [placeholder]=\"input.Placeholder\"\n [required]=\"input.Required\"\n />\n \n <mat-hint>{{ input.Hint }}</mat-hint>\n </mat-form-field>\n </ng-container>\n \n <div *ngIf=\"BuildPipeline == 'npm-release'\">\n <mat-form-field class=\"mat-full-width with-hint padding-bottom-4\">\n <mat-icon matPrefix>security</mat-icon>\n \n <input\n id=\"npm-token\"\n matInput\n type=\"text\"\n formControlName=\"npmToken\"\n placeholder=\"NPM token\"\n [required]=\"!Disabled\"\n style=\"-webkit-text-security: disc;\"\n />\n <mat-hint>\n Securely publish to NPM, provide an NPM Personal Access Token (PAT) with publish access to the organization used for your NPM packages. \n Learn how to create and view access tokens \n <a\n href=\"https://docs.npmjs.com/creating-and-viewing-access-tokens\"\n target=\"_blank\"\n >\n here.\n </a>\n </mat-hint>\n </mat-form-field>\n </div>\n </div>\n \n <div *ngIf=\"HostingDetails?.Loading\">\n <div class=\"spread\">\n <lcu-loader style=\"margin: auto\" [loading]=\"true\"></lcu-loader>\n \n <div class=\"margin-3\">\n <h4 class=\"mat-title\">Loading hosting details</h4>\n </div>\n </div>\n </div>\n </ng-container>\n </mat-card-content>\n </mat-card>\n</form>\n",
|
|
5761
|
+
template: "<form class=\"form-card\" [formGroup]=\"BuildPipelineFormGroup\" (ngSubmit)=\"SubmitBuildPipeline()\">\n <!-- *ngIf=\"EditingSourceControl?.Branches?.length > 0\" -->\n <mat-card\n class=\"spread\" \n >\n <mat-card-header>\n <mat-card-title> Build Pipeline </mat-card-title>\n\n <mat-hint>\n Changes made here are reflected for all sources using this\n DevOpsAction\n </mat-hint>\n </mat-card-header>\n\n <mat-card-content>\n\n <ng-container>\n\n <div *ngIf=\"!HostingDetails?.Loading\">\n <mat-form-field class=\"mat-full-width\">\n <mat-select\n formControlName=\"buildPipeline\"\n placeholder=\"Build Pipeline\"\n [disabled]=\"Disabled\"\n (selectionChange)=\"BuildPipelineChanged()\"\n required\n >\n <ng-container\n *ngFor=\"let hostOption of HostingDetails?.HostingOptions; let i = index\"\n >\n <mat-option [value]=\"hostOption?.Lookup\">\n {{ hostOption.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n \n <mat-hint>\n <ng-container *ngFor=\"let hostOption of HostingDetails?.HostingOptions\">\n <span *ngIf=\"BuildPipeline == hostOption?.Lookup\">\n {{ hostOption.Description }}\n </span>\n </ng-container>\n </mat-hint>\n </mat-form-field>\n \n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n formControlName=\"devOpsActionName\"\n placeholder=\"Name of DevOps Action\"\n required=\"true\"\n />\n </mat-form-field>\n \n <ng-container *ngFor=\"let input of SelectedHostingOption?.Inputs\">\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n [formControlName]=\"input.Lookup\"\n [placeholder]=\"input.Placeholder\"\n [required]=\"input.Required\"\n />\n \n <mat-hint>{{ input.Hint }}</mat-hint>\n </mat-form-field>\n </ng-container>\n \n <div *ngIf=\"BuildPipeline == 'npm-release'\">\n <mat-form-field class=\"mat-full-width with-hint padding-bottom-4\">\n <mat-icon matPrefix>security</mat-icon>\n \n <input\n id=\"npm-token\"\n matInput\n type=\"text\"\n formControlName=\"npmToken\"\n placeholder=\"NPM token\"\n [required]=\"!Disabled\"\n style=\"-webkit-text-security: disc;\"\n />\n <mat-hint>\n Securely publish to NPM, provide an NPM Personal Access Token (PAT) with publish access to the organization used for your NPM packages. \n Learn how to create and view access tokens \n <a\n href=\"https://docs.npmjs.com/creating-and-viewing-access-tokens\"\n target=\"_blank\"\n >\n here.\n </a>\n </mat-hint>\n </mat-form-field>\n </div>\n </div>\n \n <div *ngIf=\"HostingDetails?.Loading\">\n <div class=\"spread\">\n <lcu-loader style=\"margin: auto\" [loading]=\"true\"></lcu-loader>\n \n <div class=\"margin-3\">\n <h4 class=\"mat-title\">Loading hosting details</h4>\n </div>\n </div>\n </div>\n </ng-container>\n </mat-card-content>\n <mat-card-actions fxLayoutAlign=\"center center\">\n <!-- [disabled]=\"!SecurityFormGroup.valid || !SecurityFormGroup.dirty\" -->\n <button mat-raised-button type=\"submit\">Save</button>\n </mat-card-actions>\n </mat-card>\n</form>\n",
|
|
5672
5762
|
styles: [""]
|
|
5673
5763
|
},] }
|
|
5674
5764
|
];
|
|
5675
5765
|
BuildPipelineFormComponent.ctorParameters = function () { return [
|
|
5766
|
+
{ type: EaCService },
|
|
5676
5767
|
{ type: forms.FormBuilder },
|
|
5677
5768
|
{ type: ApplicationsFlowService }
|
|
5678
5769
|
]; };
|
|
@@ -5680,7 +5771,8 @@
|
|
|
5680
5771
|
BuildPipeline: [{ type: i0.Input, args: ['build-pipeline',] }],
|
|
5681
5772
|
DevOpsActionLookup: [{ type: i0.Input, args: ['devops-action-lookup',] }],
|
|
5682
5773
|
Disabled: [{ type: i0.Input, args: ['disabled',] }],
|
|
5683
|
-
Environment: [{ type: i0.Input, args: ['environment',] }]
|
|
5774
|
+
Environment: [{ type: i0.Input, args: ['environment',] }],
|
|
5775
|
+
EnvironmentLookup: [{ type: i0.Input, args: ['environment-lookup',] }]
|
|
5684
5776
|
};
|
|
5685
5777
|
|
|
5686
5778
|
var DevopsSourceControlFormComponent = /** @class */ (function () {
|
|
@@ -5905,23 +5997,23 @@
|
|
|
5905
5997
|
// EnterpriseDataTokens: {},
|
|
5906
5998
|
// };
|
|
5907
5999
|
// let artifactLookup: string;
|
|
5908
|
-
//
|
|
5909
|
-
//
|
|
5910
|
-
//
|
|
5911
|
-
//
|
|
5912
|
-
//
|
|
5913
|
-
// if (!this.ArtifactLookup) {
|
|
5914
|
-
//
|
|
5915
|
-
//
|
|
5916
|
-
//
|
|
5917
|
-
//
|
|
5918
|
-
//
|
|
5919
|
-
//
|
|
5920
|
-
//
|
|
5921
|
-
//
|
|
5922
|
-
// } else {
|
|
5923
|
-
//
|
|
5924
|
-
// }
|
|
6000
|
+
// let artifact: EaCArtifact = {
|
|
6001
|
+
// ...this.Artifact,
|
|
6002
|
+
// ...this.HostingDetailsFormControls
|
|
6003
|
+
// .SelectedHostingOptionInputControlValues,
|
|
6004
|
+
// };
|
|
6005
|
+
// // if (!this.ArtifactLookup) {
|
|
6006
|
+
// // artifactLookup = Guid.CreateRaw();
|
|
6007
|
+
// // artifact = {
|
|
6008
|
+
// // ...artifact,
|
|
6009
|
+
// // Type: this.HostingDetailsFormControls.SelectedHostingOption
|
|
6010
|
+
// // .ArtifactType,
|
|
6011
|
+
// // Name: this.HostingDetailsFormControls.SelectedHostingOption.Name,
|
|
6012
|
+
// // NPMRegistry: 'https://registry.npmjs.org/',
|
|
6013
|
+
// // };
|
|
6014
|
+
// // } else {
|
|
6015
|
+
// // artifactLookup = this.ArtifactLookup;
|
|
6016
|
+
// // }
|
|
5925
6017
|
// saveEnvReq.Environment.Artifacts[artifactLookup] = artifact;
|
|
5926
6018
|
// let devOpsActionLookup: string;
|
|
5927
6019
|
// if (!this.DevOpsActionLookup) {
|
|
@@ -6176,7 +6268,7 @@
|
|
|
6176
6268
|
BuildPipelineDialogComponent.decorators = [
|
|
6177
6269
|
{ type: i0.Component, args: [{
|
|
6178
6270
|
selector: 'lcu-build-pipeline-dialog',
|
|
6179
|
-
template: "<lcu-build-pipeline-form\n[build-pipeline]=\"data.buildPipeline\"\n[devops-action-lookup]=\"data.devopsActionLookup\"\n[environment]=\"data.environment\"\n>\n\n</lcu-build-pipeline-form>\n",
|
|
6271
|
+
template: "<lcu-build-pipeline-form\n[build-pipeline]=\"data.buildPipeline\"\n[devops-action-lookup]=\"data.devopsActionLookup\"\n[environment]=\"data.environment\"\n[environment-lookup]=\"data.environmentLookup\"\n>\n\n</lcu-build-pipeline-form>\n",
|
|
6180
6272
|
styles: [""]
|
|
6181
6273
|
},] }
|
|
6182
6274
|
];
|