@ng-doc/builder 16.10.0 → 16.11.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 (249) hide show
  1. package/classes/observable-set.d.ts +1 -0
  2. package/classes/observable-set.js +4 -0
  3. package/classes/observable-set.js.map +1 -1
  4. package/engine/.cache/apps/ng-doc/docs/ng-doc.api.js +3 -8
  5. package/engine/.cache/apps/ng-doc/docs/recipes/ignoring-file-lines/ng-doc.page.js +41 -0
  6. package/engine/.cache/apps/ng-doc/docs/recipes/ng-doc.category.js +30 -0
  7. package/engine/actions/playground.action.js +2 -2
  8. package/engine/actions/playground.action.js.map +1 -1
  9. package/engine/build-ng-doc.js +10 -2
  10. package/engine/build-ng-doc.js.map +1 -1
  11. package/engine/builder-operators/build.d.ts +2 -3
  12. package/engine/builder-operators/build.js +8 -4
  13. package/engine/builder-operators/build.js.map +1 -1
  14. package/engine/builder-operators/compile.d.ts +1 -1
  15. package/engine/builder-operators/compile.js.map +1 -1
  16. package/engine/builder-operators/emit.d.ts +2 -2
  17. package/engine/builder-operators/emit.js.map +1 -1
  18. package/engine/builder-operators/post-build.d.ts +6 -0
  19. package/engine/builder-operators/post-build.js +23 -0
  20. package/engine/builder-operators/post-build.js.map +1 -0
  21. package/engine/builder-operators/post-process.d.ts +2 -2
  22. package/engine/builder-operators/post-process.js +4 -5
  23. package/engine/builder-operators/post-process.js.map +1 -1
  24. package/engine/builder-operators/task.d.ts +1 -1
  25. package/engine/builder-operators/task.js.map +1 -1
  26. package/engine/builder-operators/to-builder-output.d.ts +6 -0
  27. package/engine/builder-operators/to-builder-output.js +13 -0
  28. package/engine/builder-operators/to-builder-output.js.map +1 -0
  29. package/engine/entities/abstractions/entity.d.ts +11 -11
  30. package/engine/entities/abstractions/entity.js +2 -5
  31. package/engine/entities/abstractions/entity.js.map +1 -1
  32. package/engine/entities/abstractions/file.entity.d.ts +2 -2
  33. package/engine/entities/abstractions/file.entity.js.map +1 -1
  34. package/engine/entities/abstractions/module.entity.d.ts +1 -1
  35. package/engine/entities/abstractions/module.entity.js.map +1 -1
  36. package/engine/entities/abstractions/navigation.entity.d.ts +1 -1
  37. package/engine/entities/abstractions/navigation.entity.js.map +1 -1
  38. package/engine/entities/abstractions/route.entity.d.ts +3 -4
  39. package/engine/entities/abstractions/route.entity.js +2 -2
  40. package/engine/entities/abstractions/route.entity.js.map +1 -1
  41. package/engine/entities/api-list.entity.d.ts +20 -0
  42. package/engine/entities/api-list.entity.js +69 -0
  43. package/engine/entities/api-list.entity.js.map +1 -0
  44. package/engine/entities/api-page.entity.d.ts +2 -3
  45. package/engine/entities/api-page.entity.js +26 -28
  46. package/engine/entities/api-page.entity.js.map +1 -1
  47. package/engine/entities/api-scope.entity.d.ts +2 -3
  48. package/engine/entities/api-scope.entity.js +13 -7
  49. package/engine/entities/api-scope.entity.js.map +1 -1
  50. package/engine/entities/api.entity.d.ts +3 -4
  51. package/engine/entities/api.entity.js +26 -29
  52. package/engine/entities/api.entity.js.map +1 -1
  53. package/engine/entities/category.entity.d.ts +2 -3
  54. package/engine/entities/category.entity.js +11 -13
  55. package/engine/entities/category.entity.js.map +1 -1
  56. package/engine/entities/context.entity.d.ts +11 -0
  57. package/engine/entities/context.entity.js +34 -0
  58. package/engine/entities/context.entity.js.map +1 -0
  59. package/engine/entities/generated-module.entity.d.ts +12 -0
  60. package/engine/entities/generated-module.entity.js +52 -0
  61. package/engine/entities/generated-module.entity.js.map +1 -0
  62. package/engine/entities/index-file.entity.d.ts +12 -0
  63. package/engine/entities/index-file.entity.js +52 -0
  64. package/engine/entities/index-file.entity.js.map +1 -0
  65. package/engine/entities/index.d.ts +8 -1
  66. package/engine/entities/index.js +8 -1
  67. package/engine/entities/index.js.map +1 -1
  68. package/engine/entities/indexes.entity.d.ts +3 -4
  69. package/engine/entities/indexes.entity.js +12 -14
  70. package/engine/entities/indexes.entity.js.map +1 -1
  71. package/engine/entities/keywords.entity.d.ts +12 -0
  72. package/engine/entities/keywords.entity.js +32 -0
  73. package/engine/entities/keywords.entity.js.map +1 -0
  74. package/engine/entities/page-demo.entity.d.ts +20 -0
  75. package/engine/entities/page-demo.entity.js +87 -0
  76. package/engine/entities/page-demo.entity.js.map +1 -0
  77. package/engine/entities/page-playground.entity.d.ts +21 -0
  78. package/engine/entities/page-playground.entity.js +80 -0
  79. package/engine/entities/page-playground.entity.js.map +1 -0
  80. package/engine/entities/page.entity.d.ts +6 -18
  81. package/engine/entities/page.entity.js +39 -107
  82. package/engine/entities/page.entity.js.map +1 -1
  83. package/engine/entities/plugins/entity-plugins/add-to-dependencies.plugin.d.ts +5 -0
  84. package/engine/entities/plugins/entity-plugins/add-to-dependencies.plugin.js +20 -0
  85. package/engine/entities/plugins/entity-plugins/add-to-dependencies.plugin.js.map +1 -0
  86. package/engine/entities/plugins/entity-plugins/apply.plugin.d.ts +26 -0
  87. package/engine/entities/plugins/entity-plugins/apply.plugin.js +65 -0
  88. package/engine/entities/plugins/entity-plugins/apply.plugin.js.map +1 -0
  89. package/engine/entities/plugins/entity-plugins/extract-snippets.plugin.d.ts +6 -0
  90. package/engine/entities/plugins/entity-plugins/extract-snippets.plugin.js +23 -0
  91. package/engine/entities/plugins/entity-plugins/extract-snippets.plugin.js.map +1 -0
  92. package/engine/entities/plugins/entity-plugins/fill-indexes.plugin.d.ts +6 -0
  93. package/engine/entities/plugins/entity-plugins/fill-indexes.plugin.js +27 -0
  94. package/engine/entities/plugins/entity-plugins/fill-indexes.plugin.js.map +1 -0
  95. package/engine/entities/plugins/entity-plugins/index.d.ts +9 -0
  96. package/engine/entities/plugins/entity-plugins/index.js +13 -0
  97. package/engine/entities/plugins/entity-plugins/index.js.map +1 -0
  98. package/engine/entities/plugins/entity-plugins/markdown-to-html.plugin.d.ts +5 -0
  99. package/engine/entities/plugins/entity-plugins/markdown-to-html.plugin.js +21 -0
  100. package/engine/entities/plugins/entity-plugins/markdown-to-html.plugin.js.map +1 -0
  101. package/engine/entities/plugins/entity-plugins/post-process-html.plugin.d.ts +5 -0
  102. package/engine/entities/plugins/entity-plugins/post-process-html.plugin.js +18 -0
  103. package/engine/entities/plugins/entity-plugins/post-process-html.plugin.js.map +1 -0
  104. package/engine/entities/plugins/entity-plugins/process-html.plugin.d.ts +5 -0
  105. package/engine/entities/plugins/entity-plugins/process-html.plugin.js +18 -0
  106. package/engine/entities/plugins/entity-plugins/process-html.plugin.js.map +1 -0
  107. package/engine/entities/plugins/entity-plugins/remove-lines.plugin.d.ts +6 -0
  108. package/engine/entities/plugins/entity-plugins/remove-lines.plugin.js +23 -0
  109. package/engine/entities/plugins/entity-plugins/remove-lines.plugin.js.map +1 -0
  110. package/engine/entities/plugins/entity-plugins/wrap-code.plugin.d.ts +6 -0
  111. package/engine/entities/plugins/entity-plugins/wrap-code.plugin.js +21 -0
  112. package/engine/entities/plugins/entity-plugins/wrap-code.plugin.js.map +1 -0
  113. package/engine/entities/plugins/helpers/execute-plugins.d.ts +10 -0
  114. package/engine/entities/plugins/helpers/execute-plugins.js +18 -0
  115. package/engine/entities/plugins/helpers/execute-plugins.js.map +1 -0
  116. package/engine/entities/plugins/helpers/index.d.ts +1 -0
  117. package/engine/entities/plugins/helpers/index.js +5 -0
  118. package/engine/entities/plugins/helpers/index.js.map +1 -0
  119. package/engine/entities/plugins/index.d.ts +3 -0
  120. package/engine/entities/plugins/index.js +7 -0
  121. package/engine/entities/plugins/index.js.map +1 -0
  122. package/engine/entities/plugins/types/entity-plugin.d.ts +5 -0
  123. package/engine/entities/plugins/types/entity-plugin.js +3 -0
  124. package/engine/entities/plugins/types/entity-plugin.js.map +1 -0
  125. package/engine/entities/plugins/types/index.d.ts +1 -0
  126. package/engine/entities/plugins/types/index.js +5 -0
  127. package/engine/entities/plugins/types/index.js.map +1 -0
  128. package/engine/entities/routes.entity.d.ts +11 -0
  129. package/engine/entities/routes.entity.js +34 -0
  130. package/engine/entities/routes.entity.js.map +1 -0
  131. package/engine/entity-store.d.ts +1 -0
  132. package/engine/entity-store.js +3 -0
  133. package/engine/entity-store.js.map +1 -1
  134. package/engine/nunjucks/filters.d.ts +2 -2
  135. package/engine/nunjucks/filters.js +3 -2
  136. package/engine/nunjucks/filters.js.map +1 -1
  137. package/engine/variables.d.ts +1 -0
  138. package/engine/variables.js +1 -0
  139. package/engine/variables.js.map +1 -1
  140. package/helpers/angular/get-component-assets.d.ts +8 -0
  141. package/helpers/angular/get-component-assets.js +15 -0
  142. package/helpers/angular/get-component-assets.js.map +1 -0
  143. package/helpers/angular/get-component-source-files.d.ts +7 -0
  144. package/helpers/angular/get-component-source-files.js +23 -0
  145. package/helpers/angular/get-component-source-files.js.map +1 -0
  146. package/helpers/angular/index.d.ts +2 -0
  147. package/helpers/angular/index.js +2 -0
  148. package/helpers/angular/index.js.map +1 -1
  149. package/helpers/build-file-assets.d.ts +7 -0
  150. package/helpers/build-file-assets.js +25 -0
  151. package/helpers/build-file-assets.js.map +1 -0
  152. package/helpers/build-file-entity.js +14 -1
  153. package/helpers/build-file-entity.js.map +1 -1
  154. package/helpers/demo/assets-from-component-asset.d.ts +6 -0
  155. package/helpers/demo/assets-from-component-asset.js +14 -0
  156. package/helpers/demo/assets-from-component-asset.js.map +1 -0
  157. package/helpers/demo/index.d.ts +1 -0
  158. package/helpers/demo/index.js +5 -0
  159. package/helpers/demo/index.js.map +1 -0
  160. package/helpers/emit-built-output.d.ts +2 -2
  161. package/helpers/emit-built-output.js.map +1 -1
  162. package/helpers/entity-type.d.ts +1 -1
  163. package/helpers/extract-docs.js +4 -4
  164. package/helpers/extract-docs.js.map +1 -1
  165. package/helpers/format-code.d.ts +1 -1
  166. package/helpers/format-code.js +14 -3
  167. package/helpers/format-code.js.map +1 -1
  168. package/helpers/get-code-type-from-lang.d.ts +6 -0
  169. package/helpers/get-code-type-from-lang.js +31 -0
  170. package/helpers/get-code-type-from-lang.js.map +1 -0
  171. package/helpers/get-demo-class-declarations.d.ts +1 -1
  172. package/helpers/get-demo-class-declarations.js +18 -7
  173. package/helpers/get-demo-class-declarations.js.map +1 -1
  174. package/helpers/index.d.ts +7 -3
  175. package/helpers/index.js +7 -3
  176. package/helpers/index.js.map +1 -1
  177. package/helpers/markdown-to-html.d.ts +10 -0
  178. package/helpers/{marked.js → markdown-to-html.js} +11 -8
  179. package/helpers/markdown-to-html.js.map +1 -0
  180. package/helpers/process-html.d.ts +3 -3
  181. package/helpers/process-html.js +14 -11
  182. package/helpers/process-html.js.map +1 -1
  183. package/helpers/process-legacy-snippets.d.ts +9 -0
  184. package/helpers/process-legacy-snippets.js +70 -0
  185. package/helpers/process-legacy-snippets.js.map +1 -0
  186. package/helpers/process-snippets.d.ts +5 -5
  187. package/helpers/process-snippets.js +63 -50
  188. package/helpers/process-snippets.js.map +1 -1
  189. package/helpers/remove-lines-from-code.d.ts +6 -0
  190. package/helpers/remove-lines-from-code.js +30 -0
  191. package/helpers/remove-lines-from-code.js.map +1 -0
  192. package/helpers/snippets-from-asset.d.ts +9 -0
  193. package/helpers/snippets-from-asset.js +26 -0
  194. package/helpers/snippets-from-asset.js.map +1 -0
  195. package/interfaces/asset.d.ts +5 -7
  196. package/interfaces/build-result.d.ts +10 -0
  197. package/{types/snippet-type.js → interfaces/build-result.js} +1 -1
  198. package/interfaces/build-result.js.map +1 -0
  199. package/interfaces/index.d.ts +3 -0
  200. package/interfaces/index.js +3 -0
  201. package/interfaces/index.js.map +1 -1
  202. package/interfaces/output.d.ts +1 -3
  203. package/interfaces/snippet-config.d.ts +8 -0
  204. package/interfaces/snippet-config.js +3 -0
  205. package/interfaces/snippet-config.js.map +1 -0
  206. package/interfaces/snippet.d.ts +5 -4
  207. package/operators/error-handler.d.ts +1 -1
  208. package/package.json +5 -5
  209. package/parsers/helpers/index.d.ts +3 -0
  210. package/parsers/helpers/index.js +7 -0
  211. package/parsers/helpers/index.js.map +1 -0
  212. package/parsers/helpers/number.d.ts +2 -0
  213. package/parsers/helpers/number.js +7 -0
  214. package/parsers/helpers/number.js.map +1 -0
  215. package/parsers/helpers/param-value.d.ts +2 -0
  216. package/parsers/helpers/param-value.js +8 -0
  217. package/parsers/helpers/param-value.js.map +1 -0
  218. package/parsers/helpers/param.d.ts +7 -0
  219. package/parsers/helpers/param.js +19 -0
  220. package/parsers/helpers/param.js.map +1 -0
  221. package/parsers/parse-code-block-params.js +8 -13
  222. package/parsers/parse-code-block-params.js.map +1 -1
  223. package/parsers/parse-snippet.d.ts +6 -0
  224. package/parsers/parse-snippet.js +27 -0
  225. package/parsers/parse-snippet.js.map +1 -0
  226. package/schematics/category/index.js +2 -1
  227. package/schematics/category/index.js.map +1 -1
  228. package/schematics/page/index.js +2 -1
  229. package/schematics/page/index.js.map +1 -1
  230. package/templates/demo-assets.ts.nunj +13 -4
  231. package/templates/page.module.ts.nunj +3 -2
  232. package/templates/parts/usage-notes.html.nunj +1 -1
  233. package/templates/playgrounds.ts.nunj +19 -9
  234. package/types/index.d.ts +0 -1
  235. package/types/index.js +0 -1
  236. package/types/index.js.map +1 -1
  237. package/engine/entities/skeleton.entity.d.ts +0 -16
  238. package/engine/entities/skeleton.entity.js +0 -44
  239. package/engine/entities/skeleton.entity.js.map +0 -1
  240. package/helpers/build-assets.d.ts +0 -10
  241. package/helpers/build-assets.js +0 -55
  242. package/helpers/build-assets.js.map +0 -1
  243. package/helpers/get-component-asset.d.ts +0 -10
  244. package/helpers/get-component-asset.js +0 -50
  245. package/helpers/get-component-asset.js.map +0 -1
  246. package/helpers/marked.d.ts +0 -9
  247. package/helpers/marked.js.map +0 -1
  248. package/types/snippet-type.d.ts +0 -1
  249. package/types/snippet-type.js.map +0 -1
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.wrapCodePlugin = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const nunjucks_1 = require("../../../nunjucks");
6
+ /**
7
+ *
8
+ * @param lang
9
+ */
10
+ function wrapCodePlugin(lang) {
11
+ return {
12
+ id: 'wrapCodePlugin',
13
+ execute: (code) => tslib_1.__awaiter(this, void 0, void 0, function* () {
14
+ return (0, nunjucks_1.renderTemplate)('./code.html.nunj', {
15
+ context: { code, lang: lang.toLowerCase() || 'ts' },
16
+ }).trim();
17
+ }),
18
+ };
19
+ }
20
+ exports.wrapCodePlugin = wrapCodePlugin;
21
+ //# sourceMappingURL=wrap-code.plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wrap-code.plugin.js","sourceRoot":"","sources":["../../../../../../../libs/builder/engine/entities/plugins/entity-plugins/wrap-code.plugin.ts"],"names":[],"mappings":";;;;AAAA,gDAAiD;AAGjD;;;GAGG;AACH,SAAgB,cAAc,CAAC,IAAY;IAC1C,OAAO;QACN,EAAE,EAAE,gBAAgB;QACpB,OAAO,EAAE,CAAO,IAAI,EAAE,EAAE;YACvB,OAAO,IAAA,yBAAc,EAAC,kBAAkB,EAAE;gBACzC,OAAO,EAAE,EAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,IAAI,EAAC;aACjD,CAAC,CAAC,IAAI,EAAE,CAAC;QACX,CAAC,CAAA;KACD,CAAC;AACH,CAAC;AATD,wCASC"}
@@ -0,0 +1,10 @@
1
+ import { Observable } from 'rxjs';
2
+ import { NgDocEntity } from '../../abstractions/entity';
3
+ import { NgDocEntityPlugin } from '../types';
4
+ /**
5
+ *
6
+ * @param data
7
+ * @param entity
8
+ * @param plugins
9
+ */
10
+ export declare function executePlugins<T, TEntity extends NgDocEntity>(data: T, entity: TEntity, plugins: Array<NgDocEntityPlugin<T>>): Observable<T>;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.executePlugins = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ /**
7
+ *
8
+ * @param data
9
+ * @param entity
10
+ * @param plugins
11
+ */
12
+ function executePlugins(data, entity, plugins) {
13
+ return plugins.reduce((acc, plugin) => acc.pipe((0, rxjs_1.switchMap)((data) => plugin.execute(data, entity)), (0, operators_1.catchError)((e) => {
14
+ throw new Error(`Error while applying plugin "${plugin.id}" to entity "${entity.id}": ${e}`);
15
+ })), (0, rxjs_1.of)(data));
16
+ }
17
+ exports.executePlugins = executePlugins;
18
+ //# sourceMappingURL=execute-plugins.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute-plugins.js","sourceRoot":"","sources":["../../../../../../../libs/builder/engine/entities/plugins/helpers/execute-plugins.ts"],"names":[],"mappings":";;;AAAA,+BAA+C;AAC/C,8CAA0C;AAK1C;;;;;GAKG;AACH,SAAgB,cAAc,CAC7B,IAAO,EACP,MAAe,EACf,OAAoC;IAEpC,OAAO,OAAO,CAAC,MAAM,CACpB,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CACf,GAAG,CAAC,IAAI,CACP,IAAA,gBAAS,EAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,EACjD,IAAA,sBAAU,EAAC,CAAC,CAAU,EAAE,EAAE;QACzB,MAAM,IAAI,KAAK,CAAC,gCAAgC,MAAM,CAAC,EAAE,gBAAgB,MAAM,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;IAC9F,CAAC,CAAC,CACF,EACF,IAAA,SAAE,EAAC,IAAI,CAAC,CACR,CAAC;AACH,CAAC;AAfD,wCAeC"}
@@ -0,0 +1 @@
1
+ export * from './execute-plugins';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./execute-plugins"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/builder/engine/entities/plugins/helpers/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC"}
@@ -0,0 +1,3 @@
1
+ export * from './entity-plugins';
2
+ export * from './helpers';
3
+ export * from './types';
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./entity-plugins"), exports);
5
+ tslib_1.__exportStar(require("./helpers"), exports);
6
+ tslib_1.__exportStar(require("./types"), exports);
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/entities/plugins/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,oDAA0B;AAC1B,kDAAwB"}
@@ -0,0 +1,5 @@
1
+ import { NgDocEntity } from '../../abstractions/entity';
2
+ export interface NgDocEntityPlugin<T, TEntity extends NgDocEntity = NgDocEntity> {
3
+ id: string;
4
+ execute: (data: T, context: TEntity) => Promise<T>;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=entity-plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-plugin.js","sourceRoot":"","sources":["../../../../../../../libs/builder/engine/entities/plugins/types/entity-plugin.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './entity-plugin';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./entity-plugin"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/builder/engine/entities/plugins/types/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC"}
@@ -0,0 +1,11 @@
1
+ import { Observable } from 'rxjs';
2
+ import { NgDocBuildResult } from '../../interfaces';
3
+ import { NgDocEntity } from './abstractions/entity';
4
+ export declare class NgDocRoutesEntity extends NgDocEntity {
5
+ id: string;
6
+ isRoot: boolean;
7
+ readonly parent: undefined;
8
+ rootFiles: string[];
9
+ buildCandidates: NgDocEntity[];
10
+ build(): Observable<NgDocBuildResult<string>>;
11
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NgDocRoutesEntity = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const path = tslib_1.__importStar(require("path"));
6
+ const rxjs_1 = require("rxjs");
7
+ const nunjucks_1 = require("../nunjucks");
8
+ const entity_1 = require("./abstractions/entity");
9
+ class NgDocRoutesEntity extends entity_1.NgDocEntity {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.id = `NgDocRoutes`;
13
+ this.isRoot = false;
14
+ this.parent = undefined;
15
+ this.rootFiles = [];
16
+ this.buildCandidates = [];
17
+ }
18
+ build() {
19
+ const entities = this.store.getRootEntitiesForBuild();
20
+ const result = (0, nunjucks_1.renderTemplate)('./routing.ts.nunj', { context: { entities } });
21
+ return (0, rxjs_1.of)({
22
+ result,
23
+ entity: this,
24
+ toBuilderOutput: (content) => tslib_1.__awaiter(this, void 0, void 0, function* () {
25
+ return ({
26
+ content,
27
+ filePath: path.join(this.context.buildPath, 'ng-doc.routing.ts'),
28
+ });
29
+ }),
30
+ });
31
+ }
32
+ }
33
+ exports.NgDocRoutesEntity = NgDocRoutesEntity;
34
+ //# sourceMappingURL=routes.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routes.entity.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/entities/routes.entity.ts"],"names":[],"mappings":";;;;AAAA,mDAA6B;AAC7B,+BAAoC;AAGpC,0CAA2C;AAC3C,kDAAkD;AAElD,MAAa,iBAAkB,SAAQ,oBAAW;IAAlD;;QACU,OAAE,GAAW,aAAa,CAAC;QAC3B,WAAM,GAAY,KAAK,CAAC;QACxB,WAAM,GAAc,SAAS,CAAC;QAC9B,cAAS,GAAa,EAAE,CAAC;QACzB,oBAAe,GAAkB,EAAE,CAAC;IAe9C,CAAC;IAbA,KAAK;QACJ,MAAM,QAAQ,GAAkB,IAAI,CAAC,KAAK,CAAC,uBAAuB,EAAE,CAAC;QACrE,MAAM,MAAM,GAAW,IAAA,yBAAc,EAAC,mBAAmB,EAAE,EAAC,OAAO,EAAE,EAAC,QAAQ,EAAC,EAAC,CAAC,CAAC;QAElF,OAAO,IAAA,SAAE,EAAC;YACT,MAAM;YACN,MAAM,EAAE,IAAI;YACZ,eAAe,EAAE,CAAO,OAAe,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5C,OAAO;oBACP,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,mBAAmB,CAAC;iBAChE,CAAC,CAAA;cAAA;SACF,CAAC,CAAC;IACJ,CAAC;CACD;AApBD,8CAoBC"}
@@ -14,5 +14,6 @@ export declare class NgDocEntityStore extends Map<string, NgDocEntity> {
14
14
  loadGlobalKeywords(): Promise<void>;
15
15
  updateKeywordMap(): void;
16
16
  getAllWithErrorsOrWarnings(): NgDocEntity[];
17
+ getRootEntitiesForBuild(): NgDocEntity[];
17
18
  private addKeyword;
18
19
  }
@@ -69,6 +69,9 @@ class NgDocEntityStore extends Map {
69
69
  getAllWithErrorsOrWarnings() {
70
70
  return this.asArray().filter((entity) => entity.errors.length || entity.warnings.length);
71
71
  }
72
+ getRootEntitiesForBuild() {
73
+ return this.asArray().filter((e) => e.isRoot && e.isReadyForBuild);
74
+ }
72
75
  addKeyword(key, keyword) {
73
76
  this.keywordMap.set(key, keyword);
74
77
  }
@@ -1 +1 @@
1
- {"version":3,"file":"entity-store.js","sourceRoot":"","sources":["../../../../libs/builder/engine/entity-store.ts"],"names":[],"mappings":";;;;AACA,uCAAwG;AAExG,wCAAgG;AAGhG,MAAa,gBAAiB,SAAQ,GAAwB;IAI7D,YAA6B,MAA0B;QACtD,KAAK,EAAE,CAAC;QADoB,WAAM,GAAN,MAAM,CAAoB;QAH/C,eAAU,GAA8B,IAA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AM,CAAC,IAAI,MAAM,CAAC,eAAe,EAAE;gBACpD,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAA2B,EAAE,EAAE,CACvD,IAAI,CAAC,UAAU,CAAC,IAAA,oBAAU,EAAC,OAAO,CAAC,GAAG,CAAC,EAAE;oBACxC,KAAK,EAAE,OAAO,CAAC,KAAK;oBACpB,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,IAAI,EAAE,IAAA,kCAAwB,EAAC,MAAM,CAAC;oBACtC,UAAU,EAAE,IAAA,yBAAe,EAAC,MAAM,CAAC;iBACnC,CAAC,CACF,CAAC;aACF;QACF,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,0BAA0B;QACzB,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC,MAAmB,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACvG,CAAC;IAED,uBAAuB;QACtB,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC,CAAc,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,eAAe,CAAC,CAAC;IACjF,CAAC;IAEO,UAAU,CAAC,GAAW,EAAE,OAAqB;QACpD,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IACnC,CAAC;CACD;AApFD,4CAoFC"}
@@ -1,2 +1,2 @@
1
- export { accessorPresentation, constructorPresentation, declarationImport, displayReturnType, displayType, extractDocs, extractParameterDocs, extractSeeDocs, extractSelectors, filterByScope, filterByStatic, filterUselessMembers, firstNodeWithComment, functionPresentation, getAccessorChain, getClassAccessors, getClassMethods, getClassProperties, getDeclarationType, getImplementedMember, getInheritedParent, getInterfaceAccessors, getInterfaceMethods, getInterfaceProperties, getMemberParent, getMethodChain, getOverriddenMember, getPropertyChain, groupAccessors, marked, methodPresentation, noEmpty, noLineBreaks, notEmptyAssets, sortByNodesName, sortNavigationEntities, toTemplateString, typeAliasPresentation, variablePresentation, } from '../../helpers';
2
- export { kebabCase, objectKeys, unique } from '@ng-doc/core';
1
+ export { accessorPresentation, constructorPresentation, declarationImport, displayReturnType, displayType, extractDocs, extractParameterDocs, extractSeeDocs, extractSelectors, filterByScope, filterByStatic, filterUselessMembers, firstNodeWithComment, functionPresentation, getAccessorChain, getClassAccessors, getClassMethods, getClassProperties, getDeclarationType, getImplementedMember, getInheritedParent, getInterfaceAccessors, getInterfaceMethods, getInterfaceProperties, getMemberParent, getMethodChain, getOverriddenMember, getPropertyChain, groupAccessors, markdownToHtml, methodPresentation, noEmpty, noLineBreaks, notEmptyAssets, sortByNodesName, sortNavigationEntities, toTemplateString, typeAliasPresentation, variablePresentation, } from '../../helpers';
2
+ export { isRoute, kebabCase, objectKeys, unique } from '@ng-doc/core';
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /* Just re-export filters from this file, they will be included to the template renderer automatically */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.unique = exports.objectKeys = exports.kebabCase = exports.variablePresentation = exports.typeAliasPresentation = exports.toTemplateString = exports.sortNavigationEntities = exports.sortByNodesName = exports.notEmptyAssets = exports.noLineBreaks = exports.noEmpty = exports.methodPresentation = exports.marked = exports.groupAccessors = exports.getPropertyChain = exports.getOverriddenMember = exports.getMethodChain = exports.getMemberParent = exports.getInterfaceProperties = exports.getInterfaceMethods = exports.getInterfaceAccessors = exports.getInheritedParent = exports.getImplementedMember = exports.getDeclarationType = exports.getClassProperties = exports.getClassMethods = exports.getClassAccessors = exports.getAccessorChain = exports.functionPresentation = exports.firstNodeWithComment = exports.filterUselessMembers = exports.filterByStatic = exports.filterByScope = exports.extractSelectors = exports.extractSeeDocs = exports.extractParameterDocs = exports.extractDocs = exports.displayType = exports.displayReturnType = exports.declarationImport = exports.constructorPresentation = exports.accessorPresentation = void 0;
4
+ exports.unique = exports.objectKeys = exports.kebabCase = exports.isRoute = exports.variablePresentation = exports.typeAliasPresentation = exports.toTemplateString = exports.sortNavigationEntities = exports.sortByNodesName = exports.notEmptyAssets = exports.noLineBreaks = exports.noEmpty = exports.methodPresentation = exports.markdownToHtml = exports.groupAccessors = exports.getPropertyChain = exports.getOverriddenMember = exports.getMethodChain = exports.getMemberParent = exports.getInterfaceProperties = exports.getInterfaceMethods = exports.getInterfaceAccessors = exports.getInheritedParent = exports.getImplementedMember = exports.getDeclarationType = exports.getClassProperties = exports.getClassMethods = exports.getClassAccessors = exports.getAccessorChain = exports.functionPresentation = exports.firstNodeWithComment = exports.filterUselessMembers = exports.filterByStatic = exports.filterByScope = exports.extractSelectors = exports.extractSeeDocs = exports.extractParameterDocs = exports.extractDocs = exports.displayType = exports.displayReturnType = exports.declarationImport = exports.constructorPresentation = exports.accessorPresentation = void 0;
5
5
  var helpers_1 = require("../../helpers");
6
6
  Object.defineProperty(exports, "accessorPresentation", { enumerable: true, get: function () { return helpers_1.accessorPresentation; } });
7
7
  Object.defineProperty(exports, "constructorPresentation", { enumerable: true, get: function () { return helpers_1.constructorPresentation; } });
@@ -32,7 +32,7 @@ Object.defineProperty(exports, "getMethodChain", { enumerable: true, get: functi
32
32
  Object.defineProperty(exports, "getOverriddenMember", { enumerable: true, get: function () { return helpers_1.getOverriddenMember; } });
33
33
  Object.defineProperty(exports, "getPropertyChain", { enumerable: true, get: function () { return helpers_1.getPropertyChain; } });
34
34
  Object.defineProperty(exports, "groupAccessors", { enumerable: true, get: function () { return helpers_1.groupAccessors; } });
35
- Object.defineProperty(exports, "marked", { enumerable: true, get: function () { return helpers_1.marked; } });
35
+ Object.defineProperty(exports, "markdownToHtml", { enumerable: true, get: function () { return helpers_1.markdownToHtml; } });
36
36
  Object.defineProperty(exports, "methodPresentation", { enumerable: true, get: function () { return helpers_1.methodPresentation; } });
37
37
  Object.defineProperty(exports, "noEmpty", { enumerable: true, get: function () { return helpers_1.noEmpty; } });
38
38
  Object.defineProperty(exports, "noLineBreaks", { enumerable: true, get: function () { return helpers_1.noLineBreaks; } });
@@ -43,6 +43,7 @@ Object.defineProperty(exports, "toTemplateString", { enumerable: true, get: func
43
43
  Object.defineProperty(exports, "typeAliasPresentation", { enumerable: true, get: function () { return helpers_1.typeAliasPresentation; } });
44
44
  Object.defineProperty(exports, "variablePresentation", { enumerable: true, get: function () { return helpers_1.variablePresentation; } });
45
45
  var core_1 = require("@ng-doc/core");
46
+ Object.defineProperty(exports, "isRoute", { enumerable: true, get: function () { return core_1.isRoute; } });
46
47
  Object.defineProperty(exports, "kebabCase", { enumerable: true, get: function () { return core_1.kebabCase; } });
47
48
  Object.defineProperty(exports, "objectKeys", { enumerable: true, get: function () { return core_1.objectKeys; } });
48
49
  Object.defineProperty(exports, "unique", { enumerable: true, get: function () { return core_1.unique; } });
@@ -1 +1 @@
1
- {"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/nunjucks/filters.ts"],"names":[],"mappings":";AAAA,yGAAyG;;;AAEzG,yCAwCuB;AAvCtB,+GAAA,oBAAoB,OAAA;AACpB,kHAAA,uBAAuB,OAAA;AACvB,4GAAA,iBAAiB,OAAA;AACjB,4GAAA,iBAAiB,OAAA;AACjB,sGAAA,WAAW,OAAA;AACX,sGAAA,WAAW,OAAA;AACX,+GAAA,oBAAoB,OAAA;AACpB,yGAAA,cAAc,OAAA;AACd,2GAAA,gBAAgB,OAAA;AAChB,wGAAA,aAAa,OAAA;AACb,yGAAA,cAAc,OAAA;AACd,+GAAA,oBAAoB,OAAA;AACpB,+GAAA,oBAAoB,OAAA;AACpB,+GAAA,oBAAoB,OAAA;AACpB,2GAAA,gBAAgB,OAAA;AAChB,4GAAA,iBAAiB,OAAA;AACjB,0GAAA,eAAe,OAAA;AACf,6GAAA,kBAAkB,OAAA;AAClB,6GAAA,kBAAkB,OAAA;AAClB,+GAAA,oBAAoB,OAAA;AACpB,6GAAA,kBAAkB,OAAA;AAClB,gHAAA,qBAAqB,OAAA;AACrB,8GAAA,mBAAmB,OAAA;AACnB,iHAAA,sBAAsB,OAAA;AACtB,0GAAA,eAAe,OAAA;AACf,yGAAA,cAAc,OAAA;AACd,8GAAA,mBAAmB,OAAA;AACnB,2GAAA,gBAAgB,OAAA;AAChB,yGAAA,cAAc,OAAA;AACd,iGAAA,MAAM,OAAA;AACN,6GAAA,kBAAkB,OAAA;AAClB,kGAAA,OAAO,OAAA;AACP,uGAAA,YAAY,OAAA;AACZ,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,iHAAA,sBAAsB,OAAA;AACtB,2GAAA,gBAAgB,OAAA;AAChB,gHAAA,qBAAqB,OAAA;AACrB,+GAAA,oBAAoB,OAAA;AAErB,qCAA2D;AAAnD,iGAAA,SAAS,OAAA;AAAE,kGAAA,UAAU,OAAA;AAAE,8FAAA,MAAM,OAAA"}
1
+ {"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/nunjucks/filters.ts"],"names":[],"mappings":";AAAA,yGAAyG;;;AAEzG,yCAwCuB;AAvCtB,+GAAA,oBAAoB,OAAA;AACpB,kHAAA,uBAAuB,OAAA;AACvB,4GAAA,iBAAiB,OAAA;AACjB,4GAAA,iBAAiB,OAAA;AACjB,sGAAA,WAAW,OAAA;AACX,sGAAA,WAAW,OAAA;AACX,+GAAA,oBAAoB,OAAA;AACpB,yGAAA,cAAc,OAAA;AACd,2GAAA,gBAAgB,OAAA;AAChB,wGAAA,aAAa,OAAA;AACb,yGAAA,cAAc,OAAA;AACd,+GAAA,oBAAoB,OAAA;AACpB,+GAAA,oBAAoB,OAAA;AACpB,+GAAA,oBAAoB,OAAA;AACpB,2GAAA,gBAAgB,OAAA;AAChB,4GAAA,iBAAiB,OAAA;AACjB,0GAAA,eAAe,OAAA;AACf,6GAAA,kBAAkB,OAAA;AAClB,6GAAA,kBAAkB,OAAA;AAClB,+GAAA,oBAAoB,OAAA;AACpB,6GAAA,kBAAkB,OAAA;AAClB,gHAAA,qBAAqB,OAAA;AACrB,8GAAA,mBAAmB,OAAA;AACnB,iHAAA,sBAAsB,OAAA;AACtB,0GAAA,eAAe,OAAA;AACf,yGAAA,cAAc,OAAA;AACd,8GAAA,mBAAmB,OAAA;AACnB,2GAAA,gBAAgB,OAAA;AAChB,yGAAA,cAAc,OAAA;AACd,yGAAA,cAAc,OAAA;AACd,6GAAA,kBAAkB,OAAA;AAClB,kGAAA,OAAO,OAAA;AACP,uGAAA,YAAY,OAAA;AACZ,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,iHAAA,sBAAsB,OAAA;AACtB,2GAAA,gBAAgB,OAAA;AAChB,gHAAA,qBAAqB,OAAA;AACrB,+GAAA,oBAAoB,OAAA;AAErB,qCAAmE;AAA3D,+FAAA,OAAO,OAAA;AAAC,iGAAA,SAAS,OAAA;AAAE,kGAAA,UAAU,OAAA;AAAE,8FAAA,MAAM,OAAA"}
@@ -1,5 +1,6 @@
1
1
  export declare const GLOBALS: {
2
2
  workspaceRoot: string;
3
+ relative: (p: string) => string;
3
4
  };
4
5
  export declare const PAGE_NAME: string;
5
6
  export declare const CATEGORY_NAME: string;
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const path = tslib_1.__importStar(require("path"));
6
6
  exports.GLOBALS = {
7
7
  workspaceRoot: '',
8
+ relative: (p) => path.relative(exports.GLOBALS.workspaceRoot, p),
8
9
  };
9
10
  exports.PAGE_NAME = 'ng-doc.page.ts';
10
11
  exports.CATEGORY_NAME = 'ng-doc.category.ts';
@@ -1 +1 @@
1
- {"version":3,"file":"variables.js","sourceRoot":"","sources":["../../../../libs/builder/engine/variables.ts"],"names":[],"mappings":";;;;AAAA,mDAA6B;AAEhB,QAAA,OAAO,GAAG;IACtB,aAAa,EAAE,EAAE;CACjB,CAAC;AACW,QAAA,SAAS,GAAW,gBAAgB,CAAC;AACrC,QAAA,aAAa,GAAW,oBAAoB,CAAC;AAC7C,QAAA,QAAQ,GAAW,eAAe,CAAC;AAEnC,QAAA,YAAY,GAAW,MAAM,iBAAS,EAAE,CAAC;AACzC,QAAA,gBAAgB,GAAW,MAAM,qBAAa,EAAE,CAAC;AACjD,QAAA,WAAW,GAAW,MAAM,gBAAQ,EAAE,CAAC;AACvC,QAAA,UAAU,GAAW,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;AACpD,QAAA,cAAc,GAAW,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"variables.js","sourceRoot":"","sources":["../../../../libs/builder/engine/variables.ts"],"names":[],"mappings":";;;;AAAA,mDAA6B;AAEhB,QAAA,OAAO,GAAG;IACtB,aAAa,EAAE,EAAE;IACjB,QAAQ,EAAE,CAAC,CAAS,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAO,CAAC,aAAa,EAAE,CAAC,CAAC;CAChE,CAAC;AACW,QAAA,SAAS,GAAW,gBAAgB,CAAC;AACrC,QAAA,aAAa,GAAW,oBAAoB,CAAC;AAC7C,QAAA,QAAQ,GAAW,eAAe,CAAC;AAEnC,QAAA,YAAY,GAAW,MAAM,iBAAS,EAAE,CAAC;AACzC,QAAA,gBAAgB,GAAW,MAAM,qBAAa,EAAE,CAAC;AACjD,QAAA,WAAW,GAAW,MAAM,gBAAQ,EAAE,CAAC;AACvC,QAAA,UAAU,GAAW,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;AACpD,QAAA,cAAc,GAAW,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { ClassDeclaration } from 'ts-morph';
2
+ import { NgDocAsset } from '../../interfaces';
3
+ /**
4
+ * Creates an array of assets from a component source file.
5
+ *
6
+ * @param cls - The class declaration.
7
+ */
8
+ export declare function getComponentAssets(cls: ClassDeclaration): NgDocAsset[];
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getComponentAssets = void 0;
4
+ const build_file_assets_1 = require("../build-file-assets");
5
+ const get_component_source_files_1 = require("./get-component-source-files");
6
+ /**
7
+ * Creates an array of assets from a component source file.
8
+ *
9
+ * @param cls - The class declaration.
10
+ */
11
+ function getComponentAssets(cls) {
12
+ return (0, get_component_source_files_1.getComponentSourceFiles)(cls).map((filePath) => (0, build_file_assets_1.buildFileAsset)(filePath));
13
+ }
14
+ exports.getComponentAssets = getComponentAssets;
15
+ //# sourceMappingURL=get-component-assets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-component-assets.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/angular/get-component-assets.ts"],"names":[],"mappings":";;;AAGA,4DAAoD;AACpD,6EAAqE;AAErE;;;;GAIG;AACH,SAAgB,kBAAkB,CAAC,GAAqB;IACvD,OAAO,IAAA,oDAAuB,EAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,QAAgB,EAAE,EAAE,CAAC,IAAA,kCAAc,EAAC,QAAQ,CAAC,CAAC,CAAC;AACzF,CAAC;AAFD,gDAEC"}
@@ -0,0 +1,7 @@
1
+ import { ClassDeclaration } from 'ts-morph';
2
+ /**
3
+ * Returns an array of source files for a component.
4
+ *
5
+ * @param cls - Class declaration.
6
+ */
7
+ export declare function getComponentSourceFiles(cls: ClassDeclaration): string[];
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getComponentSourceFiles = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const core_1 = require("@ng-doc/core");
6
+ const path_1 = tslib_1.__importDefault(require("path"));
7
+ const get_component_decorator_1 = require("./get-component-decorator");
8
+ /**
9
+ * Returns an array of source files for a component.
10
+ *
11
+ * @param cls - Class declaration.
12
+ */
13
+ function getComponentSourceFiles(cls) {
14
+ const decoratorData = (0, get_component_decorator_1.getComponentDecorator)(cls);
15
+ if (decoratorData) {
16
+ const filePath = cls.getSourceFile().getFilePath();
17
+ const fileDir = path_1.default.dirname(filePath);
18
+ return (0, core_1.asArray)(filePath, decoratorData.templateUrl ? path_1.default.join(fileDir, decoratorData.templateUrl) : [], (0, core_1.asArray)(decoratorData.styleUrls).map((styleUrl) => path_1.default.join(fileDir, styleUrl)));
19
+ }
20
+ return [];
21
+ }
22
+ exports.getComponentSourceFiles = getComponentSourceFiles;
23
+ //# sourceMappingURL=get-component-source-files.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-component-source-files.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/angular/get-component-source-files.ts"],"names":[],"mappings":";;;;AACA,uCAAqC;AACrC,wDAAwB;AAGxB,uEAAgE;AAEhE;;;;GAIG;AACH,SAAgB,uBAAuB,CAAC,GAAqB;IAC5D,MAAM,aAAa,GAA0B,IAAA,+CAAqB,EAAC,GAAG,CAAC,CAAC;IAExE,IAAI,aAAa,EAAE;QAClB,MAAM,QAAQ,GAAW,GAAG,CAAC,aAAa,EAAE,CAAC,WAAW,EAAE,CAAC;QAC3D,MAAM,OAAO,GAAW,cAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAE/C,OAAO,IAAA,cAAO,EACb,QAAQ,EACR,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,cAAI,CAAC,IAAI,CAAC,OAAO,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE,EAC9E,IAAA,cAAO,EAAC,aAAa,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,QAAgB,EAAE,EAAE,CAAC,cAAI,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CACxF,CAAC;KACF;IAED,OAAO,EAAE,CAAC;AACX,CAAC;AAfD,0DAeC"}
@@ -1,5 +1,7 @@
1
+ export * from './get-component-assets';
1
2
  export * from './get-component-decorator';
2
3
  export * from './get-component-inputs';
4
+ export * from './get-component-source-files';
3
5
  export * from './get-directive-decorator';
4
6
  export * from './get-input-name';
5
7
  export * from './get-pipe-decorator';
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./get-component-assets"), exports);
4
5
  tslib_1.__exportStar(require("./get-component-decorator"), exports);
5
6
  tslib_1.__exportStar(require("./get-component-inputs"), exports);
7
+ tslib_1.__exportStar(require("./get-component-source-files"), exports);
6
8
  tslib_1.__exportStar(require("./get-directive-decorator"), exports);
7
9
  tslib_1.__exportStar(require("./get-input-name"), exports);
8
10
  tslib_1.__exportStar(require("./get-pipe-decorator"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/angular/index.ts"],"names":[],"mappings":";;;AAAA,oEAA0C;AAC1C,iEAAsC;AACtC,oEAA0C;AAC1C,2DAAiC;AACjC,+DAAqC;AACrC,0DAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/angular/index.ts"],"names":[],"mappings":";;;AAAA,iEAAuC;AACvC,oEAA0C;AAC1C,iEAAuC;AACvC,uEAA6C;AAC7C,oEAA0C;AAC1C,2DAAiC;AACjC,+DAAqC;AACrC,0DAAgC"}
@@ -0,0 +1,7 @@
1
+ import { NgDocAsset } from '../interfaces';
2
+ /**
3
+ * Builds an asset from a file.
4
+ *
5
+ * @param filePath - The path to the file.
6
+ */
7
+ export declare function buildFileAsset(filePath: string): NgDocAsset;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildFileAsset = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const builder_1 = require("@ng-doc/builder");
6
+ const fs = tslib_1.__importStar(require("fs"));
7
+ const code_type_from_ext_1 = require("./code-type-from-ext");
8
+ /**
9
+ * Builds an asset from a file.
10
+ *
11
+ * @param filePath - The path to the file.
12
+ */
13
+ function buildFileAsset(filePath) {
14
+ const fileContent = fs.readFileSync(filePath, 'utf8').trim();
15
+ const codeType = (0, code_type_from_ext_1.codeTypeFromExt)(filePath);
16
+ return {
17
+ title: codeType,
18
+ code: fileContent,
19
+ isEmpty: !fileContent,
20
+ filePath: builder_1.GLOBALS.relative(filePath),
21
+ lang: codeType,
22
+ };
23
+ }
24
+ exports.buildFileAsset = buildFileAsset;
25
+ //# sourceMappingURL=build-file-assets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-file-assets.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/build-file-assets.ts"],"names":[],"mappings":";;;;AAAA,6CAAwC;AAExC,+CAAyB;AAGzB,6DAAqD;AAErD;;;;GAIG;AACH,SAAgB,cAAc,CAAC,QAAgB;IAC9C,MAAM,WAAW,GAAW,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;IACrE,MAAM,QAAQ,GAAkB,IAAA,oCAAe,EAAC,QAAQ,CAAC,CAAC;IAE1D,OAAO;QACN,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,CAAC,WAAW;QACrB,QAAQ,EAAE,iBAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;QACpC,IAAI,EAAE,QAAQ;KACd,CAAC;AACH,CAAC;AAXD,wCAWC"}
@@ -6,6 +6,7 @@ const core_1 = require("@ng-doc/core");
6
6
  const esbuild = tslib_1.__importStar(require("esbuild"));
7
7
  const minimatch_1 = require("minimatch");
8
8
  const path = tslib_1.__importStar(require("path"));
9
+ const ts_morph_1 = require("ts-morph");
9
10
  const engine_1 = require("../engine");
10
11
  const typescript_1 = require("./typescript");
11
12
  /**
@@ -25,7 +26,6 @@ function buildFileEntity(sourceFile, tsconfig, outbase) {
25
26
  * Remove `imports`, `providers`, `demos` and `playgrounds` properties from the default export
26
27
  * if the file is a page. This is done to prevent compiling the page dependencies
27
28
  * that are not needed for the NgDoc builder to work or may cause performance issues.
28
- *
29
29
  */
30
30
  if ((0, minimatch_1.minimatch)(p, engine_1.PAGE_PATTERN)) {
31
31
  const objectLiteralExpression = (0, typescript_1.getObjectExpressionFromDefault)(sourceFile);
@@ -37,6 +37,19 @@ function buildFileEntity(sourceFile, tsconfig, outbase) {
37
37
  code = replaceCodeProperty(code, (_d = (_c = objectLiteralExpression.getProperty('providers')) === null || _c === void 0 ? void 0 : _c.getText()) !== null && _d !== void 0 ? _d : '');
38
38
  code = replaceCodeProperty(code, (_f = (_e = objectLiteralExpression.getProperty('demos')) === null || _e === void 0 ? void 0 : _e.getText()) !== null && _f !== void 0 ? _f : '');
39
39
  code = replaceCodeProperty(code, (_h = (_g = objectLiteralExpression.getProperty('playgrounds')) === null || _g === void 0 ? void 0 : _g.getText()) !== null && _h !== void 0 ? _h : '');
40
+ if (objectLiteralExpression.getProperty('route')) {
41
+ const route = objectLiteralExpression.getProperty('route');
42
+ if (ts_morph_1.Node.isPropertyAssignment(route)) {
43
+ const routeValue = route.getInitializer();
44
+ if (ts_morph_1.Node.isObjectLiteralExpression(routeValue)) {
45
+ routeValue.getProperties().forEach((prop) => {
46
+ if (ts_morph_1.Node.isPropertyAssignment(prop) && prop.getName() !== 'path') {
47
+ code = replaceCodeProperty(code, prop.getText());
48
+ }
49
+ });
50
+ }
51
+ }
52
+ }
40
53
  }
41
54
  }
42
55
  yield esbuild.build({
@@ -1 +1 @@
1
- {"version":3,"file":"build-file-entity.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/build-file-entity.ts"],"names":[],"mappings":";;;;AAAA,uCAA0C;AAC1C,yDAAmC;AACnC,yCAAoC;AACpC,mDAA6B;AAG7B,sCAAmD;AACnD,6CAA4D;AAE5D;;;;;;GAMG;AACH,SAAsB,eAAe,CAAC,UAAsB,EAAE,QAAgB,EAAE,OAAe;;;QAC9F,IAAI,IAAI,GAAW,UAAU,CAAC,WAAW,EAAE,CAAC;QAC5C,MAAM,CAAC,GAAW,IA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,EAAE,CAAC;aACb;YACD,QAAQ;YACR,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,KAAK;YACb,WAAW,EAAE,IAAI;YACjB,OAAO;YACP,OAAO,EAAE,OAAO;SAChB,CAAC,CAAC;QAEH,MAAM,UAAU,CAAC,qBAAqB,EAAE,CAAC;QAEzC,OAAO,OAAO,CAAC;;CACf;AA1DD,0CA0DC;AAED;;;;GAIG;AACH,SAAS,mBAAmB,CAAC,IAAY,EAAE,QAAgB;IAC1D,MAAM,KAAK,GAAW,IAAI,MAAM,CAAC,GAAG,IAAA,mBAAY,EAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAEhE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AAChC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { NgDocAsset, NgDocComponentAsset } from '@ng-doc/builder';
2
+ /**
3
+ *
4
+ * @param componentAssets
5
+ */
6
+ export declare function assetsFromComponentAsset(componentAssets: NgDocComponentAsset): NgDocAsset[];
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.assetsFromComponentAsset = void 0;
4
+ /**
5
+ *
6
+ * @param componentAssets
7
+ */
8
+ function assetsFromComponentAsset(componentAssets) {
9
+ return Object.keys(componentAssets)
10
+ .map((key) => componentAssets[key])
11
+ .flat();
12
+ }
13
+ exports.assetsFromComponentAsset = assetsFromComponentAsset;
14
+ //# sourceMappingURL=assets-from-component-asset.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assets-from-component-asset.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/demo/assets-from-component-asset.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACH,SAAgB,wBAAwB,CAAC,eAAoC;IAC5E,OAAO,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC;SACjC,GAAG,CAAC,CAAC,GAAW,EAAE,EAAE,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;SAC1C,IAAI,EAAE,CAAC;AACV,CAAC;AAJD,4DAIC"}
@@ -0,0 +1 @@
1
+ export * from './assets-from-component-asset';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./assets-from-component-asset"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/demo/index.ts"],"names":[],"mappings":";;;AAAA,wEAA8C"}
@@ -1,6 +1,6 @@
1
- import { NgDocBuildOutput } from '../interfaces';
1
+ import { NgDocBuilderOutput } from '../interfaces';
2
2
  /**
3
3
  *
4
4
  * @param {...any} outputs
5
5
  */
6
- export declare function emitBuiltOutput(outputs: NgDocBuildOutput[]): void;
6
+ export declare function emitBuiltOutput(outputs: NgDocBuilderOutput[]): void;
@@ -1 +1 @@
1
- {"version":3,"file":"emit-built-output.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/emit-built-output.ts"],"names":[],"mappings":";;;;AAAA,+CAAyB;AACzB,mDAA6B;AAI7B;;;GAGG;AACH,SAAgB,eAAe,CAAC,OAA2B;IAC1D,OAAO,CAAC,OAAO,CAAC,CAAC,MAAwB,EAAE,EAAE;QAC5C,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC;QAC/D,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;AACJ,CAAC;AALD,0CAKC"}
1
+ {"version":3,"file":"emit-built-output.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/emit-built-output.ts"],"names":[],"mappings":";;;;AAAA,+CAAyB;AACzB,mDAA6B;AAI7B;;;GAGG;AACH,SAAgB,eAAe,CAAC,OAA6B;IAC5D,OAAO,CAAC,OAAO,CAAC,CAAC,MAA0B,EAAE,EAAE;QAC9C,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC;QAC/D,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;AACJ,CAAC;AALD,0CAKC"}
@@ -48,4 +48,4 @@ export declare function isApiScopeEntity(page: InstanceType<Constructable>): pag
48
48
  *
49
49
  * @param page
50
50
  */
51
- export declare function isRouteEntity(page: InstanceType<Constructable>): page is NgDocRouteEntity<unknown>;
51
+ export declare function isRouteEntity(page: InstanceType<Constructable>): page is NgDocRouteEntity;
@@ -4,7 +4,7 @@ exports.extractParameterDocs = exports.extractSeeDocs = exports.extractDocs = vo
4
4
  const tsdoc_1 = require("@microsoft/tsdoc");
5
5
  const core_1 = require("@ng-doc/core");
6
6
  const ts_doc_formatter_1 = require("../engine/ts-doc-formatter");
7
- const marked_1 = require("./marked");
7
+ const markdown_to_html_1 = require("./markdown-to-html");
8
8
  /**
9
9
  *
10
10
  * @param node
@@ -23,7 +23,7 @@ function extractDocs(node, customTag) {
23
23
  : ts_doc_formatter_1.TsDocFormatter.renderDocNode(context.docComment.summarySection);
24
24
  })
25
25
  .join('');
26
- return (0, marked_1.marked)(docs).trim();
26
+ return (0, markdown_to_html_1.markdownToHtml)(docs).trim();
27
27
  }
28
28
  exports.extractDocs = extractDocs;
29
29
  /**
@@ -38,7 +38,7 @@ function extractSeeDocs(node) {
38
38
  const context = parser.parseString(jsDoc.getText());
39
39
  return context.docComment.seeBlocks
40
40
  .map((seeBlock) => ts_doc_formatter_1.TsDocFormatter.renderDocNode(seeBlock))
41
- .map((block) => (0, marked_1.marked)(block));
41
+ .map((block) => (0, markdown_to_html_1.markdownToHtml)(block));
42
42
  })
43
43
  .flat();
44
44
  }
@@ -58,7 +58,7 @@ function extractParameterDocs(node, paramName) {
58
58
  return paramBlock ? ts_doc_formatter_1.TsDocFormatter.renderDocNode(paramBlock.content) : '';
59
59
  })
60
60
  .join('');
61
- return (0, marked_1.marked)(docs).trim();
61
+ return (0, markdown_to_html_1.markdownToHtml)(docs).trim();
62
62
  }
63
63
  exports.extractParameterDocs = extractParameterDocs;
64
64
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"extract-docs.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/extract-docs.ts"],"names":[],"mappings":";;;AAAA,4CAO0B;AAE1B,uCAAqC;AAGrC,iEAA0D;AAC1D,qCAAgC;AAEhC;;;;;;GAMG;AACH,SAAgB,WAAW,CAAC,IAAmB,EAAE,SAAkB;IAClE,MAAM,MAAM,GAAY,IAAA,cAAO,EAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IACrD,MAAM,MAAM,GAAgB,IAAI,mBAAW,CAAC,qBAAqB,EAAE,CAAC,CAAC;IACrE,MAAM,IAAI,GAAW,MAAM;SACzB,GAAG,CAAC,CAAC,GAAU,EAAE,EAAE;QACnB,MAAM,OAAO,GAAkB,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;QAEjE,OAAO,SAAS;YACf,CAAC,CAAC,iCAAc,CAAC,cAAc,CAC7B,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,KAAe,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,KAAK,SAAS,CAAC,CAChG;YACH,CAAC,CAAC,iCAAc,CAAC,aAAa,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC;IACpE,CAAC,CAAC;SACD,IAAI,CAAC,EAAE,CAAC,CAAC;IAEX,OAAO,IAAA,eAAM,EAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;AAC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,GAAG,CAAC,CAAC,GAAU,EAAE,EAAE;QACnB,MAAM,OAAO,GAAkB,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;QACjE,MAAM,UAAU,GAA8B,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC;QAErG,OAAO,UAAU,CAAC,CAAC,CAAC,iCAAc,CAAC,aAAa,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC3E,CAAC,CAAC;SACD,IAAI,CAAC,EAAE,CAAC,CAAC;IAEX,OAAO,IAAA,iCAAc,EAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;AACpC,CAAC;AAbD,oDAaC;AAED;;GAEG;AACH,SAAS,qBAAqB;IAC7B,MAAM,UAAU,GAAyB;QACxC,IAAI,0BAAkB,CAAC,EAAC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,0BAAkB,CAAC,QAAQ,EAAE,aAAa,EAAE,KAAK,EAAC,CAAC;KAC/G,CAAC;IAEF,MAAM,aAAa,GAAuB,IAAI,0BAAkB,EAAE,CAAC;IAEnE,UAAU,CAAC,OAAO,CAAC,CAAC,GAAuB,EAAE,EAAE,CAAC,aAAa,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC;IAErF,OAAO,aAAa,CAAC;AACtB,CAAC"}
@@ -6,4 +6,4 @@ import { NgDocCodeType } from '@ng-doc/core';
6
6
  * @param {NgDocCodeType} codeType Type of code
7
7
  * @returns {string} Formatted code
8
8
  */
9
- export declare function formatCode(code: string, codeType?: NgDocCodeType): string;
9
+ export declare function formatCode(code: string, codeType?: NgDocCodeType | null): string;