@wizishop/angular-components 0.0.81 → 0.0.84

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.
@@ -845,6 +845,7 @@
845
845
 
846
846
  var TagComponent = /** @class */ (function () {
847
847
  function TagComponent() {
848
+ //todo Refacto, open/close should be handle outside this component
848
849
  this.label = '';
849
850
  this.hasClose = false;
850
851
  this.big = false;
@@ -881,19 +882,19 @@
881
882
  this.underline = false;
882
883
  this.button = false;
883
884
  this.tabs = [];
885
+ this.index = 0;
884
886
  this.indexChange = new i0.EventEmitter();
885
- this.currentIndex = 0;
886
887
  }
887
888
  TabComponent.prototype.valueChanged = function (i) {
888
- this.currentIndex = i;
889
- this.indexChange.emit(this.currentIndex);
889
+ this.index = i;
890
+ this.indexChange.emit(this.index);
890
891
  };
891
892
  return TabComponent;
892
893
  }());
893
894
  TabComponent.decorators = [
894
895
  { type: i0.Component, args: [{
895
896
  selector: 'wac-tab',
896
- template: "<div class=\"wac-tab\" [ngClass]=\"{'wac-tab--underline': underline, 'wac-tab--button' : button}\">\n <div class=\"wac-tab__wrapper\">\n <a\n *ngFor=\"let tab of tabs\"\n class=\"wac-tab__wrapper__tab\"\n [ngClass]=\"currentIndex === tab.index ? 'wac-tab__wrapper__tab--selected' : ''\"\n (click)=\"valueChanged(tab.index)\"\n >\n {{ tab.label }}\n </a>\n </div>\n</div>\n",
897
+ template: "<div class=\"wac-tab\" [ngClass]=\"{'wac-tab--underline': underline, 'wac-tab--button' : button}\">\n <div class=\"wac-tab__wrapper\">\n <a\n *ngFor=\"let tab of tabs\"\n class=\"wac-tab__wrapper__tab\"\n [ngClass]=\"index === tab.index ? 'wac-tab__wrapper__tab--selected' : ''\"\n (click)=\"valueChanged(tab.index)\"\n >\n {{ tab.label }}\n </a>\n </div>\n</div>\n",
897
898
  encapsulation: i0.ViewEncapsulation.None
898
899
  },] }
899
900
  ];
@@ -902,6 +903,7 @@
902
903
  underline: [{ type: i0.Input }],
903
904
  button: [{ type: i0.Input }],
904
905
  tabs: [{ type: i0.Input }],
906
+ index: [{ type: i0.Input }],
905
907
  indexChange: [{ type: i0.Output }]
906
908
  };
907
909
 
@@ -2006,8 +2008,8 @@
2006
2008
  this.textStateDisable = '';
2007
2009
  this.showInput = false;
2008
2010
  this.danger = false;
2009
- this.switchChange = new i0.EventEmitter();
2010
- this.changeInput = new i0.EventEmitter();
2011
+ this.switchChange = new i0.EventEmitter(); // todo set emitted type
2012
+ this.changeInput = new i0.EventEmitter(); // todo set emitted type
2011
2013
  }
2012
2014
  SwitchComponent.prototype.ngOnInit = function () {
2013
2015
  this.id = 'switch-' + Math.floor(Math.random() * Math.floor(1000));
@@ -2080,7 +2082,7 @@
2080
2082
  AlertComponent.decorators = [
2081
2083
  { type: i0.Component, args: [{
2082
2084
  selector: 'wac-alert',
2083
- template: "<div class=\"wac-alert\" [ngClass]=\"{ success: success, warning: warning, alert: alert }\">\n <i *ngIf=\"icon\" [ngClass]=\"iconClass\"></i>\n <p><ng-content></ng-content></p>\n</div>\n"
2085
+ template: "<div class=\"wac-alert\" [ngClass]=\"{ success: success, warning: warning, alert: alert }\">\n <i *ngIf=\"icon\" [ngClass]=\"iconClass\"></i>\n <p><ng-content></ng-content></p> <!-- ! Refacto : Remove p tag, attention \u00E0 wizi-admin -->\n</div>\n"
2084
2086
  },] }
2085
2087
  ];
2086
2088
  AlertComponent.ctorParameters = function () { return []; };