@magmonium/one 0.1.20 → 0.2.0

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 { a as BaseTextInputComponent, I as IS_DESIGN_MODE, L as LabelComponent, b as TextOutputComponent } from './magmonium-one-magmonium-one-D0QGVzFK.mjs';
3
+ import { a as BaseTextInputComponent, I as IS_DESIGN_MODE, L as LabelComponent, b as TextOutputComponent } from './magmonium-one-magmonium-one-D4kWNQoT.mjs';
4
4
  import { CommonModule } from '@angular/common';
5
5
 
6
6
  class OtpInputComponent extends BaseTextInputComponent {
@@ -196,4 +196,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
196
196
  }], ctorParameters: () => [], propDecorators: { otpInputs: [{ type: i0.ViewChildren, args: ['otpInput', { isSignal: true }] }] } });
197
197
 
198
198
  export { OtpInputComponent };
199
- //# sourceMappingURL=magmonium-one-otp-BODZD9Ns.mjs.map
199
+ //# sourceMappingURL=magmonium-one-otp-CpFj9WdC.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"magmonium-one-otp-BODZD9Ns.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 [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[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A,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EAAA,QAAA,EACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCT,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-CpFj9WdC.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 [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":";;;;;AA4DM,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,MAA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import { a as BaseTextInputComponent, L as LabelComponent, b as TextOutputComponent, c as ButtonComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-D0QGVzFK.mjs';
3
+ import { a as BaseTextInputComponent, L as LabelComponent, b as TextOutputComponent, c as ButtonComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-D4kWNQoT.mjs';
4
4
 
5
5
  class PasswordInputComponent extends BaseTextInputComponent {
6
6
  isPassword = signal(true, ...(ngDevMode ? [{ debugName: "isPassword" }] : /* istanbul ignore next */ []));
@@ -100,4 +100,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
100
100
  }] });
101
101
 
102
102
  export { PasswordInputComponent };
103
- //# sourceMappingURL=magmonium-one-password-CPg8XcHq.mjs.map
103
+ //# sourceMappingURL=magmonium-one-password-DycxDKu7.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"magmonium-one-password-CPg8XcHq.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 [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\"\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":";;;;AA0DM,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,E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;;;;;;;;;;;;;;;;AAuCT,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-DycxDKu7.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 [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\"\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":";;;;AA0DM,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,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EA5CvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,qqFAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACS,cAAc,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,KAAA,EAAA,aAAA,EAAA,UAAA,EAAA,UAAA,EAAA,OAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,mBAAmB,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,OAAA,EAAA,OAAA,EAAA,aAAA,EAAA,QAAA,CAAA,EAAA,OAAA,EAAA,CAAA,cAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,eAAe,kYAAE,aAAa,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAIlE,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBA9ClC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EAAA,QAAA,EAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCT,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,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { model, input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { B as BaseInputComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-D0QGVzFK.mjs';
3
+ import { B as BaseInputComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-D4kWNQoT.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-C5BYRe1c.mjs.map
62
+ //# sourceMappingURL=magmonium-one-toggle-BtYehjqq.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"magmonium-one-toggle-C5BYRe1c.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,6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,MAAA,EAAA,CAAA,irGAAA,CAAA,EAAA;;;;;"}
1
+ {"version":3,"file":"magmonium-one-toggle-BtYehjqq.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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AAA,EAAA,CAAA,irGAAA,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,irGAAA,CAAA,EAAA;;;;;"}
@@ -1,2 +1,2 @@
1
- export { A as ACCESS_DOMAINS, d as APP_CONTEXT_REF, e as ASSET_BASE_URL, f as AccordionBodyDirective, g as AccordionComponent, h as AccordionGroupComponent, i as ActionComponent, j as AnimatedGraphsComponent, k as AppCardComponent, l as AppRelationType, m as AppTileComponent, n as AssetStore, o as AssetUrlPipe, p as Assets, q as AuthActivityPageComponent, r as AuthApiService, s as AuthStore, t as AutosizeDirective, u as BadgeComponent, v as BandingComponent, w as BaseArrayInputComponent, x as BaseRootWebComponent, y as BaseWebComponent, c as ButtonComponent, z as ButtonGroupComponent, C as COMPONENT_INPUT_REGISTRY, D as CardComponent, E as CardWrapperComponent, F as CarouselComponent, G as ChartComponent, H as CheckboxInputComponent, J as ClearableInputComponent, K as ColComponent, M as ColorPickerInputComponent, N as CommentItemComponent, O as CommentsApiService, P as CommentsComponent, Q as CommentsStore, R as ComponentInputComponent, S as ComponentStepperComponent, U as ConfigComponent, V as ConfirmComponent, W as ContextMenuComponent, X as CustomIconClass, Y as CustomIconEditComponent, Z as DEFAULT_SIZE, _ as DashboardCardComponent, $ as DateInputComponent, a0 as DatePickerComponent, a1 as DeviceService, a2 as DomService, a3 as Domain, a4 as DotGridComponent, a5 as DragListDirective, a6 as DragListItemDirective, a7 as DraggableDirective, a8 as DropdownInputComponent, a9 as FLEX_VARIANTS, aa as FOLDER_PICK_LISTENER, ab as FORM_ASSET_FOLDER, ac as FileService, ad as FileUploadDirective, ae as FileUploadInputComponent, af as FlexComponent, ag as FlexItemComponent, ah as FormGroupComponent, ai as FrameComponent, aj as FreezeService, ak as GRID_BREAKPOINTS, al as GetNavService, am as HeaderComponent, an as HighlightDirective, ao as HttpService, ap as ICON_SOURCE, I as IS_DESIGN_MODE, aq as IS_SIDE_PANEL, ar as IconComponent, as as ImgComponent, at as InputType, au as InstrumentScoreComponent, av as InterceptorObservables, aw as JumbotronComponent, ax as KeyValueComponent, ay as LAYOUT_ASSET_FOLDER, az as LOGIN_COMPONENT, aA as LOGIN_STORE, aB as LanguageComponent, aC as LogoComponent, aD as MAG_SOCKET_EVENT, aE as MHeroColorDirective, aF as MHeroComponent, aG as MODAL_REF, aH as MODAL_STORE_REF, aI as MRefDirective, aJ as MStepComponent, aK as MURL_PARAM, aL as MURL_SEP, aM as ManifestEnrichmentService, aN as MenuComponent, aO as ModalDirective, aP as ModalRef, aQ as ModalStore, aR as MoneyPipe, aS as MultiRangeInputComponent, aT as MurlUrlSerializer, aU as NAV_DEFAULT_MURL, aV as NAV_ID_SEP, aW as NAV_MAIN_BUTTONS, aX as NAV_SEGMENT_RE, aY as NAV_STORE_REF, aZ as NAV_WC_COMPONENTS, a_ as NAV_WIDGET_MAP, a$ as NavComponent, b0 as NavDetailsComponent, b1 as NavHeaderComponent, b2 as NavMenuComponent, b3 as NavStore, b4 as NavTrailComponent, b5 as NothingComponent, b6 as NotificationElementComponent, b7 as NotificationGroupComponent, b8 as NotificationPopupComponent, b9 as NotificationService, ba as NotificationStore, bb as NotificationType, bc as NotificationWidgetComponent, bd as ONE_ASSET_BASE_URL, be as OPTIONS_SOURCE, bf as OVERLAY_WIDGETS, bg as OneApp, bh as OptionsSourceDirective, bi as OverlayBodyComponent, bj as OverlayRef, bk as OverlayService, bl as PLATFORM_BUTTON_NAV_IDS, bm as PLATFORM_EXTENSIBLE_NAV_IDS, bn as PLATFORM_NAV_MAP, bo as PLATFORM_ROOT_CHILDREN, bp as PaginationComponent, bq as PanelComponent, br as PercentagePipe, bs as PlaygroundComponent, bt as PositionDirective, bu as PwaInstallComponent, bv as ROOT_NAV, bw as RadioGroupComponent, bx as RadioInputComponent, by as RangeInputComponent, bz as RatingInputComponent, bA as ReactiveElementComponent, bB as RemoteComponent, bC as RemoteLoaderService, bD as ResizeElementComponent, bE as RouteContainer, bF as RowComponent, bG as SEARCH_QUERY, bH as SEARCH_RESULTS_EVENT, bI as SECTION_ACCORDION_GROUP, bJ as SECTION_FORM_CONTEXT, bK as SHARED_ICONS, bL as SIZE_CONTEXT, bM as ScoreComponent, bN as ScrollComponent, bO as ScrollService, bP as SearchPanelComponent, bQ as SearchStore, bR as SearchUserPanelComponent, bS as SectionAccordionDirective, bT as SectionAccordionGroupDirective, bU as SectionBackComponent, bV as SectionBadgesComponent, bW as SectionButtonGroupComponent, bX as SectionCardComponent, bY as SectionComponent, bZ as SectionFilterComponent, b_ as SectionFooterComponent, b$ as SectionFormComponent, c0 as SectionFormItemComponent, c1 as SectionHeaderComponent, c2 as SectionHeroComponent, c3 as SectionSearchComponent, c4 as SectionStepperComponent, c5 as SectionTabsComponent, c6 as SectionToggleComponent, c7 as SectionToggleItemDirective, c8 as SelectableCardInputComponent, c9 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, b as TextOutputComponent, cy as TextareaInputComponent, cz as ThemeComponent, cA as ThemeDataService, cB as ThemeService, cC as ThemeStore, cD as TimeAgoPipe, cE as TimelineComponent, cF as ToggleButtonComponent, cG as ToggleInputComponent, cH as ToggleRadioInputComponent, cI as ToolTipDirective, cJ as TooltipComponent, T as TranslatePipe, cK as TranslateService, cL as TreeGridComponent, cM as URL_SEP, cN as USER_STORE_REF, cO as USER_TAB_MAP, cP as UlComponent, cQ as UniverseComponent, cR as UserApiService, cS as UserAvatarComponent, cT as UserComponent, cU as UserNavComponent, cV as UserSettingsComponent, cW as UserStore, cX as WC_ROUTE_CHANGED_EVENT, cY as WC_SEARCH_GROUPS, cZ as WIN_USER_TAB_HOOK, c_ as WIN_USER_TAB_KEY, c$ as WatermarkComponent, d0 as WcRouterStore, d1 as WrapperInputComponent, d2 as anchorNavId, d3 as applyColorsToElement, d4 as bootstrapMagApp, d5 as bootstrapPwaInstall, d6 as buildWcBaseUrl, d7 as calculateLuminance, d8 as calculateRanks, d9 as cellText, da as checkFilterCondition, db as childNavId, dc as classListSignal, dd as coerceSize, de as cornerEdge, df as cornerSide, dg as createMap, dh as createPlatformNavMap, di as deriveAvatarGradient, dj as deriveContrastColor, dk as deriveOppositeColor, dl as derivePropertyName, dm as emailValidation, dn as evaluate, dp as evaluateBool, dq as flattenTreeGridRows, dr as formatBadgeCount, ds as fullName, dt as generateClipPath, du as generateTransform, dv as getClassList, dw as getProperty, dx as getScrollParent, dy as getTierFromPreviewPath, dz as getTreeGridRow, dA as getUniqueId, dB as getValue, dC as hasErrorComputed, dD as hexToRgb, dE as hslToRgb, dF as initMagmoniumApp, dG as initialNotificationState, dH as initialState, dI as initials, dJ as injectAuthenticate, dK as injectInstallApp, dL as injectParentSize, dM as injectScrollSticky, dN as isButtonName, dO as isCancelledComputed, dP as isExtensiblePlatformNavId, dQ as isJson, dR as isLoadingComputed, dS as isLocalhost, dT as isPlatformNavId, dU as isSize, dV as isTierPreview, dW as isUrlLocalhost, dX as isValidNavId, dY as isValidNavSegment, dZ as isWebComponent, d_ as linkToId, d$ as linkToNav, e0 as loadingActions, e1 as mInterceptor, e2 as manualValidation, e3 as matchFieldValidation, e4 as maxLengthValidation, e5 as maxValidation, e6 as mergePlatformNav, e7 as mergeUnique, e8 as mergeUniqueBy, e9 as mergeUniqueWith, ea as minAgeValidation, eb as minLengthValidation, ec as minValidation, ed as miniMarkToHtml, ee as navIdChain, ef as navIdFor, eg as navIdSegment, eh as navIdToRoutePath, ei as navIdToSegments, ej as navToId, ek as parentNavId, el as parseAddress, em as parseColor, en as parsePatternNames, eo as patternValidation, ep as patternsValidation, eq as platformNavWidgets, er as privateGuard, es as processImageToSvg, et as provideAppContext, eu as provideMagAppConfig, ev as provideMagWcConfig, ew as provideMagWcRoutes, ex as provideModalComponents, ey as provideMurlUrlSerializer, ez as provideNavWidgets, eA as provideOverlayWidgets, eB as providePlatformNavWidgets, eC as provideSearch, eD as provideSizeContext, eE as provideUserTabs, eF as publicGuard, eG as readFieldPatterns, eH as renderAddress, eI as requiredValidation, eJ as resolveConfigAsset, eK as resolveIconSize, eL as resolvePallet, eM as resolvePatternRules, eN as resolveSize, eO as rgbToHex, eP as rgbToHsl, eQ as rowHasChildren, eR as samePatterns, eS as segmentsToNavId, eT as setProperty, eU as setTreeGridChildren, eV as settingsWidgets, eW as shouldShowBadge, eX as splitNavId, eY as stringToColor, eZ as toAttrBool, e_ as toAttrNumber, e$ as toCssLength, f0 as toHostNavId, f1 as toLength, f2 as toLocalNavId, f3 as toggleTreeGridRow, f4 as unfetchedPlatformNav, f5 as urlValidation } from './magmonium-one-magmonium-one-D0QGVzFK.mjs';
1
+ export { A as ACCESS_DOMAINS, d as APP_CONTEXT_REF, e as ASSET_BASE_URL, f as AccordionBodyDirective, g as AccordionComponent, h as AccordionGroupComponent, i as ActionComponent, j as AnimatedGraphsComponent, k as AppCardComponent, l as AppRelationType, m as AppTileComponent, n as AssetStore, o as AssetUrlPipe, p as Assets, q as AuthActivityPageComponent, r as AuthApiService, s as AuthStore, t as AutosizeDirective, u as BadgeComponent, v as BandingComponent, w as BaseArrayInputComponent, x as BaseRootWebComponent, y as BaseWebComponent, c as ButtonComponent, z as ButtonGroupComponent, C as COMPONENT_INPUT_REGISTRY, D as CardComponent, E as CardWrapperComponent, F as CarouselComponent, G as ChartComponent, H as CheckboxInputComponent, J as ClearableInputComponent, K as ColComponent, M as ColorPickerInputComponent, N as CommentItemComponent, O as CommentsApiService, P as CommentsComponent, Q as CommentsStore, R as ComponentInputComponent, S as ComponentStepperComponent, U as ConfigComponent, V as ConfirmComponent, W as ContextMenuComponent, X as CustomIconClass, Y as CustomIconEditComponent, Z as DEFAULT_SIZE, _ as DashboardCardComponent, $ as DateInputComponent, a0 as DatePickerComponent, a1 as DeviceService, a2 as DomService, a3 as Domain, a4 as DotGridComponent, a5 as DragListDirective, a6 as DragListItemDirective, a7 as DraggableDirective, a8 as DropdownInputComponent, a9 as FLEX_VARIANTS, aa as FOLDER_PICK_LISTENER, ab as FORM_ASSET_FOLDER, ac as FileService, ad as FileUploadDirective, ae as FileUploadInputComponent, af as FlexComponent, ag as FlexItemComponent, ah as FormGroupComponent, ai as FrameComponent, aj as FreezeService, ak as GRID_BREAKPOINTS, al as GetNavService, am as HeaderComponent, an as HighlightDirective, ao as HttpService, ap as ICON_SOURCE, I as IS_DESIGN_MODE, aq as IS_SIDE_PANEL, ar as IconComponent, as as ImgComponent, at as InputType, au as InstrumentScoreComponent, av as InterceptorObservables, aw as JumbotronComponent, ax as KeyValueComponent, ay as LAYOUT_ASSET_FOLDER, az as LOGIN_COMPONENT, aA as LOGIN_STORE, aB as LanguageComponent, aC as LogoComponent, aD as MAG_SOCKET_EVENT, aE as MHeroColorDirective, aF as MHeroComponent, aG as MODAL_REF, aH as MODAL_STORE_REF, aI as MRefDirective, aJ as MStepComponent, aK as MURL_PARAM, aL as MURL_SEP, aM as ManifestEnrichmentService, aN as MenuComponent, aO as ModalDirective, aP as ModalRef, aQ as ModalStore, aR as MoneyPipe, aS as MultiRangeInputComponent, aT as MurlUrlSerializer, aU as NAV_DEFAULT_MURL, aV as NAV_ID_SEP, aW as NAV_MAIN_BUTTONS, aX as NAV_SEGMENT_RE, aY as NAV_STORE_REF, aZ as NAV_WC_COMPONENTS, a_ as NAV_WIDGET_MAP, a$ as NavComponent, b0 as NavDetailsComponent, b1 as NavHeaderComponent, b2 as NavMenuComponent, b3 as NavStore, b4 as NavTrailComponent, b5 as NothingComponent, b6 as NotificationElementComponent, b7 as NotificationGroupComponent, b8 as NotificationPopupComponent, b9 as NotificationService, ba as NotificationStore, bb as NotificationType, bc as NotificationWidgetComponent, bd as ONE_ASSET_BASE_URL, be as OPTIONS_SOURCE, bf as OVERLAY_WIDGETS, bg as OneApp, bh as OptionsSourceDirective, bi as OverlayBodyComponent, bj as OverlayRef, bk as OverlayService, bl as PLATFORM_BUTTON_NAV_IDS, bm as PLATFORM_EXTENSIBLE_NAV_IDS, bn as PLATFORM_NAV_MAP, bo as PLATFORM_ROOT_CHILDREN, bp as PaginationComponent, bq as PanelComponent, br as PercentagePipe, bs as PlaygroundComponent, bt as PositionDirective, bu as PwaInstallComponent, bv as ROOT_NAV, bw as RadioGroupComponent, bx as RadioInputComponent, by as RangeInputComponent, bz as RatingInputComponent, bA as ReactiveElementComponent, bB as RemoteComponent, bC as RemoteLoaderService, bD as ResizeElementComponent, bE as RouteContainer, bF as RowComponent, bG as SEARCH_QUERY, bH as SEARCH_RESULTS_EVENT, bI as SECTION_ACCORDION_GROUP, bJ as SECTION_FORM_CONTEXT, bK as SHARED_ICONS, bL as SIZE_CONTEXT, bM as ScoreComponent, bN as ScrollComponent, bO as ScrollService, bP as SearchPanelComponent, bQ as SearchStore, bR as SearchUserPanelComponent, bS as SectionAccordionDirective, bT as SectionAccordionGroupDirective, bU as SectionBackComponent, bV as SectionBadgesComponent, bW as SectionButtonGroupComponent, bX as SectionCardComponent, bY as SectionComponent, bZ as SectionFilterComponent, b_ as SectionFooterComponent, b$ as SectionFormComponent, c0 as SectionFormItemComponent, c1 as SectionHeaderComponent, c2 as SectionHeroComponent, c3 as SectionSearchComponent, c4 as SectionStepperComponent, c5 as SectionTabsComponent, c6 as SectionToggleComponent, c7 as SectionToggleItemDirective, c8 as SelectableCardInputComponent, c9 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, b as TextOutputComponent, cy as TextareaInputComponent, cz as ThemeComponent, cA as ThemeDataService, cB as ThemeService, cC as ThemeStore, cD as TimeAgoPipe, cE as TimelineComponent, cF as ToggleButtonComponent, cG as ToggleInputComponent, cH as ToggleRadioInputComponent, cI as ToolTipDirective, cJ as TooltipComponent, T as TranslatePipe, cK as TranslateService, cL as TreeGridComponent, cM as URL_SEP, cN as USER_STORE_REF, cO as USER_TAB_MAP, cP as UlComponent, cQ as UniverseComponent, cR as UserApiService, cS as UserAvatarComponent, cT as UserComponent, cU as UserNavComponent, cV as UserSettingsComponent, cW as UserStore, cX as WC_ROUTE_CHANGED_EVENT, cY as WC_SEARCH_GROUPS, cZ as WIN_USER_TAB_HOOK, c_ as WIN_USER_TAB_KEY, c$ as WatermarkComponent, d0 as WcRouterStore, d1 as WrapperInputComponent, d2 as anchorNavId, d3 as applyColorsToElement, d4 as bootstrapMagApp, d5 as bootstrapPwaInstall, d6 as buildWcBaseUrl, d7 as calculateLuminance, d8 as calculateRanks, d9 as cellText, da as checkFilterCondition, db as childNavId, dc as classListSignal, dd as coerceSize, de as cornerEdge, df as cornerSide, dg as createMap, dh as createPlatformNavMap, di as deriveAvatarGradient, dj as deriveContrastColor, dk as deriveOppositeColor, dl as derivePropertyName, dm as emailValidation, dn as evaluate, dp as evaluateBool, dq as flattenTreeGridRows, dr as formatBadgeCount, ds as fullName, dt as generateClipPath, du as generateTransform, dv as getClassList, dw as getProperty, dx as getScrollParent, dy as getTierFromPreviewPath, dz as getTreeGridRow, dA as getUniqueId, dB as getValue, dC as hasErrorComputed, dD as hexToRgb, dE as hslToRgb, dF as initMagmoniumApp, dG as initialNotificationState, dH as initialState, dI as initials, dJ as injectAuthenticate, dK as injectInstallApp, dL as injectParentSize, dM as injectScrollSticky, dN as isButtonName, dO as isCancelledComputed, dP as isExtensiblePlatformNavId, dQ as isJson, dR as isLoadingComputed, dS as isLocalhost, dT as isPlatformNavId, dU as isSize, dV as isTierPreview, dW as isUrlLocalhost, dX as isValidNavId, dY as isValidNavSegment, dZ as isWebComponent, d_ as linkToId, d$ as linkToNav, e0 as loadingActions, e1 as mInterceptor, e2 as manualValidation, e3 as matchFieldValidation, e4 as maxLengthValidation, e5 as maxValidation, e6 as mergePlatformNav, e7 as mergeUnique, e8 as mergeUniqueBy, e9 as mergeUniqueWith, ea as minAgeValidation, eb as minLengthValidation, ec as minValidation, ed as miniMarkToHtml, ee as navIdChain, ef as navIdFor, eg as navIdSegment, eh as navIdToRoutePath, ei as navIdToSegments, ej as navToId, ek as parentNavId, el as parseAddress, em as parseColor, en as parsePatternNames, eo as patternValidation, ep as patternsValidation, eq as platformNavWidgets, er as privateGuard, es as processImageToSvg, et as provideAppContext, eu as provideMagAppConfig, ev as provideMagWcConfig, ew as provideMagWcRoutes, ex as provideModalComponents, ey as provideMurlUrlSerializer, ez as provideNavWidgets, eA as provideOverlayWidgets, eB as providePlatformNavWidgets, eC as provideSearch, eD as provideSizeContext, eE as provideUserTabs, eF as publicGuard, eG as readFieldPatterns, eH as renderAddress, eI as requiredValidation, eJ as resolveConfigAsset, eK as resolveIconSize, eL as resolvePallet, eM as resolvePatternRules, eN as resolveSize, eO as rgbToHex, eP as rgbToHsl, eQ as rowHasChildren, eR as samePatterns, eS as segmentsToNavId, eT as setProperty, eU as setTreeGridChildren, eV as settingsWidgets, eW as shouldShowBadge, eX as splitNavId, eY as stringToColor, eZ as toAttrBool, e_ as toAttrNumber, e$ as toCssLength, f0 as toHostNavId, f1 as toLength, f2 as toLocalNavId, f3 as toggleTreeGridRow, f4 as unfetchedPlatformNav, f5 as urlValidation } from './magmonium-one-magmonium-one-D4kWNQoT.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.1.20",
3
+ "version": "0.2.0",
4
4
  "description": "Magmonium One — Angular design-system primitives for mm Apps",
5
5
  "author": "magmonium",
6
6
  "license": "MIT",
@@ -497,6 +497,16 @@ type Position = {
497
497
  y?: number;
498
498
  };
499
499
 
500
+ declare const GRID_BREAKPOINTS: {
501
+ readonly xs: 0;
502
+ readonly sm: 576;
503
+ readonly md: 768;
504
+ readonly lg: 992;
505
+ readonly xl: 1200;
506
+ readonly xxl: 1400;
507
+ };
508
+ type GridBreakpoint = keyof typeof GRID_BREAKPOINTS;
509
+
500
510
  interface CarouselSlide {
501
511
  image: string;
502
512
  title?: string;
@@ -1691,6 +1701,7 @@ type Button = Config & {
1691
1701
  isSubmit?: boolean;
1692
1702
  tabindex?: number;
1693
1703
  };
1704
+ type SqueezeMode = 'icon' | 'menu';
1694
1705
  type ButtonGroup = Config & {
1695
1706
  buttons: Button[];
1696
1707
  names: string[];
@@ -1698,7 +1709,9 @@ type ButtonGroup = Config & {
1698
1709
  center: true | undefined;
1699
1710
  size?: Size | 'sm' | 'md' | 'lg';
1700
1711
  primary: string | undefined;
1712
+ variant?: 'toggle';
1701
1713
  disabled?: Record<string, boolean>;
1714
+ squeeze?: Partial<Record<GridBreakpoint, SqueezeMode>>;
1702
1715
  isContext?: boolean;
1703
1716
  contextMenuIcon?: string;
1704
1717
  inverted?: boolean;
@@ -1972,13 +1985,37 @@ declare class ToggleButtonComponent extends ConfigComponent<ButtonGroup> {
1972
1985
  declare class ActionComponent extends ButtonGroupComponent {
1973
1986
  readonly sticky: _angular_core.InputSignal<boolean>;
1974
1987
  readonly isStuck: _angular_core.WritableSignal<boolean>;
1988
+ readonly variant: _angular_core.InputSignal<"toggle">;
1989
+ readonly renderIds: _angular_core.InputSignal<Record<string, string>>;
1990
+ protected readonly resolvedVariant: _angular_core.Signal<"toggle">;
1991
+ private readonly pressed;
1992
+ protected readonly selected: _angular_core.Signal<any>;
1993
+ readonly squeezeAt: _angular_core.InputSignal<"sm" | "md" | "lg" | "xs" | "xl" | "xxl">;
1994
+ readonly squeezeMode: _angular_core.InputSignal<SqueezeMode>;
1995
+ private readonly squeeze;
1996
+ private readonly barWidth;
1997
+ protected readonly activeSqueeze: _angular_core.Signal<SqueezeMode>;
1998
+ protected isLabelHidden(button: Button): boolean;
1999
+ protected readonly visibleButtons: _angular_core.Signal<any[]>;
2000
+ protected readonly menuButtons: _angular_core.Signal<any[]>;
2001
+ protected readonly squeezeMenu: _angular_core.Signal<ContextMenu>;
2002
+ protected onMenuAction(item: MenuItem): void;
2003
+ protected readonly actionPallet: _angular_core.Signal<ColorPallet>;
2004
+ private buttonPallet;
2005
+ protected isActive(button: Button): boolean;
2006
+ protected isSelected(button: Button): boolean;
2007
+ protected fillColor(button: Button): string | undefined;
2008
+ protected contrastColor(button: Button): string | undefined;
2009
+ protected labelColor(button: Button): string | undefined;
2010
+ protected iconColor(button: Button): string | undefined;
2011
+ protected select(button: Button): void;
1975
2012
  private readonly el;
1976
2013
  private readonly destroyRef;
1977
2014
  private readonly actionButtonsResource;
1978
2015
  protected readonly actionButtons: _angular_core.Signal<any[]>;
1979
2016
  constructor();
1980
2017
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ActionComponent, never>;
1981
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ActionComponent, "m-action, m-one-action", never, { "sticky": { "alias": "sticky"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2018
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ActionComponent, "m-action, m-one-action", never, { "sticky": { "alias": "sticky"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "renderIds": { "alias": "renderIds"; "required": false; "isSignal": true; }; "squeezeAt": { "alias": "squeezeAt"; "required": false; "isSignal": true; }; "squeezeMode": { "alias": "squeezeMode"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1982
2019
  }
1983
2020
 
1984
2021
  declare function isButtonName(name: string, button?: Button): boolean;
@@ -2395,7 +2432,7 @@ declare class SectionSearchComponent extends BaseTextInputComponent<SearchInput>
2395
2432
  protected readonly onFocusOut: (_event: FocusEvent) => void;
2396
2433
  private readonly scheduleEmit;
2397
2434
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SectionSearchComponent, never>;
2398
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SectionSearchComponent, "m-section-search, m-one-section-search", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "focused": { "alias": "focused"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "searchLabel": { "alias": "searchLabel"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "debounce": { "alias": "debounce"; "required": false; "isSignal": true; }; "startOpen": { "alias": "startOpen"; "required": false; "isSignal": true; }; "sticky": { "alias": "sticky"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "touched": "touchedChange"; "searchChange": "searchChange"; }, never, never, true, never>;
2435
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SectionSearchComponent, "m-section-search, m-one-section-search", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "focused": { "alias": "focused"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "searchLabel": { "alias": "searchLabel"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "debounce": { "alias": "debounce"; "required": false; "isSignal": true; }; "startOpen": { "alias": "startOpen"; "required": false; "isSignal": true; }; "sticky": { "alias": "sticky"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "touched": "touchedChange"; "searchChange": "searchChange"; }, never, ["*"], true, never>;
2399
2436
  }
2400
2437
 
2401
2438
  type FilterOption = {
@@ -2875,16 +2912,6 @@ declare class SectionTabsComponent extends ConfigComponent<TabGroup> implements
2875
2912
  type ColSpan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
2876
2913
  type ColBreakpoint = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
2877
2914
 
2878
- declare const GRID_BREAKPOINTS: {
2879
- readonly xs: 0;
2880
- readonly sm: 576;
2881
- readonly md: 768;
2882
- readonly lg: 992;
2883
- readonly xl: 1200;
2884
- readonly xxl: 1400;
2885
- };
2886
- type GridBreakpoint = keyof typeof GRID_BREAKPOINTS;
2887
-
2888
2915
  type SectionAccordionGroup = Config & Pick<SectionAccordion, 'icon' | 'toggleIcon'>;
2889
2916
 
2890
2917
  /**
@@ -7914,4 +7941,4 @@ interface AuthResult {
7914
7941
  declare function injectAuthenticate(): () => Promise<AuthResult>;
7915
7942
 
7916
7943
  export { ACCESS_DOMAINS, APP_CONTEXT_REF, ASSET_BASE_URL, AccordionBodyDirective, AccordionComponent, AccordionGroupComponent, ActionComponent, AnimatedGraphsComponent, AppCardComponent, AppRelationType, AppTileComponent, AssetStore, AssetUrlPipe, Assets, AuthActivityPageComponent, AuthApiService, AuthStore, AutosizeDirective, BadgeComponent, BandingComponent, BaseArrayInputComponent, BaseRootWebComponent, BaseWebComponent, ButtonComponent, ButtonGroupComponent, COMPONENT_INPUT_REGISTRY, CardComponent, CardWrapperComponent, CarouselComponent, ChartComponent, CheckboxInputComponent, ClearableInputComponent, ColComponent, ColorPickerInputComponent, CommentItemComponent, CommentsApiService, CommentsComponent, CommentsStore, ComponentInputComponent, ComponentStepperComponent, ConfigComponent, ConfirmComponent, ContextMenuComponent, CustomIconClass, CustomIconEditComponent, DEFAULT_SIZE, DashboardCardComponent, DateInputComponent, DatePickerComponent, DeviceService, DomService, Domain, DotGridComponent, DragListDirective, DragListItemDirective, DraggableDirective, DropdownInputComponent, FLEX_VARIANTS, FOLDER_PICK_LISTENER, FORM_ASSET_FOLDER, FileService, FileUploadDirective, FileUploadInputComponent, FlexComponent, FlexItemComponent, FormGroupComponent, FrameComponent, FreezeService, GRID_BREAKPOINTS, GetNavService, HeaderComponent, HighlightDirective, HttpService, ICON_SOURCE, IS_DESIGN_MODE, IS_SIDE_PANEL, IconComponent, ImgComponent, InputType, InstrumentScoreComponent, InterceptorObservables, JumbotronComponent, KeyValueComponent, LAYOUT_ASSET_FOLDER, LOGIN_COMPONENT, LOGIN_STORE, LanguageComponent, LogoComponent, MAG_SOCKET_EVENT, MHeroColorDirective, MHeroComponent, MODAL_REF, MODAL_STORE_REF, MRefDirective, MStepComponent, MURL_PARAM, MURL_SEP, ManifestEnrichmentService, MenuComponent, ModalDirective, ModalRef, ModalStore, MoneyPipe, MultiRangeInputComponent, MurlUrlSerializer, NAV_DEFAULT_MURL, NAV_ID_SEP, NAV_MAIN_BUTTONS, NAV_SEGMENT_RE, NAV_STORE_REF, NAV_WC_COMPONENTS, NAV_WIDGET_MAP, NavComponent, NavDetailsComponent, NavHeaderComponent, NavMenuComponent, NavStore, NavTrailComponent, NothingComponent, NotificationElementComponent, NotificationGroupComponent, NotificationPopupComponent, NotificationService, NotificationStore, NotificationType, NotificationWidgetComponent, ONE_ASSET_BASE_URL, OPTIONS_SOURCE, OVERLAY_WIDGETS, OneApp, OptionsSourceDirective, OverlayBodyComponent, OverlayRef, OverlayService, PLATFORM_BUTTON_NAV_IDS, PLATFORM_EXTENSIBLE_NAV_IDS, PLATFORM_NAV_MAP, PLATFORM_ROOT_CHILDREN, PaginationComponent, PanelComponent, PercentagePipe, PlaygroundComponent, PositionDirective, PwaInstallComponent, ROOT_NAV, RadioGroupComponent, RadioInputComponent, RangeInputComponent, RatingInputComponent, ReactiveElementComponent, RemoteComponent, RemoteLoaderService, ResizeElementComponent, RouteContainer, RowComponent, SEARCH_QUERY, SEARCH_RESULTS_EVENT, SECTION_ACCORDION_GROUP, SECTION_FORM_CONTEXT, SHARED_ICONS, SIZE_CONTEXT, ScoreComponent, ScrollComponent, ScrollService, SearchPanelComponent, SearchStore, SearchUserPanelComponent, SectionAccordionDirective, SectionAccordionGroupDirective, SectionBackComponent, SectionBadgesComponent, SectionButtonGroupComponent, SectionCardComponent, SectionComponent, SectionFilterComponent, SectionFooterComponent, SectionFormComponent, SectionFormItemComponent, SectionHeaderComponent, SectionHeroComponent, SectionSearchComponent, SectionStepperComponent, SectionTabsComponent, SectionToggleComponent, SectionToggleItemDirective, SelectableCardInputComponent, SelectorDirective, SettingsSearchBarComponent, SettingsSearchService, ShapeComponent, SharedStoreRegistry, SidePanelDirective, Size, SocketStore, SortComponent, StatComponent, StepComponent, StepperComponent, StepsComponent, StorageService, StrokeLinecap, StrokeLinejoin, SummaryComponent, SvgGeneratorComponent, SvgGeneratorService, SvgService, TOTAL_COLUMNS, TRANSLATION_SOURCE, TableComponent, TableFilterCondition, TechnicalMeterComponent, TextInputComponent, TextOutputComponent, TextareaInputComponent, ThemeComponent, ThemeDataService, ThemeService, ThemeStore, TimeAgoPipe, TimelineComponent, ToggleButtonComponent, ToggleInputComponent, ToggleRadioInputComponent, ToolTipDirective, TooltipComponent, TranslatePipe, TranslateService, TreeGridComponent, URL_SEP, USER_STORE_REF, USER_TAB_MAP, UlComponent, UniverseComponent, UserApiService, UserAvatarComponent, UserComponent, UserNavComponent, UserSettingsComponent, UserStore, WC_ROUTE_CHANGED_EVENT, WC_SEARCH_GROUPS, WIN_USER_TAB_HOOK, WIN_USER_TAB_KEY, WatermarkComponent, WcRouterStore, WrapperInputComponent, anchorNavId, applyColorsToElement, bootstrapMagApp, bootstrapPwaInstall, buildWcBaseUrl, calculateLuminance, calculateRanks, cellText, checkFilterCondition, childNavId, classListSignal, coerceSize, cornerEdge, cornerSide, createMap, createPlatformNavMap, deriveAvatarGradient, deriveContrastColor, deriveOppositeColor, derivePropertyName, emailValidation, evaluate, evaluateBool, flattenTreeGridRows, formatBadgeCount, fullName, generateClipPath, generateTransform, getClassList, getProperty, getScrollParent, getTierFromPreviewPath, getTreeGridRow, getUniqueId, getValue, hasErrorComputed, hexToRgb, hslToRgb, initMagmoniumApp, initialNotificationState, initialState, initials, injectAuthenticate, injectInstallApp, injectParentSize, injectScrollSticky, isButtonName, isCancelledComputed, isExtensiblePlatformNavId, isJson, isLoadingComputed, isLocalhost, isPlatformNavId, isSize, isTierPreview, isUrlLocalhost, isValidNavId, isValidNavSegment, isWebComponent, linkToId, linkToNav, loadingActions, mInterceptor, manualValidation, matchFieldValidation, maxLengthValidation, maxValidation, mergePlatformNav, mergeUnique, mergeUniqueBy, mergeUniqueWith, minAgeValidation, minLengthValidation, minValidation, miniMarkToHtml, navIdChain, navIdFor, navIdSegment, navIdToRoutePath, navIdToSegments, navToId, parentNavId, parseAddress, parseColor, parsePatternNames, patternValidation, patternsValidation, platformNavWidgets, privateGuard, processImageToSvg, provideAppContext, provideMagAppConfig, provideMagWcConfig, provideMagWcRoutes, provideModalComponents, provideMurlUrlSerializer, provideNavWidgets, provideOverlayWidgets, providePlatformNavWidgets, provideSearch, provideSizeContext, provideUserTabs, publicGuard, readFieldPatterns, renderAddress, requiredValidation, resolveConfigAsset, resolveIconSize, resolvePallet, resolvePatternRules, resolveSize, rgbToHex, rgbToHsl, rowHasChildren, samePatterns, segmentsToNavId, setProperty, setTreeGridChildren, settingsWidgets, shouldShowBadge, splitNavId, stringToColor, toAttrBool, toAttrNumber, toCssLength, toHostNavId, toLength, toLocalNavId, toggleTreeGridRow, unfetchedPlatformNav, urlValidation };
7917
- export type { Accordion, AccordionGroup, AccordionVariant, ActionNotification, Align, AnimatedGraphConfig, AnimatedGraphCurveInput, AppCardData, AppCardInputs, AppCardVariant, AppContextRef, AppHint, AppManifest, AppRelation, AppTileData, AuthEmailCreate404Response, AuthEmailCreate422Response, AuthEmailCreateRequest, AuthEmailCreateResponse, AuthIdentitiesListResponse, AuthOtpCreateRequest, AuthOtpCreateResponse, AuthOtpUpdateRequest, AuthOtpUpdateResponse, AuthPasswordCreateRequest, AuthPasswordCreateResponse, AuthPasswordCreateResponseTokens, AuthPasswordCreateResponseUser, AuthPasswordUpdateRequest, AuthPasswordUpdateResponse, AuthPasswordUpdateResponseTokens, AuthPasswordUpdateResponseUser, AuthResult, AuthSignupCreateRequest, AuthSignupCreateRequestUser, AuthSignupCreateResponse, AuthSignupCreateResponseTokens, AuthState, AuthUser, Badge, BadgePosition, BadgeVariant, BandingConfig, BreadCrumb, BreadcrumbTrail, Button, ButtonGroup, Carousel, CarouselPosition, CarouselSlide, CellChangeEvent, CellClickEvent, Chart, ChartSeries, ColBreakpoint, ColSpan, ColorInput, ColorPallet, ColorPropertyType, ColumnDef, Comment, CommentItem, ComponentInput, Config, ContextMenu, ContextMenuEvent, CropData, Cursor, CustomIcon, DateInput, Direction$2 as Direction, DotGridVariant, DragListReorder, Draggable, DraggableState, DropdownInput, DropdownOption, ElementType, FieldPatterns, FileUploadConfig, FileUploadEvent, FileUploadInput, FilterOption, FlatTreeGridRow, FlexAlign, FlexAlignSelf, FlexConfig, FlexDirection, FlexItemConfig, FlexJustify, FlexVariant, FolderPickListener, Form, FormState, Genre, GridBreakpoint, Header, HeaderLevel, HeldShelf, HeroDataRecord, HeroDimensions, HslColor, Icon, Input, InputModel, InputSpan, InputState, InputValue, Jumbotron, JumbotronAnimation, KeyValueVariant, LoadingActionsApi, LoginStoreContract, LogoVariant, MagAppConfigOptions, MagWcConfigOptions, ManualErrorValidator, MenuItem, Modal, ModalOverlayConfig, ModalStoreRef, ModalStoreTrigger, ModalTrigger, MoneySystem, MultiRangeInput, Nav, NavIdKey, NavKind, NavMap, NavPresentation, NavStoreRef, NavWidgetConfig, NavWidgetEntry, NavWidgetMap, Notification, NotificationSeverity, NotificationState, NotificationUser, Option, OtpInput, OverlayConfig, OverlayWidgetLoader, OverlayWidgetMap, PageChangeEvent, Pagination, PanelOverlayConfig, PanelTrigger, PasswordInput, PatternRule, Position, QueryParams, QueryValue, RadioGroupInput, RadioInput, RangeInput, RatingInput, RemoteSelectorConfig, ResolvedUserTab, RgbColor, SearchChangeEvent, SearchInput, SearchResult, SearchSourceGroup, SearchState, SectionAccordion, SectionAccordionGroup, SectionAccordionGroupContext, SectionAccordionRef, SectionButtonGroupConfig, SectionFormConfig, SectionFormContext, SectionHero, SectionHeroVariant, SectionToggleItem, SectionToggleItemContext, SelectableCardContext, SelectableCardInput, SelectableCardItem, SelectionAction, SelectionActionEvent, SelectionChangeEvent, SelectorConfig, Shape, ShapeType, ShapeVariant, SharedToken, SharedUser, SizeContext, SizeDeclarer, SocketMessage, Sort, SortChange, SortChangeEvent, SortOption, SortOrder, StatAlign, StatCornerEdge, StatCornerPosition, StatCornerSide, StatSurface, StatVariant, Step, Stepper, StepperResponsiveConfig, StepperStep, Steps, StickyBehavior, Summary, SummaryAction, SummaryRow, SummaryRowType, Svg, SvgGenOptions, SvgGeneratorCoreOptions, SvgGeneratorEditOptions, TabGroup, TableConfig, TableFilterDef, TextInput, TextNotification, TextOutputAlign, TextOutputConfig, TextOutputVariant, TextareaInput, Timeline, TimelineItem, ToggleInput, ToggleRadioInput, Tokens, TreeGridCellClickEvent, TreeGridLoadChildrenEvent, TreeGridRow, TreeGridRowSelectEvent, TreeGridToggleEvent, UniverseColorScheme, User, UserStoreRef, Version, Watermark, WebComponentConfig, WeeklyData };
7944
+ export type { Accordion, AccordionGroup, AccordionVariant, ActionNotification, Align, AnimatedGraphConfig, AnimatedGraphCurveInput, AppCardData, AppCardInputs, AppCardVariant, AppContextRef, AppHint, AppManifest, AppRelation, AppTileData, AuthEmailCreate404Response, AuthEmailCreate422Response, AuthEmailCreateRequest, AuthEmailCreateResponse, AuthIdentitiesListResponse, AuthOtpCreateRequest, AuthOtpCreateResponse, AuthOtpUpdateRequest, AuthOtpUpdateResponse, AuthPasswordCreateRequest, AuthPasswordCreateResponse, AuthPasswordCreateResponseTokens, AuthPasswordCreateResponseUser, AuthPasswordUpdateRequest, AuthPasswordUpdateResponse, AuthPasswordUpdateResponseTokens, AuthPasswordUpdateResponseUser, AuthResult, AuthSignupCreateRequest, AuthSignupCreateRequestUser, AuthSignupCreateResponse, AuthSignupCreateResponseTokens, AuthState, AuthUser, Badge, BadgePosition, BadgeVariant, BandingConfig, BreadCrumb, BreadcrumbTrail, Button, ButtonGroup, Carousel, CarouselPosition, CarouselSlide, CellChangeEvent, CellClickEvent, Chart, ChartSeries, ColBreakpoint, ColSpan, ColorInput, ColorPallet, ColorPropertyType, ColumnDef, Comment, CommentItem, ComponentInput, Config, ContextMenu, ContextMenuEvent, CropData, Cursor, CustomIcon, DateInput, Direction$2 as Direction, DotGridVariant, DragListReorder, Draggable, DraggableState, DropdownInput, DropdownOption, ElementType, FieldPatterns, FileUploadConfig, FileUploadEvent, FileUploadInput, FilterOption, FlatTreeGridRow, FlexAlign, FlexAlignSelf, FlexConfig, FlexDirection, FlexItemConfig, FlexJustify, FlexVariant, FolderPickListener, Form, FormState, Genre, GridBreakpoint, Header, HeaderLevel, HeldShelf, HeroDataRecord, HeroDimensions, HslColor, Icon, Input, InputModel, InputSpan, InputState, InputValue, Jumbotron, JumbotronAnimation, KeyValueVariant, LoadingActionsApi, LoginStoreContract, LogoVariant, MagAppConfigOptions, MagWcConfigOptions, ManualErrorValidator, MenuItem, Modal, ModalOverlayConfig, ModalStoreRef, ModalStoreTrigger, ModalTrigger, MoneySystem, MultiRangeInput, Nav, NavIdKey, NavKind, NavMap, NavPresentation, NavStoreRef, NavWidgetConfig, NavWidgetEntry, NavWidgetMap, Notification, NotificationSeverity, NotificationState, NotificationUser, Option, OtpInput, OverlayConfig, OverlayWidgetLoader, OverlayWidgetMap, PageChangeEvent, Pagination, PanelOverlayConfig, PanelTrigger, PasswordInput, PatternRule, Position, QueryParams, QueryValue, RadioGroupInput, RadioInput, RangeInput, RatingInput, RemoteSelectorConfig, ResolvedUserTab, RgbColor, SearchChangeEvent, SearchInput, SearchResult, SearchSourceGroup, SearchState, SectionAccordion, SectionAccordionGroup, SectionAccordionGroupContext, SectionAccordionRef, SectionButtonGroupConfig, SectionFormConfig, SectionFormContext, SectionHero, SectionHeroVariant, SectionToggleItem, SectionToggleItemContext, SelectableCardContext, SelectableCardInput, SelectableCardItem, SelectionAction, SelectionActionEvent, SelectionChangeEvent, SelectorConfig, Shape, ShapeType, ShapeVariant, SharedToken, SharedUser, SizeContext, SizeDeclarer, SocketMessage, Sort, SortChange, SortChangeEvent, SortOption, SortOrder, SqueezeMode, StatAlign, StatCornerEdge, StatCornerPosition, StatCornerSide, StatSurface, StatVariant, Step, Stepper, StepperResponsiveConfig, StepperStep, Steps, StickyBehavior, Summary, SummaryAction, SummaryRow, SummaryRowType, Svg, SvgGenOptions, SvgGeneratorCoreOptions, SvgGeneratorEditOptions, TabGroup, TableConfig, TableFilterDef, TextInput, TextNotification, TextOutputAlign, TextOutputConfig, TextOutputVariant, TextareaInput, Timeline, TimelineItem, ToggleInput, ToggleRadioInput, Tokens, TreeGridCellClickEvent, TreeGridLoadChildrenEvent, TreeGridRow, TreeGridRowSelectEvent, TreeGridToggleEvent, UniverseColorScheme, User, UserStoreRef, Version, Watermark, WebComponentConfig, WeeklyData };