@ng-doc/builder 16.13.1 → 16.15.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 (181) hide show
  1. package/browser/index.js +6 -2
  2. package/browser/index.js.map +1 -1
  3. package/engine/actions/demo-pane.action.d.ts +1 -1
  4. package/engine/actions/demo-pane.action.js +1 -1
  5. package/engine/actions/demo-pane.action.js.map +1 -1
  6. package/engine/actions/demo.action.d.ts +1 -1
  7. package/engine/actions/demo.action.js +1 -1
  8. package/engine/actions/demo.action.js.map +1 -1
  9. package/engine/actions/playground.action.d.ts +1 -1
  10. package/engine/actions/playground.action.js +1 -1
  11. package/engine/actions/playground.action.js.map +1 -1
  12. package/engine/actions.js.map +1 -1
  13. package/engine/builder-operators/add-build-candidates.js.map +1 -1
  14. package/engine/builder-operators/build.js.map +1 -1
  15. package/engine/builder-operators/dependency-changes.js.map +1 -1
  16. package/engine/builder-operators/post-build.js.map +1 -1
  17. package/engine/builder-operators/post-process.js.map +1 -1
  18. package/engine/builder-operators/print-output.js +3 -1
  19. package/engine/builder-operators/print-output.js.map +1 -1
  20. package/engine/builder-operators/to-builder-output.js.map +1 -1
  21. package/engine/entities/abstractions/entity.js +3 -1
  22. package/engine/entities/abstractions/entity.js.map +1 -1
  23. package/engine/entities/abstractions/file.entity.js +3 -1
  24. package/engine/entities/abstractions/file.entity.js.map +1 -1
  25. package/engine/entities/abstractions/module.entity.js +1 -1
  26. package/engine/entities/abstractions/route.entity.js +7 -3
  27. package/engine/entities/abstractions/route.entity.js.map +1 -1
  28. package/engine/entities/abstractions/source-file.entity.js +1 -1
  29. package/engine/entities/abstractions/source-file.entity.js.map +1 -1
  30. package/engine/entities/api-list.entity.js +1 -1
  31. package/engine/entities/api-list.entity.js.map +1 -1
  32. package/engine/entities/api-page.entity.js +1 -1
  33. package/engine/entities/cache/cache.js.map +1 -1
  34. package/engine/entities/cache/decorators/cached-entity.js.map +1 -1
  35. package/engine/entities/cache/decorators/cached-files-getter.js.map +1 -1
  36. package/engine/entities/cache/helpers/create-cache.js.map +1 -1
  37. package/engine/entities/cache/helpers/invalidate-cache-if-needed.js.map +1 -1
  38. package/engine/entities/cache/helpers/update-cache.js.map +1 -1
  39. package/engine/entities/context.entity.js.map +1 -1
  40. package/engine/entities/index-file.entity.js.map +1 -1
  41. package/engine/entities/indexes.entity.js.map +1 -1
  42. package/engine/entities/keywords.entity.js.map +1 -1
  43. package/engine/entities/page-playground.entity.js.map +1 -1
  44. package/engine/entities/plugins/entity-plugins/markdown-to-html.plugin.js.map +1 -1
  45. package/engine/entities/plugins/entity-plugins/wrap-code.plugin.js.map +1 -1
  46. package/engine/entities/plugins/helpers/execute-plugins.js.map +1 -1
  47. package/engine/entities/routes.entity.js.map +1 -1
  48. package/engine/entity-emitter.js +2 -2
  49. package/engine/entity-emitter.js.map +1 -1
  50. package/engine/entity-store.js +3 -1
  51. package/engine/entity-store.js.map +1 -1
  52. package/engine/functions/build-candidates.js.map +1 -1
  53. package/engine/functions/if-not-cached-or-invalid.js.map +1 -1
  54. package/engine/nunjucks/extentions/index.extension.js.map +1 -1
  55. package/engine/nunjucks/render-template.js.map +1 -1
  56. package/engine/ts-doc-formatter.js.map +1 -1
  57. package/helpers/angular/get-component-decorator.d.ts +1 -1
  58. package/helpers/angular/get-component-decorator.js +1 -1
  59. package/helpers/angular/get-component-decorator.js.map +1 -1
  60. package/helpers/angular/get-directive-decorator.d.ts +1 -1
  61. package/helpers/angular/get-directive-decorator.js +1 -1
  62. package/helpers/angular/get-directive-decorator.js.map +1 -1
  63. package/helpers/angular/get-input-name.js +3 -1
  64. package/helpers/angular/get-input-name.js.map +1 -1
  65. package/helpers/angular/get-pipe-decorator.d.ts +1 -1
  66. package/helpers/angular/get-pipe-decorator.js +1 -1
  67. package/helpers/angular/get-pipe-decorator.js.map +1 -1
  68. package/helpers/build-indexes.d.ts +1 -1
  69. package/helpers/build-indexes.js +1 -1
  70. package/helpers/emit-built-output.js.map +1 -1
  71. package/helpers/filter-useless-members.js.map +1 -1
  72. package/helpers/format-code.d.ts +1 -1
  73. package/helpers/format-code.js +2 -2
  74. package/helpers/generate-api-entities.js +3 -1
  75. package/helpers/generate-api-entities.js.map +1 -1
  76. package/helpers/get-entity-constructor.js.map +1 -1
  77. package/helpers/get-keyword-type-from-entity.js.map +1 -1
  78. package/helpers/import-fresh-esm.js +2 -1
  79. package/helpers/import-fresh-esm.js.map +1 -1
  80. package/helpers/index.d.ts +1 -1
  81. package/helpers/index.js +1 -1
  82. package/helpers/index.js.map +1 -1
  83. package/helpers/load-config.js +3 -1
  84. package/helpers/load-config.js.map +1 -1
  85. package/helpers/markdown-to-html.js +4 -7
  86. package/helpers/markdown-to-html.js.map +1 -1
  87. package/helpers/playground/get-content-for-playground.js.map +1 -1
  88. package/helpers/playground/get-playground-inputs.js.map +1 -1
  89. package/helpers/playground/get-playground-template-inputs.js.map +1 -1
  90. package/helpers/playground/get-playgrounds-expression.js.map +1 -1
  91. package/helpers/playground/get-template-for-playground.js +2 -1
  92. package/helpers/playground/get-template-for-playground.js.map +1 -1
  93. package/helpers/posix.d.ts +6 -0
  94. package/helpers/posix.js +18 -0
  95. package/helpers/posix.js.map +1 -0
  96. package/helpers/print.js.map +1 -1
  97. package/helpers/process-html.js +1 -1
  98. package/helpers/process-html.js.map +1 -1
  99. package/helpers/process-legacy-snippets.d.ts +1 -1
  100. package/helpers/process-legacy-snippets.js +4 -2
  101. package/helpers/process-legacy-snippets.js.map +1 -1
  102. package/helpers/process-snippets.js.map +1 -1
  103. package/helpers/repo-link.js +3 -3
  104. package/helpers/repo-link.js.map +1 -1
  105. package/helpers/snippets-from-asset.js.map +1 -1
  106. package/helpers/sort-navigation-entities.js.map +1 -1
  107. package/helpers/to-template-string.js +1 -1
  108. package/helpers/to-template-string.js.map +1 -1
  109. package/helpers/typescript/accessor/get-accessor-chain.js.map +1 -1
  110. package/helpers/typescript/accessor/get-interface-accessors.js.map +1 -1
  111. package/helpers/typescript/accessor/group-accessors.js.map +1 -1
  112. package/helpers/typescript/class/for-all-classes.js.map +1 -1
  113. package/helpers/typescript/declaration-import.js +3 -1
  114. package/helpers/typescript/declaration-import.js.map +1 -1
  115. package/helpers/typescript/interface/for-all-interfaces.js.map +1 -1
  116. package/helpers/typescript/interface/get-interface-member.js.map +1 -1
  117. package/helpers/typescript/member/find-member.js.map +1 -1
  118. package/helpers/typescript/member/get-implemented-member.d.ts +1 -1
  119. package/helpers/typescript/member/get-implemented-member.js +1 -1
  120. package/helpers/typescript/member/get-implemented-member.js.map +1 -1
  121. package/helpers/typescript/member/get-overridden-member.d.ts +1 -1
  122. package/helpers/typescript/member/get-overridden-member.js +1 -1
  123. package/helpers/typescript/member/get-overridden-member.js.map +1 -1
  124. package/helpers/typescript/method/get-class-methods.js +2 -1
  125. package/helpers/typescript/method/get-class-methods.js.map +1 -1
  126. package/helpers/typescript/property/get-class-properties.js +2 -1
  127. package/helpers/typescript/property/get-class-properties.js.map +1 -1
  128. package/helpers/typescript/property/get-property-assignment.d.ts +1 -1
  129. package/helpers/typescript/property/get-property-assignment.js +1 -1
  130. package/helpers/typescript/property/get-property-assignment.js.map +1 -1
  131. package/operators/error-handler.js.map +1 -1
  132. package/package.json +3 -3
  133. package/schematics/api/index.js.map +1 -1
  134. package/schematics/category/index.js +5 -3
  135. package/schematics/category/index.js.map +1 -1
  136. package/schematics/migrations/standalone-pages/index.js +2 -1
  137. package/schematics/migrations/standalone-pages/index.js.map +1 -1
  138. package/schematics/page/index.js +9 -4
  139. package/schematics/page/index.js.map +1 -1
  140. package/schematics/utils/find-closest-file.d.ts +1 -1
  141. package/schematics/utils/find-closest-file.js +1 -1
  142. package/schematics/utils/find-closest-file.js.map +1 -1
  143. package/templates/api/base.html.nunj +9 -9
  144. package/templates/api/class.html.nunj +70 -70
  145. package/templates/api/enum.html.nunj +7 -7
  146. package/templates/api/function.html.nunj +11 -11
  147. package/templates/api/interface.html.nunj +30 -30
  148. package/templates/api/type-alias.html.nunj +4 -4
  149. package/templates/api/variable.html.nunj +4 -4
  150. package/templates/api-list.ts.nunj +19 -19
  151. package/templates/api-page-content.html.nunj +7 -7
  152. package/templates/api-page.ts.nunj +23 -23
  153. package/templates/api-scope.ts.nunj +15 -15
  154. package/templates/category.ts.nunj +15 -15
  155. package/templates/context.ts.nunj +31 -31
  156. package/templates/demo-assets.ts.nunj +14 -14
  157. package/templates/helpers/accessor.html.nunj +57 -57
  158. package/templates/helpers/accessors.html.nunj +3 -3
  159. package/templates/helpers/badge.html.nunj +2 -2
  160. package/templates/helpers/code.html.nunj +2 -2
  161. package/templates/helpers/constructor.html.nunj +27 -27
  162. package/templates/helpers/declaration-modifiers.html.nunj +33 -33
  163. package/templates/helpers/decorators.html.nunj +7 -7
  164. package/templates/helpers/members.html.nunj +21 -21
  165. package/templates/helpers/method.html.nunj +54 -54
  166. package/templates/helpers/methods.html.nunj +3 -3
  167. package/templates/helpers/modifier.html.nunj +2 -2
  168. package/templates/helpers/no-content.html.nunj +1 -1
  169. package/templates/helpers/parameters.html.nunj +37 -37
  170. package/templates/helpers/properties.html.nunj +37 -37
  171. package/templates/helpers/tag.html.nunj +2 -2
  172. package/templates/helpers/type.html.nunj +2 -2
  173. package/templates/page.ts.nunj +33 -33
  174. package/templates/parts/page-tags.html.nunj +13 -13
  175. package/templates/parts/see-also.html.nunj +15 -15
  176. package/templates/parts/usage-notes.html.nunj +4 -4
  177. package/templates/playgrounds.ts.nunj +29 -29
  178. package/templates/routing.ts.nunj +6 -6
  179. package/helpers/slash.d.ts +0 -5
  180. package/helpers/slash.js +0 -17
  181. package/helpers/slash.js.map +0 -1
@@ -2,24 +2,24 @@
2
2
  {% import "helpers/decorators.html.nunj" as decoratorsMacro %}
3
3
 
4
4
  <div class="ng-doc-page-tags">
5
- {% set selectors = declaration | extractSelectors %}
6
- {% set declarationType = declaration | getDeclarationType %}
5
+ {% set selectors = declaration | extractSelectors %}
6
+ {% set declarationType = declaration | getDeclarationType %}
7
7
 
8
8
 
9
- {{ tagMacro.render(scope.name, "ng-doc-scope") }}
10
- <span class="ng-doc-inline-delimiter" indexable="false">/</span>
11
- {{ tagMacro.render(declarationType) if declarationType }}
9
+ {{ tagMacro.render(scope.name, "ng-doc-scope") }}
10
+ <span class="ng-doc-inline-delimiter" indexable="false">/</span>
11
+ {{ tagMacro.render(declarationType) if declarationType }}
12
12
 
13
13
 
14
- {%- if declaration.getDecorators and declaration.getDecorators().length %}
15
- <span class="ng-doc-inline-delimiter" indexable="false">/</span>
16
- {{ decoratorsMacro.render(declaration.getDecorators()) }}
17
- {%- endif %}
14
+ {%- if declaration.getDecorators and declaration.getDecorators().length %}
15
+ <span class="ng-doc-inline-delimiter" indexable="false">/</span>
16
+ {{ decoratorsMacro.render(declaration.getDecorators()) }}
17
+ {%- endif %}
18
18
 
19
19
 
20
- {% for selector in selectors %}
21
- <span class="ng-doc-inline-delimiter" indexable="false">/</span>
22
- {{ tagMacro.render(selector, "ng-doc-tag-selector") }}
23
- {%- endfor %}
20
+ {% for selector in selectors %}
21
+ <span class="ng-doc-inline-delimiter" indexable="false">/</span>
22
+ {{ tagMacro.render(selector, "ng-doc-tag-selector") }}
23
+ {%- endfor %}
24
24
  </div>
25
25
 
@@ -1,23 +1,23 @@
1
1
  {%- set seeDocs = docNode | extractSeeDocs %}
2
2
 
3
3
  {% set derivedClasses %}
4
- {%- if declaration.getDerivedClasses %}
5
- {%- set derived = declaration.getDerivedClasses() %}
6
- {%- for cls in derived %}
7
- <li><code>{{ cls.getName() }}</code> (extended)</li>
8
- {%- endfor %}
9
- {%- endif %}
4
+ {%- if declaration.getDerivedClasses %}
5
+ {%- set derived = declaration.getDerivedClasses() %}
6
+ {%- for cls in derived %}
7
+ <li><code>{{ cls.getName() }}</code> (extended)</li>
8
+ {%- endfor %}
9
+ {%- endif %}
10
10
  {% endset %}
11
11
 
12
12
  {%- if seeDocs.length or derivedClasses | trim %}
13
- <section indexable="false">
14
- <h2>See Also</h2>
13
+ <section indexable="false">
14
+ <h2>See Also</h2>
15
15
 
16
- <ul class="ng-doc-see-also">
17
- {{ derivedClasses }}
18
- {%- for see in seeDocs %}
19
- <li>{{ see }}</li>
20
- {%- endfor %}
21
- </ul>
22
- </section>
16
+ <ul class="ng-doc-see-also">
17
+ {{ derivedClasses }}
18
+ {%- for see in seeDocs %}
19
+ <li>{{ see }}</li>
20
+ {%- endfor %}
21
+ </ul>
22
+ </section>
23
23
  {%- endif %}
@@ -1,8 +1,8 @@
1
1
  {%- set usageNotes = docNode | extractDocs('@usageNotes') -%}
2
2
 
3
3
  {% if usageNotes %}
4
- <h2>Usage Notes</h2>
5
- <section>
6
- {{ usageNotes | markdownToHtml }}
7
- </section>
4
+ <h2>Usage Notes</h2>
5
+ <section>
6
+ {{ usageNotes | markdownToHtml }}
7
+ </section>
8
8
  {% endif %}
@@ -1,5 +1,5 @@
1
1
  // @ts-nocheck
2
- import {ChangeDetectionStrategy, Component, NgModule, Type, ViewChild, ViewContainerRef} from '@angular/core';
2
+ import {ChangeDetectionStrategy, Component, Type, ViewChild, ViewContainerRef} from '@angular/core';
3
3
  import {NgDocBasePlayground, providePlaygroundDemo} from '@ng-doc/app';
4
4
  // noinspection ES6UnusedImports
5
5
  import pageEntity from '{{ targetImportPath }}';
@@ -17,49 +17,49 @@ import {CommonModule} from '@angular/common';
17
17
  {%- set components = (components.push(comp), components) %}
18
18
 
19
19
  @Component({
20
- selector: 'ng-doc-playground-{{ index }}',
21
- standalone: true,
22
- template: `
20
+ selector: 'ng-doc-playground-{{ index }}',
21
+ standalone: true,
22
+ template: `
23
23
  {{ template }}
24
24
  `,
25
- imports: [
26
- CommonModule,
27
- {%- if hasImports %}
28
- ...pageEntity.imports,
29
- {%- endif %}
30
- {%- if metadata.standalone %}
31
- pageEntity.playgrounds['{{ id }}'].target,
32
- {%- endif %}
33
- ],
34
- changeDetection: ChangeDetectionStrategy.OnPush,
25
+ imports: [
26
+ CommonModule,
27
+ {%- if hasImports %}
28
+ ...pageEntity.imports,
29
+ {%- endif %}
30
+ {%- if metadata.standalone %}
31
+ pageEntity.playgrounds['{{ id }}'].target,
32
+ {%- endif %}
33
+ ],
34
+ changeDetection: ChangeDetectionStrategy.OnPush,
35
35
  })
36
36
  export class {{ comp.name }} extends NgDocBasePlayground {
37
- static readonly selector: string = '{{ comp.selector }}';
37
+ static readonly selector: string = '{{ comp.selector }}';
38
38
 
39
- @ViewChild(pageEntity.playgrounds['{{ id }}'].target, {static: true})
40
- readonly playground: Type<any>;
39
+ @ViewChild(pageEntity.playgrounds['{{ id }}'].target, {static: true})
40
+ readonly playground: Type<any>;
41
41
 
42
- @ViewChild(pageEntity.playgrounds['{{ id }}'].target, {static: true, read: ViewContainerRef})
43
- readonly viewContainerRef: ViewContainerRef;
42
+ @ViewChild(pageEntity.playgrounds['{{ id }}'].target, {static: true, read: ViewContainerRef})
43
+ readonly viewContainerRef: ViewContainerRef;
44
44
 
45
- readonly configData: any = pageEntity.playgrounds['{{ id }}'].data;
45
+ readonly configData: any = pageEntity.playgrounds['{{ id }}'].data;
46
46
 
47
- constructor() {
48
- super(pageEntity.playgrounds['{{ id }}'].target);
49
- }
47
+ constructor() {
48
+ super(pageEntity.playgrounds['{{ id }}'].target);
49
+ }
50
50
  }
51
51
  {%- set index = index + 1 -%}
52
52
  {%- endfor %}
53
53
  {%- endfor %}
54
54
 
55
55
  export const PLAYGROUND_COMPONENTS = [
56
- {%- for comp in components %}
57
- {{ comp.name }},
58
- {%- endfor %}
56
+ {%- for comp in components %}
57
+ {{ comp.name }},
58
+ {%- endfor %}
59
59
  ];
60
60
 
61
61
  export const PLAYGROUND_PROVIDERS = [
62
- {%- for comp in components %}
63
- providePlaygroundDemo('{{ comp.id }}', {{ comp.name }}),
64
- {%- endfor %}
62
+ {%- for comp in components %}
63
+ providePlaygroundDemo('{{ comp.id }}', {{ comp.name }}),
64
+ {%- endfor %}
65
65
  ];
@@ -2,10 +2,10 @@
2
2
  import {Routes} from '@angular/router';
3
3
 
4
4
  export const NG_DOC_ROUTING: Routes = [
5
- {%- for entity in entities %}
6
- {
7
- path: '{{ entity.route }}',
8
- loadChildren: () => import('{{ entity.moduleImport }}')
9
- },
10
- {%- endfor %}
5
+ {%- for entity in entities %}
6
+ {
7
+ path: '{{ entity.route }}',
8
+ loadChildren: () => import('{{ entity.moduleImport }}')
9
+ },
10
+ {%- endfor %}
11
11
  ];
@@ -1,5 +0,0 @@
1
- /**
2
- *
3
- * @param path
4
- */
5
- export declare function slash(path: string): string;
package/helpers/slash.js DELETED
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.slash = void 0;
4
- /**
5
- *
6
- * @param path
7
- */
8
- function slash(path) {
9
- const isExtendedLengthPath = /^\\\\\?\\/.test(path);
10
- const hasNonAscii = /[^\u0000-\u0080]+/.test(path); // eslint-disable-line no-control-regex
11
- if (isExtendedLengthPath || hasNonAscii) {
12
- return path;
13
- }
14
- return path.replace(/\\/g, '/');
15
- }
16
- exports.slash = slash;
17
- //# sourceMappingURL=slash.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"slash.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/slash.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,SAAgB,KAAK,CAAC,IAAY;IACjC,MAAM,oBAAoB,GAAY,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,MAAM,WAAW,GAAY,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,uCAAuC;IAEpG,IAAI,oBAAoB,IAAI,WAAW,EAAE;QACxC,OAAO,IAAI,CAAC;KACZ;IAED,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AACjC,CAAC;AATD,sBASC"}