@colijnit/corecomponents_v12 261.20.13 → 261.20.14
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.
|
Binary file
|
|
@@ -16833,6 +16833,7 @@ class InputScannerComponent {
|
|
|
16833
16833
|
search = new EventEmitter();
|
|
16834
16834
|
isFocused = new EventEmitter();
|
|
16835
16835
|
barCodeScanned = new EventEmitter();
|
|
16836
|
+
scannerDisabled = false;
|
|
16836
16837
|
showClass() {
|
|
16837
16838
|
return true;
|
|
16838
16839
|
}
|
|
@@ -16846,6 +16847,9 @@ class InputScannerComponent {
|
|
|
16846
16847
|
this._clearTimeout();
|
|
16847
16848
|
}
|
|
16848
16849
|
handleKeyDown(event) {
|
|
16850
|
+
if (this.scannerDisabled) {
|
|
16851
|
+
return;
|
|
16852
|
+
}
|
|
16849
16853
|
const enterKeys = ['Enter', 'NumpadEnter', 'Go'];
|
|
16850
16854
|
if (enterKeys.includes(event.key) && !this._blockEnterKeydown) {
|
|
16851
16855
|
event.preventDefault();
|
|
@@ -16856,6 +16860,9 @@ class InputScannerComponent {
|
|
|
16856
16860
|
}
|
|
16857
16861
|
}
|
|
16858
16862
|
triggerCodeScanned(code) {
|
|
16863
|
+
if (this.scannerDisabled) {
|
|
16864
|
+
return;
|
|
16865
|
+
}
|
|
16859
16866
|
this._clearTimeout();
|
|
16860
16867
|
this._blockEnterKeydown = true;
|
|
16861
16868
|
this.model = code;
|
|
@@ -16867,46 +16874,46 @@ class InputScannerComponent {
|
|
|
16867
16874
|
this._keyDownTimeout = undefined;
|
|
16868
16875
|
}
|
|
16869
16876
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputScannerComponent, deps: [{ token: ScannerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
16870
|
-
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" }, 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: [
|
|
16877
|
+
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: [
|
|
16871
16878
|
ScannerService,
|
|
16872
16879
|
OverlayService
|
|
16873
16880
|
], ngImport: i0, template: `
|
|
16874
|
-
|
|
16875
|
-
|
|
16876
|
-
|
|
16877
|
-
|
|
16878
|
-
|
|
16879
|
-
|
|
16880
|
-
|
|
16881
|
-
|
|
16882
|
-
|
|
16883
|
-
|
|
16884
|
-
|
|
16885
|
-
|
|
16886
|
-
|
|
16887
|
-
|
|
16888
|
-
|
|
16881
|
+
<co-input-search
|
|
16882
|
+
[(model)]="model"
|
|
16883
|
+
[handleKeydown]="false"
|
|
16884
|
+
[customCssClass]="customCssClass"
|
|
16885
|
+
[placeholder]="placeholder"
|
|
16886
|
+
[centerLabel]="centerLabel"
|
|
16887
|
+
[useLeftIcon]="useLeftIcon"
|
|
16888
|
+
[leftIconData]="leftIconData"
|
|
16889
|
+
[useRightIcon]="useRightIcon"
|
|
16890
|
+
[rightIconData]="rightIconData"
|
|
16891
|
+
(leftIconClick)="leftIconClick.emit($event)"
|
|
16892
|
+
(rightIconClick)="rightIconClick.emit($event)"
|
|
16893
|
+
(isFocused)="isFocused.emit($event)"
|
|
16894
|
+
></co-input-search>
|
|
16895
|
+
`, isInline: true, dependencies: [{ kind: "component", type: InputSearchComponent, selector: "co-input-search", inputs: ["placeholder", "handleKeydown", "useLeftIcon", "useRightIcon", "leftIconData", "rightIconData", "centerLabel"], outputs: ["search", "isFocused", "leftIconClick", "rightIconClick"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
16889
16896
|
}
|
|
16890
16897
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputScannerComponent, decorators: [{
|
|
16891
16898
|
type: Component,
|
|
16892
16899
|
args: [{
|
|
16893
16900
|
selector: 'co-input-scanner',
|
|
16894
16901
|
template: `
|
|
16895
|
-
|
|
16896
|
-
|
|
16897
|
-
|
|
16898
|
-
|
|
16899
|
-
|
|
16900
|
-
|
|
16901
|
-
|
|
16902
|
-
|
|
16903
|
-
|
|
16904
|
-
|
|
16905
|
-
|
|
16906
|
-
|
|
16907
|
-
|
|
16908
|
-
|
|
16909
|
-
|
|
16902
|
+
<co-input-search
|
|
16903
|
+
[(model)]="model"
|
|
16904
|
+
[handleKeydown]="false"
|
|
16905
|
+
[customCssClass]="customCssClass"
|
|
16906
|
+
[placeholder]="placeholder"
|
|
16907
|
+
[centerLabel]="centerLabel"
|
|
16908
|
+
[useLeftIcon]="useLeftIcon"
|
|
16909
|
+
[leftIconData]="leftIconData"
|
|
16910
|
+
[useRightIcon]="useRightIcon"
|
|
16911
|
+
[rightIconData]="rightIconData"
|
|
16912
|
+
(leftIconClick)="leftIconClick.emit($event)"
|
|
16913
|
+
(rightIconClick)="rightIconClick.emit($event)"
|
|
16914
|
+
(isFocused)="isFocused.emit($event)"
|
|
16915
|
+
></co-input-search>
|
|
16916
|
+
`,
|
|
16910
16917
|
providers: [
|
|
16911
16918
|
ScannerService,
|
|
16912
16919
|
OverlayService
|
|
@@ -16942,6 +16949,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
16942
16949
|
type: Output
|
|
16943
16950
|
}], barCodeScanned: [{
|
|
16944
16951
|
type: Output
|
|
16952
|
+
}], scannerDisabled: [{
|
|
16953
|
+
type: Input
|
|
16945
16954
|
}], showClass: [{
|
|
16946
16955
|
type: HostBinding,
|
|
16947
16956
|
args: ['class.co-input-scanner']
|