@sunbird-cb/utils-v2 0.0.1

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 (296) hide show
  1. package/README.md +24 -0
  2. package/bundles/sunbird-cb-utils-v2.umd.js +6940 -0
  3. package/bundles/sunbird-cb-utils-v2.umd.js.map +1 -0
  4. package/bundles/sunbird-cb-utils-v2.umd.min.js +16 -0
  5. package/bundles/sunbird-cb-utils-v2.umd.min.js.map +1 -0
  6. package/esm2015/lib/components/image-crop/image-crop.component.js +195 -0
  7. package/esm2015/lib/components/image-crop/image-crop.module.js +27 -0
  8. package/esm2015/lib/constants/features.enum.js +555 -0
  9. package/esm2015/lib/constants/instances.enum.js +5 -0
  10. package/esm2015/lib/constants/misc.constants.js +1 -0
  11. package/esm2015/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.js +87 -0
  12. package/esm2015/lib/directives/class-change-on-scroll/class-change-on-scroll.module.js +15 -0
  13. package/esm2015/lib/directives/default-thumbnail/default-thumbnail.directive.js +38 -0
  14. package/esm2015/lib/directives/default-thumbnail/default-thumbnail.module.js +15 -0
  15. package/esm2015/lib/directives/image-responsive/image-responsive.directive.js +92 -0
  16. package/esm2015/lib/directives/image-responsive/image-responsive.module.js +15 -0
  17. package/esm2015/lib/directives/in-view-port/in-view-port.directive.js +68 -0
  18. package/esm2015/lib/directives/in-view-port/in-view-port.module.js +15 -0
  19. package/esm2015/lib/directives/navigation/navigation.directive.js +39 -0
  20. package/esm2015/lib/directives/navigation/navigation.module.js +15 -0
  21. package/esm2015/lib/directives/permission/permission.directive.js +11 -0
  22. package/esm2015/lib/directives/permission/permission.module.js +15 -0
  23. package/esm2015/lib/helpers/functions/getStringifiedQueryParams.js +9 -0
  24. package/esm2015/lib/helpers/horizontal-scroller/horizontal-scroller.component.js +99 -0
  25. package/esm2015/lib/helpers/horizontal-scroller/horizontal-scroller.module.js +19 -0
  26. package/esm2015/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.component.js +172 -0
  27. package/esm2015/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.module.js +19 -0
  28. package/esm2015/lib/helpers/logout/logout.component.js +90 -0
  29. package/esm2015/lib/helpers/logout/logout.module.js +20 -0
  30. package/esm2015/lib/models/profile-v3.models.js +104 -0
  31. package/esm2015/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.module.js +15 -0
  32. package/esm2015/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.pipe.js +94 -0
  33. package/esm2015/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.js +13 -0
  34. package/esm2015/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.js +59 -0
  35. package/esm2015/lib/pipes/pipe-count-transform/pipe-count-transform.module.js +15 -0
  36. package/esm2015/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.js +33 -0
  37. package/esm2015/lib/pipes/pipe-date-concat/pipe-date-concat.module.js +15 -0
  38. package/esm2015/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.js +43 -0
  39. package/esm2015/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.js +15 -0
  40. package/esm2015/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +79 -0
  41. package/esm2015/lib/pipes/pipe-email/pipe-email.module.js +15 -0
  42. package/esm2015/lib/pipes/pipe-email/pipe-email.pipe.js +12 -0
  43. package/esm2015/lib/pipes/pipe-filter/pipe-filter.module.js +15 -0
  44. package/esm2015/lib/pipes/pipe-filter/pipe-filter.pipe.js +16 -0
  45. package/esm2015/lib/pipes/pipe-filter-search/pipe-filter-search.module.js +15 -0
  46. package/esm2015/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.js +38 -0
  47. package/esm2015/lib/pipes/pipe-filter-v2/pipe-filter-v2.module.js +15 -0
  48. package/esm2015/lib/pipes/pipe-filter-v2/pipe-filter-v2.pipe.js +21 -0
  49. package/esm2015/lib/pipes/pipe-filter-v3/pipe-filter-v3.module.js +15 -0
  50. package/esm2015/lib/pipes/pipe-filter-v3/pipe-filter-v3.pipe.js +23 -0
  51. package/esm2015/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.js +15 -0
  52. package/esm2015/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.js +12 -0
  53. package/esm2015/lib/pipes/pipe-limit-to/pipe-limit-to.module.js +15 -0
  54. package/esm2015/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.js +25 -0
  55. package/esm2015/lib/pipes/pipe-list-filter/pipe-list-filter.module.js +15 -0
  56. package/esm2015/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.js +17 -0
  57. package/esm2015/lib/pipes/pipe-name-transform/pipe-name-transform.module.js +15 -0
  58. package/esm2015/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.js +27 -0
  59. package/esm2015/lib/pipes/pipe-order-by/pipe-order-by.module.js +15 -0
  60. package/esm2015/lib/pipes/pipe-order-by/pipe-order-by.pipe.js +16 -0
  61. package/esm2015/lib/pipes/pipe-partial-content/pipe-partial-content.module.js +15 -0
  62. package/esm2015/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.js +18 -0
  63. package/esm2015/lib/pipes/pipe-public-URL/pipe-public-URL.module.js +15 -0
  64. package/esm2015/lib/pipes/pipe-public-URL/pipe-public-URL.pipe.js +23 -0
  65. package/esm2015/lib/pipes/pipe-relative-time/pipe-relative-time.module.js +15 -0
  66. package/esm2015/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.js +16 -0
  67. package/esm2015/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.js +15 -0
  68. package/esm2015/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.js +35 -0
  69. package/esm2015/lib/resolvers/explore-detail.resolver.js +89 -0
  70. package/esm2015/lib/resolvers/marketing-offering.resolve.js +40 -0
  71. package/esm2015/lib/resolvers/module-name.resolver.js +38 -0
  72. package/esm2015/lib/resolvers/page-name.resolver.js +32 -0
  73. package/esm2015/lib/resolvers/page.constant.js +4 -0
  74. package/esm2015/lib/resolvers/page.model.js +48 -0
  75. package/esm2015/lib/resolvers/page.resolver.js +90 -0
  76. package/esm2015/lib/resolvers/resolver.model.js +6 -0
  77. package/esm2015/lib/services/auth-keycloak.service.js +266 -0
  78. package/esm2015/lib/services/auth-microsoft.service.js +196 -0
  79. package/esm2015/lib/services/card-content.model.js +31 -0
  80. package/esm2015/lib/services/configurations.model.js +548 -0
  81. package/esm2015/lib/services/configurations.service.js +140 -0
  82. package/esm2015/lib/services/content-strip-multiple.model.js +75 -0
  83. package/esm2015/lib/services/event.model.js +242 -0
  84. package/esm2015/lib/services/event.service.js +211 -0
  85. package/esm2015/lib/services/logger.service.js +55 -0
  86. package/esm2015/lib/services/ms-office.model.js +8 -0
  87. package/esm2015/lib/services/multilingual-translations.service.js +136 -0
  88. package/esm2015/lib/services/nps-grid.service.js +45 -0
  89. package/esm2015/lib/services/subapplication-respond.service.js +214 -0
  90. package/esm2015/lib/services/telemetry.service.js +621 -0
  91. package/esm2015/lib/services/user-preference.model.js +38 -0
  92. package/esm2015/lib/services/user-preference.service.js +90 -0
  93. package/esm2015/lib/services/utility.service.js +145 -0
  94. package/esm2015/lib/services/value.service.js +31 -0
  95. package/esm2015/lib/services/widget-content.model.js +373 -0
  96. package/esm2015/lib/services/widget-content.service.js +192 -0
  97. package/esm2015/lib/services/widget-resolver.model.js +57 -0
  98. package/esm2015/lib/services/widget-search.model.js +126 -0
  99. package/esm2015/public-api.js +80 -0
  100. package/esm2015/sunbird-cb-utils-v2.js +11 -0
  101. package/esm5/lib/components/image-crop/image-crop.component.js +200 -0
  102. package/esm5/lib/components/image-crop/image-crop.module.js +31 -0
  103. package/esm5/lib/constants/features.enum.js +555 -0
  104. package/esm5/lib/constants/instances.enum.js +5 -0
  105. package/esm5/lib/constants/misc.constants.js +1 -0
  106. package/esm5/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.js +105 -0
  107. package/esm5/lib/directives/class-change-on-scroll/class-change-on-scroll.module.js +19 -0
  108. package/esm5/lib/directives/default-thumbnail/default-thumbnail.directive.js +40 -0
  109. package/esm5/lib/directives/default-thumbnail/default-thumbnail.module.js +19 -0
  110. package/esm5/lib/directives/image-responsive/image-responsive.directive.js +95 -0
  111. package/esm5/lib/directives/image-responsive/image-responsive.module.js +19 -0
  112. package/esm5/lib/directives/in-view-port/in-view-port.directive.js +73 -0
  113. package/esm5/lib/directives/in-view-port/in-view-port.module.js +19 -0
  114. package/esm5/lib/directives/navigation/navigation.directive.js +41 -0
  115. package/esm5/lib/directives/navigation/navigation.module.js +19 -0
  116. package/esm5/lib/directives/permission/permission.directive.js +14 -0
  117. package/esm5/lib/directives/permission/permission.module.js +19 -0
  118. package/esm5/lib/helpers/functions/getStringifiedQueryParams.js +9 -0
  119. package/esm5/lib/helpers/horizontal-scroller/horizontal-scroller.component.js +103 -0
  120. package/esm5/lib/helpers/horizontal-scroller/horizontal-scroller.module.js +23 -0
  121. package/esm5/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.component.js +177 -0
  122. package/esm5/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.module.js +23 -0
  123. package/esm5/lib/helpers/logout/logout.component.js +96 -0
  124. package/esm5/lib/helpers/logout/logout.module.js +24 -0
  125. package/esm5/lib/models/profile-v3.models.js +104 -0
  126. package/esm5/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.module.js +19 -0
  127. package/esm5/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.pipe.js +96 -0
  128. package/esm5/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.js +17 -0
  129. package/esm5/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.js +63 -0
  130. package/esm5/lib/pipes/pipe-count-transform/pipe-count-transform.module.js +19 -0
  131. package/esm5/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.js +37 -0
  132. package/esm5/lib/pipes/pipe-date-concat/pipe-date-concat.module.js +19 -0
  133. package/esm5/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.js +45 -0
  134. package/esm5/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.js +19 -0
  135. package/esm5/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +83 -0
  136. package/esm5/lib/pipes/pipe-email/pipe-email.module.js +19 -0
  137. package/esm5/lib/pipes/pipe-email/pipe-email.pipe.js +16 -0
  138. package/esm5/lib/pipes/pipe-filter/pipe-filter.module.js +19 -0
  139. package/esm5/lib/pipes/pipe-filter/pipe-filter.pipe.js +20 -0
  140. package/esm5/lib/pipes/pipe-filter-search/pipe-filter-search.module.js +19 -0
  141. package/esm5/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.js +46 -0
  142. package/esm5/lib/pipes/pipe-filter-v2/pipe-filter-v2.module.js +19 -0
  143. package/esm5/lib/pipes/pipe-filter-v2/pipe-filter-v2.pipe.js +25 -0
  144. package/esm5/lib/pipes/pipe-filter-v3/pipe-filter-v3.module.js +19 -0
  145. package/esm5/lib/pipes/pipe-filter-v3/pipe-filter-v3.pipe.js +31 -0
  146. package/esm5/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.js +19 -0
  147. package/esm5/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.js +16 -0
  148. package/esm5/lib/pipes/pipe-limit-to/pipe-limit-to.module.js +19 -0
  149. package/esm5/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.js +30 -0
  150. package/esm5/lib/pipes/pipe-list-filter/pipe-list-filter.module.js +19 -0
  151. package/esm5/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.js +21 -0
  152. package/esm5/lib/pipes/pipe-name-transform/pipe-name-transform.module.js +19 -0
  153. package/esm5/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.js +31 -0
  154. package/esm5/lib/pipes/pipe-order-by/pipe-order-by.module.js +19 -0
  155. package/esm5/lib/pipes/pipe-order-by/pipe-order-by.pipe.js +18 -0
  156. package/esm5/lib/pipes/pipe-partial-content/pipe-partial-content.module.js +19 -0
  157. package/esm5/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.js +34 -0
  158. package/esm5/lib/pipes/pipe-public-URL/pipe-public-URL.module.js +19 -0
  159. package/esm5/lib/pipes/pipe-public-URL/pipe-public-URL.pipe.js +25 -0
  160. package/esm5/lib/pipes/pipe-relative-time/pipe-relative-time.module.js +19 -0
  161. package/esm5/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.js +20 -0
  162. package/esm5/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.js +19 -0
  163. package/esm5/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.js +38 -0
  164. package/esm5/lib/resolvers/explore-detail.resolver.js +93 -0
  165. package/esm5/lib/resolvers/marketing-offering.resolve.js +43 -0
  166. package/esm5/lib/resolvers/module-name.resolver.js +40 -0
  167. package/esm5/lib/resolvers/page-name.resolver.js +35 -0
  168. package/esm5/lib/resolvers/page.constant.js +4 -0
  169. package/esm5/lib/resolvers/page.model.js +48 -0
  170. package/esm5/lib/resolvers/page.resolver.js +98 -0
  171. package/esm5/lib/resolvers/resolver.model.js +6 -0
  172. package/esm5/lib/services/auth-keycloak.service.js +347 -0
  173. package/esm5/lib/services/auth-microsoft.service.js +251 -0
  174. package/esm5/lib/services/card-content.model.js +31 -0
  175. package/esm5/lib/services/configurations.model.js +548 -0
  176. package/esm5/lib/services/configurations.service.js +142 -0
  177. package/esm5/lib/services/content-strip-multiple.model.js +75 -0
  178. package/esm5/lib/services/event.model.js +242 -0
  179. package/esm5/lib/services/event.service.js +215 -0
  180. package/esm5/lib/services/logger.service.js +73 -0
  181. package/esm5/lib/services/ms-office.model.js +8 -0
  182. package/esm5/lib/services/multilingual-translations.service.js +138 -0
  183. package/esm5/lib/services/nps-grid.service.js +47 -0
  184. package/esm5/lib/services/subapplication-respond.service.js +219 -0
  185. package/esm5/lib/services/telemetry.service.js +670 -0
  186. package/esm5/lib/services/user-preference.model.js +38 -0
  187. package/esm5/lib/services/user-preference.service.js +109 -0
  188. package/esm5/lib/services/utility.service.js +178 -0
  189. package/esm5/lib/services/value.service.js +33 -0
  190. package/esm5/lib/services/widget-content.model.js +373 -0
  191. package/esm5/lib/services/widget-content.service.js +214 -0
  192. package/esm5/lib/services/widget-resolver.model.js +57 -0
  193. package/esm5/lib/services/widget-search.model.js +126 -0
  194. package/esm5/public-api.js +80 -0
  195. package/esm5/sunbird-cb-utils-v2.js +11 -0
  196. package/fesm2015/sunbird-cb-utils-v2.js +6160 -0
  197. package/fesm2015/sunbird-cb-utils-v2.js.map +1 -0
  198. package/fesm5/sunbird-cb-utils-v2.js +6649 -0
  199. package/fesm5/sunbird-cb-utils-v2.js.map +1 -0
  200. package/lib/components/image-crop/image-crop.component.d.ts +56 -0
  201. package/lib/components/image-crop/image-crop.module.d.ts +2 -0
  202. package/lib/constants/features.enum.d.ts +553 -0
  203. package/lib/constants/instances.enum.d.ts +3 -0
  204. package/lib/constants/misc.constants.d.ts +2 -0
  205. package/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.d.ts +18 -0
  206. package/lib/directives/class-change-on-scroll/class-change-on-scroll.module.d.ts +2 -0
  207. package/lib/directives/default-thumbnail/default-thumbnail.directive.d.ts +9 -0
  208. package/lib/directives/default-thumbnail/default-thumbnail.module.d.ts +2 -0
  209. package/lib/directives/image-responsive/image-responsive.directive.d.ts +17 -0
  210. package/lib/directives/image-responsive/image-responsive.module.d.ts +2 -0
  211. package/lib/directives/in-view-port/in-view-port.directive.d.ts +11 -0
  212. package/lib/directives/in-view-port/in-view-port.module.d.ts +2 -0
  213. package/lib/directives/navigation/navigation.directive.d.ts +9 -0
  214. package/lib/directives/navigation/navigation.module.d.ts +2 -0
  215. package/lib/directives/permission/permission.directive.d.ts +3 -0
  216. package/lib/directives/permission/permission.module.d.ts +2 -0
  217. package/lib/helpers/functions/getStringifiedQueryParams.d.ts +3 -0
  218. package/lib/helpers/horizontal-scroller/horizontal-scroller.component.d.ts +18 -0
  219. package/lib/helpers/horizontal-scroller/horizontal-scroller.module.d.ts +2 -0
  220. package/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.component.d.ts +31 -0
  221. package/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.module.d.ts +2 -0
  222. package/lib/helpers/logout/logout.component.d.ts +20 -0
  223. package/lib/helpers/logout/logout.module.d.ts +2 -0
  224. package/lib/models/profile-v3.models.d.ts +91 -0
  225. package/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.module.d.ts +2 -0
  226. package/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.pipe.d.ts +6 -0
  227. package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.d.ts +2 -0
  228. package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.d.ts +10 -0
  229. package/lib/pipes/pipe-count-transform/pipe-count-transform.module.d.ts +2 -0
  230. package/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.d.ts +4 -0
  231. package/lib/pipes/pipe-date-concat/pipe-date-concat.module.d.ts +2 -0
  232. package/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.d.ts +13 -0
  233. package/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.d.ts +2 -0
  234. package/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.d.ts +6 -0
  235. package/lib/pipes/pipe-email/pipe-email.module.d.ts +2 -0
  236. package/lib/pipes/pipe-email/pipe-email.pipe.d.ts +4 -0
  237. package/lib/pipes/pipe-filter/pipe-filter.module.d.ts +2 -0
  238. package/lib/pipes/pipe-filter/pipe-filter.pipe.d.ts +4 -0
  239. package/lib/pipes/pipe-filter-search/pipe-filter-search.module.d.ts +2 -0
  240. package/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.d.ts +4 -0
  241. package/lib/pipes/pipe-filter-v2/pipe-filter-v2.module.d.ts +2 -0
  242. package/lib/pipes/pipe-filter-v2/pipe-filter-v2.pipe.d.ts +4 -0
  243. package/lib/pipes/pipe-filter-v3/pipe-filter-v3.module.d.ts +2 -0
  244. package/lib/pipes/pipe-filter-v3/pipe-filter-v3.pipe.d.ts +4 -0
  245. package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.d.ts +2 -0
  246. package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.d.ts +4 -0
  247. package/lib/pipes/pipe-limit-to/pipe-limit-to.module.d.ts +2 -0
  248. package/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.d.ts +4 -0
  249. package/lib/pipes/pipe-list-filter/pipe-list-filter.module.d.ts +2 -0
  250. package/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.d.ts +4 -0
  251. package/lib/pipes/pipe-name-transform/pipe-name-transform.module.d.ts +2 -0
  252. package/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.d.ts +9 -0
  253. package/lib/pipes/pipe-order-by/pipe-order-by.module.d.ts +2 -0
  254. package/lib/pipes/pipe-order-by/pipe-order-by.pipe.d.ts +9 -0
  255. package/lib/pipes/pipe-partial-content/pipe-partial-content.module.d.ts +2 -0
  256. package/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.d.ts +4 -0
  257. package/lib/pipes/pipe-public-URL/pipe-public-URL.module.d.ts +2 -0
  258. package/lib/pipes/pipe-public-URL/pipe-public-URL.pipe.d.ts +6 -0
  259. package/lib/pipes/pipe-relative-time/pipe-relative-time.module.d.ts +2 -0
  260. package/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.d.ts +4 -0
  261. package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.d.ts +2 -0
  262. package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.d.ts +7 -0
  263. package/lib/resolvers/explore-detail.resolver.d.ts +16 -0
  264. package/lib/resolvers/marketing-offering.resolve.d.ts +10 -0
  265. package/lib/resolvers/module-name.resolver.d.ts +6 -0
  266. package/lib/resolvers/page-name.resolver.d.ts +5 -0
  267. package/lib/resolvers/page.constant.d.ts +1 -0
  268. package/lib/resolvers/page.model.d.ts +41 -0
  269. package/lib/resolvers/page.resolver.d.ts +17 -0
  270. package/lib/resolvers/resolver.model.d.ts +4 -0
  271. package/lib/services/auth-keycloak.service.d.ts +31 -0
  272. package/lib/services/auth-microsoft.service.d.ts +30 -0
  273. package/lib/services/card-content.model.d.ts +29 -0
  274. package/lib/services/configurations.model.d.ts +521 -0
  275. package/lib/services/configurations.service.d.ts +73 -0
  276. package/lib/services/content-strip-multiple.model.d.ts +79 -0
  277. package/lib/services/event.model.d.ts +205 -0
  278. package/lib/services/event.service.d.ts +30 -0
  279. package/lib/services/logger.service.d.ts +15 -0
  280. package/lib/services/ms-office.model.d.ts +6 -0
  281. package/lib/services/multilingual-translations.service.d.ts +20 -0
  282. package/lib/services/nps-grid.service.d.ts +12 -0
  283. package/lib/services/subapplication-respond.service.d.ts +23 -0
  284. package/lib/services/telemetry.service.d.ts +56 -0
  285. package/lib/services/user-preference.model.d.ts +34 -0
  286. package/lib/services/user-preference.service.d.ts +11 -0
  287. package/lib/services/utility.service.d.ts +31 -0
  288. package/lib/services/value.service.d.ts +8 -0
  289. package/lib/services/widget-content.model.d.ts +344 -0
  290. package/lib/services/widget-content.service.d.ts +47 -0
  291. package/lib/services/widget-resolver.model.d.ts +48 -0
  292. package/lib/services/widget-search.model.d.ts +114 -0
  293. package/package.json +35 -0
  294. package/public-api.d.ts +79 -0
  295. package/sunbird-cb-utils-v2.d.ts +10 -0
  296. package/sunbird-cb-utils-v2.metadata.json +1 -0
@@ -0,0 +1,79 @@
1
+ import { NSSearch } from './widget-search.model';
2
+ import { NsContent } from './widget-content.model';
3
+ import { NsCardContent } from './card-content.model';
4
+ import { NsWidgetResolver } from './widget-resolver.model';
5
+ export declare namespace NsContentStripMultiple {
6
+ interface IContentStripMultiple {
7
+ errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
8
+ loader?: boolean;
9
+ noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
10
+ strips: IContentStripUnit[];
11
+ isChannelStrip?: boolean;
12
+ }
13
+ interface IContentStripUnit {
14
+ key: string;
15
+ title: string;
16
+ name?: string;
17
+ mode?: 'accordion';
18
+ info?: IStripInfo;
19
+ preWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[];
20
+ postWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[];
21
+ stripConfig?: IStripConfig;
22
+ canHideStrip?: boolean;
23
+ filters?: any[];
24
+ selectAll?: boolean | null;
25
+ request?: {
26
+ search?: NSSearch.ISearchRequest;
27
+ searchV6?: NSSearch.ISearchV6Request;
28
+ searchRegionRecommendation?: NSSearch.ISearchOrgRegionRecommendationRequest;
29
+ api?: IStripRequestApi;
30
+ ids?: string[];
31
+ };
32
+ searchV6Type?: 'KB' | 'Collections' | 'searchQuery' | null;
33
+ stripBackground?: string;
34
+ noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
35
+ loader?: boolean;
36
+ errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData;
37
+ refreshEvent?: Record<'eventType' | 'from', string>;
38
+ fetchLikes?: boolean;
39
+ }
40
+ interface IStripRequestApi {
41
+ path: string;
42
+ queryParams?: {
43
+ pageNo?: number;
44
+ pageSize?: number;
45
+ pageState?: string;
46
+ sourceFields?: string;
47
+ };
48
+ }
49
+ interface IStripInfo {
50
+ mode: 'below' | 'popup' | 'modal';
51
+ visibilityMode?: 'hidden' | 'visible';
52
+ icon: {
53
+ icon: string;
54
+ scale: number;
55
+ style?: any;
56
+ };
57
+ widget: NsWidgetResolver.IRenderConfigWithAnyData;
58
+ }
59
+ interface IStripConfig {
60
+ cardSubType: NsCardContent.TCardSubType;
61
+ postCardForSearch?: boolean;
62
+ intranetMode?: 'greyOut' | 'hide';
63
+ deletedMode?: 'greyOut' | 'hide';
64
+ contentTags?: IContentTags;
65
+ }
66
+ interface IContentTags {
67
+ daysSpan?: number;
68
+ excludeContentType?: NsContent.EContentTypes[];
69
+ excludeMimeType?: string[];
70
+ tag: string;
71
+ criteriaField: string;
72
+ }
73
+ interface IContentStripResponseApi {
74
+ contents: NsContent.IContent[];
75
+ hasMore?: boolean;
76
+ pageState?: string;
77
+ totalHits?: number;
78
+ }
79
+ }
@@ -0,0 +1,205 @@
1
+ export declare namespace WsEvents {
2
+ interface IWsEventsFromWidget {
3
+ type: 'widget';
4
+ widgetType: string;
5
+ widgetSubType: string;
6
+ }
7
+ interface IWsEventsFromPage {
8
+ type: 'page';
9
+ pageUrl: string;
10
+ pageType: string;
11
+ }
12
+ enum WsEventType {
13
+ Action = "Action",
14
+ Telemetry = "Telemetry",
15
+ PageNavigation = "PageNavigation",
16
+ AccessRestrictedContentAccessed = "AccessRestrictedContentAccessed",
17
+ PageSlow = "PageSlow",
18
+ ErrorOccurred = "ErrorOccurred",
19
+ WidgetResolveError = "WidgetResolveError"
20
+ }
21
+ enum WsEventLogLevel {
22
+ Warn = "Warn",
23
+ Error = "Error",
24
+ Info = "Info",
25
+ Log = "Log",
26
+ Trace = "Trace"
27
+ }
28
+ enum WsAuditTypes {
29
+ Created = "Created",
30
+ Updated = "Updated",
31
+ Deleted = "Deleted"
32
+ }
33
+ enum WsTimeSpentType {
34
+ Page = "Page",
35
+ Player = "Player"
36
+ }
37
+ enum WsTimeSpentMode {
38
+ Play = "Play",
39
+ View = "View"
40
+ }
41
+ enum externalTelemetrypdata {
42
+ RBCP = "rbcp-web-ui"
43
+ }
44
+ interface IWsEvents<T> {
45
+ eventType: WsEventType;
46
+ eventLogLevel: WsEventLogLevel;
47
+ from: IWsEventsFromWidget | IWsEventsFromPage | string;
48
+ to: string;
49
+ data: T;
50
+ passThroughData?: any;
51
+ pageContext?: any;
52
+ }
53
+ enum EnumTelemetrySubType {
54
+ Init = "Init",
55
+ Interact = "Interact",
56
+ Loaded = "Loaded",
57
+ Unloaded = "Unloaded",
58
+ StateChange = "StateChange",
59
+ HeartBeat = "HeartBeat",
60
+ Search = "Search",
61
+ Feedback = "Feedback",
62
+ Impression = "Impression",
63
+ Chatbot = "Chatbot",
64
+ GetStarted = "Get Started",
65
+ PlatformRating = "PlatformRating"
66
+ }
67
+ interface ITelemetryPageContext {
68
+ pageId?: string;
69
+ module?: string;
70
+ pageIdExt?: string;
71
+ }
72
+ interface ITelemetryEdata {
73
+ type: string;
74
+ subType?: string;
75
+ id?: string;
76
+ pageid?: string;
77
+ }
78
+ interface ITelemetryTabData {
79
+ label: string;
80
+ index: number;
81
+ }
82
+ interface IWsEventTelemetry {
83
+ eventSubType: EnumTelemetrySubType;
84
+ pageContext?: ITelemetryPageContext;
85
+ }
86
+ enum EnumTelemetryPdfActivity {
87
+ PAGE_CHANGED = "PAGE_CHANGED",
88
+ FULLSCREEN_ACTIVATED = "FULLSCREEN_ACTIVATED",
89
+ FULLSCREEN_DEACTIVATED = "FULLSCREEN_DEACTIVATED",
90
+ ZOOM_CHANGE = "ZOOM_CHANGE",
91
+ NONE = "NONE"
92
+ }
93
+ interface IWsEventTelemetryPdfData extends IWsEventTelemetry {
94
+ activityType: EnumTelemetryPdfActivity;
95
+ currentPage: number;
96
+ totalPage: number;
97
+ activityStartedAt: Date | null;
98
+ object: any;
99
+ }
100
+ interface IWsEventTelemetrySurveyData extends IWsEventTelemetry {
101
+ object: any;
102
+ }
103
+ type WsEventTelemetryPDF = IWsEvents<IWsEventTelemetryPdfData>;
104
+ type WsEventTelemetrySurvey = IWsEvents<IWsEventTelemetrySurveyData>;
105
+ interface IWsEventTelemetryInteract extends IWsEventTelemetry {
106
+ edata: ITelemetryEdata;
107
+ object: any;
108
+ pageContext?: ITelemetryPageContext;
109
+ }
110
+ interface IWsEventTelemetryFeedback extends IWsEventTelemetry {
111
+ edata: ITelemetryEdata;
112
+ object: any;
113
+ pageContext?: ITelemetryPageContext;
114
+ }
115
+ interface IWsEventTelemetryImpression extends IWsEventTelemetry {
116
+ edata?: ITelemetryEdata;
117
+ object?: any;
118
+ pageContext?: ITelemetryPageContext;
119
+ }
120
+ interface IWsEventTelemetrySearch extends IWsEventTelemetry {
121
+ type: string;
122
+ subType?: string;
123
+ query?: string;
124
+ filters?: string;
125
+ size?: number;
126
+ locale?: any;
127
+ }
128
+ interface IWsEventTelemetryHeartBeat extends IWsEventTelemetry {
129
+ type: string;
130
+ id: string;
131
+ }
132
+ type WsEventTelemetryInteract = IWsEvents<IWsEventTelemetryInteract>;
133
+ type WsEventTelemetryFeedback = IWsEvents<IWsEventTelemetryFeedback>;
134
+ type WsEventTelemetryImpression = IWsEvents<IWsEventTelemetryImpression>;
135
+ type WsEventTelemetrySearch = IWsEvents<IWsEventTelemetrySearch>;
136
+ type WsEventTelemetryHeartBeat = IWsEvents<IWsEventTelemetryHeartBeat>;
137
+ enum EnumTelemetryMediaActivity {
138
+ PLAYED = "PLAYED",
139
+ PAUSED = "PAUSED",
140
+ SEEKED = "SEEKED",
141
+ ENDED = "ENDED",
142
+ VOLUME_CHANGE = "VOLUME_CHANGE",
143
+ MUTE = "MUTE",
144
+ UNMUTE = "UNMUTE",
145
+ PLAYBACK_SPEED_CHANGE = "PLAYBACK_SPEED_CHANGE",
146
+ FULLSCREEN_ACTIVATED = "FULLSCREEN_ACTIVATED",
147
+ FULLSCREEN_DEACTIVATED = "FULLSCREEN_DEACTIVATED",
148
+ PICTURE_IN_PICTURE_ACTIVATED = "PICTURE_IN_PICTURE_ACTIVATED",
149
+ PICTURE_IN_PICTURE_DEACTIVATED = "PICTURE_IN_PICTURE_DEACTIVATED",
150
+ NONE = "NONE"
151
+ }
152
+ enum EnumTelemetryMediaState {
153
+ PLAYING = "PLAYING",
154
+ PAUSED = "PAUSED",
155
+ ENDED = "ENDED",
156
+ BUFFERING = "BUFFERING",
157
+ NOT_STARTED = "NOT_STARTED"
158
+ }
159
+ interface IWsEventTelemetryMediaData extends IWsEventTelemetry {
160
+ currentState: EnumTelemetryMediaState;
161
+ activityType: EnumTelemetryMediaActivity;
162
+ currentTime: number | null;
163
+ totalTime: number | null;
164
+ maxedSeekedTime: number;
165
+ activityStartedAt?: Date | null;
166
+ }
167
+ type WsEventTelemetryMedia = IWsEvents<IWsEventTelemetryMediaData>;
168
+ enum EnumTelemetrymodules {
169
+ CONTENT = "content",
170
+ FEEDBACK = "feedback",
171
+ COURSE = "course",
172
+ PROGRAM = "program",
173
+ EXPLORE = "explore",
174
+ LEARN = "learn",
175
+ HOME = "home",
176
+ DASHBOARD = "dashboard",
177
+ SEARCH = "search",
178
+ DISCUSS = "Discuss",
179
+ COMPETENCY = "competency",
180
+ EVENTS = "events",
181
+ CAREER = "career",
182
+ PROFILE = "profile",
183
+ NETWORK = "network",
184
+ SUPPORT = "support",
185
+ KARMAPOINTS = "karmapoints",
186
+ PLATFORM_RATING = "platformrating"
187
+ }
188
+ enum EnumInteractTypes {
189
+ CLICK = "click"
190
+ }
191
+ enum EnumInteractSubTypes {
192
+ COURSE_TAB = "course-tab",
193
+ CAREER_TAB = "career-tab",
194
+ NETWORK_TAB = "network-tab",
195
+ COMPETENCY_TAB = "competency-tab",
196
+ PROFILE_EDIT_TAB = "profile-edit-tab",
197
+ DISCUSS_TAB = "discuss-tab",
198
+ EVENTS_TAB = "events-tab",
199
+ SIDE_MENU = "side-menu",
200
+ HOME_PAGE_STRIP_TABS = "home-page-strip-tabs",
201
+ HUB_MENU = "hub-menu",
202
+ PORTAL_NUDGE = "portal_nudge",
203
+ CERTIFICATE = "certificate"
204
+ }
205
+ }
@@ -0,0 +1,30 @@
1
+ import { WsEvents } from './event.model';
2
+ import { UtilityService } from './utility.service';
3
+ export declare class EventService {
4
+ private utilitySvc;
5
+ todaysEvents: any;
6
+ private eventsSubject;
7
+ events$: import("rxjs").Observable<WsEvents.IWsEvents<any>>;
8
+ private eventsChatbotSubject;
9
+ chatbotEvents$: import("rxjs").Observable<WsEvents.IWsEvents<any>>;
10
+ private eventsGetStartSubject;
11
+ getStartEvents$: import("rxjs").Observable<WsEvents.IWsEvents<any>>;
12
+ private eventsPRSubject;
13
+ getPREvents$: import("rxjs").Observable<WsEvents.IWsEvents<any>>;
14
+ environment: any;
15
+ constructor(environment: any, utilitySvc: UtilityService);
16
+ dispatchEvent<T>(event: WsEvents.IWsEvents<T>): void;
17
+ dispatchChatbotEvent<T>(event: WsEvents.IWsEvents<T>): void;
18
+ dispatchGetStartedEvent<T>(event: WsEvents.IWsEvents<T>): void;
19
+ dispatchPlatformRatingEvent<T>(event: WsEvents.IWsEvents<T>): void;
20
+ raiseInteractTelemetry(edata: WsEvents.ITelemetryEdata, object: any, pageContext?: WsEvents.ITelemetryPageContext): void;
21
+ raiseFeedbackTelemetry(edata: WsEvents.ITelemetryEdata, object: any, from?: string): void;
22
+ raiseCustomImpression(object: any, pageContext?: WsEvents.ITelemetryPageContext): void;
23
+ private getContext;
24
+ handleTabTelemetry(subType: string, data: WsEvents.ITelemetryTabData, object?: any): void;
25
+ getPublicUrl(url: string): string;
26
+ allEventDateFormat(datetime: any): string;
27
+ compareDate(startDate: any): boolean;
28
+ customDateFormat(date: any, time: any): string;
29
+ setEventListData(eventObj: any): void;
30
+ }
@@ -0,0 +1,15 @@
1
+ import { ConfigurationsService } from './configurations.service';
2
+ export declare class LoggerService {
3
+ private configSvc;
4
+ constructor(configSvc: ConfigurationsService);
5
+ private consoleError;
6
+ private consoleInfo;
7
+ private consoleLog;
8
+ private consoleWarn;
9
+ private noConsole;
10
+ readonly error: (message?: any, ...optionalParams: any[]) => void;
11
+ readonly info: (message?: any, ...optionalParams: any[]) => void;
12
+ readonly log: (message?: any, ...optionalParams: any[]) => void;
13
+ readonly warn: (message?: any, ...optionalParams: any[]) => void;
14
+ removeConsoleAccess(): void;
15
+ }
@@ -0,0 +1,6 @@
1
+ export interface IWsMsTokenModelResponse {
2
+ accessToken?: string;
3
+ expiresOn?: string;
4
+ resource?: string;
5
+ tokenType?: string;
6
+ }
@@ -0,0 +1,20 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { BehaviorSubject } from 'rxjs';
4
+ import { ConfigurationsService } from './configurations.service';
5
+ export declare class MultilingualTranslationsService {
6
+ private translate;
7
+ private http;
8
+ private configSvc;
9
+ selectedLang: string;
10
+ languageSelected: BehaviorSubject<boolean>;
11
+ languageSelectedObservable: import("rxjs").Observable<boolean>;
12
+ editProfileDetails: string;
13
+ constructor(translate: TranslateService, http: HttpClient, configSvc: ConfigurationsService);
14
+ getLanguage(): void;
15
+ translateLabelWithoutspace(label: string, type: any, subtype: any): any;
16
+ translateLabel(label: string, type: any, subtype: any): any;
17
+ translateActualLabel(label: string, type: any, subtype: any): any;
18
+ editProfileDetailsAPI(data: any): import("rxjs").Observable<any>;
19
+ updatelanguageSelected(state: any, lang: any, userid: any): void;
20
+ }
@@ -0,0 +1,12 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ export declare class NPSGridService {
3
+ private http;
4
+ private telemetryEvents;
5
+ updateTelemetryDataObservable: import("rxjs").Observable<boolean>;
6
+ constructor(http: HttpClient);
7
+ updateTelemetryData(state: boolean): void;
8
+ getFeedStatus(id: any): import("rxjs").Observable<any>;
9
+ getFormData(formid: any): import("rxjs").Observable<any>;
10
+ submitPlatformRating(req: any): import("rxjs").Observable<any>;
11
+ deleteFeed(req: any): import("rxjs").Observable<any>;
12
+ }
@@ -0,0 +1,23 @@
1
+ import { ActivatedRoute, Router } from '@angular/router';
2
+ import { WidgetContentService } from './widget-content.service';
3
+ import { ConfigurationsService } from './configurations.service';
4
+ import { EventService } from './event.service';
5
+ import { TelemetryService } from './telemetry.service';
6
+ export declare class SubapplicationRespondService {
7
+ private configSvc;
8
+ private contentSvc;
9
+ private activatedRoute;
10
+ private router;
11
+ private eventSvc;
12
+ private teleSvc;
13
+ subAppname: string;
14
+ continueLearningData: any;
15
+ contentWindowinfo: any;
16
+ loaded: boolean;
17
+ constructor(configSvc: ConfigurationsService, contentSvc: WidgetContentService, activatedRoute: ActivatedRoute, router: Router, eventSvc: EventService, teleSvc: TelemetryService);
18
+ loadedRespond(contentWindow: any, applicationName: string, id?: string): void;
19
+ continueLearningRespond(id: string, continueLearning: any): void;
20
+ telemetryEvents(tData: any): void;
21
+ unsubscribeResponse(): void;
22
+ changeContextrespond(): void;
23
+ }
@@ -0,0 +1,56 @@
1
+ import { NsInstanceConfig } from './configurations.model';
2
+ import { ConfigurationsService } from './configurations.service';
3
+ import { WsEvents } from './event.model';
4
+ import { EventService } from './event.service';
5
+ import { LoggerService } from './logger.service';
6
+ import { Router } from '@angular/router';
7
+ import { NPSGridService } from './nps-grid.service';
8
+ export declare class TelemetryService {
9
+ private configSvc;
10
+ private eventsSvc;
11
+ private logger;
12
+ private router;
13
+ private npsSvc;
14
+ previousUrl: string | null;
15
+ telemetryConfig: NsInstanceConfig.ITelemetryConfig | null;
16
+ pData: any;
17
+ contextCdata: never[];
18
+ isAnonymousTelemetry: boolean;
19
+ telArray: any;
20
+ externalApps: any;
21
+ environment: any;
22
+ constructor(configSvc: ConfigurationsService, eventsSvc: EventService, environment: any, logger: LoggerService, router: Router, npsSvc: NPSGridService);
23
+ private navigationStart;
24
+ readonly isAnonymousTelemetryRequired: boolean;
25
+ private updateTelemetryConfig;
26
+ private initializeConfig;
27
+ readonly getTelemetrySessionId: string;
28
+ readonly rootOrgId: string;
29
+ triggerNPSUpdate(data: any): void;
30
+ start(edata: any, data: any, pageContext?: WsEvents.ITelemetryPageContext): void;
31
+ end(edata: any, data: any, pageContext?: WsEvents.ITelemetryPageContext): void;
32
+ audit(type: string, props: string, data: any): void;
33
+ heartbeat(type: string, id: string): void;
34
+ impression(data?: any, objectType?: any): void;
35
+ externalImpression(impressionData: any): void;
36
+ addCustomListenerForPlatformRating(): void;
37
+ addCustomListenerForGetStart(): void;
38
+ addCustomListener(): void;
39
+ addCustomImpressionListener(): void;
40
+ addTimeSpentListener(): void;
41
+ addCustomEventListener(): void;
42
+ addPlayerListener(): void;
43
+ addInteractListener(): void;
44
+ addFeedbackListener(): void;
45
+ addHearbeatListener(): void;
46
+ addSearchListener(): void;
47
+ getPageDetails(): {
48
+ pageid: string;
49
+ pageUrl: string;
50
+ pageUrlParts: string[];
51
+ refferUrl: string | null;
52
+ objectId: string | null;
53
+ module: string;
54
+ };
55
+ extractContentIdFromUrlParts(urlParts: string[]): string | null;
56
+ }
@@ -0,0 +1,34 @@
1
+ export interface IUserPreference {
2
+ selectedTheme: string;
3
+ selectedFont: string;
4
+ selectedLocale: string;
5
+ isDarkMode: boolean;
6
+ isIntranetAllowed?: boolean;
7
+ isRTL: boolean;
8
+ colorPallet: string[];
9
+ defaultCardType: string;
10
+ pinnedApps: string;
11
+ selectedLangGroup?: string;
12
+ completedActivity: string[];
13
+ completedTour?: boolean;
14
+ profileSettings: string[];
15
+ }
16
+ export interface IPortalUrls {
17
+ igot: string;
18
+ spv: string;
19
+ mdo: string;
20
+ cbc: string;
21
+ cbp: string;
22
+ frac: string;
23
+ }
24
+ export interface IProfile {
25
+ showProfilePicture: boolean;
26
+ showUserInterest: boolean;
27
+ showKbFollowed: boolean;
28
+ showPlaylist: boolean;
29
+ showAuthoredByMe: boolean;
30
+ showReviewedByMe: boolean;
31
+ showBadgeDetails: boolean;
32
+ showBlogs: boolean;
33
+ showQnA: boolean;
34
+ }
@@ -0,0 +1,11 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { IUserPreference } from './user-preference.model';
3
+ import { ConfigurationsService } from './configurations.service';
4
+ export declare class UserPreferenceService {
5
+ private http;
6
+ private configurationSvc;
7
+ constructor(http: HttpClient, configurationSvc: ConfigurationsService);
8
+ initialize(): void;
9
+ fetchUserPreference(): Promise<IUserPreference>;
10
+ saveUserPreference(changedUserPref?: Partial<IUserPreference>): Promise<boolean>;
11
+ }
@@ -0,0 +1,31 @@
1
+ import { Platform } from '@angular/cdk/platform';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { Observable } from 'rxjs';
4
+ import { Router, ActivatedRoute } from '@angular/router';
5
+ import { WsEvents } from './event.model';
6
+ interface IRecursiveData {
7
+ identifier: string;
8
+ children: null | IRecursiveData[];
9
+ }
10
+ export declare class UtilityService {
11
+ private http;
12
+ private platform;
13
+ private router;
14
+ private route;
15
+ currentRouteData: any[];
16
+ constructor(http: HttpClient, platform: Platform, router: Router, route: ActivatedRoute);
17
+ private getChildRouteData;
18
+ readonly randomId: number;
19
+ getJson<T>(url: string): Observable<T>;
20
+ getLeafNodes<T extends IRecursiveData>(node: T, nodes: T[]): T[];
21
+ getPath<T extends IRecursiveData>(node: T, id: string): T[];
22
+ private hasPath;
23
+ readonly isMobile: boolean;
24
+ readonly isIos: boolean;
25
+ readonly isAndroid: boolean;
26
+ readonly isAndroidApp: boolean;
27
+ readonly iOsAppRef: any;
28
+ setRouteData(data: any): void;
29
+ readonly routeData: WsEvents.ITelemetryPageContext;
30
+ }
31
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Observable } from 'rxjs';
2
+ import { BreakpointObserver } from '@angular/cdk/layout';
3
+ export declare class ValueService {
4
+ private breakpointObserver;
5
+ constructor(breakpointObserver: BreakpointObserver);
6
+ isXSmall$: Observable<boolean>;
7
+ isLtMedium$: Observable<boolean>;
8
+ }