@zenwave360/dsl 1.10.0-next.11.1 → 1.10.0-next.12.1

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/README.md CHANGED
@@ -94,20 +94,25 @@ Before 1.10.0 an integer was an opaque Kotlin `Long` object with compiler-genera
94
94
  (`{"h2_1":3,"i2_1":0}`) and the sign of a negative literal was dropped; JS consumers that worked
95
95
  around either should read the value directly. The JVM model is unchanged (`Long` and `String`).
96
96
 
97
- ZDL class diagrams are available as Mermaid text, on the JVM and in JavaScript:
97
+ The repository builds three modules:
98
98
 
99
- ```js
100
- import { generateMermaidFromZdl } from '@zenwave360/dsl';
101
- const mermaid = generateMermaidFromZdl(zdlContent); // starts with "classDiagram"
102
- ```
99
+ | Module | Maven artifact | Content |
100
+ | --- | --- | --- |
101
+ | `dsl-kotlin` | `io.zenwave360.dsl:dsl-kotlin` | ZDL and ZFL parsers, semantic models, event flow view models; npm `@zenwave360/dsl` |
102
+ | `dsl-views` | `io.zenwave360.dsl:dsl-views` | Mermaid diagrams from ZDL and ZFL models: class diagram, flows, and the architecture of several ZDL modules; see [dsl-views/README.md](dsl-views/README.md) |
103
+ | `dsl-docs` | `io.zenwave360.dsl:dsl-docs` | Markdown documentation with those diagrams, from ZDL, ZFL, OpenAPI and AsyncAPI files; see [dsl-docs/README.md](dsl-docs/README.md) |
104
+
105
+ ZDL class diagrams and ZFL flowcharts and sequence diagrams are Mermaid text from `dsl-views`:
103
106
 
104
107
  ```kotlin
105
- val mermaid = GenerateMermaidFromZdl().execute(zdlContent)
108
+ val classDiagram = GenerateMermaidFromZdl().execute(zdlContent)
109
+ val flowDiagrams = GenerateMermaidFromZfl().execute(zflContent)
106
110
  ```
107
111
 
108
- The diagram contains aggregates with their commands, entities with their fields, enums with their
112
+ The class diagram contains aggregates with their commands, entities with their fields, enums with their
109
113
  values, inputs, outputs and events, services with their commands, and relationships with their
110
114
  cardinality. It contains no `click`, `link` or `callback` directives and no remote references.
115
+ `dsl-views` and `dsl-docs` are not published to npm yet.
111
116
 
112
117
  The JS package loads in browsers and Web Workers as well as in Node.js: `./gradlew check`
113
118
  runs `jsBrowserTest` in a headless Chromium-based browser (Karma; set `CHROME_BIN`, or a local
@@ -53,8 +53,8 @@ import {
53
53
  toString1pkumu07cwy4m as toString_0,
54
54
  hashCodeq5arwsb9dgti as hashCode,
55
55
  UnsupportedOperationException_init_$Create$2mt8zfs17dxxt as UnsupportedOperationException_init_$Create$_0,
56
- KtSetjrjc7fhfd6b9 as KtSet,
57
56
  MutableCollection3jqcg879qsnhr as MutableCollection,
57
+ KtSetjrjc7fhfd6b9 as KtSet,
58
58
  IllegalStateException_init_$Create$2dr6rbnhpv20m as IllegalStateException_init_$Create$_0,
59
59
  noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
60
60
  copyOfRange1v9olvyjr7c0r as copyOfRange,
@@ -142,12 +142,12 @@ initMetadataForCompanion(Companion_6);
142
142
  initMetadataForClass(ATN, 'ATN');
143
143
  initMetadataForCompanion(Companion_7);
144
144
  initMetadataForClass(ATNConfig, 'ATNConfig');
145
- initMetadataForClass(Array2DHashSet, 'Array2DHashSet', Array2DHashSet, VOID, [KtSet, MutableCollection]);
145
+ initMetadataForClass(Array2DHashSet, 'Array2DHashSet', Array2DHashSet, VOID, [MutableCollection, KtSet]);
146
146
  initMetadataForClass(AbstractConfigHashSet, 'AbstractConfigHashSet', VOID, Array2DHashSet);
147
147
  initMetadataForClass(ConfigHashSet, 'ConfigHashSet', ConfigHashSet, AbstractConfigHashSet);
148
148
  initMetadataForClass(AbstractEqualityComparator, 'AbstractEqualityComparator');
149
149
  initMetadataForObject(ConfigEqualityComparator, 'ConfigEqualityComparator', VOID, AbstractEqualityComparator);
150
- initMetadataForClass(ATNConfigSet, 'ATNConfigSet', ATNConfigSet, VOID, [KtSet, MutableCollection]);
150
+ initMetadataForClass(ATNConfigSet, 'ATNConfigSet', ATNConfigSet, VOID, [MutableCollection, KtSet]);
151
151
  initMetadataForCompanion(Companion_8);
152
152
  initMetadataForClass(ATNDeserializationOptions, 'ATNDeserializationOptions', ATNDeserializationOptions_init_$Create$);
153
153
  initMetadataForCompanion(Companion_9);
@@ -2522,7 +2522,7 @@ protoOf(ATNConfigSet).fw = function (elements) {
2522
2522
  }
2523
2523
  return false;
2524
2524
  };
2525
- protoOf(ATNConfigSet).q = function (elements) {
2525
+ protoOf(ATNConfigSet).p = function (elements) {
2526
2526
  return this.fw(elements);
2527
2527
  };
2528
2528
  protoOf(ATNConfigSet).equals = function (other) {
@@ -6772,12 +6772,12 @@ function AND(a, b) {
6772
6772
  Operator.call(this);
6773
6773
  var operands = LinkedHashSet_init_$Create$();
6774
6774
  if (a instanceof AND) {
6775
- operands.q(asList(a.j1b_1));
6775
+ operands.p(asList(a.j1b_1));
6776
6776
  } else {
6777
6777
  operands.f(a);
6778
6778
  }
6779
6779
  if (b instanceof AND) {
6780
- operands.q(asList(b.j1b_1));
6780
+ operands.p(asList(b.j1b_1));
6781
6781
  } else {
6782
6782
  operands.f(b);
6783
6783
  }
@@ -6860,12 +6860,12 @@ function OR(a, b) {
6860
6860
  Operator.call(this);
6861
6861
  var operands = LinkedHashSet_init_$Create$();
6862
6862
  if (a instanceof OR) {
6863
- operands.q(asList(a.k1b_1));
6863
+ operands.p(asList(a.k1b_1));
6864
6864
  } else {
6865
6865
  operands.f(a);
6866
6866
  }
6867
6867
  if (b instanceof OR) {
6868
- operands.q(asList(b.k1b_1));
6868
+ operands.p(asList(b.k1b_1));
6869
6869
  } else {
6870
6870
  operands.f(b);
6871
6871
  }
@@ -7731,7 +7731,7 @@ protoOf(Array2DHashSet).fv = function (elements) {
7731
7731
  }
7732
7732
  return changed;
7733
7733
  };
7734
- protoOf(Array2DHashSet).q = function (elements) {
7734
+ protoOf(Array2DHashSet).p = function (elements) {
7735
7735
  return this.fv(elements);
7736
7736
  };
7737
7737
  protoOf(Array2DHashSet).toString = function () {