@react-form-builder/core
Version:
React JSON Schema Form Builder to create complex, validated, reusable forms with no deep React knowledge required
319 lines (318 loc) • 15.7 kB
JavaScript
import { FormViewerLite as r } from "./features/form-viewer/FormViewerLite.js";
import { NoopLocalizationEngine as p } from "./features/localization/NoopLocalizationEngine.js";
import { ActionDefinition as f } from "./features/event/ActionDefinition.js";
import { ActionEventArgs as i, ActionEventArgsDeclaration as a } from "./features/event/utils/ActionEventArgs.js";
import { Annotation as s } from "./features/annotation/types/annotations/Annotation.js";
import { AnnotationBuilder as d } from "./features/annotation/utils/builders/AnnotationBuilder.js";
import { ArrayBuilder as c } from "./features/annotation/utils/builders/ArrayBuilder.js";
import { AsyncFunction as b } from "./utils/AsyncFunction.js";
import { BaseBuilder as g, BuilderOptions as D } from "./features/annotation/utils/builders/BaseBuilder.js";
import { BiDi as P } from "./features/localization/bidi.js";
import { BuilderModeProvider as E, useBuilderMode as B } from "./utils/contexts/BuilderModeContext.js";
import { BuilderThemeProvider as M, useBuilderTheme as T } from "./utils/contexts/BuilderThemeContext.js";
import { BuilderView as V } from "./features/define/utils/BuilderView.js";
import { CalculableResult as O } from "./utils/CalculableResult.js";
import { CellInfoContextProvider as w } from "./features/table/CellInfoContext.js";
import { ComponentData as I, ComponentDataEvents as R, ComponentDataProvider as q, ComponentKeyChangedEventArgs as z, getEditableFormData as U, useComponentData as W } from "./utils/contexts/ComponentDataContext.js";
import { ComponentState as K } from "./stores/ComponentState.js";
import { ComponentStore as H, isFunctionalProperty as Q, isLocalizedProperty as G } from "./stores/ComponentStore.js";
import { ComponentTree as X } from "./features/ui/ComponentTree.js";
import { ContainerAnnotation as Z } from "./features/annotation/types/annotations/ContainerAnnotation.js";
import { DataValidator as $ } from "./features/validation/utils/DataValidator.js";
import { DefaultWrapper as oe } from "./features/ui/DefaultWrapper.js";
import { DidMountEvent as te, WillUnmountEvent as pe } from "./features/event/eventNames.js";
import { EventAnnotation as fe } from "./features/annotation/types/annotations/EventAnnotation.js";
import { Form as ie } from "./stores/Form.js";
import { FormViewerPropsStore as xe } from "./stores/FormViewerPropsStore.js";
import { IFormDataDeclaration as le } from "./utils/IFormData.js";
import { KeySymbol as ue } from "./consts.js";
import { Language as ye } from "./features/localization/language.js";
import { LocalizationStore as Ce } from "./stores/LocalizationStore.js";
import { Meta as De } from "./features/define/utils/Meta.js";
import { Model as Pe } from "./features/define/utils/Model.js";
import { ModuleAnnotation as Ee } from "./features/annotation/types/annotations/ModuleAnnotation.js";
import { NodeAnnotationBuilder as ve } from "./features/annotation/utils/builders/NodeAnnotationBuilder.js";
import { OneOfBuilder as Te } from "./features/annotation/utils/builders/OneOfBuilder.js";
import { PersistedFormVersion as Ve } from "./stores/PersistedForm.js";
import { PropertyAnnotation as Oe, isProperty as he } from "./features/annotation/types/annotations/PropertyAnnotation.js";
import { QuantifierBuilder as Le } from "./features/annotation/utils/builders/QuantifierBuilder.js";
import { SomeOfBuilder as Re } from "./features/annotation/utils/builders/SomeOfBuilder.js";
import { Store as ze } from "./stores/Store.js";
import { StoreContext as We, StoreProvider as ke, useStore as Ke } from "./utils/contexts/StoreContext.js";
import { StyleAnnotation as He } from "./features/annotation/types/annotations/StyleAnnotation.js";
import { SuppressResizeObserverErrors as Ge } from "./features/ui/SuppressResizeObserverErrors.js";
import { SyncEvent as Xe } from "./utils/SyncEvent.js";
import { TemplateField as Ze } from "./features/validation/utils/TemplateField.js";
import { TypedBuilder as $e } from "./features/annotation/utils/builders/TypedBuilder.js";
import { View as oo, createView as ro } from "./features/define/utils/View.js";
import { ViewerPropsProvider as po, useViewerProps as mo } from "./features/form-viewer/components/ViewerPropsContext.js";
import { array as no } from "./features/annotation/arrayAnnotation.js";
import { boolean as ao } from "./features/annotation/booleanAnnotation.js";
import { buildForm as so } from "./features/form-json-builder/FormJsonBuilder.js";
import { calculatePropertyValue as uo } from "./features/calculation/propertyCalculator.js";
import { camelCase as yo, cloneDeep as bo, debounce as Co, isBoolean as go, isDate as Do, isEmpty as Ao, isEqual as Po, isEqualWith as So, isNull as Eo, isNumber as Bo, isObject as vo, isUndefined as Mo, merge as To, startCase as Fo, toUpper as Vo, uniqueId as No, upperFirst as Oo } from "./utils/tools.js";
import { cfComponentIsPreset as wo, cfDisableActionEditors as Lo, cfDisableAdditionalProperties as Io, cfDisableComponentRemove as Ro, cfDisableMainComponentProperties as qo, cfDisableStyleProperties as zo, cfDisableStyles as Uo, cfDisableStylesForClassNameEditor as Wo, cfDisableTooltipProperties as ko, cfDisableWrapperStyles as Ko, cfEnableInlineStylesEditor as jo, cfHideFromComponentPalette as Ho } from "./features/define/utils/integratedComponentFeatures.js";
import { checkSlotCondition as Go, getChildren as Jo } from "./utils/getChildren.js";
import { className as Yo } from "./features/annotation/classNameAnnotation.js";
import { color as _o } from "./features/annotation/colorAnnotation.js";
import { commonStyles as er } from "./features/annotation/commonStyles.js";
import { containerStyles as rr } from "./features/annotation/containerStyles.js";
import { coreComponentsDescriptions as pr } from "./i18n/coreComponentsDescriptions.js";
import { createActionValuesFromObject as fr } from "./features/event/createActionValuesFromObject.js";
import { createAnnotation as ir } from "./features/annotation/utils/createAnnotation.js";
import { createNonNullableContext as xr } from "./utils/createNonNullableContext.js";
import { createProperty as lr } from "./features/annotation/utils/createProperty.js";
import { cssSize as ur } from "./features/annotation/cssSizeAnnotation.js";
import { date as yr } from "./features/annotation/dateAnnotation.js";
import { define as Cr, definePreset as gr } from "./features/define/utils/Definer.js";
import { disabled as Ar } from "./features/annotation/disabledAnnotation.js";
import { embeddedFormMeta as Sr } from "./features/template/embeddedFormMeta.js";
import { embeddedFormModel as Br } from "./features/template/embeddedFormModel.js";
import { emptyComponentStore as Mr } from "./utils/emptyComponentStore.js";
import { errorMessageModel as Fr } from "./features/validation/components/DefaultErrorMessage.js";
import { event as Nr } from "./features/annotation/eventAnnotation.js";
import { findLanguage as hr } from "./features/localization/findLanguage.js";
import { findTreeElementDepth as Lr, treeForEach as Ir } from "./utils/treeUtils.js";
import { fn as qr } from "./features/annotation/fnAnnotation.js";
import { forwardRef as Ur } from "./utils/forwardRefShim.js";
import { generateTemplateTypeName as kr, getTemplateName as Kr, isTemplateType as jr } from "./features/ui/templateUtil.js";
import { generateUniqueName as Qr } from "./utils/generateUniqueName.js";
import { getDefault as Jr } from "./features/annotation/utils/getDefault.js";
import { getDefaultCss as Yr } from "./features/annotation/utils/getDefaultCss.js";
import { getKey as _r } from "./utils/getKey.js";
import { getValidatorPropertyBlockType as et, isValidatorPropertyBlockType as ot } from "./features/ui/PropertyBlockType.js";
import { globalDefaultLanguage as tt } from "./features/localization/default.js";
import { groupBy as mt } from "./utils/groupBy.js";
import { htmlAttributes as nt } from "./features/annotation/htmlAttributesAnnotation.js";
import { internalErrorModel as at } from "./features/ui/internalErrorModel.js";
import { isContainer as st } from "./features/annotation/utils/isContainer.js";
import { isPromise as dt } from "./utils/isPromise.js";
import { isString as ct } from "./utils/isString.js";
import { isUniqueKey as bt } from "./features/annotation/utils/isUniqueKey.js";
import { key as gt } from "./features/annotation/keyAnnotation.js";
import { loadResource as At, unloadResource as Pt } from "./utils/resourceLoader.js";
import { nameAutorun as Et, nameObservable as Bt } from "./utils/observableNaming.js";
import { namedObserver as Mt } from "./utils/namedObserver.js";
import { needRender as Ft } from "./utils/needRender.js";
import { node as Nt } from "./features/annotation/nodeAnnotation.js";
import { nodeArray as ht } from "./features/annotation/nodeArrayAnnotation.js";
import { nonNegNumber as Lt } from "./features/annotation/nonNegNumberAnnotation.js";
import { number as Rt } from "./features/annotation/numberAnnotation.js";
import { object as zt } from "./features/annotation/objectAnnotation.js";
import { oneOf as Wt } from "./features/annotation/oneOfAnnotation.js";
import { oneOfStrict as Kt } from "./features/annotation/oneOfStrictAnnotation.js";
import { reactStylesToCss as Ht } from "./stores/css.js";
import { readOnly as Gt } from "./features/annotation/readOnlyAnnotation.js";
import { renderWhen as Xt } from "./features/annotation/renderWhenAnnotation.js";
import { required as Zt } from "./features/annotation/requiredAnnotation.js";
import { screenModel as $t } from "./features/ui/screenModel.js";
import { size as op } from "./features/annotation/sizeAnnotation.js";
import { slotModel as tp } from "./features/template/slotModel.js";
import { someOf as mp } from "./features/annotation/someOfAnnotation.js";
import { string as np } from "./features/annotation/stringAnnotation.js";
import { stringNode as ap } from "./features/annotation/stringNodeAnnotation.js";
import { time as sp } from "./features/annotation/timeAnnotation.js";
import { timeFormat as dp } from "./features/annotation/consts.js";
import { toArray as cp } from "./features/annotation/toArray.js";
import { toLabeledValues as bp } from "./features/annotation/utils/LabeledValue.js";
import { tooltipProps as gp } from "./features/annotation/tooltipPropsAnnotation.js";
import { tooltipType as Ap } from "./features/annotation/tooltipTypeAnnotation.js";
import { useAriaAttributes as Sp, useAriaAttributesIds as Ep, useAriaErrorMessage as Bp, useAriaInvalid as vp } from "./utils/useAriaAttributesIds.js";
import { useBuilderComponent as Tp } from "./utils/useBuilderComponent.js";
import { useBuilderValue as Vp } from "./utils/useBuilderValue.js";
import { useDisposable as Op } from "./utils/useDisposable.js";
import { useErrorMessage as wp } from "./utils/useErrorMessage.js";
import { useErrorModel as Ip } from "./utils/useErrorModel.js";
import { useMobxConfig as qp } from "./utils/useMobxConfig.js";
import { useModalComponentData as Up } from "./features/modal/useModalComponentData.js";
import { useModalType as kp } from "./features/modal/useModalType.js";
import { useTooltipType as jp } from "./utils/useTooltipType.js";
import { validation as Qp } from "./features/annotation/validationAnnotation.js";
export {
f as ActionDefinition,
i as ActionEventArgs,
a as ActionEventArgsDeclaration,
s as Annotation,
d as AnnotationBuilder,
c as ArrayBuilder,
b as AsyncFunction,
g as BaseBuilder,
P as BiDi,
E as BuilderModeProvider,
D as BuilderOptions,
M as BuilderThemeProvider,
V as BuilderView,
O as CalculableResult,
w as CellInfoContextProvider,
I as ComponentData,
R as ComponentDataEvents,
q as ComponentDataProvider,
z as ComponentKeyChangedEventArgs,
K as ComponentState,
H as ComponentStore,
X as ComponentTree,
Z as ContainerAnnotation,
$ as DataValidator,
oe as DefaultWrapper,
te as DidMountEvent,
fe as EventAnnotation,
ie as Form,
r as FormViewerLite,
xe as FormViewerPropsStore,
le as IFormDataDeclaration,
ue as KeySymbol,
ye as Language,
Ce as LocalizationStore,
De as Meta,
Pe as Model,
Ee as ModuleAnnotation,
ve as NodeAnnotationBuilder,
p as NoopLocalizationEngine,
Te as OneOfBuilder,
Ve as PersistedFormVersion,
Oe as PropertyAnnotation,
Le as QuantifierBuilder,
Re as SomeOfBuilder,
ze as Store,
We as StoreContext,
ke as StoreProvider,
He as StyleAnnotation,
Ge as SuppressResizeObserverErrors,
Xe as SyncEvent,
Ze as TemplateField,
$e as TypedBuilder,
oo as View,
po as ViewerPropsProvider,
pe as WillUnmountEvent,
no as array,
ao as boolean,
so as buildForm,
uo as calculatePropertyValue,
yo as camelCase,
wo as cfComponentIsPreset,
Lo as cfDisableActionEditors,
Io as cfDisableAdditionalProperties,
Ro as cfDisableComponentRemove,
qo as cfDisableMainComponentProperties,
zo as cfDisableStyleProperties,
Uo as cfDisableStyles,
Wo as cfDisableStylesForClassNameEditor,
ko as cfDisableTooltipProperties,
Ko as cfDisableWrapperStyles,
jo as cfEnableInlineStylesEditor,
Ho as cfHideFromComponentPalette,
Go as checkSlotCondition,
Yo as className,
bo as cloneDeep,
_o as color,
er as commonStyles,
rr as containerStyles,
pr as coreComponentsDescriptions,
fr as createActionValuesFromObject,
ir as createAnnotation,
xr as createNonNullableContext,
lr as createProperty,
ro as createView,
ur as cssSize,
yr as date,
Co as debounce,
Cr as define,
gr as definePreset,
Ar as disabled,
Sr as embeddedFormMeta,
Br as embeddedFormModel,
Mr as emptyComponentStore,
Fr as errorMessageModel,
Nr as event,
hr as findLanguage,
Lr as findTreeElementDepth,
qr as fn,
Ur as forwardRef,
kr as generateTemplateTypeName,
Qr as generateUniqueName,
Jo as getChildren,
Jr as getDefault,
Yr as getDefaultCss,
U as getEditableFormData,
_r as getKey,
Kr as getTemplateName,
et as getValidatorPropertyBlockType,
tt as globalDefaultLanguage,
mt as groupBy,
nt as htmlAttributes,
at as internalErrorModel,
go as isBoolean,
st as isContainer,
Do as isDate,
Ao as isEmpty,
Po as isEqual,
So as isEqualWith,
Q as isFunctionalProperty,
G as isLocalizedProperty,
Eo as isNull,
Bo as isNumber,
vo as isObject,
dt as isPromise,
he as isProperty,
ct as isString,
jr as isTemplateType,
Mo as isUndefined,
bt as isUniqueKey,
ot as isValidatorPropertyBlockType,
gt as key,
At as loadResource,
To as merge,
Et as nameAutorun,
Bt as nameObservable,
Mt as namedObserver,
Ft as needRender,
Nt as node,
ht as nodeArray,
Lt as nonNegNumber,
Rt as number,
zt as object,
Wt as oneOf,
Kt as oneOfStrict,
Ht as reactStylesToCss,
Gt as readOnly,
Xt as renderWhen,
Zt as required,
$t as screenModel,
op as size,
tp as slotModel,
mp as someOf,
Fo as startCase,
np as string,
ap as stringNode,
sp as time,
dp as timeFormat,
cp as toArray,
bp as toLabeledValues,
Vo as toUpper,
gp as tooltipProps,
Ap as tooltipType,
Ir as treeForEach,
No as uniqueId,
Pt as unloadResource,
Oo as upperFirst,
Sp as useAriaAttributes,
Ep as useAriaAttributesIds,
Bp as useAriaErrorMessage,
vp as useAriaInvalid,
Tp as useBuilderComponent,
B as useBuilderMode,
T as useBuilderTheme,
Vp as useBuilderValue,
W as useComponentData,
Op as useDisposable,
wp as useErrorMessage,
Ip as useErrorModel,
qp as useMobxConfig,
Up as useModalComponentData,
kp as useModalType,
Ke as useStore,
jp as useTooltipType,
mo as useViewerProps,
Qp as validation
};
//# sourceMappingURL=index-lite.js.map