@magic-xpa/engine 4.1300.0-dev4130.142 → 4.1300.0-dev4130.145
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/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magic-xpa/engine",
|
|
3
|
-
"version": "4.1300.0-dev4130.
|
|
3
|
+
"version": "4.1300.0-dev4130.145",
|
|
4
4
|
"description": "magic engine package",
|
|
5
5
|
"license": "SEE LICENSE IN EULA.pdf",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@magic-xpa/mscorelib": "4.1300.0-dev4130.
|
|
8
|
-
"@magic-xpa/utils": "4.1300.0-dev4130.
|
|
9
|
-
"@magic-xpa/gui": "4.1300.0-dev4130.
|
|
7
|
+
"@magic-xpa/mscorelib": "4.1300.0-dev4130.145",
|
|
8
|
+
"@magic-xpa/utils": "4.1300.0-dev4130.145",
|
|
9
|
+
"@magic-xpa/gui": "4.1300.0-dev4130.145",
|
|
10
10
|
"@angular/common": "^21.1.4",
|
|
11
|
+
"socket.io": "^4.8.3",
|
|
12
|
+
"socket.io-client": "^4.8.3",
|
|
11
13
|
"tslib": "^2.3.0"
|
|
12
14
|
},
|
|
13
15
|
"module": "fesm2022/magic-xpa-engine.mjs",
|
|
@@ -3,7 +3,7 @@ import { StringBuilder, List, RefParam, IComparable, Dictionary, Stack, Applicat
|
|
|
3
3
|
import { StorageAttribute, XmlParser, CallOperationMode, MgControlType, TableBehaviour, LnkEval_Cond, LnkMode, UniqueTskSort, ForceExit, Priority, ViewRefreshMode, Logger_LogLevels, Order } from '@magic-xpa/utils';
|
|
4
4
|
import { Subject } from 'rxjs/internal/Subject';
|
|
5
5
|
import { HttpClient, HttpHeaders, HttpResponse } from '@angular/common/http';
|
|
6
|
-
import { Subject as Subject$1 } from 'rxjs';
|
|
6
|
+
import { Subject as Subject$1, Observable } from 'rxjs';
|
|
7
7
|
|
|
8
8
|
declare enum EventSubType {
|
|
9
9
|
Normal = 0,
|
|
@@ -3736,6 +3736,7 @@ declare class EventsManager implements IEventsManager {
|
|
|
3736
3736
|
AddRouteEvent(task: ITask, code: number, routerpath: string, routerOutletName: string, routeParams: List<any>): void;
|
|
3737
3737
|
AddRouterClosedEvent(task: Task): void;
|
|
3738
3738
|
AddLastSavedRouteEvent(srcTask: Task, args: ArgumentsList): void;
|
|
3739
|
+
AddTopicPublishedEvent(task: ITask, topic: string, message: string): void;
|
|
3739
3740
|
AddExternalValueEvent(ctrl: MgControl, value: any, refreshDisplay: boolean): void;
|
|
3740
3741
|
addGuiTriggeredEventWithCtrlAndCodeAndLine(ctrl: MgControlBase, code: number, line: number): void;
|
|
3741
3742
|
addGuiTriggeredEventWithCtrlAndLineAndCodeAndIsProductClick(ctrl: MgControlBase, code: number, line: number, isProduceClick: boolean): void;
|
|
@@ -4630,10 +4631,88 @@ declare class Scrambler {
|
|
|
4630
4631
|
static UnScramble(inVal: string, beginOffSet: number, endOffSet: number): string;
|
|
4631
4632
|
}
|
|
4632
4633
|
|
|
4634
|
+
declare class SubscriberClient {
|
|
4635
|
+
private static instance;
|
|
4636
|
+
private socket;
|
|
4637
|
+
private subscribedTopics;
|
|
4638
|
+
private messageSubject;
|
|
4639
|
+
private subscriptionsDataSubject;
|
|
4640
|
+
private constructor();
|
|
4641
|
+
/**
|
|
4642
|
+
* Get the singleton instance of SubscriberClient
|
|
4643
|
+
*/
|
|
4644
|
+
static getInstance(task: TaskBase): SubscriberClient;
|
|
4645
|
+
/**
|
|
4646
|
+
* Subscribe to a specific topic
|
|
4647
|
+
* @param topic The topic to subscribe to
|
|
4648
|
+
*/
|
|
4649
|
+
subscribe(topic: string): void;
|
|
4650
|
+
/**
|
|
4651
|
+
* Subscribe to multiple topics at once
|
|
4652
|
+
* @param topics Array of topics to subscribe to
|
|
4653
|
+
*/
|
|
4654
|
+
subscribeToTopics(topics: string[]): void;
|
|
4655
|
+
/**
|
|
4656
|
+
* Unsubscribe from a specific topic
|
|
4657
|
+
* @param topic The topic to unsubscribe from
|
|
4658
|
+
*/
|
|
4659
|
+
unsubscribe(topic: string): void;
|
|
4660
|
+
/**
|
|
4661
|
+
* Unsubscribe from multiple topics at once
|
|
4662
|
+
* @param topics Array of topics to unsubscribe from
|
|
4663
|
+
*/
|
|
4664
|
+
unsubscribeFromTopics(topics: string[]): void;
|
|
4665
|
+
/**
|
|
4666
|
+
* Unsubscribe from all topics
|
|
4667
|
+
*/
|
|
4668
|
+
unsubscribeFromAll(): void;
|
|
4669
|
+
/**
|
|
4670
|
+
* Check if subscribed to a specific topic
|
|
4671
|
+
* @param topic The topic to check
|
|
4672
|
+
* @returns true if subscribed, false otherwise
|
|
4673
|
+
*/
|
|
4674
|
+
isSubscribed(topic: string): boolean;
|
|
4675
|
+
/**
|
|
4676
|
+
* Get all currently subscribed topics
|
|
4677
|
+
* @returns Array of subscribed topics
|
|
4678
|
+
*/
|
|
4679
|
+
getSubscribedTopics(): string[];
|
|
4680
|
+
/**
|
|
4681
|
+
* Get an Observable for incoming messages from all subscribed topics
|
|
4682
|
+
* @returns Observable that emits message data
|
|
4683
|
+
*/
|
|
4684
|
+
onMessage(): Observable<{
|
|
4685
|
+
topic: string;
|
|
4686
|
+
message: any;
|
|
4687
|
+
}>;
|
|
4688
|
+
/**
|
|
4689
|
+
* Get an Observable for incoming messages from a specific topic
|
|
4690
|
+
* @param topic The topic to filter messages for
|
|
4691
|
+
* @returns Observable that emits message data for the specified topic
|
|
4692
|
+
*/
|
|
4693
|
+
onMessageForTopic(topic: string): Observable<{
|
|
4694
|
+
topic: string;
|
|
4695
|
+
message: any;
|
|
4696
|
+
}>;
|
|
4697
|
+
/**
|
|
4698
|
+
* Get current subscriptions (for debugging)
|
|
4699
|
+
*/
|
|
4700
|
+
getSubscriptions(): void;
|
|
4701
|
+
/**
|
|
4702
|
+
* Listen for subscriptions data
|
|
4703
|
+
* @returns Observable that emits subscriptions list
|
|
4704
|
+
*/
|
|
4705
|
+
onSubscriptionsData(): Observable<any[]>;
|
|
4706
|
+
/**
|
|
4707
|
+
* Disconnect from the server
|
|
4708
|
+
*/
|
|
4709
|
+
disconnect(): void;
|
|
4710
|
+
}
|
|
4711
|
+
|
|
4633
4712
|
declare class UniqueIDUtils {
|
|
4634
4713
|
private static id;
|
|
4635
4714
|
static GetUniqueMachineID(): string;
|
|
4636
4715
|
}
|
|
4637
4716
|
|
|
4638
|
-
export { AbortCommand, AccessHelper, ActionManager, AddLocateCommand, AddRangeCommand, AddSortCommand, AddUserLocateDataViewCommand, AddUserLocateRemoteDataViewCommand, AddUserRangeDataviewCommand, AddUserRangeRemoteDataViewCommand, AddUserSortDataViewCommand, AddUserSortRemoteDataViewCommand, Argument, ArgumentsList, Boundary, BrowserEscEventCommand, CachedFileQueryCommand, ClearEventsOnStopExecution, ClientManager, ClientOriginatedCommand, ClientOriginatedCommandSerializer, ClientOriginatedCommandTaskTag, ClientRefreshCommand, ClientTargetedCommandBase, ClientTargetedCommandType, ColumnSortEventCommand, CommandFactory, CommandSerializationHelper, CommandsProcessorBase, CommandsProcessorBase_SendingInstruction, CommandsProcessorBase_SessionStage, CommandsProcessorManager, CommandsTable, CompMainPrgTable, ComputeEventCommand, ConstInterface, ConstUtils, ContextTerminationEventCommand, ContextTimeoutResetCommand, ControlItemsRefreshCommand, CookieService, CreatedFormVector, CurrentClientVersion, DataSourceIdKey, DataView, DataViewBase, DataViewCommandBase, DataViewCommandType, DataViewOutputCommand, DataviewCommand, DataviewHeaderBase, DataviewHeaderFactory, DataviewHeaders, DataviewHeadersSaxHandler, DataviewManager, DataviewManagerBase, DcValuesReference, DummyDataViewCommand, DvCache, EnhancedVerifyCommand, EnvParamsTable, Environment, EnvironmentDetails, EvaluateCommand, Event, EventCommand, EventHandler, EventHandlerPosition, EventSubType, EventsAllowedType, EventsManager, ExecOperCommand, ExecutionStack, ExecutionStackEntry, ExpDesc, ExpStrTracker, ExpTable, Expression, ExpressionDict, ExpressionEvaluator, ExpressionLocalJpn, Expression_ReturnValue, FetchDataControlValuesEventCommand, Field, FieldBase, FieldsTable as FieldsTableExt, FlowMonitorInterface, FlowMonitorQueue, FormsTable, GUIManager, GlobalCommandsManager, GlobalParams, GlobalParamsQueryCommand, GuiEventsProcessor, HandlersTable, HeapSort, HttpClientAsync, HttpClientBase, HttpClientEvents, HttpClientSync, HttpManager, HttpUtility, IClientTargetedCommand, IndexChangeEventCommand, IniputForceWriteCommand, InteractiveCommunicationsFailureHandler, Key, LanguageData, LastFocusedManager, MGData, MGDataCollection, MagicBridge, MgControl, MgForm, MgPriorityBlockingQueue, MgPriorityQueue, MirrorExpVal, MirrorPrmMap, MirrorString, NonReversibleExitEventCommand, NullValueException, OpenURLCommand, OpeningTaskDetails, Operation, OperationTable, ParamParseResult, PrmMap, QueryCommand, RCTimer, Recompute, RecomputeCommand, RecomputeTable, Recompute_RcmpBy, Record, RecordOutOfDataViewException, RecordOutOfDataViewException_ExceptionType, RecordsTable, RefreshEventCommand, RefreshScreenEventCommand, RemoteCommandsProcessor, RemoteControlItemsRefreshCommand, RemoteDataViewCommandBase, RemoteDataViewCommandFactory, RemoteDataViewCommandUpdateNonModifiable, RemoteDataviewHeader, RemoteDataviewManager, RemoteTaskService, RequestMethod, ResetLocateCommand, ResetRangeCommand, ResetSortCommand, ResetUserLocateRemoteDataviewCommand, ResetUserRangeRemoteDataviewCommand, ResetUserSortRemoteDataviewCommand, ResultCommand, ResultValue, RetVals, ReturnResult, ReturnResultBase, RollbackEventCommand, RollbackEventCommand_RollbackType, RunTimeEvent, RunTimeEventBase, SET_DISPLAYLINE_BY_DV, Scrambler, SelectProgramCommand, ServerConfig, ServerError, SetTransactionStateDataviewCommand, SetTransactionStateRemoteDataViewCommand, Sort, SortCollection, SubformOpenEventCommand, SubformRefreshEventCommand, TableCache, TableCacheManager, Task, TaskBase, TaskServiceBase, TaskTransactionManager, Task_Direction, Task_Flow, Task_SubformExecModeEnum, TasksTable, Transaction, TransactionCommand, UniqueIDUtils, UnloadCommand, UserDetails, UserEventsTable, UserRange, VerifyCommand, WriteMessageToServerLogCommand, XMLBasedCommandBuilder, XMLBasedDcValuesBuilder, YesNoExp, getGuiEventObj };
|
|
4717
|
+
export { AbortCommand, AccessHelper, ActionManager, AddLocateCommand, AddRangeCommand, AddSortCommand, AddUserLocateDataViewCommand, AddUserLocateRemoteDataViewCommand, AddUserRangeDataviewCommand, AddUserRangeRemoteDataViewCommand, AddUserSortDataViewCommand, AddUserSortRemoteDataViewCommand, Argument, ArgumentsList, Boundary, BrowserEscEventCommand, CachedFileQueryCommand, ClearEventsOnStopExecution, ClientManager, ClientOriginatedCommand, ClientOriginatedCommandSerializer, ClientOriginatedCommandTaskTag, ClientRefreshCommand, ClientTargetedCommandBase, ClientTargetedCommandType, ColumnSortEventCommand, CommandFactory, CommandSerializationHelper, CommandsProcessorBase, CommandsProcessorBase_SendingInstruction, CommandsProcessorBase_SessionStage, CommandsProcessorManager, CommandsTable, CompMainPrgTable, ComputeEventCommand, ConstInterface, ConstUtils, ContextTerminationEventCommand, ContextTimeoutResetCommand, ControlItemsRefreshCommand, CookieService, CreatedFormVector, CurrentClientVersion, DataSourceIdKey, DataView, DataViewBase, DataViewCommandBase, DataViewCommandType, DataViewOutputCommand, DataviewCommand, DataviewHeaderBase, DataviewHeaderFactory, DataviewHeaders, DataviewHeadersSaxHandler, DataviewManager, DataviewManagerBase, DcValuesReference, DummyDataViewCommand, DvCache, EnhancedVerifyCommand, EnvParamsTable, Environment, EnvironmentDetails, EvaluateCommand, Event, EventCommand, EventHandler, EventHandlerPosition, EventSubType, EventsAllowedType, EventsManager, ExecOperCommand, ExecutionStack, ExecutionStackEntry, ExpDesc, ExpStrTracker, ExpTable, Expression, ExpressionDict, ExpressionEvaluator, ExpressionLocalJpn, Expression_ReturnValue, FetchDataControlValuesEventCommand, Field, FieldBase, FieldsTable as FieldsTableExt, FlowMonitorInterface, FlowMonitorQueue, FormsTable, GUIManager, GlobalCommandsManager, GlobalParams, GlobalParamsQueryCommand, GuiEventsProcessor, HandlersTable, HeapSort, HttpClientAsync, HttpClientBase, HttpClientEvents, HttpClientSync, HttpManager, HttpUtility, IClientTargetedCommand, IndexChangeEventCommand, IniputForceWriteCommand, InteractiveCommunicationsFailureHandler, Key, LanguageData, LastFocusedManager, MGData, MGDataCollection, MagicBridge, MgControl, MgForm, MgPriorityBlockingQueue, MgPriorityQueue, MirrorExpVal, MirrorPrmMap, MirrorString, NonReversibleExitEventCommand, NullValueException, OpenURLCommand, OpeningTaskDetails, Operation, OperationTable, ParamParseResult, PrmMap, QueryCommand, RCTimer, Recompute, RecomputeCommand, RecomputeTable, Recompute_RcmpBy, Record, RecordOutOfDataViewException, RecordOutOfDataViewException_ExceptionType, RecordsTable, RefreshEventCommand, RefreshScreenEventCommand, RemoteCommandsProcessor, RemoteControlItemsRefreshCommand, RemoteDataViewCommandBase, RemoteDataViewCommandFactory, RemoteDataViewCommandUpdateNonModifiable, RemoteDataviewHeader, RemoteDataviewManager, RemoteTaskService, RequestMethod, ResetLocateCommand, ResetRangeCommand, ResetSortCommand, ResetUserLocateRemoteDataviewCommand, ResetUserRangeRemoteDataviewCommand, ResetUserSortRemoteDataviewCommand, ResultCommand, ResultValue, RetVals, ReturnResult, ReturnResultBase, RollbackEventCommand, RollbackEventCommand_RollbackType, RunTimeEvent, RunTimeEventBase, SET_DISPLAYLINE_BY_DV, Scrambler, SelectProgramCommand, ServerConfig, ServerError, SetTransactionStateDataviewCommand, SetTransactionStateRemoteDataViewCommand, Sort, SortCollection, SubformOpenEventCommand, SubformRefreshEventCommand, SubscriberClient, TableCache, TableCacheManager, Task, TaskBase, TaskServiceBase, TaskTransactionManager, Task_Direction, Task_Flow, Task_SubformExecModeEnum, TasksTable, Transaction, TransactionCommand, UniqueIDUtils, UnloadCommand, UserDetails, UserEventsTable, UserRange, VerifyCommand, WriteMessageToServerLogCommand, XMLBasedCommandBuilder, XMLBasedDcValuesBuilder, YesNoExp, getGuiEventObj };
|
|
4639
4718
|
export type { IClientCommand, IClientToServerCommandInfo, ICommandTaskTag, ICommandsTable, ICommunicationsFailureHandler, IConnectionStateManager, IDataSourceViewDefinition, IDataviewHeader, IEventsManager, IGuiEvent, ILanguageData, IMGDataCollection, IMirrorXML, IRecordsTable, IResultValue, IServerConfig, MgBlockingQueue };
|