ctt-babylon 0.8.18 → 0.9.0

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 (29) hide show
  1. package/esm2022/lib/components/core/babylon-list-c3-img-txt/babylon-list-c3-img-txt.component.mjs +12 -5
  2. package/esm2022/lib/components/core/babylon-slider-img-static/babylon-slider-img-static.component.mjs +12 -0
  3. package/esm2022/lib/components/core/babylon-slider-img-static/index.mjs +2 -0
  4. package/esm2022/lib/components/core/babylon-slider-img-static-v2/babylon-slider-img-static-v2.component.mjs +3 -3
  5. package/esm2022/lib/components/core/babylon-top-simple-banner/babylon-top-simple-banner.component.mjs +20 -0
  6. package/esm2022/lib/components/core/babylon-top-simple-banner/index.mjs +2 -0
  7. package/esm2022/lib/components/core/index.mjs +8 -7
  8. package/esm2022/lib/directives/scrolls/scroll-to.directive.mjs +183 -0
  9. package/esm2022/lib/directives/scrolls/show-only-top.directive.mjs +103 -0
  10. package/esm2022/lib/directives/sliders/slick-init.directive.mjs +18 -11
  11. package/esm2022/lib/interfaces/babylon-item.interface.mjs +1 -1
  12. package/esm2022/lib/interfaces/babylon-text-info.interface.mjs +1 -1
  13. package/esm2022/lib/services/mapper/mapper.service.mjs +18 -11
  14. package/esm2022/lib/services/scroll/scroll-spy.service.mjs +50 -0
  15. package/fesm2022/ctt-babylon.mjs +955 -586
  16. package/fesm2022/ctt-babylon.mjs.map +1 -1
  17. package/lib/components/core/babylon-list-c3-img-txt/babylon-list-c3-img-txt.component.d.ts +5 -1
  18. package/lib/components/core/babylon-slider-img-static/babylon-slider-img-static.component.d.ts +5 -0
  19. package/lib/components/core/babylon-slider-img-static/index.d.ts +1 -0
  20. package/lib/components/core/babylon-top-simple-banner/babylon-top-simple-banner.component.d.ts +6 -0
  21. package/lib/components/core/babylon-top-simple-banner/index.d.ts +1 -0
  22. package/lib/components/core/index.d.ts +7 -6
  23. package/lib/directives/scrolls/scroll-to.directive.d.ts +31 -0
  24. package/lib/directives/scrolls/show-only-top.directive.d.ts +22 -0
  25. package/lib/interfaces/babylon-item.interface.d.ts +6 -0
  26. package/lib/interfaces/babylon-text-info.interface.d.ts +2 -0
  27. package/lib/services/mapper/mapper.service.d.ts +2 -1
  28. package/lib/services/scroll/scroll-spy.service.d.ts +17 -0
  29. package/package.json +1 -1
@@ -1,5 +1,9 @@
1
+ import { BabylonTextInfoI } from '../../../interfaces';
2
+ import { BabylonItemI } from '../../../interfaces/babylon-item.interface';
1
3
  import * as i0 from "@angular/core";
2
4
  export declare class BabylonListC3ImgTxtComponent {
5
+ texts?: BabylonTextInfoI;
6
+ items?: BabylonItemI[];
3
7
  static ɵfac: i0.ɵɵFactoryDeclaration<BabylonListC3ImgTxtComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<BabylonListC3ImgTxtComponent, "lib-babylon-list-c3-img-txt", never, {}, {}, never, never, true, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<BabylonListC3ImgTxtComponent, "lib-babylon-list-c3-img-txt", never, { "texts": { "alias": "texts"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, {}, never, never, true, never>;
5
9
  }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class BabylonSliderImgStaticComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<BabylonSliderImgStaticComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<BabylonSliderImgStaticComponent, "lib-babylon-slider-img-static", never, {}, {}, never, never, true, never>;
5
+ }
@@ -0,0 +1 @@
1
+ export * from './babylon-slider-img-static.component';
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class BabylonTopSimpleBannerComponent {
3
+ imgSrc?: string;
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<BabylonTopSimpleBannerComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<BabylonTopSimpleBannerComponent, "lib-babylon-top-simple-banner", never, { "imgSrc": { "alias": "imgSrc"; "required": false; }; }, {}, never, never, true, never>;
6
+ }
@@ -0,0 +1 @@
1
+ export * from './babylon-top-simple-banner.component';
@@ -1,6 +1,7 @@
1
1
  export * from './babylon-404';
2
2
  export * from './babylon-action-banner';
3
3
  export * from './babylon-advantages';
4
+ export * from './babylon-advantages-v2';
4
5
  export * from './babylon-banner-gallery';
5
6
  export * from './babylon-banner-info';
6
7
  export * from './babylon-banner-newsletter';
@@ -17,6 +18,7 @@ export * from './babylon-engine';
17
18
  export * from './babylon-engine-modal';
18
19
  export * from './babylon-external-script';
19
20
  export * from './babylon-faq';
21
+ export * from './babylon-faq-v2';
20
22
  export * from './babylon-features-slider';
21
23
  export * from './babylon-filter-modal';
22
24
  export * from './babylon-floating-buttons';
@@ -72,24 +74,23 @@ export * from './babylon-rooms-grid';
72
74
  export * from './babylon-rooms-list';
73
75
  export * from './babylon-rooms-slider';
74
76
  export * from './babylon-services-slider';
77
+ export * from './babylon-slider-img-static';
78
+ export * from './babylon-slider-img-static-v2';
75
79
  export * from './babylon-slider2col';
76
80
  export * from './babylon-slider2items';
77
81
  export * from './babylon-slider3col';
78
82
  export * from './babylon-slider3col-clear';
79
83
  export * from './babylon-slider3items';
80
84
  export * from './babylon-slider4col';
85
+ export * from './babylon-social-bar';
81
86
  export * from './babylon-static-footer';
82
87
  export * from './babylon-static-footer-v2';
83
88
  export * from './babylon-submenu-hotel';
84
89
  export * from './babylon-thanks';
90
+ export * from './babylon-top-simple-banner';
85
91
  export * from './babylon-top-slider';
86
92
  export * from './babylon-top-slider-thumbs';
87
93
  export * from './babylon-top-slider-v2';
88
94
  export * from './babylon-top-slider-video';
89
- export * from './babylon-webmap';
90
95
  export * from './babylon-top-slider-video-v2';
91
- export * from './babylon-faq-v2';
92
- export * from './babylon-social-bar';
93
- export * from './babylon-top-slider-video-v2';
94
- export * from './babylon-advantages-v2';
95
- export * from './babylon-slider-img-static-v2';
96
+ export * from './babylon-webmap';
@@ -0,0 +1,31 @@
1
+ import { ElementRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { ScrollSpyService, ScrollSpyTarget } from '../../services/scroll/scroll-spy.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ScrollToDirective implements OnInit, OnDestroy, ScrollSpyTarget {
5
+ private el;
6
+ private spy;
7
+ private platformId;
8
+ role: string;
9
+ tabindex: string;
10
+ isActive: boolean;
11
+ constructor(el: ElementRef<HTMLElement>, spy: ScrollSpyService, platformId: object);
12
+ ngOnInit(): void;
13
+ ngOnDestroy(): void;
14
+ onClick(ev: Event): void;
15
+ onKey(ev: Event): void;
16
+ private attr;
17
+ private spacerBase;
18
+ private widthAdj;
19
+ private targetEl;
20
+ /** selector opcional para scroller custom */
21
+ private scrollContainer;
22
+ private rootScrollTop;
23
+ private pageTop;
24
+ private computeScrollTop;
25
+ private scrollToTarget;
26
+ private groupIsActive;
27
+ private activateSelfAndDeactivateSiblings;
28
+ onScrollY(scrollY: number): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollToDirective, never>;
30
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollToDirective, ".js-scrollto,[appScrollTo]", never, {}, {}, never, never, true, never>;
31
+ }
@@ -0,0 +1,22 @@
1
+ import { AfterViewInit, NgZone, OnDestroy } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ShowOnlyAtTopDirective implements AfterViewInit, OnDestroy {
4
+ private zone;
5
+ /** Rango en px desde el top en el que el botón permanece visible */
6
+ topShowPx: number;
7
+ minWidth: number;
8
+ private hidden;
9
+ private active;
10
+ private offScroll?;
11
+ private offResize?;
12
+ private ticking;
13
+ t: string;
14
+ get cls(): boolean;
15
+ get op(): "1" | "0";
16
+ get pe(): "auto" | "none";
17
+ constructor(zone: NgZone);
18
+ ngAfterViewInit(): void;
19
+ ngOnDestroy(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShowOnlyAtTopDirective, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ShowOnlyAtTopDirective, "[showOnlyAtTop]", never, { "topShowPx": { "alias": "topShowPx"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; }, {}, never, never, true, never>;
22
+ }
@@ -1,4 +1,10 @@
1
+ import { BabylonButtonI } from './babylon-button.interface';
2
+ import { BabylonImageI } from './babylon-image.interface';
3
+ import { BabylonTextInfoI } from './babylon-text-info.interface';
1
4
  export interface BabylonItemI {
2
5
  label?: string;
3
6
  description?: string;
7
+ buttons?: BabylonButtonI[];
8
+ multimedia?: BabylonImageI[];
9
+ texts?: BabylonTextInfoI;
4
10
  }
@@ -2,6 +2,7 @@ import { BabylonDynamicHeadingI } from '../components/shared';
2
2
  export interface BabylonTextInfoI {
3
3
  pretitle?: string;
4
4
  title?: string;
5
+ title2?: string;
5
6
  subtitle?: string;
6
7
  text?: string;
7
8
  item1?: string;
@@ -14,4 +15,5 @@ export interface BabylonTextInfoI {
14
15
  url?: string;
15
16
  pretitleContain?: BabylonDynamicHeadingI;
16
17
  titleContain?: BabylonDynamicHeadingI;
18
+ svg?: string;
17
19
  }
@@ -21,8 +21,9 @@ export declare class MapperService {
21
21
  mapSubmenu(props: any | undefined): BabylonSubmenuI;
22
22
  mapComponents<T>(body: any[], addons?: ComponentsAddons): BodyComponent<T>[];
23
23
  mapGlobals(component: any): any;
24
+ mapItems(items: any): any | undefined;
24
25
  mapMultimedia(imagesArray: any | undefined): any | undefined;
25
- mapImages(props: any | undefined): any | undefined;
26
+ mapImages(multimedia: any | undefined): any | undefined;
26
27
  map404(props: any | undefined): Babylon404I;
27
28
  mapTopSlider(props: any | undefined): BabylonTopSliderI | undefined;
28
29
  mapTopSliderVideo(props: any | undefined): BabylonTopSliderVideoI | undefined;
@@ -0,0 +1,17 @@
1
+ import * as i0 from "@angular/core";
2
+ export interface ScrollSpyTarget {
3
+ onScrollY(y: number): void;
4
+ }
5
+ export declare class ScrollSpyService {
6
+ private platformId;
7
+ private items;
8
+ private ticking;
9
+ private bound;
10
+ constructor(platformId: object);
11
+ register(item: ScrollSpyTarget): void;
12
+ unregister(item: ScrollSpyTarget): void;
13
+ private onScroll;
14
+ private rafTick;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollSpyService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<ScrollSpyService>;
17
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctt-babylon",
3
- "version": "0.8.18",
3
+ "version": "0.9.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.8",
6
6
  "@angular/core": "^17.3.8",