@colijnit/corecomponents_v12 262.1.9 → 262.1.10
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.
|
@@ -9584,6 +9584,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
9584
9584
|
|
|
9585
9585
|
class InputSearchComponent extends BaseInputComponent {
|
|
9586
9586
|
searchIcon = CoreComponentsIcon.Magnifier;
|
|
9587
|
+
inputSearchText;
|
|
9587
9588
|
placeholder;
|
|
9588
9589
|
handleKeydown = true;
|
|
9589
9590
|
search = new EventEmitter();
|
|
@@ -9615,14 +9616,18 @@ class InputSearchComponent extends BaseInputComponent {
|
|
|
9615
9616
|
this.model = model;
|
|
9616
9617
|
this.modelChange.next(this.model);
|
|
9617
9618
|
}
|
|
9619
|
+
requestFocus() {
|
|
9620
|
+
this.inputSearchText.requestFocus();
|
|
9621
|
+
}
|
|
9618
9622
|
isMobileDevice() {
|
|
9619
9623
|
return /Android|iPhone|iPad|iPod/i.test(navigator.userAgent);
|
|
9620
9624
|
}
|
|
9621
9625
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputSearchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
9622
9626
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: InputSearchComponent, isStandalone: false, selector: "co-input-search", inputs: { placeholder: "placeholder", handleKeydown: "handleKeydown", useLeftIcon: "useLeftIcon", useRightIcon: "useRightIcon", leftIconData: "leftIconData", rightIconData: "rightIconData", centerLabel: "centerLabel" }, outputs: { search: "search", isFocused: "isFocused", leftIconClick: "leftIconClick", rightIconClick: "rightIconClick" }, host: { properties: { "class.center-label": "this.centerLabel", "class.co-input-search": "this.showClass" } }, providers: [
|
|
9623
9627
|
OverlayService
|
|
9624
|
-
], usesInheritance: true, ngImport: i0, template: `
|
|
9628
|
+
], viewQueries: [{ propertyName: "inputSearchText", first: true, predicate: ["inputText"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
9625
9629
|
<co-input-text
|
|
9630
|
+
#inputText
|
|
9626
9631
|
[ngClass]="customCssClass"
|
|
9627
9632
|
[model]="model"
|
|
9628
9633
|
[leftIcon]="useLeftIcon ? searchIcon : null"
|
|
@@ -9652,6 +9657,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
9652
9657
|
selector: 'co-input-search',
|
|
9653
9658
|
template: `
|
|
9654
9659
|
<co-input-text
|
|
9660
|
+
#inputText
|
|
9655
9661
|
[ngClass]="customCssClass"
|
|
9656
9662
|
[model]="model"
|
|
9657
9663
|
[leftIcon]="useLeftIcon ? searchIcon : null"
|
|
@@ -9675,7 +9681,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
9675
9681
|
encapsulation: ViewEncapsulation.None,
|
|
9676
9682
|
standalone: false
|
|
9677
9683
|
}]
|
|
9678
|
-
}], propDecorators: {
|
|
9684
|
+
}], propDecorators: { inputSearchText: [{
|
|
9685
|
+
type: ViewChild,
|
|
9686
|
+
args: ['inputText']
|
|
9687
|
+
}], placeholder: [{
|
|
9679
9688
|
type: Input
|
|
9680
9689
|
}], handleKeydown: [{
|
|
9681
9690
|
type: Input
|
|
@@ -16905,6 +16914,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
16905
16914
|
|
|
16906
16915
|
class InputScannerComponent {
|
|
16907
16916
|
_scannerService;
|
|
16917
|
+
inputSearch;
|
|
16908
16918
|
model;
|
|
16909
16919
|
placeholder;
|
|
16910
16920
|
centerLabel = false;
|
|
@@ -16955,6 +16965,9 @@ class InputScannerComponent {
|
|
|
16955
16965
|
this.barCodeScanned.next(this.model);
|
|
16956
16966
|
this._blockEnterKeydown = false;
|
|
16957
16967
|
}
|
|
16968
|
+
requestFocus() {
|
|
16969
|
+
this.inputSearch.requestFocus();
|
|
16970
|
+
}
|
|
16958
16971
|
_clearTimeout() {
|
|
16959
16972
|
clearTimeout(this._keyDownTimeout);
|
|
16960
16973
|
this._keyDownTimeout = undefined;
|
|
@@ -16963,8 +16976,9 @@ class InputScannerComponent {
|
|
|
16963
16976
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: InputScannerComponent, isStandalone: false, selector: "co-input-scanner", inputs: { model: "model", placeholder: "placeholder", centerLabel: "centerLabel", useLeftIcon: "useLeftIcon", useRightIcon: "useRightIcon", leftIconData: "leftIconData", rightIconData: "rightIconData", customCssClass: "customCssClass", scannerDisabled: "scannerDisabled" }, outputs: { modelChange: "modelChange", leftIconClick: "leftIconClick", rightIconClick: "rightIconClick", search: "search", isFocused: "isFocused", barCodeScanned: "barCodeScanned" }, host: { listeners: { "keydown": "handleKeyDown($event)" }, properties: { "class.co-input-scanner": "this.showClass" } }, providers: [
|
|
16964
16977
|
ScannerService,
|
|
16965
16978
|
OverlayService
|
|
16966
|
-
], ngImport: i0, template: `
|
|
16979
|
+
], viewQueries: [{ propertyName: "inputSearch", first: true, predicate: ["inputSearch"], descendants: true }], ngImport: i0, template: `
|
|
16967
16980
|
<co-input-search
|
|
16981
|
+
#inputSearch
|
|
16968
16982
|
[(model)]="model"
|
|
16969
16983
|
[handleKeydown]="false"
|
|
16970
16984
|
[customCssClass]="customCssClass"
|
|
@@ -16986,6 +17000,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
16986
17000
|
selector: 'co-input-scanner',
|
|
16987
17001
|
template: `
|
|
16988
17002
|
<co-input-search
|
|
17003
|
+
#inputSearch
|
|
16989
17004
|
[(model)]="model"
|
|
16990
17005
|
[handleKeydown]="false"
|
|
16991
17006
|
[customCssClass]="customCssClass"
|
|
@@ -17007,7 +17022,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
17007
17022
|
encapsulation: ViewEncapsulation.None,
|
|
17008
17023
|
standalone: false
|
|
17009
17024
|
}]
|
|
17010
|
-
}], ctorParameters: () => [{ type: ScannerService }], propDecorators: {
|
|
17025
|
+
}], ctorParameters: () => [{ type: ScannerService }], propDecorators: { inputSearch: [{
|
|
17026
|
+
type: ViewChild,
|
|
17027
|
+
args: ['inputSearch']
|
|
17028
|
+
}], model: [{
|
|
17011
17029
|
type: Input
|
|
17012
17030
|
}], placeholder: [{
|
|
17013
17031
|
type: Input
|