@ng-doc/app 15.12.0 → 16.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (599) hide show
  1. package/README.md +8 -8
  2. package/components/code/code.component.d.ts +1 -1
  3. package/components/demo/demo.component.d.ts +1 -1
  4. package/components/demo-displayer/demo-displayer.component.d.ts +1 -1
  5. package/components/demo-pane/demo-pane.component.d.ts +1 -1
  6. package/components/kind-icon/kind-icon.component.d.ts +1 -1
  7. package/components/link/link.component.d.ts +1 -1
  8. package/components/navbar/navbar.component.d.ts +9 -1
  9. package/components/page-link/page-link.component.d.ts +1 -1
  10. package/components/playground/playground-demo/playground-demo.component.d.ts +1 -1
  11. package/components/playground/playground-properties/playground-properties.component.d.ts +1 -1
  12. package/components/playground/playground-property/playground-property.component.d.ts +1 -1
  13. package/components/root/root.component.d.ts +26 -2
  14. package/components/root/root.module.d.ts +3 -2
  15. package/components/search/search.component.d.ts +1 -1
  16. package/components/search-result/search-result.component.d.ts +1 -1
  17. package/components/sidebar/sidebar-category/sidebar-category.component.d.ts +1 -1
  18. package/components/sidebar/sidebar-item/sidebar-item.component.d.ts +1 -1
  19. package/components/toc/toc-element/toc-element.component.d.ts +1 -1
  20. package/components/toc/toc.component.d.ts +1 -1
  21. package/directives/code-highlighter/code-highlighter.directive.d.ts +1 -1
  22. package/directives/route-active/route-active.directive.d.ts +1 -1
  23. package/{esm2020 → esm2022}/components/api-list/api-list.component.mjs +4 -4
  24. package/esm2022/components/api-list/api-list.module.mjs +70 -0
  25. package/esm2022/components/breadcrumb/breadcrumb.component.mjs +29 -0
  26. package/esm2022/components/breadcrumb/breadcrumb.module.mjs +21 -0
  27. package/esm2022/components/code/code.component.mjs +45 -0
  28. package/esm2022/components/code/code.module.mjs +41 -0
  29. package/esm2022/components/demo/demo.component.mjs +53 -0
  30. package/esm2022/components/demo/demo.module.mjs +43 -0
  31. package/esm2022/components/demo-displayer/demo-displayer.component.mjs +49 -0
  32. package/esm2022/components/demo-displayer/demo-displayer.module.mjs +49 -0
  33. package/esm2022/components/demo-pane/demo-pane.component.mjs +52 -0
  34. package/esm2022/components/demo-pane/demo-pane.module.mjs +22 -0
  35. package/esm2022/components/kind-icon/kind-icon.component.mjs +26 -0
  36. package/esm2022/components/kind-icon/kind-icon.module.mjs +19 -0
  37. package/esm2022/components/link/link.component.mjs +18 -0
  38. package/esm2022/components/link/link.module.mjs +20 -0
  39. package/esm2022/components/navbar/navbar.component.mjs +101 -0
  40. package/esm2022/components/navbar/navbar.module.mjs +41 -0
  41. package/esm2022/components/page/page.component.mjs +45 -0
  42. package/esm2022/components/page/page.module.mjs +98 -0
  43. package/esm2022/components/page-link/page-link.component.mjs +31 -0
  44. package/esm2022/components/page-link/page-link.module.mjs +20 -0
  45. package/esm2022/components/playground/base-playground.mjs +19 -0
  46. package/{esm2020 → esm2022}/components/playground/playground-demo/playground-demo.component.mjs +4 -4
  47. package/esm2022/components/playground/playground-properties/playground-properties.component.mjs +112 -0
  48. package/esm2022/components/playground/playground-property/playground-property.component.mjs +63 -0
  49. package/esm2022/components/playground/playground.component.mjs +63 -0
  50. package/esm2022/components/playground/playground.module.mjs +86 -0
  51. package/esm2022/components/root/root.component.mjs +116 -0
  52. package/esm2022/components/root/root.module.mjs +21 -0
  53. package/esm2022/components/search/search.component.mjs +72 -0
  54. package/esm2022/components/search/search.module.mjs +85 -0
  55. package/esm2022/components/search-result/search-result.component.mjs +43 -0
  56. package/esm2022/components/search-result/search-result.module.mjs +22 -0
  57. package/{esm2020 → esm2022}/components/sidebar/sidebar-category/sidebar-category.component.mjs +4 -4
  58. package/esm2022/components/sidebar/sidebar-item/sidebar-item.component.mjs +17 -0
  59. package/esm2022/components/sidebar/sidebar.component.mjs +25 -0
  60. package/esm2022/components/sidebar/sidebar.module.mjs +59 -0
  61. package/esm2022/components/theme-toggle/theme-toggle.component.mjs +54 -0
  62. package/esm2022/components/theme-toggle/theme-toggle.module.mjs +20 -0
  63. package/esm2022/components/toc/toc-element/toc-element.component.mjs +30 -0
  64. package/{esm2020 → esm2022}/components/toc/toc.component.mjs +4 -4
  65. package/esm2022/components/toc/toc.module.mjs +22 -0
  66. package/{esm2020 → esm2022}/constants/store-keys.mjs +2 -2
  67. package/esm2022/directives/code-highlighter/code-highlighter.directive.mjs +44 -0
  68. package/esm2022/directives/code-highlighter/code-highlighter.module.mjs +17 -0
  69. package/{esm2020 → esm2022}/directives/route-active/route-active.directive.mjs +4 -4
  70. package/esm2022/directives/route-active/route-active.module.mjs +19 -0
  71. package/esm2022/helpers/index.mjs +9 -0
  72. package/esm2022/helpers/is-dark-os-theme.mjs +7 -0
  73. package/esm2022/interfaces/application-config.mjs +2 -0
  74. package/esm2022/modules/root/ng-doc.module.mjs +59 -0
  75. package/esm2022/pipes/extract-value/extract-value.module.mjs +17 -0
  76. package/esm2022/pipes/extract-value/extract-value.pipe.mjs +18 -0
  77. package/esm2022/pipes/filter-by-text/filter-by-text.module.mjs +17 -0
  78. package/esm2022/pipes/filter-by-text/filter-by-text.pipe.mjs +17 -0
  79. package/esm2022/pipes/sanitize-html/sanitize-html.module.mjs +17 -0
  80. package/esm2022/pipes/sanitize-html/sanitize-html.pipe.mjs +22 -0
  81. package/esm2022/processors/blockquote-processor/blockquote-processor.directive.mjs +29 -0
  82. package/esm2022/processors/blockquote-processor/blockquote-processor.module.mjs +19 -0
  83. package/esm2022/processors/code-processor/code-processor.directive.mjs +34 -0
  84. package/esm2022/processors/code-processor/code-processor.module.mjs +19 -0
  85. package/{esm2020 → esm2022}/processors/demo-pane-processor/demo-pane-processor.directive.mjs +4 -4
  86. package/esm2022/processors/demo-pane-processor/demo-pane-processor.module.mjs +19 -0
  87. package/{esm2020 → esm2022}/processors/demo-processor/demo-processor.directive.mjs +4 -4
  88. package/esm2022/processors/demo-processor/demo-processor.module.mjs +19 -0
  89. package/esm2022/processors/html-processor/html-processor.directive.mjs +39 -0
  90. package/esm2022/processors/icon-processor/icon-processor.directive.mjs +29 -0
  91. package/esm2022/processors/icon-processor/icon-processor.module.mjs +17 -0
  92. package/esm2022/processors/link-processor/link-processor.directive.mjs +30 -0
  93. package/esm2022/processors/link-processor/link-processor.module.mjs +17 -0
  94. package/esm2022/processors/playground-processor/playground-processor.directive.mjs +32 -0
  95. package/esm2022/processors/playground-processor/playground-processor.module.mjs +19 -0
  96. package/esm2022/processors/tooltip-processor/tooltip-processor.directive.mjs +29 -0
  97. package/esm2022/processors/tooltip-processor/tooltip-processor.module.mjs +20 -0
  98. package/esm2022/processors/tooltip-processor/tooltip-wrapper.component.mjs +49 -0
  99. package/esm2022/services/sidebar/sidebar.service.mjs +99 -0
  100. package/esm2022/services/store/store.service.mjs +21 -0
  101. package/esm2022/services/theme/theme.service.mjs +118 -0
  102. package/esm2022/type-controls/boolean-control/boolean-control.component.mjs +20 -0
  103. package/esm2022/type-controls/boolean-control/boolean-control.module.mjs +23 -0
  104. package/esm2022/type-controls/number-control/number-control.component.mjs +27 -0
  105. package/esm2022/type-controls/number-control/number-control.module.mjs +51 -0
  106. package/esm2022/type-controls/string-control/string-control.component.mjs +27 -0
  107. package/esm2022/type-controls/string-control/string-control.module.mjs +55 -0
  108. package/esm2022/type-controls/type-alias-control/type-alias-control.component.mjs +31 -0
  109. package/esm2022/type-controls/type-alias-control/type-alias-control.module.mjs +64 -0
  110. package/fesm2022/ng-doc-app-components-api-list.mjs +153 -0
  111. package/{fesm2020 → fesm2022}/ng-doc-app-components-api-list.mjs.map +1 -1
  112. package/fesm2022/ng-doc-app-components-breadcrumb.mjs +50 -0
  113. package/fesm2022/ng-doc-app-components-breadcrumb.mjs.map +1 -0
  114. package/fesm2022/ng-doc-app-components-code.mjs +87 -0
  115. package/fesm2022/ng-doc-app-components-code.mjs.map +1 -0
  116. package/fesm2022/ng-doc-app-components-demo-displayer.mjs +99 -0
  117. package/{fesm2015 → fesm2022}/ng-doc-app-components-demo-displayer.mjs.map +1 -1
  118. package/{fesm2020 → fesm2022}/ng-doc-app-components-demo-pane.mjs +7 -7
  119. package/{fesm2015 → fesm2022}/ng-doc-app-components-demo-pane.mjs.map +1 -1
  120. package/{fesm2020 → fesm2022}/ng-doc-app-components-demo.mjs +19 -19
  121. package/{fesm2015 → fesm2022}/ng-doc-app-components-demo.mjs.map +1 -1
  122. package/{fesm2015 → fesm2022}/ng-doc-app-components-kind-icon.mjs +7 -7
  123. package/fesm2022/ng-doc-app-components-kind-icon.mjs.map +1 -0
  124. package/fesm2022/ng-doc-app-components-link.mjs +40 -0
  125. package/fesm2022/ng-doc-app-components-link.mjs.map +1 -0
  126. package/fesm2022/ng-doc-app-components-navbar.mjs +144 -0
  127. package/fesm2022/ng-doc-app-components-navbar.mjs.map +1 -0
  128. package/fesm2022/ng-doc-app-components-page-link.mjs +53 -0
  129. package/{fesm2015 → fesm2022}/ng-doc-app-components-page-link.mjs.map +1 -1
  130. package/fesm2022/ng-doc-app-components-page.mjs +143 -0
  131. package/{fesm2020 → fesm2022}/ng-doc-app-components-page.mjs.map +1 -1
  132. package/{fesm2020 → fesm2022}/ng-doc-app-components-playground.mjs +57 -57
  133. package/fesm2022/ng-doc-app-components-playground.mjs.map +1 -0
  134. package/fesm2022/ng-doc-app-components-root.mjs +136 -0
  135. package/fesm2022/ng-doc-app-components-root.mjs.map +1 -0
  136. package/fesm2022/ng-doc-app-components-search-result.mjs +67 -0
  137. package/{fesm2015 → fesm2022}/ng-doc-app-components-search-result.mjs.map +1 -1
  138. package/fesm2022/ng-doc-app-components-search.mjs +158 -0
  139. package/fesm2022/ng-doc-app-components-search.mjs.map +1 -0
  140. package/{fesm2020 → fesm2022}/ng-doc-app-components-sidebar.mjs +31 -31
  141. package/{fesm2020 → fesm2022}/ng-doc-app-components-sidebar.mjs.map +1 -1
  142. package/fesm2022/ng-doc-app-components-theme-toggle.mjs +75 -0
  143. package/fesm2022/ng-doc-app-components-theme-toggle.mjs.map +1 -0
  144. package/{fesm2020 → fesm2022}/ng-doc-app-components-toc.mjs +10 -10
  145. package/{fesm2020 → fesm2022}/ng-doc-app-components-toc.mjs.map +1 -1
  146. package/{fesm2020 → fesm2022}/ng-doc-app-constants.mjs +1 -1
  147. package/fesm2022/ng-doc-app-constants.mjs.map +1 -0
  148. package/{fesm2020 → fesm2022}/ng-doc-app-directives-code-highlighter.mjs +7 -7
  149. package/{fesm2020 → fesm2022}/ng-doc-app-directives-code-highlighter.mjs.map +1 -1
  150. package/{fesm2015 → fesm2022}/ng-doc-app-directives-route-active.mjs +7 -7
  151. package/{fesm2020 → fesm2022}/ng-doc-app-directives-route-active.mjs.map +1 -1
  152. package/{fesm2020 → fesm2022}/ng-doc-app-helpers.mjs +8 -1
  153. package/fesm2022/ng-doc-app-helpers.mjs.map +1 -0
  154. package/{fesm2020 → fesm2022}/ng-doc-app-modules-root.mjs +9 -5
  155. package/fesm2022/ng-doc-app-modules-root.mjs.map +1 -0
  156. package/fesm2022/ng-doc-app-pipes-extract-value.mjs +37 -0
  157. package/{fesm2015 → fesm2022}/ng-doc-app-pipes-extract-value.mjs.map +1 -1
  158. package/fesm2022/ng-doc-app-pipes-filter-by-text.mjs +36 -0
  159. package/{fesm2020 → fesm2022}/ng-doc-app-pipes-filter-by-text.mjs.map +1 -1
  160. package/fesm2022/ng-doc-app-pipes-sanitize-html.mjs +40 -0
  161. package/{fesm2015 → fesm2022}/ng-doc-app-pipes-sanitize-html.mjs.map +1 -1
  162. package/{fesm2020 → fesm2022}/ng-doc-app-processors-blockquote-processor.mjs +7 -7
  163. package/{fesm2020 → fesm2022}/ng-doc-app-processors-blockquote-processor.mjs.map +1 -1
  164. package/{fesm2020 → fesm2022}/ng-doc-app-processors-code-processor.mjs +7 -7
  165. package/{fesm2020 → fesm2022}/ng-doc-app-processors-code-processor.mjs.map +1 -1
  166. package/{fesm2020 → fesm2022}/ng-doc-app-processors-demo-pane-processor.mjs +7 -7
  167. package/{fesm2020 → fesm2022}/ng-doc-app-processors-demo-pane-processor.mjs.map +1 -1
  168. package/{fesm2020 → fesm2022}/ng-doc-app-processors-demo-processor.mjs +7 -7
  169. package/{fesm2020 → fesm2022}/ng-doc-app-processors-demo-processor.mjs.map +1 -1
  170. package/{fesm2020 → fesm2022}/ng-doc-app-processors-html-processor.mjs +3 -3
  171. package/{fesm2020 → fesm2022}/ng-doc-app-processors-html-processor.mjs.map +1 -1
  172. package/{fesm2020 → fesm2022}/ng-doc-app-processors-icon-processor.mjs +7 -7
  173. package/{fesm2020 → fesm2022}/ng-doc-app-processors-icon-processor.mjs.map +1 -1
  174. package/{fesm2020 → fesm2022}/ng-doc-app-processors-link-processor.mjs +7 -7
  175. package/{fesm2020 → fesm2022}/ng-doc-app-processors-link-processor.mjs.map +1 -1
  176. package/{fesm2020 → fesm2022}/ng-doc-app-processors-playground-processor.mjs +7 -7
  177. package/{fesm2020 → fesm2022}/ng-doc-app-processors-playground-processor.mjs.map +1 -1
  178. package/{fesm2020 → fesm2022}/ng-doc-app-processors-tooltip-processor.mjs +12 -12
  179. package/{fesm2015 → fesm2022}/ng-doc-app-processors-tooltip-processor.mjs.map +1 -1
  180. package/{fesm2020 → fesm2022}/ng-doc-app-services-sidebar.mjs +30 -26
  181. package/fesm2022/ng-doc-app-services-sidebar.mjs.map +1 -0
  182. package/{fesm2020 → fesm2022}/ng-doc-app-services-store.mjs +3 -3
  183. package/{fesm2015 → fesm2022}/ng-doc-app-services-store.mjs.map +1 -1
  184. package/fesm2022/ng-doc-app-services-theme.mjs +124 -0
  185. package/fesm2022/ng-doc-app-services-theme.mjs.map +1 -0
  186. package/fesm2022/ng-doc-app-type-controls-boolean-control.mjs +45 -0
  187. package/{fesm2015 → fesm2022}/ng-doc-app-type-controls-boolean-control.mjs.map +1 -1
  188. package/fesm2022/ng-doc-app-type-controls-number-control.mjs +79 -0
  189. package/{fesm2015 → fesm2022}/ng-doc-app-type-controls-number-control.mjs.map +1 -1
  190. package/fesm2022/ng-doc-app-type-controls-string-control.mjs +83 -0
  191. package/{fesm2015 → fesm2022}/ng-doc-app-type-controls-string-control.mjs.map +1 -1
  192. package/fesm2022/ng-doc-app-type-controls-type-alias-control.mjs +97 -0
  193. package/{fesm2020 → fesm2022}/ng-doc-app-type-controls-type-alias-control.mjs.map +1 -1
  194. package/helpers/index.d.ts +1 -0
  195. package/helpers/is-dark-os-theme.d.ts +4 -0
  196. package/interfaces/application-config.d.ts +11 -1
  197. package/package.json +228 -346
  198. package/processors/tooltip-processor/tooltip-wrapper.component.d.ts +1 -1
  199. package/services/sidebar/sidebar.service.d.ts +3 -10
  200. package/services/theme/theme.service.d.ts +23 -3
  201. package/styles/global.css +11 -2
  202. package/styles/main.css +6 -2
  203. package/esm2020/components/api-list/api-list.module.mjs +0 -69
  204. package/esm2020/components/breadcrumb/breadcrumb.component.mjs +0 -28
  205. package/esm2020/components/breadcrumb/breadcrumb.module.mjs +0 -20
  206. package/esm2020/components/code/code.component.mjs +0 -44
  207. package/esm2020/components/code/code.module.mjs +0 -40
  208. package/esm2020/components/demo/demo.component.mjs +0 -52
  209. package/esm2020/components/demo/demo.module.mjs +0 -42
  210. package/esm2020/components/demo-displayer/demo-displayer.component.mjs +0 -48
  211. package/esm2020/components/demo-displayer/demo-displayer.module.mjs +0 -48
  212. package/esm2020/components/demo-pane/demo-pane.component.mjs +0 -51
  213. package/esm2020/components/demo-pane/demo-pane.module.mjs +0 -21
  214. package/esm2020/components/kind-icon/kind-icon.component.mjs +0 -25
  215. package/esm2020/components/kind-icon/kind-icon.module.mjs +0 -18
  216. package/esm2020/components/link/link.component.mjs +0 -17
  217. package/esm2020/components/link/link.module.mjs +0 -19
  218. package/esm2020/components/navbar/navbar.component.mjs +0 -85
  219. package/esm2020/components/navbar/navbar.module.mjs +0 -40
  220. package/esm2020/components/page/page.component.mjs +0 -44
  221. package/esm2020/components/page/page.module.mjs +0 -97
  222. package/esm2020/components/page-link/page-link.component.mjs +0 -30
  223. package/esm2020/components/page-link/page-link.module.mjs +0 -19
  224. package/esm2020/components/playground/base-playground.mjs +0 -18
  225. package/esm2020/components/playground/playground-properties/playground-properties.component.mjs +0 -111
  226. package/esm2020/components/playground/playground-property/playground-property.component.mjs +0 -62
  227. package/esm2020/components/playground/playground.component.mjs +0 -62
  228. package/esm2020/components/playground/playground.module.mjs +0 -85
  229. package/esm2020/components/root/root.component.mjs +0 -71
  230. package/esm2020/components/root/root.module.mjs +0 -19
  231. package/esm2020/components/search/search.component.mjs +0 -72
  232. package/esm2020/components/search/search.module.mjs +0 -84
  233. package/esm2020/components/search-result/search-result.component.mjs +0 -42
  234. package/esm2020/components/search-result/search-result.module.mjs +0 -21
  235. package/esm2020/components/sidebar/sidebar-item/sidebar-item.component.mjs +0 -16
  236. package/esm2020/components/sidebar/sidebar.component.mjs +0 -24
  237. package/esm2020/components/sidebar/sidebar.module.mjs +0 -58
  238. package/esm2020/components/theme-toggle/theme-toggle.component.mjs +0 -53
  239. package/esm2020/components/theme-toggle/theme-toggle.module.mjs +0 -19
  240. package/esm2020/components/toc/toc-element/toc-element.component.mjs +0 -29
  241. package/esm2020/components/toc/toc.module.mjs +0 -21
  242. package/esm2020/directives/code-highlighter/code-highlighter.directive.mjs +0 -43
  243. package/esm2020/directives/code-highlighter/code-highlighter.module.mjs +0 -16
  244. package/esm2020/directives/route-active/route-active.module.mjs +0 -18
  245. package/esm2020/helpers/index.mjs +0 -8
  246. package/esm2020/interfaces/application-config.mjs +0 -2
  247. package/esm2020/modules/root/ng-doc.module.mjs +0 -54
  248. package/esm2020/pipes/extract-value/extract-value.module.mjs +0 -16
  249. package/esm2020/pipes/extract-value/extract-value.pipe.mjs +0 -17
  250. package/esm2020/pipes/filter-by-text/filter-by-text.module.mjs +0 -16
  251. package/esm2020/pipes/filter-by-text/filter-by-text.pipe.mjs +0 -16
  252. package/esm2020/pipes/sanitize-html/sanitize-html.module.mjs +0 -16
  253. package/esm2020/pipes/sanitize-html/sanitize-html.pipe.mjs +0 -21
  254. package/esm2020/processors/blockquote-processor/blockquote-processor.directive.mjs +0 -28
  255. package/esm2020/processors/blockquote-processor/blockquote-processor.module.mjs +0 -18
  256. package/esm2020/processors/code-processor/code-processor.directive.mjs +0 -33
  257. package/esm2020/processors/code-processor/code-processor.module.mjs +0 -18
  258. package/esm2020/processors/demo-pane-processor/demo-pane-processor.module.mjs +0 -18
  259. package/esm2020/processors/demo-processor/demo-processor.module.mjs +0 -18
  260. package/esm2020/processors/html-processor/html-processor.directive.mjs +0 -38
  261. package/esm2020/processors/icon-processor/icon-processor.directive.mjs +0 -28
  262. package/esm2020/processors/icon-processor/icon-processor.module.mjs +0 -16
  263. package/esm2020/processors/link-processor/link-processor.directive.mjs +0 -29
  264. package/esm2020/processors/link-processor/link-processor.module.mjs +0 -16
  265. package/esm2020/processors/playground-processor/playground-processor.directive.mjs +0 -31
  266. package/esm2020/processors/playground-processor/playground-processor.module.mjs +0 -18
  267. package/esm2020/processors/tooltip-processor/tooltip-processor.directive.mjs +0 -28
  268. package/esm2020/processors/tooltip-processor/tooltip-processor.module.mjs +0 -19
  269. package/esm2020/processors/tooltip-processor/tooltip-wrapper.component.mjs +0 -48
  270. package/esm2020/services/sidebar/sidebar.service.mjs +0 -95
  271. package/esm2020/services/store/store.service.mjs +0 -20
  272. package/esm2020/services/theme/theme.service.mjs +0 -70
  273. package/esm2020/type-controls/boolean-control/boolean-control.component.mjs +0 -19
  274. package/esm2020/type-controls/boolean-control/boolean-control.module.mjs +0 -22
  275. package/esm2020/type-controls/number-control/number-control.component.mjs +0 -26
  276. package/esm2020/type-controls/number-control/number-control.module.mjs +0 -50
  277. package/esm2020/type-controls/string-control/string-control.component.mjs +0 -26
  278. package/esm2020/type-controls/string-control/string-control.module.mjs +0 -54
  279. package/esm2020/type-controls/type-alias-control/type-alias-control.component.mjs +0 -30
  280. package/esm2020/type-controls/type-alias-control/type-alias-control.module.mjs +0 -63
  281. package/fesm2015/ng-doc-app-classes-default-search-engine.mjs +0 -70
  282. package/fesm2015/ng-doc-app-classes-default-search-engine.mjs.map +0 -1
  283. package/fesm2015/ng-doc-app-components-api-list.mjs +0 -155
  284. package/fesm2015/ng-doc-app-components-api-list.mjs.map +0 -1
  285. package/fesm2015/ng-doc-app-components-breadcrumb.mjs +0 -50
  286. package/fesm2015/ng-doc-app-components-breadcrumb.mjs.map +0 -1
  287. package/fesm2015/ng-doc-app-components-code.mjs +0 -89
  288. package/fesm2015/ng-doc-app-components-code.mjs.map +0 -1
  289. package/fesm2015/ng-doc-app-components-demo-displayer.mjs +0 -99
  290. package/fesm2015/ng-doc-app-components-demo-pane.mjs +0 -77
  291. package/fesm2015/ng-doc-app-components-demo.mjs +0 -99
  292. package/fesm2015/ng-doc-app-components-kind-icon.mjs.map +0 -1
  293. package/fesm2015/ng-doc-app-components-link.mjs +0 -40
  294. package/fesm2015/ng-doc-app-components-link.mjs.map +0 -1
  295. package/fesm2015/ng-doc-app-components-navbar.mjs +0 -130
  296. package/fesm2015/ng-doc-app-components-navbar.mjs.map +0 -1
  297. package/fesm2015/ng-doc-app-components-page-link.mjs +0 -53
  298. package/fesm2015/ng-doc-app-components-page.mjs +0 -147
  299. package/fesm2015/ng-doc-app-components-page.mjs.map +0 -1
  300. package/fesm2015/ng-doc-app-components-playground.mjs +0 -445
  301. package/fesm2015/ng-doc-app-components-playground.mjs.map +0 -1
  302. package/fesm2015/ng-doc-app-components-root.mjs +0 -93
  303. package/fesm2015/ng-doc-app-components-root.mjs.map +0 -1
  304. package/fesm2015/ng-doc-app-components-search-result.mjs +0 -67
  305. package/fesm2015/ng-doc-app-components-search.mjs +0 -162
  306. package/fesm2015/ng-doc-app-components-search.mjs.map +0 -1
  307. package/fesm2015/ng-doc-app-components-sidebar.mjs +0 -169
  308. package/fesm2015/ng-doc-app-components-sidebar.mjs.map +0 -1
  309. package/fesm2015/ng-doc-app-components-theme-toggle.mjs +0 -76
  310. package/fesm2015/ng-doc-app-components-theme-toggle.mjs.map +0 -1
  311. package/fesm2015/ng-doc-app-components-toc.mjs +0 -151
  312. package/fesm2015/ng-doc-app-components-toc.mjs.map +0 -1
  313. package/fesm2015/ng-doc-app-constants.mjs +0 -76
  314. package/fesm2015/ng-doc-app-constants.mjs.map +0 -1
  315. package/fesm2015/ng-doc-app-directives-code-highlighter.mjs +0 -64
  316. package/fesm2015/ng-doc-app-directives-code-highlighter.mjs.map +0 -1
  317. package/fesm2015/ng-doc-app-directives-route-active.mjs.map +0 -1
  318. package/fesm2015/ng-doc-app-helpers.mjs +0 -145
  319. package/fesm2015/ng-doc-app-helpers.mjs.map +0 -1
  320. package/fesm2015/ng-doc-app-modules-root.mjs +0 -61
  321. package/fesm2015/ng-doc-app-modules-root.mjs.map +0 -1
  322. package/fesm2015/ng-doc-app-pipes-extract-value.mjs +0 -37
  323. package/fesm2015/ng-doc-app-pipes-filter-by-text.mjs +0 -37
  324. package/fesm2015/ng-doc-app-pipes-filter-by-text.mjs.map +0 -1
  325. package/fesm2015/ng-doc-app-pipes-sanitize-html.mjs +0 -40
  326. package/fesm2015/ng-doc-app-processors-blockquote-processor.mjs +0 -49
  327. package/fesm2015/ng-doc-app-processors-blockquote-processor.mjs.map +0 -1
  328. package/fesm2015/ng-doc-app-processors-code-processor.mjs +0 -56
  329. package/fesm2015/ng-doc-app-processors-code-processor.mjs.map +0 -1
  330. package/fesm2015/ng-doc-app-processors-demo-pane-processor.mjs +0 -58
  331. package/fesm2015/ng-doc-app-processors-demo-pane-processor.mjs.map +0 -1
  332. package/fesm2015/ng-doc-app-processors-demo-processor.mjs +0 -58
  333. package/fesm2015/ng-doc-app-processors-demo-processor.mjs.map +0 -1
  334. package/fesm2015/ng-doc-app-processors-html-processor.mjs +0 -46
  335. package/fesm2015/ng-doc-app-processors-html-processor.mjs.map +0 -1
  336. package/fesm2015/ng-doc-app-processors-icon-processor.mjs +0 -49
  337. package/fesm2015/ng-doc-app-processors-icon-processor.mjs.map +0 -1
  338. package/fesm2015/ng-doc-app-processors-link-processor.mjs +0 -50
  339. package/fesm2015/ng-doc-app-processors-link-processor.mjs.map +0 -1
  340. package/fesm2015/ng-doc-app-processors-playground-processor.mjs +0 -53
  341. package/fesm2015/ng-doc-app-processors-playground-processor.mjs.map +0 -1
  342. package/fesm2015/ng-doc-app-processors-tooltip-processor.mjs +0 -96
  343. package/fesm2015/ng-doc-app-services-sidebar.mjs +0 -103
  344. package/fesm2015/ng-doc-app-services-sidebar.mjs.map +0 -1
  345. package/fesm2015/ng-doc-app-services-store.mjs +0 -27
  346. package/fesm2015/ng-doc-app-services-theme.mjs +0 -79
  347. package/fesm2015/ng-doc-app-services-theme.mjs.map +0 -1
  348. package/fesm2015/ng-doc-app-type-controls-boolean-control.mjs +0 -45
  349. package/fesm2015/ng-doc-app-type-controls-number-control.mjs +0 -79
  350. package/fesm2015/ng-doc-app-type-controls-string-control.mjs +0 -83
  351. package/fesm2015/ng-doc-app-type-controls-type-alias-control.mjs +0 -97
  352. package/fesm2015/ng-doc-app-type-controls-type-alias-control.mjs.map +0 -1
  353. package/fesm2020/ng-doc-app-classes-root-page.mjs +0 -12
  354. package/fesm2020/ng-doc-app-classes-root-page.mjs.map +0 -1
  355. package/fesm2020/ng-doc-app-classes-search-engine.mjs +0 -12
  356. package/fesm2020/ng-doc-app-classes-search-engine.mjs.map +0 -1
  357. package/fesm2020/ng-doc-app-classes.mjs +0 -8
  358. package/fesm2020/ng-doc-app-classes.mjs.map +0 -1
  359. package/fesm2020/ng-doc-app-components-api-list.mjs +0 -153
  360. package/fesm2020/ng-doc-app-components-breadcrumb.mjs +0 -50
  361. package/fesm2020/ng-doc-app-components-breadcrumb.mjs.map +0 -1
  362. package/fesm2020/ng-doc-app-components-code.mjs +0 -87
  363. package/fesm2020/ng-doc-app-components-code.mjs.map +0 -1
  364. package/fesm2020/ng-doc-app-components-demo-displayer.mjs +0 -99
  365. package/fesm2020/ng-doc-app-components-demo-displayer.mjs.map +0 -1
  366. package/fesm2020/ng-doc-app-components-demo-pane.mjs.map +0 -1
  367. package/fesm2020/ng-doc-app-components-demo.mjs.map +0 -1
  368. package/fesm2020/ng-doc-app-components-kind-icon.mjs +0 -47
  369. package/fesm2020/ng-doc-app-components-kind-icon.mjs.map +0 -1
  370. package/fesm2020/ng-doc-app-components-link.mjs +0 -40
  371. package/fesm2020/ng-doc-app-components-link.mjs.map +0 -1
  372. package/fesm2020/ng-doc-app-components-navbar.mjs +0 -128
  373. package/fesm2020/ng-doc-app-components-navbar.mjs.map +0 -1
  374. package/fesm2020/ng-doc-app-components-page-link.mjs +0 -53
  375. package/fesm2020/ng-doc-app-components-page-link.mjs.map +0 -1
  376. package/fesm2020/ng-doc-app-components-page.mjs +0 -143
  377. package/fesm2020/ng-doc-app-components-playground.mjs.map +0 -1
  378. package/fesm2020/ng-doc-app-components-root.mjs +0 -93
  379. package/fesm2020/ng-doc-app-components-root.mjs.map +0 -1
  380. package/fesm2020/ng-doc-app-components-search-result.mjs +0 -67
  381. package/fesm2020/ng-doc-app-components-search-result.mjs.map +0 -1
  382. package/fesm2020/ng-doc-app-components-search.mjs +0 -158
  383. package/fesm2020/ng-doc-app-components-search.mjs.map +0 -1
  384. package/fesm2020/ng-doc-app-components-theme-toggle.mjs +0 -75
  385. package/fesm2020/ng-doc-app-components-theme-toggle.mjs.map +0 -1
  386. package/fesm2020/ng-doc-app-components.mjs +0 -23
  387. package/fesm2020/ng-doc-app-components.mjs.map +0 -1
  388. package/fesm2020/ng-doc-app-constants.mjs.map +0 -1
  389. package/fesm2020/ng-doc-app-directives-route-active.mjs +0 -76
  390. package/fesm2020/ng-doc-app-directives.mjs +0 -7
  391. package/fesm2020/ng-doc-app-directives.mjs.map +0 -1
  392. package/fesm2020/ng-doc-app-helpers.mjs.map +0 -1
  393. package/fesm2020/ng-doc-app-interfaces.mjs +0 -4
  394. package/fesm2020/ng-doc-app-interfaces.mjs.map +0 -1
  395. package/fesm2020/ng-doc-app-modules-root.mjs.map +0 -1
  396. package/fesm2020/ng-doc-app-modules.mjs +0 -6
  397. package/fesm2020/ng-doc-app-modules.mjs.map +0 -1
  398. package/fesm2020/ng-doc-app-pipes-extract-value.mjs +0 -37
  399. package/fesm2020/ng-doc-app-pipes-extract-value.mjs.map +0 -1
  400. package/fesm2020/ng-doc-app-pipes-filter-by-text.mjs +0 -36
  401. package/fesm2020/ng-doc-app-pipes-sanitize-html.mjs +0 -40
  402. package/fesm2020/ng-doc-app-pipes-sanitize-html.mjs.map +0 -1
  403. package/fesm2020/ng-doc-app-pipes.mjs +0 -8
  404. package/fesm2020/ng-doc-app-pipes.mjs.map +0 -1
  405. package/fesm2020/ng-doc-app-processors-tooltip-processor.mjs.map +0 -1
  406. package/fesm2020/ng-doc-app-processors.mjs +0 -14
  407. package/fesm2020/ng-doc-app-processors.mjs.map +0 -1
  408. package/fesm2020/ng-doc-app-services-sidebar.mjs.map +0 -1
  409. package/fesm2020/ng-doc-app-services-store.mjs.map +0 -1
  410. package/fesm2020/ng-doc-app-services-theme.mjs +0 -76
  411. package/fesm2020/ng-doc-app-services-theme.mjs.map +0 -1
  412. package/fesm2020/ng-doc-app-services.mjs +0 -8
  413. package/fesm2020/ng-doc-app-services.mjs.map +0 -1
  414. package/fesm2020/ng-doc-app-tokens.mjs +0 -41
  415. package/fesm2020/ng-doc-app-tokens.mjs.map +0 -1
  416. package/fesm2020/ng-doc-app-type-controls-boolean-control.mjs +0 -45
  417. package/fesm2020/ng-doc-app-type-controls-boolean-control.mjs.map +0 -1
  418. package/fesm2020/ng-doc-app-type-controls-number-control.mjs +0 -79
  419. package/fesm2020/ng-doc-app-type-controls-number-control.mjs.map +0 -1
  420. package/fesm2020/ng-doc-app-type-controls-string-control.mjs +0 -83
  421. package/fesm2020/ng-doc-app-type-controls-string-control.mjs.map +0 -1
  422. package/fesm2020/ng-doc-app-type-controls-type-alias-control.mjs +0 -97
  423. package/fesm2020/ng-doc-app-type-controls.mjs +0 -9
  424. package/fesm2020/ng-doc-app-type-controls.mjs.map +0 -1
  425. package/fesm2020/ng-doc-app-types.mjs +0 -4
  426. package/fesm2020/ng-doc-app-types.mjs.map +0 -1
  427. package/fesm2020/ng-doc-app.mjs +0 -18
  428. package/fesm2020/ng-doc-app.mjs.map +0 -1
  429. /package/{esm2020 → esm2022}/classes/default-search-engine/default-search-engine.mjs +0 -0
  430. /package/{esm2020 → esm2022}/classes/default-search-engine/index.mjs +0 -0
  431. /package/{esm2020 → esm2022}/classes/default-search-engine/ng-doc-app-classes-default-search-engine.mjs +0 -0
  432. /package/{esm2020 → esm2022}/classes/index.mjs +0 -0
  433. /package/{esm2020 → esm2022}/classes/ng-doc-app-classes.mjs +0 -0
  434. /package/{esm2020 → esm2022}/classes/root-page/index.mjs +0 -0
  435. /package/{esm2020 → esm2022}/classes/root-page/ng-doc-app-classes-root-page.mjs +0 -0
  436. /package/{esm2020 → esm2022}/classes/root-page/root-page.mjs +0 -0
  437. /package/{esm2020 → esm2022}/classes/search-engine/index.mjs +0 -0
  438. /package/{esm2020 → esm2022}/classes/search-engine/ng-doc-app-classes-search-engine.mjs +0 -0
  439. /package/{esm2020 → esm2022}/classes/search-engine/search-engine.mjs +0 -0
  440. /package/{esm2020 → esm2022}/components/api-list/index.mjs +0 -0
  441. /package/{esm2020 → esm2022}/components/api-list/ng-doc-app-components-api-list.mjs +0 -0
  442. /package/{esm2020 → esm2022}/components/breadcrumb/index.mjs +0 -0
  443. /package/{esm2020 → esm2022}/components/breadcrumb/ng-doc-app-components-breadcrumb.mjs +0 -0
  444. /package/{esm2020 → esm2022}/components/code/index.mjs +0 -0
  445. /package/{esm2020 → esm2022}/components/code/ng-doc-app-components-code.mjs +0 -0
  446. /package/{esm2020 → esm2022}/components/demo/index.mjs +0 -0
  447. /package/{esm2020 → esm2022}/components/demo/ng-doc-app-components-demo.mjs +0 -0
  448. /package/{esm2020 → esm2022}/components/demo-displayer/index.mjs +0 -0
  449. /package/{esm2020 → esm2022}/components/demo-displayer/ng-doc-app-components-demo-displayer.mjs +0 -0
  450. /package/{esm2020 → esm2022}/components/demo-pane/index.mjs +0 -0
  451. /package/{esm2020 → esm2022}/components/demo-pane/ng-doc-app-components-demo-pane.mjs +0 -0
  452. /package/{esm2020 → esm2022}/components/index.mjs +0 -0
  453. /package/{esm2020 → esm2022}/components/kind-icon/index.mjs +0 -0
  454. /package/{esm2020 → esm2022}/components/kind-icon/ng-doc-app-components-kind-icon.mjs +0 -0
  455. /package/{esm2020 → esm2022}/components/link/index.mjs +0 -0
  456. /package/{esm2020 → esm2022}/components/link/ng-doc-app-components-link.mjs +0 -0
  457. /package/{esm2020 → esm2022}/components/navbar/index.mjs +0 -0
  458. /package/{esm2020 → esm2022}/components/navbar/ng-doc-app-components-navbar.mjs +0 -0
  459. /package/{esm2020 → esm2022}/components/ng-doc-app-components.mjs +0 -0
  460. /package/{esm2020 → esm2022}/components/page/index.mjs +0 -0
  461. /package/{esm2020 → esm2022}/components/page/ng-doc-app-components-page.mjs +0 -0
  462. /package/{esm2020 → esm2022}/components/page-link/index.mjs +0 -0
  463. /package/{esm2020 → esm2022}/components/page-link/ng-doc-app-components-page-link.mjs +0 -0
  464. /package/{esm2020 → esm2022}/components/playground/index.mjs +0 -0
  465. /package/{esm2020 → esm2022}/components/playground/ng-doc-app-components-playground.mjs +0 -0
  466. /package/{esm2020 → esm2022}/components/playground/playground-form.mjs +0 -0
  467. /package/{esm2020 → esm2022}/components/playground/playground-property-control.mjs +0 -0
  468. /package/{esm2020 → esm2022}/components/root/index.mjs +0 -0
  469. /package/{esm2020 → esm2022}/components/root/ng-doc-app-components-root.mjs +0 -0
  470. /package/{esm2020 → esm2022}/components/search/index.mjs +0 -0
  471. /package/{esm2020 → esm2022}/components/search/ng-doc-app-components-search.mjs +0 -0
  472. /package/{esm2020 → esm2022}/components/search-result/index.mjs +0 -0
  473. /package/{esm2020 → esm2022}/components/search-result/ng-doc-app-components-search-result.mjs +0 -0
  474. /package/{esm2020 → esm2022}/components/sidebar/index.mjs +0 -0
  475. /package/{esm2020 → esm2022}/components/sidebar/ng-doc-app-components-sidebar.mjs +0 -0
  476. /package/{esm2020 → esm2022}/components/theme-toggle/index.mjs +0 -0
  477. /package/{esm2020 → esm2022}/components/theme-toggle/ng-doc-app-components-theme-toggle.mjs +0 -0
  478. /package/{esm2020 → esm2022}/components/toc/index.mjs +0 -0
  479. /package/{esm2020 → esm2022}/components/toc/ng-doc-app-components-toc.mjs +0 -0
  480. /package/{esm2020 → esm2022}/constants/index.mjs +0 -0
  481. /package/{esm2020 → esm2022}/constants/ng-doc-app-constants.mjs +0 -0
  482. /package/{esm2020 → esm2022}/constants/themes.mjs +0 -0
  483. /package/{esm2020 → esm2022}/directives/code-highlighter/index.mjs +0 -0
  484. /package/{esm2020 → esm2022}/directives/code-highlighter/ng-doc-app-directives-code-highlighter.mjs +0 -0
  485. /package/{esm2020 → esm2022}/directives/index.mjs +0 -0
  486. /package/{esm2020 → esm2022}/directives/ng-doc-app-directives.mjs +0 -0
  487. /package/{esm2020 → esm2022}/directives/route-active/index.mjs +0 -0
  488. /package/{esm2020 → esm2022}/directives/route-active/ng-doc-app-directives-route-active.mjs +0 -0
  489. /package/{esm2020 → esm2022}/helpers/as-boolean.mjs +0 -0
  490. /package/{esm2020 → esm2022}/helpers/generate-toc.mjs +0 -0
  491. /package/{esm2020 → esm2022}/helpers/is-external-link.mjs +0 -0
  492. /package/{esm2020 → esm2022}/helpers/is-playground-property.mjs +0 -0
  493. /package/{esm2020 → esm2022}/helpers/ng-doc-app-helpers.mjs +0 -0
  494. /package/{esm2020 → esm2022}/helpers/provide-playground-demo.mjs +0 -0
  495. /package/{esm2020 → esm2022}/helpers/provide-search-engine.mjs +0 -0
  496. /package/{esm2020 → esm2022}/helpers/provide-type-control.mjs +0 -0
  497. /package/{esm2020 → esm2022}/index.mjs +0 -0
  498. /package/{esm2020 → esm2022}/interfaces/context.mjs +0 -0
  499. /package/{esm2020 → esm2022}/interfaces/demo-assets.mjs +0 -0
  500. /package/{esm2020 → esm2022}/interfaces/index.mjs +0 -0
  501. /package/{esm2020 → esm2022}/interfaces/navigation.mjs +0 -0
  502. /package/{esm2020 → esm2022}/interfaces/ng-doc-app-interfaces.mjs +0 -0
  503. /package/{esm2020 → esm2022}/interfaces/processor-options.mjs +0 -0
  504. /package/{esm2020 → esm2022}/interfaces/provided-type-control.mjs +0 -0
  505. /package/{esm2020 → esm2022}/interfaces/search-result.mjs +0 -0
  506. /package/{esm2020 → esm2022}/interfaces/theme.mjs +0 -0
  507. /package/{esm2020 → esm2022}/interfaces/toc-item.mjs +0 -0
  508. /package/{esm2020 → esm2022}/interfaces/type-control-provider-options.mjs +0 -0
  509. /package/{esm2020 → esm2022}/interfaces/type-control.mjs +0 -0
  510. /package/{esm2020 → esm2022}/modules/index.mjs +0 -0
  511. /package/{esm2020 → esm2022}/modules/ng-doc-app-modules.mjs +0 -0
  512. /package/{esm2020 → esm2022}/modules/root/index.mjs +0 -0
  513. /package/{esm2020 → esm2022}/modules/root/ng-doc-app-modules-root.mjs +0 -0
  514. /package/{esm2020 → esm2022}/ng-doc-app.mjs +0 -0
  515. /package/{esm2020 → esm2022}/pipes/extract-value/index.mjs +0 -0
  516. /package/{esm2020 → esm2022}/pipes/extract-value/ng-doc-app-pipes-extract-value.mjs +0 -0
  517. /package/{esm2020 → esm2022}/pipes/filter-by-text/index.mjs +0 -0
  518. /package/{esm2020 → esm2022}/pipes/filter-by-text/ng-doc-app-pipes-filter-by-text.mjs +0 -0
  519. /package/{esm2020 → esm2022}/pipes/index.mjs +0 -0
  520. /package/{esm2020 → esm2022}/pipes/ng-doc-app-pipes.mjs +0 -0
  521. /package/{esm2020 → esm2022}/pipes/sanitize-html/index.mjs +0 -0
  522. /package/{esm2020 → esm2022}/pipes/sanitize-html/ng-doc-app-pipes-sanitize-html.mjs +0 -0
  523. /package/{esm2020 → esm2022}/processors/blockquote-processor/index.mjs +0 -0
  524. /package/{esm2020 → esm2022}/processors/blockquote-processor/ng-doc-app-processors-blockquote-processor.mjs +0 -0
  525. /package/{esm2020 → esm2022}/processors/code-processor/index.mjs +0 -0
  526. /package/{esm2020 → esm2022}/processors/code-processor/ng-doc-app-processors-code-processor.mjs +0 -0
  527. /package/{esm2020 → esm2022}/processors/demo-pane-processor/index.mjs +0 -0
  528. /package/{esm2020 → esm2022}/processors/demo-pane-processor/ng-doc-app-processors-demo-pane-processor.mjs +0 -0
  529. /package/{esm2020 → esm2022}/processors/demo-processor/index.mjs +0 -0
  530. /package/{esm2020 → esm2022}/processors/demo-processor/ng-doc-app-processors-demo-processor.mjs +0 -0
  531. /package/{esm2020 → esm2022}/processors/html-processor/index.mjs +0 -0
  532. /package/{esm2020 → esm2022}/processors/html-processor/ng-doc-app-processors-html-processor.mjs +0 -0
  533. /package/{esm2020 → esm2022}/processors/icon-processor/index.mjs +0 -0
  534. /package/{esm2020 → esm2022}/processors/icon-processor/ng-doc-app-processors-icon-processor.mjs +0 -0
  535. /package/{esm2020 → esm2022}/processors/index.mjs +0 -0
  536. /package/{esm2020 → esm2022}/processors/link-processor/index.mjs +0 -0
  537. /package/{esm2020 → esm2022}/processors/link-processor/ng-doc-app-processors-link-processor.mjs +0 -0
  538. /package/{esm2020 → esm2022}/processors/ng-doc-app-processors.mjs +0 -0
  539. /package/{esm2020 → esm2022}/processors/playground-processor/index.mjs +0 -0
  540. /package/{esm2020 → esm2022}/processors/playground-processor/ng-doc-app-processors-playground-processor.mjs +0 -0
  541. /package/{esm2020 → esm2022}/processors/tooltip-processor/index.mjs +0 -0
  542. /package/{esm2020 → esm2022}/processors/tooltip-processor/ng-doc-app-processors-tooltip-processor.mjs +0 -0
  543. /package/{esm2020 → esm2022}/services/index.mjs +0 -0
  544. /package/{esm2020 → esm2022}/services/ng-doc-app-services.mjs +0 -0
  545. /package/{esm2020 → esm2022}/services/sidebar/index.mjs +0 -0
  546. /package/{esm2020 → esm2022}/services/sidebar/ng-doc-app-services-sidebar.mjs +0 -0
  547. /package/{esm2020 → esm2022}/services/store/index.mjs +0 -0
  548. /package/{esm2020 → esm2022}/services/store/ng-doc-app-services-store.mjs +0 -0
  549. /package/{esm2020 → esm2022}/services/theme/index.mjs +0 -0
  550. /package/{esm2020 → esm2022}/services/theme/ng-doc-app-services-theme.mjs +0 -0
  551. /package/{esm2020 → esm2022}/tokens/api-list.mjs +0 -0
  552. /package/{esm2020 → esm2022}/tokens/context.mjs +0 -0
  553. /package/{esm2020 → esm2022}/tokens/index.mjs +0 -0
  554. /package/{esm2020 → esm2022}/tokens/ng-doc-app-tokens.mjs +0 -0
  555. /package/{esm2020 → esm2022}/tokens/theme.mjs +0 -0
  556. /package/{esm2020 → esm2022}/tokens/type-control.mjs +0 -0
  557. /package/{esm2020 → esm2022}/type-controls/boolean-control/index.mjs +0 -0
  558. /package/{esm2020 → esm2022}/type-controls/boolean-control/ng-doc-app-type-controls-boolean-control.mjs +0 -0
  559. /package/{esm2020 → esm2022}/type-controls/index.mjs +0 -0
  560. /package/{esm2020 → esm2022}/type-controls/ng-doc-app-type-controls.mjs +0 -0
  561. /package/{esm2020 → esm2022}/type-controls/number-control/index.mjs +0 -0
  562. /package/{esm2020 → esm2022}/type-controls/number-control/ng-doc-app-type-controls-number-control.mjs +0 -0
  563. /package/{esm2020 → esm2022}/type-controls/string-control/index.mjs +0 -0
  564. /package/{esm2020 → esm2022}/type-controls/string-control/ng-doc-app-type-controls-string-control.mjs +0 -0
  565. /package/{esm2020 → esm2022}/type-controls/type-alias-control/index.mjs +0 -0
  566. /package/{esm2020 → esm2022}/type-controls/type-alias-control/ng-doc-app-type-controls-type-alias-control.mjs +0 -0
  567. /package/{esm2020 → esm2022}/types/index.mjs +0 -0
  568. /package/{esm2020 → esm2022}/types/ng-doc-app-types.mjs +0 -0
  569. /package/{esm2020 → esm2022}/types/typed-form.mjs +0 -0
  570. /package/{fesm2020 → fesm2022}/ng-doc-app-classes-default-search-engine.mjs +0 -0
  571. /package/{fesm2020 → fesm2022}/ng-doc-app-classes-default-search-engine.mjs.map +0 -0
  572. /package/{fesm2015 → fesm2022}/ng-doc-app-classes-root-page.mjs +0 -0
  573. /package/{fesm2015 → fesm2022}/ng-doc-app-classes-root-page.mjs.map +0 -0
  574. /package/{fesm2015 → fesm2022}/ng-doc-app-classes-search-engine.mjs +0 -0
  575. /package/{fesm2015 → fesm2022}/ng-doc-app-classes-search-engine.mjs.map +0 -0
  576. /package/{fesm2015 → fesm2022}/ng-doc-app-classes.mjs +0 -0
  577. /package/{fesm2015 → fesm2022}/ng-doc-app-classes.mjs.map +0 -0
  578. /package/{fesm2015 → fesm2022}/ng-doc-app-components.mjs +0 -0
  579. /package/{fesm2015 → fesm2022}/ng-doc-app-components.mjs.map +0 -0
  580. /package/{fesm2015 → fesm2022}/ng-doc-app-directives.mjs +0 -0
  581. /package/{fesm2015 → fesm2022}/ng-doc-app-directives.mjs.map +0 -0
  582. /package/{fesm2015 → fesm2022}/ng-doc-app-interfaces.mjs +0 -0
  583. /package/{fesm2015 → fesm2022}/ng-doc-app-interfaces.mjs.map +0 -0
  584. /package/{fesm2015 → fesm2022}/ng-doc-app-modules.mjs +0 -0
  585. /package/{fesm2015 → fesm2022}/ng-doc-app-modules.mjs.map +0 -0
  586. /package/{fesm2015 → fesm2022}/ng-doc-app-pipes.mjs +0 -0
  587. /package/{fesm2015 → fesm2022}/ng-doc-app-pipes.mjs.map +0 -0
  588. /package/{fesm2015 → fesm2022}/ng-doc-app-processors.mjs +0 -0
  589. /package/{fesm2015 → fesm2022}/ng-doc-app-processors.mjs.map +0 -0
  590. /package/{fesm2015 → fesm2022}/ng-doc-app-services.mjs +0 -0
  591. /package/{fesm2015 → fesm2022}/ng-doc-app-services.mjs.map +0 -0
  592. /package/{fesm2015 → fesm2022}/ng-doc-app-tokens.mjs +0 -0
  593. /package/{fesm2015 → fesm2022}/ng-doc-app-tokens.mjs.map +0 -0
  594. /package/{fesm2015 → fesm2022}/ng-doc-app-type-controls.mjs +0 -0
  595. /package/{fesm2015 → fesm2022}/ng-doc-app-type-controls.mjs.map +0 -0
  596. /package/{fesm2015 → fesm2022}/ng-doc-app-types.mjs +0 -0
  597. /package/{fesm2015 → fesm2022}/ng-doc-app-types.mjs.map +0 -0
  598. /package/{fesm2015 → fesm2022}/ng-doc-app.mjs +0 -0
  599. /package/{fesm2015 → fesm2022}/ng-doc-app.mjs.map +0 -0
@@ -0,0 +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> = [\n\t\tNG_DOC_NIGHT_THEME,\n\t\tNG_DOC_DARK_PURPLE_THEME,\n\t\tundefined,\n\t];\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.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,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAtB,sBAAsB,EAAA,YAAA,EAAA,CAJnB,yBAAyB,CAAA,EAAA,OAAA,EAAA,CAC9B,YAAY,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,eAAe,CAAA,EAAA,OAAA,EAAA,CACxE,yBAAyB,CAAA,EAAA,CAAA,CAAA,EAAA;AAEvB,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,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;;;;"}
@@ -19,10 +19,10 @@ class NgDocTocElementComponent {
19
19
  this.selected = false;
20
20
  this.level = 1;
21
21
  }
22
+ 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
24
  }
23
- NgDocTocElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocTocElementComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
24
- NgDocTocElementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.4", 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 });
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocTocElementComponent, decorators: [{
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocTocElementComponent, decorators: [{
26
26
  type: Component,
27
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"] }]
28
28
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { href: [{
@@ -99,9 +99,9 @@ let NgDocTocComponent = class NgDocTocComponent {
99
99
  this.activeItem = item;
100
100
  this.changeDetectorRef.detectChanges();
101
101
  }
102
+ 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
104
  };
103
- NgDocTocComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocTocComponent, deps: [{ token: DOCUMENT }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i1.Router }], target: i0.ɵɵFactoryTarget.Component });
104
- NgDocTocComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.4", 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 });
105
105
  NgDocTocComponent = __decorate([
106
106
  UntilDestroy(),
107
107
  __metadata("design:paramtypes", [Document,
@@ -110,7 +110,7 @@ NgDocTocComponent = __decorate([
110
110
  Renderer2,
111
111
  Router])
112
112
  ], NgDocTocComponent);
113
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocTocComponent, decorators: [{
113
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocTocComponent, decorators: [{
114
114
  type: Component,
115
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"] }]
116
116
  }], ctorParameters: function () { return [{ type: Document, decorators: [{
@@ -127,11 +127,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImpor
127
127
  }] } });
128
128
 
129
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] }); }
130
133
  }
131
- NgDocPageMapModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocPageMapModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
132
- NgDocPageMapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.4", ngImport: i0, type: NgDocPageMapModule, declarations: [NgDocTocComponent, NgDocTocElementComponent], imports: [CommonModule, RouterLinkWithHref, NgDocDotModule, RouterLink], exports: [NgDocTocComponent, NgDocTocElementComponent] });
133
- NgDocPageMapModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocPageMapModule, imports: [CommonModule, NgDocDotModule] });
134
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocPageMapModule, decorators: [{
134
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocPageMapModule, decorators: [{
135
135
  type: NgModule,
136
136
  args: [{
137
137
  declarations: [NgDocTocComponent, NgDocTocElementComponent],
@@ -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":";;;;;;;;;;;;;;MAQa,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;;qHAZhD,wBAAwB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAxB,wBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,wBAAwB,8OCRrC,8HACA,EAAA,MAAA,EAAA,CAAA,6WAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;2FDOa,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBANpC,SAAS;+BACC,wBAAwB,EAAA,eAAA,EAGjB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,8HAAA,EAAA,MAAA,EAAA,CAAA,6WAAA,CAAA,EAAA,CAAA;iGAI/C,IAAI,EAAA,CAAA;sBADH,KAAK;gBAKN,QAAQ,EAAA,CAAA;sBAFP,KAAK;;sBACL,WAAW;uBAAC,2BAA2B,CAAA;gBAKxC,KAAK,EAAA,CAAA;sBAFJ,KAAK;;sBACL,WAAW;uBAAC,wBAAwB,CAAA;;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AC;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/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,GAAA,EAAA,CAAA,oB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A,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,4 +1,4 @@
1
- const NG_DOC_STORE_THEME_KEY = 'ng-doc-theme';
1
+ const NG_DOC_STORE_THEME_KEY = 'ng-doc-theme-id';
2
2
 
3
3
  /**
4
4
  * Dark theme. You can set it manually by calling `NgDocThemeService.setTheme` method.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ng-doc-app-constants.mjs","sources":["../../../../libs/app/constants/store-keys.ts","../../../../libs/app/constants/themes.ts","../../../../libs/app/constants/ng-doc-app-constants.ts"],"sourcesContent":["export const NG_DOC_STORE_THEME_KEY: string = 'ng-doc-theme-id';\n","import {NgDocTheme} from '@ng-doc/app/interfaces';\n\n/**\n * Dark theme. You can set it manually by calling `NgDocThemeService.setTheme` method.\n *\n * ```typescript\n * import {Component} from '@angular/core';\n * import {NgDocThemeService, NG_DOC_NIGHT_THEME} from '@ng-doc/app';\n *\n * @Component()\n * export class AppComponent {\n * \tconstructor(\n * \t private readonly themeService: NgDocThemeService,\n * \t) {\n * \t this.themeService.setTheme(NG_DOC_NIGHT_THEME.id);\n * \t}\n * }\n * ```\n *\n * Or you can set it as default theme in your app module:\n * ```typescript\n * import {NgModule} from '@angular/core';\n * import {NgDocModule, NG_DOC_NIGHT_THEME} from '@ng-doc/app';\n * import {AppComponent} from './app.component';\n *\n * @NgModule({\n * \tdeclarations: [AppComponent],\n * \timports: [NgDocModule.forRoot({defaultTheme: NG_DOC_NIGHT_THEME.id})],\n * \tbootstrap: [AppComponent],\n * })\n * export class AppModule {}\n * ```\n */\nexport const NG_DOC_NIGHT_THEME: NgDocTheme = {id: 'ng-doc-night', path: 'assets/ng-doc/app/themes/ng-doc-night.css'};\n\n/**\n * Dark purple theme. You can set it manually by calling `NgDocThemeService.setTheme` method.\n *\n * ```typescript\n * import {Component} from '@angular/core';\n * import {NgDocThemeService, NG_DOC_DARK_PURPLE_THEME} from '@ng-doc/app';\n *\n * @Component()\n * export class AppComponent {\n * \tconstructor(\n * \t private readonly themeService: NgDocThemeService,\n * \t) {\n * \t this.themeService.setTheme(NG_DOC_DARK_PURPLE_THEME.id);\n * \t}\n * }\n * ```\n *\n * Or you can set it as default theme in your app module:\n * ```typescript\n * import {NgModule} from '@angular/core';\n * import {NgDocModule, NG_DOC_DARK_PURPLE_THEME} from '@ng-doc/app';\n * import {AppComponent} from './app.component';\n *\n * @NgModule({\n * \tdeclarations: [AppComponent],\n * \timports: [NgDocModule.forRoot({defaultTheme: NG_DOC_DARK_PURPLE_THEME.id})],\n * \tbootstrap: [AppComponent],\n * })\n * export class AppModule {}\n * ```\n */\nexport const NG_DOC_DARK_PURPLE_THEME: NgDocTheme = {\n\tid: 'ng-doc-dark-purple',\n\tpath: 'assets/ng-doc/app/themes/ng-doc-dark-purple.css',\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAO,MAAM,sBAAsB,GAAW;;ACE9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BG;AACI,MAAM,kBAAkB,GAAe,EAAC,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,2CAA2C,GAAE;AAEtH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BG;AACU,MAAA,wBAAwB,GAAe;AACnD,IAAA,EAAE,EAAE,oBAAoB;AACxB,IAAA,IAAI,EAAE,iDAAiD;;;ACpExD;;AAEG;;;;"}
@@ -22,10 +22,10 @@ class NgDocCodeHighlighterDirective {
22
22
  this.elementRef.nativeElement.innerHTML = this.html;
23
23
  }
24
24
  }
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 }); }
25
27
  }
26
- NgDocCodeHighlighterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocCodeHighlighterDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
27
- NgDocCodeHighlighterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.4", type: NgDocCodeHighlighterDirective, selector: "code[ngDocCodeHighlighter]", inputs: { code: ["ngDocCodeHighlighter", "code"], html: "html", language: "language" }, host: { properties: { "class.hljs": "this.highlightJsClass" } }, usesOnChanges: true, ngImport: i0 });
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocCodeHighlighterDirective, decorators: [{
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]',
@@ -43,11 +43,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImpor
43
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 }); }
46
49
  }
47
- NgDocCodeHighlighterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocCodeHighlighterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
48
- NgDocCodeHighlighterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.4", ngImport: i0, type: NgDocCodeHighlighterModule, declarations: [NgDocCodeHighlighterDirective], exports: [NgDocCodeHighlighterDirective] });
49
- NgDocCodeHighlighterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocCodeHighlighterModule });
50
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocCodeHighlighterModule, decorators: [{
50
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocCodeHighlighterModule, decorators: [{
51
51
  type: NgModule,
52
52
  args: [{
53
53
  declarations: [NgDocCodeHighlighterDirective],
@@ -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.language, this.code);\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 * Gener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,uBAAA,EAAA,EAAA,EAAA,aAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;2FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAHzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,4BAA4B;AACtC,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;;;MCbb,0BAA0B,CAAA;;uHAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;wHAA1B,0BAA0B,EAAA,YAAA,EAAA,CAHvB,6BAA6B,CAAA,EAAA,OAAA,EAAA,CAClC,6BAA6B,CAAA,EAAA,CAAA,CAAA;wHAE3B,0BAA0B,EAAA,CAAA,CAAA;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/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.language, this.code);\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,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,CA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AA,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;;;;"}
@@ -30,9 +30,9 @@ let NgDocRouteActiveDirective = class NgDocRouteActiveDirective {
30
30
  : asArray(this.activeClass).forEach((cls) => this.renderer.removeClass(this.elementRef.nativeElement, cls));
31
31
  });
32
32
  }
33
+ 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 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
34
+ 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 }); }
33
35
  };
34
- NgDocRouteActiveDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocRouteActiveDirective, deps: [{ token: i0.ElementRef }, { token: i1.Router }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
35
- NgDocRouteActiveDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.4", type: NgDocRouteActiveDirective, selector: "[ngDocRouteActive]", inputs: { link: ["ngDocRouteActive", "link"], activeClass: "activeClass", matchOptions: "matchOptions" }, ngImport: i0 });
36
36
  NgDocRouteActiveDirective = __decorate([
37
37
  UntilDestroy(),
38
38
  __metadata("design:paramtypes", [ElementRef,
@@ -40,7 +40,7 @@ NgDocRouteActiveDirective = __decorate([
40
40
  Renderer2,
41
41
  ChangeDetectorRef])
42
42
  ], NgDocRouteActiveDirective);
43
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocRouteActiveDirective, decorators: [{
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocRouteActiveDirective, decorators: [{
44
44
  type: Directive,
45
45
  args: [{
46
46
  selector: '[ngDocRouteActive]',
@@ -55,11 +55,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImpor
55
55
  }] } });
56
56
 
57
57
  class NgDocRouteActiveModule {
58
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocRouteActiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
59
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: NgDocRouteActiveModule, declarations: [NgDocRouteActiveDirective], imports: [CommonModule], exports: [NgDocRouteActiveDirective] }); }
60
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocRouteActiveModule, imports: [CommonModule] }); }
58
61
  }
59
- NgDocRouteActiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocRouteActiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
60
- NgDocRouteActiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.4", ngImport: i0, type: NgDocRouteActiveModule, declarations: [NgDocRouteActiveDirective], imports: [CommonModule], exports: [NgDocRouteActiveDirective] });
61
- NgDocRouteActiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocRouteActiveModule, imports: [CommonModule] });
62
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocRouteActiveModule, decorators: [{
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocRouteActiveModule, decorators: [{
63
63
  type: NgModule,
64
64
  args: [{
65
65
  declarations: [NgDocRouteActiveDirective],
@@ -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 {ChangeDetectorRef, 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\tprivate readonly changeDetectorRef: ChangeDetectorRef,\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,GAA/B,MAAM,yBAAyB,CAAA;AAerC,IAAA,WAAA,CACkB,UAAmC,EACnC,MAAc,EACd,QAAmB,EACnB,iBAAoC,EAAA;QAHpC,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;QACnC,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QACd,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAW;QACnB,IAAiB,CAAA,iBAAA,GAAjB,iBAAiB,CAAmB;QAjBtD,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,YA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oBACvB,OAAO,EAAE,CAAC,yBAAyB,CAAC;AACpC,iBAAA,CAAA;;;ACTD;;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/route-active.module.ts","../../../../libs/app/directives/route-active/ng-doc-app-directives-route-active.ts"],"sourcesContent":["import {ChangeDetectorRef, 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\tprivate readonly changeDetectorRef: ChangeDetectorRef,\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,EACnB,iBAAoC,EAAA;QAHpC,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;QACnC,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QACd,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAW;QACnB,IAAiB,CAAA,iBAAA,GAAjB,iBAAiB,CAAmB;QAjBtD,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;QAQD,IAAI,CAAC,MAAM,CAAC,MAAM;AAChB,aAAA,IAAI,CACJ,MAAM,CAAC,CAAC,KAAY,KAAK,KAAK,YAAY,aAAa,CAAC,EACxD,GAAG,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC,EAC7D,oBAAoB,EAAE,EACtB,cAAc,CAAC,IAAI,CAAC,CACpB;AACA,aAAA,SAAS,CAAC,CAAC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AA,CAAA;8KAIA,IAAI,EAAA,CAAA;sBADH,KAAK;uBAAC,kBAAkB,CAAA;gBAIzB,WAAW,EAAA,CAAA;sBADV,KAAK;gBAIN,YAAY,EAAA,CAAA;sBADX,KAAK;;;ACZP,MAKa,sBAAsB,CAAA;8GAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAtB,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,sBAAsB,EAJnB,YAAA,EAAA,CAAA,yBAAyB,CAC9B,EAAA,OAAA,EAAA,CAAA,YAAY,aACZ,yBAAyB,CAAA,EAAA,CAAA,CAAA,EAAA;AAEvB,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,sBAAsB,YAHxB,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGV,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBALlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACT,YAAY,EAAE,CAAC,yBAAyB,CAAC;oBACzC,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,yBAAyB,CAAC;AACpC,iBAAA,CAAA;;;ACTD;;AAEG;;;;"}
@@ -46,6 +46,13 @@ function levelFromTagName(heading) {
46
46
  return Number(heading.tagName.toLowerCase().replace(/[a-z]*/g, '') || 1);
47
47
  }
48
48
 
49
+ /**
50
+ * Check if the OS theme is dark
51
+ */
52
+ function isDarkOsTheme() {
53
+ return window.matchMedia('(prefers-color-scheme: dark)').matches;
54
+ }
55
+
49
56
  /**
50
57
  *
51
58
  * @param url
@@ -139,5 +146,5 @@ function getTokenForType(type) {
139
146
  * Generated bundle index. Do not edit.
140
147
  */
141
148
 
142
- export { asBoolean, generateToc, getPlaygroundDemoToken, getTokenForType, isExternalLink, isPlaygroundProperty, providePlaygroundDemo, provideSearchEngine, provideTypeControl };
149
+ export { asBoolean, generateToc, getPlaygroundDemoToken, getTokenForType, isDarkOsTheme, isExternalLink, isPlaygroundProperty, providePlaygroundDemo, provideSearchEngine, provideTypeControl };
143
150
  //# sourceMappingURL=ng-doc-app-helpers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ng-doc-app-helpers.mjs","sources":["../../../../libs/app/helpers/as-boolean.ts","../../../../libs/app/helpers/generate-toc.ts","../../../../libs/app/helpers/is-dark-os-theme.ts","../../../../libs/app/helpers/is-external-link.ts","../../../../libs/app/helpers/is-playground-property.ts","../../../../libs/app/helpers/provide-playground-demo.ts","../../../../libs/app/helpers/provide-search-engine.ts","../../../../libs/app/helpers/provide-type-control.ts","../../../../libs/app/helpers/ng-doc-app-helpers.ts"],"sourcesContent":["/**\n *\n * @param value\n */\nexport function asBoolean(value: unknown): boolean {\n\tif (typeof value === 'string') {\n\t\treturn value.toLowerCase() === 'true' ? true : value.toLowerCase() === 'false' ? false : !!value;\n\t}\n\treturn !!value;\n}\n","import {NgDocTocItem} from '@ng-doc/app/interfaces';\nimport {asArray} from '@ng-doc/core/helpers/as-array';\nimport {NgDocHeading} from '@ng-doc/core/types';\n\n/**\n * Generate table of contents, only for headings with id\n *\n * @param container\n * @param headings\n */\nexport function generateToc(container: HTMLElement): NgDocTocItem[] {\n\tconst headings: NgDocHeading[] = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'];\n\n\tconst headingElements: HTMLHeadingElement[] = Array.from(\n\t\tcontainer.querySelectorAll<HTMLHeadingElement>(headings.join(', ')),\n\t).filter((heading: HTMLHeadingElement) => heading.id);\n\n\tconst levels: number[] = asArray(new Set(headingElements.map(levelFromTagName).sort()));\n\n\treturn headingElements.reduce((map: NgDocTocItem[], heading: HTMLHeadingElement) => {\n\t\tconst headingLevel: number = levelFromTagName(heading);\n\t\tconst anchor: HTMLAnchorElement | null = heading.querySelector<HTMLAnchorElement>('a.ng-doc-header-link');\n\n\t\tif (anchor) {\n\t\t\tmap.push({\n\t\t\t\ttitle: heading.textContent?.trim() ?? '',\n\t\t\t\telement: heading,\n\t\t\t\tpath: anchor.pathname + anchor.hash,\n\t\t\t\tlevel: levels.indexOf(headingLevel) + 1,\n\t\t\t});\n\t\t}\n\n\t\treturn map;\n\t}, []);\n}\n\n/**\n *\n * @param heading\n */\nfunction levelFromTagName(heading: HTMLHeadingElement): number {\n\treturn Number(heading.tagName.toLowerCase().replace(/[a-z]*/g, '') || 1);\n}\n","/**\n * Check if the OS theme is dark\n */\nexport function isDarkOsTheme(): boolean {\n\treturn window.matchMedia('(prefers-color-scheme: dark)').matches;\n}\n","/**\n *\n * @param url\n */\nexport function isExternalLink(url: string): boolean {\n\tconst anchorElement: HTMLAnchorElement = document.createElement('a');\n\n\tanchorElement.href = url;\n\n\treturn anchorElement.host !== window.location.host;\n}\n","import {objectKeys} from '@ng-doc/core/helpers/object-keys';\nimport {NgDocPlaygroundProperty} from '@ng-doc/core/interfaces';\n\n/**\n *\n * @param obj\n */\nexport function isPlaygroundProperty(obj: Record<string, any>): obj is NgDocPlaygroundProperty {\n\treturn objectKeys(obj).includes('type');\n}\n","import {InjectionToken, Provider} from '@angular/core';\nimport {Constructor} from '@ng-doc/core/types';\n\nconst tokenStore: Map<string, InjectionToken<unknown>> = new Map<string, InjectionToken<unknown>>();\n\n/**\n *\n * @param type\n * @param control\n * @param options\n * @param playgroundId\n * @param selector\n * @param component\n */\nexport function providePlaygroundDemo(playgroundId: string, component: Constructor<unknown>): Provider {\n\tconst token: InjectionToken<unknown> =\n\t\ttokenStore.get(playgroundId) ?? new InjectionToken<unknown>(`NG_DOC_PLAYGROUND_DEMO_${playgroundId}`);\n\n\ttokenStore.set(playgroundId, token);\n\n\treturn {\n\t\tprovide: token,\n\t\tuseValue: component,\n\t\tmulti: true,\n\t};\n}\n\n/**\n * Returns the token for the given playground id.\n *\n * @param playgroundId\n */\nexport function getPlaygroundDemoToken<T>(playgroundId: string): InjectionToken<T[]> | undefined {\n\treturn tokenStore.get(playgroundId) as InjectionToken<T[]> | undefined;\n}\n","import {Provider} from '@angular/core';\nimport {NgDocSearchEngine} from '@ng-doc/app/classes/search-engine';\nimport {Constructor} from '@ng-doc/core';\n\n/**\n * Provides the `NgDocSearchEngine` to enable search in the documentation.\n *\n * You can create and provide your own `NgDocSearchEngine` if you want to handle the search yourself.\n *\n * @param engine - The search engine class.\n * @param args - The arguments for the search engine class.\n * @returns The provider for the search engine.\n */\nexport function provideSearchEngine<E extends Constructor<NgDocSearchEngine>>(\n\tengine: E,\n\t...args: ConstructorParameters<E>\n): Provider {\n\treturn {\n\t\tprovide: NgDocSearchEngine,\n\t\tuseValue: new engine(...args),\n\t};\n}\n","import {InjectionToken, Provider} from '@angular/core';\nimport {NgDocProvidedTypeControl, NgDocTypeControl, NgDocTypeControlProviderOptions} from '@ng-doc/app/interfaces';\nimport {Constructor} from '@ng-doc/core/types/constructor';\n\nconst tokenStore: Map<string, InjectionToken<NgDocProvidedTypeControl>> = new Map<\n\tstring,\n\tInjectionToken<NgDocProvidedTypeControl>\n>();\n\n/**\n *\n * @param type\n * @param control\n * @param options\n */\nexport function provideTypeControl(\n\ttype: string,\n\tcontrol: Constructor<NgDocTypeControl>,\n\toptions?: NgDocTypeControlProviderOptions,\n): Provider {\n\tconst token: InjectionToken<NgDocProvidedTypeControl> = new InjectionToken<NgDocProvidedTypeControl>(\n\t\t`NG_DOC_TYPE_CONTROL_${type}`,\n\t);\n\ttokenStore.set(type, token);\n\n\treturn {\n\t\tprovide: token,\n\t\tuseValue: {\n\t\t\tcontrol,\n\t\t\toptions,\n\t\t},\n\t};\n}\n\n/**\n * Returns token for type control based on provided type\n *\n * @param type - type for searched control (e.g. `string`)\n */\nexport function getTokenForType(type: string): InjectionToken<NgDocProvidedTypeControl> | undefined {\n\treturn tokenStore.get(type);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["tokenStore"],"mappings":";;;;;AAAA;;;AAGG;AACG,SAAU,SAAS,CAAC,KAAc,EAAA;AACvC,IAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;AAC9B,QAAA,OAAO,KAAK,CAAC,WAAW,EAAE,KAAK,MAAM,GAAG,IAAI,GAAG,KAAK,CAAC,WAAW,EAAE,KAAK,OAAO,GAAG,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;AACjG,KAAA;IACD,OAAO,CAAC,CAAC,KAAK,CAAC;AAChB;;ACLA;;;;;AAKG;AACG,SAAU,WAAW,CAAC,SAAsB,EAAA;AACjD,IAAA,MAAM,QAAQ,GAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAEtE,IAAA,MAAM,eAAe,GAAyB,KAAK,CAAC,IAAI,CACvD,SAAS,CAAC,gBAAgB,CAAqB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CACnE,CAAC,MAAM,CAAC,CAAC,OAA2B,KAAK,OAAO,CAAC,EAAE,CAAC,CAAC;AAEtD,IAAA,MAAM,MAAM,GAAa,OAAO,CAAC,IAAI,GAAG,CAAC,eAAe,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IAExF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC,GAAmB,EAAE,OAA2B,KAAI;AAClF,QAAA,MAAM,YAAY,GAAW,gBAAgB,CAAC,OAAO,CAAC,CAAC;QACvD,MAAM,MAAM,GAA6B,OAAO,CAAC,aAAa,CAAoB,sBAAsB,CAAC,CAAC;AAE1G,QAAA,IAAI,MAAM,EAAE;YACX,GAAG,CAAC,IAA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,cAAc,CAAU,CAAA,uBAAA,EAA0B,YAAY,CAAA,CAAE,CAAC,CAAC;AAEvG,IAAAA,YAAU,CAAC,GAAG,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;IAEpC,OAAO;AACN,QAAA,OAAO,EAAE,KAAK;AACd,QAAA,QAAQ,EAAE,SAAS;AACnB,QAAA,KAAK,EAAE,IAAI;KACX,CAAC;AACH,CAAC;AAED;;;;AAIG;AACG,SAAU,sBAAsB,CAAI,YAAoB,EAAA;AAC7D,IAAA,OAAOA,YAAU,CAAC,GAAG,CAAC,YAAY,CAAoC,CAAC;AACxE;;AC9BA;;;;;;;;AAQG;SACa,mBAAmB,CAClC,MAAS,EACT,GAAG,IAA8B,EAAA;IAEjC,OAAO;AACN,QAAA,OAAO,EAAE,iBAAiB;AAC1B,QAAA,QAAQ,EAAE,IAAI,MAAM,CAAC,GAAG,IAAI,CAAC;KAC7B,CAAC;AACH;;ACjBA,MAAM,UAAU,GAA0D,IAAI,GAAG,EAG9E,CAAC;AAEJ;;;;;AAKG;SACa,kBAAkB,CACjC,IAAY,EACZ,OAAsC,EACtC,OAAyC,EAAA;IAEzC,MAAM,KAAK,GAA6C,IAAI,cAAc,CACzE,CAAuB,oBAAA,EAAA,IAAI,CAAE,CAAA,CAC7B,CAAC;AACF,IAAA,UAAU,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAE5B,OAAO;AACN,QAAA,OAAO,EAAE,KAAK;AACd,QAAA,QAAQ,EAAE;YACT,OAAO;YACP,OAAO;AACP,SAAA;KACD,CAAC;AACH,CAAC;AAED;;;;AAIG;AACG,SAAU,eAAe,CAAC,IAAY,EAAA;AAC3C,IAAA,OAAO,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAC7B;;ACzCA;;AAEG;;;;"}
@@ -4,6 +4,7 @@ import * as i0 from '@angular/core';
4
4
  import { APP_INITIALIZER, Optional, NgModule } from '@angular/core';
5
5
  import { NgDocRootModule } 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
+ import { isDarkOsTheme } from '@ng-doc/app/helpers';
7
8
  import { NgDocStoreService } from '@ng-doc/app/services/store';
8
9
  import { NgDocThemeService } from '@ng-doc/app/services/theme';
9
10
  import { NG_DOC_THEME, NG_DOC_DEFAULT_THEME_ID } from '@ng-doc/app/tokens';
@@ -32,7 +33,10 @@ class NgDocModule {
32
33
  useFactory: (themeService, store, defaultThemeId) => {
33
34
  return () => {
34
35
  const themeId = store.get(NG_DOC_STORE_THEME_KEY);
35
- return themeService.set(themeId ?? defaultThemeId);
36
+ if (defaultThemeId === 'auto' && !themeId) {
37
+ return themeService.set(isDarkOsTheme() ? NG_DOC_NIGHT_THEME.id : undefined, false);
38
+ }
39
+ return themeService.set(themeId ?? defaultThemeId, false);
36
40
  };
37
41
  },
38
42
  multi: true,
@@ -41,11 +45,11 @@ class NgDocModule {
41
45
  ],
42
46
  };
43
47
  }
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] }); }
44
51
  }
45
- NgDocModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
46
- NgDocModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.4", ngImport: i0, type: NgDocModule, imports: [HttpClientModule, OverlayModule, i1.NgDocUiKitRootModule], exports: [NgDocRootModule, NgDocUiKitRootModule] });
47
- NgDocModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocModule, imports: [HttpClientModule, OverlayModule, NgDocUiKitRootModule.forRoot(), NgDocRootModule, NgDocUiKitRootModule] });
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocModule, decorators: [{
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocModule, decorators: [{
49
53
  type: NgModule,
50
54
  args: [{
51
55
  imports: [HttpClientModule, OverlayModule, NgDocUiKitRootModule.forRoot()],
@@ -0,0 +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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/core';
3
+ import { extractValue } from '@ng-doc/core/helpers/extract-value';
4
+
5
+ class NgDocExtractValuePipe {
6
+ transform(value) {
7
+ return extractValue(value);
8
+ }
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" }); }
11
+ }
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocExtractValuePipe, decorators: [{
13
+ type: Pipe,
14
+ args: [{
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],
29
+ }]
30
+ }] });
31
+
32
+ /**
33
+ * Generated bundle index. Do not edit.
34
+ */
35
+
36
+ export { NgDocExtractValueModule, NgDocExtractValuePipe };
37
+ //# sourceMappingURL=ng-doc-app-pipes-extract-value.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ng-doc-app-pipes-extract-value.mjs","sources":["../../../../libs/app/pipes/extract-value/extract-value.pipe.ts","../../../../libs/app/pipes/extract-value/extract-value.module.ts","../../../../libs/app/pipes/extract-value/ng-doc-app-pipes-extract-value.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {extractValue} from '@ng-doc/core/helpers/extract-value';\nimport {NgDocExtractedValue} from '@ng-doc/core/types/extracted-value';\n\n@Pipe({\n\tname: 'ngDocExtractValue',\n})\nexport class NgDocExtractValuePipe implements PipeTransform {\n\ttransform(value: string): NgDocExtractedValue {\n\t\treturn extractValue(value);\n\t}\n}\n","import {NgModule} from '@angular/core';\n\nimport {NgDocExtractValuePipe} from './extract-value.pipe';\n\n@NgModule({\n\tdeclarations: [NgDocExtractValuePipe],\n\texports: [NgDocExtractValuePipe],\n})\nexport class NgDocExtractValueModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAOa,qBAAqB,CAAA;AACjC,IAAA,SAAS,CAAC,KAAa,EAAA;AACtB,QAAA,OAAO,YAAY,CAAC,KAAK,CAAC,CAAC;KAC3B;;kHAHW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;gHAArB,qBAAqB,EAAA,IAAA,EAAA,mBAAA,EAAA,CAAA,CAAA;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAHjC,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACL,oBAAA,IAAI,EAAE,mBAAmB;iBACzB,CAAA;;;MCEY,uBAAuB,CAAA;;oHAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;qHAAvB,uBAAuB,EAAA,YAAA,EAAA,CAHpB,qBAAqB,CAAA,EAAA,OAAA,EAAA,CAC1B,qBAAqB,CAAA,EAAA,CAAA,CAAA;qHAEnB,uBAAuB,EAAA,CAAA,CAAA;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAJnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACT,YAAY,EAAE,CAAC,qBAAqB,CAAC;oBACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;iBAChC,CAAA;;;ACPD;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-doc-app-pipes-extract-value.mjs","sources":["../../../../libs/app/pipes/extract-value/extract-value.pipe.ts","../../../../libs/app/pipes/extract-value/extract-value.module.ts","../../../../libs/app/pipes/extract-value/ng-doc-app-pipes-extract-value.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {extractValue} from '@ng-doc/core/helpers/extract-value';\nimport {NgDocExtractedValue} from '@ng-doc/core/types/extracted-value';\n\n@Pipe({\n\tname: 'ngDocExtractValue',\n})\nexport class NgDocExtractValuePipe implements PipeTransform {\n\ttransform(value: string): NgDocExtractedValue {\n\t\treturn extractValue(value);\n\t}\n}\n","import {NgModule} from '@angular/core';\n\nimport {NgDocExtractValuePipe} from './extract-value.pipe';\n\n@NgModule({\n\tdeclarations: [NgDocExtractValuePipe],\n\texports: [NgDocExtractValuePipe],\n})\nexport class NgDocExtractValueModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAIA,MAGa,qBAAqB,CAAA;AACjC,IAAA,SAAS,CAAC,KAAa,EAAA;AACtB,QAAA,OAAO,YAAY,CAAC,KAAK,CAAC,CAAC;KAC3B;8GAHW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;4GAArB,qBAAqB,EAAA,IAAA,EAAA,mBAAA,EAAA,CAAA,CAAA,EAAA;;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAHjC,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACL,oBAAA,IAAI,EAAE,mBAAmB;AACzB,iBAAA,CAAA;;;ACFD,MAIa,uBAAuB,CAAA;8GAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAvB,uBAAuB,EAAA,YAAA,EAAA,CAHpB,qBAAqB,CAAA,EAAA,OAAA,EAAA,CAC1B,qBAAqB,CAAA,EAAA,CAAA,CAAA,EAAA;+GAEnB,uBAAuB,EAAA,CAAA,CAAA,EAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAJnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACT,YAAY,EAAE,CAAC,qBAAqB,CAAC;oBACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;AAChC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
@@ -0,0 +1,36 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Pipe, NgModule } from '@angular/core';
3
+
4
+ class NgDocFilterByTextPipe {
5
+ transform(items, searchTerm, matcher = (item, s) => String(item) === s) {
6
+ return items?.filter((item) => matcher(item, searchTerm)) ?? [];
7
+ }
8
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocFilterByTextPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
9
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: NgDocFilterByTextPipe, name: "ngDocFilterByText" }); }
10
+ }
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocFilterByTextPipe, decorators: [{
12
+ type: Pipe,
13
+ args: [{
14
+ name: 'ngDocFilterByText',
15
+ }]
16
+ }] });
17
+
18
+ class NgDocFilterByTextModule {
19
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocFilterByTextModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
20
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: NgDocFilterByTextModule, declarations: [NgDocFilterByTextPipe], exports: [NgDocFilterByTextPipe] }); }
21
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocFilterByTextModule }); }
22
+ }
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocFilterByTextModule, decorators: [{
24
+ type: NgModule,
25
+ args: [{
26
+ declarations: [NgDocFilterByTextPipe],
27
+ exports: [NgDocFilterByTextPipe],
28
+ }]
29
+ }] });
30
+
31
+ /**
32
+ * Generated bundle index. Do not edit.
33
+ */
34
+
35
+ export { NgDocFilterByTextModule, NgDocFilterByTextPipe };
36
+ //# sourceMappingURL=ng-doc-app-pipes-filter-by-text.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ng-doc-app-pipes-filter-by-text.mjs","sources":["../../../../libs/app/pipes/filter-by-text/filter-by-text.pipe.ts","../../../../libs/app/pipes/filter-by-text/filter-by-text.module.ts","../../../../libs/app/pipes/filter-by-text/ng-doc-app-pipes-filter-by-text.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\n\n@Pipe({\n\tname: 'ngDocFilterByText',\n})\nexport class NgDocFilterByTextPipe<T> implements PipeTransform {\n\ttransform(\n\t\titems: readonly T[],\n\t\tsearchTerm: string,\n\t\tmatcher: (item: T, searchTerm: string) => boolean = (item: T, s: string) => String(item) === s,\n\t): readonly T[] {\n\t\treturn items?.filter((item: T) => matcher(item, searchTerm)) ?? [];\n\t}\n}\n","import {NgModule} from '@angular/core';\n\nimport {NgDocFilterByTextPipe} from './filter-by-text.pipe';\n\n@NgModule({\n\tdeclarations: [NgDocFilterByTextPipe],\n\texports: [NgDocFilterByTextPipe],\n})\nexport class NgDocFilterByTextModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAKa,qBAAqB,CAAA;AACjC,IAAA,SAAS,CACR,KAAmB,EACnB,UAAkB,EAClB,OAAA,GAAoD,CAAC,IAAO,EAAE,CAAS,KAAK,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAA;AAE9F,QAAA,OAAO,KAAK,EAAE,MAAM,CAAC,CAAC,IAAO,KAAK,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,IAAI,EAAE,CAAC;KACnE;;kHAPW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;gHAArB,qBAAqB,EAAA,IAAA,EAAA,mBAAA,EAAA,CAAA,CAAA;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAHjC,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACL,oBAAA,IAAI,EAAE,mBAAmB;AACzB,iBAAA,CAAA;;;MCIY,uBAAuB,CAAA;;oHAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;qHAAvB,uBAAuB,EAAA,YAAA,EAAA,CAHpB,qBAAqB,CAAA,EAAA,OAAA,EAAA,CAC1B,qBAAqB,CAAA,EAAA,CAAA,CAAA;qHAEnB,uBAAuB,EAAA,CAAA,CAAA;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAJnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACT,YAAY,EAAE,CAAC,qBAAqB,CAAC;oBACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;AAChC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-doc-app-pipes-filter-by-text.mjs","sources":["../../../../libs/app/pipes/filter-by-text/filter-by-text.pipe.ts","../../../../libs/app/pipes/filter-by-text/filter-by-text.module.ts","../../../../libs/app/pipes/filter-by-text/ng-doc-app-pipes-filter-by-text.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\n\n@Pipe({\n\tname: 'ngDocFilterByText',\n})\nexport class NgDocFilterByTextPipe<T> implements PipeTransform {\n\ttransform(\n\t\titems: readonly T[],\n\t\tsearchTerm: string,\n\t\tmatcher: (item: T, searchTerm: string) => boolean = (item: T, s: string) => String(item) === s,\n\t): readonly T[] {\n\t\treturn items?.filter((item: T) => matcher(item, searchTerm)) ?? [];\n\t}\n}\n","import {NgModule} from '@angular/core';\n\nimport {NgDocFilterByTextPipe} from './filter-by-text.pipe';\n\n@NgModule({\n\tdeclarations: [NgDocFilterByTextPipe],\n\texports: [NgDocFilterByTextPipe],\n})\nexport class NgDocFilterByTextModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA,MAGa,qBAAqB,CAAA;AACjC,IAAA,SAAS,CACR,KAAmB,EACnB,UAAkB,EAClB,OAAA,GAAoD,CAAC,IAAO,EAAE,CAAS,KAAK,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAA;AAE9F,QAAA,OAAO,KAAK,EAAE,MAAM,CAAC,CAAC,IAAO,KAAK,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,IAAI,EAAE,CAAC;KACnE;8GAPW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;4GAArB,qBAAqB,EAAA,IAAA,EAAA,mBAAA,EAAA,CAAA,CAAA,EAAA;;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAHjC,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACL,oBAAA,IAAI,EAAE,mBAAmB;AACzB,iBAAA,CAAA;;;ACAD,MAIa,uBAAuB,CAAA;8GAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAvB,uBAAuB,EAAA,YAAA,EAAA,CAHpB,qBAAqB,CAAA,EAAA,OAAA,EAAA,CAC1B,qBAAqB,CAAA,EAAA,CAAA,CAAA,EAAA;+GAEnB,uBAAuB,EAAA,CAAA,CAAA,EAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAJnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACT,YAAY,EAAE,CAAC,qBAAqB,CAAC;oBACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;AAChC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
@@ -0,0 +1,40 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Pipe, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/platform-browser';
4
+
5
+ class NgDocSanitizeHtmlPipe {
6
+ constructor(sanitizer) {
7
+ this.sanitizer = sanitizer;
8
+ }
9
+ transform(value) {
10
+ return this.sanitizer.bypassSecurityTrustHtml(value);
11
+ }
12
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocSanitizeHtmlPipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
13
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: NgDocSanitizeHtmlPipe, name: "ngDocSanitizeHtml" }); }
14
+ }
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocSanitizeHtmlPipe, decorators: [{
16
+ type: Pipe,
17
+ args: [{
18
+ name: 'ngDocSanitizeHtml',
19
+ }]
20
+ }], ctorParameters: function () { return [{ type: i1.DomSanitizer }]; } });
21
+
22
+ class NgDocSanitizeHtmlModule {
23
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocSanitizeHtmlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
24
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: NgDocSanitizeHtmlModule, declarations: [NgDocSanitizeHtmlPipe], exports: [NgDocSanitizeHtmlPipe] }); }
25
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocSanitizeHtmlModule }); }
26
+ }
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocSanitizeHtmlModule, decorators: [{
28
+ type: NgModule,
29
+ args: [{
30
+ declarations: [NgDocSanitizeHtmlPipe],
31
+ exports: [NgDocSanitizeHtmlPipe],
32
+ }]
33
+ }] });
34
+
35
+ /**
36
+ * Generated bundle index. Do not edit.
37
+ */
38
+
39
+ export { NgDocSanitizeHtmlModule, NgDocSanitizeHtmlPipe };
40
+ //# sourceMappingURL=ng-doc-app-pipes-sanitize-html.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ng-doc-app-pipes-sanitize-html.mjs","sources":["../../../../libs/app/pipes/sanitize-html/sanitize-html.pipe.ts","../../../../libs/app/pipes/sanitize-html/sanitize-html.module.ts","../../../../libs/app/pipes/sanitize-html/ng-doc-app-pipes-sanitize-html.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {DomSanitizer, SafeHtml} from '@angular/platform-browser';\n\n@Pipe({\n\tname: 'ngDocSanitizeHtml',\n})\nexport class NgDocSanitizeHtmlPipe implements PipeTransform {\n\tconstructor(private readonly sanitizer: DomSanitizer) {}\n\n\ttransform(value: string): SafeHtml {\n\t\treturn this.sanitizer.bypassSecurityTrustHtml(value);\n\t}\n}\n","import {NgModule} from '@angular/core';\n\nimport {NgDocSanitizeHtmlPipe} from './sanitize-html.pipe';\n\n@NgModule({\n\tdeclarations: [NgDocSanitizeHtmlPipe],\n\texports: [NgDocSanitizeHtmlPipe],\n})\nexport class NgDocSanitizeHtmlModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAMa,qBAAqB,CAAA;AACjC,IAAA,WAAA,CAA6B,SAAuB,EAAA;AAAvB,QAAA,IAAS,CAAA,SAAA,GAAT,SAAS,CAAc;KAAI;AAExD,IAAA,SAAS,CAAC,KAAa,EAAA;QACtB,OAAO,IAAI,CAAC,SAAS,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC;KACrD;;kHALW,qBAAqB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,YAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;gHAArB,qBAAqB,EAAA,IAAA,EAAA,mBAAA,EAAA,CAAA,CAAA;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAHjC,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACL,oBAAA,IAAI,EAAE,mBAAmB;iBACzB,CAAA;;;MCGY,uBAAuB,CAAA;;oHAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;qHAAvB,uBAAuB,EAAA,YAAA,EAAA,CAHpB,qBAAqB,CAAA,EAAA,OAAA,EAAA,CAC1B,qBAAqB,CAAA,EAAA,CAAA,CAAA;qHAEnB,uBAAuB,EAAA,CAAA,CAAA;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAJnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACT,YAAY,EAAE,CAAC,qBAAqB,CAAC;oBACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;iBAChC,CAAA;;;ACPD;;AAEG;;;;"}
1
+ {"version":3,"file":"ng-doc-app-pipes-sanitize-html.mjs","sources":["../../../../libs/app/pipes/sanitize-html/sanitize-html.pipe.ts","../../../../libs/app/pipes/sanitize-html/sanitize-html.module.ts","../../../../libs/app/pipes/sanitize-html/ng-doc-app-pipes-sanitize-html.ts"],"sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {DomSanitizer, SafeHtml} from '@angular/platform-browser';\n\n@Pipe({\n\tname: 'ngDocSanitizeHtml',\n})\nexport class NgDocSanitizeHtmlPipe implements PipeTransform {\n\tconstructor(private readonly sanitizer: DomSanitizer) {}\n\n\ttransform(value: string): SafeHtml {\n\t\treturn this.sanitizer.bypassSecurityTrustHtml(value);\n\t}\n}\n","import {NgModule} from '@angular/core';\n\nimport {NgDocSanitizeHtmlPipe} from './sanitize-html.pipe';\n\n@NgModule({\n\tdeclarations: [NgDocSanitizeHtmlPipe],\n\texports: [NgDocSanitizeHtmlPipe],\n})\nexport class NgDocSanitizeHtmlModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA,MAGa,qBAAqB,CAAA;AACjC,IAAA,WAAA,CAA6B,SAAuB,EAAA;QAAvB,IAAS,CAAA,SAAA,GAAT,SAAS,CAAc;KAAI;AAExD,IAAA,SAAS,CAAC,KAAa,EAAA;QACtB,OAAO,IAAI,CAAC,SAAS,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC;KACrD;8GALW,qBAAqB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,YAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;4GAArB,qBAAqB,EAAA,IAAA,EAAA,mBAAA,EAAA,CAAA,CAAA,EAAA;;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAHjC,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACL,oBAAA,IAAI,EAAE,mBAAmB;AACzB,iBAAA,CAAA;;;ACDD,MAIa,uBAAuB,CAAA;8GAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAvB,uBAAuB,EAAA,YAAA,EAAA,CAHpB,qBAAqB,CAAA,EAAA,OAAA,EAAA,CAC1B,qBAAqB,CAAA,EAAA,CAAA,CAAA,EAAA;+GAEnB,uBAAuB,EAAA,CAAA,CAAA,EAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAJnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACT,YAAY,EAAE,CAAC,qBAAqB,CAAC;oBACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;AAChC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
@@ -17,10 +17,10 @@ class NgDocBlockquoteProcessorDirective extends NgDocHtmlProcessor {
17
17
  },
18
18
  };
19
19
  }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocBlockquoteProcessorDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
21
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: NgDocBlockquoteProcessorDirective, selector: "[ngDocBlockquoteProcessor]", usesInheritance: true, ngImport: i0 }); }
20
22
  }
21
- NgDocBlockquoteProcessorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocBlockquoteProcessorDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
22
- NgDocBlockquoteProcessorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.4", type: NgDocBlockquoteProcessorDirective, selector: "[ngDocBlockquoteProcessor]", usesInheritance: true, ngImport: i0 });
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocBlockquoteProcessorDirective, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocBlockquoteProcessorDirective, decorators: [{
24
24
  type: Directive,
25
25
  args: [{
26
26
  selector: '[ngDocBlockquoteProcessor]',
@@ -28,11 +28,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImpor
28
28
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }]; } });
29
29
 
30
30
  class NgDocBlockquoteProcessorModule {
31
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocBlockquoteProcessorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
32
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: NgDocBlockquoteProcessorModule, declarations: [NgDocBlockquoteProcessorDirective], imports: [NgDocBlockquoteModule], exports: [NgDocBlockquoteProcessorDirective] }); }
33
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocBlockquoteProcessorModule, imports: [NgDocBlockquoteModule] }); }
31
34
  }
32
- NgDocBlockquoteProcessorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocBlockquoteProcessorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
33
- NgDocBlockquoteProcessorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.4", ngImport: i0, type: NgDocBlockquoteProcessorModule, declarations: [NgDocBlockquoteProcessorDirective], imports: [NgDocBlockquoteModule], exports: [NgDocBlockquoteProcessorDirective] });
34
- NgDocBlockquoteProcessorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocBlockquoteProcessorModule, imports: [NgDocBlockquoteModule] });
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocBlockquoteProcessorModule, decorators: [{
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocBlockquoteProcessorModule, decorators: [{
36
36
  type: NgModule,
37
37
  args: [{
38
38
  declarations: [NgDocBlockquoteProcessorDirective],