dana-cli 0.0.0-stage → 0.0.25

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 (288) hide show
  1. package/.github/dependabot.yml +43 -0
  2. package/.github/labeler.yml +30 -0
  3. package/.github/workflows/bump.yml +51 -0
  4. package/.github/workflows/ci-cd.yml +110 -0
  5. package/.github/workflows/dependabot-automerge-call.yml +13 -0
  6. package/.nvmrc +1 -0
  7. package/.prettierignore +4 -0
  8. package/.prettierrc +4 -0
  9. package/CODEOWNERS +5 -0
  10. package/README.md +50 -2
  11. package/bin/bump.js +48 -0
  12. package/eslint.config.mjs +12 -0
  13. package/images/vodScreen1.png +0 -0
  14. package/package.json +53 -5
  15. package/sonar-project.properties +20 -0
  16. package/tools/cli/README.md +51 -0
  17. package/tools/cli/__mocks__/fs/promises.cjs +4 -0
  18. package/tools/cli/bin/dana.js +3 -0
  19. package/tools/cli/dana_completion.sh +156 -0
  20. package/tools/cli/eslint.config.mjs +14 -0
  21. package/tools/cli/package.json +66 -0
  22. package/tools/cli/rollup.config.mjs +26 -0
  23. package/tools/cli/src/commands/addComponent/addMenu/add-menu.ts +65 -0
  24. package/tools/cli/src/commands/addComponent/addMenu/addMenuDefinition.ts +21 -0
  25. package/tools/cli/src/commands/addComponent/addRail/add-rail.ts +59 -0
  26. package/tools/cli/src/commands/addComponent/addRail/addRailDefinition.ts +34 -0
  27. package/tools/cli/src/commands/addComponent/addScreen/add-screen.ts +42 -0
  28. package/tools/cli/src/commands/addComponent/addScreen/addScreenDefinition.ts +17 -0
  29. package/tools/cli/src/commands/addComponent/addScrollView/add-scrollView.ts +48 -0
  30. package/tools/cli/src/commands/addComponent/addScrollView/addScrollViewDefinition.ts +16 -0
  31. package/tools/cli/src/commands/addComponent/config/ComponentConfig.ts +169 -0
  32. package/tools/cli/src/commands/addComponent/config/componentTypes.ts +38 -0
  33. package/tools/cli/src/commands/addComponent/const/componentConst.ts +20 -0
  34. package/tools/cli/src/commands/addComponent/const/defaultConfig.ts +28 -0
  35. package/tools/cli/src/commands/addComponent/const/navigationConst.ts +36 -0
  36. package/tools/cli/src/commands/addComponent/createComponent.ts +45 -0
  37. package/tools/cli/src/commands/addComponent/helper/ComponentHelper.ts +98 -0
  38. package/tools/cli/src/commands/addDevice/add-device.ts +106 -0
  39. package/tools/cli/src/commands/addDevice/addDeviceDefinition.ts +13 -0
  40. package/tools/cli/src/commands/addDevice/deviceConfig/androidtvConfig.ts +142 -0
  41. package/tools/cli/src/commands/addDevice/deviceConfig/configTypes.ts +44 -0
  42. package/tools/cli/src/commands/addDevice/deviceConfig/deviceConfig.ts +38 -0
  43. package/tools/cli/src/commands/addDevice/deviceConfig/titanosConfig.ts +17 -0
  44. package/tools/cli/src/commands/addDevice/deviceConfig/tizenConfig.ts +64 -0
  45. package/tools/cli/src/commands/addDevice/deviceConfig/tvosConfig.ts +50 -0
  46. package/tools/cli/src/commands/addDevice/deviceConfig/vidaaConfig.ts +17 -0
  47. package/tools/cli/src/commands/addDevice/deviceConfig/webosConfig.ts +64 -0
  48. package/tools/cli/src/commands/addDevice/helper/addDeviceHelper.ts +121 -0
  49. package/tools/cli/src/commands/addDianaSkills/add-dianaSkills.ts +55 -0
  50. package/tools/cli/src/commands/addDianaSkills/addDianaSkillsDefinition.ts +13 -0
  51. package/tools/cli/src/commands/addDianaSkills/dianaDependencies.ts +15 -0
  52. package/tools/cli/src/commands/addModule/add-module.ts +46 -0
  53. package/tools/cli/src/commands/addModule/addModuleDefinition.ts +17 -0
  54. package/tools/cli/src/commands/addModule/moduleConst.ts +18 -0
  55. package/tools/cli/src/commands/authentication/AuthenticationManager.ts +255 -0
  56. package/tools/cli/src/commands/authentication/authDefinition.ts +51 -0
  57. package/tools/cli/src/commands/authentication/authHook.ts +50 -0
  58. package/tools/cli/src/commands/authentication/authentConst.ts +6 -0
  59. package/tools/cli/src/commands/authentication/commands/get-packages-token.ts +40 -0
  60. package/tools/cli/src/commands/authentication/commands/login.ts +63 -0
  61. package/tools/cli/src/commands/authentication/commands/logout.ts +26 -0
  62. package/tools/cli/src/commands/authentication/commands/status.ts +47 -0
  63. package/tools/cli/src/commands/authentication/helper/CodeArtifactHelper.ts +66 -0
  64. package/tools/cli/src/commands/authentication/helper/CommandHelper.ts +9 -0
  65. package/tools/cli/src/commands/authentication/helper/CredentialsHelper.ts +176 -0
  66. package/tools/cli/src/commands/authentication/helper/SPM.ts +95 -0
  67. package/tools/cli/src/commands/authentication/tokenHook.ts +30 -0
  68. package/tools/cli/src/commands/commandHelp/customHelp.ts +31 -0
  69. package/tools/cli/src/commands/completion/completion.ts +53 -0
  70. package/tools/cli/src/commands/completion/completionDefinition.ts +16 -0
  71. package/tools/cli/src/commands/createApp/const/createAppTasks.ts +133 -0
  72. package/tools/cli/src/commands/createApp/const/setupConst.ts +16 -0
  73. package/tools/cli/src/commands/createApp/const/templateConst.ts +10 -0
  74. package/tools/cli/src/commands/createApp/createApp.ts +60 -0
  75. package/tools/cli/src/commands/createApp/createAppDefinition.ts +26 -0
  76. package/tools/cli/src/commands/createApp/helpers/CreateAppHelper.ts +167 -0
  77. package/tools/cli/src/commands/createApp/helpers/SetupChecker.ts +98 -0
  78. package/tools/cli/src/commands/hooks/checkDanaProjectHook.ts +30 -0
  79. package/tools/cli/src/commands/zip/zip.ts +26 -0
  80. package/tools/cli/src/commands/zip/zipDefinition.ts +13 -0
  81. package/tools/cli/src/common/commonConst.ts +1 -0
  82. package/tools/cli/src/common/const/deviceConst.ts +110 -0
  83. package/tools/cli/src/common/const/exitCodeConst.ts +12 -0
  84. package/tools/cli/src/common/helpers/CreateArchiveHelper.ts +55 -0
  85. package/tools/cli/src/common/helpers/CreateFileHelper.ts +199 -0
  86. package/tools/cli/src/common/helpers/InputValidator.ts +58 -0
  87. package/tools/cli/src/common/helpers/InstallHelper.ts +202 -0
  88. package/tools/cli/src/common/helpers/UpdateFileHelper.ts +239 -0
  89. package/tools/cli/src/common/helpers/UserInputGetter.ts +145 -0
  90. package/tools/cli/src/common/helpers/handlebarsHelper.ts +31 -0
  91. package/tools/cli/src/common/helpers/stringHelper.ts +25 -0
  92. package/tools/cli/src/common/translation/en.json +87 -0
  93. package/tools/cli/src/common/translation/translation.ts +6 -0
  94. package/tools/cli/src/common/types/helperTypes.ts +79 -0
  95. package/tools/cli/src/index.ts +16 -0
  96. package/tools/cli/src/program.ts +59 -0
  97. package/tools/cli/tests/commands/addComponent/addMenu/add-menu.test.ts +96 -0
  98. package/tools/cli/tests/commands/addComponent/addRail/add-rail.test.ts +57 -0
  99. package/tools/cli/tests/commands/addComponent/addScreen/add-screen.test.ts +55 -0
  100. package/tools/cli/tests/commands/addComponent/addScrollView/add-scrollView.test.ts +89 -0
  101. package/tools/cli/tests/commands/addComponent/config/ComponentConfig.test.ts +261 -0
  102. package/tools/cli/tests/commands/addComponent/createComponent.test.ts +87 -0
  103. package/tools/cli/tests/commands/addComponent/helper/ComponentHelper.test.ts +110 -0
  104. package/tools/cli/tests/commands/addDevice/add-device.test.ts +117 -0
  105. package/tools/cli/tests/commands/addDevice/deviceConfig/androidtvConfig.test.ts +184 -0
  106. package/tools/cli/tests/commands/addDevice/deviceConfig/deviceConfig.test.ts +30 -0
  107. package/tools/cli/tests/commands/addDevice/deviceConfig/titanosConfig.test.ts +20 -0
  108. package/tools/cli/tests/commands/addDevice/deviceConfig/tizenConfig.test.ts +63 -0
  109. package/tools/cli/tests/commands/addDevice/deviceConfig/tvosConfig.test.ts +47 -0
  110. package/tools/cli/tests/commands/addDevice/deviceConfig/vidaaConfig.test.ts +20 -0
  111. package/tools/cli/tests/commands/addDevice/deviceConfig/webosConfig.test.ts +74 -0
  112. package/tools/cli/tests/commands/addDevice/helper/addDeviceHelper.test.ts +144 -0
  113. package/tools/cli/tests/commands/addDianaSkills/add-dianaSkills.test.ts +72 -0
  114. package/tools/cli/tests/commands/addModule/add-module.test.ts +108 -0
  115. package/tools/cli/tests/commands/authentication/AuthenticationManager.test.ts +756 -0
  116. package/tools/cli/tests/commands/authentication/commands/authDefinition.test.ts +53 -0
  117. package/tools/cli/tests/commands/authentication/commands/authHook.test.ts +94 -0
  118. package/tools/cli/tests/commands/authentication/commands/get-packages-token.test.ts +69 -0
  119. package/tools/cli/tests/commands/authentication/commands/login.test.ts +170 -0
  120. package/tools/cli/tests/commands/authentication/commands/logout.test.ts +77 -0
  121. package/tools/cli/tests/commands/authentication/commands/status.test.ts +73 -0
  122. package/tools/cli/tests/commands/authentication/helper/CredentialsHelper.test.ts +352 -0
  123. package/tools/cli/tests/commands/authentication/helper/SPM.test.ts +229 -0
  124. package/tools/cli/tests/commands/cliHelp/customHelp.test.ts +24 -0
  125. package/tools/cli/tests/commands/completion/completion.test.ts +76 -0
  126. package/tools/cli/tests/commands/createApp/const/createAppTasks.test.ts +70 -0
  127. package/tools/cli/tests/commands/createApp/createApp.test.ts +116 -0
  128. package/tools/cli/tests/commands/createApp/helpers/CreateAppHelper.test.ts +197 -0
  129. package/tools/cli/tests/commands/createApp/helpers/SetupChecker.test.ts +152 -0
  130. package/tools/cli/tests/commands/createApp/helpers/fixtures/myApp/scripts/app/ui/screens/SplashScreen.js +70 -0
  131. package/tools/cli/tests/commands/hooks/checkDanaProjectHook.test.ts +55 -0
  132. package/tools/cli/tests/commands/zip/zip.test.ts +51 -0
  133. package/tools/cli/tests/common/helpers/CreateArchiveHelper.test.ts +69 -0
  134. package/tools/cli/tests/common/helpers/CreateFileHelper.test.ts +359 -0
  135. package/tools/cli/tests/common/helpers/InputValidator.test.ts +93 -0
  136. package/tools/cli/tests/common/helpers/InstallHelper.test.ts +262 -0
  137. package/tools/cli/tests/common/helpers/UpdateFileHelper.test.ts +288 -0
  138. package/tools/cli/tests/common/helpers/UserInputGetter.test.ts +182 -0
  139. package/tools/cli/tests/common/helpers/handlebarsHelper.test.ts +87 -0
  140. package/tools/cli/tests/common/helpers/stringHelper.test.ts +35 -0
  141. package/tools/cli/tests/program.test.ts +215 -0
  142. package/tools/cli/tsconfig.json +19 -0
  143. package/tools/cli/tsconfig.test.json +4 -0
  144. package/tools/cli/vitest.config.ts +4 -0
  145. package/tools/templates/app-template/.dana/.gitkeep +0 -0
  146. package/tools/templates/app-template/Gruntfile.js +31 -0
  147. package/tools/templates/app-template/README.md +17 -0
  148. package/tools/templates/app-template/app.config.json +56 -0
  149. package/tools/templates/app-template/editorconfigTemplate.hbs +18 -0
  150. package/tools/templates/app-template/eslintrc.jsonTemplate.hbs +5 -0
  151. package/tools/templates/app-template/gitignoreTemplate.hbs +27 -0
  152. package/tools/templates/app-template/i18n/LocaleStringEnUS.json +7 -0
  153. package/tools/templates/app-template/i18n/README.md +32 -0
  154. package/tools/templates/app-template/images/dana.png +0 -0
  155. package/tools/templates/app-template/images/dana_logo.png +0 -0
  156. package/tools/templates/app-template/images/dana_logo_light.png +0 -0
  157. package/tools/templates/app-template/images/loading.png +0 -0
  158. package/tools/templates/app-template/nvmrcTemplate.hbs +1 -0
  159. package/tools/templates/app-template/package.json +33 -0
  160. package/tools/templates/app-template/profiles/app.config.browser-css.json +16 -0
  161. package/tools/templates/app-template/profiles/app.config.browser-lightning.json +16 -0
  162. package/tools/templates/app-template/scripts/app/README.md +6 -0
  163. package/tools/templates/app-template/scripts/app/TemplateAppRoutes.js.hbs +18 -0
  164. package/tools/templates/app-template/scripts/app/app.js.hbs +17 -0
  165. package/tools/templates/app-template/scripts/app/theme/AppTheme.js +57 -0
  166. package/tools/templates/app-template/scripts/app/ui/screens/AppScreen.js +106 -0
  167. package/tools/templates/app-template/scripts/app/ui/screens/SplashScreen.js +70 -0
  168. package/tools/templates/app-template/scripts/app/ui/views/LoaderView.js +31 -0
  169. package/tools/templates/app-template/styles/fonts/Roboto-Bold.ttf +0 -0
  170. package/tools/templates/app-template/styles/fonts/Roboto-Regular.ttf +0 -0
  171. package/tools/templates/app-template/tests/README.md +70 -0
  172. package/tools/templates/app-template/tests/automation/features/splash.feature +5 -0
  173. package/tools/templates/app-template/tests/automation/init.js +20 -0
  174. package/tools/templates/app-template/tests/automation/steps-definitions/dictionary.js +31 -0
  175. package/tools/templates/app-template/tests/automation/steps-definitions/helpers.js +9 -0
  176. package/tools/templates/app-template/tests/unit/README.md +7 -0
  177. package/tools/templates/app-template/tests/unit/app/TemplateAppRoutes.js.hbs +24 -0
  178. package/tools/templates/assets/fonts/fa-solid-900.ttf +0 -0
  179. package/tools/templates/components/ButtonItemView.js.hbs +69 -0
  180. package/tools/templates/components/ButtonView.js.hbs +65 -0
  181. package/tools/templates/components/ScrollItemView.js.hbs +53 -0
  182. package/tools/templates/components/ScrollView.js.hbs +43 -0
  183. package/tools/templates/components/TileView.js.hbs +55 -0
  184. package/tools/templates/components/screen.js.hbs +74 -0
  185. package/tools/templates/components/settings.js.hbs +74 -0
  186. package/tools/templates/components/vod.js.hbs +104 -0
  187. package/tools/templates/components/wtvMenuListView.js.hbs +38 -0
  188. package/tools/templates/components/wtvRailListView.js.hbs +44 -0
  189. package/tools/templates/index.ts +3 -0
  190. package/tools/templates/mocks/menuMock.json +29 -0
  191. package/tools/templates/mocks/railMock.json +101 -0
  192. package/tools/templates/mocks/scrollViewMock.json +165 -0
  193. package/tools/templates/modules/fip/images/12.png +0 -0
  194. package/tools/templates/modules/fip/images/audioD.png +0 -0
  195. package/tools/templates/modules/fip/package.json +5 -0
  196. package/tools/templates/modules/fip/scripts/FipModule.js +19 -0
  197. package/tools/templates/modules/fip/scripts/FipRoutes.js +19 -0
  198. package/tools/templates/modules/fip/scripts/services/mock/fipMock.json +12 -0
  199. package/tools/templates/modules/fip/scripts/ui/screens/FipScreen.js +169 -0
  200. package/tools/templates/modules/fip/scripts/ui/views/FipContentInfoView.js +77 -0
  201. package/tools/templates/modules/fip/scripts/ui/views/InfoDetailImageView.js +35 -0
  202. package/tools/templates/modules/fip/scripts/ui/views/InfoDetailTextView.js +39 -0
  203. package/tools/templates/modules/fip/scripts/ui/views/InfoListView.js +57 -0
  204. package/tools/templates/modules/fip/scripts/ui/views/PlayButtonView.js +63 -0
  205. package/tools/templates/modules/home/package.json +5 -0
  206. package/tools/templates/modules/home/scripts/HomeModule.js +19 -0
  207. package/tools/templates/modules/home/scripts/HomeRoutes.js +19 -0
  208. package/tools/templates/modules/home/scripts/services/mock/highlightMock.json +40 -0
  209. package/tools/templates/modules/home/scripts/services/mock/homeScrollViewMock.json +170 -0
  210. package/tools/templates/modules/home/scripts/ui/screens/HomeScreen.js +258 -0
  211. package/tools/templates/modules/home/scripts/ui/views/highlight/DotsListItemView.js +37 -0
  212. package/tools/templates/modules/home/scripts/ui/views/highlight/DotsListView.js +22 -0
  213. package/tools/templates/modules/home/scripts/ui/views/highlight/HighlightContentDescriptionView.js +99 -0
  214. package/tools/templates/modules/home/scripts/ui/views/highlight/HighlightPlayButtonView.js +63 -0
  215. package/tools/templates/modules/home/scripts/ui/views/highlight/HighlightRailItemView.js +186 -0
  216. package/tools/templates/modules/home/scripts/ui/views/scrollview/HomeMockTileView.js +67 -0
  217. package/tools/templates/modules/home/scripts/ui/views/scrollview/HomeRailScrollView.js +53 -0
  218. package/tools/templates/modules/home/scripts/ui/views/scrollview/HomeScrollView.js +22 -0
  219. package/tools/templates/modules/menu/images/profile.png +0 -0
  220. package/tools/templates/modules/menu/package.json +5 -0
  221. package/tools/templates/modules/menu/scripts/MenuModule.js +18 -0
  222. package/tools/templates/modules/menu/scripts/MenuRoutes.js +14 -0
  223. package/tools/templates/modules/menu/scripts/services/menuMock.json +24 -0
  224. package/tools/templates/modules/menu/scripts/ui/const/MenuIcons.js +16 -0
  225. package/tools/templates/modules/menu/scripts/ui/views/MenuButtonView.js +101 -0
  226. package/tools/templates/modules/menu/scripts/ui/views/MenuListView.js +60 -0
  227. package/tools/templates/modules/menu/scripts/ui/views/MenuView.js +87 -0
  228. package/tools/templates/modules/menu/scripts/ui/views/ProfileImageView.js +30 -0
  229. package/tools/templates/modules/player/package.json +5 -0
  230. package/tools/templates/modules/player/scripts/PlayerModule.js +19 -0
  231. package/tools/templates/modules/player/scripts/PlayerRoutes.js +19 -0
  232. package/tools/templates/modules/player/scripts/ui/const/PlayerIcons.js +19 -0
  233. package/tools/templates/modules/player/scripts/ui/screens/PlayerScreen.js +361 -0
  234. package/tools/templates/modules/player/scripts/ui/views/PlayerControlButtonView.js +69 -0
  235. package/tools/templates/modules/player/scripts/ui/views/PlayerControlsView.js +173 -0
  236. package/tools/templates/modules/player/scripts/ui/views/ProgressBarView.js +53 -0
  237. package/tools/templates/modules/search/package.json +5 -0
  238. package/tools/templates/modules/search/scripts/SearchModule.js +18 -0
  239. package/tools/templates/modules/search/scripts/SearchRoutes.js +16 -0
  240. package/tools/templates/modules/search/scripts/ui/const/EnglishKeyboardData.js +31 -0
  241. package/tools/templates/modules/search/scripts/ui/const/SearchIcons.js +14 -0
  242. package/tools/templates/modules/search/scripts/ui/const/SearchKeyboardLayout.js +19 -0
  243. package/tools/templates/modules/search/scripts/ui/primitives/SearchTextPrimitive.js +36 -0
  244. package/tools/templates/modules/search/scripts/ui/screens/SearchScreen.js +234 -0
  245. package/tools/templates/modules/search/scripts/ui/services/MockSearchService.js +39 -0
  246. package/tools/templates/modules/search/scripts/ui/services/SearchVirtualKeyboardService.js +33 -0
  247. package/tools/templates/modules/search/scripts/ui/services/mock/searchMock.json +172 -0
  248. package/tools/templates/modules/search/scripts/ui/views/SearchView.js +62 -0
  249. package/tools/templates/modules/search/scripts/ui/views/keyboard/SearchKeyboardRowItemView.js +92 -0
  250. package/tools/templates/modules/search/scripts/ui/views/keyboard/SearchKeyboardRowListView.js +33 -0
  251. package/tools/templates/modules/search/scripts/ui/views/keyboard/SearchKeyboardView.js +63 -0
  252. package/tools/templates/modules/search/scripts/ui/views/rail/SearchScrollRailView.js +53 -0
  253. package/tools/templates/modules/search/scripts/ui/views/rail/SearchScrollView.js +22 -0
  254. package/tools/templates/modules/search/scripts/ui/views/rail/SearchTileView.js +68 -0
  255. package/tools/templates/modules/search/styles/styles/fonts/fa-solid-900.ttf +0 -0
  256. package/tools/templates/modules/settings/package.json +5 -0
  257. package/tools/templates/modules/settings/scripts/SettingsModule.js +19 -0
  258. package/tools/templates/modules/settings/scripts/SettingsRoutes.js +19 -0
  259. package/tools/templates/modules/settings/scripts/ui/screens/SettingsScreen.js +200 -0
  260. package/tools/templates/modules/settings/scripts/ui/views/SettingsListItemView.js +85 -0
  261. package/tools/templates/modules/settings/scripts/ui/views/SettingsListView.js +56 -0
  262. package/tools/templates/modules/vod/package.json +5 -0
  263. package/tools/templates/modules/vod/scripts/VodModule.js +19 -0
  264. package/tools/templates/modules/vod/scripts/VodRoutes.js +19 -0
  265. package/tools/templates/modules/vod/scripts/services/mock/scrollViewMock.json +172 -0
  266. package/tools/templates/modules/vod/scripts/ui/screens/VodScreen.js +204 -0
  267. package/tools/templates/modules/vod/scripts/ui/views/MockTileView.js +69 -0
  268. package/tools/templates/modules/vod/scripts/ui/views/RailScrollItemView.js +53 -0
  269. package/tools/templates/modules/vod/scripts/ui/views/VodScrollView.js +22 -0
  270. package/tools/templates/package.json +14 -0
  271. package/tools/templates/profiles/app.config.androidtv.json +17 -0
  272. package/tools/templates/profiles/app.config.titanos.json +24 -0
  273. package/tools/templates/profiles/app.config.tizen.json +52 -0
  274. package/tools/templates/profiles/app.config.tvos.json +18 -0
  275. package/tools/templates/profiles/app.config.vidaa.json +24 -0
  276. package/tools/templates/profiles/app.config.webos.json +21 -0
  277. package/tools/templates/tutorial/modules/fip/package.json +4 -0
  278. package/tools/templates/tutorial/modules/fip/scripts/FipModule.js +18 -0
  279. package/tools/templates/tutorial/modules/fip/scripts/FipRoutes.js +19 -0
  280. package/tools/templates/tutorial/modules/fip/scripts/ui/screens/FipContentScreen.js +146 -0
  281. package/tools/templates/tutorial/modules/fip/scripts/ui/views/ElevatorView.js +66 -0
  282. package/tools/templates/tutorial/modules/fip/scripts/ui/views/FipContentInfoView.js +90 -0
  283. package/tools/templates/tutorial/modules/fip/scripts/ui/views/PlayButtonView.js +58 -0
  284. package/tools/templates/tutorial/vendors/customBE/package.json +5 -0
  285. package/tools/templates/tutorial/vendors/customBE/scripts/datas/contents.json +749 -0
  286. package/tools/templates/tutorial/vendors/customBE/scripts/services/CustomBEVodService.js +70 -0
  287. package/tsconfig.json +8 -0
  288. package/vitest.config.ts +19 -0
@@ -0,0 +1,361 @@
1
+
2
+ import $AppScreen from "@AppScreen";
3
+ import $PlayerControlsView from "@PlayerControlsView";
4
+ import $PlayerService from "@PlayerService";
5
+ import $PlayerEvent from "@PlayerEvent";
6
+ import $PlayerSessionType from "@PlayerSessionType";
7
+ import $SourceStreamingType from "@SourceStreamingType";
8
+ import $PlayerPlayingState from "@PlayerPlayingState";
9
+ import $PlayerState from "@PlayerState";
10
+ import $AdEventType from "@AdEventType";
11
+ import $Theme from "@Theme";
12
+ import $Media from "@Media";
13
+ import $TimerManager from "@TimerManager";
14
+
15
+ /**
16
+ * Play video contents
17
+ *
18
+ * @name PlayerScreen
19
+ * @class
20
+ * @extends AppScreen
21
+ * @screen
22
+ *
23
+ * @property {PlayerService} playerService - Instance of PlayerService
24
+ * @property {Media} data
25
+ * @property {String} mediaId
26
+ * @property {TimerManager} timerManager - Instance of TimeManager
27
+ */
28
+ export default $AppScreen.declare("PlayerScreen", {
29
+ statics: /** @lends PlayerScreen */ {
30
+ MONITOR_INTERVAL_ID: "MONITOR_INTERVAL"
31
+ },
32
+
33
+ properties: /** @lends PlayerScreen.prototype */ {
34
+ playerService: {class: $PlayerService},
35
+ data: {class: $Media},
36
+ mediaId: null,
37
+ timerManager: {class: $TimerManager}
38
+ },
39
+
40
+ children: /** @lends PlayerScreen.prototype*/ {
41
+ playerControls: {
42
+ class: $PlayerControlsView
43
+ }
44
+ },
45
+
46
+ inputs: [
47
+ "keypress.PLAY",
48
+ "keypress.PAUSE",
49
+ "keypress.STOP",
50
+ "keypress.FORWARD",
51
+ "keypress.REWIND"
52
+ ],
53
+
54
+ listen: [
55
+ $PlayerEvent.stateChanged,
56
+ $PlayerEvent.playStateChange,
57
+ $PlayerEvent.streamReady,
58
+ $PlayerEvent.adEvent
59
+ ],
60
+
61
+ methods: /** @lends PlayerScreen.prototype */ {
62
+ //////////////////////////////////////////////////////////////////////////////////////////
63
+ // EXTENSION POINTS
64
+ //////////////////////////////////////////////////////////////////////////////////////////
65
+
66
+ /**
67
+ * Prepare screen data: get the business data to feed the views
68
+ * View should always be fulfilled with business model(s).
69
+ *
70
+ * It must returns an Object.
71
+ *
72
+ * @param {Object} [context] The context shared by the screens during display
73
+ * @returns {Promise<Object,Error>} returns a promise resolved with the data
74
+ * @override
75
+ */
76
+ prepareData: function (context) {
77
+ this.mediaId = "mediaId"; // context.mediaId
78
+ let playerSessionPromise = this.playerService.getPlayerSession($PlayerSessionType.NON_LINEAR, false);
79
+
80
+ return playerSessionPromise
81
+ .then(session => {
82
+ let data = {};
83
+
84
+ data.media = new $Media({
85
+ id: this.mediaId,
86
+ url: "https://docs.evostream.com/sample_content/assets/bunny.mp4",
87
+ streamingType: $SourceStreamingType.MP4
88
+ });
89
+ data.session = session;
90
+ return data;
91
+ });
92
+ },
93
+
94
+ /**
95
+ * Connect the data prepared by {@link prepareData} to the views.
96
+ * Use the data property, which is the return value of {@link prepareData}.
97
+ *
98
+ * @param {Object} [context] The context shared by the screens during display
99
+ * @override
100
+ */
101
+ connectData: function (context) {
102
+ this.playerService.setSource(this.data.session, this.data.media);
103
+ this.playerControls.init();
104
+ },
105
+
106
+ /**
107
+ * Called before the screen is shown
108
+ * The flow is interrupted until the promise has been resolved/rejected
109
+ *
110
+ * @param {Object} [context] The context shared by the screens during display
111
+ * @override
112
+ */
113
+ beforeShow: function (context) {},
114
+
115
+ /**
116
+ * Called before the screen is hidden
117
+ * The flow is interrupted until the promise has been resolved/rejected
118
+ *
119
+ * @param {Object} [context] The context shared by the screens during display
120
+ * @override
121
+ */
122
+ beforeHide: function (context) {
123
+ this.stopMonitorPosition();
124
+ },
125
+
126
+ /**
127
+ * Get the position (only called when the player is started)
128
+ */
129
+ monitorPosition: function () {
130
+ this.playerService.getPosition(this.data.session)
131
+ .then((position) => {
132
+ this.playerControls.position = position;
133
+ });
134
+ },
135
+
136
+ /**
137
+ * Clear the interval, reset the position/duration to avoid
138
+ * artifacts when loading another media
139
+ */
140
+ stopMonitorPosition: function () {
141
+ this.timerManager.clearInterval(this.statics.MONITOR_INTERVAL_ID);
142
+ this.playerControls.position = 0;
143
+ this.playerControls.duration = 0;
144
+ },
145
+
146
+ //////////////////////////////////////////////////////////////////////////////////////////
147
+ // NAVIGATION
148
+ //////////////////////////////////////////////////////////////////////////////////////////
149
+
150
+ /**
151
+ * Pass ok input to focusedChild
152
+ */
153
+ ok: function () {
154
+ if (!this.playerControls.isShown) {
155
+ this.playerControls.show();
156
+ return;
157
+ }
158
+ switch (this.playerControls.getAction()) {
159
+ case $PlayerControlsView.STOP:
160
+ this.playerService.stop(this.data.session);
161
+ break;
162
+ case $PlayerControlsView.SEEK_REWIND:
163
+ this.playerService.getPosition(this.data.session)
164
+ .then(position => {
165
+ this.playerService.seek(this.data.session, position - 10000);
166
+ });
167
+ break;
168
+ case $PlayerControlsView.REWIND:
169
+ this.playerService.rewind(this.data.session);
170
+ break;
171
+ case $PlayerControlsView.PLAY:
172
+ this.playerService.getPlayingState(this.data.session).then(playingState => {
173
+ if (playingState === $PlayerPlayingState.PLAY) {
174
+ this.playerService.pause(this.data.session);
175
+ } else {
176
+ this.playerService.resume(this.data.session);
177
+ }
178
+ })
179
+ .catch((e) => {
180
+ console.error(e);
181
+ });
182
+ break;
183
+ case $PlayerControlsView.SEEK_FORWARD:
184
+ this.playerService.getPosition(this.data.session)
185
+ .then(position => {
186
+ this.playerService.seek(this.data.session, position + 10000);
187
+ });
188
+ break;
189
+ case $PlayerControlsView.FORWARD:
190
+ this.playerService.forward(this.data.session);
191
+ break;
192
+ default:
193
+ return false;
194
+ }
195
+ return true;
196
+ },
197
+
198
+ back: function (key) {
199
+ if (!this.playerControls.isShown) {
200
+ this.playerService.stop(this.data.session);
201
+ } else {
202
+ this.playerControls.hide();
203
+ }
204
+ return true;
205
+ },
206
+
207
+ left: function (key) {
208
+ if (!this.playerControls.isShown) {
209
+ this.playerControls.show();
210
+ return true;
211
+ } else {
212
+ return $AppScreen.prototype.left.apply(this, arguments);
213
+ }
214
+ },
215
+
216
+ right: function (key) {
217
+ if (!this.playerControls.isShown) {
218
+ this.playerControls.show();
219
+ return true;
220
+ } else {
221
+ return $AppScreen.prototype.right.apply(this, arguments);
222
+ }
223
+ },
224
+
225
+ up: function (key) {
226
+ if (!this.playerControls.isShown) {
227
+ this.playerControls.show();
228
+ return true;
229
+ } else {
230
+ return $AppScreen.prototype.left.up(this, arguments);
231
+ }
232
+ },
233
+
234
+ down: function (key) {
235
+ if (!this.playerControls.isShown) {
236
+ this.playerControls.show();
237
+ return true;
238
+ } else {
239
+ return $AppScreen.prototype.right.down(this, arguments);
240
+ }
241
+ },
242
+
243
+ //////////////////////////////////////////////////////////////////////////////////////////
244
+ // RCU CALLBACKS
245
+ //////////////////////////////////////////////////////////////////////////////////////////
246
+
247
+ /**
248
+ * Stop with RCU, [C] on keyboard
249
+ */
250
+ onKeypressSTOP: function () {
251
+ this.playerService.stop(this.data.session);
252
+ },
253
+
254
+ /**
255
+ * Play with RCU, [space] on keyboard)
256
+ */
257
+ onKeypressPLAY: function () {
258
+ this.playerService.resume(this.data.session);
259
+ },
260
+
261
+ /**
262
+ * Forward with RCU, [A] on keyboard
263
+ */
264
+ onKeypressFORWARD: function () {
265
+ this.playerService.forward(this.data.session);
266
+ },
267
+
268
+ /**
269
+ * *Rewind with RCU, [B] on keyboard
270
+ */
271
+ onKeypressREWIND: function () {
272
+ this.playerService.rewind(this.data.session);
273
+ },
274
+
275
+ /**
276
+ * Pause with RCU, [D] on keyboard
277
+ */
278
+ onKeypressPAUSE: function () {
279
+ this.playerService.pause(this.data.session);
280
+ },
281
+
282
+ //////////////////////////////////////////////////////////////////////////////////////////
283
+ // EVENTS
284
+ //////////////////////////////////////////////////////////////////////////////////////////
285
+
286
+ /**
287
+ * We wait for the player to be STOPPED so we can clear the timer to monitor the position
288
+ * release the player and go back to the fip
289
+ * @param {PlayerState} newsState
290
+ */
291
+ onPlayerStateChanged: function ({newState}) {
292
+ if (newState === $PlayerState.STOPPED) {
293
+ this.stopMonitorPosition();
294
+ this.routeToPrevious();
295
+ }
296
+ },
297
+ /**
298
+ * Update button according playing state
299
+ * @param {PlayerState} newsState
300
+ */
301
+ onPlayerPlayingStateChange: function ({state}) {
302
+ switch (state) {
303
+ case $PlayerPlayingState.PLAY:
304
+ this.playerControls.updatePlayButton(true);
305
+ break;
306
+ case $PlayerPlayingState.PAUSE:
307
+ this.playerControls.updatePlayButton(false);
308
+ break;
309
+ default:
310
+ break;
311
+ }
312
+ },
313
+
314
+ /**
315
+ * Keep track if the media is ready and the duration available
316
+ * so we can start monitoring the position for the progressBar
317
+ */
318
+ onPlayerStreamReady: function () {
319
+ this.playerService.getDuration(this.data.session)
320
+ .then((duration) => {
321
+ this.playerControls.duration = duration;
322
+ this.positionController = this.timerManager.setInterval(() => { this.monitorPosition(); }, 1000, this.statics.MONITOR_INTERVAL_ID);
323
+ });
324
+ this.playerService.getAudioTrackList(this.data.session).then(audiotracks => {
325
+ if (audiotracks.length > 0) {
326
+ this.playerControls.showAudioButton();
327
+ }
328
+ });
329
+ this.playerService.getSubtitleList(this.data.session).then(subtitlesTracks => {
330
+ if (subtitlesTracks.length > 0) {
331
+ this.playerControls.showCaptionButton();
332
+ }
333
+ });
334
+ },
335
+
336
+ onPlayerAdEvent: function (event) {
337
+ if (event.type === $AdEventType.STARTED) {
338
+ this.playerControls.hide();
339
+ }
340
+ },
341
+
342
+ //////////////////////////////////////////////////////////////////////////////////////////
343
+ // EVENT CALLBACKS
344
+ //////////////////////////////////////////////////////////////////////////////////////////
345
+
346
+ /**
347
+ * Called when a screen is ready
348
+ * The data have been retrieved, the children are shown
349
+ * @override
350
+ */
351
+ onScreenReady: function () {}
352
+ },
353
+
354
+ style: {
355
+ playerControls: {
356
+ width: $Theme.FULL_SCREEN_WIDTH,
357
+ height: $Theme.FULL_SCREEN_HEIGHT,
358
+ y: $Theme.FULL_SCREEN_HEIGHT - 200
359
+ }
360
+ }
361
+ });
@@ -0,0 +1,69 @@
1
+ import $View from "@View";
2
+ import $RectanglePrimitive from "@RectanglePrimitive";
3
+ import $TextPrimitive from "@TextPrimitive";
4
+ import $TextAlign from "@TextAlign";
5
+ import $Theme from "@Theme";
6
+
7
+ /**
8
+ * Displays an item on player controller
9
+ *
10
+ * @name PlayerControlButtonView
11
+ * @class
12
+ * @extends View
13
+ *
14
+ * @property {boolean} isInteractive flag
15
+ */
16
+ export default $View.declare("PlayerControlButtonView", {
17
+ statics: /** @lends PlayerControlButtonView */ {
18
+ BUTTON_WIDTH: 70,
19
+ BUTTON_HEIGHT: 70,
20
+ FONT_SIZE: 50
21
+ },
22
+
23
+ properties: /** @lends PlayerControlButtonView.prototype */ {
24
+ isInteractive: true
25
+ },
26
+
27
+ children: /** @lends PlayerControlButtonView.prototype */ {
28
+ background: {
29
+ class: $RectanglePrimitive
30
+ },
31
+ icon: {
32
+ class: $TextPrimitive
33
+ }
34
+ },
35
+
36
+ states: {
37
+ focused: {
38
+ "icon.color": $Theme.COLOR_ACCENT,
39
+ "background.fillColor": $Theme.COLOR_TEXT
40
+ }
41
+ },
42
+
43
+ style: {
44
+ width: ({statics}) => statics.BUTTON_WIDTH,
45
+ height: ({statics}) => statics.BUTTON_HEIGHT,
46
+ background: {
47
+ width: ({parent}) => parent.statics.BUTTON_WIDTH,
48
+ height: ({parent}) => parent.statics.BUTTON_HEIGHT,
49
+ borderRadius: ({parent}) => parent.statics.BUTTON_HEIGHT / 2,
50
+ fillColor: $Theme.COLOR_MUTED
51
+ },
52
+ icon: {
53
+ width: ({parent}) => parent.statics.FONT_SIZE,
54
+ height: ({parent}) => parent.statics.FONT_SIZE,
55
+ x: ({parent}) => (parent.statics.BUTTON_WIDTH - parent.statics.FONT_SIZE) / 2,
56
+ y: ({parent}) => (parent.statics.BUTTON_HEIGHT - parent.statics.FONT_SIZE) / 2,
57
+ align: $TextAlign.CENTER,
58
+ family: $Theme.MockIcons,
59
+ color: $Theme.COLOR_BACKGROUND,
60
+ size: ({parent}) => parent.statics.FONT_SIZE
61
+ }
62
+ },
63
+
64
+ methods: /** @lends PlayerControlButtonView.prototype */ {
65
+ setTextIcon: function (icon) {
66
+ this.icon.text = icon;
67
+ }
68
+ }
69
+ });
@@ -0,0 +1,173 @@
1
+ // VIEWS
2
+ import $View from "@View";
3
+ import $ProgressBarView from "@ProgressBarView";
4
+ import $PlayerControlButtonView from "@PlayerControlButtonView";
5
+ // TRAITS
6
+ import $MNavigation from "@MNavigation";
7
+
8
+ // CONSTS
9
+ import $PlayerIcons from "@PlayerIcons";
10
+
11
+ /**
12
+ * The player
13
+ *
14
+ * @name PlayerControlsView
15
+ * @class
16
+ * @extends View
17
+ *
18
+ * @property {Number} duration
19
+ * @property {Number} position
20
+ */
21
+ export default $View.declare("PlayerControlsView", {
22
+ traits: [$MNavigation],
23
+
24
+ statics: /** @lends PlayerControlsView */ {
25
+ PLAY: "PLAY",
26
+ STOP: "STOP",
27
+ FORWARD: "FORWARD",
28
+ REWIND: "REWIND",
29
+ SEEK_FORWARD: "SEEK_FORWARD",
30
+ SEEK_REWIND: "SEEK_REWIND",
31
+ ICON_VERTICAL_ALIGN: 40,
32
+ MARGIN: 100,
33
+ ITEM_MARGIN: 10
34
+ },
35
+
36
+ properties: /** @lends PlayerControlsView.prototype */ {
37
+ duration: 0,
38
+ position: 0
39
+ },
40
+
41
+ children: /** @lends PlayerControlsView.prototype */ {
42
+ progressBar: {
43
+ class: $ProgressBarView,
44
+ duration: ({parent}) => parent.duration,
45
+ position: ({parent}) => parent.position
46
+ },
47
+ stopButton: {class: $PlayerControlButtonView},
48
+ rewindButton: {class: $PlayerControlButtonView},
49
+ seekRewindButton: {class: $PlayerControlButtonView},
50
+ playPauseButton: {class: $PlayerControlButtonView},
51
+ seekForwardButton: {class: $PlayerControlButtonView},
52
+ forwardButton: {class: $PlayerControlButtonView}
53
+ },
54
+
55
+ methods: /** @lends PlayerControlsView.prototype */ {
56
+ init: function () {
57
+ this.playPauseButton.setTextIcon($PlayerIcons.PLAY);
58
+ this.stopButton.setTextIcon($PlayerIcons.STOP);
59
+ this.seekRewindButton.setTextIcon($PlayerIcons.SEEK_REWIND);
60
+ this.seekForwardButton.setTextIcon($PlayerIcons.SEEK_FORWARD);
61
+ this.rewindButton.setTextIcon($PlayerIcons.REWIND);
62
+ this.forwardButton.setTextIcon($PlayerIcons.FORWARD);
63
+ },
64
+ ok: function () {
65
+ this.focusedChild.ok();
66
+ },
67
+ left: function () {
68
+ switch (this.focusedChild.id) {
69
+ case this.rewindButton.id:
70
+ this.stopButton.focus();
71
+ break;
72
+ case this.seekRewindButton.id:
73
+ this.rewindButton.focus();
74
+ break;
75
+ case this.playPauseButton.id:
76
+ this.seekRewindButton.focus();
77
+ break;
78
+ case this.seekForwardButton.id:
79
+ this.playPauseButton.focus();
80
+ break;
81
+ case this.forwardButton.id:
82
+ this.playPauseButton.focus();
83
+ break;
84
+ default:
85
+ break;
86
+ }
87
+ },
88
+ right: function () {
89
+ switch (this.focusedChild.id) {
90
+ case this.stopButton.id:
91
+ this.rewindButton.focus();
92
+ break;
93
+ case this.rewindButton.id:
94
+ this.seekRewindButton.focus();
95
+ break;
96
+ case this.seekRewindButton.id:
97
+ this.playPauseButton.focus();
98
+ break;
99
+ case this.playPauseButton.id:
100
+ this.seekForwardButton.focus();
101
+ break;
102
+ case this.seekForwardButton.id:
103
+ this.forwardButton.focus();
104
+ break;
105
+ default:
106
+ return false;
107
+ }
108
+ return true;
109
+ },
110
+
111
+ _getChildToFocus: function () {
112
+ return this.playPauseButton;
113
+ },
114
+
115
+ updatePlayButton: function (isPlaying) {
116
+ if (isPlaying) {
117
+ this.playPauseButton.setTextIcon($PlayerIcons.PAUSE);
118
+ } else {
119
+ this.playPauseButton.setTextIcon($PlayerIcons.PLAY);
120
+ }
121
+ },
122
+ getAction: function () {
123
+ switch (this.focusedChild.id) {
124
+ case this.stopButton.id:
125
+ return this.statics.STOP;
126
+ case this.rewindButton.id:
127
+ return this.statics.REWIND;
128
+ case this.seekRewindButton.id:
129
+ return this.statics.SEEK_REWIND;
130
+ case this.playPauseButton.id:
131
+ return this.statics.PLAY;
132
+ case this.seekForwardButton.id:
133
+ return this.statics.SEEK_FORWARD;
134
+ case this.forwardButton.id:
135
+ return this.statics.FORWARD;
136
+ default:
137
+ return "";
138
+ }
139
+ }
140
+ },
141
+
142
+ style: {
143
+ progressBar: {
144
+ x: ({parent}) => parent.statics.MARGIN,
145
+ height: 20,
146
+ width: ({parent}) => parent.width - (2 * parent.statics.MARGIN)
147
+ },
148
+ stopButton: {
149
+ x: ({parent}) => parent.statics.MARGIN,
150
+ y: ({parent}) => parent.statics.ICON_VERTICAL_ALIGN
151
+ },
152
+ rewindButton: {
153
+ x: ({parent}) => parent.statics.MARGIN + (parent.statics.ITEM_MARGIN + $PlayerControlButtonView.BUTTON_WIDTH) * 1,
154
+ y: ({parent}) => parent.statics.ICON_VERTICAL_ALIGN
155
+ },
156
+ seekRewindButton: {
157
+ x: ({parent}) => parent.statics.MARGIN + (parent.statics.ITEM_MARGIN + $PlayerControlButtonView.BUTTON_WIDTH) * 2,
158
+ y: ({parent}) => parent.statics.ICON_VERTICAL_ALIGN
159
+ },
160
+ playPauseButton: {
161
+ x: ({parent}) => parent.statics.MARGIN + (parent.statics.ITEM_MARGIN + $PlayerControlButtonView.BUTTON_WIDTH) * 3,
162
+ y: ({parent}) => parent.statics.ICON_VERTICAL_ALIGN
163
+ },
164
+ seekForwardButton: {
165
+ x: ({parent}) => parent.statics.MARGIN + (parent.statics.ITEM_MARGIN + $PlayerControlButtonView.BUTTON_WIDTH) * 4,
166
+ y: ({parent}) => parent.statics.ICON_VERTICAL_ALIGN
167
+ },
168
+ forwardButton: {
169
+ x: ({parent}) => parent.statics.MARGIN + (parent.statics.ITEM_MARGIN + $PlayerControlButtonView.BUTTON_WIDTH) * 5,
170
+ y: ({parent}) => parent.statics.ICON_VERTICAL_ALIGN
171
+ }
172
+ }
173
+ });
@@ -0,0 +1,53 @@
1
+ /*
2
+ * Copyright (c) 2014-2025 Wiztivi - contact@wiztivi.com
3
+ * All Rights Reserved
4
+ *
5
+ * All information contained herein is proprietary and confidential.
6
+ * Dissemination of this information or reproduction of this file or material, via any medium is strictly forbidden unless
7
+ * prior written permission is obtained from Wiztivi.
8
+ * No warranty, explicit or implicit, provided.
9
+ * This software MAY NOT be used, modified or rewritten without prior written permission from Wiztivi.
10
+ *
11
+ */
12
+
13
+ import $View from "@View";
14
+ import $RectanglePrimitive from "@RectanglePrimitive";
15
+ import $Theme from "@Theme";
16
+
17
+ /**
18
+ * Progress bar view
19
+ *
20
+ * @name ProgressBarView
21
+ * @class
22
+ * @extends View
23
+ *
24
+ * @property {Number} duration
25
+ * @property {Number} position
26
+ */
27
+ export default $View.declare("ProgressBarView", {
28
+ properties: /** @lends ProgressBarView.prototype */ {
29
+ duration: 0,
30
+ position: 0
31
+ },
32
+
33
+ children: /** @lends ProgressBarView.prototype */ {
34
+ container: {class: $RectanglePrimitive},
35
+ progress: {class: $RectanglePrimitive}
36
+ },
37
+
38
+ style: {
39
+ container: {
40
+ width: ({parent}) => parent.width,
41
+ height: 20,
42
+ fillColor: $Theme.COLOR_MUTED,
43
+ borderRadius: 10
44
+ },
45
+ progress: {
46
+ borderRadius: 10,
47
+ width: ({parent}) => parent.duration > 0 ? (parent.position * (parent.width - 10)) / parent.duration : 0,
48
+ fillColor: $Theme.COLOR_ACCENT,
49
+ height: 30,
50
+ y: ({parent}) => parent.container.y + (parent.container.height - parent.progress.height) / 2
51
+ }
52
+ }
53
+ });
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "search",
3
+ "description": "displays the search features",
4
+ "version": "1.0.0"
5
+ }
@@ -0,0 +1,18 @@
1
+ import $AbstractModule from "@AbstractModule";
2
+ import $SearchRoutes from "@SearchRoutes";
3
+
4
+ /**
5
+ *
6
+ * @name SearchModule
7
+ * @class
8
+ * @module SearchModule
9
+ * @extends AbstractModule
10
+ * @lazy
11
+ *
12
+ * @property {Trait[]} exports A list of trait's exported by the module
13
+ */
14
+ export default $AbstractModule.declare("SearchModule", {
15
+ properties: /** @lends SearchModule.prototype*/ {
16
+ exports: [$SearchRoutes]
17
+ }
18
+ });