@net7/boilerplate-muruca 5.2.15 → 5.2.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.
@@ -76,6 +76,12 @@ export interface MrSearchFacetsConfig {
76
76
  sections: MrSearchFacetsSection[];
77
77
  /** aditional css classes */
78
78
  classes?: string;
79
+ redirectLink?: {
80
+ label: string;
81
+ paths: {
82
+ [locale: string]: string;
83
+ };
84
+ };
79
85
  }
80
86
  export interface MrSearchConfig {
81
87
  request: {
@@ -1,16 +1,19 @@
1
1
  import { OnInit, OnDestroy } from '@angular/core';
2
2
  import { AbstractLayout } from '@net7/boilerplate-common';
3
+ import { MrLocaleService } from '../../services/locale.service';
3
4
  import { MrSearchService } from '../../services/search.service';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class MrSearchFacetsLayoutComponent extends AbstractLayout implements OnInit, OnDestroy {
6
7
  searchService: MrSearchService;
8
+ localeService: MrLocaleService;
7
9
  constructor();
8
10
  protected initPayload(): {
9
11
  searchService: MrSearchService;
12
+ localeService: MrLocaleService;
10
13
  };
11
14
  ngOnInit(): void;
12
15
  ngOnDestroy(): void;
13
16
  loadWidgets(): void;
14
17
  static ɵfac: i0.ɵɵFactoryDeclaration<MrSearchFacetsLayoutComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<MrSearchFacetsLayoutComponent, "mr-search-facets-layout", never, { "searchService": { "alias": "searchService"; "required": false; }; }, {}, never, never, false, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<MrSearchFacetsLayoutComponent, "mr-search-facets-layout", never, { "searchService": { "alias": "searchService"; "required": false; }; "localeService": { "alias": "localeService"; "required": false; }; }, {}, never, never, false, never>;
16
19
  }
@@ -3,9 +3,13 @@ export declare class SearchFacetsLayoutDS extends LayoutDataSource {
3
3
  private searchService;
4
4
  private inputsDS;
5
5
  searchConfig: any;
6
+ localeService: any;
6
7
  facets: any;
8
+ redirectPath: any;
9
+ redirectLabel: any;
7
10
  onInit(payload: any): void;
8
11
  initInputs(): void;
12
+ initRedirectLink(redirectData: any): void;
9
13
  updateInputValue(id: any, newValue: any): void;
10
14
  updateInputData(id: string, newData: any): void;
11
15
  clearInput(id: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@net7/boilerplate-muruca",
3
- "version": "5.2.15",
3
+ "version": "5.2.16",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.11",
6
6
  "@angular/core": "^17.3.11"
@@ -14,6 +14,12 @@
14
14
  padding: 0;
15
15
  }
16
16
 
17
+ &__redirect-link {
18
+ border-bottom: 1px solid #dddddd;
19
+ padding-bottom: 24px;
20
+ margin-bottom: 24px;
21
+ }
22
+
17
23
  /* Wraps the actual facets */
18
24
  &__facets-wrapper {
19
25