@rxap/layout 22.0.0-dev.0 → 22.0.0-dev.2

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 (322) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/README.md +5 -3
  3. package/compodoc/{directives/FooterDirective-1.html → architecture.html} +68 -139
  4. package/compodoc/changelog.html +98 -5
  5. package/compodoc/components/AppsButtonComponent.html +174 -40
  6. package/compodoc/components/BaseLayoutComponent.html +115 -23
  7. package/compodoc/components/DefaultHeaderComponent.html +205 -36
  8. package/compodoc/components/FooterComponent.html +142 -27
  9. package/compodoc/components/HeaderComponent.html +165 -61
  10. package/compodoc/components/LayoutComponent.html +194 -44
  11. package/compodoc/components/MinimalLayoutComponent.html +120 -26
  12. package/compodoc/components/NavigationComponent.html +220 -133
  13. package/compodoc/components/NavigationItemComponent.html +248 -115
  14. package/compodoc/components/NavigationProgressBarComponent.html +121 -25
  15. package/compodoc/components/ReleaseInfoComponent.html +149 -32
  16. package/compodoc/components/SettingsButtonComponent.html +220 -62
  17. package/compodoc/components/SidenavComponent.html +222 -56
  18. package/compodoc/components/SidenavToggleButtonComponent.html +117 -27
  19. package/compodoc/components/UserProfileIconComponent.html +155 -66
  20. package/compodoc/dependencies.html +152 -49
  21. package/compodoc/directives/FooterDirective.html +74 -20
  22. package/compodoc/directives/HeaderDirective.html +74 -20
  23. package/compodoc/directives/SidenavFooterDirective.html +91 -19
  24. package/compodoc/directives/SidenavHeaderDirective.html +72 -19
  25. package/compodoc/index.html +50 -8
  26. package/compodoc/injectables/DefaultHeaderService.html +91 -25
  27. package/compodoc/injectables/ExternalAppsService.html +123 -21
  28. package/compodoc/injectables/FooterService.html +91 -25
  29. package/compodoc/injectables/HeaderService.html +91 -25
  30. package/compodoc/injectables/LayoutService.html +91 -21
  31. package/compodoc/injectables/LogoService.html +103 -17
  32. package/compodoc/injectables/NavigationService.html +84 -24
  33. package/compodoc/interfaces/NavigationDividerItem.html +155 -100
  34. package/compodoc/interfaces/NavigationInsertItem.html +114 -64
  35. package/compodoc/interfaces/NavigationItem.html +305 -216
  36. package/compodoc/interfaces/NavigationStatus.html +80 -35
  37. package/compodoc/interfaces/ReleaseInfoModule.html +197 -137
  38. package/compodoc/interfaces/SettingsMenuItem.html +197 -137
  39. package/compodoc/js/architecture-graph.js +288 -0
  40. package/compodoc/js/libs/bootstrap-native.js +4 -2
  41. package/compodoc/js/libs/jszip.min.js +13 -0
  42. package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
  43. package/compodoc/js/libs/tablesort.min.js +3 -3
  44. package/compodoc/js/libs/tablesort.number.min.js +3 -3
  45. package/compodoc/js/libs/vis-network.min.js +78 -0
  46. package/compodoc/js/menu-wc.js +26 -13
  47. package/compodoc/js/menu.js +10 -11
  48. package/compodoc/js/routes/routes_index.js +1 -0
  49. package/compodoc/js/routes.js +142 -34
  50. package/compodoc/js/search/search-lunr.js +6 -8
  51. package/compodoc/js/search/search.js +118 -66
  52. package/compodoc/js/search/search_index.js +2 -2
  53. package/compodoc/js/tabs.js +98 -15
  54. package/compodoc/js/tree.js +44 -7
  55. package/compodoc/license.html +48 -6
  56. package/compodoc/llms.txt +525 -0
  57. package/compodoc/miscellaneous/functions.html +171 -41
  58. package/compodoc/miscellaneous/typealiases.html +55 -12
  59. package/compodoc/miscellaneous/variables.html +163 -20
  60. package/compodoc/modules.html +44 -3
  61. package/compodoc/overview.html +54 -3
  62. package/compodoc/properties.html +45 -4
  63. package/compodoc/routes.html +227 -0
  64. package/compodoc/styles/compodoc.css +365 -44
  65. package/compodoc/styles/dark.css +16 -0
  66. package/compodoc/template-playground/default-templates.json +192 -0
  67. package/compodoc/template-playground/hbs-render.service.ts +217 -0
  68. package/compodoc/template-playground/main.ts +9 -0
  69. package/compodoc/template-playground/template-editor.service.ts +173 -0
  70. package/compodoc/template-playground/template-playground.component.ts +614 -0
  71. package/compodoc/template-playground/template-playground.module.ts +29 -0
  72. package/compodoc/template-playground/zip-export.service.ts +86 -0
  73. package/compodoc/template-playground-app/app.js +1389 -0
  74. package/compodoc/template-playground-app/index.html +462 -0
  75. package/docs/documentation.json +1700 -1219
  76. package/docs/html/assets/highlight.css +1 -1
  77. package/docs/html/assets/icons.js +1 -1
  78. package/docs/html/assets/icons.svg +1 -1
  79. package/docs/html/assets/main.js +5 -5
  80. package/docs/html/assets/search.js +1 -1
  81. package/docs/html/assets/style.css +265 -228
  82. package/docs/html/classes/AppsButtonComponent.html +110 -8
  83. package/docs/html/classes/BaseLayoutComponent.html +56 -2
  84. package/docs/html/classes/DefaultHeaderComponent.html +112 -10
  85. package/docs/html/classes/DefaultHeaderService.html +128 -13
  86. package/docs/html/classes/ExternalAppsService.html +240 -19
  87. package/docs/html/classes/FooterComponent.html +82 -5
  88. package/docs/html/classes/FooterDirective.html +95 -6
  89. package/docs/html/classes/FooterService.html +128 -13
  90. package/docs/html/classes/HeaderComponent.html +88 -6
  91. package/docs/html/classes/HeaderDirective.html +95 -6
  92. package/docs/html/classes/HeaderService.html +128 -13
  93. package/docs/html/classes/LayoutComponent.html +88 -6
  94. package/docs/html/classes/LayoutService.html +174 -16
  95. package/docs/html/classes/LogoService.html +88 -6
  96. package/docs/html/classes/MinimalLayoutComponent.html +56 -2
  97. package/docs/html/classes/NavigationComponent.html +156 -12
  98. package/docs/html/classes/NavigationItemComponent.html +172 -14
  99. package/docs/html/classes/NavigationProgressBarComponent.html +76 -4
  100. package/docs/html/classes/NavigationService.html +197 -12
  101. package/docs/html/classes/ReleaseInfoComponent.html +100 -6
  102. package/docs/html/classes/SettingsButtonComponent.html +242 -19
  103. package/docs/html/classes/SidenavComponent.html +190 -19
  104. package/docs/html/classes/SidenavFooterDirective.html +70 -3
  105. package/docs/html/classes/SidenavHeaderDirective.html +70 -3
  106. package/docs/html/classes/SidenavToggleButtonComponent.html +94 -5
  107. package/docs/html/classes/UserProfileIconComponent.html +106 -7
  108. package/docs/html/functions/IsNavigationDividerItem.html +42 -1
  109. package/docs/html/functions/IsNavigationInsertItem.html +42 -1
  110. package/docs/html/functions/IsNavigationItem.html +42 -1
  111. package/docs/html/functions/provideExternalApps.html +42 -1
  112. package/docs/html/functions/provideLayout.html +42 -1
  113. package/docs/html/functions/withDefaultHeaderComponent.html +38 -1
  114. package/docs/html/functions/withDefaultHeaderItems.html +42 -1
  115. package/docs/html/functions/withFooterComponents.html +42 -1
  116. package/docs/html/functions/withHeaderComponents.html +42 -1
  117. package/docs/html/functions/withNavigationConfig.html +42 -1
  118. package/docs/html/functions/withNavigationInserts.html +42 -1
  119. package/docs/html/functions/withReleaseInfoModules.html +42 -1
  120. package/docs/html/functions/withSettingsMenuItems.html +42 -1
  121. package/docs/html/functions/withUserProfileDataSource.html +43 -1
  122. package/docs/html/hierarchy.html +29 -0
  123. package/docs/html/index.html +96 -21
  124. package/docs/html/interfaces/NavigationDividerItem.html +61 -3
  125. package/docs/html/interfaces/NavigationInsertItem.html +55 -2
  126. package/docs/html/interfaces/NavigationItem.html +94 -6
  127. package/docs/html/interfaces/NavigationStatus.html +63 -2
  128. package/docs/html/interfaces/ReleaseInfoModule.html +67 -4
  129. package/docs/html/interfaces/SettingsMenuItem.html +67 -4
  130. package/docs/html/modules.html +52 -1
  131. package/docs/html/types/DefaultHeaderItemComponent.html +33 -1
  132. package/docs/html/types/ExternalApp.html +33 -1
  133. package/docs/html/types/ExtractUsernameFromProfileFn.html +49 -1
  134. package/docs/html/types/Navigation.html +33 -1
  135. package/docs/html/types/NavigationWithInserts.html +33 -1
  136. package/docs/html/types/SettingsMenuItemComponent.html +33 -1
  137. package/docs/html/variables/EXTRACT_USERNAME_FROM_PROFILE.html +33 -1
  138. package/docs/html/variables/RXAP_DEFAULT_HEADER_ITEM_COMPONENT.html +33 -1
  139. package/docs/html/variables/RXAP_EXTERNAL_APP.html +33 -1
  140. package/docs/html/variables/RXAP_EXTERNAL_APP_FILTER.html +33 -1
  141. package/docs/html/variables/RXAP_FOOTER_COMPONENT.html +33 -1
  142. package/docs/html/variables/RXAP_HEADER_COMPONENT.html +33 -1
  143. package/docs/html/variables/RXAP_LAYOUT_APPS_GRID.html +33 -1
  144. package/docs/html/variables/RXAP_LOGO_CONFIG.html +33 -1
  145. package/docs/html/variables/RXAP_LOGO_CONFIG_DEFAULTS.html +33 -1
  146. package/docs/html/variables/RXAP_NAVIGATION_CONFIG.html +33 -1
  147. package/docs/html/variables/RXAP_NAVIGATION_CONFIG_INSERTS.html +33 -1
  148. package/docs/html/variables/RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS.html +33 -1
  149. package/docs/html/variables/RXAP_RELEASE_INFO_MODULE.html +33 -1
  150. package/docs/html/variables/RXAP_SETTINGS_MENU_ITEM.html +33 -1
  151. package/docs/html/variables/RXAP_SETTINGS_MENU_ITEM_COMPONENT.html +33 -1
  152. package/docs/html/variables/RXAP_USER_PROFILE_DATA_SOURCE.html +33 -1
  153. package/docs/markdown/README.md +6 -4
  154. package/docs/markdown/classes/AppsButtonComponent.md +11 -11
  155. package/docs/markdown/classes/BaseLayoutComponent.md +5 -5
  156. package/docs/markdown/classes/DefaultHeaderComponent.md +13 -13
  157. package/docs/markdown/classes/DefaultHeaderService.md +9 -9
  158. package/docs/markdown/classes/ExternalAppsService.md +29 -29
  159. package/docs/markdown/classes/FooterComponent.md +8 -8
  160. package/docs/markdown/classes/FooterDirective.md +7 -7
  161. package/docs/markdown/classes/FooterService.md +9 -9
  162. package/docs/markdown/classes/HeaderComponent.md +9 -9
  163. package/docs/markdown/classes/HeaderDirective.md +7 -7
  164. package/docs/markdown/classes/HeaderService.md +9 -9
  165. package/docs/markdown/classes/LayoutComponent.md +9 -9
  166. package/docs/markdown/classes/LayoutService.md +21 -21
  167. package/docs/markdown/classes/LogoService.md +9 -9
  168. package/docs/markdown/classes/MinimalLayoutComponent.md +5 -5
  169. package/docs/markdown/classes/NavigationComponent.md +19 -19
  170. package/docs/markdown/classes/NavigationItemComponent.md +21 -21
  171. package/docs/markdown/classes/NavigationProgressBarComponent.md +7 -7
  172. package/docs/markdown/classes/NavigationService.md +26 -26
  173. package/docs/markdown/classes/ReleaseInfoComponent.md +9 -9
  174. package/docs/markdown/classes/SettingsButtonComponent.md +24 -24
  175. package/docs/markdown/classes/SidenavComponent.md +24 -24
  176. package/docs/markdown/classes/SidenavFooterDirective.md +6 -6
  177. package/docs/markdown/classes/SidenavHeaderDirective.md +6 -6
  178. package/docs/markdown/classes/SidenavToggleButtonComponent.md +8 -8
  179. package/docs/markdown/classes/UserProfileIconComponent.md +11 -11
  180. package/docs/markdown/functions/IsNavigationDividerItem.md +2 -2
  181. package/docs/markdown/functions/IsNavigationInsertItem.md +2 -2
  182. package/docs/markdown/functions/IsNavigationItem.md +2 -2
  183. package/docs/markdown/functions/provideExternalApps.md +2 -2
  184. package/docs/markdown/functions/provideLayout.md +2 -2
  185. package/docs/markdown/functions/withDefaultHeaderComponent.md +2 -2
  186. package/docs/markdown/functions/withDefaultHeaderItems.md +3 -3
  187. package/docs/markdown/functions/withFooterComponents.md +2 -2
  188. package/docs/markdown/functions/withHeaderComponents.md +2 -2
  189. package/docs/markdown/functions/withNavigationConfig.md +3 -3
  190. package/docs/markdown/functions/withNavigationInserts.md +2 -2
  191. package/docs/markdown/functions/withReleaseInfoModules.md +2 -2
  192. package/docs/markdown/functions/withSettingsMenuItems.md +3 -3
  193. package/docs/markdown/functions/withUserProfileDataSource.md +4 -4
  194. package/docs/markdown/globals.md +2 -2
  195. package/docs/markdown/interfaces/NavigationDividerItem.md +5 -5
  196. package/docs/markdown/interfaces/NavigationInsertItem.md +3 -3
  197. package/docs/markdown/interfaces/NavigationItem.md +14 -12
  198. package/docs/markdown/interfaces/NavigationStatus.md +3 -3
  199. package/docs/markdown/interfaces/ReleaseInfoModule.md +6 -6
  200. package/docs/markdown/interfaces/SettingsMenuItem.md +7 -7
  201. package/docs/markdown/type-aliases/DefaultHeaderItemComponent.md +3 -3
  202. package/docs/markdown/type-aliases/ExternalApp.md +3 -3
  203. package/docs/markdown/type-aliases/ExtractUsernameFromProfileFn.md +7 -5
  204. package/docs/markdown/type-aliases/Navigation.md +3 -3
  205. package/docs/markdown/type-aliases/NavigationWithInserts.md +3 -3
  206. package/docs/markdown/type-aliases/SettingsMenuItemComponent.md +3 -3
  207. package/docs/markdown/variables/EXTRACT_USERNAME_FROM_PROFILE.md +2 -2
  208. package/docs/markdown/variables/RXAP_DEFAULT_HEADER_ITEM_COMPONENT.md +3 -3
  209. package/docs/markdown/variables/RXAP_EXTERNAL_APP.md +2 -2
  210. package/docs/markdown/variables/RXAP_EXTERNAL_APP_FILTER.md +2 -2
  211. package/docs/markdown/variables/RXAP_FOOTER_COMPONENT.md +2 -2
  212. package/docs/markdown/variables/RXAP_HEADER_COMPONENT.md +2 -2
  213. package/docs/markdown/variables/RXAP_LAYOUT_APPS_GRID.md +2 -2
  214. package/docs/markdown/variables/RXAP_LOGO_CONFIG.md +2 -2
  215. package/docs/markdown/variables/RXAP_LOGO_CONFIG_DEFAULTS.md +2 -2
  216. package/docs/markdown/variables/RXAP_NAVIGATION_CONFIG.md +3 -3
  217. package/docs/markdown/variables/RXAP_NAVIGATION_CONFIG_INSERTS.md +2 -2
  218. package/docs/markdown/variables/RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS.md +2 -2
  219. package/docs/markdown/variables/RXAP_RELEASE_INFO_MODULE.md +2 -2
  220. package/docs/markdown/variables/RXAP_SETTINGS_MENU_ITEM.md +2 -2
  221. package/docs/markdown/variables/RXAP_SETTINGS_MENU_ITEM_COMPONENT.md +3 -3
  222. package/docs/markdown/variables/RXAP_USER_PROFILE_DATA_SOURCE.md +2 -2
  223. package/docs/wiki/Class.AppsButtonComponent.md +10 -10
  224. package/docs/wiki/Class.BaseLayoutComponent.md +4 -4
  225. package/docs/wiki/Class.DefaultHeaderComponent.md +12 -12
  226. package/docs/wiki/Class.DefaultHeaderService.md +8 -8
  227. package/docs/wiki/Class.ExternalAppsService.md +28 -28
  228. package/docs/wiki/Class.FooterComponent.md +7 -7
  229. package/docs/wiki/Class.FooterDirective.md +6 -6
  230. package/docs/wiki/Class.FooterService.md +8 -8
  231. package/docs/wiki/Class.HeaderComponent.md +8 -8
  232. package/docs/wiki/Class.HeaderDirective.md +6 -6
  233. package/docs/wiki/Class.HeaderService.md +8 -8
  234. package/docs/wiki/Class.LayoutComponent.md +8 -8
  235. package/docs/wiki/Class.LayoutService.md +20 -20
  236. package/docs/wiki/Class.LogoService.md +8 -8
  237. package/docs/wiki/Class.MinimalLayoutComponent.md +4 -4
  238. package/docs/wiki/Class.NavigationComponent.md +18 -18
  239. package/docs/wiki/Class.NavigationItemComponent.md +20 -20
  240. package/docs/wiki/Class.NavigationProgressBarComponent.md +6 -6
  241. package/docs/wiki/Class.NavigationService.md +25 -25
  242. package/docs/wiki/Class.ReleaseInfoComponent.md +8 -8
  243. package/docs/wiki/Class.SettingsButtonComponent.md +23 -23
  244. package/docs/wiki/Class.SidenavComponent.md +23 -23
  245. package/docs/wiki/Class.SidenavFooterDirective.md +5 -5
  246. package/docs/wiki/Class.SidenavHeaderDirective.md +5 -5
  247. package/docs/wiki/Class.SidenavToggleButtonComponent.md +7 -7
  248. package/docs/wiki/Class.UserProfileIconComponent.md +10 -10
  249. package/docs/wiki/Function.IsNavigationDividerItem.md +1 -1
  250. package/docs/wiki/Function.IsNavigationInsertItem.md +1 -1
  251. package/docs/wiki/Function.IsNavigationItem.md +1 -1
  252. package/docs/wiki/Function.provideExternalApps.md +1 -1
  253. package/docs/wiki/Function.provideLayout.md +1 -1
  254. package/docs/wiki/Function.withDefaultHeaderComponent.md +1 -1
  255. package/docs/wiki/Function.withDefaultHeaderItems.md +2 -2
  256. package/docs/wiki/Function.withFooterComponents.md +1 -1
  257. package/docs/wiki/Function.withHeaderComponents.md +1 -1
  258. package/docs/wiki/Function.withNavigationConfig.md +2 -2
  259. package/docs/wiki/Function.withNavigationInserts.md +1 -1
  260. package/docs/wiki/Function.withReleaseInfoModules.md +1 -1
  261. package/docs/wiki/Function.withSettingsMenuItems.md +2 -2
  262. package/docs/wiki/Function.withUserProfileDataSource.md +3 -3
  263. package/docs/wiki/Home.md +5 -3
  264. package/docs/wiki/Interface.NavigationDividerItem.md +4 -4
  265. package/docs/wiki/Interface.NavigationInsertItem.md +2 -2
  266. package/docs/wiki/Interface.NavigationItem.md +13 -11
  267. package/docs/wiki/Interface.NavigationStatus.md +2 -2
  268. package/docs/wiki/Interface.ReleaseInfoModule.md +5 -5
  269. package/docs/wiki/Interface.SettingsMenuItem.md +6 -6
  270. package/docs/wiki/TypeAlias.DefaultHeaderItemComponent.md +2 -2
  271. package/docs/wiki/TypeAlias.ExternalApp.md +2 -2
  272. package/docs/wiki/TypeAlias.ExtractUsernameFromProfileFn.md +6 -4
  273. package/docs/wiki/TypeAlias.Navigation.md +2 -2
  274. package/docs/wiki/TypeAlias.NavigationWithInserts.md +2 -2
  275. package/docs/wiki/TypeAlias.SettingsMenuItemComponent.md +2 -2
  276. package/docs/wiki/Variable.EXTRACT_USERNAME_FROM_PROFILE.md +1 -1
  277. package/docs/wiki/Variable.RXAP_DEFAULT_HEADER_ITEM_COMPONENT.md +2 -2
  278. package/docs/wiki/Variable.RXAP_EXTERNAL_APP.md +1 -1
  279. package/docs/wiki/Variable.RXAP_EXTERNAL_APP_FILTER.md +1 -1
  280. package/docs/wiki/Variable.RXAP_FOOTER_COMPONENT.md +1 -1
  281. package/docs/wiki/Variable.RXAP_HEADER_COMPONENT.md +1 -1
  282. package/docs/wiki/Variable.RXAP_LAYOUT_APPS_GRID.md +1 -1
  283. package/docs/wiki/Variable.RXAP_LOGO_CONFIG.md +1 -1
  284. package/docs/wiki/Variable.RXAP_LOGO_CONFIG_DEFAULTS.md +1 -1
  285. package/docs/wiki/Variable.RXAP_NAVIGATION_CONFIG.md +2 -2
  286. package/docs/wiki/Variable.RXAP_NAVIGATION_CONFIG_INSERTS.md +1 -1
  287. package/docs/wiki/Variable.RXAP_NAVIGATION_LAYOUT_CONFIG_DEFAULTS.md +1 -1
  288. package/docs/wiki/Variable.RXAP_RELEASE_INFO_MODULE.md +1 -1
  289. package/docs/wiki/Variable.RXAP_SETTINGS_MENU_ITEM.md +1 -1
  290. package/docs/wiki/Variable.RXAP_SETTINGS_MENU_ITEM_COMPONENT.md +2 -2
  291. package/docs/wiki/Variable.RXAP_USER_PROFILE_DATA_SOURCE.md +1 -1
  292. package/docs/wiki/globals.md +1 -1
  293. package/fesm2022/rxap-layout.mjs +19 -17
  294. package/fesm2022/rxap-layout.mjs.map +1 -1
  295. package/package.json +38 -40
  296. package/src/generators/init/generator.js +120 -0
  297. package/src/generators/init/index.js +6 -0
  298. package/src/generators/package.json +3 -0
  299. package/src/migrations/18.0.0/add-user-theme-provider-to-layout-providers/add-user-theme-provider-to-layout-providers.spec.ts +9 -0
  300. package/src/migrations/18.0.0/add-with-user-profile-provider/add-with-user-profile-provider.spec.ts +9 -0
  301. package/src/test-setup.ts +4 -17
  302. package/compodoc/components/LanguageSelectorComponent.html +0 -478
  303. package/compodoc/components/ResetButtonComponent.html +0 -486
  304. package/compodoc/components/SignOutComponent.html +0 -440
  305. package/compodoc/components/ToggleWindowSidenavButtonComponent.html +0 -549
  306. package/compodoc/components/VersionComponent.html +0 -524
  307. package/compodoc/components/WindowContainerSidenavComponent.html +0 -687
  308. package/compodoc/injectables/AppUrlService.html +0 -829
  309. package/compodoc/injectables/AuthenticationServiceMock.html +0 -303
  310. package/compodoc/injectables/LayoutComponentService.html +0 -848
  311. package/compodoc/injectables/ReplaceRouterPathsService.html +0 -337
  312. package/compodoc/injectables/SidenavComponentService.html +0 -408
  313. package/compodoc/interfaces/ExternalApps.html +0 -634
  314. package/compodoc/interfaces/LogoConfig.html +0 -381
  315. package/compodoc/js/libs/vis.min.js +0 -47
  316. package/compodoc/js/menu-wc_es5.js +0 -40
  317. package/compodoc/pipes/ReplaceRouterPathsPipe.html +0 -363
  318. package/src/generators/init/generator.spec.ts +0 -228
  319. package/src/generators/init/generator.ts +0 -139
  320. package/src/generators/init/index.ts +0 -5
  321. package/src/generators/init/schema.d.ts +0 -2
  322. package/theme.css +0 -425
@@ -0,0 +1,86 @@
1
+ import { Injectable } from '@angular/core';
2
+
3
+ declare const JSZip: any;
4
+
5
+ @Injectable({
6
+ providedIn: 'root'
7
+ })
8
+ export class ZipExportService {
9
+
10
+ exportTemplates(files: any[]) {
11
+ const zip = new JSZip();
12
+
13
+ // Add all template files to the ZIP
14
+ files.forEach(file => {
15
+ zip.file(file.path, file.content);
16
+ });
17
+
18
+ // Add a README with instructions
19
+ const readme = this.generateReadme();
20
+ zip.file('README.md', readme);
21
+
22
+ // Generate and download the ZIP file
23
+ zip.generateAsync({ type: 'blob' })
24
+ .then((content: Blob) => {
25
+ this.downloadBlob(content, 'compodoc-templates.zip');
26
+ });
27
+ }
28
+
29
+ private generateReadme(): string {
30
+ return `# Compodoc Custom Templates
31
+
32
+ This ZIP file contains customized templates for Compodoc documentation generation.
33
+
34
+ ## Contents
35
+
36
+ - **Templates** (\`.hbs\` files): Handlebars templates for generating documentation pages
37
+ - **Styles** (\`.css\` files): Stylesheets for customizing the appearance
38
+ - **Scripts** (\`.js\` files): JavaScript files for additional functionality
39
+
40
+ ## Usage
41
+
42
+ 1. Extract this ZIP file to a directory on your system
43
+ 2. Use the \`--templates\` flag when running Compodoc to specify the path to your custom templates:
44
+
45
+ \`\`\`bash
46
+ compodoc -p tsconfig.json --templates ./path/to/custom/templates/
47
+ \`\`\`
48
+
49
+ ## Template Structure
50
+
51
+ - \`page.hbs\` - Main page template
52
+ - \`partials/\` - Directory containing partial templates
53
+ - \`styles/\` - Directory containing CSS files
54
+ - \`js/\` - Directory containing JavaScript files
55
+
56
+ ## Customization Tips
57
+
58
+ 1. **Templates**: Use Handlebars syntax to customize the HTML structure
59
+ 2. **Styles**: Modify CSS to change colors, fonts, layout, etc.
60
+ 3. **Scripts**: Add custom JavaScript functionality
61
+
62
+ ## Backup
63
+
64
+ Always keep a backup of your original templates before making changes.
65
+
66
+ ## Documentation
67
+
68
+ For more information about customizing Compodoc templates, visit:
69
+ https://compodoc.app/guides/template-customization.html
70
+
71
+ Generated by Compodoc Template Playground
72
+ `;
73
+ }
74
+
75
+ private downloadBlob(blob: Blob, filename: string) {
76
+ const url = window.URL.createObjectURL(blob);
77
+ const a = document.createElement('a');
78
+ a.href = url;
79
+ a.download = filename;
80
+ a.style.display = 'none';
81
+ document.body.appendChild(a);
82
+ a.click();
83
+ document.body.removeChild(a);
84
+ window.URL.revokeObjectURL(url);
85
+ }
86
+ }