@colijnit/corecomponents_v12 261.20.13 → 261.20.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.
@@ -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';
@@ -13380,6 +13380,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
13380
13380
  }]
13381
13381
  }] });
13382
13382
 
13383
+ // Represents the enumeration of color sequence names; the different color sequences stored in db.
13384
+ var ColorSequenceName;
13385
+ (function (ColorSequenceName) {
13386
+ ColorSequenceName["Regular"] = "REGULAR";
13387
+ ColorSequenceName["Variant"] = "VARIANT";
13388
+ })(ColorSequenceName || (ColorSequenceName = {}));
13389
+
13383
13390
  // The different view modes for content, e.g. list, grid, ..
13384
13391
  var ContentViewMode;
13385
13392
  (function (ContentViewMode) {
@@ -16833,6 +16840,7 @@ class InputScannerComponent {
16833
16840
  search = new EventEmitter();
16834
16841
  isFocused = new EventEmitter();
16835
16842
  barCodeScanned = new EventEmitter();
16843
+ scannerDisabled = false;
16836
16844
  showClass() {
16837
16845
  return true;
16838
16846
  }
@@ -16846,6 +16854,9 @@ class InputScannerComponent {
16846
16854
  this._clearTimeout();
16847
16855
  }
16848
16856
  handleKeyDown(event) {
16857
+ if (this.scannerDisabled) {
16858
+ return;
16859
+ }
16849
16860
  const enterKeys = ['Enter', 'NumpadEnter', 'Go'];
16850
16861
  if (enterKeys.includes(event.key) && !this._blockEnterKeydown) {
16851
16862
  event.preventDefault();
@@ -16856,6 +16867,9 @@ class InputScannerComponent {
16856
16867
  }
16857
16868
  }
16858
16869
  triggerCodeScanned(code) {
16870
+ if (this.scannerDisabled) {
16871
+ return;
16872
+ }
16859
16873
  this._clearTimeout();
16860
16874
  this._blockEnterKeydown = true;
16861
16875
  this.model = code;
@@ -16867,46 +16881,46 @@ class InputScannerComponent {
16867
16881
  this._keyDownTimeout = undefined;
16868
16882
  }
16869
16883
  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: [
16884
+ 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
16885
  ScannerService,
16872
16886
  OverlayService
16873
16887
  ], ngImport: i0, template: `
16874
- <co-input-search
16875
- [(model)]="model"
16876
- [handleKeydown]="false"
16877
- [customCssClass]="customCssClass"
16878
- [placeholder]="placeholder"
16879
- [centerLabel]="centerLabel"
16880
- [useLeftIcon]="useLeftIcon"
16881
- [leftIconData]="leftIconData"
16882
- [useRightIcon]="useRightIcon"
16883
- [rightIconData]="rightIconData"
16884
- (leftIconClick)="leftIconClick.emit($event)"
16885
- (rightIconClick)="rightIconClick.emit($event)"
16886
- (isFocused)="isFocused.emit($event)"
16887
- ></co-input-search>
16888
- `, 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 });
16888
+ <co-input-search
16889
+ [(model)]="model"
16890
+ [handleKeydown]="false"
16891
+ [customCssClass]="customCssClass"
16892
+ [placeholder]="placeholder"
16893
+ [centerLabel]="centerLabel"
16894
+ [useLeftIcon]="useLeftIcon"
16895
+ [leftIconData]="leftIconData"
16896
+ [useRightIcon]="useRightIcon"
16897
+ [rightIconData]="rightIconData"
16898
+ (leftIconClick)="leftIconClick.emit($event)"
16899
+ (rightIconClick)="rightIconClick.emit($event)"
16900
+ (isFocused)="isFocused.emit($event)"
16901
+ ></co-input-search>
16902
+ `, 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
16903
  }
16890
16904
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputScannerComponent, decorators: [{
16891
16905
  type: Component,
16892
16906
  args: [{
16893
16907
  selector: 'co-input-scanner',
16894
16908
  template: `
16895
- <co-input-search
16896
- [(model)]="model"
16897
- [handleKeydown]="false"
16898
- [customCssClass]="customCssClass"
16899
- [placeholder]="placeholder"
16900
- [centerLabel]="centerLabel"
16901
- [useLeftIcon]="useLeftIcon"
16902
- [leftIconData]="leftIconData"
16903
- [useRightIcon]="useRightIcon"
16904
- [rightIconData]="rightIconData"
16905
- (leftIconClick)="leftIconClick.emit($event)"
16906
- (rightIconClick)="rightIconClick.emit($event)"
16907
- (isFocused)="isFocused.emit($event)"
16908
- ></co-input-search>
16909
- `,
16909
+ <co-input-search
16910
+ [(model)]="model"
16911
+ [handleKeydown]="false"
16912
+ [customCssClass]="customCssClass"
16913
+ [placeholder]="placeholder"
16914
+ [centerLabel]="centerLabel"
16915
+ [useLeftIcon]="useLeftIcon"
16916
+ [leftIconData]="leftIconData"
16917
+ [useRightIcon]="useRightIcon"
16918
+ [rightIconData]="rightIconData"
16919
+ (leftIconClick)="leftIconClick.emit($event)"
16920
+ (rightIconClick)="rightIconClick.emit($event)"
16921
+ (isFocused)="isFocused.emit($event)"
16922
+ ></co-input-search>
16923
+ `,
16910
16924
  providers: [
16911
16925
  ScannerService,
16912
16926
  OverlayService
@@ -16942,6 +16956,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
16942
16956
  type: Output
16943
16957
  }], barCodeScanned: [{
16944
16958
  type: Output
16959
+ }], scannerDisabled: [{
16960
+ type: Input
16945
16961
  }], showClass: [{
16946
16962
  type: HostBinding,
16947
16963
  args: ['class.co-input-scanner']
@@ -18724,13 +18740,6 @@ class ColorSequence {
18724
18740
  }
18725
18741
  }
18726
18742
 
18727
- // Represents the enumeration of color sequence names; the different color sequences stored in db.
18728
- var ColorSequenceName;
18729
- (function (ColorSequenceName) {
18730
- ColorSequenceName["Regular"] = "REGULAR";
18731
- ColorSequenceName["Variant"] = "VARIANT";
18732
- })(ColorSequenceName || (ColorSequenceName = {}));
18733
-
18734
18743
  class ColorSequenceService {
18735
18744
  colors = new Map();
18736
18745
  _colorSequences = [];
@@ -20467,6 +20476,396 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
20467
20476
  }]
20468
20477
  }] });
20469
20478
 
20479
+ class ChipRenderComponent {
20480
+ text;
20481
+ icon = CoreComponentsIcon.CrossSkinny;
20482
+ iconClass = "light";
20483
+ noPointerHover = false;
20484
+ bgCssColor;
20485
+ textClick = new EventEmitter();
20486
+ iconClick = new EventEmitter();
20487
+ get isPointerHover() {
20488
+ return !this.noPointerHover;
20489
+ }
20490
+ showClass = true;
20491
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ChipRenderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
20492
+ 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: `
20493
+ <span class="text" (click)="textClick.emit($event)" [textContent]="text"></span>
20494
+ <co-icon [icon]="icon" [class]="iconClass" (click)="iconClick.emit($event)"></co-icon>
20495
+ `, isInline: true, dependencies: [{ kind: "component", type: IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }], encapsulation: i0.ViewEncapsulation.None });
20496
+ }
20497
+ __decorate([
20498
+ InputBoolean()
20499
+ ], ChipRenderComponent.prototype, "noPointerHover", void 0);
20500
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ChipRenderComponent, decorators: [{
20501
+ type: Component,
20502
+ args: [{
20503
+ selector: 'co-chip-render',
20504
+ template: `
20505
+ <span class="text" (click)="textClick.emit($event)" [textContent]="text"></span>
20506
+ <co-icon [icon]="icon" [class]="iconClass" (click)="iconClick.emit($event)"></co-icon>
20507
+ `,
20508
+ standalone: false,
20509
+ encapsulation: ViewEncapsulation.None
20510
+ }]
20511
+ }], propDecorators: { text: [{
20512
+ type: Input
20513
+ }], icon: [{
20514
+ type: Input
20515
+ }], iconClass: [{
20516
+ type: Input
20517
+ }], noPointerHover: [{
20518
+ type: Input
20519
+ }], bgCssColor: [{
20520
+ type: Input
20521
+ }, {
20522
+ type: HostBinding,
20523
+ args: ["style.background-color"]
20524
+ }], textClick: [{
20525
+ type: Output
20526
+ }], iconClick: [{
20527
+ type: Output
20528
+ }], isPointerHover: [{
20529
+ type: HostBinding,
20530
+ args: ["class.pointer-hover"]
20531
+ }], showClass: [{
20532
+ type: HostBinding,
20533
+ args: ["class.co-chip-render"]
20534
+ }] } });
20535
+
20536
+ class InputTextChipsComponent extends BaseInputComponent {
20537
+ formComponent;
20538
+ changeDetector;
20539
+ overlayService;
20540
+ _colorService;
20541
+ iconCacheService;
20542
+ formUserChangeListener;
20543
+ ngZoneWrapper;
20544
+ elementRef;
20545
+ icons = CoreComponentsIcon;
20546
+ inputTextComp;
20547
+ chipRenderComps = new QueryList();
20548
+ // @Input()
20549
+ // public model: string[] = [];
20550
+ placeholder = '';
20551
+ colorSeqName = ColorSequenceName.Regular;
20552
+ toggleModel;
20553
+ toggleBoxLabel;
20554
+ extraIcon = this.icons.Magnifier;
20555
+ extraIconClicked = new EventEmitter();
20556
+ // @Output()
20557
+ // public modelChange: EventEmitter<string[]> = new EventEmitter<string[]>();
20558
+ submit = new EventEmitter();
20559
+ toggleModelChange = new EventEmitter();
20560
+ textMode = false;
20561
+ showClass = true;
20562
+ customHeight = true;
20563
+ // text that's shown live in input-text component
20564
+ inputTextModel = '';
20565
+ colorSequence;
20566
+ // key: chip index, value: colorCss for chips with that text
20567
+ chipColors = [];
20568
+ _noChipsWrapClickFocus;
20569
+ constructor(formComponent, changeDetector, overlayService, _colorService, iconCacheService, formUserChangeListener, ngZoneWrapper, elementRef) {
20570
+ super(changeDetector, overlayService, formUserChangeListener, ngZoneWrapper, elementRef);
20571
+ this.formComponent = formComponent;
20572
+ this.changeDetector = changeDetector;
20573
+ this.overlayService = overlayService;
20574
+ this._colorService = _colorService;
20575
+ this.iconCacheService = iconCacheService;
20576
+ this.formUserChangeListener = formUserChangeListener;
20577
+ this.ngZoneWrapper = ngZoneWrapper;
20578
+ this.elementRef = elementRef;
20579
+ super._markAsOnPush();
20580
+ }
20581
+ ngAfterViewInit() {
20582
+ this._prepareModel();
20583
+ this.colorSequence = this._colorService.getColorSequenceByName(this.colorSeqName);
20584
+ }
20585
+ activateTextMode() {
20586
+ this.textMode = true;
20587
+ this._prepareModel();
20588
+ }
20589
+ activateChipsMode() {
20590
+ this.textMode = false;
20591
+ this._setValueByText(this.inputTextModel);
20592
+ // this.inputTextModel = '';
20593
+ }
20594
+ getChipColorCss(index) {
20595
+ if (this.chipColors[index]) {
20596
+ return this.chipColors[index];
20597
+ }
20598
+ else if (this.colorSequence) {
20599
+ return this.colorSequence.getColor(index).cssColor;
20600
+ }
20601
+ else {
20602
+ return '';
20603
+ }
20604
+ }
20605
+ requestFocus() {
20606
+ if (this.inputTextComp) {
20607
+ this.inputTextComp.requestFocus();
20608
+ }
20609
+ }
20610
+ onChipsWrapClick() {
20611
+ if (!this._noChipsWrapClickFocus) {
20612
+ this.requestFocus();
20613
+ }
20614
+ }
20615
+ onChipTextClick(chipIndex) {
20616
+ const chipsModel = StringUtils.CloneStringArray(this.model);
20617
+ // this._ngZone.setTimeoutOutsideAngular(() => {
20618
+ // if (this.inputTextComp) {
20619
+ // this.inputTextComp.setSelectionRange(this.getSelectionRangeForChipWithIndex(chipIndex, chipsModel));
20620
+ // }
20621
+ // });
20622
+ }
20623
+ onChipRemoveIconClick(event, chipIndex) {
20624
+ EventUtils.KillEvent(event);
20625
+ this._triggerNoChipsWrapClickFocus(); // because that's what I wanted StopEvent() to do, but it doesn't do that ;)
20626
+ this.removeChipByIndex(chipIndex);
20627
+ this._blurAndSubmit();
20628
+ }
20629
+ onRightInBetweenClick(chipIndex) {
20630
+ return this.onChipTextClick(chipIndex);
20631
+ }
20632
+ onKeyDown(event) {
20633
+ if (event.key === KeyboardKey.Enter) {
20634
+ this._blurAndSubmit();
20635
+ }
20636
+ }
20637
+ onClearIconClick() {
20638
+ this.inputTextModel = '';
20639
+ this.resetValue();
20640
+ this.chipColors.length = 0;
20641
+ this._blurAndSubmit();
20642
+ }
20643
+ handleFocus(focused) {
20644
+ this.focused = focused;
20645
+ if (this.focused) {
20646
+ this.activateTextMode();
20647
+ this.focus.emit();
20648
+ }
20649
+ else {
20650
+ this.activateChipsMode();
20651
+ this.blur.emit();
20652
+ }
20653
+ }
20654
+ onExtraIconClick() {
20655
+ this._blurAndSubmit();
20656
+ this.extraIconClicked.emit();
20657
+ }
20658
+ onInputTextModelChange(txtModel) {
20659
+ if (!txtModel) {
20660
+ this.chipColors.length = 0;
20661
+ }
20662
+ }
20663
+ // Returns the selection range for the original full string inside <input-text> that corresponds with the chip of given index.
20664
+ // protected getSelectionRangeForChipWithIndex(chipIndex: number, chipsModel: string[]): NumericalRange {
20665
+ // if (!chipsModel) {
20666
+ // return undefined;
20667
+ // }
20668
+ // const selectionRange: NumericalRange = new NumericalRange();
20669
+ // selectionRange.lowerBound = 0;
20670
+ // for (let i: number = 0, len: number = chipsModel.length; i < len && i < chipIndex; i++) {
20671
+ // // add the text and its space to lowerbound
20672
+ // selectionRange.lowerBound += chipsModel[i].length + 1;
20673
+ // }
20674
+ // selectionRange.upperBound = selectionRange.lowerBound + chipsModel[chipIndex].length;
20675
+ // return selectionRange;
20676
+ // }
20677
+ removeChipByIndex(index) {
20678
+ this.beforeRemoveChip();
20679
+ ArrayUtils.RemoveElementAtIndex(index, this.model);
20680
+ this.modelChange.emit(this.model);
20681
+ ArrayUtils.RemoveElementAtIndex(index, this.chipColors);
20682
+ if (this.model && this.model.length === 0) {
20683
+ this.chipColors.length = 0;
20684
+ }
20685
+ }
20686
+ resetValue() {
20687
+ if (this.model) {
20688
+ this.model.length = 0;
20689
+ }
20690
+ else {
20691
+ this.model = [];
20692
+ }
20693
+ this.modelChange.emit(this.model);
20694
+ }
20695
+ beforeRemoveChip() {
20696
+ // staticize all current chips
20697
+ this.chipRenderComps.forEach((chipComp, idx) => {
20698
+ this.chipColors[idx] = chipComp.bgCssColor;
20699
+ });
20700
+ }
20701
+ _setValueByText(text) {
20702
+ if (!text) {
20703
+ this.resetValue();
20704
+ }
20705
+ this.model = StringUtils.StringToStringArray(text);
20706
+ this.modelChange.emit(this.model);
20707
+ }
20708
+ _prepareModel() {
20709
+ if (this.model) {
20710
+ let inpTxt = '';
20711
+ for (let i = 0, len = this.model.length; i < len; i++) {
20712
+ inpTxt += this.model[i] + ' ';
20713
+ }
20714
+ this.inputTextModel = inpTxt.trim();
20715
+ }
20716
+ }
20717
+ _blurAndSubmit() {
20718
+ this.inputTextComp.doBlur();
20719
+ this.submit.emit(this.model);
20720
+ }
20721
+ _triggerNoChipsWrapClickFocus() {
20722
+ // this._noChipsWrapClickFocus = true;
20723
+ // this._ngZone.setTimeoutOutsideAngular(() => {
20724
+ // this._noChipsWrapClickFocus = false;
20725
+ // });
20726
+ }
20727
+ 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 });
20728
+ 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: [
20729
+ OverlayService, {
20730
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
20731
+ useExisting: forwardRef(() => InputTextChipsComponent)
20732
+ }, {
20733
+ provide: BaseInputComponent,
20734
+ useExisting: InputTextChipsComponent
20735
+ }
20736
+ ], viewQueries: [{ propertyName: "inputTextComp", first: true, predicate: InputTextComponent, descendants: true, static: true }, { propertyName: "chipRenderComps", predicate: ChipRenderComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
20737
+ <co-input-text class="custom-height no-focus-line no-hover-line"
20738
+ [(model)]="inputTextModel"
20739
+ [useContent]="!textMode"
20740
+ [label]="label"
20741
+ [initFocus]="initFocus"
20742
+ [placeholder]="placeholder"
20743
+ [noClickFocus]="noClickFocus"
20744
+ [excludeUserModelChange]="excludeUserModelChange"
20745
+ [rightIconData]="iconCacheService.getIcon(extraIcon)"
20746
+ (clearIconClick)="onClearIconClick()"
20747
+ (keydown)="onKeyDown($event)"
20748
+ (isFocused)="handleFocus($event)"
20749
+ (rightIconClick)="onExtraIconClick()"
20750
+ (modelChange)="onInputTextModelChange($event)"
20751
+ [fullWidth]="true" [noValidation]="true">
20752
+ <div class="chips-wrap" (click)="onChipsWrapClick()">
20753
+ @for (txt of model; track txt; let index = $index) {
20754
+ <co-chip-render [text]="txt"
20755
+ [bgCssColor]="getChipColorCss(index)"
20756
+ (iconClick)="onChipRemoveIconClick($event, index)"
20757
+ (textClick)="onChipTextClick(index)">
20758
+ </co-chip-render>
20759
+ <div class="right-in-between" (click)="onRightInBetweenClick(index)"></div>
20760
+ }
20761
+ </div>
20762
+ </co-input-text>
20763
+ `, 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 });
20764
+ }
20765
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputTextChipsComponent, decorators: [{
20766
+ type: Component,
20767
+ args: [{
20768
+ selector: 'co-input-text-chips',
20769
+ template: `
20770
+ <co-input-text class="custom-height no-focus-line no-hover-line"
20771
+ [(model)]="inputTextModel"
20772
+ [useContent]="!textMode"
20773
+ [label]="label"
20774
+ [initFocus]="initFocus"
20775
+ [placeholder]="placeholder"
20776
+ [noClickFocus]="noClickFocus"
20777
+ [excludeUserModelChange]="excludeUserModelChange"
20778
+ [rightIconData]="iconCacheService.getIcon(extraIcon)"
20779
+ (clearIconClick)="onClearIconClick()"
20780
+ (keydown)="onKeyDown($event)"
20781
+ (isFocused)="handleFocus($event)"
20782
+ (rightIconClick)="onExtraIconClick()"
20783
+ (modelChange)="onInputTextModelChange($event)"
20784
+ [fullWidth]="true" [noValidation]="true">
20785
+ <div class="chips-wrap" (click)="onChipsWrapClick()">
20786
+ @for (txt of model; track txt; let index = $index) {
20787
+ <co-chip-render [text]="txt"
20788
+ [bgCssColor]="getChipColorCss(index)"
20789
+ (iconClick)="onChipRemoveIconClick($event, index)"
20790
+ (textClick)="onChipTextClick(index)">
20791
+ </co-chip-render>
20792
+ <div class="right-in-between" (click)="onRightInBetweenClick(index)"></div>
20793
+ }
20794
+ </div>
20795
+ </co-input-text>
20796
+ `,
20797
+ providers: [
20798
+ OverlayService, {
20799
+ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
20800
+ useExisting: forwardRef(() => InputTextChipsComponent)
20801
+ }, {
20802
+ provide: BaseInputComponent,
20803
+ useExisting: InputTextChipsComponent
20804
+ }
20805
+ ],
20806
+ standalone: false,
20807
+ encapsulation: ViewEncapsulation.None
20808
+ }]
20809
+ }], ctorParameters: () => [{ type: FormComponent, decorators: [{
20810
+ type: Optional
20811
+ }] }, { type: i0.ChangeDetectorRef }, { type: OverlayService }, { type: ColorSequenceService }, { type: IconCacheService }, { type: FormInputUserModelChangeListenerService }, { type: NgZoneWrapperService }, { type: i0.ElementRef }], propDecorators: { inputTextComp: [{
20812
+ type: ViewChild,
20813
+ args: [InputTextComponent, { static: true }]
20814
+ }], chipRenderComps: [{
20815
+ type: ViewChildren,
20816
+ args: [ChipRenderComponent]
20817
+ }], placeholder: [{
20818
+ type: Input
20819
+ }], colorSeqName: [{
20820
+ type: Input
20821
+ }], toggleModel: [{
20822
+ type: Input
20823
+ }], toggleBoxLabel: [{
20824
+ type: Input
20825
+ }], extraIcon: [{
20826
+ type: Input
20827
+ }], extraIconClicked: [{
20828
+ type: Output
20829
+ }], submit: [{
20830
+ type: Output
20831
+ }], toggleModelChange: [{
20832
+ type: Output
20833
+ }], textMode: [{
20834
+ type: HostBinding,
20835
+ args: ['class.text-mode']
20836
+ }], showClass: [{
20837
+ type: HostBinding,
20838
+ args: ['class.co-input-text-chips']
20839
+ }] } });
20840
+
20841
+ class InputTextChipsModule {
20842
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputTextChipsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
20843
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: InputTextChipsModule, declarations: [InputTextChipsComponent,
20844
+ ChipRenderComponent], imports: [CommonModule,
20845
+ IconModule,
20846
+ InputTextModule], exports: [InputTextChipsComponent] });
20847
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputTextChipsModule, imports: [CommonModule,
20848
+ IconModule,
20849
+ InputTextModule] });
20850
+ }
20851
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputTextChipsModule, decorators: [{
20852
+ type: NgModule,
20853
+ args: [{
20854
+ imports: [
20855
+ CommonModule,
20856
+ IconModule,
20857
+ InputTextModule
20858
+ ],
20859
+ declarations: [
20860
+ InputTextChipsComponent,
20861
+ ChipRenderComponent
20862
+ ],
20863
+ exports: [
20864
+ InputTextChipsComponent
20865
+ ]
20866
+ }]
20867
+ }] });
20868
+
20470
20869
  /*
20471
20870
  * Public API Surface of corecomponents
20472
20871
  */
@@ -20475,5 +20874,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
20475
20874
  * Generated bundle index. Do not edit.
20476
20875
  */
20477
20876
 
20478
- 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, ColorPickerComponent, ColorPickerModule, 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 };
20877
+ 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 };
20479
20878
  //# sourceMappingURL=colijnit-corecomponents_v12.mjs.map