valtech-components 4.0.18 → 4.0.20
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/api-keys-view/api-keys-view.component.mjs +2 -3
- package/esm2022/lib/components/organisms/change-email-modal/change-email-modal.component.mjs +3 -3
- package/esm2022/lib/components/organisms/field-list/field-list.component.mjs +7 -9
- package/esm2022/lib/components/organisms/mfa-modal/mfa-modal.component.mjs +3 -3
- package/esm2022/lib/components/organisms/organization-view/organization-view.component.mjs +22 -39
- package/esm2022/lib/services/modal/modal.service.mjs +22 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +54 -51
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/landing-steps/landing-steps.component.d.ts +1 -1
- package/lib/services/modal/modal.service.d.ts +11 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/lib/components/styles/overrides.scss +26 -0
|
@@ -4,7 +4,7 @@ export declare class LandingStepsComponent {
|
|
|
4
4
|
private readonly props_;
|
|
5
5
|
set props(v: LandingStepsMetadata);
|
|
6
6
|
readonly p: import("@angular/core").Signal<LandingStepsMetadata>;
|
|
7
|
-
readonly cols: import("@angular/core").Signal<
|
|
7
|
+
readonly cols: import("@angular/core").Signal<2 | 3 | 4>;
|
|
8
8
|
readonly accentColor: import("@angular/core").Signal<string>;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<LandingStepsComponent, never>;
|
|
10
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<LandingStepsComponent, "val-landing-steps", never, { "props": { "alias": "props"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -83,6 +83,17 @@ export declare class ModalService {
|
|
|
83
83
|
* @returns Promise resolving to the modal result
|
|
84
84
|
*/
|
|
85
85
|
openFullscreen<T = any, R = any>(options: ModalMetadata<T>): Promise<ModalResult<R>>;
|
|
86
|
+
/**
|
|
87
|
+
* Opens an adaptive modal: full-screen on mobile, centered card on desktop.
|
|
88
|
+
*
|
|
89
|
+
* Solves two sheet-modal problems at once:
|
|
90
|
+
* 1. Content unreachable — no artificial height cap from breakpoints.
|
|
91
|
+
* 2. Scroll triggers dismiss — no swipe gesture, only backdrop/button close.
|
|
92
|
+
*
|
|
93
|
+
* @param options - Modal configuration (breakpoints/size/width/height are managed internally)
|
|
94
|
+
* @param variant - 'wide' for wider desktop card (720px vs default 560px)
|
|
95
|
+
*/
|
|
96
|
+
openAdaptive<T = any, R = any>(options: Omit<ModalMetadata<T>, 'breakpoints' | 'size' | 'width' | 'height'>, variant?: 'wide'): Promise<ModalResult<R>>;
|
|
86
97
|
/**
|
|
87
98
|
* Dismisses the top-most modal.
|
|
88
99
|
* @param data - Optional data to return
|
package/lib/version.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -273,6 +273,32 @@ ion-modal ion-content {
|
|
|
273
273
|
--overflow: hidden auto;
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
+
/* ─── Adaptive modal ──────────────────────────────────────────────────────────
|
|
277
|
+
* Mobile: full-screen (sin breakpoints → sin conflicto gesture/scroll).
|
|
278
|
+
* Desktop (≥768px): card centrada con border-radius.
|
|
279
|
+
*
|
|
280
|
+
* Usar via ModalService.openAdaptive() o cssClass="val-modal-adaptive".
|
|
281
|
+
* Variante .val-modal-adaptive--wide disponible para contenido más ancho.
|
|
282
|
+
* ─────────────────────────────────────────────────────────────────────────── */
|
|
283
|
+
ion-modal.val-modal-adaptive {
|
|
284
|
+
--border-radius: 0;
|
|
285
|
+
--width: 100%;
|
|
286
|
+
--height: 100%;
|
|
287
|
+
|
|
288
|
+
@media (min-width: 768px) {
|
|
289
|
+
--border-radius: 1.5rem;
|
|
290
|
+
--width: 560px;
|
|
291
|
+
--height: min(85vh, 800px);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
ion-modal.val-modal-adaptive.val-modal-adaptive--wide {
|
|
296
|
+
@media (min-width: 768px) {
|
|
297
|
+
--width: 720px;
|
|
298
|
+
--height: min(88vh, 900px);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
276
302
|
// Estilos para enlaces procesados automáticamente
|
|
277
303
|
.processed-link {
|
|
278
304
|
color: var(--ion-color-primary, #3880ff);
|