@magmonium/one 0.0.27 → 0.0.29
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-magmonium-one-CLtPcbRY.mjs → magmonium-one-magmonium-one-BkbEzLl8.mjs} +311 -157
- package/fesm2022/magmonium-one-magmonium-one-BkbEzLl8.mjs.map +1 -0
- package/fesm2022/{magmonium-one-otp-WercZBii.mjs → magmonium-one-otp-DQZi5kOC.mjs} +3 -3
- package/fesm2022/{magmonium-one-otp-WercZBii.mjs.map → magmonium-one-otp-DQZi5kOC.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-password-_GRSnhns.mjs → magmonium-one-password-Bb8Picp4.mjs} +3 -3
- package/fesm2022/{magmonium-one-password-_GRSnhns.mjs.map → magmonium-one-password-Bb8Picp4.mjs.map} +1 -1
- package/fesm2022/{magmonium-one-toggle-x8W-rkDZ.mjs → magmonium-one-toggle-BjpT-0EO.mjs} +2 -2
- package/fesm2022/{magmonium-one-toggle-x8W-rkDZ.mjs.map → magmonium-one-toggle-BjpT-0EO.mjs.map} +1 -1
- package/fesm2022/magmonium-one.mjs +1 -1
- package/package.json +1 -1
- package/types/magmonium-one.d.ts +78 -46
- package/fesm2022/magmonium-one-magmonium-one-CLtPcbRY.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { signal, viewChildren, computed, inject, effect, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { a as BaseTextInputComponent, I as IS_DESIGN_MODE, L as LabelComponent, b as TextOutputComponent } from './magmonium-one-magmonium-one-
|
|
3
|
+
import { a as BaseTextInputComponent, I as IS_DESIGN_MODE, L as LabelComponent, b as TextOutputComponent } from './magmonium-one-magmonium-one-BkbEzLl8.mjs';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
|
|
6
6
|
class OtpInputComponent extends BaseTextInputComponent {
|
|
@@ -142,7 +142,7 @@ class OtpInputComponent extends BaseTextInputComponent {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
`, isInline: true, styles: ["@keyframes toggle-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.02)}}@keyframes thumb-slide{0%{transform:translate(0) scale(1)}50%{transform:translate(.3em) scale(.9)}to{transform:translate(.6em) scale(1)}}:host{display:block;width:100%}.otp-container{display:flex;width:100%;justify-content:space-between;gap:var(--m-otp-input-gap, .375em )}.otp-container input{appearance:none;box-sizing:border-box;flex:0 0 auto;width:calc(var(--input-size, 1em) * 2.25);height:calc(var(--input-size, 1em) * 2.25);min-height:calc(var(--input-size, 1em) * 2.25);text-align:center;font-size:var(--input-size, 1em);font-weight:var(--m-otp-input-font-weight, 600);font-family:inherit;color:var(--m-otp-input-color, var(--m-text-input-color, var(--m-text)));background:var(--m-otp-input-background, var(--m-text-input-background, var(--m-background)));border-width:var(--m-otp-input-border-width, var(--m-input-border-width, 2px));border-style:solid;border-color:var(--m-otp-input-border, var(--m-text-input-border, var(--m-input-color, var(--m-mm))));border-radius:var(--m-otp-input-radius, var(--m-input-radius, 4px));transition:var(--m-otp-input-transition, var(--m-text-input-transition, border-color .2s ease, box-shadow .2s ease));text-transform:uppercase;box-shadow:var(--m-text-input-shadow, none)}.otp-container input:hover:not(:disabled){border-color:var(--m-otp-input-hover-border, var(--m-text-input-hover-border, color-mix(in srgb, var(--m-input-color, var(--m-mm)) 45%, rgba(0, 0, 0, .12))));background:var(--m-otp-input-hover-background, var(--m-text-input-hover-background, var(--m-text-input-background, var(--m-background))))}.otp-container input:focus{outline:none;border-color:var(--m-otp-input-focus-border, var(--m-text-input-focus-border, var(--m-focus)));box-shadow:var(--m-text-input-shadow, none);background:var(--m-otp-input-focus-background, var(--m-text-input-focus-background, var(--m-text-input-background, var(--m-background))))}.otp-container input.error{border-color:var(--m-error);box-shadow:none}.otp-container input:disabled{background-color:var(--m-frame);cursor:not-allowed;color:var(--m-text-tertiary);border-color:var(--m-border);opacity:.6}\n"], dependencies: [{ kind: "component", type: LabelComponent, selector: "m-label", inputs: ["for", "placeholder", "required", "disabled", "color"] }, { kind: "component", type: TextOutputComponent, selector: "m-text-output", inputs: ["config", "align", "variant", "color", "label", "noTranslate"], outputs: ["configChange"] }, { kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
145
|
+
`, isInline: true, styles: ["@keyframes toggle-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.02)}}@keyframes thumb-slide{0%{transform:translate(0) scale(1)}50%{transform:translate(.3em) scale(.9)}to{transform:translate(.6em) scale(1)}}:host{display:block;width:100%}.otp-container{display:flex;width:100%;justify-content:space-between;gap:var(--m-otp-input-gap, .375em )}.otp-container input{appearance:none;box-sizing:border-box;flex:0 0 auto;width:calc(var(--input-size, 1em) * 2.25);height:calc(var(--input-size, 1em) * 2.25);min-height:calc(var(--input-size, 1em) * 2.25);text-align:center;font-size:var(--input-size, 1em);font-weight:var(--m-otp-input-font-weight, 600);font-family:inherit;color:var(--m-otp-input-color, var(--m-text-input-color, var(--m-text)));background:var(--m-otp-input-background, var(--m-text-input-background, var(--m-background)));border-width:var(--m-otp-input-border-width, var(--m-input-border-width, 2px));border-style:solid;border-color:var(--m-otp-input-border, var(--m-text-input-border, var(--m-input-color, var(--m-mm))));border-radius:var(--m-otp-input-radius, var(--m-input-radius, 4px));transition:var(--m-otp-input-transition, var(--m-text-input-transition, border-color .2s ease, box-shadow .2s ease));text-transform:uppercase;box-shadow:var(--m-text-input-shadow, none)}.otp-container input:hover:not(:disabled){border-color:var(--m-otp-input-hover-border, var(--m-text-input-hover-border, color-mix(in srgb, var(--m-input-color, var(--m-mm)) 45%, rgba(0, 0, 0, .12))));background:var(--m-otp-input-hover-background, var(--m-text-input-hover-background, var(--m-text-input-background, var(--m-background))))}.otp-container input:focus{outline:none;border-color:var(--m-otp-input-focus-border, var(--m-text-input-focus-border, var(--m-focus)));box-shadow:var(--m-text-input-shadow, none);background:var(--m-otp-input-focus-background, var(--m-text-input-focus-background, var(--m-text-input-background, var(--m-background))))}.otp-container input.error{border-color:var(--m-error);box-shadow:none}.otp-container input:disabled{background-color:var(--m-frame);cursor:not-allowed;color:var(--m-text-tertiary);border-color:var(--m-border);opacity:.6}\n"], dependencies: [{ kind: "component", type: LabelComponent, selector: "m-label", inputs: ["for", "placeholder", "required", "disabled", "color"] }, { kind: "component", type: TextOutputComponent, selector: "m-text-output", inputs: ["config", "align", "variant", "color", "label", "noTranslate", "params"], outputs: ["configChange"] }, { kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
146
146
|
}
|
|
147
147
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: OtpInputComponent, decorators: [{
|
|
148
148
|
type: Component,
|
|
@@ -184,4 +184,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
184
184
|
}], ctorParameters: () => [], propDecorators: { otpInputs: [{ type: i0.ViewChildren, args: ['otpInput', { isSignal: true }] }] } });
|
|
185
185
|
|
|
186
186
|
export { OtpInputComponent };
|
|
187
|
-
//# sourceMappingURL=magmonium-one-otp-
|
|
187
|
+
//# sourceMappingURL=magmonium-one-otp-DQZi5kOC.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-otp-WercZBii.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/text/otp.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n signal,\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 [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 constructor() {\n super();\n effect(() => {\n const length = this.otpConfig()?.length || 6;\n this.otpValues.set(Array(length).fill(''));\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":";;;;;AA0DM,MAAO,iBAAkB,SAAQ,sBAAgC,CAAA;AACrE,IAAA,SAAS,GAAG,MAAM,CAA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;;AAkCT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,8nEAAA,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,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,OAAA,EAAA,aAAA,CAAA,EAAA,OAAA,EAAA,CAAA,cAAA,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;kBAzC7B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EAAA,QAAA,EACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCT,EAAA,OAAA,EAEQ,CAAC,cAAc,EAAE,mBAAmB,EAAE,YAAY,CAAC,EAAA,eAAA,EAC3C,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,8nEAAA,CAAA,EAAA;oGAIQ,UAAU,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"magmonium-one-otp-DQZi5kOC.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/text/otp.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n signal,\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 [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 constructor() {\n super();\n effect(() => {\n const length = this.otpConfig()?.length || 6;\n this.otpValues.set(Array(length).fill(''));\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 }\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nhns.mjs → magmonium-one-password-Bb8Picp4.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 { a as BaseTextInputComponent, L as LabelComponent, b as TextOutputComponent, c as ButtonComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-
|
|
3
|
+
import { a as BaseTextInputComponent, L as LabelComponent, b as TextOutputComponent, c as ButtonComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-BkbEzLl8.mjs';
|
|
4
4
|
|
|
5
5
|
class PasswordInputComponent extends BaseTextInputComponent {
|
|
6
6
|
isPassword = signal(true, ...(ngDevMode ? [{ debugName: "isPassword" }] : /* istanbul ignore next */ []));
|
|
@@ -52,7 +52,7 @@ class PasswordInputComponent extends BaseTextInputComponent {
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
`, isInline: true, styles: ["@keyframes toggle-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.02)}}@keyframes thumb-slide{0%{transform:translate(0) scale(1)}50%{transform:translate(.3em) scale(.9)}to{transform:translate(.6em) scale(1)}}:host{display:block;width:100%}.input-wrapper{display:flex;align-items:center;background:var(--m-background);height:calc(var(--input-size, 1em) * 2);min-height:calc(var(--input-size, 1em) * 2);border-width:max(1px,var(--input-size, 1em) * .0625);border-radius:calc(var(--input-size, 1em) * .4);padding:calc(var(--input-size, 1em) * .5) calc(var(--input-size, 1em) * .5);gap:calc(var(--input-size, 1em) * .375);font-size:var(--input-size, 1em);border-width:var(--m-input-border-width, 2px);border-radius:var(--m-input-radius, 4px);height:calc(var(--input-size, 1em) * 2.25);min-height:calc(var(--input-size, 1em) * 2.25);padding-top:0;padding-bottom:0;border-color:var(--m-input-color, var(--m-mm));transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease,opacity .2s ease}.input-wrapper:hover:not(:disabled){background-color:color-mix(in srgb,var(--m-input-color, var(--m-mm)) 6%,transparent)}.input-wrapper:focus-visible:not(:disabled),.input-wrapper:focus-within:not(:disabled){box-shadow:0 0 0 2px color-mix(in srgb,var(--m-input-color, var(--m-mm)) 20%,transparent)}.input-wrapper:disabled{opacity:.6;cursor:not-allowed}.input-wrapper{border-style:solid;backdrop-filter:var(--m-text-input-backdrop-filter, none);-webkit-backdrop-filter:var(--m-text-input-backdrop-filter, none);box-shadow:var(--m-text-input-shadow, none)}.input-wrapper:has(>m-one-button,>m-button,>.input-indicator,>.input-suffix,>m-icon:last-child){padding-right:0}.input-wrapper:focus-visible:not(:disabled),.input-wrapper:focus-within:not(:disabled){border-color:var(--m-text-input-focus-border, var(--m-focus));box-shadow:var(--m-text-input-shadow, none)}.input-wrapper:has(.error){border-color:var(--m-error);box-shadow:none}.input-wrapper:has(.error):focus-within{border-color:var(--m-error);box-shadow:none}.input-wrapper input,.input-wrapper textarea{flex:1;border:none;outline:none;background:transparent;color:var(--m-text);font-family:inherit;font-size:inherit;padding:0}.input-wrapper input:focus,.input-wrapper textarea:focus{border-color:transparent;box-shadow:none}.input-wrapper{width:100%;background:var(--m-password-input-background, var(--m-background));border-color:var(--m-password-input-border, var(--m-input-color, var(--m-mm)))}.input-wrapper:hover{border-color:var(--m-password-input-hover-border, color-mix(in srgb, var(--m-input-color, var(--m-mm)) 45%, rgba(0, 0, 0, .12)))}.input-wrapper .m-icon{--m-icon-size: 1.1em !important}.input-wrapper input{appearance:none;font-size:1em}.input-wrapper .m-one-button{height:100%;display:flex;align-items:center;justify-content:center;--m-button-size: 1em !important}\n"], dependencies: [{ kind: "component", type: LabelComponent, selector: "m-label", inputs: ["for", "placeholder", "required", "disabled", "color"] }, { kind: "component", type: TextOutputComponent, selector: "m-text-output", inputs: ["config", "align", "variant", "color", "label", "noTranslate"], outputs: ["configChange"] }, { kind: "component", type: ButtonComponent, selector: "m-button,m-one-button", inputs: ["config", "color", "labelClass", "fullWidth", "nav", "navParams", "href", "disabled", "variant", "name", "baseUrl", "one", "remote", "label", "noTranslate", "noNative", "icon", "isRightIcon", "iconOnly", "stacked", "imgSrc", "nonClickable", "inverted", "type"], outputs: ["configChange", "clicked"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
55
|
+
`, isInline: true, styles: ["@keyframes toggle-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.02)}}@keyframes thumb-slide{0%{transform:translate(0) scale(1)}50%{transform:translate(.3em) scale(.9)}to{transform:translate(.6em) scale(1)}}:host{display:block;width:100%}.input-wrapper{display:flex;align-items:center;background:var(--m-background);height:calc(var(--input-size, 1em) * 2);min-height:calc(var(--input-size, 1em) * 2);border-width:max(1px,var(--input-size, 1em) * .0625);border-radius:calc(var(--input-size, 1em) * .4);padding:calc(var(--input-size, 1em) * .5) calc(var(--input-size, 1em) * .5);gap:calc(var(--input-size, 1em) * .375);font-size:var(--input-size, 1em);border-width:var(--m-input-border-width, 2px);border-radius:var(--m-input-radius, 4px);height:calc(var(--input-size, 1em) * 2.25);min-height:calc(var(--input-size, 1em) * 2.25);padding-top:0;padding-bottom:0;border-color:var(--m-input-color, var(--m-mm));transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease,opacity .2s ease}.input-wrapper:hover:not(:disabled){background-color:color-mix(in srgb,var(--m-input-color, var(--m-mm)) 6%,transparent)}.input-wrapper:focus-visible:not(:disabled),.input-wrapper:focus-within:not(:disabled){box-shadow:0 0 0 2px color-mix(in srgb,var(--m-input-color, var(--m-mm)) 20%,transparent)}.input-wrapper:disabled{opacity:.6;cursor:not-allowed}.input-wrapper{border-style:solid;backdrop-filter:var(--m-text-input-backdrop-filter, none);-webkit-backdrop-filter:var(--m-text-input-backdrop-filter, none);box-shadow:var(--m-text-input-shadow, none)}.input-wrapper:has(>m-one-button,>m-button,>.input-indicator,>.input-suffix,>m-icon:last-child){padding-right:0}.input-wrapper:focus-visible:not(:disabled),.input-wrapper:focus-within:not(:disabled){border-color:var(--m-text-input-focus-border, var(--m-focus));box-shadow:var(--m-text-input-shadow, none)}.input-wrapper:has(.error){border-color:var(--m-error);box-shadow:none}.input-wrapper:has(.error):focus-within{border-color:var(--m-error);box-shadow:none}.input-wrapper input,.input-wrapper textarea{flex:1;border:none;outline:none;background:transparent;color:var(--m-text);font-family:inherit;font-size:inherit;padding:0}.input-wrapper input:focus,.input-wrapper textarea:focus{border-color:transparent;box-shadow:none}.input-wrapper{width:100%;background:var(--m-password-input-background, var(--m-background));border-color:var(--m-password-input-border, var(--m-input-color, var(--m-mm)))}.input-wrapper:hover{border-color:var(--m-password-input-hover-border, color-mix(in srgb, var(--m-input-color, var(--m-mm)) 45%, rgba(0, 0, 0, .12)))}.input-wrapper .m-icon{--m-icon-size: 1.1em !important}.input-wrapper input{appearance:none;font-size:1em}.input-wrapper .m-one-button{height:100%;display:flex;align-items:center;justify-content:center;--m-button-size: 1em !important}\n"], dependencies: [{ kind: "component", type: LabelComponent, selector: "m-label", inputs: ["for", "placeholder", "required", "disabled", "color"] }, { kind: "component", type: TextOutputComponent, selector: "m-text-output", inputs: ["config", "align", "variant", "color", "label", "noTranslate", "params"], outputs: ["configChange"] }, { kind: "component", type: ButtonComponent, selector: "m-button,m-one-button", inputs: ["config", "color", "labelClass", "fullWidth", "nav", "navParams", "href", "disabled", "variant", "name", "baseUrl", "one", "remote", "label", "noTranslate", "noNative", "icon", "isRightIcon", "iconOnly", "stacked", "imgSrc", "nonClickable", "inverted", "type"], outputs: ["configChange", "clicked"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
56
56
|
}
|
|
57
57
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: PasswordInputComponent, decorators: [{
|
|
58
58
|
type: Component,
|
|
@@ -98,4 +98,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
98
98
|
}] });
|
|
99
99
|
|
|
100
100
|
export { PasswordInputComponent };
|
|
101
|
-
//# sourceMappingURL=magmonium-one-password-
|
|
101
|
+
//# sourceMappingURL=magmonium-one-password-Bb8Picp4.mjs.map
|
package/fesm2022/{magmonium-one-password-_GRSnhns.mjs.map → magmonium-one-password-Bb8Picp4.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-password-
|
|
1
|
+
{"version":3,"file":"magmonium-one-password-Bb8Picp4.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 [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\"\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 [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":";;;;AAyDM,MAAO,sBAAuB,SAAQ,sBAAsB,CAAA;AAChE,IAAA,UAAU,GAAG,MAAM,CAAU,IAAI,iFAAC;IAClC,IAAI,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,UAAU,EAAE,GAAG,UAAU,GAAG,MAAM,CAAC,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;IAChE,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,KAAK,GAAG,WAAW,CAAC,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,QAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;IAEzD,UAAU,GAAA;AAClB,QAAA,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC;IACvC;AAEU,IAAA,OAAO,CAAC,KAAY,EAAA;AAC5B,QAAA,MAAM,MAAM,GAAG,KAAK,CAAC,MAA0B;QAC/C,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC;IACpC;uGAZW,sBAAsB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAtB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAA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, input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { B as BaseInputComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-
|
|
3
|
+
import { B as BaseInputComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-BkbEzLl8.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-BjpT-0EO.mjs.map
|
package/fesm2022/{magmonium-one-toggle-x8W-rkDZ.mjs.map → magmonium-one-toggle-BjpT-0EO.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-toggle-
|
|
1
|
+
{"version":3,"file":"magmonium-one-toggle-BjpT-0EO.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,KAA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,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,umGAAA,CAAA,EAAA;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as ACCESS_DOMAINS, d as APP_CONTEXT_REF, e as ASSET_BASE_URL, f as AccordionBodyDirective, g as AccordionComponent, h as AccordionGroupComponent, i as ActionComponent, j as AnimatedGraphsComponent, k as AppCardComponent, l as AppRelationType, m as AppTileComponent, n as AssetStore, o as AssetUrlPipe, p as Assets, q as AutosizeDirective, r as BadgeComponent, s as BandingComponent, t as BaseArrayInputComponent, u as BaseRootWebComponent, v as BaseWebComponent, c as ButtonComponent, w as ButtonGroupComponent, C as COLOR_SCHEMES, x as COMPONENT_INPUT_REGISTRY, y as CardComponent, z as CardWrapperComponent, D as CarouselComponent, E as ChartComponent, F as CheckboxInputComponent, G as ClearableInputComponent, H as ColComponent, J as ColorPickerInputComponent, K as CommentItemComponent, M as CommentsApiService, N as CommentsComponent, O as CommentsStore, P as ComponentInputComponent, Q as ComponentStepperComponent, R as ConfigComponent, S as ConfirmComponent, U as ContextMenuComponent, V as CustomIconClass, W as CustomIconEditComponent, X as DEFAULT_SIZE, Y as DashboardCardComponent, Z as DateInputComponent, _ as DatePickerComponent, $ as DeviceService, a0 as DomService, a1 as Domain, a2 as DotGridComponent, a3 as DragListDirective, a4 as DragListItemDirective, a5 as DraggableDirective, a6 as DropdownInputComponent, a7 as FLEX_VARIANTS, a8 as FOLDER_PICK_LISTENER, a9 as FORM_ASSET_FOLDER, aa as FileService, ab as FileUploadDirective, ac as FileUploadInputComponent, ad as FlexComponent, ae as FlexItemComponent, af as FormGroupComponent, ag as FrameComponent, ah as FreezeService, ai as GEN_NAV_DISPLAY_ORDER, aj as GRID_BREAKPOINTS, ak as GetNavService, al as HeaderComponent, am as HighlightDirective, an as HttpService, ao as ICON_SOURCE, I as IS_DESIGN_MODE, ap as IS_SIDE_PANEL, aq as IconComponent, ar as ImgComponent, as as InputType, at as InstrumentScoreComponent, au as InterceptorObservables, av as JumbotronComponent, aw as KeyValueComponent, ax as LAYOUT_ASSET_FOLDER, ay as LOGIN_COMPONENT, az as LOGIN_FORM_GROUP, aA as LOGIN_PROCESS, aB as LOGIN_STORE, aC as LanguageComponent, aD as LoginDataService, aE as LoginOneComponent, aF as LoginStore, aG as LogoComponent, aH as MAG_SOCKET_EVENT, aI as MHeroColorDirective, aJ as MHeroComponent, aK as MODAL_REF, aL as MODAL_STORE_REF, aM as MRefDirective, aN as MStepComponent, aO as MURL_PARAM, aP as MURL_SEP, aQ as ManifestEnrichmentService, aR as MenuComponent, aS as ModalDirective, aT as ModalRef, aU as ModalStore, aV as MoneyPipe, aW as MultiRangeInputComponent, aX as MurlUrlSerializer, aY as NAV_DEFAULT_MURL, aZ as NAV_DISPLAY_ORDER, a_ as NAV_ID_SEP, a$ as NAV_MAIN_BUTTONS, b0 as NAV_SEGMENT_RE, b1 as NAV_STORE_REF, b2 as NAV_WC_COMPONENTS, b3 as NAV_WIDGET_MAP, b4 as NavComponent, b5 as NavDetailsComponent, b6 as NavMenuComponent, b7 as NavStore, b8 as NavTrailComponent, b9 as NothingComponent, ba as NotificationElementComponent, bb as NotificationGroupComponent, bc as NotificationPopupComponent, bd as NotificationService, be as NotificationStore, bf as NotificationType, bg as NotificationWidgetComponent, bh as ONE_ASSET_BASE_URL, bi as OPTIONS_SOURCE, bj as OneApp, bk as OptionsSourceDirective, bl as OverlayBodyComponent, bm as OverlayRef, bn as OverlayService, bo as PLATFORM_BUTTON_NAV_IDS, bp as PLATFORM_EXTENSIBLE_NAV_IDS, bq as PLATFORM_NAV_MAP, br as PLATFORM_ROOT_CHILDREN, bs as PaginationComponent, bt as PanelComponent, bu as PlaygroundComponent, bv as PositionDirective, bw as PwaInstallComponent, bx as ROOT_NAV, by as RadioGroupComponent, bz as RadioInputComponent, bA as RangeInputComponent, bB as RatingInputComponent, bC as ReactiveElementComponent, bD as RemoteComponent, bE as RemoteLoaderService, bF as ResizeElementComponent, bG as RouteContainer, bH as RowComponent, bI as SEARCH_QUERY, bJ as SEARCH_RESULTS_EVENT, bK as SECTION_ACCORDION_GROUP, bL as SECTION_FORM_CONTEXT, bM as SHARED_ICONS, bN as SIZE_CONTEXT, bO as ScoreComponent, bP as ScrollComponent, bQ as ScrollService, bR as SearchPanelComponent, bS as SearchStore, bT as SearchUserPanelComponent, bU as SectionAccordionDirective, bV as SectionAccordionGroupDirective, bW as SectionBackComponent, bX as SectionBadgesComponent, bY as SectionButtonGroupComponent, bZ as SectionCardComponent, b_ as SectionComponent, b$ as SectionFilterComponent, c0 as SectionFooterComponent, c1 as SectionFormComponent, c2 as SectionFormItemComponent, c3 as SectionHeaderComponent, c4 as SectionSearchComponent, c5 as SectionStepperComponent, c6 as SectionTabsComponent, c7 as SectionToggleComponent, c8 as SectionToggleItemDirective, c9 as SelectableCardInputComponent, ca as SelectorDirective, cb as SettingsSearchBarComponent, cc as SettingsSearchService, cd as Sex, ce as ShapeComponent, cf as SharedStoreRegistry, cg as SidePanelDirective, ch as Size, ci as SocketStore, cj as SortComponent, ck as StepComponent, cl as StepperComponent, cm as StepsComponent, cn as StorageService, co as StrokeLinecap, cp as StrokeLinejoin, cq as SummaryComponent, cr as SvgGeneratorComponent, cs as SvgGeneratorService, ct as SvgService, cu as TOTAL_COLUMNS, cv as TRANSLATION_SOURCE, cw as TableComponent, cx as TechnicalMeterComponent, cy as TextInputComponent, b as TextOutputComponent, cz as TextareaInputComponent, cA as ThemeComponent, cB as ThemeService, cC as ThemeStore, cD as TimeAgoPipe, cE as TimelineComponent, cF as ToggleButtonComponent, cG as ToggleInputComponent, cH as ToggleRadioInputComponent, cI as ToolTipDirective, cJ as TooltipComponent, T as TranslatePipe, cK as TranslateService, cL as TreeGridComponent, cM as URL_SEP, cN as USER_STORE_REF, cO as USER_TAB_MAP, cP as UlComponent, cQ as UniverseComponent, cR as UserApiService, cS as UserAvatarComponent, cT as UserComponent, cU as UserNavComponent, cV as UserSettingsComponent, cW as UserStore, cX as WC_ROUTE_CHANGED_EVENT, cY as WC_SEARCH_GROUPS, cZ as WIN_USER_TAB_HOOK, c_ as WIN_USER_TAB_KEY, c$ as WatermarkComponent, d0 as WcRouterStore, d1 as WrapperInputComponent, d2 as anchorNavId, d3 as applyColorsToElement, d4 as authGuard, d5 as bootstrapMagApp, d6 as bootstrapPwaInstall, d7 as buildWcBaseUrl, d8 as calculateLuminance, d9 as calculateRanks, da as cellText, db as checkFilterCondition, dc as childNavId, dd as classListSignal, de as coerceSize, df as createMap, dg as createPlatformNavMap, dh as deriveAvatarGradient, di as deriveContrastColor, dj as deriveOppositeColor, dk as derivePropertyName, dl as emailValidation, dm as evaluate, dn as evaluateBool, dp as flattenTreeGridRows, dq as formatBadgeCount, dr as fullName, ds as generateClipPath, dt as generateTransform, du as getClassList, dv as getProperty, dw as getScrollParent, dx as getTierFromPreviewPath, dy as getTreeGridRow, dz as getUniqueId, dA as getValue, dB as hasErrorComputed, dC as hexToRgb, dD as hslToRgb, dE as initMagmoniumApp, dF as initialNotificationState, dG as initials, dH as injectAuthenticate, dI as injectInstallApp, dJ as injectParentSize, dK as injectScrollSticky, dL as isButtonName, dM as isCancelledComputed, dN as isExtensiblePlatformNavId, dO as isJson, dP as isLoadingComputed, dQ as isLocalhost, dR as isPlatformNavId, dS as isSize, dT as isTierPreview, dU as isUrlLocalhost, dV as isValidNavId, dW as isValidNavSegment, dX as isWebComponent, dY as linkToId, dZ as linkToNav, d_ as loadingActions, d$ as loginState, e0 as mInterceptor, e1 as manualValidation, e2 as matchFieldValidation, e3 as maxLengthValidation, e4 as maxValidation, e5 as mergePlatformNav, e6 as mergeUnique, e7 as mergeUniqueBy, e8 as mergeUniqueWith, e9 as minAgeValidation, ea as minLengthValidation, eb as minValidation, ec as miniMarkToHtml, ed as navIdChain, ee as navIdFor, ef as navIdSegment, eg as navIdToRoutePath, eh as navIdToSegments, ei as navToId, ej as parentNavId, ek as parseAddress, el as parseColor, em as parsePatternNames, en as patternValidation, eo as patternsValidation, ep as platformNavWidgets, eq as privateGuard, er as processImageToSvg, es as provideAppContext, et as provideMagAppConfig, eu as provideMagWcConfig, ev as provideMagWcRoutes, ew as provideModalComponents, ex as provideMurlUrlSerializer, ey as provideNavWidgets, ez as providePlatformNavWidgets, eA as provideSearch, eB as provideSizeContext, eC as provideUserTabs, eD as publicGuard, eE as readFieldPatterns, eF as renderAddress, eG as requiredValidation, eH as resolveConfigAsset, eI as resolveIconSize, eJ as resolvePallet, eK as resolvePatternRules, eL as resolveSize, eM as rgbToHex, eN as rgbToHsl, eO as rowHasChildren, eP as samePatterns, eQ as segmentsToNavId, eR as setProperty, eS as setTreeGridChildren, eT as settingsWidgets, eU as shouldShowBadge, eV as splitNavId, eW as stringToColor, eX as toAttrBool, eY as toAttrNumber, eZ as toCssLength, e_ as toHostNavId, e$ as toLength, f0 as toLocalNavId, f1 as toggleTreeGridRow, f2 as unfetchedPlatformNav, f3 as urlValidation } from './magmonium-one-magmonium-one-
|
|
1
|
+
export { A as ACCESS_DOMAINS, d as APP_CONTEXT_REF, e as ASSET_BASE_URL, f as AccordionBodyDirective, g as AccordionComponent, h as AccordionGroupComponent, i as ActionComponent, j as AnimatedGraphsComponent, k as AppCardComponent, l as AppRelationType, m as AppTileComponent, n as AssetStore, o as AssetUrlPipe, p as Assets, q as AutosizeDirective, r as BadgeComponent, s as BandingComponent, t as BaseArrayInputComponent, u as BaseRootWebComponent, v as BaseWebComponent, c as ButtonComponent, w as ButtonGroupComponent, C as COLOR_SCHEMES, x as COMPONENT_INPUT_REGISTRY, y as CardComponent, z as CardWrapperComponent, D as CarouselComponent, E as ChartComponent, F as CheckboxInputComponent, G as ClearableInputComponent, H as ColComponent, J as ColorPickerInputComponent, K as CommentItemComponent, M as CommentsApiService, N as CommentsComponent, O as CommentsStore, P as ComponentInputComponent, Q as ComponentStepperComponent, R as ConfigComponent, S as ConfirmComponent, U as ContextMenuComponent, V as CustomIconClass, W as CustomIconEditComponent, X as DEFAULT_SIZE, Y as DashboardCardComponent, Z as DateInputComponent, _ as DatePickerComponent, $ as DeviceService, a0 as DomService, a1 as Domain, a2 as DotGridComponent, a3 as DragListDirective, a4 as DragListItemDirective, a5 as DraggableDirective, a6 as DropdownInputComponent, a7 as FLEX_VARIANTS, a8 as FOLDER_PICK_LISTENER, a9 as FORM_ASSET_FOLDER, aa as FileService, ab as FileUploadDirective, ac as FileUploadInputComponent, ad as FlexComponent, ae as FlexItemComponent, af as FormGroupComponent, ag as FrameComponent, ah as FreezeService, ai as GEN_NAV_DISPLAY_ORDER, aj as GRID_BREAKPOINTS, ak as GetNavService, al as HeaderComponent, am as HighlightDirective, an as HttpService, ao as ICON_SOURCE, I as IS_DESIGN_MODE, ap as IS_SIDE_PANEL, aq as IconComponent, ar as ImgComponent, as as InputType, at as InstrumentScoreComponent, au as InterceptorObservables, av as JumbotronComponent, aw as KeyValueComponent, ax as LAYOUT_ASSET_FOLDER, ay as LOGIN_COMPONENT, az as LOGIN_FORM_GROUP, aA as LOGIN_PROCESS, aB as LOGIN_STORE, aC as LanguageComponent, aD as LoginDataService, aE as LoginOneComponent, aF as LoginStore, aG as LogoComponent, aH as MAG_SOCKET_EVENT, aI as MHeroColorDirective, aJ as MHeroComponent, aK as MODAL_REF, aL as MODAL_STORE_REF, aM as MRefDirective, aN as MStepComponent, aO as MURL_PARAM, aP as MURL_SEP, aQ as ManifestEnrichmentService, aR as MenuComponent, aS as ModalDirective, aT as ModalRef, aU as ModalStore, aV as MoneyPipe, aW as MultiRangeInputComponent, aX as MurlUrlSerializer, aY as NAV_DEFAULT_MURL, aZ as NAV_DISPLAY_ORDER, a_ as NAV_ID_SEP, a$ as NAV_MAIN_BUTTONS, b0 as NAV_SEGMENT_RE, b1 as NAV_STORE_REF, b2 as NAV_WC_COMPONENTS, b3 as NAV_WIDGET_MAP, b4 as NavComponent, b5 as NavDetailsComponent, b6 as NavMenuComponent, b7 as NavStore, b8 as NavTrailComponent, b9 as NothingComponent, ba as NotificationElementComponent, bb as NotificationGroupComponent, bc as NotificationPopupComponent, bd as NotificationService, be as NotificationStore, bf as NotificationType, bg as NotificationWidgetComponent, bh as ONE_ASSET_BASE_URL, bi as OPTIONS_SOURCE, bj as OneApp, bk as OptionsSourceDirective, bl as OverlayBodyComponent, bm as OverlayRef, bn as OverlayService, bo as PLATFORM_BUTTON_NAV_IDS, bp as PLATFORM_EXTENSIBLE_NAV_IDS, bq as PLATFORM_NAV_MAP, br as PLATFORM_ROOT_CHILDREN, bs as PaginationComponent, bt as PanelComponent, bu as PlaygroundComponent, bv as PositionDirective, bw as PwaInstallComponent, bx as ROOT_NAV, by as RadioGroupComponent, bz as RadioInputComponent, bA as RangeInputComponent, bB as RatingInputComponent, bC as ReactiveElementComponent, bD as RemoteComponent, bE as RemoteLoaderService, bF as ResizeElementComponent, bG as RouteContainer, bH as RowComponent, bI as SEARCH_QUERY, bJ as SEARCH_RESULTS_EVENT, bK as SECTION_ACCORDION_GROUP, bL as SECTION_FORM_CONTEXT, bM as SHARED_ICONS, bN as SIZE_CONTEXT, bO as ScoreComponent, bP as ScrollComponent, bQ as ScrollService, bR as SearchPanelComponent, bS as SearchStore, bT as SearchUserPanelComponent, bU as SectionAccordionDirective, bV as SectionAccordionGroupDirective, bW as SectionBackComponent, bX as SectionBadgesComponent, bY as SectionButtonGroupComponent, bZ as SectionCardComponent, b_ as SectionComponent, b$ as SectionFilterComponent, c0 as SectionFooterComponent, c1 as SectionFormComponent, c2 as SectionFormItemComponent, c3 as SectionHeaderComponent, c4 as SectionSearchComponent, c5 as SectionStepperComponent, c6 as SectionTabsComponent, c7 as SectionToggleComponent, c8 as SectionToggleItemDirective, c9 as SelectableCardInputComponent, ca as SelectorDirective, cb as SettingsSearchBarComponent, cc as SettingsSearchService, cd as Sex, ce as ShapeComponent, cf as SharedStoreRegistry, cg as SidePanelDirective, ch as Size, ci as SocketStore, cj as SortComponent, ck as StepComponent, cl as StepperComponent, cm as StepsComponent, cn as StorageService, co as StrokeLinecap, cp as StrokeLinejoin, cq as SummaryComponent, cr as SvgGeneratorComponent, cs as SvgGeneratorService, ct as SvgService, cu as TOTAL_COLUMNS, cv as TRANSLATION_SOURCE, cw as TableComponent, cx as TechnicalMeterComponent, cy as TextInputComponent, b as TextOutputComponent, cz as TextareaInputComponent, cA as ThemeComponent, cB as ThemeService, cC as ThemeStore, cD as TimeAgoPipe, cE as TimelineComponent, cF as ToggleButtonComponent, cG as ToggleInputComponent, cH as ToggleRadioInputComponent, cI as ToolTipDirective, cJ as TooltipComponent, T as TranslatePipe, cK as TranslateService, cL as TreeGridComponent, cM as URL_SEP, cN as USER_STORE_REF, cO as USER_TAB_MAP, cP as UlComponent, cQ as UniverseComponent, cR as UserApiService, cS as UserAvatarComponent, cT as UserComponent, cU as UserNavComponent, cV as UserSettingsComponent, cW as UserStore, cX as WC_ROUTE_CHANGED_EVENT, cY as WC_SEARCH_GROUPS, cZ as WIN_USER_TAB_HOOK, c_ as WIN_USER_TAB_KEY, c$ as WatermarkComponent, d0 as WcRouterStore, d1 as WrapperInputComponent, d2 as anchorNavId, d3 as applyColorsToElement, d4 as authGuard, d5 as bootstrapMagApp, d6 as bootstrapPwaInstall, d7 as buildWcBaseUrl, d8 as calculateLuminance, d9 as calculateRanks, da as cellText, db as checkFilterCondition, dc as childNavId, dd as classListSignal, de as coerceSize, df as createMap, dg as createPlatformNavMap, dh as deriveAvatarGradient, di as deriveContrastColor, dj as deriveOppositeColor, dk as derivePropertyName, dl as emailValidation, dm as evaluate, dn as evaluateBool, dp as flattenTreeGridRows, dq as formatBadgeCount, dr as fullName, ds as generateClipPath, dt as generateTransform, du as getClassList, dv as getProperty, dw as getScrollParent, dx as getTierFromPreviewPath, dy as getTreeGridRow, dz as getUniqueId, dA as getValue, dB as hasErrorComputed, dC as hexToRgb, dD as hslToRgb, dE as initMagmoniumApp, dF as initialNotificationState, dG as initials, dH as injectAuthenticate, dI as injectInstallApp, dJ as injectParentSize, dK as injectScrollSticky, dL as isButtonName, dM as isCancelledComputed, dN as isExtensiblePlatformNavId, dO as isJson, dP as isLoadingComputed, dQ as isLocalhost, dR as isPlatformNavId, dS as isSize, dT as isTierPreview, dU as isUrlLocalhost, dV as isValidNavId, dW as isValidNavSegment, dX as isWebComponent, dY as linkToId, dZ as linkToNav, d_ as loadingActions, d$ as loginState, e0 as mInterceptor, e1 as manualValidation, e2 as matchFieldValidation, e3 as maxLengthValidation, e4 as maxValidation, e5 as mergePlatformNav, e6 as mergeUnique, e7 as mergeUniqueBy, e8 as mergeUniqueWith, e9 as minAgeValidation, ea as minLengthValidation, eb as minValidation, ec as miniMarkToHtml, ed as navIdChain, ee as navIdFor, ef as navIdSegment, eg as navIdToRoutePath, eh as navIdToSegments, ei as navToId, ej as parentNavId, ek as parseAddress, el as parseColor, em as parsePatternNames, en as patternValidation, eo as patternsValidation, ep as platformNavWidgets, eq as privateGuard, er as processImageToSvg, es as provideAppContext, et as provideMagAppConfig, eu as provideMagWcConfig, ev as provideMagWcRoutes, ew as provideModalComponents, ex as provideMurlUrlSerializer, ey as provideNavWidgets, ez as providePlatformNavWidgets, eA as provideSearch, eB as provideSizeContext, eC as provideUserTabs, eD as publicGuard, eE as readFieldPatterns, eF as renderAddress, eG as requiredValidation, eH as resolveConfigAsset, eI as resolveIconSize, eJ as resolvePallet, eK as resolvePatternRules, eL as resolveSize, eM as rgbToHex, eN as rgbToHsl, eO as rowHasChildren, eP as samePatterns, eQ as segmentsToNavId, eR as setProperty, eS as setTreeGridChildren, eT as settingsWidgets, eU as shouldShowBadge, eV as splitNavId, eW as stringToColor, eX as toAttrBool, eY as toAttrNumber, eZ as toCssLength, e_ as toHostNavId, e$ as toLength, f0 as toLocalNavId, f1 as toggleTreeGridRow, f2 as unfetchedPlatformNav, f3 as urlValidation } from './magmonium-one-magmonium-one-BkbEzLl8.mjs';
|
|
2
2
|
//# sourceMappingURL=magmonium-one.mjs.map
|
package/package.json
CHANGED
package/types/magmonium-one.d.ts
CHANGED
|
@@ -1720,6 +1720,12 @@ type DropdownOption = {
|
|
|
1720
1720
|
/** Icon name, used by the Fields that render an option as a card. */
|
|
1721
1721
|
icon?: string;
|
|
1722
1722
|
disabled?: boolean;
|
|
1723
|
+
/**
|
|
1724
|
+
* Authored text rather than an i18n key. A key is looked up by splitting on
|
|
1725
|
+
* `.`, so a path like `order.name` would resolve to the `order` key and
|
|
1726
|
+
* render that instead — the same reason a Button carries this flag.
|
|
1727
|
+
*/
|
|
1728
|
+
noTranslate?: boolean;
|
|
1723
1729
|
};
|
|
1724
1730
|
type DropdownInput = Input & {
|
|
1725
1731
|
type: InputType.DROPDOWN | InputType.MULTISELECT;
|
|
@@ -1752,6 +1758,23 @@ type SelectableCardItem = {
|
|
|
1752
1758
|
id: string;
|
|
1753
1759
|
disabled?: boolean;
|
|
1754
1760
|
inputs?: Record<string, unknown>;
|
|
1761
|
+
row?: unknown;
|
|
1762
|
+
};
|
|
1763
|
+
/**
|
|
1764
|
+
* What an inline card body reads. The same three facts a card component is
|
|
1765
|
+
* handed through `inputs` — the row, whether it is picked, whether it is
|
|
1766
|
+
* inert — plus the `@for` positions a template can use and a component seat
|
|
1767
|
+
* cannot see. `$implicit` is the item, so `let-item` alone reaches the row.
|
|
1768
|
+
*/
|
|
1769
|
+
type SelectableCardContext = {
|
|
1770
|
+
$implicit: SelectableCardItem;
|
|
1771
|
+
item: SelectableCardItem;
|
|
1772
|
+
row: unknown;
|
|
1773
|
+
selected: boolean;
|
|
1774
|
+
disabled: boolean;
|
|
1775
|
+
index: number;
|
|
1776
|
+
first: boolean;
|
|
1777
|
+
last: boolean;
|
|
1755
1778
|
};
|
|
1756
1779
|
type SelectableCardInput = Input & {
|
|
1757
1780
|
type: InputType.SELECTABLE_CARD;
|
|
@@ -2973,6 +2996,8 @@ declare class DropdownInputComponent extends BaseInputComponent<DropdownInput> i
|
|
|
2973
2996
|
protected readonly dropdownOptions: Signal<DropdownOption[]>;
|
|
2974
2997
|
private readonly translateService;
|
|
2975
2998
|
protected readonly assetOptions: Signal<DropdownOption[]>;
|
|
2999
|
+
/** An option's text: authored as it stands, a key translated. */
|
|
3000
|
+
private readonly optionLabel;
|
|
2976
3001
|
protected readonly filteredOptions: Signal<DropdownOption[]>;
|
|
2977
3002
|
protected readonly displayValue: Signal<string>;
|
|
2978
3003
|
protected readonly placeholderText: Signal<string>;
|
|
@@ -3088,6 +3113,9 @@ declare class WrapperInputComponent<T extends Input = Input> extends ConfigCompo
|
|
|
3088
3113
|
dir: _angular_core.InputSignal<Direction$1>;
|
|
3089
3114
|
element: _angular_core.InputSignal<Type<unknown>>;
|
|
3090
3115
|
data: _angular_core.InputSignal<SelectableCardItem[]>;
|
|
3116
|
+
template: _angular_core.InputSignal<TemplateRef<SelectableCardContext>>;
|
|
3117
|
+
private readonly projectedTemplate;
|
|
3118
|
+
protected readonly cardTemplate: Signal<TemplateRef<SelectableCardContext>>;
|
|
3091
3119
|
aclResolver: _angular_core.InputSignal<AclResolverFn>;
|
|
3092
3120
|
formValues: _angular_core.InputSignal<Record<string, unknown>>;
|
|
3093
3121
|
readonly act: _angular_core.OutputEmitterRef<Record<string, unknown>>;
|
|
@@ -3118,7 +3146,7 @@ declare class WrapperInputComponent<T extends Input = Input> extends ConfigCompo
|
|
|
3118
3146
|
private readonly createDynamicComponent;
|
|
3119
3147
|
private readonly createDynamicInput;
|
|
3120
3148
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrapperInputComponent<any>, never>;
|
|
3121
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrapperInputComponent<any>, "m-input-wrapper", never, { "remote": { "alias": "remote"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "focused": { "alias": "focused"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "dir": { "alias": "dir"; "required": false; "isSignal": true; }; "element": { "alias": "element"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "aclResolver": { "alias": "aclResolver"; "required": false; "isSignal": true; }; "formValues": { "alias": "formValues"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "state": "stateChange"; "act": "act"; "fieldKey": "fieldKey"; },
|
|
3149
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WrapperInputComponent<any>, "m-input-wrapper", never, { "remote": { "alias": "remote"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "focused": { "alias": "focused"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "dir": { "alias": "dir"; "required": false; "isSignal": true; }; "element": { "alias": "element"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "template": { "alias": "template"; "required": false; "isSignal": true; }; "aclResolver": { "alias": "aclResolver"; "required": false; "isSignal": true; }; "formValues": { "alias": "formValues"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "state": "stateChange"; "act": "act"; "fieldKey": "fieldKey"; }, ["projectedTemplate"], never, true, never>;
|
|
3122
3150
|
}
|
|
3123
3151
|
|
|
3124
3152
|
interface InputModel {
|
|
@@ -3247,19 +3275,24 @@ declare class ToggleRadioInputComponent extends BaseTextInputComponent<ToggleRad
|
|
|
3247
3275
|
declare class SelectableCardInputComponent extends BaseInputComponent<SelectableCardInput> {
|
|
3248
3276
|
readonly element: _angular_core.InputSignal<Type<unknown>>;
|
|
3249
3277
|
readonly data: _angular_core.InputSignal<SelectableCardItem[]>;
|
|
3278
|
+
readonly template: _angular_core.InputSignal<TemplateRef<SelectableCardContext>>;
|
|
3250
3279
|
readonly options: _angular_core.InputSignal<DropdownOption[] | Signal<DropdownOption[]>>;
|
|
3251
3280
|
readonly value: _angular_core.ModelSignal<string | string[]>;
|
|
3252
3281
|
private readonly assetOptions;
|
|
3253
3282
|
protected readonly cardOptions: Signal<DropdownOption[]>;
|
|
3283
|
+
private readonly isDesignMode;
|
|
3254
3284
|
protected readonly items: Signal<SelectableCardItem[]>;
|
|
3255
3285
|
protected readonly labels: Signal<Record<string, string>>;
|
|
3256
3286
|
protected readonly icons: Signal<Record<string, string>>;
|
|
3257
3287
|
protected readonly isSelected: (id: string) => boolean;
|
|
3258
3288
|
protected readonly cardInputs: (item: SelectableCardItem, selected: boolean, disabled: boolean) => Record<string, unknown>;
|
|
3289
|
+
private readonly projectedTemplate;
|
|
3290
|
+
protected readonly cardTemplate: Signal<TemplateRef<SelectableCardContext>>;
|
|
3291
|
+
protected readonly cardContext: (item: SelectableCardItem, selected: boolean, disabled: boolean, index: number, first: boolean, last: boolean) => SelectableCardContext;
|
|
3259
3292
|
protected readonly onCardClick: (id: string) => void;
|
|
3260
3293
|
protected readonly onInputChange: (event: Event, id: string) => void;
|
|
3261
3294
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SelectableCardInputComponent, never>;
|
|
3262
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SelectableCardInputComponent, "m-selectable-card", never, { "element": { "alias": "element"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; },
|
|
3295
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SelectableCardInputComponent, "m-selectable-card", never, { "element": { "alias": "element"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "template": { "alias": "template"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, ["projectedTemplate"], never, true, never>;
|
|
3263
3296
|
}
|
|
3264
3297
|
|
|
3265
3298
|
declare class RatingInputComponent extends BaseInputComponent<RatingInput> implements FormValueControl<number | null> {
|
|
@@ -3387,6 +3420,7 @@ declare class FormGroupComponent<T extends Form = Form> extends ConfigComponent<
|
|
|
3387
3420
|
fieldRenderIds: _angular_core.InputSignal<Record<string, string>>;
|
|
3388
3421
|
protected readonly namedFieldConfigs: WritableSignal<Record<string, Partial<Input>>>;
|
|
3389
3422
|
elements: _angular_core.InputSignal<Record<string, Type<unknown>>>;
|
|
3423
|
+
templates: _angular_core.InputSignal<Record<string, TemplateRef<SelectableCardContext>>>;
|
|
3390
3424
|
datas: _angular_core.InputSignal<Record<string, SelectableCardItem[]>>;
|
|
3391
3425
|
readonly label: _angular_core.InputSignal<string>;
|
|
3392
3426
|
readonly subtitle: _angular_core.InputSignal<string>;
|
|
@@ -3414,10 +3448,10 @@ declare class FormGroupComponent<T extends Form = Form> extends ConfigComponent<
|
|
|
3414
3448
|
readonly reset: () => void;
|
|
3415
3449
|
protected handleForm(event: SubmitEvent): void;
|
|
3416
3450
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormGroupComponent<any>, never>;
|
|
3417
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormGroupComponent<any>, "m-form, m-one-form", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "validation": { "alias": "validation"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "fieldConfigs": { "alias": "fieldConfigs"; "required": false; "isSignal": true; }; "aclResolver": { "alias": "aclResolver"; "required": false; "isSignal": true; }; "autofocus": { "alias": "autofocus"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "fieldRenderIds": { "alias": "fieldRenderIds"; "required": false; "isSignal": true; }; "elements": { "alias": "elements"; "required": false; "isSignal": true; }; "datas": { "alias": "datas"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; }, { "dataChange": "dataChange"; "act": "act"; "state": "stateChange"; }, never, never, true, never>;
|
|
3451
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormGroupComponent<any>, "m-form, m-one-form", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "validation": { "alias": "validation"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "fieldConfigs": { "alias": "fieldConfigs"; "required": false; "isSignal": true; }; "aclResolver": { "alias": "aclResolver"; "required": false; "isSignal": true; }; "autofocus": { "alias": "autofocus"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "fieldRenderIds": { "alias": "fieldRenderIds"; "required": false; "isSignal": true; }; "elements": { "alias": "elements"; "required": false; "isSignal": true; }; "templates": { "alias": "templates"; "required": false; "isSignal": true; }; "datas": { "alias": "datas"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; }, { "dataChange": "dataChange"; "act": "act"; "state": "stateChange"; }, never, never, true, never>;
|
|
3418
3452
|
}
|
|
3419
3453
|
|
|
3420
|
-
interface SectionFormConfig extends Form {
|
|
3454
|
+
interface SectionFormConfig extends Omit<Form, 'label' | 'subtitle'> {
|
|
3421
3455
|
variant?: 'noBorder' | 'withBorder' | 'sandwichBorder' | string;
|
|
3422
3456
|
maxWidth?: number | string;
|
|
3423
3457
|
size?: Size;
|
|
@@ -3553,6 +3587,9 @@ declare class SectionFormItemComponent extends ConfigComponent<Input> implements
|
|
|
3553
3587
|
readonly dir: _angular_core.InputSignal<Direction$1>;
|
|
3554
3588
|
readonly element: _angular_core.InputSignal<Type<unknown>>;
|
|
3555
3589
|
readonly data: _angular_core.InputSignal<SelectableCardItem[]>;
|
|
3590
|
+
readonly template: _angular_core.InputSignal<TemplateRef<SelectableCardContext>>;
|
|
3591
|
+
private readonly projectedTemplate;
|
|
3592
|
+
protected readonly cardTemplate: Signal<TemplateRef<SelectableCardContext>>;
|
|
3556
3593
|
readonly aclResolver: _angular_core.InputSignal<AclResolverFn>;
|
|
3557
3594
|
readonly formValues: _angular_core.InputSignal<Record<string, unknown>>;
|
|
3558
3595
|
readonly type: _angular_core.InputSignal<string>;
|
|
@@ -3639,7 +3676,7 @@ declare class SectionFormItemComponent extends ConfigComponent<Input> implements
|
|
|
3639
3676
|
private readonly createDynamicComponent;
|
|
3640
3677
|
private readonly createDynamicInput;
|
|
3641
3678
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SectionFormItemComponent, never>;
|
|
3642
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SectionFormItemComponent, "m-section-form-item, m-one-section-form-item", never, { "span": { "alias": "span"; "required": false; "isSignal": true; }; "labelOrientation": { "alias": "labelOrientation"; "required": false; "isSignal": true; }; "gap": { "alias": "gap"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "focused": { "alias": "focused"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "dir": { "alias": "dir"; "required": false; "isSignal": true; }; "element": { "alias": "element"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "aclResolver": { "alias": "aclResolver"; "required": false; "isSignal": true; }; "formValues": { "alias": "formValues"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "prefix": { "alias": "prefix"; "required": false; "isSignal": true; }; "suffix": { "alias": "suffix"; "required": false; "isSignal": true; }; "button": { "alias": "button"; "required": false; "isSignal": true; }; "buttonAction": { "alias": "buttonAction"; "required": false; "isSignal": true; }; "buttonAcl": { "alias": "buttonAcl"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "acl": { "alias": "acl"; "required": false; "isSignal": true; }; "testid": { "alias": "testid"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "length": { "alias": "length"; "required": false; "isSignal": true; }; "debounce": { "alias": "debounce"; "required": false; "isSignal": true; }; "dateFormat": { "alias": "dateFormat"; "required": false; "isSignal": true; }; "searchLabel": { "alias": "searchLabel"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "multiSelect": { "alias": "multiSelect"; "required": false; "isSignal": true; }; "equalWidth": { "alias": "equalWidth"; "required": false; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; "isCheckboxVisible": { "alias": "isCheckboxVisible"; "required": false; "isSignal": true; }; "optionsAsset": { "alias": "optionsAsset"; "required": false; "isSignal": true; }; "patterns": { "alias": "patterns"; "required": false; "isSignal": true; }; "patternMessage": { "alias": "patternMessage"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "act": "act"; "fieldKey": "fieldKey"; },
|
|
3679
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SectionFormItemComponent, "m-section-form-item, m-one-section-form-item", never, { "span": { "alias": "span"; "required": false; "isSignal": true; }; "labelOrientation": { "alias": "labelOrientation"; "required": false; "isSignal": true; }; "gap": { "alias": "gap"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "focused": { "alias": "focused"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "dir": { "alias": "dir"; "required": false; "isSignal": true; }; "element": { "alias": "element"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "template": { "alias": "template"; "required": false; "isSignal": true; }; "aclResolver": { "alias": "aclResolver"; "required": false; "isSignal": true; }; "formValues": { "alias": "formValues"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "prefix": { "alias": "prefix"; "required": false; "isSignal": true; }; "suffix": { "alias": "suffix"; "required": false; "isSignal": true; }; "button": { "alias": "button"; "required": false; "isSignal": true; }; "buttonAction": { "alias": "buttonAction"; "required": false; "isSignal": true; }; "buttonAcl": { "alias": "buttonAcl"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "acl": { "alias": "acl"; "required": false; "isSignal": true; }; "testid": { "alias": "testid"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "length": { "alias": "length"; "required": false; "isSignal": true; }; "debounce": { "alias": "debounce"; "required": false; "isSignal": true; }; "dateFormat": { "alias": "dateFormat"; "required": false; "isSignal": true; }; "searchLabel": { "alias": "searchLabel"; "required": false; "isSignal": true; }; "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "multiSelect": { "alias": "multiSelect"; "required": false; "isSignal": true; }; "equalWidth": { "alias": "equalWidth"; "required": false; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; "isCheckboxVisible": { "alias": "isCheckboxVisible"; "required": false; "isSignal": true; }; "optionsAsset": { "alias": "optionsAsset"; "required": false; "isSignal": true; }; "patterns": { "alias": "patterns"; "required": false; "isSignal": true; }; "patternMessage": { "alias": "patternMessage"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "act": "act"; "fieldKey": "fieldKey"; }, ["projectedTemplate"], never, true, never>;
|
|
3643
3680
|
}
|
|
3644
3681
|
|
|
3645
3682
|
/**
|
|
@@ -4921,6 +4958,7 @@ declare class TextOutputComponent extends ConfigComponent<TextOutputConfig> {
|
|
|
4921
4958
|
readonly color: _angular_core.InputSignal<string>;
|
|
4922
4959
|
readonly label: _angular_core.InputSignal<string>;
|
|
4923
4960
|
readonly noTranslate: _angular_core.InputSignal<string | boolean>;
|
|
4961
|
+
readonly params: _angular_core.InputSignal<Record<string, string>>;
|
|
4924
4962
|
readonly resolvedAlign: _angular_core.Signal<TextOutputAlign>;
|
|
4925
4963
|
protected readonly resolvedVariant: _angular_core.Signal<"footer">;
|
|
4926
4964
|
protected readonly resolvedColor: _angular_core.Signal<string>;
|
|
@@ -4929,7 +4967,7 @@ declare class TextOutputComponent extends ConfigComponent<TextOutputConfig> {
|
|
|
4929
4967
|
protected readonly shouldTranslate: _angular_core.Signal<boolean>;
|
|
4930
4968
|
protected readonly html: _angular_core.Signal<string>;
|
|
4931
4969
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextOutputComponent, never>;
|
|
4932
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TextOutputComponent, "m-text-output", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "noTranslate": { "alias": "noTranslate"; "required": false; "isSignal": true; }; }, { "config": "configChange"; }, never, never, true, never>;
|
|
4970
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TextOutputComponent, "m-text-output", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "noTranslate": { "alias": "noTranslate"; "required": false; "isSignal": true; }; "params": { "alias": "params"; "required": false; "isSignal": true; }; }, { "config": "configChange"; }, never, never, true, never>;
|
|
4933
4971
|
}
|
|
4934
4972
|
|
|
4935
4973
|
interface PwaManifest {
|
|
@@ -5039,28 +5077,6 @@ interface ColorScheme {
|
|
|
5039
5077
|
}
|
|
5040
5078
|
declare const COLOR_SCHEMES: ColorScheme[];
|
|
5041
5079
|
|
|
5042
|
-
interface User {
|
|
5043
|
-
id: string;
|
|
5044
|
-
username: string;
|
|
5045
|
-
firstName: string;
|
|
5046
|
-
lastName: string;
|
|
5047
|
-
dob: string;
|
|
5048
|
-
lang: string;
|
|
5049
|
-
sex: number;
|
|
5050
|
-
bio?: string;
|
|
5051
|
-
}
|
|
5052
|
-
interface SearchMeta {
|
|
5053
|
-
size: number;
|
|
5054
|
-
step: number;
|
|
5055
|
-
sortBy: string;
|
|
5056
|
-
isDescending: boolean;
|
|
5057
|
-
total: number;
|
|
5058
|
-
}
|
|
5059
|
-
interface SearchCriteria {
|
|
5060
|
-
firstName?: string;
|
|
5061
|
-
lastName?: string;
|
|
5062
|
-
}
|
|
5063
|
-
|
|
5064
5080
|
declare class IdentityCardContentComponent {
|
|
5065
5081
|
protected readonly loginStore: {
|
|
5066
5082
|
username: _angular_core.Signal<string>;
|
|
@@ -5198,10 +5214,6 @@ declare class IdentityCardContentComponent {
|
|
|
5198
5214
|
readonly lastName: _angular_core.InputSignal<string>;
|
|
5199
5215
|
readonly email: _angular_core.InputSignal<string>;
|
|
5200
5216
|
readonly profilePic: _angular_core.InputSignal<string>;
|
|
5201
|
-
readonly identityUser: _angular_core.Signal<Partial<User> & {
|
|
5202
|
-
id: string;
|
|
5203
|
-
profilePic?: string;
|
|
5204
|
-
}>;
|
|
5205
5217
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IdentityCardContentComponent, never>;
|
|
5206
5218
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<IdentityCardContentComponent, "m-identity-card-content", never, { "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "firstName": { "alias": "firstName"; "required": false; "isSignal": true; }; "lastName": { "alias": "lastName"; "required": false; "isSignal": true; }; "email": { "alias": "email"; "required": false; "isSignal": true; }; "profilePic": { "alias": "profilePic"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5207
5219
|
}
|
|
@@ -6122,6 +6134,28 @@ declare class SvgService {
|
|
|
6122
6134
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<SvgService>;
|
|
6123
6135
|
}
|
|
6124
6136
|
|
|
6137
|
+
interface User {
|
|
6138
|
+
id: string;
|
|
6139
|
+
username: string;
|
|
6140
|
+
firstName: string;
|
|
6141
|
+
lastName: string;
|
|
6142
|
+
dob: string;
|
|
6143
|
+
lang: string;
|
|
6144
|
+
sex: number;
|
|
6145
|
+
bio?: string;
|
|
6146
|
+
}
|
|
6147
|
+
interface SearchMeta {
|
|
6148
|
+
size: number;
|
|
6149
|
+
step: number;
|
|
6150
|
+
sortBy: string;
|
|
6151
|
+
isDescending: boolean;
|
|
6152
|
+
total: number;
|
|
6153
|
+
}
|
|
6154
|
+
interface SearchCriteria {
|
|
6155
|
+
firstName?: string;
|
|
6156
|
+
lastName?: string;
|
|
6157
|
+
}
|
|
6158
|
+
|
|
6125
6159
|
declare const UserStore: _angular_core.Type<{
|
|
6126
6160
|
userMap: Signal<Record<string, User>>;
|
|
6127
6161
|
nameMap: Signal<Record<string, string>>;
|
|
@@ -6234,29 +6268,27 @@ declare class SearchUserPanelComponent {
|
|
|
6234
6268
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SearchUserPanelComponent, "m-search-user-panel", never, { "onUserSelected": { "alias": "onUserSelected"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
6235
6269
|
}
|
|
6236
6270
|
|
|
6271
|
+
type ResolvedUser = Partial<User> & {
|
|
6272
|
+
id?: string;
|
|
6273
|
+
profilePic?: string;
|
|
6274
|
+
};
|
|
6237
6275
|
declare class UserComponent {
|
|
6238
6276
|
#private;
|
|
6239
6277
|
id: _angular_core.InputSignal<string>;
|
|
6240
|
-
user: _angular_core.InputSignal<
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
protected readonly hasContent: _angular_core.WritableSignal<boolean>;
|
|
6246
|
-
readonly resolvedUser: _angular_core.Signal<Partial<User> & {
|
|
6247
|
-
id: string;
|
|
6248
|
-
profilePic?: string;
|
|
6249
|
-
}>;
|
|
6250
|
-
constructor();
|
|
6278
|
+
user: _angular_core.InputSignal<ResolvedUser>;
|
|
6279
|
+
firstName: _angular_core.InputSignal<string>;
|
|
6280
|
+
lastName: _angular_core.InputSignal<string>;
|
|
6281
|
+
profilePic: _angular_core.InputSignal<string>;
|
|
6282
|
+
readonly resolvedUser: _angular_core.Signal<ResolvedUser>;
|
|
6251
6283
|
readonly displayName: _angular_core.Signal<string>;
|
|
6252
6284
|
readonly identityName: _angular_core.Signal<string>;
|
|
6253
6285
|
readonly gender: _angular_core.Signal<"male" | "female">;
|
|
6254
6286
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UserComponent, never>;
|
|
6255
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UserComponent, "m-user", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "user": { "alias": "user"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
6287
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<UserComponent, "m-user", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "user": { "alias": "user"; "required": false; "isSignal": true; }; "firstName": { "alias": "firstName"; "required": false; "isSignal": true; }; "lastName": { "alias": "lastName"; "required": false; "isSignal": true; }; "profilePic": { "alias": "profilePic"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
6256
6288
|
}
|
|
6257
6289
|
|
|
6258
6290
|
type AvatarUser = {
|
|
6259
|
-
id
|
|
6291
|
+
id?: string;
|
|
6260
6292
|
firstName?: string;
|
|
6261
6293
|
lastName?: string;
|
|
6262
6294
|
profilePic?: string;
|
|
@@ -7567,4 +7599,4 @@ declare class DotGridComponent {
|
|
|
7567
7599
|
}
|
|
7568
7600
|
|
|
7569
7601
|
export { ACCESS_DOMAINS, APP_CONTEXT_REF, ASSET_BASE_URL, AccordionBodyDirective, AccordionComponent, AccordionGroupComponent, ActionComponent, AnimatedGraphsComponent, AppCardComponent, AppRelationType, AppTileComponent, AssetStore, AssetUrlPipe, Assets, AutosizeDirective, BadgeComponent, BandingComponent, BaseArrayInputComponent, BaseRootWebComponent, BaseWebComponent, ButtonComponent, ButtonGroupComponent, COLOR_SCHEMES, COMPONENT_INPUT_REGISTRY, CardComponent, CardWrapperComponent, CarouselComponent, ChartComponent, CheckboxInputComponent, ClearableInputComponent, ColComponent, ColorPickerInputComponent, CommentItemComponent, CommentsApiService, CommentsComponent, CommentsStore, ComponentInputComponent, ComponentStepperComponent, ConfigComponent, ConfirmComponent, ContextMenuComponent, CustomIconClass, CustomIconEditComponent, DEFAULT_SIZE, DashboardCardComponent, DateInputComponent, DatePickerComponent, DeviceService, DomService, Domain, DotGridComponent, DragListDirective, DragListItemDirective, DraggableDirective, DropdownInputComponent, FLEX_VARIANTS, FOLDER_PICK_LISTENER, FORM_ASSET_FOLDER, FileService, FileUploadDirective, FileUploadInputComponent, FlexComponent, FlexItemComponent, FormGroupComponent, FrameComponent, FreezeService, GEN_NAV_DISPLAY_ORDER, 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_FORM_GROUP, LOGIN_PROCESS, LOGIN_STORE, LanguageComponent, LoginDataService, LoginOneComponent, LoginStore, 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_DISPLAY_ORDER, NAV_ID_SEP, NAV_MAIN_BUTTONS, NAV_SEGMENT_RE, NAV_STORE_REF, NAV_WC_COMPONENTS, NAV_WIDGET_MAP, NavComponent, NavDetailsComponent, NavMenuComponent, NavStore, NavTrailComponent, NothingComponent, NotificationElementComponent, NotificationGroupComponent, NotificationPopupComponent, NotificationService, NotificationStore, NotificationType, NotificationWidgetComponent, ONE_ASSET_BASE_URL, OPTIONS_SOURCE, OneApp, OptionsSourceDirective, OverlayBodyComponent, OverlayRef, OverlayService, PLATFORM_BUTTON_NAV_IDS, PLATFORM_EXTENSIBLE_NAV_IDS, PLATFORM_NAV_MAP, PLATFORM_ROOT_CHILDREN, PaginationComponent, PanelComponent, 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, SectionComponent, SectionFilterComponent, SectionFooterComponent, SectionFormComponent, SectionFormItemComponent, SectionHeaderComponent, SectionSearchComponent, SectionStepperComponent, SectionTabsComponent, SectionToggleComponent, SectionToggleItemDirective, SelectableCardInputComponent, SelectorDirective, SettingsSearchBarComponent, SettingsSearchService, Sex, ShapeComponent, SharedStoreRegistry, SidePanelDirective, Size, SocketStore, SortComponent, StepComponent, StepperComponent, StepsComponent, StorageService, StrokeLinecap, StrokeLinejoin, SummaryComponent, SvgGeneratorComponent, SvgGeneratorService, SvgService, TOTAL_COLUMNS, TRANSLATION_SOURCE, TableComponent, TableFilterCondition, TechnicalMeterComponent, TextInputComponent, TextOutputComponent, TextareaInputComponent, ThemeComponent, ThemeService, ThemeStore, TimeAgoPipe, TimelineComponent, ToggleButtonComponent, ToggleInputComponent, ToggleRadioInputComponent, ToolTipDirective, TooltipComponent, TranslatePipe, TranslateService, TreeGridComponent, URL_SEP, USER_STORE_REF, USER_TAB_MAP, UlComponent, 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, authGuard, bootstrapMagApp, bootstrapPwaInstall, buildWcBaseUrl, calculateLuminance, calculateRanks, cellText, checkFilterCondition, childNavId, classListSignal, coerceSize, createMap, createPlatformNavMap, deriveAvatarGradient, deriveContrastColor, deriveOppositeColor, derivePropertyName, emailValidation, evaluate, evaluateBool, flattenTreeGridRows, formatBadgeCount, fullName, generateClipPath, generateTransform, getClassList, getProperty, getScrollParent, getTierFromPreviewPath, getTreeGridRow, getUniqueId, getValue, hasErrorComputed, hexToRgb, hslToRgb, initMagmoniumApp, initialNotificationState, initials, injectAuthenticate, injectInstallApp, injectParentSize, injectScrollSticky, isButtonName, isCancelledComputed, isExtensiblePlatformNavId, isJson, isLoadingComputed, isLocalhost, isPlatformNavId, isSize, isTierPreview, isUrlLocalhost, isValidNavId, isValidNavSegment, isWebComponent, linkToId, linkToNav, loadingActions, loginState, mInterceptor, manualValidation, matchFieldValidation, maxLengthValidation, maxValidation, mergePlatformNav, mergeUnique, mergeUniqueBy, mergeUniqueWith, minAgeValidation, minLengthValidation, minValidation, miniMarkToHtml, navIdChain, navIdFor, navIdSegment, navIdToRoutePath, navIdToSegments, navToId, parentNavId, parseAddress, parseColor, parsePatternNames, patternValidation, patternsValidation, platformNavWidgets, privateGuard, processImageToSvg, provideAppContext, provideMagAppConfig, provideMagWcConfig, provideMagWcRoutes, provideModalComponents, provideMurlUrlSerializer, provideNavWidgets, providePlatformNavWidgets, provideSearch, provideSizeContext, provideUserTabs, publicGuard, readFieldPatterns, renderAddress, requiredValidation, resolveConfigAsset, resolveIconSize, resolvePallet, resolvePatternRules, resolveSize, rgbToHex, rgbToHsl, rowHasChildren, samePatterns, segmentsToNavId, setProperty, setTreeGridChildren, settingsWidgets, shouldShowBadge, splitNavId, stringToColor, toAttrBool, toAttrNumber, toCssLength, toHostNavId, toLength, toLocalNavId, toggleTreeGridRow, unfetchedPlatformNav, urlValidation };
|
|
7570
|
-
export type { Accordion, AccordionGroup, AccordionVariant, ActionNotification, Align, AnimatedGraphConfig, AnimatedGraphCurveInput, AppCardData, AppCardInputs, AppCardVariant, AppContextRef, AppHint, AppManifest, AppRelation, AppTileData, Auth, AuthResult, Badge, BadgePosition, BadgeVariant, BandingConfig, BreadCrumb, BreadcrumbTrail, Button, ButtonGroup, Carousel, CarouselPosition, CarouselSlide, CellChangeEvent, CellClickEvent, Chart, ChartSeries, ColBreakpoint, ColSpan, ColorInput, ColorPallet, ColorPropertyType, ColorScheme, ColumnDef, Comment, CommentItem, ComponentInput, Config, ContextMenu, ContextMenuEvent, CropData, Cursor, CustomIcon, DateInput, Direction$2 as Direction, DotGridVariant, DragListReorder, Draggable, DraggableState, DropdownInput, DropdownOption, ElementType, FieldPatterns, FileUploadConfig, FileUploadEvent, FileUploadInput, FilterOption, FlatTreeGridRow, FlexAlign, FlexAlignSelf, FlexConfig, FlexDirection, FlexItemConfig, FlexJustify, FlexVariant, FolderPickListener, Form, FormState, Genre, GridBreakpoint, Header, HeaderLevel, HeldShelf, HeroDataRecord, HeroDimensions, HslColor, Icon, IdentityInfo, Input, InputModel, InputSpan, InputState, InputValue, Jumbotron, JumbotronAnimation, KeyValueVariant, LoadingActionsApi, LoginState, LoginStoreContract, LogoVariant, MagAppConfigOptions, MagWcConfigOptions, ManualErrorValidator, MenuItem, Modal, ModalOverlayConfig, ModalStoreRef, ModalStoreTrigger, ModalTrigger, MoneySystem, MultiRangeInput, Nav, NavIdKey, NavKind, NavMap, NavPresentation, NavStoreRef, NavWidgetConfig, NavWidgetEntry, NavWidgetMap, Notification, NotificationSeverity, NotificationState, NotificationUser, Option, OtpInput, OverlayConfig, PageChangeEvent, Pagination, PanelOverlayConfig, PanelTrigger, PasswordInput, PatternRule, Position, QueryParams, QueryValue, RadioGroupInput, RadioInput, RangeInput, RatingInput, RemoteSelectorConfig, ResolvedUserTab, RgbColor, SearchChangeEvent, SearchInput, SearchResult, SearchSourceGroup, SearchState, SectionAccordion, SectionAccordionGroup, SectionAccordionGroupContext, SectionAccordionRef, SectionButtonGroupConfig, SectionFormConfig, SectionFormContext, SectionToggleItem, SectionToggleItemContext, SelectableCardInput, SelectableCardItem, SelectionAction, SelectionActionEvent, SelectionChangeEvent, SelectorConfig, Shape, ShapeType, ShapeVariant, SharedToken, SharedUser, SizeContext, SizeDeclarer, SocketMessage, Sort, SortChange, SortChangeEvent, SortOption, SortOrder, Step, Stepper, StepperResponsiveConfig, StepperStep, Steps, StickyBehavior, Summary, SummaryAction, SummaryRow, SummaryRowType, Svg, SvgGenOptions, SvgGeneratorCoreOptions, SvgGeneratorEditOptions, TabGroup, TableConfig, TableFilterDef, TextInput, TextNotification, TextOutputAlign, TextOutputConfig, TextOutputVariant, TextareaInput, Timeline, TimelineItem, ToggleInput, ToggleRadioInput, Token, TreeGridCellClickEvent, TreeGridLoadChildrenEvent, TreeGridRow, TreeGridRowSelectEvent, TreeGridToggleEvent, UniverseColorScheme, User, UserStoreRef, Version, Watermark, WebComponentConfig, WeeklyData };
|
|
7602
|
+
export type { Accordion, AccordionGroup, AccordionVariant, ActionNotification, Align, AnimatedGraphConfig, AnimatedGraphCurveInput, AppCardData, AppCardInputs, AppCardVariant, AppContextRef, AppHint, AppManifest, AppRelation, AppTileData, Auth, AuthResult, Badge, BadgePosition, BadgeVariant, BandingConfig, BreadCrumb, BreadcrumbTrail, Button, ButtonGroup, Carousel, CarouselPosition, CarouselSlide, CellChangeEvent, CellClickEvent, Chart, ChartSeries, ColBreakpoint, ColSpan, ColorInput, ColorPallet, ColorPropertyType, ColorScheme, ColumnDef, Comment, CommentItem, ComponentInput, Config, ContextMenu, ContextMenuEvent, CropData, Cursor, CustomIcon, DateInput, Direction$2 as Direction, DotGridVariant, DragListReorder, Draggable, DraggableState, DropdownInput, DropdownOption, ElementType, FieldPatterns, FileUploadConfig, FileUploadEvent, FileUploadInput, FilterOption, FlatTreeGridRow, FlexAlign, FlexAlignSelf, FlexConfig, FlexDirection, FlexItemConfig, FlexJustify, FlexVariant, FolderPickListener, Form, FormState, Genre, GridBreakpoint, Header, HeaderLevel, HeldShelf, HeroDataRecord, HeroDimensions, HslColor, Icon, IdentityInfo, Input, InputModel, InputSpan, InputState, InputValue, Jumbotron, JumbotronAnimation, KeyValueVariant, LoadingActionsApi, LoginState, LoginStoreContract, LogoVariant, MagAppConfigOptions, MagWcConfigOptions, ManualErrorValidator, MenuItem, Modal, ModalOverlayConfig, ModalStoreRef, ModalStoreTrigger, ModalTrigger, MoneySystem, MultiRangeInput, Nav, NavIdKey, NavKind, NavMap, NavPresentation, NavStoreRef, NavWidgetConfig, NavWidgetEntry, NavWidgetMap, Notification, NotificationSeverity, NotificationState, NotificationUser, Option, OtpInput, OverlayConfig, PageChangeEvent, Pagination, PanelOverlayConfig, PanelTrigger, PasswordInput, PatternRule, Position, QueryParams, QueryValue, RadioGroupInput, RadioInput, RangeInput, RatingInput, RemoteSelectorConfig, ResolvedUserTab, RgbColor, SearchChangeEvent, SearchInput, SearchResult, SearchSourceGroup, SearchState, SectionAccordion, SectionAccordionGroup, SectionAccordionGroupContext, SectionAccordionRef, SectionButtonGroupConfig, SectionFormConfig, SectionFormContext, SectionToggleItem, SectionToggleItemContext, SelectableCardContext, SelectableCardInput, SelectableCardItem, SelectionAction, SelectionActionEvent, SelectionChangeEvent, SelectorConfig, Shape, ShapeType, ShapeVariant, SharedToken, SharedUser, SizeContext, SizeDeclarer, SocketMessage, Sort, SortChange, SortChangeEvent, SortOption, SortOrder, Step, Stepper, StepperResponsiveConfig, StepperStep, Steps, StickyBehavior, Summary, SummaryAction, SummaryRow, SummaryRowType, Svg, SvgGenOptions, SvgGeneratorCoreOptions, SvgGeneratorEditOptions, TabGroup, TableConfig, TableFilterDef, TextInput, TextNotification, TextOutputAlign, TextOutputConfig, TextOutputVariant, TextareaInput, Timeline, TimelineItem, ToggleInput, ToggleRadioInput, Token, TreeGridCellClickEvent, TreeGridLoadChildrenEvent, TreeGridRow, TreeGridRowSelectEvent, TreeGridToggleEvent, UniverseColorScheme, User, UserStoreRef, Version, Watermark, WebComponentConfig, WeeklyData };
|