@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":"AccessorTreeStateOptions.d.ts","sourceRoot":"","sources":["../../../src/accessorTree/AccessorTreeStateOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,MAAM,WAAW,wBAAwB;IACxC,QAAQ,EAAE,SAAS,CAAA;IACnB,
|
|
1
|
+
{"version":3,"file":"AccessorTreeStateOptions.d.ts","sourceRoot":"","sources":["../../../src/accessorTree/AccessorTreeStateOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,MAAM,WAAW,wBAAwB;IACxC,QAAQ,EAAE,SAAS,CAAA;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DirtinessContext.d.ts","sourceRoot":"","sources":["../../../src/accessorTree/DirtinessContext.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"DirtinessContext.d.ts","sourceRoot":"","sources":["../../../src/accessorTree/DirtinessContext.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,gBAAgB,wBAAgC,CAAA"}
|
|
@@ -36,7 +36,11 @@ export interface MutationDataResponse {
|
|
|
36
36
|
[alias: string]: MutationResponse;
|
|
37
37
|
}
|
|
38
38
|
export interface MutationTransactionResponse {
|
|
39
|
-
transaction: MutationDataResponse
|
|
39
|
+
transaction: (MutationDataResponse & {
|
|
40
|
+
__type: 'MutationTransaction';
|
|
41
|
+
ok: boolean;
|
|
42
|
+
errorMessage: string | null;
|
|
43
|
+
});
|
|
40
44
|
}
|
|
41
45
|
export interface MutationRequestResponse {
|
|
42
46
|
data: MutationTransactionResponse | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MutationRequestResponse.d.ts","sourceRoot":"","sources":["../../../src/accessorTree/MutationRequestResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAEhE,MAAM,WAAW,sBAAsB;IACtC,UAAU,EAAE,oBAAoB,CAAA;IAChC,KAAK,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,sBAAsB;IACtC,UAAU,EAAE,oBAAoB,CAAA;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACpB;AAED,oBAAY,iBAAiB,GAAG,sBAAsB,GAAG,sBAAsB,CAAA;AAE/E,oBAAY,iBAAiB,GAAG,iBAAiB,EAAE,CAAA;AAEnD,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,iBAAiB,CAAA;IACvB,OAAO,EAAE;QACR,IAAI,EAAE,MAAM,CAAA;KACZ,CAAA;CACD;AAED,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,iBAAiB,CAAA;IACvB,IAAI,EAAE,MAAM,CAAC,kBAAkB,CAAA;IAC/B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB;AAED,MAAM,WAAW,gBAAgB;IAChC,EAAE,EAAE,OAAO,CAAA;IACX,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,UAAU,EACP;QACA,KAAK,EAAE,OAAO,CAAA;QACd,MAAM,EAAE,eAAe,EAAE,CAAA;KACxB,GACD,SAAS,CAAA;IACZ,IAAI,EAAE,kBAAkB,CAAA;CACxB;AAED,MAAM,WAAW,oBAAoB;IACpC,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB,CAAA;CACjC;
|
|
1
|
+
{"version":3,"file":"MutationRequestResponse.d.ts","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AAA;QAC7B,EAAE,EAAE,OAAO,CAAA;QACX,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;KAC3B,CACD,CAAA;CACD;AAED,MAAM,WAAW,uBAAuB;IACvC,IAAI,EAAE,2BAA2B,GAAG,IAAI,CAAA;IACxC,MAAM,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,CAAA;CAC/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MutationStateContext.d.ts","sourceRoot":"","sources":["../../../src/accessorTree/MutationStateContext.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"MutationStateContext.d.ts","sourceRoot":"","sources":["../../../src/accessorTree/MutationStateContext.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,oBAAoB,wBAAgC,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { EntityId,
|
|
2
|
-
import type {
|
|
3
|
-
export declare type EntityFieldPersistedData =
|
|
1
|
+
import type { EntityId, FieldValue, PlaceholderName } from '../treeParameters';
|
|
2
|
+
import type { ServerId, UniqueEntityId } from './RuntimeId';
|
|
3
|
+
export declare type EntityFieldPersistedData = FieldValue | ServerId | EntityListPersistedData;
|
|
4
4
|
export declare type SingleEntityPersistedData = Map<PlaceholderName, EntityFieldPersistedData>;
|
|
5
5
|
export declare type EntityListPersistedData = Set<EntityId>;
|
|
6
|
-
export declare type PersistedEntityDataStore = Map<
|
|
7
|
-
export declare type SubTreeDataStore = Map<PlaceholderName,
|
|
6
|
+
export declare type PersistedEntityDataStore = Map<UniqueEntityId, SingleEntityPersistedData>;
|
|
7
|
+
export declare type SubTreeDataStore = Map<PlaceholderName, ServerId | EntityListPersistedData>;
|
|
8
8
|
export declare class NormalizedPersistedData {
|
|
9
9
|
readonly subTreeDataStore: SubTreeDataStore;
|
|
10
10
|
readonly persistedEntityDataStore: PersistedEntityDataStore;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NormalizedPersistedData.d.ts","sourceRoot":"","sources":["../../../src/accessorTree/NormalizedPersistedData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"NormalizedPersistedData.d.ts","sourceRoot":"","sources":["../../../src/accessorTree/NormalizedPersistedData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAC9E,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAK3D,oBAAY,wBAAwB,GAAG,UAAU,GAAG,QAAQ,GAAG,uBAAuB,CAAA;AAEtF,oBAAY,yBAAyB,GAAG,GAAG,CAAC,eAAe,EAAE,wBAAwB,CAAC,CAAA;AAEtF,oBAAY,uBAAuB,GAAG,GAAG,CAAC,QAAQ,CAAC,CAAA;AAEnD,oBAAY,wBAAwB,GAAG,GAAG,CAAC,cAAc,EAAE,yBAAyB,CAAC,CAAA;AAGrF,oBAAY,gBAAgB,GAAG,GAAG,CAAC,eAAe,EAAE,QAAQ,GAAG,uBAAuB,CAAC,CAAA;AAEvF,qBAAa,uBAAuB;aAElB,gBAAgB,EAAE,gBAAgB;aAClC,wBAAwB,EAAE,wBAAwB;gBADlD,gBAAgB,EAAE,gBAAgB,EAClC,wBAAwB,EAAE,wBAAwB;CAEnE"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { RequestError } from './RequestError';
|
|
2
2
|
import { ErrorAccessor } from '../accessors';
|
|
3
|
+
import { EntityId } from '../treeParameters';
|
|
3
4
|
export interface NothingToPersistPersistResult {
|
|
4
5
|
type: 'nothingToPersist';
|
|
5
6
|
}
|
|
6
7
|
export interface JustSuccessPersistResult {
|
|
7
8
|
type: 'justSuccess';
|
|
8
|
-
persistedEntityIds:
|
|
9
|
+
persistedEntityIds: EntityId[];
|
|
9
10
|
afterPersistError?: any;
|
|
10
11
|
}
|
|
11
12
|
export interface InvalidInputPersistResult {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PersistResult.d.ts","sourceRoot":"","sources":["../../../src/accessorTree/PersistResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAE5C,MAAM,WAAW,6BAA6B;IAC7C,IAAI,EAAE,kBAAkB,CAAA;CACxB;AAED,MAAM,WAAW,wBAAwB;IACxC,IAAI,EAAE,aAAa,CAAA;IACnB,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"PersistResult.d.ts","sourceRoot":"","sources":["../../../src/accessorTree/PersistResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE5C,MAAM,WAAW,6BAA6B;IAC7C,IAAI,EAAE,kBAAkB,CAAA;CACxB;AAED,MAAM,WAAW,wBAAwB;IACxC,IAAI,EAAE,aAAa,CAAA;IACnB,kBAAkB,EAAE,QAAQ,EAAE,CAAA;IAC9B,iBAAiB,CAAC,EAAE,GAAG,CAAA;CACvB;AAED,MAAM,WAAW,yBAAyB;IACzC,IAAI,EAAE,cAAc,CAAA;IACpB,MAAM,EAAE,aAAa,CAAC,KAAK,EAAE,CAAA;CAC7B;AAED,MAAM,WAAW,qBAAqB;IACrC,IAAI,EAAE,iBAAiB,CAAA;IACvB,MAAM,EAAE,GAAG,CAAA;CACX;AAED,MAAM,WAAW,oBAAoB;IACpC,IAAI,EAAE,SAAS,CAAA;CACf;AAED,oBAAY,uBAAuB,GAAG,6BAA6B,GAAG,wBAAwB,CAAA;AAE9F,oBAAY,kBAAkB,GAAG,yBAAyB,GAAG,oBAAoB,GAAG,YAAY,GAAG,qBAAqB,CAAA"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare type ReceivedFieldData
|
|
3
|
-
export declare type ReceivedEntityData
|
|
4
|
-
id: string;
|
|
1
|
+
import type { EntityId, FieldValue } from '../treeParameters';
|
|
2
|
+
export declare type ReceivedFieldData = FieldValue | ReceivedEntityData | Array<ReceivedEntityData>;
|
|
3
|
+
export declare type ReceivedEntityData = {
|
|
5
4
|
__typename: string;
|
|
6
|
-
|
|
5
|
+
id: EntityId;
|
|
6
|
+
} & {
|
|
7
|
+
[fieldName: string]: ReceivedFieldData;
|
|
7
8
|
};
|
|
8
|
-
export declare type ReceivedData
|
|
9
|
-
export interface ReceivedDataTree
|
|
10
|
-
[treeId: string]: ReceivedData
|
|
9
|
+
export declare type ReceivedData = ReceivedEntityData | ReceivedEntityData[];
|
|
10
|
+
export interface ReceivedDataTree {
|
|
11
|
+
[treeId: string]: ReceivedData | null;
|
|
11
12
|
}
|
|
12
|
-
export interface QueryRequestResponse
|
|
13
|
-
data: ReceivedDataTree
|
|
13
|
+
export interface QueryRequestResponse {
|
|
14
|
+
data: ReceivedDataTree;
|
|
14
15
|
errors?: {
|
|
15
16
|
message: string;
|
|
16
17
|
path?: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryRequestResponse.d.ts","sourceRoot":"","sources":["../../../src/accessorTree/QueryRequestResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"QueryRequestResponse.d.ts","sourceRoot":"","sources":["../../../src/accessorTree/QueryRequestResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE7D,oBAAY,iBAAiB,GAAG,UAAU,GAAG,kBAAkB,GAAG,KAAK,CAAC,kBAAkB,CAAC,CAAA;AAE3F,oBAAY,kBAAkB,GAC3B;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,EAAE,EAAE,QAAQ,CAAA;CACZ,GACC;IACD,CAAC,SAAS,EAAE,MAAM,GAAG,iBAAiB,CAAA;CACtC,CAAA;AAEF,oBAAY,YAAY,GAAG,kBAAkB,GAAG,kBAAkB,EAAE,CAAA;AAEpE,MAAM,WAAW,gBAAgB;IAChC,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAAA;CACrC;AAED,MAAM,WAAW,oBAAoB;IACpC,IAAI,EAAE,gBAAgB,CAAA;IACtB,MAAM,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,CAAA;CAC/C"}
|
|
@@ -1,16 +1,25 @@
|
|
|
1
|
+
import { EntityId } from '../treeParameters';
|
|
2
|
+
export declare type UniqueEntityId = string & {
|
|
3
|
+
__type: 'UniqueEntityId';
|
|
4
|
+
};
|
|
1
5
|
export interface RuntimeIdSpec {
|
|
2
6
|
existsOnServer: boolean;
|
|
3
|
-
value:
|
|
7
|
+
value: EntityId;
|
|
8
|
+
uniqueValue: UniqueEntityId;
|
|
4
9
|
}
|
|
5
|
-
export declare class
|
|
6
|
-
readonly value:
|
|
10
|
+
export declare class ServerId implements RuntimeIdSpec {
|
|
11
|
+
readonly value: EntityId;
|
|
12
|
+
readonly entityName: string;
|
|
7
13
|
get existsOnServer(): true;
|
|
8
|
-
constructor(value: string);
|
|
14
|
+
constructor(value: EntityId, entityName: string);
|
|
15
|
+
get uniqueValue(): UniqueEntityId;
|
|
16
|
+
static formatUniqueValue(id: EntityId, entityName: string): UniqueEntityId;
|
|
9
17
|
}
|
|
10
18
|
export declare class ClientGeneratedUuid implements RuntimeIdSpec {
|
|
11
19
|
readonly value: string;
|
|
12
20
|
get existsOnServer(): false;
|
|
13
21
|
constructor(value: string);
|
|
22
|
+
get uniqueValue(): UniqueEntityId;
|
|
14
23
|
}
|
|
15
24
|
export declare class UnpersistedEntityDummyId implements RuntimeIdSpec {
|
|
16
25
|
get existsOnServer(): false;
|
|
@@ -19,7 +28,8 @@ export declare class UnpersistedEntityDummyId implements RuntimeIdSpec {
|
|
|
19
28
|
constructor();
|
|
20
29
|
private static entropyLength;
|
|
21
30
|
private static dummyIdRegex;
|
|
22
|
-
static matchesDummyId(candidate:
|
|
31
|
+
static matchesDummyId(candidate: EntityId): boolean;
|
|
32
|
+
get uniqueValue(): UniqueEntityId;
|
|
23
33
|
}
|
|
24
|
-
export declare type RuntimeId =
|
|
34
|
+
export declare type RuntimeId = ServerId | ClientGeneratedUuid | UnpersistedEntityDummyId;
|
|
25
35
|
//# sourceMappingURL=RuntimeId.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuntimeId.d.ts","sourceRoot":"","sources":["../../../src/accessorTree/RuntimeId.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RuntimeId.d.ts","sourceRoot":"","sources":["../../../src/accessorTree/RuntimeId.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE5C,oBAAY,cAAc,GAAG,MAAM,GAAG;IAAE,MAAM,EAAE,gBAAgB,CAAA;CAAE,CAAA;AAElE,MAAM,WAAW,aAAa;IAC7B,cAAc,EAAE,OAAO,CAAA;IACvB,KAAK,EAAE,QAAQ,CAAA;IACf,WAAW,EAAE,cAAc,CAAA;CAC3B;AAED,qBAAa,QAAS,YAAW,aAAa;aAIV,KAAK,EAAE,QAAQ;aAAkB,UAAU,EAAE,MAAM;IAHtF,IAAW,cAAc,IAAI,IAAI,CAEhC;gBACkC,KAAK,EAAE,QAAQ,EAAkB,UAAU,EAAE,MAAM;IAGtF,IAAI,WAAW,mBAEd;IAED,MAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,GAAG,cAAc;CAG1E;AAED,qBAAa,mBAAoB,YAAW,aAAa;aAIrB,KAAK,EAAE,MAAM;IAHhD,IAAW,cAAc,IAAI,KAAK,CAEjC;gBACkC,KAAK,EAAE,MAAM;IAEhD,IAAI,WAAW,mBAEd;CACD;AAED,qBAAa,wBAAyB,YAAW,aAAa;IAC7D,IAAW,cAAc,IAAI,KAAK,CAEjC;IACD,SAAgB,KAAK,EAAE,MAAM,CAAA;IAE7B,OAAO,CAAC,MAAM,CAAC,WAAW,CAGtB;;IAWJ,OAAO,CAAC,MAAM,CAAC,aAAa,CAAI;IAChC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAuF;WACpG,cAAc,CAAC,SAAS,EAAE,QAAQ,GAAG,OAAO;IAI1D,IAAI,WAAW,mBAEd;CACD;AAED,oBAAY,SAAS,GAAG,QAAQ,GAAG,mBAAmB,GAAG,wBAAwB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accessorTreeStateReducer.d.ts","sourceRoot":"","sources":["../../../src/accessorTree/accessorTreeStateReducer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAExE,eAAO,MAAM,wBAAwB,kBACrB,iBAAiB,UACxB,uBAAuB,KAC7B,
|
|
1
|
+
{"version":3,"file":"accessorTreeStateReducer.d.ts","sourceRoot":"","sources":["../../../src/accessorTree/accessorTreeStateReducer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAExE,eAAO,MAAM,wBAAwB,kBACrB,iBAAiB,UACxB,uBAAuB,KAC7B,iBA6BF,CAAA"}
|
|
@@ -13,6 +13,7 @@ export * from './PersistResult';
|
|
|
13
13
|
export * from './QueryRequestResponse';
|
|
14
14
|
export * from './RequestError';
|
|
15
15
|
export * from './RuntimeId';
|
|
16
|
+
export * from './useAccessorTreeState';
|
|
16
17
|
export * from './useDataBinding';
|
|
17
18
|
export * from './useDirtinessState';
|
|
18
19
|
export * from './useMutationState';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/accessorTree/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,qBAAqB,CAAA;AACnC,cAAc,2BAA2B,CAAA;AACzC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,2BAA2B,CAAA;AACzC,cAAc,wBAAwB,CAAA;AACtC,cAAc,2BAA2B,CAAA;AACzC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/accessorTree/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,qBAAqB,CAAA;AACnC,cAAc,2BAA2B,CAAA;AACzC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,2BAA2B,CAAA;AACzC,cAAc,wBAAwB,CAAA;AACtC,cAAc,2BAA2B,CAAA;AACzC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAccessorTreeState.d.ts","sourceRoot":"","sources":["../../../src/accessorTree/useAccessorTreeState.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB,uDAMhC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { AccessorTreeState } from './AccessorTreeState';
|
|
2
2
|
import type { AccessorTreeStateOptions } from './AccessorTreeStateOptions';
|
|
3
|
-
export declare const useDataBinding: ({ nodeTree,
|
|
3
|
+
export declare const useDataBinding: ({ nodeTree, refreshOnPersist, }: AccessorTreeStateOptions) => AccessorTreeState;
|
|
4
4
|
//# sourceMappingURL=useDataBinding.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDataBinding.d.ts","sourceRoot":"","sources":["../../../src/accessorTree/useDataBinding.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAQ1E,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"useDataBinding.d.ts","sourceRoot":"","sources":["../../../src/accessorTree/useDataBinding.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAQ1E,eAAO,MAAM,cAAc,oCAGxB,wBAAwB,KAAG,iBA0D7B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BindingConfig.d.ts","sourceRoot":"","sources":["../../../src/accessors/BindingConfig.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC7B,uBAAuB,EAAE,MAAM,CAAA;IAC/B,wBAAwB,EAAE,MAAM,CAAA;IAChC,yBAAyB,EAAE,MAAM,CAAA;IACjC,kBAAkB,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"BindingConfig.d.ts","sourceRoot":"","sources":["../../../src/accessors/BindingConfig.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC7B,uBAAuB,EAAE,MAAM,CAAA;IAC/B,wBAAwB,EAAE,MAAM,CAAA;IAChC,yBAAyB,EAAE,MAAM,CAAA;IACjC,kBAAkB,EAAE,MAAM,CAAA;CAC1B"}
|
|
@@ -12,7 +12,7 @@ import type { PersistErrorOptions } from './PersistErrorOptions';
|
|
|
12
12
|
import type { PersistSuccessOptions } from './PersistSuccessOptions';
|
|
13
13
|
import type { EntityRealmState } from '../core/state';
|
|
14
14
|
declare class EntityAccessor implements Errorable {
|
|
15
|
-
private readonly
|
|
15
|
+
private readonly state;
|
|
16
16
|
private readonly operations;
|
|
17
17
|
private readonly runtimeId;
|
|
18
18
|
readonly key: EntityRealmKey;
|
|
@@ -23,9 +23,9 @@ declare class EntityAccessor implements Errorable {
|
|
|
23
23
|
readonly errors: ErrorAccessor | undefined;
|
|
24
24
|
readonly environment: Environment;
|
|
25
25
|
readonly getAccessor: EntityAccessor.GetEntityAccessor;
|
|
26
|
-
constructor(
|
|
26
|
+
constructor(state: EntityRealmState, operations: EntityOperations, runtimeId: RuntimeId, key: EntityRealmKey, // ⚠️ This is *NOT* the id! ⚠️
|
|
27
27
|
name: EntityName, fieldData: EntityAccessor.FieldData, dataFromServer: SingleEntityPersistedData | undefined, hasUnpersistedChanges: boolean, errors: ErrorAccessor | undefined, environment: Environment, getAccessor: EntityAccessor.GetEntityAccessor);
|
|
28
|
-
get idOnServer():
|
|
28
|
+
get idOnServer(): EntityId | undefined;
|
|
29
29
|
/**
|
|
30
30
|
* Note that for entities that don't yet exist on server this will return a dummy id.
|
|
31
31
|
*/
|
|
@@ -48,15 +48,15 @@ declare class EntityAccessor implements Errorable {
|
|
|
48
48
|
getField<Value extends FieldValue = FieldValue>(field: SugaredRelativeSingleField | string): FieldAccessor<Value>;
|
|
49
49
|
getEntity(entity: SugaredRelativeSingleEntity | string): EntityAccessor;
|
|
50
50
|
getEntityList(entityList: SugaredRelativeEntityList | string): EntityListAccessor;
|
|
51
|
-
getKeyConnectedOnServer(entity: SugaredRelativeSingleEntity | string): string | null;
|
|
52
51
|
/**
|
|
53
52
|
* @see EntityAccessor.getField
|
|
54
53
|
*/
|
|
55
54
|
getRelativeSingleField<Value extends FieldValue = FieldValue>(field: RelativeSingleField): FieldAccessor<Value>;
|
|
56
55
|
getRelativeSingleEntity(relativeSingleEntity: RelativeSingleEntity): EntityAccessor;
|
|
57
56
|
getRelativeEntityList(entityList: RelativeEntityList): EntityListAccessor;
|
|
57
|
+
getParent(): EntityAccessor | EntityListAccessor | undefined;
|
|
58
|
+
getMarker(): import("../markers").HasOneRelationMarker | import("../markers").HasManyRelationMarker | import("../markers").EntityListSubTreeMarker | import("../markers").EntitySubTreeMarker;
|
|
58
59
|
private getAccessorByPlaceholder;
|
|
59
|
-
private getPersistedKeyByPlaceholder;
|
|
60
60
|
}
|
|
61
61
|
declare namespace EntityAccessor {
|
|
62
62
|
interface FieldDatum {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityAccessor.d.ts","sourceRoot":"","sources":["../../../src/accessors/EntityAccessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"EntityAccessor.d.ts","sourceRoot":"","sources":["../../../src/accessors/EntityAccessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAA;AAEtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MA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,CACnC,WAAW,EAAE,iBAAiB,EAC9B,OAAO,EAAE,qBAAqB,KAC1B,IAAI,GAAG,OAAO,CAAC,IAAI,GAAG,qBAAqB,CAAC,CAAA;IAEjD,UAAiB,6BAA6B;QAC7C,aAAa,EAAE,oBAAoB,CAAA;QACnC,YAAY,EAAE,mBAAmB,CAAA;QACjC,gBAAgB,EAAE,cAAc,CAAA;QAChC,YAAY,EAAE,mBAAmB,CAAA;QACjC,cAAc,EAAE,qBAAqB,CAAA;QACrC,MAAM,EAAE,cAAc,CAAA;KACtB;IACD,UAAiB,sBAAuB,SAAQ,6BAA6B;QAC5E,UAAU,EAAE,mBAAmB,CAAA;KAC/B;IACD,KAAY,eAAe,GAAG,MAAM,sBAAsB,CAAA;CAC1D;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -11,7 +11,7 @@ import type { PersistSuccessOptions } from './PersistSuccessOptions';
|
|
|
11
11
|
import type { EntityListState } from '../core/state';
|
|
12
12
|
import { RuntimeId } from '../accessorTree';
|
|
13
13
|
declare class EntityListAccessor implements Errorable {
|
|
14
|
-
private readonly
|
|
14
|
+
private readonly state;
|
|
15
15
|
private readonly operations;
|
|
16
16
|
private readonly _children;
|
|
17
17
|
private readonly _idsPersistedOnServer;
|
|
@@ -19,9 +19,9 @@ declare class EntityListAccessor implements Errorable {
|
|
|
19
19
|
readonly errors: ErrorAccessor | undefined;
|
|
20
20
|
readonly environment: Environment;
|
|
21
21
|
readonly getAccessor: EntityListAccessor.GetEntityListAccessor;
|
|
22
|
-
constructor(
|
|
22
|
+
constructor(state: EntityListState, operations: ListOperations, _children: ReadonlyMap<EntityId, {
|
|
23
23
|
getAccessor: EntityAccessor.GetEntityAccessor;
|
|
24
|
-
}>, _idsPersistedOnServer: ReadonlySet<
|
|
24
|
+
}>, _idsPersistedOnServer: ReadonlySet<EntityId>, hasUnpersistedChanges: boolean, errors: ErrorAccessor | undefined, environment: Environment, getAccessor: EntityListAccessor.GetEntityListAccessor);
|
|
25
25
|
/**
|
|
26
26
|
* Returns all entity keys that are on the list.
|
|
27
27
|
* **KEYS ARE NOT IDS!**
|
|
@@ -33,7 +33,7 @@ declare class EntityListAccessor implements Errorable {
|
|
|
33
33
|
* This will only contain the ids that the server knows about. Not necessarily the ids that have been added on
|
|
34
34
|
* the list since the last server query.
|
|
35
35
|
*/
|
|
36
|
-
get idsPersistedOnServer(): Set<
|
|
36
|
+
get idsPersistedOnServer(): Set<EntityId>;
|
|
37
37
|
[Symbol.iterator](): IterableIterator<EntityAccessor>;
|
|
38
38
|
hasEntityId(id: EntityId): boolean;
|
|
39
39
|
isEmpty(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityListAccessor.d.ts","sourceRoot":"","sources":["../../../src/accessors/EntityListAccessor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACzC,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACjE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAC1E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,cAAM,kBAAmB,YAAW,SAA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CAAC,SAAS,CAAC;KAC7F,CAAA;IAED,UAAiB,iCAAiC;QACjD,aAAa,EAAE,oBAAoB,CAAA;QACnC,YAAY,EAAE,mBAAmB,CAAA;QACjC,YAAY,EAAE,mBAAmB,CAAA;QACjC,cAAc,EAAE,qBAAqB,CAAA;QACrC,MAAM,EAAE,cAAc,CAAA;KACtB;IACD,UAAiB,0BAA2B,SAAQ,iCAAiC;QACpF,UAAU,EAAE,mBAAmB,CAAA;KAC/B;IACD,KAAY,mBAAmB,GAAG,MAAM,0BAA0B,CAAA;CAClE;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
|
|
@@ -7,7 +7,7 @@ import type { Errorable } from './Errorable';
|
|
|
7
7
|
import { ErrorAccessor } from './ErrorAccessor';
|
|
8
8
|
import type { SchemaColumn } from '../core/schema/SchemaColumn';
|
|
9
9
|
declare class FieldAccessor<Value extends FieldValue = FieldValue> implements Errorable {
|
|
10
|
-
private readonly
|
|
10
|
+
private readonly state;
|
|
11
11
|
private readonly operations;
|
|
12
12
|
readonly fieldName: FieldName;
|
|
13
13
|
readonly value: Value | null;
|
|
@@ -18,7 +18,7 @@ declare class FieldAccessor<Value extends FieldValue = FieldValue> implements Er
|
|
|
18
18
|
private readonly touchLog;
|
|
19
19
|
readonly getAccessor: FieldAccessor.GetFieldAccessor<Value>;
|
|
20
20
|
readonly schema: SchemaColumn;
|
|
21
|
-
constructor(
|
|
21
|
+
constructor(state: FieldState<Value>, operations: FieldOperations, fieldName: FieldName, value: Value | null, valueOnServer: Value | null, defaultValue: Value | undefined, errors: ErrorAccessor | undefined, hasUnpersistedChanges: boolean, touchLog: ReadonlySet<string> | undefined, getAccessor: FieldAccessor.GetFieldAccessor<Value>, schema: SchemaColumn);
|
|
22
22
|
addError(error: ErrorAccessor.Error | string): () => void;
|
|
23
23
|
clearErrors(): void;
|
|
24
24
|
addEventListener<Type extends keyof FieldAccessor.FieldEventListenerMap<Value>>(event: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldAccessor.d.ts","sourceRoot":"","sources":["../../../src/accessors/FieldAccessor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAE/D,cAAM,aAAa,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,CAAE,YAAW,SAAS;IAE7E,OAAO,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"FieldAccessor.d.ts","sourceRoot":"","sources":["../../../src/accessors/FieldAccessor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAE/D,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AkB,CAAC,KAAK,CAAC,CAAA;KACrC;IACD,KAAY,cAAc,GAAG,MAAM,qBAAqB,CAAA;CACxD;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -3,6 +3,7 @@ import type { MutationDataResponse } from '../accessorTree';
|
|
|
3
3
|
import { EventManager } from './EventManager';
|
|
4
4
|
import { StateNode } from './state';
|
|
5
5
|
import type { TreeStore } from './TreeStore';
|
|
6
|
+
import { SubMutationOperation } from './MutationGenerator';
|
|
6
7
|
export declare class AccessorErrorManager {
|
|
7
8
|
private readonly eventManager;
|
|
8
9
|
private readonly treeStore;
|
|
@@ -13,7 +14,7 @@ export declare class AccessorErrorManager {
|
|
|
13
14
|
getErrors(): ErrorAccessor.Error[];
|
|
14
15
|
clearErrors(): void;
|
|
15
16
|
clearErrorsByState(state: StateNode): void;
|
|
16
|
-
replaceErrors(data: MutationDataResponse): void;
|
|
17
|
+
replaceErrors(data: MutationDataResponse, operations: SubMutationOperation[]): void;
|
|
17
18
|
addError(state: StateNode, error: ErrorAccessor.Error): () => void;
|
|
18
19
|
private addSeveralErrors;
|
|
19
20
|
private setRootStateErrors;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccessorErrorManager.d.ts","sourceRoot":"","sources":["../../../src/core/AccessorErrorManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,EAAkB,oBAAoB,EAAmB,MAAM,iBAAiB,CAAA;AAE5F,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAsD,SAAS,EAAE,MAAM,SAAS,CAAA;AACvF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"AccessorErrorManager.d.ts","sourceRoot":"","sources":["../../../src/core/AccessorErrorManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,EAAkB,oBAAoB,EAAmB,MAAM,iBAAiB,CAAA;AAE5F,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAsD,SAAS,EAAE,MAAM,SAAS,CAAA;AACvF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAE1D,qBAAa,oBAAoB;IASb,OAAO,CAAC,QAAQ,CAAC,YAAY;IAAgB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAR1F,OAAO,CAAC,aAAa,CAAsD;IAE3E,OAAO,CAAC,aAAa,CAIjB;gBAEgC,YAAY,EAAE,YAAY,EAAmB,SAAS,EAAE,SAAS;IAE9F,SAAS;IAIT,SAAS,IAAI,aAAa,CAAC,KAAK,EAAE;IAIlC,WAAW;IAUX,kBAAkB,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAW1C,aAAa,CAAC,IAAI,EAAE,oBAAoB,EAAE,UAAU,EAAE,oBAAoB,EAAE;IAa5E,QAAQ,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,aAAa,CAAC,KAAK,GAAG,MAAM,IAAI;IA8BzE,OAAO,CAAC,gBAAgB;IAaxB,OAAO,CAAC,kBAAkB;IAsB1B,OAAO,CAAC,oBAAoB;IAgD5B,OAAO,CAAC,wBAAwB;IA2BhC,OAAO,CAAC,aAAa;CAiCrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/core/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAEjD,qBAAa,MAAM;IAClB,OAAO,CAAC,MAAM,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/core/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAEjD,qBAAa,MAAM;IAClB,OAAO,CAAC,MAAM,CAAC,aAAa,CAK3B;IAED,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAe;gBAEnB,MAAM,GAAE,OAAO,CAAC,aAAa,CAAM;IAO/C,QAAQ,CAAC,IAAI,SAAS,MAAM,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,aAAa,CAAC,IAAI,CAAC;IAI3E,QAAQ,CAAC,IAAI,SAAS,MAAM,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,GAAG,IAAI;CAI/F"}
|
|
@@ -4,15 +4,16 @@ import { ExtendTreeOptions, TreeRootAccessor } from '../accessors';
|
|
|
4
4
|
import { RequestError, SuccessfulPersistResult } from '../accessorTree';
|
|
5
5
|
import type { Environment } from '../dao';
|
|
6
6
|
import type { TreeRootId } from '../treeParameters';
|
|
7
|
+
import { TreeStore } from './TreeStore';
|
|
7
8
|
export declare class DataBinding {
|
|
8
9
|
private readonly contentApiClient;
|
|
9
10
|
private readonly systemApiClient;
|
|
10
11
|
private readonly tenantApiClient;
|
|
12
|
+
private readonly treeStore;
|
|
11
13
|
private readonly environment;
|
|
12
14
|
private readonly onUpdate;
|
|
13
15
|
private readonly onError;
|
|
14
16
|
private readonly onPersistSuccess;
|
|
15
|
-
private static readonly schemaLoadCache;
|
|
16
17
|
private readonly accessorErrorManager;
|
|
17
18
|
private readonly batchUpdatesOptions;
|
|
18
19
|
private readonly asyncBatchUpdatesOptions;
|
|
@@ -22,15 +23,13 @@ export declare class DataBinding {
|
|
|
22
23
|
private readonly eventManager;
|
|
23
24
|
private readonly stateInitializer;
|
|
24
25
|
private readonly treeAugmenter;
|
|
25
|
-
|
|
26
|
-
constructor(contentApiClient: GraphQlClient, systemApiClient: GraphQlClient, tenantApiClient: GraphQlClient, environment: Environment, onUpdate: (newData: TreeRootAccessor) => void, onError: (error: RequestError) => void, onPersistSuccess: (result: SuccessfulPersistResult) => void);
|
|
26
|
+
constructor(contentApiClient: GraphQlClient, systemApiClient: GraphQlClient, tenantApiClient: GraphQlClient, treeStore: TreeStore, environment: Environment, onUpdate: (newData: TreeRootAccessor, binding: DataBinding) => void, onError: (error: RequestError, binding: DataBinding) => void, onPersistSuccess: (result: SuccessfulPersistResult, binding: DataBinding) => void);
|
|
27
27
|
private resolvedOnUpdate;
|
|
28
28
|
private pendingExtensions;
|
|
29
29
|
extendTree(newFragment: ReactNode, options?: ExtendTreeOptions): Promise<TreeRootId | undefined>;
|
|
30
30
|
private flushBatchedTreeExtensions;
|
|
31
31
|
private fetchPersistedData;
|
|
32
32
|
private resetTreeAfterSuccessfulPersist;
|
|
33
|
-
private getOrLoadSchema;
|
|
34
33
|
private static getNextTreeRootIdSeed;
|
|
35
34
|
private getNewTreeRootId;
|
|
36
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataBinding.d.ts","sourceRoot":"","sources":["../../../src/core/DataBinding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAkD,MAAM,mBAAmB,CAAA;AACtG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAIN,iBAAiB,EAGjB,gBAAgB,EAChB,MAAM,cAAc,CAAA;AACrB,OAAO,EAIN,YAAY,EACZ,uBAAuB,EACvB,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAEzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"DataBinding.d.ts","sourceRoot":"","sources":["../../../src/core/DataBinding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAkD,MAAM,mBAAmB,CAAA;AACtG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC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W,KAAK,IAAI,EACnE,OAAO,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,KAAK,IAAI,EAC5D,gBAAgB,EAAE,CAAC,MAAM,EAAE,uBAAuB,EAAE,OAAO,EAAE,WAAW,KAAK,IAAI;IA0LnG,OAAO,CAAC,gBAAgB,CAEvB;IAOD,OAAO,CAAC,iBAAiB,CAOX;IAED,UAAU,CAAC,WAAW,EAAE,SAAS,EAAE,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;YAqCnG,0BAA0B;YA4C1B,kBAAkB;IAkChC,OAAO,CAAC,+BAA+B;IAuCvC,OAAO,CAAC,MAAM,CAAC,qBAAqB,CAGhC;IAEJ,OAAO,CAAC,gBAAgB;CAOxB;AAED,eAAO,MAAM,wBAAwB,eAAoB,CAAA"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
export declare class DirtinessTracker {
|
|
2
2
|
private changesCount;
|
|
3
|
-
private
|
|
4
|
-
|
|
5
|
-
getTotalChangesCount(): number;
|
|
3
|
+
private touchedCount;
|
|
4
|
+
getTotalTouchCount(): number;
|
|
6
5
|
hasChanges(): boolean;
|
|
7
6
|
reset(): void;
|
|
8
|
-
increment(): void;
|
|
9
|
-
decrement(): void;
|
|
10
7
|
increaseBy(delta: number): void;
|
|
11
8
|
}
|
|
12
9
|
//# sourceMappingURL=DirtinessTracker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DirtinessTracker.d.ts","sourceRoot":"","sources":["../../../src/core/DirtinessTracker.ts"],"names":[],"mappings":"AAAA,qBAAa,gBAAgB;IAC5B,OAAO,CAAC,YAAY,CAAI;IACxB,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"DirtinessTracker.d.ts","sourceRoot":"","sources":["../../../src/core/DirtinessTracker.ts"],"names":[],"mappings":"AAAA,qBAAa,gBAAgB;IAC5B,OAAO,CAAC,YAAY,CAAI;IACxB,OAAO,CAAC,YAAY,CAAI;IAEjB,kBAAkB;IAIlB,UAAU;IAIV,KAAK;IAIL,UAAU,CAAC,KAAK,EAAE,MAAM;CAI/B"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { ErrorAccessor } from '../accessors';
|
|
2
2
|
import type { MutationDataResponse } from '../accessorTree';
|
|
3
|
-
import type { PlaceholderName } from '../treeParameters';
|
|
3
|
+
import type { EntityId, FieldName, PlaceholderName } from '../treeParameters';
|
|
4
|
+
import { SubMutationOperation } from './MutationGenerator';
|
|
4
5
|
declare class ErrorsPreprocessor {
|
|
5
6
|
private readonly requestResponse;
|
|
6
|
-
|
|
7
|
+
private readonly operations;
|
|
8
|
+
constructor(requestResponse: MutationDataResponse, operations: SubMutationOperation[]);
|
|
7
9
|
preprocess(): ErrorsPreprocessor.ErrorTreeRoot;
|
|
8
10
|
private processMutationResponse;
|
|
9
11
|
private getErrorNode;
|
|
@@ -22,7 +24,7 @@ declare namespace ErrorsPreprocessor {
|
|
|
22
24
|
}
|
|
23
25
|
interface ErrorINode extends BaseErrorNode {
|
|
24
26
|
nodeType: 'iNode';
|
|
25
|
-
children: Map<
|
|
27
|
+
children: Map<FieldName | EntityId, ErrorNode>;
|
|
26
28
|
}
|
|
27
29
|
type ErrorNode = ErrorINode | LeafErrorNode;
|
|
28
30
|
type ErrorTreeRoot = Map<PlaceholderName, ErrorNode>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorsPreprocessor.d.ts","sourceRoot":"","sources":["../../../src/core/ErrorsPreprocessor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,KAAK,EAAkB,oBAAoB,EAAqC,MAAM,iBAAiB,CAAA;AAC9G,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"ErrorsPreprocessor.d.ts","sourceRoot":"","sources":["../../../src/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6 +51,6 @@ export declare class EventManager {
|
|
|
51
51
|
key?: string;
|
|
52
52
|
}, listenerArgs: Parameters<Exclude<EventListenerTypes[1][EventType], undefined>>): Array<() => ReturnType<Exclude<EventListenerTypes[1][EventType], undefined>>> | undefined;
|
|
53
53
|
private handleRejections;
|
|
54
|
-
private
|
|
54
|
+
private validateWithoutChanges;
|
|
55
55
|
}
|
|
56
56
|
//# sourceMappingURL=EventManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventManager.d.ts","sourceRoot":"","sources":["../../../src/core/EventManager.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,wBAAwB,EACxB,mBAAmB,EAInB,mBAAmB,EACnB,qBAAqB,EACrB,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAA;AAE9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAExD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAEN,gBAAgB,EAMhB,SAAS,EACT,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,qBAAa,YAAY;IAkBvB,OAAO,CAAC,QAAQ,CAAC,wBAAwB;IACzC,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACpC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAtB3B,gBAAuB,qBAAqB,KAAI;IAE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AS,SAAS,kBAAkB,CAAC,CAAC,CAAC,EACtC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,GAAG,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC,GAAG,SAAS;IASzH,mBAAmB,CACzB,KAAK,SAAS,SAAS,EACvB,kBAAkB,SACjB,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,EAAE,SAAS,CAAC,SAAS,mBAAmB,CAAC,MAAM,IAAI,EAAE,MAAM,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,GAAG,KAAK,EACrH,SAAS,SAAS,kBAAkB,CAAC,CAAC,CAAC,EAEvC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,EACxC,YAAY,EAAE,UAAU,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC,GAC5E,KAAK,CAAC,MAAM,UAAU,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS;IAU5F,OAAO,CAAC,gBAAgB;IAexB,OAAO,CAAC,sBAAsB;CAa9B"}
|
|
@@ -1,8 +1,31 @@
|
|
|
1
|
+
import { EntityFieldMarkers } from '../markers';
|
|
2
|
+
import type { EntityId, PlaceholderName } from '../treeParameters';
|
|
1
3
|
import type { TreeStore } from './TreeStore';
|
|
4
|
+
export declare type SubMutationOperation = {
|
|
5
|
+
alias: string;
|
|
6
|
+
subTreePlaceholder: PlaceholderName;
|
|
7
|
+
subTreeType: 'list' | 'single';
|
|
8
|
+
} & ({
|
|
9
|
+
type: 'delete';
|
|
10
|
+
id: EntityId;
|
|
11
|
+
} | {
|
|
12
|
+
type: 'update';
|
|
13
|
+
markers: EntityFieldMarkers;
|
|
14
|
+
id: EntityId;
|
|
15
|
+
} | {
|
|
16
|
+
type: 'create';
|
|
17
|
+
markers: EntityFieldMarkers;
|
|
18
|
+
id: EntityId;
|
|
19
|
+
});
|
|
20
|
+
export declare type PersistMutationResult = {
|
|
21
|
+
query: string;
|
|
22
|
+
operations: SubMutationOperation[];
|
|
23
|
+
};
|
|
2
24
|
export declare class MutationGenerator {
|
|
3
25
|
private readonly treeStore;
|
|
26
|
+
private aliasCounter;
|
|
4
27
|
constructor(treeStore: TreeStore);
|
|
5
|
-
getPersistMutation():
|
|
28
|
+
getPersistMutation(): PersistMutationResult | undefined;
|
|
6
29
|
private addSubMutation;
|
|
7
30
|
private getNodeFragmentName;
|
|
8
31
|
private addDeleteMutation;
|
|
@@ -14,5 +37,6 @@ export declare class MutationGenerator {
|
|
|
14
37
|
private registerCreateEntityListPart;
|
|
15
38
|
private registerUpdateMutationPart;
|
|
16
39
|
private transformFieldValue;
|
|
40
|
+
private createAlias;
|
|
17
41
|
}
|
|
18
42
|
//# sourceMappingURL=MutationGenerator.d.ts.map
|