@rededor/site-front-end-lib 0.0.51 → 0.0.53
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/components/breadcrumbs/breadcrumbs.component.mjs +78 -12
- package/esm2022/lib/components/cta-wrapper/cta-wrapper.component.mjs +72 -0
- package/esm2022/lib/components/error/error-service/error.service.mjs +17 -0
- package/esm2022/lib/components/error/error.component.mjs +125 -0
- package/esm2022/lib/components/index.mjs +5 -1
- package/esm2022/lib/components/page-header/page-header.component.mjs +1 -1
- package/esm2022/lib/components/page-template-sidebar/page-template-sidebar.component.mjs +3 -3
- package/esm2022/lib/components/section-navigation/section-navigation.component.mjs +67 -0
- package/esm2022/lib/enums/EnumError.enum.mjs +6 -0
- package/esm2022/lib/enums/EnumThemes.enum.mjs +8 -0
- package/esm2022/lib/enums/index.mjs +3 -1
- package/esm2022/lib/helpers/mediaQueries.mjs +11 -0
- package/esm2022/lib/models/section-navigation.model.mjs +2 -0
- package/esm2022/lib/services/log/log.service.mjs +4 -1
- package/esm2022/lib/services/scroll-service/scroll-service.service.mjs +39 -0
- package/esm2022/lib/services/seo/seo.service.mjs +13 -1
- package/fesm2022/rededor-site-front-end-lib.mjs +460 -62
- package/fesm2022/rededor-site-front-end-lib.mjs.map +1 -1
- package/lib/components/breadcrumbs/breadcrumbs.component.d.ts +17 -4
- package/lib/components/cta-wrapper/cta-wrapper.component.d.ts +29 -0
- package/lib/components/error/error-service/error.service.d.ts +17 -0
- package/lib/components/error/error.component.d.ts +42 -0
- package/lib/components/index.d.ts +4 -0
- package/lib/components/section-navigation/section-navigation.component.d.ts +19 -0
- package/lib/enums/EnumError.enum.d.ts +4 -0
- package/lib/enums/EnumThemes.enum.d.ts +6 -0
- package/lib/enums/index.d.ts +2 -0
- package/lib/helpers/mediaQueries.d.ts +6 -0
- package/lib/models/section-navigation.model.d.ts +9 -0
- package/lib/services/log/log.service.d.ts +1 -0
- package/lib/services/scroll-service/scroll-service.service.d.ts +7 -0
- package/lib/services/seo/seo.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
import { BreadcrumbsItems } from '../../models/breadcrumbs/breadcrumbs-items.model';
|
|
2
2
|
import { CuraService } from '../../services/cura/cura.service';
|
|
3
|
+
import { LibConfig } from '../../tokens/LibConfig';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class BreadcrumbsComponent {
|
|
5
6
|
private curaService;
|
|
6
|
-
|
|
7
|
+
private libConfig;
|
|
8
|
+
private document;
|
|
9
|
+
fontColor: string | null;
|
|
10
|
+
private _breadcrumbs;
|
|
11
|
+
set breadcrumbs(value: BreadcrumbsItems[]);
|
|
12
|
+
get breadcrumbs(): BreadcrumbsItems[];
|
|
13
|
+
private breadcrumbsJsonTag;
|
|
14
|
+
private breadcrumbsJsonTagId;
|
|
7
15
|
style: {
|
|
16
|
+
'--font-size': string;
|
|
8
17
|
'--font-color': string | null;
|
|
9
18
|
'--symbol-color': string | null;
|
|
10
19
|
};
|
|
11
|
-
constructor(curaService: CuraService);
|
|
12
|
-
|
|
20
|
+
constructor(curaService: CuraService, libConfig: LibConfig, document: Document);
|
|
21
|
+
getUrl(urls?: string[]): string;
|
|
22
|
+
private setBreadcrumbsJson;
|
|
23
|
+
private getBreadcrumbsJSONTag;
|
|
24
|
+
private createBreadcrumbsJSONTag;
|
|
25
|
+
private getJsonBreadcrumbItems;
|
|
13
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbsComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbsComponent, "rdsite-breadcrumbs", never, { "
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbsComponent, "rdsite-breadcrumbs", never, { "fontColor": { "alias": "fontColor"; "required": false; }; "breadcrumbs": { "alias": "breadcrumbs"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
28
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { NguCarousel, NguCarouselConfig } from '@ngu/carousel';
|
|
2
|
+
import { CuraService, NguCarouselService } from '../../services';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CtaWrapperComponent {
|
|
5
|
+
private readonly curaService;
|
|
6
|
+
private nguService;
|
|
7
|
+
private readonly platformId;
|
|
8
|
+
ctas: any;
|
|
9
|
+
colors: {
|
|
10
|
+
border: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
};
|
|
13
|
+
carouselCtasConfig: NguCarouselConfig;
|
|
14
|
+
bannerControl: boolean;
|
|
15
|
+
seeMoreControl: boolean;
|
|
16
|
+
nguCarouselCtas: NguCarousel<any, any>;
|
|
17
|
+
onWindowResize(): void;
|
|
18
|
+
styleBinding: {
|
|
19
|
+
'--more-options-color': string | null;
|
|
20
|
+
'--border-color': string | null;
|
|
21
|
+
'--label-color': string | null;
|
|
22
|
+
};
|
|
23
|
+
class: boolean;
|
|
24
|
+
constructor(curaService: CuraService, nguService: NguCarouselService, platformId: object);
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
moreOptions(): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CtaWrapperComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CtaWrapperComponent, "rdsite-cta-wrapper", never, { "ctas": { "alias": "ctas"; "required": false; }; "colors": { "alias": "colors"; "required": false; }; }, {}, never, never, true, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface ctas404_502 {
|
|
4
|
+
label: string;
|
|
5
|
+
link: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ctasArea {
|
|
9
|
+
label: string;
|
|
10
|
+
link: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class ErrorService {
|
|
14
|
+
ctas: BehaviorSubject<ctas404_502[]>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ErrorService>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ErrorService, ctas404_502 } from './error-service/error.service';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
import { CuraService, LogService, SeoService, ServerResponseService } from '../../services';
|
|
5
|
+
import { BreadcrumbsItems } from '../../models/breadcrumbs/breadcrumbs-items.model';
|
|
6
|
+
import { Errors, Themes } from '../../enums';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class ErrorComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
9
|
+
private errorService;
|
|
10
|
+
private curaService;
|
|
11
|
+
private logService;
|
|
12
|
+
private seoService;
|
|
13
|
+
private serverResponse;
|
|
14
|
+
private readonly platformId;
|
|
15
|
+
theme: Themes;
|
|
16
|
+
type: Errors;
|
|
17
|
+
returnRoute: string;
|
|
18
|
+
returnLabel: string;
|
|
19
|
+
pageTitle: string;
|
|
20
|
+
component: string;
|
|
21
|
+
breadcrumbsItems: BreadcrumbsItems[];
|
|
22
|
+
ctasSubscription: Subscription;
|
|
23
|
+
ctas: ctas404_502[];
|
|
24
|
+
responseText: string;
|
|
25
|
+
backgroundColor: string;
|
|
26
|
+
labelColor: string;
|
|
27
|
+
labelTextColor: string;
|
|
28
|
+
curaButtonColor: string;
|
|
29
|
+
curaButtonOutlineColor: string;
|
|
30
|
+
ctasBorderColor: string;
|
|
31
|
+
ctasIconColor: string;
|
|
32
|
+
error: typeof Errors;
|
|
33
|
+
errorElement: ElementRef<HTMLDivElement>;
|
|
34
|
+
constructor(errorService: ErrorService, curaService: CuraService, logService: LogService, seoService: SeoService, serverResponse: ServerResponseService, platformId: object);
|
|
35
|
+
ngOnInit(): void;
|
|
36
|
+
ngAfterViewInit(): void;
|
|
37
|
+
setTheme(theme: Themes): void;
|
|
38
|
+
reloadPage(): void;
|
|
39
|
+
ngOnDestroy(): void;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ErrorComponent, "rdsite-error", never, { "theme": { "alias": "theme"; "required": false; }; "type": { "alias": "type"; "required": false; }; "returnRoute": { "alias": "returnRoute"; "required": false; }; "returnLabel": { "alias": "returnLabel"; "required": false; }; "pageTitle": { "alias": "pageTitle"; "required": false; }; "component": { "alias": "component"; "required": false; }; "breadcrumbsItems": { "alias": "breadcrumbsItems"; "required": false; }; }, {}, never, never, true, never>;
|
|
42
|
+
}
|
|
@@ -25,7 +25,11 @@ export * from './side-ctas/components/side-ctas-right-middle/side-ctas-right-mid
|
|
|
25
25
|
export * from './side-ctas/components/side-ctas-right-top/side-ctas-right-top.component';
|
|
26
26
|
export * from './whatsapp/whatsapp.component';
|
|
27
27
|
export * from './algolia/algolia.component';
|
|
28
|
+
export * from './error/error.component';
|
|
29
|
+
export * from './error/error-service/error.service';
|
|
30
|
+
export * from './cta-wrapper/cta-wrapper.component';
|
|
28
31
|
export * from './page-header/page-header.component';
|
|
29
32
|
export * from './breadcrumbs/breadcrumbs.component';
|
|
30
33
|
export * from './page-template-sidebar/page-template-sidebar.component';
|
|
31
34
|
export * from './filter-letter-and-terms/filter-letter-and-terms.component';
|
|
35
|
+
export * from './section-navigation/section-navigation.component';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { NavigationSection, SectionNavigationConfig } from '../../models/section-navigation.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SectionNavigationComponent implements OnInit {
|
|
5
|
+
private readonly scrollService;
|
|
6
|
+
private readonly curaService;
|
|
7
|
+
readonly sections: import("@angular/core").WritableSignal<NavigationSection[]>;
|
|
8
|
+
readonly config: import("@angular/core").WritableSignal<SectionNavigationConfig | undefined>;
|
|
9
|
+
readonly activeSection: import("@angular/core").WritableSignal<string>;
|
|
10
|
+
set navigationSections(value: NavigationSection[]);
|
|
11
|
+
set navigationConfig(value: SectionNavigationConfig);
|
|
12
|
+
ariaLabel: string;
|
|
13
|
+
sectionChange: EventEmitter<NavigationSection>;
|
|
14
|
+
constructor();
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
onSectionClick(section: NavigationSection): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionNavigationComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SectionNavigationComponent, "rdsite-section-navigation", never, { "navigationSections": { "alias": "navigationSections"; "required": true; }; "navigationConfig": { "alias": "navigationConfig"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "sectionChange": "sectionChange"; }, never, never, true, never>;
|
|
19
|
+
}
|
package/lib/enums/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare class LogService {
|
|
|
9
9
|
logMsg(msg: any, label?: string): void;
|
|
10
10
|
logLoad(component?: string): void;
|
|
11
11
|
log404(component?: string): void;
|
|
12
|
+
log500(component?: string): void;
|
|
12
13
|
getPageURL(): string;
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<LogService, never>;
|
|
14
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<LogService>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScrollService {
|
|
3
|
+
private document;
|
|
4
|
+
scrollToElement(elementId: string, offset?: number, smooth?: boolean): boolean;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollService, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ScrollService>;
|
|
7
|
+
}
|
|
@@ -79,6 +79,7 @@ export declare class SeoService {
|
|
|
79
79
|
/** Obtem título atual da página */
|
|
80
80
|
getTitle(): string;
|
|
81
81
|
set404Title(component?: string): this;
|
|
82
|
+
set500Title(component?: string): this;
|
|
82
83
|
/** Cria tag script para JSON de breadcrumbs */
|
|
83
84
|
private createBreadcrumbsJSONTag;
|
|
84
85
|
/** Retorna tag para script json de breadcrumbs ou cria se não houver. */
|