ctt-babylon 0.8.14 → 0.8.16
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-advantages-v2/babylon-advantages-v2.component.mjs +16 -0
- package/esm2022/lib/components/core/babylon-advantages-v2/index.mjs +2 -0
- package/esm2022/lib/components/core/babylon-faq/babylon-faq.component.mjs +1 -1
- package/esm2022/lib/components/core/babylon-faq/babylon-faq.interface.mjs +1 -1
- package/esm2022/lib/components/core/babylon-faq-v2/babylon-faq-v2.component.mjs +30 -0
- package/esm2022/lib/components/core/babylon-faq-v2/index.mjs +2 -0
- package/esm2022/lib/components/core/babylon-footer-contact/babylon-footer-contact.component.mjs +3 -3
- package/esm2022/lib/components/core/babylon-modal-multiple-motors/babylon-modal-multiple-motors.component.mjs +3 -3
- package/esm2022/lib/components/core/babylon-slider-img-static-v2/babylon-slider-img-static-v2.component.mjs +19 -0
- package/esm2022/lib/components/core/babylon-slider-img-static-v2/index.mjs +2 -0
- package/esm2022/lib/components/core/babylon-social-bar/babylon-social-bar.component.mjs +20 -0
- package/esm2022/lib/components/core/babylon-social-bar/index.mjs +2 -0
- package/esm2022/lib/components/core/babylon-top-slider-video-v2/babylon-top-slider-video-v2.component.mjs +14 -0
- package/esm2022/lib/components/core/babylon-top-slider-video-v2/index.mjs +2 -0
- package/esm2022/lib/components/core/index.mjs +7 -1
- package/esm2022/lib/directives/sliders/slick-init.directive.mjs +211 -0
- package/esm2022/lib/directives/sliders/slider-fix-arrows.directive.mjs +105 -0
- package/esm2022/lib/directives/utils/sticky-avoid-footer.directive.mjs +91 -0
- package/esm2022/lib/interfaces/babylon-advantages-item.interface.mjs +2 -0
- package/esm2022/lib/interfaces/babylon-advantages.interface.mjs +2 -0
- package/esm2022/lib/interfaces/babylon-global.interface.mjs +2 -0
- package/esm2022/lib/interfaces/babylon-image.interface.mjs +1 -1
- package/esm2022/lib/interfaces/babylon-item.interface.mjs +2 -0
- package/esm2022/lib/interfaces/babylon-multimedia.interface.mjs +2 -0
- package/esm2022/lib/services/mapper/mapper.service.mjs +55 -5
- package/fesm2022/ctt-babylon.mjs +544 -9
- package/fesm2022/ctt-babylon.mjs.map +1 -1
- package/lib/components/core/babylon-advantages-v2/babylon-advantages-v2.component.d.ts +9 -0
- package/lib/components/core/babylon-advantages-v2/index.d.ts +1 -0
- package/lib/components/core/babylon-faq/babylon-faq.component.d.ts +2 -5
- package/lib/components/core/babylon-faq/babylon-faq.interface.d.ts +2 -2
- package/lib/components/core/babylon-faq-v2/babylon-faq-v2.component.d.ts +16 -0
- package/lib/components/core/babylon-faq-v2/index.d.ts +1 -0
- package/lib/components/core/babylon-slider-img-static-v2/babylon-slider-img-static-v2.component.d.ts +10 -0
- package/lib/components/core/babylon-slider-img-static-v2/index.d.ts +1 -0
- package/lib/components/core/babylon-social-bar/babylon-social-bar.component.d.ts +9 -0
- package/lib/components/core/babylon-social-bar/index.d.ts +1 -0
- package/lib/components/core/babylon-top-slider-video-v2/babylon-top-slider-video-v2.component.d.ts +7 -0
- package/lib/components/core/babylon-top-slider-video-v2/index.d.ts +1 -0
- package/lib/components/core/index.d.ts +6 -0
- package/lib/directives/sliders/slick-init.directive.d.ts +14 -0
- package/lib/directives/sliders/slider-fix-arrows.directive.d.ts +21 -0
- package/lib/directives/utils/sticky-avoid-footer.directive.d.ts +24 -0
- package/lib/interfaces/babylon-advantages-item.interface.d.ts +5 -0
- package/lib/interfaces/babylon-advantages.interface.d.ts +6 -0
- package/lib/interfaces/babylon-global.interface.d.ts +22 -0
- package/lib/interfaces/babylon-image.interface.d.ts +4 -0
- package/lib/interfaces/babylon-item.interface.d.ts +4 -0
- package/lib/interfaces/babylon-multimedia.interface.d.ts +5 -0
- package/lib/services/mapper/mapper.service.d.ts +3 -1
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BabylonTextInfoI } from '../../../interfaces';
|
|
2
|
+
import { BabylonAdvantagesI } from '../../../interfaces/babylon-advantages.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class BabylonAdvantagesV2Component {
|
|
5
|
+
texts?: BabylonTextInfoI;
|
|
6
|
+
advantages?: BabylonAdvantagesI;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BabylonAdvantagesV2Component, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BabylonAdvantagesV2Component, "lib-babylon-advantages-v2", never, { "texts": { "alias": "texts"; "required": false; }; "advantages": { "alias": "advantages"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './babylon-advantages-v2.component';
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { BabylonTagsI, BabylonTextsColorsI } from '../../../interfaces';
|
|
2
2
|
import { BabylonImageI } from '../../../interfaces/babylon-image.interface';
|
|
3
|
+
import { BabylonItemI } from '../../../interfaces/babylon-item.interface';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class BabylonFaqComponent {
|
|
5
6
|
pretitle?: string;
|
|
6
7
|
title?: string;
|
|
7
8
|
image?: BabylonImageI;
|
|
8
|
-
items?:
|
|
9
|
+
items?: BabylonItemI[];
|
|
9
10
|
tags?: BabylonTagsI;
|
|
10
11
|
textColors?: BabylonTextsColorsI;
|
|
11
12
|
selectedIndex: import("@angular/core").WritableSignal<number>;
|
|
@@ -13,7 +14,3 @@ export declare class BabylonFaqComponent {
|
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<BabylonFaqComponent, never>;
|
|
14
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<BabylonFaqComponent, "lib-babylon-faq", never, { "pretitle": { "alias": "pretitle"; "required": false; }; "title": { "alias": "title"; "required": false; }; "image": { "alias": "image"; "required": false; }; "items": { "alias": "items"; "required": false; }; "tags": { "alias": "tags"; "required": false; }; "textColors": { "alias": "textColors"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
16
|
}
|
|
16
|
-
export interface BabylonFaqItem {
|
|
17
|
-
label?: string;
|
|
18
|
-
description?: string;
|
|
19
|
-
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BabylonImageI } from '../../../interfaces/babylon-image.interface';
|
|
2
|
-
import {
|
|
2
|
+
import { BabylonItemI } from '../../../interfaces/babylon-item.interface';
|
|
3
3
|
export interface BabylonFaqI {
|
|
4
4
|
pretitle?: string;
|
|
5
5
|
title?: string;
|
|
6
6
|
image?: BabylonImageI;
|
|
7
|
-
items?:
|
|
7
|
+
items?: BabylonItemI[];
|
|
8
8
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BabylonTextInfoI } from '../../../interfaces';
|
|
2
|
+
import { BabylonMultimediaI } from '../../../interfaces/babylon-multimedia.interface';
|
|
3
|
+
import { BabylonItemI } from '../../../interfaces/babylon-item.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class BabylonFaqV2Component {
|
|
6
|
+
texts?: BabylonTextInfoI;
|
|
7
|
+
items?: BabylonItemI[];
|
|
8
|
+
multimedia?: BabylonMultimediaI;
|
|
9
|
+
rightSide?: boolean;
|
|
10
|
+
activeIndex: number | null;
|
|
11
|
+
selectedIndex: import("@angular/core").WritableSignal<number>;
|
|
12
|
+
toggle(i: number): void;
|
|
13
|
+
selectItem(index: number): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BabylonFaqV2Component, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BabylonFaqV2Component, "lib-babylon-faq-v2", never, { "texts": { "alias": "texts"; "required": false; }; "items": { "alias": "items"; "required": false; }; "multimedia": { "alias": "multimedia"; "required": false; }; "rightSide": { "alias": "rightSide"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './babylon-faq-v2.component';
|
package/lib/components/core/babylon-slider-img-static-v2/babylon-slider-img-static-v2.component.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BabylonButtonI, BabylonTextInfoI } from '../../../interfaces';
|
|
2
|
+
import { BabylonMultimediaI } from '../../../interfaces/babylon-multimedia.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class BabylonSliderImgStaticV2Component {
|
|
5
|
+
texts?: BabylonTextInfoI;
|
|
6
|
+
multimedia?: BabylonMultimediaI;
|
|
7
|
+
buttons?: BabylonButtonI[];
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BabylonSliderImgStaticV2Component, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BabylonSliderImgStaticV2Component, "lib-babylon-slider-img-static-v2", never, { "texts": { "alias": "texts"; "required": false; }; "multimedia": { "alias": "multimedia"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './babylon-slider-img-static-v2.component';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BabylonButtonI, BabylonTextInfoI } from '../../../interfaces';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class BabylonSocialBarComponent {
|
|
4
|
+
texts?: BabylonTextInfoI;
|
|
5
|
+
links?: BabylonButtonI[];
|
|
6
|
+
rightSide?: boolean;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BabylonSocialBarComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BabylonSocialBarComponent, "lib-babylon-social-bar", never, { "texts": { "alias": "texts"; "required": false; }; "links": { "alias": "links"; "required": false; }; "rightSide": { "alias": "rightSide"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './babylon-social-bar.component';
|
package/lib/components/core/babylon-top-slider-video-v2/babylon-top-slider-video-v2.component.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BabylonTextInfoI } from '../../../interfaces';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class BabylonTopSliderVideoV2Component {
|
|
4
|
+
texts?: BabylonTextInfoI;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BabylonTopSliderVideoV2Component, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BabylonTopSliderVideoV2Component, "lib-babylon-top-slider-video-v2", never, { "texts": { "alias": "texts"; "required": false; }; }, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './babylon-top-slider-video-v2.component';
|
|
@@ -86,3 +86,9 @@ export * from './babylon-top-slider-thumbs';
|
|
|
86
86
|
export * from './babylon-top-slider-v2';
|
|
87
87
|
export * from './babylon-top-slider-video';
|
|
88
88
|
export * from './babylon-webmap';
|
|
89
|
+
export * from './babylon-top-slider-video-v2';
|
|
90
|
+
export * from './babylon-faq-v2';
|
|
91
|
+
export * from './babylon-social-bar';
|
|
92
|
+
export * from './babylon-top-slider-video-v2';
|
|
93
|
+
export * from './babylon-advantages-v2';
|
|
94
|
+
export * from './babylon-slider-img-static-v2';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SlickInitDirective implements AfterViewInit, OnDestroy {
|
|
4
|
+
private host;
|
|
5
|
+
private platformId;
|
|
6
|
+
private resizeHandler?;
|
|
7
|
+
private sliderEl?;
|
|
8
|
+
constructor(host: ElementRef<HTMLElement>, platformId: object);
|
|
9
|
+
ngAfterViewInit(): Promise<void>;
|
|
10
|
+
ngOnDestroy(): void;
|
|
11
|
+
private waitForSlick;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SlickInitDirective, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SlickInitDirective, ".js-active-slider,[appSlickInit]", never, {}, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, NgZone, OnDestroy, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SliderFixArrowsDirective implements AfterViewInit, OnDestroy {
|
|
4
|
+
private el;
|
|
5
|
+
private r2;
|
|
6
|
+
private zone;
|
|
7
|
+
private rafPending;
|
|
8
|
+
private cleanups;
|
|
9
|
+
constructor(el: ElementRef<HTMLElement>, r2: Renderer2, zone: NgZone);
|
|
10
|
+
ngAfterViewInit(): void;
|
|
11
|
+
ngOnDestroy(): void;
|
|
12
|
+
private scheduleCalc;
|
|
13
|
+
private calcPosition;
|
|
14
|
+
/** Lógica mobile/desktop como en tu código original */
|
|
15
|
+
private pickZone;
|
|
16
|
+
/** closest sin jQuery, con fallback para navegadores raros */
|
|
17
|
+
private closest;
|
|
18
|
+
private matches;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SliderFixArrowsDirective, never>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SliderFixArrowsDirective, "[sliderFixArrows]", never, {}, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, NgZone, OnDestroy, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class StickyAvoidFooterDirective implements AfterViewInit, OnDestroy {
|
|
4
|
+
private el;
|
|
5
|
+
private zone;
|
|
6
|
+
private r2;
|
|
7
|
+
/** Selector del footer (por defecto como en tu HTML) */
|
|
8
|
+
footerSelector: string;
|
|
9
|
+
/** Margen de seguridad inferior del viewport al evaluar visibilidad del footer */
|
|
10
|
+
viewportPadding: number;
|
|
11
|
+
/** Bottom cuando el footer NO es visible */
|
|
12
|
+
defaultBottom: string;
|
|
13
|
+
/** Ajuste fino cuando el footer SÍ es visible */
|
|
14
|
+
overlapAdjustPx: number;
|
|
15
|
+
private cleanupFns;
|
|
16
|
+
private rafPending;
|
|
17
|
+
constructor(el: ElementRef<HTMLElement>, zone: NgZone, r2: Renderer2);
|
|
18
|
+
ngAfterViewInit(): void;
|
|
19
|
+
ngOnDestroy(): void;
|
|
20
|
+
private scheduleAdjust;
|
|
21
|
+
private adjust;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StickyAvoidFooterDirective, never>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StickyAvoidFooterDirective, "[stickyAvoidFooter]", never, { "footerSelector": { "alias": "footerSelector"; "required": false; }; "viewportPadding": { "alias": "viewportPadding"; "required": false; }; "defaultBottom": { "alias": "defaultBottom"; "required": false; }; "overlapAdjustPx": { "alias": "overlapAdjustPx"; "required": false; }; }, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BabylonAdvantagesI } from '../components/core';
|
|
2
|
+
import { BabylonImageI } from './babylon-image.interface';
|
|
3
|
+
import { BabylonItemI } from './babylon-item.interface';
|
|
4
|
+
import { BabylonTextInfoI } from './babylon-text-info.interface';
|
|
5
|
+
export interface BabylonGlobal {
|
|
6
|
+
texts?: BabylonTextInfoI;
|
|
7
|
+
rightSide?: boolean;
|
|
8
|
+
items?: BabylonItemI[];
|
|
9
|
+
multimedia?: {
|
|
10
|
+
imagenes?: BabylonImageI[];
|
|
11
|
+
staticImagenes?: BabylonImageI[];
|
|
12
|
+
};
|
|
13
|
+
advantages?: BabylonAdvantagesI[];
|
|
14
|
+
tags: {
|
|
15
|
+
title: String;
|
|
16
|
+
};
|
|
17
|
+
textColors: {
|
|
18
|
+
title: String;
|
|
19
|
+
};
|
|
20
|
+
seeMore: String;
|
|
21
|
+
seeLess: String;
|
|
22
|
+
}
|
|
@@ -20,7 +20,9 @@ export declare class MapperService {
|
|
|
20
20
|
mapBodyExtra(body: any[] | undefined): BodyComponent<COMPONENTS_EXTRA>[] | undefined;
|
|
21
21
|
mapSubmenu(props: any | undefined): BabylonSubmenuI;
|
|
22
22
|
mapComponents<T>(body: any[], addons?: ComponentsAddons): BodyComponent<T>[];
|
|
23
|
-
mapGlobals(
|
|
23
|
+
mapGlobals(component: any): any;
|
|
24
|
+
mapMultimedia(imagesArray: any | undefined): any | undefined;
|
|
25
|
+
mapImages(props: any | undefined): any | undefined;
|
|
24
26
|
map404(props: any | undefined): Babylon404I;
|
|
25
27
|
mapTopSlider(props: any | undefined): BabylonTopSliderI | undefined;
|
|
26
28
|
mapTopSliderVideo(props: any | undefined): BabylonTopSliderVideoI | undefined;
|