@rxap/layout 22.0.0-dev.0 → 22.0.0-dev.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/CHANGELOG.md +27 -0
  2. package/compodoc/architecture.html +222 -0
  3. package/compodoc/changelog.html +72 -5
  4. package/compodoc/components/AppsButtonComponent.html +174 -40
  5. package/compodoc/components/BaseLayoutComponent.html +115 -23
  6. package/compodoc/components/DefaultHeaderComponent.html +205 -36
  7. package/compodoc/components/FooterComponent.html +142 -27
  8. package/compodoc/components/HeaderComponent.html +165 -61
  9. package/compodoc/components/LayoutComponent.html +194 -44
  10. package/compodoc/components/MinimalLayoutComponent.html +120 -26
  11. package/compodoc/components/NavigationComponent.html +220 -133
  12. package/compodoc/components/NavigationItemComponent.html +248 -115
  13. package/compodoc/components/NavigationProgressBarComponent.html +121 -25
  14. package/compodoc/components/ReleaseInfoComponent.html +149 -32
  15. package/compodoc/components/SettingsButtonComponent.html +220 -62
  16. package/compodoc/components/SidenavComponent.html +222 -56
  17. package/compodoc/components/SidenavToggleButtonComponent.html +117 -27
  18. package/compodoc/components/UserProfileIconComponent.html +155 -66
  19. package/compodoc/dependencies.html +152 -49
  20. package/compodoc/directives/FooterDirective.html +74 -20
  21. package/compodoc/directives/HeaderDirective.html +74 -20
  22. package/compodoc/directives/SidenavFooterDirective.html +91 -19
  23. package/compodoc/directives/SidenavHeaderDirective.html +72 -19
  24. package/compodoc/index.html +46 -5
  25. package/compodoc/injectables/DefaultHeaderService.html +91 -25
  26. package/compodoc/injectables/ExternalAppsService.html +123 -21
  27. package/compodoc/injectables/FooterService.html +91 -25
  28. package/compodoc/injectables/HeaderService.html +91 -25
  29. package/compodoc/injectables/LayoutService.html +91 -21
  30. package/compodoc/injectables/LogoService.html +103 -17
  31. package/compodoc/injectables/NavigationService.html +84 -24
  32. package/compodoc/interfaces/NavigationDividerItem.html +155 -100
  33. package/compodoc/interfaces/NavigationInsertItem.html +114 -64
  34. package/compodoc/interfaces/NavigationItem.html +305 -216
  35. package/compodoc/interfaces/NavigationStatus.html +80 -35
  36. package/compodoc/interfaces/ReleaseInfoModule.html +197 -137
  37. package/compodoc/interfaces/SettingsMenuItem.html +197 -137
  38. package/compodoc/js/architecture-graph.js +288 -0
  39. package/compodoc/js/libs/bootstrap-native.js +4 -2
  40. package/compodoc/js/libs/jszip.min.js +13 -0
  41. package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
  42. package/compodoc/js/libs/tablesort.min.js +3 -3
  43. package/compodoc/js/libs/tablesort.number.min.js +3 -3
  44. package/compodoc/js/libs/vis-network.min.js +78 -0
  45. package/compodoc/js/menu-wc.js +26 -13
  46. package/compodoc/js/menu.js +10 -11
  47. package/compodoc/js/routes/routes_index.js +1 -0
  48. package/compodoc/js/routes.js +142 -34
  49. package/compodoc/js/search/search-lunr.js +6 -8
  50. package/compodoc/js/search/search.js +118 -66
  51. package/compodoc/js/search/search_index.js +2 -2
  52. package/compodoc/js/tabs.js +98 -15
  53. package/compodoc/js/tree.js +44 -7
  54. package/compodoc/license.html +48 -6
  55. package/compodoc/llms.txt +523 -0
  56. package/compodoc/miscellaneous/functions.html +90 -41
  57. package/compodoc/miscellaneous/typealiases.html +55 -12
  58. package/compodoc/miscellaneous/variables.html +163 -20
  59. package/compodoc/modules.html +44 -3
  60. package/compodoc/overview.html +54 -3
  61. package/compodoc/properties.html +45 -4
  62. package/compodoc/routes.html +227 -0
  63. package/compodoc/styles/compodoc.css +365 -44
  64. package/compodoc/styles/dark.css +16 -0
  65. package/compodoc/template-playground/default-templates.json +192 -0
  66. package/compodoc/template-playground/hbs-render.service.ts +217 -0
  67. package/compodoc/template-playground/main.ts +9 -0
  68. package/compodoc/template-playground/template-editor.service.ts +173 -0
  69. package/compodoc/template-playground/template-playground.component.ts +614 -0
  70. package/compodoc/template-playground/template-playground.module.ts +29 -0
  71. package/compodoc/template-playground/zip-export.service.ts +86 -0
  72. package/compodoc/template-playground-app/app.js +1389 -0
  73. package/compodoc/template-playground-app/index.html +462 -0
  74. package/docs/documentation.json +1672 -1215
  75. package/docs/html/assets/highlight.css +1 -1
  76. package/docs/html/assets/icons.js +1 -1
  77. package/docs/html/assets/icons.svg +1 -1
  78. package/docs/html/assets/main.js +5 -5
  79. package/docs/html/assets/search.js +1 -1
  80. package/docs/html/assets/style.css +265 -228
  81. package/docs/html/classes/AppsButtonComponent.html +110 -8
  82. package/docs/html/classes/BaseLayoutComponent.html +56 -2
  83. package/docs/html/classes/DefaultHeaderComponent.html +112 -10
  84. package/docs/html/classes/DefaultHeaderService.html +128 -13
  85. package/docs/html/classes/ExternalAppsService.html +240 -19
  86. package/docs/html/classes/FooterComponent.html +82 -5
  87. package/docs/html/classes/FooterDirective.html +95 -6
  88. package/docs/html/classes/FooterService.html +128 -13
  89. package/docs/html/classes/HeaderComponent.html +88 -6
  90. package/docs/html/classes/HeaderDirective.html +95 -6
  91. package/docs/html/classes/HeaderService.html +128 -13
  92. package/docs/html/classes/LayoutComponent.html +88 -6
  93. package/docs/html/classes/LayoutService.html +174 -16
  94. package/docs/html/classes/LogoService.html +88 -6
  95. package/docs/html/classes/MinimalLayoutComponent.html +56 -2
  96. package/docs/html/classes/NavigationComponent.html +156 -12
  97. package/docs/html/classes/NavigationItemComponent.html +172 -14
  98. package/docs/html/classes/NavigationProgressBarComponent.html +76 -4
  99. package/docs/html/classes/NavigationService.html +197 -12
  100. package/docs/html/classes/ReleaseInfoComponent.html +100 -6
  101. package/docs/html/classes/SettingsButtonComponent.html +242 -19
  102. package/docs/html/classes/SidenavComponent.html +190 -19
  103. package/docs/html/classes/SidenavFooterDirective.html +70 -3
  104. package/docs/html/classes/SidenavHeaderDirective.html +70 -3
  105. package/docs/html/classes/SidenavToggleButtonComponent.html +94 -5
  106. package/docs/html/classes/UserProfileIconComponent.html +106 -7
  107. package/docs/html/functions/IsNavigationDividerItem.html +42 -1
  108. package/docs/html/functions/IsNavigationInsertItem.html +42 -1
  109. package/docs/html/functions/IsNavigationItem.html +42 -1
  110. package/docs/html/functions/provideExternalApps.html +42 -1
  111. package/docs/html/functions/provideLayout.html +42 -1
  112. package/docs/html/functions/withDefaultHeaderComponent.html +38 -1
  113. package/docs/html/functions/withDefaultHeaderItems.html +42 -1
  114. package/docs/html/functions/withFooterComponents.html +42 -1
  115. package/docs/html/functions/withHeaderComponents.html +42 -1
  116. package/docs/html/functions/withNavigationConfig.html +42 -1
  117. package/docs/html/functions/withNavigationInserts.html +42 -1
  118. package/docs/html/functions/withReleaseInfoModules.html +42 -1
  119. package/docs/html/functions/withSettingsMenuItems.html +42 -1
  120. package/docs/html/functions/withUserProfileDataSource.html +43 -1
  121. package/docs/html/hierarchy.html +29 -0
  122. package/docs/html/index.html +92 -18
  123. package/docs/html/interfaces/NavigationDividerItem.html +61 -3
  124. package/docs/html/interfaces/NavigationInsertItem.html +55 -2
  125. package/docs/html/interfaces/NavigationItem.html +94 -6
  126. package/docs/html/interfaces/NavigationStatus.html +63 -2
  127. package/docs/html/interfaces/ReleaseInfoModule.html +67 -4
  128. package/docs/html/interfaces/SettingsMenuItem.html +67 -4
  129. package/docs/html/modules.html +52 -1
  130. package/docs/html/types/DefaultHeaderItemComponent.html +33 -1
  131. package/docs/html/types/ExternalApp.html +33 -1
  132. package/docs/html/types/ExtractUsernameFromProfileFn.html +49 -1
  133. package/docs/html/types/Navigation.html +33 -1
  134. package/docs/html/types/NavigationWithInserts.html +33 -1
  135. package/docs/html/types/SettingsMenuItemComponent.html +33 -1
  136. package/docs/html/variables/EXTRACT_USERNAME_FROM_PROFILE.html +33 -1
  137. package/docs/html/variables/RXAP_DEFAULT_HEADER_ITEM_COMPONENT.html +33 -1
  138. package/docs/html/variables/RXAP_EXTERNAL_APP.html +33 -1
  139. package/docs/html/variables/RXAP_EXTERNAL_APP_FILTER.html +33 -1
  140. package/docs/html/variables/RXAP_FOOTER_COMPONENT.html +33 -1
  141. package/docs/html/variables/RXAP_HEADER_COMPONENT.html +33 -1
  142. package/docs/html/variables/RXAP_LAYOUT_APPS_GRID.html +33 -1
  143. package/docs/html/variables/RXAP_LOGO_CONFIG.html +33 -1
  144. package/docs/html/variables/RXAP_LOGO_CONFIG_DEFAULTS.html +33 -1
  145. package/docs/html/variables/RXAP_NAVIGATION_CONFIG.html +33 -1
  146. package/docs/html/variables/RXAP_NAVIGATION_CONFIG_INSERTS.html +33 -1
  147. package/docs/html/variables/RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS.html +33 -1
  148. package/docs/html/variables/RXAP_RELEASE_INFO_MODULE.html +33 -1
  149. package/docs/html/variables/RXAP_SETTINGS_MENU_ITEM.html +33 -1
  150. package/docs/html/variables/RXAP_SETTINGS_MENU_ITEM_COMPONENT.html +33 -1
  151. package/docs/html/variables/RXAP_USER_PROFILE_DATA_SOURCE.html +33 -1
  152. package/docs/markdown/README.md +1 -1
  153. package/docs/markdown/classes/AppsButtonComponent.md +11 -11
  154. package/docs/markdown/classes/BaseLayoutComponent.md +5 -5
  155. package/docs/markdown/classes/DefaultHeaderComponent.md +13 -13
  156. package/docs/markdown/classes/DefaultHeaderService.md +9 -9
  157. package/docs/markdown/classes/ExternalAppsService.md +29 -29
  158. package/docs/markdown/classes/FooterComponent.md +8 -8
  159. package/docs/markdown/classes/FooterDirective.md +7 -7
  160. package/docs/markdown/classes/FooterService.md +9 -9
  161. package/docs/markdown/classes/HeaderComponent.md +9 -9
  162. package/docs/markdown/classes/HeaderDirective.md +7 -7
  163. package/docs/markdown/classes/HeaderService.md +9 -9
  164. package/docs/markdown/classes/LayoutComponent.md +9 -9
  165. package/docs/markdown/classes/LayoutService.md +21 -21
  166. package/docs/markdown/classes/LogoService.md +9 -9
  167. package/docs/markdown/classes/MinimalLayoutComponent.md +5 -5
  168. package/docs/markdown/classes/NavigationComponent.md +19 -19
  169. package/docs/markdown/classes/NavigationItemComponent.md +21 -21
  170. package/docs/markdown/classes/NavigationProgressBarComponent.md +7 -7
  171. package/docs/markdown/classes/NavigationService.md +26 -26
  172. package/docs/markdown/classes/ReleaseInfoComponent.md +9 -9
  173. package/docs/markdown/classes/SettingsButtonComponent.md +24 -24
  174. package/docs/markdown/classes/SidenavComponent.md +24 -24
  175. package/docs/markdown/classes/SidenavFooterDirective.md +6 -6
  176. package/docs/markdown/classes/SidenavHeaderDirective.md +6 -6
  177. package/docs/markdown/classes/SidenavToggleButtonComponent.md +8 -8
  178. package/docs/markdown/classes/UserProfileIconComponent.md +11 -11
  179. package/docs/markdown/functions/IsNavigationDividerItem.md +2 -2
  180. package/docs/markdown/functions/IsNavigationInsertItem.md +2 -2
  181. package/docs/markdown/functions/IsNavigationItem.md +2 -2
  182. package/docs/markdown/functions/provideExternalApps.md +2 -2
  183. package/docs/markdown/functions/provideLayout.md +2 -2
  184. package/docs/markdown/functions/withDefaultHeaderComponent.md +2 -2
  185. package/docs/markdown/functions/withDefaultHeaderItems.md +3 -3
  186. package/docs/markdown/functions/withFooterComponents.md +2 -2
  187. package/docs/markdown/functions/withHeaderComponents.md +2 -2
  188. package/docs/markdown/functions/withNavigationConfig.md +3 -3
  189. package/docs/markdown/functions/withNavigationInserts.md +2 -2
  190. package/docs/markdown/functions/withReleaseInfoModules.md +2 -2
  191. package/docs/markdown/functions/withSettingsMenuItems.md +3 -3
  192. package/docs/markdown/functions/withUserProfileDataSource.md +4 -4
  193. package/docs/markdown/globals.md +2 -2
  194. package/docs/markdown/interfaces/NavigationDividerItem.md +5 -5
  195. package/docs/markdown/interfaces/NavigationInsertItem.md +3 -3
  196. package/docs/markdown/interfaces/NavigationItem.md +14 -12
  197. package/docs/markdown/interfaces/NavigationStatus.md +3 -3
  198. package/docs/markdown/interfaces/ReleaseInfoModule.md +6 -6
  199. package/docs/markdown/interfaces/SettingsMenuItem.md +7 -7
  200. package/docs/markdown/type-aliases/DefaultHeaderItemComponent.md +3 -3
  201. package/docs/markdown/type-aliases/ExternalApp.md +3 -3
  202. package/docs/markdown/type-aliases/ExtractUsernameFromProfileFn.md +7 -5
  203. package/docs/markdown/type-aliases/Navigation.md +3 -3
  204. package/docs/markdown/type-aliases/NavigationWithInserts.md +3 -3
  205. package/docs/markdown/type-aliases/SettingsMenuItemComponent.md +3 -3
  206. package/docs/markdown/variables/EXTRACT_USERNAME_FROM_PROFILE.md +2 -2
  207. package/docs/markdown/variables/RXAP_DEFAULT_HEADER_ITEM_COMPONENT.md +3 -3
  208. package/docs/markdown/variables/RXAP_EXTERNAL_APP.md +2 -2
  209. package/docs/markdown/variables/RXAP_EXTERNAL_APP_FILTER.md +2 -2
  210. package/docs/markdown/variables/RXAP_FOOTER_COMPONENT.md +2 -2
  211. package/docs/markdown/variables/RXAP_HEADER_COMPONENT.md +2 -2
  212. package/docs/markdown/variables/RXAP_LAYOUT_APPS_GRID.md +2 -2
  213. package/docs/markdown/variables/RXAP_LOGO_CONFIG.md +2 -2
  214. package/docs/markdown/variables/RXAP_LOGO_CONFIG_DEFAULTS.md +2 -2
  215. package/docs/markdown/variables/RXAP_NAVIGATION_CONFIG.md +3 -3
  216. package/docs/markdown/variables/RXAP_NAVIGATION_CONFIG_INSERTS.md +2 -2
  217. package/docs/markdown/variables/RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS.md +2 -2
  218. package/docs/markdown/variables/RXAP_RELEASE_INFO_MODULE.md +2 -2
  219. package/docs/markdown/variables/RXAP_SETTINGS_MENU_ITEM.md +2 -2
  220. package/docs/markdown/variables/RXAP_SETTINGS_MENU_ITEM_COMPONENT.md +3 -3
  221. package/docs/markdown/variables/RXAP_USER_PROFILE_DATA_SOURCE.md +2 -2
  222. package/docs/wiki/Class.AppsButtonComponent.md +10 -10
  223. package/docs/wiki/Class.BaseLayoutComponent.md +4 -4
  224. package/docs/wiki/Class.DefaultHeaderComponent.md +12 -12
  225. package/docs/wiki/Class.DefaultHeaderService.md +8 -8
  226. package/docs/wiki/Class.ExternalAppsService.md +28 -28
  227. package/docs/wiki/Class.FooterComponent.md +7 -7
  228. package/docs/wiki/Class.FooterDirective.md +6 -6
  229. package/docs/wiki/Class.FooterService.md +8 -8
  230. package/docs/wiki/Class.HeaderComponent.md +8 -8
  231. package/docs/wiki/Class.HeaderDirective.md +6 -6
  232. package/docs/wiki/Class.HeaderService.md +8 -8
  233. package/docs/wiki/Class.LayoutComponent.md +8 -8
  234. package/docs/wiki/Class.LayoutService.md +20 -20
  235. package/docs/wiki/Class.LogoService.md +8 -8
  236. package/docs/wiki/Class.MinimalLayoutComponent.md +4 -4
  237. package/docs/wiki/Class.NavigationComponent.md +18 -18
  238. package/docs/wiki/Class.NavigationItemComponent.md +20 -20
  239. package/docs/wiki/Class.NavigationProgressBarComponent.md +6 -6
  240. package/docs/wiki/Class.NavigationService.md +25 -25
  241. package/docs/wiki/Class.ReleaseInfoComponent.md +8 -8
  242. package/docs/wiki/Class.SettingsButtonComponent.md +23 -23
  243. package/docs/wiki/Class.SidenavComponent.md +23 -23
  244. package/docs/wiki/Class.SidenavFooterDirective.md +5 -5
  245. package/docs/wiki/Class.SidenavHeaderDirective.md +5 -5
  246. package/docs/wiki/Class.SidenavToggleButtonComponent.md +7 -7
  247. package/docs/wiki/Class.UserProfileIconComponent.md +10 -10
  248. package/docs/wiki/Function.IsNavigationDividerItem.md +1 -1
  249. package/docs/wiki/Function.IsNavigationInsertItem.md +1 -1
  250. package/docs/wiki/Function.IsNavigationItem.md +1 -1
  251. package/docs/wiki/Function.provideExternalApps.md +1 -1
  252. package/docs/wiki/Function.provideLayout.md +1 -1
  253. package/docs/wiki/Function.withDefaultHeaderComponent.md +1 -1
  254. package/docs/wiki/Function.withDefaultHeaderItems.md +2 -2
  255. package/docs/wiki/Function.withFooterComponents.md +1 -1
  256. package/docs/wiki/Function.withHeaderComponents.md +1 -1
  257. package/docs/wiki/Function.withNavigationConfig.md +2 -2
  258. package/docs/wiki/Function.withNavigationInserts.md +1 -1
  259. package/docs/wiki/Function.withReleaseInfoModules.md +1 -1
  260. package/docs/wiki/Function.withSettingsMenuItems.md +2 -2
  261. package/docs/wiki/Function.withUserProfileDataSource.md +3 -3
  262. package/docs/wiki/Interface.NavigationDividerItem.md +4 -4
  263. package/docs/wiki/Interface.NavigationInsertItem.md +2 -2
  264. package/docs/wiki/Interface.NavigationItem.md +13 -11
  265. package/docs/wiki/Interface.NavigationStatus.md +2 -2
  266. package/docs/wiki/Interface.ReleaseInfoModule.md +5 -5
  267. package/docs/wiki/Interface.SettingsMenuItem.md +6 -6
  268. package/docs/wiki/TypeAlias.DefaultHeaderItemComponent.md +2 -2
  269. package/docs/wiki/TypeAlias.ExternalApp.md +2 -2
  270. package/docs/wiki/TypeAlias.ExtractUsernameFromProfileFn.md +6 -4
  271. package/docs/wiki/TypeAlias.Navigation.md +2 -2
  272. package/docs/wiki/TypeAlias.NavigationWithInserts.md +2 -2
  273. package/docs/wiki/TypeAlias.SettingsMenuItemComponent.md +2 -2
  274. package/docs/wiki/Variable.EXTRACT_USERNAME_FROM_PROFILE.md +1 -1
  275. package/docs/wiki/Variable.RXAP_DEFAULT_HEADER_ITEM_COMPONENT.md +2 -2
  276. package/docs/wiki/Variable.RXAP_EXTERNAL_APP.md +1 -1
  277. package/docs/wiki/Variable.RXAP_EXTERNAL_APP_FILTER.md +1 -1
  278. package/docs/wiki/Variable.RXAP_FOOTER_COMPONENT.md +1 -1
  279. package/docs/wiki/Variable.RXAP_HEADER_COMPONENT.md +1 -1
  280. package/docs/wiki/Variable.RXAP_LAYOUT_APPS_GRID.md +1 -1
  281. package/docs/wiki/Variable.RXAP_LOGO_CONFIG.md +1 -1
  282. package/docs/wiki/Variable.RXAP_LOGO_CONFIG_DEFAULTS.md +1 -1
  283. package/docs/wiki/Variable.RXAP_NAVIGATION_CONFIG.md +2 -2
  284. package/docs/wiki/Variable.RXAP_NAVIGATION_CONFIG_INSERTS.md +1 -1
  285. package/docs/wiki/Variable.RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS.md +1 -1
  286. package/docs/wiki/Variable.RXAP_RELEASE_INFO_MODULE.md +1 -1
  287. package/docs/wiki/Variable.RXAP_SETTINGS_MENU_ITEM.md +1 -1
  288. package/docs/wiki/Variable.RXAP_SETTINGS_MENU_ITEM_COMPONENT.md +2 -2
  289. package/docs/wiki/Variable.RXAP_USER_PROFILE_DATA_SOURCE.md +1 -1
  290. package/docs/wiki/globals.md +1 -1
  291. package/fesm2022/rxap-layout.mjs +19 -17
  292. package/fesm2022/rxap-layout.mjs.map +1 -1
  293. package/package.json +35 -35
  294. package/src/migrations/18.0.0/add-user-theme-provider-to-layout-providers/add-user-theme-provider-to-layout-providers.spec.ts +9 -0
  295. package/src/migrations/18.0.0/add-with-user-profile-provider/add-with-user-profile-provider.spec.ts +9 -0
  296. package/src/test-setup.ts +4 -17
@@ -19,20 +19,29 @@ customElements.define('compodoc-menu', class extends HTMLElement {
19
19
  </li>
20
20
 
21
21
  <li class="divider"></li>
22
- ${ isNormalMode ? `<div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div>` : '' }
22
+ ${ isNormalMode ? `<div id="book-search-input" role="search">
23
+ <input type="text" placeholder="Type to search">
24
+ <button type="button"
25
+ class="search-input-clear"
26
+ aria-label="Clear search"
27
+ data-search-input-clear>&times;</button>
28
+ </div>
29
+ ` : '' }
23
30
  <li class="chapter">
24
31
  <a data-type="chapter-link" href="index.html"><span class="icon ion-ios-home"></span>Getting started</a>
25
32
  <ul class="links">
26
- <li class="link">
27
- <a href="overview.html" data-type="chapter-link">
28
- <span class="icon ion-ios-keypad"></span>Overview
29
- </a>
30
- </li>
31
- <li class="link">
32
- <a href="index.html" data-type="chapter-link">
33
- <span class="icon ion-ios-paper"></span>README
34
- </a>
35
- </li>
33
+ <li class="link">
34
+ <a href="overview.html" data-type="chapter-link">
35
+ <span class="icon ion-ios-keypad"></span>Overview
36
+ </a>
37
+ </li>
38
+
39
+ <li class="link">
40
+ <a href="index.html" data-type="chapter-link">
41
+ <span class="icon ion-ios-paper"></span>
42
+ README
43
+ </a>
44
+ </li>
36
45
  <li class="link">
37
46
  <a href="changelog.html" data-type="chapter-link">
38
47
  <span class="icon ion-ios-paper"></span>CHANGELOG
@@ -53,6 +62,7 @@ customElements.define('compodoc-menu', class extends HTMLElement {
53
62
  <span class="icon ion-ios-apps"></span>Properties
54
63
  </a>
55
64
  </li>
65
+
56
66
  </ul>
57
67
  </li>
58
68
  <li class="chapter">
@@ -178,7 +188,7 @@ customElements.define('compodoc-menu', class extends HTMLElement {
178
188
  <a href="interfaces/NavigationInsertItem.html" data-type="entity-link" >NavigationInsertItem</a>
179
189
  </li>
180
190
  <li class="link">
181
- <a href="interfaces/NavigationItem.html" data-type="entity-link" >NavigationItem</a>
191
+ <a href="interfaces/NavigationItem.html" data-type="entity-link" >NavigationItem&lt;Children &#x3D; Navigation&gt;</a>
182
192
  </li>
183
193
  <li class="link">
184
194
  <a href="interfaces/NavigationStatus.html" data-type="entity-link" >NavigationStatus</a>
@@ -210,6 +220,9 @@ customElements.define('compodoc-menu', class extends HTMLElement {
210
220
  </li>
211
221
  </ul>
212
222
  </li>
223
+ <li class="chapter">
224
+ <a data-type="chapter-link" href="routes.html"><span class="icon ion-ios-git-branch"></span>Routes</a>
225
+ </li>
213
226
  <li class="divider"></li>
214
227
  <li class="copyright">
215
228
  Documentation generated using <a href="https://compodoc.app/" target="_blank" rel="noopener noreferrer">
@@ -221,4 +234,4 @@ customElements.define('compodoc-menu', class extends HTMLElement {
221
234
  `);
222
235
  this.innerHTML = tp.strings;
223
236
  }
224
- });
237
+ });
@@ -150,17 +150,17 @@ document.addEventListener('DOMContentLoaded', function () {
150
150
  faAngleUpClass = 'ion-ios-arrow-up',
151
151
  faAngleDownClass = 'ion-ios-arrow-down',
152
152
  toggleItemMenu = function (e) {
153
- var element = $(e.target),
154
- parent = element[0].parentNode,
153
+ var element = e.target,
154
+ parent = element.parentNode,
155
155
  parentLink,
156
156
  elementIconChild;
157
157
  if (parent) {
158
- if (!$(parent).hasClass('linked')) {
158
+ if (!parent.classList.contains('linked')) {
159
159
  e.preventDefault();
160
160
  } else {
161
161
  parentLink = parent.parentNode;
162
- if (parentLink && element.hasClass('link-name')) {
163
- $(parentLink).trigger('click');
162
+ if (parentLink && element.classList.contains('link-name')) {
163
+ parentLink.trigger('click');
164
164
  }
165
165
  }
166
166
  elementIconChild = parent.getElementsByClassName(faAngleUpClass)[0];
@@ -168,13 +168,12 @@ document.addEventListener('DOMContentLoaded', function () {
168
168
  elementIconChild = parent.getElementsByClassName(faAngleDownClass)[0];
169
169
  }
170
170
  if (elementIconChild) {
171
- elementIconChild = $(elementIconChild);
172
- if (elementIconChild.hasClass(faAngleUpClass)) {
173
- elementIconChild.addClass(faAngleDownClass);
174
- elementIconChild.removeClass(faAngleUpClass);
171
+ if (elementIconChild.classList.contains(faAngleUpClass)) {
172
+ elementIconChild.classList.add(faAngleDownClass);
173
+ elementIconChild.classList.remove(faAngleUpClass);
175
174
  } else {
176
- elementIconChild.addClass(faAngleUpClass);
177
- elementIconChild.removeClass(faAngleDownClass);
175
+ elementIconChild.classList.add(faAngleUpClass);
176
+ elementIconChild.classList.remove(faAngleDownClass);
178
177
  }
179
178
  }
180
179
  }
@@ -0,0 +1 @@
1
+ var ROUTES_INDEX = {"name":"<root>","kind":"module","children":[]}
@@ -15,6 +15,65 @@ document.addEventListener('DOMContentLoaded', function () {
15
15
  return lazyModuleName;
16
16
  }
17
17
 
18
+ function foundLazyComponentWithPath(path) {
19
+ var split = path.split('#'),
20
+ lazyComponentName = split[1];
21
+ return lazyComponentName;
22
+ }
23
+
24
+ function safeHref(href) {
25
+ return String(href || '').replace(/"/g, '&quot;');
26
+ }
27
+
28
+ function resolveNodeHref(d) {
29
+ if (!d) {
30
+ return '';
31
+ }
32
+
33
+ if (d.href) {
34
+ return d.href;
35
+ }
36
+
37
+ if (d.component && d.component !== 'default') {
38
+ return './components/' + d.component + '.html';
39
+ }
40
+
41
+ if (d.module && d.module !== 'default') {
42
+ return './modules/' + d.module + '.html';
43
+ }
44
+
45
+ if (d.loadComponent) {
46
+ var lazyComponent = foundLazyComponentWithPath(d.loadComponent);
47
+ if (lazyComponent && lazyComponent !== 'default') {
48
+ return './components/' + lazyComponent + '.html';
49
+ }
50
+ }
51
+
52
+ if (d.loadChildren) {
53
+ var lazyModule = foundLazyModuleWithPath(d.loadChildren);
54
+ if (lazyModule && lazyModule !== 'default') {
55
+ return './modules/' + lazyModule + '.html';
56
+ }
57
+ }
58
+
59
+ return '';
60
+ }
61
+
62
+ function wrapLabelWithLink(label, href) {
63
+ if (!href) {
64
+ return label;
65
+ }
66
+ return '<a href="' + safeHref(href) + '" target="_top">' + label + '</a>';
67
+ }
68
+
69
+ function withLeadingSlash(routeValue) {
70
+ var value = String(routeValue || '');
71
+ if (value.length === 0) {
72
+ return '/';
73
+ }
74
+ return value.charAt(0) === '/' ? value : '/' + value;
75
+ }
76
+
18
77
  function getBB(selection) {
19
78
  selection.each(function (d) {
20
79
  d.bbox = this.getBBox();
@@ -26,16 +85,32 @@ document.addEventListener('DOMContentLoaded', function () {
26
85
  var tree = ROUTES_INDEX;
27
86
 
28
87
  function cleanStringChildren(obj) {
88
+ if (!obj || typeof obj !== 'object') {
89
+ return;
90
+ }
29
91
  for (var property in obj) {
30
- if (obj.hasOwnProperty(property)) {
31
- if (property === 'children' && typeof obj[property] === 'object') {
32
- for (var i = obj[property].length - 1; i >= 0; i--) {
33
- if (typeof obj[property][i] === 'string') {
34
- obj[property].splice(i, 1);
92
+ if (Object.prototype.hasOwnProperty.call(obj, property)) {
93
+ if (property === 'children') {
94
+ if (typeof obj[property] === 'string') {
95
+ obj[property] = [];
96
+ continue;
97
+ }
98
+
99
+ if (Array.isArray(obj[property])) {
100
+ for (var i = obj[property].length - 1; i >= 0; i--) {
101
+ if (
102
+ typeof obj[property][i] !== 'object' ||
103
+ obj[property][i] === null
104
+ ) {
105
+ obj[property].splice(i, 1);
106
+ }
35
107
  }
108
+ } else if (obj[property] && typeof obj[property] === 'object') {
109
+ obj[property] = [];
36
110
  }
37
111
  }
38
- if (typeof obj[property] === 'object') {
112
+
113
+ if (obj[property] && typeof obj[property] === 'object') {
39
114
  cleanStringChildren(obj[property]);
40
115
  }
41
116
  }
@@ -84,6 +159,17 @@ document.addEventListener('DOMContentLoaded', function () {
84
159
  dy: 0
85
160
  });
86
161
 
162
+ infos_group
163
+ .style('cursor', function (d) {
164
+ return resolveNodeHref(d) ? 'pointer' : null;
165
+ })
166
+ .on('click', function (d) {
167
+ var href = resolveNodeHref(d);
168
+ if (href) {
169
+ window.location.href = href;
170
+ }
171
+ });
172
+
87
173
  //Node icon
88
174
  infos_group
89
175
  .append('text')
@@ -118,49 +204,66 @@ document.addEventListener('DOMContentLoaded', function () {
118
204
  // if kind === module name + module
119
205
  // if kind === component component + path
120
206
  var _name = '';
207
+ var nodeHref = resolveNodeHref(d);
121
208
  if (d.kind === 'module') {
122
209
  if (d.module) {
123
210
  _name +=
124
- '<tspan x="0" dy="1.4em"><a href="./modules/' +
125
- d.module +
126
- '.html">' +
127
- d.module +
128
- '</a></tspan>';
211
+ '<tspan x="0" dy="1.4em">' +
212
+ wrapLabelWithLink(d.module, nodeHref || './modules/' + d.module + '.html') +
213
+ '</tspan>';
129
214
  if (d.name) {
130
215
  _name += '<tspan x="0" dy="1.4em">' + d.name + '</tspan>';
131
216
  }
132
217
  } else {
133
- _name += '<tspan x="0" dy="1.4em">' + htmlEntities(d.name) + '</tspan>';
218
+ _name +=
219
+ '<tspan x="0" dy="1.4em">' +
220
+ wrapLabelWithLink(htmlEntities(d.name), nodeHref) +
221
+ '</tspan>';
134
222
  }
135
223
  } else if (d.kind === 'component') {
136
- _name += '<tspan x="0" dy="1.4em">' + d.path + '</tspan>';
137
224
  _name +=
138
- '<tspan x="0" dy="1.4em"><a href="./components/' +
139
- d.component +
140
- '.html">' +
141
- d.component +
142
- '</a></tspan>';
225
+ '<tspan x="0" dy="1.4em">' +
226
+ wrapLabelWithLink(d.path || d.name, nodeHref) +
227
+ '</tspan>';
228
+ if (d.component) {
229
+ _name +=
230
+ '<tspan x="0" dy="1.4em">' +
231
+ wrapLabelWithLink(d.component, nodeHref) +
232
+ '</tspan>';
233
+ } else if (d.name && d.name.includes('Component')) {
234
+ _name += '<tspan x="0" dy="1.4em">' + wrapLabelWithLink(d.name, nodeHref) + '</tspan>';
235
+ }
143
236
  if (d.outlet) {
144
237
  _name += '<tspan x="0" dy="1.4em">&lt;outlet&gt; : ' + d.outlet + '</tspan>';
145
238
  }
146
239
  } else {
147
- _name += '<tspan x="0" dy="1.4em">/' + d.path + '</tspan>';
240
+ if (d.kind === 'route-redirect') {
241
+ var fromPath = d.path === '' ? "''" : withLeadingSlash(d.path || '');
242
+ var redirectTo = withLeadingSlash(d.redirectTo || d.name);
243
+ _name += '<tspan x="0" dy="1.4em">' + fromPath + ' &rarr; ' + redirectTo + '</tspan>';
244
+ if (d.pathMatch) {
245
+ _name += '<tspan x="0" dy="1.4em">pathMatch: ' + d.pathMatch + '</tspan>';
246
+ }
247
+ } else {
248
+ _name +=
249
+ '<tspan x="0" dy="1.4em">' +
250
+ wrapLabelWithLink(withLeadingSlash(d.path || d.name), nodeHref) +
251
+ '</tspan>';
252
+ }
148
253
  if (d.component) {
149
254
  _name +=
150
- '<tspan x="0" dy="1.4em"><a href="./components/' +
151
- d.component +
152
- '.html">' +
153
- d.component +
154
- '</a></tspan>';
255
+ '<tspan x="0" dy="1.4em">' +
256
+ wrapLabelWithLink(d.component, nodeHref) +
257
+ '</tspan>';
155
258
  }
156
259
  if (d.loadChildren) {
157
260
  var moduleName = foundLazyModuleWithPath(d.loadChildren);
158
- _name +=
159
- '<tspan x="0" dy="1.4em"><a href="./modules/' +
160
- moduleName +
161
- '.html">' +
162
- moduleName +
163
- '</a></tspan>';
261
+ if (moduleName && moduleName !== 'default') {
262
+ _name +=
263
+ '<tspan x="0" dy="1.4em">' +
264
+ wrapLabelWithLink(moduleName, './modules/' + moduleName + '.html') +
265
+ '</tspan>';
266
+ }
164
267
  }
165
268
  if (d.canActivate) {
166
269
  _name += '<tspan x="0" dy="1.4em">&#10003; canActivate</tspan>';
@@ -174,10 +277,10 @@ document.addEventListener('DOMContentLoaded', function () {
174
277
  if (d.canLoad) {
175
278
  _name += '<tspan x="0" dy="1.4em">&#8594; canLoad</tspan>';
176
279
  }
177
- if (d.redirectTo) {
280
+ if (d.kind !== 'route-redirect' && d.redirectTo) {
178
281
  _name += '<tspan x="0" dy="1.4em">&rarr; ' + d.redirectTo + '</tspan>';
179
282
  }
180
- if (d.pathMatch) {
283
+ if (d.kind !== 'route-redirect' && d.pathMatch) {
181
284
  _name += '<tspan x="0" dy="1.4em">&gt; ' + d.pathMatch + '</tspan>';
182
285
  }
183
286
  if (d.outlet) {
@@ -259,11 +362,16 @@ document.addEventListener('DOMContentLoaded', function () {
259
362
 
260
363
  var area_ave = area_sum / nodes.length;
261
364
  var scale = 80 / Math.sqrt(area_ave);
365
+ var depthHorizontalSpacing = 40;
262
366
 
263
367
  function svg_x(node_y) {
264
368
  return node_y - ymin;
265
369
  }
266
370
 
371
+ function projected_x(node) {
372
+ return svg_x(node.y) + (node.depth || 0) * depthHorizontalSpacing;
373
+ }
374
+
267
375
  function svg_y(node_x) {
268
376
  return (node_x - xmin) * scale;
269
377
  }
@@ -272,11 +380,11 @@ document.addEventListener('DOMContentLoaded', function () {
272
380
  var nodebox_vertical_margin = Math.min(y_size_min * scale, 3);
273
381
 
274
382
  node.attr('transform', function (d) {
275
- return 'translate(' + svg_x(d.y) + ',' + svg_y(d.x) + ')';
383
+ return 'translate(' + projected_x(d) + ',' + svg_y(d.x) + ')';
276
384
  });
277
385
 
278
386
  var diagonal = d3.svg.diagonal().projection(function (d) {
279
- return [svg_x(d.y), svg_y(d.x)];
387
+ return [projected_x(d), svg_y(d.x)];
280
388
  });
281
389
 
282
390
  var links = engine.links(nodes);
@@ -1,12 +1,11 @@
1
- (function(compodoc) {
2
-
1
+ (function (compodoc) {
3
2
  function LunrSearchEngine() {
4
3
  this.index = undefined;
5
4
  this.store = {};
6
5
  this.name = 'LunrSearchEngine';
7
6
  }
8
7
 
9
- LunrSearchEngine.prototype.init = function() {
8
+ LunrSearchEngine.prototype.init = function () {
10
9
  var that = this,
11
10
  d = new promise.Promise();
12
11
 
@@ -17,13 +16,13 @@
17
16
  return d;
18
17
  };
19
18
 
20
- LunrSearchEngine.prototype.search = function(q, offset, length) {
19
+ LunrSearchEngine.prototype.search = function (q, offset, length) {
21
20
  var that = this,
22
21
  results = [],
23
22
  d = new promise.Promise();
24
23
 
25
24
  if (this.index) {
26
- results = $.map(this.index.search('*' + q + '*'), function(result) {
25
+ results = this.index.search('*' + q + '*').map(function (result) {
27
26
  var doc = that.store[result.ref];
28
27
 
29
28
  return {
@@ -43,7 +42,7 @@
43
42
  return d;
44
43
  };
45
44
 
46
- compodoc.addEventListener(compodoc.EVENTS.READY, function(event) {
45
+ compodoc.addEventListener(compodoc.EVENTS.READY, function (event) {
47
46
  var engine = new LunrSearchEngine(),
48
47
  initialized = false;
49
48
 
@@ -56,8 +55,7 @@
56
55
  query: query
57
56
  };
58
57
 
59
- engine.init()
60
- .then(function() {
58
+ engine.init().then(function () {
61
59
  initialized = true;
62
60
  compodoc.dispatchEvent({
63
61
  type: compodoc.EVENTS.SEARCH_READY