@vived/host 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 (592) hide show
  1. package/README.md +0 -0
  2. package/lib/AppObject/AppObject.d.ts +14 -0
  3. package/lib/AppObject/AppObject.js +58 -0
  4. package/lib/AppObject/AppObjectComponent.d.ts +15 -0
  5. package/lib/AppObject/AppObjectComponent.js +61 -0
  6. package/lib/AppObject/AppObjectController.d.ts +3 -0
  7. package/lib/AppObject/AppObjectController.js +7 -0
  8. package/lib/AppObject/AppObjectEntity.d.ts +14 -0
  9. package/lib/AppObject/AppObjectEntity.js +36 -0
  10. package/lib/AppObject/AppObjectEntityRepo.d.ts +15 -0
  11. package/lib/AppObject/AppObjectEntityRepo.js +55 -0
  12. package/lib/AppObject/AppObjectPM.d.ts +11 -0
  13. package/lib/AppObject/AppObjectPM.js +38 -0
  14. package/lib/AppObject/AppObjectRepo.d.ts +25 -0
  15. package/lib/AppObject/AppObjectRepo.js +132 -0
  16. package/lib/AppObject/AppObjectUC.d.ts +3 -0
  17. package/lib/AppObject/AppObjectUC.js +7 -0
  18. package/lib/AppObject/AppObjectView.d.ts +3 -0
  19. package/lib/AppObject/AppObjectView.js +7 -0
  20. package/lib/AppObject/getSingletonComponent.d.ts +3 -0
  21. package/lib/AppObject/getSingletonComponent.js +7 -0
  22. package/lib/AppObject/index.d.ts +9 -0
  23. package/lib/AppObject/index.js +21 -0
  24. package/lib/Components/Assets/Controllers/archiveAsset.d.ts +2 -0
  25. package/lib/Components/Assets/Controllers/archiveAsset.js +13 -0
  26. package/lib/Components/Assets/Controllers/deleteAsset.d.ts +2 -0
  27. package/lib/Components/Assets/Controllers/deleteAsset.js +13 -0
  28. package/lib/Components/Assets/Controllers/downloadAssetFile.d.ts +2 -0
  29. package/lib/Components/Assets/Controllers/downloadAssetFile.js +13 -0
  30. package/lib/Components/Assets/Controllers/getAppAssets.d.ts +2 -0
  31. package/lib/Components/Assets/Controllers/getAppAssets.js +13 -0
  32. package/lib/Components/Assets/Controllers/index.d.ts +6 -0
  33. package/lib/Components/Assets/Controllers/index.js +18 -0
  34. package/lib/Components/Assets/Controllers/toggleShowArchivedAssets.d.ts +2 -0
  35. package/lib/Components/Assets/Controllers/toggleShowArchivedAssets.js +14 -0
  36. package/lib/Components/Assets/Controllers/updateAssetFile.d.ts +2 -0
  37. package/lib/Components/Assets/Controllers/updateAssetFile.js +13 -0
  38. package/lib/Components/Assets/Entities/AppAssetsEntity.d.ts +15 -0
  39. package/lib/Components/Assets/Entities/AppAssetsEntity.js +65 -0
  40. package/lib/Components/Assets/Entities/AssetEntity.d.ts +34 -0
  41. package/lib/Components/Assets/Entities/AssetEntity.js +150 -0
  42. package/lib/Components/Assets/Entities/AssetRepo.d.ts +28 -0
  43. package/lib/Components/Assets/Entities/AssetRepo.js +86 -0
  44. package/lib/Components/Assets/Entities/AssetRepository.d.ts +34 -0
  45. package/lib/Components/Assets/Entities/AssetRepository.js +267 -0
  46. package/lib/Components/Assets/Entities/index.d.ts +3 -0
  47. package/lib/Components/Assets/Entities/index.js +15 -0
  48. package/lib/Components/Assets/Mocks/MockArchiveAsset.d.ts +8 -0
  49. package/lib/Components/Assets/Mocks/MockArchiveAsset.js +15 -0
  50. package/lib/Components/Assets/Mocks/MockDeleteAssetUC.d.ts +9 -0
  51. package/lib/Components/Assets/Mocks/MockDeleteAssetUC.js +16 -0
  52. package/lib/Components/Assets/Mocks/MockDownloadAssetFileUC.d.ts +9 -0
  53. package/lib/Components/Assets/Mocks/MockDownloadAssetFileUC.js +16 -0
  54. package/lib/Components/Assets/Mocks/MockGetAppAssetsUC.d.ts +8 -0
  55. package/lib/Components/Assets/Mocks/MockGetAppAssetsUC.js +15 -0
  56. package/lib/Components/Assets/Mocks/MockGetAssetBlobURLUC.d.ts +8 -0
  57. package/lib/Components/Assets/Mocks/MockGetAssetBlobURLUC.js +15 -0
  58. package/lib/Components/Assets/Mocks/MockGetAssetFileUC.d.ts +8 -0
  59. package/lib/Components/Assets/Mocks/MockGetAssetFileUC.js +15 -0
  60. package/lib/Components/Assets/Mocks/MockGetAssetUC.d.ts +8 -0
  61. package/lib/Components/Assets/Mocks/MockGetAssetUC.js +15 -0
  62. package/lib/Components/Assets/Mocks/MockUpdateAssetFileUC.d.ts +8 -0
  63. package/lib/Components/Assets/Mocks/MockUpdateAssetFileUC.js +15 -0
  64. package/lib/Components/Assets/Mocks/index.d.ts +8 -0
  65. package/lib/Components/Assets/Mocks/index.js +20 -0
  66. package/lib/Components/Assets/PMs/AppAssetListPM.d.ts +10 -0
  67. package/lib/Components/Assets/PMs/AppAssetListPM.js +57 -0
  68. package/lib/Components/Assets/PMs/AssetPM.d.ts +16 -0
  69. package/lib/Components/Assets/PMs/AssetPM.js +60 -0
  70. package/lib/Components/Assets/PMs/EditingAppAssetPM.d.ts +16 -0
  71. package/lib/Components/Assets/PMs/EditingAppAssetPM.js +56 -0
  72. package/lib/Components/Assets/PMs/ShowArchivedAppAssetPM.d.ts +9 -0
  73. package/lib/Components/Assets/PMs/ShowArchivedAppAssetPM.js +31 -0
  74. package/lib/Components/Assets/PMs/index.d.ts +4 -0
  75. package/lib/Components/Assets/PMs/index.js +16 -0
  76. package/lib/Components/Assets/UCs/ArchiveAssetUC.d.ts +7 -0
  77. package/lib/Components/Assets/UCs/ArchiveAssetUC.js +95 -0
  78. package/lib/Components/Assets/UCs/DeleteAssetUC.d.ts +8 -0
  79. package/lib/Components/Assets/UCs/DeleteAssetUC.js +109 -0
  80. package/lib/Components/Assets/UCs/DownloadAssetFileUC.d.ts +8 -0
  81. package/lib/Components/Assets/UCs/DownloadAssetFileUC.js +101 -0
  82. package/lib/Components/Assets/UCs/GetAppAssetsUC.d.ts +7 -0
  83. package/lib/Components/Assets/UCs/GetAppAssetsUC.js +57 -0
  84. package/lib/Components/Assets/UCs/GetAssetBlobURLUC.d.ts +7 -0
  85. package/lib/Components/Assets/UCs/GetAssetBlobURLUC.js +77 -0
  86. package/lib/Components/Assets/UCs/GetAssetFileUC.d.ts +7 -0
  87. package/lib/Components/Assets/UCs/GetAssetFileUC.js +73 -0
  88. package/lib/Components/Assets/UCs/GetAssetUC.d.ts +8 -0
  89. package/lib/Components/Assets/UCs/GetAssetUC.js +53 -0
  90. package/lib/Components/Assets/UCs/UpdateArchiveAssetUC.d.ts +7 -0
  91. package/lib/Components/Assets/UCs/UpdateArchiveAssetUC.js +59 -0
  92. package/lib/Components/Assets/UCs/UpdateAssetFileUC.d.ts +12 -0
  93. package/lib/Components/Assets/UCs/UpdateAssetFileUC.js +83 -0
  94. package/lib/Components/Assets/UCs/index.d.ts +8 -0
  95. package/lib/Components/Assets/UCs/index.js +20 -0
  96. package/lib/Components/Assets/index.d.ts +5 -0
  97. package/lib/Components/Assets/index.js +17 -0
  98. package/lib/Components/Dialog/Controllers/activeDialogHasClosed.d.ts +2 -0
  99. package/lib/Components/Dialog/Controllers/activeDialogHasClosed.js +14 -0
  100. package/lib/Components/Dialog/Controllers/index.d.ts +1 -0
  101. package/lib/Components/Dialog/Controllers/index.js +13 -0
  102. package/lib/Components/Dialog/Entities/Alert.d.ts +25 -0
  103. package/lib/Components/Dialog/Entities/Alert.js +48 -0
  104. package/lib/Components/Dialog/Entities/Confirm.d.ts +29 -0
  105. package/lib/Components/Dialog/Entities/Confirm.js +53 -0
  106. package/lib/Components/Dialog/Entities/DialogAlert.d.ts +25 -0
  107. package/lib/Components/Dialog/Entities/DialogAlert.js +48 -0
  108. package/lib/Components/Dialog/Entities/DialogConfirm.d.ts +29 -0
  109. package/lib/Components/Dialog/Entities/DialogConfirm.js +53 -0
  110. package/lib/Components/Dialog/Entities/DialogMarkDownEditor.d.ts +21 -0
  111. package/lib/Components/Dialog/Entities/DialogMarkDownEditor.js +44 -0
  112. package/lib/Components/Dialog/Entities/DialogQueue.d.ts +24 -0
  113. package/lib/Components/Dialog/Entities/DialogQueue.js +68 -0
  114. package/lib/Components/Dialog/Entities/DialogSpinner.d.ts +24 -0
  115. package/lib/Components/Dialog/Entities/DialogSpinner.js +63 -0
  116. package/lib/Components/Dialog/Entities/MarkDownEditor.d.ts +21 -0
  117. package/lib/Components/Dialog/Entities/MarkDownEditor.js +44 -0
  118. package/lib/Components/Dialog/Entities/SelectModel.d.ts +20 -0
  119. package/lib/Components/Dialog/Entities/SelectModel.js +49 -0
  120. package/lib/Components/Dialog/Entities/Spinner.d.ts +24 -0
  121. package/lib/Components/Dialog/Entities/Spinner.js +63 -0
  122. package/lib/Components/Dialog/Entities/index.d.ts +6 -0
  123. package/lib/Components/Dialog/Entities/index.js +18 -0
  124. package/lib/Components/Dialog/Factories/alertDialogFactory.d.ts +3 -0
  125. package/lib/Components/Dialog/Factories/alertDialogFactory.js +15 -0
  126. package/lib/Components/Dialog/Factories/confirmDialogFactory.d.ts +3 -0
  127. package/lib/Components/Dialog/Factories/confirmDialogFactory.js +15 -0
  128. package/lib/Components/Dialog/Factories/index.d.ts +5 -0
  129. package/lib/Components/Dialog/Factories/index.js +17 -0
  130. package/lib/Components/Dialog/Factories/markdownDialogEditorFactory.d.ts +3 -0
  131. package/lib/Components/Dialog/Factories/markdownDialogEditorFactory.js +15 -0
  132. package/lib/Components/Dialog/Factories/selectDialogModelFactory.d.ts +3 -0
  133. package/lib/Components/Dialog/Factories/selectDialogModelFactory.js +12 -0
  134. package/lib/Components/Dialog/Factories/spinnerDialogFactory.d.ts +3 -0
  135. package/lib/Components/Dialog/Factories/spinnerDialogFactory.js +15 -0
  136. package/lib/Components/Dialog/PMs/AlertDialogPM.d.ts +16 -0
  137. package/lib/Components/Dialog/PMs/AlertDialogPM.js +59 -0
  138. package/lib/Components/Dialog/PMs/ConfirmDialogPM.d.ts +18 -0
  139. package/lib/Components/Dialog/PMs/ConfirmDialogPM.js +67 -0
  140. package/lib/Components/Dialog/PMs/DialogQueuePM.d.ts +16 -0
  141. package/lib/Components/Dialog/PMs/DialogQueuePM.js +52 -0
  142. package/lib/Components/Dialog/PMs/MarkDownEditorDialogPM.d.ts +14 -0
  143. package/lib/Components/Dialog/PMs/MarkDownEditorDialogPM.js +51 -0
  144. package/lib/Components/Dialog/PMs/SpinnerDialogPM.d.ts +14 -0
  145. package/lib/Components/Dialog/PMs/SpinnerDialogPM.js +51 -0
  146. package/lib/Components/Dialog/PMs/index.d.ts +5 -0
  147. package/lib/Components/Dialog/PMs/index.js +17 -0
  148. package/lib/Components/Dialog/index.d.ts +4 -0
  149. package/lib/Components/Dialog/index.js +16 -0
  150. package/lib/Components/Dispatcher/Entities/HostDispatchEntity.d.ts +13 -0
  151. package/lib/Components/Dispatcher/Entities/HostDispatchEntity.js +86 -0
  152. package/lib/Components/Dispatcher/Entities/index.d.ts +1 -0
  153. package/lib/Components/Dispatcher/Entities/index.js +13 -0
  154. package/lib/Components/Dispatcher/Mocks/MockDispatchAppDispatcherUC.d.ts +7 -0
  155. package/lib/Components/Dispatcher/Mocks/MockDispatchAppDispatcherUC.js +11 -0
  156. package/lib/Components/Dispatcher/Mocks/MockDispatchIsAuthoringUC.d.ts +7 -0
  157. package/lib/Components/Dispatcher/Mocks/MockDispatchIsAuthoringUC.js +11 -0
  158. package/lib/Components/Dispatcher/Mocks/MockDispatchSetStateUC.d.ts +7 -0
  159. package/lib/Components/Dispatcher/Mocks/MockDispatchSetStateUC.js +11 -0
  160. package/lib/Components/Dispatcher/Mocks/MockDispatchShowBabylonInspectorUC.d.ts +7 -0
  161. package/lib/Components/Dispatcher/Mocks/MockDispatchShowBabylonInspectorUC.js +11 -0
  162. package/lib/Components/Dispatcher/Mocks/MockDispatchStartAppUC.d.ts +7 -0
  163. package/lib/Components/Dispatcher/Mocks/MockDispatchStartAppUC.js +11 -0
  164. package/lib/Components/Dispatcher/Mocks/MockDispatchStartBrowseChannelsUC.d.ts +7 -0
  165. package/lib/Components/Dispatcher/Mocks/MockDispatchStartBrowseChannelsUC.js +11 -0
  166. package/lib/Components/Dispatcher/Mocks/MockDispatchStartZSpaceUC.d.ts +7 -0
  167. package/lib/Components/Dispatcher/Mocks/MockDispatchStartZSpaceUC.js +11 -0
  168. package/lib/Components/Dispatcher/Mocks/MockDispatchStopAppUC.d.ts +7 -0
  169. package/lib/Components/Dispatcher/Mocks/MockDispatchStopAppUC.js +11 -0
  170. package/lib/Components/Dispatcher/Mocks/MockDispatchStopZSpaceUC.d.ts +7 -0
  171. package/lib/Components/Dispatcher/Mocks/MockDispatchStopZSpaceUC.js +11 -0
  172. package/lib/Components/Dispatcher/Mocks/MockDispatchThemeUC.d.ts +7 -0
  173. package/lib/Components/Dispatcher/Mocks/MockDispatchThemeUC.js +11 -0
  174. package/lib/Components/Dispatcher/Mocks/MockHostDispatcher.d.ts +11 -0
  175. package/lib/Components/Dispatcher/Mocks/MockHostDispatcher.js +15 -0
  176. package/lib/Components/Dispatcher/Mocks/index.d.ts +11 -0
  177. package/lib/Components/Dispatcher/Mocks/index.js +23 -0
  178. package/lib/Components/Dispatcher/UCs/DispatchDisposeAppUC.d.ts +9 -0
  179. package/lib/Components/Dispatcher/UCs/DispatchDisposeAppUC.js +48 -0
  180. package/lib/Components/Dispatcher/UCs/DispatchIsAuthoringUC.d.ts +9 -0
  181. package/lib/Components/Dispatcher/UCs/DispatchIsAuthoringUC.js +52 -0
  182. package/lib/Components/Dispatcher/UCs/DispatchSetStateUC.d.ts +9 -0
  183. package/lib/Components/Dispatcher/UCs/DispatchSetStateUC.js +52 -0
  184. package/lib/Components/Dispatcher/UCs/DispatchShowBabylonInspectorUC.d.ts +9 -0
  185. package/lib/Components/Dispatcher/UCs/DispatchShowBabylonInspectorUC.js +51 -0
  186. package/lib/Components/Dispatcher/UCs/DispatchStartAppUC.d.ts +9 -0
  187. package/lib/Components/Dispatcher/UCs/DispatchStartAppUC.js +51 -0
  188. package/lib/Components/Dispatcher/UCs/DispatchStartBrowseChannelsUC.d.ts +15 -0
  189. package/lib/Components/Dispatcher/UCs/DispatchStartBrowseChannelsUC.js +55 -0
  190. package/lib/Components/Dispatcher/UCs/DispatchStartZSpaceUC.d.ts +9 -0
  191. package/lib/Components/Dispatcher/UCs/DispatchStartZSpaceUC.js +76 -0
  192. package/lib/Components/Dispatcher/UCs/DispatchStopAppUC.d.ts +9 -0
  193. package/lib/Components/Dispatcher/UCs/DispatchStopAppUC.js +48 -0
  194. package/lib/Components/Dispatcher/UCs/DispatchStopZSpaceUC.d.ts +9 -0
  195. package/lib/Components/Dispatcher/UCs/DispatchStopZSpaceUC.js +48 -0
  196. package/lib/Components/Dispatcher/UCs/DispatchThemeUC.d.ts +9 -0
  197. package/lib/Components/Dispatcher/UCs/DispatchThemeUC.js +51 -0
  198. package/lib/Components/Dispatcher/UCs/index.d.ts +10 -0
  199. package/lib/Components/Dispatcher/UCs/index.js +22 -0
  200. package/lib/Components/Dispatcher/index.d.ts +3 -0
  201. package/lib/Components/Dispatcher/index.js +15 -0
  202. package/lib/Components/Handler/Entites/HostHandler.d.ts +22 -0
  203. package/lib/Components/Handler/Entites/HostHandler.js +61 -0
  204. package/lib/Components/Handler/Entites/index.d.ts +1 -0
  205. package/lib/Components/Handler/Entites/index.js +13 -0
  206. package/lib/Components/Handler/Entities/HostHandler.d.ts +22 -0
  207. package/lib/Components/Handler/Entities/HostHandler.js +61 -0
  208. package/lib/Components/Handler/Entities/index.d.ts +1 -0
  209. package/lib/Components/Handler/Entities/index.js +13 -0
  210. package/lib/Components/Handler/Mocks/MockGetAssetBlobURLHandler.d.ts +8 -0
  211. package/lib/Components/Handler/Mocks/MockGetAssetBlobURLHandler.js +12 -0
  212. package/lib/Components/Handler/Mocks/MockGetAssetFolderURLHandler.d.ts +8 -0
  213. package/lib/Components/Handler/Mocks/MockGetAssetFolderURLHandler.js +12 -0
  214. package/lib/Components/Handler/Mocks/MockGetAssetMetaHandler.d.ts +8 -0
  215. package/lib/Components/Handler/Mocks/MockGetAssetMetaHandler.js +12 -0
  216. package/lib/Components/Handler/Mocks/MockGetAssetsForOwnerHandler.d.ts +8 -0
  217. package/lib/Components/Handler/Mocks/MockGetAssetsForOwnerHandler.js +12 -0
  218. package/lib/Components/Handler/Mocks/MockGetLinkedAssetsHandler.d.ts +8 -0
  219. package/lib/Components/Handler/Mocks/MockGetLinkedAssetsHandler.js +12 -0
  220. package/lib/Components/Handler/Mocks/MockGoToNextStateHandler.d.ts +8 -0
  221. package/lib/Components/Handler/Mocks/MockGoToNextStateHandler.js +12 -0
  222. package/lib/Components/Handler/Mocks/MockGoToPreviousStateHandler.d.ts +8 -0
  223. package/lib/Components/Handler/Mocks/MockGoToPreviousStateHandler.js +12 -0
  224. package/lib/Components/Handler/Mocks/MockHasNextStateHandler.d.ts +8 -0
  225. package/lib/Components/Handler/Mocks/MockHasNextStateHandler.js +12 -0
  226. package/lib/Components/Handler/Mocks/MockHasPreviousStateHandler.d.ts +8 -0
  227. package/lib/Components/Handler/Mocks/MockHasPreviousStateHandler.js +12 -0
  228. package/lib/Components/Handler/Mocks/MockIsAssetFetchedHandler.d.ts +8 -0
  229. package/lib/Components/Handler/Mocks/MockIsAssetFetchedHandler.js +12 -0
  230. package/lib/Components/Handler/Mocks/MockIsZSpaceAvailableHandler.d.ts +8 -0
  231. package/lib/Components/Handler/Mocks/MockIsZSpaceAvailableHandler.js +12 -0
  232. package/lib/Components/Handler/Mocks/MockNewActivityAssetHandler.d.ts +8 -0
  233. package/lib/Components/Handler/Mocks/MockNewActivityAssetHandler.js +12 -0
  234. package/lib/Components/Handler/Mocks/MockOnAppIsReadyHandler.d.ts +8 -0
  235. package/lib/Components/Handler/Mocks/MockOnAppIsReadyHandler.js +12 -0
  236. package/lib/Components/Handler/Mocks/MockOnStateChangeHandler.d.ts +8 -0
  237. package/lib/Components/Handler/Mocks/MockOnStateChangeHandler.js +12 -0
  238. package/lib/Components/Handler/Mocks/MockOnStateCompleteHandler.d.ts +8 -0
  239. package/lib/Components/Handler/Mocks/MockOnStateCompleteHandler.js +12 -0
  240. package/lib/Components/Handler/Mocks/index.d.ts +13 -0
  241. package/lib/Components/Handler/Mocks/index.js +25 -0
  242. package/lib/Components/Handler/UCs/CallbackAssetDTO.d.ts +5 -0
  243. package/lib/Components/Handler/UCs/CallbackAssetDTO.js +2 -0
  244. package/lib/Components/Handler/UCs/GetAssetBlobURLHandler.d.ts +10 -0
  245. package/lib/Components/Handler/UCs/GetAssetBlobURLHandler.js +64 -0
  246. package/lib/Components/Handler/UCs/GetAssetFolderURLHandler.d.ts +10 -0
  247. package/lib/Components/Handler/UCs/GetAssetFolderURLHandler.js +47 -0
  248. package/lib/Components/Handler/UCs/GetAssetMetaHandler.d.ts +11 -0
  249. package/lib/Components/Handler/UCs/GetAssetMetaHandler.js +70 -0
  250. package/lib/Components/Handler/UCs/GetAssetsForOwnerHandler.d.ts +11 -0
  251. package/lib/Components/Handler/UCs/GetAssetsForOwnerHandler.js +47 -0
  252. package/lib/Components/Handler/UCs/GetLinkedAssetsHandler.d.ts +11 -0
  253. package/lib/Components/Handler/UCs/GetLinkedAssetsHandler.js +82 -0
  254. package/lib/Components/Handler/UCs/GoToNextStateHandler.d.ts +9 -0
  255. package/lib/Components/Handler/UCs/GoToNextStateHandler.js +40 -0
  256. package/lib/Components/Handler/UCs/GoToPreviousStateHandler.d.ts +9 -0
  257. package/lib/Components/Handler/UCs/GoToPreviousStateHandler.js +40 -0
  258. package/lib/Components/Handler/UCs/HasNextStateHandler.d.ts +10 -0
  259. package/lib/Components/Handler/UCs/HasNextStateHandler.js +47 -0
  260. package/lib/Components/Handler/UCs/HasPreviousStateHandler.d.ts +10 -0
  261. package/lib/Components/Handler/UCs/HasPreviousStateHandler.js +47 -0
  262. package/lib/Components/Handler/UCs/IsAssetFetchedHandler.d.ts +14 -0
  263. package/lib/Components/Handler/UCs/IsAssetFetchedHandler.js +48 -0
  264. package/lib/Components/Handler/UCs/IsZSpaceAvailableHandler.d.ts +10 -0
  265. package/lib/Components/Handler/UCs/IsZSpaceAvailableHandler.js +47 -0
  266. package/lib/Components/Handler/UCs/NewActivityAssetHandler.d.ts +10 -0
  267. package/lib/Components/Handler/UCs/NewActivityAssetHandler.js +47 -0
  268. package/lib/Components/Handler/UCs/OnAppIsReadyHandler.d.ts +9 -0
  269. package/lib/Components/Handler/UCs/OnAppIsReadyHandler.js +39 -0
  270. package/lib/Components/Handler/UCs/OnStateChangeHandler.d.ts +18 -0
  271. package/lib/Components/Handler/UCs/OnStateChangeHandler.js +70 -0
  272. package/lib/Components/Handler/UCs/OnStateCompleteHandler.d.ts +9 -0
  273. package/lib/Components/Handler/UCs/OnStateCompleteHandler.js +39 -0
  274. package/lib/Components/Handler/UCs/RegisterExternalStyleSheetsHandler.d.ts +10 -0
  275. package/lib/Components/Handler/UCs/RegisterExternalStyleSheetsHandler.js +48 -0
  276. package/lib/Components/Handler/UCs/RestoreCurrentStateHandler.d.ts +9 -0
  277. package/lib/Components/Handler/UCs/RestoreCurrentStateHandler.js +41 -0
  278. package/lib/Components/Handler/UCs/ShowAlertHandler.d.ts +16 -0
  279. package/lib/Components/Handler/UCs/ShowAlertHandler.js +64 -0
  280. package/lib/Components/Handler/UCs/ShowConfirmHandler.d.ts +18 -0
  281. package/lib/Components/Handler/UCs/ShowConfirmHandler.js +68 -0
  282. package/lib/Components/Handler/UCs/ShowMarkDownEditorHandler.d.ts +22 -0
  283. package/lib/Components/Handler/UCs/ShowMarkDownEditorHandler.js +61 -0
  284. package/lib/Components/Handler/UCs/ShowSelectModelHandler.d.ts +10 -0
  285. package/lib/Components/Handler/UCs/ShowSelectModelHandler.js +47 -0
  286. package/lib/Components/Handler/UCs/ShowSpinnerHandler.d.ts +15 -0
  287. package/lib/Components/Handler/UCs/ShowSpinnerHandler.js +65 -0
  288. package/lib/Components/Handler/UCs/StartZSpaceHandler.d.ts +9 -0
  289. package/lib/Components/Handler/UCs/StartZSpaceHandler.js +40 -0
  290. package/lib/Components/Handler/UCs/StopZSpaceHandler.d.ts +9 -0
  291. package/lib/Components/Handler/UCs/StopZSpaceHandler.js +40 -0
  292. package/lib/Components/Handler/UCs/SubmitActivityAssetHandler.d.ts +10 -0
  293. package/lib/Components/Handler/UCs/SubmitActivityAssetHandler.js +47 -0
  294. package/lib/Components/Handler/UCs/SubmitLogHandler.d.ts +11 -0
  295. package/lib/Components/Handler/UCs/SubmitLogHandler.js +49 -0
  296. package/lib/Components/Handler/UCs/SubmitResultHandler.d.ts +31 -0
  297. package/lib/Components/Handler/UCs/SubmitResultHandler.js +60 -0
  298. package/lib/Components/Handler/UCs/index.d.ts +28 -0
  299. package/lib/Components/Handler/UCs/index.js +40 -0
  300. package/lib/Components/Handler/index.d.ts +2 -0
  301. package/lib/Components/Handler/index.js +14 -0
  302. package/lib/Components/VivedAPI/Controllers/index.d.ts +3 -0
  303. package/lib/Components/VivedAPI/Controllers/index.js +15 -0
  304. package/lib/Components/VivedAPI/Controllers/loginUser.d.ts +2 -0
  305. package/lib/Components/VivedAPI/Controllers/loginUser.js +15 -0
  306. package/lib/Components/VivedAPI/Controllers/logoutUser.d.ts +2 -0
  307. package/lib/Components/VivedAPI/Controllers/logoutUser.js +15 -0
  308. package/lib/Components/VivedAPI/Controllers/refreshAuthenticatedUser.d.ts +2 -0
  309. package/lib/Components/VivedAPI/Controllers/refreshAuthenticatedUser.js +15 -0
  310. package/lib/Components/VivedAPI/Entities/VivedAPIEntity.d.ts +11 -0
  311. package/lib/Components/VivedAPI/Entities/VivedAPIEntity.js +27 -0
  312. package/lib/Components/VivedAPI/Entities/index.d.ts +1 -0
  313. package/lib/Components/VivedAPI/Entities/index.js +13 -0
  314. package/lib/Components/VivedAPI/Mocks/MockBasicFetchUC.d.ts +8 -0
  315. package/lib/Components/VivedAPI/Mocks/MockBasicFetchUC.js +15 -0
  316. package/lib/Components/VivedAPI/Mocks/MockBlobRequestUC.d.ts +8 -0
  317. package/lib/Components/VivedAPI/Mocks/MockBlobRequestUC.js +15 -0
  318. package/lib/Components/VivedAPI/Mocks/MockDeleteAssetOnAPIUC.d.ts +8 -0
  319. package/lib/Components/VivedAPI/Mocks/MockDeleteAssetOnAPIUC.js +15 -0
  320. package/lib/Components/VivedAPI/Mocks/MockDeleteAssetUC.d.ts +8 -0
  321. package/lib/Components/VivedAPI/Mocks/MockDeleteAssetUC.js +15 -0
  322. package/lib/Components/VivedAPI/Mocks/MockFetchAssetFileFromAPIUC.d.ts +8 -0
  323. package/lib/Components/VivedAPI/Mocks/MockFetchAssetFileFromAPIUC.js +15 -0
  324. package/lib/Components/VivedAPI/Mocks/MockFetchAssetFileUC.d.ts +8 -0
  325. package/lib/Components/VivedAPI/Mocks/MockFetchAssetFileUC.js +15 -0
  326. package/lib/Components/VivedAPI/Mocks/MockFetchAssetMetaFromAPIUC.d.ts +8 -0
  327. package/lib/Components/VivedAPI/Mocks/MockFetchAssetMetaFromAPIUC.js +15 -0
  328. package/lib/Components/VivedAPI/Mocks/MockFetchAssetMetaUC.d.ts +8 -0
  329. package/lib/Components/VivedAPI/Mocks/MockFetchAssetMetaUC.js +15 -0
  330. package/lib/Components/VivedAPI/Mocks/MockFileUpload.d.ts +8 -0
  331. package/lib/Components/VivedAPI/Mocks/MockFileUpload.js +15 -0
  332. package/lib/Components/VivedAPI/Mocks/MockGetAppFromAPIUC.d.ts +8 -0
  333. package/lib/Components/VivedAPI/Mocks/MockGetAppFromAPIUC.js +15 -0
  334. package/lib/Components/VivedAPI/Mocks/MockGetAppUC.d.ts +8 -0
  335. package/lib/Components/VivedAPI/Mocks/MockGetAppUC.js +15 -0
  336. package/lib/Components/VivedAPI/Mocks/MockGetAssetsForOwnerUC.d.ts +8 -0
  337. package/lib/Components/VivedAPI/Mocks/MockGetAssetsForOwnerUC.js +15 -0
  338. package/lib/Components/VivedAPI/Mocks/MockJsonRequestUC.d.ts +8 -0
  339. package/lib/Components/VivedAPI/Mocks/MockJsonRequestUC.js +15 -0
  340. package/lib/Components/VivedAPI/Mocks/MockPatchAssetFileUC.d.ts +8 -0
  341. package/lib/Components/VivedAPI/Mocks/MockPatchAssetFileUC.js +15 -0
  342. package/lib/Components/VivedAPI/Mocks/MockPatchAssetIsArchivedUC.d.ts +8 -0
  343. package/lib/Components/VivedAPI/Mocks/MockPatchAssetIsArchivedUC.js +15 -0
  344. package/lib/Components/VivedAPI/Mocks/MockPatchAssetMetaUC.d.ts +8 -0
  345. package/lib/Components/VivedAPI/Mocks/MockPatchAssetMetaUC.js +15 -0
  346. package/lib/Components/VivedAPI/Mocks/MockPatchAssetUC.d.ts +8 -0
  347. package/lib/Components/VivedAPI/Mocks/MockPatchAssetUC.js +15 -0
  348. package/lib/Components/VivedAPI/Mocks/MockPostNewAssetUC.d.ts +8 -0
  349. package/lib/Components/VivedAPI/Mocks/MockPostNewAssetUC.js +18 -0
  350. package/lib/Components/VivedAPI/Mocks/MockSignedAuthToken.d.ts +9 -0
  351. package/lib/Components/VivedAPI/Mocks/MockSignedAuthToken.js +16 -0
  352. package/lib/Components/VivedAPI/Mocks/MockUserLoginUC.d.ts +10 -0
  353. package/lib/Components/VivedAPI/Mocks/MockUserLoginUC.js +17 -0
  354. package/lib/Components/VivedAPI/Mocks/index.d.ts +16 -0
  355. package/lib/Components/VivedAPI/Mocks/index.js +28 -0
  356. package/lib/Components/VivedAPI/PMs/UserTokenPM.d.ts +9 -0
  357. package/lib/Components/VivedAPI/PMs/UserTokenPM.js +31 -0
  358. package/lib/Components/VivedAPI/PMs/index.d.ts +1 -0
  359. package/lib/Components/VivedAPI/PMs/index.js +13 -0
  360. package/lib/Components/VivedAPI/UCs/BasicFetchUC.d.ts +13 -0
  361. package/lib/Components/VivedAPI/UCs/BasicFetchUC.js +35 -0
  362. package/lib/Components/VivedAPI/UCs/BlobRequestUC.d.ts +13 -0
  363. package/lib/Components/VivedAPI/UCs/BlobRequestUC.js +38 -0
  364. package/lib/Components/VivedAPI/UCs/DeleteAssetOnAPIUC.d.ts +7 -0
  365. package/lib/Components/VivedAPI/UCs/DeleteAssetOnAPIUC.js +63 -0
  366. package/lib/Components/VivedAPI/UCs/DeleteAssetUC.d.ts +7 -0
  367. package/lib/Components/VivedAPI/UCs/DeleteAssetUC.js +63 -0
  368. package/lib/Components/VivedAPI/UCs/FetchAssetFileFromAPIUC.d.ts +8 -0
  369. package/lib/Components/VivedAPI/UCs/FetchAssetFileFromAPIUC.js +53 -0
  370. package/lib/Components/VivedAPI/UCs/FetchAssetFileUC.d.ts +8 -0
  371. package/lib/Components/VivedAPI/UCs/FetchAssetFileUC.js +53 -0
  372. package/lib/Components/VivedAPI/UCs/FetchAssetMetaFromAPIUC.d.ts +8 -0
  373. package/lib/Components/VivedAPI/UCs/FetchAssetMetaFromAPIUC.js +72 -0
  374. package/lib/Components/VivedAPI/UCs/FetchAssetMetaUC.d.ts +20 -0
  375. package/lib/Components/VivedAPI/UCs/FetchAssetMetaUC.js +72 -0
  376. package/lib/Components/VivedAPI/UCs/FileUploadUC.d.ts +7 -0
  377. package/lib/Components/VivedAPI/UCs/FileUploadUC.js +62 -0
  378. package/lib/Components/VivedAPI/UCs/GetAppFromAPIUC.d.ts +28 -0
  379. package/lib/Components/VivedAPI/UCs/GetAppFromAPIUC.js +70 -0
  380. package/lib/Components/VivedAPI/UCs/GetAppUC.d.ts +28 -0
  381. package/lib/Components/VivedAPI/UCs/GetAppUC.js +70 -0
  382. package/lib/Components/VivedAPI/UCs/GetAssetsForOwnerFromAPIUC.d.ts +8 -0
  383. package/lib/Components/VivedAPI/UCs/GetAssetsForOwnerFromAPIUC.js +86 -0
  384. package/lib/Components/VivedAPI/UCs/GetAssetsForOwnerUC.d.ts +20 -0
  385. package/lib/Components/VivedAPI/UCs/GetAssetsForOwnerUC.js +86 -0
  386. package/lib/Components/VivedAPI/UCs/JsonRequestUC.d.ts +13 -0
  387. package/lib/Components/VivedAPI/UCs/JsonRequestUC.js +49 -0
  388. package/lib/Components/VivedAPI/UCs/PatchAssetFileUC.d.ts +7 -0
  389. package/lib/Components/VivedAPI/UCs/PatchAssetFileUC.js +84 -0
  390. package/lib/Components/VivedAPI/UCs/PatchAssetIsArchivedUC.d.ts +7 -0
  391. package/lib/Components/VivedAPI/UCs/PatchAssetIsArchivedUC.js +67 -0
  392. package/lib/Components/VivedAPI/UCs/PatchAssetMetaUC.d.ts +13 -0
  393. package/lib/Components/VivedAPI/UCs/PatchAssetMetaUC.js +70 -0
  394. package/lib/Components/VivedAPI/UCs/PatchAssetUC.d.ts +14 -0
  395. package/lib/Components/VivedAPI/UCs/PatchAssetUC.js +88 -0
  396. package/lib/Components/VivedAPI/UCs/PostNewAssetUC.d.ts +17 -0
  397. package/lib/Components/VivedAPI/UCs/PostNewAssetUC.js +92 -0
  398. package/lib/Components/VivedAPI/UCs/SignedAuthTokenUC.d.ts +7 -0
  399. package/lib/Components/VivedAPI/UCs/SignedAuthTokenUC.js +11 -0
  400. package/lib/Components/VivedAPI/UCs/UserAuthUC.d.ts +8 -0
  401. package/lib/Components/VivedAPI/UCs/UserAuthUC.js +11 -0
  402. package/lib/Components/VivedAPI/UCs/index.d.ts +16 -0
  403. package/lib/Components/VivedAPI/UCs/index.js +28 -0
  404. package/lib/Components/VivedAPI/index.d.ts +5 -0
  405. package/lib/Components/VivedAPI/index.js +17 -0
  406. package/lib/Components/ZSpaceHost/Controllers/index.d.ts +1 -0
  407. package/lib/Components/ZSpaceHost/Controllers/index.js +13 -0
  408. package/lib/Components/ZSpaceHost/Controllers/toggleEmulateZSpace.d.ts +2 -0
  409. package/lib/Components/ZSpaceHost/Controllers/toggleEmulateZSpace.js +13 -0
  410. package/lib/Components/ZSpaceHost/Entities/ZSpaceHost.d.ts +14 -0
  411. package/lib/Components/ZSpaceHost/Entities/ZSpaceHost.js +43 -0
  412. package/lib/Components/ZSpaceHost/Entities/index.d.ts +1 -0
  413. package/lib/Components/ZSpaceHost/Entities/index.js +13 -0
  414. package/lib/Components/ZSpaceHost/PMs/EmulateZSpacePM.d.ts +9 -0
  415. package/lib/Components/ZSpaceHost/PMs/EmulateZSpacePM.js +31 -0
  416. package/lib/Components/ZSpaceHost/PMs/ZSpaceIsActivePM.d.ts +9 -0
  417. package/lib/Components/ZSpaceHost/PMs/ZSpaceIsActivePM.js +31 -0
  418. package/lib/Components/ZSpaceHost/PMs/index.d.ts +2 -0
  419. package/lib/Components/ZSpaceHost/PMs/index.js +14 -0
  420. package/lib/Components/ZSpaceHost/UCs/checkForZSpaceSupport.d.ts +2 -0
  421. package/lib/Components/ZSpaceHost/UCs/checkForZSpaceSupport.js +30 -0
  422. package/lib/Components/ZSpaceHost/UCs/index.d.ts +1 -0
  423. package/lib/Components/ZSpaceHost/UCs/index.js +13 -0
  424. package/lib/Components/ZSpaceHost/index.d.ts +4 -0
  425. package/lib/Components/ZSpaceHost/index.js +16 -0
  426. package/lib/Components/index.d.ts +6 -0
  427. package/lib/Components/index.js +18 -0
  428. package/lib/Entities/Asset.d.ts +30 -0
  429. package/lib/Entities/Asset.js +131 -0
  430. package/lib/Entities/AssetRepo.d.ts +10 -0
  431. package/lib/Entities/AssetRepo.js +56 -0
  432. package/lib/Entities/Auth.d.ts +7 -0
  433. package/lib/Entities/Auth.js +25 -0
  434. package/lib/Entities/ChallengeResults.d.ts +40 -0
  435. package/lib/Entities/ChallengeResults.js +104 -0
  436. package/lib/Entities/DevicePreview.d.ts +20 -0
  437. package/lib/Entities/DevicePreview.js +67 -0
  438. package/lib/Entities/DialogAlert.d.ts +18 -0
  439. package/lib/Entities/DialogAlert.js +25 -0
  440. package/lib/Entities/DialogBase.d.ts +10 -0
  441. package/lib/Entities/DialogBase.js +20 -0
  442. package/lib/Entities/DialogConfirm.d.ts +22 -0
  443. package/lib/Entities/DialogConfirm.js +30 -0
  444. package/lib/Entities/DialogMarkDownEditor.d.ts +14 -0
  445. package/lib/Entities/DialogMarkDownEditor.js +21 -0
  446. package/lib/Entities/DialogRepo.d.ts +8 -0
  447. package/lib/Entities/DialogRepo.js +38 -0
  448. package/lib/Entities/DialogSpinner.d.ts +15 -0
  449. package/lib/Entities/DialogSpinner.js +47 -0
  450. package/lib/Entities/HostBoundary.d.ts +10 -0
  451. package/lib/Entities/HostBoundary.js +2 -0
  452. package/lib/Entities/HostDispatcher.d.ts +16 -0
  453. package/lib/Entities/HostDispatcher.js +171 -0
  454. package/lib/Entities/HostHandler.d.ts +19 -0
  455. package/lib/Entities/HostHandler.js +59 -0
  456. package/lib/Entities/HostHandlerX.d.ts +7 -0
  457. package/lib/Entities/HostHandlerX.js +35 -0
  458. package/lib/Entities/Logger.d.ts +41 -0
  459. package/lib/Entities/Logger.js +117 -0
  460. package/lib/Entities/MemoizedBoolean.d.ts +7 -0
  461. package/lib/Entities/MemoizedBoolean.js +19 -0
  462. package/lib/Entities/MemoizedNumber.d.ts +7 -0
  463. package/lib/Entities/MemoizedNumber.js +19 -0
  464. package/lib/Entities/MemoizedString.d.ts +7 -0
  465. package/lib/Entities/MemoizedString.js +19 -0
  466. package/lib/Entities/ObservableEntity.d.ts +7 -0
  467. package/lib/Entities/ObservableEntity.js +19 -0
  468. package/lib/Entities/ObserverList.d.ts +7 -0
  469. package/lib/Entities/ObserverList.js +26 -0
  470. package/lib/Entities/SnackbarRepo.d.ts +20 -0
  471. package/lib/Entities/SnackbarRepo.js +98 -0
  472. package/lib/Entities/VivedAPI.d.ts +50 -0
  473. package/lib/Entities/VivedAPI.js +69 -0
  474. package/lib/Entities/index.d.ts +9 -0
  475. package/lib/Entities/index.js +21 -0
  476. package/lib/HostAppObject/HostAppObject.d.ts +14 -0
  477. package/lib/HostAppObject/HostAppObject.js +58 -0
  478. package/lib/HostAppObject/HostAppObjectComponent.d.ts +16 -0
  479. package/lib/HostAppObject/HostAppObjectComponent.js +71 -0
  480. package/lib/HostAppObject/HostAppObjectController.d.ts +3 -0
  481. package/lib/HostAppObject/HostAppObjectController.js +7 -0
  482. package/lib/HostAppObject/HostAppObjectEntity.d.ts +14 -0
  483. package/lib/HostAppObject/HostAppObjectEntity.js +36 -0
  484. package/lib/HostAppObject/HostAppObjectEntityRepo.d.ts +15 -0
  485. package/lib/HostAppObject/HostAppObjectEntityRepo.js +54 -0
  486. package/lib/HostAppObject/HostAppObjectPM.d.ts +11 -0
  487. package/lib/HostAppObject/HostAppObjectPM.js +38 -0
  488. package/lib/HostAppObject/HostAppObjectRepo.d.ts +25 -0
  489. package/lib/HostAppObject/HostAppObjectRepo.js +132 -0
  490. package/lib/HostAppObject/HostAppObjectUC.d.ts +3 -0
  491. package/lib/HostAppObject/HostAppObjectUC.js +7 -0
  492. package/lib/HostAppObject/HostAppObjectView.d.ts +3 -0
  493. package/lib/HostAppObject/HostAppObjectView.js +7 -0
  494. package/lib/HostAppObject/getSingletonComponent.d.ts +3 -0
  495. package/lib/HostAppObject/getSingletonComponent.js +7 -0
  496. package/lib/HostAppObject/index.d.ts +9 -0
  497. package/lib/HostAppObject/index.js +21 -0
  498. package/lib/PresentationManagers/DevicePreview/DevicePreviewListPM.d.ts +23 -0
  499. package/lib/PresentationManagers/DevicePreview/DevicePreviewListPM.js +50 -0
  500. package/lib/PresentationManagers/Dialog/AlertDialogPM.d.ts +18 -0
  501. package/lib/PresentationManagers/Dialog/AlertDialogPM.js +65 -0
  502. package/lib/PresentationManagers/Dialog/ConfirmDialogPM.d.ts +21 -0
  503. package/lib/PresentationManagers/Dialog/ConfirmDialogPM.js +87 -0
  504. package/lib/PresentationManagers/Dialog/DialogPM.d.ts +19 -0
  505. package/lib/PresentationManagers/Dialog/DialogPM.js +66 -0
  506. package/lib/PresentationManagers/Dialog/MarkDownEditorDialogPM.d.ts +17 -0
  507. package/lib/PresentationManagers/Dialog/MarkDownEditorDialogPM.js +68 -0
  508. package/lib/PresentationManagers/Dialog/SpinnerDialogPM.d.ts +16 -0
  509. package/lib/PresentationManagers/Dialog/SpinnerDialogPM.js +62 -0
  510. package/lib/PresentationManagers/PresentationManager.d.ts +8 -0
  511. package/lib/PresentationManagers/PresentationManager.js +16 -0
  512. package/lib/PresentationManagers/Snackbar/SnackbarPM.d.ts +13 -0
  513. package/lib/PresentationManagers/Snackbar/SnackbarPM.js +30 -0
  514. package/lib/PresentationManagers/index.d.ts +6 -0
  515. package/lib/PresentationManagers/index.js +18 -0
  516. package/lib/Types/PluginBoundary.d.ts +10 -0
  517. package/lib/Types/PluginBoundary.js +2 -0
  518. package/lib/Types/index.d.ts +1 -0
  519. package/lib/Types/index.js +13 -0
  520. package/lib/UseCases/Handlers/CallbackAssetDTO.d.ts +5 -0
  521. package/lib/UseCases/Handlers/CallbackAssetDTO.js +2 -0
  522. package/lib/UseCases/Handlers/GetAssetBlobURLBase.d.ts +10 -0
  523. package/lib/UseCases/Handlers/GetAssetBlobURLBase.js +30 -0
  524. package/lib/UseCases/Handlers/GetAssetFolderURLBase.d.ts +10 -0
  525. package/lib/UseCases/Handlers/GetAssetFolderURLBase.js +30 -0
  526. package/lib/UseCases/Handlers/GetAssetMetaBase.d.ts +11 -0
  527. package/lib/UseCases/Handlers/GetAssetMetaBase.js +30 -0
  528. package/lib/UseCases/Handlers/GetAssetsForOwnerBase.d.ts +11 -0
  529. package/lib/UseCases/Handlers/GetAssetsForOwnerBase.js +30 -0
  530. package/lib/UseCases/Handlers/GetLinkedAssetsBase.d.ts +11 -0
  531. package/lib/UseCases/Handlers/GetLinkedAssetsBase.js +30 -0
  532. package/lib/UseCases/Handlers/GoToNextStateBase.d.ts +9 -0
  533. package/lib/UseCases/Handlers/GoToNextStateBase.js +23 -0
  534. package/lib/UseCases/Handlers/GoToPreviousStateBase.d.ts +9 -0
  535. package/lib/UseCases/Handlers/GoToPreviousStateBase.js +23 -0
  536. package/lib/UseCases/Handlers/HasNextStateBase.d.ts +10 -0
  537. package/lib/UseCases/Handlers/HasNextStateBase.js +30 -0
  538. package/lib/UseCases/Handlers/HasPreviousStateBase.d.ts +10 -0
  539. package/lib/UseCases/Handlers/HasPreviousStateBase.js +30 -0
  540. package/lib/UseCases/Handlers/IsAssetFetchedBase.d.ts +14 -0
  541. package/lib/UseCases/Handlers/IsAssetFetchedBase.js +31 -0
  542. package/lib/UseCases/Handlers/IsZSpaceAvailableBase.d.ts +10 -0
  543. package/lib/UseCases/Handlers/IsZSpaceAvailableBase.js +30 -0
  544. package/lib/UseCases/Handlers/NewActivityAssetBase.d.ts +10 -0
  545. package/lib/UseCases/Handlers/NewActivityAssetBase.js +30 -0
  546. package/lib/UseCases/Handlers/OnAppIsReadyBase.d.ts +8 -0
  547. package/lib/UseCases/Handlers/OnAppIsReadyBase.js +22 -0
  548. package/lib/UseCases/Handlers/OnStateChangeBase.d.ts +12 -0
  549. package/lib/UseCases/Handlers/OnStateChangeBase.js +52 -0
  550. package/lib/UseCases/Handlers/OnStateCompleteBase.d.ts +8 -0
  551. package/lib/UseCases/Handlers/OnStateCompleteBase.js +22 -0
  552. package/lib/UseCases/Handlers/RegisterExternalStyleSheetsBase.d.ts +10 -0
  553. package/lib/UseCases/Handlers/RegisterExternalStyleSheetsBase.js +30 -0
  554. package/lib/UseCases/Handlers/RestoreCurrentStateBase.d.ts +9 -0
  555. package/lib/UseCases/Handlers/RestoreCurrentStateBase.js +23 -0
  556. package/lib/UseCases/Handlers/ShowAlertBase.d.ts +16 -0
  557. package/lib/UseCases/Handlers/ShowAlertBase.js +33 -0
  558. package/lib/UseCases/Handlers/ShowConfirmBase.d.ts +18 -0
  559. package/lib/UseCases/Handlers/ShowConfirmBase.js +35 -0
  560. package/lib/UseCases/Handlers/ShowMarkDownEditorBase.d.ts +15 -0
  561. package/lib/UseCases/Handlers/ShowMarkDownEditorBase.js +31 -0
  562. package/lib/UseCases/Handlers/ShowSelectModelBase.d.ts +10 -0
  563. package/lib/UseCases/Handlers/ShowSelectModelBase.js +30 -0
  564. package/lib/UseCases/Handlers/ShowSpinnerBase.d.ts +15 -0
  565. package/lib/UseCases/Handlers/ShowSpinnerBase.js +32 -0
  566. package/lib/UseCases/Handlers/StartZSpaceBase.d.ts +9 -0
  567. package/lib/UseCases/Handlers/StartZSpaceBase.js +23 -0
  568. package/lib/UseCases/Handlers/StopZSpaceBase.d.ts +9 -0
  569. package/lib/UseCases/Handlers/StopZSpaceBase.js +23 -0
  570. package/lib/UseCases/Handlers/SubmitActivityAssetBase.d.ts +10 -0
  571. package/lib/UseCases/Handlers/SubmitActivityAssetBase.js +30 -0
  572. package/lib/UseCases/Handlers/SubmitLogBase.d.ts +11 -0
  573. package/lib/UseCases/Handlers/SubmitLogBase.js +32 -0
  574. package/lib/UseCases/Handlers/SubmitResultBase.d.ts +32 -0
  575. package/lib/UseCases/Handlers/SubmitResultBase.js +43 -0
  576. package/lib/UseCases/Handlers/index.d.ts +6 -0
  577. package/lib/UseCases/Handlers/index.js +18 -0
  578. package/lib/UseCases/index.d.ts +1 -0
  579. package/lib/UseCases/index.js +13 -0
  580. package/lib/Utilities/generateUniqueID.d.ts +1 -0
  581. package/lib/Utilities/generateUniqueID.js +8 -0
  582. package/lib/Utilities/index.d.ts +1 -0
  583. package/lib/Utilities/index.js +13 -0
  584. package/lib/ValueObjects/Result.d.ts +30 -0
  585. package/lib/ValueObjects/Result.js +45 -0
  586. package/lib/ValueObjects/Version.d.ts +22 -0
  587. package/lib/ValueObjects/Version.js +170 -0
  588. package/lib/ValueObjects/index.d.ts +2 -0
  589. package/lib/ValueObjects/index.js +14 -0
  590. package/lib/index.d.ts +7 -0
  591. package/lib/index.js +19 -0
  592. package/package.json +49 -0
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DialogAlertEntity = exports.alertDialogType = void 0;
4
+ const Entities_1 = require("../../../Entities");
5
+ const DialogQueue_1 = require("./DialogQueue");
6
+ exports.alertDialogType = 'ALERT';
7
+ class DialogAlertEntity extends DialogQueue_1.Dialog {
8
+ constructor(data, appObject) {
9
+ super(appObject, DialogAlertEntity.type);
10
+ this.dialogType = exports.alertDialogType;
11
+ this.preventOutsideDismiss = false;
12
+ this.close = () => {
13
+ this.isOpen = false;
14
+ if (this.postClose) {
15
+ this.postClose();
16
+ }
17
+ };
18
+ this._isOpen = new Entities_1.MemoizedBoolean(false, this.notifyOnChange);
19
+ this.buttonLabel = data.buttonLabel;
20
+ this.message = data.message;
21
+ this.title = data.title;
22
+ this.postClose = data.onClose;
23
+ if (data.preventOutsideDismiss !== undefined) {
24
+ this.preventOutsideDismiss = data.preventOutsideDismiss;
25
+ }
26
+ }
27
+ static get(assetID, appObjects) {
28
+ const appObject = appObjects.get(assetID);
29
+ if (!appObject) {
30
+ appObjects.submitWarning('DialogAlertEntity.get', 'Unable to find app object');
31
+ return undefined;
32
+ }
33
+ const uc = appObject.getComponent(DialogAlertEntity.type);
34
+ if (!uc) {
35
+ appObjects.submitWarning('DialogAlertEntity.get', 'App Object does not have DialogAlertEntity');
36
+ return undefined;
37
+ }
38
+ return uc;
39
+ }
40
+ get isOpen() {
41
+ return this._isOpen.val;
42
+ }
43
+ set isOpen(val) {
44
+ this._isOpen.val = val;
45
+ }
46
+ }
47
+ exports.DialogAlertEntity = DialogAlertEntity;
48
+ DialogAlertEntity.type = 'DialogAlertEntity';
@@ -0,0 +1,29 @@
1
+ import { HostAppObject, HostAppObjectRepo } from '../../../HostAppObject';
2
+ import { Dialog } from './DialogQueue';
3
+ export interface DialogConfirmDTO {
4
+ message: string;
5
+ title: string;
6
+ confirmButtonLabel: string;
7
+ cancelButtonLabel: string;
8
+ onCancel?: () => void;
9
+ onConfirm?: () => void;
10
+ }
11
+ export declare const confirmDialogType = "CONFIRM";
12
+ export declare class DialogConfirmEntity extends Dialog {
13
+ static type: string;
14
+ static get(assetID: string, appObjects: HostAppObjectRepo): DialogConfirmEntity | undefined;
15
+ readonly dialogType = "CONFIRM";
16
+ readonly title: string;
17
+ readonly message: string;
18
+ readonly confirmButtonLabel: string;
19
+ readonly cancelButtonLabel: string;
20
+ readonly preventOutsideDismiss = true;
21
+ private postCancel?;
22
+ cancel: () => void;
23
+ private postConfirm?;
24
+ confirm: () => void;
25
+ private _isOpen;
26
+ get isOpen(): boolean;
27
+ set isOpen(val: boolean);
28
+ constructor(data: DialogConfirmDTO, appObject: HostAppObject);
29
+ }
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DialogConfirmEntity = exports.confirmDialogType = void 0;
4
+ const Entities_1 = require("../../../Entities");
5
+ const DialogQueue_1 = require("./DialogQueue");
6
+ exports.confirmDialogType = 'CONFIRM';
7
+ class DialogConfirmEntity extends DialogQueue_1.Dialog {
8
+ constructor(data, appObject) {
9
+ super(appObject, DialogConfirmEntity.type);
10
+ this.dialogType = exports.confirmDialogType;
11
+ this.preventOutsideDismiss = true;
12
+ this.cancel = () => {
13
+ this.isOpen = false;
14
+ if (this.postCancel) {
15
+ this.postCancel();
16
+ }
17
+ };
18
+ this.confirm = () => {
19
+ this.isOpen = false;
20
+ if (this.postConfirm) {
21
+ this.postConfirm();
22
+ }
23
+ };
24
+ this._isOpen = new Entities_1.MemoizedBoolean(false, this.notifyOnChange);
25
+ this.confirmButtonLabel = data.confirmButtonLabel;
26
+ this.cancelButtonLabel = data.cancelButtonLabel;
27
+ this.message = data.message;
28
+ this.title = data.title;
29
+ this.postCancel = data.onCancel;
30
+ this.postConfirm = data.onConfirm;
31
+ }
32
+ static get(assetID, appObjects) {
33
+ const appObject = appObjects.get(assetID);
34
+ if (!appObject) {
35
+ appObjects.submitWarning('DialogConfirmEntity.get', 'Unable to find app object');
36
+ return undefined;
37
+ }
38
+ const uc = appObject.getComponent(DialogConfirmEntity.type);
39
+ if (!uc) {
40
+ appObjects.submitWarning('DialogConfirmEntity.get', 'App Object does not have DialogConfirmEntity');
41
+ return undefined;
42
+ }
43
+ return uc;
44
+ }
45
+ get isOpen() {
46
+ return this._isOpen.val;
47
+ }
48
+ set isOpen(val) {
49
+ this._isOpen.val = val;
50
+ }
51
+ }
52
+ exports.DialogConfirmEntity = DialogConfirmEntity;
53
+ DialogConfirmEntity.type = 'DialogConfirmEntity';
@@ -0,0 +1,21 @@
1
+ import { HostAppObject, HostAppObjectRepo } from '../../../HostAppObject';
2
+ import { Dialog } from './DialogQueue';
3
+ export interface DialogMarkDownEditorDTO {
4
+ initialText: string;
5
+ onConfirm: (text: string) => void;
6
+ }
7
+ export declare const markDownEditorDialogType = "MARKDOWN_EDITOR";
8
+ export declare class DialogMarkDownEntity extends Dialog {
9
+ static type: string;
10
+ static get(assetID: string, appObjects: HostAppObjectRepo): DialogMarkDownEntity | undefined;
11
+ readonly dialogType = "MARKDOWN_EDITOR";
12
+ readonly initialText: string;
13
+ readonly preventOutsideDismiss = true;
14
+ cancel: () => void;
15
+ private postConfirm;
16
+ confirm: (text: string) => void;
17
+ private _isOpen;
18
+ get isOpen(): boolean;
19
+ set isOpen(val: boolean);
20
+ constructor(data: DialogMarkDownEditorDTO, appObject: HostAppObject);
21
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DialogMarkDownEntity = exports.markDownEditorDialogType = void 0;
4
+ const Entities_1 = require("../../../Entities");
5
+ const DialogQueue_1 = require("./DialogQueue");
6
+ exports.markDownEditorDialogType = 'MARKDOWN_EDITOR';
7
+ class DialogMarkDownEntity extends DialogQueue_1.Dialog {
8
+ constructor(data, appObject) {
9
+ super(appObject, DialogMarkDownEntity.type);
10
+ this.dialogType = exports.markDownEditorDialogType;
11
+ this.preventOutsideDismiss = true;
12
+ this.cancel = () => {
13
+ this.isOpen = false;
14
+ };
15
+ this.confirm = (text) => {
16
+ this.isOpen = false;
17
+ this.postConfirm(text);
18
+ };
19
+ this._isOpen = new Entities_1.MemoizedBoolean(false, this.notifyOnChange);
20
+ this.initialText = data.initialText;
21
+ this.postConfirm = data.onConfirm;
22
+ }
23
+ static get(assetID, appObjects) {
24
+ const appObject = appObjects.get(assetID);
25
+ if (!appObject) {
26
+ appObjects.submitWarning('DialogMarkDownEntity.get', 'Unable to find app object');
27
+ return undefined;
28
+ }
29
+ const uc = appObject.getComponent(DialogMarkDownEntity.type);
30
+ if (!uc) {
31
+ appObjects.submitWarning('DialogMarkDownEntity.get', 'App Object does not have DialogAlertEntity');
32
+ return undefined;
33
+ }
34
+ return uc;
35
+ }
36
+ get isOpen() {
37
+ return this._isOpen.val;
38
+ }
39
+ set isOpen(val) {
40
+ this._isOpen.val = val;
41
+ }
42
+ }
43
+ exports.DialogMarkDownEntity = DialogMarkDownEntity;
44
+ DialogMarkDownEntity.type = 'DialogMarkDownEntity';
@@ -0,0 +1,24 @@
1
+ import { HostAppObject, HostAppObjectEntity, HostAppObjectRepo } from '../../../HostAppObject';
2
+ import { DialogAlertDTO, AlertDialogEntity } from './Alert';
3
+ import { DialogConfirmDTO, ConfirmDialogEntity } from './Confirm';
4
+ import { DialogMarkDownEditorDTO, MarkDownEditorDialogEntity } from './MarkDownEditor';
5
+ import { SelectModelDialogEntity } from './SelectModel';
6
+ import { DialogSpinnerDTO, SpinnerDialogEntity } from './Spinner';
7
+ export declare abstract class Dialog extends HostAppObjectEntity {
8
+ abstract dialogType: string;
9
+ abstract preventOutsideDismiss: boolean;
10
+ abstract isOpen: boolean;
11
+ }
12
+ export declare abstract class DialogQueue extends HostAppObjectEntity {
13
+ static type: string;
14
+ abstract get activeDialog(): Dialog | null;
15
+ abstract submitDialog(dialog: Dialog): void;
16
+ abstract activeDialogHasClosed(): void;
17
+ abstract alertDialogFactory(dto: DialogAlertDTO): AlertDialogEntity | undefined;
18
+ abstract confirmDialogFactory(dto: DialogConfirmDTO): ConfirmDialogEntity | undefined;
19
+ abstract markDownDialogFactory(dto: DialogMarkDownEditorDTO): MarkDownEditorDialogEntity | undefined;
20
+ abstract selectModelDialogFactory(): SelectModelDialogEntity | undefined;
21
+ abstract spinnerDialogFactory(dto: DialogSpinnerDTO): SpinnerDialogEntity | undefined;
22
+ static get(appObjects: HostAppObjectRepo): DialogQueue | undefined;
23
+ }
24
+ export declare function makeDialogQueue(appObject: HostAppObject): DialogQueue;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.makeDialogQueue = exports.DialogQueue = exports.Dialog = void 0;
4
+ const HostAppObject_1 = require("../../../HostAppObject");
5
+ class Dialog extends HostAppObject_1.HostAppObjectEntity {
6
+ }
7
+ exports.Dialog = Dialog;
8
+ class DialogQueue extends HostAppObject_1.HostAppObjectEntity {
9
+ static get(appObjects) {
10
+ return HostAppObject_1.getSingletonComponent(DialogQueue.type, appObjects);
11
+ }
12
+ }
13
+ exports.DialogQueue = DialogQueue;
14
+ DialogQueue.type = 'DialogQueue';
15
+ function makeDialogQueue(appObject) {
16
+ return new DialogRepoImp(appObject);
17
+ }
18
+ exports.makeDialogQueue = makeDialogQueue;
19
+ class DialogRepoImp extends DialogQueue {
20
+ constructor(appObject) {
21
+ super(appObject, DialogQueue.type);
22
+ this.dialogQueue = [];
23
+ this.submitDialog = (dialog) => {
24
+ this.dialogQueue.push(dialog);
25
+ if (this.activeDialog === dialog) {
26
+ dialog.isOpen = true;
27
+ }
28
+ dialog.addChangeObserver(this.notifyOnChange);
29
+ this.notifyOnChange();
30
+ };
31
+ this.activeDialogHasClosed = () => {
32
+ const activeDialog = this.activeDialog;
33
+ if (activeDialog !== null) {
34
+ this.dialogQueue.splice(0, 1);
35
+ const newActiveDialog = this.activeDialog;
36
+ if (newActiveDialog !== null) {
37
+ newActiveDialog.isOpen = true;
38
+ }
39
+ activeDialog.removeChangeObserver(this.notifyOnChange);
40
+ this.notifyOnChange();
41
+ }
42
+ };
43
+ this.alertDialogFactory = (dto) => {
44
+ this.error('Alert factory has not been injected');
45
+ return;
46
+ };
47
+ this.confirmDialogFactory = (dto) => {
48
+ this.error('Confirm factory has not been injected');
49
+ return;
50
+ };
51
+ this.markDownDialogFactory = (dto) => {
52
+ this.error('Mark Down factory has not been injected');
53
+ return;
54
+ };
55
+ this.spinnerDialogFactory = (dto) => {
56
+ this.error('Spinner factory has not been injected');
57
+ return;
58
+ };
59
+ this.appObjects.registerSingleton(this);
60
+ }
61
+ get activeDialog() {
62
+ return this.dialogQueue.length > 0 ? this.dialogQueue[0] : null;
63
+ }
64
+ selectModelDialogFactory() {
65
+ this.error('Select Model factory has not been injected');
66
+ return;
67
+ }
68
+ }
@@ -0,0 +1,24 @@
1
+ import { HostAppObject, HostAppObjectRepo } from '../../../HostAppObject';
2
+ import { Dialog } from './DialogQueue';
3
+ export declare const spinnerDialogType = "SPINNER";
4
+ export interface DialogSpinnerDTO {
5
+ message: string;
6
+ title: string;
7
+ }
8
+ export declare class DialogSpinnerEntity extends Dialog {
9
+ static type: string;
10
+ static get(assetID: string, appObjects: HostAppObjectRepo): DialogSpinnerEntity | undefined;
11
+ readonly dialogType = "SPINNER";
12
+ readonly mininumuLifespan = 2000;
13
+ readonly title: string;
14
+ private createdAt?;
15
+ readonly preventOutsideDismiss = true;
16
+ private memoizedMessage;
17
+ get message(): string;
18
+ set message(val: string);
19
+ private _isOpen;
20
+ set isOpen(open: boolean);
21
+ get isOpen(): boolean;
22
+ close: () => void;
23
+ constructor(data: DialogSpinnerDTO, appObject: HostAppObject);
24
+ }
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DialogSpinnerEntity = exports.spinnerDialogType = void 0;
4
+ const Entities_1 = require("../../../Entities");
5
+ const DialogQueue_1 = require("./DialogQueue");
6
+ exports.spinnerDialogType = 'SPINNER';
7
+ class DialogSpinnerEntity extends DialogQueue_1.Dialog {
8
+ constructor(data, appObject) {
9
+ super(appObject, DialogSpinnerEntity.type);
10
+ this.dialogType = exports.spinnerDialogType;
11
+ this.mininumuLifespan = 2000;
12
+ this.preventOutsideDismiss = true;
13
+ this._isOpen = new Entities_1.MemoizedBoolean(false, this.notifyOnChange);
14
+ this.close = () => {
15
+ if (this.createdAt === undefined) {
16
+ this.isOpen = false;
17
+ return;
18
+ }
19
+ const timeAlive = Date.now() - this.createdAt;
20
+ const timeleft = this.mininumuLifespan - timeAlive;
21
+ if (timeleft <= 0) {
22
+ this.isOpen = false;
23
+ }
24
+ else {
25
+ setTimeout(() => {
26
+ this.isOpen = false;
27
+ }, timeleft);
28
+ }
29
+ };
30
+ this.memoizedMessage = new Entities_1.MemoizedString(data.message, this.notifyOnChange);
31
+ this.title = data.title;
32
+ }
33
+ static get(assetID, appObjects) {
34
+ const appObject = appObjects.get(assetID);
35
+ if (!appObject) {
36
+ appObjects.submitWarning('DialogSpinnerEntity.get', 'Unable to find app object');
37
+ return undefined;
38
+ }
39
+ const uc = appObject.getComponent(DialogSpinnerEntity.type);
40
+ if (!uc) {
41
+ appObjects.submitWarning('DialogSpinnerEntity.get', 'App Object does not have DialogSpinnerEntity');
42
+ return undefined;
43
+ }
44
+ return uc;
45
+ }
46
+ get message() {
47
+ return this.memoizedMessage.val;
48
+ }
49
+ set message(val) {
50
+ this.memoizedMessage.val = val;
51
+ }
52
+ set isOpen(open) {
53
+ if (open && this.createdAt === undefined) {
54
+ this.createdAt = Date.now();
55
+ }
56
+ this._isOpen.val = open;
57
+ }
58
+ get isOpen() {
59
+ return this._isOpen.val;
60
+ }
61
+ }
62
+ exports.DialogSpinnerEntity = DialogSpinnerEntity;
63
+ DialogSpinnerEntity.type = 'DialogSpinnerEntity';
@@ -0,0 +1,21 @@
1
+ import { HostAppObject, HostAppObjectRepo } from '../../../HostAppObject';
2
+ import { Dialog } from './DialogQueue';
3
+ export interface DialogMarkDownEditorDTO {
4
+ initialText: string;
5
+ onConfirm: (text: string) => void;
6
+ }
7
+ export declare const markDownEditorDialogType = "MARKDOWN_EDITOR";
8
+ export declare class MarkDownEditorDialogEntity extends Dialog {
9
+ static type: string;
10
+ static get(assetID: string, appObjects: HostAppObjectRepo): MarkDownEditorDialogEntity | undefined;
11
+ readonly dialogType = "MARKDOWN_EDITOR";
12
+ readonly initialText: string;
13
+ readonly preventOutsideDismiss = true;
14
+ cancel: () => void;
15
+ private postConfirm;
16
+ confirm: (text: string) => void;
17
+ private _isOpen;
18
+ get isOpen(): boolean;
19
+ set isOpen(val: boolean);
20
+ constructor(data: DialogMarkDownEditorDTO, appObject: HostAppObject);
21
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MarkDownEditorDialogEntity = exports.markDownEditorDialogType = void 0;
4
+ const Entities_1 = require("../../../Entities");
5
+ const DialogQueue_1 = require("./DialogQueue");
6
+ exports.markDownEditorDialogType = 'MARKDOWN_EDITOR';
7
+ class MarkDownEditorDialogEntity extends DialogQueue_1.Dialog {
8
+ constructor(data, appObject) {
9
+ super(appObject, MarkDownEditorDialogEntity.type);
10
+ this.dialogType = exports.markDownEditorDialogType;
11
+ this.preventOutsideDismiss = true;
12
+ this.cancel = () => {
13
+ this.isOpen = false;
14
+ };
15
+ this.confirm = (text) => {
16
+ this.isOpen = false;
17
+ this.postConfirm(text);
18
+ };
19
+ this._isOpen = new Entities_1.MemoizedBoolean(false, this.notifyOnChange);
20
+ this.initialText = data.initialText;
21
+ this.postConfirm = data.onConfirm;
22
+ }
23
+ static get(assetID, appObjects) {
24
+ const appObject = appObjects.get(assetID);
25
+ if (!appObject) {
26
+ appObjects.submitWarning('MarkDownEditorDialogEntity.get', 'Unable to find app object');
27
+ return undefined;
28
+ }
29
+ const uc = appObject.getComponent(MarkDownEditorDialogEntity.type);
30
+ if (!uc) {
31
+ appObjects.submitWarning('MarkDownEditorDialogEntity.get', 'App Object does not have DialogAlertEntity');
32
+ return undefined;
33
+ }
34
+ return uc;
35
+ }
36
+ get isOpen() {
37
+ return this._isOpen.val;
38
+ }
39
+ set isOpen(val) {
40
+ this._isOpen.val = val;
41
+ }
42
+ }
43
+ exports.MarkDownEditorDialogEntity = MarkDownEditorDialogEntity;
44
+ MarkDownEditorDialogEntity.type = 'MarkDownEditorDialogEntity';
@@ -0,0 +1,20 @@
1
+ import { MemoizedBoolean } from '../../../Entities';
2
+ import { HostAppObject, HostAppObjectRepo } from '../../../HostAppObject';
3
+ import { Dialog } from './DialogQueue';
4
+ export declare const selectModelDialogType = "SELECT_CHANNEL_MODEL";
5
+ export declare class SelectModelDialogEntity extends Dialog {
6
+ static type: string;
7
+ static get(assetID: string, appObjects: HostAppObjectRepo): SelectModelDialogEntity | undefined;
8
+ readonly dialogType = "SELECT_CHANNEL_MODEL";
9
+ private _isOpen;
10
+ get isOpen(): boolean;
11
+ set isOpen(val: boolean);
12
+ preventOutsideDismiss: boolean;
13
+ protected _container?: HTMLElement;
14
+ get container(): HTMLElement | undefined;
15
+ set container(element: HTMLElement | undefined);
16
+ protected memoizedIsReady: MemoizedBoolean;
17
+ get isReady(): boolean;
18
+ set isReady(isReady: boolean);
19
+ constructor(appObject: HostAppObject);
20
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SelectModelDialogEntity = exports.selectModelDialogType = void 0;
4
+ const Entities_1 = require("../../../Entities");
5
+ const DialogQueue_1 = require("./DialogQueue");
6
+ exports.selectModelDialogType = 'SELECT_CHANNEL_MODEL';
7
+ class SelectModelDialogEntity extends DialogQueue_1.Dialog {
8
+ constructor(appObject) {
9
+ super(appObject, SelectModelDialogEntity.type);
10
+ this.dialogType = exports.selectModelDialogType;
11
+ this._isOpen = new Entities_1.MemoizedBoolean(false, this.notifyOnChange);
12
+ this.preventOutsideDismiss = true;
13
+ this.memoizedIsReady = new Entities_1.MemoizedBoolean(false, this.notifyOnChange);
14
+ }
15
+ static get(assetID, appObjects) {
16
+ const appObject = appObjects.get(assetID);
17
+ if (!appObject) {
18
+ appObjects.submitWarning('SelectModelDialogEntity.get', 'Unable to find app object');
19
+ return undefined;
20
+ }
21
+ const uc = appObject.getComponent(SelectModelDialogEntity.type);
22
+ if (!uc) {
23
+ appObjects.submitWarning('SelectModelDialogEntity.get', 'App Object does not have SelectModelDialogEntity');
24
+ return undefined;
25
+ }
26
+ return uc;
27
+ }
28
+ get isOpen() {
29
+ return this._isOpen.val;
30
+ }
31
+ set isOpen(val) {
32
+ this._isOpen.val = val;
33
+ }
34
+ get container() {
35
+ return this._container;
36
+ }
37
+ set container(element) {
38
+ this._container = element;
39
+ this.notifyOnChange();
40
+ }
41
+ get isReady() {
42
+ return this.memoizedIsReady.val;
43
+ }
44
+ set isReady(isReady) {
45
+ this.memoizedIsReady.val = isReady;
46
+ }
47
+ }
48
+ exports.SelectModelDialogEntity = SelectModelDialogEntity;
49
+ SelectModelDialogEntity.type = 'SelectModelDialogEntity';
@@ -0,0 +1,24 @@
1
+ import { HostAppObject, HostAppObjectRepo } from '../../../HostAppObject';
2
+ import { Dialog } from './DialogQueue';
3
+ export declare const spinnerDialogType = "SPINNER";
4
+ export interface DialogSpinnerDTO {
5
+ message: string;
6
+ title: string;
7
+ }
8
+ export declare class SpinnerDialogEntity extends Dialog {
9
+ static type: string;
10
+ static get(assetID: string, appObjects: HostAppObjectRepo): SpinnerDialogEntity | undefined;
11
+ readonly dialogType = "SPINNER";
12
+ readonly mininumuLifespan = 2000;
13
+ readonly title: string;
14
+ private createdAt?;
15
+ readonly preventOutsideDismiss = true;
16
+ private memoizedMessage;
17
+ get message(): string;
18
+ set message(val: string);
19
+ private _isOpen;
20
+ set isOpen(open: boolean);
21
+ get isOpen(): boolean;
22
+ close: () => void;
23
+ constructor(data: DialogSpinnerDTO, appObject: HostAppObject);
24
+ }
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SpinnerDialogEntity = exports.spinnerDialogType = void 0;
4
+ const Entities_1 = require("../../../Entities");
5
+ const DialogQueue_1 = require("./DialogQueue");
6
+ exports.spinnerDialogType = 'SPINNER';
7
+ class SpinnerDialogEntity extends DialogQueue_1.Dialog {
8
+ constructor(data, appObject) {
9
+ super(appObject, SpinnerDialogEntity.type);
10
+ this.dialogType = exports.spinnerDialogType;
11
+ this.mininumuLifespan = 2000;
12
+ this.preventOutsideDismiss = true;
13
+ this._isOpen = new Entities_1.MemoizedBoolean(false, this.notifyOnChange);
14
+ this.close = () => {
15
+ if (this.createdAt === undefined) {
16
+ this.isOpen = false;
17
+ return;
18
+ }
19
+ const timeAlive = Date.now() - this.createdAt;
20
+ const timeleft = this.mininumuLifespan - timeAlive;
21
+ if (timeleft <= 0) {
22
+ this.isOpen = false;
23
+ }
24
+ else {
25
+ setTimeout(() => {
26
+ this.isOpen = false;
27
+ }, timeleft);
28
+ }
29
+ };
30
+ this.memoizedMessage = new Entities_1.MemoizedString(data.message, this.notifyOnChange);
31
+ this.title = data.title;
32
+ }
33
+ static get(assetID, appObjects) {
34
+ const appObject = appObjects.get(assetID);
35
+ if (!appObject) {
36
+ appObjects.submitWarning('SpinnerDialogEntity.get', 'Unable to find app object');
37
+ return undefined;
38
+ }
39
+ const uc = appObject.getComponent(SpinnerDialogEntity.type);
40
+ if (!uc) {
41
+ appObjects.submitWarning('SpinnerDialogEntity.get', 'App Object does not have SpinnerDialogEntity');
42
+ return undefined;
43
+ }
44
+ return uc;
45
+ }
46
+ get message() {
47
+ return this.memoizedMessage.val;
48
+ }
49
+ set message(val) {
50
+ this.memoizedMessage.val = val;
51
+ }
52
+ set isOpen(open) {
53
+ if (open && this.createdAt === undefined) {
54
+ this.createdAt = Date.now();
55
+ }
56
+ this._isOpen.val = open;
57
+ }
58
+ get isOpen() {
59
+ return this._isOpen.val;
60
+ }
61
+ }
62
+ exports.SpinnerDialogEntity = SpinnerDialogEntity;
63
+ SpinnerDialogEntity.type = 'SpinnerDialogEntity';
@@ -0,0 +1,6 @@
1
+ export * from './Alert';
2
+ export * from './Confirm';
3
+ export * from './MarkDownEditor';
4
+ export * from './DialogQueue';
5
+ export * from './SelectModel';
6
+ export * from './Spinner';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./Alert"), exports);
14
+ __exportStar(require("./Confirm"), exports);
15
+ __exportStar(require("./MarkDownEditor"), exports);
16
+ __exportStar(require("./DialogQueue"), exports);
17
+ __exportStar(require("./SelectModel"), exports);
18
+ __exportStar(require("./Spinner"), exports);
@@ -0,0 +1,3 @@
1
+ import { HostAppObjectRepo } from "../../../HostAppObject";
2
+ import { AlertDialogEntity, DialogAlertDTO } from "../Entities";
3
+ export declare function makeAlertFactory(appObjects: HostAppObjectRepo): (data: DialogAlertDTO) => AlertDialogEntity;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.makeAlertFactory = void 0;
4
+ const Utilities_1 = require("../../../Utilities");
5
+ const Entities_1 = require("../Entities");
6
+ const PMs_1 = require("../PMs");
7
+ function makeAlertFactory(appObjects) {
8
+ return function alertFactory(data) {
9
+ const ao = appObjects.getOrCreate(Utilities_1.generateUniqueID());
10
+ const entity = new Entities_1.AlertDialogEntity(data, ao);
11
+ new PMs_1.AlertDialogPM(ao);
12
+ return entity;
13
+ };
14
+ }
15
+ exports.makeAlertFactory = makeAlertFactory;
@@ -0,0 +1,3 @@
1
+ import { HostAppObjectRepo } from "../../../HostAppObject";
2
+ import { ConfirmDialogEntity, DialogConfirmDTO } from "../Entities";
3
+ export declare function makeConfirmFactory(appObjects: HostAppObjectRepo): (data: DialogConfirmDTO) => ConfirmDialogEntity;