@aj-shadow/z-abs-complayer-markup-client 0.0.0-aj-beta.221

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 (208) hide show
  1. package/.gitattributes +26 -0
  2. package/LICENSE.txt +96 -0
  3. package/README.md +5 -0
  4. package/npm-shrinkwrap.json +13 -0
  5. package/package.json +10 -0
  6. package/project/client/_build/Bundle-CompLayer-Markup-client.bld +40 -0
  7. package/project/client/_build/Client-CompLayer-Markup-client-jsx.bld +10 -0
  8. package/project/client/_build/Client-CompLayer-Markup-client.bld +10 -0
  9. package/project/client/_build/Client-css-CompLayer-Markup-bundle.bld +9 -0
  10. package/project/client/_build/z-abs-complayer-markup-client.prj +36 -0
  11. package/project/client/actions/action-style.js +17 -0
  12. package/project/client/actions/data-action-style.js +13 -0
  13. package/project/client/css/markup_addressing.css +30 -0
  14. package/project/client/css/markup_flowchart.css +53 -0
  15. package/project/client/css/markup_general.css +4 -0
  16. package/project/client/css/markup_image.css +10 -0
  17. package/project/client/css/markup_license.css +107 -0
  18. package/project/client/css/markup_login.css +201 -0
  19. package/project/client/css/markup_node_diagram.css +51 -0
  20. package/project/client/css/markup_sequence_diagram.css +6 -0
  21. package/project/client/css/markup_state.css +5 -0
  22. package/project/client/css/markup_table.css +57 -0
  23. package/project/client/css/markup_tc.css +32 -0
  24. package/project/client/css/markup_ts.css +36 -0
  25. package/project/client/data/addresses/data-addresses-client-address-global.js +20 -0
  26. package/project/client/data/addresses/data-addresses-client-address-local.js +20 -0
  27. package/project/client/data/addresses/data-addresses-client-interface-global.js +17 -0
  28. package/project/client/data/addresses/data-addresses-client-interface-local.js +17 -0
  29. package/project/client/data/addresses/data-addresses-dns-global.js +18 -0
  30. package/project/client/data/addresses/data-addresses-dns-local.js +19 -0
  31. package/project/client/data/addresses/data-addresses-dst-global.js +20 -0
  32. package/project/client/data/addresses/data-addresses-dst-local.js +20 -0
  33. package/project/client/data/addresses/data-addresses-network-interface-global.js +17 -0
  34. package/project/client/data/addresses/data-addresses-network-interface-local.js +17 -0
  35. package/project/client/data/addresses/data-addresses-ports-global.js +18 -0
  36. package/project/client/data/addresses/data-addresses-ports-local.js +18 -0
  37. package/project/client/data/addresses/data-addresses-server-address-global.js +20 -0
  38. package/project/client/data/addresses/data-addresses-server-address-local.js +20 -0
  39. package/project/client/data/addresses/data-addresses-server-interface-global.js +17 -0
  40. package/project/client/data/addresses/data-addresses-server-interface-local.js +17 -0
  41. package/project/client/data/addresses/data-addresses-src-global.js +21 -0
  42. package/project/client/data/addresses/data-addresses-src-local.js +21 -0
  43. package/project/client/data/addresses/data-addresses-srv-global.js +20 -0
  44. package/project/client/data/addresses/data-addresses-srv-local.js +20 -0
  45. package/project/client/data/addresses/data-addresses-sut-address-global.js +20 -0
  46. package/project/client/data/addresses/data-addresses-sut-address-local.js +20 -0
  47. package/project/client/data/addresses/data-addresses-sut-interface-global.js +19 -0
  48. package/project/client/data/addresses/data-addresses-sut-interface-local.js +19 -0
  49. package/project/client/data/data-chart/data-chart-axis.js +13 -0
  50. package/project/client/data/data-chart/data-chart-grid.js +14 -0
  51. package/project/client/data/data-chart/data-chart-line/data-chart-line-config.js +17 -0
  52. package/project/client/data/data-chart/data-chart-line/data-chart-line.js +41 -0
  53. package/project/client/data/data-config.js +14 -0
  54. package/project/client/data/data-constructor.js +18 -0
  55. package/project/client/data/data-content/data-content-audio-global.js +18 -0
  56. package/project/client/data/data-content/data-content-audio-local.js +18 -0
  57. package/project/client/data/data-content/data-content-documents-global.js +18 -0
  58. package/project/client/data/data-content/data-content-documents-local.js +18 -0
  59. package/project/client/data/data-content/data-content-image-global.js +21 -0
  60. package/project/client/data/data-content/data-content-image-local.js +21 -0
  61. package/project/client/data/data-content/data-content-other-global.js +20 -0
  62. package/project/client/data/data-content/data-content-other-local.js +20 -0
  63. package/project/client/data/data-content/data-content-text-global.js +20 -0
  64. package/project/client/data/data-content/data-content-text-local.js +20 -0
  65. package/project/client/data/data-content/data-content-video-global.js +20 -0
  66. package/project/client/data/data-content/data-content-video-local.js +20 -0
  67. package/project/client/data/data-data.js +28 -0
  68. package/project/client/data/data-dependencies/data-dependencies.js +17 -0
  69. package/project/client/data/data-documentation/data-documentation-navigation.js +15 -0
  70. package/project/client/data/data-documentation/data-documentation.js +20 -0
  71. package/project/client/data/data-flowchart/data-flowchart-block.js +33 -0
  72. package/project/client/data/data-flowchart/data-flowchart-connection.js +17 -0
  73. package/project/client/data/data-flowchart/data-flowchart.js +30 -0
  74. package/project/client/data/data-html/data-html-anchor.js +12 -0
  75. package/project/client/data/data-html/data-html-br.js +11 -0
  76. package/project/client/data/data-html/data-html-button.js +15 -0
  77. package/project/client/data/data-html/data-html-log-start.js +12 -0
  78. package/project/client/data/data-html/data-html-log-stop.js +13 -0
  79. package/project/client/data/data-html/data-html-log.js +16 -0
  80. package/project/client/data/data-html/data-html-toolbar.js +19 -0
  81. package/project/client/data/data-image/data-image.js +20 -0
  82. package/project/client/data/data-lab/data-lab-interface-client.js +19 -0
  83. package/project/client/data/data-lab/data-lab-interface-server.js +19 -0
  84. package/project/client/data/data-lab/data-lab-interface-sut.js +20 -0
  85. package/project/client/data/data-lab/data-lab-network.js +31 -0
  86. package/project/client/data/data-lab/data-lab.js +21 -0
  87. package/project/client/data/data-licenses/data-licenses.js +16 -0
  88. package/project/client/data/data-node-diagram/data-node-diagram-config.js +21 -0
  89. package/project/client/data/data-node-diagram/data-node-diagram-connection.js +18 -0
  90. package/project/client/data/data-node-diagram/data-node-diagram-group.js +16 -0
  91. package/project/client/data/data-node-diagram/data-node-diagram-node.js +22 -0
  92. package/project/client/data/data-node-diagram/data-node-diagram.js +47 -0
  93. package/project/client/data/data-repos/data-repos-content-local.js +15 -0
  94. package/project/client/data/data-repos/data-repos-data-local.js +15 -0
  95. package/project/client/data/data-sequence-diagram/data-sequence-diagram-config.js +22 -0
  96. package/project/client/data/data-sequence-diagram/data-sequence-diagram-message.js +17 -0
  97. package/project/client/data/data-sequence-diagram/data-sequence-diagram-node.js +11 -0
  98. package/project/client/data/data-sequence-diagram/data-sequence-diagram.js +32 -0
  99. package/project/client/data/data-state-machine/data-state-machine-config.js +17 -0
  100. package/project/client/data/data-state-machine/data-state-machine-state.js +29 -0
  101. package/project/client/data/data-state-machine/data-state-machine-transition.js +18 -0
  102. package/project/client/data/data-state-machine/data-state-machine.js +37 -0
  103. package/project/client/data/data-system-under-test/data-system-under-test-instances.js +15 -0
  104. package/project/client/data/data-system-under-test/data-system-under-test-nodes.js +18 -0
  105. package/project/client/data/data-table/data-table-config.js +21 -0
  106. package/project/client/data/data-table-key-value.js +56 -0
  107. package/project/client/data/data-test-case/data-actor.js +282 -0
  108. package/project/client/data/data-test-case/data-test-case-settings.js +49 -0
  109. package/project/client/data/data-test-case/data-test-case.js +19 -0
  110. package/project/client/data/data-test-case/data-test-data-iteration.js +54 -0
  111. package/project/client/data/data-test-case/data-test-data-test-case.js +16 -0
  112. package/project/client/data/data-test-case/data-verification-test-case.js +24 -0
  113. package/project/client/data/data-test-data/data-test-data-environment-global.js +18 -0
  114. package/project/client/data/data-test-data/data-test-data-environment-local.js +18 -0
  115. package/project/client/data/data-test-data/data-test-data-environment-static.js +16 -0
  116. package/project/client/data/data-test-data/data-test-data-general-global.js +18 -0
  117. package/project/client/data/data-test-data/data-test-data-general-local.js +18 -0
  118. package/project/client/data/data-test-data/data-test-data-output-global.js +18 -0
  119. package/project/client/data/data-test-data/data-test-data-output-local.js +18 -0
  120. package/project/client/data/data-test-data/data-test-data-system-global.js +18 -0
  121. package/project/client/data/data-test-data/data-test-data-system-local.js +18 -0
  122. package/project/client/data/data-test-suite/data-test-suite-abstraction.js +72 -0
  123. package/project/client/data/data-test-suite/data-test-suite.js +15 -0
  124. package/project/client/data/data-tree/data-tree-node.js +17 -0
  125. package/project/client/data/data-tree/data-tree.js +13 -0
  126. package/project/client/markup/markup-addresses/markup-addresses-client-address.js +31 -0
  127. package/project/client/markup/markup-addresses/markup-addresses-client-interface.js +31 -0
  128. package/project/client/markup/markup-addresses/markup-addresses-dns.js +32 -0
  129. package/project/client/markup/markup-addresses/markup-addresses-dst.js +31 -0
  130. package/project/client/markup/markup-addresses/markup-addresses-network-interface.js +31 -0
  131. package/project/client/markup/markup-addresses/markup-addresses-ports.js +31 -0
  132. package/project/client/markup/markup-addresses/markup-addresses-server-address.js +31 -0
  133. package/project/client/markup/markup-addresses/markup-addresses-server-interface.js +31 -0
  134. package/project/client/markup/markup-addresses/markup-addresses-src.js +31 -0
  135. package/project/client/markup/markup-addresses/markup-addresses-srv.js +31 -0
  136. package/project/client/markup/markup-addresses/markup-addresses-sut-address.js +31 -0
  137. package/project/client/markup/markup-addresses/markup-addresses-sut-interface.js +31 -0
  138. package/project/client/markup/markup-chart/markup-chart-line.js +92 -0
  139. package/project/client/markup/markup-content/markup-content-audio.js +31 -0
  140. package/project/client/markup/markup-content/markup-content-documents.js +31 -0
  141. package/project/client/markup/markup-content/markup-content-image.js +31 -0
  142. package/project/client/markup/markup-content/markup-content-other.js +31 -0
  143. package/project/client/markup/markup-content/markup-content-text.js +31 -0
  144. package/project/client/markup/markup-content/markup-content-video.js +31 -0
  145. package/project/client/markup/markup-dependencies/markup-dependencies.js +30 -0
  146. package/project/client/markup/markup-documentation/markup-documentation-anchor.js +37 -0
  147. package/project/client/markup/markup-documentation/markup-documentation-api-status.js +67 -0
  148. package/project/client/markup/markup-documentation/markup-documentation-code.js +20 -0
  149. package/project/client/markup/markup-documentation/markup-documentation-div.js +34 -0
  150. package/project/client/markup/markup-documentation/markup-documentation-documentation-status.js +67 -0
  151. package/project/client/markup/markup-documentation/markup-documentation-embed.js +23 -0
  152. package/project/client/markup/markup-documentation/markup-documentation-html.js +139 -0
  153. package/project/client/markup/markup-documentation/markup-documentation-ie.js +21 -0
  154. package/project/client/markup/markup-documentation/markup-documentation-image.js +46 -0
  155. package/project/client/markup/markup-documentation/markup-documentation-lab.js +19 -0
  156. package/project/client/markup/markup-documentation/markup-documentation-local-note.js +33 -0
  157. package/project/client/markup/markup-documentation/markup-documentation-navigation.js +109 -0
  158. package/project/client/markup/markup-documentation/markup-documentation-page.js +262 -0
  159. package/project/client/markup/markup-documentation/markup-documentation-ref.js +28 -0
  160. package/project/client/markup/markup-documentation/markup-documentation-result.js +21 -0
  161. package/project/client/markup/markup-documentation/markup-documentation-state-machine.js +194 -0
  162. package/project/client/markup/markup-documentation/markup-documentation.js +74 -0
  163. package/project/client/markup/markup-flowchart.js +264 -0
  164. package/project/client/markup/markup-lab.js +116 -0
  165. package/project/client/markup/markup-licenses/markup-licenses.js +29 -0
  166. package/project/client/markup/markup-node-diagram.js +435 -0
  167. package/project/client/markup/markup-parse-helper.js +26 -0
  168. package/project/client/markup/markup-pattern-config.js +53 -0
  169. package/project/client/markup/markup-pattern-data.js +50 -0
  170. package/project/client/markup/markup-pattern-function.js +47 -0
  171. package/project/client/markup/markup-repos/markup-repos.js +31 -0
  172. package/project/client/markup/markup-sequence-diagram.js +466 -0
  173. package/project/client/markup/markup-system-under-test/markup-system-under-test-instances.js +29 -0
  174. package/project/client/markup/markup-system-under-test/markup-system-under-test-nodes.js +30 -0
  175. package/project/client/markup/markup-table-key-value-parse.js +25 -0
  176. package/project/client/markup/markup-table-key-value-stringify.js +91 -0
  177. package/project/client/markup/markup-table-key-value.js +18 -0
  178. package/project/client/markup/markup-table-name-value.js +101 -0
  179. package/project/client/markup/markup-table.js +85 -0
  180. package/project/client/markup/markup-tables-parser.js +122 -0
  181. package/project/client/markup/markup-test-case/markup-test-case.js +67 -0
  182. package/project/client/markup/markup-test-data/markup-test-data-environment.js +31 -0
  183. package/project/client/markup/markup-test-data/markup-test-data-general.js +31 -0
  184. package/project/client/markup/markup-test-data/markup-test-data-output.js +31 -0
  185. package/project/client/markup/markup-test-data/markup-test-data-system.js +31 -0
  186. package/project/client/markup/markup-test-suite/markup-test-suite.js +40 -0
  187. package/project/client/react-components/helper/line-data.js +16 -0
  188. package/project/client/react-components/helper/line-object.js +22 -0
  189. package/project/client/react-components/helper/scroll-data.js +74 -0
  190. package/project/client/react-components/markup/component-chart/component-image-chart-line.jsx +203 -0
  191. package/project/client/react-components/markup/component-code.jsx +50 -0
  192. package/project/client/react-components/markup/component-document.jsx +105 -0
  193. package/project/client/react-components/markup/component-documentation-anchor.jsx +47 -0
  194. package/project/client/react-components/markup/component-embed.jsx +48 -0
  195. package/project/client/react-components/markup/component-image-flowchart.jsx +389 -0
  196. package/project/client/react-components/markup/component-image-image.jsx +32 -0
  197. package/project/client/react-components/markup/component-image-lab.jsx +696 -0
  198. package/project/client/react-components/markup/component-image-node-diagram.jsx +506 -0
  199. package/project/client/react-components/markup/component-image-result.jsx +22 -0
  200. package/project/client/react-components/markup/component-image-sequence-diagram.jsx +645 -0
  201. package/project/client/react-components/markup/component-image-state-machine.jsx +633 -0
  202. package/project/client/react-components/markup/component-image-table.jsx +96 -0
  203. package/project/client/react-components/markup/component-local-note.jsx +99 -0
  204. package/project/client/react-components/markup/component-markup-remarkable.jsx +79 -0
  205. package/project/client/react-components/markup/component-markup.jsx +1036 -0
  206. package/project/client/react-components/markup/component-table-data-table.jsx +146 -0
  207. package/project/client/stores/style-store.js +96 -0
  208. package/project/z-abs-complayer-markup-client.tree +239 -0
@@ -0,0 +1,17 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class DataFlowchartConnection {
6
+ constructor(data, type, connectionType, fromBlock, toBlock) {
7
+ this.data = data;
8
+ this.type = type;
9
+ this.connectionType = connectionType;
10
+ this.fromBlockName = fromBlock ? fromBlock.name : '';
11
+ this.toBlockName = toBlock ? toBlock.name : '';
12
+ fromBlock && fromBlock.addOut();
13
+ toBlock && toBlock.addIn();
14
+ }
15
+ }
16
+
17
+ module.exports = DataFlowchartConnection;
@@ -0,0 +1,30 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class DataFlowchart {
6
+ constructor(title = '', blockRows = [], connections = []) {
7
+ this.title = title;
8
+ this.blockRows = blockRows;
9
+ this.connections = connections;
10
+ }
11
+
12
+ setTitle(title) {
13
+ this.title = title;
14
+ }
15
+
16
+ addBlockRow() {
17
+ this.blockRows.push([]);
18
+ }
19
+
20
+ addBlock(block) {
21
+ this.blockRows[this.blockRows.length - 1].push(block);
22
+ block.addIndex(this.blockRows[this.blockRows.length - 1].length -1, this.blockRows.length - 1);
23
+ }
24
+
25
+ addConnection(connection) {
26
+ this.connections.push(connection);
27
+ }
28
+ }
29
+
30
+ module.exports = DataFlowchart;
@@ -0,0 +1,12 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class DataHtmlAnchor {
6
+ constructor(link) {
7
+ this.type = 'anchor';
8
+ this.link = link;
9
+ }
10
+ }
11
+
12
+ module.exports = DataHtmlAnchor;
@@ -0,0 +1,11 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class DataHtmlBr {
6
+ constructor() {
7
+ this.type = 'br';
8
+ }
9
+ }
10
+
11
+ module.exports = DataHtmlBr;
@@ -0,0 +1,15 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class DataHtmlButton {
6
+ constructor(icon, colorMark, text) {
7
+ this.type = 'button';
8
+ this.icon = icon;
9
+ this.colorMark = colorMark;
10
+ this.text = text;
11
+ }
12
+ }
13
+
14
+
15
+ module.exports = DataHtmlButton;
@@ -0,0 +1,12 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class DataHtmlLogStart {
6
+ constructor(date) {
7
+ this.type = 'log_start';
8
+ this.date = date;
9
+ }
10
+ }
11
+
12
+ module.exports = DataHtmlLogStart;
@@ -0,0 +1,13 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class DataHtmlLogStop {
6
+ constructor(result, duration) {
7
+ this.type = 'log_end';
8
+ this.result = result;
9
+ this.duration = duration;
10
+ }
11
+ }
12
+
13
+ module.exports = DataHtmlLogStop;
@@ -0,0 +1,16 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class DataHtmlLog {
6
+ constructor(logType, date, actor, log, fileName) {
7
+ this.type = 'log';
8
+ this.logType = logType;
9
+ this.date = date;
10
+ this.actor = actor;
11
+ this.log = log;
12
+ this.fileName = fileName;
13
+ }
14
+ }
15
+
16
+ module.exports = DataHtmlLog;
@@ -0,0 +1,19 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class DataHtmlToolbar {
6
+ constructor(...buttons) {
7
+ this.type = 'toolbar';
8
+ this.buttonGroups = [];
9
+ buttons?.forEach((button) => {
10
+
11
+ });
12
+ }
13
+
14
+ _addGroup() {
15
+
16
+ }
17
+ }
18
+
19
+ module.exports = DataHtmlToolbar;
@@ -0,0 +1,20 @@
1
+
2
+ 'use strict';
3
+
4
+ class DataImage {
5
+ constructor() {
6
+ this.src = '';
7
+ this.width = '';
8
+ this.height = '';
9
+ this.float = '';
10
+ }
11
+
12
+ addParameter(name, value) {
13
+ const member = this[name];
14
+ if(undefined !== member) {
15
+ this[name] = value;
16
+ }
17
+ }
18
+ }
19
+
20
+ module.exports = DataImage;
@@ -0,0 +1,19 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class DataLabInterfaceClient {
6
+ constructor(name, network, type, address, netmask, isStatic, external, valid, reduced) {
7
+ this.name = name ? name : 'actor1';
8
+ this.network = network ? network : 'N1';
9
+ this.type = type ? type : 'ip';
10
+ this.address = address ? address : '192.168.0.1';
11
+ this.netmask = netmask ? netmask : '255.255.0.0';
12
+ this.static = isStatic ? ('true' === isStatic ? true : false) : false;
13
+ this.external = external ? ('true' === external ? true : false) : false;
14
+ this.valid = valid ? ('true' === valid ? true : false) : false;
15
+ this.reduced = reduced ? ('true' === reduced ? true : false) : false;
16
+ }
17
+ }
18
+
19
+ module.exports = DataLabInterfaceClient;
@@ -0,0 +1,19 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class DataLabInterfaceServer {
6
+ constructor(name, network, type, address, netmask, isStatic, external, valid, reduced) {
7
+ this.name = name ? name : 'actor1';
8
+ this.network = network ? network : 'N1';
9
+ this.type = type ? type : 'ip';
10
+ this.address = address ? address : '192.168.0.1';
11
+ this.netmask = netmask ? netmask : '255.255.0.0';
12
+ this.static = isStatic ? ('true' === isStatic ? true : false) : false;
13
+ this.external = external ? ('true' === external ? true : false) : false;
14
+ this.valid = valid ? ('true' === valid ? true : false) : false;
15
+ this.reduced = reduced ? ('true' === reduced ? true : false) : false;
16
+ }
17
+ }
18
+
19
+ module.exports = DataLabInterfaceServer;
@@ -0,0 +1,20 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class DataLabInterfaceSut {
6
+ constructor(name, network, direction, type, address, netmask, isStatic, external, valid, reduced) {
7
+ this.name = name ? name : 'actor1';
8
+ this.network = network ? network : 'N1';
9
+ this.direction = direction ? direction : 'server/client';
10
+ this.type = type ? type : 'ip';
11
+ this.address = address ? address : '192.168.0.1';
12
+ this.netmask = netmask ? netmask : '255.255.0.0';
13
+ this.static = isStatic ? ('true' === isStatic ? true : false) : false;
14
+ this.external = external ? ('true' === external ? true : false) : false;
15
+ this.valid = valid ? ('true' === valid ? true : false) : false;
16
+ this.reduced = reduced ? ('true' === reduced ? true : false) : false;
17
+ }
18
+ }
19
+
20
+ module.exports = DataLabInterfaceSut;
@@ -0,0 +1,31 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class DataLabNetworks {
6
+ constructor(networkName, family, subnet, description, valid, reduced) {
7
+ this.networkName = networkName ? networkName : 'N1';
8
+ this.family = 'IPv6' === family ? 'IPv6' : 'IPv4';
9
+ this.subnet = subnet;
10
+ this.description = description;
11
+ this.valid = 'false' === valid ? false : true;
12
+ this.reduced = 'true' === reduced ? true : false;
13
+ this.clients = [];
14
+ this.suts = [];
15
+ this.servers = [];
16
+ }
17
+
18
+ addClient(client) {
19
+ this.clients.push(client);
20
+ }
21
+
22
+ addSut(sut) {
23
+ this.suts.push(sut);
24
+ }
25
+
26
+ addServer(server) {
27
+ this.servers.push(server);
28
+ }
29
+ }
30
+
31
+ module.exports = DataLabNetworks;
@@ -0,0 +1,21 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class DataLab {
6
+ constructor(networks) {
7
+ this.networks = undefined !== networks ? networks : [];
8
+ this.networksMap = new Map(undefined !== networks ? networks.map((network) => {return [network.name, network]}) : undefined);
9
+ }
10
+
11
+ addNetwork(network) {
12
+ this.networks.push(network);
13
+ this.networksMap.set(network.name, network);
14
+ }
15
+
16
+ getNetwork(name) {
17
+ return this.networksMap.get(name);
18
+ }
19
+ }
20
+
21
+ module.exports = DataLab;
@@ -0,0 +1,16 @@
1
+
2
+ 'use strict';
3
+
4
+ const DataTableKeyValue = require('../data-table-key-value');
5
+
6
+
7
+ class DataLicenses extends DataTableKeyValue {
8
+ constructor(name, category, link) {
9
+ super();
10
+ this.name = name;
11
+ this.category = category;
12
+ this.link = link;
13
+ }
14
+ }
15
+
16
+ module.exports = DataLicenses;
@@ -0,0 +1,21 @@
1
+
2
+ 'use strict';
3
+
4
+ const DataConfig = require('../data-config');
5
+
6
+
7
+ class DataNodeDiagramConfig extends DataConfig {
8
+ constructor(parameters) {
9
+ super();
10
+ this.nodeWidth = 70;
11
+ this.nodeHeight = 70;
12
+ this.nodeWidthBetween = 25;
13
+ this.nodeHeightBetween = 25;
14
+ this.widthBias = 30;
15
+ this.heightBias = 30;
16
+ this.border = true;
17
+ this.backgroundColor = 'default';
18
+ }
19
+ }
20
+
21
+ module.exports = DataNodeDiagramConfig;
@@ -0,0 +1,18 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class DataNodeDiagramConnection {
6
+ constructor(data, type, connectionType, fromNode, toNode, fromPosition, toPosition, slope) {
7
+ this.data = data;
8
+ this.type = type;
9
+ this.connectionType = connectionType;
10
+ this.fromNodeName = fromNode ? fromNode.name : '';
11
+ this.toNodeName = toNode ? toNode.name : '';
12
+ this.fromPosition = fromPosition ? fromPosition : '';
13
+ this.toPosition = toPosition ? toPosition : '';
14
+ this.slope = slope;
15
+ }
16
+ }
17
+
18
+ module.exports = DataNodeDiagramConnection;
@@ -0,0 +1,16 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class DataNodeDiagramGroup {
6
+ constructor(name, leftStartIndex, leftStopIndex, topStartIndex, topStopIndex, color) {
7
+ this.name = name;
8
+ this.leftStartIndex = leftStartIndex;
9
+ this.leftStopIndex = leftStopIndex;
10
+ this.topStartIndex = topStartIndex;
11
+ this.topStopIndex = topStopIndex;
12
+ this.color = color;
13
+ }
14
+ }
15
+
16
+ module.exports = DataNodeDiagramGroup;
@@ -0,0 +1,22 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class DataNodeDiagramNode {
6
+ constructor(name, type, corners, color) {
7
+ this.name = name;
8
+ this.type = type;
9
+ this.corners = corners;
10
+ this.color = color;
11
+ this.xIndex = -1;
12
+ this.yIndex = -1;
13
+ }
14
+
15
+ addIndex(xIndex, yIndex) {
16
+ this.xIndex = xIndex;
17
+ this.yIndex = yIndex;
18
+ }
19
+ }
20
+
21
+
22
+ module.exports = DataNodeDiagramNode;
@@ -0,0 +1,47 @@
1
+
2
+ 'use strict';
3
+
4
+ const DataNodeDiagramConfig = require('./data-node-diagram-config');
5
+
6
+
7
+ class DataNodeDiagram {
8
+ constructor(title = '', nodeRows = [], connections = [], groups = [], xml = null) {
9
+ this.title = title;
10
+ this.nodeRows = nodeRows;
11
+ this.connections = connections;
12
+ this.groups = groups;
13
+ this.dataNodeDiagramConfig = new DataNodeDiagramConfig();
14
+ this.xml = xml;
15
+ }
16
+
17
+ setTitle(title) {
18
+ this.title = title;
19
+ }
20
+
21
+ addNodeRow() {
22
+ this.nodeRows.push([]);
23
+ }
24
+
25
+ addNode(node) {
26
+ this.nodeRows[this.nodeRows.length - 1].push(node);
27
+ node.addIndex(this.nodeRows[this.nodeRows.length - 1].length -1, this.nodeRows.length - 1);
28
+ }
29
+
30
+ addConnection(connection) {
31
+ this.connections.push(connection);
32
+ }
33
+
34
+ addGroup(group) {
35
+ this.groups.push(group);
36
+ }
37
+
38
+ addConfig(name, value) {
39
+ this.dataNodeDiagramConfig.addConfig(name, value);
40
+ }
41
+
42
+ addXml(xml) {
43
+ this.xml = xml;
44
+ }
45
+ }
46
+
47
+ module.exports = DataNodeDiagram;
@@ -0,0 +1,15 @@
1
+
2
+ 'use strict';
3
+
4
+ const DataTableKeyValue = require('../data-table-key-value');
5
+
6
+
7
+ class DataReposContentLocal extends DataTableKeyValue {
8
+ constructor(name, url) {
9
+ super();
10
+ this.name = name;
11
+ this.url = url;
12
+ }
13
+ }
14
+
15
+ module.exports = DataReposContentLocal;
@@ -0,0 +1,15 @@
1
+
2
+ 'use strict';
3
+
4
+ const DataTableKeyValue = require('../data-table-key-value');
5
+
6
+
7
+ class DataReposDataLocal extends DataTableKeyValue {
8
+ constructor(name, url) {
9
+ super();
10
+ this.name = name;
11
+ this.url = url;
12
+ }
13
+ }
14
+
15
+ module.exports = DataReposDataLocal;
@@ -0,0 +1,22 @@
1
+
2
+ 'use strict';
3
+
4
+ const DataConfig = require('../data-config');
5
+
6
+
7
+ class DataSequenceDiagramConfig extends DataConfig {
8
+ constructor(parameters) {
9
+ super();
10
+ this.nodeWidth = 150;
11
+ this.nodeMessageHeight = 17;
12
+ this.nodeEventHeight = 10;
13
+ this.nodeCommentHeight = 26;
14
+ this.widthBias = 30;
15
+ this.heightBias = 30;
16
+ this.lineNumbers = false;
17
+ this.border = true;
18
+ this.backgroundColor = 'default';
19
+ }
20
+ }
21
+
22
+ module.exports = DataSequenceDiagramConfig;
@@ -0,0 +1,17 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class DataSequenceDiagramMessage {
6
+ constructor(data, type, nodes, messageType, height, fromIndex, toIndex) {
7
+ this.data = data;
8
+ this.type = type;
9
+ this.nodes = nodes;
10
+ this.messageType = messageType;
11
+ this.height = height;
12
+ this.fromIndex = fromIndex;
13
+ this.toIndex = toIndex;
14
+ }
15
+ }
16
+
17
+ module.exports = DataSequenceDiagramMessage;
@@ -0,0 +1,11 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class DataSequenceDiagramNode {
6
+ constructor(name) {
7
+ this.name = name;
8
+ }
9
+ }
10
+
11
+ module.exports = DataSequenceDiagramNode;
@@ -0,0 +1,32 @@
1
+
2
+ 'use strict';
3
+
4
+ const DataSequenceDiagramConfig = require('./data-sequence-diagram-config');
5
+
6
+
7
+ class DataSequenceDiagram {
8
+ constructor(title = '', nodes = [], messages = []) {
9
+ this.title = title;
10
+ this.nodes = nodes;
11
+ this.messages = messages;
12
+ this.dataSequenceDiagramConfig = new DataSequenceDiagramConfig();
13
+ }
14
+
15
+ setTitle(title) {
16
+ this.title = title;
17
+ }
18
+
19
+ addNode(node) {
20
+ this.nodes.push(node);
21
+ }
22
+
23
+ addMessage(message) {
24
+ this.messages.push(message);
25
+ }
26
+
27
+ addConfig(name, value) {
28
+ this.dataSequenceDiagramConfig.addConfig(name, value);
29
+ }
30
+ }
31
+
32
+ module.exports = DataSequenceDiagram;
@@ -0,0 +1,17 @@
1
+
2
+ 'use strict';
3
+
4
+ const DataConfig = require('../data-config');
5
+
6
+
7
+ class DataStateMachineDiagramConfig extends DataConfig {
8
+ constructor() {
9
+ super();
10
+ this.width = 400;
11
+ this.height = 200;
12
+ this.widthBias = 25;
13
+ this.heightBias = 25;
14
+ }
15
+ }
16
+
17
+ module.exports = DataStateMachineDiagramConfig;
@@ -0,0 +1,29 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class DataStateMachineState {
6
+ constructor(name, comment) {
7
+ this.name = name;
8
+ this.xIndex = -1;
9
+ this.yIndex = -1;
10
+ this.in = 0;
11
+ this.out = 0;
12
+ this.comment = comment;
13
+ }
14
+
15
+ addIndex(xIndex, yIndex) {
16
+ this.xIndex = xIndex;
17
+ this.yIndex = yIndex;
18
+ }
19
+
20
+ addIn() {
21
+ ++this.in;
22
+ }
23
+
24
+ addOut() {
25
+ ++this.out;
26
+ }
27
+ }
28
+
29
+ module.exports = DataStateMachineState;
@@ -0,0 +1,18 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class DataStateMachineTransition {
6
+ constructor(data, type, transitionType, fromState, toState, comment) {
7
+ this.data = data;
8
+ this.type = type;
9
+ this.transitionType = transitionType;
10
+ this.fromStateName = fromState ? fromState.name : '';
11
+ this.toStateName = toState ? toState.name : '';
12
+ this.comment = comment;
13
+ fromState && fromState.addOut();
14
+ toState && toState.addIn();
15
+ }
16
+ }
17
+
18
+ module.exports = DataStateMachineTransition;
@@ -0,0 +1,37 @@
1
+
2
+ 'use strict';
3
+
4
+ const DataStateMachineDiagramConfig = require('./data-state-machine-config');
5
+
6
+
7
+ class DataStateMachine {
8
+ constructor(title = '', stateRows = [], transitions = []) {
9
+ this.title = title;
10
+ this.dataStateMachineDiagramConfig = new DataStateMachineDiagramConfig();
11
+ this.stateRows = [];
12
+ this.transitions = transitions;
13
+ }
14
+
15
+ setTitle(title) {
16
+ this.title = title;
17
+ }
18
+
19
+ addConfig(name, value) {
20
+ this.dataStateMachineDiagramConfig.addConfig(name, value);
21
+ }
22
+
23
+ addStateRow() {
24
+ this.stateRows.push([]);
25
+ }
26
+
27
+ addState(state) {
28
+ this.stateRows[this.stateRows.length - 1].push(state);
29
+ state.addIndex(this.stateRows[this.stateRows.length - 1].length -1, this.stateRows.length - 1);
30
+ }
31
+
32
+ addTransition(transition) {
33
+ this.transitions.push(transition);
34
+ }
35
+ }
36
+
37
+ module.exports = DataStateMachine;