UNPKG

@react-form-builder/core

Version:

React JSON Schema Form Builder to create complex, validated, reusable forms with no deep React knowledge required

323 lines (322 loc) 15.9 kB
import { FormViewer as r } from "./features/form-viewer/FormViewer.js"; import { FormViewerLite as p } from "./features/form-viewer/FormViewerLite.js"; import { FluentLocalizationEngine as n } from "./features/localization/fluent/FluentLocalizationEngine.js"; import { NoopLocalizationEngine as i } from "./features/localization/NoopLocalizationEngine.js"; import { ActionDefinition as x } from "./features/event/ActionDefinition.js"; import { ActionEventArgs as l, ActionEventArgsDeclaration as d } from "./features/event/utils/ActionEventArgs.js"; import { Annotation as c } from "./features/annotation/types/annotations/Annotation.js"; import { AnnotationBuilder as b } from "./features/annotation/utils/builders/AnnotationBuilder.js"; import { ArrayBuilder as C } from "./features/annotation/utils/builders/ArrayBuilder.js"; import { AsyncFunction as A } from "./utils/AsyncFunction.js"; import { BaseBuilder as S, BuilderOptions as E } from "./features/annotation/utils/builders/BaseBuilder.js"; import { BiDi as v } from "./features/localization/bidi.js"; import { BuilderModeProvider as M, useBuilderMode as T } from "./utils/contexts/BuilderModeContext.js"; import { BuilderThemeProvider as N, useBuilderTheme as O } from "./utils/contexts/BuilderThemeContext.js"; import { BuilderView as w } from "./features/define/utils/BuilderView.js"; import { CalculableResult as z } from "./utils/CalculableResult.js"; import { CellInfoContextProvider as R } from "./features/table/CellInfoContext.js"; import { ComponentData as U, ComponentDataEvents as W, ComponentDataProvider as k, ComponentKeyChangedEventArgs as K, getEditableFormData as j, useComponentData as H } from "./utils/contexts/ComponentDataContext.js"; import { ComponentState as G } from "./stores/ComponentState.js"; import { ComponentStore as X, isFunctionalProperty as Y, isLocalizedProperty as Z } from "./stores/ComponentStore.js"; import { ComponentTree as $ } from "./features/ui/ComponentTree.js"; import { ContainerAnnotation as oe } from "./features/annotation/types/annotations/ContainerAnnotation.js"; import { DataValidator as te } from "./features/validation/utils/DataValidator.js"; import { DefaultWrapper as me } from "./features/ui/DefaultWrapper.js"; import { DidMountEvent as fe, WillUnmountEvent as ie } from "./features/event/eventNames.js"; import { EventAnnotation as xe } from "./features/annotation/types/annotations/EventAnnotation.js"; import { Form as le } from "./stores/Form.js"; import { FormViewerPropsStore as ue } from "./stores/FormViewerPropsStore.js"; import { IFormDataDeclaration as ye } from "./utils/IFormData.js"; import { KeySymbol as ge } from "./consts.js"; import { Language as De } from "./features/localization/language.js"; import { LocalizationStore as Pe } from "./stores/LocalizationStore.js"; import { Meta as Ee } from "./features/define/utils/Meta.js"; import { Model as ve } from "./features/define/utils/Model.js"; import { ModuleAnnotation as Me } from "./features/annotation/types/annotations/ModuleAnnotation.js"; import { NodeAnnotationBuilder as Ve } from "./features/annotation/utils/builders/NodeAnnotationBuilder.js"; import { OneOfBuilder as Oe } from "./features/annotation/utils/builders/OneOfBuilder.js"; import { PersistedFormVersion as we } from "./stores/PersistedForm.js"; import { PropertyAnnotation as ze, isProperty as Ie } from "./features/annotation/types/annotations/PropertyAnnotation.js"; import { QuantifierBuilder as qe } from "./features/annotation/utils/builders/QuantifierBuilder.js"; import { SomeOfBuilder as We } from "./features/annotation/utils/builders/SomeOfBuilder.js"; import { Store as Ke } from "./stores/Store.js"; import { StoreContext as He, StoreProvider as Qe, useStore as Ge } from "./utils/contexts/StoreContext.js"; import { StyleAnnotation as Xe } from "./features/annotation/types/annotations/StyleAnnotation.js"; import { SuppressResizeObserverErrors as Ze } from "./features/ui/SuppressResizeObserverErrors.js"; import { SyncEvent as $e } from "./utils/SyncEvent.js"; import { TemplateField as oo } from "./features/validation/utils/TemplateField.js"; import { TypedBuilder as to } from "./features/annotation/utils/builders/TypedBuilder.js"; import { View as mo, createView as no } from "./features/define/utils/View.js"; import { ViewerPropsProvider as io, useViewerProps as ao } from "./features/form-viewer/components/ViewerPropsContext.js"; import { array as so } from "./features/annotation/arrayAnnotation.js"; import { boolean as uo } from "./features/annotation/booleanAnnotation.js"; import { buildForm as yo } from "./features/form-json-builder/FormJsonBuilder.js"; import { calculatePropertyValue as go } from "./features/calculation/propertyCalculator.js"; import { camelCase as Do, cloneDeep as Ao, debounce as Po, isBoolean as So, isDate as Eo, isEmpty as Bo, isEqual as vo, isEqualWith as Fo, isNull as Mo, isNumber as To, isObject as Vo, isUndefined as No, merge as Oo, startCase as ho, toUpper as wo, uniqueId as Lo, upperFirst as zo } from "./utils/tools.js"; import { cfComponentIsPreset as Ro, cfDisableActionEditors as qo, cfDisableAdditionalProperties as Uo, cfDisableComponentRemove as Wo, cfDisableMainComponentProperties as ko, cfDisableStyleProperties as Ko, cfDisableStyles as jo, cfDisableStylesForClassNameEditor as Ho, cfDisableTooltipProperties as Qo, cfDisableWrapperStyles as Go, cfEnableInlineStylesEditor as Jo, cfHideFromComponentPalette as Xo } from "./features/define/utils/integratedComponentFeatures.js"; import { checkSlotCondition as Zo, getChildren as _o } from "./utils/getChildren.js"; import { className as er } from "./features/annotation/classNameAnnotation.js"; import { color as rr } from "./features/annotation/colorAnnotation.js"; import { commonStyles as pr } from "./features/annotation/commonStyles.js"; import { containerStyles as nr } from "./features/annotation/containerStyles.js"; import { coreComponentsDescriptions as ir } from "./i18n/coreComponentsDescriptions.js"; import { createActionValuesFromObject as xr } from "./features/event/createActionValuesFromObject.js"; import { createAnnotation as lr } from "./features/annotation/utils/createAnnotation.js"; import { createNonNullableContext as ur } from "./utils/createNonNullableContext.js"; import { createProperty as yr } from "./features/annotation/utils/createProperty.js"; import { cssSize as gr } from "./features/annotation/cssSizeAnnotation.js"; import { date as Dr } from "./features/annotation/dateAnnotation.js"; import { define as Pr, definePreset as Sr } from "./features/define/utils/Definer.js"; import { disabled as Br } from "./features/annotation/disabledAnnotation.js"; import { embeddedFormMeta as Fr } from "./features/template/embeddedFormMeta.js"; import { embeddedFormModel as Tr } from "./features/template/embeddedFormModel.js"; import { emptyComponentStore as Nr } from "./utils/emptyComponentStore.js"; import { errorMessageModel as hr } from "./features/validation/components/DefaultErrorMessage.js"; import { event as Lr } from "./features/annotation/eventAnnotation.js"; import { findLanguage as Ir } from "./features/localization/findLanguage.js"; import { findTreeElementDepth as qr, treeForEach as Ur } from "./utils/treeUtils.js"; import { fn as kr } from "./features/annotation/fnAnnotation.js"; import { forwardRef as jr } from "./utils/forwardRefShim.js"; import { generateTemplateTypeName as Qr, getTemplateName as Gr, isTemplateType as Jr } from "./features/ui/templateUtil.js"; import { generateUniqueName as Yr } from "./utils/generateUniqueName.js"; import { getDefault as _r } from "./features/annotation/utils/getDefault.js"; import { getDefaultCss as et } from "./features/annotation/utils/getDefaultCss.js"; import { getKey as rt } from "./utils/getKey.js"; import { getValidatorPropertyBlockType as pt, isValidatorPropertyBlockType as mt } from "./features/ui/PropertyBlockType.js"; import { globalDefaultLanguage as ft } from "./features/localization/default.js"; import { groupBy as at } from "./utils/groupBy.js"; import { htmlAttributes as st } from "./features/annotation/htmlAttributesAnnotation.js"; import { internalErrorModel as dt } from "./features/ui/internalErrorModel.js"; import { isContainer as ct } from "./features/annotation/utils/isContainer.js"; import { isPromise as bt } from "./utils/isPromise.js"; import { isString as Ct } from "./utils/isString.js"; import { isUniqueKey as At } from "./features/annotation/utils/isUniqueKey.js"; import { key as St } from "./features/annotation/keyAnnotation.js"; import { loadResource as Bt, unloadResource as vt } from "./utils/resourceLoader.js"; import { nameAutorun as Mt, nameObservable as Tt } from "./utils/observableNaming.js"; import { namedObserver as Nt } from "./utils/namedObserver.js"; import { needRender as ht } from "./utils/needRender.js"; import { node as Lt } from "./features/annotation/nodeAnnotation.js"; import { nodeArray as It } from "./features/annotation/nodeArrayAnnotation.js"; import { nonNegNumber as qt } from "./features/annotation/nonNegNumberAnnotation.js"; import { number as Wt } from "./features/annotation/numberAnnotation.js"; import { object as Kt } from "./features/annotation/objectAnnotation.js"; import { oneOf as Ht } from "./features/annotation/oneOfAnnotation.js"; import { oneOfStrict as Gt } from "./features/annotation/oneOfStrictAnnotation.js"; import { reactStylesToCss as Xt } from "./stores/css.js"; import { readOnly as Zt } from "./features/annotation/readOnlyAnnotation.js"; import { renderWhen as $t } from "./features/annotation/renderWhenAnnotation.js"; import { required as op } from "./features/annotation/requiredAnnotation.js"; import { screenModel as tp } from "./features/ui/screenModel.js"; import { size as mp } from "./features/annotation/sizeAnnotation.js"; import { slotModel as fp } from "./features/template/slotModel.js"; import { someOf as ap } from "./features/annotation/someOfAnnotation.js"; import { string as sp } from "./features/annotation/stringAnnotation.js"; import { stringNode as dp } from "./features/annotation/stringNodeAnnotation.js"; import { time as cp } from "./features/annotation/timeAnnotation.js"; import { timeFormat as bp } from "./features/annotation/consts.js"; import { toArray as Cp } from "./features/annotation/toArray.js"; import { toLabeledValues as Ap } from "./features/annotation/utils/LabeledValue.js"; import { tooltipProps as Sp } from "./features/annotation/tooltipPropsAnnotation.js"; import { tooltipType as Bp } from "./features/annotation/tooltipTypeAnnotation.js"; import { useAriaAttributes as Fp, useAriaAttributesIds as Mp, useAriaErrorMessage as Tp, useAriaInvalid as Vp } from "./utils/useAriaAttributesIds.js"; import { useBuilderComponent as Op } from "./utils/useBuilderComponent.js"; import { useBuilderValue as wp } from "./utils/useBuilderValue.js"; import { useDisposable as zp } from "./utils/useDisposable.js"; import { useErrorMessage as Rp } from "./utils/useErrorMessage.js"; import { useErrorModel as Up } from "./utils/useErrorModel.js"; import { useMobxConfig as kp } from "./utils/useMobxConfig.js"; import { useModalComponentData as jp } from "./features/modal/useModalComponentData.js"; import { useModalType as Qp } from "./features/modal/useModalType.js"; import { useTooltipType as Jp } from "./utils/useTooltipType.js"; import { validation as Yp } from "./features/annotation/validationAnnotation.js"; export { x as ActionDefinition, l as ActionEventArgs, d as ActionEventArgsDeclaration, c as Annotation, b as AnnotationBuilder, C as ArrayBuilder, A as AsyncFunction, S as BaseBuilder, v as BiDi, M as BuilderModeProvider, E as BuilderOptions, N as BuilderThemeProvider, w as BuilderView, z as CalculableResult, R as CellInfoContextProvider, U as ComponentData, W as ComponentDataEvents, k as ComponentDataProvider, K as ComponentKeyChangedEventArgs, G as ComponentState, X as ComponentStore, $ as ComponentTree, oe as ContainerAnnotation, te as DataValidator, me as DefaultWrapper, fe as DidMountEvent, xe as EventAnnotation, n as FluentLocalizationEngine, le as Form, r as FormViewer, p as FormViewerLite, ue as FormViewerPropsStore, ye as IFormDataDeclaration, ge as KeySymbol, De as Language, Pe as LocalizationStore, Ee as Meta, ve as Model, Me as ModuleAnnotation, Ve as NodeAnnotationBuilder, i as NoopLocalizationEngine, Oe as OneOfBuilder, we as PersistedFormVersion, ze as PropertyAnnotation, qe as QuantifierBuilder, We as SomeOfBuilder, Ke as Store, He as StoreContext, Qe as StoreProvider, Xe as StyleAnnotation, Ze as SuppressResizeObserverErrors, $e as SyncEvent, oo as TemplateField, to as TypedBuilder, mo as View, io as ViewerPropsProvider, ie as WillUnmountEvent, so as array, uo as boolean, yo as buildForm, go as calculatePropertyValue, Do as camelCase, Ro as cfComponentIsPreset, qo as cfDisableActionEditors, Uo as cfDisableAdditionalProperties, Wo as cfDisableComponentRemove, ko as cfDisableMainComponentProperties, Ko as cfDisableStyleProperties, jo as cfDisableStyles, Ho as cfDisableStylesForClassNameEditor, Qo as cfDisableTooltipProperties, Go as cfDisableWrapperStyles, Jo as cfEnableInlineStylesEditor, Xo as cfHideFromComponentPalette, Zo as checkSlotCondition, er as className, Ao as cloneDeep, rr as color, pr as commonStyles, nr as containerStyles, ir as coreComponentsDescriptions, xr as createActionValuesFromObject, lr as createAnnotation, ur as createNonNullableContext, yr as createProperty, no as createView, gr as cssSize, Dr as date, Po as debounce, Pr as define, Sr as definePreset, Br as disabled, Fr as embeddedFormMeta, Tr as embeddedFormModel, Nr as emptyComponentStore, hr as errorMessageModel, Lr as event, Ir as findLanguage, qr as findTreeElementDepth, kr as fn, jr as forwardRef, Qr as generateTemplateTypeName, Yr as generateUniqueName, _o as getChildren, _r as getDefault, et as getDefaultCss, j as getEditableFormData, rt as getKey, Gr as getTemplateName, pt as getValidatorPropertyBlockType, ft as globalDefaultLanguage, at as groupBy, st as htmlAttributes, dt as internalErrorModel, So as isBoolean, ct as isContainer, Eo as isDate, Bo as isEmpty, vo as isEqual, Fo as isEqualWith, Y as isFunctionalProperty, Z as isLocalizedProperty, Mo as isNull, To as isNumber, Vo as isObject, bt as isPromise, Ie as isProperty, Ct as isString, Jr as isTemplateType, No as isUndefined, At as isUniqueKey, mt as isValidatorPropertyBlockType, St as key, Bt as loadResource, Oo as merge, Mt as nameAutorun, Tt as nameObservable, Nt as namedObserver, ht as needRender, Lt as node, It as nodeArray, qt as nonNegNumber, Wt as number, Kt as object, Ht as oneOf, Gt as oneOfStrict, Xt as reactStylesToCss, Zt as readOnly, $t as renderWhen, op as required, tp as screenModel, mp as size, fp as slotModel, ap as someOf, ho as startCase, sp as string, dp as stringNode, cp as time, bp as timeFormat, Cp as toArray, Ap as toLabeledValues, wo as toUpper, Sp as tooltipProps, Bp as tooltipType, Ur as treeForEach, Lo as uniqueId, vt as unloadResource, zo as upperFirst, Fp as useAriaAttributes, Mp as useAriaAttributesIds, Tp as useAriaErrorMessage, Vp as useAriaInvalid, Op as useBuilderComponent, T as useBuilderMode, O as useBuilderTheme, wp as useBuilderValue, H as useComponentData, zp as useDisposable, Rp as useErrorMessage, Up as useErrorModel, kp as useMobxConfig, jp as useModalComponentData, Qp as useModalType, Ge as useStore, Jp as useTooltipType, ao as useViewerProps, Yp as validation }; //# sourceMappingURL=index.js.map