@wizishop/angular-components 0.0.145 → 0.0.146

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.
@@ -4212,24 +4212,33 @@
4212
4212
 
4213
4213
  var BreadcrumbsComponent = /** @class */ (function () {
4214
4214
  function BreadcrumbsComponent() {
4215
+ this.index = 0;
4216
+ this.indexChange = new i0.EventEmitter();
4215
4217
  }
4216
4218
  BreadcrumbsComponent.prototype.ngOnInit = function () {
4217
4219
  };
4220
+ BreadcrumbsComponent.prototype.valueChanged = function (i) {
4221
+ this.index = i;
4222
+ this.indexChange.emit(this.index);
4223
+ };
4218
4224
  return BreadcrumbsComponent;
4219
4225
  }());
4220
4226
  BreadcrumbsComponent.decorators = [
4221
4227
  { type: i0.Component, args: [{
4222
4228
  selector: 'wac-breadcrumbs',
4223
- template: "<div class=\"wac-breadcrumbs\">\n <div class=\"wac-breadcrumbs__wrapper\">\n <div class=\"wac-breadcrumbs__item\" *ngFor=\"let b of breadcrumbs; let i = index;\">\n <div class=\"round\" [ngClass]=\"{'valid': b.valid, 'current': b['current']}\"><span *ngIf=\"!b.valid\"><span *ngIf=\"i < 9\">0</span>{{ i + 1 }}</span><i class=\"fas fa-check\" *ngIf=\"b.valid\"></i></div>\n <div class=\"name\" [ngClass]=\"{'valid': b.valid}\">{{ b.name }}</div>\n <i class=\"fas fa-chevron-right\"></i>\n </div>\n </div>\n</div>\n"
4229
+ template: "<div class=\"wac-breadcrumbs\">\n <div class=\"wac-breadcrumbs__wrapper\">\n <div class=\"wac-breadcrumbs__item\" *ngFor=\"let b of breadcrumbs; let i = index;\" [ngClass]=\"{'valid': b.valid, 'current': b['current']}\" (click)=\"valueChanged(i)\">\n <div class=\"round\" [ngClass]=\"{'valid': b.valid, 'current': b['current']}\"><span *ngIf=\"!b.valid\"><span *ngIf=\"i < 9\">0</span>{{ i + 1 }}</span><i class=\"fas fa-check\" *ngIf=\"b.valid\"></i></div>\n <div class=\"name\" [ngClass]=\"{'valid': b.valid}\">{{ b.name }}</div>\n <i class=\"fas fa-chevron-right\"></i>\n </div>\n </div>\n</div>\n"
4224
4230
  },] }
4225
4231
  ];
4226
4232
  BreadcrumbsComponent.ctorParameters = function () { return []; };
4227
4233
  BreadcrumbsComponent.propDecorators = {
4228
- breadcrumbs: [{ type: i0.Input }]
4234
+ breadcrumbs: [{ type: i0.Input }],
4235
+ indexChange: [{ type: i0.Output }]
4229
4236
  };
4230
4237
 
4231
4238
  var CardPriceComponent = /** @class */ (function () {
4232
4239
  function CardPriceComponent() {
4240
+ this.disabled = false;
4241
+ this.btnTextcolor = '#ffffff';
4233
4242
  this.click = new i0.EventEmitter();
4234
4243
  }
4235
4244
  CardPriceComponent.prototype.ngOnInit = function () {
@@ -4242,7 +4251,7 @@
4242
4251
  CardPriceComponent.decorators = [
4243
4252
  { type: i0.Component, args: [{
4244
4253
  selector: 'wac-card-price',
4245
- template: "<div class=\"wac-card-price\">\n <strong>{{amount}}</strong>\n <p>{{title}}</p>\n <div class=\"price\">\n <span class=\"amount\">{{price}} <span>{{currency}}</span></span><span class=\"month\">{{priceWording}}</span>\n </div>\n <div class=\"subtitle\">{{subtitle}}</div>\n <div class=\"cta\">\n <wac-button [label]=\"btnLabel\" extraClasses=\"is-success\" (click)=\"triggerClick()\"></wac-button>\n </div>\n</div>\n"
4254
+ template: "<div class=\"wac-card-price\">\n <strong>{{amount}}</strong>\n <p>{{title}}</p>\n <div class=\"price\">\n <span class=\"amount\">{{price}} <span>{{currency}}</span></span><span class=\"month\">{{priceWording}}</span>\n </div>\n <div class=\"subtitle\">{{subtitle}}</div>\n <div class=\"cta\">\n <wac-button [label]=\"btnLabel\" extraClasses=\"is-success\" (click)=\"triggerClick()\" [disabled]=\"disabled\" [textcolor]=\"btnTextcolor\"></wac-button>\n </div>\n</div>\n"
4246
4255
  },] }
4247
4256
  ];
4248
4257
  CardPriceComponent.ctorParameters = function () { return []; };
@@ -4254,6 +4263,8 @@
4254
4263
  priceWording: [{ type: i0.Input }],
4255
4264
  subtitle: [{ type: i0.Input }],
4256
4265
  btnLabel: [{ type: i0.Input }],
4266
+ disabled: [{ type: i0.Input }],
4267
+ btnTextcolor: [{ type: i0.Input }],
4257
4268
  click: [{ type: i0.Output }]
4258
4269
  };
4259
4270