@elyx-code/project-logic-tree 0.0.6340 → 0.0.6343

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.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { BinaryExpr } from 'sql-parser-cst';
2
+ import { Events } from '@elyx-code/common-ts-utils';
2
3
  import { Expr } from 'sql-parser-cst';
3
4
  import { ForSystemTimeAsOfExpr } from 'sql-parser-cst';
4
5
  import { FromClause } from 'sql-parser-cst';
@@ -171,6 +172,11 @@ export declare class ActionOutputMapState extends OutputMapState implements IAct
171
172
  toJSON(seenEntities?: Set<EntityId>): IActionOutputMap | IOutputMapReference;
172
173
  }
173
174
 
175
+ export declare function addDisabledReasons(existingDisbledResons: CanvasEntityDisabledReason[], newReasons: CanvasEntityDisabledReason[]): {
176
+ hasChanged: boolean;
177
+ reasons: CanvasEntityDisabledReason[];
178
+ };
179
+
174
180
  export declare function afterLiteralValueAsTypeChangeSideEffects(newValue: ValueAsTypeState | ValueAsTypeState[] | null, entity: EntityWithValueState, project: ProjectState, storage: ChangeSet | IValueStoreClient): ChangeSet | null;
175
181
 
176
182
  export declare function afterLiteralValueAsTypeDeleteSideEffects(entity: EntityWithValueState, project: ProjectState, storage: ChangeSet | IValueStoreClient): ChangeSet | null;
@@ -233,6 +239,12 @@ export declare const ALL_BUILT_IN_TOP_LEVEL_ENTITIES: ElementTransfer[];
233
239
 
234
240
  export declare const ALL_BUILT_IN_VALUE_DESCRIPTORS: IValueDescriptorTransfer[];
235
241
 
242
+ export declare const ALL_CONNECTION_DISABLED_REASONS: CanvasEntityConnectionDisabledReason[];
243
+
244
+ export declare const ALL_OTHER_DISABLED_REASONS: CanvasEntityOtherDisabledReason[];
245
+
246
+ export declare const ALL_TESTING_DISABLED_REASONS: CanvasEntityTestingDisabledReason[];
247
+
236
248
  declare class AllColumnsSelector implements ISearchNode {
237
249
  owner: SearchStatementState;
238
250
  parent: DataSource | null;
@@ -286,6 +298,74 @@ export declare const appendToListOperationSecondListDataType: IDataTypeTransfer;
286
298
 
287
299
  export declare function applyNewScope(self: CallableEntityState, changeSet: ChangeSet | null): void;
288
300
 
301
+ export declare class Area {
302
+ ids: string[];
303
+ entity: CanvasEntityState | ProjectState;
304
+ entityCardHeight: number;
305
+ entityCardWidth: number;
306
+ index: number;
307
+ childEntities: CanvasEntityState[];
308
+ children: Area[];
309
+ parents: Area[];
310
+ calculationEntryPoint: Area;
311
+ _onlyEntities: CanvasEntityState[] | null;
312
+ private _changeSet;
313
+ constructor(entity: CanvasEntityState | ProjectState, index: number, calculationEntryPoint?: Area | null, changeSet?: ChangeSet);
314
+ static autoGenerateLayout(entryPointEntity: CanvasEntityState | ProjectState, changeSet: ChangeSet | null, onlyEntities?: CanvasEntityState[]): CanvasEntityState[];
315
+ static recursivelyAssembleChildrenAreas(renderedParents: Area[]): void;
316
+ get onlyEntities(): CanvasEntityState[] | null;
317
+ get changeSet(): ChangeSet | null;
318
+ set changeSet(changeSet: ChangeSet | null);
319
+ findAreaInChildrenFromEntity(entity: CanvasEntityState): Area | null;
320
+ findAreaFromEntity(entity: CanvasEntityState): Area | null;
321
+ addParent(parent: Area): void;
322
+ static resolveIds(parent: Area, index: number): string[];
323
+ getSortedChildren(): void;
324
+ calculateCardSize(): void;
325
+ static getBoundriesOfTwoAreas(area1: ICoordinates, area2: ICoordinates): ICoordinates;
326
+ static getBoundriedOfCombinedAreas(areas: Area[], until: Area[]): ICoordinates;
327
+ getFullAreaUntilAny(areas: Area[]): ICoordinates;
328
+ getFullAreaUntilAreaOrAnyChildren(childArea: Area): ICoordinates;
329
+ getFullAreaUntil(childArea: Area): ICoordinates;
330
+ get fullBranchArea(): ICoordinates;
331
+ get ownEntityArea(): ICoordinates;
332
+ get ownEntityPlusBufferArea(): ICoordinates;
333
+ static filterOutRepeatedAreas(areas: Area[]): Area[];
334
+ getEarliestId(idA: string, idB: string): string;
335
+ getEarliestLevel(): number;
336
+ countColumns(): number;
337
+ getLatestId(idA: string, idB: string): string;
338
+ getLatestLevel(): number;
339
+ smoothPosition(): void;
340
+ shiftDownUntilAny(areas: Area[], amount: number): Area[];
341
+ shiftRightUntilAny(areas: Area[], amount: number): void;
342
+ shiftRight(amount: number): void;
343
+ shiftDownAlone(amount: number): void;
344
+ centerHeaderVerticallyOverCombinedAllParentsHeaderHeight(): void;
345
+ centerHeaderVerticallyOverCombinedAllChildrenHeaderHeight(): number;
346
+ resolveChildrenOverlaps(): void;
347
+ static getEarliestParentInChain(area: Area): Area;
348
+ flattenEarlierSiblings(seenSiblings?: Set<string>): Area[];
349
+ flattenSiblings(seenSiblings?: Set<string>): Area[];
350
+ flattenChildren(seenChildren?: Set<string>): Area[];
351
+ flattenParents(seenParents?: Set<string>): Area[];
352
+ getAreaIfRendered(entity: CanvasEntityState): Area | null;
353
+ getLowerSiblings(): Area[];
354
+ getLowerAreas(): Area[];
355
+ adjustVerticallyToAvoidOverlaps(alreadyShiftedAreas?: Area[]): Area[];
356
+ move(entity: CanvasEntityState, coordinates: {
357
+ x: number;
358
+ y: number;
359
+ } | {
360
+ y: number;
361
+ } | {
362
+ x: number;
363
+ }): void;
364
+ addChild(index: number): Area | null;
365
+ flattenChildEntities(seenEntities?: Set<string>): CanvasEntityState[];
366
+ next(onLevelComplete: (renderedLevel: Area[]) => void): void;
367
+ }
368
+
289
369
  export declare enum ArgumentDeclarationDependencyField {
290
370
  DataTypeEntity = "data-type-entity",
291
371
  Implements = "implements"
@@ -1165,6 +1245,16 @@ export declare const CACHED_PROJECTS_BY_ID: {
1165
1245
  [id: string]: ProjectState;
1166
1246
  };
1167
1247
 
1248
+ export declare function calculateCardSize(entity: CanvasEntityState): {
1249
+ height: number;
1250
+ width: number;
1251
+ };
1252
+
1253
+ export declare function calculateMethodCardSize(entity: FunctionDeclarationState): {
1254
+ height: number;
1255
+ width: number;
1256
+ };
1257
+
1168
1258
  export declare function calculateNewParentBasedOnCallers(self: CallableEntityState): EntityWithLogicScopeState | ProjectState;
1169
1259
 
1170
1260
  export declare const CALLABLE_ENTITIES_EXPLANATION: string;
@@ -1198,8 +1288,6 @@ export declare type CallableEntityTransfer = PassThroughCallableEntityTransfer |
1198
1288
 
1199
1289
  export declare type CallableEntityTypesUnion = CallableEntity | CallableEntityTransfer | CallableEntityShallowTransfer | CallableEntityGenerationTarget;
1200
1290
 
1201
- declare type CallbackArguments<Arguments extends any[] = any[]> = [...args: Arguments];
1202
-
1203
1291
  export declare const CALLER_ENTITIES_EXPLANATION: string;
1204
1292
 
1205
1293
  export declare const CALLER_TYPES: EntityType[];
@@ -1226,10 +1314,68 @@ export declare type CallerEntityTypesUnion = CallerEntity | CallerEntityTransfer
1226
1314
 
1227
1315
  export declare const CALLS_UPDATE_EXPLANATION = "Caller to callee relationships can be updated with the 'add_caller' and 'remove_caller' generation action with the properties: 'callerEntityId', a 'calleeEntityId'. For adding a caller, you can optionally add a boolean property 'fromError' (if the caller calls when an error occured in its execution).\nEither of these two actions will only affect the one relationship between the given caller and callee and ignore any others present in either entity.";
1228
1316
 
1317
+ export declare const CANVAS_BASE_X: number;
1318
+
1319
+ export declare const CANVAS_BASE_Y: number;
1320
+
1321
+ export declare const CANVAS_CARD_HEADER_CENTER_HEIGHT = 32;
1322
+
1323
+ export declare const CANVAS_CARD_WIDTH = 280;
1324
+
1325
+ export declare const CANVAS_COMPLEX_CARD_HEIGHT = 300;
1326
+
1327
+ export declare const CANVAS_HORIZONTAL_BUFFER_BETWEEN_CARDS = 270;
1328
+
1329
+ export declare const CANVAS_SIMPLE_CARD_HEIGHT = 65;
1330
+
1331
+ export declare const CANVAS_SIZE = 40000;
1332
+
1333
+ export declare const CANVAS_VERTICAL_BUFFER_BETWEEN_CARDS = 90;
1334
+
1335
+ export declare enum CanvasEntityConnectionDisabledReason {
1336
+ ValuesAlreadyConnected = "values-already-connected",
1337
+ CannotReadMoreThanOneValue = "cannot-read-more-than-one-value",
1338
+ CannotReadValueFromChildren = "cannot-read-value-from-children",
1339
+ CannotWriteValueToChildren = "cannot-write-value-to-children",
1340
+ CannotBeCalledByChildren = "cannot-be-called-by-children",
1341
+ ExecutionsAlreadyConnected = "executions-already-connected",
1342
+ DataTypesNotCompatible = "data-types-not-compatible",
1343
+ CannotCallAncestor = "cannot-call-ancestor",
1344
+ CannotWriteValueToAncestor = "cannot-write-value-to-ancestor",
1345
+ NotInScope = "not-in-scope",
1346
+ IsNotValueWrittingEntity = "is-not-value-writting-entity",
1347
+ IsNotValueReadingEntity = "is-not-value-reading-entity",
1348
+ ContinueOrBreakStatementCalledFromOutsideLoop = "continue-or-break-statement-called-from-outside-loop",
1349
+ ElementInLoopBodyCallingOutsideLoop = "element-in-loop-body-calling-outside-loop",
1350
+ CallerIsInHigherScope = "caller-is-in-higher-scope",
1351
+ CallerIsInLowerScope = "caller-is-in-lower-scope",
1352
+ CallIsInHigherScope = "call-is-in-higher-scope",
1353
+ CallIsInLowerScope = "call-is-in-lower-scope",
1354
+ OtherIncompatibleScopeReason = "other-incompatible-scope-reason"
1355
+ }
1356
+
1357
+ export declare type CanvasEntityDisabledReason = CanvasEntityConnectionDisabledReason | CanvasEntityTestingDisabledReason | CanvasEntityOtherDisabledReason;
1358
+
1359
+ export declare enum CanvasEntityOtherDisabledReason {
1360
+ Suggestion = "suggestion",
1361
+ CanvasGloballyDisabled = "canvas-globally-disabled"
1362
+ }
1363
+
1229
1364
  export declare type CanvasEntityState = InstalledProjectState | DefinitionEntityState | FunctionDeclarationState | GlobalEventState | VariableState | ConditionState | OperationState | FunctionCallState | ReturnStatementState | ContinueStatementState | BreakStatementState | LoopState | SearchState;
1230
1365
 
1366
+ export declare enum CanvasEntityTestingDisabledReason {
1367
+ NotPartOfOngoingTest = "not-part-of-ongoing-test",
1368
+ CannotBeAddedToTest = "cannot-be-added-to-test"
1369
+ }
1370
+
1231
1371
  export declare function capitalizeFirstLetter(value: string): string;
1232
1372
 
1373
+ export declare const CARD_FOOTER_HEIGHT = 38;
1374
+
1375
+ export declare const CARD_PROPERTIES_SECTION_PADDING: number;
1376
+
1377
+ export declare const CARD_PROPERTIES_SECTION_SINGLE_PADDING = 10;
1378
+
1233
1379
  export declare class ChangeSet {
1234
1380
  id: string;
1235
1381
  seenEntities: EntityId[];
@@ -1414,10 +1560,6 @@ declare class ColumnRef implements ISearchNode {
1414
1560
  get isValid(): boolean;
1415
1561
  }
1416
1562
 
1417
- declare class CombinedVersionedEvents extends VersionedState {
1418
- constructor(...args: ConstructorParameters<typeof VersionedState>);
1419
- }
1420
-
1421
1563
  export declare enum CommonStringValidationErrorCodes {
1422
1564
  StringValueMustNotHaveSpaces = "string-value-must-not-have-spaces",
1423
1565
  StringValueMustNotHaveDashes = "string-value-must-not-have-dashes"
@@ -2505,6 +2647,8 @@ export declare type ElementTransfer = IProjectTransfer | IInstalledProjectTransf
2505
2647
 
2506
2648
  export declare type ElementTypesUnion = ProjectTypesUnion | InstalledProjectTypesUnion | DefinitionEntityTypesUnion | GlobalEventTypesUnion | FunctionDeclarationTypesUnion | FunctionCallTypesUnion | PropertyTypesUnion | VariableDeclarationTypesUnion | VariableInstanceTypesUnion | OperationTypesUnion | ConditionTypesUnion | ArgumentDeclarationTypesUnion | InputMapTypesUnion | ReturnDeclarationTypesUnion | OutputMapTypesUnion | DataTypeTypesUnion | ReturnStatementTypesUnion | BreakStatementTypesUnion | ContinueStatementTypesUnion | LoopTypesUnion | ActionDescriptorTypesUnion | SearchTypesUnion | PrimitiveEntityTypesUnion | LiteralValueTypesUnion | ValueDescriptorTypesUnion | BuiltInBaseEntityTypesUnion | InternalCallTypesUnion;
2507
2649
 
2650
+ export declare function emitSideEffects(changeSet: ChangeSet): ChangeSet;
2651
+
2508
2652
  export declare const endpointBuiltInBaseEntity: IBuiltInBaseEntityTransfer;
2509
2653
 
2510
2654
  export declare const endpointBuiltInBaseEntityRef: IBuiltInBaseEntityReference;
@@ -2925,9 +3069,11 @@ export declare const enumPrototype: IPrimitiveEntityTransfer;
2925
3069
 
2926
3070
  export declare const enumPrototypeRef: IPrimitiveEntityReference;
2927
3071
 
2928
- export declare const EVENT_TYPES: EntityType[];
3072
+ export declare const ERROR_PROPERTY_HEIGHT = 52;
2929
3073
 
2930
- declare type EventCallback<Arguments extends any[]> = (...args: CallbackArguments<Arguments>) => any;
3074
+ export declare function errorCodeToMessage(errorCode: string): string;
3075
+
3076
+ export declare const EVENT_TYPES: EntityType[];
2931
3077
 
2932
3078
  export declare type EventEntity = IGlobalEvent;
2933
3079
 
@@ -2945,19 +3091,6 @@ export declare type EventEntityTransfer = IGlobalEventTransfer;
2945
3091
 
2946
3092
  export declare type EventEntityTypesUnion = EventEntity | EventEntityTransfer | EventEntityShallowTransfer | EventEntityGenerationTarget;
2947
3093
 
2948
- export declare class Events {
2949
- private subscribedEvents;
2950
- private getEvent;
2951
- _on<Arguments extends any[]>(eventName: string, callback: EventCallback<Arguments>): void;
2952
- on: <Arguments extends any[]>(eventName: string, callback: EventCallback<Arguments>) => void;
2953
- _emit<Arguments extends any[]>(eventName: string, ...args: Arguments): void;
2954
- emit: <Arguments extends any[]>(eventName: string, ...args: Arguments) => void;
2955
- _off<Arguments extends any[]>(eventName: string, callback?: EventCallback<Arguments>): void;
2956
- off: <Arguments extends any[]>(eventName: string, callback?: EventCallback<Arguments>) => void;
2957
- _destroy(): void;
2958
- destroy: () => void;
2959
- }
2960
-
2961
3094
  export declare const EXECUTABLE_TYPES: EntityType[];
2962
3095
 
2963
3096
  export declare type ExecutableEntity = CallableEntity | EntryPointEntity;
@@ -3604,6 +3737,8 @@ export declare function generateIdFromStrategy(entity: EntityState, project: Pro
3604
3737
 
3605
3738
  export declare function generateMutablePropertiesExplanation(entityToUpdate: EntityState): string;
3606
3739
 
3740
+ export declare function generatePlaceholderValueStore(id: string, project: ProjectState): IValueStoreClient;
3741
+
3607
3742
  export declare function generateRandomBoolean(_: IAutogenerationRandomBoolean): boolean;
3608
3743
 
3609
3744
  export declare function generateRandomDate(options: IAutogenerationRandomDate): Date;
@@ -8507,6 +8642,13 @@ export declare interface IContinueStatementTransfer extends ITerminationStatemen
8507
8642
  parent: ILoop | ILoopReference;
8508
8643
  }
8509
8644
 
8645
+ export declare interface ICoordinates {
8646
+ top: number;
8647
+ left: number;
8648
+ bottom: number;
8649
+ right: number;
8650
+ }
8651
+
8510
8652
  declare interface IDataSource {
8511
8653
  entity: DefinitionEntityState | null;
8512
8654
  query: NestedSearchStatement | null;
@@ -8647,7 +8789,7 @@ export declare interface IEditableEntityPersistanceRepository extends IReadOnlyE
8647
8789
  APILoadVersion<T extends Array<any> = any[]>(entityId: EntityId, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: T): Promise<ElementShallowTransfer | null>;
8648
8790
  }
8649
8791
 
8650
- export declare interface IEditor extends IUndoableInterface, IValueResolutionContext {
8792
+ export declare interface IEditor<Options extends object = {}> extends IUndoableInterface, IValueResolutionContext {
8651
8793
  ready: boolean;
8652
8794
  hasLoadedLogic: boolean;
8653
8795
  destroyed: boolean;
@@ -8667,26 +8809,29 @@ export declare interface IEditor extends IUndoableInterface, IValueResolutionCon
8667
8809
  onLogicLoadingCompleteCallback: null | ((chunk: any) => void);
8668
8810
  onRenderedCallback: null | (() => void);
8669
8811
  onProjectSetupErrorCallback: null | ((error: any) => void);
8670
- constructor(projectId: EntityId, socket?: IWebsocketsClient | null, events?: Events): IEditor;
8812
+ constructor(projectId: EntityId, socket: IWebsocketsClient | null, events: Events | null, options?: Options): IEditor;
8671
8813
  get execution(): Execution | null;
8672
8814
  get project(): ProjectState;
8673
8815
  get lastExecutionResults(): EfimeralValueStore;
8674
8816
  get undoableStackValueIndex(): number;
8675
8817
  set undoableStackValueIndex(value: number);
8676
8818
  get PROJECT_NOTIFICATIONS_CHANNEL(): string;
8819
+ getAccessToken(): Promise<string | null>;
8677
8820
  onProjectHeadLoaded(callback: (projectState: ProjectState) => void): void;
8678
8821
  onLogicLoadingComplete(callback: (chunk: any) => void): void;
8679
- onRendered(callback: () => void): void;
8680
8822
  onProjectSetupError(callback: (error: any) => void): void;
8681
8823
  removeValueByOwnerId(entityId: EntityId): void;
8682
8824
  removeValue(dynamicValue: IDynamicValue): void;
8683
- handleNotificationChannelsMessage(message: IOutgoingWSMessage<string, {
8825
+ handleIncommingWebsocketMessage(message: {
8826
+ [key: string]: any;
8827
+ }): Promise<void>;
8828
+ handleNotificationChannelsMessage(message: {
8684
8829
  data: {
8685
8830
  channels: IChannelConnections[];
8686
8831
  sessionId: string;
8687
8832
  };
8688
- }>): void;
8689
- handlePersistChangeSetMessage(message: IOutgoingWSMessage<string, PersistChangeSetEntityActionRequestPayload>): void;
8833
+ }): void;
8834
+ handlePersistChangeSetMessage(message: PersistChangeSetEntityActionRequestPayload): void;
8690
8835
  getLogic(options?: {
8691
8836
  mockLogic?: ProjectState;
8692
8837
  }): Promise<void>;
@@ -8767,8 +8912,8 @@ export declare interface IExecutionCallbackContext {
8767
8912
  }
8768
8913
 
8769
8914
  export declare interface IExecutionClient {
8770
- onBeforeEntityExecution?: (entity: EntityState, inputs: IDynamicValue[], context: IExecutionCallbackContext) => Promise<any>;
8771
- onEntityExecuted?: (entity: EntityState, result: IExecutionResult, context: IExecutionCallbackContext) => Promise<any>;
8915
+ onBeforeEntityExecution?: (entity: TestableEntityState, inputs: IDynamicValue[], context: IExecutionCallbackContext) => Promise<any>;
8916
+ onEntityExecuted?: (entity: TestableEntityState, result: IExecutionResult, context: IExecutionCallbackContext) => Promise<any>;
8772
8917
  }
8773
8918
 
8774
8919
  export declare interface IExecutionResult {
@@ -9906,7 +10051,7 @@ export declare interface IProjectTransfer extends IProject_meta {
9906
10051
  searches: (ISearch | ISearchTransfer)[];
9907
10052
  }
9908
10053
 
9909
- declare interface IProjectVersionTransitionConfig {
10054
+ export declare interface IProjectVersionTransitionConfig {
9910
10055
  transitionalChangeSet: ChangeSet;
9911
10056
  transitionTime: string;
9912
10057
  timeOfOriginalTargetChanges: string;
@@ -11176,6 +11321,10 @@ export { loopValidation }
11176
11321
 
11177
11322
  export declare function lowercaseFirstLetter(value: string): string;
11178
11323
 
11324
+ export declare const MAIN_VALUE_PROPERTY_HEADER_HEIGHT = 44;
11325
+
11326
+ export declare const MAIN_VALUE_SUB_PROPERTY_HEIGHT = 35;
11327
+
11179
11328
  export declare const manualFlowActionDescriptorDeclarationArgumentDeclaration: IValueDescriptorTransfer;
11180
11329
 
11181
11330
  export declare const manualFlowActionDescriptorDeclarationArgumentDeclarationDataType: IDataTypeTransfer;
@@ -11204,6 +11353,8 @@ export declare function mapActionDescriptorToTypeItRepresents(entity: EntityStat
11204
11353
 
11205
11354
  export declare function mapRecord(record: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer> | undefined, entityIdMaps: Map<EntityId, EntityId>): Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
11206
11355
 
11356
+ export declare function mergeArraysOfStringsWithoutDuplicates(arr1: string[], arr2: string[]): string[];
11357
+
11207
11358
  export declare function mergeEntityErrorsList(oldErrors: EntityError[], newErrors: EntityError[]): EntityError[];
11208
11359
 
11209
11360
  export declare function mergeListOfEntities(oldErrors: EntityState[], newErrors: EntityState[]): EntityState[];
@@ -11230,6 +11381,8 @@ export declare const moreThanOrEqualConditionRightHandArgumentDataTypeParentRef:
11230
11381
 
11231
11382
  export declare const moreThanOrEqualConditionRightHandArgumentParentRef: IActionDescriptorReference;
11232
11383
 
11384
+ export declare const NESTED_PROPERTY_HEIGHT = 26;
11385
+
11233
11386
  declare class NestedSearchStatement implements ISearchNode {
11234
11387
  owner: SearchStatementState;
11235
11388
  statement: SearchStatementState | null;
@@ -11976,10 +12129,7 @@ export declare type ProjectPayloadUnion = ProjectState | ProjectTypesUnion;
11976
12129
 
11977
12130
  export declare const projectPublicationCompletedGlobalEvent: IActionDescriptorTransfer;
11978
12131
 
11979
- export declare interface ProjectState extends Events {
11980
- }
11981
-
11982
- export declare class ProjectState extends CombinedVersionedEvents implements IProject, UserManagedEntityStateTemplate, BaseState {
12132
+ export declare class ProjectState extends VersionedState implements IProject, UserManagedEntityStateTemplate, BaseState {
11983
12133
  initialData: IProject | IProjectTransfer;
11984
12134
  readonly id: EntityId;
11985
12135
  type: EntityType.Project;
@@ -12029,6 +12179,7 @@ export declare class ProjectState extends CombinedVersionedEvents implements IPr
12029
12179
  activeVersion: boolean;
12030
12180
  initialized: boolean;
12031
12181
  startedInitialization: boolean;
12182
+ _eventsHub: Events;
12032
12183
  onCloseChangeSetCallback: ((changeSet: ChangeSet) => Promise<{
12033
12184
  success: boolean;
12034
12185
  }>) | null;
@@ -12061,6 +12212,9 @@ export declare class ProjectState extends CombinedVersionedEvents implements IPr
12061
12212
  errors: EntityGenerationError[];
12062
12213
  modifiedData: IProjectGenerationTarget;
12063
12214
  };
12215
+ get off(): Events['off'];
12216
+ get on(): Events['on'];
12217
+ get emit(): Events['emit'];
12064
12218
  closePendingChangeSets(): Promise<void>;
12065
12219
  onRequestActiveValue(callback: (valueOwner: EntityWithValueState) => LiteralValueState | null): void;
12066
12220
  onCloseChangeSet(callback: (changeSet: ChangeSet) => Promise<{
@@ -12236,6 +12390,8 @@ export declare function propagateNewStaticPropertyValueAsTypeToVariables(entity:
12236
12390
 
12237
12391
  export declare function propagateNewStaticPropertyValueToVariables(entity: PropertyState, project: ProjectState, newValue: LiteralValueType, storage: ChangeSet | IValueStoreClient): ChangeSet | null;
12238
12392
 
12393
+ export declare const PROPERTY_HEIGHT = 39;
12394
+
12239
12395
  export declare const PROPERTY_NOT_VALUE_READER_WRITTER_EXPLANATION = "A property entity, is neither a value reading, or a value writting entity, but they are often confused with one.\nA 'property' can have a default value through its nested 'data-type' entity.\nThe 'property' entity only represents the data field in the declaration, and it can't write or read values.\nWhen a 'definition-entity' is instantiated as a variable, any writes or reads to its properties are done through 'input-map's and 'output-map's.";
12240
12396
 
12241
12397
  export declare enum PropertyDependencyField {
@@ -12388,8 +12544,163 @@ export { propertyValidation }
12388
12544
 
12389
12545
  export declare const READ_ONLY_ENTITY_PERSISTANCE_REPOSITORY: IReadOnlyEntityPersistanceRepository;
12390
12546
 
12547
+ export declare const READABLE_ENTITY_TYPES: {
12548
+ "primitive-entity": {
12549
+ singular: string;
12550
+ plural: string;
12551
+ shortSingular: string;
12552
+ shortPlural: string;
12553
+ };
12554
+ "definition-entity": {
12555
+ singular: string;
12556
+ plural: string;
12557
+ shortSingular: string;
12558
+ shortPlural: string;
12559
+ };
12560
+ "built-in-base-entity": {
12561
+ singular: string;
12562
+ plural: string;
12563
+ shortSingular: string;
12564
+ shortPlural: string;
12565
+ };
12566
+ property: {
12567
+ singular: string;
12568
+ plural: string;
12569
+ shortSingular: string;
12570
+ shortPlural: string;
12571
+ };
12572
+ "function-declaration": {
12573
+ singular: string;
12574
+ plural: string;
12575
+ shortSingular: string;
12576
+ shortPlural: string;
12577
+ };
12578
+ "function-call": {
12579
+ singular: string;
12580
+ plural: string;
12581
+ shortSingular: string;
12582
+ shortPlural: string;
12583
+ };
12584
+ "global-event": {
12585
+ singular: string;
12586
+ plural: string;
12587
+ shortSingular: string;
12588
+ shortPlural: string;
12589
+ };
12590
+ project: {
12591
+ singular: string;
12592
+ plural: string;
12593
+ shortSingular: string;
12594
+ shortPlural: string;
12595
+ };
12596
+ "variable-declaration": {
12597
+ singular: string;
12598
+ plural: string;
12599
+ shortSingular: string;
12600
+ shortPlural: string;
12601
+ };
12602
+ "variable-instance": {
12603
+ singular: string;
12604
+ plural: string;
12605
+ shortSingular: string;
12606
+ shortPlural: string;
12607
+ };
12608
+ condition: {
12609
+ singular: string;
12610
+ plural: string;
12611
+ shortSingular: string;
12612
+ shortPlural: string;
12613
+ };
12614
+ operation: {
12615
+ singular: string;
12616
+ plural: string;
12617
+ shortSingular: string;
12618
+ shortPlural: string;
12619
+ };
12620
+ "return-statement": {
12621
+ singular: string;
12622
+ plural: string;
12623
+ shortSingular: string;
12624
+ shortPlural: string;
12625
+ };
12626
+ "installed-project": {
12627
+ singular: string;
12628
+ plural: string;
12629
+ shortSingular: string;
12630
+ shortPlural: string;
12631
+ };
12632
+ search: {
12633
+ singular: string;
12634
+ plural: string;
12635
+ shortSingular: string;
12636
+ shortPlural: string;
12637
+ };
12638
+ loop: {
12639
+ singular: string;
12640
+ plural: string;
12641
+ shortSingular: string;
12642
+ shortPlural: string;
12643
+ };
12644
+ "action-descriptor": {
12645
+ singular: string;
12646
+ plural: string;
12647
+ shortSingular: string;
12648
+ shortPlural: string;
12649
+ };
12650
+ "internal-call": {
12651
+ singular: string;
12652
+ plural: string;
12653
+ shortSingular: string;
12654
+ shortPlural: string;
12655
+ };
12656
+ "break-statement": {
12657
+ singular: string;
12658
+ plural: string;
12659
+ shortSingular: string;
12660
+ shortPlural: string;
12661
+ };
12662
+ "continue-statement": {
12663
+ singular: string;
12664
+ plural: string;
12665
+ shortSingular: string;
12666
+ shortPlural: string;
12667
+ };
12668
+ "argument-declaration": {
12669
+ singular: string;
12670
+ plural: string;
12671
+ shortSingular: string;
12672
+ shortPlural: string;
12673
+ };
12674
+ "input-map": {
12675
+ singular: string;
12676
+ plural: string;
12677
+ shortSingular: string;
12678
+ shortPlural: string;
12679
+ };
12680
+ "output-map": {
12681
+ singular: string;
12682
+ plural: string;
12683
+ shortSingular: string;
12684
+ shortPlural: string;
12685
+ };
12686
+ "return-declaration": {
12687
+ singular: string;
12688
+ plural: string;
12689
+ shortSingular: string;
12690
+ shortPlural: string;
12691
+ };
12692
+ "value-descriptor": {
12693
+ singular: string;
12694
+ plural: string;
12695
+ shortSingular: string;
12696
+ shortPlural: string;
12697
+ };
12698
+ };
12699
+
12391
12700
  export declare function readValueFromWritter(entity: ValueReadingEntityState, context: IValueResolutionContext): IDynamicValue | null;
12392
12701
 
12702
+ export declare function rebaseStack<T = any>(undoableStackValueIndex: number, history: T[], newItem: T): number;
12703
+
12393
12704
  export declare type Reference = IGenericReference | IFunctionDeclarationReference | IInstalledProjectReference | IDataTypeReference | IVariableDeclarationReference | IVariableInstanceReference | IOperationReference | IDefinitionEntityReference | IPrimitiveEntityReference | IProjectReference | IGlobalEventReference | IFunctionDeclarationReference | IFunctionDeclarationReference | IPropertyReference | IFunctionCallReference | IArgumentDeclarationReference | IInputMapReference | IOutputMapReference | IReturnDeclarationReference | IConditionReference | IReturnStatementReference | IBreakStatementReference | IContinueStatementReference | ILoopReference | IActionDescriptorReference | ISearchReference | ILiteralValueReference | IBuiltInBaseEntityReference | IValueDescriptorReference | IInternalCallReference;
12394
12705
 
12395
12706
  export declare const relationalDatabaseBuiltInBaseEntity: IBuiltInBaseEntityTransfer;
@@ -12448,6 +12759,11 @@ export declare const relationalDatabaseBuiltInBaseEntityUsernamePropertyDataType
12448
12759
 
12449
12760
  export declare const relationalDatabaseBuiltInBaseEntityUsernamePropertyRef: IPropertyReference;
12450
12761
 
12762
+ export declare function removeDisabledReasons(existingDisbledResons: CanvasEntityDisabledReason[], reasonsToRemove: CanvasEntityDisabledReason[]): {
12763
+ hasChanged: boolean;
12764
+ reasons: CanvasEntityDisabledReason[];
12765
+ };
12766
+
12451
12767
  export declare function resolveActionDescriptorName(actionDescriptor: ActionDescriptorState): string;
12452
12768
 
12453
12769
  declare function resolveAreThereConflictingColumnsInSelectAll(allColumnsSelector: AllColumnsSelector | null): boolean;
@@ -12458,6 +12774,8 @@ export declare function resolveBaseEntityName(baseEntities: BaseEntityNames[]):
12458
12774
 
12459
12775
  export declare function resolveBuiltInBaseEntityDataTypeLabel(entity: BuiltInBaseEntityState): string;
12460
12776
 
12777
+ export declare function resolveCardSubheader(entity: CanvasEntityState): string;
12778
+
12461
12779
  export declare function resolveClonedEntityProject(newParent: EntityState | null, self: EntityState): ProjectState;
12462
12780
 
12463
12781
  export declare function resolveConditionOperatorLabel(condition: ConditionState): "and" | "or" | "is equal to" | "is not equal to" | "is greater than" | "is greater than or equal to" | "is less than" | "is less than or equal to" | "is empty" | "is not empty" | undefined;
@@ -12472,18 +12790,26 @@ export declare function resolveDataTypeEntityOrNestedChildrenFromLiteralValue(va
12472
12790
  abstract?: boolean;
12473
12791
  }, changeSet: ChangeSet | null, rootEntityCreated: DefinitionEntityState): IChangeSet<DataTypeState>;
12474
12792
 
12793
+ export declare function resolveDatatypeIconName(dataType: DataTypeState): "definition-entity" | "number" | "boolean" | "uuid" | "list" | "text" | "date-time";
12794
+
12475
12795
  export declare function resolveDataTypeLabel(dataType: DataTypeState | null): string;
12476
12796
 
12477
12797
  export declare function resolveDefinitionEntityDataTypeLabel(entity: DefinitionEntityState): string;
12478
12798
 
12799
+ export declare function resolveDefinitionEntitySubheader(entity: DefinitionEntityState): string;
12800
+
12479
12801
  export declare function resolveEntityDataTypeLabel(entity: PropertyState | EntityWithValueState | ValueDescriptorState): string;
12480
12802
 
12481
12803
  export declare function resolveEntityName(entity: EntityPayloadUnion, project: ProjectState): string;
12482
12804
 
12805
+ export declare function resolveEntitySubheader(entity: VariableState | DefinitionEntityState | LoopState | SearchState | FunctionDeclarationState | GlobalEventState | ReturnStatementState | BreakStatementState | ContinueStatementState | BuiltInBaseEntityState): string;
12806
+
12483
12807
  export declare function resolveFirstCallsSecond(first: DraggableExecutableEntityState, second: DraggableCallableEntityState): boolean;
12484
12808
 
12485
12809
  export declare function resolveFirstWritesSecond(first: ValueWritingEntityState, second: ValueReadingEntityState): boolean;
12486
12810
 
12811
+ export declare function resolveFunctionDeclarationCardSubheader(entity: FunctionDeclarationState): string;
12812
+
12487
12813
  export declare function resolveInputMapNextStandaloneValue(entity: InputMapState, context: IValueResolutionContext): IDynamicValue | null;
12488
12814
 
12489
12815
  export declare function resolveInputMapNextValue(entity: InputMapState, context: IValueResolutionContext): IDynamicValue | null;
@@ -12496,6 +12822,8 @@ export declare function resolveInputMapValue(entity: InputMapState, context: IVa
12496
12822
 
12497
12823
  export declare function resolveInputMapValueAsPropertyOfAnObject(entity: InputMapState, context: IValueResolutionContext): IDynamicValue | null;
12498
12824
 
12825
+ export declare function resolveMethodCardSubheader(entity: FunctionDeclarationState): string;
12826
+
12499
12827
  export declare function resolveNextValue(entity: ValueReadingEntityState, context: IValueResolutionContext): IDynamicValue | null;
12500
12828
 
12501
12829
  export declare function resolveOutputMapValue(entity: OutputMapState, context: IValueResolutionContext): IDynamicValue | null;
@@ -13374,6 +13702,8 @@ export declare enum StandaloneOperatorTypes {
13374
13702
  NotEmpty = "not-empty"
13375
13703
  }
13376
13704
 
13705
+ export declare const STATIC_PROPERTY_HEIGHT = 49;
13706
+
13377
13707
  export declare const STRING_OPERATIONS: {
13378
13708
  [key: string]: IActionDescriptorTransfer;
13379
13709
  };
@@ -13507,6 +13837,18 @@ export declare function toLowerCaseKebabCase(str: string): string;
13507
13837
 
13508
13838
  export declare function toPascalCase(str: string): string;
13509
13839
 
13840
+ export declare function transitionProjectVersion(from: ChangeSet | 'initial', to: ChangeSet | 'initial', project: ProjectState): IProjectVersionTransitionConfig;
13841
+
13842
+ export declare function translateLogicErrorCode(error: EntityError): string;
13843
+
13844
+ export declare function translateLogicErrorCodeShort(error: EntityError): string;
13845
+
13846
+ export declare function translateLogicErrorCodeShortWithEntityName(error: EntityError): string;
13847
+
13848
+ export declare function translateLogicErrorCodeWithEntityName(error: EntityError): string;
13849
+
13850
+ export declare function traverseChangeSet(changeSet: ChangeSet, onAdded: (entity: UserManagedEntityState) => void, onUpdated: (entity: UserManagedEntityState) => void, onRemoved: (entity: UserManagedEntityState) => void): void;
13851
+
13510
13852
  export declare class Traverser {
13511
13853
  order: EntityId[];
13512
13854
  flatRecord: Record<EntityId, Element_2 | ElementTransfer | EntityState | ElementShallowTransfer>;