@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,31 @@
1
+
2
+ 'use strict';
3
+
4
+ const DataContentDocumentsGlobal = require('../../data/data-content/data-content-documents-global');
5
+ const DataContentDocumentsLocal = require('../../data/data-content/data-content-documents-local');
6
+ const MarkupTableKeyValue = require('../markup-table-key-value');
7
+ const MarkupTablesParser = require('../markup-tables-parser');
8
+
9
+
10
+ class MarkupContentDocuments {
11
+ stringify(dataContentGlobals, dataContentLocals) {
12
+ return `\n${MarkupTableKeyValue.stringify(new DataContentDocumentsLocal(), dataContentLocals, true)}\n\n${MarkupTableKeyValue.stringify(new DataContentDocumentsGlobal(), dataContentGlobals, true)}\n`;
13
+ }
14
+
15
+ parse(markup) {
16
+ const objectTables = MarkupTablesParser.parse(markup);
17
+ if(!objectTables.success) {
18
+ return {
19
+ success: false,
20
+ rows: objectTables.rows
21
+ };
22
+ }
23
+ return {
24
+ success: true,
25
+ globals: MarkupTableKeyValue.parse(DataContentDocumentsGlobal, objectTables.objects),
26
+ locals: MarkupTableKeyValue.parse(DataContentDocumentsLocal, objectTables.objects)
27
+ };
28
+ }
29
+ }
30
+
31
+ module.exports = new MarkupContentDocuments();
@@ -0,0 +1,31 @@
1
+
2
+ 'use strict';
3
+
4
+ const DataContentImageGlobal = require('../../data/data-content/data-content-image-global');
5
+ const DataContentImageLocal = require('../../data/data-content/data-content-image-local');
6
+ const MarkupTableKeyValue = require('../markup-table-key-value');
7
+ const MarkupTablesParser = require('../markup-tables-parser');
8
+
9
+
10
+ class MarkupContentImage {
11
+ stringify(dataContentGlobals, dataContentLocals) {
12
+ return `\n${MarkupTableKeyValue.stringify(new DataContentImageLocal(), dataContentLocals, true)}\n\n${MarkupTableKeyValue.stringify(new DataContentImageGlobal(), dataContentGlobals, true)}\n`;
13
+ }
14
+
15
+ parse(markup) {
16
+ const objectTables = MarkupTablesParser.parse(markup);
17
+ if(!objectTables.success) {
18
+ return {
19
+ success: false,
20
+ rows: objectTables.rows
21
+ };
22
+ }
23
+ return {
24
+ success: true,
25
+ globals: MarkupTableKeyValue.parse(DataContentImageGlobal, objectTables.objects),
26
+ locals: MarkupTableKeyValue.parse(DataContentImageLocal, objectTables.objects)
27
+ };
28
+ }
29
+ }
30
+
31
+ module.exports = new MarkupContentImage();
@@ -0,0 +1,31 @@
1
+
2
+ 'use strict';
3
+
4
+ const DataContentOtherGlobal = require('../../data/data-content/data-content-other-global');
5
+ const DataContentOtherLocal = require('../../data/data-content/data-content-other-local');
6
+ const MarkupTableKeyValue = require('../markup-table-key-value');
7
+ const MarkupTablesParser = require('../markup-tables-parser');
8
+
9
+
10
+ class MarkupContentOther {
11
+ stringify(dataContentGlobals, dataContentLocals) {
12
+ return `\n${MarkupTableKeyValue.stringify(new DataContentOtherLocal(), dataContentLocals, true)}\n\n${MarkupTableKeyValue.stringify(new DataContentOtherGlobal(), dataContentGlobals, true)}\n`;
13
+ }
14
+
15
+ parse(markup) {
16
+ const objectTables = MarkupTablesParser.parse(markup);
17
+ if(!objectTables.success) {
18
+ return {
19
+ success: false,
20
+ rows: objectTables.rows
21
+ };
22
+ }
23
+ return {
24
+ success: true,
25
+ globals: MarkupTableKeyValue.parse(DataContentOtherGlobal, objectTables.objects),
26
+ locals: MarkupTableKeyValue.parse(DataContentOtherLocal, objectTables.objects)
27
+ };
28
+ }
29
+ }
30
+
31
+ module.exports = new MarkupContentOther();
@@ -0,0 +1,31 @@
1
+
2
+ 'use strict';
3
+
4
+ const DataContentTextGlobal = require('../../data/data-content/data-content-text-global');
5
+ const DataContentTextLocal = require('../../data/data-content/data-content-text-local');
6
+ const MarkupTableKeyValue = require('../markup-table-key-value');
7
+ const MarkupTablesParser = require('../markup-tables-parser');
8
+
9
+
10
+ class MarkupContentText {
11
+ stringify(dataContentGlobals, dataContentLocals) {
12
+ return `\n${MarkupTableKeyValue.stringify(new DataContentTextLocal(), dataContentLocals, true)}\n\n${MarkupTableKeyValue.stringify(new DataContentTextGlobal(), dataContentGlobals, true)}\n`;
13
+ }
14
+
15
+ parse(markup) {
16
+ const objectTables = MarkupTablesParser.parse(markup);
17
+ if(!objectTables.success) {
18
+ return {
19
+ success: false,
20
+ rows: objectTables.rows
21
+ };
22
+ }
23
+ return {
24
+ success: true,
25
+ globals: MarkupTableKeyValue.parse(DataContentTextGlobal, objectTables.objects),
26
+ locals: MarkupTableKeyValue.parse(DataContentTextLocal, objectTables.objects)
27
+ };
28
+ }
29
+ }
30
+
31
+ module.exports = new MarkupContentText();
@@ -0,0 +1,31 @@
1
+
2
+ 'use strict';
3
+
4
+ const DataContentVideoGlobal = require('../../data/data-content/data-content-video-global');
5
+ const DataContentVideoLocal = require('../../data/data-content/data-content-video-local');
6
+ const MarkupTableKeyValue = require('../markup-table-key-value');
7
+ const MarkupTablesParser = require('../markup-tables-parser');
8
+
9
+
10
+ class MarkupContentVideo {
11
+ stringify(dataContentGlobals, dataContentLocals) {
12
+ return `\n${MarkupTableKeyValue.stringify(new DataContentVideoLocal(), dataContentLocals, true)}\n\n${MarkupTableKeyValue.stringify(new DataContentVideoGlobal(), dataContentGlobals, true)}\n`;
13
+ }
14
+
15
+ parse(markup) {
16
+ const objectTables = MarkupTablesParser.parse(markup);
17
+ if(!objectTables.success) {
18
+ return {
19
+ success: false,
20
+ rows: objectTables.rows
21
+ };
22
+ }
23
+ return {
24
+ success: true,
25
+ globals: MarkupTableKeyValue.parse(DataContentVideoGlobal, objectTables.objects),
26
+ locals: MarkupTableKeyValue.parse(DataContentVideoLocal, objectTables.objects)
27
+ };
28
+ }
29
+ }
30
+
31
+ module.exports = new MarkupContentVideo();
@@ -0,0 +1,30 @@
1
+
2
+ 'use strict';
3
+
4
+ const DataDependencies = require('../../data/data-dependencies/data-dependencies');
5
+ const MarkupTableKeyValue = require('../markup-table-key-value');
6
+ const MarkupTablesParser = require('../markup-tables-parser');
7
+
8
+
9
+ class MarkupDependencies {
10
+ stringify(dataDependencies) {
11
+ return `\n${MarkupTableKeyValue.stringify(new DataDependencies(), dataDependencies, true)}\n`;
12
+ }
13
+
14
+ parse(markup) {
15
+ const objectTables = MarkupTablesParser.parse(markup);
16
+ if(!objectTables.success) {
17
+ return {
18
+ success: false,
19
+ rows: objectTables.rows
20
+ };
21
+ }
22
+ return {
23
+ success: true,
24
+ dependencies: MarkupTableKeyValue.parse(DataDependencies, objectTables.objects)
25
+ };
26
+ }
27
+ }
28
+
29
+
30
+ module.exports = new MarkupDependencies();
@@ -0,0 +1,37 @@
1
+
2
+ 'use strict';
3
+
4
+ import GuidGenerator from 'z-abs-corelayer-cs/clientServer/guid-generator';
5
+
6
+
7
+ class MarkupDocumentationAnchor {
8
+ constructor() {
9
+ this.key = 'ANCHOR';
10
+ this.type = 'markup_anchor';
11
+ }
12
+
13
+ stringify(dataAnchor) {
14
+ return `${this.key}={"id":"${dataAnchor.id}","visible":${dataAnchor.visible}}`;
15
+ }
16
+
17
+ parse(markup) {
18
+ let dataAnchor = null;
19
+ try {
20
+ dataAnchor = JSON.parse(markup);
21
+ }
22
+ catch(err) {}
23
+ if(dataAnchor && dataAnchor.id) {
24
+ if(undefined === dataAnchor.visible || 'boolean' !== typeof dataAnchor.visible) {
25
+ dataAnchor.visible = false;
26
+ }
27
+ return dataAnchor;
28
+ }
29
+ return {
30
+ id: GuidGenerator.create(),
31
+ visible: true
32
+ };
33
+ }
34
+ }
35
+
36
+
37
+ module.exports = new MarkupDocumentationAnchor() ;
@@ -0,0 +1,67 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class MarkupDocumentationApiStatus {
6
+ constructor() {
7
+ this.key = 'API-STATUS';
8
+ this.type = 'markup_api_status';
9
+ }
10
+
11
+ stringify(dataDocStatus) {
12
+ let status = '';
13
+ if(MarkupDocumentationApiStatus.DEPRECATED === dataDocStatus.status) {
14
+ status = 'DEPRECATED';
15
+ }
16
+ else if(MarkupDocumentationApiStatus.EXPERIMENTAL === dataDocStatus.status) {
17
+ status = 'EXPERIMENTAL';
18
+ }
19
+ else if(MarkupDocumentationApiStatus.STABLE === dataDocStatus.status) {
20
+ status = 'STABLE';
21
+ }
22
+ else if(MarkupDocumentationApiStatus.LEGACY === dataDocStatus.status) {
23
+ status = 'LEGACY';
24
+ }
25
+ else {
26
+ status = 'DEPRECATED';
27
+ }
28
+ return `${this.key}=${status}, ${dataDocStatus.comment}`;
29
+ }
30
+
31
+ parse(markup) {
32
+ const parameters = markup.split(',');
33
+ parameters.forEach((parameter, index) => {
34
+ parameters[index] = parameter.trim();
35
+ });
36
+ let status = 0;
37
+ if(1 <= parameters.length) {
38
+ const parameter = parameters[0];
39
+ if('DEPRECATED' === parameter) {
40
+ status = MarkupDocumentationApiStatus.DEPRECATED;
41
+ }
42
+ else if('EXPERIMENTAL' === parameter) {
43
+ status = MarkupDocumentationApiStatus.EXPERIMENTAL;
44
+ }
45
+ else if('STABLE' === parameter) {
46
+ status = MarkupDocumentationApiStatus.STABLE;
47
+ }
48
+ else if('LEGACY' === parameter) {
49
+ status = MarkupDocumentationApiStatus.LEGACY;
50
+ }
51
+ else {
52
+ status = MarkupDocumentationApiStatus.DEPRECATED;
53
+ }
54
+ }
55
+ return {
56
+ status: status,
57
+ comment: 2 <= parameters.length ? parameters[1] : ''
58
+ };
59
+ }
60
+ }
61
+
62
+ MarkupDocumentationApiStatus.DEPRECATED = 0;
63
+ MarkupDocumentationApiStatus.EXPERIMENTAL = 1;
64
+ MarkupDocumentationApiStatus.STABLE = 2;
65
+ MarkupDocumentationApiStatus.LEGACY = 3;
66
+
67
+ module.exports = new MarkupDocumentationApiStatus() ;
@@ -0,0 +1,20 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class MarkupDocumentationCode {
6
+ markupName() {
7
+ return 'javascript';
8
+ }
9
+
10
+ stringify(code) {
11
+ return code;
12
+ }
13
+
14
+ parse(markup) {
15
+ return markup;
16
+ }
17
+ }
18
+
19
+
20
+ module.exports = new MarkupDocumentationCode();
@@ -0,0 +1,34 @@
1
+
2
+ 'use strict';
3
+
4
+ import GuidGenerator from 'z-abs-corelayer-cs/clientServer/guid-generator';
5
+
6
+
7
+ class MarkupDocumentationDiv {
8
+ constructor() {
9
+ this.key = 'DIV';
10
+ this.type = 'markup_div';
11
+ }
12
+
13
+ stringify(dataAnchor) {
14
+ return `${this.key}={"id":"${dataAnchor.id}","style":${JSON.stringify(dataAnchor.style)}}`;
15
+ }
16
+
17
+ parse(markup) {
18
+ let dataAnchor = null;
19
+ try {
20
+ dataAnchor = JSON.parse(markup);
21
+ }
22
+ catch(err) {}
23
+ if(dataAnchor && dataAnchor.id) {
24
+ return dataAnchor;
25
+ }
26
+ return {
27
+ id: GuidGenerator.create(),
28
+ style: ''
29
+ };
30
+ }
31
+ }
32
+
33
+
34
+ module.exports = new MarkupDocumentationDiv() ;
@@ -0,0 +1,67 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class MarkupDocumentationDocumentationStatus {
6
+ constructor() {
7
+ this.key = 'DOC-STATUS';
8
+ this.type = 'markup_documentation_status';
9
+ }
10
+
11
+ stringify(dataDocStatus) {
12
+ let status = '';
13
+ if(MarkupDocumentationDocumentationStatus.NOT_YET === dataDocStatus.status) {
14
+ status = 'NOT-YET';
15
+ }
16
+ else if(MarkupDocumentationDocumentationStatus.PARTLY === dataDocStatus.status) {
17
+ status = 'PARTLY';
18
+ }
19
+ else if(MarkupDocumentationDocumentationStatus.MOSTLY === dataDocStatus.status) {
20
+ status = 'MOSTLY';
21
+ }
22
+ else if(MarkupDocumentationDocumentationStatus.FULLY === dataDocStatus.status) {
23
+ status = 'FULLY';
24
+ }
25
+ else {
26
+ status = 'NOT-YET';
27
+ }
28
+ return `${this.key}=${status}, ${dataDocStatus.comment}`;
29
+ }
30
+
31
+ parse(markup) {
32
+ const parameters = markup.split(',');
33
+ parameters.forEach((parameter, index) => {
34
+ parameters[index] = parameter.trim();
35
+ });
36
+ let status = 0;
37
+ if(1 <= parameters.length) {
38
+ const parameter = parameters[0];
39
+ if('NOT-YET' === parameter) {
40
+ status = MarkupDocumentationDocumentationStatus.NOT_YET;
41
+ }
42
+ else if('PARTLY' === parameter) {
43
+ status = MarkupDocumentationDocumentationStatus.PARTLY;
44
+ }
45
+ else if('MOSTLY' === parameter) {
46
+ status = MarkupDocumentationDocumentationStatus.MOSTLY;
47
+ }
48
+ else if('FULLY' === parameter) {
49
+ status = MarkupDocumentationDocumentationStatus.FULLY;
50
+ }
51
+ else {
52
+ status = MarkupDocumentationDocumentationStatus.NOT_YET;
53
+ }
54
+ }
55
+ return {
56
+ status: status,
57
+ comment: 2 <= parameters.length ? parameters[1] : ''
58
+ };
59
+ }
60
+ }
61
+
62
+ MarkupDocumentationDocumentationStatus.NOT_YET = 0;
63
+ MarkupDocumentationDocumentationStatus.PARTLY = 1;
64
+ MarkupDocumentationDocumentationStatus.MOSTLY = 2;
65
+ MarkupDocumentationDocumentationStatus.FULLY = 3;
66
+
67
+ module.exports = new MarkupDocumentationDocumentationStatus() ;
@@ -0,0 +1,23 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class MarkupDocumentationEmbed {
6
+ constructor() {
7
+ this.key = 'EMBED';
8
+ this.type = 'markup_embed';
9
+ }
10
+
11
+ stringify(dataEmbed) {
12
+ return `${this.key}=${dataEmbed.path}`;
13
+ }
14
+
15
+ parse(markup) {
16
+ return {
17
+ path: markup
18
+ };
19
+ }
20
+ }
21
+
22
+
23
+ module.exports = new MarkupDocumentationEmbed() ;
@@ -0,0 +1,139 @@
1
+
2
+ 'use strict';
3
+
4
+ const MarkupParseHelper = require('../markup-parse-helper');
5
+ const DataHtmlAnchor = require('../../data/data-html/data-html-anchor');
6
+ const DataHtmlButton = require('../../data/data-html/data-html-button');
7
+ const DataHtmlToolbar = require('../../data/data-html/data-html-toolbar');
8
+ const DataHtmlBr = require('../../data/data-html/data-html-br');
9
+ const DataHtmlLog = require('../../data/data-html/data-html-log');
10
+ const DataHtmlLogStart = require('../../data/data-html/data-html-log-start');
11
+ const DataHtmlLogStop = require('../../data/data-html/data-html-log-stop');
12
+
13
+
14
+ class MarkupDocumentationHtml {
15
+ markupName() {
16
+ return 'object';
17
+ }
18
+
19
+ stringify(dataHtmls) {
20
+ let stringified = '';
21
+ dataHtmls.forEach((dataHtml) => {
22
+ if('anchor' === dataHtml.type) {
23
+ stringified += `\n[anchor](${dataHtml.link})`;
24
+ }
25
+ else if('button' === dataHtml.type) {
26
+ stringified += `\n[button](${dataHtml.icon}, ${dataHtml.colorMark}, ${dataHtml.text})`;
27
+ }
28
+ else if('toolbar' === dataHtml.type) {
29
+ ddb.writeln('stringify - toolbar');
30
+ if(dataHtml.buttons) {
31
+ stringified += `\n[toolbar](${dataHtml.buttons})`;
32
+ }
33
+ else {
34
+ stringified += `\n[toolbar]()`;
35
+ }
36
+ }
37
+ else if('br' === dataHtml.type) {
38
+ stringified += `\n[br]`;
39
+ }
40
+ else if('log' === dataHtml.type) {
41
+ stringified += `\n[log](${dataHtml.logType}, ${dataHtml.date}, ${dataHtml.actor}, ${dataHtml.log}, ${dataHtml.fileName})`;
42
+ }
43
+ else if('log_start' === dataHtml.type) {
44
+ stringified += `\n[log_start](${dataHtml.date})`;
45
+ }
46
+ else if('log_end' === dataHtml.type) {
47
+ stringified += `\n[log_end](${dataHtml.result}, ${dataHtml.duration})`;
48
+ }
49
+ });
50
+ return stringified;
51
+ }
52
+
53
+ parse(markup) {
54
+ let objects = [];
55
+ let rows = MarkupParseHelper.getRows(markup);
56
+ rows.forEach((row) => {
57
+ if(row.startsWith('[anchor]')) {
58
+ this._parseAnchor(objects, row.trim());
59
+ }
60
+ else if(row.startsWith('[button]')) {
61
+ this._parseButton(objects, row.trim());
62
+ }
63
+ else if(row.startsWith('[toolbar]')) {
64
+ this._parseToolbar(objects, row.trim());
65
+ }
66
+ else if(row.startsWith('[br]')) {
67
+ objects.push(new DataHtmlBr());
68
+ }
69
+ else if(row.startsWith('[log]')) {
70
+ this._parseLog(objects, row.trim());
71
+ }
72
+ else if(row.startsWith('[log_start]')) {
73
+ this._parseLogStart(objects, row.trim());
74
+ }
75
+ else if(row.startsWith('[log_end]')) {
76
+ this._parseLogStop(objects, row.trim());
77
+ }
78
+ });
79
+ return objects;
80
+ }
81
+
82
+ _parseAnchor(objects, row) {
83
+ let parameterNames = row.slice(row.indexOf('(') + 1, row.lastIndexOf(')')).split(',');
84
+ if(undefined !== parameterNames) {
85
+ objects.push(new DataHtmlAnchor(...parameterNames));
86
+ }
87
+ }
88
+
89
+ _parseButton(objects, row) {
90
+ let parameterNames = row.slice(row.indexOf('(') + 1, row.lastIndexOf(')')).split(',');
91
+ for(let i = 0; i < parameterNames.length; ++i) {
92
+ parameterNames[i] = parameterNames[i].trim();
93
+ }
94
+ if(parameterNames) {
95
+ objects.push(new DataHtmlButton(...parameterNames));
96
+ }
97
+ }
98
+
99
+ _parseToolbar(objects, row) {
100
+ const parameterNames = row.slice(row.indexOf('(') + 1, row.lastIndexOf(')')).split(',');
101
+ for(let i = 0; i < parameterNames.length; ++i) {
102
+ parameterNames[i] = parameterNames[i].trim();
103
+ }
104
+ objects.push(new DataHtmlToolbar(...parameterNames));
105
+ }
106
+
107
+ _parseLog(objects, row) {
108
+ let parameterNames = row.slice(row.indexOf('(') + 1, row.lastIndexOf(')')).split(',');
109
+ parameterNames.forEach((parameterName, index) => {
110
+ parameterNames[index] = parameterName.trim();
111
+ });
112
+ if(undefined !== parameterNames) {
113
+ objects.push(new DataHtmlLog(...parameterNames));
114
+ }
115
+ }
116
+
117
+ _parseLogStart(objects, row) {
118
+ let parameterNames = row.slice(row.indexOf('(') + 1, row.lastIndexOf(')')).split(',');
119
+ parameterNames.forEach((parameterName, index) => {
120
+ parameterNames[index] = parameterName.trim();
121
+ });
122
+ if(undefined !== parameterNames) {
123
+ objects.push(new DataHtmlLogStart(...parameterNames));
124
+ }
125
+ }
126
+
127
+ _parseLogStop(objects, row) {
128
+ let parameterNames = row.slice(row.indexOf('(') + 1, row.lastIndexOf(')')).split(',');
129
+ parameterNames.forEach((parameterName, index) => {
130
+ parameterNames[index] = parameterName.trim();
131
+ });
132
+ if(undefined !== parameterNames) {
133
+ objects.push(new DataHtmlLogStop(...parameterNames));
134
+ }
135
+ }
136
+ }
137
+
138
+
139
+ module.exports = new MarkupDocumentationHtml();
@@ -0,0 +1,21 @@
1
+
2
+ 'use strict';
3
+
4
+
5
+ class MarkupDocumentationIe {
6
+ constructor() {
7
+ this.key = 'IE';
8
+ this.type = 'markup_ie';
9
+ }
10
+
11
+ stringify(dataIe) {
12
+ return `${this.key}=${dataIe}`;
13
+ }
14
+
15
+ parse(markup) {
16
+ return markup;
17
+ }
18
+ }
19
+
20
+
21
+ module.exports = new MarkupDocumentationIe() ;
@@ -0,0 +1,46 @@
1
+
2
+ 'use strict';
3
+
4
+ const DataImage = require('../../data/data-image/data-image');
5
+
6
+
7
+ class MarkupDocumentationImage {
8
+ constructor() {
9
+ this.key = 'IMAGE';
10
+ this.type = 'markup_image';
11
+ }
12
+
13
+ stringify(dataImage) {
14
+ return `${this.key}=${this._stringifyParameters(dataImage)}`;
15
+ }
16
+
17
+ _stringifyParameters(dataImage) {
18
+ let params = '';
19
+ const parameters = Object.keys(dataImage);
20
+ parameters.forEach((parameter) => {
21
+ const value = dataImage[parameter];
22
+ if(undefined !== value && '' !== value) {
23
+ params += `${parameter}: ${value}, `;
24
+ }
25
+ });
26
+ return params;
27
+ }
28
+
29
+ parse(markup) {
30
+ const dataImage = new DataImage();
31
+ const parameters = [];
32
+ const parametersRaw = markup.split(',');
33
+ parametersRaw.forEach((parameterRaw) => {
34
+ const split = parameterRaw.split(':');
35
+ if(2 === split.length) {
36
+ const parameterName = split[0].trim();
37
+ const parameterValue = split[1].trim();
38
+ dataImage.addParameter(parameterName, parameterValue);
39
+ }
40
+ });
41
+ return dataImage;
42
+ }
43
+ }
44
+
45
+
46
+ module.exports = new MarkupDocumentationImage() ;
@@ -0,0 +1,19 @@
1
+
2
+ 'use strict';
3
+
4
+ const MarkupTableKeyValue = require('../markup-table-key-value');
5
+ const MarkupTablesParser = require('../markup-tables-parser');
6
+
7
+
8
+ class MarkupDocumentationLab {
9
+ stringify(lab) {
10
+ return lab;
11
+ }
12
+
13
+ parse(markup) {
14
+ return markup;
15
+ }
16
+ }
17
+
18
+
19
+ module.exports = new MarkupDocumentationLab();