@wizishop/angular-components 14.4.30 → 14.4.32

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.
@@ -11,7 +11,7 @@ import { PerfectScrollbarModule } from 'ngx-perfect-scrollbar';
11
11
  import { Subject, merge, takeUntil as takeUntil$1, startWith, fromEvent, ReplaySubject, interval, map as map$1 } from 'rxjs';
12
12
  import { takeUntil, debounceTime, distinctUntilChanged, tap, filter, map, takeWhile } from 'rxjs/operators';
13
13
  import * as i1$1 from '@angular/cdk/overlay';
14
- import { TAB, DOWN_ARROW, UP_ARROW, LEFT_ARROW, RIGHT_ARROW, A, Z, ZERO, NINE, ENTER, SPACE, hasModifierKey, ESCAPE } from '@angular/cdk/keycodes';
14
+ import { TAB, DOWN_ARROW, UP_ARROW, LEFT_ARROW, RIGHT_ARROW, ENTER, hasModifierKey, ESCAPE } from '@angular/cdk/keycodes';
15
15
  import { CdkTableModule } from '@angular/cdk/table';
16
16
  import { trigger, transition, style, animate, state, animation, query, stagger } from '@angular/animations';
17
17
  import { TagInputModule } from 'ngx-chips';
@@ -650,7 +650,7 @@ class SelectDirective {
650
650
  keyCode === UP_ARROW ||
651
651
  keyCode === LEFT_ARROW ||
652
652
  keyCode === RIGHT_ARROW;
653
- const isTyping = (keyCode >= A && keyCode <= Z) || (keyCode >= ZERO && keyCode <= NINE);
653
+ // const isTyping = (keyCode >= A && keyCode <= Z) || (keyCode >= ZERO && keyCode <= NINE);
654
654
  if (isArrowKey) {
655
655
  event.preventDefault(); // prevents the page from scrolling
656
656
  // select the next option on arrow key down
@@ -661,10 +661,12 @@ class SelectDirective {
661
661
  this.valueChangeService.selectPreviousOption();
662
662
  return;
663
663
  }
664
+ /*
664
665
  if (isTyping) {
665
- this.valueChangeService.searchOptionByFirstLetter(event.key);
666
- return;
666
+ this.valueChangeService.searchOptionByFirstLetter(event.key);
667
+ return;
667
668
  }
669
+ */
668
670
  }
669
671
  writeValue(value) {
670
672
  if (typeof value === 'undefined') {
@@ -1479,10 +1481,10 @@ class TagComponent {
1479
1481
  }
1480
1482
  }
1481
1483
  TagComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: TagComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1482
- TagComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: TagComponent, selector: "wac-tag", inputs: { label: "label", class: "class", hasClose: "hasClose", draggable: "draggable", big: "big", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngImport: i0, template: "<div class=\"wac-tag\" [classList]=\"'wac-tag--' + class\" [ngClass]=\"{ hover: hasClose, 'big': big , draggable: draggable}\">\n <div *ngIf=\"draggable\" class=\"wac-tag__draggable\"></div>\n {{ label }}\n <span class=\"wac-tag__close\" *ngIf=\"hasClose\" (click)=\"toggleTag()\"><i class=\"fas fa-times\"></i></span>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1484
+ TagComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: TagComponent, selector: "wac-tag", inputs: { label: "label", class: "class", hasClose: "hasClose", draggable: "draggable", big: "big", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngImport: i0, template: "<div class=\"wac-tag\" [classList]=\"'wac-tag--' + class\" [ngClass]=\"{ hover: hasClose, 'big': big , draggable: draggable}\">\n <div *ngIf=\"draggable\" class=\"wac-tag__draggable\">\n <span>\n <span></span>\n </span>\n </div>\n {{ label }}\n <span class=\"wac-tag__close\" *ngIf=\"hasClose\" (click)=\"toggleTag()\"><i class=\"fas fa-times\"></i></span>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1483
1485
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: TagComponent, decorators: [{
1484
1486
  type: Component,
1485
- args: [{ selector: 'wac-tag', template: "<div class=\"wac-tag\" [classList]=\"'wac-tag--' + class\" [ngClass]=\"{ hover: hasClose, 'big': big , draggable: draggable}\">\n <div *ngIf=\"draggable\" class=\"wac-tag__draggable\"></div>\n {{ label }}\n <span class=\"wac-tag__close\" *ngIf=\"hasClose\" (click)=\"toggleTag()\"><i class=\"fas fa-times\"></i></span>\n</div>\n" }]
1487
+ args: [{ selector: 'wac-tag', template: "<div class=\"wac-tag\" [classList]=\"'wac-tag--' + class\" [ngClass]=\"{ hover: hasClose, 'big': big , draggable: draggable}\">\n <div *ngIf=\"draggable\" class=\"wac-tag__draggable\">\n <span>\n <span></span>\n </span>\n </div>\n {{ label }}\n <span class=\"wac-tag__close\" *ngIf=\"hasClose\" (click)=\"toggleTag()\"><i class=\"fas fa-times\"></i></span>\n</div>\n" }]
1486
1488
  }], ctorParameters: function () { return []; }, propDecorators: { label: [{
1487
1489
  type: Input
1488
1490
  }], class: [{
@@ -4899,7 +4901,7 @@ class SelectTestComponent extends SelectDirective {
4899
4901
  keyCode === UP_ARROW ||
4900
4902
  keyCode === LEFT_ARROW ||
4901
4903
  keyCode === RIGHT_ARROW;
4902
- const isOpenKey = keyCode === ENTER || keyCode === SPACE;
4904
+ const isOpenKey = keyCode === ENTER;
4903
4905
  // Open the select on ALT + arrow key to match the native <select>
4904
4906
  if ((isOpenKey && !hasModifierKey(event)) ||
4905
4907
  (event.altKey && isArrowKey)) {
@@ -4915,7 +4917,7 @@ class SelectTestComponent extends SelectDirective {
4915
4917
  keyCode === UP_ARROW ||
4916
4918
  keyCode === LEFT_ARROW ||
4917
4919
  keyCode === RIGHT_ARROW;
4918
- const isEscapeKey = keyCode === ESCAPE || keyCode === ENTER || keyCode === SPACE || keyCode === TAB;
4920
+ const isEscapeKey = keyCode === ESCAPE || keyCode === ENTER || keyCode === TAB;
4919
4921
  if ((isArrowKey && event.altKey) || isEscapeKey) {
4920
4922
  // Close the select on ALT + arrow key to match the native <select>
4921
4923
  this.openPanel = false;