@aj-shadow/z-abs-complayer-visualizationsequencediagram-client 0.0.0-aj-beta.227 → 0.0.0-aj-beta.237
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/npm-shrinkwrap.json +3 -3
- package/package.json +2 -2
- package/project/client/_build/Bundle-CompLayer-VisualizationSequenceDiagram-client.bld +13 -26
- package/project/client/content-decoders/content-decoder.js +4 -5
- package/project/client/content-decoders/image-decoder.js +12 -14
- package/project/client/content-decoders/text-decoder.js +12 -15
- package/project/client/data/data-seq-dia-client-connected-not.js +17 -20
- package/project/client/data/data-seq-dia-client-connected.js +16 -19
- package/project/client/data/data-seq-dia-client-connecting.js +17 -20
- package/project/client/data/data-seq-dia-client-dns-failure.js +2 -7
- package/project/client/data/data-seq-dia-connection-closed.js +16 -19
- package/project/client/data/data-seq-dia-connection-closing.js +17 -20
- package/project/client/data/data-seq-dia-connection-half-closed.js +16 -19
- package/project/client/data/data-seq-dia-connection-half-closing.js +17 -20
- package/project/client/data/data-seq-dia-connection-upgrading.js +2 -7
- package/project/client/data/data-seq-dia-gui-result.js +6 -9
- package/project/client/data/data-seq-dia-gui.js +14 -18
- package/project/client/data/data-seq-dia-phase-end-result.js +5 -8
- package/project/client/data/data-seq-dia-phase-end.js +14 -17
- package/project/client/data/data-seq-dia-phase-start-result.js +5 -8
- package/project/client/data/data-seq-dia-phase-start.js +14 -17
- package/project/client/data/data-seq-dia-protocol-single-node-result.js +5 -8
- package/project/client/data/data-seq-dia-protocol-single-node.js +6 -9
- package/project/client/data/data-seq-dia-protocol-two-nodes-result.js +5 -8
- package/project/client/data/data-seq-dia-protocol-two-nodes.js +9 -12
- package/project/client/data/data-seq-dia-receive.js +20 -24
- package/project/client/data/data-seq-dia-send.js +20 -24
- package/project/client/data/data-seq-dia-server-accepted.js +16 -19
- package/project/client/data/data-seq-dia-server-accepting.js +16 -19
- package/project/client/data/data-seq-dia-server-attached.js +16 -19
- package/project/client/data/data-seq-dia-server-detached.js +16 -19
- package/project/client/data/data-seq-dia-server-not-started.js +16 -19
- package/project/client/data/data-seq-dia-server-started.js +16 -19
- package/project/client/data/data-seq-dia-server-starting.js +16 -19
- package/project/client/data/data-seq-dia-server-stopped.js +16 -19
- package/project/client/data/data-seq-dia-server-stopping.js +16 -19
- package/project/client/data/data-seq-dia-stack-result.js +6 -9
- package/project/client/data/data-seq-dia-stack.js +13 -17
- package/project/client/data/data-seq-dia-state-result.js +5 -8
- package/project/client/data/data-seq-dia-state.js +14 -17
- package/project/client/data/data-seq-dia-test-case-end-result.js +5 -8
- package/project/client/data/data-seq-dia-test-case-end.js +14 -17
- package/project/client/data/data-seq-dia-test-case-header-result.js +5 -8
- package/project/client/data/data-seq-dia-test-case-header.js +12 -15
- package/project/client/data/data-seq-dia-test-case-start-result.js +5 -7
- package/project/client/data/data-seq-dia-test-case-start.js +15 -18
- package/project/client/logic/analyze.js +10 -13
- package/project/client/logic/cache-array.js +2 -5
- package/project/client/logic/cache-map-double.js +2 -5
- package/project/client/logic/cache-map-shared.js +4 -7
- package/project/client/logic/cache-map.js +2 -5
- package/project/client/logic/cache-type-connection-closed.js +4 -7
- package/project/client/logic/cache-type-connection-closing.js +4 -7
- package/project/client/logic/cache-type-connection-connected.js +4 -7
- package/project/client/logic/cache-type-connection-connecting.js +4 -7
- package/project/client/logic/cache-type-connection-half-closed.js +4 -7
- package/project/client/logic/cache-type-connection-half-closing.js +4 -7
- package/project/client/logic/cache-type-connection-not-connected.js +4 -7
- package/project/client/logic/cache-type-phase-end.js +4 -7
- package/project/client/logic/cache-type-phase-start.js +4 -7
- package/project/client/logic/cache-type-receive.js +4 -7
- package/project/client/logic/cache-type-send.js +4 -7
- package/project/client/logic/cache-type-server-accepted.js +4 -7
- package/project/client/logic/cache-type-server-accepting.js +4 -7
- package/project/client/logic/cache-type-server-attached.js +4 -7
- package/project/client/logic/cache-type-server-detached.js +4 -9
- package/project/client/logic/cache-type-server-not-started.js +4 -7
- package/project/client/logic/cache-type-server-started.js +4 -7
- package/project/client/logic/cache-type-server-starting.js +4 -7
- package/project/client/logic/cache-type-server-stopped.js +4 -7
- package/project/client/logic/cache-type-server-stopping.js +4 -7
- package/project/client/logic/cache-type-stack.js +4 -7
- package/project/client/logic/cache-type-state.js +4 -7
- package/project/client/logic/cache-type-test-case-end.js +3 -6
- package/project/client/logic/cache-type-test-case-header.js +3 -6
- package/project/client/logic/cache-type-test-case-start.js +3 -5
- package/project/client/logic/cache.js +31 -34
- package/project/client/logic/connection-data.js +3 -5
- package/project/client/logic/const.js +43 -76
- package/project/client/logic/content-cache.js +7 -12
- package/project/client/logic/data-log-row.js +2 -5
- package/project/client/logic/filter-size.js +43 -47
- package/project/client/logic/seq-dia-filter.js +33 -40
- package/project/client/logic/shared-template-data.js +6 -10
- package/project/client/react-component/sequence-diagram.jsx +82 -82
- package/project/client/templates/components/component-seq-dia-arrow.js +3 -6
- package/project/client/templates/components/component-seq-dia-caption.js +3 -6
- package/project/client/templates/components/component-seq-dia-envelope.js +12 -16
- package/project/client/templates/components/component-seq-dia-event-info.js +3 -6
- package/project/client/templates/components/component-seq-dia-event-row.js +12 -15
- package/project/client/templates/components/component-seq-dia-protocol.js +11 -14
- package/project/client/templates/components/component-seq-dia-shared.js +4 -7
- package/project/client/templates/template-seq-dia-client-connected-not.js +12 -15
- package/project/client/templates/template-seq-dia-client-connected.js +10 -13
- package/project/client/templates/template-seq-dia-client-connecting.js +10 -13
- package/project/client/templates/template-seq-dia-client-dns-failure.js +14 -17
- package/project/client/templates/template-seq-dia-connection-closed.js +11 -14
- package/project/client/templates/template-seq-dia-connection-closing.js +12 -15
- package/project/client/templates/template-seq-dia-connection-half-closed.js +11 -14
- package/project/client/templates/template-seq-dia-connection-half-closing.js +12 -15
- package/project/client/templates/template-seq-dia-connection-upgraded-not.js +15 -18
- package/project/client/templates/template-seq-dia-connection-upgraded.js +12 -15
- package/project/client/templates/template-seq-dia-connection-upgrading.js +12 -15
- package/project/client/templates/template-seq-dia-gui.js +46 -51
- package/project/client/templates/template-seq-dia-msg.js +15 -18
- package/project/client/templates/template-seq-dia-phase-end.js +6 -9
- package/project/client/templates/template-seq-dia-phase-start.js +6 -9
- package/project/client/templates/template-seq-dia-protocol-base.js +4 -7
- package/project/client/templates/template-seq-dia-receive.js +14 -18
- package/project/client/templates/template-seq-dia-send.js +14 -18
- package/project/client/templates/template-seq-dia-server-accepted.js +10 -13
- package/project/client/templates/template-seq-dia-server-accepting.js +9 -12
- package/project/client/templates/template-seq-dia-server-attached.js +12 -15
- package/project/client/templates/template-seq-dia-server-detached.js +11 -14
- package/project/client/templates/template-seq-dia-server-not-started.js +12 -15
- package/project/client/templates/template-seq-dia-server-started.js +9 -12
- package/project/client/templates/template-seq-dia-server-starting.js +9 -12
- package/project/client/templates/template-seq-dia-server-stopped.js +9 -12
- package/project/client/templates/template-seq-dia-server-stopping.js +9 -12
- package/project/client/templates/template-seq-dia-stack.js +24 -27
- package/project/client/templates/template-seq-dia-state.js +24 -27
- package/project/client/templates/template-seq-dia-test-case-end.js +7 -10
- package/project/client/templates/template-seq-dia-test-case-header.js +6 -9
- package/project/client/templates/template-seq-dia-test-case-start.js +4 -7
- package/LICENSE.txt +0 -96
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
// SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
|
|
3
3
|
|
|
4
|
-
import CacheMapDouble from './cache-map-double';
|
|
5
|
-
import Const from './const';
|
|
4
|
+
import { CacheMapDouble } from './cache-map-double';
|
|
5
|
+
import { Const } from './const';
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
class CacheTypeServerStopping {
|
|
8
|
+
export class CacheTypeServerStopping {
|
|
9
9
|
constructor() {
|
|
10
10
|
#BUILD_RELEASE_START
|
|
11
11
|
this.elementCache = new CacheMapDouble();
|
|
@@ -59,6 +59,3 @@ class CacheTypeServerStopping {
|
|
|
59
59
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
module.exports = CacheTypeServerStopping;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
// SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
|
|
3
3
|
|
|
4
|
-
import CacheMapDouble from './cache-map-double';
|
|
5
|
-
import Const from './const';
|
|
4
|
+
import { CacheMapDouble } from './cache-map-double';
|
|
5
|
+
import { Const } from './const';
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
class CacheTypeStack {
|
|
8
|
+
export class CacheTypeStack {
|
|
9
9
|
constructor() {
|
|
10
10
|
#BUILD_RELEASE_START
|
|
11
11
|
this.elementCache = new CacheMapDouble();
|
|
@@ -59,6 +59,3 @@ class CacheTypeStack {
|
|
|
59
59
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
module.exports = CacheTypeStack;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
// SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
|
|
3
3
|
|
|
4
|
-
import CacheMapDouble from './cache-map-double';
|
|
5
|
-
import Const from './const';
|
|
4
|
+
import { CacheMapDouble } from './cache-map-double';
|
|
5
|
+
import { Const } from './const';
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
class CacheTypeState {
|
|
8
|
+
export class CacheTypeState {
|
|
9
9
|
constructor() {
|
|
10
10
|
#BUILD_RELEASE_START
|
|
11
11
|
this.elementCache = new CacheMapDouble();
|
|
@@ -48,6 +48,3 @@ class CacheTypeState {
|
|
|
48
48
|
#BUILD_DEBUG_STOP
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
module.exports = CacheTypeState;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
// SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
|
|
3
3
|
|
|
4
|
-
import CacheMap from './cache-map';
|
|
4
|
+
import { CacheMap } from './cache-map';
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
class CacheTypeTestCaseEnd {
|
|
7
|
+
export class CacheTypeTestCaseEnd {
|
|
8
8
|
constructor() {
|
|
9
9
|
this.elementCache = new CacheMap();
|
|
10
10
|
}
|
|
@@ -25,6 +25,3 @@ class CacheTypeTestCaseEnd {
|
|
|
25
25
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
module.exports = CacheTypeTestCaseEnd;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
// SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
|
|
3
3
|
|
|
4
|
-
import CacheMap from './cache-map';
|
|
4
|
+
import { CacheMap } from './cache-map';
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
class CacheTypeTestCaseHeader {
|
|
7
|
+
export class CacheTypeTestCaseHeader {
|
|
8
8
|
constructor() {
|
|
9
9
|
this.elementCache = new CacheMap();
|
|
10
10
|
}
|
|
@@ -25,6 +25,3 @@ class CacheTypeTestCaseHeader {
|
|
|
25
25
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
module.exports = CacheTypeTestCaseHeader;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
// SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
|
|
3
3
|
|
|
4
|
-
import CacheArray from './cache-array';
|
|
4
|
+
import { CacheArray } from './cache-array';
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
class CacheTypeTestCaseStart {
|
|
7
|
+
export class CacheTypeTestCaseStart {
|
|
8
8
|
constructor() {
|
|
9
9
|
this.elementCache = new CacheArray();
|
|
10
10
|
}
|
|
@@ -26,5 +26,3 @@ class CacheTypeTestCaseStart {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
module.exports = CacheTypeTestCaseStart;
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
// SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
|
|
3
3
|
|
|
4
|
-
import CacheArray from './cache-array';
|
|
5
|
-
import CacheMapDouble from './cache-map-double';
|
|
6
|
-
import CacheMap from './cache-map';
|
|
7
|
-
import CacheTypeConnectionConnecting from './cache-type-connection-connecting';
|
|
8
|
-
import CacheTypeConnectionConnected from './cache-type-connection-connected';
|
|
9
|
-
import CacheTypeConnectionNotConnected from './cache-type-connection-not-connected';
|
|
10
|
-
import CacheTypeConnectionHalfClosing from './cache-type-connection-half-closing';
|
|
11
|
-
import CacheTypeConnectionHalfClosed from './cache-type-connection-half-closed';
|
|
12
|
-
import CacheTypeConnectionClosing from './cache-type-connection-closing';
|
|
13
|
-
import CacheTypeConnectionClosed from './cache-type-connection-closed';
|
|
14
|
-
import CacheTypePhaseEnd from './cache-type-phase-end';
|
|
15
|
-
import CacheTypePhaseStart from './cache-type-phase-start';
|
|
16
|
-
import CacheTypeReceive from './cache-type-receive';
|
|
17
|
-
import CacheTypeSend from './cache-type-send';
|
|
18
|
-
import CacheTypeServerStarting from './cache-type-server-starting';
|
|
19
|
-
import CacheTypeServerStarted from './cache-type-server-started';
|
|
20
|
-
import CacheTypeServerNotStarted from './cache-type-server-not-started';
|
|
21
|
-
import
|
|
22
|
-
import CacheTypeServerStopping from './cache-type-server-stopping';
|
|
23
|
-
import CacheTypeServerStopped from './cache-type-server-stopped';
|
|
24
|
-
import CacheTypeServerDetached from './cache-type-server-detached';
|
|
25
|
-
import CacheTypeServerAccepting from './cache-type-server-accepting';
|
|
26
|
-
import CacheTypeServerAccepted from './cache-type-server-accepted';
|
|
27
|
-
import CacheTypeStack from './cache-type-stack';
|
|
28
|
-
import CacheTypeState from './cache-type-state';
|
|
29
|
-
import CacheTypeTestCaseHeader from './cache-type-test-case-header';
|
|
30
|
-
import CacheTypeTestCaseStart from './cache-type-test-case-start';
|
|
31
|
-
import CacheTypeTestCaseEnd from './cache-type-test-case-end';
|
|
4
|
+
import { CacheArray } from './cache-array';
|
|
5
|
+
import { CacheMapDouble } from './cache-map-double';
|
|
6
|
+
import { CacheMap } from './cache-map';
|
|
7
|
+
import { CacheTypeConnectionConnecting } from './cache-type-connection-connecting';
|
|
8
|
+
import { CacheTypeConnectionConnected } from './cache-type-connection-connected';
|
|
9
|
+
import { CacheTypeConnectionNotConnected } from './cache-type-connection-not-connected';
|
|
10
|
+
import { CacheTypeConnectionHalfClosing } from './cache-type-connection-half-closing';
|
|
11
|
+
import { CacheTypeConnectionHalfClosed } from './cache-type-connection-half-closed';
|
|
12
|
+
import { CacheTypeConnectionClosing } from './cache-type-connection-closing';
|
|
13
|
+
import { CacheTypeConnectionClosed } from './cache-type-connection-closed';
|
|
14
|
+
import { CacheTypePhaseEnd } from './cache-type-phase-end';
|
|
15
|
+
import { CacheTypePhaseStart } from './cache-type-phase-start';
|
|
16
|
+
import { CacheTypeReceive } from './cache-type-receive';
|
|
17
|
+
import { CacheTypeSend } from './cache-type-send';
|
|
18
|
+
import { CacheTypeServerStarting } from './cache-type-server-starting';
|
|
19
|
+
import { CacheTypeServerStarted } from './cache-type-server-started';
|
|
20
|
+
import { CacheTypeServerNotStarted } from './cache-type-server-not-started';
|
|
21
|
+
import { CacheTypeServerAttached } from './cache-type-server-attached';
|
|
22
|
+
import { CacheTypeServerStopping } from './cache-type-server-stopping';
|
|
23
|
+
import { CacheTypeServerStopped } from './cache-type-server-stopped';
|
|
24
|
+
import { CacheTypeServerDetached } from './cache-type-server-detached';
|
|
25
|
+
import { CacheTypeServerAccepting } from './cache-type-server-accepting';
|
|
26
|
+
import { CacheTypeServerAccepted } from './cache-type-server-accepted';
|
|
27
|
+
import { CacheTypeStack } from './cache-type-stack';
|
|
28
|
+
import { CacheTypeState } from './cache-type-state';
|
|
29
|
+
import { CacheTypeTestCaseHeader } from './cache-type-test-case-header';
|
|
30
|
+
import { CacheTypeTestCaseStart } from './cache-type-test-case-start';
|
|
31
|
+
import { CacheTypeTestCaseEnd } from './cache-type-test-case-end';
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
class Cache {
|
|
34
|
+
export class Cache {
|
|
35
35
|
static SIZE_PHASE_ID = 3;
|
|
36
36
|
static SIZE_STATE_INDEX = 3;
|
|
37
37
|
static SIZE_STATE_RESULT_INDEX = 4;
|
|
@@ -47,7 +47,7 @@ class Cache {
|
|
|
47
47
|
constructor() {
|
|
48
48
|
this.elementServerStartingCache = new CacheTypeServerStarting();
|
|
49
49
|
this.elementServerStartedCache = new CacheTypeServerStarted();
|
|
50
|
-
this.elementServerAttachedCache = new
|
|
50
|
+
this.elementServerAttachedCache = new CacheTypeServerAttached();
|
|
51
51
|
this.elementServerStoppingCache = new CacheTypeServerStopping();
|
|
52
52
|
this.elementServerStoppedCache = new CacheTypeServerStopped();
|
|
53
53
|
this.elementServerDetachedCache = new CacheTypeServerDetached();
|
|
@@ -197,6 +197,3 @@ class Cache {
|
|
|
197
197
|
this.elementStateCache.clear();
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
module.exports = Cache;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
// SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
|
|
3
3
|
|
|
4
|
-
import Const from './const';
|
|
4
|
+
import { Const } from './const';
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
class ConnectionData {
|
|
7
|
+
export class ConnectionData {
|
|
8
8
|
static NOT_CONNECTED = 0;
|
|
9
9
|
static CONNECTED = 1;
|
|
10
10
|
static DISCONNECTED = 2;
|
|
@@ -56,5 +56,3 @@ class ConnectionData {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
module.exports = ConnectionData;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
// SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
|
|
3
3
|
|
|
4
|
-
import
|
|
4
|
+
import * as FuncLayerEngineCs from 'z-abs-funclayer-engine-cs/client/log/log-data-action';
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
class Const {
|
|
8
|
-
static DATA_TEST_CASE_START = LogDataAction.LOG.length;
|
|
9
|
-
static DATA_TEST_CASE_HEADER = LogDataAction.LOG.length + 1;
|
|
10
|
-
static DATA_TEST_CASE_END = LogDataAction.LOG.length + 2;
|
|
11
|
-
static DATA_PHASE_START = LogDataAction.LOG.length + 3;
|
|
12
|
-
static DATA_PHASE_END = LogDataAction.LOG.length + 4;
|
|
13
|
-
static DATA_STATE = LogDataAction.LOG.length + 5;
|
|
7
|
+
export class Const {
|
|
8
|
+
static DATA_TEST_CASE_START = FuncLayerEngineCs.LogDataAction.LOG.length;
|
|
9
|
+
static DATA_TEST_CASE_HEADER = FuncLayerEngineCs.LogDataAction.LOG.length + 1;
|
|
10
|
+
static DATA_TEST_CASE_END = FuncLayerEngineCs.LogDataAction.LOG.length + 2;
|
|
11
|
+
static DATA_PHASE_START = FuncLayerEngineCs.LogDataAction.LOG.length + 3;
|
|
12
|
+
static DATA_PHASE_END = FuncLayerEngineCs.LogDataAction.LOG.length + 4;
|
|
13
|
+
static DATA_STATE = FuncLayerEngineCs.LogDataAction.LOG.length + 5;
|
|
14
14
|
|
|
15
15
|
static SIZE_PHASE_ID = 3;
|
|
16
16
|
static SIZE_STATE_INDEX = 3;
|
|
@@ -129,84 +129,51 @@ class Const {
|
|
|
129
129
|
}], [3, {
|
|
130
130
|
lineEventId: Const.EVENT_TLS
|
|
131
131
|
}]]);
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
Const.REVERS_DIRECTION_FALSE = 0;
|
|
138
|
-
Const.REVERS_DIRECTION_TRUE = 1;
|
|
139
|
-
|
|
140
|
-
Const.HIDE = 0;
|
|
141
|
-
Const.SHOW = 1;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
Const.CLOSED = 0;
|
|
145
|
-
Const.OPEN = 1;
|
|
146
|
-
|
|
147
|
-
Const.TEST_CASE_Y_BIAS = 10;
|
|
148
|
-
|
|
149
|
-
Const.ACTOR_X_MARGIN = 30;
|
|
150
|
-
Const.ACTOR_X_PADDING = 100;
|
|
151
|
-
Const.ACTOR_STATIC_ACTORS = 10;
|
|
152
|
-
|
|
153
|
-
Const.ACTOR_Y_BIAS = 10;
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
Const.ACTOR_EVENT_HEIGHT = 10;
|
|
157
|
-
Const.ACTOR_EVENT_HALF_HEIGHT = Const.ACTOR_EVENT_HEIGHT / 2;
|
|
158
|
-
Const.ACTOR_EVENT_Y_BIAS = Const.TEST_CASE_Y_BIAS + Const.ACTOR_Y_BIAS + Const.ACTOR_EVENT_HEIGHT;
|
|
132
|
+
|
|
133
|
+
static REVERS_DIRECTION_FALSE = 0;
|
|
134
|
+
static REVERS_DIRECTION_TRUE = 1;
|
|
159
135
|
|
|
160
|
-
|
|
161
|
-
|
|
136
|
+
static HIDE = 0;
|
|
137
|
+
static SHOW = 1;
|
|
162
138
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
Const.MESSAGE_EVENT_HEIGHT_DOUBLE = 2 * Const.MESSAGE_EVENT_HEIGHT;
|
|
166
|
-
Const.MESSAGE_EVENT_HEIGHT_ONE_AND_HALF = Const.MESSAGE_EVENT_HEIGHT + Const.MESSAGE_EVENT_HEIGHT_HALF;
|
|
139
|
+
static CLOSED = 0;
|
|
140
|
+
static OPEN = 1;
|
|
167
141
|
|
|
142
|
+
static TEST_CASE_Y_BIAS = 10;
|
|
168
143
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
144
|
+
static ACTOR_X_MARGIN = 30;
|
|
145
|
+
static ACTOR_X_PADDING = 100;
|
|
146
|
+
static ACTOR_STATIC_ACTORS = 10;
|
|
172
147
|
|
|
173
|
-
|
|
174
|
-
Const.PHASE_WIDTH = 40;
|
|
175
|
-
Const.PHASE_WIDTH_DOUBLE = 2 * Const.PHASE_WIDTH;
|
|
148
|
+
static ACTOR_Y_BIAS = 10;
|
|
176
149
|
|
|
177
|
-
|
|
178
|
-
Const.
|
|
150
|
+
static ACTOR_EVENT_HEIGHT = 10;
|
|
151
|
+
static ACTOR_EVENT_HALF_HEIGHT = Const.ACTOR_EVENT_HEIGHT / 2;
|
|
152
|
+
static ACTOR_EVENT_Y_BIAS = Const.TEST_CASE_Y_BIAS + Const.ACTOR_Y_BIAS + Const.ACTOR_EVENT_HEIGHT;
|
|
179
153
|
|
|
180
|
-
|
|
154
|
+
static STATE_EVENT_HEIGHT = 10;
|
|
155
|
+
static STATE_EVENT_HALF_HEIGHT = Const.STATE_EVENT_HEIGHT / 2;
|
|
181
156
|
|
|
182
|
-
|
|
183
|
-
|
|
157
|
+
static MESSAGE_EVENT_HEIGHT = 10;
|
|
158
|
+
static MESSAGE_EVENT_HEIGHT_HALF = Const.MESSAGE_EVENT_HEIGHT / 2;
|
|
159
|
+
static MESSAGE_EVENT_HEIGHT_DOUBLE = 2 * Const.MESSAGE_EVENT_HEIGHT;
|
|
160
|
+
static MESSAGE_EVENT_HEIGHT_ONE_AND_HALF = Const.MESSAGE_EVENT_HEIGHT + Const.MESSAGE_EVENT_HEIGHT_HALF;
|
|
184
161
|
|
|
185
|
-
|
|
162
|
+
static PHASE_X_BIAS = 10;
|
|
163
|
+
static PHASE_HEIGHT = 5;
|
|
164
|
+
static PHASE_HEIGHT_DOUBLE = 2 * Const.PHASE_HEIGHT;
|
|
186
165
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
'seq_dia_phase_exec',
|
|
191
|
-
'seq_dia_phase_post',
|
|
192
|
-
'seq_dia_phase_none'
|
|
193
|
-
];
|
|
166
|
+
static PHASE_Y_BIAS = 0.5;
|
|
167
|
+
static PHASE_WIDTH = 40;
|
|
168
|
+
static PHASE_WIDTH_DOUBLE = 2 * Const.PHASE_WIDTH;
|
|
194
169
|
|
|
195
|
-
Const.
|
|
196
|
-
|
|
197
|
-
'seq_dia_dark_phase_pre',
|
|
198
|
-
'seq_dia_dark_phase_exec',
|
|
199
|
-
'seq_dia_dark_phase_post',
|
|
200
|
-
'seq_dia_dark_phase_none'
|
|
201
|
-
];
|
|
170
|
+
static PHASE_BIAS_WIDTH = Const.PHASE_X_BIAS + Const.PHASE_WIDTH;
|
|
171
|
+
static PHASE_BIAS_WIDTH_DOUBLE = 2 * Const.PHASE_BIAS_WIDTH;
|
|
202
172
|
|
|
203
|
-
|
|
204
|
-
'Data',
|
|
205
|
-
'Precondition',
|
|
206
|
-
'Execution',
|
|
207
|
-
'Postcondition',
|
|
208
|
-
'None'
|
|
209
|
-
];*/
|
|
173
|
+
static HEADER_Y_HEIGHT = 30;
|
|
210
174
|
|
|
175
|
+
static LINE_WIDTH = 2.0;
|
|
176
|
+
static LINE_WIDTH_HALF = Const.LINE_WIDTH / 2;
|
|
211
177
|
|
|
212
|
-
|
|
178
|
+
static TEXT_BIAS = 17;
|
|
179
|
+
}
|
|
@@ -1,23 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
// SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
class ContentCache {
|
|
6
|
-
|
|
7
|
-
this.cache = new Map();
|
|
8
|
-
}
|
|
5
|
+
export class ContentCache {
|
|
6
|
+
static cache = new Map();
|
|
9
7
|
|
|
10
|
-
add(name, content) {
|
|
11
|
-
|
|
8
|
+
static add(name, content) {
|
|
9
|
+
ContentCache.cache.set(name, {
|
|
12
10
|
raw: true,
|
|
13
11
|
content: content
|
|
14
12
|
});
|
|
15
13
|
}
|
|
16
14
|
|
|
17
|
-
clear() {
|
|
18
|
-
|
|
15
|
+
static clear() {
|
|
16
|
+
ContentCache.cache.clear();
|
|
19
17
|
}
|
|
20
18
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
module.exports = new ContentCache();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
// SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
class DataLogRow {
|
|
5
|
+
export class DataLogRow {
|
|
6
6
|
static create(logRow, protocolIndex, phaseId) {
|
|
7
7
|
return {
|
|
8
8
|
logRow: logRow,
|
|
@@ -19,6 +19,3 @@ class DataLogRow {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
module.exports = DataLogRow;
|
|
@@ -1,60 +1,58 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
// SPDX-License-Identifier: MIT; Copyright (c) 2026 Hagnell Konsulting AB
|
|
3
3
|
|
|
4
|
-
import Const from './const';
|
|
4
|
+
import { Const } from './const';
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
class FilterSize {
|
|
7
|
+
export class FilterSize {
|
|
8
8
|
static MAX_COLUMNS = 20;
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
document.head.appendChild(this.filterCss);
|
|
25
|
-
this.styleSheet = this.filterCss.sheet;
|
|
10
|
+
static filterRules = new Map();
|
|
11
|
+
static eventMargin = 10;
|
|
12
|
+
static eventPadding = 80;
|
|
13
|
+
static eventWidth = 200;
|
|
14
|
+
static eventWidthHalf = FilterSize.eventWidth / 2;
|
|
15
|
+
static eventWidthQuarter = FilterSize.eventWidth / 4;
|
|
16
|
+
static eventWidthEighth = FilterSize.eventWidth / 8;
|
|
17
|
+
static eventWidthAndHalf = FilterSize.eventWidth + FilterSize.eventWidthHalf;
|
|
18
|
+
static event2Width = FilterSize.eventWidth + FilterSize.eventWidth;
|
|
19
|
+
static event2WidthAndHalf = FilterSize.eventWidth + FilterSize.event2Width;
|
|
20
|
+
static filterCss = document.createElement('style');
|
|
21
|
+
static styleSheet = FilterSize.filterCss.sheet;
|
|
22
|
+
static {
|
|
23
|
+
document.head.appendChild(FilterSize.filterCss);
|
|
26
24
|
}
|
|
27
25
|
|
|
28
|
-
update(eventMargin, eventPadding, eventWidth) {
|
|
29
|
-
if(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
26
|
+
static update(eventMargin, eventPadding, eventWidth) {
|
|
27
|
+
if(FilterSize.eventMargin !== eventMargin || FilterSize.eventPadding !== eventPadding || FilterSize.eventWidth !== eventWidth) {
|
|
28
|
+
FilterSize.eventMargin = eventMargin;
|
|
29
|
+
FilterSize.eventPadding = eventPadding;
|
|
30
|
+
FilterSize.eventWidth = eventWidth;
|
|
31
|
+
FilterSize.eventWidthHalf = FilterSize.eventWidth / 2;
|
|
32
|
+
FilterSize.eventWidthQuarter = FilterSize.eventWidth / 4;
|
|
33
|
+
FilterSize.eventWidthEighth = FilterSize.eventWidth / 8;
|
|
34
|
+
FilterSize.event2Width = FilterSize.eventWidth + FilterSize.eventWidth;
|
|
35
|
+
FilterSize.event2WidthAndHalf = FilterSize.eventWidthHalf + FilterSize.event2Width;
|
|
38
36
|
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
FilterSize._createFilter('seq_dia__event_column_left', 'div', `left:${eventMargin}px;width:${eventPadding}px`, -1);
|
|
38
|
+
FilterSize._createFilter('seq__dia_event_actor_line', 'div', `margin:0px ${FilterSize.eventWidthHalf - 1}px;`, -1);
|
|
41
39
|
let left = eventMargin + eventPadding;
|
|
42
40
|
for(let i = 0; i < FilterSize.MAX_COLUMNS; ++i) {
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
FilterSize._createFilter(`seq_dia__event_column_middle_${i}`, 'div', `left:${left}px;width:${eventWidth}px`, -1);
|
|
42
|
+
FilterSize._createFilter(`seq_dia__event_column_right_${i}`, 'div', `left:${left}px;width:${eventPadding}px`, -1);
|
|
45
43
|
left += eventWidth;
|
|
46
44
|
}
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
FilterSize.seq_dia__event_lrBorder = FilterSize._createFilter('seq_dia__event_lrBorder', 'div', `display:grid!important;width:${eventMargin + eventPadding}px`, -1);
|
|
46
|
+
FilterSize.seq_dia__event_Width = FilterSize._createFilter('seq_dia__event_Width', 'div', `display:grid!important;width:${eventWidth}px`, -1);
|
|
49
47
|
|
|
50
48
|
const newFilterCss = document.createElement('style');
|
|
51
|
-
document.head.replaceChild(newFilterCss,
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
document.head.replaceChild(newFilterCss, FilterSize.filterCss);
|
|
50
|
+
FilterSize.filterCss = newFilterCss;
|
|
51
|
+
FilterSize.styleSheet = FilterSize.filterCss.sheet;
|
|
54
52
|
|
|
55
|
-
const cssRules =
|
|
56
|
-
|
|
57
|
-
const index =
|
|
53
|
+
const cssRules = FilterSize.styleSheet.cssRules;
|
|
54
|
+
FilterSize.filterRules.forEach((filterRule) => {
|
|
55
|
+
const index = FilterSize.styleSheet.insertRule(`${filterRule.type}.${filterRule.name} { ${filterRule.rule} }`, cssRules.length);
|
|
58
56
|
filterRule.index = index;
|
|
59
57
|
});
|
|
60
58
|
return true;
|
|
@@ -64,18 +62,16 @@ class FilterSize {
|
|
|
64
62
|
}
|
|
65
63
|
}
|
|
66
64
|
|
|
67
|
-
getClassEventBorder() {
|
|
65
|
+
static getClassEventBorder() {
|
|
68
66
|
return 'seq_dia__event_lrBorder';
|
|
69
67
|
}
|
|
70
68
|
|
|
71
|
-
getClassEventWidth() {
|
|
69
|
+
static getClassEventWidth() {
|
|
72
70
|
return 'seq_dia__event_Width';
|
|
73
71
|
}
|
|
74
72
|
|
|
75
|
-
_createFilter(name, type, rule, index) {
|
|
76
|
-
|
|
73
|
+
static _createFilter(name, type, rule, index) {
|
|
74
|
+
FilterSize.filterRules.set(name, {name: name, type: type, rule: rule, index: index});
|
|
77
75
|
return name;
|
|
78
76
|
}
|
|
79
77
|
}
|
|
80
|
-
|
|
81
|
-
module.exports = new FilterSize();
|