@aj-shadow/z-abs-corelayer-client 0.0.0-aj-beta.227 → 0.0.0-aj-beta.236

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.
Files changed (44) hide show
  1. package/npm-shrinkwrap.json +3 -3
  2. package/package.json +2 -2
  3. package/project/client/_build/Bundle-CoreLayer-client.bld +8 -16
  4. package/project/client/actions/action-client.js +3 -3
  5. package/project/client/actions/action-dialog-file.js +3 -3
  6. package/project/client/communication/action.js +16 -9
  7. package/project/client/communication/core-protocol/decoder.js +2 -5
  8. package/project/client/communication/core-protocol/encoder.js +16 -19
  9. package/project/client/communication/core-protocol/pooled-buffers.js +2 -5
  10. package/project/client/communication/core-protocol/pooled-decoder.js +6 -7
  11. package/project/client/communication/core-protocol/pooled-encoder.js +20 -22
  12. package/project/client/communication/data-action-multi.js +3 -3
  13. package/project/client/communication/data-action.js +4 -4
  14. package/project/client/communication/data-config.js +5 -6
  15. package/project/client/communication/data-fetcher-thread.js +3 -6
  16. package/project/client/communication/data-fetcher.js +12 -12
  17. package/project/client/communication/messages/messages-c-to-s/message-persistent-init-request.js +4 -7
  18. package/project/client/communication/messages/messages-client/message-realtime-closed.js +2 -5
  19. package/project/client/communication/messages/messages-client/message-realtime-error.js +2 -5
  20. package/project/client/communication/messages/messages-client/message-realtime-open.js +2 -5
  21. package/project/client/communication/realtime-action.js +4 -4
  22. package/project/client/communication/subscription-action.js +2 -5
  23. package/project/client/components/helper-tab.js +2 -2
  24. package/project/client/components/not-found.jsx +4 -4
  25. package/project/client/react-component/context.js +4 -4
  26. package/project/client/react-component/react-component-base.js +8 -8
  27. package/project/client/react-component/react-component-realtime-renderer.js +4 -4
  28. package/project/client/react-component/react-component-realtime.js +4 -4
  29. package/project/client/react-component/react-component-store.js +4 -4
  30. package/project/client/state/state-updater.js +71 -15
  31. package/project/client/state/verbose.js +3 -3
  32. package/project/client/store/store-base-data.js +7 -6
  33. package/project/client/store/store-base-realtime.js +37 -37
  34. package/project/client/store/store-base.js +17 -47
  35. package/project/client/stores/client-store.js +5 -6
  36. package/project/client/stores/dialog-file-store.js +6 -8
  37. package/project/client/worker/worker-main-core-protocol.js +6 -9
  38. package/project/client/worker/worker-main-websocket.js +3 -6
  39. package/project/client/worker/worker-main.js +7 -7
  40. package/project/client/worker/worker-thread-core-protocol.js +3 -6
  41. package/project/client/worker/worker-thread-websocket.js +3 -6
  42. package/project/client/worker/worker-thread.js +1 -5
  43. package/LICENSE.txt +0 -96
  44. package/project/client/store/store-base-realtime-worker-thread.js +0 -26
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@aj-shadow/z-abs-corelayer-client",
3
- "version": "0.0.0-aj-beta.227",
3
+ "version": "0.0.0-aj-beta.236",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@aj-shadow/z-abs-corelayer-client",
9
- "version": "0.0.0-aj-beta.227",
10
- "license": "SEE LICENSE IN LICENSE.txt"
9
+ "version": "0.0.0-aj-beta.236",
10
+ "license": "MIT"
11
11
  }
12
12
  }
13
13
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@aj-shadow/z-abs-corelayer-client",
3
- "version": "0.0.0-aj-beta.227",
3
+ "version": "0.0.0-aj-beta.236",
4
4
  "release-step": "delivery",
5
5
  "description": "Library used by @actorjs/actorjs",
6
6
  "author": "ActorJs",
7
- "license": "SEE LICENSE IN LICENSE.txt",
7
+ "license": "MIT",
8
8
  "repository": "https://gitlab.com/actorjs-shadow-delivery-public/z-abs-corelayer-client.git",
9
9
  "dependencies": {}
10
10
  }
@@ -8,21 +8,13 @@
8
8
  "dest": "./dist/scripts",
9
9
  "_bundle": true,
10
10
  "ignores": null,
11
- "externals": [
12
- "os",
13
- "timers",
14
- "react"
11
+ "dictionary": [],
12
+ "exports": [],
13
+ "dependencies": [
14
+ ["z-abs-corelayer-client", "client"],
15
+ ["z-abs-corelayer-cs", "cs"],
16
+ ["z-abs-3pplayer-react-client", "client"],
17
+ ["z-abs-3pplayer-nodejs-client", "client"]
15
18
  ],
16
- "externalGlobs": [
17
- "./build/z-abs-corelayer-cs/**/*.js"
18
- ],
19
- "exports": null,
20
- "exportSource": true,
21
- "dependencyNames": [
22
- "Client:CoreLayer/client",
23
- "Client:CoreLayer/client-jsx",
24
- "Client:CoreLayer/cs",
25
- "Client:3ppLayer/React-client",
26
- "Client:3ppLayer/Nodejs-client"
27
- ]
19
+ "allowRequire": false
28
20
  }
@@ -1,8 +1,8 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
- import Action from '../communication/action';
5
- import DataAction from '../communication/data-action';
4
+ import { Action } from '../communication/action';
5
+ import { DataAction } from '../communication/data-action';
6
6
 
7
7
 
8
8
  export class ActionClientSet extends Action {
@@ -1,8 +1,8 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
- import Action from '../communication/action';
5
- import DataAction from '../communication/data-action';
4
+ import { Action } from '../communication/action';
5
+ import { DataAction } from '../communication/data-action';
6
6
 
7
7
 
8
8
  export class ActionDialogFileSet extends Action {
@@ -1,20 +1,27 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
- import ActionData from 'z-abs-corelayer-cs/clientServer/communication/response-data';
4
+ import * as CoreLayerCs from 'z-abs-corelayer-cs/client/communication/response-data';
5
5
 
6
6
 
7
- export default class Action {
7
+ export class Action {
8
+ static PARSE_START = 'constructor(';
9
+ static PARSE_START_LENGTH = this.PARSE_START.length;
10
+
8
11
  constructor(...params) {
9
12
  this._name = this.constructor.name.substr(6);
10
13
  this.params = [];
11
14
  const fn = this.constructor.toString();
12
- const parameterNames = fn.slice(fn.indexOf('(') + 1, fn.indexOf(')')).match(/([^\s,]+)/g);
15
+ const startIndex = fn.indexOf(Action.PARSE_START) + Action.PARSE_START_LENGTH;
16
+ const stopIndex = fn.indexOf(')', startIndex);
17
+ const parameterNames = fn.slice(startIndex, stopIndex).match(/([^\s,]+)/g);
13
18
  params.forEach((param, index) => {
14
- if(!parameterNames[index].startsWith('_')) {
15
- this.params.push(param);
19
+ if(parameterNames[index]) {
20
+ if(!parameterNames[index].startsWith('_')) {
21
+ this.params.push(param);
22
+ }
23
+ this[parameterNames[index]] = param;
16
24
  }
17
- this[parameterNames[index]] = param;
18
25
  });
19
26
  this.response = null;
20
27
  this._historyObject = {
@@ -24,9 +31,9 @@ export default class Action {
24
31
  };
25
32
  this.onDataResponse = null;
26
33
  }
27
-
34
+
28
35
  setResponse(response) {
29
- this.response = new ActionData(response.result, response.data);
36
+ this.response = new CoreLayerCs.ResponseData(response.result, response.data);
30
37
  }
31
38
 
32
39
  getResponse() {
@@ -1,8 +1,8 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
4
 
5
- class Decoder {
5
+ export class Decoder {
6
6
  static GuidSize = 16;
7
7
  static guidLookup = [48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 97, 98, 99, 100, 101, 102];
8
8
  static textDecoder = new TextDecoder();
@@ -407,6 +407,3 @@ class Decoder {
407
407
  return guids;
408
408
  }
409
409
  }
410
-
411
-
412
- module.exports = Decoder;
@@ -1,23 +1,23 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
- import EncoderConst from 'z-abs-corelayer-cs/clientServer/communication/core-protocol/encoder-const';
4
+ import * as CoreLayerCs from 'z-abs-corelayer-cs/client/communication/core-protocol/encoder-const';
5
5
 
6
6
 
7
- class Encoder {
7
+ export class Encoder {
8
8
  static totalSize = 0;
9
- static GuidSize = EncoderConst.GuidSize;
10
- static Int8Size = EncoderConst.Int8Size;
11
- static Int16Size = EncoderConst.Int16Size;
12
- static Int32Size = EncoderConst.Int32Size;
13
- static Int64Size = EncoderConst.Int64Size;
14
- static Uint8Size = EncoderConst.Uint8Size;
15
- static Uint16Size = EncoderConst.Uint16Size;
16
- static Uint32Size = EncoderConst.Uint32Size;
17
- static Uint64Size = EncoderConst.Uint64Size;
18
- static Float32Size = EncoderConst.Float32Size;
19
- static Float64Size = EncoderConst.Float64Size;
20
- static CtSize = EncoderConst.CtSize;
9
+ static GuidSize = CoreLayerCs.EncoderConst.GuidSize;
10
+ static Int8Size = CoreLayerCs.EncoderConst.Int8Size;
11
+ static Int16Size = CoreLayerCs.EncoderConst.Int16Size;
12
+ static Int32Size = CoreLayerCs.EncoderConst.Int32Size;
13
+ static Int64Size = CoreLayerCs.EncoderConst.Int64Size;
14
+ static Uint8Size = CoreLayerCs.EncoderConst.Uint8Size;
15
+ static Uint16Size = CoreLayerCs.EncoderConst.Uint16Size;
16
+ static Uint32Size = CoreLayerCs.EncoderConst.Uint32Size;
17
+ static Uint64Size = CoreLayerCs.EncoderConst.Uint64Size;
18
+ static Float32Size = CoreLayerCs.EncoderConst.Float32Size;
19
+ static Float64Size = CoreLayerCs.EncoderConst.Float64Size;
20
+ static CtSize = CoreLayerCs.EncoderConst.CtSize;
21
21
 
22
22
  static textEncoder = new TextEncoder();
23
23
  static ASCII = [
@@ -143,7 +143,7 @@ class Encoder {
143
143
  }
144
144
 
145
145
  static getGuidArrayBytes(array) {
146
- return Encoder.calculateDynamicBytes(array.length) + (array.length * EncoderConst.GuidSize);
146
+ return Encoder.calculateDynamicBytes(array.length) + (array.length * CoreLayerCs.EncoderConst.GuidSize);
147
147
  }
148
148
 
149
149
  getGuidArrayBytes(array) {
@@ -548,6 +548,3 @@ class Encoder {
548
548
  }
549
549
  }
550
550
  }
551
-
552
-
553
- module.exports = Encoder;
@@ -1,8 +1,8 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
4
 
5
- class PooledBuffers {
5
+ export class PooledBuffers {
6
6
  static BUFFER_SIZE = 2 ** 18;
7
7
  static dynamicBuffers = new Map();
8
8
 
@@ -46,6 +46,3 @@ class PooledBuffers {
46
46
  PooledBuffers.dynamicBuffers.clear();
47
47
  }
48
48
  }
49
-
50
-
51
- module.exports = PooledBuffers;
@@ -1,8 +1,10 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
+ import * as CoreLayerCs from 'z-abs-corelayer-cs/client/debug-dashboard/memory';
4
5
 
5
- class PooledDecoder {
6
+
7
+ export class PooledDecoder {
6
8
  static GuidSize = 16;
7
9
  static guidLookup = [48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 97, 98, 99, 100, 101, 102];
8
10
  static textDecoder = new TextDecoder();
@@ -11,7 +13,7 @@ class PooledDecoder {
11
13
  static ddmGroup = null;
12
14
 
13
15
  static {
14
- PooledDecoder.ddmGroup = ddm.addGroup('PooledDecoder');
16
+ PooledDecoder.ddmGroup = CoreLayerCs.Memory.addGroup('PooledDecoder');
15
17
  }
16
18
  #BUILD_DEBUG_STOP
17
19
 
@@ -21,7 +23,7 @@ class PooledDecoder {
21
23
  this.dataView = null;
22
24
  this.offset = 0;
23
25
  #BUILD_DEBUG_START
24
- ddm.register(this, PooledDecoder.ddmGroup);
26
+ CoreLayerCs.Memory.register(this, PooledDecoder.ddmGroup);
25
27
  #BUILD_DEBUG_STOP
26
28
  }
27
29
 
@@ -391,6 +393,3 @@ class PooledDecoder {
391
393
  return guids;
392
394
  }
393
395
  }
394
-
395
-
396
- module.exports = PooledDecoder;
@@ -1,23 +1,24 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
- import PooledBuffers from './pooled-buffers';
5
- import EncoderConst from 'z-abs-corelayer-cs/clientServer/communication/core-protocol/encoder-const';
4
+ import { PooledBuffers } from './pooled-buffers';
5
+ import * as CoreLayerCs from 'z-abs-corelayer-cs/client/communication/core-protocol/encoder-const';
6
+ import * as CoreLayerCs1 from 'z-abs-corelayer-cs/client/debug-dashboard/memory';
6
7
 
7
8
 
8
- class PooledEncoder {
9
- static GuidSize = EncoderConst.GuidSize;
10
- static Int8Size = EncoderConst.Int8Size;
11
- static Int16Size = EncoderConst.Int16Size;
12
- static Int32Size = EncoderConst.Int32Size;
13
- static Int64Size = EncoderConst.Int64Size;
14
- static Uint8Size = EncoderConst.Uint8Size;
15
- static Uint16Size = EncoderConst.Uint16Size;
16
- static Uint32Size = EncoderConst.Uint32Size;
17
- static Uint64Size = EncoderConst.Uint64Size;
18
- static Float32Size = EncoderConst.Float32Size;
19
- static Float64Size = EncoderConst.Float64Size;
20
- static CtSize = EncoderConst.CtSize;
9
+ export class PooledEncoder {
10
+ static GuidSize = CoreLayerCs.EncoderConst.GuidSize;
11
+ static Int8Size = CoreLayerCs.EncoderConst.Int8Size;
12
+ static Int16Size = CoreLayerCs.EncoderConst.Int16Size;
13
+ static Int32Size = CoreLayerCs.EncoderConst.Int32Size;
14
+ static Int64Size = CoreLayerCs.EncoderConst.Int64Size;
15
+ static Uint8Size = CoreLayerCs.EncoderConst.Uint8Size;
16
+ static Uint16Size = CoreLayerCs.EncoderConst.Uint16Size;
17
+ static Uint32Size = CoreLayerCs.EncoderConst.Uint32Size;
18
+ static Uint64Size = CoreLayerCs.EncoderConst.Uint64Size;
19
+ static Float32Size = CoreLayerCs.EncoderConst.Float32Size;
20
+ static Float64Size = CoreLayerCs.EncoderConst.Float64Size;
21
+ static CtSize = CoreLayerCs.EncoderConst.CtSize;
21
22
 
22
23
  static textEncoder = new TextEncoder();
23
24
  static ASCII = [
@@ -40,7 +41,7 @@ class PooledEncoder {
40
41
  static ddmGroup = null;
41
42
 
42
43
  static {
43
- PooledEncoder.ddmGroup = ddm.addGroup('PooledEncoder.dataView');
44
+ PooledEncoder.ddmGroup = CoreLayerCs.Memory.addGroup('PooledEncoder.dataView');
44
45
  }
45
46
  #BUILD_DEBUG_STOP
46
47
 
@@ -57,7 +58,7 @@ class PooledEncoder {
57
58
 
58
59
  createBuffer(size, offset) {
59
60
  #BUILD_DEBUG_START
60
- ddm.register(this.dataView, PooledEncoder.ddmGroup);
61
+ CoreLayerCs.Memory.register(this.dataView, PooledEncoder.ddmGroup);
61
62
  #BUILD_DEBUG_STOP
62
63
  const bufferData = this.pooledBuffers.getBuffer(size);
63
64
  this.dataView = this.pooledBuffers.dataViews[bufferData.buffersIndex];
@@ -156,7 +157,7 @@ class PooledEncoder {
156
157
  }
157
158
 
158
159
  static getGuidArrayBytes(array) {
159
- return PooledEncoder.calculateDynamicBytes(array.length) + (array.length * EncoderConst.GuidSize);
160
+ return PooledEncoder.calculateDynamicBytes(array.length) + (array.length * CoreLayerCs.EncoderConst.GuidSize);
160
161
  }
161
162
 
162
163
  getGuidArrayBytes(array) {
@@ -500,6 +501,3 @@ class PooledEncoder {
500
501
  }
501
502
  }
502
503
  }
503
-
504
-
505
- module.exports = PooledEncoder;
@@ -1,10 +1,10 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
- import DataAction from './data-action';
4
+ import { DataAction } from './data-action';
5
5
 
6
6
 
7
- export default class DataActionMulti extends DataAction {
7
+ export class DataActionMulti extends DataAction {
8
8
  constructor() {
9
9
  super();
10
10
  }
@@ -1,12 +1,12 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
- import ActionRequest from 'z-abs-corelayer-cs/clientServer/communication/action-request';
4
+ import * as CoreLayerCs from 'z-abs-corelayer-cs/client/communication/action-request';
5
5
 
6
6
 
7
- export default class DataAction {
7
+ export class DataAction {
8
8
  constructor() {
9
- this.actionRequest = new ActionRequest();
9
+ this.actionRequest = new CoreLayerCs.ActionRequest();
10
10
  this.actions = new Map();
11
11
  }
12
12
 
@@ -1,14 +1,16 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
4
 
5
- class DataConfig {
5
+ export class DataConfig {
6
+ static instance = new DataConfig();
7
+
6
8
  constructor() {
7
9
  this.wsServers = new Map();
8
10
  this.loggedIn = false;
9
11
  this.loginCbs = [];
10
12
  }
11
-
13
+
12
14
  setWs(wsServers) {
13
15
  if(wsServers) {
14
16
  wsServers.forEach((wsServer) => {
@@ -31,6 +33,3 @@ class DataConfig {
31
33
  }
32
34
  }
33
35
  }
34
-
35
-
36
- module.exports = new DataConfig();
@@ -1,10 +1,10 @@
1
1
 
2
- 'use strict';
3
2
 
4
- const WorkerThread = require('../worker/worker-thread');
5
3
 
4
+ import { WorkerThread } from '../worker/worker-thread';
6
5
 
7
- class DataFetcherThread extends WorkerThread{
6
+
7
+ class DataFetcherThread extends WorkerThread {
8
8
  constructor(id) {
9
9
  super(id);
10
10
  this.headers = {
@@ -41,6 +41,3 @@ class DataFetcherThread extends WorkerThread{
41
41
  });
42
42
  }
43
43
  }
44
-
45
-
46
- module.exports = DataFetcherThread;
@@ -1,23 +1,28 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
- import WorkerMain from '../worker/worker-main';
4
+ import { WorkerMain } from '../worker/worker-main';
5
+ import { DataAction } from './data-action';
6
+ import * as CoreLayerCs from 'z-abs-corelayer-cs/client/guid-generator';
5
7
  const DataFetcherThread = requireAsBundle('./data-fetcher-thread');
6
- import DataAction from './data-action';
7
- import GuidGenerator from 'z-abs-corelayer-cs/clientServer/guid-generator';
8
8
 
9
9
 
10
- class DataFetcher {
10
+ export class DataFetcher {
11
+ static instance = new DataFetcher();
12
+
11
13
  constructor() {
14
+ if(this.instance) {
15
+ throw new Error('DataFetcher constructor is private. Use DataFetcher.instance().');
16
+ }
12
17
  this.requests = new Map();
13
18
  this.workerMain = new WorkerMain(this, 'DataFetcherThread', DataFetcherThread);
14
19
  this.workerMain.start();
15
20
  this.init = false;
16
21
  this.initQueue = [];
17
22
  }
18
-
23
+
19
24
  send(dataAction, store, cb) {
20
- const guid = GuidGenerator.create();
25
+ const guid = CoreLayerCs.GuidGenerator.create();
21
26
  dataAction.setIds(guid);
22
27
  this.requests.set(guid, {
23
28
  dataAction: dataAction,
@@ -51,8 +56,3 @@ class DataFetcher {
51
56
  this.requests.delete(guid);
52
57
  }
53
58
  }
54
-
55
- DataFetcher.self = new DataFetcher();
56
-
57
-
58
- module.exports = DataFetcher.self;
@@ -1,16 +1,13 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
- const CoreProtocolConst = require('z-abs-corelayer-cs/clientServer/communication/core-protocol/core-protocol-const');
4
+ import * as CoreLayerCs from 'z-abs-corelayer-cs/client/communication/core-protocol/core-protocol-const';
5
5
 
6
6
 
7
- class MessagePersistentInitRequest {
7
+ export class MessagePersistentInitRequest {
8
8
  constructor(name, subscribeServices) {
9
- this.msgId = CoreProtocolConst.PERSISTENT_INIT_REQUEST;
9
+ this.msgId = CoreLayerCs.CoreProtocolConst.PERSISTENT_INIT_REQUEST;
10
10
  this.name = name;
11
11
  this.subscribeServices = subscribeServices;
12
12
  }
13
13
  }
14
-
15
-
16
- module.exports = MessagePersistentInitRequest;
@@ -1,12 +1,9 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
4
 
5
- class MessageRealtimeClosed {
5
+ export class MessageRealtimeClosed {
6
6
  constructor() {
7
7
  this.onRealtimeName = 'onRealtimeMessageRealtimeClosed';
8
8
  }
9
9
  }
10
-
11
-
12
- module.exports = MessageRealtimeClosed;
@@ -1,12 +1,9 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
4
 
5
- class MessageRealtimeError {
5
+ export class MessageRealtimeError {
6
6
  constructor() {
7
7
  this.onRealtimeName = 'onRealtimeMessageRealtimeError';
8
8
  }
9
9
  }
10
-
11
-
12
- module.exports = MessageRealtimeError;
@@ -1,12 +1,9 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
4
 
5
- class MessageRealtimeOpen {
5
+ export class MessageRealtimeOpen {
6
6
  constructor() {
7
7
  this.onRealtimeName = 'onRealtimeMessageRealtimeOpen';
8
8
  }
9
9
  }
10
-
11
-
12
- module.exports = MessageRealtimeOpen;
@@ -1,12 +1,12 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
- import ActionRequest from 'z-abs-corelayer-cs/clientServer/communication/action-request';
4
+ import * as CoreLayerCs from 'z-abs-corelayer-cs/client/communication/action-request';
5
5
 
6
6
 
7
- export default class RealtimeAction {
7
+ export class RealtimeAction {
8
8
  constructor() {
9
- this.actionRequest = new ActionRequest();
9
+ this.actionRequest = new CoreLayerCs.ActionRequest();
10
10
  this.actions = new Map();
11
11
  }
12
12
 
@@ -1,8 +1,8 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
4
 
5
- class SubscriptionAction {
5
+ export class SubscriptionAction {
6
6
  constructor(data) {
7
7
  this.data = data;
8
8
  }
@@ -16,6 +16,3 @@ class SubscriptionAction {
16
16
  }
17
17
  }
18
18
  }
19
-
20
-
21
- module.exports = SubscriptionAction;
@@ -1,8 +1,8 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
4
 
5
- export default class HelperTab {
5
+ export class HelperTab {
6
6
  constructor(tabNames) {
7
7
  this.tabNames = new Map();
8
8
  this.tabRoutes = new Map();
@@ -1,11 +1,11 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
- import ReactComponentBase from '../react-component/react-component-base';
5
- import React from 'react';
4
+ import { ReactComponentBase } from '../react-component/react-component-base';
5
+ import * as React from 'react';
6
6
 
7
7
 
8
- export default class NotFound extends ReactComponentBase {
8
+ export class NotFound extends ReactComponentBase {
9
9
  constructor(props) {
10
10
  super(props);
11
11
  /*this.setTitle(() => {
@@ -1,8 +1,9 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
4
 
5
- class Context {
5
+ export class Context {
6
+
6
7
  constructor() {
7
8
  this.contexts = new Map();
8
9
  }
@@ -22,5 +23,4 @@ class Context {
22
23
  }
23
24
  }
24
25
 
25
-
26
- module.exports = new Context();
26
+ export const GlobalContext = new Context();
@@ -1,23 +1,23 @@
1
1
 
2
- 'use strict';
2
+ // SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
3
3
 
4
- import StateUpdater from '../state/state-updater';
5
- import Verbose from '../state/verbose';
6
- import Context from './context';
7
- import React from 'react';
4
+ import { StateUpdater } from '../state/state-updater';
5
+ import { Verbose } from '../state/verbose';
6
+ import { GlobalContext } from './context';
7
+ import * as React from 'react';
8
8
 
9
9
 
10
- export default class ReactComponentBase extends React.Component {
10
+ export class ReactComponentBase extends React.Component {
11
11
  static TitleSize = 16;
12
12
  static popoverId = 0;
13
13
  static logId = 0;
14
14
  static shouldUpdateId = 0;
15
-
15
+
16
16
  constructor(props, state={}) {
17
17
  super(props);
18
18
  this.state = state;
19
19
  this.stateNext = state;
20
- this.myContext = new Proxy(Context, {
20
+ this.myContext = new Proxy(GlobalContext, {
21
21
  get(target, property, receiver) {
22
22
  return target.get(property);
23
23
  },