@lowcodeunit/applications-flow-common 1.33.54-lets-get-social-ish → 1.33.55-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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@angular/common/http'), require('@lcu/common'), require('@angular/forms'), require('@angular/flex-layout'), require('@lowcodeunit/app-host-common'), require('@angular/cdk/keycodes'), require('rxjs/operators')) :
3
- typeof define === 'function' && define.amd ? define('@lowcodeunit/applications-flow-common', ['exports', '@angular/core', 'rxjs', '@angular/common/http', '@lcu/common', '@angular/forms', '@angular/flex-layout', '@lowcodeunit/app-host-common', '@angular/cdk/keycodes', 'rxjs/operators'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.lowcodeunit = global.lowcodeunit || {}, global.lowcodeunit['applications-flow-common'] = {}), global.ng.core, global.rxjs, global.ng.common.http, global.i2, global.ng.forms, global.ng.flexLayout, global.appHostCommon, global.ng.cdk.keycodes, global.rxjs.operators));
5
- }(this, (function (exports, i0, rxjs, i1, i2, forms, flexLayout, appHostCommon, keycodes, operators) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@angular/common/http'), require('@lcu/common'), require('@angular/forms'), require('@angular/flex-layout'), require('@lowcodeunit/app-host-common'), require('@angular/cdk/keycodes'), require('rxjs/operators'), require('@angular/cdk/layout')) :
3
+ typeof define === 'function' && define.amd ? define('@lowcodeunit/applications-flow-common', ['exports', '@angular/core', 'rxjs', '@angular/common/http', '@lcu/common', '@angular/forms', '@angular/flex-layout', '@lowcodeunit/app-host-common', '@angular/cdk/keycodes', 'rxjs/operators', '@angular/cdk/layout'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.lowcodeunit = global.lowcodeunit || {}, global.lowcodeunit['applications-flow-common'] = {}), global.ng.core, global.rxjs, global.ng.common.http, global.i2, global.ng.forms, global.ng.flexLayout, global.appHostCommon, global.ng.cdk.keycodes, global.rxjs.operators, global.ng.cdk.layout));
5
+ }(this, (function (exports, i0, rxjs, i1, i2, forms, flexLayout, appHostCommon, keycodes, operators, layout) { 'use strict';
6
6
 
7
7
  /*! *****************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
@@ -4640,20 +4640,36 @@
4640
4640
  };
4641
4641
 
4642
4642
  var ThreeColumnComponent = /** @class */ (function () {
4643
- function ThreeColumnComponent() {
4643
+ function ThreeColumnComponent(breakpointObserver) {
4644
+ this.breakpointObserver = breakpointObserver;
4644
4645
  }
4645
4646
  ThreeColumnComponent.prototype.ngOnInit = function () {
4647
+ var _this = this;
4648
+ this.breakpointObserver
4649
+ .observe(['(max-width: 850px)'])
4650
+ .subscribe(function (state) {
4651
+ console.log("Breakpoint: ", state.matches);
4652
+ if (state.matches) {
4653
+ _this.SmallScreen = true;
4654
+ }
4655
+ else {
4656
+ _this.SmallScreen = false;
4657
+ }
4658
+ console.log("SmallScrren = ", _this.SmallScreen);
4659
+ });
4646
4660
  };
4647
4661
  return ThreeColumnComponent;
4648
4662
  }());
4649
4663
  ThreeColumnComponent.decorators = [
4650
4664
  { type: i0.Component, args: [{
4651
4665
  selector: 'lcu-three-column',
4652
- template: "\n<div class=\"col-container\" fxLayout=\"row\" fxLayout.lt-md=\"column\">\n\n <div class=\"col-left\" fxFlex=\"25%\" >\n <ng-content select=\"[left]\"></ng-content>\n </div>\n\n <div class=\"col-center\" fxFlex=\"50%\">\n <ng-content></ng-content>\n </div>\n \n <div class=\"col-right\" fxFlex=\"25%\">\n <ng-content select=\"[right]\"></ng-content>\n </div>\n\n</div>",
4653
- styles: [".col-container{background-color:#ebecf0;height:100%}"]
4666
+ template: "\n<div class=\"col-container\" fxLayout=\"row\" fxLayout.lt-md=\"column\">\n\n <div class=\"col-left\" fxFlex.gt-md=\"25%\" >\n <ng-content select=\"[left]\"></ng-content>\n </div>\n\n <div class=\"col-center\" fxFlex.gt-md=\"50%\" >\n <ng-content></ng-content>\n </div>\n \n <div class=\"col-right\" fxFlex.gt-md=\"25%\" >\n <ng-content select=\"[right]\"></ng-content>\n </div>\n\n</div>\n<!-- below doesn't work -->\n<!-- <div [hidden]=\"!SmallScreen\" class=\"col-container\" fxLayout=\"column\">\n <div fxLayout=\"row\">\n <div class=\"col-left\" fxFlex=\"50%\" >\n <ng-content select=\"[left]\"></ng-content>\n </div>\n\n <div class=\"col-right\" fxFlex=\"50%\">\n <ng-content select=\"[right]\"></ng-content>\n </div>\n </div>\n\n <div class=\"col-center\">\n <ng-content></ng-content>\n </div>\n\n</div> -->",
4667
+ styles: [".col-container,.col-container-sm{background-color:#ebecf0;height:100%}.col-container-sm{display:none}@media only screen and (max-width:850px){.col-container{display:none}.col-container-sm{display:block}}"]
4654
4668
  },] }
4655
4669
  ];
4656
- ThreeColumnComponent.ctorParameters = function () { return []; };
4670
+ ThreeColumnComponent.ctorParameters = function () { return [
4671
+ { type: layout.BreakpointObserver }
4672
+ ]; };
4657
4673
 
4658
4674
  var ColumnInfoCardComponent = /** @class */ (function () {
4659
4675
  function ColumnInfoCardComponent() {
@@ -4732,7 +4748,7 @@
4732
4748
  ProjectInfoCardComponent.decorators = [
4733
4749
  { type: i0.Component, args: [{
4734
4750
  selector: 'lcu-project-info-card',
4735
- template: "<mat-card class=\"project-info-card\">\n\n <div class=\"header-img-container\" fxLayout=\"row\" >\n <div class=\"round-project-img\" fxLayoutAlign=\"center center\">\n <mat-icon class=\"temp-icon\">flutter_dash</mat-icon>\n </div>\n </div>\n\n <div class=\"icon-btn-container\" fxLayout=\"row\" fxLayoutAlign=\"space-between center\" >\n <button mat-icon-button id=\"left-icon\" (click)=\"LeftIconClicked()\">\n <mat-icon>settings</mat-icon>\n </button>\n <button mat-icon-button id=\"right-icon\" (click)=\"RightIconClicked()\">\n <mat-icon>share</mat-icon>\n </button>\n </div>\n\n <mat-card-header class=\"project-card-header\">\n\n <mat-card-title class=\"project-card-name\" *ngIf=\"Name\">{{Name}}</mat-card-title>\n\n <mat-card-subtitle class=\"project-card-description\" *ngIf=\"Description\">{{Description}}</mat-card-subtitle>\n\n <mat-card-subtitle class=\"project-card-host\">\n <a class=\"host-anchor\" *ngIf=\"Subtext\" [href]=\"Subtext\" target=\"_blank\">{{Subtext}}</a>\n </mat-card-subtitle>\n\n </mat-card-header>\n <mat-card-content class=\"card-content-container\">\n <div class=\"stats-container\">\n <ng-content select=\"[stats]\"></ng-content>\n </div>\n\n <div class=\"promo-container\">\n <ng-content select=\"[promo]\"></ng-content>\n </div>\n\n </mat-card-content>\n <mat-card-actions class=\"actions-container\">\n <ng-content select=\"[action]\"></ng-content>\n \n </mat-card-actions>\n </mat-card>\n \n",
4751
+ template: "<mat-card class=\"project-info-card\">\n\n <div class=\"header-img-container\" fxLayout=\"row\" >\n <div class=\"round-project-img\" fxLayoutAlign=\"center center\">\n <mat-icon class=\"temp-icon\">flutter_dash</mat-icon>\n </div>\n </div>\n\n <div class=\"icon-btn-container\" fxLayout=\"row\" fxLayoutAlign=\"space-between center\" >\n <button mat-icon-button id=\"left-icon\" (click)=\"LeftIconClicked()\">\n <mat-icon>settings</mat-icon>\n </button>\n <button mat-icon-button id=\"right-icon\" (click)=\"RightIconClicked()\">\n <mat-icon>share</mat-icon>\n </button>\n </div>\n\n <mat-card-header class=\"project-card-header\" fxLayoutAlign=\"center center\">\n\n <mat-card-title class=\"project-card-name\" *ngIf=\"Name\">{{Name}}</mat-card-title>\n\n <mat-card-subtitle class=\"project-card-description\" *ngIf=\"Description\">{{Description}}</mat-card-subtitle>\n\n <mat-card-subtitle class=\"project-card-host\">\n <a class=\"host-anchor\" *ngIf=\"Subtext\" [href]=\"Subtext\" target=\"_blank\">{{Subtext}}</a>\n </mat-card-subtitle>\n\n </mat-card-header>\n <mat-card-content class=\"card-content-container\">\n <div class=\"stats-container\">\n <ng-content select=\"[stats]\"></ng-content>\n </div>\n\n <div class=\"promo-container\">\n <ng-content select=\"[promo]\"></ng-content>\n </div>\n\n </mat-card-content>\n <mat-card-actions class=\"actions-container\">\n <ng-content select=\"[action]\"></ng-content>\n \n </mat-card-actions>\n </mat-card>\n \n",
4736
4752
  styles: [".project-info-card{background-color:#fff;border:2px solid #d3d3d3;margin:20px;padding:0}.round-project-img{background-color:#dfeff2;border:2px solid #fff;border-radius:40px;height:75px;margin-top:20px;text-align:center;width:75px}.temp-icon{font-size:50px;height:50px;width:50px}.icon-btn-container{margin:5px}.project-card-header{margin-top:50px;text-align:center}.host-anchor{color:#4a918e;text-decoration:none}.header-img-container{background-color:#a4bab3;border-radius:2px 2px 0 0;height:60px;justify-content:center;margin-right:-.5px;margin-top:-.5px!important}.project-card-name{font-size:30px;font-weight:600}.card-content-container{margin-bottom:0!important}.stats-container{border-bottom:1px solid #d3d3d3;border-top:1px solid #d3d3d3}mat-card-actions{margin-bottom:-1px!important;margin-left:0!important;margin-right:-.5px!important}.actions-container{padding:0!important}.info-card-btn{border-radius:0 0 2px 2px;border-top:1px solid #d3d3d3;width:100%}"]
4737
4753
  },] }
4738
4754
  ];
@@ -4814,19 +4830,46 @@
4814
4830
  this.InputLabel = "Create Feature Branch";
4815
4831
  this.selectedBtn = "fb-btn";
4816
4832
  this.addSelectBtn();
4833
+ console.log("create feature branch selected");
4817
4834
  };
4818
4835
  GhControlComponent.prototype.OpenIssue = function () {
4819
4836
  this.removeSelectedBtn();
4820
4837
  this.InputLabel = "Open Issue";
4821
4838
  this.selectedBtn = "oi-btn";
4822
4839
  this.addSelectBtn();
4840
+ console.log("open issue selected");
4823
4841
  };
4824
4842
  GhControlComponent.prototype.CreatePullRequest = function () {
4825
4843
  this.removeSelectedBtn();
4826
4844
  this.InputLabel = "Create Pull Request";
4827
4845
  this.selectedBtn = "pr-btn";
4828
4846
  this.addSelectBtn();
4847
+ console.log("create pull request selected");
4848
+ };
4849
+ GhControlComponent.prototype.OpenMoreInfo = function () {
4850
+ console.log("more info selected");
4829
4851
  };
4852
+ GhControlComponent.prototype.Submit = function () {
4853
+ console.log("submitting: ", this.value);
4854
+ switch (this.selectedBtn) {
4855
+ case "pr-btn":
4856
+ //Pull request
4857
+ console.log("creating pull request: ", this.value);
4858
+ break;
4859
+ case "oi-btn":
4860
+ //Open Issue
4861
+ console.log("Open issue: ", this.value);
4862
+ break;
4863
+ case "fb-btn":
4864
+ //Feature Branch
4865
+ console.log("creating feature branch: ", this.value);
4866
+ break;
4867
+ default:
4868
+ console.log("hmm");
4869
+ break;
4870
+ }
4871
+ };
4872
+ //HELPERS
4830
4873
  GhControlComponent.prototype.addSelectBtn = function () {
4831
4874
  document.getElementById(this.selectedBtn).classList.add('selected');
4832
4875
  };
@@ -4838,7 +4881,7 @@
4838
4881
  GhControlComponent.decorators = [
4839
4882
  { type: i0.Component, args: [{
4840
4883
  selector: 'lcu-gh-control',
4841
- template: "<mat-card class=\"social-card\">\n <div class=\"gh-card-container\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <mat-icon fxFlex=\"20%\" class=\"gh-icon\">error_outline</mat-icon>\n <div fxFlex=\"80%\"class=\"gh-card-main-content\">\n <mat-form-field appearance=\"fill\" class=\"gh-input\">\n <mat-label>{{InputLabel}}</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"value\">\n <!-- <button *ngIf=\"value\" matSuffix mat-icon-button aria-label=\"Clear\" (click)=\"value=''\">\n <mat-icon>close</mat-icon>\n </button> -->\n </mat-form-field>\n </div>\n </div>\n\n <mat-card-actions fxLayout=\"row\" fxLayoutAlign=\"space-around center\">\n <button mat-button (click)=\"CreatePullRequest()\" id=\"pr-btn\">Pull Request</button>\n <button mat-button (click)=\"OpenIssue()\" id=\"oi-btn\">Open Issue</button>\n <button mat-button (click)=\"CreateFeatureBranch()\" id=\"fb-btn\">Feature Branch</button>\n <button mat-icon-button>\n <mat-icon>more_horiz</mat-icon>\n </button>\n </mat-card-actions>\n </mat-card>",
4884
+ template: "<mat-card class=\"social-card\">\n <div class=\"gh-card-container\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <mat-icon fxFlex=\"15%\" class=\"gh-icon\">error_outline</mat-icon>\n <div fxFlex=\"70%\"class=\"gh-card-main-content\">\n <mat-form-field appearance=\"fill\" class=\"gh-input\">\n <mat-label>{{InputLabel}}</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"value\">\n <!-- <button *ngIf=\"value\" matSuffix mat-icon-button aria-label=\"Clear\" (click)=\"value=''\">\n <mat-icon>close</mat-icon>\n </button> -->\n </mat-form-field>\n </div>\n <button fxFlex=\"15%\" mat-button (click)=\"Submit()\" id=\"submit-btn\">Submit</button>\n </div>\n\n <mat-card-actions fxLayout=\"row\" fxLayoutAlign=\"space-around center\">\n <button mat-button (click)=\"CreatePullRequest()\" id=\"pr-btn\">Pull Request</button>\n <button mat-button (click)=\"OpenIssue()\" id=\"oi-btn\">Open Issue</button>\n <button mat-button (click)=\"CreateFeatureBranch()\" id=\"fb-btn\">Feature Branch</button>\n <button mat-icon-button (click)=\"OpenMoreInfo()\">\n <mat-icon>more_horiz</mat-icon>\n </button>\n </mat-card-actions>\n </mat-card>",
4842
4885
  styles: [".social-card{background-color:#fff;border:2px solid #d3d3d3;margin:20px;padding:15px 5px}mat-card-actions{margin-bottom:-1px!important;margin-left:0!important;margin-right:-.5px!important}.gh-icon{font-size:60px;height:60px;text-align:center;width:60px}.gh-input{width:90%}.selected{border:1px solid green}::ng-deep .mat-form-field-flex{border:1px solid;border-radius:30px!important}::ng-deep .mat-form-field-wrapper{padding-bottom:0!important}"]
4843
4886
  },] }
4844
4887
  ];
@@ -4879,8 +4922,8 @@
4879
4922
  TwoColumnHeaderComponent.decorators = [
4880
4923
  { type: i0.Component, args: [{
4881
4924
  selector: 'lcu-two-column-header',
4882
- template: "<div class=\"col-container\" fxLayout=\"row\" fxLayout.lt-md=\"column\">\n\n <div class=\"col-left\" fxFlex=\"15%\" >\n <ng-content select=\"[left]\"></ng-content>\n </div>\n\n <div class=\"col-center\" fxFlex=\"85%\">\n <ng-content></ng-content>\n </div>\n\n</div>\n",
4883
- styles: [".col-container{background-color:#ebecf0}"]
4925
+ template: "<div class=\"col-container\" fxLayout=\"row\">\n\n <div class=\"col-left\" fxFlex=\"15%\" >\n <ng-content select=\"[left]\"></ng-content>\n </div>\n\n <div class=\"col-center\" fxFlex=\"85%\">\n <ng-content></ng-content>\n </div>\n\n</div>\n",
4926
+ styles: [".col-container{background-color:#ebecf0}.col-left{min-width:210px}"]
4884
4927
  },] }
4885
4928
  ];
4886
4929
  TwoColumnHeaderComponent.ctorParameters = function () { return []; };