valtech-components 2.0.1008 → 2.0.1009
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/account-view/account-view.component.mjs +2 -2
- package/esm2022/lib/components/templates/auth-background/auth-background.component.mjs +39 -9
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +40 -10
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/templates/auth-background/auth-background.component.d.ts +4 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -54,7 +54,7 @@ import 'prismjs/components/prism-json';
|
|
|
54
54
|
* Current version of valtech-components.
|
|
55
55
|
* This is automatically updated during the publish process.
|
|
56
56
|
*/
|
|
57
|
-
const VERSION = '2.0.
|
|
57
|
+
const VERSION = '2.0.1009';
|
|
58
58
|
|
|
59
59
|
// Control de estado de refresco (singleton a nivel de módulo)
|
|
60
60
|
let isRefreshing = false;
|
|
@@ -46700,7 +46700,7 @@ class AccountViewComponent {
|
|
|
46700
46700
|
{
|
|
46701
46701
|
text: this.tt('orgsNewCta'),
|
|
46702
46702
|
color: 'primary',
|
|
46703
|
-
fill: '
|
|
46703
|
+
fill: 'solid',
|
|
46704
46704
|
shape: 'round',
|
|
46705
46705
|
size: 'default',
|
|
46706
46706
|
type: 'button',
|
|
@@ -54033,7 +54033,7 @@ class AuthBackgroundComponent {
|
|
|
54033
54033
|
this.config = computed(() => {
|
|
54034
54034
|
const props = this._props();
|
|
54035
54035
|
return {
|
|
54036
|
-
waveCount: props.waveCount ??
|
|
54036
|
+
waveCount: props.waveCount ?? 16,
|
|
54037
54037
|
waveColors: props.waveColors ?? this.defaultColors,
|
|
54038
54038
|
showGrain: props.showGrain !== false,
|
|
54039
54039
|
showGlass: props.showGlass !== false,
|
|
@@ -54050,9 +54050,13 @@ class AuthBackgroundComponent {
|
|
|
54050
54050
|
const newWaves = Array.from({ length: count }, (_, i) => {
|
|
54051
54051
|
// Distribuir uniforme a lo largo del viewBox (0..800) — sin huecos arriba
|
|
54052
54052
|
const y = ((i + 0.5) / count) * 800;
|
|
54053
|
-
|
|
54054
|
-
|
|
54055
|
-
const
|
|
54053
|
+
// Tiers (look "aurora"): pocas hero gruesas y luminosas, algunas mid, el
|
|
54054
|
+
// resto tenues de fondo. Acentos de marca en las hero + alguna suelta.
|
|
54055
|
+
const isHero = i % 5 === 0;
|
|
54056
|
+
const isMedium = !isHero && i % 2 === 0;
|
|
54057
|
+
const accent = isHero || i % 7 === 3;
|
|
54058
|
+
// Hero más amplias para cintas que "respiran"; el resto, contenidas.
|
|
54059
|
+
const amplitude = isHero ? 22 + Math.random() * 18 : 10 + Math.random() * 16;
|
|
54056
54060
|
// Frecuencia ENTERA (ciclos completos sobre el ancho 1440). Imprescindible
|
|
54057
54061
|
// para el loop seamless: con freq entero, path(x) === path(x ± 1440), así
|
|
54058
54062
|
// el translateX de una vuelta (1440px) calza exacto y NO hay salto/corte.
|
|
@@ -54070,8 +54074,10 @@ class AuthBackgroundComponent {
|
|
|
54070
54074
|
id: i,
|
|
54071
54075
|
path,
|
|
54072
54076
|
color,
|
|
54073
|
-
thickness:
|
|
54074
|
-
opacity:
|
|
54077
|
+
thickness: isHero ? 2.2 + Math.random() * 0.8 : isMedium ? 1 : 0.5,
|
|
54078
|
+
opacity: isHero ? 0.55 : isMedium ? 0.3 : 0.16,
|
|
54079
|
+
glow: isHero,
|
|
54080
|
+
accent,
|
|
54075
54081
|
// Drift vertical sutil (no "equalizer"): da vida sin saltos.
|
|
54076
54082
|
bob: 4 + Math.random() * 10,
|
|
54077
54083
|
// Flujo horizontal continuo. Duraciones variadas = parallax/profundidad.
|
|
@@ -54094,6 +54100,16 @@ class AuthBackgroundComponent {
|
|
|
54094
54100
|
}
|
|
54095
54101
|
<div class="wave-bg">
|
|
54096
54102
|
<svg class="waves" viewBox="0 0 1440 800" preserveAspectRatio="none">
|
|
54103
|
+
<defs>
|
|
54104
|
+
<!-- Halo: blur por debajo del trazo nítido = cinta luminosa. -->
|
|
54105
|
+
<filter id="wave-glow" x="-10%" y="-60%" width="120%" height="220%">
|
|
54106
|
+
<feGaussianBlur stdDeviation="2.6" result="b" />
|
|
54107
|
+
<feMerge>
|
|
54108
|
+
<feMergeNode in="b" />
|
|
54109
|
+
<feMergeNode in="SourceGraphic" />
|
|
54110
|
+
</feMerge>
|
|
54111
|
+
</filter>
|
|
54112
|
+
</defs>
|
|
54097
54113
|
@for (wave of waves(); track wave.id) {
|
|
54098
54114
|
<path
|
|
54099
54115
|
[attr.d]="wave.path"
|
|
@@ -54101,6 +54117,8 @@ class AuthBackgroundComponent {
|
|
|
54101
54117
|
[attr.stroke-width]="wave.thickness"
|
|
54102
54118
|
[class.travel-left]="wave.travelDirection === 'left'"
|
|
54103
54119
|
[class.travel-right]="wave.travelDirection === 'right'"
|
|
54120
|
+
[class.glow]="wave.glow"
|
|
54121
|
+
[class.accent]="wave.accent"
|
|
54104
54122
|
[style.opacity]="wave.opacity"
|
|
54105
54123
|
[style.--bob]="wave.bob + 'px'"
|
|
54106
54124
|
[style.--travel-duration]="wave.travelDuration + 's'"
|
|
@@ -54114,7 +54132,7 @@ class AuthBackgroundComponent {
|
|
|
54114
54132
|
<ng-content></ng-content>
|
|
54115
54133
|
</div>
|
|
54116
54134
|
</section>
|
|
54117
|
-
`, isInline: true, styles: [":host{display:block;--auth-bg-start: #ffffff;--auth-bg-mid: #f8f9fa;--auth-bg-end: #f0f0f0;--auth-glass-bg: rgba(255, 255, 255, .3);--auth-grain-opacity: .035;--auth-wave-color: var(--ion-color-primary, #6366f1)}:host-context(body.dark),:host-context(.dark),:host-context(.ion-palette-dark),:host-context(html.ion-palette-dark),:host-context([data-theme=\"dark\"]){--auth-bg-start: #0f0f1a;--auth-bg-mid: #1a1a2e;--auth-bg-end: #16213e;--auth-glass-bg: rgba(0, 0, 0, .3);--auth-grain-opacity: .05;--auth-wave-color: var(--ion-color-primary, #818cf8)}.auth-background{position:relative;display:flex;align-items:center;padding:0;background:linear-gradient(135deg,var(--auth-bg-start) 0%,var(--auth-bg-mid) 50%,var(--auth-bg-end) 100%);overflow:hidden}.grain{position:absolute;inset:0;pointer-events:none;z-index:0;opacity:var(--auth-grain-opacity);background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E\")}.glass-layer{position:absolute;inset:0;pointer-events:none;z-index:1;background:var(--auth-glass-bg);backdrop-filter:blur(3px) saturate(120%);-webkit-backdrop-filter:blur(3px) saturate(120%)}.wave-bg{position:absolute;inset:0;pointer-events:none;z-index:0;transition:filter .3s ease}:host-context(body.dark) .wave-bg,:host-context(.dark) .wave-bg,:host-context(.ion-palette-dark) .wave-bg,:host-context(html.ion-palette-dark) .wave-bg,:host-context([data-theme=\"dark\"]) .wave-bg{filter:invert(1) opacity(.6)}.waves{width:100%;height:100%;overflow:visible}.waves path{fill:none;will-change:transform;animation:wave-flow-right var(--travel-duration, 18s) linear var(--travel-delay, 0s) infinite}.waves path.travel-left{animation:wave-flow-left var(--travel-duration, 18s) linear var(--travel-delay, 0s) infinite}@keyframes wave-flow-right{0%{transform:translate(0)}25%{transform:translate(-360px,calc(var(--bob, 0px) * -1))}50%{transform:translate(-720px)}75%{transform:translate(-1080px,var(--bob, 0px))}to{transform:translate(-1440px)}}@keyframes wave-flow-left{0%{transform:translate(0)}25%{transform:translate(360px,var(--bob, 0px))}50%{transform:translate(720px)}75%{transform:translate(1080px,calc(var(--bob, 0px) * -1))}to{transform:translate(1440px)}}@media (prefers-reduced-motion: reduce){.waves path{animation:none}}.content-layer{position:relative;z-index:2;width:100%;height:100%;display:flex;align-items:center}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
54135
|
+
`, isInline: true, styles: [":host{display:block;--auth-bg-start: #ffffff;--auth-bg-mid: #f8f9fa;--auth-bg-end: #f0f0f0;--auth-glass-bg: rgba(255, 255, 255, .3);--auth-grain-opacity: .035;--auth-wave-color: var(--ion-color-primary, #6366f1)}:host-context(body.dark),:host-context(.dark),:host-context(.ion-palette-dark),:host-context(html.ion-palette-dark),:host-context([data-theme=\"dark\"]){--auth-bg-start: #0f0f1a;--auth-bg-mid: #1a1a2e;--auth-bg-end: #16213e;--auth-glass-bg: rgba(0, 0, 0, .3);--auth-grain-opacity: .05;--auth-wave-color: var(--ion-color-primary, #818cf8)}.auth-background{position:relative;display:flex;align-items:center;padding:0;background:linear-gradient(135deg,var(--auth-bg-start) 0%,var(--auth-bg-mid) 50%,var(--auth-bg-end) 100%);overflow:hidden}.grain{position:absolute;inset:0;pointer-events:none;z-index:0;opacity:var(--auth-grain-opacity);background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E\")}.glass-layer{position:absolute;inset:0;pointer-events:none;z-index:1;background:var(--auth-glass-bg);backdrop-filter:blur(3px) saturate(120%);-webkit-backdrop-filter:blur(3px) saturate(120%)}.wave-bg{position:absolute;inset:0;pointer-events:none;z-index:0;transition:filter .3s ease}:host-context(body.dark) .wave-bg,:host-context(.dark) .wave-bg,:host-context(.ion-palette-dark) .wave-bg,:host-context(html.ion-palette-dark) .wave-bg,:host-context([data-theme=\"dark\"]) .wave-bg{filter:invert(1) opacity(.6)}.waves{width:100%;height:100%;overflow:visible;-webkit-mask-image:linear-gradient(to right,transparent 0%,#000 16%,#000 84%,transparent 100%);mask-image:linear-gradient(to right,transparent 0%,#000 16%,#000 84%,transparent 100%)}.waves path{fill:none;stroke-linecap:round;will-change:transform;animation:wave-flow-right var(--travel-duration, 18s) linear var(--travel-delay, 0s) infinite}.waves path.travel-left{animation:wave-flow-left var(--travel-duration, 18s) linear var(--travel-delay, 0s) infinite}.waves path.accent{stroke:var(--auth-wave-color)}.waves path.glow{filter:url(#wave-glow)}@keyframes wave-flow-right{0%{transform:translate(0)}25%{transform:translate(-360px,calc(var(--bob, 0px) * -1))}50%{transform:translate(-720px)}75%{transform:translate(-1080px,var(--bob, 0px))}to{transform:translate(-1440px)}}@keyframes wave-flow-left{0%{transform:translate(0)}25%{transform:translate(360px,var(--bob, 0px))}50%{transform:translate(720px)}75%{transform:translate(1080px,calc(var(--bob, 0px) * -1))}to{transform:translate(1440px)}}@media (prefers-reduced-motion: reduce){.waves path{animation:none}}.content-layer{position:relative;z-index:2;width:100%;height:100%;display:flex;align-items:center}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
54118
54136
|
}
|
|
54119
54137
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AuthBackgroundComponent, decorators: [{
|
|
54120
54138
|
type: Component,
|
|
@@ -54128,6 +54146,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
54128
54146
|
}
|
|
54129
54147
|
<div class="wave-bg">
|
|
54130
54148
|
<svg class="waves" viewBox="0 0 1440 800" preserveAspectRatio="none">
|
|
54149
|
+
<defs>
|
|
54150
|
+
<!-- Halo: blur por debajo del trazo nítido = cinta luminosa. -->
|
|
54151
|
+
<filter id="wave-glow" x="-10%" y="-60%" width="120%" height="220%">
|
|
54152
|
+
<feGaussianBlur stdDeviation="2.6" result="b" />
|
|
54153
|
+
<feMerge>
|
|
54154
|
+
<feMergeNode in="b" />
|
|
54155
|
+
<feMergeNode in="SourceGraphic" />
|
|
54156
|
+
</feMerge>
|
|
54157
|
+
</filter>
|
|
54158
|
+
</defs>
|
|
54131
54159
|
@for (wave of waves(); track wave.id) {
|
|
54132
54160
|
<path
|
|
54133
54161
|
[attr.d]="wave.path"
|
|
@@ -54135,6 +54163,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
54135
54163
|
[attr.stroke-width]="wave.thickness"
|
|
54136
54164
|
[class.travel-left]="wave.travelDirection === 'left'"
|
|
54137
54165
|
[class.travel-right]="wave.travelDirection === 'right'"
|
|
54166
|
+
[class.glow]="wave.glow"
|
|
54167
|
+
[class.accent]="wave.accent"
|
|
54138
54168
|
[style.opacity]="wave.opacity"
|
|
54139
54169
|
[style.--bob]="wave.bob + 'px'"
|
|
54140
54170
|
[style.--travel-duration]="wave.travelDuration + 's'"
|
|
@@ -54148,7 +54178,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
54148
54178
|
<ng-content></ng-content>
|
|
54149
54179
|
</div>
|
|
54150
54180
|
</section>
|
|
54151
|
-
`, styles: [":host{display:block;--auth-bg-start: #ffffff;--auth-bg-mid: #f8f9fa;--auth-bg-end: #f0f0f0;--auth-glass-bg: rgba(255, 255, 255, .3);--auth-grain-opacity: .035;--auth-wave-color: var(--ion-color-primary, #6366f1)}:host-context(body.dark),:host-context(.dark),:host-context(.ion-palette-dark),:host-context(html.ion-palette-dark),:host-context([data-theme=\"dark\"]){--auth-bg-start: #0f0f1a;--auth-bg-mid: #1a1a2e;--auth-bg-end: #16213e;--auth-glass-bg: rgba(0, 0, 0, .3);--auth-grain-opacity: .05;--auth-wave-color: var(--ion-color-primary, #818cf8)}.auth-background{position:relative;display:flex;align-items:center;padding:0;background:linear-gradient(135deg,var(--auth-bg-start) 0%,var(--auth-bg-mid) 50%,var(--auth-bg-end) 100%);overflow:hidden}.grain{position:absolute;inset:0;pointer-events:none;z-index:0;opacity:var(--auth-grain-opacity);background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E\")}.glass-layer{position:absolute;inset:0;pointer-events:none;z-index:1;background:var(--auth-glass-bg);backdrop-filter:blur(3px) saturate(120%);-webkit-backdrop-filter:blur(3px) saturate(120%)}.wave-bg{position:absolute;inset:0;pointer-events:none;z-index:0;transition:filter .3s ease}:host-context(body.dark) .wave-bg,:host-context(.dark) .wave-bg,:host-context(.ion-palette-dark) .wave-bg,:host-context(html.ion-palette-dark) .wave-bg,:host-context([data-theme=\"dark\"]) .wave-bg{filter:invert(1) opacity(.6)}.waves{width:100%;height:100%;overflow:visible}.waves path{fill:none;will-change:transform;animation:wave-flow-right var(--travel-duration, 18s) linear var(--travel-delay, 0s) infinite}.waves path.travel-left{animation:wave-flow-left var(--travel-duration, 18s) linear var(--travel-delay, 0s) infinite}@keyframes wave-flow-right{0%{transform:translate(0)}25%{transform:translate(-360px,calc(var(--bob, 0px) * -1))}50%{transform:translate(-720px)}75%{transform:translate(-1080px,var(--bob, 0px))}to{transform:translate(-1440px)}}@keyframes wave-flow-left{0%{transform:translate(0)}25%{transform:translate(360px,var(--bob, 0px))}50%{transform:translate(720px)}75%{transform:translate(1080px,calc(var(--bob, 0px) * -1))}to{transform:translate(1440px)}}@media (prefers-reduced-motion: reduce){.waves path{animation:none}}.content-layer{position:relative;z-index:2;width:100%;height:100%;display:flex;align-items:center}\n"] }]
|
|
54181
|
+
`, styles: [":host{display:block;--auth-bg-start: #ffffff;--auth-bg-mid: #f8f9fa;--auth-bg-end: #f0f0f0;--auth-glass-bg: rgba(255, 255, 255, .3);--auth-grain-opacity: .035;--auth-wave-color: var(--ion-color-primary, #6366f1)}:host-context(body.dark),:host-context(.dark),:host-context(.ion-palette-dark),:host-context(html.ion-palette-dark),:host-context([data-theme=\"dark\"]){--auth-bg-start: #0f0f1a;--auth-bg-mid: #1a1a2e;--auth-bg-end: #16213e;--auth-glass-bg: rgba(0, 0, 0, .3);--auth-grain-opacity: .05;--auth-wave-color: var(--ion-color-primary, #818cf8)}.auth-background{position:relative;display:flex;align-items:center;padding:0;background:linear-gradient(135deg,var(--auth-bg-start) 0%,var(--auth-bg-mid) 50%,var(--auth-bg-end) 100%);overflow:hidden}.grain{position:absolute;inset:0;pointer-events:none;z-index:0;opacity:var(--auth-grain-opacity);background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E\")}.glass-layer{position:absolute;inset:0;pointer-events:none;z-index:1;background:var(--auth-glass-bg);backdrop-filter:blur(3px) saturate(120%);-webkit-backdrop-filter:blur(3px) saturate(120%)}.wave-bg{position:absolute;inset:0;pointer-events:none;z-index:0;transition:filter .3s ease}:host-context(body.dark) .wave-bg,:host-context(.dark) .wave-bg,:host-context(.ion-palette-dark) .wave-bg,:host-context(html.ion-palette-dark) .wave-bg,:host-context([data-theme=\"dark\"]) .wave-bg{filter:invert(1) opacity(.6)}.waves{width:100%;height:100%;overflow:visible;-webkit-mask-image:linear-gradient(to right,transparent 0%,#000 16%,#000 84%,transparent 100%);mask-image:linear-gradient(to right,transparent 0%,#000 16%,#000 84%,transparent 100%)}.waves path{fill:none;stroke-linecap:round;will-change:transform;animation:wave-flow-right var(--travel-duration, 18s) linear var(--travel-delay, 0s) infinite}.waves path.travel-left{animation:wave-flow-left var(--travel-duration, 18s) linear var(--travel-delay, 0s) infinite}.waves path.accent{stroke:var(--auth-wave-color)}.waves path.glow{filter:url(#wave-glow)}@keyframes wave-flow-right{0%{transform:translate(0)}25%{transform:translate(-360px,calc(var(--bob, 0px) * -1))}50%{transform:translate(-720px)}75%{transform:translate(-1080px,var(--bob, 0px))}to{transform:translate(-1440px)}}@keyframes wave-flow-left{0%{transform:translate(0)}25%{transform:translate(360px,var(--bob, 0px))}50%{transform:translate(720px)}75%{transform:translate(1080px,calc(var(--bob, 0px) * -1))}to{transform:translate(1440px)}}@media (prefers-reduced-motion: reduce){.waves path{animation:none}}.content-layer{position:relative;z-index:2;width:100%;height:100%;display:flex;align-items:center}\n"] }]
|
|
54152
54182
|
}], ctorParameters: () => [], propDecorators: { props: [{
|
|
54153
54183
|
type: Input
|
|
54154
54184
|
}] } });
|