@magmonium/one 0.2.14 → 0.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/{magmonium-one-magmonium-one-BvU_XSQh.mjs → magmonium-one-magmonium-one-CD8ioDZO.mjs} +161 -94
- package/fesm2022/magmonium-one-magmonium-one-CD8ioDZO.mjs.map +1 -0
- package/fesm2022/{magmonium-one-otp-9eWJYE9J.mjs → magmonium-one-otp-BZAX_j5g.mjs} +5 -3
- package/fesm2022/magmonium-one-otp-BZAX_j5g.mjs.map +1 -0
- package/fesm2022/{magmonium-one-password-CTyJLNyq.mjs → magmonium-one-password-CvTU1Qx-.mjs} +7 -5
- package/fesm2022/magmonium-one-password-CvTU1Qx-.mjs.map +1 -0
- package/fesm2022/{magmonium-one-toggle-eVOf7Ji_.mjs → magmonium-one-toggle-C-FB-Gcs.mjs} +2 -2
- package/fesm2022/{magmonium-one-toggle-eVOf7Ji_.mjs.map → magmonium-one-toggle-C-FB-Gcs.mjs.map} +1 -1
- package/fesm2022/magmonium-one.mjs +1 -1
- package/package.json +1 -1
- package/types/magmonium-one.d.ts +22 -5
- package/fesm2022/magmonium-one-magmonium-one-BvU_XSQh.mjs.map +0 -1
- package/fesm2022/magmonium-one-otp-9eWJYE9J.mjs.map +0 -1
- package/fesm2022/magmonium-one-password-CTyJLNyq.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { signal, viewChildren, computed, inject, effect, afterRenderEffect, untracked, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { 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-CD8ioDZO.mjs';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
|
|
6
6
|
class OtpInputComponent extends BaseTextInputComponent {
|
|
@@ -125,6 +125,7 @@ class OtpInputComponent extends BaseTextInputComponent {
|
|
|
125
125
|
<m-label
|
|
126
126
|
[for]="otp.name"
|
|
127
127
|
[placeholder]="otp.label"
|
|
128
|
+
[params]="otp.params"
|
|
128
129
|
[required]="required()"
|
|
129
130
|
[disabled]="isDisabled()"
|
|
130
131
|
/>
|
|
@@ -154,7 +155,7 @@ class OtpInputComponent extends BaseTextInputComponent {
|
|
|
154
155
|
}
|
|
155
156
|
}
|
|
156
157
|
}
|
|
157
|
-
`, 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):not(.error){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, color-mix(in srgb, var(--m-focus) 45%, transparent)));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", "clicked"] }, { kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
158
|
+
`, 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):not(.error){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, color-mix(in srgb, var(--m-focus) 45%, transparent)));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", "params", "required", "disabled", "color"] }, { kind: "component", type: TextOutputComponent, selector: "m-text-output", inputs: ["config", "align", "variant", "color", "label", "noTranslate", "params"], outputs: ["configChange", "clicked"] }, { kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
158
159
|
}
|
|
159
160
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: OtpInputComponent, decorators: [{
|
|
160
161
|
type: Component,
|
|
@@ -163,6 +164,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
163
164
|
<m-label
|
|
164
165
|
[for]="otp.name"
|
|
165
166
|
[placeholder]="otp.label"
|
|
167
|
+
[params]="otp.params"
|
|
166
168
|
[required]="required()"
|
|
167
169
|
[disabled]="isDisabled()"
|
|
168
170
|
/>
|
|
@@ -196,4 +198,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
196
198
|
}], ctorParameters: () => [], propDecorators: { otpInputs: [{ type: i0.ViewChildren, args: ['otpInput', { isSignal: true }] }] } });
|
|
197
199
|
|
|
198
200
|
export { OtpInputComponent };
|
|
199
|
-
//# sourceMappingURL=magmonium-one-otp-
|
|
201
|
+
//# sourceMappingURL=magmonium-one-otp-BZAX_j5g.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"magmonium-one-otp-BZAX_j5g.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/text/otp.ts"],"sourcesContent":["import {\n afterRenderEffect,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n signal,\n untracked,\n viewChildren,\n} from '@angular/core';\nimport { LabelComponent } from '../label';\nimport { TextOutputComponent } from '../../../text-output';\nimport { BaseTextInputComponent } from './base-text';\nimport { CommonModule } from '@angular/common';\nimport { OtpInput } from '../../model/input';\nimport { IS_DESIGN_MODE } from '../../../../config/tokens';\n\n@Component({\n selector: 'm-otp-input',\n template: `\n @if (otpConfig(); as otp) {\n <m-label\n [for]=\"otp.name\"\n [placeholder]=\"otp.label\"\n [params]=\"otp.params\"\n [required]=\"required()\"\n [disabled]=\"isDisabled()\"\n />\n <div class=\"otp-container\">\n @for (item of otpArray(); track $index) {\n <input\n [id]=\"$index === 0 ? (otp.name ?? '') : ''\"\n #otpInput\n type=\"text\"\n maxlength=\"1\"\n [class.error]=\"showErrors()\"\n [disabled]=\"isDisabled()\"\n [value]=\"otpValues()[$index] || ''\"\n (input)=\"onInput($event, $index)\"\n (keydown)=\"onKeyDown($event, $index)\"\n (paste)=\"onPaste($event)\"\n />\n }\n </div>\n @if (showErrors()) {\n @for (error of errors(); track $index) {\n <m-text-output\n variant=\"footer\"\n color=\"error\"\n [label]=\"error.message\"\n />\n }\n }\n }\n `,\n styleUrl: './otp.sass',\n imports: [LabelComponent, TextOutputComponent, CommonModule],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class OtpInputComponent extends BaseTextInputComponent<OtpInput> {\n otpValues = signal<string[]>([]);\n otpInputs = viewChildren<ElementRef<HTMLInputElement>>('otpInput');\n protected readonly otpConfig = computed(() => this.config() as OtpInput);\n otpArray = computed(() => {\n const length = this.otpConfig()?.length || 6;\n return Array(length).fill(0);\n });\n\n // Inert on the Canvas — other inputs stay idle because they never autofocus;\n // OTP used to steal focus and look live while composing (DesignMode).\n private readonly isDesignMode = !!inject(IS_DESIGN_MODE, { optional: true });\n protected readonly isDisabled = computed(\n () => this.isDesignMode || this.disabled()\n );\n\n // BaseText answers `focused` by focusing its `#inputElement`, and an OTP has\n // none — it has a row of boxes. Without this the caret never lands on an OTP\n // field, so the form that opens on one (login's verification step) reads as\n // dead until the User clicks it.\n private hasAutofocused = false;\n\n constructor() {\n super();\n effect(() => {\n const length = this.otpConfig()?.length || 6;\n this.otpValues.set(Array(length).fill(''));\n });\n\n afterRenderEffect(() => {\n const inputs = this.otpInputs();\n if (!this.focused() || !inputs.length || this.hasAutofocused) return;\n this.hasAutofocused = true;\n untracked(() => this.focusInput(0));\n });\n }\n\n onInput = (event: Event, index: number): void => {\n if (this.isDisabled()) return;\n const input = event.target as HTMLInputElement;\n let value = input.value;\n\n value = value.replace(/[^a-zA-Z0-9]/g, '');\n\n if (value.length > 1) {\n value = value.slice(-1);\n }\n\n input.value = value.toUpperCase();\n\n const newValues = [...this.otpValues()];\n newValues[index] = value.toUpperCase();\n this.otpValues.set(newValues);\n\n const length = this.otpConfig()?.length || 6;\n if (value && index < length - 1) {\n this.focusInput(index + 1);\n }\n this.updateValue();\n };\n\n onKeyDown = (event: KeyboardEvent, index: number): void => {\n if (this.isDisabled()) return;\n const input = event.target as HTMLInputElement;\n const length = this.otpConfig()?.length || 6;\n\n const isAlphaNumeric = /^[a-zA-Z0-9]$/.test(event.key);\n const isControlKey = [\n 'Backspace',\n 'Delete',\n 'ArrowLeft',\n 'ArrowRight',\n 'Tab',\n ].includes(event.key);\n\n if (!isAlphaNumeric && !isControlKey) {\n event.preventDefault();\n return;\n }\n\n if (event.key === 'Backspace') {\n if (!input.value && index > 0) {\n this.focusInput(index - 1);\n }\n }\n if (event.key === 'ArrowLeft' && index > 0) {\n event.preventDefault();\n this.focusInput(index - 1);\n }\n if (event.key === 'ArrowRight' && index < length - 1) {\n event.preventDefault();\n this.focusInput(index + 1);\n }\n };\n\n onPaste = (event: ClipboardEvent): void => {\n if (this.isDisabled()) return;\n event.preventDefault();\n event.stopPropagation();\n\n const length = this.otpConfig()?.length || 6;\n const pastedData = event.clipboardData?.getData('text') || '';\n\n const alphanumeric = pastedData\n .replace(/[^a-zA-Z0-9]/g, '')\n .slice(0, length);\n\n if (alphanumeric.length > 0) {\n const newValues = Array(length).fill('');\n alphanumeric.split('').forEach((char, index) => {\n if (index < length) {\n newValues[index] = char.toUpperCase();\n }\n });\n\n this.otpValues.set(newValues);\n this.updateValue();\n\n const focusIndex = Math.min(alphanumeric.length, length - 1);\n setTimeout(() => this.focusInput(focusIndex), 0);\n }\n };\n\n private focusInput(index: number): void {\n if (this.isDisabled()) return;\n const inputs = this.otpInputs();\n if (inputs[index]) {\n inputs[index].nativeElement.focus();\n }\n }\n\n private updateValue(): void {\n const otpValue = this.otpValues().join('');\n this.setValue(otpValue);\n }\n}\n"],"names":[],"mappings":";;;;;AA6DM,MAAO,iBAAkB,SAAQ,sBAAgC,CAAA;AACrE,IAAA,SAAS,GAAG,MAAM,CAAW,EAAE,gFAAC;AAChC,IAAA,SAAS,GAAG,YAAY,CAA+B,UAAU,gFAAC;IAC/C,SAAS,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,MAAM,EAAc,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,WAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAC;AACxE,IAAA,QAAQ,GAAG,QAAQ,CAAC,MAAK;QACvB,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,EAAE,MAAM,IAAI,CAAC;QAC5C,OAAO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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-CD8ioDZO.mjs';
|
|
4
4
|
|
|
5
5
|
class PasswordInputComponent extends BaseTextInputComponent {
|
|
6
6
|
isPassword = signal(true, ...(ngDevMode ? [{ debugName: "isPassword" }] : /* istanbul ignore next */ []));
|
|
@@ -19,6 +19,7 @@ class PasswordInputComponent extends BaseTextInputComponent {
|
|
|
19
19
|
<m-label
|
|
20
20
|
[for]="text.name"
|
|
21
21
|
[placeholder]="text.label"
|
|
22
|
+
[params]="text.params"
|
|
22
23
|
[required]="required()"
|
|
23
24
|
[disabled]="disabled()"
|
|
24
25
|
/>
|
|
@@ -29,7 +30,7 @@ class PasswordInputComponent extends BaseTextInputComponent {
|
|
|
29
30
|
#inputElement
|
|
30
31
|
[class.error]="showErrors()"
|
|
31
32
|
[disabled]="disabled()"
|
|
32
|
-
[placeholder]="(text.placeholder ?? '') | translate"
|
|
33
|
+
[placeholder]="(text.placeholder ?? '') | translate: text.params"
|
|
33
34
|
(input)="onInput($event)"
|
|
34
35
|
(focus)="isFocused.set(true)"
|
|
35
36
|
(blur)="isFocused.set(false); touched.set(true)"
|
|
@@ -53,7 +54,7 @@ class PasswordInputComponent extends BaseTextInputComponent {
|
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
|
-
`, 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: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, color-mix(in srgb, var(--m-focus) 45%, transparent));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:not(:has(.error)){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", "clicked"] }, { 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", "isSubmit", "tabindex"], outputs: ["configChange", "clicked"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
57
|
+
`, 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: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, color-mix(in srgb, var(--m-focus) 45%, transparent));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:not(:has(.error)){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", "params", "required", "disabled", "color"] }, { kind: "component", type: TextOutputComponent, selector: "m-text-output", inputs: ["config", "align", "variant", "color", "label", "noTranslate", "params"], outputs: ["configChange", "clicked"] }, { 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", "params", "noNative", "icon", "isRightIcon", "iconOnly", "stacked", "imgSrc", "nonClickable", "inverted", "isSubmit", "tabindex"], outputs: ["configChange", "clicked"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
57
58
|
}
|
|
58
59
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: PasswordInputComponent, decorators: [{
|
|
59
60
|
type: Component,
|
|
@@ -62,6 +63,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
62
63
|
<m-label
|
|
63
64
|
[for]="text.name"
|
|
64
65
|
[placeholder]="text.label"
|
|
66
|
+
[params]="text.params"
|
|
65
67
|
[required]="required()"
|
|
66
68
|
[disabled]="disabled()"
|
|
67
69
|
/>
|
|
@@ -72,7 +74,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
72
74
|
#inputElement
|
|
73
75
|
[class.error]="showErrors()"
|
|
74
76
|
[disabled]="disabled()"
|
|
75
|
-
[placeholder]="(text.placeholder ?? '') | translate"
|
|
77
|
+
[placeholder]="(text.placeholder ?? '') | translate: text.params"
|
|
76
78
|
(input)="onInput($event)"
|
|
77
79
|
(focus)="isFocused.set(true)"
|
|
78
80
|
(blur)="isFocused.set(false); touched.set(true)"
|
|
@@ -100,4 +102,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
100
102
|
}] });
|
|
101
103
|
|
|
102
104
|
export { PasswordInputComponent };
|
|
103
|
-
//# sourceMappingURL=magmonium-one-password-
|
|
105
|
+
//# sourceMappingURL=magmonium-one-password-CvTU1Qx-.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"magmonium-one-password-CvTU1Qx-.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/text/password.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n signal,\n} from '@angular/core';\nimport { LabelComponent } from '../label';\nimport { TextOutputComponent } from '../../../text-output';\nimport { BaseTextInputComponent } from './base-text';\nimport { ButtonComponent } from '../../../button/ui/button';\nimport { TranslatePipe } from '../../../../pipe';\n\n@Component({\n selector: 'm-password-input',\n template: `\n @if (config(); as text) {\n <m-label\n [for]=\"text.name\"\n [placeholder]=\"text.label\"\n [params]=\"text.params\"\n [required]=\"required()\"\n [disabled]=\"disabled()\"\n />\n <div class=\"input-wrapper\">\n <input\n [id]=\"text.name ?? ''\"\n [value]=\"value()\"\n #inputElement\n [class.error]=\"showErrors()\"\n [disabled]=\"disabled()\"\n [placeholder]=\"(text.placeholder ?? '') | translate: text.params\"\n (input)=\"onInput($event)\"\n (focus)=\"isFocused.set(true)\"\n (blur)=\"isFocused.set(false); touched.set(true)\"\n [type]=\"type()\"\n />\n <m-one-button\n type=\"button\"\n [disabled]=\"disabled()\"\n [name]=\"button()\"\n [color]=\"iconColor()\"\n (clicked)=\"toggleType()\"\n />\n </div>\n @if (showErrors()) {\n @for (error of errors(); track $index) {\n <m-text-output\n variant=\"footer\"\n color=\"error\"\n [label]=\"error.message\"\n />\n }\n }\n }\n `,\n imports: [LabelComponent, TextOutputComponent, ButtonComponent, TranslatePipe],\n styleUrl: './password.sass',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class PasswordInputComponent extends BaseTextInputComponent {\n isPassword = signal<boolean>(true);\n type = computed(() => (this.isPassword() ? 'password' : 'text'));\n button = computed(() => (!this.isPassword() ? 'eye' : 'eye_close'));\n\n protected toggleType() {\n this.isPassword.update((now) => !now);\n }\n\n protected onInput(event: Event): void {\n const target = event.target as HTMLInputElement;\n this.setValue(target?.value ?? '');\n }\n}\n"],"names":[],"mappings":";;;;AA2DM,MAAO,sBAAuB,SAAQ,sBAAsB,CAAA;AAChE,IAAA,UAAU,GAAG,MAAM,CAAU,IAAI,iFAAC;IAClC,IAAI,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,UAAU,EAAE,GAAG,UAAU,GAAG,MAAM,CAAC,EAAA,IAAA,SA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AA,WAAA,EAAA,IAAA,EAAE,mBAAmB,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,OAAA,EAAA,OAAA,EAAA,aAAA,EAAA,QAAA,CAAA,EAAA,OAAA,EAAA,CAAA,cAAA,EAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,eAAe,4YAAE,aAAa,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;2FAIlE,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBA/ClC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EAAA,QAAA,EAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCT,EAAA,CAAA,EAAA,OAAA,EACQ,CAAC,cAAc,EAAE,mBAAmB,EAAE,eAAe,EAAE,aAAa,CAAC,EAAA,eAAA,EAE7D,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,qqFAAA,CAAA,EAAA;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { model, input, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { B as BaseInputComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-
|
|
3
|
+
import { B as BaseInputComponent, T as TranslatePipe } from './magmonium-one-magmonium-one-CD8ioDZO.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-C-FB-Gcs.mjs.map
|
package/fesm2022/{magmonium-one-toggle-eVOf7Ji_.mjs.map → magmonium-one-toggle-C-FB-Gcs.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magmonium-one-toggle-
|
|
1
|
+
{"version":3,"file":"magmonium-one-toggle-C-FB-Gcs.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/toggle/toggle.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n model,\n ModelSignal,\n} from '@angular/core';\nimport { ToggleInput } from '../../model/input';\nimport { TranslatePipe } from '../../../../pipe/translate';\nimport {\n FormCheckboxControl,\n ValidationError,\n WithOptionalField,\n} from '@angular/forms/signals';\nimport { BaseInputComponent } from '../../lib/base-input';\n\n@Component({\n selector: 'm-toggle-input',\n template: `\n @if (config(); as toggle) {\n <div class=\"toggle\">\n <input\n [id]=\"toggle.name ?? ''\"\n [checked]=\"checked()\"\n (change)=\"onChange($event)\"\n type=\"checkbox\"\n />\n <label [attr.for]=\"toggle.name || null\">{{\n toggle.label | translate\n }}</label>\n </div>\n }\n `,\n imports: [TranslatePipe],\n styleUrl: './toggle.sass',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ToggleInputComponent\n extends BaseInputComponent<ToggleInput>\n implements FormCheckboxControl\n{\n public value = undefined;\n public checked = model<boolean>(false) as ModelSignal<boolean>;\n public override config = input<Partial<ToggleInput> | undefined>();\n public override required = input<boolean>(false);\n public override disabled = input<boolean>(false);\n public override invalid = input<boolean>(false);\n public override touched = model<boolean>(false);\n public override focused = input<boolean>(false);\n public override errors = input<readonly WithOptionalField<ValidationError>[]>(\n []\n );\n public override showErrors = computed(() => this.touched() && this.invalid());\n\n /** Required by FormCheckboxControl interface */\n // public readonly checked: ModelSignal<boolean> = this.value; // Already defined above\n\n constructor() {\n super();\n }\n\n protected onChange(event: Event): void {\n const target = event.target as HTMLInputElement;\n this.checked.set(target?.checked ?? false);\n }\n}\n"],"names":[],"mappings":";;;;AAsCM,MAAO,oBACX,SAAQ,kBAA+B,CAAA;IAGhC,KAAK,GAAG,SAAS;AACjB,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,CAAyB;IAC9C,MAAM,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,QAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAoC;AAClD,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,+EAAC;AAChC,IAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,+EAAC;AAChC,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,8EAAC;AAC/B,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,8EAAC;AAC/B,IAAA,OAAO,GAAG,KAAK,CAAU,KAAK,8EAAC;AAC/B,IAAA,MAAM,GAAG,KAAK,CAC5B,EAAE,6EACH;AACe,IAAA,UAAU,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE,IAAI,IAAI,CAAC,OAAO,EAAE,iFAAC;;;AAK7E,IAAA,WAAA,GAAA;AACE,QAAA,K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BodyDirective, 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 AuthActivityPageComponent, r as AuthApiService, s as AuthStore, t as AutosizeDirective, u as BadgeComponent, v as BandingComponent, w as BaseArrayInputComponent, x as BaseRootWebComponent, y as BaseWebComponent, c as ButtonComponent, z as ButtonGroupComponent, C as COMPONENT_INPUT_REGISTRY, D as CardComponent, E as CardWrapperComponent, F as CarouselComponent, G as ChartComponent, H as CheckboxInputComponent, J as ClearableInputComponent, K as ColComponent, M as ColorPickerInputComponent, N as CommentItemComponent, O as CommentsApiService, P as CommentsComponent, Q as CommentsStore, R as ComponentInputComponent, S as ComponentStepperComponent, U as ConfigComponent, V as ConfirmComponent, W as ContextMenuComponent, X as CustomIconClass, Y as CustomIconEditComponent, Z as DEFAULT_SIZE, _ as DashboardCardComponent, $ as DateInputComponent, a0 as DatePickerComponent, a1 as DeviceService, a2 as DomService, a3 as Domain, a4 as DotGridComponent, a5 as DragListDirective, a6 as DragListItemDirective, a7 as DraggableDirective, a8 as DropdownInputComponent, a9 as FLEX_VARIANTS, aa as FOLDER_PICK_LISTENER, ab as FORM_ASSET_FOLDER, ac as FileService, ad as FileUploadDirective, ae as FileUploadInputComponent, af as FlexComponent, ag as FlexItemComponent, ah as FormGroupComponent, ai as FrameComponent, aj as FreezeService, ak as GRID_BREAKPOINTS, al as GetNavService, am as HeaderComponent, an as HighlightDirective, ao as HttpService, ap as ICON_SOURCE, I as IS_DESIGN_MODE, aq as IS_SIDE_PANEL, ar as IconComponent, as as ImgComponent, at as InputType, au as InstrumentScoreComponent, av as InterceptorObservables, aw as JumbotronComponent, ax as KeyValueComponent, ay as LAYOUT_ASSET_FOLDER, az as LOGIN_COMPONENT, aA as LOGIN_STORE, aB as LanguageComponent, aC as LogoComponent, aD as MAG_SOCKET_EVENT, aE as MHeroColorDirective, aF as MHeroComponent, aG as MODAL_REF, aH as MODAL_STORE_REF, aI as MRefDirective, aJ as MStepComponent, aK as MURL_PARAM, aL as MURL_SEP, aM as ManifestEnrichmentService, aN as MenuComponent, aO as ModalDirective, aP as ModalRef, aQ as ModalStore, aR as MoneyPipe, aS as MultiRangeInputComponent, aT as MurlUrlSerializer, aU as NAV_DEFAULT_MURL, aV as NAV_ID_SEP, aW as NAV_MAIN_BUTTONS, aX as NAV_SEGMENT_RE, aY as NAV_STORE_REF, aZ as NAV_WC_COMPONENTS, a_ as NAV_WIDGET_MAP, a$ as NavComponent, b0 as NavDetailsComponent, b1 as NavHeaderComponent, b2 as NavMenuComponent, b3 as NavStore, b4 as NavTrailComponent, b5 as NothingComponent, b6 as NotificationElementComponent, b7 as NotificationGroupComponent, b8 as NotificationPopupComponent, b9 as NotificationService, ba as NotificationStore, bb as NotificationType, bc as NotificationWidgetComponent, bd as ONE_ASSET_BASE_URL, be as OPTIONS_SOURCE, bf as OVERLAY_WIDGETS, bg as OneApp, bh as OptionsSourceDirective, bi as OverlayBodyComponent, bj as OverlayRef, bk as OverlayService, bl as PLATFORM_BUTTON_NAV_IDS, bm as PLATFORM_EXTENSIBLE_NAV_IDS, bn as PLATFORM_NAV_MAP, bo as PLATFORM_ROOT_CHILDREN, bp as PaginationComponent, bq as PanelComponent, br as PercentagePipe, bs as PlaygroundComponent, bt as PositionDirective, bu as PwaInstallComponent, bv as ROOT_NAV, bw as RadioGroupComponent, bx as RadioInputComponent, by as RangeInputComponent, bz as RatingInputComponent, bA as ReactiveElementComponent, bB as RemoteComponent, bC as RemoteLoaderService, bD as ResizeElementComponent, bE as RouteContainer, bF as RowComponent, bG as SEARCH_QUERY, bH as SEARCH_RESULTS_EVENT, bI as SECTION_ACCORDION_GROUP, bJ as SECTION_FORM_CONTEXT, bK as SHARED_ICONS, bL as SIZE_CONTEXT, bM as ScoreComponent, bN as ScrollComponent, bO as ScrollService, bP as SearchPanelComponent, bQ as SearchStore, bR as SearchUserPanelComponent, bS as SectionAccordionDirective, bT as SectionAccordionGroupDirective, bU as SectionBackComponent, bV as SectionBadgesComponent, bW as SectionButtonGroupComponent, bX as SectionCardComponent, bY as SectionCarouselComponent, bZ as SectionComponent, b_ as SectionFilterComponent, b$ as SectionFooterComponent, c0 as SectionFormComponent, c1 as SectionFormItemComponent, c2 as SectionHeaderComponent, c3 as SectionHeroComponent, 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 ShapeComponent, ce as SharedStoreRegistry, cf as SidePanelDirective, cg as Size, ch as SocketStore, ci as SortComponent, cj as StatComponent, 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 ThemeDataService, cC as ThemeService, cD as ThemeStore, cE as TimeAgoPipe, cF as TimelineComponent, cG as ToggleButtonComponent, cH as ToggleInputComponent, cI as ToggleRadioInputComponent, cJ as ToolTipDirective, cK as TooltipComponent, T as TranslatePipe, cL as TranslateService, cM as TreeGridComponent, cN as URL_SEP, cO as USER_STORE_REF, cP as USER_TAB_MAP, cQ as UlComponent, cR as UniverseComponent, cS as UserApiService, cT as UserAvatarComponent, cU as UserComponent, cV as UserNavComponent, cW as UserSettingsComponent, cX as UserStore, cY as WC_ROUTE_CHANGED_EVENT, cZ as WC_SEARCH_GROUPS, c_ as WIN_USER_TAB_HOOK, c$ as WIN_USER_TAB_KEY, d0 as WatermarkComponent, d1 as WcRouterStore, d2 as WrapperInputComponent, d3 as anchorNavId, d4 as applyColorsToElement, 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 cornerEdge, dg as cornerSide, dh as createMap, di as createPlatformNavMap, dj as deriveAvatarGradient, dk as deriveContrastColor, dl as deriveOppositeColor, dm as derivePropertyName, dn as emailValidation, dp as evaluate, dq as evaluateBool, dr as flattenTreeGridRows, ds as formatBadgeCount, dt as fullName, du as generateClipPath, dv as generateTransform, dw as getClassList, dx as getProperty, dy as getScrollParent, dz as getTierFromPreviewPath, dA as getTreeGridRow, dB as getUniqueId, dC as getValue, dD as hasErrorComputed, dE as hexToRgb, dF as hslToRgb, dG as initMagmoniumApp, dH as initialNotificationState, dI as initialState, dJ as initials, dK as injectAuthenticate, dL as injectInstallApp, dM as injectParentSize, dN as injectScrollSticky, dO as isButtonName, dP as isCancelledComputed, dQ as isExtensiblePlatformNavId, dR as isJson, dS as isLoadingComputed, dT as isLocalhost, dU as isPlatformNavId, dV as isSize, dW as isTierPreview, dX as isUrlLocalhost, dY as isValidNavId, dZ as isValidNavSegment, d_ as isWebComponent, d$ as linkToId, e0 as linkToNav, e1 as loadingActions, e2 as mInterceptor, e3 as manualValidation, e4 as matchFieldValidation, e5 as maxLengthValidation, e6 as maxValidation, e7 as mergePlatformNav, e8 as mergeUnique, e9 as mergeUniqueBy, ea as mergeUniqueWith, eb as minAgeValidation, ec as minLengthValidation, ed as minValidation, ee as miniMarkToHtml, ef as navIdChain, eg as navIdFor, eh as navIdSegment, ei as navIdToRoutePath, ej as navIdToSegments, ek as navToId, el as parentNavId, em as parseAddress, en as parseColor, eo as parsePatternNames, ep as patternValidation, eq as patternsValidation, er as platformNavWidgets, es as privateGuard, et as processImageToSvg, eu as provideAppContext, ev as provideMagAppConfig, ew as provideMagWcConfig, ex as provideMagWcRoutes, ey as provideModalComponents, ez as provideMurlUrlSerializer, eA as provideNavWidgets, eB as provideOverlayWidgets, eC as providePlatformNavWidgets, eD as provideSearch, eE as provideSizeContext, eF as provideUserTabs, eG as publicGuard, eH as readFieldPatterns, eI as renderAddress, eJ as requiredValidation, eK as resolveConfigAsset, eL as resolveIconSize, eM as resolvePallet, eN as resolvePatternRules, eO as resolveSize, eP as rgbToHex, eQ as rgbToHsl, eR as rowHasChildren, eS as samePatterns, eT as segmentsToNavId, eU as setProperty, eV as setTreeGridChildren, eW as settingsWidgets, eX as shouldShowBadge, eY as splitNavId, eZ as stringToColor, e_ as toAttrBool, e$ as toAttrNumber, f0 as toCssLength, f1 as toHostNavId, f2 as toLength, f3 as toLocalNavId, f4 as toggleTreeGridRow, f5 as unfetchedPlatformNav, f6 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 AuthActivityPageComponent, r as AuthApiService, s as AuthStore, t as AutosizeDirective, u as BadgeComponent, v as BandingComponent, w as BaseArrayInputComponent, x as BaseRootWebComponent, y as BaseWebComponent, c as ButtonComponent, z as ButtonGroupComponent, C as COMPONENT_INPUT_REGISTRY, D as CardComponent, E as CardWrapperComponent, F as CarouselComponent, G as ChartComponent, H as CheckboxInputComponent, J as ClearableInputComponent, K as ColComponent, M as ColorPickerInputComponent, N as CommentItemComponent, O as CommentsApiService, P as CommentsComponent, Q as CommentsStore, R as ComponentInputComponent, S as ComponentStepperComponent, U as ConfigComponent, V as ConfirmComponent, W as ContextMenuComponent, X as CustomIconClass, Y as CustomIconEditComponent, Z as DEFAULT_SIZE, _ as DashboardCardComponent, $ as DateInputComponent, a0 as DatePickerComponent, a1 as DeviceService, a2 as DomService, a3 as Domain, a4 as DotGridComponent, a5 as DragListDirective, a6 as DragListItemDirective, a7 as DraggableDirective, a8 as DropdownInputComponent, a9 as FLEX_VARIANTS, aa as FOLDER_PICK_LISTENER, ab as FORM_ASSET_FOLDER, ac as FileService, ad as FileUploadDirective, ae as FileUploadInputComponent, af as FlexComponent, ag as FlexItemComponent, ah as FormGroupComponent, ai as FrameComponent, aj as FreezeService, ak as GRID_BREAKPOINTS, al as GetNavService, am as HeaderComponent, an as HighlightDirective, ao as HttpService, ap as ICON_SOURCE, I as IS_DESIGN_MODE, aq as IS_SIDE_PANEL, ar as IconComponent, as as ImgComponent, at as InputType, au as InstrumentScoreComponent, av as InterceptorObservables, aw as JumbotronComponent, ax as KeyValueComponent, ay as LAYOUT_ASSET_FOLDER, az as LOGIN_COMPONENT, aA as LOGIN_STORE, aB as LanguageComponent, aC as LogoComponent, aD as MAG_SOCKET_EVENT, aE as MHeroColorDirective, aF as MHeroComponent, aG as MODAL_REF, aH as MODAL_STORE_REF, aI as MRefDirective, aJ as MStepComponent, aK as MURL_PARAM, aL as MURL_SEP, aM as ManifestEnrichmentService, aN as MenuComponent, aO as ModalDirective, aP as ModalRef, aQ as ModalStore, aR as MoneyPipe, aS as MultiRangeInputComponent, aT as MurlUrlSerializer, aU as NAV_DEFAULT_MURL, aV as NAV_ID_SEP, aW as NAV_MAIN_BUTTONS, aX as NAV_SEGMENT_RE, aY as NAV_STORE_REF, aZ as NAV_WC_COMPONENTS, a_ as NAV_WIDGET_MAP, a$ as NavComponent, b0 as NavDetailsComponent, b1 as NavHeaderComponent, b2 as NavMenuComponent, b3 as NavStore, b4 as NavTrailComponent, b5 as NothingComponent, b6 as NotificationElementComponent, b7 as NotificationGroupComponent, b8 as NotificationPopupComponent, b9 as NotificationService, ba as NotificationStore, bb as NotificationType, bc as NotificationWidgetComponent, bd as ONE_ASSET_BASE_URL, be as OPTIONS_SOURCE, bf as OVERLAY_WIDGETS, bg as OneApp, bh as OptionsSourceDirective, bi as OverlayBodyComponent, bj as OverlayRef, bk as OverlayService, bl as PLATFORM_BUTTON_NAV_IDS, bm as PLATFORM_EXTENSIBLE_NAV_IDS, bn as PLATFORM_NAV_MAP, bo as PLATFORM_ROOT_CHILDREN, bp as PaginationComponent, bq as PanelComponent, br as PercentagePipe, bs as PlaygroundComponent, bt as PositionDirective, bu as PwaInstallComponent, bv as ROOT_NAV, bw as RadioGroupComponent, bx as RadioInputComponent, by as RangeInputComponent, bz as RatingInputComponent, bA as ReactiveElementComponent, bB as RemoteComponent, bC as RemoteLoaderService, bD as ResizeElementComponent, bE as RouteContainer, bF as RowComponent, bG as SEARCH_QUERY, bH as SEARCH_RESULTS_EVENT, bI as SECTION_ACCORDION_GROUP, bJ as SECTION_FORM_CONTEXT, bK as SHARED_ICONS, bL as SIZE_CONTEXT, bM as ScoreComponent, bN as ScrollComponent, bO as ScrollService, bP as SearchPanelComponent, bQ as SearchStore, bR as SearchUserPanelComponent, bS as SectionAccordionDirective, bT as SectionAccordionGroupDirective, bU as SectionBackComponent, bV as SectionBadgesComponent, bW as SectionButtonGroupComponent, bX as SectionCardComponent, bY as SectionCarouselComponent, bZ as SectionComponent, b_ as SectionFilterComponent, b$ as SectionFooterComponent, c0 as SectionFormComponent, c1 as SectionFormItemComponent, c2 as SectionHeaderComponent, c3 as SectionHeroComponent, 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 ShapeComponent, ce as SharedStoreRegistry, cf as SidePanelDirective, cg as Size, ch as SocketStore, ci as SortComponent, cj as StatComponent, 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 ThemeDataService, cC as ThemeService, cD as ThemeStore, cE as TimeAgoPipe, cF as TimelineComponent, cG as ToggleButtonComponent, cH as ToggleInputComponent, cI as ToggleRadioInputComponent, cJ as ToolTipDirective, cK as TooltipComponent, T as TranslatePipe, cL as TranslateService, cM as TreeGridComponent, cN as URL_SEP, cO as USER_STORE_REF, cP as USER_TAB_MAP, cQ as UlComponent, cR as UniverseComponent, cS as UserApiService, cT as UserAvatarComponent, cU as UserComponent, cV as UserNavComponent, cW as UserSettingsComponent, cX as UserStore, cY as WC_ROUTE_CHANGED_EVENT, cZ as WC_SEARCH_GROUPS, c_ as WIN_USER_TAB_HOOK, c$ as WIN_USER_TAB_KEY, d0 as WatermarkComponent, d1 as WcRouterStore, d2 as WrapperInputComponent, d3 as anchorNavId, d4 as applyColorsToElement, 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 cornerEdge, dg as cornerSide, dh as createMap, di as createPlatformNavMap, dj as deriveAvatarGradient, dk as deriveContrastColor, dl as deriveOppositeColor, dm as derivePropertyName, dn as emailValidation, dp as evaluate, dq as evaluateBool, dr as flattenTreeGridRows, ds as formatBadgeCount, dt as fullName, du as generateClipPath, dv as generateTransform, dw as getClassList, dx as getProperty, dy as getScrollParent, dz as getTierFromPreviewPath, dA as getTreeGridRow, dB as getUniqueId, dC as getValue, dD as hasErrorComputed, dE as hexToRgb, dF as hslToRgb, dG as initMagmoniumApp, dH as initialNotificationState, dI as initialState, dJ as initials, dK as injectAuthenticate, dL as injectInstallApp, dM as injectParentSize, dN as injectScrollSticky, dO as isButtonName, dP as isCancelledComputed, dQ as isExtensiblePlatformNavId, dR as isJson, dS as isLoadingComputed, dT as isLocalhost, dU as isPlatformNavId, dV as isSize, dW as isTierPreview, dX as isUrlLocalhost, dY as isValidNavId, dZ as isValidNavSegment, d_ as isWebComponent, d$ as linkToId, e0 as linkToNav, e1 as loadingActions, e2 as mInterceptor, e3 as manualValidation, e4 as matchFieldValidation, e5 as maxLengthValidation, e6 as maxValidation, e7 as mergePlatformNav, e8 as mergeUnique, e9 as mergeUniqueBy, ea as mergeUniqueWith, eb as minAgeValidation, ec as minLengthValidation, ed as minValidation, ee as miniMarkToHtml, ef as navIdChain, eg as navIdFor, eh as navIdSegment, ei as navIdToRoutePath, ej as navIdToSegments, ek as navToId, el as parentNavId, em as parseAddress, en as parseColor, eo as parsePatternNames, ep as patternValidation, eq as patternsValidation, er as platformNavWidgets, es as privateGuard, et as processImageToSvg, eu as provideAppContext, ev as provideMagAppConfig, ew as provideMagWcConfig, ex as provideMagWcRoutes, ey as provideModalComponents, ez as provideMurlUrlSerializer, eA as provideNavWidgets, eB as provideOverlayWidgets, eC as providePlatformNavWidgets, eD as provideSearch, eE as provideSizeContext, eF as provideUserTabs, eG as publicGuard, eH as readFieldPatterns, eI as renderAddress, eJ as requiredValidation, eK as resolveConfigAsset, eL as resolveIconSize, eM as resolvePallet, eN as resolvePatternRules, eO as resolveSize, eP as rgbToHex, eQ as rgbToHsl, eR as rowHasChildren, eS as samePatterns, eT as segmentsToNavId, eU as setProperty, eV as setTreeGridChildren, eW as settingsWidgets, eX as shouldShowBadge, eY as splitNavId, eZ as stringToColor, e_ as toAttrBool, e$ as toAttrNumber, f0 as toCssLength, f1 as toHostNavId, f2 as toLength, f3 as toLocalNavId, f4 as toggleTreeGridRow, f5 as unfetchedPlatformNav, f6 as urlValidation } from './magmonium-one-magmonium-one-CD8ioDZO.mjs';
|
|
2
2
|
//# sourceMappingURL=magmonium-one.mjs.map
|
package/package.json
CHANGED
package/types/magmonium-one.d.ts
CHANGED
|
@@ -1723,6 +1723,7 @@ type ButtonBadge = {
|
|
|
1723
1723
|
type Button = Config & {
|
|
1724
1724
|
label?: string;
|
|
1725
1725
|
noTranslate?: boolean;
|
|
1726
|
+
params?: Record<string, string>;
|
|
1726
1727
|
labelClass?: string;
|
|
1727
1728
|
variant?: 'primary' | 'ghost' | 'secondary' | 'tab';
|
|
1728
1729
|
disabled?: boolean;
|
|
@@ -1774,6 +1775,7 @@ declare class ButtonComponent extends ReactiveElementComponent<Button> {
|
|
|
1774
1775
|
subFolder: string;
|
|
1775
1776
|
label: _angular_core.InputSignal<string | undefined>;
|
|
1776
1777
|
noTranslate: _angular_core.InputSignal<string | boolean | undefined>;
|
|
1778
|
+
params: _angular_core.InputSignal<Record<string, string> | undefined>;
|
|
1777
1779
|
noNative: _angular_core.InputSignal<string | boolean | undefined>;
|
|
1778
1780
|
icon: _angular_core.InputSignal<string | undefined>;
|
|
1779
1781
|
isRightIcon: _angular_core.InputSignal<string | boolean | undefined>;
|
|
@@ -1808,7 +1810,7 @@ declare class ButtonComponent extends ReactiveElementComponent<Button> {
|
|
|
1808
1810
|
onClick(): void;
|
|
1809
1811
|
protected readonly formatBadgeCount: (count: number, max?: number) => string;
|
|
1810
1812
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
1811
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonComponent, "m-button,m-one-button", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "labelClass": { "alias": "labelClass"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "nav": { "alias": "nav"; "required": false; "isSignal": true; }; "navParams": { "alias": "navParams"; "required": false; "isSignal": true; }; "href": { "alias": "href"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "baseUrl": { "alias": "baseUrl"; "required": false; "isSignal": true; }; "one": { "alias": "one"; "required": false; "isSignal": true; }; "remote": { "alias": "remote"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "noTranslate": { "alias": "noTranslate"; "required": false; "isSignal": true; }; "noNative": { "alias": "noNative"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "isRightIcon": { "alias": "isRightIcon"; "required": false; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; "stacked": { "alias": "stacked"; "required": false; "isSignal": true; }; "imgSrc": { "alias": "imgSrc"; "required": false; "isSignal": true; }; "nonClickable": { "alias": "nonClickable"; "required": false; "isSignal": true; }; "inverted": { "alias": "inverted"; "required": false; "isSignal": true; }; "isSubmit": { "alias": "isSubmit"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, { "config": "configChange"; "clicked": "clicked"; }, never, never, true, never>;
|
|
1813
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonComponent, "m-button,m-one-button", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "labelClass": { "alias": "labelClass"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "nav": { "alias": "nav"; "required": false; "isSignal": true; }; "navParams": { "alias": "navParams"; "required": false; "isSignal": true; }; "href": { "alias": "href"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "baseUrl": { "alias": "baseUrl"; "required": false; "isSignal": true; }; "one": { "alias": "one"; "required": false; "isSignal": true; }; "remote": { "alias": "remote"; "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; }; "noNative": { "alias": "noNative"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "isRightIcon": { "alias": "isRightIcon"; "required": false; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; "stacked": { "alias": "stacked"; "required": false; "isSignal": true; }; "imgSrc": { "alias": "imgSrc"; "required": false; "isSignal": true; }; "nonClickable": { "alias": "nonClickable"; "required": false; "isSignal": true; }; "inverted": { "alias": "inverted"; "required": false; "isSignal": true; }; "isSubmit": { "alias": "isSubmit"; "required": false; "isSignal": true; }; "tabindex": { "alias": "tabindex"; "required": false; "isSignal": true; }; }, { "config": "configChange"; "clicked": "clicked"; }, never, never, true, never>;
|
|
1812
1814
|
}
|
|
1813
1815
|
|
|
1814
1816
|
type CustomIcon = {
|
|
@@ -2010,6 +2012,7 @@ declare class ButtonGroupComponent extends ConfigComponent<ButtonGroup> {
|
|
|
2010
2012
|
variant?: "primary" | "ghost" | "secondary" | "tab" | undefined;
|
|
2011
2013
|
label?: string;
|
|
2012
2014
|
noTranslate?: boolean;
|
|
2015
|
+
params?: Record<string, string>;
|
|
2013
2016
|
labelClass?: string;
|
|
2014
2017
|
disabled?: boolean;
|
|
2015
2018
|
icon?: string;
|
|
@@ -2161,6 +2164,7 @@ declare class SectionHeaderComponent {
|
|
|
2161
2164
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
2162
2165
|
readonly subLabel: _angular_core.InputSignal<string | undefined>;
|
|
2163
2166
|
readonly noTranslate: _angular_core.InputSignal<boolean>;
|
|
2167
|
+
readonly params: _angular_core.InputSignal<Record<string, string> | undefined>;
|
|
2164
2168
|
readonly reverse: _angular_core.InputSignal<boolean>;
|
|
2165
2169
|
readonly icon: _angular_core.InputSignal<string | undefined>;
|
|
2166
2170
|
readonly menu: _angular_core.InputSignal<ContextMenu | undefined>;
|
|
@@ -2192,7 +2196,7 @@ declare class SectionHeaderComponent {
|
|
|
2192
2196
|
protected readonly toggleRotates: _angular_core.Signal<boolean>;
|
|
2193
2197
|
protected onToggleClick(): void;
|
|
2194
2198
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SectionHeaderComponent, never>;
|
|
2195
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SectionHeaderComponent, "m-section-header", never, { "sticky": { "alias": "sticky"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "subLabel": { "alias": "subLabel"; "required": false; "isSignal": true; }; "noTranslate": { "alias": "noTranslate"; "required": false; "isSignal": true; }; "reverse": { "alias": "reverse"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "menu": { "alias": "menu"; "required": false; "isSignal": true; }; "menuName": { "alias": "menuName"; "required": false; "isSignal": true; }; "visibilityRule": { "alias": "visibilityRule"; "required": false; "isSignal": true; }; "disableRule": { "alias": "disableRule"; "required": false; "isSignal": true; }; "extraData": { "alias": "extraData"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "showBack": { "alias": "showBack"; "required": false; "isSignal": true; }; "actionButton": { "alias": "actionButton"; "required": false; "isSignal": true; }; "actionLabel": { "alias": "actionLabel"; "required": false; "isSignal": true; }; "spacing": { "alias": "spacing"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; }, { "actionClick": "actionClick"; "action": "action"; "back": "back"; }, never, ["*", "[sub]"], true, never>;
|
|
2199
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SectionHeaderComponent, "m-section-header", never, { "sticky": { "alias": "sticky"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "subLabel": { "alias": "subLabel"; "required": false; "isSignal": true; }; "noTranslate": { "alias": "noTranslate"; "required": false; "isSignal": true; }; "params": { "alias": "params"; "required": false; "isSignal": true; }; "reverse": { "alias": "reverse"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "menu": { "alias": "menu"; "required": false; "isSignal": true; }; "menuName": { "alias": "menuName"; "required": false; "isSignal": true; }; "visibilityRule": { "alias": "visibilityRule"; "required": false; "isSignal": true; }; "disableRule": { "alias": "disableRule"; "required": false; "isSignal": true; }; "extraData": { "alias": "extraData"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "showBack": { "alias": "showBack"; "required": false; "isSignal": true; }; "actionButton": { "alias": "actionButton"; "required": false; "isSignal": true; }; "actionLabel": { "alias": "actionLabel"; "required": false; "isSignal": true; }; "spacing": { "alias": "spacing"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; }, { "actionClick": "actionClick"; "action": "action"; "back": "back"; }, never, ["*", "[sub]"], true, never>;
|
|
2196
2200
|
}
|
|
2197
2201
|
|
|
2198
2202
|
declare class SectionBackComponent {
|
|
@@ -2294,6 +2298,16 @@ type Input = Config & {
|
|
|
2294
2298
|
patternMessage?: string;
|
|
2295
2299
|
icon?: string;
|
|
2296
2300
|
one?: boolean;
|
|
2301
|
+
/**
|
|
2302
|
+
* The [MessageVariable] values this Field's `label`, `placeholder` and
|
|
2303
|
+
* validation messages are resolved with. One record for the Field rather
|
|
2304
|
+
* than one per text: they are the same sentence's slots, and a page holds
|
|
2305
|
+
* one record for every dynamic value it draws (m-one-ui ADR 0066).
|
|
2306
|
+
*
|
|
2307
|
+
* A Record, so it never rides as a literal attribute (ADR 0010) — a Field
|
|
2308
|
+
* with dynamic slots takes it bound, off the page member holding them.
|
|
2309
|
+
*/
|
|
2310
|
+
params?: Record<string, string>;
|
|
2297
2311
|
placeholder?: string;
|
|
2298
2312
|
button?: string;
|
|
2299
2313
|
buttonAction?: string;
|
|
@@ -3972,6 +3986,7 @@ declare class SectionFormItemComponent extends ConfigComponent<Input> implements
|
|
|
3972
3986
|
readonly type: _angular_core.InputSignal<string | undefined>;
|
|
3973
3987
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
3974
3988
|
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
3989
|
+
readonly params: _angular_core.InputSignal<Record<string, string> | undefined>;
|
|
3975
3990
|
readonly required: _angular_core.InputSignal<string | boolean | undefined>;
|
|
3976
3991
|
readonly disabled: _angular_core.InputSignal<string | boolean | undefined>;
|
|
3977
3992
|
readonly icon: _angular_core.InputSignal<string | undefined>;
|
|
@@ -4031,6 +4046,7 @@ declare class SectionFormItemComponent extends ConfigComponent<Input> implements
|
|
|
4031
4046
|
patterns?: PatternRule[];
|
|
4032
4047
|
patternMessage?: string;
|
|
4033
4048
|
icon?: string;
|
|
4049
|
+
params?: Record<string, string>;
|
|
4034
4050
|
placeholder?: string;
|
|
4035
4051
|
button?: string;
|
|
4036
4052
|
buttonAction?: string;
|
|
@@ -4053,7 +4069,7 @@ declare class SectionFormItemComponent extends ConfigComponent<Input> implements
|
|
|
4053
4069
|
private readonly createDynamicComponent;
|
|
4054
4070
|
private readonly createDynamicInput;
|
|
4055
4071
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SectionFormItemComponent, never>;
|
|
4056
|
-
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>;
|
|
4072
|
+
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; }; "params": { "alias": "params"; "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>;
|
|
4057
4073
|
}
|
|
4058
4074
|
|
|
4059
4075
|
/**
|
|
@@ -4386,6 +4402,7 @@ declare class HeaderComponent {
|
|
|
4386
4402
|
readonly actionButton: _angular_core.InputSignal<string | undefined>;
|
|
4387
4403
|
readonly actionLabel: _angular_core.InputSignal<string | undefined>;
|
|
4388
4404
|
readonly noTranslate: _angular_core.InputSignal<boolean>;
|
|
4405
|
+
readonly params: _angular_core.InputSignal<Record<string, string> | undefined>;
|
|
4389
4406
|
readonly actionClick: _angular_core.OutputEmitterRef<void>;
|
|
4390
4407
|
private readonly translateService;
|
|
4391
4408
|
private readonly sizeContext;
|
|
@@ -4393,7 +4410,7 @@ declare class HeaderComponent {
|
|
|
4393
4410
|
protected readonly actionConfig: _angular_core.Signal<Button | undefined>;
|
|
4394
4411
|
protected readonly text: _angular_core.Signal<string>;
|
|
4395
4412
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HeaderComponent, never>;
|
|
4396
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HeaderComponent, "m-header", never, { "level": { "alias": "level"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "actionButton": { "alias": "actionButton"; "required": false; "isSignal": true; }; "actionLabel": { "alias": "actionLabel"; "required": false; "isSignal": true; }; "noTranslate": { "alias": "noTranslate"; "required": false; "isSignal": true; }; }, { "actionClick": "actionClick"; }, never, ["*", "*", "*", "*", "*", "*"], true, never>;
|
|
4413
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<HeaderComponent, "m-header", never, { "level": { "alias": "level"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "actionButton": { "alias": "actionButton"; "required": false; "isSignal": true; }; "actionLabel": { "alias": "actionLabel"; "required": false; "isSignal": true; }; "noTranslate": { "alias": "noTranslate"; "required": false; "isSignal": true; }; "params": { "alias": "params"; "required": false; "isSignal": true; }; }, { "actionClick": "actionClick"; }, never, ["*", "*", "*", "*", "*", "*"], true, never>;
|
|
4397
4414
|
}
|
|
4398
4415
|
|
|
4399
4416
|
type LogoVariant = 'default' | 'flat' | 'shadow' | 'lined' | 'grained';
|
|
@@ -5509,7 +5526,7 @@ declare const cornerSide: (position: StatCornerPosition) => StatCornerSide;
|
|
|
5509
5526
|
declare const cornerEdge: (position: StatCornerPosition) => StatCornerEdge;
|
|
5510
5527
|
|
|
5511
5528
|
type TextOutputAlign = 'left' | 'right' | 'center';
|
|
5512
|
-
type TextOutputVariant = 'lead' | 'big' | 'bold' | 'footer' | 'footnote' | 'link';
|
|
5529
|
+
type TextOutputVariant = 'lead' | 'big' | 'bold' | 'footer' | 'footnote' | 'link' | 'link-small';
|
|
5513
5530
|
interface TextOutputConfig extends Config {
|
|
5514
5531
|
label?: string;
|
|
5515
5532
|
noTranslate?: boolean;
|