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