ctt-babylon 0.27.4 → 0.27.7

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.
@@ -12,10 +12,15 @@ export declare class OfferPopUpV4Component {
12
12
  texts?: BabylonTextInfoI;
13
13
  multimedia?: BabylonMultimediaI;
14
14
  buttons?: BabylonButtonI[];
15
+ /** Si contiene "right" o "reverse", el popup se muestra en el lado izquierdo */
16
+ identifier?: string | null;
15
17
  tagName: string;
16
18
  isOpen: boolean;
19
+ get isReverse(): boolean;
20
+ /** Convierte los saltos de línea en <br>, salvo los que van junto a etiquetas HTML */
21
+ formatDescription(description?: string | null): string;
17
22
  togglePopUp(): void;
18
23
  getImagesByTag(tagName: string, multimedia: BabylonMultimediaI): import("../../../interfaces").BabylonImageI[];
19
24
  static ɵfac: i0.ɵɵFactoryDeclaration<OfferPopUpV4Component, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<OfferPopUpV4Component, "app-offer-pop-up-v4", never, { "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; "buttonLink": { "alias": "buttonLink"; "required": false; }; "imageUrl": { "alias": "imageUrl"; "required": false; }; "offer": { "alias": "offer"; "required": false; }; "texts": { "alias": "texts"; "required": false; }; "multimedia": { "alias": "multimedia"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; }, {}, never, never, true, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<OfferPopUpV4Component, "app-offer-pop-up-v4", never, { "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "buttonText": { "alias": "buttonText"; "required": false; }; "buttonLink": { "alias": "buttonLink"; "required": false; }; "imageUrl": { "alias": "imageUrl"; "required": false; }; "offer": { "alias": "offer"; "required": false; }; "texts": { "alias": "texts"; "required": false; }; "multimedia": { "alias": "multimedia"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "identifier": { "alias": "identifier"; "required": false; }; }, {}, never, never, true, never>;
21
26
  }
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { FormBuilder, FormGroup } from '@angular/forms';
3
3
  import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
4
4
  import { BabylonTagsI, BabylonTextInfoI, BabylonTextsColorsI } from '../../../interfaces';
@@ -6,7 +6,7 @@ import { BabylonButtonI } from '../../../interfaces/babylon-button.interface';
6
6
  import { BabylonImageI } from '../../../interfaces/babylon-image.interface';
7
7
  import { BabylonInputI } from '../../../interfaces/babylon-input.interface';
8
8
  import * as i0 from "@angular/core";
9
- export declare class BabylonStaticFooterComponent implements AfterViewInit, OnInit {
9
+ export declare class BabylonStaticFooterComponent implements AfterViewInit, OnInit, OnChanges {
10
10
  private readonly sanitizer;
11
11
  private readonly cdr;
12
12
  private readonly fb;
@@ -41,6 +41,12 @@ export declare class BabylonStaticFooterComponent implements AfterViewInit, OnIn
41
41
  constructor(sanitizer: DomSanitizer, cdr: ChangeDetectorRef, fb: FormBuilder);
42
42
  ngAfterViewInit(): void;
43
43
  ngOnInit(): void;
44
+ ngOnChanges(changes: SimpleChanges): void;
45
+ /**
46
+ * El checkbox "required" solo se pinta si hay requiredField; su validador
47
+ * debe seguir ese mismo estado o el form queda inválido sin control visible.
48
+ */
49
+ private syncRequiredValidator;
44
50
  validateInput(): void;
45
51
  inputChange(event: Event): void;
46
52
  markAllControlsAsTouched(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctt-babylon",
3
- "version": "0.27.4",
3
+ "version": "0.27.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.8",
6
6
  "@angular/core": "^17.3.8",