@celljs/core 3.0.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 (550) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/cell-remote.yml +3 -0
  4. package/cell.yml +15 -0
  5. package/lib/browser/application/frontend-application-state.d.ts +5 -0
  6. package/lib/browser/application/frontend-application-state.d.ts.map +1 -0
  7. package/lib/browser/application/frontend-application-state.js +17 -0
  8. package/lib/browser/application/frontend-application-state.js.map +1 -0
  9. package/lib/browser/application/frontend-application.d.ts +31 -0
  10. package/lib/browser/application/frontend-application.d.ts.map +1 -0
  11. package/lib/browser/application/frontend-application.js +145 -0
  12. package/lib/browser/application/frontend-application.js.map +1 -0
  13. package/lib/browser/application/index.d.ts +3 -0
  14. package/lib/browser/application/index.d.ts.map +1 -0
  15. package/lib/browser/application/index.js +19 -0
  16. package/lib/browser/application/index.js.map +1 -0
  17. package/lib/browser/browser.d.ts +23 -0
  18. package/lib/browser/browser.d.ts.map +1 -0
  19. package/lib/browser/browser.js +53 -0
  20. package/lib/browser/browser.js.map +1 -0
  21. package/lib/browser/index.d.ts +4 -0
  22. package/lib/browser/index.d.ts.map +1 -0
  23. package/lib/browser/index.js +20 -0
  24. package/lib/browser/index.js.map +1 -0
  25. package/lib/browser/shell/application-shell.d.ts +5 -0
  26. package/lib/browser/shell/application-shell.d.ts.map +1 -0
  27. package/lib/browser/shell/application-shell.js +21 -0
  28. package/lib/browser/shell/application-shell.js.map +1 -0
  29. package/lib/browser/shell/index.d.ts +3 -0
  30. package/lib/browser/shell/index.d.ts.map +1 -0
  31. package/lib/browser/shell/index.js +19 -0
  32. package/lib/browser/shell/index.js.map +1 -0
  33. package/lib/browser/shell/shell-protocol.d.ts +5 -0
  34. package/lib/browser/shell/shell-protocol.d.ts.map +1 -0
  35. package/lib/browser/shell/shell-protocol.js +5 -0
  36. package/lib/browser/shell/shell-protocol.js.map +1 -0
  37. package/lib/browser/static-module.d.ts +4 -0
  38. package/lib/browser/static-module.d.ts.map +1 -0
  39. package/lib/browser/static-module.js +6 -0
  40. package/lib/browser/static-module.js.map +1 -0
  41. package/lib/common/annotation/aspect.d.ts +8 -0
  42. package/lib/common/annotation/aspect.d.ts.map +1 -0
  43. package/lib/common/annotation/aspect.js +14 -0
  44. package/lib/common/annotation/aspect.js.map +1 -0
  45. package/lib/common/annotation/autowired-provider.d.ts +8 -0
  46. package/lib/common/annotation/autowired-provider.d.ts.map +1 -0
  47. package/lib/common/annotation/autowired-provider.js +31 -0
  48. package/lib/common/annotation/autowired-provider.js.map +1 -0
  49. package/lib/common/annotation/autowired.d.ts +23 -0
  50. package/lib/common/annotation/autowired.d.ts.map +1 -0
  51. package/lib/common/annotation/autowired.js +55 -0
  52. package/lib/common/annotation/autowired.js.map +1 -0
  53. package/lib/common/annotation/component.d.ts +58 -0
  54. package/lib/common/annotation/component.d.ts.map +1 -0
  55. package/lib/common/annotation/component.js +71 -0
  56. package/lib/common/annotation/component.js.map +1 -0
  57. package/lib/common/annotation/constant.d.ts +9 -0
  58. package/lib/common/annotation/constant.d.ts.map +1 -0
  59. package/lib/common/annotation/constant.js +17 -0
  60. package/lib/common/annotation/constant.js.map +1 -0
  61. package/lib/common/annotation/decorate.d.ts +2 -0
  62. package/lib/common/annotation/decorate.d.ts.map +1 -0
  63. package/lib/common/annotation/decorate.js +6 -0
  64. package/lib/common/annotation/decorate.js.map +1 -0
  65. package/lib/common/annotation/detached/autowired-provider.d.ts +3 -0
  66. package/lib/common/annotation/detached/autowired-provider.d.ts.map +1 -0
  67. package/lib/common/annotation/detached/autowired-provider.js +16 -0
  68. package/lib/common/annotation/detached/autowired-provider.js.map +1 -0
  69. package/lib/common/annotation/detached/autowired.d.ts +3 -0
  70. package/lib/common/annotation/detached/autowired.d.ts.map +1 -0
  71. package/lib/common/annotation/detached/autowired.js +13 -0
  72. package/lib/common/annotation/detached/autowired.js.map +1 -0
  73. package/lib/common/annotation/detached/index.d.ts +4 -0
  74. package/lib/common/annotation/detached/index.d.ts.map +1 -0
  75. package/lib/common/annotation/detached/index.js +20 -0
  76. package/lib/common/annotation/detached/index.js.map +1 -0
  77. package/lib/common/annotation/detached/value.d.ts +3 -0
  78. package/lib/common/annotation/detached/value.d.ts.map +1 -0
  79. package/lib/common/annotation/detached/value.js +13 -0
  80. package/lib/common/annotation/detached/value.js.map +1 -0
  81. package/lib/common/annotation/index.d.ts +18 -0
  82. package/lib/common/annotation/index.d.ts.map +1 -0
  83. package/lib/common/annotation/index.js +34 -0
  84. package/lib/common/annotation/index.js.map +1 -0
  85. package/lib/common/annotation/inject.d.ts +2 -0
  86. package/lib/common/annotation/inject.d.ts.map +1 -0
  87. package/lib/common/annotation/inject.js +6 -0
  88. package/lib/common/annotation/inject.js.map +1 -0
  89. package/lib/common/annotation/injectable.d.ts +2 -0
  90. package/lib/common/annotation/injectable.d.ts.map +1 -0
  91. package/lib/common/annotation/injectable.js +6 -0
  92. package/lib/common/annotation/injectable.js.map +1 -0
  93. package/lib/common/annotation/named.d.ts +2 -0
  94. package/lib/common/annotation/named.d.ts.map +1 -0
  95. package/lib/common/annotation/named.js +6 -0
  96. package/lib/common/annotation/named.js.map +1 -0
  97. package/lib/common/annotation/optional.d.ts +2 -0
  98. package/lib/common/annotation/optional.d.ts.map +1 -0
  99. package/lib/common/annotation/optional.js +6 -0
  100. package/lib/common/annotation/optional.js.map +1 -0
  101. package/lib/common/annotation/post-construct.d.ts +2 -0
  102. package/lib/common/annotation/post-construct.d.ts.map +1 -0
  103. package/lib/common/annotation/post-construct.js +6 -0
  104. package/lib/common/annotation/post-construct.js.map +1 -0
  105. package/lib/common/annotation/pre-destroy.d.ts +2 -0
  106. package/lib/common/annotation/pre-destroy.d.ts.map +1 -0
  107. package/lib/common/annotation/pre-destroy.js +6 -0
  108. package/lib/common/annotation/pre-destroy.js.map +1 -0
  109. package/lib/common/annotation/service.d.ts +5 -0
  110. package/lib/common/annotation/service.d.ts.map +1 -0
  111. package/lib/common/annotation/service.js +18 -0
  112. package/lib/common/annotation/service.js.map +1 -0
  113. package/lib/common/annotation/tagged.d.ts +2 -0
  114. package/lib/common/annotation/tagged.d.ts.map +1 -0
  115. package/lib/common/annotation/tagged.js +6 -0
  116. package/lib/common/annotation/tagged.js.map +1 -0
  117. package/lib/common/annotation/target-name.d.ts +2 -0
  118. package/lib/common/annotation/target-name.d.ts.map +1 -0
  119. package/lib/common/annotation/target-name.js +6 -0
  120. package/lib/common/annotation/target-name.js.map +1 -0
  121. package/lib/common/annotation/unmanaged.d.ts +2 -0
  122. package/lib/common/annotation/unmanaged.d.ts.map +1 -0
  123. package/lib/common/annotation/unmanaged.js +6 -0
  124. package/lib/common/annotation/unmanaged.js.map +1 -0
  125. package/lib/common/annotation/value.d.ts +16 -0
  126. package/lib/common/annotation/value.d.ts.map +1 -0
  127. package/lib/common/annotation/value.js +58 -0
  128. package/lib/common/annotation/value.js.map +1 -0
  129. package/lib/common/aop/aop-protocol.d.ts +41 -0
  130. package/lib/common/aop/aop-protocol.d.ts.map +1 -0
  131. package/lib/common/aop/aop-protocol.js +11 -0
  132. package/lib/common/aop/aop-protocol.js.map +1 -0
  133. package/lib/common/aop/aop-proxy-factory.d.ts +7 -0
  134. package/lib/common/aop/aop-proxy-factory.d.ts.map +1 -0
  135. package/lib/common/aop/aop-proxy-factory.js +70 -0
  136. package/lib/common/aop/aop-proxy-factory.js.map +1 -0
  137. package/lib/common/aop/class-filter.d.ts +7 -0
  138. package/lib/common/aop/class-filter.d.ts.map +1 -0
  139. package/lib/common/aop/class-filter.js +31 -0
  140. package/lib/common/aop/class-filter.js.map +1 -0
  141. package/lib/common/aop/index.d.ts +4 -0
  142. package/lib/common/aop/index.d.ts.map +1 -0
  143. package/lib/common/aop/index.js +20 -0
  144. package/lib/common/aop/index.js.map +1 -0
  145. package/lib/common/application/application-entry.d.ts +2 -0
  146. package/lib/common/application/application-entry.d.ts.map +1 -0
  147. package/lib/common/application/application-entry.js +16 -0
  148. package/lib/common/application/application-entry.js.map +1 -0
  149. package/lib/common/application/application-error.d.ts +21 -0
  150. package/lib/common/application/application-error.d.ts.map +1 -0
  151. package/lib/common/application/application-error.js +47 -0
  152. package/lib/common/application/application-error.js.map +1 -0
  153. package/lib/common/application/application-factory.d.ts +8 -0
  154. package/lib/common/application/application-factory.d.ts.map +1 -0
  155. package/lib/common/application/application-factory.js +23 -0
  156. package/lib/common/application/application-factory.js.map +1 -0
  157. package/lib/common/application/application-protocol.d.ts +54 -0
  158. package/lib/common/application/application-protocol.d.ts.map +1 -0
  159. package/lib/common/application/application-protocol.js +108 -0
  160. package/lib/common/application/application-protocol.js.map +1 -0
  161. package/lib/common/application/application-state.d.ts +4 -0
  162. package/lib/common/application/application-state.d.ts.map +1 -0
  163. package/lib/common/application/application-state.js +18 -0
  164. package/lib/common/application/application-state.js.map +1 -0
  165. package/lib/common/application/application.d.ts +7 -0
  166. package/lib/common/application/application.d.ts.map +1 -0
  167. package/lib/common/application/application.js +34 -0
  168. package/lib/common/application/application.js.map +1 -0
  169. package/lib/common/application/index.d.ts +3 -0
  170. package/lib/common/application/index.d.ts.map +1 -0
  171. package/lib/common/application/index.js +19 -0
  172. package/lib/common/application/index.js.map +1 -0
  173. package/lib/common/config/config-protocol.d.ts +5 -0
  174. package/lib/common/config/config-protocol.d.ts.map +1 -0
  175. package/lib/common/config/config-protocol.js +5 -0
  176. package/lib/common/config/config-protocol.js.map +1 -0
  177. package/lib/common/config/config-provider.d.ts +7 -0
  178. package/lib/common/config/config-provider.d.ts.map +1 -0
  179. package/lib/common/config/config-provider.js +29 -0
  180. package/lib/common/config/config-provider.js.map +1 -0
  181. package/lib/common/config/config-util.d.ts +5 -0
  182. package/lib/common/config/config-util.d.ts.map +1 -0
  183. package/lib/common/config/config-util.js +19 -0
  184. package/lib/common/config/config-util.js.map +1 -0
  185. package/lib/common/config/dynamic-config.d.ts +4 -0
  186. package/lib/common/config/dynamic-config.d.ts.map +1 -0
  187. package/lib/common/config/dynamic-config.js +6 -0
  188. package/lib/common/config/dynamic-config.js.map +1 -0
  189. package/lib/common/config/index.d.ts +4 -0
  190. package/lib/common/config/index.d.ts.map +1 -0
  191. package/lib/common/config/index.js +20 -0
  192. package/lib/common/config/index.js.map +1 -0
  193. package/lib/common/constants.d.ts +6 -0
  194. package/lib/common/constants.d.ts.map +1 -0
  195. package/lib/common/constants.js +9 -0
  196. package/lib/common/constants.js.map +1 -0
  197. package/lib/common/container/auto-bind.d.ts +4 -0
  198. package/lib/common/container/auto-bind.d.ts.map +1 -0
  199. package/lib/common/container/auto-bind.js +103 -0
  200. package/lib/common/container/auto-bind.js.map +1 -0
  201. package/lib/common/container/container-factory.d.ts +5 -0
  202. package/lib/common/container/container-factory.d.ts.map +1 -0
  203. package/lib/common/container/container-factory.js +13 -0
  204. package/lib/common/container/container-factory.js.map +1 -0
  205. package/lib/common/container/container-provider.d.ts +7 -0
  206. package/lib/common/container/container-provider.d.ts.map +1 -0
  207. package/lib/common/container/container-provider.js +26 -0
  208. package/lib/common/container/container-provider.js.map +1 -0
  209. package/lib/common/container/container-util.d.ts +10 -0
  210. package/lib/common/container/container-util.d.ts.map +1 -0
  211. package/lib/common/container/container-util.js +32 -0
  212. package/lib/common/container/container-util.js.map +1 -0
  213. package/lib/common/container/dynamic-container.d.ts +3 -0
  214. package/lib/common/container/dynamic-container.d.ts.map +1 -0
  215. package/lib/common/container/dynamic-container.js +7 -0
  216. package/lib/common/container/dynamic-container.js.map +1 -0
  217. package/lib/common/container/index.d.ts +9 -0
  218. package/lib/common/container/index.d.ts.map +1 -0
  219. package/lib/common/container/index.js +22 -0
  220. package/lib/common/container/index.js.map +1 -0
  221. package/lib/common/container/scope.d.ts +6 -0
  222. package/lib/common/container/scope.d.ts.map +1 -0
  223. package/lib/common/container/scope.js +10 -0
  224. package/lib/common/container/scope.js.map +1 -0
  225. package/lib/common/el/core-context-initializer.d.ts +7 -0
  226. package/lib/common/el/core-context-initializer.d.ts.map +1 -0
  227. package/lib/common/el/core-context-initializer.js +39 -0
  228. package/lib/common/el/core-context-initializer.js.map +1 -0
  229. package/lib/common/el/expression-compiler.d.ts +18 -0
  230. package/lib/common/el/expression-compiler.d.ts.map +1 -0
  231. package/lib/common/el/expression-compiler.js +171 -0
  232. package/lib/common/el/expression-compiler.js.map +1 -0
  233. package/lib/common/el/expression-context-provider.d.ts +10 -0
  234. package/lib/common/el/expression-context-provider.d.ts.map +1 -0
  235. package/lib/common/el/expression-context-provider.js +46 -0
  236. package/lib/common/el/expression-context-provider.js.map +1 -0
  237. package/lib/common/el/expression-handler.d.ts +12 -0
  238. package/lib/common/el/expression-handler.d.ts.map +1 -0
  239. package/lib/common/el/expression-handler.js +97 -0
  240. package/lib/common/el/expression-handler.js.map +1 -0
  241. package/lib/common/el/expression-protocol.d.ts +25 -0
  242. package/lib/common/el/expression-protocol.d.ts.map +1 -0
  243. package/lib/common/el/expression-protocol.js +9 -0
  244. package/lib/common/el/expression-protocol.js.map +1 -0
  245. package/lib/common/el/index.d.ts +7 -0
  246. package/lib/common/el/index.d.ts.map +1 -0
  247. package/lib/common/el/index.js +23 -0
  248. package/lib/common/el/index.js.map +1 -0
  249. package/lib/common/el/jexl-engine-provider.d.ts +6 -0
  250. package/lib/common/el/jexl-engine-provider.d.ts.map +1 -0
  251. package/lib/common/el/jexl-engine-provider.js +25 -0
  252. package/lib/common/el/jexl-engine-provider.js.map +1 -0
  253. package/lib/common/error/cutom-error.d.ts +4 -0
  254. package/lib/common/error/cutom-error.d.ts.map +1 -0
  255. package/lib/common/error/cutom-error.js +8 -0
  256. package/lib/common/error/cutom-error.js.map +1 -0
  257. package/lib/common/error/error-protocol.d.ts +4 -0
  258. package/lib/common/error/error-protocol.d.ts.map +1 -0
  259. package/lib/common/error/error-protocol.js +3 -0
  260. package/lib/common/error/error-protocol.js.map +1 -0
  261. package/lib/common/error/illegal-argument-error.d.ts +4 -0
  262. package/lib/common/error/illegal-argument-error.d.ts.map +1 -0
  263. package/lib/common/error/illegal-argument-error.js +8 -0
  264. package/lib/common/error/illegal-argument-error.js.map +1 -0
  265. package/lib/common/error/index.d.ts +4 -0
  266. package/lib/common/error/index.d.ts.map +1 -0
  267. package/lib/common/error/index.js +20 -0
  268. package/lib/common/error/index.js.map +1 -0
  269. package/lib/common/index.d.ts +13 -0
  270. package/lib/common/index.d.ts.map +1 -0
  271. package/lib/common/index.js +29 -0
  272. package/lib/common/index.js.map +1 -0
  273. package/lib/common/logger/abstract-logger.d.ts +14 -0
  274. package/lib/common/logger/abstract-logger.d.ts.map +1 -0
  275. package/lib/common/logger/abstract-logger.js +39 -0
  276. package/lib/common/logger/abstract-logger.js.map +1 -0
  277. package/lib/common/logger/index.d.ts +4 -0
  278. package/lib/common/logger/index.d.ts.map +1 -0
  279. package/lib/common/logger/index.js +20 -0
  280. package/lib/common/logger/index.js.map +1 -0
  281. package/lib/common/logger/logger-protocol.d.ts +16 -0
  282. package/lib/common/logger/logger-protocol.d.ts.map +1 -0
  283. package/lib/common/logger/logger-protocol.js +8 -0
  284. package/lib/common/logger/logger-protocol.js.map +1 -0
  285. package/lib/common/logger/logger.d.ts +8 -0
  286. package/lib/common/logger/logger.d.ts.map +1 -0
  287. package/lib/common/logger/logger.js +38 -0
  288. package/lib/common/logger/logger.js.map +1 -0
  289. package/lib/common/provider/component-filter-registry.d.ts +12 -0
  290. package/lib/common/provider/component-filter-registry.d.ts.map +1 -0
  291. package/lib/common/provider/component-filter-registry.js +69 -0
  292. package/lib/common/provider/component-filter-registry.js.map +1 -0
  293. package/lib/common/provider/index.d.ts +6 -0
  294. package/lib/common/provider/index.d.ts.map +1 -0
  295. package/lib/common/provider/index.js +22 -0
  296. package/lib/common/provider/index.js.map +1 -0
  297. package/lib/common/provider/provider-creator.d.ts +7 -0
  298. package/lib/common/provider/provider-creator.d.ts.map +1 -0
  299. package/lib/common/provider/provider-creator.js +22 -0
  300. package/lib/common/provider/provider-creator.js.map +1 -0
  301. package/lib/common/provider/provider-protocol.d.ts +49 -0
  302. package/lib/common/provider/provider-protocol.d.ts.map +1 -0
  303. package/lib/common/provider/provider-protocol.js +8 -0
  304. package/lib/common/provider/provider-protocol.js.map +1 -0
  305. package/lib/common/provider/provider-util.d.ts +6 -0
  306. package/lib/common/provider/provider-util.d.ts.map +1 -0
  307. package/lib/common/provider/provider-util.js +13 -0
  308. package/lib/common/provider/provider-util.js.map +1 -0
  309. package/lib/common/provider/provider.d.ts +14 -0
  310. package/lib/common/provider/provider.d.ts.map +1 -0
  311. package/lib/common/provider/provider.js +58 -0
  312. package/lib/common/provider/provider.js.map +1 -0
  313. package/lib/common/static-module.d.ts +4 -0
  314. package/lib/common/static-module.d.ts.map +1 -0
  315. package/lib/common/static-module.js +11 -0
  316. package/lib/common/static-module.js.map +1 -0
  317. package/lib/common/test/index.d.ts +2 -0
  318. package/lib/common/test/index.d.ts.map +1 -0
  319. package/lib/common/test/index.js +18 -0
  320. package/lib/common/test/index.js.map +1 -0
  321. package/lib/common/test/mock-logger.d.ts +9 -0
  322. package/lib/common/test/mock-logger.d.ts.map +1 -0
  323. package/lib/common/test/mock-logger.js +32 -0
  324. package/lib/common/test/mock-logger.js.map +1 -0
  325. package/lib/common/test/test-module.d.ts +3 -0
  326. package/lib/common/test/test-module.d.ts.map +1 -0
  327. package/lib/common/test/test-module.js +15 -0
  328. package/lib/common/test/test-module.js.map +1 -0
  329. package/lib/common/utils/annotation-util.d.ts +5 -0
  330. package/lib/common/utils/annotation-util.d.ts.map +1 -0
  331. package/lib/common/utils/annotation-util.js +27 -0
  332. package/lib/common/utils/annotation-util.js.map +1 -0
  333. package/lib/common/utils/async.d.ts +368 -0
  334. package/lib/common/utils/async.d.ts.map +1 -0
  335. package/lib/common/utils/async.js +964 -0
  336. package/lib/common/utils/async.js.map +1 -0
  337. package/lib/common/utils/cancellation.d.ts +22 -0
  338. package/lib/common/utils/cancellation.d.ts.map +1 -0
  339. package/lib/common/utils/cancellation.js +95 -0
  340. package/lib/common/utils/cancellation.js.map +1 -0
  341. package/lib/common/utils/class-util.d.ts +3 -0
  342. package/lib/common/utils/class-util.d.ts.map +1 -0
  343. package/lib/common/utils/class-util.js +24 -0
  344. package/lib/common/utils/class-util.js.map +1 -0
  345. package/lib/common/utils/disposable.d.ts +30 -0
  346. package/lib/common/utils/disposable.d.ts.map +1 -0
  347. package/lib/common/utils/disposable.js +82 -0
  348. package/lib/common/utils/disposable.js.map +1 -0
  349. package/lib/common/utils/emitter.d.ts +64 -0
  350. package/lib/common/utils/emitter.d.ts.map +1 -0
  351. package/lib/common/utils/emitter.js +226 -0
  352. package/lib/common/utils/emitter.js.map +1 -0
  353. package/lib/common/utils/event.d.ts +41 -0
  354. package/lib/common/utils/event.d.ts.map +1 -0
  355. package/lib/common/utils/event.js +90 -0
  356. package/lib/common/utils/event.js.map +1 -0
  357. package/lib/common/utils/global-util.d.ts +2 -0
  358. package/lib/common/utils/global-util.d.ts.map +1 -0
  359. package/lib/common/utils/global-util.js +19 -0
  360. package/lib/common/utils/global-util.js.map +1 -0
  361. package/lib/common/utils/index.d.ts +17 -0
  362. package/lib/common/utils/index.d.ts.map +1 -0
  363. package/lib/common/utils/index.js +33 -0
  364. package/lib/common/utils/index.js.map +1 -0
  365. package/lib/common/utils/metadata-util.d.ts +2 -0
  366. package/lib/common/utils/metadata-util.d.ts.map +1 -0
  367. package/lib/common/utils/metadata-util.js +29 -0
  368. package/lib/common/utils/metadata-util.js.map +1 -0
  369. package/lib/common/utils/os.d.ts +20 -0
  370. package/lib/common/utils/os.d.ts.map +1 -0
  371. package/lib/common/utils/os.js +50 -0
  372. package/lib/common/utils/os.js.map +1 -0
  373. package/lib/common/utils/prioritizeable.d.ts +18 -0
  374. package/lib/common/utils/prioritizeable.d.ts.map +1 -0
  375. package/lib/common/utils/prioritizeable.js +41 -0
  376. package/lib/common/utils/prioritizeable.js.map +1 -0
  377. package/lib/common/utils/promise-util.d.ts +6 -0
  378. package/lib/common/utils/promise-util.d.ts.map +1 -0
  379. package/lib/common/utils/promise-util.js +13 -0
  380. package/lib/common/utils/promise-util.js.map +1 -0
  381. package/lib/common/utils/proxy-util.d.ts +5 -0
  382. package/lib/common/utils/proxy-util.d.ts.map +1 -0
  383. package/lib/common/utils/proxy-util.js +41 -0
  384. package/lib/common/utils/proxy-util.js.map +1 -0
  385. package/lib/common/utils/types.d.ts +13 -0
  386. package/lib/common/utils/types.d.ts.map +1 -0
  387. package/lib/common/utils/types.js +3 -0
  388. package/lib/common/utils/types.js.map +1 -0
  389. package/lib/common/utils/url-util.d.ts +4 -0
  390. package/lib/common/utils/url-util.d.ts.map +1 -0
  391. package/lib/common/utils/url-util.js +58 -0
  392. package/lib/common/utils/url-util.js.map +1 -0
  393. package/lib/common/utils/uuid.d.ts +3 -0
  394. package/lib/common/utils/uuid.d.ts.map +1 -0
  395. package/lib/common/utils/uuid.js +65 -0
  396. package/lib/common/utils/uuid.js.map +1 -0
  397. package/lib/node/application/backend-application-state.d.ts +5 -0
  398. package/lib/node/application/backend-application-state.d.ts.map +1 -0
  399. package/lib/node/application/backend-application-state.js +17 -0
  400. package/lib/node/application/backend-application-state.js.map +1 -0
  401. package/lib/node/application/backend-application.d.ts +12 -0
  402. package/lib/node/application/backend-application.d.ts.map +1 -0
  403. package/lib/node/application/backend-application.js +55 -0
  404. package/lib/node/application/backend-application.js.map +1 -0
  405. package/lib/node/application/index.d.ts +3 -0
  406. package/lib/node/application/index.d.ts.map +1 -0
  407. package/lib/node/application/index.js +19 -0
  408. package/lib/node/application/index.js.map +1 -0
  409. package/lib/node/constants.d.ts +16 -0
  410. package/lib/node/constants.d.ts.map +1 -0
  411. package/lib/node/constants.js +19 -0
  412. package/lib/node/constants.js.map +1 -0
  413. package/lib/node/context/context.d.ts +16 -0
  414. package/lib/node/context/context.d.ts.map +1 -0
  415. package/lib/node/context/context.js +60 -0
  416. package/lib/node/context/context.js.map +1 -0
  417. package/lib/node/context/index.d.ts +2 -0
  418. package/lib/node/context/index.d.ts.map +1 -0
  419. package/lib/node/context/index.js +18 -0
  420. package/lib/node/context/index.js.map +1 -0
  421. package/lib/node/index.d.ts +4 -0
  422. package/lib/node/index.d.ts.map +1 -0
  423. package/lib/node/index.js +20 -0
  424. package/lib/node/index.js.map +1 -0
  425. package/lib/node/static-module.d.ts +4 -0
  426. package/lib/node/static-module.d.ts.map +1 -0
  427. package/lib/node/static-module.js +6 -0
  428. package/lib/node/static-module.js.map +1 -0
  429. package/lib/node/utils/crc.d.ts +2 -0
  430. package/lib/node/utils/crc.d.ts.map +1 -0
  431. package/lib/node/utils/crc.js +11 -0
  432. package/lib/node/utils/crc.js.map +1 -0
  433. package/lib/node/utils/index.d.ts +2 -0
  434. package/lib/node/utils/index.d.ts.map +1 -0
  435. package/lib/node/utils/index.js +18 -0
  436. package/lib/node/utils/index.js.map +1 -0
  437. package/lib/package.spec.d.ts +1 -0
  438. package/lib/package.spec.d.ts.map +1 -0
  439. package/lib/package.spec.js +4 -0
  440. package/lib/package.spec.js.map +1 -0
  441. package/package.json +55 -0
  442. package/src/browser/application/frontend-application-state.ts +11 -0
  443. package/src/browser/application/frontend-application.ts +142 -0
  444. package/src/browser/application/index.ts +2 -0
  445. package/src/browser/browser.ts +59 -0
  446. package/src/browser/index.ts +3 -0
  447. package/src/browser/shell/application-shell.ts +10 -0
  448. package/src/browser/shell/index.ts +2 -0
  449. package/src/browser/shell/shell-protocol.ts +5 -0
  450. package/src/browser/static-module.ts +4 -0
  451. package/src/common/annotation/aspect.ts +18 -0
  452. package/src/common/annotation/autowired-provider.ts +31 -0
  453. package/src/common/annotation/autowired.ts +76 -0
  454. package/src/common/annotation/component.ts +120 -0
  455. package/src/common/annotation/constant.ts +20 -0
  456. package/src/common/annotation/decorate.ts +1 -0
  457. package/src/common/annotation/detached/autowired-provider.ts +13 -0
  458. package/src/common/annotation/detached/autowired.ts +9 -0
  459. package/src/common/annotation/detached/index.ts +3 -0
  460. package/src/common/annotation/detached/value.ts +9 -0
  461. package/src/common/annotation/index.ts +17 -0
  462. package/src/common/annotation/inject.ts +1 -0
  463. package/src/common/annotation/injectable.ts +1 -0
  464. package/src/common/annotation/named.ts +1 -0
  465. package/src/common/annotation/optional.ts +1 -0
  466. package/src/common/annotation/post-construct.ts +1 -0
  467. package/src/common/annotation/pre-destroy.ts +1 -0
  468. package/src/common/annotation/service.ts +15 -0
  469. package/src/common/annotation/tagged.ts +1 -0
  470. package/src/common/annotation/target-name.ts +1 -0
  471. package/src/common/annotation/unmanaged.ts +1 -0
  472. package/src/common/annotation/value.ts +64 -0
  473. package/src/common/aop/aop-protocol.ts +57 -0
  474. package/src/common/aop/aop-proxy-factory.ts +61 -0
  475. package/src/common/aop/class-filter.ts +22 -0
  476. package/src/common/aop/index.ts +3 -0
  477. package/src/common/application/application-entry.ts +14 -0
  478. package/src/common/application/application-error.ts +57 -0
  479. package/src/common/application/application-factory.ts +20 -0
  480. package/src/common/application/application-protocol.ts +143 -0
  481. package/src/common/application/application-state.ts +7 -0
  482. package/src/common/application/application.ts +20 -0
  483. package/src/common/application/index.ts +2 -0
  484. package/src/common/config/config-protocol.ts +5 -0
  485. package/src/common/config/config-provider.ts +15 -0
  486. package/src/common/config/config-util.ts +14 -0
  487. package/src/common/config/dynamic-config.ts +2 -0
  488. package/src/common/config/index.ts +3 -0
  489. package/src/common/constants.ts +6 -0
  490. package/src/common/container/auto-bind.ts +101 -0
  491. package/src/common/container/container-factory.ts +9 -0
  492. package/src/common/container/container-provider.ts +23 -0
  493. package/src/common/container/container-util.ts +28 -0
  494. package/src/common/container/dynamic-container.ts +4 -0
  495. package/src/common/container/index.ts +9 -0
  496. package/src/common/container/scope.ts +3 -0
  497. package/src/common/el/core-context-initializer.ts +25 -0
  498. package/src/common/el/expression-compiler.ts +157 -0
  499. package/src/common/el/expression-context-provider.ts +34 -0
  500. package/src/common/el/expression-handler.ts +84 -0
  501. package/src/common/el/expression-protocol.ts +36 -0
  502. package/src/common/el/index.ts +6 -0
  503. package/src/common/el/jexl-engine-provider.ts +18 -0
  504. package/src/common/error/cutom-error.ts +5 -0
  505. package/src/common/error/error-protocol.ts +4 -0
  506. package/src/common/error/illegal-argument-error.ts +5 -0
  507. package/src/common/error/index.ts +3 -0
  508. package/src/common/index.ts +12 -0
  509. package/src/common/logger/abstract-logger.ts +32 -0
  510. package/src/common/logger/index.ts +3 -0
  511. package/src/common/logger/logger-protocol.ts +23 -0
  512. package/src/common/logger/logger.ts +31 -0
  513. package/src/common/provider/component-filter-registry.ts +56 -0
  514. package/src/common/provider/index.ts +6 -0
  515. package/src/common/provider/provider-creator.ts +12 -0
  516. package/src/common/provider/provider-protocol.ts +59 -0
  517. package/src/common/provider/provider-util.ts +10 -0
  518. package/src/common/provider/provider.ts +63 -0
  519. package/src/common/static-module.ts +9 -0
  520. package/src/common/test/index.ts +1 -0
  521. package/src/common/test/mock-logger.ts +21 -0
  522. package/src/common/test/test-module.ts +12 -0
  523. package/src/common/utils/annotation-util.ts +21 -0
  524. package/src/common/utils/async.ts +1222 -0
  525. package/src/common/utils/cancellation.ts +112 -0
  526. package/src/common/utils/class-util.ts +20 -0
  527. package/src/common/utils/disposable.ts +94 -0
  528. package/src/common/utils/emitter.ts +268 -0
  529. package/src/common/utils/event.ts +124 -0
  530. package/src/common/utils/global-util.ts +16 -0
  531. package/src/common/utils/index.ts +16 -0
  532. package/src/common/utils/metadata-util.ts +24 -0
  533. package/src/common/utils/os.ts +49 -0
  534. package/src/common/utils/prioritizeable.ts +44 -0
  535. package/src/common/utils/promise-util.ts +9 -0
  536. package/src/common/utils/proxy-util.ts +36 -0
  537. package/src/common/utils/types.ts +13 -0
  538. package/src/common/utils/url-util.ts +64 -0
  539. package/src/common/utils/uuid.ts +75 -0
  540. package/src/node/application/backend-application-state.ts +9 -0
  541. package/src/node/application/backend-application.ts +43 -0
  542. package/src/node/application/index.ts +2 -0
  543. package/src/node/constants.ts +16 -0
  544. package/src/node/context/context.ts +58 -0
  545. package/src/node/context/index.ts +1 -0
  546. package/src/node/index.ts +3 -0
  547. package/src/node/static-module.ts +4 -0
  548. package/src/node/utils/crc.ts +7 -0
  549. package/src/node/utils/index.ts +1 -0
  550. package/src/package.spec.ts +4 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Cellbang
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # Cell - Core Component
@@ -0,0 +1,3 @@
1
+ cell:
2
+ logger:
3
+ level: ${ 'info' | onTarget('backend') || 'error' }
package/cell.yml ADDED
@@ -0,0 +1,15 @@
1
+ targets:
2
+ - backend
3
+ cell:
4
+ name: 'Cell Framework'
5
+ hostDomId: cell-root
6
+ annotation:
7
+ Component:
8
+ proxy: false
9
+ aop:
10
+ enabled: true
11
+ logger:
12
+ level: info
13
+ tenant:
14
+ enabled: false
15
+ entry: lib/common/application/application-entry
@@ -0,0 +1,5 @@
1
+ import { ApplicationState, AbstractApplicationStateService } from '../../common';
2
+ export declare type FrontendApplicationState = ApplicationState | 'attached_shell' | 'closing_window';
3
+ export declare class FrontendApplicationStateService extends AbstractApplicationStateService<FrontendApplicationState> {
4
+ }
5
+ //# sourceMappingURL=frontend-application-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frontend-application-state.d.ts","sourceRoot":"","sources":["../../../src/browser/application/frontend-application-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,gBAAgB,EAAE,+BAA+B,EAA2B,MAAM,cAAc,CAAC;AAErH,oBAAY,wBAAwB,GAChC,gBAAgB,GACd,gBAAgB,GAChB,gBAAgB,CAAC;AAEvB,qBACa,+BAAgC,SAAQ,+BAA+B,CAAC,wBAAwB,CAAC;CAE7G"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.FrontendApplicationStateService = void 0;
10
+ const common_1 = require("../../common");
11
+ let FrontendApplicationStateService = class FrontendApplicationStateService extends common_1.AbstractApplicationStateService {
12
+ };
13
+ FrontendApplicationStateService = __decorate([
14
+ (0, common_1.Component)(common_1.ApplicationStateService)
15
+ ], FrontendApplicationStateService);
16
+ exports.FrontendApplicationStateService = FrontendApplicationStateService;
17
+ //# sourceMappingURL=frontend-application-state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frontend-application-state.js","sourceRoot":"","sources":["../../../src/browser/application/frontend-application-state.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yCAAqH;AAQ9G,IAAM,+BAA+B,GAArC,MAAM,+BAAgC,SAAQ,wCAAyD;CAE7G,CAAA;AAFY,+BAA+B;IAD3C,IAAA,kBAAS,EAAC,gCAAuB,CAAC;GACtB,+BAA+B,CAE3C;AAFY,0EAA+B"}
@@ -0,0 +1,31 @@
1
+ import { ApplicationShell } from '../shell';
2
+ import { FrontendApplicationStateService } from './frontend-application-state';
3
+ import { MaybePromise, AbstractApplication } from '../../common';
4
+ export declare class FrontendApplication extends AbstractApplication {
5
+ protected readonly _shell: ApplicationShell;
6
+ protected readonly stateService: FrontendApplicationStateService;
7
+ protected readonly hostDomId: string;
8
+ get shell(): ApplicationShell;
9
+ start(): Promise<void>;
10
+ /**
11
+ * Return a promise to the host element to which the application shell is attached.
12
+ */
13
+ protected getHost(): Promise<HTMLElement>;
14
+ /**
15
+ * Return an HTML element that indicates the startup phase, e.g. with an animation or a splash screen.
16
+ */
17
+ protected getStartupIndicator(host: HTMLElement): HTMLElement | undefined;
18
+ /**
19
+ * Register global event listeners.
20
+ */
21
+ protected registerEventListeners(): void;
22
+ /**
23
+ * If a startup indicator is present, it is first hidden with the `cell-hidden` CSS class and then
24
+ * removed after a while. The delay until removal is taken from the CSS transition duration.
25
+ */
26
+ protected revealShell(host: HTMLElement): Promise<void>;
27
+ protected doStart(): Promise<void>;
28
+ protected measure<T>(name: string, fn: () => MaybePromise<T>): Promise<T>;
29
+ stop(): Promise<void>;
30
+ }
31
+ //# sourceMappingURL=frontend-application.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frontend-application.d.ts","sourceRoot":"","sources":["../../../src/browser/application/frontend-application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AAE/E,OAAO,EAAwB,YAAY,EACd,mBAAmB,EAAsB,MAAM,cAAc,CAAC;AAE3F,qBACa,mBAAoB,SAAQ,mBAAmB;IAGxD,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAG5C,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,+BAA+B,CAAC;IAGjE,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAErC,IAAI,KAAK,IAAI,gBAAgB,CAE5B;IAEK,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAc5B;;OAEG;IACH,SAAS,CAAC,OAAO,IAAI,OAAO,CAAC,WAAW,CAAC;IASzC;;OAEG;IACH,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,GAAG,SAAS;IAKzE;;OAEG;IACH,SAAS,CAAC,sBAAsB,IAAI,IAAI;IAOxC;;;OAGG;IACH,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;cAsB9B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;cA0BjC,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,YAAY,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAkBzE,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAK9B"}
@@ -0,0 +1,145 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.FrontendApplication = void 0;
13
+ const shell_1 = require("../shell");
14
+ const frontend_application_state_1 = require("./frontend-application-state");
15
+ const browser_1 = require("../browser");
16
+ const common_1 = require("../../common");
17
+ let FrontendApplication = class FrontendApplication extends common_1.AbstractApplication {
18
+ get shell() {
19
+ return this._shell;
20
+ }
21
+ async start() {
22
+ await this.doStart();
23
+ this.stateService.state = 'started';
24
+ const host = await this.getHost();
25
+ this._shell.attach(host);
26
+ await new Promise(resolve => requestAnimationFrame(() => resolve()));
27
+ this.stateService.state = 'attached_shell';
28
+ await this.revealShell(host);
29
+ this.registerEventListeners();
30
+ this.stateService.state = 'ready';
31
+ }
32
+ /**
33
+ * Return a promise to the host element to which the application shell is attached.
34
+ */
35
+ getHost() {
36
+ if (document.body) {
37
+ return Promise.resolve(document.getElementById(this.hostDomId) || document.body);
38
+ }
39
+ return new Promise(resolve => window.addEventListener('load', () => resolve(document.getElementById(this.hostDomId) || document.body), { once: true }));
40
+ }
41
+ /**
42
+ * Return an HTML element that indicates the startup phase, e.g. with an animation or a splash screen.
43
+ */
44
+ getStartupIndicator(host) {
45
+ const startupElements = host.getElementsByClassName('cell-preload');
46
+ return startupElements.length === 0 ? undefined : startupElements[0];
47
+ }
48
+ /**
49
+ * Register global event listeners.
50
+ */
51
+ registerEventListeners() {
52
+ window.addEventListener('unload', () => {
53
+ this.stateService.state = 'closing_window';
54
+ this.doStop();
55
+ });
56
+ }
57
+ /**
58
+ * If a startup indicator is present, it is first hidden with the `cell-hidden` CSS class and then
59
+ * removed after a while. The delay until removal is taken from the CSS transition duration.
60
+ */
61
+ revealShell(host) {
62
+ const startupElem = this.getStartupIndicator(host);
63
+ if (startupElem) {
64
+ return new Promise(resolve => {
65
+ window.requestAnimationFrame(() => {
66
+ startupElem.classList.add('cell-hidden');
67
+ const preloadStyle = window.getComputedStyle(startupElem);
68
+ const transitionDuration = (0, browser_1.parseCssTime)(preloadStyle.transitionDuration, 0);
69
+ window.setTimeout(() => {
70
+ const parent = startupElem.parentElement;
71
+ if (parent) {
72
+ parent.removeChild(startupElem);
73
+ }
74
+ resolve();
75
+ }, transitionDuration);
76
+ });
77
+ });
78
+ }
79
+ else {
80
+ return Promise.resolve();
81
+ }
82
+ }
83
+ async doStart() {
84
+ for (const lifecycle of this.lifecycles) {
85
+ if (lifecycle.initialize) {
86
+ try {
87
+ lifecycle.initialize();
88
+ }
89
+ catch (error) {
90
+ this.logger.error('Could not initialize lifecycle', error);
91
+ }
92
+ }
93
+ }
94
+ // TODO
95
+ for (const lifecycle of this.lifecycles) {
96
+ if (lifecycle.onStart) {
97
+ try {
98
+ await this.measure(lifecycle.constructor.name + '.onStart', () => lifecycle.onStart(this));
99
+ }
100
+ catch (error) {
101
+ this.logger.error('Could not start lifecycle', error);
102
+ }
103
+ }
104
+ }
105
+ }
106
+ async measure(name, fn) {
107
+ const startMark = name + '-start';
108
+ const endMark = name + '-end';
109
+ performance.mark(startMark);
110
+ const result = await fn();
111
+ performance.mark(endMark);
112
+ performance.measure(name, startMark, endMark);
113
+ for (const item of performance.getEntriesByName(name)) {
114
+ if (item.duration > 100) {
115
+ console.warn(item.name + ' is slow, took: ' + item.duration + ' ms');
116
+ }
117
+ else {
118
+ console.debug(item.name + ' took ' + item.duration + ' ms');
119
+ }
120
+ }
121
+ performance.clearMeasures(name);
122
+ return result;
123
+ }
124
+ async stop() {
125
+ this.doStop();
126
+ this.stateService.state = 'stoped';
127
+ }
128
+ };
129
+ __decorate([
130
+ (0, common_1.Autowired)(shell_1.ApplicationShell),
131
+ __metadata("design:type", Object)
132
+ ], FrontendApplication.prototype, "_shell", void 0);
133
+ __decorate([
134
+ (0, common_1.Autowired)(common_1.ApplicationStateService),
135
+ __metadata("design:type", frontend_application_state_1.FrontendApplicationStateService)
136
+ ], FrontendApplication.prototype, "stateService", void 0);
137
+ __decorate([
138
+ (0, common_1.Value)('cell.hostDomId'),
139
+ __metadata("design:type", String)
140
+ ], FrontendApplication.prototype, "hostDomId", void 0);
141
+ FrontendApplication = __decorate([
142
+ (0, common_1.Component)(common_1.Application)
143
+ ], FrontendApplication);
144
+ exports.FrontendApplication = FrontendApplication;
145
+ //# sourceMappingURL=frontend-application.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frontend-application.js","sourceRoot":"","sources":["../../../src/browser/application/frontend-application.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAA4C;AAC5C,6EAA+E;AAC/E,wCAA0C;AAC1C,yCAC2F;AAGpF,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,4BAAmB;IAWxD,IAAI,KAAK;QACL,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,KAAK;QACP,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;QACrB,IAAI,CAAC,YAAY,CAAC,KAAK,GAAG,SAAS,CAAC;QAEpC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;QAClC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACzB,MAAM,IAAI,OAAO,CAAO,OAAO,CAAC,EAAE,CAAC,qBAAqB,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QAC3E,IAAI,CAAC,YAAY,CAAC,KAAK,GAAG,gBAAgB,CAAC;QAE3C,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC7B,IAAI,CAAC,sBAAsB,EAAE,CAAC;QAC9B,IAAI,CAAC,YAAY,CAAC,KAAK,GAAG,OAAO,CAAC;IACtC,CAAC;IAED;;OAEG;IACO,OAAO;QACb,IAAI,QAAQ,CAAC,IAAI,EAAE;YACf,OAAO,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC;SACpF;QACD,OAAO,IAAI,OAAO,CAAc,OAAO,CAAC,EAAE,CACtC,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAC3H,CAAC;IACN,CAAC;IAED;;OAEG;IACO,mBAAmB,CAAC,IAAiB;QAC3C,MAAM,eAAe,GAAG,IAAI,CAAC,sBAAsB,CAAC,cAAc,CAAC,CAAC;QACpE,OAAO,eAAe,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAgB,CAAC;IACxF,CAAC;IAED;;OAEG;IACO,sBAAsB;QAC5B,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,GAAG,EAAE;YACnC,IAAI,CAAC,YAAY,CAAC,KAAK,GAAG,gBAAgB,CAAC;YAC3C,IAAI,CAAC,MAAM,EAAE,CAAC;QAClB,CAAC,CAAC,CAAC;IACP,CAAC;IAED;;;OAGG;IACO,WAAW,CAAC,IAAiB;QACnC,MAAM,WAAW,GAAG,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACnD,IAAI,WAAW,EAAE;YACb,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;gBACzB,MAAM,CAAC,qBAAqB,CAAC,GAAG,EAAE;oBAC9B,WAAW,CAAC,SAAS,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;oBACzC,MAAM,YAAY,GAAG,MAAM,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;oBAC1D,MAAM,kBAAkB,GAAG,IAAA,sBAAY,EAAC,YAAY,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC;oBAC5E,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE;wBACnB,MAAM,MAAM,GAAG,WAAW,CAAC,aAAa,CAAC;wBACzC,IAAI,MAAM,EAAE;4BACR,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;yBACnC;wBACD,OAAO,EAAE,CAAC;oBACd,CAAC,EAAE,kBAAkB,CAAC,CAAC;gBAC3B,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;SACN;aAAM;YACH,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;SAC5B;IACL,CAAC;IAEkB,KAAK,CAAC,OAAO;QAC5B,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,UAAU,EAAE;YACrC,IAAI,SAAS,CAAC,UAAU,EAAE;gBACtB,IAAI;oBACA,SAAS,CAAC,UAAU,EAAE,CAAC;iBAC1B;gBAAC,OAAO,KAAK,EAAE;oBACZ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,gCAAgC,EAAE,KAAK,CAAC,CAAC;iBAC9D;aACJ;SACJ;QAED,OAAO;QAEP,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,UAAU,EAAE;YACrC,IAAI,SAAS,CAAC,OAAO,EAAE;gBACnB,IAAI;oBACA,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,GAAG,UAAU,EACtD,GAAG,EAAE,CAAC,SAAS,CAAC,OAAQ,CAAC,IAAI,CAAC,CACjC,CAAC;iBACL;gBAAC,OAAO,KAAK,EAAE;oBACZ,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;iBACzD;aACJ;SACJ;IACL,CAAC;IAES,KAAK,CAAC,OAAO,CAAI,IAAY,EAAE,EAAyB;QAC9D,MAAM,SAAS,GAAG,IAAI,GAAG,QAAQ,CAAC;QAClC,MAAM,OAAO,GAAG,IAAI,GAAG,MAAM,CAAC;QAC9B,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5B,MAAM,MAAM,GAAG,MAAM,EAAE,EAAE,CAAC;QAC1B,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1B,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QAC9C,KAAK,MAAM,IAAI,IAAI,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE;YACnD,IAAI,IAAI,CAAC,QAAQ,GAAG,GAAG,EAAE;gBACrB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,kBAAkB,GAAG,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,CAAC;aACxE;iBAAM;gBACH,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,QAAQ,GAAG,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,CAAC;aAC/D;SACJ;QACD,WAAW,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAChC,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,KAAK,CAAC,IAAI;QACN,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,IAAI,CAAC,YAAY,CAAC,KAAK,GAAG,QAAQ,CAAC;IACvC,CAAC;CAEJ,CAAA;AApIG;IAAC,IAAA,kBAAS,EAAC,wBAAgB,CAAC;;mDACgB;AAE5C;IAAC,IAAA,kBAAS,EAAC,gCAAuB,CAAC;8BACF,4DAA+B;yDAAC;AAEjE;IAAC,IAAA,cAAK,EAAC,gBAAgB,CAAC;;sDACa;AAT5B,mBAAmB;IAD/B,IAAA,kBAAS,EAAC,oBAAW,CAAC;GACV,mBAAmB,CAsI/B;AAtIY,kDAAmB"}
@@ -0,0 +1,3 @@
1
+ export * from './frontend-application';
2
+ export * from './frontend-application-state';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/browser/application/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./frontend-application"), exports);
18
+ __exportStar(require("./frontend-application-state"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/browser/application/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,+DAA6C"}
@@ -0,0 +1,23 @@
1
+ export declare const isIE: boolean;
2
+ export declare const isEdge: boolean;
3
+ export declare const isEdgeOrIE: boolean;
4
+ export declare const isOpera: boolean;
5
+ export declare const isFirefox: boolean;
6
+ export declare const isWebKit: boolean;
7
+ export declare const isChrome: boolean;
8
+ export declare const isSafari: boolean;
9
+ export declare const isIPad: boolean;
10
+ export declare const isNative: boolean;
11
+ export declare const isBasicWasmSupported: boolean;
12
+ /**
13
+ * Parse a magnitude value (e.g. width, height, left, top) from a CSS attribute value.
14
+ * Returns the given default value (or undefined) if the value cannot be determined,
15
+ * e.g. because it is a relative value like `50%` or `auto`.
16
+ */
17
+ export declare function parseCssMagnitude(value: string | null, defaultValue: number): number;
18
+ /**
19
+ * Parse the number of milliseconds from a CSS time value.
20
+ * Returns the given default value (or undefined) if the value cannot be determined.
21
+ */
22
+ export declare function parseCssTime(time: string | null, defaultValue: number): number;
23
+ //# sourceMappingURL=browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/browser/browser.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,SAAsC,CAAC;AACxD,eAAO,MAAM,MAAM,SAAoC,CAAC;AACxD,eAAO,MAAM,UAAU,SAAiB,CAAC;AAEzC,eAAO,MAAM,OAAO,SAAoC,CAAC;AACzD,eAAO,MAAM,SAAS,SAAsC,CAAC;AAC7D,eAAO,MAAM,QAAQ,SAA0C,CAAC;AAChE,eAAO,MAAM,QAAQ,SAAqC,CAAC;AAC3D,eAAO,MAAM,QAAQ,SAA6E,CAAC;AACnG,eAAO,MAAM,MAAM,SAAmC,CAAC;AAEvD,eAAO,MAAM,QAAQ,SAAiD,CAAC;AAEvE,eAAO,MAAM,oBAAoB,SAAqD,CAAC;AAEvF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;AAgBtF;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC"}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseCssTime = exports.parseCssMagnitude = exports.isBasicWasmSupported = exports.isNative = exports.isIPad = exports.isSafari = exports.isChrome = exports.isWebKit = exports.isFirefox = exports.isOpera = exports.isEdgeOrIE = exports.isEdge = exports.isIE = void 0;
4
+ const userAgent = typeof navigator !== 'undefined' ? navigator.userAgent : '';
5
+ exports.isIE = (userAgent.indexOf('Trident') >= 0);
6
+ exports.isEdge = (userAgent.indexOf('Edge/') >= 0);
7
+ exports.isEdgeOrIE = exports.isIE || exports.isEdge;
8
+ exports.isOpera = (userAgent.indexOf('Opera') >= 0);
9
+ exports.isFirefox = (userAgent.indexOf('Firefox') >= 0);
10
+ exports.isWebKit = (userAgent.indexOf('AppleWebKit') >= 0);
11
+ exports.isChrome = (userAgent.indexOf('Chrome') >= 0);
12
+ exports.isSafari = (userAgent.indexOf('Chrome') === -1) && (userAgent.indexOf('Safari') >= 0);
13
+ exports.isIPad = (userAgent.indexOf('iPad') >= 0);
14
+ // tslint:disable-next-line:no-any
15
+ exports.isNative = typeof window.process !== 'undefined';
16
+ // tslint:disable-next-line:no-any
17
+ exports.isBasicWasmSupported = typeof window.WebAssembly !== 'undefined';
18
+ function parseCssMagnitude(value, defaultValue) {
19
+ if (value) {
20
+ let parsed;
21
+ if (value.endsWith('px')) {
22
+ parsed = parseFloat(value.substring(0, value.length - 2));
23
+ }
24
+ else {
25
+ parsed = parseFloat(value);
26
+ }
27
+ if (!isNaN(parsed)) {
28
+ return parsed;
29
+ }
30
+ }
31
+ return defaultValue;
32
+ }
33
+ exports.parseCssMagnitude = parseCssMagnitude;
34
+ function parseCssTime(time, defaultValue) {
35
+ if (time) {
36
+ let parsed;
37
+ if (time.endsWith('ms')) {
38
+ parsed = parseFloat(time.substring(0, time.length - 2));
39
+ }
40
+ else if (time.endsWith('s')) {
41
+ parsed = parseFloat(time.substring(0, time.length - 1)) * 1000;
42
+ }
43
+ else {
44
+ parsed = parseFloat(time);
45
+ }
46
+ if (!isNaN(parsed)) {
47
+ return parsed;
48
+ }
49
+ }
50
+ return defaultValue;
51
+ }
52
+ exports.parseCssTime = parseCssTime;
53
+ //# sourceMappingURL=browser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser.js","sourceRoot":"","sources":["../../src/browser/browser.ts"],"names":[],"mappings":";;;AAAA,MAAM,SAAS,GAAG,OAAO,SAAS,KAAK,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;AAEjE,QAAA,IAAI,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;AAC3C,QAAA,MAAM,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAC3C,QAAA,UAAU,GAAG,YAAI,IAAI,cAAM,CAAC;AAE5B,QAAA,OAAO,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAC5C,QAAA,SAAS,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;AAChD,QAAA,QAAQ,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;AACnD,QAAA,QAAQ,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9C,QAAA,QAAQ,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;AACtF,QAAA,MAAM,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AACvD,kCAAkC;AACrB,QAAA,QAAQ,GAAG,OAAQ,MAAc,CAAC,OAAO,KAAK,WAAW,CAAC;AACvE,kCAAkC;AACrB,QAAA,oBAAoB,GAAG,OAAQ,MAAc,CAAC,WAAW,KAAK,WAAW,CAAC;AAQvF,SAAgB,iBAAiB,CAAC,KAAoB,EAAE,YAAqB;IACzE,IAAI,KAAK,EAAE;QACP,IAAI,MAAc,CAAC;QACnB,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;YACtB,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;SAC7D;aAAM;YACH,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;SAC9B;QACD,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;YAChB,OAAO,MAAM,CAAC;SACjB;KACJ;IACD,OAAO,YAAY,CAAC;AACxB,CAAC;AAbD,8CAaC;AAOD,SAAgB,YAAY,CAAC,IAAmB,EAAE,YAAqB;IACnE,IAAI,IAAI,EAAE;QACN,IAAI,MAAc,CAAC;QACnB,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;YACrB,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;SAC3D;aAAM,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC3B,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;SAClE;aAAM;YACH,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;SAC7B;QACD,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;YAChB,OAAO,MAAM,CAAC;SACjB;KACJ;IACD,OAAO,YAAY,CAAC;AACxB,CAAC;AAfD,oCAeC"}
@@ -0,0 +1,4 @@
1
+ export * from './application';
2
+ export * from './shell';
3
+ export * from './browser';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./application"), exports);
18
+ __exportStar(require("./shell"), exports);
19
+ __exportStar(require("./browser"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,0CAAwB;AACxB,4CAA0B"}
@@ -0,0 +1,5 @@
1
+ import { ApplicationShell } from './shell-protocol';
2
+ export declare class ApplicationShellImpl implements ApplicationShell {
3
+ attach(host: HTMLElement): void;
4
+ }
5
+ //# sourceMappingURL=application-shell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application-shell.d.ts","sourceRoot":"","sources":["../../../src/browser/shell/application-shell.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,qBACa,oBAAqB,YAAW,gBAAgB;IACzD,MAAM,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI;CAIlC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.ApplicationShellImpl = void 0;
10
+ const common_1 = require("../../common");
11
+ const shell_protocol_1 = require("./shell-protocol");
12
+ let ApplicationShellImpl = class ApplicationShellImpl {
13
+ attach(host) {
14
+ host.textContent = 'Hello, Cell.';
15
+ }
16
+ };
17
+ ApplicationShellImpl = __decorate([
18
+ (0, common_1.Component)(shell_protocol_1.ApplicationShell)
19
+ ], ApplicationShellImpl);
20
+ exports.ApplicationShellImpl = ApplicationShellImpl;
21
+ //# sourceMappingURL=application-shell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application-shell.js","sourceRoot":"","sources":["../../../src/browser/shell/application-shell.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yCAAyC;AACzC,qDAAoD;AAG7C,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC7B,MAAM,CAAC,IAAiB;QACpB,IAAI,CAAC,WAAW,GAAG,cAAc,CAAC;IACtC,CAAC;CAEJ,CAAA;AALY,oBAAoB;IADhC,IAAA,kBAAS,EAAC,iCAAgB,CAAC;GACf,oBAAoB,CAKhC;AALY,oDAAoB"}
@@ -0,0 +1,3 @@
1
+ export * from './application-shell';
2
+ export * from './shell-protocol';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/browser/shell/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./application-shell"), exports);
18
+ __exportStar(require("./shell-protocol"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/browser/shell/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,mDAAiC"}
@@ -0,0 +1,5 @@
1
+ export declare const ApplicationShell: unique symbol;
2
+ export interface ApplicationShell {
3
+ attach(host: HTMLElement): void;
4
+ }
5
+ //# sourceMappingURL=shell-protocol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shell-protocol.d.ts","sourceRoot":"","sources":["../../../src/browser/shell/shell-protocol.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,eAA6B,CAAC;AAE3D,MAAM,WAAW,gBAAgB;IAC7B,MAAM,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;CACnC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApplicationShell = void 0;
4
+ exports.ApplicationShell = Symbol('ApplicationShell');
5
+ //# sourceMappingURL=shell-protocol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shell-protocol.js","sourceRoot":"","sources":["../../../src/browser/shell/shell-protocol.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import './index';
2
+ declare const _default: import("inversify/lib/interfaces/interfaces").interfaces.ContainerModule;
3
+ export default _default;
4
+ //# sourceMappingURL=static-module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static-module.d.ts","sourceRoot":"","sources":["../../src/browser/static-module.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,CAAC;;AAEjB,wBAA0B"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const common_1 = require("../common");
4
+ require("./index");
5
+ exports.default = (0, common_1.autoBind)();
6
+ //# sourceMappingURL=static-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static-module.js","sourceRoot":"","sources":["../../src/browser/static-module.ts"],"names":[],"mappings":";;AAAA,sCAAqC;AACrC,mBAAiB;AAEjB,kBAAe,IAAA,iBAAQ,GAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { ComponentOption, ComponentId } from './component';
2
+ export interface AspectOption extends ComponentOption {
3
+ id: ComponentId;
4
+ pointcut?: string;
5
+ }
6
+ export declare type AdviceOrAspectOption = ComponentId | AspectOption;
7
+ export declare const Aspect: (adviceOrAspectOption: AdviceOrAspectOption) => ClassDecorator;
8
+ //# sourceMappingURL=aspect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aspect.d.ts","sourceRoot":"","sources":["../../../src/common/annotation/aspect.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAA0C,WAAW,EAAwB,MAAM,aAAa,CAAC;AAEzH,MAAM,WAAW,YAAa,SAAQ,eAAe;IACjD,EAAE,EAAE,WAAW,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,oBAAY,oBAAoB,GAAG,WAAW,GAAG,YAAY,CAAC;AAE9D,eAAO,MAAM,MAAM,yBAA0B,oBAAoB,KAAG,cAMnE,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Aspect = void 0;
4
+ const aop_protocol_1 = require("../aop/aop-protocol");
5
+ const component_1 = require("./component");
6
+ const Aspect = (adviceOrAspectOption) => (target) => {
7
+ const option = (0, component_1.parseComponentOption)(target, adviceOrAspectOption);
8
+ option.id = Array.isArray(option.id) ? option.id[1] : option.id;
9
+ option.pointcut = option.pointcut || component_1.COMPONENT_TAG;
10
+ option.tag = { tag: aop_protocol_1.AOP_TAG, value: option.pointcut };
11
+ (0, component_1.applyComponentDecorator)(Object.assign({ proxy: false }, option), target);
12
+ };
13
+ exports.Aspect = Aspect;
14
+ //# sourceMappingURL=aspect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aspect.js","sourceRoot":"","sources":["../../../src/common/annotation/aspect.ts"],"names":[],"mappings":";;;AAAA,sDAA8C;AAC9C,2CAAyH;AASlH,MAAM,MAAM,GAAG,CAAC,oBAA0C,EAAkB,EAAE,CAAC,CAAC,MAAW,EAAE,EAAE;IAClG,MAAM,MAAM,GAAiB,IAAA,gCAAoB,EAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IAChF,MAAM,CAAC,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;IAChE,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,IAAI,yBAAa,CAAC;IACnD,MAAM,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,sBAAO,EAAE,KAAK,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC;IACtD,IAAA,mCAAuB,kBAAG,KAAK,EAAE,KAAK,IAAK,MAAM,GAAI,MAAM,CAAC,CAAC;AACjE,CAAC,CAAC;AANW,QAAA,MAAM,UAMjB"}
@@ -0,0 +1,8 @@
1
+ import { interfaces } from 'inversify';
2
+ import { DoInject, IdOrAutowiredOptionWithoutMulti } from './autowired';
3
+ export declare const PROVIDER: unique symbol;
4
+ export declare const ID_KEY: unique symbol;
5
+ export declare const AutowiredProvider: (idOrOption?: IdOrAutowiredOptionWithoutMulti) => PropertyDecorator & ParameterDecorator;
6
+ export declare const doInjectForAutowiredProvider: DoInject;
7
+ export declare function bindAutowiredProvider(bind: interfaces.Bind): any;
8
+ //# sourceMappingURL=autowired-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"autowired-provider.d.ts","sourceRoot":"","sources":["../../../src/common/annotation/autowired-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAA2B,QAAQ,EAAwB,+BAA+B,EAAE,MAAM,aAAa,CAAC;AAMvH,eAAO,MAAM,QAAQ,eAAqB,CAAC;AAC3C,eAAO,MAAM,MAAM,eAAmB,CAAC;AAEvC,eAAO,MAAM,iBAAiB,gBAA0B,+BAA+B,KAAG,iBAAiB,GAAG,kBAK7G,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,QAG1C,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,GAAG,CAOhE"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bindAutowiredProvider = exports.doInjectForAutowiredProvider = exports.AutowiredProvider = exports.ID_KEY = exports.PROVIDER = void 0;
4
+ const autowired_1 = require("./autowired");
5
+ const inject_1 = require("./inject");
6
+ const tagged_1 = require("./tagged");
7
+ const provider_protocol_1 = require("../provider/provider-protocol");
8
+ exports.PROVIDER = Symbol('PROVIDER');
9
+ exports.ID_KEY = Symbol('ID_KEY');
10
+ const AutowiredProvider = function (idOrOption) {
11
+ return (target, targetKey, index) => {
12
+ const option = (0, autowired_1.parseAutowiredOption)(target, targetKey, index, idOrOption);
13
+ (0, autowired_1.applyAutowiredDecorator)(option, target, targetKey, index, exports.doInjectForAutowiredProvider);
14
+ };
15
+ };
16
+ exports.AutowiredProvider = AutowiredProvider;
17
+ const doInjectForAutowiredProvider = (option, t, k, i) => {
18
+ (0, inject_1.Inject)(exports.PROVIDER)(t, k, i);
19
+ (0, tagged_1.Tagged)(exports.ID_KEY, option.id)(t, k, i);
20
+ };
21
+ exports.doInjectForAutowiredProvider = doInjectForAutowiredProvider;
22
+ function bindAutowiredProvider(bind) {
23
+ bind(exports.PROVIDER).toDynamicValue(ctx => {
24
+ var _a;
25
+ const id = (_a = ctx.currentRequest.target.getCustomTags()) === null || _a === void 0 ? void 0 : _a.find(m => m.key === exports.ID_KEY).value;
26
+ const providerCreator = ctx.container.get(provider_protocol_1.ProviderCreator);
27
+ return providerCreator.create(id, ctx.container);
28
+ });
29
+ }
30
+ exports.bindAutowiredProvider = bindAutowiredProvider;
31
+ //# sourceMappingURL=autowired-provider.js.map