@contember/binding 1.1.0-beta.4 → 1.1.0-rc.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/development/accessorPropagation/AccessorProvider.js +7 -14
- package/dist/development/accessorPropagation/AccessorProvider.js.map +1 -1
- package/dist/development/accessorPropagation/BindingOperationsProvider.js +3 -7
- package/dist/development/accessorPropagation/BindingOperationsProvider.js.map +1 -1
- package/dist/development/accessorPropagation/EntityKeyProvider.js +3 -7
- package/dist/development/accessorPropagation/EntityKeyProvider.js.map +1 -1
- package/dist/development/accessorPropagation/EnvironmentContext.js +39 -56
- package/dist/development/accessorPropagation/EnvironmentContext.js.map +1 -1
- package/dist/development/accessorPropagation/TreeRootIdProvider.js +3 -7
- package/dist/development/accessorPropagation/TreeRootIdProvider.js.map +1 -1
- package/dist/development/accessorSorting/SetOrderFieldOnCreate.js +104 -89
- package/dist/development/accessorSorting/SetOrderFieldOnCreate.js.map +1 -1
- package/dist/development/accessorSorting/errors.js.map +1 -1
- package/dist/development/accessorSorting/useSortedEntities.js +15 -18
- package/dist/development/accessorSorting/useSortedEntities.js.map +1 -1
- package/dist/development/accessorTree/AccessorTree.js +20 -39
- package/dist/development/accessorTree/AccessorTree.js.map +1 -1
- package/dist/development/accessorTree/RuntimeId.js +1 -1
- package/dist/development/accessorTree/RuntimeId.js.map +1 -1
- package/dist/development/accessorTree/accessorTreeStateReducer.js.map +1 -1
- package/dist/development/core/AccessorErrorManager.js +6 -6
- package/dist/development/core/AccessorErrorManager.js.map +1 -1
- package/dist/development/core/Config.js.map +1 -1
- package/dist/development/core/DataBinding.js +16 -16
- package/dist/development/core/DataBinding.js.map +1 -1
- package/dist/development/core/DirtinessTracker.js.map +1 -1
- package/dist/development/core/EventManager.js +11 -11
- package/dist/development/core/EventManager.js.map +1 -1
- package/dist/development/core/IncrementalMarkerBuilder.js +5 -5
- package/dist/development/core/IncrementalMarkerBuilder.js.map +1 -1
- package/dist/development/core/MarkerTreeGenerator.js +6 -6
- package/dist/development/core/MarkerTreeGenerator.js.map +1 -1
- package/dist/development/core/MutationGenerator.js +18 -12
- package/dist/development/core/MutationGenerator.js.map +1 -1
- package/dist/development/core/RealmKeyGenerator.js +2 -2
- package/dist/development/core/RealmKeyGenerator.js.map +1 -1
- package/dist/development/core/StateInitializer.js +8 -8
- package/dist/development/core/StateInitializer.js.map +1 -1
- package/dist/development/core/TreeAugmenter.js.map +1 -1
- package/dist/development/core/TreeParameterMerger.js.map +1 -1
- package/dist/development/core/TreeStore.js +7 -7
- package/dist/development/core/TreeStore.js.map +1 -1
- package/dist/development/core/exceptions/ErrorLocator.js +3 -3
- package/dist/development/core/exceptions/ErrorLocator.js.map +1 -1
- package/dist/development/core/schema/SchemaLoader.js +2 -2
- package/dist/development/core/schema/SchemaLoader.js.map +1 -1
- package/dist/development/core/state/StateIterator.js.map +1 -1
- package/dist/development/coreComponents/Component.js.map +1 -1
- package/dist/development/coreComponents/DataBindingProvider.js +11 -11
- package/dist/development/coreComponents/DataBindingProvider.js.map +1 -1
- package/dist/development/coreComponents/Entity.js +11 -15
- package/dist/development/coreComponents/Entity.js.map +1 -1
- package/dist/development/coreComponents/EntityList.js +35 -31
- package/dist/development/coreComponents/EntityList.js.map +1 -1
- package/dist/development/coreComponents/EntityListSubTree.js +41 -41
- package/dist/development/coreComponents/EntityListSubTree.js.map +1 -1
- package/dist/development/coreComponents/EntitySubTree.js +63 -51
- package/dist/development/coreComponents/EntitySubTree.js.map +1 -1
- package/dist/development/coreComponents/Field.js +28 -20
- package/dist/development/coreComponents/Field.js.map +1 -1
- package/dist/development/coreComponents/HasMany.js +30 -33
- package/dist/development/coreComponents/HasMany.js.map +1 -1
- package/dist/development/coreComponents/HasOne.js +30 -33
- package/dist/development/coreComponents/HasOne.js.map +1 -1
- package/dist/development/coreComponents/ParentEntity.js +12 -6
- package/dist/development/coreComponents/ParentEntity.js.map +1 -1
- package/dist/development/dao/Environment.js +1 -1
- package/dist/development/dao/Environment.js.map +1 -1
- package/dist/development/fieldHelpers/helpers/FieldHelper.js +1 -1
- package/dist/development/fieldHelpers/helpers/FieldHelper.js.map +1 -1
- package/dist/development/helperComponents/DeferredSubTrees.js +83 -86
- package/dist/development/helperComponents/DeferredSubTrees.js.map +1 -1
- package/dist/development/helperComponents/EntityView.js +5 -3
- package/dist/development/helperComponents/EntityView.js.map +1 -1
- package/dist/development/helperComponents/FieldView.js +50 -36
- package/dist/development/helperComponents/FieldView.js.map +1 -1
- package/dist/development/helperComponents/If.js +70 -63
- package/dist/development/helperComponents/If.js.map +1 -1
- package/dist/development/helperComponents/StaticRender.js +9 -5
- package/dist/development/helperComponents/StaticRender.js.map +1 -1
- package/dist/development/helperComponents/SugaredField.js +6 -13
- package/dist/development/helperComponents/SugaredField.js.map +1 -1
- package/dist/development/helperComponents/helpers/FilterEvaluator.js.map +1 -1
- package/dist/development/markers/EntityListSubTreeMarker.js +2 -2
- package/dist/development/markers/EntityListSubTreeMarker.js.map +1 -1
- package/dist/development/markers/EntitySubTreeMarker.js +2 -2
- package/dist/development/markers/EntitySubTreeMarker.js.map +1 -1
- package/dist/development/markers/FieldMarker.js +2 -2
- package/dist/development/markers/FieldMarker.js.map +1 -1
- package/dist/development/markers/HasManyRelationMarker.js +3 -3
- package/dist/development/markers/HasManyRelationMarker.js.map +1 -1
- package/dist/development/markers/HasOneRelationMarker.js +2 -2
- package/dist/development/markers/HasOneRelationMarker.js.map +1 -1
- package/dist/development/queryLanguage/CacheStore.js +1 -1
- package/dist/development/queryLanguage/CacheStore.js.map +1 -1
- package/dist/development/queryLanguage/Parser.js +7 -7
- package/dist/development/queryLanguage/Parser.js.map +1 -1
- package/dist/development/queryLanguage/QueryLanguage.js +6 -6
- package/dist/development/queryLanguage/QueryLanguage.js.map +1 -1
- package/dist/development/structures/BijectiveIndexedMap.js +1 -1
- package/dist/development/structures/BijectiveIndexedMap.js.map +1 -1
- package/dist/development/structures/LRUCache.js +1 -1
- package/dist/development/structures/LRUCache.js.map +1 -1
- package/dist/development/structures/WeakIdCache.js.map +1 -1
- package/dist/production/accessorPropagation/AccessorProvider.js +2 -8
- package/dist/production/accessorPropagation/AccessorProvider.js.map +1 -1
- package/dist/production/accessorPropagation/BindingOperationsProvider.js +2 -5
- package/dist/production/accessorPropagation/BindingOperationsProvider.js.map +1 -1
- package/dist/production/accessorPropagation/EntityKeyProvider.js +2 -5
- package/dist/production/accessorPropagation/EntityKeyProvider.js.map +1 -1
- package/dist/production/accessorPropagation/EnvironmentContext.js +23 -43
- package/dist/production/accessorPropagation/EnvironmentContext.js.map +1 -1
- package/dist/production/accessorPropagation/TreeRootIdProvider.js +2 -5
- package/dist/production/accessorPropagation/TreeRootIdProvider.js.map +1 -1
- package/dist/production/accessorSorting/SetOrderFieldOnCreate.js +62 -62
- package/dist/production/accessorSorting/SetOrderFieldOnCreate.js.map +1 -1
- package/dist/production/accessorSorting/errors.js.map +1 -1
- package/dist/production/accessorSorting/useSortedEntities.js +15 -18
- package/dist/production/accessorSorting/useSortedEntities.js.map +1 -1
- package/dist/production/accessorTree/AccessorTree.js +3 -21
- package/dist/production/accessorTree/AccessorTree.js.map +1 -1
- package/dist/production/accessorTree/RuntimeId.js +1 -1
- package/dist/production/accessorTree/RuntimeId.js.map +1 -1
- package/dist/production/accessorTree/accessorTreeStateReducer.js.map +1 -1
- package/dist/production/core/AccessorErrorManager.js +6 -6
- package/dist/production/core/AccessorErrorManager.js.map +1 -1
- package/dist/production/core/Config.js.map +1 -1
- package/dist/production/core/DataBinding.js +16 -16
- package/dist/production/core/DataBinding.js.map +1 -1
- package/dist/production/core/DirtinessTracker.js.map +1 -1
- package/dist/production/core/EventManager.js +11 -11
- package/dist/production/core/EventManager.js.map +1 -1
- package/dist/production/core/IncrementalMarkerBuilder.js +5 -5
- package/dist/production/core/IncrementalMarkerBuilder.js.map +1 -1
- package/dist/production/core/MarkerTreeGenerator.js +6 -6
- package/dist/production/core/MarkerTreeGenerator.js.map +1 -1
- package/dist/production/core/MutationGenerator.js +18 -12
- package/dist/production/core/MutationGenerator.js.map +1 -1
- package/dist/production/core/RealmKeyGenerator.js +2 -2
- package/dist/production/core/RealmKeyGenerator.js.map +1 -1
- package/dist/production/core/StateInitializer.js +8 -8
- package/dist/production/core/StateInitializer.js.map +1 -1
- package/dist/production/core/TreeAugmenter.js.map +1 -1
- package/dist/production/core/TreeParameterMerger.js.map +1 -1
- package/dist/production/core/TreeStore.js +7 -7
- package/dist/production/core/TreeStore.js.map +1 -1
- package/dist/production/core/exceptions/ErrorLocator.js +3 -3
- package/dist/production/core/exceptions/ErrorLocator.js.map +1 -1
- package/dist/production/core/schema/SchemaLoader.js +2 -2
- package/dist/production/core/schema/SchemaLoader.js.map +1 -1
- package/dist/production/core/state/StateIterator.js.map +1 -1
- package/dist/production/coreComponents/Component.js.map +1 -1
- package/dist/production/coreComponents/DataBindingProvider.js +10 -9
- package/dist/production/coreComponents/DataBindingProvider.js.map +1 -1
- package/dist/production/coreComponents/Entity.js +7 -10
- package/dist/production/coreComponents/Entity.js.map +1 -1
- package/dist/production/coreComponents/EntityList.js +25 -28
- package/dist/production/coreComponents/EntityList.js.map +1 -1
- package/dist/production/coreComponents/EntityListSubTree.js +29 -28
- package/dist/production/coreComponents/EntityListSubTree.js.map +1 -1
- package/dist/production/coreComponents/EntitySubTree.js +39 -34
- package/dist/production/coreComponents/EntitySubTree.js.map +1 -1
- package/dist/production/coreComponents/Field.js +20 -20
- package/dist/production/coreComponents/Field.js.map +1 -1
- package/dist/production/coreComponents/HasMany.js +18 -20
- package/dist/production/coreComponents/HasMany.js.map +1 -1
- package/dist/production/coreComponents/HasOne.js +18 -20
- package/dist/production/coreComponents/HasOne.js.map +1 -1
- package/dist/production/coreComponents/ParentEntity.js +8 -6
- package/dist/production/coreComponents/ParentEntity.js.map +1 -1
- package/dist/production/dao/Environment.js +1 -1
- package/dist/production/dao/Environment.js.map +1 -1
- package/dist/production/fieldHelpers/helpers/FieldHelper.js +1 -1
- package/dist/production/fieldHelpers/helpers/FieldHelper.js.map +1 -1
- package/dist/production/helperComponents/DeferredSubTrees.js +67 -77
- package/dist/production/helperComponents/DeferredSubTrees.js.map +1 -1
- package/dist/production/helperComponents/EntityView.js +1 -3
- package/dist/production/helperComponents/EntityView.js.map +1 -1
- package/dist/production/helperComponents/FieldView.js +38 -31
- package/dist/production/helperComponents/FieldView.js.map +1 -1
- package/dist/production/helperComponents/If.js +40 -52
- package/dist/production/helperComponents/If.js.map +1 -1
- package/dist/production/helperComponents/StaticRender.js +5 -5
- package/dist/production/helperComponents/StaticRender.js.map +1 -1
- package/dist/production/helperComponents/SugaredField.js +2 -8
- package/dist/production/helperComponents/SugaredField.js.map +1 -1
- package/dist/production/helperComponents/helpers/FilterEvaluator.js.map +1 -1
- package/dist/production/markers/EntityListSubTreeMarker.js +2 -2
- package/dist/production/markers/EntityListSubTreeMarker.js.map +1 -1
- package/dist/production/markers/EntitySubTreeMarker.js +2 -2
- package/dist/production/markers/EntitySubTreeMarker.js.map +1 -1
- package/dist/production/markers/FieldMarker.js +2 -2
- package/dist/production/markers/FieldMarker.js.map +1 -1
- package/dist/production/markers/HasManyRelationMarker.js +2 -2
- package/dist/production/markers/HasManyRelationMarker.js.map +1 -1
- package/dist/production/markers/HasOneRelationMarker.js +2 -2
- package/dist/production/markers/HasOneRelationMarker.js.map +1 -1
- package/dist/production/queryLanguage/CacheStore.js +1 -1
- package/dist/production/queryLanguage/CacheStore.js.map +1 -1
- package/dist/production/queryLanguage/Parser.js +7 -7
- package/dist/production/queryLanguage/Parser.js.map +1 -1
- package/dist/production/queryLanguage/QueryLanguage.js +6 -6
- package/dist/production/queryLanguage/QueryLanguage.js.map +1 -1
- package/dist/production/structures/BijectiveIndexedMap.js +1 -1
- package/dist/production/structures/BijectiveIndexedMap.js.map +1 -1
- package/dist/production/structures/LRUCache.js +1 -1
- package/dist/production/structures/LRUCache.js.map +1 -1
- package/dist/production/structures/WeakIdCache.js.map +1 -1
- package/dist/types/accessorPropagation/useAccessorUpdateSubscription.d.ts +1 -1
- package/dist/types/accessorPropagation/useAccessorUpdateSubscription.d.ts.map +1 -1
- package/dist/types/accessorSorting/SortedEntities.d.ts +1 -1
- package/dist/types/accessorSorting/SortedEntities.d.ts.map +1 -1
- package/dist/types/accessorSorting/errors.d.ts +0 -3
- package/dist/types/accessorSorting/errors.d.ts.map +1 -1
- package/dist/types/accessorSorting/useSortedEntities.d.ts.map +1 -1
- package/dist/types/accessorTree/AccessorTreeState.d.ts +1 -1
- package/dist/types/accessorTree/AccessorTreeState.d.ts.map +1 -1
- package/dist/types/accessorTree/AccessorTreeStateAction.d.ts +1 -1
- package/dist/types/accessorTree/AccessorTreeStateAction.d.ts.map +1 -1
- package/dist/types/accessorTree/MutationRequestResponse.d.ts +3 -3
- package/dist/types/accessorTree/MutationRequestResponse.d.ts.map +1 -1
- package/dist/types/accessorTree/NormalizedPersistedData.d.ts +5 -5
- package/dist/types/accessorTree/NormalizedPersistedData.d.ts.map +1 -1
- package/dist/types/accessorTree/PersistResult.d.ts +2 -2
- package/dist/types/accessorTree/PersistResult.d.ts.map +1 -1
- package/dist/types/accessorTree/QueryRequestResponse.d.ts +3 -3
- package/dist/types/accessorTree/QueryRequestResponse.d.ts.map +1 -1
- package/dist/types/accessorTree/RequestError.d.ts +1 -1
- package/dist/types/accessorTree/RequestError.d.ts.map +1 -1
- package/dist/types/accessorTree/RuntimeId.d.ts +2 -2
- package/dist/types/accessorTree/RuntimeId.d.ts.map +1 -1
- package/dist/types/accessors/ExtendTree.d.ts +1 -1
- package/dist/types/accessors/ExtendTree.d.ts.map +1 -1
- package/dist/types/accessors/GetEntityByKey.d.ts +1 -1
- package/dist/types/accessors/GetEntityByKey.d.ts.map +1 -1
- package/dist/types/accessors/GetEntityListSubTree.d.ts +1 -1
- package/dist/types/accessors/GetEntityListSubTree.d.ts.map +1 -1
- package/dist/types/accessors/GetEntitySubTree.d.ts +1 -1
- package/dist/types/accessors/GetEntitySubTree.d.ts.map +1 -1
- package/dist/types/accessors/Persist.d.ts +1 -1
- package/dist/types/accessors/Persist.d.ts.map +1 -1
- package/dist/types/accessors/PersistErrorOptions.d.ts +1 -1
- package/dist/types/accessors/PersistErrorOptions.d.ts.map +1 -1
- package/dist/types/core/MutationGenerator.d.ts +3 -2
- package/dist/types/core/MutationGenerator.d.ts.map +1 -1
- package/dist/types/core/QueryGenerator.d.ts +1 -1
- package/dist/types/core/QueryGenerator.d.ts.map +1 -1
- package/dist/types/core/exceptions/RawMarkerPath.d.ts +1 -1
- package/dist/types/core/exceptions/RawMarkerPath.d.ts.map +1 -1
- package/dist/types/core/schema/RawSchemaEntity.d.ts +1 -1
- package/dist/types/core/schema/RawSchemaEntity.d.ts.map +1 -1
- package/dist/types/core/schema/SchemaColumnType.d.ts +2 -2
- package/dist/types/core/schema/SchemaColumnType.d.ts.map +1 -1
- package/dist/types/core/schema/SchemaEntities.d.ts +1 -1
- package/dist/types/core/schema/SchemaEntities.d.ts.map +1 -1
- package/dist/types/core/schema/SchemaEnums.d.ts +3 -3
- package/dist/types/core/schema/SchemaEnums.d.ts.map +1 -1
- package/dist/types/core/schema/SchemaField.d.ts +1 -1
- package/dist/types/core/schema/SchemaField.d.ts.map +1 -1
- package/dist/types/core/schema/SchemaFields.d.ts +1 -1
- package/dist/types/core/schema/SchemaFields.d.ts.map +1 -1
- package/dist/types/core/schema/SchemaRelation.d.ts +1 -1
- package/dist/types/core/schema/SchemaRelation.d.ts.map +1 -1
- package/dist/types/core/state/EntityListState.d.ts +1 -1
- package/dist/types/core/state/EntityListState.d.ts.map +1 -1
- package/dist/types/core/state/EntityRealmState.d.ts +1 -1
- package/dist/types/core/state/EntityRealmState.d.ts.map +1 -1
- package/dist/types/core/state/StateNode.d.ts +3 -3
- package/dist/types/core/state/StateNode.d.ts.map +1 -1
- package/dist/types/coreComponents/DataBindingProvider.d.ts +2 -2
- package/dist/types/coreComponents/DataBindingProvider.d.ts.map +1 -1
- package/dist/types/coreComponents/Entity.d.ts +1 -1
- package/dist/types/coreComponents/Entity.d.ts.map +1 -1
- package/dist/types/coreComponents/EntityList.d.ts +1 -1
- package/dist/types/coreComponents/EntityList.d.ts.map +1 -1
- package/dist/types/coreComponents/EntityListSubTree.d.ts +1 -1
- package/dist/types/coreComponents/EntityListSubTree.d.ts.map +1 -1
- package/dist/types/coreComponents/EntitySubTree.d.ts +2 -2
- package/dist/types/coreComponents/EntitySubTree.d.ts.map +1 -1
- package/dist/types/coreComponents/HasMany.d.ts +1 -1
- package/dist/types/coreComponents/HasMany.d.ts.map +1 -1
- package/dist/types/coreComponents/HasOne.d.ts +1 -1
- package/dist/types/coreComponents/HasOne.d.ts.map +1 -1
- package/dist/types/coreComponents/MarkerProvider.d.ts +3 -3
- package/dist/types/coreComponents/MarkerProvider.d.ts.map +1 -1
- package/dist/types/helperComponents/FieldView.d.ts +5 -5
- package/dist/types/helperComponents/FieldView.d.ts.map +1 -1
- package/dist/types/helperComponents/If.d.ts +1 -1
- package/dist/types/helperComponents/If.d.ts.map +1 -1
- package/dist/types/markers/EntityFieldMarkers.d.ts +2 -2
- package/dist/types/markers/EntityFieldMarkers.d.ts.map +1 -1
- package/dist/types/markers/EntityFieldPlaceholders.d.ts +1 -1
- package/dist/types/markers/EntityFieldPlaceholders.d.ts.map +1 -1
- package/dist/types/markers/MeaningfulMarker.d.ts +1 -1
- package/dist/types/markers/MeaningfulMarker.d.ts.map +1 -1
- package/dist/types/markers/SubTreeMarkers.d.ts +1 -1
- package/dist/types/markers/SubTreeMarkers.d.ts.map +1 -1
- package/dist/types/queryLanguage/Parser.d.ts.map +1 -1
- package/dist/types/queryLanguage/QueryLanguage.d.ts +2 -3
- package/dist/types/queryLanguage/QueryLanguage.d.ts.map +1 -1
- package/dist/types/treeParameters/EntityListEventListeners.d.ts +4 -4
- package/dist/types/treeParameters/EntityListEventListeners.d.ts.map +1 -1
- package/dist/types/treeParameters/EventListenersStore.d.ts +1 -1
- package/dist/types/treeParameters/EventListenersStore.d.ts.map +1 -1
- package/dist/types/treeParameters/FieldEventListeners.d.ts +3 -3
- package/dist/types/treeParameters/FieldEventListeners.d.ts.map +1 -1
- package/dist/types/treeParameters/SetOnCreate.d.ts +2 -2
- package/dist/types/treeParameters/SetOnCreate.d.ts.map +1 -1
- package/dist/types/treeParameters/SingleEntityEventListeners.d.ts +3 -3
- package/dist/types/treeParameters/SingleEntityEventListeners.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/Alias.d.ts +1 -1
- package/dist/types/treeParameters/primitives/Alias.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/EntityId.d.ts +1 -1
- package/dist/types/treeParameters/primitives/EntityId.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/EntityName.d.ts +1 -1
- package/dist/types/treeParameters/primitives/EntityName.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/EntityRealmKey.d.ts +1 -1
- package/dist/types/treeParameters/primitives/EntityRealmKey.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/ExpectedEntityCount.d.ts +1 -1
- package/dist/types/treeParameters/primitives/ExpectedEntityCount.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/ExpectedQualifiedEntityMutation.d.ts +1 -1
- package/dist/types/treeParameters/primitives/ExpectedQualifiedEntityMutation.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/ExpectedRelationMutation.d.ts +1 -1
- package/dist/types/treeParameters/primitives/ExpectedRelationMutation.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/FieldName.d.ts +1 -1
- package/dist/types/treeParameters/primitives/FieldName.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/FieldValue.d.ts +2 -2
- package/dist/types/treeParameters/primitives/FieldValue.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/Filter.d.ts +2 -2
- package/dist/types/treeParameters/primitives/Filter.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/Json.d.ts +1 -1
- package/dist/types/treeParameters/primitives/Json.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/Limit.d.ts +1 -1
- package/dist/types/treeParameters/primitives/Limit.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/Offset.d.ts +1 -1
- package/dist/types/treeParameters/primitives/Offset.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/OrderBy.d.ts +2 -2
- package/dist/types/treeParameters/primitives/OrderBy.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/PlaceholderName.d.ts +1 -1
- package/dist/types/treeParameters/primitives/PlaceholderName.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/RemovalType.d.ts +1 -1
- package/dist/types/treeParameters/primitives/RemovalType.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/Scalar.d.ts +1 -1
- package/dist/types/treeParameters/primitives/Scalar.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/TreeRootId.d.ts +1 -1
- package/dist/types/treeParameters/primitives/TreeRootId.d.ts.map +1 -1
- package/dist/types/treeParameters/primitives/UniqueWhere.d.ts +2 -2
- package/dist/types/treeParameters/primitives/UniqueWhere.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +16 -14
- package/src/accessorSorting/SortedEntities.ts +1 -1
- package/src/accessorSorting/errors.ts +0 -7
- package/src/accessorSorting/useSortedEntities.ts +15 -18
- package/src/accessorTree/MutationRequestResponse.ts +1 -1
- package/src/core/MutationGenerator.ts +16 -5
- package/src/core/TreeParameterMerger.ts +2 -2
- package/src/dao/Environment.ts +1 -1
- package/src/queryLanguage/Parser.ts +3 -3
- package/LICENSE +0 -186
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contember/binding",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "1.1.0-
|
|
4
|
+
"version": "1.1.0-rc.12",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/production/index.js",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
".": {
|
|
10
10
|
"import": {
|
|
11
11
|
"development": "./dist/development/index.js",
|
|
12
|
-
"production": "./dist/production/index.js"
|
|
12
|
+
"production": "./dist/production/index.js",
|
|
13
|
+
"default": "./dist/production/index.js"
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
16
|
},
|
|
@@ -18,11 +19,19 @@
|
|
|
18
19
|
"src/"
|
|
19
20
|
],
|
|
20
21
|
"typings": "./dist/types/index.d.ts",
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "yarn build:js:dev && yarn build:js:prod",
|
|
24
|
+
"build:js:dev": "vite build --mode development",
|
|
25
|
+
"build:js:prod": "vite build --mode production",
|
|
26
|
+
"ae:build": "api-extractor run --local",
|
|
27
|
+
"ae:test": "api-extractor run",
|
|
28
|
+
"test": "vitest"
|
|
29
|
+
},
|
|
21
30
|
"dependencies": {
|
|
22
|
-
"@contember/client": "1.1.0-
|
|
23
|
-
"@contember/react-client": "1.1.0-
|
|
24
|
-
"@contember/react-multipass-rendering": "1.1.0-
|
|
25
|
-
"@contember/react-utils": "1.1.0-
|
|
31
|
+
"@contember/client": "1.1.0-rc.12",
|
|
32
|
+
"@contember/react-client": "1.1.0-rc.12",
|
|
33
|
+
"@contember/react-multipass-rendering": "1.1.0-rc.12",
|
|
34
|
+
"@contember/react-utils": "1.1.0-rc.12",
|
|
26
35
|
"chevrotain": "6.5.0",
|
|
27
36
|
"fast-deep-equal": "^3.1.3",
|
|
28
37
|
"js-levenshtein": "1.1.6",
|
|
@@ -38,12 +47,5 @@
|
|
|
38
47
|
"react": "^18",
|
|
39
48
|
"react-dom": "^18"
|
|
40
49
|
},
|
|
41
|
-
"
|
|
42
|
-
"build": "pnpm run build:js:dev && pnpm run build:js:prod",
|
|
43
|
-
"build:js:dev": "vite build --mode development",
|
|
44
|
-
"build:js:prod": "vite build --mode production",
|
|
45
|
-
"ae:build": "api-extractor run --local",
|
|
46
|
-
"ae:test": "api-extractor run",
|
|
47
|
-
"test": "vitest"
|
|
48
|
-
}
|
|
50
|
+
"stableVersion": "0.0.0"
|
|
49
51
|
}
|
|
@@ -4,6 +4,6 @@ export interface SortedEntities {
|
|
|
4
4
|
entities: EntityAccessor[]
|
|
5
5
|
prependNew: (initialize?: EntityAccessor.BatchUpdatesHandler) => void
|
|
6
6
|
appendNew: (initialize?: EntityAccessor.BatchUpdatesHandler) => void
|
|
7
|
-
addNewAtIndex: (index: number, preprocess?: EntityAccessor.BatchUpdatesHandler) => void
|
|
7
|
+
addNewAtIndex: (index: number | undefined, preprocess?: EntityAccessor.BatchUpdatesHandler) => void
|
|
8
8
|
moveEntity: (oldIndex: number, newIndex: number) => void
|
|
9
9
|
}
|
|
@@ -9,10 +9,3 @@ export const throwNoopError = (callbackName: keyof SortedEntities) => {
|
|
|
9
9
|
`hook is undefined.`,
|
|
10
10
|
)
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
export const throwNonWritableError = (target: FieldName | EntityListAccessor) => {
|
|
14
|
-
if (target instanceof EntityListAccessor) {
|
|
15
|
-
throw new BindingError(`Trying to add a new entity to a list that is not writable.`)
|
|
16
|
-
}
|
|
17
|
-
throw new BindingError(`Trying to interactively sort by the '${target}' field but it is not writable.`)
|
|
18
|
-
}
|
|
@@ -13,12 +13,11 @@ const addNewAtIndexImplementation = (
|
|
|
13
13
|
callbackName: keyof SortedEntities,
|
|
14
14
|
entityList: EntityListAccessor,
|
|
15
15
|
desugaredSortableByField: RelativeSingleField | undefined,
|
|
16
|
-
sortedEntitiesCount: number,
|
|
17
16
|
index: number,
|
|
18
17
|
preprocess?: EntityAccessor.BatchUpdatesHandler,
|
|
19
18
|
) => {
|
|
20
19
|
if (!desugaredSortableByField) {
|
|
21
|
-
if (index ===
|
|
20
|
+
if (index === entityList.length) {
|
|
22
21
|
return entityList.createNewEntity(preprocess)
|
|
23
22
|
}
|
|
24
23
|
return throwNoopError(callbackName)
|
|
@@ -31,59 +30,57 @@ export const useSortedEntities = (
|
|
|
31
30
|
sortableByField: SugaredFieldProps['field'] | undefined,
|
|
32
31
|
): SortedEntities => {
|
|
33
32
|
const desugaredSortableByField = useDesugaredRelativeSingleField(sortableByField)
|
|
34
|
-
const sortedEntities = useMemo(() => {
|
|
35
|
-
return sortEntities(Array.from(entityList), desugaredSortableByField)
|
|
36
|
-
}, [desugaredSortableByField, entityList])
|
|
37
33
|
|
|
38
34
|
const addNewAtIndex = useCallback<SortedEntities['addNewAtIndex']>(
|
|
39
|
-
(index: number, preprocess?: EntityAccessor.BatchUpdatesHandler) => {
|
|
35
|
+
(index: number | undefined, preprocess?: EntityAccessor.BatchUpdatesHandler) => {
|
|
40
36
|
addNewAtIndexImplementation(
|
|
41
37
|
'addNewAtIndex',
|
|
42
|
-
entityList,
|
|
38
|
+
entityList.getAccessor(),
|
|
43
39
|
desugaredSortableByField,
|
|
44
|
-
|
|
45
|
-
index,
|
|
40
|
+
index ?? entityList.getAccessor().length,
|
|
46
41
|
preprocess,
|
|
47
42
|
)
|
|
48
43
|
},
|
|
49
|
-
[desugaredSortableByField, entityList
|
|
44
|
+
[desugaredSortableByField, entityList],
|
|
50
45
|
)
|
|
51
46
|
const prependNew = useCallback<SortedEntities['prependNew']>(
|
|
52
47
|
preprocess => {
|
|
53
48
|
addNewAtIndexImplementation(
|
|
54
49
|
'prependNew',
|
|
55
|
-
entityList,
|
|
50
|
+
entityList.getAccessor(),
|
|
56
51
|
desugaredSortableByField,
|
|
57
|
-
sortedEntities.length,
|
|
58
52
|
0,
|
|
59
53
|
preprocess,
|
|
60
54
|
)
|
|
61
55
|
},
|
|
62
|
-
[desugaredSortableByField, entityList
|
|
56
|
+
[desugaredSortableByField, entityList],
|
|
63
57
|
)
|
|
64
58
|
const appendNew = useCallback<SortedEntities['appendNew']>(
|
|
65
59
|
preprocess => {
|
|
66
60
|
addNewAtIndexImplementation(
|
|
67
61
|
'appendNew',
|
|
68
|
-
entityList,
|
|
62
|
+
entityList.getAccessor(),
|
|
69
63
|
desugaredSortableByField,
|
|
70
|
-
|
|
71
|
-
sortedEntities.length,
|
|
64
|
+
entityList.getAccessor().length,
|
|
72
65
|
preprocess,
|
|
73
66
|
)
|
|
74
67
|
},
|
|
75
|
-
[desugaredSortableByField, entityList
|
|
68
|
+
[desugaredSortableByField, entityList],
|
|
76
69
|
)
|
|
77
70
|
const normalizedMoveEntity = useCallback<SortedEntities['moveEntity']>(
|
|
78
71
|
(oldIndex, newIndex) => {
|
|
79
72
|
if (!desugaredSortableByField) {
|
|
80
73
|
return throwNoopError('moveEntity')
|
|
81
74
|
}
|
|
82
|
-
moveEntity(entityList, desugaredSortableByField, oldIndex, newIndex)
|
|
75
|
+
moveEntity(entityList.getAccessor(), desugaredSortableByField, oldIndex, newIndex)
|
|
83
76
|
},
|
|
84
77
|
[desugaredSortableByField, entityList],
|
|
85
78
|
)
|
|
86
79
|
|
|
80
|
+
const sortedEntities = useMemo(() => {
|
|
81
|
+
return sortEntities(Array.from(entityList), desugaredSortableByField)
|
|
82
|
+
}, [desugaredSortableByField, entityList])
|
|
83
|
+
|
|
87
84
|
// This wasn't such a great idea…
|
|
88
85
|
// useEffect(() => {
|
|
89
86
|
// if (!desugaredSortableByField) {
|
|
@@ -519,7 +519,7 @@ export class MutationGenerator {
|
|
|
519
519
|
|
|
520
520
|
if (reducedBy === undefined) {
|
|
521
521
|
return builder.one(marker.parameters.field, builder => {
|
|
522
|
-
if (
|
|
522
|
+
if (this.shouldConnectInsteadOfCreate(processedPlaceholdersByEntity, fieldState)) {
|
|
523
523
|
// TODO also potentially update
|
|
524
524
|
return builder.connect({ [PRIMARY_KEY_NAME]: runtimeId.value })
|
|
525
525
|
}
|
|
@@ -528,7 +528,7 @@ export class MutationGenerator {
|
|
|
528
528
|
}
|
|
529
529
|
return builder.many(marker.parameters.field, builder => {
|
|
530
530
|
const alias = MutationAlias.encodeEntityId(runtimeId)
|
|
531
|
-
if (
|
|
531
|
+
if (this.shouldConnectInsteadOfCreate(processedPlaceholdersByEntity, fieldState)) {
|
|
532
532
|
// TODO also potentially update
|
|
533
533
|
return builder.connect({ [PRIMARY_KEY_NAME]: runtimeId.value }, alias)
|
|
534
534
|
}
|
|
@@ -544,10 +544,11 @@ export class MutationGenerator {
|
|
|
544
544
|
) {
|
|
545
545
|
return builder.many(marker.parameters.field, builder => {
|
|
546
546
|
for (const entityRealm of fieldState.children.values()) {
|
|
547
|
-
const
|
|
548
|
-
|
|
547
|
+
const runtimeId = entityRealm.entity.id
|
|
548
|
+
const alias = MutationAlias.encodeEntityId(runtimeId)
|
|
549
|
+
if (this.shouldConnectInsteadOfCreate(processedPlaceholdersByEntity, entityRealm)) {
|
|
549
550
|
// TODO also potentially update
|
|
550
|
-
builder = builder.connect({ [PRIMARY_KEY_NAME]:
|
|
551
|
+
builder = builder.connect({ [PRIMARY_KEY_NAME]: runtimeId.value }, alias)
|
|
551
552
|
} else {
|
|
552
553
|
builder = builder.create(this.registerCreateMutationPart(processedPlaceholdersByEntity, entityRealm), alias)
|
|
553
554
|
}
|
|
@@ -556,6 +557,16 @@ export class MutationGenerator {
|
|
|
556
557
|
})
|
|
557
558
|
}
|
|
558
559
|
|
|
560
|
+
private shouldConnectInsteadOfCreate(
|
|
561
|
+
processedPlaceholdersByEntity: ProcessedPlaceholdersByEntity,
|
|
562
|
+
currentState: EntityRealmState | EntityRealmStateStub,
|
|
563
|
+
): boolean {
|
|
564
|
+
const runtimeId = currentState.entity.id
|
|
565
|
+
const processedPlaceholders = processedPlaceholdersByEntity.get(currentState.entity)
|
|
566
|
+
|
|
567
|
+
return runtimeId.existsOnServer || (runtimeId instanceof ClientGeneratedUuid && (processedPlaceholders?.has(PRIMARY_KEY_NAME) ?? false))
|
|
568
|
+
}
|
|
569
|
+
|
|
559
570
|
private registerUpdateMutationPart(
|
|
560
571
|
processedPlaceholdersByEntity: ProcessedPlaceholdersByEntity,
|
|
561
572
|
currentState: EntityRealmState,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GraphQlBuilder } from '@contember/client'
|
|
1
|
+
import { GraphQlBuilder, Writable } from '@contember/client'
|
|
2
2
|
import { BindingError } from '../BindingError'
|
|
3
3
|
import type {
|
|
4
4
|
Alias,
|
|
@@ -186,7 +186,7 @@ export class TreeParameterMerger {
|
|
|
186
186
|
if (fresh === undefined) {
|
|
187
187
|
return original
|
|
188
188
|
}
|
|
189
|
-
const originalCopy: UniqueWhere = { ...original }
|
|
189
|
+
const originalCopy: Writable<UniqueWhere> = { ...original }
|
|
190
190
|
|
|
191
191
|
for (const field in fresh) {
|
|
192
192
|
if (field in originalCopy) {
|
package/src/dao/Environment.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react'
|
|
2
2
|
import { BindingError } from '../BindingError'
|
|
3
3
|
import type { Filter } from '../treeParameters'
|
|
4
|
-
import equal from 'fast-deep-equal/es6'
|
|
4
|
+
import equal from 'fast-deep-equal/es6/index.js'
|
|
5
5
|
import { Schema, SchemaColumn, SchemaEntity, SchemaRelation } from '../core/schema'
|
|
6
6
|
import { GraphQlLiteral } from '@contember/client'
|
|
7
7
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CrudQueryBuilder, GraphQlBuilder,
|
|
1
|
+
import { CrudQueryBuilder, GraphQlBuilder, Input, Writable } from '@contember/client'
|
|
2
2
|
import { EmbeddedActionsParser, Lexer } from 'chevrotain'
|
|
3
3
|
import { Environment } from '../dao'
|
|
4
4
|
import type { EntityName, FieldName, Filter, OrderBy, UniqueWhere } from '../treeParameters'
|
|
@@ -345,7 +345,7 @@ class Parser extends EmbeddedActionsParser {
|
|
|
345
345
|
private condition: () => Parser.AST.Condition = this.RULE('condition', () => {
|
|
346
346
|
const operator = this.SUBRULE(this.conditionOperator)
|
|
347
347
|
const columnValue = this.SUBRULE(this.columnValue)
|
|
348
|
-
const condition: Parser.AST.Condition = {}
|
|
348
|
+
const condition: Writable<Parser.AST.Condition> = {}
|
|
349
349
|
|
|
350
350
|
return this.ACTION(() => {
|
|
351
351
|
if (columnValue === null) {
|
|
@@ -435,7 +435,7 @@ class Parser extends EmbeddedActionsParser {
|
|
|
435
435
|
})
|
|
436
436
|
|
|
437
437
|
private uniqueWhere = this.RULE('uniqueWhere', () => {
|
|
438
|
-
const where: UniqueWhere = {}
|
|
438
|
+
const where: Writable<UniqueWhere> = {}
|
|
439
439
|
|
|
440
440
|
this.CONSUME(tokens.LeftParenthesis)
|
|
441
441
|
this.AT_LEAST_ONE_SEP({
|
package/LICENSE
DELETED
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2022 Contember Limited
|
|
2
|
-
|
|
3
|
-
Portions of this software are licensed as follows:
|
|
4
|
-
|
|
5
|
-
* All content that resides under the "EE/" directory of this repository, if that directory exists, is licensed under the license defined in "EE/LICENSE".
|
|
6
|
-
* All third party components incorporated into the Contember/Admin are licensed under the original license provided by the owner of the applicable component.
|
|
7
|
-
* Content outside of the above mentioned directories or restrictions above is available under the Apache License, Version 2.0 (the "License") as defined below.
|
|
8
|
-
|
|
9
|
-
-------------------------------------------------------------------------
|
|
10
|
-
Apache License
|
|
11
|
-
Version 2.0, January 2004
|
|
12
|
-
http://www.apache.org/licenses/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
16
|
-
|
|
17
|
-
1. Definitions.
|
|
18
|
-
|
|
19
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
20
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
21
|
-
|
|
22
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
23
|
-
the copyright owner that is granting the License.
|
|
24
|
-
|
|
25
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
26
|
-
other entities that control, are controlled by, or are under common
|
|
27
|
-
control with that entity. For the purposes of this definition,
|
|
28
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
29
|
-
direction or management of such entity, whether by contract or
|
|
30
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
31
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
32
|
-
|
|
33
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
34
|
-
exercising permissions granted by this License.
|
|
35
|
-
|
|
36
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
37
|
-
including but not limited to software source code, documentation
|
|
38
|
-
source, and configuration files.
|
|
39
|
-
|
|
40
|
-
"Object" form shall mean any form resulting from mechanical
|
|
41
|
-
transformation or translation of a Source form, including but
|
|
42
|
-
not limited to compiled object code, generated documentation,
|
|
43
|
-
and conversions to other media types.
|
|
44
|
-
|
|
45
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
46
|
-
Object form, made available under the License, as indicated by a
|
|
47
|
-
copyright notice that is included in or attached to the work
|
|
48
|
-
(an example is provided in the Appendix below).
|
|
49
|
-
|
|
50
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
51
|
-
form, that is based on (or derived from) the Work and for which the
|
|
52
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
53
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
54
|
-
of this License, Derivative Works shall not include works that remain
|
|
55
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
56
|
-
the Work and Derivative Works thereof.
|
|
57
|
-
|
|
58
|
-
"Contribution" shall mean any work of authorship, including
|
|
59
|
-
the original version of the Work and any modifications or additions
|
|
60
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
61
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
62
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
63
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
64
|
-
means any form of electronic, verbal, or written communication sent
|
|
65
|
-
to the Licensor or its representatives, including but not limited to
|
|
66
|
-
communication on electronic mailing lists, source code control systems,
|
|
67
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
68
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
69
|
-
excluding communication that is conspicuously marked or otherwise
|
|
70
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
71
|
-
|
|
72
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
73
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
74
|
-
subsequently incorporated within the Work.
|
|
75
|
-
|
|
76
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
77
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
78
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
79
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
80
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
81
|
-
Work and such Derivative Works in Source or Object form.
|
|
82
|
-
|
|
83
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
84
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
85
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
86
|
-
(except as stated in this section) patent license to make, have made,
|
|
87
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
88
|
-
where such license applies only to those patent claims licensable
|
|
89
|
-
by such Contributor that are necessarily infringed by their
|
|
90
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
91
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
92
|
-
institute patent litigation against any entity (including a
|
|
93
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
94
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
95
|
-
or contributory patent infringement, then any patent licenses
|
|
96
|
-
granted to You under this License for that Work shall terminate
|
|
97
|
-
as of the date such litigation is filed.
|
|
98
|
-
|
|
99
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
100
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
101
|
-
modifications, and in Source or Object form, provided that You
|
|
102
|
-
meet the following conditions:
|
|
103
|
-
|
|
104
|
-
(a) You must give any other recipients of the Work or
|
|
105
|
-
Derivative Works a copy of this License; and
|
|
106
|
-
|
|
107
|
-
(b) You must cause any modified files to carry prominent notices
|
|
108
|
-
stating that You changed the files; and
|
|
109
|
-
|
|
110
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
111
|
-
that You distribute, all copyright, patent, trademark, and
|
|
112
|
-
attribution notices from the Source form of the Work,
|
|
113
|
-
excluding those notices that do not pertain to any part of
|
|
114
|
-
the Derivative Works; and
|
|
115
|
-
|
|
116
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
117
|
-
distribution, then any Derivative Works that You distribute must
|
|
118
|
-
include a readable copy of the attribution notices contained
|
|
119
|
-
within such NOTICE file, excluding those notices that do not
|
|
120
|
-
pertain to any part of the Derivative Works, in at least one
|
|
121
|
-
of the following places: within a NOTICE text file distributed
|
|
122
|
-
as part of the Derivative Works; within the Source form or
|
|
123
|
-
documentation, if provided along with the Derivative Works; or,
|
|
124
|
-
within a display generated by the Derivative Works, if and
|
|
125
|
-
wherever such third-party notices normally appear. The contents
|
|
126
|
-
of the NOTICE file are for informational purposes only and
|
|
127
|
-
do not modify the License. You may add Your own attribution
|
|
128
|
-
notices within Derivative Works that You distribute, alongside
|
|
129
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
130
|
-
that such additional attribution notices cannot be construed
|
|
131
|
-
as modifying the License.
|
|
132
|
-
|
|
133
|
-
You may add Your own copyright statement to Your modifications and
|
|
134
|
-
may provide additional or different license terms and conditions
|
|
135
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
136
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
137
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
138
|
-
the conditions stated in this License.
|
|
139
|
-
|
|
140
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
141
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
142
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
143
|
-
this License, without any additional terms or conditions.
|
|
144
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
145
|
-
the terms of any separate license agreement you may have executed
|
|
146
|
-
with Licensor regarding such Contributions.
|
|
147
|
-
|
|
148
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
149
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
150
|
-
except as required for reasonable and customary use in describing the
|
|
151
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
152
|
-
|
|
153
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
154
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
155
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
156
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
157
|
-
implied, including, without limitation, any warranties or conditions
|
|
158
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
159
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
160
|
-
appropriateness of using or redistributing the Work and assume any
|
|
161
|
-
risks associated with Your exercise of permissions under this License.
|
|
162
|
-
|
|
163
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
164
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
165
|
-
unless required by applicable law (such as deliberate and grossly
|
|
166
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
167
|
-
liable to You for damages, including any direct, indirect, special,
|
|
168
|
-
incidental, or consequential damages of any character arising as a
|
|
169
|
-
result of this License or out of the use or inability to use the
|
|
170
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
171
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
172
|
-
other commercial damages or losses), even if such Contributor
|
|
173
|
-
has been advised of the possibility of such damages.
|
|
174
|
-
|
|
175
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
176
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
177
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
178
|
-
or other liability obligations and/or rights consistent with this
|
|
179
|
-
License. However, in accepting such obligations, You may act only
|
|
180
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
181
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
182
|
-
defend, and hold each Contributor harmless for any liability
|
|
183
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
184
|
-
of your accepting any such warranty or additional liability.
|
|
185
|
-
|
|
186
|
-
END OF TERMS AND CONDITIONS
|