@magmonium/one 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/{magmonium-one-image-editor-BjCvZ9rH.mjs → magmonium-one-image-editor-CqTVP7Li.mjs} +2 -2
- package/fesm2022/{magmonium-one-image-editor-BjCvZ9rH.mjs.map → magmonium-one-image-editor-CqTVP7Li.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-magmonium-one-B5qzsrNB.mjs → magmonium-one-magmonium-one-DCRM0N5X.mjs} +114 -33
- package/fesm2022/magmonium-one-magmonium-one-DCRM0N5X.mjs.map +1 -0
- package/fesm2022/{magmonium-one-otp-BwXKEaEg.mjs → magmonium-one-otp-Cq5Hfnh_.mjs} +2 -2
- package/fesm2022/{magmonium-one-otp-BwXKEaEg.mjs.map → magmonium-one-otp-Cq5Hfnh_.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-password-CyHOns1l.mjs → magmonium-one-password-B4R18v54.mjs} +2 -2
- package/fesm2022/{magmonium-one-password-CyHOns1l.mjs.map → magmonium-one-password-B4R18v54.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-toggle-CpMURu38.mjs → magmonium-one-toggle-DXiBGDPh.mjs} +2 -2
- package/fesm2022/{magmonium-one-toggle-CpMURu38.mjs.map → magmonium-one-toggle-DXiBGDPh.mjs.map} +1 -1
- package/fesm2022/magmonium-one.mjs +1 -1
- package/package.json +1 -1
- package/types/magmonium-one.d.ts +89 -3
- package/fesm2022/magmonium-one-magmonium-one-B5qzsrNB.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-DCRM0N5X.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-Cq5Hfnh_.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-otp-BwXKEaEg.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,G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,EAAA,CAAA,+qEAAA,CAAA,EAAA;oGAIQ,UAAU,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"magmonium-one-otp-Cq5Hfnh_.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/text/otp.ts"],"sourcesContent":["import {\n afterRenderEffect,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n signal,\n untracked,\n viewChildren,\n} from '@angular/core';\nimport { LabelComponent } from '../label';\nimport { TextOutputComponent } from '../../../text-output';\nimport { BaseTextInputComponent } from './base-text';\nimport { CommonModule } from '@angular/common';\nimport { OtpInput } from '../../model/input';\nimport { IS_DESIGN_MODE } from '../../../../config/tokens';\n\n@Component({\n selector: 'm-otp-input',\n template: `\n @if (otpConfig(); as otp) {\n <m-label\n [for]=\"otp.name\"\n [placeholder]=\"otp.label\"\n [params]=\"otp.params\"\n [required]=\"required()\"\n [disabled]=\"isDisabled()\"\n />\n <div class=\"otp-container\">\n @for (item of otpArray(); track $index) {\n <input\n [id]=\"$index === 0 ? (otp.name ?? '') : ''\"\n #otpInput\n type=\"text\"\n maxlength=\"1\"\n [class.error]=\"showErrors()\"\n [disabled]=\"isDisabled()\"\n [value]=\"otpValues()[$index] || ''\"\n (input)=\"onInput($event, $index)\"\n (keydown)=\"onKeyDown($event, $index)\"\n (paste)=\"onPaste($event)\"\n />\n }\n </div>\n @if (showErrors()) {\n @for (error of errors(); track $index) {\n <m-text-output\n variant=\"footer\"\n color=\"error\"\n [label]=\"error.message\"\n />\n }\n }\n }\n `,\n styleUrl: './otp.sass',\n imports: [LabelComponent, TextOutputComponent, CommonModule],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class OtpInputComponent extends BaseTextInputComponent<OtpInput> {\n otpValues = signal<string[]>([]);\n otpInputs = viewChildren<ElementRef<HTMLInputElement>>('otpInput');\n protected readonly otpConfig = computed(() => this.config() as OtpInput);\n otpArray = computed(() => {\n const length = this.otpConfig()?.length || 6;\n return Array(length).fill(0);\n });\n\n // Inert on the Canvas — other inputs stay idle because they never autofocus;\n // OTP used to steal focus and look live while composing (DesignMode).\n private readonly isDesignMode = !!inject(IS_DESIGN_MODE, { optional: true });\n protected readonly isDisabled = computed(\n () => this.isDesignMode || this.disabled()\n );\n\n // BaseText answers `focused` by focusing its `#inputElement`, and an OTP has\n // none — it has a row of boxes. Without this the caret never lands on an OTP\n // field, so the form that opens on one (login's verification step) reads as\n // dead until the User clicks it.\n private hasAutofocused = false;\n\n constructor() {\n super();\n effect(() => {\n const length = this.otpConfig()?.length || 6;\n this.otpValues.set(Array(length).fill(''));\n });\n\n afterRenderEffect(() => {\n const inputs = this.otpInputs();\n if (!this.focused() || !inputs.length || this.hasAutofocused) return;\n this.hasAutofocused = true;\n untracked(() => this.focusInput(0));\n });\n }\n\n onInput = (event: Event, index: number): void => {\n if (this.isDisabled()) return;\n const input = event.target as HTMLInputElement;\n let value = input.value;\n\n value = value.replace(/[^a-zA-Z0-9]/g, '');\n\n if (value.length > 1) {\n value = value.slice(-1);\n }\n\n input.value = value.toUpperCase();\n\n const newValues = [...this.otpValues()];\n newValues[index] = value.toUpperCase();\n this.otpValues.set(newValues);\n\n const length = this.otpConfig()?.length || 6;\n if (value && index < length - 1) {\n this.focusInput(index + 1);\n }\n this.updateValue();\n };\n\n onKeyDown = (event: KeyboardEvent, index: number): void => {\n if (this.isDisabled()) return;\n const input = event.target as HTMLInputElement;\n const length = this.otpConfig()?.length || 6;\n\n const isAlphaNumeric = /^[a-zA-Z0-9]$/.test(event.key);\n const isControlKey = [\n 'Backspace',\n 'Delete',\n 'ArrowLeft',\n 'ArrowRight',\n 'Tab',\n ].includes(event.key);\n\n if (!isAlphaNumeric && !isControlKey) {\n event.preventDefault();\n return;\n }\n\n if (event.key === 'Backspace') {\n if (!input.value && index > 0) {\n this.focusInput(index - 1);\n }\n }\n if (event.key === 'ArrowLeft' && index > 0) {\n event.preventDefault();\n this.focusInput(index - 1);\n }\n if (event.key === 'ArrowRight' && index < length - 1) {\n event.preventDefault();\n this.focusInput(index + 1);\n }\n };\n\n onPaste = (event: ClipboardEvent): void => {\n if (this.isDisabled()) return;\n event.preventDefault();\n event.stopPropagation();\n\n const length = this.otpConfig()?.length || 6;\n const pastedData = event.clipboardData?.getData('text') || '';\n\n const alphanumeric = pastedData\n .replace(/[^a-zA-Z0-9]/g, '')\n .slice(0, length);\n\n if (alphanumeric.length > 0) {\n const newValues = Array(length).fill('');\n alphanumeric.split('').forEach((char, index) => {\n if (index < length) {\n newValues[index] = char.toUpperCase();\n }\n });\n\n this.otpValues.set(newValues);\n this.updateValue();\n\n const focusIndex = Math.min(alphanumeric.length, length - 1);\n setTimeout(() => this.focusInput(focusIndex), 0);\n }\n };\n\n private focusInput(index: number): void {\n if (this.isDisabled()) return;\n const inputs = this.otpInputs();\n if (inputs[index]) {\n inputs[index].nativeElement.focus();\n }\n }\n\n private updateValue(): void {\n const otpValue = this.otpValues().join('');\n this.setValue(otpValue);\n }\n}\n"],"names":[],"mappings":";;;;;AA6DM,MAAO,iBAAkB,SAAQ,sBAAgC,CAAA;AACrE,IAAA,SAAS,GAAG,MAAM,CAAW,EAAE,gFAAC;AAChC,IAAA,SAAS,GAAG,YAAY,CAA+B,UAAU,gFAAC;IAC/C,SAAS,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,MAAM,EAAc,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,WAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;AACxE,IAAA,QAAQ,GAAG,QAAQ,CAAC,MAAK;QACvB,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,EAAE,MAAM,IAAI,CAAC;QAC5C,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9B,IAAA,CAAC,+EAAC;;;AAIe,IAAA,YAAY,GAAG,C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A,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,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-CyHOns1l.mjs → magmonium-one-password-B4R18v54.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-DCRM0N5X.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-B4R18v54.mjs.map
|
package/fesm2022/{magmonium-one-password-CyHOns1l.mjs.map → magmonium-one-password-B4R18v54.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-password-
|
|
1
|
+
{"version":3,"file":"magmonium-one-password-B4R18v54.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/text/password.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n signal,\n} from '@angular/core';\nimport { LabelComponent } from '../label';\nimport { TextOutputComponent } from '../../../text-output';\nimport { BaseTextInputComponent } from './base-text';\nimport { ButtonComponent } from '../../../button/ui/button';\nimport { TranslatePipe } from '../../../../pipe';\n\n@Component({\n selector: 'm-password-input',\n template: `\n @if (config(); as text) {\n <m-label\n [for]=\"text.name\"\n [placeholder]=\"text.label\"\n [params]=\"text.params\"\n [required]=\"required()\"\n [disabled]=\"disabled()\"\n />\n <div class=\"input-wrapper\">\n <input\n [id]=\"text.name ?? ''\"\n [value]=\"value()\"\n #inputElement\n [class.error]=\"showErrors()\"\n [disabled]=\"disabled()\"\n [placeholder]=\"(text.placeholder ?? '') | translate: text.params\"\n (input)=\"onInput($event)\"\n (focus)=\"isFocused.set(true)\"\n (blur)=\"isFocused.set(false); touched.set(true)\"\n [type]=\"type()\"\n />\n <m-one-button\n type=\"button\"\n [disabled]=\"disabled()\"\n [name]=\"button()\"\n [color]=\"iconColor()\"\n (clicked)=\"toggleType()\"\n />\n </div>\n @if (showErrors()) {\n @for (error of errors(); track $index) {\n <m-text-output\n variant=\"footer\"\n color=\"error\"\n [label]=\"error.message\"\n />\n }\n }\n }\n `,\n imports: [LabelComponent, TextOutputComponent, ButtonComponent, TranslatePipe],\n styleUrl: './password.sass',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class PasswordInputComponent extends BaseTextInputComponent {\n isPassword = signal<boolean>(true);\n type = computed(() => (this.isPassword() ? 'password' : 'text'));\n button = computed(() => (!this.isPassword() ? 'eye' : 'eye_close'));\n\n protected toggleType() {\n this.isPassword.update((now) => !now);\n }\n\n protected onInput(event: Event): void {\n const target = event.target as HTMLInputElement;\n this.setValue(target?.value ?? '');\n }\n}\n"],"names":[],"mappings":";;;;AA2DM,MAAO,sBAAuB,SAAQ,sBAAsB,CAAA;AAChE,IAAA,UAAU,GAAG,MAAM,CAAU,IAAI,iFAAC;IAClC,IAAI,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,UAAU,EAAE,GAAG,UAAU,GAAG,MAAM,CAAC,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;IAChE,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,KAAK,GAAG,WAAW,CAAC,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,QAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;IAEzD,UAAU,GAAA;AAClB,QAAA,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC;IACvC;AAEU,IAAA,OAAO,CAAC,KAAY,EA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,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-DCRM0N5X.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-DXiBGDPh.mjs.map
|
package/fesm2022/{magmonium-one-toggle-CpMURu38.mjs.map → magmonium-one-toggle-DXiBGDPh.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-toggle-
|
|
1
|
+
{"version":3,"file":"magmonium-one-toggle-DXiBGDPh.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/toggle/toggle.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n model,\n ModelSignal,\n} from '@angular/core';\nimport { ToggleInput } from '../../model/input';\nimport { TranslatePipe } from '../../../../pipe/translate';\nimport {\n FormCheckboxControl,\n ValidationError,\n WithOptionalField,\n} from '@angular/forms/signals';\nimport { BaseInputComponent } from '../../lib/base-input';\n\n@Component({\n selector: 'm-toggle-input',\n template: `\n @if (config(); as toggle) {\n <div class=\"toggle\">\n <input\n [id]=\"toggle.name ?? ''\"\n [checked]=\"checked()\"\n (change)=\"onChange($event)\"\n type=\"checkbox\"\n />\n <label [attr.for]=\"toggle.name || null\">{{\n toggle.label | translate\n }}</label>\n </div>\n }\n `,\n imports: [TranslatePipe],\n styleUrl: './toggle.sass',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ToggleInputComponent\n extends BaseInputComponent<ToggleInput>\n implements FormCheckboxControl\n{\n public value = undefined;\n public checked = model<boolean>(false) as ModelSignal<boolean>;\n public override config = input<Partial<ToggleInput> | undefined>();\n public override required = input<boolean>(false);\n public override disabled = input<boolean>(false);\n public override invalid = input<boolean>(false);\n public override touched = model<boolean>(false);\n public override focused = input<boolean>(false);\n public override errors = input<readonly WithOptionalField<ValidationError>[]>(\n []\n );\n public override showErrors = computed(() => this.touched() && this.invalid());\n\n /** Required by FormCheckboxControl interface */\n // public readonly checked: ModelSignal<boolean> = this.value; // Already defined above\n\n constructor() {\n super();\n }\n\n protected onChange(event: Event): void {\n const target = event.target as HTMLInputElement;\n this.checked.set(target?.checked ?? false);\n }\n}\n"],"names":[],"mappings":";;;;AAsCM,MAAO,oBACX,SAAQ,kBAA+B,CAAA;IAGhC,KAAK,GAAG,SAAS;AACjB,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,CAAyB;IAC9C,MAAM,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,QAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAoC;AAClD,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,+EAAC;AAChC,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,+EAAC;AAChC,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,8EAAC;AAC/B,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,8EAAC;AAC/B,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,8EAAC;AAC/B,IAAA,MAAM,GAAG,KAAK,CAC5B,EAAE,6EACH;AACe,IAAA,UAAU,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE,IAAI,IAAI,CAAC,OAAO,EAAE,iFAAC;;;AAK7E,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;IACT;AAEU,IAAA,QAAQ,CAAC,KAAY,EAAA;AAC7B,QAAA,MAAM,MAAM,GAAG,KAAK,CAAC,MAA0B;QAC/C,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,IAAI,KAAK,CAAC;IAC5C;uGA3BW,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAApB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IA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A,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 CheckboxInputComponent, a0 as ClearableInputComponent, a1 as ClipboardService, a2 as ColComponent, a3 as ColorPickerInputComponent, a4 as CommentItemComponent, a5 as CommentsApiService, a6 as CommentsComponent, a7 as CommentsStore, a8 as CompactNumberPipe, a9 as ComponentInputComponent, aa as ComponentStepperComponent, ab as ConfigComponent, ac as ConfirmComponent, ad as ContextMenuComponent, ae as CustomIconClass, af as CustomIconEditComponent, ag as DEFAULT_DENIAL, ah as DEFAULT_DOC_DENSITY, ai as DEFAULT_DOC_VARIANT, aj as DEFAULT_FILTER_RANGE_MODE, ak as DEFAULT_FILTER_VARIANT, al as DEFAULT_NAV_PARAM, am as DEFAULT_NAV_SEGMENT, an as DEFAULT_SIZE, ao as DOCK_MIN_PAGE_REMAINDER, ap as DOCS_FOLDER, aq as DOC_ACTION_ICONS, ar as DOC_DENSITIES, as as DOC_EDIT_ACTIONS, at as DOC_TOOLBAR_GROUPS, au as DOC_VARIANTS, av as DashboardCardComponent, aw as DateInputComponent, ax as DatePickerComponent, ay as DeviceService, az as DocComponent, aA as DocEditorComponent, aB as DomService, aC as Domain, aD as DotGridComponent, aE as DragListDirective, aF as DragListItemDirective, aG as DraggableDirective, aH as DropdownInputComponent, aI as FILTER_GROUP_CONTEXT, aJ as FILTER_RANGE_MODES, aK as FILTER_VARIANTS, aL as FLEX_VARIANTS, aM as FOLDER_PICK_LISTENER, aN as FORM_ASSET_FOLDER, aO as FileService, aP as FileUploadDirective, aQ as FileUploadInputComponent, aR as FlexComponent, aS as FlexItemComponent, aT as FormGroupComponent, aU as FrameComponent, aV as FreezeService, aW as GRID_BREAKPOINTS, aX as GetNavService, H as HeaderComponent, aY as HighlightDirective, aZ as HttpService, a_ as ICON_SOURCE, k as IS_DESIGN_MODE, a$ as IS_SIDE_PANEL, b0 as IconComponent, b1 as ImgComponent, I as InputType, b2 as InstrumentScoreComponent, b3 as InterceptorObservables, b4 as JumbotronComponent, b5 as KeyValueComponent, b6 as LAYOUT_ASSET_FOLDER, b7 as LOGIN_COMPONENT, b8 as LOGIN_STORE, b9 as LanguageComponent, ba as ListComponent, bb as LogoComponent, bc as MAG_SOCKET_EVENT, bd as MHeroColorDirective, be as MHeroComponent, M as MODAL_REF, bf as MODAL_STORE_REF, bg as MOUNT_STATIC_SEGMENT, bh as MOUNT_TOKEN, bi as MRefDirective, bj as MStepComponent, bk as MURL_PARAM, bl as MURL_SEP, bm as ManifestEnrichmentService, bn as MenuComponent, bo as ModalDirective, bp as ModalRef, bq as ModalStore, br as MoneyPipe, bs as MultiRangeInputComponent, bt as MurlUrlSerializer, bu as NAV_DEFAULT_MURL, bv as NAV_ID_SEP, bw as NAV_MAIN_BUTTONS, bx as NAV_SEGMENT_RE, by as NAV_STORE_REF, bz as NAV_WC_COMPONENTS, bA as NAV_WIDGET_MAP, bB as NavComponent, bC as NavDetailsComponent, bD as NavHeaderComponent, bE as NavMenuComponent, bF as NavStore, bG as NavTrailComponent, bH as NothingComponent, bI as NotificationElementComponent, bJ as NotificationGroupComponent, bK as NotificationPopupComponent, bL as NotificationService, bM as NotificationStore, bN as NotificationType, bO as NotificationWidgetComponent, bP as ONE_ASSET_BASE_URL, bQ as OPTIONS_SOURCE, bR as OVERLAY_WIDGETS, bS as OneApp, bT as OptionsSourceDirective, bU as OverlayBodyComponent, bV as OverlayRef, bW as OverlayService, bX as PLATFORM_BUTTON_NAV_IDS, bY as PLATFORM_EXTENSIBLE_NAV_IDS, bZ as PLATFORM_NAV_MAP, b_ as PLATFORM_ROOT_CHILDREN, b$ as PaginationComponent, c0 as PanelComponent, c1 as PercentagePipe, c2 as PlaygroundComponent, c3 as PositionDirective, c4 as PwaInstallComponent, c5 as RECENT_SEARCH_LIMIT, c6 as REMOTE_PAGE_RELOAD, c7 as ROOT_NAV, c8 as RadioGroupComponent, c9 as RadioInputComponent, R as RangeInputComponent, ca as RatingInputComponent, cb as ReactiveElementComponent, cc as RemoteComponent, cd as RemoteLoaderService, ce as ResizeElementComponent, cf as RouteContainer, cg as RowComponent, ch as SEARCH_QUERY, ci as SEARCH_RESULTS_EVENT, cj as SECTION_ACCORDION_GROUP, ck as SECTION_FORM_CONTEXT, cl as SECTION_TABLE_VARIANTS, cm as SHARED_ICONS, cn as SIZE_CONTEXT, co as ScoreComponent, cp as ScrollComponent, cq as ScrollService, cr as SearchPanelComponent, cs as SearchStore, ct as SearchUserPanelComponent, cu as SectionAccordionDirective, cv as SectionAccordionGroupDirective, cw as SectionBackComponent, cx as SectionBadgesComponent, cy as SectionButtonGroupComponent, cz as SectionCardComponent, cA as SectionCarouselComponent, cB as SectionComponent, cC as SectionFilterComponent, cD as SectionFilterGroupComponent, cE as SectionFilterMenuComponent, cF as SectionFilterPanelComponent, cG as SectionFilterRangePanelComponent, cH as SectionFooterComponent, cI as SectionFormComponent, cJ as SectionFormItemComponent, cK as SectionHeaderComponent, cL as SectionHeroComponent, cM as SectionPaginationComponent, cN as SectionSearchComponent, cO as SectionStepperComponent, cP as SectionTableCellComponent, cQ as SectionTableComponent, cR as SectionTableRowComponent, cS as SectionTableSortPipe, cT as SectionTabsComponent, cU as SectionToggleComponent, cV as SectionToggleItemDirective, cW as SelectableCardInputComponent, cX as SelectorDirective, cY as SettingsSearchBarComponent, cZ as SettingsSearchService, c_ as ShapeComponent, c$ as SharedStoreRegistry, d0 as SidePanelDirective, d1 as Size, d2 as SocketStore, d3 as SortComponent, d4 as StatComponent, d5 as StepComponent, d6 as StepperComponent, d7 as StepsComponent, d8 as StorageService, d9 as StrokeLinecap, da as StrokeLinejoin, db as SummaryComponent, dc as SvgGeneratorComponent, dd as SvgGeneratorService, de as SvgService, df as TOTAL_COLUMNS, dg as TRANSLATION_SOURCE, dh as TableComponent, di as TechnicalMeterComponent, dj as TextInputComponent, j as TextOutputComponent, dk as TextareaInputComponent, dl as ThemeComponent, dm as ThemeDataService, dn as ThemeService, dp as ThemeStore, dq as TimeAgoPipe, dr as TimelineComponent, ds as ToggleButtonComponent, dt as ToggleInputComponent, du as ToggleRadioInputComponent, dv as ToolTipDirective, dw as TooltipComponent, T as TranslatePipe, dx as TranslateService, dy as TreeGridComponent, dz as URL_SEP, dA as USER_STORE_REF, dB as USER_TAB_MAP, dC as UniverseComponent, dD as UserApiService, dE as UserAvatarComponent, dF as UserComponent, dG as UserNavComponent, dH as UserSettingsComponent, dI as UserStore, dJ as WC_BUNDLE, dK as WC_NAVIGATE_EVENT, dL as WC_ROUTE_CHANGED_EVENT, dM as WC_SEARCH_GROUPS, dN as WIN_USER_TAB_HOOK, dO as WIN_USER_TAB_KEY, dP as WatermarkComponent, dQ as WcRouterStore, dR as WrapperInputComponent, dS as anchorNavId, dT as applyColorsToElement, dU as applyDocEdit, dV as assetOptions, dW as bootstrapMagApp, dX as bootstrapPwaInstall, dY as buildWcBaseUrl, dZ as calculateLuminance, d_ as calculateRanks, d$ as cellText, e0 as checkDoc, e1 as checkFilterCondition, e2 as childNavId, e3 as claimDenial, e4 as classListSignal, e5 as coerceSize, e6 as cornerEdge, e7 as cornerSide, e8 as createMap, e9 as createPlatformNavMap, ea as definedWcTierOf, eb as deriveAvatarGradient, ec as deriveContrastColor, ed as deriveOppositeColor, ee as derivePropertyName, ef as docActionKey, eg as docAssetCandidates, eh as docProblemKey, ei as docRemotePath, ej as emailValidation, ek as evaluate, el as evaluateBool, em as fieldBoolean, en as fieldNumber, eo as fieldString, ep as filterHoldsList, eq as filterHoldsOneBound, er as filterHoldsOptions, es as filterHoldsRange, et as filterList, eu as filterNumber, ev as filterNumberList, ew as filterOne, ex as filterPanelOf, ey as filterPanelWidth, ez as filterRange, eA as filterTreeGridRows, eB as filterValueList, eC as filterValues, eD as flattenTreeGridRows, eE as formatBadgeCount, eF as fullName, eG as generateClipPath, eH as generateTransform, eI as getClassList, eJ as getProperty, eK as getScrollParent, eL as getTierFromPreviewPath, eM as getTreeGridRow, eN as getUniqueId, eO as getValue, eP as hasErrorComputed, eQ as hexToRgb, eR as hslToRgb, eS as initMagmoniumApp, eT as initialNotificationState, eU as initialState, eV as initials, eW as injectAuthenticate, eX as injectDefaultDenial, eY as injectInstallApp, eZ as injectParentSize, e_ as injectScrollSticky, e$ as isBootRedirect, f0 as isButtonName, f1 as isCancelledComputed, f2 as isExtensiblePlatformNavId, f3 as isJson, f4 as isLoadingComputed, f5 as isLocalhost, f6 as isNavInstanceConfig, f7 as isNavMenuConfig, f8 as isNavRowsConfig, f9 as isNavVisibilityConfig, fa as isPlatformNavId, fb as isSize, fc as isTierPreview, fd as isUrlLocalhost, fe as isValidNavId, ff as isValidNavSegment, fg as isWebComponent, fh as linkToId, fi as linkToNav, fj as loadingActions, fk as mInterceptor, fl as manualValidation, fm as matchFieldValidation, fn as matchMount, fo as maxLengthValidation, fp as maxValidation, fq as mergePlatformNav, fr as mergeUnique, fs as mergeUniqueBy, ft as mergeUniqueWith, fu as minAgeValidation, fv as minLengthValidation, fw as minValidation, fx as miniMarkToHtml, fy as mountFor, fz as mountPatternProblem, fA as mountPatternText, fB as mountSegmentOf, fC as mountTokenOf, fD as navIdChain, fE as navIdFor, fF as navIdSegment, fG as navIdToRoutePath, fH as navIdToSegments, fI as navParamOf, fJ as navTailMatcher, fK as navToId, fL as navVisibilityGuard, fM as nextSectionTableSort, fN as normalizeAssetOptions, fO as offsetOfLine, fP as parentNavId, fQ as parseAddress, fR as parseColor, fS as parseMountPattern, fT as parsePatternNames, fU as patternValidation, fV as patternsValidation, fW as permissionRefusal, fX as platformNavWidgets, fY as privateGuard, fZ as processImageToSvg, f_ as provideAppContext, f$ as provideMagAppConfig, g0 as provideMagWcConfig, g1 as provideMagWcRoutes, g2 as provideModalComponents, g3 as provideMurlUrlSerializer, g4 as provideNavWidgets, g5 as provideOverlayWidgets, g6 as providePlatformNavWidgets, g7 as provideSearch, g8 as provideSizeContext, g9 as provideUserTabs, ga as publicGuard, gb as readFieldPatterns, gc as recordDefinedWcTier, gd as remoteOutletRoute, ge as renderAddress, gf as renderDocument, gg as requiredValidation, gh as resolveConfigAsset, gi as resolveIconSize, gj as resolvePallet, gk as resolvePatternRules, gl as resolveSize, gm as rgbToHex, gn as rgbToHsl, go as rowHasChildren, gp as samePatterns, gq as sectionTableColumnId, gr as sectionTableColumnWidths, gs as sectionTableFrozenCount, gt as segmentsToNavId, gu as setProperty, gv as setTreeGridChildren, gw as setWcTier, gx as settingsWidgets, gy as shouldShowBadge, gz as sortSectionTableRows, gA as splitNavId, gB as splitOnMatch, gC as stringToColor, gD as toAttrBool, gE as toAttrNumber, gF as toCssLength, gG as toHostNavId, gH as toLength, gI as toLocalNavId, gJ as toggleTreeGridRow, gK as unfetchedPlatformNav, gL as ungroupedDocActions, gM as urlValidation, gN as wcTierOf } from './magmonium-one-magmonium-one-B5qzsrNB.mjs';
|
|
1
|
+
export { A as ACCESS_DOMAINS, l as APP_CONTEXT_REF, m as APP_LINK, n as ASSET_BASE_URL, q as AccordionBodyDirective, s as AccordionComponent, t as AccordionGroupComponent, u as ActionComponent, v as AnimatedGraphsComponent, w as AppCardComponent, x as AppRelationType, y as AppTileComponent, z as AssetStore, C as AssetUrlPipe, D as Assets, E as AuthActivityPageComponent, F as AuthApiService, G as AuthStore, J as AutosizeDirective, K as BadgeComponent, N as BandingComponent, O as BaseArrayInputComponent, P as BaseRootWebComponent, Q as BaseWebComponent, B as ButtonComponent, S as ButtonGroupComponent, U as CALLING_APP_HEADER, V as COMPONENT_INPUT_REGISTRY, W as CardComponent, X as CardWrapperComponent, Y as CarouselComponent, Z as ChartComponent, _ as ChatBubbleComponent, $ as CheckboxInputComponent, a0 as ClearableInputComponent, a1 as ClipboardService, a2 as ColComponent, a3 as ColorPickerInputComponent, a4 as CommentItemComponent, a5 as CommentsApiService, a6 as CommentsComponent, a7 as CommentsStore, a8 as CompactNumberPipe, a9 as ComponentInputComponent, aa as ComponentStepperComponent, ab as ConfigComponent, ac as ConfirmComponent, ad as ContextMenuComponent, ae as CustomIconClass, af as CustomIconEditComponent, ag as DEFAULT_DENIAL, ah as DEFAULT_DOC_DENSITY, ai as DEFAULT_DOC_VARIANT, aj as DEFAULT_FILTER_RANGE_MODE, ak as DEFAULT_FILTER_VARIANT, al as DEFAULT_NAV_PARAM, am as DEFAULT_NAV_SEGMENT, an as DEFAULT_SIZE, ao as DOCK_MIN_PAGE_REMAINDER, ap as DOCS_FOLDER, aq as DOC_ACTION_ICONS, ar as DOC_DENSITIES, as as DOC_EDIT_ACTIONS, at as DOC_TOOLBAR_GROUPS, au as DOC_VARIANTS, av as DashboardCardComponent, aw as DateInputComponent, ax as DatePickerComponent, ay as DeviceService, az as DocComponent, aA as DocEditorComponent, aB as DomService, aC as Domain, aD as DotGridComponent, aE as DragListDirective, aF as DragListItemDirective, aG as DraggableDirective, aH as DropdownInputComponent, aI as FILTER_GROUP_CONTEXT, aJ as FILTER_RANGE_MODES, aK as FILTER_VARIANTS, aL as FLEX_VARIANTS, aM as FOLDER_PICK_LISTENER, aN as FORM_ASSET_FOLDER, aO as FileService, aP as FileUploadDirective, aQ as FileUploadInputComponent, aR as FlexComponent, aS as FlexItemComponent, aT as FormGroupComponent, aU as FrameComponent, aV as FreezeService, aW as GRID_BREAKPOINTS, aX as GetNavService, H as HeaderComponent, aY as HighlightDirective, aZ as HttpService, a_ as ICON_SOURCE, k as IS_DESIGN_MODE, a$ as IS_SIDE_PANEL, b0 as IconComponent, b1 as ImgComponent, I as InputType, b2 as InstrumentScoreComponent, b3 as InterceptorObservables, b4 as JumbotronComponent, b5 as KeyValueComponent, b6 as LAYOUT_ASSET_FOLDER, b7 as LOGIN_COMPONENT, b8 as LOGIN_STORE, b9 as LanguageComponent, ba as ListComponent, bb as LogoComponent, bc as MAG_SOCKET_EVENT, bd as MHeroColorDirective, be as MHeroComponent, M as MODAL_REF, bf as MODAL_STORE_REF, bg as MOUNT_STATIC_SEGMENT, bh as MOUNT_TOKEN, bi as MRefDirective, bj as MStepComponent, bk as MURL_PARAM, bl as MURL_SEP, bm as ManifestEnrichmentService, bn as MenuComponent, bo as ModalDirective, bp as ModalRef, bq as ModalStore, br as MoneyPipe, bs as MultiRangeInputComponent, bt as MurlUrlSerializer, bu as NAV_DEFAULT_MURL, bv as NAV_ID_SEP, bw as NAV_MAIN_BUTTONS, bx as NAV_SEGMENT_RE, by as NAV_STORE_REF, bz as NAV_WC_COMPONENTS, bA as NAV_WIDGET_MAP, bB as NavComponent, bC as NavDetailsComponent, bD as NavHeaderComponent, bE as NavMenuComponent, bF as NavStore, bG as NavTrailComponent, bH as NothingComponent, bI as NotificationElementComponent, bJ as NotificationGroupComponent, bK as NotificationPopupComponent, bL as NotificationService, bM as NotificationStore, bN as NotificationType, bO as NotificationWidgetComponent, bP as ONE_ASSET_BASE_URL, bQ as OPTIONS_SOURCE, bR as OVERLAY_WIDGETS, bS as OneApp, bT as OptionsSourceDirective, bU as OverlayBodyComponent, bV as OverlayRef, bW as OverlayService, bX as PLATFORM_BUTTON_NAV_IDS, bY as PLATFORM_EXTENSIBLE_NAV_IDS, bZ as PLATFORM_NAV_MAP, b_ as PLATFORM_ROOT_CHILDREN, b$ as PaginationComponent, c0 as PanelComponent, c1 as PercentagePipe, c2 as PlaygroundComponent, c3 as PositionDirective, c4 as PwaInstallComponent, c5 as RECENT_SEARCH_LIMIT, c6 as REMOTE_PAGE_RELOAD, c7 as ROOT_NAV, c8 as RadioGroupComponent, c9 as RadioInputComponent, R as RangeInputComponent, ca as RatingInputComponent, cb as ReactiveElementComponent, cc as RemoteComponent, cd as RemoteLoaderService, ce as ResizeElementComponent, cf as RouteContainer, cg as RowComponent, ch as SEARCH_QUERY, ci as SEARCH_RESULTS_EVENT, cj as SECTION_ACCORDION_GROUP, ck as SECTION_FORM_CONTEXT, cl as SECTION_TABLE_VARIANTS, cm as SHARED_ICONS, cn as SIZE_CONTEXT, co as ScoreComponent, cp as ScrollComponent, cq as ScrollService, cr as SearchPanelComponent, cs as SearchStore, ct as SearchUserPanelComponent, cu as SectionAccordionDirective, cv as SectionAccordionGroupDirective, cw as SectionBackComponent, cx as SectionBadgesComponent, cy as SectionButtonGroupComponent, cz as SectionCardComponent, cA as SectionCarouselComponent, cB as SectionComponent, cC as SectionFilterComponent, cD as SectionFilterGroupComponent, cE as SectionFilterMenuComponent, cF as SectionFilterPanelComponent, cG as SectionFilterRangePanelComponent, cH as SectionFooterComponent, cI as SectionFormComponent, cJ as SectionFormItemComponent, cK as SectionHeaderComponent, cL as SectionHeroComponent, cM as SectionPaginationComponent, cN as SectionSearchComponent, cO as SectionStepperComponent, cP as SectionTableCellComponent, cQ as SectionTableComponent, cR as SectionTableRowComponent, cS as SectionTableSortPipe, cT as SectionTabsComponent, cU as SectionToggleComponent, cV as SectionToggleItemDirective, cW as SelectableCardInputComponent, cX as SelectorDirective, cY as SettingsSearchBarComponent, cZ as SettingsSearchService, c_ as ShapeComponent, c$ as SharedStoreRegistry, d0 as SidePanelDirective, d1 as Size, d2 as SocketStore, d3 as SortComponent, d4 as StatComponent, d5 as StepComponent, d6 as StepperComponent, d7 as StepsComponent, d8 as StorageService, d9 as StrokeLinecap, da as StrokeLinejoin, db as SummaryComponent, dc as SvgGeneratorComponent, dd as SvgGeneratorService, de as SvgService, df as TOTAL_COLUMNS, dg as TRANSLATION_SOURCE, dh as TableComponent, di as TechnicalMeterComponent, dj as TextInputComponent, j as TextOutputComponent, dk as TextareaInputComponent, dl as ThemeComponent, dm as ThemeDataService, dn as ThemeService, dp as ThemeStore, dq as TimeAgoPipe, dr as TimelineComponent, ds as ToggleButtonComponent, dt as ToggleInputComponent, du as ToggleRadioInputComponent, dv as ToolTipDirective, dw as TooltipComponent, T as TranslatePipe, dx as TranslateService, dy as TreeGridComponent, dz as URL_SEP, dA as USER_STORE_REF, dB as USER_TAB_MAP, dC as UniverseComponent, dD as UserApiService, dE as UserAvatarComponent, dF as UserComponent, dG as UserNavComponent, dH as UserSettingsComponent, dI as UserStore, dJ as WC_BUNDLE, dK as WC_NAVIGATE_EVENT, dL as WC_ROUTE_CHANGED_EVENT, dM as WC_SEARCH_GROUPS, dN as WIN_USER_TAB_HOOK, dO as WIN_USER_TAB_KEY, dP as WatermarkComponent, dQ as WcRouterStore, dR as WrapperInputComponent, dS as anchorNavId, dT as applyColorsToElement, dU as applyDocEdit, dV as assetOptions, dW as bootstrapMagApp, dX as bootstrapPwaInstall, dY as buildWcBaseUrl, dZ as calculateLuminance, d_ as calculateRanks, d$ as cellText, e0 as checkDoc, e1 as checkFilterCondition, e2 as childNavId, e3 as claimDenial, e4 as classListSignal, e5 as coerceSize, e6 as cornerEdge, e7 as cornerSide, e8 as createMap, e9 as createPlatformNavMap, ea as definedWcTierOf, eb as deriveAvatarGradient, ec as deriveContrastColor, ed as deriveOppositeColor, ee as derivePropertyName, ef as docActionKey, eg as docAssetCandidates, eh as docProblemKey, ei as docRemotePath, ej as emailValidation, ek as evaluate, el as evaluateBool, em as fieldBoolean, en as fieldNumber, eo as fieldString, ep as filterHoldsList, eq as filterHoldsOneBound, er as filterHoldsOptions, es as filterHoldsRange, et as filterList, eu as filterNumber, ev as filterNumberList, ew as filterOne, ex as filterPanelOf, ey as filterPanelWidth, ez as filterRange, eA as filterTreeGridRows, eB as filterValueList, eC as filterValues, eD as flattenTreeGridRows, eE as formatBadgeCount, eF as fullName, eG as generateClipPath, eH as generateTransform, eI as getClassList, eJ as getProperty, eK as getScrollParent, eL as getTierFromPreviewPath, eM as getTreeGridRow, eN as getUniqueId, eO as getValue, eP as hasErrorComputed, eQ as hexToRgb, eR as hslToRgb, eS as initMagmoniumApp, eT as initialNotificationState, eU as initialState, eV as initials, eW as injectAuthenticate, eX as injectDefaultDenial, eY as injectInstallApp, eZ as injectParentSize, e_ as injectScrollSticky, e$ as isBootRedirect, f0 as isButtonName, f1 as isCancelledComputed, f2 as isExtensiblePlatformNavId, f3 as isJson, f4 as isLoadingComputed, f5 as isLocalhost, f6 as isNavInstanceConfig, f7 as isNavMenuConfig, f8 as isNavRowsConfig, f9 as isNavVisibilityConfig, fa as isPlatformNavId, fb as isSize, fc as isTierPreview, fd as isUrlLocalhost, fe as isValidNavId, ff as isValidNavSegment, fg as isWebComponent, fh as linkToId, fi as linkToNav, fj as loadingActions, fk as mInterceptor, fl as manualValidation, fm as matchFieldValidation, fn as matchMount, fo as maxLengthValidation, fp as maxValidation, fq as mergePlatformNav, fr as mergeUnique, fs as mergeUniqueBy, ft as mergeUniqueWith, fu as minAgeValidation, fv as minLengthValidation, fw as minValidation, fx as miniMarkToHtml, fy as mountFor, fz as mountPatternProblem, fA as mountPatternText, fB as mountSegmentOf, fC as mountTokenOf, fD as navIdChain, fE as navIdFor, fF as navIdSegment, fG as navIdToRoutePath, fH as navIdToSegments, fI as navParamOf, fJ as navTailMatcher, fK as navToId, fL as navVisibilityGuard, fM as nextSectionTableSort, fN as normalizeAssetOptions, fO as offsetOfLine, fP as parentNavId, fQ as parseAddress, fR as parseColor, fS as parseMountPattern, fT as parsePatternNames, fU as patternValidation, fV as patternsValidation, fW as permissionRefusal, fX as platformNavWidgets, fY as privateGuard, fZ as processImageToSvg, f_ as provideAppContext, f$ as provideMagAppConfig, g0 as provideMagWcConfig, g1 as provideMagWcRoutes, g2 as provideModalComponents, g3 as provideMurlUrlSerializer, g4 as provideNavWidgets, g5 as provideOverlayWidgets, g6 as providePlatformNavWidgets, g7 as provideSearch, g8 as provideSizeContext, g9 as provideUserTabs, ga as publicGuard, gb as readFieldPatterns, gc as recordDefinedWcTier, gd as remoteOutletRoute, ge as renderAddress, gf as renderDocument, gg as requiredValidation, gh as resolveConfigAsset, gi as resolveIconSize, gj as resolvePallet, gk as resolvePatternRules, gl as resolveSize, gm as rgbToHex, gn as rgbToHsl, go as rowHasChildren, gp as samePatterns, gq as sectionTableColumnId, gr as sectionTableColumnWidths, gs as sectionTableFrozenCount, gt as segmentsToNavId, gu as setProperty, gv as setTreeGridChildren, gw as setWcTier, gx as settingsWidgets, gy as shouldShowBadge, gz as sortSectionTableRows, gA as splitNavId, gB as splitOnMatch, gC as stringToColor, gD as tailRouteOf, gE as toAttrBool, gF as toAttrNumber, gG as toCssLength, gH as toHostNavId, gI as toLength, gJ as toLocalNavId, gK as toggleTreeGridRow, gL as unfetchedPlatformNav, gM as ungroupedDocActions, gN as urlValidation, gO as wcTierOf } from './magmonium-one-magmonium-one-DCRM0N5X.mjs';
|
|
2
2
|
//# sourceMappingURL=magmonium-one.mjs.map
|
package/package.json
CHANGED
package/types/magmonium-one.d.ts
CHANGED
|
@@ -774,6 +774,15 @@ interface RemoteMount {
|
|
|
774
774
|
replaceUrl?: boolean;
|
|
775
775
|
}) => void;
|
|
776
776
|
}
|
|
777
|
+
/**
|
|
778
|
+
* Where a mounted Remote's own Router stands, as it reported it: the deepest
|
|
779
|
+
* `navId` its matched routes declare, root-relative, and their parameters.
|
|
780
|
+
* The host routes only down to the mount, so this is how it learns the Nav.
|
|
781
|
+
*/
|
|
782
|
+
interface MountRoute {
|
|
783
|
+
navId: string;
|
|
784
|
+
params: Record<string, string>;
|
|
785
|
+
}
|
|
777
786
|
|
|
778
787
|
interface NavStoreRef {
|
|
779
788
|
/** Current NavId — route's NavId plus any open Murl segments. */
|
|
@@ -844,6 +853,11 @@ interface NavStoreRef {
|
|
|
844
853
|
/** A mounted Remote announcing itself, and leaving (ADR 0036). */
|
|
845
854
|
registerMount?: (mount: RemoteMount) => void;
|
|
846
855
|
unregisterMount?: (name: string) => void;
|
|
856
|
+
/**
|
|
857
|
+
* Where a mount's own Router stands, reported on each move; `undefined`
|
|
858
|
+
* forgets it. Optional: a host built before it existed provides none.
|
|
859
|
+
*/
|
|
860
|
+
setMountRoute?: (name: string, route: MountRoute | undefined) => void;
|
|
847
861
|
}
|
|
848
862
|
declare enum AppRelationType {
|
|
849
863
|
OWNER = 1,
|
|
@@ -1709,6 +1723,14 @@ declare class RouteContainer {
|
|
|
1709
1723
|
declare const WC_ROUTE_CHANGED_EVENT = "mag-wc-route-changed";
|
|
1710
1724
|
/** The host moving a Remote to one of its own paths, dispatched on its element. */
|
|
1711
1725
|
declare const WC_NAVIGATE_EVENT = "mag-wc-navigate";
|
|
1726
|
+
/** What a Remote reports on each settled route (`WC_ROUTE_CHANGED_EVENT`). */
|
|
1727
|
+
interface RemoteReport {
|
|
1728
|
+
appId?: string;
|
|
1729
|
+
path?: string;
|
|
1730
|
+
/** Its matched route's NavId, root-relative — absent from an older Remote. */
|
|
1731
|
+
navId?: string;
|
|
1732
|
+
params?: Record<string, string>;
|
|
1733
|
+
}
|
|
1712
1734
|
declare const WcRouterStore: _angular_core.Type<{
|
|
1713
1735
|
url: _angular_core.Signal<string[]>;
|
|
1714
1736
|
setExtra: (path: string | undefined) => void;
|
|
@@ -8547,6 +8569,11 @@ declare class FrameComponent {
|
|
|
8547
8569
|
path: _angular_core.Signal<string>;
|
|
8548
8570
|
routeNavId: _angular_core.Signal<string | undefined>;
|
|
8549
8571
|
routeParams: _angular_core.Signal<Record<string, string>>;
|
|
8572
|
+
hostRoute: _ngrx_signals.DeepSignal<{
|
|
8573
|
+
navId: string | undefined;
|
|
8574
|
+
params: Record<string, string>;
|
|
8575
|
+
}>;
|
|
8576
|
+
mountRoutes: _angular_core.Signal<Record<string, _magmonium_one.MountRoute>>;
|
|
8550
8577
|
routeChain: _angular_core.Signal<{
|
|
8551
8578
|
navId: string;
|
|
8552
8579
|
path: string;
|
|
@@ -8635,6 +8662,7 @@ declare class FrameComponent {
|
|
|
8635
8662
|
setAppLink: (appLink: string | undefined, appNavId?: string) => void;
|
|
8636
8663
|
registerMount: (mount: _magmonium_one.RemoteMount) => void;
|
|
8637
8664
|
unregisterMount: (name: string) => void;
|
|
8665
|
+
setMountRoute: (name: string, route: _magmonium_one.MountRoute | undefined) => void;
|
|
8638
8666
|
mountOf: (navId: string) => _magmonium_one.RemoteMount | undefined;
|
|
8639
8667
|
setWcConfig: (appLink: string, config: dist_libs_cli_src.WebComponentConfig) => void;
|
|
8640
8668
|
loadWcConfig: _ngrx_signals_rxjs_interop.RxMethod<string | undefined>;
|
|
@@ -8654,6 +8682,11 @@ declare class FrameComponent {
|
|
|
8654
8682
|
path: string;
|
|
8655
8683
|
routeNavId: string | undefined;
|
|
8656
8684
|
routeParams: Record<string, string>;
|
|
8685
|
+
hostRoute: {
|
|
8686
|
+
navId: string | undefined;
|
|
8687
|
+
params: Record<string, string>;
|
|
8688
|
+
};
|
|
8689
|
+
mountRoutes: Record<string, _magmonium_one.MountRoute>;
|
|
8657
8690
|
routeChain: {
|
|
8658
8691
|
navId: string;
|
|
8659
8692
|
path: string;
|
|
@@ -8775,11 +8808,28 @@ declare class DotGridComponent {
|
|
|
8775
8808
|
* mounted inside another Remote answers for its own subtree.
|
|
8776
8809
|
*/
|
|
8777
8810
|
declare const mountFor: (navId: string, mounts: readonly RemoteMount[]) => RemoteMount | undefined;
|
|
8811
|
+
/**
|
|
8812
|
+
* The route the page stands on where a `tail` Remote fills it. The host routes
|
|
8813
|
+
* only down to the mount — `root_app` for `/app/<link>/<navUrl>` — and the
|
|
8814
|
+
* navUrl below is the Remote's own route, so the Nav is the one the Remote
|
|
8815
|
+
* reported, rewritten into the host's keyspace (ADR 0015). Until it reports,
|
|
8816
|
+
* the app's root stands in: a cold deep link opens the app's menu, not the
|
|
8817
|
+
* host's.
|
|
8818
|
+
*
|
|
8819
|
+
* Only a mount hung on the Nav the host routed counts. The page's own slot
|
|
8820
|
+
* carries no `urlMode` and is a tail app by being the page.
|
|
8821
|
+
*/
|
|
8822
|
+
declare const tailRouteOf: (hostNavId: string | undefined, mounts: readonly RemoteMount[], reported: Record<string, MountRoute>) => MountRoute | undefined;
|
|
8778
8823
|
|
|
8779
8824
|
declare const NavStore: _angular_core.Type<{
|
|
8780
8825
|
path: Signal<string>;
|
|
8781
8826
|
routeNavId: Signal<string | undefined>;
|
|
8782
8827
|
routeParams: Signal<Record<string, string>>;
|
|
8828
|
+
hostRoute: _ngrx_signals.DeepSignal<{
|
|
8829
|
+
navId: string | undefined;
|
|
8830
|
+
params: Record<string, string>;
|
|
8831
|
+
}>;
|
|
8832
|
+
mountRoutes: Signal<Record<string, MountRoute>>;
|
|
8783
8833
|
routeChain: Signal<{
|
|
8784
8834
|
navId: string;
|
|
8785
8835
|
path: string;
|
|
@@ -8868,6 +8918,7 @@ declare const NavStore: _angular_core.Type<{
|
|
|
8868
8918
|
setAppLink: (appLink: string | undefined, appNavId?: string) => void;
|
|
8869
8919
|
registerMount: (mount: RemoteMount) => void;
|
|
8870
8920
|
unregisterMount: (name: string) => void;
|
|
8921
|
+
setMountRoute: (name: string, route: MountRoute | undefined) => void;
|
|
8871
8922
|
mountOf: (navId: string) => RemoteMount | undefined;
|
|
8872
8923
|
setWcConfig: (appLink: string, config: WebComponentConfig$1) => void;
|
|
8873
8924
|
loadWcConfig: _ngrx_signals_rxjs_interop.RxMethod<string | undefined>;
|
|
@@ -8887,6 +8938,11 @@ declare const NavStore: _angular_core.Type<{
|
|
|
8887
8938
|
path: string;
|
|
8888
8939
|
routeNavId: string | undefined;
|
|
8889
8940
|
routeParams: Record<string, string>;
|
|
8941
|
+
hostRoute: {
|
|
8942
|
+
navId: string | undefined;
|
|
8943
|
+
params: Record<string, string>;
|
|
8944
|
+
};
|
|
8945
|
+
mountRoutes: Record<string, MountRoute>;
|
|
8890
8946
|
routeChain: {
|
|
8891
8947
|
navId: string;
|
|
8892
8948
|
path: string;
|
|
@@ -9216,6 +9272,11 @@ declare class NavDetailsComponent {
|
|
|
9216
9272
|
path: _angular_core.Signal<string>;
|
|
9217
9273
|
routeNavId: _angular_core.Signal<string | undefined>;
|
|
9218
9274
|
routeParams: _angular_core.Signal<Record<string, string>>;
|
|
9275
|
+
hostRoute: _ngrx_signals.DeepSignal<{
|
|
9276
|
+
navId: string | undefined;
|
|
9277
|
+
params: Record<string, string>;
|
|
9278
|
+
}>;
|
|
9279
|
+
mountRoutes: _angular_core.Signal<Record<string, _magmonium_one.MountRoute>>;
|
|
9219
9280
|
routeChain: _angular_core.Signal<{
|
|
9220
9281
|
navId: string;
|
|
9221
9282
|
path: string;
|
|
@@ -9304,6 +9365,7 @@ declare class NavDetailsComponent {
|
|
|
9304
9365
|
setAppLink: (appLink: string | undefined, appNavId?: string) => void;
|
|
9305
9366
|
registerMount: (mount: _magmonium_one.RemoteMount) => void;
|
|
9306
9367
|
unregisterMount: (name: string) => void;
|
|
9368
|
+
setMountRoute: (name: string, route: _magmonium_one.MountRoute | undefined) => void;
|
|
9307
9369
|
mountOf: (navId: string) => _magmonium_one.RemoteMount | undefined;
|
|
9308
9370
|
setWcConfig: (appLink: string, config: dist_libs_cli_src.WebComponentConfig) => void;
|
|
9309
9371
|
loadWcConfig: _ngrx_signals_rxjs_interop.RxMethod<string | undefined>;
|
|
@@ -9323,6 +9385,11 @@ declare class NavDetailsComponent {
|
|
|
9323
9385
|
path: string;
|
|
9324
9386
|
routeNavId: string | undefined;
|
|
9325
9387
|
routeParams: Record<string, string>;
|
|
9388
|
+
hostRoute: {
|
|
9389
|
+
navId: string | undefined;
|
|
9390
|
+
params: Record<string, string>;
|
|
9391
|
+
};
|
|
9392
|
+
mountRoutes: Record<string, _magmonium_one.MountRoute>;
|
|
9326
9393
|
routeChain: {
|
|
9327
9394
|
navId: string;
|
|
9328
9395
|
path: string;
|
|
@@ -9409,6 +9476,11 @@ declare class NavHeaderComponent {
|
|
|
9409
9476
|
path: _angular_core.Signal<string>;
|
|
9410
9477
|
routeNavId: _angular_core.Signal<string | undefined>;
|
|
9411
9478
|
routeParams: _angular_core.Signal<Record<string, string>>;
|
|
9479
|
+
hostRoute: _ngrx_signals.DeepSignal<{
|
|
9480
|
+
navId: string | undefined;
|
|
9481
|
+
params: Record<string, string>;
|
|
9482
|
+
}>;
|
|
9483
|
+
mountRoutes: _angular_core.Signal<Record<string, _magmonium_one.MountRoute>>;
|
|
9412
9484
|
routeChain: _angular_core.Signal<{
|
|
9413
9485
|
navId: string;
|
|
9414
9486
|
path: string;
|
|
@@ -9497,6 +9569,7 @@ declare class NavHeaderComponent {
|
|
|
9497
9569
|
setAppLink: (appLink: string | undefined, appNavId?: string) => void;
|
|
9498
9570
|
registerMount: (mount: _magmonium_one.RemoteMount) => void;
|
|
9499
9571
|
unregisterMount: (name: string) => void;
|
|
9572
|
+
setMountRoute: (name: string, route: _magmonium_one.MountRoute | undefined) => void;
|
|
9500
9573
|
mountOf: (navId: string) => _magmonium_one.RemoteMount | undefined;
|
|
9501
9574
|
setWcConfig: (appLink: string, config: dist_libs_cli_src.WebComponentConfig) => void;
|
|
9502
9575
|
loadWcConfig: _ngrx_signals_rxjs_interop.RxMethod<string | undefined>;
|
|
@@ -9516,6 +9589,11 @@ declare class NavHeaderComponent {
|
|
|
9516
9589
|
path: string;
|
|
9517
9590
|
routeNavId: string | undefined;
|
|
9518
9591
|
routeParams: Record<string, string>;
|
|
9592
|
+
hostRoute: {
|
|
9593
|
+
navId: string | undefined;
|
|
9594
|
+
params: Record<string, string>;
|
|
9595
|
+
};
|
|
9596
|
+
mountRoutes: Record<string, _magmonium_one.MountRoute>;
|
|
9519
9597
|
routeChain: {
|
|
9520
9598
|
navId: string;
|
|
9521
9599
|
path: string;
|
|
@@ -9645,6 +9723,13 @@ interface Notification {
|
|
|
9645
9723
|
* acts on. Labels arrive translated. Local callers only, like `onClick`.
|
|
9646
9724
|
*/
|
|
9647
9725
|
actions?: NotificationAction[];
|
|
9726
|
+
/**
|
|
9727
|
+
* Marked as the reason a gesture was just refused — drawn with a severity
|
|
9728
|
+
* border and listed first in the tray, so the User opening it sees which
|
|
9729
|
+
* rows stand in the way. Cleared by a click on the row. Local callers only,
|
|
9730
|
+
* like `onClick`.
|
|
9731
|
+
*/
|
|
9732
|
+
highlighted?: boolean;
|
|
9648
9733
|
}
|
|
9649
9734
|
interface NotificationAction {
|
|
9650
9735
|
label: string;
|
|
@@ -9747,7 +9832,8 @@ declare class NotificationElementComponent {
|
|
|
9747
9832
|
protected severityChar: _angular_core.Signal<"✕" | "⚠" | "✓" | "ℹ">;
|
|
9748
9833
|
/** The whole row is the affordance: reading it marks it read, and one
|
|
9749
9834
|
* carrying an `onClick` runs it — which is how a notification becomes the
|
|
9750
|
-
* way to what it is about (`Notification.onClick`).
|
|
9835
|
+
* way to what it is about (`Notification.onClick`). A highlight has done
|
|
9836
|
+
* its job once the User acts on the row it marked. */
|
|
9751
9837
|
onActivate(): void;
|
|
9752
9838
|
markAsRead(): void;
|
|
9753
9839
|
onMouseEnter(): void;
|
|
@@ -10988,5 +11074,5 @@ interface AuthResult {
|
|
|
10988
11074
|
}
|
|
10989
11075
|
declare function injectAuthenticate(): () => Promise<AuthResult>;
|
|
10990
11076
|
|
|
10991
|
-
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, 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, MenuComponent, ModalDirective, ModalRef, ModalStore, MoneyPipe, MultiRangeInputComponent, MurlUrlSerializer, NAV_DEFAULT_MURL, NAV_ID_SEP, NAV_MAIN_BUTTONS, NAV_SEGMENT_RE, NAV_STORE_REF, NAV_WC_COMPONENTS, NAV_WIDGET_MAP, NavComponent, NavDetailsComponent, NavHeaderComponent, NavMenuComponent, NavStore, NavTrailComponent, NothingComponent, NotificationElementComponent, NotificationGroupComponent, NotificationPopupComponent, NotificationService, NotificationStore, NotificationType, NotificationWidgetComponent, ONE_ASSET_BASE_URL, OPTIONS_SOURCE, OVERLAY_WIDGETS, OneApp, OptionsSourceDirective, OverlayBodyComponent, OverlayRef, OverlayService, PLATFORM_BUTTON_NAV_IDS, PLATFORM_EXTENSIBLE_NAV_IDS, PLATFORM_NAV_MAP, PLATFORM_ROOT_CHILDREN, PaginationComponent, PanelComponent, PercentagePipe, PlaygroundComponent, PositionDirective, PwaInstallComponent, 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, 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, rgbToHex, rgbToHsl, rowHasChildren, samePatterns, sectionTableColumnId, sectionTableColumnWidths, sectionTableFrozenCount, segmentsToNavId, setProperty, setTreeGridChildren, setWcTier, settingsWidgets, shouldShowBadge, sortSectionTableRows, splitNavId, splitOnMatch, stringToColor, toAttrBool, toAttrNumber, toCssLength, toHostNavId, toLength, toLocalNavId, toggleTreeGridRow, unfetchedPlatformNav, ungroupedDocActions, urlValidation, wcTierOf };
|
|
10992
|
-
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, 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, 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, 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, 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, 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 };
|
|
11077
|
+
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, 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, MenuComponent, ModalDirective, ModalRef, ModalStore, MoneyPipe, MultiRangeInputComponent, MurlUrlSerializer, NAV_DEFAULT_MURL, NAV_ID_SEP, NAV_MAIN_BUTTONS, NAV_SEGMENT_RE, NAV_STORE_REF, NAV_WC_COMPONENTS, NAV_WIDGET_MAP, NavComponent, NavDetailsComponent, NavHeaderComponent, NavMenuComponent, NavStore, NavTrailComponent, NothingComponent, NotificationElementComponent, NotificationGroupComponent, NotificationPopupComponent, NotificationService, NotificationStore, NotificationType, NotificationWidgetComponent, ONE_ASSET_BASE_URL, OPTIONS_SOURCE, OVERLAY_WIDGETS, OneApp, OptionsSourceDirective, OverlayBodyComponent, OverlayRef, OverlayService, PLATFORM_BUTTON_NAV_IDS, PLATFORM_EXTENSIBLE_NAV_IDS, PLATFORM_NAV_MAP, PLATFORM_ROOT_CHILDREN, PaginationComponent, PanelComponent, PercentagePipe, PlaygroundComponent, PositionDirective, PwaInstallComponent, 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, 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, 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 };
|
|
11078
|
+
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, 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, 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, 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 };
|