UNPKG

@earthranger/react-native-jsonforms-formatter

Version:
46 lines 2.16 kB
export declare const FIELD_SET = "fieldset"; export declare const HELP_VALUE = "helpvalue"; export declare const REQUIRED_PROPERTY = "required"; export declare const CHECKBOXES = "checkboxes"; export declare const INACTIVE_ENUM = "inactive_enum"; export declare const DISABLED_ENUM = "inactive_titleMap"; export declare const STRING_TYPE = "string"; export declare const ARRAY_TYPE = "array"; export declare const ENUM = "enum"; export declare enum DateTimeFormat { DateTime = "date-time", Date = "date" } export declare enum PropertyFormat { DateTime = "date-time", MultiSelect = "multiselect", RepeatableField = "repeatable-field", FormLabel = "form-label" } export declare enum ElementDisplay { Header = "header" } export declare const getFieldSetTitleKey: (title: string) => string; export declare const getSchemaValidations: (stringSchema: string) => { hasCheckboxes: boolean; hasInactiveChoices: boolean; hasDisabledChoices: boolean; hasEnums: boolean; }; export declare const hasDuplicatedItems: (items: string[]) => boolean; export declare const isArrayProperty: (property: any) => boolean; export declare const isCheckbox: (item: any) => boolean; export declare const isDisabledChoice: (item: any) => boolean; export declare const isEmptyString: (value: string | undefined) => boolean; export declare const isFieldSetTitle: (item: any) => boolean; export declare const isFieldSetTitleWithoutItems: (item: any) => boolean; export declare const isFieldSet: (item: any) => boolean; export declare const isInactiveChoice: (item: any) => boolean; export declare const isObject: (item: any) => boolean; export declare const isPropertyKey: (item: any) => boolean; export declare const isRequiredProperty: (property: any) => boolean; export declare const isSchemaFieldSet: (definition: any[]) => boolean; export declare const isString: (item: any) => boolean; export declare const normalizeDecimalSeparators: (value: string | number) => string | number; export declare const traverseSchema: (schema: any, processor: (node: any, path: string[]) => void, path?: string[]) => void; //# sourceMappingURL=utils.d.ts.map