@lowcodeunit/applications-flow-common 1.33.108-lets-get-social-ish → 1.33.112-lets-get-social-ish

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. package/bundles/lowcodeunit-applications-flow-common.umd.js +32 -21
  2. package/bundles/lowcodeunit-applications-flow-common.umd.js.map +1 -1
  3. package/bundles/lowcodeunit-applications-flow-common.umd.min.js +1 -1
  4. package/bundles/lowcodeunit-applications-flow-common.umd.min.js.map +1 -1
  5. package/esm2015/lib/controls/build-pipeline-form/build-pipeline-form.component.js +18 -14
  6. package/esm2015/lib/dialogs/build-pipeline-dialog/build-pipeline-dialog.component.js +6 -3
  7. package/esm2015/lib/dialogs/source-control-dialog/source-control-dialog.component.js +6 -3
  8. package/esm2015/lib/services/applications-flow.service.js +6 -1
  9. package/fesm2015/lowcodeunit-applications-flow-common.js +32 -17
  10. package/fesm2015/lowcodeunit-applications-flow-common.js.map +1 -1
  11. package/lib/controls/build-pipeline-form/build-pipeline-form.component.d.ts +0 -2
  12. package/lib/controls/build-pipeline-form/build-pipeline-form.component.d.ts.map +1 -1
  13. package/lib/dialogs/build-pipeline-dialog/build-pipeline-dialog.component.d.ts +1 -0
  14. package/lib/dialogs/build-pipeline-dialog/build-pipeline-dialog.component.d.ts.map +1 -1
  15. package/lib/dialogs/source-control-dialog/source-control-dialog.component.d.ts +1 -0
  16. package/lib/dialogs/source-control-dialog/source-control-dialog.component.d.ts.map +1 -1
  17. package/lib/services/applications-flow.service.d.ts +1 -0
  18. package/lib/services/applications-flow.service.d.ts.map +1 -1
  19. package/lowcodeunit-applications-flow-common.metadata.json +1 -1
  20. package/package.json +1 -1
@@ -598,6 +598,11 @@
598
598
  headers: this.loadHeaders(),
599
599
  });
600
600
  };
601
+ ApplicationsFlowService.prototype.UserFeed = function () {
602
+ return this.http.post(this.apiRoot + "/api/lowcodeunit/userfeed", {}, {
603
+ headers: this.loadHeaders(),
604
+ });
605
+ };
601
606
  // Helpers
602
607
  ApplicationsFlowService.prototype.loadHeaders = function () {
603
608
  return {};
@@ -5618,18 +5623,6 @@
5618
5623
  enumerable: false,
5619
5624
  configurable: true
5620
5625
  });
5621
- Object.defineProperty(BuildPipelineFormComponent.prototype, "EditingSourceControl", {
5622
- get: function () {
5623
- var _a, _b;
5624
- var sc = ((_a = this.Environment) === null || _a === void 0 ? void 0 : _a.Sources) ? (_b = this.Environment) === null || _b === void 0 ? void 0 : _b.Sources[this.EditingSourceControlLookup] : null;
5625
- if (sc == null && this.EditingSourceControlLookup) {
5626
- sc = {};
5627
- }
5628
- return sc;
5629
- },
5630
- enumerable: false,
5631
- configurable: true
5632
- });
5633
5626
  Object.defineProperty(BuildPipelineFormComponent.prototype, "NPMTokenFormControl", {
5634
5627
  get: function () {
5635
5628
  return this.BuildPipelineFormGroup.get('npmToken');
@@ -5738,10 +5731,22 @@
5738
5731
  var doa = Object.assign(Object.assign({}, this.DevOpsAction), { Name: this.DevOpsActionNameFormControl.value });
5739
5732
  saveEnvReq.Environment.DevOpsActions[devOpsActionLookup] = doa;
5740
5733
  }
5741
- var source = Object.assign(Object.assign({}, this.EditingSourceControl), { Branches: this.EditingSourceControl.SelectedBranches, MainBranch: this.EditingSourceControl.MainBranchFormControl.value });
5742
- source = Object.assign(Object.assign({}, source), { Type: 'GitHub', Name: this.EditingSourceControlLookup, DevOpsActionTriggerLookups: [devOpsActionLookup], Organization: this.EditingSourceControl.OrganizationFormControl.value, Repository: this.EditingSourceControl.RepositoryFormControl.value });
5743
- var scLookup = "github://" + source.Organization + "/" + source.Repository;
5744
- saveEnvReq.Environment.Sources[scLookup] = source;
5734
+ // let source: EaCSourceControl = {
5735
+ // ...this.EditingSourceControl,
5736
+ // Branches: this.EditingSourceControl.SelectedBranches,
5737
+ // MainBranch: this.EditingSourceControl.MainBranchFormControl.value,
5738
+ // };
5739
+ // source = {
5740
+ // ...source,
5741
+ // Type: 'GitHub',
5742
+ // Name: this.EditingSourceControlLookup,
5743
+ // DevOpsActionTriggerLookups: [devOpsActionLookup],
5744
+ // Organization:
5745
+ // this.EditingSourceControl.OrganizationFormControl.value,
5746
+ // Repository: this.EditingSourceControl.RepositoryFormControl.value,
5747
+ // };
5748
+ // const scLookup = `github://${source.Organization}/${source.Repository}`;
5749
+ // saveEnvReq.Environment.Sources[scLookup] = source;
5745
5750
  this.eacSvc.SaveEnvironmentAsCode(saveEnvReq);
5746
5751
  };
5747
5752
  // Helpers
@@ -5809,7 +5814,7 @@
5809
5814
  BuildPipelineFormComponent.decorators = [
5810
5815
  { type: i0.Component, args: [{
5811
5816
  selector: 'lcu-build-pipeline-form',
5812
- template: "<form class=\"form-card\" [formGroup]=\"BuildPipelineFormGroup\" (ngSubmit)=\"SubmitBuildPipeline()\">\n <!-- *ngIf=\"EditingSourceControl?.Branches?.length > 0\" -->\n <mat-card\n class=\"spread\" \n >\n <mat-card-header>\n <mat-card-title> Build Pipeline </mat-card-title>\n\n <mat-hint>\n Changes made here are reflected for all sources using this\n DevOpsAction\n </mat-hint>\n </mat-card-header>\n\n <mat-card-content>\n\n <ng-container>\n\n <div *ngIf=\"!HostingDetails?.Loading\">\n <mat-form-field class=\"mat-full-width\">\n <mat-select\n formControlName=\"buildPipeline\"\n placeholder=\"Build Pipeline\"\n [disabled]=\"Disabled\"\n (selectionChange)=\"BuildPipelineChanged()\"\n required\n >\n <ng-container\n *ngFor=\"let hostOption of HostingDetails?.HostingOptions; let i = index\"\n >\n <mat-option [value]=\"hostOption?.Lookup\">\n {{ hostOption.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n \n <mat-hint>\n <ng-container *ngFor=\"let hostOption of HostingDetails?.HostingOptions\">\n <span *ngIf=\"BuildPipeline == hostOption?.Lookup\">\n {{ hostOption.Description }}\n </span>\n </ng-container>\n </mat-hint>\n </mat-form-field>\n \n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n formControlName=\"devOpsActionName\"\n placeholder=\"Name of DevOps Action\"\n required=\"true\"\n />\n </mat-form-field>\n \n <ng-container *ngFor=\"let input of SelectedHostingOption?.Inputs\">\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n [formControlName]=\"input.Lookup\"\n [placeholder]=\"input.Placeholder\"\n [required]=\"input.Required\"\n />\n \n <mat-hint>{{ input.Hint }}</mat-hint>\n </mat-form-field>\n </ng-container>\n \n <div *ngIf=\"BuildPipeline == 'npm-release'\">\n <mat-form-field class=\"mat-full-width with-hint padding-bottom-4\">\n <mat-icon matPrefix>security</mat-icon>\n \n <input\n id=\"npm-token\"\n matInput\n type=\"text\"\n formControlName=\"npmToken\"\n placeholder=\"NPM token\"\n [required]=\"!Disabled\"\n style=\"-webkit-text-security: disc;\"\n />\n <mat-hint>\n Securely publish to NPM, provide an NPM Personal Access Token (PAT) with publish access to the organization used for your NPM packages. \n Learn how to create and view access tokens \n <a\n href=\"https://docs.npmjs.com/creating-and-viewing-access-tokens\"\n target=\"_blank\"\n >\n here.\n </a>\n </mat-hint>\n </mat-form-field>\n </div>\n </div>\n \n <div *ngIf=\"HostingDetails?.Loading\">\n <div class=\"spread\">\n <lcu-loader style=\"margin: auto\" [loading]=\"true\"></lcu-loader>\n \n <div class=\"margin-3\">\n <h4 class=\"mat-title\">Loading hosting details</h4>\n </div>\n </div>\n </div>\n </ng-container>\n </mat-card-content>\n <mat-card-actions fxLayoutAlign=\"center center\">\n\n <button \n mat-raised-button \n type=\"submit\" \n fxFlex=\"100%\" \n color=\"primary\" \n [disabled]=\"!BuildPipelineFormGroup.valid || !BuildPipelineFormGroup.dirty\">\n <mat-icon>save</mat-icon>\n Save Build Pipeline\n </button>\n \n </mat-card-actions>\n </mat-card>\n</form>\n",
5817
+ template: "<form class=\"form-card\" [formGroup]=\"BuildPipelineFormGroup\" (ngSubmit)=\"SubmitBuildPipeline()\">\n <mat-card\n class=\"spread\" \n >\n <mat-card-header>\n <mat-card-title> Build Pipeline </mat-card-title>\n\n <mat-hint>\n Changes made here are reflected for all sources using this\n DevOpsAction\n </mat-hint>\n </mat-card-header>\n\n <mat-card-content>\n\n <ng-container>\n\n <div *ngIf=\"!HostingDetails?.Loading\">\n <mat-form-field class=\"mat-full-width\">\n <mat-select\n formControlName=\"buildPipeline\"\n placeholder=\"Build Pipeline\"\n [disabled]=\"Disabled\"\n (selectionChange)=\"BuildPipelineChanged()\"\n required\n >\n <ng-container\n *ngFor=\"let hostOption of HostingDetails?.HostingOptions; let i = index\"\n >\n <mat-option [value]=\"hostOption?.Lookup\">\n {{ hostOption.Name }}\n </mat-option>\n </ng-container>\n </mat-select>\n \n <mat-hint>\n <ng-container *ngFor=\"let hostOption of HostingDetails?.HostingOptions\">\n <span *ngIf=\"BuildPipeline == hostOption?.Lookup\">\n {{ hostOption.Description }}\n </span>\n </ng-container>\n </mat-hint>\n </mat-form-field>\n \n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n formControlName=\"devOpsActionName\"\n placeholder=\"Name of DevOps Action\"\n required=\"true\"\n />\n </mat-form-field>\n \n <ng-container *ngFor=\"let input of SelectedHostingOption?.Inputs\">\n <mat-form-field class=\"mat-full-width\">\n <input\n matInput\n [formControlName]=\"input.Lookup\"\n [placeholder]=\"input.Placeholder\"\n [required]=\"input.Required\"\n />\n \n <mat-hint>{{ input.Hint }}</mat-hint>\n </mat-form-field>\n </ng-container>\n \n <div *ngIf=\"BuildPipeline == 'npm-release'\">\n <mat-form-field class=\"mat-full-width with-hint padding-bottom-4\">\n <mat-icon matPrefix>security</mat-icon>\n \n <input\n id=\"npm-token\"\n matInput\n type=\"text\"\n formControlName=\"npmToken\"\n placeholder=\"NPM token\"\n [required]=\"!Disabled\"\n style=\"-webkit-text-security: disc;\"\n />\n <mat-hint>\n Securely publish to NPM, provide an NPM Personal Access Token (PAT) with publish access to the organization used for your NPM packages. \n Learn how to create and view access tokens \n <a\n href=\"https://docs.npmjs.com/creating-and-viewing-access-tokens\"\n target=\"_blank\"\n >\n here.\n </a>\n </mat-hint>\n </mat-form-field>\n </div>\n </div>\n \n <div *ngIf=\"HostingDetails?.Loading\">\n <div class=\"spread\">\n <lcu-loader style=\"margin: auto\" [loading]=\"true\"></lcu-loader>\n \n <div class=\"margin-3\">\n <h4 class=\"mat-title\">Loading hosting details</h4>\n </div>\n </div>\n </div>\n </ng-container>\n </mat-card-content>\n <mat-card-actions fxLayoutAlign=\"center center\">\n\n <button \n mat-raised-button \n type=\"submit\" \n fxFlex=\"100%\" \n color=\"primary\" \n [disabled]=\"!BuildPipelineFormGroup.valid || !BuildPipelineFormGroup.dirty\">\n <mat-icon>save</mat-icon>\n Save Build Pipeline\n </button>\n \n </mat-card-actions>\n </mat-card>\n</form>\n",
5813
5818
  styles: [""]
5814
5819
  },] }
5815
5820
  ];
@@ -6304,13 +6309,16 @@
6304
6309
  }
6305
6310
  SourceControlDialogComponent.prototype.ngOnInit = function () {
6306
6311
  };
6312
+ SourceControlDialogComponent.prototype.CloseDialog = function () {
6313
+ this.dialogRef.close();
6314
+ };
6307
6315
  return SourceControlDialogComponent;
6308
6316
  }());
6309
6317
  SourceControlDialogComponent.decorators = [
6310
6318
  { type: i0.Component, args: [{
6311
6319
  selector: 'lcu-source-control-dialog',
6312
- 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>",
6313
- styles: [""]
6320
+ template: "\n<div class=\"dialog-header\" fxLayoutAlign=\"end center\">\n <button mat-icon-button (click)=\"CloseDialog()\">\n <mat-icon>cancel</mat-icon>\n </button>\n</div>\n\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>",
6321
+ styles: [".dialog-header{width:100%}"]
6314
6322
  },] }
6315
6323
  ];
6316
6324
  SourceControlDialogComponent.ctorParameters = function () { return [
@@ -6325,13 +6333,16 @@
6325
6333
  }
6326
6334
  BuildPipelineDialogComponent.prototype.ngOnInit = function () {
6327
6335
  };
6336
+ BuildPipelineDialogComponent.prototype.CloseDialog = function () {
6337
+ this.dialogRef.close();
6338
+ };
6328
6339
  return BuildPipelineDialogComponent;
6329
6340
  }());
6330
6341
  BuildPipelineDialogComponent.decorators = [
6331
6342
  { type: i0.Component, args: [{
6332
6343
  selector: 'lcu-build-pipeline-dialog',
6333
- template: "<lcu-build-pipeline-form \n [build-pipeline]=\"data.buildPipeline\" \n [devops-action-lookup]=\"data.devopsActionLookup\"\n [environment]=\"data.environment\" \n [environment-lookup]=\"data.environmentLookup\">\n\n</lcu-build-pipeline-form>",
6334
- styles: [""]
6344
+ template: "<div class=\"dialog-header\" fxLayoutAlign=\"end center\">\n <button mat-icon-button (click)=\"CloseDialog()\">\n <mat-icon>cancel</mat-icon>\n </button>\n</div>\n\n<lcu-build-pipeline-form \n [build-pipeline]=\"data.buildPipeline\" \n [devops-action-lookup]=\"data.devopsActionLookup\"\n [environment]=\"data.environment\" \n [environment-lookup]=\"data.environmentLookup\">\n\n</lcu-build-pipeline-form>",
6345
+ styles: [".dialog-header{width:100%}"]
6335
6346
  },] }
6336
6347
  ];
6337
6348
  BuildPipelineDialogComponent.ctorParameters = function () { return [