@contember/binding 1.1.0-alpha.0 → 1.1.0-alpha.11
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/dist/development/accessorPropagation/EnvironmentContext.js +28 -2
- package/dist/development/accessorPropagation/EnvironmentContext.js.map +1 -1
- package/dist/development/accessorPropagation/useEntityListSubTree.js +4 -2
- package/dist/development/accessorPropagation/useEntityListSubTree.js.map +1 -1
- package/dist/development/accessorPropagation/useEntitySubTree.js +4 -2
- package/dist/development/accessorPropagation/useEntitySubTree.js.map +1 -1
- package/dist/development/accessorPropagation/useExtendTree.js +27 -0
- package/dist/development/accessorPropagation/useExtendTree.js.map +1 -0
- package/dist/development/accessorTree/AccessorTree.js +16 -14
- package/dist/development/accessorTree/AccessorTree.js.map +1 -1
- package/dist/development/accessorTree/AccessorTreeStateContext.js +4 -0
- package/dist/development/accessorTree/AccessorTreeStateContext.js.map +1 -0
- package/dist/development/accessorTree/NormalizedPersistedData.js.map +1 -1
- package/dist/development/accessorTree/RuntimeId.js +17 -4
- package/dist/development/accessorTree/RuntimeId.js.map +1 -1
- package/dist/development/accessorTree/accessorTreeStateReducer.js +11 -2
- package/dist/development/accessorTree/accessorTreeStateReducer.js.map +1 -1
- package/dist/development/accessorTree/useAccessorTreeState.js +12 -0
- package/dist/development/accessorTree/useAccessorTreeState.js.map +1 -0
- package/dist/development/accessorTree/useDataBinding.js +41 -51
- package/dist/development/accessorTree/useDataBinding.js.map +1 -1
- package/dist/development/accessors/EntityAccessor.js +19 -40
- package/dist/development/accessors/EntityAccessor.js.map +1 -1
- package/dist/development/accessors/EntityListAccessor.js +11 -11
- package/dist/development/accessors/EntityListAccessor.js.map +1 -1
- package/dist/development/accessors/FieldAccessor.js +6 -6
- package/dist/development/accessors/FieldAccessor.js.map +1 -1
- package/dist/development/core/AccessorErrorManager.js +5 -2
- package/dist/development/core/AccessorErrorManager.js.map +1 -1
- package/dist/development/core/Config.js +1 -2
- package/dist/development/core/Config.js.map +1 -1
- package/dist/development/core/DataBinding.js +27 -40
- package/dist/development/core/DataBinding.js.map +1 -1
- package/dist/development/core/DirtinessTracker.js +4 -13
- package/dist/development/core/DirtinessTracker.js.map +1 -1
- package/dist/development/core/ErrorsPreprocessor.js +9 -13
- package/dist/development/core/ErrorsPreprocessor.js.map +1 -1
- package/dist/development/core/EventManager.js +13 -8
- package/dist/development/core/EventManager.js.map +1 -1
- package/dist/development/core/IncrementalMarkerBuilder.js +1 -1
- package/dist/development/core/MarkerMerger.js +2 -2
- package/dist/development/core/MutationGenerator.js +180 -141
- package/dist/development/core/MutationGenerator.js.map +1 -1
- package/dist/development/core/RequestResponseNormalizer.js +93 -134
- package/dist/development/core/RequestResponseNormalizer.js.map +1 -1
- package/dist/development/core/StateInitializer.js +30 -38
- package/dist/development/core/StateInitializer.js.map +1 -1
- package/dist/development/core/TreeAugmenter.js +14 -14
- package/dist/development/core/TreeAugmenter.js.map +1 -1
- package/dist/development/core/TreeFilterGenerator.js +2 -2
- package/dist/development/core/TreeFilterGenerator.js.map +1 -1
- package/dist/development/core/TreeStore.js +12 -23
- package/dist/development/core/TreeStore.js.map +1 -1
- package/dist/development/core/VariableInputTransformer.js.map +1 -1
- package/dist/development/core/operations/EntityOperations.js +14 -13
- package/dist/development/core/operations/EntityOperations.js.map +1 -1
- package/dist/development/core/operations/FieldOperations.js +2 -2
- package/dist/development/core/operations/FieldOperations.js.map +1 -1
- package/dist/development/core/operations/ListOperations.js +3 -3
- package/dist/development/core/operations/ListOperations.js.map +1 -1
- package/dist/development/core/operations/OperationsHelpers.js +2 -2
- package/dist/development/core/operations/OperationsHelpers.js.map +1 -1
- package/dist/development/core/requestAliases/MutationAlias.js +4 -40
- package/dist/development/core/requestAliases/MutationAlias.js.map +1 -1
- package/dist/development/core/schema/Schema.js +27 -3
- package/dist/development/core/schema/Schema.js.map +1 -1
- package/dist/development/core/schema/SchemaLoader.js +12 -12
- package/dist/development/core/schema/SchemaLoader.js.map +1 -1
- package/dist/development/core/schema/SchemaPreprocessor.js +1 -1
- package/dist/development/core/schema/SchemaPreprocessor.js.map +1 -1
- package/dist/development/coreComponents/Component.js +5 -2
- package/dist/development/coreComponents/Component.js.map +1 -1
- package/dist/development/coreComponents/DataBindingProvider.js +0 -1
- package/dist/development/coreComponents/DataBindingProvider.js.map +1 -1
- package/dist/development/coreComponents/EntityListSubTree.js.map +1 -1
- package/dist/development/coreComponents/HasOne.js +1 -1
- package/dist/development/dao/Environment.js +35 -3
- package/dist/development/dao/Environment.js.map +1 -1
- package/dist/development/dao/TreeNodeEnvironmentFactory.js +6 -13
- package/dist/development/dao/TreeNodeEnvironmentFactory.js.map +1 -1
- package/dist/development/helperComponents/DeferredSubTrees.js +16 -8
- package/dist/development/helperComponents/DeferredSubTrees.js.map +1 -1
- package/dist/development/helperComponents/If.js +39 -0
- package/dist/development/helperComponents/If.js.map +1 -0
- package/dist/development/helperComponents/SugaredField.js +1 -1
- package/dist/development/helperComponents/helpers/FilterEvaluator.js +35 -0
- package/dist/development/helperComponents/helpers/FilterEvaluator.js.map +1 -0
- package/dist/development/helperComponents/helpers/FilterFieldsCollector.js +38 -0
- package/dist/development/helperComponents/helpers/FilterFieldsCollector.js.map +1 -0
- package/dist/development/helperComponents/helpers/evaluateCondition.js +46 -0
- package/dist/development/helperComponents/helpers/evaluateCondition.js.map +1 -0
- package/dist/development/index.js +7 -2
- package/dist/development/index.js.map +1 -1
- package/dist/development/markers/EntityListSubTreeMarker.js +1 -1
- package/dist/development/markers/EntityListSubTreeMarker.js.map +1 -1
- package/dist/development/markers/EntitySubTreeMarker.js +1 -1
- package/dist/development/markers/EntitySubTreeMarker.js.map +1 -1
- package/dist/development/markers/PlaceholderGenerator.js +4 -4
- package/dist/development/markers/PlaceholderGenerator.js.map +1 -1
- package/dist/development/queryLanguage/MarkerFactory.js +2 -2
- package/dist/development/queryLanguage/QueryLanguage.js +1 -1
- package/dist/development/utils/Hashing.js +21 -6
- package/dist/development/utils/Hashing.js.map +1 -1
- package/dist/production/accessorPropagation/EnvironmentContext.js +28 -2
- package/dist/production/accessorPropagation/EnvironmentContext.js.map +1 -1
- package/dist/production/accessorPropagation/useEntityListSubTree.js +4 -2
- package/dist/production/accessorPropagation/useEntityListSubTree.js.map +1 -1
- package/dist/production/accessorPropagation/useEntitySubTree.js +4 -2
- package/dist/production/accessorPropagation/useEntitySubTree.js.map +1 -1
- package/dist/production/accessorPropagation/useExtendTree.js +27 -0
- package/dist/production/accessorPropagation/useExtendTree.js.map +1 -0
- package/dist/production/accessorTree/AccessorTree.js +16 -14
- package/dist/production/accessorTree/AccessorTree.js.map +1 -1
- package/dist/production/accessorTree/AccessorTreeStateContext.js +4 -0
- package/dist/production/accessorTree/AccessorTreeStateContext.js.map +1 -0
- package/dist/production/accessorTree/NormalizedPersistedData.js.map +1 -1
- package/dist/production/accessorTree/RuntimeId.js +17 -4
- package/dist/production/accessorTree/RuntimeId.js.map +1 -1
- package/dist/production/accessorTree/accessorTreeStateReducer.js +11 -2
- package/dist/production/accessorTree/accessorTreeStateReducer.js.map +1 -1
- package/dist/production/accessorTree/useAccessorTreeState.js +12 -0
- package/dist/production/accessorTree/useAccessorTreeState.js.map +1 -0
- package/dist/production/accessorTree/useDataBinding.js +41 -51
- package/dist/production/accessorTree/useDataBinding.js.map +1 -1
- package/dist/production/accessors/EntityAccessor.js +19 -40
- package/dist/production/accessors/EntityAccessor.js.map +1 -1
- package/dist/production/accessors/EntityListAccessor.js +11 -11
- package/dist/production/accessors/EntityListAccessor.js.map +1 -1
- package/dist/production/accessors/FieldAccessor.js +6 -6
- package/dist/production/accessors/FieldAccessor.js.map +1 -1
- package/dist/production/core/AccessorErrorManager.js +5 -2
- package/dist/production/core/AccessorErrorManager.js.map +1 -1
- package/dist/production/core/Config.js +1 -2
- package/dist/production/core/Config.js.map +1 -1
- package/dist/production/core/DataBinding.js +27 -40
- package/dist/production/core/DataBinding.js.map +1 -1
- package/dist/production/core/DirtinessTracker.js +4 -13
- package/dist/production/core/DirtinessTracker.js.map +1 -1
- package/dist/production/core/ErrorsPreprocessor.js +9 -13
- package/dist/production/core/ErrorsPreprocessor.js.map +1 -1
- package/dist/production/core/EventManager.js +12 -7
- package/dist/production/core/EventManager.js.map +1 -1
- package/dist/production/core/IncrementalMarkerBuilder.js +1 -1
- package/dist/production/core/MarkerMerger.js +2 -2
- package/dist/production/core/MutationGenerator.js +180 -141
- package/dist/production/core/MutationGenerator.js.map +1 -1
- package/dist/production/core/RequestResponseNormalizer.js +93 -134
- package/dist/production/core/RequestResponseNormalizer.js.map +1 -1
- package/dist/production/core/StateInitializer.js +30 -38
- package/dist/production/core/StateInitializer.js.map +1 -1
- package/dist/production/core/TreeAugmenter.js +14 -14
- package/dist/production/core/TreeAugmenter.js.map +1 -1
- package/dist/production/core/TreeFilterGenerator.js +2 -2
- package/dist/production/core/TreeFilterGenerator.js.map +1 -1
- package/dist/production/core/TreeStore.js +12 -23
- package/dist/production/core/TreeStore.js.map +1 -1
- package/dist/production/core/VariableInputTransformer.js.map +1 -1
- package/dist/production/core/operations/EntityOperations.js +14 -13
- package/dist/production/core/operations/EntityOperations.js.map +1 -1
- package/dist/production/core/operations/FieldOperations.js.map +1 -1
- package/dist/production/core/operations/ListOperations.js +3 -3
- package/dist/production/core/operations/ListOperations.js.map +1 -1
- package/dist/production/core/operations/OperationsHelpers.js +2 -2
- package/dist/production/core/operations/OperationsHelpers.js.map +1 -1
- package/dist/production/core/requestAliases/MutationAlias.js +4 -33
- package/dist/production/core/requestAliases/MutationAlias.js.map +1 -1
- package/dist/production/core/schema/Schema.js +27 -3
- package/dist/production/core/schema/Schema.js.map +1 -1
- package/dist/production/core/schema/SchemaLoader.js +12 -12
- package/dist/production/core/schema/SchemaLoader.js.map +1 -1
- package/dist/production/core/schema/SchemaPreprocessor.js +1 -1
- package/dist/production/core/schema/SchemaPreprocessor.js.map +1 -1
- package/dist/production/coreComponents/Component.js +5 -2
- package/dist/production/coreComponents/Component.js.map +1 -1
- package/dist/production/coreComponents/DataBindingProvider.js +0 -1
- package/dist/production/coreComponents/DataBindingProvider.js.map +1 -1
- package/dist/production/coreComponents/EntityListSubTree.js.map +1 -1
- package/dist/production/coreComponents/HasOne.js +1 -1
- package/dist/production/dao/Environment.js +35 -3
- package/dist/production/dao/Environment.js.map +1 -1
- package/dist/production/dao/TreeNodeEnvironmentFactory.js +6 -13
- package/dist/production/dao/TreeNodeEnvironmentFactory.js.map +1 -1
- package/dist/production/helperComponents/DeferredSubTrees.js +16 -8
- package/dist/production/helperComponents/DeferredSubTrees.js.map +1 -1
- package/dist/production/helperComponents/If.js +39 -0
- package/dist/production/helperComponents/If.js.map +1 -0
- package/dist/production/helperComponents/SugaredField.js +1 -1
- package/dist/production/helperComponents/helpers/FilterEvaluator.js +35 -0
- package/dist/production/helperComponents/helpers/FilterEvaluator.js.map +1 -0
- package/dist/production/helperComponents/helpers/FilterFieldsCollector.js +38 -0
- package/dist/production/helperComponents/helpers/FilterFieldsCollector.js.map +1 -0
- package/dist/production/helperComponents/helpers/evaluateCondition.js +46 -0
- package/dist/production/helperComponents/helpers/evaluateCondition.js.map +1 -0
- package/dist/production/index.js +7 -2
- package/dist/production/index.js.map +1 -1
- package/dist/production/markers/EntityListSubTreeMarker.js +1 -1
- package/dist/production/markers/EntityListSubTreeMarker.js.map +1 -1
- package/dist/production/markers/EntitySubTreeMarker.js +1 -1
- package/dist/production/markers/EntitySubTreeMarker.js.map +1 -1
- package/dist/production/markers/PlaceholderGenerator.js +4 -4
- package/dist/production/markers/PlaceholderGenerator.js.map +1 -1
- package/dist/production/queryLanguage/MarkerFactory.js +2 -2
- package/dist/production/queryLanguage/QueryLanguage.js +1 -1
- package/dist/production/utils/Hashing.js +21 -6
- package/dist/production/utils/Hashing.js.map +1 -1
- package/dist/types/accessorPropagation/BindingOperationsContext.d.ts +1 -1
- package/dist/types/accessorPropagation/BindingOperationsContext.d.ts.map +1 -1
- package/dist/types/accessorPropagation/EntityKeyContext.d.ts +1 -1
- package/dist/types/accessorPropagation/EntityKeyContext.d.ts.map +1 -1
- package/dist/types/accessorPropagation/EnvironmentContext.d.ts +13 -2
- package/dist/types/accessorPropagation/EnvironmentContext.d.ts.map +1 -1
- package/dist/types/accessorPropagation/TreeRootIdContext.d.ts +1 -1
- package/dist/types/accessorPropagation/TreeRootIdContext.d.ts.map +1 -1
- package/dist/types/accessorPropagation/index.d.ts +1 -0
- package/dist/types/accessorPropagation/index.d.ts.map +1 -1
- package/dist/types/accessorPropagation/useEntityListSubTree.d.ts +2 -1
- package/dist/types/accessorPropagation/useEntityListSubTree.d.ts.map +1 -1
- package/dist/types/accessorPropagation/useEntitySubTree.d.ts +2 -1
- package/dist/types/accessorPropagation/useEntitySubTree.d.ts.map +1 -1
- package/dist/types/accessorPropagation/useExtendTree.d.ts +5 -0
- package/dist/types/accessorPropagation/useExtendTree.d.ts.map +1 -0
- package/dist/types/accessorSorting/SetOrderFieldOnCreate.d.ts +1 -1
- package/dist/types/accessorSorting/SetOrderFieldOnCreate.d.ts.map +1 -1
- package/dist/types/accessorTree/AccessorTree.d.ts.map +1 -1
- package/dist/types/accessorTree/AccessorTreeState.d.ts +8 -0
- package/dist/types/accessorTree/AccessorTreeState.d.ts.map +1 -1
- package/dist/types/accessorTree/AccessorTreeStateAction.d.ts +6 -0
- package/dist/types/accessorTree/AccessorTreeStateAction.d.ts.map +1 -1
- package/dist/types/accessorTree/AccessorTreeStateContext.d.ts +4 -0
- package/dist/types/accessorTree/AccessorTreeStateContext.d.ts.map +1 -0
- package/dist/types/accessorTree/AccessorTreeStateOptions.d.ts +0 -1
- package/dist/types/accessorTree/AccessorTreeStateOptions.d.ts.map +1 -1
- package/dist/types/accessorTree/DirtinessContext.d.ts +1 -1
- package/dist/types/accessorTree/DirtinessContext.d.ts.map +1 -1
- package/dist/types/accessorTree/MutationRequestResponse.d.ts +5 -1
- package/dist/types/accessorTree/MutationRequestResponse.d.ts.map +1 -1
- package/dist/types/accessorTree/MutationStateContext.d.ts +1 -1
- package/dist/types/accessorTree/MutationStateContext.d.ts.map +1 -1
- package/dist/types/accessorTree/NormalizedPersistedData.d.ts +5 -5
- package/dist/types/accessorTree/NormalizedPersistedData.d.ts.map +1 -1
- package/dist/types/accessorTree/PersistResult.d.ts +2 -1
- package/dist/types/accessorTree/PersistResult.d.ts.map +1 -1
- package/dist/types/accessorTree/QueryRequestResponse.d.ts +11 -10
- package/dist/types/accessorTree/QueryRequestResponse.d.ts.map +1 -1
- package/dist/types/accessorTree/RuntimeId.d.ts +16 -6
- package/dist/types/accessorTree/RuntimeId.d.ts.map +1 -1
- package/dist/types/accessorTree/accessorTreeStateReducer.d.ts.map +1 -1
- package/dist/types/accessorTree/index.d.ts +1 -0
- package/dist/types/accessorTree/index.d.ts.map +1 -1
- package/dist/types/accessorTree/useAccessorTreeState.d.ts +2 -0
- package/dist/types/accessorTree/useAccessorTreeState.d.ts.map +1 -0
- package/dist/types/accessorTree/useDataBinding.d.ts +1 -1
- package/dist/types/accessorTree/useDataBinding.d.ts.map +1 -1
- package/dist/types/accessors/BindingConfig.d.ts +0 -1
- package/dist/types/accessors/BindingConfig.d.ts.map +1 -1
- package/dist/types/accessors/EntityAccessor.d.ts +5 -5
- package/dist/types/accessors/EntityAccessor.d.ts.map +1 -1
- package/dist/types/accessors/EntityListAccessor.d.ts +4 -4
- package/dist/types/accessors/EntityListAccessor.d.ts.map +1 -1
- package/dist/types/accessors/FieldAccessor.d.ts +2 -2
- package/dist/types/accessors/FieldAccessor.d.ts.map +1 -1
- package/dist/types/core/AccessorErrorManager.d.ts +2 -1
- package/dist/types/core/AccessorErrorManager.d.ts.map +1 -1
- package/dist/types/core/Config.d.ts.map +1 -1
- package/dist/types/core/DataBinding.d.ts +3 -4
- package/dist/types/core/DataBinding.d.ts.map +1 -1
- package/dist/types/core/DirtinessTracker.d.ts +2 -5
- package/dist/types/core/DirtinessTracker.d.ts.map +1 -1
- package/dist/types/core/ErrorsPreprocessor.d.ts +5 -3
- package/dist/types/core/ErrorsPreprocessor.d.ts.map +1 -1
- package/dist/types/core/EventManager.d.ts +1 -1
- package/dist/types/core/EventManager.d.ts.map +1 -1
- package/dist/types/core/MutationGenerator.d.ts +25 -1
- package/dist/types/core/MutationGenerator.d.ts.map +1 -1
- package/dist/types/core/RequestResponseNormalizer.d.ts +6 -7
- package/dist/types/core/RequestResponseNormalizer.d.ts.map +1 -1
- package/dist/types/core/StateInitializer.d.ts +1 -5
- package/dist/types/core/StateInitializer.d.ts.map +1 -1
- package/dist/types/core/TreeAugmenter.d.ts +3 -2
- package/dist/types/core/TreeAugmenter.d.ts.map +1 -1
- package/dist/types/core/TreeStore.d.ts +8 -8
- package/dist/types/core/TreeStore.d.ts.map +1 -1
- package/dist/types/core/VariableInputTransformer.d.ts +2 -2
- package/dist/types/core/VariableInputTransformer.d.ts.map +1 -1
- package/dist/types/core/index.d.ts +1 -0
- package/dist/types/core/index.d.ts.map +1 -1
- package/dist/types/core/operations/EntityOperations.d.ts.map +1 -1
- package/dist/types/core/operations/ListOperations.d.ts +2 -1
- package/dist/types/core/operations/ListOperations.d.ts.map +1 -1
- package/dist/types/core/requestAliases/MutationAlias.d.ts +0 -3
- package/dist/types/core/requestAliases/MutationAlias.d.ts.map +1 -1
- package/dist/types/core/requestAliases/index.d.ts +0 -3
- package/dist/types/core/requestAliases/index.d.ts.map +1 -1
- package/dist/types/core/schema/RawSchemaEntity.d.ts +3 -2
- package/dist/types/core/schema/RawSchemaEntity.d.ts.map +1 -1
- package/dist/types/core/schema/Schema.d.ts +13 -3
- package/dist/types/core/schema/Schema.d.ts.map +1 -1
- package/dist/types/core/schema/SchemaColumn.d.ts +1 -1
- package/dist/types/core/schema/SchemaColumn.d.ts.map +1 -1
- package/dist/types/core/schema/SchemaEntity.d.ts +1 -1
- package/dist/types/core/schema/SchemaEntity.d.ts.map +1 -1
- package/dist/types/core/schema/SchemaLoader.d.ts +2 -1
- package/dist/types/core/schema/SchemaLoader.d.ts.map +1 -1
- package/dist/types/core/schema/SchemaRelation.d.ts +1 -1
- package/dist/types/core/schema/SchemaRelation.d.ts.map +1 -1
- package/dist/types/core/state/FieldState.d.ts +2 -2
- package/dist/types/core/state/FieldState.d.ts.map +1 -1
- package/dist/types/coreComponents/Component.d.ts +9 -4
- package/dist/types/coreComponents/Component.d.ts.map +1 -1
- package/dist/types/coreComponents/DataBindingProvider.d.ts +0 -1
- package/dist/types/coreComponents/DataBindingProvider.d.ts.map +1 -1
- package/dist/types/coreComponents/Entity.d.ts +1 -1
- package/dist/types/coreComponents/Entity.d.ts.map +1 -1
- package/dist/types/coreComponents/EntityListSubTree.d.ts.map +1 -1
- package/dist/types/coreComponents/Field.d.ts +1 -1
- package/dist/types/coreComponents/Field.d.ts.map +1 -1
- package/dist/types/coreComponents/ParentEntity.d.ts +1 -1
- package/dist/types/coreComponents/ParentEntity.d.ts.map +1 -1
- package/dist/types/dao/Environment.d.ts +14 -5
- package/dist/types/dao/Environment.d.ts.map +1 -1
- package/dist/types/dao/TreeNodeEnvironmentFactory.d.ts.map +1 -1
- package/dist/types/entityEvents/useDerivedField.d.ts +2 -2
- package/dist/types/entityEvents/useDerivedField.d.ts.map +1 -1
- package/dist/types/helperComponents/DeferredSubTrees.d.ts +1 -1
- package/dist/types/helperComponents/DeferredSubTrees.d.ts.map +1 -1
- package/dist/types/helperComponents/FieldView.d.ts +7 -7
- package/dist/types/helperComponents/FieldView.d.ts.map +1 -1
- package/dist/types/helperComponents/If.d.ts +14 -0
- package/dist/types/helperComponents/If.d.ts.map +1 -0
- package/dist/types/helperComponents/StaticRender.d.ts +1 -1
- package/dist/types/helperComponents/StaticRender.d.ts.map +1 -1
- package/dist/types/helperComponents/SugaredField.d.ts +1 -1
- package/dist/types/helperComponents/SugaredField.d.ts.map +1 -1
- package/dist/types/helperComponents/helpers/FilterEvaluator.d.ts +9 -0
- package/dist/types/helperComponents/helpers/FilterEvaluator.d.ts.map +1 -0
- package/dist/types/helperComponents/helpers/FilterFieldsCollector.d.ts +10 -0
- package/dist/types/helperComponents/helpers/FilterFieldsCollector.d.ts.map +1 -0
- package/dist/types/helperComponents/helpers/evaluateCondition.d.ts +4 -0
- package/dist/types/helperComponents/helpers/evaluateCondition.d.ts.map +1 -0
- package/dist/types/helperComponents/index.d.ts +1 -0
- package/dist/types/helperComponents/index.d.ts.map +1 -1
- package/dist/types/markers/FieldMarker.d.ts +3 -3
- package/dist/types/markers/FieldMarker.d.ts.map +1 -1
- package/dist/types/markers/PlaceholderGenerator.d.ts +3 -2
- package/dist/types/markers/PlaceholderGenerator.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/EntityId.d.ts +1 -1
- package/dist/types/treeParameters/primitives/EntityId.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/FieldValue.d.ts +2 -2
- package/dist/types/treeParameters/primitives/FieldValue.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/Json.d.ts +7 -0
- package/dist/types/treeParameters/primitives/Json.d.ts.map +1 -0
- package/dist/types/treeParameters/primitives/index.d.ts +1 -0
- package/dist/types/treeParameters/primitives/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/types/utils/Hashing.d.ts +3 -2
- package/dist/types/utils/Hashing.d.ts.map +1 -1
- package/package.json +7 -5
- package/src/accessorPropagation/EnvironmentContext.tsx +44 -0
- package/src/accessorPropagation/index.ts +1 -0
- package/src/accessorPropagation/useEntityListSubTree.ts +8 -1
- package/src/accessorPropagation/useEntitySubTree.ts +8 -1
- package/src/accessorPropagation/useExtendTree.ts +30 -0
- package/src/accessorTree/AccessorTree.tsx +18 -18
- package/src/accessorTree/AccessorTreeState.ts +12 -1
- package/src/accessorTree/AccessorTreeStateAction.ts +7 -1
- package/src/accessorTree/AccessorTreeStateContext.ts +4 -0
- package/src/accessorTree/AccessorTreeStateOptions.ts +0 -1
- package/src/accessorTree/MutationRequestResponse.ts +9 -1
- package/src/accessorTree/NormalizedPersistedData.ts +5 -5
- package/src/accessorTree/PersistResult.ts +2 -1
- package/src/accessorTree/QueryRequestResponse.ts +17 -14
- package/src/accessorTree/RuntimeId.ts +27 -6
- package/src/accessorTree/accessorTreeStateReducer.ts +10 -1
- package/src/accessorTree/index.ts +1 -0
- package/src/accessorTree/useAccessorTreeState.ts +11 -0
- package/src/accessorTree/useDataBinding.ts +41 -59
- package/src/accessors/BindingConfig.ts +0 -1
- package/src/accessors/EntityAccessor.ts +22 -58
- package/src/accessors/EntityListAccessor.ts +12 -12
- package/src/accessors/FieldAccessor.ts +5 -5
- package/src/core/AccessorErrorManager.ts +6 -2
- package/src/core/Config.ts +0 -1
- package/src/core/DataBinding.ts +28 -44
- package/src/core/DirtinessTracker.ts +4 -16
- package/src/core/ErrorsPreprocessor.ts +16 -18
- package/src/core/EventManager.ts +14 -8
- package/src/core/MutationGenerator.ts +249 -188
- package/src/core/RequestResponseNormalizer.ts +111 -163
- package/src/core/StateInitializer.ts +46 -58
- package/src/core/TreeAugmenter.ts +16 -15
- package/src/core/TreeFilterGenerator.ts +5 -5
- package/src/core/TreeStore.ts +23 -27
- package/src/core/VariableInputTransformer.ts +2 -2
- package/src/core/index.ts +1 -0
- package/src/core/operations/EntityOperations.ts +13 -14
- package/src/core/operations/FieldOperations.ts +2 -2
- package/src/core/operations/ListOperations.ts +6 -5
- package/src/core/operations/OperationsHelpers.ts +2 -2
- package/src/core/requestAliases/MutationAlias.ts +4 -57
- package/src/core/requestAliases/index.ts +0 -3
- package/src/core/schema/RawSchemaEntity.ts +1 -2
- package/src/core/schema/Schema.ts +38 -4
- package/src/core/schema/SchemaColumn.ts +1 -1
- package/src/core/schema/SchemaEntity.ts +1 -1
- package/src/core/schema/SchemaLoader.ts +13 -11
- package/src/core/schema/SchemaPreprocessor.ts +1 -1
- package/src/core/schema/SchemaRelation.ts +1 -1
- package/src/core/state/FieldState.ts +2 -2
- package/src/coreComponents/Component.tsx +20 -7
- package/src/coreComponents/DataBindingProvider.tsx +0 -2
- package/src/coreComponents/EntityListSubTree.tsx +2 -3
- package/src/dao/Environment.ts +48 -7
- package/src/dao/TreeNodeEnvironmentFactory.ts +8 -13
- package/src/helperComponents/DeferredSubTrees.tsx +20 -13
- package/src/helperComponents/If.tsx +71 -0
- package/src/helperComponents/helpers/FilterEvaluator.ts +46 -0
- package/src/helperComponents/helpers/FilterFieldsCollector.ts +46 -0
- package/src/helperComponents/helpers/evaluateCondition.ts +52 -0
- package/src/helperComponents/index.ts +1 -0
- package/src/markers/EntityListSubTreeMarker.ts +1 -1
- package/src/markers/EntitySubTreeMarker.ts +1 -1
- package/src/markers/PlaceholderGenerator.ts +5 -2
- package/src/treeParameters/primitives/EntityId.ts +1 -1
- package/src/treeParameters/primitives/FieldValue.ts +2 -2
- package/src/treeParameters/primitives/Json.ts +7 -0
- package/src/treeParameters/primitives/index.ts +1 -0
- package/src/typings/react-fix.d.ts +12 -0
- package/src/utils/Hashing.ts +23 -8
- package/dist/development/core/requestAliases/mutationOperationSubTreeType.js +0 -6
- package/dist/development/core/requestAliases/mutationOperationSubTreeType.js.map +0 -1
- package/dist/development/core/requestAliases/mutationOperationType.js +0 -7
- package/dist/development/core/requestAliases/mutationOperationType.js.map +0 -1
- package/dist/production/core/requestAliases/mutationOperationSubTreeType.js +0 -6
- package/dist/production/core/requestAliases/mutationOperationSubTreeType.js.map +0 -1
- package/dist/production/core/requestAliases/mutationOperationType.js +0 -7
- package/dist/production/core/requestAliases/mutationOperationType.js.map +0 -1
- package/dist/types/core/requestAliases/TopLevelMutationOperation.d.ts +0 -11
- package/dist/types/core/requestAliases/TopLevelMutationOperation.d.ts.map +0 -1
- package/dist/types/core/requestAliases/mutationOperationSubTreeType.d.ts +0 -5
- package/dist/types/core/requestAliases/mutationOperationSubTreeType.d.ts.map +0 -1
- package/dist/types/core/requestAliases/mutationOperationType.d.ts +0 -6
- package/dist/types/core/requestAliases/mutationOperationType.d.ts.map +0 -1
- package/src/accessorPropagation/EnvironmentContext.ts +0 -5
- package/src/core/requestAliases/TopLevelMutationOperation.ts +0 -11
- package/src/core/requestAliases/mutationOperationSubTreeType.ts +0 -4
- package/src/core/requestAliases/mutationOperationType.ts +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MutationGenerator.d.ts","sourceRoot":"","sources":["../../../src/core/MutationGenerator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MutationGenerator.d.ts","sourceRoot":"","sources":["../../../src/core/MutationGenerator.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAA4D,MAAM,YAAY,CAAA;AACzG,OAAO,KAAK,EAAE,QAAQ,EAA0B,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAa1F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAM5C,oBAAY,oBAAoB,GAC7B;IACD,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,EAAE,eAAe,CAAC;IACpC,WAAW,EAAE,MAAM,GAAG,QAAQ,CAAA;CAC9B,GACC,CACC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,EAAE,EAAE,QAAQ,CAAA;CAAE,GAChC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,kBAAkB,CAAC;IAAC,EAAE,EAAE,QAAQ,CAAA;CAAE,GAC7D;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,kBAAkB,CAAC;IAAC,EAAE,EAAE,QAAQ,CAAA;CAAE,CAC/D,CAAA;AAEF,oBAAY,qBAAqB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,oBAAoB,EAAE,CAAA;CAClC,CAAA;AAGD,qBAAa,iBAAiB;IAIV,OAAO,CAAC,QAAQ,CAAC,SAAS;IAF7C,OAAO,CAAC,YAAY,CAAI;gBAEY,SAAS,EAAE,SAAS;IAGjD,kBAAkB,IAAI,qBAAqB,GAAG,SAAS;IA4E9D,OAAO,CAAC,cAAc;IAiFtB,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,iBAAiB;IAmBzB,OAAO,CAAC,iBAAiB;IAgDzB,OAAO,CAAC,iBAAiB;IA6CzB,OAAO,CAAC,0BAA0B;IAgKlC,OAAO,CAAC,uBAAuB;IAa/B,OAAO,CAAC,wBAAwB;IA4BhC,OAAO,CAAC,4BAA4B;IAoBpC,OAAO,CAAC,0BAA0B;IAiNlC,OAAO,CAAC,mBAAmB;IAY3B,OAAO,CAAC,WAAW;CAGnB"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { NormalizedPersistedData, ReceivedDataTree } from '../accessorTree';
|
|
2
|
+
import { MarkerTreeRoot } from '../markers';
|
|
3
|
+
import { SubMutationOperation } from './MutationGenerator';
|
|
2
4
|
export declare class RequestResponseNormalizer {
|
|
3
|
-
static mergeInQueryResponse(original: NormalizedPersistedData, newPersistedData: ReceivedDataTree):
|
|
4
|
-
static mergeInMutationResponse(original: NormalizedPersistedData, newPersistedData: ReceivedDataTree):
|
|
5
|
-
private static
|
|
6
|
-
private static
|
|
7
|
-
private static mergeInFieldData;
|
|
8
|
-
private static mergeInEntityData;
|
|
9
|
-
private static rejectData;
|
|
5
|
+
static mergeInQueryResponse(original: NormalizedPersistedData, newPersistedData: ReceivedDataTree, markerTree: MarkerTreeRoot): void;
|
|
6
|
+
static mergeInMutationResponse(original: NormalizedPersistedData, newPersistedData: ReceivedDataTree, operations: SubMutationOperation[]): void;
|
|
7
|
+
private static processEntityData;
|
|
8
|
+
private static extractId;
|
|
10
9
|
}
|
|
11
10
|
//# sourceMappingURL=RequestResponseNormalizer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestResponseNormalizer.d.ts","sourceRoot":"","sources":["../../../src/core/RequestResponseNormalizer.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"RequestResponseNormalizer.d.ts","sourceRoot":"","sources":["../../../src/core/RequestResponseNormalizer.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,uBAAuB,EAEvB,gBAAgB,EAGhB,MAAM,iBAAiB,CAAA;AAIxB,OAAO,EAON,cAAc,EACd,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAG1D,qBAAa,yBAAyB;WACvB,oBAAoB,CACjC,QAAQ,EAAE,uBAAuB,EACjC,gBAAgB,EAAE,gBAAgB,EAClC,UAAU,EAAE,cAAc,GACxB,IAAI;WA+BO,uBAAuB,CACpC,QAAQ,EAAE,uBAAuB,EACjC,gBAAgB,EAAE,gBAAgB,EAClC,UAAU,EAAE,oBAAoB,EAAE,GAChC,IAAI;IAuDP,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAkChC,OAAO,CAAC,MAAM,CAAC,SAAS;CASxB"}
|
|
@@ -3,20 +3,16 @@ import { RuntimeId } from '../accessorTree';
|
|
|
3
3
|
import { EntityListSubTreeMarker, EntitySubTreeMarker } from '../markers';
|
|
4
4
|
import type { EntityEventListenerStore, EntityName } from '../treeParameters';
|
|
5
5
|
import type { AccessorErrorManager } from './AccessorErrorManager';
|
|
6
|
-
import type { Config } from './Config';
|
|
7
6
|
import type { EventManager } from './EventManager';
|
|
8
7
|
import { EntityRealmBlueprint, EntityRealmState, EntityRealmStateStub, EntityState, RootStateNode } from './state';
|
|
9
8
|
import type { TreeStore } from './TreeStore';
|
|
10
9
|
export declare class StateInitializer {
|
|
11
|
-
private readonly accessorErrorManager;
|
|
12
|
-
private readonly batchUpdatesOptions;
|
|
13
|
-
private readonly config;
|
|
14
10
|
private readonly eventManager;
|
|
15
11
|
private readonly treeStore;
|
|
16
12
|
private readonly fieldOperations;
|
|
17
13
|
private readonly entityOperations;
|
|
18
14
|
private readonly listOperations;
|
|
19
|
-
constructor(accessorErrorManager: AccessorErrorManager, batchUpdatesOptions: BatchUpdatesOptions,
|
|
15
|
+
constructor(accessorErrorManager: AccessorErrorManager, batchUpdatesOptions: BatchUpdatesOptions, eventManager: EventManager, treeStore: TreeStore);
|
|
20
16
|
initializeSubTree(tree: EntitySubTreeMarker | EntityListSubTreeMarker): RootStateNode;
|
|
21
17
|
initializeEntityRealm(id: RuntimeId, entityName: EntityName, blueprint: EntityRealmBlueprint, copyFrom?: EntityRealmState | EntityRealmStateStub): EntityRealmState | EntityRealmStateStub;
|
|
22
18
|
private createEntityRealm;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StateInitializer.d.ts","sourceRoot":"","sources":["../../../src/core/StateInitializer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAqC,MAAM,cAAc,CAAA;AACrG,OAAO,EAA4B,SAAS,
|
|
1
|
+
{"version":3,"file":"StateInitializer.d.ts","sourceRoot":"","sources":["../../../src/core/StateInitializer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAqC,MAAM,cAAc,CAAA;AACrG,OAAO,EAA4B,SAAS,EAAsC,MAAM,iBAAiB,CAAA;AAEzG,OAAO,EACN,uBAAuB,EACvB,mBAAmB,EAInB,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EACX,wBAAwB,EAGxB,UAAU,EAIV,MAAM,mBAAmB,CAAA;AAG1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAGlD,OAAO,EAGN,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,WAAW,EAGX,aAAa,EACb,MAAM,SAAS,CAAA;AAEhB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C,qBAAa,gBAAgB;IAQ3B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,SAAS;IAR3B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAiB;IACjD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAkB;IACnD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAgB;gBAG9C,oBAAoB,EAAE,oBAAoB,EAC1C,mBAAmB,EAAE,mBAAmB,EACvB,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS;IAO/B,iBAAiB,CAAC,IAAI,EAAE,mBAAmB,GAAG,uBAAuB,GAAG,aAAa;IA4BrF,qBAAqB,CAC3B,EAAE,EAAE,SAAS,EACb,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,oBAAoB,EAC/B,QAAQ,CAAC,EAAE,gBAAgB,GAAG,oBAAoB,GAChD,gBAAgB,GAAG,oBAAoB;IAuE1C,OAAO,CAAC,iBAAiB;IA+CzB,OAAO,CAAC,sBAAsB;IAuD9B,OAAO,CAAC,mBAAmB;IAapB,qBAAqB,CAAC,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,GAAG,WAAW;IAqBhF,OAAO,CAAC,yBAAyB;IAuDjC,OAAO,CAAC,oBAAoB;IAgD5B,OAAO,CAAC,yBAAyB;IAwBjC,OAAO,CAAC,kCAAkC;IA+B1C,OAAO,CAAC,mCAAmC;IAgC3C,OAAO,CAAC,2BAA2B;IAQ5B,8BAA8B,CACpC,KAAK,EAAE,gBAAgB,GAAG,oBAAoB,EAC9C,UAAU,EAAE,cAAc,CAAC,mBAAmB,GAAG,SAAS;IAepD,kCAAkC,CAAC,SAAS,EAAE,oBAAoB,GAAG,wBAAwB,GAAG,SAAS;IAmBhH,OAAO,CAAC,sCAAsC;IAW9C,OAAO,CAAC,2CAA2C;IAWnD,OAAO,CAAC,iCAAiC;CAIzC"}
|
|
@@ -4,14 +4,15 @@ import type { TreeRootId } from '../treeParameters';
|
|
|
4
4
|
import { EventManager } from './EventManager';
|
|
5
5
|
import type { StateInitializer } from './StateInitializer';
|
|
6
6
|
import type { TreeStore } from './TreeStore';
|
|
7
|
+
import { SubMutationOperation } from './MutationGenerator';
|
|
7
8
|
export declare class TreeAugmenter {
|
|
8
9
|
private readonly eventManager;
|
|
9
10
|
private readonly stateInitializer;
|
|
10
11
|
private readonly treeStore;
|
|
11
12
|
constructor(eventManager: EventManager, stateInitializer: StateInitializer, treeStore: TreeStore);
|
|
12
|
-
extendPersistedData(newPersistedData: ReceivedDataTree): void;
|
|
13
|
+
extendPersistedData(newPersistedData: ReceivedDataTree, markerTree: MarkerTreeRoot): void;
|
|
13
14
|
extendTreeStates(newTreeId: TreeRootId | undefined, newMarkerTree: MarkerTreeRoot): void;
|
|
14
|
-
updatePersistedData(response: ReceivedDataTree): void;
|
|
15
|
+
updatePersistedData(response: ReceivedDataTree, operations: SubMutationOperation[]): void;
|
|
15
16
|
resetCreatingSubTrees(): void;
|
|
16
17
|
private updateRealmIdIfNecessary;
|
|
17
18
|
private updateEntityRealmPersistedData;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeAugmenter.d.ts","sourceRoot":"","sources":["../../../src/core/TreeAugmenter.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,gBAAgB,EAIhB,MAAM,iBAAiB,CAAA;AAExB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,KAAK,EAA6B,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE9E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAG7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"TreeAugmenter.d.ts","sourceRoot":"","sources":["../../../src/core/TreeAugmenter.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,gBAAgB,EAIhB,MAAM,iBAAiB,CAAA;AAExB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,KAAK,EAA6B,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE9E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAG7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAE1D,qBAAa,aAAa;IAExB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAFT,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAE,SAAS;IAG/B,mBAAmB,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,EAAE,cAAc;IAKlF,gBAAgB,CAAC,SAAS,EAAE,UAAU,GAAG,SAAS,EAAE,aAAa,EAAE,cAAc,GAAG,IAAI;IAYxF,mBAAmB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,UAAU,EAAE,oBAAoB,EAAE;IAoClF,qBAAqB;IAoD5B,OAAO,CAAC,wBAAwB;IA2BhC,OAAO,CAAC,8BAA8B;IAiDtC,OAAO,CAAC,6BAA6B;CAuDrC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { NormalizedPersistedData, PersistedEntityDataStore, ReceivedDataTree, SubTreeDataStore } from '../accessorTree';
|
|
1
|
+
import { NormalizedPersistedData, PersistedEntityDataStore, ReceivedDataTree, SubTreeDataStore, UniqueEntityId } from '../accessorTree';
|
|
2
2
|
import type { Environment } from '../dao';
|
|
3
3
|
import { MarkerTreeRoot } from '../markers';
|
|
4
4
|
import type { Alias, EntityId, EntityRealmKey, FieldName, PlaceholderName, SugaredQualifiedEntityList, SugaredQualifiedSingleEntity, SugaredUnconstrainedQualifiedEntityList, SugaredUnconstrainedQualifiedSingleEntity, TreeRootId } from '../treeParameters';
|
|
5
5
|
import type { Schema } from './schema';
|
|
6
6
|
import type { EntityListState, EntityRealmState, EntityRealmStateStub, EntityState, RootStateNode } from './state';
|
|
7
|
+
import { SubMutationOperation } from './MutationGenerator';
|
|
7
8
|
export declare class TreeStore {
|
|
8
|
-
readonly
|
|
9
|
+
private readonly _schema;
|
|
10
|
+
readonly entityStore: Map<UniqueEntityId, EntityState>;
|
|
9
11
|
readonly entityRealmStore: Map<EntityRealmKey, EntityRealmState | EntityRealmStateStub>;
|
|
10
12
|
readonly markerTrees: Map<TreeRootId | undefined, MarkerTreeRoot>;
|
|
11
13
|
readonly subTreeStatesByRoot: Map<TreeRootId | undefined, Map<PlaceholderName, RootStateNode>>;
|
|
12
|
-
private _schema;
|
|
13
14
|
readonly persistedData: NormalizedPersistedData;
|
|
14
|
-
constructor();
|
|
15
|
-
mergeInQueryResponse(response: ReceivedDataTree): void;
|
|
16
|
-
mergeInMutationResponse(response: ReceivedDataTree): void;
|
|
17
|
-
setSchema(newSchema: Schema): void;
|
|
15
|
+
constructor(_schema: Schema);
|
|
16
|
+
mergeInQueryResponse(response: ReceivedDataTree, markerTree: MarkerTreeRoot): void;
|
|
17
|
+
mergeInMutationResponse(response: ReceivedDataTree, operations: SubMutationOperation[]): void;
|
|
18
18
|
get persistedEntityData(): PersistedEntityDataStore;
|
|
19
19
|
get subTreePersistedData(): SubTreeDataStore;
|
|
20
20
|
get schema(): Schema;
|
|
@@ -24,7 +24,7 @@ export declare class TreeStore {
|
|
|
24
24
|
} | undefined;
|
|
25
25
|
getSubTreeState(mode: 'entity', treeRootId: TreeRootId | undefined, aliasOrParameters: Alias | SugaredQualifiedSingleEntity | SugaredUnconstrainedQualifiedSingleEntity, environment: Environment): EntityRealmState;
|
|
26
26
|
getSubTreeState(mode: 'entityList', treeRootId: TreeRootId | undefined, aliasOrParameters: Alias | SugaredQualifiedEntityList | SugaredUnconstrainedQualifiedEntityList, environment: Environment): EntityListState;
|
|
27
|
-
getEntityListPersistedIds(state: EntityListState): ReadonlySet<
|
|
27
|
+
getEntityListPersistedIds(state: EntityListState): ReadonlySet<EntityId>;
|
|
28
28
|
disposeOfRealm(realmToDisposeOf: EntityRealmState | EntityRealmStateStub): void;
|
|
29
29
|
disposeOfEntity(entity: EntityState): void;
|
|
30
30
|
effectivelyHasTreeRoot(candidateRoot: MarkerTreeRoot): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeStore.d.ts","sourceRoot":"","sources":["../../../src/core/TreeStore.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"TreeStore.d.ts","sourceRoot":"","sources":["../../../src/core/TreeStore.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,uBAAuB,EACvB,wBAAwB,EACxB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,MAAM,iBAAiB,CAAA;AAExB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,EAAE,cAAc,EAAwB,MAAM,YAAY,CAAA;AAEjE,OAAO,KAAK,EACX,KAAK,EACL,QAAQ,EAER,cAAc,EACd,SAAS,EACT,eAAe,EACf,0BAA0B,EAC1B,4BAA4B,EAC5B,uCAAuC,EACvC,yCAAyC,EACzC,UAAU,EACV,MAAM,mBAAmB,CAAA;AAI1B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACtC,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAClH,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAI1D,qBAAa,SAAS;IAYpB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAXzB,SAAgB,WAAW,EAAE,GAAG,CAAC,cAAc,EAAE,WAAW,CAAC,CAAY;IACzE,SAAgB,gBAAgB,EAAE,GAAG,CAAC,cAAc,EAAE,gBAAgB,GAAG,oBAAoB,CAAC,CAAY;IAI1G,SAAgB,WAAW,EAAE,GAAG,CAAC,UAAU,GAAG,SAAS,EAAE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Environment, VariableFieldValue } from '../dao';
|
|
2
|
-
import type { FieldValue, OptionallyVariableFieldValue
|
|
2
|
+
import type { FieldValue, OptionallyVariableFieldValue } from '../treeParameters';
|
|
3
3
|
export declare class VariableInputTransformer {
|
|
4
4
|
static transformValue(value: OptionallyVariableFieldValue, environment: Environment): FieldValue;
|
|
5
|
-
static transformVariableFieldValue(variableFieldValue: VariableFieldValue, environment: Environment):
|
|
5
|
+
static transformVariableFieldValue(variableFieldValue: VariableFieldValue, environment: Environment): FieldValue;
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=VariableInputTransformer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VariableInputTransformer.d.ts","sourceRoot":"","sources":["../../../src/core/VariableInputTransformer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,4BAA4B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"VariableInputTransformer.d.ts","sourceRoot":"","sources":["../../../src/core/VariableInputTransformer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAA;AAEjF,qBAAa,wBAAwB;WACtB,cAAc,CAAC,KAAK,EAAE,4BAA4B,EAAE,WAAW,EAAE,WAAW,GAAG,UAAU;WAOzF,2BAA2B,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,WAAW,EAAE,WAAW,GAAG,UAAU;CAavH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,4BAA4B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,4BAA4B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityOperations.d.ts","sourceRoot":"","sources":["../../../../src/core/operations/EntityOperations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAIzF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAGnD,OAAO,EAAmB,gBAAgB,EAAwD,MAAM,UAAU,CAAA;AAClH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAI7C,qBAAa,gBAAgB;IAE3B,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAJT,oBAAoB,EAAE,oBAAoB,EAC1C,mBAAmB,EAAE,mBAAmB,EACxC,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAE,SAAS;IAG/B,QAAQ,CAAC,WAAW,EAAE,gBAAgB,EAAE,KAAK,EAAE,aA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AmB,EACxC,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAE,SAAS;IAG/B,QAAQ,CAAC,WAAW,EAAE,gBAAgB,EAAE,KAAK,EAAE,aAAa,CAAC,KAAK,GAAG,MAAM,IAAI;IAI/E,gBAAgB,CAAC,IAAI,SAAS,MAAM,cAAc,CAAC,6BAA6B,EACtF,KAAK,EAAE,gBAAgB,EACvB,KAAK,EAAE;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,EACnC,QAAQ,EAAE,cAAc,CAAC,sBAAsB,CAAC,IAAI,CAAC;IAQ/C,YAAY,CAAC,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,cAAc,CAAC,mBAAmB;IAMxF,oBAAoB,CAAC,UAAU,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,eAAe,EAAE,cAAc;IAoHxG,uBAAuB,CAC7B,UAAU,EAAE,gBAAgB,EAC5B,SAAS,EAAE,SAAS,EACpB,qBAAqB,EAAE,cAAc,CAAC,mBAAmB,GAAG,SAAS;IA6D/D,YAAY,CAAC,KAAK,EAAE,gBAAgB;IA6D3C,OAAO,CAAE,4BAA4B;CAqBrC"}
|
|
@@ -5,6 +5,7 @@ import { EventManager } from '../EventManager';
|
|
|
5
5
|
import { EntityListState } from '../state';
|
|
6
6
|
import type { StateInitializer } from '../StateInitializer';
|
|
7
7
|
import type { TreeStore } from '../TreeStore';
|
|
8
|
+
import { EntityId } from '../../treeParameters';
|
|
8
9
|
export declare class ListOperations {
|
|
9
10
|
private readonly accessorErrorManager;
|
|
10
11
|
private readonly batchUpdatesOptions;
|
|
@@ -27,6 +28,6 @@ export declare class ListOperations {
|
|
|
27
28
|
noPersist?: boolean;
|
|
28
29
|
}): void;
|
|
29
30
|
createNewEntity(outerState: EntityListState, initialize: EntityAccessor.BatchUpdatesHandler | undefined): RuntimeId;
|
|
30
|
-
getChildEntityById(state: EntityListState, id:
|
|
31
|
+
getChildEntityById(state: EntityListState, id: EntityId): EntityAccessor;
|
|
31
32
|
}
|
|
32
33
|
//# sourceMappingURL=ListOperations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListOperations.d.ts","sourceRoot":"","sources":["../../../../src/core/operations/ListOperations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC7G,OAAO,EAAE,SAAS,EAA4B,MAAM,oBAAoB,CAAA;AAExE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAI9C,OAAO,EAAE,eAAe,EAAkC,MAAM,UAAU,CAAA;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"ListOperations.d.ts","sourceRoot":"","sources":["../../../../src/core/operations/ListOperations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC7G,OAAO,EAAE,SAAS,EAA4B,MAAM,oBAAoB,CAAA;AAExE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAI9C,OAAO,EAAE,eAAe,EAAkC,MAAM,UAAU,CAAA;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C,OAAO,EAAE,QAAQ,EAAuB,MAAM,sBAAsB,CAAA;AAE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EAAE,cAAc,CAAC,mBAAmB,GAAG,SAAS,GAAG,SAAS;IAsBnH,kBAAkB,CAAC,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,QAAQ;CAmB9D"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import type { RuntimeId } from '../../accessorTree';
|
|
2
|
-
import type { TopLevelMutationOperation } from './TopLevelMutationOperation';
|
|
3
2
|
export declare class MutationAlias {
|
|
4
|
-
static encodeTopLevel(operation: TopLevelMutationOperation): string;
|
|
5
|
-
static decodeTopLevel(alias: string): TopLevelMutationOperation | undefined;
|
|
6
3
|
static encodeEntityId(entityId: RuntimeId): string;
|
|
7
4
|
static decodeEntityId(alias: string): RuntimeId['value'];
|
|
8
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MutationAlias.d.ts","sourceRoot":"","sources":["../../../../src/core/requestAliases/MutationAlias.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"MutationAlias.d.ts","sourceRoot":"","sources":["../../../../src/core/requestAliases/MutationAlias.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAEnD,qBAAa,aAAa;WACX,cAAc,CAAC,QAAQ,EAAE,SAAS,GAAG,MAAM;WAI3C,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC;CAK/D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/requestAliases/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/requestAliases/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { EntityName } from '../../treeParameters';
|
|
2
2
|
import type { SchemaColumn } from './SchemaColumn';
|
|
3
3
|
import type { SchemaRelation } from './SchemaRelation';
|
|
4
|
-
import type { SchemaUniqueConstraint } from './SchemaUniqueConstraint';
|
|
5
4
|
export declare type RawSchemaFields = Array<SchemaRelation | SchemaColumn>;
|
|
6
5
|
export interface RawSchemaEntity {
|
|
7
6
|
name: EntityName;
|
|
8
7
|
customPrimaryAllowed: boolean;
|
|
9
8
|
fields: RawSchemaFields;
|
|
10
|
-
unique:
|
|
9
|
+
unique: {
|
|
10
|
+
fields: string[];
|
|
11
|
+
}[];
|
|
11
12
|
}
|
|
12
13
|
//# sourceMappingURL=RawSchemaEntity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RawSchemaEntity.d.ts","sourceRoot":"","sources":["../../../../src/core/schema/RawSchemaEntity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"RawSchemaEntity.d.ts","sourceRoot":"","sources":["../../../../src/core/schema/RawSchemaEntity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEtD,oBAAY,eAAe,GAAG,KAAK,CAAC,cAAc,GAAG,YAAY,CAAC,CAAA;AAElE,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,UAAU,CAAA;IAChB,oBAAoB,EAAE,OAAO,CAAA;IAC7B,MAAM,EAAE,eAAe,CAAA;IACvB,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,CAAA;CAC9B"}
|
|
@@ -2,10 +2,20 @@ import type { EntityName, FieldName } from '../../treeParameters';
|
|
|
2
2
|
import type { SchemaField } from './SchemaField';
|
|
3
3
|
import type { SchemaStore } from './SchemaStore';
|
|
4
4
|
import { SchemaEntity } from './SchemaEntity';
|
|
5
|
+
import { SchemaColumn } from './SchemaColumn';
|
|
6
|
+
import { SchemaRelation } from './SchemaRelation';
|
|
7
|
+
import { SchemaEnumName } from './SchemaEnums';
|
|
5
8
|
export declare class Schema {
|
|
6
|
-
readonly store
|
|
9
|
+
private readonly store;
|
|
7
10
|
constructor(store: SchemaStore);
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
getEnumValues(enumName: SchemaEnumName): string[];
|
|
12
|
+
getEntityOrUndefined(entityName: EntityName): SchemaEntity | undefined;
|
|
13
|
+
getEntityNames(): string[];
|
|
14
|
+
getEntity(entityName: EntityName): SchemaEntity;
|
|
15
|
+
getEntityFieldOrUndefined(entityName: EntityName, fieldName: FieldName): SchemaField | undefined;
|
|
16
|
+
getEntityField(entityName: EntityName, fieldName: FieldName): SchemaField;
|
|
17
|
+
getEntityColumn(entityName: EntityName, fieldName: FieldName): SchemaColumn;
|
|
18
|
+
getEntityRelation(entityName: EntityName, fieldName: FieldName): SchemaRelation;
|
|
19
|
+
private throwError;
|
|
10
20
|
}
|
|
11
21
|
//# sourceMappingURL=Schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/core/schema/Schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../../src/core/schema/Schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAEjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE9C,qBAAa,MAAM;IACC,OAAO,CAAC,QAAQ,CAAC,KAAK;gBAAL,KAAK,EAAE,WAAW;IAE/C,aAAa,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM,EAAE;IAIjD,oBAAoB,CAAC,UAAU,EAAE,UAAU,GAAG,YAAY,GAAG,SAAS;IAItE,cAAc,IAAI,MAAM,EAAE;IAI1B,SAAS,CAAC,UAAU,EAAE,UAAU,GAAG,YAAY;IAI/C,yBAAyB,CAAC,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS;IAIhG,cAAc,CAAC,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,GAAG,WAAW;IAIzE,eAAe,CAAC,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,GAAG,YAAY;IAK3E,iBAAiB,CAAC,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,GAAG,cAAc;IAKtF,OAAO,CAAC,UAAU;CAGlB"}
|
|
@@ -3,7 +3,7 @@ import type { SchemaColumnType } from './SchemaColumnType';
|
|
|
3
3
|
import type { SchemaEnumName } from './SchemaEnums';
|
|
4
4
|
export interface SchemaColumn {
|
|
5
5
|
__typename: '_Column';
|
|
6
|
-
defaultValue: string | null;
|
|
6
|
+
defaultValue: string | number | boolean | null;
|
|
7
7
|
name: FieldName;
|
|
8
8
|
nullable: boolean;
|
|
9
9
|
type: SchemaColumnType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaColumn.d.ts","sourceRoot":"","sources":["../../../../src/core/schema/SchemaColumn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAEnD,MAAM,WAAW,YAAY;IAC5B,UAAU,EAAE,SAAS,CAAA;IACrB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"SchemaColumn.d.ts","sourceRoot":"","sources":["../../../../src/core/schema/SchemaColumn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAEnD,MAAM,WAAW,YAAY;IAC5B,UAAU,EAAE,SAAS,CAAA;IACrB,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;IAC9C,IAAI,EAAE,SAAS,CAAA;IACf,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,gBAAgB,CAAA;IACtB,QAAQ,EAAE,cAAc,GAAG,IAAI,CAAA;CAI/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaEntity.d.ts","sourceRoot":"","sources":["../../../../src/core/schema/SchemaEntity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAEtE,MAAM,WAAW,YAAY;IAC5B,IAAI,EAAE,UAAU,CAAA;IAChB,oBAAoB,EAAE,OAAO,CAAA;IAC7B,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"SchemaEntity.d.ts","sourceRoot":"","sources":["../../../../src/core/schema/SchemaEntity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAEtE,MAAM,WAAW,YAAY;IAC5B,IAAI,EAAE,UAAU,CAAA;IAChB,oBAAoB,EAAE,OAAO,CAAA;IAC7B,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,sBAAsB,EAAE,CAAA;CAChC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { GraphQlClient, GraphQlClientRequestOptions } from '@contember/client';
|
|
2
2
|
import { Schema } from './Schema';
|
|
3
3
|
export declare class SchemaLoader {
|
|
4
|
+
private static readonly schemaLoadCache;
|
|
4
5
|
private static readonly schemaQuery;
|
|
5
|
-
static loadSchema(client: GraphQlClient,
|
|
6
|
+
static loadSchema(client: GraphQlClient, options?: GraphQlClientRequestOptions): Promise<Schema>;
|
|
6
7
|
}
|
|
7
8
|
//# sourceMappingURL=SchemaLoader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaLoader.d.ts","sourceRoot":"","sources":["../../../../src/core/schema/SchemaLoader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAEnF,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAGjC,qBAAa,YAAY;IACxB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,CAqC/B;WAEgB,UAAU,CAC7B,MAAM,EAAE,aAAa,EACrB,
|
|
1
|
+
{"version":3,"file":"SchemaLoader.d.ts","sourceRoot":"","sources":["../../../../src/core/schema/SchemaLoader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAEnF,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAGjC,qBAAa,YAAY;IACxB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAA0C;IAEjF,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,CAqC/B;WAEgB,UAAU,CAC7B,MAAM,EAAE,aAAa,EACrB,OAAO,CAAC,EAAE,2BAA2B,GACnC,OAAO,CAAC,MAAM,CAAC;CAalB"}
|
|
@@ -5,7 +5,7 @@ export interface BaseRelation {
|
|
|
5
5
|
name: FieldName;
|
|
6
6
|
nullable: boolean | null;
|
|
7
7
|
onDelete: 'restrict' | 'cascade' | 'setNull' | null;
|
|
8
|
-
orderBy: SchemaRelationOrderBy | null;
|
|
8
|
+
orderBy: SchemaRelationOrderBy[] | null;
|
|
9
9
|
orphanRemoval: boolean | null;
|
|
10
10
|
targetEntity: EntityName;
|
|
11
11
|
type: 'OneHasOne' | 'OneHasMany' | 'ManyHasOne' | 'ManyHasMany';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaRelation.d.ts","sourceRoot":"","sources":["../../../../src/core/schema/SchemaRelation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAEpE,MAAM,WAAW,YAAY;IAC5B,UAAU,EAAE,WAAW,CAAA;IAEvB,IAAI,EAAE,SAAS,CAAA;IAEf,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAA;IACxB,QAAQ,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,IAAI,CAAA;IACnD,OAAO,EAAE,qBAAqB,GAAG,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"SchemaRelation.d.ts","sourceRoot":"","sources":["../../../../src/core/schema/SchemaRelation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAEpE,MAAM,WAAW,YAAY;IAC5B,UAAU,EAAE,WAAW,CAAA;IAEvB,IAAI,EAAE,SAAS,CAAA;IAEf,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAA;IACxB,QAAQ,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,IAAI,CAAA;IACnD,OAAO,EAAE,qBAAqB,EAAE,GAAG,IAAI,CAAA;IACvC,aAAa,EAAE,OAAO,GAAG,IAAI,CAAA;IAC7B,YAAY,EAAE,UAAU,CAAA;IACxB,IAAI,EAAE,WAAW,GAAG,YAAY,GAAG,YAAY,GAAG,aAAa,CAAA;CAC/D;AAED,MAAM,WAAW,cAAe,SAAQ,YAAY;IACnD,IAAI,EAAE,QAAQ,CAAA;IACd,UAAU,EAAE,SAAS,GAAG,IAAI,CAAA;IAC5B,OAAO,CAAC,EAAE,KAAK,CAAA;CACf;AAED,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACpD,IAAI,EAAE,SAAS,CAAA;IACf,OAAO,EAAE,SAAS,CAAA;IAClB,UAAU,CAAC,EAAE,KAAK,CAAA;CAClB;AAED,oBAAY,cAAc,GAAG,cAAc,GAAG,eAAe,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ErrorAccessor, FieldAccessor } from '../../accessors';
|
|
2
2
|
import type { FieldMarker } from '../../markers';
|
|
3
|
-
import type { FieldEventListenerStore, FieldName, FieldValue
|
|
3
|
+
import type { FieldEventListenerStore, FieldName, FieldValue } from '../../treeParameters';
|
|
4
4
|
import type { EntityRealmState } from './EntityRealmState';
|
|
5
5
|
export interface FieldState<Value extends FieldValue = FieldValue> {
|
|
6
6
|
type: 'field';
|
|
@@ -11,7 +11,7 @@ export interface FieldState<Value extends FieldValue = FieldValue> {
|
|
|
11
11
|
readonly getAccessor: () => FieldAccessor;
|
|
12
12
|
hasUnpersistedChanges: boolean;
|
|
13
13
|
parent: EntityRealmState;
|
|
14
|
-
persistedValue:
|
|
14
|
+
persistedValue: Value | undefined;
|
|
15
15
|
placeholderName: FieldName;
|
|
16
16
|
touchLog: Set<string> | undefined;
|
|
17
17
|
value: Value | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldState.d.ts","sourceRoot":"","sources":["../../../../src/core/state/FieldState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,uBAAuB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"FieldState.d.ts","sourceRoot":"","sources":["../../../../src/core/state/FieldState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,uBAAuB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC1F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAE1D,MAAM,WAAW,UAAU,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU;IAChE,IAAI,EAAE,OAAO,CAAA;IAEb,QAAQ,EAAE,aAAa,CAAC,KAAK,CAAC,GAAG,SAAS,CAAA;IAC1C,MAAM,EAAE,aAAa,GAAG,SAAS,CAAA;IACjC,cAAc,EAAE,uBAAuB,CAAC,KAAK,CAAC,GAAG,SAAS,CAAA;IAC1D,WAAW,EAAE,WAAW,CAAA;IACxB,QAAQ,CAAC,WAAW,EAAE,MAAM,aAAa,CAAA;IACzC,qBAAqB,EAAE,OAAO,CAAA;IAC9B,MAAM,EAAE,gBAAgB,CAAA;IACxB,cAAc,EAAE,KAAK,GAAG,SAAS,CAAA;IACjC,eAAe,EAAE,SAAS,CAAA;IAC1B,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,SAAS,CAAA;IACjC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;CACnB"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NamedExoticComponent, PropsWithChildren, ReactElement } from 'react';
|
|
2
2
|
import type { Environment } from '../dao';
|
|
3
3
|
import type { MarkerProvider, StaticRenderProviderProps } from './MarkerProvider';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
interface EnvironmentAwareFunctionComponent<P> {
|
|
5
|
+
(props: PropsWithChildren<P>, environment: Environment): ReactElement<any, any> | null;
|
|
6
|
+
displayName?: string | undefined;
|
|
7
|
+
}
|
|
8
|
+
declare function Component<Props extends {}>(statelessRender: EnvironmentAwareFunctionComponent<Props>, displayName?: string): NamedExoticComponent<Props>;
|
|
9
|
+
declare function Component<Props extends {}, NonStaticPropNames extends keyof Props = never>(statefulRender: EnvironmentAwareFunctionComponent<Props>, staticRender: (props: StaticRenderProviderProps<Props, NonStaticPropNames>, environment: Environment) => ReactElement | null, displayName?: string): NamedExoticComponent<Props>;
|
|
10
|
+
declare function Component<Props extends {}, NonStaticPropNames extends keyof Props = never>(statefulRender: EnvironmentAwareFunctionComponent<Props>, markerProvisions: MarkerProvider<Props, NonStaticPropNames>, displayName?: string): NamedExoticComponent<Props>;
|
|
11
|
+
export type { EnvironmentAwareFunctionComponent };
|
|
7
12
|
export { Component };
|
|
8
13
|
//# sourceMappingURL=Component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Component.d.ts","sourceRoot":"","sources":["../../../src/coreComponents/Component.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Component.d.ts","sourceRoot":"","sources":["../../../src/coreComponents/Component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,oBAAoB,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEnF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAEzC,OAAO,KAAK,EAAE,cAAc,EAAwB,yBAAyB,EAAE,MAAM,kBAAkB,CAAA;AAEvG,UAAU,iCAAiC,CAAC,CAAC;IAC5C,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,WAAW,GAAG,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IACvF,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC;AAED,iBAAS,SAAS,CAAC,KAAK,SAAS,EAAE,EAClC,eAAe,EAAE,iCAAiC,CAAC,KAAK,CAAC,EACzD,WAAW,CAAC,EAAE,MAAM,GAClB,oBAAoB,CAAC,KAAK,CAAC,CAAA;AAE9B,iBAAS,SAAS,CAAC,KAAK,SAAS,EAAE,EAAE,kBAAkB,SAAS,MAAM,KAAK,GAAG,KAAK,EAClF,cAAc,EAAE,iCAAiC,CAAC,KAAK,CAAC,EACxD,YAAY,EAAE,CACb,KAAK,EAAE,yBAAyB,CAAC,KAAK,EAAE,kBAAkB,CAAC,EAC3D,WAAW,EAAE,WAAW,KACpB,YAAY,GAAG,IAAI,EACxB,WAAW,CAAC,EAAE,MAAM,GAClB,oBAAoB,CAAC,KAAK,CAAC,CAAA;AAE9B,iBAAS,SAAS,CAAC,KAAK,SAAS,EAAE,EAAE,kBAAkB,SAAS,MAAM,KAAK,GAAG,KAAK,EAClF,cAAc,EAAE,iCAAiC,CAAC,KAAK,CAAC,EACxD,gBAAgB,EAAE,cAAc,CAAC,KAAK,EAAE,kBAAkB,CAAC,EAC3D,WAAW,CAAC,EAAE,MAAM,GAClB,oBAAoB,CAAC,KAAK,CAAC,CAAA;AA2C9B,YAAY,EAAE,iCAAiC,EAAE,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -2,7 +2,6 @@ import { ComponentType, ReactElement, ReactNode } from 'react';
|
|
|
2
2
|
import { AccessorTreeState } from '../accessorTree';
|
|
3
3
|
export interface DataBindingProviderBaseProps {
|
|
4
4
|
children?: ReactNode;
|
|
5
|
-
refreshOnEnvironmentChange?: boolean;
|
|
6
5
|
refreshOnPersist?: boolean;
|
|
7
6
|
}
|
|
8
7
|
export interface DataBindingStateComponentProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataBindingProvider.d.ts","sourceRoot":"","sources":["../../../src/coreComponents/DataBindingProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAuB,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACnF,OAAO,EAAgB,iBAAiB,EAAkB,MAAM,iBAAiB,CAAA;AAEjF,MAAM,WAAW,4BAA4B;IAC5C,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,
|
|
1
|
+
{"version":3,"file":"DataBindingProvider.d.ts","sourceRoot":"","sources":["../../../src/coreComponents/DataBindingProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAuB,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACnF,OAAO,EAAgB,iBAAiB,EAAkB,MAAM,iBAAiB,CAAA;AAEjF,MAAM,WAAW,4BAA4B;IAC5C,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,MAAM,WAAW,8BAA8B;IAC9C,iBAAiB,EAAE,iBAAiB,CAAA;IACpC,QAAQ,CAAC,EAAE,SAAS,CAAA;CACpB;AAED,oBAAY,wBAAwB,CAAC,UAAU,IAAI,4BAA4B,GAC9E,CACG,EAAE,GACF;IACA,cAAc,EAAE,aAAa,CAAC,UAAU,GAAG,8BAA8B,CAAC,CAAA;IAC1E,UAAU,CAAC,EAAE,UAAU,CAAA;CACtB,CACH,CAAA;AAEF,eAAO,MAAM,mBAAmB,+DAoBmC,YAAY,CAAA"}
|
|
@@ -5,5 +5,5 @@ export interface EntityBaseProps {
|
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
}
|
|
7
7
|
export declare type EntityProps = EntityBaseProps;
|
|
8
|
-
export declare const Entity:
|
|
8
|
+
export declare const Entity: React.NamedExoticComponent<EntityBaseProps>;
|
|
9
9
|
//# sourceMappingURL=Entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Entity.d.ts","sourceRoot":"","sources":["../../../src/coreComponents/Entity.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAGlD,MAAM,WAAW,eAAe;IAC/B,QAAQ,EAAE,cAAc,CAAA;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACpB;AAED,oBAAY,WAAW,GAAG,eAAe,CAAA;AAEzC,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"Entity.d.ts","sourceRoot":"","sources":["../../../src/coreComponents/Entity.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAGlD,MAAM,WAAW,eAAe;IAC/B,QAAQ,EAAE,cAAc,CAAA;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACpB;AAED,oBAAY,WAAW,GAAG,eAAe,CAAA;AAEzC,eAAO,MAAM,MAAM,6CAUlB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityListSubTree.d.ts","sourceRoot":"","sources":["../../../src/coreComponents/EntityListSubTree.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EntityListSubTree.d.ts","sourceRoot":"","sources":["../../../src/coreComponents/EntityListSubTree.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,SAAS,EAAe,MAAM,OAAO,CAAA;AAO3E,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAEpC,OAAO,KAAK,EAAE,0BAA0B,EAAE,uCAAuC,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAExH,OAAO,EAAc,mBAAmB,EAAE,MAAM,cAAc,CAAA;AAI9D,MAAM,WAAW,gCAAgC;IAChD,SAAS,CAAC,EAAE,WAAW,CAAC,oBAAoB,CAAA;CAC5C;AAED,oBAAY,sBAAsB,CAAC,SAAS,EAAE,WAAW,IAAI;IAC5D,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACpB,GAAG,gCAAgC,GACnC,CAAC,0BAA0B,GAAG,uCAAuC,CAAC,GACtE,CACG,EAAE,GACF;IACA,aAAa,EAAE,aAAa,CAAC,SAAS,GAAG,mBAAmB,CAAC,CAAA;IAC7D,SAAS,CAAC,EAAE,SAAS,CAAA;CACpB,CACH,CAAA;AAEF,eAAO,MAAM,iBAAiB,qFAuC0D,YAAY,CAAA"}
|
|
@@ -7,5 +7,5 @@ export interface FieldRuntimeProps<Persisted extends FieldValue = FieldValue> {
|
|
|
7
7
|
}
|
|
8
8
|
export interface FieldProps<Persisted extends FieldValue = FieldValue> extends FieldBasicProps, FieldRuntimeProps<Persisted> {
|
|
9
9
|
}
|
|
10
|
-
export declare const Field: <Persisted extends
|
|
10
|
+
export declare const Field: <Persisted extends FieldValue = FieldValue>(props: FieldProps<Persisted>) => ReactElement;
|
|
11
11
|
//# sourceMappingURL=Field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../src/coreComponents/Field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGpD,OAAO,KAAK,EAAE,UAAU,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAA;AAI/E,MAAM,WAAW,eAAgB,SAAQ,0BAA0B;CAAG;AAEtE,MAAM,WAAW,iBAAiB,CAAC,SAAS,SAAS,UAAU,GAAG,UAAU;IAC3E,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,KAAK,SAAS,CAAA;CAC/C;AAED,MAAM,WAAW,UAAU,CAAC,SAAS,SAAS,UAAU,GAAG,UAAU,CACpE,SAAQ,eAAe,EACtB,iBAAiB,CAAC,SAAS,CAAC;CAAG;AAEjC,eAAO,MAAM,KAAK,+
|
|
1
|
+
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../src/coreComponents/Field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGpD,OAAO,KAAK,EAAE,UAAU,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAA;AAI/E,MAAM,WAAW,eAAgB,SAAQ,0BAA0B;CAAG;AAEtE,MAAM,WAAW,iBAAiB,CAAC,SAAS,SAAS,UAAU,GAAG,UAAU;IAC3E,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,KAAK,SAAS,CAAA;CAC/C;AAED,MAAM,WAAW,UAAU,CAAC,SAAS,SAAS,UAAU,GAAG,UAAU,CACpE,SAAQ,eAAe,EACtB,iBAAiB,CAAC,SAAS,CAAC;CAAG;AAEjC,eAAO,MAAM,KAAK,+EAwBgE,YAAY,CAAA"}
|
|
@@ -3,5 +3,5 @@ import type { SugaredParentEntityParameters } from '../treeParameters';
|
|
|
3
3
|
export interface ParentEntityProps extends SugaredParentEntityParameters {
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
}
|
|
6
|
-
export declare const ParentEntity:
|
|
6
|
+
export declare const ParentEntity: React.NamedExoticComponent<ParentEntityProps>;
|
|
7
7
|
//# sourceMappingURL=ParentEntity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParentEntity.d.ts","sourceRoot":"","sources":["../../../src/coreComponents/ParentEntity.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAA;AAGtE,MAAM,WAAW,iBAAkB,SAAQ,6BAA6B;IACvE,QAAQ,CAAC,EAAE,SAAS,CAAA;CACpB;AAED,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"ParentEntity.d.ts","sourceRoot":"","sources":["../../../src/coreComponents/ParentEntity.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAA;AAGtE,MAAM,WAAW,iBAAkB,SAAQ,6BAA6B;IACvE,QAAQ,CAAC,EAAE,SAAS,CAAA;CACpB;AAED,eAAO,MAAM,YAAY,+CAOxB,CAAA"}
|
|
@@ -19,9 +19,11 @@ declare class Environment {
|
|
|
19
19
|
/** @deprecated */
|
|
20
20
|
hasName(key: string): boolean;
|
|
21
21
|
withVariables(variables: Environment.ValuesMapWithFactory | undefined): Environment;
|
|
22
|
+
getAllVariables(): Environment.CustomVariables;
|
|
22
23
|
hasParameter(key: string): boolean;
|
|
23
|
-
getParameter<F>(key: string): string;
|
|
24
|
-
getParameterOrElse<F>(key: string, fallback: F): string | F;
|
|
24
|
+
getParameter<F>(key: string): string | number;
|
|
25
|
+
getParameterOrElse<F>(key: string, fallback: F): string | number | F;
|
|
26
|
+
getAllParameters(): Environment.Parameters;
|
|
25
27
|
withParameters(parameters: Environment.Parameters): Environment;
|
|
26
28
|
hasDimension(dimensionName: string): boolean;
|
|
27
29
|
getDimension<F>(dimensionName: string): string[];
|
|
@@ -31,6 +33,8 @@ declare class Environment {
|
|
|
31
33
|
getSchema(): Schema;
|
|
32
34
|
withSchema(schema: Schema): Environment;
|
|
33
35
|
getParent(): Environment;
|
|
36
|
+
withExtension<S, R>(extension: Environment.Extension<S, R>, state: S): Environment;
|
|
37
|
+
getExtension<S, R>(extension: Environment.Extension<S, R>): R;
|
|
34
38
|
merge(other: Environment): Environment;
|
|
35
39
|
}
|
|
36
40
|
declare namespace Environment {
|
|
@@ -44,6 +48,7 @@ declare namespace Environment {
|
|
|
44
48
|
parameters: Parameters;
|
|
45
49
|
variables: CustomVariables;
|
|
46
50
|
parent?: Environment;
|
|
51
|
+
extensions: Map<Extension<unknown, unknown>, unknown>;
|
|
47
52
|
}
|
|
48
53
|
type SubTreeNode = SubTreeEntityNode | SubTreeEntityListNode;
|
|
49
54
|
type InnerNode = EntityNode | EntityListNode | ColumnNode;
|
|
@@ -78,15 +83,19 @@ declare namespace Environment {
|
|
|
78
83
|
interface SelectedDimensions {
|
|
79
84
|
[key: string]: string[];
|
|
80
85
|
}
|
|
81
|
-
|
|
82
|
-
[
|
|
83
|
-
}
|
|
86
|
+
type Parameters = {
|
|
87
|
+
[K in string]?: string | number;
|
|
88
|
+
};
|
|
84
89
|
interface CustomVariables {
|
|
85
90
|
[key: string]: Value;
|
|
86
91
|
}
|
|
87
92
|
interface ValuesMapWithFactory {
|
|
88
93
|
[key: string]: ((environment: Environment) => Value) | Value;
|
|
89
94
|
}
|
|
95
|
+
type Extension<State, Result> = {
|
|
96
|
+
create: (state: State | undefined, environment: Environment) => Result;
|
|
97
|
+
};
|
|
98
|
+
const createExtension: <S, R>(create: (state: S | undefined, environment: Environment) => R, otherMethods?: Omit<Extension<S, R>, "create"> | undefined) => Extension<S, R>;
|
|
90
99
|
/** @deprecated */
|
|
91
100
|
type DeltaFactory = ValuesMapWithFactory;
|
|
92
101
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Environment.d.ts","sourceRoot":"","sources":["../../../src/dao/Environment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEnF,cAAM,WAAW;IAEf,OAAO,CAAC,QAAQ,CAAC,OAAO;IADzB,OAAO;WAKO,MAAM;
|
|
1
|
+
{"version":3,"file":"Environment.d.ts","sourceRoot":"","sources":["../../../src/dao/Environment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEnF,cAAM,WAAW;IAEf,OAAO,CAAC,QAAQ,CAAC,OAAO;IADzB,OAAO;WAKO,MAAM;IASb,UAAU,IAAI,WAAW,CAAC,WAAW;IAUrC,cAAc,IAAI,WAAW,CAAC,OAAO;IAOrC,WAAW,CAAC,OAAO,EAAE,WAAW,CAAC,WAAW;IAQ5C,gBAAgB,CAAC,IAAI,EAAE,WAAW,CAAC,SAAS;IAe5C,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAIjC,WAAW,CAAC,CAAC,SAAS,WAAW,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC;IAO5E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NodeEnvironmentFactory.d.ts","sourceRoot":"","sources":["../../../src/dao/TreeNodeEnvironmentFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAEN,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,2BAA2B,EAC3B,0BAA0B,EAC1B,uCAAuC,EACvC,yCAAyC,EACzC,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"TreeNodeEnvironmentFactory.d.ts","sourceRoot":"","sources":["../../../src/dao/TreeNodeEnvironmentFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAEN,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,2BAA2B,EAC3B,0BAA0B,EAC1B,uCAAuC,EACvC,yCAAyC,EACzC,MAAM,mBAAmB,CAAA;AAO1B,qBAAa,0BAA0B;WAExB,qCAAqC,CAClD,WAAW,EAAE,WAAW,EACxB,iBAAiB,EAAE,0BAA0B,GAAG,uCAAuC,GACrF,WAAW;WA0BA,iCAAiC,CAC9C,WAAW,EAAE,WAAW,EACxB,iBAAiB,EAAE,4BAA4B,GAAG,yCAAyC,GACzF,WAAW;WA0BA,8BAA8B,CAC3C,WAAW,EAAE,WAAW,EACxB,yBAAyB,EAAE,yBAAyB,GAClD,WAAW;WAgBA,0BAA0B,CACvC,WAAW,EAAE,WAAW,EACxB,2BAA2B,EAAE,2BAA2B;WAO3C,yBAAyB,CACtC,WAAW,EAAE,WAAW,EACxB,0BAA0B,EAAE,0BAA0B;IAcvD,OAAO,CAAC,MAAM,CAAC,kBAAkB;IAiBjC,OAAO,CAAC,MAAM,CAAC,qBAAqB;IAOpC,OAAO,CAAC,MAAM,CAAC,qBAAqB;IAKpC,OAAO,CAAC,MAAM,CAAC,eAAe;IAM9B,OAAO,CAAC,MAAM,CAAC,aAAa;IAU5B,OAAO,CAAC,MAAM,CAAC,aAAa;IAM5B,OAAO,CAAC,MAAM,CAAC,YAAY;IAwB3B,OAAO,CAAC,MAAM,CAAC,gBAAgB;WAYjB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,oBAAoB,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAM,GAAG,SAAS;CAchH"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { SugaredRelativeSingleField } from '../treeParameters';
|
|
1
|
+
import type { FieldValue, SugaredRelativeSingleField } from '../treeParameters';
|
|
2
2
|
/**
|
|
3
3
|
* Derived fields are meant for cases when the user is expected to primarily edit the `sourceField` whose optionally
|
|
4
4
|
* transformed value is then copied to the `derivedField`. This happens after each update until either the `derivedField`
|
|
5
5
|
* is touched or until it is persisted at which point the tie between the fields is automatically severed.
|
|
6
6
|
* @deprecated This is fundamentally wrong and shouldn't be used for now.
|
|
7
7
|
*/
|
|
8
|
-
export declare const useDerivedField: <SourceValue extends
|
|
8
|
+
export declare const useDerivedField: <SourceValue extends FieldValue = FieldValue>(sourceField: string | SugaredRelativeSingleField, derivedField: string | SugaredRelativeSingleField, transform?: (sourceValue: SourceValue | null) => SourceValue | null, agent?: string) => void;
|
|
9
9
|
//# sourceMappingURL=useDerivedField.d.ts.map
|