@magmonium/one 0.2.80 → 0.2.81
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-DleCJcan.mjs → magmonium-one-image-editor-aBl2dVEc.mjs} +2 -2
- package/fesm2022/{magmonium-one-image-editor-DleCJcan.mjs.map → magmonium-one-image-editor-aBl2dVEc.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-magmonium-one-DpJYXHAK.mjs → magmonium-one-magmonium-one-CWtMvVOS.mjs} +370 -22
- package/fesm2022/magmonium-one-magmonium-one-CWtMvVOS.mjs.map +1 -0
- package/fesm2022/{magmonium-one-otp-6WQxmRKG.mjs → magmonium-one-otp-B-oUlDWY.mjs} +2 -2
- package/fesm2022/{magmonium-one-otp-6WQxmRKG.mjs.map → magmonium-one-otp-B-oUlDWY.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-password-49sBxeSV.mjs → magmonium-one-password-7gmB_RWb.mjs} +2 -2
- package/fesm2022/{magmonium-one-password-49sBxeSV.mjs.map → magmonium-one-password-7gmB_RWb.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-toggle-Ds_jl5Lz.mjs → magmonium-one-toggle-DL3lH7Xo.mjs} +2 -2
- package/fesm2022/{magmonium-one-toggle-Ds_jl5Lz.mjs.map → magmonium-one-toggle-DL3lH7Xo.mjs.map} +1 -1
- package/fesm2022/magmonium-one.mjs +1 -1
- package/package.json +1 -1
- package/types/magmonium-one.d.ts +152 -4
- package/fesm2022/magmonium-one-magmonium-one-DpJYXHAK.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-CWtMvVOS.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-B-oUlDWY.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-otp-6WQxmRKG.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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AA,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-B-oUlDWY.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-49sBxeSV.mjs → magmonium-one-password-7gmB_RWb.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-CWtMvVOS.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-7gmB_RWb.mjs.map
|
package/fesm2022/{magmonium-one-password-49sBxeSV.mjs.map → magmonium-one-password-7gmB_RWb.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-password-
|
|
1
|
+
{"version":3,"file":"magmonium-one-password-7gmB_RWb.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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;;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,qqFAAA,CAAA,EAAA;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { model, input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { g as BaseInputComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-
|
|
3
|
+
import { g as BaseInputComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-CWtMvVOS.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-DL3lH7Xo.mjs.map
|
package/fesm2022/{magmonium-one-toggle-Ds_jl5Lz.mjs.map → magmonium-one-toggle-DL3lH7Xo.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-toggle-
|
|
1
|
+
{"version":3,"file":"magmonium-one-toggle-DL3lH7Xo.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,EA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A,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,irGAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EACS,aAAa,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAIZ,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBArBhC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,EAAA,QAAA,EAChB;;;;;;;;;;;;;;AAcT,EAAA,CAAA,EAAA,OAAA,EACQ,CAAC,aAAa,CAAC,EAAA,eAAA,EAEP,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,irGAAA,CAAA,EAAA;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as ACCESS_DOMAINS, l as APP_CONTEXT_REF, m as ASSET_BASE_URL, n as AccordionBodyDirective, q as AccordionComponent, s as AccordionGroupComponent, t as ActionComponent, u as AnimatedGraphsComponent, v as AppCardComponent, w as AppRelationType, x as AppTileComponent, y as AssetStore, z as AssetUrlPipe, C as Assets, D as AuthActivityPageComponent, E as AuthApiService, F as AuthStore, G as AutosizeDirective, J as BadgeComponent, K as BandingComponent, N as BaseArrayInputComponent, O as BaseRootWebComponent, P as BaseWebComponent, B as ButtonComponent, Q as ButtonGroupComponent, S as COMPONENT_INPUT_REGISTRY, U as CardComponent, V as CardWrapperComponent, W as CarouselComponent, X as ChartComponent, Y as ChatBubbleComponent, Z as CheckboxInputComponent, _ as ClearableInputComponent, $ as ColComponent, a0 as ColorPickerInputComponent, a1 as CommentItemComponent, a2 as CommentsApiService, a3 as CommentsComponent, a4 as CommentsStore, a5 as CompactNumberPipe, a6 as ComponentInputComponent, a7 as ComponentStepperComponent, a8 as ConfigComponent, a9 as ConfirmComponent, aa as ContextMenuComponent, ab as CustomIconClass, ac as CustomIconEditComponent, ad as DEFAULT_FILTER_RANGE_MODE, ae as DEFAULT_FILTER_VARIANT, af as DEFAULT_NAV_PARAM, ag as DEFAULT_NAV_SEGMENT, ah as DEFAULT_SIZE, ai as DashboardCardComponent, aj as DateInputComponent, ak as DatePickerComponent, al as DeviceService, am as DomService, an as Domain, ao as DotGridComponent, ap as DragListDirective, aq as DragListItemDirective, ar as DraggableDirective, as as DropdownInputComponent, at as FILTER_GROUP_CONTEXT, au as FILTER_RANGE_MODES, av as FILTER_VARIANTS, aw as FLEX_VARIANTS, ax as FOLDER_PICK_LISTENER, ay as FORM_ASSET_FOLDER, az as FileService, aA as FileUploadDirective, aB as FileUploadInputComponent, aC as FlexComponent, aD as FlexItemComponent, aE as FormGroupComponent, aF as FrameComponent, aG as FreezeService, aH as GRID_BREAKPOINTS, aI as GetNavService, H as HeaderComponent, aJ as HighlightDirective, aK as HttpService, aL as ICON_SOURCE, k as IS_DESIGN_MODE, aM as IS_SIDE_PANEL, aN as IconComponent, aO as ImgComponent, I as InputType, aP as InstrumentScoreComponent, aQ as InterceptorObservables, aR as JumbotronComponent, aS as KeyValueComponent, aT as LAYOUT_ASSET_FOLDER, aU as LOGIN_COMPONENT, aV as LOGIN_STORE, aW as LanguageComponent, aX as ListComponent, aY as LogoComponent, aZ as MAG_SOCKET_EVENT, a_ as MHeroColorDirective, a$ as MHeroComponent, M as MODAL_REF, b0 as MODAL_STORE_REF, b1 as MRefDirective, b2 as MStepComponent, b3 as MURL_PARAM, b4 as MURL_SEP, b5 as ManifestEnrichmentService, b6 as MenuComponent, b7 as ModalDirective, b8 as ModalRef, b9 as ModalStore, ba as MoneyPipe, bb as MultiRangeInputComponent, bc as MurlUrlSerializer, bd as NAV_DEFAULT_MURL, be as NAV_ID_SEP, bf as NAV_MAIN_BUTTONS, bg as NAV_SEGMENT_RE, bh as NAV_STORE_REF, bi as NAV_WC_COMPONENTS, bj as NAV_WIDGET_MAP, bk as NavComponent, bl as NavDetailsComponent, bm as NavHeaderComponent, bn as NavMenuComponent, bo as NavStore, bp as NavTrailComponent, bq as NothingComponent, br as NotificationElementComponent, bs as NotificationGroupComponent, bt as NotificationPopupComponent, bu as NotificationService, bv as NotificationStore, bw as NotificationType, bx as NotificationWidgetComponent, by as ONE_ASSET_BASE_URL, bz as OPTIONS_SOURCE, bA as OVERLAY_WIDGETS, bB as OneApp, bC as OptionsSourceDirective, bD as OverlayBodyComponent, bE as OverlayRef, bF as OverlayService, bG as PLATFORM_BUTTON_NAV_IDS, bH as PLATFORM_EXTENSIBLE_NAV_IDS, bI as PLATFORM_NAV_MAP, bJ as PLATFORM_ROOT_CHILDREN, bK as PaginationComponent, bL as PanelComponent, bM as PercentagePipe, bN as PlaygroundComponent, bO as PositionDirective, bP as PwaInstallComponent, bQ as ROOT_NAV, bR as RadioGroupComponent, bS as RadioInputComponent, R as RangeInputComponent, bT as RatingInputComponent, bU as ReactiveElementComponent, bV as RemoteComponent, bW as RemoteLoaderService, bX as ResizeElementComponent, bY as RouteContainer, bZ as RowComponent, b_ as SEARCH_QUERY, b$ as SEARCH_RESULTS_EVENT, c0 as SECTION_ACCORDION_GROUP, c1 as SECTION_FORM_CONTEXT, c2 as SHARED_ICONS, c3 as SIZE_CONTEXT, c4 as ScoreComponent, c5 as ScrollComponent, c6 as ScrollService, c7 as SearchPanelComponent, c8 as SearchStore, c9 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 SectionTabsComponent, cw as SectionToggleComponent, cx as SectionToggleItemDirective, cy as SelectableCardInputComponent, cz as SelectorDirective, cA as SettingsSearchBarComponent, cB as SettingsSearchService, cC as ShapeComponent, cD as SharedStoreRegistry, cE as SidePanelDirective, cF as Size, cG as SocketStore, cH as SortComponent, cI as StatComponent, cJ as StepComponent, cK as StepperComponent, cL as StepsComponent, cM as StorageService, cN as StrokeLinecap, cO as StrokeLinejoin, cP as SummaryComponent, cQ as SvgGeneratorComponent, cR as SvgGeneratorService, cS as SvgService, cT as TOTAL_COLUMNS, cU as TRANSLATION_SOURCE, cV as TableComponent, cW as TechnicalMeterComponent, cX as TextInputComponent, j as TextOutputComponent, cY as TextareaInputComponent, cZ as ThemeComponent, c_ as ThemeDataService, c$ as ThemeService, d0 as ThemeStore, d1 as TimeAgoPipe, d2 as TimelineComponent, d3 as ToggleButtonComponent, d4 as ToggleInputComponent, d5 as ToggleRadioInputComponent, d6 as ToolTipDirective, d7 as TooltipComponent, T as TranslatePipe, d8 as TranslateService, d9 as TreeGridComponent, da as URL_SEP, db as USER_STORE_REF, dc as USER_TAB_MAP, dd as UniverseComponent, de as UserApiService, df as UserAvatarComponent, dg as UserComponent, dh as UserNavComponent, di as UserSettingsComponent, dj as UserStore, dk as WC_ROUTE_CHANGED_EVENT, dl as WC_SEARCH_GROUPS, dm as WIN_USER_TAB_HOOK, dn as WIN_USER_TAB_KEY, dp as WatermarkComponent, dq as WcRouterStore, dr as WrapperInputComponent, ds as anchorNavId, dt as applyColorsToElement, du as assetOptions, dv as bootstrapMagApp, dw as bootstrapPwaInstall, dx as buildWcBaseUrl, dy as calculateLuminance, dz as calculateRanks, dA as cellText, dB as checkFilterCondition, dC as childNavId, dD as classListSignal, dE as coerceSize, dF as cornerEdge, dG as cornerSide, dH as createMap, dI as createPlatformNavMap, dJ as deriveAvatarGradient, dK as deriveContrastColor, dL as deriveOppositeColor, dM as derivePropertyName, dN as emailValidation, dO as evaluate, dP as evaluateBool, dQ as filterHoldsList, dR as filterHoldsOneBound, dS as filterHoldsOptions, dT as filterHoldsRange, dU as filterList, dV as filterNumber, dW as filterNumberList, dX as filterOne, dY as filterPanelOf, dZ as filterPanelWidth, d_ as filterRange, d$ as filterTreeGridRows, e0 as filterValueList, e1 as filterValues, e2 as flattenTreeGridRows, e3 as formatBadgeCount, e4 as fullName, e5 as generateClipPath, e6 as generateTransform, e7 as getClassList, e8 as getProperty, e9 as getScrollParent, ea as getTierFromPreviewPath, eb as getTreeGridRow, ec as getUniqueId, ed as getValue, ee as hasErrorComputed, ef as hexToRgb, eg as hslToRgb, eh as initMagmoniumApp, ei as initialNotificationState, ej as initialState, ek as initials, el as injectAuthenticate, em as injectInstallApp, en as injectParentSize, eo as injectScrollSticky, ep as isButtonName, eq as isCancelledComputed, er as isExtensiblePlatformNavId, es as isJson, et as isLoadingComputed, eu as isLocalhost, ev as isNavInstanceConfig, ew as isNavMenuConfig, ex as isNavRowsConfig, ey as isPlatformNavId, ez as isSize, eA as isTierPreview, eB as isUrlLocalhost, eC as isValidNavId, eD as isValidNavSegment, eE as isWebComponent, eF as linkToId, eG as linkToNav, eH as loadingActions, eI as mInterceptor, eJ as manualValidation, eK as matchFieldValidation, eL as maxLengthValidation, eM as maxValidation, eN as mergePlatformNav, eO as mergeUnique, eP as mergeUniqueBy, eQ as mergeUniqueWith, eR as minAgeValidation, eS as minLengthValidation, eT as minValidation, eU as miniMarkToHtml, eV as navIdChain, eW as navIdFor, eX as navIdSegment, eY as navIdToRoutePath, eZ as navIdToSegments, e_ as navParamOf, e$ as navToId, f0 as normalizeAssetOptions, f1 as parentNavId, f2 as parseAddress, f3 as parseColor, f4 as parsePatternNames, f5 as patternValidation, f6 as patternsValidation, f7 as platformNavWidgets, f8 as privateGuard, f9 as processImageToSvg, fa as provideAppContext, fb as provideMagAppConfig, fc as provideMagWcConfig, fd as provideMagWcRoutes, fe as provideModalComponents, ff as provideMurlUrlSerializer, fg as provideNavWidgets, fh as provideOverlayWidgets, fi as providePlatformNavWidgets, fj as provideSearch, fk as provideSizeContext, fl as provideUserTabs, fm as publicGuard, fn as readFieldPatterns, fo as renderAddress, fp as requiredValidation, fq as resolveConfigAsset, fr as resolveIconSize, fs as resolvePallet, ft as resolvePatternRules, fu as resolveSize, fv as rgbToHex, fw as rgbToHsl, fx as rowHasChildren, fy as samePatterns, fz as segmentsToNavId, fA as setProperty, fB as setTreeGridChildren, fC as settingsWidgets, fD as shouldShowBadge, fE as splitNavId, fF as splitOnMatch, fG as stringToColor, fH as toAttrBool, fI as toAttrNumber, fJ as toCssLength, fK as toHostNavId, fL as toLength, fM as toLocalNavId, fN as toggleTreeGridRow, fO as unfetchedPlatformNav, fP as urlValidation } from './magmonium-one-magmonium-one-DpJYXHAK.mjs';
|
|
1
|
+
export { A as ACCESS_DOMAINS, l as APP_CONTEXT_REF, m as ASSET_BASE_URL, n as AccordionBodyDirective, q as AccordionComponent, s as AccordionGroupComponent, t as ActionComponent, u as AnimatedGraphsComponent, v as AppCardComponent, w as AppRelationType, x as AppTileComponent, y as AssetStore, z as AssetUrlPipe, C as Assets, D as AuthActivityPageComponent, E as AuthApiService, F as AuthStore, G as AutosizeDirective, J as BadgeComponent, K as BandingComponent, N as BaseArrayInputComponent, O as BaseRootWebComponent, P as BaseWebComponent, B as ButtonComponent, Q as ButtonGroupComponent, S as COMPONENT_INPUT_REGISTRY, U as CardComponent, V as CardWrapperComponent, W as CarouselComponent, X as ChartComponent, Y as ChatBubbleComponent, Z as CheckboxInputComponent, _ as ClearableInputComponent, $ as ColComponent, a0 as ColorPickerInputComponent, a1 as CommentItemComponent, a2 as CommentsApiService, a3 as CommentsComponent, a4 as CommentsStore, a5 as CompactNumberPipe, a6 as ComponentInputComponent, a7 as ComponentStepperComponent, a8 as ConfigComponent, a9 as ConfirmComponent, aa as ContextMenuComponent, ab as CustomIconClass, ac as CustomIconEditComponent, ad as DEFAULT_FILTER_RANGE_MODE, ae as DEFAULT_FILTER_VARIANT, af as DEFAULT_NAV_PARAM, ag as DEFAULT_NAV_SEGMENT, ah as DEFAULT_SIZE, ai as DashboardCardComponent, aj as DateInputComponent, ak as DatePickerComponent, al as DeviceService, am as DomService, an as Domain, ao as DotGridComponent, ap as DragListDirective, aq as DragListItemDirective, ar as DraggableDirective, as as DropdownInputComponent, at as FILTER_GROUP_CONTEXT, au as FILTER_RANGE_MODES, av as FILTER_VARIANTS, aw as FLEX_VARIANTS, ax as FOLDER_PICK_LISTENER, ay as FORM_ASSET_FOLDER, az as FileService, aA as FileUploadDirective, aB as FileUploadInputComponent, aC as FlexComponent, aD as FlexItemComponent, aE as FormGroupComponent, aF as FrameComponent, aG as FreezeService, aH as GRID_BREAKPOINTS, aI as GetNavService, H as HeaderComponent, aJ as HighlightDirective, aK as HttpService, aL as ICON_SOURCE, k as IS_DESIGN_MODE, aM as IS_SIDE_PANEL, aN as IconComponent, aO as ImgComponent, I as InputType, aP as InstrumentScoreComponent, aQ as InterceptorObservables, aR as JumbotronComponent, aS as KeyValueComponent, aT as LAYOUT_ASSET_FOLDER, aU as LOGIN_COMPONENT, aV as LOGIN_STORE, aW as LanguageComponent, aX as ListComponent, aY as LogoComponent, aZ as MAG_SOCKET_EVENT, a_ as MHeroColorDirective, a$ as MHeroComponent, M as MODAL_REF, b0 as MODAL_STORE_REF, b1 as MRefDirective, b2 as MStepComponent, b3 as MURL_PARAM, b4 as MURL_SEP, b5 as ManifestEnrichmentService, b6 as MenuComponent, b7 as ModalDirective, b8 as ModalRef, b9 as ModalStore, ba as MoneyPipe, bb as MultiRangeInputComponent, bc as MurlUrlSerializer, bd as NAV_DEFAULT_MURL, be as NAV_ID_SEP, bf as NAV_MAIN_BUTTONS, bg as NAV_SEGMENT_RE, bh as NAV_STORE_REF, bi as NAV_WC_COMPONENTS, bj as NAV_WIDGET_MAP, bk as NavComponent, bl as NavDetailsComponent, bm as NavHeaderComponent, bn as NavMenuComponent, bo as NavStore, bp as NavTrailComponent, bq as NothingComponent, br as NotificationElementComponent, bs as NotificationGroupComponent, bt as NotificationPopupComponent, bu as NotificationService, bv as NotificationStore, bw as NotificationType, bx as NotificationWidgetComponent, by as ONE_ASSET_BASE_URL, bz as OPTIONS_SOURCE, bA as OVERLAY_WIDGETS, bB as OneApp, bC as OptionsSourceDirective, bD as OverlayBodyComponent, bE as OverlayRef, bF as OverlayService, bG as PLATFORM_BUTTON_NAV_IDS, bH as PLATFORM_EXTENSIBLE_NAV_IDS, bI as PLATFORM_NAV_MAP, bJ as PLATFORM_ROOT_CHILDREN, bK as PaginationComponent, bL as PanelComponent, bM as PercentagePipe, bN as PlaygroundComponent, bO as PositionDirective, bP as PwaInstallComponent, bQ as ROOT_NAV, bR as RadioGroupComponent, bS as RadioInputComponent, R as RangeInputComponent, bT as RatingInputComponent, bU as ReactiveElementComponent, bV as RemoteComponent, bW as RemoteLoaderService, bX as ResizeElementComponent, bY as RouteContainer, bZ as RowComponent, b_ as SEARCH_QUERY, b$ as SEARCH_RESULTS_EVENT, c0 as SECTION_ACCORDION_GROUP, c1 as SECTION_FORM_CONTEXT, c2 as SHARED_ICONS, c3 as SIZE_CONTEXT, c4 as ScoreComponent, c5 as ScrollComponent, c6 as ScrollService, c7 as SearchPanelComponent, c8 as SearchStore, c9 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 SectionTabsComponent, cw as SectionToggleComponent, cx as SectionToggleItemDirective, cy as SelectableCardInputComponent, cz as SelectorDirective, cA as SettingsSearchBarComponent, cB as SettingsSearchService, cC as ShapeComponent, cD as SharedStoreRegistry, cE as SidePanelDirective, cF as Size, cG as SocketStore, cH as SortComponent, cI as StatComponent, cJ as StepComponent, cK as StepperComponent, cL as StepsComponent, cM as StorageService, cN as StrokeLinecap, cO as StrokeLinejoin, cP as SummaryComponent, cQ as SvgGeneratorComponent, cR as SvgGeneratorService, cS as SvgService, cT as TOTAL_COLUMNS, cU as TRANSLATION_SOURCE, cV as TableComponent, cW as TechnicalMeterComponent, cX as TextInputComponent, j as TextOutputComponent, cY as TextareaInputComponent, cZ as ThemeComponent, c_ as ThemeDataService, c$ as ThemeService, d0 as ThemeStore, d1 as TimeAgoPipe, d2 as TimelineComponent, d3 as ToggleButtonComponent, d4 as ToggleInputComponent, d5 as ToggleRadioInputComponent, d6 as ToolTipDirective, d7 as TooltipComponent, T as TranslatePipe, d8 as TranslateService, d9 as TreeGridComponent, da as URL_SEP, db as USER_STORE_REF, dc as USER_TAB_MAP, dd as UniverseComponent, de as UserApiService, df as UserAvatarComponent, dg as UserComponent, dh as UserNavComponent, di as UserSettingsComponent, dj as UserStore, dk as WC_ROUTE_CHANGED_EVENT, dl as WC_SEARCH_GROUPS, dm as WIN_USER_TAB_HOOK, dn as WIN_USER_TAB_KEY, dp as WatermarkComponent, dq as WcRouterStore, dr as WrapperInputComponent, ds as anchorNavId, dt as applyColorsToElement, du as assetOptions, dv as bootstrapMagApp, dw as bootstrapPwaInstall, dx as buildWcBaseUrl, dy as calculateLuminance, dz as calculateRanks, dA as cellText, dB as checkFilterCondition, dC as childNavId, dD as classListSignal, dE as coerceSize, dF as cornerEdge, dG as cornerSide, dH as createMap, dI as createPlatformNavMap, dJ as deriveAvatarGradient, dK as deriveContrastColor, dL as deriveOppositeColor, dM as derivePropertyName, dN as emailValidation, dO as evaluate, dP as evaluateBool, dQ as filterHoldsList, dR as filterHoldsOneBound, dS as filterHoldsOptions, dT as filterHoldsRange, dU as filterList, dV as filterNumber, dW as filterNumberList, dX as filterOne, dY as filterPanelOf, dZ as filterPanelWidth, d_ as filterRange, d$ as filterTreeGridRows, e0 as filterValueList, e1 as filterValues, e2 as flattenTreeGridRows, e3 as formatBadgeCount, e4 as fullName, e5 as generateClipPath, e6 as generateTransform, e7 as getClassList, e8 as getProperty, e9 as getScrollParent, ea as getTierFromPreviewPath, eb as getTreeGridRow, ec as getUniqueId, ed as getValue, ee as hasErrorComputed, ef as hexToRgb, eg as hslToRgb, eh as initMagmoniumApp, ei as initialNotificationState, ej as initialState, ek as initials, el as injectAuthenticate, em as injectInstallApp, en as injectParentSize, eo as injectScrollSticky, ep as isButtonName, eq as isCancelledComputed, er as isExtensiblePlatformNavId, es as isJson, et as isLoadingComputed, eu as isLocalhost, ev as isNavInstanceConfig, ew as isNavMenuConfig, ex as isNavRowsConfig, ey as isNavVisibilityConfig, ez as isPlatformNavId, eA as isSize, eB as isTierPreview, eC as isUrlLocalhost, eD as isValidNavId, eE as isValidNavSegment, eF as isWebComponent, eG as linkToId, eH as linkToNav, eI as loadingActions, eJ as mInterceptor, eK as manualValidation, eL as matchFieldValidation, eM as maxLengthValidation, eN as maxValidation, eO as mergePlatformNav, eP as mergeUnique, eQ as mergeUniqueBy, eR as mergeUniqueWith, eS as minAgeValidation, eT as minLengthValidation, eU as minValidation, eV as miniMarkToHtml, eW as navIdChain, eX as navIdFor, eY as navIdSegment, eZ as navIdToRoutePath, e_ as navIdToSegments, e$ as navParamOf, f0 as navToId, f1 as navVisibilityGuard, f2 as normalizeAssetOptions, f3 as parentNavId, f4 as parseAddress, f5 as parseColor, f6 as parsePatternNames, f7 as patternValidation, f8 as patternsValidation, f9 as platformNavWidgets, fa as privateGuard, fb as processImageToSvg, fc as provideAppContext, fd as provideMagAppConfig, fe as provideMagWcConfig, ff as provideMagWcRoutes, fg as provideModalComponents, fh as provideMurlUrlSerializer, fi as provideNavWidgets, fj as provideOverlayWidgets, fk as providePlatformNavWidgets, fl as provideSearch, fm as provideSizeContext, fn as provideUserTabs, fo as publicGuard, fp as readFieldPatterns, fq as renderAddress, fr as requiredValidation, fs as resolveConfigAsset, ft as resolveIconSize, fu as resolvePallet, fv as resolvePatternRules, fw as resolveSize, fx as rgbToHex, fy as rgbToHsl, fz as rowHasChildren, fA as samePatterns, fB as segmentsToNavId, fC as setProperty, fD as setTreeGridChildren, fE as settingsWidgets, fF as shouldShowBadge, fG as splitNavId, fH as splitOnMatch, fI as stringToColor, fJ as toAttrBool, fK as toAttrNumber, fL as toCssLength, fM as toHostNavId, fN as toLength, fO as toLocalNavId, fP as toggleTreeGridRow, fQ as unfetchedPlatformNav, fR as urlValidation } from './magmonium-one-magmonium-one-CWtMvVOS.mjs';
|
|
2
2
|
//# sourceMappingURL=magmonium-one.mjs.map
|
package/package.json
CHANGED
package/types/magmonium-one.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { ThemeColor, Theme, ThemeList, WebComponentConfig as WebComponentConfig$
|
|
|
8
8
|
import * as _ngrx_signals from '@ngrx/signals';
|
|
9
9
|
import * as _ngrx_signals_rxjs_interop from '@ngrx/signals/rxjs-interop';
|
|
10
10
|
import * as _angular_router from '@angular/router';
|
|
11
|
-
import { Router, Route, Routes, RouterStateSnapshot, UrlSerializer, UrlTree, ActivatedRouteSnapshot } from '@angular/router';
|
|
11
|
+
import { Router, Route, Routes, RouterStateSnapshot, UrlSerializer, UrlTree, CanActivateFn, ActivatedRouteSnapshot } from '@angular/router';
|
|
12
12
|
import * as dist_libs_cli_src from 'dist/libs/cli/src';
|
|
13
13
|
import * as _magmonium_one from '@magmonium/one';
|
|
14
14
|
import * as _angular_forms_signals from '@angular/forms/signals';
|
|
@@ -7464,7 +7464,67 @@ interface NavInstanceConfig {
|
|
|
7464
7464
|
*/
|
|
7465
7465
|
navInstanceLoad?: (params: Record<string, string>) => void;
|
|
7466
7466
|
}
|
|
7467
|
-
|
|
7467
|
+
/**
|
|
7468
|
+
* What a gate answers (m-one-ui CONTEXT.md NavVisibilitySource).
|
|
7469
|
+
*
|
|
7470
|
+
* **Three states, and one of them is a promise.** `true` / `false` are the
|
|
7471
|
+
* answer; `undefined` is *not answerable yet* — the state the gate reads has
|
|
7472
|
+
* not arrived, the same window `NavRowsConfig.loading` exists for and the same
|
|
7473
|
+
* answer `navInstance` gives a cold deep link; a `Promise` is a gate that has
|
|
7474
|
+
* to ask, which an entitlement routinely does.
|
|
7475
|
+
*
|
|
7476
|
+
* The promise is why this is a union rather than two members. A gate that
|
|
7477
|
+
* fetches and a gate that reads are the same question asked of the same
|
|
7478
|
+
* registration, and splitting them would make every consumer branch on which
|
|
7479
|
+
* kind it was looking at before it could ask at all.
|
|
7480
|
+
*/
|
|
7481
|
+
type NavVisibleAnswer = boolean | undefined | Promise<boolean>;
|
|
7482
|
+
/**
|
|
7483
|
+
* Whether one Nav is shown and reachable at all (m-one-ui CONTEXT.md
|
|
7484
|
+
* NavVisibilitySource). Registered under that Nav's own NavId beside whatever
|
|
7485
|
+
* else it registers — the configs are not exclusive, which is why every guard
|
|
7486
|
+
* here tests for its own key rather than for the absence of another's.
|
|
7487
|
+
*
|
|
7488
|
+
* Takes the path parameters for the reason `navInstance` does: a gate on
|
|
7489
|
+
* `/book/:isbn/admin` is routinely a question about the book above it, and a
|
|
7490
|
+
* signal could not have read one — the Router holds it, not a store.
|
|
7491
|
+
*
|
|
7492
|
+
* The two consumers part ways on everything but `true` and `false`, because a
|
|
7493
|
+
* Router can hold a navigation where a panel cannot hold a render. On
|
|
7494
|
+
* `undefined` the panel hides the row and the guard waits. On a `Promise` the
|
|
7495
|
+
* guard awaits it, and the panel — which has already rendered — hides the row,
|
|
7496
|
+
* resolves it once, remembers the answer and draws again.
|
|
7497
|
+
*
|
|
7498
|
+
* Hiding rather than showing while the answer is outstanding is the half that
|
|
7499
|
+
* is not symmetric: flashing a row the User may not be allowed to have leaks
|
|
7500
|
+
* the existence of the thing the gate was written to hide.
|
|
7501
|
+
*/
|
|
7502
|
+
interface NavVisibilityConfig {
|
|
7503
|
+
navVisible: (params: Record<string, string>) => NavVisibleAnswer;
|
|
7504
|
+
/**
|
|
7505
|
+
* Fired before the gate is believed, so a gate reading state the store does
|
|
7506
|
+
* not hold yet has something filling it (m-one-ui CONTEXT.md
|
|
7507
|
+
* NavVisibilitySource).
|
|
7508
|
+
*
|
|
7509
|
+
* This is what makes *is this app's uid the signed-in user* answerable on a
|
|
7510
|
+
* cold deep link: with no app loaded the gate reads `undefined`, answers
|
|
7511
|
+
* `undefined`, and both consumers would otherwise wait forever on a fetch
|
|
7512
|
+
* nobody started. What it names is a CacheMethod — state first, HTTP only on
|
|
7513
|
+
* a miss — so firing it on every navigation costs a state read in the warm
|
|
7514
|
+
* case, which is why it is not gated on the answer being missing.
|
|
7515
|
+
*
|
|
7516
|
+
* Optional: a gate reading only route parameters, or state some earlier
|
|
7517
|
+
* Screen always fills, needs no call of its own. The sibling of
|
|
7518
|
+
* `navInstanceLoad`.
|
|
7519
|
+
*
|
|
7520
|
+
* May answer a promise that settles when the load is done — hit, landed,
|
|
7521
|
+
* failed or dropped. The route guard waits on it before it asks the gate, so
|
|
7522
|
+
* a gate reading state that is partly filled (a map holding other keys) is
|
|
7523
|
+
* not believed until this load has had its say.
|
|
7524
|
+
*/
|
|
7525
|
+
navVisibleLoad?: (params: Record<string, string>) => void | Promise<void>;
|
|
7526
|
+
}
|
|
7527
|
+
type NavWidgetEntry = Type<unknown> | NavWidgetConfig | NavMenuConfig | NavRowsConfig | NavInstanceConfig | NavVisibilityConfig;
|
|
7468
7528
|
/**
|
|
7469
7529
|
* What an app hands `provideNavWidgets`. Keyed by NavId and nothing else — the
|
|
7470
7530
|
* same string as the nav asset filename and the route stamp (ADR 0014).
|
|
@@ -7473,6 +7533,7 @@ type NavWidgetMap = Partial<Record<NavIdKey, NavWidgetEntry>>;
|
|
|
7473
7533
|
declare function isNavMenuConfig(entry: NavWidgetEntry): entry is NavMenuConfig;
|
|
7474
7534
|
declare function isNavRowsConfig(entry: NavWidgetEntry): entry is NavRowsConfig;
|
|
7475
7535
|
declare function isNavInstanceConfig(entry: NavWidgetEntry): entry is NavInstanceConfig;
|
|
7536
|
+
declare function isNavVisibilityConfig(entry: NavWidgetEntry): entry is NavVisibilityConfig;
|
|
7476
7537
|
/**
|
|
7477
7538
|
* Multi-provided, and resolved **last-wins**: the library provides its own
|
|
7478
7539
|
* Platform Nav panels first so an app registering at the same NavId replaces
|
|
@@ -7508,6 +7569,7 @@ declare class FrameComponent {
|
|
|
7508
7569
|
navMap: _angular_core.Signal<_magmonium_one.NavMap>;
|
|
7509
7570
|
wcConfigMap: _angular_core.Signal<Record<string, dist_libs_cli_src.WebComponentConfig>>;
|
|
7510
7571
|
navLoading: _angular_core.Signal<boolean>;
|
|
7572
|
+
visibilityAnswers: _angular_core.Signal<Record<string, boolean>>;
|
|
7511
7573
|
navigationEnd: _angular_core.Signal<_angular_router.RouterStateSnapshot>;
|
|
7512
7574
|
router: _angular_router.Router;
|
|
7513
7575
|
id: _angular_core.Signal<string>;
|
|
@@ -7529,6 +7591,16 @@ declare class FrameComponent {
|
|
|
7529
7591
|
params: Record<string, string>;
|
|
7530
7592
|
load: (params: Record<string, string>) => void;
|
|
7531
7593
|
}[]>;
|
|
7594
|
+
hiddenNavIds: _angular_core.Signal<ReadonlySet<string>>;
|
|
7595
|
+
visibilityPending: _angular_core.Signal<{
|
|
7596
|
+
key: string;
|
|
7597
|
+
answer: Promise<boolean>;
|
|
7598
|
+
}[]>;
|
|
7599
|
+
visibilityLoaders: _angular_core.Signal<{
|
|
7600
|
+
key: string;
|
|
7601
|
+
params: Record<string, string>;
|
|
7602
|
+
load: (params: Record<string, string>) => void;
|
|
7603
|
+
}[]>;
|
|
7532
7604
|
addressFor: (navId: string, params?: Record<string, string | number>) => string;
|
|
7533
7605
|
goToNav: (navId: string, params?: Record<string, string | number>, options?: {
|
|
7534
7606
|
keepPanel?: boolean;
|
|
@@ -7567,6 +7639,7 @@ declare class FrameComponent {
|
|
|
7567
7639
|
navMap: _magmonium_one.NavMap;
|
|
7568
7640
|
wcConfigMap: Record<string, dist_libs_cli_src.WebComponentConfig>;
|
|
7569
7641
|
navLoading: boolean;
|
|
7642
|
+
visibilityAnswers: Record<string, boolean>;
|
|
7570
7643
|
}>;
|
|
7571
7644
|
protected readonly device: DeviceService;
|
|
7572
7645
|
protected readonly isPreview: boolean;
|
|
@@ -7679,6 +7752,7 @@ declare const NavStore: _angular_core.Type<{
|
|
|
7679
7752
|
navMap: Signal<NavMap>;
|
|
7680
7753
|
wcConfigMap: Signal<Record<string, WebComponentConfig$1>>;
|
|
7681
7754
|
navLoading: Signal<boolean>;
|
|
7755
|
+
visibilityAnswers: Signal<Record<string, boolean>>;
|
|
7682
7756
|
navigationEnd: Signal<RouterStateSnapshot>;
|
|
7683
7757
|
router: Router;
|
|
7684
7758
|
id: Signal<string>;
|
|
@@ -7700,6 +7774,16 @@ declare const NavStore: _angular_core.Type<{
|
|
|
7700
7774
|
params: Record<string, string>;
|
|
7701
7775
|
load: (params: Record<string, string>) => void;
|
|
7702
7776
|
}[]>;
|
|
7777
|
+
hiddenNavIds: Signal<ReadonlySet<string>>;
|
|
7778
|
+
visibilityPending: Signal<{
|
|
7779
|
+
key: string;
|
|
7780
|
+
answer: Promise<boolean>;
|
|
7781
|
+
}[]>;
|
|
7782
|
+
visibilityLoaders: Signal<{
|
|
7783
|
+
key: string;
|
|
7784
|
+
params: Record<string, string>;
|
|
7785
|
+
load: (params: Record<string, string>) => void;
|
|
7786
|
+
}[]>;
|
|
7703
7787
|
addressFor: (navId: string, params?: Record<string, string | number>) => string;
|
|
7704
7788
|
goToNav: (navId: string, params?: Record<string, string | number>, options?: {
|
|
7705
7789
|
keepPanel?: boolean;
|
|
@@ -7738,6 +7822,7 @@ declare const NavStore: _angular_core.Type<{
|
|
|
7738
7822
|
navMap: NavMap;
|
|
7739
7823
|
wcConfigMap: Record<string, WebComponentConfig$1>;
|
|
7740
7824
|
navLoading: boolean;
|
|
7825
|
+
visibilityAnswers: Record<string, boolean>;
|
|
7741
7826
|
}>>;
|
|
7742
7827
|
|
|
7743
7828
|
interface GetNavContext {
|
|
@@ -7952,6 +8037,45 @@ declare const toHostNavId: (localNavId: string, hostNavId: string) => string;
|
|
|
7952
8037
|
/** Inverse of `toHostNavId`, for asking a Remote for its own asset. */
|
|
7953
8038
|
declare const toLocalNavId: (hostScopedNavId: string, hostNavId: string) => string | undefined;
|
|
7954
8039
|
|
|
8040
|
+
/**
|
|
8041
|
+
* The route half of a [NavVisibilityRule] (m-one-ui CONTEXT.md). One guard for
|
|
8042
|
+
* the whole tree rather than one per rule: every emitted route already carries
|
|
8043
|
+
* `data: { navId }` (libs/one ADR 0014), and a NavId *is* its ancestry, so the
|
|
8044
|
+
* guard walks up from the route it was stamped on and asks every ancestor's
|
|
8045
|
+
* registration in turn.
|
|
8046
|
+
*
|
|
8047
|
+
* That ancestry walk is why the cascade works at all. Routes are emitted flat
|
|
8048
|
+
* until a Screen draws a RouterOutletControl, so a child Nav is routinely a
|
|
8049
|
+
* *sibling* route rather than a nested one — a `canActivate` on the parent
|
|
8050
|
+
* entry would guard nothing below it. Walking the id covers both shapes with
|
|
8051
|
+
* one stamp and no knowledge of which one the emitter chose.
|
|
8052
|
+
*
|
|
8053
|
+
* It **waits** where the menu hides. `navVisible` answering `undefined` means
|
|
8054
|
+
* the state the gate reads has not arrived, and a Router can hold a navigation
|
|
8055
|
+
* where a panel cannot hold a render: refusing on `undefined` would bounce
|
|
8056
|
+
* every cold deep link into a guarded page, which is the whole case the gate's
|
|
8057
|
+
* arguments are resolved before it is called for.
|
|
8058
|
+
*
|
|
8059
|
+
* It also **fires the loads itself, and waits for them** before it asks any
|
|
8060
|
+
* gate. The nav store fires them too, but a deep link is precisely the
|
|
8061
|
+
* navigation that happens before any panel has drawn — the store's own effect
|
|
8062
|
+
* has not run for this address yet, and waiting for it would be waiting for the
|
|
8063
|
+
* thing the wait is supposed to end. A load answers a promise that settles when
|
|
8064
|
+
* its request is done, and a gate is only asked after every one has: a gate
|
|
8065
|
+
* reading a map that already holds *other* keys answers `false`, not
|
|
8066
|
+
* `undefined`, and believing it before the load landed would bounce a
|
|
8067
|
+
* reachable page. A CacheMethod shares one in-flight request per argument set,
|
|
8068
|
+
* so the two firings cost one request between them.
|
|
8069
|
+
*
|
|
8070
|
+
* And it **awaits** where the menu remembers. A gate may be `async` — an
|
|
8071
|
+
* entitlement is routinely a call the client has to make — and awaiting it is
|
|
8072
|
+
* the plainest thing a `canActivate` does. The panel cannot: it has already
|
|
8073
|
+
* rendered, so the nav store settles the same promise once and keeps the
|
|
8074
|
+
* answer.
|
|
8075
|
+
*/
|
|
8076
|
+
|
|
8077
|
+
declare const navVisibilityGuard: CanActivateFn;
|
|
8078
|
+
|
|
7955
8079
|
declare class NavComponent {
|
|
7956
8080
|
#private;
|
|
7957
8081
|
isHost: _angular_core.InputSignal<boolean>;
|
|
@@ -8010,6 +8134,7 @@ declare class NavDetailsComponent {
|
|
|
8010
8134
|
navMap: _angular_core.Signal<_magmonium_one.NavMap>;
|
|
8011
8135
|
wcConfigMap: _angular_core.Signal<Record<string, dist_libs_cli_src.WebComponentConfig>>;
|
|
8012
8136
|
navLoading: _angular_core.Signal<boolean>;
|
|
8137
|
+
visibilityAnswers: _angular_core.Signal<Record<string, boolean>>;
|
|
8013
8138
|
navigationEnd: _angular_core.Signal<_angular_router.RouterStateSnapshot>;
|
|
8014
8139
|
router: _angular_router.Router;
|
|
8015
8140
|
id: _angular_core.Signal<string>;
|
|
@@ -8031,6 +8156,16 @@ declare class NavDetailsComponent {
|
|
|
8031
8156
|
params: Record<string, string>;
|
|
8032
8157
|
load: (params: Record<string, string>) => void;
|
|
8033
8158
|
}[]>;
|
|
8159
|
+
hiddenNavIds: _angular_core.Signal<ReadonlySet<string>>;
|
|
8160
|
+
visibilityPending: _angular_core.Signal<{
|
|
8161
|
+
key: string;
|
|
8162
|
+
answer: Promise<boolean>;
|
|
8163
|
+
}[]>;
|
|
8164
|
+
visibilityLoaders: _angular_core.Signal<{
|
|
8165
|
+
key: string;
|
|
8166
|
+
params: Record<string, string>;
|
|
8167
|
+
load: (params: Record<string, string>) => void;
|
|
8168
|
+
}[]>;
|
|
8034
8169
|
addressFor: (navId: string, params?: Record<string, string | number>) => string;
|
|
8035
8170
|
goToNav: (navId: string, params?: Record<string, string | number>, options?: {
|
|
8036
8171
|
keepPanel?: boolean;
|
|
@@ -8069,6 +8204,7 @@ declare class NavDetailsComponent {
|
|
|
8069
8204
|
navMap: _magmonium_one.NavMap;
|
|
8070
8205
|
wcConfigMap: Record<string, dist_libs_cli_src.WebComponentConfig>;
|
|
8071
8206
|
navLoading: boolean;
|
|
8207
|
+
visibilityAnswers: Record<string, boolean>;
|
|
8072
8208
|
}>;
|
|
8073
8209
|
_device: DeviceService;
|
|
8074
8210
|
private readonly _settingsSearch;
|
|
@@ -8128,6 +8264,7 @@ declare class NavHeaderComponent {
|
|
|
8128
8264
|
navMap: _angular_core.Signal<_magmonium_one.NavMap>;
|
|
8129
8265
|
wcConfigMap: _angular_core.Signal<Record<string, dist_libs_cli_src.WebComponentConfig>>;
|
|
8130
8266
|
navLoading: _angular_core.Signal<boolean>;
|
|
8267
|
+
visibilityAnswers: _angular_core.Signal<Record<string, boolean>>;
|
|
8131
8268
|
navigationEnd: _angular_core.Signal<_angular_router.RouterStateSnapshot>;
|
|
8132
8269
|
router: _angular_router.Router;
|
|
8133
8270
|
id: _angular_core.Signal<string>;
|
|
@@ -8149,6 +8286,16 @@ declare class NavHeaderComponent {
|
|
|
8149
8286
|
params: Record<string, string>;
|
|
8150
8287
|
load: (params: Record<string, string>) => void;
|
|
8151
8288
|
}[]>;
|
|
8289
|
+
hiddenNavIds: _angular_core.Signal<ReadonlySet<string>>;
|
|
8290
|
+
visibilityPending: _angular_core.Signal<{
|
|
8291
|
+
key: string;
|
|
8292
|
+
answer: Promise<boolean>;
|
|
8293
|
+
}[]>;
|
|
8294
|
+
visibilityLoaders: _angular_core.Signal<{
|
|
8295
|
+
key: string;
|
|
8296
|
+
params: Record<string, string>;
|
|
8297
|
+
load: (params: Record<string, string>) => void;
|
|
8298
|
+
}[]>;
|
|
8152
8299
|
addressFor: (navId: string, params?: Record<string, string | number>) => string;
|
|
8153
8300
|
goToNav: (navId: string, params?: Record<string, string | number>, options?: {
|
|
8154
8301
|
keepPanel?: boolean;
|
|
@@ -8187,6 +8334,7 @@ declare class NavHeaderComponent {
|
|
|
8187
8334
|
navMap: _magmonium_one.NavMap;
|
|
8188
8335
|
wcConfigMap: Record<string, dist_libs_cli_src.WebComponentConfig>;
|
|
8189
8336
|
navLoading: boolean;
|
|
8337
|
+
visibilityAnswers: Record<string, boolean>;
|
|
8190
8338
|
}>;
|
|
8191
8339
|
_searchStore: {
|
|
8192
8340
|
query: _angular_core.Signal<string>;
|
|
@@ -9567,5 +9715,5 @@ interface AuthResult {
|
|
|
9567
9715
|
}
|
|
9568
9716
|
declare function injectAuthenticate(): () => Promise<AuthResult>;
|
|
9569
9717
|
|
|
9570
|
-
export { ACCESS_DOMAINS, APP_CONTEXT_REF, ASSET_BASE_URL, AccordionBodyDirective, AccordionComponent, AccordionGroupComponent, ActionComponent, AnimatedGraphsComponent, AppCardComponent, AppRelationType, AppTileComponent, AssetStore, AssetUrlPipe, Assets, AuthActivityPageComponent, AuthApiService, AuthStore, AutosizeDirective, BadgeComponent, BandingComponent, BaseArrayInputComponent, BaseRootWebComponent, BaseWebComponent, ButtonComponent, ButtonGroupComponent, COMPONENT_INPUT_REGISTRY, CardComponent, CardWrapperComponent, CarouselComponent, ChartComponent, ChatBubbleComponent, CheckboxInputComponent, ClearableInputComponent, ColComponent, ColorPickerInputComponent, CommentItemComponent, CommentsApiService, CommentsComponent, CommentsStore, CompactNumberPipe, ComponentInputComponent, ComponentStepperComponent, ConfigComponent, ConfirmComponent, ContextMenuComponent, CustomIconClass, CustomIconEditComponent, DEFAULT_FILTER_RANGE_MODE, DEFAULT_FILTER_VARIANT, DEFAULT_NAV_PARAM, DEFAULT_NAV_SEGMENT, DEFAULT_SIZE, DashboardCardComponent, DateInputComponent, DatePickerComponent, DeviceService, 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, MRefDirective, MStepComponent, MURL_PARAM, MURL_SEP, ManifestEnrichmentService, MenuComponent, ModalDirective, ModalRef, ModalStore, MoneyPipe, MultiRangeInputComponent, MurlUrlSerializer, NAV_DEFAULT_MURL, NAV_ID_SEP, NAV_MAIN_BUTTONS, NAV_SEGMENT_RE, NAV_STORE_REF, NAV_WC_COMPONENTS, NAV_WIDGET_MAP, NavComponent, NavDetailsComponent, NavHeaderComponent, NavMenuComponent, NavStore, NavTrailComponent, NothingComponent, NotificationElementComponent, NotificationGroupComponent, NotificationPopupComponent, NotificationService, NotificationStore, NotificationType, NotificationWidgetComponent, ONE_ASSET_BASE_URL, OPTIONS_SOURCE, OVERLAY_WIDGETS, OneApp, OptionsSourceDirective, OverlayBodyComponent, OverlayRef, OverlayService, PLATFORM_BUTTON_NAV_IDS, PLATFORM_EXTENSIBLE_NAV_IDS, PLATFORM_NAV_MAP, PLATFORM_ROOT_CHILDREN, PaginationComponent, PanelComponent, PercentagePipe, PlaygroundComponent, PositionDirective, PwaInstallComponent, ROOT_NAV, RadioGroupComponent, RadioInputComponent, RangeInputComponent, RatingInputComponent, ReactiveElementComponent, RemoteComponent, RemoteLoaderService, ResizeElementComponent, RouteContainer, RowComponent, SEARCH_QUERY, SEARCH_RESULTS_EVENT, SECTION_ACCORDION_GROUP, SECTION_FORM_CONTEXT, SHARED_ICONS, SIZE_CONTEXT, ScoreComponent, ScrollComponent, ScrollService, SearchPanelComponent, SearchStore, SearchUserPanelComponent, SectionAccordionDirective, SectionAccordionGroupDirective, SectionBackComponent, SectionBadgesComponent, SectionButtonGroupComponent, SectionCardComponent, SectionCarouselComponent, SectionComponent, SectionFilterComponent, SectionFilterGroupComponent, SectionFilterMenuComponent, SectionFilterPanelComponent, SectionFilterRangePanelComponent, SectionFooterComponent, SectionFormComponent, SectionFormItemComponent, SectionHeaderComponent, SectionHeroComponent, SectionPaginationComponent, SectionSearchComponent, SectionStepperComponent, SectionTabsComponent, SectionToggleComponent, SectionToggleItemDirective, SelectableCardInputComponent, SelectorDirective, SettingsSearchBarComponent, SettingsSearchService, ShapeComponent, SharedStoreRegistry, SidePanelDirective, Size, SocketStore, SortComponent, StatComponent, StepComponent, StepperComponent, StepsComponent, StorageService, StrokeLinecap, StrokeLinejoin, SummaryComponent, SvgGeneratorComponent, SvgGeneratorService, SvgService, TOTAL_COLUMNS, TRANSLATION_SOURCE, TableComponent, TableFilterCondition, TechnicalMeterComponent, TextInputComponent, TextOutputComponent, TextareaInputComponent, ThemeComponent, ThemeDataService, ThemeService, ThemeStore, TimeAgoPipe, TimelineComponent, ToggleButtonComponent, ToggleInputComponent, ToggleRadioInputComponent, ToolTipDirective, TooltipComponent, TranslatePipe, TranslateService, TreeGridComponent, URL_SEP, USER_STORE_REF, USER_TAB_MAP, UniverseComponent, UserApiService, UserAvatarComponent, UserComponent, UserNavComponent, UserSettingsComponent, UserStore, WC_ROUTE_CHANGED_EVENT, WC_SEARCH_GROUPS, WIN_USER_TAB_HOOK, WIN_USER_TAB_KEY, WatermarkComponent, WcRouterStore, WrapperInputComponent, anchorNavId, applyColorsToElement, assetOptions, bootstrapMagApp, bootstrapPwaInstall, buildWcBaseUrl, calculateLuminance, calculateRanks, cellText, checkFilterCondition, childNavId, classListSignal, coerceSize, cornerEdge, cornerSide, createMap, createPlatformNavMap, deriveAvatarGradient, deriveContrastColor, deriveOppositeColor, derivePropertyName, emailValidation, evaluate, evaluateBool, 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, injectInstallApp, injectParentSize, injectScrollSticky, isButtonName, isCancelledComputed, isExtensiblePlatformNavId, isJson, isLoadingComputed, isLocalhost, isNavInstanceConfig, isNavMenuConfig, isNavRowsConfig, isPlatformNavId, isSize, isTierPreview, isUrlLocalhost, isValidNavId, isValidNavSegment, isWebComponent, linkToId, linkToNav, loadingActions, mInterceptor, manualValidation, matchFieldValidation, maxLengthValidation, maxValidation, mergePlatformNav, mergeUnique, mergeUniqueBy, mergeUniqueWith, minAgeValidation, minLengthValidation, minValidation, miniMarkToHtml, navIdChain, navIdFor, navIdSegment, navIdToRoutePath, navIdToSegments, navParamOf, navToId, normalizeAssetOptions, parentNavId, parseAddress, parseColor, parsePatternNames, patternValidation, patternsValidation, platformNavWidgets, privateGuard, processImageToSvg, provideAppContext, provideMagAppConfig, provideMagWcConfig, provideMagWcRoutes, provideModalComponents, provideMurlUrlSerializer, provideNavWidgets, provideOverlayWidgets, providePlatformNavWidgets, provideSearch, provideSizeContext, provideUserTabs, publicGuard, readFieldPatterns, renderAddress, requiredValidation, resolveConfigAsset, resolveIconSize, resolvePallet, resolvePatternRules, resolveSize, rgbToHex, rgbToHsl, rowHasChildren, samePatterns, segmentsToNavId, setProperty, setTreeGridChildren, settingsWidgets, shouldShowBadge, splitNavId, splitOnMatch, stringToColor, toAttrBool, toAttrNumber, toCssLength, toHostNavId, toLength, toLocalNavId, toggleTreeGridRow, unfetchedPlatformNav, urlValidation };
|
|
9571
|
-
export type { Accordion, AccordionGroup, AccordionVariant, ActionNotification, Align, AnimatedGraphConfig, AnimatedGraphCurveInput, AppCardData, AppCardInputs, AppCardVariant, AppContextRef, AppHint, AppManifest, AppRelation, 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, 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, MultiRangeInput, Nav, NavIdKey, NavInstanceConfig, NavKind, NavMap, NavMenuConfig, NavPresentation, NavRow, NavRowsConfig, NavStoreRef, NavWidgetConfig, NavWidgetEntry, NavWidgetMap, Notification, NotificationSeverity, NotificationState, NotificationUser, NumberInput, Option, OtpInput, OverlayConfig, OverlayWidgetLoader, OverlayWidgetMap, PageChangeEvent, Pagination, PaginationWindow, PanelOverlayConfig, PanelTrigger, PasswordInput, PatternRule, Position, QueryParams, QueryValue, RadioGroupInput, RadioInput, RangeInput, RatingInput, RemoteSelectorConfig, ResolvedUserTab, RgbColor, ScreenOverlayTrigger, SearchChangeEvent, SearchInput, SearchResult, SearchSourceGroup, SearchState, SectionAccordion, SectionAccordionGroup, SectionAccordionGroupContext, SectionAccordionRef, SectionButtonGroupConfig, SectionCarousel, SectionCarouselContext, SectionCarouselItem, SectionFilterGroupConfig, SectionFormConfig, SectionFormContext, SectionHero, SectionHeroVariant, SectionToggleItem, SectionToggleItemContext, SelectableCardContext, SelectableCardInput, SelectableCardItem, SelectionAction, SelectionActionEvent, SelectionChangeEvent, SelectorConfig, Shape, ShapeType, ShapeVariant, SharedToken, SharedUser, SizeContext, SizeDeclarer, SocketMessage, Sort, SortChange, SortChangeEvent, SortOption, SortOrder, SqueezeMode, StatAlign, StatCornerEdge, StatCornerPosition, StatCornerSide, StatSurface, StatVariant, Step, Stepper, StepperResponsiveConfig, StepperStep, Steps, StickyBehavior, Summary, SummaryAction, SummaryRow, SummaryRowType, Svg, SvgGenOptions, SvgGeneratorCoreOptions, SvgGeneratorEditOptions, TabGroup, TableConfig, TableFilterDef, TextInput, TextNotification, TextOutputAlign, TextOutputConfig, TextOutputFontWeight, TextOutputVariant, TextareaInput, Timeline, TimelineItem, ToggleInput, ToggleRadioInput, Tokens, TreeGridCellClickEvent, TreeGridLoadChildrenEvent, TreeGridRow, TreeGridRowSelectEvent, TreeGridToggleEvent, UniverseColorScheme, User, UserStoreRef, Version, Watermark, WebComponentConfig, WeeklyData };
|
|
9718
|
+
export { ACCESS_DOMAINS, APP_CONTEXT_REF, ASSET_BASE_URL, AccordionBodyDirective, AccordionComponent, AccordionGroupComponent, ActionComponent, AnimatedGraphsComponent, AppCardComponent, AppRelationType, AppTileComponent, AssetStore, AssetUrlPipe, Assets, AuthActivityPageComponent, AuthApiService, AuthStore, AutosizeDirective, BadgeComponent, BandingComponent, BaseArrayInputComponent, BaseRootWebComponent, BaseWebComponent, ButtonComponent, ButtonGroupComponent, COMPONENT_INPUT_REGISTRY, CardComponent, CardWrapperComponent, CarouselComponent, ChartComponent, ChatBubbleComponent, CheckboxInputComponent, ClearableInputComponent, ColComponent, ColorPickerInputComponent, CommentItemComponent, CommentsApiService, CommentsComponent, CommentsStore, CompactNumberPipe, ComponentInputComponent, ComponentStepperComponent, ConfigComponent, ConfirmComponent, ContextMenuComponent, CustomIconClass, CustomIconEditComponent, DEFAULT_FILTER_RANGE_MODE, DEFAULT_FILTER_VARIANT, DEFAULT_NAV_PARAM, DEFAULT_NAV_SEGMENT, DEFAULT_SIZE, DashboardCardComponent, DateInputComponent, DatePickerComponent, DeviceService, 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, MRefDirective, MStepComponent, MURL_PARAM, MURL_SEP, ManifestEnrichmentService, MenuComponent, ModalDirective, ModalRef, ModalStore, MoneyPipe, MultiRangeInputComponent, MurlUrlSerializer, NAV_DEFAULT_MURL, NAV_ID_SEP, NAV_MAIN_BUTTONS, NAV_SEGMENT_RE, NAV_STORE_REF, NAV_WC_COMPONENTS, NAV_WIDGET_MAP, NavComponent, NavDetailsComponent, NavHeaderComponent, NavMenuComponent, NavStore, NavTrailComponent, NothingComponent, NotificationElementComponent, NotificationGroupComponent, NotificationPopupComponent, NotificationService, NotificationStore, NotificationType, NotificationWidgetComponent, ONE_ASSET_BASE_URL, OPTIONS_SOURCE, OVERLAY_WIDGETS, OneApp, OptionsSourceDirective, OverlayBodyComponent, OverlayRef, OverlayService, PLATFORM_BUTTON_NAV_IDS, PLATFORM_EXTENSIBLE_NAV_IDS, PLATFORM_NAV_MAP, PLATFORM_ROOT_CHILDREN, PaginationComponent, PanelComponent, PercentagePipe, PlaygroundComponent, PositionDirective, PwaInstallComponent, ROOT_NAV, RadioGroupComponent, RadioInputComponent, RangeInputComponent, RatingInputComponent, ReactiveElementComponent, RemoteComponent, RemoteLoaderService, ResizeElementComponent, RouteContainer, RowComponent, SEARCH_QUERY, SEARCH_RESULTS_EVENT, SECTION_ACCORDION_GROUP, SECTION_FORM_CONTEXT, SHARED_ICONS, SIZE_CONTEXT, ScoreComponent, ScrollComponent, ScrollService, SearchPanelComponent, SearchStore, SearchUserPanelComponent, SectionAccordionDirective, SectionAccordionGroupDirective, SectionBackComponent, SectionBadgesComponent, SectionButtonGroupComponent, SectionCardComponent, SectionCarouselComponent, SectionComponent, SectionFilterComponent, SectionFilterGroupComponent, SectionFilterMenuComponent, SectionFilterPanelComponent, SectionFilterRangePanelComponent, SectionFooterComponent, SectionFormComponent, SectionFormItemComponent, SectionHeaderComponent, SectionHeroComponent, SectionPaginationComponent, SectionSearchComponent, SectionStepperComponent, SectionTabsComponent, SectionToggleComponent, SectionToggleItemDirective, SelectableCardInputComponent, SelectorDirective, SettingsSearchBarComponent, SettingsSearchService, ShapeComponent, SharedStoreRegistry, SidePanelDirective, Size, SocketStore, SortComponent, StatComponent, StepComponent, StepperComponent, StepsComponent, StorageService, StrokeLinecap, StrokeLinejoin, SummaryComponent, SvgGeneratorComponent, SvgGeneratorService, SvgService, TOTAL_COLUMNS, TRANSLATION_SOURCE, TableComponent, TableFilterCondition, TechnicalMeterComponent, TextInputComponent, TextOutputComponent, TextareaInputComponent, ThemeComponent, ThemeDataService, ThemeService, ThemeStore, TimeAgoPipe, TimelineComponent, ToggleButtonComponent, ToggleInputComponent, ToggleRadioInputComponent, ToolTipDirective, TooltipComponent, TranslatePipe, TranslateService, TreeGridComponent, URL_SEP, USER_STORE_REF, USER_TAB_MAP, UniverseComponent, UserApiService, UserAvatarComponent, UserComponent, UserNavComponent, UserSettingsComponent, UserStore, WC_ROUTE_CHANGED_EVENT, WC_SEARCH_GROUPS, WIN_USER_TAB_HOOK, WIN_USER_TAB_KEY, WatermarkComponent, WcRouterStore, WrapperInputComponent, anchorNavId, applyColorsToElement, assetOptions, bootstrapMagApp, bootstrapPwaInstall, buildWcBaseUrl, calculateLuminance, calculateRanks, cellText, checkFilterCondition, childNavId, classListSignal, coerceSize, cornerEdge, cornerSide, createMap, createPlatformNavMap, deriveAvatarGradient, deriveContrastColor, deriveOppositeColor, derivePropertyName, emailValidation, evaluate, evaluateBool, 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, injectInstallApp, injectParentSize, injectScrollSticky, isButtonName, isCancelledComputed, isExtensiblePlatformNavId, isJson, isLoadingComputed, isLocalhost, isNavInstanceConfig, isNavMenuConfig, isNavRowsConfig, isNavVisibilityConfig, isPlatformNavId, isSize, isTierPreview, isUrlLocalhost, isValidNavId, isValidNavSegment, isWebComponent, linkToId, linkToNav, loadingActions, mInterceptor, manualValidation, matchFieldValidation, maxLengthValidation, maxValidation, mergePlatformNav, mergeUnique, mergeUniqueBy, mergeUniqueWith, minAgeValidation, minLengthValidation, minValidation, miniMarkToHtml, navIdChain, navIdFor, navIdSegment, navIdToRoutePath, navIdToSegments, navParamOf, navToId, navVisibilityGuard, normalizeAssetOptions, parentNavId, parseAddress, parseColor, parsePatternNames, patternValidation, patternsValidation, platformNavWidgets, privateGuard, processImageToSvg, provideAppContext, provideMagAppConfig, provideMagWcConfig, provideMagWcRoutes, provideModalComponents, provideMurlUrlSerializer, provideNavWidgets, provideOverlayWidgets, providePlatformNavWidgets, provideSearch, provideSizeContext, provideUserTabs, publicGuard, readFieldPatterns, renderAddress, requiredValidation, resolveConfigAsset, resolveIconSize, resolvePallet, resolvePatternRules, resolveSize, rgbToHex, rgbToHsl, rowHasChildren, samePatterns, segmentsToNavId, setProperty, setTreeGridChildren, settingsWidgets, shouldShowBadge, splitNavId, splitOnMatch, stringToColor, toAttrBool, toAttrNumber, toCssLength, toHostNavId, toLength, toLocalNavId, toggleTreeGridRow, unfetchedPlatformNav, urlValidation };
|
|
9719
|
+
export type { Accordion, AccordionGroup, AccordionVariant, ActionNotification, Align, AnimatedGraphConfig, AnimatedGraphCurveInput, AppCardData, AppCardInputs, AppCardVariant, AppContextRef, AppHint, AppManifest, AppRelation, 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, 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, MultiRangeInput, Nav, NavIdKey, NavInstanceConfig, NavKind, NavMap, NavMenuConfig, NavPresentation, NavRow, NavRowsConfig, NavStoreRef, NavVisibilityConfig, NavVisibleAnswer, NavWidgetConfig, NavWidgetEntry, NavWidgetMap, Notification, NotificationSeverity, NotificationState, NotificationUser, NumberInput, Option, OtpInput, OverlayConfig, OverlayWidgetLoader, OverlayWidgetMap, PageChangeEvent, Pagination, PaginationWindow, PanelOverlayConfig, PanelTrigger, PasswordInput, PatternRule, Position, QueryParams, QueryValue, RadioGroupInput, RadioInput, RangeInput, RatingInput, RemoteSelectorConfig, ResolvedUserTab, RgbColor, ScreenOverlayTrigger, SearchChangeEvent, SearchInput, SearchResult, SearchSourceGroup, SearchState, SectionAccordion, SectionAccordionGroup, SectionAccordionGroupContext, SectionAccordionRef, SectionButtonGroupConfig, SectionCarousel, SectionCarouselContext, SectionCarouselItem, SectionFilterGroupConfig, SectionFormConfig, SectionFormContext, SectionHero, SectionHeroVariant, SectionToggleItem, SectionToggleItemContext, SelectableCardContext, SelectableCardInput, SelectableCardItem, SelectionAction, SelectionActionEvent, SelectionChangeEvent, SelectorConfig, Shape, ShapeType, ShapeVariant, SharedToken, SharedUser, SizeContext, SizeDeclarer, SocketMessage, Sort, SortChange, SortChangeEvent, SortOption, SortOrder, SqueezeMode, StatAlign, StatCornerEdge, StatCornerPosition, StatCornerSide, StatSurface, StatVariant, Step, Stepper, StepperResponsiveConfig, StepperStep, Steps, StickyBehavior, Summary, SummaryAction, SummaryRow, SummaryRowType, Svg, SvgGenOptions, SvgGeneratorCoreOptions, SvgGeneratorEditOptions, TabGroup, TableConfig, TableFilterDef, TextInput, TextNotification, TextOutputAlign, TextOutputConfig, TextOutputFontWeight, TextOutputVariant, TextareaInput, Timeline, TimelineItem, ToggleInput, ToggleRadioInput, Tokens, TreeGridCellClickEvent, TreeGridLoadChildrenEvent, TreeGridRow, TreeGridRowSelectEvent, TreeGridToggleEvent, UniverseColorScheme, User, UserStoreRef, Version, Watermark, WebComponentConfig, WeeklyData };
|