@colijnit/corecomponents_v12 262.1.11 → 262.1.13

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.
package/index.d.ts CHANGED
@@ -1451,6 +1451,7 @@ declare class InputTextComponent extends BaseInputComponent<any> implements Afte
1451
1451
  noStyle: boolean;
1452
1452
  hideArrowButtons: boolean;
1453
1453
  get isDate(): boolean;
1454
+ get hasValue(): boolean;
1454
1455
  leftIconClick: EventEmitter<MouseEvent>;
1455
1456
  leftIconMouseDown: EventEmitter<MouseEvent>;
1456
1457
  leftIconMouseUp: EventEmitter<MouseEvent>;
@@ -1473,6 +1474,7 @@ declare class InputTextComponent extends BaseInputComponent<any> implements Afte
1473
1474
  private _isLeftIconMouseDown;
1474
1475
  private _isRightIconMouseDown;
1475
1476
  constructor(formComponent: FormComponent, changeDetector: ChangeDetectorRef, overlayService: OverlayService, formUserChangeListener?: FormInputUserModelChangeListenerService, ngZoneWrapper?: NgZoneWrapperService, elementRef?: ElementRef);
1477
+ ngAfterViewInit(): void;
1476
1478
  handleLeftIconClick(event: MouseEvent): void;
1477
1479
  handleLeftIconMouseDown(event: MouseEvent): void;
1478
1480
  handleLeftIconMouseUp(event: MouseEvent): void;
@@ -2721,8 +2723,15 @@ declare class ViewModeButtonsModule {
2721
2723
  static ɵinj: i0.ɵɵInjectorDeclaration<ViewModeButtonsModule>;
2722
2724
  }
2723
2725
 
2726
+ interface LovHighlightPart {
2727
+ text: string;
2728
+ match: boolean;
2729
+ }
2730
+
2724
2731
  declare class LovUtils {
2725
2732
  static getDisplayValue(model: any, displayField: string): string;
2733
+ static getHighlightParts(value: string, term: string): LovHighlightPart[];
2734
+ private static _escapeRegExp;
2726
2735
  }
2727
2736
 
2728
2737
  declare class ListOfValuesComponent extends BaseInputComponent<any> implements OnInit {
@@ -2761,12 +2770,15 @@ declare class ListOfValuesComponent extends BaseInputComponent<any> implements O
2761
2770
  isLoading: boolean;
2762
2771
  private _collection;
2763
2772
  private debounceTimeout;
2773
+ private _filterRequestId;
2764
2774
  private _lovPopupComponentRef;
2765
2775
  constructor(formComponent: FormComponent, iconCacheService: IconCacheService, changeDetector: ChangeDetectorRef, overlayService: OverlayService, formUserChangeListener?: FormInputUserModelChangeListenerService, ngZoneWrapper?: NgZoneWrapperService, elementRef?: ElementRef);
2766
2776
  ngOnInit(): void;
2777
+ get inputModel(): any;
2778
+ handleModelChange(model: string): void;
2767
2779
  handleInputModelChange(model: string): void;
2768
2780
  onModelChange(model: string): void;
2769
- applyFilter(text: string): Promise<[]>;
2781
+ applyFilter(text: string, requestId?: number): Promise<void>;
2770
2782
  handleInputKeyDown(event: KeyboardEvent): boolean;
2771
2783
  clearModel(event: MouseEvent): void;
2772
2784
  toggleSelect(): void;
@@ -2783,11 +2795,11 @@ declare class ListOfValuesComponent extends BaseInputComponent<any> implements O
2783
2795
  interface lovViewModel {
2784
2796
  checked: boolean;
2785
2797
  model: any;
2798
+ highlightParts?: LovHighlightPart[];
2786
2799
  }
2787
2800
  declare class ListOfValuesPopupComponent implements OnInit {
2788
2801
  iconCacheService: IconCacheService;
2789
2802
  private _elementRef;
2790
- readonly lovUtils: typeof LovUtils;
2791
2803
  set lovItems(children: any);
2792
2804
  dropDownList: ElementRef;
2793
2805
  set inputSearch(component: InputSearchComponent);
@@ -172,6 +172,10 @@
172
172
  border-bottom: none;
173
173
  }
174
174
 
175
+ .lov-highlight {
176
+ font-weight: $cc-co-list-of-values-highlight-font-weight;
177
+ }
178
+
175
179
  .lov-options li:hover {
176
180
  //color: $cc-co-list-of-values-lov-options-li-hover-text-color;
177
181
  background-color: $cc-co-list-of-values-lov-options-li-hover;
@@ -23,6 +23,10 @@ $cc-co-list-of-values-lov-options-li-hover-text-color: $cc-color-input-lov !defa
23
23
  $cc-co-list-of-values-lov-options-li-selected: $cc-color-grey !default;
24
24
  $cc-co-list-of-values-lov-options-li-selected-text-color: $cc-color-input-lov !default;
25
25
 
26
+ $cc-co-list-of-values-highlight-font-weight: 700 !default;
27
+ $cc-co-list-of-values-highlight-background-color: transparent !default;
28
+ $cc-co-list-of-values-highlight-text-color: $cc-color-font !default;
29
+
26
30
  $cc-co-list-of-values-multiselect-chips-padding: 0 10px 10px 10px !default;
27
31
  $cc-co-list-of-values-multiselect-chips-column-gap: 5px !default;
28
32
  $cc-co-list-of-values-multiselect-chips-row-gap: 2px !default;
@@ -0,0 +1,8 @@
1
+ @include export-module('co-list-of-values-theme') {
2
+ .co-list-of-values-popup {
3
+ .lov-highlight {
4
+ background-color: $cc-co-list-of-values-highlight-background-color;
5
+ color: $cc-co-list-of-values-highlight-text-color;
6
+ }
7
+ }
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/corecomponents_v12",
3
- "version": "262.1.11",
3
+ "version": "262.1.13",
4
4
  "description": "Colijn IT core components for Angular 12",
5
5
  "private": false,
6
6
  "peerDependencies": {