valtech-components 2.0.879 → 2.0.881

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.
@@ -30,7 +30,7 @@ export declare const CORNER_KEYS: PatternMotifKey[];
30
30
  /** No-foreground tiles — solo rect de fondo. */
31
31
  export declare const SOLID_KEYS: PatternMotifKey[];
32
32
  /** Built-in palettes — 8 colores dark → light. */
33
- export type PatternPaletteKey = 'purple' | 'ink' | 'lavender' | 'midnight' | 'ember' | 'forest' | 'rose' | 'gold' | 'mono';
33
+ export type PatternPaletteKey = 'purple' | 'ink' | 'lavender' | 'midnight' | 'ember' | 'forest' | 'rose' | 'gold' | 'mono' | 'teal' | 'ocean' | 'violet' | 'dusk' | 'slate';
34
34
  export declare const PATTERN_PALETTES: Record<PatternPaletteKey, string[]>;
35
35
  /**
36
36
  * Preset de composición del patrón. Controla qué familias predominan.
@@ -69,11 +69,14 @@ export interface PatternGenConfig {
69
69
  palette: string[];
70
70
  chevronDensity?: number;
71
71
  style?: PatternStyleKey;
72
+ /** Si true, cada tile recibe una rotación aleatoria [0/90/180/270°]. */
73
+ tileRotation?: boolean;
72
74
  }
73
75
  export interface PatternTile {
74
76
  motif: PatternMotifKey;
75
77
  bg: string;
76
78
  fg: string;
79
+ rot?: 0 | 90 | 180 | 270;
77
80
  }
78
81
  /**
79
82
  * Genera UN tile respetando densidades de familia + contraste de palette.
@@ -42,6 +42,7 @@ export declare class PatternComponent implements OnDestroy {
42
42
  private readonly animated;
43
43
  private readonly reshuffleInterval;
44
44
  private readonly tilesPerTick;
45
+ private readonly tileRotation;
45
46
  private timer?;
46
47
  set props(value: PatternMetadata | undefined);
47
48
  /**
@@ -25,7 +25,8 @@ import { PatternPaletteKey, PatternStyleKey } from './motifs';
25
25
  export interface PatternMetadata {
26
26
  /**
27
27
  * Palette built-in o array custom de 8 colores dark → light.
28
- * Built-ins: `'purple' | 'ink' | 'lavender' | 'midnight' | 'ember' | 'forest' | 'rose' | 'gold' | 'mono'`.
28
+ * Built-ins: `'purple' | 'ink' | 'lavender' | 'midnight' | 'ember' | 'forest' | 'rose' | 'gold' | 'mono'
29
+ * | 'teal' | 'ocean' | 'violet' | 'dusk' | 'slate'`.
29
30
  * Default: `'purple'`.
30
31
  */
31
32
  palette?: PatternPaletteKey | string[];
@@ -77,4 +78,10 @@ export interface PatternMetadata {
77
78
  * `meet` — fit completo sin crop.
78
79
  */
79
80
  preserveAspect?: 'slice' | 'meet';
81
+ /**
82
+ * Si `true`, cada tile recibe una rotación aleatoria de 0/90/180/270°.
83
+ * Multiplica la variedad visual sin añadir nuevos motifs.
84
+ * Útil con `style: 'geometric'` o `'dense'`. Default: `false`.
85
+ */
86
+ tileRotation?: boolean;
80
87
  }
@@ -0,0 +1,24 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { ValtechAuthConfig } from '../auth/types';
4
+ import { Organization, CreateOrgRequest, UpdateOrgRequest, InviteUserRequest, InviteUserResponse, LeaveOrgResponse } from './types';
5
+ import * as i0 from "@angular/core";
6
+ export declare class OrgService {
7
+ private config;
8
+ private http;
9
+ constructor(config: ValtechAuthConfig, http: HttpClient);
10
+ private get baseUrl();
11
+ listMyOrgs(): Observable<Organization[]>;
12
+ getOrg(orgId: string): Observable<Organization>;
13
+ createOrg(req: CreateOrgRequest): Observable<Organization>;
14
+ updateOrg(orgId: string, req: UpdateOrgRequest): Observable<Organization>;
15
+ deleteOrg(orgId: string): Observable<{
16
+ deleted: boolean;
17
+ message: string;
18
+ }>;
19
+ inviteUser(orgId: string, req: InviteUserRequest): Observable<InviteUserResponse>;
20
+ leaveOrg(orgId: string): Observable<LeaveOrgResponse>;
21
+ transferOwnership(orgId: string, newOwnerId: string): Observable<Organization>;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<OrgService, never>;
23
+ static ɵprov: i0.ɵɵInjectableDeclaration<OrgService>;
24
+ }
@@ -0,0 +1,47 @@
1
+ export type OrgType = 'PRIVATE' | 'PUBLIC' | 'PERSONAL' | 'BUSINESS';
2
+ export type OrgPlan = 'free' | 'pro' | 'enterprise';
3
+ export interface Organization {
4
+ id: string;
5
+ name: string;
6
+ description?: string;
7
+ type: OrgType;
8
+ plan: OrgPlan;
9
+ ownerId: string;
10
+ isActive: boolean;
11
+ createdAt: string;
12
+ updatedAt?: string;
13
+ }
14
+ export interface ListMyOrgsResponse {
15
+ operationId: string;
16
+ organizations: Organization[];
17
+ nextToken?: string;
18
+ count: number;
19
+ }
20
+ export interface OrgResponse {
21
+ operationId: string;
22
+ organization: Organization;
23
+ }
24
+ export interface CreateOrgRequest {
25
+ name: string;
26
+ type: OrgType;
27
+ description?: string;
28
+ }
29
+ export interface UpdateOrgRequest {
30
+ name?: string;
31
+ description?: string;
32
+ }
33
+ export interface InviteUserRequest {
34
+ email: string;
35
+ roleId: string;
36
+ }
37
+ export interface InviteUserResponse {
38
+ operationId: string;
39
+ inviteUrl: string;
40
+ expiresAt: string;
41
+ email: string;
42
+ }
43
+ export interface LeaveOrgResponse {
44
+ operationId: string;
45
+ message: string;
46
+ leftAt: string;
47
+ }
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.879";
5
+ export declare const VERSION = "2.0.881";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.879",
3
+ "version": "2.0.881",
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
@@ -281,6 +281,8 @@ export * from './lib/services/markdown-article/legal-content.service';
281
281
  export * from './lib/services/legal-link/legal-link.service';
282
282
  export * from './lib/services/firebase';
283
283
  export * from './lib/services/auth';
284
+ export { OrgService } from './lib/services/org/org.service';
285
+ export type { Organization, OrgType, OrgPlan, CreateOrgRequest, UpdateOrgRequest, InviteUserRequest, InviteUserResponse, LeaveOrgResponse, ListMyOrgsResponse, OrgResponse, } from './lib/services/org/types';
284
286
  export * from './lib/services/i18n';
285
287
  export * from './lib/services/preferences';
286
288
  export * from './lib/services/network-status';