valtech-components 2.0.343 → 2.0.344

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.
@@ -31,7 +31,7 @@ export declare class ArticleComponent implements OnInit {
31
31
  getVideoElement(element: ArticleElement): ArticleVideoElement;
32
32
  getCustomElement(element: ArticleElement): ArticleCustomElement;
33
33
  getQuoteTextProps(element: ArticleElement): {
34
- size: "medium" | "small" | "large" | "xlarge";
34
+ size: "small" | "medium" | "large" | "xlarge";
35
35
  color: import("@ionic/core").Color;
36
36
  content?: string;
37
37
  bold: boolean;
@@ -44,7 +44,7 @@ export declare class ArticleComponent implements OnInit {
44
44
  allowPartialBold?: boolean;
45
45
  };
46
46
  getHighlightTextProps(element: ArticleElement): {
47
- size: "medium" | "small" | "large" | "xlarge";
47
+ size: "small" | "medium" | "large" | "xlarge";
48
48
  color: import("@ionic/core").Color;
49
49
  content?: string;
50
50
  bold: boolean;
@@ -1,53 +1,25 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { MOTION, Step, WizardMetadata } from './types';
3
3
  import * as i0 from "@angular/core";
4
- export declare class WizardComponent implements OnInit {
5
- /**
6
- * Metadatos del wizard, pasos y estado.
7
- */
4
+ export declare class WizardComponent implements OnInit, OnChanges {
5
+ private cdr;
8
6
  props: WizardMetadata;
9
- /**
10
- * Evento emitido al hacer click en una acción de navegación.
11
- */
12
7
  onClick: EventEmitter<{
13
8
  current: number;
14
9
  motion: MOTION;
15
10
  }>;
16
11
  wrapperId: string;
17
- constructor();
12
+ currentStep: Step | null;
13
+ constructor(cdr: ChangeDetectorRef);
18
14
  ngOnInit(): void;
19
- /**
20
- * Cambia el estado del wizard a 'WORKING' y deshabilita los botones del paso actual.
21
- */
15
+ ngOnChanges(changes: SimpleChanges): void;
16
+ private updateCurrentStep;
22
17
  working(): void;
23
- /**
24
- * Cambia el estado del wizard a 'ENABLED' y habilita los botones del paso actual.
25
- * No realiza cambios si ya está en estado 'ENABLED'.
26
- */
27
18
  done(): void;
28
- /**
29
- * Devuelve el paso actual del wizard.
30
- */
31
19
  get Current(): Step;
32
- /**
33
- * Cambia el paso actual del wizard y hace scroll al inicio.
34
- * @param newStep Nuevo índice de paso
35
- */
36
20
  setCurrent(newStep: number): void;
37
- /**
38
- * Establece el estado de error y muestra el mensaje de error en el banner inferior.
39
- * @param error Mensaje de error a mostrar
40
- */
41
21
  setError(error: string): void;
42
- /**
43
- * Reinicia el estado de error y vuelve a estado 'ENABLED'.
44
- */
45
22
  reset(): void;
46
- /**
47
- * Maneja el click en el banner de error y emite el evento de navegación.
48
- * Si el token contiene 'retry', reinicia el wizard.
49
- * @param token Token de la acción clicada
50
- */
51
23
  clickHandler(token?: string): void;
52
24
  static ɵfac: i0.ɵɵFactoryDeclaration<WizardComponent, never>;
53
25
  static ɵcmp: i0.ɵɵComponentDeclaration<WizardComponent, "val-wizard", never, { "props": { "alias": "props"; "required": false; }; }, { "onClick": "onClick"; }, never, ["[step]"], true, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.343",
3
+ "version": "2.0.344",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.0.0",
6
6
  "@angular/core": "^18.0.0",