ctt-babylon 0.10.31 → 0.10.33
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/core/babylon-gr-c2-img/babylon-gr-c2-img.component.mjs +3 -3
- package/esm2022/lib/components/core/babylon-list-img/babylon-list-img.component.mjs +4 -2
- package/esm2022/lib/components/core/babylon-list-img-v2/babylon-list-img-v2.component.mjs +5 -5
- package/esm2022/lib/components/external/core/c2-img-txt-svg/c2-img-txt-svg.component.mjs +29 -0
- package/esm2022/lib/components/external/core/c2-img-txt-svg/content.json +29 -0
- package/esm2022/lib/components/external/core/c2-img-txt-svg/index.mjs +2 -0
- package/esm2022/lib/components/external/core/c2-txt-cta-des/c2-txt-cta-des.component.mjs +124 -0
- package/esm2022/lib/components/external/core/c2-txt-cta-des/c2-txt-cta-des.content.json +60 -0
- package/esm2022/lib/components/external/core/c2-txt-cta-des/c2-txt-cta-des.interfaces.mjs +2 -0
- package/esm2022/lib/components/external/core/c2-txt-cta-des/index.mjs +2 -0
- package/esm2022/lib/components/external/core/c2-txt-svg-v2/c2-txt-mdh005.component.mjs +3 -3
- package/esm2022/lib/components/external/core/index.mjs +3 -1
- package/esm2022/lib/interfaces/babylon-offer-detail.interface.mjs +2 -0
- package/esm2022/lib/services/mapper/mapper.service.mjs +3 -2
- package/fesm2022/ctt-babylon.mjs +265 -11
- package/fesm2022/ctt-babylon.mjs.map +1 -1
- package/lib/components/core/babylon-list-img/babylon-list-img.component.d.ts +3 -1
- package/lib/components/core/babylon-list-img-v2/babylon-list-img-v2.component.d.ts +4 -3
- package/lib/components/external/core/c2-img-txt-svg/c2-img-txt-svg.component.d.ts +32 -0
- package/lib/components/external/core/c2-img-txt-svg/index.d.ts +1 -0
- package/lib/components/external/core/c2-txt-cta-des/c2-txt-cta-des.component.d.ts +28 -0
- package/lib/components/external/core/c2-txt-cta-des/c2-txt-cta-des.interfaces.d.ts +34 -0
- package/lib/components/external/core/c2-txt-cta-des/index.d.ts +1 -0
- package/lib/components/external/core/c2-txt-svg-v2/c2-txt-mdh005.component.d.ts +1 -1
- package/lib/components/external/core/index.d.ts +2 -0
- package/lib/interfaces/babylon-offer-detail.interface.d.ts +17 -0
- package/package.json +1 -1
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
2
2
|
import { TagType } from '../../../Enum/tags.enums';
|
|
3
3
|
import { BabylonIconInfoI, BabylonMultimediaI, BabylonTextInfoI } from '../../../interfaces';
|
|
4
|
+
import { BabylonEquipmentItem } from '../../../interfaces/babylon-equipments-item.interface';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class BabylonListImgComponent implements AfterViewInit {
|
|
6
7
|
rightSide: boolean;
|
|
7
8
|
texts?: BabylonTextInfoI;
|
|
8
9
|
items?: BabylonIconInfoI[];
|
|
9
10
|
multimedia?: BabylonMultimediaI;
|
|
11
|
+
equipment?: BabylonEquipmentItem[];
|
|
10
12
|
tag: TagType;
|
|
11
13
|
/** Offset para cabeceras sticky (desktop), modifícalo si necesitas */
|
|
12
14
|
scrollOffset: number;
|
|
@@ -29,6 +31,6 @@ export declare class BabylonListImgComponent implements AfterViewInit {
|
|
|
29
31
|
getImagesByTag(tagName: string): import("../../../interfaces").BabylonImageI[];
|
|
30
32
|
getFirstImageByTag(tagName: string): import("../../../interfaces").BabylonImageI | undefined;
|
|
31
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<BabylonListImgComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BabylonListImgComponent, "lib-babylon-list-img", never, { "rightSide": { "alias": "rightSide"; "required": false; }; "texts": { "alias": "texts"; "required": false; }; "items": { "alias": "items"; "required": false; }; "multimedia": { "alias": "multimedia"; "required": false; }; "scrollOffset": { "alias": "scrollOffset"; "required": false; }; "moreText": { "alias": "moreText"; "required": false; }; "lessText": { "alias": "lessText"; "required": false; }; }, {}, never, never, true, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BabylonListImgComponent, "lib-babylon-list-img", never, { "rightSide": { "alias": "rightSide"; "required": false; }; "texts": { "alias": "texts"; "required": false; }; "items": { "alias": "items"; "required": false; }; "multimedia": { "alias": "multimedia"; "required": false; }; "equipment": { "alias": "equipment"; "required": false; }; "scrollOffset": { "alias": "scrollOffset"; "required": false; }; "moreText": { "alias": "moreText"; "required": false; }; "lessText": { "alias": "lessText"; "required": false; }; }, {}, never, never, true, never>;
|
|
33
35
|
static ngAcceptInputType_rightSide: unknown;
|
|
34
36
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { BabylonButtonI, BabylonItemI,
|
|
1
|
+
import { BabylonButtonI, BabylonItemI, BabylonTexts } from '../../../interfaces';
|
|
2
|
+
import { BabylonOfferDetailI } from '../../../interfaces/babylon-offer-detail.interface';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class BabylonListImgV2Component {
|
|
4
5
|
rightSide?: boolean;
|
|
5
6
|
texts?: BabylonTexts;
|
|
6
7
|
items?: BabylonItemI[];
|
|
7
|
-
multimedia?: BabylonMultimediaI;
|
|
8
8
|
buttons?: BabylonButtonI[];
|
|
9
9
|
links?: BabylonButtonI[];
|
|
10
|
+
offer?: BabylonOfferDetailI;
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<BabylonListImgV2Component, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BabylonListImgV2Component, "lib-babylon-list-img-v2", never, { "rightSide": { "alias": "rightSide"; "required": false; }; "texts": { "alias": "texts"; "required": false; }; "items": { "alias": "items"; "required": false; }; "
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BabylonListImgV2Component, "lib-babylon-list-img-v2", never, { "rightSide": { "alias": "rightSide"; "required": false; }; "texts": { "alias": "texts"; "required": false; }; "items": { "alias": "items"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "links": { "alias": "links"; "required": false; }; "offer": { "alias": "offer"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
13
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface C2ImgTxtSvgLine {
|
|
3
|
+
text: string;
|
|
4
|
+
url?: string;
|
|
5
|
+
target?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface C2ImgTxtSvgSection {
|
|
8
|
+
title: string;
|
|
9
|
+
lines: C2ImgTxtSvgLine[];
|
|
10
|
+
}
|
|
11
|
+
export interface C2ImgTxtSvgButton {
|
|
12
|
+
label: string;
|
|
13
|
+
url?: string;
|
|
14
|
+
target?: string;
|
|
15
|
+
ariaLabel?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface C2ImgTxtSvgContent {
|
|
18
|
+
reverse?: boolean;
|
|
19
|
+
leftImage: string;
|
|
20
|
+
infoSections: C2ImgTxtSvgSection[];
|
|
21
|
+
mapImage: string;
|
|
22
|
+
mapUrl: string;
|
|
23
|
+
button: C2ImgTxtSvgButton;
|
|
24
|
+
}
|
|
25
|
+
export declare class C2ImgTxtSvgComponent {
|
|
26
|
+
content: C2ImgTxtSvgContent;
|
|
27
|
+
reverse?: boolean;
|
|
28
|
+
trackByTitle(index: number, section: C2ImgTxtSvgSection): string;
|
|
29
|
+
trackByLine(index: number, line: C2ImgTxtSvgLine): string;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<C2ImgTxtSvgComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<C2ImgTxtSvgComponent, "c2-img-txt-svg", never, { "content": { "alias": "content"; "required": false; }; "reverse": { "alias": "reverse"; "required": false; }; }, {}, never, never, true, never>;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './c2-img-txt-svg.component';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AfterViewInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { C2TxtCtaDesContent, HighlightFeature } from './c2-txt-cta-des.interfaces';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class C2TxtCtaDesComponent implements AfterViewInit, OnDestroy {
|
|
5
|
+
private readonly fallbackContent;
|
|
6
|
+
content: C2TxtCtaDesContent;
|
|
7
|
+
private faqSection?;
|
|
8
|
+
private faqAnswerRefs?;
|
|
9
|
+
faqHeights: number[];
|
|
10
|
+
expandedFaqIndex: number | null;
|
|
11
|
+
private faqChangesSub?;
|
|
12
|
+
private resizeTimeoutId?;
|
|
13
|
+
private readonly platformId;
|
|
14
|
+
private mutationObserver?;
|
|
15
|
+
private readonly handleResize;
|
|
16
|
+
ngAfterViewInit(): void;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
toggleFaq(index: number): void;
|
|
19
|
+
trackByIndex(index: number): number;
|
|
20
|
+
trackByLabel(index: number, item: HighlightFeature): string;
|
|
21
|
+
getAnswerHeight(index: number): number;
|
|
22
|
+
private measureAnswerHeights;
|
|
23
|
+
private moveTopPanel;
|
|
24
|
+
private initializeResizeListener;
|
|
25
|
+
private initializeMutationObserver;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<C2TxtCtaDesComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<C2TxtCtaDesComponent, "c2-txt-cta-des", never, { "content": { "alias": "content"; "required": false; }; }, {}, never, never, true, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface CtaButtonConfig {
|
|
2
|
+
label: string;
|
|
3
|
+
url?: string;
|
|
4
|
+
target?: '_self' | '_blank';
|
|
5
|
+
ariaLabel?: string;
|
|
6
|
+
variant?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface HighlightFeature {
|
|
9
|
+
label: string;
|
|
10
|
+
icon?: string;
|
|
11
|
+
iconAlt?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface HighlightBlock {
|
|
14
|
+
title: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
features?: HighlightFeature[];
|
|
17
|
+
}
|
|
18
|
+
export interface PanelBlock {
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
button?: CtaButtonConfig;
|
|
22
|
+
}
|
|
23
|
+
export interface C2TxtCtaDesFaqItem {
|
|
24
|
+
question: string;
|
|
25
|
+
answer: string;
|
|
26
|
+
button?: CtaButtonConfig;
|
|
27
|
+
}
|
|
28
|
+
export interface C2TxtCtaDesContent {
|
|
29
|
+
topPanel: PanelBlock;
|
|
30
|
+
bottomPanel: PanelBlock;
|
|
31
|
+
highlights: HighlightBlock[];
|
|
32
|
+
faqs: C2TxtCtaDesFaqItem[];
|
|
33
|
+
hideTopPanel?: boolean;
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './c2-txt-cta-des.component';
|
|
@@ -6,5 +6,5 @@ export declare class C2TxtMdh005Component {
|
|
|
6
6
|
trackByIndex(index: number): number;
|
|
7
7
|
get keyIcons(): number[];
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<C2TxtMdh005Component, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<C2TxtMdh005Component, "c2-txt-
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<C2TxtMdh005Component, "c2-txt-svg-v2", never, { "content": { "alias": "content"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
10
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BabylonButtonI } from "./babylon-button.interface";
|
|
2
|
+
import { BabylonImageI } from "./babylon-image.interface";
|
|
3
|
+
export interface BabylonOfferDetailI {
|
|
4
|
+
pretitle?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
ndTitle?: string;
|
|
8
|
+
labelFrom?: string;
|
|
9
|
+
labelDiscount?: string;
|
|
10
|
+
currency?: string;
|
|
11
|
+
price?: number;
|
|
12
|
+
discount?: number;
|
|
13
|
+
image?: BabylonImageI;
|
|
14
|
+
button?: BabylonButtonI;
|
|
15
|
+
link?: BabylonButtonI;
|
|
16
|
+
conditions?: string;
|
|
17
|
+
}
|