@lowcodeunit/applications-flow-common 1.33.99-lets-get-social-ish → 1.33.100-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 +118 -15
- 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/controls/build-pipeline-form/build-pipeline-form.component.js +105 -15
- package/esm2015/lib/dialogs/build-pipeline-dialog/build-pipeline-dialog.component.js +2 -2
- package/esm2015/lib/elements/projects/controls/hosting-details-form-group/hosting-details-form-group.component.js +2 -1
- package/esm2015/lib/elements/slotted-card/slotted-card.component.js +6 -4
- package/fesm2015/lowcodeunit-applications-flow-common.js +109 -16
- package/fesm2015/lowcodeunit-applications-flow-common.js.map +1 -1
- package/lib/controls/build-pipeline-form/build-pipeline-form.component.d.ts +14 -7
- 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/lib/elements/projects/controls/hosting-details-form-group/hosting-details-form-group.component.d.ts.map +1 -1
- package/lib/elements/slotted-card/slotted-card.component.d.ts.map +1 -1
- package/lowcodeunit-applications-flow-common.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -1775,6 +1775,7 @@
|
|
|
1775
1775
|
HostingDetailsFormGroupComponent.prototype.ngOnChanges = function () { };
|
|
1776
1776
|
HostingDetailsFormGroupComponent.prototype.ngOnInit = function () {
|
|
1777
1777
|
var _a, _b, _c;
|
|
1778
|
+
console.log("made it to hosting details");
|
|
1778
1779
|
this.BuildPipeline =
|
|
1779
1780
|
this.BuildPipeline || ((_a = this.Details) === null || _a === void 0 ? void 0 : _a.HostingOptions)
|
|
1780
1781
|
? (_c = (_b = this.Details) === null || _b === void 0 ? void 0 : _b.HostingOptions[0]) === null || _c === void 0 ? void 0 : _c.Lookup : '';
|
|
@@ -4746,6 +4747,7 @@
|
|
|
4746
4747
|
|
|
4747
4748
|
var SlottedCardComponent = /** @class */ (function () {
|
|
4748
4749
|
function SlottedCardComponent() {
|
|
4750
|
+
this.MainActionClicked = new i0.EventEmitter;
|
|
4749
4751
|
}
|
|
4750
4752
|
SlottedCardComponent.prototype.ngOnInit = function () {
|
|
4751
4753
|
};
|
|
@@ -4757,7 +4759,7 @@
|
|
|
4757
4759
|
SlottedCardComponent.decorators = [
|
|
4758
4760
|
{ type: i0.Component, args: [{
|
|
4759
4761
|
selector: 'lcu-slotted-card',
|
|
4760
|
-
template: "<mat-card class=\"col-info-card\">\n <mat-card-header fxLayoutAlign=\"space-between center\">\n <mat-card-title class=\"card-title\">{{ Title }}</mat-card-title>\n <mat-icon class=\"header-icon\">{{ Icon }}</mat-icon>\n </mat-card-header>\n \n <mat-card-content>\n\n <div class=\"slot-main-container\">\n\n <div class=\"header-description\">{{ MainSlotDescription }}</div>\n\n <div class=\"slot-main\">\n <ng-content></ng-content>\n </div>\n \n </div>\n\n <div *ngIf=\"SecondarySlotDescription\" class=\"slot-secondary-container\">\n\n <div class=\"header-description\">{{ SecondarySlotDescription }}</div>\n\n <div class=\"slot-secondary\">\n <ng-content select=\"[secondary]\"></ng-content>\n </div>\n \n </div>\n \n </mat-card-content>\n\n <mat-card-actions *ngIf=\"ActionText\" fxLayoutAlign=\"center\">\n <a mat-button class=\"slotted-card-action-btn\" [href]=\"ActionPath\">{{ ActionText }}</a>\n </mat-card-actions>\n\n </mat-card>\n\n\n",
|
|
4762
|
+
template: "<mat-card class=\"col-info-card\">\n <mat-card-header fxLayoutAlign=\"space-between center\">\n <mat-card-title class=\"card-title\">{{ Title }}</mat-card-title>\n <mat-icon class=\"header-icon\">{{ Icon }}</mat-icon>\n </mat-card-header>\n \n <mat-card-content>\n\n <div class=\"slot-main-container\">\n\n <div class=\"header-description\">{{ MainSlotDescription }}</div>\n\n <div class=\"slot-main\">\n <ng-content></ng-content>\n </div>\n \n </div>\n\n <div *ngIf=\"SecondarySlotDescription\" class=\"slot-secondary-container\">\n\n <div class=\"header-description\">{{ SecondarySlotDescription }}</div>\n\n <div class=\"slot-secondary\">\n <ng-content select=\"[secondary]\"></ng-content>\n </div>\n \n </div>\n \n </mat-card-content>\n\n <mat-card-actions *ngIf=\"ActionText\" fxLayoutAlign=\"center\">\n <a mat-button *ngIf=\"ActionPath\" class=\"slotted-card-action-btn\" [href]=\"ActionPath\">{{ ActionText }}</a>\n <a mat-button *ngIf=\"!ActionPath\" class=\"slotted-card-action-btn\" (click)=\"MainActionClickEvent()\">{{ ActionText }}</a>\n </mat-card-actions>\n\n </mat-card>\n\n\n",
|
|
4761
4763
|
styles: [".col-info-card{border:2px solid #d3d3d3;margin:20px;padding:0}.header-icon{margin-right:10px}.card-title{font-size:30px;margin-bottom:0}.header-description{background-color:#d3d3d3;margin-left:-2px;padding:10px}mat-card-actions{margin-bottom:0!important;margin-left:-1px!important;margin-right:0!important}.slotted-card-action-btn{border-radius:0 0 2px 2px;border-top:1px solid #d3d3d3;width:100%}"]
|
|
4762
4764
|
},] }
|
|
4763
4765
|
];
|
|
@@ -5482,17 +5484,23 @@
|
|
|
5482
5484
|
};
|
|
5483
5485
|
|
|
5484
5486
|
var BuildPipelineFormComponent = /** @class */ (function () {
|
|
5485
|
-
function BuildPipelineFormComponent(
|
|
5486
|
-
this.
|
|
5487
|
+
function BuildPipelineFormComponent(formBuilder, appsFlowSvc) {
|
|
5488
|
+
this.formBuilder = formBuilder;
|
|
5487
5489
|
this.appsFlowSvc = appsFlowSvc;
|
|
5488
5490
|
this.HostingDetails = new ProjectHostingDetails();
|
|
5489
5491
|
}
|
|
5490
5492
|
Object.defineProperty(BuildPipelineFormComponent.prototype, "Artifact", {
|
|
5491
|
-
//
|
|
5493
|
+
// @Input('main-branch')
|
|
5494
|
+
// public MainBranch: string;
|
|
5495
|
+
// @Input('organization')
|
|
5496
|
+
// public Organization: string;
|
|
5497
|
+
// @Input('repository')
|
|
5498
|
+
// public Repository: string;
|
|
5492
5499
|
get: function () {
|
|
5493
|
-
var _a, _b;
|
|
5494
|
-
|
|
5495
|
-
|
|
5500
|
+
var _a, _b, _c;
|
|
5501
|
+
console.log("ARTIFACT: ", (_a = this.Environment) === null || _a === void 0 ? void 0 : _a.Artifacts[this.ArtifactLookup]);
|
|
5502
|
+
return ((_b = this.Environment) === null || _b === void 0 ? void 0 : _b.Artifacts) && this.ArtifactLookup
|
|
5503
|
+
? ((_c = this.Environment) === null || _c === void 0 ? void 0 : _c.Artifacts[this.ArtifactLookup]) || {}
|
|
5496
5504
|
: {};
|
|
5497
5505
|
},
|
|
5498
5506
|
enumerable: false,
|
|
@@ -5507,6 +5515,14 @@
|
|
|
5507
5515
|
enumerable: false,
|
|
5508
5516
|
configurable: true
|
|
5509
5517
|
});
|
|
5518
|
+
Object.defineProperty(BuildPipelineFormComponent.prototype, "BuildPipelineFormControl", {
|
|
5519
|
+
get: function () {
|
|
5520
|
+
var _a;
|
|
5521
|
+
return (_a = this.BuildPipelineFormGroup) === null || _a === void 0 ? void 0 : _a.controls.buildPipeline;
|
|
5522
|
+
},
|
|
5523
|
+
enumerable: false,
|
|
5524
|
+
configurable: true
|
|
5525
|
+
});
|
|
5510
5526
|
Object.defineProperty(BuildPipelineFormComponent.prototype, "DevOpsAction", {
|
|
5511
5527
|
get: function () {
|
|
5512
5528
|
return this.Environment.DevOpsActions && this.DevOpsActionLookup
|
|
@@ -5535,13 +5551,17 @@
|
|
|
5535
5551
|
enumerable: false,
|
|
5536
5552
|
configurable: true
|
|
5537
5553
|
});
|
|
5554
|
+
Object.defineProperty(BuildPipelineFormComponent.prototype, "SelectedHostingOption", {
|
|
5555
|
+
// (ho) => ho.Lookup === this.BuildPipeline
|
|
5556
|
+
get: function () {
|
|
5557
|
+
var _this = this;
|
|
5558
|
+
var _a, _b;
|
|
5559
|
+
return (_b = (_a = this.HostingDetails) === null || _a === void 0 ? void 0 : _a.HostingOptions) === null || _b === void 0 ? void 0 : _b.find(function (ho) { return ho.Lookup === _this.BuildPipeline; });
|
|
5560
|
+
},
|
|
5561
|
+
enumerable: false,
|
|
5562
|
+
configurable: true
|
|
5563
|
+
});
|
|
5538
5564
|
Object.defineProperty(BuildPipelineFormComponent.prototype, "SourceControlLookups", {
|
|
5539
|
-
// @Input('main-branch')
|
|
5540
|
-
// public MainBranch: string;
|
|
5541
|
-
// @Input('organization')
|
|
5542
|
-
// public Organization: string;
|
|
5543
|
-
// @Input('repository')
|
|
5544
|
-
// public Repository: string;
|
|
5545
5565
|
get: function () {
|
|
5546
5566
|
return Object.keys(this.SourceControls || {});
|
|
5547
5567
|
},
|
|
@@ -5556,13 +5576,94 @@
|
|
|
5556
5576
|
configurable: true
|
|
5557
5577
|
});
|
|
5558
5578
|
BuildPipelineFormComponent.prototype.ngOnInit = function () {
|
|
5579
|
+
var _a, _b, _c;
|
|
5580
|
+
this.BuildPipelineFormGroup = this.formBuilder.group({});
|
|
5581
|
+
this.loadProjectHostingDetails();
|
|
5582
|
+
console.log("ARTIFACT: ", this.Artifact);
|
|
5583
|
+
// this.BuildPipeline ||
|
|
5584
|
+
// github-artifacts-release is this.HostingDetails?.HostingOptions[0]?.Lookup
|
|
5585
|
+
this.BuildPipeline =
|
|
5586
|
+
((_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 : '';
|
|
5587
|
+
console.log("Build Pipeline HERE= ", this.BuildPipeline);
|
|
5588
|
+
if (this.BuildPipelineFormGroup != null) {
|
|
5589
|
+
this.BuildPipelineFormGroup.removeControl('hostingDetails');
|
|
5590
|
+
}
|
|
5591
|
+
this.BuildPipelineFormGroup.addControl('hostingDetails', this.formBuilder.group({
|
|
5592
|
+
buildPipeline: [this.BuildPipeline, [forms.Validators.required]],
|
|
5593
|
+
}));
|
|
5594
|
+
this.setupControlsForForm();
|
|
5595
|
+
};
|
|
5596
|
+
//API METHODS
|
|
5597
|
+
BuildPipelineFormComponent.prototype.BuildPipelineChanged = function () {
|
|
5598
|
+
var _a, _b;
|
|
5599
|
+
console.log("build pipeline value: ", (_a = this.BuildPipelineFormControl) === null || _a === void 0 ? void 0 : _a.value);
|
|
5600
|
+
this.BuildPipeline = (_b = this.BuildPipelineFormControl) === null || _b === void 0 ? void 0 : _b.value;
|
|
5601
|
+
this.setupControlsForForm();
|
|
5602
|
+
};
|
|
5603
|
+
// Helpers
|
|
5604
|
+
BuildPipelineFormComponent.prototype.setupControlsForForm = function () {
|
|
5605
|
+
var _this = this;
|
|
5606
|
+
//for (const ctrlName in this.BuildPipelineFormGroup.controls) {
|
|
5607
|
+
//devOpsAction doesn't exist
|
|
5608
|
+
//removes hosting details
|
|
5609
|
+
// if (ctrlName !== 'buildPipeline' && ctrlName !== 'devOpsAction') {
|
|
5610
|
+
// console.log("removing control: ", ctrlName)
|
|
5611
|
+
// this.BuildPipelineFormGroup.removeControl(ctrlName);
|
|
5612
|
+
// }
|
|
5613
|
+
//}
|
|
5614
|
+
var _a, _b, _c, _d, _e, _f;
|
|
5615
|
+
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]));
|
|
5616
|
+
(_d = (_c = this.SelectedHostingOption) === null || _c === void 0 ? void 0 : _c.Inputs) === null || _d === void 0 ? void 0 : _d.forEach(function (input) {
|
|
5617
|
+
var validators = input.Required ? [forms.Validators.required] : [];
|
|
5618
|
+
_this.BuildPipelineFormGroup.addControl(input.Lookup, _this.formBuilder.control(_this.Artifact[input.Lookup] || input.DefaultValue || '', validators));
|
|
5619
|
+
// if (this.Disabled) {
|
|
5620
|
+
// this.FormGroup.controls[input.Lookup].disable();
|
|
5621
|
+
// }
|
|
5622
|
+
});
|
|
5623
|
+
debugger;
|
|
5624
|
+
if (((_e = this.BuildPipelineFormControl) === null || _e === void 0 ? void 0 : _e.value) === 'npm-release') {
|
|
5625
|
+
debugger;
|
|
5626
|
+
if (!this.BuildPipelineFormGroup.controls.npmToken) {
|
|
5627
|
+
this.BuildPipelineFormGroup.addControl('npmToken', this.formBuilder.control('', this.Disabled ? [] : [forms.Validators.required]));
|
|
5628
|
+
if (this.Disabled) {
|
|
5629
|
+
this.BuildPipelineFormGroup.controls.npmToken.disable();
|
|
5630
|
+
}
|
|
5631
|
+
}
|
|
5632
|
+
}
|
|
5633
|
+
else if (((_f = this.BuildPipelineFormControl) === null || _f === void 0 ? void 0 : _f.value) === 'github-artifacts-release') {
|
|
5634
|
+
if (this.BuildPipelineFormGroup.controls.npmToken) {
|
|
5635
|
+
this.BuildPipelineFormGroup.removeControl('npmToken');
|
|
5636
|
+
}
|
|
5637
|
+
}
|
|
5638
|
+
};
|
|
5639
|
+
BuildPipelineFormComponent.prototype.loadProjectHostingDetails = function () {
|
|
5640
|
+
var _this = this;
|
|
5641
|
+
// this.HostingDetails.Loading = true;
|
|
5642
|
+
// this.Organization,
|
|
5643
|
+
// this.Repository,
|
|
5644
|
+
// this.MainBranch
|
|
5645
|
+
// 'powhound4',
|
|
5646
|
+
// "RedwoodCrystals",
|
|
5647
|
+
// "master"
|
|
5648
|
+
this.appsFlowSvc
|
|
5649
|
+
.LoadProjectHostingDetails('powhound4', "RedwoodCrystals", "master")
|
|
5650
|
+
.subscribe(function (response) {
|
|
5651
|
+
_this.HostingDetails = response.Model;
|
|
5652
|
+
console.log("response: ", response);
|
|
5653
|
+
_this.HostingDetails.Loading = false;
|
|
5654
|
+
}, function (err) {
|
|
5655
|
+
_this.HostingDetails.Loading = false;
|
|
5656
|
+
console.log("hosting details LOADING EERR: ", _this.HostingDetails);
|
|
5657
|
+
console.log("ERR: ", err);
|
|
5658
|
+
});
|
|
5659
|
+
console.log("HOSTING DETAILS: ", this.HostingDetails);
|
|
5559
5660
|
};
|
|
5560
5661
|
return BuildPipelineFormComponent;
|
|
5561
5662
|
}());
|
|
5562
5663
|
BuildPipelineFormComponent.decorators = [
|
|
5563
5664
|
{ type: i0.Component, args: [{
|
|
5564
5665
|
selector: 'lcu-build-pipeline-form',
|
|
5565
|
-
template: "<
|
|
5666
|
+
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",
|
|
5566
5667
|
styles: [""]
|
|
5567
5668
|
},] }
|
|
5568
5669
|
];
|
|
@@ -5571,7 +5672,9 @@
|
|
|
5571
5672
|
{ type: ApplicationsFlowService }
|
|
5572
5673
|
]; };
|
|
5573
5674
|
BuildPipelineFormComponent.propDecorators = {
|
|
5675
|
+
BuildPipeline: [{ type: i0.Input, args: ['build-pipeline',] }],
|
|
5574
5676
|
DevOpsActionLookup: [{ type: i0.Input, args: ['devops-action-lookup',] }],
|
|
5677
|
+
Disabled: [{ type: i0.Input, args: ['disabled',] }],
|
|
5575
5678
|
Environment: [{ type: i0.Input, args: ['environment',] }]
|
|
5576
5679
|
};
|
|
5577
5680
|
|
|
@@ -6068,7 +6171,7 @@
|
|
|
6068
6171
|
BuildPipelineDialogComponent.decorators = [
|
|
6069
6172
|
{ type: i0.Component, args: [{
|
|
6070
6173
|
selector: 'lcu-build-pipeline-dialog',
|
|
6071
|
-
template: "<lcu-build-pipeline-form\n[devops-action-lookup]=\"data.devopsActionLookup\"\n[environment]=\"data.environment\"\n>\n\n</lcu-build-pipeline-form>\n",
|
|
6174
|
+
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",
|
|
6072
6175
|
styles: [""]
|
|
6073
6176
|
},] }
|
|
6074
6177
|
];
|