@dvcol/common-utils
Version:
Typescript library for common utility functions and constants
301 lines (300 loc) • 5.33 kB
JavaScript
import {
toClass,
toStyle
} from "../../chunk-OEUOS4CT.js";
import {
buildFormData,
capitalizeEachWord,
computeAbsolutePath,
deCapitalise,
getUUID,
markTokenizer,
parseJSON,
sentenceCase,
stringifyKeys,
stringifyParams,
toCase,
toKebabCase,
toPathSegment,
toSnakeCase,
versionCheck
} from "../../chunk-F2ODECNN.js";
import {
addCustomProperty,
zIndex,
zIndexMax
} from "../../chunk-RHQYXCZ3.js";
import {
SwipeDirection,
handleSwipe,
handleSwipeLeftRight,
handleSwipeUpDown
} from "../../chunk-7EI6WZIK.js";
import {
autoImplement,
staticImplements
} from "../../chunk-3YJQ3R4E.js";
import {
isDarkTheme,
isLightTheme,
watchDarkThemeDisposable,
watchTheme
} from "../../chunk-7QJ6ZOXA.js";
import {
ConsoleFormat,
LogLevel,
LoggerColor,
ProxyLogger,
TimeStampFormat,
colorize,
getTimestamp,
proxyLoggerFilter,
toLogLevel
} from "../../chunk-J772VR4L.js";
import {
arrayMax,
clamp,
findClosestMatch,
percent,
randomInt,
round
} from "../../chunk-3XBYIAZS.js";
import {
useMobileScrollLock
} from "../../chunk-F4MZLVMZ.js";
import {
getNavigatorVersion,
getShortLocale,
isMacOs
} from "../../chunk-3GQPN6KZ.js";
import {
isShallowEqual,
shallowClone
} from "../../chunk-E7AVKVN5.js";
import {
Observable,
ObservableState
} from "../../chunk-VGYCDF4H.js";
import {
raceUntil,
wait
} from "../../chunk-E5SZNBJX.js";
import {
defaultFileHandlerOptions,
getJsonWriter,
getNewFileHandle,
writeJson
} from "../../chunk-K3KHORBF.js";
import {
getCursorState
} from "../../chunk-4SP6VVJZ.js";
import {
DateUtils,
DayOfWeek,
DayOfWeekToNumber,
NumberToDayOfWeek,
compareDateObject,
dayOfTheWeek,
elapsedTime,
getTodayISOLocal,
shortTime,
timeAgo,
timeSince,
toDateObject
} from "../../chunk-RPIOVJRE.js";
import {
debounce,
useDebounce
} from "../../chunk-L27ITMPM.js";
import {
downloadJson
} from "../../chunk-3LYIPO53.js";
import {
clickableSelector,
clickableTags,
closestClickableElement,
focusableElementSelectors,
getClickableAncestor,
getFocusableElement,
getFocusableElements,
getLastFocusableElement,
isClickable,
tabFocusableElementSelectors
} from "../../chunk-3KOANECK.js";
import {
InSeconds,
computeProgress,
formatBytes,
formatDHMS,
formatHMS,
formatTime,
formatTimeLong,
formatTimeShort,
formatYMD
} from "../../chunk-SW4JHTAG.js";
import {
getIntl,
getIntlLanguage,
getIntlLocale,
getIntlRegion,
getNavigatorLanguage,
getNavigatorRegion
} from "../../chunk-XG2OQYUD.js";
import {
uniqueArray
} from "../../chunk-ST6IU24C.js";
import {
isIOS,
isIPad,
isIPhone,
isMac,
isMobileFirefox,
isSafari,
testPlatform
} from "../../chunk-AETBTSDL.js";
import {
CacheRetention
} from "../../chunk-EDVYI3XB.js";
import {
hexToRgb,
rgbToHex
} from "../../chunk-TH54VWQE.js";
import {
nullSafeCompare,
numberCompare,
stringCompare
} from "../../chunk-AY3RCPIA.js";
import {
PKCECodeGenerator,
getCodeChallenge,
getCodeVerifier,
randomHex,
verifyCodeChallenge
} from "../../chunk-NXBSLSPJ.js";
import "../../chunk-SYF7MC4F.js";
import "../../chunk-24FNIMZQ.js";
import "../../chunk-55I4IDCP.js";
import "../../chunk-27IUEUTL.js";
import "../../chunk-5O4DOFF2.js";
import "../../chunk-TOFARLHK.js";
export {
CacheRetention,
ConsoleFormat,
DateUtils,
DayOfWeek,
DayOfWeekToNumber,
InSeconds,
LogLevel,
LoggerColor,
NumberToDayOfWeek,
Observable,
ObservableState,
PKCECodeGenerator,
ProxyLogger,
SwipeDirection,
TimeStampFormat,
addCustomProperty,
arrayMax,
autoImplement,
buildFormData,
capitalizeEachWord,
clamp,
clickableSelector,
clickableTags,
closestClickableElement,
colorize,
compareDateObject,
computeAbsolutePath,
computeProgress,
dayOfTheWeek,
deCapitalise,
debounce,
defaultFileHandlerOptions,
downloadJson,
elapsedTime,
findClosestMatch,
focusableElementSelectors,
formatBytes,
formatDHMS,
formatHMS,
formatTime,
formatTimeLong,
formatTimeShort,
formatYMD,
getClickableAncestor,
getCodeChallenge,
getCodeVerifier,
getCursorState,
getFocusableElement,
getFocusableElements,
getIntl,
getIntlLanguage,
getIntlLocale,
getIntlRegion,
getJsonWriter,
getLastFocusableElement,
getNavigatorLanguage,
getNavigatorRegion,
getNavigatorVersion,
getNewFileHandle,
getShortLocale,
getTimestamp,
getTodayISOLocal,
getUUID,
handleSwipe,
handleSwipeLeftRight,
handleSwipeUpDown,
hexToRgb,
isClickable,
isDarkTheme,
isIOS,
isIPad,
isIPhone,
isLightTheme,
isMac,
isMacOs,
isMobileFirefox,
isSafari,
isShallowEqual,
markTokenizer,
nullSafeCompare,
numberCompare,
parseJSON,
percent,
proxyLoggerFilter,
raceUntil,
randomHex,
randomInt,
rgbToHex,
round,
sentenceCase,
shallowClone,
shortTime,
staticImplements,
stringCompare,
stringifyKeys,
stringifyParams,
tabFocusableElementSelectors,
testPlatform,
timeAgo,
timeSince,
toCase,
toClass,
toDateObject,
toKebabCase,
toLogLevel,
toPathSegment,
toSnakeCase,
toStyle,
uniqueArray,
useDebounce,
useMobileScrollLock,
verifyCodeChallenge,
versionCheck,
wait,
watchDarkThemeDisposable,
watchTheme,
writeJson,
zIndex,
zIndexMax
};