@ng-doc/builder 22.0.0-beta.2 → 22.0.0

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 (421) hide show
  1. package/README.md +19 -28
  2. package/application/index.js +2 -2
  3. package/application/index.js.map +1 -1
  4. package/application/schema.json +1 -2
  5. package/builders.json +23 -13
  6. package/classes/observable-map.d.ts +1 -0
  7. package/classes/observable-map.js +14 -3
  8. package/classes/observable-map.js.map +1 -1
  9. package/classes/observable-set.js +2 -1
  10. package/classes/observable-set.js.map +1 -1
  11. package/dev-server/index.js +5 -3
  12. package/dev-server/index.js.map +1 -1
  13. package/engine/builders/api-list/api-list-component.builder.js +4 -4
  14. package/engine/builders/api-list/api-list-component.builder.js.map +1 -1
  15. package/engine/builders/api-list/api-page-template.builder.js +2 -2
  16. package/engine/builders/api-list/api-page-template.builder.js.map +1 -1
  17. package/engine/builders/global/keywords.builder.d.ts +1 -4
  18. package/engine/builders/global/keywords.builder.js +5 -9
  19. package/engine/builders/global/keywords.builder.js.map +1 -1
  20. package/engine/builders/global/search-indexes.builder.js +1 -1
  21. package/engine/builders/global/search-indexes.builder.js.map +1 -1
  22. package/engine/builders/helpers/create-entry-metadata.js +2 -1
  23. package/engine/builders/helpers/create-entry-metadata.js.map +1 -1
  24. package/engine/builders/helpers/create-import-path.js.map +1 -1
  25. package/engine/builders/helpers/get-entry-relative-path.js.map +1 -1
  26. package/engine/builders/page/demo-assets.builder.js +8 -5
  27. package/engine/builders/page/demo-assets.builder.js.map +1 -1
  28. package/engine/builders/page/playground.builder.js +1 -0
  29. package/engine/builders/page/playground.builder.js.map +1 -1
  30. package/engine/builders/shared/content.builder.js +3 -3
  31. package/engine/builders/shared/content.builder.js.map +1 -1
  32. package/engine/builders/shared/page-component.builder.js +16 -6
  33. package/engine/builders/shared/page-component.builder.js.map +1 -1
  34. package/engine/builders/shared/page-wrapper.builder.js +8 -5
  35. package/engine/builders/shared/page-wrapper.builder.js.map +1 -1
  36. package/engine/core/operators/distinct-pending.js.map +1 -1
  37. package/engine/core/operators/factory.js +1 -4
  38. package/engine/core/operators/factory.js.map +1 -1
  39. package/engine/core/operators/merge-factory.js +19 -17
  40. package/engine/core/operators/merge-factory.js.map +1 -1
  41. package/engine/core/operators/when-builders-done.js.map +1 -1
  42. package/engine/core/triggers/on-dependencies-change.d.ts +1 -1
  43. package/engine/core/triggers/on-dependencies-change.js +2 -2
  44. package/engine/core/triggers/on-dependencies-change.js.map +1 -1
  45. package/generator/artifacts/index.d.ts +317 -0
  46. package/generator/bootstrap/bin.d.ts +18 -0
  47. package/generator/bootstrap/bin.js +7274 -0
  48. package/generator/bootstrap/candidate-output-committer.d.ts +12 -0
  49. package/generator/bootstrap/cli.d.ts +42 -0
  50. package/generator/bootstrap/cli.js +7123 -0
  51. package/generator/bootstrap/constants.d.ts +4 -0
  52. package/generator/bootstrap/index.d.ts +111 -0
  53. package/generator/bootstrap/index.js +5020 -0
  54. package/generator/bootstrap/prerender-command.d.ts +31 -0
  55. package/generator/bootstrap/process-tree.d.ts +49 -0
  56. package/generator/build-metafile.json +11701 -0
  57. package/generator/build-provenance.json +119 -0
  58. package/generator/compiler/assemble.d.ts +41 -0
  59. package/generator/compiler/classify.d.ts +161 -0
  60. package/generator/compiler/closure-store.d.ts +55 -0
  61. package/generator/compiler/common.d.ts +32 -0
  62. package/generator/compiler/describe.d.ts +21 -0
  63. package/generator/compiler/dry-run.d.ts +108 -0
  64. package/generator/compiler/fast-start.d.ts +104 -0
  65. package/generator/compiler/fold.d.ts +116 -0
  66. package/generator/compiler/index.d.ts +111 -0
  67. package/generator/compiler/index.js +17759 -0
  68. package/generator/compiler/link.d.ts +38 -0
  69. package/generator/compiler/memo.d.ts +44 -0
  70. package/generator/compiler/plan.d.ts +92 -0
  71. package/generator/compiler/progress.d.ts +54 -0
  72. package/generator/compiler/render.d.ts +27 -0
  73. package/generator/compiler/retention.d.ts +181 -0
  74. package/generator/compiler/semantic-closure.d.ts +46 -0
  75. package/generator/compiler/targeted.d.ts +280 -0
  76. package/generator/content/content-compiler.d.ts +118 -0
  77. package/generator/content/highlight-cache.d.ts +139 -0
  78. package/generator/content/html-pipeline.d.ts +170 -0
  79. package/generator/content/html-pool.d.ts +239 -0
  80. package/generator/content/html-worker.js +1598 -0
  81. package/generator/content-module-ids.d.ts +8 -0
  82. package/generator/contracts.d.ts +1063 -0
  83. package/generator/contracts.js +15 -0
  84. package/generator/discovery/index.d.ts +77 -0
  85. package/generator/graph/index.d.ts +211 -0
  86. package/generator/graph/unit-index.d.ts +216 -0
  87. package/generator/kernel/canonical.d.ts +57 -0
  88. package/generator/kernel/flags.d.ts +49 -0
  89. package/generator/kernel/footprint.d.ts +88 -0
  90. package/generator/kernel/observations.d.ts +68 -0
  91. package/generator/kernel/paths.d.ts +22 -0
  92. package/generator/kernel/runtime-identity.d.ts +11 -0
  93. package/generator/outputs/index.d.ts +67 -0
  94. package/generator/package.json +3 -0
  95. package/generator/progress/ci.d.ts +22 -0
  96. package/generator/progress/detect.d.ts +60 -0
  97. package/generator/progress/events.d.ts +126 -0
  98. package/generator/progress/format.d.ts +83 -0
  99. package/generator/progress/gate.d.ts +49 -0
  100. package/generator/progress/host.d.ts +29 -0
  101. package/generator/progress/lines.d.ts +42 -0
  102. package/generator/progress/live.d.ts +115 -0
  103. package/generator/progress/model.d.ts +85 -0
  104. package/generator/progress/reporter.d.ts +87 -0
  105. package/generator/progress/settings.d.ts +60 -0
  106. package/generator/semantic/angular.d.ts +9 -0
  107. package/generator/semantic/api-enumeration.d.ts +19 -0
  108. package/generator/semantic/api-summary.d.ts +33 -0
  109. package/generator/semantic/dependencies.d.ts +20 -0
  110. package/generator/semantic/derived-classes.d.ts +58 -0
  111. package/generator/semantic/documentation-cache.d.ts +23 -0
  112. package/generator/semantic/fragments.d.ts +28 -0
  113. package/generator/semantic/owned-roots.d.ts +59 -0
  114. package/generator/semantic/program-builder.d.ts +55 -0
  115. package/generator/semantic/program-index.d.ts +124 -0
  116. package/generator/semantic/program-inputs.d.ts +26 -0
  117. package/generator/semantic/program-observations.d.ts +158 -0
  118. package/generator/semantic/program-retention.d.ts +147 -0
  119. package/generator/semantic/program-state.d.ts +196 -0
  120. package/generator/semantic/program-verify.d.ts +22 -0
  121. package/generator/semantic/recorder.d.ts +89 -0
  122. package/generator/semantic/rendering.d.ts +34 -0
  123. package/generator/semantic/semantic-closure.d.ts +129 -0
  124. package/generator/semantic/semantic-service.d.ts +186 -0
  125. package/generator/semantic/type-text.d.ts +5 -0
  126. package/generator/session/build-session.d.ts +206 -0
  127. package/generator/session/input-verification.d.ts +38 -0
  128. package/generator/session/parcel-event-source.d.ts +22 -0
  129. package/generator/session/progress.d.ts +72 -0
  130. package/generator/session/unchanged-saves.d.ts +63 -0
  131. package/generator/session/watch-inputs.d.ts +6 -0
  132. package/generator/session/watch-signals.d.ts +10 -0
  133. package/generator/templates/api/base.html.nunj +26 -0
  134. package/generator/templates/api/class-declaration.html.nunj +57 -0
  135. package/generator/templates/api/details/class-declaration.html.nunj +47 -0
  136. package/generator/templates/api/details/enum-declaration.html.nunj +0 -0
  137. package/generator/templates/api/details/function-declaration.html.nunj +14 -0
  138. package/generator/templates/api/details/helpers/decorators.html.nunj +14 -0
  139. package/generator/templates/api/details/helpers/extends.html.nunj +6 -0
  140. package/generator/templates/api/details/helpers/selectors.html.nunj +12 -0
  141. package/generator/templates/api/details/helpers/type-parameters.html.nunj +14 -0
  142. package/generator/templates/api/details/interface-declaration.html.nunj +27 -0
  143. package/generator/templates/api/details/type-alias-declaration.html.nunj +14 -0
  144. package/generator/templates/api/details/variable-declaration.html.nunj +0 -0
  145. package/generator/templates/api/details.html.nunj +9 -0
  146. package/generator/templates/api/enum-declaration.html.nunj +12 -0
  147. package/generator/templates/api/function-declaration.html.nunj +35 -0
  148. package/generator/templates/api/interface-declaration.html.nunj +37 -0
  149. package/generator/templates/api/type-alias-declaration.html.nunj +16 -0
  150. package/generator/templates/api/variable-declaration.html.nunj +8 -0
  151. package/generator/templates/api-header.html.nunj +11 -0
  152. package/generator/templates/api-list.ts.nunj +22 -0
  153. package/generator/templates/api-page-content.html.nunj +1 -0
  154. package/generator/templates/api-scope.ts.nunj +22 -0
  155. package/generator/templates/category.ts.nunj +22 -0
  156. package/generator/templates/code.html.nunj +3 -0
  157. package/generator/templates/context.ts.nunj +55 -0
  158. package/generator/templates/demo-assets.ts.nunj +25 -0
  159. package/generator/templates/helpers/accessor.html.nunj +76 -0
  160. package/generator/templates/helpers/accessors.html.nunj +7 -0
  161. package/generator/templates/helpers/badge.html.nunj +4 -0
  162. package/generator/templates/helpers/call-signature.html.nunj +70 -0
  163. package/generator/templates/helpers/code.html.nunj +3 -0
  164. package/generator/templates/helpers/constructor.html.nunj +32 -0
  165. package/generator/templates/helpers/declaration-modifiers.html.nunj +45 -0
  166. package/generator/templates/helpers/decorators.html.nunj +11 -0
  167. package/generator/templates/helpers/members.html.nunj +29 -0
  168. package/generator/templates/helpers/method.html.nunj +89 -0
  169. package/generator/templates/helpers/methods.html.nunj +7 -0
  170. package/generator/templates/helpers/modifier.html.nunj +4 -0
  171. package/generator/templates/helpers/no-content.html.nunj +3 -0
  172. package/generator/templates/helpers/overload.html.nunj +57 -0
  173. package/generator/templates/helpers/parameters.html.nunj +44 -0
  174. package/generator/templates/helpers/properties.html.nunj +61 -0
  175. package/generator/templates/helpers/status.html.nunj +33 -0
  176. package/generator/templates/helpers/tag.html.nunj +4 -0
  177. package/generator/templates/helpers/type.html.nunj +11 -0
  178. package/generator/templates/index.ts.nunj +2 -0
  179. package/generator/templates/page-header.html.nunj +5 -0
  180. package/generator/templates/page-wrapper.ts.nunj +64 -0
  181. package/generator/templates/page.ts.nunj +97 -0
  182. package/generator/templates/parts/examples.html.nunj +11 -0
  183. package/generator/templates/parts/member-examples.html.nunj +12 -0
  184. package/generator/templates/parts/member-remarks.html.nunj +8 -0
  185. package/generator/templates/parts/page-tags.html.nunj +10 -0
  186. package/generator/templates/parts/remarks.html.nunj +10 -0
  187. package/generator/templates/parts/see-also.html.nunj +23 -0
  188. package/generator/templates/parts/usage-notes.html.nunj +8 -0
  189. package/generator/templates/playgrounds.ts.nunj +63 -0
  190. package/generator/templates/routes.ts.nunj +49 -0
  191. package/generator/templates/symbol/decorators.html.nunj +12 -0
  192. package/generator/templates/symbol/details.html.nunj +62 -0
  193. package/generator/templates/symbol/extended-by.html.nunj +17 -0
  194. package/generator/templates/symbol/header.html.nunj +22 -0
  195. package/generator/templates/symbol/members.html.nunj +301 -0
  196. package/generator/templates/symbol/page.html.nunj +76 -0
  197. package/generator/templates/symbol/see-also.html.nunj +16 -0
  198. package/generator/vite/angular/ANALOG-LICENSE +21 -0
  199. package/generator/vite/angular/analog-provenance.json +880 -0
  200. package/generator/vite/angular/index.d.ts +14 -0
  201. package/generator/vite/angular/index.js +7300 -0
  202. package/generator/vite/angular-compatibility.d.ts +6 -0
  203. package/generator/vite/angular-composition.d.ts +68 -0
  204. package/generator/vite/angular-version.d.ts +38 -0
  205. package/generator/vite/application-builder.js +331 -0
  206. package/generator/vite/application-builder.schema.json +46 -0
  207. package/generator/vite/application.d.ts +91 -0
  208. package/generator/vite/assets.d.ts +11 -0
  209. package/generator/vite/bounded-close.d.ts +33 -0
  210. package/generator/vite/component-updates.d.ts +21 -0
  211. package/generator/vite/configuration.d.ts +3 -0
  212. package/generator/vite/dev-server-builder.js +334 -0
  213. package/generator/vite/dev-server-builder.schema.json +27 -0
  214. package/generator/vite/dev-styles.d.ts +65 -0
  215. package/generator/vite/diagnostics.d.ts +4 -0
  216. package/generator/vite/external-probes.d.ts +40 -0
  217. package/generator/vite/host-updates.d.ts +145 -0
  218. package/generator/vite/index.d.ts +13 -0
  219. package/generator/vite/index.js +11589 -0
  220. package/generator/vite/lease.d.ts +6 -0
  221. package/generator/vite/lifecycle.d.ts +119 -0
  222. package/generator/vite/mime.d.ts +2 -0
  223. package/generator/vite/missing-paths.d.ts +44 -0
  224. package/generator/vite/options.d.ts +87 -0
  225. package/generator/vite/output-watch.d.ts +41 -0
  226. package/generator/vite/paths.d.ts +7 -0
  227. package/generator/vite/plugin.d.ts +3 -0
  228. package/generator/vite/prerender-entry.js +395 -0
  229. package/generator/vite/prerender-runtime.d.ts +66 -0
  230. package/generator/vite/prerender.d.ts +27 -0
  231. package/generator/vite/production.d.ts +66 -0
  232. package/generator/vite/progress.d.ts +33 -0
  233. package/generator/vite/restore-theme.js +13 -0
  234. package/generator/vite/route-inventory.d.ts +24 -0
  235. package/generator/vite/ssr-renderer-control.d.ts +1 -0
  236. package/generator/vite/ssr-renderer-entry.js +444 -0
  237. package/generator/vite/ssr-renderer-protocol.d.ts +101 -0
  238. package/generator/vite/ssr-renderer.d.ts +74 -0
  239. package/generator/vite/theme-index.d.ts +13 -0
  240. package/generator/vite/tsconfig-paths.d.ts +64 -0
  241. package/generator/vite/vite-event-source.d.ts +198 -0
  242. package/generator/vite/vite-version.d.ts +26 -0
  243. package/generator/vite/watch-inputs.d.ts +39 -0
  244. package/generator/worker/entry.d.ts +1 -0
  245. package/generator/worker/entry.js +614 -0
  246. package/generator/worker/index.d.ts +156 -0
  247. package/generator/worker/index.js +1030 -0
  248. package/generator/worker/protocol.d.ts +160 -0
  249. package/helpers/angular/get-component-decorator.js +6 -6
  250. package/helpers/angular/get-component-decorator.js.map +1 -1
  251. package/helpers/angular/get-directive-decorator.js +3 -3
  252. package/helpers/angular/get-directive-decorator.js.map +1 -1
  253. package/helpers/angular/get-pipe-decorator.js +3 -3
  254. package/helpers/angular/get-pipe-decorator.js.map +1 -1
  255. package/helpers/build-indexes.js +5 -2
  256. package/helpers/build-indexes.js.map +1 -1
  257. package/helpers/construct-page-keyword.js +2 -1
  258. package/helpers/construct-page-keyword.js.map +1 -1
  259. package/helpers/extract-selectors.d.ts +1 -1
  260. package/helpers/extract-selectors.js +5 -3
  261. package/helpers/extract-selectors.js.map +1 -1
  262. package/helpers/filter-useless-members.d.ts +1 -1
  263. package/helpers/format-code.d.ts +2 -1
  264. package/helpers/format-code.js +13 -4
  265. package/helpers/format-code.js.map +1 -1
  266. package/helpers/import-fresh-esm.js.map +1 -1
  267. package/helpers/index.d.ts +2 -0
  268. package/helpers/index.js +2 -0
  269. package/helpers/index.js.map +1 -1
  270. package/helpers/keyword-heading-title.d.ts +7 -0
  271. package/helpers/keyword-heading-title.js +21 -0
  272. package/helpers/keyword-heading-title.js.map +1 -0
  273. package/helpers/markdown-to-html.js +3 -3
  274. package/helpers/markdown-to-html.js.map +1 -1
  275. package/helpers/navigation-title-order.d.ts +8 -0
  276. package/helpers/navigation-title-order.js +15 -0
  277. package/helpers/navigation-title-order.js.map +1 -0
  278. package/helpers/playground/get-playground-inputs.js +8 -4
  279. package/helpers/playground/get-playground-inputs.js.map +1 -1
  280. package/helpers/playground/get-playground-template-inputs.js +2 -1
  281. package/helpers/playground/get-playground-template-inputs.js.map +1 -1
  282. package/helpers/presentation.d.ts +7 -7
  283. package/helpers/presentation.js +23 -23
  284. package/helpers/presentation.js.map +1 -1
  285. package/helpers/print.js +32 -5
  286. package/helpers/print.js.map +1 -1
  287. package/helpers/process-snippets.d.ts +1 -1
  288. package/helpers/process-snippets.js +3 -3
  289. package/helpers/process-snippets.js.map +1 -1
  290. package/helpers/snippets-from-asset.d.ts +1 -1
  291. package/helpers/snippets-from-asset.js +2 -2
  292. package/helpers/snippets-from-asset.js.map +1 -1
  293. package/helpers/sort-navigation-entities.js +2 -1
  294. package/helpers/sort-navigation-entities.js.map +1 -1
  295. package/helpers/stable-generated-id.d.ts +2 -0
  296. package/helpers/stable-generated-id.js +12 -0
  297. package/helpers/stable-generated-id.js.map +1 -0
  298. package/helpers/text-order.d.ts +8 -0
  299. package/helpers/text-order.js +26 -0
  300. package/helpers/text-order.js.map +1 -0
  301. package/helpers/typescript/member/get-inherited-parent.d.ts +1 -1
  302. package/helpers/typescript/member/get-inherited-parent.js +2 -2
  303. package/helpers/typescript/member/get-inherited-parent.js.map +1 -1
  304. package/helpers/typescript/node/sort-by-nodes-name.d.ts +4 -2
  305. package/helpers/typescript/node/sort-by-nodes-name.js +6 -3
  306. package/helpers/typescript/node/sort-by-nodes-name.js.map +1 -1
  307. package/helpers/typescript/property/get-property-assignment.js.map +1 -1
  308. package/package.json +86 -29
  309. package/parsers/helpers/number.d.ts +1 -1
  310. package/parsers/helpers/number.js +2 -2
  311. package/parsers/helpers/number.js.map +1 -1
  312. package/parsers/helpers/param-value.d.ts +1 -1
  313. package/parsers/helpers/param-value.js +2 -2
  314. package/parsers/helpers/param-value.js.map +1 -1
  315. package/parsers/helpers/param.js +3 -3
  316. package/parsers/helpers/param.js.map +1 -1
  317. package/parsers/parse-code-block-params.d.ts +1 -1
  318. package/parsers/parse-code-block-params.js +22 -16
  319. package/parsers/parse-code-block-params.js.map +1 -1
  320. package/parsers/parse-snippet.js +10 -10
  321. package/parsers/parse-snippet.js.map +1 -1
  322. package/schematics/collection.json +34 -23
  323. package/schematics/migrate-to-vite/analyze.d.ts +76 -0
  324. package/schematics/migrate-to-vite/analyze.js +816 -0
  325. package/schematics/migrate-to-vite/analyze.js.map +1 -0
  326. package/schematics/migrate-to-vite/index.d.ts +9 -0
  327. package/schematics/migrate-to-vite/index.js +585 -0
  328. package/schematics/migrate-to-vite/index.js.map +1 -0
  329. package/schematics/migrate-to-vite/legacy-folder.d.ts +84 -0
  330. package/schematics/migrate-to-vite/legacy-folder.js +340 -0
  331. package/schematics/migrate-to-vite/legacy-folder.js.map +1 -0
  332. package/schematics/migrate-to-vite/report.d.ts +32 -0
  333. package/schematics/migrate-to-vite/report.js +97 -0
  334. package/schematics/migrate-to-vite/report.js.map +1 -0
  335. package/schematics/migrate-to-vite/schema.d.ts +13 -0
  336. package/schematics/migrate-to-vite/schema.js +3 -0
  337. package/schematics/migrate-to-vite/schema.js.map +1 -0
  338. package/schematics/migrate-to-vite/schema.json +31 -0
  339. package/schematics/migrate-to-vite/setup/dependencies.d.ts +64 -0
  340. package/schematics/migrate-to-vite/setup/dependencies.js +183 -0
  341. package/schematics/migrate-to-vite/setup/dependencies.js.map +1 -0
  342. package/schematics/migrate-to-vite/setup/index.d.ts +6 -0
  343. package/schematics/migrate-to-vite/setup/index.js +13 -0
  344. package/schematics/migrate-to-vite/setup/index.js.map +1 -0
  345. package/schematics/migrate-to-vite/setup/json-file.d.ts +51 -0
  346. package/schematics/migrate-to-vite/setup/json-file.js +115 -0
  347. package/schematics/migrate-to-vite/setup/json-file.js.map +1 -0
  348. package/schematics/migrate-to-vite/setup/source.d.ts +30 -0
  349. package/schematics/migrate-to-vite/setup/source.js +202 -0
  350. package/schematics/migrate-to-vite/setup/source.js.map +1 -0
  351. package/schematics/migrate-to-vite/setup/targets.d.ts +51 -0
  352. package/schematics/migrate-to-vite/setup/targets.js +48 -0
  353. package/schematics/migrate-to-vite/setup/targets.js.map +1 -0
  354. package/schematics/migrate-to-vite/setup/vite-config.d.ts +100 -0
  355. package/schematics/migrate-to-vite/setup/vite-config.js +175 -0
  356. package/schematics/migrate-to-vite/setup/vite-config.js.map +1 -0
  357. package/schematics/migrate-to-vite/setup/workspace.d.ts +100 -0
  358. package/schematics/migrate-to-vite/setup/workspace.js +225 -0
  359. package/schematics/migrate-to-vite/setup/workspace.js.map +1 -0
  360. package/schematics/migrate-to-vite/state.d.ts +65 -0
  361. package/schematics/migrate-to-vite/state.js +92 -0
  362. package/schematics/migrate-to-vite/state.js.map +1 -0
  363. package/schematics/migrate-to-vite/testing/fixtures.d.ts +18 -0
  364. package/schematics/migrate-to-vite/testing/fixtures.js +279 -0
  365. package/schematics/migrate-to-vite/testing/fixtures.js.map +1 -0
  366. package/schematics/migrate-to-vite/update-note.d.ts +6 -0
  367. package/schematics/migrate-to-vite/update-note.js +23 -0
  368. package/schematics/migrate-to-vite/update-note.js.map +1 -0
  369. package/schematics/migration.json +5 -0
  370. package/schematics/migrations/standalone-pages/index.js +7 -6
  371. package/schematics/migrations/standalone-pages/index.js.map +1 -1
  372. package/schematics/vite-setup/index.d.ts +20 -0
  373. package/schematics/vite-setup/index.js +206 -0
  374. package/schematics/vite-setup/index.js.map +1 -0
  375. package/schematics/vite-setup/schema.d.ts +7 -0
  376. package/schematics/vite-setup/schema.js +3 -0
  377. package/schematics/vite-setup/schema.js.map +1 -0
  378. package/schematics/vite-setup/schema.json +19 -0
  379. package/scripts/restore-theme.js +9 -2
  380. package/templates/context.ts.nunj +3 -0
  381. package/templates/helpers/badge.html.nunj +1 -1
  382. package/templates/helpers/status.html.nunj +4 -8
  383. package/templates/page-wrapper.ts.nunj +24 -1
  384. package/templates/page.ts.nunj +25 -0
  385. package/templates/parts/page-tags.html.nunj +1 -1
  386. package/templates/playgrounds.ts.nunj +8 -9
  387. package/templates/routes.ts.nunj +6 -1
  388. package/templates/symbol/decorators.html.nunj +12 -0
  389. package/templates/symbol/details.html.nunj +62 -0
  390. package/templates/symbol/extended-by.html.nunj +17 -0
  391. package/templates/symbol/header.html.nunj +22 -0
  392. package/templates/symbol/members.html.nunj +301 -0
  393. package/templates/symbol/page.html.nunj +76 -0
  394. package/templates/symbol/see-also.html.nunj +16 -0
  395. package/engine/.cache/apps/ng-doc/docs/api-documentation/auto-generation/ng-doc.page.mjs +0 -20
  396. package/engine/.cache/apps/ng-doc/docs/api-documentation/documenting-declarations/ng-doc.page.mjs +0 -20
  397. package/engine/.cache/apps/ng-doc/docs/api-documentation/rendering-api/ng-doc.page.mjs +0 -19
  398. package/engine/.cache/apps/ng-doc/docs/customization/icons/ng-doc.page.mjs +0 -19
  399. package/engine/.cache/apps/ng-doc/docs/customization/layout/ng-doc.page.mjs +0 -19
  400. package/engine/.cache/apps/ng-doc/docs/customization/page-processors/ng-doc.page.mjs +0 -19
  401. package/engine/.cache/apps/ng-doc/docs/customization/page-skeleton/ng-doc.page.mjs +0 -19
  402. package/engine/.cache/apps/ng-doc/docs/customization/search/ng-doc.page.mjs +0 -19
  403. package/engine/.cache/apps/ng-doc/docs/customization/themes/ng-doc.page.mjs +0 -19
  404. package/engine/.cache/apps/ng-doc/docs/develop/ng-doc.page.mjs +0 -36
  405. package/engine/.cache/apps/ng-doc/docs/getting-started/configuration/ng-doc.page.mjs +0 -19
  406. package/engine/.cache/apps/ng-doc/docs/getting-started/installation/ng-doc.page.mjs +0 -19
  407. package/engine/.cache/apps/ng-doc/docs/getting-started/migrations/ng-doc.page.mjs +0 -18
  408. package/engine/.cache/apps/ng-doc/docs/getting-started/ssr/ng-doc.page.mjs +0 -19
  409. package/engine/.cache/apps/ng-doc/docs/getting-started/what-is-ng-doc/ng-doc.page.mjs +0 -19
  410. package/engine/.cache/apps/ng-doc/docs/ng-doc.api.mjs +0 -42
  411. package/engine/.cache/apps/ng-doc/docs/recipes/ignoring-file-lines/ng-doc.page.mjs +0 -18
  412. package/engine/.cache/apps/ng-doc/docs/recipes/performance/ng-doc.page.mjs +0 -19
  413. package/engine/.cache/apps/ng-doc/docs/writing-content/blockquotes/ng-doc.page.mjs +0 -18
  414. package/engine/.cache/apps/ng-doc/docs/writing-content/code-blocks/ng-doc.page.mjs +0 -18
  415. package/engine/.cache/apps/ng-doc/docs/writing-content/demo-and-demo-pane/ng-doc.page.mjs +0 -19
  416. package/engine/.cache/apps/ng-doc/docs/writing-content/images-videos-and-embeds/ng-doc.page.mjs +0 -18
  417. package/engine/.cache/apps/ng-doc/docs/writing-content/keywords/ng-doc.page.mjs +0 -17
  418. package/engine/.cache/apps/ng-doc/docs/writing-content/mermaid-diagrams/ng-doc.page.mjs +0 -18
  419. package/engine/.cache/apps/ng-doc/docs/writing-content/nunjucks/ng-doc.page.mjs +0 -18
  420. package/engine/.cache/apps/ng-doc/docs/writing-content/pages-and-categories/ng-doc.page.mjs +0 -18
  421. package/engine/.cache/apps/ng-doc/docs/writing-content/playground/ng-doc.page.mjs +0 -33
@@ -0,0 +1,160 @@
1
+ import type { ArtifactSnapshot, CompilationProgressUpdate, CompilationResult, CompilationRetention } from '../contracts.js';
2
+ /** Strings are the only worker messages; executable and native objects cannot cross this port. */
3
+ export declare function encode(value: unknown): string;
4
+ export declare function decode(value: unknown): Record<string, unknown>;
5
+ export declare function resultFrom(value: unknown): CompilationResult;
6
+ export declare function errorMessage(error: unknown): string;
7
+ /**
8
+ * A candidate snapshot as a patch of the snapshot it was compiled from.
9
+ *
10
+ * `keys` lists the candidate's keys in order (object keys whose value is not `undefined`, as JSON
11
+ * keeps them); a key is taken from `set` when present there, otherwise from the base object, so a
12
+ * patched object has exactly the candidate's keys, order and JSON values. `artifacts` is always
13
+ * rebuilt from the entries. Every other top-level key of the snapshot is always in `set`: they are
14
+ * small, and the snapshot revision does not cover all of them (`globalKeywords`, `remoteKeywords`),
15
+ * so they must never be taken from a base that only matches by revision.
16
+ */
17
+ export interface SnapshotDelta {
18
+ /** Revision of the base snapshot; `null` for an empty base (no previous snapshot). */
19
+ base: string | null;
20
+ keys: string[];
21
+ set: Record<string, unknown>;
22
+ artifacts: DeltaArtifact[];
23
+ }
24
+ /**
25
+ * An artifact of the candidate, in candidate order: without `keys`, the base artifact with this id
26
+ * and revision (artifact revisions are content hashes, and the compiler keeps the previous revision
27
+ * only for a value-equal artifact); with `keys`, a changed artifact whose unlisted keys are copied
28
+ * from the base artifact with this id.
29
+ */
30
+ export type DeltaArtifact = {
31
+ id: string;
32
+ revision: string;
33
+ } | {
34
+ id: string;
35
+ revision: string;
36
+ keys: string[];
37
+ set: Record<string, unknown>;
38
+ };
39
+ /**
40
+ * Up to this many changed artifacts are also diffed key by key against their base artifact (an
41
+ * edit usually changes the aggregate's search index but not its program dependencies). Above it,
42
+ * changed artifacts are sent whole, so a large delta costs no comparison.
43
+ */
44
+ export declare const FIELD_LEVEL_LIMIT = 16;
45
+ /** The candidate as a delta of `base` (the snapshot it was compiled from). */
46
+ export declare function snapshotDelta(base: ArtifactSnapshot | undefined, candidate: ArtifactSnapshot): SnapshotDelta;
47
+ /**
48
+ * Rebuilds the candidate from `base` and a (JSON-decoded) delta. Both processes run exactly this
49
+ * function on equal bases, so the host's patched candidate and the runtime's retained working
50
+ * snapshot are equal by construction. Unchanged artifacts are the base's own objects. Any
51
+ * inconsistency throws; callers then fall back to the full transport.
52
+ */
53
+ export declare function applySnapshotDelta(base: ArtifactSnapshot | undefined, value: unknown): ArtifactSnapshot;
54
+ /** Freezes a JSON value in place (the delta transport's verification mode). */
55
+ export declare function deepFreeze<T>(value: T): T;
56
+ /**
57
+ * How a runtime's retention slot keeps the entry a compile offers for its candidate: `acknowledged`
58
+ * (a delta compile: the working entry, promoted only by the caller's commit acknowledgement) or
59
+ * `compile-end` (committed at once: warm-ups, full-transport compiles and full-candidate retries,
60
+ * which no acknowledgement follows).
61
+ */
62
+ export type RetentionPromotion = 'acknowledged' | 'compile-end';
63
+ /** A runtime slot's state and counters (instrumentation and tests). */
64
+ export interface RuntimeRetentionState {
65
+ committed: string | null;
66
+ working: string | null;
67
+ /** While no committed entry is held: why the last one was invalidated, if known. */
68
+ invalidated: string | null;
69
+ /** Offers kept as working entries / working entries promoted / working entries dropped unpromoted. */
70
+ counters: {
71
+ offered: number;
72
+ promoted: number;
73
+ dropped: number;
74
+ };
75
+ }
76
+ /**
77
+ * The retention slot a long-lived runtime owns (see below). A compile never sees the slot itself:
78
+ * it gets a handle from `serve`, which exposes only the {@link CompilationRetention} operations.
79
+ */
80
+ export interface RuntimeRetention {
81
+ /**
82
+ * Before a compile: a handle for that compile only, to pass in its context. Its offers are kept
83
+ * as `promotion` says, whatever other handles were served since: further compiles in one
84
+ * runtime (a verifying full compile, an idle confirmation) must never change where another
85
+ * compile's offer goes. The handle cannot promote, resync or change any policy.
86
+ */
87
+ serve(promotion: RetentionPromotion): CompilationRetention;
88
+ /**
89
+ * A compile message: the working entry becomes the committed one when the message promotes
90
+ * exactly its revision (`promote`, sent only after the caller acknowledged that commit); any
91
+ * other working entry is dropped.
92
+ */
93
+ promote(revision: unknown): void;
94
+ /**
95
+ * A resync to `base`: the working entry for exactly that revision becomes the committed one, any
96
+ * other is dropped. The host resyncs only to its caller's committed snapshot, so that revision
97
+ * was committed; this keeps the retained program when the identity rule forces a resync for a
98
+ * same-revision snapshot object the runtime did not return.
99
+ */
100
+ resync(base: unknown): void;
101
+ inspect(): RuntimeRetentionState;
102
+ }
103
+ /**
104
+ * The retention slot of a long-lived development runtime. It holds a **committed** entry, valid for
105
+ * the base the runtime's caller committed, and a **working** entry for the candidate of the last
106
+ * delta compile, and follows exactly the messages that move the runtime's snapshots: `promote` and
107
+ * `resync` promote or drop the working entry; a compile takes the committed entry for its whole run
108
+ * and restores it only when its program is still intact.
109
+ *
110
+ * Copy-on-write: an offer never changes the committed entry. The two entries may share a program
111
+ * that the working generation only read; a generation that consumed the committed program (a
112
+ * full rebuild) or mutated it (added source files) restores nothing and offers nothing that shares
113
+ * it, so both entries are invalid and the next generation rebuilds. The slot keeps why
114
+ * (`invalidate`) until it holds a committed entry again; a working entry dropped while none is
115
+ * held records `dropped unacknowledged` unless an earlier reason is already kept.
116
+ */
117
+ export declare function createRuntimeRetention(): RuntimeRetention;
118
+ /**
119
+ * Progress transport (advisory: it never changes a result). A compile message with
120
+ * `progress: true` asks the runtime for `{ type: 'progress', id, update }` messages, sent before
121
+ * the compile's reply on the same channel. Updates are JSON like every other message. `start`
122
+ * and `end` go out at once; `advance` updates are coalesced to at most one per
123
+ * {@link PROGRESS_INTERVAL_MS}, the latest winning, so a per-unit loop costs a few messages a
124
+ * second whatever its size.
125
+ */
126
+ export declare const PROGRESS_INTERVAL_MS = 100;
127
+ /** The runtime side: a sink for the compiler's updates that sends them, throttled. */
128
+ export interface ProgressChannel {
129
+ sink(update: CompilationProgressUpdate): void;
130
+ /** No more messages: a pending advance is dropped (the phase end or the reply supersedes it). */
131
+ close(): void;
132
+ }
133
+ export declare function createProgressChannel(send: (update: CompilationProgressUpdate) => void, now?: () => number): ProgressChannel;
134
+ /**
135
+ * A progress update received from a runtime, checked field by field, or `undefined`. A malformed
136
+ * update is dropped, never an error: progress must not break the transport it rides on.
137
+ */
138
+ export declare function progressUpdate(value: unknown): CompilationProgressUpdate | undefined;
139
+ /**
140
+ * The host side of one job's progress: it forwards the runtime's checked updates to the caller's
141
+ * sink while the job is live, and adds the phases only the host sees: `boot` (a runtime starting
142
+ * for this job) and `transfer` (from the compiler's last phase to the result the caller receives,
143
+ * including its encoding, the message and a delta's application). Nothing is forwarded once the
144
+ * job's signal aborted or its result was delivered, and a throwing sink is ignored.
145
+ */
146
+ export declare class ProgressRelay {
147
+ private readonly sink;
148
+ private readonly signal;
149
+ private transferring;
150
+ private done;
151
+ /** A compiler update was relayed: a retry of the compile need not ask for progress again. */
152
+ reported: boolean;
153
+ constructor(sink: (update: CompilationProgressUpdate) => void, signal: AbortSignal);
154
+ boot(state: 'start' | 'end'): void;
155
+ /** A `progress` message's update, as received. */
156
+ forward(value: unknown): void;
157
+ /** The job's result is ready for the caller: the transfer ends and the relay goes quiet. */
158
+ settled(): void;
159
+ private emit;
160
+ }
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getComponentDecorator = getComponentDecorator;
4
4
  const ts_morph_1 = require("ts-morph");
5
5
  const string_expression_1 = require("../string-expression");
6
- const typescript_1 = require("../typescript");
6
+ const get_property_assignment_1 = require("../typescript/property/get-property-assignment");
7
7
  /**
8
8
  * Resolves the component decorator and return its properties.
9
9
  * @param cls - class declaration
@@ -18,11 +18,11 @@ function getComponentDecorator(cls) {
18
18
  const styleUrlProperty = decoratorArgument.getProperty('styleUrl');
19
19
  const styleUrlsProperty = decoratorArgument.getProperty('styleUrls');
20
20
  return {
21
- standalone: (0, string_expression_1.stringExpression)((0, typescript_1.getPropertyAssignment)(standaloneProperty)),
22
- selector: (0, string_expression_1.stringExpression)((0, typescript_1.getPropertyAssignment)(selectorProperty)),
23
- templateUrl: (0, string_expression_1.stringExpression)((0, typescript_1.getPropertyAssignment)(templateProperty)),
24
- styleUrl: (0, string_expression_1.stringExpression)((0, typescript_1.getPropertyAssignment)(styleUrlProperty)),
25
- styleUrls: (0, string_expression_1.stringExpression)((0, typescript_1.getPropertyAssignment)(styleUrlsProperty)),
21
+ standalone: (0, string_expression_1.stringExpression)((0, get_property_assignment_1.getPropertyAssignment)(standaloneProperty)),
22
+ selector: (0, string_expression_1.stringExpression)((0, get_property_assignment_1.getPropertyAssignment)(selectorProperty)),
23
+ templateUrl: (0, string_expression_1.stringExpression)((0, get_property_assignment_1.getPropertyAssignment)(templateProperty)),
24
+ styleUrl: (0, string_expression_1.stringExpression)((0, get_property_assignment_1.getPropertyAssignment)(styleUrlProperty)),
25
+ styleUrls: (0, string_expression_1.stringExpression)((0, get_property_assignment_1.getPropertyAssignment)(styleUrlsProperty)),
26
26
  };
27
27
  }
28
28
  return undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"get-component-decorator.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/angular/get-component-decorator.ts"],"names":[],"mappings":";;AAUA,sDA0BC;AAnCD,uCAAuF;AAEvF,4DAAwD;AACxD,8CAAsD;AAEtD;;;GAGG;AACH,SAAgB,qBAAqB,CAAC,GAAqB;IACzD,MAAM,SAAS,GAA0B,GAAG,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;IACvE,MAAM,iBAAiB,GAAqB,SAAS,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,CAAC;IAEzE,IAAI,eAAI,CAAC,yBAAyB,CAAC,iBAAiB,CAAC,EAAE,CAAC;QACtD,MAAM,kBAAkB,GACtB,iBAAiB,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;QAC9C,MAAM,gBAAgB,GACpB,iBAAiB,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QAC5C,MAAM,gBAAgB,GACpB,iBAAiB,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;QAC/C,MAAM,gBAAgB,GACpB,iBAAiB,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QAC5C,MAAM,iBAAiB,GACrB,iBAAiB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;QAE7C,OAAO;YACL,UAAU,EAAE,IAAA,oCAAgB,EAAC,IAAA,kCAAqB,EAAC,kBAAkB,CAAC,CAAC;YACvE,QAAQ,EAAE,IAAA,oCAAgB,EAAC,IAAA,kCAAqB,EAAC,gBAAgB,CAAC,CAAC;YACnE,WAAW,EAAE,IAAA,oCAAgB,EAAC,IAAA,kCAAqB,EAAC,gBAAgB,CAAC,CAAC;YACtE,QAAQ,EAAE,IAAA,oCAAgB,EAAC,IAAA,kCAAqB,EAAC,gBAAgB,CAAC,CAAC;YACnE,SAAS,EAAE,IAAA,oCAAgB,EAAC,IAAA,kCAAqB,EAAC,iBAAiB,CAAC,CAAC;SACtE,CAAC;IACJ,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
1
+ {"version":3,"file":"get-component-decorator.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/angular/get-component-decorator.ts"],"names":[],"mappings":";;AAUA,sDA0BC;AAnCD,uCAAuF;AAEvF,4DAAwD;AACxD,4FAAuF;AAEvF;;;GAGG;AACH,SAAgB,qBAAqB,CAAC,GAAqB;IACzD,MAAM,SAAS,GAA0B,GAAG,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;IACvE,MAAM,iBAAiB,GAAqB,SAAS,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,CAAC;IAEzE,IAAI,eAAI,CAAC,yBAAyB,CAAC,iBAAiB,CAAC,EAAE,CAAC;QACtD,MAAM,kBAAkB,GACtB,iBAAiB,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;QAC9C,MAAM,gBAAgB,GACpB,iBAAiB,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QAC5C,MAAM,gBAAgB,GACpB,iBAAiB,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;QAC/C,MAAM,gBAAgB,GACpB,iBAAiB,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QAC5C,MAAM,iBAAiB,GACrB,iBAAiB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;QAE7C,OAAO;YACL,UAAU,EAAE,IAAA,oCAAgB,EAAC,IAAA,+CAAqB,EAAC,kBAAkB,CAAC,CAAC;YACvE,QAAQ,EAAE,IAAA,oCAAgB,EAAC,IAAA,+CAAqB,EAAC,gBAAgB,CAAC,CAAC;YACnE,WAAW,EAAE,IAAA,oCAAgB,EAAC,IAAA,+CAAqB,EAAC,gBAAgB,CAAC,CAAC;YACtE,QAAQ,EAAE,IAAA,oCAAgB,EAAC,IAAA,+CAAqB,EAAC,gBAAgB,CAAC,CAAC;YACnE,SAAS,EAAE,IAAA,oCAAgB,EAAC,IAAA,+CAAqB,EAAC,iBAAiB,CAAC,CAAC;SACtE,CAAC;IACJ,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getDirectiveDecorator = getDirectiveDecorator;
4
4
  const ts_morph_1 = require("ts-morph");
5
5
  const string_expression_1 = require("../string-expression");
6
- const typescript_1 = require("../typescript");
6
+ const get_property_assignment_1 = require("../typescript/property/get-property-assignment");
7
7
  /**
8
8
  * Resolves the directive decorator and return its properties.
9
9
  * @param cls - class declaration
@@ -15,8 +15,8 @@ function getDirectiveDecorator(cls) {
15
15
  const standaloneProperty = decoratorArgument.getProperty('standalone');
16
16
  const selectorProperty = decoratorArgument.getProperty('selector');
17
17
  return {
18
- standalone: (0, string_expression_1.stringExpression)((0, typescript_1.getPropertyAssignment)(standaloneProperty)),
19
- selector: (0, string_expression_1.stringExpression)((0, typescript_1.getPropertyAssignment)(selectorProperty)),
18
+ standalone: (0, string_expression_1.stringExpression)((0, get_property_assignment_1.getPropertyAssignment)(standaloneProperty)),
19
+ selector: (0, string_expression_1.stringExpression)((0, get_property_assignment_1.getPropertyAssignment)(selectorProperty)),
20
20
  };
21
21
  }
22
22
  return undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"get-directive-decorator.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/angular/get-directive-decorator.ts"],"names":[],"mappings":";;AAUA,sDAiBC;AA1BD,uCAAuF;AAEvF,4DAAwD;AACxD,8CAAsD;AAEtD;;;GAGG;AACH,SAAgB,qBAAqB,CAAC,GAAqB;IAC1D,MAAM,SAAS,GAA0B,GAAG,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;IACvE,MAAM,iBAAiB,GAAqB,SAAS,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,CAAC;IAEzE,IAAI,eAAI,CAAC,yBAAyB,CAAC,iBAAiB,CAAC,EAAE,CAAC;QACvD,MAAM,kBAAkB,GACvB,iBAAiB,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;QAC7C,MAAM,gBAAgB,GACrB,iBAAiB,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QAE3C,OAAO;YACN,UAAU,EAAE,IAAA,oCAAgB,EAAC,IAAA,kCAAqB,EAAC,kBAAkB,CAAC,CAAC;YACvE,QAAQ,EAAE,IAAA,oCAAgB,EAAC,IAAA,kCAAqB,EAAC,gBAAgB,CAAC,CAAC;SACnE,CAAC;IACH,CAAC;IAED,OAAO,SAAS,CAAC;AAClB,CAAC"}
1
+ {"version":3,"file":"get-directive-decorator.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/angular/get-directive-decorator.ts"],"names":[],"mappings":";;AAUA,sDAiBC;AA1BD,uCAAuF;AAEvF,4DAAwD;AACxD,4FAAuF;AAEvF;;;GAGG;AACH,SAAgB,qBAAqB,CAAC,GAAqB;IACzD,MAAM,SAAS,GAA0B,GAAG,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;IACvE,MAAM,iBAAiB,GAAqB,SAAS,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,CAAC;IAEzE,IAAI,eAAI,CAAC,yBAAyB,CAAC,iBAAiB,CAAC,EAAE,CAAC;QACtD,MAAM,kBAAkB,GACtB,iBAAiB,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;QAC9C,MAAM,gBAAgB,GACpB,iBAAiB,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QAE5C,OAAO;YACL,UAAU,EAAE,IAAA,oCAAgB,EAAC,IAAA,+CAAqB,EAAC,kBAAkB,CAAC,CAAC;YACvE,QAAQ,EAAE,IAAA,oCAAgB,EAAC,IAAA,+CAAqB,EAAC,gBAAgB,CAAC,CAAC;SACpE,CAAC;IACJ,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getPipeDecorator = getPipeDecorator;
4
4
  const ts_morph_1 = require("ts-morph");
5
5
  const string_expression_1 = require("../string-expression");
6
- const typescript_1 = require("../typescript");
6
+ const get_property_assignment_1 = require("../typescript/property/get-property-assignment");
7
7
  /**
8
8
  * Resolves the pipe decorator and return its properties.
9
9
  * @param cls - class declaration
@@ -15,8 +15,8 @@ function getPipeDecorator(cls) {
15
15
  const standaloneProperty = decoratorArgument.getProperty('standalone');
16
16
  const nameProperty = decoratorArgument.getProperty('name');
17
17
  return {
18
- standalone: (0, string_expression_1.stringExpression)((0, typescript_1.getPropertyAssignment)(standaloneProperty)),
19
- name: (0, string_expression_1.stringExpression)((0, typescript_1.getPropertyAssignment)(nameProperty)),
18
+ standalone: (0, string_expression_1.stringExpression)((0, get_property_assignment_1.getPropertyAssignment)(standaloneProperty)),
19
+ name: (0, string_expression_1.stringExpression)((0, get_property_assignment_1.getPropertyAssignment)(nameProperty)),
20
20
  };
21
21
  }
22
22
  return undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"get-pipe-decorator.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/angular/get-pipe-decorator.ts"],"names":[],"mappings":";;AAUA,4CAiBC;AA1BD,uCAAuF;AAEvF,4DAAwD;AACxD,8CAAsD;AAEtD;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,GAAqB;IACrD,MAAM,SAAS,GAA0B,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IAClE,MAAM,iBAAiB,GAAqB,SAAS,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,CAAC;IAEzE,IAAI,eAAI,CAAC,yBAAyB,CAAC,iBAAiB,CAAC,EAAE,CAAC;QACvD,MAAM,kBAAkB,GACvB,iBAAiB,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;QAC7C,MAAM,YAAY,GACjB,iBAAiB,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAEvC,OAAO;YACN,UAAU,EAAE,IAAA,oCAAgB,EAAC,IAAA,kCAAqB,EAAC,kBAAkB,CAAC,CAAC;YACvE,IAAI,EAAE,IAAA,oCAAgB,EAAC,IAAA,kCAAqB,EAAC,YAAY,CAAC,CAAC;SAC3D,CAAC;IACH,CAAC;IAED,OAAO,SAAS,CAAC;AAClB,CAAC"}
1
+ {"version":3,"file":"get-pipe-decorator.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/angular/get-pipe-decorator.ts"],"names":[],"mappings":";;AAUA,4CAiBC;AA1BD,uCAAuF;AAEvF,4DAAwD;AACxD,4FAAuF;AAEvF;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,GAAqB;IACpD,MAAM,SAAS,GAA0B,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IAClE,MAAM,iBAAiB,GAAqB,SAAS,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,CAAC;IAEzE,IAAI,eAAI,CAAC,yBAAyB,CAAC,iBAAiB,CAAC,EAAE,CAAC;QACtD,MAAM,kBAAkB,GACtB,iBAAiB,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;QAC9C,MAAM,YAAY,GAChB,iBAAiB,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAExC,OAAO;YACL,UAAU,EAAE,IAAA,oCAAgB,EAAC,IAAA,+CAAqB,EAAC,kBAAkB,CAAC,CAAC;YACvE,IAAI,EAAE,IAAA,oCAAgB,EAAC,IAAA,+CAAqB,EAAC,YAAY,CAAC,CAAC;SAC5D,CAAC;IACJ,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -36,8 +36,11 @@ async function buildIndexes(config) {
36
36
  pages.push({
37
37
  breadcrumbs: config.breadcrumbs,
38
38
  pageType: config.pageType,
39
- title: config.title,
40
- section: section?.content ?? '',
39
+ // Without the whitespace around them, a no-break space included: a heading's decorative
40
+ // emoji is joined to its text with one. The new engine trims them the same way
41
+ // (`generator/content/html-pipeline.ts`); keep both in step.
42
+ title: config.title.trim(),
43
+ section: (section?.content ?? '').trim(),
41
44
  route: config.route,
42
45
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
43
46
  // @ts-ignore
@@ -1 +1 @@
1
- {"version":3,"file":"build-indexes.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/build-indexes.ts"],"names":[],"mappings":";;AAqBA,oCA2CC;AA9DD,wCAAsC;AACtC,4DAAkF;AAClF,+BAA4C;AAC5C,8CAA2C;AAE3C,6CAAyC;AAUzC;;;GAGG;AACI,KAAK,UAAU,YAAY,CAAC,MAA+B;IAChE,MAAM,KAAK,GAAqB,EAAE,CAAC;IAEnC,MAAM,EAAE,GAAG,MAAM,IAAA,cAAM,EAAC;QACtB,MAAM,EAAE;YACN,GAAG,mCAAiB;SACrB;KACF,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAW,MAAM,yBAAyB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAEjF,MAAM,IAAA,0BAAQ,EAAC,EAAE,EAAE,gBAAgB,EAAE,MAAM,EAAE;QAC3C,WAAW,EAAE,CAAC,IAAiB,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC;QACrD,aAAa,EAAE,OAAO;KACvB,CAAC,CAAC;IAEH,IAAI,OAA6C,CAAC;IAElD,6DAA6D;IAC7D,aAAa;IACb,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAkD,CAAC;SAC3E,MAAM,CAAC,WAAW,CAAC;SACnB,OAAO,CAAC,CAAC,GAA8B,EAA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AG,EAAE,UAAU;QACjB,6DAA6D;QAC7D,aAAa;QACb,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CACvB,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAS,WAAW,CAAC,IAAiB;IACpC,QAAQ,IAAI,CAAC,GAAG,EAAE,CAAC;QACjB,KAAK,QAAQ,CAAC;QACd,KAAK,GAAG,CAAC;QACT,KAAK,MAAM,CAAC;QACZ,KAAK,MAAM,CAAC;QACZ,KAAK,OAAO,CAAC;QACb,KAAK,GAAG,CAAC;QACT,KAAK,GAAG,CAAC;QACT,KAAK,IAAI;YACP,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,IAAI,CAAC,OAAO,MAAM,EAAE,CAAC;QACpD;YACE,OAAO,IAAI,CAAC;IAChB,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,KAAK,UAAU,yBAAyB,CAAC,IAAY;IACnD,OAAO,IAAA,qBAAc,EACnB,IAAA,WAAI,EAAC,IAAA,sBAAS,EAAiC,eAAe,CAAC,CAAC,CAAC,IAAI,CACnE,IAAA,qBAAS,EAAC,CAAC,KAAqC,EAAE,EAAE,CAAC,KAAK,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC,CAC5F,CACF,CAAC;AACJ,CAAC"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.constructPageKeyword = constructPageKeyword;
4
+ const keyword_heading_title_1 = require("./keyword-heading-title");
4
5
  /**
5
6
  *
6
7
  * @param key
@@ -12,7 +13,7 @@ function constructPageKeyword(key, title, path, anchor) {
12
13
  return anchor.type === 'heading'
13
14
  ? {
14
15
  key: `${key}#${anchor.anchor}`,
15
- title: `${title} [${anchor.title}]`,
16
+ title: `${title} [${(0, keyword_heading_title_1.keywordHeadingTitle)(anchor.title)}]`,
16
17
  path: `${path}#${anchor.anchorId}`,
17
18
  }
18
19
  : {
@@ -1 +1 @@
1
- {"version":3,"file":"construct-page-keyword.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/construct-page-keyword.ts"],"names":[],"mappings":";;AAUA,oDAiBC;AAxBD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAClC,GAAW,EACX,KAAa,EACb,IAAY,EACZ,MAAuB;IAEvB,OAAO,MAAM,CAAC,IAAI,KAAK,SAAS;QAC9B,CAAC,CAAC;YACE,GAAG,EAAE,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE;YAC9B,KAAK,EAAE,GAAG,KAAK,KAAK,MAAM,CAAC,KAAK,GAAG;YACnC,IAAI,EAAE,GAAG,IAAI,IAAI,MAAM,CAAC,QAAQ,EAAE;SACnC;QACH,CAAC,CAAC;YACE,GAAG,EAAE,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE;YAC9B,KAAK,EAAE,GAAG,KAAK,IAAI,MAAM,CAAC,KAAK,EAAE;YACjC,IAAI,EAAE,GAAG,IAAI,IAAI,MAAM,CAAC,QAAQ,EAAE;SACnC,CAAC;AACR,CAAC"}
1
+ {"version":3,"file":"construct-page-keyword.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/construct-page-keyword.ts"],"names":[],"mappings":";;AAYA,oDAiBC;AA1BD,mEAA8D;AAE9D;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAClC,GAAW,EACX,KAAa,EACb,IAAY,EACZ,MAAuB;IAEvB,OAAO,MAAM,CAAC,IAAI,KAAK,SAAS;QAC9B,CAAC,CAAC;YACE,GAAG,EAAE,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE;YAC9B,KAAK,EAAE,GAAG,KAAK,KAAK,IAAA,2CAAmB,EAAC,MAAM,CAAC,KAAK,CAAC,GAAG;YACxD,IAAI,EAAE,GAAG,IAAI,IAAI,MAAM,CAAC,QAAQ,EAAE;SACnC;QACH,CAAC,CAAC;YACE,GAAG,EAAE,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE;YAC9B,KAAK,EAAE,GAAG,KAAK,IAAI,MAAM,CAAC,KAAK,EAAE;YACjC,IAAI,EAAE,GAAG,IAAI,IAAI,MAAM,CAAC,QAAQ,EAAE;SACnC,CAAC;AACR,CAAC"}
@@ -1,4 +1,4 @@
1
- import { NgDocSupportedDeclaration } from '../types';
1
+ import type { NgDocSupportedDeclaration } from '../types/supported-declaration';
2
2
  /**
3
3
  *
4
4
  * @param declaration
@@ -3,14 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.extractSelectors = extractSelectors;
4
4
  exports.getPipeName = getPipeName;
5
5
  const ts_morph_1 = require("ts-morph");
6
- const angular_1 = require("./angular");
6
+ const get_component_decorator_1 = require("./angular/get-component-decorator");
7
+ const get_directive_decorator_1 = require("./angular/get-directive-decorator");
8
+ const get_pipe_decorator_1 = require("./angular/get-pipe-decorator");
7
9
  /**
8
10
  *
9
11
  * @param declaration
10
12
  */
11
13
  function extractSelectors(declaration) {
12
14
  if (ts_morph_1.Node.isClassDeclaration(declaration)) {
13
- const decorator = (0, angular_1.getComponentDecorator)(declaration) ?? (0, angular_1.getDirectiveDecorator)(declaration);
15
+ const decorator = (0, get_component_decorator_1.getComponentDecorator)(declaration) ?? (0, get_directive_decorator_1.getDirectiveDecorator)(declaration);
14
16
  if (decorator) {
15
17
  return decorator.selector?.split(',').map((s) => s.trim()) ?? [];
16
18
  }
@@ -23,7 +25,7 @@ function extractSelectors(declaration) {
23
25
  */
24
26
  function getPipeName(declaration) {
25
27
  if (ts_morph_1.Node.isClassDeclaration(declaration)) {
26
- const decorator = (0, angular_1.getPipeDecorator)(declaration);
28
+ const decorator = (0, get_pipe_decorator_1.getPipeDecorator)(declaration);
27
29
  if (decorator) {
28
30
  return decorator.name;
29
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"extract-selectors.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/extract-selectors.ts"],"names":[],"mappings":";;AAUA,4CAWC;AAMD,kCAUC;AApCD,uCAAgC;AAGhC,uCAA2F;AAE3F;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,WAAsC;IACrE,IAAI,eAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE,CAAC;QACzC,MAAM,SAAS,GACb,IAAA,+BAAqB,EAAC,WAAW,CAAC,IAAI,IAAA,+BAAqB,EAAC,WAAW,CAAC,CAAC;QAE3E,IAAI,SAAS,EAAE,CAAC;YACd,OAAO,SAAS,CAAC,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC;QAC3E,CAAC;IACH,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC;AAED;;;GAGG;AACH,SAAgB,WAAW,CAAC,WAAsC;IAChE,IAAI,eAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE,CAAC;QACzC,MAAM,SAAS,GAAqB,IAAA,0BAAgB,EAAC,WAAW,CAAC,CAAC;QAElE,IAAI,SAAS,EAAE,CAAC;YACd,OAAO,SAAS,CAAC,IAAI,CAAC;QACxB,CAAC;IACH,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
1
+ {"version":3,"file":"extract-selectors.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/extract-selectors.ts"],"names":[],"mappings":";;AAYA,4CAWC;AAMD,kCAUC;AAtCD,uCAAgC;AAGhC,+EAA0E;AAC1E,+EAA0E;AAC1E,qEAAgE;AAEhE;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,WAAsC;IACrE,IAAI,eAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE,CAAC;QACzC,MAAM,SAAS,GACb,IAAA,+CAAqB,EAAC,WAAW,CAAC,IAAI,IAAA,+CAAqB,EAAC,WAAW,CAAC,CAAC;QAE3E,IAAI,SAAS,EAAE,CAAC;YACd,OAAO,SAAS,CAAC,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC;QAC3E,CAAC;IACH,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC;AAED;;;GAGG;AACH,SAAgB,WAAW,CAAC,WAAsC;IAChE,IAAI,eAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE,CAAC;QACzC,MAAM,SAAS,GAAqB,IAAA,qCAAgB,EAAC,WAAW,CAAC,CAAC;QAElE,IAAI,SAAS,EAAE,CAAC;YACd,OAAO,SAAS,CAAC,IAAI,CAAC;QACxB,CAAC;IACH,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { MemberType } from './typescript';
1
+ import type { MemberType } from './typescript/member/member-type';
2
2
  /**
3
3
  * Excludes from the passed array members that have names that are not important to the end user
4
4
  * @param members - List of members
@@ -3,5 +3,6 @@ import { NgDocCodeType } from '@ng-doc/core';
3
3
  * Format code with Prettier
4
4
  * @param code - Code to format
5
5
  * @param codeType - Type of code
6
+ * @param configDirectory - Optional workspace directory; omitted preserves legacy cwd lookup.
6
7
  */
7
- export declare function formatCode(code: string, codeType?: NgDocCodeType | null): string;
8
+ export declare function formatCode(code: string, codeType?: NgDocCodeType | null, configDirectory?: string): string;
@@ -1,18 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.formatCode = formatCode;
4
- const sync_1 = require("@prettier/sync");
4
+ const tslib_1 = require("tslib");
5
+ const sync_1 = tslib_1.__importDefault(require("@prettier/sync"));
6
+ const node_path_1 = require("node:path");
5
7
  /**
6
8
  * Format code with Prettier
7
9
  * @param code - Code to format
8
10
  * @param codeType - Type of code
11
+ * @param configDirectory - Optional workspace directory; omitted preserves legacy cwd lookup.
9
12
  */
10
- function formatCode(code, codeType = 'TypeScript') {
13
+ function formatCode(code, codeType = 'TypeScript', configDirectory) {
11
14
  try {
12
15
  if (codeType) {
13
16
  const parser = getPrettierParserFromCodeType(codeType);
14
- const config = (0, sync_1.resolveConfig)(process.cwd(), { editorconfig: true });
15
- return (0, sync_1.format)(code, { ...config, parser, embeddedLanguageFormatting: 'auto' }).trim();
17
+ const config = sync_1.default.resolveConfig(
18
+ // Prettier searches from a file's parent, so use a synthetic path inside the directory.
19
+ configDirectory ? (0, node_path_1.join)(configDirectory, '__ng_doc_format__.ts') : process.cwd(), { editorconfig: true, useCache: false });
20
+ return sync_1.default.format(code, {
21
+ ...config,
22
+ parser,
23
+ embeddedLanguageFormatting: 'auto',
24
+ }).trim();
16
25
  }
17
26
  return code.trim();
18
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"format-code.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/format-code.ts"],"names":[],"mappings":";;AASA,gCAeC;AAvBD,yCAAuD;AAGvD;;;;GAIG;AACH,SAAgB,UAAU,CAAC,IAAY,EAAE,WAAiC,YAAY;IACpF,IAAI,CAAC;QACH,IAAI,QAAQ,EAAE,CAAC;YACb,MAAM,MAAM,GAAkC,6BAA6B,CAAC,QAAQ,CAAC,CAAC;YACtF,MAAM,MAAM,GAAG,IAAA,oBAAa,EAAC,OAAO,CAAC,GAAG,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;YAEpE,OACE,IAAA,aAAM,EAAC,IAAI,EAAE,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,0BAA0B,EAAE,MAAM,EAAE,CACvE,CAAC,IAAI,EAAE,CAAC;QACX,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;IACrB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,SAAS,6BAA6B,CAAC,QAAuB;IAC5D,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,KAAK,CAAC;QACX,KAAK,MAAM,CAAC;QACZ,KAAK,MAAM,CAAC;QACZ,KAAK,MAAM;YACT,OAAO,KAAK,CAAC;QACf,KAAK,MAAM;YACT,OAAO,MAAM,CAAC;QAChB,KAAK,YAAY,CAAC;QAClB,KAAK,YAAY;YACf,OAAO,YAAY,CAAC;QACtB,KAAK,UAAU;YACb,OAAO,UAAU,CAAC;QACpB;YACE,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"format-code.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/format-code.ts"],"names":[],"mappings":";;AAWA,gCA2BC;;AArCD,kEAA0C;AAC1C,yCAAiC;AAGjC;;;;;GAKG;AACH,SAAgB,UAAU,CACxB,IAAY,EACZ,WAAiC,YAAY,EAC7C,eAAwB;IAExB,IAAI,CAAC;QACH,IAAI,QAAQ,EAAE,CAAC;YACb,MAAM,MAAM,GAAkC,6BAA6B,CAAC,QAAQ,CAAC,CAAC;YACtF,MAAM,MAAM,GAAG,cAAY,CAAC,aAAa;YACvC,wFAAwF;YACxF,eAAe,CAAC,CAAC,CAAC,IAAA,gBAAI,EAAC,eAAe,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,EAC/E,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,CACxC,CAAC;YAEF,OACE,cAAY,CAAC,MAAM,CAAC,IAAI,EAAE;gBACxB,GAAG,MAAM;gBACT,MAAM;gBACN,0BAA0B,EAAE,MAAM;aACnC,CACF,CAAC,IAAI,EAAE,CAAC;QACX,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;IACrB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,SAAS,6BAA6B,CAAC,QAAuB;IAC5D,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,KAAK,CAAC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,OAAO,MAAM,CAAC;AAChB,CAAC"}
1
+ {"version":3,"file":"import-fresh-esm.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/import-fresh-esm.ts"],"names":[],"mappings":";;AAaA,wCAcC;;AA3BD,+CAAyB;AACzB,mDAA6B;AAE7B,6CAAyC;AACzC,mCAAgC;AAEhC;;;;;;GAMG;AACI,KAAK,UAAU,cAAc,CAAI,UAAkB;IACzD,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAC1C,MAAM,WAAW,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACjE,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACnC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC;IACzC,MAAM,WAAW,GAAG,GAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,GAAG,EAAE,CAAC;IAE3E,MAAM,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAEtD,MAAM,MAAM,GAAG,MAAM,IAAA,sBAAS,EAAI,IAAA,aAAK,EAAC,WAAW,CAAC,CAAC,CAAC;IAEtD,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAErC,OAAO,MAAM,CAAC;AACf,CAAC"}
@@ -24,6 +24,7 @@ export * from './is-supported-declaration';
24
24
  export * from './markdown-to-html';
25
25
  export * from './mini-pattern';
26
26
  export * from './minify-html';
27
+ export * from './navigation-title-order';
27
28
  export * from './no-empty';
28
29
  export * from './no-line-breaks';
29
30
  export * from './not-empty-assets';
@@ -38,6 +39,7 @@ export * from './repo-link';
38
39
  export * from './snippets-from-asset';
39
40
  export * from './sort-navigation-entities';
40
41
  export * from './string-expression';
42
+ export * from './text-order';
41
43
  export * from './to-template-string';
42
44
  export * from './typescript';
43
45
  export * from './utils';
package/helpers/index.js CHANGED
@@ -27,6 +27,7 @@ tslib_1.__exportStar(require("./is-supported-declaration"), exports);
27
27
  tslib_1.__exportStar(require("./markdown-to-html"), exports);
28
28
  tslib_1.__exportStar(require("./mini-pattern"), exports);
29
29
  tslib_1.__exportStar(require("./minify-html"), exports);
30
+ tslib_1.__exportStar(require("./navigation-title-order"), exports);
30
31
  tslib_1.__exportStar(require("./no-empty"), exports);
31
32
  tslib_1.__exportStar(require("./no-line-breaks"), exports);
32
33
  tslib_1.__exportStar(require("./not-empty-assets"), exports);
@@ -41,6 +42,7 @@ tslib_1.__exportStar(require("./repo-link"), exports);
41
42
  tslib_1.__exportStar(require("./snippets-from-asset"), exports);
42
43
  tslib_1.__exportStar(require("./sort-navigation-entities"), exports);
43
44
  tslib_1.__exportStar(require("./string-expression"), exports);
45
+ tslib_1.__exportStar(require("./text-order"), exports);
44
46
  tslib_1.__exportStar(require("./to-template-string"), exports);
45
47
  tslib_1.__exportStar(require("./typescript"), exports);
46
48
  tslib_1.__exportStar(require("./utils"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/index.ts"],"names":[],"mappings":";;;AAAA,oDAA0B;AAC1B,8DAAoC;AACpC,8DAAoC;AACpC,+DAAqC;AACrC,mEAAyC;AACzC,mEAAyC;AACzC,+DAAqC;AACrC,oEAA0C;AAC1C,iDAAuB;AACvB,8DAAoC;AACpC,8DAAoC;AACpC,mEAAyC;AACzC,wDAA8B;AAC9B,+DAAqC;AACrC,oEAA0C;AAC1C,oEAA0C;AAC1C,iEAAuC;AACvC,uDAA6B;AAC7B,0DAAgC;AAChC,uDAA6B;AAC7B,6DAAmC;AACnC,kEAAwC;AACxC,qEAA2C;AAC3C,6DAAmC;AACnC,yDAA+B;AAC/B,wDAA8B;AAC9B,qDAA2B;AAC3B,2DAAiC;AACjC,6DAAmC;AACnC,uDAA6B;AAC7B,kDAAwB;AACxB,yDAA+B;AAC/B,kDAAwB;AACxB,oEAA0C;AAC1C,6DAAmC;AACnC,mEAAyC;AACzC,sDAA4B;AAC5B,gEAAsC;AACtC,qEAA2C;AAC3C,8DAAoC;AACpC,+DAAqC;AACrC,uDAA6B;AAC7B,kDAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/index.ts"],"names":[],"mappings":";;;AAAA,oDAA0B;AAC1B,8DAAoC;AACpC,8DAAoC;AACpC,+DAAqC;AACrC,mEAAyC;AACzC,mEAAyC;AACzC,+DAAqC;AACrC,oEAA0C;AAC1C,iDAAuB;AACvB,8DAAoC;AACpC,8DAAoC;AACpC,mEAAyC;AACzC,wDAA8B;AAC9B,+DAAqC;AACrC,oEAA0C;AAC1C,oEAA0C;AAC1C,iEAAuC;AACvC,uDAA6B;AAC7B,0DAAgC;AAChC,uDAA6B;AAC7B,6DAAmC;AACnC,kEAAwC;AACxC,qEAA2C;AAC3C,6DAAmC;AACnC,yDAA+B;AAC/B,wDAA8B;AAC9B,mEAAyC;AACzC,qDAA2B;AAC3B,2DAAiC;AACjC,6DAAmC;AACnC,uDAA6B;AAC7B,kDAAwB;AACxB,yDAA+B;AAC/B,kDAAwB;AACxB,oEAA0C;AAC1C,6DAAmC;AACnC,mEAAyC;AACzC,sDAA4B;AAC5B,gEAAsC;AACtC,qEAA2C;AAC3C,8DAAoC;AACpC,uDAA6B;AAC7B,+DAAqC;AACrC,uDAA6B;AAC7B,kDAAwB"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The title of a heading as a keyword shows it: without a decorative leading emoji, which would
3
+ * otherwise appear in link titles and be read aloud. Both engines build heading keywords with it.
4
+ * @param title - The heading text.
5
+ * @returns The text without the leading emoji, or the text unchanged when nothing would remain.
6
+ */
7
+ export declare function keywordHeadingTitle(title: string): string;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.keywordHeadingTitle = keywordHeadingTitle;
4
+ /**
5
+ * A leading emoji (one pictograph with its modifiers and joined parts, or a flag) and the
6
+ * whitespace after it, including the no-break space that keeps a heading's anchor unchanged.
7
+ * `libs/utils/html/plugins/slugger.plugin.ts` matches the same emoji to hide it from assistive
8
+ * technology; keep both patterns in step.
9
+ */
10
+ const LEADING_EMOJI = /^(?:\p{Regional_Indicator}{2}|(?:\p{Emoji_Presentation}|\p{Extended_Pictographic}️)(?:\p{Emoji_Modifier}|️|‍\p{Extended_Pictographic}️?)*)\s*/u;
11
+ /**
12
+ * The title of a heading as a keyword shows it: without a decorative leading emoji, which would
13
+ * otherwise appear in link titles and be read aloud. Both engines build heading keywords with it.
14
+ * @param title - The heading text.
15
+ * @returns The text without the leading emoji, or the text unchanged when nothing would remain.
16
+ */
17
+ function keywordHeadingTitle(title) {
18
+ const stripped = title.replace(LEADING_EMOJI, '');
19
+ return stripped ? stripped : title;
20
+ }
21
+ //# sourceMappingURL=keyword-heading-title.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyword-heading-title.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/keyword-heading-title.ts"],"names":[],"mappings":";;AAeA,kDAIC;AAnBD;;;;;GAKG;AACH,MAAM,aAAa,GACjB,gJAAgJ,CAAC;AAEnJ;;;;;GAKG;AACH,SAAgB,mBAAmB,CAAC,KAAa;IAC/C,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;IAElD,OAAO,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC;AACrC,CAAC"}
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
5
5
  const core_1 = require("@ng-doc/core");
6
6
  const fs = tslib_1.__importStar(require("fs"));
7
7
  const marked_1 = require("marked");
8
- const node_os_1 = require("node:os");
9
8
  const path = tslib_1.__importStar(require("path"));
10
9
  const parsers_1 = require("../parsers");
11
10
  const remove_lines_from_code_1 = require("./remove-lines-from-code");
@@ -28,9 +27,10 @@ function markdownToHtml(markdown, context, addDependency) {
28
27
  const relativeFilePath = path.join(context, file);
29
28
  const fileContent = fs
30
29
  .readFileSync(relativeFilePath ?? '', 'utf8')
31
- .split(node_os_1.EOL)
30
+ // LF on every platform, as the new engine does, so both engines render the same lines.
31
+ .split('\n')
32
32
  .slice(fileLineStart, fileLineEnd)
33
- .join(node_os_1.EOL)
33
+ .join('\n')
34
34
  .trim();
35
35
  addDependency && addDependency(relativeFilePath);
36
36
  code = (0, remove_lines_from_code_1.removeLinesFromCode)(fileContent);
@@ -1 +1 @@
1
- {"version":3,"file":"markdown-to-html.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/markdown-to-html.ts"],"names":[],"mappings":";;AAsBA,wCAsEC;;AA5FD,uCAA0C;AAC1C,+CAAyB;AACzB,mCAAgD;AAChD,qCAA8B;AAC9B,mDAA6B;AAG7B,wCAAkD;AAClD,qEAA+D;AAC/D,mCAAgC;AAEhC,MAAM,eAAe,GAAW,gCAAgC,CAAC;AAEjE;;;;;;;;GAQG;AACH,SAAgB,cAAc,CAC5B,QAAgB,EAChB,OAAgB,EAChB,aAAqC;IAErC,MAAM,QAAQ,GAAmB;QAC/B,IAAI,CAAC,IAAY,EAAE,IAAwB;YACzC,MAAM,EACJ,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,KAAK,EACL,MAAM,EACN,IAAI,GACL,GAAyB,IAAA,8BAAoB,EAAC,IAAI,EAAE,IAAI,EAAE,IAAI,YAAY,CAAC,CAAC;YAE7E,IAAI,IAAI,IAAI,OAAO,EAAE,CAAC;gBACpB,MAAM,gBAAgB,GAAW,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;gBAC1D,MAAM,WAAW,GAAW,EAAE;qBAC3B,YAAY,C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K,sBAAsB,CAAC;QAC3D,CAAC;QACD,IAAI,CAAC,IAAY,EAAE,KAAe;YAChC,OAAO,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QACpC,CAAC;KACF,CAAC;IAEF,eAAM,CAAC,GAAG,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IAEzB,OAAO,eAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAW,CAAC;AAC5D,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Compares two navigation titles in the fixed navigation order, in both engines: the shared text
3
+ * order (`compareText`), so a sidebar does not depend on the process locale.
4
+ * @param left - A title.
5
+ * @param right - Another title.
6
+ * @returns A negative number, zero or a positive number, as `localeCompare` does.
7
+ */
8
+ export declare function compareNavigationTitles(left: string, right: string): number;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.compareNavigationTitles = compareNavigationTitles;
4
+ const text_order_1 = require("./text-order");
5
+ /**
6
+ * Compares two navigation titles in the fixed navigation order, in both engines: the shared text
7
+ * order (`compareText`), so a sidebar does not depend on the process locale.
8
+ * @param left - A title.
9
+ * @param right - Another title.
10
+ * @returns A negative number, zero or a positive number, as `localeCompare` does.
11
+ */
12
+ function compareNavigationTitles(left, right) {
13
+ return (0, text_order_1.compareText)(left, right);
14
+ }
15
+ //# sourceMappingURL=navigation-title-order.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation-title-order.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/navigation-title-order.ts"],"names":[],"mappings":";;AASA,0DAEC;AAXD,6CAA2C;AAE3C;;;;;;GAMG;AACH,SAAgB,uBAAuB,CAAC,IAAY,EAAE,KAAa;IACjE,OAAO,IAAA,wBAAW,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClC,CAAC"}
@@ -3,7 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getPlaygroundComponentInputs = getPlaygroundComponentInputs;
4
4
  exports.getPlaygroundPipeInputs = getPlaygroundPipeInputs;
5
5
  const ts_morph_1 = require("ts-morph");
6
- const angular_1 = require("../angular");
6
+ // Not the `../angular` barrel: it re-exports get-component-assets, which imports the
7
+ // @ng-doc/builder package itself, so this helper would need a built and linked package to load.
8
+ const get_component_inputs_1 = require("../angular/get-component-inputs");
9
+ const get_input_name_1 = require("../angular/get-input-name");
10
+ const get_input_type_1 = require("../angular/get-input-type");
7
11
  const get_js_doc_1 = require("../get-js-doc");
8
12
  const typescript_1 = require("../typescript");
9
13
  /**
@@ -11,8 +15,8 @@ const typescript_1 = require("../typescript");
11
15
  * @param declaration
12
16
  */
13
17
  function getPlaygroundComponentInputs(declaration) {
14
- return (0, angular_1.getComponentInputs)(declaration).reduce((properties, property) => {
15
- const inputName = (0, angular_1.getInputName)(property);
18
+ return (0, get_component_inputs_1.getComponentInputs)(declaration).reduce((properties, property) => {
19
+ const inputName = (0, get_input_name_1.getInputName)(property);
16
20
  return { ...properties, ...propOrParamToPlaygroundProperty(property, inputName) };
17
21
  }, {});
18
22
  }
@@ -36,7 +40,7 @@ function getPlaygroundPipeInputs(declaration) {
36
40
  */
37
41
  function propOrParamToPlaygroundProperty(propOrParam, inputName) {
38
42
  const inputType = ts_morph_1.Node.isPropertyDeclaration(propOrParam)
39
- ? (0, angular_1.getInputType)(propOrParam)
43
+ ? (0, get_input_type_1.getInputType)(propOrParam)
40
44
  : propOrParam.getType();
41
45
  const type = (0, typescript_1.formatType)(inputType, ts_morph_1.TypeFormatFlags.NoTruncation | ts_morph_1.TypeFormatFlags.UseSingleQuotesForStringLiteralType);
42
46
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"get-playground-inputs.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/playground/get-playground-inputs.ts"],"names":[],"mappings":";;AAkBA,oEAUC;AAMD,0DAQC;AAzCD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AAqB,CAAC,WAAW,CAAC;gBACvC,eAAI,CAAC,wBAAwB,CAAC,WAAW,CAAC;gBAC1C,eAAI,CAAC,wBAAwB,CAAC,WAAW,CAAC;gBACxC,CAAC,CAAC,IAAA,gCAAmB,EAAC,WAAW,CAAC;gBAClC,CAAC,CAAC,IAAA,0BAAa,EACX,WAAW,CAAC,sBAAsB,CAAC,qBAAU,CAAC,iBAAiB,CAAC,EAChE,WAAW,CAAC,OAAO,EAAE,CACtB;YACP,OAAO,EAAE,SAAS;iBACf,aAAa,EAAE;iBACf,GAAG,CAAC,CAAC,IAAU,EAAE,EAAE,CAClB,IAAI,CAAC,OAAO,CACV,SAAS,EACT,0BAAe,CAAC,YAAY,GAAG,0BAAe,CAAC,mCAAmC,CACnF,CACF;SACJ;KACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"get-playground-inputs.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/playground/get-playground-inputs.ts"],"names":[],"mappings":";;AAuBA,oEAUC;AAMD,0DAQC;AA9CD,uCAOkB;AAElB,qFAAqF;AACrF,gGAAgG;AAChG,0EAAqE;AACrE,8DAAyD;AACzD,8DAAyD;AAEzD,8CAAmE;AACnE,8CAA2C;AAE3C;;;GAGG;AACH,SAAgB,4BAA4B,CAC1C,WAA6B;IAE7B,OAAO,IAAA,yCAAkB,EAAC,WAAW,CAAC,CAAC,MAAM,CAC3C,CAAC,UAAqC,EAAE,QAA+B,EAAE,EAAE;QACzE,MAAM,SAAS,GAAW,IAAA,6BAAY,EAAC,QAAQ,CAAC,CAAC;QACjD,OAAO,EAAE,GAAG,UAAU,EAAE,GAAG,+BAA+B,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,CAAC;IACpF,CAAC,EACD,EAAE,CACH,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAgB,uBAAuB,CAAC,WAA6B;IACnE,OAAO,WAAW;SACf,gBAAgB,CAAC,WAAW,CAAC;SAC7B,aAAa,EAAE;SACf,KAAK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