@wizishop/angular-components 0.0.164 → 0.0.166

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.
@@ -4308,13 +4308,17 @@
4308
4308
  this.copyAction = new i0.EventEmitter();
4309
4309
  this.worldAction = new i0.EventEmitter();
4310
4310
  this.checkboxAction = new i0.EventEmitter();
4311
+ this.nameRadio = 'wacBlockCheckboxRadio';
4312
+ this.isFirst = false;
4311
4313
  }
4312
4314
  BlockWithCheckboxComponent.prototype.ngOnInit = function () {
4315
+ this.randomLabelName = 'radioBlock' + Math.random() * (900 - 700) + 700;
4313
4316
  };
4314
4317
  BlockWithCheckboxComponent.prototype.eventSelected = function (event) {
4315
- this.selected = !this.selected;
4316
- console.log(this.selected);
4318
+ console.log(event);
4319
+ this.selected = event.target.checked;
4317
4320
  this.checkboxAction.emit(this.selected);
4321
+ this.isFirst = false;
4318
4322
  };
4319
4323
  BlockWithCheckboxComponent.prototype.eventCopy = function () {
4320
4324
  this.copyAction.emit(true);
@@ -4322,12 +4326,15 @@
4322
4326
  BlockWithCheckboxComponent.prototype.eventWorld = function () {
4323
4327
  this.worldAction.emit(true);
4324
4328
  };
4329
+ BlockWithCheckboxComponent.prototype.removeFirstClass = function () {
4330
+ document.querySelectorAll('.firstWacRadioBLock')[0].classList.remove('firstWacRadioBLock');
4331
+ };
4325
4332
  return BlockWithCheckboxComponent;
4326
4333
  }());
4327
4334
  BlockWithCheckboxComponent.decorators = [
4328
4335
  { type: i0.Component, args: [{
4329
4336
  selector: 'wac-block-with-checkbox',
4330
- template: "<div class=\"block-with-checkbox\">\n <div class=\"block-with-checkbox__left\">\n <div class=\"wac-radio-block\">\n <div class=\"wac-radio__row\">\n <input type=\"checkbox\" [value]=\"selected\" (click)=\"eventSelected($event)\" id=\"radioBlock\">\n <label for=\"radioBlock\"></label>\n </div>\n </div>\n </div>\n <div class=\"block-with-checkbox__center\">\n <ng-content></ng-content>\n </div>\n <div class=\"block-with-checkbox__right\">\n <div><wac-button extraClasses=\"is-blue opacity static-width\" [iconFontSize]=\"18\" [icon]=\"iconCopy\" (click)=\"eventCopy()\"></wac-button></div>\n <div><wac-button extraClasses=\"is-green opacity static-width\" [iconFontSize]=\"18\" [icon]=\"iconWorld\" (click)=\"eventWorld()\"></wac-button></div>\n </div>\n</div>\n"
4337
+ template: "<div class=\"block-with-checkbox\" [ngClass]=\"{'selected': inputRadioA.checked, 'firstWacRadioBLock': isFirst}\" (mouseover)=\"removeFirstClass()\">\n <div class=\"block-with-checkbox__left\" (click)=\"inputRadioA.click()\">\n <div class=\"wac-radio-block\">\n <div class=\"wac-radio__row\">\n <input #inputRadioA [name]=\"nameRadio\" type=\"radio\" [value]=\"selected\" (change)=\"eventSelected($event)\" [id]=\"randomLabelName\">\n <label [for]=\"randomLabelName\"></label>\n </div>\n </div>\n </div>\n <div class=\"block-with-checkbox__center\" (click)=\"inputRadioA.click()\">\n <ng-content></ng-content>\n </div>\n <div class=\"block-with-checkbox__right\">\n <div><wac-button extraClasses=\"is-blue opacity static-width\" [iconFontSize]=\"18\" [icon]=\"iconCopy\" (click)=\"eventCopy()\"></wac-button></div>\n <div><wac-button extraClasses=\"is-green opacity static-width\" [iconFontSize]=\"18\" [icon]=\"iconWorld\" (click)=\"eventWorld()\"></wac-button></div>\n </div>\n</div>\n"
4331
4338
  },] }
4332
4339
  ];
4333
4340
  BlockWithCheckboxComponent.ctorParameters = function () { return []; };
@@ -4337,7 +4344,9 @@
4337
4344
  iconWorld: [{ type: i0.Input }],
4338
4345
  copyAction: [{ type: i0.Output }],
4339
4346
  worldAction: [{ type: i0.Output }],
4340
- checkboxAction: [{ type: i0.Output }]
4347
+ checkboxAction: [{ type: i0.Output }],
4348
+ nameRadio: [{ type: i0.Input }],
4349
+ isFirst: [{ type: i0.Input }]
4341
4350
  };
4342
4351
 
4343
4352
  var ConfirmDeleteComponent = /** @class */ (function () {
@@ -4379,6 +4388,7 @@
4379
4388
  var MosaicComponent = /** @class */ (function () {
4380
4389
  function MosaicComponent() {
4381
4390
  this.isLoading = true;
4391
+ this.import = new i0.EventEmitter();
4382
4392
  }
4383
4393
  MosaicComponent.prototype.ngOnInit = function () {
4384
4394
  if (this.items) {
@@ -4389,6 +4399,9 @@
4389
4399
  }
4390
4400
  this.isLoading = false;
4391
4401
  };
4402
+ MosaicComponent.prototype.emitIndex = function (index) {
4403
+ this.import.emit(index);
4404
+ };
4392
4405
  MosaicComponent.prototype.sliceIntoChunks = function (arr, chunkSize) {
4393
4406
  var res = [];
4394
4407
  for (var i = 0; i < arr.length; i += chunkSize) {
@@ -4402,12 +4415,15 @@
4402
4415
  MosaicComponent.decorators = [
4403
4416
  { type: i0.Component, args: [{
4404
4417
  selector: 'wac-mosaic',
4405
- template: "<div class=\"wac-mosaic__loader\" *ngIf=\"isLoading\">\n <wac-loader></wac-loader>\n</div>\n<div class=\"wac-mosaic\" *ngIf=\"!isLoading\">\n <div class=\"wac-mosaic__wrapper\">\n <div class=\"wac-mosaic__wrapper__column\" *ngIf=\"columnLeft\">\n <div class=\"wac-mosaic__wrapper__column__item\" *ngFor=\"let img of columnLeft; let i = index;\">\n <img [src]=\"img\" />\n </div>\n </div>\n <div class=\"wac-mosaic__wrapper__column\" *ngIf=\"columnCenter\" >\n <div class=\"wac-mosaic__wrapper__column__item\" *ngFor=\"let img of columnCenter; let i = index;\">\n <img [src]=\"img\" />\n </div>\n </div>\n <div class=\"wac-mosaic__wrapper__column\" *ngIf=\"columnRight\">\n <div class=\"wac-mosaic__wrapper__column__item\" *ngFor=\"let img of columnRight; let i = index;\">\n <img [src]=\"img\" />\n </div>\n </div>\n </div>\n</div>\n"
4418
+ template: "<div class=\"wac-mosaic__loader\" *ngIf=\"isLoading\">\n <wac-loader></wac-loader>\n</div>\n<div class=\"wac-mosaic\" *ngIf=\"!isLoading\">\n <div class=\"wac-mosaic__wrapper\">\n <div class=\"wac-mosaic__wrapper__column\" *ngIf=\"columnLeft\">\n <div class=\"wac-mosaic__wrapper__column__item\" *ngFor=\"let img of columnLeft; let i = index;\">\n <img [src]=\"img\" />\n <div class=\"hover\">\n <wac-button [icon]=\"iconButtons\" [label]=\"labelButtons\" [extraClasses]=\"'is-success'\" (click)=\"emitIndex(i)\"></wac-button>\n </div>\n </div>\n </div>\n <div class=\"wac-mosaic__wrapper__column\" *ngIf=\"columnCenter\" >\n <div class=\"wac-mosaic__wrapper__column__item\" *ngFor=\"let img of columnCenter; let i = index;\">\n <img [src]=\"img\" />\n <div class=\"hover\">\n <wac-button [icon]=\"iconButtons\" [label]=\"labelButtons\" [extraClasses]=\"'is-success'\" (click)=\"emitIndex(i + this.columnLeft.length)\"></wac-button>\n </div>\n </div>\n </div>\n <div class=\"wac-mosaic__wrapper__column\" *ngIf=\"columnRight\">\n <div class=\"wac-mosaic__wrapper__column__item\" *ngFor=\"let img of columnRight; let i = index;\">\n <img [src]=\"img\" />\n <div class=\"hover\">\n <wac-button [icon]=\"iconButtons\" [label]=\"labelButtons\" [extraClasses]=\"'is-success'\" (click)=\"emitIndex(i + this.columnLeft.length + this.columnCenter.length)\"></wac-button>\n </div>\n </div>\n </div>\n </div>\n</div>\n"
4406
4419
  },] }
4407
4420
  ];
4408
4421
  MosaicComponent.ctorParameters = function () { return []; };
4409
4422
  MosaicComponent.propDecorators = {
4410
- items: [{ type: i0.Input }]
4423
+ items: [{ type: i0.Input }],
4424
+ labelButtons: [{ type: i0.Input }],
4425
+ iconButtons: [{ type: i0.Input }],
4426
+ import: [{ type: i0.Output }]
4411
4427
  };
4412
4428
 
4413
4429
  var components = [