@wizishop/angular-components 15.1.14 → 15.1.15
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.
- package/angular-components.scss +50 -50
- package/esm2020/lib/components/select/select/select.directive.mjs +5 -7
- package/fesm2015/wizishop-angular-components.mjs +4 -6
- package/fesm2015/wizishop-angular-components.mjs.map +1 -1
- package/fesm2020/wizishop-angular-components.mjs +4 -6
- package/fesm2020/wizishop-angular-components.mjs.map +1 -1
- package/package.json +1 -1
- package/wizishop-angular-components-15.1.15.tgz +0 -0
- package/wizishop-angular-components-15.1.14.tgz +0 -0
|
@@ -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, ENTER, hasModifierKey, ESCAPE } from '@angular/cdk/keycodes';
|
|
14
|
+
import { TAB, DOWN_ARROW, UP_ARROW, LEFT_ARROW, RIGHT_ARROW, A, Z, ZERO, NINE, 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';
|
|
@@ -705,7 +705,7 @@ class SelectDirective {
|
|
|
705
705
|
keyCode === UP_ARROW ||
|
|
706
706
|
keyCode === LEFT_ARROW ||
|
|
707
707
|
keyCode === RIGHT_ARROW;
|
|
708
|
-
|
|
708
|
+
const isTyping = (keyCode >= A && keyCode <= Z) || (keyCode >= ZERO && keyCode <= NINE);
|
|
709
709
|
if (isArrowKey) {
|
|
710
710
|
event.preventDefault(); // prevents the page from scrolling
|
|
711
711
|
// select the next option on arrow key down
|
|
@@ -716,12 +716,10 @@ class SelectDirective {
|
|
|
716
716
|
this.valueChangeService.selectPreviousOption();
|
|
717
717
|
return;
|
|
718
718
|
}
|
|
719
|
-
/*
|
|
720
719
|
if (isTyping) {
|
|
721
|
-
|
|
722
|
-
|
|
720
|
+
this.valueChangeService.searchOptionByFirstLetter(event.key);
|
|
721
|
+
return;
|
|
723
722
|
}
|
|
724
|
-
*/
|
|
725
723
|
}
|
|
726
724
|
writeValue(value) {
|
|
727
725
|
if (typeof value === 'undefined') {
|