@contember/binding 1.2.6 → 1.3.0-alpha.2
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/BindingError.cjs +10 -0
- package/dist/development/BindingError.cjs.map +1 -0
- package/dist/development/accessorTree/NormalizedPersistedData.cjs +10 -0
- package/dist/development/accessorTree/NormalizedPersistedData.cjs.map +1 -0
- package/dist/development/accessorTree/RuntimeId.cjs +64 -0
- package/dist/development/accessorTree/RuntimeId.cjs.map +1 -0
- package/dist/development/accessors/EntityAccessor.cjs +169 -0
- package/dist/development/accessors/EntityAccessor.cjs.map +1 -0
- package/dist/development/accessors/EntityAccessor.js +1 -1
- package/dist/development/accessors/EntityListAccessor.cjs +101 -0
- package/dist/development/accessors/EntityListAccessor.cjs.map +1 -0
- package/dist/development/accessors/ErrorAccessor.cjs +16 -0
- package/dist/development/accessors/ErrorAccessor.cjs.map +1 -0
- package/dist/development/accessors/FieldAccessor.cjs +59 -0
- package/dist/development/accessors/FieldAccessor.cjs.map +1 -0
- package/dist/development/accessors/TreeRootAccessor.cjs +14 -0
- package/dist/development/accessors/TreeRootAccessor.cjs.map +1 -0
- package/dist/development/accessors/TreeRootAccessor.js.map +1 -1
- package/dist/development/bindingTypes.cjs +9 -0
- package/dist/development/bindingTypes.cjs.map +1 -0
- package/dist/development/core/AccessorErrorManager.cjs +207 -0
- package/dist/development/core/AccessorErrorManager.cjs.map +1 -0
- package/dist/development/core/AccessorErrorManager.js +5 -4
- package/dist/development/core/AccessorErrorManager.js.map +1 -1
- package/dist/development/core/Config.cjs +32 -0
- package/dist/development/core/Config.cjs.map +1 -0
- package/dist/development/core/DataBinding.cjs +352 -0
- package/dist/development/core/DataBinding.cjs.map +1 -0
- package/dist/development/core/DataBinding.js +53 -46
- package/dist/development/core/DataBinding.js.map +1 -1
- package/dist/development/core/DirtinessTracker.cjs +29 -0
- package/dist/development/core/DirtinessTracker.cjs.map +1 -0
- package/dist/development/core/ErrorsPreprocessor.cjs +181 -0
- package/dist/development/core/ErrorsPreprocessor.cjs.map +1 -0
- package/dist/development/core/ErrorsPreprocessor.js +16 -16
- package/dist/development/core/ErrorsPreprocessor.js.map +1 -1
- package/dist/development/core/EventManager.cjs +440 -0
- package/dist/development/core/EventManager.cjs.map +1 -0
- package/dist/development/core/EventManager.js +7 -5
- package/dist/development/core/EventManager.js.map +1 -1
- package/dist/development/core/MarkerComparator.cjs +79 -0
- package/dist/development/core/MarkerComparator.cjs.map +1 -0
- package/dist/development/core/MarkerMerger.cjs +252 -0
- package/dist/development/core/MarkerMerger.cjs.map +1 -0
- package/dist/development/core/MarkerMerger.js +2 -2
- package/dist/development/core/MutationGenerator.cjs +635 -0
- package/dist/development/core/MutationGenerator.cjs.map +1 -0
- package/dist/development/core/MutationGenerator.js +341 -294
- package/dist/development/core/MutationGenerator.js.map +1 -1
- package/dist/development/core/QueryGenerator.cjs +113 -0
- package/dist/development/core/QueryGenerator.cjs.map +1 -0
- package/dist/development/core/QueryGenerator.js +62 -75
- package/dist/development/core/QueryGenerator.js.map +1 -1
- package/dist/development/core/RealmKeyGenerator.cjs +47 -0
- package/dist/development/core/RealmKeyGenerator.cjs.map +1 -0
- package/dist/development/core/RequestResponseNormalizer.cjs +125 -0
- package/dist/development/core/RequestResponseNormalizer.cjs.map +1 -0
- package/dist/development/core/StateInitializer.cjs +389 -0
- package/dist/development/core/StateInitializer.cjs.map +1 -0
- package/dist/development/core/StateInitializer.js +2 -2
- package/dist/development/core/StateInitializer.js.map +1 -1
- package/dist/development/core/TreeAugmenter.cjs +213 -0
- package/dist/development/core/TreeAugmenter.cjs.map +1 -0
- package/dist/development/core/TreeFilterGenerator.cjs +83 -0
- package/dist/development/core/TreeFilterGenerator.cjs.map +1 -0
- package/dist/development/core/TreeParameterMerger.cjs +304 -0
- package/dist/development/core/TreeParameterMerger.cjs.map +1 -0
- package/dist/development/core/TreeParameterMerger.js +8 -0
- package/dist/development/core/TreeParameterMerger.js.map +1 -1
- package/dist/development/core/TreeStore.cjs +182 -0
- package/dist/development/core/TreeStore.cjs.map +1 -0
- package/dist/development/core/TreeStore.js +1 -1
- package/dist/development/core/VariableInputTransformer.cjs +24 -0
- package/dist/development/core/VariableInputTransformer.cjs.map +1 -0
- package/dist/development/core/exceptions/ErrorLocator.cjs +62 -0
- package/dist/development/core/exceptions/ErrorLocator.cjs.map +1 -0
- package/dist/development/core/exceptions/LocalizedBindingError.cjs +14 -0
- package/dist/development/core/exceptions/LocalizedBindingError.cjs.map +1 -0
- package/dist/development/core/exceptions/MarkerSugarer.cjs +56 -0
- package/dist/development/core/exceptions/MarkerSugarer.cjs.map +1 -0
- package/dist/development/core/exceptions/TreeParameterSugarer.cjs +33 -0
- package/dist/development/core/exceptions/TreeParameterSugarer.cjs.map +1 -0
- package/dist/development/core/factories/createBatchUpdatesOptions.cjs +20 -0
- package/dist/development/core/factories/createBatchUpdatesOptions.cjs.map +1 -0
- package/dist/development/core/operations/EntityOperations.cjs +238 -0
- package/dist/development/core/operations/EntityOperations.cjs.map +1 -0
- package/dist/development/core/operations/EntityOperations.js +1 -1
- package/dist/development/core/operations/FieldOperations.cjs +96 -0
- package/dist/development/core/operations/FieldOperations.cjs.map +1 -0
- package/dist/development/core/operations/FieldOperations.js +1 -1
- package/dist/development/core/operations/ListOperations.cjs +159 -0
- package/dist/development/core/operations/ListOperations.cjs.map +1 -0
- package/dist/development/core/operations/OperationsHelpers.cjs +85 -0
- package/dist/development/core/operations/OperationsHelpers.cjs.map +1 -0
- package/dist/development/core/requestAliases/MutationAlias.cjs +14 -0
- package/dist/development/core/requestAliases/MutationAlias.cjs.map +1 -0
- package/dist/development/core/schema/Schema.cjs +39 -0
- package/dist/development/core/schema/Schema.cjs.map +1 -0
- package/dist/development/core/schema/SchemaLoader.cjs +28 -0
- package/dist/development/core/schema/SchemaLoader.cjs.map +1 -0
- package/dist/development/core/schema/SchemaLoader.js +2 -2
- package/dist/development/core/schema/SchemaLoader.js.map +1 -1
- package/dist/development/core/schema/SchemaPreprocessor.cjs +38 -0
- package/dist/development/core/schema/SchemaPreprocessor.cjs.map +1 -0
- package/dist/development/core/state/StateIterator.cjs +100 -0
- package/dist/development/core/state/StateIterator.cjs.map +1 -0
- package/dist/development/core/state/getEntityMarker.cjs +5 -0
- package/dist/development/core/state/getEntityMarker.cjs.map +1 -0
- package/dist/development/core/utils/createQueryBuilder.cjs +32 -0
- package/dist/development/core/utils/createQueryBuilder.cjs.map +1 -0
- package/dist/development/core/utils/createQueryBuilder.js +32 -0
- package/dist/development/core/utils/createQueryBuilder.js.map +1 -0
- package/dist/development/core/utils/getCombinedSignal.cjs +33 -0
- package/dist/development/core/utils/getCombinedSignal.cjs.map +1 -0
- package/dist/development/dao/Environment.cjs +213 -0
- package/dist/development/dao/Environment.cjs.map +1 -0
- package/dist/development/dao/Environment.js.map +1 -1
- package/dist/development/dao/TreeNodeEnvironmentFactory.cjs +89 -0
- package/dist/development/dao/TreeNodeEnvironmentFactory.cjs.map +1 -0
- package/dist/development/dao/VariableFieldValue.cjs +9 -0
- package/dist/development/dao/VariableFieldValue.cjs.map +1 -0
- package/dist/development/fieldHelpers/helpers/FieldHelper.cjs +17 -0
- package/dist/development/fieldHelpers/helpers/FieldHelper.cjs.map +1 -0
- package/dist/development/fieldHelpers/helpers/TemporalFieldHelper.cjs +18 -0
- package/dist/development/fieldHelpers/helpers/TemporalFieldHelper.cjs.map +1 -0
- package/dist/development/fieldHelpers/helpers/UuidFieldHelper.cjs +16 -0
- package/dist/development/fieldHelpers/helpers/UuidFieldHelper.cjs.map +1 -0
- package/dist/development/index.cjs +124 -0
- package/dist/development/index.cjs.map +1 -0
- package/dist/development/index.js +18 -135
- package/dist/development/index.js.map +1 -1
- package/dist/development/markers/EntityFieldMarkersContainer.cjs +41 -0
- package/dist/development/markers/EntityFieldMarkersContainer.cjs.map +1 -0
- package/dist/development/markers/EntityFieldsWithHoistablesMarker.cjs +11 -0
- package/dist/development/markers/EntityFieldsWithHoistablesMarker.cjs.map +1 -0
- package/dist/development/markers/EntityListSubTreeMarker.cjs +23 -0
- package/dist/development/markers/EntityListSubTreeMarker.cjs.map +1 -0
- package/dist/development/markers/EntitySubTreeMarker.cjs +23 -0
- package/dist/development/markers/EntitySubTreeMarker.cjs.map +1 -0
- package/dist/development/markers/FieldMarker.cjs +20 -0
- package/dist/development/markers/FieldMarker.cjs.map +1 -0
- package/dist/development/markers/HasManyRelationMarker.cjs +29 -0
- package/dist/development/markers/HasManyRelationMarker.cjs.map +1 -0
- package/dist/development/markers/HasOneRelationMarker.cjs +23 -0
- package/dist/development/markers/HasOneRelationMarker.cjs.map +1 -0
- package/dist/development/markers/MarkerTreeRoot.cjs +10 -0
- package/dist/development/markers/MarkerTreeRoot.cjs.map +1 -0
- package/dist/development/markers/ParentEntityMarker.cjs +10 -0
- package/dist/development/markers/ParentEntityMarker.cjs.map +1 -0
- package/dist/development/markers/PlaceholderGenerator.cjs +23 -0
- package/dist/development/markers/PlaceholderGenerator.cjs.map +1 -0
- package/dist/development/markers/PlaceholderParametersGenerator.cjs +62 -0
- package/dist/development/markers/PlaceholderParametersGenerator.cjs.map +1 -0
- package/dist/development/queryLanguage/CacheStore.cjs +47 -0
- package/dist/development/queryLanguage/CacheStore.cjs.map +1 -0
- package/dist/development/queryLanguage/CacheStore.js +2 -1
- package/dist/development/queryLanguage/CacheStore.js.map +1 -1
- package/dist/development/queryLanguage/MarkerFactory.cjs +200 -0
- package/dist/development/queryLanguage/MarkerFactory.cjs.map +1 -0
- package/dist/development/queryLanguage/MarkerFactory.js +1 -1
- package/dist/development/queryLanguage/Parser.cjs +728 -0
- package/dist/development/queryLanguage/Parser.cjs.map +1 -0
- package/dist/development/queryLanguage/Parser.js +64 -23
- package/dist/development/queryLanguage/Parser.js.map +1 -1
- package/dist/development/queryLanguage/QueryLanguage.cjs +520 -0
- package/dist/development/queryLanguage/QueryLanguage.cjs.map +1 -0
- package/dist/development/queryLanguage/QueryLanguage.js +3 -1
- package/dist/development/queryLanguage/QueryLanguage.js.map +1 -1
- package/dist/development/queryLanguage/QueryLanguageError.cjs +6 -0
- package/dist/development/queryLanguage/QueryLanguageError.cjs.map +1 -0
- package/dist/development/queryLanguage/tokenList.cjs +150 -0
- package/dist/development/queryLanguage/tokenList.cjs.map +1 -0
- package/dist/development/queryLanguage/tokenList.js +1 -1
- package/dist/development/queryLanguage/tokenList.js.map +1 -1
- package/dist/development/structures/BijectiveIndexedMap.cjs +120 -0
- package/dist/development/structures/BijectiveIndexedMap.cjs.map +1 -0
- package/dist/development/structures/LRUCache.cjs +35 -0
- package/dist/development/structures/LRUCache.cjs.map +1 -0
- package/dist/development/structures/WeakIdCache.cjs +33 -0
- package/dist/development/structures/WeakIdCache.cjs.map +1 -0
- package/dist/development/treeParameterHelpers/wrapFilterInHasOnes.cjs +22 -0
- package/dist/development/treeParameterHelpers/wrapFilterInHasOnes.cjs.map +1 -0
- package/dist/development/treeParameters/EntityCreationParameters.cjs +8 -0
- package/dist/development/treeParameters/EntityCreationParameters.cjs.map +1 -0
- package/dist/development/treeParameters/EntityListPreferences.cjs +7 -0
- package/dist/development/treeParameters/EntityListPreferences.cjs.map +1 -0
- package/dist/development/treeParameters/EventListenersStore.cjs +70 -0
- package/dist/development/treeParameters/EventListenersStore.cjs.map +1 -0
- package/dist/development/treeParameters/LeafField.cjs +7 -0
- package/dist/development/treeParameters/LeafField.cjs.map +1 -0
- package/dist/development/treeParameters/QualifiedEntityParameters.cjs +7 -0
- package/dist/development/treeParameters/QualifiedEntityParameters.cjs.map +1 -0
- package/dist/development/treeParameters/Relation.cjs +7 -0
- package/dist/development/treeParameters/Relation.cjs.map +1 -0
- package/dist/development/utils/Hashing.cjs +22 -0
- package/dist/development/utils/Hashing.cjs.map +1 -0
- package/dist/development/utils/TreeNodeUtils.cjs +77 -0
- package/dist/development/utils/TreeNodeUtils.cjs.map +1 -0
- package/dist/development/utils/assert.cjs +11 -0
- package/dist/development/utils/assert.cjs.map +1 -0
- package/dist/development/utils/assertNever.cjs +10 -0
- package/dist/development/utils/assertNever.cjs.map +1 -0
- package/dist/development/utils/generateEnumerabilityPreventingEntropy.cjs +7 -0
- package/dist/development/utils/generateEnumerabilityPreventingEntropy.cjs.map +1 -0
- package/dist/development/utils/isEmptyObject.cjs +12 -0
- package/dist/development/utils/isEmptyObject.cjs.map +1 -0
- package/dist/development/utils/ucfirst.cjs +5 -0
- package/dist/development/utils/ucfirst.cjs.map +1 -0
- package/dist/production/BindingError.cjs +10 -0
- package/dist/production/BindingError.cjs.map +1 -0
- package/dist/production/accessorTree/NormalizedPersistedData.cjs +10 -0
- package/dist/production/accessorTree/NormalizedPersistedData.cjs.map +1 -0
- package/dist/production/accessorTree/RuntimeId.cjs +64 -0
- package/dist/production/accessorTree/RuntimeId.cjs.map +1 -0
- package/dist/production/accessors/EntityAccessor.cjs +169 -0
- package/dist/production/accessors/EntityAccessor.cjs.map +1 -0
- package/dist/production/accessors/EntityAccessor.js +1 -1
- package/dist/production/accessors/EntityListAccessor.cjs +101 -0
- package/dist/production/accessors/EntityListAccessor.cjs.map +1 -0
- package/dist/production/accessors/ErrorAccessor.cjs +16 -0
- package/dist/production/accessors/ErrorAccessor.cjs.map +1 -0
- package/dist/production/accessors/FieldAccessor.cjs +59 -0
- package/dist/production/accessors/FieldAccessor.cjs.map +1 -0
- package/dist/production/accessors/TreeRootAccessor.cjs +14 -0
- package/dist/production/accessors/TreeRootAccessor.cjs.map +1 -0
- package/dist/production/accessors/TreeRootAccessor.js.map +1 -1
- package/dist/production/bindingTypes.cjs +9 -0
- package/dist/production/bindingTypes.cjs.map +1 -0
- package/dist/production/core/AccessorErrorManager.cjs +207 -0
- package/dist/production/core/AccessorErrorManager.cjs.map +1 -0
- package/dist/production/core/AccessorErrorManager.js +5 -4
- package/dist/production/core/AccessorErrorManager.js.map +1 -1
- package/dist/production/core/Config.cjs +32 -0
- package/dist/production/core/Config.cjs.map +1 -0
- package/dist/production/core/DataBinding.cjs +352 -0
- package/dist/production/core/DataBinding.cjs.map +1 -0
- package/dist/production/core/DataBinding.js +53 -46
- package/dist/production/core/DataBinding.js.map +1 -1
- package/dist/production/core/DirtinessTracker.cjs +29 -0
- package/dist/production/core/DirtinessTracker.cjs.map +1 -0
- package/dist/production/core/ErrorsPreprocessor.cjs +181 -0
- package/dist/production/core/ErrorsPreprocessor.cjs.map +1 -0
- package/dist/production/core/ErrorsPreprocessor.js +16 -16
- package/dist/production/core/ErrorsPreprocessor.js.map +1 -1
- package/dist/production/core/EventManager.cjs +414 -0
- package/dist/production/core/EventManager.cjs.map +1 -0
- package/dist/production/core/EventManager.js +7 -5
- package/dist/production/core/EventManager.js.map +1 -1
- package/dist/production/core/MarkerComparator.cjs +79 -0
- package/dist/production/core/MarkerComparator.cjs.map +1 -0
- package/dist/production/core/MarkerMerger.cjs +252 -0
- package/dist/production/core/MarkerMerger.cjs.map +1 -0
- package/dist/production/core/MarkerMerger.js +2 -2
- package/dist/production/core/MutationGenerator.cjs +635 -0
- package/dist/production/core/MutationGenerator.cjs.map +1 -0
- package/dist/production/core/MutationGenerator.js +341 -294
- package/dist/production/core/MutationGenerator.js.map +1 -1
- package/dist/production/core/QueryGenerator.cjs +113 -0
- package/dist/production/core/QueryGenerator.cjs.map +1 -0
- package/dist/production/core/QueryGenerator.js +62 -75
- package/dist/production/core/QueryGenerator.js.map +1 -1
- package/dist/production/core/RealmKeyGenerator.cjs +47 -0
- package/dist/production/core/RealmKeyGenerator.cjs.map +1 -0
- package/dist/production/core/RequestResponseNormalizer.cjs +125 -0
- package/dist/production/core/RequestResponseNormalizer.cjs.map +1 -0
- package/dist/production/core/StateInitializer.cjs +389 -0
- package/dist/production/core/StateInitializer.cjs.map +1 -0
- package/dist/production/core/StateInitializer.js +2 -2
- package/dist/production/core/StateInitializer.js.map +1 -1
- package/dist/production/core/TreeAugmenter.cjs +213 -0
- package/dist/production/core/TreeAugmenter.cjs.map +1 -0
- package/dist/production/core/TreeFilterGenerator.cjs +83 -0
- package/dist/production/core/TreeFilterGenerator.cjs.map +1 -0
- package/dist/production/core/TreeParameterMerger.cjs +304 -0
- package/dist/production/core/TreeParameterMerger.cjs.map +1 -0
- package/dist/production/core/TreeParameterMerger.js +8 -0
- package/dist/production/core/TreeParameterMerger.js.map +1 -1
- package/dist/production/core/TreeStore.cjs +182 -0
- package/dist/production/core/TreeStore.cjs.map +1 -0
- package/dist/production/core/TreeStore.js +1 -1
- package/dist/production/core/VariableInputTransformer.cjs +24 -0
- package/dist/production/core/VariableInputTransformer.cjs.map +1 -0
- package/dist/production/core/exceptions/ErrorLocator.cjs +62 -0
- package/dist/production/core/exceptions/ErrorLocator.cjs.map +1 -0
- package/dist/production/core/exceptions/LocalizedBindingError.cjs +14 -0
- package/dist/production/core/exceptions/LocalizedBindingError.cjs.map +1 -0
- package/dist/production/core/exceptions/MarkerSugarer.cjs +56 -0
- package/dist/production/core/exceptions/MarkerSugarer.cjs.map +1 -0
- package/dist/production/core/exceptions/TreeParameterSugarer.cjs +33 -0
- package/dist/production/core/exceptions/TreeParameterSugarer.cjs.map +1 -0
- package/dist/production/core/factories/createBatchUpdatesOptions.cjs +20 -0
- package/dist/production/core/factories/createBatchUpdatesOptions.cjs.map +1 -0
- package/dist/production/core/operations/EntityOperations.cjs +238 -0
- package/dist/production/core/operations/EntityOperations.cjs.map +1 -0
- package/dist/production/core/operations/EntityOperations.js +1 -1
- package/dist/production/core/operations/FieldOperations.cjs +76 -0
- package/dist/production/core/operations/FieldOperations.cjs.map +1 -0
- package/dist/production/core/operations/FieldOperations.js +1 -1
- package/dist/production/core/operations/ListOperations.cjs +159 -0
- package/dist/production/core/operations/ListOperations.cjs.map +1 -0
- package/dist/production/core/operations/OperationsHelpers.cjs +85 -0
- package/dist/production/core/operations/OperationsHelpers.cjs.map +1 -0
- package/dist/production/core/requestAliases/MutationAlias.cjs +14 -0
- package/dist/production/core/requestAliases/MutationAlias.cjs.map +1 -0
- package/dist/production/core/schema/Schema.cjs +39 -0
- package/dist/production/core/schema/Schema.cjs.map +1 -0
- package/dist/production/core/schema/SchemaLoader.cjs +28 -0
- package/dist/production/core/schema/SchemaLoader.cjs.map +1 -0
- package/dist/production/core/schema/SchemaLoader.js +2 -2
- package/dist/production/core/schema/SchemaLoader.js.map +1 -1
- package/dist/production/core/schema/SchemaPreprocessor.cjs +38 -0
- package/dist/production/core/schema/SchemaPreprocessor.cjs.map +1 -0
- package/dist/production/core/state/StateIterator.cjs +100 -0
- package/dist/production/core/state/StateIterator.cjs.map +1 -0
- package/dist/production/core/state/getEntityMarker.cjs +5 -0
- package/dist/production/core/state/getEntityMarker.cjs.map +1 -0
- package/dist/production/core/utils/createQueryBuilder.cjs +32 -0
- package/dist/production/core/utils/createQueryBuilder.cjs.map +1 -0
- package/dist/production/core/utils/createQueryBuilder.js +32 -0
- package/dist/production/core/utils/createQueryBuilder.js.map +1 -0
- package/dist/production/core/utils/getCombinedSignal.cjs +33 -0
- package/dist/production/core/utils/getCombinedSignal.cjs.map +1 -0
- package/dist/production/dao/Environment.cjs +213 -0
- package/dist/production/dao/Environment.cjs.map +1 -0
- package/dist/production/dao/Environment.js.map +1 -1
- package/dist/production/dao/TreeNodeEnvironmentFactory.cjs +89 -0
- package/dist/production/dao/TreeNodeEnvironmentFactory.cjs.map +1 -0
- package/dist/production/dao/VariableFieldValue.cjs +9 -0
- package/dist/production/dao/VariableFieldValue.cjs.map +1 -0
- package/dist/production/fieldHelpers/helpers/FieldHelper.cjs +17 -0
- package/dist/production/fieldHelpers/helpers/FieldHelper.cjs.map +1 -0
- package/dist/production/fieldHelpers/helpers/TemporalFieldHelper.cjs +18 -0
- package/dist/production/fieldHelpers/helpers/TemporalFieldHelper.cjs.map +1 -0
- package/dist/production/fieldHelpers/helpers/UuidFieldHelper.cjs +16 -0
- package/dist/production/fieldHelpers/helpers/UuidFieldHelper.cjs.map +1 -0
- package/dist/production/index.cjs +124 -0
- package/dist/production/index.cjs.map +1 -0
- package/dist/production/index.js +18 -135
- package/dist/production/index.js.map +1 -1
- package/dist/production/markers/EntityFieldMarkersContainer.cjs +41 -0
- package/dist/production/markers/EntityFieldMarkersContainer.cjs.map +1 -0
- package/dist/production/markers/EntityFieldsWithHoistablesMarker.cjs +11 -0
- package/dist/production/markers/EntityFieldsWithHoistablesMarker.cjs.map +1 -0
- package/dist/production/markers/EntityListSubTreeMarker.cjs +23 -0
- package/dist/production/markers/EntityListSubTreeMarker.cjs.map +1 -0
- package/dist/production/markers/EntitySubTreeMarker.cjs +23 -0
- package/dist/production/markers/EntitySubTreeMarker.cjs.map +1 -0
- package/dist/production/markers/FieldMarker.cjs +20 -0
- package/dist/production/markers/FieldMarker.cjs.map +1 -0
- package/dist/production/markers/HasManyRelationMarker.cjs +23 -0
- package/dist/production/markers/HasManyRelationMarker.cjs.map +1 -0
- package/dist/production/markers/HasOneRelationMarker.cjs +23 -0
- package/dist/production/markers/HasOneRelationMarker.cjs.map +1 -0
- package/dist/production/markers/MarkerTreeRoot.cjs +10 -0
- package/dist/production/markers/MarkerTreeRoot.cjs.map +1 -0
- package/dist/production/markers/ParentEntityMarker.cjs +10 -0
- package/dist/production/markers/ParentEntityMarker.cjs.map +1 -0
- package/dist/production/markers/PlaceholderGenerator.cjs +23 -0
- package/dist/production/markers/PlaceholderGenerator.cjs.map +1 -0
- package/dist/production/markers/PlaceholderParametersGenerator.cjs +62 -0
- package/dist/production/markers/PlaceholderParametersGenerator.cjs.map +1 -0
- package/dist/production/queryLanguage/CacheStore.cjs +47 -0
- package/dist/production/queryLanguage/CacheStore.cjs.map +1 -0
- package/dist/production/queryLanguage/CacheStore.js +2 -1
- package/dist/production/queryLanguage/CacheStore.js.map +1 -1
- package/dist/production/queryLanguage/MarkerFactory.cjs +200 -0
- package/dist/production/queryLanguage/MarkerFactory.cjs.map +1 -0
- package/dist/production/queryLanguage/MarkerFactory.js +1 -1
- package/dist/production/queryLanguage/Parser.cjs +725 -0
- package/dist/production/queryLanguage/Parser.cjs.map +1 -0
- package/dist/production/queryLanguage/Parser.js +64 -23
- package/dist/production/queryLanguage/Parser.js.map +1 -1
- package/dist/production/queryLanguage/QueryLanguage.cjs +517 -0
- package/dist/production/queryLanguage/QueryLanguage.cjs.map +1 -0
- package/dist/production/queryLanguage/QueryLanguage.js +3 -1
- package/dist/production/queryLanguage/QueryLanguage.js.map +1 -1
- package/dist/production/queryLanguage/QueryLanguageError.cjs +6 -0
- package/dist/production/queryLanguage/QueryLanguageError.cjs.map +1 -0
- package/dist/production/queryLanguage/tokenList.cjs +150 -0
- package/dist/production/queryLanguage/tokenList.cjs.map +1 -0
- package/dist/production/queryLanguage/tokenList.js +1 -1
- package/dist/production/queryLanguage/tokenList.js.map +1 -1
- package/dist/production/structures/BijectiveIndexedMap.cjs +120 -0
- package/dist/production/structures/BijectiveIndexedMap.cjs.map +1 -0
- package/dist/production/structures/LRUCache.cjs +35 -0
- package/dist/production/structures/LRUCache.cjs.map +1 -0
- package/dist/production/structures/WeakIdCache.cjs +33 -0
- package/dist/production/structures/WeakIdCache.cjs.map +1 -0
- package/dist/production/treeParameterHelpers/wrapFilterInHasOnes.cjs +22 -0
- package/dist/production/treeParameterHelpers/wrapFilterInHasOnes.cjs.map +1 -0
- package/dist/production/treeParameters/EntityCreationParameters.cjs +8 -0
- package/dist/production/treeParameters/EntityCreationParameters.cjs.map +1 -0
- package/dist/production/treeParameters/EntityListPreferences.cjs +7 -0
- package/dist/production/treeParameters/EntityListPreferences.cjs.map +1 -0
- package/dist/production/treeParameters/EventListenersStore.cjs +70 -0
- package/dist/production/treeParameters/EventListenersStore.cjs.map +1 -0
- package/dist/production/treeParameters/LeafField.cjs +7 -0
- package/dist/production/treeParameters/LeafField.cjs.map +1 -0
- package/dist/production/treeParameters/QualifiedEntityParameters.cjs +7 -0
- package/dist/production/treeParameters/QualifiedEntityParameters.cjs.map +1 -0
- package/dist/production/treeParameters/Relation.cjs +7 -0
- package/dist/production/treeParameters/Relation.cjs.map +1 -0
- package/dist/production/utils/Hashing.cjs +22 -0
- package/dist/production/utils/Hashing.cjs.map +1 -0
- package/dist/production/utils/TreeNodeUtils.cjs +77 -0
- package/dist/production/utils/TreeNodeUtils.cjs.map +1 -0
- package/dist/production/utils/assert.cjs +11 -0
- package/dist/production/utils/assert.cjs.map +1 -0
- package/dist/production/utils/assertNever.cjs +10 -0
- package/dist/production/utils/assertNever.cjs.map +1 -0
- package/dist/production/utils/generateEnumerabilityPreventingEntropy.cjs +7 -0
- package/dist/production/utils/generateEnumerabilityPreventingEntropy.cjs.map +1 -0
- package/dist/production/utils/isEmptyObject.cjs +12 -0
- package/dist/production/utils/isEmptyObject.cjs.map +1 -0
- package/dist/production/utils/ucfirst.cjs +5 -0
- package/dist/production/utils/ucfirst.cjs.map +1 -0
- package/dist/types/accessorTree/PersistResult.d.ts +1 -2
- package/dist/types/accessorTree/PersistResult.d.ts.map +1 -1
- package/dist/types/accessorTree/index.d.ts +0 -15
- package/dist/types/accessorTree/index.d.ts.map +1 -1
- package/dist/types/accessors/BindingOperations.d.ts +2 -2
- package/dist/types/accessors/BindingOperations.d.ts.map +1 -1
- package/dist/types/accessors/ExtendTree.d.ts +1 -2
- package/dist/types/accessors/ExtendTree.d.ts.map +1 -1
- package/dist/types/accessors/TreeRootAccessor.d.ts +3 -3
- package/dist/types/accessors/TreeRootAccessor.d.ts.map +1 -1
- package/dist/types/core/AccessorErrorManager.d.ts +2 -2
- package/dist/types/core/AccessorErrorManager.d.ts.map +1 -1
- package/dist/types/core/DataBinding.d.ts +11 -6
- package/dist/types/core/DataBinding.d.ts.map +1 -1
- package/dist/types/core/ErrorsPreprocessor.d.ts +2 -2
- package/dist/types/core/ErrorsPreprocessor.d.ts.map +1 -1
- package/dist/types/core/EventManager.d.ts +2 -1
- package/dist/types/core/EventManager.d.ts.map +1 -1
- package/dist/types/core/MutationGenerator.d.ts +16 -13
- package/dist/types/core/MutationGenerator.d.ts.map +1 -1
- package/dist/types/core/QueryGenerator.d.ts +6 -8
- package/dist/types/core/QueryGenerator.d.ts.map +1 -1
- package/dist/types/core/TreeParameterMerger.d.ts.map +1 -1
- package/dist/types/core/index.d.ts +7 -1
- package/dist/types/core/index.d.ts.map +1 -1
- package/dist/types/core/schema/index.d.ts +2 -0
- package/dist/types/core/schema/index.d.ts.map +1 -1
- package/dist/types/core/state/EntityListState.d.ts +2 -0
- package/dist/types/core/state/EntityListState.d.ts.map +1 -1
- package/dist/types/core/utils/createQueryBuilder.d.ts +4 -0
- package/dist/types/core/utils/createQueryBuilder.d.ts.map +1 -0
- package/dist/types/dao/Environment.d.ts +5 -2
- package/dist/types/dao/Environment.d.ts.map +1 -1
- package/dist/types/dao/index.d.ts +1 -0
- package/dist/types/dao/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +0 -5
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/queryLanguage/CacheStore.d.ts.map +1 -1
- package/dist/types/queryLanguage/Parser.d.ts +3 -2
- package/dist/types/queryLanguage/Parser.d.ts.map +1 -1
- package/dist/types/queryLanguage/QueryLanguage.d.ts.map +1 -1
- package/dist/types/treeParameters/UnconstrainedQualifiedEntityList.d.ts +2 -0
- package/dist/types/treeParameters/UnconstrainedQualifiedEntityList.d.ts.map +1 -1
- package/dist/types/treeParameters/UnconstrainedQualifiedSingleEntity.d.ts +2 -0
- package/dist/types/treeParameters/UnconstrainedQualifiedSingleEntity.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -13
- package/src/accessorTree/PersistResult.ts +1 -2
- package/src/accessorTree/index.ts +0 -15
- package/src/accessors/BindingOperations.ts +2 -2
- package/src/accessors/ExtendTree.ts +1 -2
- package/src/accessors/TreeRootAccessor.ts +2 -2
- package/src/core/AccessorErrorManager.ts +11 -9
- package/src/core/DataBinding.ts +76 -75
- package/src/core/ErrorsPreprocessor.ts +24 -23
- package/src/core/EventManager.ts +6 -3
- package/src/core/MutationGenerator.ts +411 -412
- package/src/core/QueryGenerator.ts +66 -117
- package/src/core/StateInitializer.ts +2 -2
- package/src/core/TreeParameterMerger.ts +8 -0
- package/src/core/index.ts +7 -1
- package/src/core/schema/SchemaLoader.ts +2 -2
- package/src/core/schema/index.ts +2 -0
- package/src/core/state/EntityListState.ts +2 -0
- package/src/core/utils/createQueryBuilder.ts +31 -0
- package/src/dao/Environment.ts +6 -2
- package/src/dao/index.ts +1 -0
- package/src/index.ts +0 -5
- package/src/queryLanguage/CacheStore.ts +1 -0
- package/src/queryLanguage/Parser.ts +76 -37
- package/src/queryLanguage/QueryLanguage.ts +4 -1
- package/src/queryLanguage/tokenList.ts +1 -1
- package/src/treeParameters/UnconstrainedQualifiedEntityList.ts +2 -0
- package/src/treeParameters/UnconstrainedQualifiedSingleEntity.ts +2 -0
- package/src/tsconfig.json +1 -4
- package/dist/development/accessorPropagation/AccessorProvider.js +0 -18
- package/dist/development/accessorPropagation/AccessorProvider.js.map +0 -1
- package/dist/development/accessorPropagation/BindingOperationsContext.js +0 -31
- package/dist/development/accessorPropagation/BindingOperationsContext.js.map +0 -1
- package/dist/development/accessorPropagation/BindingOperationsProvider.js +0 -13
- package/dist/development/accessorPropagation/BindingOperationsProvider.js.map +0 -1
- package/dist/development/accessorPropagation/EntityKeyContext.js +0 -7
- package/dist/development/accessorPropagation/EntityKeyContext.js.map +0 -1
- package/dist/development/accessorPropagation/EntityKeyProvider.js +0 -13
- package/dist/development/accessorPropagation/EntityKeyProvider.js.map +0 -1
- package/dist/development/accessorPropagation/EnvironmentContext.js +0 -53
- package/dist/development/accessorPropagation/EnvironmentContext.js.map +0 -1
- package/dist/development/accessorPropagation/TreeRootIdContext.js +0 -7
- package/dist/development/accessorPropagation/TreeRootIdContext.js.map +0 -1
- package/dist/development/accessorPropagation/TreeRootIdProvider.js +0 -13
- package/dist/development/accessorPropagation/TreeRootIdProvider.js.map +0 -1
- package/dist/development/accessorPropagation/useAccessorUpdateSubscription.js +0 -55
- package/dist/development/accessorPropagation/useAccessorUpdateSubscription.js.map +0 -1
- package/dist/development/accessorPropagation/useBindingOperations.js +0 -7
- package/dist/development/accessorPropagation/useBindingOperations.js.map +0 -1
- package/dist/development/accessorPropagation/useDesugaredRelativeEntityList.js +0 -47
- package/dist/development/accessorPropagation/useDesugaredRelativeEntityList.js.map +0 -1
- package/dist/development/accessorPropagation/useDesugaredRelativeSingleEntity.js +0 -35
- package/dist/development/accessorPropagation/useDesugaredRelativeSingleEntity.js.map +0 -1
- package/dist/development/accessorPropagation/useDesugaredRelativeSingleField.js +0 -35
- package/dist/development/accessorPropagation/useDesugaredRelativeSingleField.js.map +0 -1
- package/dist/development/accessorPropagation/useEntity.js +0 -38
- package/dist/development/accessorPropagation/useEntity.js.map +0 -1
- package/dist/development/accessorPropagation/useEntityKey.js +0 -16
- package/dist/development/accessorPropagation/useEntityKey.js.map +0 -1
- package/dist/development/accessorPropagation/useEntityList.js +0 -36
- package/dist/development/accessorPropagation/useEntityList.js.map +0 -1
- package/dist/development/accessorPropagation/useEntityListSubTree.js +0 -19
- package/dist/development/accessorPropagation/useEntityListSubTree.js.map +0 -1
- package/dist/development/accessorPropagation/useEntityListSubTreeParameters.js +0 -69
- package/dist/development/accessorPropagation/useEntityListSubTreeParameters.js.map +0 -1
- package/dist/development/accessorPropagation/useEntitySubTree.js +0 -19
- package/dist/development/accessorPropagation/useEntitySubTree.js.map +0 -1
- package/dist/development/accessorPropagation/useEntitySubTreeParameters.js +0 -47
- package/dist/development/accessorPropagation/useEntitySubTreeParameters.js.map +0 -1
- package/dist/development/accessorPropagation/useEnvironment.js +0 -9
- package/dist/development/accessorPropagation/useEnvironment.js.map +0 -1
- package/dist/development/accessorPropagation/useExtendTree.js +0 -32
- package/dist/development/accessorPropagation/useExtendTree.js.map +0 -1
- package/dist/development/accessorPropagation/useField.js +0 -36
- package/dist/development/accessorPropagation/useField.js.map +0 -1
- package/dist/development/accessorPropagation/useGetEntityByKey.js +0 -6
- package/dist/development/accessorPropagation/useGetEntityByKey.js.map +0 -1
- package/dist/development/accessorPropagation/useGetEntityListSubTree.js +0 -17
- package/dist/development/accessorPropagation/useGetEntityListSubTree.js.map +0 -1
- package/dist/development/accessorPropagation/useGetEntitySubTree.js +0 -17
- package/dist/development/accessorPropagation/useGetEntitySubTree.js.map +0 -1
- package/dist/development/accessorPropagation/useGetTreeFilters.js +0 -6
- package/dist/development/accessorPropagation/useGetTreeFilters.js.map +0 -1
- package/dist/development/accessorPropagation/useHasEntity.js +0 -9
- package/dist/development/accessorPropagation/useHasEntity.js.map +0 -1
- package/dist/development/accessorPropagation/usePersist.js +0 -6
- package/dist/development/accessorPropagation/usePersist.js.map +0 -1
- package/dist/development/accessorPropagation/useTreeRootId.js +0 -7
- package/dist/development/accessorPropagation/useTreeRootId.js.map +0 -1
- package/dist/development/accessorSorting/SetOrderFieldOnCreate.js +0 -118
- package/dist/development/accessorSorting/SetOrderFieldOnCreate.js.map +0 -1
- package/dist/development/accessorSorting/addEntityAtIndex.js +0 -18
- package/dist/development/accessorSorting/addEntityAtIndex.js.map +0 -1
- package/dist/development/accessorSorting/errors.js +0 -10
- package/dist/development/accessorSorting/errors.js.map +0 -1
- package/dist/development/accessorSorting/moveEntity.js +0 -42
- package/dist/development/accessorSorting/moveEntity.js.map +0 -1
- package/dist/development/accessorSorting/repairEntitiesOrder.js +0 -13
- package/dist/development/accessorSorting/repairEntitiesOrder.js.map +0 -1
- package/dist/development/accessorSorting/sortEntities.js +0 -17
- package/dist/development/accessorSorting/sortEntities.js.map +0 -1
- package/dist/development/accessorSorting/useSortedEntities.js +0 -80
- package/dist/development/accessorSorting/useSortedEntities.js.map +0 -1
- package/dist/development/accessorTree/AccessorTree.js +0 -39
- package/dist/development/accessorTree/AccessorTree.js.map +0 -1
- package/dist/development/accessorTree/AccessorTreeStateContext.js +0 -6
- package/dist/development/accessorTree/AccessorTreeStateContext.js.map +0 -1
- package/dist/development/accessorTree/DirtinessContext.js +0 -7
- package/dist/development/accessorTree/DirtinessContext.js.map +0 -1
- package/dist/development/accessorTree/MutationStateContext.js +0 -7
- package/dist/development/accessorTree/MutationStateContext.js.map +0 -1
- package/dist/development/accessorTree/accessorTreeStateReducer.js +0 -34
- package/dist/development/accessorTree/accessorTreeStateReducer.js.map +0 -1
- package/dist/development/accessorTree/metadataToRequestError.js +0 -15
- package/dist/development/accessorTree/metadataToRequestError.js.map +0 -1
- package/dist/development/accessorTree/useAccessorTreeState.js +0 -14
- package/dist/development/accessorTree/useAccessorTreeState.js.map +0 -1
- package/dist/development/accessorTree/useDataBinding.js +0 -84
- package/dist/development/accessorTree/useDataBinding.js.map +0 -1
- package/dist/development/accessorTree/useDirtinessState.js +0 -7
- package/dist/development/accessorTree/useDirtinessState.js.map +0 -1
- package/dist/development/accessorTree/useMutationState.js +0 -7
- package/dist/development/accessorTree/useMutationState.js.map +0 -1
- package/dist/development/core/IncrementalMarkerBuilder.js +0 -70
- package/dist/development/core/IncrementalMarkerBuilder.js.map +0 -1
- package/dist/development/core/MarkerTreeGenerator.js +0 -95
- package/dist/development/core/MarkerTreeGenerator.js.map +0 -1
- package/dist/development/coreComponents/Component.js +0 -33
- package/dist/development/coreComponents/Component.js.map +0 -1
- package/dist/development/coreComponents/DataBindingProvider.js +0 -24
- package/dist/development/coreComponents/DataBindingProvider.js.map +0 -1
- package/dist/development/coreComponents/Entity.js +0 -20
- package/dist/development/coreComponents/Entity.js.map +0 -1
- package/dist/development/coreComponents/EntityList.js +0 -45
- package/dist/development/coreComponents/EntityList.js.map +0 -1
- package/dist/development/coreComponents/EntityListSubTree.js +0 -58
- package/dist/development/coreComponents/EntityListSubTree.js.map +0 -1
- package/dist/development/coreComponents/EntitySubTree.js +0 -81
- package/dist/development/coreComponents/EntitySubTree.js.map +0 -1
- package/dist/development/coreComponents/Field.js +0 -37
- package/dist/development/coreComponents/Field.js.map +0 -1
- package/dist/development/coreComponents/HasMany.js +0 -42
- package/dist/development/coreComponents/HasMany.js.map +0 -1
- package/dist/development/coreComponents/HasOne.js +0 -42
- package/dist/development/coreComponents/HasOne.js.map +0 -1
- package/dist/development/coreComponents/ParentEntity.js +0 -18
- package/dist/development/coreComponents/ParentEntity.js.map +0 -1
- package/dist/development/entityEvents/useDerivedField.js +0 -42
- package/dist/development/entityEvents/useDerivedField.js.map +0 -1
- package/dist/development/entityEvents/useEntityBeforePersist.js +0 -8
- package/dist/development/entityEvents/useEntityBeforePersist.js.map +0 -1
- package/dist/development/entityEvents/useEntityBeforeUpdate.js +0 -8
- package/dist/development/entityEvents/useEntityBeforeUpdate.js.map +0 -1
- package/dist/development/entityEvents/useEntityEvent.js +0 -32
- package/dist/development/entityEvents/useEntityEvent.js.map +0 -1
- package/dist/development/entityEvents/useEntityPersistError.js +0 -8
- package/dist/development/entityEvents/useEntityPersistError.js.map +0 -1
- package/dist/development/entityEvents/useEntityPersistSuccess.js +0 -8
- package/dist/development/entityEvents/useEntityPersistSuccess.js.map +0 -1
- package/dist/development/entityEvents/useOnConnectionUpdate.js +0 -8
- package/dist/development/entityEvents/useOnConnectionUpdate.js.map +0 -1
- package/dist/development/helperComponents/DeferredSubTrees.js +0 -105
- package/dist/development/helperComponents/DeferredSubTrees.js.map +0 -1
- package/dist/development/helperComponents/EntityView.js +0 -14
- package/dist/development/helperComponents/EntityView.js.map +0 -1
- package/dist/development/helperComponents/FieldView.js +0 -61
- package/dist/development/helperComponents/FieldView.js.map +0 -1
- package/dist/development/helperComponents/If.js +0 -84
- package/dist/development/helperComponents/If.js.map +0 -1
- package/dist/development/helperComponents/StaticRender.js +0 -15
- package/dist/development/helperComponents/StaticRender.js.map +0 -1
- package/dist/development/helperComponents/SugaredField.js +0 -21
- package/dist/development/helperComponents/SugaredField.js.map +0 -1
- package/dist/development/helperComponents/helpers/FilterEvaluator.js +0 -37
- package/dist/development/helperComponents/helpers/FilterEvaluator.js.map +0 -1
- package/dist/development/helperComponents/helpers/FilterFieldsCollector.js +0 -40
- package/dist/development/helperComponents/helpers/FilterFieldsCollector.js.map +0 -1
- package/dist/development/helperComponents/helpers/evaluateCondition.js +0 -49
- package/dist/development/helperComponents/helpers/evaluateCondition.js.map +0 -1
- package/dist/production/accessorPropagation/AccessorProvider.js +0 -10
- package/dist/production/accessorPropagation/AccessorProvider.js.map +0 -1
- package/dist/production/accessorPropagation/BindingOperationsContext.js +0 -31
- package/dist/production/accessorPropagation/BindingOperationsContext.js.map +0 -1
- package/dist/production/accessorPropagation/BindingOperationsProvider.js +0 -9
- package/dist/production/accessorPropagation/BindingOperationsProvider.js.map +0 -1
- package/dist/production/accessorPropagation/EntityKeyContext.js +0 -7
- package/dist/production/accessorPropagation/EntityKeyContext.js.map +0 -1
- package/dist/production/accessorPropagation/EntityKeyProvider.js +0 -9
- package/dist/production/accessorPropagation/EntityKeyProvider.js.map +0 -1
- package/dist/production/accessorPropagation/EnvironmentContext.js +0 -37
- package/dist/production/accessorPropagation/EnvironmentContext.js.map +0 -1
- package/dist/production/accessorPropagation/TreeRootIdContext.js +0 -7
- package/dist/production/accessorPropagation/TreeRootIdContext.js.map +0 -1
- package/dist/production/accessorPropagation/TreeRootIdProvider.js +0 -9
- package/dist/production/accessorPropagation/TreeRootIdProvider.js.map +0 -1
- package/dist/production/accessorPropagation/useAccessorUpdateSubscription.js +0 -55
- package/dist/production/accessorPropagation/useAccessorUpdateSubscription.js.map +0 -1
- package/dist/production/accessorPropagation/useBindingOperations.js +0 -7
- package/dist/production/accessorPropagation/useBindingOperations.js.map +0 -1
- package/dist/production/accessorPropagation/useDesugaredRelativeEntityList.js +0 -47
- package/dist/production/accessorPropagation/useDesugaredRelativeEntityList.js.map +0 -1
- package/dist/production/accessorPropagation/useDesugaredRelativeSingleEntity.js +0 -35
- package/dist/production/accessorPropagation/useDesugaredRelativeSingleEntity.js.map +0 -1
- package/dist/production/accessorPropagation/useDesugaredRelativeSingleField.js +0 -35
- package/dist/production/accessorPropagation/useDesugaredRelativeSingleField.js.map +0 -1
- package/dist/production/accessorPropagation/useEntity.js +0 -38
- package/dist/production/accessorPropagation/useEntity.js.map +0 -1
- package/dist/production/accessorPropagation/useEntityKey.js +0 -16
- package/dist/production/accessorPropagation/useEntityKey.js.map +0 -1
- package/dist/production/accessorPropagation/useEntityList.js +0 -36
- package/dist/production/accessorPropagation/useEntityList.js.map +0 -1
- package/dist/production/accessorPropagation/useEntityListSubTree.js +0 -19
- package/dist/production/accessorPropagation/useEntityListSubTree.js.map +0 -1
- package/dist/production/accessorPropagation/useEntityListSubTreeParameters.js +0 -69
- package/dist/production/accessorPropagation/useEntityListSubTreeParameters.js.map +0 -1
- package/dist/production/accessorPropagation/useEntitySubTree.js +0 -19
- package/dist/production/accessorPropagation/useEntitySubTree.js.map +0 -1
- package/dist/production/accessorPropagation/useEntitySubTreeParameters.js +0 -47
- package/dist/production/accessorPropagation/useEntitySubTreeParameters.js.map +0 -1
- package/dist/production/accessorPropagation/useEnvironment.js +0 -9
- package/dist/production/accessorPropagation/useEnvironment.js.map +0 -1
- package/dist/production/accessorPropagation/useExtendTree.js +0 -32
- package/dist/production/accessorPropagation/useExtendTree.js.map +0 -1
- package/dist/production/accessorPropagation/useField.js +0 -36
- package/dist/production/accessorPropagation/useField.js.map +0 -1
- package/dist/production/accessorPropagation/useGetEntityByKey.js +0 -6
- package/dist/production/accessorPropagation/useGetEntityByKey.js.map +0 -1
- package/dist/production/accessorPropagation/useGetEntityListSubTree.js +0 -17
- package/dist/production/accessorPropagation/useGetEntityListSubTree.js.map +0 -1
- package/dist/production/accessorPropagation/useGetEntitySubTree.js +0 -17
- package/dist/production/accessorPropagation/useGetEntitySubTree.js.map +0 -1
- package/dist/production/accessorPropagation/useGetTreeFilters.js +0 -6
- package/dist/production/accessorPropagation/useGetTreeFilters.js.map +0 -1
- package/dist/production/accessorPropagation/useHasEntity.js +0 -9
- package/dist/production/accessorPropagation/useHasEntity.js.map +0 -1
- package/dist/production/accessorPropagation/usePersist.js +0 -6
- package/dist/production/accessorPropagation/usePersist.js.map +0 -1
- package/dist/production/accessorPropagation/useTreeRootId.js +0 -7
- package/dist/production/accessorPropagation/useTreeRootId.js.map +0 -1
- package/dist/production/accessorSorting/SetOrderFieldOnCreate.js +0 -74
- package/dist/production/accessorSorting/SetOrderFieldOnCreate.js.map +0 -1
- package/dist/production/accessorSorting/addEntityAtIndex.js +0 -18
- package/dist/production/accessorSorting/addEntityAtIndex.js.map +0 -1
- package/dist/production/accessorSorting/errors.js +0 -10
- package/dist/production/accessorSorting/errors.js.map +0 -1
- package/dist/production/accessorSorting/moveEntity.js +0 -42
- package/dist/production/accessorSorting/moveEntity.js.map +0 -1
- package/dist/production/accessorSorting/repairEntitiesOrder.js +0 -13
- package/dist/production/accessorSorting/repairEntitiesOrder.js.map +0 -1
- package/dist/production/accessorSorting/sortEntities.js +0 -17
- package/dist/production/accessorSorting/sortEntities.js.map +0 -1
- package/dist/production/accessorSorting/useSortedEntities.js +0 -80
- package/dist/production/accessorSorting/useSortedEntities.js.map +0 -1
- package/dist/production/accessorTree/AccessorTree.js +0 -19
- package/dist/production/accessorTree/AccessorTree.js.map +0 -1
- package/dist/production/accessorTree/AccessorTreeStateContext.js +0 -6
- package/dist/production/accessorTree/AccessorTreeStateContext.js.map +0 -1
- package/dist/production/accessorTree/DirtinessContext.js +0 -7
- package/dist/production/accessorTree/DirtinessContext.js.map +0 -1
- package/dist/production/accessorTree/MutationStateContext.js +0 -7
- package/dist/production/accessorTree/MutationStateContext.js.map +0 -1
- package/dist/production/accessorTree/accessorTreeStateReducer.js +0 -34
- package/dist/production/accessorTree/accessorTreeStateReducer.js.map +0 -1
- package/dist/production/accessorTree/metadataToRequestError.js +0 -15
- package/dist/production/accessorTree/metadataToRequestError.js.map +0 -1
- package/dist/production/accessorTree/useAccessorTreeState.js +0 -14
- package/dist/production/accessorTree/useAccessorTreeState.js.map +0 -1
- package/dist/production/accessorTree/useDataBinding.js +0 -84
- package/dist/production/accessorTree/useDataBinding.js.map +0 -1
- package/dist/production/accessorTree/useDirtinessState.js +0 -7
- package/dist/production/accessorTree/useDirtinessState.js.map +0 -1
- package/dist/production/accessorTree/useMutationState.js +0 -7
- package/dist/production/accessorTree/useMutationState.js.map +0 -1
- package/dist/production/core/IncrementalMarkerBuilder.js +0 -70
- package/dist/production/core/IncrementalMarkerBuilder.js.map +0 -1
- package/dist/production/core/MarkerTreeGenerator.js +0 -95
- package/dist/production/core/MarkerTreeGenerator.js.map +0 -1
- package/dist/production/coreComponents/Component.js +0 -33
- package/dist/production/coreComponents/Component.js.map +0 -1
- package/dist/production/coreComponents/DataBindingProvider.js +0 -20
- package/dist/production/coreComponents/DataBindingProvider.js.map +0 -1
- package/dist/production/coreComponents/Entity.js +0 -16
- package/dist/production/coreComponents/Entity.js.map +0 -1
- package/dist/production/coreComponents/EntityList.js +0 -33
- package/dist/production/coreComponents/EntityList.js.map +0 -1
- package/dist/production/coreComponents/EntityListSubTree.js +0 -46
- package/dist/production/coreComponents/EntityListSubTree.js.map +0 -1
- package/dist/production/coreComponents/EntitySubTree.js +0 -57
- package/dist/production/coreComponents/EntitySubTree.js.map +0 -1
- package/dist/production/coreComponents/Field.js +0 -29
- package/dist/production/coreComponents/Field.js.map +0 -1
- package/dist/production/coreComponents/HasMany.js +0 -30
- package/dist/production/coreComponents/HasMany.js.map +0 -1
- package/dist/production/coreComponents/HasOne.js +0 -30
- package/dist/production/coreComponents/HasOne.js.map +0 -1
- package/dist/production/coreComponents/ParentEntity.js +0 -14
- package/dist/production/coreComponents/ParentEntity.js.map +0 -1
- package/dist/production/entityEvents/useDerivedField.js +0 -42
- package/dist/production/entityEvents/useDerivedField.js.map +0 -1
- package/dist/production/entityEvents/useEntityBeforePersist.js +0 -8
- package/dist/production/entityEvents/useEntityBeforePersist.js.map +0 -1
- package/dist/production/entityEvents/useEntityBeforeUpdate.js +0 -8
- package/dist/production/entityEvents/useEntityBeforeUpdate.js.map +0 -1
- package/dist/production/entityEvents/useEntityEvent.js +0 -32
- package/dist/production/entityEvents/useEntityEvent.js.map +0 -1
- package/dist/production/entityEvents/useEntityPersistError.js +0 -8
- package/dist/production/entityEvents/useEntityPersistError.js.map +0 -1
- package/dist/production/entityEvents/useEntityPersistSuccess.js +0 -8
- package/dist/production/entityEvents/useEntityPersistSuccess.js.map +0 -1
- package/dist/production/entityEvents/useOnConnectionUpdate.js +0 -8
- package/dist/production/entityEvents/useOnConnectionUpdate.js.map +0 -1
- package/dist/production/helperComponents/DeferredSubTrees.js +0 -89
- package/dist/production/helperComponents/DeferredSubTrees.js.map +0 -1
- package/dist/production/helperComponents/EntityView.js +0 -10
- package/dist/production/helperComponents/EntityView.js.map +0 -1
- package/dist/production/helperComponents/FieldView.js +0 -49
- package/dist/production/helperComponents/FieldView.js.map +0 -1
- package/dist/production/helperComponents/If.js +0 -52
- package/dist/production/helperComponents/If.js.map +0 -1
- package/dist/production/helperComponents/StaticRender.js +0 -11
- package/dist/production/helperComponents/StaticRender.js.map +0 -1
- package/dist/production/helperComponents/SugaredField.js +0 -13
- package/dist/production/helperComponents/SugaredField.js.map +0 -1
- package/dist/production/helperComponents/helpers/FilterEvaluator.js +0 -37
- package/dist/production/helperComponents/helpers/FilterEvaluator.js.map +0 -1
- package/dist/production/helperComponents/helpers/FilterFieldsCollector.js +0 -40
- package/dist/production/helperComponents/helpers/FilterFieldsCollector.js.map +0 -1
- package/dist/production/helperComponents/helpers/evaluateCondition.js +0 -49
- package/dist/production/helperComponents/helpers/evaluateCondition.js.map +0 -1
- package/dist/types/accessorPropagation/AccessorProvider.d.ts +0 -8
- package/dist/types/accessorPropagation/AccessorProvider.d.ts.map +0 -1
- package/dist/types/accessorPropagation/BindingOperationsContext.d.ts +0 -4
- package/dist/types/accessorPropagation/BindingOperationsContext.d.ts.map +0 -1
- package/dist/types/accessorPropagation/BindingOperationsProvider.d.ts +0 -8
- package/dist/types/accessorPropagation/BindingOperationsProvider.d.ts.map +0 -1
- package/dist/types/accessorPropagation/EntityKeyContext.d.ts +0 -2
- package/dist/types/accessorPropagation/EntityKeyContext.d.ts.map +0 -1
- package/dist/types/accessorPropagation/EntityKeyProvider.d.ts +0 -7
- package/dist/types/accessorPropagation/EntityKeyProvider.d.ts.map +0 -1
- package/dist/types/accessorPropagation/EnvironmentContext.d.ts +0 -15
- package/dist/types/accessorPropagation/EnvironmentContext.d.ts.map +0 -1
- package/dist/types/accessorPropagation/TreeRootIdContext.d.ts +0 -2
- package/dist/types/accessorPropagation/TreeRootIdContext.d.ts.map +0 -1
- package/dist/types/accessorPropagation/TreeRootIdProvider.d.ts +0 -8
- package/dist/types/accessorPropagation/TreeRootIdProvider.d.ts.map +0 -1
- package/dist/types/accessorPropagation/index.d.ts +0 -28
- package/dist/types/accessorPropagation/index.d.ts.map +0 -1
- package/dist/types/accessorPropagation/useAccessorUpdateSubscription.d.ts +0 -16
- package/dist/types/accessorPropagation/useAccessorUpdateSubscription.d.ts.map +0 -1
- package/dist/types/accessorPropagation/useBindingOperations.d.ts +0 -3
- package/dist/types/accessorPropagation/useBindingOperations.d.ts.map +0 -1
- package/dist/types/accessorPropagation/useDesugaredRelativeEntityList.d.ts +0 -11
- package/dist/types/accessorPropagation/useDesugaredRelativeEntityList.d.ts.map +0 -1
- package/dist/types/accessorPropagation/useDesugaredRelativeSingleEntity.d.ts +0 -11
- package/dist/types/accessorPropagation/useDesugaredRelativeSingleEntity.d.ts.map +0 -1
- package/dist/types/accessorPropagation/useDesugaredRelativeSingleField.d.ts +0 -11
- package/dist/types/accessorPropagation/useDesugaredRelativeSingleField.d.ts.map +0 -1
- package/dist/types/accessorPropagation/useEntity.d.ts +0 -7
- package/dist/types/accessorPropagation/useEntity.d.ts.map +0 -1
- package/dist/types/accessorPropagation/useEntityKey.d.ts +0 -2
- package/dist/types/accessorPropagation/useEntityKey.d.ts.map +0 -1
- package/dist/types/accessorPropagation/useEntityList.d.ts +0 -6
- package/dist/types/accessorPropagation/useEntityList.d.ts.map +0 -1
- package/dist/types/accessorPropagation/useEntityListSubTree.d.ts +0 -6
- package/dist/types/accessorPropagation/useEntityListSubTree.d.ts.map +0 -1
- package/dist/types/accessorPropagation/useEntityListSubTreeParameters.d.ts +0 -5
- package/dist/types/accessorPropagation/useEntityListSubTreeParameters.d.ts.map +0 -1
- package/dist/types/accessorPropagation/useEntitySubTree.d.ts +0 -6
- package/dist/types/accessorPropagation/useEntitySubTree.d.ts.map +0 -1
- package/dist/types/accessorPropagation/useEntitySubTreeParameters.d.ts +0 -5
- package/dist/types/accessorPropagation/useEntitySubTreeParameters.d.ts.map +0 -1
- package/dist/types/accessorPropagation/useEnvironment.d.ts +0 -3
- package/dist/types/accessorPropagation/useEnvironment.d.ts.map +0 -1
- package/dist/types/accessorPropagation/useExtendTree.d.ts +0 -5
- package/dist/types/accessorPropagation/useExtendTree.d.ts.map +0 -1
- package/dist/types/accessorPropagation/useField.d.ts +0 -6
- package/dist/types/accessorPropagation/useField.d.ts.map +0 -1
- package/dist/types/accessorPropagation/useGetEntityByKey.d.ts +0 -3
- package/dist/types/accessorPropagation/useGetEntityByKey.d.ts.map +0 -1
- package/dist/types/accessorPropagation/useGetEntityListSubTree.d.ts +0 -5
- package/dist/types/accessorPropagation/useGetEntityListSubTree.d.ts.map +0 -1
- package/dist/types/accessorPropagation/useGetEntitySubTree.d.ts +0 -5
- package/dist/types/accessorPropagation/useGetEntitySubTree.d.ts.map +0 -1
- package/dist/types/accessorPropagation/useGetTreeFilters.d.ts +0 -3
- package/dist/types/accessorPropagation/useGetTreeFilters.d.ts.map +0 -1
- package/dist/types/accessorPropagation/useHasEntity.d.ts +0 -2
- package/dist/types/accessorPropagation/useHasEntity.d.ts.map +0 -1
- package/dist/types/accessorPropagation/usePersist.d.ts +0 -3
- package/dist/types/accessorPropagation/usePersist.d.ts.map +0 -1
- package/dist/types/accessorPropagation/useTreeRootId.d.ts +0 -3
- package/dist/types/accessorPropagation/useTreeRootId.d.ts.map +0 -1
- package/dist/types/accessorSorting/SetOrderFieldOnCreate.d.ts +0 -9
- package/dist/types/accessorSorting/SetOrderFieldOnCreate.d.ts.map +0 -1
- package/dist/types/accessorSorting/SortedEntities.d.ts +0 -9
- package/dist/types/accessorSorting/SortedEntities.d.ts.map +0 -1
- package/dist/types/accessorSorting/addEntityAtIndex.d.ts +0 -4
- package/dist/types/accessorSorting/addEntityAtIndex.d.ts.map +0 -1
- package/dist/types/accessorSorting/errors.d.ts +0 -3
- package/dist/types/accessorSorting/errors.d.ts.map +0 -1
- package/dist/types/accessorSorting/index.d.ts +0 -8
- package/dist/types/accessorSorting/index.d.ts.map +0 -1
- package/dist/types/accessorSorting/moveEntity.d.ts +0 -5
- package/dist/types/accessorSorting/moveEntity.d.ts.map +0 -1
- package/dist/types/accessorSorting/repairEntitiesOrder.d.ts +0 -4
- package/dist/types/accessorSorting/repairEntitiesOrder.d.ts.map +0 -1
- package/dist/types/accessorSorting/sortEntities.d.ts +0 -4
- package/dist/types/accessorSorting/sortEntities.d.ts.map +0 -1
- package/dist/types/accessorSorting/useSortedEntities.d.ts +0 -5
- package/dist/types/accessorSorting/useSortedEntities.d.ts.map +0 -1
- package/dist/types/accessorTree/AccessorTree.d.ts +0 -14
- package/dist/types/accessorTree/AccessorTree.d.ts.map +0 -1
- package/dist/types/accessorTree/AccessorTreeState.d.ts +0 -23
- package/dist/types/accessorTree/AccessorTreeState.d.ts.map +0 -1
- package/dist/types/accessorTree/AccessorTreeStateAction.d.ts +0 -18
- package/dist/types/accessorTree/AccessorTreeStateAction.d.ts.map +0 -1
- package/dist/types/accessorTree/AccessorTreeStateContext.d.ts +0 -3
- package/dist/types/accessorTree/AccessorTreeStateContext.d.ts.map +0 -1
- package/dist/types/accessorTree/AccessorTreeStateMetadata.d.ts +0 -4
- package/dist/types/accessorTree/AccessorTreeStateMetadata.d.ts.map +0 -1
- package/dist/types/accessorTree/AccessorTreeStateOptions.d.ts +0 -7
- package/dist/types/accessorTree/AccessorTreeStateOptions.d.ts.map +0 -1
- package/dist/types/accessorTree/DirtinessContext.d.ts +0 -2
- package/dist/types/accessorTree/DirtinessContext.d.ts.map +0 -1
- package/dist/types/accessorTree/MutationRequestResponse.d.ts +0 -52
- package/dist/types/accessorTree/MutationRequestResponse.d.ts.map +0 -1
- package/dist/types/accessorTree/MutationStateContext.d.ts +0 -2
- package/dist/types/accessorTree/MutationStateContext.d.ts.map +0 -1
- package/dist/types/accessorTree/RequestError.d.ts +0 -21
- package/dist/types/accessorTree/RequestError.d.ts.map +0 -1
- package/dist/types/accessorTree/accessorTreeStateReducer.d.ts +0 -4
- package/dist/types/accessorTree/accessorTreeStateReducer.d.ts.map +0 -1
- package/dist/types/accessorTree/metadataToRequestError.d.ts +0 -4
- package/dist/types/accessorTree/metadataToRequestError.d.ts.map +0 -1
- package/dist/types/accessorTree/useAccessorTreeState.d.ts +0 -2
- package/dist/types/accessorTree/useAccessorTreeState.d.ts.map +0 -1
- package/dist/types/accessorTree/useDataBinding.d.ts +0 -4
- package/dist/types/accessorTree/useDataBinding.d.ts.map +0 -1
- package/dist/types/accessorTree/useDirtinessState.d.ts +0 -2
- package/dist/types/accessorTree/useDirtinessState.d.ts.map +0 -1
- package/dist/types/accessorTree/useMutationState.d.ts +0 -2
- package/dist/types/accessorTree/useMutationState.d.ts.map +0 -1
- package/dist/types/core/IncrementalMarkerBuilder.d.ts +0 -7
- package/dist/types/core/IncrementalMarkerBuilder.d.ts.map +0 -1
- package/dist/types/core/MarkerTreeGenerator.d.ts +0 -14
- package/dist/types/core/MarkerTreeGenerator.d.ts.map +0 -1
- package/dist/types/coreComponents/Component.d.ts +0 -13
- package/dist/types/coreComponents/Component.d.ts.map +0 -1
- package/dist/types/coreComponents/DataBindingProvider.d.ts +0 -27
- package/dist/types/coreComponents/DataBindingProvider.d.ts.map +0 -1
- package/dist/types/coreComponents/Entity.d.ts +0 -12
- package/dist/types/coreComponents/Entity.d.ts.map +0 -1
- package/dist/types/coreComponents/EntityList.d.ts +0 -15
- package/dist/types/coreComponents/EntityList.d.ts.map +0 -1
- package/dist/types/coreComponents/EntityListSubTree.d.ts +0 -26
- package/dist/types/coreComponents/EntityListSubTree.d.ts.map +0 -1
- package/dist/types/coreComponents/EntitySubTree.d.ts +0 -24
- package/dist/types/coreComponents/EntitySubTree.d.ts.map +0 -1
- package/dist/types/coreComponents/Field.d.ts +0 -14
- package/dist/types/coreComponents/Field.d.ts.map +0 -1
- package/dist/types/coreComponents/HasMany.d.ts +0 -16
- package/dist/types/coreComponents/HasMany.d.ts.map +0 -1
- package/dist/types/coreComponents/HasOne.d.ts +0 -12
- package/dist/types/coreComponents/HasOne.d.ts.map +0 -1
- package/dist/types/coreComponents/MarkerProvider.d.ts +0 -21
- package/dist/types/coreComponents/MarkerProvider.d.ts.map +0 -1
- package/dist/types/coreComponents/ParentEntity.d.ts +0 -10
- package/dist/types/coreComponents/ParentEntity.d.ts.map +0 -1
- package/dist/types/coreComponents/index.d.ts +0 -12
- package/dist/types/coreComponents/index.d.ts.map +0 -1
- package/dist/types/entityEvents/index.d.ts +0 -8
- package/dist/types/entityEvents/index.d.ts.map +0 -1
- package/dist/types/entityEvents/useDerivedField.d.ts +0 -9
- package/dist/types/entityEvents/useDerivedField.d.ts.map +0 -1
- package/dist/types/entityEvents/useEntityBeforePersist.d.ts +0 -3
- package/dist/types/entityEvents/useEntityBeforePersist.d.ts.map +0 -1
- package/dist/types/entityEvents/useEntityBeforeUpdate.d.ts +0 -3
- package/dist/types/entityEvents/useEntityBeforeUpdate.d.ts.map +0 -1
- package/dist/types/entityEvents/useEntityEvent.d.ts +0 -9
- package/dist/types/entityEvents/useEntityEvent.d.ts.map +0 -1
- package/dist/types/entityEvents/useEntityPersistError.d.ts +0 -3
- package/dist/types/entityEvents/useEntityPersistError.d.ts.map +0 -1
- package/dist/types/entityEvents/useEntityPersistSuccess.d.ts +0 -3
- package/dist/types/entityEvents/useEntityPersistSuccess.d.ts.map +0 -1
- package/dist/types/entityEvents/useOnConnectionUpdate.d.ts +0 -4
- package/dist/types/entityEvents/useOnConnectionUpdate.d.ts.map +0 -1
- package/dist/types/helperComponents/DeferredSubTrees.d.ts +0 -10
- package/dist/types/helperComponents/DeferredSubTrees.d.ts.map +0 -1
- package/dist/types/helperComponents/EntityView.d.ts +0 -12
- package/dist/types/helperComponents/EntityView.d.ts.map +0 -1
- package/dist/types/helperComponents/FieldView.d.ts +0 -59
- package/dist/types/helperComponents/FieldView.d.ts.map +0 -1
- package/dist/types/helperComponents/If.d.ts +0 -17
- package/dist/types/helperComponents/If.d.ts.map +0 -1
- package/dist/types/helperComponents/StaticRender.d.ts +0 -9
- package/dist/types/helperComponents/StaticRender.d.ts.map +0 -1
- package/dist/types/helperComponents/SugaredField.d.ts +0 -12
- package/dist/types/helperComponents/SugaredField.d.ts.map +0 -1
- package/dist/types/helperComponents/helpers/FilterEvaluator.d.ts +0 -9
- package/dist/types/helperComponents/helpers/FilterEvaluator.d.ts.map +0 -1
- package/dist/types/helperComponents/helpers/FilterFieldsCollector.d.ts +0 -10
- package/dist/types/helperComponents/helpers/FilterFieldsCollector.d.ts.map +0 -1
- package/dist/types/helperComponents/helpers/evaluateCondition.d.ts +0 -4
- package/dist/types/helperComponents/helpers/evaluateCondition.d.ts.map +0 -1
- package/dist/types/helperComponents/index.d.ts +0 -7
- package/dist/types/helperComponents/index.d.ts.map +0 -1
- package/src/accessorPropagation/AccessorProvider.tsx +0 -17
- package/src/accessorPropagation/BindingOperationsContext.ts +0 -32
- package/src/accessorPropagation/BindingOperationsProvider.tsx +0 -16
- package/src/accessorPropagation/EntityKeyContext.ts +0 -4
- package/src/accessorPropagation/EntityKeyProvider.tsx +0 -11
- package/src/accessorPropagation/EnvironmentContext.tsx +0 -44
- package/src/accessorPropagation/TreeRootIdContext.ts +0 -5
- package/src/accessorPropagation/TreeRootIdProvider.tsx +0 -12
- package/src/accessorPropagation/index.ts +0 -30
- package/src/accessorPropagation/useAccessorUpdateSubscription.ts +0 -107
- package/src/accessorPropagation/useBindingOperations.ts +0 -5
- package/src/accessorPropagation/useDesugaredRelativeEntityList.ts +0 -70
- package/src/accessorPropagation/useDesugaredRelativeSingleEntity.ts +0 -58
- package/src/accessorPropagation/useDesugaredRelativeSingleField.ts +0 -58
- package/src/accessorPropagation/useEntity.ts +0 -56
- package/src/accessorPropagation/useEntityKey.ts +0 -15
- package/src/accessorPropagation/useEntityList.ts +0 -49
- package/src/accessorPropagation/useEntityListSubTree.ts +0 -27
- package/src/accessorPropagation/useEntityListSubTreeParameters.ts +0 -88
- package/src/accessorPropagation/useEntitySubTree.ts +0 -26
- package/src/accessorPropagation/useEntitySubTreeParameters.ts +0 -66
- package/src/accessorPropagation/useEnvironment.ts +0 -7
- package/src/accessorPropagation/useExtendTree.ts +0 -30
- package/src/accessorPropagation/useField.ts +0 -51
- package/src/accessorPropagation/useGetEntityByKey.ts +0 -4
- package/src/accessorPropagation/useGetEntityListSubTree.ts +0 -28
- package/src/accessorPropagation/useGetEntitySubTree.ts +0 -28
- package/src/accessorPropagation/useGetTreeFilters.ts +0 -4
- package/src/accessorPropagation/useHasEntity.ts +0 -6
- package/src/accessorPropagation/usePersist.ts +0 -4
- package/src/accessorPropagation/useTreeRootId.ts +0 -5
- package/src/accessorSorting/SetOrderFieldOnCreate.tsx +0 -92
- package/src/accessorSorting/SortedEntities.ts +0 -9
- package/src/accessorSorting/addEntityAtIndex.ts +0 -27
- package/src/accessorSorting/errors.ts +0 -9
- package/src/accessorSorting/index.ts +0 -9
- package/src/accessorSorting/moveEntity.ts +0 -66
- package/src/accessorSorting/repairEntitiesOrder.ts +0 -15
- package/src/accessorSorting/sortEntities.ts +0 -20
- package/src/accessorSorting/useSortedEntities.ts +0 -102
- package/src/accessorTree/AccessorTree.tsx +0 -37
- package/src/accessorTree/AccessorTreeState.ts +0 -29
- package/src/accessorTree/AccessorTreeStateAction.ts +0 -21
- package/src/accessorTree/AccessorTreeStateContext.ts +0 -4
- package/src/accessorTree/AccessorTreeStateMetadata.ts +0 -3
- package/src/accessorTree/AccessorTreeStateOptions.ts +0 -7
- package/src/accessorTree/DirtinessContext.ts +0 -4
- package/src/accessorTree/MutationRequestResponse.ts +0 -64
- package/src/accessorTree/MutationStateContext.ts +0 -4
- package/src/accessorTree/RequestError.ts +0 -22
- package/src/accessorTree/accessorTreeStateReducer.ts +0 -36
- package/src/accessorTree/metadataToRequestError.ts +0 -14
- package/src/accessorTree/useAccessorTreeState.ts +0 -11
- package/src/accessorTree/useDataBinding.ts +0 -104
- package/src/accessorTree/useDirtinessState.ts +0 -4
- package/src/accessorTree/useMutationState.ts +0 -4
- package/src/core/IncrementalMarkerBuilder.ts +0 -60
- package/src/core/MarkerTreeGenerator.ts +0 -121
- package/src/coreComponents/Component.tsx +0 -74
- package/src/coreComponents/DataBindingProvider.tsx +0 -54
- package/src/coreComponents/Entity.tsx +0 -26
- package/src/coreComponents/EntityList.tsx +0 -55
- package/src/coreComponents/EntityListSubTree.tsx +0 -83
- package/src/coreComponents/EntitySubTree.tsx +0 -93
- package/src/coreComponents/Field.tsx +0 -46
- package/src/coreComponents/HasMany.tsx +0 -47
- package/src/coreComponents/HasOne.tsx +0 -41
- package/src/coreComponents/MarkerProvider.ts +0 -59
- package/src/coreComponents/ParentEntity.tsx +0 -20
- package/src/coreComponents/index.ts +0 -11
- package/src/entityEvents/index.ts +0 -7
- package/src/entityEvents/useDerivedField.ts +0 -64
- package/src/entityEvents/useEntityBeforePersist.ts +0 -6
- package/src/entityEvents/useEntityBeforeUpdate.ts +0 -6
- package/src/entityEvents/useEntityEvent.ts +0 -57
- package/src/entityEvents/useEntityPersistError.ts +0 -6
- package/src/entityEvents/useEntityPersistSuccess.ts +0 -6
- package/src/entityEvents/useOnConnectionUpdate.ts +0 -10
- package/src/helperComponents/DeferredSubTrees.tsx +0 -126
- package/src/helperComponents/EntityView.tsx +0 -19
- package/src/helperComponents/FieldView.tsx +0 -142
- package/src/helperComponents/If.tsx +0 -74
- package/src/helperComponents/StaticRender.tsx +0 -15
- package/src/helperComponents/SugaredField.tsx +0 -18
- package/src/helperComponents/helpers/FilterEvaluator.ts +0 -46
- package/src/helperComponents/helpers/FilterFieldsCollector.ts +0 -46
- package/src/helperComponents/helpers/evaluateCondition.ts +0 -52
- package/src/helperComponents/index.ts +0 -6
|
@@ -0,0 +1,517 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
|
+
var __publicField = (obj, key, value) => {
|
|
5
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6
|
+
return value;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
9
|
+
const Parser = require("./Parser.cjs");
|
|
10
|
+
const client = require("@contember/client");
|
|
11
|
+
const EntityListPreferences = require("../treeParameters/EntityListPreferences.cjs");
|
|
12
|
+
const TreeParameterMerger = require("../core/TreeParameterMerger.cjs");
|
|
13
|
+
const Relation = require("../treeParameters/Relation.cjs");
|
|
14
|
+
const EntityCreationParameters = require("../treeParameters/EntityCreationParameters.cjs");
|
|
15
|
+
const QualifiedEntityParameters = require("../treeParameters/QualifiedEntityParameters.cjs");
|
|
16
|
+
const VariableInputTransformer = require("../core/VariableInputTransformer.cjs");
|
|
17
|
+
const LeafField = require("../treeParameters/LeafField.cjs");
|
|
18
|
+
const EventListenersStore = require("../treeParameters/EventListenersStore.cjs");
|
|
19
|
+
const emptyObject = Object.freeze({});
|
|
20
|
+
const _QueryLanguage = class {
|
|
21
|
+
static preparePrimitiveEntryPoint(entryPoint) {
|
|
22
|
+
return (input, environment) => Parser.Parser.parseQueryLanguageExpression(input, entryPoint, environment);
|
|
23
|
+
}
|
|
24
|
+
static preparePrimitiveEntryPointWithFallback(entryPoint) {
|
|
25
|
+
return (input, environment) => {
|
|
26
|
+
if (typeof input === "string") {
|
|
27
|
+
return Parser.Parser.parseQueryLanguageExpression(input, entryPoint, environment);
|
|
28
|
+
}
|
|
29
|
+
return input;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
static desugarEntityListParameters(sugarablePart, unsugarablePart, environment) {
|
|
33
|
+
return {
|
|
34
|
+
filter: sugarablePart.filter ? this.desugarFilter(sugarablePart.filter, environment) : void 0,
|
|
35
|
+
limit: unsugarablePart.limit,
|
|
36
|
+
offset: unsugarablePart.offset,
|
|
37
|
+
orderBy: unsugarablePart.orderBy ? this.desugarOrderBy(unsugarablePart.orderBy, environment) : void 0,
|
|
38
|
+
initialEntityCount: unsugarablePart.initialEntityCount ?? EntityListPreferences.EntityListPreferencesDefaults.initialEntityCount
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
static desugarSetOnCreate(setOnCreate, environment) {
|
|
42
|
+
if (Array.isArray(setOnCreate)) {
|
|
43
|
+
const whereList = setOnCreate.map((connection) => this.desugarUniqueWhere(connection, environment));
|
|
44
|
+
return whereList.reduce(
|
|
45
|
+
(accumulator, uniqueWhere) => TreeParameterMerger.TreeParameterMerger.mergeSetOnCreate(accumulator, uniqueWhere)
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
if (typeof setOnCreate === "string") {
|
|
49
|
+
return this.desugarUniqueWhere(setOnCreate, environment);
|
|
50
|
+
}
|
|
51
|
+
return setOnCreate;
|
|
52
|
+
}
|
|
53
|
+
static desugarEventListener(listener) {
|
|
54
|
+
if (typeof listener === "function") {
|
|
55
|
+
return /* @__PURE__ */ new Set([listener]);
|
|
56
|
+
}
|
|
57
|
+
return listener;
|
|
58
|
+
}
|
|
59
|
+
static desugarSingleEntityEventListeners(unsugarable) {
|
|
60
|
+
if (unsugarable.onBeforePersist === void 0 && unsugarable.onBeforeUpdate === void 0 && unsugarable.onInitialize === void 0 && unsugarable.onPersistError === void 0 && unsugarable.onPersistSuccess === void 0 && unsugarable.onUpdate === void 0) {
|
|
61
|
+
return void 0;
|
|
62
|
+
}
|
|
63
|
+
const store = new EventListenersStore.EventListenersStore();
|
|
64
|
+
if (unsugarable.onConnectionUpdate) {
|
|
65
|
+
for (const fieldName in unsugarable.onConnectionUpdate) {
|
|
66
|
+
const listener = this.desugarEventListener(unsugarable.onConnectionUpdate[fieldName]);
|
|
67
|
+
store.set({ type: "connectionUpdate", key: fieldName }, listener);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
const beforePersist = this.desugarEventListener(unsugarable.onBeforePersist);
|
|
71
|
+
const beforeUpdate = this.desugarEventListener(unsugarable.onBeforeUpdate);
|
|
72
|
+
const initialize = this.desugarEventListener(unsugarable.onInitialize);
|
|
73
|
+
const persistError = this.desugarEventListener(unsugarable.onPersistError);
|
|
74
|
+
const persistSuccess = this.desugarEventListener(unsugarable.onPersistSuccess);
|
|
75
|
+
const update = this.desugarEventListener(unsugarable.onUpdate);
|
|
76
|
+
if (beforePersist) {
|
|
77
|
+
store.set({ type: "beforePersist" }, beforePersist);
|
|
78
|
+
}
|
|
79
|
+
if (beforeUpdate) {
|
|
80
|
+
store.set({ type: "beforeUpdate" }, beforeUpdate);
|
|
81
|
+
}
|
|
82
|
+
if (initialize) {
|
|
83
|
+
store.set({ type: "initialize" }, initialize);
|
|
84
|
+
}
|
|
85
|
+
if (persistError) {
|
|
86
|
+
store.set({ type: "persistError" }, persistError);
|
|
87
|
+
}
|
|
88
|
+
if (persistSuccess) {
|
|
89
|
+
store.set({ type: "persistSuccess" }, persistSuccess);
|
|
90
|
+
}
|
|
91
|
+
if (update) {
|
|
92
|
+
store.set({ type: "update" }, update);
|
|
93
|
+
}
|
|
94
|
+
return store;
|
|
95
|
+
}
|
|
96
|
+
static desugarEntityListEventListeners(unsugarable) {
|
|
97
|
+
if (unsugarable.onBeforePersist === void 0 && unsugarable.onBeforeUpdate === void 0 && unsugarable.onChildBeforeUpdate === void 0 && unsugarable.onChildInitialize === void 0 && unsugarable.onChildUpdate === void 0 && unsugarable.onInitialize === void 0 && unsugarable.onPersistError === void 0 && unsugarable.onPersistSuccess === void 0 && unsugarable.onUpdate === void 0) {
|
|
98
|
+
return void 0;
|
|
99
|
+
}
|
|
100
|
+
const eventListeners = new EventListenersStore.EventListenersStore();
|
|
101
|
+
const beforePersist = this.desugarEventListener(unsugarable.onBeforePersist);
|
|
102
|
+
const beforeUpdate = this.desugarEventListener(unsugarable.onBeforeUpdate);
|
|
103
|
+
const initialize = this.desugarEventListener(unsugarable.onInitialize);
|
|
104
|
+
const persistError = this.desugarEventListener(unsugarable.onPersistError);
|
|
105
|
+
const persistSuccess = this.desugarEventListener(unsugarable.onPersistSuccess);
|
|
106
|
+
const update = this.desugarEventListener(unsugarable.onUpdate);
|
|
107
|
+
if (beforePersist) {
|
|
108
|
+
eventListeners.set({ type: "beforePersist" }, beforePersist);
|
|
109
|
+
}
|
|
110
|
+
if (beforeUpdate) {
|
|
111
|
+
eventListeners.set({ type: "beforeUpdate" }, beforeUpdate);
|
|
112
|
+
}
|
|
113
|
+
if (initialize) {
|
|
114
|
+
eventListeners.set({ type: "initialize" }, initialize);
|
|
115
|
+
}
|
|
116
|
+
if (persistError) {
|
|
117
|
+
eventListeners.set({ type: "persistError" }, persistError);
|
|
118
|
+
}
|
|
119
|
+
if (persistSuccess) {
|
|
120
|
+
eventListeners.set({ type: "persistSuccess" }, persistSuccess);
|
|
121
|
+
}
|
|
122
|
+
if (update) {
|
|
123
|
+
eventListeners.set({ type: "update" }, update);
|
|
124
|
+
}
|
|
125
|
+
const childEventListeners = new EventListenersStore.EventListenersStore();
|
|
126
|
+
const childBeforeUpdate = this.desugarEventListener(unsugarable.onChildBeforeUpdate);
|
|
127
|
+
const childInitialize = this.desugarEventListener(unsugarable.onChildInitialize);
|
|
128
|
+
const childUpdate = this.desugarEventListener(unsugarable.onChildUpdate);
|
|
129
|
+
if (childBeforeUpdate) {
|
|
130
|
+
childEventListeners.set({ type: "beforeUpdate" }, childBeforeUpdate);
|
|
131
|
+
}
|
|
132
|
+
if (childInitialize) {
|
|
133
|
+
childEventListeners.set({ type: "initialize" }, childInitialize);
|
|
134
|
+
}
|
|
135
|
+
if (childUpdate) {
|
|
136
|
+
childEventListeners.set({ type: "update" }, childUpdate);
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
eventListeners,
|
|
140
|
+
childEventListeners
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
static desugarFieldEventListeners(unsugarable) {
|
|
144
|
+
if (unsugarable.onBeforeUpdate === void 0 && unsugarable.onUpdate === void 0) {
|
|
145
|
+
return void 0;
|
|
146
|
+
}
|
|
147
|
+
const store = new EventListenersStore.EventListenersStore();
|
|
148
|
+
const beforeUpdate = this.desugarEventListener(unsugarable.onBeforeUpdate);
|
|
149
|
+
const update = this.desugarEventListener(unsugarable.onUpdate);
|
|
150
|
+
if (beforeUpdate) {
|
|
151
|
+
store.set({ type: "beforeUpdate" }, beforeUpdate);
|
|
152
|
+
}
|
|
153
|
+
if (update) {
|
|
154
|
+
store.set({ type: "update" }, update);
|
|
155
|
+
}
|
|
156
|
+
return store;
|
|
157
|
+
}
|
|
158
|
+
static desugarSubTreeAlias(alias) {
|
|
159
|
+
if (alias === void 0) {
|
|
160
|
+
return void 0;
|
|
161
|
+
}
|
|
162
|
+
if (alias instanceof Set) {
|
|
163
|
+
return alias;
|
|
164
|
+
}
|
|
165
|
+
return (/* @__PURE__ */ new Set()).add(alias);
|
|
166
|
+
}
|
|
167
|
+
static desugarHasOneRelation(sugarable, unsugarable, environment) {
|
|
168
|
+
return {
|
|
169
|
+
field: sugarable.field,
|
|
170
|
+
filter: sugarable.filter ? this.desugarFilter(sugarable.filter, environment) : void 0,
|
|
171
|
+
expectedMutation: unsugarable.expectedMutation ?? Relation.RelationDefaults.expectedMutation,
|
|
172
|
+
reducedBy: sugarable.reducedBy ? this.desugarUniqueWhere(sugarable.reducedBy, environment) : void 0,
|
|
173
|
+
setOnCreate: unsugarable.setOnCreate ? this.desugarSetOnCreate(unsugarable.setOnCreate, environment) : void 0,
|
|
174
|
+
isNonbearing: unsugarable.isNonbearing ?? EntityCreationParameters.EntityCreationParametersDefaults.isNonbearing,
|
|
175
|
+
// forceCreation: unsugarable.forceCreation ?? EntityCreationParametersDefaults.forceCreation,
|
|
176
|
+
eventListeners: this.desugarSingleEntityEventListeners(unsugarable)
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
static augmentDesugaredHasOneRelationPath(path, unsugarable, environment) {
|
|
180
|
+
return path.map(
|
|
181
|
+
(desugaredHasOneRelation, i) => (
|
|
182
|
+
// Unsugarable applies to the last
|
|
183
|
+
this.desugarHasOneRelation(desugaredHasOneRelation, i === path.length - 1 ? unsugarable : {}, environment)
|
|
184
|
+
)
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
static augmentDesugaredHasManyRelation(relation, unsugarable, environment) {
|
|
188
|
+
const eventListeners = this.desugarEntityListEventListeners(unsugarable);
|
|
189
|
+
return {
|
|
190
|
+
field: relation.field,
|
|
191
|
+
filter: relation.filter,
|
|
192
|
+
expectedMutation: unsugarable.expectedMutation ?? Relation.RelationDefaults.expectedMutation,
|
|
193
|
+
isNonbearing: unsugarable.isNonbearing ?? EntityCreationParameters.EntityCreationParametersDefaults.isNonbearing,
|
|
194
|
+
// forceCreation: unsugarable.forceCreation ?? EntityCreationParametersDefaults.forceCreation,
|
|
195
|
+
initialEntityCount: unsugarable.initialEntityCount ?? EntityListPreferences.EntityListPreferencesDefaults.initialEntityCount,
|
|
196
|
+
setOnCreate: unsugarable.setOnCreate ? this.desugarSetOnCreate(unsugarable.setOnCreate, environment) : void 0,
|
|
197
|
+
orderBy: unsugarable.orderBy ? this.desugarOrderBy(unsugarable.orderBy, environment) : void 0,
|
|
198
|
+
offset: unsugarable.offset,
|
|
199
|
+
limit: unsugarable.limit,
|
|
200
|
+
childEventListeners: eventListeners?.childEventListeners,
|
|
201
|
+
eventListeners: eventListeners?.eventListeners
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
static desugarHasOneRelationPath(input, lastRelation, environment) {
|
|
205
|
+
if (input === void 0) {
|
|
206
|
+
input = [];
|
|
207
|
+
} else if (!Array.isArray(input)) {
|
|
208
|
+
input = [input];
|
|
209
|
+
}
|
|
210
|
+
const relationPath = [];
|
|
211
|
+
const cappedLength = input.length - 1;
|
|
212
|
+
let i = 0;
|
|
213
|
+
for (; i < cappedLength; i++) {
|
|
214
|
+
const pathNode = input[i];
|
|
215
|
+
relationPath.push(this.desugarHasOneRelation(pathNode, {}, environment));
|
|
216
|
+
}
|
|
217
|
+
if (i in input) {
|
|
218
|
+
relationPath.push(this.desugarHasOneRelation(input[i], lastRelation, environment));
|
|
219
|
+
}
|
|
220
|
+
return relationPath;
|
|
221
|
+
}
|
|
222
|
+
static desugarHasManyRelation(sugarablePart, unsugarablePart, environment) {
|
|
223
|
+
const eventListeners = this.desugarEntityListEventListeners(unsugarablePart);
|
|
224
|
+
return {
|
|
225
|
+
...this.desugarEntityListParameters(sugarablePart, unsugarablePart, environment),
|
|
226
|
+
expectedMutation: unsugarablePart.expectedMutation ?? Relation.RelationDefaults.expectedMutation,
|
|
227
|
+
setOnCreate: unsugarablePart.setOnCreate ? this.desugarSetOnCreate(unsugarablePart.setOnCreate, environment) : void 0,
|
|
228
|
+
field: sugarablePart.field,
|
|
229
|
+
isNonbearing: unsugarablePart.isNonbearing ?? EntityCreationParameters.EntityCreationParametersDefaults.isNonbearing,
|
|
230
|
+
// forceCreation: unsugarablePart.forceCreation ?? EntityCreationParametersDefaults.forceCreation,
|
|
231
|
+
childEventListeners: eventListeners?.childEventListeners,
|
|
232
|
+
eventListeners: eventListeners?.eventListeners
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
static desugarUnconstrainedQualifiedEntityList({ entities, ...unsugarableEntityList }, environment) {
|
|
236
|
+
let hasOneRelationPath;
|
|
237
|
+
let entityName;
|
|
238
|
+
if (typeof entities === "string") {
|
|
239
|
+
const parsed = this.parseUnconstrainedQualifiedEntityList(entities, environment);
|
|
240
|
+
entityName = parsed.entityName;
|
|
241
|
+
hasOneRelationPath = this.augmentDesugaredHasOneRelationPath(
|
|
242
|
+
parsed.hasOneRelationPath,
|
|
243
|
+
emptyObject,
|
|
244
|
+
environment
|
|
245
|
+
);
|
|
246
|
+
} else {
|
|
247
|
+
entityName = entities.entityName;
|
|
248
|
+
hasOneRelationPath = this.desugarHasOneRelationPath(entities.hasOneRelationPath, emptyObject, environment);
|
|
249
|
+
}
|
|
250
|
+
const eventListeners = this.desugarEntityListEventListeners(unsugarableEntityList);
|
|
251
|
+
return {
|
|
252
|
+
isCreating: true,
|
|
253
|
+
isUnpersisted: unsugarableEntityList.isUnpersisted ?? false,
|
|
254
|
+
isNonbearing: unsugarableEntityList.isNonbearing ?? EntityCreationParameters.EntityCreationParametersDefaults.isNonbearing,
|
|
255
|
+
// forceCreation: unsugarableEntityList.forceCreation ?? EntityCreationParametersDefaults.forceCreation,
|
|
256
|
+
setOnCreate: unsugarableEntityList.setOnCreate ? this.desugarSetOnCreate(unsugarableEntityList.setOnCreate, environment) : void 0,
|
|
257
|
+
expectedMutation: unsugarableEntityList.expectedMutation ?? QualifiedEntityParameters.QualifiedEntityParametersDefaults.expectedMutation,
|
|
258
|
+
childEventListeners: eventListeners?.childEventListeners,
|
|
259
|
+
eventListeners: eventListeners?.eventListeners,
|
|
260
|
+
initialEntityCount: unsugarableEntityList.initialEntityCount ?? EntityListPreferences.EntityListPreferencesDefaults.initialEntityCount,
|
|
261
|
+
alias: this.desugarSubTreeAlias(unsugarableEntityList.alias),
|
|
262
|
+
entityName,
|
|
263
|
+
hasOneRelationPath
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
static desugarUnconstrainedQualifiedSingleEntity({ entity, ...unsugarableSingleEntity }, environment) {
|
|
267
|
+
let hasOneRelationPath;
|
|
268
|
+
let entityName;
|
|
269
|
+
if (typeof entity === "string") {
|
|
270
|
+
const parsed = this.parseUnconstrainedQualifiedSingleEntity(entity, environment);
|
|
271
|
+
entityName = parsed.entityName;
|
|
272
|
+
hasOneRelationPath = this.augmentDesugaredHasOneRelationPath(
|
|
273
|
+
parsed.hasOneRelationPath,
|
|
274
|
+
unsugarableSingleEntity,
|
|
275
|
+
environment
|
|
276
|
+
);
|
|
277
|
+
} else {
|
|
278
|
+
entityName = entity.entityName;
|
|
279
|
+
hasOneRelationPath = this.desugarHasOneRelationPath(
|
|
280
|
+
entity.hasOneRelationPath,
|
|
281
|
+
unsugarableSingleEntity,
|
|
282
|
+
environment
|
|
283
|
+
);
|
|
284
|
+
}
|
|
285
|
+
return {
|
|
286
|
+
isCreating: true,
|
|
287
|
+
isUnpersisted: unsugarableSingleEntity.isUnpersisted ?? false,
|
|
288
|
+
isNonbearing: unsugarableSingleEntity.isNonbearing ?? EntityCreationParameters.EntityCreationParametersDefaults.isNonbearing,
|
|
289
|
+
// forceCreation: unsugarableSingleEntity.forceCreation ?? EntityCreationParametersDefaults.forceCreation,
|
|
290
|
+
setOnCreate: unsugarableSingleEntity.setOnCreate ? this.desugarSetOnCreate(unsugarableSingleEntity.setOnCreate, environment) : void 0,
|
|
291
|
+
expectedMutation: unsugarableSingleEntity.expectedMutation ?? QualifiedEntityParameters.QualifiedEntityParametersDefaults.expectedMutation,
|
|
292
|
+
eventListeners: this.desugarSingleEntityEventListeners(unsugarableSingleEntity),
|
|
293
|
+
alias: this.desugarSubTreeAlias(unsugarableSingleEntity.alias),
|
|
294
|
+
entityName,
|
|
295
|
+
hasOneRelationPath
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
static desugarQualifiedEntityList({ entities, ...unsugarableEntityList }, environment) {
|
|
299
|
+
let entityName;
|
|
300
|
+
let hasOneRelationPath;
|
|
301
|
+
let filter;
|
|
302
|
+
if (typeof entities === "string") {
|
|
303
|
+
const parsed = this.parseQualifiedEntityList(entities, environment);
|
|
304
|
+
entityName = parsed.entityName;
|
|
305
|
+
filter = parsed.filter;
|
|
306
|
+
hasOneRelationPath = this.augmentDesugaredHasOneRelationPath(
|
|
307
|
+
parsed.hasOneRelationPath,
|
|
308
|
+
emptyObject,
|
|
309
|
+
environment
|
|
310
|
+
);
|
|
311
|
+
} else {
|
|
312
|
+
entityName = entities.entityName;
|
|
313
|
+
filter = entities.filter;
|
|
314
|
+
hasOneRelationPath = this.desugarHasOneRelationPath(entities.hasOneRelationPath, emptyObject, environment);
|
|
315
|
+
}
|
|
316
|
+
const eventListeners = this.desugarEntityListEventListeners(unsugarableEntityList);
|
|
317
|
+
return {
|
|
318
|
+
entityName,
|
|
319
|
+
hasOneRelationPath,
|
|
320
|
+
...this.desugarEntityListParameters(
|
|
321
|
+
{
|
|
322
|
+
filter
|
|
323
|
+
},
|
|
324
|
+
unsugarableEntityList,
|
|
325
|
+
environment
|
|
326
|
+
),
|
|
327
|
+
alias: this.desugarSubTreeAlias(unsugarableEntityList.alias),
|
|
328
|
+
isCreating: false,
|
|
329
|
+
isNonbearing: unsugarableEntityList.isNonbearing ?? EntityCreationParameters.EntityCreationParametersDefaults.isNonbearing,
|
|
330
|
+
// forceCreation: unsugarableEntityList.forceCreation ?? EntityCreationParametersDefaults.forceCreation,
|
|
331
|
+
setOnCreate: unsugarableEntityList.setOnCreate ? this.desugarSetOnCreate(unsugarableEntityList.setOnCreate, environment) : void 0,
|
|
332
|
+
expectedMutation: unsugarableEntityList.expectedMutation ?? QualifiedEntityParameters.QualifiedEntityParametersDefaults.expectedMutation,
|
|
333
|
+
childEventListeners: eventListeners?.childEventListeners,
|
|
334
|
+
eventListeners: eventListeners?.eventListeners
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
static desugarQualifiedFieldList({ fields, ...unsugarableFieldList }, environment) {
|
|
338
|
+
let field;
|
|
339
|
+
let entityName;
|
|
340
|
+
let filter;
|
|
341
|
+
let hasOneRelationPath;
|
|
342
|
+
if (typeof fields === "string") {
|
|
343
|
+
const parsed = this.parseQualifiedFieldList(fields, environment);
|
|
344
|
+
field = parsed.field;
|
|
345
|
+
entityName = parsed.entityName;
|
|
346
|
+
filter = parsed.filter;
|
|
347
|
+
hasOneRelationPath = this.augmentDesugaredHasOneRelationPath(
|
|
348
|
+
parsed.hasOneRelationPath,
|
|
349
|
+
emptyObject,
|
|
350
|
+
environment
|
|
351
|
+
);
|
|
352
|
+
} else {
|
|
353
|
+
field = fields.field;
|
|
354
|
+
entityName = fields.entityName;
|
|
355
|
+
filter = fields.filter;
|
|
356
|
+
hasOneRelationPath = this.desugarHasOneRelationPath(fields.hasOneRelationPath, emptyObject, environment);
|
|
357
|
+
}
|
|
358
|
+
return {
|
|
359
|
+
field,
|
|
360
|
+
entityName,
|
|
361
|
+
hasOneRelationPath,
|
|
362
|
+
alias: this.desugarSubTreeAlias(unsugarableFieldList.alias),
|
|
363
|
+
isNonbearing: unsugarableFieldList.isNonbearing ?? EntityCreationParameters.EntityCreationParametersDefaults.isNonbearing,
|
|
364
|
+
// forceCreation: unsugarableFieldList.forceCreation ?? EntityCreationParametersDefaults.forceCreation,
|
|
365
|
+
defaultValue: unsugarableFieldList.defaultValue !== void 0 ? VariableInputTransformer.VariableInputTransformer.transformValue(unsugarableFieldList.defaultValue, environment) : void 0,
|
|
366
|
+
expectedMutation: unsugarableFieldList.expectedMutation ?? QualifiedEntityParameters.QualifiedEntityParametersDefaults.expectedMutation,
|
|
367
|
+
eventListeners: this.desugarFieldEventListeners(unsugarableFieldList),
|
|
368
|
+
...this.desugarEntityListParameters({ filter }, unsugarableFieldList, environment)
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
static desugarQualifiedSingleEntity({ entity, ...unsugarableSingleEntity }, environment, options = {}) {
|
|
372
|
+
let entityName;
|
|
373
|
+
let where;
|
|
374
|
+
let filter;
|
|
375
|
+
let hasOneRelationPath;
|
|
376
|
+
if (typeof entity === "string") {
|
|
377
|
+
const parsed = this.parseQualifiedSingleEntity(entity, environment);
|
|
378
|
+
entityName = parsed.entityName;
|
|
379
|
+
where = parsed.where;
|
|
380
|
+
filter = parsed.filter;
|
|
381
|
+
hasOneRelationPath = this.augmentDesugaredHasOneRelationPath(
|
|
382
|
+
parsed.hasOneRelationPath,
|
|
383
|
+
unsugarableSingleEntity,
|
|
384
|
+
environment
|
|
385
|
+
);
|
|
386
|
+
} else {
|
|
387
|
+
entityName = entity.entityName;
|
|
388
|
+
where = this.desugarUniqueWhere(entity.where, environment);
|
|
389
|
+
filter = entity.filter ? this.desugarFilter(entity.filter, environment) : void 0;
|
|
390
|
+
hasOneRelationPath = this.desugarHasOneRelationPath(
|
|
391
|
+
entity.hasOneRelationPath,
|
|
392
|
+
unsugarableSingleEntity,
|
|
393
|
+
environment
|
|
394
|
+
);
|
|
395
|
+
}
|
|
396
|
+
let setOnCreate = unsugarableSingleEntity.setOnCreate !== void 0 ? this.desugarSetOnCreate(unsugarableSingleEntity.setOnCreate, environment) : void 0;
|
|
397
|
+
if (!setOnCreate && options.missingSetOnCreate) {
|
|
398
|
+
const whereValues = Object.values(where);
|
|
399
|
+
if (whereValues.length === 1 && whereValues[0] instanceof client.GraphQlLiteral) {
|
|
400
|
+
setOnCreate = where;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
const isNonbearing = unsugarableSingleEntity.isNonbearing !== void 0 ? unsugarableSingleEntity.isNonbearing : EntityCreationParameters.EntityCreationParametersDefaults.isNonbearing;
|
|
404
|
+
const eventListeners = this.desugarSingleEntityEventListeners(unsugarableSingleEntity);
|
|
405
|
+
const expectedMutation = unsugarableSingleEntity.expectedMutation ?? QualifiedEntityParameters.QualifiedEntityParametersDefaults.expectedMutation;
|
|
406
|
+
const alias = this.desugarSubTreeAlias(unsugarableSingleEntity.alias);
|
|
407
|
+
return {
|
|
408
|
+
alias,
|
|
409
|
+
entityName,
|
|
410
|
+
isCreating: false,
|
|
411
|
+
where,
|
|
412
|
+
filter,
|
|
413
|
+
hasOneRelationPath,
|
|
414
|
+
// forceCreation,
|
|
415
|
+
setOnCreate,
|
|
416
|
+
isNonbearing,
|
|
417
|
+
eventListeners,
|
|
418
|
+
expectedMutation
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
static desugarParentEntityParameters(parentEntity, environment) {
|
|
422
|
+
return {
|
|
423
|
+
eventListeners: this.desugarSingleEntityEventListeners(parentEntity)
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
static desugarRelativeSingleEntity(sugaredRelativeSingleEntity, environment) {
|
|
427
|
+
if (typeof sugaredRelativeSingleEntity === "string") {
|
|
428
|
+
return this.desugarRelativeSingleEntity({ field: sugaredRelativeSingleEntity }, environment);
|
|
429
|
+
}
|
|
430
|
+
const { field, ...unsugarableEntity } = sugaredRelativeSingleEntity;
|
|
431
|
+
let hasOneRelationPath;
|
|
432
|
+
if (typeof field === "string") {
|
|
433
|
+
const parsed = this.parseRelativeSingleEntity(field, environment);
|
|
434
|
+
hasOneRelationPath = this.augmentDesugaredHasOneRelationPath(
|
|
435
|
+
parsed.hasOneRelationPath,
|
|
436
|
+
unsugarableEntity,
|
|
437
|
+
environment
|
|
438
|
+
);
|
|
439
|
+
} else {
|
|
440
|
+
hasOneRelationPath = this.desugarHasOneRelationPath(field, unsugarableEntity, environment);
|
|
441
|
+
}
|
|
442
|
+
return {
|
|
443
|
+
hasOneRelationPath
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
static desugarRelativeSingleField(sugaredRelativeSingleField, environment) {
|
|
447
|
+
if (typeof sugaredRelativeSingleField === "string") {
|
|
448
|
+
return this.desugarRelativeSingleField({ field: sugaredRelativeSingleField }, environment);
|
|
449
|
+
}
|
|
450
|
+
const { field, ...unsugarableField } = sugaredRelativeSingleField;
|
|
451
|
+
let hasOneRelationPath;
|
|
452
|
+
let fieldName;
|
|
453
|
+
if (typeof field === "string") {
|
|
454
|
+
const parsed = this.parseRelativeSingleField(field, environment);
|
|
455
|
+
hasOneRelationPath = this.augmentDesugaredHasOneRelationPath(parsed.hasOneRelationPath, {}, environment);
|
|
456
|
+
fieldName = parsed.field;
|
|
457
|
+
} else {
|
|
458
|
+
hasOneRelationPath = this.desugarHasOneRelationPath(field.hasOneRelationPath, {}, environment);
|
|
459
|
+
fieldName = field.field;
|
|
460
|
+
}
|
|
461
|
+
return {
|
|
462
|
+
eventListeners: this.desugarFieldEventListeners(unsugarableField),
|
|
463
|
+
hasOneRelationPath,
|
|
464
|
+
field: fieldName,
|
|
465
|
+
isNonbearing: unsugarableField.isNonbearing ?? LeafField.LeafFieldDefaults.isNonbearing,
|
|
466
|
+
defaultValue: unsugarableField.defaultValue !== void 0 ? VariableInputTransformer.VariableInputTransformer.transformValue(unsugarableField.defaultValue, environment) : void 0
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
static desugarRelativeEntityList(sugaredRelativeEntityList, environment) {
|
|
470
|
+
if (typeof sugaredRelativeEntityList === "string") {
|
|
471
|
+
return this.desugarRelativeEntityList(
|
|
472
|
+
{
|
|
473
|
+
field: sugaredRelativeEntityList
|
|
474
|
+
},
|
|
475
|
+
environment
|
|
476
|
+
);
|
|
477
|
+
}
|
|
478
|
+
const { field, ...unsugarableEntityList } = sugaredRelativeEntityList;
|
|
479
|
+
let hasOneRelationPath;
|
|
480
|
+
let hasManyRelation;
|
|
481
|
+
if (typeof field === "string") {
|
|
482
|
+
const parsed = this.parseRelativeEntityList(field, environment);
|
|
483
|
+
hasOneRelationPath = this.augmentDesugaredHasOneRelationPath(
|
|
484
|
+
parsed.hasOneRelationPath,
|
|
485
|
+
emptyObject,
|
|
486
|
+
environment
|
|
487
|
+
);
|
|
488
|
+
hasManyRelation = this.augmentDesugaredHasManyRelation(
|
|
489
|
+
parsed.hasManyRelation,
|
|
490
|
+
unsugarableEntityList,
|
|
491
|
+
environment
|
|
492
|
+
);
|
|
493
|
+
} else {
|
|
494
|
+
hasOneRelationPath = this.desugarHasOneRelationPath(field.hasOneRelationPath || [], emptyObject, environment);
|
|
495
|
+
hasManyRelation = this.desugarHasManyRelation(field.hasManyRelation, unsugarableEntityList, environment);
|
|
496
|
+
}
|
|
497
|
+
return {
|
|
498
|
+
hasManyRelation,
|
|
499
|
+
hasOneRelationPath
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
};
|
|
503
|
+
let QueryLanguage = _QueryLanguage;
|
|
504
|
+
__publicField(QueryLanguage, "parseUnconstrainedQualifiedEntityList", _QueryLanguage.preparePrimitiveEntryPoint("unconstrainedQualifiedEntityList"));
|
|
505
|
+
__publicField(QueryLanguage, "parseUnconstrainedQualifiedSingleEntity", _QueryLanguage.preparePrimitiveEntryPoint("unconstrainedQualifiedEntityList"));
|
|
506
|
+
__publicField(QueryLanguage, "parseQualifiedEntityList", _QueryLanguage.preparePrimitiveEntryPoint("qualifiedEntityList"));
|
|
507
|
+
__publicField(QueryLanguage, "parseQualifiedFieldList", _QueryLanguage.preparePrimitiveEntryPoint("qualifiedFieldList"));
|
|
508
|
+
__publicField(QueryLanguage, "parseQualifiedSingleEntity", _QueryLanguage.preparePrimitiveEntryPoint("qualifiedSingleEntity"));
|
|
509
|
+
__publicField(QueryLanguage, "parseRelativeEntityList", _QueryLanguage.preparePrimitiveEntryPoint("relativeEntityList"));
|
|
510
|
+
__publicField(QueryLanguage, "parseRelativeSingleEntity", _QueryLanguage.preparePrimitiveEntryPoint("relativeSingleEntity"));
|
|
511
|
+
__publicField(QueryLanguage, "parseRelativeSingleField", _QueryLanguage.preparePrimitiveEntryPoint("relativeSingleField"));
|
|
512
|
+
__publicField(QueryLanguage, "desugarUniqueWhere", _QueryLanguage.preparePrimitiveEntryPointWithFallback("uniqueWhere"));
|
|
513
|
+
__publicField(QueryLanguage, "desugarFilter", _QueryLanguage.preparePrimitiveEntryPointWithFallback("filter"));
|
|
514
|
+
__publicField(QueryLanguage, "desugarOrderBy", _QueryLanguage.preparePrimitiveEntryPointWithFallback("orderBy"));
|
|
515
|
+
__publicField(QueryLanguage, "desugarTaggedMap", _QueryLanguage.preparePrimitiveEntryPointWithFallback("taggedMap"));
|
|
516
|
+
exports.QueryLanguage = QueryLanguage;
|
|
517
|
+
//# sourceMappingURL=QueryLanguage.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryLanguage.cjs","sources":["../../../src/queryLanguage/QueryLanguage.ts"],"sourcesContent":["import { TreeParameterMerger, VariableInputTransformer } from '../core'\nimport type { Environment } from '../dao'\nimport {\n\tAlias,\n\tEntityCreationParametersDefaults,\n\tEntityEventListenerStore,\n\tEntityListEventListenerStore,\n\tEntityListParameters,\n\tEntityListPreferencesDefaults,\n\tEntityName,\n\tEventListenersStore,\n\tFieldEventListenerStore,\n\tFieldName,\n\tFilter,\n\tHasManyRelation,\n\tHasOneRelation,\n\tLeafFieldDefaults,\n\tParentEntityParameters,\n\tQualifiedEntityList,\n\tQualifiedEntityParametersDefaults,\n\tQualifiedFieldList,\n\tQualifiedSingleEntity,\n\tRelationDefaults,\n\tRelativeEntityList,\n\tRelativeSingleEntity,\n\tRelativeSingleField,\n\tSugarableEntityListParameters,\n\tSugarableHasManyRelation,\n\tSugarableHasOneRelation,\n\tSugaredFilter,\n\tSugaredParentEntityParameters,\n\tSugaredQualifiedEntityList,\n\tSugaredQualifiedFieldList,\n\tSugaredQualifiedSingleEntity,\n\tSugaredRelativeEntityList,\n\tSugaredRelativeSingleEntity,\n\tSugaredRelativeSingleField,\n\tSugaredSetOnCreate,\n\tSugaredUnconstrainedQualifiedEntityList,\n\tSugaredUnconstrainedQualifiedSingleEntity,\n\tUnconstrainedQualifiedEntityList,\n\tUnconstrainedQualifiedSingleEntity,\n\tUniqueWhere,\n\tUnsugarableEntityListEventListeners,\n\tUnsugarableEntityListParameters,\n\tUnsugarableFieldEventListeners,\n\tUnsugarableHasManyRelation,\n\tUnsugarableHasOneRelation,\n\tUnsugarableSingleEntityEventListeners,\n} from '../treeParameters'\nimport { Parser } from './Parser'\nimport { GraphQlLiteral } from '@contember/client'\nimport { ParsedHasManyRelation, ParsedHasOneRelation } from './ParserResults'\n\nconst emptyObject = Object.freeze({})\n\nexport class QueryLanguage {\n\n\tprivate static preparePrimitiveEntryPoint<Entry extends Parser.EntryPoint>(entryPoint: Entry) {\n\t\treturn (input: string, environment: Environment): Parser.ParserResult[Entry] =>\n\t\t\tParser.parseQueryLanguageExpression(input, entryPoint, environment)\n\t}\n\n\tprivate static preparePrimitiveEntryPointWithFallback<Entry extends Parser.EntryPoint>(entryPoint: Entry) {\n\t\treturn (input: string | Parser.ParserResult[Entry], environment: Environment): Parser.ParserResult[Entry] => {\n\t\t\tif (typeof input === 'string') {\n\t\t\t\treturn Parser.parseQueryLanguageExpression(input, entryPoint, environment)\n\t\t\t}\n\t\t\treturn input\n\t\t}\n\t}\n\n\tprivate static parseUnconstrainedQualifiedEntityList = QueryLanguage.preparePrimitiveEntryPoint('unconstrainedQualifiedEntityList')\n\tprivate static parseUnconstrainedQualifiedSingleEntity = QueryLanguage.preparePrimitiveEntryPoint('unconstrainedQualifiedEntityList')\n\tprivate static parseQualifiedEntityList = QueryLanguage.preparePrimitiveEntryPoint('qualifiedEntityList')\n\tprivate static parseQualifiedFieldList = QueryLanguage.preparePrimitiveEntryPoint('qualifiedFieldList')\n\tprivate static parseQualifiedSingleEntity = QueryLanguage.preparePrimitiveEntryPoint('qualifiedSingleEntity')\n\tprivate static parseRelativeEntityList = QueryLanguage.preparePrimitiveEntryPoint('relativeEntityList')\n\tprivate static parseRelativeSingleEntity = QueryLanguage.preparePrimitiveEntryPoint('relativeSingleEntity')\n\tprivate static parseRelativeSingleField = QueryLanguage.preparePrimitiveEntryPoint('relativeSingleField')\n\n\tpublic static desugarUniqueWhere = QueryLanguage.preparePrimitiveEntryPointWithFallback('uniqueWhere')\n\tpublic static desugarFilter = QueryLanguage.preparePrimitiveEntryPointWithFallback('filter')\n\tpublic static desugarOrderBy = QueryLanguage.preparePrimitiveEntryPointWithFallback('orderBy')\n\tpublic static desugarTaggedMap = QueryLanguage.preparePrimitiveEntryPointWithFallback('taggedMap')\n\n\n\tprivate static desugarEntityListParameters(\n\t\tsugarablePart: SugarableEntityListParameters,\n\t\tunsugarablePart: UnsugarableEntityListParameters,\n\t\tenvironment: Environment,\n\t): EntityListParameters {\n\t\treturn {\n\t\t\tfilter: sugarablePart.filter ? this.desugarFilter(sugarablePart.filter, environment) : undefined,\n\t\t\tlimit: unsugarablePart.limit,\n\t\t\toffset: unsugarablePart.offset,\n\t\t\torderBy: unsugarablePart.orderBy ? this.desugarOrderBy(unsugarablePart.orderBy, environment) : undefined,\n\t\t\tinitialEntityCount: unsugarablePart.initialEntityCount ?? EntityListPreferencesDefaults.initialEntityCount,\n\t\t}\n\t}\n\n\tpublic static desugarSetOnCreate(setOnCreate: SugaredSetOnCreate, environment: Environment): UniqueWhere {\n\t\tif (Array.isArray(setOnCreate)) {\n\t\t\tconst whereList = setOnCreate.map(connection => this.desugarUniqueWhere(connection, environment))\n\t\t\treturn whereList.reduce(\n\t\t\t\t(accumulator, uniqueWhere) => TreeParameterMerger.mergeSetOnCreate(accumulator, uniqueWhere)!,\n\t\t\t)\n\t\t}\n\t\tif (typeof setOnCreate === 'string') {\n\t\t\treturn this.desugarUniqueWhere(setOnCreate, environment)\n\t\t}\n\t\treturn setOnCreate\n\t}\n\n\tpublic static desugarEventListener<F extends Function>(listener: F | Set<F>): Set<F>\n\tpublic static desugarEventListener<F extends Function>(listener: F | Set<F> | undefined): Set<F> | undefined\n\tpublic static desugarEventListener<F extends Function>(listener: F | Set<F> | undefined): Set<F> | undefined {\n\t\tif (typeof listener === 'function') {\n\t\t\treturn new Set([listener])\n\t\t}\n\t\treturn listener\n\t}\n\n\tprivate static desugarSingleEntityEventListeners(\n\t\tunsugarable: UnsugarableSingleEntityEventListeners,\n\t): EntityEventListenerStore | undefined {\n\t\tif (\n\t\t\tunsugarable.onBeforePersist === undefined &&\n\t\t\tunsugarable.onBeforeUpdate === undefined &&\n\t\t\tunsugarable.onInitialize === undefined &&\n\t\t\tunsugarable.onPersistError === undefined &&\n\t\t\tunsugarable.onPersistSuccess === undefined &&\n\t\t\tunsugarable.onUpdate === undefined\n\t\t) {\n\t\t\treturn undefined\n\t\t}\n\n\t\tconst store: EntityEventListenerStore = new EventListenersStore()\n\n\t\tif (unsugarable.onConnectionUpdate) {\n\t\t\tfor (const fieldName in unsugarable.onConnectionUpdate) {\n\t\t\t\tconst listener = this.desugarEventListener(unsugarable.onConnectionUpdate[fieldName])\n\t\t\t\tstore.set({ type: 'connectionUpdate', key: fieldName }, listener)\n\t\t\t}\n\t\t}\n\n\t\tconst beforePersist = this.desugarEventListener(unsugarable.onBeforePersist)\n\t\tconst beforeUpdate = this.desugarEventListener(unsugarable.onBeforeUpdate)\n\t\tconst initialize = this.desugarEventListener(unsugarable.onInitialize)\n\t\tconst persistError = this.desugarEventListener(unsugarable.onPersistError)\n\t\tconst persistSuccess = this.desugarEventListener(unsugarable.onPersistSuccess)\n\t\tconst update = this.desugarEventListener(unsugarable.onUpdate)\n\n\t\tif (beforePersist) {\n\t\t\tstore.set({ type: 'beforePersist' }, beforePersist)\n\t\t}\n\t\tif (beforeUpdate) {\n\t\t\tstore.set({ type: 'beforeUpdate' }, beforeUpdate)\n\t\t}\n\t\tif (initialize) {\n\t\t\tstore.set({ type: 'initialize' }, initialize)\n\t\t}\n\t\tif (persistError) {\n\t\t\tstore.set({ type: 'persistError' }, persistError)\n\t\t}\n\t\tif (persistSuccess) {\n\t\t\tstore.set({ type: 'persistSuccess' }, persistSuccess)\n\t\t}\n\t\tif (update) {\n\t\t\tstore.set({ type: 'update' }, update)\n\t\t}\n\n\t\treturn store\n\t}\n\n\tprivate static desugarEntityListEventListeners(unsugarable: UnsugarableEntityListEventListeners):\n\t\t| {\n\t\t\t\teventListeners: EntityListEventListenerStore | undefined\n\t\t\t\tchildEventListeners: EntityEventListenerStore | undefined\n\t\t }\n\t\t| undefined {\n\t\tif (\n\t\t\tunsugarable.onBeforePersist === undefined &&\n\t\t\tunsugarable.onBeforeUpdate === undefined &&\n\t\t\tunsugarable.onChildBeforeUpdate === undefined &&\n\t\t\tunsugarable.onChildInitialize === undefined &&\n\t\t\tunsugarable.onChildUpdate === undefined &&\n\t\t\tunsugarable.onInitialize === undefined &&\n\t\t\tunsugarable.onPersistError === undefined &&\n\t\t\tunsugarable.onPersistSuccess === undefined &&\n\t\t\tunsugarable.onUpdate === undefined\n\t\t) {\n\t\t\treturn undefined\n\t\t}\n\n\t\tconst eventListeners: EntityListEventListenerStore = new EventListenersStore()\n\n\t\tconst beforePersist = this.desugarEventListener(unsugarable.onBeforePersist)\n\t\tconst beforeUpdate = this.desugarEventListener(unsugarable.onBeforeUpdate)\n\t\tconst initialize = this.desugarEventListener(unsugarable.onInitialize)\n\t\tconst persistError = this.desugarEventListener(unsugarable.onPersistError)\n\t\tconst persistSuccess = this.desugarEventListener(unsugarable.onPersistSuccess)\n\t\tconst update = this.desugarEventListener(unsugarable.onUpdate)\n\n\t\tif (beforePersist) {\n\t\t\teventListeners.set({ type: 'beforePersist' }, beforePersist)\n\t\t}\n\t\tif (beforeUpdate) {\n\t\t\teventListeners.set({ type: 'beforeUpdate' }, beforeUpdate)\n\t\t}\n\t\tif (initialize) {\n\t\t\teventListeners.set({ type: 'initialize' }, initialize)\n\t\t}\n\t\tif (persistError) {\n\t\t\teventListeners.set({ type: 'persistError' }, persistError)\n\t\t}\n\t\tif (persistSuccess) {\n\t\t\teventListeners.set({ type: 'persistSuccess' }, persistSuccess)\n\t\t}\n\t\tif (update) {\n\t\t\teventListeners.set({ type: 'update' }, update)\n\t\t}\n\n\t\tconst childEventListeners: EntityEventListenerStore = new EventListenersStore()\n\n\t\tconst childBeforeUpdate = this.desugarEventListener(unsugarable.onChildBeforeUpdate)\n\t\tconst childInitialize = this.desugarEventListener(unsugarable.onChildInitialize)\n\t\tconst childUpdate = this.desugarEventListener(unsugarable.onChildUpdate)\n\n\t\tif (childBeforeUpdate) {\n\t\t\tchildEventListeners.set({ type: 'beforeUpdate' }, childBeforeUpdate)\n\t\t}\n\t\tif (childInitialize) {\n\t\t\tchildEventListeners.set({ type: 'initialize' }, childInitialize)\n\t\t}\n\t\tif (childUpdate) {\n\t\t\tchildEventListeners.set({ type: 'update' }, childUpdate)\n\t\t}\n\n\t\treturn {\n\t\t\teventListeners,\n\t\t\tchildEventListeners,\n\t\t}\n\t}\n\n\tprivate static desugarFieldEventListeners(\n\t\tunsugarable: UnsugarableFieldEventListeners,\n\t): FieldEventListenerStore | undefined {\n\t\tif (unsugarable.onBeforeUpdate === undefined && unsugarable.onUpdate === undefined) {\n\t\t\treturn undefined\n\t\t}\n\n\t\tconst store: FieldEventListenerStore = new EventListenersStore()\n\n\t\tconst beforeUpdate = this.desugarEventListener(unsugarable.onBeforeUpdate)\n\t\tconst update = this.desugarEventListener(unsugarable.onUpdate)\n\n\t\tif (beforeUpdate) {\n\t\t\tstore.set({ type: 'beforeUpdate' }, beforeUpdate)\n\t\t}\n\t\tif (update) {\n\t\t\tstore.set({ type: 'update' }, update)\n\t\t}\n\n\t\treturn store\n\t}\n\n\tprivate static desugarSubTreeAlias(alias: Alias | Set<Alias> | undefined): Set<Alias> | undefined {\n\t\tif (alias === undefined) {\n\t\t\treturn undefined\n\t\t}\n\t\tif (alias instanceof Set) {\n\t\t\treturn alias\n\t\t}\n\t\treturn new Set<Alias>().add(alias)\n\t}\n\n\tprivate static desugarHasOneRelation(\n\t\tsugarable: SugarableHasOneRelation,\n\t\tunsugarable: UnsugarableHasOneRelation,\n\t\tenvironment: Environment,\n\t): HasOneRelation {\n\t\treturn {\n\t\t\tfield: sugarable.field,\n\t\t\tfilter: sugarable.filter ? this.desugarFilter(sugarable.filter, environment) : undefined,\n\t\t\texpectedMutation: unsugarable.expectedMutation ?? RelationDefaults.expectedMutation,\n\t\t\treducedBy: sugarable.reducedBy ? this.desugarUniqueWhere(sugarable.reducedBy, environment) : undefined,\n\t\t\tsetOnCreate: unsugarable.setOnCreate ? this.desugarSetOnCreate(unsugarable.setOnCreate, environment) : undefined,\n\t\t\tisNonbearing: unsugarable.isNonbearing ?? EntityCreationParametersDefaults.isNonbearing,\n\t\t\t// forceCreation: unsugarable.forceCreation ?? EntityCreationParametersDefaults.forceCreation,\n\t\t\teventListeners: this.desugarSingleEntityEventListeners(unsugarable),\n\t\t}\n\t}\n\n\tprivate static augmentDesugaredHasOneRelationPath(\n\t\tpath: ParsedHasOneRelation[],\n\t\tunsugarable: UnsugarableHasOneRelation,\n\t\tenvironment: Environment,\n\t): HasOneRelation[] {\n\t\treturn path.map((desugaredHasOneRelation, i) =>\n\t\t\t// Unsugarable applies to the last\n\t\t\tthis.desugarHasOneRelation(desugaredHasOneRelation, i === path.length - 1 ? unsugarable : {}, environment),\n\t\t)\n\t}\n\n\tprivate static augmentDesugaredHasManyRelation(\n\t\trelation: ParsedHasManyRelation,\n\t\tunsugarable: UnsugarableHasManyRelation,\n\t\tenvironment: Environment,\n\t): HasManyRelation {\n\t\tconst eventListeners = this.desugarEntityListEventListeners(unsugarable)\n\t\treturn {\n\t\t\tfield: relation.field,\n\t\t\tfilter: relation.filter,\n\t\t\texpectedMutation: unsugarable.expectedMutation ?? RelationDefaults.expectedMutation,\n\t\t\tisNonbearing: unsugarable.isNonbearing ?? EntityCreationParametersDefaults.isNonbearing,\n\t\t\t// forceCreation: unsugarable.forceCreation ?? EntityCreationParametersDefaults.forceCreation,\n\t\t\tinitialEntityCount: unsugarable.initialEntityCount ?? EntityListPreferencesDefaults.initialEntityCount,\n\t\t\tsetOnCreate: unsugarable.setOnCreate ? this.desugarSetOnCreate(unsugarable.setOnCreate, environment) : undefined,\n\t\t\torderBy: unsugarable.orderBy ? this.desugarOrderBy(unsugarable.orderBy, environment) : undefined,\n\t\t\toffset: unsugarable.offset,\n\t\t\tlimit: unsugarable.limit,\n\t\t\tchildEventListeners: eventListeners?.childEventListeners,\n\t\t\teventListeners: eventListeners?.eventListeners,\n\t\t}\n\t}\n\n\tprivate static desugarHasOneRelationPath(\n\t\tinput: SugarableHasOneRelation[] | SugarableHasOneRelation | undefined,\n\t\tlastRelation: UnsugarableHasOneRelation,\n\t\tenvironment: Environment,\n\t): HasOneRelation[] {\n\t\tif (input === undefined) {\n\t\t\tinput = []\n\t\t} else if (!Array.isArray(input)) {\n\t\t\tinput = [input]\n\t\t}\n\n\t\tconst relationPath: HasOneRelation[] = []\n\n\t\tconst cappedLength = input.length - 1\n\t\tlet i = 0\n\t\tfor (; i < cappedLength; i++) {\n\t\t\t// Deliberately leaving out the last element\n\t\t\tconst pathNode = input[i]\n\n\t\t\trelationPath.push(this.desugarHasOneRelation(pathNode, {}, environment))\n\t\t}\n\t\tif (i in input) {\n\t\t\trelationPath.push(this.desugarHasOneRelation(input[i], lastRelation, environment))\n\t\t}\n\n\t\treturn relationPath\n\t}\n\n\tprivate static desugarHasManyRelation(\n\t\tsugarablePart: SugarableHasManyRelation,\n\t\tunsugarablePart: UnsugarableHasManyRelation,\n\t\tenvironment: Environment,\n\t): HasManyRelation {\n\t\tconst eventListeners = this.desugarEntityListEventListeners(unsugarablePart)\n\t\treturn {\n\t\t\t...this.desugarEntityListParameters(sugarablePart, unsugarablePart, environment),\n\t\t\texpectedMutation: unsugarablePart.expectedMutation ?? RelationDefaults.expectedMutation,\n\t\t\tsetOnCreate: unsugarablePart.setOnCreate\n\t\t\t\t? this.desugarSetOnCreate(unsugarablePart.setOnCreate, environment)\n\t\t\t\t: undefined,\n\t\t\tfield: sugarablePart.field,\n\t\t\tisNonbearing: unsugarablePart.isNonbearing ?? EntityCreationParametersDefaults.isNonbearing,\n\t\t\t// forceCreation: unsugarablePart.forceCreation ?? EntityCreationParametersDefaults.forceCreation,\n\t\t\tchildEventListeners: eventListeners?.childEventListeners,\n\t\t\teventListeners: eventListeners?.eventListeners,\n\t\t}\n\t}\n\n\tpublic static desugarUnconstrainedQualifiedEntityList(\n\t\t{ entities, ...unsugarableEntityList }: SugaredUnconstrainedQualifiedEntityList,\n\t\tenvironment: Environment,\n\t): UnconstrainedQualifiedEntityList {\n\t\tlet hasOneRelationPath: HasOneRelation[]\n\t\tlet entityName: EntityName\n\n\t\tif (typeof entities === 'string') {\n\t\t\tconst parsed = this.parseUnconstrainedQualifiedEntityList(entities, environment)\n\t\t\tentityName = parsed.entityName\n\t\t\thasOneRelationPath = this.augmentDesugaredHasOneRelationPath(\n\t\t\t\tparsed.hasOneRelationPath,\n\t\t\t\temptyObject,\n\t\t\t\tenvironment,\n\t\t\t)\n\t\t} else {\n\t\t\tentityName = entities.entityName\n\t\t\thasOneRelationPath = this.desugarHasOneRelationPath(entities.hasOneRelationPath, emptyObject, environment)\n\t\t}\n\n\t\tconst eventListeners = this.desugarEntityListEventListeners(unsugarableEntityList)\n\n\t\treturn {\n\t\t\tisCreating: true,\n\t\t\tisUnpersisted: unsugarableEntityList.isUnpersisted ?? false,\n\t\t\tisNonbearing: unsugarableEntityList.isNonbearing ?? EntityCreationParametersDefaults.isNonbearing,\n\t\t\t// forceCreation: unsugarableEntityList.forceCreation ?? EntityCreationParametersDefaults.forceCreation,\n\t\t\tsetOnCreate: unsugarableEntityList.setOnCreate\n\t\t\t\t? this.desugarSetOnCreate(unsugarableEntityList.setOnCreate, environment)\n\t\t\t\t: undefined,\n\t\t\texpectedMutation: unsugarableEntityList.expectedMutation ?? QualifiedEntityParametersDefaults.expectedMutation,\n\t\t\tchildEventListeners: eventListeners?.childEventListeners,\n\t\t\teventListeners: eventListeners?.eventListeners,\n\t\t\tinitialEntityCount: unsugarableEntityList.initialEntityCount ?? EntityListPreferencesDefaults.initialEntityCount,\n\t\t\talias: this.desugarSubTreeAlias(unsugarableEntityList.alias),\n\t\t\tentityName,\n\t\t\thasOneRelationPath,\n\t\t}\n\t}\n\n\tpublic static desugarUnconstrainedQualifiedSingleEntity(\n\t\t{ entity, ...unsugarableSingleEntity }: SugaredUnconstrainedQualifiedSingleEntity,\n\t\tenvironment: Environment,\n\t): UnconstrainedQualifiedSingleEntity {\n\t\tlet hasOneRelationPath: HasOneRelation[]\n\t\tlet entityName: EntityName\n\n\t\tif (typeof entity === 'string') {\n\t\t\tconst parsed = this.parseUnconstrainedQualifiedSingleEntity(entity, environment)\n\t\t\tentityName = parsed.entityName\n\t\t\thasOneRelationPath = this.augmentDesugaredHasOneRelationPath(\n\t\t\t\tparsed.hasOneRelationPath,\n\t\t\t\tunsugarableSingleEntity,\n\t\t\t\tenvironment,\n\t\t\t)\n\t\t} else {\n\t\t\tentityName = entity.entityName\n\t\t\thasOneRelationPath = this.desugarHasOneRelationPath(\n\t\t\t\tentity.hasOneRelationPath,\n\t\t\t\tunsugarableSingleEntity,\n\t\t\t\tenvironment,\n\t\t\t)\n\t\t}\n\n\t\treturn {\n\t\t\tisCreating: true,\n\t\t\tisUnpersisted: unsugarableSingleEntity.isUnpersisted ?? false,\n\t\t\tisNonbearing: unsugarableSingleEntity.isNonbearing ?? EntityCreationParametersDefaults.isNonbearing,\n\t\t\t// forceCreation: unsugarableSingleEntity.forceCreation ?? EntityCreationParametersDefaults.forceCreation,\n\t\t\tsetOnCreate: unsugarableSingleEntity.setOnCreate\n\t\t\t\t? this.desugarSetOnCreate(unsugarableSingleEntity.setOnCreate, environment)\n\t\t\t\t: undefined,\n\t\t\texpectedMutation: unsugarableSingleEntity.expectedMutation ?? QualifiedEntityParametersDefaults.expectedMutation,\n\t\t\teventListeners: this.desugarSingleEntityEventListeners(unsugarableSingleEntity),\n\t\t\talias: this.desugarSubTreeAlias(unsugarableSingleEntity.alias),\n\t\t\tentityName,\n\t\t\thasOneRelationPath,\n\t\t}\n\t}\n\n\tpublic static desugarQualifiedEntityList(\n\t\t{ entities, ...unsugarableEntityList }: SugaredQualifiedEntityList,\n\t\tenvironment: Environment,\n\t): QualifiedEntityList {\n\t\tlet entityName: EntityName\n\t\tlet hasOneRelationPath: HasOneRelation[]\n\n\t\tlet filter: SugaredFilter | undefined\n\n\t\tif (typeof entities === 'string') {\n\t\t\tconst parsed = this.parseQualifiedEntityList(entities, environment)\n\n\t\t\tentityName = parsed.entityName\n\t\t\tfilter = parsed.filter\n\t\t\thasOneRelationPath = this.augmentDesugaredHasOneRelationPath(\n\t\t\t\tparsed.hasOneRelationPath,\n\t\t\t\temptyObject,\n\t\t\t\tenvironment,\n\t\t\t)\n\t\t} else {\n\t\t\tentityName = entities.entityName\n\t\t\tfilter = entities.filter\n\t\t\thasOneRelationPath = this.desugarHasOneRelationPath(entities.hasOneRelationPath, emptyObject, environment)\n\t\t}\n\n\t\tconst eventListeners = this.desugarEntityListEventListeners(unsugarableEntityList)\n\n\t\treturn {\n\t\t\tentityName,\n\t\t\thasOneRelationPath,\n\t\t\t...this.desugarEntityListParameters(\n\t\t\t\t{\n\t\t\t\t\tfilter,\n\t\t\t\t},\n\t\t\t\tunsugarableEntityList,\n\t\t\t\tenvironment,\n\t\t\t),\n\t\t\talias: this.desugarSubTreeAlias(unsugarableEntityList.alias),\n\t\t\tisCreating: false,\n\t\t\tisNonbearing: unsugarableEntityList.isNonbearing ?? EntityCreationParametersDefaults.isNonbearing,\n\t\t\t// forceCreation: unsugarableEntityList.forceCreation ?? EntityCreationParametersDefaults.forceCreation,\n\t\t\tsetOnCreate: unsugarableEntityList.setOnCreate\n\t\t\t\t? this.desugarSetOnCreate(unsugarableEntityList.setOnCreate, environment)\n\t\t\t\t: undefined,\n\t\t\texpectedMutation: unsugarableEntityList.expectedMutation ?? QualifiedEntityParametersDefaults.expectedMutation,\n\t\t\tchildEventListeners: eventListeners?.childEventListeners,\n\t\t\teventListeners: eventListeners?.eventListeners,\n\t\t}\n\t}\n\n\tpublic static desugarQualifiedFieldList(\n\t\t{ fields, ...unsugarableFieldList }: SugaredQualifiedFieldList,\n\t\tenvironment: Environment,\n\t): QualifiedFieldList {\n\t\tlet field: FieldName\n\t\tlet entityName: EntityName\n\t\tlet filter: SugaredFilter | undefined\n\t\tlet hasOneRelationPath: HasOneRelation[]\n\n\t\tif (typeof fields === 'string') {\n\t\t\tconst parsed = this.parseQualifiedFieldList(fields, environment)\n\n\t\t\tfield = parsed.field\n\t\t\tentityName = parsed.entityName\n\t\t\tfilter = parsed.filter\n\t\t\thasOneRelationPath = this.augmentDesugaredHasOneRelationPath(\n\t\t\t\tparsed.hasOneRelationPath,\n\t\t\t\temptyObject,\n\t\t\t\tenvironment,\n\t\t\t)\n\t\t} else {\n\t\t\tfield = fields.field\n\t\t\tentityName = fields.entityName\n\t\t\tfilter = fields.filter\n\t\t\thasOneRelationPath = this.desugarHasOneRelationPath(fields.hasOneRelationPath, emptyObject, environment)\n\t\t}\n\n\t\treturn {\n\t\t\tfield,\n\t\t\tentityName,\n\t\t\thasOneRelationPath,\n\t\t\talias: this.desugarSubTreeAlias(unsugarableFieldList.alias),\n\t\t\tisNonbearing: unsugarableFieldList.isNonbearing ?? EntityCreationParametersDefaults.isNonbearing,\n\t\t\t// forceCreation: unsugarableFieldList.forceCreation ?? EntityCreationParametersDefaults.forceCreation,\n\t\t\tdefaultValue:\n\t\t\t\tunsugarableFieldList.defaultValue !== undefined\n\t\t\t\t\t? VariableInputTransformer.transformValue(unsugarableFieldList.defaultValue, environment)\n\t\t\t\t\t: undefined,\n\t\t\texpectedMutation: unsugarableFieldList.expectedMutation ?? QualifiedEntityParametersDefaults.expectedMutation,\n\t\t\teventListeners: this.desugarFieldEventListeners(unsugarableFieldList),\n\t\t\t...this.desugarEntityListParameters({ filter }, unsugarableFieldList, environment),\n\t\t}\n\t}\n\n\tpublic static desugarQualifiedSingleEntity(\n\t\t{ entity, ...unsugarableSingleEntity }: SugaredQualifiedSingleEntity,\n\t\tenvironment: Environment,\n\t\toptions: { missingSetOnCreate?: 'fill' | 'fillAndWarn' } = {},\n\t): QualifiedSingleEntity {\n\t\tlet entityName: EntityName\n\t\tlet where: UniqueWhere\n\t\tlet filter: Filter | undefined\n\t\tlet hasOneRelationPath: HasOneRelation[]\n\n\t\tif (typeof entity === 'string') {\n\t\t\tconst parsed = this.parseQualifiedSingleEntity(entity, environment)\n\n\t\t\tentityName = parsed.entityName\n\t\t\twhere = parsed.where\n\t\t\tfilter = parsed.filter\n\t\t\thasOneRelationPath = this.augmentDesugaredHasOneRelationPath(\n\t\t\t\tparsed.hasOneRelationPath,\n\t\t\t\tunsugarableSingleEntity,\n\t\t\t\tenvironment,\n\t\t\t)\n\t\t} else {\n\t\t\tentityName = entity.entityName\n\t\t\twhere = this.desugarUniqueWhere(entity.where, environment)\n\t\t\tfilter = entity.filter ? this.desugarFilter(entity.filter, environment) : undefined\n\t\t\thasOneRelationPath = this.desugarHasOneRelationPath(\n\t\t\t\tentity.hasOneRelationPath,\n\t\t\t\tunsugarableSingleEntity,\n\t\t\t\tenvironment,\n\t\t\t)\n\t\t}\n\n\t\t// const forceCreation: boolean =\n\t\t// \tunsugarableSingleEntity.forceCreation !== undefined\n\t\t// \t\t? unsugarableSingleEntity.forceCreation !== undefined\n\t\t// \t\t: EntityCreationParametersDefaults.forceCreation\n\t\tlet setOnCreate: UniqueWhere | undefined =\n\t\t\tunsugarableSingleEntity.setOnCreate !== undefined\n\t\t\t\t? this.desugarSetOnCreate(unsugarableSingleEntity.setOnCreate, environment)\n\t\t\t\t: undefined\n\n\t\t// todo: remove deprecated code\n\t\tif (!setOnCreate && options.missingSetOnCreate) {\n\t\t\tconst whereValues = Object.values(where)\n\t\t\tif (whereValues.length === 1 && whereValues[0] instanceof GraphQlLiteral) {\n\t\t\t\tsetOnCreate = where\n\t\t\t\tif (import.meta.env.DEV && options.missingSetOnCreate === 'fillAndWarn') {\n\t\t\t\t\tconsole.warn('Automatic creation of singleton entities in EditPage is deprecated. Please use setOnCreate prop.')\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tconst isNonbearing: boolean =\n\t\t\tunsugarableSingleEntity.isNonbearing !== undefined\n\t\t\t\t? unsugarableSingleEntity.isNonbearing\n\t\t\t\t: EntityCreationParametersDefaults.isNonbearing\n\t\tconst eventListeners = this.desugarSingleEntityEventListeners(unsugarableSingleEntity)\n\t\tconst expectedMutation =\n\t\t\tunsugarableSingleEntity.expectedMutation ?? QualifiedEntityParametersDefaults.expectedMutation\n\t\tconst alias = this.desugarSubTreeAlias(unsugarableSingleEntity.alias)\n\n\t\treturn {\n\t\t\talias,\n\t\t\tentityName,\n\t\t\tisCreating: false,\n\t\t\twhere,\n\t\t\tfilter,\n\t\t\thasOneRelationPath,\n\t\t\t// forceCreation,\n\t\t\tsetOnCreate,\n\t\t\tisNonbearing,\n\t\t\teventListeners,\n\t\t\texpectedMutation,\n\t\t}\n\t}\n\n\tpublic static desugarParentEntityParameters(\n\t\tparentEntity: SugaredParentEntityParameters,\n\t\tenvironment: Environment,\n\t): ParentEntityParameters {\n\t\treturn {\n\t\t\teventListeners: this.desugarSingleEntityEventListeners(parentEntity),\n\t\t}\n\t}\n\n\tpublic static desugarRelativeSingleEntity(\n\t\tsugaredRelativeSingleEntity: string | SugaredRelativeSingleEntity,\n\t\tenvironment: Environment,\n\t): RelativeSingleEntity {\n\t\tif (typeof sugaredRelativeSingleEntity === 'string') {\n\t\t\treturn this.desugarRelativeSingleEntity({ field: sugaredRelativeSingleEntity }, environment)\n\t\t}\n\n\t\tconst { field, ...unsugarableEntity } = sugaredRelativeSingleEntity\n\t\tlet hasOneRelationPath: HasOneRelation[]\n\t\tif (typeof field === 'string') {\n\t\t\tconst parsed = this.parseRelativeSingleEntity(field, environment)\n\t\t\thasOneRelationPath = this.augmentDesugaredHasOneRelationPath(\n\t\t\t\tparsed.hasOneRelationPath,\n\t\t\t\tunsugarableEntity,\n\t\t\t\tenvironment,\n\t\t\t)\n\n\t\t} else {\n\t\t\thasOneRelationPath = this.desugarHasOneRelationPath(field, unsugarableEntity, environment)\n\t\t}\n\n\t\treturn {\n\t\t\thasOneRelationPath,\n\t\t}\n\t}\n\n\tpublic static desugarRelativeSingleField(\n\t\tsugaredRelativeSingleField: string | SugaredRelativeSingleField,\n\t\tenvironment: Environment,\n\t): RelativeSingleField {\n\t\tif (typeof sugaredRelativeSingleField === 'string') {\n\t\t\treturn this.desugarRelativeSingleField({ field: sugaredRelativeSingleField }, environment)\n\t\t}\n\n\t\tconst { field, ...unsugarableField } = sugaredRelativeSingleField\n\n\t\tlet hasOneRelationPath: HasOneRelation[]\n\t\tlet fieldName: FieldName\n\t\tif (typeof field === 'string') {\n\t\t\tconst parsed = this.parseRelativeSingleField(field, environment)\n\t\t\thasOneRelationPath = this.augmentDesugaredHasOneRelationPath(parsed.hasOneRelationPath, {}, environment)\n\t\t\tfieldName = parsed.field\n\t\t} else {\n\t\t\thasOneRelationPath = this.desugarHasOneRelationPath(field.hasOneRelationPath, {}, environment)\n\t\t\tfieldName = field.field\n\t\t}\n\n\t\treturn {\n\t\t\teventListeners: this.desugarFieldEventListeners(unsugarableField),\n\t\t\thasOneRelationPath,\n\t\t\tfield: fieldName,\n\t\t\tisNonbearing: unsugarableField.isNonbearing ?? LeafFieldDefaults.isNonbearing,\n\t\t\tdefaultValue:\n\t\t\t\tunsugarableField.defaultValue !== undefined\n\t\t\t\t\t? VariableInputTransformer.transformValue(unsugarableField.defaultValue, environment)\n\t\t\t\t\t: undefined,\n\t\t}\n\t}\n\n\tpublic static desugarRelativeEntityList(\n\t\tsugaredRelativeEntityList: string | SugaredRelativeEntityList,\n\t\tenvironment: Environment,\n\t): RelativeEntityList {\n\t\tif (typeof sugaredRelativeEntityList === 'string') {\n\t\t\treturn this.desugarRelativeEntityList(\n\t\t\t\t{\n\t\t\t\t\tfield: sugaredRelativeEntityList,\n\t\t\t\t},\n\t\t\t\tenvironment,\n\t\t\t)\n\t\t}\n\n\t\tconst { field, ...unsugarableEntityList } = sugaredRelativeEntityList\n\t\tlet hasOneRelationPath: HasOneRelation[]\n\t\tlet hasManyRelation: HasManyRelation\n\t\tif (typeof field === 'string') {\n\t\t\tconst parsed = this.parseRelativeEntityList(field, environment)\n\t\t\thasOneRelationPath = this.augmentDesugaredHasOneRelationPath(\n\t\t\t\tparsed.hasOneRelationPath,\n\t\t\t\temptyObject,\n\t\t\t\tenvironment,\n\t\t\t)\n\t\t\thasManyRelation = this.augmentDesugaredHasManyRelation(\n\t\t\t\tparsed.hasManyRelation,\n\t\t\t\tunsugarableEntityList,\n\t\t\t\tenvironment,\n\t\t\t)\n\t\t} else {\n\t\t\thasOneRelationPath = this.desugarHasOneRelationPath(field.hasOneRelationPath || [], emptyObject, environment)\n\t\t\thasManyRelation = this.desugarHasManyRelation(field.hasManyRelation, unsugarableEntityList, environment)\n\t\t}\n\n\t\treturn {\n\t\t\thasManyRelation,\n\t\t\thasOneRelationPath,\n\t\t}\n\t}\n}\n"],"names":["Parser","EntityListPreferencesDefaults","TreeParameterMerger","EventListenersStore","RelationDefaults","EntityCreationParametersDefaults","QualifiedEntityParametersDefaults","VariableInputTransformer","GraphQlLiteral","LeafFieldDefaults"],"mappings":";;;;;;;;;;;;;;;;;;AAsDA,MAAM,cAAc,OAAO,OAAO,CAAA,CAAE;AAE7B,MAAM,iBAAN,MAAoB;AAAA,EAE1B,OAAe,2BAA4D,YAAmB;AAC7F,WAAO,CAAC,OAAe,gBACtBA,cAAO,6BAA6B,OAAO,YAAY,WAAW;AAAA,EACpE;AAAA,EAEA,OAAe,uCAAwE,YAAmB;AAClG,WAAA,CAAC,OAA4C,gBAAyD;AACxG,UAAA,OAAO,UAAU,UAAU;AAC9B,eAAOA,OAAO,OAAA,6BAA6B,OAAO,YAAY,WAAW;AAAA,MAC1E;AACO,aAAA;AAAA,IAAA;AAAA,EAET;AAAA,EAiBA,OAAe,4BACd,eACA,iBACA,aACuB;AAChB,WAAA;AAAA,MACN,QAAQ,cAAc,SAAS,KAAK,cAAc,cAAc,QAAQ,WAAW,IAAI;AAAA,MACvF,OAAO,gBAAgB;AAAA,MACvB,QAAQ,gBAAgB;AAAA,MACxB,SAAS,gBAAgB,UAAU,KAAK,eAAe,gBAAgB,SAAS,WAAW,IAAI;AAAA,MAC/F,oBAAoB,gBAAgB,sBAAsBC,sBAAAA,8BAA8B;AAAA,IAAA;AAAA,EAE1F;AAAA,EAEA,OAAc,mBAAmB,aAAiC,aAAuC;AACpG,QAAA,MAAM,QAAQ,WAAW,GAAG;AACzB,YAAA,YAAY,YAAY,IAAI,CAAA,eAAc,KAAK,mBAAmB,YAAY,WAAW,CAAC;AAChG,aAAO,UAAU;AAAA,QAChB,CAAC,aAAa,gBAAgBC,oBAAAA,oBAAoB,iBAAiB,aAAa,WAAW;AAAA,MAAA;AAAA,IAE7F;AACI,QAAA,OAAO,gBAAgB,UAAU;AAC7B,aAAA,KAAK,m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c,2BAA2B,qBAAqB;AACxG,cAnBY,eAmBG,2BAA0B,eAAc,2BAA2B,oBAAoB;AACtG,cApBY,eAoBG,8BAA6B,eAAc,2BAA2B,uBAAuB;AAC5G,cArBY,eAqBG,2BAA0B,eAAc,2BAA2B,oBAAoB;AACtG,cAtBY,eAsBG,6BAA4B,eAAc,2BAA2B,sBAAsB;AAC1G,cAvBY,eAuBG,4BAA2B,eAAc,2BAA2B,qBAAqB;AAExG,cAzBY,eAyBE,sBAAqB,eAAc,uCAAuC,aAAa;AACrG,cA1BY,eA0BE,iBAAgB,eAAc,uCAAuC,QAAQ;AAC3F,cA3BY,eA2BE,kBAAiB,eAAc,uCAAuC,SAAS;AAC7F,cA5BY,eA4BE,oBAAmB,eAAc,uCAAuC,WAAW;;"}
|
|
@@ -4,7 +4,6 @@ var __publicField = (obj, key, value) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
-
import { emptyObject } from "@contember/react-utils";
|
|
8
7
|
import { Parser } from "./Parser.js";
|
|
9
8
|
import { GraphQlLiteral } from "@contember/client";
|
|
10
9
|
import { EntityListPreferencesDefaults } from "../treeParameters/EntityListPreferences.js";
|
|
@@ -15,6 +14,7 @@ import { QualifiedEntityParametersDefaults } from "../treeParameters/QualifiedEn
|
|
|
15
14
|
import { VariableInputTransformer } from "../core/VariableInputTransformer.js";
|
|
16
15
|
import { LeafFieldDefaults } from "../treeParameters/LeafField.js";
|
|
17
16
|
import { EventListenersStore } from "../treeParameters/EventListenersStore.js";
|
|
17
|
+
const emptyObject = Object.freeze({});
|
|
18
18
|
const _QueryLanguage = class {
|
|
19
19
|
static preparePrimitiveEntryPoint(entryPoint) {
|
|
20
20
|
return (input, environment) => Parser.parseQueryLanguageExpression(input, entryPoint, environment);
|
|
@@ -248,6 +248,7 @@ const _QueryLanguage = class {
|
|
|
248
248
|
const eventListeners = this.desugarEntityListEventListeners(unsugarableEntityList);
|
|
249
249
|
return {
|
|
250
250
|
isCreating: true,
|
|
251
|
+
isUnpersisted: unsugarableEntityList.isUnpersisted ?? false,
|
|
251
252
|
isNonbearing: unsugarableEntityList.isNonbearing ?? EntityCreationParametersDefaults.isNonbearing,
|
|
252
253
|
// forceCreation: unsugarableEntityList.forceCreation ?? EntityCreationParametersDefaults.forceCreation,
|
|
253
254
|
setOnCreate: unsugarableEntityList.setOnCreate ? this.desugarSetOnCreate(unsugarableEntityList.setOnCreate, environment) : void 0,
|
|
@@ -281,6 +282,7 @@ const _QueryLanguage = class {
|
|
|
281
282
|
}
|
|
282
283
|
return {
|
|
283
284
|
isCreating: true,
|
|
285
|
+
isUnpersisted: unsugarableSingleEntity.isUnpersisted ?? false,
|
|
284
286
|
isNonbearing: unsugarableSingleEntity.isNonbearing ?? EntityCreationParametersDefaults.isNonbearing,
|
|
285
287
|
// forceCreation: unsugarableSingleEntity.forceCreation ?? EntityCreationParametersDefaults.forceCreation,
|
|
286
288
|
setOnCreate: unsugarableSingleEntity.setOnCreate ? this.desugarSetOnCreate(unsugarableSingleEntity.setOnCreate, environment) : void 0,
|