@lowcodeunit/applications-flow-common 1.33.103-lets-get-social-ish → 1.33.107-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 +330 -185
- package/bundles/lowcodeunit-applications-flow-common.umd.js.map +1 -1
- package/bundles/lowcodeunit-applications-flow-common.umd.min.js +1 -1
- package/bundles/lowcodeunit-applications-flow-common.umd.min.js.map +1 -1
- package/esm2015/lib/applications-flow.module.js +8 -4
- package/esm2015/lib/controls/build-pipeline-form/build-pipeline-form.component.js +10 -21
- package/esm2015/lib/controls/devops-source-control-form/devops-source-control-form.component.js +82 -84
- package/esm2015/lib/controls/edit-application-form/edit-application-form.component.js +60 -0
- package/esm2015/lib/controls/processor-details-form/processor-details-form.component.js +36 -8
- package/esm2015/lib/controls/security-toggle/security-toggle.component.js +11 -4
- package/esm2015/lib/controls/source-control-form/source-control-form.component.js +5 -4
- package/esm2015/lib/dialogs/source-control-dialog/source-control-dialog.component.js +2 -2
- package/esm2015/lib/services/eac.service.js +3 -2
- package/esm2015/lowcodeunit-applications-flow-common.js +2 -1
- package/fesm2015/lowcodeunit-applications-flow-common.js +204 -118
- package/fesm2015/lowcodeunit-applications-flow-common.js.map +1 -1
- package/lib/applications-flow.module.d.ts.map +1 -1
- package/lib/controls/build-pipeline-form/build-pipeline-form.component.d.ts.map +1 -1
- package/lib/controls/devops-source-control-form/devops-source-control-form.component.d.ts +14 -8
- package/lib/controls/devops-source-control-form/devops-source-control-form.component.d.ts.map +1 -1
- package/lib/controls/edit-application-form/edit-application-form.component.d.ts +17 -0
- package/lib/controls/edit-application-form/edit-application-form.component.d.ts.map +1 -0
- package/lib/controls/processor-details-form/processor-details-form.component.d.ts +12 -4
- package/lib/controls/processor-details-form/processor-details-form.component.d.ts.map +1 -1
- package/lib/controls/security-toggle/security-toggle.component.d.ts +3 -1
- package/lib/controls/security-toggle/security-toggle.component.d.ts.map +1 -1
- package/lib/controls/source-control-form/source-control-form.component.d.ts +2 -3
- package/lib/controls/source-control-form/source-control-form.component.d.ts.map +1 -1
- package/lib/dialogs/source-control-dialog/source-control-dialog.component.d.ts +1 -0
- package/lib/dialogs/source-control-dialog/source-control-dialog.component.d.ts.map +1 -1
- package/lowcodeunit-applications-flow-common.d.ts +1 -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
|
@@ -871,9 +871,10 @@ class EaCService {
|
|
|
871
871
|
});
|
|
872
872
|
}
|
|
873
873
|
handleSaveEnvironment(req) {
|
|
874
|
+
var _a, _b;
|
|
874
875
|
return __awaiter(this, void 0, void 0, function* () {
|
|
875
876
|
const saveEaC = {
|
|
876
|
-
EnterpriseLookup: this.State.EaC.EnterpriseLookup,
|
|
877
|
+
EnterpriseLookup: (_b = (_a = this.State) === null || _a === void 0 ? void 0 : _a.EaC) === null || _b === void 0 ? void 0 : _b.EnterpriseLookup,
|
|
877
878
|
DataTokens: {},
|
|
878
879
|
Environments: {},
|
|
879
880
|
};
|
|
@@ -3845,17 +3846,23 @@ CardCarouselComponent.propDecorators = {
|
|
|
3845
3846
|
class SecurityToggleComponent {
|
|
3846
3847
|
constructor(formBldr) {
|
|
3847
3848
|
this.formBldr = formBldr;
|
|
3849
|
+
this.SaveFormEvent = new EventEmitter;
|
|
3848
3850
|
}
|
|
3849
3851
|
get IsPrivateFormControl() {
|
|
3850
3852
|
var _a;
|
|
3851
3853
|
return (_a = this.SecurityFormGroup) === null || _a === void 0 ? void 0 : _a.controls.isPrivate;
|
|
3852
3854
|
}
|
|
3855
|
+
get IsTriggerSignInFormControl() {
|
|
3856
|
+
var _a;
|
|
3857
|
+
return (_a = this.SecurityFormGroup) === null || _a === void 0 ? void 0 : _a.controls.isTriggerSignIn;
|
|
3858
|
+
}
|
|
3853
3859
|
ngOnInit() {
|
|
3854
3860
|
this.setupSecurityFormGroup();
|
|
3855
3861
|
}
|
|
3856
3862
|
SecuritySubmit() {
|
|
3857
3863
|
//save the security settings
|
|
3858
|
-
console.log("submitting values: ", this.SecurityFormGroup.value);
|
|
3864
|
+
console.log("submitting security values: ", this.SecurityFormGroup.value);
|
|
3865
|
+
this.SaveFormEvent.emit(this.SecurityFormGroup.value);
|
|
3859
3866
|
}
|
|
3860
3867
|
setupSecurityFormGroup() {
|
|
3861
3868
|
var _a, _b;
|
|
@@ -3880,7 +3887,8 @@ SecurityToggleComponent.ctorParameters = () => [
|
|
|
3880
3887
|
{ type: FormBuilder }
|
|
3881
3888
|
];
|
|
3882
3889
|
SecurityToggleComponent.propDecorators = {
|
|
3883
|
-
EditingApplication: [{ type: Input, args: ['editing-application',] }]
|
|
3890
|
+
EditingApplication: [{ type: Input, args: ['editing-application',] }],
|
|
3891
|
+
SaveFormEvent: [{ type: Output, args: ['save-form-event',] }]
|
|
3884
3892
|
};
|
|
3885
3893
|
|
|
3886
3894
|
class ProcessorDetailsFormComponent {
|
|
@@ -3888,6 +3896,11 @@ class ProcessorDetailsFormComponent {
|
|
|
3888
3896
|
this.formBldr = formBldr;
|
|
3889
3897
|
this.eacSvc = eacSvc;
|
|
3890
3898
|
this.redirectTooltip = '';
|
|
3899
|
+
this.SaveFormEvent = new EventEmitter;
|
|
3900
|
+
}
|
|
3901
|
+
get APIRootFormControl() {
|
|
3902
|
+
var _a;
|
|
3903
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.apiRoot;
|
|
3891
3904
|
}
|
|
3892
3905
|
get BuildFormControl() {
|
|
3893
3906
|
var _a;
|
|
@@ -3897,6 +3910,10 @@ class ProcessorDetailsFormComponent {
|
|
|
3897
3910
|
var _a;
|
|
3898
3911
|
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.clientId;
|
|
3899
3912
|
}
|
|
3913
|
+
get ClientSecretFormControl() {
|
|
3914
|
+
var _a;
|
|
3915
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.clientSecret;
|
|
3916
|
+
}
|
|
3900
3917
|
get DefaultFileFormControl() {
|
|
3901
3918
|
var _a;
|
|
3902
3919
|
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.defaultFile;
|
|
@@ -3912,9 +3929,21 @@ class ProcessorDetailsFormComponent {
|
|
|
3912
3929
|
var _a;
|
|
3913
3930
|
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.inboundPath;
|
|
3914
3931
|
}
|
|
3915
|
-
get
|
|
3932
|
+
get MethodsFormControl() {
|
|
3916
3933
|
var _a;
|
|
3917
|
-
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.
|
|
3934
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.methods;
|
|
3935
|
+
}
|
|
3936
|
+
get PackageFormControl() {
|
|
3937
|
+
var _a;
|
|
3938
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.package;
|
|
3939
|
+
}
|
|
3940
|
+
get PermanentFormControl() {
|
|
3941
|
+
var _a;
|
|
3942
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.permanent;
|
|
3943
|
+
}
|
|
3944
|
+
get PreserveMethodFormControl() {
|
|
3945
|
+
var _a;
|
|
3946
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.preserveMethod;
|
|
3918
3947
|
}
|
|
3919
3948
|
get RedirectFormControl() {
|
|
3920
3949
|
var _a;
|
|
@@ -3932,13 +3961,17 @@ class ProcessorDetailsFormComponent {
|
|
|
3932
3961
|
var _a;
|
|
3933
3962
|
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.spaRoot;
|
|
3934
3963
|
}
|
|
3935
|
-
get
|
|
3964
|
+
get TokenLookupFormControl() {
|
|
3936
3965
|
var _a;
|
|
3937
|
-
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.
|
|
3966
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.tokenLookup;
|
|
3938
3967
|
}
|
|
3939
|
-
get
|
|
3968
|
+
get VersionFormControl() {
|
|
3940
3969
|
var _a;
|
|
3941
|
-
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.
|
|
3970
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.version;
|
|
3971
|
+
}
|
|
3972
|
+
get ZipFileFormControl() {
|
|
3973
|
+
var _a;
|
|
3974
|
+
return (_a = this.ProcessorDetailsFormGroup) === null || _a === void 0 ? void 0 : _a.controls.zipFile;
|
|
3942
3975
|
}
|
|
3943
3976
|
ngOnInit() {
|
|
3944
3977
|
if (!this.EditingApplication) {
|
|
@@ -3973,6 +4006,7 @@ class ProcessorDetailsFormComponent {
|
|
|
3973
4006
|
}
|
|
3974
4007
|
SubmitProcessorDetails() {
|
|
3975
4008
|
console.log("submitting proc details: ", this.ProcessorDetailsFormGroup.value);
|
|
4009
|
+
this.SaveFormEvent.emit(this.ProcessorDetailsFormGroup.value);
|
|
3976
4010
|
}
|
|
3977
4011
|
ProcessorTypeChanged(event) {
|
|
3978
4012
|
this.ProcessorType = event.value;
|
|
@@ -4155,12 +4189,15 @@ ProcessorDetailsFormComponent.ctorParameters = () => [
|
|
|
4155
4189
|
ProcessorDetailsFormComponent.propDecorators = {
|
|
4156
4190
|
EditingApplication: [{ type: Input, args: ['editing-application',] }],
|
|
4157
4191
|
EditingApplicationLookup: [{ type: Input, args: ['editing-application-lookup',] }],
|
|
4192
|
+
ProjectLookup: [{ type: Input, args: ['project-lookup',] }],
|
|
4193
|
+
SaveFormEvent: [{ type: Output, args: ['save-form-event',] }],
|
|
4158
4194
|
SourceControlFormControls: [{ type: ViewChild, args: [SourceControlFormControlsComponent,] }]
|
|
4159
4195
|
};
|
|
4160
4196
|
|
|
4161
4197
|
class SourceControlFormComponent {
|
|
4162
4198
|
constructor(formBldr) {
|
|
4163
4199
|
this.formBldr = formBldr;
|
|
4200
|
+
this.SaveFormEvent = new EventEmitter;
|
|
4164
4201
|
}
|
|
4165
4202
|
get HasBuildFormControl() {
|
|
4166
4203
|
var _a;
|
|
@@ -4185,6 +4222,7 @@ class SourceControlFormComponent {
|
|
|
4185
4222
|
}
|
|
4186
4223
|
SubmitSourceControl() {
|
|
4187
4224
|
console.log("submitting source control: ", this.SourceControlFormGroup.value);
|
|
4225
|
+
this.SaveFormEvent.emit(this.SourceControlFormGroup.value);
|
|
4188
4226
|
}
|
|
4189
4227
|
//HELPER
|
|
4190
4228
|
setupSourceControlForm() {
|
|
@@ -4212,7 +4250,7 @@ SourceControlFormComponent.ctorParameters = () => [
|
|
|
4212
4250
|
SourceControlFormComponent.propDecorators = {
|
|
4213
4251
|
EditingApplication: [{ type: Input, args: ['editing-application',] }],
|
|
4214
4252
|
Environment: [{ type: Input, args: ['environment',] }],
|
|
4215
|
-
|
|
4253
|
+
SaveFormEvent: [{ type: Output, args: ['save-form-event',] }]
|
|
4216
4254
|
};
|
|
4217
4255
|
|
|
4218
4256
|
class BuildPipelineFormComponent {
|
|
@@ -4229,10 +4267,10 @@ class BuildPipelineFormComponent {
|
|
|
4229
4267
|
// @Input('repository')
|
|
4230
4268
|
// public Repository: string;
|
|
4231
4269
|
get Artifact() {
|
|
4232
|
-
var _a, _b
|
|
4233
|
-
console.log("ARTIFACT: ",
|
|
4234
|
-
return ((
|
|
4235
|
-
? ((
|
|
4270
|
+
var _a, _b;
|
|
4271
|
+
// console.log("ARTIFACT: ", this.Environment?.Artifacts[this.ArtifactLookup]);
|
|
4272
|
+
return ((_a = this.Environment) === null || _a === void 0 ? void 0 : _a.Artifacts) && this.ArtifactLookup
|
|
4273
|
+
? ((_b = this.Environment) === null || _b === void 0 ? void 0 : _b.Artifacts[this.ArtifactLookup]) || {}
|
|
4236
4274
|
: {};
|
|
4237
4275
|
}
|
|
4238
4276
|
get ArtifactLookup() {
|
|
@@ -4304,6 +4342,7 @@ class BuildPipelineFormComponent {
|
|
|
4304
4342
|
}
|
|
4305
4343
|
SubmitBuildPipeline() {
|
|
4306
4344
|
console.log("submitting build pipeline: ", this.BuildPipelineFormGroup.value);
|
|
4345
|
+
this.SaveEnvironment();
|
|
4307
4346
|
}
|
|
4308
4347
|
SaveEnvironment() {
|
|
4309
4348
|
var _a;
|
|
@@ -4348,22 +4387,10 @@ class BuildPipelineFormComponent {
|
|
|
4348
4387
|
const doa = Object.assign(Object.assign({}, this.DevOpsAction), { Name: this.DevOpsActionNameFormControl.value });
|
|
4349
4388
|
saveEnvReq.Environment.DevOpsActions[devOpsActionLookup] = doa;
|
|
4350
4389
|
}
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
// };
|
|
4356
|
-
// source = {
|
|
4357
|
-
// ...source,
|
|
4358
|
-
// Type: 'GitHub',
|
|
4359
|
-
// Name: this.EditingSourceControlLookup,
|
|
4360
|
-
// DevOpsActionTriggerLookups: [devOpsActionLookup],
|
|
4361
|
-
// Organization:
|
|
4362
|
-
// this.SourceControlFormControls.OrganizationFormControl.value,
|
|
4363
|
-
// Repository: this.SourceControlFormControls.RepositoryFormControl.value,
|
|
4364
|
-
// };
|
|
4365
|
-
// const scLookup = `github://${source.Organization}/${source.Repository}`;
|
|
4366
|
-
// saveEnvReq.Environment.Sources[scLookup] = source;
|
|
4390
|
+
let source = Object.assign(Object.assign({}, this.EditingSourceControl), { Branches: this.EditingSourceControl.SelectedBranches, MainBranch: this.EditingSourceControl.MainBranchFormControl.value });
|
|
4391
|
+
source = Object.assign(Object.assign({}, source), { Type: 'GitHub', Name: this.EditingSourceControlLookup, DevOpsActionTriggerLookups: [devOpsActionLookup], Organization: this.EditingSourceControl.OrganizationFormControl.value, Repository: this.EditingSourceControl.RepositoryFormControl.value });
|
|
4392
|
+
const scLookup = `github://${source.Organization}/${source.Repository}`;
|
|
4393
|
+
saveEnvReq.Environment.Sources[scLookup] = source;
|
|
4367
4394
|
this.eacSvc.SaveEnvironmentAsCode(saveEnvReq);
|
|
4368
4395
|
}
|
|
4369
4396
|
// Helpers
|
|
@@ -4460,6 +4487,21 @@ class DevopsSourceControlFormComponent {
|
|
|
4460
4487
|
this.UseBuildPath = false;
|
|
4461
4488
|
}
|
|
4462
4489
|
// Properties
|
|
4490
|
+
get ArtifactLookups() {
|
|
4491
|
+
var _a;
|
|
4492
|
+
return (_a = this.DevOpsAction) === null || _a === void 0 ? void 0 : _a.ArtifactLookups;
|
|
4493
|
+
}
|
|
4494
|
+
get ArtifactLookup() {
|
|
4495
|
+
var _a, _b;
|
|
4496
|
+
const artLookup = ((_a = this.DevOpsAction) === null || _a === void 0 ? void 0 : _a.ArtifactLookups) ? (_b = this.DevOpsAction) === null || _b === void 0 ? void 0 : _b.ArtifactLookups[0] : null;
|
|
4497
|
+
return artLookup;
|
|
4498
|
+
}
|
|
4499
|
+
get Artifact() {
|
|
4500
|
+
var _a, _b;
|
|
4501
|
+
return ((_a = this.Environment) === null || _a === void 0 ? void 0 : _a.Artifacts) && this.ArtifactLookup
|
|
4502
|
+
? ((_b = this.Environment) === null || _b === void 0 ? void 0 : _b.Artifacts[this.ArtifactLookup]) || {}
|
|
4503
|
+
: {};
|
|
4504
|
+
}
|
|
4463
4505
|
get BranchesFormControl() {
|
|
4464
4506
|
return this.DevOpsSourceControlFormGroup.get(this.SourceControlRoot + 'branches');
|
|
4465
4507
|
}
|
|
@@ -4467,8 +4509,14 @@ class DevopsSourceControlFormComponent {
|
|
|
4467
4509
|
return this.DevOpsSourceControlFormGroup.get(this.SourceControlRoot + 'buildPath');
|
|
4468
4510
|
}
|
|
4469
4511
|
get DevOpsActionLookups() {
|
|
4512
|
+
// console.log(this.DevOpsActions);
|
|
4470
4513
|
return Object.keys(this.DevOpsActions || {});
|
|
4471
4514
|
}
|
|
4515
|
+
get DevOpsAction() {
|
|
4516
|
+
return this.Environment.DevOpsActions && this.DevOpsActionLookup
|
|
4517
|
+
? this.Environment.DevOpsActions[this.DevOpsActionLookup] || {}
|
|
4518
|
+
: {};
|
|
4519
|
+
}
|
|
4472
4520
|
get DevOpsActionLookup() {
|
|
4473
4521
|
var _a, _b, _c;
|
|
4474
4522
|
if (!!((_a = this.DevOpsActionLookupFormControl) === null || _a === void 0 ? void 0 : _a.value)) {
|
|
@@ -4608,90 +4656,66 @@ class DevopsSourceControlFormComponent {
|
|
|
4608
4656
|
}
|
|
4609
4657
|
SubmitSourceControl() {
|
|
4610
4658
|
console.log("source control submitted: ", this.DevOpsSourceControlFormGroup.value);
|
|
4659
|
+
this.SaveSourceControl();
|
|
4660
|
+
}
|
|
4661
|
+
SaveSourceControl() {
|
|
4662
|
+
const saveEnvReq = {
|
|
4663
|
+
Environment: Object.assign(Object.assign({}, this.Environment), { Artifacts: this.Environment.Artifacts || {}, DevOpsActions: this.Environment.DevOpsActions || {}, Secrets: this.Environment.Secrets || {}, Sources: this.Environment.Sources || {} }),
|
|
4664
|
+
EnvironmentLookup: this.EnvironmentLookup,
|
|
4665
|
+
EnterpriseDataTokens: {},
|
|
4666
|
+
};
|
|
4667
|
+
let artifactLookup;
|
|
4668
|
+
// let artifact: EaCArtifact = {
|
|
4669
|
+
// ...this.Artifact,
|
|
4670
|
+
// ...this.HostingDetailsFormControls
|
|
4671
|
+
// .SelectedHostingOptionInputControlValues,
|
|
4672
|
+
// };
|
|
4673
|
+
let artifact = this.Artifact;
|
|
4674
|
+
if (!this.ArtifactLookup) {
|
|
4675
|
+
artifactLookup = Guid.CreateRaw();
|
|
4676
|
+
artifact = Object.assign(Object.assign({}, artifact), {
|
|
4677
|
+
// Type: this.HostingDetailsFormControls.SelectedHostingOption
|
|
4678
|
+
// .ArtifactType,
|
|
4679
|
+
// Name: this.HostingDetailsFormControls.SelectedHostingOption.Name,
|
|
4680
|
+
NPMRegistry: 'https://registry.npmjs.org/' });
|
|
4681
|
+
}
|
|
4682
|
+
else {
|
|
4683
|
+
artifactLookup = this.ArtifactLookup;
|
|
4684
|
+
}
|
|
4685
|
+
saveEnvReq.Environment.Artifacts[artifactLookup] = artifact;
|
|
4686
|
+
let devOpsActionLookup;
|
|
4687
|
+
if (!this.DevOpsActionLookup) {
|
|
4688
|
+
devOpsActionLookup = Guid.CreateRaw();
|
|
4689
|
+
const doa = Object.assign(Object.assign({}, this.DevOpsAction), { ArtifactLookups: [artifactLookup] });
|
|
4690
|
+
// if (this.HostingDetailsFormControls.NPMTokenFormControl?.value) {
|
|
4691
|
+
// const secretLookup = 'npm-access-token';
|
|
4692
|
+
// doa.SecretLookups = [secretLookup];
|
|
4693
|
+
// saveEnvReq.Environment.Secrets[secretLookup] = {
|
|
4694
|
+
// Name: 'NPM Access Token',
|
|
4695
|
+
// DataTokenLookup: secretLookup,
|
|
4696
|
+
// KnownAs: 'NPM_TOKEN',
|
|
4697
|
+
// };
|
|
4698
|
+
// saveEnvReq.EnterpriseDataTokens[secretLookup] = {
|
|
4699
|
+
// Name: saveEnvReq.Environment.Secrets[secretLookup].Name,
|
|
4700
|
+
// Description: saveEnvReq.Environment.Secrets[secretLookup].Name,
|
|
4701
|
+
// Value: this.NPMTokenFormControl.value,
|
|
4702
|
+
// };
|
|
4703
|
+
// }
|
|
4704
|
+
// saveEnvReq.Environment.DevOpsActions[devOpsActionLookup] = doa;
|
|
4705
|
+
saveEnvReq.Environment.DevOpsActions[devOpsActionLookup] = this.DevOpsAction;
|
|
4706
|
+
}
|
|
4707
|
+
else {
|
|
4708
|
+
devOpsActionLookup = this.DevOpsActionLookupFormControl.value;
|
|
4709
|
+
const doa = Object.assign({}, this.DevOpsAction);
|
|
4710
|
+
// saveEnvReq.Environment.DevOpsActions[devOpsActionLookup] = doa;
|
|
4711
|
+
saveEnvReq.Environment.DevOpsActions[devOpsActionLookup] = this.DevOpsAction;
|
|
4712
|
+
}
|
|
4713
|
+
let source = Object.assign(Object.assign({}, this.EditingSourceControl), { Branches: this.SelectedBranches, MainBranch: this.MainBranchFormControl.value });
|
|
4714
|
+
source = Object.assign(Object.assign({}, source), { Type: 'GitHub', Name: this.EditingSourceControlLookup, DevOpsActionTriggerLookups: [devOpsActionLookup], Organization: this.OrganizationFormControl.value, Repository: this.RepositoryFormControl.value });
|
|
4715
|
+
const scLookup = `github://${source.Organization}/${source.Repository}`;
|
|
4716
|
+
saveEnvReq.Environment.Sources[scLookup] = source;
|
|
4717
|
+
this.eacSvc.SaveEnvironmentAsCode(saveEnvReq);
|
|
4611
4718
|
}
|
|
4612
|
-
// public SaveSourceControl(): void {
|
|
4613
|
-
// const saveEnvReq: SaveEnvironmentAsCodeEventRequest = {
|
|
4614
|
-
// Environment: {
|
|
4615
|
-
// ...this.Environment,
|
|
4616
|
-
// Artifacts: this.Environment.Artifacts || {},
|
|
4617
|
-
// DevOpsActions: this.Environment.DevOpsActions || {},
|
|
4618
|
-
// Secrets: this.Environment.Secrets || {},
|
|
4619
|
-
// Sources: this.Environment.Sources || {},
|
|
4620
|
-
// },
|
|
4621
|
-
// EnvironmentLookup: this.EnvironmentLookup,
|
|
4622
|
-
// EnterpriseDataTokens: {},
|
|
4623
|
-
// };
|
|
4624
|
-
// let artifactLookup: string;
|
|
4625
|
-
// let artifact: EaCArtifact = {
|
|
4626
|
-
// ...this.Artifact,
|
|
4627
|
-
// ...this.HostingDetailsFormControls
|
|
4628
|
-
// .SelectedHostingOptionInputControlValues,
|
|
4629
|
-
// };
|
|
4630
|
-
// // if (!this.ArtifactLookup) {
|
|
4631
|
-
// // artifactLookup = Guid.CreateRaw();
|
|
4632
|
-
// // artifact = {
|
|
4633
|
-
// // ...artifact,
|
|
4634
|
-
// // Type: this.HostingDetailsFormControls.SelectedHostingOption
|
|
4635
|
-
// // .ArtifactType,
|
|
4636
|
-
// // Name: this.HostingDetailsFormControls.SelectedHostingOption.Name,
|
|
4637
|
-
// // NPMRegistry: 'https://registry.npmjs.org/',
|
|
4638
|
-
// // };
|
|
4639
|
-
// // } else {
|
|
4640
|
-
// // artifactLookup = this.ArtifactLookup;
|
|
4641
|
-
// // }
|
|
4642
|
-
// saveEnvReq.Environment.Artifacts[artifactLookup] = artifact;
|
|
4643
|
-
// let devOpsActionLookup: string;
|
|
4644
|
-
// if (!this.DevOpsActionLookup) {
|
|
4645
|
-
// devOpsActionLookup = Guid.CreateRaw();
|
|
4646
|
-
// // const doa: EaCDevOpsAction = {
|
|
4647
|
-
// // ...this.DevOpsAction,
|
|
4648
|
-
// // ArtifactLookups: [artifactLookup],
|
|
4649
|
-
// // Name: this.HostingDetailsFormControls.DevOpsActionNameFormControl.value,
|
|
4650
|
-
// // Path: this.HostingDetailsFormControls.SelectedHostingOption.Path,
|
|
4651
|
-
// // Templates:
|
|
4652
|
-
// // this.HostingDetailsFormControls.SelectedHostingOption.Templates,
|
|
4653
|
-
// // };
|
|
4654
|
-
// if (this.HostingDetailsFormControls.NPMTokenFormControl?.value) {
|
|
4655
|
-
// const secretLookup = 'npm-access-token';
|
|
4656
|
-
// doa.SecretLookups = [secretLookup];
|
|
4657
|
-
// saveEnvReq.Environment.Secrets[secretLookup] = {
|
|
4658
|
-
// Name: 'NPM Access Token',
|
|
4659
|
-
// DataTokenLookup: secretLookup,
|
|
4660
|
-
// KnownAs: 'NPM_TOKEN',
|
|
4661
|
-
// };
|
|
4662
|
-
// saveEnvReq.EnterpriseDataTokens[secretLookup] = {
|
|
4663
|
-
// Name: saveEnvReq.Environment.Secrets[secretLookup].Name,
|
|
4664
|
-
// Description: saveEnvReq.Environment.Secrets[secretLookup].Name,
|
|
4665
|
-
// Value: this.NPMTokenFormControl.value,
|
|
4666
|
-
// };
|
|
4667
|
-
// }
|
|
4668
|
-
// saveEnvReq.Environment.DevOpsActions[devOpsActionLookup] = doa;
|
|
4669
|
-
// } else {
|
|
4670
|
-
// devOpsActionLookup = this.DevOpsActionLookupFormControl.value;
|
|
4671
|
-
// const doa: EaCDevOpsAction = {
|
|
4672
|
-
// ...this.DevOpsAction,
|
|
4673
|
-
// Name: this.HostingDetailsFormControls.DevOpsActionNameFormControl.value,
|
|
4674
|
-
// };
|
|
4675
|
-
// saveEnvReq.Environment.DevOpsActions[devOpsActionLookup] = doa;
|
|
4676
|
-
// }
|
|
4677
|
-
// let source: EaCSourceControl = {
|
|
4678
|
-
// ...this.EditingSourceControl,
|
|
4679
|
-
// Branches: this.SelectedBranches,
|
|
4680
|
-
// MainBranch: this.MainBranchFormControl.value,
|
|
4681
|
-
// };
|
|
4682
|
-
// source = {
|
|
4683
|
-
// ...source,
|
|
4684
|
-
// Type: 'GitHub',
|
|
4685
|
-
// Name: this.EditingSourceControlLookup,
|
|
4686
|
-
// DevOpsActionTriggerLookups: [devOpsActionLookup],
|
|
4687
|
-
// Organization:
|
|
4688
|
-
// this.OrganizationFormControl.value,
|
|
4689
|
-
// Repository: this.RepositoryFormControl.value,
|
|
4690
|
-
// };
|
|
4691
|
-
// const scLookup = `github://${source.Organization}/${source.Repository}`;
|
|
4692
|
-
// saveEnvReq.Environment.Sources[scLookup] = source;
|
|
4693
|
-
// this.eacSvc.SaveEnvironmentAsCode(saveEnvReq);
|
|
4694
|
-
// }
|
|
4695
4719
|
// Helpers
|
|
4696
4720
|
addBranchOption(value) {
|
|
4697
4721
|
value = (value || '').trim();
|
|
@@ -4849,6 +4873,7 @@ DevopsSourceControlFormComponent.ctorParameters = () => [
|
|
|
4849
4873
|
DevopsSourceControlFormComponent.propDecorators = {
|
|
4850
4874
|
EditingSourceControlLookup: [{ type: Input, args: ['editing-source-control-lookup',] }],
|
|
4851
4875
|
Environment: [{ type: Input, args: ['environment',] }],
|
|
4876
|
+
EnvironmentLookup: [{ type: Input, args: ['environment-lookup',] }],
|
|
4852
4877
|
BranchesInput: [{ type: ViewChild, args: ['branches',] }]
|
|
4853
4878
|
};
|
|
4854
4879
|
|
|
@@ -4863,7 +4888,7 @@ class SourceControlDialogComponent {
|
|
|
4863
4888
|
SourceControlDialogComponent.decorators = [
|
|
4864
4889
|
{ type: Component, args: [{
|
|
4865
4890
|
selector: 'lcu-source-control-dialog',
|
|
4866
|
-
template: "\n<div fxLayoutAlign=\"center center\">\n <lcu-devops-source-control-form\n [environment]=\"data.environment\"\n [editing-source-control-lookup]=\"data.scLookup\">\n </lcu-devops-source-control-form>\n</div>",
|
|
4891
|
+
template: "\n<div fxLayoutAlign=\"center center\">\n <lcu-devops-source-control-form\n [environment]=\"data.environment\"\n [environment-lookup]=\"data.environmentLookup\"\n [editing-source-control-lookup]=\"data.scLookup\">\n </lcu-devops-source-control-form>\n</div>",
|
|
4867
4892
|
styles: [""]
|
|
4868
4893
|
},] }
|
|
4869
4894
|
];
|
|
@@ -4892,6 +4917,64 @@ BuildPipelineDialogComponent.ctorParameters = () => [
|
|
|
4892
4917
|
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
4893
4918
|
];
|
|
4894
4919
|
|
|
4920
|
+
class EditApplicationFormComponent {
|
|
4921
|
+
constructor(formBldr) {
|
|
4922
|
+
this.formBldr = formBldr;
|
|
4923
|
+
this.SaveFormEvent = new EventEmitter;
|
|
4924
|
+
}
|
|
4925
|
+
get DescriptionFormControl() {
|
|
4926
|
+
var _a;
|
|
4927
|
+
return (_a = this.ApplicationFormGroup) === null || _a === void 0 ? void 0 : _a.controls.description;
|
|
4928
|
+
}
|
|
4929
|
+
get NameFormControl() {
|
|
4930
|
+
var _a;
|
|
4931
|
+
return (_a = this.ApplicationFormGroup) === null || _a === void 0 ? void 0 : _a.controls.name;
|
|
4932
|
+
}
|
|
4933
|
+
get RouteFormControl() {
|
|
4934
|
+
var _a;
|
|
4935
|
+
return (_a = this.ApplicationFormGroup) === null || _a === void 0 ? void 0 : _a.controls.route;
|
|
4936
|
+
}
|
|
4937
|
+
ngOnInit() {
|
|
4938
|
+
this.setupApplicationForm();
|
|
4939
|
+
}
|
|
4940
|
+
SubmitApplicationControl() {
|
|
4941
|
+
console.log("application form: ", this.ApplicationFormGroup.value);
|
|
4942
|
+
this.SaveFormEvent.emit(this.ApplicationFormGroup.value);
|
|
4943
|
+
}
|
|
4944
|
+
//HELPERS
|
|
4945
|
+
setupApplicationForm() {
|
|
4946
|
+
var _a, _b, _c;
|
|
4947
|
+
if (this.EditingApplication != null) {
|
|
4948
|
+
this.ApplicationFormGroup = this.formBldr.group({
|
|
4949
|
+
name: [(_a = this.EditingApplication.Application) === null || _a === void 0 ? void 0 : _a.Name, Validators.required],
|
|
4950
|
+
description: [
|
|
4951
|
+
(_b = this.EditingApplication.Application) === null || _b === void 0 ? void 0 : _b.Description,
|
|
4952
|
+
Validators.required,
|
|
4953
|
+
],
|
|
4954
|
+
route: [
|
|
4955
|
+
((_c = this.EditingApplication.LookupConfig) === null || _c === void 0 ? void 0 : _c.PathRegex.replace('.*', '')) ||
|
|
4956
|
+
'/',
|
|
4957
|
+
Validators.required,
|
|
4958
|
+
],
|
|
4959
|
+
});
|
|
4960
|
+
}
|
|
4961
|
+
}
|
|
4962
|
+
}
|
|
4963
|
+
EditApplicationFormComponent.decorators = [
|
|
4964
|
+
{ type: Component, args: [{
|
|
4965
|
+
selector: 'lcu-edit-application-form',
|
|
4966
|
+
template: "<form class=\"form-card\" [formGroup]=\"ApplicationFormGroup\" (ngSubmit)=\"SubmitApplicationControl()\" >\n <mat-card class=\"spread flow-card\">\n <mat-card-header>\n <mat-card-title>\n <ng-container *ngIf=\"EditingApplication?.Application\">\n Edit Application:\n {{ EditingApplication.Application?.Name }}\n </ng-container>\n\n <ng-container *ngIf=\"!EditingApplication?.Application\">\n Create an Application\n </ng-container>\n </mat-card-title>\n </mat-card-header>\n\n <mat-card-content>\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Name\"\n formControlName=\"name\"\n required\n />\n </mat-form-field>\n\n <mat-form-field class=\"mat-full-width\">\n <textarea\n matInput\n placeholder=\"Description\"\n formControlName=\"description\"\n rows=\"3\"\n required\n ></textarea>\n </mat-form-field>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Route\"\n formControlName=\"route\"\n required\n />\n </mat-form-field>\n </mat-card-content>\n <mat-card-actions fxLayoutAlign=\"center center\">\n\n <button \n mat-raised-button \n type=\"submit\" \n fxFlex=\"100%\" \n color=\"primary\" \n [disabled]=\"!ApplicationFormGroup.valid || !ApplicationFormGroup.dirty\">\n <mat-icon>save</mat-icon>\n Save\n </button>\n \n </mat-card-actions>\n </mat-card>\n</form>\n",
|
|
4967
|
+
styles: [""]
|
|
4968
|
+
},] }
|
|
4969
|
+
];
|
|
4970
|
+
EditApplicationFormComponent.ctorParameters = () => [
|
|
4971
|
+
{ type: FormBuilder }
|
|
4972
|
+
];
|
|
4973
|
+
EditApplicationFormComponent.propDecorators = {
|
|
4974
|
+
EditingApplication: [{ type: Input, args: ['editing-application',] }],
|
|
4975
|
+
SaveFormEvent: [{ type: Output, args: ['save-form-event',] }]
|
|
4976
|
+
};
|
|
4977
|
+
|
|
4895
4978
|
class ApplicationsFlowModule {
|
|
4896
4979
|
static forRoot() {
|
|
4897
4980
|
return {
|
|
@@ -4948,7 +5031,8 @@ ApplicationsFlowModule.decorators = [
|
|
|
4948
5031
|
BuildPipelineFormComponent,
|
|
4949
5032
|
DevopsSourceControlFormComponent,
|
|
4950
5033
|
SourceControlDialogComponent,
|
|
4951
|
-
BuildPipelineDialogComponent
|
|
5034
|
+
BuildPipelineDialogComponent,
|
|
5035
|
+
EditApplicationFormComponent
|
|
4952
5036
|
],
|
|
4953
5037
|
imports: [
|
|
4954
5038
|
FathymSharedModule,
|
|
@@ -5000,7 +5084,8 @@ ApplicationsFlowModule.decorators = [
|
|
|
5000
5084
|
BuildPipelineFormComponent,
|
|
5001
5085
|
DevopsSourceControlFormComponent,
|
|
5002
5086
|
SourceControlDialogComponent,
|
|
5003
|
-
BuildPipelineDialogComponent
|
|
5087
|
+
BuildPipelineDialogComponent,
|
|
5088
|
+
EditApplicationFormComponent
|
|
5004
5089
|
],
|
|
5005
5090
|
entryComponents: [
|
|
5006
5091
|
ApplicationsFlowProjectsElementComponent,
|
|
@@ -5039,7 +5124,8 @@ ApplicationsFlowModule.decorators = [
|
|
|
5039
5124
|
BuildPipelineFormComponent,
|
|
5040
5125
|
DevopsSourceControlFormComponent,
|
|
5041
5126
|
SourceControlDialogComponent,
|
|
5042
|
-
BuildPipelineDialogComponent
|
|
5127
|
+
BuildPipelineDialogComponent,
|
|
5128
|
+
EditApplicationFormComponent
|
|
5043
5129
|
],
|
|
5044
5130
|
},] }
|
|
5045
5131
|
];
|
|
@@ -5072,5 +5158,5 @@ class FormModel {
|
|
|
5072
5158
|
* Generated bundle index. Do not edit.
|
|
5073
5159
|
*/
|
|
5074
5160
|
|
|
5075
|
-
export { ActionsModel, ApplicationsFlowModule, ApplicationsFlowProjectsContext, ApplicationsFlowProjectsElementComponent, ApplicationsFlowProjectsElementState, ApplicationsFlowService, ApplicationsFlowState, ApplicationsFlowStateContext, BaseFormConfigModel, CardFormConfigModel, CreateProjectWizardComponent, DevSettingsPresetModel, DomainModel, DynamicTabsModel, EaCService, FormActionsModel, FormModel, FormValuesModel, FormsService, GitAuthComponent, GitHubBranch, GitHubOrganization, GitHubRepository, GitHubSetupState, GitHubWorkflowRun, HostingDetailsFormGroupComponent, NPMService, ProjectActionsModel, ProjectHostingDetails, ProjectHostingOption, ProjectHostingOptionInput, ProjectNameComponent, ProjectService, RootDirectoryComponent, SELECTOR_APPLICATIONS_FLOW_PROJECTS_ELEMENT, SaveApplicationAsCodeEventRequest, SaveDFSModifierEventRequest, SaveEnvironmentAsCodeEventRequest, SaveProjectAsCodeEventRequest, SourceControlFormControlsComponent, ThreeColumnComponent, UnpackLowCodeUnitRequest, DynamicTabsComponent as ɵa, HeaderComponent as ɵb, SourceControlFormComponent as ɵba, BuildPipelineFormComponent as ɵbb, DevopsSourceControlFormComponent as ɵbc, SourceControlDialogComponent as ɵbd, BuildPipelineDialogComponent as ɵbe, ProjectTabsComponent as ɵc, GeneralComponent as ɵd, DomainsComponent as ɵe, ProjectItemsComponent as ɵf, BuildsComponent as ɵg, RecentActivitiesComponent as ɵh, FormCardComponent as ɵi, BaseFormComponent as ɵj, BaseFormTestComponent as ɵk, AppsFlowComponent as ɵl, DevOpsComponent as ɵm, DFSModifiersComponent as ɵn, NpmPackageSelectComponent as ɵo, ColumnInfoCardComponent as ɵp, SlottedCardComponent as ɵq, ProjectInfoCardComponent as ɵr, AnalyticsCardComponent as ɵs, FeedCardSmComponent as ɵt, GhControlComponent as ɵu, MainFeedCardComponent as ɵv, TwoColumnHeaderComponent as ɵw, CardCarouselComponent as ɵx, SecurityToggleComponent as ɵy, ProcessorDetailsFormComponent as ɵz };
|
|
5161
|
+
export { ActionsModel, ApplicationsFlowModule, ApplicationsFlowProjectsContext, ApplicationsFlowProjectsElementComponent, ApplicationsFlowProjectsElementState, ApplicationsFlowService, ApplicationsFlowState, ApplicationsFlowStateContext, BaseFormConfigModel, CardFormConfigModel, CreateProjectWizardComponent, DevSettingsPresetModel, DomainModel, DynamicTabsModel, EaCService, FormActionsModel, FormModel, FormValuesModel, FormsService, GitAuthComponent, GitHubBranch, GitHubOrganization, GitHubRepository, GitHubSetupState, GitHubWorkflowRun, HostingDetailsFormGroupComponent, NPMService, ProjectActionsModel, ProjectHostingDetails, ProjectHostingOption, ProjectHostingOptionInput, ProjectNameComponent, ProjectService, RootDirectoryComponent, SELECTOR_APPLICATIONS_FLOW_PROJECTS_ELEMENT, SaveApplicationAsCodeEventRequest, SaveDFSModifierEventRequest, SaveEnvironmentAsCodeEventRequest, SaveProjectAsCodeEventRequest, SourceControlFormControlsComponent, ThreeColumnComponent, UnpackLowCodeUnitRequest, DynamicTabsComponent as ɵa, HeaderComponent as ɵb, SourceControlFormComponent as ɵba, BuildPipelineFormComponent as ɵbb, DevopsSourceControlFormComponent as ɵbc, SourceControlDialogComponent as ɵbd, BuildPipelineDialogComponent as ɵbe, EditApplicationFormComponent as ɵbf, ProjectTabsComponent as ɵc, GeneralComponent as ɵd, DomainsComponent as ɵe, ProjectItemsComponent as ɵf, BuildsComponent as ɵg, RecentActivitiesComponent as ɵh, FormCardComponent as ɵi, BaseFormComponent as ɵj, BaseFormTestComponent as ɵk, AppsFlowComponent as ɵl, DevOpsComponent as ɵm, DFSModifiersComponent as ɵn, NpmPackageSelectComponent as ɵo, ColumnInfoCardComponent as ɵp, SlottedCardComponent as ɵq, ProjectInfoCardComponent as ɵr, AnalyticsCardComponent as ɵs, FeedCardSmComponent as ɵt, GhControlComponent as ɵu, MainFeedCardComponent as ɵv, TwoColumnHeaderComponent as ɵw, CardCarouselComponent as ɵx, SecurityToggleComponent as ɵy, ProcessorDetailsFormComponent as ɵz };
|
|
5076
5162
|
//# sourceMappingURL=lowcodeunit-applications-flow-common.js.map
|