ctt-babylon 0.22.13 → 0.22.14

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.
@@ -1,13 +1,9 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { BabylonButtonI, BabylonImageI } from '../../../interfaces';
2
+ import { BabylonButtonI, BabylonImageI, BabylonTextInfoI } from '../../../interfaces';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class BabylonLisC4TxtImgPdfComponent implements OnInit {
5
- title?: string;
6
- subtitle?: string;
7
- prev?: string;
8
- next?: string;
9
- download?: string;
10
5
  items?: BabylonLisC4ImgPdfI[];
6
+ texts?: BabylonTextInfoI;
11
7
  private readonly itemsPerPage;
12
8
  currentPage: number;
13
9
  totalPages: number;
@@ -18,15 +14,18 @@ export declare class BabylonLisC4TxtImgPdfComponent implements OnInit {
18
14
  prevPage(): void;
19
15
  nextPage(): void;
20
16
  get pageNumbers(): number[];
17
+ downloadPdf(event: Event, item: BabylonLisC4ImgPdfI): Promise<void>;
21
18
  static ɵfac: i0.ɵɵFactoryDeclaration<BabylonLisC4TxtImgPdfComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<BabylonLisC4TxtImgPdfComponent, "lib-babylon-lis-c4-txt-img-pdf", never, { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "prev": { "alias": "prev"; "required": false; }; "next": { "alias": "next"; "required": false; }; "download": { "alias": "download"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, {}, never, never, true, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<BabylonLisC4TxtImgPdfComponent, "lib-babylon-lis-c4-txt-img-pdf", never, { "items": { "alias": "items"; "required": false; }; "texts": { "alias": "texts"; "required": false; }; }, {}, never, never, true, never>;
23
20
  }
24
21
  export interface BabylonLisC4ImgPdfI {
25
22
  link?: BabylonButtonI;
23
+ links?: BabylonButtonI[];
26
24
  text?: string;
27
25
  title?: string;
28
26
  magazine?: string;
29
27
  year?: string;
30
28
  image?: BabylonImageI;
31
29
  img?: BabylonImageI;
30
+ texts?: BabylonTextInfoI;
32
31
  }
@@ -161,4 +161,9 @@ export interface BabylonTextInfoI {
161
161
  'Descripción-detalle-4'?: string;
162
162
  icon?: string;
163
163
  compofertas_icon?: string;
164
+ download?: string;
165
+ next?: string;
166
+ prev?: string;
167
+ ndTitle?: string;
168
+ mainTitle?: string;
164
169
  }
@@ -40,9 +40,9 @@ export declare class MapperService {
40
40
  mapGlobalDestinations(destinations: any | undefined): BabylonDestinationI[] | undefined;
41
41
  mapGlobalTexts(texts: any | undefined): BabylonTextInfoI;
42
42
  /**
43
- * Busca en texts todas las propiedades que sean objeto y tengan contain y/o tag,
44
- * y devuelve un objeto con claves heading_tag_{key} y valor { content, tag }
45
- */
43
+ * Busca en texts todas las propiedades que sean objeto y tengan contain y/o tag,
44
+ * y devuelve un objeto con claves heading_tag_{key} y valor { content, tag }
45
+ */
46
46
  private extractHeadingTags;
47
47
  private getTextValue;
48
48
  mapConsultTypesGlobal(consults: any | undefined): ConsultTypeI[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctt-babylon",
3
- "version": "0.22.13",
3
+ "version": "0.22.14",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.8",
6
6
  "@angular/core": "^17.3.8",