UNPKG

@dvcol/common-utils

Version:

Typescript library for common utility functions and constants

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