@mll-lab/js-utils 2.22.0 → 2.24.0
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/dist/date.d.ts +1 -0
- package/dist/index.common.js +9 -0
- package/dist/index.common.js.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/typeGuards.d.ts +1 -0
- package/package.json +1 -1
package/dist/date.d.ts
CHANGED
|
@@ -24,3 +24,4 @@ export declare const DOTLESS_DATE_FORMAT = "yMMdd";
|
|
|
24
24
|
export declare function parseDotlessDate(value: string): Date | null;
|
|
25
25
|
export declare function formatDotlessDate(date: Date | string | number): string;
|
|
26
26
|
export declare function formatGermanTimeHourMinute(date: string): string;
|
|
27
|
+
export declare function formatGermanFullDateTime(date: Date | string | number): string;
|
package/dist/index.common.js
CHANGED
|
@@ -15181,6 +15181,9 @@ function formatDotlessDate(date) {
|
|
|
15181
15181
|
function formatGermanTimeHourMinute(date) {
|
|
15182
15182
|
return format(date, 'HH:mm');
|
|
15183
15183
|
}
|
|
15184
|
+
function formatGermanFullDateTime(date) {
|
|
15185
|
+
return format(date, 'dd.MM.yyyy HH:mm:ss');
|
|
15186
|
+
}
|
|
15184
15187
|
|
|
15185
15188
|
/**
|
|
15186
15189
|
* Detects if a mobile device is used
|
|
@@ -15357,6 +15360,10 @@ function isString(value) {
|
|
|
15357
15360
|
function isNotNullish(value) {
|
|
15358
15361
|
return value != null;
|
|
15359
15362
|
}
|
|
15363
|
+
function isArrayOfStrings(value) {
|
|
15364
|
+
return (value instanceof Array &&
|
|
15365
|
+
value.every((record) => typeof record === 'string'));
|
|
15366
|
+
}
|
|
15360
15367
|
|
|
15361
15368
|
const isAlphanumeric = function isAlphanumeric(value) {
|
|
15362
15369
|
return isString(value) && /^[A-Za-z0-9]+$/.test(value);
|
|
@@ -15487,6 +15494,7 @@ exports.formatDotlessDate = formatDotlessDate;
|
|
|
15487
15494
|
exports.formatGerman = formatGerman;
|
|
15488
15495
|
exports.formatGermanDateTime = formatGermanDateTime;
|
|
15489
15496
|
exports.formatGermanDotlessDate = formatGermanDotlessDate;
|
|
15497
|
+
exports.formatGermanFullDateTime = formatGermanFullDateTime;
|
|
15490
15498
|
exports.formatGermanNumber = formatGermanNumber;
|
|
15491
15499
|
exports.formatGermanTimeHourMinute = formatGermanTimeHourMinute;
|
|
15492
15500
|
exports.formatIsoDate = formatIsoDate;
|
|
@@ -15495,6 +15503,7 @@ exports.formatSecondlessDateTime = formatSecondlessDateTime;
|
|
|
15495
15503
|
exports.includesIgnoreCase = includesIgnoreCase;
|
|
15496
15504
|
exports.insertIf = insertIf;
|
|
15497
15505
|
exports.isAlphanumeric = isAlphanumeric;
|
|
15506
|
+
exports.isArrayOfStrings = isArrayOfStrings;
|
|
15498
15507
|
exports.isBSNR = isBSNR;
|
|
15499
15508
|
exports.isEmail = isEmail;
|
|
15500
15509
|
exports.isEmptyArray = isEmptyArray;
|