@magmonium/one 0.4.23 → 0.4.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/{magmonium-one-image-editor-Cts7yTVY.mjs → magmonium-one-image-editor-CgWR5JsA.mjs} +2 -2
- package/fesm2022/{magmonium-one-image-editor-Cts7yTVY.mjs.map → magmonium-one-image-editor-CgWR5JsA.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-magmonium-one-DYiAUWQe.mjs → magmonium-one-magmonium-one-gmpPJsnC.mjs} +23 -19
- package/fesm2022/magmonium-one-magmonium-one-gmpPJsnC.mjs.map +1 -0
- package/fesm2022/{magmonium-one-otp--l6d3azh.mjs → magmonium-one-otp-CVAektYK.mjs} +2 -2
- package/fesm2022/{magmonium-one-otp--l6d3azh.mjs.map → magmonium-one-otp-CVAektYK.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-password-0yqcwSuI.mjs → magmonium-one-password-BIv5qjgx.mjs} +2 -2
- package/fesm2022/{magmonium-one-password-0yqcwSuI.mjs.map → magmonium-one-password-BIv5qjgx.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-toggle-DI-xaAPU.mjs → magmonium-one-toggle-AftA6cwc.mjs} +2 -2
- package/fesm2022/{magmonium-one-toggle-DI-xaAPU.mjs.map → magmonium-one-toggle-AftA6cwc.mjs.map} +1 -1
- package/fesm2022/magmonium-one.mjs +1 -1
- package/package.json +2 -2
- package/types/magmonium-one.d.ts +32 -22
- package/fesm2022/magmonium-one-magmonium-one-DYiAUWQe.mjs.map +0 -1
|
@@ -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-
|
|
3
|
+
import { h as BaseTextInputComponent, k as IS_DESIGN_MODE, L as LabelComponent, j as TextOutputComponent } from './magmonium-one-magmonium-one-gmpPJsnC.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
|
|
201
|
+
//# sourceMappingURL=magmonium-one-otp-CVAektYK.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-otp--l6d3azh.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,CAA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AA,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-CVAektYK.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,CAA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EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAES,cAAc,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,KAAA,EAAA,aAAA,EAAA,QAAA,EAAA,UAAA,EAAA,UAAA,EAAA,OAAA,EAAA,aAAA,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,YAAA,EAAA,OAAA,EAAA,aAAA,EAAA,QAAA,CAAA,EAAA,OAAA,EAAA,CAAA,cAAA,EAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,YAAY,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAGhD,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;;;;"}
|
package/fesm2022/{magmonium-one-password-0yqcwSuI.mjs → magmonium-one-password-BIv5qjgx.mjs}
RENAMED
|
@@ -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-
|
|
3
|
+
import { h as BaseTextInputComponent, L as LabelComponent, j as TextOutputComponent, B as ButtonComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-gmpPJsnC.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-
|
|
105
|
+
//# sourceMappingURL=magmonium-one-password-BIv5qjgx.mjs.map
|
package/fesm2022/{magmonium-one-password-0yqcwSuI.mjs.map → magmonium-one-password-BIv5qjgx.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-password-
|
|
1
|
+
{"version":3,"file":"magmonium-one-password-BIv5qjgx.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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,MAAA,EAAA,CAAA;;2FAIlE,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBA/ClC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EAAA,QAAA,EAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCT,EAAA,CAAA,EAAA,OAAA,EACQ,CAAC,cAAc,EAAE,mBAAmB,EAAE,eAAe,EAAE,aAAa,CAAC,EAAA,eAAA,EAE7D,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,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-
|
|
3
|
+
import { g as BaseInputComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-gmpPJsnC.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-
|
|
62
|
+
//# sourceMappingURL=magmonium-one-toggle-AftA6cwc.mjs.map
|
package/fesm2022/{magmonium-one-toggle-DI-xaAPU.mjs.map → magmonium-one-toggle-AftA6cwc.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-toggle-
|
|
1
|
+
{"version":3,"file":"magmonium-one-toggle-AftA6cwc.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,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AAA,UAAA,EAAA,KAAA,EAAA,iBAAA,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, S as BrowserLocaleService, B as ButtonComponent, U as ButtonGroupComponent, V as CALLING_APP_HEADER, W as COMPONENT_INPUT_REGISTRY, X as CardComponent, Y as CardWrapperComponent, Z as CarouselComponent, _ as ChartComponent, $ as ChatBubbleComponent, a0 as CheckboxGroupComponent, a1 as CheckboxInputComponent, a2 as ClearableInputComponent, a3 as ClipboardService, a4 as ColComponent, a5 as ColorPickerInputComponent, a6 as CommentItemComponent, a7 as CommentsApiService, a8 as CommentsComponent, a9 as CommentsStore, aa as CompactNumberPipe, ab as ComponentInputComponent, ac as ComponentStepperComponent, ad as ConfigComponent, ae as ConfirmComponent, af as ContextMenuComponent, ag as CustomIconClass, ah as CustomIconEditComponent, ai as DEFAULT_DENIAL, aj as DEFAULT_DOC_DENSITY, ak as DEFAULT_DOC_VARIANT, al as DEFAULT_FILTER_RANGE_MODE, am as DEFAULT_FILTER_VARIANT, an as DEFAULT_NAV_PARAM, ao as DEFAULT_NAV_SEGMENT, ap as DEFAULT_SIZE, aq as DOCK_MIN_PAGE_REMAINDER, ar as DOCS_FOLDER, as as DOC_ACTION_ICONS, at as DOC_DENSITIES, au as DOC_EDIT_ACTIONS, av as DOC_TOOLBAR_GROUPS, aw as DOC_VARIANTS, ax as DashboardCardComponent, ay as DateInputComponent, az as DatePickerComponent, aA as DeviceService, aB as DocComponent, aC as DocEditorComponent, aD as DomService, aE as Domain, aF as DotGridComponent, aG as DragListDirective, aH as DragListItemDirective, aI as DraggableDirective, aJ as DropdownInputComponent, aK as FILTER_GROUP_CONTEXT, aL as FILTER_RANGE_MODES, aM as FILTER_VARIANTS, aN as FLEX_VARIANTS, aO as FOLDER_PICK_LISTENER, aP as FORM_ASSET_FOLDER, aQ as FileService, aR as FileUploadDirective, aS as FileUploadInputComponent, aT as FlexComponent, aU as FlexItemComponent, aV as FormGroupComponent, aW as FrameComponent, aX as FreezeService, aY as GRID_BREAKPOINTS, aZ as GetNavService, H as HeaderComponent, a_ as HighlightDirective, a$ as HttpService, b0 as ICON_SOURCE, k as IS_DESIGN_MODE, b1 as IS_SIDE_PANEL, b2 as IconComponent, b3 as ImgComponent, I as InputType, b4 as InstrumentScoreComponent, b5 as InterceptorObservables, b6 as JumbotronComponent, b7 as KeyValueComponent, b8 as LAYOUT_ASSET_FOLDER, b9 as LOADING_ACTIONS_REF, ba as LOGIN_COMPONENT, bb as LOGIN_STORE, bc as LanguageComponent, bd as ListComponent, be as LogoComponent, bf as MAG_SOCKET_EVENT, bg as MHeroColorDirective, bh as MHeroComponent, M as MODAL_REF, bi as MODAL_STORE_REF, bj as MOUNT_STATIC_SEGMENT, bk as MOUNT_TOKEN, bl as MRefDirective, bm as MStepComponent, bn as MURL_PARAM, bo as MURL_SEP, bp as ManifestEnrichmentService, bq as MarginDirective, br as MenuComponent, bs as ModalDirective, bt as ModalRef, bu as ModalStore, bv as MoneyPipe, bw as MultiRangeInputComponent, bx as MultiselectInputComponent, by as MurlUrlSerializer, bz as NAV_DEFAULT_MURL, bA as NAV_ID_SEP, bB as NAV_MAIN_BUTTONS, bC as NAV_SEGMENT_RE, bD as NAV_STORE_REF, bE as NAV_WC_COMPONENTS, bF as NAV_WIDGET_MAP, bG as NavComponent, bH as NavDetailsComponent, bI as NavHeaderComponent, bJ as NavMenuComponent, bK as NavStore, bL as NavTrailComponent, bM as NothingComponent, bN as NotificationElementComponent, bO as NotificationGroupComponent, bP as NotificationPopupComponent, bQ as NotificationService, bR as NotificationStore, bS as NotificationType, bT as NotificationWidgetComponent, bU as ONE_ASSET_BASE_URL, bV as OPTIONS_SOURCE, bW as OVERLAY_WIDGETS, bX as OneApp, bY as OptionsSourceDirective, bZ as OverlayBodyComponent, b_ as OverlayRef, b$ as OverlayService, c0 as PLATFORM_BUTTON_NAV_IDS, c1 as PLATFORM_EXTENSIBLE_NAV_IDS, c2 as PLATFORM_NAV_MAP, c3 as PLATFORM_ROOT_CHILDREN, c4 as PLUGIN_FALLBACK_LANG, c5 as PLUGIN_OUTPUT_EVENT, c6 as PLUGIN_SCREENS, c7 as PaddingDirective, c8 as PaginationComponent, c9 as PanelComponent, ca as PercentagePipe, cb as PlaygroundComponent, cc as PluginComponent, cd as PluginInputComponent, ce as PluginOutputComponent, cf as PositionDirective, cg as PwaInstallComponent, ch as RECENT_SEARCH_LIMIT, ci as REMOTE_PAGE_RELOAD, cj as ROOT_NAV, ck as RadioGroupComponent, cl as RadioInputComponent, R as RangeInputComponent, cm as RatingInputComponent, cn as ReactiveElementComponent, co as RemoteComponent, cp as RemoteLoaderService, cq as ResizeElementComponent, cr as RouteContainer, cs as RowComponent, ct as SEARCH_QUERY, cu as SEARCH_RESULTS_EVENT, cv as SECTION_ACCORDION_GROUP, cw as SECTION_FORM_CONTEXT, cx as SECTION_TABLE_VARIANTS, cy as SHARED_ICONS, cz as SIZE_CONTEXT, cA as SPACING_INWARD, cB as ScoreComponent, cC as ScrollComponent, cD as ScrollService, cE as SearchPanelComponent, cF as SearchStore, cG as SearchUserPanelComponent, cH as SectionAccordionDirective, cI as SectionAccordionGroupDirective, cJ as SectionBackComponent, cK as SectionBadgesComponent, cL as SectionButtonGroupComponent, cM as SectionCardComponent, cN as SectionCarouselComponent, cO as SectionComponent, cP as SectionFilterComponent, cQ as SectionFilterGroupComponent, cR as SectionFilterMenuComponent, cS as SectionFilterPanelComponent, cT as SectionFilterRangePanelComponent, cU as SectionFooterComponent, cV as SectionFormComponent, cW as SectionFormItemComponent, cX as SectionHeaderComponent, cY as SectionHeroComponent, cZ as SectionPaginationComponent, c_ as SectionSearchComponent, c$ as SectionStepperComponent, d0 as SectionTableCellComponent, d1 as SectionTableComponent, d2 as SectionTableRowComponent, d3 as SectionTableSortPipe, d4 as SectionTabsComponent, d5 as SectionToggleComponent, d6 as SectionToggleItemDirective, d7 as SelectableCardInputComponent, d8 as SelectorDirective, d9 as SettingsSearchBarComponent, da as SettingsSearchService, db as ShapeComponent, dc as SharedStoreRegistry, dd as SidePanelDirective, de as Size, df as SocketStore, dg as SortComponent, dh as StatComponent, di as StepComponent, dj as StepperComponent, dk as StepsComponent, dl as StorageService, dm as StrokeLinecap, dn as StrokeLinejoin, dp as SummaryComponent, dq as SvgGeneratorComponent, dr as SvgGeneratorService, ds as SvgService, dt as TOTAL_COLUMNS, du as TRANSLATION_SOURCE, dv as TableComponent, dw as TechnicalMeterComponent, dx as TextInputComponent, j as TextOutputComponent, dy as TextareaInputComponent, dz as ThemeComponent, dA as ThemeDataService, dB as ThemeService, dC as ThemeStore, dD as TimeAgoPipe, dE as TimelineComponent, dF as ToggleButtonComponent, dG as ToggleInputComponent, dH as ToggleRadioInputComponent, dI as ToolTipDirective, dJ as TooltipComponent, T as TranslatePipe, dK as TranslateService, dL as TreeGridComponent, dM as URL_SEP, dN as USER_STORE_REF, dO as USER_TAB_MAP, dP as UniverseComponent, dQ as UserApiService, dR as UserAvatarComponent, dS as UserComponent, dT as UserNavComponent, dU as UserSettingsComponent, dV as UserStore, dW as WC_BUNDLE, dX as WC_NAVIGATE_EVENT, dY as WC_ROUTE_CHANGED_EVENT, dZ as WC_SEARCH_GROUPS, d_ as WIN_USER_TAB_HOOK, d$ as WIN_USER_TAB_KEY, e0 as WatermarkComponent, e1 as WcRouterStore, e2 as WrapperInputComponent, e3 as allowedCodes, e4 as anchorNavId, e5 as applyColorsToElement, e6 as applyDocEdit, e7 as assetOptions, e8 as bootstrapMagApp, e9 as bootstrapPwaInstall, ea as browserLocale, eb as buildWcBaseUrl, ec as calculateLuminance, ed as calculateRanks, ee as cellText, ef as checkDoc, eg as checkFilterCondition, eh as childNavId, ei as claimDenial, ej as classListSignal, ek as coerceSize, el as cornerEdge, em as cornerSide, en as createLoadingState, eo as createMap, ep as createPlatformNavMap, eq as createPluginElement, er as definePluginScreens, es as definedWcTierOf, et as deriveAvatarGradient, eu as deriveContrastColor, ev as deriveOppositeColor, ew as derivePropertyName, ex as docActionKey, ey as docAssetCandidates, ez as docProblemKey, eA as docRemotePath, eB as emailValidation, eC as evaluate, eD as evaluateBool, eE as exposeScreens, eF as exposedScreensOf, eG as fieldBoolean, eH as fieldNumber, eI as fieldString, eJ as filterHoldsList, eK as filterHoldsOneBound, eL as filterHoldsOptions, eM as filterHoldsRange, eN as filterList, eO as filterNumber, eP as filterNumberList, eQ as filterOne, eR as filterPanelOf, eS as filterPanelWidth, eT as filterRange, eU as filterTreeGridRows, eV as filterValueList, eW as filterValues, eX as flattenTreeGridRows, eY as formatBadgeCount, eZ as fullName, e_ as generateClipPath, e$ as generateTransform, f0 as getClassList, f1 as getProperty, f2 as getScrollParent, f3 as getTierFromPreviewPath, f4 as getTreeGridRow, f5 as getUniqueId, f6 as getValue, f7 as hasErrorComputed, f8 as hexToRgb, f9 as hslToRgb, fa as initMagmoniumApp, fb as initialNotificationState, fc as initialState, fd as initials, fe as injectAuthenticate, ff as injectDefaultDenial, fg as injectInstallApp, fh as injectParentSize, fi as injectScrollSticky, fj as isBootRedirect, fk as isButtonName, fl as isCancelledComputed, fm as isExtensiblePlatformNavId, fn as isJson, fo as isLoadingComputed, fp as isLocalhost, fq as isNavInstanceConfig, fr as isNavMenuConfig, fs as isNavRowsConfig, ft as isNavVisibilityConfig, fu as isPlatformNavId, fv as isSize, fw as isTierPreview, fx as isUrlLocalhost, fy as isValidNavId, fz as isValidNavSegment, fA as isWebComponent, fB as linkToId, fC as linkToNav, fD as loadingActions, fE as mInterceptor, fF as manualValidation, fG as matchFieldValidation, fH as matchMount, fI as maxLengthValidation, fJ as maxValidation, fK as mergePlatformNav, fL as mergeUnique, fM as mergeUniqueBy, fN as mergeUniqueWith, fO as minAgeValidation, fP as minLengthValidation, fQ as minValidation, fR as miniMarkToHtml, fS as mountFor, fT as mountPatternProblem, fU as mountPatternText, fV as mountSegmentOf, fW as mountTokenOf, fX as navIdChain, fY as navIdFor, fZ as navIdSegment, f_ as navIdToRoutePath, f$ as navIdToSegments, g0 as navParamOf, g1 as navTailMatcher, g2 as navToId, g3 as navVisibilityGuard, g4 as nextSectionTableSort, g5 as normalizeAssetOptions, g6 as offsetOfLine, g7 as parentNavId, g8 as parseAddress, g9 as parseColor, ga as parseMountPattern, gb as parsePatternNames, gc as patternValidation, gd as patternsValidation, ge as permissionRefusal, gf as pickSupportedLanguage, gg as platformNavWidgets, gh as pluginTag, gi as presetDefaultOption, gj as privateGuard, gk as processImageToSvg, gl as provideAppContext, gm as provideMagAppConfig, gn as provideMagWcConfig, go as provideMagWcRoutes, gp as provideModalComponents, gq as provideMurlUrlSerializer, gr as provideNavWidgets, gs as provideOverlayWidgets, gt as providePlatformNavWidgets, gu as providePluginRuntime, gv as provideSearch, gw as provideSizeContext, gx as provideUserTabs, gy as publicGuard, gz as readFieldPatterns, gA as recordDefinedWcTier, gB as remoteOutletRoute, gC as renderAddress, gD as renderDocument, gE as requiredValidation, gF as resolveConfigAsset, gG as resolveIconSize, gH as resolvePallet, gI as resolvePatternRules, gJ as resolveSize, gK as resolveSpacing, gL as rgbToHex, gM as rgbToHsl, gN as rowHasChildren, gO as samePatterns, gP as sectionTableColumnId, gQ as sectionTableColumnWidths, gR as sectionTableFrozenCount, gS as segmentsToNavId, gT as setProperty, gU as setTreeGridChildren, gV as setWcLocalPort, gW as setWcTier, gX as settingsWidgets, gY as shouldShowBadge, gZ as sortSectionTableRows, g_ as splitNavId, g$ as splitOnMatch, h0 as stringToColor, h1 as tailRouteOf, h2 as toAttrBool, h3 as toAttrNumber, h4 as toCssLength, h5 as toHostNavId, h6 as toLength, h7 as toLocalNavId, h8 as toggleTreeGridRow, h9 as unfetchedPlatformNav, ha as ungroupedDocActions, hb as urlValidation, hc as wcLocalBaseOf, hd as wcTierOf } from './magmonium-one-magmonium-one-DYiAUWQe.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, S as BrowserLocaleService, B as ButtonComponent, U as ButtonGroupComponent, V as CALLING_APP_HEADER, W as COMPONENT_INPUT_REGISTRY, X as CardComponent, Y as CardWrapperComponent, Z as CarouselComponent, _ as ChartComponent, $ as ChatBubbleComponent, a0 as CheckboxGroupComponent, a1 as CheckboxInputComponent, a2 as ClearableInputComponent, a3 as ClipboardService, a4 as ColComponent, a5 as ColorPickerInputComponent, a6 as CommentItemComponent, a7 as CommentsApiService, a8 as CommentsComponent, a9 as CommentsStore, aa as CompactNumberPipe, ab as ComponentInputComponent, ac as ComponentStepperComponent, ad as ConfigComponent, ae as ConfirmComponent, af as ContextMenuComponent, ag as CustomIconClass, ah as CustomIconEditComponent, ai as DEFAULT_DENIAL, aj as DEFAULT_DOC_ALIGN, ak as DEFAULT_DOC_DENSITY, al as DEFAULT_DOC_VARIANT, am as DEFAULT_FILTER_RANGE_MODE, an as DEFAULT_FILTER_VARIANT, ao as DEFAULT_NAV_PARAM, ap as DEFAULT_NAV_SEGMENT, aq as DEFAULT_SIZE, ar as DOCK_MIN_PAGE_REMAINDER, as as DOCS_FOLDER, at as DOC_ACTION_ICONS, au as DOC_ALIGNS, av as DOC_DENSITIES, aw as DOC_EDIT_ACTIONS, ax as DOC_TOOLBAR_GROUPS, ay as DOC_VARIANTS, az as DashboardCardComponent, aA as DateInputComponent, aB as DatePickerComponent, aC as DeviceService, aD as DocComponent, aE as DocEditorComponent, aF as DomService, aG as Domain, aH as DotGridComponent, aI as DragListDirective, aJ as DragListItemDirective, aK as DraggableDirective, aL as DropdownInputComponent, aM as FILTER_GROUP_CONTEXT, aN as FILTER_RANGE_MODES, aO as FILTER_VARIANTS, aP as FLEX_VARIANTS, aQ as FOLDER_PICK_LISTENER, aR as FORM_ASSET_FOLDER, aS as FileService, aT as FileUploadDirective, aU as FileUploadInputComponent, aV as FlexComponent, aW as FlexItemComponent, aX as FormGroupComponent, aY as FrameComponent, aZ as FreezeService, a_ as GRID_BREAKPOINTS, a$ as GetNavService, H as HeaderComponent, b0 as HighlightDirective, b1 as HttpService, b2 as ICON_SOURCE, k as IS_DESIGN_MODE, b3 as IS_SIDE_PANEL, b4 as IconComponent, b5 as ImgComponent, I as InputType, b6 as InstrumentScoreComponent, b7 as InterceptorObservables, b8 as JumbotronComponent, b9 as KeyValueComponent, ba as LAYOUT_ASSET_FOLDER, bb as LOADING_ACTIONS_REF, bc as LOGIN_COMPONENT, bd as LOGIN_STORE, be as LanguageComponent, bf as ListComponent, bg as LogoComponent, bh as MAG_SOCKET_EVENT, bi as MHeroColorDirective, bj as MHeroComponent, M as MODAL_REF, bk as MODAL_STORE_REF, bl as MOUNT_STATIC_SEGMENT, bm as MOUNT_TOKEN, bn as MRefDirective, bo as MStepComponent, bp as MURL_PARAM, bq as MURL_SEP, br as ManifestEnrichmentService, bs as MarginDirective, bt as MenuComponent, bu as ModalDirective, bv as ModalRef, bw as ModalStore, bx as MoneyPipe, by as MultiRangeInputComponent, bz as MultiselectInputComponent, bA as MurlUrlSerializer, bB as NAV_DEFAULT_MURL, bC as NAV_ID_SEP, bD as NAV_MAIN_BUTTONS, bE as NAV_SEGMENT_RE, bF as NAV_STORE_REF, bG as NAV_WC_COMPONENTS, bH as NAV_WIDGET_MAP, bI as NavComponent, bJ as NavDetailsComponent, bK as NavHeaderComponent, bL as NavMenuComponent, bM as NavStore, bN as NavTrailComponent, bO as NothingComponent, bP as NotificationElementComponent, bQ as NotificationGroupComponent, bR as NotificationPopupComponent, bS as NotificationService, bT as NotificationStore, bU as NotificationType, bV as NotificationWidgetComponent, bW as ONE_ASSET_BASE_URL, bX as OPTIONS_SOURCE, bY as OVERLAY_WIDGETS, bZ as OneApp, b_ as OptionsSourceDirective, b$ as OverlayBodyComponent, c0 as OverlayRef, c1 as OverlayService, c2 as PLATFORM_BUTTON_NAV_IDS, c3 as PLATFORM_EXTENSIBLE_NAV_IDS, c4 as PLATFORM_NAV_MAP, c5 as PLATFORM_ROOT_CHILDREN, c6 as PLUGIN_FALLBACK_LANG, c7 as PLUGIN_OUTPUT_EVENT, c8 as PLUGIN_SCREENS, c9 as PaddingDirective, ca as PaginationComponent, cb as PanelComponent, cc as PercentagePipe, cd as PlaygroundComponent, ce as PluginComponent, cf as PluginInputComponent, cg as PluginOutputComponent, ch as PositionDirective, ci as PwaInstallComponent, cj as RECENT_SEARCH_LIMIT, ck as REMOTE_PAGE_RELOAD, cl as ROOT_NAV, cm as RadioGroupComponent, cn as RadioInputComponent, R as RangeInputComponent, co as RatingInputComponent, cp as ReactiveElementComponent, cq as RemoteComponent, cr as RemoteLoaderService, cs as ResizeElementComponent, ct as RouteContainer, cu as RowComponent, cv as SEARCH_QUERY, cw as SEARCH_RESULTS_EVENT, cx as SECTION_ACCORDION_GROUP, cy as SECTION_FORM_CONTEXT, cz as SECTION_TABLE_VARIANTS, cA as SHARED_ICONS, cB as SIZE_CONTEXT, cC as SPACING_INWARD, cD as ScoreComponent, cE as ScrollComponent, cF as ScrollService, cG as SearchPanelComponent, cH as SearchStore, cI as SearchUserPanelComponent, cJ as SectionAccordionDirective, cK as SectionAccordionGroupDirective, cL as SectionBackComponent, cM as SectionBadgesComponent, cN as SectionButtonGroupComponent, cO as SectionCardComponent, cP as SectionCarouselComponent, cQ as SectionComponent, cR as SectionFilterComponent, cS as SectionFilterGroupComponent, cT as SectionFilterMenuComponent, cU as SectionFilterPanelComponent, cV as SectionFilterRangePanelComponent, cW as SectionFooterComponent, cX as SectionFormComponent, cY as SectionFormItemComponent, cZ as SectionHeaderComponent, c_ as SectionHeroComponent, c$ as SectionPaginationComponent, d0 as SectionSearchComponent, d1 as SectionStepperComponent, d2 as SectionTableCellComponent, d3 as SectionTableComponent, d4 as SectionTableRowComponent, d5 as SectionTableSortPipe, d6 as SectionTabsComponent, d7 as SectionToggleComponent, d8 as SectionToggleItemDirective, d9 as SelectableCardInputComponent, da as SelectorDirective, db as SettingsSearchBarComponent, dc as SettingsSearchService, dd as ShapeComponent, de as SharedStoreRegistry, df as SidePanelDirective, dg as Size, dh as SocketStore, di as SortComponent, dj as StatComponent, dk as StepComponent, dl as StepperComponent, dm as StepsComponent, dn as StorageService, dp as StrokeLinecap, dq as StrokeLinejoin, dr as SummaryComponent, ds as SvgGeneratorComponent, dt as SvgGeneratorService, du as SvgService, dv as TOTAL_COLUMNS, dw as TRANSLATION_SOURCE, dx as TableComponent, dy as TechnicalMeterComponent, dz as TextInputComponent, j as TextOutputComponent, dA as TextareaInputComponent, dB as ThemeComponent, dC as ThemeDataService, dD as ThemeService, dE as ThemeStore, dF as TimeAgoPipe, dG as TimelineComponent, dH as ToggleButtonComponent, dI as ToggleInputComponent, dJ as ToggleRadioInputComponent, dK as ToolTipDirective, dL as TooltipComponent, T as TranslatePipe, dM as TranslateService, dN as TreeGridComponent, dO as URL_SEP, dP as USER_STORE_REF, dQ as USER_TAB_MAP, dR as UniverseComponent, dS as UserApiService, dT as UserAvatarComponent, dU as UserComponent, dV as UserNavComponent, dW as UserSettingsComponent, dX as UserStore, dY as WC_BUNDLE, dZ as WC_NAVIGATE_EVENT, d_ as WC_ROUTE_CHANGED_EVENT, d$ as WC_SEARCH_GROUPS, e0 as WIN_USER_TAB_HOOK, e1 as WIN_USER_TAB_KEY, e2 as WatermarkComponent, e3 as WcRouterStore, e4 as WrapperInputComponent, e5 as allowedCodes, e6 as anchorNavId, e7 as applyColorsToElement, e8 as applyDocEdit, e9 as assetOptions, ea as bootstrapMagApp, eb as bootstrapPwaInstall, ec as browserLocale, ed as buildWcBaseUrl, ee as calculateLuminance, ef as calculateRanks, eg as cellText, eh as checkDoc, ei as checkFilterCondition, ej as childNavId, ek as claimDenial, el as classListSignal, em as coerceSize, en as cornerEdge, eo as cornerSide, ep as createLoadingState, eq as createMap, er as createPlatformNavMap, es as createPluginElement, et as definePluginScreens, eu as definedWcTierOf, ev as deriveAvatarGradient, ew as deriveContrastColor, ex as deriveOppositeColor, ey as derivePropertyName, ez as docActionKey, eA as docAssetCandidates, eB as docProblemKey, eC as docRemotePath, eD as emailValidation, eE as evaluate, eF as evaluateBool, eG as exposeScreens, eH as exposedScreensOf, eI as fieldBoolean, eJ as fieldNumber, eK as fieldString, eL as filterHoldsList, eM as filterHoldsOneBound, eN as filterHoldsOptions, eO as filterHoldsRange, eP as filterList, eQ as filterNumber, eR as filterNumberList, eS as filterOne, eT as filterPanelOf, eU as filterPanelWidth, eV as filterRange, eW as filterTreeGridRows, eX as filterValueList, eY as filterValues, eZ as flattenTreeGridRows, e_ as formatBadgeCount, e$ as fullName, f0 as generateClipPath, f1 as generateTransform, f2 as getClassList, f3 as getProperty, f4 as getScrollParent, f5 as getTierFromPreviewPath, f6 as getTreeGridRow, f7 as getUniqueId, f8 as getValue, f9 as hasErrorComputed, fa as hexToRgb, fb as hslToRgb, fc as initMagmoniumApp, fd as initialNotificationState, fe as initialState, ff as initials, fg as injectAuthenticate, fh as injectDefaultDenial, fi as injectInstallApp, fj as injectParentSize, fk as injectScrollSticky, fl as isBootRedirect, fm as isButtonName, fn as isCancelledComputed, fo as isExtensiblePlatformNavId, fp as isJson, fq as isLoadingComputed, fr as isLocalhost, fs as isNavInstanceConfig, ft as isNavMenuConfig, fu as isNavRowsConfig, fv as isNavVisibilityConfig, fw as isPlatformNavId, fx as isSize, fy as isTierPreview, fz as isUrlLocalhost, fA as isValidNavId, fB as isValidNavSegment, fC as isWebComponent, fD as linkToId, fE as linkToNav, fF as loadingActions, fG as mInterceptor, fH as manualValidation, fI as matchFieldValidation, fJ as matchMount, fK as maxLengthValidation, fL as maxValidation, fM as mergePlatformNav, fN as mergeUnique, fO as mergeUniqueBy, fP as mergeUniqueWith, fQ as minAgeValidation, fR as minLengthValidation, fS as minValidation, fT as miniMarkToHtml, fU as mountFor, fV as mountPatternProblem, fW as mountPatternText, fX as mountSegmentOf, fY as mountTokenOf, fZ as navIdChain, f_ as navIdFor, f$ as navIdSegment, g0 as navIdToRoutePath, g1 as navIdToSegments, g2 as navParamOf, g3 as navTailMatcher, g4 as navToId, g5 as navVisibilityGuard, g6 as nextSectionTableSort, g7 as normalizeAssetOptions, g8 as offsetOfLine, g9 as parentNavId, ga as parseAddress, gb as parseColor, gc as parseMountPattern, gd as parsePatternNames, ge as patternValidation, gf as patternsValidation, gg as permissionRefusal, gh as pickSupportedLanguage, gi as platformNavWidgets, gj as pluginTag, gk as presetDefaultOption, gl as privateGuard, gm as processImageToSvg, gn as provideAppContext, go as provideMagAppConfig, gp as provideMagWcConfig, gq as provideMagWcRoutes, gr as provideModalComponents, gs as provideMurlUrlSerializer, gt as provideNavWidgets, gu as provideOverlayWidgets, gv as providePlatformNavWidgets, gw as providePluginRuntime, gx as provideSearch, gy as provideSizeContext, gz 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 resolveSpacing, gN as rgbToHex, gO as rgbToHsl, gP as rowHasChildren, gQ as samePatterns, gR as sectionTableColumnId, gS as sectionTableColumnWidths, gT as sectionTableFrozenCount, gU as segmentsToNavId, gV as setProperty, gW as setTreeGridChildren, gX as setWcLocalPort, gY as setWcTier, gZ as settingsWidgets, g_ as shouldShowBadge, g$ as sortSectionTableRows, h0 as splitNavId, h1 as splitOnMatch, h2 as stringToColor, h3 as tailRouteOf, h4 as toAttrBool, h5 as toAttrNumber, h6 as toCssLength, h7 as toHostNavId, h8 as toLength, h9 as toLocalNavId, ha as toggleTreeGridRow, hb as unfetchedPlatformNav, hc as ungroupedDocActions, hd as urlValidation, he as wcLocalBaseOf, hf as wcTierOf } from './magmonium-one-magmonium-one-gmpPJsnC.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.
|
|
3
|
+
"version": "0.4.25",
|
|
4
4
|
"description": "Magmonium One — Angular design-system primitives for mm Apps",
|
|
5
5
|
"author": "magmonium",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@angular/elements": "^21.0.0",
|
|
33
33
|
"@ngrx/signals": "^21.0.0",
|
|
34
34
|
"rxjs": "^7.8.0",
|
|
35
|
-
"@magmonium/cli": "
|
|
35
|
+
"@magmonium/cli": ">=0.7.12 <1.0.0",
|
|
36
36
|
"socket.io-client": "^4.8.0"
|
|
37
37
|
},
|
|
38
38
|
"sideEffects": false,
|
package/types/magmonium-one.d.ts
CHANGED
|
@@ -3581,7 +3581,7 @@ declare class SectionFilterGroupComponent {
|
|
|
3581
3581
|
readonly paddingX: _angular_core.InputSignal<boolean | undefined>;
|
|
3582
3582
|
readonly paddingY: _angular_core.InputSignal<boolean | undefined>;
|
|
3583
3583
|
readonly maxWidth: _angular_core.InputSignal<string | undefined>;
|
|
3584
|
-
readonly align: _angular_core.InputSignal<"
|
|
3584
|
+
readonly align: _angular_core.InputSignal<"center" | "left" | "right" | undefined>;
|
|
3585
3585
|
readonly config: _angular_core.InputSignal<SectionFilterGroupConfig | undefined>;
|
|
3586
3586
|
/**
|
|
3587
3587
|
* The whole group's selection, keyed by each Filter's `name` — one key per
|
|
@@ -3599,7 +3599,7 @@ declare class SectionFilterGroupComponent {
|
|
|
3599
3599
|
protected readonly resolvedPadding: _angular_core.Signal<boolean>;
|
|
3600
3600
|
protected readonly resolvedPaddingX: _angular_core.Signal<boolean>;
|
|
3601
3601
|
protected readonly resolvedPaddingY: _angular_core.Signal<boolean>;
|
|
3602
|
-
protected readonly resolvedAlign: _angular_core.Signal<"
|
|
3602
|
+
protected readonly resolvedAlign: _angular_core.Signal<"center" | "left" | "right">;
|
|
3603
3603
|
protected readonly resolvedMaxWidth: _angular_core.Signal<string | undefined>;
|
|
3604
3604
|
protected readonly noBorder: _angular_core.Signal<boolean>;
|
|
3605
3605
|
/**
|
|
@@ -3687,7 +3687,7 @@ declare class SectionStepperComponent implements OnDestroy {
|
|
|
3687
3687
|
declare class SectionBadgesComponent {
|
|
3688
3688
|
readonly wrap: _angular_core.InputSignal<boolean>;
|
|
3689
3689
|
readonly border: _angular_core.InputSignal<boolean>;
|
|
3690
|
-
readonly align: _angular_core.InputSignal<"
|
|
3690
|
+
readonly align: _angular_core.InputSignal<"center" | "left" | "right">;
|
|
3691
3691
|
private readonly sectionContext;
|
|
3692
3692
|
protected readonly hasBorder: _angular_core.Signal<boolean>;
|
|
3693
3693
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SectionBadgesComponent, never>;
|
|
@@ -3761,7 +3761,7 @@ declare class SectionToggleComponent<T extends SectionToggleItem = SectionToggle
|
|
|
3761
3761
|
|
|
3762
3762
|
declare class SectionFooterComponent {
|
|
3763
3763
|
readonly sticky: _angular_core.InputSignal<boolean>;
|
|
3764
|
-
readonly align: _angular_core.InputSignal<"
|
|
3764
|
+
readonly align: _angular_core.InputSignal<"center" | "left" | "right">;
|
|
3765
3765
|
private readonly scrollSticky;
|
|
3766
3766
|
protected readonly isSticky: _angular_core.Signal<boolean>;
|
|
3767
3767
|
private readonly sectionContext;
|
|
@@ -3805,7 +3805,7 @@ declare class SectionPaginationComponent {
|
|
|
3805
3805
|
* Entries that are not positive numbers drop rather than throw.
|
|
3806
3806
|
*/
|
|
3807
3807
|
readonly perPageOptions: _angular_core.InputSignal<string | undefined>;
|
|
3808
|
-
readonly align: _angular_core.InputSignal<"
|
|
3808
|
+
readonly align: _angular_core.InputSignal<"center" | "left" | "right">;
|
|
3809
3809
|
readonly showPerPage: _angular_core.InputSignal<boolean>;
|
|
3810
3810
|
/** Hides the band outright once everything fits one page. */
|
|
3811
3811
|
readonly hideOnSinglePage: _angular_core.InputSignal<boolean>;
|
|
@@ -4019,8 +4019,9 @@ interface SectionConfig extends Config {
|
|
|
4019
4019
|
height?: number | string;
|
|
4020
4020
|
align?: SectionAlign;
|
|
4021
4021
|
/**
|
|
4022
|
-
* Where the body's children sit on the inline axis. `align
|
|
4023
|
-
*
|
|
4022
|
+
* Where the body's children sit on the inline axis. Wins over `align`, which
|
|
4023
|
+
* places the body box itself (its `margin-inline` under a `maxWidth`) and
|
|
4024
|
+
* only distributes children as a side effect.
|
|
4024
4025
|
*/
|
|
4025
4026
|
alignX?: GridAlignX;
|
|
4026
4027
|
/** Where the body's children sit on the block axis. */
|
|
@@ -4051,7 +4052,7 @@ declare class SectionComponent extends ConfigComponent<SectionConfig> {
|
|
|
4051
4052
|
readonly align: _angular_core.InputSignal<SectionAlign | undefined>;
|
|
4052
4053
|
readonly alignX: _angular_core.InputSignal<GridAlignX | undefined>;
|
|
4053
4054
|
readonly alignY: _angular_core.InputSignal<GridAlignY | undefined>;
|
|
4054
|
-
readonly size: _angular_core.InputSignal<
|
|
4055
|
+
readonly size: _angular_core.InputSignal<"sm" | "md" | "lg" | Size | undefined>;
|
|
4055
4056
|
private readonly parentSize;
|
|
4056
4057
|
readonly resolvedSize: _angular_core.Signal<Size>;
|
|
4057
4058
|
protected readonly sizeLength: _angular_core.Signal<string>;
|
|
@@ -4120,8 +4121,8 @@ declare class SectionHeaderComponent {
|
|
|
4120
4121
|
readonly visibilityRule: _angular_core.InputSignal<((key: string, data?: unknown) => boolean) | undefined>;
|
|
4121
4122
|
readonly disableRule: _angular_core.InputSignal<((key: string, data?: unknown) => boolean) | undefined>;
|
|
4122
4123
|
readonly extraData: _angular_core.InputSignal<unknown>;
|
|
4123
|
-
readonly align: _angular_core.InputSignal<"
|
|
4124
|
-
readonly alignment: _angular_core.Signal<"
|
|
4124
|
+
readonly align: _angular_core.InputSignal<"center" | "left" | "right" | undefined>;
|
|
4125
|
+
readonly alignment: _angular_core.Signal<"center" | "left" | "right">;
|
|
4125
4126
|
readonly showBack: _angular_core.InputSignal<boolean>;
|
|
4126
4127
|
readonly actionButton: _angular_core.InputSignal<string | undefined>;
|
|
4127
4128
|
readonly actionLabel: _angular_core.InputSignal<string | undefined>;
|
|
@@ -4138,7 +4139,7 @@ declare class SectionHeaderComponent {
|
|
|
4138
4139
|
protected readonly sidepanel: _angular_core.Signal<boolean>;
|
|
4139
4140
|
protected readonly noBorder: _angular_core.Signal<boolean>;
|
|
4140
4141
|
protected readonly resolvedMaxWidth: _angular_core.Signal<string | undefined>;
|
|
4141
|
-
protected readonly boxAlign: _angular_core.Signal<"
|
|
4142
|
+
protected readonly boxAlign: _angular_core.Signal<"center" | "left" | "right">;
|
|
4142
4143
|
protected readonly iconBox: _angular_core.Signal<string>;
|
|
4143
4144
|
protected readonly isSticky: _angular_core.Signal<boolean>;
|
|
4144
4145
|
protected readonly hasMenu: _angular_core.Signal<boolean>;
|
|
@@ -4180,7 +4181,7 @@ declare class SectionButtonGroupComponent extends ConfigComponent<SectionButtonG
|
|
|
4180
4181
|
readonly vertical: _angular_core.InputSignal<boolean | undefined>;
|
|
4181
4182
|
readonly align: _angular_core.InputSignal<ConfigAlign>;
|
|
4182
4183
|
readonly variant: _angular_core.InputSignal<"spaced" | "joined" | undefined>;
|
|
4183
|
-
readonly size: _angular_core.InputSignal<
|
|
4184
|
+
readonly size: _angular_core.InputSignal<"sm" | "md" | "lg" | Size | undefined>;
|
|
4184
4185
|
readonly fullWidth: _angular_core.InputSignal<boolean | undefined>;
|
|
4185
4186
|
private readonly parentSize;
|
|
4186
4187
|
readonly resolvedSize: _angular_core.Signal<Size>;
|
|
@@ -4188,7 +4189,7 @@ declare class SectionButtonGroupComponent extends ConfigComponent<SectionButtonG
|
|
|
4188
4189
|
protected readonly resolvedFullWidth: _angular_core.Signal<boolean>;
|
|
4189
4190
|
protected readonly resolvedVertical: _angular_core.Signal<boolean>;
|
|
4190
4191
|
protected readonly resolvedVariant: _angular_core.Signal<"spaced" | "joined">;
|
|
4191
|
-
protected readonly resolvedAlign: _angular_core.Signal<"
|
|
4192
|
+
protected readonly resolvedAlign: _angular_core.Signal<"center" | "left" | "right" | "bottom" | "top">;
|
|
4192
4193
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SectionButtonGroupComponent, never>;
|
|
4193
4194
|
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>;
|
|
4194
4195
|
}
|
|
@@ -6011,17 +6012,17 @@ declare class SectionFormComponent<T extends object = Record<string, unknown>> e
|
|
|
6011
6012
|
protected readonly resolvesConfigAsset = false;
|
|
6012
6013
|
readonly variant: _angular_core.InputSignal<string | undefined>;
|
|
6013
6014
|
readonly maxWidth: _angular_core.InputSignal<string | undefined>;
|
|
6014
|
-
readonly heightMode: _angular_core.InputSignal<"
|
|
6015
|
+
readonly heightMode: _angular_core.InputSignal<"fixed" | "full" | undefined>;
|
|
6015
6016
|
readonly maxHeight: _angular_core.InputSignal<string | number | undefined>;
|
|
6016
6017
|
readonly height: _angular_core.InputSignal<string | number | undefined>;
|
|
6017
|
-
readonly align: _angular_core.InputSignal<"
|
|
6018
|
+
readonly align: _angular_core.InputSignal<"center" | "left" | "right" | undefined>;
|
|
6018
6019
|
readonly padding: _angular_core.InputSignal<string | number | undefined>;
|
|
6019
6020
|
readonly paddingX: _angular_core.InputSignal<string | number | undefined>;
|
|
6020
6021
|
readonly paddingY: _angular_core.InputSignal<string | number | undefined>;
|
|
6021
6022
|
readonly margin: _angular_core.InputSignal<string | number | undefined>;
|
|
6022
6023
|
readonly marginX: _angular_core.InputSignal<string | number | undefined>;
|
|
6023
6024
|
readonly marginY: _angular_core.InputSignal<string | number | undefined>;
|
|
6024
|
-
readonly size: _angular_core.InputSignal<
|
|
6025
|
+
readonly size: _angular_core.InputSignal<"sm" | "md" | "lg" | Size | undefined>;
|
|
6025
6026
|
readonly autofocus: _angular_core.InputSignal<boolean>;
|
|
6026
6027
|
data: _angular_core.InputSignal<T | undefined>;
|
|
6027
6028
|
readonly dataChange: _angular_core.OutputEmitterRef<T>;
|
|
@@ -6066,7 +6067,7 @@ declare class SectionFormComponent<T extends object = Record<string, unknown>> e
|
|
|
6066
6067
|
protected readonly handleSubmit: (event: Event) => void;
|
|
6067
6068
|
readonly resolvedSize: _angular_core.Signal<Size>;
|
|
6068
6069
|
protected readonly sizeLength: _angular_core.Signal<string | null>;
|
|
6069
|
-
readonly resolvedAlign: _angular_core.Signal<"
|
|
6070
|
+
readonly resolvedAlign: _angular_core.Signal<"center" | "left" | "right">;
|
|
6070
6071
|
readonly resolvedVariant: _angular_core.Signal<string | undefined>;
|
|
6071
6072
|
readonly resolvedMaxWidth: _angular_core.Signal<string | number | undefined>;
|
|
6072
6073
|
private readonly resolvedPadding;
|
|
@@ -6078,7 +6079,7 @@ declare class SectionFormComponent<T extends object = Record<string, unknown>> e
|
|
|
6078
6079
|
readonly resolvedMinHeight: _angular_core.Signal<string | undefined>;
|
|
6079
6080
|
readonly resolvedMinWidth: _angular_core.Signal<string | undefined>;
|
|
6080
6081
|
readonly resolvedMaxHeight: _angular_core.Signal<string | number | undefined>;
|
|
6081
|
-
readonly resolvedHeightMode: _angular_core.Signal<"
|
|
6082
|
+
readonly resolvedHeightMode: _angular_core.Signal<"fixed" | "full" | undefined>;
|
|
6082
6083
|
readonly isFullHeight: _angular_core.Signal<boolean>;
|
|
6083
6084
|
readonly cssMaxHeight: _angular_core.Signal<string | undefined>;
|
|
6084
6085
|
constructor();
|
|
@@ -7229,10 +7230,17 @@ declare class ImgComponent {
|
|
|
7229
7230
|
type DocVariant = 'plain' | 'card' | 'outline' | 'article' | 'muted' | 'callout' | 'accent' | 'quiet';
|
|
7230
7231
|
/** The rhythm of a document — type size and the space between its blocks. */
|
|
7231
7232
|
type DocDensity = 'compact' | 'default' | 'spaced';
|
|
7233
|
+
/**
|
|
7234
|
+
* Where a document's text sits on the line. Always written out, `left`
|
|
7235
|
+
* included, so a centred ancestor never leaks into the prose.
|
|
7236
|
+
*/
|
|
7237
|
+
type DocAlign = 'left' | 'center' | 'right';
|
|
7232
7238
|
declare const DOC_VARIANTS: readonly DocVariant[];
|
|
7233
7239
|
declare const DOC_DENSITIES: readonly DocDensity[];
|
|
7240
|
+
declare const DOC_ALIGNS: readonly DocAlign[];
|
|
7234
7241
|
declare const DEFAULT_DOC_VARIANT: DocVariant;
|
|
7235
7242
|
declare const DEFAULT_DOC_DENSITY: DocDensity;
|
|
7243
|
+
declare const DEFAULT_DOC_ALIGN: DocAlign;
|
|
7236
7244
|
|
|
7237
7245
|
/**
|
|
7238
7246
|
* Renders one DocAsset — a markdown document, not a message.
|
|
@@ -7264,6 +7272,8 @@ declare class DocComponent {
|
|
|
7264
7272
|
readonly variant: _angular_core.InputSignal<DocVariant>;
|
|
7265
7273
|
/** The rhythm — type size and the space between blocks. */
|
|
7266
7274
|
readonly density: _angular_core.InputSignal<DocDensity>;
|
|
7275
|
+
/** Where the text sits on the line — `left` unless picked otherwise. */
|
|
7276
|
+
readonly align: _angular_core.InputSignal<DocAlign>;
|
|
7267
7277
|
private readonly http;
|
|
7268
7278
|
private readonly translate;
|
|
7269
7279
|
protected readonly rootClass: _angular_core.Signal<string>;
|
|
@@ -7281,7 +7291,7 @@ declare class DocComponent {
|
|
|
7281
7291
|
private readUrl;
|
|
7282
7292
|
private show;
|
|
7283
7293
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DocComponent, never>;
|
|
7284
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DocComponent, "m-doc", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "remote": { "alias": "remote"; "required": false; "isSignal": true; }; "url": { "alias": "url"; "required": false; "isSignal": true; }; "designSrc": { "alias": "designSrc"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7294
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DocComponent, "m-doc", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "remote": { "alias": "remote"; "required": false; "isSignal": true; }; "url": { "alias": "url"; "required": false; "isSignal": true; }; "designSrc": { "alias": "designSrc"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7285
7295
|
}
|
|
7286
7296
|
|
|
7287
7297
|
/** The one folder a DocAsset lives in, under `assets/` and under `assets/one/`. */
|
|
@@ -7454,7 +7464,7 @@ type DocAiPhase = 'idle' | 'asking' | 'question' | 'outline' | 'writing' | 'prop
|
|
|
7454
7464
|
*/
|
|
7455
7465
|
declare class DocEditorComponent implements ControlValueAccessor {
|
|
7456
7466
|
protected readonly groups: readonly _magmonium_one.DocToolbarGroup[];
|
|
7457
|
-
protected readonly icons: Record<"code" | "
|
|
7467
|
+
protected readonly icons: Record<"code" | "link" | "table" | "strike" | "list" | "bold" | "heading" | "italic" | "quote", string>;
|
|
7458
7468
|
protected readonly docActionKey: typeof docActionKey;
|
|
7459
7469
|
private readonly translate;
|
|
7460
7470
|
protected readonly value: _angular_core.WritableSignal<string>;
|
|
@@ -11588,5 +11598,5 @@ interface AuthResult {
|
|
|
11588
11598
|
}
|
|
11589
11599
|
declare function injectAuthenticate(): () => Promise<AuthResult>;
|
|
11590
11600
|
|
|
11591
|
-
export { ACCESS_DOMAINS, APP_CONTEXT_REF, APP_LINK, ASSET_BASE_URL, AccordionBodyDirective, AccordionComponent, AccordionGroupComponent, ActionComponent, AnimatedGraphsComponent, AppCardComponent, AppRelationType, AppTileComponent, AssetStore, AssetUrlPipe, Assets, AuthActivityPageComponent, AuthApiService, AuthStore, AutosizeDirective, BadgeComponent, BandingComponent, BaseArrayInputComponent, BaseRootWebComponent, BaseWebComponent, BrowserLocaleService, ButtonComponent, ButtonGroupComponent, CALLING_APP_HEADER, COMPONENT_INPUT_REGISTRY, CardComponent, CardWrapperComponent, CarouselComponent, ChartComponent, ChatBubbleComponent, CheckboxGroupComponent, CheckboxInputComponent, ClearableInputComponent, ClipboardService, ColComponent, ColorPickerInputComponent, CommentItemComponent, CommentsApiService, CommentsComponent, CommentsStore, CompactNumberPipe, ComponentInputComponent, ComponentStepperComponent, ConfigComponent, ConfirmComponent, ContextMenuComponent, CustomIconClass, CustomIconEditComponent, DEFAULT_DENIAL, DEFAULT_DOC_DENSITY, DEFAULT_DOC_VARIANT, DEFAULT_FILTER_RANGE_MODE, DEFAULT_FILTER_VARIANT, DEFAULT_NAV_PARAM, DEFAULT_NAV_SEGMENT, DEFAULT_SIZE, DOCK_MIN_PAGE_REMAINDER, DOCS_FOLDER, DOC_ACTION_ICONS, DOC_DENSITIES, DOC_EDIT_ACTIONS, DOC_TOOLBAR_GROUPS, DOC_VARIANTS, DashboardCardComponent, DateInputComponent, DatePickerComponent, DeviceService, DocComponent, DocEditorComponent, DomService, Domain, DotGridComponent, DragListDirective, DragListItemDirective, DraggableDirective, DropdownInputComponent, FILTER_GROUP_CONTEXT, FILTER_RANGE_MODES, FILTER_VARIANTS, 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, LOADING_ACTIONS_REF, LOGIN_COMPONENT, LOGIN_STORE, LanguageComponent, ListComponent, LogoComponent, MAG_SOCKET_EVENT, MHeroColorDirective, MHeroComponent, MODAL_REF, MODAL_STORE_REF, MOUNT_STATIC_SEGMENT, MOUNT_TOKEN, MRefDirective, MStepComponent, MURL_PARAM, MURL_SEP, ManifestEnrichmentService, MarginDirective, MenuComponent, ModalDirective, ModalRef, ModalStore, MoneyPipe, MultiRangeInputComponent, MultiselectInputComponent, 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, PLUGIN_FALLBACK_LANG, PLUGIN_OUTPUT_EVENT, PLUGIN_SCREENS, PaddingDirective, PaginationComponent, PanelComponent, PercentagePipe, PlaygroundComponent, PluginComponent, PluginInputComponent, PluginOutputComponent, PositionDirective, PwaInstallComponent, RECENT_SEARCH_LIMIT, REMOTE_PAGE_RELOAD, ROOT_NAV, RadioGroupComponent, RadioInputComponent, RangeInputComponent, RatingInputComponent, ReactiveElementComponent, RemoteComponent, RemoteLoaderService, ResizeElementComponent, RouteContainer, RowComponent, SEARCH_QUERY, SEARCH_RESULTS_EVENT, SECTION_ACCORDION_GROUP, SECTION_FORM_CONTEXT, SECTION_TABLE_VARIANTS, SHARED_ICONS, SIZE_CONTEXT, SPACING_INWARD, ScoreComponent, ScrollComponent, ScrollService, SearchPanelComponent, SearchStore, SearchUserPanelComponent, SectionAccordionDirective, SectionAccordionGroupDirective, SectionBackComponent, SectionBadgesComponent, SectionButtonGroupComponent, SectionCardComponent, SectionCarouselComponent, SectionComponent, SectionFilterComponent, SectionFilterGroupComponent, SectionFilterMenuComponent, SectionFilterPanelComponent, SectionFilterRangePanelComponent, SectionFooterComponent, SectionFormComponent, SectionFormItemComponent, SectionHeaderComponent, SectionHeroComponent, SectionPaginationComponent, SectionSearchComponent, SectionStepperComponent, SectionTableCellComponent, SectionTableComponent, SectionTableRowComponent, SectionTableSortPipe, 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, UniverseComponent, UserApiService, UserAvatarComponent, UserComponent, UserNavComponent, UserSettingsComponent, UserStore, WC_BUNDLE, WC_NAVIGATE_EVENT, WC_ROUTE_CHANGED_EVENT, WC_SEARCH_GROUPS, WIN_USER_TAB_HOOK, WIN_USER_TAB_KEY, WatermarkComponent, WcRouterStore, WrapperInputComponent, allowedCodes, anchorNavId, applyColorsToElement, applyDocEdit, assetOptions, bootstrapMagApp, bootstrapPwaInstall, browserLocale, buildWcBaseUrl, calculateLuminance, calculateRanks, cellText, checkDoc, checkFilterCondition, childNavId, claimDenial, classListSignal, coerceSize, cornerEdge, cornerSide, createLoadingState, createMap, createPlatformNavMap, createPluginElement, definePluginScreens, definedWcTierOf, deriveAvatarGradient, deriveContrastColor, deriveOppositeColor, derivePropertyName, docActionKey, docAssetCandidates, docProblemKey, docRemotePath, emailValidation, evaluate, evaluateBool, exposeScreens, exposedScreensOf, fieldBoolean, fieldNumber, fieldString, filterHoldsList, filterHoldsOneBound, filterHoldsOptions, filterHoldsRange, filterList, filterNumber, filterNumberList, filterOne, filterPanelOf, filterPanelWidth, filterRange, filterTreeGridRows, filterValueList, filterValues, flattenTreeGridRows, formatBadgeCount, fullName, generateClipPath, generateTransform, getClassList, getProperty, getScrollParent, getTierFromPreviewPath, getTreeGridRow, getUniqueId, getValue, hasErrorComputed, hexToRgb, hslToRgb, initMagmoniumApp, initialNotificationState, initialState, initials, injectAuthenticate, injectDefaultDenial, injectInstallApp, injectParentSize, injectScrollSticky, isBootRedirect, isButtonName, isCancelledComputed, isExtensiblePlatformNavId, isJson, isLoadingComputed, isLocalhost, isNavInstanceConfig, isNavMenuConfig, isNavRowsConfig, isNavVisibilityConfig, isPlatformNavId, isSize, isTierPreview, isUrlLocalhost, isValidNavId, isValidNavSegment, isWebComponent, linkToId, linkToNav, loadingActions, mInterceptor, manualValidation, matchFieldValidation, matchMount, maxLengthValidation, maxValidation, mergePlatformNav, mergeUnique, mergeUniqueBy, mergeUniqueWith, minAgeValidation, minLengthValidation, minValidation, miniMarkToHtml, mountFor, mountPatternProblem, mountPatternText, mountSegmentOf, mountTokenOf, navIdChain, navIdFor, navIdSegment, navIdToRoutePath, navIdToSegments, navParamOf, navTailMatcher, navToId, navVisibilityGuard, nextSectionTableSort, normalizeAssetOptions, offsetOfLine, parentNavId, parseAddress, parseColor, parseMountPattern, parsePatternNames, patternValidation, patternsValidation, permissionRefusal, pickSupportedLanguage, platformNavWidgets, pluginTag, presetDefaultOption, privateGuard, processImageToSvg, provideAppContext, provideMagAppConfig, provideMagWcConfig, provideMagWcRoutes, provideModalComponents, provideMurlUrlSerializer, provideNavWidgets, provideOverlayWidgets, providePlatformNavWidgets, providePluginRuntime, provideSearch, provideSizeContext, provideUserTabs, publicGuard, readFieldPatterns, recordDefinedWcTier, remoteOutletRoute, renderAddress, renderDocument, requiredValidation, resolveConfigAsset, resolveIconSize, resolvePallet, resolvePatternRules, resolveSize, resolveSpacing, rgbToHex, rgbToHsl, rowHasChildren, samePatterns, sectionTableColumnId, sectionTableColumnWidths, sectionTableFrozenCount, segmentsToNavId, setProperty, setTreeGridChildren, setWcLocalPort, setWcTier, settingsWidgets, shouldShowBadge, sortSectionTableRows, splitNavId, splitOnMatch, stringToColor, tailRouteOf, toAttrBool, toAttrNumber, toCssLength, toHostNavId, toLength, toLocalNavId, toggleTreeGridRow, unfetchedPlatformNav, ungroupedDocActions, urlValidation, wcLocalBaseOf, wcTierOf };
|
|
11592
|
-
export type { Accordion, AccordionGroup, AccordionVariant, ActionNotification, Align, AnimatedGraphConfig, AnimatedGraphCurveInput, AppCardData, AppCardInputs, AppCardVariant, AppCodeRule, AppContextRef, AppHint, AppManifest, AppPermission, AppRelation, AppRelationView, AppRules, AppTileData, AssetOption, 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, BrowserLocale, Button, ButtonGroup, Carousel, CarouselIndicatorPosition, CarouselIndicatorShape, CarouselPosition, CarouselSlide, CellChangeEvent, CellClickEvent, Chart, ChartSeries, ChatBubblePointerAlignment, ChatBubblePointerPosition, ChatBubbleVariant, CheckboxGroupInput, ColBreakpoint, ColSpan, ColorInput, ColorPallet, ColorPropertyType, ColumnDef, Comment, CommentItem, ComponentInput, Config, ConfirmOptions, ContextMenu, ContextMenuEvent, CropData, Cursor, CustomIcon, DateInput, Direction$2 as Direction, DocAiPhase, DocDensity, DocEditAction, DocEditState, DocLookup, DocOutline, DocProblem, DocProblemKind, DocProposal, DocToolbarGroup, DocVariant, DotGridVariant, DragListReorder, Draggable, DraggableState, DropdownInput, DropdownOption, DropdownValue, ElementType, ExposedScreens, FieldPatterns, FileReadAs, FileUploadConfig, FileUploadEvent, FileUploadInput, FilterGroupContext, FilterGroupMember, FilterOption, FilterPanel, FilterPanelIo, FilterRangeMode, FilterSelectionMap, FilterValue, FilterVariant, FilteredTreeGrid, FlatTreeGridRow, FlexAlign, FlexAlignSelf, FlexConfig, FlexDirection, FlexItemConfig, FlexJustify, FlexVariant, FolderPickListener, Form, FormState, Genre, GridAlignX, GridAlignY, GridBreakpoint, Header, HeaderLevel, HeldShelf, HeroDataRecord, HeroDimensions, HslColor, Icon, Input, InputModel, InputSpan, InputState, InputValue, Jumbotron, JumbotronAnimation, KeyValueVariant, LabelSegment, ListConfig, ListContext, ListItem, ListOrientation, ListVariant, LoadingActionsApi, LoginStoreContract, LogoVariant, MagAppConfigOptions, MagWcConfigOptions, ManualErrorValidator, MenuItem, Modal, ModalOverlayConfig, ModalStoreRef, ModalStoreTrigger, ModalTrigger, MoneySystem, MountMatch, MountPattern, MountPatternProblem, MountRoute, MountSegment, MountSegmentKind, MultiRangeInput, Nav, NavIdKey, NavInstanceConfig, NavKind, NavMap, NavMenuConfig, NavPresentation, NavRow, NavRowsConfig, NavStoreRef, NavVisibilityConfig, NavVisibleAnswer, NavWidgetConfig, NavWidgetEntry, NavWidgetMap, Notification, NotificationAction, NotificationSeverity, NotificationState, NotificationUser, NumberInput, Option, OtpInput, OverlayConfig, OverlayWidgetLoader, OverlayWidgetMap, PageChangeEvent, Pagination, PaginationWindow, PanelOverlayConfig, PanelTrigger, PasswordInput, PatternRule, PluginOutput, PluginSource, Position, QueryParams, QueryValue, RadioGroupInput, RadioInput, RangeInput, RatingInput, RemoteFailReason, RemoteLoadResult, RemoteMount, RemoteReport, RemoteSelectorConfig, ResolvedUserTab, RgbColor, ScreenOverlayTrigger, SearchChangeEvent, SearchInput, SearchResult, SearchSourceGroup, SearchState, SectionAccordion, SectionAccordionGroup, SectionAccordionGroupContext, SectionAccordionRef, SectionButtonGroupConfig, SectionCarousel, SectionCarouselContext, SectionCarouselItem, SectionFilterGroupConfig, SectionFormConfig, SectionFormContext, SectionHero, SectionHeroVariant, SectionTableAlign, SectionTableColumn, SectionTableConfig, SectionTableDataType, SectionTableSort, SectionTableSortDirection, SectionTableVariant, SectionToggleItem, SectionToggleItemContext, SelectableCardContext, SelectableCardInput, SelectableCardItem, SelectionAction, SelectionActionEvent, SelectionChangeEvent, SelectorConfig, Shape, ShapeType, ShapeVariant, SharedToken, SharedUser, SizeContext, SizeDeclarer, SocketMessage, Sort, SortChange, SortChangeEvent, SortOption, SortOrder, SpacingInward, 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, TextOrNumberInput, TextOutputAlign, TextOutputConfig, TextOutputFontWeight, TextOutputVariant, TextareaInput, Timeline, TimelineItem, ToggleInput, ToggleRadioInput, Tokens, TreeGridCellClickEvent, TreeGridLoadChildrenEvent, TreeGridRow, TreeGridRowSelectEvent, TreeGridToggleEvent, UniverseColorScheme, UrlMode, User, UserRole, UserStoreRef, Version, Watermark, WcTier, WebComponentConfig, WeeklyData };
|
|
11601
|
+
export { ACCESS_DOMAINS, APP_CONTEXT_REF, APP_LINK, ASSET_BASE_URL, AccordionBodyDirective, AccordionComponent, AccordionGroupComponent, ActionComponent, AnimatedGraphsComponent, AppCardComponent, AppRelationType, AppTileComponent, AssetStore, AssetUrlPipe, Assets, AuthActivityPageComponent, AuthApiService, AuthStore, AutosizeDirective, BadgeComponent, BandingComponent, BaseArrayInputComponent, BaseRootWebComponent, BaseWebComponent, BrowserLocaleService, ButtonComponent, ButtonGroupComponent, CALLING_APP_HEADER, COMPONENT_INPUT_REGISTRY, CardComponent, CardWrapperComponent, CarouselComponent, ChartComponent, ChatBubbleComponent, CheckboxGroupComponent, CheckboxInputComponent, ClearableInputComponent, ClipboardService, ColComponent, ColorPickerInputComponent, CommentItemComponent, CommentsApiService, CommentsComponent, CommentsStore, CompactNumberPipe, ComponentInputComponent, ComponentStepperComponent, ConfigComponent, ConfirmComponent, ContextMenuComponent, CustomIconClass, CustomIconEditComponent, DEFAULT_DENIAL, DEFAULT_DOC_ALIGN, DEFAULT_DOC_DENSITY, DEFAULT_DOC_VARIANT, DEFAULT_FILTER_RANGE_MODE, DEFAULT_FILTER_VARIANT, DEFAULT_NAV_PARAM, DEFAULT_NAV_SEGMENT, DEFAULT_SIZE, DOCK_MIN_PAGE_REMAINDER, DOCS_FOLDER, DOC_ACTION_ICONS, DOC_ALIGNS, DOC_DENSITIES, DOC_EDIT_ACTIONS, DOC_TOOLBAR_GROUPS, DOC_VARIANTS, DashboardCardComponent, DateInputComponent, DatePickerComponent, DeviceService, DocComponent, DocEditorComponent, DomService, Domain, DotGridComponent, DragListDirective, DragListItemDirective, DraggableDirective, DropdownInputComponent, FILTER_GROUP_CONTEXT, FILTER_RANGE_MODES, FILTER_VARIANTS, 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, LOADING_ACTIONS_REF, LOGIN_COMPONENT, LOGIN_STORE, LanguageComponent, ListComponent, LogoComponent, MAG_SOCKET_EVENT, MHeroColorDirective, MHeroComponent, MODAL_REF, MODAL_STORE_REF, MOUNT_STATIC_SEGMENT, MOUNT_TOKEN, MRefDirective, MStepComponent, MURL_PARAM, MURL_SEP, ManifestEnrichmentService, MarginDirective, MenuComponent, ModalDirective, ModalRef, ModalStore, MoneyPipe, MultiRangeInputComponent, MultiselectInputComponent, 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, PLUGIN_FALLBACK_LANG, PLUGIN_OUTPUT_EVENT, PLUGIN_SCREENS, PaddingDirective, PaginationComponent, PanelComponent, PercentagePipe, PlaygroundComponent, PluginComponent, PluginInputComponent, PluginOutputComponent, PositionDirective, PwaInstallComponent, RECENT_SEARCH_LIMIT, REMOTE_PAGE_RELOAD, ROOT_NAV, RadioGroupComponent, RadioInputComponent, RangeInputComponent, RatingInputComponent, ReactiveElementComponent, RemoteComponent, RemoteLoaderService, ResizeElementComponent, RouteContainer, RowComponent, SEARCH_QUERY, SEARCH_RESULTS_EVENT, SECTION_ACCORDION_GROUP, SECTION_FORM_CONTEXT, SECTION_TABLE_VARIANTS, SHARED_ICONS, SIZE_CONTEXT, SPACING_INWARD, ScoreComponent, ScrollComponent, ScrollService, SearchPanelComponent, SearchStore, SearchUserPanelComponent, SectionAccordionDirective, SectionAccordionGroupDirective, SectionBackComponent, SectionBadgesComponent, SectionButtonGroupComponent, SectionCardComponent, SectionCarouselComponent, SectionComponent, SectionFilterComponent, SectionFilterGroupComponent, SectionFilterMenuComponent, SectionFilterPanelComponent, SectionFilterRangePanelComponent, SectionFooterComponent, SectionFormComponent, SectionFormItemComponent, SectionHeaderComponent, SectionHeroComponent, SectionPaginationComponent, SectionSearchComponent, SectionStepperComponent, SectionTableCellComponent, SectionTableComponent, SectionTableRowComponent, SectionTableSortPipe, 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, UniverseComponent, UserApiService, UserAvatarComponent, UserComponent, UserNavComponent, UserSettingsComponent, UserStore, WC_BUNDLE, WC_NAVIGATE_EVENT, WC_ROUTE_CHANGED_EVENT, WC_SEARCH_GROUPS, WIN_USER_TAB_HOOK, WIN_USER_TAB_KEY, WatermarkComponent, WcRouterStore, WrapperInputComponent, allowedCodes, anchorNavId, applyColorsToElement, applyDocEdit, assetOptions, bootstrapMagApp, bootstrapPwaInstall, browserLocale, buildWcBaseUrl, calculateLuminance, calculateRanks, cellText, checkDoc, checkFilterCondition, childNavId, claimDenial, classListSignal, coerceSize, cornerEdge, cornerSide, createLoadingState, createMap, createPlatformNavMap, createPluginElement, definePluginScreens, definedWcTierOf, deriveAvatarGradient, deriveContrastColor, deriveOppositeColor, derivePropertyName, docActionKey, docAssetCandidates, docProblemKey, docRemotePath, emailValidation, evaluate, evaluateBool, exposeScreens, exposedScreensOf, fieldBoolean, fieldNumber, fieldString, filterHoldsList, filterHoldsOneBound, filterHoldsOptions, filterHoldsRange, filterList, filterNumber, filterNumberList, filterOne, filterPanelOf, filterPanelWidth, filterRange, filterTreeGridRows, filterValueList, filterValues, flattenTreeGridRows, formatBadgeCount, fullName, generateClipPath, generateTransform, getClassList, getProperty, getScrollParent, getTierFromPreviewPath, getTreeGridRow, getUniqueId, getValue, hasErrorComputed, hexToRgb, hslToRgb, initMagmoniumApp, initialNotificationState, initialState, initials, injectAuthenticate, injectDefaultDenial, injectInstallApp, injectParentSize, injectScrollSticky, isBootRedirect, isButtonName, isCancelledComputed, isExtensiblePlatformNavId, isJson, isLoadingComputed, isLocalhost, isNavInstanceConfig, isNavMenuConfig, isNavRowsConfig, isNavVisibilityConfig, isPlatformNavId, isSize, isTierPreview, isUrlLocalhost, isValidNavId, isValidNavSegment, isWebComponent, linkToId, linkToNav, loadingActions, mInterceptor, manualValidation, matchFieldValidation, matchMount, maxLengthValidation, maxValidation, mergePlatformNav, mergeUnique, mergeUniqueBy, mergeUniqueWith, minAgeValidation, minLengthValidation, minValidation, miniMarkToHtml, mountFor, mountPatternProblem, mountPatternText, mountSegmentOf, mountTokenOf, navIdChain, navIdFor, navIdSegment, navIdToRoutePath, navIdToSegments, navParamOf, navTailMatcher, navToId, navVisibilityGuard, nextSectionTableSort, normalizeAssetOptions, offsetOfLine, parentNavId, parseAddress, parseColor, parseMountPattern, parsePatternNames, patternValidation, patternsValidation, permissionRefusal, pickSupportedLanguage, platformNavWidgets, pluginTag, presetDefaultOption, privateGuard, processImageToSvg, provideAppContext, provideMagAppConfig, provideMagWcConfig, provideMagWcRoutes, provideModalComponents, provideMurlUrlSerializer, provideNavWidgets, provideOverlayWidgets, providePlatformNavWidgets, providePluginRuntime, provideSearch, provideSizeContext, provideUserTabs, publicGuard, readFieldPatterns, recordDefinedWcTier, remoteOutletRoute, renderAddress, renderDocument, requiredValidation, resolveConfigAsset, resolveIconSize, resolvePallet, resolvePatternRules, resolveSize, resolveSpacing, rgbToHex, rgbToHsl, rowHasChildren, samePatterns, sectionTableColumnId, sectionTableColumnWidths, sectionTableFrozenCount, segmentsToNavId, setProperty, setTreeGridChildren, setWcLocalPort, setWcTier, settingsWidgets, shouldShowBadge, sortSectionTableRows, splitNavId, splitOnMatch, stringToColor, tailRouteOf, toAttrBool, toAttrNumber, toCssLength, toHostNavId, toLength, toLocalNavId, toggleTreeGridRow, unfetchedPlatformNav, ungroupedDocActions, urlValidation, wcLocalBaseOf, wcTierOf };
|
|
11602
|
+
export type { Accordion, AccordionGroup, AccordionVariant, ActionNotification, Align, AnimatedGraphConfig, AnimatedGraphCurveInput, AppCardData, AppCardInputs, AppCardVariant, AppCodeRule, AppContextRef, AppHint, AppManifest, AppPermission, AppRelation, AppRelationView, AppRules, AppTileData, AssetOption, 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, BrowserLocale, Button, ButtonGroup, Carousel, CarouselIndicatorPosition, CarouselIndicatorShape, CarouselPosition, CarouselSlide, CellChangeEvent, CellClickEvent, Chart, ChartSeries, ChatBubblePointerAlignment, ChatBubblePointerPosition, ChatBubbleVariant, CheckboxGroupInput, ColBreakpoint, ColSpan, ColorInput, ColorPallet, ColorPropertyType, ColumnDef, Comment, CommentItem, ComponentInput, Config, ConfirmOptions, ContextMenu, ContextMenuEvent, CropData, Cursor, CustomIcon, DateInput, Direction$2 as Direction, DocAiPhase, DocAlign, DocDensity, DocEditAction, DocEditState, DocLookup, DocOutline, DocProblem, DocProblemKind, DocProposal, DocToolbarGroup, DocVariant, DotGridVariant, DragListReorder, Draggable, DraggableState, DropdownInput, DropdownOption, DropdownValue, ElementType, ExposedScreens, FieldPatterns, FileReadAs, FileUploadConfig, FileUploadEvent, FileUploadInput, FilterGroupContext, FilterGroupMember, FilterOption, FilterPanel, FilterPanelIo, FilterRangeMode, FilterSelectionMap, FilterValue, FilterVariant, FilteredTreeGrid, FlatTreeGridRow, FlexAlign, FlexAlignSelf, FlexConfig, FlexDirection, FlexItemConfig, FlexJustify, FlexVariant, FolderPickListener, Form, FormState, Genre, GridAlignX, GridAlignY, GridBreakpoint, Header, HeaderLevel, HeldShelf, HeroDataRecord, HeroDimensions, HslColor, Icon, Input, InputModel, InputSpan, InputState, InputValue, Jumbotron, JumbotronAnimation, KeyValueVariant, LabelSegment, ListConfig, ListContext, ListItem, ListOrientation, ListVariant, LoadingActionsApi, LoginStoreContract, LogoVariant, MagAppConfigOptions, MagWcConfigOptions, ManualErrorValidator, MenuItem, Modal, ModalOverlayConfig, ModalStoreRef, ModalStoreTrigger, ModalTrigger, MoneySystem, MountMatch, MountPattern, MountPatternProblem, MountRoute, MountSegment, MountSegmentKind, MultiRangeInput, Nav, NavIdKey, NavInstanceConfig, NavKind, NavMap, NavMenuConfig, NavPresentation, NavRow, NavRowsConfig, NavStoreRef, NavVisibilityConfig, NavVisibleAnswer, NavWidgetConfig, NavWidgetEntry, NavWidgetMap, Notification, NotificationAction, NotificationSeverity, NotificationState, NotificationUser, NumberInput, Option, OtpInput, OverlayConfig, OverlayWidgetLoader, OverlayWidgetMap, PageChangeEvent, Pagination, PaginationWindow, PanelOverlayConfig, PanelTrigger, PasswordInput, PatternRule, PluginOutput, PluginSource, Position, QueryParams, QueryValue, RadioGroupInput, RadioInput, RangeInput, RatingInput, RemoteFailReason, RemoteLoadResult, RemoteMount, RemoteReport, RemoteSelectorConfig, ResolvedUserTab, RgbColor, ScreenOverlayTrigger, SearchChangeEvent, SearchInput, SearchResult, SearchSourceGroup, SearchState, SectionAccordion, SectionAccordionGroup, SectionAccordionGroupContext, SectionAccordionRef, SectionButtonGroupConfig, SectionCarousel, SectionCarouselContext, SectionCarouselItem, SectionFilterGroupConfig, SectionFormConfig, SectionFormContext, SectionHero, SectionHeroVariant, SectionTableAlign, SectionTableColumn, SectionTableConfig, SectionTableDataType, SectionTableSort, SectionTableSortDirection, SectionTableVariant, SectionToggleItem, SectionToggleItemContext, SelectableCardContext, SelectableCardInput, SelectableCardItem, SelectionAction, SelectionActionEvent, SelectionChangeEvent, SelectorConfig, Shape, ShapeType, ShapeVariant, SharedToken, SharedUser, SizeContext, SizeDeclarer, SocketMessage, Sort, SortChange, SortChangeEvent, SortOption, SortOrder, SpacingInward, 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, TextOrNumberInput, TextOutputAlign, TextOutputConfig, TextOutputFontWeight, TextOutputVariant, TextareaInput, Timeline, TimelineItem, ToggleInput, ToggleRadioInput, Tokens, TreeGridCellClickEvent, TreeGridLoadChildrenEvent, TreeGridRow, TreeGridRowSelectEvent, TreeGridToggleEvent, UniverseColorScheme, UrlMode, User, UserRole, UserStoreRef, Version, Watermark, WcTier, WebComponentConfig, WeeklyData };
|