mn-angular-lib 2.0.45 → 2.0.47

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mn-angular-lib",
3
- "version": "2.0.45",
3
+ "version": "2.0.47",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.1.7",
6
6
  "@angular/core": "^22.1.7",
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- import { ElementRef, EventEmitter, InjectionToken, OnChanges, OnInit, TemplateRef } from "@angular/core";
2
+ import { ElementRef, EventEmitter, InjectionToken, OnChanges, OnInit, SimpleChanges, TemplateRef } from "@angular/core";
3
3
  import { VariantProps } from "tailwind-variants";
4
4
  import { MnErrorMessageFn } from "mn-angular-lib/core";
5
5
  import { AbstractControl, NgControl, ValidationErrors } from "@angular/forms";
@@ -257,7 +257,7 @@ export declare const MN_INPUT_FIELD_CONFIG: InjectionToken<MnInputFieldUIConfig>
257
257
  * ></mn-input-field>
258
258
  * ```
259
259
  */
260
- export declare class MnInputField implements OnInit {
260
+ export declare class MnInputField implements OnInit, OnChanges {
261
261
  ngControl: NgControl | null;
262
262
  /** Resolved UI configuration for the input field */
263
263
  protected uiConfig: MnInputFieldUIConfig;
@@ -292,6 +292,12 @@ export declare class MnInputField implements OnInit {
292
292
  */
293
293
  constructor();
294
294
  ngOnInit(): void;
295
+ /**
296
+ * Re-applies label/placeholder/aria from `props` when the parent replaces the
297
+ * input object (language switch, kiosk search label, etc.). Without this the
298
+ * field keeps the values copied into `uiConfig` at init.
299
+ */
300
+ ngOnChanges(changes: SimpleChanges): void;
295
301
  /**
296
302
  * Focuses the input element.
297
303
  */