@ng-doc/builder 16.14.0 → 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.
- package/browser/index.js +6 -2
- package/browser/index.js.map +1 -1
- package/engine/actions/demo-pane.action.d.ts +1 -1
- package/engine/actions/demo-pane.action.js +1 -1
- package/engine/actions/demo-pane.action.js.map +1 -1
- package/engine/actions/demo.action.d.ts +1 -1
- package/engine/actions/demo.action.js +1 -1
- package/engine/actions/demo.action.js.map +1 -1
- package/engine/actions/playground.action.d.ts +1 -1
- package/engine/actions/playground.action.js +1 -1
- package/engine/actions/playground.action.js.map +1 -1
- package/engine/actions.js.map +1 -1
- package/engine/builder-operators/add-build-candidates.js.map +1 -1
- package/engine/builder-operators/build.js.map +1 -1
- package/engine/builder-operators/dependency-changes.js.map +1 -1
- package/engine/builder-operators/post-build.js.map +1 -1
- package/engine/builder-operators/post-process.js.map +1 -1
- package/engine/builder-operators/print-output.js +3 -1
- package/engine/builder-operators/print-output.js.map +1 -1
- package/engine/builder-operators/to-builder-output.js.map +1 -1
- package/engine/entities/abstractions/entity.js +3 -1
- package/engine/entities/abstractions/entity.js.map +1 -1
- package/engine/entities/abstractions/file.entity.js +3 -1
- package/engine/entities/abstractions/file.entity.js.map +1 -1
- package/engine/entities/cache/cache.js.map +1 -1
- package/engine/entities/cache/decorators/cached-entity.js.map +1 -1
- package/engine/entities/cache/decorators/cached-files-getter.js.map +1 -1
- package/engine/entities/cache/helpers/create-cache.js.map +1 -1
- package/engine/entities/cache/helpers/invalidate-cache-if-needed.js.map +1 -1
- package/engine/entities/cache/helpers/update-cache.js.map +1 -1
- package/engine/entities/context.entity.js.map +1 -1
- package/engine/entities/index-file.entity.js.map +1 -1
- package/engine/entities/indexes.entity.js.map +1 -1
- package/engine/entities/keywords.entity.js.map +1 -1
- package/engine/entities/page-playground.entity.js.map +1 -1
- package/engine/entities/plugins/entity-plugins/markdown-to-html.plugin.js.map +1 -1
- package/engine/entities/plugins/entity-plugins/wrap-code.plugin.js.map +1 -1
- package/engine/entities/plugins/helpers/execute-plugins.js.map +1 -1
- package/engine/entities/routes.entity.js.map +1 -1
- package/engine/entity-emitter.js +2 -2
- package/engine/entity-emitter.js.map +1 -1
- package/engine/entity-store.js +3 -1
- package/engine/entity-store.js.map +1 -1
- package/engine/functions/build-candidates.js.map +1 -1
- package/engine/functions/if-not-cached-or-invalid.js.map +1 -1
- package/engine/nunjucks/extentions/index.extension.js.map +1 -1
- package/engine/nunjucks/render-template.js.map +1 -1
- package/engine/ts-doc-formatter.js.map +1 -1
- package/helpers/angular/get-component-decorator.d.ts +1 -1
- package/helpers/angular/get-component-decorator.js +1 -1
- package/helpers/angular/get-component-decorator.js.map +1 -1
- package/helpers/angular/get-directive-decorator.d.ts +1 -1
- package/helpers/angular/get-directive-decorator.js +1 -1
- package/helpers/angular/get-directive-decorator.js.map +1 -1
- package/helpers/angular/get-input-name.js +3 -1
- package/helpers/angular/get-input-name.js.map +1 -1
- package/helpers/angular/get-pipe-decorator.d.ts +1 -1
- package/helpers/angular/get-pipe-decorator.js +1 -1
- package/helpers/angular/get-pipe-decorator.js.map +1 -1
- package/helpers/build-indexes.d.ts +1 -1
- package/helpers/build-indexes.js +1 -1
- package/helpers/emit-built-output.js.map +1 -1
- package/helpers/filter-useless-members.js.map +1 -1
- package/helpers/format-code.d.ts +1 -1
- package/helpers/format-code.js +2 -2
- package/helpers/generate-api-entities.js +3 -1
- package/helpers/generate-api-entities.js.map +1 -1
- package/helpers/get-entity-constructor.js.map +1 -1
- package/helpers/get-keyword-type-from-entity.js.map +1 -1
- package/helpers/load-config.js +3 -1
- package/helpers/load-config.js.map +1 -1
- package/helpers/markdown-to-html.js +4 -7
- package/helpers/markdown-to-html.js.map +1 -1
- package/helpers/playground/get-content-for-playground.js.map +1 -1
- package/helpers/playground/get-playground-inputs.js.map +1 -1
- package/helpers/playground/get-playground-template-inputs.js.map +1 -1
- package/helpers/playground/get-playgrounds-expression.js.map +1 -1
- package/helpers/playground/get-template-for-playground.js +2 -1
- package/helpers/playground/get-template-for-playground.js.map +1 -1
- package/helpers/print.js.map +1 -1
- package/helpers/process-html.js +1 -1
- package/helpers/process-html.js.map +1 -1
- package/helpers/process-legacy-snippets.d.ts +1 -1
- package/helpers/process-legacy-snippets.js +4 -2
- package/helpers/process-legacy-snippets.js.map +1 -1
- package/helpers/process-snippets.js.map +1 -1
- package/helpers/snippets-from-asset.js.map +1 -1
- package/helpers/sort-navigation-entities.js.map +1 -1
- package/helpers/to-template-string.js +1 -1
- package/helpers/to-template-string.js.map +1 -1
- package/helpers/typescript/accessor/get-accessor-chain.js.map +1 -1
- package/helpers/typescript/accessor/get-interface-accessors.js.map +1 -1
- package/helpers/typescript/accessor/group-accessors.js.map +1 -1
- package/helpers/typescript/class/for-all-classes.js.map +1 -1
- package/helpers/typescript/declaration-import.js +3 -1
- package/helpers/typescript/declaration-import.js.map +1 -1
- package/helpers/typescript/interface/for-all-interfaces.js.map +1 -1
- package/helpers/typescript/interface/get-interface-member.js.map +1 -1
- package/helpers/typescript/member/find-member.js.map +1 -1
- package/helpers/typescript/member/get-implemented-member.d.ts +1 -1
- package/helpers/typescript/member/get-implemented-member.js +1 -1
- package/helpers/typescript/member/get-implemented-member.js.map +1 -1
- package/helpers/typescript/member/get-overridden-member.d.ts +1 -1
- package/helpers/typescript/member/get-overridden-member.js +1 -1
- package/helpers/typescript/member/get-overridden-member.js.map +1 -1
- package/helpers/typescript/method/get-class-methods.js +2 -1
- package/helpers/typescript/method/get-class-methods.js.map +1 -1
- package/helpers/typescript/property/get-class-properties.js +2 -1
- package/helpers/typescript/property/get-class-properties.js.map +1 -1
- package/helpers/typescript/property/get-property-assignment.d.ts +1 -1
- package/helpers/typescript/property/get-property-assignment.js +1 -1
- package/helpers/typescript/property/get-property-assignment.js.map +1 -1
- package/operators/error-handler.js.map +1 -1
- package/package.json +3 -3
- package/schematics/api/index.js.map +1 -1
- package/schematics/migrations/standalone-pages/index.js +2 -1
- package/schematics/migrations/standalone-pages/index.js.map +1 -1
- package/schematics/utils/find-closest-file.d.ts +1 -1
- package/schematics/utils/find-closest-file.js +1 -1
- package/schematics/utils/find-closest-file.js.map +1 -1
- package/templates/api/base.html.nunj +9 -9
- package/templates/api/class.html.nunj +70 -70
- package/templates/api/enum.html.nunj +7 -7
- package/templates/api/function.html.nunj +11 -11
- package/templates/api/interface.html.nunj +30 -30
- package/templates/api/type-alias.html.nunj +4 -4
- package/templates/api/variable.html.nunj +4 -4
- package/templates/api-list.ts.nunj +19 -19
- package/templates/api-page-content.html.nunj +7 -7
- package/templates/api-page.ts.nunj +23 -23
- package/templates/api-scope.ts.nunj +15 -15
- package/templates/category.ts.nunj +15 -15
- package/templates/context.ts.nunj +31 -31
- package/templates/demo-assets.ts.nunj +14 -14
- package/templates/helpers/accessor.html.nunj +57 -57
- package/templates/helpers/accessors.html.nunj +3 -3
- package/templates/helpers/badge.html.nunj +2 -2
- package/templates/helpers/code.html.nunj +2 -2
- package/templates/helpers/constructor.html.nunj +27 -27
- package/templates/helpers/declaration-modifiers.html.nunj +33 -33
- package/templates/helpers/decorators.html.nunj +7 -7
- package/templates/helpers/members.html.nunj +21 -21
- package/templates/helpers/method.html.nunj +54 -54
- package/templates/helpers/methods.html.nunj +3 -3
- package/templates/helpers/modifier.html.nunj +2 -2
- package/templates/helpers/no-content.html.nunj +1 -1
- package/templates/helpers/parameters.html.nunj +37 -37
- package/templates/helpers/properties.html.nunj +37 -37
- package/templates/helpers/tag.html.nunj +2 -2
- package/templates/helpers/type.html.nunj +2 -2
- package/templates/page.ts.nunj +33 -33
- package/templates/parts/page-tags.html.nunj +13 -13
- package/templates/parts/see-also.html.nunj +15 -15
- package/templates/parts/usage-notes.html.nunj +4 -4
- package/templates/playgrounds.ts.nunj +29 -29
- package/templates/routing.ts.nunj +6 -6
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
import {Routes} from "@angular/router";
|
|
3
3
|
|
|
4
4
|
const routes: Routes = [
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
5
|
+
{%- if category.builtChildren.length %}
|
|
6
|
+
{path: '', redirectTo: '{{ category.builtChildren[0].route }}', pathMatch: 'full'},
|
|
7
|
+
{%- endif %}
|
|
8
|
+
{
|
|
9
|
+
path: '',
|
|
10
|
+
title: `{{ category.title | toTemplateString }}`,
|
|
11
|
+
children: [
|
|
12
|
+
{%- for child in category.builtChildren %}
|
|
13
|
+
{
|
|
14
|
+
path: '{{ child.route }}',
|
|
15
|
+
loadChildren: () => import('{{ child.moduleImport }}')
|
|
16
|
+
},
|
|
17
|
+
{%- endfor %}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
20
|
]
|
|
21
21
|
|
|
22
22
|
export default routes;
|
|
@@ -3,35 +3,35 @@ import {Provider} from '@angular/core';
|
|
|
3
3
|
import {NG_DOC_CONTEXT} from '@ng-doc/app/tokens';
|
|
4
4
|
|
|
5
5
|
export function provideNgDocContext(): Provider {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
6
|
+
return {
|
|
7
|
+
provide: NG_DOC_CONTEXT,
|
|
8
|
+
useValue: {
|
|
9
|
+
navigation: [
|
|
10
|
+
{%- macro nav(entity) %}
|
|
11
|
+
{
|
|
12
|
+
title: `{{ entity.title | toTemplateString }}`,
|
|
13
|
+
route: '{{ entity.fullRoute }}',
|
|
14
|
+
{%- if entity.isCategory %}
|
|
15
|
+
expandable: {{ entity.expandable }},
|
|
16
|
+
expanded: {{ entity.expanded }},
|
|
17
|
+
{%- endif %}
|
|
18
|
+
{%- if entity.order %}
|
|
19
|
+
order: {{ entity.order }},
|
|
20
|
+
hidden: {{ "true" if entity.target.hidden else "false" }},
|
|
21
|
+
{%- endif %}
|
|
22
|
+
{%- if entity.isCategory %}
|
|
23
|
+
children: [
|
|
24
|
+
{%- for child in entity.navigationItems | sortNavigationEntities %}
|
|
25
|
+
{{ nav(child) }},
|
|
26
|
+
{%- endfor %}
|
|
27
|
+
]
|
|
28
|
+
{%- endif %}
|
|
29
|
+
}
|
|
30
|
+
{%- endmacro %}
|
|
31
|
+
{%- for entity in entities | sortNavigationEntities %}
|
|
32
|
+
{{ nav(entity) }},
|
|
33
|
+
{%- endfor %}
|
|
34
|
+
],
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
37
|
}
|
|
@@ -4,20 +4,20 @@ import {NgDocDemoAssets} from '@ng-doc/app';
|
|
|
4
4
|
export const demoAssets: NgDocDemoAssets = {
|
|
5
5
|
{%- for demoName, assets in demoAssets %}
|
|
6
6
|
{{ demoName }}: [
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
{%- for asset in assets %}
|
|
8
|
+
{%- if not asset.isEmpty %}
|
|
9
|
+
{
|
|
10
|
+
title: '{{ asset.title }}',
|
|
11
|
+
code: `{{ asset.code | toTemplateString }}`,
|
|
12
|
+
{%- if asset.icon %}
|
|
13
|
+
icon: '{{ asset.icon }}',
|
|
14
|
+
{%- endif %}
|
|
15
|
+
{%- if asset.opened %}
|
|
16
|
+
opened: true,
|
|
17
|
+
{%- endif %}
|
|
18
|
+
},
|
|
19
|
+
{%- endif %}
|
|
20
|
+
{%- endfor %}
|
|
21
21
|
],
|
|
22
22
|
{%- endfor %}
|
|
23
23
|
}
|
|
@@ -7,65 +7,65 @@
|
|
|
7
7
|
{% import "helpers/modifier.html.nunj" as modifierMacro %}
|
|
8
8
|
|
|
9
9
|
{% macro render(accessor, origin) %}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
{% macro renderAccessor(accessor, type, origin) %}
|
|
11
|
+
{% set parameters = accessor.getParameters() %}
|
|
12
|
+
{% set accessorChain = accessor | getAccessorChain %}
|
|
13
|
+
{% set inheritedFrom = accessor | getInheritedParent(origin) %}
|
|
14
|
+
{% set overriddenMember = accessor | getOverriddenMember %}
|
|
15
|
+
{% set implementedMember = accessor | getImplementedMember %}
|
|
16
|
+
{% set docNode = accessorChain | firstNodeWithComment %}
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
18
|
+
<div class="ng-doc-table-wrapper">
|
|
19
|
+
<table class="ng-doc-accessor-table">
|
|
20
|
+
<thead>
|
|
21
|
+
<tr>
|
|
22
|
+
<th indexable="false">
|
|
23
|
+
{{ decoratorsMacro.render(accessor.getDecorators()) if accessor.getDecorators }}
|
|
24
|
+
{{ tagsMacro.render(accessor, 'modifier') }}
|
|
25
|
+
<h3 dataSlug="{{ type + '-' + accessor.getName() }}" dataSlugType="member"
|
|
26
|
+
dataSlugTitle="{{ accessor.getName() }}">
|
|
27
|
+
{{ modifierMacro.render(type) }} {{ accessor.getName() }}
|
|
28
|
+
</h3>
|
|
29
|
+
<div class="ng-doc-node-details">
|
|
30
|
+
{%- if inheritedFrom %}
|
|
31
|
+
inherited from <code>{{ inheritedFrom.getName() }}</code>
|
|
32
|
+
{%- elseif overriddenMember %}
|
|
33
|
+
overrides <code>{{ overriddenMember.getParent().getName() }}</code>
|
|
34
|
+
{%- elseif implementedMember %}
|
|
35
|
+
implements <code>{{ implementedMember.getParent().getName() }}</code>
|
|
36
|
+
{%- endif %}
|
|
37
|
+
</div>
|
|
38
|
+
</th>
|
|
39
|
+
</tr>
|
|
40
|
+
</thead>
|
|
41
|
+
<tbody>
|
|
42
|
+
<tr>
|
|
43
|
+
<td>
|
|
44
|
+
{% set description = docNode | extractDocs %}
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
46
|
+
{{ description if description else noContentMacro.render('No documentation has been provided.') }}
|
|
47
|
+
</td>
|
|
48
|
+
</tr>
|
|
49
|
+
<tr>
|
|
50
|
+
<td indexable="false">
|
|
51
|
+
<h5 class="no-anchor">Presentation</h5>
|
|
52
|
+
{{ codeMacro.render(accessor | accessorPresentation, "typescript", false) }}
|
|
53
|
+
</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr>
|
|
56
|
+
<td indexable="false">
|
|
57
|
+
<h5 class="no-anchor">Type</h5>
|
|
58
|
+
<p>
|
|
59
|
+
{{ typeMacro.type(accessor) }}
|
|
60
|
+
</p>
|
|
61
|
+
</td>
|
|
62
|
+
</tr>
|
|
63
|
+
</tbody>
|
|
64
|
+
</table>
|
|
65
|
+
</div>
|
|
66
|
+
{% endmacro %}
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
{{ renderAccessor(accessor.get, "get", origin) if accessor.get }}
|
|
70
|
+
{{ renderAccessor(accessor.set, "set", origin) if accessor.set }}
|
|
71
71
|
{% endmacro %}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{% import "helpers/accessor.html.nunj" as accessor %}
|
|
2
2
|
|
|
3
3
|
{% macro render(accessors, originalParent) %}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
{%- for a in accessors | groupAccessors %}
|
|
5
|
+
{{ accessor.render(a, originalParent) }}
|
|
6
|
+
{% endfor -%}
|
|
7
7
|
{% endmacro %}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
{%- macro render(content, attributeOverride) -%}
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
<span class="ng-doc-badge" indexable="false"
|
|
3
|
+
data-content="{{ attributeOverride if attributeOverride else content }}">{{ content[0] }}</span>
|
|
4
4
|
{%- endmacro -%}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
{% macro render(code, language = "typescript", copyButton = true) -%}
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
<pre><code lang="{{ language | lower }}"
|
|
3
|
+
class="language-{{ language | lower }}">{{ code | escape }}</code></pre>
|
|
4
4
|
{%- endmacro %}
|
|
@@ -3,32 +3,32 @@
|
|
|
3
3
|
{% import "helpers/no-content.html.nunj" as noContentMacro %}
|
|
4
4
|
|
|
5
5
|
{% macro render(constructor) %}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
{% set parameters = constructor.getParameters() %}
|
|
7
|
+
<div class="ng-doc-table-wrapper">
|
|
8
|
+
<table class="ng-doc-method-table">
|
|
9
|
+
<tbody>
|
|
10
|
+
<tr>
|
|
11
|
+
<td>
|
|
12
|
+
{% set description = constructor | extractDocs %}
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
14
|
+
{{ description if description else noContentMacro.render('No documentation has been provided.') }}
|
|
15
|
+
</td>
|
|
16
|
+
</tr>
|
|
17
|
+
<tr>
|
|
18
|
+
<td>
|
|
19
|
+
<h5 class="no-anchor" indexable="false">Presentation</h5>
|
|
20
|
+
{{ codeMacro.render(constructor | constructorPresentation, "typescript", false) }}
|
|
21
|
+
</td>
|
|
22
|
+
</tr>
|
|
23
|
+
<tr>
|
|
24
|
+
<td>
|
|
25
|
+
{%- if parameters.length %}
|
|
26
|
+
<h5 class="no-anchor" indexable="false">Parameters</h5>
|
|
27
|
+
{{ parametersMacro.render(parameters, constructor, true) }}
|
|
28
|
+
{%- endif %}
|
|
29
|
+
</td>
|
|
30
|
+
</tr>
|
|
31
|
+
</tbody>
|
|
32
|
+
</table>
|
|
33
|
+
</div>
|
|
34
34
|
{% endmacro %}
|
|
@@ -3,43 +3,43 @@
|
|
|
3
3
|
{% import "helpers/modifier.html.nunj" as modifierMacro %}
|
|
4
4
|
|
|
5
5
|
{%- macro render(declaration, type='tag') -%}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
{% set isAbstract = declaration.isAbstract and declaration.isAbstract() %}
|
|
7
|
+
{% set isStatic = declaration.isStatic and declaration.isStatic() %}
|
|
8
|
+
{% set isAsync = declaration.isAsync and declaration.isAsync() %}
|
|
9
|
+
{% set isReadonly = declaration.isReadonly and declaration.isReadonly() %}
|
|
10
|
+
{% set isProtected = declaration.getScope and declaration.getScope() == 'protected' %}
|
|
11
|
+
{% set tooltip = ["Protected" if isProtected, "Abstract" if isAbstract, 'Static' if isStatic, 'Async' if isAsync, 'Readonly' if isReadonly] | noEmpty | join(', ') %}
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
{%- if type == 'badge' %}
|
|
14
|
+
{%- if isAbstract or isStatic or isAsync or isReadonly or isProtected %}
|
|
15
|
+
<span class="ng-doc-badge-wrapper" ngDocTooltip="{{ tooltip }}" indexable="false">
|
|
16
16
|
{{ badgeMacro.render("protected") if isProtected }}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
{{ badgeMacro.render("abstract") if isAbstract }}
|
|
18
|
+
{{ badgeMacro.render("static") if isStatic }}
|
|
19
|
+
{{ badgeMacro.render("async") if isAsync }}
|
|
20
|
+
{{ badgeMacro.render("readonly") if isReadonly }}
|
|
21
21
|
</span>
|
|
22
|
-
|
|
22
|
+
{%- endif %}
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
24
|
+
{%- elseif type == 'modifier' %}
|
|
25
|
+
{%- if isAbstract or isStatic or isAsync or isReadonly or isProtected %}
|
|
26
|
+
<div class="ng-doc-modifiers-wrapper" indexable="false">
|
|
27
|
+
{{ modifierMacro.render("protected") if isProtected }}
|
|
28
|
+
{{ modifierMacro.render("abstract") if isAbstract }}
|
|
29
|
+
{{ modifierMacro.render("static") if isStatic }}
|
|
30
|
+
{{ modifierMacro.render("async") if isAsync }}
|
|
31
|
+
{{ modifierMacro.render("readonly") if isReadonly }}
|
|
32
|
+
</div>
|
|
33
|
+
{%- endif %}
|
|
34
|
+
{%- else %}
|
|
35
|
+
{%- if isAbstract or isStatic or isAsync or isReadonly or isProtected %}
|
|
36
|
+
<span class="ng-doc-tags-wrapper" indexable="false">
|
|
37
37
|
{{ tagMacro.render("protected") if isProtected }}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
{{ tagMacro.render("abstract") if isAbstract }}
|
|
39
|
+
{{ tagMacro.render("static") if isStatic }}
|
|
40
|
+
{{ tagMacro.render("async") if isAsync }}
|
|
41
|
+
{{ tagMacro.render("readonly") if isReadonly }}
|
|
42
42
|
</span>
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
{%- endif %}
|
|
44
|
+
{%- endif %}
|
|
45
45
|
{%- endmacro -%}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{% import "helpers/tag.html.nunj" as tagMacro %}
|
|
2
2
|
|
|
3
3
|
{% macro render(decorators, column) %}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
{% if decorators.length %}
|
|
5
|
+
<div class="ng-doc-decorators-group {{ 'column' if column }}" indexable="false">
|
|
6
|
+
{% for decorator in decorators %}
|
|
7
|
+
<code>{{ '@' + decorator.getName() | escape }}</code>
|
|
8
|
+
{%- endfor %}
|
|
9
|
+
</div>
|
|
10
|
+
{% endif %}
|
|
11
11
|
{% endmacro %}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{% macro render(members) %}
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
2
|
+
<div class="ng-doc-table-wrapper">
|
|
3
|
+
<table>
|
|
4
|
+
<thead>
|
|
5
|
+
<tr indexable="false">
|
|
6
|
+
<th>Name</th>
|
|
7
|
+
<th>Value</th>
|
|
8
|
+
<th>Description</th>
|
|
9
|
+
</tr>
|
|
10
|
+
</thead>
|
|
11
|
+
<tbody>
|
|
12
|
+
{% for member in members %}
|
|
13
|
+
<tr>
|
|
14
|
+
<td indexable="false" dataSlug="{{ member.getName() }}"
|
|
15
|
+
dataSlugType="member">{{ member.getName() }} </td>
|
|
16
|
+
<td indexable="false"><code>{{ member.getValue() | dump }}</code></td>
|
|
17
|
+
<td>{{ member | extractDocs }} </td>
|
|
18
|
+
</tr>
|
|
19
|
+
{% endfor %}
|
|
20
|
+
</tbody>
|
|
21
|
+
</table>
|
|
22
|
+
</div>
|
|
23
23
|
{% endmacro %}
|
|
@@ -6,60 +6,60 @@
|
|
|
6
6
|
{% import "helpers/no-content.html.nunj" as noContentMacro %}
|
|
7
7
|
|
|
8
8
|
{% macro render(method, origin) %}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
{% set parameters = method.getParameters() %}
|
|
10
|
+
{% set methodChain = method | getMethodChain %}
|
|
11
|
+
{% set inheritedFrom = method | getInheritedParent(origin) %}
|
|
12
|
+
{% set overriddenMember = method | getOverriddenMember %}
|
|
13
|
+
{% set implementedMember = method | getImplementedMember %}
|
|
14
|
+
{% set docNode = methodChain | firstNodeWithComment %}
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
16
|
+
<div class="ng-doc-table-wrapper">
|
|
17
|
+
<table class="ng-doc-method-table">
|
|
18
|
+
<thead>
|
|
19
|
+
<tr>
|
|
20
|
+
<th indexable="false">
|
|
21
|
+
{{ decoratorsMacro.render(method.getDecorators()) if method.getDecorators }}
|
|
22
|
+
{{ tagsMacro.render(method, 'modifier') }}
|
|
23
|
+
<h3 dataSlugType="member">{{ method.getName() }}()</h3>
|
|
24
|
+
<div class="ng-doc-node-details">
|
|
25
|
+
{%- if inheritedFrom %}
|
|
26
|
+
inherited from <code>{{ inheritedFrom.getName() }}</code>
|
|
27
|
+
{%- elseif overriddenMember %}
|
|
28
|
+
overrides <code>{{ (overriddenMember | getMemberParent).getName() }}</code>
|
|
29
|
+
{%- elseif implementedMember %}
|
|
30
|
+
implements <code>{{ (implementedMember | getMemberParent).getName() }}</code>
|
|
31
|
+
{%- endif %}
|
|
32
|
+
</div>
|
|
33
|
+
</th>
|
|
34
|
+
</tr>
|
|
35
|
+
</thead>
|
|
36
|
+
<tbody>
|
|
37
|
+
<tr>
|
|
38
|
+
<td>
|
|
39
|
+
{% set description = docNode | extractDocs %}
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
41
|
+
{{ description if description else noContentMacro.render('No documentation has been provided.') }}
|
|
42
|
+
</td>
|
|
43
|
+
</tr>
|
|
44
|
+
<tr>
|
|
45
|
+
<td>
|
|
46
|
+
<h5 class="no-anchor" indexable="false">Presentation</h5>
|
|
47
|
+
{{ codeMacro.render(method | methodPresentation, "typescript", false) }}
|
|
48
|
+
</td>
|
|
49
|
+
</tr>
|
|
50
|
+
<tr>
|
|
51
|
+
<td>
|
|
52
|
+
{%- if parameters.length %}
|
|
53
|
+
<h5 class="no-anchor" indexable="false">Parameters</h5>
|
|
54
|
+
{{ parametersMacro.render(parameters, docNode) }}
|
|
55
|
+
{%- endif %}
|
|
56
|
+
<h5 class="no-anchor" indexable="false">Returns</h5>
|
|
57
|
+
<p>
|
|
58
|
+
{{ typeMacro.returnType(method) }}
|
|
59
|
+
</p>
|
|
60
|
+
</td>
|
|
61
|
+
</tr>
|
|
62
|
+
</tbody>
|
|
63
|
+
</table>
|
|
64
|
+
</div>
|
|
65
65
|
{% endmacro %}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{% import "helpers/method.html.nunj" as method %}
|
|
2
2
|
|
|
3
3
|
{% macro render(methods, originalParent) %}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
{%- for m in methods %}
|
|
5
|
+
{{ method.render(m, originalParent) }}
|
|
6
|
+
{% endfor -%}
|
|
7
7
|
{% endmacro %}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
{%- macro render(content, attributeOverride) -%}
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
<span class="ng-doc-modifier" indexable="false"
|
|
3
|
+
data-content="{{ attributeOverride if attributeOverride else content }}">{{ content }}</span>
|
|
4
4
|
{%- endmacro -%}
|