@elyx-code/project-logic-tree 0.0.6341 → 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 +370 -9
- package/dist/index.js +25234 -23817
- package/dist/index.umd.cjs +223 -223
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -172,6 +172,11 @@ export declare class ActionOutputMapState extends OutputMapState implements IAct
|
|
|
172
172
|
toJSON(seenEntities?: Set<EntityId>): IActionOutputMap | IOutputMapReference;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
export declare function addDisabledReasons(existingDisbledResons: CanvasEntityDisabledReason[], newReasons: CanvasEntityDisabledReason[]): {
|
|
176
|
+
hasChanged: boolean;
|
|
177
|
+
reasons: CanvasEntityDisabledReason[];
|
|
178
|
+
};
|
|
179
|
+
|
|
175
180
|
export declare function afterLiteralValueAsTypeChangeSideEffects(newValue: ValueAsTypeState | ValueAsTypeState[] | null, entity: EntityWithValueState, project: ProjectState, storage: ChangeSet | IValueStoreClient): ChangeSet | null;
|
|
176
181
|
|
|
177
182
|
export declare function afterLiteralValueAsTypeDeleteSideEffects(entity: EntityWithValueState, project: ProjectState, storage: ChangeSet | IValueStoreClient): ChangeSet | null;
|
|
@@ -234,6 +239,12 @@ export declare const ALL_BUILT_IN_TOP_LEVEL_ENTITIES: ElementTransfer[];
|
|
|
234
239
|
|
|
235
240
|
export declare const ALL_BUILT_IN_VALUE_DESCRIPTORS: IValueDescriptorTransfer[];
|
|
236
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
|
+
|
|
237
248
|
declare class AllColumnsSelector implements ISearchNode {
|
|
238
249
|
owner: SearchStatementState;
|
|
239
250
|
parent: DataSource | null;
|
|
@@ -287,6 +298,74 @@ export declare const appendToListOperationSecondListDataType: IDataTypeTransfer;
|
|
|
287
298
|
|
|
288
299
|
export declare function applyNewScope(self: CallableEntityState, changeSet: ChangeSet | null): void;
|
|
289
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
|
+
|
|
290
369
|
export declare enum ArgumentDeclarationDependencyField {
|
|
291
370
|
DataTypeEntity = "data-type-entity",
|
|
292
371
|
Implements = "implements"
|
|
@@ -1166,6 +1245,16 @@ export declare const CACHED_PROJECTS_BY_ID: {
|
|
|
1166
1245
|
[id: string]: ProjectState;
|
|
1167
1246
|
};
|
|
1168
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
|
+
|
|
1169
1258
|
export declare function calculateNewParentBasedOnCallers(self: CallableEntityState): EntityWithLogicScopeState | ProjectState;
|
|
1170
1259
|
|
|
1171
1260
|
export declare const CALLABLE_ENTITIES_EXPLANATION: string;
|
|
@@ -1225,10 +1314,68 @@ export declare type CallerEntityTypesUnion = CallerEntity | CallerEntityTransfer
|
|
|
1225
1314
|
|
|
1226
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.";
|
|
1227
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
|
+
|
|
1228
1364
|
export declare type CanvasEntityState = InstalledProjectState | DefinitionEntityState | FunctionDeclarationState | GlobalEventState | VariableState | ConditionState | OperationState | FunctionCallState | ReturnStatementState | ContinueStatementState | BreakStatementState | LoopState | SearchState;
|
|
1229
1365
|
|
|
1366
|
+
export declare enum CanvasEntityTestingDisabledReason {
|
|
1367
|
+
NotPartOfOngoingTest = "not-part-of-ongoing-test",
|
|
1368
|
+
CannotBeAddedToTest = "cannot-be-added-to-test"
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1230
1371
|
export declare function capitalizeFirstLetter(value: string): string;
|
|
1231
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
|
+
|
|
1232
1379
|
export declare class ChangeSet {
|
|
1233
1380
|
id: string;
|
|
1234
1381
|
seenEntities: EntityId[];
|
|
@@ -2500,6 +2647,8 @@ export declare type ElementTransfer = IProjectTransfer | IInstalledProjectTransf
|
|
|
2500
2647
|
|
|
2501
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;
|
|
2502
2649
|
|
|
2650
|
+
export declare function emitSideEffects(changeSet: ChangeSet): ChangeSet;
|
|
2651
|
+
|
|
2503
2652
|
export declare const endpointBuiltInBaseEntity: IBuiltInBaseEntityTransfer;
|
|
2504
2653
|
|
|
2505
2654
|
export declare const endpointBuiltInBaseEntityRef: IBuiltInBaseEntityReference;
|
|
@@ -2920,6 +3069,10 @@ export declare const enumPrototype: IPrimitiveEntityTransfer;
|
|
|
2920
3069
|
|
|
2921
3070
|
export declare const enumPrototypeRef: IPrimitiveEntityReference;
|
|
2922
3071
|
|
|
3072
|
+
export declare const ERROR_PROPERTY_HEIGHT = 52;
|
|
3073
|
+
|
|
3074
|
+
export declare function errorCodeToMessage(errorCode: string): string;
|
|
3075
|
+
|
|
2923
3076
|
export declare const EVENT_TYPES: EntityType[];
|
|
2924
3077
|
|
|
2925
3078
|
export declare type EventEntity = IGlobalEvent;
|
|
@@ -3584,6 +3737,8 @@ export declare function generateIdFromStrategy(entity: EntityState, project: Pro
|
|
|
3584
3737
|
|
|
3585
3738
|
export declare function generateMutablePropertiesExplanation(entityToUpdate: EntityState): string;
|
|
3586
3739
|
|
|
3740
|
+
export declare function generatePlaceholderValueStore(id: string, project: ProjectState): IValueStoreClient;
|
|
3741
|
+
|
|
3587
3742
|
export declare function generateRandomBoolean(_: IAutogenerationRandomBoolean): boolean;
|
|
3588
3743
|
|
|
3589
3744
|
export declare function generateRandomDate(options: IAutogenerationRandomDate): Date;
|
|
@@ -8487,6 +8642,13 @@ export declare interface IContinueStatementTransfer extends ITerminationStatemen
|
|
|
8487
8642
|
parent: ILoop | ILoopReference;
|
|
8488
8643
|
}
|
|
8489
8644
|
|
|
8645
|
+
export declare interface ICoordinates {
|
|
8646
|
+
top: number;
|
|
8647
|
+
left: number;
|
|
8648
|
+
bottom: number;
|
|
8649
|
+
right: number;
|
|
8650
|
+
}
|
|
8651
|
+
|
|
8490
8652
|
declare interface IDataSource {
|
|
8491
8653
|
entity: DefinitionEntityState | null;
|
|
8492
8654
|
query: NestedSearchStatement | null;
|
|
@@ -8627,7 +8789,7 @@ export declare interface IEditableEntityPersistanceRepository extends IReadOnlyE
|
|
|
8627
8789
|
APILoadVersion<T extends Array<any> = any[]>(entityId: EntityId, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: T): Promise<ElementShallowTransfer | null>;
|
|
8628
8790
|
}
|
|
8629
8791
|
|
|
8630
|
-
export declare interface IEditor extends IUndoableInterface, IValueResolutionContext {
|
|
8792
|
+
export declare interface IEditor<Options extends object = {}> extends IUndoableInterface, IValueResolutionContext {
|
|
8631
8793
|
ready: boolean;
|
|
8632
8794
|
hasLoadedLogic: boolean;
|
|
8633
8795
|
destroyed: boolean;
|
|
@@ -8647,26 +8809,29 @@ export declare interface IEditor extends IUndoableInterface, IValueResolutionCon
|
|
|
8647
8809
|
onLogicLoadingCompleteCallback: null | ((chunk: any) => void);
|
|
8648
8810
|
onRenderedCallback: null | (() => void);
|
|
8649
8811
|
onProjectSetupErrorCallback: null | ((error: any) => void);
|
|
8650
|
-
constructor(projectId: EntityId, socket
|
|
8812
|
+
constructor(projectId: EntityId, socket: IWebsocketsClient | null, events: Events | null, options?: Options): IEditor;
|
|
8651
8813
|
get execution(): Execution | null;
|
|
8652
8814
|
get project(): ProjectState;
|
|
8653
8815
|
get lastExecutionResults(): EfimeralValueStore;
|
|
8654
8816
|
get undoableStackValueIndex(): number;
|
|
8655
8817
|
set undoableStackValueIndex(value: number);
|
|
8656
8818
|
get PROJECT_NOTIFICATIONS_CHANNEL(): string;
|
|
8819
|
+
getAccessToken(): Promise<string | null>;
|
|
8657
8820
|
onProjectHeadLoaded(callback: (projectState: ProjectState) => void): void;
|
|
8658
8821
|
onLogicLoadingComplete(callback: (chunk: any) => void): void;
|
|
8659
|
-
onRendered(callback: () => void): void;
|
|
8660
8822
|
onProjectSetupError(callback: (error: any) => void): void;
|
|
8661
8823
|
removeValueByOwnerId(entityId: EntityId): void;
|
|
8662
8824
|
removeValue(dynamicValue: IDynamicValue): void;
|
|
8663
|
-
|
|
8825
|
+
handleIncommingWebsocketMessage(message: {
|
|
8826
|
+
[key: string]: any;
|
|
8827
|
+
}): Promise<void>;
|
|
8828
|
+
handleNotificationChannelsMessage(message: {
|
|
8664
8829
|
data: {
|
|
8665
8830
|
channels: IChannelConnections[];
|
|
8666
8831
|
sessionId: string;
|
|
8667
8832
|
};
|
|
8668
|
-
}
|
|
8669
|
-
handlePersistChangeSetMessage(message:
|
|
8833
|
+
}): void;
|
|
8834
|
+
handlePersistChangeSetMessage(message: PersistChangeSetEntityActionRequestPayload): void;
|
|
8670
8835
|
getLogic(options?: {
|
|
8671
8836
|
mockLogic?: ProjectState;
|
|
8672
8837
|
}): Promise<void>;
|
|
@@ -8747,8 +8912,8 @@ export declare interface IExecutionCallbackContext {
|
|
|
8747
8912
|
}
|
|
8748
8913
|
|
|
8749
8914
|
export declare interface IExecutionClient {
|
|
8750
|
-
onBeforeEntityExecution?: (entity:
|
|
8751
|
-
onEntityExecuted?: (entity:
|
|
8915
|
+
onBeforeEntityExecution?: (entity: TestableEntityState, inputs: IDynamicValue[], context: IExecutionCallbackContext) => Promise<any>;
|
|
8916
|
+
onEntityExecuted?: (entity: TestableEntityState, result: IExecutionResult, context: IExecutionCallbackContext) => Promise<any>;
|
|
8752
8917
|
}
|
|
8753
8918
|
|
|
8754
8919
|
export declare interface IExecutionResult {
|
|
@@ -9886,7 +10051,7 @@ export declare interface IProjectTransfer extends IProject_meta {
|
|
|
9886
10051
|
searches: (ISearch | ISearchTransfer)[];
|
|
9887
10052
|
}
|
|
9888
10053
|
|
|
9889
|
-
declare interface IProjectVersionTransitionConfig {
|
|
10054
|
+
export declare interface IProjectVersionTransitionConfig {
|
|
9890
10055
|
transitionalChangeSet: ChangeSet;
|
|
9891
10056
|
transitionTime: string;
|
|
9892
10057
|
timeOfOriginalTargetChanges: string;
|
|
@@ -11156,6 +11321,10 @@ export { loopValidation }
|
|
|
11156
11321
|
|
|
11157
11322
|
export declare function lowercaseFirstLetter(value: string): string;
|
|
11158
11323
|
|
|
11324
|
+
export declare const MAIN_VALUE_PROPERTY_HEADER_HEIGHT = 44;
|
|
11325
|
+
|
|
11326
|
+
export declare const MAIN_VALUE_SUB_PROPERTY_HEIGHT = 35;
|
|
11327
|
+
|
|
11159
11328
|
export declare const manualFlowActionDescriptorDeclarationArgumentDeclaration: IValueDescriptorTransfer;
|
|
11160
11329
|
|
|
11161
11330
|
export declare const manualFlowActionDescriptorDeclarationArgumentDeclarationDataType: IDataTypeTransfer;
|
|
@@ -11184,6 +11353,8 @@ export declare function mapActionDescriptorToTypeItRepresents(entity: EntityStat
|
|
|
11184
11353
|
|
|
11185
11354
|
export declare function mapRecord(record: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer> | undefined, entityIdMaps: Map<EntityId, EntityId>): Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
|
|
11186
11355
|
|
|
11356
|
+
export declare function mergeArraysOfStringsWithoutDuplicates(arr1: string[], arr2: string[]): string[];
|
|
11357
|
+
|
|
11187
11358
|
export declare function mergeEntityErrorsList(oldErrors: EntityError[], newErrors: EntityError[]): EntityError[];
|
|
11188
11359
|
|
|
11189
11360
|
export declare function mergeListOfEntities(oldErrors: EntityState[], newErrors: EntityState[]): EntityState[];
|
|
@@ -11210,6 +11381,8 @@ export declare const moreThanOrEqualConditionRightHandArgumentDataTypeParentRef:
|
|
|
11210
11381
|
|
|
11211
11382
|
export declare const moreThanOrEqualConditionRightHandArgumentParentRef: IActionDescriptorReference;
|
|
11212
11383
|
|
|
11384
|
+
export declare const NESTED_PROPERTY_HEIGHT = 26;
|
|
11385
|
+
|
|
11213
11386
|
declare class NestedSearchStatement implements ISearchNode {
|
|
11214
11387
|
owner: SearchStatementState;
|
|
11215
11388
|
statement: SearchStatementState | null;
|
|
@@ -12217,6 +12390,8 @@ export declare function propagateNewStaticPropertyValueAsTypeToVariables(entity:
|
|
|
12217
12390
|
|
|
12218
12391
|
export declare function propagateNewStaticPropertyValueToVariables(entity: PropertyState, project: ProjectState, newValue: LiteralValueType, storage: ChangeSet | IValueStoreClient): ChangeSet | null;
|
|
12219
12392
|
|
|
12393
|
+
export declare const PROPERTY_HEIGHT = 39;
|
|
12394
|
+
|
|
12220
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.";
|
|
12221
12396
|
|
|
12222
12397
|
export declare enum PropertyDependencyField {
|
|
@@ -12369,8 +12544,163 @@ export { propertyValidation }
|
|
|
12369
12544
|
|
|
12370
12545
|
export declare const READ_ONLY_ENTITY_PERSISTANCE_REPOSITORY: IReadOnlyEntityPersistanceRepository;
|
|
12371
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
|
+
|
|
12372
12700
|
export declare function readValueFromWritter(entity: ValueReadingEntityState, context: IValueResolutionContext): IDynamicValue | null;
|
|
12373
12701
|
|
|
12702
|
+
export declare function rebaseStack<T = any>(undoableStackValueIndex: number, history: T[], newItem: T): number;
|
|
12703
|
+
|
|
12374
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;
|
|
12375
12705
|
|
|
12376
12706
|
export declare const relationalDatabaseBuiltInBaseEntity: IBuiltInBaseEntityTransfer;
|
|
@@ -12429,6 +12759,11 @@ export declare const relationalDatabaseBuiltInBaseEntityUsernamePropertyDataType
|
|
|
12429
12759
|
|
|
12430
12760
|
export declare const relationalDatabaseBuiltInBaseEntityUsernamePropertyRef: IPropertyReference;
|
|
12431
12761
|
|
|
12762
|
+
export declare function removeDisabledReasons(existingDisbledResons: CanvasEntityDisabledReason[], reasonsToRemove: CanvasEntityDisabledReason[]): {
|
|
12763
|
+
hasChanged: boolean;
|
|
12764
|
+
reasons: CanvasEntityDisabledReason[];
|
|
12765
|
+
};
|
|
12766
|
+
|
|
12432
12767
|
export declare function resolveActionDescriptorName(actionDescriptor: ActionDescriptorState): string;
|
|
12433
12768
|
|
|
12434
12769
|
declare function resolveAreThereConflictingColumnsInSelectAll(allColumnsSelector: AllColumnsSelector | null): boolean;
|
|
@@ -12439,6 +12774,8 @@ export declare function resolveBaseEntityName(baseEntities: BaseEntityNames[]):
|
|
|
12439
12774
|
|
|
12440
12775
|
export declare function resolveBuiltInBaseEntityDataTypeLabel(entity: BuiltInBaseEntityState): string;
|
|
12441
12776
|
|
|
12777
|
+
export declare function resolveCardSubheader(entity: CanvasEntityState): string;
|
|
12778
|
+
|
|
12442
12779
|
export declare function resolveClonedEntityProject(newParent: EntityState | null, self: EntityState): ProjectState;
|
|
12443
12780
|
|
|
12444
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;
|
|
@@ -12453,18 +12790,26 @@ export declare function resolveDataTypeEntityOrNestedChildrenFromLiteralValue(va
|
|
|
12453
12790
|
abstract?: boolean;
|
|
12454
12791
|
}, changeSet: ChangeSet | null, rootEntityCreated: DefinitionEntityState): IChangeSet<DataTypeState>;
|
|
12455
12792
|
|
|
12793
|
+
export declare function resolveDatatypeIconName(dataType: DataTypeState): "definition-entity" | "number" | "boolean" | "uuid" | "list" | "text" | "date-time";
|
|
12794
|
+
|
|
12456
12795
|
export declare function resolveDataTypeLabel(dataType: DataTypeState | null): string;
|
|
12457
12796
|
|
|
12458
12797
|
export declare function resolveDefinitionEntityDataTypeLabel(entity: DefinitionEntityState): string;
|
|
12459
12798
|
|
|
12799
|
+
export declare function resolveDefinitionEntitySubheader(entity: DefinitionEntityState): string;
|
|
12800
|
+
|
|
12460
12801
|
export declare function resolveEntityDataTypeLabel(entity: PropertyState | EntityWithValueState | ValueDescriptorState): string;
|
|
12461
12802
|
|
|
12462
12803
|
export declare function resolveEntityName(entity: EntityPayloadUnion, project: ProjectState): string;
|
|
12463
12804
|
|
|
12805
|
+
export declare function resolveEntitySubheader(entity: VariableState | DefinitionEntityState | LoopState | SearchState | FunctionDeclarationState | GlobalEventState | ReturnStatementState | BreakStatementState | ContinueStatementState | BuiltInBaseEntityState): string;
|
|
12806
|
+
|
|
12464
12807
|
export declare function resolveFirstCallsSecond(first: DraggableExecutableEntityState, second: DraggableCallableEntityState): boolean;
|
|
12465
12808
|
|
|
12466
12809
|
export declare function resolveFirstWritesSecond(first: ValueWritingEntityState, second: ValueReadingEntityState): boolean;
|
|
12467
12810
|
|
|
12811
|
+
export declare function resolveFunctionDeclarationCardSubheader(entity: FunctionDeclarationState): string;
|
|
12812
|
+
|
|
12468
12813
|
export declare function resolveInputMapNextStandaloneValue(entity: InputMapState, context: IValueResolutionContext): IDynamicValue | null;
|
|
12469
12814
|
|
|
12470
12815
|
export declare function resolveInputMapNextValue(entity: InputMapState, context: IValueResolutionContext): IDynamicValue | null;
|
|
@@ -12477,6 +12822,8 @@ export declare function resolveInputMapValue(entity: InputMapState, context: IVa
|
|
|
12477
12822
|
|
|
12478
12823
|
export declare function resolveInputMapValueAsPropertyOfAnObject(entity: InputMapState, context: IValueResolutionContext): IDynamicValue | null;
|
|
12479
12824
|
|
|
12825
|
+
export declare function resolveMethodCardSubheader(entity: FunctionDeclarationState): string;
|
|
12826
|
+
|
|
12480
12827
|
export declare function resolveNextValue(entity: ValueReadingEntityState, context: IValueResolutionContext): IDynamicValue | null;
|
|
12481
12828
|
|
|
12482
12829
|
export declare function resolveOutputMapValue(entity: OutputMapState, context: IValueResolutionContext): IDynamicValue | null;
|
|
@@ -13355,6 +13702,8 @@ export declare enum StandaloneOperatorTypes {
|
|
|
13355
13702
|
NotEmpty = "not-empty"
|
|
13356
13703
|
}
|
|
13357
13704
|
|
|
13705
|
+
export declare const STATIC_PROPERTY_HEIGHT = 49;
|
|
13706
|
+
|
|
13358
13707
|
export declare const STRING_OPERATIONS: {
|
|
13359
13708
|
[key: string]: IActionDescriptorTransfer;
|
|
13360
13709
|
};
|
|
@@ -13488,6 +13837,18 @@ export declare function toLowerCaseKebabCase(str: string): string;
|
|
|
13488
13837
|
|
|
13489
13838
|
export declare function toPascalCase(str: string): string;
|
|
13490
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
|
+
|
|
13491
13852
|
export declare class Traverser {
|
|
13492
13853
|
order: EntityId[];
|
|
13493
13854
|
flatRecord: Record<EntityId, Element_2 | ElementTransfer | EntityState | ElementShallowTransfer>;
|