@firestitch/filter 12.12.2 → 12.12.4

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,5 +1,4 @@
1
- import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
2
- import { FormControl } from '@angular/forms';
1
+ import { EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
3
2
  import { MatInput } from '@angular/material/input';
4
3
  import { Observable } from 'rxjs';
5
4
  import { ActionsController } from '../../classes/actions-controller';
@@ -13,7 +12,7 @@ import { ExternalParamsController } from '../../services/external-params-control
13
12
  import { FsFilterOverlayService } from '../../services/filter-overlay.service';
14
13
  import { FsFilterItemsStore } from '../../services/items-store.service';
15
14
  import * as i0 from "@angular/core";
16
- export declare class FilterComponent implements OnInit, AfterViewInit, OnDestroy {
15
+ export declare class FilterComponent implements OnInit, OnDestroy {
17
16
  private _defaultConfig;
18
17
  private _filterOverlay;
19
18
  private _zone;
@@ -28,19 +27,19 @@ export declare class FilterComponent implements OnInit, AfterViewInit, OnDestroy
28
27
  opened: EventEmitter<any>;
29
28
  ready: EventEmitter<void>;
30
29
  statusBar: any;
31
- searchTextInput: ElementRef;
32
- searchTextMatInput: MatInput;
30
+ keywordMatInput: MatInput;
33
31
  showFilterMenu: boolean;
34
32
  windowDesktop: boolean;
35
33
  fsFilterClass: boolean;
36
34
  get hasKeyword(): boolean;
37
- searchText: FormControl;
38
35
  searchPlaceholder: string;
36
+ keyword: string;
39
37
  protected _config: FsFilterConfig;
40
38
  private _sort;
41
39
  private _filtersBtnVisible$;
42
40
  private _keywordVisible$;
43
41
  private _hasFilterChips$;
42
+ private _keyword$;
44
43
  private _destroy$;
45
44
  constructor(_defaultConfig: FsFilterConfig, _filterOverlay: FsFilterOverlayService, _zone: NgZone, _externalParams: ExternalParamsController, _filterItems: FsFilterItemsStore, _actions: ActionsController);
46
45
  get config(): FsFilterConfig;
@@ -57,7 +56,6 @@ export declare class FilterComponent implements OnInit, AfterViewInit, OnDestroy
57
56
  get actions$(): Observable<import("../../models/action.model").Action[]>;
58
57
  get menuActions$(): Observable<import("../../models/action.model").Action[]>;
59
58
  ngOnInit(): void;
60
- ngAfterViewInit(): void;
61
59
  ngOnDestroy(): void;
62
60
  focus(): void;
63
61
  updateSort(sort: ISortingChangeEvent): void;
@@ -122,7 +120,6 @@ export declare class FilterComponent implements OnInit, AfterViewInit, OnDestroy
122
120
  hide(): void;
123
121
  show(): void;
124
122
  changeVisibilityClick(value: any, event?: any): void;
125
- filterInputEvent(event: any): void;
126
123
  get itemValues(): any[];
127
124
  get nonEmptyItemValues(): any[];
128
125
  get hasItemValues(): boolean;
@@ -133,7 +130,6 @@ export declare class FilterComponent implements OnInit, AfterViewInit, OnDestroy
133
130
  updateItemConfig(name: string, params: IUpdateFilterItemConfig): void;
134
131
  getItemValueChange$(name: string): Observable<any> | null;
135
132
  changeVisibility(state: boolean): void;
136
- clearSearchText(event: any): void;
137
133
  init(): void;
138
134
  clear(event?: any): void;
139
135
  /**
@@ -181,11 +177,10 @@ export declare class FilterComponent implements OnInit, AfterViewInit, OnDestroy
181
177
  private _destroyFilterDrawer;
182
178
  private _updateWindowWidth;
183
179
  private _listenEscButton;
184
- private _listenInputKeyEvents;
185
180
  private _listenWindowResize;
181
+ keywordChange(keyword: any): void;
186
182
  private _listenInputChanges;
187
183
  private _syncSearchInputWithKeyword;
188
- private _listenKeywordItemClear;
189
184
  private _listenInternalItemsChange;
190
185
  private _initOverlay;
191
186
  private _listenWhenFilterReady;
@@ -50,15 +50,16 @@ import * as i46 from "@firestitch/label";
50
50
  import * as i47 from "@firestitch/autocomplete";
51
51
  import * as i48 from "@firestitch/autocomplete-chips";
52
52
  import * as i49 from "@firestitch/scroll";
53
- import * as i50 from "@angular/cdk/portal";
54
- import * as i51 from "@firestitch/menu";
55
- import * as i52 from "@firestitch/skeleton";
56
- import * as i53 from "@firestitch/form";
57
- import * as i54 from "@firestitch/file";
53
+ import * as i50 from "@firestitch/menu";
54
+ import * as i51 from "@firestitch/skeleton";
55
+ import * as i52 from "@firestitch/form";
56
+ import * as i53 from "@firestitch/file";
57
+ import * as i54 from "@firestitch/clear";
58
58
  import * as i55 from "@firestitch/popover";
59
+ import * as i56 from "@angular/cdk/portal";
59
60
  export declare class FsFilterModule {
60
61
  static forRoot(config?: FilterConfig): ModuleWithProviders<FsFilterModule>;
61
62
  static ɵfac: i0.ɵɵFactoryDeclaration<FsFilterModule, never>;
62
- static ɵmod: i0.ɵɵNgModuleDeclaration<FsFilterModule, [typeof i1.BaseItemComponent, typeof i2.FilterComponent, typeof i3.FilterItemComponent, typeof i4.FsFilterChipsComponent, typeof i5.SelectComponent, typeof i6.SelectGroupsComponent, typeof i7.SelectSimpleComponent, typeof i8.SelectMultipleComponent, typeof i9.ChipsComponent, typeof i10.TextComponent, typeof i11.WeekComponent, typeof i12.RangeComponent, typeof i13.AutocompleteComponent, typeof i14.AutocompletechipsComponent, typeof i15.DateComponent, typeof i16.DateRangeComponent, typeof i17.CheckboxComponent, typeof i18.FilterDrawerComponent, typeof i19.SelectBackdropComponent, typeof i20.FsFilterChipComponent, typeof i21.FsFilterChipContentComponent, typeof i22.FsFilterDrawerActionsComponent, typeof i23.FsFilterSavedFilterEditComponent, typeof i24.FsSavedFiltersMenuComponent, typeof i25.FsFilterActionsComponent, typeof i26.FsFilterActionButtonComponent, typeof i27.FsFilterActionKebabActionsComponent, typeof i28.FilterStatusBarDirective, typeof i29.FocusToItemDirective, typeof i30.FsFilterIsolateValues], [typeof i31.CommonModule, typeof i32.RouterModule, typeof i33.FormsModule, typeof i33.ReactiveFormsModule, typeof i34.MatIconModule, typeof i35.MatInputModule, typeof i36.MatSelectModule, typeof i37.MatChipsModule, typeof i38.MatCheckboxModule, typeof i39.MatAutocompleteModule, typeof i40.MatButtonModule, typeof i41.MatDialogModule, typeof i42.FsChipModule, typeof i43.FsCommonModule, typeof i44.FsStoreModule, typeof i45.FsDatePickerModule, typeof i46.FsLabelModule, typeof i47.FsAutocompleteModule, typeof i48.FsAutocompleteChipsModule, typeof i49.FsScrollModule, typeof i50.PortalModule, typeof i51.FsMenuModule, typeof i52.FsSkeletonModule, typeof i53.FsFormModule, typeof i54.FsFileModule, typeof i55.FsPopoverModule], [typeof i2.FilterComponent, typeof i28.FilterStatusBarDirective, typeof i24.FsSavedFiltersMenuComponent]>;
63
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FsFilterModule, [typeof i1.BaseItemComponent, typeof i2.FilterComponent, typeof i3.FilterItemComponent, typeof i4.FsFilterChipsComponent, typeof i5.SelectComponent, typeof i6.SelectGroupsComponent, typeof i7.SelectSimpleComponent, typeof i8.SelectMultipleComponent, typeof i9.ChipsComponent, typeof i10.TextComponent, typeof i11.WeekComponent, typeof i12.RangeComponent, typeof i13.AutocompleteComponent, typeof i14.AutocompletechipsComponent, typeof i15.DateComponent, typeof i16.DateRangeComponent, typeof i17.CheckboxComponent, typeof i18.FilterDrawerComponent, typeof i19.SelectBackdropComponent, typeof i20.FsFilterChipComponent, typeof i21.FsFilterChipContentComponent, typeof i22.FsFilterDrawerActionsComponent, typeof i23.FsFilterSavedFilterEditComponent, typeof i24.FsSavedFiltersMenuComponent, typeof i25.FsFilterActionsComponent, typeof i26.FsFilterActionButtonComponent, typeof i27.FsFilterActionKebabActionsComponent, typeof i28.FilterStatusBarDirective, typeof i29.FocusToItemDirective, typeof i30.FsFilterIsolateValues], [typeof i31.CommonModule, typeof i32.RouterModule, typeof i33.FormsModule, typeof i33.ReactiveFormsModule, typeof i34.MatIconModule, typeof i35.MatInputModule, typeof i36.MatSelectModule, typeof i37.MatChipsModule, typeof i38.MatCheckboxModule, typeof i39.MatAutocompleteModule, typeof i40.MatButtonModule, typeof i41.MatDialogModule, typeof i42.FsChipModule, typeof i43.FsCommonModule, typeof i44.FsStoreModule, typeof i45.FsDatePickerModule, typeof i46.FsLabelModule, typeof i47.FsAutocompleteModule, typeof i48.FsAutocompleteChipsModule, typeof i49.FsScrollModule, typeof i50.FsMenuModule, typeof i51.FsSkeletonModule, typeof i52.FsFormModule, typeof i53.FsFileModule, typeof i54.FsClearModule, typeof i55.FsPopoverModule, typeof i56.PortalModule], [typeof i2.FilterComponent, typeof i28.FilterStatusBarDirective, typeof i24.FsSavedFiltersMenuComponent]>;
63
64
  static ɵinj: i0.ɵɵInjectorDeclaration<FsFilterModule>;
64
65
  }