UNPKG

@dvcol/common-utils

Version:

Typescript library for common utility functions and constants

31 lines (30 loc) 3.2 kB
export { uniqueArray } from './array.utils.cjs'; export { isIOS, isIPad, isIPhone, isMac, isMobileFirefox, isSafari, testPlatform } from './browser.utils.cjs'; export { CacheRetention } from './cache.utils.cjs'; export { Values, toClass, toStyle } from './class.utils.cjs'; export { RGBColor, hexToRgb, rgbToHex } from './color.utils.cjs'; export { nullSafeCompare, numberCompare, stringCompare } from './compare.utils.cjs'; export { PKCECodeGenerator, getCodeChallenge, getCodeVerifier, randomHex, verifyCodeChallenge } from './crypto.utils.cjs'; export { getCursorState } from './cursor.utils.cjs'; export { DateUtils, DayOfWeek, DayOfWeekToNumber, NumberToDayOfWeek, TimeSinceResult, TimeSinceUnit, compareDateObject, dayOfTheWeek, elapsedTime, getTodayISOLocal, shortTime, timeAgo, timeSince, toDateObject } from './date.utils.cjs'; export { DebouncedFunction, debounce, useDebounce } from './debounce.utils.cjs'; export { clickableSelector, clickableTags, closestClickableElement, focusableElementSelectors, getClickableAncestor, getFocusableElement, getFocusableElements, getLastFocusableElement, isClickable, tabFocusableElementSelectors } from './element.utils.cjs'; export { downloadJson } from './download.utils.cjs'; export { InSeconds, Time, computeProgress, formatBytes, formatDHMS, formatHMS, formatTime, formatTimeLong, formatTimeShort, formatYMD } from './format.utils.cjs'; export { getIntl, getIntlLanguage, getIntlLocale, getIntlRegion, getNavigatorLanguage, getNavigatorRegion } from './intl.utils.cjs'; export { ConsoleFormat, LogLevel, LoggerColor, ProxyLogger, ProxyLoggerFilter, TimeStampFormat, TimeStampFormats, colorize, getTimestamp, proxyLoggerFilter, toLogLevel } from './logger.utils.cjs'; export { arrayMax, clamp, findClosestMatch, percent, randomInt, round } from './math.utils.cjs'; export { LockedElement, ScrollContainer, UseMobileScrollLock, useMobileScrollLock } from './mobile.utils.cjs'; export { getNavigatorVersion, getShortLocale, isMacOs } from './navigator.utils.cjs'; export { isShallowEqual, shallowClone } from './object.utils.cjs'; export { Observable, ObservableState } from './observable.utils.cjs'; export { raceUntil, wait } from './promise.utils.cjs'; export { FilePickerOptions, JsonWriterOptions, SaveFilePickerOptions, defaultFileHandlerOptions, getJsonWriter, getNewFileHandle, writeJson } from './save.utils.cjs'; export { MarkAndToken, MarkTokenizer, MarkTokenizerOptions, buildFormData, capitalizeEachWord, computeAbsolutePath, deCapitalise, getUUID, markTokenizer, parseJSON, sentenceCase, stringifyKeys, stringifyParams, toCase, toKebabCase, toPathSegment, toSnakeCase, versionCheck } from './string.utils.cjs'; export { addCustomProperty, zIndex, zIndexMax } from './style.utils.cjs'; export { Position, ScrollState, SwipeDirection, SwipeDirections, SwipeTolerances, TouchState, handleSwipe, handleSwipeLeftRight, handleSwipeUpDown } from './touch.utils.cjs'; export { autoImplement, staticImplements } from './typescript.utils.cjs'; export { isDarkTheme, isLightTheme, watchDarkThemeDisposable, watchTheme } from './window.utils.cjs'; import '../models/typescript.model.cjs'; import '../models/observable.model.cjs'; import 'uuid';