@magmonium/one 0.3.1 → 0.3.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/assets/docs/en/app-release.md +4 -3
- package/assets/i18n/en.json +1 -0
- package/fesm2022/{magmonium-one-image-editor-CPzYCC_n.mjs → magmonium-one-image-editor-CW-I0TUU.mjs} +2 -2
- package/fesm2022/{magmonium-one-image-editor-CPzYCC_n.mjs.map → magmonium-one-image-editor-CW-I0TUU.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-magmonium-one-BXlnho4e.mjs → magmonium-one-magmonium-one-DcsNdIJx.mjs} +585 -14
- package/fesm2022/magmonium-one-magmonium-one-DcsNdIJx.mjs.map +1 -0
- package/fesm2022/{magmonium-one-otp-C6RUv8ws.mjs → magmonium-one-otp-x-dc-FYj.mjs} +2 -2
- package/fesm2022/{magmonium-one-otp-C6RUv8ws.mjs.map → magmonium-one-otp-x-dc-FYj.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-password-Cz9Ig8UG.mjs → magmonium-one-password-BdD7B7cS.mjs} +2 -2
- package/fesm2022/{magmonium-one-password-Cz9Ig8UG.mjs.map → magmonium-one-password-BdD7B7cS.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-toggle-BNVDl--Z.mjs → magmonium-one-toggle-C5xiIieI.mjs} +2 -2
- package/fesm2022/{magmonium-one-toggle-BNVDl--Z.mjs.map → magmonium-one-toggle-C5xiIieI.mjs.map} +1 -1
- package/fesm2022/magmonium-one.mjs +1 -1
- package/package.json +1 -1
- package/types/magmonium-one.d.ts +200 -3
- package/fesm2022/magmonium-one-magmonium-one-BXlnho4e.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-DcsNdIJx.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-x-dc-FYj.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-otp-C6RUv8ws.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,S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,EAAA,eAAA,EAC3C,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,+qEAAA,CAAA,EAAA;oGAIQ,UAAU,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"magmonium-one-otp-x-dc-FYj.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;AAC9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,MAAA,EAAA,CAAA,+qEAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAES,cAAc,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,KAAA,EAAA,aAAA,EAAA,QAAA,EAAA,UAAA,EAAA,UAAA,EAAA,OAAA,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-Cz9Ig8UG.mjs → magmonium-one-password-BdD7B7cS.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-DcsNdIJx.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-BdD7B7cS.mjs.map
|
package/fesm2022/{magmonium-one-password-Cz9Ig8UG.mjs.map → magmonium-one-password-BdD7B7cS.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-password-
|
|
1
|
+
{"version":3,"file":"magmonium-one-password-BdD7B7cS.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,GA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A,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAIlE,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBA/ClC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EAAA,QAAA,EAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCT,EAAA,CAAA,EAAA,OAAA,EACQ,CAAC,cAAc,EAAE,mBAAmB,EAAE,eAAe,EAAE,aAAa,CAAC,EAAA,eAAA,EAE7D,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,s8HAAA,CAAA,EAAA;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { model, input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { g as BaseInputComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-
|
|
3
|
+
import { g as BaseInputComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-DcsNdIJx.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-C5xiIieI.mjs.map
|
package/fesm2022/{magmonium-one-toggle-BNVDl--Z.mjs.map → magmonium-one-toggle-C5xiIieI.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-toggle-
|
|
1
|
+
{"version":3,"file":"magmonium-one-toggle-C5xiIieI.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,oBAA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,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,OAAA,EAAA,eAAA,EAAA,OAAA,EAAA,eAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAnBrB;;;;;;;;;;;;;;AAcT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,+6GAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EACS,aAAa,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAIZ,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBArBhC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,EAAA,QAAA,EAChB;;;;;;;;;;;;;;AAcT,EAAA,CAAA,EAAA,OAAA,EACQ,CAAC,aAAa,CAAC,EAAA,eAAA,EAEP,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,+6GAAA,CAAA,EAAA;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as ACCESS_DOMAINS, l as APP_CONTEXT_REF, m as 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_DENIAL, ae as DEFAULT_DOC_DENSITY, af as DEFAULT_DOC_VARIANT, ag as DEFAULT_FILTER_RANGE_MODE, ah as DEFAULT_FILTER_VARIANT, ai as DEFAULT_NAV_PARAM, aj as DEFAULT_NAV_SEGMENT, ak as DEFAULT_SIZE, al as DOCK_MIN_PAGE_REMAINDER, am as DOCS_FOLDER, an as DOC_ACTION_ICONS, ao as DOC_DENSITIES, ap as DOC_EDIT_ACTIONS, aq as DOC_TOOLBAR_GROUPS, ar as DOC_VARIANTS, as as DashboardCardComponent, at as DateInputComponent, au as DatePickerComponent, av as DeviceService, aw as DocComponent, ax as DocEditorComponent, ay as DomService, az as Domain, aA as DotGridComponent, aB as DragListDirective, aC as DragListItemDirective, aD as DraggableDirective, aE as DropdownInputComponent, aF as FILTER_GROUP_CONTEXT, aG as FILTER_RANGE_MODES, aH as FILTER_VARIANTS, aI as FLEX_VARIANTS, aJ as FOLDER_PICK_LISTENER, aK as FORM_ASSET_FOLDER, aL as FileService, aM as FileUploadDirective, aN as FileUploadInputComponent, aO as FlexComponent, aP as FlexItemComponent, aQ as FormGroupComponent, aR as FrameComponent, aS as FreezeService, aT as GRID_BREAKPOINTS, aU as GetNavService, H as HeaderComponent, aV as HighlightDirective, aW as HttpService, aX as ICON_SOURCE, k as IS_DESIGN_MODE, aY as IS_SIDE_PANEL, aZ as IconComponent, a_ as ImgComponent, I as InputType, a$ as InstrumentScoreComponent, b0 as InterceptorObservables, b1 as JumbotronComponent, b2 as KeyValueComponent, b3 as LAYOUT_ASSET_FOLDER, b4 as LOGIN_COMPONENT, b5 as LOGIN_STORE, b6 as LanguageComponent, b7 as ListComponent, b8 as LogoComponent, b9 as MAG_SOCKET_EVENT, ba as MHeroColorDirective, bb as MHeroComponent, M as MODAL_REF, bc as MODAL_STORE_REF, bd as MRefDirective, be as MStepComponent, bf as MURL_PARAM, bg as MURL_SEP, bh as ManifestEnrichmentService, bi as MenuComponent, bj as ModalDirective, bk as ModalRef, bl as ModalStore, bm as MoneyPipe, bn as MultiRangeInputComponent, bo as MurlUrlSerializer, bp as NAV_DEFAULT_MURL, bq as NAV_ID_SEP, br as NAV_MAIN_BUTTONS, bs as NAV_SEGMENT_RE, bt as NAV_STORE_REF, bu as NAV_WC_COMPONENTS, bv as NAV_WIDGET_MAP, bw as NavComponent, bx as NavDetailsComponent, by as NavHeaderComponent, bz as NavMenuComponent, bA as NavStore, bB as NavTrailComponent, bC as NothingComponent, bD as NotificationElementComponent, bE as NotificationGroupComponent, bF as NotificationPopupComponent, bG as NotificationService, bH as NotificationStore, bI as NotificationType, bJ as NotificationWidgetComponent, bK as ONE_ASSET_BASE_URL, bL as OPTIONS_SOURCE, bM as OVERLAY_WIDGETS, bN as OneApp, bO as OptionsSourceDirective, bP as OverlayBodyComponent, bQ as OverlayRef, bR as OverlayService, bS as PLATFORM_BUTTON_NAV_IDS, bT as PLATFORM_EXTENSIBLE_NAV_IDS, bU as PLATFORM_NAV_MAP, bV as PLATFORM_ROOT_CHILDREN, bW as PaginationComponent, bX as PanelComponent, bY as PercentagePipe, bZ as PlaygroundComponent, b_ as PositionDirective, b$ as PwaInstallComponent, c0 as ROOT_NAV, c1 as RadioGroupComponent, c2 as RadioInputComponent, R as RangeInputComponent, c3 as RatingInputComponent, c4 as ReactiveElementComponent, c5 as RemoteComponent, c6 as RemoteLoaderService, c7 as ResizeElementComponent, c8 as RouteContainer, c9 as RowComponent, ca as SEARCH_QUERY, cb as SEARCH_RESULTS_EVENT, cc as SECTION_ACCORDION_GROUP, cd as SECTION_FORM_CONTEXT, ce as SHARED_ICONS, cf as SIZE_CONTEXT, cg as ScoreComponent, ch as ScrollComponent, ci as ScrollService, cj as SearchPanelComponent, ck as SearchStore, cl as SearchUserPanelComponent, cm as SectionAccordionDirective, cn as SectionAccordionGroupDirective, co as SectionBackComponent, cp as SectionBadgesComponent, cq as SectionButtonGroupComponent, cr as SectionCardComponent, cs as SectionCarouselComponent, ct as SectionComponent, cu as SectionFilterComponent, cv as SectionFilterGroupComponent, cw as SectionFilterMenuComponent, cx as SectionFilterPanelComponent, cy as SectionFilterRangePanelComponent, cz as SectionFooterComponent, cA as SectionFormComponent, cB as SectionFormItemComponent, cC as SectionHeaderComponent, cD as SectionHeroComponent, cE as SectionPaginationComponent, cF as SectionSearchComponent, cG as SectionStepperComponent, cH as SectionTabsComponent, cI as SectionToggleComponent, cJ as SectionToggleItemDirective, cK as SelectableCardInputComponent, cL as SelectorDirective, cM as SettingsSearchBarComponent, cN as SettingsSearchService, cO as ShapeComponent, cP as SharedStoreRegistry, cQ as SidePanelDirective, cR as Size, cS as SocketStore, cT as SortComponent, cU as StatComponent, cV as StepComponent, cW as StepperComponent, cX as StepsComponent, cY as StorageService, cZ as StrokeLinecap, c_ as StrokeLinejoin, c$ as SummaryComponent, d0 as SvgGeneratorComponent, d1 as SvgGeneratorService, d2 as SvgService, d3 as TOTAL_COLUMNS, d4 as TRANSLATION_SOURCE, d5 as TableComponent, d6 as TechnicalMeterComponent, d7 as TextInputComponent, j as TextOutputComponent, d8 as TextareaInputComponent, d9 as ThemeComponent, da as ThemeDataService, db as ThemeService, dc as ThemeStore, dd as TimeAgoPipe, de as TimelineComponent, df as ToggleButtonComponent, dg as ToggleInputComponent, dh as ToggleRadioInputComponent, di as ToolTipDirective, dj as TooltipComponent, T as TranslatePipe, dk as TranslateService, dl as TreeGridComponent, dm as URL_SEP, dn as USER_STORE_REF, dp as USER_TAB_MAP, dq as UniverseComponent, dr as UserApiService, ds as UserAvatarComponent, dt as UserComponent, du as UserNavComponent, dv as UserSettingsComponent, dw as UserStore, dx as WC_ROUTE_CHANGED_EVENT, dy as WC_SEARCH_GROUPS, dz as WIN_USER_TAB_HOOK, dA as WIN_USER_TAB_KEY, dB as WatermarkComponent, dC as WcRouterStore, dD as WrapperInputComponent, dE as anchorNavId, dF as applyColorsToElement, dG as applyDocEdit, dH as assetOptions, dI as bootstrapMagApp, dJ as bootstrapPwaInstall, dK as buildWcBaseUrl, dL as calculateLuminance, dM as calculateRanks, dN as cellText, dO as checkDoc, dP as checkFilterCondition, dQ as childNavId, dR as claimDenial, dS as classListSignal, dT as coerceSize, dU as cornerEdge, dV as cornerSide, dW as createMap, dX as createPlatformNavMap, dY as deriveAvatarGradient, dZ as deriveContrastColor, d_ as deriveOppositeColor, d$ as derivePropertyName, e0 as docActionKey, e1 as docAssetCandidates, e2 as docProblemKey, e3 as docRemotePath, e4 as emailValidation, e5 as evaluate, e6 as evaluateBool, e7 as fieldBoolean, e8 as fieldNumber, e9 as fieldString, ea as filterHoldsList, eb as filterHoldsOneBound, ec as filterHoldsOptions, ed as filterHoldsRange, ee as filterList, ef as filterNumber, eg as filterNumberList, eh as filterOne, ei as filterPanelOf, ej as filterPanelWidth, ek as filterRange, el as filterTreeGridRows, em as filterValueList, en as filterValues, eo as flattenTreeGridRows, ep as formatBadgeCount, eq as fullName, er as generateClipPath, es as generateTransform, et as getClassList, eu as getProperty, ev as getScrollParent, ew as getTierFromPreviewPath, ex as getTreeGridRow, ey as getUniqueId, ez as getValue, eA as hasErrorComputed, eB as hexToRgb, eC as hslToRgb, eD as initMagmoniumApp, eE as initialNotificationState, eF as initialState, eG as initials, eH as injectAuthenticate, eI as injectDefaultDenial, eJ as injectInstallApp, eK as injectParentSize, eL as injectScrollSticky, eM as isButtonName, eN as isCancelledComputed, eO as isExtensiblePlatformNavId, eP as isJson, eQ as isLoadingComputed, eR as isLocalhost, eS as isNavInstanceConfig, eT as isNavMenuConfig, eU as isNavRowsConfig, eV as isNavVisibilityConfig, eW as isPlatformNavId, eX as isSize, eY as isTierPreview, eZ as isUrlLocalhost, e_ as isValidNavId, e$ as isValidNavSegment, f0 as isWebComponent, f1 as linkToId, f2 as linkToNav, f3 as loadingActions, f4 as mInterceptor, f5 as manualValidation, f6 as matchFieldValidation, f7 as maxLengthValidation, f8 as maxValidation, f9 as mergePlatformNav, fa as mergeUnique, fb as mergeUniqueBy, fc as mergeUniqueWith, fd as minAgeValidation, fe as minLengthValidation, ff as minValidation, fg as miniMarkToHtml, fh as navIdChain, fi as navIdFor, fj as navIdSegment, fk as navIdToRoutePath, fl as navIdToSegments, fm as navParamOf, fn as navToId, fo as navVisibilityGuard, fp as normalizeAssetOptions, fq as offsetOfLine, fr as parentNavId, fs as parseAddress, ft as parseColor, fu as parsePatternNames, fv as patternValidation, fw as patternsValidation, fx as permissionRefusal, fy as platformNavWidgets, fz as privateGuard, fA as processImageToSvg, fB as provideAppContext, fC as provideMagAppConfig, fD as provideMagWcConfig, fE as provideMagWcRoutes, fF as provideModalComponents, fG as provideMurlUrlSerializer, fH as provideNavWidgets, fI as provideOverlayWidgets, fJ as providePlatformNavWidgets, fK as provideSearch, fL as provideSizeContext, fM as provideUserTabs, fN as publicGuard, fO as readFieldPatterns, fP as renderAddress, fQ as renderDocument, 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, f_ as samePatterns, f$ as segmentsToNavId, g0 as setProperty, g1 as setTreeGridChildren, g2 as settingsWidgets, g3 as shouldShowBadge, g4 as splitNavId, g5 as splitOnMatch, g6 as stringToColor, g7 as toAttrBool, g8 as toAttrNumber, g9 as toCssLength, ga as toHostNavId, gb as toLength, gc as toLocalNavId, gd as toggleTreeGridRow, ge as unfetchedPlatformNav, gf as ungroupedDocActions, gg as urlValidation } from './magmonium-one-magmonium-one-BXlnho4e.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 ClipboardService, a0 as ColComponent, a1 as ColorPickerInputComponent, a2 as CommentItemComponent, a3 as CommentsApiService, a4 as CommentsComponent, a5 as CommentsStore, a6 as CompactNumberPipe, a7 as ComponentInputComponent, a8 as ComponentStepperComponent, a9 as ConfigComponent, aa as ConfirmComponent, ab as ContextMenuComponent, ac as CustomIconClass, ad as CustomIconEditComponent, ae as DEFAULT_DENIAL, af as DEFAULT_DOC_DENSITY, ag as DEFAULT_DOC_VARIANT, ah as DEFAULT_FILTER_RANGE_MODE, ai as DEFAULT_FILTER_VARIANT, aj as DEFAULT_NAV_PARAM, ak as DEFAULT_NAV_SEGMENT, al as DEFAULT_SIZE, am as DOCK_MIN_PAGE_REMAINDER, an as DOCS_FOLDER, ao as DOC_ACTION_ICONS, ap as DOC_DENSITIES, aq as DOC_EDIT_ACTIONS, ar as DOC_TOOLBAR_GROUPS, as as DOC_VARIANTS, at as DashboardCardComponent, au as DateInputComponent, av as DatePickerComponent, aw as DeviceService, ax as DocComponent, ay as DocEditorComponent, az as DomService, aA as Domain, aB as DotGridComponent, aC as DragListDirective, aD as DragListItemDirective, aE as DraggableDirective, aF as DropdownInputComponent, aG as FILTER_GROUP_CONTEXT, aH as FILTER_RANGE_MODES, aI as FILTER_VARIANTS, aJ as FLEX_VARIANTS, aK as FOLDER_PICK_LISTENER, aL as FORM_ASSET_FOLDER, aM as FileService, aN as FileUploadDirective, aO as FileUploadInputComponent, aP as FlexComponent, aQ as FlexItemComponent, aR as FormGroupComponent, aS as FrameComponent, aT as FreezeService, aU as GRID_BREAKPOINTS, aV as GetNavService, H as HeaderComponent, aW as HighlightDirective, aX as HttpService, aY as ICON_SOURCE, k as IS_DESIGN_MODE, aZ as IS_SIDE_PANEL, a_ as IconComponent, a$ as ImgComponent, I as InputType, b0 as InstrumentScoreComponent, b1 as InterceptorObservables, b2 as JumbotronComponent, b3 as KeyValueComponent, b4 as LAYOUT_ASSET_FOLDER, b5 as LOGIN_COMPONENT, b6 as LOGIN_STORE, b7 as LanguageComponent, b8 as ListComponent, b9 as LogoComponent, ba as MAG_SOCKET_EVENT, bb as MHeroColorDirective, bc as MHeroComponent, M as MODAL_REF, bd as MODAL_STORE_REF, be as MRefDirective, bf as MStepComponent, bg as MURL_PARAM, bh as MURL_SEP, bi as ManifestEnrichmentService, bj as MenuComponent, bk as ModalDirective, bl as ModalRef, bm as ModalStore, bn as MoneyPipe, bo as MultiRangeInputComponent, bp as MurlUrlSerializer, bq as NAV_DEFAULT_MURL, br as NAV_ID_SEP, bs as NAV_MAIN_BUTTONS, bt as NAV_SEGMENT_RE, bu as NAV_STORE_REF, bv as NAV_WC_COMPONENTS, bw as NAV_WIDGET_MAP, bx as NavComponent, by as NavDetailsComponent, bz as NavHeaderComponent, bA as NavMenuComponent, bB as NavStore, bC as NavTrailComponent, bD as NothingComponent, bE as NotificationElementComponent, bF as NotificationGroupComponent, bG as NotificationPopupComponent, bH as NotificationService, bI as NotificationStore, bJ as NotificationType, bK as NotificationWidgetComponent, bL as ONE_ASSET_BASE_URL, bM as OPTIONS_SOURCE, bN as OVERLAY_WIDGETS, bO as OneApp, bP as OptionsSourceDirective, bQ as OverlayBodyComponent, bR as OverlayRef, bS as OverlayService, bT as PLATFORM_BUTTON_NAV_IDS, bU as PLATFORM_EXTENSIBLE_NAV_IDS, bV as PLATFORM_NAV_MAP, bW as PLATFORM_ROOT_CHILDREN, bX as PaginationComponent, bY as PanelComponent, bZ as PercentagePipe, b_ as PlaygroundComponent, b$ as PositionDirective, c0 as PwaInstallComponent, c1 as ROOT_NAV, c2 as RadioGroupComponent, c3 as RadioInputComponent, R as RangeInputComponent, c4 as RatingInputComponent, c5 as ReactiveElementComponent, c6 as RemoteComponent, c7 as RemoteLoaderService, c8 as ResizeElementComponent, c9 as RouteContainer, ca as RowComponent, cb as SEARCH_QUERY, cc as SEARCH_RESULTS_EVENT, cd as SECTION_ACCORDION_GROUP, ce as SECTION_FORM_CONTEXT, cf as SHARED_ICONS, cg as SIZE_CONTEXT, ch as ScoreComponent, ci as ScrollComponent, cj as ScrollService, ck as SearchPanelComponent, cl as SearchStore, cm as SearchUserPanelComponent, cn as SectionAccordionDirective, co as SectionAccordionGroupDirective, cp as SectionBackComponent, cq as SectionBadgesComponent, cr as SectionButtonGroupComponent, cs as SectionCardComponent, ct as SectionCarouselComponent, cu as SectionComponent, cv as SectionFilterComponent, cw as SectionFilterGroupComponent, cx as SectionFilterMenuComponent, cy as SectionFilterPanelComponent, cz as SectionFilterRangePanelComponent, cA as SectionFooterComponent, cB as SectionFormComponent, cC as SectionFormItemComponent, cD as SectionHeaderComponent, cE as SectionHeroComponent, cF as SectionPaginationComponent, cG as SectionSearchComponent, cH as SectionStepperComponent, cI as SectionTableCellComponent, cJ as SectionTableComponent, cK as SectionTableRowComponent, cL as SectionTableSortPipe, cM as SectionTabsComponent, cN as SectionToggleComponent, cO as SectionToggleItemDirective, cP as SelectableCardInputComponent, cQ as SelectorDirective, cR as SettingsSearchBarComponent, cS as SettingsSearchService, cT as ShapeComponent, cU as SharedStoreRegistry, cV as SidePanelDirective, cW as Size, cX as SocketStore, cY as SortComponent, cZ as StatComponent, c_ as StepComponent, c$ as StepperComponent, d0 as StepsComponent, d1 as StorageService, d2 as StrokeLinecap, d3 as StrokeLinejoin, d4 as SummaryComponent, d5 as SvgGeneratorComponent, d6 as SvgGeneratorService, d7 as SvgService, d8 as TOTAL_COLUMNS, d9 as TRANSLATION_SOURCE, da as TableComponent, db as TechnicalMeterComponent, dc as TextInputComponent, j as TextOutputComponent, dd as TextareaInputComponent, de as ThemeComponent, df as ThemeDataService, dg as ThemeService, dh as ThemeStore, di as TimeAgoPipe, dj as TimelineComponent, dk as ToggleButtonComponent, dl as ToggleInputComponent, dm as ToggleRadioInputComponent, dn as ToolTipDirective, dp as TooltipComponent, T as TranslatePipe, dq as TranslateService, dr as TreeGridComponent, ds as URL_SEP, dt as USER_STORE_REF, du as USER_TAB_MAP, dv as UniverseComponent, dw as UserApiService, dx as UserAvatarComponent, dy as UserComponent, dz as UserNavComponent, dA as UserSettingsComponent, dB as UserStore, dC as WC_ROUTE_CHANGED_EVENT, dD as WC_SEARCH_GROUPS, dE as WIN_USER_TAB_HOOK, dF as WIN_USER_TAB_KEY, dG as WatermarkComponent, dH as WcRouterStore, dI as WrapperInputComponent, dJ as anchorNavId, dK as applyColorsToElement, dL as applyDocEdit, dM as assetOptions, dN as bootstrapMagApp, dO as bootstrapPwaInstall, dP as buildWcBaseUrl, dQ as calculateLuminance, dR as calculateRanks, dS as cellText, dT as checkDoc, dU as checkFilterCondition, dV as childNavId, dW as claimDenial, dX as classListSignal, dY as coerceSize, dZ as cornerEdge, d_ as cornerSide, d$ as createMap, e0 as createPlatformNavMap, e1 as deriveAvatarGradient, e2 as deriveContrastColor, e3 as deriveOppositeColor, e4 as derivePropertyName, e5 as docActionKey, e6 as docAssetCandidates, e7 as docProblemKey, e8 as docRemotePath, e9 as emailValidation, ea as evaluate, eb as evaluateBool, ec as fieldBoolean, ed as fieldNumber, ee as fieldString, ef as filterHoldsList, eg as filterHoldsOneBound, eh as filterHoldsOptions, ei as filterHoldsRange, ej as filterList, ek as filterNumber, el as filterNumberList, em as filterOne, en as filterPanelOf, eo as filterPanelWidth, ep as filterRange, eq as filterTreeGridRows, er as filterValueList, es as filterValues, et as flattenTreeGridRows, eu as formatBadgeCount, ev as fullName, ew as generateClipPath, ex as generateTransform, ey as getClassList, ez as getProperty, eA as getScrollParent, eB as getTierFromPreviewPath, eC as getTreeGridRow, eD as getUniqueId, eE as getValue, eF as hasErrorComputed, eG as hexToRgb, eH as hslToRgb, eI as initMagmoniumApp, eJ as initialNotificationState, eK as initialState, eL as initials, eM as injectAuthenticate, eN as injectDefaultDenial, eO as injectInstallApp, eP as injectParentSize, eQ as injectScrollSticky, eR as isButtonName, eS as isCancelledComputed, eT as isExtensiblePlatformNavId, eU as isJson, eV as isLoadingComputed, eW as isLocalhost, eX as isNavInstanceConfig, eY as isNavMenuConfig, eZ as isNavRowsConfig, e_ as isNavVisibilityConfig, e$ as isPlatformNavId, f0 as isSize, f1 as isTierPreview, f2 as isUrlLocalhost, f3 as isValidNavId, f4 as isValidNavSegment, f5 as isWebComponent, f6 as linkToId, f7 as linkToNav, f8 as loadingActions, f9 as mInterceptor, fa as manualValidation, fb as matchFieldValidation, fc as maxLengthValidation, fd as maxValidation, fe as mergePlatformNav, ff as mergeUnique, fg as mergeUniqueBy, fh as mergeUniqueWith, fi as minAgeValidation, fj as minLengthValidation, fk as minValidation, fl as miniMarkToHtml, fm as navIdChain, fn as navIdFor, fo as navIdSegment, fp as navIdToRoutePath, fq as navIdToSegments, fr as navParamOf, fs as navToId, ft as navVisibilityGuard, fu as nextSectionTableSort, fv as normalizeAssetOptions, fw as offsetOfLine, fx as parentNavId, fy as parseAddress, fz as parseColor, fA as parsePatternNames, fB as patternValidation, fC as patternsValidation, fD as permissionRefusal, fE as platformNavWidgets, fF as privateGuard, fG as processImageToSvg, fH as provideAppContext, fI as provideMagAppConfig, fJ as provideMagWcConfig, fK as provideMagWcRoutes, fL as provideModalComponents, fM as provideMurlUrlSerializer, fN as provideNavWidgets, fO as provideOverlayWidgets, fP as providePlatformNavWidgets, fQ as provideSearch, fR as provideSizeContext, fS as provideUserTabs, fT as publicGuard, fU as readFieldPatterns, fV as renderAddress, fW as renderDocument, fX as requiredValidation, fY as resolveConfigAsset, fZ as resolveIconSize, f_ as resolvePallet, f$ as resolvePatternRules, g0 as resolveSize, g1 as rgbToHex, g2 as rgbToHsl, g3 as rowHasChildren, g4 as samePatterns, g5 as sectionTableColumnId, g6 as sectionTableColumnWidths, g7 as sectionTableFrozenCount, g8 as segmentsToNavId, g9 as setProperty, ga as setTreeGridChildren, gb as settingsWidgets, gc as shouldShowBadge, gd as sortSectionTableRows, ge as splitNavId, gf as splitOnMatch, gg as stringToColor, gh as toAttrBool, gi as toAttrNumber, gj as toCssLength, gk as toHostNavId, gl as toLength, gm as toLocalNavId, gn as toggleTreeGridRow, go as unfetchedPlatformNav, gp as ungroupedDocActions, gq as urlValidation } from './magmonium-one-magmonium-one-DcsNdIJx.mjs';
|
|
2
2
|
//# sourceMappingURL=magmonium-one.mjs.map
|
package/package.json
CHANGED
package/types/magmonium-one.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ declare const LAYOUT_ASSET_FOLDER: {
|
|
|
49
49
|
readonly section_carousel: "section_carousels";
|
|
50
50
|
readonly text_output: "text_outputs";
|
|
51
51
|
readonly list: "lists";
|
|
52
|
+
readonly section_table: "section_tables";
|
|
52
53
|
};
|
|
53
54
|
|
|
54
55
|
declare const FORM_ASSET_FOLDER: {
|
|
@@ -507,6 +508,63 @@ type Config = {
|
|
|
507
508
|
variant?: string;
|
|
508
509
|
};
|
|
509
510
|
|
|
511
|
+
type SectionTableAlign = 'left' | 'center' | 'right';
|
|
512
|
+
/** What a sorting column compares its values as. */
|
|
513
|
+
type SectionTableDataType = 'text' | 'number' | 'date';
|
|
514
|
+
type SectionTableSortDirection = 'asc' | 'desc';
|
|
515
|
+
/**
|
|
516
|
+
* A SectionTable's look. It never draws a panel border: `zebra` shades every
|
|
517
|
+
* other row, `compact` and `spacious` tighten or loosen the cell padding.
|
|
518
|
+
*/
|
|
519
|
+
type SectionTableVariant = 'default' | 'zebra' | 'compact' | 'spacious';
|
|
520
|
+
/**
|
|
521
|
+
* One entry in a SectionTable's configured heading (CONTEXT.md
|
|
522
|
+
* SectionTableColumn). The cells beneath it line up by position, so nothing
|
|
523
|
+
* here says how a cell renders — a cell renders what was put in it.
|
|
524
|
+
*/
|
|
525
|
+
type SectionTableColumn = {
|
|
526
|
+
/**
|
|
527
|
+
* The column's position when unset. A sorting column's `id` is the key of
|
|
528
|
+
* the row it sorts by, and must be written (m-one-ui ADR 0148).
|
|
529
|
+
*/
|
|
530
|
+
id?: string;
|
|
531
|
+
/** A translation key. */
|
|
532
|
+
label?: string;
|
|
533
|
+
align?: SectionTableAlign;
|
|
534
|
+
/** 1–12: its share of the table's width. Unset columns divide what is left. */
|
|
535
|
+
span?: number;
|
|
536
|
+
sortable?: boolean;
|
|
537
|
+
dataType?: SectionTableDataType;
|
|
538
|
+
/** Freezes this column and every column before it to the left edge. */
|
|
539
|
+
freeze?: boolean;
|
|
540
|
+
/** Starts folded, with a toggle in its heading (CONTEXT.md Squeeze). */
|
|
541
|
+
squeeze?: boolean;
|
|
542
|
+
};
|
|
543
|
+
type SectionTableSort = {
|
|
544
|
+
id: string;
|
|
545
|
+
direction: SectionTableSortDirection;
|
|
546
|
+
dataType?: SectionTableDataType;
|
|
547
|
+
};
|
|
548
|
+
type SectionTableConfig = Config & {
|
|
549
|
+
columns?: SectionTableColumn[];
|
|
550
|
+
sticky?: boolean;
|
|
551
|
+
variant?: SectionTableVariant;
|
|
552
|
+
};
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* A SectionTable's sort applied to a Repeat's collection:
|
|
556
|
+
* `@for (row of (rows | sectionTableSort: table.sort()); …)`. The `@for` is the
|
|
557
|
+
* Repeat's, not the table's, so the table reorders a collection it does not
|
|
558
|
+
* own through this and nothing else (m-one-ui ADR 0148).
|
|
559
|
+
*
|
|
560
|
+
* Pure: a new order needs a new sort or a new collection, never a mutated one.
|
|
561
|
+
*/
|
|
562
|
+
declare class SectionTableSortPipe implements PipeTransform {
|
|
563
|
+
transform<T>(rows: readonly T[] | null | undefined, sort: SectionTableSort | null | undefined): T[];
|
|
564
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SectionTableSortPipe, never>;
|
|
565
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<SectionTableSortPipe, "sectionTableSort", true>;
|
|
566
|
+
}
|
|
567
|
+
|
|
510
568
|
type Align = 'left' | 'center' | 'right';
|
|
511
569
|
|
|
512
570
|
type Option = Config & {
|
|
@@ -700,6 +758,10 @@ interface LoginStoreContract {
|
|
|
700
758
|
clearAuth(): void;
|
|
701
759
|
loadSavedLoginIds(): void;
|
|
702
760
|
isLoggedIn: Signal<boolean>;
|
|
761
|
+
deployToken: Signal<string | undefined>;
|
|
762
|
+
hasDeployToken: Signal<boolean>;
|
|
763
|
+
ensureDeployToken: () => void;
|
|
764
|
+
rotateDeployToken: () => void;
|
|
703
765
|
}
|
|
704
766
|
declare const LOGIN_COMPONENT: InjectionToken<Type<unknown>>;
|
|
705
767
|
declare const LOGIN_STORE: InjectionToken<LoginStoreContract>;
|
|
@@ -3644,6 +3706,111 @@ declare class SectionButtonGroupComponent extends ConfigComponent<SectionButtonG
|
|
|
3644
3706
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SectionButtonGroupComponent, "m-section-button-group", never, { "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; }, {}, never, ["m-button, m-one-button", "*"], true, never>;
|
|
3645
3707
|
}
|
|
3646
3708
|
|
|
3709
|
+
/**
|
|
3710
|
+
* The table composed from projected markup (CONTEXT.md SectionTable): the
|
|
3711
|
+
* `<table>` and its configured heading are this component's, every row is
|
|
3712
|
+
* projected. A row written inside an `@for` is drawn once per item, one outside
|
|
3713
|
+
* it once — so a `<tr m-section-table-row>` is all the body ever holds, and
|
|
3714
|
+
* which kind a row is comes from where it was written.
|
|
3715
|
+
*
|
|
3716
|
+
* Wears Table's flat look (`m-table` classes, never a panel border) and
|
|
3717
|
+
* nothing else of it: search, selection and row menus are Controls placed
|
|
3718
|
+
* around or inside it. A projected
|
|
3719
|
+
* `m-section-pagination` draws beneath the table and windows nothing itself.
|
|
3720
|
+
*/
|
|
3721
|
+
declare class SectionTableComponent extends ConfigComponent<SectionTableConfig> {
|
|
3722
|
+
subFolder: "section_tables";
|
|
3723
|
+
readonly sticky: _angular_core.InputSignal<boolean | undefined>;
|
|
3724
|
+
readonly variant: _angular_core.InputSignal<SectionTableVariant | undefined>;
|
|
3725
|
+
readonly loading: _angular_core.InputSignal<boolean>;
|
|
3726
|
+
/**
|
|
3727
|
+
* Fires on every sort click, after the rows were reordered in place — a
|
|
3728
|
+
* table holding one page of a longer list hands the sort to whoever fetches
|
|
3729
|
+
* (m-one-ui ADR 0148).
|
|
3730
|
+
*/
|
|
3731
|
+
readonly sortChange: _angular_core.OutputEmitterRef<SectionTableSort>;
|
|
3732
|
+
/** The sort in force, read by `sectionTableSort` around each Repeat's source. */
|
|
3733
|
+
readonly sort: _angular_core.WritableSignal<SectionTableSort | null>;
|
|
3734
|
+
readonly columns: _angular_core.Signal<SectionTableColumn[]>;
|
|
3735
|
+
protected readonly resolvedSticky: _angular_core.Signal<boolean>;
|
|
3736
|
+
protected readonly resolvedVariant: _angular_core.Signal<SectionTableVariant>;
|
|
3737
|
+
private readonly unfolded;
|
|
3738
|
+
protected readonly frozenCount: _angular_core.Signal<number>;
|
|
3739
|
+
private readonly widths;
|
|
3740
|
+
private readonly headings;
|
|
3741
|
+
private readonly offsets;
|
|
3742
|
+
constructor();
|
|
3743
|
+
isFolded(index: number): boolean;
|
|
3744
|
+
offsetOf(index: number): number;
|
|
3745
|
+
protected justify(column: SectionTableColumn): string | null;
|
|
3746
|
+
protected columnWidth(index: number): string | null;
|
|
3747
|
+
protected toggleFold(index: number): void;
|
|
3748
|
+
protected sortDirection(index: number): SectionTableSort['direction'] | null;
|
|
3749
|
+
protected ariaSort(index: number): string | null;
|
|
3750
|
+
protected onSortClick(column: SectionTableColumn, index: number): void;
|
|
3751
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SectionTableComponent, never>;
|
|
3752
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SectionTableComponent, "m-section-table", never, { "sticky": { "alias": "sticky"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; }, { "sortChange": "sortChange"; }, never, ["*", "m-section-pagination"], true, never>;
|
|
3753
|
+
}
|
|
3754
|
+
|
|
3755
|
+
/**
|
|
3756
|
+
* One `<tr>` of a SectionTable (CONTEXT.md SectionTableRow). An attribute on a
|
|
3757
|
+
* real `<tr>` rather than an element of its own: a component host between
|
|
3758
|
+
* `<tbody>` and its cells breaks table layout. Repeated or static is decided by
|
|
3759
|
+
* where it was written, never by a setting here.
|
|
3760
|
+
*/
|
|
3761
|
+
declare class SectionTableRowComponent {
|
|
3762
|
+
/** No payload: a repeated row's handler already has its item in scope. */
|
|
3763
|
+
readonly rowClick: _angular_core.OutputEmitterRef<void>;
|
|
3764
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SectionTableRowComponent, never>;
|
|
3765
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SectionTableRowComponent, "tr[m-section-table-row]", never, {}, { "rowClick": "rowClick"; }, never, ["*"], true, never>;
|
|
3766
|
+
}
|
|
3767
|
+
|
|
3768
|
+
/**
|
|
3769
|
+
* One `<td>` of a SectionTableRow (CONTEXT.md SectionTableCell), holding any
|
|
3770
|
+
* content. Answers to the column at its own position — its `cellIndex`, which
|
|
3771
|
+
* only the DOM knows once the row is laid out — for alignment, Squeeze and
|
|
3772
|
+
* freezing, and configures none of them itself.
|
|
3773
|
+
*
|
|
3774
|
+
* A folded cell keeps its content mounted and hidden rather than behind an
|
|
3775
|
+
* `@if`: projected content inside a conditional block is only projected once.
|
|
3776
|
+
*/
|
|
3777
|
+
declare class SectionTableCellComponent {
|
|
3778
|
+
private readonly table;
|
|
3779
|
+
private readonly host;
|
|
3780
|
+
private readonly index;
|
|
3781
|
+
constructor();
|
|
3782
|
+
protected readonly align: _angular_core.Signal<_magmonium_one.SectionTableAlign | undefined>;
|
|
3783
|
+
protected readonly folded: _angular_core.Signal<boolean>;
|
|
3784
|
+
protected readonly frozen: _angular_core.Signal<boolean>;
|
|
3785
|
+
protected readonly frozenLast: _angular_core.Signal<boolean>;
|
|
3786
|
+
protected readonly offset: _angular_core.Signal<number>;
|
|
3787
|
+
private read;
|
|
3788
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SectionTableCellComponent, never>;
|
|
3789
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SectionTableCellComponent, "td[m-section-table-cell]", never, {}, {}, never, ["*"], true, never>;
|
|
3790
|
+
}
|
|
3791
|
+
|
|
3792
|
+
/** A column's id, falling back to its position (m-one-ui ADR 0148). */
|
|
3793
|
+
declare const sectionTableColumnId: (column: SectionTableColumn, index: number) => string;
|
|
3794
|
+
/**
|
|
3795
|
+
* Each column's width as a CSS length: a `span` is its twelfth-share of the
|
|
3796
|
+
* table, and a column without one gets `undefined` so the `<table>` divides
|
|
3797
|
+
* what the spanned columns left.
|
|
3798
|
+
*/
|
|
3799
|
+
declare const sectionTableColumnWidths: (columns: readonly SectionTableColumn[]) => (string | undefined)[];
|
|
3800
|
+
/**
|
|
3801
|
+
* How many leading columns are frozen: freezing a column freezes every column
|
|
3802
|
+
* before it, because a frozen column pinned past an unfrozen one would slide
|
|
3803
|
+
* over it.
|
|
3804
|
+
*/
|
|
3805
|
+
declare const sectionTableFrozenCount: (columns: readonly SectionTableColumn[]) => number;
|
|
3806
|
+
/** The next sort after a click on the column with `id`. */
|
|
3807
|
+
declare const nextSectionTableSort: (current: SectionTableSort | null, id: string, dataType: SectionTableSort["dataType"]) => SectionTableSort;
|
|
3808
|
+
/**
|
|
3809
|
+
* A copy of `rows` ordered by `sort`, the input untouched. Missing values sink
|
|
3810
|
+
* to the end in either direction — an empty cell is not the smallest value.
|
|
3811
|
+
*/
|
|
3812
|
+
declare const sortSectionTableRows: <T>(rows: readonly T[] | null | undefined, sort: SectionTableSort | null | undefined) => T[];
|
|
3813
|
+
|
|
3647
3814
|
type TabGroup = Config & {
|
|
3648
3815
|
tabs: Button[];
|
|
3649
3816
|
activeTabId?: string;
|
|
@@ -5510,7 +5677,7 @@ declare class StepperComponent extends ConfigComponent<Stepper> {
|
|
|
5510
5677
|
constructor();
|
|
5511
5678
|
protected readonly isReadonly: _angular_core.Signal<boolean>;
|
|
5512
5679
|
protected readonly stepperDisabled: _angular_core.Signal<boolean>;
|
|
5513
|
-
protected readonly orientation: _angular_core.Signal<"
|
|
5680
|
+
protected readonly orientation: _angular_core.Signal<"compact" | "vertical">;
|
|
5514
5681
|
protected readonly currentStepLabel: _angular_core.Signal<string>;
|
|
5515
5682
|
protected readonly nextStepLabel: _angular_core.Signal<string>;
|
|
5516
5683
|
protected readonly isLastStep: _angular_core.Signal<boolean>;
|
|
@@ -9025,6 +9192,23 @@ declare class NotificationService {
|
|
|
9025
9192
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<NotificationService>;
|
|
9026
9193
|
}
|
|
9027
9194
|
|
|
9195
|
+
/**
|
|
9196
|
+
* Browser clipboard writes a gesture may fire. Takes one object so a designed
|
|
9197
|
+
* Screen's call site builds it the way it builds every GlobalMethod's
|
|
9198
|
+
* (CONTEXT.md GlobalMethod), and reports the outcome itself — a template call
|
|
9199
|
+
* has nowhere to await the write.
|
|
9200
|
+
*/
|
|
9201
|
+
declare class ClipboardService {
|
|
9202
|
+
private readonly notificationService;
|
|
9203
|
+
private readonly translateService;
|
|
9204
|
+
readonly copy: ({ text }: {
|
|
9205
|
+
text: string;
|
|
9206
|
+
}) => void;
|
|
9207
|
+
private readonly notifyFailed;
|
|
9208
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClipboardService, never>;
|
|
9209
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ClipboardService>;
|
|
9210
|
+
}
|
|
9211
|
+
|
|
9028
9212
|
declare class NotificationElementComponent {
|
|
9029
9213
|
#private;
|
|
9030
9214
|
protected readonly NotificationType: typeof NotificationType;
|
|
@@ -9857,10 +10041,12 @@ declare class AuthActivityPageComponent {
|
|
|
9857
10041
|
tokens: _angular_core.Signal<_magmonium_one.Tokens | undefined>;
|
|
9858
10042
|
user: _angular_core.Signal<_magmonium_one.AuthUser | undefined>;
|
|
9859
10043
|
wrongPassword: _angular_core.Signal<boolean | undefined>;
|
|
10044
|
+
deployToken: _angular_core.Signal<string | undefined>;
|
|
9860
10045
|
hostUserTabs: Record<string, _angular_core.Type<unknown>>;
|
|
9861
10046
|
userId: _angular_core.Signal<string | undefined>;
|
|
9862
10047
|
isLoggedIn: _angular_core.Signal<boolean>;
|
|
9863
10048
|
isAppAuthor: _angular_core.Signal<boolean>;
|
|
10049
|
+
hasDeployToken: _angular_core.Signal<boolean>;
|
|
9864
10050
|
variant: _angular_core.Signal<{
|
|
9865
10051
|
create_new_user: boolean;
|
|
9866
10052
|
identity_exiest: boolean;
|
|
@@ -9895,6 +10081,8 @@ declare class AuthActivityPageComponent {
|
|
|
9895
10081
|
}) => void;
|
|
9896
10082
|
setTokens: (tokens: _magmonium_one.Tokens) => void;
|
|
9897
10083
|
clearAuth: () => void;
|
|
10084
|
+
ensureDeployToken: () => void;
|
|
10085
|
+
rotateDeployToken: () => void;
|
|
9898
10086
|
logout: () => void;
|
|
9899
10087
|
loadSavedLoginIds: () => void;
|
|
9900
10088
|
createAuthEmail: _ngrx_signals_rxjs_interop.RxMethod<{
|
|
@@ -9943,6 +10131,7 @@ declare class AuthActivityPageComponent {
|
|
|
9943
10131
|
tokens: _magmonium_one.Tokens | undefined;
|
|
9944
10132
|
user: _magmonium_one.AuthUser | undefined;
|
|
9945
10133
|
wrongPassword: boolean | undefined;
|
|
10134
|
+
deployToken: string | undefined;
|
|
9946
10135
|
}>;
|
|
9947
10136
|
protected readonly userCards: _angular_core.Signal<{
|
|
9948
10137
|
id: string;
|
|
@@ -10008,6 +10197,7 @@ interface AuthState {
|
|
|
10008
10197
|
tokens: Tokens | undefined;
|
|
10009
10198
|
user: AuthUser | undefined;
|
|
10010
10199
|
wrongPassword: boolean | undefined;
|
|
10200
|
+
deployToken: string | undefined;
|
|
10011
10201
|
}
|
|
10012
10202
|
declare const initialState: AuthState;
|
|
10013
10203
|
|
|
@@ -10027,10 +10217,12 @@ declare const AuthStore: Type<{
|
|
|
10027
10217
|
tokens: _angular_core.Signal<Tokens | undefined>;
|
|
10028
10218
|
user: _angular_core.Signal<_magmonium_one.AuthUser | undefined>;
|
|
10029
10219
|
wrongPassword: _angular_core.Signal<boolean | undefined>;
|
|
10220
|
+
deployToken: _angular_core.Signal<string | undefined>;
|
|
10030
10221
|
hostUserTabs: Record<string, Type<unknown>>;
|
|
10031
10222
|
userId: _angular_core.Signal<string | undefined>;
|
|
10032
10223
|
isLoggedIn: _angular_core.Signal<boolean>;
|
|
10033
10224
|
isAppAuthor: _angular_core.Signal<boolean>;
|
|
10225
|
+
hasDeployToken: _angular_core.Signal<boolean>;
|
|
10034
10226
|
variant: _angular_core.Signal<{
|
|
10035
10227
|
create_new_user: boolean;
|
|
10036
10228
|
identity_exiest: boolean;
|
|
@@ -10065,6 +10257,8 @@ declare const AuthStore: Type<{
|
|
|
10065
10257
|
}) => void;
|
|
10066
10258
|
setTokens: (tokens: Tokens) => void;
|
|
10067
10259
|
clearAuth: () => void;
|
|
10260
|
+
ensureDeployToken: () => void;
|
|
10261
|
+
rotateDeployToken: () => void;
|
|
10068
10262
|
logout: () => void;
|
|
10069
10263
|
loadSavedLoginIds: () => void;
|
|
10070
10264
|
createAuthEmail: _ngrx_signals_rxjs_interop.RxMethod<{
|
|
@@ -10113,6 +10307,7 @@ declare const AuthStore: Type<{
|
|
|
10113
10307
|
tokens: Tokens | undefined;
|
|
10114
10308
|
user: _magmonium_one.AuthUser | undefined;
|
|
10115
10309
|
wrongPassword: boolean | undefined;
|
|
10310
|
+
deployToken: string | undefined;
|
|
10116
10311
|
}>>;
|
|
10117
10312
|
|
|
10118
10313
|
declare const privateGuard: (routerSnapshot: ActivatedRouteSnapshot) => Promise<boolean>;
|
|
@@ -10246,6 +10441,8 @@ declare class AuthApiService {
|
|
|
10246
10441
|
getAuthIdentities(ids: string[]): Observable<AuthIdentitiesListResponse>;
|
|
10247
10442
|
updateAuthOtp(data: AuthOtpUpdateRequest): Observable<AuthOtpUpdateResponse>;
|
|
10248
10443
|
updateAuthPassword(data: AuthPasswordUpdateRequest): Observable<AuthPasswordUpdateResponse>;
|
|
10444
|
+
/** Mints a new Deploy Token for the caller; the previous one stops working. */
|
|
10445
|
+
rotateDeployToken(): Observable<string>;
|
|
10249
10446
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AuthApiService, never>;
|
|
10250
10447
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AuthApiService>;
|
|
10251
10448
|
}
|
|
@@ -10256,5 +10453,5 @@ interface AuthResult {
|
|
|
10256
10453
|
}
|
|
10257
10454
|
declare function injectAuthenticate(): () => Promise<AuthResult>;
|
|
10258
10455
|
|
|
10259
|
-
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_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, 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, applyDocEdit, assetOptions, bootstrapMagApp, bootstrapPwaInstall, buildWcBaseUrl, calculateLuminance, calculateRanks, cellText, checkDoc, checkFilterCondition, childNavId, claimDenial, classListSignal, coerceSize, cornerEdge, cornerSide, createMap, createPlatformNavMap, 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, 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, offsetOfLine, parentNavId, parseAddress, parseColor, parsePatternNames, patternValidation, patternsValidation, permissionRefusal, platformNavWidgets, privateGuard, processImageToSvg, provideAppContext, provideMagAppConfig, provideMagWcConfig, provideMagWcRoutes, provideModalComponents, provideMurlUrlSerializer, provideNavWidgets, provideOverlayWidgets, providePlatformNavWidgets, provideSearch, provideSizeContext, provideUserTabs, publicGuard, readFieldPatterns, renderAddress, renderDocument, 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, ungroupedDocActions, urlValidation };
|
|
10260
|
-
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, 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, 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, TextOrNumberInput, TextOutputAlign, TextOutputConfig, TextOutputFontWeight, TextOutputVariant, TextareaInput, Timeline, TimelineItem, ToggleInput, ToggleRadioInput, Tokens, TreeGridCellClickEvent, TreeGridLoadChildrenEvent, TreeGridRow, TreeGridRowSelectEvent, TreeGridToggleEvent, UniverseColorScheme, User, UserRole, UserStoreRef, Version, Watermark, WebComponentConfig, WeeklyData };
|
|
10456
|
+
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, 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, 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, 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_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, 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, 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, nextSectionTableSort, normalizeAssetOptions, offsetOfLine, parentNavId, parseAddress, parseColor, parsePatternNames, patternValidation, patternsValidation, permissionRefusal, platformNavWidgets, privateGuard, processImageToSvg, provideAppContext, provideMagAppConfig, provideMagWcConfig, provideMagWcRoutes, provideModalComponents, provideMurlUrlSerializer, provideNavWidgets, provideOverlayWidgets, providePlatformNavWidgets, provideSearch, provideSizeContext, provideUserTabs, publicGuard, readFieldPatterns, renderAddress, renderDocument, requiredValidation, resolveConfigAsset, resolveIconSize, resolvePallet, resolvePatternRules, resolveSize, rgbToHex, rgbToHsl, rowHasChildren, samePatterns, sectionTableColumnId, sectionTableColumnWidths, sectionTableFrozenCount, segmentsToNavId, setProperty, setTreeGridChildren, settingsWidgets, shouldShowBadge, sortSectionTableRows, splitNavId, splitOnMatch, stringToColor, toAttrBool, toAttrNumber, toCssLength, toHostNavId, toLength, toLocalNavId, toggleTreeGridRow, unfetchedPlatformNav, ungroupedDocActions, urlValidation };
|
|
10457
|
+
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, 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, 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, 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, User, UserRole, UserStoreRef, Version, Watermark, WebComponentConfig, WeeklyData };
|