@lowcodeunit/applications-flow-common 1.36.171-10623-surface-error → 1.36.172-LicenseAndBilling
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/esm2020/lib/dialogs/feed-header-dialog/feed-header-dialog.component.mjs +4 -8
- package/esm2020/lib/services/applications-flow.service.mjs +6 -1
- package/esm2020/lib/services/project.service.mjs +2 -3
- package/esm2020/lib/state/applications-flow.state.mjs +9 -1
- package/fesm2015/lowcodeunit-applications-flow-common.mjs +18 -10
- package/fesm2015/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/fesm2020/lowcodeunit-applications-flow-common.mjs +18 -10
- package/fesm2020/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/lib/services/applications-flow.service.d.ts +1 -0
- package/lib/state/applications-flow.state.d.ts +30 -0
- package/package.json +1 -1
|
@@ -269,6 +269,11 @@ class ApplicationsFlowService {
|
|
|
269
269
|
headers: this.loadHeaders(),
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
|
+
LoadLicenseData() {
|
|
273
|
+
return this.http.get(`${this.apiRoot}/api/lowcodeunit/manage/license`, {
|
|
274
|
+
headers: this.loadHeaders(),
|
|
275
|
+
});
|
|
276
|
+
}
|
|
272
277
|
// public LoadProjectHostingDetails(
|
|
273
278
|
// organization: string,
|
|
274
279
|
// repository: string,
|
|
@@ -646,8 +651,7 @@ class ProjectService {
|
|
|
646
651
|
return new Promise((resolve, reject) => {
|
|
647
652
|
state.Loading = true;
|
|
648
653
|
this.appsFlowSvc.SubmitFeedEntry(entry).subscribe(async (response) => {
|
|
649
|
-
if (response.Status.Code === 0
|
|
650
|
-
response.Status.Code === 1) {
|
|
654
|
+
if (response.Status.Code === 0) {
|
|
651
655
|
resolve(response.Status);
|
|
652
656
|
var results = await Promise.all([
|
|
653
657
|
this.LoadEnterpriseAsCode(state),
|
|
@@ -809,6 +813,14 @@ class GitHubRepository {
|
|
|
809
813
|
}
|
|
810
814
|
class GitHubWorkflowRun {
|
|
811
815
|
}
|
|
816
|
+
class LicenseAndBillingResponse {
|
|
817
|
+
}
|
|
818
|
+
class License {
|
|
819
|
+
}
|
|
820
|
+
class Plan {
|
|
821
|
+
}
|
|
822
|
+
class Price {
|
|
823
|
+
}
|
|
812
824
|
class UnpackLowCodeUnitRequest {
|
|
813
825
|
}
|
|
814
826
|
// export class DevOpsAction {
|
|
@@ -6259,9 +6271,8 @@ class FeedHeaderDialogComponent {
|
|
|
6259
6271
|
Type: this.data.type,
|
|
6260
6272
|
Title: this.TitleFormControl ? this.TitleFormControl.value : null,
|
|
6261
6273
|
};
|
|
6262
|
-
|
|
6274
|
+
console.log('Control: ', returnObject);
|
|
6263
6275
|
this.eacSvc.SubmitFeedEntry(returnObject).then((res) => {
|
|
6264
|
-
// console.log('result: ', res);
|
|
6265
6276
|
if (res.Code === 0) {
|
|
6266
6277
|
this.snackBar.open(` '${this.data.type}' Succesfully Created`, 'Dismiss', {
|
|
6267
6278
|
duration: 5000,
|
|
@@ -6269,9 +6280,6 @@ class FeedHeaderDialogComponent {
|
|
|
6269
6280
|
this.CloseDialog();
|
|
6270
6281
|
}
|
|
6271
6282
|
else {
|
|
6272
|
-
this.snackBar.open(res.Message, 'Dismiss', {
|
|
6273
|
-
panelClass: 'error',
|
|
6274
|
-
});
|
|
6275
6283
|
this.ErrorMessage = res.Message;
|
|
6276
6284
|
}
|
|
6277
6285
|
});
|
|
@@ -6385,10 +6393,10 @@ class FeedHeaderDialogComponent {
|
|
|
6385
6393
|
}
|
|
6386
6394
|
}
|
|
6387
6395
|
FeedHeaderDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: FeedHeaderDialogComponent, deps: [{ token: ApplicationsFlowService }, { token: EaCService }, { token: i1$1.FormBuilder }, { token: i2$3.MatDialogRef }, { token: MAT_DIALOG_DATA }, { token: i3$2.MatSnackBar }], target: i0.ɵɵFactoryTarget.Component });
|
|
6388
|
-
FeedHeaderDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: FeedHeaderDialogComponent, selector: "lcu-feed-header-dialog", ngImport: i0, template: "<div class=\"dialog-header\" fxLayoutAlign=\"space-between center\">\n <h2 mat-dialog-title>{{ data.dialogTitle }}</h2>\n <button mat-icon-button (click)=\"CloseDialog()\">\n <mat-icon>cancel</mat-icon>\n </button>\n</div>\n\n<mat-dialog-content>\n <form [formGroup]=\"FeedHeaderFormGroup\">\n <!-- ISSUE FORM -->\n <ng-container *ngIf=\"data.type === 'OpenIssue'\">\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <mat-form-field appearance=\"fill\">\n <mat-label>Source Control</mat-label>\n <mat-select\n formControlName=\"sourceControl\"\n (selectionChange)=\"IssueSourceControlChanged($event)\"\n required\n >\n <ng-container\n *ngFor=\"let scLookup of SourceControlLookups\"\n >\n <mat-option\n *ngIf=\"SourceControls[scLookup]; let sc\"\n [value]=\"scLookup\"\n >\n {{ sc.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n </div>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Title\"\n formControlName=\"title\"\n required\n />\n </mat-form-field>\n\n <angular-editor\n class=\"angular-editor\"\n id=\"issue-editor\"\n formControlName=\"editor\"\n [config]=\"EditorConfig\"\n ></angular-editor>\n </ng-container>\n\n <!-- ANNOUNCEMENT FORM -->\n\n <ng-container *ngIf=\"data.type === 'Announcement'\">\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Title\"\n formControlName=\"title\"\n required\n />\n </mat-form-field>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Subtitle\"\n formControlName=\"subtitle\"\n />\n </mat-form-field>\n\n <angular-editor\n id=\"announcement-editor\"\n formControlName=\"editor\"\n [config]=\"EditorConfig\"\n ></angular-editor>\n\n <div fxLayout=\"row\" fxLayoutAlign=\"space-between center\">\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Action Text\"\n formControlName=\"actionText\"\n />\n </mat-form-field>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Action Link\"\n formControlName=\"actionLink\"\n />\n </mat-form-field>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Action Icon\"\n formControlName=\"actionIcon\"\n />\n </mat-form-field>\n </div>\n\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <button\n *ngIf=\"ActionTextControl?.value || ActionIconControl?.value\"\n mat-button\n color=\"primary\"\n (click)=\"HandleAction(ActionLinkControl?.value)\"\n >\n <mat-icon *ngIf=\"ActionIconControl?.value\">{{\n ActionIconControl?.value\n }}</mat-icon>\n\n {{ ActionTextControl?.value }}\n </button>\n\n <button\n *ngIf=\"\n !ActionTextControl?.value && !ActionIconControl?.value\n \"\n mat-button\n color=\"primary\"\n >\n <mat-icon>cruelty_free</mat-icon>\n\n Example Button\n </button>\n </div>\n </ng-container>\n\n <!-- PR FORM -->\n\n <ng-container *ngIf=\"data.type === 'PullRequest'\">\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <mat-form-field appearance=\"fill\">\n <mat-label>Source Control</mat-label>\n <mat-select\n formControlName=\"sourceControl\"\n (selectionChange)=\"\n PullRequestSourceControlChanged($event)\n \"\n required\n >\n <ng-container\n *ngFor=\"let scLookup of SourceControlLookups\"\n >\n <mat-option\n *ngIf=\"SourceControls[scLookup]; let sc\"\n [value]=\"scLookup\"\n >\n {{ sc.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n </div>\n\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n *ngIf=\"BranchOptions?.length > 0\"\n >\n <mat-form-field appearance=\"fill\">\n <mat-label>Base</mat-label>\n <mat-select formControlName=\"targetBranch\" required>\n <mat-option\n *ngFor=\"let branchOpt of BranchOptions\"\n [value]=\"branchOpt.Name\"\n >\n {{ branchOpt.Name }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n\n <mat-icon>arrow_back</mat-icon>\n\n <mat-form-field appearance=\"fill\">\n <mat-label>Compare</mat-label>\n <mat-select formControlName=\"sourceBranch\" required>\n <mat-option\n *ngFor=\"let branchOpt of BranchOptions\"\n [value]=\"branchOpt.Name\"\n >\n {{ branchOpt.Name }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Title\"\n formControlName=\"title\"\n required\n />\n </mat-form-field>\n\n <angular-editor\n id=\"pr-editor\"\n formControlName=\"editor\"\n [config]=\"EditorConfig\"\n ></angular-editor>\n </ng-container>\n\n <!-- Feature Branch form -->\n\n <ng-container *ngIf=\"data.type === 'CreateBranch'\">\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <mat-form-field>\n <mat-label>Source Control</mat-label>\n <mat-select\n formControlName=\"sourceControl\"\n (selectionChange)=\"\n FeatureBranchSourceControlChanged($event)\n \"\n required\n >\n <ng-container\n *ngFor=\"let scLookup of SourceControlLookups\"\n >\n <mat-option\n *ngIf=\"SourceControls[scLookup]; let sc\"\n [value]=\"scLookup\"\n >\n {{ sc.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n </div>\n\n <div fxLayout=\"row\" fxLayoutAlign=\"space-around center\">\n <mat-form-field *ngIf=\"OrganizationOptions?.length > 0\">\n <mat-select\n formControlName=\"organization\"\n placeholder=\"Organization\"\n (selectionChange)=\"OrganizationChanged($event)\"\n required\n >\n <ng-container\n *ngFor=\"let orgOpt of OrganizationOptions\"\n >\n <mat-option [value]=\"orgOpt.Name\">\n {{ orgOpt.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n\n <mat-form-field *ngIf=\"RepositoryOptions?.length > 0\">\n <mat-select\n formControlName=\"repository\"\n placeholder=\"Repository\"\n (selectionChange)=\"RepositoryChanged($event)\"\n required\n >\n <ng-container *ngFor=\"let repoOpt of RepositoryOptions\">\n <mat-option [value]=\"repoOpt.Name\">\n {{ repoOpt.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n </div>\n\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"space-around center\"\n *ngIf=\"BranchOptions?.length > 0\"\n >\n <mat-form-field>\n <mat-label>Base Branch</mat-label>\n <mat-select formControlName=\"sourceBranch\" required>\n <mat-option\n *ngFor=\"let branchOpt of BranchOptions\"\n [value]=\"branchOpt.Name\"\n >\n {{ branchOpt.Name }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n\n <mat-form-field>\n <input\n matInput\n placeholder=\"Create New Branch\"\n formControlName=\"targetBranch\"\n required\n />\n </mat-form-field>\n </div>\n </ng-container>\n\n <lcu-loader [loading]=\"Loading\"></lcu-loader>\n </form>\n\n <mat-error *ngIf=\"ErrorMessage\" fxLayoutAlign=\"center center\">\n {{ ErrorMessage }}\n </mat-error>\n</mat-dialog-content>\n\n<mat-dialog-actions\n class=\"actions-container\"\n div\n fxLayout=\"row\"\n fxLayoutAlign=\"end center\"\n>\n <button\n class=\"action-button\"\n mat-raised-button\n fxFlex=\"25%\"\n (click)=\"CloseDialog()\"\n >\n Cancel\n </button>\n\n <!-- -->\n <button\n mat-raised-button\n color=\"primary\"\n fxFlex=\"25%\"\n class=\"submit\"\n (click)=\"Submit()\"\n [disabled]=\"IsDisabled()\"\n >\n Submit\n </button>\n</mat-dialog-actions>\n", styles: [".error{color:red}\n"], components: [{ type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i4$1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i5$1.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i7.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: i2$4.AngularEditorComponent, selector: "angular-editor", inputs: ["id", "config", "placeholder", "tabIndex"], outputs: ["html", "viewMode", "blur", "focus"] }, { type: i3$1.LoaderComponent, selector: "lcu-loader", inputs: ["diameter", "hide-inner", "loading"] }], directives: [{ type: i8.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i2$3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i2$3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i4$1.MatLabel, selector: "mat-label" }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { type: i1$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i9.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i11.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4$1.MatError, selector: "mat-error", inputs: ["id"] }, { type: i2$3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i8.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }] });
|
|
6396
|
+
FeedHeaderDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: FeedHeaderDialogComponent, selector: "lcu-feed-header-dialog", ngImport: i0, template: "<div class=\"dialog-header\" fxLayoutAlign=\"space-between center\">\n <h2 mat-dialog-title>{{ data.dialogTitle }}</h2>\n <button mat-icon-button (click)=\"CloseDialog()\">\n <mat-icon>cancel</mat-icon>\n </button>\n</div>\n\n<mat-dialog-content>\n <form [formGroup]=\"FeedHeaderFormGroup\">\n <!-- ISSUE FORM -->\n <ng-container *ngIf=\"data.type === 'OpenIssue'\">\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <mat-form-field appearance=\"fill\">\n <mat-label>Source Control</mat-label>\n <mat-select\n formControlName=\"sourceControl\"\n (selectionChange)=\"IssueSourceControlChanged($event)\"\n required\n >\n <ng-container\n *ngFor=\"let scLookup of SourceControlLookups\"\n >\n <mat-option\n *ngIf=\"SourceControls[scLookup]; let sc\"\n [value]=\"scLookup\"\n >\n {{ sc.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n </div>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Title\"\n formControlName=\"title\"\n required\n />\n </mat-form-field>\n\n <angular-editor\n class=\"angular-editor\"\n id=\"issue-editor\"\n formControlName=\"editor\"\n [config]=\"EditorConfig\"\n ></angular-editor>\n </ng-container>\n\n <!-- ANNOUNCEMENT FORM -->\n\n <ng-container *ngIf=\"data.type === 'Announcement'\">\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Title\"\n formControlName=\"title\"\n required\n />\n </mat-form-field>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Subtitle\"\n formControlName=\"subtitle\"\n />\n </mat-form-field>\n\n <angular-editor\n id=\"announcement-editor\"\n formControlName=\"editor\"\n [config]=\"EditorConfig\"\n ></angular-editor>\n\n <div fxLayout=\"row\" fxLayoutAlign=\"space-between center\">\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Action Text\"\n formControlName=\"actionText\"\n />\n </mat-form-field>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Action Link\"\n formControlName=\"actionLink\"\n />\n </mat-form-field>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Action Icon\"\n formControlName=\"actionIcon\"\n />\n </mat-form-field>\n </div>\n\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <button\n *ngIf=\"ActionTextControl?.value || ActionIconControl?.value\"\n mat-button\n color=\"primary\"\n (click)=\"HandleAction(ActionLinkControl?.value)\"\n >\n <mat-icon *ngIf=\"ActionIconControl?.value\">{{\n ActionIconControl?.value\n }}</mat-icon>\n\n {{ ActionTextControl?.value }}\n </button>\n\n <button\n *ngIf=\"\n !ActionTextControl?.value && !ActionIconControl?.value\n \"\n mat-button\n color=\"primary\"\n >\n <mat-icon>cruelty_free</mat-icon>\n\n Example Button\n </button>\n </div>\n </ng-container>\n\n <!-- PR FORM -->\n\n <ng-container *ngIf=\"data.type === 'PullRequest'\">\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <mat-form-field appearance=\"fill\">\n <mat-label>Source Control</mat-label>\n <mat-select\n formControlName=\"sourceControl\"\n (selectionChange)=\"\n PullRequestSourceControlChanged($event)\n \"\n required\n >\n <ng-container\n *ngFor=\"let scLookup of SourceControlLookups\"\n >\n <mat-option\n *ngIf=\"SourceControls[scLookup]; let sc\"\n [value]=\"scLookup\"\n >\n {{ sc.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n </div>\n\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n *ngIf=\"BranchOptions?.length > 0\"\n >\n <mat-form-field appearance=\"fill\">\n <mat-label>Base</mat-label>\n <mat-select formControlName=\"targetBranch\" required>\n <mat-option\n *ngFor=\"let branchOpt of BranchOptions\"\n [value]=\"branchOpt.Name\"\n >\n {{ branchOpt.Name }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n\n <mat-icon>arrow_back</mat-icon>\n\n <mat-form-field appearance=\"fill\">\n <mat-label>Compare</mat-label>\n <mat-select formControlName=\"sourceBranch\" required>\n <mat-option\n *ngFor=\"let branchOpt of BranchOptions\"\n [value]=\"branchOpt.Name\"\n >\n {{ branchOpt.Name }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Title\"\n formControlName=\"title\"\n required\n />\n </mat-form-field>\n\n <angular-editor\n id=\"pr-editor\"\n formControlName=\"editor\"\n [config]=\"EditorConfig\"\n ></angular-editor>\n </ng-container>\n\n <!-- Feature Branch form -->\n\n <ng-container *ngIf=\"data.type === 'CreateBranch'\">\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <mat-form-field>\n <mat-label>Source Control</mat-label>\n <mat-select\n formControlName=\"sourceControl\"\n (selectionChange)=\"\n FeatureBranchSourceControlChanged($event)\n \"\n required\n >\n <ng-container\n *ngFor=\"let scLookup of SourceControlLookups\"\n >\n <mat-option\n *ngIf=\"SourceControls[scLookup]; let sc\"\n [value]=\"scLookup\"\n >\n {{ sc.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n </div>\n\n <div fxLayout=\"row\" fxLayoutAlign=\"space-around center\">\n <mat-form-field *ngIf=\"OrganizationOptions?.length > 0\">\n <mat-select\n formControlName=\"organization\"\n placeholder=\"Organization\"\n (selectionChange)=\"OrganizationChanged($event)\"\n required\n >\n <ng-container\n *ngFor=\"let orgOpt of OrganizationOptions\"\n >\n <mat-option [value]=\"orgOpt.Name\">\n {{ orgOpt.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n\n <mat-form-field *ngIf=\"RepositoryOptions?.length > 0\">\n <mat-select\n formControlName=\"repository\"\n placeholder=\"Repository\"\n (selectionChange)=\"RepositoryChanged($event)\"\n required\n >\n <ng-container *ngFor=\"let repoOpt of RepositoryOptions\">\n <mat-option [value]=\"repoOpt.Name\">\n {{ repoOpt.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n </div>\n\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"space-around center\"\n *ngIf=\"BranchOptions?.length > 0\"\n >\n <mat-form-field>\n <mat-label>Base Branch</mat-label>\n <mat-select formControlName=\"sourceBranch\" required>\n <mat-option\n *ngFor=\"let branchOpt of BranchOptions\"\n [value]=\"branchOpt.Name\"\n >\n {{ branchOpt.Name }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n\n <mat-form-field>\n <input\n matInput\n placeholder=\"Create New Branch\"\n formControlName=\"targetBranch\"\n required\n />\n </mat-form-field>\n </div>\n </ng-container>\n\n <lcu-loader [loading]=\"Loading\"></lcu-loader>\n </form>\n\n <mat-error *ngIf=\"ErrorMessage\" fxLayoutAlign=\"center center\">\n {{ ErrorMessage }}\n </mat-error>\n</mat-dialog-content>\n\n<mat-dialog-actions\n class=\"actions-container\"\n div\n fxLayout=\"row\"\n fxLayoutAlign=\"end center\"\n>\n <button\n class=\"action-button\"\n mat-raised-button\n fxFlex=\"25%\"\n (click)=\"CloseDialog()\"\n >\n Cancel\n </button>\n\n <!-- -->\n <button\n mat-raised-button\n color=\"primary\"\n fxFlex=\"25%\"\n class=\"submit\"\n (click)=\"Submit()\"\n [disabled]=\"IsDisabled()\"\n >\n Submit\n </button>\n</mat-dialog-actions>\n", styles: [""], components: [{ type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i4$1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i5$1.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i7.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: i2$4.AngularEditorComponent, selector: "angular-editor", inputs: ["id", "config", "placeholder", "tabIndex"], outputs: ["html", "viewMode", "blur", "focus"] }, { type: i3$1.LoaderComponent, selector: "lcu-loader", inputs: ["diameter", "hide-inner", "loading"] }], directives: [{ type: i8.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i2$3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i2$3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i4$1.MatLabel, selector: "mat-label" }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { type: i1$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i9.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i11.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4$1.MatError, selector: "mat-error", inputs: ["id"] }, { type: i2$3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i8.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }] });
|
|
6389
6397
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: FeedHeaderDialogComponent, decorators: [{
|
|
6390
6398
|
type: Component,
|
|
6391
|
-
args: [{ selector: 'lcu-feed-header-dialog', template: "<div class=\"dialog-header\" fxLayoutAlign=\"space-between center\">\n <h2 mat-dialog-title>{{ data.dialogTitle }}</h2>\n <button mat-icon-button (click)=\"CloseDialog()\">\n <mat-icon>cancel</mat-icon>\n </button>\n</div>\n\n<mat-dialog-content>\n <form [formGroup]=\"FeedHeaderFormGroup\">\n <!-- ISSUE FORM -->\n <ng-container *ngIf=\"data.type === 'OpenIssue'\">\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <mat-form-field appearance=\"fill\">\n <mat-label>Source Control</mat-label>\n <mat-select\n formControlName=\"sourceControl\"\n (selectionChange)=\"IssueSourceControlChanged($event)\"\n required\n >\n <ng-container\n *ngFor=\"let scLookup of SourceControlLookups\"\n >\n <mat-option\n *ngIf=\"SourceControls[scLookup]; let sc\"\n [value]=\"scLookup\"\n >\n {{ sc.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n </div>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Title\"\n formControlName=\"title\"\n required\n />\n </mat-form-field>\n\n <angular-editor\n class=\"angular-editor\"\n id=\"issue-editor\"\n formControlName=\"editor\"\n [config]=\"EditorConfig\"\n ></angular-editor>\n </ng-container>\n\n <!-- ANNOUNCEMENT FORM -->\n\n <ng-container *ngIf=\"data.type === 'Announcement'\">\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Title\"\n formControlName=\"title\"\n required\n />\n </mat-form-field>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Subtitle\"\n formControlName=\"subtitle\"\n />\n </mat-form-field>\n\n <angular-editor\n id=\"announcement-editor\"\n formControlName=\"editor\"\n [config]=\"EditorConfig\"\n ></angular-editor>\n\n <div fxLayout=\"row\" fxLayoutAlign=\"space-between center\">\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Action Text\"\n formControlName=\"actionText\"\n />\n </mat-form-field>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Action Link\"\n formControlName=\"actionLink\"\n />\n </mat-form-field>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Action Icon\"\n formControlName=\"actionIcon\"\n />\n </mat-form-field>\n </div>\n\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <button\n *ngIf=\"ActionTextControl?.value || ActionIconControl?.value\"\n mat-button\n color=\"primary\"\n (click)=\"HandleAction(ActionLinkControl?.value)\"\n >\n <mat-icon *ngIf=\"ActionIconControl?.value\">{{\n ActionIconControl?.value\n }}</mat-icon>\n\n {{ ActionTextControl?.value }}\n </button>\n\n <button\n *ngIf=\"\n !ActionTextControl?.value && !ActionIconControl?.value\n \"\n mat-button\n color=\"primary\"\n >\n <mat-icon>cruelty_free</mat-icon>\n\n Example Button\n </button>\n </div>\n </ng-container>\n\n <!-- PR FORM -->\n\n <ng-container *ngIf=\"data.type === 'PullRequest'\">\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <mat-form-field appearance=\"fill\">\n <mat-label>Source Control</mat-label>\n <mat-select\n formControlName=\"sourceControl\"\n (selectionChange)=\"\n PullRequestSourceControlChanged($event)\n \"\n required\n >\n <ng-container\n *ngFor=\"let scLookup of SourceControlLookups\"\n >\n <mat-option\n *ngIf=\"SourceControls[scLookup]; let sc\"\n [value]=\"scLookup\"\n >\n {{ sc.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n </div>\n\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n *ngIf=\"BranchOptions?.length > 0\"\n >\n <mat-form-field appearance=\"fill\">\n <mat-label>Base</mat-label>\n <mat-select formControlName=\"targetBranch\" required>\n <mat-option\n *ngFor=\"let branchOpt of BranchOptions\"\n [value]=\"branchOpt.Name\"\n >\n {{ branchOpt.Name }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n\n <mat-icon>arrow_back</mat-icon>\n\n <mat-form-field appearance=\"fill\">\n <mat-label>Compare</mat-label>\n <mat-select formControlName=\"sourceBranch\" required>\n <mat-option\n *ngFor=\"let branchOpt of BranchOptions\"\n [value]=\"branchOpt.Name\"\n >\n {{ branchOpt.Name }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Title\"\n formControlName=\"title\"\n required\n />\n </mat-form-field>\n\n <angular-editor\n id=\"pr-editor\"\n formControlName=\"editor\"\n [config]=\"EditorConfig\"\n ></angular-editor>\n </ng-container>\n\n <!-- Feature Branch form -->\n\n <ng-container *ngIf=\"data.type === 'CreateBranch'\">\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <mat-form-field>\n <mat-label>Source Control</mat-label>\n <mat-select\n formControlName=\"sourceControl\"\n (selectionChange)=\"\n FeatureBranchSourceControlChanged($event)\n \"\n required\n >\n <ng-container\n *ngFor=\"let scLookup of SourceControlLookups\"\n >\n <mat-option\n *ngIf=\"SourceControls[scLookup]; let sc\"\n [value]=\"scLookup\"\n >\n {{ sc.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n </div>\n\n <div fxLayout=\"row\" fxLayoutAlign=\"space-around center\">\n <mat-form-field *ngIf=\"OrganizationOptions?.length > 0\">\n <mat-select\n formControlName=\"organization\"\n placeholder=\"Organization\"\n (selectionChange)=\"OrganizationChanged($event)\"\n required\n >\n <ng-container\n *ngFor=\"let orgOpt of OrganizationOptions\"\n >\n <mat-option [value]=\"orgOpt.Name\">\n {{ orgOpt.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n\n <mat-form-field *ngIf=\"RepositoryOptions?.length > 0\">\n <mat-select\n formControlName=\"repository\"\n placeholder=\"Repository\"\n (selectionChange)=\"RepositoryChanged($event)\"\n required\n >\n <ng-container *ngFor=\"let repoOpt of RepositoryOptions\">\n <mat-option [value]=\"repoOpt.Name\">\n {{ repoOpt.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n </div>\n\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"space-around center\"\n *ngIf=\"BranchOptions?.length > 0\"\n >\n <mat-form-field>\n <mat-label>Base Branch</mat-label>\n <mat-select formControlName=\"sourceBranch\" required>\n <mat-option\n *ngFor=\"let branchOpt of BranchOptions\"\n [value]=\"branchOpt.Name\"\n >\n {{ branchOpt.Name }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n\n <mat-form-field>\n <input\n matInput\n placeholder=\"Create New Branch\"\n formControlName=\"targetBranch\"\n required\n />\n </mat-form-field>\n </div>\n </ng-container>\n\n <lcu-loader [loading]=\"Loading\"></lcu-loader>\n </form>\n\n <mat-error *ngIf=\"ErrorMessage\" fxLayoutAlign=\"center center\">\n {{ ErrorMessage }}\n </mat-error>\n</mat-dialog-content>\n\n<mat-dialog-actions\n class=\"actions-container\"\n div\n fxLayout=\"row\"\n fxLayoutAlign=\"end center\"\n>\n <button\n class=\"action-button\"\n mat-raised-button\n fxFlex=\"25%\"\n (click)=\"CloseDialog()\"\n >\n Cancel\n </button>\n\n <!-- -->\n <button\n mat-raised-button\n color=\"primary\"\n fxFlex=\"25%\"\n class=\"submit\"\n (click)=\"Submit()\"\n [disabled]=\"IsDisabled()\"\n >\n Submit\n </button>\n</mat-dialog-actions>\n", styles: [".error{color:red}\n"] }]
|
|
6399
|
+
args: [{ selector: 'lcu-feed-header-dialog', template: "<div class=\"dialog-header\" fxLayoutAlign=\"space-between center\">\n <h2 mat-dialog-title>{{ data.dialogTitle }}</h2>\n <button mat-icon-button (click)=\"CloseDialog()\">\n <mat-icon>cancel</mat-icon>\n </button>\n</div>\n\n<mat-dialog-content>\n <form [formGroup]=\"FeedHeaderFormGroup\">\n <!-- ISSUE FORM -->\n <ng-container *ngIf=\"data.type === 'OpenIssue'\">\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <mat-form-field appearance=\"fill\">\n <mat-label>Source Control</mat-label>\n <mat-select\n formControlName=\"sourceControl\"\n (selectionChange)=\"IssueSourceControlChanged($event)\"\n required\n >\n <ng-container\n *ngFor=\"let scLookup of SourceControlLookups\"\n >\n <mat-option\n *ngIf=\"SourceControls[scLookup]; let sc\"\n [value]=\"scLookup\"\n >\n {{ sc.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n </div>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Title\"\n formControlName=\"title\"\n required\n />\n </mat-form-field>\n\n <angular-editor\n class=\"angular-editor\"\n id=\"issue-editor\"\n formControlName=\"editor\"\n [config]=\"EditorConfig\"\n ></angular-editor>\n </ng-container>\n\n <!-- ANNOUNCEMENT FORM -->\n\n <ng-container *ngIf=\"data.type === 'Announcement'\">\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Title\"\n formControlName=\"title\"\n required\n />\n </mat-form-field>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Subtitle\"\n formControlName=\"subtitle\"\n />\n </mat-form-field>\n\n <angular-editor\n id=\"announcement-editor\"\n formControlName=\"editor\"\n [config]=\"EditorConfig\"\n ></angular-editor>\n\n <div fxLayout=\"row\" fxLayoutAlign=\"space-between center\">\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Action Text\"\n formControlName=\"actionText\"\n />\n </mat-form-field>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Action Link\"\n formControlName=\"actionLink\"\n />\n </mat-form-field>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Action Icon\"\n formControlName=\"actionIcon\"\n />\n </mat-form-field>\n </div>\n\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <button\n *ngIf=\"ActionTextControl?.value || ActionIconControl?.value\"\n mat-button\n color=\"primary\"\n (click)=\"HandleAction(ActionLinkControl?.value)\"\n >\n <mat-icon *ngIf=\"ActionIconControl?.value\">{{\n ActionIconControl?.value\n }}</mat-icon>\n\n {{ ActionTextControl?.value }}\n </button>\n\n <button\n *ngIf=\"\n !ActionTextControl?.value && !ActionIconControl?.value\n \"\n mat-button\n color=\"primary\"\n >\n <mat-icon>cruelty_free</mat-icon>\n\n Example Button\n </button>\n </div>\n </ng-container>\n\n <!-- PR FORM -->\n\n <ng-container *ngIf=\"data.type === 'PullRequest'\">\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <mat-form-field appearance=\"fill\">\n <mat-label>Source Control</mat-label>\n <mat-select\n formControlName=\"sourceControl\"\n (selectionChange)=\"\n PullRequestSourceControlChanged($event)\n \"\n required\n >\n <ng-container\n *ngFor=\"let scLookup of SourceControlLookups\"\n >\n <mat-option\n *ngIf=\"SourceControls[scLookup]; let sc\"\n [value]=\"scLookup\"\n >\n {{ sc.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n </div>\n\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n *ngIf=\"BranchOptions?.length > 0\"\n >\n <mat-form-field appearance=\"fill\">\n <mat-label>Base</mat-label>\n <mat-select formControlName=\"targetBranch\" required>\n <mat-option\n *ngFor=\"let branchOpt of BranchOptions\"\n [value]=\"branchOpt.Name\"\n >\n {{ branchOpt.Name }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n\n <mat-icon>arrow_back</mat-icon>\n\n <mat-form-field appearance=\"fill\">\n <mat-label>Compare</mat-label>\n <mat-select formControlName=\"sourceBranch\" required>\n <mat-option\n *ngFor=\"let branchOpt of BranchOptions\"\n [value]=\"branchOpt.Name\"\n >\n {{ branchOpt.Name }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n placeholder=\"Title\"\n formControlName=\"title\"\n required\n />\n </mat-form-field>\n\n <angular-editor\n id=\"pr-editor\"\n formControlName=\"editor\"\n [config]=\"EditorConfig\"\n ></angular-editor>\n </ng-container>\n\n <!-- Feature Branch form -->\n\n <ng-container *ngIf=\"data.type === 'CreateBranch'\">\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <mat-form-field>\n <mat-label>Source Control</mat-label>\n <mat-select\n formControlName=\"sourceControl\"\n (selectionChange)=\"\n FeatureBranchSourceControlChanged($event)\n \"\n required\n >\n <ng-container\n *ngFor=\"let scLookup of SourceControlLookups\"\n >\n <mat-option\n *ngIf=\"SourceControls[scLookup]; let sc\"\n [value]=\"scLookup\"\n >\n {{ sc.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n </div>\n\n <div fxLayout=\"row\" fxLayoutAlign=\"space-around center\">\n <mat-form-field *ngIf=\"OrganizationOptions?.length > 0\">\n <mat-select\n formControlName=\"organization\"\n placeholder=\"Organization\"\n (selectionChange)=\"OrganizationChanged($event)\"\n required\n >\n <ng-container\n *ngFor=\"let orgOpt of OrganizationOptions\"\n >\n <mat-option [value]=\"orgOpt.Name\">\n {{ orgOpt.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n\n <mat-form-field *ngIf=\"RepositoryOptions?.length > 0\">\n <mat-select\n formControlName=\"repository\"\n placeholder=\"Repository\"\n (selectionChange)=\"RepositoryChanged($event)\"\n required\n >\n <ng-container *ngFor=\"let repoOpt of RepositoryOptions\">\n <mat-option [value]=\"repoOpt.Name\">\n {{ repoOpt.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n </mat-form-field>\n </div>\n\n <div\n fxLayout=\"row\"\n fxLayoutAlign=\"space-around center\"\n *ngIf=\"BranchOptions?.length > 0\"\n >\n <mat-form-field>\n <mat-label>Base Branch</mat-label>\n <mat-select formControlName=\"sourceBranch\" required>\n <mat-option\n *ngFor=\"let branchOpt of BranchOptions\"\n [value]=\"branchOpt.Name\"\n >\n {{ branchOpt.Name }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n\n <mat-form-field>\n <input\n matInput\n placeholder=\"Create New Branch\"\n formControlName=\"targetBranch\"\n required\n />\n </mat-form-field>\n </div>\n </ng-container>\n\n <lcu-loader [loading]=\"Loading\"></lcu-loader>\n </form>\n\n <mat-error *ngIf=\"ErrorMessage\" fxLayoutAlign=\"center center\">\n {{ ErrorMessage }}\n </mat-error>\n</mat-dialog-content>\n\n<mat-dialog-actions\n class=\"actions-container\"\n div\n fxLayout=\"row\"\n fxLayoutAlign=\"end center\"\n>\n <button\n class=\"action-button\"\n mat-raised-button\n fxFlex=\"25%\"\n (click)=\"CloseDialog()\"\n >\n Cancel\n </button>\n\n <!-- -->\n <button\n mat-raised-button\n color=\"primary\"\n fxFlex=\"25%\"\n class=\"submit\"\n (click)=\"Submit()\"\n [disabled]=\"IsDisabled()\"\n >\n Submit\n </button>\n</mat-dialog-actions>\n", styles: [""] }]
|
|
6392
6400
|
}], ctorParameters: function () { return [{ type: ApplicationsFlowService }, { type: EaCService }, { type: i1$1.FormBuilder }, { type: i2$3.MatDialogRef }, { type: undefined, decorators: [{
|
|
6393
6401
|
type: Inject,
|
|
6394
6402
|
args: [MAT_DIALOG_DATA]
|
|
@@ -7614,5 +7622,5 @@ class FormModel {
|
|
|
7614
7622
|
* Generated bundle index. Do not edit.
|
|
7615
7623
|
*/
|
|
7616
7624
|
|
|
7617
|
-
export { ActionsModel, AnalyticsCardComponent, ApplicationsFlowModule, ApplicationsFlowProjectsContext, ApplicationsFlowProjectsElementComponent, ApplicationsFlowProjectsElementState, ApplicationsFlowService, ApplicationsFlowState, ApplicationsFlowStateContext, AppsFlowComponent, BaseFormComponent, BaseFormConfigModel, BaseFormTestComponent, BreadcrumbComponent, BuildPipelineDialogComponent, BuildPipelineFormComponent, BuildsComponent, CardCarouselComponent, CardFormConfigModel, ConnectedSourceComponent, CreateProjectWizardComponent, CustomDomainDialogComponent, DFSModifiersComponent, DFSModifiersDialogComponent, DFSModifiersFormComponent, DevOpsComponent, DevSettingsPresetModel, DevopsSourceControlFormComponent, DomainModel, DomainsComponent, DynamicTabsComponent, DynamicTabsModel, EaCService, EditApplicationDialogComponent, EditApplicationFormComponent, EditProjectDialogComponent, EditProjectFormComponent, EmulatedDevicesToggleComponent, FeedCardSmComponent, FeedCommentFormComponent, FeedEntry, FeedHeaderComponent, FeedHeaderDialogComponent, FeedItem, FeedItemAction, FeedItemContributor, FeedItemTab, FormActionsModel, FormCardComponent, FormModel, FormValuesModel, FormsService, GitAuthComponent, GitHubBranch, GitHubOrganization, GitHubRepository, GitHubSetupState, GitHubWorkflowRun, HeaderComponent, HostingDetailsFormGroupComponent, IoTEnsembleService, MainFeedCardComponent, NPMService, NewApplicationDialogComponent, NpmPackageSelectComponent, PageHeaderComponent, ProcessorDetailsDialogComponent, ProcessorDetailsFormComponent, ProjectActionsModel, ProjectHostingDetails, ProjectHostingOption, ProjectHostingOptionInput, ProjectInfoCardComponent, ProjectItemsComponent, ProjectNameComponent, ProjectService, ProjectTabsComponent, RecentActivitiesComponent, RootDirectoryComponent, SELECTOR_APPLICATIONS_FLOW_PROJECTS_ELEMENT, SaveApplicationAsCodeEventRequest, SaveDFSModifierEventRequest, SaveEnvironmentAsCodeEventRequest, SaveProjectAsCodeEventRequest, SecurityToggleComponent, SkeletonFeedCardComponent, SlottedCardComponent, SourceControlDialogComponent, SourceControlFormComponent, SourceControlFormControlsComponent, StateConfigDialogComponent, StateConfigFormComponent, ThreeColumnComponent, TwoColumnHeaderComponent, UnpackLowCodeUnitRequest, UpgradeDialogComponent, UserFeedResponse };
|
|
7625
|
+
export { ActionsModel, AnalyticsCardComponent, ApplicationsFlowModule, ApplicationsFlowProjectsContext, ApplicationsFlowProjectsElementComponent, ApplicationsFlowProjectsElementState, ApplicationsFlowService, ApplicationsFlowState, ApplicationsFlowStateContext, AppsFlowComponent, BaseFormComponent, BaseFormConfigModel, BaseFormTestComponent, BreadcrumbComponent, BuildPipelineDialogComponent, BuildPipelineFormComponent, BuildsComponent, CardCarouselComponent, CardFormConfigModel, ConnectedSourceComponent, CreateProjectWizardComponent, CustomDomainDialogComponent, DFSModifiersComponent, DFSModifiersDialogComponent, DFSModifiersFormComponent, DevOpsComponent, DevSettingsPresetModel, DevopsSourceControlFormComponent, DomainModel, DomainsComponent, DynamicTabsComponent, DynamicTabsModel, EaCService, EditApplicationDialogComponent, EditApplicationFormComponent, EditProjectDialogComponent, EditProjectFormComponent, EmulatedDevicesToggleComponent, FeedCardSmComponent, FeedCommentFormComponent, FeedEntry, FeedHeaderComponent, FeedHeaderDialogComponent, FeedItem, FeedItemAction, FeedItemContributor, FeedItemTab, FormActionsModel, FormCardComponent, FormModel, FormValuesModel, FormsService, GitAuthComponent, GitHubBranch, GitHubOrganization, GitHubRepository, GitHubSetupState, GitHubWorkflowRun, HeaderComponent, HostingDetailsFormGroupComponent, IoTEnsembleService, License, LicenseAndBillingResponse, MainFeedCardComponent, NPMService, NewApplicationDialogComponent, NpmPackageSelectComponent, PageHeaderComponent, Plan, Price, ProcessorDetailsDialogComponent, ProcessorDetailsFormComponent, ProjectActionsModel, ProjectHostingDetails, ProjectHostingOption, ProjectHostingOptionInput, ProjectInfoCardComponent, ProjectItemsComponent, ProjectNameComponent, ProjectService, ProjectTabsComponent, RecentActivitiesComponent, RootDirectoryComponent, SELECTOR_APPLICATIONS_FLOW_PROJECTS_ELEMENT, SaveApplicationAsCodeEventRequest, SaveDFSModifierEventRequest, SaveEnvironmentAsCodeEventRequest, SaveProjectAsCodeEventRequest, SecurityToggleComponent, SkeletonFeedCardComponent, SlottedCardComponent, SourceControlDialogComponent, SourceControlFormComponent, SourceControlFormControlsComponent, StateConfigDialogComponent, StateConfigFormComponent, ThreeColumnComponent, TwoColumnHeaderComponent, UnpackLowCodeUnitRequest, UpgradeDialogComponent, UserFeedResponse };
|
|
7618
7626
|
//# sourceMappingURL=lowcodeunit-applications-flow-common.mjs.map
|