@colijnit/corecomponents_v12 262.1.8 → 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.
@@ -1,6 +1,6 @@
1
1
  import { __decorate } from 'tslib';
2
2
  import * as i0 from '@angular/core';
3
- import { Input, Injectable, HostBinding, ViewEncapsulation, Component, Directive, ElementRef, Pipe, EventEmitter, Output, ViewChildren, ViewContainerRef, HostListener, ViewChild, Optional, NgModule, SkipSelf, InjectionToken, Inject, forwardRef, ChangeDetectionStrategy, ContentChildren, NO_ERRORS_SCHEMA, Injector } from '@angular/core';
3
+ import { Input, Injectable, HostBinding, ViewEncapsulation, Component, Directive, ElementRef, Pipe, EventEmitter, Output, ViewChildren, ViewContainerRef, HostListener, ViewChild, Optional, NgModule, SkipSelf, InjectionToken, Inject, forwardRef, ChangeDetectionStrategy, ContentChildren, NO_ERRORS_SCHEMA, Injector, QueryList } from '@angular/core';
4
4
  import * as i5 from '@angular/forms';
5
5
  import { NgModel, UntypedFormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';
6
6
  import * as i1 from '@angular/platform-browser';
@@ -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: { placeholder: [{
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;
@@ -16919,7 +16929,7 @@ class InputScannerComponent {
16919
16929
  search = new EventEmitter();
16920
16930
  isFocused = new EventEmitter();
16921
16931
  barCodeScanned = new EventEmitter();
16922
- scannerDisabled = true;
16932
+ scannerDisabled = false;
16923
16933
  showClass() {
16924
16934
  return true;
16925
16935
  }
@@ -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: { model: [{
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
@@ -20555,6 +20573,396 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
20555
20573
  }]
20556
20574
  }] });
20557
20575
 
20576
+ class ChipRenderComponent {
20577
+ text;
20578
+ icon = CoreComponentsIcon.CrossSkinny;
20579
+ iconClass = "light";
20580
+ noPointerHover = false;
20581
+ bgCssColor;
20582
+ textClick = new EventEmitter();
20583
+ iconClick = new EventEmitter();
20584
+ get isPointerHover() {
20585
+ return !this.noPointerHover;
20586
+ }
20587
+ showClass = true;
20588
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ChipRenderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
20589
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ChipRenderComponent, isStandalone: false, selector: "co-chip-render", inputs: { text: "text", icon: "icon", iconClass: "iconClass", noPointerHover: "noPointerHover", bgCssColor: "bgCssColor" }, outputs: { textClick: "textClick", iconClick: "iconClick" }, host: { properties: { "style.background-color": "this.bgCssColor", "class.pointer-hover": "this.isPointerHover", "class.co-chip-render": "this.showClass" } }, ngImport: i0, template: `
20590
+ <span class="text" (click)="textClick.emit($event)" [textContent]="text"></span>
20591
+ <co-icon [icon]="icon" [class]="iconClass" (click)="iconClick.emit($event)"></co-icon>
20592
+ `, isInline: true, dependencies: [{ kind: "component", type: IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }], encapsulation: i0.ViewEncapsulation.None });
20593
+ }
20594
+ __decorate([
20595
+ InputBoolean()
20596
+ ], ChipRenderComponent.prototype, "noPointerHover", void 0);
20597
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ChipRenderComponent, decorators: [{
20598
+ type: Component,
20599
+ args: [{
20600
+ selector: 'co-chip-render',
20601
+ template: `
20602
+ <span class="text" (click)="textClick.emit($event)" [textContent]="text"></span>
20603
+ <co-icon [icon]="icon" [class]="iconClass" (click)="iconClick.emit($event)"></co-icon>
20604
+ `,
20605
+ standalone: false,
20606
+ encapsulation: ViewEncapsulation.None
20607
+ }]
20608
+ }], propDecorators: { text: [{
20609
+ type: Input
20610
+ }], icon: [{
20611
+ type: Input
20612
+ }], iconClass: [{
20613
+ type: Input
20614
+ }], noPointerHover: [{
20615
+ type: Input
20616
+ }], bgCssColor: [{
20617
+ type: Input
20618
+ }, {
20619
+ type: HostBinding,
20620
+ args: ["style.background-color"]
20621
+ }], textClick: [{
20622
+ type: Output
20623
+ }], iconClick: [{
20624
+ type: Output
20625
+ }], isPointerHover: [{
20626
+ type: HostBinding,
20627
+ args: ["class.pointer-hover"]
20628
+ }], showClass: [{
20629
+ type: HostBinding,
20630
+ args: ["class.co-chip-render"]
20631
+ }] } });
20632
+
20633
+ class InputTextChipsComponent extends BaseInputComponent {
20634
+ formComponent;
20635
+ changeDetector;
20636
+ overlayService;
20637
+ _colorService;
20638
+ iconCacheService;
20639
+ formUserChangeListener;
20640
+ ngZoneWrapper;
20641
+ elementRef;
20642
+ icons = CoreComponentsIcon;
20643
+ inputTextComp;
20644
+ chipRenderComps = new QueryList();
20645
+ // @Input()
20646
+ // public model: string[] = [];
20647
+ placeholder = '';
20648
+ colorSeqName = ColorSequenceName.Regular;
20649
+ toggleModel;
20650
+ toggleBoxLabel;
20651
+ extraIcon = this.icons.Magnifier;
20652
+ extraIconClicked = new EventEmitter();
20653
+ // @Output()
20654
+ // public modelChange: EventEmitter<string[]> = new EventEmitter<string[]>();
20655
+ submit = new EventEmitter();
20656
+ toggleModelChange = new EventEmitter();
20657
+ textMode = false;
20658
+ showClass = true;
20659
+ customHeight = true;
20660
+ // text that's shown live in input-text component
20661
+ inputTextModel = '';
20662
+ colorSequence;
20663
+ // key: chip index, value: colorCss for chips with that text
20664
+ chipColors = [];
20665
+ _noChipsWrapClickFocus;
20666
+ constructor(formComponent, changeDetector, overlayService, _colorService, iconCacheService, formUserChangeListener, ngZoneWrapper, elementRef) {
20667
+ super(changeDetector, overlayService, formUserChangeListener, ngZoneWrapper, elementRef);
20668
+ this.formComponent = formComponent;
20669
+ this.changeDetector = changeDetector;
20670
+ this.overlayService = overlayService;
20671
+ this._colorService = _colorService;
20672
+ this.iconCacheService = iconCacheService;
20673
+ this.formUserChangeListener = formUserChangeListener;
20674
+ this.ngZoneWrapper = ngZoneWrapper;
20675
+ this.elementRef = elementRef;
20676
+ super._markAsOnPush();
20677
+ }
20678
+ ngAfterViewInit() {
20679
+ this._prepareModel();
20680
+ this.colorSequence = this._colorService.getColorSequenceByName(this.colorSeqName);
20681
+ }
20682
+ activateTextMode() {
20683
+ this.textMode = true;
20684
+ this._prepareModel();
20685
+ }
20686
+ activateChipsMode() {
20687
+ this.textMode = false;
20688
+ this._setValueByText(this.inputTextModel);
20689
+ // this.inputTextModel = '';
20690
+ }
20691
+ getChipColorCss(index) {
20692
+ if (this.chipColors[index]) {
20693
+ return this.chipColors[index];
20694
+ }
20695
+ else if (this.colorSequence) {
20696
+ return this.colorSequence.getColor(index).cssColor;
20697
+ }
20698
+ else {
20699
+ return '';
20700
+ }
20701
+ }
20702
+ requestFocus() {
20703
+ if (this.inputTextComp) {
20704
+ this.inputTextComp.requestFocus();
20705
+ }
20706
+ }
20707
+ onChipsWrapClick() {
20708
+ if (!this._noChipsWrapClickFocus) {
20709
+ this.requestFocus();
20710
+ }
20711
+ }
20712
+ onChipTextClick(chipIndex) {
20713
+ const chipsModel = StringUtils.CloneStringArray(this.model);
20714
+ // this._ngZone.setTimeoutOutsideAngular(() => {
20715
+ // if (this.inputTextComp) {
20716
+ // this.inputTextComp.setSelectionRange(this.getSelectionRangeForChipWithIndex(chipIndex, chipsModel));
20717
+ // }
20718
+ // });
20719
+ }
20720
+ onChipRemoveIconClick(event, chipIndex) {
20721
+ EventUtils.KillEvent(event);
20722
+ this._triggerNoChipsWrapClickFocus(); // because that's what I wanted StopEvent() to do, but it doesn't do that ;)
20723
+ this.removeChipByIndex(chipIndex);
20724
+ this._blurAndSubmit();
20725
+ }
20726
+ onRightInBetweenClick(chipIndex) {
20727
+ return this.onChipTextClick(chipIndex);
20728
+ }
20729
+ onKeyDown(event) {
20730
+ if (event.key === KeyboardKey.Enter) {
20731
+ this._blurAndSubmit();
20732
+ }
20733
+ }
20734
+ onClearIconClick() {
20735
+ this.inputTextModel = '';
20736
+ this.resetValue();
20737
+ this.chipColors.length = 0;
20738
+ this._blurAndSubmit();
20739
+ }
20740
+ handleFocus(focused) {
20741
+ this.focused = focused;
20742
+ if (this.focused) {
20743
+ this.activateTextMode();
20744
+ this.focus.emit();
20745
+ }
20746
+ else {
20747
+ this.activateChipsMode();
20748
+ this.blur.emit();
20749
+ }
20750
+ }
20751
+ onExtraIconClick() {
20752
+ this._blurAndSubmit();
20753
+ this.extraIconClicked.emit();
20754
+ }
20755
+ onInputTextModelChange(txtModel) {
20756
+ if (!txtModel) {
20757
+ this.chipColors.length = 0;
20758
+ }
20759
+ }
20760
+ // Returns the selection range for the original full string inside <input-text> that corresponds with the chip of given index.
20761
+ // protected getSelectionRangeForChipWithIndex(chipIndex: number, chipsModel: string[]): NumericalRange {
20762
+ // if (!chipsModel) {
20763
+ // return undefined;
20764
+ // }
20765
+ // const selectionRange: NumericalRange = new NumericalRange();
20766
+ // selectionRange.lowerBound = 0;
20767
+ // for (let i: number = 0, len: number = chipsModel.length; i < len && i < chipIndex; i++) {
20768
+ // // add the text and its space to lowerbound
20769
+ // selectionRange.lowerBound += chipsModel[i].length + 1;
20770
+ // }
20771
+ // selectionRange.upperBound = selectionRange.lowerBound + chipsModel[chipIndex].length;
20772
+ // return selectionRange;
20773
+ // }
20774
+ removeChipByIndex(index) {
20775
+ this.beforeRemoveChip();
20776
+ ArrayUtils.RemoveElementAtIndex(index, this.model);
20777
+ this.modelChange.emit(this.model);
20778
+ ArrayUtils.RemoveElementAtIndex(index, this.chipColors);
20779
+ if (this.model && this.model.length === 0) {
20780
+ this.chipColors.length = 0;
20781
+ }
20782
+ }
20783
+ resetValue() {
20784
+ if (this.model) {
20785
+ this.model.length = 0;
20786
+ }
20787
+ else {
20788
+ this.model = [];
20789
+ }
20790
+ this.modelChange.emit(this.model);
20791
+ }
20792
+ beforeRemoveChip() {
20793
+ // staticize all current chips
20794
+ this.chipRenderComps.forEach((chipComp, idx) => {
20795
+ this.chipColors[idx] = chipComp.bgCssColor;
20796
+ });
20797
+ }
20798
+ _setValueByText(text) {
20799
+ if (!text) {
20800
+ this.resetValue();
20801
+ }
20802
+ this.model = StringUtils.StringToStringArray(text);
20803
+ this.modelChange.emit(this.model);
20804
+ }
20805
+ _prepareModel() {
20806
+ if (this.model) {
20807
+ let inpTxt = '';
20808
+ for (let i = 0, len = this.model.length; i < len; i++) {
20809
+ inpTxt += this.model[i] + ' ';
20810
+ }
20811
+ this.inputTextModel = inpTxt.trim();
20812
+ }
20813
+ }
20814
+ _blurAndSubmit() {
20815
+ this.inputTextComp.doBlur();
20816
+ this.submit.emit(this.model);
20817
+ }
20818
+ _triggerNoChipsWrapClickFocus() {
20819
+ // this._noChipsWrapClickFocus = true;
20820
+ // this._ngZone.setTimeoutOutsideAngular(() => {
20821
+ // this._noChipsWrapClickFocus = false;
20822
+ // });
20823
+ }
20824
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputTextChipsComponent, deps: [{ token: FormComponent, optional: true }, { token: i0.ChangeDetectorRef }, { token: OverlayService }, { token: ColorSequenceService }, { token: IconCacheService }, { token: FormInputUserModelChangeListenerService }, { token: NgZoneWrapperService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
20825
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: InputTextChipsComponent, isStandalone: false, selector: "co-input-text-chips", inputs: { placeholder: "placeholder", colorSeqName: "colorSeqName", toggleModel: "toggleModel", toggleBoxLabel: "toggleBoxLabel", extraIcon: "extraIcon" }, outputs: { extraIconClicked: "extraIconClicked", submit: "submit", toggleModelChange: "toggleModelChange" }, host: { properties: { "class.text-mode": "this.textMode", "class.co-input-text-chips": "this.showClass" } }, providers: [
20826
+ OverlayService, {
20827
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
20828
+ useExisting: forwardRef(() => InputTextChipsComponent)
20829
+ }, {
20830
+ provide: BaseInputComponent,
20831
+ useExisting: InputTextChipsComponent
20832
+ }
20833
+ ], viewQueries: [{ propertyName: "inputTextComp", first: true, predicate: InputTextComponent, descendants: true, static: true }, { propertyName: "chipRenderComps", predicate: ChipRenderComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
20834
+ <co-input-text class="custom-height no-focus-line no-hover-line"
20835
+ [(model)]="inputTextModel"
20836
+ [useContent]="!textMode"
20837
+ [label]="label"
20838
+ [initFocus]="initFocus"
20839
+ [placeholder]="placeholder"
20840
+ [noClickFocus]="noClickFocus"
20841
+ [excludeUserModelChange]="excludeUserModelChange"
20842
+ [rightIconData]="iconCacheService.getIcon(extraIcon)"
20843
+ (clearIconClick)="onClearIconClick()"
20844
+ (keydown)="onKeyDown($event)"
20845
+ (isFocused)="handleFocus($event)"
20846
+ (rightIconClick)="onExtraIconClick()"
20847
+ (modelChange)="onInputTextModelChange($event)"
20848
+ [fullWidth]="true" [noValidation]="true">
20849
+ <div class="chips-wrap" (click)="onChipsWrapClick()">
20850
+ @for (txt of model; track txt; let index = $index) {
20851
+ <co-chip-render [text]="txt"
20852
+ [bgCssColor]="getChipColorCss(index)"
20853
+ (iconClick)="onChipRemoveIconClick($event, index)"
20854
+ (textClick)="onChipTextClick(index)">
20855
+ </co-chip-render>
20856
+ <div class="right-in-between" (click)="onRightInBetweenClick(index)"></div>
20857
+ }
20858
+ </div>
20859
+ </co-input-text>
20860
+ `, isInline: true, dependencies: [{ kind: "component", type: InputTextComponent, selector: "co-input-text", inputs: ["useContent", "placeholder", "align", "type", "formatPipe", "min", "max", "pattern", "digitsOnly", "excludePlusMinus", "showClearButton", "keyDownWhiteList", "showPlaceholderOnFocus", "leftIcon", "rightIcon", "leftIconData", "rightIconData", "selectOnFocus", "emptyPlace", "firstDayOfWeek", "noStyle", "hideArrowButtons", "model"], outputs: ["leftIconClick", "leftIconMouseDown", "leftIconMouseUp", "rightIconClick", "rightIconMouseDown", "rightIconMouseUp", "clearIconClick", "isFocused"] }, { kind: "component", type: ChipRenderComponent, selector: "co-chip-render", inputs: ["text", "icon", "iconClass", "noPointerHover", "bgCssColor"], outputs: ["textClick", "iconClick"] }], encapsulation: i0.ViewEncapsulation.None });
20861
+ }
20862
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputTextChipsComponent, decorators: [{
20863
+ type: Component,
20864
+ args: [{
20865
+ selector: 'co-input-text-chips',
20866
+ template: `
20867
+ <co-input-text class="custom-height no-focus-line no-hover-line"
20868
+ [(model)]="inputTextModel"
20869
+ [useContent]="!textMode"
20870
+ [label]="label"
20871
+ [initFocus]="initFocus"
20872
+ [placeholder]="placeholder"
20873
+ [noClickFocus]="noClickFocus"
20874
+ [excludeUserModelChange]="excludeUserModelChange"
20875
+ [rightIconData]="iconCacheService.getIcon(extraIcon)"
20876
+ (clearIconClick)="onClearIconClick()"
20877
+ (keydown)="onKeyDown($event)"
20878
+ (isFocused)="handleFocus($event)"
20879
+ (rightIconClick)="onExtraIconClick()"
20880
+ (modelChange)="onInputTextModelChange($event)"
20881
+ [fullWidth]="true" [noValidation]="true">
20882
+ <div class="chips-wrap" (click)="onChipsWrapClick()">
20883
+ @for (txt of model; track txt; let index = $index) {
20884
+ <co-chip-render [text]="txt"
20885
+ [bgCssColor]="getChipColorCss(index)"
20886
+ (iconClick)="onChipRemoveIconClick($event, index)"
20887
+ (textClick)="onChipTextClick(index)">
20888
+ </co-chip-render>
20889
+ <div class="right-in-between" (click)="onRightInBetweenClick(index)"></div>
20890
+ }
20891
+ </div>
20892
+ </co-input-text>
20893
+ `,
20894
+ providers: [
20895
+ OverlayService, {
20896
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
20897
+ useExisting: forwardRef(() => InputTextChipsComponent)
20898
+ }, {
20899
+ provide: BaseInputComponent,
20900
+ useExisting: InputTextChipsComponent
20901
+ }
20902
+ ],
20903
+ standalone: false,
20904
+ encapsulation: ViewEncapsulation.None
20905
+ }]
20906
+ }], ctorParameters: () => [{ type: FormComponent, decorators: [{
20907
+ type: Optional
20908
+ }] }, { type: i0.ChangeDetectorRef }, { type: OverlayService }, { type: ColorSequenceService }, { type: IconCacheService }, { type: FormInputUserModelChangeListenerService }, { type: NgZoneWrapperService }, { type: i0.ElementRef }], propDecorators: { inputTextComp: [{
20909
+ type: ViewChild,
20910
+ args: [InputTextComponent, { static: true }]
20911
+ }], chipRenderComps: [{
20912
+ type: ViewChildren,
20913
+ args: [ChipRenderComponent]
20914
+ }], placeholder: [{
20915
+ type: Input
20916
+ }], colorSeqName: [{
20917
+ type: Input
20918
+ }], toggleModel: [{
20919
+ type: Input
20920
+ }], toggleBoxLabel: [{
20921
+ type: Input
20922
+ }], extraIcon: [{
20923
+ type: Input
20924
+ }], extraIconClicked: [{
20925
+ type: Output
20926
+ }], submit: [{
20927
+ type: Output
20928
+ }], toggleModelChange: [{
20929
+ type: Output
20930
+ }], textMode: [{
20931
+ type: HostBinding,
20932
+ args: ['class.text-mode']
20933
+ }], showClass: [{
20934
+ type: HostBinding,
20935
+ args: ['class.co-input-text-chips']
20936
+ }] } });
20937
+
20938
+ class InputTextChipsModule {
20939
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputTextChipsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
20940
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: InputTextChipsModule, declarations: [InputTextChipsComponent,
20941
+ ChipRenderComponent], imports: [CommonModule,
20942
+ IconModule,
20943
+ InputTextModule], exports: [InputTextChipsComponent] });
20944
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputTextChipsModule, imports: [CommonModule,
20945
+ IconModule,
20946
+ InputTextModule] });
20947
+ }
20948
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputTextChipsModule, decorators: [{
20949
+ type: NgModule,
20950
+ args: [{
20951
+ imports: [
20952
+ CommonModule,
20953
+ IconModule,
20954
+ InputTextModule
20955
+ ],
20956
+ declarations: [
20957
+ InputTextChipsComponent,
20958
+ ChipRenderComponent
20959
+ ],
20960
+ exports: [
20961
+ InputTextChipsComponent
20962
+ ]
20963
+ }]
20964
+ }] });
20965
+
20558
20966
  /*
20559
20967
  * Public API Surface of corecomponents
20560
20968
  */
@@ -20563,5 +20971,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
20563
20971
  * Generated bundle index. Do not edit.
20564
20972
  */
20565
20973
 
20566
- export { AlignWithDirective, AlignWithModule, AppendPipe, AppendPipeModule, ArticleTileComponent, ArticleTileModule, BaseInputComponent, BaseInputDatePickerDirective, BaseModuleScreenConfigService, BaseModuleService, ButtonComponent, ButtonModule, CalendarComponent, CalendarModule, CalendarTemplateComponent, CardComponent, CardModule, CarouselComponent, CarouselHammerConfig, CarouselModule, CheckmarkOverlayComponent, CheckmarkOverlayModule, ClickOutsideDirective, ClickoutsideModule, CoCurrencyPipe, CoCurrencyPipeModule, CoDialogComponent, CoDialogModule, CoDialogWizardComponent, CoDialogWizardModule, CoDirection, CoOrientation, CollapsibleComponent, CollapsibleModule, Color, ColorPickerComponent, ColorPickerModule, ColorSequence, ColorSequenceName, ColorSequenceService, ColumnAlign, ContentViewMode, CoreComponentsIcon, CoreComponentsTranslationModule, CoreComponentsTranslationService, CoreDialogModule, CoreDialogService, CoreLocalizePipe, DoubleCalendarComponent, DoubleCalendarModule, DragDropContainer, DragDropContainerComponent, DragDropManagerService, DragDropModule, DraggableDirective, ElementPosition, FilterItemComponent, FilterItemMode, FilterItemModule, FilterItemViewmodel, FilterPipe, FilterPipeModule, FilterViewmodel, FormComponent, FormInputUserModelChangeListenerService, FormMasterService, FormModule, GridToolbarButtonComponent, GridToolbarButtonModule, GridToolbarComponent, GridToolbarModule, HourSchedulingComponent, HourSchedulingComponentModule, HourSchedulingExpandableComponent, HourSchedulingExpandableComponentModule, HourSchedulingExpandableTemplateComponent, HourSchedulingExpandableTemplateModule, HourSchedulingTestObjectComponent, IconCacheService, IconCollapseHandleComponent, IconCollapseHandleModule, IconComponent, IconModule, ImageComponent, ImageModule, InputCheckboxComponent, InputCheckboxModule, InputDatePickerComponent, InputDatePickerModule, InputDateRangePickerComponent, InputDateRangePickerModule, InputNumberPickerComponent, InputNumberPickerModule, InputRadioButtonComponent, InputRadioButtonModule, InputScannerComponent, InputScannerModule, InputSearchComponent, InputSearchModule, InputTextComponent, InputTextModule, InputTextareaComponent, InputTextareaModule, InputTimeComponent, InputTimeModule, LevelIndicatorComponent, LevelIndicatorModule, ListOfIconsComponent, ListOfIconsModule, ListOfValuesComponent, ListOfValuesModule, ListOfValuesPopupComponent, LoaderComponent, LoaderModule, NgZoneWrapperService, ObserveVisibilityDirective, ObserveVisibilityModule, OrientationOfDirection, OverlayDirective, OverlayModule, OverlayParentDirective, OverlayService, PaginatePipe, PaginationBarComponent, PaginationBarModule, PaginationComponent, PaginationModule, PopupButtonsComponent, PopupMessageDisplayComponent, PopupModule, PopupWindowShellComponent, PrependPipe, PrependPipeModule, PriceDisplayPipe, PriceDisplayPipeModule, PromptService, ResponsiveTextComponent, ResponsiveTextModule, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, ScreenConfigurationDirective, ScreenConfigurationModule, ScrollContainerComponent, ScrollContainerModule, ScrollDirection, SimpleGridCellComponent, SimpleGridColumnDirective, SimpleGridColumnTemplateDirective, SimpleGridColumnTemplateType, SimpleGridComponent, SimpleGridModule, TemplateWrapperDirective, TemplateWrapperModule, TextInputPopupComponent, TileComponent, TileModule, TileSelectComponent, TileSelectModule, TooltipDirective, TooltipDirectiveModule, ViewModeButtonsComponent, ViewModeButtonsModule, emailValidator, equalValidator, getValidatePasswordErrorString, maxStringLengthValidator, passwordValidator, precisionScaleValidator, requiredValidator, showHideDialog };
20974
+ export { AlignWithDirective, AlignWithModule, AppendPipe, AppendPipeModule, ArticleTileComponent, ArticleTileModule, BaseInputComponent, BaseInputDatePickerDirective, BaseModuleScreenConfigService, BaseModuleService, ButtonComponent, ButtonModule, CalendarComponent, CalendarModule, CalendarTemplateComponent, CardComponent, CardModule, CarouselComponent, CarouselHammerConfig, CarouselModule, CheckmarkOverlayComponent, CheckmarkOverlayModule, ClickOutsideDirective, ClickoutsideModule, CoCurrencyPipe, CoCurrencyPipeModule, CoDialogComponent, CoDialogModule, CoDialogWizardComponent, CoDialogWizardModule, CoDirection, CoOrientation, CollapsibleComponent, CollapsibleModule, Color, ColorPickerComponent, ColorPickerModule, ColorSequence, ColorSequenceName, ColorSequenceService, ColumnAlign, ContentViewMode, CoreComponentsIcon, CoreComponentsTranslationModule, CoreComponentsTranslationService, CoreDialogModule, CoreDialogService, CoreLocalizePipe, DoubleCalendarComponent, DoubleCalendarModule, DragDropContainer, DragDropContainerComponent, DragDropManagerService, DragDropModule, DraggableDirective, ElementPosition, FilterItemComponent, FilterItemMode, FilterItemModule, FilterItemViewmodel, FilterPipe, FilterPipeModule, FilterViewmodel, FormComponent, FormInputUserModelChangeListenerService, FormMasterService, FormModule, GridToolbarButtonComponent, GridToolbarButtonModule, GridToolbarComponent, GridToolbarModule, HourSchedulingComponent, HourSchedulingComponentModule, HourSchedulingExpandableComponent, HourSchedulingExpandableComponentModule, HourSchedulingExpandableTemplateComponent, HourSchedulingExpandableTemplateModule, HourSchedulingTestObjectComponent, IconCacheService, IconCollapseHandleComponent, IconCollapseHandleModule, IconComponent, IconModule, ImageComponent, ImageModule, InputCheckboxComponent, InputCheckboxModule, InputDatePickerComponent, InputDatePickerModule, InputDateRangePickerComponent, InputDateRangePickerModule, InputNumberPickerComponent, InputNumberPickerModule, InputRadioButtonComponent, InputRadioButtonModule, InputScannerComponent, InputScannerModule, InputSearchComponent, InputSearchModule, InputTextChipsComponent, InputTextChipsModule, InputTextComponent, InputTextModule, InputTextareaComponent, InputTextareaModule, InputTimeComponent, InputTimeModule, LevelIndicatorComponent, LevelIndicatorModule, ListOfIconsComponent, ListOfIconsModule, ListOfValuesComponent, ListOfValuesModule, ListOfValuesPopupComponent, LoaderComponent, LoaderModule, NgZoneWrapperService, ObserveVisibilityDirective, ObserveVisibilityModule, OrientationOfDirection, OverlayDirective, OverlayModule, OverlayParentDirective, OverlayService, PaginatePipe, PaginationBarComponent, PaginationBarModule, PaginationComponent, PaginationModule, PopupButtonsComponent, PopupMessageDisplayComponent, PopupModule, PopupWindowShellComponent, PrependPipe, PrependPipeModule, PriceDisplayPipe, PriceDisplayPipeModule, PromptService, ResponsiveTextComponent, ResponsiveTextModule, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, ScreenConfigurationDirective, ScreenConfigurationModule, ScrollContainerComponent, ScrollContainerModule, ScrollDirection, SimpleGridCellComponent, SimpleGridColumnDirective, SimpleGridColumnTemplateDirective, SimpleGridColumnTemplateType, SimpleGridComponent, SimpleGridModule, TemplateWrapperDirective, TemplateWrapperModule, TextInputPopupComponent, TileComponent, TileModule, TileSelectComponent, TileSelectModule, TooltipDirective, TooltipDirectiveModule, ViewModeButtonsComponent, ViewModeButtonsModule, emailValidator, equalValidator, getValidatePasswordErrorString, maxStringLengthValidator, passwordValidator, precisionScaleValidator, requiredValidator, showHideDialog };
20567
20975
  //# sourceMappingURL=colijnit-corecomponents_v12.mjs.map