valtech-components 4.0.32 → 4.0.34
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/organisms/edit-org-modal/edit-org-modal.component.mjs +41 -4
- package/esm2022/lib/components/organisms/edit-org-modal/edit-org-modal.i18n.mjs +5 -1
- package/esm2022/lib/components/organisms/organization-view/organization-view.component.mjs +8 -5
- package/esm2022/lib/components/organisms/switch-org-modal/switch-org-modal.component.mjs +18 -9
- package/esm2022/lib/components/organisms/whatsapp-fab/whatsapp-fab.component.mjs +63 -0
- package/esm2022/lib/services/org/types.mjs +1 -1
- package/esm2022/lib/services/whatsapp/config.mjs +6 -0
- package/esm2022/lib/services/whatsapp/index.mjs +4 -0
- package/esm2022/lib/services/whatsapp/types.mjs +2 -0
- package/esm2022/lib/services/whatsapp/whatsapp.service.mjs +28 -0
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/public-api.mjs +4 -1
- package/fesm2022/valtech-components.mjs +160 -17
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/atoms/rights-footer/rights-footer.component.d.ts +2 -2
- package/lib/components/atoms/text/text.component.d.ts +1 -1
- package/lib/components/atoms/user-avatar/user-avatar.component.d.ts +1 -1
- package/lib/components/molecules/cta-card/cta-card.component.d.ts +1 -1
- package/lib/components/molecules/features-list/features-list.component.d.ts +1 -1
- package/lib/components/molecules/metric-card/metric-card.component.d.ts +1 -1
- package/lib/components/organisms/article/article.component.d.ts +6 -6
- package/lib/components/organisms/auth-cta/auth-cta.component.d.ts +1 -1
- package/lib/components/organisms/edit-org-modal/edit-org-modal.component.d.ts +2 -0
- package/lib/components/organisms/notification-preferences-view/notification-preferences-view.component.d.ts +1 -1
- package/lib/components/organisms/organization-view/organization-view.component.d.ts +2 -0
- package/lib/components/organisms/switch-org-modal/switch-org-modal.component.d.ts +5 -0
- package/lib/components/organisms/whatsapp-fab/whatsapp-fab.component.d.ts +8 -0
- package/lib/services/org/types.d.ts +2 -0
- package/lib/services/whatsapp/config.d.ts +4 -0
- package/lib/services/whatsapp/index.d.ts +3 -0
- package/lib/services/whatsapp/types.d.ts +5 -0
- package/lib/services/whatsapp/whatsapp.service.d.ts +9 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -39,11 +39,11 @@ export declare class RightsFooterComponent {
|
|
|
39
39
|
/**
|
|
40
40
|
* Computed helper for align prop in template.
|
|
41
41
|
*/
|
|
42
|
-
propsAlign: import("@angular/core").Signal<"
|
|
42
|
+
propsAlign: import("@angular/core").Signal<"center" | "left" | "right">;
|
|
43
43
|
/**
|
|
44
44
|
* Computed helper for color prop in template.
|
|
45
45
|
*/
|
|
46
|
-
propsColor: import("@angular/core").Signal<"
|
|
46
|
+
propsColor: import("@angular/core").Signal<"dark" | "primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | "light" | "medium">;
|
|
47
47
|
/**
|
|
48
48
|
* Computed helper for withMargin prop in template.
|
|
49
49
|
*/
|
|
@@ -11,7 +11,7 @@ export declare class TextComponent {
|
|
|
11
11
|
*/
|
|
12
12
|
displayContent: import("@angular/core").Signal<string>;
|
|
13
13
|
propsColor: import("@angular/core").Signal<import("@ionic/core").Color>;
|
|
14
|
-
propsSize: import("@angular/core").Signal<"
|
|
14
|
+
propsSize: import("@angular/core").Signal<"medium" | "small" | "large" | "xlarge">;
|
|
15
15
|
propsBold: import("@angular/core").Signal<boolean>;
|
|
16
16
|
propsProcessLinks: import("@angular/core").Signal<boolean>;
|
|
17
17
|
propsAllowPartialBold: import("@angular/core").Signal<boolean>;
|
|
@@ -38,7 +38,7 @@ export declare class UserAvatarComponent {
|
|
|
38
38
|
readonly imageUrl: import("@angular/core").Signal<string>;
|
|
39
39
|
/** Iniciales — 1-2 chars derivados de name (preferred) o email prefix. */
|
|
40
40
|
readonly initials: import("@angular/core").Signal<string>;
|
|
41
|
-
readonly sizeClass: import("@angular/core").Signal<"
|
|
41
|
+
readonly sizeClass: import("@angular/core").Signal<"medium" | "small" | "large" | "xlarge" | "xsmall">;
|
|
42
42
|
readonly shapeClass: import("@angular/core").Signal<"circle" | "square">;
|
|
43
43
|
/** Background — explicito o derivado deterministicamente del user. */
|
|
44
44
|
readonly bgColor: import("@angular/core").Signal<string>;
|
|
@@ -35,7 +35,7 @@ export declare class CtaCardComponent {
|
|
|
35
35
|
/** Emitted with the token of the clicked action button */
|
|
36
36
|
onAction: EventEmitter<string>;
|
|
37
37
|
/** Merged configuration with defaults */
|
|
38
|
-
config: import("@angular/core").Signal<CtaCardMetadata & Required<Pick<CtaCardMetadata, "
|
|
38
|
+
config: import("@angular/core").Signal<CtaCardMetadata & Required<Pick<CtaCardMetadata, "padding" | "borderRadius" | "bordered" | "shadowed" | "align">>>;
|
|
39
39
|
getBackground(): string;
|
|
40
40
|
getColor(): string | null;
|
|
41
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<CtaCardComponent, never>;
|
|
@@ -41,7 +41,7 @@ export declare class FeaturesListComponent {
|
|
|
41
41
|
iconColor: string;
|
|
42
42
|
iconSize: number;
|
|
43
43
|
mode: "horizontal" | "vertical";
|
|
44
|
-
gap: "
|
|
44
|
+
gap: "medium" | "small" | "large";
|
|
45
45
|
alignment: "center" | "start";
|
|
46
46
|
imageShape: "circle" | "square";
|
|
47
47
|
maxVisible: number;
|
|
@@ -28,7 +28,7 @@ export declare class MetricCardComponent {
|
|
|
28
28
|
/** Emitted with the token of the clicked action */
|
|
29
29
|
onAction: EventEmitter<string>;
|
|
30
30
|
/** Merged configuration with defaults */
|
|
31
|
-
config: import("@angular/core").Signal<MetricCardMetadata & Required<Pick<MetricCardMetadata, "
|
|
31
|
+
config: import("@angular/core").Signal<MetricCardMetadata & Required<Pick<MetricCardMetadata, "padding" | "borderRadius" | "bordered" | "shadowed">>>;
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<MetricCardComponent, never>;
|
|
33
33
|
static ɵcmp: i0.ɵɵComponentDeclaration<MetricCardComponent, "val-metric-card", never, { "props": { "alias": "props"; "required": false; "isSignal": true; }; }, { "onAction": "onAction"; }, never, never, true, never>;
|
|
34
34
|
}
|
|
@@ -45,7 +45,7 @@ export declare class ArticleComponent implements OnInit {
|
|
|
45
45
|
getVideoElement(element: ArticleElement): ArticleVideoElement;
|
|
46
46
|
getCustomElement(element: ArticleElement): ArticleCustomElement;
|
|
47
47
|
getQuoteTextProps(element: ArticleElement): {
|
|
48
|
-
size: "
|
|
48
|
+
size: "medium" | "small" | "large" | "xlarge";
|
|
49
49
|
color: import("@ionic/core").Color;
|
|
50
50
|
content?: string;
|
|
51
51
|
bold: boolean;
|
|
@@ -57,11 +57,11 @@ export declare class ArticleComponent implements OnInit {
|
|
|
57
57
|
linkConfig?: import("valtech-components").LinkProcessorConfig;
|
|
58
58
|
allowPartialBold?: boolean;
|
|
59
59
|
authorColor?: import("@ionic/core").Color;
|
|
60
|
-
alignment?: "
|
|
60
|
+
alignment?: "center" | "left" | "right";
|
|
61
61
|
showQuoteMark?: boolean;
|
|
62
62
|
};
|
|
63
63
|
getHighlightTextProps(element: ArticleElement): {
|
|
64
|
-
size: "
|
|
64
|
+
size: "medium" | "small" | "large" | "xlarge";
|
|
65
65
|
color: import("@ionic/core").Color;
|
|
66
66
|
content?: string;
|
|
67
67
|
bold: boolean;
|
|
@@ -76,7 +76,7 @@ export declare class ArticleComponent implements OnInit {
|
|
|
76
76
|
getHighlightColor(element: ArticleElement): string;
|
|
77
77
|
getButtonProps(element: ArticleElement): {
|
|
78
78
|
actionType?: import("valtech-components").ActionType;
|
|
79
|
-
expand?: "
|
|
79
|
+
expand?: "block" | "full";
|
|
80
80
|
link?: string;
|
|
81
81
|
href?: string;
|
|
82
82
|
routerLink?: string | any[];
|
|
@@ -92,8 +92,8 @@ export declare class ArticleComponent implements OnInit {
|
|
|
92
92
|
icon?: import("valtech-components").IconMetada;
|
|
93
93
|
shape?: "round";
|
|
94
94
|
size?: "default" | "small" | "large";
|
|
95
|
-
fill?: "default" | "
|
|
96
|
-
type: "
|
|
95
|
+
fill?: "default" | "solid" | "clear" | "outline";
|
|
96
|
+
type: "submit" | "button" | "reset";
|
|
97
97
|
token?: string;
|
|
98
98
|
ref?: any;
|
|
99
99
|
handler?: (value: any) => any;
|
|
@@ -35,7 +35,7 @@ export declare class AuthCtaComponent {
|
|
|
35
35
|
onRegister: EventEmitter<void>;
|
|
36
36
|
constructor();
|
|
37
37
|
/** Merged configuration with defaults */
|
|
38
|
-
config: import("@angular/core").Signal<AuthCtaMetadata & Required<Pick<AuthCtaMetadata, "
|
|
38
|
+
config: import("@angular/core").Signal<AuthCtaMetadata & Required<Pick<AuthCtaMetadata, "padding" | "borderRadius" | "align">>>;
|
|
39
39
|
loginLabel: import("@angular/core").Signal<string>;
|
|
40
40
|
registerLabel: import("@angular/core").Signal<string>;
|
|
41
41
|
resolvedBg: import("@angular/core").Signal<string>;
|
|
@@ -37,6 +37,7 @@ export declare class EditOrgModalComponent implements OnInit {
|
|
|
37
37
|
i18nNamespace: string;
|
|
38
38
|
private readonly saving;
|
|
39
39
|
protected readonly logoUrl: WritableSignal<string>;
|
|
40
|
+
protected readonly removingLogo: WritableSignal<boolean>;
|
|
40
41
|
readonly formMeta: WritableSignal<FormMetadata>;
|
|
41
42
|
protected readonly orgInitials: import("@angular/core").Signal<string>;
|
|
42
43
|
constructor();
|
|
@@ -46,6 +47,7 @@ export declare class EditOrgModalComponent implements OnInit {
|
|
|
46
47
|
onFormSubmit(event: FormSubmit): void;
|
|
47
48
|
private save;
|
|
48
49
|
onLogoUploaded(result: AvatarUploadResult): Promise<void>;
|
|
50
|
+
onRemoveLogo(): Promise<void>;
|
|
49
51
|
dismiss(): void;
|
|
50
52
|
t(key: string): string;
|
|
51
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditOrgModalComponent, never>;
|
|
@@ -90,7 +90,7 @@ export declare class NotificationPreferencesViewComponent implements OnInit, OnD
|
|
|
90
90
|
readonly busyLabel: import("@angular/core").Signal<string>;
|
|
91
91
|
readonly contextMessage: import("@angular/core").Signal<string>;
|
|
92
92
|
readonly alertVariant: import("@angular/core").Signal<"warning" | "danger" | "info">;
|
|
93
|
-
readonly alertIcon: import("@angular/core").Signal<"
|
|
93
|
+
readonly alertIcon: import("@angular/core").Signal<"close-circle-outline" | "alert-circle-outline">;
|
|
94
94
|
readonly toggleProps: import("@angular/core").Signal<ToggleInputMetadata>;
|
|
95
95
|
readonly retryButtonProps: import("@angular/core").Signal<Partial<ButtonMetadata>>;
|
|
96
96
|
readonly tokenPreview: import("@angular/core").Signal<string>;
|
|
@@ -54,6 +54,8 @@ export declare class OrganizationViewComponent {
|
|
|
54
54
|
/** Namespace i18n resuelto (capturado para llamadas no-reactivas). */
|
|
55
55
|
private get ns();
|
|
56
56
|
readonly org: import("@angular/core").WritableSignal<Organization>;
|
|
57
|
+
/** Logo de org que falló al cargar → oculta el bloque (cae a la card sin logo). */
|
|
58
|
+
readonly logoFailed: import("@angular/core").WritableSignal<boolean>;
|
|
57
59
|
readonly loading: import("@angular/core").WritableSignal<boolean>;
|
|
58
60
|
readonly leaving: import("@angular/core").WritableSignal<boolean>;
|
|
59
61
|
readonly permissionsOpen: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -37,6 +37,11 @@ export declare class SwitchOrgModalComponent {
|
|
|
37
37
|
readonly query: import("@angular/core").WritableSignal<string>;
|
|
38
38
|
readonly switchingId: import("@angular/core").WritableSignal<string>;
|
|
39
39
|
protected readonly user: import("@angular/core").Signal<import("valtech-components").AuthUser>;
|
|
40
|
+
/** Avatar de usuario que falló al cargar → cae a iniciales. */
|
|
41
|
+
protected readonly userAvatarFailed: import("@angular/core").WritableSignal<boolean>;
|
|
42
|
+
/** IDs de orgs cuyo logo falló al cargar → caen al ícono business-outline. */
|
|
43
|
+
protected readonly failedLogos: import("@angular/core").WritableSignal<Set<string>>;
|
|
44
|
+
protected onLogoError(orgId: string): void;
|
|
40
45
|
protected readonly userInitials: import("@angular/core").Signal<string>;
|
|
41
46
|
readonly activeOrgId: import("@angular/core").Signal<string>;
|
|
42
47
|
readonly filteredOrgs: import("@angular/core").Signal<Organization[]>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class WhatsappFabComponent {
|
|
3
|
+
private readonly wa;
|
|
4
|
+
protected readonly url: string;
|
|
5
|
+
protected readonly label: string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WhatsappFabComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WhatsappFabComponent, "val-whatsapp-fab", never, {}, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -31,6 +31,8 @@ export interface UpdateOrgRequest {
|
|
|
31
31
|
name?: string;
|
|
32
32
|
description?: string;
|
|
33
33
|
logoUrl?: string;
|
|
34
|
+
/** Borra el logo de la org. Distinto de logoUrl vacío (= "no cambiar"). */
|
|
35
|
+
clearLogo?: boolean;
|
|
34
36
|
}
|
|
35
37
|
export interface InviteUserRequest {
|
|
36
38
|
email?: string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { EnvironmentProviders, InjectionToken } from '@angular/core';
|
|
2
|
+
import { ValtechWhatsappConfig } from './types';
|
|
3
|
+
export declare const VALTECH_WHATSAPP_CONFIG: InjectionToken<ValtechWhatsappConfig>;
|
|
4
|
+
export declare function provideValtechWhatsapp(config: ValtechWhatsappConfig): EnvironmentProviders;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class WhatsappService {
|
|
3
|
+
private readonly config;
|
|
4
|
+
get isEnabled(): boolean;
|
|
5
|
+
buildUrl(customMessage?: string): string | null;
|
|
6
|
+
get label(): string;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WhatsappService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WhatsappService>;
|
|
9
|
+
}
|
package/lib/version.d.ts
CHANGED
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -382,6 +382,8 @@ export * from './lib/components/molecules/ad-slot/ad-slot.component';
|
|
|
382
382
|
export * from './lib/services/content';
|
|
383
383
|
export * from './lib/services/content-platform';
|
|
384
384
|
export * from './lib/services/feedback';
|
|
385
|
+
export * from './lib/services/whatsapp';
|
|
386
|
+
export * from './lib/components/organisms/whatsapp-fab/whatsapp-fab.component';
|
|
385
387
|
export * from './lib/services/donation';
|
|
386
388
|
export * from './lib/components/molecules/feedback-form/feedback-form.component';
|
|
387
389
|
export * from './lib/components/molecules/feedback-form/types';
|