@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-property-assignment.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/property/get-property-assignment.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"get-property-assignment.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/property/get-property-assignment.ts"],"names":[],"mappings":";;;AAAA,uCAA0D;AAE1D;;;;;GAKG;AACH,SAAgB,qBAAqB,CAAC,wBAAmD;;IACxF,OAAO,eAAI,CAAC,oBAAoB,CAAC,wBAAwB,CAAC;QACzD,CAAC,CAAC,MAAA,MAAA,wBAAwB,aAAxB,wBAAwB,uBAAxB,wBAAwB,CAAE,cAAc,EAAE,0CAAE,OAAO,EAAE,mCAAI,EAAE;QAC7D,CAAC,CAAC,EAAE,CAAC;AACP,CAAC;AAJD,sDAIC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-handler.js","sourceRoot":"","sources":["../../../../libs/builder/operators/error-handler.ts"],"names":[],"mappings":";;;AAAA,+
|
|
1
|
+
{"version":3,"file":"error-handler.js","sourceRoot":"","sources":["../../../../libs/builder/operators/error-handler.ts"],"names":[],"mappings":";;;AAAA,+BAAwD;AACxD,8CAA4C;AAE5C,wCAAwC;AAExC;;;;;GAKG;AACH,SAAgB,YAAY,CAC3B,WAAmB,EACnB,KAAe;IAEf,OAAO,CAAC,MAAqB,EAAE,EAAE;QAChC,OAAO,MAAM,CAAC,IAAI,CACjB,IAAA,sBAAU,EAAC,CAAC,KAAY,EAAE,EAAE;YAC3B,KAAK,IAAI,IAAA,oBAAU,EAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;YAEnC,OAAO,IAAA,SAAE,EAAC,WAAW,CAAC,CAAC;QACxB,CAAC,CAAC,CACF,CAAC;IACH,CAAC,CAAC;AACH,CAAC;AAbD,oCAaC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-doc/builder",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.15.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"builders": "./builders.json",
|
|
6
6
|
"schematics": "./schematics/collection.json",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@ng-doc/core": "16.
|
|
9
|
-
"@ng-doc/utils": "16.
|
|
8
|
+
"@ng-doc/core": "16.15.0",
|
|
9
|
+
"@ng-doc/utils": "16.15.0",
|
|
10
10
|
"@angular-devkit/architect": ">=0.1600.0",
|
|
11
11
|
"@angular-devkit/build-angular": ">=16.0.0",
|
|
12
12
|
"chokidar": "3.5.3",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/schematics/api/index.ts"],"names":[],"mappings":";;;AAAA,2DAYoC;AAIpC;;;;;GAKG;AACH,SAAgB,QAAQ,CAAC,OAA4B;IACpD,OAAO,CAAC,IAAU,EAAE,EAAE;;QACrB,MAAM,QAAQ,GAAW,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,mCAAI,EAAE,CAAC;QAE7C,OAAO,IAAA,kBAAK,EAAC;YACZ,IAAA,sBAAS,EACR,IAAA,kBAAK,EAAC,IAAA,gBAAG,EAAC,SAAS,CAAC,EAAE;gBACrB,IAAA,2BAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/schematics/api/index.ts"],"names":[],"mappings":";;;AAAA,2DAYoC;AAIpC;;;;;GAKG;AACH,SAAgB,QAAQ,CAAC,OAA4B;IACpD,OAAO,CAAC,IAAU,EAAE,EAAE;;QACrB,MAAM,QAAQ,GAAW,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,mCAAI,EAAE,CAAC;QAE7C,OAAO,IAAA,kBAAK,EAAC;YACZ,IAAA,sBAAS,EACR,IAAA,kBAAK,EAAC,IAAA,gBAAG,EAAC,SAAS,CAAC,EAAE;gBACrB,IAAA,2BAAc,oBAAM,OAAO,EAAG;gBAC9B,IAAA,iBAAI,EAAC,QAAQ,CAAC;gBACd,IAAA,oBAAO,EAAC,CAAC,SAAoB,EAAE,EAAE;oBAChC,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;wBAChC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;qBAClD;oBACD,OAAO,SAAS,CAAC;gBAClB,CAAC,CAAC;aACF,CAAC,EACF,0BAAa,CAAC,SAAS,CACvB;SACD,CAAC,CAAC;IACJ,CAAC,CAAC;AACH,CAAC;AApBD,4BAoBC"}
|
|
@@ -38,7 +38,8 @@ exports.migrate = migrate;
|
|
|
38
38
|
*/
|
|
39
39
|
function getObjectExpressionFromDefault(sourceFile) {
|
|
40
40
|
var _a, _b;
|
|
41
|
-
const defaultExport = (_b = (_a = sourceFile
|
|
41
|
+
const defaultExport = (_b = (_a = sourceFile
|
|
42
|
+
.getExportedDeclarations()) === null || _a === void 0 ? void 0 : _a.get('default')) === null || _b === void 0 ? void 0 : _b[0];
|
|
42
43
|
if (ng_morph_1.Node.isVariableDeclaration(defaultExport)) {
|
|
43
44
|
return defaultExport === null || defaultExport === void 0 ? void 0 : defaultExport.getFirstChildByKindOrThrow(ng_morph_1.SyntaxKind.ObjectLiteralExpression);
|
|
44
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/builder/schematics/migrations/standalone-pages/index.ts"],"names":[],"mappings":";;;;AACA,uCAakB;AAClB,mDAA6B;AAI7B;;;;GAIG;AACH,SAAgB,OAAO,CAAC,OAAmC;IAC1D,OAAO,CAAC,IAAU,EAAE,EAAE;QACrB,IAAA,2BAAgB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/builder/schematics/migrations/standalone-pages/index.ts"],"names":[],"mappings":";;;;AACA,uCAakB;AAClB,mDAA6B;AAI7B;;;;GAIG;AACH,SAAgB,OAAO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AAC,CAAC,iBAAoC,EAAE,EAAE;gBAChD,OAAO,CACN,iBAAiB,CAAC,eAAe,EAAE,CAAC,MAAM,CAAC,CAAC,eAAgC,EAAE,EAAE;oBAC/E,OAAO,CACN,eAAe;yBACb,WAAW,EAAE;yBACb,qBAAqB,EAAE;yBACvB,MAAM,CAAC,CAAC,IAAU,EAAE,EAAE;wBACtB,OAAO,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;oBAClC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CACd,CAAC;gBACH,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CACb,CAAC;YACH,CAAC,CAAC;iBACD,IAAI,EAAE,CAAC;YAET,WAAW;iBACT,aAAa,EAAE;iBACf,qBAAqB,CACrB,OAAO,CAAC,GAAG,CAAC,CAAC,iBAAoC,EAAE,EAAE,CAAC,iBAAiB,CAAC,YAAY,EAAE,CAAC,CACvF,CAAC;SACH;KACD;AACF,CAAC;AAED;;;;GAIG;AACH,SAAS,SAAS,CAAC,IAAU,EAAE,MAAY;IAC1C,IAAI,IAAI,KAAK,MAAM,EAAE;QACpB,OAAO,IAAI,CAAC;KACZ;IAED,MAAM,CAAC,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;IAE3B,IAAI,CAAC,EAAE;QACN,OAAO,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;KAC5B;IAED,OAAO,KAAK,CAAC;AACd,CAAC"}
|
|
@@ -4,7 +4,7 @@ exports.findClosestFile = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const path = tslib_1.__importStar(require("path"));
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Finds the closest file in the given path.
|
|
8
8
|
*
|
|
9
9
|
* @param tree
|
|
10
10
|
* @param {string} currentFolder The current folder to search in.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-closest-file.js","sourceRoot":"","sources":["../../../../../libs/builder/schematics/utils/find-closest-file.ts"],"names":[],"mappings":";;;;AACA,mDAA6B;AAE7B;;;;;;;GAOG;AACH,SAAgB,eAAe,
|
|
1
|
+
{"version":3,"file":"find-closest-file.js","sourceRoot":"","sources":["../../../../../libs/builder/schematics/utils/find-closest-file.ts"],"names":[],"mappings":";;;;AACA,mDAA6B;AAE7B;;;;;;;GAOG;AACH,SAAgB,eAAe,CAC9B,IAAU,EACV,aAAqB,EACrB,QAAgB;IAEhB,MAAM,WAAW,GAAW,aAAa,CAAC;IAC1C,MAAM,QAAQ,GAAW,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IAE1D,IAAI,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;QACvB,OAAO,QAAQ,CAAC;KAChB;IAED,MAAM,UAAU,GAAW,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAErD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;QACxC,OAAO,IAAI,CAAC;KACZ;IAED,OAAO,eAAe,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;AACpD,CAAC;AAnBD,0CAmBC"}
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
{% set description = docNode | extractDocs %}
|
|
5
5
|
|
|
6
6
|
<header>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
{% include "parts/page-tags.html.nunj" %}
|
|
8
|
+
{% block modifier %}{% endblock %}
|
|
9
|
+
<h1>{{ declaration.getName() }}</h1>
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
{% if not description %}
|
|
12
|
+
<!-- This is a hack to make the declaration name available to the search index. -->
|
|
13
|
+
<div style="display: none">%%API_NAME_ANCHOR%%</div>
|
|
14
|
+
{% endif %}
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
{% block details %}{% endblock %}
|
|
17
17
|
</header>
|
|
18
18
|
|
|
19
19
|
<section>
|
|
20
|
-
|
|
20
|
+
{{ description if description else noContentMacro.render('No documentation has been provided.') }}
|
|
21
21
|
</section>
|
|
22
22
|
|
|
23
23
|
{% include "parts/see-also.html.nunj" %}
|
|
@@ -8,89 +8,89 @@
|
|
|
8
8
|
{% import "helpers/modifier.html.nunj" as modifierMacro %}
|
|
9
9
|
|
|
10
10
|
{% block modifier %}
|
|
11
|
-
|
|
11
|
+
{{ modifierMacro.render('abstract') if declaration.isAbstract() }}
|
|
12
12
|
{% endblock %}
|
|
13
13
|
|
|
14
14
|
{% block details %}
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
{% set extends = declaration.getExtends() %}
|
|
16
|
+
{% set implements = declaration.getImplements() %}
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
18
|
+
{% if extends or implements.length %}
|
|
19
|
+
<div class="ng-doc-header-details" indexable="false">
|
|
20
|
+
{% if extends %}
|
|
21
|
+
<span class="ng-doc-header-details-label">Extends</span>
|
|
22
|
+
{{ typeMacro.type(extends) }}
|
|
23
|
+
{%- endif %}
|
|
24
|
+
{% if implements.length %}
|
|
25
|
+
<span class="ng-doc-header-details-label">Implements</span>
|
|
26
|
+
{%- for i in implements -%}
|
|
27
|
+
{{ typeMacro.type(i) }}
|
|
28
|
+
{%- endfor %}
|
|
29
|
+
{%- endif %}
|
|
30
|
+
</div>
|
|
31
|
+
{% endif %}
|
|
32
32
|
{% endblock %}
|
|
33
33
|
|
|
34
34
|
{% block overview %}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
{%- set constructors = declaration.getConstructors() | filterByScope("public") -%}
|
|
36
|
+
{%- set allProperties = declaration | getClassProperties | filterByScope(["public", "protected"]) | filterUselessMembers | sortByNodesName -%}
|
|
37
|
+
{%- set allMethods = declaration | getClassMethods | filterByScope(["public", "protected"]) | filterUselessMembers | sortByNodesName -%}
|
|
38
|
+
{%- set allAccessors = declaration | getClassAccessors | filterByScope(["public", "protected"]) | filterUselessMembers | sortByNodesName -%}
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
{%- set staticProperties = allProperties | filterByStatic(true) -%}
|
|
41
|
+
{%- set staticAccessors = allAccessors | filterByStatic(true) -%}
|
|
42
|
+
{%- set staticMethods = allMethods | filterByStatic(true) -%}
|
|
43
|
+
{%- set properties = allProperties | filterByStatic(false) -%}
|
|
44
|
+
{%- set accessors = allAccessors | filterByStatic(false) -%}
|
|
45
|
+
{%- set getAccessors = declaration.getGetAccessors() | filterByStatic(false) -%}
|
|
46
|
+
{%- set methods = allMethods | filterByStatic(false) -%}
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
48
|
+
{% if constructors.length -%}
|
|
49
|
+
<section>
|
|
50
|
+
<h2>Constructor</h2>
|
|
51
|
+
{{ constructorMacro.render(constructors[0]) }}
|
|
52
|
+
</section>
|
|
53
|
+
{%- endif %}
|
|
54
54
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
{% if staticProperties.length -%}
|
|
56
|
+
<section>
|
|
57
|
+
<h2>Static Properties</h2>
|
|
58
|
+
{{ propertiesMacro.render(staticProperties, declaration) }}
|
|
59
|
+
</section>
|
|
60
|
+
{%- endif %}
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
{% if properties.length -%}
|
|
63
|
+
<section>
|
|
64
|
+
<h2>Properties</h2>
|
|
65
|
+
{{ propertiesMacro.render(properties, declaration) }}
|
|
66
|
+
</section>
|
|
67
|
+
{%- endif %}
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
69
|
+
{% if staticAccessors.length -%}
|
|
70
|
+
<section>
|
|
71
|
+
<h2>Static Accessors</h2>
|
|
72
|
+
{{ accessorsMacro.render(staticAccessors, declaration) }}
|
|
73
|
+
</section>
|
|
74
|
+
{%- endif %}
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
76
|
+
{% if accessors.length -%}
|
|
77
|
+
<section>
|
|
78
|
+
<h2>Accessors</h2>
|
|
79
|
+
{{ accessorsMacro.render(accessors, declaration) }}
|
|
80
|
+
</section>
|
|
81
|
+
{%- endif %}
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
83
|
+
{% if staticMethods.length -%}
|
|
84
|
+
<section>
|
|
85
|
+
<h2>Static Methods</h2>
|
|
86
|
+
{{ methodsMacro.render(staticMethods, declaration) }}
|
|
87
|
+
</section>
|
|
88
|
+
{%- endif %}
|
|
89
89
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
90
|
+
{% if methods.length -%}
|
|
91
|
+
<section>
|
|
92
|
+
<h2>Methods</h2>
|
|
93
|
+
{{ methodsMacro.render(methods, declaration) }}
|
|
94
|
+
</section>
|
|
95
|
+
{%- endif %}
|
|
96
96
|
{% endblock %}
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
{% import "helpers/members.html.nunj" as membersMacro %}
|
|
4
4
|
|
|
5
5
|
{% block overview %}
|
|
6
|
-
|
|
6
|
+
{%- set members = declaration.getMembers() -%}
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
{% if members.length -%}
|
|
9
|
+
<section>
|
|
10
|
+
<h2>Members</h2>
|
|
11
|
+
{{ membersMacro.render(members) }}
|
|
12
|
+
</section>
|
|
13
|
+
{%- endif %}
|
|
14
14
|
{% endblock %}
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
{% import "helpers/parameters.html.nunj" as parametersMacro %}
|
|
5
5
|
|
|
6
6
|
{% block overview %}
|
|
7
|
-
|
|
7
|
+
{%- set parameters = declaration.getParameters() -%}
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
<section>
|
|
10
|
+
<h2>Presentation</h2>
|
|
11
|
+
{{ codeMacro.render(declaration | functionPresentation, "typescript", false) }}
|
|
12
|
+
</section>
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
{% if parameters.length -%}
|
|
15
|
+
<section>
|
|
16
|
+
<h2>Parameters</h2>
|
|
17
|
+
{{ parametersMacro.render(parameters, declaration) }}
|
|
18
|
+
</section>
|
|
19
|
+
{%- endif %}
|
|
20
20
|
{% endblock %}
|
|
@@ -6,41 +6,41 @@
|
|
|
6
6
|
{% import "helpers/accessors.html.nunj" as accessorsMacro %}
|
|
7
7
|
|
|
8
8
|
{% block details %}
|
|
9
|
-
|
|
9
|
+
{%- set extends = declaration.getExtends() -%}
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
{% if extends.length %}
|
|
12
|
+
<div class="ng-doc-header-details" indexable="false">
|
|
13
|
+
<span class="ng-doc-header-details-label">Extends</span>
|
|
14
|
+
{%- for i in extends -%}
|
|
15
|
+
{{ typeMacro.type(i) }}
|
|
16
|
+
{%- endfor %}
|
|
17
|
+
</div>
|
|
18
|
+
{% endif %}
|
|
19
19
|
{% endblock %}
|
|
20
20
|
|
|
21
21
|
{% block overview %}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
{%- set properties = declaration | getInterfaceProperties | filterUselessMembers | sortByNodesName -%}
|
|
23
|
+
{%- set methods = declaration | getInterfaceMethods | filterUselessMembers | sortByNodesName -%}
|
|
24
|
+
{%- set accessors = declaration | getInterfaceAccessors | filterUselessMembers | sortByNodesName -%}
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
{% if properties.length -%}
|
|
27
|
+
<section>
|
|
28
|
+
<h2>Properties</h2>
|
|
29
|
+
{{ propertiesMacro.render(properties, declaration) }}
|
|
30
|
+
</section>
|
|
31
|
+
{%- endif %}
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
{% if accessors.length -%}
|
|
34
|
+
<section>
|
|
35
|
+
<h2>Accessors</h2>
|
|
36
|
+
{{ accessorsMacro.render(accessors, declaration) }}
|
|
37
|
+
</section>
|
|
38
|
+
{%- endif %}
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
{% if methods.length -%}
|
|
41
|
+
<section>
|
|
42
|
+
<h2>Methods</h2>
|
|
43
|
+
{{ methodsMacro.render(methods, declaration) }}
|
|
44
|
+
</section>
|
|
45
|
+
{%- endif %}
|
|
46
46
|
{% endblock %}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
{% import "helpers/code.html.nunj" as codeMacro %}
|
|
4
4
|
|
|
5
5
|
{% block overview %}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
<section>
|
|
7
|
+
<h2>Presentation</h2>
|
|
8
|
+
{{ codeMacro.render(declaration | typeAliasPresentation, "typescript", false) }}
|
|
9
|
+
</section>
|
|
10
10
|
{% endblock %}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
{% import "helpers/code.html.nunj" as codeMacro %}
|
|
4
4
|
|
|
5
5
|
{% block overview %}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
<section>
|
|
7
|
+
<h2>Presentation</h2>
|
|
8
|
+
{{ codeMacro.render(declaration | variablePresentation, "typescript", false) }}
|
|
9
|
+
</section>
|
|
10
10
|
{% endblock %}
|
|
@@ -5,30 +5,30 @@ import {NG_DOC_API_LIST_TOKEN, NgDocApiListComponent} from '@ng-doc/app';
|
|
|
5
5
|
import apiList from './ng-doc.api-list.json';
|
|
6
6
|
|
|
7
7
|
@Component({
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
selector: 'ng-doc-api-list-page-{{ api.route | kebabCase }}',
|
|
9
|
+
standalone: true,
|
|
10
|
+
template: `<ng-doc-api-list></ng-doc-api-list>`,
|
|
11
|
+
imports: [NgDocApiListComponent],
|
|
12
|
+
providers: [{
|
|
13
|
+
provide: NG_DOC_API_LIST_TOKEN,
|
|
14
|
+
useValue: apiList
|
|
15
|
+
}],
|
|
16
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
17
17
|
})
|
|
18
18
|
export class DynamicComponent {
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
const routes: Routes = [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
{
|
|
23
|
+
path: '',
|
|
24
|
+
component: DynamicComponent,
|
|
25
|
+
},
|
|
26
|
+
{%- for scope in api.builtChildren %}
|
|
27
|
+
{
|
|
28
|
+
path: '{{ scope.route }}',
|
|
29
|
+
loadChildren: () => import('{{ scope.moduleImport }}')
|
|
30
|
+
},
|
|
31
|
+
{%- endfor %}
|
|
32
32
|
]
|
|
33
33
|
|
|
34
34
|
export default routes;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{% set docNode = declaration %}
|
|
2
2
|
{% if Node.isClassDeclaration(declaration) -%}
|
|
3
|
-
|
|
3
|
+
{% include "api/class.html.nunj" %}
|
|
4
4
|
{%- elseif Node.isInterfaceDeclaration(declaration) -%}
|
|
5
|
-
|
|
5
|
+
{% include "api/interface.html.nunj" %}
|
|
6
6
|
{%- elseif Node.isEnumDeclaration(declaration) -%}
|
|
7
|
-
|
|
7
|
+
{% include "api/enum.html.nunj" %}
|
|
8
8
|
{%- elseif Node.isFunctionDeclaration(declaration) -%}
|
|
9
|
-
|
|
9
|
+
{% include "api/function.html.nunj" %}
|
|
10
10
|
{%- elseif Node.isTypeAliasDeclaration(declaration) -%}
|
|
11
|
-
|
|
11
|
+
{% include "api/type-alias.html.nunj" %}
|
|
12
12
|
{%- elseif Node.isVariableDeclaration(declaration) -%}
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
{% set docNode = declaration.getVariableStatement() %}
|
|
14
|
+
{% include "api/variable.html.nunj" %}
|
|
15
15
|
{%- endif -%}
|
|
@@ -7,35 +7,35 @@ import {NgDocPageType} from '@ng-doc/core';
|
|
|
7
7
|
const pageContent: string = `{{ pageContent | toTemplateString }}`
|
|
8
8
|
|
|
9
9
|
@Component({
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
selector: 'ng-doc-page-{{ page.fullRoute | kebabCase }}',
|
|
11
|
+
standalone: true,
|
|
12
|
+
template: `<ng-doc-page></ng-doc-page>`,
|
|
13
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
|
+
imports: [NgDocPageComponent],
|
|
15
|
+
providers: [{provide: NgDocRootPage, useExisting: DynamicComponent}],
|
|
16
16
|
})
|
|
17
17
|
export class DynamicComponent extends NgDocRootPage {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
18
|
+
readonly routePrefix?: string = undefined;
|
|
19
|
+
readonly pageType: NgDocPageType = 'api';
|
|
20
|
+
{%- if page.editSourceFileUrl %}
|
|
21
|
+
readonly editSourceFileUrl: string = '{{ page.editSourceFileUrl }}';
|
|
22
|
+
{%- endif %}
|
|
23
|
+
{%- if page.viewSourceFileUrl %}
|
|
24
|
+
readonly viewSourceFileUrl: string = '{{ page.viewSourceFileUrl }}';
|
|
25
|
+
{%- endif %}
|
|
26
|
+
readonly pageContent: string = pageContent;
|
|
27
|
+
readonly demo: Record<string, Type<unknown>> | undefined = undefined;
|
|
28
|
+
readonly demoAssets: NgDocDemoAssets | undefined = undefined;
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
constructor() {
|
|
31
|
+
super();
|
|
32
|
+
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
const routes: Routes = [{
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
path: '',
|
|
37
|
+
component: DynamicComponent,
|
|
38
|
+
title: `{{ page.title | toTemplateString }}`,
|
|
39
39
|
}];
|
|
40
40
|
|
|
41
41
|
export default routes;
|
|
@@ -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 scope.builtChildren.length %}
|
|
6
|
+
{path: '', redirectTo: '{{ scope.builtChildren[0].route }}', pathMatch: 'full'},
|
|
7
|
+
{%- endif %}
|
|
8
|
+
{
|
|
9
|
+
path: '',
|
|
10
|
+
title: '{{ scope.title }}',
|
|
11
|
+
children: [
|
|
12
|
+
{%- for page in scope.builtChildren %}
|
|
13
|
+
{
|
|
14
|
+
path: '{{ page.route }}',
|
|
15
|
+
loadChildren: () => import('{{ page.moduleImport }}')
|
|
16
|
+
},
|
|
17
|
+
{%- endfor %}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
20
|
]
|
|
21
21
|
|
|
22
22
|
export default routes;
|