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