slicejs-web-framework 3.1.1 → 3.1.3

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 (222) hide show
  1. package/Slice/Slice.js +1 -1
  2. package/Slice/tests/build-js-only-visual-components.test.js +24 -9
  3. package/package.json +1 -1
  4. package/.worktrees/bundling-v2-precompiled-registrars/LICENSE +0 -21
  5. package/.worktrees/bundling-v2-precompiled-registrars/Slice/Components/Structural/ContextManager/ContextManager.js +0 -369
  6. package/.worktrees/bundling-v2-precompiled-registrars/Slice/Components/Structural/ContextManager/ContextManagerDebugger.js +0 -297
  7. package/.worktrees/bundling-v2-precompiled-registrars/Slice/Components/Structural/Controller/Controller.js +0 -972
  8. package/.worktrees/bundling-v2-precompiled-registrars/Slice/Components/Structural/Debugger/Debugger.css +0 -620
  9. package/.worktrees/bundling-v2-precompiled-registrars/Slice/Components/Structural/Debugger/Debugger.html +0 -73
  10. package/.worktrees/bundling-v2-precompiled-registrars/Slice/Components/Structural/Debugger/Debugger.js +0 -1548
  11. package/.worktrees/bundling-v2-precompiled-registrars/Slice/Components/Structural/EventManager/EventManager.js +0 -338
  12. package/.worktrees/bundling-v2-precompiled-registrars/Slice/Components/Structural/EventManager/EventManagerDebugger.js +0 -361
  13. package/.worktrees/bundling-v2-precompiled-registrars/Slice/Components/Structural/Logger/Log.js +0 -10
  14. package/.worktrees/bundling-v2-precompiled-registrars/Slice/Components/Structural/Logger/Logger.js +0 -146
  15. package/.worktrees/bundling-v2-precompiled-registrars/Slice/Components/Structural/Router/Router.js +0 -721
  16. package/.worktrees/bundling-v2-precompiled-registrars/Slice/Components/Structural/StylesManager/StylesManager.js +0 -78
  17. package/.worktrees/bundling-v2-precompiled-registrars/Slice/Components/Structural/StylesManager/ThemeManager/ThemeManager.js +0 -84
  18. package/.worktrees/bundling-v2-precompiled-registrars/Slice/Slice.js +0 -504
  19. package/.worktrees/bundling-v2-precompiled-registrars/Slice/tests/bundle-v2-runtime-contract.test.js +0 -268
  20. package/.worktrees/bundling-v2-precompiled-registrars/Slice/tests/router-loading-finally.test.js +0 -68
  21. package/.worktrees/bundling-v2-precompiled-registrars/api/index.js +0 -286
  22. package/.worktrees/bundling-v2-precompiled-registrars/api/middleware/securityMiddleware.js +0 -253
  23. package/.worktrees/bundling-v2-precompiled-registrars/package.json +0 -37
  24. package/.worktrees/bundling-v2-precompiled-registrars/sliceConfig.schema.json +0 -109
  25. package/.worktrees/bundling-v2-precompiled-registrars/src/App/index.html +0 -22
  26. package/.worktrees/bundling-v2-precompiled-registrars/src/App/index.js +0 -23
  27. package/.worktrees/bundling-v2-precompiled-registrars/src/App/style.css +0 -40
  28. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/AppComponents/HomePage/HomePage.css +0 -201
  29. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/AppComponents/HomePage/HomePage.html +0 -37
  30. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/AppComponents/HomePage/HomePage.js +0 -210
  31. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/AppComponents/Playground/Playground.css +0 -12
  32. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/AppComponents/Playground/Playground.html +0 -0
  33. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/AppComponents/Playground/Playground.js +0 -111
  34. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Service/FetchManager/FetchManager.js +0 -133
  35. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Service/IndexedDbManager/IndexedDbManager.js +0 -141
  36. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Service/LocalStorageManager/LocalStorageManager.js +0 -45
  37. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Button/Button.css +0 -47
  38. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Button/Button.html +0 -5
  39. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Button/Button.js +0 -93
  40. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Card/Card.css +0 -68
  41. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Card/Card.html +0 -7
  42. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Card/Card.js +0 -107
  43. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Checkbox/Checkbox.css +0 -87
  44. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Checkbox/Checkbox.html +0 -8
  45. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Checkbox/Checkbox.js +0 -86
  46. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/CodeVisualizer/CodeVisualizer.css +0 -130
  47. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/CodeVisualizer/CodeVisualizer.html +0 -4
  48. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/CodeVisualizer/CodeVisualizer.js +0 -262
  49. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Details/Details.css +0 -70
  50. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Details/Details.html +0 -9
  51. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Details/Details.js +0 -76
  52. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/DropDown/DropDown.css +0 -60
  53. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/DropDown/DropDown.html +0 -5
  54. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/DropDown/DropDown.js +0 -63
  55. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Grid/Grid.css +0 -7
  56. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Grid/Grid.html +0 -1
  57. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Grid/Grid.js +0 -57
  58. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Icon/Icon.css +0 -510
  59. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Icon/Icon.html +0 -1
  60. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Icon/Icon.js +0 -89
  61. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Icon/slc.eot +0 -0
  62. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Icon/slc.json +0 -555
  63. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Icon/slc.styl +0 -507
  64. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Icon/slc.svg +0 -1485
  65. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Icon/slc.symbol.svg +0 -1059
  66. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Icon/slc.ttf +0 -0
  67. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Icon/slc.woff +0 -0
  68. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Icon/slc.woff2 +0 -0
  69. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Input/Input.css +0 -91
  70. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Input/Input.html +0 -4
  71. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Input/Input.js +0 -215
  72. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Layout/Layout.css +0 -0
  73. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Layout/Layout.html +0 -0
  74. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Layout/Layout.js +0 -49
  75. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Link/Link.css +0 -8
  76. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Link/Link.html +0 -1
  77. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Link/Link.js +0 -63
  78. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Loading/Loading.css +0 -56
  79. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Loading/Loading.html +0 -83
  80. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Loading/Loading.js +0 -38
  81. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/MultiRoute/MultiRoute.js +0 -93
  82. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Navbar/Navbar.css +0 -115
  83. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Navbar/Navbar.html +0 -44
  84. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Navbar/Navbar.js +0 -141
  85. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/NotFound/NotFound.css +0 -117
  86. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/NotFound/NotFound.html +0 -24
  87. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/NotFound/NotFound.js +0 -16
  88. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Route/Route.js +0 -93
  89. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Select/Select.css +0 -84
  90. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Select/Select.html +0 -8
  91. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Select/Select.js +0 -195
  92. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Switch/Switch.css +0 -76
  93. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Switch/Switch.html +0 -8
  94. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/Switch/Switch.js +0 -102
  95. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/TreeItem/TreeItem.css +0 -36
  96. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/TreeItem/TreeItem.html +0 -1
  97. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/TreeItem/TreeItem.js +0 -126
  98. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/TreeView/TreeView.css +0 -8
  99. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/TreeView/TreeView.html +0 -1
  100. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/Visual/TreeView/TreeView.js +0 -48
  101. package/.worktrees/bundling-v2-precompiled-registrars/src/Components/components.js +0 -27
  102. package/.worktrees/bundling-v2-precompiled-registrars/src/Styles/sliceStyles.css +0 -34
  103. package/.worktrees/bundling-v2-precompiled-registrars/src/Themes/Dark.css +0 -42
  104. package/.worktrees/bundling-v2-precompiled-registrars/src/Themes/Light.css +0 -31
  105. package/.worktrees/bundling-v2-precompiled-registrars/src/Themes/Slice.css +0 -47
  106. package/.worktrees/bundling-v2-precompiled-registrars/src/images/Slice.js-logo.png +0 -0
  107. package/.worktrees/bundling-v2-precompiled-registrars/src/images/favicon.ico +0 -0
  108. package/.worktrees/bundling-v2-precompiled-registrars/src/images/im2/Slice.js-logo.png +0 -0
  109. package/.worktrees/bundling-v2-precompiled-registrars/src/routes.js +0 -16
  110. package/.worktrees/bundling-v2-precompiled-registrars/src/sliceConfig.json +0 -73
  111. package/.worktrees/bundling-v2-precompiled-registrars/src/testing.js +0 -888
  112. package/.worktrees/public-env-browser-exposure/LICENSE +0 -21
  113. package/.worktrees/public-env-browser-exposure/Slice/Components/Structural/ContextManager/ContextManager.js +0 -369
  114. package/.worktrees/public-env-browser-exposure/Slice/Components/Structural/ContextManager/ContextManagerDebugger.js +0 -297
  115. package/.worktrees/public-env-browser-exposure/Slice/Components/Structural/Controller/Controller.js +0 -972
  116. package/.worktrees/public-env-browser-exposure/Slice/Components/Structural/Debugger/Debugger.css +0 -620
  117. package/.worktrees/public-env-browser-exposure/Slice/Components/Structural/Debugger/Debugger.html +0 -73
  118. package/.worktrees/public-env-browser-exposure/Slice/Components/Structural/Debugger/Debugger.js +0 -1548
  119. package/.worktrees/public-env-browser-exposure/Slice/Components/Structural/EventManager/EventManager.js +0 -338
  120. package/.worktrees/public-env-browser-exposure/Slice/Components/Structural/EventManager/EventManagerDebugger.js +0 -361
  121. package/.worktrees/public-env-browser-exposure/Slice/Components/Structural/Logger/Log.js +0 -10
  122. package/.worktrees/public-env-browser-exposure/Slice/Components/Structural/Logger/Logger.js +0 -146
  123. package/.worktrees/public-env-browser-exposure/Slice/Components/Structural/Router/Router.js +0 -721
  124. package/.worktrees/public-env-browser-exposure/Slice/Components/Structural/StylesManager/StylesManager.js +0 -78
  125. package/.worktrees/public-env-browser-exposure/Slice/Components/Structural/StylesManager/ThemeManager/ThemeManager.js +0 -84
  126. package/.worktrees/public-env-browser-exposure/Slice/Slice.js +0 -533
  127. package/.worktrees/public-env-browser-exposure/Slice/tests/bundle-v2-runtime-contract.test.js +0 -268
  128. package/.worktrees/public-env-browser-exposure/Slice/tests/public-env-runtime-accessors.test.js +0 -44
  129. package/.worktrees/public-env-browser-exposure/Slice/tests/router-loading-finally.test.js +0 -68
  130. package/.worktrees/public-env-browser-exposure/api/index.js +0 -286
  131. package/.worktrees/public-env-browser-exposure/api/middleware/securityMiddleware.js +0 -253
  132. package/.worktrees/public-env-browser-exposure/api/tests/public-env-resolver.test.js +0 -193
  133. package/.worktrees/public-env-browser-exposure/api/utils/publicEnvResolver.js +0 -117
  134. package/.worktrees/public-env-browser-exposure/package.json +0 -37
  135. package/.worktrees/public-env-browser-exposure/sliceConfig.schema.json +0 -109
  136. package/.worktrees/public-env-browser-exposure/src/App/index.html +0 -22
  137. package/.worktrees/public-env-browser-exposure/src/App/index.js +0 -23
  138. package/.worktrees/public-env-browser-exposure/src/App/style.css +0 -40
  139. package/.worktrees/public-env-browser-exposure/src/Components/AppComponents/HomePage/HomePage.css +0 -201
  140. package/.worktrees/public-env-browser-exposure/src/Components/AppComponents/HomePage/HomePage.html +0 -37
  141. package/.worktrees/public-env-browser-exposure/src/Components/AppComponents/HomePage/HomePage.js +0 -210
  142. package/.worktrees/public-env-browser-exposure/src/Components/AppComponents/Playground/Playground.css +0 -12
  143. package/.worktrees/public-env-browser-exposure/src/Components/AppComponents/Playground/Playground.html +0 -0
  144. package/.worktrees/public-env-browser-exposure/src/Components/AppComponents/Playground/Playground.js +0 -111
  145. package/.worktrees/public-env-browser-exposure/src/Components/Service/FetchManager/FetchManager.js +0 -133
  146. package/.worktrees/public-env-browser-exposure/src/Components/Service/IndexedDbManager/IndexedDbManager.js +0 -141
  147. package/.worktrees/public-env-browser-exposure/src/Components/Service/LocalStorageManager/LocalStorageManager.js +0 -45
  148. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Button/Button.css +0 -47
  149. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Button/Button.html +0 -5
  150. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Button/Button.js +0 -93
  151. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Card/Card.css +0 -68
  152. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Card/Card.html +0 -7
  153. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Card/Card.js +0 -107
  154. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Checkbox/Checkbox.css +0 -87
  155. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Checkbox/Checkbox.html +0 -8
  156. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Checkbox/Checkbox.js +0 -86
  157. package/.worktrees/public-env-browser-exposure/src/Components/Visual/CodeVisualizer/CodeVisualizer.css +0 -130
  158. package/.worktrees/public-env-browser-exposure/src/Components/Visual/CodeVisualizer/CodeVisualizer.html +0 -4
  159. package/.worktrees/public-env-browser-exposure/src/Components/Visual/CodeVisualizer/CodeVisualizer.js +0 -262
  160. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Details/Details.css +0 -70
  161. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Details/Details.html +0 -9
  162. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Details/Details.js +0 -76
  163. package/.worktrees/public-env-browser-exposure/src/Components/Visual/DropDown/DropDown.css +0 -60
  164. package/.worktrees/public-env-browser-exposure/src/Components/Visual/DropDown/DropDown.html +0 -5
  165. package/.worktrees/public-env-browser-exposure/src/Components/Visual/DropDown/DropDown.js +0 -63
  166. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Grid/Grid.css +0 -7
  167. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Grid/Grid.html +0 -1
  168. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Grid/Grid.js +0 -57
  169. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Icon/Icon.css +0 -510
  170. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Icon/Icon.html +0 -1
  171. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Icon/Icon.js +0 -89
  172. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Icon/slc.eot +0 -0
  173. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Icon/slc.json +0 -555
  174. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Icon/slc.styl +0 -507
  175. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Icon/slc.svg +0 -1485
  176. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Icon/slc.symbol.svg +0 -1059
  177. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Icon/slc.ttf +0 -0
  178. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Icon/slc.woff +0 -0
  179. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Icon/slc.woff2 +0 -0
  180. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Input/Input.css +0 -91
  181. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Input/Input.html +0 -4
  182. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Input/Input.js +0 -215
  183. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Layout/Layout.css +0 -0
  184. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Layout/Layout.html +0 -0
  185. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Layout/Layout.js +0 -49
  186. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Link/Link.css +0 -8
  187. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Link/Link.html +0 -1
  188. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Link/Link.js +0 -63
  189. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Loading/Loading.css +0 -56
  190. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Loading/Loading.html +0 -83
  191. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Loading/Loading.js +0 -38
  192. package/.worktrees/public-env-browser-exposure/src/Components/Visual/MultiRoute/MultiRoute.js +0 -93
  193. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Navbar/Navbar.css +0 -115
  194. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Navbar/Navbar.html +0 -44
  195. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Navbar/Navbar.js +0 -141
  196. package/.worktrees/public-env-browser-exposure/src/Components/Visual/NotFound/NotFound.css +0 -117
  197. package/.worktrees/public-env-browser-exposure/src/Components/Visual/NotFound/NotFound.html +0 -24
  198. package/.worktrees/public-env-browser-exposure/src/Components/Visual/NotFound/NotFound.js +0 -16
  199. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Route/Route.js +0 -93
  200. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Select/Select.css +0 -84
  201. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Select/Select.html +0 -8
  202. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Select/Select.js +0 -195
  203. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Switch/Switch.css +0 -76
  204. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Switch/Switch.html +0 -8
  205. package/.worktrees/public-env-browser-exposure/src/Components/Visual/Switch/Switch.js +0 -102
  206. package/.worktrees/public-env-browser-exposure/src/Components/Visual/TreeItem/TreeItem.css +0 -36
  207. package/.worktrees/public-env-browser-exposure/src/Components/Visual/TreeItem/TreeItem.html +0 -1
  208. package/.worktrees/public-env-browser-exposure/src/Components/Visual/TreeItem/TreeItem.js +0 -126
  209. package/.worktrees/public-env-browser-exposure/src/Components/Visual/TreeView/TreeView.css +0 -8
  210. package/.worktrees/public-env-browser-exposure/src/Components/Visual/TreeView/TreeView.html +0 -1
  211. package/.worktrees/public-env-browser-exposure/src/Components/Visual/TreeView/TreeView.js +0 -48
  212. package/.worktrees/public-env-browser-exposure/src/Components/components.js +0 -27
  213. package/.worktrees/public-env-browser-exposure/src/Styles/sliceStyles.css +0 -34
  214. package/.worktrees/public-env-browser-exposure/src/Themes/Dark.css +0 -42
  215. package/.worktrees/public-env-browser-exposure/src/Themes/Light.css +0 -31
  216. package/.worktrees/public-env-browser-exposure/src/Themes/Slice.css +0 -47
  217. package/.worktrees/public-env-browser-exposure/src/images/Slice.js-logo.png +0 -0
  218. package/.worktrees/public-env-browser-exposure/src/images/favicon.ico +0 -0
  219. package/.worktrees/public-env-browser-exposure/src/images/im2/Slice.js-logo.png +0 -0
  220. package/.worktrees/public-env-browser-exposure/src/routes.js +0 -16
  221. package/.worktrees/public-env-browser-exposure/src/sliceConfig.json +0 -73
  222. package/.worktrees/public-env-browser-exposure/src/testing.js +0 -888
@@ -1,338 +0,0 @@
1
- /**
2
- * EventManager - Sistema de eventos pub/sub para Slice.js
3
- * Ubicación: /Slice/Components/Structural/EventManager/EventManager.js
4
- *
5
- * Características:
6
- * - Suscripciones globales y vinculadas a componentes
7
- * - Auto-limpieza cuando componentes se destruyen
8
- * - API simple: subscribe, subscribeOnce, unsubscribe, emit
9
- */
10
- /**
11
- * @typedef {Object} EventManagerBind
12
- * @property {(eventName: string, callback: Function) => string|null} subscribe
13
- * @property {(eventName: string, callback: Function) => string|null} subscribeOnce
14
- * @property {(eventName: string, data?: any) => void} emit
15
- */
16
-
17
-
18
- export default class EventManager {
19
- constructor() {
20
- // Map<eventName, Map<subscriptionId, { callback, componentSliceId, once }>>
21
- this.subscriptions = new Map();
22
-
23
- // Map<sliceId, Set<{ eventName, subscriptionId }>> - Para auto-cleanup
24
- this.componentSubscriptions = new Map();
25
-
26
- // Contador para IDs únicos
27
- this.idCounter = 0;
28
- }
29
-
30
- init() {
31
- return true;
32
- }
33
-
34
- // ============================================
35
- // API PRINCIPAL
36
- // ============================================
37
-
38
- /**
39
- * Suscribirse a un evento
40
- * @param {string} eventName - Nombre del evento
41
- * @param {(data?: any) => void} callback - Funcion a ejecutar cuando se emita el evento
42
- * @param {{ component?: HTMLElement }} [options]
43
- * @returns {string|null} subscriptionId - ID para desuscribirse
44
- *
45
- * @example
46
- * // Suscripcion global
47
- * const id = slice.events.subscribe('user:login', (user) => {
48
- * console.log('Usuario:', user);
49
- * });
50
- *
51
- * // Suscripcion con auto-cleanup
52
- * slice.events.subscribe('user:login', (user) => {
53
- * this.actualizar(user);
54
- * }, { component: this });
55
- */
56
- subscribe(eventName, callback, options = {}) {
57
- if (typeof callback !== 'function') {
58
- slice.logger.logError('EventManager', 'El callback debe ser una función');
59
- return null;
60
- }
61
-
62
- const subscriptionId = `evt_${++this.idCounter}`;
63
-
64
- // Crear Map para este evento si no existe
65
- if (!this.subscriptions.has(eventName)) {
66
- this.subscriptions.set(eventName, new Map());
67
- }
68
-
69
- // Guardar la suscripción
70
- this.subscriptions.get(eventName).set(subscriptionId, {
71
- callback,
72
- componentSliceId: options.component?.sliceId || null,
73
- once: false,
74
- });
75
-
76
- // Si hay componente, registrar para auto-cleanup
77
- if (options.component?.sliceId) {
78
- this._registerComponentSubscription(options.component.sliceId, eventName, subscriptionId);
79
- }
80
-
81
- slice.logger.logInfo('EventManager', `Suscrito a "${eventName}" [${subscriptionId}]`);
82
-
83
- return subscriptionId;
84
- }
85
-
86
- /**
87
- * Suscribirse a un evento una sola vez
88
- * @param {string} eventName - Nombre del evento
89
- * @param {(data?: any) => void} callback - Funcion a ejecutar
90
- * @param {{ component?: HTMLElement }} [options]
91
- * @returns {string|null} subscriptionId
92
- *
93
- * @example
94
- * slice.events.subscribeOnce('app:ready', () => {
95
- * console.log('App lista!');
96
- * });
97
- */
98
- subscribeOnce(eventName, callback, options = {}) {
99
- if (typeof callback !== 'function') {
100
- slice.logger.logError('EventManager', 'El callback debe ser una función');
101
- return null;
102
- }
103
-
104
- const subscriptionId = `evt_${++this.idCounter}`;
105
-
106
- if (!this.subscriptions.has(eventName)) {
107
- this.subscriptions.set(eventName, new Map());
108
- }
109
-
110
- this.subscriptions.get(eventName).set(subscriptionId, {
111
- callback,
112
- componentSliceId: options.component?.sliceId || null,
113
- once: true,
114
- });
115
-
116
- if (options.component?.sliceId) {
117
- this._registerComponentSubscription(options.component.sliceId, eventName, subscriptionId);
118
- }
119
-
120
- slice.logger.logInfo('EventManager', `Suscrito (once) a "${eventName}" [${subscriptionId}]`);
121
-
122
- return subscriptionId;
123
- }
124
-
125
- /**
126
- * Desuscribirse de un evento
127
- * @param {string} eventName - Nombre del evento
128
- * @param {string} subscriptionId - ID de la suscripcion
129
- * @returns {boolean} true si se elimino correctamente
130
- *
131
- * @example
132
- * const id = slice.events.subscribe('evento', callback);
133
- * // Despues...
134
- * slice.events.unsubscribe('evento', id);
135
- */
136
- unsubscribe(eventName, subscriptionId) {
137
- if (!this.subscriptions.has(eventName)) {
138
- return false;
139
- }
140
-
141
- const removed = this.subscriptions.get(eventName).delete(subscriptionId);
142
-
143
- // Limpiar Map vacío
144
- if (this.subscriptions.get(eventName).size === 0) {
145
- this.subscriptions.delete(eventName);
146
- }
147
-
148
- if (removed) {
149
- slice.logger.logInfo('EventManager', `Desuscrito de "${eventName}" [${subscriptionId}]`);
150
- }
151
-
152
- return removed;
153
- }
154
-
155
- /**
156
- * Emitir un evento
157
- * @param {string} eventName - Nombre del evento
158
- * @param {any} [data] - Datos a pasar a los callbacks
159
- * @returns {void}
160
- *
161
- * @example
162
- * slice.events.emit('user:login', { id: 123, name: 'Juan' });
163
- * slice.events.emit('cart:cleared'); // Sin datos
164
- */
165
- emit(eventName, data = null) {
166
- slice.logger.logInfo('EventManager', `Emitiendo "${eventName}"`, data);
167
-
168
- if (!this.subscriptions.has(eventName)) {
169
- return;
170
- }
171
-
172
- const toRemove = [];
173
-
174
- // Notificar a todos los suscriptores
175
- for (const [subscriptionId, subscription] of this.subscriptions.get(eventName)) {
176
- // Verificar que el componente aún existe (si aplica)
177
- if (subscription.componentSliceId) {
178
- if (!slice.controller.activeComponents.has(subscription.componentSliceId)) {
179
- // Componente ya no existe, marcar para eliminar
180
- toRemove.push(subscriptionId);
181
- continue;
182
- }
183
- }
184
-
185
- // Ejecutar callback
186
- try {
187
- subscription.callback(data);
188
- } catch (error) {
189
- slice.logger.logError('EventManager', `Error en callback de "${eventName}" [${subscriptionId}]`, error);
190
- }
191
-
192
- // Si es subscribeOnce, marcar para eliminar
193
- if (subscription.once) {
194
- toRemove.push(subscriptionId);
195
- }
196
- }
197
-
198
- // Limpiar suscripciones marcadas
199
- toRemove.forEach((id) => {
200
- this.subscriptions.get(eventName).delete(id);
201
- });
202
-
203
- // Limpiar Map vacío
204
- if (this.subscriptions.get(eventName).size === 0) {
205
- this.subscriptions.delete(eventName);
206
- }
207
- }
208
-
209
- // ============================================
210
- // BIND - Vinculación a Componente
211
- // ============================================
212
-
213
- /**
214
- * Vincular el EventManager a un componente para auto-cleanup
215
- * @param {HTMLElement} component - Componente Slice con sliceId
216
- * @returns {EventManagerBind|null} API vinculada al componente
217
- *
218
- * @example
219
- * class MiComponente extends HTMLElement {
220
- * async init() {
221
- * this.events = slice.events.bind(this);
222
- *
223
- * this.events.subscribe('user:login', (user) => {
224
- * this.actualizar(user);
225
- * });
226
- * }
227
- * }
228
- */
229
- bind(component) {
230
- if (!component?.sliceId) {
231
- slice.logger.logError('EventManager', 'bind() requiere un componente Slice válido con sliceId');
232
- return null;
233
- }
234
-
235
- const self = this;
236
-
237
- return {
238
- /**
239
- * Suscribirse a un evento (auto-cleanup)
240
- */
241
- subscribe: (eventName, callback) => {
242
- return self.subscribe(eventName, callback, { component });
243
- },
244
-
245
- /**
246
- * Suscribirse una sola vez (auto-cleanup)
247
- */
248
- subscribeOnce: (eventName, callback) => {
249
- return self.subscribeOnce(eventName, callback, { component });
250
- },
251
-
252
- /**
253
- * Emitir un evento
254
- */
255
- emit: (eventName, data) => {
256
- self.emit(eventName, data);
257
- },
258
- };
259
- }
260
-
261
- // ============================================
262
- // AUTO-CLEANUP
263
- // ============================================
264
-
265
- /**
266
- * Registrar suscripción para un componente (interno)
267
- */
268
- _registerComponentSubscription(sliceId, eventName, subscriptionId) {
269
- if (!this.componentSubscriptions.has(sliceId)) {
270
- this.componentSubscriptions.set(sliceId, new Set());
271
- }
272
- this.componentSubscriptions.get(sliceId).add({ eventName, subscriptionId });
273
- }
274
-
275
- /**
276
- * Limpiar todas las suscripciones de un componente
277
- * Se llama automáticamente cuando el componente se destruye
278
- * @param {string} sliceId - ID del componente
279
- * @returns {number} Cantidad de suscripciones eliminadas
280
- */
281
- cleanupComponent(sliceId) {
282
- if (!this.componentSubscriptions.has(sliceId)) {
283
- return 0;
284
- }
285
-
286
- const subscriptions = this.componentSubscriptions.get(sliceId);
287
- let count = 0;
288
-
289
- for (const { eventName, subscriptionId } of subscriptions) {
290
- if (this.unsubscribe(eventName, subscriptionId)) {
291
- count++;
292
- }
293
- }
294
-
295
- this.componentSubscriptions.delete(sliceId);
296
-
297
- if (count > 0) {
298
- slice.logger.logInfo('EventManager', `Limpiadas ${count} suscripción(es) de ${sliceId}`);
299
- }
300
-
301
- return count;
302
- }
303
-
304
- // ============================================
305
- // UTILIDADES
306
- // ============================================
307
-
308
- /**
309
- * Verificar si hay suscriptores para un evento
310
- * @param {string} eventName - Nombre del evento
311
- * @returns {boolean}
312
- */
313
- hasSubscribers(eventName) {
314
- return this.subscriptions.has(eventName) && this.subscriptions.get(eventName).size > 0;
315
- }
316
-
317
- /**
318
- * Obtener cantidad de suscriptores para un evento
319
- * @param {string} eventName - Nombre del evento
320
- * @returns {number}
321
- */
322
- subscriberCount(eventName) {
323
- if (!this.subscriptions.has(eventName)) {
324
- return 0;
325
- }
326
- return this.subscriptions.get(eventName).size;
327
- }
328
-
329
- /**
330
- * Limpiar TODAS las suscripciones (usar con cuidado)
331
- */
332
- clear() {
333
- this.subscriptions.clear();
334
- this.componentSubscriptions.clear();
335
- this.idCounter = 0;
336
- slice.logger.logInfo('EventManager', 'Todas las suscripciones eliminadas');
337
- }
338
- }
@@ -1,361 +0,0 @@
1
- /**
2
- * EventManager debug panel.
3
- */
4
- export default class EventManagerDebugger extends HTMLElement {
5
- constructor() {
6
- super();
7
- this.isOpen = false;
8
- this.filterText = '';
9
- this.refreshInterval = null;
10
- }
11
-
12
- /**
13
- * Initialize panel UI.
14
- * @returns {Promise<void>}
15
- */
16
- async init() {
17
- this.innerHTML = this.renderTemplate();
18
- slice.stylesManager.registerComponentStyles('EventManagerDebugger', this.renderStyles());
19
- this.cacheElements();
20
- this.bindEvents();
21
- this.makeDraggable();
22
- this.renderList();
23
- }
24
-
25
- /**
26
- * Toggle panel visibility.
27
- * @returns {void}
28
- */
29
- toggle() {
30
- this.isOpen = !this.isOpen;
31
- this.container.classList.toggle('active', this.isOpen);
32
- if (this.isOpen) {
33
- this.renderList();
34
- }
35
- }
36
-
37
- /**
38
- * Show panel.
39
- * @returns {void}
40
- */
41
- open() {
42
- this.isOpen = true;
43
- this.container.classList.add('active');
44
- this.renderList();
45
- }
46
-
47
- /**
48
- * Hide panel.
49
- * @returns {void}
50
- */
51
- close() {
52
- this.isOpen = false;
53
- this.container.classList.remove('active');
54
- }
55
-
56
- cacheElements() {
57
- this.container = this.querySelector('#events-debugger');
58
- this.header = this.querySelector('.events-header');
59
- this.list = this.querySelector('#events-list');
60
- this.filterInput = this.querySelector('#events-filter');
61
- this.countLabel = this.querySelector('#events-count');
62
- this.refreshButton = this.querySelector('#events-refresh');
63
- this.closeButton = this.querySelector('#events-close');
64
- }
65
-
66
- bindEvents() {
67
- this.refreshButton.addEventListener('click', () => this.renderList());
68
- this.closeButton.addEventListener('click', () => this.close());
69
- this.filterInput.addEventListener('input', (event) => {
70
- this.filterText = event.target.value.trim().toLowerCase();
71
- this.renderList();
72
- });
73
- }
74
-
75
- makeDraggable() {
76
- if (!this.header || !this.container) return;
77
-
78
- let offset = { x: 0, y: 0 };
79
- let isDragging = false;
80
-
81
- this.header.style.cursor = 'grab';
82
-
83
- this.header.addEventListener('mousedown', (event) => {
84
- if (event.target.closest('.btn')) return;
85
- isDragging = true;
86
- offset.x = event.clientX - this.container.getBoundingClientRect().left;
87
- offset.y = event.clientY - this.container.getBoundingClientRect().top;
88
- this.header.style.cursor = 'grabbing';
89
- });
90
-
91
- document.addEventListener('mousemove', (event) => {
92
- if (!isDragging) return;
93
- const rect = this.container.getBoundingClientRect();
94
- const maxX = window.innerWidth - rect.width;
95
- const maxY = window.innerHeight - rect.height;
96
- const x = Math.min(Math.max(event.clientX - offset.x, 0), maxX);
97
- const y = Math.min(Math.max(event.clientY - offset.y, 0), maxY);
98
- this.container.style.left = `${x}px`;
99
- this.container.style.top = `${y}px`;
100
- this.container.style.right = 'auto';
101
- this.container.style.bottom = 'auto';
102
- });
103
-
104
- document.addEventListener('mouseup', () => {
105
- if (!isDragging) return;
106
- isDragging = false;
107
- this.header.style.cursor = 'grab';
108
- });
109
- }
110
-
111
- renderList() {
112
- if (!slice?.events?.subscriptions) {
113
- this.list.textContent = 'EventManager not available.';
114
- this.countLabel.textContent = '0';
115
- return;
116
- }
117
-
118
- const items = [];
119
- slice.events.subscriptions.forEach((subs, eventName) => {
120
- const entries = Array.from(subs.entries()).map(([id, sub]) => {
121
- const componentSliceId = sub.componentSliceId || null;
122
- const component = componentSliceId ? slice.controller.getComponent(componentSliceId) : null;
123
- const componentName = component?.constructor?.name || null;
124
- return {
125
- id,
126
- once: sub.once,
127
- componentSliceId,
128
- componentName
129
- };
130
- });
131
-
132
- if (this.filterText && !eventName.toLowerCase().includes(this.filterText)) {
133
- return;
134
- }
135
-
136
- items.push({ eventName, count: subs.size, entries });
137
- });
138
-
139
- items.sort((a, b) => a.eventName.localeCompare(b.eventName));
140
-
141
- this.countLabel.textContent = String(items.length);
142
- this.list.innerHTML = items.length
143
- ? items.map((item) => {
144
- const details = item.entries.map((entry) => {
145
- const label = entry.componentName
146
- ? `${entry.componentName} (${entry.componentSliceId})`
147
- : entry.componentSliceId || 'Global';
148
- const onceBadge = entry.once ? '<span class="badge">once</span>' : '';
149
- return `
150
- <div class="subscriber-row">
151
- <div class="subscriber-name">${label}</div>
152
- <div class="subscriber-meta">${entry.id}${onceBadge}</div>
153
- </div>
154
- `;
155
- }).join('');
156
-
157
- return `
158
- <details class="event-row">
159
- <summary>
160
- <div class="event-name">${item.eventName}</div>
161
- <div class="event-count">${item.count}</div>
162
- </summary>
163
- <div class="subscriber-list">
164
- ${details || '<div class="empty">No subscribers</div>'}
165
- </div>
166
- </details>
167
- `;
168
- }).join('')
169
- : '<div class="empty">No events</div>';
170
- }
171
-
172
- renderTemplate() {
173
- return `
174
- <div id="events-debugger">
175
- <div class="events-header">
176
- <div class="title">Events</div>
177
- <div class="actions">
178
- <button id="events-refresh" class="btn">Refresh</button>
179
- <button id="events-close" class="btn">Close</button>
180
- </div>
181
- </div>
182
- <div class="events-toolbar">
183
- <input id="events-filter" type="text" placeholder="Filter events" />
184
- <div class="count">Total: <span id="events-count">0</span></div>
185
- </div>
186
- <div class="events-list" id="events-list"></div>
187
- </div>
188
- `;
189
- }
190
-
191
- renderStyles() {
192
- return `
193
- #events-debugger {
194
- position: fixed;
195
- bottom: 20px;
196
- right: 20px;
197
- width: min(360px, calc(100vw - 40px));
198
- max-height: 60vh;
199
- background: var(--primary-background-color);
200
- border: 1px solid var(--medium-color);
201
- border-radius: 12px;
202
- box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
203
- display: none;
204
- flex-direction: column;
205
- z-index: 10001;
206
- overflow: hidden;
207
- }
208
-
209
- #events-debugger.active {
210
- display: flex;
211
- }
212
-
213
- #events-debugger * {
214
- box-sizing: border-box;
215
- }
216
-
217
- .events-header {
218
- display: flex;
219
- justify-content: space-between;
220
- align-items: center;
221
- padding: 12px 14px;
222
- background: var(--tertiary-background-color);
223
- border-bottom: 1px solid var(--medium-color);
224
- user-select: none;
225
- }
226
-
227
- .events-header .title {
228
- font-weight: 600;
229
- color: var(--font-primary-color);
230
- }
231
-
232
- .events-header .actions {
233
- display: flex;
234
- gap: 8px;
235
- }
236
-
237
- .events-header .btn {
238
- padding: 6px 10px;
239
- border-radius: 6px;
240
- border: 1px solid var(--medium-color);
241
- background: var(--primary-background-color);
242
- color: var(--font-primary-color);
243
- cursor: pointer;
244
- font-size: 12px;
245
- }
246
-
247
- .events-toolbar {
248
- display: flex;
249
- gap: 10px;
250
- align-items: center;
251
- padding: 10px 12px;
252
- border-bottom: 1px solid var(--medium-color);
253
- }
254
-
255
- .events-toolbar input {
256
- flex: 1;
257
- min-width: 0;
258
- padding: 6px 8px;
259
- border-radius: 6px;
260
- border: 1px solid var(--medium-color);
261
- background: var(--primary-background-color);
262
- color: var(--font-primary-color);
263
- }
264
-
265
- .events-list {
266
- padding: 10px 12px;
267
- overflow: auto;
268
- display: flex;
269
- flex-direction: column;
270
- gap: 8px;
271
- }
272
-
273
- .event-row {
274
- display: block;
275
- padding: 8px 10px;
276
- background: var(--tertiary-background-color);
277
- border-radius: 6px;
278
- border: 1px solid var(--medium-color);
279
- }
280
-
281
- .event-row summary {
282
- display: flex;
283
- align-items: center;
284
- justify-content: space-between;
285
- gap: 8px;
286
- cursor: pointer;
287
- list-style: none;
288
- }
289
-
290
- .event-row summary::-webkit-details-marker {
291
- display: none;
292
- }
293
-
294
- .event-name {
295
- font-family: monospace;
296
- font-size: 12px;
297
- color: var(--font-primary-color);
298
- overflow: hidden;
299
- text-overflow: ellipsis;
300
- white-space: nowrap;
301
- }
302
-
303
- .event-count {
304
- font-weight: 600;
305
- color: var(--primary-color);
306
- }
307
-
308
- .subscriber-list {
309
- margin-top: 10px;
310
- display: flex;
311
- flex-direction: column;
312
- gap: 8px;
313
- }
314
-
315
- .subscriber-row {
316
- display: flex;
317
- justify-content: space-between;
318
- gap: 8px;
319
- padding: 6px 8px;
320
- border-radius: 6px;
321
- background: var(--primary-background-color);
322
- border: 1px solid var(--medium-color);
323
- }
324
-
325
- .subscriber-name {
326
- font-size: 12px;
327
- color: var(--font-primary-color);
328
- overflow: hidden;
329
- text-overflow: ellipsis;
330
- white-space: nowrap;
331
- }
332
-
333
- .subscriber-meta {
334
- font-size: 11px;
335
- color: var(--font-secondary-color);
336
- display: flex;
337
- align-items: center;
338
- gap: 6px;
339
- white-space: nowrap;
340
- }
341
-
342
- .badge {
343
- padding: 2px 6px;
344
- border-radius: 999px;
345
- background: var(--secondary-color);
346
- color: var(--secondary-color-contrast);
347
- font-size: 10px;
348
- text-transform: uppercase;
349
- }
350
-
351
- .empty {
352
- color: var(--font-secondary-color);
353
- font-size: 12px;
354
- text-align: center;
355
- padding: 12px 0;
356
- }
357
- `;
358
- }
359
- }
360
-
361
- customElements.define('slice-eventmanager-debugger', EventManagerDebugger);
@@ -1,10 +0,0 @@
1
- export default class Log {
2
- constructor(logType, componentCategory, componentSliceId, message, error = null) {
3
- this.logType = logType;
4
- this.componentCategory = componentCategory;
5
- this.componentSliceId = componentSliceId;
6
- this.message = message;
7
- this.error = error;
8
- this.timestamp = new Date();
9
- }
10
- }