@chobantonov/jsonforms-react-renderer-common 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +79 -2
- package/lib/cells/CellSummary.cjs.js +2 -0
- package/lib/cells/CellSummary.cjs.js.map +1 -0
- package/lib/cells/CellSummary.d.ts +14 -0
- package/lib/cells/CellSummary.esm.js +29 -0
- package/lib/cells/CellSummary.esm.js.map +1 -0
- package/lib/cells/cellMode.cjs.js +2 -0
- package/lib/cells/cellMode.cjs.js.map +1 -0
- package/lib/cells/cellMode.d.ts +14 -0
- package/lib/cells/cellMode.esm.js +6 -0
- package/lib/cells/cellMode.esm.js.map +1 -0
- package/lib/cells/compositeActions.cjs.js +2 -0
- package/lib/cells/compositeActions.cjs.js.map +1 -0
- package/lib/cells/compositeActions.d.ts +7 -0
- package/lib/cells/compositeActions.esm.js +14 -0
- package/lib/cells/compositeActions.esm.js.map +1 -0
- package/lib/cells/compositeCellTester.cjs.js +2 -0
- package/lib/cells/compositeCellTester.cjs.js.map +1 -0
- package/lib/cells/compositeCellTester.d.ts +2 -0
- package/lib/cells/compositeCellTester.esm.js +12 -0
- package/lib/cells/compositeCellTester.esm.js.map +1 -0
- package/lib/cells/compositeSummary.cjs.js +2 -0
- package/lib/cells/compositeSummary.cjs.js.map +1 -0
- package/lib/cells/compositeSummary.d.ts +10 -0
- package/lib/cells/compositeSummary.esm.js +44 -0
- package/lib/cells/compositeSummary.esm.js.map +1 -0
- package/lib/cells/useCompositeCellPresentation.cjs.js +2 -0
- package/lib/cells/useCompositeCellPresentation.cjs.js.map +1 -0
- package/lib/cells/useCompositeCellPresentation.d.ts +7 -0
- package/lib/cells/useCompositeCellPresentation.esm.js +18 -0
- package/lib/cells/useCompositeCellPresentation.esm.js.map +1 -0
- package/lib/cells/useCompositeDraft.cjs.js +2 -0
- package/lib/cells/useCompositeDraft.cjs.js.map +1 -0
- package/lib/cells/useCompositeDraft.d.ts +52 -0
- package/lib/cells/useCompositeDraft.esm.js +95 -0
- package/lib/cells/useCompositeDraft.esm.js.map +1 -0
- package/lib/collections/CollectionErrorNavigation.cjs.js +2 -0
- package/lib/collections/CollectionErrorNavigation.cjs.js.map +1 -0
- package/lib/collections/CollectionErrorNavigation.d.ts +12 -0
- package/lib/collections/CollectionErrorNavigation.esm.js +68 -0
- package/lib/collections/CollectionErrorNavigation.esm.js.map +1 -0
- package/lib/collections/arrayChoices.cjs.js +2 -0
- package/lib/collections/arrayChoices.cjs.js.map +1 -0
- package/lib/collections/arrayChoices.d.ts +85 -0
- package/lib/collections/arrayChoices.esm.js +54 -0
- package/lib/collections/arrayChoices.esm.js.map +1 -0
- package/lib/collections/collectionPagination.cjs.js +2 -0
- package/lib/collections/collectionPagination.cjs.js.map +1 -0
- package/lib/collections/collectionPagination.d.ts +22 -0
- package/lib/collections/collectionPagination.esm.js +51 -0
- package/lib/collections/collectionPagination.esm.js.map +1 -0
- package/lib/collections/columnResize.cjs.js +2 -0
- package/lib/collections/columnResize.cjs.js.map +1 -0
- package/lib/collections/columnResize.d.ts +16 -0
- package/lib/collections/columnResize.esm.js +85 -0
- package/lib/collections/columnResize.esm.js.map +1 -0
- package/lib/collections/rowDetail.cjs.js +2 -0
- package/lib/collections/rowDetail.cjs.js.map +1 -0
- package/lib/collections/rowDetail.d.ts +34 -0
- package/lib/collections/rowDetail.esm.js +106 -0
- package/lib/collections/rowDetail.esm.js.map +1 -0
- package/lib/collections/tableColumns.cjs.js +2 -0
- package/lib/collections/tableColumns.cjs.js.map +1 -0
- package/lib/collections/tableColumns.d.ts +13 -0
- package/lib/collections/tableColumns.esm.js +16 -0
- package/lib/collections/tableColumns.esm.js.map +1 -0
- package/lib/collections/useArrayPanelState.cjs.js +2 -0
- package/lib/collections/useArrayPanelState.cjs.js.map +1 -0
- package/lib/collections/useArrayPanelState.d.ts +7 -0
- package/lib/collections/useArrayPanelState.esm.js +18 -0
- package/lib/collections/useArrayPanelState.esm.js.map +1 -0
- package/lib/collections/useCollectionDelete.cjs.js +2 -0
- package/lib/collections/useCollectionDelete.cjs.js.map +1 -0
- package/lib/collections/useCollectionDelete.d.ts +17 -0
- package/lib/collections/useCollectionDelete.esm.js +38 -0
- package/lib/collections/useCollectionDelete.esm.js.map +1 -0
- package/lib/collections/useTableSelection.cjs.js +2 -0
- package/lib/collections/useTableSelection.cjs.js.map +1 -0
- package/lib/collections/useTableSelection.d.ts +11 -0
- package/lib/collections/useTableSelection.esm.js +41 -0
- package/lib/collections/useTableSelection.esm.js.map +1 -0
- package/lib/composition/AllOfRenderer.cjs.js +2 -0
- package/lib/composition/AllOfRenderer.cjs.js.map +1 -0
- package/lib/composition/AllOfRenderer.d.ts +5 -0
- package/lib/composition/AllOfRenderer.esm.js +33 -0
- package/lib/composition/AllOfRenderer.esm.js.map +1 -0
- package/lib/composition/CombinatorBranch.cjs.js +2 -0
- package/lib/composition/CombinatorBranch.cjs.js.map +1 -0
- package/lib/composition/CombinatorBranch.d.ts +17 -0
- package/lib/composition/CombinatorBranch.esm.js +54 -0
- package/lib/composition/CombinatorBranch.esm.js.map +1 -0
- package/lib/composition/CombinatorProperties.cjs.js +2 -0
- package/lib/composition/CombinatorProperties.cjs.js.map +1 -0
- package/lib/composition/CombinatorProperties.d.ts +12 -0
- package/lib/composition/CombinatorProperties.esm.js +20 -0
- package/lib/composition/CombinatorProperties.esm.js.map +1 -0
- package/lib/composition/ScalarCompositionControl.cjs.js +2 -0
- package/lib/composition/ScalarCompositionControl.cjs.js.map +1 -0
- package/lib/composition/ScalarCompositionControl.d.ts +6 -0
- package/lib/composition/ScalarCompositionControl.esm.js +22 -0
- package/lib/composition/ScalarCompositionControl.esm.js.map +1 -0
- package/lib/composition/choiceCards.cjs.js +2 -0
- package/lib/composition/choiceCards.cjs.js.map +1 -0
- package/lib/composition/choiceCards.d.ts +36 -0
- package/lib/composition/choiceCards.esm.js +162 -0
- package/lib/composition/choiceCards.esm.js.map +1 -0
- package/lib/composition/combinators.cjs.js +2 -0
- package/lib/composition/combinators.cjs.js.map +1 -0
- package/lib/composition/combinators.d.ts +40 -0
- package/lib/composition/combinators.esm.js +26 -0
- package/lib/composition/combinators.esm.js.map +1 -0
- package/lib/composition/discriminatorBranch.cjs.js +2 -0
- package/lib/composition/discriminatorBranch.cjs.js.map +1 -0
- package/lib/composition/discriminatorBranch.d.ts +6 -0
- package/lib/composition/discriminatorBranch.esm.js +41 -0
- package/lib/composition/discriminatorBranch.esm.js.map +1 -0
- package/lib/composition/scalarComposition.cjs.js +2 -0
- package/lib/composition/scalarComposition.cjs.js.map +1 -0
- package/lib/composition/scalarComposition.d.ts +27 -0
- package/lib/composition/scalarComposition.esm.js +76 -0
- package/lib/composition/scalarComposition.esm.js.map +1 -0
- package/lib/composition/useCombinatorSelection.cjs.js +2 -0
- package/lib/composition/useCombinatorSelection.cjs.js.map +1 -0
- package/lib/composition/useCombinatorSelection.d.ts +6 -0
- package/lib/composition/useCombinatorSelection.esm.js +22 -0
- package/lib/composition/useCombinatorSelection.esm.js.map +1 -0
- package/lib/composition/useScalarComposition.cjs.js +2 -0
- package/lib/composition/useScalarComposition.cjs.js.map +1 -0
- package/lib/composition/useScalarComposition.d.ts +18 -0
- package/lib/composition/useScalarComposition.esm.js +24 -0
- package/lib/composition/useScalarComposition.esm.js.map +1 -0
- package/lib/controls/FileArrayInput.cjs.js +2 -0
- package/lib/controls/FileArrayInput.cjs.js.map +1 -0
- package/lib/controls/FileArrayInput.d.ts +19 -0
- package/lib/controls/FileArrayInput.esm.js +232 -0
- package/lib/controls/FileArrayInput.esm.js.map +1 -0
- package/lib/controls/controlHelp.cjs.js +2 -0
- package/lib/controls/controlHelp.cjs.js.map +1 -0
- package/lib/controls/controlHelp.d.ts +15 -0
- package/lib/controls/controlHelp.esm.js +9 -0
- package/lib/controls/controlHelp.esm.js.map +1 -0
- package/lib/controls/inputAdornments.cjs.js +2 -0
- package/lib/controls/inputAdornments.cjs.js.map +1 -0
- package/lib/controls/inputAdornments.d.ts +32 -0
- package/lib/controls/inputAdornments.esm.js +192 -0
- package/lib/controls/inputAdornments.esm.js.map +1 -0
- package/lib/controls/numeric.cjs.js +2 -0
- package/lib/controls/numeric.cjs.js.map +1 -0
- package/lib/controls/numeric.d.ts +36 -0
- package/lib/controls/numeric.esm.js +9 -0
- package/lib/controls/numeric.esm.js.map +1 -0
- package/lib/controls/useClearAffordance.cjs.js +2 -0
- package/lib/controls/useClearAffordance.cjs.js.map +1 -0
- package/lib/controls/useClearAffordance.d.ts +15 -0
- package/lib/controls/useClearAffordance.esm.js +17 -0
- package/lib/controls/useClearAffordance.esm.js.map +1 -0
- package/lib/controls/useDebouncedChange.cjs.js +2 -0
- package/lib/controls/useDebouncedChange.cjs.js.map +1 -0
- package/lib/controls/useDebouncedChange.d.ts +37 -0
- package/lib/controls/useDebouncedChange.esm.js +40 -0
- package/lib/controls/useDebouncedChange.esm.js.map +1 -0
- package/lib/controls/useFocus.cjs.js +2 -0
- package/lib/controls/useFocus.cjs.js.map +1 -0
- package/lib/controls/useFocus.d.ts +1 -0
- package/lib/controls/useFocus.esm.js +13 -0
- package/lib/controls/useFocus.esm.js.map +1 -0
- package/lib/core/configNamespaces.cjs.js +2 -0
- package/lib/core/configNamespaces.cjs.js.map +1 -0
- package/lib/core/configNamespaces.d.ts +32 -0
- package/lib/core/configNamespaces.esm.js +15 -0
- package/lib/core/configNamespaces.esm.js.map +1 -0
- package/lib/core/dataPointer.cjs.js +2 -0
- package/lib/core/dataPointer.cjs.js.map +1 -0
- package/lib/core/dataPointer.d.ts +1 -0
- package/lib/core/dataPointer.esm.js +5 -0
- package/lib/core/dataPointer.esm.js.map +1 -0
- package/lib/core/detailUiSchema.cjs.js +2 -0
- package/lib/core/detailUiSchema.cjs.js.map +1 -0
- package/lib/core/detailUiSchema.d.ts +7 -0
- package/lib/core/detailUiSchema.esm.js +23 -0
- package/lib/core/detailUiSchema.esm.js.map +1 -0
- package/lib/core/plainRecord.cjs.js +2 -0
- package/lib/core/plainRecord.cjs.js.map +1 -0
- package/lib/core/plainRecord.d.ts +1 -0
- package/lib/core/plainRecord.esm.js +5 -0
- package/lib/core/plainRecord.esm.js.map +1 -0
- package/lib/core/uiSchemaCycle.cjs.js +2 -0
- package/lib/core/uiSchemaCycle.cjs.js.map +1 -0
- package/lib/core/uiSchemaCycle.d.ts +18 -0
- package/lib/core/uiSchemaCycle.esm.js +27 -0
- package/lib/core/uiSchemaCycle.esm.js.map +1 -0
- package/lib/dynamic/DynamicUiProvider.cjs.js +4 -0
- package/lib/dynamic/DynamicUiProvider.cjs.js.map +1 -0
- package/lib/dynamic/DynamicUiProvider.d.ts +35 -0
- package/lib/dynamic/DynamicUiProvider.esm.js +182 -0
- package/lib/dynamic/DynamicUiProvider.esm.js.map +1 -0
- package/lib/dynamic/dynamicCel.cjs.js +2 -0
- package/lib/dynamic/dynamicCel.cjs.js.map +1 -0
- package/lib/dynamic/dynamicCel.d.ts +1 -0
- package/lib/dynamic/dynamicCel.esm.js +43 -0
- package/lib/dynamic/dynamicCel.esm.js.map +1 -0
- package/lib/dynamic/dynamicConfig.cjs.js +2 -0
- package/lib/dynamic/dynamicConfig.cjs.js.map +1 -0
- package/lib/dynamic/dynamicConfig.d.ts +7 -0
- package/lib/dynamic/dynamicConfig.esm.js +13 -0
- package/lib/dynamic/dynamicConfig.esm.js.map +1 -0
- package/lib/dynamic/dynamicRuntime.cjs.js +2 -0
- package/lib/dynamic/dynamicRuntime.cjs.js.map +1 -0
- package/lib/dynamic/dynamicRuntime.d.ts +4 -0
- package/lib/dynamic/dynamicRuntime.esm.js +16 -0
- package/lib/dynamic/dynamicRuntime.esm.js.map +1 -0
- package/lib/dynamic/dynamicScope.cjs.js +2 -0
- package/lib/dynamic/dynamicScope.cjs.js.map +1 -0
- package/lib/dynamic/dynamicScope.d.ts +2 -0
- package/lib/dynamic/dynamicScope.esm.js +17 -0
- package/lib/dynamic/dynamicScope.esm.js.map +1 -0
- package/lib/dynamic/dynamicTree.cjs.js +2 -0
- package/lib/dynamic/dynamicTree.cjs.js.map +1 -0
- package/lib/dynamic/dynamicTree.d.ts +12 -0
- package/lib/dynamic/dynamicTree.esm.js +57 -0
- package/lib/dynamic/dynamicTree.esm.js.map +1 -0
- package/lib/dynamic/dynamicUi.cjs.js +2 -0
- package/lib/dynamic/dynamicUi.cjs.js.map +1 -0
- package/lib/dynamic/dynamicUi.d.ts +39 -0
- package/lib/dynamic/dynamicUi.esm.js +397 -0
- package/lib/dynamic/dynamicUi.esm.js.map +1 -0
- package/lib/formats/colorFormat.cjs.js +2 -0
- package/lib/formats/colorFormat.cjs.js.map +1 -0
- package/lib/formats/colorFormat.d.ts +127 -0
- package/lib/formats/colorFormat.esm.js +139 -0
- package/lib/formats/colorFormat.esm.js.map +1 -0
- package/lib/formats/dateValues.cjs.js +2 -0
- package/lib/formats/dateValues.cjs.js.map +1 -0
- package/lib/formats/dateValues.d.ts +3 -0
- package/lib/formats/dateValues.esm.js +21 -0
- package/lib/formats/dateValues.esm.js.map +1 -0
- package/lib/formats/duration.cjs.js +2 -0
- package/lib/formats/duration.cjs.js.map +1 -0
- package/lib/formats/duration.d.ts +13 -0
- package/lib/formats/duration.esm.js +28 -0
- package/lib/formats/duration.esm.js.map +1 -0
- package/lib/formats/maskControls.cjs.js +2 -0
- package/lib/formats/maskControls.cjs.js.map +1 -0
- package/lib/formats/maskControls.d.ts +32 -0
- package/lib/formats/maskControls.esm.js +16 -0
- package/lib/formats/maskControls.esm.js.map +1 -0
- package/lib/formats/maskFormat.cjs.js +2 -0
- package/lib/formats/maskFormat.cjs.js.map +1 -0
- package/lib/formats/maskFormat.d.ts +198 -0
- package/lib/formats/maskFormat.esm.js +79 -0
- package/lib/formats/maskFormat.esm.js.map +1 -0
- package/lib/formats/temporalBounds.cjs.js +2 -0
- package/lib/formats/temporalBounds.cjs.js.map +1 -0
- package/lib/formats/temporalBounds.d.ts +82 -0
- package/lib/formats/temporalBounds.esm.js +76 -0
- package/lib/formats/temporalBounds.esm.js.map +1 -0
- package/lib/formats/temporalFormats.cjs.js +2 -0
- package/lib/formats/temporalFormats.cjs.js.map +1 -0
- package/lib/formats/temporalFormats.d.ts +62 -0
- package/lib/formats/temporalFormats.esm.js +18 -0
- package/lib/formats/temporalFormats.esm.js.map +1 -0
- package/lib/formats/useMaskedInput.cjs.js +2 -0
- package/lib/formats/useMaskedInput.cjs.js.map +1 -0
- package/lib/formats/useMaskedInput.d.ts +11 -0
- package/lib/formats/useMaskedInput.esm.js +80 -0
- package/lib/formats/useMaskedInput.esm.js.map +1 -0
- package/lib/index.cjs.js +1 -0
- package/lib/index.d.ts +42 -0
- package/lib/index.esm.js +44 -0
- package/lib/interaction/confirmation.cjs.js +2 -0
- package/lib/interaction/confirmation.cjs.js.map +1 -0
- package/lib/interaction/confirmation.d.ts +112 -0
- package/lib/interaction/confirmation.esm.js +18 -0
- package/lib/interaction/confirmation.esm.js.map +1 -0
- package/lib/interaction/createDeleteConfirmation.cjs.js +2 -0
- package/lib/interaction/createDeleteConfirmation.cjs.js.map +1 -0
- package/lib/interaction/createDeleteConfirmation.d.ts +10 -0
- package/lib/interaction/createDeleteConfirmation.esm.js +17 -0
- package/lib/interaction/createDeleteConfirmation.esm.js.map +1 -0
- package/lib/interaction/detailDialog.cjs.js +2 -0
- package/lib/interaction/detailDialog.cjs.js.map +1 -0
- package/lib/interaction/detailDialog.d.ts +30 -0
- package/lib/interaction/detailDialog.esm.js +89 -0
- package/lib/interaction/detailDialog.esm.js.map +1 -0
- package/lib/interaction/pendingChanges.cjs.js +2 -0
- package/lib/interaction/pendingChanges.cjs.js.map +1 -0
- package/lib/interaction/pendingChanges.d.ts +19 -0
- package/lib/interaction/pendingChanges.esm.js +17 -0
- package/lib/interaction/pendingChanges.esm.js.map +1 -0
- package/lib/interaction/useConfirmationState.cjs.js +2 -0
- package/lib/interaction/useConfirmationState.cjs.js.map +1 -0
- package/lib/interaction/useConfirmationState.d.ts +11 -0
- package/lib/interaction/useConfirmationState.esm.js +39 -0
- package/lib/interaction/useConfirmationState.esm.js.map +1 -0
- package/lib/interaction/visuallyHidden.cjs.js +2 -0
- package/lib/interaction/visuallyHidden.cjs.js.map +1 -0
- package/lib/interaction/visuallyHidden.d.ts +9 -0
- package/lib/interaction/visuallyHidden.esm.js +14 -0
- package/lib/interaction/visuallyHidden.esm.js.map +1 -0
- package/lib/layout/categoryState.cjs.js +2 -0
- package/lib/layout/categoryState.cjs.js.map +1 -0
- package/lib/layout/categoryState.d.ts +66 -0
- package/lib/layout/categoryState.esm.js +42 -0
- package/lib/layout/categoryState.esm.js.map +1 -0
- package/lib/layout/groupState.cjs.js +2 -0
- package/lib/layout/groupState.cjs.js.map +1 -0
- package/lib/layout/groupState.d.ts +34 -0
- package/lib/layout/groupState.esm.js +63 -0
- package/lib/layout/groupState.esm.js.map +1 -0
- package/lib/layout/layoutContext.cjs.js +2 -0
- package/lib/layout/layoutContext.cjs.js.map +1 -0
- package/lib/layout/layoutContext.d.ts +16 -0
- package/lib/layout/layoutContext.esm.js +26 -0
- package/lib/layout/layoutContext.esm.js.map +1 -0
- package/lib/layout/layoutSizing.cjs.js +2 -0
- package/lib/layout/layoutSizing.cjs.js.map +1 -0
- package/lib/layout/layoutSizing.d.ts +104 -0
- package/lib/layout/layoutSizing.esm.js +69 -0
- package/lib/layout/layoutSizing.esm.js.map +1 -0
- package/lib/locale/bg.cjs.js +2 -0
- package/lib/locale/bg.cjs.js.map +1 -0
- package/lib/locale/bg.d.ts +279 -0
- package/lib/locale/bg.esm.js +271 -0
- package/lib/locale/bg.esm.js.map +1 -0
- package/lib/locale/calendar.cjs.js +2 -0
- package/lib/locale/calendar.cjs.js.map +1 -0
- package/lib/locale/calendar.d.ts +23 -0
- package/lib/locale/calendar.esm.js +57 -0
- package/lib/locale/calendar.esm.js.map +1 -0
- package/lib/locale/en.cjs.js +2 -0
- package/lib/locale/en.cjs.js.map +1 -0
- package/lib/locale/en.d.ts +275 -0
- package/lib/locale/en.esm.js +271 -0
- package/lib/locale/en.esm.js.map +1 -0
- package/lib/locale/index.cjs.js +1 -0
- package/lib/locale/index.d.ts +3 -0
- package/lib/locale/index.esm.js +3 -0
- package/lib/locale/intl.cjs.js +2 -0
- package/lib/locale/intl.cjs.js.map +1 -0
- package/lib/locale/intl.d.ts +2 -0
- package/lib/locale/intl.esm.js +11 -0
- package/lib/locale/intl.esm.js.map +1 -0
- package/lib/locale/rendererLocale.cjs.js +2 -0
- package/lib/locale/rendererLocale.cjs.js.map +1 -0
- package/lib/locale/rendererLocale.d.ts +40 -0
- package/lib/locale/rendererLocale.esm.js +24 -0
- package/lib/locale/rendererLocale.esm.js.map +1 -0
- package/lib/locale/translate.cjs.js +2 -0
- package/lib/locale/translate.cjs.js.map +1 -0
- package/lib/locale/translate.d.ts +43 -0
- package/lib/locale/translate.esm.js +25 -0
- package/lib/locale/translate.esm.js.map +1 -0
- package/lib/mixed/MixedDetailControl.cjs.js +2 -0
- package/lib/mixed/MixedDetailControl.cjs.js.map +1 -0
- package/lib/mixed/MixedDetailControl.d.ts +20 -0
- package/lib/mixed/MixedDetailControl.esm.js +73 -0
- package/lib/mixed/MixedDetailControl.esm.js.map +1 -0
- package/lib/mixed/RecursiveTreeRenderer.cjs.js +2 -0
- package/lib/mixed/RecursiveTreeRenderer.cjs.js.map +1 -0
- package/lib/mixed/RecursiveTreeRenderer.d.ts +35 -0
- package/lib/mixed/RecursiveTreeRenderer.esm.js +206 -0
- package/lib/mixed/RecursiveTreeRenderer.esm.js.map +1 -0
- package/lib/mixed/createMixedTypeChangeHandler.cjs.js +2 -0
- package/lib/mixed/createMixedTypeChangeHandler.cjs.js.map +1 -0
- package/lib/mixed/createMixedTypeChangeHandler.d.ts +16 -0
- package/lib/mixed/createMixedTypeChangeHandler.esm.js +34 -0
- package/lib/mixed/createMixedTypeChangeHandler.esm.js.map +1 -0
- package/lib/mixed/mixedComposition.cjs.js +2 -0
- package/lib/mixed/mixedComposition.cjs.js.map +1 -0
- package/lib/mixed/mixedComposition.d.ts +7 -0
- package/lib/mixed/mixedComposition.esm.js +37 -0
- package/lib/mixed/mixedComposition.esm.js.map +1 -0
- package/lib/mixed/mixedNodeEditor.cjs.js +2 -0
- package/lib/mixed/mixedNodeEditor.cjs.js.map +1 -0
- package/lib/mixed/mixedNodeEditor.d.ts +12 -0
- package/lib/mixed/mixedNodeEditor.esm.js +20 -0
- package/lib/mixed/mixedNodeEditor.esm.js.map +1 -0
- package/lib/mixed/mixedScalar.cjs.js +2 -0
- package/lib/mixed/mixedScalar.cjs.js.map +1 -0
- package/lib/mixed/mixedScalar.d.ts +4 -0
- package/lib/mixed/mixedScalar.esm.js +6 -0
- package/lib/mixed/mixedScalar.esm.js.map +1 -0
- package/lib/mixed/mixedSchema.cjs.js +2 -0
- package/lib/mixed/mixedSchema.cjs.js.map +1 -0
- package/lib/mixed/mixedSchema.d.ts +22 -0
- package/lib/mixed/mixedSchema.esm.js +88 -0
- package/lib/mixed/mixedSchema.esm.js.map +1 -0
- package/lib/mixed/mixedTree.cjs.js +2 -0
- package/lib/mixed/mixedTree.cjs.js.map +1 -0
- package/lib/mixed/mixedTree.d.ts +19 -0
- package/lib/mixed/mixedTree.esm.js +78 -0
- package/lib/mixed/mixedTree.esm.js.map +1 -0
- package/lib/mixed/mixedTreeActions.cjs.js +2 -0
- package/lib/mixed/mixedTreeActions.cjs.js.map +1 -0
- package/lib/mixed/mixedTreeActions.d.ts +6 -0
- package/lib/mixed/mixedTreeActions.esm.js +17 -0
- package/lib/mixed/mixedTreeActions.esm.js.map +1 -0
- package/lib/mixed/recursiveTree.cjs.js +2 -0
- package/lib/mixed/recursiveTree.cjs.js.map +1 -0
- package/lib/mixed/recursiveTree.d.ts +9 -0
- package/lib/mixed/recursiveTree.esm.js +49 -0
- package/lib/mixed/recursiveTree.esm.js.map +1 -0
- package/lib/mixed/useMixedNavigation.cjs.js +2 -0
- package/lib/mixed/useMixedNavigation.cjs.js.map +1 -0
- package/lib/mixed/useMixedNavigation.d.ts +6 -0
- package/lib/mixed/useMixedNavigation.esm.js +21 -0
- package/lib/mixed/useMixedNavigation.esm.js.map +1 -0
- package/lib/mixed/useMixedRenderer.cjs.js +2 -0
- package/lib/mixed/useMixedRenderer.cjs.js.map +1 -0
- package/lib/mixed/useMixedRenderer.d.ts +61 -0
- package/lib/mixed/useMixedRenderer.esm.js +185 -0
- package/lib/mixed/useMixedRenderer.esm.js.map +1 -0
- package/lib/mixed/useMixedType.cjs.js +2 -0
- package/lib/mixed/useMixedType.cjs.js.map +1 -0
- package/lib/mixed/useMixedType.d.ts +6 -0
- package/lib/mixed/useMixedType.esm.js +23 -0
- package/lib/mixed/useMixedType.esm.js.map +1 -0
- package/lib/objects/IsolatedPropertyEditor.cjs.js +2 -0
- package/lib/objects/IsolatedPropertyEditor.cjs.js.map +1 -0
- package/lib/objects/IsolatedPropertyEditor.d.ts +35 -0
- package/lib/objects/IsolatedPropertyEditor.esm.js +27 -0
- package/lib/objects/IsolatedPropertyEditor.esm.js.map +1 -0
- package/lib/objects/ObjectDetail.cjs.js +2 -0
- package/lib/objects/ObjectDetail.cjs.js.map +1 -0
- package/lib/objects/ObjectDetail.d.ts +42 -0
- package/lib/objects/ObjectDetail.esm.js +103 -0
- package/lib/objects/ObjectDetail.esm.js.map +1 -0
- package/lib/objects/additionalProperties.cjs.js +2 -0
- package/lib/objects/additionalProperties.cjs.js.map +1 -0
- package/lib/objects/additionalProperties.d.ts +14 -0
- package/lib/objects/additionalProperties.esm.js +41 -0
- package/lib/objects/additionalProperties.esm.js.map +1 -0
- package/lib/objects/additionalPropertyName.cjs.js +2 -0
- package/lib/objects/additionalPropertyName.cjs.js.map +1 -0
- package/lib/objects/additionalPropertyName.d.ts +63 -0
- package/lib/objects/additionalPropertyName.esm.js +46 -0
- package/lib/objects/additionalPropertyName.esm.js.map +1 -0
- package/lib/objects/conditionalFields.cjs.js +2 -0
- package/lib/objects/conditionalFields.cjs.js.map +1 -0
- package/lib/objects/conditionalFields.d.ts +18 -0
- package/lib/objects/conditionalFields.esm.js +105 -0
- package/lib/objects/conditionalFields.esm.js.map +1 -0
- package/lib/objects/dynamicProperties.cjs.js +2 -0
- package/lib/objects/dynamicProperties.cjs.js.map +1 -0
- package/lib/objects/dynamicProperties.d.ts +10 -0
- package/lib/objects/dynamicProperties.esm.js +33 -0
- package/lib/objects/dynamicProperties.esm.js.map +1 -0
- package/lib/objects/literalPropertySchema.cjs.js +2 -0
- package/lib/objects/literalPropertySchema.cjs.js.map +1 -0
- package/lib/objects/literalPropertySchema.d.ts +2 -0
- package/lib/objects/literalPropertySchema.esm.js +38 -0
- package/lib/objects/literalPropertySchema.esm.js.map +1 -0
- package/lib/objects/useAdditionalPropertyEntries.cjs.js +2 -0
- package/lib/objects/useAdditionalPropertyEntries.cjs.js.map +1 -0
- package/lib/objects/useAdditionalPropertyEntries.d.ts +72 -0
- package/lib/objects/useAdditionalPropertyEntries.esm.js +71 -0
- package/lib/objects/useAdditionalPropertyEntries.esm.js.map +1 -0
- package/lib/rolldown-runtime-BocRIvOZ.js +1 -0
- package/lib/tuple/TupleControlContent.cjs.js +2 -0
- package/lib/tuple/TupleControlContent.cjs.js.map +1 -0
- package/lib/tuple/TupleControlContent.d.ts +17 -0
- package/lib/tuple/TupleControlContent.esm.js +74 -0
- package/lib/tuple/TupleControlContent.esm.js.map +1 -0
- package/lib/tuple/TupleField.cjs.js +2 -0
- package/lib/tuple/TupleField.cjs.js.map +1 -0
- package/lib/tuple/TupleField.d.ts +15 -0
- package/lib/tuple/TupleField.esm.js +72 -0
- package/lib/tuple/TupleField.esm.js.map +1 -0
- package/lib/tuple/tupleSchema.cjs.js +2 -0
- package/lib/tuple/tupleSchema.cjs.js.map +1 -0
- package/lib/tuple/tupleSchema.d.ts +93 -0
- package/lib/tuple/tupleSchema.esm.js +63 -0
- package/lib/tuple/tupleSchema.esm.js.map +1 -0
- package/lib/tuple/useTupleAdditionalItems.cjs.js +2 -0
- package/lib/tuple/useTupleAdditionalItems.cjs.js.map +1 -0
- package/lib/tuple/useTupleAdditionalItems.d.ts +45 -0
- package/lib/tuple/useTupleAdditionalItems.esm.js +47 -0
- package/lib/tuple/useTupleAdditionalItems.esm.js.map +1 -0
- package/lib/tuple/useTupleControl.cjs.js +3 -0
- package/lib/tuple/useTupleControl.cjs.js.map +1 -0
- package/lib/tuple/useTupleControl.d.ts +26 -0
- package/lib/tuple/useTupleControl.esm.js +84 -0
- package/lib/tuple/useTupleControl.esm.js.map +1 -0
- package/lib/tuple/useTupleField.cjs.js +2 -0
- package/lib/tuple/useTupleField.cjs.js.map +1 -0
- package/lib/tuple/useTupleField.d.ts +38 -0
- package/lib/tuple/useTupleField.esm.js +80 -0
- package/lib/tuple/useTupleField.esm.js.map +1 -0
- package/lib/validation/ItemValidationIndicator.cjs.js +2 -0
- package/lib/validation/ItemValidationIndicator.cjs.js.map +1 -0
- package/lib/validation/ItemValidationIndicator.d.ts +9 -0
- package/lib/validation/ItemValidationIndicator.esm.js +14 -0
- package/lib/validation/ItemValidationIndicator.esm.js.map +1 -0
- package/lib/validation/errorSummary.cjs.js +9 -0
- package/lib/validation/errorSummary.cjs.js.map +1 -0
- package/lib/validation/errorSummary.d.ts +44 -0
- package/lib/validation/errorSummary.esm.js +194 -0
- package/lib/validation/errorSummary.esm.js.map +1 -0
- package/lib/validation/preTouchErrors.cjs.js +2 -0
- package/lib/validation/preTouchErrors.cjs.js.map +1 -0
- package/lib/validation/preTouchErrors.d.ts +77 -0
- package/lib/validation/preTouchErrors.esm.js +42 -0
- package/lib/validation/preTouchErrors.esm.js.map +1 -0
- package/lib/validation/validationIndicator.cjs.js +2 -0
- package/lib/validation/validationIndicator.cjs.js.map +1 -0
- package/lib/validation/validationIndicator.d.ts +72 -0
- package/lib/validation/validationIndicator.esm.js +66 -0
- package/lib/validation/validationIndicator.esm.js.map +1 -0
- package/lib/webcomponent/element.cjs.js +2 -0
- package/lib/webcomponent/element.cjs.js.map +1 -0
- package/lib/webcomponent/element.d.ts +48 -0
- package/lib/webcomponent/element.esm.js +85 -0
- package/lib/webcomponent/element.esm.js.map +1 -0
- package/lib/webcomponent/input.cjs.js +2 -0
- package/lib/webcomponent/input.cjs.js.map +1 -0
- package/lib/webcomponent/input.d.ts +6 -0
- package/lib/webcomponent/input.esm.js +25 -0
- package/lib/webcomponent/input.esm.js.map +1 -0
- package/package.json +86 -3
- package/src/cells/CellSummary.tsx +59 -0
- package/src/cells/cellMode.tsx +21 -0
- package/src/cells/compositeActions.ts +21 -0
- package/src/cells/compositeCellTester.ts +15 -0
- package/src/cells/compositeSummary.ts +149 -0
- package/src/cells/useCompositeCellPresentation.ts +37 -0
- package/src/cells/useCompositeDraft.ts +199 -0
- package/src/collections/CollectionErrorNavigation.tsx +123 -0
- package/src/collections/arrayChoices.ts +235 -0
- package/src/collections/collectionPagination.ts +95 -0
- package/src/collections/columnResize.tsx +151 -0
- package/src/collections/rowDetail.tsx +208 -0
- package/src/collections/tableColumns.ts +39 -0
- package/src/collections/useArrayPanelState.ts +25 -0
- package/src/collections/useCollectionDelete.ts +62 -0
- package/src/collections/useTableSelection.ts +77 -0
- package/src/composition/AllOfRenderer.tsx +79 -0
- package/src/composition/CombinatorBranch.tsx +93 -0
- package/src/composition/CombinatorProperties.tsx +56 -0
- package/src/composition/ScalarCompositionControl.tsx +34 -0
- package/src/composition/choiceCards.tsx +389 -0
- package/src/composition/combinators.ts +131 -0
- package/src/composition/discriminatorBranch.ts +82 -0
- package/src/composition/scalarComposition.ts +193 -0
- package/src/composition/useCombinatorSelection.ts +53 -0
- package/src/composition/useScalarComposition.ts +67 -0
- package/src/controls/FileArrayInput.tsx +407 -0
- package/src/controls/controlHelp.ts +28 -0
- package/src/controls/inputAdornments.tsx +337 -0
- package/src/controls/numeric.ts +43 -0
- package/src/controls/useClearAffordance.ts +22 -0
- package/src/controls/useDebouncedChange.ts +138 -0
- package/src/controls/useFocus.ts +32 -0
- package/src/core/configNamespaces.ts +67 -0
- package/src/core/dataPointer.ts +8 -0
- package/src/core/detailUiSchema.ts +88 -0
- package/src/core/plainRecord.ts +8 -0
- package/src/core/uiSchemaCycle.tsx +122 -0
- package/src/dynamic/DynamicUiProvider.tsx +414 -0
- package/src/dynamic/dynamicCel.ts +68 -0
- package/src/dynamic/dynamicConfig.ts +26 -0
- package/src/dynamic/dynamicRuntime.ts +25 -0
- package/src/dynamic/dynamicScope.ts +22 -0
- package/src/dynamic/dynamicTree.ts +128 -0
- package/src/dynamic/dynamicUi.ts +711 -0
- package/src/formats/colorFormat.ts +390 -0
- package/src/formats/dateValues.ts +45 -0
- package/src/formats/duration.ts +60 -0
- package/src/formats/maskControls.ts +88 -0
- package/src/formats/maskFormat.ts +375 -0
- package/src/formats/temporalBounds.ts +219 -0
- package/src/formats/temporalFormats.ts +128 -0
- package/src/formats/useMaskedInput.ts +194 -0
- package/src/index.ts +42 -0
- package/src/interaction/confirmation.ts +211 -0
- package/src/interaction/createDeleteConfirmation.ts +23 -0
- package/src/interaction/detailDialog.ts +138 -0
- package/src/interaction/pendingChanges.tsx +55 -0
- package/src/interaction/useConfirmationState.ts +55 -0
- package/src/interaction/visuallyHidden.ts +19 -0
- package/src/layout/categoryState.ts +189 -0
- package/src/layout/groupState.ts +201 -0
- package/src/layout/layoutContext.tsx +49 -0
- package/src/layout/layoutSizing.ts +369 -0
- package/src/locale/bg.ts +309 -0
- package/src/locale/calendar.ts +57 -0
- package/src/locale/en.ts +375 -0
- package/src/locale/index.ts +5 -0
- package/src/locale/intl.ts +10 -0
- package/src/locale/rendererLocale.ts +74 -0
- package/src/locale/translate.ts +98 -0
- package/src/mixed/MixedDetailControl.tsx +182 -0
- package/src/mixed/RecursiveTreeRenderer.tsx +388 -0
- package/src/mixed/createMixedTypeChangeHandler.ts +77 -0
- package/src/mixed/mixedComposition.ts +76 -0
- package/src/mixed/mixedNodeEditor.ts +47 -0
- package/src/mixed/mixedScalar.ts +7 -0
- package/src/mixed/mixedSchema.ts +283 -0
- package/src/mixed/mixedTree.ts +199 -0
- package/src/mixed/mixedTreeActions.ts +60 -0
- package/src/mixed/recursiveTree.ts +105 -0
- package/src/mixed/useMixedNavigation.ts +36 -0
- package/src/mixed/useMixedRenderer.ts +300 -0
- package/src/mixed/useMixedType.ts +45 -0
- package/src/objects/IsolatedPropertyEditor.tsx +86 -0
- package/src/objects/ObjectDetail.tsx +232 -0
- package/src/objects/additionalProperties.ts +151 -0
- package/src/objects/additionalPropertyName.ts +185 -0
- package/src/objects/conditionalFields.ts +173 -0
- package/src/objects/dynamicProperties.tsx +68 -0
- package/src/objects/literalPropertySchema.ts +100 -0
- package/src/objects/useAdditionalPropertyEntries.ts +204 -0
- package/src/tuple/TupleControlContent.tsx +152 -0
- package/src/tuple/TupleField.tsx +150 -0
- package/src/tuple/tupleSchema.ts +245 -0
- package/src/tuple/useTupleAdditionalItems.ts +131 -0
- package/src/tuple/useTupleControl.tsx +173 -0
- package/src/tuple/useTupleField.ts +164 -0
- package/src/validation/ItemValidationIndicator.tsx +21 -0
- package/src/validation/errorSummary.tsx +489 -0
- package/src/validation/preTouchErrors.ts +185 -0
- package/src/validation/validationIndicator.ts +202 -0
- package/src/webcomponent/element.ts +107 -0
- package/src/webcomponent/input.ts +56 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { findDetailUISchema as findUISchema } from '../core/detailUiSchema';
|
|
2
|
+
import {
|
|
3
|
+
PendingChange,
|
|
4
|
+
PendingChangesProvider,
|
|
5
|
+
} from '../interaction/pendingChanges';
|
|
6
|
+
import React, { useMemo, useRef, useState } from 'react';
|
|
7
|
+
import {
|
|
8
|
+
coreReducer,
|
|
9
|
+
Generate,
|
|
10
|
+
JsonFormsCore,
|
|
11
|
+
Resolve,
|
|
12
|
+
UPDATE_DATA,
|
|
13
|
+
update,
|
|
14
|
+
} from '@jsonforms/core';
|
|
15
|
+
import {
|
|
16
|
+
JsonFormsContext,
|
|
17
|
+
JsonFormsDispatch,
|
|
18
|
+
useJsonForms,
|
|
19
|
+
} from '@jsonforms/react';
|
|
20
|
+
import cloneDeep from 'lodash/cloneDeep';
|
|
21
|
+
import isEqual from 'lodash/isEqual';
|
|
22
|
+
import { useI18n } from '../locale/translate';
|
|
23
|
+
|
|
24
|
+
export const useRowDetail = (props: any) => {
|
|
25
|
+
const context = useJsonForms();
|
|
26
|
+
const pending = useMemo(() => new Set<PendingChange>(), []);
|
|
27
|
+
const t = useI18n();
|
|
28
|
+
const options = props.uischema?.options?.rowDetail;
|
|
29
|
+
const [panelOpen, setPanelOpen] = useState(() => options?.collapsed !== true);
|
|
30
|
+
const [selection, setSelection] = useState<{
|
|
31
|
+
index: number;
|
|
32
|
+
source: unknown;
|
|
33
|
+
draft?: JsonFormsCore;
|
|
34
|
+
}>();
|
|
35
|
+
const draftRef = useRef<JsonFormsCore>();
|
|
36
|
+
const array = Resolve.data(context.core?.data, props.path) as
|
|
37
|
+
| unknown[]
|
|
38
|
+
| undefined;
|
|
39
|
+
const [previous, setPrevious] = useState({
|
|
40
|
+
array,
|
|
41
|
+
presentation: options?.presentation,
|
|
42
|
+
});
|
|
43
|
+
const previousArray = previous.array;
|
|
44
|
+
if (
|
|
45
|
+
previousArray !== array ||
|
|
46
|
+
previous.presentation !== options?.presentation
|
|
47
|
+
) {
|
|
48
|
+
if (
|
|
49
|
+
selection &&
|
|
50
|
+
options?.presentation === 'panel' &&
|
|
51
|
+
array?.[selection.index] !== selection.source
|
|
52
|
+
) {
|
|
53
|
+
const moved = array?.indexOf(selection.source) ?? -1;
|
|
54
|
+
if (moved >= 0) setSelection({ index: moved, source: selection.source });
|
|
55
|
+
else if (
|
|
56
|
+
array &&
|
|
57
|
+
previousArray &&
|
|
58
|
+
array.length === previousArray.length &&
|
|
59
|
+
array.every(
|
|
60
|
+
(value, index) =>
|
|
61
|
+
index === selection.index || value === previousArray?.[index],
|
|
62
|
+
)
|
|
63
|
+
) {
|
|
64
|
+
setSelection({
|
|
65
|
+
index: selection.index,
|
|
66
|
+
source: array[selection.index],
|
|
67
|
+
});
|
|
68
|
+
} else setSelection(undefined);
|
|
69
|
+
}
|
|
70
|
+
setPrevious({ array, presentation: options?.presentation });
|
|
71
|
+
}
|
|
72
|
+
const rowPath = selection
|
|
73
|
+
? [props.path, selection.index].filter((x) => x !== '').join('.')
|
|
74
|
+
: '';
|
|
75
|
+
const enabled =
|
|
76
|
+
props.enabled !== false &&
|
|
77
|
+
!props.readonly &&
|
|
78
|
+
!(props.schema as any)?.readOnly;
|
|
79
|
+
const conflict =
|
|
80
|
+
!!selection &&
|
|
81
|
+
options?.presentation === 'dialog' &&
|
|
82
|
+
!isEqual(array?.[selection.index], selection.source);
|
|
83
|
+
const open = (index: number) => {
|
|
84
|
+
const draft =
|
|
85
|
+
options?.presentation === 'dialog'
|
|
86
|
+
? { ...context.core!, data: cloneDeep(context.core?.data) }
|
|
87
|
+
: undefined;
|
|
88
|
+
draftRef.current = draft;
|
|
89
|
+
setSelection({ index, source: array?.[index], draft });
|
|
90
|
+
};
|
|
91
|
+
const close = () => {
|
|
92
|
+
pending.forEach((change) => change.cancel());
|
|
93
|
+
setSelection(undefined);
|
|
94
|
+
draftRef.current = undefined;
|
|
95
|
+
};
|
|
96
|
+
const dispatch = (action: any) => {
|
|
97
|
+
if (
|
|
98
|
+
!enabled ||
|
|
99
|
+
!draftRef.current ||
|
|
100
|
+
action.type !== UPDATE_DATA ||
|
|
101
|
+
!(action.path === rowPath || action.path.startsWith(rowPath + '.'))
|
|
102
|
+
)
|
|
103
|
+
return;
|
|
104
|
+
draftRef.current = coreReducer(draftRef.current, action);
|
|
105
|
+
setSelection(
|
|
106
|
+
(current) => current && { ...current, draft: draftRef.current },
|
|
107
|
+
);
|
|
108
|
+
};
|
|
109
|
+
const detail = findUISchema(
|
|
110
|
+
context.uischemas ?? [],
|
|
111
|
+
props.schema,
|
|
112
|
+
props.uischema.scope,
|
|
113
|
+
rowPath,
|
|
114
|
+
() =>
|
|
115
|
+
Generate.uiSchema(
|
|
116
|
+
props.schema,
|
|
117
|
+
'VerticalLayout',
|
|
118
|
+
undefined,
|
|
119
|
+
props.rootSchema,
|
|
120
|
+
),
|
|
121
|
+
{
|
|
122
|
+
...props.uischema,
|
|
123
|
+
options: { ...props.uischema.options, detail: options?.detail },
|
|
124
|
+
},
|
|
125
|
+
props.rootSchema,
|
|
126
|
+
);
|
|
127
|
+
const form =
|
|
128
|
+
selection && array && selection.index < array.length ? (
|
|
129
|
+
<JsonFormsDispatch
|
|
130
|
+
schema={props.schema}
|
|
131
|
+
uischema={detail}
|
|
132
|
+
path={rowPath}
|
|
133
|
+
enabled={enabled}
|
|
134
|
+
readonly={!enabled}
|
|
135
|
+
renderers={props.renderers}
|
|
136
|
+
cells={props.cells}
|
|
137
|
+
/>
|
|
138
|
+
) : null;
|
|
139
|
+
return {
|
|
140
|
+
options,
|
|
141
|
+
panelOpen,
|
|
142
|
+
setPanelOpen,
|
|
143
|
+
open,
|
|
144
|
+
close,
|
|
145
|
+
selection,
|
|
146
|
+
enabled,
|
|
147
|
+
conflict,
|
|
148
|
+
t,
|
|
149
|
+
content: selection?.draft ? (
|
|
150
|
+
<JsonFormsContext.Provider
|
|
151
|
+
value={{ ...context, core: selection.draft, dispatch }}
|
|
152
|
+
>
|
|
153
|
+
<PendingChangesProvider changes={pending}>
|
|
154
|
+
{form}
|
|
155
|
+
</PendingChangesProvider>
|
|
156
|
+
</JsonFormsContext.Provider>
|
|
157
|
+
) : (
|
|
158
|
+
form
|
|
159
|
+
),
|
|
160
|
+
apply: () => {
|
|
161
|
+
if (!selection || !enabled || conflict || !draftRef.current) return;
|
|
162
|
+
pending.forEach((change) => change.flush());
|
|
163
|
+
const value = cloneDeep(Resolve.data(draftRef.current.data, rowPath));
|
|
164
|
+
if (!isEqual(value, selection.source))
|
|
165
|
+
context.dispatch?.(update(rowPath, () => value));
|
|
166
|
+
close();
|
|
167
|
+
},
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
export type RowDetailState = ReturnType<typeof useRowDetail>;
|
|
171
|
+
|
|
172
|
+
type RowDetailFrameProps = React.PropsWithChildren<{ state: RowDetailState }>;
|
|
173
|
+
|
|
174
|
+
export function createRowDetailFrame(
|
|
175
|
+
Dialog: React.ComponentType<{ state: RowDetailState }>,
|
|
176
|
+
Panel: React.ComponentType<RowDetailFrameProps>,
|
|
177
|
+
) {
|
|
178
|
+
return function RowDetailFrame({ state, children }: RowDetailFrameProps) {
|
|
179
|
+
if (!state.options) return <>{children}</>;
|
|
180
|
+
if (state.options.presentation === 'dialog')
|
|
181
|
+
return (
|
|
182
|
+
<>
|
|
183
|
+
{children}
|
|
184
|
+
<Dialog state={state} />
|
|
185
|
+
</>
|
|
186
|
+
);
|
|
187
|
+
return <Panel state={state}>{children}</Panel>;
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export function createRowDetailToggle(
|
|
192
|
+
render: (toggle: {
|
|
193
|
+
label: string;
|
|
194
|
+
expanded: boolean;
|
|
195
|
+
toggle: () => void;
|
|
196
|
+
}) => React.ReactElement,
|
|
197
|
+
) {
|
|
198
|
+
return function RowDetailToggle({ state }: { state: RowDetailState }) {
|
|
199
|
+
if (state.options?.presentation !== 'panel') return null;
|
|
200
|
+
return render({
|
|
201
|
+
label: state.t(
|
|
202
|
+
state.panelOpen ? 'collection.hideDetails' : 'collection.showDetails',
|
|
203
|
+
),
|
|
204
|
+
expanded: state.panelOpen,
|
|
205
|
+
toggle: () => state.setPanelOpen((open) => !open),
|
|
206
|
+
});
|
|
207
|
+
};
|
|
208
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface TableColumnDefinition {
|
|
2
|
+
field: string;
|
|
3
|
+
/** Bind to the whole row instead of a property; field remains the column key. */
|
|
4
|
+
scope?: '#';
|
|
5
|
+
headerName?: string;
|
|
6
|
+
width?: number;
|
|
7
|
+
minWidth?: number;
|
|
8
|
+
maxWidth?: number;
|
|
9
|
+
}
|
|
10
|
+
export const tableColumnFields = (
|
|
11
|
+
properties: Record<string, unknown>,
|
|
12
|
+
definitions: TableColumnDefinition[] | undefined,
|
|
13
|
+
fallback: string[],
|
|
14
|
+
) =>
|
|
15
|
+
definitions === undefined
|
|
16
|
+
? fallback
|
|
17
|
+
: [...new Set(definitions.map((column) => column.field))].filter(
|
|
18
|
+
(field) =>
|
|
19
|
+
Object.prototype.hasOwnProperty.call(properties, field) ||
|
|
20
|
+
definitions.some(
|
|
21
|
+
(column) => column.field === field && column.scope === '#',
|
|
22
|
+
),
|
|
23
|
+
);
|
|
24
|
+
type ColumnDimensions = Pick<
|
|
25
|
+
TableColumnDefinition,
|
|
26
|
+
'width' | 'minWidth' | 'maxWidth'
|
|
27
|
+
>;
|
|
28
|
+
|
|
29
|
+
export const tableColumnStyle = (
|
|
30
|
+
definition?: TableColumnDefinition,
|
|
31
|
+
): ColumnDimensions => {
|
|
32
|
+
const style: ColumnDimensions = {};
|
|
33
|
+
for (const key of ['width', 'minWidth', 'maxWidth'] as const) {
|
|
34
|
+
const value = definition?.[key];
|
|
35
|
+
if (typeof value === 'number' && Number.isFinite(value) && value > 0)
|
|
36
|
+
style[key] = value;
|
|
37
|
+
}
|
|
38
|
+
return style;
|
|
39
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { resolveCollapsed } from '../layout/groupState';
|
|
2
|
+
import { useId, useState } from 'react';
|
|
3
|
+
|
|
4
|
+
/** Array panel state is independent of expansion of individual array items. */
|
|
5
|
+
export const useArrayPanelState = (
|
|
6
|
+
options: Record<string, any> = {},
|
|
7
|
+
config: any = {},
|
|
8
|
+
) => {
|
|
9
|
+
const option = (key: string) =>
|
|
10
|
+
options[key] ?? config?.jsonformsExtended?.[key] ?? config?.[key];
|
|
11
|
+
const collapsible = option('collapsible') === true;
|
|
12
|
+
const initial = resolveCollapsed(options, config, 'array');
|
|
13
|
+
const [collapsed, setCollapsed] = useState(initial);
|
|
14
|
+
const [previousInitial, setPreviousInitial] = useState(initial);
|
|
15
|
+
if (previousInitial !== initial) {
|
|
16
|
+
setPreviousInitial(initial);
|
|
17
|
+
setCollapsed(initial);
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
collapsible,
|
|
21
|
+
collapsed: collapsible && collapsed,
|
|
22
|
+
contentId: useId(),
|
|
23
|
+
toggle: () => setCollapsed((value) => !value),
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { useLayoutEffect, useRef, useState } from 'react';
|
|
2
|
+
import {
|
|
3
|
+
ConfirmationCatalogId,
|
|
4
|
+
shouldConfirm,
|
|
5
|
+
} from '../interaction/confirmation';
|
|
6
|
+
|
|
7
|
+
/** Invalidates pending deletion if the collection or its binding changes. */
|
|
8
|
+
export const useCollectionDelete = <K extends string | number>(settings: {
|
|
9
|
+
data: unknown;
|
|
10
|
+
identity: unknown;
|
|
11
|
+
catalogId: ConfirmationCatalogId;
|
|
12
|
+
options?: Record<string, any>;
|
|
13
|
+
config?: any;
|
|
14
|
+
canRemove: (key: K) => boolean;
|
|
15
|
+
value: (key: K) => unknown;
|
|
16
|
+
remove: (key: K) => void;
|
|
17
|
+
}) => {
|
|
18
|
+
const current = useRef(settings);
|
|
19
|
+
useLayoutEffect(() => {
|
|
20
|
+
current.current = settings;
|
|
21
|
+
}, [settings]);
|
|
22
|
+
const pending = useRef<{ key: K; data: unknown; identity: unknown }>();
|
|
23
|
+
const [confirming, setConfirming] = useState(false);
|
|
24
|
+
const cancel = () => {
|
|
25
|
+
pending.current = undefined;
|
|
26
|
+
setConfirming(false);
|
|
27
|
+
};
|
|
28
|
+
const confirm = () => {
|
|
29
|
+
const target = pending.current;
|
|
30
|
+
cancel();
|
|
31
|
+
const now = current.current;
|
|
32
|
+
if (
|
|
33
|
+
target &&
|
|
34
|
+
target.data === now.data &&
|
|
35
|
+
target.identity === now.identity &&
|
|
36
|
+
now.canRemove(target.key)
|
|
37
|
+
) {
|
|
38
|
+
now.remove(target.key);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const request = (key: K) => {
|
|
42
|
+
const now = current.current;
|
|
43
|
+
if (!now.canRemove(key)) return;
|
|
44
|
+
if (
|
|
45
|
+
!shouldConfirm(
|
|
46
|
+
{
|
|
47
|
+
operation: 'delete',
|
|
48
|
+
catalogId: now.catalogId,
|
|
49
|
+
options: now.options,
|
|
50
|
+
config: now.config,
|
|
51
|
+
},
|
|
52
|
+
[now.value(key)],
|
|
53
|
+
)
|
|
54
|
+
) {
|
|
55
|
+
now.remove(key);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
pending.current = { key, data: now.data, identity: now.identity };
|
|
59
|
+
setConfirming(true);
|
|
60
|
+
};
|
|
61
|
+
return { confirming, request, confirm, cancel };
|
|
62
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { Resolve } from '@jsonforms/core';
|
|
3
|
+
import { useJsonForms } from '@jsonforms/react';
|
|
4
|
+
import { shouldConfirm } from '../interaction/confirmation';
|
|
5
|
+
|
|
6
|
+
/** Selection is separate from the row displayed in the detail pane. */
|
|
7
|
+
export const useTableSelection = (props: any) => {
|
|
8
|
+
const ctx = useJsonForms();
|
|
9
|
+
const rows = Resolve.data(ctx.core?.data, props.path) as
|
|
10
|
+
| unknown[]
|
|
11
|
+
| undefined;
|
|
12
|
+
const schema =
|
|
13
|
+
ctx.core &&
|
|
14
|
+
Resolve.schema(ctx.core.schema, props.uischema.scope, ctx.core.schema);
|
|
15
|
+
const options = { ...props.config, ...props.uischema.options };
|
|
16
|
+
const [selected, setSelected] = useState<number[]>([]);
|
|
17
|
+
const [pending, setPending] = useState<{
|
|
18
|
+
indices: number[];
|
|
19
|
+
rows: unknown[];
|
|
20
|
+
}>();
|
|
21
|
+
const [previousRows, setPreviousRows] = useState(rows);
|
|
22
|
+
if (previousRows !== rows) {
|
|
23
|
+
setPreviousRows(rows);
|
|
24
|
+
setSelected([]);
|
|
25
|
+
setPending(undefined);
|
|
26
|
+
}
|
|
27
|
+
const allowed = (indices: number[]) =>
|
|
28
|
+
props.removeItems &&
|
|
29
|
+
props.enabled &&
|
|
30
|
+
!props.readonly &&
|
|
31
|
+
!options.disableRemove &&
|
|
32
|
+
!props.disableRemove &&
|
|
33
|
+
indices.length > 0 &&
|
|
34
|
+
Array.isArray(rows) &&
|
|
35
|
+
indices.every((index) => index >= 0 && index < rows.length) &&
|
|
36
|
+
!(
|
|
37
|
+
options.restrict &&
|
|
38
|
+
schema?.minItems !== undefined &&
|
|
39
|
+
rows.length - indices.length < schema.minItems
|
|
40
|
+
);
|
|
41
|
+
const remove = (indices: number[]) => {
|
|
42
|
+
if (!allowed(indices)) return;
|
|
43
|
+
props.removeItems(
|
|
44
|
+
props.path,
|
|
45
|
+
[...indices].sort((a, b) => b - a),
|
|
46
|
+
)();
|
|
47
|
+
setSelected([]);
|
|
48
|
+
};
|
|
49
|
+
return {
|
|
50
|
+
selected,
|
|
51
|
+
setSelected,
|
|
52
|
+
selectable: !!props.enabled && !props.readonly && !options.disableRemove,
|
|
53
|
+
canDelete: !!allowed(selected),
|
|
54
|
+
confirming: !!pending,
|
|
55
|
+
cancel: () => setPending(undefined),
|
|
56
|
+
confirm: () => {
|
|
57
|
+
if (pending && pending.rows === rows) remove(pending.indices);
|
|
58
|
+
setPending(undefined);
|
|
59
|
+
},
|
|
60
|
+
request: () => {
|
|
61
|
+
if (!allowed(selected)) return;
|
|
62
|
+
if (
|
|
63
|
+
shouldConfirm(
|
|
64
|
+
{
|
|
65
|
+
options: props.uischema.options,
|
|
66
|
+
config: props.config,
|
|
67
|
+
catalogId: 'arrayTable',
|
|
68
|
+
operation: 'delete',
|
|
69
|
+
},
|
|
70
|
+
selected.map((index) => rows![index]),
|
|
71
|
+
)
|
|
72
|
+
) {
|
|
73
|
+
setPending({ indices: [...selected], rows: rows! });
|
|
74
|
+
} else remove(selected);
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createCombinatorRenderInfos,
|
|
3
|
+
findMatchingUISchema,
|
|
4
|
+
isAllOfControl,
|
|
5
|
+
JsonSchema,
|
|
6
|
+
RankedTester,
|
|
7
|
+
rankWith,
|
|
8
|
+
StatePropsOfCombinator,
|
|
9
|
+
} from '@jsonforms/core';
|
|
10
|
+
import { JsonFormsDispatch, withJsonFormsAllOfProps } from '@jsonforms/react';
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import { CombinatorProperties } from './CombinatorProperties';
|
|
13
|
+
|
|
14
|
+
export const AllOfRenderer = ({
|
|
15
|
+
schema,
|
|
16
|
+
rootSchema,
|
|
17
|
+
visible,
|
|
18
|
+
renderers,
|
|
19
|
+
cells,
|
|
20
|
+
path,
|
|
21
|
+
uischemas,
|
|
22
|
+
uischema,
|
|
23
|
+
}: StatePropsOfCombinator) => {
|
|
24
|
+
const delegateUISchema = findMatchingUISchema(uischemas)(
|
|
25
|
+
schema,
|
|
26
|
+
uischema.scope,
|
|
27
|
+
path,
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
if (!visible) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
if (delegateUISchema) {
|
|
35
|
+
return (
|
|
36
|
+
<JsonFormsDispatch
|
|
37
|
+
schema={schema}
|
|
38
|
+
uischema={delegateUISchema}
|
|
39
|
+
path={path}
|
|
40
|
+
renderers={renderers}
|
|
41
|
+
cells={cells}
|
|
42
|
+
/>
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const allOfRenderInfos = createCombinatorRenderInfos(
|
|
47
|
+
(schema as JsonSchema).allOf ?? [],
|
|
48
|
+
rootSchema,
|
|
49
|
+
'allOf',
|
|
50
|
+
uischema,
|
|
51
|
+
path,
|
|
52
|
+
uischemas,
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
return (
|
|
56
|
+
<>
|
|
57
|
+
<CombinatorProperties
|
|
58
|
+
schema={schema}
|
|
59
|
+
combinatorKeyword='allOf'
|
|
60
|
+
path={path}
|
|
61
|
+
rootSchema={rootSchema}
|
|
62
|
+
/>
|
|
63
|
+
{allOfRenderInfos.map((renderInfo, index) => (
|
|
64
|
+
<JsonFormsDispatch
|
|
65
|
+
key={index}
|
|
66
|
+
schema={renderInfo.schema}
|
|
67
|
+
uischema={renderInfo.uischema}
|
|
68
|
+
path={path}
|
|
69
|
+
renderers={renderers}
|
|
70
|
+
cells={cells}
|
|
71
|
+
/>
|
|
72
|
+
))}
|
|
73
|
+
</>
|
|
74
|
+
);
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export const allOfControlTester: RankedTester = rankWith(3, isAllOfControl);
|
|
78
|
+
|
|
79
|
+
export const AllOfControl = withJsonFormsAllOfProps(AllOfRenderer);
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { dataPathToPointer } from '../core/dataPointer';
|
|
2
|
+
import type { ErrorObject } from 'ajv';
|
|
3
|
+
import isEqual from 'lodash/isEqual';
|
|
4
|
+
import React, { useMemo } from 'react';
|
|
5
|
+
import { JsonSchema, Resolve } from '@jsonforms/core';
|
|
6
|
+
import { JsonFormsContext, useJsonForms } from '@jsonforms/react';
|
|
7
|
+
|
|
8
|
+
/** Validate the visible editing branch even when another alternative validates.
|
|
9
|
+
* These errors are local presentation state; document validation is unchanged.
|
|
10
|
+
*/
|
|
11
|
+
export const CombinatorBranch = ({
|
|
12
|
+
schema,
|
|
13
|
+
path,
|
|
14
|
+
children,
|
|
15
|
+
options,
|
|
16
|
+
}: {
|
|
17
|
+
options?: { validateActiveBranch?: boolean };
|
|
18
|
+
schema: JsonSchema;
|
|
19
|
+
path: string;
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
}) => {
|
|
22
|
+
const context = useJsonForms();
|
|
23
|
+
const enabled =
|
|
24
|
+
(options?.validateActiveBranch ??
|
|
25
|
+
context.config?.validateActiveBranch ??
|
|
26
|
+
true) &&
|
|
27
|
+
context.core?.validationMode !== 'NoValidation' &&
|
|
28
|
+
context.core?.validationMode !== 'ValidateAndHide';
|
|
29
|
+
const ajv = context.core?.ajv;
|
|
30
|
+
const validate = useMemo(() => {
|
|
31
|
+
if (!enabled) return undefined;
|
|
32
|
+
try {
|
|
33
|
+
return ajv?.compile(schema);
|
|
34
|
+
} catch {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
}, [ajv, schema, enabled]);
|
|
38
|
+
const data = Resolve.data(context.core?.data, path);
|
|
39
|
+
const localErrors = useMemo(() => {
|
|
40
|
+
if (
|
|
41
|
+
!validate ||
|
|
42
|
+
context.core?.validationMode === 'NoValidation' ||
|
|
43
|
+
context.core?.validationMode === 'ValidateAndHide'
|
|
44
|
+
)
|
|
45
|
+
return [];
|
|
46
|
+
validate(data);
|
|
47
|
+
const prefix = dataPathToPointer(path);
|
|
48
|
+
return (validate.errors ?? []).map((error) => ({
|
|
49
|
+
...error,
|
|
50
|
+
instancePath: prefix + error.instancePath,
|
|
51
|
+
}));
|
|
52
|
+
}, [validate, data, path, context.core?.validationMode]);
|
|
53
|
+
const value = useMemo(
|
|
54
|
+
() => ({
|
|
55
|
+
...context,
|
|
56
|
+
core: context.core
|
|
57
|
+
? {
|
|
58
|
+
...context.core,
|
|
59
|
+
errors: mergeBranchErrors(context.core.errors ?? [], localErrors),
|
|
60
|
+
}
|
|
61
|
+
: context.core,
|
|
62
|
+
}),
|
|
63
|
+
[context, localErrors],
|
|
64
|
+
);
|
|
65
|
+
if (!enabled) return <>{children}</>;
|
|
66
|
+
return (
|
|
67
|
+
<JsonFormsContext.Provider value={value}>
|
|
68
|
+
{children}
|
|
69
|
+
</JsonFormsContext.Provider>
|
|
70
|
+
);
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/** Schema locations differ between document and independently compiled branches.
|
|
74
|
+
* Deduplicate equivalent feedback, retaining distinct constraints and targets. */
|
|
75
|
+
export const mergeBranchErrors = (
|
|
76
|
+
documentErrors: ErrorObject[],
|
|
77
|
+
branchErrors: ErrorObject[],
|
|
78
|
+
): ErrorObject[] => {
|
|
79
|
+
const buckets = new Map<string, ErrorObject[]>();
|
|
80
|
+
return [...documentErrors, ...branchErrors].filter((error) => {
|
|
81
|
+
const key = JSON.stringify([
|
|
82
|
+
error.instancePath,
|
|
83
|
+
error.keyword,
|
|
84
|
+
error.message,
|
|
85
|
+
]);
|
|
86
|
+
const bucket = buckets.get(key) ?? [];
|
|
87
|
+
if (bucket.some((previous) => isEqual(previous.params, error.params)))
|
|
88
|
+
return false;
|
|
89
|
+
bucket.push(error);
|
|
90
|
+
buckets.set(key, bucket);
|
|
91
|
+
return true;
|
|
92
|
+
});
|
|
93
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Generate,
|
|
4
|
+
JsonSchema,
|
|
5
|
+
UISchemaElement,
|
|
6
|
+
isLayout,
|
|
7
|
+
} from '@jsonforms/core';
|
|
8
|
+
import { JsonFormsDispatch } from '@jsonforms/react';
|
|
9
|
+
import omit from 'lodash/omit';
|
|
10
|
+
|
|
11
|
+
interface CombinatorPropertiesProps {
|
|
12
|
+
schema: JsonSchema;
|
|
13
|
+
combinatorKeyword: 'oneOf' | 'anyOf' | 'allOf';
|
|
14
|
+
path: string;
|
|
15
|
+
rootSchema: JsonSchema;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class CombinatorProperties extends React.Component<
|
|
19
|
+
CombinatorPropertiesProps,
|
|
20
|
+
// TODO fix @typescript-eslint/ban-types
|
|
21
|
+
// oxlint-disable-next-line @typescript-eslint/ban-types
|
|
22
|
+
{}
|
|
23
|
+
> {
|
|
24
|
+
render() {
|
|
25
|
+
const { schema, combinatorKeyword, path, rootSchema } = this.props;
|
|
26
|
+
if (!schema.properties || Object.keys(schema.properties).length === 0)
|
|
27
|
+
return null;
|
|
28
|
+
|
|
29
|
+
const otherProps: JsonSchema = omit(
|
|
30
|
+
schema,
|
|
31
|
+
combinatorKeyword,
|
|
32
|
+
) as JsonSchema;
|
|
33
|
+
const foundUISchema: UISchemaElement = Generate.uiSchema(
|
|
34
|
+
otherProps,
|
|
35
|
+
'VerticalLayout',
|
|
36
|
+
undefined,
|
|
37
|
+
rootSchema,
|
|
38
|
+
);
|
|
39
|
+
let isLayoutWithElements = false;
|
|
40
|
+
if (foundUISchema !== null && isLayout(foundUISchema)) {
|
|
41
|
+
isLayoutWithElements = foundUISchema.elements.length > 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (isLayoutWithElements) {
|
|
45
|
+
return (
|
|
46
|
+
<JsonFormsDispatch
|
|
47
|
+
schema={otherProps}
|
|
48
|
+
path={path}
|
|
49
|
+
uischema={foundUISchema}
|
|
50
|
+
/>
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ControlProps } from '@jsonforms/core';
|
|
3
|
+
import { JsonFormsDispatch } from '@jsonforms/react';
|
|
4
|
+
import { useScalarComposition } from './useScalarComposition';
|
|
5
|
+
export const ScalarCompositionControl = (
|
|
6
|
+
props: ControlProps & {
|
|
7
|
+
errorClassName: string;
|
|
8
|
+
errorStyle: React.CSSProperties;
|
|
9
|
+
},
|
|
10
|
+
) => {
|
|
11
|
+
const { delegated, delegatedSchema, message } = useScalarComposition(props);
|
|
12
|
+
if (props.visible === false) return null;
|
|
13
|
+
return (
|
|
14
|
+
<>
|
|
15
|
+
<JsonFormsDispatch
|
|
16
|
+
uischema={delegated as any}
|
|
17
|
+
schema={delegatedSchema}
|
|
18
|
+
path={props.path}
|
|
19
|
+
renderers={props.renderers}
|
|
20
|
+
cells={props.cells}
|
|
21
|
+
/>
|
|
22
|
+
{message ? (
|
|
23
|
+
<div
|
|
24
|
+
role='alert'
|
|
25
|
+
data-composition-error
|
|
26
|
+
className={props.errorClassName}
|
|
27
|
+
style={props.errorStyle}
|
|
28
|
+
>
|
|
29
|
+
{message}
|
|
30
|
+
</div>
|
|
31
|
+
) : null}
|
|
32
|
+
</>
|
|
33
|
+
);
|
|
34
|
+
};
|