valtech-components 4.0.548 → 4.0.550

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.
@@ -0,0 +1,25 @@
1
+ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { FieldOptionEditorOption, FieldOptionsEditorMetadata } from './types';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FieldOptionsEditorComponent implements OnChanges {
5
+ props: FieldOptionsEditorMetadata;
6
+ optionsChange: EventEmitter<FieldOptionEditorOption[]>;
7
+ readonly fallback: Required<Omit<FieldOptionsEditorMetadata, 'options'>>;
8
+ resolved: Required<Omit<FieldOptionsEditorMetadata, 'options'>>;
9
+ options: FieldOptionEditorOption[];
10
+ draft: string;
11
+ constructor();
12
+ ngOnChanges(changes: SimpleChanges): void;
13
+ get disabled(): boolean;
14
+ stringValue(event: Event): string;
15
+ addDraft(): void;
16
+ updateOption(id: string, name: string): void;
17
+ removeOption(id: string): void;
18
+ private createOption;
19
+ private setOptions;
20
+ private normalizeOptions;
21
+ private uniqueID;
22
+ private optionID;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<FieldOptionsEditorComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<FieldOptionsEditorComponent, "val-field-options-editor", never, { "props": { "alias": "props"; "required": false; }; }, { "optionsChange": "optionsChange"; }, never, never, true, never>;
25
+ }
@@ -0,0 +1,17 @@
1
+ import { ComponentState } from '../../types';
2
+ export interface FieldOptionEditorOption {
3
+ id: string;
4
+ name: string;
5
+ order: number;
6
+ }
7
+ export interface FieldOptionsEditorMetadata {
8
+ title?: string;
9
+ hint?: string;
10
+ addLabel?: string;
11
+ optionsLabel?: string;
12
+ placeholder?: string;
13
+ emptyText?: string;
14
+ removeOptionLabel?: string;
15
+ state?: ComponentState;
16
+ options?: FieldOptionEditorOption[];
17
+ }
@@ -5,7 +5,8 @@ export declare class FontSizeSelectorComponent {
5
5
  props: FontSizeSelectorMetadata;
6
6
  private fontSizeService;
7
7
  private i18n;
8
- readonly popoverId: string;
8
+ isOpen: boolean;
9
+ popoverEvent?: Event;
9
10
  readonly currentSize: import("@angular/core").Signal<FontSizeOption>;
10
11
  constructor();
11
12
  get options(): {
@@ -13,6 +14,8 @@ export declare class FontSizeSelectorComponent {
13
14
  label: string;
14
15
  }[];
15
16
  setSize(size: FontSizeOption): void;
17
+ openPopover(event: Event): void;
18
+ closePopover(): void;
16
19
  t(key: string): string;
17
20
  static ɵfac: i0.ɵɵFactoryDeclaration<FontSizeSelectorComponent, never>;
18
21
  static ɵcmp: i0.ɵɵComponentDeclaration<FontSizeSelectorComponent, "val-font-size-selector", never, { "props": { "alias": "props"; "required": false; }; }, {}, never, never, true, never>;
@@ -14,8 +14,8 @@ export declare class LanguageSelectorComponent implements OnInit {
14
14
  languageChange: EventEmitter<string>;
15
15
  /** Popover selector configuration (for default mode) */
16
16
  popoverProps: PopoverSelectorMetadata;
17
- /** Unique ID for the icon mode popover trigger */
18
- popoverId: string;
17
+ iconPopoverOpen: boolean;
18
+ iconPopoverEvent?: Event;
19
19
  /** Available languages (exposed for icon mode template) */
20
20
  availableLanguages: string[];
21
21
  /** Current language (exposed for icon mode template) */
@@ -35,6 +35,8 @@ export declare class LanguageSelectorComponent implements OnInit {
35
35
  * @param selectedLanguage - The selected language code(s)
36
36
  */
37
37
  onLanguageChange(selectedLanguage: string | string[]): void;
38
+ openIconPopover(event: Event): void;
39
+ closeIconPopover(): void;
38
40
  static ɵfac: i0.ɵɵFactoryDeclaration<LanguageSelectorComponent, never>;
39
41
  static ɵcmp: i0.ɵɵComponentDeclaration<LanguageSelectorComponent, "val-language-selector", never, { "props": { "alias": "props"; "required": false; }; }, { "languageChange": "languageChange"; }, never, never, true, never>;
40
42
  }
@@ -114,7 +114,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
114
114
  readonly botProfiles: ChessimalsBotProfile[];
115
115
  readonly challengeLadder: ChessimalsChallengeBot[];
116
116
  readonly animals: ChessimalsAnimalView[];
117
- readonly valtechComponentsVersion = "4.0.548";
117
+ readonly valtechComponentsVersion = "4.0.550";
118
118
  readonly screen: import("@angular/core").WritableSignal<"home" | "challenge" | "path" | "game">;
119
119
  readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
120
120
  readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
@@ -126,6 +126,12 @@ export declare class AuthService implements OnDestroy {
126
126
  * ```
127
127
  */
128
128
  signinWithOAuth(provider: OAuthProvider): Observable<SigninResponse>;
129
+ /**
130
+ * Continúa un login OAuth que volvió por redirect principal con MFA requerido.
131
+ * En ese caso `signinWithOAuth()` no puede emitir porque la página navegó al
132
+ * backend OAuth y el callback corre en una ruta nueva de la misma SPA.
133
+ */
134
+ setOAuthMFAPending(mfaToken: string, method: MFAMethod): void;
129
135
  /**
130
136
  * Vincula un proveedor OAuth adicional a la cuenta actual.
131
137
  * Requiere que el usuario esté autenticado.
package/lib/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "4.0.548";
5
+ export declare const VERSION = "4.0.550";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.548",
3
+ "version": "4.0.550",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"
package/public-api.d.ts CHANGED
@@ -71,6 +71,8 @@ export * from './lib/components/molecules/expandable-text/expandable-text.compon
71
71
  export * from './lib/components/molecules/expandable-text/types';
72
72
  export * from './lib/components/molecules/file-input/file-input.component';
73
73
  export * from './lib/components/molecules/file-input/types';
74
+ export * from './lib/components/molecules/field-options-editor/field-options-editor.component';
75
+ export * from './lib/components/molecules/field-options-editor/types';
74
76
  export * from './lib/components/molecules/hint/hint.component';
75
77
  export * from './lib/components/molecules/language-selector/language-selector.component';
76
78
  export * from './lib/components/molecules/language-selector-v2/language-selector-v2.component';