@magmonium/one 0.2.81 → 0.2.82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { signal, viewChildren, computed, inject, effect, afterRenderEffect, untracked, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { h as BaseTextInputComponent, k as IS_DESIGN_MODE, L as LabelComponent, j as TextOutputComponent } from './magmonium-one-magmonium-one-CWtMvVOS.mjs';
3
+ import { h as BaseTextInputComponent, k as IS_DESIGN_MODE, L as LabelComponent, j as TextOutputComponent } from './magmonium-one-magmonium-one-zMBbH4e6.mjs';
4
4
  import { CommonModule } from '@angular/common';
5
5
 
6
6
  class OtpInputComponent extends BaseTextInputComponent {
@@ -198,4 +198,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
198
198
  }], ctorParameters: () => [], propDecorators: { otpInputs: [{ type: i0.ViewChildren, args: ['otpInput', { isSignal: true }] }] } });
199
199
 
200
200
  export { OtpInputComponent };
201
- //# sourceMappingURL=magmonium-one-otp-B-oUlDWY.mjs.map
201
+ //# sourceMappingURL=magmonium-one-otp-D5YLAd5j.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"magmonium-one-otp-B-oUlDWY.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/text/otp.ts"],"sourcesContent":["import {\n afterRenderEffect,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n signal,\n untracked,\n viewChildren,\n} from '@angular/core';\nimport { LabelComponent } from '../label';\nimport { TextOutputComponent } from '../../../text-output';\nimport { BaseTextInputComponent } from './base-text';\nimport { CommonModule } from '@angular/common';\nimport { OtpInput } from '../../model/input';\nimport { IS_DESIGN_MODE } from '../../../../config/tokens';\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 [params]=\"otp.params\"\n [required]=\"required()\"\n [disabled]=\"isDisabled()\"\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]=\"isDisabled()\"\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 @for (error of errors(); track $index) {\n <m-text-output\n variant=\"footer\"\n color=\"error\"\n [label]=\"error.message\"\n />\n }\n }\n }\n `,\n styleUrl: './otp.sass',\n imports: [LabelComponent, TextOutputComponent, 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 // Inert on the Canvas — other inputs stay idle because they never autofocus;\n // OTP used to steal focus and look live while composing (DesignMode).\n private readonly isDesignMode = !!inject(IS_DESIGN_MODE, { optional: true });\n protected readonly isDisabled = computed(\n () => this.isDesignMode || this.disabled()\n );\n\n // BaseText answers `focused` by focusing its `#inputElement`, and an OTP has\n // none — it has a row of boxes. Without this the caret never lands on an OTP\n // field, so the form that opens on one (login's verification step) reads as\n // dead until the User clicks it.\n private hasAutofocused = false;\n\n constructor() {\n super();\n effect(() => {\n const length = this.otpConfig()?.length || 6;\n this.otpValues.set(Array(length).fill(''));\n });\n\n afterRenderEffect(() => {\n const inputs = this.otpInputs();\n if (!this.focused() || !inputs.length || this.hasAutofocused) return;\n this.hasAutofocused = true;\n untracked(() => this.focusInput(0));\n });\n }\n\n onInput = (event: Event, index: number): void => {\n if (this.isDisabled()) return;\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 if (this.isDisabled()) return;\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 if (this.isDisabled()) return;\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 if (this.isDisabled()) return;\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":";;;;;AA6DM,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,MAAM,IAAI,CAAC;QAC5C,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9B,IAAA,CAAC,+EAAC;;;AAIe,IAAA,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACzD,IAAA,UAAU,GAAG,QAAQ,CACtC,MAAM,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,QAAQ,EAAE,iFAC3C;;;;;IAMO,cAAc,GAAG,KAAK;AAE9B,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;QACP,MAAM,CAAC,MAAK;YACV,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,EAAE,MAAM,IAAI,CAAC;AAC5C,YAAA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,QAAA,CAAC,CAAC;QAEF,iBAAiB,CAAC,MAAK;AACrB,YAAA,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE;AAC/B,YAAA,IAA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AAiB,EAAA,UAAA,EAAA,CAAA;kBA1C7B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EAAA,QAAA,EACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCT,EAAA,OAAA,EAEQ,CAAC,cAAc,EAAE,mBAAmB,EAAE,YAAY,CAAC,EAAA,eAAA,EAC3C,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,+qEAAA,CAAA,EAAA;oGAIQ,UAAU,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;;;"}
1
+ {"version":3,"file":"magmonium-one-otp-D5YLAd5j.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/text/otp.ts"],"sourcesContent":["import {\n afterRenderEffect,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n signal,\n untracked,\n viewChildren,\n} from '@angular/core';\nimport { LabelComponent } from '../label';\nimport { TextOutputComponent } from '../../../text-output';\nimport { BaseTextInputComponent } from './base-text';\nimport { CommonModule } from '@angular/common';\nimport { OtpInput } from '../../model/input';\nimport { IS_DESIGN_MODE } from '../../../../config/tokens';\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 [params]=\"otp.params\"\n [required]=\"required()\"\n [disabled]=\"isDisabled()\"\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]=\"isDisabled()\"\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 @for (error of errors(); track $index) {\n <m-text-output\n variant=\"footer\"\n color=\"error\"\n [label]=\"error.message\"\n />\n }\n }\n }\n `,\n styleUrl: './otp.sass',\n imports: [LabelComponent, TextOutputComponent, 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 // Inert on the Canvas — other inputs stay idle because they never autofocus;\n // OTP used to steal focus and look live while composing (DesignMode).\n private readonly isDesignMode = !!inject(IS_DESIGN_MODE, { optional: true });\n protected readonly isDisabled = computed(\n () => this.isDesignMode || this.disabled()\n );\n\n // BaseText answers `focused` by focusing its `#inputElement`, and an OTP has\n // none — it has a row of boxes. Without this the caret never lands on an OTP\n // field, so the form that opens on one (login's verification step) reads as\n // dead until the User clicks it.\n private hasAutofocused = false;\n\n constructor() {\n super();\n effect(() => {\n const length = this.otpConfig()?.length || 6;\n this.otpValues.set(Array(length).fill(''));\n });\n\n afterRenderEffect(() => {\n const inputs = this.otpInputs();\n if (!this.focused() || !inputs.length || this.hasAutofocused) return;\n this.hasAutofocused = true;\n untracked(() => this.focusInput(0));\n });\n }\n\n onInput = (event: Event, index: number): void => {\n if (this.isDisabled()) return;\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 if (this.isDisabled()) return;\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 if (this.isDisabled()) return;\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 if (this.isDisabled()) return;\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":";;;;;AA6DM,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,C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AAA,CAAA;;;;"}
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { signal, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { h as BaseTextInputComponent, L as LabelComponent, j as TextOutputComponent, B as ButtonComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-CWtMvVOS.mjs';
3
+ import { h as BaseTextInputComponent, L as LabelComponent, j as TextOutputComponent, B as ButtonComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-zMBbH4e6.mjs';
4
4
 
5
5
  class PasswordInputComponent extends BaseTextInputComponent {
6
6
  isPassword = signal(true, ...(ngDevMode ? [{ debugName: "isPassword" }] : /* istanbul ignore next */ []));
@@ -54,7 +54,7 @@ class PasswordInputComponent extends BaseTextInputComponent {
54
54
  }
55
55
  }
56
56
  }
57
- `, 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)}}: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: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, color-mix(in srgb, var(--m-focus) 45%, transparent));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:not(:has(.error)){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", "params", "required", "disabled", "color"] }, { kind: "component", type: TextOutputComponent, selector: "m-text-output", inputs: ["config", "align", "variant", "color", "fontWeight", "label", "noTranslate", "params"], outputs: ["configChange", "clicked"] }, { kind: "component", type: ButtonComponent, selector: "m-button,m-one-button", inputs: ["config", "color", "labelClass", "fullWidth", "nav", "navParams", "href", "disabled", "variant", "name", "baseUrl", "one", "remote", "label", "noTranslate", "params", "noNative", "icon", "isRightIcon", "iconOnly", "stacked", "imgSrc", "nonClickable", "inverted", "isSubmit", "tabindex"], outputs: ["configChange", "clicked"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
57
+ `, 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)}}: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, 1px);border-radius:var(--m-input-radius, calc(var(--input-size, 1em) * .5));height:calc(var(--input-size, 1em) * 2.75);min-height:calc(var(--input-size, 1em) * 2.75);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: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-focus-shadow, var(--m-text-input-shadow, 0 0 0 3px color-mix(in srgb, var(--m-focus) 14%, transparent)))}.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:not(:has(.error)){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", "params", "required", "disabled", "color"] }, { kind: "component", type: TextOutputComponent, selector: "m-text-output", inputs: ["config", "align", "variant", "color", "fontWeight", "label", "noTranslate", "params"], outputs: ["configChange", "clicked"] }, { kind: "component", type: ButtonComponent, selector: "m-button,m-one-button", inputs: ["config", "color", "labelClass", "fullWidth", "nav", "navParams", "href", "disabled", "variant", "name", "baseUrl", "one", "remote", "label", "noTranslate", "params", "noNative", "icon", "isRightIcon", "iconOnly", "stacked", "imgSrc", "nonClickable", "inverted", "isSubmit", "tabindex"], outputs: ["configChange", "clicked"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
58
58
  }
59
59
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: PasswordInputComponent, decorators: [{
60
60
  type: Component,
@@ -98,8 +98,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
98
98
  }
99
99
  }
100
100
  }
101
- `, imports: [LabelComponent, TextOutputComponent, ButtonComponent, 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)}}: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: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, color-mix(in srgb, var(--m-focus) 45%, transparent));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:not(:has(.error)){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"] }]
101
+ `, imports: [LabelComponent, TextOutputComponent, ButtonComponent, 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)}}: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, 1px);border-radius:var(--m-input-radius, calc(var(--input-size, 1em) * .5));height:calc(var(--input-size, 1em) * 2.75);min-height:calc(var(--input-size, 1em) * 2.75);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: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-focus-shadow, var(--m-text-input-shadow, 0 0 0 3px color-mix(in srgb, var(--m-focus) 14%, transparent)))}.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:not(:has(.error)){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"] }]
102
102
  }] });
103
103
 
104
104
  export { PasswordInputComponent };
105
- //# sourceMappingURL=magmonium-one-password-7gmB_RWb.mjs.map
105
+ //# sourceMappingURL=magmonium-one-password-DHZnry39.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"magmonium-one-password-7gmB_RWb.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 { TextOutputComponent } from '../../../text-output';\nimport { BaseTextInputComponent } from './base-text';\nimport { ButtonComponent } from '../../../button/ui/button';\nimport { TranslatePipe } from '../../../../pipe';\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 [params]=\"text.params\"\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 [placeholder]=\"(text.placeholder ?? '') | translate: text.params\"\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 type=\"button\"\n [disabled]=\"disabled()\"\n [name]=\"button()\"\n [color]=\"iconColor()\"\n (clicked)=\"toggleType()\"\n />\n </div>\n @if (showErrors()) {\n @for (error of errors(); track $index) {\n <m-text-output\n variant=\"footer\"\n color=\"error\"\n [label]=\"error.message\"\n />\n }\n }\n }\n `,\n imports: [LabelComponent, TextOutputComponent, ButtonComponent, TranslatePipe],\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":";;;;AA2DM,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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,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,eAAe,4YAAE,aAAa,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAIlE,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBA/ClC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EAAA,QAAA,EAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCT,EAAA,CAAA,EAAA,OAAA,EACQ,CAAC,cAAc,EAAE,mBAAmB,EAAE,eAAe,EAAE,aAAa,CAAC,EAAA,eAAA,EAE7D,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,qqFAAA,CAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"magmonium-one-password-DHZnry39.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 { TextOutputComponent } from '../../../text-output';\nimport { BaseTextInputComponent } from './base-text';\nimport { ButtonComponent } from '../../../button/ui/button';\nimport { TranslatePipe } from '../../../../pipe';\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 [params]=\"text.params\"\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 [placeholder]=\"(text.placeholder ?? '') | translate: text.params\"\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 type=\"button\"\n [disabled]=\"disabled()\"\n [name]=\"button()\"\n [color]=\"iconColor()\"\n (clicked)=\"toggleType()\"\n />\n </div>\n @if (showErrors()) {\n @for (error of errors(); track $index) {\n <m-text-output\n variant=\"footer\"\n color=\"error\"\n [label]=\"error.message\"\n />\n }\n }\n }\n `,\n imports: [LabelComponent, TextOutputComponent, ButtonComponent, TranslatePipe],\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":";;;;AA2DM,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,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EAAA,QAAA,EAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCT,EAAA,CAAA,EAAA,OAAA,EACQ,CAAC,cAAc,EAAE,mBAAmB,EAAE,eAAe,EAAE,aAAa,CAAC,EAAA,eAAA,EAE7D,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,yvFAAA,CAAA,EAAA;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { model, input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { g as BaseInputComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-CWtMvVOS.mjs';
3
+ import { g as BaseInputComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-zMBbH4e6.mjs';
4
4
 
5
5
  class ToggleInputComponent extends BaseInputComponent {
6
6
  value = undefined;
@@ -37,7 +37,7 @@ class ToggleInputComponent extends BaseInputComponent {
37
37
  }}</label>
38
38
  </div>
39
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)}}:host{display:inline-block}:host-context(.m-dynamic-input),:host-context(.section-form-item__input),:host-context(.option-set__edit){display:contents}.toggle{--m-toggle-input-color: var(--m-input-color, var(--m-mm));display:flex;align-items:center;width:100%;box-sizing:border-box;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;height:calc(var(--input-size, 1em) * 2.25);min-height:calc(var(--input-size, 1em) * 2.25);padding:0;gap:.375em;border:none;background:transparent;box-shadow:none}.toggle--row{flex-direction:row}.toggle input[type=checkbox]{appearance:none;-webkit-appearance:none;-moz-appearance:none;position:relative;box-sizing:content-box;flex-shrink:0;margin:0;outline:none;cursor:pointer;width:calc(var(--input-size, 1em) * 2);height:var(--input-size, 1em);border-style:solid;border-width:2px;border-radius:calc(var(--input-size, 1em) / 2 + 2px);border-color:var(--m-text-input-border, var(--m-input-color, var(--m-mm)));background:color-mix(in srgb,var(--m-input-color, var(--m-mm)) 12%,var(--m-text-input-background, var(--m-background)));box-shadow:none;transition:border-color .2s ease,background-color .2s ease}.toggle input[type=checkbox]:after{content:\"\";position:absolute;top:calc((var(--input-size, 1em) - calc(var(--input-size, 1em) * .7)) / 2);left:calc((var(--input-size, 1em) - calc(var(--input-size, 1em) * .7)) / 2);width:calc(var(--input-size, 1em) * .7);height:calc(var(--input-size, 1em) * .7);border-radius:50%;background-color:var(--m-input-color, var(--m-mm));box-shadow:none;transition:transform .25s cubic-bezier(.4,0,.2,1)}.toggle input[type=checkbox]:hover:not(:disabled){border-color:var(--m-text-input-hover-border, color-mix(in srgb, var(--m-input-color, var(--m-mm)) 45%, rgba(0, 0, 0, .12)))}.toggle input[type=checkbox]:focus{border-color:var(--m-text-input-focus-border, color-mix(in srgb, var(--m-focus) 45%, transparent));box-shadow:none;outline:none}.toggle input[type=checkbox]:checked{border-color:var(--m-input-color, var(--m-mm));background:var(--m-input-color, var(--m-mm))}.toggle input[type=checkbox]:checked:after{transform:translate(calc(calc(var(--input-size, 1em) * 2) - var(--input-size, 1em)));background-color:var(--m-text-input-background, var(--m-background))}.toggle input[type=checkbox]:checked:hover:not(:disabled){border-color:color-mix(in srgb,var(--m-input-color, var(--m-mm)) 90%,black 10%);background:color-mix(in srgb,var(--m-input-color, var(--m-mm)) 90%,black 10%)}.toggle input[type=checkbox]:checked:focus{border-color:var(--m-text-input-focus-border, color-mix(in srgb, var(--m-focus) 45%, transparent));box-shadow:none}.toggle input[type=checkbox]:disabled{opacity:.5;cursor:not-allowed}.toggle input[type=checkbox]:disabled+label{opacity:.5;cursor:not-allowed}.toggle label{flex:1;min-width:0;margin:0;cursor:pointer;font-size:var(--m-label-font-size, calc(var(--input-size, 1em) * .85));font-weight:var(--m-label-weight, var(--m-text-input-label-weight, 500));line-height:1.2;color:var(--m-label-color, var(--m-text))}\n"], dependencies: [{ kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
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)}}:host{display:inline-block}:host-context(.m-dynamic-input),:host-context(.section-form-item__input),:host-context(.option-set__edit){display:contents}.toggle{--m-toggle-input-color: var(--m-input-color, var(--m-mm));display:flex;align-items:center;width:100%;box-sizing:border-box;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;height:calc(var(--input-size, 1em) * 2.25);min-height:calc(var(--input-size, 1em) * 2.25);padding:0;gap:.375em;border:none;background:transparent;box-shadow:none}.toggle--row{flex-direction:row}.toggle input[type=checkbox]{appearance:none;-webkit-appearance:none;-moz-appearance:none;position:relative;box-sizing:content-box;flex-shrink:0;margin:0;outline:none;cursor:pointer;width:calc(var(--input-size, 1em) * 2);height:var(--input-size, 1em);border-style:solid;border-width:2px;border-radius:calc(var(--input-size, 1em) / 2 + 2px);border-color:var(--m-text-input-border, color-mix(in srgb, var(--m-mm) 18%, var(--m-background)));background:color-mix(in srgb,var(--m-mm) 8%,var(--m-text-input-background, var(--m-background)));box-shadow:none;transition:var(--m-text-input-transition, border-color .2s ease, box-shadow .2s ease, background-color .2s ease)}.toggle input[type=checkbox]:after{content:\"\";position:absolute;top:calc((var(--input-size, 1em) - calc(var(--input-size, 1em) * .7)) / 2);left:calc((var(--input-size, 1em) - calc(var(--input-size, 1em) * .7)) / 2);width:calc(var(--input-size, 1em) * .7);height:calc(var(--input-size, 1em) * .7);border-radius:50%;background-color:var(--m-input-color, var(--m-mm));box-shadow:none;transition:transform .25s cubic-bezier(.4,0,.2,1)}.toggle input[type=checkbox]:hover:not(:disabled){border-color:var(--m-text-input-hover-border, color-mix(in srgb, var(--m-mm) 55%, var(--m-background)));background:var(--m-text-input-hover-background, color-mix(in srgb, var(--m-mm) 12%, var(--m-background)))}.toggle input[type=checkbox]:focus,.toggle input[type=checkbox]:focus-visible{border-color:var(--m-text-input-focus-border, var(--m-mm));box-shadow:var(--m-text-input-focus-shadow, var(--m-text-input-shadow, 0 0 0 3px color-mix(in srgb, var(--m-mm) 14%, transparent)));outline:none}.toggle input[type=checkbox]:checked{border-color:var(--m-toggle-checked-border, var(--m-input-color, var(--m-mm)));background:var(--m-toggle-checked-background, var(--m-input-color, var(--m-mm)))}.toggle input[type=checkbox]:checked:after{transform:translate(calc(calc(var(--input-size, 1em) * 2) - var(--input-size, 1em)));background-color:var(--m-text-input-background, var(--m-background))}.toggle input[type=checkbox]:checked:hover:not(:disabled){background:color-mix(in srgb,var(--m-toggle-checked-background, var(--m-mm)) 88%,black 12%);border-color:color-mix(in srgb,var(--m-toggle-checked-border, var(--m-mm)) 88%,black 12%);box-shadow:0 0 0 3px color-mix(in srgb,var(--m-mm) 18%,transparent)}.toggle input[type=checkbox]:checked:focus,.toggle input[type=checkbox]:checked:focus-visible{box-shadow:var(--m-text-input-focus-shadow, var(--m-text-input-shadow, 0 0 0 3px color-mix(in srgb, var(--m-mm) 25%, transparent)))}.toggle input[type=checkbox]:disabled{opacity:.5;cursor:not-allowed}.toggle input[type=checkbox]:disabled+label{opacity:.5;cursor:not-allowed}.toggle label{flex:1;min-width:0;margin:0;cursor:pointer;font-size:var(--m-label-font-size, calc(var(--input-size, 1em) * .85));font-weight:var(--m-label-weight, var(--m-text-input-label-weight, 500));line-height:1.2;color:var(--m-label-color, var(--m-text))}\n"], dependencies: [{ kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
41
41
  }
42
42
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: ToggleInputComponent, decorators: [{
43
43
  type: Component,
@@ -55,8 +55,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
55
55
  }}</label>
56
56
  </div>
57
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)}}:host{display:inline-block}:host-context(.m-dynamic-input),:host-context(.section-form-item__input),:host-context(.option-set__edit){display:contents}.toggle{--m-toggle-input-color: var(--m-input-color, var(--m-mm));display:flex;align-items:center;width:100%;box-sizing:border-box;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;height:calc(var(--input-size, 1em) * 2.25);min-height:calc(var(--input-size, 1em) * 2.25);padding:0;gap:.375em;border:none;background:transparent;box-shadow:none}.toggle--row{flex-direction:row}.toggle input[type=checkbox]{appearance:none;-webkit-appearance:none;-moz-appearance:none;position:relative;box-sizing:content-box;flex-shrink:0;margin:0;outline:none;cursor:pointer;width:calc(var(--input-size, 1em) * 2);height:var(--input-size, 1em);border-style:solid;border-width:2px;border-radius:calc(var(--input-size, 1em) / 2 + 2px);border-color:var(--m-text-input-border, var(--m-input-color, var(--m-mm)));background:color-mix(in srgb,var(--m-input-color, var(--m-mm)) 12%,var(--m-text-input-background, var(--m-background)));box-shadow:none;transition:border-color .2s ease,background-color .2s ease}.toggle input[type=checkbox]:after{content:\"\";position:absolute;top:calc((var(--input-size, 1em) - calc(var(--input-size, 1em) * .7)) / 2);left:calc((var(--input-size, 1em) - calc(var(--input-size, 1em) * .7)) / 2);width:calc(var(--input-size, 1em) * .7);height:calc(var(--input-size, 1em) * .7);border-radius:50%;background-color:var(--m-input-color, var(--m-mm));box-shadow:none;transition:transform .25s cubic-bezier(.4,0,.2,1)}.toggle input[type=checkbox]:hover:not(:disabled){border-color:var(--m-text-input-hover-border, color-mix(in srgb, var(--m-input-color, var(--m-mm)) 45%, rgba(0, 0, 0, .12)))}.toggle input[type=checkbox]:focus{border-color:var(--m-text-input-focus-border, color-mix(in srgb, var(--m-focus) 45%, transparent));box-shadow:none;outline:none}.toggle input[type=checkbox]:checked{border-color:var(--m-input-color, var(--m-mm));background:var(--m-input-color, var(--m-mm))}.toggle input[type=checkbox]:checked:after{transform:translate(calc(calc(var(--input-size, 1em) * 2) - var(--input-size, 1em)));background-color:var(--m-text-input-background, var(--m-background))}.toggle input[type=checkbox]:checked:hover:not(:disabled){border-color:color-mix(in srgb,var(--m-input-color, var(--m-mm)) 90%,black 10%);background:color-mix(in srgb,var(--m-input-color, var(--m-mm)) 90%,black 10%)}.toggle input[type=checkbox]:checked:focus{border-color:var(--m-text-input-focus-border, color-mix(in srgb, var(--m-focus) 45%, transparent));box-shadow:none}.toggle input[type=checkbox]:disabled{opacity:.5;cursor:not-allowed}.toggle input[type=checkbox]:disabled+label{opacity:.5;cursor:not-allowed}.toggle label{flex:1;min-width:0;margin:0;cursor:pointer;font-size:var(--m-label-font-size, calc(var(--input-size, 1em) * .85));font-weight:var(--m-label-weight, var(--m-text-input-label-weight, 500));line-height:1.2;color:var(--m-label-color, var(--m-text))}\n"] }]
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)}}:host{display:inline-block}:host-context(.m-dynamic-input),:host-context(.section-form-item__input),:host-context(.option-set__edit){display:contents}.toggle{--m-toggle-input-color: var(--m-input-color, var(--m-mm));display:flex;align-items:center;width:100%;box-sizing:border-box;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;height:calc(var(--input-size, 1em) * 2.25);min-height:calc(var(--input-size, 1em) * 2.25);padding:0;gap:.375em;border:none;background:transparent;box-shadow:none}.toggle--row{flex-direction:row}.toggle input[type=checkbox]{appearance:none;-webkit-appearance:none;-moz-appearance:none;position:relative;box-sizing:content-box;flex-shrink:0;margin:0;outline:none;cursor:pointer;width:calc(var(--input-size, 1em) * 2);height:var(--input-size, 1em);border-style:solid;border-width:2px;border-radius:calc(var(--input-size, 1em) / 2 + 2px);border-color:var(--m-text-input-border, color-mix(in srgb, var(--m-mm) 18%, var(--m-background)));background:color-mix(in srgb,var(--m-mm) 8%,var(--m-text-input-background, var(--m-background)));box-shadow:none;transition:var(--m-text-input-transition, border-color .2s ease, box-shadow .2s ease, background-color .2s ease)}.toggle input[type=checkbox]:after{content:\"\";position:absolute;top:calc((var(--input-size, 1em) - calc(var(--input-size, 1em) * .7)) / 2);left:calc((var(--input-size, 1em) - calc(var(--input-size, 1em) * .7)) / 2);width:calc(var(--input-size, 1em) * .7);height:calc(var(--input-size, 1em) * .7);border-radius:50%;background-color:var(--m-input-color, var(--m-mm));box-shadow:none;transition:transform .25s cubic-bezier(.4,0,.2,1)}.toggle input[type=checkbox]:hover:not(:disabled){border-color:var(--m-text-input-hover-border, color-mix(in srgb, var(--m-mm) 55%, var(--m-background)));background:var(--m-text-input-hover-background, color-mix(in srgb, var(--m-mm) 12%, var(--m-background)))}.toggle input[type=checkbox]:focus,.toggle input[type=checkbox]:focus-visible{border-color:var(--m-text-input-focus-border, var(--m-mm));box-shadow:var(--m-text-input-focus-shadow, var(--m-text-input-shadow, 0 0 0 3px color-mix(in srgb, var(--m-mm) 14%, transparent)));outline:none}.toggle input[type=checkbox]:checked{border-color:var(--m-toggle-checked-border, var(--m-input-color, var(--m-mm)));background:var(--m-toggle-checked-background, var(--m-input-color, var(--m-mm)))}.toggle input[type=checkbox]:checked:after{transform:translate(calc(calc(var(--input-size, 1em) * 2) - var(--input-size, 1em)));background-color:var(--m-text-input-background, var(--m-background))}.toggle input[type=checkbox]:checked:hover:not(:disabled){background:color-mix(in srgb,var(--m-toggle-checked-background, var(--m-mm)) 88%,black 12%);border-color:color-mix(in srgb,var(--m-toggle-checked-border, var(--m-mm)) 88%,black 12%);box-shadow:0 0 0 3px color-mix(in srgb,var(--m-mm) 18%,transparent)}.toggle input[type=checkbox]:checked:focus,.toggle input[type=checkbox]:checked:focus-visible{box-shadow:var(--m-text-input-focus-shadow, var(--m-text-input-shadow, 0 0 0 3px color-mix(in srgb, var(--m-mm) 25%, transparent)))}.toggle input[type=checkbox]:disabled{opacity:.5;cursor:not-allowed}.toggle input[type=checkbox]:disabled+label{opacity:.5;cursor:not-allowed}.toggle label{flex:1;min-width:0;margin:0;cursor:pointer;font-size:var(--m-label-font-size, calc(var(--input-size, 1em) * .85));font-weight:var(--m-label-weight, var(--m-text-input-label-weight, 500));line-height:1.2;color:var(--m-label-color, var(--m-text))}\n"] }]
59
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
60
 
61
61
  export { ToggleInputComponent };
62
- //# sourceMappingURL=magmonium-one-toggle-DL3lH7Xo.mjs.map
62
+ //# sourceMappingURL=magmonium-one-toggle-BIetnmvQ.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"magmonium-one-toggle-DL3lH7Xo.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,C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,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,irGAAA,CAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"magmonium-one-toggle-BIetnmvQ.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.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A,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,upHAAA,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,upHAAA,CAAA,EAAA;;;;;"}
@@ -1,2 +1,2 @@
1
- export { A as ACCESS_DOMAINS, l as APP_CONTEXT_REF, m as ASSET_BASE_URL, n as AccordionBodyDirective, q as AccordionComponent, s as AccordionGroupComponent, t as ActionComponent, u as AnimatedGraphsComponent, v as AppCardComponent, w as AppRelationType, x as AppTileComponent, y as AssetStore, z as AssetUrlPipe, C as Assets, D as AuthActivityPageComponent, E as AuthApiService, F as AuthStore, G as AutosizeDirective, J as BadgeComponent, K as BandingComponent, N as BaseArrayInputComponent, O as BaseRootWebComponent, P as BaseWebComponent, B as ButtonComponent, Q as ButtonGroupComponent, S as COMPONENT_INPUT_REGISTRY, U as CardComponent, V as CardWrapperComponent, W as CarouselComponent, X as ChartComponent, Y as ChatBubbleComponent, Z as CheckboxInputComponent, _ as ClearableInputComponent, $ as ColComponent, a0 as ColorPickerInputComponent, a1 as CommentItemComponent, a2 as CommentsApiService, a3 as CommentsComponent, a4 as CommentsStore, a5 as CompactNumberPipe, a6 as ComponentInputComponent, a7 as ComponentStepperComponent, a8 as ConfigComponent, a9 as ConfirmComponent, aa as ContextMenuComponent, ab as CustomIconClass, ac as CustomIconEditComponent, ad as DEFAULT_FILTER_RANGE_MODE, ae as DEFAULT_FILTER_VARIANT, af as DEFAULT_NAV_PARAM, ag as DEFAULT_NAV_SEGMENT, ah as DEFAULT_SIZE, ai as DashboardCardComponent, aj as DateInputComponent, ak as DatePickerComponent, al as DeviceService, am as DomService, an as Domain, ao as DotGridComponent, ap as DragListDirective, aq as DragListItemDirective, ar as DraggableDirective, as as DropdownInputComponent, at as FILTER_GROUP_CONTEXT, au as FILTER_RANGE_MODES, av as FILTER_VARIANTS, aw as FLEX_VARIANTS, ax as FOLDER_PICK_LISTENER, ay as FORM_ASSET_FOLDER, az as FileService, aA as FileUploadDirective, aB as FileUploadInputComponent, aC as FlexComponent, aD as FlexItemComponent, aE as FormGroupComponent, aF as FrameComponent, aG as FreezeService, aH as GRID_BREAKPOINTS, aI as GetNavService, H as HeaderComponent, aJ as HighlightDirective, aK as HttpService, aL as ICON_SOURCE, k as IS_DESIGN_MODE, aM as IS_SIDE_PANEL, aN as IconComponent, aO as ImgComponent, I as InputType, aP as InstrumentScoreComponent, aQ as InterceptorObservables, aR as JumbotronComponent, aS as KeyValueComponent, aT as LAYOUT_ASSET_FOLDER, aU as LOGIN_COMPONENT, aV as LOGIN_STORE, aW as LanguageComponent, aX as ListComponent, aY as LogoComponent, aZ as MAG_SOCKET_EVENT, a_ as MHeroColorDirective, a$ as MHeroComponent, M as MODAL_REF, b0 as MODAL_STORE_REF, b1 as MRefDirective, b2 as MStepComponent, b3 as MURL_PARAM, b4 as MURL_SEP, b5 as ManifestEnrichmentService, b6 as MenuComponent, b7 as ModalDirective, b8 as ModalRef, b9 as ModalStore, ba as MoneyPipe, bb as MultiRangeInputComponent, bc as MurlUrlSerializer, bd as NAV_DEFAULT_MURL, be as NAV_ID_SEP, bf as NAV_MAIN_BUTTONS, bg as NAV_SEGMENT_RE, bh as NAV_STORE_REF, bi as NAV_WC_COMPONENTS, bj as NAV_WIDGET_MAP, bk as NavComponent, bl as NavDetailsComponent, bm as NavHeaderComponent, bn as NavMenuComponent, bo as NavStore, bp as NavTrailComponent, bq as NothingComponent, br as NotificationElementComponent, bs as NotificationGroupComponent, bt as NotificationPopupComponent, bu as NotificationService, bv as NotificationStore, bw as NotificationType, bx as NotificationWidgetComponent, by as ONE_ASSET_BASE_URL, bz as OPTIONS_SOURCE, bA as OVERLAY_WIDGETS, bB as OneApp, bC as OptionsSourceDirective, bD as OverlayBodyComponent, bE as OverlayRef, bF as OverlayService, bG as PLATFORM_BUTTON_NAV_IDS, bH as PLATFORM_EXTENSIBLE_NAV_IDS, bI as PLATFORM_NAV_MAP, bJ as PLATFORM_ROOT_CHILDREN, bK as PaginationComponent, bL as PanelComponent, bM as PercentagePipe, bN as PlaygroundComponent, bO as PositionDirective, bP as PwaInstallComponent, bQ as ROOT_NAV, bR as RadioGroupComponent, bS as RadioInputComponent, R as RangeInputComponent, bT as RatingInputComponent, bU as ReactiveElementComponent, bV as RemoteComponent, bW as RemoteLoaderService, bX as ResizeElementComponent, bY as RouteContainer, bZ as RowComponent, b_ as SEARCH_QUERY, b$ as SEARCH_RESULTS_EVENT, c0 as SECTION_ACCORDION_GROUP, c1 as SECTION_FORM_CONTEXT, c2 as SHARED_ICONS, c3 as SIZE_CONTEXT, c4 as ScoreComponent, c5 as ScrollComponent, c6 as ScrollService, c7 as SearchPanelComponent, c8 as SearchStore, c9 as SearchUserPanelComponent, ca as SectionAccordionDirective, cb as SectionAccordionGroupDirective, cc as SectionBackComponent, cd as SectionBadgesComponent, ce as SectionButtonGroupComponent, cf as SectionCardComponent, cg as SectionCarouselComponent, ch as SectionComponent, ci as SectionFilterComponent, cj as SectionFilterGroupComponent, ck as SectionFilterMenuComponent, cl as SectionFilterPanelComponent, cm as SectionFilterRangePanelComponent, cn as SectionFooterComponent, co as SectionFormComponent, cp as SectionFormItemComponent, cq as SectionHeaderComponent, cr as SectionHeroComponent, cs as SectionPaginationComponent, ct as SectionSearchComponent, cu as SectionStepperComponent, cv as SectionTabsComponent, cw as SectionToggleComponent, cx as SectionToggleItemDirective, cy as SelectableCardInputComponent, cz as SelectorDirective, cA as SettingsSearchBarComponent, cB as SettingsSearchService, cC as ShapeComponent, cD as SharedStoreRegistry, cE as SidePanelDirective, cF as Size, cG as SocketStore, cH as SortComponent, cI as StatComponent, cJ as StepComponent, cK as StepperComponent, cL as StepsComponent, cM as StorageService, cN as StrokeLinecap, cO as StrokeLinejoin, cP as SummaryComponent, cQ as SvgGeneratorComponent, cR as SvgGeneratorService, cS as SvgService, cT as TOTAL_COLUMNS, cU as TRANSLATION_SOURCE, cV as TableComponent, cW as TechnicalMeterComponent, cX as TextInputComponent, j as TextOutputComponent, cY as TextareaInputComponent, cZ as ThemeComponent, c_ as ThemeDataService, c$ as ThemeService, d0 as ThemeStore, d1 as TimeAgoPipe, d2 as TimelineComponent, d3 as ToggleButtonComponent, d4 as ToggleInputComponent, d5 as ToggleRadioInputComponent, d6 as ToolTipDirective, d7 as TooltipComponent, T as TranslatePipe, d8 as TranslateService, d9 as TreeGridComponent, da as URL_SEP, db as USER_STORE_REF, dc as USER_TAB_MAP, dd as UniverseComponent, de as UserApiService, df as UserAvatarComponent, dg as UserComponent, dh as UserNavComponent, di as UserSettingsComponent, dj as UserStore, dk as WC_ROUTE_CHANGED_EVENT, dl as WC_SEARCH_GROUPS, dm as WIN_USER_TAB_HOOK, dn as WIN_USER_TAB_KEY, dp as WatermarkComponent, dq as WcRouterStore, dr as WrapperInputComponent, ds as anchorNavId, dt as applyColorsToElement, du as assetOptions, dv as bootstrapMagApp, dw as bootstrapPwaInstall, dx as buildWcBaseUrl, dy as calculateLuminance, dz as calculateRanks, dA as cellText, dB as checkFilterCondition, dC as childNavId, dD as classListSignal, dE as coerceSize, dF as cornerEdge, dG as cornerSide, dH as createMap, dI as createPlatformNavMap, dJ as deriveAvatarGradient, dK as deriveContrastColor, dL as deriveOppositeColor, dM as derivePropertyName, dN as emailValidation, dO as evaluate, dP as evaluateBool, dQ as filterHoldsList, dR as filterHoldsOneBound, dS as filterHoldsOptions, dT as filterHoldsRange, dU as filterList, dV as filterNumber, dW as filterNumberList, dX as filterOne, dY as filterPanelOf, dZ as filterPanelWidth, d_ as filterRange, d$ as filterTreeGridRows, e0 as filterValueList, e1 as filterValues, e2 as flattenTreeGridRows, e3 as formatBadgeCount, e4 as fullName, e5 as generateClipPath, e6 as generateTransform, e7 as getClassList, e8 as getProperty, e9 as getScrollParent, ea as getTierFromPreviewPath, eb as getTreeGridRow, ec as getUniqueId, ed as getValue, ee as hasErrorComputed, ef as hexToRgb, eg as hslToRgb, eh as initMagmoniumApp, ei as initialNotificationState, ej as initialState, ek as initials, el as injectAuthenticate, em as injectInstallApp, en as injectParentSize, eo as injectScrollSticky, ep as isButtonName, eq as isCancelledComputed, er as isExtensiblePlatformNavId, es as isJson, et as isLoadingComputed, eu as isLocalhost, ev as isNavInstanceConfig, ew as isNavMenuConfig, ex as isNavRowsConfig, ey as isNavVisibilityConfig, ez as isPlatformNavId, eA as isSize, eB as isTierPreview, eC as isUrlLocalhost, eD as isValidNavId, eE as isValidNavSegment, eF as isWebComponent, eG as linkToId, eH as linkToNav, eI as loadingActions, eJ as mInterceptor, eK as manualValidation, eL as matchFieldValidation, eM as maxLengthValidation, eN as maxValidation, eO as mergePlatformNav, eP as mergeUnique, eQ as mergeUniqueBy, eR as mergeUniqueWith, eS as minAgeValidation, eT as minLengthValidation, eU as minValidation, eV as miniMarkToHtml, eW as navIdChain, eX as navIdFor, eY as navIdSegment, eZ as navIdToRoutePath, e_ as navIdToSegments, e$ as navParamOf, f0 as navToId, f1 as navVisibilityGuard, f2 as normalizeAssetOptions, f3 as parentNavId, f4 as parseAddress, f5 as parseColor, f6 as parsePatternNames, f7 as patternValidation, f8 as patternsValidation, f9 as platformNavWidgets, fa as privateGuard, fb as processImageToSvg, fc as provideAppContext, fd as provideMagAppConfig, fe as provideMagWcConfig, ff as provideMagWcRoutes, fg as provideModalComponents, fh as provideMurlUrlSerializer, fi as provideNavWidgets, fj as provideOverlayWidgets, fk as providePlatformNavWidgets, fl as provideSearch, fm as provideSizeContext, fn as provideUserTabs, fo as publicGuard, fp as readFieldPatterns, fq as renderAddress, fr as requiredValidation, fs as resolveConfigAsset, ft as resolveIconSize, fu as resolvePallet, fv as resolvePatternRules, fw as resolveSize, fx as rgbToHex, fy as rgbToHsl, fz as rowHasChildren, fA as samePatterns, fB as segmentsToNavId, fC as setProperty, fD as setTreeGridChildren, fE as settingsWidgets, fF as shouldShowBadge, fG as splitNavId, fH as splitOnMatch, fI as stringToColor, fJ as toAttrBool, fK as toAttrNumber, fL as toCssLength, fM as toHostNavId, fN as toLength, fO as toLocalNavId, fP as toggleTreeGridRow, fQ as unfetchedPlatformNav, fR as urlValidation } from './magmonium-one-magmonium-one-CWtMvVOS.mjs';
1
+ export { A as ACCESS_DOMAINS, l as APP_CONTEXT_REF, m as ASSET_BASE_URL, n as AccordionBodyDirective, q as AccordionComponent, s as AccordionGroupComponent, t as ActionComponent, u as AnimatedGraphsComponent, v as AppCardComponent, w as AppRelationType, x as AppTileComponent, y as AssetStore, z as AssetUrlPipe, C as Assets, D as AuthActivityPageComponent, E as AuthApiService, F as AuthStore, G as AutosizeDirective, J as BadgeComponent, K as BandingComponent, N as BaseArrayInputComponent, O as BaseRootWebComponent, P as BaseWebComponent, B as ButtonComponent, Q as ButtonGroupComponent, S as COMPONENT_INPUT_REGISTRY, U as CardComponent, V as CardWrapperComponent, W as CarouselComponent, X as ChartComponent, Y as ChatBubbleComponent, Z as CheckboxInputComponent, _ as ClearableInputComponent, $ as ColComponent, a0 as ColorPickerInputComponent, a1 as CommentItemComponent, a2 as CommentsApiService, a3 as CommentsComponent, a4 as CommentsStore, a5 as CompactNumberPipe, a6 as ComponentInputComponent, a7 as ComponentStepperComponent, a8 as ConfigComponent, a9 as ConfirmComponent, aa as ContextMenuComponent, ab as CustomIconClass, ac as CustomIconEditComponent, ad as DEFAULT_FILTER_RANGE_MODE, ae as DEFAULT_FILTER_VARIANT, af as DEFAULT_NAV_PARAM, ag as DEFAULT_NAV_SEGMENT, ah as DEFAULT_SIZE, ai as DashboardCardComponent, aj as DateInputComponent, ak as DatePickerComponent, al as DeviceService, am as DomService, an as Domain, ao as DotGridComponent, ap as DragListDirective, aq as DragListItemDirective, ar as DraggableDirective, as as DropdownInputComponent, at as FILTER_GROUP_CONTEXT, au as FILTER_RANGE_MODES, av as FILTER_VARIANTS, aw as FLEX_VARIANTS, ax as FOLDER_PICK_LISTENER, ay as FORM_ASSET_FOLDER, az as FileService, aA as FileUploadDirective, aB as FileUploadInputComponent, aC as FlexComponent, aD as FlexItemComponent, aE as FormGroupComponent, aF as FrameComponent, aG as FreezeService, aH as GRID_BREAKPOINTS, aI as GetNavService, H as HeaderComponent, aJ as HighlightDirective, aK as HttpService, aL as ICON_SOURCE, k as IS_DESIGN_MODE, aM as IS_SIDE_PANEL, aN as IconComponent, aO as ImgComponent, I as InputType, aP as InstrumentScoreComponent, aQ as InterceptorObservables, aR as JumbotronComponent, aS as KeyValueComponent, aT as LAYOUT_ASSET_FOLDER, aU as LOGIN_COMPONENT, aV as LOGIN_STORE, aW as LanguageComponent, aX as ListComponent, aY as LogoComponent, aZ as MAG_SOCKET_EVENT, a_ as MHeroColorDirective, a$ as MHeroComponent, M as MODAL_REF, b0 as MODAL_STORE_REF, b1 as MRefDirective, b2 as MStepComponent, b3 as MURL_PARAM, b4 as MURL_SEP, b5 as ManifestEnrichmentService, b6 as MenuComponent, b7 as ModalDirective, b8 as ModalRef, b9 as ModalStore, ba as MoneyPipe, bb as MultiRangeInputComponent, bc as MurlUrlSerializer, bd as NAV_DEFAULT_MURL, be as NAV_ID_SEP, bf as NAV_MAIN_BUTTONS, bg as NAV_SEGMENT_RE, bh as NAV_STORE_REF, bi as NAV_WC_COMPONENTS, bj as NAV_WIDGET_MAP, bk as NavComponent, bl as NavDetailsComponent, bm as NavHeaderComponent, bn as NavMenuComponent, bo as NavStore, bp as NavTrailComponent, bq as NothingComponent, br as NotificationElementComponent, bs as NotificationGroupComponent, bt as NotificationPopupComponent, bu as NotificationService, bv as NotificationStore, bw as NotificationType, bx as NotificationWidgetComponent, by as ONE_ASSET_BASE_URL, bz as OPTIONS_SOURCE, bA as OVERLAY_WIDGETS, bB as OneApp, bC as OptionsSourceDirective, bD as OverlayBodyComponent, bE as OverlayRef, bF as OverlayService, bG as PLATFORM_BUTTON_NAV_IDS, bH as PLATFORM_EXTENSIBLE_NAV_IDS, bI as PLATFORM_NAV_MAP, bJ as PLATFORM_ROOT_CHILDREN, bK as PaginationComponent, bL as PanelComponent, bM as PercentagePipe, bN as PlaygroundComponent, bO as PositionDirective, bP as PwaInstallComponent, bQ as ROOT_NAV, bR as RadioGroupComponent, bS as RadioInputComponent, R as RangeInputComponent, bT as RatingInputComponent, bU as ReactiveElementComponent, bV as RemoteComponent, bW as RemoteLoaderService, bX as ResizeElementComponent, bY as RouteContainer, bZ as RowComponent, b_ as SEARCH_QUERY, b$ as SEARCH_RESULTS_EVENT, c0 as SECTION_ACCORDION_GROUP, c1 as SECTION_FORM_CONTEXT, c2 as SHARED_ICONS, c3 as SIZE_CONTEXT, c4 as ScoreComponent, c5 as ScrollComponent, c6 as ScrollService, c7 as SearchPanelComponent, c8 as SearchStore, c9 as SearchUserPanelComponent, ca as SectionAccordionDirective, cb as SectionAccordionGroupDirective, cc as SectionBackComponent, cd as SectionBadgesComponent, ce as SectionButtonGroupComponent, cf as SectionCardComponent, cg as SectionCarouselComponent, ch as SectionComponent, ci as SectionFilterComponent, cj as SectionFilterGroupComponent, ck as SectionFilterMenuComponent, cl as SectionFilterPanelComponent, cm as SectionFilterRangePanelComponent, cn as SectionFooterComponent, co as SectionFormComponent, cp as SectionFormItemComponent, cq as SectionHeaderComponent, cr as SectionHeroComponent, cs as SectionPaginationComponent, ct as SectionSearchComponent, cu as SectionStepperComponent, cv as SectionTabsComponent, cw as SectionToggleComponent, cx as SectionToggleItemDirective, cy as SelectableCardInputComponent, cz as SelectorDirective, cA as SettingsSearchBarComponent, cB as SettingsSearchService, cC as ShapeComponent, cD as SharedStoreRegistry, cE as SidePanelDirective, cF as Size, cG as SocketStore, cH as SortComponent, cI as StatComponent, cJ as StepComponent, cK as StepperComponent, cL as StepsComponent, cM as StorageService, cN as StrokeLinecap, cO as StrokeLinejoin, cP as SummaryComponent, cQ as SvgGeneratorComponent, cR as SvgGeneratorService, cS as SvgService, cT as TOTAL_COLUMNS, cU as TRANSLATION_SOURCE, cV as TableComponent, cW as TechnicalMeterComponent, cX as TextInputComponent, j as TextOutputComponent, cY as TextareaInputComponent, cZ as ThemeComponent, c_ as ThemeDataService, c$ as ThemeService, d0 as ThemeStore, d1 as TimeAgoPipe, d2 as TimelineComponent, d3 as ToggleButtonComponent, d4 as ToggleInputComponent, d5 as ToggleRadioInputComponent, d6 as ToolTipDirective, d7 as TooltipComponent, T as TranslatePipe, d8 as TranslateService, d9 as TreeGridComponent, da as URL_SEP, db as USER_STORE_REF, dc as USER_TAB_MAP, dd as UniverseComponent, de as UserApiService, df as UserAvatarComponent, dg as UserComponent, dh as UserNavComponent, di as UserSettingsComponent, dj as UserStore, dk as WC_ROUTE_CHANGED_EVENT, dl as WC_SEARCH_GROUPS, dm as WIN_USER_TAB_HOOK, dn as WIN_USER_TAB_KEY, dp as WatermarkComponent, dq as WcRouterStore, dr as WrapperInputComponent, ds as anchorNavId, dt as applyColorsToElement, du as assetOptions, dv as bootstrapMagApp, dw as bootstrapPwaInstall, dx as buildWcBaseUrl, dy as calculateLuminance, dz as calculateRanks, dA as cellText, dB as checkFilterCondition, dC as childNavId, dD as classListSignal, dE as coerceSize, dF as cornerEdge, dG as cornerSide, dH as createMap, dI as createPlatformNavMap, dJ as deriveAvatarGradient, dK as deriveContrastColor, dL as deriveOppositeColor, dM as derivePropertyName, dN as emailValidation, dO as evaluate, dP as evaluateBool, dQ as filterHoldsList, dR as filterHoldsOneBound, dS as filterHoldsOptions, dT as filterHoldsRange, dU as filterList, dV as filterNumber, dW as filterNumberList, dX as filterOne, dY as filterPanelOf, dZ as filterPanelWidth, d_ as filterRange, d$ as filterTreeGridRows, e0 as filterValueList, e1 as filterValues, e2 as flattenTreeGridRows, e3 as formatBadgeCount, e4 as fullName, e5 as generateClipPath, e6 as generateTransform, e7 as getClassList, e8 as getProperty, e9 as getScrollParent, ea as getTierFromPreviewPath, eb as getTreeGridRow, ec as getUniqueId, ed as getValue, ee as hasErrorComputed, ef as hexToRgb, eg as hslToRgb, eh as initMagmoniumApp, ei as initialNotificationState, ej as initialState, ek as initials, el as injectAuthenticate, em as injectInstallApp, en as injectParentSize, eo as injectScrollSticky, ep as isButtonName, eq as isCancelledComputed, er as isExtensiblePlatformNavId, es as isJson, et as isLoadingComputed, eu as isLocalhost, ev as isNavInstanceConfig, ew as isNavMenuConfig, ex as isNavRowsConfig, ey as isNavVisibilityConfig, ez as isPlatformNavId, eA as isSize, eB as isTierPreview, eC as isUrlLocalhost, eD as isValidNavId, eE as isValidNavSegment, eF as isWebComponent, eG as linkToId, eH as linkToNav, eI as loadingActions, eJ as mInterceptor, eK as manualValidation, eL as matchFieldValidation, eM as maxLengthValidation, eN as maxValidation, eO as mergePlatformNav, eP as mergeUnique, eQ as mergeUniqueBy, eR as mergeUniqueWith, eS as minAgeValidation, eT as minLengthValidation, eU as minValidation, eV as miniMarkToHtml, eW as navIdChain, eX as navIdFor, eY as navIdSegment, eZ as navIdToRoutePath, e_ as navIdToSegments, e$ as navParamOf, f0 as navToId, f1 as navVisibilityGuard, f2 as normalizeAssetOptions, f3 as parentNavId, f4 as parseAddress, f5 as parseColor, f6 as parsePatternNames, f7 as patternValidation, f8 as patternsValidation, f9 as platformNavWidgets, fa as privateGuard, fb as processImageToSvg, fc as provideAppContext, fd as provideMagAppConfig, fe as provideMagWcConfig, ff as provideMagWcRoutes, fg as provideModalComponents, fh as provideMurlUrlSerializer, fi as provideNavWidgets, fj as provideOverlayWidgets, fk as providePlatformNavWidgets, fl as provideSearch, fm as provideSizeContext, fn as provideUserTabs, fo as publicGuard, fp as readFieldPatterns, fq as renderAddress, fr as requiredValidation, fs as resolveConfigAsset, ft as resolveIconSize, fu as resolvePallet, fv as resolvePatternRules, fw as resolveSize, fx as rgbToHex, fy as rgbToHsl, fz as rowHasChildren, fA as samePatterns, fB as segmentsToNavId, fC as setProperty, fD as setTreeGridChildren, fE as settingsWidgets, fF as shouldShowBadge, fG as splitNavId, fH as splitOnMatch, fI as stringToColor, fJ as toAttrBool, fK as toAttrNumber, fL as toCssLength, fM as toHostNavId, fN as toLength, fO as toLocalNavId, fP as toggleTreeGridRow, fQ as unfetchedPlatformNav, fR as urlValidation } from './magmonium-one-magmonium-one-zMBbH4e6.mjs';
2
2
  //# sourceMappingURL=magmonium-one.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magmonium/one",
3
- "version": "0.2.81",
3
+ "version": "0.2.82",
4
4
  "description": "Magmonium One — Angular design-system primitives for mm Apps",
5
5
  "author": "magmonium",
6
6
  "license": "MIT",
@@ -25,17 +25,18 @@
25
25
 
26
26
  .m-color-picker
27
27
  .color-picker-box
28
- background: c.$background-color
29
- border: var(--m-input-border-width, 2px) solid var(--m-text-input-border, var(--m-input-color, var(--m-mm, #4169e1)))
30
- border-radius: var(--m-input-radius, 4px)
31
- box-shadow: none
28
+ background: color-mix(in srgb, #{c.$focus} 2%, #{c.$background})
29
+ border: var(--m-input-border-width, 1px) solid var(--m-text-input-border, color-mix(in srgb, #{c.$text} 18%, #{c.$background}))
30
+ border-radius: var(--m-input-radius, 0.5rem)
31
+ box-shadow: 0 0.75rem 2rem color-mix(in srgb, #{c.$text} 12%, transparent)
32
+ animation: color-picker-in 200ms ease-out
32
33
 
33
34
  .m-date-input
34
35
  .date-picker
35
- background: c.$background-color
36
- border: var(--m-input-border-width, 2px) solid var(--m-text-input-border, var(--m-input-color, var(--m-mm, #4169e1)))
36
+ background: color-mix(in srgb, #{c.$focus} 2%, #{c.$background})
37
+ border: var(--m-input-border-width, 1px) solid var(--m-text-input-border, color-mix(in srgb, #{c.$text} 18%, #{c.$background}))
37
38
  border-radius: var(--m-input-radius, 8px)
38
- box-shadow: none
39
+ box-shadow: 0 0.75rem 2rem color-mix(in srgb, #{c.$text} 12%, transparent)
39
40
  padding: 0.75rem
40
41
  animation: date-picker-in 200ms ease-out
41
42
  --m-button-size: 0.75rem
@@ -48,6 +49,14 @@
48
49
  opacity: 1
49
50
  transform: scale(1) translateY(0)
50
51
 
52
+ @keyframes color-picker-in
53
+ from
54
+ opacity: 0
55
+ transform: scale(0.95) translateY(-4px)
56
+ to
57
+ opacity: 1
58
+ transform: scale(1) translateY(0)
59
+
51
60
  .modals
52
61
  position: fixed
53
62
  top: 0
@@ -1,16 +1,16 @@
1
1
  @use 'flex' as flex
2
+ @use '../variables/colors' as *
2
3
  @use '../functions/functions' as f
3
4
 
4
- // Base mixin using only the 4 required CSS variables
5
+ // Base mixin using CSS variables matching input style
5
6
  =checkbox-container-base
6
7
  display: inline-flex
7
8
  align-items: center
8
- $size: var(--input-size, 1em)
9
+ $size: var(--m-checkbox-size, calc(var(--input-size, 1em) * 1.25))
9
10
  gap: #{f.derive-control-gap($size)}
10
11
  cursor: pointer
11
12
  user-select: none
12
13
  position: relative
13
- padding: 2px // Prevent shadow clipping
14
14
 
15
15
  input[type="checkbox"]
16
16
  appearance: none
@@ -19,18 +19,16 @@
19
19
  position: relative
20
20
  width: #{$size}
21
21
  height: #{$size}
22
- background-color: rgba(var(--m-checkbox-bg-rgb, 255, 255, 255), 0.1)
23
- backdrop-filter: blur(8px)
24
- border-radius: #{f.derive-control-radius($size)}
25
- border: #{f.derive-control-border($size)} solid color-mix(in srgb, var(--m-checkbox-input-color, var(--m-mm)) 70%, transparent 30%)
22
+ background: var(--m-checkbox-background, var(--m-text-input-background, color-mix(in srgb, #{$focus} 2%, #{$background})))
23
+ border-radius: var(--m-checkbox-radius, var(--m-input-radius, 0.35rem))
24
+ border: var(--m-input-border-width, 1px) solid var(--m-text-input-border, color-mix(in srgb, #{$text} 18%, #{$background}))
26
25
  cursor: pointer
27
26
  outline: none
28
27
  box-sizing: border-box
29
28
  flex-shrink: 0
30
- margin: 2px
31
- box-shadow: 0 0 0 1px color-mix(in srgb, var(--m-checkbox-input-color, var(--m-mm)) 15%, transparent 85%), 0 2px 12px -3px rgba(0, 0, 0, 0.1)
32
- transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease, transform 0.2s ease
33
- will-change: background-color, box-shadow
29
+ margin: 0
30
+ box-shadow: none
31
+ transition: var(--m-checkbox-transition, var(--m-text-input-transition, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease))
34
32
 
35
33
  // Checkmark (checked indicator)
36
34
  &::after
@@ -38,78 +36,94 @@
38
36
  position: absolute
39
37
  top: 50%
40
38
  left: 50%
41
- transform: translate(-50%, -50%) scale(0) rotate(-45deg)
42
- width: calc(#{$size} * 0.5)
39
+ transform: translate(-50%, -60%) scale(0) rotate(-45deg)
40
+ width: calc(#{$size} * 0.45)
43
41
  height: calc(#{$size} * 0.25)
44
- border-left: calc(#{$size} * 0.12) solid var(--m-checkbox-input-color, var(--m-mm))
45
- border-bottom: calc(#{$size} * 0.12) solid var(--m-checkbox-input-color, var(--m-mm))
46
- transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s ease
47
- will-change: transform
48
- box-shadow: 0 calc(#{$size} / 10) calc(#{$size} / 6) rgba(0, 0, 0, 0.2), 0 calc(#{$size} / 20) calc(#{$size} / 12) rgba(0, 0, 0, 0.1)
42
+ border-left: calc(#{$size} * 0.12) solid #ffffff
43
+ border-bottom: calc(#{$size} * 0.12) solid #ffffff
44
+ transition: transform 0.2s ease
45
+ box-shadow: none
49
46
 
50
47
  --m-label-margin: 0
51
48
 
52
- // Interactive states using only the 4 variables
49
+ // Interactive states matching input style
53
50
  =checkbox-container-states
54
51
  $size: var(--input-size, 1em)
55
52
  input[type="checkbox"]
56
- // Hover state
57
- &:hover:not(:disabled)
58
- border-color: color-mix(in srgb, var(--m-checkbox-input-color, var(--m-mm)) 80%, transparent 20%)
59
- transform: translateY(-1px)
60
- box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.15), 0 0 0 1px color-mix(in srgb, var(--m-checkbox-input-color, var(--m-mm)) 25%, transparent 75%)
53
+ // Hover state (unchecked)
54
+ &:hover:not(:disabled):not(:checked)
55
+ border-color: var(--m-text-input-hover-border, color-mix(in srgb, #{$focus} 55%, #{$background}))
56
+ background: var(--m-text-input-hover-background, color-mix(in srgb, #{$focus} 4%, #{$background}))
57
+ box-shadow: none
61
58
 
62
59
  // Focus state
63
- &:focus
64
- box-shadow: 0 0 0 calc(#{$size} / 5) color-mix(in srgb, var(--m-checkbox-input-color, var(--m-mm)) 25%, transparent 75%), 0 2px 12px -3px rgba(0, 0, 0, 0.1)
60
+ &:focus,
61
+ &:focus-visible
62
+ border-color: var(--m-text-input-focus-border, #{$focus})
63
+ box-shadow: var(--m-text-input-focus-shadow, var(--m-text-input-shadow, 0 0 0 3px color-mix(in srgb, #{$focus} 14%, transparent)))
65
64
  outline: none
66
65
 
67
66
  // Active/pressed state
68
67
  &:active:not(:disabled)
69
68
  &::after
70
- transform: translate(-50%, -50%) scale(0.85) rotate(-45deg)
69
+ transform: translate(-50%, -60%) scale(0.85) rotate(-45deg)
71
70
 
72
71
  // Checked state
73
72
  &:checked
74
- border-color: var(--m-checkbox-input-color, var(--m-mm))
75
- background-color: var(--m-checkbox-input-color, var(--m-mm))
76
- box-shadow: 0 4px 15px -3px color-mix(in srgb, var(--m-checkbox-input-color, var(--m-mm)) 40%, transparent 60%)
77
- transform: scale(1.05)
73
+ border-color: var(--m-checkbox-checked-border, #{$focus})
74
+ background: var(--m-checkbox-checked-background, #{$focus})
75
+ background-color: var(--m-checkbox-checked-background, #{$focus})
76
+ box-shadow: none
78
77
 
79
78
  &::after
80
79
  transform: translate(-50%, -60%) scale(1) rotate(-45deg)
81
- border-color: white
80
+ border-left-color: #ffffff
81
+ border-bottom-color: #ffffff
82
+ opacity: 1
82
83
 
83
84
  &:hover:not(:disabled)
84
- background-color: color-mix(in srgb, var(--m-checkbox-input-color, var(--m-mm)) 90%, black 10%)
85
- border-color: color-mix(in srgb, var(--m-checkbox-input-color, var(--m-mm)) 90%, black 10%)
86
-
87
- &:active:not(:disabled)
88
- &::after
89
- transform: translate(-50%, -60%) scale(0.85) rotate(-45deg)
85
+ background: color-mix(in srgb, var(--m-checkbox-checked-background, #{$focus}) 88%, black 12%)
86
+ background-color: color-mix(in srgb, var(--m-checkbox-checked-background, #{$focus}) 88%, black 12%)
87
+ border-color: color-mix(in srgb, var(--m-checkbox-checked-border, #{$focus}) 88%, black 12%)
88
+ box-shadow: 0 0 0 3px color-mix(in srgb, #{$focus} 18%, transparent)
90
89
 
91
- &:focus
92
- box-shadow: 0 0 0 calc(#{$size} / 5) color-mix(in srgb, var(--m-checkbox-input-color, var(--m-mm)) 25%, transparent 75%)
90
+ &:focus,
91
+ &:focus-visible
92
+ box-shadow: var(--m-text-input-focus-shadow, var(--m-text-input-shadow, 0 0 0 3px color-mix(in srgb, #{$focus} 25%, transparent)))
93
93
 
94
94
  // Indeterminate state
95
95
  &:indeterminate
96
- border-color: var(--m-checkbox-input-color, var(--m-mm))
97
- background-color: var(--m-checkbox-input-color, var(--m-mm))
96
+ border-color: var(--m-checkbox-checked-border, #{$focus})
97
+ background: var(--m-checkbox-checked-background, #{$focus})
98
+ background-color: var(--m-checkbox-checked-background, #{$focus})
98
99
 
99
100
  &::after
100
101
  transform: translate(-50%, -50%) scale(1) rotate(0deg)
101
102
  width: calc(#{$size} * 0.5)
102
103
  height: 0
103
104
  border-left: none
104
- border-bottom: calc(#{$size} * 0.12) solid white
105
+ border-bottom: calc(#{$size} * 0.12) solid #ffffff
106
+
107
+ &:hover:not(:disabled)
108
+ background: color-mix(in srgb, var(--m-checkbox-checked-background, #{$focus}) 88%, black 12%)
109
+ background-color: color-mix(in srgb, var(--m-checkbox-checked-background, #{$focus}) 88%, black 12%)
110
+ border-color: color-mix(in srgb, var(--m-checkbox-checked-border, #{$focus}) 88%, black 12%)
111
+ box-shadow: 0 0 0 3px color-mix(in srgb, #{$focus} 18%, transparent)
112
+
113
+ &:focus,
114
+ &:focus-visible
115
+ box-shadow: var(--m-text-input-focus-shadow, var(--m-text-input-shadow, 0 0 0 3px color-mix(in srgb, #{$focus} 25%, transparent)))
105
116
 
106
117
  // Disabled state
107
118
  &:disabled
108
119
  opacity: 0.5
109
120
  cursor: not-allowed
110
- border-color: color-mix(in srgb, var(--m-checkbox-input-color, var(--m-mm)) 20%, transparent 80%)
121
+ border-color: color-mix(in srgb, #{$text} 12%, #{$background})
111
122
 
112
123
  &:checked
113
124
  &::after
114
- opacity: 0.5
125
+ opacity: 0.7
126
+
127
+ &.error
128
+ border-color: $error
115
129
 
@@ -80,10 +80,10 @@
80
80
  background: $background
81
81
  $size: 1em
82
82
  +control-dims($size)
83
- border-width: var(--m-input-border-width, 2px)
84
- border-radius: var(--m-input-radius, 4px)
85
- height: calc(var(--input-size, #{$size}) * 2.25)
86
- min-height: calc(var(--input-size, #{$size}) * 2.25)
83
+ border-width: var(--m-input-border-width, 1px)
84
+ border-radius: var(--m-input-radius, calc(var(--input-size, #{$size}) * 0.5))
85
+ height: calc(var(--input-size, #{$size}) * 2.75)
86
+ min-height: calc(var(--input-size, #{$size}) * 2.75)
87
87
  padding-top: 0
88
88
  padding-bottom: 0
89
89
  +control-interactive(var(--m-input-color, var(--m-mm)))
@@ -104,13 +104,13 @@
104
104
  )
105
105
  padding-right: 0
106
106
 
107
- // Focus reads as a soft tint on the border only — never a ring. The
108
- // color-mix keeps the focus hue legible without the shadow control-interactive
109
- // would otherwise paint.
107
+ // A restrained ring keeps keyboard focus unmistakable without making every
108
+ // resting field look active. Existing component-level shadows remain an
109
+ // explicit opt-out through --m-text-input-shadow.
110
110
  &:focus-visible:not(:disabled),
111
111
  &:focus-within:not(:disabled)
112
- border-color: var(--m-text-input-focus-border, #{f.derive-focus-border()})
113
- box-shadow: var(--m-text-input-shadow, none)
112
+ border-color: var(--m-text-input-focus-border, #{$focus})
113
+ box-shadow: var(--m-text-input-focus-shadow, var(--m-text-input-shadow, 0 0 0 3px color-mix(in srgb, #{$focus} 14%, transparent)))
114
114
 
115
115
  &:has(.error)
116
116
  border-color: $error