ctt-babylon 0.26.4 → 0.26.6
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-ai-badge/babylon-ai-badge.component.mjs +32 -0
- package/esm2022/lib/components/core/babylon-list-img/babylon-list-img.component.mjs +11 -3
- package/esm2022/lib/components/core/babylon-social-bar/babylon-social-bar.component.mjs +3 -3
- package/esm2022/lib/components/external/core/c2-txt-cta/c2-txt-cta.component.mjs +3 -3
- package/esm2022/lib/components/external/core/complex-module-slider-r-v2/complex-module-slider-r-v2.component.mjs +40 -7
- package/esm2022/lib/components/external/core/lis-c3-img-txt-cta/lis-c3-img-txt-cta.component.mjs +7 -3
- package/esm2022/lib/components/external/core/sli-c2-img-txt-cta-v4/sli-c2-img-txt-cta-v4.component.mjs +7 -3
- package/esm2022/lib/components/external/core/sli-c2-img-txt-r/sli-c2-img-txt-r.component.mjs +13 -8
- package/esm2022/lib/components/external/core/sli-c3-img-txt/sli-c3-img-txt.component.mjs +48 -23
- package/esm2022/lib/components/external/core/top-c2-img-txt/top-c2-img-txt.component.mjs +19 -7
- package/esm2022/lib/interfaces/babylon-image.interface.mjs +1 -1
- package/esm2022/lib/interfaces/babylon-item.interface.mjs +1 -1
- package/esm2022/lib/utils/ai-badge.utils.mjs +37 -0
- package/fesm2022/ctt-babylon.mjs +2 -2
- package/fesm2022/ctt-babylon.mjs.map +1 -1
- package/lib/components/core/babylon-ai-badge/babylon-ai-badge.component.d.ts +12 -0
- package/lib/components/core/babylon-list-img/babylon-list-img.component.d.ts +2 -0
- package/lib/components/external/core/complex-module-slider-r-v2/complex-module-slider-r-v2.component.d.ts +8 -0
- package/lib/components/external/core/lis-c3-img-txt-cta/lis-c3-img-txt-cta.component.d.ts +2 -0
- package/lib/components/external/core/sli-c2-img-txt-cta-v4/sli-c2-img-txt-cta-v4.component.d.ts +2 -0
- package/lib/components/external/core/sli-c2-img-txt-r/sli-c2-img-txt-r.component.d.ts +2 -0
- package/lib/components/external/core/sli-c3-img-txt/sli-c3-img-txt.component.d.ts +2 -0
- package/lib/components/external/core/top-c2-img-txt/top-c2-img-txt.component.d.ts +2 -0
- package/lib/interfaces/babylon-image.interface.d.ts +1 -0
- package/lib/interfaces/babylon-item.interface.d.ts +1 -0
- package/lib/utils/ai-badge.utils.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class BabylonAiBadgeComponent {
|
|
3
|
+
text: string;
|
|
4
|
+
position: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
5
|
+
additionalClasses: string;
|
|
6
|
+
top?: string;
|
|
7
|
+
bottom?: string;
|
|
8
|
+
left?: string;
|
|
9
|
+
right?: string;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BabylonAiBadgeComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BabylonAiBadgeComponent, "lib-babylon-ai-badge", never, { "text": { "alias": "text"; "required": false; }; "position": { "alias": "position"; "required": false; }; "additionalClasses": { "alias": "additionalClasses"; "required": false; }; "top": { "alias": "top"; "required": false; }; "bottom": { "alias": "bottom"; "required": false; }; "left": { "alias": "left"; "required": false; }; "right": { "alias": "right"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -3,6 +3,7 @@ import { TagType } from '../../../Enum/tags.enums';
|
|
|
3
3
|
import { BabylonButtonI, BabylonIconInfoI, BabylonMultimediaI, BabylonTextInfoI } from '../../../interfaces';
|
|
4
4
|
import { BabylonEquipmentItem } from '../../../interfaces/babylon-equipments-item.interface';
|
|
5
5
|
import { BabylonRoomDetailI } from '../../../interfaces/babylon-room-detail.interface';
|
|
6
|
+
import { getAiBadgeText } from '../../../utils/ai-badge.utils';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class BabylonListImgComponent implements AfterViewInit {
|
|
8
9
|
rightSide: boolean;
|
|
@@ -22,6 +23,7 @@ export declare class BabylonListImgComponent implements AfterViewInit {
|
|
|
22
23
|
moreText?: string;
|
|
23
24
|
lessText?: string;
|
|
24
25
|
buttons?: BabylonButtonI[];
|
|
26
|
+
getAiBadgeText: typeof getAiBadgeText;
|
|
25
27
|
/** Controla el estado del desplegable */
|
|
26
28
|
open: boolean;
|
|
27
29
|
/** Referencias a DOM del propio template */
|
|
@@ -2,6 +2,7 @@ import { AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, OnDestroy } from
|
|
|
2
2
|
import { ComplexModuleSliderConfig, ComplexModuleSliderContent } from './complex-module-slider-r-v2.interfaces';
|
|
3
3
|
import { BabylonButtonI, BabylonMultimediaI, BabylonTextInfoI, BabylonTextsColorsI } from '../../../../interfaces';
|
|
4
4
|
import { HeadingTagUtils } from '../../../../utils/heading-tag.utils';
|
|
5
|
+
import { getAiBadgeText } from '../../../../utils/ai-badge.utils';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class ComplexModuleSliderRV2Component implements AfterViewInit, OnDestroy {
|
|
7
8
|
private readonly ngZone;
|
|
@@ -12,7 +13,9 @@ export declare class ComplexModuleSliderRV2Component implements AfterViewInit, O
|
|
|
12
13
|
private swiperInstance?;
|
|
13
14
|
headingTagUtils: typeof HeadingTagUtils;
|
|
14
15
|
currentSlide: number;
|
|
16
|
+
activeIndex: number;
|
|
15
17
|
totalSlides: number;
|
|
18
|
+
getAiBadgeText: typeof getAiBadgeText;
|
|
16
19
|
mediaSlider?: ElementRef<HTMLElement>;
|
|
17
20
|
sliderPrev?: ElementRef<HTMLButtonElement>;
|
|
18
21
|
sliderNext?: ElementRef<HTMLButtonElement>;
|
|
@@ -31,6 +34,11 @@ export declare class ComplexModuleSliderRV2Component implements AfterViewInit, O
|
|
|
31
34
|
isMultipleSlides(): boolean;
|
|
32
35
|
get sliderSettingsResolved(): ComplexModuleSliderConfig;
|
|
33
36
|
get data(): ComplexModuleSliderContent;
|
|
37
|
+
getActiveSlide(): any;
|
|
38
|
+
get currentTitle(): string | undefined;
|
|
39
|
+
get currentSubtitle(): string | undefined;
|
|
40
|
+
get currentDescription(): string | undefined;
|
|
41
|
+
get currentButton(): BabylonButtonI | undefined;
|
|
34
42
|
ngAfterViewInit(): void;
|
|
35
43
|
ngAfterViewChecked(): void;
|
|
36
44
|
ngOnDestroy(): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BabylonButtonI, BabylonImageI, BabylonTextInfoI } from '../../../../interfaces';
|
|
2
2
|
import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { BabylonGlobalItem } from '../../../../interfaces/babylon-global-item.interface';
|
|
4
|
+
import { getAiBadgeText } from '../../../../utils/ai-badge.utils';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class LisC3ImgTxtCtaComponent implements OnChanges, OnInit, OnDestroy {
|
|
6
7
|
texts?: BabylonTextInfoI;
|
|
@@ -10,6 +11,7 @@ export declare class LisC3ImgTxtCtaComponent implements OnChanges, OnInit, OnDes
|
|
|
10
11
|
showCleanFilters: boolean;
|
|
11
12
|
showFilters: boolean;
|
|
12
13
|
tagName: string;
|
|
14
|
+
getAiBadgeText: typeof getAiBadgeText;
|
|
13
15
|
selectedHotelType: string;
|
|
14
16
|
selectedDestination: string;
|
|
15
17
|
selectedBrand: string;
|
package/lib/components/external/core/sli-c2-img-txt-cta-v4/sli-c2-img-txt-cta-v4.component.d.ts
CHANGED
|
@@ -2,9 +2,11 @@ import { AfterViewInit, ElementRef, NgZone, OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { BabylonTextInfoI, BabylonTextsColorsI } from '../../../../interfaces';
|
|
3
3
|
import { BabylonHotelGlobalItem } from '../../../../interfaces/babylon-hotel.interface';
|
|
4
4
|
import { HeadingTagUtils } from '../../../../utils/heading-tag.utils';
|
|
5
|
+
import { getAiBadgeText } from '../../../../utils/ai-badge.utils';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class SliC2ImgTxtCtaV4Component implements AfterViewInit, OnDestroy {
|
|
7
8
|
private readonly ngZone;
|
|
9
|
+
getAiBadgeText: typeof getAiBadgeText;
|
|
8
10
|
get isSingleSlide(): boolean;
|
|
9
11
|
get maxSlides(): number;
|
|
10
12
|
get showArrows(): boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, ElementRef, NgZone, OnDestroy } from '@angular/core';
|
|
2
2
|
import { BabylonImageI, BabylonItemI, BabylonTextInfoI, BabylonTextsColorsI } from '../../../../interfaces';
|
|
3
3
|
import { HeadingTagUtils } from '../../../../utils/heading-tag.utils';
|
|
4
|
+
import { getAiBadgeText } from '../../../../utils/ai-badge.utils';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class SliC2ImgTxtRComponent implements AfterViewInit, OnDestroy {
|
|
6
7
|
private readonly ngZone;
|
|
@@ -15,6 +16,7 @@ export declare class SliC2ImgTxtRComponent implements AfterViewInit, OnDestroy {
|
|
|
15
16
|
private _items?;
|
|
16
17
|
private _normalizedItems;
|
|
17
18
|
headingTagUtils: typeof HeadingTagUtils;
|
|
19
|
+
getAiBadgeText: typeof getAiBadgeText;
|
|
18
20
|
textColors?: BabylonTextsColorsI;
|
|
19
21
|
get items(): BabylonItemI[] | BabylonImageI[] | undefined;
|
|
20
22
|
set items(value: BabylonItemI[] | BabylonImageI[] | undefined);
|
|
@@ -2,6 +2,7 @@ import { AfterViewInit, ElementRef, NgZone, OnChanges, OnDestroy, SimpleChanges
|
|
|
2
2
|
import { BabylonItemI, BabylonTextInfoI } from '../../../../interfaces';
|
|
3
3
|
import { BabylonGlobalExperience } from '../../../../interfaces/babylon-global-experience.interface';
|
|
4
4
|
import { SliC3ImgTxtSlideItem } from './sli-c3-img-txt.interfaces';
|
|
5
|
+
import { getAiBadgeText } from '../../../../utils/ai-badge.utils';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class SliC3ImgTxtComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
7
8
|
private readonly ngZone;
|
|
@@ -9,6 +10,7 @@ export declare class SliC3ImgTxtComponent implements AfterViewInit, OnChanges, O
|
|
|
9
10
|
private sliderInitialized;
|
|
10
11
|
private swiperInstance?;
|
|
11
12
|
private readonly tagName;
|
|
13
|
+
getAiBadgeText: typeof getAiBadgeText;
|
|
12
14
|
texts?: BabylonTextInfoI;
|
|
13
15
|
items?: BabylonItemI[];
|
|
14
16
|
experiences?: BabylonGlobalExperience[];
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { BabylonButtonI, BabylonImageI, BabylonMultimediaI, BabylonRoomDetailI, BabylonTagsI, BabylonTextInfoI } from '../../../../interfaces';
|
|
2
2
|
import { TopC2ImgTxtContent } from './top-c2-img-txt.interfaces';
|
|
3
|
+
import { getAiBadgeText } from '../../../../utils/ai-badge.utils';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class TopC2ImgTxtComponent {
|
|
5
6
|
identifier?: string;
|
|
6
7
|
private _multimedia?;
|
|
8
|
+
getAiBadgeText: typeof getAiBadgeText;
|
|
7
9
|
set multimedia(value: BabylonMultimediaI | BabylonRoomDetailI | undefined);
|
|
8
10
|
get multimedia(): BabylonMultimediaI | BabylonRoomDetailI | undefined;
|
|
9
11
|
buttons?: BabylonButtonI[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getAiBadgeText(imageObj: any): string | null;
|