@magmonium/one 0.0.3
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/README.md +7 -0
- package/fesm2022/magmonium-one-magmonium-one-Bc6ZjJKk.mjs +29631 -0
- package/fesm2022/magmonium-one-magmonium-one-Bc6ZjJKk.mjs.map +1 -0
- package/fesm2022/magmonium-one-otp-D-gA4qT1.mjs +171 -0
- package/fesm2022/magmonium-one-otp-D-gA4qT1.mjs.map +1 -0
- package/fesm2022/magmonium-one-password-BOsM6-nh.mjs +87 -0
- package/fesm2022/magmonium-one-password-BOsM6-nh.mjs.map +1 -0
- package/fesm2022/magmonium-one-toggle-DVSWH4qB.mjs +62 -0
- package/fesm2022/magmonium-one-toggle-DVSWH4qB.mjs.map +1 -0
- package/fesm2022/magmonium-one.mjs +2 -0
- package/fesm2022/magmonium-one.mjs.map +1 -0
- package/package.json +43 -0
- package/types/magmonium-one.d.ts +6902 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { signal, viewChildren, computed, effect, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { a as BaseTextInputComponent, L as LabelComponent, E as ErrorsComponent } from './magmonium-one-magmonium-one-Bc6ZjJKk.mjs';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
|
|
6
|
+
class OtpInputComponent extends BaseTextInputComponent {
|
|
7
|
+
otpValues = signal([], ...(ngDevMode ? [{ debugName: "otpValues" }] : /* istanbul ignore next */ []));
|
|
8
|
+
otpInputs = viewChildren('otpInput', ...(ngDevMode ? [{ debugName: "otpInputs" }] : /* istanbul ignore next */ []));
|
|
9
|
+
otpConfig = computed(() => this.config(), ...(ngDevMode ? [{ debugName: "otpConfig" }] : /* istanbul ignore next */ []));
|
|
10
|
+
otpArray = computed(() => {
|
|
11
|
+
const length = this.otpConfig()?.length || 6;
|
|
12
|
+
return Array(length).fill(0);
|
|
13
|
+
}, ...(ngDevMode ? [{ debugName: "otpArray" }] : /* istanbul ignore next */ []));
|
|
14
|
+
constructor() {
|
|
15
|
+
super();
|
|
16
|
+
effect(() => {
|
|
17
|
+
const length = this.otpConfig()?.length || 6;
|
|
18
|
+
this.otpValues.set(Array(length).fill(''));
|
|
19
|
+
});
|
|
20
|
+
effect(() => {
|
|
21
|
+
const inputs = this.otpInputs();
|
|
22
|
+
if (inputs.length > 0) {
|
|
23
|
+
setTimeout(() => {
|
|
24
|
+
inputs[0].nativeElement.focus();
|
|
25
|
+
}, 0);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
onInput(event, index) {
|
|
30
|
+
const input = event.target;
|
|
31
|
+
let value = input.value;
|
|
32
|
+
value = value.replace(/[^a-zA-Z0-9]/g, '');
|
|
33
|
+
if (value.length > 1) {
|
|
34
|
+
value = value.slice(-1);
|
|
35
|
+
}
|
|
36
|
+
input.value = value.toUpperCase();
|
|
37
|
+
const newValues = [...this.otpValues()];
|
|
38
|
+
newValues[index] = value.toUpperCase();
|
|
39
|
+
this.otpValues.set(newValues);
|
|
40
|
+
const length = this.otpConfig()?.length || 6;
|
|
41
|
+
if (value && index < length - 1) {
|
|
42
|
+
this.focusInput(index + 1);
|
|
43
|
+
}
|
|
44
|
+
this.updateValue();
|
|
45
|
+
}
|
|
46
|
+
onKeyDown(event, index) {
|
|
47
|
+
const input = event.target;
|
|
48
|
+
const length = this.otpConfig()?.length || 6;
|
|
49
|
+
const isAlphaNumeric = /^[a-zA-Z0-9]$/.test(event.key);
|
|
50
|
+
const isControlKey = [
|
|
51
|
+
'Backspace',
|
|
52
|
+
'Delete',
|
|
53
|
+
'ArrowLeft',
|
|
54
|
+
'ArrowRight',
|
|
55
|
+
'Tab',
|
|
56
|
+
].includes(event.key);
|
|
57
|
+
if (!isAlphaNumeric && !isControlKey) {
|
|
58
|
+
event.preventDefault();
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
if (event.key === 'Backspace') {
|
|
62
|
+
if (!input.value && index > 0) {
|
|
63
|
+
this.focusInput(index - 1);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
if (event.key === 'ArrowLeft' && index > 0) {
|
|
67
|
+
event.preventDefault();
|
|
68
|
+
this.focusInput(index - 1);
|
|
69
|
+
}
|
|
70
|
+
if (event.key === 'ArrowRight' && index < length - 1) {
|
|
71
|
+
event.preventDefault();
|
|
72
|
+
this.focusInput(index + 1);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
onPaste(event) {
|
|
76
|
+
event.preventDefault();
|
|
77
|
+
event.stopPropagation();
|
|
78
|
+
const length = this.otpConfig()?.length || 6;
|
|
79
|
+
const pastedData = event.clipboardData?.getData('text') || '';
|
|
80
|
+
const alphanumeric = pastedData
|
|
81
|
+
.replace(/[^a-zA-Z0-9]/g, '')
|
|
82
|
+
.slice(0, length);
|
|
83
|
+
if (alphanumeric.length > 0) {
|
|
84
|
+
const newValues = Array(length).fill('');
|
|
85
|
+
alphanumeric.split('').forEach((char, index) => {
|
|
86
|
+
if (index < length) {
|
|
87
|
+
newValues[index] = char.toUpperCase();
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
this.otpValues.set(newValues);
|
|
91
|
+
this.updateValue();
|
|
92
|
+
const focusIndex = Math.min(alphanumeric.length, length - 1);
|
|
93
|
+
setTimeout(() => this.focusInput(focusIndex), 0);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
focusInput(index) {
|
|
97
|
+
const inputs = this.otpInputs();
|
|
98
|
+
if (inputs[index]) {
|
|
99
|
+
inputs[index].nativeElement.focus();
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
updateValue() {
|
|
103
|
+
const otpValue = this.otpValues().join('');
|
|
104
|
+
this.setValue(otpValue);
|
|
105
|
+
}
|
|
106
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: OtpInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
107
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: OtpInputComponent, isStandalone: true, selector: "m-otp-input", viewQueries: [{ propertyName: "otpInputs", predicate: ["otpInput"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
108
|
+
@if (otpConfig(); as otp) {
|
|
109
|
+
<m-label
|
|
110
|
+
[for]="otp.name"
|
|
111
|
+
[placeholder]="otp.label"
|
|
112
|
+
[required]="required()"
|
|
113
|
+
[disabled]="disabled()"
|
|
114
|
+
/>
|
|
115
|
+
<div class="otp-container">
|
|
116
|
+
@for (item of otpArray(); track $index) {
|
|
117
|
+
<input
|
|
118
|
+
[id]="$index === 0 ? (otp.name ?? '') : ''"
|
|
119
|
+
#otpInput
|
|
120
|
+
type="text"
|
|
121
|
+
maxlength="1"
|
|
122
|
+
[class.error]="showErrors()"
|
|
123
|
+
[disabled]="disabled()"
|
|
124
|
+
[value]="otpValues()[$index] || ''"
|
|
125
|
+
(input)="onInput($event, $index)"
|
|
126
|
+
(keydown)="onKeyDown($event, $index)"
|
|
127
|
+
(paste)="onPaste($event)"
|
|
128
|
+
/>
|
|
129
|
+
}
|
|
130
|
+
</div>
|
|
131
|
+
@if (showErrors()) {
|
|
132
|
+
<m-input-errors [errors]="errors()" />
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
`, isInline: true, styles: ["@keyframes toggle-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.02)}}@keyframes thumb-slide{0%{transform:translate(0) scale(1)}50%{transform:translate(.3em) scale(.9)}to{transform:translate(.6em) scale(1)}}@keyframes gradientWave{0%,to{background-position:0% 50%;transform:scale(1)}50%{background-position:100% 50%;transform:scale(1.05)}}@keyframes meshFlow{0%,to{background-position:0% 50%}25%{background-position:100% 0%}50%{background-position:100% 100%}75%{background-position:0% 100%}}@keyframes meshOverlay{0%,to{opacity:.1;transform:scale(1)}50%{opacity:.3;transform:scale(1.05)}}@keyframes plasmaEnergy{0%{transform:scale(1) rotate(0);filter:hue-rotate(0deg)}to{transform:scale(1.1) rotate(5deg);filter:hue-rotate(90deg)}}@keyframes plasmaOrbs{0%,to{transform:translate(0) scale(1);opacity:.6}25%{transform:translate(30px,-20px) scale(1.2);opacity:.8}50%{transform:translate(-20px,30px) scale(.8);opacity:.4}75%{transform:translate(20px,20px) scale(1.1);opacity:.7}}@keyframes floatParticles{0%{transform:translateY(100vh) rotate(0);opacity:0}10%{opacity:1}90%{opacity:1}to{transform:translateY(-100px) rotate(360deg);opacity:0}}@keyframes rotateGeometric{0%{transform:rotate(0) scale(1)}50%{transform:rotate(180deg) scale(1.2)}to{transform:rotate(360deg) scale(1)}}@keyframes crystalShimmer{0%,to{background-position:0% 50%;filter:brightness(1)}50%{background-position:100% 50%;filter:brightness(1.3)}}@keyframes crystalGrow{0%,to{transform:scale(1) rotate(0);opacity:.2}50%{transform:scale(1.5) rotate(45deg);opacity:.6}}@keyframes matrixRain{0%{transform:translateY(-100px);opacity:0}10%{opacity:1}90%{opacity:1}to{transform:translateY(calc(100vh + 100px));opacity:0}}@keyframes cyberGrid{0%{transform:translate(0)}to{transform:translate(50px,50px)}}@keyframes cyberScan{0%,to{transform:translate(-100%);opacity:0}10%{opacity:1}90%{opacity:1}to{transform:translate(100%)}}@keyframes hologramScan{0%{transform:translateY(-100%)}to{transform:translateY(100vh)}}@keyframes hologramSweep{0%{transform:translate(-100%)}50%{transform:translate(0)}to{transform:translate(100%)}}@keyframes waveMotion{0%,to{background-position:0% 50%}50%{background-position:100% 50%}}@keyframes waveRipple{0%,to{transform:scale(1) rotate(0);opacity:.3}50%{transform:scale(1.1) rotate(5deg);opacity:.6}}@keyframes auroraFlow{0%,to{transform:translate(0) scale(1);opacity:.3}33%{transform:translate(50px) scale(1.2);opacity:.6}66%{transform:translate(-30px) scale(.9);opacity:.4}}@keyframes nebulaGlow{0%{transform:scale(1) rotate(0);opacity:.4}to{transform:scale(1.3) rotate(10deg);opacity:.7}}@keyframes pulseBackground{0%{transform:scale(1);opacity:.8}to{transform:scale(1.02);opacity:1}}@keyframes neonPulse{0%{transform:scale(1);opacity:.6}to{transform:scale(1.2);opacity:1}}@keyframes spiralRotate{0%{transform:translate(-50%,-50%) rotate(0) scale(1)}to{transform:translate(-50%,-50%) rotate(360deg) scale(1.1)}}@keyframes fireFlicker{0%,to{background-position:0% 50%;filter:brightness(1) hue-rotate(0deg)}25%{background-position:50% 25%;filter:brightness(1.2) hue-rotate(10deg)}50%{background-position:100% 50%;filter:brightness(.9) hue-rotate(-5deg)}75%{background-position:50% 75%;filter:brightness(1.1) hue-rotate(5deg)}}@keyframes fireParticles{0%,to{transform:translateY(0) scale(1);opacity:.8}50%{transform:translateY(-20px) scale(1.1);opacity:.4}}@keyframes electricStorm{0%,to{filter:brightness(1) contrast(1)}25%{filter:brightness(1.3) contrast(1.2)}50%{filter:brightness(.8) contrast(1.1)}75%{filter:brightness(1.2) contrast(1.3)}}@keyframes electricBolt{0%,90%,to{opacity:0;transform:scale(1)}5%,85%{opacity:1;transform:scale(1.2)}10%,80%{opacity:.7;transform:scale(.9)}}@keyframes galaxyRotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes starField{0%,to{opacity:.3;transform:translate(-50%,-50%) scale(1)}50%{opacity:.8;transform:translate(-50%,-50%) scale(1.1)}}@keyframes liquidFlow{0%,to{background-position:0% 50%}33%{background-position:70% 30%}66%{background-position:30% 70%}}@keyframes liquidDrops{0%,to{transform:translateY(0) scale(1);opacity:.6}50%{transform:translateY(-10px) scale(1.2);opacity:.3}}@keyframes glitchBase{0%,to{filter:hue-rotate(0deg) saturate(1)}25%{filter:hue-rotate(90deg) saturate(1.2)}50%{filter:hue-rotate(180deg) saturate(.8)}75%{filter:hue-rotate(270deg) saturate(1.1)}}@keyframes glitchDistortion{0%,90%,to{transform:translate(0);opacity:.1}2%,5%,8%{transform:translate(2px);opacity:.3}3%,6%{transform:translate(-2px);opacity:.2}}@keyframes prismShift{0%,to{background-position:0% 50%;filter:hue-rotate(0deg)}33%{background-position:100% 0%;filter:hue-rotate(120deg)}66%{background-position:0% 100%;filter:hue-rotate(240deg)}}@keyframes prismRotate{0%{transform:rotate(0) scale(1);opacity:.3}to{transform:rotate(360deg) scale(1.1);opacity:.6}}m-frame,m-carousel,m-one-carousel{display:block}.wizard__stepper .stepper{display:flex;flex-direction:row;gap:.5rem}@media(min-width:992px){.wizard__stepper .stepper{flex-direction:column;gap:1.5rem}}.wizard__stepper .stepper__step{display:flex;align-items:center;gap:.75rem;cursor:pointer;transition:all .3s ease;opacity:.5}.wizard__stepper .stepper__step--selected{opacity:1}.wizard__stepper .stepper__step--selected .stepper__step-icon{background:linear-gradient(135deg,#a855f7,#14b8a6)!important;border-color:transparent!important;box-shadow:0 0 15px #a855f780!important;color:#fff!important}.wizard__stepper .stepper__step--selected .stepper__step-label{color:#fff!important;font-weight:600!important}.wizard__stepper .stepper__step--completed{opacity:.8}.wizard__stepper .stepper__step--completed .stepper__step-icon{background:#14b8a633!important;border-color:#14b8a6!important;color:#14b8a6!important}.wizard__stepper .stepper__step-icon{width:2.25rem!important;height:2.25rem!important;border-radius:50%!important;border:2px solid rgba(255,255,255,.15)!important;background:#0f172a99!important;color:#94a3b8!important;display:flex!important;align-items:center!important;justify-content:center!important;font-weight:700!important;font-size:.875rem!important;transition:all .3s ease!important}.wizard__stepper .stepper__step-label{font-size:.875rem!important;color:#94a3b8!important;font-weight:500!important;transition:all .3s ease!important;text-transform:capitalize!important}.wizard__footer .m-button-group{display:flex;justify-content:space-between;gap:1rem}.wizard__footer .m-button-group button{font-weight:600!important;font-size:.9375rem!important;padding:.75rem 1.75rem!important;border-radius:.75rem!important;transition:all .3s ease!important;cursor:pointer}.wizard__footer .m-button-group [name=next_step] button,.wizard__footer .m-button-group button:not([disabled]):not(.prev_step){background:linear-gradient(135deg,#a855f7,#7c3aed)!important;color:#fff!important;border:none!important;box-shadow:0 4px 12px #7c3aed4d!important}.wizard__footer .m-button-group [name=next_step] button:hover:not([disabled]),.wizard__footer .m-button-group button:not([disabled]):not(.prev_step):hover:not([disabled]){background:linear-gradient(135deg,#c084fc,#8b5cf6)!important;box-shadow:0 6px 20px #7c3aed80!important;transform:translateY(-2px)}.wizard__footer .m-button-group [name=prev_step] button{background:#ffffff0d!important;color:#e2e8f0!important;border:1px solid rgba(255,255,255,.08)!important}.wizard__footer .m-button-group [name=prev_step] button:hover:not([disabled]){background:#ffffff1a!important;transform:translateY(-2px)}.wizard__footer .m-button-group button[disabled]{background:#ffffff08!important;color:#ffffff26!important;border:1px solid rgba(255,255,255,.03)!important;box-shadow:none!important;cursor:not-allowed}:host{display:contents}.otp-container{display:flex;gap:.375em;padding:2px;margin:-2px}.otp-container input{box-sizing:border-box;width:1.4em;height:2em;text-align:center;font-size:.9rem;font-weight:600;border:max(1px,1em * .0625) solid var(--m-input-color, var(--m-mm));border-radius:.4em;transition:border-color .2s ease,box-shadow .2s ease;text-transform:uppercase;background:transparent;color:var(--m-text)}.otp-container input:focus{outline:none;border-color:var(--m-text-input-focus-border, var(--m-focus));box-shadow:none}.otp-container input.error{border-color:var(--m-error);box-shadow:none}.otp-container input:disabled{background-color:var(--m-frame);cursor:not-allowed;color:var(--m-text-tertiary);border-color:var(--m-border);opacity:.6}\n"], dependencies: [{ kind: "component", type: LabelComponent, selector: "m-label", inputs: ["for", "placeholder", "required", "disabled", "color"] }, { kind: "component", type: ErrorsComponent, selector: "m-input-errors", inputs: ["errors"] }, { kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
136
|
+
}
|
|
137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: OtpInputComponent, decorators: [{
|
|
138
|
+
type: Component,
|
|
139
|
+
args: [{ selector: 'm-otp-input', template: `
|
|
140
|
+
@if (otpConfig(); as otp) {
|
|
141
|
+
<m-label
|
|
142
|
+
[for]="otp.name"
|
|
143
|
+
[placeholder]="otp.label"
|
|
144
|
+
[required]="required()"
|
|
145
|
+
[disabled]="disabled()"
|
|
146
|
+
/>
|
|
147
|
+
<div class="otp-container">
|
|
148
|
+
@for (item of otpArray(); track $index) {
|
|
149
|
+
<input
|
|
150
|
+
[id]="$index === 0 ? (otp.name ?? '') : ''"
|
|
151
|
+
#otpInput
|
|
152
|
+
type="text"
|
|
153
|
+
maxlength="1"
|
|
154
|
+
[class.error]="showErrors()"
|
|
155
|
+
[disabled]="disabled()"
|
|
156
|
+
[value]="otpValues()[$index] || ''"
|
|
157
|
+
(input)="onInput($event, $index)"
|
|
158
|
+
(keydown)="onKeyDown($event, $index)"
|
|
159
|
+
(paste)="onPaste($event)"
|
|
160
|
+
/>
|
|
161
|
+
}
|
|
162
|
+
</div>
|
|
163
|
+
@if (showErrors()) {
|
|
164
|
+
<m-input-errors [errors]="errors()" />
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
`, imports: [LabelComponent, ErrorsComponent, CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, styles: ["@keyframes toggle-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.02)}}@keyframes thumb-slide{0%{transform:translate(0) scale(1)}50%{transform:translate(.3em) scale(.9)}to{transform:translate(.6em) scale(1)}}@keyframes gradientWave{0%,to{background-position:0% 50%;transform:scale(1)}50%{background-position:100% 50%;transform:scale(1.05)}}@keyframes meshFlow{0%,to{background-position:0% 50%}25%{background-position:100% 0%}50%{background-position:100% 100%}75%{background-position:0% 100%}}@keyframes meshOverlay{0%,to{opacity:.1;transform:scale(1)}50%{opacity:.3;transform:scale(1.05)}}@keyframes plasmaEnergy{0%{transform:scale(1) rotate(0);filter:hue-rotate(0deg)}to{transform:scale(1.1) rotate(5deg);filter:hue-rotate(90deg)}}@keyframes plasmaOrbs{0%,to{transform:translate(0) scale(1);opacity:.6}25%{transform:translate(30px,-20px) scale(1.2);opacity:.8}50%{transform:translate(-20px,30px) scale(.8);opacity:.4}75%{transform:translate(20px,20px) scale(1.1);opacity:.7}}@keyframes floatParticles{0%{transform:translateY(100vh) rotate(0);opacity:0}10%{opacity:1}90%{opacity:1}to{transform:translateY(-100px) rotate(360deg);opacity:0}}@keyframes rotateGeometric{0%{transform:rotate(0) scale(1)}50%{transform:rotate(180deg) scale(1.2)}to{transform:rotate(360deg) scale(1)}}@keyframes crystalShimmer{0%,to{background-position:0% 50%;filter:brightness(1)}50%{background-position:100% 50%;filter:brightness(1.3)}}@keyframes crystalGrow{0%,to{transform:scale(1) rotate(0);opacity:.2}50%{transform:scale(1.5) rotate(45deg);opacity:.6}}@keyframes matrixRain{0%{transform:translateY(-100px);opacity:0}10%{opacity:1}90%{opacity:1}to{transform:translateY(calc(100vh + 100px));opacity:0}}@keyframes cyberGrid{0%{transform:translate(0)}to{transform:translate(50px,50px)}}@keyframes cyberScan{0%,to{transform:translate(-100%);opacity:0}10%{opacity:1}90%{opacity:1}to{transform:translate(100%)}}@keyframes hologramScan{0%{transform:translateY(-100%)}to{transform:translateY(100vh)}}@keyframes hologramSweep{0%{transform:translate(-100%)}50%{transform:translate(0)}to{transform:translate(100%)}}@keyframes waveMotion{0%,to{background-position:0% 50%}50%{background-position:100% 50%}}@keyframes waveRipple{0%,to{transform:scale(1) rotate(0);opacity:.3}50%{transform:scale(1.1) rotate(5deg);opacity:.6}}@keyframes auroraFlow{0%,to{transform:translate(0) scale(1);opacity:.3}33%{transform:translate(50px) scale(1.2);opacity:.6}66%{transform:translate(-30px) scale(.9);opacity:.4}}@keyframes nebulaGlow{0%{transform:scale(1) rotate(0);opacity:.4}to{transform:scale(1.3) rotate(10deg);opacity:.7}}@keyframes pulseBackground{0%{transform:scale(1);opacity:.8}to{transform:scale(1.02);opacity:1}}@keyframes neonPulse{0%{transform:scale(1);opacity:.6}to{transform:scale(1.2);opacity:1}}@keyframes spiralRotate{0%{transform:translate(-50%,-50%) rotate(0) scale(1)}to{transform:translate(-50%,-50%) rotate(360deg) scale(1.1)}}@keyframes fireFlicker{0%,to{background-position:0% 50%;filter:brightness(1) hue-rotate(0deg)}25%{background-position:50% 25%;filter:brightness(1.2) hue-rotate(10deg)}50%{background-position:100% 50%;filter:brightness(.9) hue-rotate(-5deg)}75%{background-position:50% 75%;filter:brightness(1.1) hue-rotate(5deg)}}@keyframes fireParticles{0%,to{transform:translateY(0) scale(1);opacity:.8}50%{transform:translateY(-20px) scale(1.1);opacity:.4}}@keyframes electricStorm{0%,to{filter:brightness(1) contrast(1)}25%{filter:brightness(1.3) contrast(1.2)}50%{filter:brightness(.8) contrast(1.1)}75%{filter:brightness(1.2) contrast(1.3)}}@keyframes electricBolt{0%,90%,to{opacity:0;transform:scale(1)}5%,85%{opacity:1;transform:scale(1.2)}10%,80%{opacity:.7;transform:scale(.9)}}@keyframes galaxyRotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes starField{0%,to{opacity:.3;transform:translate(-50%,-50%) scale(1)}50%{opacity:.8;transform:translate(-50%,-50%) scale(1.1)}}@keyframes liquidFlow{0%,to{background-position:0% 50%}33%{background-position:70% 30%}66%{background-position:30% 70%}}@keyframes liquidDrops{0%,to{transform:translateY(0) scale(1);opacity:.6}50%{transform:translateY(-10px) scale(1.2);opacity:.3}}@keyframes glitchBase{0%,to{filter:hue-rotate(0deg) saturate(1)}25%{filter:hue-rotate(90deg) saturate(1.2)}50%{filter:hue-rotate(180deg) saturate(.8)}75%{filter:hue-rotate(270deg) saturate(1.1)}}@keyframes glitchDistortion{0%,90%,to{transform:translate(0);opacity:.1}2%,5%,8%{transform:translate(2px);opacity:.3}3%,6%{transform:translate(-2px);opacity:.2}}@keyframes prismShift{0%,to{background-position:0% 50%;filter:hue-rotate(0deg)}33%{background-position:100% 0%;filter:hue-rotate(120deg)}66%{background-position:0% 100%;filter:hue-rotate(240deg)}}@keyframes prismRotate{0%{transform:rotate(0) scale(1);opacity:.3}to{transform:rotate(360deg) scale(1.1);opacity:.6}}m-frame,m-carousel,m-one-carousel{display:block}.wizard__stepper .stepper{display:flex;flex-direction:row;gap:.5rem}@media(min-width:992px){.wizard__stepper .stepper{flex-direction:column;gap:1.5rem}}.wizard__stepper .stepper__step{display:flex;align-items:center;gap:.75rem;cursor:pointer;transition:all .3s ease;opacity:.5}.wizard__stepper .stepper__step--selected{opacity:1}.wizard__stepper .stepper__step--selected .stepper__step-icon{background:linear-gradient(135deg,#a855f7,#14b8a6)!important;border-color:transparent!important;box-shadow:0 0 15px #a855f780!important;color:#fff!important}.wizard__stepper .stepper__step--selected .stepper__step-label{color:#fff!important;font-weight:600!important}.wizard__stepper .stepper__step--completed{opacity:.8}.wizard__stepper .stepper__step--completed .stepper__step-icon{background:#14b8a633!important;border-color:#14b8a6!important;color:#14b8a6!important}.wizard__stepper .stepper__step-icon{width:2.25rem!important;height:2.25rem!important;border-radius:50%!important;border:2px solid rgba(255,255,255,.15)!important;background:#0f172a99!important;color:#94a3b8!important;display:flex!important;align-items:center!important;justify-content:center!important;font-weight:700!important;font-size:.875rem!important;transition:all .3s ease!important}.wizard__stepper .stepper__step-label{font-size:.875rem!important;color:#94a3b8!important;font-weight:500!important;transition:all .3s ease!important;text-transform:capitalize!important}.wizard__footer .m-button-group{display:flex;justify-content:space-between;gap:1rem}.wizard__footer .m-button-group button{font-weight:600!important;font-size:.9375rem!important;padding:.75rem 1.75rem!important;border-radius:.75rem!important;transition:all .3s ease!important;cursor:pointer}.wizard__footer .m-button-group [name=next_step] button,.wizard__footer .m-button-group button:not([disabled]):not(.prev_step){background:linear-gradient(135deg,#a855f7,#7c3aed)!important;color:#fff!important;border:none!important;box-shadow:0 4px 12px #7c3aed4d!important}.wizard__footer .m-button-group [name=next_step] button:hover:not([disabled]),.wizard__footer .m-button-group button:not([disabled]):not(.prev_step):hover:not([disabled]){background:linear-gradient(135deg,#c084fc,#8b5cf6)!important;box-shadow:0 6px 20px #7c3aed80!important;transform:translateY(-2px)}.wizard__footer .m-button-group [name=prev_step] button{background:#ffffff0d!important;color:#e2e8f0!important;border:1px solid rgba(255,255,255,.08)!important}.wizard__footer .m-button-group [name=prev_step] button:hover:not([disabled]){background:#ffffff1a!important;transform:translateY(-2px)}.wizard__footer .m-button-group button[disabled]{background:#ffffff08!important;color:#ffffff26!important;border:1px solid rgba(255,255,255,.03)!important;box-shadow:none!important;cursor:not-allowed}:host{display:contents}.otp-container{display:flex;gap:.375em;padding:2px;margin:-2px}.otp-container input{box-sizing:border-box;width:1.4em;height:2em;text-align:center;font-size:.9rem;font-weight:600;border:max(1px,1em * .0625) solid var(--m-input-color, var(--m-mm));border-radius:.4em;transition:border-color .2s ease,box-shadow .2s ease;text-transform:uppercase;background:transparent;color:var(--m-text)}.otp-container input:focus{outline:none;border-color:var(--m-text-input-focus-border, var(--m-focus));box-shadow:none}.otp-container input.error{border-color:var(--m-error);box-shadow:none}.otp-container input:disabled{background-color:var(--m-frame);cursor:not-allowed;color:var(--m-text-tertiary);border-color:var(--m-border);opacity:.6}\n"] }]
|
|
168
|
+
}], ctorParameters: () => [], propDecorators: { otpInputs: [{ type: i0.ViewChildren, args: ['otpInput', { isSignal: true }] }] } });
|
|
169
|
+
|
|
170
|
+
export { OtpInputComponent };
|
|
171
|
+
//# sourceMappingURL=magmonium-one-otp-D-gA4qT1.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"magmonium-one-otp-D-gA4qT1.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/text/otp.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n signal,\n viewChildren,\n} from '@angular/core';\nimport { LabelComponent } from '../label';\nimport { ErrorsComponent } from '../errors';\nimport { BaseTextInputComponent } from './base-text';\nimport { CommonModule } from '@angular/common';\nimport { OtpInput } from '../../model/input';\n\n@Component({\n selector: 'm-otp-input',\n template: `\n @if (otpConfig(); as otp) {\n <m-label\n [for]=\"otp.name\"\n [placeholder]=\"otp.label\"\n [required]=\"required()\"\n [disabled]=\"disabled()\"\n />\n <div class=\"otp-container\">\n @for (item of otpArray(); track $index) {\n <input\n [id]=\"$index === 0 ? (otp.name ?? '') : ''\"\n #otpInput\n type=\"text\"\n maxlength=\"1\"\n [class.error]=\"showErrors()\"\n [disabled]=\"disabled()\"\n [value]=\"otpValues()[$index] || ''\"\n (input)=\"onInput($event, $index)\"\n (keydown)=\"onKeyDown($event, $index)\"\n (paste)=\"onPaste($event)\"\n />\n }\n </div>\n @if (showErrors()) {\n <m-input-errors [errors]=\"errors()\" />\n }\n }\n `,\n styleUrl: './otp.sass',\n imports: [LabelComponent, ErrorsComponent, CommonModule],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class OtpInputComponent extends BaseTextInputComponent<OtpInput> {\n otpValues = signal<string[]>([]);\n otpInputs = viewChildren<ElementRef<HTMLInputElement>>('otpInput');\n protected readonly otpConfig = computed(() => this.config() as OtpInput);\n otpArray = computed(() => {\n const length = this.otpConfig()?.length || 6;\n return Array(length).fill(0);\n });\n\n constructor() {\n super();\n effect(() => {\n const length = this.otpConfig()?.length || 6;\n this.otpValues.set(Array(length).fill(''));\n });\n effect(() => {\n const inputs = this.otpInputs();\n if (inputs.length > 0) {\n setTimeout(() => {\n inputs[0].nativeElement.focus();\n }, 0);\n }\n });\n }\n\n onInput(event: Event, index: number): void {\n const input = event.target as HTMLInputElement;\n let value = input.value;\n\n value = value.replace(/[^a-zA-Z0-9]/g, '');\n\n if (value.length > 1) {\n value = value.slice(-1);\n }\n\n input.value = value.toUpperCase();\n\n const newValues = [...this.otpValues()];\n newValues[index] = value.toUpperCase();\n this.otpValues.set(newValues);\n\n const length = this.otpConfig()?.length || 6;\n if (value && index < length - 1) {\n this.focusInput(index + 1);\n }\n this.updateValue();\n }\n\n onKeyDown(event: KeyboardEvent, index: number): void {\n const input = event.target as HTMLInputElement;\n const length = this.otpConfig()?.length || 6;\n\n const isAlphaNumeric = /^[a-zA-Z0-9]$/.test(event.key);\n const isControlKey = [\n 'Backspace',\n 'Delete',\n 'ArrowLeft',\n 'ArrowRight',\n 'Tab',\n ].includes(event.key);\n\n if (!isAlphaNumeric && !isControlKey) {\n event.preventDefault();\n return;\n }\n\n if (event.key === 'Backspace') {\n if (!input.value && index > 0) {\n this.focusInput(index - 1);\n }\n }\n if (event.key === 'ArrowLeft' && index > 0) {\n event.preventDefault();\n this.focusInput(index - 1);\n }\n if (event.key === 'ArrowRight' && index < length - 1) {\n event.preventDefault();\n this.focusInput(index + 1);\n }\n }\n\n onPaste(event: ClipboardEvent): void {\n event.preventDefault();\n event.stopPropagation();\n\n const length = this.otpConfig()?.length || 6;\n const pastedData = event.clipboardData?.getData('text') || '';\n\n const alphanumeric = pastedData\n .replace(/[^a-zA-Z0-9]/g, '')\n .slice(0, length);\n\n if (alphanumeric.length > 0) {\n const newValues = Array(length).fill('');\n alphanumeric.split('').forEach((char, index) => {\n if (index < length) {\n newValues[index] = char.toUpperCase();\n }\n });\n\n this.otpValues.set(newValues);\n this.updateValue();\n\n const focusIndex = Math.min(alphanumeric.length, length - 1);\n setTimeout(() => this.focusInput(focusIndex), 0);\n }\n }\n\n private focusInput(index: number): void {\n const inputs = this.otpInputs();\n if (inputs[index]) {\n inputs[index].nativeElement.focus();\n }\n }\n\n private updateValue(): void {\n const otpValue = this.otpValues().join('');\n this.setValue(otpValue);\n }\n}\n"],"names":[],"mappings":";;;;;AAkDM,MAAO,iBAAkB,SAAQ,sBAAgC,CAAA;AACrE,IAAA,SAAS,GAAG,MAAM,CAAW,EAAE,gFAAC;AAChC,IAAA,SAAS,GAAG,YAAY,CAA+B,UAAU,gFAAC;IAC/C,SAAS,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,MAAM,EAAc,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,WAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;AACxE,IAAA,QAAQ,GAAG,QAAQ,CAAC,MAAK;QACvB,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,EAAE,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,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAG5C,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAnC7B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EAAA,QAAA,EACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BT,EAAA,OAAA,EAEQ,CAAC,cAAc,EAAE,eAAe,EAAE,YAAY,CAAC,EAAA,eAAA,EACvC,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,0tQAAA,CAAA,EAAA;oGAIQ,UAAU,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;;;"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { signal, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { a as BaseTextInputComponent, L as LabelComponent, E as ErrorsComponent, b as ButtonComponent } from './magmonium-one-magmonium-one-Bc6ZjJKk.mjs';
|
|
4
|
+
|
|
5
|
+
class PasswordInputComponent extends BaseTextInputComponent {
|
|
6
|
+
isPassword = signal(true, ...(ngDevMode ? [{ debugName: "isPassword" }] : /* istanbul ignore next */ []));
|
|
7
|
+
type = computed(() => (this.isPassword() ? 'password' : 'text'), ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
8
|
+
button = computed(() => (!this.isPassword() ? 'eye' : 'eye_close'), ...(ngDevMode ? [{ debugName: "button" }] : /* istanbul ignore next */ []));
|
|
9
|
+
toggleType() {
|
|
10
|
+
this.isPassword.update((now) => !now);
|
|
11
|
+
}
|
|
12
|
+
onInput(event) {
|
|
13
|
+
const target = event.target;
|
|
14
|
+
this.setValue(target?.value ?? '');
|
|
15
|
+
}
|
|
16
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: PasswordInputComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
17
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: PasswordInputComponent, isStandalone: true, selector: "m-password-input", usesInheritance: true, ngImport: i0, template: `
|
|
18
|
+
@if (config(); as text) {
|
|
19
|
+
<m-label
|
|
20
|
+
[for]="text.name"
|
|
21
|
+
[placeholder]="text.label"
|
|
22
|
+
[required]="required()"
|
|
23
|
+
[disabled]="disabled()"
|
|
24
|
+
/>
|
|
25
|
+
<div class="input-wrapper">
|
|
26
|
+
<input
|
|
27
|
+
[id]="text.name ?? ''"
|
|
28
|
+
[value]="value()"
|
|
29
|
+
#inputElement
|
|
30
|
+
[class.error]="showErrors()"
|
|
31
|
+
[disabled]="disabled()"
|
|
32
|
+
(input)="onInput($event)"
|
|
33
|
+
(focus)="isFocused.set(true)"
|
|
34
|
+
(blur)="isFocused.set(false); touched.set(true)"
|
|
35
|
+
[type]="type()"
|
|
36
|
+
/>
|
|
37
|
+
<m-one-button
|
|
38
|
+
[disabled]="disabled()"
|
|
39
|
+
[name]="button()"
|
|
40
|
+
[color]="iconColor()"
|
|
41
|
+
(clicked)="toggleType()"
|
|
42
|
+
/>
|
|
43
|
+
</div>
|
|
44
|
+
@if (showErrors()) {
|
|
45
|
+
<m-input-errors [errors]="errors()" />
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
`, isInline: true, styles: ["@keyframes toggle-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.02)}}@keyframes thumb-slide{0%{transform:translate(0) scale(1)}50%{transform:translate(.3em) scale(.9)}to{transform:translate(.6em) scale(1)}}@keyframes gradientWave{0%,to{background-position:0% 50%;transform:scale(1)}50%{background-position:100% 50%;transform:scale(1.05)}}@keyframes meshFlow{0%,to{background-position:0% 50%}25%{background-position:100% 0%}50%{background-position:100% 100%}75%{background-position:0% 100%}}@keyframes meshOverlay{0%,to{opacity:.1;transform:scale(1)}50%{opacity:.3;transform:scale(1.05)}}@keyframes plasmaEnergy{0%{transform:scale(1) rotate(0);filter:hue-rotate(0deg)}to{transform:scale(1.1) rotate(5deg);filter:hue-rotate(90deg)}}@keyframes plasmaOrbs{0%,to{transform:translate(0) scale(1);opacity:.6}25%{transform:translate(30px,-20px) scale(1.2);opacity:.8}50%{transform:translate(-20px,30px) scale(.8);opacity:.4}75%{transform:translate(20px,20px) scale(1.1);opacity:.7}}@keyframes floatParticles{0%{transform:translateY(100vh) rotate(0);opacity:0}10%{opacity:1}90%{opacity:1}to{transform:translateY(-100px) rotate(360deg);opacity:0}}@keyframes rotateGeometric{0%{transform:rotate(0) scale(1)}50%{transform:rotate(180deg) scale(1.2)}to{transform:rotate(360deg) scale(1)}}@keyframes crystalShimmer{0%,to{background-position:0% 50%;filter:brightness(1)}50%{background-position:100% 50%;filter:brightness(1.3)}}@keyframes crystalGrow{0%,to{transform:scale(1) rotate(0);opacity:.2}50%{transform:scale(1.5) rotate(45deg);opacity:.6}}@keyframes matrixRain{0%{transform:translateY(-100px);opacity:0}10%{opacity:1}90%{opacity:1}to{transform:translateY(calc(100vh + 100px));opacity:0}}@keyframes cyberGrid{0%{transform:translate(0)}to{transform:translate(50px,50px)}}@keyframes cyberScan{0%,to{transform:translate(-100%);opacity:0}10%{opacity:1}90%{opacity:1}to{transform:translate(100%)}}@keyframes hologramScan{0%{transform:translateY(-100%)}to{transform:translateY(100vh)}}@keyframes hologramSweep{0%{transform:translate(-100%)}50%{transform:translate(0)}to{transform:translate(100%)}}@keyframes waveMotion{0%,to{background-position:0% 50%}50%{background-position:100% 50%}}@keyframes waveRipple{0%,to{transform:scale(1) rotate(0);opacity:.3}50%{transform:scale(1.1) rotate(5deg);opacity:.6}}@keyframes auroraFlow{0%,to{transform:translate(0) scale(1);opacity:.3}33%{transform:translate(50px) scale(1.2);opacity:.6}66%{transform:translate(-30px) scale(.9);opacity:.4}}@keyframes nebulaGlow{0%{transform:scale(1) rotate(0);opacity:.4}to{transform:scale(1.3) rotate(10deg);opacity:.7}}@keyframes pulseBackground{0%{transform:scale(1);opacity:.8}to{transform:scale(1.02);opacity:1}}@keyframes neonPulse{0%{transform:scale(1);opacity:.6}to{transform:scale(1.2);opacity:1}}@keyframes spiralRotate{0%{transform:translate(-50%,-50%) rotate(0) scale(1)}to{transform:translate(-50%,-50%) rotate(360deg) scale(1.1)}}@keyframes fireFlicker{0%,to{background-position:0% 50%;filter:brightness(1) hue-rotate(0deg)}25%{background-position:50% 25%;filter:brightness(1.2) hue-rotate(10deg)}50%{background-position:100% 50%;filter:brightness(.9) hue-rotate(-5deg)}75%{background-position:50% 75%;filter:brightness(1.1) hue-rotate(5deg)}}@keyframes fireParticles{0%,to{transform:translateY(0) scale(1);opacity:.8}50%{transform:translateY(-20px) scale(1.1);opacity:.4}}@keyframes electricStorm{0%,to{filter:brightness(1) contrast(1)}25%{filter:brightness(1.3) contrast(1.2)}50%{filter:brightness(.8) contrast(1.1)}75%{filter:brightness(1.2) contrast(1.3)}}@keyframes electricBolt{0%,90%,to{opacity:0;transform:scale(1)}5%,85%{opacity:1;transform:scale(1.2)}10%,80%{opacity:.7;transform:scale(.9)}}@keyframes galaxyRotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes starField{0%,to{opacity:.3;transform:translate(-50%,-50%) scale(1)}50%{opacity:.8;transform:translate(-50%,-50%) scale(1.1)}}@keyframes liquidFlow{0%,to{background-position:0% 50%}33%{background-position:70% 30%}66%{background-position:30% 70%}}@keyframes liquidDrops{0%,to{transform:translateY(0) scale(1);opacity:.6}50%{transform:translateY(-10px) scale(1.2);opacity:.3}}@keyframes glitchBase{0%,to{filter:hue-rotate(0deg) saturate(1)}25%{filter:hue-rotate(90deg) saturate(1.2)}50%{filter:hue-rotate(180deg) saturate(.8)}75%{filter:hue-rotate(270deg) saturate(1.1)}}@keyframes glitchDistortion{0%,90%,to{transform:translate(0);opacity:.1}2%,5%,8%{transform:translate(2px);opacity:.3}3%,6%{transform:translate(-2px);opacity:.2}}@keyframes prismShift{0%,to{background-position:0% 50%;filter:hue-rotate(0deg)}33%{background-position:100% 0%;filter:hue-rotate(120deg)}66%{background-position:0% 100%;filter:hue-rotate(240deg)}}@keyframes prismRotate{0%{transform:rotate(0) scale(1);opacity:.3}to{transform:rotate(360deg) scale(1.1);opacity:.6}}m-frame,m-carousel,m-one-carousel{display:block}.wizard__stepper .stepper{display:flex;flex-direction:row;gap:.5rem}@media(min-width:992px){.wizard__stepper .stepper{flex-direction:column;gap:1.5rem}}.wizard__stepper .stepper__step{display:flex;align-items:center;gap:.75rem;cursor:pointer;transition:all .3s ease;opacity:.5}.wizard__stepper .stepper__step--selected{opacity:1}.wizard__stepper .stepper__step--selected .stepper__step-icon{background:linear-gradient(135deg,#a855f7,#14b8a6)!important;border-color:transparent!important;box-shadow:0 0 15px #a855f780!important;color:#fff!important}.wizard__stepper .stepper__step--selected .stepper__step-label{color:#fff!important;font-weight:600!important}.wizard__stepper .stepper__step--completed{opacity:.8}.wizard__stepper .stepper__step--completed .stepper__step-icon{background:#14b8a633!important;border-color:#14b8a6!important;color:#14b8a6!important}.wizard__stepper .stepper__step-icon{width:2.25rem!important;height:2.25rem!important;border-radius:50%!important;border:2px solid rgba(255,255,255,.15)!important;background:#0f172a99!important;color:#94a3b8!important;display:flex!important;align-items:center!important;justify-content:center!important;font-weight:700!important;font-size:.875rem!important;transition:all .3s ease!important}.wizard__stepper .stepper__step-label{font-size:.875rem!important;color:#94a3b8!important;font-weight:500!important;transition:all .3s ease!important;text-transform:capitalize!important}.wizard__footer .m-button-group{display:flex;justify-content:space-between;gap:1rem}.wizard__footer .m-button-group button{font-weight:600!important;font-size:.9375rem!important;padding:.75rem 1.75rem!important;border-radius:.75rem!important;transition:all .3s ease!important;cursor:pointer}.wizard__footer .m-button-group [name=next_step] button,.wizard__footer .m-button-group button:not([disabled]):not(.prev_step){background:linear-gradient(135deg,#a855f7,#7c3aed)!important;color:#fff!important;border:none!important;box-shadow:0 4px 12px #7c3aed4d!important}.wizard__footer .m-button-group [name=next_step] button:hover:not([disabled]),.wizard__footer .m-button-group button:not([disabled]):not(.prev_step):hover:not([disabled]){background:linear-gradient(135deg,#c084fc,#8b5cf6)!important;box-shadow:0 6px 20px #7c3aed80!important;transform:translateY(-2px)}.wizard__footer .m-button-group [name=prev_step] button{background:#ffffff0d!important;color:#e2e8f0!important;border:1px solid rgba(255,255,255,.08)!important}.wizard__footer .m-button-group [name=prev_step] button:hover:not([disabled]){background:#ffffff1a!important;transform:translateY(-2px)}.wizard__footer .m-button-group button[disabled]{background:#ffffff08!important;color:#ffffff26!important;border:1px solid rgba(255,255,255,.03)!important;box-shadow:none!important;cursor:not-allowed}:host{display:block;width:100%}.input-wrapper{display:flex;align-items:center;background:var(--m-background);height:calc(var(--input-size, 1em) * 2);min-height:calc(var(--input-size, 1em) * 2);border-width:max(1px,var(--input-size, 1em) * .0625);border-radius:calc(var(--input-size, 1em) * .4);padding:calc(var(--input-size, 1em) * .5) calc(var(--input-size, 1em) * .5);gap:calc(var(--input-size, 1em) * .375);font-size:var(--input-size, 1em);border-width:var(--m-input-border-width, 2px);border-radius:var(--m-input-radius, 4px);height:calc(var(--input-size, 1em) * 2.25);min-height:calc(var(--input-size, 1em) * 2.25);padding-top:0;padding-bottom:0;border-color:var(--m-input-color, var(--m-mm));transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease,opacity .2s ease}.input-wrapper:hover:not(:disabled){background-color:color-mix(in srgb,var(--m-input-color, var(--m-mm)) 6%,transparent)}.input-wrapper:focus-visible:not(:disabled),.input-wrapper:focus-within:not(:disabled){box-shadow:0 0 0 2px color-mix(in srgb,var(--m-input-color, var(--m-mm)) 20%,transparent)}.input-wrapper:disabled{opacity:.6;cursor:not-allowed}.input-wrapper{border-style:solid;backdrop-filter:var(--m-text-input-backdrop-filter, none);-webkit-backdrop-filter:var(--m-text-input-backdrop-filter, none);box-shadow:var(--m-text-input-shadow, none)}.input-wrapper:has(>m-one-button,>m-button,>.input-indicator,>.input-suffix,>m-icon:last-child){padding-right:0}.input-wrapper:focus-visible:not(:disabled),.input-wrapper:focus-within:not(:disabled){border-color:var(--m-text-input-focus-border, var(--m-focus));box-shadow:var(--m-text-input-shadow, none)}.input-wrapper:has(.error){border-color:var(--m-error);box-shadow:none}.input-wrapper:has(.error):focus-within{border-color:var(--m-error);box-shadow:none}.input-wrapper input,.input-wrapper textarea{flex:1;border:none;outline:none;background:transparent;color:var(--m-text);font-family:inherit;font-size:inherit;padding:0}.input-wrapper input:focus,.input-wrapper textarea:focus{border-color:transparent;box-shadow:none}.input-wrapper{width:100%;background:var(--m-password-input-background, var(--m-background));border-color:var(--m-password-input-border, var(--m-input-color, var(--m-mm)))}.input-wrapper:hover{border-color:var(--m-password-input-hover-border, color-mix(in srgb, var(--m-input-color, var(--m-mm)) 45%, rgba(0, 0, 0, .12)))}.input-wrapper .m-icon{--m-icon-size: 1.1em !important}.input-wrapper input{appearance:none;font-size:1em}.input-wrapper .m-one-button{height:100%;display:flex;align-items:center;justify-content:center;--m-button-size: 1em !important}\n"], dependencies: [{ kind: "component", type: LabelComponent, selector: "m-label", inputs: ["for", "placeholder", "required", "disabled", "color"] }, { kind: "component", type: ErrorsComponent, selector: "m-input-errors", inputs: ["errors"] }, { kind: "component", type: ButtonComponent, selector: "m-button,m-one-button", inputs: ["config", "color", "labelClass", "fullWidth", "url", "murl", "disabled", "variant", "name", "baseUrl", "one", "remote", "label", "noTranslate", "icon", "isRightIcon", "iconOnly", "stacked", "imgSrc", "nonClickable", "inverted", "type"], outputs: ["configChange", "clicked"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
49
|
+
}
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: PasswordInputComponent, decorators: [{
|
|
51
|
+
type: Component,
|
|
52
|
+
args: [{ selector: 'm-password-input', template: `
|
|
53
|
+
@if (config(); as text) {
|
|
54
|
+
<m-label
|
|
55
|
+
[for]="text.name"
|
|
56
|
+
[placeholder]="text.label"
|
|
57
|
+
[required]="required()"
|
|
58
|
+
[disabled]="disabled()"
|
|
59
|
+
/>
|
|
60
|
+
<div class="input-wrapper">
|
|
61
|
+
<input
|
|
62
|
+
[id]="text.name ?? ''"
|
|
63
|
+
[value]="value()"
|
|
64
|
+
#inputElement
|
|
65
|
+
[class.error]="showErrors()"
|
|
66
|
+
[disabled]="disabled()"
|
|
67
|
+
(input)="onInput($event)"
|
|
68
|
+
(focus)="isFocused.set(true)"
|
|
69
|
+
(blur)="isFocused.set(false); touched.set(true)"
|
|
70
|
+
[type]="type()"
|
|
71
|
+
/>
|
|
72
|
+
<m-one-button
|
|
73
|
+
[disabled]="disabled()"
|
|
74
|
+
[name]="button()"
|
|
75
|
+
[color]="iconColor()"
|
|
76
|
+
(clicked)="toggleType()"
|
|
77
|
+
/>
|
|
78
|
+
</div>
|
|
79
|
+
@if (showErrors()) {
|
|
80
|
+
<m-input-errors [errors]="errors()" />
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
`, imports: [LabelComponent, ErrorsComponent, ButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, styles: ["@keyframes toggle-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.02)}}@keyframes thumb-slide{0%{transform:translate(0) scale(1)}50%{transform:translate(.3em) scale(.9)}to{transform:translate(.6em) scale(1)}}@keyframes gradientWave{0%,to{background-position:0% 50%;transform:scale(1)}50%{background-position:100% 50%;transform:scale(1.05)}}@keyframes meshFlow{0%,to{background-position:0% 50%}25%{background-position:100% 0%}50%{background-position:100% 100%}75%{background-position:0% 100%}}@keyframes meshOverlay{0%,to{opacity:.1;transform:scale(1)}50%{opacity:.3;transform:scale(1.05)}}@keyframes plasmaEnergy{0%{transform:scale(1) rotate(0);filter:hue-rotate(0deg)}to{transform:scale(1.1) rotate(5deg);filter:hue-rotate(90deg)}}@keyframes plasmaOrbs{0%,to{transform:translate(0) scale(1);opacity:.6}25%{transform:translate(30px,-20px) scale(1.2);opacity:.8}50%{transform:translate(-20px,30px) scale(.8);opacity:.4}75%{transform:translate(20px,20px) scale(1.1);opacity:.7}}@keyframes floatParticles{0%{transform:translateY(100vh) rotate(0);opacity:0}10%{opacity:1}90%{opacity:1}to{transform:translateY(-100px) rotate(360deg);opacity:0}}@keyframes rotateGeometric{0%{transform:rotate(0) scale(1)}50%{transform:rotate(180deg) scale(1.2)}to{transform:rotate(360deg) scale(1)}}@keyframes crystalShimmer{0%,to{background-position:0% 50%;filter:brightness(1)}50%{background-position:100% 50%;filter:brightness(1.3)}}@keyframes crystalGrow{0%,to{transform:scale(1) rotate(0);opacity:.2}50%{transform:scale(1.5) rotate(45deg);opacity:.6}}@keyframes matrixRain{0%{transform:translateY(-100px);opacity:0}10%{opacity:1}90%{opacity:1}to{transform:translateY(calc(100vh + 100px));opacity:0}}@keyframes cyberGrid{0%{transform:translate(0)}to{transform:translate(50px,50px)}}@keyframes cyberScan{0%,to{transform:translate(-100%);opacity:0}10%{opacity:1}90%{opacity:1}to{transform:translate(100%)}}@keyframes hologramScan{0%{transform:translateY(-100%)}to{transform:translateY(100vh)}}@keyframes hologramSweep{0%{transform:translate(-100%)}50%{transform:translate(0)}to{transform:translate(100%)}}@keyframes waveMotion{0%,to{background-position:0% 50%}50%{background-position:100% 50%}}@keyframes waveRipple{0%,to{transform:scale(1) rotate(0);opacity:.3}50%{transform:scale(1.1) rotate(5deg);opacity:.6}}@keyframes auroraFlow{0%,to{transform:translate(0) scale(1);opacity:.3}33%{transform:translate(50px) scale(1.2);opacity:.6}66%{transform:translate(-30px) scale(.9);opacity:.4}}@keyframes nebulaGlow{0%{transform:scale(1) rotate(0);opacity:.4}to{transform:scale(1.3) rotate(10deg);opacity:.7}}@keyframes pulseBackground{0%{transform:scale(1);opacity:.8}to{transform:scale(1.02);opacity:1}}@keyframes neonPulse{0%{transform:scale(1);opacity:.6}to{transform:scale(1.2);opacity:1}}@keyframes spiralRotate{0%{transform:translate(-50%,-50%) rotate(0) scale(1)}to{transform:translate(-50%,-50%) rotate(360deg) scale(1.1)}}@keyframes fireFlicker{0%,to{background-position:0% 50%;filter:brightness(1) hue-rotate(0deg)}25%{background-position:50% 25%;filter:brightness(1.2) hue-rotate(10deg)}50%{background-position:100% 50%;filter:brightness(.9) hue-rotate(-5deg)}75%{background-position:50% 75%;filter:brightness(1.1) hue-rotate(5deg)}}@keyframes fireParticles{0%,to{transform:translateY(0) scale(1);opacity:.8}50%{transform:translateY(-20px) scale(1.1);opacity:.4}}@keyframes electricStorm{0%,to{filter:brightness(1) contrast(1)}25%{filter:brightness(1.3) contrast(1.2)}50%{filter:brightness(.8) contrast(1.1)}75%{filter:brightness(1.2) contrast(1.3)}}@keyframes electricBolt{0%,90%,to{opacity:0;transform:scale(1)}5%,85%{opacity:1;transform:scale(1.2)}10%,80%{opacity:.7;transform:scale(.9)}}@keyframes galaxyRotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes starField{0%,to{opacity:.3;transform:translate(-50%,-50%) scale(1)}50%{opacity:.8;transform:translate(-50%,-50%) scale(1.1)}}@keyframes liquidFlow{0%,to{background-position:0% 50%}33%{background-position:70% 30%}66%{background-position:30% 70%}}@keyframes liquidDrops{0%,to{transform:translateY(0) scale(1);opacity:.6}50%{transform:translateY(-10px) scale(1.2);opacity:.3}}@keyframes glitchBase{0%,to{filter:hue-rotate(0deg) saturate(1)}25%{filter:hue-rotate(90deg) saturate(1.2)}50%{filter:hue-rotate(180deg) saturate(.8)}75%{filter:hue-rotate(270deg) saturate(1.1)}}@keyframes glitchDistortion{0%,90%,to{transform:translate(0);opacity:.1}2%,5%,8%{transform:translate(2px);opacity:.3}3%,6%{transform:translate(-2px);opacity:.2}}@keyframes prismShift{0%,to{background-position:0% 50%;filter:hue-rotate(0deg)}33%{background-position:100% 0%;filter:hue-rotate(120deg)}66%{background-position:0% 100%;filter:hue-rotate(240deg)}}@keyframes prismRotate{0%{transform:rotate(0) scale(1);opacity:.3}to{transform:rotate(360deg) scale(1.1);opacity:.6}}m-frame,m-carousel,m-one-carousel{display:block}.wizard__stepper .stepper{display:flex;flex-direction:row;gap:.5rem}@media(min-width:992px){.wizard__stepper .stepper{flex-direction:column;gap:1.5rem}}.wizard__stepper .stepper__step{display:flex;align-items:center;gap:.75rem;cursor:pointer;transition:all .3s ease;opacity:.5}.wizard__stepper .stepper__step--selected{opacity:1}.wizard__stepper .stepper__step--selected .stepper__step-icon{background:linear-gradient(135deg,#a855f7,#14b8a6)!important;border-color:transparent!important;box-shadow:0 0 15px #a855f780!important;color:#fff!important}.wizard__stepper .stepper__step--selected .stepper__step-label{color:#fff!important;font-weight:600!important}.wizard__stepper .stepper__step--completed{opacity:.8}.wizard__stepper .stepper__step--completed .stepper__step-icon{background:#14b8a633!important;border-color:#14b8a6!important;color:#14b8a6!important}.wizard__stepper .stepper__step-icon{width:2.25rem!important;height:2.25rem!important;border-radius:50%!important;border:2px solid rgba(255,255,255,.15)!important;background:#0f172a99!important;color:#94a3b8!important;display:flex!important;align-items:center!important;justify-content:center!important;font-weight:700!important;font-size:.875rem!important;transition:all .3s ease!important}.wizard__stepper .stepper__step-label{font-size:.875rem!important;color:#94a3b8!important;font-weight:500!important;transition:all .3s ease!important;text-transform:capitalize!important}.wizard__footer .m-button-group{display:flex;justify-content:space-between;gap:1rem}.wizard__footer .m-button-group button{font-weight:600!important;font-size:.9375rem!important;padding:.75rem 1.75rem!important;border-radius:.75rem!important;transition:all .3s ease!important;cursor:pointer}.wizard__footer .m-button-group [name=next_step] button,.wizard__footer .m-button-group button:not([disabled]):not(.prev_step){background:linear-gradient(135deg,#a855f7,#7c3aed)!important;color:#fff!important;border:none!important;box-shadow:0 4px 12px #7c3aed4d!important}.wizard__footer .m-button-group [name=next_step] button:hover:not([disabled]),.wizard__footer .m-button-group button:not([disabled]):not(.prev_step):hover:not([disabled]){background:linear-gradient(135deg,#c084fc,#8b5cf6)!important;box-shadow:0 6px 20px #7c3aed80!important;transform:translateY(-2px)}.wizard__footer .m-button-group [name=prev_step] button{background:#ffffff0d!important;color:#e2e8f0!important;border:1px solid rgba(255,255,255,.08)!important}.wizard__footer .m-button-group [name=prev_step] button:hover:not([disabled]){background:#ffffff1a!important;transform:translateY(-2px)}.wizard__footer .m-button-group button[disabled]{background:#ffffff08!important;color:#ffffff26!important;border:1px solid rgba(255,255,255,.03)!important;box-shadow:none!important;cursor:not-allowed}:host{display:block;width:100%}.input-wrapper{display:flex;align-items:center;background:var(--m-background);height:calc(var(--input-size, 1em) * 2);min-height:calc(var(--input-size, 1em) * 2);border-width:max(1px,var(--input-size, 1em) * .0625);border-radius:calc(var(--input-size, 1em) * .4);padding:calc(var(--input-size, 1em) * .5) calc(var(--input-size, 1em) * .5);gap:calc(var(--input-size, 1em) * .375);font-size:var(--input-size, 1em);border-width:var(--m-input-border-width, 2px);border-radius:var(--m-input-radius, 4px);height:calc(var(--input-size, 1em) * 2.25);min-height:calc(var(--input-size, 1em) * 2.25);padding-top:0;padding-bottom:0;border-color:var(--m-input-color, var(--m-mm));transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease,opacity .2s ease}.input-wrapper:hover:not(:disabled){background-color:color-mix(in srgb,var(--m-input-color, var(--m-mm)) 6%,transparent)}.input-wrapper:focus-visible:not(:disabled),.input-wrapper:focus-within:not(:disabled){box-shadow:0 0 0 2px color-mix(in srgb,var(--m-input-color, var(--m-mm)) 20%,transparent)}.input-wrapper:disabled{opacity:.6;cursor:not-allowed}.input-wrapper{border-style:solid;backdrop-filter:var(--m-text-input-backdrop-filter, none);-webkit-backdrop-filter:var(--m-text-input-backdrop-filter, none);box-shadow:var(--m-text-input-shadow, none)}.input-wrapper:has(>m-one-button,>m-button,>.input-indicator,>.input-suffix,>m-icon:last-child){padding-right:0}.input-wrapper:focus-visible:not(:disabled),.input-wrapper:focus-within:not(:disabled){border-color:var(--m-text-input-focus-border, var(--m-focus));box-shadow:var(--m-text-input-shadow, none)}.input-wrapper:has(.error){border-color:var(--m-error);box-shadow:none}.input-wrapper:has(.error):focus-within{border-color:var(--m-error);box-shadow:none}.input-wrapper input,.input-wrapper textarea{flex:1;border:none;outline:none;background:transparent;color:var(--m-text);font-family:inherit;font-size:inherit;padding:0}.input-wrapper input:focus,.input-wrapper textarea:focus{border-color:transparent;box-shadow:none}.input-wrapper{width:100%;background:var(--m-password-input-background, var(--m-background));border-color:var(--m-password-input-border, var(--m-input-color, var(--m-mm)))}.input-wrapper:hover{border-color:var(--m-password-input-hover-border, color-mix(in srgb, var(--m-input-color, var(--m-mm)) 45%, rgba(0, 0, 0, .12)))}.input-wrapper .m-icon{--m-icon-size: 1.1em !important}.input-wrapper input{appearance:none;font-size:1em}.input-wrapper .m-one-button{height:100%;display:flex;align-items:center;justify-content:center;--m-button-size: 1em !important}\n"] }]
|
|
84
|
+
}] });
|
|
85
|
+
|
|
86
|
+
export { PasswordInputComponent };
|
|
87
|
+
//# sourceMappingURL=magmonium-one-password-BOsM6-nh.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"magmonium-one-password-BOsM6-nh.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/text/password.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n signal,\n} from '@angular/core';\nimport { LabelComponent } from '../label';\nimport { ErrorsComponent } from '../errors';\nimport { BaseTextInputComponent } from './base-text';\nimport { ButtonComponent } from '../../../button/ui/button';\n\n@Component({\n selector: 'm-password-input',\n template: `\n @if (config(); as text) {\n <m-label\n [for]=\"text.name\"\n [placeholder]=\"text.label\"\n [required]=\"required()\"\n [disabled]=\"disabled()\"\n />\n <div class=\"input-wrapper\">\n <input\n [id]=\"text.name ?? ''\"\n [value]=\"value()\"\n #inputElement\n [class.error]=\"showErrors()\"\n [disabled]=\"disabled()\"\n (input)=\"onInput($event)\"\n (focus)=\"isFocused.set(true)\"\n (blur)=\"isFocused.set(false); touched.set(true)\"\n [type]=\"type()\"\n />\n <m-one-button\n [disabled]=\"disabled()\"\n [name]=\"button()\"\n [color]=\"iconColor()\"\n (clicked)=\"toggleType()\"\n />\n </div>\n @if (showErrors()) {\n <m-input-errors [errors]=\"errors()\" />\n }\n }\n `,\n imports: [LabelComponent, ErrorsComponent, ButtonComponent],\n styleUrl: './password.sass',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class PasswordInputComponent extends BaseTextInputComponent {\n isPassword = signal<boolean>(true);\n type = computed(() => (this.isPassword() ? 'password' : 'text'));\n button = computed(() => (!this.isPassword() ? 'eye' : 'eye_close'));\n\n protected toggleType() {\n this.isPassword.update((now) => !now);\n }\n\n protected onInput(event: Event): void {\n const target = event.target as HTMLInputElement;\n this.setValue(target?.value ?? '');\n }\n}\n"],"names":[],"mappings":";;;;AAiDM,MAAO,sBAAuB,SAAQ,sBAAsB,CAAA;AAChE,IAAA,UAAU,GAAG,MAAM,CAAU,IAAI,iFAAC;IAClC,IAAI,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,UAAU,EAAE,GAAG,UAAU,GAAG,MAAM,CAAC,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;IAChE,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,KAAK,GAAG,WAAW,CAAC,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,QAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;IAEzD,UAAU,GAAA;AAClB,QAAA,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC;IACvC;AAEU,IAAA,OAAO,CAAC,KAAY,EAAA;AAC5B,QAAA,MAAM,MAAM,GAAG,KAAK,CAAC,MAA0B;QAC/C,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC;IACpC;uGAZW,sBAAsB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAA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AAA,EAAA,CAAA;kBAtClC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EAAA,QAAA,EAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BT,EAAA,OAAA,EACQ,CAAC,cAAc,EAAE,eAAe,EAAE,eAAe,CAAC,EAAA,eAAA,EAE1C,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,mjUAAA,CAAA,EAAA;;;;;"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { model, input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { B as BaseInputComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-Bc6ZjJKk.mjs';
|
|
4
|
+
|
|
5
|
+
class ToggleInputComponent extends BaseInputComponent {
|
|
6
|
+
value = undefined;
|
|
7
|
+
checked = model(false);
|
|
8
|
+
config = input(...(ngDevMode ? [undefined, { debugName: "config" }] : /* istanbul ignore next */ []));
|
|
9
|
+
required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
|
|
10
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
11
|
+
invalid = input(false, ...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
|
|
12
|
+
touched = model(false, ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
|
|
13
|
+
focused = input(false, ...(ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []));
|
|
14
|
+
errors = input([], ...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
|
|
15
|
+
showErrors = computed(() => this.touched() && this.invalid(), ...(ngDevMode ? [{ debugName: "showErrors" }] : /* istanbul ignore next */ []));
|
|
16
|
+
/** Required by FormCheckboxControl interface */
|
|
17
|
+
// public readonly checked: ModelSignal<boolean> = this.value; // Already defined above
|
|
18
|
+
constructor() {
|
|
19
|
+
super();
|
|
20
|
+
}
|
|
21
|
+
onChange(event) {
|
|
22
|
+
const target = event.target;
|
|
23
|
+
this.checked.set(target?.checked ?? false);
|
|
24
|
+
}
|
|
25
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ToggleInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: ToggleInputComponent, isStandalone: true, selector: "m-toggle-input", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, focused: { classPropertyName: "focused", publicName: "focused", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange", touched: "touchedChange" }, usesInheritance: true, ngImport: i0, template: `
|
|
27
|
+
@if (config(); as toggle) {
|
|
28
|
+
<div class="toggle">
|
|
29
|
+
<input
|
|
30
|
+
[id]="toggle.name ?? ''"
|
|
31
|
+
[checked]="checked()"
|
|
32
|
+
(change)="onChange($event)"
|
|
33
|
+
type="checkbox"
|
|
34
|
+
/>
|
|
35
|
+
<label [attr.for]="toggle.name || null">{{
|
|
36
|
+
toggle.label | translate
|
|
37
|
+
}}</label>
|
|
38
|
+
</div>
|
|
39
|
+
}
|
|
40
|
+
`, isInline: true, styles: ["@keyframes toggle-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.02)}}@keyframes thumb-slide{0%{transform:translate(0) scale(1)}50%{transform:translate(.3em) scale(.9)}to{transform:translate(.6em) scale(1)}}@keyframes gradientWave{0%,to{background-position:0% 50%;transform:scale(1)}50%{background-position:100% 50%;transform:scale(1.05)}}@keyframes meshFlow{0%,to{background-position:0% 50%}25%{background-position:100% 0%}50%{background-position:100% 100%}75%{background-position:0% 100%}}@keyframes meshOverlay{0%,to{opacity:.1;transform:scale(1)}50%{opacity:.3;transform:scale(1.05)}}@keyframes plasmaEnergy{0%{transform:scale(1) rotate(0);filter:hue-rotate(0deg)}to{transform:scale(1.1) rotate(5deg);filter:hue-rotate(90deg)}}@keyframes plasmaOrbs{0%,to{transform:translate(0) scale(1);opacity:.6}25%{transform:translate(30px,-20px) scale(1.2);opacity:.8}50%{transform:translate(-20px,30px) scale(.8);opacity:.4}75%{transform:translate(20px,20px) scale(1.1);opacity:.7}}@keyframes floatParticles{0%{transform:translateY(100vh) rotate(0);opacity:0}10%{opacity:1}90%{opacity:1}to{transform:translateY(-100px) rotate(360deg);opacity:0}}@keyframes rotateGeometric{0%{transform:rotate(0) scale(1)}50%{transform:rotate(180deg) scale(1.2)}to{transform:rotate(360deg) scale(1)}}@keyframes crystalShimmer{0%,to{background-position:0% 50%;filter:brightness(1)}50%{background-position:100% 50%;filter:brightness(1.3)}}@keyframes crystalGrow{0%,to{transform:scale(1) rotate(0);opacity:.2}50%{transform:scale(1.5) rotate(45deg);opacity:.6}}@keyframes matrixRain{0%{transform:translateY(-100px);opacity:0}10%{opacity:1}90%{opacity:1}to{transform:translateY(calc(100vh + 100px));opacity:0}}@keyframes cyberGrid{0%{transform:translate(0)}to{transform:translate(50px,50px)}}@keyframes cyberScan{0%,to{transform:translate(-100%);opacity:0}10%{opacity:1}90%{opacity:1}to{transform:translate(100%)}}@keyframes hologramScan{0%{transform:translateY(-100%)}to{transform:translateY(100vh)}}@keyframes hologramSweep{0%{transform:translate(-100%)}50%{transform:translate(0)}to{transform:translate(100%)}}@keyframes waveMotion{0%,to{background-position:0% 50%}50%{background-position:100% 50%}}@keyframes waveRipple{0%,to{transform:scale(1) rotate(0);opacity:.3}50%{transform:scale(1.1) rotate(5deg);opacity:.6}}@keyframes auroraFlow{0%,to{transform:translate(0) scale(1);opacity:.3}33%{transform:translate(50px) scale(1.2);opacity:.6}66%{transform:translate(-30px) scale(.9);opacity:.4}}@keyframes nebulaGlow{0%{transform:scale(1) rotate(0);opacity:.4}to{transform:scale(1.3) rotate(10deg);opacity:.7}}@keyframes pulseBackground{0%{transform:scale(1);opacity:.8}to{transform:scale(1.02);opacity:1}}@keyframes neonPulse{0%{transform:scale(1);opacity:.6}to{transform:scale(1.2);opacity:1}}@keyframes spiralRotate{0%{transform:translate(-50%,-50%) rotate(0) scale(1)}to{transform:translate(-50%,-50%) rotate(360deg) scale(1.1)}}@keyframes fireFlicker{0%,to{background-position:0% 50%;filter:brightness(1) hue-rotate(0deg)}25%{background-position:50% 25%;filter:brightness(1.2) hue-rotate(10deg)}50%{background-position:100% 50%;filter:brightness(.9) hue-rotate(-5deg)}75%{background-position:50% 75%;filter:brightness(1.1) hue-rotate(5deg)}}@keyframes fireParticles{0%,to{transform:translateY(0) scale(1);opacity:.8}50%{transform:translateY(-20px) scale(1.1);opacity:.4}}@keyframes electricStorm{0%,to{filter:brightness(1) contrast(1)}25%{filter:brightness(1.3) contrast(1.2)}50%{filter:brightness(.8) contrast(1.1)}75%{filter:brightness(1.2) contrast(1.3)}}@keyframes electricBolt{0%,90%,to{opacity:0;transform:scale(1)}5%,85%{opacity:1;transform:scale(1.2)}10%,80%{opacity:.7;transform:scale(.9)}}@keyframes galaxyRotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes starField{0%,to{opacity:.3;transform:translate(-50%,-50%) scale(1)}50%{opacity:.8;transform:translate(-50%,-50%) scale(1.1)}}@keyframes liquidFlow{0%,to{background-position:0% 50%}33%{background-position:70% 30%}66%{background-position:30% 70%}}@keyframes liquidDrops{0%,to{transform:translateY(0) scale(1);opacity:.6}50%{transform:translateY(-10px) scale(1.2);opacity:.3}}@keyframes glitchBase{0%,to{filter:hue-rotate(0deg) saturate(1)}25%{filter:hue-rotate(90deg) saturate(1.2)}50%{filter:hue-rotate(180deg) saturate(.8)}75%{filter:hue-rotate(270deg) saturate(1.1)}}@keyframes glitchDistortion{0%,90%,to{transform:translate(0);opacity:.1}2%,5%,8%{transform:translate(2px);opacity:.3}3%,6%{transform:translate(-2px);opacity:.2}}@keyframes prismShift{0%,to{background-position:0% 50%;filter:hue-rotate(0deg)}33%{background-position:100% 0%;filter:hue-rotate(120deg)}66%{background-position:0% 100%;filter:hue-rotate(240deg)}}@keyframes prismRotate{0%{transform:rotate(0) scale(1);opacity:.3}to{transform:rotate(360deg) scale(1.1);opacity:.6}}m-frame,m-carousel,m-one-carousel{display:block}.wizard__stepper .stepper{display:flex;flex-direction:row;gap:.5rem}@media(min-width:992px){.wizard__stepper .stepper{flex-direction:column;gap:1.5rem}}.wizard__stepper .stepper__step{display:flex;align-items:center;gap:.75rem;cursor:pointer;transition:all .3s ease;opacity:.5}.wizard__stepper .stepper__step--selected{opacity:1}.wizard__stepper .stepper__step--selected .stepper__step-icon{background:linear-gradient(135deg,#a855f7,#14b8a6)!important;border-color:transparent!important;box-shadow:0 0 15px #a855f780!important;color:#fff!important}.wizard__stepper .stepper__step--selected .stepper__step-label{color:#fff!important;font-weight:600!important}.wizard__stepper .stepper__step--completed{opacity:.8}.wizard__stepper .stepper__step--completed .stepper__step-icon{background:#14b8a633!important;border-color:#14b8a6!important;color:#14b8a6!important}.wizard__stepper .stepper__step-icon{width:2.25rem!important;height:2.25rem!important;border-radius:50%!important;border:2px solid rgba(255,255,255,.15)!important;background:#0f172a99!important;color:#94a3b8!important;display:flex!important;align-items:center!important;justify-content:center!important;font-weight:700!important;font-size:.875rem!important;transition:all .3s ease!important}.wizard__stepper .stepper__step-label{font-size:.875rem!important;color:#94a3b8!important;font-weight:500!important;transition:all .3s ease!important;text-transform:capitalize!important}.wizard__footer .m-button-group{display:flex;justify-content:space-between;gap:1rem}.wizard__footer .m-button-group button{font-weight:600!important;font-size:.9375rem!important;padding:.75rem 1.75rem!important;border-radius:.75rem!important;transition:all .3s ease!important;cursor:pointer}.wizard__footer .m-button-group [name=next_step] button,.wizard__footer .m-button-group button:not([disabled]):not(.prev_step){background:linear-gradient(135deg,#a855f7,#7c3aed)!important;color:#fff!important;border:none!important;box-shadow:0 4px 12px #7c3aed4d!important}.wizard__footer .m-button-group [name=next_step] button:hover:not([disabled]),.wizard__footer .m-button-group button:not([disabled]):not(.prev_step):hover:not([disabled]){background:linear-gradient(135deg,#c084fc,#8b5cf6)!important;box-shadow:0 6px 20px #7c3aed80!important;transform:translateY(-2px)}.wizard__footer .m-button-group [name=prev_step] button{background:#ffffff0d!important;color:#e2e8f0!important;border:1px solid rgba(255,255,255,.08)!important}.wizard__footer .m-button-group [name=prev_step] button:hover:not([disabled]){background:#ffffff1a!important;transform:translateY(-2px)}.wizard__footer .m-button-group button[disabled]{background:#ffffff08!important;color:#ffffff26!important;border:1px solid rgba(255,255,255,.03)!important;box-shadow:none!important;cursor:not-allowed}:host{display:inline-block}.toggle{display:inline-flex;align-items:center;gap:.375em;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.toggle input[type=checkbox]{appearance:none;-webkit-appearance:none;-moz-appearance:none;position:relative;width:1.6em;height:1em;background-color:color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 15%,transparent 85%);border-radius:.5em;border:max(1px,1em * .0625) solid color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 20%,transparent 80%);cursor:pointer;outline:none;box-sizing:content-box;flex-shrink:0;margin:0;transition:background-color .25s cubic-bezier(.4,0,.2,1),box-shadow .25s cubic-bezier(.4,0,.2,1),border-color .2s ease;will-change:background-color,box-shadow}.toggle input[type=checkbox]:after{content:\"\";position:absolute;top:.125em;left:.125em;width:.75em;height:.75em;background-color:var(--m-toggle-input-color-contrast, #ffffff);border-radius:50%;transition:transform .25s cubic-bezier(.4,0,.2,1),box-shadow .15s ease;will-change:transform;box-shadow:0 .1em .1666666667em #0003,0 .05em .0833333333em #0000001a}.toggle label{font-size:.8em;line-height:1.2;cursor:pointer;margin:0;color:color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 70%,black 30%);transition:color .2s ease,font-weight .15s ease}.toggle input[type=checkbox]:hover:not(:disabled){background-color:color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 25%,transparent 75%);border-color:color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 40%,transparent 60%)}.toggle input[type=checkbox]:hover:not(:disabled):after{box-shadow:0 .125em .2em #00000040,0 .0625em .1em #00000026}.toggle input[type=checkbox]:focus{box-shadow:0 0 0 .2em color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 20%,transparent 80%);outline:none}.toggle input[type=checkbox]:active:not(:disabled):after{transform:scaleX(1.15)}.toggle input[type=checkbox]:checked{background-color:var(--m-toggle-input-color, #4169e1);border-color:var(--m-toggle-input-color, #4169e1)}.toggle input[type=checkbox]:checked:after{transform:translate(.6em);background-color:var(--m-toggle-input-color-contrast, #ffffff)}.toggle input[type=checkbox]:checked:hover:not(:disabled){background-color:color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 90%,black 10%);border-color:color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 90%,black 10%)}.toggle input[type=checkbox]:checked:active:not(:disabled):after{transform:translate(.6em) scaleX(1.15)}.toggle input[type=checkbox]:checked:focus{box-shadow:0 0 0 .2em color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 25%,transparent 75%)}.toggle input[type=checkbox]:checked+label{color:var(--m-toggle-input-color, #4169e1)}.toggle input[type=checkbox]:disabled{opacity:.5;cursor:not-allowed;background-color:color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 10%,transparent 90%);border-color:color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 15%,transparent 85%)}.toggle input[type=checkbox]:disabled+label{opacity:.5;cursor:not-allowed}.toggle input[type=checkbox]:disabled:checked{background-color:color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 50%,transparent 50%)}.toggle{min-height:1em}.toggle--row{flex-direction:row}\n"], dependencies: [{ kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
41
|
+
}
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ToggleInputComponent, decorators: [{
|
|
43
|
+
type: Component,
|
|
44
|
+
args: [{ selector: 'm-toggle-input', template: `
|
|
45
|
+
@if (config(); as toggle) {
|
|
46
|
+
<div class="toggle">
|
|
47
|
+
<input
|
|
48
|
+
[id]="toggle.name ?? ''"
|
|
49
|
+
[checked]="checked()"
|
|
50
|
+
(change)="onChange($event)"
|
|
51
|
+
type="checkbox"
|
|
52
|
+
/>
|
|
53
|
+
<label [attr.for]="toggle.name || null">{{
|
|
54
|
+
toggle.label | translate
|
|
55
|
+
}}</label>
|
|
56
|
+
</div>
|
|
57
|
+
}
|
|
58
|
+
`, imports: [TranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, styles: ["@keyframes toggle-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.02)}}@keyframes thumb-slide{0%{transform:translate(0) scale(1)}50%{transform:translate(.3em) scale(.9)}to{transform:translate(.6em) scale(1)}}@keyframes gradientWave{0%,to{background-position:0% 50%;transform:scale(1)}50%{background-position:100% 50%;transform:scale(1.05)}}@keyframes meshFlow{0%,to{background-position:0% 50%}25%{background-position:100% 0%}50%{background-position:100% 100%}75%{background-position:0% 100%}}@keyframes meshOverlay{0%,to{opacity:.1;transform:scale(1)}50%{opacity:.3;transform:scale(1.05)}}@keyframes plasmaEnergy{0%{transform:scale(1) rotate(0);filter:hue-rotate(0deg)}to{transform:scale(1.1) rotate(5deg);filter:hue-rotate(90deg)}}@keyframes plasmaOrbs{0%,to{transform:translate(0) scale(1);opacity:.6}25%{transform:translate(30px,-20px) scale(1.2);opacity:.8}50%{transform:translate(-20px,30px) scale(.8);opacity:.4}75%{transform:translate(20px,20px) scale(1.1);opacity:.7}}@keyframes floatParticles{0%{transform:translateY(100vh) rotate(0);opacity:0}10%{opacity:1}90%{opacity:1}to{transform:translateY(-100px) rotate(360deg);opacity:0}}@keyframes rotateGeometric{0%{transform:rotate(0) scale(1)}50%{transform:rotate(180deg) scale(1.2)}to{transform:rotate(360deg) scale(1)}}@keyframes crystalShimmer{0%,to{background-position:0% 50%;filter:brightness(1)}50%{background-position:100% 50%;filter:brightness(1.3)}}@keyframes crystalGrow{0%,to{transform:scale(1) rotate(0);opacity:.2}50%{transform:scale(1.5) rotate(45deg);opacity:.6}}@keyframes matrixRain{0%{transform:translateY(-100px);opacity:0}10%{opacity:1}90%{opacity:1}to{transform:translateY(calc(100vh + 100px));opacity:0}}@keyframes cyberGrid{0%{transform:translate(0)}to{transform:translate(50px,50px)}}@keyframes cyberScan{0%,to{transform:translate(-100%);opacity:0}10%{opacity:1}90%{opacity:1}to{transform:translate(100%)}}@keyframes hologramScan{0%{transform:translateY(-100%)}to{transform:translateY(100vh)}}@keyframes hologramSweep{0%{transform:translate(-100%)}50%{transform:translate(0)}to{transform:translate(100%)}}@keyframes waveMotion{0%,to{background-position:0% 50%}50%{background-position:100% 50%}}@keyframes waveRipple{0%,to{transform:scale(1) rotate(0);opacity:.3}50%{transform:scale(1.1) rotate(5deg);opacity:.6}}@keyframes auroraFlow{0%,to{transform:translate(0) scale(1);opacity:.3}33%{transform:translate(50px) scale(1.2);opacity:.6}66%{transform:translate(-30px) scale(.9);opacity:.4}}@keyframes nebulaGlow{0%{transform:scale(1) rotate(0);opacity:.4}to{transform:scale(1.3) rotate(10deg);opacity:.7}}@keyframes pulseBackground{0%{transform:scale(1);opacity:.8}to{transform:scale(1.02);opacity:1}}@keyframes neonPulse{0%{transform:scale(1);opacity:.6}to{transform:scale(1.2);opacity:1}}@keyframes spiralRotate{0%{transform:translate(-50%,-50%) rotate(0) scale(1)}to{transform:translate(-50%,-50%) rotate(360deg) scale(1.1)}}@keyframes fireFlicker{0%,to{background-position:0% 50%;filter:brightness(1) hue-rotate(0deg)}25%{background-position:50% 25%;filter:brightness(1.2) hue-rotate(10deg)}50%{background-position:100% 50%;filter:brightness(.9) hue-rotate(-5deg)}75%{background-position:50% 75%;filter:brightness(1.1) hue-rotate(5deg)}}@keyframes fireParticles{0%,to{transform:translateY(0) scale(1);opacity:.8}50%{transform:translateY(-20px) scale(1.1);opacity:.4}}@keyframes electricStorm{0%,to{filter:brightness(1) contrast(1)}25%{filter:brightness(1.3) contrast(1.2)}50%{filter:brightness(.8) contrast(1.1)}75%{filter:brightness(1.2) contrast(1.3)}}@keyframes electricBolt{0%,90%,to{opacity:0;transform:scale(1)}5%,85%{opacity:1;transform:scale(1.2)}10%,80%{opacity:.7;transform:scale(.9)}}@keyframes galaxyRotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes starField{0%,to{opacity:.3;transform:translate(-50%,-50%) scale(1)}50%{opacity:.8;transform:translate(-50%,-50%) scale(1.1)}}@keyframes liquidFlow{0%,to{background-position:0% 50%}33%{background-position:70% 30%}66%{background-position:30% 70%}}@keyframes liquidDrops{0%,to{transform:translateY(0) scale(1);opacity:.6}50%{transform:translateY(-10px) scale(1.2);opacity:.3}}@keyframes glitchBase{0%,to{filter:hue-rotate(0deg) saturate(1)}25%{filter:hue-rotate(90deg) saturate(1.2)}50%{filter:hue-rotate(180deg) saturate(.8)}75%{filter:hue-rotate(270deg) saturate(1.1)}}@keyframes glitchDistortion{0%,90%,to{transform:translate(0);opacity:.1}2%,5%,8%{transform:translate(2px);opacity:.3}3%,6%{transform:translate(-2px);opacity:.2}}@keyframes prismShift{0%,to{background-position:0% 50%;filter:hue-rotate(0deg)}33%{background-position:100% 0%;filter:hue-rotate(120deg)}66%{background-position:0% 100%;filter:hue-rotate(240deg)}}@keyframes prismRotate{0%{transform:rotate(0) scale(1);opacity:.3}to{transform:rotate(360deg) scale(1.1);opacity:.6}}m-frame,m-carousel,m-one-carousel{display:block}.wizard__stepper .stepper{display:flex;flex-direction:row;gap:.5rem}@media(min-width:992px){.wizard__stepper .stepper{flex-direction:column;gap:1.5rem}}.wizard__stepper .stepper__step{display:flex;align-items:center;gap:.75rem;cursor:pointer;transition:all .3s ease;opacity:.5}.wizard__stepper .stepper__step--selected{opacity:1}.wizard__stepper .stepper__step--selected .stepper__step-icon{background:linear-gradient(135deg,#a855f7,#14b8a6)!important;border-color:transparent!important;box-shadow:0 0 15px #a855f780!important;color:#fff!important}.wizard__stepper .stepper__step--selected .stepper__step-label{color:#fff!important;font-weight:600!important}.wizard__stepper .stepper__step--completed{opacity:.8}.wizard__stepper .stepper__step--completed .stepper__step-icon{background:#14b8a633!important;border-color:#14b8a6!important;color:#14b8a6!important}.wizard__stepper .stepper__step-icon{width:2.25rem!important;height:2.25rem!important;border-radius:50%!important;border:2px solid rgba(255,255,255,.15)!important;background:#0f172a99!important;color:#94a3b8!important;display:flex!important;align-items:center!important;justify-content:center!important;font-weight:700!important;font-size:.875rem!important;transition:all .3s ease!important}.wizard__stepper .stepper__step-label{font-size:.875rem!important;color:#94a3b8!important;font-weight:500!important;transition:all .3s ease!important;text-transform:capitalize!important}.wizard__footer .m-button-group{display:flex;justify-content:space-between;gap:1rem}.wizard__footer .m-button-group button{font-weight:600!important;font-size:.9375rem!important;padding:.75rem 1.75rem!important;border-radius:.75rem!important;transition:all .3s ease!important;cursor:pointer}.wizard__footer .m-button-group [name=next_step] button,.wizard__footer .m-button-group button:not([disabled]):not(.prev_step){background:linear-gradient(135deg,#a855f7,#7c3aed)!important;color:#fff!important;border:none!important;box-shadow:0 4px 12px #7c3aed4d!important}.wizard__footer .m-button-group [name=next_step] button:hover:not([disabled]),.wizard__footer .m-button-group button:not([disabled]):not(.prev_step):hover:not([disabled]){background:linear-gradient(135deg,#c084fc,#8b5cf6)!important;box-shadow:0 6px 20px #7c3aed80!important;transform:translateY(-2px)}.wizard__footer .m-button-group [name=prev_step] button{background:#ffffff0d!important;color:#e2e8f0!important;border:1px solid rgba(255,255,255,.08)!important}.wizard__footer .m-button-group [name=prev_step] button:hover:not([disabled]){background:#ffffff1a!important;transform:translateY(-2px)}.wizard__footer .m-button-group button[disabled]{background:#ffffff08!important;color:#ffffff26!important;border:1px solid rgba(255,255,255,.03)!important;box-shadow:none!important;cursor:not-allowed}:host{display:inline-block}.toggle{display:inline-flex;align-items:center;gap:.375em;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.toggle input[type=checkbox]{appearance:none;-webkit-appearance:none;-moz-appearance:none;position:relative;width:1.6em;height:1em;background-color:color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 15%,transparent 85%);border-radius:.5em;border:max(1px,1em * .0625) solid color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 20%,transparent 80%);cursor:pointer;outline:none;box-sizing:content-box;flex-shrink:0;margin:0;transition:background-color .25s cubic-bezier(.4,0,.2,1),box-shadow .25s cubic-bezier(.4,0,.2,1),border-color .2s ease;will-change:background-color,box-shadow}.toggle input[type=checkbox]:after{content:\"\";position:absolute;top:.125em;left:.125em;width:.75em;height:.75em;background-color:var(--m-toggle-input-color-contrast, #ffffff);border-radius:50%;transition:transform .25s cubic-bezier(.4,0,.2,1),box-shadow .15s ease;will-change:transform;box-shadow:0 .1em .1666666667em #0003,0 .05em .0833333333em #0000001a}.toggle label{font-size:.8em;line-height:1.2;cursor:pointer;margin:0;color:color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 70%,black 30%);transition:color .2s ease,font-weight .15s ease}.toggle input[type=checkbox]:hover:not(:disabled){background-color:color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 25%,transparent 75%);border-color:color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 40%,transparent 60%)}.toggle input[type=checkbox]:hover:not(:disabled):after{box-shadow:0 .125em .2em #00000040,0 .0625em .1em #00000026}.toggle input[type=checkbox]:focus{box-shadow:0 0 0 .2em color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 20%,transparent 80%);outline:none}.toggle input[type=checkbox]:active:not(:disabled):after{transform:scaleX(1.15)}.toggle input[type=checkbox]:checked{background-color:var(--m-toggle-input-color, #4169e1);border-color:var(--m-toggle-input-color, #4169e1)}.toggle input[type=checkbox]:checked:after{transform:translate(.6em);background-color:var(--m-toggle-input-color-contrast, #ffffff)}.toggle input[type=checkbox]:checked:hover:not(:disabled){background-color:color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 90%,black 10%);border-color:color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 90%,black 10%)}.toggle input[type=checkbox]:checked:active:not(:disabled):after{transform:translate(.6em) scaleX(1.15)}.toggle input[type=checkbox]:checked:focus{box-shadow:0 0 0 .2em color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 25%,transparent 75%)}.toggle input[type=checkbox]:checked+label{color:var(--m-toggle-input-color, #4169e1)}.toggle input[type=checkbox]:disabled{opacity:.5;cursor:not-allowed;background-color:color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 10%,transparent 90%);border-color:color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 15%,transparent 85%)}.toggle input[type=checkbox]:disabled+label{opacity:.5;cursor:not-allowed}.toggle input[type=checkbox]:disabled:checked{background-color:color-mix(in srgb,var(--m-toggle-input-color, #4169e1) 50%,transparent 50%)}.toggle{min-height:1em}.toggle--row{flex-direction:row}\n"] }]
|
|
59
|
+
}], ctorParameters: () => [], propDecorators: { checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }, { type: i0.Output, args: ["touchedChange"] }], focused: [{ type: i0.Input, args: [{ isSignal: true, alias: "focused", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }] } });
|
|
60
|
+
|
|
61
|
+
export { ToggleInputComponent };
|
|
62
|
+
//# sourceMappingURL=magmonium-one-toggle-DVSWH4qB.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"magmonium-one-toggle-DVSWH4qB.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/toggle/toggle.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n model,\n ModelSignal,\n} from '@angular/core';\nimport { ToggleInput } from '../../model/input';\nimport { TranslatePipe } from '../../../../pipe/translate';\nimport {\n FormCheckboxControl,\n ValidationError,\n WithOptionalField,\n} from '@angular/forms/signals';\nimport { BaseInputComponent } from '../../lib/base-input';\n\n@Component({\n selector: 'm-toggle-input',\n template: `\n @if (config(); as toggle) {\n <div class=\"toggle\">\n <input\n [id]=\"toggle.name ?? ''\"\n [checked]=\"checked()\"\n (change)=\"onChange($event)\"\n type=\"checkbox\"\n />\n <label [attr.for]=\"toggle.name || null\">{{\n toggle.label | translate\n }}</label>\n </div>\n }\n `,\n imports: [TranslatePipe],\n styleUrl: './toggle.sass',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ToggleInputComponent\n extends BaseInputComponent<ToggleInput>\n implements FormCheckboxControl\n{\n public value = undefined;\n public checked = model<boolean>(false) as ModelSignal<boolean>;\n public override config = input<Partial<ToggleInput> | undefined>();\n public override required = input<boolean>(false);\n public override disabled = input<boolean>(false);\n public override invalid = input<boolean>(false);\n public override touched = model<boolean>(false);\n public override focused = input<boolean>(false);\n public override errors = input<readonly WithOptionalField<ValidationError>[]>(\n []\n );\n public override showErrors = computed(() => this.touched() && this.invalid());\n\n /** Required by FormCheckboxControl interface */\n // public readonly checked: ModelSignal<boolean> = this.value; // Already defined above\n\n constructor() {\n super();\n }\n\n protected onChange(event: Event): void {\n const target = event.target as HTMLInputElement;\n this.checked.set(target?.checked ?? false);\n }\n}\n"],"names":[],"mappings":";;;;AAsCM,MAAO,oBACX,SAAQ,kBAA+B,CAAA;IAGhC,KAAK,GAAG,SAAS;AACjB,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,CAAyB;IAC9C,MAAM,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,QAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAoC;AAClD,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,+EAAC;AAChC,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,+EAAC;AAChC,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,8EAAC;AAC/B,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,8EAAC;AAC/B,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,8EAAC;AAC/B,IAAA,MAAM,GAAG,KAAK,CAC5B,EAAE,6EACH;AACe,IAAA,UAAU,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE,IAAI,IAAI,CAAC,OAAO,EAAE,iFAAC;;;AAK7E,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;IACT;AAEU,IAAA,QAAQ,CAAC,KAAY,EAAA;AAC7B,QAAA,MAAM,MAAM,GAAG,KAAK,CAAC,MAA0B;QAC/C,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,IAAI,KAAK,CAAC;IAC5C;uGA3BW,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAApB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,oBAA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,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,OAAA,EAAA,eAAA,EAAA,OAAA,EAAA,eAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAnBrB;;;;;;;;;;;;;;AAcT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,koVAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EACS,aAAa,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAIZ,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBArBhC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,EAAA,QAAA,EAChB;;;;;;;;;;;;;;AAcT,EAAA,CAAA,EAAA,OAAA,EACQ,CAAC,aAAa,CAAC,EAAA,eAAA,EAEP,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,koVAAA,CAAA,EAAA;;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { A as APP_CONTEXT_REF, c as ASSET_BASE_URL, d as AccordionBodyDirective, e as AccordionComponent, f as AccordionGroupComponent, g as ActionComponent, h as AnimatedGraphsComponent, i as AppCardComponent, j as AppRelationType, k as AppTileComponent, l as AssetStore, m as AssetUrlPipe, n as Assets, o as AutosizeDirective, p as BadgeComponent, q as BandingComponent, r as BaseArrayInputComponent, s as BaseRootWebComponent, t as BaseWebComponent, b as ButtonComponent, u as ButtonGroupComponent, C as COLOR_SCHEMES, v as COMPONENT_INPUT_REGISTRY, w as CardComponent, x as CardWrapperComponent, y as CarouselComponent, z as ChartComponent, D as CheckboxInputComponent, F as ClearableInputComponent, G as ColComponent, H as ColorPickerInputComponent, I as CommentItemComponent, J as CommentsApiService, K as CommentsComponent, M as CommentsStore, N as ComponentInputComponent, O as ComponentStepperComponent, P as ConfigComponent, Q as ConfirmComponent, R as ContextMenuComponent, S as CustomIconClass, U as CustomIconEditComponent, V as DEFAULT_SIZE, W as DashboardCardComponent, X as DateInputComponent, Y as DatePickerComponent, Z as DeviceService, _ as DomService, $ as Domain, a0 as DotGridComponent, a1 as DragListDirective, a2 as DragListItemDirective, a3 as DraggableDirective, a4 as DropdownInputComponent, a5 as FLEX_VARIANTS, a6 as FOLDER_PICK_LISTENER, a7 as FORM_ASSET_FOLDER, a8 as FileService, a9 as FileUploadDirective, aa as FileUploadInputComponent, ab as FlexComponent, ac as FlexItemComponent, ad as FormGroupComponent, ae as FrameComponent, af as FreezeService, ag as GEN_NAV_DISPLAY_ORDER, ah as GRID_BREAKPOINTS, ai as GetNavService, aj as HeaderComponent, ak as HighlightDirective, al as HttpService, am as ICON_SOURCE, an as IS_DESIGN_MODE, ao as IS_SIDE_PANEL, ap as IconComponent, aq as ImgComponent, ar as InputType, as as InstrumentScoreComponent, at as InterceptorObservables, au as JumbotronComponent, av as KeyValueComponent, aw as LAYOUT_ASSET_FOLDER, ax as LOGIN_COMPONENT, ay as LOGIN_FORM_GROUP, az as LOGIN_PROCESS, aA as LOGIN_STORE, aB as LanguageComponent, aC as LoginDataService, aD as LoginOneComponent, aE as LoginStore, aF as LogoComponent, aG as MAG_SOCKET_EVENT, aH as MHeroColorDirective, aI as MHeroComponent, aJ as MODAL_REF, aK as MODAL_STORE_REF, aL as MRefDirective, aM as MStepComponent, aN as ManifestEnrichmentService, aO as MenuComponent, aP as ModalDirective, aQ as ModalRef, aR as ModalStore, aS as MoneyPipe, aT as MultiRangeInputComponent, aU as NAV_DEFAULT_MURL, aV as NAV_DISPLAY_ORDER, aW as NAV_MAIN_BUTTONS, aX as NAV_STORE_REF, aY as NAV_WC_COMPONENTS, aZ as NAV_WIDGET_MAP, a_ as NavComponent, a$ as NavDetailsComponent, b0 as NavMenuComponent, b1 as NavStore, b2 as NavTrailComponent, b3 as NothingComponent, b4 as NotificationElementComponent, b5 as NotificationGroupComponent, b6 as NotificationPopupComponent, b7 as NotificationService, b8 as NotificationStore, b9 as NotificationType, ba as NotificationWidgetComponent, bb as ONE_ASSET_BASE_URL, bc as OPTIONS_SOURCE, bd as OneApp, be as OptionsSourceDirective, bf as OverlayBodyComponent, bg as OverlayRef, bh as OverlayService, bi as PaginationComponent, bj as PanelComponent, bk as PlaygroundComponent, bl as PositionDirective, bm as PwaInstallComponent, bn as ROOT_NAV, bo as RadioGroupComponent, bp as RadioInputComponent, bq as RangeInputComponent, br as RatingInputComponent, bs as ReactiveElementComponent, bt as RemoteComponent, bu as RemoteLoaderService, bv as ResizeElementComponent, bw as RouteContainer, bx as RowComponent, by as SEARCH_QUERY, bz as SEARCH_RESULTS_EVENT, bA as SECTION_ACCORDION_GROUP, bB as SECTION_FORM_CONTEXT, bC as SHARED_ICONS, bD as SIZE_CONTEXT, bE as ScoreComponent, bF as ScrollComponent, bG as ScrollService, bH as SearchPanelComponent, bI as SearchStore, bJ as SearchUserPanelComponent, bK as SectionAccordionDirective, bL as SectionAccordionGroupDirective, bM as SectionBackComponent, bN as SectionBadgesComponent, bO as SectionButtonGroupComponent, bP as SectionCardComponent, bQ as SectionComponent, bR as SectionFilterComponent, bS as SectionFooterComponent, bT as SectionFormComponent, bU as SectionFormItemComponent, bV as SectionHeaderComponent, bW as SectionSearchComponent, bX as SectionStepperComponent, bY as SectionTabsComponent, bZ as SectionToggleComponent, b_ as SectionToggleItemDirective, b$ as SelectableCardInputComponent, c0 as SelectorDirective, c1 as SettingsSearchBarComponent, c2 as SettingsSearchService, c3 as Sex, c4 as ShapeComponent, c5 as SharedStoreRegistry, c6 as SidePanelDirective, c7 as Size, c8 as SocketStore, c9 as SortComponent, ca as StepComponent, cb as StepperComponent, cc as StepsComponent, cd as StorageService, ce as StrokeLinecap, cf as StrokeLinejoin, cg as SummaryComponent, ch as SvgGeneratorComponent, ci as SvgGeneratorService, cj as SvgService, ck as TOTAL_COLUMNS, cl as TRANSLATION_SOURCE, cm as TableComponent, cn as TechnicalMeterComponent, co as TextInputComponent, cp as TextOutputComponent, cq as TextareaInputComponent, cr as ThemeComponent, cs as ThemeService, ct as ThemeStore, cu as TimeAgoPipe, cv as TimelineComponent, cw as ToggleButtonComponent, cx as ToggleInputComponent, cy as ToggleRadioInputComponent, cz as ToolTipDirective, cA as TooltipComponent, T as TranslatePipe, cB as TranslateService, cC as USER_STORE_REF, cD as USER_TAB_MAP, cE as UlComponent, cF as UniverseComponent, cG as UserApiService, cH as UserAvatarComponent, cI as UserComponent, cJ as UserNavComponent, cK as UserSettingsComponent, cL as UserStore, cM as WC_ROUTE_CHANGED_EVENT, cN as WC_SEARCH_GROUPS, cO as WIN_USER_TAB_HOOK, cP as WIN_USER_TAB_KEY, cQ as WatermarkComponent, cR as WcRouterStore, cS as WrapperInputComponent, cT as applyColorsToElement, cU as authGuard, cV as bootstrapMagApp, cW as bootstrapPwaInstall, cX as buildWcBaseUrl, cY as calculateLuminance, cZ as calculateRanks, c_ as checkFilterCondition, c$ as classListSignal, d0 as createMap, d1 as deriveAvatarGradient, d2 as deriveContrastColor, d3 as deriveOppositeColor, d4 as derivePropertyName, d5 as emailValidation, d6 as evaluate, d7 as evaluateBool, d8 as formatBadgeCount, d9 as fullName, da as generateClipPath, db as generateTransform, dc as getClassList, dd as getProperty, de as getScrollParent, df as getTierFromPreviewPath, dg as getUniqueId, dh as getValue, di as hasErrorComputed, dj as hexToRgb, dk as hslToRgb, dl as initMagmoniumApp, dm as initialNotificationState, dn as initials, dp as injectAuthenticate, dq as injectInstallApp, dr as injectParentSize, ds as injectScrollSticky, dt as isButtonName, du as isCancelledComputed, dv as isJson, dw as isLoadingComputed, dx as isLocalhost, dy as isSize, dz as isTierPreview, dA as isUrlLocalhost, dB as isWebComponent, dC as linkToId, dD as linkToNav, dE as loadingActions, dF as loginState, dG as mInterceptor, dH as manualValidation, dI as matchFieldValidation, dJ as maxLengthValidation, dK as maxValidation, dL as mergeUnique, dM as mergeUniqueBy, dN as mergeUniqueWith, dO as minAgeValidation, dP as minLengthValidation, dQ as minValidation, dR as miniMarkToHtml, dS as navToId, dT as parseColor, dU as patternValidation, dV as privateGuard, dW as processImageToSvg, dX as provideAppContext, dY as provideMagAppConfig, dZ as provideMagWcConfig, d_ as provideMagWcRoutes, d$ as provideModalComponents, e0 as provideNavWidgets, e1 as provideSearch, e2 as provideSizeContext, e3 as provideUserTabs, e4 as publicGuard, e5 as requiredValidation, e6 as resolveConfigAsset, e7 as resolvePallet, e8 as resolveSize, e9 as rgbToHex, ea as rgbToHsl, eb as setProperty, ec as settingsWidgets, ed as shouldShowBadge, ee as stringToColor, ef as toAttrBool, eg as toAttrNumber, eh as toCssLength, ei as toLength, ej as urlValidation } from './magmonium-one-magmonium-one-Bc6ZjJKk.mjs';
|
|
2
|
+
//# sourceMappingURL=magmonium-one.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"magmonium-one.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@magmonium/one",
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "Magmonium One — Angular design-system primitives for mm Apps",
|
|
5
|
+
"author": "magmonium",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/magmonium/nx.git",
|
|
10
|
+
"directory": "libs/one"
|
|
11
|
+
},
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"@angular/common": "^21.0.0",
|
|
17
|
+
"@angular/core": "^21.0.0",
|
|
18
|
+
"@angular/forms": "^21.0.0",
|
|
19
|
+
"@angular/router": "^21.0.0",
|
|
20
|
+
"@angular/platform-browser": "^21.0.0",
|
|
21
|
+
"@angular/elements": "^21.0.0",
|
|
22
|
+
"@ngrx/signals": "^21.0.0",
|
|
23
|
+
"rxjs": "^7.8.0",
|
|
24
|
+
"@magmonium/cli": "^0.7.8",
|
|
25
|
+
"socket.io-client": "^4.8.0"
|
|
26
|
+
},
|
|
27
|
+
"sideEffects": false,
|
|
28
|
+
"module": "fesm2022/magmonium-one.mjs",
|
|
29
|
+
"typings": "types/magmonium-one.d.ts",
|
|
30
|
+
"exports": {
|
|
31
|
+
"./package.json": {
|
|
32
|
+
"default": "./package.json"
|
|
33
|
+
},
|
|
34
|
+
".": {
|
|
35
|
+
"types": "./types/magmonium-one.d.ts",
|
|
36
|
+
"default": "./fesm2022/magmonium-one.mjs"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"type": "module",
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"tslib": "^2.3.0"
|
|
42
|
+
}
|
|
43
|
+
}
|