@rjsf/utils
Version:
Utility functions for @rjsf/core
179 lines (174 loc) • 5.64 kB
text/typescript
import allowAdditionalItems from './allowAdditionalItems';
import asNumber from './asNumber';
import canExpand from './canExpand';
import createErrorHandler from './createErrorHandler';
import createSchemaUtils from './createSchemaUtils';
import dataURItoBlob from './dataURItoBlob';
import dateRangeOptions from './dateRangeOptions';
import deepEquals from './deepEquals';
import shallowEquals from './shallowEquals';
import englishStringTranslator from './englishStringTranslator';
import enumOptionsDeselectValue from './enumOptionsDeselectValue';
import enumOptionsIndexForValue from './enumOptionsIndexForValue';
import enumOptionsIsSelected from './enumOptionsIsSelected';
import enumOptionsSelectValue from './enumOptionsSelectValue';
import enumOptionsValueForIndex from './enumOptionsValueForIndex';
import ErrorSchemaBuilder from './ErrorSchemaBuilder';
import findSchemaDefinition from './findSchemaDefinition';
import getChangedFields from './getChangedFields';
import getDateElementProps, { DateElementFormat, DateElementProp } from './getDateElementProps';
import getDiscriminatorFieldFromSchema from './getDiscriminatorFieldFromSchema';
import getInputProps from './getInputProps';
import getOptionMatchingSimpleDiscriminator from './getOptionMatchingSimpleDiscriminator';
import getSchemaType from './getSchemaType';
import getSubmitButtonOptions from './getSubmitButtonOptions';
import getTemplate from './getTemplate';
import getTestIds from './getTestIds';
import getUiOptions from './getUiOptions';
import getWidget from './getWidget';
import guessType from './guessType';
import hashForSchema, { hashObject, hashString, sortedJSONStringify } from './hashForSchema';
import hasWidget from './hasWidget';
import {
ariaDescribedByIds,
buttonId,
descriptionId,
errorId,
examplesId,
helpId,
optionalControlsId,
optionId,
titleId,
} from './idGenerators';
import isConstant from './isConstant';
import isCustomWidget from './isCustomWidget';
import isFixedItems from './isFixedItems';
import isFormDataAvailable from './isFormDataAvailable';
import isObject from './isObject';
import isRootSchema from './isRootSchema';
import labelValue from './labelValue';
import localToUTC from './localToUTC';
import lookupFromFormContext from './lookupFromFormContext';
import mergeDefaultsWithFormData from './mergeDefaultsWithFormData';
import mergeObjects from './mergeObjects';
import mergeSchemas from './mergeSchemas';
import optionsList from './optionsList';
import orderProperties from './orderProperties';
import pad from './pad';
import parseDateString from './parseDateString';
import rangeSpec from './rangeSpec';
import replaceStringParameters from './replaceStringParameters';
import resolveUiSchema, { expandUiSchemaDefinitions } from './resolveUiSchema';
import schemaRequiresTrueValue from './schemaRequiresTrueValue';
import shouldRender, { ComponentUpdateStrategy } from './shouldRender';
import shouldRenderOptionalField from './shouldRenderOptionalField';
import toConstant from './toConstant';
import toDateString from './toDateString';
import toErrorList from './toErrorList';
import toErrorSchema from './toErrorSchema';
import toFieldPathId from './toFieldPathId';
import unwrapErrorHandler from './unwrapErrorHandler';
import useAltDateWidgetProps, { DateElement, DateElementProps, UseAltDateWidgetResult } from './useAltDateWidgetProps';
import useDeepCompareMemo from './useDeepCompareMemo';
import useFileWidgetProps, { FileInfoType, UseFileWidgetPropsResult } from './useFileWidgetProps';
import utcToLocal from './utcToLocal';
import validationDataMerge from './validationDataMerge';
import withIdRefPrefix from './withIdRefPrefix';
import { bracketNameGenerator, dotNotationNameGenerator } from './nameGenerators';
export * from './types';
export * from './enums';
export * from './constants';
export * from './parser';
export * from './schema';
export type {
ComponentUpdateStrategy,
DateElementFormat,
DateElementProp,
DateElementProps,
FileInfoType,
UseAltDateWidgetResult,
UseFileWidgetPropsResult,
};
export {
allowAdditionalItems,
ariaDescribedByIds,
asNumber,
buttonId,
canExpand,
createErrorHandler,
createSchemaUtils,
DateElement,
dataURItoBlob,
dateRangeOptions,
deepEquals,
descriptionId,
englishStringTranslator,
enumOptionsDeselectValue,
enumOptionsIndexForValue,
enumOptionsIsSelected,
enumOptionsSelectValue,
enumOptionsValueForIndex,
errorId,
examplesId,
ErrorSchemaBuilder,
findSchemaDefinition,
getChangedFields,
getDateElementProps,
getDiscriminatorFieldFromSchema,
getInputProps,
getOptionMatchingSimpleDiscriminator,
getSchemaType,
getSubmitButtonOptions,
getTemplate,
getTestIds,
getUiOptions,
getWidget,
guessType,
hasWidget,
hashForSchema,
hashObject,
hashString,
helpId,
isConstant,
isCustomWidget,
isFixedItems,
isFormDataAvailable,
isObject,
isRootSchema,
labelValue,
localToUTC,
lookupFromFormContext,
mergeDefaultsWithFormData,
mergeObjects,
mergeSchemas,
optionalControlsId,
optionId,
optionsList,
orderProperties,
pad,
parseDateString,
rangeSpec,
replaceStringParameters,
resolveUiSchema,
expandUiSchemaDefinitions,
schemaRequiresTrueValue,
shallowEquals,
shouldRender,
shouldRenderOptionalField,
sortedJSONStringify,
titleId,
toConstant,
toDateString,
toErrorList,
toErrorSchema,
toFieldPathId,
unwrapErrorHandler,
useAltDateWidgetProps,
useDeepCompareMemo,
useFileWidgetProps,
utcToLocal,
validationDataMerge,
withIdRefPrefix,
bracketNameGenerator,
dotNotationNameGenerator,
};