ng-easycommerce-v18 0.3.15 → 0.3.16-beta.1

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.
@@ -7,7 +7,7 @@ export declare class DynamicsFilter extends Filter {
7
7
  type(): FilterType;
8
8
  setContent(options: any): void;
9
9
  getContent(): FilterElement[];
10
- toUrlParams: (actual_url?: string, sublist?: any, already?: any) => string;
11
- createElement(option: any): any;
10
+ toUrlParams: (actual_url?: string, sublist?: any, already?: boolean) => string;
11
+ createElement(option: any): FilterElement;
12
12
  cleanResult(text: string): string;
13
13
  }
@@ -16,4 +16,5 @@ export declare class Filter implements IFilter {
16
16
  } | null;
17
17
  getSelectedList: () => any;
18
18
  findSelected: (elements: any[], result: any) => any;
19
+ reset(children?: any): void;
19
20
  }
@@ -1,6 +1,6 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { Filter } from '../classes';
3
- import { FilterElement, PaginationSettings, FilterType } from '../interfaces';
3
+ import { DefaultFilter, FilterElement, PaginationSettings, FilterType } from '../interfaces';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class FiltersService {
6
6
  private _apiConsts;
@@ -14,6 +14,8 @@ export declare class FiltersService {
14
14
  private environmentInjector;
15
15
  private _optionsFilters;
16
16
  private _defaultFilters;
17
+ private _filtersInView;
18
+ filtersInView$: Observable<FilterElement | null>;
17
19
  private _paginationSettings;
18
20
  private _filtersInitialized;
19
21
  constructor();
@@ -40,6 +42,17 @@ export declare class FiltersService {
40
42
  * el array de filtros para que PaginationService vuelva a llamar
41
43
  */
42
44
  updatePriceRangeFilter(min: number, max: number): void;
45
+ setOptionsFilters(filters: (FilterType | 'all')[]): void;
46
+ setDefaultFilters(defaults: DefaultFilter[]): void;
47
+ hydrateDynamics(options: any): void;
48
+ /**
49
+ * @description redirecciona segun la url del filtro.
50
+ * @param filterElem No hace nada por ahora, es para mantener el mismo formato que como se usa en collection
51
+ * @param data Filtro que se usa para redireccion
52
+ */
53
+ setFilterSelectedByPath(filterElem: FilterElement, data: {
54
+ path: string;
55
+ }, router?: any): void;
43
56
  static ɵfac: i0.ɵɵFactoryDeclaration<FiltersService, never>;
44
57
  static ɵprov: i0.ɵɵInjectableDeclaration<FiltersService>;
45
58
  }
@@ -10,6 +10,7 @@ export declare class PaginationService {
10
10
  private _connectionService;
11
11
  private _filtersService;
12
12
  private _constants;
13
+ private _hydratedDynamics;
13
14
  paginationData$: Observable<any>;
14
15
  private _dataPagination;
15
16
  private _waiting;
@@ -90,6 +91,7 @@ export declare class PaginationService {
90
91
  * @returns
91
92
  */
92
93
  getData(url: string): Observable<any>;
94
+ private urlSignature;
93
95
  static ɵfac: i0.ɵɵFactoryDeclaration<PaginationService, never>;
94
96
  static ɵprov: i0.ɵɵInjectableDeclaration<PaginationService>;
95
97
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ng-easycommerce-v18",
3
- "version": "0.3.15",
3
+ "version": "0.3.16-beta.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.0",
6
6
  "@angular/core": "^18.2.0"