@rws-framework/client 2.19.1 → 2.20.0

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 (442) hide show
  1. package/.bin/add-v.sh +92 -10
  2. package/.bin/emerge.sh +0 -0
  3. package/.emerge-fast.yaml +0 -0
  4. package/.emerge-typescript-template.yaml +0 -0
  5. package/.emerge-vis-output/fast-element/emerge-file_result_dependency_graph.graphml +0 -0
  6. package/.emerge-vis-output/fast-element/emerge-filesystem_graph.graphml +0 -0
  7. package/.emerge-vis-output/fast-element/emerge-statistics-and-metrics.json +0 -0
  8. package/.emerge-vis-output/fast-element/emerge-statistics-metrics.txt +0 -0
  9. package/.emerge-vis-output/fast-element/html/emerge.html +0 -0
  10. package/.emerge-vis-output/fast-element/html/jsconfig.json +0 -0
  11. package/.emerge-vis-output/fast-element/html/resources/css/custom.css +0 -0
  12. package/.emerge-vis-output/fast-element/html/resources/js/emerge_common.js +0 -0
  13. package/.emerge-vis-output/fast-element/html/resources/js/emerge_data.js +0 -0
  14. package/.emerge-vis-output/fast-element/html/resources/js/emerge_git.js +0 -0
  15. package/.emerge-vis-output/fast-element/html/resources/js/emerge_graph.js +0 -0
  16. package/.emerge-vis-output/fast-element/html/resources/js/emerge_heatmap.js +0 -0
  17. package/.emerge-vis-output/fast-element/html/resources/js/emerge_hull.js +0 -0
  18. package/.emerge-vis-output/fast-element/html/resources/js/emerge_main.js +0 -0
  19. package/.emerge-vis-output/fast-element/html/resources/js/emerge_search.js +0 -0
  20. package/.emerge-vis-output/fast-element/html/resources/js/emerge_ui.js +0 -0
  21. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-grid.css +0 -0
  22. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-grid.css.map +0 -0
  23. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-grid.min.css +0 -0
  24. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-grid.min.css.map +0 -0
  25. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-grid.rtl.css +0 -0
  26. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-grid.rtl.css.map +0 -0
  27. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-grid.rtl.min.css +0 -0
  28. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-grid.rtl.min.css.map +0 -0
  29. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-reboot.css +0 -0
  30. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-reboot.css.map +0 -0
  31. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-reboot.min.css +0 -0
  32. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-reboot.min.css.map +0 -0
  33. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-reboot.rtl.css +0 -0
  34. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-reboot.rtl.css.map +0 -0
  35. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-reboot.rtl.min.css +0 -0
  36. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-reboot.rtl.min.css.map +0 -0
  37. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-utilities.css +0 -0
  38. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-utilities.css.map +0 -0
  39. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-utilities.min.css +0 -0
  40. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-utilities.min.css.map +0 -0
  41. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-utilities.rtl.css +0 -0
  42. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-utilities.rtl.css.map +0 -0
  43. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-utilities.rtl.min.css +0 -0
  44. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap-utilities.rtl.min.css.map +0 -0
  45. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap.css +0 -0
  46. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap.css.map +0 -0
  47. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap.min.css +0 -0
  48. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap.min.css.map +0 -0
  49. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap.rtl.css +0 -0
  50. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap.rtl.css.map +0 -0
  51. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap.rtl.min.css +0 -0
  52. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/css/bootstrap.rtl.min.css.map +0 -0
  53. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.bundle.js +0 -0
  54. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.bundle.js.map +0 -0
  55. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.bundle.min.js +0 -0
  56. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.bundle.min.js.map +0 -0
  57. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.esm.js +0 -0
  58. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.esm.js.map +0 -0
  59. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.esm.min.js +0 -0
  60. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.esm.min.js.map +0 -0
  61. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.js +0 -0
  62. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.js.map +0 -0
  63. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.min.js +0 -0
  64. package/.emerge-vis-output/fast-element/html/vendors/bootstrap/js/bootstrap.min.js.map +0 -0
  65. package/.emerge-vis-output/fast-element/html/vendors/d3/d3.v7.8.4.min.js +0 -0
  66. package/.emerge-vis-output/fast-element/html/vendors/d3/d3.v7.min.js +0 -0
  67. package/.emerge-vis-output/fast-element/html/vendors/dark-mode-switch/css/dark-mode.css +0 -0
  68. package/.emerge-vis-output/fast-element/html/vendors/dark-mode-switch/js/dark-mode-switch.min.js +0 -0
  69. package/.emerge-vis-output/fast-element/html/vendors/daterangepicker/daterangepicker.css +0 -0
  70. package/.emerge-vis-output/fast-element/html/vendors/daterangepicker/daterangepicker.min.js +0 -0
  71. package/.emerge-vis-output/fast-element/html/vendors/daterangepicker/moment.min.js +0 -0
  72. package/.emerge-vis-output/fast-element/html/vendors/hull/hull.js +0 -0
  73. package/.emerge-vis-output/fast-element/html/vendors/jquery/jquery-3.6.0.min.js +0 -0
  74. package/.emerge-vis-output/fast-element/html/vendors/popper/popper.min.js +0 -0
  75. package/.emerge-vis-output/fast-element/html/vendors/simpleheat/simpleheat.js +0 -0
  76. package/.emerge-vis-output/fast-foundation/emerge-file_result_dependency_graph.graphml +0 -0
  77. package/.emerge-vis-output/fast-foundation/emerge-filesystem_graph.graphml +0 -0
  78. package/.emerge-vis-output/fast-foundation/emerge-statistics-and-metrics.json +0 -0
  79. package/.emerge-vis-output/fast-foundation/emerge-statistics-metrics.txt +0 -0
  80. package/.emerge-vis-output/fast-foundation/html/emerge.html +0 -0
  81. package/.emerge-vis-output/fast-foundation/html/jsconfig.json +0 -0
  82. package/.emerge-vis-output/fast-foundation/html/resources/css/custom.css +0 -0
  83. package/.emerge-vis-output/fast-foundation/html/resources/js/emerge_common.js +0 -0
  84. package/.emerge-vis-output/fast-foundation/html/resources/js/emerge_data.js +0 -0
  85. package/.emerge-vis-output/fast-foundation/html/resources/js/emerge_git.js +0 -0
  86. package/.emerge-vis-output/fast-foundation/html/resources/js/emerge_graph.js +0 -0
  87. package/.emerge-vis-output/fast-foundation/html/resources/js/emerge_heatmap.js +0 -0
  88. package/.emerge-vis-output/fast-foundation/html/resources/js/emerge_hull.js +0 -0
  89. package/.emerge-vis-output/fast-foundation/html/resources/js/emerge_main.js +0 -0
  90. package/.emerge-vis-output/fast-foundation/html/resources/js/emerge_search.js +0 -0
  91. package/.emerge-vis-output/fast-foundation/html/resources/js/emerge_ui.js +0 -0
  92. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-grid.css +0 -0
  93. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-grid.css.map +0 -0
  94. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-grid.min.css +0 -0
  95. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-grid.min.css.map +0 -0
  96. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-grid.rtl.css +0 -0
  97. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-grid.rtl.css.map +0 -0
  98. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-grid.rtl.min.css +0 -0
  99. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-grid.rtl.min.css.map +0 -0
  100. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-reboot.css +0 -0
  101. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-reboot.css.map +0 -0
  102. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-reboot.min.css +0 -0
  103. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-reboot.min.css.map +0 -0
  104. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-reboot.rtl.css +0 -0
  105. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-reboot.rtl.css.map +0 -0
  106. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-reboot.rtl.min.css +0 -0
  107. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-reboot.rtl.min.css.map +0 -0
  108. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-utilities.css +0 -0
  109. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-utilities.css.map +0 -0
  110. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-utilities.min.css +0 -0
  111. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-utilities.min.css.map +0 -0
  112. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-utilities.rtl.css +0 -0
  113. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-utilities.rtl.css.map +0 -0
  114. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-utilities.rtl.min.css +0 -0
  115. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap-utilities.rtl.min.css.map +0 -0
  116. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap.css +0 -0
  117. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap.css.map +0 -0
  118. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap.min.css +0 -0
  119. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap.min.css.map +0 -0
  120. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap.rtl.css +0 -0
  121. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap.rtl.css.map +0 -0
  122. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap.rtl.min.css +0 -0
  123. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/css/bootstrap.rtl.min.css.map +0 -0
  124. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.bundle.js +0 -0
  125. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.bundle.js.map +0 -0
  126. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.bundle.min.js +0 -0
  127. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.bundle.min.js.map +0 -0
  128. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.esm.js +0 -0
  129. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.esm.js.map +0 -0
  130. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.esm.min.js +0 -0
  131. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.esm.min.js.map +0 -0
  132. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.js +0 -0
  133. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.js.map +0 -0
  134. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.min.js +0 -0
  135. package/.emerge-vis-output/fast-foundation/html/vendors/bootstrap/js/bootstrap.min.js.map +0 -0
  136. package/.emerge-vis-output/fast-foundation/html/vendors/d3/d3.v7.8.4.min.js +0 -0
  137. package/.emerge-vis-output/fast-foundation/html/vendors/d3/d3.v7.min.js +0 -0
  138. package/.emerge-vis-output/fast-foundation/html/vendors/dark-mode-switch/css/dark-mode.css +0 -0
  139. package/.emerge-vis-output/fast-foundation/html/vendors/dark-mode-switch/js/dark-mode-switch.min.js +0 -0
  140. package/.emerge-vis-output/fast-foundation/html/vendors/daterangepicker/daterangepicker.css +0 -0
  141. package/.emerge-vis-output/fast-foundation/html/vendors/daterangepicker/daterangepicker.min.js +0 -0
  142. package/.emerge-vis-output/fast-foundation/html/vendors/daterangepicker/moment.min.js +0 -0
  143. package/.emerge-vis-output/fast-foundation/html/vendors/hull/hull.js +0 -0
  144. package/.emerge-vis-output/fast-foundation/html/vendors/jquery/jquery-3.6.0.min.js +0 -0
  145. package/.emerge-vis-output/fast-foundation/html/vendors/popper/popper.min.js +0 -0
  146. package/.emerge-vis-output/fast-foundation/html/vendors/simpleheat/simpleheat.js +0 -0
  147. package/.emerge-vis-output/rws-client/emerge-file_result_dependency_graph.graphml +0 -0
  148. package/.emerge-vis-output/rws-client/emerge-filesystem_graph.graphml +0 -0
  149. package/.emerge-vis-output/rws-client/emerge-statistics-and-metrics.json +0 -0
  150. package/.emerge-vis-output/rws-client/emerge-statistics-metrics.txt +0 -0
  151. package/.emerge-vis-output/rws-client/html/emerge.html +0 -0
  152. package/.emerge-vis-output/rws-client/html/jsconfig.json +0 -0
  153. package/.emerge-vis-output/rws-client/html/resources/css/custom.css +0 -0
  154. package/.emerge-vis-output/rws-client/html/resources/js/emerge_common.js +0 -0
  155. package/.emerge-vis-output/rws-client/html/resources/js/emerge_data.js +0 -0
  156. package/.emerge-vis-output/rws-client/html/resources/js/emerge_git.js +0 -0
  157. package/.emerge-vis-output/rws-client/html/resources/js/emerge_graph.js +0 -0
  158. package/.emerge-vis-output/rws-client/html/resources/js/emerge_heatmap.js +0 -0
  159. package/.emerge-vis-output/rws-client/html/resources/js/emerge_hull.js +0 -0
  160. package/.emerge-vis-output/rws-client/html/resources/js/emerge_main.js +0 -0
  161. package/.emerge-vis-output/rws-client/html/resources/js/emerge_search.js +0 -0
  162. package/.emerge-vis-output/rws-client/html/resources/js/emerge_ui.js +0 -0
  163. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-grid.css +0 -0
  164. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-grid.css.map +0 -0
  165. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-grid.min.css +0 -0
  166. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-grid.min.css.map +0 -0
  167. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-grid.rtl.css +0 -0
  168. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-grid.rtl.css.map +0 -0
  169. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-grid.rtl.min.css +0 -0
  170. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-grid.rtl.min.css.map +0 -0
  171. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-reboot.css +0 -0
  172. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-reboot.css.map +0 -0
  173. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-reboot.min.css +0 -0
  174. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-reboot.min.css.map +0 -0
  175. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-reboot.rtl.css +0 -0
  176. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-reboot.rtl.css.map +0 -0
  177. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-reboot.rtl.min.css +0 -0
  178. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-reboot.rtl.min.css.map +0 -0
  179. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-utilities.css +0 -0
  180. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-utilities.css.map +0 -0
  181. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-utilities.min.css +0 -0
  182. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-utilities.min.css.map +0 -0
  183. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-utilities.rtl.css +0 -0
  184. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-utilities.rtl.css.map +0 -0
  185. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-utilities.rtl.min.css +0 -0
  186. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap-utilities.rtl.min.css.map +0 -0
  187. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap.css +0 -0
  188. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap.css.map +0 -0
  189. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap.min.css +0 -0
  190. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap.min.css.map +0 -0
  191. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap.rtl.css +0 -0
  192. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap.rtl.css.map +0 -0
  193. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap.rtl.min.css +0 -0
  194. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/css/bootstrap.rtl.min.css.map +0 -0
  195. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.bundle.js +0 -0
  196. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.bundle.js.map +0 -0
  197. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.bundle.min.js +0 -0
  198. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.bundle.min.js.map +0 -0
  199. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.esm.js +0 -0
  200. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.esm.js.map +0 -0
  201. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.esm.min.js +0 -0
  202. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.esm.min.js.map +0 -0
  203. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.js +0 -0
  204. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.js.map +0 -0
  205. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.min.js +0 -0
  206. package/.emerge-vis-output/rws-client/html/vendors/bootstrap/js/bootstrap.min.js.map +0 -0
  207. package/.emerge-vis-output/rws-client/html/vendors/d3/d3.v7.8.4.min.js +0 -0
  208. package/.emerge-vis-output/rws-client/html/vendors/d3/d3.v7.min.js +0 -0
  209. package/.emerge-vis-output/rws-client/html/vendors/dark-mode-switch/css/dark-mode.css +0 -0
  210. package/.emerge-vis-output/rws-client/html/vendors/dark-mode-switch/js/dark-mode-switch.min.js +0 -0
  211. package/.emerge-vis-output/rws-client/html/vendors/daterangepicker/daterangepicker.css +0 -0
  212. package/.emerge-vis-output/rws-client/html/vendors/daterangepicker/daterangepicker.min.js +0 -0
  213. package/.emerge-vis-output/rws-client/html/vendors/daterangepicker/moment.min.js +0 -0
  214. package/.emerge-vis-output/rws-client/html/vendors/hull/hull.js +0 -0
  215. package/.emerge-vis-output/rws-client/html/vendors/jquery/jquery-3.6.0.min.js +0 -0
  216. package/.emerge-vis-output/rws-client/html/vendors/popper/popper.min.js +0 -0
  217. package/.emerge-vis-output/rws-client/html/vendors/simpleheat/simpleheat.js +0 -0
  218. package/.eslintrc.json +0 -0
  219. package/.gitmodules +0 -0
  220. package/.setup/.eslintrc.json +0 -0
  221. package/.setup/_base.eslintrc.json +0 -0
  222. package/.setup/tsconfig.json +0 -0
  223. package/PLUGINS.MD +188 -188
  224. package/README.md +1023 -1023
  225. package/_tools.js +396 -396
  226. package/builder/vite/index.ts +0 -0
  227. package/builder/vite/loaders/html.ts +0 -0
  228. package/builder/vite/loaders/index.ts +0 -0
  229. package/builder/vite/loaders/loader.type.ts +0 -0
  230. package/builder/vite/loaders/scss.ts +0 -0
  231. package/builder/vite/loaders/ts.ts +0 -0
  232. package/builder/vite/rws.vite.config.ts +0 -0
  233. package/builder/vite/rws_scss_plugin.ts +0 -0
  234. package/builder/vite/scss/_compiler.ts +0 -0
  235. package/builder/vite/scss/_fonts.ts +0 -0
  236. package/builder/vite/scss/_fs.ts +0 -0
  237. package/builder/vite/scss/_import.ts +0 -0
  238. package/builder/webpack/after/copy.js +0 -0
  239. package/builder/webpack/after/sw.js +0 -0
  240. package/builder/webpack/index.js +0 -0
  241. package/builder/webpack/loaders/rws_fast_html_loader.js +0 -0
  242. package/builder/webpack/loaders/rws_fast_scss_loader.js +0 -0
  243. package/builder/webpack/loaders/rws_fast_ts_loader.js +0 -0
  244. package/builder/webpack/loaders/ts/html_error.js +0 -0
  245. package/builder/webpack/rws.webpack.config.js +0 -0
  246. package/builder/webpack/rws_scss_plugin.js +0 -0
  247. package/builder/webpack/rws_webpack_plugin.js +0 -0
  248. package/builder/webpack/scss/_compiler.js +2 -0
  249. package/builder/webpack/scss/_fonts.js +0 -0
  250. package/builder/webpack/scss/_fs.js +0 -0
  251. package/builder/webpack/scss/_import.js +29 -18
  252. package/bun.lockb +0 -0
  253. package/cfg/_default.cfg.js +0 -0
  254. package/cfg/_storage.d.ts +0 -0
  255. package/cfg/_storage.js +0 -0
  256. package/cfg/build_steps/vite/_build_config.ts +0 -0
  257. package/cfg/build_steps/vite/_env_defines.ts +0 -0
  258. package/cfg/build_steps/vite/_loaders.ts +0 -0
  259. package/cfg/build_steps/vite/index.ts +0 -0
  260. package/cfg/build_steps/vite/types.ts +0 -0
  261. package/cfg/build_steps/webpack/_actions.js +0 -0
  262. package/cfg/build_steps/webpack/_aliases.js +0 -0
  263. package/cfg/build_steps/webpack/_build_config.js +0 -0
  264. package/cfg/build_steps/webpack/_cache.js +0 -0
  265. package/cfg/build_steps/webpack/_component_handling.js +0 -0
  266. package/cfg/build_steps/webpack/_env_defines.js +0 -0
  267. package/cfg/build_steps/webpack/_hot_reload.js +0 -0
  268. package/cfg/build_steps/webpack/_info.js +0 -0
  269. package/cfg/build_steps/webpack/_loaders.js +0 -0
  270. package/cfg/build_steps/webpack/_parser.js +0 -0
  271. package/cfg/build_steps/webpack/_plugins.js +0 -0
  272. package/cfg/build_steps/webpack/_production.js +0 -0
  273. package/cfg/build_steps/webpack/_rws_externals.js +0 -0
  274. package/cfg/build_steps/webpack/_timing.js +0 -0
  275. package/cfg/build_steps/webpack/_webpack_config.js +0 -0
  276. package/cfg/tsconfigSetup.js +0 -0
  277. package/console.js +86 -86
  278. package/docs/.nojekyll +0 -0
  279. package/docs/assets/26e93147f10415a0ed4a.svg +0 -0
  280. package/docs/assets/75c9471662e97ee24f29.svg +0 -0
  281. package/docs/assets/db90e4df2373980c497d.svg +0 -0
  282. package/docs/assets/hierarchy.css +0 -0
  283. package/docs/assets/hierarchy.js +0 -0
  284. package/docs/assets/highlight.css +0 -0
  285. package/docs/assets/main.js +0 -0
  286. package/docs/assets/navigation.js +0 -0
  287. package/docs/assets/search.js +0 -0
  288. package/docs/assets/style.css +0 -0
  289. package/docs/classes/ApiServiceInstance.html +0 -0
  290. package/docs/classes/ConfigServiceInstance.html +0 -0
  291. package/docs/classes/DOMServiceInstance.html +0 -0
  292. package/docs/classes/NotifyServiceInstance.html +0 -0
  293. package/docs/classes/RWSClientInstance.html +0 -0
  294. package/docs/classes/RWSPlugin.html +0 -0
  295. package/docs/classes/RWSService.html +0 -0
  296. package/docs/classes/RWSViewComponent.html +0 -0
  297. package/docs/classes/ServiceWorkerServiceInstance.html +0 -0
  298. package/docs/classes/UtilsServiceInstance.html +0 -0
  299. package/docs/functions/ApiService.html +0 -0
  300. package/docs/functions/ConfigService.html +0 -0
  301. package/docs/functions/DOMService.html +0 -0
  302. package/docs/functions/NotifyService.html +0 -0
  303. package/docs/functions/RWSClient.html +0 -0
  304. package/docs/functions/RWSContainer.html +0 -0
  305. package/docs/functions/RWSIgnore.html +0 -0
  306. package/docs/functions/RWSInject.html +0 -0
  307. package/docs/functions/RWSView.html +0 -0
  308. package/docs/functions/ServiceWorkerService.html +0 -0
  309. package/docs/functions/UtilsService.html +0 -0
  310. package/docs/functions/attr.html +0 -0
  311. package/docs/functions/declareRWSComponents.html +0 -0
  312. package/docs/functions/ngAttr.html +0 -0
  313. package/docs/functions/observable.html +0 -0
  314. package/docs/functions/provideRWSDesignSystem.html +0 -0
  315. package/docs/functions/sanitizedAttr.html +0 -0
  316. package/docs/hierarchy.html +0 -0
  317. package/docs/index.html +0 -0
  318. package/docs/interfaces/HTMLAttributes.html +0 -0
  319. package/docs/interfaces/HTMLTag.html +0 -0
  320. package/docs/interfaces/IRWSConfig.html +0 -0
  321. package/docs/interfaces/IRWSDecoratorOptions.html +0 -0
  322. package/docs/interfaces/IRWSHttpRoute.html +0 -0
  323. package/docs/interfaces/IRWSPrefixedHTTProutes.html +0 -0
  324. package/docs/interfaces/IRWSUser.html +0 -0
  325. package/docs/modules.html +0 -0
  326. package/docs/types/DOMOutputType.html +0 -0
  327. package/docs/types/DefaultRWSPluginOptionsType.html +0 -0
  328. package/docs/types/HTMLTagTransformerType.html +0 -0
  329. package/docs/types/IRWSAssetShowOptions.html +0 -0
  330. package/docs/types/IRWSBackendRoute.html +0 -0
  331. package/docs/types/NotifyLogType.html +0 -0
  332. package/docs/types/NotifyUiType.html +0 -0
  333. package/docs/types/RWSNotify.html +0 -0
  334. package/docs/types/RWSPluginEntry.html +0 -0
  335. package/docs/types/TagsProcessorType.html +0 -0
  336. package/foundation/index.js +0 -0
  337. package/foundation/rws-foundation.d.ts +0 -0
  338. package/foundation/rws-foundation.js +0 -0
  339. package/package.json +111 -111
  340. package/service_worker/src/_service_worker.ts +0 -0
  341. package/service_worker/tsconfig.json +0 -0
  342. package/service_worker/webpack.config.js +0 -0
  343. package/src/client/components.ts +0 -0
  344. package/src/client/config.ts +0 -0
  345. package/src/client/hotReload.ts +0 -0
  346. package/src/client/services.ts +0 -0
  347. package/src/client.ts +0 -0
  348. package/src/components/_attrs/_default_observable_accessor.ts +0 -0
  349. package/src/components/_attrs/_extended_accessor.ts +0 -0
  350. package/src/components/_attrs/_external_handler.ts +0 -0
  351. package/src/components/_attrs/_external_observable_accessor.ts +0 -0
  352. package/src/components/_attrs/angular-attr.ts +0 -0
  353. package/src/components/_attrs/external-attr.ts +0 -0
  354. package/src/components/_attrs/external-observable.ts +0 -0
  355. package/src/components/_attrs/sanitize-html.ts +0 -0
  356. package/src/components/_component.ts +0 -0
  357. package/src/components/_container.ts +0 -0
  358. package/src/components/_decorator.ts +0 -0
  359. package/src/components/_decorators/RWSFillBuild.ts +0 -0
  360. package/src/components/_decorators/RWSInject.ts +0 -0
  361. package/src/components/_decorators/RWSService.ts +0 -0
  362. package/src/components/_decorators/_di.ts +0 -0
  363. package/src/components/_definitions.ts +0 -0
  364. package/src/components/_event_handling.ts +0 -0
  365. package/src/components/index.ts +0 -0
  366. package/src/components/rws/line-splitter/component.ts +0 -0
  367. package/src/components/rws/line-splitter/styles/_tags.scss +0 -0
  368. package/src/components/rws/line-splitter/styles/layout.scss +0 -0
  369. package/src/components/rws/line-splitter/template.html +0 -0
  370. package/src/components/rws/loader/component.ts +0 -0
  371. package/src/components/rws/loader/styles/layout.scss +0 -0
  372. package/src/components/rws/loader/template.html +0 -0
  373. package/src/components/rws/progress/component.ts +0 -0
  374. package/src/components/rws/progress/styles/layout.scss +0 -0
  375. package/src/components/rws/progress/template.html +0 -0
  376. package/src/components/rws/reformer/component.ts +0 -0
  377. package/src/components/rws/reformer/fields/boolean/component.ts +0 -0
  378. package/src/components/rws/reformer/fields/boolean/styles/layout.scss +0 -0
  379. package/src/components/rws/reformer/fields/boolean/template.html +0 -0
  380. package/src/components/rws/reformer/fields/date/component.ts +0 -0
  381. package/src/components/rws/reformer/fields/date/styles/layout.scss +0 -0
  382. package/src/components/rws/reformer/fields/date/template.html +0 -0
  383. package/src/components/rws/reformer/fields/number/component.ts +0 -0
  384. package/src/components/rws/reformer/fields/number/styles/layout.scss +0 -0
  385. package/src/components/rws/reformer/fields/number/template.html +0 -0
  386. package/src/components/rws/reformer/fields/text/component.ts +0 -0
  387. package/src/components/rws/reformer/fields/text/styles/layout.scss +0 -0
  388. package/src/components/rws/reformer/fields/text/template.html +0 -0
  389. package/src/components/rws/reformer/styles/layout.scss +0 -0
  390. package/src/components/rws/reformer/template.html +0 -0
  391. package/src/components/rws/reformer/types/IReFormerTypes.ts +0 -0
  392. package/src/components/rws/rws-api-resource/component.ts +0 -0
  393. package/src/components/rws/rws-api-resource/styles/layout.scss +0 -0
  394. package/src/components/rws/rws-api-resource/template.html +0 -0
  395. package/src/components/rws/rws-api-resource/variants/form/component.ts +0 -0
  396. package/src/components/rws/rws-api-resource/variants/form/styles/layout.scss +0 -0
  397. package/src/components/rws/rws-api-resource/variants/form/template.html +0 -0
  398. package/src/components/rws/rws-api-resource/variants/list/component.ts +0 -0
  399. package/src/components/rws/rws-api-resource/variants/list/styles/layout.scss +0 -0
  400. package/src/components/rws/rws-api-resource/variants/list/template.html +0 -0
  401. package/src/components/rws/rws-modal/component.ts +0 -0
  402. package/src/components/rws/rws-modal/styles/layout.scss +0 -0
  403. package/src/components/rws/rws-modal/template.html +0 -0
  404. package/src/components/rws/rws-table/component.ts +0 -0
  405. package/src/components/rws/rws-table/styles/layout.scss +0 -0
  406. package/src/components/rws/rws-table/template.html +0 -0
  407. package/src/components/rws/uploader/component.ts +0 -0
  408. package/src/components/rws/uploader/styles/layout.scss +0 -0
  409. package/src/components/rws/uploader/template.html +0 -0
  410. package/src/index.d.ts +0 -0
  411. package/src/index.ts +0 -0
  412. package/src/plugins/_builder.js +0 -0
  413. package/src/plugins/_plugin.ts +0 -0
  414. package/src/services/ApiService.ts +0 -0
  415. package/src/services/ConfigService.ts +0 -0
  416. package/src/services/DOMService.ts +0 -0
  417. package/src/services/NotifyService.ts +0 -0
  418. package/src/services/ServiceWorkerService.ts +0 -0
  419. package/src/services/UtilsService.ts +0 -0
  420. package/src/services/_api/backend.ts +0 -0
  421. package/src/services/_api/calls.ts +0 -0
  422. package/src/services/_service.ts +0 -0
  423. package/src/styles/README.md +0 -0
  424. package/src/styles/_darkreader.scss +0 -0
  425. package/src/styles/_grid.scss +0 -0
  426. package/src/styles/_grid_legacy.scss +0 -0
  427. package/src/styles/_misc.scss +0 -0
  428. package/src/styles/_scrollbars.scss +0 -0
  429. package/src/styles/includes.scss +0 -0
  430. package/src/types/IBackendCore.ts +0 -0
  431. package/src/types/IRWSConfig.ts +0 -0
  432. package/src/types/IRWSPlugin.ts +0 -0
  433. package/src/types/IRWSResource.ts +0 -0
  434. package/src/types/IRWSUser.ts +0 -0
  435. package/src/types/IRWSViewComponent.ts +0 -0
  436. package/src/types/IReFormerField.ts +0 -0
  437. package/src/types/RWSNotify.ts +0 -0
  438. package/src/types/RWSWindow.ts +0 -0
  439. package/tsconfig.json +18 -18
  440. package/typedoc.json +13 -13
  441. package/types/declarations.d.ts +0 -0
  442. package/types/docs-typings.d.ts +0 -0
package/_tools.js CHANGED
@@ -1,397 +1,397 @@
1
- const path = require('path');
2
- const fs = require('fs');
3
- const ts = require('typescript');
4
- const { spawn } = require('child_process');
5
- const JSON5 = require('json5');
6
-
7
- const { setupTsConfig } = require('./cfg/tsconfigSetup');
8
- const LoadersHelper = require('./cfg/build_steps/webpack/_loaders');
9
-
10
- const { rwsPath } = require('@rws-framework/console');
11
-
12
- function findRootWorkspacePath(currentPath) {
13
- const parentPackageJsonPath = path.join(currentPath + '/..', 'package.json');
14
- const parentPackageDir = path.dirname(parentPackageJsonPath);
15
-
16
- if (fs.existsSync(parentPackageJsonPath)) {
17
- const packageJson = JSON.parse(fs.readFileSync(parentPackageJsonPath, 'utf-8'));
18
-
19
- if (packageJson.workspaces) {
20
- return this.findRootWorkspacePath(parentPackageDir);
21
- }
22
- }
23
-
24
- return currentPath;
25
- }
26
-
27
- function findPackageDir() {
28
- return path.resolve(path.dirname(module.id));
29
- }
30
-
31
- function getActiveWorkSpaces(currentPath, mode = 'all') {
32
- if (!currentPath) {
33
- throw new Error(`[_tools.js:getActiveWorkSpaces] "currentPath" argument is required.`);
34
- }
35
-
36
- if (!(['all', 'frontend', 'backend'].includes(mode))) {
37
- throw new Error(`[_tools.js:getActiveWorkSpaces] "mode" argument can be only: "frontend", "backend" or "all".`);
38
- }
39
-
40
- const rootPkgDir = findRootWorkspacePath(currentPath)
41
- const parentPackageJsonPath = path.join(rootPkgDir, 'package.json');
42
- const parentPackageDir = path.dirname(parentPackageJsonPath);
43
-
44
- if (fs.existsSync(parentPackageJsonPath)) {
45
- const packageJson = JSON.parse(fs.readFileSync(parentPackageJsonPath, 'utf-8'));
46
-
47
- if (packageJson.workspaces) {
48
- return packageJson.workspaces.map((workspaceName) => path.join(rootPkgDir, workspaceName)).filter((workspaceDir) => {
49
- if (mode === 'all') {
50
- return true;
51
- }
52
-
53
- let rwsPkgName = '@rws-framework/server';
54
-
55
- if (mode === 'frontend') {
56
- rwsPkgName = '@rws-framework/client';
57
- }
58
-
59
- let hasDesiredPackage = false;
60
-
61
- const workspaceWebpackFilePath = path.join(workspaceDir, 'package.json');
62
- const workspacePackageJson = JSON.parse(fs.readFileSync(workspaceWebpackFilePath, 'utf-8'));
63
-
64
- if (workspacePackageJson.dependencies && (!!workspacePackageJson.dependencies[rwsPkgName])) {
65
- hasDesiredPackage = true;
66
- }
67
-
68
- return hasDesiredPackage;
69
- });
70
- }
71
- }
72
-
73
- return [currentPath];
74
- }
75
-
76
- async function runCommand(command, cwd = null, silent = false, extraArgs = { env: {} }) {
77
- return new Promise((resolve, reject) => {
78
- const [cmd, ...args] = command.split(' ');
79
-
80
- if (!cwd) {
81
- console.log(`[RWS] Setting default CWD for "${command}"`);
82
- cwd = process.cwd();
83
- }
84
-
85
-
86
- const env = { ...process.env, ...extraArgs.env };
87
-
88
- console.log(`[RWS] Running command "${command}" from "${cwd}"`);
89
-
90
- const spawned = spawn(cmd, args, { stdio: silent ? 'ignore' : 'inherit', cwd, env });
91
-
92
- spawned.on('exit', (code) => {
93
- if (code !== 0) {
94
- return reject(new Error(`Command failed with exit code ${code}`));
95
- }
96
- resolve();
97
- });
98
-
99
- spawned.on('error', (error) => {
100
- reject(error);
101
- });
102
- });
103
- }
104
-
105
- function findSuperclassFilePath(entryFile) {
106
- const program = ts.createProgram([entryFile], {
107
- target: ts.ScriptTarget.ES5,
108
- module: ts.ModuleKind.CommonJS
109
- });
110
- const checker = program.getTypeChecker();
111
-
112
- for (const sourceFile of program.getSourceFiles()) {
113
- if (!sourceFile.isDeclarationFile) {
114
- ts.forEachChild(sourceFile, visit);
115
- }
116
- }
117
-
118
- function visit(node) {
119
- if (ts.isClassDeclaration(node) && node.heritageClauses) {
120
- for (const clause of node.heritageClauses) {
121
- if (clause.token === ts.SyntaxKind.ExtendsKeyword) {
122
- for (const type of clause.types) {
123
- const symbol = checker.getSymbolAtLocation(type.expression);
124
- if (symbol && symbol.declarations) {
125
- const declaration = symbol.declarations[0];
126
- const sourceFile = declaration.getSourceFile();
127
- return sourceFile.fileName; // Returns the file path of the first superclass it finds
128
- }
129
- }
130
- }
131
- }
132
- }
133
-
134
- ts.forEachChild(node, visit);
135
- }
136
-
137
- return null; // Return null if no superclass or file path is found
138
- }
139
-
140
- function findServiceFilesWithClassExtend(dir, classPath) {
141
- const files = fs.readdirSync(dir);
142
- let results = []
143
-
144
- files.forEach(file => {
145
- const filePath = path.join(dir, file);
146
- const fileStat = fs.statSync(filePath);
147
-
148
- if (fileStat.isDirectory()) {
149
- results = [...results, ...findServiceFilesWithClassExtend(filePath, classPath)];
150
- } else if (fileStat.isFile() && filePath.endsWith('.ts')) {
151
- const foundPath = findSuperclassFilePath(filePath);
152
- if (foundPath === classPath) {
153
- results = [...results, filePath];
154
- }
155
- };
156
- });
157
-
158
- return results;
159
- }
160
-
161
- function findComponentFilesWithText(dir, text, ignored = [], fileList = []) {
162
- const files = fs.readdirSync(dir);
163
-
164
-
165
- files.forEach(file => {
166
- const filePath = path.join(dir, file);
167
- const fileStat = fs.statSync(filePath);
168
-
169
- if (fileStat.isDirectory() && !ignored.includes(file)) {
170
- findComponentFilesWithText(filePath, text, ignored, fileList);
171
- } else if (fileStat.isFile() && filePath.endsWith('component.ts')) {
172
- const content = fs.readFileSync(filePath, 'utf8');
173
- if (content.includes(text)) {
174
- try {
175
- const compInfo = extractComponentInfo(content);
176
-
177
- if (compInfo) {
178
-
179
- const { tagName, className, options } = compInfo;
180
-
181
- if (options?.ignorePackaging) {
182
- return;
183
- }
184
-
185
- fileList.push({
186
- filePath,
187
- tagName,
188
- className,
189
- sanitName: className.toLowerCase(),
190
- content,
191
- isDebugged: options?.debugPackaging,
192
- isIgnored: options?.ignorePackaging,
193
- isOreo: options?.oreoMode
194
- });
195
-
196
- }
197
- }catch(e){
198
- console.log('ERRORER', e);
199
- throw new Error(`findComponentFilesWithText('${dir}', '${text}') error`)
200
- }
201
- }
202
- }
203
- });
204
-
205
- return fileList;
206
- }
207
-
208
-
209
- function extractRWSViewArguments(sourceFile) {
210
- let argumentsExtracted = {
211
- className: null,
212
- tagName: null,
213
- options: null
214
- };
215
-
216
- let foundDecorator = false;
217
- let className = null;
218
- function visit(node) {
219
- if (ts.isClassDeclaration(node)) {
220
- className = node.name ? node.name.getText(sourceFile) : null;
221
- }
222
-
223
- if (ts.isDecorator(node) && ts.isCallExpression(node.expression)) {
224
- const expression = node.expression;
225
- const decoratorName = expression.expression.getText(sourceFile);
226
-
227
- if (decoratorName === 'RWSView') {
228
-
229
- argumentsExtracted.className = className;
230
-
231
-
232
- foundDecorator = true;
233
- const args = expression.arguments;
234
- let tagName = null;
235
- let options = null;
236
-
237
- if (args.length > 0 && ts.isStringLiteral(args[0])) {
238
- tagName = args[0].text;
239
- argumentsExtracted.tagName = tagName;
240
- }
241
-
242
- if (args.length > 1 && ts.isObjectLiteralExpression(args[1])) {
243
- const argText = args[1].getText();
244
- options = JSON5.parse(argText);
245
- argumentsExtracted.options = options;
246
- }
247
-
248
- }
249
- }
250
-
251
- ts.forEachChild(node, visit);
252
- }
253
-
254
- visit(sourceFile);
255
-
256
- if (!foundDecorator) {
257
- return null;
258
- }
259
-
260
- return argumentsExtracted;
261
- }
262
-
263
- function extractRWSIgnoreArguments(sourceFile) {
264
- let argumentsExtracted = {
265
- params: null,
266
- };
267
- let foundDecorator = false;
268
- let ignored = false;
269
-
270
- function visit(node) {
271
- if (ts.isDecorator(node) && ts.isCallExpression(node.expression)) {
272
- const expression = node.expression;
273
- const decoratorName = expression.expression.getText(sourceFile);
274
- if (decoratorName === 'RWSView') {
275
- foundDecorator = true;
276
- const args = expression.arguments;
277
-
278
- if (args.length) {
279
- // Assuming the second argument is an object literal
280
- if (ts.isObjectLiteralExpression(args[0])) {
281
- const argVal = args[0].getText(sourceFile);
282
- argumentsExtracted.options = argVal;
283
-
284
- if (argVal.ignorePackaging === true) {
285
- ignored = true;
286
- }
287
- }
288
- }
289
- }
290
- }
291
-
292
- ts.forEachChild(node, visit);
293
- }
294
-
295
- visit(sourceFile);
296
-
297
- if (!foundDecorator) {
298
- return true;
299
- }
300
-
301
- return ignored;
302
- }
303
-
304
- function extractComponentInfo(componentCode) {
305
- const decoratorData = LoadersHelper.extractRWSViewArgs(componentCode, true);
306
-
307
- if(!decoratorData){
308
- return null;
309
- }
310
- // console.log(decoratorData, componentCode);
311
-
312
- return {
313
- tagName: decoratorData.viewDecoratorData.tagName,
314
- className: decoratorData.viewDecoratorData.className,
315
- options: decoratorData.viewDecoratorData.decoratorArgs
316
- };
317
- }
318
-
319
- function getAllFilesInFolder(folderPath, ignoreFilenames = [], recursive = false) {
320
- const files = [];
321
- function traverseDirectory(currentPath) {
322
- const entries = fs.readdirSync(currentPath, { withFileTypes: true });
323
- entries.forEach(entry => {
324
- const entryPath = path.join(currentPath, entry.name);
325
- if (entry.isFile()) {
326
- let pass = true;
327
- ignoreFilenames.forEach((regEx) => {
328
- if (regEx.test(entryPath)) {
329
- pass = false;
330
- }
331
- });
332
- if (pass) {
333
- files.push(entryPath);
334
- }
335
- }
336
- else if (entry.isDirectory() && recursive) {
337
- traverseDirectory(entryPath);
338
- }
339
- });
340
- }
341
- traverseDirectory(folderPath);
342
- return files;
343
- }
344
-
345
- function getRndInteger(min, max) {
346
- return Math.floor(Math.random() * (max - min + 1) ) + min;
347
- }
348
-
349
- function printAddJs(scriptFileName, partedDirUrlPrefix, partedPrefix, onload = ''){
350
- const sriptVarName = 'script' + getRndInteger(0, 1000);
351
- return `
352
- const ${sriptVarName} = document.createElement('script');
353
- ${sriptVarName}.src = '${partedDirUrlPrefix}/${partedPrefix}.${scriptFileName}.js';
354
- ${sriptVarName}.type = 'text/javascript';
355
-
356
- document.body.appendChild(${sriptVarName});
357
-
358
- ${onload}
359
- `
360
- }
361
-
362
- function getPartedModeVendorsBannerParams(partedDirUrlPrefix, partedPrefix, isDev = true) {
363
- let code = `if(!window.RWS_PARTS_LOADED){
364
- ${printAddJs('vendors', partedDirUrlPrefix, partedPrefix, `
365
- window.RWS_PARTS_LOADED = true;
366
- console.log('\x1b[1m[RWS]\x1b[0m', 'vendors injected for parted mode');
367
- `)}
368
- }`;
369
-
370
- if(!isDev){
371
- code = code.replace(/\n\s+/g, '');
372
- }
373
-
374
- return {
375
- banner: code,
376
- raw: true,
377
- entryOnly: true,
378
- include: `${partedPrefix}.client.js`
379
- };
380
- }
381
-
382
-
383
- module.exports = {
384
- findRootWorkspacePath,
385
- findPackageDir,
386
- getActiveWorkSpaces,
387
- runCommand,
388
- findComponentFilesWithText,
389
- extractComponentInfo,
390
- extractRWSViewArguments,
391
- extractRWSIgnoreArguments,
392
- findServiceFilesWithClassExtend,
393
- findSuperclassFilePath,
394
- getAllFilesInFolder,
395
- setupTsConfig,
396
- getPartedModeVendorsBannerParams
1
+ const path = require('path');
2
+ const fs = require('fs');
3
+ const ts = require('typescript');
4
+ const { spawn } = require('child_process');
5
+ const JSON5 = require('json5');
6
+
7
+ const { setupTsConfig } = require('./cfg/tsconfigSetup');
8
+ const LoadersHelper = require('./cfg/build_steps/webpack/_loaders');
9
+
10
+ const { rwsPath } = require('@rws-framework/console');
11
+
12
+ function findRootWorkspacePath(currentPath) {
13
+ const parentPackageJsonPath = path.join(currentPath + '/..', 'package.json');
14
+ const parentPackageDir = path.dirname(parentPackageJsonPath);
15
+
16
+ if (fs.existsSync(parentPackageJsonPath)) {
17
+ const packageJson = JSON.parse(fs.readFileSync(parentPackageJsonPath, 'utf-8'));
18
+
19
+ if (packageJson.workspaces) {
20
+ return this.findRootWorkspacePath(parentPackageDir);
21
+ }
22
+ }
23
+
24
+ return currentPath;
25
+ }
26
+
27
+ function findPackageDir() {
28
+ return path.resolve(path.dirname(module.id));
29
+ }
30
+
31
+ function getActiveWorkSpaces(currentPath, mode = 'all') {
32
+ if (!currentPath) {
33
+ throw new Error(`[_tools.js:getActiveWorkSpaces] "currentPath" argument is required.`);
34
+ }
35
+
36
+ if (!(['all', 'frontend', 'backend'].includes(mode))) {
37
+ throw new Error(`[_tools.js:getActiveWorkSpaces] "mode" argument can be only: "frontend", "backend" or "all".`);
38
+ }
39
+
40
+ const rootPkgDir = findRootWorkspacePath(currentPath)
41
+ const parentPackageJsonPath = path.join(rootPkgDir, 'package.json');
42
+ const parentPackageDir = path.dirname(parentPackageJsonPath);
43
+
44
+ if (fs.existsSync(parentPackageJsonPath)) {
45
+ const packageJson = JSON.parse(fs.readFileSync(parentPackageJsonPath, 'utf-8'));
46
+
47
+ if (packageJson.workspaces) {
48
+ return packageJson.workspaces.map((workspaceName) => path.join(rootPkgDir, workspaceName)).filter((workspaceDir) => {
49
+ if (mode === 'all') {
50
+ return true;
51
+ }
52
+
53
+ let rwsPkgName = '@rws-framework/server';
54
+
55
+ if (mode === 'frontend') {
56
+ rwsPkgName = '@rws-framework/client';
57
+ }
58
+
59
+ let hasDesiredPackage = false;
60
+
61
+ const workspaceWebpackFilePath = path.join(workspaceDir, 'package.json');
62
+ const workspacePackageJson = JSON.parse(fs.readFileSync(workspaceWebpackFilePath, 'utf-8'));
63
+
64
+ if (workspacePackageJson.dependencies && (!!workspacePackageJson.dependencies[rwsPkgName])) {
65
+ hasDesiredPackage = true;
66
+ }
67
+
68
+ return hasDesiredPackage;
69
+ });
70
+ }
71
+ }
72
+
73
+ return [currentPath];
74
+ }
75
+
76
+ async function runCommand(command, cwd = null, silent = false, extraArgs = { env: {} }) {
77
+ return new Promise((resolve, reject) => {
78
+ const [cmd, ...args] = command.split(' ');
79
+
80
+ if (!cwd) {
81
+ console.log(`[RWS] Setting default CWD for "${command}"`);
82
+ cwd = process.cwd();
83
+ }
84
+
85
+
86
+ const env = { ...process.env, ...extraArgs.env };
87
+
88
+ console.log(`[RWS] Running command "${command}" from "${cwd}"`);
89
+
90
+ const spawned = spawn(cmd, args, { stdio: silent ? 'ignore' : 'inherit', cwd, env });
91
+
92
+ spawned.on('exit', (code) => {
93
+ if (code !== 0) {
94
+ return reject(new Error(`Command failed with exit code ${code}`));
95
+ }
96
+ resolve();
97
+ });
98
+
99
+ spawned.on('error', (error) => {
100
+ reject(error);
101
+ });
102
+ });
103
+ }
104
+
105
+ function findSuperclassFilePath(entryFile) {
106
+ const program = ts.createProgram([entryFile], {
107
+ target: ts.ScriptTarget.ES5,
108
+ module: ts.ModuleKind.CommonJS
109
+ });
110
+ const checker = program.getTypeChecker();
111
+
112
+ for (const sourceFile of program.getSourceFiles()) {
113
+ if (!sourceFile.isDeclarationFile) {
114
+ ts.forEachChild(sourceFile, visit);
115
+ }
116
+ }
117
+
118
+ function visit(node) {
119
+ if (ts.isClassDeclaration(node) && node.heritageClauses) {
120
+ for (const clause of node.heritageClauses) {
121
+ if (clause.token === ts.SyntaxKind.ExtendsKeyword) {
122
+ for (const type of clause.types) {
123
+ const symbol = checker.getSymbolAtLocation(type.expression);
124
+ if (symbol && symbol.declarations) {
125
+ const declaration = symbol.declarations[0];
126
+ const sourceFile = declaration.getSourceFile();
127
+ return sourceFile.fileName; // Returns the file path of the first superclass it finds
128
+ }
129
+ }
130
+ }
131
+ }
132
+ }
133
+
134
+ ts.forEachChild(node, visit);
135
+ }
136
+
137
+ return null; // Return null if no superclass or file path is found
138
+ }
139
+
140
+ function findServiceFilesWithClassExtend(dir, classPath) {
141
+ const files = fs.readdirSync(dir);
142
+ let results = []
143
+
144
+ files.forEach(file => {
145
+ const filePath = path.join(dir, file);
146
+ const fileStat = fs.statSync(filePath);
147
+
148
+ if (fileStat.isDirectory()) {
149
+ results = [...results, ...findServiceFilesWithClassExtend(filePath, classPath)];
150
+ } else if (fileStat.isFile() && filePath.endsWith('.ts')) {
151
+ const foundPath = findSuperclassFilePath(filePath);
152
+ if (foundPath === classPath) {
153
+ results = [...results, filePath];
154
+ }
155
+ };
156
+ });
157
+
158
+ return results;
159
+ }
160
+
161
+ function findComponentFilesWithText(dir, text, ignored = [], fileList = []) {
162
+ const files = fs.readdirSync(dir);
163
+
164
+
165
+ files.forEach(file => {
166
+ const filePath = path.join(dir, file);
167
+ const fileStat = fs.statSync(filePath);
168
+
169
+ if (fileStat.isDirectory() && !ignored.includes(file)) {
170
+ findComponentFilesWithText(filePath, text, ignored, fileList);
171
+ } else if (fileStat.isFile() && filePath.endsWith('component.ts')) {
172
+ const content = fs.readFileSync(filePath, 'utf8');
173
+ if (content.includes(text)) {
174
+ try {
175
+ const compInfo = extractComponentInfo(content);
176
+
177
+ if (compInfo) {
178
+
179
+ const { tagName, className, options } = compInfo;
180
+
181
+ if (options?.ignorePackaging) {
182
+ return;
183
+ }
184
+
185
+ fileList.push({
186
+ filePath,
187
+ tagName,
188
+ className,
189
+ sanitName: className.toLowerCase(),
190
+ content,
191
+ isDebugged: options?.debugPackaging,
192
+ isIgnored: options?.ignorePackaging,
193
+ isOreo: options?.oreoMode
194
+ });
195
+
196
+ }
197
+ }catch(e){
198
+ console.log('ERRORER', e);
199
+ throw new Error(`findComponentFilesWithText('${dir}', '${text}') error`)
200
+ }
201
+ }
202
+ }
203
+ });
204
+
205
+ return fileList;
206
+ }
207
+
208
+
209
+ function extractRWSViewArguments(sourceFile) {
210
+ let argumentsExtracted = {
211
+ className: null,
212
+ tagName: null,
213
+ options: null
214
+ };
215
+
216
+ let foundDecorator = false;
217
+ let className = null;
218
+ function visit(node) {
219
+ if (ts.isClassDeclaration(node)) {
220
+ className = node.name ? node.name.getText(sourceFile) : null;
221
+ }
222
+
223
+ if (ts.isDecorator(node) && ts.isCallExpression(node.expression)) {
224
+ const expression = node.expression;
225
+ const decoratorName = expression.expression.getText(sourceFile);
226
+
227
+ if (decoratorName === 'RWSView') {
228
+
229
+ argumentsExtracted.className = className;
230
+
231
+
232
+ foundDecorator = true;
233
+ const args = expression.arguments;
234
+ let tagName = null;
235
+ let options = null;
236
+
237
+ if (args.length > 0 && ts.isStringLiteral(args[0])) {
238
+ tagName = args[0].text;
239
+ argumentsExtracted.tagName = tagName;
240
+ }
241
+
242
+ if (args.length > 1 && ts.isObjectLiteralExpression(args[1])) {
243
+ const argText = args[1].getText();
244
+ options = JSON5.parse(argText);
245
+ argumentsExtracted.options = options;
246
+ }
247
+
248
+ }
249
+ }
250
+
251
+ ts.forEachChild(node, visit);
252
+ }
253
+
254
+ visit(sourceFile);
255
+
256
+ if (!foundDecorator) {
257
+ return null;
258
+ }
259
+
260
+ return argumentsExtracted;
261
+ }
262
+
263
+ function extractRWSIgnoreArguments(sourceFile) {
264
+ let argumentsExtracted = {
265
+ params: null,
266
+ };
267
+ let foundDecorator = false;
268
+ let ignored = false;
269
+
270
+ function visit(node) {
271
+ if (ts.isDecorator(node) && ts.isCallExpression(node.expression)) {
272
+ const expression = node.expression;
273
+ const decoratorName = expression.expression.getText(sourceFile);
274
+ if (decoratorName === 'RWSView') {
275
+ foundDecorator = true;
276
+ const args = expression.arguments;
277
+
278
+ if (args.length) {
279
+ // Assuming the second argument is an object literal
280
+ if (ts.isObjectLiteralExpression(args[0])) {
281
+ const argVal = args[0].getText(sourceFile);
282
+ argumentsExtracted.options = argVal;
283
+
284
+ if (argVal.ignorePackaging === true) {
285
+ ignored = true;
286
+ }
287
+ }
288
+ }
289
+ }
290
+ }
291
+
292
+ ts.forEachChild(node, visit);
293
+ }
294
+
295
+ visit(sourceFile);
296
+
297
+ if (!foundDecorator) {
298
+ return true;
299
+ }
300
+
301
+ return ignored;
302
+ }
303
+
304
+ function extractComponentInfo(componentCode) {
305
+ const decoratorData = LoadersHelper.extractRWSViewArgs(componentCode, true);
306
+
307
+ if(!decoratorData){
308
+ return null;
309
+ }
310
+ // console.log(decoratorData, componentCode);
311
+
312
+ return {
313
+ tagName: decoratorData.viewDecoratorData.tagName,
314
+ className: decoratorData.viewDecoratorData.className,
315
+ options: decoratorData.viewDecoratorData.decoratorArgs
316
+ };
317
+ }
318
+
319
+ function getAllFilesInFolder(folderPath, ignoreFilenames = [], recursive = false) {
320
+ const files = [];
321
+ function traverseDirectory(currentPath) {
322
+ const entries = fs.readdirSync(currentPath, { withFileTypes: true });
323
+ entries.forEach(entry => {
324
+ const entryPath = path.join(currentPath, entry.name);
325
+ if (entry.isFile()) {
326
+ let pass = true;
327
+ ignoreFilenames.forEach((regEx) => {
328
+ if (regEx.test(entryPath)) {
329
+ pass = false;
330
+ }
331
+ });
332
+ if (pass) {
333
+ files.push(entryPath);
334
+ }
335
+ }
336
+ else if (entry.isDirectory() && recursive) {
337
+ traverseDirectory(entryPath);
338
+ }
339
+ });
340
+ }
341
+ traverseDirectory(folderPath);
342
+ return files;
343
+ }
344
+
345
+ function getRndInteger(min, max) {
346
+ return Math.floor(Math.random() * (max - min + 1) ) + min;
347
+ }
348
+
349
+ function printAddJs(scriptFileName, partedDirUrlPrefix, partedPrefix, onload = ''){
350
+ const sriptVarName = 'script' + getRndInteger(0, 1000);
351
+ return `
352
+ const ${sriptVarName} = document.createElement('script');
353
+ ${sriptVarName}.src = '${partedDirUrlPrefix}/${partedPrefix}.${scriptFileName}.js';
354
+ ${sriptVarName}.type = 'text/javascript';
355
+
356
+ document.body.appendChild(${sriptVarName});
357
+
358
+ ${onload}
359
+ `
360
+ }
361
+
362
+ function getPartedModeVendorsBannerParams(partedDirUrlPrefix, partedPrefix, isDev = true) {
363
+ let code = `if(!window.RWS_PARTS_LOADED){
364
+ ${printAddJs('vendors', partedDirUrlPrefix, partedPrefix, `
365
+ window.RWS_PARTS_LOADED = true;
366
+ console.log('\x1b[1m[RWS]\x1b[0m', 'vendors injected for parted mode');
367
+ `)}
368
+ }`;
369
+
370
+ if(!isDev){
371
+ code = code.replace(/\n\s+/g, '');
372
+ }
373
+
374
+ return {
375
+ banner: code,
376
+ raw: true,
377
+ entryOnly: true,
378
+ include: `${partedPrefix}.client.js`
379
+ };
380
+ }
381
+
382
+
383
+ module.exports = {
384
+ findRootWorkspacePath,
385
+ findPackageDir,
386
+ getActiveWorkSpaces,
387
+ runCommand,
388
+ findComponentFilesWithText,
389
+ extractComponentInfo,
390
+ extractRWSViewArguments,
391
+ extractRWSIgnoreArguments,
392
+ findServiceFilesWithClassExtend,
393
+ findSuperclassFilePath,
394
+ getAllFilesInFolder,
395
+ setupTsConfig,
396
+ getPartedModeVendorsBannerParams
397
397
  }