@elyx-code/project-logic-tree 0.0.6157 → 0.0.6159
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/index.js +1226 -1168
- package/dist/index.umd.cjs +74 -74
- package/dist/tree/state/types/index.d.ts +12 -5
- package/dist/tree/utils/index.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EntityId } from '../../../definitions';
|
|
1
2
|
import { ProjectState } from '../project';
|
|
2
3
|
import { EntityState } from './state';
|
|
3
4
|
|
|
@@ -7,11 +8,17 @@ export interface IModuleInjection {
|
|
|
7
8
|
id: string;
|
|
8
9
|
init(project: ProjectState): Promise<void> | void;
|
|
9
10
|
}
|
|
10
|
-
export interface IChangeSet<
|
|
11
|
-
added:
|
|
12
|
-
updated:
|
|
13
|
-
removed:
|
|
14
|
-
self:
|
|
11
|
+
export interface IChangeSet<TSelf = EntityState, TGeneric = EntityState> {
|
|
12
|
+
added: TGeneric[];
|
|
13
|
+
updated: TGeneric[];
|
|
14
|
+
removed: TGeneric[];
|
|
15
|
+
self: TSelf;
|
|
16
|
+
}
|
|
17
|
+
export interface IRecordChangeSet<TSelf = EntityState, TGeneric = EntityState> {
|
|
18
|
+
added: Record<EntityId, TGeneric>;
|
|
19
|
+
updated: Record<EntityId, TGeneric>;
|
|
20
|
+
removed: Set<EntityId>;
|
|
21
|
+
self: TSelf;
|
|
15
22
|
}
|
|
16
23
|
export declare enum EntityAction {
|
|
17
24
|
Create = "create",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseEntityNames, ElementGenerationTarget, ElementShallowTransfer, ElementTransfer, EntityType, Element, IGenericReference, EntityId, ValueReadingEntityTypesUnion, ValueReadingEntity, IActionDescriptor, IActionDescriptorTransfer, IArgumentDeclaration, IArgumentDeclarationTransfer, DraggableElement, Reference, IBreakStatement, IBreakStatementTransfer, IBuiltInBaseEntity, IBuiltInBaseEntityTransfer, ICondition, IConditionTransfer, IContinueStatement, IContinueStatementTransfer, CallableEntity, CallableEntityTransfer, CallerEntity, CallerEntityTransfer, IDefinitionEntity, IDefinitionEntityTransfer, IDataType, IDataTypeTransfer, IFunctionCall, IFunctionCallTransfer, IFunctionDeclaration, IFunctionDeclarationTransfer, IGlobalEvent, IGlobalEventTransfer, IInputMap, IInputMapTransfer, IInstalledProject, IInstalledProjectTransfer, IInternalCall, IInternalCallTransfer, ILiteralValue, ILiteralValueTransfer, ILoop, ILoopTransfer, IOperation, IOperationTransfer, IOutputMap, IOutputMapTransfer, IPrimitiveEntity, IPrimitiveEntityTransfer, IProject, IProjectTransfer, IProperty, IPropertyTransfer, IReturnDeclaration, IReturnDeclarationTransfer, IReturnStatement, IReturnStatementTransfer, ISearch, ISearchTransfer, IValueDescriptor, IValueDescriptorTransfer, IVariableDeclarationTransfer, IVariableDeclaration, IVariableInstance, IVariableInstanceTransfer, DraggableElementTransfer, ValueReadingEntityTransfer, IActionDescriptorShallowTransfer, IDataTypeShallowTransfer, IDefinitionEntityShallowTransfer, IFunctionDeclarationShallowTransfer, IInstalledProjectShallowTransfer, ILoopShallowTransfer, IOperationShallowTransfer, ILiteralValueShallowTransfer, IPrimitiveEntityShallowTransfer, IProjectShallowTransfer, IPropertyShallowTransfer, IReturnDeclarationShallowTransfer, IReturnStatementShallowTransfer, ISearchShallowTransfer, IValueDescriptorShallowTransfer, IVariableDeclarationShallowTransfer, IVariableInstanceShallowTransfer, IFunctionCallShallowTransfer, IGlobalEventShallowTransfer, IInputMapShallowTransfer, IInternalCallShallowTransfer, CallableEntityShallowTransfer, IOutputMapShallowTransfer, IConditionShallowTransfer, IContinueStatementShallowTransfer, IBreakStatementShallowTransfer, IArgumentDeclarationShallowTransfer, IBuiltInBaseEntityShallowTransfer, DraggableElementShallowTransfer } from '../../definitions';
|
|
2
|
-
import { DraggableCallableEntityState, CanvasEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, DraggableExecutableEntityState, DraggablePassThroughCallableEntityState, ValueReadingEntityState, ValueWritingEntityState, EntityWithValueState, VariableState, BuiltInBaseEntityState, TerminationState, InstalledProjectState, ExecutableEntityState, ValueDescriptorState, CallableEntityState, CallerEntityState, PassThroughCallableEntityState, PrimitiveEntityState, InternalCallState } from '../state';
|
|
2
|
+
import { DraggableCallableEntityState, CanvasEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, DraggableExecutableEntityState, DraggablePassThroughCallableEntityState, ValueReadingEntityState, ValueWritingEntityState, EntityWithValueState, VariableState, BuiltInBaseEntityState, TerminationState, InstalledProjectState, ExecutableEntityState, ValueDescriptorState, CallableEntityState, CallerEntityState, PassThroughCallableEntityState, PrimitiveEntityState, InternalCallState, DataTypeState, ActionDescriptorState, ContinueStatementState, BreakStatementState, LiteralValueState } from '../state';
|
|
3
3
|
import { FunctionCallState } from '../state/function-call';
|
|
4
4
|
import { InputMapState } from '../state/input-map';
|
|
5
5
|
import { VariableDeclarationState } from '../state/variable-declaration';
|
|
@@ -8,6 +8,7 @@ import { ReturnDeclarationState } from '../state/return-declaration';
|
|
|
8
8
|
import { OutputMapState } from '../state/output-map';
|
|
9
9
|
import { ConditionState } from '../state/condition';
|
|
10
10
|
import { ReturnStatementState } from '../state/return-statement';
|
|
11
|
+
import { GlobalEventState } from '../state/global-event';
|
|
11
12
|
import { FunctionDeclarationState } from '../state/function-declaration';
|
|
12
13
|
import { ProjectState } from '../state/project/project';
|
|
13
14
|
import { PropertyState } from '../state/property';
|
|
@@ -272,3 +273,4 @@ export declare function resolvePrimaryKeyProperty(entity: DefinitionEntityState)
|
|
|
272
273
|
export declare function getColumnProperties(entity: DefinitionEntityState): PropertyState[];
|
|
273
274
|
export declare function getDatabaseEntity(entity: DefinitionEntityState): DefinitionEntityState | null;
|
|
274
275
|
export declare function resolveClonedEntityProject(newParent: EntityState | null, self: EntityState): ProjectState;
|
|
276
|
+
export declare function getStateClassFromType(entityType: EntityType): typeof BuiltInBaseEntityState | typeof ProjectState | typeof InstalledProjectState | typeof DefinitionEntityState | typeof FunctionDeclarationState | typeof GlobalEventState | typeof VariableInstanceState | typeof VariableDeclarationState | typeof InputMapState | typeof OutputMapState | typeof ConditionState | typeof OperationState | typeof FunctionCallState | typeof ReturnDeclarationState | typeof ArgumentDeclarationState | typeof PrimitiveEntityState | typeof DataTypeState | typeof PropertyState | typeof ActionDescriptorState | typeof ReturnStatementState | typeof ContinueStatementState | typeof BreakStatementState | typeof LoopState | typeof SearchState | typeof ValueDescriptorState | typeof InternalCallState | typeof LiteralValueState | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elyx-code/project-logic-tree",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6159",
|
|
4
4
|
"author": "Sergio Herrero",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"description": "An installable module which contains the type definitions and ephemeral state management for a projects' logic tree data structure",
|