mn-angular-lib 0.0.53 → 0.0.55
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
|
@@ -283,7 +283,7 @@ declare const mnInputFieldVariants: tailwind_variants.TVReturnType<{
|
|
|
283
283
|
fullWidth: {
|
|
284
284
|
true: string;
|
|
285
285
|
};
|
|
286
|
-
}, undefined, "bg-
|
|
286
|
+
}, undefined, "bg-base-100 border-1 border-base-300 placeholder-base-content/50 text-base-content text-sm", {
|
|
287
287
|
shadow: {
|
|
288
288
|
true: string;
|
|
289
289
|
};
|
|
@@ -329,7 +329,7 @@ declare const mnInputFieldVariants: tailwind_variants.TVReturnType<{
|
|
|
329
329
|
fullWidth: {
|
|
330
330
|
true: string;
|
|
331
331
|
};
|
|
332
|
-
}, undefined, "bg-
|
|
332
|
+
}, undefined, "bg-base-100 border-1 border-base-300 placeholder-base-content/50 text-base-content text-sm", unknown, unknown, undefined>>;
|
|
333
333
|
type MnInputVariants = VariantProps<typeof mnInputFieldVariants>;
|
|
334
334
|
|
|
335
335
|
/**
|
|
@@ -964,7 +964,7 @@ declare const mnTextareaVariants: tailwind_variants.TVReturnType<{
|
|
|
964
964
|
horizontal: string;
|
|
965
965
|
both: string;
|
|
966
966
|
};
|
|
967
|
-
}, undefined, "bg-
|
|
967
|
+
}, undefined, "bg-base-100 border-1 border-base-300 placeholder-base-content/50 text-base-content text-sm", {
|
|
968
968
|
shadow: {
|
|
969
969
|
true: string;
|
|
970
970
|
};
|
|
@@ -1022,7 +1022,7 @@ declare const mnTextareaVariants: tailwind_variants.TVReturnType<{
|
|
|
1022
1022
|
horizontal: string;
|
|
1023
1023
|
both: string;
|
|
1024
1024
|
};
|
|
1025
|
-
}, undefined, "bg-
|
|
1025
|
+
}, undefined, "bg-base-100 border-1 border-base-300 placeholder-base-content/50 text-base-content text-sm", unknown, unknown, undefined>>;
|
|
1026
1026
|
type MnTextareaVariants = VariantProps<typeof mnTextareaVariants>;
|
|
1027
1027
|
|
|
1028
1028
|
/**
|
|
@@ -1415,7 +1415,7 @@ declare const mnDatetimeVariants: tailwind_variants.TVReturnType<{
|
|
|
1415
1415
|
fullWidth: {
|
|
1416
1416
|
true: string;
|
|
1417
1417
|
};
|
|
1418
|
-
}, undefined, "bg-
|
|
1418
|
+
}, undefined, "bg-base-100 border-1 border-base-300 placeholder-base-content/50 text-base-content text-sm", {
|
|
1419
1419
|
shadow: {
|
|
1420
1420
|
true: string;
|
|
1421
1421
|
};
|
|
@@ -1461,7 +1461,7 @@ declare const mnDatetimeVariants: tailwind_variants.TVReturnType<{
|
|
|
1461
1461
|
fullWidth: {
|
|
1462
1462
|
true: string;
|
|
1463
1463
|
};
|
|
1464
|
-
}, undefined, "bg-
|
|
1464
|
+
}, undefined, "bg-base-100 border-1 border-base-300 placeholder-base-content/50 text-base-content text-sm", unknown, unknown, undefined>>;
|
|
1465
1465
|
type MnDatetimeVariants = VariantProps<typeof mnDatetimeVariants>;
|
|
1466
1466
|
|
|
1467
1467
|
type MnDatetimeErrorMessageData = string | ((args: any, errors: ValidationErrors) => string);
|
|
@@ -1585,7 +1585,7 @@ declare const mnMultiSelectVariants: tailwind_variants.TVReturnType<{
|
|
|
1585
1585
|
fullWidth: {
|
|
1586
1586
|
true: string;
|
|
1587
1587
|
};
|
|
1588
|
-
}, undefined, "bg-
|
|
1588
|
+
}, undefined, "bg-base-100 border-1 border-base-300 text-base-content text-sm cursor-pointer", {
|
|
1589
1589
|
shadow: {
|
|
1590
1590
|
true: string;
|
|
1591
1591
|
};
|
|
@@ -1631,7 +1631,7 @@ declare const mnMultiSelectVariants: tailwind_variants.TVReturnType<{
|
|
|
1631
1631
|
fullWidth: {
|
|
1632
1632
|
true: string;
|
|
1633
1633
|
};
|
|
1634
|
-
}, undefined, "bg-
|
|
1634
|
+
}, undefined, "bg-base-100 border-1 border-base-300 text-base-content text-sm cursor-pointer", unknown, unknown, undefined>>;
|
|
1635
1635
|
type MnMultiSelectVariants = VariantProps<typeof mnMultiSelectVariants>;
|
|
1636
1636
|
|
|
1637
1637
|
type MnMultiSelectErrorMessageData = string | ((args: any, errors: ValidationErrors) => string);
|
|
@@ -4230,6 +4230,8 @@ interface MnLanguageConfig {
|
|
|
4230
4230
|
* Example: { "example.nl": "nl", "example.de": "de", "example.com": "en" }
|
|
4231
4231
|
*/
|
|
4232
4232
|
domainLocaleMap?: Record<string, string>;
|
|
4233
|
+
/** Whether to enable debug logging. */
|
|
4234
|
+
debug?: boolean;
|
|
4233
4235
|
}
|
|
4234
4236
|
/**
|
|
4235
4237
|
* Type guard: checks whether a value is a translatable marker object.
|
|
@@ -4241,11 +4243,16 @@ declare class MnLanguageService {
|
|
|
4241
4243
|
private _translations;
|
|
4242
4244
|
private _locale$;
|
|
4243
4245
|
private _urlPattern;
|
|
4246
|
+
private _debug;
|
|
4244
4247
|
/** Observable of the current active locale. */
|
|
4245
4248
|
readonly locale$: Observable<string>;
|
|
4246
4249
|
constructor(http: HttpClient);
|
|
4247
4250
|
/** Current active locale. */
|
|
4248
4251
|
get locale(): string;
|
|
4252
|
+
/**
|
|
4253
|
+
* Enable or disable debug logging.
|
|
4254
|
+
*/
|
|
4255
|
+
setDebug(enabled: boolean): void;
|
|
4249
4256
|
/**
|
|
4250
4257
|
* Configure the URL pattern used to fetch translation files.
|
|
4251
4258
|
* Use `{locale}` as placeholder, e.g. `"assets/i18n/{locale}.json"`.
|
|
@@ -4271,6 +4278,10 @@ declare class MnLanguageService {
|
|
|
4271
4278
|
* Interpolation replaces `{{paramName}}` with the provided value.
|
|
4272
4279
|
*/
|
|
4273
4280
|
translate(key: string, params?: Record<string, string | number>): string;
|
|
4281
|
+
/**
|
|
4282
|
+
* Helper to retrieve a value from a potentially nested translation map using a dot-notated key.
|
|
4283
|
+
*/
|
|
4284
|
+
private getValueFromMap;
|
|
4274
4285
|
/**
|
|
4275
4286
|
* Shorthand alias for `translate`.
|
|
4276
4287
|
*/
|