valtech-components 4.0.134 → 4.0.136

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,40 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { RequestFormMetadata, RequestSubmitEvent } from '../../molecules/request-form/types';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * `val-request-modal`
6
+ *
7
+ * Modal canónico para crear una solicitud (ticket de soporte, etc.): envuelve
8
+ * `val-request-form` en el shell de modal de la lib (Regla #5 — header con botón
9
+ * "Cerrar", sin `ion-title`). Antes cada app duplicaba este `ion-modal` +
10
+ * `ion-header` + `val-request-form` a mano (ej. `support-ticket-modal` de web).
11
+ *
12
+ * Patrón declarativo `[isOpen]` + `(dismissed)` — el padre controla la
13
+ * visibilidad. El tipo de solicitud y demás opciones se pasan por `formProps`
14
+ * (default `{ type: 'support_ticket' }`).
15
+ *
16
+ * @example
17
+ * ```html
18
+ * <val-request-modal
19
+ * [isOpen]="ticketOpen()"
20
+ * [formProps]="{ type: 'support_ticket' }"
21
+ * (submitted)="onTicketCreated($event)"
22
+ * (dismissed)="ticketOpen.set(false)" />
23
+ * ```
24
+ */
25
+ export declare class RequestModalComponent {
26
+ /** Controla la visibilidad del modal (el padre la maneja). */
27
+ isOpen: boolean;
28
+ /** Config del `val-request-form` (tipo de solicitud, labels, etc.). */
29
+ formProps: RequestFormMetadata;
30
+ /** Override del texto del botón cerrar (default: i18n `_global.close`). */
31
+ closeLabel: string;
32
+ /** Se emite al cerrar el modal (X o backdrop). */
33
+ dismissed: EventEmitter<void>;
34
+ /** Se emite cuando el formulario se envía con éxito. */
35
+ submitted: EventEmitter<RequestSubmitEvent>;
36
+ close(): void;
37
+ onFormSubmit(event: RequestSubmitEvent): void;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<RequestModalComponent, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<RequestModalComponent, "val-request-modal", never, { "isOpen": { "alias": "isOpen"; "required": false; }; "formProps": { "alias": "formProps"; "required": false; }; "closeLabel": { "alias": "closeLabel"; "required": false; }; }, { "dismissed": "dismissed"; "submitted": "submitted"; }, never, never, true, never>;
40
+ }
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.134";
5
+ export declare const VERSION = "4.0.136";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.134",
3
+ "version": "4.0.136",
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
@@ -214,6 +214,7 @@ export * from './lib/components/organisms/change-email-modal/change-email-modal.
214
214
  export * from './lib/components/organisms/share-profile-modal/share-profile-modal.component';
215
215
  export * from './lib/components/organisms/share-profile-modal/types';
216
216
  export * from './lib/components/organisms/fun-modal/fun-modal.component';
217
+ export * from './lib/components/organisms/request-modal/request-modal.component';
217
218
  export * from './lib/components/organisms/fun-modal/types';
218
219
  export * from './lib/components/organisms/cookie-banner/cookie-banner.component';
219
220
  export * from './lib/components/organisms/cookie-banner/types';