@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,128 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import { formatDate } from './dateValues';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The serialization formats a temporal control saves in.
|
|
6
|
+
*
|
|
7
|
+
* Section 18 fixes these defaults, and the reason is not style: a control is
|
|
8
|
+
* selected **by** the schema's `format` keyword, so the value it writes has to
|
|
9
|
+
* satisfy that same keyword. JSON Forms' `createAjv` validates formats in full
|
|
10
|
+
* mode, where RFC 3339 `time` and `date-time` both require seconds **and** a
|
|
11
|
+
* timezone offset.
|
|
12
|
+
*
|
|
13
|
+
* Core's `defaultTimeFormat` is `HH:mm:ss`, which has no offset - so a time
|
|
14
|
+
* control wrote `17:04:09` and the form went invalid the moment anyone used
|
|
15
|
+
* the picker, with no way to fix it from the picker either. Every value it
|
|
16
|
+
* could produce was invalid.
|
|
17
|
+
*
|
|
18
|
+
* | Format | Written | Accepted by `format: "time"` |
|
|
19
|
+
* | --- | --- | --- |
|
|
20
|
+
* | `HH:mm:ss` | `17:04:09` | no |
|
|
21
|
+
* | `HH:mm:ssZ` | `17:04:09-04:00` | yes |
|
|
22
|
+
*
|
|
23
|
+
* `date` needs no offset and core's default already matches the section.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/** Section 18: `YYYY-MM-DD`. */
|
|
27
|
+
export const specDateSaveFormat = 'YYYY-MM-DD';
|
|
28
|
+
|
|
29
|
+
/** Section 18: `HH:mm:ssZ`, "including offset under this format". */
|
|
30
|
+
export const specTimeSaveFormat = 'HH:mm:ssZ';
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Section 18: `YYYY-MM-DDTHH:mm:ssZ`.
|
|
34
|
+
*
|
|
35
|
+
* The `T` is escaped. dayjs passes an unrecognised letter through unchanged,
|
|
36
|
+
* so both spellings produce the same string - but `T` sits directly against
|
|
37
|
+
* `DD`, and escaping says that it is a literal rather than leaving the reader
|
|
38
|
+
* to check the token table.
|
|
39
|
+
*/
|
|
40
|
+
export const specDateTimeSaveFormat = 'YYYY-MM-DD[T]HH:mm:ssZ';
|
|
41
|
+
|
|
42
|
+
/*
|
|
43
|
+
RFC 3339, as `ajv-formats` applies it in full mode. Inlined rather than
|
|
44
|
+
imported because the check below has to run in a cell, where pulling in a
|
|
45
|
+
validator would be out of proportion to the question being asked.
|
|
46
|
+
*/
|
|
47
|
+
const RFC3339 = {
|
|
48
|
+
date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/,
|
|
49
|
+
time: /^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,
|
|
50
|
+
'date-time':
|
|
51
|
+
/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* The instant the check below formats, chosen rather than picked at random.
|
|
56
|
+
*
|
|
57
|
+
* **Every component is a single digit.** That is the whole point: a format
|
|
58
|
+
* using an unpadded token - `H:mm:ss` rather than `HH:mm:ss` - emits a
|
|
59
|
+
* two-digit hour anyway for any instant after 09:59, so a probe taken from
|
|
60
|
+
* the afternoon quietly accepts it. At 04:05:06 the same format emits
|
|
61
|
+
* `4:05:06`, which RFC 3339 rejects, and the author hears about it.
|
|
62
|
+
*
|
|
63
|
+
* It is fixed rather than `dayjs()` because the answer must not depend on
|
|
64
|
+
* when the form happens to be rendered.
|
|
65
|
+
*/
|
|
66
|
+
const PROBE_INSTANT = '2001-02-03T04:05:06';
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Whether a save format can produce a value the schema's `format` accepts.
|
|
70
|
+
*
|
|
71
|
+
* The trap this exists for: a control selected by `format: "time"` given
|
|
72
|
+
* `timeSaveFormat: "HH:mm"` writes `23:03`, which that same keyword rejects -
|
|
73
|
+
* so the form is invalid the instant anyone edits it, and no amount of picking
|
|
74
|
+
* repairs it. It reads like a display setting and is a validity setting.
|
|
75
|
+
*
|
|
76
|
+
* The check is empirical rather than a parse of the format string: the
|
|
77
|
+
* reference instant above is formatted and the result tested. That way a
|
|
78
|
+
* format nobody anticipated is judged by what it actually emits.
|
|
79
|
+
*
|
|
80
|
+
* Returns true when there is nothing to object to - including when the schema
|
|
81
|
+
* carries no ordered `format` at all, which is the whole point of choosing a
|
|
82
|
+
* control through `options.format` instead.
|
|
83
|
+
*/
|
|
84
|
+
export const saveFormatSatisfies = (
|
|
85
|
+
jsonFormat: unknown,
|
|
86
|
+
saveFormat: string,
|
|
87
|
+
): boolean => {
|
|
88
|
+
const pattern = RFC3339[jsonFormat as keyof typeof RFC3339];
|
|
89
|
+
if (!pattern) {
|
|
90
|
+
return true;
|
|
91
|
+
}
|
|
92
|
+
return pattern.test(formatDate(dayjs(PROBE_INSTANT), saveFormat));
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/** Stable code, per section 21. */
|
|
96
|
+
export const SAVE_FORMAT_DIAGNOSTIC = 'temporal.saveFormatInvalid';
|
|
97
|
+
|
|
98
|
+
const warned = new Set<string>();
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Warns once per offending combination.
|
|
102
|
+
*
|
|
103
|
+
* A console warning rather than a rendered message, following the precedent
|
|
104
|
+
* set for `Categorization`'s `initial` (adjustment 10.5): this is an authoring
|
|
105
|
+
* mistake in the UI schema, not something the person filling in the form can
|
|
106
|
+
* act on. They already get the validation error.
|
|
107
|
+
*/
|
|
108
|
+
export const warnOnSaveFormat = (
|
|
109
|
+
jsonFormat: unknown,
|
|
110
|
+
saveFormat: string,
|
|
111
|
+
): void => {
|
|
112
|
+
if (saveFormatSatisfies(jsonFormat, saveFormat)) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
const key = `${String(jsonFormat)}|${saveFormat}`;
|
|
116
|
+
if (warned.has(key)) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
warned.add(key);
|
|
120
|
+
// oxlint-disable-next-line no-console
|
|
121
|
+
console.warn(
|
|
122
|
+
`${SAVE_FORMAT_DIAGNOSTIC}: the save format ${JSON.stringify(
|
|
123
|
+
saveFormat,
|
|
124
|
+
)} produces values that \`format: ${JSON.stringify(
|
|
125
|
+
jsonFormat,
|
|
126
|
+
)}\` rejects, so the control cannot be made valid. Either drop the schema \`format\` and select the control with \`options.format\`, or use a save format carrying the parts RFC 3339 requires.`,
|
|
127
|
+
);
|
|
128
|
+
};
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import type { CellProps } from '@jsonforms/core';
|
|
2
|
+
import React, {
|
|
3
|
+
useCallback,
|
|
4
|
+
useLayoutEffect,
|
|
5
|
+
useMemo,
|
|
6
|
+
useRef,
|
|
7
|
+
useState,
|
|
8
|
+
} from 'react';
|
|
9
|
+
import {
|
|
10
|
+
createMask,
|
|
11
|
+
displayValue,
|
|
12
|
+
maskEdit,
|
|
13
|
+
nextCaret,
|
|
14
|
+
resolveMaskSettings,
|
|
15
|
+
storedValue,
|
|
16
|
+
withinMaxLength,
|
|
17
|
+
} from './maskFormat';
|
|
18
|
+
|
|
19
|
+
const reportedMasks = new Set<string>();
|
|
20
|
+
|
|
21
|
+
const warnInvalidToken = (token: string, pattern: string) => {
|
|
22
|
+
const key = `${token}:${pattern}`;
|
|
23
|
+
if (reportedMasks.has(key)) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
reportedMasks.add(key);
|
|
27
|
+
// oxlint-disable-next-line no-console
|
|
28
|
+
console.warn(
|
|
29
|
+
`Mask token '${token}' has an invalid pattern and was ignored: ${pattern}`,
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export function useMaskedInput(
|
|
34
|
+
{
|
|
35
|
+
data,
|
|
36
|
+
config,
|
|
37
|
+
uischema,
|
|
38
|
+
path,
|
|
39
|
+
handleChange,
|
|
40
|
+
schema,
|
|
41
|
+
}: Pick<
|
|
42
|
+
CellProps,
|
|
43
|
+
'data' | 'config' | 'uischema' | 'path' | 'handleChange' | 'schema'
|
|
44
|
+
>,
|
|
45
|
+
getInput: () => HTMLInputElement | null | undefined,
|
|
46
|
+
compositionMode: 'defer' | 'commit',
|
|
47
|
+
) {
|
|
48
|
+
const appliedUiSchemaOptions = {
|
|
49
|
+
...(config as Record<string, unknown> | undefined),
|
|
50
|
+
...uischema.options,
|
|
51
|
+
} as Record<string, any>;
|
|
52
|
+
const settings = useMemo(
|
|
53
|
+
() => resolveMaskSettings(uischema.options, config, warnInvalidToken),
|
|
54
|
+
[uischema.options, config],
|
|
55
|
+
);
|
|
56
|
+
const mask = useMemo(
|
|
57
|
+
() => (settings ? createMask(settings) : undefined),
|
|
58
|
+
[settings],
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
const pendingCaret = useRef<number | undefined>(undefined);
|
|
62
|
+
const [draft, setDraft] = useState<string | undefined>(undefined);
|
|
63
|
+
// Set while an input-method editor is composing. The specification is
|
|
64
|
+
// explicit that a mask "must not overwrite the active draft or prematurely
|
|
65
|
+
// treat it as a finalized value", so nothing is masked until composition ends
|
|
66
|
+
// - otherwise the intermediate romaji of a Japanese entry would be filtered
|
|
67
|
+
// away character by character and the word could never be typed.
|
|
68
|
+
const [composing, setComposing] = useState(false);
|
|
69
|
+
const composingRef = useRef(false);
|
|
70
|
+
|
|
71
|
+
const stored = typeof data === 'string' ? data : '';
|
|
72
|
+
const returnMaskedValue = settings?.returnMaskedValue === true;
|
|
73
|
+
|
|
74
|
+
const display = useMemo(() => {
|
|
75
|
+
if (compositionMode === 'defer' && composing && draft !== undefined)
|
|
76
|
+
return draft;
|
|
77
|
+
if (!mask) {
|
|
78
|
+
return stored;
|
|
79
|
+
}
|
|
80
|
+
if (
|
|
81
|
+
draft !== undefined &&
|
|
82
|
+
storedValue(mask, draft, returnMaskedValue) === stored
|
|
83
|
+
) {
|
|
84
|
+
return draft;
|
|
85
|
+
}
|
|
86
|
+
return displayValue(mask, stored, returnMaskedValue);
|
|
87
|
+
}, [compositionMode, composing, draft, mask, returnMaskedValue, stored]);
|
|
88
|
+
|
|
89
|
+
const commit = useCallback(
|
|
90
|
+
(next: string) => {
|
|
91
|
+
setDraft(next);
|
|
92
|
+
if (!mask) {
|
|
93
|
+
handleChange(path, next || undefined);
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
handleChange(
|
|
97
|
+
path,
|
|
98
|
+
storedValue(mask, next, returnMaskedValue) || undefined,
|
|
99
|
+
);
|
|
100
|
+
},
|
|
101
|
+
[handleChange, mask, path, returnMaskedValue],
|
|
102
|
+
);
|
|
103
|
+
|
|
104
|
+
const onClear = useCallback(() => {
|
|
105
|
+
setDraft(undefined);
|
|
106
|
+
handleChange(path, undefined);
|
|
107
|
+
}, [handleChange, path]);
|
|
108
|
+
|
|
109
|
+
useLayoutEffect(() => {
|
|
110
|
+
const position = pendingCaret.current;
|
|
111
|
+
if (position === undefined) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
pendingCaret.current = undefined;
|
|
115
|
+
const field = getInput();
|
|
116
|
+
if (field && field.value === display) {
|
|
117
|
+
field.setSelectionRange(position, position);
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
const onChange = useCallback(
|
|
122
|
+
(event: React.SyntheticEvent<HTMLInputElement>) => {
|
|
123
|
+
// Some input adapters deliver events from a cloned node. Restore the live input.
|
|
124
|
+
const field = getInput();
|
|
125
|
+
const raw = field ? field.value : event.currentTarget.value;
|
|
126
|
+
if (composingRef.current) {
|
|
127
|
+
if (compositionMode === 'defer') setDraft(raw);
|
|
128
|
+
else commit(raw);
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
if (!mask) {
|
|
132
|
+
commit(raw);
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
const deleting = (
|
|
136
|
+
(event.nativeEvent as InputEvent).inputType ?? ''
|
|
137
|
+
).startsWith('delete');
|
|
138
|
+
const caret = field ? field.selectionStart : null;
|
|
139
|
+
const masked = maskEdit(mask, raw, deleting);
|
|
140
|
+
|
|
141
|
+
// `restrict` limits the **stored** string, so this is the only place the
|
|
142
|
+
// limit can be applied: the displayed text is a different length and the
|
|
143
|
+
// input's own `maxlength` would count the wrong characters.
|
|
144
|
+
if (
|
|
145
|
+
appliedUiSchemaOptions.restrict &&
|
|
146
|
+
!withinMaxLength(
|
|
147
|
+
storedValue(mask, masked, returnMaskedValue),
|
|
148
|
+
schema.maxLength,
|
|
149
|
+
)
|
|
150
|
+
) {
|
|
151
|
+
// Refused, so no state changes and React will not re-render - which
|
|
152
|
+
// would leave the rejected keystroke sitting in the DOM. Put the
|
|
153
|
+
// accepted text back by hand, with the caret where the refused
|
|
154
|
+
// character would have gone.
|
|
155
|
+
if (field) {
|
|
156
|
+
field.value = display;
|
|
157
|
+
const restore = Math.max(0, (caret ?? display.length) - 1);
|
|
158
|
+
field.setSelectionRange(restore, restore);
|
|
159
|
+
}
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
pendingCaret.current = nextCaret(mask, raw, caret, masked, deleting);
|
|
164
|
+
commit(masked);
|
|
165
|
+
},
|
|
166
|
+
[
|
|
167
|
+
compositionMode,
|
|
168
|
+
getInput,
|
|
169
|
+
appliedUiSchemaOptions.restrict,
|
|
170
|
+
commit,
|
|
171
|
+
display,
|
|
172
|
+
mask,
|
|
173
|
+
returnMaskedValue,
|
|
174
|
+
schema.maxLength,
|
|
175
|
+
],
|
|
176
|
+
);
|
|
177
|
+
|
|
178
|
+
return {
|
|
179
|
+
appliedUiSchemaOptions,
|
|
180
|
+
settings,
|
|
181
|
+
display,
|
|
182
|
+
onClear,
|
|
183
|
+
onChange,
|
|
184
|
+
onCompositionStart() {
|
|
185
|
+
composingRef.current = true;
|
|
186
|
+
if (compositionMode === 'defer') setComposing(true);
|
|
187
|
+
},
|
|
188
|
+
onCompositionEnd(event: React.SyntheticEvent<HTMLInputElement>) {
|
|
189
|
+
composingRef.current = false;
|
|
190
|
+
if (compositionMode === 'defer') setComposing(false);
|
|
191
|
+
onChange(event);
|
|
192
|
+
},
|
|
193
|
+
};
|
|
194
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export * from './cells/cellMode';
|
|
2
|
+
export * from './cells/compositeActions';
|
|
3
|
+
export * from './cells/compositeSummary';
|
|
4
|
+
export * from './collections/arrayChoices';
|
|
5
|
+
export * from './composition/combinators';
|
|
6
|
+
export * from './composition/scalarComposition';
|
|
7
|
+
export * from './controls/numeric';
|
|
8
|
+
export * from './controls/useClearAffordance';
|
|
9
|
+
export * from './controls/useDebouncedChange';
|
|
10
|
+
export * from './controls/useFocus';
|
|
11
|
+
export * from './core/configNamespaces';
|
|
12
|
+
export * from './core/uiSchemaCycle';
|
|
13
|
+
export * from './dynamic/DynamicUiProvider';
|
|
14
|
+
export * from './dynamic/dynamicConfig';
|
|
15
|
+
export { loadDynamicUiExpressions } from './dynamic/dynamicRuntime';
|
|
16
|
+
export * from './dynamic/dynamicUi';
|
|
17
|
+
export * from './formats/colorFormat';
|
|
18
|
+
export { formatDate, parseDateValue as getData } from './formats/dateValues';
|
|
19
|
+
export * from './formats/duration';
|
|
20
|
+
export { hasMaskPattern, extendedMaskTester } from './formats/maskControls';
|
|
21
|
+
export * from './formats/maskFormat';
|
|
22
|
+
export * from './formats/temporalBounds';
|
|
23
|
+
export * from './formats/temporalFormats';
|
|
24
|
+
export * from './interaction/confirmation';
|
|
25
|
+
export * from './interaction/pendingChanges';
|
|
26
|
+
export * from './interaction/visuallyHidden';
|
|
27
|
+
export * from './layout/categoryState';
|
|
28
|
+
export * from './layout/groupState';
|
|
29
|
+
export * from './layout/layoutContext';
|
|
30
|
+
export * from './layout/layoutSizing';
|
|
31
|
+
export * from './locale';
|
|
32
|
+
export * from './locale/rendererLocale';
|
|
33
|
+
export * from './locale/translate';
|
|
34
|
+
export * from './mixed/mixedSchema';
|
|
35
|
+
export * from './mixed/mixedTree';
|
|
36
|
+
export * from './objects/additionalProperties';
|
|
37
|
+
export * from './objects/additionalPropertyName';
|
|
38
|
+
export * from './objects/dynamicProperties';
|
|
39
|
+
export * from './objects/literalPropertySchema';
|
|
40
|
+
export * from './tuple/tupleSchema';
|
|
41
|
+
export * from './validation/preTouchErrors';
|
|
42
|
+
export * from './validation/validationIndicator';
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The shared destructive-change confirmation policy, with no React in it.
|
|
3
|
+
*
|
|
4
|
+
* Section 14 defines one policy for every renderer that discards data, so this
|
|
5
|
+
* module owns the whole of it: which policy applies, and whether that policy
|
|
6
|
+
* prompts for the values actually being discarded. The renderers only supply
|
|
7
|
+
* the values and act on the answer.
|
|
8
|
+
*
|
|
9
|
+
* Confirmation is **separate from permission**. It never bypasses `restrict`,
|
|
10
|
+
* readonly, disabled state or schema constraints, and it is not a second
|
|
11
|
+
* chance to do something the form already forbids.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
export type ConfirmationPolicy = 'always' | 'never' | 'complex';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The operations the policy covers. Ordinary typing, navigation, adding a
|
|
18
|
+
* value and re-selecting the current type or branch are not among them.
|
|
19
|
+
*/
|
|
20
|
+
export type ConfirmationOperation = 'typeChange' | 'branchChange' | 'delete';
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The built-in catalog ids used by the base renderer families.
|
|
24
|
+
*
|
|
25
|
+
* Stable semantic identifiers, "not library component names" - so a host's
|
|
26
|
+
* configuration survives a renderer being rewritten or renamed.
|
|
27
|
+
*
|
|
28
|
+
* For an action hosted inside another renderer, the id is **the owner of the
|
|
29
|
+
* action**: a dynamic property's Delete is `additionalProperties` even though
|
|
30
|
+
* an object renderer draws it, and the mixed workspace's tree Delete is
|
|
31
|
+
* `mixed`.
|
|
32
|
+
*/
|
|
33
|
+
export type BaseConfirmationCatalogId =
|
|
34
|
+
| 'compositeCell'
|
|
35
|
+
| 'mixed'
|
|
36
|
+
| 'oneOf'
|
|
37
|
+
| 'arrayTable'
|
|
38
|
+
| 'arrayLayout'
|
|
39
|
+
| 'listWithDetail'
|
|
40
|
+
| 'additionalProperties'
|
|
41
|
+
| 'additionalItems';
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Any stable catalog id, including those contributed by optional extensions.
|
|
45
|
+
*
|
|
46
|
+
* Section 14's list also names `agGrid`, which is **not** enumerated here: that
|
|
47
|
+
* renderer lives in the extended package, and this one must not know about
|
|
48
|
+
* anything downstream of it. The extended set passes its own id as a plain
|
|
49
|
+
* string; the `string & {}` keeps editor completion for the base ids listed
|
|
50
|
+
* above while leaving the vocabulary open.
|
|
51
|
+
*/
|
|
52
|
+
// oxlint-disable-next-line @typescript-eslint/ban-types
|
|
53
|
+
export type ConfirmationCatalogId = BaseConfirmationCatalogId | (string & {});
|
|
54
|
+
|
|
55
|
+
const POLICIES: ConfirmationPolicy[] = ['always', 'never', 'complex'];
|
|
56
|
+
|
|
57
|
+
const asPolicy = (value: unknown): ConfirmationPolicy | undefined =>
|
|
58
|
+
POLICIES.includes(value as ConfirmationPolicy)
|
|
59
|
+
? (value as ConfirmationPolicy)
|
|
60
|
+
: undefined;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* The documented fallback, used when nothing configures the operation.
|
|
64
|
+
*
|
|
65
|
+
* Mixed type changes and all deletions fall back to `complex`; other operations fall back to
|
|
66
|
+
* `always`. Section 14 spells out the consequence: "the default configuration
|
|
67
|
+
* example deliberately opts into always globally while restoring complex for
|
|
68
|
+
* mixed type changes; without that exception a global always also applies to
|
|
69
|
+
* mixed type changes" - so a configured `default` really does replace this,
|
|
70
|
+
* rather than being merged with it.
|
|
71
|
+
*/
|
|
72
|
+
export const fallbackConfirmationPolicy = (
|
|
73
|
+
catalogId: ConfirmationCatalogId,
|
|
74
|
+
operation: ConfirmationOperation,
|
|
75
|
+
): ConfirmationPolicy =>
|
|
76
|
+
(catalogId === 'mixed' && operation === 'typeChange') ||
|
|
77
|
+
operation === 'delete'
|
|
78
|
+
? 'complex'
|
|
79
|
+
: 'always';
|
|
80
|
+
|
|
81
|
+
const namespaceOf = (config: unknown): Record<string, unknown> | undefined => {
|
|
82
|
+
const extended = (config as Record<string, unknown> | undefined)?.[
|
|
83
|
+
'jsonformsExtended'
|
|
84
|
+
];
|
|
85
|
+
const confirmation = (extended as Record<string, unknown> | undefined)?.[
|
|
86
|
+
'confirmation'
|
|
87
|
+
];
|
|
88
|
+
return confirmation && typeof confirmation === 'object'
|
|
89
|
+
? (confirmation as Record<string, unknown>)
|
|
90
|
+
: undefined;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export interface ResolveConfirmationOptions {
|
|
94
|
+
/** The element's `uischema.options`. */
|
|
95
|
+
options?: Record<string, unknown>;
|
|
96
|
+
/** The global JSON Forms `config`. */
|
|
97
|
+
config?: unknown;
|
|
98
|
+
catalogId: ConfirmationCatalogId;
|
|
99
|
+
operation: ConfirmationOperation;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Section 14's resolution order, exactly:
|
|
104
|
+
*
|
|
105
|
+
* 1. `options.confirmation[operation]`
|
|
106
|
+
* 2. `config.jsonformsExtended.confirmation.renderers[catalogId][operation]`
|
|
107
|
+
* 3. `config.jsonformsExtended.confirmation.default`
|
|
108
|
+
* 4. the documented fallback
|
|
109
|
+
*
|
|
110
|
+
* Unrecognized values are ignored rather than treated as `never`, so a typo
|
|
111
|
+
* cannot silently switch confirmation off.
|
|
112
|
+
*/
|
|
113
|
+
export const resolveConfirmationPolicy = ({
|
|
114
|
+
options,
|
|
115
|
+
config,
|
|
116
|
+
catalogId,
|
|
117
|
+
operation,
|
|
118
|
+
}: ResolveConfirmationOptions): ConfirmationPolicy => {
|
|
119
|
+
const element = options?.confirmation as Record<string, unknown> | undefined;
|
|
120
|
+
const fromElement = asPolicy(element?.[operation]);
|
|
121
|
+
if (fromElement) {
|
|
122
|
+
return fromElement;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
const namespace = namespaceOf(config);
|
|
126
|
+
const renderers = namespace?.renderers as
|
|
127
|
+
| Record<string, Record<string, unknown>>
|
|
128
|
+
| undefined;
|
|
129
|
+
const fromRenderer = asPolicy(renderers?.[catalogId]?.[operation]);
|
|
130
|
+
if (fromRenderer) {
|
|
131
|
+
return fromRenderer;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
const fromDefault = asPolicy(namespace?.default);
|
|
135
|
+
if (fromDefault) {
|
|
136
|
+
return fromDefault;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
return fallbackConfirmationPolicy(catalogId, operation);
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Whether a value counts as something there is to discard.
|
|
144
|
+
*
|
|
145
|
+
* Section 14: "no prompt when there is no value to discard. False, zero, empty
|
|
146
|
+
* strings, and empty containers are existing values." Only absence is nothing -
|
|
147
|
+
* `null` is a value a user chose, and so is `{}`.
|
|
148
|
+
*/
|
|
149
|
+
export const isDiscardableValue = (value: unknown): boolean =>
|
|
150
|
+
value !== undefined;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Whether a value is the "complex" kind: a **nonempty** object or array.
|
|
154
|
+
*
|
|
155
|
+
* "A nonempty object has at least one own key; a nonempty array has at least
|
|
156
|
+
* one item, independently of whether its nested values are empty" - so
|
|
157
|
+
* `{ a: {} }` qualifies and `{}` does not.
|
|
158
|
+
*/
|
|
159
|
+
export const isComplexValue = (value: unknown): boolean => {
|
|
160
|
+
if (Array.isArray(value)) {
|
|
161
|
+
return value.length > 0;
|
|
162
|
+
}
|
|
163
|
+
return (
|
|
164
|
+
typeof value === 'object' &&
|
|
165
|
+
value !== null &&
|
|
166
|
+
Object.keys(value as object).length > 0
|
|
167
|
+
);
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Whether the policy prompts for the values being discarded.
|
|
172
|
+
*
|
|
173
|
+
* Takes a list because "for batches, one confirmation covers the operation;
|
|
174
|
+
* complex applies if any discarded value qualifies" - so a multi-row delete
|
|
175
|
+
* asks once, and asks at all if any one row holds something complex.
|
|
176
|
+
*
|
|
177
|
+
* `complex` deliberately inspects **the old value, not the destination type**:
|
|
178
|
+
* changing a populated object into a string prompts, and changing a string into
|
|
179
|
+
* an object does not.
|
|
180
|
+
*/
|
|
181
|
+
export const confirmationRequired = (
|
|
182
|
+
policy: ConfirmationPolicy,
|
|
183
|
+
discarded: unknown[],
|
|
184
|
+
): boolean => {
|
|
185
|
+
if (policy === 'never') {
|
|
186
|
+
return false;
|
|
187
|
+
}
|
|
188
|
+
if (policy === 'complex') {
|
|
189
|
+
return discarded.some(isComplexValue);
|
|
190
|
+
}
|
|
191
|
+
return discarded.some(isDiscardableValue);
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* The whole decision in one call, for a renderer that has a value in hand.
|
|
196
|
+
*/
|
|
197
|
+
export const shouldConfirm = (
|
|
198
|
+
resolve: ResolveConfirmationOptions,
|
|
199
|
+
discarded: unknown[],
|
|
200
|
+
): boolean =>
|
|
201
|
+
confirmationRequired(resolveConfirmationPolicy(resolve), discarded);
|
|
202
|
+
|
|
203
|
+
export interface ConfirmationRequest {
|
|
204
|
+
operation: ConfirmationOperation;
|
|
205
|
+
catalogId: ConfirmationCatalogId;
|
|
206
|
+
discarded: unknown[];
|
|
207
|
+
options?: Record<string, unknown>;
|
|
208
|
+
config?: unknown;
|
|
209
|
+
/** Rechecks current mutation guards when the user confirms. */
|
|
210
|
+
perform: () => void;
|
|
211
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type {
|
|
3
|
+
ConfirmationCatalogId,
|
|
4
|
+
ConfirmationRequest,
|
|
5
|
+
} from './confirmation';
|
|
6
|
+
|
|
7
|
+
/** Bind a collection's catalog identity to its native confirmation hook. */
|
|
8
|
+
export function createDeleteConfirmation(
|
|
9
|
+
useConfirmation: () => {
|
|
10
|
+
request: (input: ConfirmationRequest) => void;
|
|
11
|
+
dialog: ReactNode;
|
|
12
|
+
},
|
|
13
|
+
catalogId: ConfirmationCatalogId,
|
|
14
|
+
) {
|
|
15
|
+
return function useDeleteConfirmation() {
|
|
16
|
+
const confirmation = useConfirmation();
|
|
17
|
+
return {
|
|
18
|
+
request: (input: Omit<ConfirmationRequest, 'operation' | 'catalogId'>) =>
|
|
19
|
+
confirmation.request({ ...input, operation: 'delete', catalogId }),
|
|
20
|
+
dialog: confirmation.dialog,
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}
|