@wizishop/angular-components 0.0.132 → 0.0.135

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.
@@ -348,6 +348,9 @@ $wac-background-indication: #EDEFF2!default;
348
348
  margin: 0 0 0 10px;
349
349
  }
350
350
  }
351
+ &:first-child {
352
+ margin-left: 18px;
353
+ }
351
354
  }
352
355
  }
353
356
  }
@@ -2259,68 +2262,6 @@ $wac-background-indication: #EDEFF2!default;
2259
2262
  }
2260
2263
  }
2261
2264
  }
2262
- .wac-text {
2263
- font-size: rem(14);
2264
- line-height: rem(25);
2265
- color: $wac-main-text;
2266
- margin: 0 0 rem(30);
2267
- &.grey {
2268
- color: $wac-second-color;
2269
- }
2270
- &.yellow {
2271
- color: $wac-warning-color;
2272
- }
2273
- &.red {
2274
- color: $wac-primary;
2275
- }
2276
- &.label {
2277
- color: $placeholder-color;
2278
- }
2279
- &.optional {
2280
- font-size: rem(12);
2281
- line-height: rem(23);
2282
- color: $color-text-grey;
2283
- font-style: italic;
2284
- }
2285
- p {
2286
- font: inherit;
2287
- line-height: inherit;
2288
- color: inherit;
2289
- margin: inherit;
2290
- }
2291
- }
2292
- .wac-label {
2293
- @include flexbox();
2294
- background-color: $wac-gray-background;
2295
- border-radius: 3px;
2296
- border: 1px solid $wac-gray-background;
2297
- transition: border-color 0.3s ease-in-out;
2298
-
2299
- &__wrapper {
2300
- padding: 7.5px 13px;
2301
- font-size: 14px;
2302
- line-height: 16px;
2303
- color: $wac-second-color;
2304
-
2305
- i {
2306
- margin-left: 10px;
2307
- font-size: 12px;
2308
- line-height: 23px;
2309
- color: $wac-border-form;
2310
- transition: color 0.3s ease-in-out;
2311
- }
2312
- }
2313
-
2314
- &:hover {
2315
- border-color: $wac-input-border;
2316
- transition: border-color 0.3s ease-in-out;
2317
-
2318
- .wac-label__wrapper i {
2319
- color: $wac-second-color;
2320
- transition: color 0.3s ease-in-out;
2321
- }
2322
- }
2323
- }
2324
2265
  .wac-tag {
2325
2266
  display: flex;
2326
2267
  align-items: center;
@@ -2430,6 +2371,68 @@ $wac-background-indication: #EDEFF2!default;
2430
2371
  }
2431
2372
  }
2432
2373
  }
2374
+ .wac-label {
2375
+ @include flexbox();
2376
+ background-color: $wac-gray-background;
2377
+ border-radius: 3px;
2378
+ border: 1px solid $wac-gray-background;
2379
+ transition: border-color 0.3s ease-in-out;
2380
+
2381
+ &__wrapper {
2382
+ padding: 7.5px 13px;
2383
+ font-size: 14px;
2384
+ line-height: 16px;
2385
+ color: $wac-second-color;
2386
+
2387
+ i {
2388
+ margin-left: 10px;
2389
+ font-size: 12px;
2390
+ line-height: 23px;
2391
+ color: $wac-border-form;
2392
+ transition: color 0.3s ease-in-out;
2393
+ }
2394
+ }
2395
+
2396
+ &:hover {
2397
+ border-color: $wac-input-border;
2398
+ transition: border-color 0.3s ease-in-out;
2399
+
2400
+ .wac-label__wrapper i {
2401
+ color: $wac-second-color;
2402
+ transition: color 0.3s ease-in-out;
2403
+ }
2404
+ }
2405
+ }
2406
+ .wac-text {
2407
+ font-size: rem(14);
2408
+ line-height: rem(25);
2409
+ color: $wac-main-text;
2410
+ margin: 0 0 rem(30);
2411
+ &.grey {
2412
+ color: $wac-second-color;
2413
+ }
2414
+ &.yellow {
2415
+ color: $wac-warning-color;
2416
+ }
2417
+ &.red {
2418
+ color: $wac-primary;
2419
+ }
2420
+ &.label {
2421
+ color: $placeholder-color;
2422
+ }
2423
+ &.optional {
2424
+ font-size: rem(12);
2425
+ line-height: rem(23);
2426
+ color: $color-text-grey;
2427
+ font-style: italic;
2428
+ }
2429
+ p {
2430
+ font: inherit;
2431
+ line-height: inherit;
2432
+ color: inherit;
2433
+ margin: inherit;
2434
+ }
2435
+ }
2433
2436
  .wac-loader {
2434
2437
  &.is-small {
2435
2438
  position: absolute;
@@ -4864,6 +4867,23 @@ h4.wac-h4 {
4864
4867
  }
4865
4868
  }
4866
4869
  .wac-field-checkbox {
4870
+ &.disable-wt {
4871
+ .wac-field-checkbox__row {
4872
+ display: flex;
4873
+ width: 100%;
4874
+ }
4875
+ .is-checkradio[type='checkbox'] {
4876
+ & + label {
4877
+ white-space: normal;
4878
+ line-height: 1.4;
4879
+ padding: 0;
4880
+ > span {
4881
+ margin: 0 0 0 30px;
4882
+ transform: translateY(-4px);
4883
+ }
4884
+ }
4885
+ }
4886
+ }
4867
4887
  &__row {
4868
4888
  position: relative;
4869
4889
  min-width: 100%;
@@ -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 () { };
@@ -573,9 +573,11 @@
573
573
  ZindexToggleDirective.prototype.switchToggle = function () {
574
574
  if (this.isActived) {
575
575
  this.renderer.addClass(this.currentElement.nativeElement.parentElement.parentNode, 'zindexToggle');
576
+ this.renderer.addClass(this.currentElement.nativeElement.parentElement.parentNode.parentNode, 'zindexToggle');
576
577
  }
577
578
  else {
578
579
  this.renderer.removeClass(this.currentElement.nativeElement.parentElement.parentNode, 'zindexToggle');
580
+ this.renderer.removeClass(this.currentElement.nativeElement.parentElement.parentNode.parentNode, 'zindexToggle');
579
581
  }
580
582
  };
581
583
  ZindexToggleDirective.prototype.ngOnDestroy = function () {
@@ -687,6 +689,7 @@
687
689
  this.hasInput = false;
688
690
  this.inputPlaceholder = '';
689
691
  this.id = '';
692
+ this.whiteSpace = true;
690
693
  this.disabled = false;
691
694
  }
692
695
  CheckboxComponent.prototype.registerOnChange = function (fn) {
@@ -719,7 +722,7 @@
719
722
  CheckboxComponent.decorators = [
720
723
  { type: i0.Component, args: [{
721
724
  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",
725
+ 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
726
  providers: [{ provide: forms.NG_VALUE_ACCESSOR, useExisting: CheckboxComponent, multi: true }],
724
727
  animations: [inOutY]
725
728
  },] }
@@ -734,7 +737,8 @@
734
737
  hasInput: [{ type: i0.Input }],
735
738
  inputPlaceholder: [{ type: i0.Input }],
736
739
  id: [{ type: i0.Input }],
737
- name: [{ type: i0.Input }]
740
+ name: [{ type: i0.Input }],
741
+ whiteSpace: [{ type: i0.Input }]
738
742
  };
739
743
 
740
744
  var FiltersTableService = /** @class */ (function () {
@@ -2093,7 +2097,7 @@
2093
2097
  HeaderPageComponent.decorators = [
2094
2098
  { type: i0.Component, args: [{
2095
2099
  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"
2100
+ 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
2101
  },] }
2098
2102
  ];
2099
2103
  HeaderPageComponent.ctorParameters = function () { return []; };
@@ -3186,7 +3190,8 @@
3186
3190
  var _this = this;
3187
3191
  this.openCategories = true;
3188
3192
  setTimeout(function () {
3189
- _this.searchElement.nativeElement.focus();
3193
+ var _a;
3194
+ (_a = _this.searchElement.nativeElement) === null || _a === void 0 ? void 0 : _a.focus();
3190
3195
  }, 0);
3191
3196
  };
3192
3197
  SelectComponent.prototype.unselectAll = function () {