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.
- package/esm2022/lib/components/molecules/field-options-editor/field-options-editor.component.mjs +229 -0
- package/esm2022/lib/components/molecules/field-options-editor/types.mjs +2 -0
- package/esm2022/lib/components/molecules/font-size-selector/font-size-selector.component.mjs +24 -6
- package/esm2022/lib/components/molecules/language-selector/language-selector.component.mjs +24 -7
- package/esm2022/lib/components/organisms/login/login.component.mjs +4 -1
- package/esm2022/lib/services/auth/auth.service.mjs +14 -1
- package/esm2022/lib/services/auth/oauth-callback.component.mjs +16 -8
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/valtech-components.mjs +302 -21
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/molecules/field-options-editor/field-options-editor.component.d.ts +25 -0
- package/lib/components/molecules/field-options-editor/types.d.ts +17 -0
- package/lib/components/molecules/font-size-selector/font-size-selector.component.d.ts +4 -1
- package/lib/components/molecules/language-selector/language-selector.component.d.ts +4 -2
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +1 -1
- package/lib/services/auth/auth.service.d.ts +6 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -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
|
-
|
|
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
|
-
|
|
18
|
-
|
|
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.
|
|
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
package/package.json
CHANGED
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';
|