@ng-doc/app 16.2.1 → 16.3.0-beta.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 (284) hide show
  1. package/classes/root-page/root-page.d.ts +2 -3
  2. package/components/api-list/api-list.component.d.ts +1 -1
  3. package/components/api-list/api-list.module.d.ts +6 -7
  4. package/components/breadcrumb/breadcrumb.component.d.ts +1 -1
  5. package/components/breadcrumb/index.d.ts +1 -2
  6. package/components/code/code.component.d.ts +1 -1
  7. package/components/code/index.d.ts +0 -1
  8. package/components/demo/demo.component.d.ts +1 -1
  9. package/components/demo/index.d.ts +0 -1
  10. package/components/demo-displayer/demo-displayer.component.d.ts +1 -1
  11. package/components/demo-displayer/index.d.ts +0 -1
  12. package/components/demo-pane/demo-pane.component.d.ts +1 -1
  13. package/components/demo-pane/index.d.ts +0 -1
  14. package/components/kind-icon/index.d.ts +0 -1
  15. package/components/kind-icon/kind-icon.component.d.ts +1 -1
  16. package/components/link/index.d.ts +0 -1
  17. package/components/link/link.component.d.ts +1 -1
  18. package/components/navbar/navbar.component.d.ts +1 -1
  19. package/components/navbar/navbar.module.d.ts +1 -7
  20. package/components/page/page.component.d.ts +1 -1
  21. package/components/page/page.module.d.ts +5 -10
  22. package/components/page-link/index.d.ts +0 -1
  23. package/components/page-link/page-link.component.d.ts +1 -1
  24. package/components/playground/index.d.ts +0 -1
  25. package/components/playground/playground-demo/playground-demo.component.d.ts +1 -1
  26. package/components/playground/playground-properties/playground-properties.component.d.ts +1 -1
  27. package/components/playground/playground-property/playground-property.component.d.ts +1 -1
  28. package/components/playground/playground.component.d.ts +1 -1
  29. package/components/root/index.d.ts +0 -1
  30. package/components/root/root.component.d.ts +3 -3
  31. package/components/search/search.component.d.ts +1 -1
  32. package/components/search/search.module.d.ts +6 -7
  33. package/components/search-result/index.d.ts +0 -1
  34. package/components/search-result/search-result.component.d.ts +1 -1
  35. package/components/sidebar/sidebar-category/sidebar-category.component.d.ts +1 -1
  36. package/components/sidebar/sidebar-item/sidebar-item.component.d.ts +1 -1
  37. package/components/sidebar/sidebar.component.d.ts +1 -1
  38. package/components/sidebar/sidebar.module.d.ts +1 -13
  39. package/components/theme-toggle/index.d.ts +0 -1
  40. package/components/theme-toggle/theme-toggle.component.d.ts +1 -1
  41. package/components/toc/index.d.ts +0 -1
  42. package/components/toc/toc-element/toc-element.component.d.ts +1 -1
  43. package/components/toc/toc.component.d.ts +1 -1
  44. package/directives/code-highlighter/code-highlighter.directive.d.ts +1 -1
  45. package/directives/code-highlighter/index.d.ts +0 -1
  46. package/directives/route-active/index.d.ts +0 -1
  47. package/directives/route-active/route-active.directive.d.ts +1 -1
  48. package/esm2022/classes/root-page/root-page.mjs +1 -1
  49. package/esm2022/components/api-list/api-list.component.mjs +29 -8
  50. package/esm2022/components/api-list/api-list.module.mjs +5 -54
  51. package/esm2022/components/breadcrumb/breadcrumb.component.mjs +6 -6
  52. package/esm2022/components/breadcrumb/index.mjs +2 -3
  53. package/esm2022/components/code/code.component.mjs +16 -7
  54. package/esm2022/components/code/index.mjs +1 -2
  55. package/esm2022/components/demo/demo.component.mjs +19 -10
  56. package/esm2022/components/demo/index.mjs +1 -2
  57. package/esm2022/components/demo-displayer/demo-displayer.component.mjs +17 -7
  58. package/esm2022/components/demo-displayer/index.mjs +1 -2
  59. package/esm2022/components/demo-pane/demo-pane.component.mjs +20 -9
  60. package/esm2022/components/demo-pane/index.mjs +1 -2
  61. package/esm2022/components/kind-icon/index.mjs +1 -2
  62. package/esm2022/components/kind-icon/kind-icon.component.mjs +3 -3
  63. package/esm2022/components/link/index.mjs +1 -2
  64. package/esm2022/components/link/link.component.mjs +4 -4
  65. package/esm2022/components/navbar/navbar.component.mjs +16 -10
  66. package/esm2022/components/navbar/navbar.module.mjs +4 -28
  67. package/esm2022/components/page/page.component.mjs +31 -10
  68. package/esm2022/components/page/page.module.mjs +5 -59
  69. package/esm2022/components/page-link/index.mjs +1 -2
  70. package/esm2022/components/page-link/page-link.component.mjs +5 -5
  71. package/esm2022/components/playground/index.mjs +1 -2
  72. package/esm2022/components/playground/playground-demo/playground-demo.component.mjs +5 -5
  73. package/esm2022/components/playground/playground-properties/playground-properties.component.mjs +23 -8
  74. package/esm2022/components/playground/playground-property/playground-property.component.mjs +4 -4
  75. package/esm2022/components/playground/playground.component.mjs +8 -8
  76. package/esm2022/components/root/index.mjs +1 -2
  77. package/esm2022/components/root/root.component.mjs +11 -9
  78. package/esm2022/components/search/search.component.mjs +34 -10
  79. package/esm2022/components/search/search.module.mjs +5 -69
  80. package/esm2022/components/search-result/index.mjs +1 -2
  81. package/esm2022/components/search-result/search-result.component.mjs +7 -7
  82. package/esm2022/components/sidebar/sidebar-category/sidebar-category.component.mjs +18 -11
  83. package/esm2022/components/sidebar/sidebar-item/sidebar-item.component.mjs +5 -6
  84. package/esm2022/components/sidebar/sidebar.component.mjs +6 -6
  85. package/esm2022/components/sidebar/sidebar.module.mjs +4 -46
  86. package/esm2022/components/theme-toggle/index.mjs +1 -2
  87. package/esm2022/components/theme-toggle/theme-toggle.component.mjs +5 -5
  88. package/esm2022/components/toc/index.mjs +1 -2
  89. package/esm2022/components/toc/toc-element/toc-element.component.mjs +3 -3
  90. package/esm2022/components/toc/toc.component.mjs +4 -6
  91. package/esm2022/directives/code-highlighter/code-highlighter.directive.mjs +3 -2
  92. package/esm2022/directives/code-highlighter/index.mjs +1 -2
  93. package/esm2022/directives/route-active/index.mjs +1 -2
  94. package/esm2022/directives/route-active/route-active.directive.mjs +3 -2
  95. package/esm2022/modules/root/ng-doc.module.mjs +6 -6
  96. package/esm2022/pipes/extract-value/extract-value.pipe.mjs +3 -2
  97. package/esm2022/pipes/extract-value/index.mjs +1 -2
  98. package/esm2022/pipes/filter-by-text/filter-by-text.pipe.mjs +3 -2
  99. package/esm2022/pipes/filter-by-text/index.mjs +1 -2
  100. package/esm2022/pipes/sanitize-html/index.mjs +1 -2
  101. package/esm2022/pipes/sanitize-html/sanitize-html.pipe.mjs +3 -2
  102. package/esm2022/processors/blockquote-processor/blockquote-processor.directive.mjs +3 -2
  103. package/esm2022/processors/blockquote-processor/index.mjs +1 -2
  104. package/esm2022/processors/code-processor/code-processor.directive.mjs +3 -2
  105. package/esm2022/processors/code-processor/index.mjs +1 -2
  106. package/esm2022/processors/demo-pane-processor/demo-pane-processor.directive.mjs +3 -2
  107. package/esm2022/processors/demo-pane-processor/index.mjs +1 -2
  108. package/esm2022/processors/demo-processor/demo-processor.directive.mjs +3 -2
  109. package/esm2022/processors/demo-processor/index.mjs +1 -2
  110. package/esm2022/processors/icon-processor/icon-processor.directive.mjs +3 -2
  111. package/esm2022/processors/icon-processor/index.mjs +1 -2
  112. package/esm2022/processors/link-processor/index.mjs +1 -2
  113. package/esm2022/processors/link-processor/link-processor.directive.mjs +3 -2
  114. package/esm2022/processors/playground-processor/index.mjs +1 -2
  115. package/esm2022/processors/playground-processor/playground-processor.directive.mjs +3 -2
  116. package/esm2022/processors/tooltip-processor/index.mjs +1 -2
  117. package/esm2022/processors/tooltip-processor/tooltip-processor.directive.mjs +3 -2
  118. package/esm2022/processors/tooltip-processor/tooltip-wrapper.component.mjs +5 -5
  119. package/esm2022/type-controls/boolean-control/boolean-control.component.mjs +4 -4
  120. package/esm2022/type-controls/boolean-control/boolean-control.module.mjs +4 -6
  121. package/esm2022/type-controls/number-control/number-control.component.mjs +18 -8
  122. package/esm2022/type-controls/number-control/number-control.module.mjs +4 -32
  123. package/esm2022/type-controls/string-control/string-control.component.mjs +18 -8
  124. package/esm2022/type-controls/string-control/string-control.module.mjs +4 -36
  125. package/esm2022/type-controls/type-alias-control/type-alias-control.component.mjs +27 -8
  126. package/esm2022/type-controls/type-alias-control/type-alias-control.module.mjs +5 -46
  127. package/fesm2022/ng-doc-app-classes-root-page.mjs.map +1 -1
  128. package/fesm2022/ng-doc-app-components-api-list.mjs +31 -61
  129. package/fesm2022/ng-doc-app-components-api-list.mjs.map +1 -1
  130. package/fesm2022/ng-doc-app-components-breadcrumb.mjs +6 -22
  131. package/fesm2022/ng-doc-app-components-breadcrumb.mjs.map +1 -1
  132. package/fesm2022/ng-doc-app-components-code.mjs +17 -49
  133. package/fesm2022/ng-doc-app-components-code.mjs.map +1 -1
  134. package/fesm2022/ng-doc-app-components-demo-displayer.mjs +18 -53
  135. package/fesm2022/ng-doc-app-components-demo-displayer.mjs.map +1 -1
  136. package/fesm2022/ng-doc-app-components-demo-pane.mjs +20 -26
  137. package/fesm2022/ng-doc-app-components-demo-pane.mjs.map +1 -1
  138. package/fesm2022/ng-doc-app-components-demo.mjs +19 -48
  139. package/fesm2022/ng-doc-app-components-demo.mjs.map +1 -1
  140. package/fesm2022/ng-doc-app-components-kind-icon.mjs +4 -19
  141. package/fesm2022/ng-doc-app-components-kind-icon.mjs.map +1 -1
  142. package/fesm2022/ng-doc-app-components-link.mjs +5 -21
  143. package/fesm2022/ng-doc-app-components-link.mjs.map +1 -1
  144. package/fesm2022/ng-doc-app-components-navbar.mjs +18 -36
  145. package/fesm2022/ng-doc-app-components-navbar.mjs.map +1 -1
  146. package/fesm2022/ng-doc-app-components-page-link.mjs +5 -21
  147. package/fesm2022/ng-doc-app-components-page-link.mjs.map +1 -1
  148. package/fesm2022/ng-doc-app-components-page.mjs +33 -67
  149. package/fesm2022/ng-doc-app-components-page.mjs.map +1 -1
  150. package/fesm2022/ng-doc-app-components-playground.mjs +141 -204
  151. package/fesm2022/ng-doc-app-components-playground.mjs.map +1 -1
  152. package/fesm2022/ng-doc-app-components-root.mjs +12 -26
  153. package/fesm2022/ng-doc-app-components-root.mjs.map +1 -1
  154. package/fesm2022/ng-doc-app-components-search-result.mjs +8 -26
  155. package/fesm2022/ng-doc-app-components-search-result.mjs.map +1 -1
  156. package/fesm2022/ng-doc-app-components-search.mjs +35 -78
  157. package/fesm2022/ng-doc-app-components-search.mjs.map +1 -1
  158. package/fesm2022/ng-doc-app-components-sidebar.mjs +25 -57
  159. package/fesm2022/ng-doc-app-components-sidebar.mjs.map +1 -1
  160. package/fesm2022/ng-doc-app-components-theme-toggle.mjs +6 -22
  161. package/fesm2022/ng-doc-app-components-theme-toggle.mjs.map +1 -1
  162. package/fesm2022/ng-doc-app-components-toc.mjs +9 -24
  163. package/fesm2022/ng-doc-app-components-toc.mjs.map +1 -1
  164. package/fesm2022/ng-doc-app-directives-code-highlighter.mjs +4 -16
  165. package/fesm2022/ng-doc-app-directives-code-highlighter.mjs.map +1 -1
  166. package/fesm2022/ng-doc-app-directives-route-active.mjs +4 -18
  167. package/fesm2022/ng-doc-app-directives-route-active.mjs.map +1 -1
  168. package/fesm2022/ng-doc-app-modules-root.mjs +5 -5
  169. package/fesm2022/ng-doc-app-modules-root.mjs.map +1 -1
  170. package/fesm2022/ng-doc-app-pipes-extract-value.mjs +4 -16
  171. package/fesm2022/ng-doc-app-pipes-extract-value.mjs.map +1 -1
  172. package/fesm2022/ng-doc-app-pipes-filter-by-text.mjs +4 -16
  173. package/fesm2022/ng-doc-app-pipes-filter-by-text.mjs.map +1 -1
  174. package/fesm2022/ng-doc-app-pipes-sanitize-html.mjs +4 -16
  175. package/fesm2022/ng-doc-app-pipes-sanitize-html.mjs.map +1 -1
  176. package/fesm2022/ng-doc-app-processors-blockquote-processor.mjs +5 -18
  177. package/fesm2022/ng-doc-app-processors-blockquote-processor.mjs.map +1 -1
  178. package/fesm2022/ng-doc-app-processors-code-processor.mjs +5 -18
  179. package/fesm2022/ng-doc-app-processors-code-processor.mjs.map +1 -1
  180. package/fesm2022/ng-doc-app-processors-demo-pane-processor.mjs +5 -18
  181. package/fesm2022/ng-doc-app-processors-demo-pane-processor.mjs.map +1 -1
  182. package/fesm2022/ng-doc-app-processors-demo-processor.mjs +5 -18
  183. package/fesm2022/ng-doc-app-processors-demo-processor.mjs.map +1 -1
  184. package/fesm2022/ng-doc-app-processors-icon-processor.mjs +4 -16
  185. package/fesm2022/ng-doc-app-processors-icon-processor.mjs.map +1 -1
  186. package/fesm2022/ng-doc-app-processors-link-processor.mjs +4 -16
  187. package/fesm2022/ng-doc-app-processors-link-processor.mjs.map +1 -1
  188. package/fesm2022/ng-doc-app-processors-playground-processor.mjs +5 -18
  189. package/fesm2022/ng-doc-app-processors-playground-processor.mjs.map +1 -1
  190. package/fesm2022/ng-doc-app-processors-tooltip-processor.mjs +8 -22
  191. package/fesm2022/ng-doc-app-processors-tooltip-processor.mjs.map +1 -1
  192. package/fesm2022/ng-doc-app-type-controls-boolean-control.mjs +6 -8
  193. package/fesm2022/ng-doc-app-type-controls-boolean-control.mjs.map +1 -1
  194. package/fesm2022/ng-doc-app-type-controls-number-control.mjs +19 -39
  195. package/fesm2022/ng-doc-app-type-controls-number-control.mjs.map +1 -1
  196. package/fesm2022/ng-doc-app-type-controls-string-control.mjs +19 -43
  197. package/fesm2022/ng-doc-app-type-controls-string-control.mjs.map +1 -1
  198. package/fesm2022/ng-doc-app-type-controls-type-alias-control.mjs +29 -54
  199. package/fesm2022/ng-doc-app-type-controls-type-alias-control.mjs.map +1 -1
  200. package/modules/root/ng-doc.module.d.ts +1 -1
  201. package/package.json +3 -3
  202. package/pipes/extract-value/extract-value.pipe.d.ts +1 -1
  203. package/pipes/extract-value/index.d.ts +0 -1
  204. package/pipes/filter-by-text/filter-by-text.pipe.d.ts +1 -1
  205. package/pipes/filter-by-text/index.d.ts +0 -1
  206. package/pipes/sanitize-html/index.d.ts +0 -1
  207. package/pipes/sanitize-html/sanitize-html.pipe.d.ts +1 -1
  208. package/processors/blockquote-processor/blockquote-processor.directive.d.ts +1 -1
  209. package/processors/blockquote-processor/index.d.ts +0 -1
  210. package/processors/code-processor/code-processor.directive.d.ts +1 -1
  211. package/processors/code-processor/index.d.ts +0 -1
  212. package/processors/demo-pane-processor/demo-pane-processor.directive.d.ts +1 -1
  213. package/processors/demo-pane-processor/index.d.ts +0 -1
  214. package/processors/demo-processor/demo-processor.directive.d.ts +1 -1
  215. package/processors/demo-processor/index.d.ts +0 -1
  216. package/processors/icon-processor/icon-processor.directive.d.ts +1 -1
  217. package/processors/icon-processor/index.d.ts +0 -1
  218. package/processors/link-processor/index.d.ts +0 -1
  219. package/processors/link-processor/link-processor.directive.d.ts +1 -1
  220. package/processors/playground-processor/index.d.ts +0 -1
  221. package/processors/playground-processor/playground-processor.directive.d.ts +1 -1
  222. package/processors/tooltip-processor/index.d.ts +0 -1
  223. package/processors/tooltip-processor/tooltip-processor.directive.d.ts +1 -1
  224. package/processors/tooltip-processor/tooltip-wrapper.component.d.ts +1 -1
  225. package/type-controls/boolean-control/boolean-control.component.d.ts +1 -1
  226. package/type-controls/boolean-control/boolean-control.module.d.ts +3 -4
  227. package/type-controls/number-control/number-control.component.d.ts +1 -1
  228. package/type-controls/number-control/number-control.module.d.ts +5 -6
  229. package/type-controls/string-control/string-control.component.d.ts +1 -1
  230. package/type-controls/string-control/string-control.module.d.ts +5 -7
  231. package/type-controls/type-alias-control/type-alias-control.component.d.ts +1 -1
  232. package/type-controls/type-alias-control/type-alias-control.module.d.ts +5 -7
  233. package/components/breadcrumb/breadcrumb.module.d.ts +0 -10
  234. package/components/code/code.module.d.ts +0 -11
  235. package/components/demo/demo.module.d.ts +0 -12
  236. package/components/demo-displayer/demo-displayer.module.d.ts +0 -12
  237. package/components/demo-pane/demo-pane.module.d.ts +0 -11
  238. package/components/kind-icon/kind-icon.module.d.ts +0 -8
  239. package/components/link/link.module.d.ts +0 -9
  240. package/components/page-link/page-link.module.d.ts +0 -9
  241. package/components/playground/playground.module.d.ts +0 -15
  242. package/components/root/root.module.d.ts +0 -10
  243. package/components/search-result/search-result.module.d.ts +0 -11
  244. package/components/theme-toggle/theme-toggle.module.d.ts +0 -9
  245. package/components/toc/toc.module.d.ts +0 -11
  246. package/directives/code-highlighter/code-highlighter.module.d.ts +0 -7
  247. package/directives/route-active/route-active.module.d.ts +0 -8
  248. package/esm2022/components/breadcrumb/breadcrumb.module.mjs +0 -21
  249. package/esm2022/components/code/code.module.mjs +0 -45
  250. package/esm2022/components/demo/demo.module.mjs +0 -43
  251. package/esm2022/components/demo-displayer/demo-displayer.module.mjs +0 -49
  252. package/esm2022/components/demo-pane/demo-pane.module.mjs +0 -22
  253. package/esm2022/components/kind-icon/kind-icon.module.mjs +0 -19
  254. package/esm2022/components/link/link.module.mjs +0 -20
  255. package/esm2022/components/page-link/page-link.module.mjs +0 -20
  256. package/esm2022/components/playground/playground.module.mjs +0 -86
  257. package/esm2022/components/root/root.module.mjs +0 -21
  258. package/esm2022/components/search-result/search-result.module.mjs +0 -22
  259. package/esm2022/components/theme-toggle/theme-toggle.module.mjs +0 -20
  260. package/esm2022/components/toc/toc.module.mjs +0 -22
  261. package/esm2022/directives/code-highlighter/code-highlighter.module.mjs +0 -17
  262. package/esm2022/directives/route-active/route-active.module.mjs +0 -19
  263. package/esm2022/pipes/extract-value/extract-value.module.mjs +0 -17
  264. package/esm2022/pipes/filter-by-text/filter-by-text.module.mjs +0 -17
  265. package/esm2022/pipes/sanitize-html/sanitize-html.module.mjs +0 -17
  266. package/esm2022/processors/blockquote-processor/blockquote-processor.module.mjs +0 -19
  267. package/esm2022/processors/code-processor/code-processor.module.mjs +0 -19
  268. package/esm2022/processors/demo-pane-processor/demo-pane-processor.module.mjs +0 -19
  269. package/esm2022/processors/demo-processor/demo-processor.module.mjs +0 -19
  270. package/esm2022/processors/icon-processor/icon-processor.module.mjs +0 -17
  271. package/esm2022/processors/link-processor/link-processor.module.mjs +0 -17
  272. package/esm2022/processors/playground-processor/playground-processor.module.mjs +0 -19
  273. package/esm2022/processors/tooltip-processor/tooltip-processor.module.mjs +0 -20
  274. package/pipes/extract-value/extract-value.module.d.ts +0 -7
  275. package/pipes/filter-by-text/filter-by-text.module.d.ts +0 -7
  276. package/pipes/sanitize-html/sanitize-html.module.d.ts +0 -7
  277. package/processors/blockquote-processor/blockquote-processor.module.d.ts +0 -8
  278. package/processors/code-processor/code-processor.module.d.ts +0 -8
  279. package/processors/demo-pane-processor/demo-pane-processor.module.d.ts +0 -8
  280. package/processors/demo-processor/demo-processor.module.d.ts +0 -8
  281. package/processors/icon-processor/icon-processor.module.d.ts +0 -7
  282. package/processors/link-processor/link-processor.module.d.ts +0 -7
  283. package/processors/playground-processor/playground-processor.module.d.ts +0 -8
  284. package/processors/tooltip-processor/tooltip-processor.module.d.ts +0 -9
@@ -1 +1 @@
1
- {"version":3,"file":"ng-doc-app-components-sidebar.mjs","sources":["../../../../libs/app/components/sidebar/sidebar-category/sidebar-category.component.ts","../../../../libs/app/components/sidebar/sidebar-category/sidebar-category.component.html","../../../../libs/app/components/sidebar/sidebar-item/sidebar-item.component.ts","../../../../libs/app/components/sidebar/sidebar-item/sidebar-item.component.html","../../../../libs/app/components/sidebar/sidebar.component.ts","../../../../libs/app/components/sidebar/sidebar.component.html","../../../../libs/app/components/sidebar/sidebar.module.ts","../../../../libs/app/components/sidebar/ng-doc-app-components-sidebar.ts"],"sourcesContent":["import {ChangeDetectionStrategy, ChangeDetectorRef, Component, HostBinding, Input, OnInit} from '@angular/core';\nimport {Event, NavigationEnd, Router} from '@angular/router';\nimport {NgDocNavigation} from '@ng-doc/app/interfaces';\nimport {NgDocContent} from '@ng-doc/ui-kit/types';\nimport {UntilDestroy, untilDestroyed} from '@ngneat/until-destroy';\nimport {filter, startWith} from 'rxjs/operators';\n\n@Component({\n\tselector: 'ng-doc-sidebar-category',\n\ttemplateUrl: './sidebar-category.component.html',\n\tstyleUrls: ['./sidebar-category.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\n@UntilDestroy()\nexport class NgDocSidebarCategoryComponent implements OnInit {\n\t@Input()\n\tcategory?: NgDocNavigation;\n\n\t@Input()\n\t@HostBinding('attr.data-ng-doc-is-root')\n\tisRoot: boolean = false;\n\n\t@Input()\n\tcontent: NgDocContent = '';\n\n\t@Input()\n\t@HostBinding('attr.data-ng-doc-expandable')\n\texpandable: boolean = true;\n\n\t@Input()\n\texpanded: boolean = true;\n\n\tconstructor(private readonly router: Router, private readonly changeDetectorRef: ChangeDetectorRef) {}\n\n\tngOnInit(): void {\n\t\t/**\n\t\t * We need to update this component every time a navigation occurs to expand the category if its child node is currently rendered\n\t\t */\n\t\tthis.router.events\n\t\t\t.pipe(\n\t\t\t\tfilter((event: Event) => event instanceof NavigationEnd),\n\t\t\t\tstartWith(null),\n\t\t\t\tfilter(() => this.router.url.includes(this.category?.route ?? '', 0)),\n\t\t\t\tuntilDestroyed(this),\n\t\t\t)\n\t\t\t.subscribe(() => this.expand());\n\t}\n\n\ttoggle(): void {\n\t\tthis.expanded ? this.collapse() : this.expand();\n\t}\n\n\texpand(): void {\n\t\tif (this.category?.expandable) {\n\t\t\tthis.expanded = true;\n\t\t\tthis.changeDetectorRef.markForCheck();\n\t\t}\n\t}\n\n\tcollapse(): void {\n\t\tif (this.category?.expandable) {\n\t\t\tthis.expanded = false;\n\t\t\tthis.changeDetectorRef.markForCheck();\n\t\t}\n\t}\n}\n","<div class=\"ng-doc-sidebar-category-wrapper\">\n\t<div class=\"ng-doc-sidebar-category-button\" (click)=\"toggle()\">\n\t\t<div class=\"ng-doc-sidebar-category\" [ngDocRouteActive]=\"category?.route ?? ''\" activeClass=\"active\" >\n\t\t\t<ng-doc-dot *ngIf=\"!expandable\"></ng-doc-dot>\n\t\t\t<span\n\t\t\t\tng-doc-text\n\t\t\t\t[color]=\"expandable ? 'normal' : 'muted'\"\n\t\t\t>\n\t\t\t\t<ng-doc-icon icon=\"chevron-right\" *ngIf=\"category?.expandable\" [ngDocRotator]=\"expanded\" ngDocTextLeft>\n\t\t\t\t</ng-doc-icon>\n\t\t\t\t{{ category?.title }}\n\t\t\t</span>\n\t\t</div>\n<!--\t\t<div ng-doc-text color=\"muted\" size=\"small\">Some description</div>-->\n\t</div>\n\t<ng-doc-expander [expanded]=\"expanded\" [content]=\"contentTemplate\">\n\t\t<ng-template #contentTemplate>\n\t\t\t<div class=\"ng-doc-sidebar-category-children\">\n\t\t\t\t<!--We wrap content via ng-template to save state of the child components -->\n\t\t\t\t<ng-content></ng-content>\n\t\t\t\t<ng-container *polymorpheusOutlet=\"content\"></ng-container>\n\t\t\t</div>\n\t\t</ng-template>\n\t</ng-doc-expander>\n</div>\n","import {ChangeDetectionStrategy, Component, Input} from '@angular/core';\nimport {NgDocNavigation} from '@ng-doc/app/interfaces';\n\n@Component({\n\tselector: 'ng-doc-sidebar-item',\n\ttemplateUrl: './sidebar-item.component.html',\n\tstyleUrls: ['./sidebar-item.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgDocSidebarItemComponent {\n\t@Input()\n\titem?: NgDocNavigation;\n}\n","<a class=\"ng-doc-sidebar-link\" [routerLink]=\"[item?.route ?? '']\" routerLinkActive=\"active\">\n\t<ng-doc-dot></ng-doc-dot>\n\t<span ng-doc-text [absoluteContent]=\"true\">\n\t\t{{ item?.title }}\n\t</span>\n</a>\n","import {ChangeDetectionStrategy, Component, Inject} from '@angular/core';\nimport {NgDocContext, NgDocNavigation} from '@ng-doc/app/interfaces';\nimport {NG_DOC_CONTEXT} from '@ng-doc/app/tokens';\n\n@Component({\n\tselector: 'ng-doc-sidebar',\n\ttemplateUrl: './sidebar.component.html',\n\tstyleUrls: ['./sidebar.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgDocSidebarComponent {\n\tconstructor(\n\t\t@Inject(NG_DOC_CONTEXT)\n\t\treadonly context: NgDocContext,\n\t) {}\n\n\tgetNavigation(nav?: NgDocNavigation): NgDocNavigation[] {\n\t\treturn nav ? nav.children ?? [] : this.context.navigation;\n\t}\n}\n","<div class=\"ng-doc-side-bar-wrapper\">\n\t<ng-container *ngFor=\"let item of getNavigation()\">\n\t\t<ng-container *ngTemplateOutlet=\"sidebarTemplate; context: {item: this.item, root: true}\"></ng-container>\n\t</ng-container>\n\n\t<ng-template let-item=\"item\" let-root=\"root\" #sidebarTemplate>\n\t\t<ng-container *ngIf=\"item.children?.length; else itemTemplate\">\n\t\t\t<ng-doc-sidebar-category\n\t\t\t\t*ngIf=\"!item.hidden\"\n\t\t\t\t[category]=\"item\"\n\t\t\t\t[expandable]=\"!!item?.expandable\"\n\t\t\t\t[expanded]=\"!!item?.expanded || !item?.expandable\"\n\t\t\t\t[isRoot]=\"!!root\"\n\t\t\t\t[content]=\"categoryContent\"\n\t\t\t>\n\t\t\t\t<ng-template #categoryContent>\n\t\t\t\t\t<ng-container *ngFor=\"let child of getNavigation(item)\">\n\t\t\t\t\t\t<ng-container\n\t\t\t\t\t\t\t*ngTemplateOutlet=\"sidebarTemplate; context: {item: child, root: false}\"\n\t\t\t\t\t\t></ng-container>\n\t\t\t\t\t</ng-container>\n\t\t\t\t</ng-template>\n\t\t\t</ng-doc-sidebar-category>\n\t\t</ng-container>\n\n\t\t<ng-template #itemTemplate>\n\t\t\t<ng-doc-sidebar-item [item]=\"item\" *ngIf=\"!item.hidden\"></ng-doc-sidebar-item>\n\t\t</ng-template>\n\t</ng-template>\n</div>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {RouterModule} from '@angular/router';\nimport {NgDocRouteActiveModule} from '@ng-doc/app/directives/route-active';\nimport {NgDocDotModule} from '@ng-doc/ui-kit/components/dot';\nimport {NgDocExpanderModule} from '@ng-doc/ui-kit/components/expander';\nimport {NgDocIconModule} from '@ng-doc/ui-kit/components/icon';\nimport {NgDocLineModule} from '@ng-doc/ui-kit/components/line';\nimport {NgDocTextModule} from '@ng-doc/ui-kit/components/text';\nimport {NgDocRotatorModule} from '@ng-doc/ui-kit/directives/rotator';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {NgDocSidebarComponent} from './sidebar.component';\nimport {NgDocSidebarCategoryComponent} from './sidebar-category/sidebar-category.component';\nimport {NgDocSidebarItemComponent} from './sidebar-item/sidebar-item.component';\n\n@NgModule({\n\tdeclarations: [NgDocSidebarComponent, NgDocSidebarCategoryComponent, NgDocSidebarItemComponent],\n\timports: [\n\t\tCommonModule,\n\t\tRouterModule,\n\t\tNgDocTextModule,\n\t\tNgDocIconModule,\n\t\tNgDocExpanderModule,\n\t\tNgDocRotatorModule,\n\t\tNgDocLineModule,\n\t\tPolymorpheusModule,\n\t\tNgDocDotModule,\n\t\tNgDocRouteActiveModule,\n\t],\n\texports: [NgDocSidebarComponent],\n})\nexport class NgDocSidebarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i2","i3","i1","i2.NgDocSidebarCategoryComponent","i3.NgDocSidebarItemComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAOa,6BAA6B,GAP1C,MAOa,6BAA6B,CAAA;IAkBzC,WAA6B,CAAA,MAAc,EAAmB,iBAAoC,EAAA;QAArE,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QAAmB,IAAiB,CAAA,iBAAA,GAAjB,iBAAiB,CAAmB;QAZlG,IAAM,CAAA,MAAA,GAAY,KAAK,CAAC;QAGxB,IAAO,CAAA,OAAA,GAAiB,EAAE,CAAC;QAI3B,IAAU,CAAA,UAAA,GAAY,IAAI,CAAC;QAG3B,IAAQ,CAAA,QAAA,GAAY,IAAI,CAAC;KAE6E;IAEtG,QAAQ,GAAA;AACP;;AAEG;QACH,IAAI,CAAC,MAAM,CAAC,MAAM;aAChB,IAAI,CACJ,MAAM,CAAC,CAAC,KAAY,KAAK,KAAK,YAAY,aAAa,CAAC,EACxD,SAAS,CAAC,IAAI,CAAC,EACf,MAAM,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,EACrE,cAAc,CAAC,IAAI,CAAC,CACpB;aACA,SAAS,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;KACjC;IAED,MAAM,GAAA;AACL,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;KAChD;IAED,MAAM,GAAA;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AAEG;;;;"}
1
+ {"version":3,"file":"ng-doc-app-components-sidebar.mjs","sources":["../../../../libs/app/components/sidebar/sidebar-category/sidebar-category.component.ts","../../../../libs/app/components/sidebar/sidebar-category/sidebar-category.component.html","../../../../libs/app/components/sidebar/sidebar-item/sidebar-item.component.ts","../../../../libs/app/components/sidebar/sidebar-item/sidebar-item.component.html","../../../../libs/app/components/sidebar/sidebar.component.ts","../../../../libs/app/components/sidebar/sidebar.component.html","../../../../libs/app/components/sidebar/sidebar.module.ts","../../../../libs/app/components/sidebar/ng-doc-app-components-sidebar.ts"],"sourcesContent":["import {NgIf} from '@angular/common';\nimport {ChangeDetectionStrategy, ChangeDetectorRef, Component, HostBinding, Input, OnInit} from '@angular/core';\nimport {Event, NavigationEnd, Router} from '@angular/router';\nimport {NgDocRouteActiveDirective} from '@ng-doc/app/directives/route-active';\nimport {NgDocNavigation} from '@ng-doc/app/interfaces';\nimport {\n\tNgDocDotComponent,\n\tNgDocExpanderComponent,\n\tNgDocIconComponent,\n\tNgDocRotatorDirective,\n\tNgDocTextComponent,\n\tNgDocTextLeftDirective,\n} from '@ng-doc/ui-kit';\nimport {NgDocContent} from '@ng-doc/ui-kit/types';\nimport {UntilDestroy, untilDestroyed} from '@ngneat/until-destroy';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\nimport {filter, startWith} from 'rxjs/operators';\n\n@Component({\n\tselector: 'ng-doc-sidebar-category',\n\ttemplateUrl: './sidebar-category.component.html',\n\tstyleUrls: ['./sidebar-category.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstandalone: true,\n\timports: [\n\t\tNgDocRouteActiveDirective,\n\t\tNgIf,\n\t\tNgDocDotComponent,\n\t\tNgDocTextComponent,\n\t\tNgDocIconComponent,\n\t\tNgDocTextLeftDirective,\n\t\tNgDocRotatorDirective,\n\t\tNgDocExpanderComponent,\n\t\tPolymorpheusModule,\n\t],\n})\n@UntilDestroy()\nexport class NgDocSidebarCategoryComponent implements OnInit {\n\t@Input()\n\tcategory?: NgDocNavigation;\n\n\t@Input()\n\t@HostBinding('attr.data-ng-doc-is-root')\n\tisRoot: boolean = false;\n\n\t@Input()\n\tcontent: NgDocContent = '';\n\n\t@Input()\n\t@HostBinding('attr.data-ng-doc-expandable')\n\texpandable: boolean = true;\n\n\t@Input()\n\texpanded: boolean = true;\n\n\tconstructor(private readonly router: Router, private readonly changeDetectorRef: ChangeDetectorRef) {}\n\n\tngOnInit(): void {\n\t\t/**\n\t\t * We need to update this component every time a navigation occurs to expand the category if its child node is currently rendered\n\t\t */\n\t\tthis.router.events\n\t\t\t.pipe(\n\t\t\t\tfilter((event: Event) => event instanceof NavigationEnd),\n\t\t\t\tstartWith(null),\n\t\t\t\tfilter(() => this.router.url.includes(this.category?.route ?? '', 0)),\n\t\t\t\tuntilDestroyed(this),\n\t\t\t)\n\t\t\t.subscribe(() => this.expand());\n\t}\n\n\ttoggle(): void {\n\t\tthis.expanded ? this.collapse() : this.expand();\n\t}\n\n\texpand(): void {\n\t\tif (this.category?.expandable) {\n\t\t\tthis.expanded = true;\n\t\t\tthis.changeDetectorRef.markForCheck();\n\t\t}\n\t}\n\n\tcollapse(): void {\n\t\tif (this.category?.expandable) {\n\t\t\tthis.expanded = false;\n\t\t\tthis.changeDetectorRef.markForCheck();\n\t\t}\n\t}\n}\n","<div class=\"ng-doc-sidebar-category-wrapper\">\n\t<div class=\"ng-doc-sidebar-category-button\" (click)=\"toggle()\">\n\t\t<div class=\"ng-doc-sidebar-category\" [ngDocRouteActive]=\"category?.route ?? ''\" activeClass=\"active\" >\n\t\t\t<ng-doc-dot *ngIf=\"!expandable\"></ng-doc-dot>\n\t\t\t<span\n\t\t\t\tng-doc-text\n\t\t\t\t[color]=\"expandable ? 'normal' : 'muted'\"\n\t\t\t>\n\t\t\t\t<ng-doc-icon icon=\"chevron-right\" *ngIf=\"category?.expandable\" [ngDocRotator]=\"expanded\" ngDocTextLeft>\n\t\t\t\t</ng-doc-icon>\n\t\t\t\t{{ category?.title }}\n\t\t\t</span>\n\t\t</div>\n<!--\t\t<div ng-doc-text color=\"muted\" size=\"small\">Some description</div>-->\n\t</div>\n\t<ng-doc-expander [expanded]=\"expanded\" [content]=\"contentTemplate\">\n\t\t<ng-template #contentTemplate>\n\t\t\t<div class=\"ng-doc-sidebar-category-children\">\n\t\t\t\t<!--We wrap content via ng-template to save state of the child components -->\n\t\t\t\t<ng-content></ng-content>\n\t\t\t\t<ng-container *polymorpheusOutlet=\"content\"></ng-container>\n\t\t\t</div>\n\t\t</ng-template>\n\t</ng-doc-expander>\n</div>\n","import {ChangeDetectionStrategy, Component, Input} from '@angular/core';\nimport {RouterLink, RouterLinkActive} from '@angular/router';\nimport {NgDocNavigation} from '@ng-doc/app/interfaces';\nimport {NgDocDotComponent, NgDocTextComponent} from '@ng-doc/ui-kit';\n\n@Component({\n\tselector: 'ng-doc-sidebar-item',\n\ttemplateUrl: './sidebar-item.component.html',\n\tstyleUrls: ['./sidebar-item.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstandalone: true,\n\timports: [RouterLinkActive, RouterLink, NgDocDotComponent, NgDocTextComponent],\n})\nexport class NgDocSidebarItemComponent {\n\t@Input()\n\titem?: NgDocNavigation;\n}\n","<a class=\"ng-doc-sidebar-link\" [routerLink]=\"[item?.route ?? '']\" routerLinkActive=\"active\">\n\t<ng-doc-dot></ng-doc-dot>\n\t<span ng-doc-text [absoluteContent]=\"true\">\n\t\t{{ item?.title }}\n\t</span>\n</a>\n","import {NgFor, NgIf, NgTemplateOutlet} from '@angular/common';\nimport {ChangeDetectionStrategy, Component, Inject} from '@angular/core';\nimport {NgDocContext, NgDocNavigation} from '@ng-doc/app/interfaces';\nimport {NG_DOC_CONTEXT} from '@ng-doc/app/tokens';\n\nimport {NgDocSidebarCategoryComponent} from './sidebar-category/sidebar-category.component';\nimport {NgDocSidebarItemComponent} from './sidebar-item/sidebar-item.component';\n\n@Component({\n\tselector: 'ng-doc-sidebar',\n\ttemplateUrl: './sidebar.component.html',\n\tstyleUrls: ['./sidebar.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstandalone: true,\n\timports: [NgFor, NgTemplateOutlet, NgIf, NgDocSidebarCategoryComponent, NgDocSidebarItemComponent],\n})\nexport class NgDocSidebarComponent {\n\tconstructor(\n\t\t@Inject(NG_DOC_CONTEXT)\n\t\treadonly context: NgDocContext,\n\t) {}\n\n\tgetNavigation(nav?: NgDocNavigation): NgDocNavigation[] {\n\t\treturn nav ? nav.children ?? [] : this.context.navigation;\n\t}\n}\n","<div class=\"ng-doc-side-bar-wrapper\">\n\t<ng-container *ngFor=\"let item of getNavigation()\">\n\t\t<ng-container *ngTemplateOutlet=\"sidebarTemplate; context: {item: this.item, root: true}\"></ng-container>\n\t</ng-container>\n\n\t<ng-template let-item=\"item\" let-root=\"root\" #sidebarTemplate>\n\t\t<ng-container *ngIf=\"item.children?.length; else itemTemplate\">\n\t\t\t<ng-doc-sidebar-category\n\t\t\t\t*ngIf=\"!item.hidden\"\n\t\t\t\t[category]=\"item\"\n\t\t\t\t[expandable]=\"!!item?.expandable\"\n\t\t\t\t[expanded]=\"!!item?.expanded || !item?.expandable\"\n\t\t\t\t[isRoot]=\"!!root\"\n\t\t\t\t[content]=\"categoryContent\"\n\t\t\t>\n\t\t\t\t<ng-template #categoryContent>\n\t\t\t\t\t<ng-container *ngFor=\"let child of getNavigation(item)\">\n\t\t\t\t\t\t<ng-container\n\t\t\t\t\t\t\t*ngTemplateOutlet=\"sidebarTemplate; context: {item: child, root: false}\"\n\t\t\t\t\t\t></ng-container>\n\t\t\t\t\t</ng-container>\n\t\t\t\t</ng-template>\n\t\t\t</ng-doc-sidebar-category>\n\t\t</ng-container>\n\n\t\t<ng-template #itemTemplate>\n\t\t\t<ng-doc-sidebar-item [item]=\"item\" *ngIf=\"!item.hidden\"></ng-doc-sidebar-item>\n\t\t</ng-template>\n\t</ng-template>\n</div>\n","import {NgModule} from '@angular/core';\n\nimport {NgDocSidebarComponent} from './sidebar.component';\n\n@NgModule({\n\timports: [NgDocSidebarComponent],\n\texports: [NgDocSidebarComponent],\n})\nexport class NgDocSidebarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAkBA,IAmBa,6BAA6B,GAnB1C,MAmBa,6BAA6B,CAAA;IAkBzC,WAA6B,CAAA,MAAc,EAAmB,iBAAoC,EAAA;QAArE,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QAAmB,IAAiB,CAAA,iBAAA,GAAjB,iBAAiB,CAAmB;QAZlG,IAAM,CAAA,MAAA,GAAY,KAAK,CAAC;QAGxB,IAAO,CAAA,OAAA,GAAiB,EAAE,CAAC;QAI3B,IAAU,CAAA,UAAA,GAAY,IAAI,CAAC;QAG3B,IAAQ,CAAA,QAAA,GAAY,IAAI,CAAC;KAE6E;IAEtG,QAAQ,GAAA;AACP;;AAEG;QACH,IAAI,CAAC,MAAM,CAAC,MAAM;aAChB,IAAI,CACJ,MAAM,CAAC,CAAC,KAAY,KAAK,KAAK,YAAY,aAAa,CAAC,EACxD,SAAS,CAAC,IAAI,CAAC,EACf,MAAM,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,EACrE,cAAc,CAAC,IAAI,CAAC,CACpB;aACA,SAAS,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;KACjC;IAED,MAAM,GAAA;AACL,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;KAChD;IAED,MAAM,GAAA;AACL,QAAA,IAAI,IAAI,CAAC,QAAQ,EAAE,UAAU,EAAE;AAC9B,YAAA,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;AACrB,YAA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QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAHpB,qBAAqB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGnB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACT,OAAO,EAAE,CAAC,qBAAqB,CAAC;oBAChC,OAAO,EAAE,CAAC,qBAAqB,CAAC;AAChC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
@@ -1,12 +1,10 @@
1
1
  import { trigger, transition, style, animate } from '@angular/animations';
2
+ import { NgIf } from '@angular/common';
2
3
  import * as i0 from '@angular/core';
3
- import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
4
+ import { Component, ChangeDetectionStrategy } from '@angular/core';
4
5
  import { NG_DOC_NIGHT_THEME, NG_DOC_DARK_PURPLE_THEME } from '@ng-doc/app/constants';
5
6
  import * as i1 from '@ng-doc/app/services';
6
- import * as i2 from '@angular/common';
7
- import { CommonModule } from '@angular/common';
8
- import * as i3 from '@ng-doc/ui-kit';
9
- import { NgDocTooltipModule, NgDocButtonIconModule, NgDocIconModule } from '@ng-doc/ui-kit';
7
+ import { NgDocButtonIconComponent, NgDocTooltipDirective, NgDocIconComponent } from '@ng-doc/ui-kit';
10
8
 
11
9
  class NgDocThemeToggleComponent {
12
10
  constructor(themeService) {
@@ -20,7 +18,7 @@ class NgDocThemeToggleComponent {
20
18
  this.themeService.set(this.nextTheme?.id);
21
19
  }
22
20
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocThemeToggleComponent, deps: [{ token: i1.NgDocThemeService }], target: i0.ɵɵFactoryTarget.Component }); }
23
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgDocThemeToggleComponent, selector: "ng-doc-theme-toggle", ngImport: i0, template: "<button ng-doc-button-icon size=\"large\" (click)=\"toggleTheme()\" ngDocTooltip=\"Toggle Theme\">\n\t<ng-doc-icon\n\t\t[@switchIcon]=\"{value: ':enter', params: {from: '-100%', to: '100%'}}\"\n\t\ticon=\"sun\"\n\t\t[size]=\"24\"\n\t\t*ngIf=\"!nextTheme?.id\"\n\t></ng-doc-icon>\n\t<ng-doc-icon\n\t\t[@switchIcon]=\"{value: ':enter', params: {from: '-100%', to: '100%'}}\"\n\t\ticon=\"moon\"\n\t\t[size]=\"24\"\n\t\t*ngIf=\"nextTheme?.id === themes[0]?.id\"\n\t></ng-doc-icon>\n\t<ng-doc-icon\n\t\t[@switchIcon]=\"{value: ':enter', params: {from: '-100%', to: '100%'}}\"\n\t\ticon=\"circle\"\n\t\t[size]=\"24\"\n\t\t*ngIf=\"nextTheme?.id === themes[1]?.id\"\n\t></ng-doc-icon>\n</button>\n", styles: [":host{display:inline-block;height:40px;width:40px}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgDocTooltipDirective, selector: "[ngDocTooltip]", inputs: ["ngDocTooltip", "delay", "displayOrigin", "pointerOrigin", "positions", "canOpen", "panelClass", "minHeight", "maxHeight", "height", "minWidth", "maxWidth", "width"], outputs: ["beforeOpen", "afterOpen", "beforeClose", "afterClose"], exportAs: ["ngDocTooltip"] }, { kind: "component", type: i3.NgDocButtonIconComponent, selector: "button[ng-doc-button-icon], a[ng-doc-button-icon]", inputs: ["size", "rounded"] }, { kind: "component", type: i3.NgDocIconComponent, selector: "ng-doc-icon", inputs: ["icon", "size"] }], animations: [
21
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgDocThemeToggleComponent, isStandalone: true, selector: "ng-doc-theme-toggle", ngImport: i0, template: "<button ng-doc-button-icon size=\"large\" (click)=\"toggleTheme()\" ngDocTooltip=\"Toggle Theme\">\n\t<ng-doc-icon\n\t\t[@switchIcon]=\"{value: ':enter', params: {from: '-100%', to: '100%'}}\"\n\t\ticon=\"sun\"\n\t\t[size]=\"24\"\n\t\t*ngIf=\"!nextTheme?.id\"\n\t></ng-doc-icon>\n\t<ng-doc-icon\n\t\t[@switchIcon]=\"{value: ':enter', params: {from: '-100%', to: '100%'}}\"\n\t\ticon=\"moon\"\n\t\t[size]=\"24\"\n\t\t*ngIf=\"nextTheme?.id === themes[0]?.id\"\n\t></ng-doc-icon>\n\t<ng-doc-icon\n\t\t[@switchIcon]=\"{value: ':enter', params: {from: '-100%', to: '100%'}}\"\n\t\ticon=\"circle\"\n\t\t[size]=\"24\"\n\t\t*ngIf=\"nextTheme?.id === themes[1]?.id\"\n\t></ng-doc-icon>\n</button>\n", styles: [":host{display:inline-block;height:40px;width:40px}\n"], dependencies: [{ kind: "component", type: NgDocButtonIconComponent, selector: "button[ng-doc-button-icon], a[ng-doc-button-icon]", inputs: ["size", "rounded"] }, { kind: "directive", type: NgDocTooltipDirective, selector: "[ngDocTooltip]", inputs: ["ngDocTooltip", "delay", "displayOrigin", "pointerOrigin", "positions", "canOpen", "panelClass", "minHeight", "maxHeight", "height", "minWidth", "maxWidth", "width"], outputs: ["beforeOpen", "afterOpen", "beforeClose", "afterClose"], exportAs: ["ngDocTooltip"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: NgDocIconComponent, selector: "ng-doc-icon", inputs: ["icon", "size"] }], animations: [
24
22
  trigger('switchIcon', [
25
23
  transition(':enter', [
26
24
  style({ transform: 'translateX({{from}})', position: 'absolute', opacity: 0 }),
@@ -46,26 +44,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
46
44
  animate('225ms cubic-bezier(0.4,0.0,0.2,1)', style({ transform: 'translateX({{to}})', position: 'absolute', opacity: 0 })),
47
45
  ], { params: { to: '-100%' } }),
48
46
  ]),
49
- ], selector: 'ng-doc-theme-toggle', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button ng-doc-button-icon size=\"large\" (click)=\"toggleTheme()\" ngDocTooltip=\"Toggle Theme\">\n\t<ng-doc-icon\n\t\t[@switchIcon]=\"{value: ':enter', params: {from: '-100%', to: '100%'}}\"\n\t\ticon=\"sun\"\n\t\t[size]=\"24\"\n\t\t*ngIf=\"!nextTheme?.id\"\n\t></ng-doc-icon>\n\t<ng-doc-icon\n\t\t[@switchIcon]=\"{value: ':enter', params: {from: '-100%', to: '100%'}}\"\n\t\ticon=\"moon\"\n\t\t[size]=\"24\"\n\t\t*ngIf=\"nextTheme?.id === themes[0]?.id\"\n\t></ng-doc-icon>\n\t<ng-doc-icon\n\t\t[@switchIcon]=\"{value: ':enter', params: {from: '-100%', to: '100%'}}\"\n\t\ticon=\"circle\"\n\t\t[size]=\"24\"\n\t\t*ngIf=\"nextTheme?.id === themes[1]?.id\"\n\t></ng-doc-icon>\n</button>\n", styles: [":host{display:inline-block;height:40px;width:40px}\n"] }]
47
+ ], selector: 'ng-doc-theme-toggle', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgDocButtonIconComponent, NgDocTooltipDirective, NgIf, NgDocIconComponent], template: "<button ng-doc-button-icon size=\"large\" (click)=\"toggleTheme()\" ngDocTooltip=\"Toggle Theme\">\n\t<ng-doc-icon\n\t\t[@switchIcon]=\"{value: ':enter', params: {from: '-100%', to: '100%'}}\"\n\t\ticon=\"sun\"\n\t\t[size]=\"24\"\n\t\t*ngIf=\"!nextTheme?.id\"\n\t></ng-doc-icon>\n\t<ng-doc-icon\n\t\t[@switchIcon]=\"{value: ':enter', params: {from: '-100%', to: '100%'}}\"\n\t\ticon=\"moon\"\n\t\t[size]=\"24\"\n\t\t*ngIf=\"nextTheme?.id === themes[0]?.id\"\n\t></ng-doc-icon>\n\t<ng-doc-icon\n\t\t[@switchIcon]=\"{value: ':enter', params: {from: '-100%', to: '100%'}}\"\n\t\ticon=\"circle\"\n\t\t[size]=\"24\"\n\t\t*ngIf=\"nextTheme?.id === themes[1]?.id\"\n\t></ng-doc-icon>\n</button>\n", styles: [":host{display:inline-block;height:40px;width:40px}\n"] }]
50
48
  }], ctorParameters: function () { return [{ type: i1.NgDocThemeService }]; } });
51
49
 
52
- class NgDocThemeToggleModule {
53
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocThemeToggleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
54
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: NgDocThemeToggleModule, declarations: [NgDocThemeToggleComponent], imports: [CommonModule, NgDocTooltipModule, NgDocButtonIconModule, NgDocIconModule], exports: [NgDocThemeToggleComponent] }); }
55
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocThemeToggleModule, imports: [CommonModule, NgDocTooltipModule, NgDocButtonIconModule, NgDocIconModule] }); }
56
- }
57
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocThemeToggleModule, decorators: [{
58
- type: NgModule,
59
- args: [{
60
- declarations: [NgDocThemeToggleComponent],
61
- imports: [CommonModule, NgDocTooltipModule, NgDocButtonIconModule, NgDocIconModule],
62
- exports: [NgDocThemeToggleComponent],
63
- }]
64
- }] });
65
-
66
50
  /**
67
51
  * Generated bundle index. Do not edit.
68
52
  */
69
53
 
70
- export { NgDocThemeToggleComponent, NgDocThemeToggleModule };
54
+ export { NgDocThemeToggleComponent };
71
55
  //# sourceMappingURL=ng-doc-app-components-theme-toggle.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ng-doc-app-components-theme-toggle.mjs","sources":["../../../../libs/app/components/theme-toggle/theme-toggle.component.ts","../../../../libs/app/components/theme-toggle/theme-toggle.component.html","../../../../libs/app/components/theme-toggle/theme-toggle.module.ts","../../../../libs/app/components/theme-toggle/ng-doc-app-components-theme-toggle.ts"],"sourcesContent":["import {animate, style, transition, trigger} from '@angular/animations';\nimport {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {NG_DOC_DARK_PURPLE_THEME, NG_DOC_NIGHT_THEME} from '@ng-doc/app/constants';\nimport {NgDocTheme} from '@ng-doc/app/interfaces';\nimport {NgDocThemeService} from '@ng-doc/app/services';\n\n@Component({\n\tanimations: [\n\t\ttrigger('switchIcon', [\n\t\t\ttransition(\n\t\t\t\t':enter',\n\t\t\t\t[\n\t\t\t\t\tstyle({transform: 'translateX({{from}})', position: 'absolute', opacity: 0}),\n\t\t\t\t\tanimate(\n\t\t\t\t\t\t'225ms cubic-bezier(0.4,0.0,0.2,1)',\n\t\t\t\t\t\tstyle({transform: 'translateX(0%)', position: 'absolute', opacity: 1}),\n\t\t\t\t\t),\n\t\t\t\t],\n\t\t\t\t{params: {from: '-100%'}},\n\t\t\t),\n\t\t\ttransition(\n\t\t\t\t':leave',\n\t\t\t\t[\n\t\t\t\t\tstyle({transform: 'translateX(0%)', position: 'absolute', opacity: 1}),\n\t\t\t\t\tanimate(\n\t\t\t\t\t\t'225ms cubic-bezier(0.4,0.0,0.2,1)',\n\t\t\t\t\t\tstyle({transform: 'translateX({{to}})', position: 'absolute', opacity: 0}),\n\t\t\t\t\t),\n\t\t\t\t],\n\t\t\t\t{params: {to: '-100%'}},\n\t\t\t),\n\t\t]),\n\t],\n\tselector: 'ng-doc-theme-toggle',\n\ttemplateUrl: './theme-toggle.component.html',\n\tstyleUrls: ['./theme-toggle.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgDocThemeToggleComponent {\n\tprotected readonly themes: Array<NgDocTheme | undefined> = [NG_DOC_NIGHT_THEME, NG_DOC_DARK_PURPLE_THEME, undefined];\n\n\tconstructor(protected readonly themeService: NgDocThemeService) {}\n\n\tget nextTheme(): NgDocTheme | undefined {\n\t\treturn this.themes[(this.themes.indexOf(this.themeService.currentTheme) + 1) % this.themes.length];\n\t}\n\n\ttoggleTheme(): void {\n\t\tthis.themeService.set(this.nextTheme?.id);\n\t}\n}\n","<button ng-doc-button-icon size=\"large\" (click)=\"toggleTheme()\" ngDocTooltip=\"Toggle Theme\">\n\t<ng-doc-icon\n\t\t[@switchIcon]=\"{value: ':enter', params: {from: '-100%', to: '100%'}}\"\n\t\ticon=\"sun\"\n\t\t[size]=\"24\"\n\t\t*ngIf=\"!nextTheme?.id\"\n\t></ng-doc-icon>\n\t<ng-doc-icon\n\t\t[@switchIcon]=\"{value: ':enter', params: {from: '-100%', to: '100%'}}\"\n\t\ticon=\"moon\"\n\t\t[size]=\"24\"\n\t\t*ngIf=\"nextTheme?.id === themes[0]?.id\"\n\t></ng-doc-icon>\n\t<ng-doc-icon\n\t\t[@switchIcon]=\"{value: ':enter', params: {from: '-100%', to: '100%'}}\"\n\t\ticon=\"circle\"\n\t\t[size]=\"24\"\n\t\t*ngIf=\"nextTheme?.id === themes[1]?.id\"\n\t></ng-doc-icon>\n</button>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {NgDocButtonIconModule, NgDocIconModule, NgDocTooltipModule} from '@ng-doc/ui-kit';\n\nimport {NgDocThemeToggleComponent} from './theme-toggle.component';\n\n@NgModule({\n\tdeclarations: [NgDocThemeToggleComponent],\n\timports: [CommonModule, NgDocTooltipModule, NgDocButtonIconModule, NgDocIconModule],\n\texports: [NgDocThemeToggleComponent],\n})\nexport class NgDocThemeToggleModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAMA,MAgCa,yBAAyB,CAAA;AAGrC,IAAA,WAAA,CAA+B,YAA+B,EAAA;QAA/B,IAAY,CAAA,YAAA,GAAZ,YAAY,CAAmB;QAF3C,IAAM,CAAA,MAAA,GAAkC,CAAC,kBAAkB,EAAE,wBAAwB,EAAE,SAAS,CAAC,CAAC;KAEnD;AAElE,IAAA,IAAI,SAAS,GAAA;QACZ,OAAO,IAAI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AA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,YAHxB,YAAY,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGtE,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBALlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACT,YAAY,EAAE,CAAC,yBAAyB,CAAC;oBACzC,OAAO,EAAE,CAAC,YAAY,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,eAAe,CAAC;oBACnF,OAAO,EAAE,CAAC,yBAAyB,CAAC;AACpC,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-doc-app-components-theme-toggle.mjs","sources":["../../../../libs/app/components/theme-toggle/theme-toggle.component.ts","../../../../libs/app/components/theme-toggle/theme-toggle.component.html","../../../../libs/app/components/theme-toggle/ng-doc-app-components-theme-toggle.ts"],"sourcesContent":["import {animate, style, transition, trigger} from '@angular/animations';\nimport {NgIf} from '@angular/common';\nimport {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {NG_DOC_DARK_PURPLE_THEME, NG_DOC_NIGHT_THEME} from '@ng-doc/app/constants';\nimport {NgDocTheme} from '@ng-doc/app/interfaces';\nimport {NgDocThemeService} from '@ng-doc/app/services';\nimport {NgDocButtonIconComponent, NgDocIconComponent, NgDocTooltipDirective} from '@ng-doc/ui-kit';\n\n@Component({\n\tanimations: [\n\t\ttrigger('switchIcon', [\n\t\t\ttransition(\n\t\t\t\t':enter',\n\t\t\t\t[\n\t\t\t\t\tstyle({transform: 'translateX({{from}})', position: 'absolute', opacity: 0}),\n\t\t\t\t\tanimate(\n\t\t\t\t\t\t'225ms cubic-bezier(0.4,0.0,0.2,1)',\n\t\t\t\t\t\tstyle({transform: 'translateX(0%)', position: 'absolute', opacity: 1}),\n\t\t\t\t\t),\n\t\t\t\t],\n\t\t\t\t{params: {from: '-100%'}},\n\t\t\t),\n\t\t\ttransition(\n\t\t\t\t':leave',\n\t\t\t\t[\n\t\t\t\t\tstyle({transform: 'translateX(0%)', position: 'absolute', opacity: 1}),\n\t\t\t\t\tanimate(\n\t\t\t\t\t\t'225ms cubic-bezier(0.4,0.0,0.2,1)',\n\t\t\t\t\t\tstyle({transform: 'translateX({{to}})', position: 'absolute', opacity: 0}),\n\t\t\t\t\t),\n\t\t\t\t],\n\t\t\t\t{params: {to: '-100%'}},\n\t\t\t),\n\t\t]),\n\t],\n\tselector: 'ng-doc-theme-toggle',\n\ttemplateUrl: './theme-toggle.component.html',\n\tstyleUrls: ['./theme-toggle.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstandalone: true,\n\timports: [NgDocButtonIconComponent, NgDocTooltipDirective, NgIf, NgDocIconComponent],\n})\nexport class NgDocThemeToggleComponent {\n\tprotected readonly themes: Array<NgDocTheme | undefined> = [NG_DOC_NIGHT_THEME, NG_DOC_DARK_PURPLE_THEME, undefined];\n\n\tconstructor(protected readonly themeService: NgDocThemeService) {}\n\n\tget nextTheme(): NgDocTheme | undefined {\n\t\treturn this.themes[(this.themes.indexOf(this.themeService.currentTheme) + 1) % this.themes.length];\n\t}\n\n\ttoggleTheme(): void {\n\t\tthis.themeService.set(this.nextTheme?.id);\n\t}\n}\n","<button ng-doc-button-icon size=\"large\" (click)=\"toggleTheme()\" ngDocTooltip=\"Toggle Theme\">\n\t<ng-doc-icon\n\t\t[@switchIcon]=\"{value: ':enter', params: {from: '-100%', to: '100%'}}\"\n\t\ticon=\"sun\"\n\t\t[size]=\"24\"\n\t\t*ngIf=\"!nextTheme?.id\"\n\t></ng-doc-icon>\n\t<ng-doc-icon\n\t\t[@switchIcon]=\"{value: ':enter', params: {from: '-100%', to: '100%'}}\"\n\t\ticon=\"moon\"\n\t\t[size]=\"24\"\n\t\t*ngIf=\"nextTheme?.id === themes[0]?.id\"\n\t></ng-doc-icon>\n\t<ng-doc-icon\n\t\t[@switchIcon]=\"{value: ':enter', params: {from: '-100%', to: '100%'}}\"\n\t\ticon=\"circle\"\n\t\t[size]=\"24\"\n\t\t*ngIf=\"nextTheme?.id === themes[1]?.id\"\n\t></ng-doc-icon>\n</button>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAQA,MAkCa,yBAAyB,CAAA;AAGrC,IAAA,WAAA,CAA+B,YAA+B,EAAA;QAA/B,IAAY,CAAA,YAAA,GAAZ,YAAY,CAAmB;QAF3C,IAAM,CAAA,MAAA,GAAkC,CAAC,kBAAkB,EAAE,wBAAwB,EAAE,SAAS,CAAC,CAAC;KAEnD;AAElE,IAAA,IAAI,SAAS,GAAA;QACZ,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;KACnG;IAED,WAAW,GAAA;QACV,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;KAC1C;8GAXW,yBAAyB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAzB,yBAAyB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC1CtC,mrBAoBA,EAAA,MAAA,EAAA,CAAA,sDAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDoBW,wBAAwB,EAAA,QAAA,EAAA,mDAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,SAAA,CAAA,E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cACnC,IAAI,EAAA,OAAA,EACP,CAAC,wBAAwB,EAAE,qBAAqB,EAAE,IAAI,EAAE,kBAAkB,CAAC,EAAA,QAAA,EAAA,mrBAAA,EAAA,MAAA,EAAA,CAAA,sDAAA,CAAA,EAAA,CAAA;;;AExCrF;;AAEG;;;;"}
@@ -1,13 +1,12 @@
1
1
  import { __decorate, __metadata } from 'tslib';
2
- import * as i2 from '@angular/common';
3
- import { DOCUMENT, CommonModule } from '@angular/common';
2
+ import { DOCUMENT, NgFor } from '@angular/common';
4
3
  import * as i0 from '@angular/core';
5
- import { Component, ChangeDetectionStrategy, Input, HostBinding, QueryList, ElementRef, NgZone, ChangeDetectorRef, Renderer2, Inject, ViewChild, ViewChildren, NgModule } from '@angular/core';
4
+ import { Component, ChangeDetectionStrategy, Input, HostBinding, QueryList, ElementRef, NgZone, ChangeDetectorRef, Renderer2, Inject, ViewChild, ViewChildren } from '@angular/core';
6
5
  import * as i1 from '@angular/router';
7
- import { Scroll, Router, RouterLinkWithHref, RouterLink } from '@angular/router';
6
+ import { Scroll, Router } from '@angular/router';
8
7
  import { generateToc } from '@ng-doc/app/helpers';
9
8
  import { isPresent } from '@ng-doc/core/helpers/is-present';
10
- import { ngDocZoneOptimize, NgDocDotModule } from '@ng-doc/ui-kit';
9
+ import { ngDocZoneOptimize } from '@ng-doc/ui-kit';
11
10
  import { UntilDestroy } from '@ngneat/until-destroy';
12
11
  import { fromEvent, merge } from 'rxjs';
13
12
  import { map, startWith, filter, debounceTime, distinctUntilChanged } from 'rxjs/operators';
@@ -20,11 +19,11 @@ class NgDocTocElementComponent {
20
19
  this.level = 1;
21
20
  }
22
21
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocTocElementComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
23
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgDocTocElementComponent, selector: "li[ng-doc-toc-element]", inputs: { href: "href", selected: "selected", level: "level" }, host: { properties: { "attr.data-ng-doc-selected": "this.selected", "attr.data-ng-doc-level": "this.level" } }, ngImport: i0, template: "<a [href]=\"href\" [style.padding-left]=\"'calc(var(--ng-doc-toc-indent) * ' + level + ')'\"><ng-content></ng-content></a>\n", styles: [":host{display:flex;margin:0;color:var(--ng-doc-text)}:host[data-ng-doc-level=\"1\"] a{padding-left:var(--ng-doc-base-gutter)}:host[data-ng-doc-selected=true]{color:var(--ng-doc-primary)}:host:hover{cursor:pointer;color:var(--ng-doc-primary)}:host a{padding:calc(var(--ng-doc-base-gutter) / 2);color:inherit;width:100%;text-decoration:none;word-break:break-word}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
22
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgDocTocElementComponent, isStandalone: true, selector: "li[ng-doc-toc-element]", inputs: { href: "href", selected: "selected", level: "level" }, host: { properties: { "attr.data-ng-doc-selected": "this.selected", "attr.data-ng-doc-level": "this.level" } }, ngImport: i0, template: "<a [href]=\"href\" [style.padding-left]=\"'calc(var(--ng-doc-toc-indent) * ' + level + ')'\"><ng-content></ng-content></a>\n", styles: [":host{display:flex;margin:0;color:var(--ng-doc-text)}:host[data-ng-doc-level=\"1\"] a{padding-left:var(--ng-doc-base-gutter)}:host[data-ng-doc-selected=true]{color:var(--ng-doc-primary)}:host:hover{cursor:pointer;color:var(--ng-doc-primary)}:host a{padding:calc(var(--ng-doc-base-gutter) / 2);color:inherit;width:100%;text-decoration:none;word-break:break-word}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
24
23
  }
25
24
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocTocElementComponent, decorators: [{
26
25
  type: Component,
27
- args: [{ selector: 'li[ng-doc-toc-element]', changeDetection: ChangeDetectionStrategy.OnPush, template: "<a [href]=\"href\" [style.padding-left]=\"'calc(var(--ng-doc-toc-indent) * ' + level + ')'\"><ng-content></ng-content></a>\n", styles: [":host{display:flex;margin:0;color:var(--ng-doc-text)}:host[data-ng-doc-level=\"1\"] a{padding-left:var(--ng-doc-base-gutter)}:host[data-ng-doc-selected=true]{color:var(--ng-doc-primary)}:host:hover{cursor:pointer;color:var(--ng-doc-primary)}:host a{padding:calc(var(--ng-doc-base-gutter) / 2);color:inherit;width:100%;text-decoration:none;word-break:break-word}\n"] }]
26
+ args: [{ selector: 'li[ng-doc-toc-element]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<a [href]=\"href\" [style.padding-left]=\"'calc(var(--ng-doc-toc-indent) * ' + level + ')'\"><ng-content></ng-content></a>\n", styles: [":host{display:flex;margin:0;color:var(--ng-doc-text)}:host[data-ng-doc-level=\"1\"] a{padding-left:var(--ng-doc-base-gutter)}:host[data-ng-doc-selected=true]{color:var(--ng-doc-primary)}:host:hover{cursor:pointer;color:var(--ng-doc-primary)}:host a{padding:calc(var(--ng-doc-base-gutter) / 2);color:inherit;width:100%;text-decoration:none;word-break:break-word}\n"] }]
28
27
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { href: [{
29
28
  type: Input
30
29
  }], selected: [{
@@ -100,7 +99,7 @@ let NgDocTocComponent = class NgDocTocComponent {
100
99
  this.changeDetectorRef.detectChanges();
101
100
  }
102
101
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocTocComponent, deps: [{ token: DOCUMENT }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i1.Router }], target: i0.ɵɵFactoryTarget.Component }); }
103
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgDocTocComponent, selector: "ng-doc-toc", inputs: { pageContainer: "pageContainer" }, viewQueries: [{ propertyName: "selection", first: true, predicate: ["selection"], descendants: true, read: ElementRef, static: true }, { propertyName: "elements", predicate: NgDocTocElementComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"ng-doc-toc-wrapper\">\n\t<div class=\"ng-doc-toc-selection\" #selection></div>\n\t<ul class=\"ng-doc-toc\">\n\t\t<li\n\t\t\t*ngFor=\"let item of map\"\n\t\t\tng-doc-toc-element\n\t\t\t[href]=\"item.path\"\n\t\t\t[level]=\"item.level\"\n\t\t\t[selected]=\"item === activeItem\"\n\t\t>\n\t\t\t{{ item.title }}\n\t\t</li>\n\t</ul>\n</div>\n", styles: [":host{position:relative;width:var(--ng-doc-toc-width)}:host .ng-doc-toc-wrapper{position:fixed;overflow-y:auto;height:calc(100% - var(--ng-doc-navbar-height) - var(--ng-doc-base-gutter) * 5);width:var(--ng-doc-toc-width)}:host .ng-doc-toc-wrapper .ng-doc-toc-selection{position:absolute;transform:translate(-50%);width:calc(var(--ng-doc-base-gutter) / 2);border-radius:calc(var(--ng-doc-base-gutter) / 2);background-color:var(--ng-doc-primary);left:calc(var(--ng-doc-toc-margin) + 1px);transition:var(--ng-doc-transition)}:host .ng-doc-toc-wrapper .ng-doc-toc{list-style:none;margin:0 0 0 var(--ng-doc-toc-margin);border-left:1px solid var(--ng-doc-base-3);padding:0 0 0 var(--ng-doc-base-gutter)}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: NgDocTocElementComponent, selector: "li[ng-doc-toc-element]", inputs: ["href", "selected", "level"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
102
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgDocTocComponent, isStandalone: true, selector: "ng-doc-toc", inputs: { pageContainer: "pageContainer" }, viewQueries: [{ propertyName: "selection", first: true, predicate: ["selection"], descendants: true, read: ElementRef, static: true }, { propertyName: "elements", predicate: NgDocTocElementComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"ng-doc-toc-wrapper\">\n\t<div class=\"ng-doc-toc-selection\" #selection></div>\n\t<ul class=\"ng-doc-toc\">\n\t\t<li\n\t\t\t*ngFor=\"let item of map\"\n\t\t\tng-doc-toc-element\n\t\t\t[href]=\"item.path\"\n\t\t\t[level]=\"item.level\"\n\t\t\t[selected]=\"item === activeItem\"\n\t\t>\n\t\t\t{{ item.title }}\n\t\t</li>\n\t</ul>\n</div>\n", styles: [":host{position:relative;width:var(--ng-doc-toc-width)}:host .ng-doc-toc-wrapper{position:fixed;overflow-y:auto;height:calc(100% - var(--ng-doc-navbar-height) - var(--ng-doc-base-gutter) * 5);width:var(--ng-doc-toc-width)}:host .ng-doc-toc-wrapper .ng-doc-toc-selection{position:absolute;transform:translate(-50%);width:calc(var(--ng-doc-base-gutter) / 2);border-radius:calc(var(--ng-doc-base-gutter) / 2);background-color:var(--ng-doc-primary);left:calc(var(--ng-doc-toc-margin) + 1px);transition:var(--ng-doc-transition)}:host .ng-doc-toc-wrapper .ng-doc-toc{list-style:none;margin:0 0 0 var(--ng-doc-toc-margin);border-left:1px solid var(--ng-doc-base-3);padding:0 0 0 var(--ng-doc-base-gutter)}\n"], dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: NgDocTocElementComponent, selector: "li[ng-doc-toc-element]", inputs: ["href", "selected", "level"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
104
103
  };
105
104
  NgDocTocComponent = __decorate([
106
105
  UntilDestroy(),
@@ -112,7 +111,7 @@ NgDocTocComponent = __decorate([
112
111
  ], NgDocTocComponent);
113
112
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocTocComponent, decorators: [{
114
113
  type: Component,
115
- args: [{ selector: 'ng-doc-toc', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"ng-doc-toc-wrapper\">\n\t<div class=\"ng-doc-toc-selection\" #selection></div>\n\t<ul class=\"ng-doc-toc\">\n\t\t<li\n\t\t\t*ngFor=\"let item of map\"\n\t\t\tng-doc-toc-element\n\t\t\t[href]=\"item.path\"\n\t\t\t[level]=\"item.level\"\n\t\t\t[selected]=\"item === activeItem\"\n\t\t>\n\t\t\t{{ item.title }}\n\t\t</li>\n\t</ul>\n</div>\n", styles: [":host{position:relative;width:var(--ng-doc-toc-width)}:host .ng-doc-toc-wrapper{position:fixed;overflow-y:auto;height:calc(100% - var(--ng-doc-navbar-height) - var(--ng-doc-base-gutter) * 5);width:var(--ng-doc-toc-width)}:host .ng-doc-toc-wrapper .ng-doc-toc-selection{position:absolute;transform:translate(-50%);width:calc(var(--ng-doc-base-gutter) / 2);border-radius:calc(var(--ng-doc-base-gutter) / 2);background-color:var(--ng-doc-primary);left:calc(var(--ng-doc-toc-margin) + 1px);transition:var(--ng-doc-transition)}:host .ng-doc-toc-wrapper .ng-doc-toc{list-style:none;margin:0 0 0 var(--ng-doc-toc-margin);border-left:1px solid var(--ng-doc-base-3);padding:0 0 0 var(--ng-doc-base-gutter)}\n"] }]
114
+ args: [{ selector: 'ng-doc-toc', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgFor, NgDocTocElementComponent], template: "<div class=\"ng-doc-toc-wrapper\">\n\t<div class=\"ng-doc-toc-selection\" #selection></div>\n\t<ul class=\"ng-doc-toc\">\n\t\t<li\n\t\t\t*ngFor=\"let item of map\"\n\t\t\tng-doc-toc-element\n\t\t\t[href]=\"item.path\"\n\t\t\t[level]=\"item.level\"\n\t\t\t[selected]=\"item === activeItem\"\n\t\t>\n\t\t\t{{ item.title }}\n\t\t</li>\n\t</ul>\n</div>\n", styles: [":host{position:relative;width:var(--ng-doc-toc-width)}:host .ng-doc-toc-wrapper{position:fixed;overflow-y:auto;height:calc(100% - var(--ng-doc-navbar-height) - var(--ng-doc-base-gutter) * 5);width:var(--ng-doc-toc-width)}:host .ng-doc-toc-wrapper .ng-doc-toc-selection{position:absolute;transform:translate(-50%);width:calc(var(--ng-doc-base-gutter) / 2);border-radius:calc(var(--ng-doc-base-gutter) / 2);background-color:var(--ng-doc-primary);left:calc(var(--ng-doc-toc-margin) + 1px);transition:var(--ng-doc-transition)}:host .ng-doc-toc-wrapper .ng-doc-toc{list-style:none;margin:0 0 0 var(--ng-doc-toc-margin);border-left:1px solid var(--ng-doc-base-3);padding:0 0 0 var(--ng-doc-base-gutter)}\n"] }]
116
115
  }], ctorParameters: function () { return [{ type: Document, decorators: [{
117
116
  type: Inject,
118
117
  args: [DOCUMENT]
@@ -126,23 +125,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
126
125
  args: [NgDocTocElementComponent]
127
126
  }] } });
128
127
 
129
- class NgDocPageMapModule {
130
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocPageMapModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
131
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: NgDocPageMapModule, declarations: [NgDocTocComponent, NgDocTocElementComponent], imports: [CommonModule, RouterLinkWithHref, NgDocDotModule, RouterLink], exports: [NgDocTocComponent, NgDocTocElementComponent] }); }
132
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocPageMapModule, imports: [CommonModule, NgDocDotModule] }); }
133
- }
134
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocPageMapModule, decorators: [{
135
- type: NgModule,
136
- args: [{
137
- declarations: [NgDocTocComponent, NgDocTocElementComponent],
138
- imports: [CommonModule, RouterLinkWithHref, NgDocDotModule, RouterLink],
139
- exports: [NgDocTocComponent, NgDocTocElementComponent],
140
- }]
141
- }] });
142
-
143
128
  /**
144
129
  * Generated bundle index. Do not edit.
145
130
  */
146
131
 
147
- export { NgDocPageMapModule, NgDocTocComponent, NgDocTocElementComponent };
132
+ export { NgDocTocComponent, NgDocTocElementComponent };
148
133
  //# sourceMappingURL=ng-doc-app-components-toc.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ng-doc-app-components-toc.mjs","sources":["../../../../libs/app/components/toc/toc-element/toc-element.component.ts","../../../../libs/app/components/toc/toc-element/toc-element.component.html","../../../../libs/app/components/toc/toc.component.ts","../../../../libs/app/components/toc/toc.component.html","../../../../libs/app/components/toc/toc.module.ts","../../../../libs/app/components/toc/ng-doc-app-components-toc.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, ElementRef, HostBinding, Input} from '@angular/core';\n\n@Component({\n\tselector: 'li[ng-doc-toc-element]',\n\ttemplateUrl: './toc-element.component.html',\n\tstyleUrls: ['./toc-element.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgDocTocElementComponent {\n\t@Input()\n\thref: string = '';\n\n\t@Input()\n\t@HostBinding('attr.data-ng-doc-selected')\n\tselected: boolean = false;\n\n\t@Input()\n\t@HostBinding('attr.data-ng-doc-level')\n\tlevel: number = 1;\n\n\tconstructor(readonly elementRef: ElementRef<HTMLElement>) {}\n}\n","<a [href]=\"href\" [style.padding-left]=\"'calc(var(--ng-doc-toc-indent) * ' + level + ')'\"><ng-content></ng-content></a>\n","import {DOCUMENT} from '@angular/common';\nimport {\n\tAfterViewInit,\n\tChangeDetectionStrategy,\n\tChangeDetectorRef,\n\tComponent,\n\tElementRef,\n\tInject,\n\tInput,\n\tNgZone,\n\tOnChanges,\n\tQueryList,\n\tRenderer2,\n\tViewChild,\n\tViewChildren,\n} from '@angular/core';\nimport {Event as REvent, Router, Scroll} from '@angular/router';\nimport {generateToc} from '@ng-doc/app/helpers';\nimport {NgDocTocItem} from '@ng-doc/app/interfaces';\nimport {isPresent} from '@ng-doc/core/helpers/is-present';\nimport {ngDocZoneOptimize} from '@ng-doc/ui-kit';\nimport {UntilDestroy} from '@ngneat/until-destroy';\nimport {fromEvent, merge, Observable} from 'rxjs';\nimport {debounceTime, distinctUntilChanged, filter, map, startWith} from 'rxjs/operators';\n\nimport {NgDocTocElementComponent} from './toc-element/toc-element.component';\n\n@Component({\n\tselector: 'ng-doc-toc',\n\ttemplateUrl: './toc.component.html',\n\tstyleUrls: ['./toc.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\n@UntilDestroy()\nexport class NgDocTocComponent implements OnChanges, AfterViewInit {\n\t@Input()\n\tpageContainer?: HTMLElement;\n\n\t@ViewChild('selection', {static: true, read: ElementRef})\n\tselection?: ElementRef<HTMLElement>;\n\n\t@ViewChildren(NgDocTocElementComponent)\n\telements: QueryList<NgDocTocElementComponent> = new QueryList<NgDocTocElementComponent>();\n\n\tmap: NgDocTocItem[] = [];\n\tactiveItem?: NgDocTocItem;\n\n\tconstructor(\n\t\t@Inject(DOCUMENT)\n\t\tprivate readonly document: Document,\n\t\tprivate readonly ngZone: NgZone,\n\t\tprivate readonly changeDetectorRef: ChangeDetectorRef,\n\t\tprivate readonly renderer: Renderer2,\n\t\tprivate readonly router: Router,\n\t) {}\n\n\tngOnChanges(): void {\n\t\t/**\n\t\t * We need to use `Promise.resolve().then()` here because we need to wait for the `pageContainer` to be rendered\n\t\t * and processed by the processors\n\t\t */\n\t\tPromise.resolve().then(() => {\n\t\t\tif (this.pageContainer) {\n\t\t\t\tthis.map = generateToc(this.pageContainer);\n\t\t\t\tthis.changeDetectorRef.detectChanges();\n\t\t\t}\n\t\t});\n\t}\n\n\tngAfterViewInit(): void {\n\t\tconst scrollSelection: Observable<NgDocTocItem> = fromEvent(this.document, 'scroll').pipe(\n\t\t\tmap((event: Event) => (event.target as Document).scrollingElement as HTMLElement),\n\t\t\tstartWith(this.document.scrollingElement as HTMLElement),\n\t\t\tfilter(() => !!this.map.length),\n\t\t\tmap((target: HTMLElement) => {\n\t\t\t\tconst percentage: number = (target.scrollTop * 100) / (target.scrollHeight - target.offsetHeight);\n\t\t\t\tconst selectionLine: number = target.scrollTop + (target.offsetHeight * percentage) / 100;\n\n\t\t\t\treturn this.map.reduce((pTarget: NgDocTocItem, cTarget: NgDocTocItem) => {\n\t\t\t\t\tconst pTop: number = pTarget.element.getBoundingClientRect().top + target.scrollTop;\n\t\t\t\t\tconst cTop: number = cTarget.element.getBoundingClientRect().top + target.scrollTop;\n\n\t\t\t\t\treturn Math.abs(cTop - selectionLine) < Math.abs(pTop - selectionLine) ? cTarget : pTarget;\n\t\t\t\t});\n\t\t\t}),\n\t\t);\n\t\tconst routerSelection: Observable<NgDocTocItem> = this.router.events.pipe(\n\t\t\tmap((event: REvent) => {\n\t\t\t\tif (event instanceof Scroll) {\n\t\t\t\t\tconst item: NgDocTocItem | undefined = this.map.find((item: NgDocTocItem) =>\n\t\t\t\t\t\titem.path.includes(event.routerEvent.url),\n\t\t\t\t\t);\n\n\t\t\t\t\tif (item) {\n\t\t\t\t\t\treturn item;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn null;\n\t\t\t}),\n\t\t\tfilter(isPresent),\n\t\t\tdebounceTime(20),\n\t\t);\n\n\t\tPromise.resolve().then(() => {\n\t\t\tmerge(scrollSelection, routerSelection)\n\t\t\t\t.pipe(distinctUntilChanged(), ngDocZoneOptimize(this.ngZone))\n\t\t\t\t.subscribe(this.select.bind(this));\n\t\t});\n\t}\n\n\tprivate select(item: NgDocTocItem): void {\n\t\tconst index: number = this.map.indexOf(item);\n\n\t\tif (this.selection) {\n\t\t\tconst element: HTMLElement | undefined = this.elements.toArray()[index]?.elementRef.nativeElement;\n\n\t\t\tif (element) {\n\t\t\t\tthis.renderer.setStyle(this.selection.nativeElement, 'top', `${element.offsetTop}px`);\n\t\t\t\tthis.renderer.setStyle(this.selection.nativeElement, 'height', `${element.offsetHeight}px`);\n\n\t\t\t\telement.scrollIntoView({block: 'nearest'});\n\t\t\t}\n\t\t}\n\n\t\tthis.activeItem = item;\n\t\tthis.changeDetectorRef.detectChanges();\n\t}\n}\n","<div class=\"ng-doc-toc-wrapper\">\n\t<div class=\"ng-doc-toc-selection\" #selection></div>\n\t<ul class=\"ng-doc-toc\">\n\t\t<li\n\t\t\t*ngFor=\"let item of map\"\n\t\t\tng-doc-toc-element\n\t\t\t[href]=\"item.path\"\n\t\t\t[level]=\"item.level\"\n\t\t\t[selected]=\"item === activeItem\"\n\t\t>\n\t\t\t{{ item.title }}\n\t\t</li>\n\t</ul>\n</div>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {RouterLink, RouterLinkWithHref} from '@angular/router';\nimport {NgDocDotModule} from '@ng-doc/ui-kit';\n\nimport {NgDocTocComponent} from './toc.component';\nimport {NgDocTocElementComponent} from './toc-element/toc-element.component';\n\n@NgModule({\n\tdeclarations: [NgDocTocComponent, NgDocTocElementComponent],\n\timports: [CommonModule, RouterLinkWithHref, NgDocDotModule, RouterLink],\n\texports: [NgDocTocComponent, NgDocTocElementComponent],\n})\nexport class NgDocPageMapModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i3.NgDocTocElementComponent"],"mappings":";;;;;;;;;;;;;;AAEA,MAMa,wBAAwB,CAAA;AAYpC,IAAA,WAAA,CAAqB,UAAmC,EAAA;QAAnC,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;QAVxD,IAAI,CAAA,IAAA,GAAW,EAAE,CAAC;QAIlB,IAAQ,CAAA,QAAA,GAAY,KAAK,CAAC;QAI1B,IAAK,CAAA,KAAA,GAAW,CAAC,CAAC;KAE0C;8GAZhD,wBAAwB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAxB,IAAA,SAAA,IAAA,CAAA,IAAA,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AAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EAJf,YAAA,EAAA,CAAA,iBAAiB,EAAE,wBAAwB,aAChD,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAE,UAAU,CAC5D,EAAA,OAAA,EAAA,CAAA,iBAAiB,EAAE,wBAAwB,CAAA,EAAA,CAAA,CAAA,EAAA;+GAEzC,kBAAkB,EAAA,OAAA,EAAA,CAHpB,YAAY,EAAsB,cAAc,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAG9C,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,YAAY,EAAE,CAAC,iBAAiB,EAAE,wBAAwB,CAAC;oBAC3D,OAAO,EAAE,CAAC,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAE,UAAU,CAAC;AACvE,oBAAA,OAAO,EAAE,CAAC,iBAAiB,EAAE,wBAAwB,CAAC;AACtD,iBAAA,CAAA;;;ACZD;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-doc-app-components-toc.mjs","sources":["../../../../libs/app/components/toc/toc-element/toc-element.component.ts","../../../../libs/app/components/toc/toc-element/toc-element.component.html","../../../../libs/app/components/toc/toc.component.ts","../../../../libs/app/components/toc/toc.component.html","../../../../libs/app/components/toc/ng-doc-app-components-toc.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, ElementRef, HostBinding, Input} from '@angular/core';\n\n@Component({\n\tselector: 'li[ng-doc-toc-element]',\n\ttemplateUrl: './toc-element.component.html',\n\tstyleUrls: ['./toc-element.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstandalone: true,\n})\nexport class NgDocTocElementComponent {\n\t@Input()\n\thref: string = '';\n\n\t@Input()\n\t@HostBinding('attr.data-ng-doc-selected')\n\tselected: boolean = false;\n\n\t@Input()\n\t@HostBinding('attr.data-ng-doc-level')\n\tlevel: number = 1;\n\n\tconstructor(readonly elementRef: ElementRef<HTMLElement>) {}\n}\n","<a [href]=\"href\" [style.padding-left]=\"'calc(var(--ng-doc-toc-indent) * ' + level + ')'\"><ng-content></ng-content></a>\n","import {DOCUMENT, NgFor} from '@angular/common';\nimport {\n\tAfterViewInit,\n\tChangeDetectionStrategy,\n\tChangeDetectorRef,\n\tComponent,\n\tElementRef,\n\tInject,\n\tInput,\n\tNgZone,\n\tOnChanges,\n\tQueryList,\n\tRenderer2,\n\tViewChild,\n\tViewChildren,\n} from '@angular/core';\nimport {Event as REvent, Router, Scroll} from '@angular/router';\nimport {generateToc} from '@ng-doc/app/helpers';\nimport {NgDocTocItem} from '@ng-doc/app/interfaces';\nimport {isPresent} from '@ng-doc/core/helpers/is-present';\nimport {ngDocZoneOptimize} from '@ng-doc/ui-kit';\nimport {UntilDestroy} from '@ngneat/until-destroy';\nimport {fromEvent, merge, Observable} from 'rxjs';\nimport {debounceTime, distinctUntilChanged, filter, map, startWith} from 'rxjs/operators';\n\nimport {NgDocTocElementComponent} from './toc-element/toc-element.component';\n\n@Component({\n\tselector: 'ng-doc-toc',\n\ttemplateUrl: './toc.component.html',\n\tstyleUrls: ['./toc.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstandalone: true,\n\timports: [NgFor, NgDocTocElementComponent],\n})\n@UntilDestroy()\nexport class NgDocTocComponent implements OnChanges, AfterViewInit {\n\t@Input()\n\tpageContainer?: HTMLElement;\n\n\t@ViewChild('selection', {static: true, read: ElementRef})\n\tselection?: ElementRef<HTMLElement>;\n\n\t@ViewChildren(NgDocTocElementComponent)\n\telements: QueryList<NgDocTocElementComponent> = new QueryList<NgDocTocElementComponent>();\n\n\tmap: NgDocTocItem[] = [];\n\tactiveItem?: NgDocTocItem;\n\n\tconstructor(\n\t\t@Inject(DOCUMENT)\n\t\tprivate readonly document: Document,\n\t\tprivate readonly ngZone: NgZone,\n\t\tprivate readonly changeDetectorRef: ChangeDetectorRef,\n\t\tprivate readonly renderer: Renderer2,\n\t\tprivate readonly router: Router,\n\t) {}\n\n\tngOnChanges(): void {\n\t\t/**\n\t\t * We need to use `Promise.resolve().then()` here because we need to wait for the `pageContainer` to be rendered\n\t\t * and processed by the processors\n\t\t */\n\t\tPromise.resolve().then(() => {\n\t\t\tif (this.pageContainer) {\n\t\t\t\tthis.map = generateToc(this.pageContainer);\n\t\t\t\tthis.changeDetectorRef.detectChanges();\n\t\t\t}\n\t\t});\n\t}\n\n\tngAfterViewInit(): void {\n\t\tconst scrollSelection: Observable<NgDocTocItem> = fromEvent(this.document, 'scroll').pipe(\n\t\t\tmap((event: Event) => (event.target as Document).scrollingElement as HTMLElement),\n\t\t\tstartWith(this.document.scrollingElement as HTMLElement),\n\t\t\tfilter(() => !!this.map.length),\n\t\t\tmap((target: HTMLElement) => {\n\t\t\t\tconst percentage: number = (target.scrollTop * 100) / (target.scrollHeight - target.offsetHeight);\n\t\t\t\tconst selectionLine: number = target.scrollTop + (target.offsetHeight * percentage) / 100;\n\n\t\t\t\treturn this.map.reduce((pTarget: NgDocTocItem, cTarget: NgDocTocItem) => {\n\t\t\t\t\tconst pTop: number = pTarget.element.getBoundingClientRect().top + target.scrollTop;\n\t\t\t\t\tconst cTop: number = cTarget.element.getBoundingClientRect().top + target.scrollTop;\n\n\t\t\t\t\treturn Math.abs(cTop - selectionLine) < Math.abs(pTop - selectionLine) ? cTarget : pTarget;\n\t\t\t\t});\n\t\t\t}),\n\t\t);\n\t\tconst routerSelection: Observable<NgDocTocItem> = this.router.events.pipe(\n\t\t\tmap((event: REvent) => {\n\t\t\t\tif (event instanceof Scroll) {\n\t\t\t\t\tconst item: NgDocTocItem | undefined = this.map.find((item: NgDocTocItem) =>\n\t\t\t\t\t\titem.path.includes(event.routerEvent.url),\n\t\t\t\t\t);\n\n\t\t\t\t\tif (item) {\n\t\t\t\t\t\treturn item;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn null;\n\t\t\t}),\n\t\t\tfilter(isPresent),\n\t\t\tdebounceTime(20),\n\t\t);\n\n\t\tPromise.resolve().then(() => {\n\t\t\tmerge(scrollSelection, routerSelection)\n\t\t\t\t.pipe(distinctUntilChanged(), ngDocZoneOptimize(this.ngZone))\n\t\t\t\t.subscribe(this.select.bind(this));\n\t\t});\n\t}\n\n\tprivate select(item: NgDocTocItem): void {\n\t\tconst index: number = this.map.indexOf(item);\n\n\t\tif (this.selection) {\n\t\t\tconst element: HTMLElement | undefined = this.elements.toArray()[index]?.elementRef.nativeElement;\n\n\t\t\tif (element) {\n\t\t\t\tthis.renderer.setStyle(this.selection.nativeElement, 'top', `${element.offsetTop}px`);\n\t\t\t\tthis.renderer.setStyle(this.selection.nativeElement, 'height', `${element.offsetHeight}px`);\n\n\t\t\t\telement.scrollIntoView({block: 'nearest'});\n\t\t\t}\n\t\t}\n\n\t\tthis.activeItem = item;\n\t\tthis.changeDetectorRef.detectChanges();\n\t}\n}\n","<div class=\"ng-doc-toc-wrapper\">\n\t<div class=\"ng-doc-toc-selection\" #selection></div>\n\t<ul class=\"ng-doc-toc\">\n\t\t<li\n\t\t\t*ngFor=\"let item of map\"\n\t\t\tng-doc-toc-element\n\t\t\t[href]=\"item.path\"\n\t\t\t[level]=\"item.level\"\n\t\t\t[selected]=\"item === activeItem\"\n\t\t>\n\t\t\t{{ item.title }}\n\t\t</li>\n\t</ul>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAEA,MAOa,wBAAwB,CAAA;AAYpC,IAAA,WAAA,CAAqB,UAAmC,EAAA;QAAnC,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;QAVxD,I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CAAA,6rBAAA,CAAA,EAAA,CAAA;;0BAiBxC,MAAM;2BAAC,QAAQ,CAAA;8IAZjB,aAAa,EAAA,CAAA;sBADZ,KAAK;gBAIN,SAAS,EAAA,CAAA;sBADR,SAAS;uBAAC,WAAW,EAAE,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAC,CAAA;gBAIxD,QAAQ,EAAA,CAAA;sBADP,YAAY;uBAAC,wBAAwB,CAAA;;;AE3CvC;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, Input, HostBinding, NgModule } from '@angular/core';
2
+ import { Directive, Input, HostBinding } from '@angular/core';
3
3
  import highlight from 'highlight.js/lib/core';
4
4
  import xml from 'highlight.js/lib/languages/xml';
5
5
 
@@ -23,12 +23,13 @@ class NgDocCodeHighlighterDirective {
23
23
  }
24
24
  }
25
25
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocCodeHighlighterDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
26
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: NgDocCodeHighlighterDirective, selector: "code[ngDocCodeHighlighter]", inputs: { code: ["ngDocCodeHighlighter", "code"], html: "html", language: "language" }, host: { properties: { "class.hljs": "this.highlightJsClass" } }, usesOnChanges: true, ngImport: i0 }); }
26
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: NgDocCodeHighlighterDirective, isStandalone: true, selector: "code[ngDocCodeHighlighter]", inputs: { code: ["ngDocCodeHighlighter", "code"], html: "html", language: "language" }, host: { properties: { "class.hljs": "this.highlightJsClass" } }, usesOnChanges: true, ngImport: i0 }); }
27
27
  }
28
28
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocCodeHighlighterDirective, decorators: [{
29
29
  type: Directive,
30
30
  args: [{
31
31
  selector: 'code[ngDocCodeHighlighter]',
32
+ standalone: true,
32
33
  }]
33
34
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { code: [{
34
35
  type: Input,
@@ -42,22 +43,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
42
43
  args: ['class.hljs']
43
44
  }] } });
44
45
 
45
- class NgDocCodeHighlighterModule {
46
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocCodeHighlighterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
47
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: NgDocCodeHighlighterModule, declarations: [NgDocCodeHighlighterDirective], exports: [NgDocCodeHighlighterDirective] }); }
48
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocCodeHighlighterModule }); }
49
- }
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocCodeHighlighterModule, decorators: [{
51
- type: NgModule,
52
- args: [{
53
- declarations: [NgDocCodeHighlighterDirective],
54
- exports: [NgDocCodeHighlighterDirective],
55
- }]
56
- }] });
57
-
58
46
  /**
59
47
  * Generated bundle index. Do not edit.
60
48
  */
61
49
 
62
- export { NgDocCodeHighlighterDirective, NgDocCodeHighlighterModule };
50
+ export { NgDocCodeHighlighterDirective };
63
51
  //# sourceMappingURL=ng-doc-app-directives-code-highlighter.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ng-doc-app-directives-code-highlighter.mjs","sources":["../../../../libs/app/directives/code-highlighter/code-highlighter.directive.ts","../../../../libs/app/directives/code-highlighter/code-highlighter.module.ts","../../../../libs/app/directives/code-highlighter/ng-doc-app-directives-code-highlighter.ts"],"sourcesContent":["import {Directive, ElementRef, HostBinding, Input, OnChanges} from '@angular/core';\nimport {HighlightResult} from 'highlight.js';\nimport highlight from 'highlight.js/lib/core';\nimport xml from 'highlight.js/lib/languages/xml';\n\nhighlight.registerLanguage('html', xml);\nhighlight.registerLanguage('xml', xml);\n\n@Directive({\n\tselector: 'code[ngDocCodeHighlighter]',\n})\nexport class NgDocCodeHighlighterDirective implements OnChanges {\n\t@Input('ngDocCodeHighlighter')\n\tcode: string = '';\n\n\t@Input()\n\thtml: string = '';\n\n\t@Input()\n\tlanguage: string = 'typescript';\n\n\t@HostBinding('class.hljs')\n\tprotected highlightJsClass: boolean = true;\n\n\tconstructor(private readonly elementRef: ElementRef<HTMLElement>) {}\n\n\tngOnChanges(): void {\n\t\tif (this.code) {\n\t\t\tconst result: HighlightResult = highlight.highlight(this.code, {language: this.language});\n\n\t\t\tthis.elementRef.nativeElement.innerHTML = result.value ?? this.html;\n\t\t} else {\n\t\t\tthis.elementRef.nativeElement.innerHTML = this.html;\n\t\t}\n\t}\n}\n","import {NgModule} from '@angular/core';\n\nimport {NgDocCodeHighlighterDirective} from './code-highlighter.directive';\n\n@NgModule({\n\tdeclarations: [NgDocCodeHighlighterDirective],\n\texports: [NgDocCodeHighlighterDirective],\n})\nexport class NgDocCodeHighlighterModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAKA,SAAS,CAAC,gBAAgB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACxC,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AAEvC,MAGa,6BAA6B,CAAA;AAazC,IAAA,WAAA,CAA6B,UAAmC,EAAA;QAAnC,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;QAXhE,IAAI,CAAA,IAAA,GAAW,EAAE,CAAC;QAGlB,IAAI,CAAA,IAAA,GAAW,EAAE,CAAC;QAGlB,IAAQ,CAAA,QAAA,G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gBAII,gBAAgB,EAAA,CAAA;sBADzB,WAAW;uBAAC,YAAY,CAAA;;;ACjB1B,MAIa,0BAA0B,CAAA;8GAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAA1B,0BAA0B,EAAA,YAAA,EAAA,CAHvB,6BAA6B,CAAA,EAAA,OAAA,EAAA,CAClC,6BAA6B,CAAA,EAAA,CAAA,CAAA,EAAA;+GAE3B,0BAA0B,EAAA,CAAA,CAAA,EAAA;;2FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAJtC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACT,YAAY,EAAE,CAAC,6BAA6B,CAAC;oBAC7C,OAAO,EAAE,CAAC,6BAA6B,CAAC;AACxC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-doc-app-directives-code-highlighter.mjs","sources":["../../../../libs/app/directives/code-highlighter/code-highlighter.directive.ts","../../../../libs/app/directives/code-highlighter/ng-doc-app-directives-code-highlighter.ts"],"sourcesContent":["import {Directive, ElementRef, HostBinding, Input, OnChanges} from '@angular/core';\nimport {HighlightResult} from 'highlight.js';\nimport highlight from 'highlight.js/lib/core';\nimport xml from 'highlight.js/lib/languages/xml';\n\nhighlight.registerLanguage('html', xml);\nhighlight.registerLanguage('xml', xml);\n\n@Directive({\n\tselector: 'code[ngDocCodeHighlighter]',\n\tstandalone: true,\n})\nexport class NgDocCodeHighlighterDirective implements OnChanges {\n\t@Input('ngDocCodeHighlighter')\n\tcode: string = '';\n\n\t@Input()\n\thtml: string = '';\n\n\t@Input()\n\tlanguage: string = 'typescript';\n\n\t@HostBinding('class.hljs')\n\tprotected highlightJsClass: boolean = true;\n\n\tconstructor(private readonly elementRef: ElementRef<HTMLElement>) {}\n\n\tngOnChanges(): void {\n\t\tif (this.code) {\n\t\t\tconst result: HighlightResult = highlight.highlight(this.code, {language: this.language});\n\n\t\t\tthis.elementRef.nativeElement.innerHTML = result.value ?? this.html;\n\t\t} else {\n\t\t\tthis.elementRef.nativeElement.innerHTML = this.html;\n\t\t}\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAKA,SAAS,CAAC,gBAAgB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACxC,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AAEvC,MAIa,6BAA6B,CAAA;AAazC,IAAA,WAAA,CAA6B,UAAmC,EAAA;QAAnC,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;QAXhE,IAAI,CAAA,IAAA,GAAW,EAAE,CAAC;QAGlB,IAAI,CAAA,IAAA,GAAW,EAAE,CAAC;QAGlB,IAAQ,CAAA,QAAA,GAAW,YAAY,CAAC;QAGtB,IAAgB,CAAA,gBAAA,GAAY,IAAI,CAAC;KAEyB;IAEpE,WAAW,GAAA;QACV,IAAI,IAAI,CAAC,IAAI,EAAE;AACd,YAAA,MAAM,MAAM,GAAoB,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,EAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAC,CAAC,CAAC;AAE1F,YAAA,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,GAAG,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC;AACpE,SAAA;AAAM,aAAA;YACN,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC;AACpD,SAAA;KACD;8GAvBW,6BAA6B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAA7B,6BAA6B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,4BAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,CAAA,sBAAA,EAAA,MAAA,CAAA,EAAA,IAAA,EAAA,MAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,YAAA,EAAA,uBAAA,EAAA,EAAA,EAAA,aAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAJzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,4BAA4B;AACtC,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA,CAAA;iGAGA,IAAI,EAAA,CAAA;sBADH,KAAK;uBAAC,sBAAsB,CAAA;gBAI7B,IAAI,EAAA,CAAA;sBADH,KAAK;gBAIN,QAAQ,EAAA,CAAA;sBADP,KAAK;gBAII,gBAAgB,EAAA,CAAA;sBADzB,WAAW;uBAAC,YAAY,CAAA;;;ACtB1B;;AAEG;;;;"}
@@ -1,12 +1,11 @@
1
1
  import { __decorate, __metadata } from 'tslib';
2
2
  import * as i0 from '@angular/core';
3
- import { ElementRef, Renderer2, Directive, Input, NgModule } from '@angular/core';
3
+ import { ElementRef, Renderer2, Directive, Input } from '@angular/core';
4
4
  import * as i1 from '@angular/router';
5
5
  import { NavigationEnd, Router } from '@angular/router';
6
6
  import { asArray } from '@ng-doc/core/helpers/as-array';
7
7
  import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
8
8
  import { filter, map, distinctUntilChanged } from 'rxjs/operators';
9
- import { CommonModule } from '@angular/common';
10
9
 
11
10
  let NgDocRouteActiveDirective = class NgDocRouteActiveDirective {
12
11
  constructor(elementRef, router, renderer) {
@@ -30,7 +29,7 @@ let NgDocRouteActiveDirective = class NgDocRouteActiveDirective {
30
29
  });
31
30
  }
32
31
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocRouteActiveDirective, deps: [{ token: i0.ElementRef }, { token: i1.Router }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
33
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: NgDocRouteActiveDirective, selector: "[ngDocRouteActive]", inputs: { link: ["ngDocRouteActive", "link"], activeClass: "activeClass", matchOptions: "matchOptions" }, ngImport: i0 }); }
32
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: NgDocRouteActiveDirective, isStandalone: true, selector: "[ngDocRouteActive]", inputs: { link: ["ngDocRouteActive", "link"], activeClass: "activeClass", matchOptions: "matchOptions" }, ngImport: i0 }); }
34
33
  };
35
34
  NgDocRouteActiveDirective = __decorate([
36
35
  UntilDestroy(),
@@ -42,6 +41,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
42
41
  type: Directive,
43
42
  args: [{
44
43
  selector: '[ngDocRouteActive]',
44
+ standalone: true,
45
45
  }]
46
46
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.Router }, { type: i0.Renderer2 }]; }, propDecorators: { link: [{
47
47
  type: Input,
@@ -52,23 +52,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
52
52
  type: Input
53
53
  }] } });
54
54
 
55
- class NgDocRouteActiveModule {
56
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocRouteActiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
57
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: NgDocRouteActiveModule, declarations: [NgDocRouteActiveDirective], imports: [CommonModule], exports: [NgDocRouteActiveDirective] }); }
58
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocRouteActiveModule, imports: [CommonModule] }); }
59
- }
60
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocRouteActiveModule, decorators: [{
61
- type: NgModule,
62
- args: [{
63
- declarations: [NgDocRouteActiveDirective],
64
- imports: [CommonModule],
65
- exports: [NgDocRouteActiveDirective],
66
- }]
67
- }] });
68
-
69
55
  /**
70
56
  * Generated bundle index. Do not edit.
71
57
  */
72
58
 
73
- export { NgDocRouteActiveDirective, NgDocRouteActiveModule };
59
+ export { NgDocRouteActiveDirective };
74
60
  //# sourceMappingURL=ng-doc-app-directives-route-active.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ng-doc-app-directives-route-active.mjs","sources":["../../../../libs/app/directives/route-active/route-active.directive.ts","../../../../libs/app/directives/route-active/route-active.module.ts","../../../../libs/app/directives/route-active/ng-doc-app-directives-route-active.ts"],"sourcesContent":["import {Directive, ElementRef, Input, Renderer2} from '@angular/core';\nimport {Event, IsActiveMatchOptions, NavigationEnd, Router} from '@angular/router';\nimport {asArray} from '@ng-doc/core/helpers/as-array';\nimport {UntilDestroy, untilDestroyed} from '@ngneat/until-destroy';\nimport {distinctUntilChanged, filter, map} from 'rxjs/operators';\n\n@Directive({\n\tselector: '[ngDocRouteActive]',\n})\n@UntilDestroy()\nexport class NgDocRouteActiveDirective {\n\t@Input('ngDocRouteActive')\n\tlink: string = '';\n\n\t@Input()\n\tactiveClass: string | string[] = [];\n\n\t@Input()\n\tmatchOptions: IsActiveMatchOptions = {\n\t\tfragment: 'exact',\n\t\tpaths: 'subset',\n\t\tqueryParams: 'exact',\n\t\tmatrixParams: 'exact',\n\t};\n\n\tconstructor(\n\t\tprivate readonly elementRef: ElementRef<HTMLElement>,\n\t\tprivate readonly router: Router,\n\t\tprivate readonly renderer: Renderer2,\n\t) {\n\t\tthis.router.events\n\t\t\t.pipe(\n\t\t\t\tfilter((event: Event) => event instanceof NavigationEnd),\n\t\t\t\tmap(() => this.router.isActive(this.link, this.matchOptions)),\n\t\t\t\tdistinctUntilChanged(),\n\t\t\t\tuntilDestroyed(this),\n\t\t\t)\n\t\t\t.subscribe((isActive: boolean) => {\n\t\t\t\tisActive\n\t\t\t\t\t? asArray(this.activeClass).forEach((cls: string) =>\n\t\t\t\t\t\t\tthis.renderer.addClass(this.elementRef.nativeElement, cls),\n\t\t\t\t\t )\n\t\t\t\t\t: asArray(this.activeClass).forEach((cls: string) =>\n\t\t\t\t\t\t\tthis.renderer.removeClass(this.elementRef.nativeElement, cls),\n\t\t\t\t\t );\n\t\t\t});\n\t}\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\n\nimport {NgDocRouteActiveDirective} from './route-active.directive';\n\n@NgModule({\n\tdeclarations: [NgDocRouteActiveDirective],\n\timports: [CommonModule],\n\texports: [NgDocRouteActiveDirective],\n})\nexport class NgDocRouteActiveModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAUa,IAAA,yBAAyB,GAJtC,MAIa,yBAAyB,CAAA;AAerC,IAAA,WAAA,CACkB,UAAmC,EACnC,MAAc,EACd,QAAmB,EAAA;QAFnB,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;QACnC,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QACd,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAW;QAhBrC,IAAI,CAAA,IAAA,GAAW,EAAE,CAAC;QAGlB,IAAW,CAAA,WAAA,GAAsB,EAAE,CAAC;AAGpC,QAAA,IAAA,CAAA,YAAY,GAAyB;AACpC,YAAA,QAAQ,EAAE,OAAO;AACjB,YAAA,KAAK,EAAE,QAAQ;AACf,YAAA,WAAW,EAAE,OAAO;AACpB,YAAA,YAAY,EAAE,OAAO;SACrB,CAAC;QAOD,IAAI,CAAC,MAAM,CAA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;AAEG;;;;"}
1
+ {"version":3,"file":"ng-doc-app-directives-route-active.mjs","sources":["../../../../libs/app/directives/route-active/route-active.directive.ts","../../../../libs/app/directives/route-active/ng-doc-app-directives-route-active.ts"],"sourcesContent":["import {Directive, ElementRef, Input, Renderer2} from '@angular/core';\nimport {Event, IsActiveMatchOptions, NavigationEnd, Router} from '@angular/router';\nimport {asArray} from '@ng-doc/core/helpers/as-array';\nimport {UntilDestroy, untilDestroyed} from '@ngneat/until-destroy';\nimport {distinctUntilChanged, filter, map} from 'rxjs/operators';\n\n@Directive({\n\tselector: '[ngDocRouteActive]',\n\tstandalone: true,\n})\n@UntilDestroy()\nexport class NgDocRouteActiveDirective {\n\t@Input('ngDocRouteActive')\n\tlink: string = '';\n\n\t@Input()\n\tactiveClass: string | string[] = [];\n\n\t@Input()\n\tmatchOptions: IsActiveMatchOptions = {\n\t\tfragment: 'exact',\n\t\tpaths: 'subset',\n\t\tqueryParams: 'exact',\n\t\tmatrixParams: 'exact',\n\t};\n\n\tconstructor(\n\t\tprivate readonly elementRef: ElementRef<HTMLElement>,\n\t\tprivate readonly router: Router,\n\t\tprivate readonly renderer: Renderer2,\n\t) {\n\t\tthis.router.events\n\t\t\t.pipe(\n\t\t\t\tfilter((event: Event) => event instanceof NavigationEnd),\n\t\t\t\tmap(() => this.router.isActive(this.link, this.matchOptions)),\n\t\t\t\tdistinctUntilChanged(),\n\t\t\t\tuntilDestroyed(this),\n\t\t\t)\n\t\t\t.subscribe((isActive: boolean) => {\n\t\t\t\tisActive\n\t\t\t\t\t? asArray(this.activeClass).forEach((cls: string) =>\n\t\t\t\t\t\t\tthis.renderer.addClass(this.elementRef.nativeElement, cls),\n\t\t\t\t\t )\n\t\t\t\t\t: asArray(this.activeClass).forEach((cls: string) =>\n\t\t\t\t\t\t\tthis.renderer.removeClass(this.elementRef.nativeElement, cls),\n\t\t\t\t\t );\n\t\t\t});\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"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N,SAAC,CAAC,CAAC;KACJ;8GApCW,yBAAyB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,MAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,SAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAzB,yBAAyB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,CAAA,kBAAA,EAAA,MAAA,CAAA,EAAA,WAAA,EAAA,aAAA,EAAA,YAAA,EAAA,cAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;AAAzB,yBAAyB,GAAA,UAAA,CAAA;AADrC,IAAA,YAAY,EAAE;qCAiBgB,UAAU;QACd,MAAM;QACJ,SAAS,CAAA,CAAA;AAlBzB,CAAA,EAAA,yBAAyB,CAqCrC,CAAA;2FArCY,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBALrC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA,CAAA;8IAIA,IAAI,EAAA,CAAA;sBADH,KAAK;uBAAC,kBAAkB,CAAA;gBAIzB,WAAW,EAAA,CAAA;sBADV,KAAK;gBAIN,YAAY,EAAA,CAAA;sBADX,KAAK;;;AClBP;;AAEG;;;;"}
@@ -2,7 +2,7 @@ import { OverlayModule } from '@angular/cdk/overlay';
2
2
  import { HttpClientModule } from '@angular/common/http';
3
3
  import * as i0 from '@angular/core';
4
4
  import { APP_INITIALIZER, Optional, NgModule } from '@angular/core';
5
- import { NgDocRootModule } from '@ng-doc/app/components/root';
5
+ import { NgDocRootComponent } from '@ng-doc/app/components/root';
6
6
  import { NG_DOC_NIGHT_THEME, NG_DOC_DARK_PURPLE_THEME, NG_DOC_STORE_THEME_KEY } from '@ng-doc/app/constants';
7
7
  import { isDarkOsTheme } from '@ng-doc/app/helpers';
8
8
  import { NgDocStoreService } from '@ng-doc/app/services/store';
@@ -46,14 +46,14 @@ class NgDocModule {
46
46
  };
47
47
  }
48
48
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
49
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: NgDocModule, imports: [HttpClientModule, OverlayModule, i1.NgDocUiKitRootModule], exports: [NgDocRootModule, NgDocUiKitRootModule] }); }
50
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocModule, imports: [HttpClientModule, OverlayModule, NgDocUiKitRootModule.forRoot(), NgDocRootModule, NgDocUiKitRootModule] }); }
49
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: NgDocModule, imports: [HttpClientModule, OverlayModule, i1.NgDocUiKitRootModule, NgDocRootComponent], exports: [NgDocUiKitRootModule, NgDocRootComponent] }); }
50
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocModule, imports: [HttpClientModule, OverlayModule, NgDocUiKitRootModule.forRoot(), NgDocRootComponent, NgDocUiKitRootModule] }); }
51
51
  }
52
52
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocModule, decorators: [{
53
53
  type: NgModule,
54
54
  args: [{
55
- imports: [HttpClientModule, OverlayModule, NgDocUiKitRootModule.forRoot()],
56
- exports: [NgDocRootModule, NgDocUiKitRootModule],
55
+ imports: [HttpClientModule, OverlayModule, NgDocUiKitRootModule.forRoot(), NgDocRootComponent],
56
+ exports: [NgDocUiKitRootModule, NgDocRootComponent],
57
57
  }]
58
58
  }] });
59
59
 
@@ -1 +1 @@
1
- {"version":3,"file":"ng-doc-app-modules-root.mjs","sources":["../../../../libs/app/modules/root/ng-doc.module.ts","../../../../libs/app/modules/root/ng-doc-app-modules-root.ts"],"sourcesContent":["import {OverlayModule} from '@angular/cdk/overlay';\nimport {HttpClientModule} from '@angular/common/http';\nimport {APP_INITIALIZER, ModuleWithProviders, NgModule, Optional} from '@angular/core';\nimport {NgDocRootModule} from '@ng-doc/app/components/root';\nimport {NG_DOC_DARK_PURPLE_THEME, NG_DOC_NIGHT_THEME, NG_DOC_STORE_THEME_KEY} from '@ng-doc/app/constants';\nimport {isDarkOsTheme} from '@ng-doc/app/helpers';\nimport {NgDocApplicationConfig, NgDocTheme} from '@ng-doc/app/interfaces';\nimport {NgDocStoreService} from '@ng-doc/app/services/store';\nimport {NgDocThemeService} from '@ng-doc/app/services/theme';\nimport {NG_DOC_DEFAULT_THEME_ID, NG_DOC_THEME} from '@ng-doc/app/tokens';\nimport {asArray} from '@ng-doc/core/helpers/as-array';\nimport {NgDocUiKitRootModule} from '@ng-doc/ui-kit/modules/root';\n\n@NgModule({\n\timports: [HttpClientModule, OverlayModule, NgDocUiKitRootModule.forRoot()],\n\texports: [NgDocRootModule, NgDocUiKitRootModule],\n})\nexport class NgDocModule {\n\tstatic forRoot(config?: NgDocApplicationConfig): ModuleWithProviders<NgDocModule> {\n\t\treturn {\n\t\t\tngModule: NgDocModule,\n\t\t\tproviders: [\n\t\t\t\t{provide: NG_DOC_THEME, useValue: NG_DOC_NIGHT_THEME, multi: true},\n\t\t\t\t{provide: NG_DOC_THEME, useValue: NG_DOC_DARK_PURPLE_THEME, multi: true},\n\t\t\t\t...asArray(config?.themes).map((theme: NgDocTheme) => ({\n\t\t\t\t\tprovide: NG_DOC_THEME,\n\t\t\t\t\tuseValue: theme,\n\t\t\t\t\tmulti: true,\n\t\t\t\t})),\n\t\t\t\t...asArray(config?.defaultThemeId).map((themeId: string) => ({\n\t\t\t\t\tprovide: NG_DOC_DEFAULT_THEME_ID,\n\t\t\t\t\tuseValue: themeId,\n\t\t\t\t})),\n\t\t\t\t{\n\t\t\t\t\tprovide: APP_INITIALIZER,\n\t\t\t\t\tuseFactory: (themeService: NgDocThemeService, store: NgDocStoreService, defaultThemeId: string | 'auto') => {\n\t\t\t\t\t\treturn () => {\n\t\t\t\t\t\t\tconst themeId: string | null = store.get(NG_DOC_STORE_THEME_KEY);\n\n\t\t\t\t\t\t\tif (defaultThemeId === 'auto' && !themeId) {\n\t\t\t\t\t\t\t\treturn themeService.set(isDarkOsTheme() ? NG_DOC_NIGHT_THEME.id : undefined, false);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn themeService.set(themeId ?? defaultThemeId, false);\n\t\t\t\t\t\t};\n\t\t\t\t\t},\n\t\t\t\t\tmulti: true,\n\t\t\t\t\tdeps: [NgDocThemeService, NgDocStoreService, [new Optional(), NG_DOC_DEFAULT_THEME_ID]],\n\t\t\t\t},\n\t\t\t],\n\t\t};\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAaA,MAIa,WAAW,CAAA;IACvB,OAAO,OAAO,CAAC,MAA+B,EAAA;QAC7C,OAAO;AACN,YAAA,QAAQ,EAAE,WAAW;AACrB,YAAA,SAAS,EAAE;gBACV,EAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,kBAAkB,EAAE,KAAK,EAAE,IAAI,EAAC;gBAClE,EAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,wBAAwB,EAAE,KAAK,EAAE,IAAI,EAAC;AACxE,gBAAA,GAAG,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,KAAiB,MAAM;AACtD,oBAAA,OAAO,EAAE,YAAY;AACrB,oBAAA,Q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,aAAa,EAC/B,EAAA,CAAA,oBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAe,EAAE,oBAAoB,CAAA,EAAA,CAAA,CAAA,EAAA;AAEnC,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAW,EAHb,OAAA,EAAA,CAAA,gBAAgB,EAAE,aAAa,EAAE,oBAAoB,CAAC,OAAO,EAAE,EAC/D,eAAe,EAAE,oBAAoB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAEnC,WAAW,EAAA,UAAA,EAAA,CAAA;kBAJvB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACT,OAAO,EAAE,CAAC,gBAAgB,EAAE,aAAa,EAAE,oBAAoB,CAAC,OAAO,EAAE,CAAC;AAC1E,oBAAA,OAAO,EAAE,CAAC,eAAe,EAAE,oBAAoB,CAAC;AAChD,iBAAA,CAAA;;;AChBD;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-doc-app-modules-root.mjs","sources":["../../../../libs/app/modules/root/ng-doc.module.ts","../../../../libs/app/modules/root/ng-doc-app-modules-root.ts"],"sourcesContent":["import {OverlayModule} from '@angular/cdk/overlay';\nimport {HttpClientModule} from '@angular/common/http';\nimport {APP_INITIALIZER, ModuleWithProviders, NgModule, Optional} from '@angular/core';\nimport {NgDocRootComponent} from '@ng-doc/app/components/root';\nimport {NG_DOC_DARK_PURPLE_THEME, NG_DOC_NIGHT_THEME, NG_DOC_STORE_THEME_KEY} from '@ng-doc/app/constants';\nimport {isDarkOsTheme} from '@ng-doc/app/helpers';\nimport {NgDocApplicationConfig, NgDocTheme} from '@ng-doc/app/interfaces';\nimport {NgDocStoreService} from '@ng-doc/app/services/store';\nimport {NgDocThemeService} from '@ng-doc/app/services/theme';\nimport {NG_DOC_DEFAULT_THEME_ID, NG_DOC_THEME} from '@ng-doc/app/tokens';\nimport {asArray} from '@ng-doc/core/helpers/as-array';\nimport {NgDocUiKitRootModule} from '@ng-doc/ui-kit/modules/root';\n\n@NgModule({\n\timports: [HttpClientModule, OverlayModule, NgDocUiKitRootModule.forRoot(), NgDocRootComponent],\n\texports: [NgDocUiKitRootModule, NgDocRootComponent],\n})\nexport class NgDocModule {\n\tstatic forRoot(config?: NgDocApplicationConfig): ModuleWithProviders<NgDocModule> {\n\t\treturn {\n\t\t\tngModule: NgDocModule,\n\t\t\tproviders: [\n\t\t\t\t{provide: NG_DOC_THEME, useValue: NG_DOC_NIGHT_THEME, multi: true},\n\t\t\t\t{provide: NG_DOC_THEME, useValue: NG_DOC_DARK_PURPLE_THEME, multi: true},\n\t\t\t\t...asArray(config?.themes).map((theme: NgDocTheme) => ({\n\t\t\t\t\tprovide: NG_DOC_THEME,\n\t\t\t\t\tuseValue: theme,\n\t\t\t\t\tmulti: true,\n\t\t\t\t})),\n\t\t\t\t...asArray(config?.defaultThemeId).map((themeId: string) => ({\n\t\t\t\t\tprovide: NG_DOC_DEFAULT_THEME_ID,\n\t\t\t\t\tuseValue: themeId,\n\t\t\t\t})),\n\t\t\t\t{\n\t\t\t\t\tprovide: APP_INITIALIZER,\n\t\t\t\t\tuseFactory: (themeService: NgDocThemeService, store: NgDocStoreService, defaultThemeId: string | 'auto') => {\n\t\t\t\t\t\treturn () => {\n\t\t\t\t\t\t\tconst themeId: string | null = store.get(NG_DOC_STORE_THEME_KEY);\n\n\t\t\t\t\t\t\tif (defaultThemeId === 'auto' && !themeId) {\n\t\t\t\t\t\t\t\treturn themeService.set(isDarkOsTheme() ? NG_DOC_NIGHT_THEME.id : undefined, false);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn themeService.set(themeId ?? defaultThemeId, false);\n\t\t\t\t\t\t};\n\t\t\t\t\t},\n\t\t\t\t\tmulti: true,\n\t\t\t\t\tdeps: [NgDocThemeService, NgDocStoreService, [new Optional(), NG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{ Pipe } from '@angular/core';
3
3
  import { extractValue } from '@ng-doc/core/helpers/extract-value';
4
4
 
5
5
  class NgDocExtractValuePipe {
@@ -7,25 +7,13 @@ class NgDocExtractValuePipe {
7
7
  return extractValue(value);
8
8
  }
9
9
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocExtractValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
10
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: NgDocExtractValuePipe, name: "ngDocExtractValue" }); }
10
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: NgDocExtractValuePipe, isStandalone: true, name: "ngDocExtractValue" }); }
11
11
  }
12
12
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocExtractValuePipe, decorators: [{
13
13
  type: Pipe,
14
14
  args: [{
15
15
  name: 'ngDocExtractValue',
16
- }]
17
- }] });
18
-
19
- class NgDocExtractValueModule {
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocExtractValueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
21
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: NgDocExtractValueModule, declarations: [NgDocExtractValuePipe], exports: [NgDocExtractValuePipe] }); }
22
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocExtractValueModule }); }
23
- }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocExtractValueModule, decorators: [{
25
- type: NgModule,
26
- args: [{
27
- declarations: [NgDocExtractValuePipe],
28
- exports: [NgDocExtractValuePipe],
16
+ standalone: true,
29
17
  }]
30
18
  }] });
31
19
 
@@ -33,5 +21,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
33
21
  * Generated bundle index. Do not edit.
34
22
  */
35
23
 
36
- export { NgDocExtractValueModule, NgDocExtractValuePipe };
24
+ export { NgDocExtractValuePipe };
37
25
  //# sourceMappingURL=ng-doc-app-pipes-extract-value.mjs.map