@net7/boilerplate-muruca 5.5.4 → 5.5.5
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/esm2022/lib/config-types/muruca/sections.mjs +1 -1
- package/esm2022/lib/data-sources/hero.ds.mjs +13 -3
- package/esm2022/lib/event-handlers/hero.eh.mjs +17 -10
- package/esm2022/lib/layouts/home-layout/home-layout.ds.mjs +16 -1
- package/esm2022/lib/layouts/home-layout/home-layout.eh.mjs +4 -5
- package/esm2022/lib/layouts/home-layout/home-layout.mjs +8 -6
- package/fesm2022/net7-boilerplate-muruca.mjs +53 -20
- package/fesm2022/net7-boilerplate-muruca.mjs.map +1 -1
- package/lib/config-types/muruca/sections.d.ts +13 -0
- package/lib/data-sources/hero.ds.d.ts +1 -0
- package/lib/event-handlers/hero.eh.d.ts +1 -0
- package/lib/layouts/home-layout/home-layout.d.ts +4 -2
- package/lib/layouts/home-layout/home-layout.ds.d.ts +3 -0
- package/package.json +1 -1
|
@@ -22,6 +22,19 @@ export interface ConfigMurucaHeroSection extends ConfigMurucaSection {
|
|
|
22
22
|
classes?: string;
|
|
23
23
|
/** has background? */
|
|
24
24
|
background?: boolean;
|
|
25
|
+
/** search input field */
|
|
26
|
+
input?: {
|
|
27
|
+
/** placeholder label */
|
|
28
|
+
placeholder?: string;
|
|
29
|
+
/** icon insiode the field */
|
|
30
|
+
icon?: string;
|
|
31
|
+
/** payload used to detect event */
|
|
32
|
+
payload?: string;
|
|
33
|
+
/** id of the query used for queryParams */
|
|
34
|
+
queryId?: string;
|
|
35
|
+
/** additional queryParams */
|
|
36
|
+
additionalQueryParams?: Record<string, string>;
|
|
37
|
+
};
|
|
25
38
|
};
|
|
26
39
|
}
|
|
27
40
|
export interface ConfigMurucaButtonSection extends ConfigMurucaSection {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute, Data } from '@angular/router';
|
|
2
|
+
import { ActivatedRoute, Data, Router } from '@angular/router';
|
|
3
3
|
import { AbstractLayout, CommunicationService, LayoutsConfigurationService, ConfigurationService, MainStateService } from '@net7/boilerplate-common';
|
|
4
4
|
import { MrLayoutStateService } from '../../services/layout-state.service';
|
|
5
5
|
import { MrLocaleService } from '../../services/locale.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class MrHomeLayoutComponent extends AbstractLayout implements OnInit, OnDestroy {
|
|
8
|
+
private router;
|
|
8
9
|
private activatedRoute;
|
|
9
10
|
private configuration;
|
|
10
11
|
private communication;
|
|
@@ -12,8 +13,9 @@ export declare class MrHomeLayoutComponent extends AbstractLayout implements OnI
|
|
|
12
13
|
layoutState: MrLayoutStateService;
|
|
13
14
|
private localeService;
|
|
14
15
|
private routeData;
|
|
15
|
-
constructor(layoutsConfiguration: LayoutsConfigurationService, activatedRoute: ActivatedRoute, configuration: ConfigurationService, communication: CommunicationService, mainState: MainStateService, layoutState: MrLayoutStateService, localeService: MrLocaleService);
|
|
16
|
+
constructor(layoutsConfiguration: LayoutsConfigurationService, router: Router, activatedRoute: ActivatedRoute, configuration: ConfigurationService, communication: CommunicationService, mainState: MainStateService, layoutState: MrLayoutStateService, localeService: MrLocaleService);
|
|
16
17
|
protected initPayload(): {
|
|
18
|
+
router: Router;
|
|
17
19
|
routeData: Data;
|
|
18
20
|
mainState: MainStateService;
|
|
19
21
|
configuration: ConfigurationService;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { LayoutDataSource } from '@net7/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
2
3
|
export declare class MrHomeLayoutDS extends LayoutDataSource {
|
|
4
|
+
protected router: Router;
|
|
3
5
|
private configuration;
|
|
4
6
|
private communication;
|
|
5
7
|
private mainState;
|
|
@@ -12,4 +14,5 @@ export declare class MrHomeLayoutDS extends LayoutDataSource {
|
|
|
12
14
|
doRequest(): void;
|
|
13
15
|
initSections(response: any): void;
|
|
14
16
|
private updateHeadTitle;
|
|
17
|
+
searchRedirect(type: any, payload: any): void;
|
|
15
18
|
}
|