mn-angular-lib 0.0.47 → 0.0.49

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": "0.0.47",
3
+ "version": "0.0.49",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.3",
6
6
  "@angular/core": "^21.1.3"
@@ -484,6 +484,8 @@ declare class MnInputField implements OnInit {
484
484
  private readonly configService;
485
485
  private readonly sectionPath;
486
486
  private readonly explicitInstanceId;
487
+ private readonly lang;
488
+ private readonly destroyRef;
487
489
  /** Current raw string value of the input element */
488
490
  value: string | null;
489
491
  /** Whether the input is disabled */
@@ -1126,6 +1128,8 @@ declare class MnTextarea implements OnInit {
1126
1128
  private readonly configService;
1127
1129
  private readonly sectionPath;
1128
1130
  private readonly explicitInstanceId;
1131
+ private readonly lang;
1132
+ private readonly destroyRef;
1129
1133
  /** Current raw string value of the textarea element */
1130
1134
  value: string | null;
1131
1135
  /** Whether the textarea is disabled */
@@ -1318,6 +1322,8 @@ declare class MnCheckbox implements OnInit {
1318
1322
  private readonly configService;
1319
1323
  private readonly sectionPath;
1320
1324
  private readonly explicitInstanceId;
1325
+ private readonly lang;
1326
+ private readonly destroyRef;
1321
1327
  value: boolean;
1322
1328
  isDisabled: boolean;
1323
1329
  private onChange;
@@ -1480,6 +1486,8 @@ declare class MnDatetime implements OnInit {
1480
1486
  private readonly configService;
1481
1487
  private readonly sectionPath;
1482
1488
  private readonly explicitInstanceId;
1489
+ private readonly lang;
1490
+ private readonly destroyRef;
1483
1491
  value: string | null;
1484
1492
  isDisabled: boolean;
1485
1493
  private onChange;
@@ -1645,6 +1653,8 @@ declare class MnMultiSelect implements OnInit {
1645
1653
  private readonly sectionPath;
1646
1654
  private readonly explicitInstanceId;
1647
1655
  private readonly elRef;
1656
+ private readonly lang;
1657
+ private readonly destroyRef;
1648
1658
  /** Currently selected values */
1649
1659
  selectedValues: unknown[];
1650
1660
  isOpen: boolean;
@@ -3182,6 +3192,12 @@ interface MnLanguageConfig {
3182
3192
  defaultLocale: string;
3183
3193
  /** Locales to preload at bootstrap. */
3184
3194
  preload?: string[];
3195
+ /**
3196
+ * Optional mapping of domain hostnames to locale codes.
3197
+ * When set, the service will use the current domain to determine the initial locale.
3198
+ * Example: { "example.nl": "nl", "example.de": "de", "example.com": "en" }
3199
+ */
3200
+ domainLocaleMap?: Record<string, string>;
3185
3201
  }
3186
3202
  /**
3187
3203
  * Type guard: checks whether a value is a translatable marker object.
@@ -3227,6 +3243,12 @@ declare class MnLanguageService {
3227
3243
  * Shorthand alias for `translate`.
3228
3244
  */
3229
3245
  t(key: string, params?: Record<string, string | number>): string;
3246
+ /**
3247
+ * Resolve the effective default locale from a domain-to-locale map.
3248
+ * Matches `window.location.hostname` against the map keys.
3249
+ * Returns the mapped locale, or the provided fallback if no match is found.
3250
+ */
3251
+ resolveLocaleForDomain(domainLocaleMap: Record<string, string> | undefined, fallback: string): string;
3230
3252
  static ɵfac: i0.ɵɵFactoryDeclaration<MnLanguageService, never>;
3231
3253
  static ɵprov: i0.ɵɵInjectableDeclaration<MnLanguageService>;
3232
3254
  }