@magmonium/one 0.4.14 → 0.4.15
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-DN8v0YOv.mjs → magmonium-one-image-editor-mHRn2N35.mjs} +2 -2
- package/fesm2022/{magmonium-one-image-editor-DN8v0YOv.mjs.map → magmonium-one-image-editor-mHRn2N35.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-magmonium-one-DWeZSPCv.mjs → magmonium-one-magmonium-one-DdYdOA7f.mjs} +60 -15
- package/fesm2022/magmonium-one-magmonium-one-DdYdOA7f.mjs.map +1 -0
- package/fesm2022/{magmonium-one-otp-CpjpaJdi.mjs → magmonium-one-otp-BKjTa-rP.mjs} +2 -2
- package/fesm2022/{magmonium-one-otp-CpjpaJdi.mjs.map → magmonium-one-otp-BKjTa-rP.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-password-CX1OjX5P.mjs → magmonium-one-password-idcVo1X1.mjs} +2 -2
- package/fesm2022/{magmonium-one-password-CX1OjX5P.mjs.map → magmonium-one-password-idcVo1X1.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-toggle-zniJyl09.mjs → magmonium-one-toggle-AXRopys5.mjs} +2 -2
- package/fesm2022/{magmonium-one-toggle-zniJyl09.mjs.map → magmonium-one-toggle-AXRopys5.mjs.map} +1 -1
- package/fesm2022/magmonium-one.mjs +1 -1
- package/package.json +1 -1
- package/types/magmonium-one.d.ts +46 -25
- package/fesm2022/magmonium-one-magmonium-one-DWeZSPCv.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-DdYdOA7f.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-BKjTa-rP.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-otp-CpjpaJdi.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,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,EAAA,CAAA,+qEAAA,CAAA,EAAA;oGAIQ,UAAU,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"magmonium-one-otp-BKjTa-rP.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,CAA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CAAA,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-CX1OjX5P.mjs → magmonium-one-password-idcVo1X1.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-DdYdOA7f.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-idcVo1X1.mjs.map
|
package/fesm2022/{magmonium-one-password-CX1OjX5P.mjs.map → magmonium-one-password-idcVo1X1.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-password-
|
|
1
|
+
{"version":3,"file":"magmonium-one-password-idcVo1X1.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/text/password.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n signal,\n} from '@angular/core';\nimport { LabelComponent } from '../label';\nimport { TextOutputComponent } from '../../../text-output';\nimport { BaseTextInputComponent } from './base-text';\nimport { ButtonComponent } from '../../../button/ui/button';\nimport { TranslatePipe } from '../../../../pipe';\n\n@Component({\n selector: 'm-password-input',\n template: `\n @if (config(); as text) {\n <m-label\n [for]=\"text.name\"\n [placeholder]=\"text.label\"\n [params]=\"text.params\"\n [required]=\"required()\"\n [disabled]=\"disabled()\"\n />\n <div class=\"input-wrapper\">\n <input\n [id]=\"text.name ?? ''\"\n [value]=\"value()\"\n #inputElement\n [class.error]=\"showErrors()\"\n [disabled]=\"disabled()\"\n [placeholder]=\"(text.placeholder ?? '') | translate: text.params\"\n (input)=\"onInput($event)\"\n (focus)=\"isFocused.set(true)\"\n (blur)=\"isFocused.set(false); touched.set(true)\"\n [type]=\"type()\"\n />\n <m-one-button\n type=\"button\"\n [disabled]=\"disabled()\"\n [name]=\"button()\"\n [color]=\"iconColor()\"\n (clicked)=\"toggleType()\"\n />\n </div>\n @if (showErrors()) {\n @for (error of errors(); track $index) {\n <m-text-output\n variant=\"footer\"\n color=\"error\"\n [label]=\"error.message\"\n />\n }\n }\n }\n `,\n imports: [LabelComponent, TextOutputComponent, ButtonComponent, TranslatePipe],\n styleUrl: './password.sass',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class PasswordInputComponent extends BaseTextInputComponent {\n isPassword = signal<boolean>(true);\n type = computed(() => (this.isPassword() ? 'password' : 'text'));\n button = computed(() => (!this.isPassword() ? 'eye' : 'eye_close'));\n\n protected toggleType() {\n this.isPassword.update((now) => !now);\n }\n\n protected onInput(event: Event): void {\n const target = event.target as HTMLInputElement;\n this.setValue(target?.value ?? '');\n }\n}\n"],"names":[],"mappings":";;;;AA2DM,MAAO,sBAAuB,SAAQ,sBAAsB,CAAA;AAChE,IAAA,UAAU,GAAG,MAAM,CAAU,IAAI,iFAAC;IAClC,IAAI,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,UAAU,EAAE,GAAG,UAAU,GAAG,MAAM,CAAC,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;IAChE,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,KAAK,GAAG,WAAW,CAAC,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,QAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;IAEzD,UAAU,GAAA;AAClB,QAAA,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC;IACvC;AAEU,IAAA,OAA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A,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-DdYdOA7f.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-AXRopys5.mjs.map
|
package/fesm2022/{magmonium-one-toggle-zniJyl09.mjs.map → magmonium-one-toggle-AXRopys5.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-toggle-
|
|
1
|
+
{"version":3,"file":"magmonium-one-toggle-AXRopys5.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/toggle/toggle.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n model,\n ModelSignal,\n} from '@angular/core';\nimport { ToggleInput } from '../../model/input';\nimport { TranslatePipe } from '../../../../pipe/translate';\nimport {\n FormCheckboxControl,\n ValidationError,\n WithOptionalField,\n} from '@angular/forms/signals';\nimport { BaseInputComponent } from '../../lib/base-input';\n\n@Component({\n selector: 'm-toggle-input',\n template: `\n @if (config(); as toggle) {\n <div class=\"toggle\">\n <input\n [id]=\"toggle.name ?? ''\"\n [checked]=\"checked()\"\n (change)=\"onChange($event)\"\n type=\"checkbox\"\n />\n <label [attr.for]=\"toggle.name || null\">{{\n toggle.label | translate\n }}</label>\n </div>\n }\n `,\n imports: [TranslatePipe],\n styleUrl: './toggle.sass',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ToggleInputComponent\n extends BaseInputComponent<ToggleInput>\n implements FormCheckboxControl\n{\n public value = undefined;\n public checked = model<boolean>(false) as ModelSignal<boolean>;\n public override config = input<Partial<ToggleInput> | undefined>();\n public override required = input<boolean>(false);\n public override disabled = input<boolean>(false);\n public override invalid = input<boolean>(false);\n public override touched = model<boolean>(false);\n public override focused = input<boolean>(false);\n public override errors = input<readonly WithOptionalField<ValidationError>[]>(\n []\n );\n public override showErrors = computed(() => this.touched() && this.invalid());\n\n /** Required by FormCheckboxControl interface */\n // public readonly checked: ModelSignal<boolean> = this.value; // Already defined above\n\n constructor() {\n super();\n }\n\n protected onChange(event: Event): void {\n const target = event.target as HTMLInputElement;\n this.checked.set(target?.checked ?? false);\n }\n}\n"],"names":[],"mappings":";;;;AAsCM,MAAO,oBACX,SAAQ,kBAA+B,CAAA;IAGhC,KAAK,GAAG,SAAS;AACjB,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,CAAyB;IAC9C,MAAM,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,QAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAoC;AAClD,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,+EAAC;AAChC,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,+EAAC;AAChC,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,8EAAC;AAC/B,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,8EAAC;AAC/B,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,8EAAC;AAC/B,IAAA,MAAM,GAAG,KAAK,CAC5B,EAAE,6EACH;AACe,IAAA,UAAU,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE,IAAI,IAAI,CAAC,OAAO,EAAE,iFAAC;;;AAK7E,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;IACT;AAEU,IAAA,QAAQ,CAAC,KAAY,EAAA;AAC7B,QAAA,MAAM,MAAM,GAAG,KAAK,CAAC,MAA0B;QAC/C,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,IAAI,KAAK,CAAC;IAC5C;uGA3BW,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAApB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA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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, B as ButtonComponent, S as ButtonGroupComponent, U as CALLING_APP_HEADER, V as COMPONENT_INPUT_REGISTRY, W as CardComponent, X as CardWrapperComponent, Y as CarouselComponent, Z as ChartComponent, _ as ChatBubbleComponent, $ as CheckboxGroupComponent, a0 as CheckboxInputComponent, a1 as ClearableInputComponent, a2 as ClipboardService, a3 as ColComponent, a4 as ColorPickerInputComponent, a5 as CommentItemComponent, a6 as CommentsApiService, a7 as CommentsComponent, a8 as CommentsStore, a9 as CompactNumberPipe, aa as ComponentInputComponent, ab as ComponentStepperComponent, ac as ConfigComponent, ad as ConfirmComponent, ae as ContextMenuComponent, af as CustomIconClass, ag as CustomIconEditComponent, ah as DEFAULT_DENIAL, ai as DEFAULT_DOC_DENSITY, aj as DEFAULT_DOC_VARIANT, ak as DEFAULT_FILTER_RANGE_MODE, al as DEFAULT_FILTER_VARIANT, am as DEFAULT_NAV_PARAM, an as DEFAULT_NAV_SEGMENT, ao as DEFAULT_SIZE, ap as DOCK_MIN_PAGE_REMAINDER, aq as DOCS_FOLDER, ar as DOC_ACTION_ICONS, as as DOC_DENSITIES, at as DOC_EDIT_ACTIONS, au as DOC_TOOLBAR_GROUPS, av as DOC_VARIANTS, aw as DashboardCardComponent, ax as DateInputComponent, ay as DatePickerComponent, az as DeviceService, aA as DocComponent, aB as DocEditorComponent, aC as DomService, aD as Domain, aE as DotGridComponent, aF as DragListDirective, aG as DragListItemDirective, aH as DraggableDirective, aI as DropdownInputComponent, aJ as FILTER_GROUP_CONTEXT, aK as FILTER_RANGE_MODES, aL as FILTER_VARIANTS, aM as FLEX_VARIANTS, aN as FOLDER_PICK_LISTENER, aO as FORM_ASSET_FOLDER, aP as FileService, aQ as FileUploadDirective, aR as FileUploadInputComponent, aS as FlexComponent, aT as FlexItemComponent, aU as FormGroupComponent, aV as FrameComponent, aW as FreezeService, aX as GRID_BREAKPOINTS, aY as GetNavService, H as HeaderComponent, aZ as HighlightDirective, a_ as HttpService, a$ as ICON_SOURCE, k as IS_DESIGN_MODE, b0 as IS_SIDE_PANEL, b1 as IconComponent, b2 as ImgComponent, I as InputType, b3 as InstrumentScoreComponent, b4 as InterceptorObservables, b5 as JumbotronComponent, b6 as KeyValueComponent, b7 as LAYOUT_ASSET_FOLDER, b8 as LOGIN_COMPONENT, b9 as LOGIN_STORE, ba as LanguageComponent, bb as ListComponent, bc as LogoComponent, bd as MAG_SOCKET_EVENT, be as MHeroColorDirective, bf as MHeroComponent, M as MODAL_REF, bg as MODAL_STORE_REF, bh as MOUNT_STATIC_SEGMENT, bi as MOUNT_TOKEN, bj as MRefDirective, bk as MStepComponent, bl as MURL_PARAM, bm as MURL_SEP, bn as ManifestEnrichmentService, bo as MarginDirective, bp as MenuComponent, bq as ModalDirective, br as ModalRef, bs as ModalStore, bt as MoneyPipe, bu as MultiRangeInputComponent, bv as MultiselectInputComponent, bw as MurlUrlSerializer, bx as NAV_DEFAULT_MURL, by as NAV_ID_SEP, bz as NAV_MAIN_BUTTONS, bA as NAV_SEGMENT_RE, bB as NAV_STORE_REF, bC as NAV_WC_COMPONENTS, bD as NAV_WIDGET_MAP, bE as NavComponent, bF as NavDetailsComponent, bG as NavHeaderComponent, bH as NavMenuComponent, bI as NavStore, bJ as NavTrailComponent, bK as NothingComponent, bL as NotificationElementComponent, bM as NotificationGroupComponent, bN as NotificationPopupComponent, bO as NotificationService, bP as NotificationStore, bQ as NotificationType, bR as NotificationWidgetComponent, bS as ONE_ASSET_BASE_URL, bT as OPTIONS_SOURCE, bU as OVERLAY_WIDGETS, bV as OneApp, bW as OptionsSourceDirective, bX as OverlayBodyComponent, bY as OverlayRef, bZ as OverlayService, b_ as PLATFORM_BUTTON_NAV_IDS, b$ as PLATFORM_EXTENSIBLE_NAV_IDS, c0 as PLATFORM_NAV_MAP, c1 as PLATFORM_ROOT_CHILDREN, c2 as PaddingDirective, c3 as PaginationComponent, c4 as PanelComponent, c5 as PercentagePipe, c6 as PlaygroundComponent, c7 as PositionDirective, c8 as PwaInstallComponent, c9 as RECENT_SEARCH_LIMIT, ca as REMOTE_PAGE_RELOAD, cb as ROOT_NAV, cc as RadioGroupComponent, cd as RadioInputComponent, R as RangeInputComponent, ce as RatingInputComponent, cf as ReactiveElementComponent, cg as RemoteComponent, ch as RemoteLoaderService, ci as ResizeElementComponent, cj as RouteContainer, ck as RowComponent, cl as SEARCH_QUERY, cm as SEARCH_RESULTS_EVENT, cn as SECTION_ACCORDION_GROUP, co as SECTION_FORM_CONTEXT, cp as SECTION_TABLE_VARIANTS, cq as SHARED_ICONS, cr as SIZE_CONTEXT, cs as SPACING_INWARD, ct as ScoreComponent, cu as ScrollComponent, cv as ScrollService, cw as SearchPanelComponent, cx as SearchStore, cy as SearchUserPanelComponent, cz as SectionAccordionDirective, cA as SectionAccordionGroupDirective, cB as SectionBackComponent, cC as SectionBadgesComponent, cD as SectionButtonGroupComponent, cE as SectionCardComponent, cF as SectionCarouselComponent, cG as SectionComponent, cH as SectionFilterComponent, cI as SectionFilterGroupComponent, cJ as SectionFilterMenuComponent, cK as SectionFilterPanelComponent, cL as SectionFilterRangePanelComponent, cM as SectionFooterComponent, cN as SectionFormComponent, cO as SectionFormItemComponent, cP as SectionHeaderComponent, cQ as SectionHeroComponent, cR as SectionPaginationComponent, cS as SectionSearchComponent, cT as SectionStepperComponent, cU as SectionTableCellComponent, cV as SectionTableComponent, cW as SectionTableRowComponent, cX as SectionTableSortPipe, cY as SectionTabsComponent, cZ as SectionToggleComponent, c_ as SectionToggleItemDirective, c$ as SelectableCardInputComponent, d0 as SelectorDirective, d1 as SettingsSearchBarComponent, d2 as SettingsSearchService, d3 as ShapeComponent, d4 as SharedStoreRegistry, d5 as SidePanelDirective, d6 as Size, d7 as SocketStore, d8 as SortComponent, d9 as StatComponent, da as StepComponent, db as StepperComponent, dc as StepsComponent, dd as StorageService, de as StrokeLinecap, df as StrokeLinejoin, dg as SummaryComponent, dh as SvgGeneratorComponent, di as SvgGeneratorService, dj as SvgService, dk as TOTAL_COLUMNS, dl as TRANSLATION_SOURCE, dm as TableComponent, dn as TechnicalMeterComponent, dp as TextInputComponent, j as TextOutputComponent, dq as TextareaInputComponent, dr as ThemeComponent, ds as ThemeDataService, dt as ThemeService, du as ThemeStore, dv as TimeAgoPipe, dw as TimelineComponent, dx as ToggleButtonComponent, dy as ToggleInputComponent, dz as ToggleRadioInputComponent, dA as ToolTipDirective, dB as TooltipComponent, T as TranslatePipe, dC as TranslateService, dD as TreeGridComponent, dE as URL_SEP, dF as USER_STORE_REF, dG as USER_TAB_MAP, dH as UniverseComponent, dI as UserApiService, dJ as UserAvatarComponent, dK as UserComponent, dL as UserNavComponent, dM as UserSettingsComponent, dN as UserStore, dO as WC_BUNDLE, dP as WC_NAVIGATE_EVENT, dQ as WC_ROUTE_CHANGED_EVENT, dR as WC_SEARCH_GROUPS, dS as WIN_USER_TAB_HOOK, dT as WIN_USER_TAB_KEY, dU as WatermarkComponent, dV as WcRouterStore, dW as WrapperInputComponent, dX as anchorNavId, dY as applyColorsToElement, dZ as applyDocEdit, d_ as assetOptions, d$ as bootstrapMagApp, e0 as bootstrapPwaInstall, e1 as buildWcBaseUrl, e2 as calculateLuminance, e3 as calculateRanks, e4 as cellText, e5 as checkDoc, e6 as checkFilterCondition, e7 as childNavId, e8 as claimDenial, e9 as classListSignal, ea as coerceSize, eb as cornerEdge, ec as cornerSide, ed as createMap, ee as createPlatformNavMap, ef as definedWcTierOf, eg as deriveAvatarGradient, eh as deriveContrastColor, ei as deriveOppositeColor, ej as derivePropertyName, ek as docActionKey, el as docAssetCandidates, em as docProblemKey, en as docRemotePath, eo as emailValidation, ep as evaluate, eq as evaluateBool, er as fieldBoolean, es as fieldNumber, et as fieldString, eu as filterHoldsList, ev as filterHoldsOneBound, ew as filterHoldsOptions, ex as filterHoldsRange, ey as filterList, ez as filterNumber, eA as filterNumberList, eB as filterOne, eC as filterPanelOf, eD as filterPanelWidth, eE as filterRange, eF as filterTreeGridRows, eG as filterValueList, eH as filterValues, eI as flattenTreeGridRows, eJ as formatBadgeCount, eK as fullName, eL as generateClipPath, eM as generateTransform, eN as getClassList, eO as getProperty, eP as getScrollParent, eQ as getTierFromPreviewPath, eR as getTreeGridRow, eS as getUniqueId, eT as getValue, eU as hasErrorComputed, eV as hexToRgb, eW as hslToRgb, eX as initMagmoniumApp, eY as initialNotificationState, eZ as initialState, e_ as initials, e$ as injectAuthenticate, f0 as injectDefaultDenial, f1 as injectInstallApp, f2 as injectParentSize, f3 as injectScrollSticky, f4 as isBootRedirect, f5 as isButtonName, f6 as isCancelledComputed, f7 as isExtensiblePlatformNavId, f8 as isJson, f9 as isLoadingComputed, fa as isLocalhost, fb as isNavInstanceConfig, fc as isNavMenuConfig, fd as isNavRowsConfig, fe as isNavVisibilityConfig, ff as isPlatformNavId, fg as isSize, fh as isTierPreview, fi as isUrlLocalhost, fj as isValidNavId, fk as isValidNavSegment, fl as isWebComponent, fm as linkToId, fn as linkToNav, fo as loadingActions, fp as mInterceptor, fq as manualValidation, fr as matchFieldValidation, fs as matchMount, ft as maxLengthValidation, fu as maxValidation, fv as mergePlatformNav, fw as mergeUnique, fx as mergeUniqueBy, fy as mergeUniqueWith, fz as minAgeValidation, fA as minLengthValidation, fB as minValidation, fC as miniMarkToHtml, fD as mountFor, fE as mountPatternProblem, fF as mountPatternText, fG as mountSegmentOf, fH as mountTokenOf, fI as navIdChain, fJ as navIdFor, fK as navIdSegment, fL as navIdToRoutePath, fM as navIdToSegments, fN as navParamOf, fO as navTailMatcher, fP as navToId, fQ as navVisibilityGuard, fR as nextSectionTableSort, fS as normalizeAssetOptions, fT as offsetOfLine, fU as parentNavId, fV as parseAddress, fW as parseColor, fX as parseMountPattern, fY as parsePatternNames, fZ as patternValidation, f_ as patternsValidation, f$ as permissionRefusal, g0 as platformNavWidgets, g1 as privateGuard, g2 as processImageToSvg, g3 as provideAppContext, g4 as provideMagAppConfig, g5 as provideMagWcConfig, g6 as provideMagWcRoutes, g7 as provideModalComponents, g8 as provideMurlUrlSerializer, g9 as provideNavWidgets, ga as provideOverlayWidgets, gb as providePlatformNavWidgets, gc as provideSearch, gd as provideSizeContext, ge as provideUserTabs, gf as publicGuard, gg as readFieldPatterns, gh as recordDefinedWcTier, gi as remoteOutletRoute, gj as renderAddress, gk as renderDocument, gl as requiredValidation, gm as resolveConfigAsset, gn as resolveIconSize, go as resolvePallet, gp as resolvePatternRules, gq as resolveSize, gr as resolveSpacing, gs as rgbToHex, gt as rgbToHsl, gu as rowHasChildren, gv as samePatterns, gw as sectionTableColumnId, gx as sectionTableColumnWidths, gy as sectionTableFrozenCount, gz as segmentsToNavId, gA as setProperty, gB as setTreeGridChildren, gC as setWcTier, gD as settingsWidgets, gE as shouldShowBadge, gF as sortSectionTableRows, gG as splitNavId, gH as splitOnMatch, gI as stringToColor, gJ as tailRouteOf, gK as toAttrBool, gL as toAttrNumber, gM as toCssLength, gN as toHostNavId, gO as toLength, gP as toLocalNavId, gQ as toggleTreeGridRow, gR as unfetchedPlatformNav, gS as ungroupedDocActions, gT as urlValidation, gU as wcTierOf } from './magmonium-one-magmonium-one-DWeZSPCv.mjs';
|
|
1
|
+
export { A as ACCESS_DOMAINS, l as APP_CONTEXT_REF, m as APP_LINK, n as ASSET_BASE_URL, q as AccordionBodyDirective, s as AccordionComponent, t as AccordionGroupComponent, u as ActionComponent, v as AnimatedGraphsComponent, w as AppCardComponent, x as AppRelationType, y as AppTileComponent, z as AssetStore, C as AssetUrlPipe, D as Assets, E as AuthActivityPageComponent, F as AuthApiService, G as AuthStore, J as AutosizeDirective, K as BadgeComponent, N as BandingComponent, O as BaseArrayInputComponent, P as BaseRootWebComponent, Q as BaseWebComponent, B as ButtonComponent, S as ButtonGroupComponent, U as CALLING_APP_HEADER, V as COMPONENT_INPUT_REGISTRY, W as CardComponent, X as CardWrapperComponent, Y as CarouselComponent, Z as ChartComponent, _ as ChatBubbleComponent, $ as CheckboxGroupComponent, a0 as CheckboxInputComponent, a1 as ClearableInputComponent, a2 as ClipboardService, a3 as ColComponent, a4 as ColorPickerInputComponent, a5 as CommentItemComponent, a6 as CommentsApiService, a7 as CommentsComponent, a8 as CommentsStore, a9 as CompactNumberPipe, aa as ComponentInputComponent, ab as ComponentStepperComponent, ac as ConfigComponent, ad as ConfirmComponent, ae as ContextMenuComponent, af as CustomIconClass, ag as CustomIconEditComponent, ah as DEFAULT_DENIAL, ai as DEFAULT_DOC_DENSITY, aj as DEFAULT_DOC_VARIANT, ak as DEFAULT_FILTER_RANGE_MODE, al as DEFAULT_FILTER_VARIANT, am as DEFAULT_NAV_PARAM, an as DEFAULT_NAV_SEGMENT, ao as DEFAULT_SIZE, ap as DOCK_MIN_PAGE_REMAINDER, aq as DOCS_FOLDER, ar as DOC_ACTION_ICONS, as as DOC_DENSITIES, at as DOC_EDIT_ACTIONS, au as DOC_TOOLBAR_GROUPS, av as DOC_VARIANTS, aw as DashboardCardComponent, ax as DateInputComponent, ay as DatePickerComponent, az as DeviceService, aA as DocComponent, aB as DocEditorComponent, aC as DomService, aD as Domain, aE as DotGridComponent, aF as DragListDirective, aG as DragListItemDirective, aH as DraggableDirective, aI as DropdownInputComponent, aJ as FILTER_GROUP_CONTEXT, aK as FILTER_RANGE_MODES, aL as FILTER_VARIANTS, aM as FLEX_VARIANTS, aN as FOLDER_PICK_LISTENER, aO as FORM_ASSET_FOLDER, aP as FileService, aQ as FileUploadDirective, aR as FileUploadInputComponent, aS as FlexComponent, aT as FlexItemComponent, aU as FormGroupComponent, aV as FrameComponent, aW as FreezeService, aX as GRID_BREAKPOINTS, aY as GetNavService, H as HeaderComponent, aZ as HighlightDirective, a_ as HttpService, a$ as ICON_SOURCE, k as IS_DESIGN_MODE, b0 as IS_SIDE_PANEL, b1 as IconComponent, b2 as ImgComponent, I as InputType, b3 as InstrumentScoreComponent, b4 as InterceptorObservables, b5 as JumbotronComponent, b6 as KeyValueComponent, b7 as LAYOUT_ASSET_FOLDER, b8 as LOGIN_COMPONENT, b9 as LOGIN_STORE, ba as LanguageComponent, bb as ListComponent, bc as LogoComponent, bd as MAG_SOCKET_EVENT, be as MHeroColorDirective, bf as MHeroComponent, M as MODAL_REF, bg as MODAL_STORE_REF, bh as MOUNT_STATIC_SEGMENT, bi as MOUNT_TOKEN, bj as MRefDirective, bk as MStepComponent, bl as MURL_PARAM, bm as MURL_SEP, bn as ManifestEnrichmentService, bo as MarginDirective, bp as MenuComponent, bq as ModalDirective, br as ModalRef, bs as ModalStore, bt as MoneyPipe, bu as MultiRangeInputComponent, bv as MultiselectInputComponent, bw as MurlUrlSerializer, bx as NAV_DEFAULT_MURL, by as NAV_ID_SEP, bz as NAV_MAIN_BUTTONS, bA as NAV_SEGMENT_RE, bB as NAV_STORE_REF, bC as NAV_WC_COMPONENTS, bD as NAV_WIDGET_MAP, bE as NavComponent, bF as NavDetailsComponent, bG as NavHeaderComponent, bH as NavMenuComponent, bI as NavStore, bJ as NavTrailComponent, bK as NothingComponent, bL as NotificationElementComponent, bM as NotificationGroupComponent, bN as NotificationPopupComponent, bO as NotificationService, bP as NotificationStore, bQ as NotificationType, bR as NotificationWidgetComponent, bS as ONE_ASSET_BASE_URL, bT as OPTIONS_SOURCE, bU as OVERLAY_WIDGETS, bV as OneApp, bW as OptionsSourceDirective, bX as OverlayBodyComponent, bY as OverlayRef, bZ as OverlayService, b_ as PLATFORM_BUTTON_NAV_IDS, b$ as PLATFORM_EXTENSIBLE_NAV_IDS, c0 as PLATFORM_NAV_MAP, c1 as PLATFORM_ROOT_CHILDREN, c2 as PaddingDirective, c3 as PaginationComponent, c4 as PanelComponent, c5 as PercentagePipe, c6 as PlaygroundComponent, c7 as PositionDirective, c8 as PwaInstallComponent, c9 as RECENT_SEARCH_LIMIT, ca as REMOTE_PAGE_RELOAD, cb as ROOT_NAV, cc as RadioGroupComponent, cd as RadioInputComponent, R as RangeInputComponent, ce as RatingInputComponent, cf as ReactiveElementComponent, cg as RemoteComponent, ch as RemoteLoaderService, ci as ResizeElementComponent, cj as RouteContainer, ck as RowComponent, cl as SEARCH_QUERY, cm as SEARCH_RESULTS_EVENT, cn as SECTION_ACCORDION_GROUP, co as SECTION_FORM_CONTEXT, cp as SECTION_TABLE_VARIANTS, cq as SHARED_ICONS, cr as SIZE_CONTEXT, cs as SPACING_INWARD, ct as ScoreComponent, cu as ScrollComponent, cv as ScrollService, cw as SearchPanelComponent, cx as SearchStore, cy as SearchUserPanelComponent, cz as SectionAccordionDirective, cA as SectionAccordionGroupDirective, cB as SectionBackComponent, cC as SectionBadgesComponent, cD as SectionButtonGroupComponent, cE as SectionCardComponent, cF as SectionCarouselComponent, cG as SectionComponent, cH as SectionFilterComponent, cI as SectionFilterGroupComponent, cJ as SectionFilterMenuComponent, cK as SectionFilterPanelComponent, cL as SectionFilterRangePanelComponent, cM as SectionFooterComponent, cN as SectionFormComponent, cO as SectionFormItemComponent, cP as SectionHeaderComponent, cQ as SectionHeroComponent, cR as SectionPaginationComponent, cS as SectionSearchComponent, cT as SectionStepperComponent, cU as SectionTableCellComponent, cV as SectionTableComponent, cW as SectionTableRowComponent, cX as SectionTableSortPipe, cY as SectionTabsComponent, cZ as SectionToggleComponent, c_ as SectionToggleItemDirective, c$ as SelectableCardInputComponent, d0 as SelectorDirective, d1 as SettingsSearchBarComponent, d2 as SettingsSearchService, d3 as ShapeComponent, d4 as SharedStoreRegistry, d5 as SidePanelDirective, d6 as Size, d7 as SocketStore, d8 as SortComponent, d9 as StatComponent, da as StepComponent, db as StepperComponent, dc as StepsComponent, dd as StorageService, de as StrokeLinecap, df as StrokeLinejoin, dg as SummaryComponent, dh as SvgGeneratorComponent, di as SvgGeneratorService, dj as SvgService, dk as TOTAL_COLUMNS, dl as TRANSLATION_SOURCE, dm as TableComponent, dn as TechnicalMeterComponent, dp as TextInputComponent, j as TextOutputComponent, dq as TextareaInputComponent, dr as ThemeComponent, ds as ThemeDataService, dt as ThemeService, du as ThemeStore, dv as TimeAgoPipe, dw as TimelineComponent, dx as ToggleButtonComponent, dy as ToggleInputComponent, dz as ToggleRadioInputComponent, dA as ToolTipDirective, dB as TooltipComponent, T as TranslatePipe, dC as TranslateService, dD as TreeGridComponent, dE as URL_SEP, dF as USER_STORE_REF, dG as USER_TAB_MAP, dH as UniverseComponent, dI as UserApiService, dJ as UserAvatarComponent, dK as UserComponent, dL as UserNavComponent, dM as UserSettingsComponent, dN as UserStore, dO as WC_BUNDLE, dP as WC_NAVIGATE_EVENT, dQ as WC_ROUTE_CHANGED_EVENT, dR as WC_SEARCH_GROUPS, dS as WIN_USER_TAB_HOOK, dT as WIN_USER_TAB_KEY, dU as WatermarkComponent, dV as WcRouterStore, dW as WrapperInputComponent, dX as anchorNavId, dY as applyColorsToElement, dZ as applyDocEdit, d_ as assetOptions, d$ as bootstrapMagApp, e0 as bootstrapPwaInstall, e1 as buildWcBaseUrl, e2 as calculateLuminance, e3 as calculateRanks, e4 as cellText, e5 as checkDoc, e6 as checkFilterCondition, e7 as childNavId, e8 as claimDenial, e9 as classListSignal, ea as coerceSize, eb as cornerEdge, ec as cornerSide, ed as createMap, ee as createPlatformNavMap, ef as definedWcTierOf, eg as deriveAvatarGradient, eh as deriveContrastColor, ei as deriveOppositeColor, ej as derivePropertyName, ek as docActionKey, el as docAssetCandidates, em as docProblemKey, en as docRemotePath, eo as emailValidation, ep as evaluate, eq as evaluateBool, er as fieldBoolean, es as fieldNumber, et as fieldString, eu as filterHoldsList, ev as filterHoldsOneBound, ew as filterHoldsOptions, ex as filterHoldsRange, ey as filterList, ez as filterNumber, eA as filterNumberList, eB as filterOne, eC as filterPanelOf, eD as filterPanelWidth, eE as filterRange, eF as filterTreeGridRows, eG as filterValueList, eH as filterValues, eI as flattenTreeGridRows, eJ as formatBadgeCount, eK as fullName, eL as generateClipPath, eM as generateTransform, eN as getClassList, eO as getProperty, eP as getScrollParent, eQ as getTierFromPreviewPath, eR as getTreeGridRow, eS as getUniqueId, eT as getValue, eU as hasErrorComputed, eV as hexToRgb, eW as hslToRgb, eX as initMagmoniumApp, eY as initialNotificationState, eZ as initialState, e_ as initials, e$ as injectAuthenticate, f0 as injectDefaultDenial, f1 as injectInstallApp, f2 as injectParentSize, f3 as injectScrollSticky, f4 as isBootRedirect, f5 as isButtonName, f6 as isCancelledComputed, f7 as isExtensiblePlatformNavId, f8 as isJson, f9 as isLoadingComputed, fa as isLocalhost, fb as isNavInstanceConfig, fc as isNavMenuConfig, fd as isNavRowsConfig, fe as isNavVisibilityConfig, ff as isPlatformNavId, fg as isSize, fh as isTierPreview, fi as isUrlLocalhost, fj as isValidNavId, fk as isValidNavSegment, fl as isWebComponent, fm as linkToId, fn as linkToNav, fo as loadingActions, fp as mInterceptor, fq as manualValidation, fr as matchFieldValidation, fs as matchMount, ft as maxLengthValidation, fu as maxValidation, fv as mergePlatformNav, fw as mergeUnique, fx as mergeUniqueBy, fy as mergeUniqueWith, fz as minAgeValidation, fA as minLengthValidation, fB as minValidation, fC as miniMarkToHtml, fD as mountFor, fE as mountPatternProblem, fF as mountPatternText, fG as mountSegmentOf, fH as mountTokenOf, fI as navIdChain, fJ as navIdFor, fK as navIdSegment, fL as navIdToRoutePath, fM as navIdToSegments, fN as navParamOf, fO as navTailMatcher, fP as navToId, fQ as navVisibilityGuard, fR as nextSectionTableSort, fS as normalizeAssetOptions, fT as offsetOfLine, fU as parentNavId, fV as parseAddress, fW as parseColor, fX as parseMountPattern, fY as parsePatternNames, fZ as patternValidation, f_ as patternsValidation, f$ as permissionRefusal, g0 as platformNavWidgets, g1 as presetDefaultOption, g2 as privateGuard, g3 as processImageToSvg, g4 as provideAppContext, g5 as provideMagAppConfig, g6 as provideMagWcConfig, g7 as provideMagWcRoutes, g8 as provideModalComponents, g9 as provideMurlUrlSerializer, ga as provideNavWidgets, gb as provideOverlayWidgets, gc as providePlatformNavWidgets, gd as provideSearch, ge as provideSizeContext, gf as provideUserTabs, gg as publicGuard, gh as readFieldPatterns, gi as recordDefinedWcTier, gj as remoteOutletRoute, gk as renderAddress, gl as renderDocument, gm as requiredValidation, gn as resolveConfigAsset, go as resolveIconSize, gp as resolvePallet, gq as resolvePatternRules, gr as resolveSize, gs as resolveSpacing, gt as rgbToHex, gu as rgbToHsl, gv as rowHasChildren, gw as samePatterns, gx as sectionTableColumnId, gy as sectionTableColumnWidths, gz as sectionTableFrozenCount, gA as segmentsToNavId, gB as setProperty, gC as setTreeGridChildren, gD as setWcTier, gE as settingsWidgets, gF as shouldShowBadge, gG as sortSectionTableRows, gH as splitNavId, gI as splitOnMatch, gJ as stringToColor, gK as tailRouteOf, gL as toAttrBool, gM as toAttrNumber, gN as toCssLength, gO as toHostNavId, gP as toLength, gQ as toLocalNavId, gR as toggleTreeGridRow, gS as unfetchedPlatformNav, gT as ungroupedDocActions, gU as urlValidation, gV as wcTierOf } from './magmonium-one-magmonium-one-DdYdOA7f.mjs';
|
|
2
2
|
//# sourceMappingURL=magmonium-one.mjs.map
|
package/package.json
CHANGED
package/types/magmonium-one.d.ts
CHANGED
|
@@ -1358,7 +1358,7 @@ declare class DraggableDirective {
|
|
|
1358
1358
|
readonly max: _angular_core.InputSignal<Position | undefined>;
|
|
1359
1359
|
readonly dragStart: _angular_core.OutputEmitterRef<void>;
|
|
1360
1360
|
readonly dragEnd: _angular_core.OutputEmitterRef<void>;
|
|
1361
|
-
protected readonly cursor: _angular_core.Signal<"
|
|
1361
|
+
protected readonly cursor: _angular_core.Signal<"move" | "ew-resize" | "ns-resize">;
|
|
1362
1362
|
protected state: DraggableState;
|
|
1363
1363
|
set pos(position: Position);
|
|
1364
1364
|
/**
|
|
@@ -2849,6 +2849,11 @@ type DropdownOption<V extends DropdownValue = string> = {
|
|
|
2849
2849
|
/** Icon name, used by the Fields that render an option as a card. */
|
|
2850
2850
|
icon?: string;
|
|
2851
2851
|
disabled?: boolean;
|
|
2852
|
+
/**
|
|
2853
|
+
* The row a Field starts on when it holds no value of its own. One per list;
|
|
2854
|
+
* the Field's own value outranks it (`presetDefaultOption`).
|
|
2855
|
+
*/
|
|
2856
|
+
default?: boolean;
|
|
2852
2857
|
/**
|
|
2853
2858
|
* Authored text rather than an i18n key. A key is looked up by splitting on
|
|
2854
2859
|
* `.`, so a path like `order.name` would resolve to the `order` key and
|
|
@@ -2962,7 +2967,7 @@ declare class BaseTextInputComponent<T extends Input = TextInput> extends BaseIn
|
|
|
2962
2967
|
private autofocused;
|
|
2963
2968
|
constructor();
|
|
2964
2969
|
readonly isFocused: _angular_core.WritableSignal<boolean>;
|
|
2965
|
-
readonly iconColor: _angular_core.Signal<"error" | "
|
|
2970
|
+
readonly iconColor: _angular_core.Signal<"error" | "focus" | "border">;
|
|
2966
2971
|
protected readonly setValue: (value: string) => void;
|
|
2967
2972
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseTextInputComponent<any>, never>;
|
|
2968
2973
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BaseTextInputComponent<any>, never, never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
@@ -3398,7 +3403,7 @@ declare class SectionFilterGroupComponent {
|
|
|
3398
3403
|
readonly paddingX: _angular_core.InputSignal<boolean | undefined>;
|
|
3399
3404
|
readonly paddingY: _angular_core.InputSignal<boolean | undefined>;
|
|
3400
3405
|
readonly maxWidth: _angular_core.InputSignal<string | undefined>;
|
|
3401
|
-
readonly align: _angular_core.InputSignal<"
|
|
3406
|
+
readonly align: _angular_core.InputSignal<"left" | "right" | "center" | undefined>;
|
|
3402
3407
|
readonly config: _angular_core.InputSignal<SectionFilterGroupConfig | undefined>;
|
|
3403
3408
|
/**
|
|
3404
3409
|
* The whole group's selection, keyed by each Filter's `name` — one key per
|
|
@@ -3416,7 +3421,7 @@ declare class SectionFilterGroupComponent {
|
|
|
3416
3421
|
protected readonly resolvedPadding: _angular_core.Signal<boolean>;
|
|
3417
3422
|
protected readonly resolvedPaddingX: _angular_core.Signal<boolean>;
|
|
3418
3423
|
protected readonly resolvedPaddingY: _angular_core.Signal<boolean>;
|
|
3419
|
-
protected readonly resolvedAlign: _angular_core.Signal<"
|
|
3424
|
+
protected readonly resolvedAlign: _angular_core.Signal<"left" | "right" | "center">;
|
|
3420
3425
|
protected readonly resolvedMaxWidth: _angular_core.Signal<string | undefined>;
|
|
3421
3426
|
protected readonly noBorder: _angular_core.Signal<boolean>;
|
|
3422
3427
|
/**
|
|
@@ -3478,7 +3483,7 @@ declare class SectionStepperComponent implements OnDestroy {
|
|
|
3478
3483
|
readonly lg: _angular_core.InputSignal<number | undefined>;
|
|
3479
3484
|
readonly xl: _angular_core.InputSignal<number | undefined>;
|
|
3480
3485
|
readonly xxl: _angular_core.InputSignal<number | undefined>;
|
|
3481
|
-
readonly orientation: _angular_core.InputSignal<"
|
|
3486
|
+
readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical" | undefined>;
|
|
3482
3487
|
readonly stepChange: _angular_core.OutputEmitterRef<number>;
|
|
3483
3488
|
private readonly isCompact;
|
|
3484
3489
|
private readonly mediaMatched;
|
|
@@ -3504,7 +3509,7 @@ declare class SectionStepperComponent implements OnDestroy {
|
|
|
3504
3509
|
declare class SectionBadgesComponent {
|
|
3505
3510
|
readonly wrap: _angular_core.InputSignal<boolean>;
|
|
3506
3511
|
readonly border: _angular_core.InputSignal<boolean>;
|
|
3507
|
-
readonly align: _angular_core.InputSignal<"
|
|
3512
|
+
readonly align: _angular_core.InputSignal<"left" | "right" | "center">;
|
|
3508
3513
|
private readonly sectionContext;
|
|
3509
3514
|
protected readonly hasBorder: _angular_core.Signal<boolean>;
|
|
3510
3515
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SectionBadgesComponent, never>;
|
|
@@ -3578,7 +3583,7 @@ declare class SectionToggleComponent<T extends SectionToggleItem = SectionToggle
|
|
|
3578
3583
|
|
|
3579
3584
|
declare class SectionFooterComponent {
|
|
3580
3585
|
readonly sticky: _angular_core.InputSignal<boolean>;
|
|
3581
|
-
readonly align: _angular_core.InputSignal<"
|
|
3586
|
+
readonly align: _angular_core.InputSignal<"left" | "right" | "center">;
|
|
3582
3587
|
private readonly scrollSticky;
|
|
3583
3588
|
protected readonly isSticky: _angular_core.Signal<boolean>;
|
|
3584
3589
|
private readonly sectionContext;
|
|
@@ -3622,7 +3627,7 @@ declare class SectionPaginationComponent {
|
|
|
3622
3627
|
* Entries that are not positive numbers drop rather than throw.
|
|
3623
3628
|
*/
|
|
3624
3629
|
readonly perPageOptions: _angular_core.InputSignal<string | undefined>;
|
|
3625
|
-
readonly align: _angular_core.InputSignal<"
|
|
3630
|
+
readonly align: _angular_core.InputSignal<"left" | "right" | "center">;
|
|
3626
3631
|
readonly showPerPage: _angular_core.InputSignal<boolean>;
|
|
3627
3632
|
/** Hides the band outright once everything fits one page. */
|
|
3628
3633
|
readonly hideOnSinglePage: _angular_core.InputSignal<boolean>;
|
|
@@ -3869,7 +3874,7 @@ declare class SectionComponent extends ConfigComponent<SectionConfig> {
|
|
|
3869
3874
|
readonly align: _angular_core.InputSignal<SectionAlign | undefined>;
|
|
3870
3875
|
readonly alignX: _angular_core.InputSignal<GridAlignX | undefined>;
|
|
3871
3876
|
readonly alignY: _angular_core.InputSignal<GridAlignY | undefined>;
|
|
3872
|
-
readonly size: _angular_core.InputSignal<"sm" | "md" | "lg" |
|
|
3877
|
+
readonly size: _angular_core.InputSignal<Size | "sm" | "md" | "lg" | undefined>;
|
|
3873
3878
|
private readonly parentSize;
|
|
3874
3879
|
readonly resolvedSize: _angular_core.Signal<Size>;
|
|
3875
3880
|
protected readonly sizeLength: _angular_core.Signal<string>;
|
|
@@ -3938,8 +3943,8 @@ declare class SectionHeaderComponent {
|
|
|
3938
3943
|
readonly visibilityRule: _angular_core.InputSignal<((key: string, data?: unknown) => boolean) | undefined>;
|
|
3939
3944
|
readonly disableRule: _angular_core.InputSignal<((key: string, data?: unknown) => boolean) | undefined>;
|
|
3940
3945
|
readonly extraData: _angular_core.InputSignal<unknown>;
|
|
3941
|
-
readonly align: _angular_core.InputSignal<"
|
|
3942
|
-
readonly alignment: _angular_core.Signal<"
|
|
3946
|
+
readonly align: _angular_core.InputSignal<"left" | "right" | "center" | undefined>;
|
|
3947
|
+
readonly alignment: _angular_core.Signal<"left" | "right" | "center">;
|
|
3943
3948
|
readonly showBack: _angular_core.InputSignal<boolean>;
|
|
3944
3949
|
readonly actionButton: _angular_core.InputSignal<string | undefined>;
|
|
3945
3950
|
readonly actionLabel: _angular_core.InputSignal<string | undefined>;
|
|
@@ -3955,7 +3960,7 @@ declare class SectionHeaderComponent {
|
|
|
3955
3960
|
protected readonly sidepanel: _angular_core.Signal<boolean>;
|
|
3956
3961
|
protected readonly noBorder: _angular_core.Signal<boolean>;
|
|
3957
3962
|
protected readonly resolvedMaxWidth: _angular_core.Signal<string | undefined>;
|
|
3958
|
-
protected readonly boxAlign: _angular_core.Signal<"
|
|
3963
|
+
protected readonly boxAlign: _angular_core.Signal<"left" | "right" | "center">;
|
|
3959
3964
|
protected readonly iconBox: _angular_core.Signal<string>;
|
|
3960
3965
|
protected readonly isSticky: _angular_core.Signal<boolean>;
|
|
3961
3966
|
protected readonly hasMenu: _angular_core.Signal<boolean>;
|
|
@@ -3996,7 +4001,7 @@ declare class SectionButtonGroupComponent extends ConfigComponent<SectionButtonG
|
|
|
3996
4001
|
readonly vertical: _angular_core.InputSignal<boolean | undefined>;
|
|
3997
4002
|
readonly align: _angular_core.InputSignal<ConfigAlign>;
|
|
3998
4003
|
readonly variant: _angular_core.InputSignal<"spaced" | "joined" | undefined>;
|
|
3999
|
-
readonly size: _angular_core.InputSignal<"sm" | "md" | "lg" |
|
|
4004
|
+
readonly size: _angular_core.InputSignal<Size | "sm" | "md" | "lg" | undefined>;
|
|
4000
4005
|
readonly fullWidth: _angular_core.InputSignal<boolean | undefined>;
|
|
4001
4006
|
private readonly parentSize;
|
|
4002
4007
|
readonly resolvedSize: _angular_core.Signal<Size>;
|
|
@@ -4004,7 +4009,7 @@ declare class SectionButtonGroupComponent extends ConfigComponent<SectionButtonG
|
|
|
4004
4009
|
protected readonly resolvedFullWidth: _angular_core.Signal<boolean>;
|
|
4005
4010
|
protected readonly resolvedVertical: _angular_core.Signal<boolean>;
|
|
4006
4011
|
protected readonly resolvedVariant: _angular_core.Signal<"spaced" | "joined">;
|
|
4007
|
-
protected readonly resolvedAlign: _angular_core.Signal<"
|
|
4012
|
+
protected readonly resolvedAlign: _angular_core.Signal<"left" | "right" | "center" | "top" | "bottom">;
|
|
4008
4013
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SectionButtonGroupComponent, never>;
|
|
4009
4014
|
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>;
|
|
4010
4015
|
}
|
|
@@ -5013,6 +5018,7 @@ declare class DropdownInputComponent extends BaseDropdownComponent implements Fo
|
|
|
5013
5018
|
protected readonly selectedValues: _angular_core.Signal<readonly DropdownValue[]>;
|
|
5014
5019
|
protected readonly setValue: (value: DropdownValue | undefined) => void;
|
|
5015
5020
|
protected selectOption(option: DropdownOption<DropdownValue>): void;
|
|
5021
|
+
constructor();
|
|
5016
5022
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownInputComponent, never>;
|
|
5017
5023
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownInputComponent, "m-dropdown-input", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
5018
5024
|
}
|
|
@@ -5023,6 +5029,7 @@ declare class MultiselectInputComponent extends BaseDropdownComponent implements
|
|
|
5023
5029
|
protected readonly multiple = true;
|
|
5024
5030
|
protected readonly selectedValues: _angular_core.Signal<readonly DropdownValue[]>;
|
|
5025
5031
|
protected readonly setValue: (value: DropdownValue[] | undefined) => void;
|
|
5032
|
+
constructor();
|
|
5026
5033
|
protected selectOption(option: DropdownOption<DropdownValue>): void;
|
|
5027
5034
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MultiselectInputComponent, never>;
|
|
5028
5035
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MultiselectInputComponent, "m-multiselect-input", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
@@ -5184,6 +5191,7 @@ type AssetOption = {
|
|
|
5184
5191
|
label: string;
|
|
5185
5192
|
icon?: string;
|
|
5186
5193
|
disabled?: boolean;
|
|
5194
|
+
default?: boolean;
|
|
5187
5195
|
};
|
|
5188
5196
|
declare function normalizeAssetOptions(data: AssetOption[] | AssetOption[][] | undefined): DropdownOption[];
|
|
5189
5197
|
/**
|
|
@@ -5204,6 +5212,17 @@ declare function normalizeAssetOptions(data: AssetOption[] | AssetOption[][] | u
|
|
|
5204
5212
|
* file. Must be called from an injection context.
|
|
5205
5213
|
*/
|
|
5206
5214
|
declare function assetOptions(name?: () => string | undefined): Signal<DropdownOption[]>;
|
|
5215
|
+
/**
|
|
5216
|
+
* Starts a Field on its list's `default` row when it holds no value of its own
|
|
5217
|
+
* (m-one-ui CONTEXT.md OptionSet). The Field's own value — its config, its form
|
|
5218
|
+
* data — outranks the row, so a value already held is kept.
|
|
5219
|
+
*
|
|
5220
|
+
* Each marked row is consulted once: a User who clears the pick is not handed
|
|
5221
|
+
* it back, and only a list that moves its mark offers the new row. A disabled
|
|
5222
|
+
* row is never preset — the User could not have picked it either. Must be
|
|
5223
|
+
* called from an injection context.
|
|
5224
|
+
*/
|
|
5225
|
+
declare function presetDefaultOption(options: () => readonly DropdownOption<DropdownValue>[], current: () => unknown, apply: (value: DropdownValue) => void): void;
|
|
5207
5226
|
|
|
5208
5227
|
interface InputModel {
|
|
5209
5228
|
placeholder?: string;
|
|
@@ -5379,6 +5398,8 @@ declare class SelectableCardInputComponent extends BaseInputComponent<Selectable
|
|
|
5379
5398
|
readonly value: _angular_core.ModelSignal<string | string[] | undefined>;
|
|
5380
5399
|
private readonly assetOptions;
|
|
5381
5400
|
protected readonly cardOptions: Signal<DropdownOption[]>;
|
|
5401
|
+
private readonly presetOptions;
|
|
5402
|
+
constructor();
|
|
5382
5403
|
private readonly isDesignMode;
|
|
5383
5404
|
protected readonly items: Signal<SelectableCardItem[]>;
|
|
5384
5405
|
protected readonly labels: Signal<Record<string, string>>;
|
|
@@ -5495,7 +5516,7 @@ declare class FileUploadInputComponent extends BaseInputComponent<FileUploadInpu
|
|
|
5495
5516
|
private readonly editorSize;
|
|
5496
5517
|
private readonly maxSize;
|
|
5497
5518
|
protected readonly isLocked: _angular_core.Signal<boolean>;
|
|
5498
|
-
protected readonly dropZoneIconColor: _angular_core.Signal<"error" | "
|
|
5519
|
+
protected readonly dropZoneIconColor: _angular_core.Signal<"error" | "focus" | "border">;
|
|
5499
5520
|
/** Object URLs of the previews on show, keyed by what the value holds. */
|
|
5500
5521
|
private readonly previews;
|
|
5501
5522
|
protected readonly heldFiles: _angular_core.Signal<HeldFile[]>;
|
|
@@ -5802,17 +5823,17 @@ declare class SectionFormComponent<T extends object = Record<string, unknown>> e
|
|
|
5802
5823
|
protected readonly resolvesConfigAsset = false;
|
|
5803
5824
|
readonly variant: _angular_core.InputSignal<string | undefined>;
|
|
5804
5825
|
readonly maxWidth: _angular_core.InputSignal<string | undefined>;
|
|
5805
|
-
readonly heightMode: _angular_core.InputSignal<"
|
|
5826
|
+
readonly heightMode: _angular_core.InputSignal<"full" | "fixed" | undefined>;
|
|
5806
5827
|
readonly maxHeight: _angular_core.InputSignal<string | number | undefined>;
|
|
5807
5828
|
readonly height: _angular_core.InputSignal<string | number | undefined>;
|
|
5808
|
-
readonly align: _angular_core.InputSignal<"
|
|
5829
|
+
readonly align: _angular_core.InputSignal<"left" | "right" | "center" | undefined>;
|
|
5809
5830
|
readonly padding: _angular_core.InputSignal<string | number | undefined>;
|
|
5810
5831
|
readonly paddingX: _angular_core.InputSignal<string | number | undefined>;
|
|
5811
5832
|
readonly paddingY: _angular_core.InputSignal<string | number | undefined>;
|
|
5812
5833
|
readonly margin: _angular_core.InputSignal<string | number | undefined>;
|
|
5813
5834
|
readonly marginX: _angular_core.InputSignal<string | number | undefined>;
|
|
5814
5835
|
readonly marginY: _angular_core.InputSignal<string | number | undefined>;
|
|
5815
|
-
readonly size: _angular_core.InputSignal<"sm" | "md" | "lg" |
|
|
5836
|
+
readonly size: _angular_core.InputSignal<Size | "sm" | "md" | "lg" | undefined>;
|
|
5816
5837
|
readonly autofocus: _angular_core.InputSignal<boolean>;
|
|
5817
5838
|
data: _angular_core.InputSignal<T | undefined>;
|
|
5818
5839
|
readonly dataChange: _angular_core.OutputEmitterRef<T>;
|
|
@@ -5854,7 +5875,7 @@ declare class SectionFormComponent<T extends object = Record<string, unknown>> e
|
|
|
5854
5875
|
protected readonly handleSubmit: (event: Event) => void;
|
|
5855
5876
|
readonly resolvedSize: _angular_core.Signal<Size>;
|
|
5856
5877
|
protected readonly sizeLength: _angular_core.Signal<string | null>;
|
|
5857
|
-
readonly resolvedAlign: _angular_core.Signal<"
|
|
5878
|
+
readonly resolvedAlign: _angular_core.Signal<"left" | "right" | "center">;
|
|
5858
5879
|
readonly resolvedVariant: _angular_core.Signal<string | undefined>;
|
|
5859
5880
|
readonly resolvedMaxWidth: _angular_core.Signal<string | number | undefined>;
|
|
5860
5881
|
private readonly resolvedPadding;
|
|
@@ -5866,7 +5887,7 @@ declare class SectionFormComponent<T extends object = Record<string, unknown>> e
|
|
|
5866
5887
|
readonly resolvedMinHeight: _angular_core.Signal<string | undefined>;
|
|
5867
5888
|
readonly resolvedMinWidth: _angular_core.Signal<string | undefined>;
|
|
5868
5889
|
readonly resolvedMaxHeight: _angular_core.Signal<string | number | undefined>;
|
|
5869
|
-
readonly resolvedHeightMode: _angular_core.Signal<"
|
|
5890
|
+
readonly resolvedHeightMode: _angular_core.Signal<"full" | "fixed" | undefined>;
|
|
5870
5891
|
readonly isFullHeight: _angular_core.Signal<boolean>;
|
|
5871
5892
|
readonly cssMaxHeight: _angular_core.Signal<string | undefined>;
|
|
5872
5893
|
constructor();
|
|
@@ -6144,7 +6165,7 @@ declare class StepperComponent extends ConfigComponent<Stepper> {
|
|
|
6144
6165
|
constructor();
|
|
6145
6166
|
protected readonly isReadonly: _angular_core.Signal<boolean>;
|
|
6146
6167
|
protected readonly stepperDisabled: _angular_core.Signal<boolean>;
|
|
6147
|
-
protected readonly orientation: _angular_core.Signal<"
|
|
6168
|
+
protected readonly orientation: _angular_core.Signal<"vertical" | "compact">;
|
|
6148
6169
|
protected readonly currentStepLabel: _angular_core.Signal<string>;
|
|
6149
6170
|
protected readonly nextStepLabel: _angular_core.Signal<string>;
|
|
6150
6171
|
protected readonly isLastStep: _angular_core.Signal<boolean>;
|
|
@@ -6241,7 +6262,7 @@ declare class ComponentStepperComponent {
|
|
|
6241
6262
|
components: _angular_core.InputSignal<Type<unknown>[]>;
|
|
6242
6263
|
labels: _angular_core.InputSignal<string[] | undefined>;
|
|
6243
6264
|
currentIndex: _angular_core.InputSignal<number>;
|
|
6244
|
-
variant: _angular_core.InputSignal<"
|
|
6265
|
+
variant: _angular_core.InputSignal<"horizontal" | "vertical">;
|
|
6245
6266
|
context: _angular_core.InputSignal<Record<string, unknown> | undefined>;
|
|
6246
6267
|
readonly stepChange: _angular_core.OutputEmitterRef<number>;
|
|
6247
6268
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ComponentStepperComponent, never>;
|
|
@@ -7150,7 +7171,7 @@ type DocAiPhase = 'idle' | 'asking' | 'question' | 'outline' | 'writing' | 'prop
|
|
|
7150
7171
|
*/
|
|
7151
7172
|
declare class DocEditorComponent implements ControlValueAccessor {
|
|
7152
7173
|
protected readonly groups: readonly _magmonium_one.DocToolbarGroup[];
|
|
7153
|
-
protected readonly icons: Record<"code" | "
|
|
7174
|
+
protected readonly icons: Record<"code" | "list" | "table" | "bold" | "italic" | "strike" | "heading" | "quote" | "link", string>;
|
|
7154
7175
|
protected readonly docActionKey: typeof docActionKey;
|
|
7155
7176
|
private readonly translate;
|
|
7156
7177
|
protected readonly value: _angular_core.WritableSignal<string>;
|
|
@@ -8426,7 +8447,7 @@ declare class ConfirmComponent {
|
|
|
8426
8447
|
* every confirmation drawn before this.
|
|
8427
8448
|
*/
|
|
8428
8449
|
params: _angular_core.InputSignal<Record<string, string>>;
|
|
8429
|
-
type: _angular_core.InputSignal<"warning" | "success" | "
|
|
8450
|
+
type: _angular_core.InputSignal<"warning" | "success" | "danger" | "info">;
|
|
8430
8451
|
/**
|
|
8431
8452
|
* Whether the question can be refused. `yes` is an acknowledgement — the one
|
|
8432
8453
|
* button commits and there is nothing else to press — and stays the default,
|
|
@@ -11269,5 +11290,5 @@ interface AuthResult {
|
|
|
11269
11290
|
}
|
|
11270
11291
|
declare function injectAuthenticate(): () => Promise<AuthResult>;
|
|
11271
11292
|
|
|
11272
|
-
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, 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, 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, PaddingDirective, PaginationComponent, PanelComponent, PercentagePipe, PlaygroundComponent, 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, anchorNavId, applyColorsToElement, applyDocEdit, assetOptions, bootstrapMagApp, bootstrapPwaInstall, buildWcBaseUrl, calculateLuminance, calculateRanks, cellText, checkDoc, checkFilterCondition, childNavId, claimDenial, classListSignal, coerceSize, cornerEdge, cornerSide, createMap, createPlatformNavMap, definedWcTierOf, deriveAvatarGradient, deriveContrastColor, deriveOppositeColor, derivePropertyName, docActionKey, docAssetCandidates, docProblemKey, docRemotePath, emailValidation, evaluate, evaluateBool, 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, platformNavWidgets, privateGuard, processImageToSvg, provideAppContext, provideMagAppConfig, provideMagWcConfig, provideMagWcRoutes, provideModalComponents, provideMurlUrlSerializer, provideNavWidgets, provideOverlayWidgets, providePlatformNavWidgets, 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, setWcTier, settingsWidgets, shouldShowBadge, sortSectionTableRows, splitNavId, splitOnMatch, stringToColor, tailRouteOf, toAttrBool, toAttrNumber, toCssLength, toHostNavId, toLength, toLocalNavId, toggleTreeGridRow, unfetchedPlatformNav, ungroupedDocActions, urlValidation, wcTierOf };
|
|
11293
|
+
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, 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, 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, PaddingDirective, PaginationComponent, PanelComponent, PercentagePipe, PlaygroundComponent, 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, anchorNavId, applyColorsToElement, applyDocEdit, assetOptions, bootstrapMagApp, bootstrapPwaInstall, buildWcBaseUrl, calculateLuminance, calculateRanks, cellText, checkDoc, checkFilterCondition, childNavId, claimDenial, classListSignal, coerceSize, cornerEdge, cornerSide, createMap, createPlatformNavMap, definedWcTierOf, deriveAvatarGradient, deriveContrastColor, deriveOppositeColor, derivePropertyName, docActionKey, docAssetCandidates, docProblemKey, docRemotePath, emailValidation, evaluate, evaluateBool, 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, platformNavWidgets, presetDefaultOption, privateGuard, processImageToSvg, provideAppContext, provideMagAppConfig, provideMagWcConfig, provideMagWcRoutes, provideModalComponents, provideMurlUrlSerializer, provideNavWidgets, provideOverlayWidgets, providePlatformNavWidgets, 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, setWcTier, settingsWidgets, shouldShowBadge, sortSectionTableRows, splitNavId, splitOnMatch, stringToColor, tailRouteOf, toAttrBool, toAttrNumber, toCssLength, toHostNavId, toLength, toLocalNavId, toggleTreeGridRow, unfetchedPlatformNav, ungroupedDocActions, urlValidation, wcTierOf };
|
|
11273
11294
|
export type { Accordion, AccordionGroup, AccordionVariant, ActionNotification, Align, AnimatedGraphConfig, AnimatedGraphCurveInput, AppCardData, AppCardInputs, AppCardVariant, AppContextRef, AppHint, AppManifest, AppPermission, AppRelation, AppRelationView, 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, 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, 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, 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 };
|