valtech-components 2.0.1012 → 2.0.1014

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.
@@ -1,4 +1,5 @@
1
1
  import { OnInit } from '@angular/core';
2
+ import { FormMetadata, FormSubmit } from '../../types';
2
3
  import { ClientApiKey, ClientApiKeyWithSecret } from '../../../services/apikeys/types';
3
4
  import * as i0 from "@angular/core";
4
5
  /**
@@ -25,15 +26,17 @@ export declare class ApiKeysModalComponent implements OnInit {
25
26
  readonly errorMsg: import("@angular/core").WritableSignal<string>;
26
27
  readonly secret: import("@angular/core").WritableSignal<ClientApiKeyWithSecret>;
27
28
  readonly copied: import("@angular/core").WritableSignal<boolean>;
28
- name: string;
29
- expiresInDays: number | null;
30
- readonly selectedPerms: import("@angular/core").WritableSignal<Set<string>>;
29
+ /**
30
+ * FormMetadata del form de crear key (val-form). Reactivo a idioma + permisos
31
+ * disponibles + estado submitting. Reemplaza los ion-input/ion-checkbox crudos
32
+ * por val-form (consistencia con el resto de modales del factory).
33
+ */
34
+ readonly createForm: import("@angular/core").Signal<FormMetadata>;
31
35
  constructor();
32
36
  ngOnInit(): void;
33
37
  private refresh;
34
38
  openCreate(): void;
35
- togglePerm(perm: string, ev: Event): void;
36
- submit(): void;
39
+ onCreateSubmit(event: FormSubmit): void;
37
40
  revoke(key: ClientApiKey): void;
38
41
  copy(secret: string): Promise<void>;
39
42
  finishSecret(): void;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Links canónicos del submenú "Preferencias" del side-menu del factory.
3
+ *
4
+ * Misma fuente de verdad que las cards del HUB (`val-settings-hub`): TODAS las
5
+ * apps del factory consumen esta lista en su menú lateral para que el submenú de
6
+ * preferencias sea IDÉNTICO entre apps (showcase, bingo, …) y consistente con el
7
+ * hub. Lo único app-specific son las labels (i18n namespace `Menu`, que cada app
8
+ * registra) — la estructura/rutas vienen de la lib.
9
+ *
10
+ * No incluye `about` (es un ítem top-level del menú, no del submenú), ni `logout`
11
+ * (no es link), ni `preferences` (es el hub mismo). Sí incluye `general` (= la
12
+ * vista de preferencias UI), account, profile, notifications, security y
13
+ * organization (sección core, ver settings-sections.ts).
14
+ */
15
+ export interface SettingsMenuLink {
16
+ /** i18n key de la label (namespace `Menu` de la app). */
17
+ textKey: string;
18
+ /** Ruta de navegación (bajo el shell `/app`). */
19
+ route: string[];
20
+ }
21
+ export declare const VALTECH_SETTINGS_MENU_LINKS: SettingsMenuLink[];
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 = "2.0.1012";
5
+ export declare const VERSION = "2.0.1014";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.1012",
3
+ "version": "2.0.1014",
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
@@ -271,6 +271,7 @@ export * from './lib/components/organisms/preferences-view/preferences.routes';
271
271
  export * from './lib/components/organisms/settings-hub/settings-hub.component';
272
272
  export * from './lib/components/organisms/settings-hub/types';
273
273
  export * from './lib/components/organisms/settings-hub/settings-sections';
274
+ export * from './lib/components/organisms/settings-hub/settings-menu';
274
275
  export * from './lib/components/organisms/settings-hub/settings.routes';
275
276
  export * from './lib/components/organisms/security-view/security-view.component';
276
277
  export * from './lib/components/organisms/security-view/types';
@@ -6,6 +6,16 @@
6
6
 
7
7
  /** core **/
8
8
 
9
+ /* Evita que Safari/Chrome móvil auto-inflen el texto en páginas con cierto
10
+ * layout (síntoma: el label del val-bottom-nav se veía más grande en home que en
11
+ * otras vistas). Los font-size en rem son root-relative; el text-size-adjust del
12
+ * navegador los escalaba por página. Fijarlo en 100% lo hace consistente en TODA
13
+ * app que consuma estos overrides. */
14
+ html {
15
+ -webkit-text-size-adjust: 100%;
16
+ text-size-adjust: 100%;
17
+ }
18
+
9
19
  h1,
10
20
  h2,
11
21
  h3,