@rededor/site-front-end-lib 0.0.15 → 0.0.17

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.
Files changed (23) hide show
  1. package/esm2022/lib/components/header/components/header-side-menu-item/header-side-menu-item.component.mjs +3 -3
  2. package/esm2022/lib/components/index.mjs +6 -1
  3. package/esm2022/lib/components/search/search.component.mjs +3 -3
  4. package/esm2022/lib/components/side-ctas/components/side-ctas-bottom/side-ctas-bottom.component.mjs +35 -0
  5. package/esm2022/lib/components/side-ctas/components/side-ctas-right-bottom/side-ctas-right-bottom.component.mjs +48 -0
  6. package/esm2022/lib/components/side-ctas/components/side-ctas-right-middle/side-ctas-right-middle.component.mjs +34 -0
  7. package/esm2022/lib/components/side-ctas/components/side-ctas-right-top/side-ctas-right-top.component.mjs +11 -0
  8. package/esm2022/lib/components/side-ctas/models/SideCta.model.mjs +2 -0
  9. package/esm2022/lib/components/side-ctas/side-ctas.component.mjs +23 -0
  10. package/esm2022/lib/models/wordpress/unidade/wp-unidade-site-detalhe.model.mjs +1 -1
  11. package/esm2022/lib/services/ssr-loading/ssr-loading.service.mjs +10 -61
  12. package/fesm2022/rededor-site-front-end-lib.mjs +167 -88
  13. package/fesm2022/rededor-site-front-end-lib.mjs.map +1 -1
  14. package/lib/components/index.d.ts +5 -0
  15. package/lib/components/side-ctas/components/side-ctas-bottom/side-ctas-bottom.component.d.ts +19 -0
  16. package/lib/components/side-ctas/components/side-ctas-right-bottom/side-ctas-right-bottom.component.d.ts +23 -0
  17. package/lib/components/side-ctas/components/side-ctas-right-middle/side-ctas-right-middle.component.d.ts +18 -0
  18. package/lib/components/side-ctas/components/side-ctas-right-top/side-ctas-right-top.component.d.ts +5 -0
  19. package/lib/components/side-ctas/models/SideCta.model.d.ts +5 -0
  20. package/lib/components/side-ctas/side-ctas.component.d.ts +11 -0
  21. package/lib/models/wordpress/unidade/wp-unidade-site-detalhe.model.d.ts +7 -0
  22. package/lib/services/ssr-loading/ssr-loading.service.d.ts +1 -28
  23. package/package.json +1 -1
@@ -18,3 +18,8 @@ export * from './header/components/header-side-menu/header-side-menu.component';
18
18
  export * from './header/components/header-side-menu-item/header-side-menu-item.component';
19
19
  export * from './overlay/overlay.component';
20
20
  export * from './search/search.component';
21
+ export * from './side-ctas/side-ctas.component';
22
+ export * from './side-ctas/components/side-ctas-bottom/side-ctas-bottom.component';
23
+ export * from './side-ctas/components/side-ctas-right-bottom/side-ctas-right-bottom.component';
24
+ export * from './side-ctas/components/side-ctas-right-middle/side-ctas-right-middle.component';
25
+ export * from './side-ctas/components/side-ctas-right-top/side-ctas-right-top.component';
@@ -0,0 +1,19 @@
1
+ import { SideCta } from '../../models/SideCta.model';
2
+ import { CuraService } from '../../../../services';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SideCtasBottomComponent {
5
+ private curaService;
6
+ private _ctas;
7
+ set ctas(value: SideCta[]);
8
+ get ctas(): SideCta[];
9
+ style: {
10
+ '--font-color': string | null;
11
+ '--bg-color': string | null;
12
+ '--bg-cta-color': string | null;
13
+ '--bg-cta-hover-color': string | null;
14
+ '--bg-cta-active-color': string | null;
15
+ };
16
+ constructor(curaService: CuraService);
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<SideCtasBottomComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<SideCtasBottomComponent, "rdsite-side-ctas-bottom", never, { "ctas": { "alias": "ctas"; "required": false; }; }, {}, never, never, true, never>;
19
+ }
@@ -0,0 +1,23 @@
1
+ import { CuraService } from '../../../../services';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SideCtasRightBottomComponent {
4
+ private curaService;
5
+ link: string;
6
+ imgUrl: string;
7
+ icon: string;
8
+ text: string;
9
+ bgColor: string;
10
+ bgHover: string;
11
+ active: boolean;
12
+ style: {
13
+ '--border-top-color': string | null;
14
+ '--bg-color': string | null;
15
+ '--bg-button': string;
16
+ '--bg-button-hover': string;
17
+ '--color-button': string | null;
18
+ '--color-button-hover': string | null;
19
+ };
20
+ constructor(curaService: CuraService);
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<SideCtasRightBottomComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<SideCtasRightBottomComponent, "rdsite-side-ctas-right-bottom", never, { "link": { "alias": "link"; "required": false; }; "imgUrl": { "alias": "imgUrl"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "text": { "alias": "text"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "bgHover": { "alias": "bgHover"; "required": false; }; }, {}, never, never, true, never>;
23
+ }
@@ -0,0 +1,18 @@
1
+ import { SideCta } from '../../models/SideCta.model';
2
+ import { CuraService } from '../../../../services';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SideCtasRightMiddleComponent {
5
+ private curaService;
6
+ private _ctas;
7
+ set ctas(value: SideCta[]);
8
+ get ctas(): SideCta[];
9
+ style: {
10
+ '--icon-bg-color': string | null;
11
+ '--font-color': string | null;
12
+ '--font-hover': string | null;
13
+ '--font-active': string | null;
14
+ };
15
+ constructor(curaService: CuraService);
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<SideCtasRightMiddleComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<SideCtasRightMiddleComponent, "rdsite-side-ctas-right-middle", never, { "ctas": { "alias": "ctas"; "required": false; }; }, {}, never, never, true, never>;
18
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class SideCtasRightTopComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<SideCtasRightTopComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<SideCtasRightTopComponent, "rdsite-side-ctas-right-top", never, {}, {}, never, ["*"], true, never>;
5
+ }
@@ -0,0 +1,5 @@
1
+ export interface SideCta {
2
+ text: string;
3
+ icon: string;
4
+ url: string;
5
+ }
@@ -0,0 +1,11 @@
1
+ import { CuraService } from '../../services';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SideCtasComponent {
4
+ private curaService;
5
+ style: {
6
+ '--color-right': string | null;
7
+ };
8
+ constructor(curaService: CuraService);
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SideCtasComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<SideCtasComponent, "rdsite-side-ctas", never, {}, {}, never, ["rdsite-side-ctas-right-top", "rdsite-side-ctas-right-middle", "rdsite-side-ctas-right-bottom", "rdsite-side-ctas-bottom"], true, never>;
11
+ }
@@ -138,6 +138,8 @@ export interface WpUnidadeSiteDetalhe {
138
138
  unidade_estilo_whatsapp: UnidadeEstiloWhatsapp;
139
139
  unidade_modal_agendamento: UnidadePhoneModal;
140
140
  unidade_modal_generico: UnidadePhoneModal;
141
+ general_ctas?: UnidadeCta[];
142
+ side_ctas?: UnidadeCta[];
141
143
  }
142
144
  export interface UnidadeEstiloWhatsapp {
143
145
  cor_da_borda: string;
@@ -147,6 +149,11 @@ export interface UnidadeEstiloWhatsapp {
147
149
  cor_whatsapp: string;
148
150
  imagem: any;
149
151
  }
152
+ export interface UnidadeCta {
153
+ icon: string;
154
+ text: string;
155
+ url: string;
156
+ }
150
157
  export interface UnidadePhoneModal {
151
158
  titulo: string;
152
159
  texto: string;
@@ -5,35 +5,8 @@ export declare class SsrLoadingService {
5
5
  private platformId;
6
6
  ssrIsLoading: boolean;
7
7
  private _loading;
8
- private loadingLocationsAmount;
9
- private timeout;
10
- private interval;
11
- private locations;
12
8
  constructor(logService: LogService, platformId: object);
13
- /**
14
- * Inicia o processo de looping.
15
- * @param location string utilizada para logs caso ocorra problemas ou timeout
16
- * @param intervalMs tempo em ms no qual o interval realiza a checagem do '_isLoading'
17
- * @param timeoutMs tempo em ms para dar timeout
18
- * @returns
19
- */
20
- startLoading(location?: string, intervalMs?: number, timeoutMs?: number): void;
21
- private addLocations;
22
- /**
23
- * Responsável por encerrar o loading infinito se passar do limite de 'timeoutMs'.
24
- * Este timeout respeita o ultimo 'timeoutMs' passado pelo 'startLoading'.
25
- */
26
- private setupTimeout;
27
- /**
28
- * Responsável pelo loop infinito para forçar o angular a esperar a entrega do html ao cliente.
29
- * Quando o '_loading' for false, ele encerra o looping.
30
- * Este interval respeita o ultimo 'intervalMs' passado pelo 'startLoading'.
31
- */
32
- private setupInterval;
33
- /**
34
- * Diminui a quantidade de loadings em 1 e então tenta encerrar o looping quando a quantidade de loadings <= 0.
35
- * Ou seja, quando a quantidade de chamadas do 'stopLoading' for a mesma do 'startLoading' ou quando der timeout.
36
- */
9
+ startLoading(component?: string, intervalMs?: number, timeoutMs?: number): void;
37
10
  stopLoading(): void;
38
11
  static ɵfac: i0.ɵɵFactoryDeclaration<SsrLoadingService, never>;
39
12
  static ɵprov: i0.ɵɵInjectableDeclaration<SsrLoadingService>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rededor/site-front-end-lib",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0",