@magmonium/one 0.4.1 → 0.4.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.
@@ -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-DCRM0N5X.mjs';
3
+ import { h as BaseTextInputComponent, k as IS_DESIGN_MODE, L as LabelComponent, j as TextOutputComponent } from './magmonium-one-magmonium-one-BiVtM3fV.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-Cq5Hfnh_.mjs.map
201
+ //# sourceMappingURL=magmonium-one-otp-CR75q6_8.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"magmonium-one-otp-Cq5Hfnh_.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,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,iBAAiB,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-CR75q6_8.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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,EAAA,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-DCRM0N5X.mjs';
3
+ import { h as BaseTextInputComponent, L as LabelComponent, j as TextOutputComponent, B as ButtonComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-BiVtM3fV.mjs';
4
4
 
5
5
  class PasswordInputComponent extends BaseTextInputComponent {
6
6
  isPassword = signal(true, ...(ngDevMode ? [{ debugName: "isPassword" }] : /* istanbul ignore next */ []));
@@ -102,4 +102,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
102
102
  }] });
103
103
 
104
104
  export { PasswordInputComponent };
105
- //# sourceMappingURL=magmonium-one-password-B4R18v54.mjs.map
105
+ //# sourceMappingURL=magmonium-one-password-6DmhCY23.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"magmonium-one-password-B4R18v54.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,OAA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A,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,s8HAAA,CAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"magmonium-one-password-6DmhCY23.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,IAAI,EAAE,CAAC;IACpC;uGAZW,sBAAsB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAtB,IAAA,OAAA,IAAA,GAAA,E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C,EAAA,eAAA,EAE7D,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,s8HAAA,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-DCRM0N5X.mjs';
3
+ import { g as BaseInputComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-BiVtM3fV.mjs';
4
4
 
5
5
  class ToggleInputComponent extends BaseInputComponent {
6
6
  value = undefined;
@@ -59,4 +59,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
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-DXiBGDPh.mjs.map
62
+ //# sourceMappingURL=magmonium-one-toggle-B65nJdOJ.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"magmonium-one-toggle-DXiBGDPh.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,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oB,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,+6GAAA,CAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"magmonium-one-toggle-B65nJdOJ.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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,EAAA,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,+6GAAA,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,+6GAAA,CAAA,EAAA;;;;;"}
@@ -1,2 +1,2 @@
1
- export { A as ACCESS_DOMAINS, l as APP_CONTEXT_REF, m as APP_LINK, n as ASSET_BASE_URL, q as AccordionBodyDirective, s as AccordionComponent, t as AccordionGroupComponent, u as ActionComponent, v as AnimatedGraphsComponent, w as AppCardComponent, x as AppRelationType, y as AppTileComponent, z as AssetStore, C as AssetUrlPipe, D as Assets, E as AuthActivityPageComponent, F as AuthApiService, G as AuthStore, J as AutosizeDirective, K as BadgeComponent, N as BandingComponent, O as BaseArrayInputComponent, P as BaseRootWebComponent, Q as BaseWebComponent, B as ButtonComponent, S as ButtonGroupComponent, U as CALLING_APP_HEADER, V as COMPONENT_INPUT_REGISTRY, W as CardComponent, X as CardWrapperComponent, Y as CarouselComponent, Z as ChartComponent, _ as ChatBubbleComponent, $ as CheckboxInputComponent, a0 as ClearableInputComponent, a1 as ClipboardService, a2 as ColComponent, a3 as ColorPickerInputComponent, a4 as CommentItemComponent, a5 as CommentsApiService, a6 as CommentsComponent, a7 as CommentsStore, a8 as CompactNumberPipe, a9 as ComponentInputComponent, aa as ComponentStepperComponent, ab as ConfigComponent, ac as ConfirmComponent, ad as ContextMenuComponent, ae as CustomIconClass, af as CustomIconEditComponent, ag as DEFAULT_DENIAL, ah as DEFAULT_DOC_DENSITY, ai as DEFAULT_DOC_VARIANT, aj as DEFAULT_FILTER_RANGE_MODE, ak as DEFAULT_FILTER_VARIANT, al as DEFAULT_NAV_PARAM, am as DEFAULT_NAV_SEGMENT, an as DEFAULT_SIZE, ao as DOCK_MIN_PAGE_REMAINDER, ap as DOCS_FOLDER, aq as DOC_ACTION_ICONS, ar as DOC_DENSITIES, as as DOC_EDIT_ACTIONS, at as DOC_TOOLBAR_GROUPS, au as DOC_VARIANTS, av as DashboardCardComponent, aw as DateInputComponent, ax as DatePickerComponent, ay as DeviceService, az as DocComponent, aA as DocEditorComponent, aB as DomService, aC as Domain, aD as DotGridComponent, aE as DragListDirective, aF as DragListItemDirective, aG as DraggableDirective, aH as DropdownInputComponent, aI as FILTER_GROUP_CONTEXT, aJ as FILTER_RANGE_MODES, aK as FILTER_VARIANTS, aL as FLEX_VARIANTS, aM as FOLDER_PICK_LISTENER, aN as FORM_ASSET_FOLDER, aO as FileService, aP as FileUploadDirective, aQ as FileUploadInputComponent, aR as FlexComponent, aS as FlexItemComponent, aT as FormGroupComponent, aU as FrameComponent, aV as FreezeService, aW as GRID_BREAKPOINTS, aX as GetNavService, H as HeaderComponent, aY as HighlightDirective, aZ as HttpService, a_ as ICON_SOURCE, k as IS_DESIGN_MODE, a$ as IS_SIDE_PANEL, b0 as IconComponent, b1 as ImgComponent, I as InputType, b2 as InstrumentScoreComponent, b3 as InterceptorObservables, b4 as JumbotronComponent, b5 as KeyValueComponent, b6 as LAYOUT_ASSET_FOLDER, b7 as LOGIN_COMPONENT, b8 as LOGIN_STORE, b9 as LanguageComponent, ba as ListComponent, bb as LogoComponent, bc as MAG_SOCKET_EVENT, bd as MHeroColorDirective, be as MHeroComponent, M as MODAL_REF, bf as MODAL_STORE_REF, bg as MOUNT_STATIC_SEGMENT, bh as MOUNT_TOKEN, bi as MRefDirective, bj as MStepComponent, bk as MURL_PARAM, bl as MURL_SEP, bm as ManifestEnrichmentService, bn as MenuComponent, bo as ModalDirective, bp as ModalRef, bq as ModalStore, br as MoneyPipe, bs as MultiRangeInputComponent, bt as MurlUrlSerializer, bu as NAV_DEFAULT_MURL, bv as NAV_ID_SEP, bw as NAV_MAIN_BUTTONS, bx as NAV_SEGMENT_RE, by as NAV_STORE_REF, bz as NAV_WC_COMPONENTS, bA as NAV_WIDGET_MAP, bB as NavComponent, bC as NavDetailsComponent, bD as NavHeaderComponent, bE as NavMenuComponent, bF as NavStore, bG as NavTrailComponent, bH as NothingComponent, bI as NotificationElementComponent, bJ as NotificationGroupComponent, bK as NotificationPopupComponent, bL as NotificationService, bM as NotificationStore, bN as NotificationType, bO as NotificationWidgetComponent, bP as ONE_ASSET_BASE_URL, bQ as OPTIONS_SOURCE, bR as OVERLAY_WIDGETS, bS as OneApp, bT as OptionsSourceDirective, bU as OverlayBodyComponent, bV as OverlayRef, bW as OverlayService, bX as PLATFORM_BUTTON_NAV_IDS, bY as PLATFORM_EXTENSIBLE_NAV_IDS, bZ as PLATFORM_NAV_MAP, b_ as PLATFORM_ROOT_CHILDREN, b$ as PaginationComponent, c0 as PanelComponent, c1 as PercentagePipe, c2 as PlaygroundComponent, c3 as PositionDirective, c4 as PwaInstallComponent, c5 as RECENT_SEARCH_LIMIT, c6 as REMOTE_PAGE_RELOAD, c7 as ROOT_NAV, c8 as RadioGroupComponent, c9 as RadioInputComponent, R as RangeInputComponent, ca as RatingInputComponent, cb as ReactiveElementComponent, cc as RemoteComponent, cd as RemoteLoaderService, ce as ResizeElementComponent, cf as RouteContainer, cg as RowComponent, ch as SEARCH_QUERY, ci as SEARCH_RESULTS_EVENT, cj as SECTION_ACCORDION_GROUP, ck as SECTION_FORM_CONTEXT, cl as SECTION_TABLE_VARIANTS, cm as SHARED_ICONS, cn as SIZE_CONTEXT, co as ScoreComponent, cp as ScrollComponent, cq as ScrollService, cr as SearchPanelComponent, cs as SearchStore, ct as SearchUserPanelComponent, cu as SectionAccordionDirective, cv as SectionAccordionGroupDirective, cw as SectionBackComponent, cx as SectionBadgesComponent, cy as SectionButtonGroupComponent, cz as SectionCardComponent, cA as SectionCarouselComponent, cB as SectionComponent, cC as SectionFilterComponent, cD as SectionFilterGroupComponent, cE as SectionFilterMenuComponent, cF as SectionFilterPanelComponent, cG as SectionFilterRangePanelComponent, cH as SectionFooterComponent, cI as SectionFormComponent, cJ as SectionFormItemComponent, cK as SectionHeaderComponent, cL as SectionHeroComponent, cM as SectionPaginationComponent, cN as SectionSearchComponent, cO as SectionStepperComponent, cP as SectionTableCellComponent, cQ as SectionTableComponent, cR as SectionTableRowComponent, cS as SectionTableSortPipe, cT as SectionTabsComponent, cU as SectionToggleComponent, cV as SectionToggleItemDirective, cW as SelectableCardInputComponent, cX as SelectorDirective, cY as SettingsSearchBarComponent, cZ as SettingsSearchService, c_ as ShapeComponent, c$ as SharedStoreRegistry, d0 as SidePanelDirective, d1 as Size, d2 as SocketStore, d3 as SortComponent, d4 as StatComponent, d5 as StepComponent, d6 as StepperComponent, d7 as StepsComponent, d8 as StorageService, d9 as StrokeLinecap, da as StrokeLinejoin, db as SummaryComponent, dc as SvgGeneratorComponent, dd as SvgGeneratorService, de as SvgService, df as TOTAL_COLUMNS, dg as TRANSLATION_SOURCE, dh as TableComponent, di as TechnicalMeterComponent, dj as TextInputComponent, j as TextOutputComponent, dk as TextareaInputComponent, dl as ThemeComponent, dm as ThemeDataService, dn as ThemeService, dp as ThemeStore, dq as TimeAgoPipe, dr as TimelineComponent, ds as ToggleButtonComponent, dt as ToggleInputComponent, du as ToggleRadioInputComponent, dv as ToolTipDirective, dw as TooltipComponent, T as TranslatePipe, dx as TranslateService, dy as TreeGridComponent, dz as URL_SEP, dA as USER_STORE_REF, dB as USER_TAB_MAP, dC as UniverseComponent, dD as UserApiService, dE as UserAvatarComponent, dF as UserComponent, dG as UserNavComponent, dH as UserSettingsComponent, dI as UserStore, dJ as WC_BUNDLE, dK as WC_NAVIGATE_EVENT, dL as WC_ROUTE_CHANGED_EVENT, dM as WC_SEARCH_GROUPS, dN as WIN_USER_TAB_HOOK, dO as WIN_USER_TAB_KEY, dP as WatermarkComponent, dQ as WcRouterStore, dR as WrapperInputComponent, dS as anchorNavId, dT as applyColorsToElement, dU as applyDocEdit, dV as assetOptions, dW as bootstrapMagApp, dX as bootstrapPwaInstall, dY as buildWcBaseUrl, dZ as calculateLuminance, d_ as calculateRanks, d$ as cellText, e0 as checkDoc, e1 as checkFilterCondition, e2 as childNavId, e3 as claimDenial, e4 as classListSignal, e5 as coerceSize, e6 as cornerEdge, e7 as cornerSide, e8 as createMap, e9 as createPlatformNavMap, ea as definedWcTierOf, eb as deriveAvatarGradient, ec as deriveContrastColor, ed as deriveOppositeColor, ee as derivePropertyName, ef as docActionKey, eg as docAssetCandidates, eh as docProblemKey, ei as docRemotePath, ej as emailValidation, ek as evaluate, el as evaluateBool, em as fieldBoolean, en as fieldNumber, eo as fieldString, ep as filterHoldsList, eq as filterHoldsOneBound, er as filterHoldsOptions, es as filterHoldsRange, et as filterList, eu as filterNumber, ev as filterNumberList, ew as filterOne, ex as filterPanelOf, ey as filterPanelWidth, ez as filterRange, eA as filterTreeGridRows, eB as filterValueList, eC as filterValues, eD as flattenTreeGridRows, eE as formatBadgeCount, eF as fullName, eG as generateClipPath, eH as generateTransform, eI as getClassList, eJ as getProperty, eK as getScrollParent, eL as getTierFromPreviewPath, eM as getTreeGridRow, eN as getUniqueId, eO as getValue, eP as hasErrorComputed, eQ as hexToRgb, eR as hslToRgb, eS as initMagmoniumApp, eT as initialNotificationState, eU as initialState, eV as initials, eW as injectAuthenticate, eX as injectDefaultDenial, eY as injectInstallApp, eZ as injectParentSize, e_ as injectScrollSticky, e$ as isBootRedirect, f0 as isButtonName, f1 as isCancelledComputed, f2 as isExtensiblePlatformNavId, f3 as isJson, f4 as isLoadingComputed, f5 as isLocalhost, f6 as isNavInstanceConfig, f7 as isNavMenuConfig, f8 as isNavRowsConfig, f9 as isNavVisibilityConfig, fa as isPlatformNavId, fb as isSize, fc as isTierPreview, fd as isUrlLocalhost, fe as isValidNavId, ff as isValidNavSegment, fg as isWebComponent, fh as linkToId, fi as linkToNav, fj as loadingActions, fk as mInterceptor, fl as manualValidation, fm as matchFieldValidation, fn as matchMount, fo as maxLengthValidation, fp as maxValidation, fq as mergePlatformNav, fr as mergeUnique, fs as mergeUniqueBy, ft as mergeUniqueWith, fu as minAgeValidation, fv as minLengthValidation, fw as minValidation, fx as miniMarkToHtml, fy as mountFor, fz as mountPatternProblem, fA as mountPatternText, fB as mountSegmentOf, fC as mountTokenOf, fD as navIdChain, fE as navIdFor, fF as navIdSegment, fG as navIdToRoutePath, fH as navIdToSegments, fI as navParamOf, fJ as navTailMatcher, fK as navToId, fL as navVisibilityGuard, fM as nextSectionTableSort, fN as normalizeAssetOptions, fO as offsetOfLine, fP as parentNavId, fQ as parseAddress, fR as parseColor, fS as parseMountPattern, fT as parsePatternNames, fU as patternValidation, fV as patternsValidation, fW as permissionRefusal, fX as platformNavWidgets, fY as privateGuard, fZ as processImageToSvg, f_ as provideAppContext, f$ as provideMagAppConfig, g0 as provideMagWcConfig, g1 as provideMagWcRoutes, g2 as provideModalComponents, g3 as provideMurlUrlSerializer, g4 as provideNavWidgets, g5 as provideOverlayWidgets, g6 as providePlatformNavWidgets, g7 as provideSearch, g8 as provideSizeContext, g9 as provideUserTabs, ga as publicGuard, gb as readFieldPatterns, gc as recordDefinedWcTier, gd as remoteOutletRoute, ge as renderAddress, gf as renderDocument, gg as requiredValidation, gh as resolveConfigAsset, gi as resolveIconSize, gj as resolvePallet, gk as resolvePatternRules, gl as resolveSize, gm as rgbToHex, gn as rgbToHsl, go as rowHasChildren, gp as samePatterns, gq as sectionTableColumnId, gr as sectionTableColumnWidths, gs as sectionTableFrozenCount, gt as segmentsToNavId, gu as setProperty, gv as setTreeGridChildren, gw as setWcTier, gx as settingsWidgets, gy as shouldShowBadge, gz as sortSectionTableRows, gA as splitNavId, gB as splitOnMatch, gC as stringToColor, gD as tailRouteOf, gE as toAttrBool, gF as toAttrNumber, gG as toCssLength, gH as toHostNavId, gI as toLength, gJ as toLocalNavId, gK as toggleTreeGridRow, gL as unfetchedPlatformNav, gM as ungroupedDocActions, gN as urlValidation, gO as wcTierOf } from './magmonium-one-magmonium-one-DCRM0N5X.mjs';
1
+ export { A as ACCESS_DOMAINS, l as APP_CONTEXT_REF, m as APP_LINK, n as ASSET_BASE_URL, q as AccordionBodyDirective, s as AccordionComponent, t as AccordionGroupComponent, u as ActionComponent, v as AnimatedGraphsComponent, w as AppCardComponent, x as AppRelationType, y as AppTileComponent, z as AssetStore, C as AssetUrlPipe, D as Assets, E as AuthActivityPageComponent, F as AuthApiService, G as AuthStore, J as AutosizeDirective, K as BadgeComponent, N as BandingComponent, O as BaseArrayInputComponent, P as BaseRootWebComponent, Q as BaseWebComponent, B as ButtonComponent, S as ButtonGroupComponent, U as CALLING_APP_HEADER, V as COMPONENT_INPUT_REGISTRY, W as CardComponent, X as CardWrapperComponent, Y as CarouselComponent, Z as ChartComponent, _ as ChatBubbleComponent, $ as CheckboxInputComponent, a0 as ClearableInputComponent, a1 as ClipboardService, a2 as ColComponent, a3 as ColorPickerInputComponent, a4 as CommentItemComponent, a5 as CommentsApiService, a6 as CommentsComponent, a7 as CommentsStore, a8 as CompactNumberPipe, a9 as ComponentInputComponent, aa as ComponentStepperComponent, ab as ConfigComponent, ac as ConfirmComponent, ad as ContextMenuComponent, ae as CustomIconClass, af as CustomIconEditComponent, ag as DEFAULT_DENIAL, ah as DEFAULT_DOC_DENSITY, ai as DEFAULT_DOC_VARIANT, aj as DEFAULT_FILTER_RANGE_MODE, ak as DEFAULT_FILTER_VARIANT, al as DEFAULT_NAV_PARAM, am as DEFAULT_NAV_SEGMENT, an as DEFAULT_SIZE, ao as DOCK_MIN_PAGE_REMAINDER, ap as DOCS_FOLDER, aq as DOC_ACTION_ICONS, ar as DOC_DENSITIES, as as DOC_EDIT_ACTIONS, at as DOC_TOOLBAR_GROUPS, au as DOC_VARIANTS, av as DashboardCardComponent, aw as DateInputComponent, ax as DatePickerComponent, ay as DeviceService, az as DocComponent, aA as DocEditorComponent, aB as DomService, aC as Domain, aD as DotGridComponent, aE as DragListDirective, aF as DragListItemDirective, aG as DraggableDirective, aH as DropdownInputComponent, aI as FILTER_GROUP_CONTEXT, aJ as FILTER_RANGE_MODES, aK as FILTER_VARIANTS, aL as FLEX_VARIANTS, aM as FOLDER_PICK_LISTENER, aN as FORM_ASSET_FOLDER, aO as FileService, aP as FileUploadDirective, aQ as FileUploadInputComponent, aR as FlexComponent, aS as FlexItemComponent, aT as FormGroupComponent, aU as FrameComponent, aV as FreezeService, aW as GRID_BREAKPOINTS, aX as GetNavService, H as HeaderComponent, aY as HighlightDirective, aZ as HttpService, a_ as ICON_SOURCE, k as IS_DESIGN_MODE, a$ as IS_SIDE_PANEL, b0 as IconComponent, b1 as ImgComponent, I as InputType, b2 as InstrumentScoreComponent, b3 as InterceptorObservables, b4 as JumbotronComponent, b5 as KeyValueComponent, b6 as LAYOUT_ASSET_FOLDER, b7 as LOGIN_COMPONENT, b8 as LOGIN_STORE, b9 as LanguageComponent, ba as ListComponent, bb as LogoComponent, bc as MAG_SOCKET_EVENT, bd as MHeroColorDirective, be as MHeroComponent, M as MODAL_REF, bf as MODAL_STORE_REF, bg as MOUNT_STATIC_SEGMENT, bh as MOUNT_TOKEN, bi as MRefDirective, bj as MStepComponent, bk as MURL_PARAM, bl as MURL_SEP, bm as ManifestEnrichmentService, bn as MenuComponent, bo as ModalDirective, bp as ModalRef, bq as ModalStore, br as MoneyPipe, bs as MultiRangeInputComponent, bt as MurlUrlSerializer, bu as NAV_DEFAULT_MURL, bv as NAV_ID_SEP, bw as NAV_MAIN_BUTTONS, bx as NAV_SEGMENT_RE, by as NAV_STORE_REF, bz as NAV_WC_COMPONENTS, bA as NAV_WIDGET_MAP, bB as NavComponent, bC as NavDetailsComponent, bD as NavHeaderComponent, bE as NavMenuComponent, bF as NavStore, bG as NavTrailComponent, bH as NothingComponent, bI as NotificationElementComponent, bJ as NotificationGroupComponent, bK as NotificationPopupComponent, bL as NotificationService, bM as NotificationStore, bN as NotificationType, bO as NotificationWidgetComponent, bP as ONE_ASSET_BASE_URL, bQ as OPTIONS_SOURCE, bR as OVERLAY_WIDGETS, bS as OneApp, bT as OptionsSourceDirective, bU as OverlayBodyComponent, bV as OverlayRef, bW as OverlayService, bX as PLATFORM_BUTTON_NAV_IDS, bY as PLATFORM_EXTENSIBLE_NAV_IDS, bZ as PLATFORM_NAV_MAP, b_ as PLATFORM_ROOT_CHILDREN, b$ as PaginationComponent, c0 as PanelComponent, c1 as PercentagePipe, c2 as PlaygroundComponent, c3 as PositionDirective, c4 as PwaInstallComponent, c5 as RECENT_SEARCH_LIMIT, c6 as REMOTE_PAGE_RELOAD, c7 as ROOT_NAV, c8 as RadioGroupComponent, c9 as RadioInputComponent, R as RangeInputComponent, ca as RatingInputComponent, cb as ReactiveElementComponent, cc as RemoteComponent, cd as RemoteLoaderService, ce as ResizeElementComponent, cf as RouteContainer, cg as RowComponent, ch as SEARCH_QUERY, ci as SEARCH_RESULTS_EVENT, cj as SECTION_ACCORDION_GROUP, ck as SECTION_FORM_CONTEXT, cl as SECTION_TABLE_VARIANTS, cm as SHARED_ICONS, cn as SIZE_CONTEXT, co as ScoreComponent, cp as ScrollComponent, cq as ScrollService, cr as SearchPanelComponent, cs as SearchStore, ct as SearchUserPanelComponent, cu as SectionAccordionDirective, cv as SectionAccordionGroupDirective, cw as SectionBackComponent, cx as SectionBadgesComponent, cy as SectionButtonGroupComponent, cz as SectionCardComponent, cA as SectionCarouselComponent, cB as SectionComponent, cC as SectionFilterComponent, cD as SectionFilterGroupComponent, cE as SectionFilterMenuComponent, cF as SectionFilterPanelComponent, cG as SectionFilterRangePanelComponent, cH as SectionFooterComponent, cI as SectionFormComponent, cJ as SectionFormItemComponent, cK as SectionHeaderComponent, cL as SectionHeroComponent, cM as SectionPaginationComponent, cN as SectionSearchComponent, cO as SectionStepperComponent, cP as SectionTableCellComponent, cQ as SectionTableComponent, cR as SectionTableRowComponent, cS as SectionTableSortPipe, cT as SectionTabsComponent, cU as SectionToggleComponent, cV as SectionToggleItemDirective, cW as SelectableCardInputComponent, cX as SelectorDirective, cY as SettingsSearchBarComponent, cZ as SettingsSearchService, c_ as ShapeComponent, c$ as SharedStoreRegistry, d0 as SidePanelDirective, d1 as Size, d2 as SocketStore, d3 as SortComponent, d4 as StatComponent, d5 as StepComponent, d6 as StepperComponent, d7 as StepsComponent, d8 as StorageService, d9 as StrokeLinecap, da as StrokeLinejoin, db as SummaryComponent, dc as SvgGeneratorComponent, dd as SvgGeneratorService, de as SvgService, df as TOTAL_COLUMNS, dg as TRANSLATION_SOURCE, dh as TableComponent, di as TechnicalMeterComponent, dj as TextInputComponent, j as TextOutputComponent, dk as TextareaInputComponent, dl as ThemeComponent, dm as ThemeDataService, dn as ThemeService, dp as ThemeStore, dq as TimeAgoPipe, dr as TimelineComponent, ds as ToggleButtonComponent, dt as ToggleInputComponent, du as ToggleRadioInputComponent, dv as ToolTipDirective, dw as TooltipComponent, T as TranslatePipe, dx as TranslateService, dy as TreeGridComponent, dz as URL_SEP, dA as USER_STORE_REF, dB as USER_TAB_MAP, dC as UniverseComponent, dD as UserApiService, dE as UserAvatarComponent, dF as UserComponent, dG as UserNavComponent, dH as UserSettingsComponent, dI as UserStore, dJ as WC_BUNDLE, dK as WC_NAVIGATE_EVENT, dL as WC_ROUTE_CHANGED_EVENT, dM as WC_SEARCH_GROUPS, dN as WIN_USER_TAB_HOOK, dO as WIN_USER_TAB_KEY, dP as WatermarkComponent, dQ as WcRouterStore, dR as WrapperInputComponent, dS as anchorNavId, dT as applyColorsToElement, dU as applyDocEdit, dV as assetOptions, dW as bootstrapMagApp, dX as bootstrapPwaInstall, dY as buildWcBaseUrl, dZ as calculateLuminance, d_ as calculateRanks, d$ as cellText, e0 as checkDoc, e1 as checkFilterCondition, e2 as childNavId, e3 as claimDenial, e4 as classListSignal, e5 as coerceSize, e6 as cornerEdge, e7 as cornerSide, e8 as createMap, e9 as createPlatformNavMap, ea as definedWcTierOf, eb as deriveAvatarGradient, ec as deriveContrastColor, ed as deriveOppositeColor, ee as derivePropertyName, ef as docActionKey, eg as docAssetCandidates, eh as docProblemKey, ei as docRemotePath, ej as emailValidation, ek as evaluate, el as evaluateBool, em as fieldBoolean, en as fieldNumber, eo as fieldString, ep as filterHoldsList, eq as filterHoldsOneBound, er as filterHoldsOptions, es as filterHoldsRange, et as filterList, eu as filterNumber, ev as filterNumberList, ew as filterOne, ex as filterPanelOf, ey as filterPanelWidth, ez as filterRange, eA as filterTreeGridRows, eB as filterValueList, eC as filterValues, eD as flattenTreeGridRows, eE as formatBadgeCount, eF as fullName, eG as generateClipPath, eH as generateTransform, eI as getClassList, eJ as getProperty, eK as getScrollParent, eL as getTierFromPreviewPath, eM as getTreeGridRow, eN as getUniqueId, eO as getValue, eP as hasErrorComputed, eQ as hexToRgb, eR as hslToRgb, eS as initMagmoniumApp, eT as initialNotificationState, eU as initialState, eV as initials, eW as injectAuthenticate, eX as injectDefaultDenial, eY as injectInstallApp, eZ as injectParentSize, e_ as injectScrollSticky, e$ as isBootRedirect, f0 as isButtonName, f1 as isCancelledComputed, f2 as isExtensiblePlatformNavId, f3 as isJson, f4 as isLoadingComputed, f5 as isLocalhost, f6 as isNavInstanceConfig, f7 as isNavMenuConfig, f8 as isNavRowsConfig, f9 as isNavVisibilityConfig, fa as isPlatformNavId, fb as isSize, fc as isTierPreview, fd as isUrlLocalhost, fe as isValidNavId, ff as isValidNavSegment, fg as isWebComponent, fh as linkToId, fi as linkToNav, fj as loadingActions, fk as mInterceptor, fl as manualValidation, fm as matchFieldValidation, fn as matchMount, fo as maxLengthValidation, fp as maxValidation, fq as mergePlatformNav, fr as mergeUnique, fs as mergeUniqueBy, ft as mergeUniqueWith, fu as minAgeValidation, fv as minLengthValidation, fw as minValidation, fx as miniMarkToHtml, fy as mountFor, fz as mountPatternProblem, fA as mountPatternText, fB as mountSegmentOf, fC as mountTokenOf, fD as navIdChain, fE as navIdFor, fF as navIdSegment, fG as navIdToRoutePath, fH as navIdToSegments, fI as navParamOf, fJ as navTailMatcher, fK as navToId, fL as navVisibilityGuard, fM as nextSectionTableSort, fN as normalizeAssetOptions, fO as offsetOfLine, fP as parentNavId, fQ as parseAddress, fR as parseColor, fS as parseMountPattern, fT as parsePatternNames, fU as patternValidation, fV as patternsValidation, fW as permissionRefusal, fX as platformNavWidgets, fY as privateGuard, fZ as processImageToSvg, f_ as provideAppContext, f$ as provideMagAppConfig, g0 as provideMagWcConfig, g1 as provideMagWcRoutes, g2 as provideModalComponents, g3 as provideMurlUrlSerializer, g4 as provideNavWidgets, g5 as provideOverlayWidgets, g6 as providePlatformNavWidgets, g7 as provideSearch, g8 as provideSizeContext, g9 as provideUserTabs, ga as publicGuard, gb as readFieldPatterns, gc as recordDefinedWcTier, gd as remoteOutletRoute, ge as renderAddress, gf as renderDocument, gg as requiredValidation, gh as resolveConfigAsset, gi as resolveIconSize, gj as resolvePallet, gk as resolvePatternRules, gl as resolveSize, gm as rgbToHex, gn as rgbToHsl, go as rowHasChildren, gp as samePatterns, gq as sectionTableColumnId, gr as sectionTableColumnWidths, gs as sectionTableFrozenCount, gt as segmentsToNavId, gu as setProperty, gv as setTreeGridChildren, gw as setWcTier, gx as settingsWidgets, gy as shouldShowBadge, gz as sortSectionTableRows, gA as splitNavId, gB as splitOnMatch, gC as stringToColor, gD as tailRouteOf, gE as toAttrBool, gF as toAttrNumber, gG as toCssLength, gH as toHostNavId, gI as toLength, gJ as toLocalNavId, gK as toggleTreeGridRow, gL as unfetchedPlatformNav, gM as ungroupedDocActions, gN as urlValidation, gO as wcTierOf } from './magmonium-one-magmonium-one-BiVtM3fV.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.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "Magmonium One — Angular design-system primitives for mm Apps",
5
5
  "author": "magmonium",
6
6
  "license": "MIT",
@@ -1354,7 +1354,7 @@ declare class DraggableDirective {
1354
1354
  readonly max: _angular_core.InputSignal<Position | undefined>;
1355
1355
  readonly dragStart: _angular_core.OutputEmitterRef<void>;
1356
1356
  readonly dragEnd: _angular_core.OutputEmitterRef<void>;
1357
- protected readonly cursor: _angular_core.Signal<"move" | "ew-resize" | "ns-resize">;
1357
+ protected readonly cursor: _angular_core.Signal<"ew-resize" | "ns-resize" | "move">;
1358
1358
  protected state: DraggableState;
1359
1359
  set pos(position: Position);
1360
1360
  /**
@@ -2458,7 +2458,7 @@ declare class ActionComponent extends ButtonGroupComponent {
2458
2458
  private readonly linkActive;
2459
2459
  private readonly isRouted;
2460
2460
  protected readonly selected: _angular_core.Signal<string | undefined>;
2461
- readonly squeezeAt: _angular_core.InputSignal<"xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined>;
2461
+ readonly squeezeAt: _angular_core.InputSignal<"sm" | "md" | "lg" | "xs" | "xl" | "xxl" | undefined>;
2462
2462
  readonly squeezeMode: _angular_core.InputSignal<SqueezeMode | undefined>;
2463
2463
  private readonly squeeze;
2464
2464
  private readonly barWidth;
@@ -2492,6 +2492,7 @@ declare function isButtonName(name: string, button?: Button): boolean;
2492
2492
  type GridAlignX = 'left' | 'center' | 'right';
2493
2493
  type GridAlignY = 'top' | 'center' | 'bottom';
2494
2494
 
2495
+ type ColVariant = 'noBorder' | 'withBorder';
2495
2496
  interface ColConfig extends Config {
2496
2497
  xs?: number | string;
2497
2498
  sm?: number | string;
@@ -2512,6 +2513,11 @@ interface ColConfig extends Config {
2512
2513
  alignX?: GridAlignX;
2513
2514
  /** Where the Col's own children sit on the block axis. */
2514
2515
  alignY?: GridAlignY;
2516
+ /**
2517
+ * The Col's own divider. Set, it wins over the enclosing Section's
2518
+ * `variant`; anything else (unset, or the editor's `none`) defers to it.
2519
+ */
2520
+ variant?: ColVariant | 'none';
2515
2521
  }
2516
2522
  declare class ColComponent extends ConfigComponent<ColConfig> {
2517
2523
  subFolder: "cols";
@@ -2528,6 +2534,7 @@ declare class ColComponent extends ConfigComponent<ColConfig> {
2528
2534
  readonly paddingY: _angular_core.InputSignal<boolean | undefined>;
2529
2535
  readonly alignX: _angular_core.InputSignal<GridAlignX | undefined>;
2530
2536
  readonly alignY: _angular_core.InputSignal<GridAlignY | undefined>;
2537
+ readonly variant: _angular_core.InputSignal<"none" | ColVariant | undefined>;
2531
2538
  protected readonly resolvedXs: _angular_core.Signal<string | number | undefined>;
2532
2539
  protected readonly resolvedSm: _angular_core.Signal<string | number | undefined>;
2533
2540
  protected readonly resolvedMd: _angular_core.Signal<string | number | undefined>;
@@ -2543,9 +2550,10 @@ declare class ColComponent extends ConfigComponent<ColConfig> {
2543
2550
  protected readonly resolvedAlignY: _angular_core.Signal<GridAlignY | undefined>;
2544
2551
  protected readonly classes: _angular_core.Signal<string>;
2545
2552
  private readonly sectionContext;
2553
+ protected readonly resolvedVariant: _angular_core.Signal<string | undefined>;
2546
2554
  protected readonly noBorder: _angular_core.Signal<boolean>;
2547
2555
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColComponent, never>;
2548
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColComponent, "m-col", never, { "xs": { "alias": "xs"; "required": false; "isSignal": true; }; "sm": { "alias": "sm"; "required": false; "isSignal": true; }; "md": { "alias": "md"; "required": false; "isSignal": true; }; "lg": { "alias": "lg"; "required": false; "isSignal": true; }; "xl": { "alias": "xl"; "required": false; "isSignal": true; }; "xxl": { "alias": "xxl"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "fullHeight": { "alias": "fullHeight"; "required": false; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; "paddingX": { "alias": "paddingX"; "required": false; "isSignal": true; }; "paddingY": { "alias": "paddingY"; "required": false; "isSignal": true; }; "alignX": { "alias": "alignX"; "required": false; "isSignal": true; }; "alignY": { "alias": "alignY"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
2556
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColComponent, "m-col", never, { "xs": { "alias": "xs"; "required": false; "isSignal": true; }; "sm": { "alias": "sm"; "required": false; "isSignal": true; }; "md": { "alias": "md"; "required": false; "isSignal": true; }; "lg": { "alias": "lg"; "required": false; "isSignal": true; }; "xl": { "alias": "xl"; "required": false; "isSignal": true; }; "xxl": { "alias": "xxl"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "fullHeight": { "alias": "fullHeight"; "required": false; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; "paddingX": { "alias": "paddingX"; "required": false; "isSignal": true; }; "paddingY": { "alias": "paddingY"; "required": false; "isSignal": true; }; "alignX": { "alias": "alignX"; "required": false; "isSignal": true; }; "alignY": { "alias": "alignY"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
2549
2557
  }
2550
2558
 
2551
2559
  declare class SectionCardComponent extends ColComponent {
@@ -2584,8 +2592,8 @@ declare class SectionHeaderComponent {
2584
2592
  readonly visibilityRule: _angular_core.InputSignal<((key: string, data?: unknown) => boolean) | undefined>;
2585
2593
  readonly disableRule: _angular_core.InputSignal<((key: string, data?: unknown) => boolean) | undefined>;
2586
2594
  readonly extraData: _angular_core.InputSignal<unknown>;
2587
- readonly align: _angular_core.InputSignal<"left" | "center" | "right" | undefined>;
2588
- readonly alignment: _angular_core.Signal<"left" | "center" | "right">;
2595
+ readonly align: _angular_core.InputSignal<"center" | "left" | "right" | undefined>;
2596
+ readonly alignment: _angular_core.Signal<"center" | "left" | "right">;
2589
2597
  readonly showBack: _angular_core.InputSignal<boolean>;
2590
2598
  readonly actionButton: _angular_core.InputSignal<string | undefined>;
2591
2599
  readonly actionLabel: _angular_core.InputSignal<string | undefined>;
@@ -2601,7 +2609,7 @@ declare class SectionHeaderComponent {
2601
2609
  protected readonly sidepanel: _angular_core.Signal<boolean>;
2602
2610
  protected readonly noBorder: _angular_core.Signal<boolean>;
2603
2611
  protected readonly resolvedMaxWidth: _angular_core.Signal<string | undefined>;
2604
- protected readonly boxAlign: _angular_core.Signal<"left" | "center" | "right">;
2612
+ protected readonly boxAlign: _angular_core.Signal<"center" | "left" | "right">;
2605
2613
  protected readonly iconBox: _angular_core.Signal<string>;
2606
2614
  protected readonly isSticky: _angular_core.Signal<boolean>;
2607
2615
  protected readonly hasMenu: _angular_core.Signal<boolean>;
@@ -2928,7 +2936,7 @@ declare class BaseTextInputComponent<T extends Input = TextInput> extends BaseIn
2928
2936
  private autofocused;
2929
2937
  constructor();
2930
2938
  readonly isFocused: _angular_core.WritableSignal<boolean>;
2931
- readonly iconColor: _angular_core.Signal<"error" | "focus" | "border">;
2939
+ readonly iconColor: _angular_core.Signal<"error" | "border" | "focus">;
2932
2940
  protected readonly setValue: (value: string) => void;
2933
2941
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseTextInputComponent<any>, never>;
2934
2942
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseTextInputComponent<any>, never, never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
@@ -3364,7 +3372,7 @@ declare class SectionFilterGroupComponent {
3364
3372
  readonly paddingX: _angular_core.InputSignal<boolean | undefined>;
3365
3373
  readonly paddingY: _angular_core.InputSignal<boolean | undefined>;
3366
3374
  readonly maxWidth: _angular_core.InputSignal<string | undefined>;
3367
- readonly align: _angular_core.InputSignal<"left" | "center" | "right" | undefined>;
3375
+ readonly align: _angular_core.InputSignal<"center" | "left" | "right" | undefined>;
3368
3376
  readonly config: _angular_core.InputSignal<SectionFilterGroupConfig | undefined>;
3369
3377
  /**
3370
3378
  * The whole group's selection, keyed by each Filter's `name` — one key per
@@ -3382,7 +3390,7 @@ declare class SectionFilterGroupComponent {
3382
3390
  protected readonly resolvedPadding: _angular_core.Signal<boolean>;
3383
3391
  protected readonly resolvedPaddingX: _angular_core.Signal<boolean>;
3384
3392
  protected readonly resolvedPaddingY: _angular_core.Signal<boolean>;
3385
- protected readonly resolvedAlign: _angular_core.Signal<"left" | "center" | "right">;
3393
+ protected readonly resolvedAlign: _angular_core.Signal<"center" | "left" | "right">;
3386
3394
  protected readonly resolvedMaxWidth: _angular_core.Signal<string | undefined>;
3387
3395
  protected readonly noBorder: _angular_core.Signal<boolean>;
3388
3396
  /**
@@ -3444,7 +3452,7 @@ declare class SectionStepperComponent implements OnDestroy {
3444
3452
  readonly lg: _angular_core.InputSignal<number | undefined>;
3445
3453
  readonly xl: _angular_core.InputSignal<number | undefined>;
3446
3454
  readonly xxl: _angular_core.InputSignal<number | undefined>;
3447
- readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical" | undefined>;
3455
+ readonly orientation: _angular_core.InputSignal<"vertical" | "horizontal" | undefined>;
3448
3456
  readonly stepChange: _angular_core.OutputEmitterRef<number>;
3449
3457
  private readonly isCompact;
3450
3458
  private readonly mediaMatched;
@@ -3470,7 +3478,7 @@ declare class SectionStepperComponent implements OnDestroy {
3470
3478
  declare class SectionBadgesComponent {
3471
3479
  readonly wrap: _angular_core.InputSignal<boolean>;
3472
3480
  readonly border: _angular_core.InputSignal<boolean>;
3473
- readonly align: _angular_core.InputSignal<"left" | "center" | "right">;
3481
+ readonly align: _angular_core.InputSignal<"center" | "left" | "right">;
3474
3482
  private readonly sectionContext;
3475
3483
  protected readonly hasBorder: _angular_core.Signal<boolean>;
3476
3484
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SectionBadgesComponent, never>;
@@ -3544,7 +3552,7 @@ declare class SectionToggleComponent<T extends SectionToggleItem = SectionToggle
3544
3552
 
3545
3553
  declare class SectionFooterComponent {
3546
3554
  readonly sticky: _angular_core.InputSignal<boolean>;
3547
- readonly align: _angular_core.InputSignal<"left" | "center" | "right">;
3555
+ readonly align: _angular_core.InputSignal<"center" | "left" | "right">;
3548
3556
  private readonly scrollSticky;
3549
3557
  protected readonly isSticky: _angular_core.Signal<boolean>;
3550
3558
  private readonly sectionContext;
@@ -3588,7 +3596,7 @@ declare class SectionPaginationComponent {
3588
3596
  * Entries that are not positive numbers drop rather than throw.
3589
3597
  */
3590
3598
  readonly perPageOptions: _angular_core.InputSignal<string | undefined>;
3591
- readonly align: _angular_core.InputSignal<"left" | "center" | "right">;
3599
+ readonly align: _angular_core.InputSignal<"center" | "left" | "right">;
3592
3600
  readonly showPerPage: _angular_core.InputSignal<boolean>;
3593
3601
  /** Hides the band outright once everything fits one page. */
3594
3602
  readonly hideOnSinglePage: _angular_core.InputSignal<boolean>;
@@ -3920,7 +3928,7 @@ declare class SectionButtonGroupComponent extends ConfigComponent<SectionButtonG
3920
3928
  protected readonly resolvedFullWidth: _angular_core.Signal<boolean>;
3921
3929
  protected readonly resolvedVertical: _angular_core.Signal<boolean>;
3922
3930
  protected readonly resolvedVariant: _angular_core.Signal<"spaced" | "joined">;
3923
- protected readonly resolvedAlign: _angular_core.Signal<"left" | "top" | "bottom" | "center" | "right">;
3931
+ protected readonly resolvedAlign: _angular_core.Signal<"center" | "left" | "right" | "bottom" | "top">;
3924
3932
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SectionButtonGroupComponent, never>;
3925
3933
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<SectionButtonGroupComponent, "m-section-button-group", never, { "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; }, {}, never, ["m-button, m-one-button", "*"], true, never>;
3926
3934
  }
@@ -5278,7 +5286,7 @@ declare class FileUploadInputComponent extends BaseInputComponent<FileUploadInpu
5278
5286
  private readonly editorSize;
5279
5287
  private readonly maxSize;
5280
5288
  protected readonly isLocked: _angular_core.Signal<boolean>;
5281
- protected readonly dropZoneIconColor: _angular_core.Signal<"error" | "focus" | "border">;
5289
+ protected readonly dropZoneIconColor: _angular_core.Signal<"error" | "border" | "focus">;
5282
5290
  /** Object URLs of the previews on show, keyed by what the value holds. */
5283
5291
  private readonly previews;
5284
5292
  protected readonly heldFiles: _angular_core.Signal<HeldFile[]>;
@@ -5582,7 +5590,7 @@ declare class SectionFormComponent<T extends object = Record<string, unknown>> e
5582
5590
  readonly heightMode: _angular_core.InputSignal<"fixed" | "full" | undefined>;
5583
5591
  readonly maxHeight: _angular_core.InputSignal<string | number | undefined>;
5584
5592
  readonly height: _angular_core.InputSignal<string | number | undefined>;
5585
- readonly align: _angular_core.InputSignal<"left" | "center" | "right" | undefined>;
5593
+ readonly align: _angular_core.InputSignal<"center" | "left" | "right" | undefined>;
5586
5594
  readonly size: _angular_core.InputSignal<"sm" | "md" | "lg" | Size | undefined>;
5587
5595
  readonly autofocus: _angular_core.InputSignal<boolean>;
5588
5596
  data: _angular_core.InputSignal<T | undefined>;
@@ -5622,7 +5630,7 @@ declare class SectionFormComponent<T extends object = Record<string, unknown>> e
5622
5630
  protected readonly handleSubmit: (event: Event) => void;
5623
5631
  readonly resolvedSize: _angular_core.Signal<Size>;
5624
5632
  protected readonly sizeLength: _angular_core.Signal<string | null>;
5625
- readonly resolvedAlign: _angular_core.Signal<"left" | "center" | "right">;
5633
+ readonly resolvedAlign: _angular_core.Signal<"center" | "left" | "right">;
5626
5634
  readonly resolvedVariant: _angular_core.Signal<string | undefined>;
5627
5635
  readonly resolvedMaxWidth: _angular_core.Signal<string | number | undefined>;
5628
5636
  readonly resolvedMinHeight: _angular_core.Signal<string | undefined>;
@@ -6001,7 +6009,7 @@ declare class ComponentStepperComponent {
6001
6009
  components: _angular_core.InputSignal<Type<unknown>[]>;
6002
6010
  labels: _angular_core.InputSignal<string[] | undefined>;
6003
6011
  currentIndex: _angular_core.InputSignal<number>;
6004
- variant: _angular_core.InputSignal<"horizontal" | "vertical">;
6012
+ variant: _angular_core.InputSignal<"vertical" | "horizontal">;
6005
6013
  context: _angular_core.InputSignal<Record<string, unknown> | undefined>;
6006
6014
  readonly stepChange: _angular_core.OutputEmitterRef<number>;
6007
6015
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ComponentStepperComponent, never>;
@@ -6658,7 +6666,7 @@ declare class ImgComponent {
6658
6666
  readonly boxHeight: _angular_core.Signal<number | null>;
6659
6667
  readonly isSized: _angular_core.Signal<boolean>;
6660
6668
  readonly autoNgSrcset: _angular_core.Signal<string | undefined>;
6661
- readonly status: _angular_core.WritableSignal<"loading" | "loaded" | "error">;
6669
+ readonly status: _angular_core.WritableSignal<"error" | "loading" | "loaded">;
6662
6670
  readonly effectiveSrc: _angular_core.Signal<string | null | undefined>;
6663
6671
  readonly showFallback: _angular_core.Signal<boolean>;
6664
6672
  readonly isDataUri: _angular_core.Signal<boolean>;
@@ -6910,7 +6918,7 @@ type DocAiPhase = 'idle' | 'asking' | 'question' | 'outline' | 'writing' | 'prop
6910
6918
  */
6911
6919
  declare class DocEditorComponent implements ControlValueAccessor {
6912
6920
  protected readonly groups: readonly _magmonium_one.DocToolbarGroup[];
6913
- protected readonly icons: Record<"code" | "list" | "link" | "table" | "strike" | "bold" | "heading" | "italic" | "quote", string>;
6921
+ protected readonly icons: Record<"code" | "link" | "table" | "strike" | "list" | "bold" | "heading" | "italic" | "quote", string>;
6914
6922
  protected readonly docActionKey: typeof docActionKey;
6915
6923
  private readonly translate;
6916
6924
  protected readonly value: _angular_core.WritableSignal<string>;
@@ -8231,7 +8239,7 @@ declare class ConfirmComponent {
8231
8239
  * every confirmation drawn before this.
8232
8240
  */
8233
8241
  params: _angular_core.InputSignal<Record<string, string>>;
8234
- type: _angular_core.InputSignal<"warning" | "success" | "danger" | "info">;
8242
+ type: _angular_core.InputSignal<"warning" | "success" | "info" | "danger">;
8235
8243
  /**
8236
8244
  * Whether the question can be refused. `yes` is an acknowledgement — the one
8237
8245
  * button commits and there is nothing else to press — and stays the default,