@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,375 @@
|
|
|
1
|
+
import { Mask, tokens as maskaTokens } from 'maska';
|
|
2
|
+
import type { MaskTokens } from 'maska';
|
|
3
|
+
import { MaskPattern, isMaskPattern } from './maskControls';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Masking, with no React and no antd in it.
|
|
7
|
+
*
|
|
8
|
+
* The whole storage contract - what is displayed, what is stored, what a
|
|
9
|
+
* partial edit means, where the caret lands - is decidable from strings alone,
|
|
10
|
+
* so it is settled here and tested without rendering anything. The renderer
|
|
11
|
+
* above is then only a binding.
|
|
12
|
+
*
|
|
13
|
+
* The engine is [maska](https://github.com/beholdr/maska), the same library the
|
|
14
|
+
* Svelte and Vuetify families use. That is the point: the specification's
|
|
15
|
+
* option table *is* maska's API - `#`/`@`/`*`, `tokens`, `tokensReplace`,
|
|
16
|
+
* `eager`, `reversed` - and it requires cross-platform implementations to
|
|
17
|
+
* "document their mask/token grammar and regex compatibility". Sharing the
|
|
18
|
+
* engine makes the grammars identical by construction rather than by two teams
|
|
19
|
+
* reading the same paragraph.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
export { isMaskPattern };
|
|
23
|
+
export type { MaskPattern };
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The default token table, exactly as the specification states it.
|
|
27
|
+
*
|
|
28
|
+
* Written out here rather than imported so the normative table is readable in
|
|
29
|
+
* the code that implements it; `maskFormat.test.ts` asserts it still equals
|
|
30
|
+
* maska's own, so a library bump that changed the grammar would fail rather
|
|
31
|
+
* than quietly re-interpret every authored mask.
|
|
32
|
+
*/
|
|
33
|
+
export const DEFAULT_MASK_TOKENS: MaskTokens = {
|
|
34
|
+
'#': { pattern: /[0-9]/ },
|
|
35
|
+
'@': { pattern: /[a-zA-Z]/ },
|
|
36
|
+
'*': { pattern: /[a-zA-Z0-9]/ },
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** maska's own defaults, for the guard test. */
|
|
40
|
+
export const MASKA_DEFAULT_TOKENS: MaskTokens = maskaTokens;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* A token as a UI schema may spell it: a bare regex source, or an object
|
|
44
|
+
* carrying one plus the engine's repetition flags. A falsy entry *removes* a
|
|
45
|
+
* token, which is how an author narrows the default table.
|
|
46
|
+
*/
|
|
47
|
+
export type MaskTokenSpec =
|
|
48
|
+
| string
|
|
49
|
+
| {
|
|
50
|
+
pattern: string;
|
|
51
|
+
multiple?: boolean;
|
|
52
|
+
optional?: boolean;
|
|
53
|
+
repeated?: boolean;
|
|
54
|
+
}
|
|
55
|
+
| false
|
|
56
|
+
| null
|
|
57
|
+
| undefined;
|
|
58
|
+
|
|
59
|
+
export type MaskTokenSpecs = Record<string, MaskTokenSpec>;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The token-object fields that survive serialization.
|
|
63
|
+
*
|
|
64
|
+
* maska's `transform` is deliberately absent: it is a function, and the
|
|
65
|
+
* specification rules that out - "function-valued masking-library options are
|
|
66
|
+
* not portable serialized UI-model features". Any other field an author writes
|
|
67
|
+
* is dropped rather than passed through, so a UI schema cannot come to depend
|
|
68
|
+
* on a library detail that another family has no way to honor.
|
|
69
|
+
*/
|
|
70
|
+
const TOKEN_FLAGS = ['multiple', 'optional', 'repeated'] as const;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Compiles an authored regex source.
|
|
74
|
+
*
|
|
75
|
+
* Tried with the `u` flag first so `\p{L}` and friends work, then without it,
|
|
76
|
+
* because `u` rejects escapes that are legal in an ordinary regex (`\-` among
|
|
77
|
+
* them) and an author should not have to know which mode they are in. A source
|
|
78
|
+
* that compiles under neither is reported and dropped: an invalid regex in one
|
|
79
|
+
* token must not take the whole form down with a render-time throw.
|
|
80
|
+
*/
|
|
81
|
+
export const compileTokenPattern = (source: string): RegExp | undefined => {
|
|
82
|
+
try {
|
|
83
|
+
return new RegExp(source, 'u');
|
|
84
|
+
} catch {
|
|
85
|
+
// fall through to the unflagged attempt
|
|
86
|
+
}
|
|
87
|
+
try {
|
|
88
|
+
return new RegExp(source);
|
|
89
|
+
} catch {
|
|
90
|
+
return undefined;
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Builds the token table from the default one plus the authored entries.
|
|
96
|
+
*
|
|
97
|
+
* This starts from the defaults and applies the author's entries over them,
|
|
98
|
+
* which is what the neighbouring families do, so `"tokens": { "#": ... }`
|
|
99
|
+
* changes one token rather than replacing the table.
|
|
100
|
+
*/
|
|
101
|
+
export const toMaskTokens = (
|
|
102
|
+
specs: unknown,
|
|
103
|
+
onInvalid?: (token: string, pattern: string) => void,
|
|
104
|
+
): MaskTokens | undefined => {
|
|
105
|
+
if (!specs || typeof specs !== 'object' || Array.isArray(specs)) {
|
|
106
|
+
return undefined;
|
|
107
|
+
}
|
|
108
|
+
const result: MaskTokens = { ...DEFAULT_MASK_TOKENS };
|
|
109
|
+
for (const [key, spec] of Object.entries(specs as MaskTokenSpecs)) {
|
|
110
|
+
if (!spec) {
|
|
111
|
+
// An author removing a default token. This only takes effect while
|
|
112
|
+
// `tokensReplace` is on; see `resolveMaskSettings`.
|
|
113
|
+
delete result[key];
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
const source = typeof spec === 'string' ? spec : spec.pattern;
|
|
117
|
+
if (typeof source !== 'string') {
|
|
118
|
+
continue;
|
|
119
|
+
}
|
|
120
|
+
const pattern = compileTokenPattern(source);
|
|
121
|
+
if (!pattern) {
|
|
122
|
+
onInvalid?.(key, source);
|
|
123
|
+
continue;
|
|
124
|
+
}
|
|
125
|
+
const token: MaskTokens[string] = { pattern };
|
|
126
|
+
if (typeof spec !== 'string') {
|
|
127
|
+
for (const flag of TOKEN_FLAGS) {
|
|
128
|
+
if (spec[flag] === true) {
|
|
129
|
+
token[flag] = true;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
result[key] = token;
|
|
134
|
+
}
|
|
135
|
+
return result;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
export interface MaskSettings {
|
|
139
|
+
mask: MaskPattern;
|
|
140
|
+
tokens: MaskTokens;
|
|
141
|
+
tokensReplace: boolean;
|
|
142
|
+
eager: boolean;
|
|
143
|
+
reversed: boolean;
|
|
144
|
+
returnMaskedValue: boolean;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export const DEFAULT_MASK_SETTINGS = {
|
|
148
|
+
tokensReplace: true,
|
|
149
|
+
eager: false,
|
|
150
|
+
reversed: false,
|
|
151
|
+
returnMaskedValue: false,
|
|
152
|
+
} as const;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Resolves the authored options into the settings the engine takes.
|
|
156
|
+
*
|
|
157
|
+
* These options are **not** namespaced under `jsonformsExtended`. Adjustment 1
|
|
158
|
+
* places a config key by where it comes from, and every one of them is an
|
|
159
|
+
* established convention of the inspected Vuetify and Svelte families, so they
|
|
160
|
+
* sit at the top level of `config` under the names those families already use -
|
|
161
|
+
* alongside `clearable`, `restrict` and `placeholder`, which this control also
|
|
162
|
+
* reads flat.
|
|
163
|
+
*
|
|
164
|
+
* `mask` is the exception: it is read from the element only. A form-wide
|
|
165
|
+
* default mask would claim every string field in the form, and the tester
|
|
166
|
+
* inspects `uischema.options.mask` too, so a config-level one could never have
|
|
167
|
+
* selected this renderer in the first place.
|
|
168
|
+
*
|
|
169
|
+
* Every boolean means what it says: `"eager": true` is eager. That is worth
|
|
170
|
+
* stating because the inspected Svelte families compute `eager` and `reversed`
|
|
171
|
+
* as `appliedOptions.<option> === false`, so omission gives false, an explicit
|
|
172
|
+
* `true` *also* gives false, and only an explicit `false` turns the behaviour
|
|
173
|
+
* on - the inversion their own gap review records. The options are spelled the
|
|
174
|
+
* same way here and behave as documented instead.
|
|
175
|
+
*/
|
|
176
|
+
export const resolveMaskSettings = (
|
|
177
|
+
options: unknown,
|
|
178
|
+
config: unknown,
|
|
179
|
+
onInvalid?: (token: string, pattern: string) => void,
|
|
180
|
+
): MaskSettings | undefined => {
|
|
181
|
+
const mask = (options as { mask?: unknown } | undefined)?.mask;
|
|
182
|
+
if (!isMaskPattern(mask)) {
|
|
183
|
+
return undefined;
|
|
184
|
+
}
|
|
185
|
+
const applied = {
|
|
186
|
+
...(config as Record<string, unknown> | undefined),
|
|
187
|
+
...(options as Record<string, unknown> | undefined),
|
|
188
|
+
};
|
|
189
|
+
const specs = applied.tokens;
|
|
190
|
+
|
|
191
|
+
const flag = (name: keyof typeof DEFAULT_MASK_SETTINGS) =>
|
|
192
|
+
(applied[name] ?? DEFAULT_MASK_SETTINGS[name]) === true;
|
|
193
|
+
|
|
194
|
+
return {
|
|
195
|
+
mask,
|
|
196
|
+
tokens: toMaskTokens(specs, onInvalid) ?? DEFAULT_MASK_TOKENS,
|
|
197
|
+
tokensReplace: flag('tokensReplace'),
|
|
198
|
+
eager: flag('eager'),
|
|
199
|
+
reversed: flag('reversed'),
|
|
200
|
+
returnMaskedValue: flag('returnMaskedValue'),
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* `tokensReplace` is passed straight through to the engine, and it decides
|
|
206
|
+
* what happens to a *removed* token. The table built above already contains
|
|
207
|
+
* the defaults, so with `tokensReplace: true` - the documented default - it is
|
|
208
|
+
* used verbatim and a removal holds. With `tokensReplace: false` the engine
|
|
209
|
+
* merges its own defaults back underneath, so an override still applies but a
|
|
210
|
+
* removal is undone. That is the neighbouring families' behaviour, kept for
|
|
211
|
+
* parity rather than because it reads well.
|
|
212
|
+
*/
|
|
213
|
+
export const createMask = (settings: MaskSettings): Mask =>
|
|
214
|
+
new Mask({
|
|
215
|
+
mask: settings.mask,
|
|
216
|
+
tokens: settings.tokens,
|
|
217
|
+
tokensReplace: settings.tokensReplace,
|
|
218
|
+
eager: settings.eager,
|
|
219
|
+
reversed: settings.reversed,
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* The stored form of what is currently displayed.
|
|
224
|
+
*
|
|
225
|
+
* `returnMaskedValue` is the whole of the storage decision: false stores the
|
|
226
|
+
* characters the user supplied, true stores them with the mask's literals in
|
|
227
|
+
* place. The specification is firm that choosing it is an authoring decision
|
|
228
|
+
* with a schema consequence - "if `returnMaskedValue: true` is chosen, the
|
|
229
|
+
* schema must instead describe the stored representation containing the
|
|
230
|
+
* separator" - and that the renderer "must not rewrite the schema when this
|
|
231
|
+
* option changes". Nothing here touches the schema.
|
|
232
|
+
*/
|
|
233
|
+
export const storedValue = (
|
|
234
|
+
mask: Mask,
|
|
235
|
+
displayed: string,
|
|
236
|
+
returnMaskedValue: boolean,
|
|
237
|
+
): string =>
|
|
238
|
+
returnMaskedValue ? mask.masked(displayed) : mask.unmasked(displayed);
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Whether a stored string is one this mask could have produced.
|
|
242
|
+
*
|
|
243
|
+
* The test is a round trip rather than a syntax check, because the question is
|
|
244
|
+
* not "does this look plausible" but "would displaying this and reading it back
|
|
245
|
+
* return the same value". A value that fails is one the mask cannot carry
|
|
246
|
+
* without changing it - `"1234567890"` under `###-###` loses four digits, and
|
|
247
|
+
* `"unknown"` loses everything.
|
|
248
|
+
*/
|
|
249
|
+
export const fitsMask = (
|
|
250
|
+
mask: Mask,
|
|
251
|
+
stored: string,
|
|
252
|
+
returnMaskedValue: boolean,
|
|
253
|
+
): boolean =>
|
|
254
|
+
returnMaskedValue
|
|
255
|
+
? mask.masked(stored) === stored
|
|
256
|
+
: mask.unmasked(mask.masked(stored)) === stored;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* What the field shows for a stored value.
|
|
260
|
+
*
|
|
261
|
+
* A value the mask fits is displayed masked. **A value it does not fit is shown
|
|
262
|
+
* verbatim**, which is the whole of this renderer's answer to the question the
|
|
263
|
+
* specification leaves open - "treatment of existing values that do not fit" -
|
|
264
|
+
* and it is not a free choice: section 19 requires out-of-domain data to be
|
|
265
|
+
* rendered honestly, and the shared editing contract says in as many words to
|
|
266
|
+
* "preserve invalid incoming data for correction; do not truncate it
|
|
267
|
+
* automatically on rendering."
|
|
268
|
+
*
|
|
269
|
+
* The alternative - showing the masked remnant - would put `123-456` on screen
|
|
270
|
+
* for a stored `1234567890` while the data still held ten digits, so the field
|
|
271
|
+
* would disagree with the form it belongs to and a validation error would point
|
|
272
|
+
* at something invisible.
|
|
273
|
+
*/
|
|
274
|
+
export const displayValue = (
|
|
275
|
+
mask: Mask,
|
|
276
|
+
stored: string,
|
|
277
|
+
returnMaskedValue: boolean,
|
|
278
|
+
): string =>
|
|
279
|
+
fitsMask(mask, stored, returnMaskedValue) ? mask.masked(stored) : stored;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* String length as JSON Schema counts it.
|
|
283
|
+
*
|
|
284
|
+
* "JSON Schema strings are sequences of Unicode code points; HTML maxlength
|
|
285
|
+
* measures UTF-16 code units. A direct mapping is therefore not equivalent for
|
|
286
|
+
* all valid input." Iterating a string yields code points, so `"😀"` is 1 here
|
|
287
|
+
* and 2 to `String.prototype.length` - and a `maxLength: 1` schema accepts it.
|
|
288
|
+
*/
|
|
289
|
+
export const codePointLength = (value: string): number => [...value].length;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Whether an edit is allowed to stand under `restrict` and `maxLength`.
|
|
293
|
+
*
|
|
294
|
+
* The limit is checked against the **stored** string, never the displayed one.
|
|
295
|
+
* With `returnMaskedValue: false` those differ by every mask literal, so a
|
|
296
|
+
* `maxLength: 6` field masked `###-###` displays seven characters for six
|
|
297
|
+
* stored digits: forwarding the limit to the input's `maxlength`, as the
|
|
298
|
+
* neighbouring families do, blocks the seventh keystroke and makes the sixth
|
|
299
|
+
* digit untypeable. The specification asks for exactly this distinction - "for
|
|
300
|
+
* masked or formatted inputs, distinguish display characters from the stored
|
|
301
|
+
* representation to which the schema constraint applies."
|
|
302
|
+
*/
|
|
303
|
+
export const withinMaxLength = (
|
|
304
|
+
stored: string,
|
|
305
|
+
maxLength: number | undefined,
|
|
306
|
+
): boolean => maxLength === undefined || codePointLength(stored) <= maxLength;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Where the caret belongs after the mask has rewritten what was typed.
|
|
310
|
+
*
|
|
311
|
+
* Inserting a literal moves every later character right, so leaving the caret
|
|
312
|
+
* at its raw offset drops it a character behind after each separator - type
|
|
313
|
+
* `123` into `###-###` and the `-` appears, but the next digit lands before it.
|
|
314
|
+
* The rule is to keep the caret after the same *token* character it was after,
|
|
315
|
+
* which is found by walking the masked text until it carries as many token
|
|
316
|
+
* characters as the raw text did up to the caret.
|
|
317
|
+
*
|
|
318
|
+
* This mirrors maska's own `MaskInput.fixCursor`, reimplemented rather than
|
|
319
|
+
* reused because that method is private to a class whose binding writes
|
|
320
|
+
* `input.value` directly and dispatches a non-bubbling `CustomEvent` - the two
|
|
321
|
+
* things React's controlled inputs and synthetic events do not survive. Keeping
|
|
322
|
+
* it pure also makes it testable without a DOM.
|
|
323
|
+
*
|
|
324
|
+
* Returns `undefined` when the caret should be left where the browser put it.
|
|
325
|
+
*/
|
|
326
|
+
export const nextCaret = (
|
|
327
|
+
mask: Mask,
|
|
328
|
+
raw: string,
|
|
329
|
+
caret: number | null,
|
|
330
|
+
masked: string,
|
|
331
|
+
deleting: boolean,
|
|
332
|
+
): number | undefined => {
|
|
333
|
+
// Typing at the end: the browser has already left the caret at the end, and
|
|
334
|
+
// the masked text only ever grows to the right of it.
|
|
335
|
+
if (caret === null || (caret === raw.length && !deleting)) {
|
|
336
|
+
return undefined;
|
|
337
|
+
}
|
|
338
|
+
const rawHead = raw.slice(0, caret);
|
|
339
|
+
const maskedHead = masked.slice(0, caret);
|
|
340
|
+
if (rawHead === maskedHead) {
|
|
341
|
+
return caret;
|
|
342
|
+
}
|
|
343
|
+
if (deleting) {
|
|
344
|
+
return caret + masked.length - raw.length;
|
|
345
|
+
}
|
|
346
|
+
const typed = mask.unmasked(rawHead);
|
|
347
|
+
if (typed.length === 0) {
|
|
348
|
+
return 0;
|
|
349
|
+
}
|
|
350
|
+
for (let index = 1; index <= masked.length; index += 1) {
|
|
351
|
+
if (mask.unmasked(masked.slice(0, index)).length >= typed.length) {
|
|
352
|
+
return index;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
return masked.length;
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* The text an edit should leave on screen.
|
|
360
|
+
*
|
|
361
|
+
* The one special case is maska's: deleting the last token character of an
|
|
362
|
+
* eager mask would otherwise leave its literals stranded - `1` backspaced under
|
|
363
|
+
* an eager `###-###` masks back to `1-`, which cannot be deleted - so an eager
|
|
364
|
+
* delete that empties the value empties the field.
|
|
365
|
+
*/
|
|
366
|
+
export const maskEdit = (
|
|
367
|
+
mask: Mask,
|
|
368
|
+
raw: string,
|
|
369
|
+
deleting: boolean,
|
|
370
|
+
): string => {
|
|
371
|
+
if (deleting && mask.isEager() && mask.unmasked(raw) === '') {
|
|
372
|
+
return '';
|
|
373
|
+
}
|
|
374
|
+
return mask.masked(raw);
|
|
375
|
+
};
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import { parseDateValue } from './dateValues';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Picker limits from `formatMinimum` and friends.
|
|
6
|
+
*
|
|
7
|
+
* Section 18's temporal contract:
|
|
8
|
+
*
|
|
9
|
+
* | Keyword | Meaning for the widget |
|
|
10
|
+
* | --- | --- |
|
|
11
|
+
* | `formatMinimum` | Inclusive lower bound: prevent choices and completed commits before it. |
|
|
12
|
+
* | `formatExclusiveMinimum` | Exclusive lower bound: "the boundary itself is not selectable". |
|
|
13
|
+
* | `formatMaximum` | Inclusive upper bound. |
|
|
14
|
+
* | `formatExclusiveMaximum` | Exclusive upper bound. |
|
|
15
|
+
*
|
|
16
|
+
* "The preventive bound behavior above follows effective `restrict`" - these
|
|
17
|
+
* limits are about what the picker *offers*. They never clamp a value that is
|
|
18
|
+
* already stored: "does not authorize clamping existing data". A value outside
|
|
19
|
+
* the bounds stays exactly as it is, shown with its validation error, and the
|
|
20
|
+
* validator remains the thing that decides validity.
|
|
21
|
+
*
|
|
22
|
+
* The four keywords come from `ajv-formats`, not from JSON Schema itself, and
|
|
23
|
+
* Ajv only compares them when the schema carries a `format` it knows how to
|
|
24
|
+
* order. A UI-only `options.format` cannot supply that, so a control selected
|
|
25
|
+
* that way gets bounds in the picker and no validation behind them.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Just the four keywords, read off whatever schema object is to hand.
|
|
30
|
+
*
|
|
31
|
+
* An index signature rather than four optional fields: they are `ajv-formats`
|
|
32
|
+
* extensions, so `JsonSchema` does not declare them and a structural type of
|
|
33
|
+
* four optional unknowns has no property in common with it.
|
|
34
|
+
*/
|
|
35
|
+
export type TemporalBoundsSchema = Record<string, unknown>;
|
|
36
|
+
|
|
37
|
+
export type BoundPrecision = 'day' | 'minute' | 'second';
|
|
38
|
+
|
|
39
|
+
export interface TemporalBounds {
|
|
40
|
+
min?: dayjs.Dayjs;
|
|
41
|
+
max?: dayjs.Dayjs;
|
|
42
|
+
/** True when the bounds leave nothing selectable at all. */
|
|
43
|
+
empty: boolean;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** The arbitrary day a bare time is placed on, so two clock values compare. */
|
|
47
|
+
const CLOCK_DAY = '2000-01-01';
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Resolves the four keywords into one selectable range.
|
|
51
|
+
*
|
|
52
|
+
* **Exclusivity is resolved at the picker's precision**, which the section
|
|
53
|
+
* requires: "exclusivity must be preserved at the picker's supported
|
|
54
|
+
* precision". A date picker offering whole days cannot express "after
|
|
55
|
+
* 2026-09-19 but not 2026-09-19 itself" except by starting at the 20th, so an
|
|
56
|
+
* exclusive lower bound steps one unit forward and an exclusive upper bound
|
|
57
|
+
* one unit back.
|
|
58
|
+
*
|
|
59
|
+
* `timeOnly` normalises both bounds onto one arbitrary day, so a time picker
|
|
60
|
+
* compares clock values without inventing a reference date - the approach the
|
|
61
|
+
* Svelte renderer family takes for the same reason.
|
|
62
|
+
*/
|
|
63
|
+
export const temporalBounds = (
|
|
64
|
+
schema: TemporalBoundsSchema | undefined,
|
|
65
|
+
formats: string[],
|
|
66
|
+
precision: BoundPrecision,
|
|
67
|
+
timeOnly = false,
|
|
68
|
+
): TemporalBounds => {
|
|
69
|
+
let min: dayjs.Dayjs | undefined;
|
|
70
|
+
let max: dayjs.Dayjs | undefined;
|
|
71
|
+
|
|
72
|
+
for (const [key, lower, exclusive] of [
|
|
73
|
+
['formatMinimum', true, false],
|
|
74
|
+
['formatExclusiveMinimum', true, true],
|
|
75
|
+
['formatMaximum', false, false],
|
|
76
|
+
['formatExclusiveMaximum', false, true],
|
|
77
|
+
] as const) {
|
|
78
|
+
const raw = (schema as Record<string, unknown> | undefined)?.[key];
|
|
79
|
+
if (typeof raw !== 'string') {
|
|
80
|
+
continue;
|
|
81
|
+
}
|
|
82
|
+
let bound = parseDateValue(raw, formats);
|
|
83
|
+
if (!bound) {
|
|
84
|
+
continue;
|
|
85
|
+
}
|
|
86
|
+
if (timeOnly) {
|
|
87
|
+
bound = bound.year(2000).month(0).date(1);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
let candidate = bound.startOf(precision);
|
|
91
|
+
if (
|
|
92
|
+
lower &&
|
|
93
|
+
(candidate.isBefore(bound) || (exclusive && candidate.isSame(bound)))
|
|
94
|
+
) {
|
|
95
|
+
// Either the bound sits mid-unit - so the first whole unit at or after
|
|
96
|
+
// it is the next one - or it is exclusive and must be stepped past.
|
|
97
|
+
candidate = candidate.add(1, precision);
|
|
98
|
+
} else if (!lower && exclusive && candidate.isSame(bound)) {
|
|
99
|
+
candidate = candidate.subtract(1, precision);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// Several keywords may apply at once; the tightest one wins.
|
|
103
|
+
if (lower) {
|
|
104
|
+
if (!min || candidate.isAfter(min)) {
|
|
105
|
+
min = candidate;
|
|
106
|
+
}
|
|
107
|
+
} else if (!max || candidate.isBefore(max)) {
|
|
108
|
+
max = candidate;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const clockStart = dayjs(CLOCK_DAY).startOf('day');
|
|
113
|
+
const empty =
|
|
114
|
+
!!(min && max && min.isAfter(max)) ||
|
|
115
|
+
(timeOnly &&
|
|
116
|
+
!!(
|
|
117
|
+
(min && !min.isBefore(clockStart.add(1, 'day'))) ||
|
|
118
|
+
(max && max.isBefore(clockStart))
|
|
119
|
+
));
|
|
120
|
+
|
|
121
|
+
return { min, max, empty };
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
/** Preventive picker limits follow the local option, then flat form config. */
|
|
125
|
+
export const effectiveRestrict = (
|
|
126
|
+
options: Record<string, unknown> | undefined,
|
|
127
|
+
config: unknown,
|
|
128
|
+
): boolean => {
|
|
129
|
+
if (typeof options?.restrict === 'boolean') {
|
|
130
|
+
return options.restrict;
|
|
131
|
+
}
|
|
132
|
+
const flat = (config as Record<string, unknown> | undefined)?.restrict;
|
|
133
|
+
return typeof flat === 'boolean' ? flat : true;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* A bound written as an Ajv `$data` reference, resolved against the form data.
|
|
138
|
+
*
|
|
139
|
+
* `{ "formatMinimum": { "$data": "1/from" } }` is how a date range says "not
|
|
140
|
+
* before the other end", and it is the reason the four bound keywords exist in
|
|
141
|
+
* pairs at all. The pointer is a **JSON Relative Pointer**, relative to the
|
|
142
|
+
* *instance* being validated: `1/from` means up one level from this property,
|
|
143
|
+
* then `from`.
|
|
144
|
+
*
|
|
145
|
+
* Section 18 keeps this separate from literal bounds - "literal bounds and
|
|
146
|
+
* `$data` references are separate support capabilities. A renderer claiming
|
|
147
|
+
* literal-bound support must not imply that it resolves `$data` bounds" - so
|
|
148
|
+
* it is resolved deliberately here rather than being assumed to come for free.
|
|
149
|
+
*
|
|
150
|
+
* Returns undefined for anything it cannot follow, which leaves the bound
|
|
151
|
+
* simply unapplied: the picker offers more than it might, and the validator
|
|
152
|
+
* still has the final say.
|
|
153
|
+
*/
|
|
154
|
+
export const resolveDataPointer = (
|
|
155
|
+
pointer: string,
|
|
156
|
+
path: string | undefined,
|
|
157
|
+
rootData: unknown,
|
|
158
|
+
): unknown => {
|
|
159
|
+
const match = /^(\d+)(?:\/(.*))?$/.exec(pointer);
|
|
160
|
+
if (!match) {
|
|
161
|
+
// Absolute pointers and the `#` key-name suffix are not supported; a
|
|
162
|
+
// relative pointer is what a sibling bound needs.
|
|
163
|
+
return undefined;
|
|
164
|
+
}
|
|
165
|
+
const up = Number(match[1]);
|
|
166
|
+
const segments = (path ?? '').split('.').filter(Boolean);
|
|
167
|
+
if (up > segments.length) {
|
|
168
|
+
return undefined;
|
|
169
|
+
}
|
|
170
|
+
const base = up === 0 ? segments : segments.slice(0, segments.length - up);
|
|
171
|
+
const rest = (match[2] ?? '').split('/').filter(Boolean);
|
|
172
|
+
let current: unknown = rootData;
|
|
173
|
+
for (const segment of [...base, ...rest]) {
|
|
174
|
+
if (current === null || typeof current !== 'object') {
|
|
175
|
+
return undefined;
|
|
176
|
+
}
|
|
177
|
+
current = (current as Record<string, unknown>)[segment];
|
|
178
|
+
}
|
|
179
|
+
return current;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* The bound keywords with any `$data` references replaced by their values.
|
|
184
|
+
*
|
|
185
|
+
* Keeps `temporalBounds` working on strings alone, which is what makes its
|
|
186
|
+
* arithmetic testable without a form around it.
|
|
187
|
+
*/
|
|
188
|
+
export const resolveDataBounds = (
|
|
189
|
+
schema: TemporalBoundsSchema | undefined,
|
|
190
|
+
path: string | undefined,
|
|
191
|
+
rootData: unknown,
|
|
192
|
+
): TemporalBoundsSchema | undefined => {
|
|
193
|
+
if (!schema) {
|
|
194
|
+
return schema;
|
|
195
|
+
}
|
|
196
|
+
let changed = false;
|
|
197
|
+
const resolved: Record<string, unknown> = { ...schema };
|
|
198
|
+
for (const key of [
|
|
199
|
+
'formatMinimum',
|
|
200
|
+
'formatMaximum',
|
|
201
|
+
'formatExclusiveMinimum',
|
|
202
|
+
'formatExclusiveMaximum',
|
|
203
|
+
]) {
|
|
204
|
+
const raw = (schema as Record<string, unknown>)[key];
|
|
205
|
+
const pointer = (raw as { $data?: unknown } | undefined)?.$data;
|
|
206
|
+
if (typeof pointer !== 'string') {
|
|
207
|
+
continue;
|
|
208
|
+
}
|
|
209
|
+
changed = true;
|
|
210
|
+
const value = resolveDataPointer(pointer, path, rootData);
|
|
211
|
+
if (typeof value === 'string') {
|
|
212
|
+
resolved[key] = value;
|
|
213
|
+
} else {
|
|
214
|
+
// Not filled in yet, or not a string: no bound rather than a wrong one.
|
|
215
|
+
delete resolved[key];
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
return changed ? resolved : schema;
|
|
219
|
+
};
|