@magmonium/one 0.4.14 → 0.4.16
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/assets/i18n/en.json +4 -0
- package/assets/i18n/links.json +2 -1
- package/fesm2022/{magmonium-one-image-editor-DN8v0YOv.mjs → magmonium-one-image-editor-Ji-EUYE2.mjs} +2 -2
- package/fesm2022/{magmonium-one-image-editor-DN8v0YOv.mjs.map → magmonium-one-image-editor-Ji-EUYE2.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-magmonium-one-DWeZSPCv.mjs → magmonium-one-magmonium-one-BRKZkOoZ.mjs} +5861 -5529
- package/fesm2022/magmonium-one-magmonium-one-BRKZkOoZ.mjs.map +1 -0
- package/fesm2022/{magmonium-one-otp-CpjpaJdi.mjs → magmonium-one-otp-DfznSzqp.mjs} +2 -2
- package/fesm2022/{magmonium-one-otp-CpjpaJdi.mjs.map → magmonium-one-otp-DfznSzqp.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-password-CX1OjX5P.mjs → magmonium-one-password-7PE_7BpB.mjs} +2 -2
- package/fesm2022/{magmonium-one-password-CX1OjX5P.mjs.map → magmonium-one-password-7PE_7BpB.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-toggle-zniJyl09.mjs → magmonium-one-toggle-BD2dKXSi.mjs} +2 -2
- package/fesm2022/{magmonium-one-toggle-zniJyl09.mjs.map → magmonium-one-toggle-BD2dKXSi.mjs.map} +1 -1
- package/fesm2022/magmonium-one.mjs +1 -1
- package/package.json +1 -1
- package/types/magmonium-one.d.ts +138 -12
- 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-BRKZkOoZ.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-DfznSzqp.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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AY,CAAC,EAAA,eAAA,EAC3C,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,+qEAAA,CAAA,EAAA;oGAIQ,UAAU,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"magmonium-one-otp-DfznSzqp.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,CAA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A,EAAA,MAAA,EAAA,CAAA,+qEAAA,CAAA,EAAA,YAAA,EAAA,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-7PE_7BpB.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-BRKZkOoZ.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-7PE_7BpB.mjs.map
|
package/fesm2022/{magmonium-one-password-CX1OjX5P.mjs.map → magmonium-one-password-7PE_7BpB.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-password-
|
|
1
|
+
{"version":3,"file":"magmonium-one-password-7PE_7BpB.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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EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAIlE,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBA/ClC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EAAA,QAAA,EAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCT,EAAA,CAAA,EAAA,OAAA,EACQ,CAAC,cAAc,EAAE,mBAAmB,EAAE,eAAe,EAAE,aAAa,CAAC,EAAA,eAAA,EAE7D,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,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-BRKZkOoZ.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-BD2dKXSi.mjs.map
|
package/fesm2022/{magmonium-one-toggle-zniJyl09.mjs.map → magmonium-one-toggle-BD2dKXSi.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-toggle-
|
|
1
|
+
{"version":3,"file":"magmonium-one-toggle-BD2dKXSi.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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iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,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, 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 LOGIN_COMPONENT, ba as LOGIN_STORE, bb as LanguageComponent, bc as ListComponent, bd as LogoComponent, be as MAG_SOCKET_EVENT, bf as MHeroColorDirective, bg as MHeroComponent, M as MODAL_REF, bh as MODAL_STORE_REF, bi as MOUNT_STATIC_SEGMENT, bj as MOUNT_TOKEN, bk as MRefDirective, bl as MStepComponent, bm as MURL_PARAM, bn as MURL_SEP, bo as ManifestEnrichmentService, bp as MarginDirective, bq as MenuComponent, br as ModalDirective, bs as ModalRef, bt as ModalStore, bu as MoneyPipe, bv as MultiRangeInputComponent, bw as MultiselectInputComponent, bx as MurlUrlSerializer, by as NAV_DEFAULT_MURL, bz as NAV_ID_SEP, bA as NAV_MAIN_BUTTONS, bB as NAV_SEGMENT_RE, bC as NAV_STORE_REF, bD as NAV_WC_COMPONENTS, bE as NAV_WIDGET_MAP, bF as NavComponent, bG as NavDetailsComponent, bH as NavHeaderComponent, bI as NavMenuComponent, bJ as NavStore, bK as NavTrailComponent, bL as NothingComponent, bM as NotificationElementComponent, bN as NotificationGroupComponent, bO as NotificationPopupComponent, bP as NotificationService, bQ as NotificationStore, bR as NotificationType, bS as NotificationWidgetComponent, bT as ONE_ASSET_BASE_URL, bU as OPTIONS_SOURCE, bV as OVERLAY_WIDGETS, bW as OneApp, bX as OptionsSourceDirective, bY as OverlayBodyComponent, bZ as OverlayRef, b_ as OverlayService, b$ as PLATFORM_BUTTON_NAV_IDS, c0 as PLATFORM_EXTENSIBLE_NAV_IDS, c1 as PLATFORM_NAV_MAP, c2 as PLATFORM_ROOT_CHILDREN, c3 as PaddingDirective, c4 as PaginationComponent, c5 as PanelComponent, c6 as PercentagePipe, c7 as PlaygroundComponent, c8 as PositionDirective, c9 as PwaInstallComponent, ca as RECENT_SEARCH_LIMIT, cb as REMOTE_PAGE_RELOAD, cc as ROOT_NAV, cd as RadioGroupComponent, ce as RadioInputComponent, R as RangeInputComponent, cf as RatingInputComponent, cg as ReactiveElementComponent, ch as RemoteComponent, ci as RemoteLoaderService, cj as ResizeElementComponent, ck as RouteContainer, cl as RowComponent, cm as SEARCH_QUERY, cn as SEARCH_RESULTS_EVENT, co as SECTION_ACCORDION_GROUP, cp as SECTION_FORM_CONTEXT, cq as SECTION_TABLE_VARIANTS, cr as SHARED_ICONS, cs as SIZE_CONTEXT, ct as SPACING_INWARD, cu as ScoreComponent, cv as ScrollComponent, cw as ScrollService, cx as SearchPanelComponent, cy as SearchStore, cz as SearchUserPanelComponent, cA as SectionAccordionDirective, cB as SectionAccordionGroupDirective, cC as SectionBackComponent, cD as SectionBadgesComponent, cE as SectionButtonGroupComponent, cF as SectionCardComponent, cG as SectionCarouselComponent, cH as SectionComponent, cI as SectionFilterComponent, cJ as SectionFilterGroupComponent, cK as SectionFilterMenuComponent, cL as SectionFilterPanelComponent, cM as SectionFilterRangePanelComponent, cN as SectionFooterComponent, cO as SectionFormComponent, cP as SectionFormItemComponent, cQ as SectionHeaderComponent, cR as SectionHeroComponent, cS as SectionPaginationComponent, cT as SectionSearchComponent, cU as SectionStepperComponent, cV as SectionTableCellComponent, cW as SectionTableComponent, cX as SectionTableRowComponent, cY as SectionTableSortPipe, cZ as SectionTabsComponent, c_ as SectionToggleComponent, c$ as SectionToggleItemDirective, d0 as SelectableCardInputComponent, d1 as SelectorDirective, d2 as SettingsSearchBarComponent, d3 as SettingsSearchService, d4 as ShapeComponent, d5 as SharedStoreRegistry, d6 as SidePanelDirective, d7 as Size, d8 as SocketStore, d9 as SortComponent, da as StatComponent, db as StepComponent, dc as StepperComponent, dd as StepsComponent, de as StorageService, df as StrokeLinecap, dg as StrokeLinejoin, dh as SummaryComponent, di as SvgGeneratorComponent, dj as SvgGeneratorService, dk as SvgService, dl as TOTAL_COLUMNS, dm as TRANSLATION_SOURCE, dn as TableComponent, dp as TechnicalMeterComponent, dq as TextInputComponent, j as TextOutputComponent, dr as TextareaInputComponent, ds as ThemeComponent, dt as ThemeDataService, du as ThemeService, dv as ThemeStore, dw as TimeAgoPipe, dx as TimelineComponent, dy as ToggleButtonComponent, dz as ToggleInputComponent, dA as ToggleRadioInputComponent, dB as ToolTipDirective, dC as TooltipComponent, T as TranslatePipe, dD as TranslateService, dE as TreeGridComponent, dF as URL_SEP, dG as USER_STORE_REF, dH as USER_TAB_MAP, dI as UniverseComponent, dJ as UserApiService, dK as UserAvatarComponent, dL as UserComponent, dM as UserNavComponent, dN as UserSettingsComponent, dO as UserStore, dP as WC_BUNDLE, dQ as WC_NAVIGATE_EVENT, dR as WC_ROUTE_CHANGED_EVENT, dS as WC_SEARCH_GROUPS, dT as WIN_USER_TAB_HOOK, dU as WIN_USER_TAB_KEY, dV as WatermarkComponent, dW as WcRouterStore, dX as WrapperInputComponent, dY as allowedCodes, dZ as anchorNavId, d_ as applyColorsToElement, d$ as applyDocEdit, e0 as assetOptions, e1 as bootstrapMagApp, e2 as bootstrapPwaInstall, e3 as browserLocale, e4 as buildWcBaseUrl, e5 as calculateLuminance, e6 as calculateRanks, e7 as cellText, e8 as checkDoc, e9 as checkFilterCondition, ea as childNavId, eb as claimDenial, ec as classListSignal, ed as coerceSize, ee as cornerEdge, ef as cornerSide, eg as createMap, eh as createPlatformNavMap, ei as definedWcTierOf, ej as deriveAvatarGradient, ek as deriveContrastColor, el as deriveOppositeColor, em as derivePropertyName, en as docActionKey, eo as docAssetCandidates, ep as docProblemKey, eq as docRemotePath, er as emailValidation, es as evaluate, et as evaluateBool, eu as fieldBoolean, ev as fieldNumber, ew as fieldString, ex as filterHoldsList, ey as filterHoldsOneBound, ez as filterHoldsOptions, eA as filterHoldsRange, eB as filterList, eC as filterNumber, eD as filterNumberList, eE as filterOne, eF as filterPanelOf, eG as filterPanelWidth, eH as filterRange, eI as filterTreeGridRows, eJ as filterValueList, eK as filterValues, eL as flattenTreeGridRows, eM as formatBadgeCount, eN as fullName, eO as generateClipPath, eP as generateTransform, eQ as getClassList, eR as getProperty, eS as getScrollParent, eT as getTierFromPreviewPath, eU as getTreeGridRow, eV as getUniqueId, eW as getValue, eX as hasErrorComputed, eY as hexToRgb, eZ as hslToRgb, e_ as initMagmoniumApp, e$ as initialNotificationState, f0 as initialState, f1 as initials, f2 as injectAuthenticate, f3 as injectDefaultDenial, f4 as injectInstallApp, f5 as injectParentSize, f6 as injectScrollSticky, f7 as isBootRedirect, f8 as isButtonName, f9 as isCancelledComputed, fa as isExtensiblePlatformNavId, fb as isJson, fc as isLoadingComputed, fd as isLocalhost, fe as isNavInstanceConfig, ff as isNavMenuConfig, fg as isNavRowsConfig, fh as isNavVisibilityConfig, fi as isPlatformNavId, fj as isSize, fk as isTierPreview, fl as isUrlLocalhost, fm as isValidNavId, fn as isValidNavSegment, fo as isWebComponent, fp as linkToId, fq as linkToNav, fr as loadingActions, fs as mInterceptor, ft as manualValidation, fu as matchFieldValidation, fv as matchMount, fw as maxLengthValidation, fx as maxValidation, fy as mergePlatformNav, fz as mergeUnique, fA as mergeUniqueBy, fB as mergeUniqueWith, fC as minAgeValidation, fD as minLengthValidation, fE as minValidation, fF as miniMarkToHtml, fG as mountFor, fH as mountPatternProblem, fI as mountPatternText, fJ as mountSegmentOf, fK as mountTokenOf, fL as navIdChain, fM as navIdFor, fN as navIdSegment, fO as navIdToRoutePath, fP as navIdToSegments, fQ as navParamOf, fR as navTailMatcher, fS as navToId, fT as navVisibilityGuard, fU as nextSectionTableSort, fV as normalizeAssetOptions, fW as offsetOfLine, fX as parentNavId, fY as parseAddress, fZ as parseColor, f_ as parseMountPattern, f$ as parsePatternNames, g0 as patternValidation, g1 as patternsValidation, g2 as permissionRefusal, g3 as pickSupportedLanguage, g4 as platformNavWidgets, g5 as presetDefaultOption, g6 as privateGuard, g7 as processImageToSvg, g8 as provideAppContext, g9 as provideMagAppConfig, ga as provideMagWcConfig, gb as provideMagWcRoutes, gc as provideModalComponents, gd as provideMurlUrlSerializer, ge as provideNavWidgets, gf as provideOverlayWidgets, gg as providePlatformNavWidgets, gh as provideSearch, gi as provideSizeContext, gj as provideUserTabs, gk as publicGuard, gl as readFieldPatterns, gm as recordDefinedWcTier, gn as remoteOutletRoute, go as renderAddress, gp as renderDocument, gq as requiredValidation, gr as resolveConfigAsset, gs as resolveIconSize, gt as resolvePallet, gu as resolvePatternRules, gv as resolveSize, gw as resolveSpacing, gx as rgbToHex, gy as rgbToHsl, gz as rowHasChildren, gA as samePatterns, gB as sectionTableColumnId, gC as sectionTableColumnWidths, gD as sectionTableFrozenCount, gE as segmentsToNavId, gF as setProperty, gG as setTreeGridChildren, gH as setWcTier, gI as settingsWidgets, gJ as shouldShowBadge, gK as sortSectionTableRows, gL as splitNavId, gM as splitOnMatch, gN as stringToColor, gO as tailRouteOf, gP as toAttrBool, gQ as toAttrNumber, gR as toCssLength, gS as toHostNavId, gT as toLength, gU as toLocalNavId, gV as toggleTreeGridRow, gW as unfetchedPlatformNav, gX as ungroupedDocActions, gY as urlValidation, gZ as wcTierOf } from './magmonium-one-magmonium-one-BRKZkOoZ.mjs';
|
|
2
2
|
//# sourceMappingURL=magmonium-one.mjs.map
|
package/package.json
CHANGED
package/types/magmonium-one.d.ts
CHANGED
|
@@ -122,10 +122,23 @@ declare class HttpService {
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
declare class TranslateService {
|
|
125
|
+
private readonly browserLocale;
|
|
126
|
+
/** Set once the visitor picks a language — the Browser Locale stops leading. */
|
|
127
|
+
private picked;
|
|
128
|
+
/**
|
|
129
|
+
* The visitor's pick, else their Browser Locale language — following it when
|
|
130
|
+
* they change their browser languages, until they pick one here.
|
|
131
|
+
*/
|
|
125
132
|
readonly lang: _angular_core.WritableSignal<string>;
|
|
126
133
|
private readonly path;
|
|
127
134
|
private readonly country;
|
|
128
135
|
readonly remoteAppId: _angular_core.WritableSignal<string | undefined>;
|
|
136
|
+
/**
|
|
137
|
+
* The mounted App's Default Language (store CONTEXT.md): its keys load from
|
|
138
|
+
* this file when the App ships none for `lang` — library keys still follow
|
|
139
|
+
* `lang`.
|
|
140
|
+
*/
|
|
141
|
+
readonly remoteFallbackLang: _angular_core.WritableSignal<string | undefined>;
|
|
129
142
|
private readonly httpService;
|
|
130
143
|
private readonly assetStore;
|
|
131
144
|
/**
|
|
@@ -150,7 +163,6 @@ declare class TranslateService {
|
|
|
150
163
|
private readonly libraryTranslation;
|
|
151
164
|
readonly libraryKeys: _angular_core.Signal<Set<string>>;
|
|
152
165
|
private readonly links;
|
|
153
|
-
constructor();
|
|
154
166
|
setLang(lang: string): void;
|
|
155
167
|
/**
|
|
156
168
|
* Translate a key and return plain text
|
|
@@ -260,6 +272,34 @@ declare class DeviceService {
|
|
|
260
272
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DeviceService>;
|
|
261
273
|
}
|
|
262
274
|
|
|
275
|
+
/**
|
|
276
|
+
* The language and country the visitor's browser declares (CONTEXT.md
|
|
277
|
+
* Browser Locale). A hint that pre-fills and breaks ties, never an authority —
|
|
278
|
+
* callers clamp `language` to their own list, and `country` is null rather
|
|
279
|
+
* than guessed from the language (`en` is not `US`).
|
|
280
|
+
*/
|
|
281
|
+
interface BrowserLocale {
|
|
282
|
+
language: string | undefined;
|
|
283
|
+
country: string | null;
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Reads `navigator.language`; when that tag carries no region, the first of
|
|
287
|
+
* `navigator.languages` that does supplies the country.
|
|
288
|
+
*/
|
|
289
|
+
declare const browserLocale: (nav?: Pick<Navigator, "language" | "languages"> | undefined) => BrowserLocale;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* The Browser Locale as a signal — read once at start and again whenever the
|
|
293
|
+
* visitor changes their browser languages (`languagechange`).
|
|
294
|
+
*/
|
|
295
|
+
declare class BrowserLocaleService {
|
|
296
|
+
private readonly current;
|
|
297
|
+
readonly locale: _angular_core.Signal<BrowserLocale>;
|
|
298
|
+
constructor();
|
|
299
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BrowserLocaleService, never>;
|
|
300
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<BrowserLocaleService>;
|
|
301
|
+
}
|
|
302
|
+
|
|
263
303
|
type DomCreate<T> = {
|
|
264
304
|
component: Type<T>;
|
|
265
305
|
className: string;
|
|
@@ -893,6 +933,38 @@ interface AppRelationView {
|
|
|
893
933
|
needsAgreement: boolean;
|
|
894
934
|
/** The App's Declared Permissions — what an Agreement accepts, all at once. */
|
|
895
935
|
permissions: AppPermission[];
|
|
936
|
+
/**
|
|
937
|
+
* Relation Language as resolved — the language the App runs in for the
|
|
938
|
+
* caller; null when nothing resolves and the client picks from the Browser
|
|
939
|
+
* Locale and `supportedLanguages`.
|
|
940
|
+
*/
|
|
941
|
+
language: string | null;
|
|
942
|
+
/**
|
|
943
|
+
* The App's Default Language — where its keys come from when it ships none
|
|
944
|
+
* for `language`; null when the Owner named none.
|
|
945
|
+
*/
|
|
946
|
+
defaultLanguage: string | null;
|
|
947
|
+
/** The App's Supported Languages in platform order. */
|
|
948
|
+
supportedLanguages: string[];
|
|
949
|
+
/** The App's Country Restriction refuses the caller; the App must not open. */
|
|
950
|
+
countryBlocked: boolean;
|
|
951
|
+
}
|
|
952
|
+
/**
|
|
953
|
+
* A mode + list rule — `allow` keeps only the listed codes, `block` drops
|
|
954
|
+
* them; an empty `block` list is All. Country Restriction lists ISO 3166-1
|
|
955
|
+
* alpha-2 codes, Supported Languages platform language codes.
|
|
956
|
+
*/
|
|
957
|
+
interface AppCodeRule {
|
|
958
|
+
mode: 'allow' | 'block';
|
|
959
|
+
list: string[];
|
|
960
|
+
}
|
|
961
|
+
/** What every user of an App is bound by, as `store/app/<id>/permission` answers it. */
|
|
962
|
+
interface AppRules {
|
|
963
|
+
permissions: AppPermission[];
|
|
964
|
+
countries: AppCodeRule;
|
|
965
|
+
languages: AppCodeRule & {
|
|
966
|
+
default: string | null;
|
|
967
|
+
};
|
|
896
968
|
}
|
|
897
969
|
interface AppContextRef {
|
|
898
970
|
user: Signal<SharedUser | undefined>;
|
|
@@ -1037,9 +1109,12 @@ interface AppHint {
|
|
|
1037
1109
|
/**
|
|
1038
1110
|
* Installs an App after asking. An App declaring Permissions is installed only
|
|
1039
1111
|
* with Agreement (store ADR 0006), so its modal lists them and the request
|
|
1040
|
-
* carries `agree: true`; `declared`
|
|
1041
|
-
*
|
|
1042
|
-
*
|
|
1112
|
+
* carries `agree: true`; `declared` stands in for the Permissions the App's
|
|
1113
|
+
* rules list when the caller already holds them. An App with more than one
|
|
1114
|
+
* Supported Language also asks which to run in — the Relation Language, sent
|
|
1115
|
+
* as `language` and preset to the User's own language when supported.
|
|
1116
|
+
* `hardStop` is the init gate: the modal cannot be dismissed and refusing
|
|
1117
|
+
* leaves for the Store.
|
|
1043
1118
|
*/
|
|
1044
1119
|
declare function injectInstallApp(): (app: AppHint, declared?: AppPermission[], hardStop?: boolean) => Promise<void>;
|
|
1045
1120
|
|
|
@@ -1300,6 +1375,19 @@ declare function buildWcBaseUrl(apiUrl: string, remoteId: string): string;
|
|
|
1300
1375
|
*/
|
|
1301
1376
|
declare const permissionRefusal: (error: unknown) => string | undefined;
|
|
1302
1377
|
|
|
1378
|
+
/**
|
|
1379
|
+
* The codes a mode + list rule lets through, in `all` order — `allow` keeps
|
|
1380
|
+
* the listed ones, `block` drops them. For Supported Languages `all` is the
|
|
1381
|
+
* platform language list.
|
|
1382
|
+
*/
|
|
1383
|
+
declare const allowedCodes: (rule: AppCodeRule | undefined, all: string[]) => string[];
|
|
1384
|
+
/**
|
|
1385
|
+
* The language an App runs in when the server resolves none: the visitor's
|
|
1386
|
+
* own (their pick, else their Browser Locale) when supported, else the Owner's
|
|
1387
|
+
* Default Language, else the first Supported Language.
|
|
1388
|
+
*/
|
|
1389
|
+
declare const pickSupportedLanguage: (own: string | undefined, supported: string[], ownerDefault?: string | null) => string | undefined;
|
|
1390
|
+
|
|
1303
1391
|
declare const isLoadingComputed: _angular_core.Signal<boolean>;
|
|
1304
1392
|
declare const hasErrorComputed: _angular_core.Signal<boolean>;
|
|
1305
1393
|
declare const isCancelledComputed: _angular_core.Signal<boolean>;
|
|
@@ -1709,6 +1797,8 @@ declare abstract class BaseRootWebComponent extends BaseWebComponent {
|
|
|
1709
1797
|
private readonly host;
|
|
1710
1798
|
private readonly ownAppLink;
|
|
1711
1799
|
private readonly agreementGate;
|
|
1800
|
+
/** The User's Relation Language for this App, once its Relation is read. */
|
|
1801
|
+
private readonly relationLanguage;
|
|
1712
1802
|
constructor();
|
|
1713
1803
|
private registerCustomElements;
|
|
1714
1804
|
private registerUserTabElements;
|
|
@@ -2849,6 +2939,11 @@ type DropdownOption<V extends DropdownValue = string> = {
|
|
|
2849
2939
|
/** Icon name, used by the Fields that render an option as a card. */
|
|
2850
2940
|
icon?: string;
|
|
2851
2941
|
disabled?: boolean;
|
|
2942
|
+
/**
|
|
2943
|
+
* The row a Field starts on when it holds no value of its own. One per list;
|
|
2944
|
+
* the Field's own value outranks it (`presetDefaultOption`).
|
|
2945
|
+
*/
|
|
2946
|
+
default?: boolean;
|
|
2852
2947
|
/**
|
|
2853
2948
|
* Authored text rather than an i18n key. A key is looked up by splitting on
|
|
2854
2949
|
* `.`, so a path like `order.name` would resolve to the `order` key and
|
|
@@ -3949,6 +4044,7 @@ declare class SectionHeaderComponent {
|
|
|
3949
4044
|
readonly action: _angular_core.OutputEmitterRef<MenuItem>;
|
|
3950
4045
|
readonly back: _angular_core.OutputEmitterRef<void>;
|
|
3951
4046
|
private readonly translateService;
|
|
4047
|
+
private readonly host;
|
|
3952
4048
|
protected readonly subText: _angular_core.Signal<string | undefined>;
|
|
3953
4049
|
private readonly scrollSticky;
|
|
3954
4050
|
private readonly sectionContext;
|
|
@@ -3964,6 +4060,7 @@ declare class SectionHeaderComponent {
|
|
|
3964
4060
|
protected readonly toggleIconName: _angular_core.Signal<string | undefined>;
|
|
3965
4061
|
protected readonly toggleRotates: _angular_core.Signal<boolean>;
|
|
3966
4062
|
protected onToggleClick(): void;
|
|
4063
|
+
protected onHeaderClick(event: MouseEvent): void;
|
|
3967
4064
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SectionHeaderComponent, never>;
|
|
3968
4065
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SectionHeaderComponent, "m-section-header", never, { "sticky": { "alias": "sticky"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "subLabel": { "alias": "subLabel"; "required": false; "isSignal": true; }; "noTranslate": { "alias": "noTranslate"; "required": false; "isSignal": true; }; "params": { "alias": "params"; "required": false; "isSignal": true; }; "reverse": { "alias": "reverse"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "menu": { "alias": "menu"; "required": false; "isSignal": true; }; "menuName": { "alias": "menuName"; "required": false; "isSignal": true; }; "visibilityRule": { "alias": "visibilityRule"; "required": false; "isSignal": true; }; "disableRule": { "alias": "disableRule"; "required": false; "isSignal": true; }; "extraData": { "alias": "extraData"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "showBack": { "alias": "showBack"; "required": false; "isSignal": true; }; "actionButton": { "alias": "actionButton"; "required": false; "isSignal": true; }; "actionLabel": { "alias": "actionLabel"; "required": false; "isSignal": true; }; "spacing": { "alias": "spacing"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; }, { "actionClick": "actionClick"; "action": "action"; "back": "back"; }, never, ["*", "m-section-filter-group"], true, never>;
|
|
3969
4066
|
}
|
|
@@ -5013,6 +5110,7 @@ declare class DropdownInputComponent extends BaseDropdownComponent implements Fo
|
|
|
5013
5110
|
protected readonly selectedValues: _angular_core.Signal<readonly DropdownValue[]>;
|
|
5014
5111
|
protected readonly setValue: (value: DropdownValue | undefined) => void;
|
|
5015
5112
|
protected selectOption(option: DropdownOption<DropdownValue>): void;
|
|
5113
|
+
constructor();
|
|
5016
5114
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownInputComponent, never>;
|
|
5017
5115
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownInputComponent, "m-dropdown-input", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
5018
5116
|
}
|
|
@@ -5023,6 +5121,7 @@ declare class MultiselectInputComponent extends BaseDropdownComponent implements
|
|
|
5023
5121
|
protected readonly multiple = true;
|
|
5024
5122
|
protected readonly selectedValues: _angular_core.Signal<readonly DropdownValue[]>;
|
|
5025
5123
|
protected readonly setValue: (value: DropdownValue[] | undefined) => void;
|
|
5124
|
+
constructor();
|
|
5026
5125
|
protected selectOption(option: DropdownOption<DropdownValue>): void;
|
|
5027
5126
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MultiselectInputComponent, never>;
|
|
5028
5127
|
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 +5283,7 @@ type AssetOption = {
|
|
|
5184
5283
|
label: string;
|
|
5185
5284
|
icon?: string;
|
|
5186
5285
|
disabled?: boolean;
|
|
5286
|
+
default?: boolean;
|
|
5187
5287
|
};
|
|
5188
5288
|
declare function normalizeAssetOptions(data: AssetOption[] | AssetOption[][] | undefined): DropdownOption[];
|
|
5189
5289
|
/**
|
|
@@ -5204,6 +5304,17 @@ declare function normalizeAssetOptions(data: AssetOption[] | AssetOption[][] | u
|
|
|
5204
5304
|
* file. Must be called from an injection context.
|
|
5205
5305
|
*/
|
|
5206
5306
|
declare function assetOptions(name?: () => string | undefined): Signal<DropdownOption[]>;
|
|
5307
|
+
/**
|
|
5308
|
+
* Starts a Field on its list's `default` row when it holds no value of its own
|
|
5309
|
+
* (m-one-ui CONTEXT.md OptionSet). The Field's own value — its config, its form
|
|
5310
|
+
* data — outranks the row, so a value already held is kept.
|
|
5311
|
+
*
|
|
5312
|
+
* Each marked row is consulted once: a User who clears the pick is not handed
|
|
5313
|
+
* it back, and only a list that moves its mark offers the new row. A disabled
|
|
5314
|
+
* row is never preset — the User could not have picked it either. Must be
|
|
5315
|
+
* called from an injection context.
|
|
5316
|
+
*/
|
|
5317
|
+
declare function presetDefaultOption(options: () => readonly DropdownOption<DropdownValue>[], current: () => unknown, apply: (value: DropdownValue) => void): void;
|
|
5207
5318
|
|
|
5208
5319
|
interface InputModel {
|
|
5209
5320
|
placeholder?: string;
|
|
@@ -5379,6 +5490,8 @@ declare class SelectableCardInputComponent extends BaseInputComponent<Selectable
|
|
|
5379
5490
|
readonly value: _angular_core.ModelSignal<string | string[] | undefined>;
|
|
5380
5491
|
private readonly assetOptions;
|
|
5381
5492
|
protected readonly cardOptions: Signal<DropdownOption[]>;
|
|
5493
|
+
private readonly presetOptions;
|
|
5494
|
+
constructor();
|
|
5382
5495
|
private readonly isDesignMode;
|
|
5383
5496
|
protected readonly items: Signal<SelectableCardItem[]>;
|
|
5384
5497
|
protected readonly labels: Signal<Record<string, string>>;
|
|
@@ -5834,13 +5947,16 @@ declare class SectionFormComponent<T extends object = Record<string, unknown>> e
|
|
|
5834
5947
|
private previousValue;
|
|
5835
5948
|
private previousData;
|
|
5836
5949
|
private previousReleased;
|
|
5950
|
+
private previousOwn;
|
|
5837
5951
|
private readonly registeredFields;
|
|
5838
5952
|
private readonly releasedFields;
|
|
5839
5953
|
private readonly requiredFields;
|
|
5840
5954
|
private readonly patternFields;
|
|
5841
|
-
readonly
|
|
5955
|
+
private readonly ownValues;
|
|
5956
|
+
readonly registerField: (name: string, required?: boolean, patterns?: FieldPatterns, value?: unknown) => void;
|
|
5842
5957
|
readonly releaseField: (name: string) => void;
|
|
5843
5958
|
private readonly withoutReleased;
|
|
5959
|
+
private readonly setOwnValue;
|
|
5844
5960
|
private readonly setRequired;
|
|
5845
5961
|
private readonly setPatterns;
|
|
5846
5962
|
private readonly resolvedValidation;
|
|
@@ -5873,7 +5989,8 @@ declare class SectionFormComponent<T extends object = Record<string, unknown>> e
|
|
|
5873
5989
|
private readonly focusFirstField;
|
|
5874
5990
|
private readonly rebuild;
|
|
5875
5991
|
/**
|
|
5876
|
-
* Empties the form back to `data
|
|
5992
|
+
* Empties the form back to `data`, each Field's own value filling what
|
|
5993
|
+
* `data` leaves absent — what a caller wants after a successful
|
|
5877
5994
|
* submit. The model has to be written first: the FieldTree writes the User's
|
|
5878
5995
|
* keystrokes into `model`, and `linkedSignal` only recomputes when `data` or
|
|
5879
5996
|
* the key list changes, so stamping a new tree over an untouched model would
|
|
@@ -5946,6 +6063,7 @@ declare class SectionFormItemComponent extends ConfigComponent<Input> implements
|
|
|
5946
6063
|
readonly patterns: _angular_core.InputSignal<string | string[] | undefined>;
|
|
5947
6064
|
readonly patternMessage: _angular_core.InputSignal<string | undefined>;
|
|
5948
6065
|
value: _angular_core.ModelSignal<InputValue>;
|
|
6066
|
+
private drawnValue;
|
|
5949
6067
|
readonly act: _angular_core.OutputEmitterRef<Record<string, unknown>>;
|
|
5950
6068
|
readonly fieldKey: _angular_core.OutputEmitterRef<string>;
|
|
5951
6069
|
readonly dataChange: _angular_core.OutputEmitterRef<InputValue>;
|
|
@@ -6059,8 +6177,11 @@ interface SectionFormContext {
|
|
|
6059
6177
|
* what turns `required` written on a tag into a validator on the FieldTree —
|
|
6060
6178
|
* without it the attribute only reaches the native input, which a `novalidate`
|
|
6061
6179
|
* form ignores, so nothing would ever be invalid (ADR 0010).
|
|
6180
|
+
*
|
|
6181
|
+
* `value` is the Field's own value, written on its tag: what the key starts
|
|
6182
|
+
* on when the form's `data` holds nothing for it.
|
|
6062
6183
|
*/
|
|
6063
|
-
readonly registerField: (name: string, required?: boolean, patterns?: FieldPatterns) => void;
|
|
6184
|
+
readonly registerField: (name: string, required?: boolean, patterns?: FieldPatterns, value?: unknown) => void;
|
|
6064
6185
|
/**
|
|
6065
6186
|
* An item has mounted its control. Content projection gives the form no
|
|
6066
6187
|
* render hook of its own, so this is what tells it the DOM is finally
|
|
@@ -10915,6 +11036,7 @@ declare class AuthActivityPageComponent {
|
|
|
10915
11036
|
dob: string;
|
|
10916
11037
|
sex: number;
|
|
10917
11038
|
password: string;
|
|
11039
|
+
country: string;
|
|
10918
11040
|
}>;
|
|
10919
11041
|
createSignUpOtp: _ngrx_signals_rxjs_interop.RxMethod<void>;
|
|
10920
11042
|
getAuthIdentities: _ngrx_signals_rxjs_interop.RxMethod<{
|
|
@@ -10974,7 +11096,11 @@ declare class AuthActivityPageComponent {
|
|
|
10974
11096
|
dob: string;
|
|
10975
11097
|
sex: number;
|
|
10976
11098
|
password: string;
|
|
11099
|
+
country: string;
|
|
10977
11100
|
} | undefined;
|
|
11101
|
+
/** Signup pre-fills the Browser Locale country; the visitor confirms it. */
|
|
11102
|
+
private readonly browserLocale;
|
|
11103
|
+
protected readonly browserCountry: _angular_core.Signal<string>;
|
|
10978
11104
|
protected readonly btoa: (...args: Parameters<typeof btoa>) => string;
|
|
10979
11105
|
protected readonly passwordValidation: _angular_forms_signals.SchemaOrSchemaFn<Record<string, unknown>>;
|
|
10980
11106
|
protected readonly signInValidation: _angular_forms_signals.SchemaOrSchemaFn<Record<string, unknown>>;
|
|
@@ -11091,6 +11217,7 @@ declare const AuthStore: Type<{
|
|
|
11091
11217
|
dob: string;
|
|
11092
11218
|
sex: number;
|
|
11093
11219
|
password: string;
|
|
11220
|
+
country: string;
|
|
11094
11221
|
}>;
|
|
11095
11222
|
createSignUpOtp: _ngrx_signals_rxjs_interop.RxMethod<void>;
|
|
11096
11223
|
getAuthIdentities: _ngrx_signals_rxjs_interop.RxMethod<{
|
|
@@ -11229,11 +11356,10 @@ interface AuthSignupCreateRequest {
|
|
|
11229
11356
|
user: AuthSignupCreateRequestUser;
|
|
11230
11357
|
}
|
|
11231
11358
|
interface AuthSignupCreateRequestUser {
|
|
11232
|
-
|
|
11233
|
-
|
|
11359
|
+
first_name: string;
|
|
11360
|
+
last_name: string;
|
|
11234
11361
|
dob: string;
|
|
11235
11362
|
password: string;
|
|
11236
|
-
rePassword: string;
|
|
11237
11363
|
lang: string;
|
|
11238
11364
|
sex: number;
|
|
11239
11365
|
country: string;
|
|
@@ -11269,5 +11395,5 @@ interface AuthResult {
|
|
|
11269
11395
|
}
|
|
11270
11396
|
declare function injectAuthenticate(): () => Promise<AuthResult>;
|
|
11271
11397
|
|
|
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 };
|
|
11273
|
-
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 };
|
|
11398
|
+
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, 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, allowedCodes, anchorNavId, applyColorsToElement, applyDocEdit, assetOptions, bootstrapMagApp, bootstrapPwaInstall, browserLocale, 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, pickSupportedLanguage, 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 };
|
|
11399
|
+
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, 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 };
|