@wizishop/angular-components 0.0.74 → 0.0.77

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.
@@ -2,7 +2,8 @@ import { ElementRef, EventEmitter, OnInit } from '@angular/core';
2
2
  import { CalllToAction } from '../call-to-action.model';
3
3
  import { SelectItem } from '../select-items.dto';
4
4
  import { TranslateService } from '@ngx-translate/core';
5
- export declare class SelectComponent implements OnInit {
5
+ import { ControlValueAccessor } from '@angular/forms';
6
+ export declare class SelectComponent implements OnInit, ControlValueAccessor {
6
7
  private translateService;
7
8
  items: SelectItem[];
8
9
  placeholder: string;
@@ -13,26 +14,25 @@ export declare class SelectComponent implements OnInit {
13
14
  callToAction: CalllToAction;
14
15
  maxWidth: string;
15
16
  disabled: boolean;
16
- triggerValueSelect: SelectItem[];
17
17
  selectValue: EventEmitter<number>;
18
18
  clickOnCallToAction: EventEmitter<any>;
19
19
  searchElement: ElementRef;
20
20
  openCategories: boolean;
21
- searchPlaceholder: string;
22
21
  searchValue: string;
23
- emptyResult: string;
24
- currentLabel: string;
25
- currentLabelIcon: string;
22
+ indexItemSelected: number;
26
23
  constructor(translateService: TranslateService);
27
24
  ngOnInit(): void;
28
- setInitialValues(): void;
29
25
  onClose(): void;
30
26
  customTB(item: SelectItem, index: number): string;
31
- onSelectItem(index: number): void;
27
+ onSelectItem(id: number): void;
32
28
  onClickCallToAction(): void;
33
29
  private getItemSelected;
34
30
  showCategories(): void;
35
- private setCurrentItem;
36
- searchInSelect(): void;
37
31
  private unselectAll;
32
+ private setIndexItemSelected;
33
+ onChange: (selectItem: SelectItem) => void;
34
+ onTouch: any;
35
+ writeValue(selectItem: any): void;
36
+ registerOnChange(fn: any): void;
37
+ registerOnTouched(fn: any): void;
38
38
  }
@@ -3,5 +3,5 @@ export interface SelectItem {
3
3
  value?: any;
4
4
  icon?: string;
5
5
  selected?: boolean;
6
- id?: number;
6
+ id: number;
7
7
  }
@@ -3,7 +3,7 @@ import { RecursifDto, TreeDto } from './tree.dto';
3
3
  export declare class TreeComponent implements OnInit {
4
4
  items: (RecursifDto[] | TreeDto[]);
5
5
  treeDepth: number;
6
- optionTemplateRef: TemplateRef<any>;
6
+ optionTemplate: TemplateRef<any>;
7
7
  constructor();
8
8
  ngOnInit(): void;
9
9
  }
@@ -0,0 +1,5 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { SelectItem } from '../../components/selects/select-items.dto';
3
+ export declare class SelectFiltersPipe implements PipeTransform {
4
+ transform(items: SelectItem[], filterName: string): any;
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizishop/angular-components",
3
- "version": "0.0.74",
3
+ "version": "0.0.77",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^11.2.12",
6
6
  "@angular/core": "^11.2.12",
package/public-api.d.ts CHANGED
@@ -77,3 +77,4 @@ export * from './lib/components/tree/tree.module';
77
77
  export * from './lib/pipes/shared-pipes.module';
78
78
  export * from './lib/pipes/tree/format-object-to-recursif-tree.pipe';
79
79
  export * from './lib/pipes/tree/format-object-to-simple-tree.pipe';
80
+ export * from './lib/pipes/select/select-filters.pipe';