@mmb-digital/shared-libs-auto 0.0.16 → 0.0.18
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/README.md +157 -8
- package/dist/formatters/formatBankAccount/formatBankAccount.test.d.ts +1 -0
- package/dist/formatters/formatBankAccount/formatBankAccount.test.js +35 -0
- package/dist/formatters/formatBankAccount/formatBankAccount.test.js.map +1 -0
- package/dist/formatters/formatBankAccount/inputFormatBankAccount.test.d.ts +1 -0
- package/dist/formatters/formatBankAccount/inputFormatBankAccount.test.js +35 -0
- package/dist/formatters/formatBankAccount/inputFormatBankAccount.test.js.map +1 -0
- package/dist/formatters/formatBankAccount/utils/innerFormatBankAccount.js +1 -1
- package/dist/formatters/formatBankAccount/utils/innerFormatBankAccount.js.map +1 -1
- package/dist/formatters/formatBytes/formatBytes.test.d.ts +1 -0
- package/dist/formatters/formatBytes/formatBytes.test.js +32 -0
- package/dist/formatters/formatBytes/formatBytes.test.js.map +1 -0
- package/dist/formatters/formatCZSKPhoneNumber/formatCZSKPhoneNumber.test.d.ts +1 -0
- package/dist/formatters/formatCZSKPhoneNumber/formatCZSKPhoneNumber.test.js +27 -0
- package/dist/formatters/formatCZSKPhoneNumber/formatCZSKPhoneNumber.test.js.map +1 -0
- package/dist/formatters/formatCZSKPhoneNumber/inputFormatCZSKPhoneNumber.test.d.ts +1 -0
- package/dist/formatters/formatCZSKPhoneNumber/inputFormatCZSKPhoneNumber.test.js +27 -0
- package/dist/formatters/formatCZSKPhoneNumber/inputFormatCZSKPhoneNumber.test.js.map +1 -0
- package/dist/formatters/formatCzZipCode/formatCzZipCode.test.d.ts +1 -0
- package/dist/formatters/formatCzZipCode/formatCzZipCode.test.js +29 -0
- package/dist/formatters/formatCzZipCode/formatCzZipCode.test.js.map +1 -0
- package/dist/formatters/formatCzZipCode/inputFormatCzZipCode.test.d.ts +1 -0
- package/dist/formatters/formatCzZipCode/inputFormatCzZipCode.test.js +29 -0
- package/dist/formatters/formatCzZipCode/inputFormatCzZipCode.test.js.map +1 -0
- package/dist/formatters/formatDate/formatDate.test.d.ts +1 -0
- package/dist/formatters/formatDate/formatDate.test.js +23 -0
- package/dist/formatters/formatDate/formatDate.test.js.map +1 -0
- package/dist/formatters/formatDateTime/formatDateTime.test.d.ts +1 -0
- package/dist/formatters/formatDateTime/formatDateTime.test.js +23 -0
- package/dist/formatters/formatDateTime/formatDateTime.test.js.map +1 -0
- package/dist/formatters/formatICO/formatICO.test.d.ts +1 -0
- package/dist/formatters/formatICO/formatICO.test.js +33 -0
- package/dist/formatters/formatICO/formatICO.test.js.map +1 -0
- package/dist/formatters/formatICO/inputFormatICO.test.d.ts +1 -0
- package/dist/formatters/formatICO/inputFormatICO.test.js +29 -0
- package/dist/formatters/formatICO/inputFormatICO.test.js.map +1 -0
- package/dist/formatters/formatNumber/formatNumber.test.d.ts +1 -0
- package/dist/formatters/formatNumber/formatNumber.test.js +44 -0
- package/dist/formatters/formatNumber/formatNumber.test.js.map +1 -0
- package/dist/formatters/formatNumber/formatPercent.d.ts +1 -1
- package/dist/formatters/formatNumber/formatPercent.js +2 -2
- package/dist/formatters/formatNumber/formatPercent.js.map +1 -1
- package/dist/formatters/formatNumber/formatPercent.test.d.ts +1 -0
- package/dist/formatters/formatNumber/formatPercent.test.js +52 -0
- package/dist/formatters/formatNumber/formatPercent.test.js.map +1 -0
- package/dist/formatters/formatNumber/inputFormatFloat.test.d.ts +1 -0
- package/dist/formatters/formatNumber/inputFormatFloat.test.js +31 -0
- package/dist/formatters/formatNumber/inputFormatFloat.test.js.map +1 -0
- package/dist/formatters/formatNumber/inputFormatNumber.test.d.ts +1 -0
- package/dist/formatters/formatNumber/inputFormatNumber.test.js +31 -0
- package/dist/formatters/formatNumber/inputFormatNumber.test.js.map +1 -0
- package/dist/formatters/formatPin/formatPin.test.d.ts +1 -0
- package/dist/formatters/formatPin/formatPin.test.js +27 -0
- package/dist/formatters/formatPin/formatPin.test.js.map +1 -0
- package/dist/formatters/formatPin/inputFormatPin.test.d.ts +1 -0
- package/dist/formatters/formatPin/inputFormatPin.test.js +27 -0
- package/dist/formatters/formatPin/inputFormatPin.test.js.map +1 -0
- package/dist/formatters/formatRomanNumeral/formatRomanNumeral.test.d.ts +1 -0
- package/dist/formatters/formatRomanNumeral/formatRomanNumeral.test.js +240 -0
- package/dist/formatters/formatRomanNumeral/formatRomanNumeral.test.js.map +1 -0
- package/dist/hooks/useDebounce/useDebounce.test.d.ts +1 -0
- package/dist/hooks/useDebounce/useDebounce.test.js +60 -0
- package/dist/hooks/useDebounce/useDebounce.test.js.map +1 -0
- package/dist/hooks/usePreviousValue/usePreviousValue.test.d.ts +1 -0
- package/dist/hooks/usePreviousValue/usePreviousValue.test.js +44 -0
- package/dist/hooks/usePreviousValue/usePreviousValue.test.js.map +1 -0
- package/dist/hooks/useToggle/useToggle.test.d.ts +1 -0
- package/dist/hooks/useToggle/useToggle.test.js +41 -0
- package/dist/hooks/useToggle/useToggle.test.js.map +1 -0
- package/dist/utils/arrayBufferToBase64/arrayBufferToBase64.test.d.ts +1 -0
- package/dist/utils/arrayBufferToBase64/arrayBufferToBase64.test.js +22 -0
- package/dist/utils/arrayBufferToBase64/arrayBufferToBase64.test.js.map +1 -0
- package/dist/utils/base64ToArrayBuffer/base64ToArrayBuffer.test.d.ts +1 -0
- package/dist/utils/base64ToArrayBuffer/base64ToArrayBuffer.test.js +21 -0
- package/dist/utils/base64ToArrayBuffer/base64ToArrayBuffer.test.js.map +1 -0
- package/dist/utils/birthNumber/getDateFromBirthNumber.test.d.ts +1 -0
- package/dist/utils/birthNumber/getDateFromBirthNumber.test.js +63 -0
- package/dist/utils/birthNumber/getDateFromBirthNumber.test.js.map +1 -0
- package/dist/utils/birthNumber/getGenderFromBirthNumber.test.d.ts +1 -0
- package/dist/utils/birthNumber/getGenderFromBirthNumber.test.js +47 -0
- package/dist/utils/birthNumber/getGenderFromBirthNumber.test.js.map +1 -0
- package/dist/utils/birthNumber/isBirthNumber.test.d.ts +1 -0
- package/dist/utils/birthNumber/isBirthNumber.test.js +36 -0
- package/dist/utils/birthNumber/isBirthNumber.test.js.map +1 -0
- package/dist/utils/birthNumber/utils/getBirthNumberMonth.test.d.ts +1 -0
- package/dist/utils/birthNumber/utils/getBirthNumberMonth.test.js +20 -0
- package/dist/utils/birthNumber/utils/getBirthNumberMonth.test.js.map +1 -0
- package/dist/utils/birthNumber/utils/getBirthNumberYear.test.d.ts +1 -0
- package/dist/utils/birthNumber/utils/getBirthNumberYear.test.js +17 -0
- package/dist/utils/birthNumber/utils/getBirthNumberYear.test.js.map +1 -0
- package/dist/utils/birthNumber/utils/getCleanedBirthNumber.test.d.ts +1 -0
- package/dist/utils/birthNumber/utils/getCleanedBirthNumber.test.js +29 -0
- package/dist/utils/birthNumber/utils/getCleanedBirthNumber.test.js.map +1 -0
- package/dist/utils/birthNumber/utils/isBirthNumberChecksumValid.test.d.ts +1 -0
- package/dist/utils/birthNumber/utils/isBirthNumberChecksumValid.test.js +23 -0
- package/dist/utils/birthNumber/utils/isBirthNumberChecksumValid.test.js.map +1 -0
- package/dist/utils/birthNumber/utils/isBirthNumberDateValid.test.d.ts +1 -0
- package/dist/utils/birthNumber/utils/isBirthNumberDateValid.test.js +17 -0
- package/dist/utils/birthNumber/utils/isBirthNumberDateValid.test.js.map +1 -0
- package/dist/utils/birthNumber/utils/isTenDigits.test.d.ts +1 -0
- package/dist/utils/birthNumber/utils/isTenDigits.test.js +20 -0
- package/dist/utils/birthNumber/utils/isTenDigits.test.js.map +1 -0
- package/dist/utils/blobToBase64/blobToBase64.test.d.ts +1 -0
- package/dist/utils/blobToBase64/blobToBase64.test.js +25 -0
- package/dist/utils/blobToBase64/blobToBase64.test.js.map +1 -0
- package/dist/utils/chunkArray/chunkArray.test.d.ts +1 -0
- package/dist/utils/chunkArray/chunkArray.test.js +34 -0
- package/dist/utils/chunkArray/chunkArray.test.js.map +1 -0
- package/dist/utils/cleanObject/cleanObject.test.d.ts +1 -0
- package/dist/utils/cleanObject/cleanObject.test.js +61 -0
- package/dist/utils/cleanObject/cleanObject.test.js.map +1 -0
- package/dist/utils/composeUrlRequestString/composeUrlRequestString.test.d.ts +1 -0
- package/dist/utils/composeUrlRequestString/composeUrlRequestString.test.js +17 -0
- package/dist/utils/composeUrlRequestString/composeUrlRequestString.test.js.map +1 -0
- package/dist/utils/downloadFile/downloadFile.test.d.ts +1 -0
- package/dist/utils/downloadFile/downloadFile.test.js +58 -0
- package/dist/utils/downloadFile/downloadFile.test.js.map +1 -0
- package/dist/utils/getDateObject/getDateObject.test.d.ts +1 -0
- package/dist/utils/getDateObject/getDateObject.test.js +30 -0
- package/dist/utils/getDateObject/getDateObject.test.js.map +1 -0
- package/dist/utils/getNumber/getNumber.test.d.ts +1 -0
- package/dist/utils/getNumber/getNumber.test.js +82 -0
- package/dist/utils/getNumber/getNumber.test.js.map +1 -0
- package/dist/utils/getNumberFloat/getNumberFloat.d.ts +2 -0
- package/dist/utils/getNumberFloat/getNumberFloat.js +7 -1
- package/dist/utils/getNumberFloat/getNumberFloat.js.map +1 -1
- package/dist/utils/getNumberFloat/getNumberFloat.test.d.ts +1 -0
- package/dist/utils/getNumberFloat/getNumberFloat.test.js +87 -0
- package/dist/utils/getNumberFloat/getNumberFloat.test.js.map +1 -0
- package/dist/utils/getNumberString/getNumberString.d.ts +4 -2
- package/dist/utils/getNumberString/getNumberString.js +6 -4
- package/dist/utils/getNumberString/getNumberString.js.map +1 -1
- package/dist/utils/getNumberString/getNumberString.test.d.ts +1 -0
- package/dist/utils/getNumberString/getNumberString.test.js +43 -0
- package/dist/utils/getNumberString/getNumberString.test.js.map +1 -0
- package/dist/utils/getObjectDiff/getObjectDiff.test.d.ts +1 -0
- package/dist/utils/getObjectDiff/getObjectDiff.test.js +58 -0
- package/dist/utils/getObjectDiff/getObjectDiff.test.js.map +1 -0
- package/dist/utils/getObjectValue/getObjectValue.d.ts +1 -1
- package/dist/utils/getObjectValue/getObjectValue.js +5 -1
- package/dist/utils/getObjectValue/getObjectValue.js.map +1 -1
- package/dist/utils/getObjectValue/getObjectValue.test.d.ts +1 -0
- package/dist/utils/getObjectValue/getObjectValue.test.js +32 -0
- package/dist/utils/getObjectValue/getObjectValue.test.js.map +1 -0
- package/dist/utils/getSafeMax/getSafeMax.test.d.ts +1 -0
- package/dist/utils/getSafeMax/getSafeMax.test.js +23 -0
- package/dist/utils/getSafeMax/getSafeMax.test.js.map +1 -0
- package/dist/utils/getSafeMin/getSafeMin.test.d.ts +1 -0
- package/dist/utils/getSafeMin/getSafeMin.test.js +29 -0
- package/dist/utils/getSafeMin/getSafeMin.test.js.map +1 -0
- package/dist/utils/groupBy/groupBy.test.d.ts +1 -0
- package/dist/utils/groupBy/groupBy.test.js +53 -0
- package/dist/utils/groupBy/groupBy.test.js.map +1 -0
- package/dist/utils/hasObjectProperty/hasObjectProperty.test.d.ts +1 -0
- package/dist/utils/hasObjectProperty/hasObjectProperty.test.js +34 -0
- package/dist/utils/hasObjectProperty/hasObjectProperty.test.js.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/joinBy/joinBy.test.d.ts +1 -0
- package/dist/utils/joinBy/joinBy.test.js +21 -0
- package/dist/utils/joinBy/joinBy.test.js.map +1 -0
- package/dist/utils/makeAbsolutePath/makeAbsolutePath.test.d.ts +1 -0
- package/dist/utils/makeAbsolutePath/makeAbsolutePath.test.js +25 -0
- package/dist/utils/makeAbsolutePath/makeAbsolutePath.test.js.map +1 -0
- package/dist/utils/mapObjectKeys/mapObjectKeys.test.d.ts +1 -0
- package/dist/utils/mapObjectKeys/mapObjectKeys.test.js +45 -0
- package/dist/utils/mapObjectKeys/mapObjectKeys.test.js.map +1 -0
- package/dist/utils/mergeDeep/mergeDeep.test.d.ts +1 -0
- package/dist/utils/mergeDeep/mergeDeep.test.js +37 -0
- package/dist/utils/mergeDeep/mergeDeep.test.js.map +1 -0
- package/dist/utils/openFile/openFile.test.d.ts +1 -0
- package/dist/utils/openFile/openFile.test.js +39 -0
- package/dist/utils/openFile/openFile.test.js.map +1 -0
- package/dist/utils/range/createRange.test.d.ts +1 -0
- package/dist/utils/range/createRange.test.js +20 -0
- package/dist/utils/range/createRange.test.js.map +1 -0
- package/dist/utils/range/isInRange.test.d.ts +1 -0
- package/dist/utils/range/isInRange.test.js +23 -0
- package/dist/utils/range/isInRange.test.js.map +1 -0
- package/dist/utils/range/unionRange.test.d.ts +1 -0
- package/dist/utils/range/unionRange.test.js +28 -0
- package/dist/utils/range/unionRange.test.js.map +1 -0
- package/dist/utils/removePrefixFromPhoneNumber/removePrefixFromPhoneNumber.test.d.ts +1 -0
- package/dist/utils/removePrefixFromPhoneNumber/removePrefixFromPhoneNumber.test.js +37 -0
- package/dist/utils/removePrefixFromPhoneNumber/removePrefixFromPhoneNumber.test.js.map +1 -0
- package/dist/utils/removeSpecialChars/removeSpecialChars.test.d.ts +1 -0
- package/dist/utils/removeSpecialChars/removeSpecialChars.test.js +29 -0
- package/dist/utils/removeSpecialChars/removeSpecialChars.test.js.map +1 -0
- package/dist/utils/removeWhitespaces/removeWhitespaces.test.d.ts +1 -0
- package/dist/utils/removeWhitespaces/removeWhitespaces.test.js +12 -0
- package/dist/utils/removeWhitespaces/removeWhitespaces.test.js.map +1 -0
- package/dist/utils/removeWhitespacesFromUnknown/removeWhitespacesFromUnknown.test.d.ts +1 -0
- package/dist/utils/removeWhitespacesFromUnknown/removeWhitespacesFromUnknown.test.js +20 -0
- package/dist/utils/removeWhitespacesFromUnknown/removeWhitespacesFromUnknown.test.js.map +1 -0
- package/dist/utils/scrollToBottom/scrollToBottom.d.ts +4 -0
- package/dist/utils/scrollToBottom/scrollToBottom.js +13 -0
- package/dist/utils/scrollToBottom/scrollToBottom.js.map +1 -0
- package/dist/utils/scrollToBottom/scrollToBottom.test.d.ts +1 -0
- package/dist/utils/scrollToBottom/scrollToBottom.test.js +13 -0
- package/dist/utils/scrollToBottom/scrollToBottom.test.js.map +1 -0
- package/dist/utils/scrollToTop/scrollToTop.js +3 -0
- package/dist/utils/scrollToTop/scrollToTop.js.map +1 -1
- package/dist/utils/scrollToTop/scrollToTop.test.d.ts +1 -0
- package/dist/utils/scrollToTop/scrollToTop.test.js +10 -0
- package/dist/utils/scrollToTop/scrollToTop.test.js.map +1 -0
- package/dist/utils/setObjectValue/setObjectValue.test.d.ts +1 -0
- package/dist/utils/setObjectValue/setObjectValue.test.js +50 -0
- package/dist/utils/setObjectValue/setObjectValue.test.js.map +1 -0
- package/dist/utils/xor/xor.test.d.ts +1 -0
- package/dist/utils/xor/xor.test.js +56 -0
- package/dist/utils/xor/xor.test.js.map +1 -0
- package/dist/utils/xorByKey/xorByKey.test.d.ts +1 -0
- package/dist/utils/xorByKey/xorByKey.test.js +61 -0
- package/dist/utils/xorByKey/xorByKey.test.js.map +1 -0
- package/dist/validators/isArrayBuffer/isArrayBuffer.test.d.ts +1 -0
- package/dist/validators/isArrayBuffer/isArrayBuffer.test.js +34 -0
- package/dist/validators/isArrayBuffer/isArrayBuffer.test.js.map +1 -0
- package/dist/validators/isBankAccount/isBankAccount.test.d.ts +1 -0
- package/dist/validators/isBankAccount/isBankAccount.test.js +40 -0
- package/dist/validators/isBankAccount/isBankAccount.test.js.map +1 -0
- package/dist/validators/isBlob/isBlob.test.d.ts +1 -0
- package/dist/validators/isBlob/isBlob.test.js +42 -0
- package/dist/validators/isBlob/isBlob.test.js.map +1 -0
- package/dist/validators/isBoolean/isBoolean.test.d.ts +1 -0
- package/dist/validators/isBoolean/isBoolean.test.js +26 -0
- package/dist/validators/isBoolean/isBoolean.test.js.map +1 -0
- package/dist/validators/isDIC/isDIC.test.d.ts +1 -0
- package/dist/validators/isDIC/isDIC.test.js +23 -0
- package/dist/validators/isDIC/isDIC.test.js.map +1 -0
- package/dist/validators/isEmail/isEmail.test.d.ts +1 -0
- package/dist/validators/isEmail/isEmail.test.js +26 -0
- package/dist/validators/isEmail/isEmail.test.js.map +1 -0
- package/dist/validators/isEmpty/isEmpty.test.d.ts +1 -0
- package/dist/validators/isEmpty/isEmpty.test.js +43 -0
- package/dist/validators/isEmpty/isEmpty.test.js.map +1 -0
- package/dist/validators/isEmptyString/isEmptyString.test.d.ts +1 -0
- package/dist/validators/isEmptyString/isEmptyString.test.js +29 -0
- package/dist/validators/isEmptyString/isEmptyString.test.js.map +1 -0
- package/dist/validators/isEqual/isEqual.test.d.ts +1 -0
- package/dist/validators/isEqual/isEqual.test.js +50 -0
- package/dist/validators/isEqual/isEqual.test.js.map +1 -0
- package/dist/validators/isFunction/isFunction.test.d.ts +1 -0
- package/dist/validators/isFunction/isFunction.test.js +47 -0
- package/dist/validators/isFunction/isFunction.test.js.map +1 -0
- package/dist/validators/isICO/isICO.test.d.ts +1 -0
- package/dist/validators/isICO/isICO.test.js +57 -0
- package/dist/validators/isICO/isICO.test.js.map +1 -0
- package/dist/validators/isModulo11/isModulo11.test.d.ts +1 -0
- package/dist/validators/isModulo11/isModulo11.test.js +20 -0
- package/dist/validators/isModulo11/isModulo11.test.js.map +1 -0
- package/dist/validators/isNaturalNumericString/isNaturalNumericString.test.d.ts +1 -0
- package/dist/validators/isNaturalNumericString/isNaturalNumericString.test.js +43 -0
- package/dist/validators/isNaturalNumericString/isNaturalNumericString.test.js.map +1 -0
- package/dist/validators/isNaturalNumericStringWithWhitespaces/isNaturalNumericStringWithWhitespaces.test.d.ts +1 -0
- package/dist/validators/isNaturalNumericStringWithWhitespaces/isNaturalNumericStringWithWhitespaces.test.js +30 -0
- package/dist/validators/isNaturalNumericStringWithWhitespaces/isNaturalNumericStringWithWhitespaces.test.js.map +1 -0
- package/dist/validators/isNull/isNull.test.d.ts +1 -0
- package/dist/validators/isNull/isNull.test.js +27 -0
- package/dist/validators/isNull/isNull.test.js.map +1 -0
- package/dist/validators/isNullOrUndefined/isNullOrUndefined.test.d.ts +1 -0
- package/dist/validators/isNullOrUndefined/isNullOrUndefined.test.js +27 -0
- package/dist/validators/isNullOrUndefined/isNullOrUndefined.test.js.map +1 -0
- package/dist/validators/isNumber/isNumber.test.d.ts +1 -0
- package/dist/validators/isNumber/isNumber.test.js +28 -0
- package/dist/validators/isNumber/isNumber.test.js.map +1 -0
- package/dist/validators/isNumberOrString/isNumberOrString.test.d.ts +1 -0
- package/dist/validators/isNumberOrString/isNumberOrString.test.js +29 -0
- package/dist/validators/isNumberOrString/isNumberOrString.test.js.map +1 -0
- package/dist/validators/isNumericString/isNumericString.js +2 -2
- package/dist/validators/isNumericString/isNumericString.js.map +1 -1
- package/dist/validators/isNumericString/isNumericString.test.d.ts +1 -0
- package/dist/validators/isNumericString/isNumericString.test.js +45 -0
- package/dist/validators/isNumericString/isNumericString.test.js.map +1 -0
- package/dist/validators/isObject/isObject.test.d.ts +1 -0
- package/dist/validators/isObject/isObject.test.js +31 -0
- package/dist/validators/isObject/isObject.test.js.map +1 -0
- package/dist/validators/isString/isString.test.d.ts +1 -0
- package/dist/validators/isString/isString.test.js +26 -0
- package/dist/validators/isString/isString.test.js.map +1 -0
- package/dist/validators/isUndefined/isUndefined.test.d.ts +1 -0
- package/dist/validators/isUndefined/isUndefined.test.js +27 -0
- package/dist/validators/isUndefined/isUndefined.test.js.map +1 -0
- package/dist/validators/isValidCzechPhoneNumber/isValidCzechPhoneNumber.test.d.ts +1 -0
- package/dist/validators/isValidCzechPhoneNumber/isValidCzechPhoneNumber.test.js +37 -0
- package/dist/validators/isValidCzechPhoneNumber/isValidCzechPhoneNumber.test.js.map +1 -0
- package/dist/validators/isValidDate/isValidDate.test.d.ts +1 -0
- package/dist/validators/isValidDate/isValidDate.test.js +33 -0
- package/dist/validators/isValidDate/isValidDate.test.js.map +1 -0
- package/dist/validators/isValidDrivingLicense/isValidDrivingLicense.test.d.ts +1 -0
- package/dist/validators/isValidDrivingLicense/isValidDrivingLicense.test.js +25 -0
- package/dist/validators/isValidDrivingLicense/isValidDrivingLicense.test.js.map +1 -0
- package/dist/validators/isValidForeignPhoneNumber/isValidForeignPhoneNumber.test.d.ts +1 -0
- package/dist/validators/isValidForeignPhoneNumber/isValidForeignPhoneNumber.test.js +49 -0
- package/dist/validators/isValidForeignPhoneNumber/isValidForeignPhoneNumber.test.js.map +1 -0
- package/dist/validators/isValidIdentityCard/isValidIdentityCard.test.d.ts +1 -0
- package/dist/validators/isValidIdentityCard/isValidIdentityCard.test.js +37 -0
- package/dist/validators/isValidIdentityCard/isValidIdentityCard.test.js.map +1 -0
- package/dist/validators/isValidPassport/isValidPassport.test.d.ts +1 -0
- package/dist/validators/isValidPassport/isValidPassport.test.js +36 -0
- package/dist/validators/isValidPassport/isValidPassport.test.js.map +1 -0
- package/dist/validators/isValidVehicleIdentification/isValidVehicleIdentification.test.d.ts +1 -0
- package/dist/validators/isValidVehicleIdentification/isValidVehicleIdentification.test.js +33 -0
- package/dist/validators/isValidVehicleIdentification/isValidVehicleIdentification.test.js.map +1 -0
- package/dist/validators/isZipCode/isZipCode.test.d.ts +1 -0
- package/dist/validators/isZipCode/isZipCode.test.js +28 -0
- package/dist/validators/isZipCode/isZipCode.test.js.map +1 -0
- package/package.json +19 -17
package/README.md
CHANGED
|
@@ -2,18 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
MMB shared libraries for React and TypeScript projects. This package provides a collection of reusable utilities, formatters, hooks, and validators to streamline development across multiple projects.
|
|
4
4
|
|
|
5
|
-
## Features
|
|
6
|
-
|
|
7
|
-
- **Formatters**: Bank account, phone number, ZIP code, and more.
|
|
8
|
-
- **Hooks**: Useful React hooks (e.g., `useToggle`).
|
|
9
|
-
- **Utils**: General utilities for strings, numbers, files, etc.
|
|
10
|
-
- **Validators**: Type and value validators (e.g., email, numeric, DIC, ICO).
|
|
11
|
-
|
|
12
5
|
## Installation
|
|
13
6
|
|
|
14
7
|
```bash
|
|
15
8
|
yarn add @mmb-digital/shared-libs-auto
|
|
16
|
-
|
|
9
|
+
```
|
|
10
|
+
or
|
|
11
|
+
```bash
|
|
17
12
|
npm install @mmb-digital/shared-libs-auto
|
|
18
13
|
```
|
|
19
14
|
|
|
@@ -30,6 +25,160 @@ import { isEmail, removeWhitespaces, useToggle } from '@mmb-digital/shared-libs-
|
|
|
30
25
|
- Fully typed with TypeScript.
|
|
31
26
|
- Type definitions are included in the package.
|
|
32
27
|
|
|
28
|
+
## Features
|
|
29
|
+
|
|
30
|
+
### Formaters
|
|
31
|
+
|
|
32
|
+
#### Bank Account
|
|
33
|
+
- **`formatBankAccount(value: string): string`** - Formats bank account number to standard format (prefix-account/bankCode).
|
|
34
|
+
- **`inputFormatBankAccount(value: string): string`** - Formats bank account number to standard format (prefix-account/bankCode) for input fields.
|
|
35
|
+
|
|
36
|
+
#### Bytes
|
|
37
|
+
- **`formatBytes(bytes: number, decimals?: number): string`** - Converts number of bytes to human-readable format (KB, MB, GB, etc.).
|
|
38
|
+
|
|
39
|
+
#### Phone Number
|
|
40
|
+
- **`formatCZSKPhoneNumber(value: string): string`** - Formats phone number for CZ/SK to standard format (+420 xxx xxx xxx).
|
|
41
|
+
- **`inputFormatCZSKPhoneNumber(value: string): string`** - Formats phone number input in real-time while typing.
|
|
42
|
+
|
|
43
|
+
#### ZIP Code
|
|
44
|
+
- **`formatCzZipCode(value: string): string`** - Formats Czech ZIP code to format xxx xx.
|
|
45
|
+
- **`inputFormatCzZipCode(value: string): string`** - Formats ZIP code input in real-time while typing.
|
|
46
|
+
|
|
47
|
+
#### Date & Time
|
|
48
|
+
- **`formatDate(date: Date | string, format?: string): string`** - Formats date to the desired format.
|
|
49
|
+
- **`formatDateTime(date: Date | string, format?: string): string`** - Formats date and time to the desired format.
|
|
50
|
+
|
|
51
|
+
#### ICO
|
|
52
|
+
- **`formatICO(value: string): string`** - Formats ICO (company identification number) to standard format.
|
|
53
|
+
- **`inputFormatICO(value: string): string`** - Formats ICO input in real-time while typing.
|
|
54
|
+
|
|
55
|
+
#### Numbers
|
|
56
|
+
- **`formatNumber(value: number, options?: FormatOptions): string`** - Formats number with options for separators, decimal places, and currency.
|
|
57
|
+
- **`formatPercent(value: number, decimals?: number): string`** - Formats number as percentage.
|
|
58
|
+
- **`inputFormatNumber(value: string): string`** - Formats number input in real-time while typing.
|
|
59
|
+
- **`inputFormatFloat(value: string): string`** - Formats decimal number input in real-time while typing.
|
|
60
|
+
|
|
61
|
+
#### PIN
|
|
62
|
+
- **`formatPin(value: string): string`** - Formats PIN/birth number to standard format.
|
|
63
|
+
- **`inputFormatPin(value: string): string`** - Formats PIN input in real-time while typing.
|
|
64
|
+
|
|
65
|
+
#### Roman Numerals
|
|
66
|
+
- **`formatRomanNumeral(value: number): string`** - Converts Arabic number to Roman numerals.
|
|
67
|
+
|
|
68
|
+
### Hooks
|
|
69
|
+
|
|
70
|
+
#### useDebounce
|
|
71
|
+
- **`useDebounce<T>(value: T, delay: number): T`** - Returns a debounced value that only updates after the specified delay has passed since the last change. Useful for optimizing search inputs and API calls.
|
|
72
|
+
|
|
73
|
+
#### usePreviousValue
|
|
74
|
+
- **`usePreviousValue<T>(value: T): T | undefined`** - Returns the previous value of a state or prop. Useful for comparing current and previous values in effects.
|
|
75
|
+
|
|
76
|
+
#### useToggle
|
|
77
|
+
- **`useToggle(initialValue?: boolean): [boolean, () => void]`** - Returns a boolean state and a function to toggle it. Useful for managing modal visibility, menu states, etc.
|
|
78
|
+
|
|
79
|
+
### Utils
|
|
80
|
+
|
|
81
|
+
#### Array Operations
|
|
82
|
+
- **`chunkArray<T>(array: T[], size: number): T[][]`** - Splits an array into chunks of specified size.
|
|
83
|
+
- **`groupBy<T>(array: T[], key: keyof T): Record<string, T[]>`** - Groups array elements by a specified key.
|
|
84
|
+
- **`joinBy<T>(array: T[], separator: string, key: keyof T): string`** - Joins array elements by a key with a separator.
|
|
85
|
+
- **`xor<T>(array1: T[], array2: T[]): T[]`** - Returns symmetric difference between two arrays (elements that exist in only one array).
|
|
86
|
+
- **`xorByKey<T>(array1: T[], array2: T[], key: keyof T): T[]`** - Returns symmetric difference between two arrays based on a key property.
|
|
87
|
+
|
|
88
|
+
#### Birth Number (Czech)
|
|
89
|
+
- **`isBirthNumber(value: string): boolean`** - Validates if a string is a valid Czech birth number (rodné číslo).
|
|
90
|
+
- **`getDateFromBirthNumber(value: string): Date | null`** - Extracts date of birth from a birth number.
|
|
91
|
+
- **`getGenderFromBirthNumber(value: string): Gender | null`** - Determines gender from a birth number ('male' | 'female').
|
|
92
|
+
|
|
93
|
+
#### File Operations
|
|
94
|
+
- **`arrayBufferToBase64(buffer: ArrayBuffer): string`** - Converts ArrayBuffer to Base64 string.
|
|
95
|
+
- **`base64ToArrayBuffer(base64: string): ArrayBuffer`** - Converts Base64 string to ArrayBuffer.
|
|
96
|
+
- **`blobToBase64(blob: Blob): Promise<string>`** - Converts Blob to Base64 string.
|
|
97
|
+
- **`downloadFile(data: Blob | string, filename: string, mimeType?: string): void`** - Triggers file download in the browser.
|
|
98
|
+
- **`openFile(accept?: string, multiple?: boolean): Promise<FileList>`** - Opens file picker dialog and returns selected files.
|
|
99
|
+
|
|
100
|
+
#### Number Operations
|
|
101
|
+
- **`getNumber(value: unknown): number`** - Safely converts value to number, returns default value (null) if conversion fails.
|
|
102
|
+
- **`getNumberFloat(value: unknown): number`** - Safely converts value to float number, returns default value (null) if conversion fails.
|
|
103
|
+
- **`getNumberString(value: unknown): string`** - Converts value to numeric string, removes non-numeric characters.
|
|
104
|
+
- **`getSafeMax(...values: number[]): number`** - Returns maximum value, handles NaN and Infinity safely.
|
|
105
|
+
- **`getSafeMin(...values: number[]): number`** - Returns minimum value, handles NaN and Infinity safely.
|
|
106
|
+
|
|
107
|
+
#### Object Operations
|
|
108
|
+
- **`cleanObject<T extends object>(obj: T): Partial<T>`** - Removes undefined and null values from an object.
|
|
109
|
+
- **`getObjectDiff<T extends object>(obj1: T, obj2: T): Partial<T>`** - Returns differences between two objects.
|
|
110
|
+
- **`getObjectValue<T>(obj: object, path: string): T | undefined`** - Gets nested object value by path string (e.g., 'user.address.city').
|
|
111
|
+
- **`setObjectValue<T>(obj: object, path: string, value: T): void`** - Sets nested object value by path string.
|
|
112
|
+
- **`hasObjectProperty<T extends object>(obj: T, key: PropertyKey): boolean`** - Type-safe check if object has a property.
|
|
113
|
+
- **`mapObjectKeys<T extends object>(obj: T, mapper: (key: string) => string): object`** - Maps object keys using a transformation function.
|
|
114
|
+
- **`mergeDeep<T>(...objects: Partial<T>[]): T`** - Deep merges multiple objects.
|
|
115
|
+
|
|
116
|
+
#### Phone Number
|
|
117
|
+
- **`removePrefixFromPhoneNumber(value: string): string`** - Removes country prefix from phone number (+420, +421).
|
|
118
|
+
|
|
119
|
+
#### Range Operations
|
|
120
|
+
- **`createRange(start: number, end: number): Range`** - Creates a range object with start and end values.
|
|
121
|
+
- **`isInRange(value: number, range: Range): boolean`** - Checks if a value is within a range.
|
|
122
|
+
- **`unionRange(...ranges: Range[]): Range[]`** - Merges overlapping ranges into minimal set of ranges.
|
|
123
|
+
|
|
124
|
+
#### String Operations
|
|
125
|
+
- **`removeSpecialChars(value: string): string`** - Removes special characters from string, keeps only alphanumeric.
|
|
126
|
+
- **`removeWhitespaces(value: string): string`** - Removes all whitespace characters from string.
|
|
127
|
+
- **`removeWhitespacesFromUnknown(value: unknown): string`** - Safely removes whitespaces from unknown value type.
|
|
128
|
+
|
|
129
|
+
#### URL & Path
|
|
130
|
+
- **`composeUrlRequestString(baseUrl: string, params: object): string`** - Composes URL with query parameters.
|
|
131
|
+
- **`makeAbsolutePath(path: string, baseUrl?: string): string`** - Converts relative path to absolute URL.
|
|
132
|
+
|
|
133
|
+
#### Browser Operations
|
|
134
|
+
- **`scrollToBottom(): void`** - Scrolls page to bottom, optionally with smooth animation.
|
|
135
|
+
- **`scrollToTop(): void`** - Scrolls page to top, optionally with smooth animation.
|
|
136
|
+
- **`getDateObject(date: Date | string): Date`** - Safely converts date string or Date object to Date instance.
|
|
137
|
+
|
|
138
|
+
### Validators
|
|
139
|
+
|
|
140
|
+
#### Type Validators
|
|
141
|
+
- **`isArrayBuffer(value: unknown): boolean`** - Checks if a value is an ArrayBuffer.
|
|
142
|
+
- **`isBlob(value: unknown): boolean`** - Checks if a value is a Blob.
|
|
143
|
+
- **`isBoolean(value: unknown): boolean`** - Checks if a value is a boolean.
|
|
144
|
+
- **`isFunction(value: unknown): boolean`** - Checks if a value is a function.
|
|
145
|
+
- **`isNull(value: unknown): boolean`** - Checks if a value is null.
|
|
146
|
+
- **`isNullOrUndefined(value: unknown): boolean`** - Checks if a value is null or undefined.
|
|
147
|
+
- **`isNumber(value: unknown): boolean`** - Checks if a value is a number.
|
|
148
|
+
- **`isNumberOrString(value: unknown): boolean`** - Checks if a value is a number or string.
|
|
149
|
+
- **`isObject(value: unknown): boolean`** - Checks if a value is an object (excluding null and arrays).
|
|
150
|
+
- **`isString(value: unknown): boolean`** - Checks if a value is a string.
|
|
151
|
+
- **`isUndefined(value: unknown): boolean`** - Checks if a value is undefined.
|
|
152
|
+
|
|
153
|
+
#### Value Validators
|
|
154
|
+
- **`isEmpty(value: unknown): boolean`** - Checks if a value is empty (null, undefined, empty string, empty array, or empty object).
|
|
155
|
+
- **`isEmptyString(value: unknown): boolean`** - Checks if a value is an empty string or contains only whitespace.
|
|
156
|
+
- **`isEqual(value1: unknown, value2: unknown): boolean`** - Deep equality comparison between two values.
|
|
157
|
+
- **`isValidDate(value: unknown): boolean`** - Checks if a value is a valid Date object or date string.
|
|
158
|
+
|
|
159
|
+
#### String Format Validators
|
|
160
|
+
- **`isEmail(value: string): boolean`** - Validates if a string is a valid email address.
|
|
161
|
+
- **`isNaturalNumericString(value: string): boolean`** - Checks if a string contains only numeric characters (0-9).
|
|
162
|
+
- **`isNaturalNumericStringWithWhitespaces(value: string): boolean`** - Checks if a string contains only numeric characters and whitespaces.
|
|
163
|
+
- **`isNumericString(value: string): boolean`** - Checks if a string can be converted to a valid number.
|
|
164
|
+
|
|
165
|
+
#### Czech/Slovak Specific Validators
|
|
166
|
+
- **`isBankAccount(value: string): boolean`** - Validates Czech/Slovak bank account number format.
|
|
167
|
+
- **`isDIC(value: string): boolean`** - Validates Czech/Slovak VAT identification number (DIČ).
|
|
168
|
+
- **`isICO(value: string): boolean`** - Validates Czech/Slovak company identification number (IČO).
|
|
169
|
+
- **`isModulo11(value: string): boolean`** - Validates if a number passes the modulo 11 check (used for Czech IDs).
|
|
170
|
+
- **`isZipCode(value: string): boolean`** - Validates Czech ZIP code format (XXXXX or XXX XX).
|
|
171
|
+
|
|
172
|
+
#### Phone Number Validators
|
|
173
|
+
- **`isValidCzechPhoneNumber(value: string): boolean`** - Validates Czech phone number format (+420 or without prefix).
|
|
174
|
+
- **`isValidForeignPhoneNumber(value: string): boolean`** - Validates international phone number format with country prefix.
|
|
175
|
+
|
|
176
|
+
#### Document Validators
|
|
177
|
+
- **`isValidDrivingLicense(value: string): boolean`** - Validates Czech driving license number format.
|
|
178
|
+
- **`isValidIdentityCard(value: string): boolean`** - Validates Czech identity card number format.
|
|
179
|
+
- **`isValidPassport(value: string): boolean`** - Validates Czech passport number format.
|
|
180
|
+
- **`isValidVehicleIdentification(value: string): boolean`** - Validates vehicle identification number (VIN) format.
|
|
181
|
+
|
|
33
182
|
## License
|
|
34
183
|
|
|
35
184
|
UNLICENSED
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { describe, expect, test } from 'vitest';
|
|
2
|
+
import { EMPTY_VALUE_PLACEHOLDER } from '../const.js';
|
|
3
|
+
import { formatBankAccount } from './formatBankAccount.js';
|
|
4
|
+
describe('formatBankAccount', () => {
|
|
5
|
+
test('should format account with prefix', () => {
|
|
6
|
+
expect(formatBankAccount({
|
|
7
|
+
prefix: '19',
|
|
8
|
+
number: '123456789',
|
|
9
|
+
bankCode: '0100'
|
|
10
|
+
})).toBe('19-123456789/0100');
|
|
11
|
+
});
|
|
12
|
+
test('should format account without prefix', () => {
|
|
13
|
+
expect(formatBankAccount({ number: '123456789', bankCode: '0100' })).toBe('123456789/0100');
|
|
14
|
+
});
|
|
15
|
+
test('should ignore null or empty prefix', () => {
|
|
16
|
+
expect(formatBankAccount({
|
|
17
|
+
prefix: null,
|
|
18
|
+
number: '123456789',
|
|
19
|
+
bankCode: '0100'
|
|
20
|
+
})).toBe('123456789/0100');
|
|
21
|
+
expect(formatBankAccount({ prefix: '', number: '123456789', bankCode: '0100' })).toBe('123456789/0100');
|
|
22
|
+
});
|
|
23
|
+
test('should trim number and bankCode', () => {
|
|
24
|
+
expect(formatBankAccount({
|
|
25
|
+
prefix: '19',
|
|
26
|
+
number: ' 123456789 ',
|
|
27
|
+
bankCode: ' 0100 '
|
|
28
|
+
})).toBe('19-123456789/0100');
|
|
29
|
+
});
|
|
30
|
+
test('should return fallback for null or undefined', () => {
|
|
31
|
+
expect(formatBankAccount(null)).toBe(EMPTY_VALUE_PLACEHOLDER);
|
|
32
|
+
expect(formatBankAccount(undefined)).toBe(EMPTY_VALUE_PLACEHOLDER);
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=formatBankAccount.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatBankAccount.test.js","sourceRoot":"","sources":["../../../src/formatters/formatBankAccount/formatBankAccount.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE1D,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,IAAI,CAAC,mCAAmC,EAAE,GAAG,EAAE;QAC7C,MAAM,CACJ,iBAAiB,CAAC;YAChB,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,WAAW;YACnB,QAAQ,EAAE,MAAM;SACjB,CAAC,CACH,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAA;IAC7B,CAAC,CAAC,CAAA;IAEF,IAAI,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LDER } from '../const.js';
|
|
3
|
+
import { inputFormatBankAccount } from './inputFormatBankAccount.js';
|
|
4
|
+
describe('inputFormatBankAccount', () => {
|
|
5
|
+
test('should format account with prefix', () => {
|
|
6
|
+
expect(inputFormatBankAccount({
|
|
7
|
+
prefix: '19',
|
|
8
|
+
number: '123456789',
|
|
9
|
+
bankCode: '0100'
|
|
10
|
+
})).toBe('19-123456789/0100');
|
|
11
|
+
});
|
|
12
|
+
test('should format account without prefix', () => {
|
|
13
|
+
expect(inputFormatBankAccount({ number: '123456789', bankCode: '0100' })).toBe('123456789/0100');
|
|
14
|
+
});
|
|
15
|
+
test('should ignore null or empty prefix', () => {
|
|
16
|
+
expect(inputFormatBankAccount({
|
|
17
|
+
prefix: null,
|
|
18
|
+
number: '123456789',
|
|
19
|
+
bankCode: '0100'
|
|
20
|
+
})).toBe('123456789/0100');
|
|
21
|
+
expect(inputFormatBankAccount({ prefix: '', number: '123456789', bankCode: '0100' })).toBe('123456789/0100');
|
|
22
|
+
});
|
|
23
|
+
test('should trim number and bankCode', () => {
|
|
24
|
+
expect(inputFormatBankAccount({
|
|
25
|
+
prefix: '19',
|
|
26
|
+
number: ' 123456789 ',
|
|
27
|
+
bankCode: ' 0100 '
|
|
28
|
+
})).toBe('19-123456789/0100');
|
|
29
|
+
});
|
|
30
|
+
test('should return fallback for null or undefined', () => {
|
|
31
|
+
expect(inputFormatBankAccount(null)).toBe(EMPTY_INPUT_PLACEHOLDER);
|
|
32
|
+
expect(inputFormatBankAccount(undefined)).toBe(EMPTY_INPUT_PLACEHOLDER);
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=inputFormatBankAccount.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputFormatBankAccount.test.js","sourceRoot":"","sources":["../../../src/formatters/formatBankAccount/inputFormatBankAccount.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EA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,CAAA;IAEF,IAAI,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACxD,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAA;QAClE,MAAM,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAA;IACzE,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const innerFormatBankAccount = (value) => {
|
|
5
5
|
const { prefix, number, bankCode } = value;
|
|
6
|
-
const accountNumber = [
|
|
6
|
+
const accountNumber = [number.trim(), bankCode.trim()].join('/');
|
|
7
7
|
return [prefix, accountNumber].filter(Boolean).join('-');
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=innerFormatBankAccount.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"innerFormatBankAccount.js","sourceRoot":"","sources":["../../../../src/formatters/formatBankAccount/utils/innerFormatBankAccount.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAAkB,EAAU,EAAE;IACnE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAA;IAC1C,MAAM,aAAa,GAAG,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"innerFormatBankAccount.js","sourceRoot":"","sources":["../../../../src/formatters/formatBankAccount/utils/innerFormatBankAccount.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAAkB,EAAU,EAAE;IACnE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAA;IAC1C,MAAM,aAAa,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAChE,OAAO,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAC1D,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { EMPTY_VALUE_PLACEHOLDER } from '../const.js';
|
|
3
|
+
import { formatBytes } from './formatBytes.js';
|
|
4
|
+
describe('formatBytes', () => {
|
|
5
|
+
it('should format 0 bytes as "0 Bytes"', () => {
|
|
6
|
+
expect(formatBytes(0)).toBe('0 Bytes');
|
|
7
|
+
});
|
|
8
|
+
it('should format bytes less than 1 kB', () => {
|
|
9
|
+
expect(formatBytes(512)).toBe('512 Bytes');
|
|
10
|
+
});
|
|
11
|
+
it('should format 1 kB', () => {
|
|
12
|
+
expect(formatBytes(1024)).toBe('1 kB');
|
|
13
|
+
});
|
|
14
|
+
it('should format 1 MB', () => {
|
|
15
|
+
expect(formatBytes(1024 * 1024)).toBe('1 MB');
|
|
16
|
+
});
|
|
17
|
+
it('should format with decimals', () => {
|
|
18
|
+
expect(formatBytes(1536, 1)).toBe('1.5 kB');
|
|
19
|
+
expect(formatBytes(1048576 + 524288, 2)).toBe('1.5 MB');
|
|
20
|
+
});
|
|
21
|
+
it('should handle negative decimals as 0', () => {
|
|
22
|
+
expect(formatBytes(1536, -1)).toBe('2 kB');
|
|
23
|
+
});
|
|
24
|
+
it('should format large numbers', () => {
|
|
25
|
+
expect(formatBytes(1024 ** 4)).toBe('1 TB');
|
|
26
|
+
});
|
|
27
|
+
it('should return fallback for null or undefined', () => {
|
|
28
|
+
expect(formatBytes(null)).toBe(EMPTY_VALUE_PLACEHOLDER);
|
|
29
|
+
expect(formatBytes(undefined)).toBe(EMPTY_VALUE_PLACEHOLDER);
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=formatBytes.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatBytes.test.js","sourceRoot":"","sources":["../../../src/formatters/formatBytes/formatBytes.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;QAC5C,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACxC,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;QAC5C,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;IAC5C,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,oBAAoB,EAAE,GAAG,EAAE;QAC5B,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACxC,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,oBAAoB,EAAE,GAAG,EAAE;QAC5B,MAAM,CAAC,WAAW,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAC/C,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,6BAA6B,EAAE,GAAG,EAAE;QACrC,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QAC3C,MAAM,CAAC,WAAW,CAAC,OAAO,GAAG,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IACzD,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,sCAAsC,EAAE,GAAG,EAAE;QAC9C,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAC5C,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,6BAA6B,EAAE,GAAG,EAAE;QACrC,MAAM,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAC7C,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACtD,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAA;QACvD,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAA;IAC9D,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { describe, expect, test } from 'vitest';
|
|
2
|
+
import { EMPTY_VALUE_PLACEHOLDER } from '../const.js';
|
|
3
|
+
import { formatCZSKPhoneNumber } from './formatCZSKPhoneNumber.js';
|
|
4
|
+
describe('formatCZSKPhoneNumber', () => {
|
|
5
|
+
test('should format Czech phone numbers correctly', () => {
|
|
6
|
+
expect(formatCZSKPhoneNumber('+420123456789')).toBe('+420 123 456 789');
|
|
7
|
+
expect(formatCZSKPhoneNumber('+420987654321')).toBe('+420 987 654 321');
|
|
8
|
+
});
|
|
9
|
+
test('should format Slovak phone numbers correctly', () => {
|
|
10
|
+
expect(formatCZSKPhoneNumber('+421123456789')).toBe('+421 123 456 789');
|
|
11
|
+
expect(formatCZSKPhoneNumber('+421987654321')).toBe('+421 987 654 321');
|
|
12
|
+
});
|
|
13
|
+
test('should return original value for invalid phone numbers', () => {
|
|
14
|
+
expect(formatCZSKPhoneNumber('+420 1 2 3 4 5 6 7 8 9')).toBe('+420 1 2 3 4 5 6 7 8 9');
|
|
15
|
+
expect(formatCZSKPhoneNumber('+4209876543')).toBe('+4209876543');
|
|
16
|
+
expect(formatCZSKPhoneNumber('123456789')).toBe('123456789');
|
|
17
|
+
expect(formatCZSKPhoneNumber('+422123456789')).toBe('+422123456789');
|
|
18
|
+
expect(formatCZSKPhoneNumber('')).toBe(EMPTY_VALUE_PLACEHOLDER);
|
|
19
|
+
expect(formatCZSKPhoneNumber(undefined)).toBe(EMPTY_VALUE_PLACEHOLDER);
|
|
20
|
+
expect(formatCZSKPhoneNumber(null)).toBe(EMPTY_VALUE_PLACEHOLDER);
|
|
21
|
+
});
|
|
22
|
+
test('should return original value if phone part is missing', () => {
|
|
23
|
+
expect(formatCZSKPhoneNumber('+420')).toBe('+420');
|
|
24
|
+
expect(formatCZSKPhoneNumber('+421')).toBe('+421');
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=formatCZSKPhoneNumber.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatCZSKPhoneNumber.test.js","sourceRoot":"","sources":["../../../src/formatters/formatCZSKPhoneNumber/formatCZSKPhoneNumber.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAElE,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,IAAI,CAAC,6CAA6C,EAAE,GAAG,EAAE;QACvD,MAAM,CAAC,qBAAqB,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAA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,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACpD,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { describe, expect, test } from 'vitest';
|
|
2
|
+
import { EMPTY_INPUT_PLACEHOLDER } from '../const.js';
|
|
3
|
+
import { inputFormatCZSKPhoneNumber } from './inputFormatCZSKPhoneNumber.js';
|
|
4
|
+
describe('inputFormatCZSKPhoneNumber', () => {
|
|
5
|
+
test('should format Czech phone numbers correctly', () => {
|
|
6
|
+
expect(inputFormatCZSKPhoneNumber('+420123456789')).toBe('+420 123 456 789');
|
|
7
|
+
expect(inputFormatCZSKPhoneNumber('+420987654321')).toBe('+420 987 654 321');
|
|
8
|
+
});
|
|
9
|
+
test('should format Slovak phone numbers correctly', () => {
|
|
10
|
+
expect(inputFormatCZSKPhoneNumber('+421123456789')).toBe('+421 123 456 789');
|
|
11
|
+
expect(inputFormatCZSKPhoneNumber('+421987654321')).toBe('+421 987 654 321');
|
|
12
|
+
});
|
|
13
|
+
test('should return original value for invalid phone numbers', () => {
|
|
14
|
+
expect(inputFormatCZSKPhoneNumber('+420 1 2 3 4 5 6 7 8 9')).toBe('+420 1 2 3 4 5 6 7 8 9');
|
|
15
|
+
expect(inputFormatCZSKPhoneNumber('+4209876543')).toBe('+4209876543');
|
|
16
|
+
expect(inputFormatCZSKPhoneNumber('123456789')).toBe('123456789');
|
|
17
|
+
expect(inputFormatCZSKPhoneNumber('+422123456789')).toBe('+422123456789');
|
|
18
|
+
expect(inputFormatCZSKPhoneNumber('')).toBe(EMPTY_INPUT_PLACEHOLDER);
|
|
19
|
+
expect(inputFormatCZSKPhoneNumber(undefined)).toBe(EMPTY_INPUT_PLACEHOLDER);
|
|
20
|
+
expect(inputFormatCZSKPhoneNumber(null)).toBe(EMPTY_INPUT_PLACEHOLDER);
|
|
21
|
+
});
|
|
22
|
+
test('should return original value if phone part is missing', () => {
|
|
23
|
+
expect(inputFormatCZSKPhoneNumber('+420')).toBe('+420');
|
|
24
|
+
expect(inputFormatCZSKPhoneNumber('+421')).toBe('+421');
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=inputFormatCZSKPhoneNumber.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputFormatCZSKPhoneNumber.test.js","sourceRoot":"","sources":["../../../src/formatters/formatCZSKPhoneNumber/inputFormatCZSKPhoneNumber.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAA;AAE5E,QAAQ,CAAC,4BAA4B,EAAE,GAAG,EAAE;IAC1C,IAAI,CAAC,6CAA6C,EAAE,GAAG,EAAE;QACvD,MAAM,CAAC,0BAA0B,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;QAC5E,MAAM,CAAC,0BAA0B,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;IAC9E,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACxD,MAAM,CAAC,0BAA0B,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;QAC5E,MAAM,CAAC,0BAA0B,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;IAC9E,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,wDAAwD,EAAE,GAAG,EAAE;QAClE,MAAM,CAAC,0BAA0B,CAAC,wBAAwB,CAAC,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAA;QAC3F,MAAM,CAAC,0BAA0B,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;QACrE,MAAM,CAAC,0BAA0B,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;QACjE,MAAM,CAAC,0BAA0B,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;QACzE,MAAM,CAAC,0BAA0B,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAA;QACpE,MAAM,CAAC,0BAA0B,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAA;QAC3E,MAAM,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAA;IACxE,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,uDAAuD,EAAE,GAAG,EAAE;QACjE,MAAM,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACvD,MAAM,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACzD,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { describe, expect, test } from 'vitest';
|
|
2
|
+
import { EMPTY_VALUE_PLACEHOLDER } from '../const.js';
|
|
3
|
+
import { formatCzZipCode } from './formatCzZipCode.js';
|
|
4
|
+
describe('formatCzZipCode', () => {
|
|
5
|
+
test('should format valid Czech zip codes', () => {
|
|
6
|
+
expect(formatCzZipCode('12345')).toBe('123 45');
|
|
7
|
+
expect(formatCzZipCode('10000')).toBe('100 00');
|
|
8
|
+
expect(formatCzZipCode('78901')).toBe('789 01');
|
|
9
|
+
});
|
|
10
|
+
test('should handle zip codes with extra spaces', () => {
|
|
11
|
+
expect(formatCzZipCode(' 12345 ')).toBe(' 123 45 ');
|
|
12
|
+
});
|
|
13
|
+
test('should return empty string for null or undefined', () => {
|
|
14
|
+
expect(formatCzZipCode('')).toBe(EMPTY_VALUE_PLACEHOLDER);
|
|
15
|
+
expect(formatCzZipCode(null)).toBe(EMPTY_VALUE_PLACEHOLDER);
|
|
16
|
+
expect(formatCzZipCode(undefined)).toBe(EMPTY_VALUE_PLACEHOLDER);
|
|
17
|
+
});
|
|
18
|
+
test('should not change already formatted zip codes', () => {
|
|
19
|
+
expect(formatCzZipCode('123 45')).toBe('123 45');
|
|
20
|
+
});
|
|
21
|
+
test('should handle non-string input', () => {
|
|
22
|
+
expect(formatCzZipCode(12345)).toBe('123 45');
|
|
23
|
+
});
|
|
24
|
+
test('should return input as string if not matching pattern', () => {
|
|
25
|
+
expect(formatCzZipCode('12')).toBe('12');
|
|
26
|
+
expect(formatCzZipCode('abcde')).toBe('abcde');
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=formatCzZipCode.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatCzZipCode.test.js","sourceRoot":"","sources":["../../../src/formatters/formatCzZipCode/formatCzZipCode.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,IAAI,CAAC,qCAAqC,EAAE,GAAG,EAAE;QAC/C,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QAC/C,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,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{};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { describe, expect, test } from 'vitest';
|
|
2
|
+
import { EMPTY_INPUT_PLACEHOLDER } from '../const.js';
|
|
3
|
+
import { inputFormatCzZipCode } from './inputFormatCzZipCode.js';
|
|
4
|
+
describe('inputFormatCzZipCode', () => {
|
|
5
|
+
test('should format valid Czech zip codes', () => {
|
|
6
|
+
expect(inputFormatCzZipCode('12345')).toBe('123 45');
|
|
7
|
+
expect(inputFormatCzZipCode('10000')).toBe('100 00');
|
|
8
|
+
expect(inputFormatCzZipCode('78901')).toBe('789 01');
|
|
9
|
+
});
|
|
10
|
+
test('should handle zip codes with extra spaces', () => {
|
|
11
|
+
expect(inputFormatCzZipCode(' 12345 ')).toBe(' 123 45 ');
|
|
12
|
+
});
|
|
13
|
+
test('should return empty string for null or undefined', () => {
|
|
14
|
+
expect(inputFormatCzZipCode('')).toBe(EMPTY_INPUT_PLACEHOLDER);
|
|
15
|
+
expect(inputFormatCzZipCode(null)).toBe(EMPTY_INPUT_PLACEHOLDER);
|
|
16
|
+
expect(inputFormatCzZipCode(undefined)).toBe(EMPTY_INPUT_PLACEHOLDER);
|
|
17
|
+
});
|
|
18
|
+
test('should not change already formatted zip codes', () => {
|
|
19
|
+
expect(inputFormatCzZipCode('123 45')).toBe('123 45');
|
|
20
|
+
});
|
|
21
|
+
test('should handle non-string input', () => {
|
|
22
|
+
expect(inputFormatCzZipCode(12345)).toBe('123 45');
|
|
23
|
+
});
|
|
24
|
+
test('should return input as string if not matching pattern', () => {
|
|
25
|
+
expect(inputFormatCzZipCode('12')).toBe('12');
|
|
26
|
+
expect(inputFormatCzZipCode('abcde')).toBe('abcde');
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=inputFormatCzZipCode.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputFormatCzZipCode.test.js","sourceRoot":"","sources":["../../../src/formatters/formatCzZipCode/inputFormatCzZip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AA;IAEF,IAAI,CAAC,gCAAgC,EAAE,GAAG,EAAE;QAC1C,MAAM,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IACpD,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,uDAAuD,EAAE,GAAG,EAAE;QACjE,MAAM,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC7C,MAAM,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IACrD,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { formatDate } from './formatDate.js';
|
|
3
|
+
describe('formatDate', () => {
|
|
4
|
+
it('Should format ISO date', () => {
|
|
5
|
+
const date = '2025-09-03T13:32:21.582Z';
|
|
6
|
+
const result = formatDate(date);
|
|
7
|
+
expect(result).toStrictEqual('03. 09. 2025');
|
|
8
|
+
});
|
|
9
|
+
it('Should format backend date', () => {
|
|
10
|
+
const date = '2025-05-21 12:34:51';
|
|
11
|
+
const result = formatDate(date);
|
|
12
|
+
expect(result).toStrictEqual('21. 05. 2025');
|
|
13
|
+
});
|
|
14
|
+
it('Should handle invalid date', () => {
|
|
15
|
+
const date = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ';
|
|
16
|
+
expect(formatDate(date, 'EMPTY')).toStrictEqual('EMPTY');
|
|
17
|
+
});
|
|
18
|
+
it('Should handle undefined value', () => {
|
|
19
|
+
const date = undefined;
|
|
20
|
+
expect(formatDate(date, 'EMPTY')).toStrictEqual('EMPTY');
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=formatDate.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
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import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { formatDateTime } from './formatDateTime.js';
|
|
3
|
+
describe('formatDateTime', () => {
|
|
4
|
+
it('Should format ISO date', () => {
|
|
5
|
+
const date = '2025-09-03T13:32:21.582Z';
|
|
6
|
+
const result = formatDateTime(date);
|
|
7
|
+
expect(result).toStrictEqual('03. 09. 2025 15:32:21');
|
|
8
|
+
});
|
|
9
|
+
it('Should format backend date', () => {
|
|
10
|
+
const date = '2025-05-21 12:34:51';
|
|
11
|
+
const result = formatDateTime(date);
|
|
12
|
+
expect(result).toStrictEqual('21. 05. 2025 12:34:51');
|
|
13
|
+
});
|
|
14
|
+
it('Should handle invalid date', () => {
|
|
15
|
+
const date = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ';
|
|
16
|
+
expect(formatDateTime(date, 'EMPTY')).toStrictEqual('EMPTY');
|
|
17
|
+
});
|
|
18
|
+
it('Should handle undefined value', () => {
|
|
19
|
+
const date = undefined;
|
|
20
|
+
expect(formatDateTime(date, 'EMPTY')).toStrictEqual('EMPTY');
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=formatDateTime.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatDateTime.test.js","sourceRoot":"","sources":["../../../src/formatters/formatDateTime/formatDateTime.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEpD,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;IAC9B,EAAE,CAAC,wBAAwB,EAAE,GAAG,EAAE;QAChC,MAAM,IAAI,GAAG,0BAA0B,CAAA;QACvC,MAAM,MAAM,GAAG,cAAc,CAAC,IAAI,CAAC,CAAA;QAEnC,MAAM,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAA;IACvD,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,4BAA4B,EAAE,GAAG,EAAE;QACpC,MAAM,IAAI,GAAG,qBAAqB,CAAA;QAClC,MAAM,MAAM,GAAG,cAAc,CAAC,IAAI,CAAC,CAAA;QAEnC,MAAM,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAA;IACvD,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,4BAA4B,EAAE,GAAG,EAAE;QACpC,MAAM,IAAI,GAAG,6CAA6C,CAAA;QAC1D,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA;IAC9D,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,+BAA+B,EAAE,GAAG,EAAE;QACvC,MAAM,IAAI,GAAG,SAAS,CAAA;QACtB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAA;IAC9D,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { EMPTY_VALUE_PLACEHOLDER } from '../const.js';
|
|
3
|
+
import { formatICO } from './formatICO.js';
|
|
4
|
+
describe('formatICO', () => {
|
|
5
|
+
it('pads number shorter than 8 digits with leading zeros', () => {
|
|
6
|
+
expect(formatICO(1234567)).toBe('01234567');
|
|
7
|
+
expect(formatICO(1)).toBe('00000001');
|
|
8
|
+
});
|
|
9
|
+
it('returns string unchanged if already 8 digits', () => {
|
|
10
|
+
expect(formatICO('12345678')).toBe('12345678');
|
|
11
|
+
expect(formatICO(12345678)).toBe('12345678');
|
|
12
|
+
});
|
|
13
|
+
it('trims and pads string input', () => {
|
|
14
|
+
expect(formatICO(' 123 ')).toBe('00000123');
|
|
15
|
+
});
|
|
16
|
+
it('returns fallback for null, undefined, or empty string', () => {
|
|
17
|
+
expect(formatICO(null)).toBe(EMPTY_VALUE_PLACEHOLDER);
|
|
18
|
+
expect(formatICO(undefined)).toBe(EMPTY_VALUE_PLACEHOLDER);
|
|
19
|
+
expect(formatICO('')).toBe(EMPTY_VALUE_PLACEHOLDER);
|
|
20
|
+
});
|
|
21
|
+
it('uses custom fallback if provided', () => {
|
|
22
|
+
expect(formatICO(null, 'N/A')).toBe('N/A');
|
|
23
|
+
expect(formatICO('', 'N/A')).toBe('N/A');
|
|
24
|
+
});
|
|
25
|
+
it('handles numbers with leading zeros', () => {
|
|
26
|
+
expect(formatICO('00001234')).toBe('00001234');
|
|
27
|
+
expect(formatICO(1234)).toBe('00001234');
|
|
28
|
+
});
|
|
29
|
+
it('handles non-numeric strings', () => {
|
|
30
|
+
expect(formatICO('abcd')).toBe(EMPTY_VALUE_PLACEHOLDER);
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=formatICO.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatICO.test.js","sourceRoot":"","sources":["../../../src/formatters/formatICO/formatICO.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IACzB,EAAE,CAAC,sDAAsD,EAAE,GAAG,EAAE;QAC9D,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;QAC3C,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;IACvC,CAAC,CAAC,CAAA;IAEF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