@colijnit/corecomponents_v12 261.20.15 → 261.20.16
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.
|
@@ -9577,6 +9577,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
9577
9577
|
|
|
9578
9578
|
class InputSearchComponent extends BaseInputComponent {
|
|
9579
9579
|
searchIcon = CoreComponentsIcon.Magnifier;
|
|
9580
|
+
inputSearchText;
|
|
9580
9581
|
placeholder;
|
|
9581
9582
|
handleKeydown = true;
|
|
9582
9583
|
search = new EventEmitter();
|
|
@@ -9608,14 +9609,18 @@ class InputSearchComponent extends BaseInputComponent {
|
|
|
9608
9609
|
this.model = model;
|
|
9609
9610
|
this.modelChange.next(this.model);
|
|
9610
9611
|
}
|
|
9612
|
+
requestFocus() {
|
|
9613
|
+
this.inputSearchText.requestFocus();
|
|
9614
|
+
}
|
|
9611
9615
|
isMobileDevice() {
|
|
9612
9616
|
return /Android|iPhone|iPad|iPod/i.test(navigator.userAgent);
|
|
9613
9617
|
}
|
|
9614
9618
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputSearchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
9615
9619
|
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: [
|
|
9616
9620
|
OverlayService
|
|
9617
|
-
], usesInheritance: true, ngImport: i0, template: `
|
|
9621
|
+
], viewQueries: [{ propertyName: "inputSearchText", first: true, predicate: ["inputText"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
9618
9622
|
<co-input-text
|
|
9623
|
+
#inputText
|
|
9619
9624
|
[ngClass]="customCssClass"
|
|
9620
9625
|
[model]="model"
|
|
9621
9626
|
[leftIcon]="useLeftIcon ? searchIcon : null"
|
|
@@ -9645,6 +9650,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
9645
9650
|
selector: 'co-input-search',
|
|
9646
9651
|
template: `
|
|
9647
9652
|
<co-input-text
|
|
9653
|
+
#inputText
|
|
9648
9654
|
[ngClass]="customCssClass"
|
|
9649
9655
|
[model]="model"
|
|
9650
9656
|
[leftIcon]="useLeftIcon ? searchIcon : null"
|
|
@@ -9668,7 +9674,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
9668
9674
|
encapsulation: ViewEncapsulation.None,
|
|
9669
9675
|
standalone: false
|
|
9670
9676
|
}]
|
|
9671
|
-
}], propDecorators: {
|
|
9677
|
+
}], propDecorators: { inputSearchText: [{
|
|
9678
|
+
type: ViewChild,
|
|
9679
|
+
args: ['inputText']
|
|
9680
|
+
}], placeholder: [{
|
|
9672
9681
|
type: Input
|
|
9673
9682
|
}], handleKeydown: [{
|
|
9674
9683
|
type: Input
|
|
@@ -16826,6 +16835,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
16826
16835
|
|
|
16827
16836
|
class InputScannerComponent {
|
|
16828
16837
|
_scannerService;
|
|
16838
|
+
inputSearch;
|
|
16829
16839
|
model;
|
|
16830
16840
|
placeholder;
|
|
16831
16841
|
centerLabel = false;
|
|
@@ -16876,6 +16886,9 @@ class InputScannerComponent {
|
|
|
16876
16886
|
this.barCodeScanned.next(this.model);
|
|
16877
16887
|
this._blockEnterKeydown = false;
|
|
16878
16888
|
}
|
|
16889
|
+
requestFocus() {
|
|
16890
|
+
this.inputSearch.requestFocus();
|
|
16891
|
+
}
|
|
16879
16892
|
_clearTimeout() {
|
|
16880
16893
|
clearTimeout(this._keyDownTimeout);
|
|
16881
16894
|
this._keyDownTimeout = undefined;
|
|
@@ -16884,43 +16897,45 @@ class InputScannerComponent {
|
|
|
16884
16897
|
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: [
|
|
16885
16898
|
ScannerService,
|
|
16886
16899
|
OverlayService
|
|
16887
|
-
], ngImport: i0, template: `
|
|
16888
|
-
|
|
16889
|
-
|
|
16890
|
-
|
|
16891
|
-
|
|
16892
|
-
|
|
16893
|
-
|
|
16894
|
-
|
|
16895
|
-
|
|
16896
|
-
|
|
16897
|
-
|
|
16898
|
-
|
|
16899
|
-
|
|
16900
|
-
|
|
16901
|
-
|
|
16902
|
-
|
|
16900
|
+
], viewQueries: [{ propertyName: "inputSearch", first: true, predicate: ["inputSearch"], descendants: true }], ngImport: i0, template: `
|
|
16901
|
+
<co-input-search
|
|
16902
|
+
#inputSearch
|
|
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
|
+
`, 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 });
|
|
16903
16917
|
}
|
|
16904
16918
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputScannerComponent, decorators: [{
|
|
16905
16919
|
type: Component,
|
|
16906
16920
|
args: [{
|
|
16907
16921
|
selector: 'co-input-scanner',
|
|
16908
16922
|
template: `
|
|
16909
|
-
|
|
16910
|
-
|
|
16911
|
-
|
|
16912
|
-
|
|
16913
|
-
|
|
16914
|
-
|
|
16915
|
-
|
|
16916
|
-
|
|
16917
|
-
|
|
16918
|
-
|
|
16919
|
-
|
|
16920
|
-
|
|
16921
|
-
|
|
16922
|
-
|
|
16923
|
-
|
|
16923
|
+
<co-input-search
|
|
16924
|
+
#inputSearch
|
|
16925
|
+
[(model)]="model"
|
|
16926
|
+
[handleKeydown]="false"
|
|
16927
|
+
[customCssClass]="customCssClass"
|
|
16928
|
+
[placeholder]="placeholder"
|
|
16929
|
+
[centerLabel]="centerLabel"
|
|
16930
|
+
[useLeftIcon]="useLeftIcon"
|
|
16931
|
+
[leftIconData]="leftIconData"
|
|
16932
|
+
[useRightIcon]="useRightIcon"
|
|
16933
|
+
[rightIconData]="rightIconData"
|
|
16934
|
+
(leftIconClick)="leftIconClick.emit($event)"
|
|
16935
|
+
(rightIconClick)="rightIconClick.emit($event)"
|
|
16936
|
+
(isFocused)="isFocused.emit($event)"
|
|
16937
|
+
></co-input-search>
|
|
16938
|
+
`,
|
|
16924
16939
|
providers: [
|
|
16925
16940
|
ScannerService,
|
|
16926
16941
|
OverlayService
|
|
@@ -16928,7 +16943,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
16928
16943
|
encapsulation: ViewEncapsulation.None,
|
|
16929
16944
|
standalone: false
|
|
16930
16945
|
}]
|
|
16931
|
-
}], ctorParameters: () => [{ type: ScannerService }], propDecorators: {
|
|
16946
|
+
}], ctorParameters: () => [{ type: ScannerService }], propDecorators: { inputSearch: [{
|
|
16947
|
+
type: ViewChild,
|
|
16948
|
+
args: ['inputSearch']
|
|
16949
|
+
}], model: [{
|
|
16932
16950
|
type: Input
|
|
16933
16951
|
}], placeholder: [{
|
|
16934
16952
|
type: Input
|