valtech-components 2.0.878 → 2.0.880

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.
@@ -10,13 +10,15 @@
10
10
  * transform="translate(col*100 row*100)">` con un `<rect width=100 height=100
11
11
  * fill=bg/>` de fondo.
12
12
  */
13
- export type PatternMotifKey = 'chev-r' | 'chev-l' | 'chev-d' | 'chev-u' | 'tri-tl' | 'tri-tr' | 'tri-bl' | 'tri-br' | 'solid' | 'diamond' | 'small-r' | 'small-l' | 'arrow-r' | 'arrow-l' | 'house-d' | 'half-l' | 'half-t' | 'circle' | 'circle-sm' | 'dot' | 'cross' | 'x-mark' | 'slash-r' | 'slash-l' | 'corner-tl' | 'corner-tr' | 'corner-bl' | 'corner-br';
13
+ export type PatternMotifKey = 'chev-r' | 'chev-l' | 'chev-d' | 'chev-u' | 'tri-tl' | 'tri-tr' | 'tri-bl' | 'tri-br' | 'solid' | 'diamond' | 'small-r' | 'small-l' | 'arrow-r' | 'arrow-l' | 'house-d' | 'half-l' | 'half-t' | 'circle' | 'circle-sm' | 'dot' | 'cross' | 'x-mark' | 'slash-r' | 'slash-l' | 'corner-tl' | 'corner-tr' | 'corner-bl' | 'corner-br' | 'underscore' | 'num-0' | 'num-1' | 'num-2' | 'num-3' | 'num-4' | 'num-5' | 'num-6' | 'num-7' | 'num-8' | 'num-9';
14
14
  export declare const PATTERN_MOTIFS: Record<PatternMotifKey, (fg: string) => string>;
15
15
  export declare const MOTIF_KEYS: PatternMotifKey[];
16
16
  /** Chevron family — orientaciones + variantes pequeñas. */
17
17
  export declare const CHEV_KEYS: PatternMotifKey[];
18
- /** Stroke family — líneas y cruces (complementan chevrons). */
18
+ /** Stroke family — líneas, cruces y el guión bajo del logo `>_`. */
19
19
  export declare const STROKE_KEYS: PatternMotifKey[];
20
+ /** Numeric family — dígitos 0-9 en monospace bold. */
21
+ export declare const NUM_KEYS: PatternMotifKey[];
20
22
  /** Circle / dot family — formas curvas centradas. */
21
23
  export declare const CIRCLE_KEYS: PatternMotifKey[];
22
24
  /** Diamond solo — forma geométrica angular centrada. */
@@ -28,7 +30,7 @@ export declare const CORNER_KEYS: PatternMotifKey[];
28
30
  /** No-foreground tiles — solo rect de fondo. */
29
31
  export declare const SOLID_KEYS: PatternMotifKey[];
30
32
  /** Built-in palettes — 8 colores dark → light. */
31
- 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';
32
34
  export declare const PATTERN_PALETTES: Record<PatternPaletteKey, string[]>;
33
35
  /**
34
36
  * Preset de composición del patrón. Controla qué familias predominan.
@@ -37,12 +39,13 @@ export declare const PATTERN_PALETTES: Record<PatternPaletteKey, string[]>;
37
39
  * - `geometric` → Triángulos, esquinas y círculos. Más arquitectónico.
38
40
  * - `minimal` → Espacios sólidos con trazos sutiles. Limpio, corporativo.
39
41
  * - `dense` → Mezcla rica de todas las familias. Máxima textura.
42
+ * - `code` → Números, underscore y chevrons. Look de terminal.
40
43
  */
41
- export type PatternStyleKey = 'branded' | 'geometric' | 'minimal' | 'dense';
44
+ export type PatternStyleKey = 'branded' | 'geometric' | 'minimal' | 'dense' | 'code';
42
45
  export interface PatternDensityConfig {
43
46
  /** Probabilidad de chevron family. */
44
47
  chev: number;
45
- /** Probabilidad de stroke family (cross, x, slash). */
48
+ /** Probabilidad de stroke family (cross, x, slash, underscore). */
46
49
  stroke: number;
47
50
  /** Probabilidad de círculos. */
48
51
  circle: number;
@@ -50,6 +53,8 @@ export interface PatternDensityConfig {
50
53
  shape: number;
51
54
  /** Probabilidad de solid (espacio vacío). */
52
55
  solid: number;
56
+ /** Probabilidad de numeric family (0-9). Default: 0. */
57
+ num?: number;
53
58
  }
54
59
  export declare const PATTERN_STYLE_CONFIGS: Record<PatternStyleKey, PatternDensityConfig>;
55
60
  /**
@@ -64,11 +69,14 @@ export interface PatternGenConfig {
64
69
  palette: string[];
65
70
  chevronDensity?: number;
66
71
  style?: PatternStyleKey;
72
+ /** Si true, cada tile recibe una rotación aleatoria [0/90/180/270°]. */
73
+ tileRotation?: boolean;
67
74
  }
68
75
  export interface PatternTile {
69
76
  motif: PatternMotifKey;
70
77
  bg: string;
71
78
  fg: string;
79
+ rot?: 0 | 90 | 180 | 270;
72
80
  }
73
81
  /**
74
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[];
@@ -35,6 +36,7 @@ export interface PatternMetadata {
35
36
  * - `geometric` → Triángulos, esquinas redondeadas y círculos.
36
37
  * - `minimal` → Mayoría sólido con trazos sutiles. Look corporativo limpio.
37
38
  * - `dense` → Mezcla rica de todas las familias. Máxima textura.
39
+ * - `code` → Números, underscore `_` y chevrons. Look de terminal/código.
38
40
  *
39
41
  * Cuando se usa `style`, sobreescribe `chevronDensity`.
40
42
  */
@@ -76,4 +78,10 @@ export interface PatternMetadata {
76
78
  * `meet` — fit completo sin crop.
77
79
  */
78
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;
79
87
  }
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.878";
5
+ export declare const VERSION = "2.0.880";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "2.0.878",
3
+ "version": "2.0.880",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"