@wizishop/angular-components 0.0.131 → 0.0.134

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.
@@ -338,7 +338,7 @@
338
338
  var InputSearchComponent = /** @class */ (function () {
339
339
  function InputSearchComponent() {
340
340
  this.placeholder = '';
341
- this.smallPadding = false;
341
+ this.smallPadding = false; // todo Try to be more flexible like changing type : export type PaddingConfig = "default" | "small" | "big" | "no-padding";
342
342
  this.innerValue = '';
343
343
  this.changeDebounced = new i0.EventEmitter(); // debounced
344
344
  this.onTouchedCallback = function () { };
@@ -687,6 +687,7 @@
687
687
  this.hasInput = false;
688
688
  this.inputPlaceholder = '';
689
689
  this.id = '';
690
+ this.whiteSpace = true;
690
691
  this.disabled = false;
691
692
  }
692
693
  CheckboxComponent.prototype.registerOnChange = function (fn) {
@@ -719,7 +720,7 @@
719
720
  CheckboxComponent.decorators = [
720
721
  { type: i0.Component, args: [{
721
722
  selector: 'wac-checkbox',
722
- template: "<div class=\"wac-field-checkbox\" [ngClass]=\"{ 'wac-field-checkbox--nowrap': type === 'column', alone: alone }\">\n <div class=\"wac-field-checkbox__row\">\n <input\n type=\"checkbox\"\n [id]=\"id\"\n class=\"is-checkradio\"\n [name]=\"name\"\n [value]=\"value\"\n [disabled]=\"disabled\"\n [(ngModel)]=\"value\"\n [checked]=\"checked\"\n (ngModelChange)=\"onChange($event)\"\n />\n <label [attr.for]=\"id\"><span>{{ label }}</span></label>\n </div>\n <input\n *ngIf=\"hasInput && checked\"\n [@inOutYAnimation]\n type=\"text\"\n [placeholder]=\"inputPlaceholder\"\n (click)=\"inputClick($event)\"\n />\n</div>\n",
723
+ template: "<div class=\"wac-field-checkbox\" [ngClass]=\"{ 'wac-field-checkbox--nowrap': type === 'column', 'disable-wt' : !whiteSpace, alone: alone }\">\n <div class=\"wac-field-checkbox__row\">\n <input\n type=\"checkbox\"\n [id]=\"id\"\n class=\"is-checkradio\"\n [name]=\"name\"\n [value]=\"value\"\n [disabled]=\"disabled\"\n [(ngModel)]=\"value\"\n [checked]=\"checked\"\n (ngModelChange)=\"onChange($event)\"\n />\n <label [attr.for]=\"id\"><span [innerHTML]=\"label\"></span></label>\n </div>\n <input\n *ngIf=\"hasInput && checked\"\n [@inOutYAnimation]\n type=\"text\"\n [placeholder]=\"inputPlaceholder\"\n (click)=\"inputClick($event)\"\n />\n</div>\n",
723
724
  providers: [{ provide: forms.NG_VALUE_ACCESSOR, useExisting: CheckboxComponent, multi: true }],
724
725
  animations: [inOutY]
725
726
  },] }
@@ -734,7 +735,8 @@
734
735
  hasInput: [{ type: i0.Input }],
735
736
  inputPlaceholder: [{ type: i0.Input }],
736
737
  id: [{ type: i0.Input }],
737
- name: [{ type: i0.Input }]
738
+ name: [{ type: i0.Input }],
739
+ whiteSpace: [{ type: i0.Input }]
738
740
  };
739
741
 
740
742
  var FiltersTableService = /** @class */ (function () {
@@ -2093,7 +2095,7 @@
2093
2095
  HeaderPageComponent.decorators = [
2094
2096
  { type: i0.Component, args: [{
2095
2097
  selector: 'wac-header-page',
2096
- template: "<div class=\"wac-header-page\">\n <div class=\"wac-header-page__maxWidth\">\n <div class=\"wac-header-page__maxWidth__top\">\n <div class=\"wac-header-page__maxWidth__top__left\">\n <a *ngIf=\"linkBack\" [routerLink]=\"linkBack\"><i class=\"fas fa-chevron-left\"></i></a>\n <wac-h1>{{ title }}<ng-content select=\"[role=header]\"></ng-content></wac-h1>\n </div>\n <div class=\"wac-header-page__maxWidth__top__right\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n</div>\n"
2098
+ template: "<div class=\"wac-header-page\">\n <div class=\"wac-header-page__maxWidth\">\n <div class=\"wac-header-page__maxWidth__top\">\n <div class=\"wac-header-page__maxWidth__top__left\">\n <!-- TODO Hard to use when only want a button and not a router link -->\n <a *ngIf=\"linkBack\" [routerLink]=\"linkBack\"><i class=\"fas fa-chevron-left\"></i></a>\n <wac-h1>{{ title }}<ng-content select=\"[role=header]\"></ng-content></wac-h1>\n </div>\n <div class=\"wac-header-page__maxWidth__top__right\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n</div>\n"
2097
2099
  },] }
2098
2100
  ];
2099
2101
  HeaderPageComponent.ctorParameters = function () { return []; };
@@ -3186,7 +3188,8 @@
3186
3188
  var _this = this;
3187
3189
  this.openCategories = true;
3188
3190
  setTimeout(function () {
3189
- _this.searchElement.nativeElement.focus();
3191
+ var _a;
3192
+ (_a = _this.searchElement.nativeElement) === null || _a === void 0 ? void 0 : _a.focus();
3190
3193
  }, 0);
3191
3194
  };
3192
3195
  SelectComponent.prototype.unselectAll = function () {