@rededor/site-front-end-lib 1.0.14 → 1.0.15
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/index.d.ts +5 -0
- package/lib/components/algolia/algolia.component.d.ts +46 -0
- package/lib/components/banner/content-banner/content-banner.component.d.ts +14 -0
- package/lib/components/breadcrumbs/breadcrumbs.component.d.ts +31 -0
- package/lib/components/cards/card-unidade-planos-convenios/card-unidade-planos-convenios.component.d.ts +41 -0
- package/lib/components/cards/expandable-card/expandable-card.component.d.ts +27 -0
- package/lib/components/cta-wrapper/cta-wrapper.component.d.ts +28 -0
- package/lib/components/error/error-service/error.service.d.ts +17 -0
- package/lib/components/error/error.component.d.ts +44 -0
- package/lib/components/filter-letter-and-terms/filter-letter-and-terms.component.d.ts +11 -0
- package/lib/components/filters/filter-planos-convenios/filter-planos-convenios.component.d.ts +41 -0
- package/lib/components/footer/components/footer-disclaimer/footer-disclaimer.component.d.ts +15 -0
- package/lib/components/footer/components/footer-menu/footer-menu.component.d.ts +11 -0
- package/lib/components/footer/components/footer-menu-item/footer-menu-item.component.d.ts +15 -0
- package/lib/components/footer/components/footer-social-medias/footer-social-medias.component.d.ts +17 -0
- package/lib/components/footer/footer.component.d.ts +17 -0
- package/lib/components/footer/helpers/footerTheme.func.d.ts +3 -0
- package/lib/components/footer/models/FooterTheme.model.d.ts +7 -0
- package/lib/components/header/components/header-action-menu/header-action-menu.component.d.ts +13 -0
- package/lib/components/header/components/header-aux-menu/header-aux-menu.component.d.ts +5 -0
- package/lib/components/header/components/header-aux-menu-container/header-aux-menu-container.component.d.ts +6 -0
- package/lib/components/header/components/header-aux-menu-item/header-aux-menu-item.component.d.ts +18 -0
- package/lib/components/header/components/header-aux-menu-item-dropdown/header-aux-menu-item-dropdown.component.d.ts +10 -0
- package/lib/components/header/components/header-logo/header-logo.component.d.ts +12 -0
- package/lib/components/header/components/header-main-menu/header-main-menu.component.d.ts +5 -0
- package/lib/components/header/components/header-main-menu-item/header-main-menu-item.component.d.ts +26 -0
- package/lib/components/header/components/header-main-menu-item-dropdown/header-main-menu-item-dropdown.component.d.ts +36 -0
- package/lib/components/header/components/header-side-menu/header-side-menu.component.d.ts +9 -0
- package/lib/components/header/components/header-side-menu-item/header-side-menu-item.component.d.ts +21 -0
- package/lib/components/header/header.component.d.ts +27 -0
- package/lib/components/header/helpers/headerTheme.func.d.ts +3 -0
- package/lib/components/header/models/HeaderTheme.model.d.ts +8 -0
- package/lib/components/header/services/header.service.d.ts +11 -0
- package/lib/components/image/image.component.d.ts +22 -0
- package/lib/components/index.d.ts +40 -0
- package/lib/components/load-screen/load-screen.component.d.ts +13 -0
- package/lib/components/overlay/overlay.component.d.ts +8 -0
- package/lib/components/page-header/page-header.component.d.ts +17 -0
- package/lib/components/page-template-sidebar/page-template-sidebar.component.d.ts +12 -0
- package/lib/components/search/search.component.d.ts +48 -0
- package/lib/components/section-navigation/section-navigation.component.d.ts +36 -0
- package/lib/components/side-ctas/components/side-ctas-bottom/side-ctas-bottom.component.d.ts +22 -0
- package/lib/components/side-ctas/components/side-ctas-right-bottom/side-ctas-right-bottom.component.d.ts +14 -0
- package/lib/components/side-ctas/components/side-ctas-right-middle/side-ctas-right-middle.component.d.ts +21 -0
- package/lib/components/side-ctas/components/side-ctas-right-top/side-ctas-right-top.component.d.ts +5 -0
- package/lib/components/side-ctas/models/SideCta.model.d.ts +5 -0
- package/lib/components/side-ctas/side-ctas.component.d.ts +11 -0
- package/lib/components/whatsapp/whatsapp.component.d.ts +26 -0
- package/lib/directives/index.d.ts +3 -0
- package/lib/directives/rdsite-click-outside/rdsite-click-outside.directive.d.ts +10 -0
- package/lib/directives/rdsite-link/rdsite-link.directive.d.ts +38 -0
- package/lib/directives/rdsite-phone-modal/rdsite-phone-modal.directive.d.ts +17 -0
- package/lib/enums/EnumDoencaTaxonomy.enum.d.ts +8 -0
- package/lib/enums/EnumError.enum.d.ts +4 -0
- package/lib/enums/EnumThemes.enum.d.ts +6 -0
- package/lib/enums/Estados.enum.d.ts +29 -0
- package/lib/enums/IconCuraDefaultType.enum.d.ts +119 -0
- package/lib/enums/ImageMimeType.enum.d.ts +5 -0
- package/lib/enums/RdsiteModalComponentStyle.enum.d.ts +11 -0
- package/lib/enums/RdsiteModalDrawerComponentStyle.enum.d.ts +5 -0
- package/lib/enums/UnidadeCoverageType.enum.d.ts +5 -0
- package/lib/enums/index.d.ts +9 -0
- package/lib/helpers/check-safari-agent.func.d.ts +2 -0
- package/lib/helpers/formatPhone.func.d.ts +1 -0
- package/lib/helpers/getSiteUrl.func.d.ts +2 -0
- package/lib/helpers/index.d.ts +7 -0
- package/lib/helpers/mediaQueries.d.ts +6 -0
- package/lib/helpers/removeDuplicateObjectsFromArray.func.d.ts +2 -0
- package/lib/helpers/removeDuplicateValuesFromArray.func.d.ts +2 -0
- package/lib/helpers/removeHtmlTags.func.d.ts +2 -0
- package/lib/helpers/toQueryParams.func.d.ts +5 -0
- package/lib/models/algolia-search-api.model.d.ts +167 -0
- package/lib/models/algolia.model.d.ts +12 -0
- package/lib/models/breadcrumbs/breadcrumbs-items.model.d.ts +10 -0
- package/lib/models/breadcrumbs/breadcrumbs-json-item.model.d.ts +8 -0
- package/lib/models/centro-estudos-backend.model.d.ts +8 -0
- package/lib/models/content-banner.model.d.ts +15 -0
- package/lib/models/cta-wrapper.model.d.ts +9 -0
- package/lib/models/doenca-backend.model.d.ts +25 -0
- package/lib/models/doenca-taxonomy.model.d.ts +11 -0
- package/lib/models/especialidade-backend.model.d.ts +24 -0
- package/lib/models/exame-backend.model.d.ts +25 -0
- package/lib/models/filters/filter-planos-convenios.model.d.ts +12 -0
- package/lib/models/images/rdsite-image.model.d.ts +5 -0
- package/lib/models/medico-cv.model.d.ts +10 -0
- package/lib/models/menu-de-unidade.model.d.ts +14 -0
- package/lib/models/menu-item.model.d.ts +67 -0
- package/lib/models/privacy-tools/privacy-tools.model.d.ts +8 -0
- package/lib/models/rdsl-cobertura.model.d.ts +71 -0
- package/lib/models/rdsl-convenio.model.d.ts +17 -0
- package/lib/models/rdsl-especialidade.model.d.ts +33 -0
- package/lib/models/rdsl-planos.model.d.ts +13 -0
- package/lib/models/rdsl-post-category.model.d.ts +8 -0
- package/lib/models/rdsl-unidade.model.d.ts +50 -0
- package/lib/models/section-navigation.model.d.ts +9 -0
- package/lib/models/seo/seo-data.model.d.ts +9 -0
- package/lib/models/seo/seo-unidade.model.d.ts +6 -0
- package/lib/models/social-meta-properties.model.d.ts +9 -0
- package/lib/models/wordpress/WpResponse.model.d.ts +31 -0
- package/lib/models/wordpress/category/wpCategory.model.d.ts +14 -0
- package/lib/models/wordpress/general/content.model.d.ts +4 -0
- package/lib/models/wordpress/general/excerpt.model.d.ts +4 -0
- package/lib/models/wordpress/general/featuredMedia.model.d.ts +26 -0
- package/lib/models/wordpress/general/guid.model.d.ts +3 -0
- package/lib/models/wordpress/general/index.d.ts +10 -0
- package/lib/models/wordpress/general/links.model.d.ts +47 -0
- package/lib/models/wordpress/general/meta.model.d.ts +3 -0
- package/lib/models/wordpress/general/title.model.d.ts +3 -0
- package/lib/models/wordpress/general/yoastData.model.d.ts +4 -0
- package/lib/models/wordpress/general/yoastHeadJson.model.d.ts +56 -0
- package/lib/models/wordpress/general/yoastMeta.model.d.ts +5 -0
- package/lib/models/wordpress/page/page.model.d.ts +10 -0
- package/lib/models/wordpress/post/post.model.d.ts +33 -0
- package/lib/models/wordpress/unidade/wp-unidade-onco.model.d.ts +55 -0
- package/lib/models/wordpress/unidade/wp-unidade-site-detalhe.model.d.ts +166 -0
- package/lib/models/wordpress/unidade/wp-unidade-site.model.d.ts +45 -0
- package/lib/pipes/index.d.ts +1 -0
- package/lib/pipes/phone/phone.pipe.d.ts +7 -0
- package/lib/services/algolia/algolia.service.d.ts +16 -0
- package/lib/services/algolia-search-api/algolia-search-api.service.d.ts +18 -0
- package/lib/services/cura/cura.service.d.ts +31 -0
- package/lib/services/http-client/http-client.service.d.ts +19 -0
- package/lib/services/index.d.ts +16 -0
- package/lib/services/log/log.service.d.ts +16 -0
- package/lib/services/modal/modal.service.d.ts +31 -0
- package/lib/services/modal-drawer/modal-drawer.service.d.ts +37 -0
- package/lib/services/ngu-carousel/ngu-carousel.service.d.ts +13 -0
- package/lib/services/phone/phone.service.d.ts +11 -0
- package/lib/services/privacy-tools/privacy-tools.service.d.ts +20 -0
- package/lib/services/seo/seo.service.d.ts +141 -0
- package/lib/services/server-response/server-response.service.d.ts +39 -0
- package/lib/services/site-back-end/site-back-end.service.d.ts +67 -0
- package/lib/services/ssr-loading/ssr-loading.service.d.ts +13 -0
- package/lib/services/transfer-state/transfer-state.service.d.ts +13 -0
- package/lib/tokens/CuraApi.d.ts +2 -0
- package/lib/tokens/LibConfig.d.ts +36 -0
- package/lib/tokens/express.tokens.d.ts +4 -0
- package/package.json +1 -1
- package/public-api.d.ts +9 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SearchClient } from 'algoliasearch';
|
|
2
|
+
import { SearchOptions, SearchResponse, MultipleQueriesQuery, MultipleQueriesResponse, SearchForFacetValuesResponse } from '@algolia/client-search';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { LibConfig } from '../../tokens/LibConfig';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class AlgoliaService {
|
|
7
|
+
private libConfig;
|
|
8
|
+
private client;
|
|
9
|
+
constructor(libConfig: LibConfig);
|
|
10
|
+
search<T = any>(query: string, index: string, params?: SearchOptions): Observable<SearchResponse<T>>;
|
|
11
|
+
searchMultipleIndexes<T = any>(config: MultipleQueriesQuery[]): Observable<MultipleQueriesResponse<T>>;
|
|
12
|
+
searchForFacetValues(index: string, facetName: string, facetQuery: string, params?: SearchOptions): Observable<SearchForFacetValuesResponse>;
|
|
13
|
+
initClient(): SearchClient;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlgoliaService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AlgoliaService>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RdslAlgoliaMultipleIndex } from '../../models/algolia-search-api.model';
|
|
2
|
+
import { AlgoliaMultipleResults, AlgoliaResult } from '../../models/algolia-search-api.model';
|
|
3
|
+
import { AlgoliaSearchParams } from '../../models/algolia-search-api.model';
|
|
4
|
+
import { Observable, Subscriber } from 'rxjs';
|
|
5
|
+
import { LibConfig } from '../../tokens/LibConfig';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class AlgoliaSearchApiService {
|
|
8
|
+
private libConfig;
|
|
9
|
+
constructor(libConfig: LibConfig);
|
|
10
|
+
searchAPI: any;
|
|
11
|
+
search(query: string, indexName: string, params?: AlgoliaSearchParams): Observable<AlgoliaResult<any>>;
|
|
12
|
+
searchMultipleIndexes(indexes: RdslAlgoliaMultipleIndex[]): Observable<AlgoliaMultipleResults>;
|
|
13
|
+
initAPI(): void;
|
|
14
|
+
subscriberNext(subscriber: Subscriber<any>, value: any): void;
|
|
15
|
+
subscriberError(subscriber: Subscriber<any>, message: any): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlgoliaSearchApiService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AlgoliaSearchApiService>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { LogService } from '../log/log.service';
|
|
3
|
+
import { LibConfig } from '../../tokens/LibConfig';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CuraService implements OnDestroy {
|
|
6
|
+
private log;
|
|
7
|
+
private platformId;
|
|
8
|
+
private document;
|
|
9
|
+
private libConfig;
|
|
10
|
+
private ssrCuraAPI;
|
|
11
|
+
private curaAPISubscription;
|
|
12
|
+
private curaApi;
|
|
13
|
+
constructor(log: LogService, platformId: object, document: Document, libConfig: LibConfig, ssrCuraAPI: any);
|
|
14
|
+
curaInit(): void;
|
|
15
|
+
private curaAPISubscriptionInit;
|
|
16
|
+
private injectCuraAPI;
|
|
17
|
+
loadTheme(theme: string): void;
|
|
18
|
+
getColor(colorWithDepth: string, opacity?: number): string | null;
|
|
19
|
+
getSpacing(): string | null;
|
|
20
|
+
getFontFamily(type: string): string | null;
|
|
21
|
+
getFontWeights(): {
|
|
22
|
+
[alias: string]: string;
|
|
23
|
+
};
|
|
24
|
+
getFontSize(): string;
|
|
25
|
+
getFontColor(): string;
|
|
26
|
+
getCuraIconName(icon: string): string;
|
|
27
|
+
private getCuraSystemIconName;
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CuraService, [null, null, null, null, { optional: true; }]>;
|
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CuraService>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { DeviceDetectorService } from 'ngx-device-detector';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { LibConfig } from '../../tokens/LibConfig';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class HttpClientService {
|
|
7
|
+
private platformId;
|
|
8
|
+
private libConfig;
|
|
9
|
+
private http;
|
|
10
|
+
private deviceService;
|
|
11
|
+
constructor(platformId: object, libConfig: LibConfig, http: HttpClient, deviceService: DeviceDetectorService);
|
|
12
|
+
get<T = any>(url: string): Observable<T>;
|
|
13
|
+
post<T = any>(url: string, data?: any): Observable<T>;
|
|
14
|
+
private getHeaders;
|
|
15
|
+
private getOriginChannel;
|
|
16
|
+
private getOriginDevice;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HttpClientService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HttpClientService>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './algolia/algolia.service';
|
|
2
|
+
export * from './cura/cura.service';
|
|
3
|
+
export * from './http-client/http-client.service';
|
|
4
|
+
export * from './log/log.service';
|
|
5
|
+
export * from './modal/modal.service';
|
|
6
|
+
export * from './modal-drawer/modal-drawer.service';
|
|
7
|
+
export * from './ngu-carousel/ngu-carousel.service';
|
|
8
|
+
export * from './phone/phone.service';
|
|
9
|
+
export * from './privacy-tools/privacy-tools.service';
|
|
10
|
+
export * from './site-back-end/site-back-end.service';
|
|
11
|
+
export * from './seo/seo.service';
|
|
12
|
+
export * from './server-response/server-response.service';
|
|
13
|
+
export * from './ssr-loading/ssr-loading.service';
|
|
14
|
+
export * from './transfer-state/transfer-state.service';
|
|
15
|
+
export * from '../components/header/services/header.service';
|
|
16
|
+
export * from './algolia-search-api/algolia-search-api.service';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Location } from '@angular/common';
|
|
2
|
+
import { LibConfig } from '../../tokens/LibConfig';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class LogService {
|
|
5
|
+
private libConfig;
|
|
6
|
+
private platformId;
|
|
7
|
+
private location;
|
|
8
|
+
constructor(libConfig: LibConfig, platformId: any, location: Location);
|
|
9
|
+
logMsg(msg: any, label?: string): void;
|
|
10
|
+
logLoad(component?: string): void;
|
|
11
|
+
log404(component?: string): void;
|
|
12
|
+
log500(component?: string): void;
|
|
13
|
+
getPageURL(): string;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LogService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LogService>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { RdsiteModalComponentStyle } from '../../enums/RdsiteModalComponentStyle.enum';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare abstract class AbstractModalComponent {
|
|
5
|
+
abstract id: string;
|
|
6
|
+
abstract modalTitle: string | null;
|
|
7
|
+
abstract modalHeader: TemplateRef<any> | null;
|
|
8
|
+
abstract modalContent: TemplateRef<any> | null;
|
|
9
|
+
abstract modalContentContext: Record<string, any> | null;
|
|
10
|
+
abstract modalActions: TemplateRef<any> | null;
|
|
11
|
+
abstract componentStyle: any;
|
|
12
|
+
abstract modal: HTMLDialogElement;
|
|
13
|
+
abstract open(): void;
|
|
14
|
+
abstract close(): void;
|
|
15
|
+
abstract reset(): void;
|
|
16
|
+
}
|
|
17
|
+
export declare class ModalService {
|
|
18
|
+
reference: AbstractModalComponent | null;
|
|
19
|
+
defaultPhoneModal: TemplateRef<any>;
|
|
20
|
+
open(): void;
|
|
21
|
+
setReference(element: AbstractModalComponent): void;
|
|
22
|
+
setHeader(header: TemplateRef<any>): void;
|
|
23
|
+
setTitle(title: string): void;
|
|
24
|
+
setContent(content: TemplateRef<any>, context?: Record<string, any>): void;
|
|
25
|
+
setActions(actions: TemplateRef<any>): void;
|
|
26
|
+
setStyle(style: RdsiteModalComponentStyle): void;
|
|
27
|
+
setDefaultPhoneModal(modal: TemplateRef<any>): void;
|
|
28
|
+
close(): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalService, never>;
|
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ModalService>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { RdsiteModalDrawerComponentStyle } from '../../enums';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare abstract class AbstractModalDrawerComponent {
|
|
5
|
+
abstract sheet: HTMLElement;
|
|
6
|
+
abstract sheetContents: HTMLElement;
|
|
7
|
+
abstract draggableArea: HTMLElement;
|
|
8
|
+
abstract sheetHeight: number;
|
|
9
|
+
abstract dragPosition: number;
|
|
10
|
+
abstract maxHeight: number;
|
|
11
|
+
abstract closeHeight: number;
|
|
12
|
+
abstract rdsiteModalComponentStyle: any;
|
|
13
|
+
abstract id: string;
|
|
14
|
+
abstract modalContent: ElementRef;
|
|
15
|
+
abstract componentStyle: any;
|
|
16
|
+
abstract modal: HTMLDialogElement;
|
|
17
|
+
abstract setSheetHeight(value: number): void;
|
|
18
|
+
abstract setIsSheetShown(isShown: boolean): void;
|
|
19
|
+
abstract openSheet(): void;
|
|
20
|
+
abstract closeSheet(): void;
|
|
21
|
+
abstract touchPosition(event: any): void;
|
|
22
|
+
abstract onDragStart(event: any): void;
|
|
23
|
+
abstract onDragMove(event: any): void;
|
|
24
|
+
abstract onDragEnd(): void;
|
|
25
|
+
abstract reset(): void;
|
|
26
|
+
}
|
|
27
|
+
export declare class ModalDrawerService {
|
|
28
|
+
reference: AbstractModalDrawerComponent | null;
|
|
29
|
+
open(): void;
|
|
30
|
+
setReference(element: AbstractModalDrawerComponent): void;
|
|
31
|
+
setContent(content: ElementRef): void;
|
|
32
|
+
setStyle(style: RdsiteModalDrawerComponentStyle): void;
|
|
33
|
+
setHeight(value: number): void;
|
|
34
|
+
close(): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalDrawerService, never>;
|
|
36
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ModalDrawerService>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NguCarousel, NguCarouselConfig } from '@ngu/carousel';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NguCarouselService {
|
|
4
|
+
private _defaultCarouselConfig;
|
|
5
|
+
get defaultCarouselConfig(): any;
|
|
6
|
+
customCarouselConfig(config: Partial<NguCarouselConfig>): any;
|
|
7
|
+
moveTo(carousel: NguCarousel<any, any>, index: number): void;
|
|
8
|
+
scrollLeft(carousel: NguCarousel<any, any>, loop?: boolean): void;
|
|
9
|
+
scrollRight(carousel: NguCarousel<any, any>, loop?: boolean): void;
|
|
10
|
+
needShowControls(config: NguCarouselConfig, width: number, itemsLength?: number): boolean;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NguCarouselService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NguCarouselService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class PhoneService {
|
|
3
|
+
private document;
|
|
4
|
+
private telRegex;
|
|
5
|
+
phoneModalIsAllowed: boolean;
|
|
6
|
+
constructor(document: Document);
|
|
7
|
+
/** Verifica se o 'href' é de telefone e se a janela está em tamanho desktop */
|
|
8
|
+
isPhoneModal(href: string): boolean;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PhoneService>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PrivacyToolsConfigOptions } from '../../models/privacy-tools/privacy-tools.model';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PrivacyToolsService {
|
|
4
|
+
document: Document;
|
|
5
|
+
platformId: object;
|
|
6
|
+
cookieBannerScriptId: string;
|
|
7
|
+
cookieBannerStyleId: string;
|
|
8
|
+
cookieBannerScriptElement: HTMLScriptElement | null;
|
|
9
|
+
configOptions: PrivacyToolsConfigOptions;
|
|
10
|
+
cookieConsent: any;
|
|
11
|
+
constructor(document: Document, platformId: object);
|
|
12
|
+
config(options: PrivacyToolsConfigOptions): void;
|
|
13
|
+
setupCookieBanner(unidadeBasePath: string): void;
|
|
14
|
+
openCookieBanner(): void;
|
|
15
|
+
private addCookieBanner;
|
|
16
|
+
addCookieBannerStyle(src: string): void;
|
|
17
|
+
addCookieBannerScript(src: string): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PrivacyToolsService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PrivacyToolsService>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { Meta, Title } from '@angular/platform-browser';
|
|
2
|
+
import { Location } from '@angular/common';
|
|
3
|
+
import { SocialMetaProperties } from '../../models/social-meta-properties.model';
|
|
4
|
+
import { BreadcrumbsItems } from '../../models/breadcrumbs/breadcrumbs-items.model';
|
|
5
|
+
import { SeoData } from '../../models/seo/seo-data.model';
|
|
6
|
+
import { SeoUnidade } from '../../models/seo/seo-unidade.model';
|
|
7
|
+
import { WpPost } from '../../models/wordpress/post/post.model';
|
|
8
|
+
import { LibConfig } from '../../tokens/LibConfig';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class SeoService {
|
|
11
|
+
private title;
|
|
12
|
+
private meta;
|
|
13
|
+
private location;
|
|
14
|
+
private libConfig;
|
|
15
|
+
private document;
|
|
16
|
+
separator: string;
|
|
17
|
+
defaultTitle: string;
|
|
18
|
+
activeDescription: string;
|
|
19
|
+
sameAs: string[];
|
|
20
|
+
twitterUser: string;
|
|
21
|
+
private canonicalTag;
|
|
22
|
+
private jsonTag;
|
|
23
|
+
private jsonTagId;
|
|
24
|
+
private breadcrumbsJsonTag;
|
|
25
|
+
private breadcrumbsJsonTagId;
|
|
26
|
+
unidade: any;
|
|
27
|
+
unidadeName: string;
|
|
28
|
+
unidadePath: string;
|
|
29
|
+
unidadeSlug: string;
|
|
30
|
+
constructor(title: Title, meta: Meta, location: Location, libConfig: LibConfig, document: Document);
|
|
31
|
+
setFullSeo(data: SeoData): void;
|
|
32
|
+
/**
|
|
33
|
+
* Define tag description da página
|
|
34
|
+
* @param content conteúdo da descrição <string>
|
|
35
|
+
*/
|
|
36
|
+
setDescription(content: string): SeoService;
|
|
37
|
+
/**
|
|
38
|
+
* Define meta tags para a página
|
|
39
|
+
* @param tag nome da tag meta
|
|
40
|
+
* @param content conteúdo da tag meta
|
|
41
|
+
* @param type tipo de tag meta
|
|
42
|
+
*/
|
|
43
|
+
setMetaTag(tag: string, content: string, type?: string): this;
|
|
44
|
+
/**
|
|
45
|
+
* Remove meta tags da página
|
|
46
|
+
* @param tag nome da tag meta
|
|
47
|
+
* @param content conteúdo da tag meta
|
|
48
|
+
* @param attr atributo da tag meta
|
|
49
|
+
* @param type tipo de tag meta
|
|
50
|
+
*/
|
|
51
|
+
removeTag(tag: string, content: string, attr: string, type?: string): this;
|
|
52
|
+
/**
|
|
53
|
+
* Define meta tags para Facebook
|
|
54
|
+
* @param title título para o facebook
|
|
55
|
+
* @param description descrição para o facebook
|
|
56
|
+
* @param url url para definição do facebook
|
|
57
|
+
* @param img imagem para definição no facebook
|
|
58
|
+
*/
|
|
59
|
+
setMetaFacebook(title: string, description: string, url: string, img?: string | null): void;
|
|
60
|
+
/**
|
|
61
|
+
* Define meta tags para Twitter
|
|
62
|
+
* @param title título para o twitter
|
|
63
|
+
* @param description descrição para o twitter
|
|
64
|
+
* @param url url para o twitter
|
|
65
|
+
* @param img imagem para definição no twitter
|
|
66
|
+
*/
|
|
67
|
+
setMetaTwitter(title: string, description: string, url: string, img?: string | null): void;
|
|
68
|
+
/**
|
|
69
|
+
* Define tags de redes sociais (Twitter e Open Graph)
|
|
70
|
+
* @param properties
|
|
71
|
+
*/
|
|
72
|
+
setSocialTags(properties?: SocialMetaProperties): this;
|
|
73
|
+
/**
|
|
74
|
+
* Define título da página
|
|
75
|
+
* @param title título da página <string>
|
|
76
|
+
* @param sub Se é subsite acrescenta unidade <boolean>
|
|
77
|
+
*/
|
|
78
|
+
setTitle(title: string, sub?: boolean): this;
|
|
79
|
+
/** Obtem título atual da página */
|
|
80
|
+
getTitle(): string;
|
|
81
|
+
set404Title(component?: string): this;
|
|
82
|
+
set500Title(component?: string): this;
|
|
83
|
+
/** Cria tag script para JSON de breadcrumbs */
|
|
84
|
+
private createBreadcrumbsJSONTag;
|
|
85
|
+
/** Retorna tag para script json de breadcrumbs ou cria se não houver. */
|
|
86
|
+
private getBreadcrumbsJSONTag;
|
|
87
|
+
/** Define o JSON de breadcrumbs da página */
|
|
88
|
+
setBreadcrumbsJson(items: BreadcrumbsItems[]): this;
|
|
89
|
+
/** Converte itens do breadcrumb em itens do JSON */
|
|
90
|
+
private getJsonBreadcrumbItems;
|
|
91
|
+
/**
|
|
92
|
+
* Monta a url do item de breadcrumb proveniente do array de urls
|
|
93
|
+
* ou do caminho da própria página, conforme caso do último item.
|
|
94
|
+
*/
|
|
95
|
+
private getBreadcrumbItemUrl;
|
|
96
|
+
/** Cria tag script para o JSON de SEO */
|
|
97
|
+
private createJSONTag;
|
|
98
|
+
/** Retorna tag para script json de breadcrumbs ou cria se não houver. */
|
|
99
|
+
private getJSONTag;
|
|
100
|
+
/** Define JSON para SEO somente quando no servidor */
|
|
101
|
+
setPageJson(): this;
|
|
102
|
+
/** Obtem JSON da Organização */
|
|
103
|
+
private getOrgJson;
|
|
104
|
+
/** Obtem JSON do Website (portal, unidades, etc) */
|
|
105
|
+
private getWebsiteJson;
|
|
106
|
+
/** Obtem Json da página */
|
|
107
|
+
private getWebpageJson;
|
|
108
|
+
private getUnidadePath;
|
|
109
|
+
/**
|
|
110
|
+
* Obtém a URL canônica da página.
|
|
111
|
+
* @returns A URL canônica da página.
|
|
112
|
+
*/
|
|
113
|
+
getCanonicalHref(): string;
|
|
114
|
+
/** Cria tag para links canonicals no head */
|
|
115
|
+
private createCanonicalTag;
|
|
116
|
+
/** Retorna tag para link canonical existe ou cria se não houver. */
|
|
117
|
+
private getCanonicalTag;
|
|
118
|
+
/**
|
|
119
|
+
* Define link canonical da página
|
|
120
|
+
* @param url url canonical
|
|
121
|
+
*/
|
|
122
|
+
setCanonicalHref(url?: string): this;
|
|
123
|
+
/**
|
|
124
|
+
* Verifica se a URL fornecida é um link canonical personalizado
|
|
125
|
+
* @param url URL fornecida
|
|
126
|
+
*/
|
|
127
|
+
isCustomCanonical(url: string): boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Obtém uma url válida na aplicação proveniente de uma URL gerada
|
|
130
|
+
* pelo plugin Yoast para canonical automático.
|
|
131
|
+
* Ex.: https://wp.rededorsaoluiz.com.br/brasil/especialidades/cardiologia/
|
|
132
|
+
* @param urlFromWpApi URL canonica gerada pelo Yoast Plugin.
|
|
133
|
+
*/
|
|
134
|
+
toLocalCanonical(urlFromWpApi: string): string;
|
|
135
|
+
getPostContent(post: WpPost): string;
|
|
136
|
+
addArticleScript(post: WpPost, scriptName: string): void;
|
|
137
|
+
removeArticleScript(scriptName: string): void;
|
|
138
|
+
setUnidade({ unidade, unidadeName, unidadePath, unidadeSlug }: SeoUnidade): void;
|
|
139
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SeoService, never>;
|
|
140
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SeoService>;
|
|
141
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface IServerResponseService {
|
|
3
|
+
getHeader(key: string): string;
|
|
4
|
+
setHeader(key: string, value: string): this;
|
|
5
|
+
setHeaders(dictionary: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
}): this;
|
|
8
|
+
appendHeader(key: string, value: string, delimiter?: string): this;
|
|
9
|
+
setStatus(code: number, message?: string): this;
|
|
10
|
+
setNotFound(message?: string): this;
|
|
11
|
+
setError(message?: string): this;
|
|
12
|
+
setRedirect(redirectParams?: {
|
|
13
|
+
statusCode: number;
|
|
14
|
+
message: string;
|
|
15
|
+
url?: string;
|
|
16
|
+
}): this;
|
|
17
|
+
}
|
|
18
|
+
export declare class ServerResponseService implements IServerResponseService {
|
|
19
|
+
private response;
|
|
20
|
+
constructor(response: any);
|
|
21
|
+
getHeader(key: string): string;
|
|
22
|
+
setHeader(key: string, value: string): this;
|
|
23
|
+
appendHeader(key: string, value: string, delimiter?: string): this;
|
|
24
|
+
setHeaders(dictionary: {
|
|
25
|
+
[key: string]: string;
|
|
26
|
+
}): this;
|
|
27
|
+
setStatus(code: number, message?: string): this;
|
|
28
|
+
setNotFound(message?: string): this;
|
|
29
|
+
setUnauthorized(message?: string): this;
|
|
30
|
+
setError(message?: string): this;
|
|
31
|
+
setRedirect({ statusCode, message, url }?: {
|
|
32
|
+
statusCode?: number;
|
|
33
|
+
message?: string;
|
|
34
|
+
url?: string;
|
|
35
|
+
}): this;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ServerResponseService, [{ optional: true; }]>;
|
|
37
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ServerResponseService>;
|
|
38
|
+
}
|
|
39
|
+
export type HttpCacheDirective = 'public' | 'private' | 'no-store' | 'no-cache' | 'must-revalidate' | 'no-transform' | 'proxy-revalidate';
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { LibConfig } from '../../tokens/LibConfig';
|
|
3
|
+
import { HttpClientService } from '../http-client/http-client.service';
|
|
4
|
+
import { LogService } from '../log/log.service';
|
|
5
|
+
import { RDSLConvenio, RDSLConvenioParams } from '../../models/rdsl-convenio.model';
|
|
6
|
+
import { RDSLPlano, RDSLPlanoParams } from '../../models/rdsl-planos.model';
|
|
7
|
+
import { RDSLCobertura, RDSLCoberturaParams } from '../../models/rdsl-cobertura.model';
|
|
8
|
+
import { RDSLUnidade, RDSLUnidadesParams } from '../../models/rdsl-unidade.model';
|
|
9
|
+
import { RDSLEspecialidade, RDSLEspecialidadesParams } from '../../models/rdsl-especialidade.model';
|
|
10
|
+
import { DoencaBackend } from '../../models/doenca-backend.model';
|
|
11
|
+
import { TaxonomiasDoencasList } from '../../models/doenca-taxonomy.model';
|
|
12
|
+
import { ExameApiDados, ExameBackend } from '../../models/exame-backend.model';
|
|
13
|
+
import { EspecialidadeBackend, EspecialidadeGrupoBackend } from '../../models/especialidade-backend.model';
|
|
14
|
+
import { CentroEstudosBackendMedico } from '../../models/centro-estudos-backend.model';
|
|
15
|
+
import { WpUnidadeSite } from '../../models/wordpress/unidade/wp-unidade-site.model';
|
|
16
|
+
import { WpUnidadeOnco } from '../../models/wordpress/unidade/wp-unidade-onco.model';
|
|
17
|
+
import { UnifiedMenu } from '../../models/menu-item.model';
|
|
18
|
+
import { MedicoCv } from '../../models/medico-cv.model';
|
|
19
|
+
import { MenuDeUnidade } from '../../models/menu-de-unidade.model';
|
|
20
|
+
import * as i0 from "@angular/core";
|
|
21
|
+
export declare class SiteBackendService {
|
|
22
|
+
private httpClientService;
|
|
23
|
+
private log;
|
|
24
|
+
private libConfig;
|
|
25
|
+
private platformId;
|
|
26
|
+
siteApiUrl: string;
|
|
27
|
+
constructor(httpClientService: HttpClientService, log: LogService, libConfig: LibConfig, platformId: object);
|
|
28
|
+
private getApiUrl;
|
|
29
|
+
getUnidades(params?: RDSLUnidadesParams): Observable<RDSLUnidade[]>;
|
|
30
|
+
getUnidadesWP(): Observable<WpUnidadeSite[]>;
|
|
31
|
+
getUnidadesMenusWP(unidadeSlug?: string): Observable<UnifiedMenu>;
|
|
32
|
+
getUnidadesOncoWP(): Observable<WpUnidadeOnco[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Retorna o 'menu de unidades' completo, baseado nos dados de /unidades/wp e /unidades/wp-onco do backend.
|
|
35
|
+
* index 0 => rededor
|
|
36
|
+
* index 1 => oncologia
|
|
37
|
+
* index 2 => star
|
|
38
|
+
**/
|
|
39
|
+
getMenuDeUnidades(): Observable<MenuDeUnidade[]>;
|
|
40
|
+
getConvenios(params?: RDSLConvenioParams): Observable<RDSLConvenio[]>;
|
|
41
|
+
getPlanos(params?: RDSLPlanoParams): Observable<RDSLPlano[]>;
|
|
42
|
+
getCoberturas(planoIdQd: number, params?: RDSLCoberturaParams): Observable<RDSLCobertura[]>;
|
|
43
|
+
getDoencas(): Observable<DoencaBackend[]>;
|
|
44
|
+
getDoencasTaxonomies(): Observable<TaxonomiasDoencasList>;
|
|
45
|
+
getDoencasUniqueLetters(): Observable<string[]>;
|
|
46
|
+
getVacinas(): Observable<any[]>;
|
|
47
|
+
getVacinasTaxonomies(): Observable<any>;
|
|
48
|
+
getCirurgias(): Observable<any[]>;
|
|
49
|
+
getCirurgiasGrupos(): Observable<any[]>;
|
|
50
|
+
getCirurgiasTaxonomies(): Observable<any[]>;
|
|
51
|
+
getExamesList(unidadeSlug: string, unidadeIdDq: string, unidadeIdMotion: string, unidadeIdLocal: string): Observable<any>;
|
|
52
|
+
getExameDetails(unidadePossuiExames: boolean, unidadeSlug: string, unidadeIdDq: string, unidadeIdMotion: string, unidadeIdLocal: string, grupoSlug: string, exameSlug: string): Observable<any>;
|
|
53
|
+
getGruposExames(unidadeSlug: string): Observable<ExameBackend[]>;
|
|
54
|
+
getExamesByGrupo(unidadeSlug: string, slugGrupo: string): Observable<ExameBackend[]>;
|
|
55
|
+
getExamesByUnidade(unidadeId: string): Observable<string[]>;
|
|
56
|
+
getExamesApiDados(): Observable<ExameApiDados[]>;
|
|
57
|
+
getGruposEspecialidades(unidadeSlug?: string): Observable<EspecialidadeGrupoBackend[]>;
|
|
58
|
+
getEspecialidadesByGrupo(tituloGrupo: string, unidadeSlug?: string): Observable<EspecialidadeBackend[]>;
|
|
59
|
+
getEspecialidadesDq(params?: RDSLEspecialidadesParams): Observable<RDSLEspecialidade[]>;
|
|
60
|
+
getGruposEspecialidadesDq(params?: RDSLEspecialidadesParams): Observable<RDSLEspecialidade[]>;
|
|
61
|
+
getRecaptchaResult(token: string): Observable<any>;
|
|
62
|
+
getMedicoCv(medicoId: number): Observable<MedicoCv>;
|
|
63
|
+
checkMedico(conselhoCodigo: string): Observable<any>;
|
|
64
|
+
saveMedico(novoMedico: CentroEstudosBackendMedico): Observable<CentroEstudosBackendMedico>;
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiteBackendService, never>;
|
|
66
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SiteBackendService>;
|
|
67
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LogService } from '../log/log.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SsrLoadingService {
|
|
4
|
+
private logService;
|
|
5
|
+
private platformId;
|
|
6
|
+
ssrIsLoading: boolean;
|
|
7
|
+
private _loading;
|
|
8
|
+
constructor(logService: LogService, platformId: object);
|
|
9
|
+
startLoading(component?: string, intervalMs?: number, timeoutMs?: number): void;
|
|
10
|
+
stopLoading(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SsrLoadingService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SsrLoadingService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TransferState } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TransferStateService {
|
|
4
|
+
private readonly transferState;
|
|
5
|
+
private keys;
|
|
6
|
+
cryptoKey: string;
|
|
7
|
+
constructor(transferState: TransferState);
|
|
8
|
+
setKey(name: any, response: any | any[]): void;
|
|
9
|
+
getKey(name: string, defaultValue?: any | any[]): any | any[];
|
|
10
|
+
remove(name: string): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TransferStateService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TransferStateService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ElementRef, InjectionToken } from '@angular/core';
|
|
2
|
+
export interface LibConfig {
|
|
3
|
+
production: boolean;
|
|
4
|
+
environmentName: string;
|
|
5
|
+
siteProject: string;
|
|
6
|
+
server: boolean;
|
|
7
|
+
siteName: string;
|
|
8
|
+
siteUrl: string;
|
|
9
|
+
siteSufix?: string;
|
|
10
|
+
client_id: string;
|
|
11
|
+
xOriginApplication: string;
|
|
12
|
+
searchApiEnv: string;
|
|
13
|
+
fallbackImgSrc: string;
|
|
14
|
+
iconsetDefaultList: string[];
|
|
15
|
+
siteApi: {
|
|
16
|
+
auth: {
|
|
17
|
+
user: string;
|
|
18
|
+
password: string;
|
|
19
|
+
};
|
|
20
|
+
base: string;
|
|
21
|
+
baseInternal: string;
|
|
22
|
+
recaptcha: string;
|
|
23
|
+
centroEstudos: string;
|
|
24
|
+
};
|
|
25
|
+
algoliaConfig: {
|
|
26
|
+
id: string;
|
|
27
|
+
key: string;
|
|
28
|
+
};
|
|
29
|
+
wpUrl: string;
|
|
30
|
+
keywords: string;
|
|
31
|
+
logoPath?: string;
|
|
32
|
+
customAnchorAdjustment?: (document: Document) => number;
|
|
33
|
+
customPhoneModalCondition?: (element: ElementRef<any>) => boolean;
|
|
34
|
+
customInternalLinkNavigation?: (noBaseHref: string) => boolean;
|
|
35
|
+
}
|
|
36
|
+
export declare const LIB_CONFIG: InjectionToken<LibConfig>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { Request, Response } from 'express';
|
|
3
|
+
export declare const REQUEST: InjectionToken<Request<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>>;
|
|
4
|
+
export declare const RESPONSE: InjectionToken<Response<any, Record<string, any>>>;
|
package/package.json
CHANGED
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './lib/components';
|
|
2
|
+
export * from './lib/directives';
|
|
3
|
+
export * from './lib/pipes';
|
|
4
|
+
export * from './lib/services';
|
|
5
|
+
export * from './lib/helpers';
|
|
6
|
+
export * from './lib/enums';
|
|
7
|
+
export * from './lib/tokens/CuraApi';
|
|
8
|
+
export * from './lib/tokens/express.tokens';
|
|
9
|
+
export * from './lib/tokens/LibConfig';
|