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