@mmb-digital/shared-libs-auto 0.0.10 → 0.0.12
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/formatters/const.d.ts +1 -0
- package/dist/formatters/const.js +1 -0
- package/dist/formatters/const.js.map +1 -1
- package/dist/formatters/formatBankAccount/formatBankAccount.d.ts +3 -8
- package/dist/formatters/formatBankAccount/formatBankAccount.js +7 -1
- package/dist/formatters/formatBankAccount/formatBankAccount.js.map +1 -1
- package/dist/formatters/formatBankAccount/inputFormatBankAccount.d.ts +7 -0
- package/dist/formatters/formatBankAccount/inputFormatBankAccount.js +9 -0
- package/dist/formatters/formatBankAccount/inputFormatBankAccount.js.map +1 -0
- package/dist/formatters/formatBankAccount/types.d.ts +7 -0
- package/dist/formatters/formatBankAccount/types.js +2 -0
- package/dist/formatters/formatBankAccount/types.js.map +1 -0
- package/dist/formatters/formatBytes/formatBytes.d.ts +2 -1
- package/dist/formatters/formatBytes/formatBytes.js +6 -1
- package/dist/formatters/formatBytes/formatBytes.js.map +1 -1
- package/dist/formatters/formatCZSKPhoneNumber/formatCZSKPhoneNumber.d.ts +2 -1
- package/dist/formatters/formatCZSKPhoneNumber/formatCZSKPhoneNumber.js +8 -3
- package/dist/formatters/formatCZSKPhoneNumber/formatCZSKPhoneNumber.js.map +1 -1
- package/dist/formatters/formatCZSKPhoneNumber/inputFormatCZSKPhoneNumber.d.ts +6 -0
- package/dist/formatters/formatCZSKPhoneNumber/inputFormatCZSKPhoneNumber.js +9 -0
- package/dist/formatters/formatCZSKPhoneNumber/inputFormatCZSKPhoneNumber.js.map +1 -0
- package/dist/formatters/formatCzZipCode/formatCzZipCode.d.ts +2 -1
- package/dist/formatters/formatCzZipCode/formatCzZipCode.js +6 -4
- package/dist/formatters/formatCzZipCode/formatCzZipCode.js.map +1 -1
- package/dist/formatters/formatCzZipCode/inputFormatCzZipCode.d.ts +6 -0
- package/dist/formatters/formatCzZipCode/inputFormatCzZipCode.js +9 -0
- package/dist/formatters/formatCzZipCode/inputFormatCzZipCode.js.map +1 -0
- package/dist/formatters/formatDate/formatDate.d.ts +1 -1
- package/dist/formatters/formatDate/formatDate.js +2 -1
- package/dist/formatters/formatDate/formatDate.js.map +1 -1
- package/dist/formatters/formatDateTime/formatDateTime.d.ts +1 -1
- package/dist/formatters/formatDateTime/formatDateTime.js +3 -2
- package/dist/formatters/formatDateTime/formatDateTime.js.map +1 -1
- package/dist/formatters/formatICO/formatICO.d.ts +5 -0
- package/dist/formatters/formatICO/formatICO.js +22 -0
- package/dist/formatters/formatICO/formatICO.js.map +1 -0
- package/dist/formatters/formatICO/inputFormatICO.d.ts +6 -0
- package/dist/formatters/formatICO/inputFormatICO.js +9 -0
- package/dist/formatters/formatICO/inputFormatICO.js.map +1 -0
- package/dist/formatters/formatPin/formatPin.d.ts +3 -2
- package/dist/formatters/formatPin/formatPin.js +8 -7
- package/dist/formatters/formatPin/formatPin.js.map +1 -1
- package/dist/formatters/formatPin/inputFormatPin.d.ts +6 -0
- package/dist/formatters/formatPin/inputFormatPin.js +9 -0
- package/dist/formatters/formatPin/inputFormatPin.js.map +1 -0
- package/dist/formatters/formatRomanNumeral/formatRomanNumeral.d.ts +2 -1
- package/dist/formatters/formatRomanNumeral/formatRomanNumeral.js +8 -4
- package/dist/formatters/formatRomanNumeral/formatRomanNumeral.js.map +1 -1
- package/dist/formatters/index.d.ts +6 -0
- package/dist/formatters/index.js +6 -0
- package/dist/formatters/index.js.map +1 -1
- package/dist/hooks/useDebounce/useDebounce.js +1 -1
- package/dist/hooks/useDebounce/useDebounce.js.map +1 -1
- package/dist/hooks/usePreviousValue/usePreviousValue.js +1 -1
- package/dist/hooks/usePreviousValue/usePreviousValue.js.map +1 -1
- package/dist/utils/birthNumber/consts.d.ts +25 -0
- package/dist/utils/birthNumber/consts.js +26 -0
- package/dist/utils/birthNumber/consts.js.map +1 -0
- package/dist/utils/birthNumber/getDateFromBirthNumber.d.ts +4 -0
- package/dist/utils/birthNumber/getDateFromBirthNumber.js +20 -0
- package/dist/utils/birthNumber/getDateFromBirthNumber.js.map +1 -0
- package/dist/utils/birthNumber/getGenderFromBirthNumber.d.ts +6 -0
- package/dist/utils/birthNumber/getGenderFromBirthNumber.js +25 -0
- package/dist/utils/birthNumber/getGenderFromBirthNumber.js.map +1 -0
- package/dist/{validators/isBirthNumber → utils/birthNumber}/isBirthNumber.d.ts +1 -1
- package/dist/utils/birthNumber/isBirthNumber.js +26 -0
- package/dist/utils/birthNumber/isBirthNumber.js.map +1 -0
- package/dist/utils/birthNumber/types.d.ts +3 -0
- package/dist/utils/birthNumber/types.js +3 -0
- package/dist/utils/birthNumber/types.js.map +1 -0
- package/dist/utils/birthNumber/utils/getBirthNumberMonth.d.ts +4 -0
- package/dist/utils/birthNumber/utils/getBirthNumberMonth.js +16 -0
- package/dist/utils/birthNumber/utils/getBirthNumberMonth.js.map +1 -0
- package/dist/utils/birthNumber/utils/getBirthNumberYear.d.ts +4 -0
- package/dist/utils/birthNumber/utils/getBirthNumberYear.js +15 -0
- package/dist/utils/birthNumber/utils/getBirthNumberYear.js.map +1 -0
- package/dist/utils/birthNumber/utils/getCleanedBirthNumber.d.ts +4 -0
- package/dist/utils/birthNumber/utils/getCleanedBirthNumber.js +11 -0
- package/dist/utils/birthNumber/utils/getCleanedBirthNumber.js.map +1 -0
- package/dist/utils/birthNumber/utils/isBirthNumberChecksumValid.d.ts +4 -0
- package/dist/utils/birthNumber/utils/isBirthNumberChecksumValid.js +6 -0
- package/dist/utils/birthNumber/utils/isBirthNumberChecksumValid.js.map +1 -0
- package/dist/utils/birthNumber/utils/isBirthNumberDateValid.d.ts +4 -0
- package/dist/utils/birthNumber/utils/isBirthNumberDateValid.js +13 -0
- package/dist/utils/birthNumber/utils/isBirthNumberDateValid.js.map +1 -0
- package/dist/utils/birthNumber/utils/isTenDigits.d.ts +4 -0
- package/dist/utils/birthNumber/utils/isTenDigits.js +5 -0
- package/dist/utils/birthNumber/utils/isTenDigits.js.map +1 -0
- package/dist/utils/blobToBase64/blobToBase64.js +1 -1
- package/dist/utils/blobToBase64/blobToBase64.js.map +1 -1
- package/dist/utils/cleanObject/cleanObject.js +3 -1
- package/dist/utils/cleanObject/cleanObject.js.map +1 -1
- package/dist/utils/composeUrlRequestString/composeUrlRequestString.js +2 -1
- package/dist/utils/composeUrlRequestString/composeUrlRequestString.js.map +1 -1
- package/dist/utils/downloadFile/downloadFile.js +5 -2
- package/dist/utils/downloadFile/downloadFile.js.map +1 -1
- package/dist/utils/getNumberString/getNumberString.js +4 -1
- package/dist/utils/getNumberString/getNumberString.js.map +1 -1
- package/dist/utils/getObjectDiff/getObjectDiff.js +3 -1
- package/dist/utils/getObjectDiff/getObjectDiff.js.map +1 -1
- package/dist/utils/getObjectValue/getObjectValue.js +2 -1
- package/dist/utils/getObjectValue/getObjectValue.js.map +1 -1
- package/dist/utils/getSafeMax/getSafeMax.d.ts +6 -0
- package/dist/utils/getSafeMax/getSafeMax.js +16 -0
- package/dist/utils/getSafeMax/getSafeMax.js.map +1 -0
- package/dist/utils/getSafeMin/getSafeMin.d.ts +6 -0
- package/dist/utils/getSafeMin/getSafeMin.js +16 -0
- package/dist/utils/getSafeMin/getSafeMin.js.map +1 -0
- package/dist/utils/hasObjectProperty/hasObjectProperty.js +2 -1
- package/dist/utils/hasObjectProperty/hasObjectProperty.js.map +1 -1
- package/dist/utils/index.d.ts +10 -0
- package/dist/utils/index.js +8 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/mergeDeep/mergeDeep.js +1 -1
- package/dist/utils/mergeDeep/mergeDeep.js.map +1 -1
- package/dist/utils/range/createRange.d.ts +6 -0
- package/dist/utils/range/createRange.js +13 -0
- package/dist/utils/range/createRange.js.map +1 -0
- package/dist/utils/range/isInRange.d.ts +5 -0
- package/dist/utils/range/isInRange.js +12 -0
- package/dist/utils/range/isInRange.js.map +1 -0
- package/dist/utils/range/types.d.ts +7 -0
- package/dist/utils/range/types.js +2 -0
- package/dist/utils/range/types.js.map +1 -0
- package/dist/utils/range/unionRange.d.ts +6 -0
- package/dist/utils/range/unionRange.js +17 -0
- package/dist/utils/range/unionRange.js.map +1 -0
- package/dist/utils/removeWhitespacesFromUnknown/removeWhitespacesFromUnknown.js +1 -1
- package/dist/utils/removeWhitespacesFromUnknown/removeWhitespacesFromUnknown.js.map +1 -1
- package/dist/utils/setObjectValue/setObjectValue.js +2 -2
- package/dist/utils/setObjectValue/setObjectValue.js.map +1 -1
- package/dist/utils/xor/xor.js +1 -1
- package/dist/utils/xor/xor.js.map +1 -1
- package/dist/utils/xorByKey/xorByKey.js +1 -1
- package/dist/utils/xorByKey/xorByKey.js.map +1 -1
- package/dist/validators/index.d.ts +7 -2
- package/dist/validators/index.js +7 -2
- package/dist/validators/index.js.map +1 -1
- package/dist/validators/isBankAccount/isBankAccount.js +2 -2
- package/dist/validators/isBankAccount/isBankAccount.js.map +1 -1
- package/dist/validators/isDIC/isDIC.js +1 -1
- package/dist/validators/isDIC/isDIC.js.map +1 -1
- package/dist/validators/isEmail/isEmail.js +2 -2
- package/dist/validators/isEmail/isEmail.js.map +1 -1
- package/dist/validators/isEmpty/isEmpty.js +7 -3
- package/dist/validators/isEmpty/isEmpty.js.map +1 -1
- package/dist/validators/isEmptyString/isEmptyString.js +1 -1
- package/dist/validators/isEmptyString/isEmptyString.js.map +1 -1
- package/dist/validators/isEqual/isEqual.js +5 -1
- package/dist/validators/isEqual/isEqual.js.map +1 -1
- package/dist/validators/isICO/isICO.js +2 -1
- package/dist/validators/isICO/isICO.js.map +1 -1
- package/dist/validators/isNaturalNumericString/isNaturalNumericString.js +3 -2
- package/dist/validators/isNaturalNumericString/isNaturalNumericString.js.map +1 -1
- package/dist/validators/isNaturalNumericStringWithWhitespaces/isNaturalNumericStringWithWhitespaces.js +4 -2
- package/dist/validators/isNaturalNumericStringWithWhitespaces/isNaturalNumericStringWithWhitespaces.js.map +1 -1
- package/dist/validators/isNumberOrString/isNumberOrString.js +2 -1
- package/dist/validators/isNumberOrString/isNumberOrString.js.map +1 -1
- package/dist/validators/isNumericString/isNumericString.js +3 -2
- package/dist/validators/isNumericString/isNumericString.js.map +1 -1
- package/dist/validators/isValidCzechPhoneNumber/isValidCzechPhoneNumber.d.ts +5 -0
- package/dist/validators/isValidCzechPhoneNumber/isValidCzechPhoneNumber.js +15 -0
- package/dist/validators/isValidCzechPhoneNumber/isValidCzechPhoneNumber.js.map +1 -0
- package/dist/validators/isValidDate/isValidDate.js +1 -1
- package/dist/validators/isValidDate/isValidDate.js.map +1 -1
- package/dist/validators/isValidDrivingLicense/isValidDrivingLicense.d.ts +5 -0
- package/dist/validators/isValidDrivingLicense/isValidDrivingLicense.js +12 -0
- package/dist/validators/isValidDrivingLicense/isValidDrivingLicense.js.map +1 -0
- package/dist/validators/isValidForeignPhoneNumber/isValidForeignPhoneNumber.d.ts +5 -0
- package/dist/validators/isValidForeignPhoneNumber/isValidForeignPhoneNumber.js +13 -0
- package/dist/validators/isValidForeignPhoneNumber/isValidForeignPhoneNumber.js.map +1 -0
- package/dist/validators/isValidIdentityCard/isValidIdentityCard.d.ts +5 -0
- package/dist/validators/isValidIdentityCard/isValidIdentityCard.js +12 -0
- package/dist/validators/isValidIdentityCard/isValidIdentityCard.js.map +1 -0
- package/dist/validators/isValidPassport/isValidPassport.d.ts +8 -0
- package/dist/validators/isValidPassport/isValidPassport.js +19 -0
- package/dist/validators/isValidPassport/isValidPassport.js.map +1 -0
- package/dist/validators/isValidVehicleIdentification/isValidVehicleIdentification.d.ts +5 -0
- package/dist/validators/isValidVehicleIdentification/isValidVehicleIdentification.js +20 -0
- package/dist/validators/isValidVehicleIdentification/isValidVehicleIdentification.js.map +1 -0
- package/dist/validators/isZipCode/isZipCode.js +1 -1
- package/dist/validators/isZipCode/isZipCode.js.map +1 -1
- package/package.json +3 -2
- package/dist/validators/isBirthNumber/isBirthNumber.js +0 -77
- package/dist/validators/isBirthNumber/isBirthNumber.js.map +0 -1
package/dist/formatters/const.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"const.js","sourceRoot":"","sources":["../../src/formatters/const.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAA"}
|
|
1
|
+
{"version":3,"file":"const.js","sourceRoot":"","sources":["../../src/formatters/const.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CAAA;AAC1C,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAA"}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
type
|
|
2
|
-
interface BankAccountInput {
|
|
3
|
-
number: string;
|
|
4
|
-
bankCode: string;
|
|
5
|
-
prefix?: Nullable<string>;
|
|
6
|
-
}
|
|
1
|
+
import type { BankAccountInput } from './types.js';
|
|
7
2
|
/**
|
|
8
3
|
* Formats a bank account input into a standardized string representation.
|
|
4
|
+
* @example "1234567890/0800" or "123-1234567890/0800"
|
|
9
5
|
*/
|
|
10
|
-
export declare const formatBankAccount: (
|
|
11
|
-
export {};
|
|
6
|
+
export declare const formatBankAccount: (value: BankAccountInput, fallback?: string) => string;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import { isEmpty } from '../../validators/isEmpty/isEmpty.js';
|
|
2
|
+
import { EMPTY_VALUE_PLACEHOLDER } from '../const.js';
|
|
1
3
|
/**
|
|
2
4
|
* Formats a bank account input into a standardized string representation.
|
|
5
|
+
* @example "1234567890/0800" or "123-1234567890/0800"
|
|
3
6
|
*/
|
|
4
|
-
export const formatBankAccount = (
|
|
7
|
+
export const formatBankAccount = (value, fallback = EMPTY_VALUE_PLACEHOLDER) => {
|
|
8
|
+
if (isEmpty(value))
|
|
9
|
+
return fallback;
|
|
10
|
+
const { prefix, number, bankCode } = value;
|
|
5
11
|
const accountNumber = [String(number).trim(), bankCode.trim()].join('/');
|
|
6
12
|
return [prefix, accountNumber].filter(Boolean).join('-');
|
|
7
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatBankAccount.js","sourceRoot":"","sources":["../../../src/formatters/formatBankAccount/formatBankAccount.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"formatBankAccount.js","sourceRoot":"","sources":["../../../src/formatters/formatBankAccount/formatBankAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAA;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAGrD;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAuB,EAAE,QAAQ,GAAG,uBAAuB,EAAE,EAAE;IAC/F,IAAI,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,QAAQ,CAAA;IAEnC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAA;IAC1C,MAAM,aAAa,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IACxE,OAAO,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAC1D,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { BankAccountInput } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Formats a bank account input into a standardized string representation.
|
|
4
|
+
* Used for input fields where empty string is preferred over placeholder.
|
|
5
|
+
* @example "1234567890/0800" or "123-1234567890/0800"
|
|
6
|
+
*/
|
|
7
|
+
export declare const inputFormatBankAccount: (value: BankAccountInput) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EMPTY_INPUT_PLACEHOLDER } from '../const.js';
|
|
2
|
+
import { formatBankAccount } from './formatBankAccount.js';
|
|
3
|
+
/**
|
|
4
|
+
* Formats a bank account input into a standardized string representation.
|
|
5
|
+
* Used for input fields where empty string is preferred over placeholder.
|
|
6
|
+
* @example "1234567890/0800" or "123-1234567890/0800"
|
|
7
|
+
*/
|
|
8
|
+
export const inputFormatBankAccount = (value) => formatBankAccount(value, EMPTY_INPUT_PLACEHOLDER);
|
|
9
|
+
//# sourceMappingURL=inputFormatBankAccount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputFormatBankAccount.js","sourceRoot":"","sources":["../../../src/formatters/formatBankAccount/inputFormatBankAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAG1D;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAAuB,EAAE,EAAE,CAChE,iBAAiB,CAAC,KAAK,EAAE,uBAAuB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/formatters/formatBankAccount/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Formats a number of bytes into a human-readable string.
|
|
3
|
+
* @example "1.5 MB"
|
|
3
4
|
*/
|
|
4
|
-
export declare const formatBytes: (bytes: number, decimals?: number) => string;
|
|
5
|
+
export declare const formatBytes: (bytes: number | null | undefined, decimals?: number, fallback?: string) => string;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { isNullOrUndefined } from '../../validators/isNullOrUndefined/isNullOrUndefined.js';
|
|
2
|
+
import { EMPTY_VALUE_PLACEHOLDER } from '../const.js';
|
|
1
3
|
/**
|
|
2
4
|
* Formats a number of bytes into a human-readable string.
|
|
5
|
+
* @example "1.5 MB"
|
|
3
6
|
*/
|
|
4
|
-
export const formatBytes = (bytes, decimals = 2) => {
|
|
7
|
+
export const formatBytes = (bytes, decimals = 2, fallback = EMPTY_VALUE_PLACEHOLDER) => {
|
|
8
|
+
if (isNullOrUndefined(bytes))
|
|
9
|
+
return fallback;
|
|
5
10
|
if (bytes === 0)
|
|
6
11
|
return '0 Bytes';
|
|
7
12
|
const k = 1024;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatBytes.js","sourceRoot":"","sources":["../../../src/formatters/formatBytes/formatBytes.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"formatBytes.js","sourceRoot":"","sources":["../../../src/formatters/formatBytes/formatBytes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yDAAyD,CAAA;AAC3F,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAErD;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,KAAgC,EAChC,QAAQ,GAAG,CAAC,EACZ,QAAQ,GAAG,uBAAuB,EAClC,EAAE;IACF,IAAI,iBAAiB,CAAC,KAAK,CAAC;QAAE,OAAO,QAAQ,CAAA;IAC7C,IAAI,KAAK,KAAK,CAAC;QAAE,OAAO,SAAS,CAAA;IAEjC,MAAM,CAAC,GAAG,IAAI,CAAA;IACd,MAAM,EAAE,GAAG,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAA;IACtC,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;IACvE,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;IACnD,OAAO,GAAG,UAAU,CAAC,CAAC,KAAK,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAA;AAClE,CAAC,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Formats a Czech or Slovak phone number.
|
|
3
|
+
* @example "+420 123 456 789" or "+421 123 456 789"
|
|
3
4
|
*/
|
|
4
|
-
export declare const formatCZSKPhoneNumber: (value: string | undefined | null) => string;
|
|
5
|
+
export declare const formatCZSKPhoneNumber: (value: string | undefined | null, fallback?: string) => string;
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
import { isEmpty } from '../../validators/isEmpty/isEmpty.js';
|
|
2
|
+
import { EMPTY_VALUE_PLACEHOLDER } from '../const.js';
|
|
1
3
|
const CZECH_PHONE_CODE = '+420';
|
|
2
4
|
const SLOVAK_PHONE_CODE = '+421';
|
|
3
5
|
const CZ_SK_PHONE_MASK = /^(\+42[01])\d{9}$/;
|
|
4
6
|
/**
|
|
5
7
|
* Formats a Czech or Slovak phone number.
|
|
8
|
+
* @example "+420 123 456 789" or "+421 123 456 789"
|
|
6
9
|
*/
|
|
7
|
-
export const formatCZSKPhoneNumber = (value) => {
|
|
8
|
-
if (
|
|
9
|
-
return
|
|
10
|
+
export const formatCZSKPhoneNumber = (value, fallback = EMPTY_VALUE_PLACEHOLDER) => {
|
|
11
|
+
if (isEmpty(value))
|
|
12
|
+
return fallback;
|
|
13
|
+
if (!CZ_SK_PHONE_MASK.test(value)) {
|
|
14
|
+
return value ?? fallback;
|
|
10
15
|
}
|
|
11
16
|
const testedCode = value.includes(CZECH_PHONE_CODE) ? CZECH_PHONE_CODE : SLOVAK_PHONE_CODE;
|
|
12
17
|
const phonePart = value.split(testedCode)[1];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatCZSKPhoneNumber.js","sourceRoot":"","sources":["../../../src/formatters/formatCZSKPhoneNumber/formatCZSKPhoneNumber.ts"],"names":[],"mappings":"AAAA,MAAM,gBAAgB,GAAG,MAAM,CAAA;AAC/B,MAAM,iBAAiB,GAAG,MAAM,CAAA;AAChC,MAAM,gBAAgB,GAAG,mBAAmB,CAAA;AAE5C
|
|
1
|
+
{"version":3,"file":"formatCZSKPhoneNumber.js","sourceRoot":"","sources":["../../../src/formatters/formatCZSKPhoneNumber/formatCZSKPhoneNumber.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAA;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAErD,MAAM,gBAAgB,GAAG,MAAM,CAAA;AAC/B,MAAM,iBAAiB,GAAG,MAAM,CAAA;AAChC,MAAM,gBAAgB,GAAG,mBAAmB,CAAA;AAE5C;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,KAAgC,EAChC,QAAQ,GAAG,uBAAuB,EAC1B,EAAE;IACV,IAAI,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,QAAQ,CAAA;IAEnC,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAClC,OAAO,KAAK,IAAI,QAAQ,CAAA;IAC1B,CAAC;IAED,MAAM,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,iBAAiB,CAAA;IAC1F,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;IAE5C,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,OAAO,KAAK,IAAI,EAAE,CAAA;IACpB,CAAC;IAED,MAAM,MAAM,GAAG,EAAE,CAAA;IACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAC1C,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;YAC3B,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QAClB,CAAC;QACD,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAA;IAC3B,CAAC;IACD,MAAM,kBAAkB,GAAG,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IAC1C,OAAO,GAAG,UAAU,IAAI,kBAAkB,EAAE,CAAA;AAC9C,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Formats a Czech or Slovak phone number.
|
|
3
|
+
* Used for input fields where empty string is preferred over placeholder.
|
|
4
|
+
* @example "+420 123 456 789" or "+421 123 456 789"
|
|
5
|
+
*/
|
|
6
|
+
export declare const inputFormatCZSKPhoneNumber: (value: string | undefined | null) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EMPTY_INPUT_PLACEHOLDER } from '../const.js';
|
|
2
|
+
import { formatCZSKPhoneNumber } from './formatCZSKPhoneNumber.js';
|
|
3
|
+
/**
|
|
4
|
+
* Formats a Czech or Slovak phone number.
|
|
5
|
+
* Used for input fields where empty string is preferred over placeholder.
|
|
6
|
+
* @example "+420 123 456 789" or "+421 123 456 789"
|
|
7
|
+
*/
|
|
8
|
+
export const inputFormatCZSKPhoneNumber = (value) => formatCZSKPhoneNumber(value, EMPTY_INPUT_PLACEHOLDER);
|
|
9
|
+
//# sourceMappingURL=inputFormatCZSKPhoneNumber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputFormatCZSKPhoneNumber.js","sourceRoot":"","sources":["../../../src/formatters/formatCZSKPhoneNumber/inputFormatCZSKPhoneNumber.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAElE;;;;GAIG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,KAAgC,EAAE,EAAE,CAC7E,qBAAqB,CAAC,KAAK,EAAE,uBAAuB,CAAC,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Formats a Czech zip code by adding a space between the third and fourth digits.
|
|
3
|
+
* @example "123 45"
|
|
3
4
|
*/
|
|
4
|
-
export declare const formatCzZipCode: (value: number | string | null | undefined) => string;
|
|
5
|
+
export declare const formatCzZipCode: (value: number | string | null | undefined, fallback?: string) => string;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isEmpty } from '../../validators/isEmpty/isEmpty.js';
|
|
2
|
+
import { EMPTY_VALUE_PLACEHOLDER } from '../const.js';
|
|
2
3
|
const ZIP_CODE_REGEX = /(\d{3})(\d{2})/;
|
|
3
4
|
/**
|
|
4
5
|
* Formats a Czech zip code by adding a space between the third and fourth digits.
|
|
6
|
+
* @example "123 45"
|
|
5
7
|
*/
|
|
6
|
-
export const formatCzZipCode = (value) => {
|
|
7
|
-
if (
|
|
8
|
-
return
|
|
8
|
+
export const formatCzZipCode = (value, fallback = EMPTY_VALUE_PLACEHOLDER) => {
|
|
9
|
+
if (isEmpty(value))
|
|
10
|
+
return fallback;
|
|
9
11
|
return value.toString().replace(ZIP_CODE_REGEX, `$1 $2`);
|
|
10
12
|
};
|
|
11
13
|
//# sourceMappingURL=formatCzZipCode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatCzZipCode.js","sourceRoot":"","sources":["../../../src/formatters/formatCzZipCode/formatCzZipCode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"formatCzZipCode.js","sourceRoot":"","sources":["../../../src/formatters/formatCzZipCode/formatCzZipCode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAA;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAErD,MAAM,cAAc,GAAG,gBAAgB,CAAA;AAEvC;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,KAAyC,EACzC,QAAQ,GAAG,uBAAuB,EAClC,EAAE;IACF,IAAI,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,QAAQ,CAAA;IAEnC,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,cAAc,EAAE,OAAO,CAAC,CAAA;AAC1D,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Formats a Czech zip code by adding a space between the third and fourth digits.
|
|
3
|
+
* Used for input fields where empty string is preferred over placeholder.
|
|
4
|
+
* @example "123 45"
|
|
5
|
+
*/
|
|
6
|
+
export declare const inputFormatCzZipCode: (value: number | string | null | undefined) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EMPTY_INPUT_PLACEHOLDER } from '../const.js';
|
|
2
|
+
import { formatCzZipCode } from './formatCzZipCode.js';
|
|
3
|
+
/**
|
|
4
|
+
* Formats a Czech zip code by adding a space between the third and fourth digits.
|
|
5
|
+
* Used for input fields where empty string is preferred over placeholder.
|
|
6
|
+
* @example "123 45"
|
|
7
|
+
*/
|
|
8
|
+
export const inputFormatCzZipCode = (value) => formatCzZipCode(value, EMPTY_INPUT_PLACEHOLDER);
|
|
9
|
+
//# sourceMappingURL=inputFormatCzZipCode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputFormatCzZipCode.js","sourceRoot":"","sources":["../../../src/formatters/formatCzZipCode/inputFormatCzZipCode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAyC,EAAE,EAAE,CAChF,eAAe,CAAC,KAAK,EAAE,uBAAuB,CAAC,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { format } from 'date-fns/format';
|
|
2
2
|
import { getDateObject } from '../../utils/getDateObject/getDateObject.js';
|
|
3
|
+
import { isEmpty } from '../../validators/isEmpty/isEmpty.js';
|
|
3
4
|
import { EMPTY_VALUE_PLACEHOLDER } from '../const.js';
|
|
4
5
|
const DATE_FORMAT = 'dd. MM. yyyy';
|
|
5
6
|
/**
|
|
@@ -7,7 +8,7 @@ const DATE_FORMAT = 'dd. MM. yyyy';
|
|
|
7
8
|
* @example "03. 09. 2025"
|
|
8
9
|
*/
|
|
9
10
|
export const formatDate = (input, fallback = EMPTY_VALUE_PLACEHOLDER) => {
|
|
10
|
-
if (
|
|
11
|
+
if (isEmpty(input))
|
|
11
12
|
return fallback;
|
|
12
13
|
const date = getDateObject(input);
|
|
13
14
|
if (!date)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatDate.js","sourceRoot":"","sources":["../../../src/formatters/formatDate/formatDate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAA;AAC1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAErD,MAAM,WAAW,GAAG,cAAc,CAAA;AAElC;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CACxB,
|
|
1
|
+
{"version":3,"file":"formatDate.js","sourceRoot":"","sources":["../../../src/formatters/formatDate/formatDate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAA;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAA;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAErD,MAAM,WAAW,GAAG,cAAc,CAAA;AAElC;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CACxB,KAAgC,EAChC,QAAQ,GAAG,uBAAuB,EAC1B,EAAE;IACV,IAAI,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,QAAQ,CAAA;IAEnC,MAAM,IAAI,GAAG,aAAa,CAAC,KAAK,CAAC,CAAA;IACjC,IAAI,CAAC,IAAI;QAAE,OAAO,QAAQ,CAAA;IAE1B,OAAO,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,CAAA;AAClC,CAAC,CAAA"}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Returns dates in dd. MM. yyyy HH:mm:ss format.
|
|
3
3
|
* @example "03. 09. 2025 15:32:21"
|
|
4
4
|
*/
|
|
5
|
-
export declare const formatDateTime: (input: string | undefined, fallback?: string) => string;
|
|
5
|
+
export declare const formatDateTime: (input: string | null | undefined, fallback?: string) => string;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { format } from 'date-fns/format';
|
|
2
|
-
import { EMPTY_VALUE_PLACEHOLDER } from '../const.js';
|
|
3
2
|
import { getDateObject } from '../../utils/getDateObject/getDateObject.js';
|
|
3
|
+
import { isEmpty } from '../../validators/isEmpty/isEmpty.js';
|
|
4
|
+
import { EMPTY_VALUE_PLACEHOLDER } from '../const.js';
|
|
4
5
|
const DATE_TIME_FORMAT = 'dd. MM. yyyy HH:mm:ss';
|
|
5
6
|
/**
|
|
6
7
|
* Returns dates in dd. MM. yyyy HH:mm:ss format.
|
|
7
8
|
* @example "03. 09. 2025 15:32:21"
|
|
8
9
|
*/
|
|
9
10
|
export const formatDateTime = (input, fallback = EMPTY_VALUE_PLACEHOLDER) => {
|
|
10
|
-
if (
|
|
11
|
+
if (isEmpty(input))
|
|
11
12
|
return fallback;
|
|
12
13
|
const date = getDateObject(input);
|
|
13
14
|
if (!date)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatDateTime.js","sourceRoot":"","sources":["../../../src/formatters/formatDateTime/formatDateTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"formatDateTime.js","sourceRoot":"","sources":["../../../src/formatters/formatDateTime/formatDateTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAA;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAA;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAErD,MAAM,gBAAgB,GAAG,uBAAuB,CAAA;AAEhD;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,KAAgC,EAChC,QAAQ,GAAG,uBAAuB,EAC1B,EAAE;IACV,IAAI,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,QAAQ,CAAA;IAEnC,MAAM,IAAI,GAAG,aAAa,CAAC,KAAK,CAAC,CAAA;IACjC,IAAI,CAAC,IAAI;QAAE,OAAO,QAAQ,CAAA;IAE1B,OAAO,MAAM,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAA;AACvC,CAAC,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { removeWhitespaces } from '../../utils/removeWhitespaces/removeWhitespaces.js';
|
|
2
|
+
import { isEmpty } from '../../validators/isEmpty/isEmpty.js';
|
|
3
|
+
import { isNaturalNumericStringWithWhitespaces } from '../../validators/isNaturalNumericStringWithWhitespaces/isNaturalNumericStringWithWhitespaces.js';
|
|
4
|
+
import { EMPTY_VALUE_PLACEHOLDER } from '../const.js';
|
|
5
|
+
/**
|
|
6
|
+
* Délka Identifikační čísla osoby (IČO) je 8 znaků.
|
|
7
|
+
*
|
|
8
|
+
* https://cs.wikipedia.org/wiki/Identifika%C4%8Dn%C3%AD_%C4%8D%C3%ADslo_osoby
|
|
9
|
+
*/
|
|
10
|
+
const ICO_NUMBER_LENGTH = 8;
|
|
11
|
+
/**
|
|
12
|
+
* Formats the given ICO (Identifikační číslo organizace) by padding it with leading zeros to ensure it is 8 characters long.
|
|
13
|
+
* @example "00012345"
|
|
14
|
+
*/
|
|
15
|
+
export const formatICO = (value, fallback = EMPTY_VALUE_PLACEHOLDER) => {
|
|
16
|
+
if (isEmpty(value))
|
|
17
|
+
return fallback;
|
|
18
|
+
if (!isNaturalNumericStringWithWhitespaces(value))
|
|
19
|
+
return fallback;
|
|
20
|
+
return removeWhitespaces(value.toString()).padStart(ICO_NUMBER_LENGTH, '0');
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=formatICO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatICO.js","sourceRoot":"","sources":["../../../src/formatters/formatICO/formatICO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAA;AAC7D,OAAO,EAAE,qCAAqC,EAAE,MAAM,iGAAiG,CAAA;AACvJ,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAErD;;;;GAIG;AACH,MAAM,iBAAiB,GAAG,CAAC,CAAA;AAE3B;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CACvB,KAAyC,EACzC,QAAQ,GAAG,uBAAuB,EAC1B,EAAE;IACV,IAAI,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,QAAQ,CAAA;IACnC,IAAI,CAAC,qCAAqC,CAAC,KAAK,CAAC;QAAE,OAAO,QAAQ,CAAA;IAElE,OAAO,iBAAiB,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAA;AAC7E,CAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EMPTY_INPUT_PLACEHOLDER } from '../const.js';
|
|
2
|
+
import { formatICO } from './formatICO.js';
|
|
3
|
+
/**
|
|
4
|
+
* Formats an ICO (Identifikační číslo organizace).
|
|
5
|
+
* Used for input fields where empty string is preferred over placeholder.
|
|
6
|
+
* @example "00012345"
|
|
7
|
+
*/
|
|
8
|
+
export const inputFormatICO = (value) => formatICO(value, EMPTY_INPUT_PLACEHOLDER);
|
|
9
|
+
//# sourceMappingURL=inputFormatICO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputFormatICO.js","sourceRoot":"","sources":["../../../src/formatters/formatICO/inputFormatICO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAyC,EAAE,EAAE,CAC1E,SAAS,CAAC,KAAK,EAAE,uBAAuB,CAAC,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Format a PIN code
|
|
2
|
+
* Format a PIN code.
|
|
3
|
+
* @example "123456/7890"
|
|
3
4
|
*/
|
|
4
|
-
export declare const formatPin: (value: string | number | null | undefined) => string;
|
|
5
|
+
export declare const formatPin: (value: string | number | null | undefined, fallback?: string) => string;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isEmpty } from '../../validators/isEmpty/isEmpty.js';
|
|
2
|
+
import { EMPTY_VALUE_PLACEHOLDER } from '../const.js';
|
|
2
3
|
const PIN_CODE_REGEX = /(\d{6})(\d{1,4})/g;
|
|
3
|
-
const EMPTY_STRING = '';
|
|
4
4
|
/**
|
|
5
|
-
* Format a PIN code
|
|
5
|
+
* Format a PIN code.
|
|
6
|
+
* @example "123456/7890"
|
|
6
7
|
*/
|
|
7
|
-
export const formatPin = (value) => {
|
|
8
|
+
export const formatPin = (value, fallback = EMPTY_VALUE_PLACEHOLDER) => {
|
|
8
9
|
if (Number.isNaN(value))
|
|
9
|
-
return
|
|
10
|
-
if (
|
|
11
|
-
return
|
|
10
|
+
return fallback;
|
|
11
|
+
if (isEmpty(value))
|
|
12
|
+
return fallback;
|
|
12
13
|
return value.toString().replace(PIN_CODE_REGEX, `$1/$2`);
|
|
13
14
|
};
|
|
14
15
|
//# sourceMappingURL=formatPin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatPin.js","sourceRoot":"","sources":["../../../src/formatters/formatPin/formatPin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"formatPin.js","sourceRoot":"","sources":["../../../src/formatters/formatPin/formatPin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAA;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAErD,MAAM,cAAc,GAAG,mBAAmB,CAAA;AAE1C;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CACvB,KAAyC,EACzC,QAAQ,GAAG,uBAAuB,EAC1B,EAAE;IACV,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC;QAAE,OAAO,QAAQ,CAAA;IACxC,IAAI,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,QAAQ,CAAA;IAEnC,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,cAAc,EAAE,OAAO,CAAC,CAAA;AAC1D,CAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EMPTY_INPUT_PLACEHOLDER } from '../const.js';
|
|
2
|
+
import { formatPin } from './formatPin.js';
|
|
3
|
+
/**
|
|
4
|
+
* Format a PIN code.
|
|
5
|
+
* Used for input fields where empty string is preferred over placeholder.
|
|
6
|
+
* @example "123456/7890"
|
|
7
|
+
*/
|
|
8
|
+
export const inputFormatPin = (value) => formatPin(value, EMPTY_INPUT_PLACEHOLDER);
|
|
9
|
+
//# sourceMappingURL=inputFormatPin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputFormatPin.js","sourceRoot":"","sources":["../../../src/formatters/formatPin/inputFormatPin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,KAAyC,EAAE,EAAE,CAC1E,SAAS,CAAC,KAAK,EAAE,uBAAuB,CAAC,CAAA"}
|
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
* Converts an integer to a roman numeral.
|
|
3
3
|
* Returns the roman numeral as a string, or null if input is null/undefined,
|
|
4
4
|
* or an empty string for invalid inputs (non-integer, <=0, >=4000).
|
|
5
|
+
* @example "XIV" for 14
|
|
5
6
|
*/
|
|
6
|
-
export declare const formatRomanNumeral: (num: number | null | undefined) => string
|
|
7
|
+
export declare const formatRomanNumeral: (num: number | null | undefined, fallback?: string) => string;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getNumber } from '../../utils/getNumber/getNumber.js';
|
|
2
|
+
import { isNaturalNumericString } from '../../validators/isNaturalNumericString/isNaturalNumericString.js';
|
|
3
|
+
import { isNullOrUndefined } from '../../validators/isNullOrUndefined/isNullOrUndefined.js';
|
|
4
|
+
import { EMPTY_VALUE_PLACEHOLDER } from '../const.js';
|
|
2
5
|
const numeralCodes = [
|
|
3
6
|
['', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX'], // Ones
|
|
4
7
|
['', 'X', 'XX', 'XXX', 'XL', 'L', 'LX', 'LXX', 'LXXX', 'XC'], // Tens
|
|
@@ -9,12 +12,13 @@ const numeralCodes = [
|
|
|
9
12
|
* Converts an integer to a roman numeral.
|
|
10
13
|
* Returns the roman numeral as a string, or null if input is null/undefined,
|
|
11
14
|
* or an empty string for invalid inputs (non-integer, <=0, >=4000).
|
|
15
|
+
* @example "XIV" for 14
|
|
12
16
|
*/
|
|
13
|
-
export const formatRomanNumeral = (num) => {
|
|
17
|
+
export const formatRomanNumeral = (num, fallback = EMPTY_VALUE_PLACEHOLDER) => {
|
|
14
18
|
if (isNullOrUndefined(num) || !isNaturalNumericString(num))
|
|
15
|
-
return
|
|
19
|
+
return fallback;
|
|
16
20
|
if (num <= 0 || num >= 4000)
|
|
17
|
-
return
|
|
21
|
+
return fallback;
|
|
18
22
|
const digits = num.toString().split('').reverse();
|
|
19
23
|
let numeral = '';
|
|
20
24
|
for (let i = 0; i < digits.length; i++) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatRomanNumeral.js","sourceRoot":"","sources":["../../../src/formatters/formatRomanNumeral/formatRomanNumeral.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"formatRomanNumeral.js","sourceRoot":"","sources":["../../../src/formatters/formatRomanNumeral/formatRomanNumeral.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAA;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,mEAAmE,CAAA;AAC1G,OAAO,EAAE,iBAAiB,EAAE,MAAM,yDAAyD,CAAA;AAC3F,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAErD,MAAM,YAAY,GAAG;IACnB,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO;IACrE,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO;IACrE,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW;IACzE,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,wBAAwB;CACvC,CAAA;AAEV;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,GAA8B,EAC9B,QAAQ,GAAG,uBAAuB,EAC1B,EAAE;IACV,IAAI,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC;QAAE,OAAO,QAAQ,CAAA;IAC3E,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI;QAAE,OAAO,QAAQ,CAAA;IAE5C,MAAM,MAAM,GAAG,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAA;IAEjD,IAAI,OAAO,GAAG,EAAE,CAAA;IAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACvC,MAAM,WAAW,GAAG,YAAY,CAAC,CAAC,CAAC,CAAA;QACnC,MAAM,KAAK,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;QAElC,IAAI,iBAAiB,CAAC,WAAW,CAAC;YAAE,SAAQ,CAAC,0DAA0D;QACvG,IAAI,iBAAiB,CAAC,KAAK,CAAC;YAAE,SAAQ,CAAC,0DAA0D;QAEjG,MAAM,UAAU,GAAG,WAAW,CAAC,KAAK,CAAC,CAAA;QACrC,IAAI,iBAAiB,CAAC,UAAU,CAAC;YAAE,SAAQ,CAAC,0DAA0D;QAEtG,OAAO,GAAG,UAAU,GAAG,OAAO,CAAA;IAChC,CAAC;IAED,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA"}
|
|
@@ -4,5 +4,11 @@ export { formatCZSKPhoneNumber } from './formatCZSKPhoneNumber/formatCZSKPhoneNu
|
|
|
4
4
|
export { formatCzZipCode } from './formatCzZipCode/formatCzZipCode.js';
|
|
5
5
|
export { formatDate } from './formatDate/formatDate.js';
|
|
6
6
|
export { formatDateTime } from './formatDateTime/formatDateTime.js';
|
|
7
|
+
export { formatICO } from './formatICO/formatICO.js';
|
|
7
8
|
export { formatPin } from './formatPin/formatPin.js';
|
|
8
9
|
export { formatRomanNumeral } from './formatRomanNumeral/formatRomanNumeral.js';
|
|
10
|
+
export { inputFormatBankAccount } from './formatBankAccount/inputFormatBankAccount.js';
|
|
11
|
+
export { inputFormatCZSKPhoneNumber } from './formatCZSKPhoneNumber/inputFormatCZSKPhoneNumber.js';
|
|
12
|
+
export { inputFormatCzZipCode } from './formatCzZipCode/inputFormatCzZipCode.js';
|
|
13
|
+
export { inputFormatICO } from './formatICO/inputFormatICO.js';
|
|
14
|
+
export { inputFormatPin } from './formatPin/inputFormatPin.js';
|
package/dist/formatters/index.js
CHANGED
|
@@ -4,6 +4,12 @@ export { formatCZSKPhoneNumber } from './formatCZSKPhoneNumber/formatCZSKPhoneNu
|
|
|
4
4
|
export { formatCzZipCode } from './formatCzZipCode/formatCzZipCode.js';
|
|
5
5
|
export { formatDate } from './formatDate/formatDate.js';
|
|
6
6
|
export { formatDateTime } from './formatDateTime/formatDateTime.js';
|
|
7
|
+
export { formatICO } from './formatICO/formatICO.js';
|
|
7
8
|
export { formatPin } from './formatPin/formatPin.js';
|
|
8
9
|
export { formatRomanNumeral } from './formatRomanNumeral/formatRomanNumeral.js';
|
|
10
|
+
export { inputFormatBankAccount } from './formatBankAccount/inputFormatBankAccount.js';
|
|
11
|
+
export { inputFormatCZSKPhoneNumber } from './formatCZSKPhoneNumber/inputFormatCZSKPhoneNumber.js';
|
|
12
|
+
export { inputFormatCzZipCode } from './formatCzZipCode/inputFormatCzZipCode.js';
|
|
13
|
+
export { inputFormatICO } from './formatICO/inputFormatICO.js';
|
|
14
|
+
export { inputFormatPin } from './formatPin/inputFormatPin.js';
|
|
9
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/formatters/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAA;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAA;AACxF,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAA;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/formatters/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAA;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAA;AACxF,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAA;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAA;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,+CAA+C,CAAA;AACtF,OAAO,EAAE,0BAA0B,EAAE,MAAM,uDAAuD,CAAA;AAClG,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAA;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDebounce.js","sourceRoot":"","sources":["../../../src/hooks/useDebounce/useDebounce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"useDebounce.js","sourceRoot":"","sources":["../../../src/hooks/useDebounce/useDebounce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE3C,MAAM,wBAAwB,GAAG,GAAY,CAAA;AAE7C;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAI,KAAQ,EAAE,KAAc,EAAK,EAAE;IAC5D,wCAAwC;IACxC,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IAE3D,SAAS,CACP,GAAG,EAAE;QACH,qCAAqC;QACrC,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE;YAC9B,iBAAiB,CAAC,KAAK,CAAC,CAAA;QAC1B,CAAC,EAAE,KAAK,IAAI,wBAAwB,CAAC,CAAA;QAErC,wEAAwE;QACxE,+EAA+E;QAC/E,kEAAkE;QAClE,OAAO,GAAG,EAAE;YACV,YAAY,CAAC,OAAO,CAAC,CAAA;QACvB,CAAC,CAAA;IACH,CAAC,EACD,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,gDAAgD;KAChE,CAAA;IAED,OAAO,cAAc,CAAA;AACvB,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isEqual } from '../../index.js';
|
|
2
1
|
import { useEffect, useRef } from 'react';
|
|
2
|
+
import { isEqual } from '../../validators/isEqual/isEqual.js';
|
|
3
3
|
/**
|
|
4
4
|
* Hook to get the previous value of a prop or state.
|
|
5
5
|
* Useful for comparing previous and current values in functional components.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePreviousValue.js","sourceRoot":"","sources":["../../../src/hooks/usePreviousValue/usePreviousValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"usePreviousValue.js","sourceRoot":"","sources":["../../../src/hooks/usePreviousValue/usePreviousValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAA;AAE7D;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAI,KAAQ,EAAiB,EAAE;IAC7D,MAAM,GAAG,GAAG,MAAM,EAAK,CAAA;IACvB,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;YACjC,GAAG,CAAC,OAAO,GAAG,KAAK,CAAA;QACrB,CAAC;IACH,CAAC,CAAC,CAAA;IACF,OAAO,GAAG,CAAC,OAAO,CAAA;AACpB,CAAC,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* https://cs.wikipedia.org/wiki/Rodn%C3%A9_%C4%8D%C3%ADslo
|
|
3
|
+
* Rodné číslo je desetimístné číslo
|
|
4
|
+
* Je dělitelné jedenácti beze zbytku
|
|
5
|
+
* První dvojčíslí vyjadřuje poslední dvě číslice roku narození
|
|
6
|
+
* Druhé dvojčíslí vyjadřuje měsíc narození
|
|
7
|
+
* U žen druhé dvojčíslí vyjadřuje měsíc narození zvýšené o 50
|
|
8
|
+
* Třetí dvojčíslí vyjadřuje den narození
|
|
9
|
+
* Čtyřmístná koncovka je rozlišujícím znakem fyzických osob narozených v tomtéž kalendářním dnu o rozsahu přidělovaných koncovek 0000 až 9999
|
|
10
|
+
* V případě, že jsou pro daný kalendářní den v příslušném kalendářním roce vyčerpána veškerá určená rodná čísla,
|
|
11
|
+
* určí ministerstvo pro tento den novou, dodatečnou sestavu rodných čísel, pro niž platí, že rodné číslo je desetimístné číslo, které je dělitelné jedenácti beze zbytku
|
|
12
|
+
* První dvojčíslí vyjadřuje poslední dvě číslice roku narození
|
|
13
|
+
* Druhé dvojčíslí vyjadřuje měsíc narození, u mužů zvýšené o 20, u žen zvýšené o 70
|
|
14
|
+
* Třetí dvojčíslí vyjadřuje den narození
|
|
15
|
+
* Rodná čísla přidělená fyzickým osobám narozeným před 1. lednem 1954 mají stejnou strukturu, jsou však devítimístná s třímístnou koncovkou a nesplňují podmínku dělitelnosti jedenácti
|
|
16
|
+
* Rodné číslo s třímístnou nulovou koncovkou není rodným číslem, neboť pro každý kalendářní den v roce byla generována rodná čísla s třímístnou koncovkou pouze v rozsahu 001 až 999
|
|
17
|
+
*/
|
|
18
|
+
export declare const YEAR_OF_ADDITION_CHECK_DIGIT: 54;
|
|
19
|
+
export declare const YEAR_OF_POSSIBLE_ALTERNATIVE_RC: 2004;
|
|
20
|
+
export declare const MAN_NUMBER_SUPPLEMENT: 20;
|
|
21
|
+
export declare const WOMAN_NUMBER_SUPPLEMENT: 50;
|
|
22
|
+
export declare const ALTERNATIVE_RC_SUPPLEMENT: 20;
|
|
23
|
+
export declare const MALE: "MALE";
|
|
24
|
+
export declare const FEMALE: "FEMALE";
|
|
25
|
+
export declare const UNKNOWN: "UNKNOWN";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* https://cs.wikipedia.org/wiki/Rodn%C3%A9_%C4%8D%C3%ADslo
|
|
3
|
+
* Rodné číslo je desetimístné číslo
|
|
4
|
+
* Je dělitelné jedenácti beze zbytku
|
|
5
|
+
* První dvojčíslí vyjadřuje poslední dvě číslice roku narození
|
|
6
|
+
* Druhé dvojčíslí vyjadřuje měsíc narození
|
|
7
|
+
* U žen druhé dvojčíslí vyjadřuje měsíc narození zvýšené o 50
|
|
8
|
+
* Třetí dvojčíslí vyjadřuje den narození
|
|
9
|
+
* Čtyřmístná koncovka je rozlišujícím znakem fyzických osob narozených v tomtéž kalendářním dnu o rozsahu přidělovaných koncovek 0000 až 9999
|
|
10
|
+
* V případě, že jsou pro daný kalendářní den v příslušném kalendářním roce vyčerpána veškerá určená rodná čísla,
|
|
11
|
+
* určí ministerstvo pro tento den novou, dodatečnou sestavu rodných čísel, pro niž platí, že rodné číslo je desetimístné číslo, které je dělitelné jedenácti beze zbytku
|
|
12
|
+
* První dvojčíslí vyjadřuje poslední dvě číslice roku narození
|
|
13
|
+
* Druhé dvojčíslí vyjadřuje měsíc narození, u mužů zvýšené o 20, u žen zvýšené o 70
|
|
14
|
+
* Třetí dvojčíslí vyjadřuje den narození
|
|
15
|
+
* Rodná čísla přidělená fyzickým osobám narozeným před 1. lednem 1954 mají stejnou strukturu, jsou však devítimístná s třímístnou koncovkou a nesplňují podmínku dělitelnosti jedenácti
|
|
16
|
+
* Rodné číslo s třímístnou nulovou koncovkou není rodným číslem, neboť pro každý kalendářní den v roce byla generována rodná čísla s třímístnou koncovkou pouze v rozsahu 001 až 999
|
|
17
|
+
*/
|
|
18
|
+
export const YEAR_OF_ADDITION_CHECK_DIGIT = 54; // 1954 | 1854
|
|
19
|
+
export const YEAR_OF_POSSIBLE_ALTERNATIVE_RC = 2004; // 2004
|
|
20
|
+
export const MAN_NUMBER_SUPPLEMENT = 20; // Male
|
|
21
|
+
export const WOMAN_NUMBER_SUPPLEMENT = 50; // Female
|
|
22
|
+
export const ALTERNATIVE_RC_SUPPLEMENT = 20; // Alternative
|
|
23
|
+
export const MALE = 'MALE';
|
|
24
|
+
export const FEMALE = 'FEMALE';
|
|
25
|
+
export const UNKNOWN = 'UNKNOWN';
|
|
26
|
+
//# sourceMappingURL=consts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../src/utils/birthNumber/consts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAW,CAAA,CAAC,cAAc;AACtE,MAAM,CAAC,MAAM,+BAA+B,GAAG,IAAa,CAAA,CAAC,OAAO;AACpE,MAAM,CAAC,MAAM,qBAAqB,GAAG,EAAW,CAAA,CAAC,OAAO;AACxD,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAW,CAAA,CAAC,SAAS;AAC5D,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAW,CAAA,CAAC,cAAc;AAEnE,MAAM,CAAC,MAAM,IAAI,GAAG,MAAe,CAAA;AACnC,MAAM,CAAC,MAAM,MAAM,GAAG,QAAiB,CAAA;AACvC,MAAM,CAAC,MAAM,OAAO,GAAG,SAAkB,CAAA"}
|