@ng-doc/builder 16.3.5 → 16.4.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 +14 -11
- package/browser/index.js.map +1 -1
- package/dev-server/index.js +5 -5
- package/dev-server/index.js.map +1 -1
- package/engine/actions/playground.action.js +9 -21
- package/engine/actions/playground.action.js.map +1 -1
- package/engine/build-ng-doc.d.ts +9 -0
- package/engine/build-ng-doc.js +61 -0
- package/engine/build-ng-doc.js.map +1 -0
- package/engine/builder-operators/add-build-candidates.d.ts +8 -0
- package/engine/builder-operators/add-build-candidates.js +27 -0
- package/engine/builder-operators/add-build-candidates.js.map +1 -0
- package/engine/builder-operators/build.d.ts +13 -0
- package/engine/builder-operators/build.js +20 -0
- package/engine/builder-operators/build.js.map +1 -0
- package/engine/builder-operators/collect-garbage.d.ts +8 -0
- package/engine/builder-operators/collect-garbage.js +21 -0
- package/engine/builder-operators/collect-garbage.js.map +1 -0
- package/engine/builder-operators/compile.d.ts +6 -0
- package/engine/builder-operators/compile.js +20 -0
- package/engine/builder-operators/compile.js.map +1 -0
- package/engine/builder-operators/dependency-changes.d.ts +10 -0
- package/engine/builder-operators/dependency-changes.js +25 -0
- package/engine/builder-operators/dependency-changes.js.map +1 -0
- package/engine/builder-operators/emit.d.ts +6 -0
- package/engine/builder-operators/emit.js +14 -0
- package/engine/builder-operators/emit.js.map +1 -0
- package/engine/builder-operators/index.d.ts +8 -0
- package/engine/builder-operators/index.js +12 -0
- package/engine/builder-operators/index.js.map +1 -0
- package/engine/builder-operators/load.d.ts +6 -0
- package/engine/builder-operators/load.js +20 -0
- package/engine/builder-operators/load.js.map +1 -0
- package/engine/builder-operators/post-process.d.ts +13 -0
- package/engine/builder-operators/post-process.js +32 -0
- package/engine/builder-operators/post-process.js.map +1 -0
- package/engine/builder-operators/print-output.d.ts +8 -0
- package/engine/builder-operators/print-output.js +53 -0
- package/engine/builder-operators/print-output.js.map +1 -0
- package/engine/builder-operators/refresh.d.ts +6 -0
- package/engine/builder-operators/refresh.js +20 -0
- package/engine/builder-operators/refresh.js.map +1 -0
- package/engine/builder-operators/task.d.ts +25 -0
- package/engine/builder-operators/task.js +46 -0
- package/engine/builder-operators/task.js.map +1 -0
- package/engine/entities/abstractions/entity.d.ts +18 -16
- package/engine/entities/abstractions/entity.js +21 -19
- package/engine/entities/abstractions/entity.js.map +1 -1
- package/engine/entities/abstractions/file.entity.d.ts +11 -1
- package/engine/entities/abstractions/file.entity.js +32 -13
- package/engine/entities/abstractions/file.entity.js.map +1 -1
- package/engine/entities/abstractions/route.entity.d.ts +9 -1
- package/engine/entities/abstractions/route.entity.js +49 -27
- package/engine/entities/abstractions/route.entity.js.map +1 -1
- package/engine/entities/abstractions/source-file.entity.d.ts +11 -9
- package/engine/entities/abstractions/source-file.entity.js +18 -13
- package/engine/entities/abstractions/source-file.entity.js.map +1 -1
- package/engine/entities/api-page.entity.d.ts +13 -11
- package/engine/entities/api-page.entity.js +41 -28
- package/engine/entities/api-page.entity.js.map +1 -1
- package/engine/entities/api-scope.entity.d.ts +12 -10
- package/engine/entities/api-scope.entity.js +15 -13
- package/engine/entities/api-scope.entity.js.map +1 -1
- package/engine/entities/api.entity.d.ts +5 -5
- package/engine/entities/api.entity.js +18 -17
- package/engine/entities/api.entity.js.map +1 -1
- package/engine/entities/cache/decorators/cached-entity.d.ts +7 -5
- package/engine/entities/cache/decorators/cached-entity.js +11 -16
- package/engine/entities/cache/decorators/cached-entity.js.map +1 -1
- package/engine/entities/category.entity.d.ts +5 -5
- package/engine/entities/category.entity.js +16 -20
- package/engine/entities/category.entity.js.map +1 -1
- package/engine/entities/indexes.entity.d.ts +2 -3
- package/engine/entities/indexes.entity.js +2 -5
- package/engine/entities/indexes.entity.js.map +1 -1
- package/engine/entities/page.entity.d.ts +10 -10
- package/engine/entities/page.entity.js +83 -73
- package/engine/entities/page.entity.js.map +1 -1
- package/engine/entities/skeleton.entity.d.ts +2 -4
- package/engine/entities/skeleton.entity.js +11 -25
- package/engine/entities/skeleton.entity.js.map +1 -1
- package/engine/entity-emitter.d.ts +19 -0
- package/engine/entity-emitter.js +52 -0
- package/engine/entity-emitter.js.map +1 -0
- package/engine/entity-store.d.ts +1 -0
- package/engine/entity-store.js +7 -4
- package/engine/entity-store.js.map +1 -1
- package/engine/functions/build-candidates.js +16 -5
- package/engine/functions/build-candidates.js.map +1 -1
- package/engine/index.d.ts +3 -2
- package/engine/index.js +3 -2
- package/engine/index.js.map +1 -1
- package/engine/nunjucks/extentions/index.d.ts +1 -0
- package/engine/nunjucks/extentions/index.extension.js.map +1 -0
- package/engine/nunjucks/extentions/index.js +5 -0
- package/engine/nunjucks/extentions/index.js.map +1 -0
- package/engine/nunjucks/filters.d.ts +2 -0
- package/engine/{template-filters.js → nunjucks/filters.js} +5 -9
- package/engine/nunjucks/filters.js.map +1 -0
- package/engine/nunjucks/index.d.ts +2 -0
- package/engine/nunjucks/index.js +6 -0
- package/engine/nunjucks/index.js.map +1 -0
- package/engine/nunjucks/render-template.d.ts +8 -0
- package/engine/nunjucks/render-template.js +46 -0
- package/engine/nunjucks/render-template.js.map +1 -0
- package/engine/variables.d.ts +0 -2
- package/engine/variables.js +1 -3
- package/engine/variables.js.map +1 -1
- package/engine/watcher.d.ts +3 -5
- package/engine/watcher.js +13 -9
- package/engine/watcher.js.map +1 -1
- package/helpers/angular/{component-decorator.d.ts → get-component-decorator.d.ts} +1 -1
- package/helpers/angular/{component-decorator.js → get-component-decorator.js} +4 -4
- package/helpers/angular/get-component-decorator.js.map +1 -0
- package/helpers/angular/{directive-decorator.d.ts → get-directive-decorator.d.ts} +1 -1
- package/helpers/angular/{directive-decorator.js → get-directive-decorator.js} +4 -4
- package/helpers/angular/get-directive-decorator.js.map +1 -0
- package/helpers/angular/get-pipe-decorator.d.ts +8 -0
- package/helpers/angular/get-pipe-decorator.js +26 -0
- package/helpers/angular/get-pipe-decorator.js.map +1 -0
- package/helpers/angular/index.d.ts +3 -2
- package/helpers/angular/index.js +3 -2
- package/helpers/angular/index.js.map +1 -1
- package/helpers/angular/is-standalone.js +6 -4
- package/helpers/angular/is-standalone.js.map +1 -1
- package/helpers/build-entity-keyword.d.ts +10 -0
- package/helpers/build-entity-keyword.js +28 -0
- package/helpers/build-entity-keyword.js.map +1 -0
- package/helpers/build-file-entity.js +36 -34
- package/helpers/build-file-entity.js.map +1 -1
- package/helpers/build-indexes.js +43 -40
- package/helpers/build-indexes.js.map +1 -1
- package/helpers/emit-built-output.d.ts +2 -2
- package/helpers/emit-built-output.js +1 -1
- package/helpers/emit-built-output.js.map +1 -1
- package/helpers/entity-type.d.ts +6 -0
- package/helpers/entity-type.js +10 -1
- package/helpers/entity-type.js.map +1 -1
- package/helpers/extract-docs.js +2 -2
- package/helpers/extract-docs.js.map +1 -1
- package/helpers/extract-selectors.js +1 -1
- package/helpers/extract-selectors.js.map +1 -1
- package/helpers/generate-api-entities.js +4 -3
- package/helpers/generate-api-entities.js.map +1 -1
- package/helpers/get-component-asset.js +4 -11
- package/helpers/get-component-asset.js.map +1 -1
- package/helpers/index.d.ts +3 -5
- package/helpers/index.js +3 -5
- package/helpers/index.js.map +1 -1
- package/helpers/playground/build-playground-metadata.d.ts +9 -0
- package/helpers/playground/build-playground-metadata.js +66 -0
- package/helpers/playground/build-playground-metadata.js.map +1 -0
- package/helpers/playground/get-content-for-playground.d.ts +8 -0
- package/helpers/playground/get-content-for-playground.js +39 -0
- package/helpers/playground/get-content-for-playground.js.map +1 -0
- package/helpers/playground/get-playground-by-id.js.map +1 -0
- package/helpers/playground/get-playground-inputs.d.ts +12 -0
- package/helpers/playground/get-playground-inputs.js +72 -0
- package/helpers/playground/get-playground-inputs.js.map +1 -0
- package/helpers/playground/get-playground-template-inputs.d.ts +7 -0
- package/helpers/playground/get-playground-template-inputs.js +17 -0
- package/helpers/playground/get-playground-template-inputs.js.map +1 -0
- package/helpers/playground/get-playgrounds-expression.js.map +1 -0
- package/helpers/playground/get-playgrounds-ids.js.map +1 -0
- package/helpers/playground/get-target-for-playground.d.ts +8 -0
- package/helpers/playground/get-target-for-playground.js +26 -0
- package/helpers/playground/get-target-for-playground.js.map +1 -0
- package/helpers/playground/get-template-for-playground.d.ts +8 -0
- package/helpers/playground/get-template-for-playground.js +22 -0
- package/helpers/playground/get-template-for-playground.js.map +1 -0
- package/helpers/playground/index.d.ts +9 -0
- package/helpers/playground/index.js +13 -0
- package/helpers/playground/index.js.map +1 -0
- package/helpers/print.d.ts +24 -0
- package/helpers/print.js +46 -0
- package/helpers/print.js.map +1 -0
- package/helpers/process-html.d.ts +9 -2
- package/helpers/process-html.js +29 -10
- package/helpers/process-html.js.map +1 -1
- package/helpers/typescript/accessor/group-accessors.js +2 -2
- package/helpers/typescript/accessor/group-accessors.js.map +1 -1
- package/helpers/typescript/create-project.js +1 -18
- package/helpers/typescript/create-project.js.map +1 -1
- package/interfaces/entity-keyword.d.ts +5 -0
- package/interfaces/entity-keyword.js +3 -0
- package/interfaces/entity-keyword.js.map +1 -0
- package/interfaces/index.d.ts +3 -1
- package/interfaces/index.js +3 -1
- package/interfaces/index.js.map +1 -1
- package/interfaces/output.d.ts +6 -0
- package/interfaces/{built-output.js → output.js} +1 -1
- package/interfaces/output.js.map +1 -0
- package/interfaces/playground-metadata.d.ts +12 -0
- package/interfaces/playground-metadata.js +3 -0
- package/interfaces/playground-metadata.js.map +1 -0
- package/operators/error-handler.d.ts +8 -0
- package/operators/error-handler.js +22 -0
- package/operators/error-handler.js.map +1 -0
- package/package.json +4 -4
- package/schematics/api/index.js +1 -1
- package/schematics/api/index.js.map +1 -1
- package/schematics/category/index.js +1 -1
- package/schematics/category/index.js.map +1 -1
- package/schematics/migrations/standalone-pages/index.js +2 -9
- package/schematics/migrations/standalone-pages/index.js.map +1 -1
- package/schematics/page/index.js +1 -7
- package/schematics/page/index.js.map +1 -1
- package/templates/helpers/accessor.html.nunj +2 -1
- package/templates/helpers/constructor.html.nunj +1 -1
- package/templates/helpers/members.html.nunj +2 -1
- package/templates/helpers/method.html.nunj +1 -1
- package/templates/helpers/parameters.html.nunj +2 -2
- package/templates/helpers/properties.html.nunj +1 -1
- package/templates/playgrounds.ts.nunj +15 -19
- package/engine/builder.d.ts +0 -23
- package/engine/builder.js +0 -125
- package/engine/builder.js.map +0 -1
- package/engine/entity-life-cycle.d.ts +0 -15
- package/engine/entity-life-cycle.js +0 -32
- package/engine/entity-life-cycle.js.map +0 -1
- package/engine/extentions/index.extension.js.map +0 -1
- package/engine/renderer.d.ts +0 -7
- package/engine/renderer.js +0 -49
- package/engine/renderer.js.map +0 -1
- package/engine/template-filters.d.ts +0 -2
- package/engine/template-filters.js.map +0 -1
- package/helpers/angular/component-decorator.js.map +0 -1
- package/helpers/angular/directive-decorator.js.map +0 -1
- package/helpers/get-playground-by-id.js.map +0 -1
- package/helpers/get-playground-properties.d.ts +0 -25
- package/helpers/get-playground-properties.js +0 -113
- package/helpers/get-playground-properties.js.map +0 -1
- package/helpers/get-playground-targets.d.ts +0 -6
- package/helpers/get-playground-targets.js +0 -21
- package/helpers/get-playground-targets.js.map +0 -1
- package/helpers/get-playgrounds-expression.js.map +0 -1
- package/helpers/get-playgrounds-ids.js.map +0 -1
- package/helpers/print-progress.d.ts +0 -6
- package/helpers/print-progress.js +0 -19
- package/helpers/print-progress.js.map +0 -1
- package/interfaces/built-output.d.ts +0 -4
- package/interfaces/built-output.js.map +0 -1
- /package/engine/{extentions → nunjucks/extentions}/index.extension.d.ts +0 -0
- /package/engine/{extentions → nunjucks/extentions}/index.extension.js +0 -0
- /package/helpers/{get-playground-by-id.d.ts → playground/get-playground-by-id.d.ts} +0 -0
- /package/helpers/{get-playground-by-id.js → playground/get-playground-by-id.js} +0 -0
- /package/helpers/{get-playgrounds-expression.d.ts → playground/get-playgrounds-expression.d.ts} +0 -0
- /package/helpers/{get-playgrounds-expression.js → playground/get-playgrounds-expression.js} +0 -0
- /package/helpers/{get-playgrounds-ids.d.ts → playground/get-playgrounds-ids.d.ts} +0 -0
- /package/helpers/{get-playgrounds-ids.js → playground/get-playgrounds-ids.js} +0 -0
|
@@ -9,19 +9,16 @@ const helpers_1 = require("../../../helpers");
|
|
|
9
9
|
const variables_1 = require("../../variables");
|
|
10
10
|
const entity_1 = require("./entity");
|
|
11
11
|
class NgDocSourceFileEntity extends entity_1.NgDocEntity {
|
|
12
|
-
constructor(
|
|
13
|
-
super(
|
|
14
|
-
this.
|
|
15
|
-
this.
|
|
12
|
+
constructor(store, cache, context, sourceFile) {
|
|
13
|
+
super(store, cache, context);
|
|
14
|
+
this.store = store;
|
|
15
|
+
this.cache = cache;
|
|
16
16
|
this.context = context;
|
|
17
|
+
this.sourceFile = sourceFile;
|
|
17
18
|
/**
|
|
18
19
|
* The key by which the entity will be stored in the store
|
|
19
20
|
*/
|
|
20
21
|
this.id = this.sourceFilePath;
|
|
21
|
-
/**
|
|
22
|
-
* Indicates whether the entity's source file can be compiled
|
|
23
|
-
*/
|
|
24
|
-
this.compilable = false;
|
|
25
22
|
}
|
|
26
23
|
/**
|
|
27
24
|
* Files that are watched for changes to rebuild entity or remove it
|
|
@@ -50,11 +47,19 @@ class NgDocSourceFileEntity extends entity_1.NgDocEntity {
|
|
|
50
47
|
const relativePath = path_1.default.relative(this.context.context.workspaceRoot, this.sourceFile.getFilePath());
|
|
51
48
|
return path_1.default.join(variables_1.CACHE_PATH, relativePath.replace(/\.ts$/, '.js'));
|
|
52
49
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
return
|
|
50
|
+
/**
|
|
51
|
+
* Runs when the source file was updated, can be used refresh source file in the typescript project
|
|
52
|
+
*/
|
|
53
|
+
refreshImpl() {
|
|
54
|
+
return (0, rxjs_1.forkJoin)([this.sourceFile, ...this.sourceFile.getReferencedSourceFiles()].map((sourceFile) => sourceFile.refreshFromFileSystem())).pipe((0, operators_1.mapTo)(void 0));
|
|
55
|
+
}
|
|
56
|
+
refresh() {
|
|
57
|
+
// Reset warnings and errors because it's the first step of the build process
|
|
58
|
+
this.warnings = [];
|
|
59
|
+
this.errors = [];
|
|
60
|
+
return this.refreshImpl().pipe((0, operators_1.tap)({
|
|
61
|
+
error: (e) => this.errors.push(e),
|
|
62
|
+
}));
|
|
58
63
|
}
|
|
59
64
|
destroy() {
|
|
60
65
|
super.destroy();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-file.entity.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/entities/abstractions/source-file.entity.ts"],"names":[],"mappings":";;;;AAAA,wDAAwB;AACxB,+BAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"source-file.entity.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/entities/abstractions/source-file.entity.ts"],"names":[],"mappings":";;;;AAAA,wDAAwB;AACxB,+BAA0C;AAC1C,8CAA0C;AAG1C,8CAAuC;AAGvC,+CAA2C;AAE3C,qCAAqC;AAErC,MAAsB,qBAAsB,SAAQ,oBAAW;IAM9D,YACmB,KAAuB,EACvB,KAAiB,EACjB,OAA4B,EACrC,UAAsB;QAE/B,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QALX,UAAK,GAAL,KAAK,CAAkB;QACvB,UAAK,GAAL,KAAK,CAAY;QACjB,YAAO,GAAP,OAAO,CAAqB;QACrC,eAAU,GAAV,UAAU,CAAY;QAThC;;WAEG;QACe,OAAE,GAAW,IAAI,CAAC,cAAc,CAAC;IASnD,CAAC;IAED;;OAEG;IACH,IAAa,SAAS;QACrB,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC9B,CAAC;IAED,IAAI,cAAc;QACjB,OAAO,cAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;OAIG;IACH,IAAI,gBAAgB;QACnB,OAAO,cAAI,CAAC,QAAQ,CA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ACD;AA1ED,sDA0EC"}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { SourceFile } from 'ts-morph';
|
|
3
|
-
import { NgDocBuilderContext,
|
|
4
|
-
import { NgDocSupportedDeclarations } from '../../types
|
|
5
|
-
import {
|
|
3
|
+
import { NgDocBuilderContext, NgDocBuildOutput, NgDocEntityKeyword } from '../../interfaces';
|
|
4
|
+
import { NgDocSupportedDeclarations } from '../../types';
|
|
5
|
+
import { NgDocEntityStore } from '../entity-store';
|
|
6
6
|
import { NgDocEntity } from './abstractions/entity';
|
|
7
7
|
import { NgDocRouteEntity } from './abstractions/route.entity';
|
|
8
8
|
import { NgDocApiScopeEntity } from './api-scope.entity';
|
|
9
|
+
import { NgDocCache } from './cache';
|
|
9
10
|
export declare class NgDocApiPageEntity extends NgDocRouteEntity<never> {
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
11
|
+
readonly store: NgDocEntityStore;
|
|
12
|
+
readonly cache: NgDocCache;
|
|
12
13
|
readonly context: NgDocBuilderContext;
|
|
14
|
+
readonly sourceFile: SourceFile;
|
|
13
15
|
parent: NgDocApiScopeEntity;
|
|
14
16
|
readonly declarationName: string;
|
|
15
17
|
readonly index: number;
|
|
@@ -17,19 +19,19 @@ export declare class NgDocApiPageEntity extends NgDocRouteEntity<never> {
|
|
|
17
19
|
readonly physical: boolean;
|
|
18
20
|
readonly id: string;
|
|
19
21
|
folderName: string;
|
|
20
|
-
|
|
21
|
-
constructor(builder: NgDocBuilder, sourceFile: SourceFile, context: NgDocBuilderContext, parent: NgDocApiScopeEntity, declarationName: string, index: number);
|
|
22
|
+
constructor(store: NgDocEntityStore, cache: NgDocCache, context: NgDocBuilderContext, sourceFile: SourceFile, parent: NgDocApiScopeEntity, declarationName: string, index: number);
|
|
22
23
|
get isRoot(): boolean;
|
|
23
24
|
get route(): string;
|
|
24
|
-
|
|
25
|
+
protected refreshImpl(): Observable<void>;
|
|
25
26
|
get title(): string;
|
|
26
27
|
get editSourceFileUrl(): string | undefined;
|
|
27
28
|
get viewSourceFileUrl(): string | undefined;
|
|
28
29
|
get folderPath(): string;
|
|
29
30
|
get buildCandidates(): NgDocEntity[];
|
|
30
|
-
get keywords():
|
|
31
|
-
|
|
32
|
-
protected
|
|
31
|
+
get keywords(): NgDocEntityKeyword[];
|
|
32
|
+
compile(): Observable<void>;
|
|
33
|
+
protected loadImpl(): Observable<void>;
|
|
34
|
+
protected buildImpl(): Observable<NgDocBuildOutput[]>;
|
|
33
35
|
private buildModule;
|
|
34
36
|
private updateDeclaration;
|
|
35
37
|
}
|
|
@@ -8,27 +8,27 @@ const rxjs_1 = require("rxjs");
|
|
|
8
8
|
const operators_1 = require("rxjs/operators");
|
|
9
9
|
const helpers_1 = require("../../helpers");
|
|
10
10
|
const build_indexes_1 = require("../../helpers/build-indexes");
|
|
11
|
-
const
|
|
11
|
+
const nunjucks_1 = require("../nunjucks");
|
|
12
12
|
const route_entity_1 = require("./abstractions/route.entity");
|
|
13
|
-
const
|
|
13
|
+
const cache_1 = require("./cache");
|
|
14
14
|
exports.NgDocApiPageEntity = (() => {
|
|
15
|
-
let _classDecorators = [(0,
|
|
15
|
+
let _classDecorators = [(0, cache_1.CachedEntity)()];
|
|
16
16
|
let _classDescriptor;
|
|
17
17
|
let _classExtraInitializers = [];
|
|
18
18
|
let _classThis;
|
|
19
19
|
var NgDocApiPageEntity = _classThis = class extends route_entity_1.NgDocRouteEntity {
|
|
20
|
-
constructor(
|
|
21
|
-
super(
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
20
|
+
constructor(store, cache, context, sourceFile, parent, declarationName, index) {
|
|
21
|
+
super(store, cache, context, sourceFile);
|
|
22
|
+
this.store = store;
|
|
23
|
+
this.cache = cache;
|
|
24
24
|
this.context = context;
|
|
25
|
+
this.sourceFile = sourceFile;
|
|
25
26
|
this.parent = parent;
|
|
26
27
|
this.declarationName = declarationName;
|
|
27
28
|
this.index = index;
|
|
28
29
|
this.physical = false;
|
|
29
|
-
this.id = (0, helpers_1.uniqueName)(`${this.sourceFilePath}
|
|
30
|
+
this.id = (0, helpers_1.uniqueName)(`${this.sourceFilePath}#${this.declarationName}`);
|
|
30
31
|
this.folderName = '';
|
|
31
|
-
this.readyToBuild = true;
|
|
32
32
|
this.updateDeclaration();
|
|
33
33
|
}
|
|
34
34
|
get isRoot() {
|
|
@@ -40,7 +40,7 @@ exports.NgDocApiPageEntity = (() => {
|
|
|
40
40
|
? (0, helpers_1.slash)(path.join((0, helpers_1.declarationFolderName)(this.declaration), this.declarationName + (this.index ? this.index : '')))
|
|
41
41
|
: '';
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
refreshImpl() {
|
|
44
44
|
/**
|
|
45
45
|
* Just refresh source file, we don't need to emit it
|
|
46
46
|
*/
|
|
@@ -70,43 +70,56 @@ exports.NgDocApiPageEntity = (() => {
|
|
|
70
70
|
return [];
|
|
71
71
|
}
|
|
72
72
|
get keywords() {
|
|
73
|
-
return [
|
|
73
|
+
return [
|
|
74
|
+
{
|
|
75
|
+
key: this.declarationName,
|
|
76
|
+
title: this.declarationName,
|
|
77
|
+
path: this.fullRoute,
|
|
78
|
+
},
|
|
79
|
+
].concat(this.anchors.map((anchor) => (0, helpers_1.buildEntityKeyword)(this.declarationName, this.declarationName, this.fullRoute, anchor)));
|
|
80
|
+
}
|
|
81
|
+
compile() {
|
|
82
|
+
return (0, rxjs_1.of)(void 0);
|
|
74
83
|
}
|
|
75
|
-
|
|
84
|
+
loadImpl() {
|
|
76
85
|
this.updateDeclaration();
|
|
77
86
|
return (0, rxjs_1.of)(void 0);
|
|
78
87
|
}
|
|
79
|
-
|
|
88
|
+
buildImpl() {
|
|
80
89
|
return this.isReadyForBuild
|
|
81
90
|
? (0, rxjs_1.forkJoin)([this.buildModule()]).pipe((0, operators_1.map)((output) => output.filter(core_1.isPresent)))
|
|
82
91
|
: (0, rxjs_1.of)([]);
|
|
83
92
|
}
|
|
84
93
|
buildModule() {
|
|
85
|
-
const
|
|
86
|
-
.render('./api-page.html.nunj', {
|
|
94
|
+
const template = (0, nunjucks_1.renderTemplate)('./api-page.html.nunj', {
|
|
87
95
|
context: {
|
|
88
96
|
declaration: this.declaration,
|
|
89
97
|
scope: this.parent.target,
|
|
90
98
|
},
|
|
91
|
-
})
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
});
|
|
100
|
+
return (0, rxjs_1.of)(template).pipe((0, operators_1.switchMap)((output) => (0, helpers_1.processHtml)(this, output)), (0, operators_1.map)((output) => ({
|
|
101
|
+
content: output,
|
|
102
|
+
filePath: this.modulePath,
|
|
103
|
+
postProcessFn: (content) => (0, rxjs_1.from)((0, helpers_1.postProcessHtml)(this, content)).pipe((0, operators_1.switchMap)((content) => (0, rxjs_1.from)((0, build_indexes_1.buildIndexes)({
|
|
104
|
+
title: this.title,
|
|
105
|
+
content,
|
|
106
|
+
pageType: (0, helpers_1.getPageType)(this),
|
|
107
|
+
breadcrumbs: this.breadcrumbs,
|
|
108
|
+
route: this.fullRoute,
|
|
109
|
+
})).pipe((0, operators_1.tap)((indexes) => this.indexes.push(...indexes)), (0, operators_1.map)(() => (0, nunjucks_1.renderTemplate)('./api-page.module.ts.nunj', {
|
|
110
|
+
context: {
|
|
111
|
+
page: this,
|
|
112
|
+
pageContent: content,
|
|
113
|
+
},
|
|
114
|
+
}))))),
|
|
115
|
+
})));
|
|
102
116
|
}
|
|
103
117
|
updateDeclaration() {
|
|
104
118
|
const declarations = [
|
|
105
119
|
...(0, core_1.asArray)(this.sourceFile.getExportedDeclarations().get(this.declarationName)),
|
|
106
120
|
...(0, core_1.asArray)(this.sourceFile.getExportedDeclarations().get('default')),
|
|
107
|
-
].filter(
|
|
121
|
+
].filter(helpers_1.isSupportedDeclaration);
|
|
108
122
|
this.declaration = declarations.find((declaration) => declaration.getName() === this.declarationName);
|
|
109
|
-
// Doesnr work?
|
|
110
123
|
if (!this.declaration) {
|
|
111
124
|
this.destroy();
|
|
112
125
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-page.entity.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/entities/api-page.entity.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"api-page.entity.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/entities/api-page.entity.ts"],"names":[],"mappings":";;;;AAAA,uCAAmF;AACnF,mDAA6B;AAC7B,+BAAoD;AACpD,8CAA0D;AAG1D,2CAWuB;AACvB,+DAAyD;AAIzD,0CAA2C;AAE3C,8DAA6D;AAE7D,mCAAiD;AAGpC,QAAA,kBAAkB;4BAD9B,IAAA,oBAAY,GAAE;;;;QACF,kBAAkB,qBAAC,SAAQ,+BAAuB;QAO9D,YACmB,KAAuB,EACvB,KAAiB,EACjB,OAA4B,EAC5B,UAAsB,EAC/B,MAA2B,EAC3B,eAAuB,EACvB,KAAa;YAEtB,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;YARvB,UAAK,GAAL,KAAK,CAAkB;YACvB,UAAK,GAAL,KAAK,CAAY;YACjB,YAAO,GAAP,OAAO,CAAqB;YAC5B,eAAU,GAAV,UAAU,CAAY;YAC/B,WAAM,GAAN,MAAM,CAAqB;YAC3B,oBAAe,GAAf,eAAe,CAAQ;YACvB,UAAK,GAAL,KAAK,CAAQ;YAXL,aAAQ,GAAY,KAAK,CAAC;YAC1B,OAAE,GAAW,IAAA,oBAAU,EAAC,GAAG,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC,CAAC;YACnF,eAAU,GAAW,EAAE,CAAC;YAahC,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAC1B,CAAC;QAED,IAAa,MAAM;YAClB,yCAAyC;YACzC,OAAO,KAAK,CAAC;QACd,C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AAe,CAAC,CAAC;gBAC/E,GAAG,IAAA,cAAO,EAAC,IAAI,CAAC,UAAU,CAAC,uBAAuB,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;aACpE,CAAC,MAAM,CAAC,gCAAsB,CAAC,CAAC;YAEjC,IAAI,CAAC,WAAW,GAAG,YAAY,CAAC,IAAI,CACnC,CAAC,WAAuC,EAAE,EAAE,CAAC,WAAW,CAAC,OAAO,EAAE,KAAK,IAAI,CAAC,eAAe,CAC3F,CAAC;YAEF,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;gBACtB,IAAI,CAAC,OAAO,EAAE,CAAC;aACf;QACF,CAAC;;;;QA/JF,gKAgKC;QAhKY,kBAAkB;QAAlB,+DAAkB;;WAAlB,kBAAkB"}
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import { NgDocApiScope } from '@ng-doc/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { SourceFile } from 'ts-morph';
|
|
4
|
-
import { NgDocBuilderContext,
|
|
5
|
-
import {
|
|
4
|
+
import { NgDocBuilderContext, NgDocBuildOutput, NgDocEntityKeyword } from '../../interfaces';
|
|
5
|
+
import { NgDocEntityStore } from '../entity-store';
|
|
6
6
|
import { NgDocEntity } from './abstractions/entity';
|
|
7
7
|
import { NgDocRouteEntity } from './abstractions/route.entity';
|
|
8
8
|
import { NgDocApiEntity } from './api.entity';
|
|
9
|
+
import { NgDocCache } from './cache';
|
|
9
10
|
import { NgDocPageEntity } from './page.entity';
|
|
10
11
|
export declare class NgDocApiScopeEntity extends NgDocRouteEntity<NgDocApiScope> {
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
12
|
+
readonly store: NgDocEntityStore;
|
|
13
|
+
readonly cache: NgDocCache;
|
|
13
14
|
readonly context: NgDocBuilderContext;
|
|
15
|
+
readonly sourceFile: SourceFile;
|
|
14
16
|
parent: NgDocApiEntity;
|
|
15
17
|
target: NgDocApiScope;
|
|
16
18
|
readonly physical: boolean;
|
|
17
|
-
protected readyToBuild: boolean;
|
|
18
19
|
id: string;
|
|
19
|
-
constructor(
|
|
20
|
+
constructor(store: NgDocEntityStore, cache: NgDocCache, context: NgDocBuilderContext, sourceFile: SourceFile, parent: NgDocApiEntity, target: NgDocApiScope);
|
|
20
21
|
get rootFiles(): string[];
|
|
21
22
|
get isRoot(): boolean;
|
|
22
23
|
get route(): string;
|
|
23
|
-
get keywords():
|
|
24
|
+
get keywords(): NgDocEntityKeyword[];
|
|
24
25
|
get folderName(): string;
|
|
25
26
|
get cachedFilePaths(): string[];
|
|
26
27
|
/**
|
|
@@ -33,9 +34,10 @@ export declare class NgDocApiScopeEntity extends NgDocRouteEntity<NgDocApiScope>
|
|
|
33
34
|
get title(): string;
|
|
34
35
|
get order(): number | undefined;
|
|
35
36
|
get buildCandidates(): NgDocEntity[];
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
refreshImpl(): Observable<void>;
|
|
38
|
+
compile(): Observable<void>;
|
|
39
|
+
loadImpl(): Observable<void>;
|
|
40
|
+
protected buildImpl(): Observable<NgDocBuildOutput[]>;
|
|
39
41
|
private buildModule;
|
|
40
42
|
destroy(): void;
|
|
41
43
|
}
|
|
@@ -4,8 +4,8 @@ exports.NgDocApiScopeEntity = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const core_1 = require("@ng-doc/core");
|
|
6
6
|
const rxjs_1 = require("rxjs");
|
|
7
|
-
const operators_1 = require("rxjs/operators");
|
|
8
7
|
const helpers_1 = require("../../helpers");
|
|
8
|
+
const nunjucks_1 = require("../nunjucks");
|
|
9
9
|
const route_entity_1 = require("./abstractions/route.entity");
|
|
10
10
|
const decorators_1 = require("./cache/decorators");
|
|
11
11
|
exports.NgDocApiScopeEntity = (() => {
|
|
@@ -14,15 +14,15 @@ exports.NgDocApiScopeEntity = (() => {
|
|
|
14
14
|
let _classExtraInitializers = [];
|
|
15
15
|
let _classThis;
|
|
16
16
|
var NgDocApiScopeEntity = _classThis = class extends route_entity_1.NgDocRouteEntity {
|
|
17
|
-
constructor(
|
|
18
|
-
super(
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
17
|
+
constructor(store, cache, context, sourceFile, parent, target) {
|
|
18
|
+
super(store, cache, context, sourceFile);
|
|
19
|
+
this.store = store;
|
|
20
|
+
this.cache = cache;
|
|
21
21
|
this.context = context;
|
|
22
|
+
this.sourceFile = sourceFile;
|
|
22
23
|
this.parent = parent;
|
|
23
24
|
this.target = target;
|
|
24
25
|
this.physical = false;
|
|
25
|
-
this.readyToBuild = true;
|
|
26
26
|
this.id = (0, helpers_1.uniqueName)(`${this.sourceFilePath}#${this.target.route}`);
|
|
27
27
|
}
|
|
28
28
|
get rootFiles() {
|
|
@@ -64,25 +64,27 @@ exports.NgDocApiScopeEntity = (() => {
|
|
|
64
64
|
get buildCandidates() {
|
|
65
65
|
return this.childEntities;
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
refreshImpl() {
|
|
68
68
|
// Emitting source file is not necessary for this type of entity
|
|
69
69
|
return (0, rxjs_1.of)(void 0);
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
compile() {
|
|
72
|
+
return (0, rxjs_1.of)(void 0);
|
|
73
|
+
}
|
|
74
|
+
loadImpl() {
|
|
72
75
|
return (0, rxjs_1.of)(void 0);
|
|
73
76
|
}
|
|
74
|
-
|
|
77
|
+
buildImpl() {
|
|
75
78
|
return this.isReadyForBuild ? (0, rxjs_1.forkJoin)([this.buildModule()]) : (0, rxjs_1.of)([]);
|
|
76
79
|
}
|
|
77
80
|
buildModule() {
|
|
78
81
|
if (this.target) {
|
|
79
|
-
|
|
80
|
-
.render('./api-scope.module.ts.nunj', {
|
|
82
|
+
const content = (0, nunjucks_1.renderTemplate)('./api-scope.module.ts.nunj', {
|
|
81
83
|
context: {
|
|
82
84
|
scope: this,
|
|
83
85
|
},
|
|
84
|
-
})
|
|
85
|
-
|
|
86
|
+
});
|
|
87
|
+
return (0, rxjs_1.of)({ content, filePath: this.modulePath });
|
|
86
88
|
}
|
|
87
89
|
return (0, rxjs_1.of)();
|
|
88
90
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-scope.entity.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/entities/api-scope.entity.ts"],"names":[],"mappings":";;;;AAAA,uCAAoD;AACpD,+BAA8C;
|
|
1
|
+
{"version":3,"file":"api-scope.entity.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/entities/api-scope.entity.ts"],"names":[],"mappings":";;;;AAAA,uCAAoD;AACpD,+BAA8C;AAG9C,2CAAuD;AAGvD,0CAA2C;AAE3C,8DAA6D;AAG7D,mDAAgD;AAInC,QAAA,mBAAmB;4BAD/B,IAAA,yBAAY,GAAE;;;;QACF,mBAAmB,qBAAC,SAAQ,+BAA+B;QAGvE,YACmB,KAAuB,EACvB,KAAiB,EACjB,OAA4B,EAC5B,UAAsB,EAC/B,MAAsB,EACtB,MAAqB;YAE9B,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;YAPvB,UAAK,GAAL,KAAK,CAAkB;YACvB,UAAK,GAAL,KAAK,CAAY;YACjB,YAAO,GAAP,OAAO,CAAqB;YAC5B,eAAU,GAAV,UAAU,CAAY;YAC/B,WAAM,GAAN,MAAM,CAAgB;YACtB,WAAM,GAAN,MAAM,CAAe;YARb,aAAQ,GAAY,KAAK,CAAC;YACnC,OAAE,GAAW,IAAA,oBAAU,EAAC,GAAG,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;QAUhF,CAAC;QAED,IAAa,SAAS;YACrB,OAAO,EAAE,CAAC;QACX,CAAC;QAED,IAAa,MAAM;YAClB,0CAA0C;YAC1C,OAAO,KAAK,CAAC;QACd,CAAC;QAED,IAAa,KAAK;YACjB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;QAC1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IAAI,CAAC,MAAM,EAAE;gBAChB,MAAM,OAAO,GAAW,IAAA,yBAAc,EAAC,4BAA4B,EAAE;oBACpE,OAAO,EAAE;wBACR,KAAK,EAAE,IAAI;qBACX;iBACD,CAAC,CAAC;gBAEH,OAAO,IAAA,SAAE,EAAC,EAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,UAAU,EAAC,CAAC,CAAC;aAChD;YACD,OAAO,IAAA,SAAE,GAAE,CAAC;QACb,CAAC;QAEQ,OAAO;YACf,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAkB,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;YAE/D,KAAK,CAAC,OAAO,EAAE,CAAC;QACjB,CAAC;;;;QAlGF,gKAmGC;QAnGY,mBAAmB;QAAnB,+DAAmB;;WAAnB,mBAAmB"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { NgDocApi } from '@ng-doc/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
3
|
+
import { NgDocBuildOutput, NgDocEntityKeyword } from '../../interfaces';
|
|
4
4
|
import { NgDocEntity } from './abstractions/entity';
|
|
5
5
|
import { NgDocNavigationEntity } from './abstractions/navigation.entity';
|
|
6
6
|
import { NgDocCategoryEntity } from './category.entity';
|
|
7
7
|
export declare class NgDocApiEntity extends NgDocNavigationEntity<NgDocApi> {
|
|
8
8
|
moduleFileName: string;
|
|
9
9
|
parent?: NgDocCategoryEntity;
|
|
10
|
-
compilable: boolean;
|
|
11
10
|
get route(): string;
|
|
12
11
|
/**
|
|
13
12
|
* Returns full url from the root
|
|
@@ -20,10 +19,11 @@ export declare class NgDocApiEntity extends NgDocNavigationEntity<NgDocApi> {
|
|
|
20
19
|
get order(): number | undefined;
|
|
21
20
|
get buildCandidates(): NgDocEntity[];
|
|
22
21
|
get folderPath(): string;
|
|
23
|
-
get keywords():
|
|
22
|
+
get keywords(): NgDocEntityKeyword[];
|
|
23
|
+
setParentDynamically(): void;
|
|
24
24
|
childrenGenerator(): Observable<NgDocEntity[]>;
|
|
25
|
-
|
|
26
|
-
protected
|
|
25
|
+
loadImpl(): Observable<void>;
|
|
26
|
+
protected buildImpl(): Observable<NgDocBuildOutput[]>;
|
|
27
27
|
private buildModule;
|
|
28
28
|
private buildApiList;
|
|
29
29
|
}
|
|
@@ -6,6 +6,7 @@ const path = tslib_1.__importStar(require("path"));
|
|
|
6
6
|
const rxjs_1 = require("rxjs");
|
|
7
7
|
const operators_1 = require("rxjs/operators");
|
|
8
8
|
const helpers_1 = require("../../helpers");
|
|
9
|
+
const nunjucks_1 = require("../nunjucks");
|
|
9
10
|
const navigation_entity_1 = require("./abstractions/navigation.entity");
|
|
10
11
|
const decorators_1 = require("./cache/decorators");
|
|
11
12
|
exports.NgDocApiEntity = (() => {
|
|
@@ -17,7 +18,6 @@ exports.NgDocApiEntity = (() => {
|
|
|
17
18
|
constructor() {
|
|
18
19
|
super(...arguments);
|
|
19
20
|
this.moduleFileName = `${(0, helpers_1.uniqueName)('ng-doc-api-list')}.module.ts`;
|
|
20
|
-
this.compilable = true;
|
|
21
21
|
}
|
|
22
22
|
get route() {
|
|
23
23
|
var _a, _b;
|
|
@@ -52,34 +52,35 @@ exports.NgDocApiEntity = (() => {
|
|
|
52
52
|
get keywords() {
|
|
53
53
|
return [];
|
|
54
54
|
}
|
|
55
|
+
setParentDynamically() {
|
|
56
|
+
super.setParentDynamically();
|
|
57
|
+
this.parent = this.getParentFromCategory();
|
|
58
|
+
}
|
|
55
59
|
childrenGenerator() {
|
|
56
60
|
this.children.forEach((child) => child.destroy());
|
|
57
|
-
return this.
|
|
61
|
+
return this.refreshImpl().pipe((0, operators_1.switchMap)(() => (0, helpers_1.buildFileEntity)(this.sourceFile, this.context.tsConfig, this.context.context.workspaceRoot)), (0, operators_1.switchMap)(() => this.loadImpl()), (0, operators_1.map)(() => (0, helpers_1.generateApiEntities)(this)));
|
|
58
62
|
}
|
|
59
|
-
|
|
60
|
-
return super.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
this.
|
|
67
|
-
this.context.context.logger.error(`\n${String(error)}`);
|
|
68
|
-
return (0, rxjs_1.of)(void 0);
|
|
63
|
+
loadImpl() {
|
|
64
|
+
return super.loadImpl().pipe((0, operators_1.tap)({
|
|
65
|
+
next: () => {
|
|
66
|
+
if (!this.title) {
|
|
67
|
+
throw new Error(`Failed to load ${this.sourceFile.getFilePath()}. Make sure that you have a title property.`);
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
error: (e) => this.errors.push(e),
|
|
69
71
|
}));
|
|
70
72
|
}
|
|
71
|
-
|
|
73
|
+
buildImpl() {
|
|
72
74
|
return this.isReadyForBuild ? (0, rxjs_1.forkJoin)([this.buildModule(), this.buildApiList()]) : (0, rxjs_1.of)([]);
|
|
73
75
|
}
|
|
74
76
|
buildModule() {
|
|
75
77
|
if (this.target) {
|
|
76
|
-
|
|
77
|
-
.render('./api.module.ts.nunj', {
|
|
78
|
+
const content = (0, nunjucks_1.renderTemplate)('./api.module.ts.nunj', {
|
|
78
79
|
context: {
|
|
79
80
|
api: this,
|
|
80
81
|
},
|
|
81
|
-
})
|
|
82
|
-
|
|
82
|
+
});
|
|
83
|
+
return (0, rxjs_1.of)({ content, filePath: this.modulePath });
|
|
83
84
|
}
|
|
84
85
|
return (0, rxjs_1.of)();
|
|
85
86
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.entity.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/entities/api.entity.ts"],"names":[],"mappings":";;;;AACA,mDAA6B;AAC7B,+BAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"api.entity.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/entities/api.entity.ts"],"names":[],"mappings":";;;;AACA,mDAA6B;AAC7B,+BAA8C;AAC9C,8CAAmD;AAEnD,2CAQuB;AAEvB,0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AE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,sBAAsB,CAAC;aAC5D,CAAC,CAAC;QACJ,CAAC;;;;QA1GF,gKA2GC;QA3GY,cAAc;QAAd,+DAAc;;WAAd,cAAc"}
|
|
@@ -5,8 +5,10 @@ import { NgDocCacheAccessor } from '../interfaces';
|
|
|
5
5
|
*/
|
|
6
6
|
export declare function CachedEntity<TClass extends Constructor<{
|
|
7
7
|
id: string;
|
|
8
|
-
}>>(): (Value: TClass, _context: ClassDecoratorContext<TClass>) =>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
}>>(): (Value: TClass, _context: ClassDecoratorContext<TClass>) => {
|
|
9
|
+
new (...args: any[]): {
|
|
10
|
+
__cachedProps?: Map<string, NgDocCacheAccessor<any, any>> | undefined;
|
|
11
|
+
__cachedFiles?: Set<string> | undefined;
|
|
12
|
+
id: string;
|
|
13
|
+
};
|
|
14
|
+
} & TClass;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CachedEntity = void 0;
|
|
4
|
-
const builder_1 = require("@ng-doc/builder");
|
|
5
4
|
const core_1 = require("@ng-doc/core");
|
|
6
5
|
const helpers_1 = require("../helpers");
|
|
7
6
|
/**
|
|
@@ -9,25 +8,21 @@ const helpers_1 = require("../helpers");
|
|
|
9
8
|
*/
|
|
10
9
|
function CachedEntity() {
|
|
11
10
|
return (Value, _context) => {
|
|
12
|
-
class
|
|
11
|
+
return class extends Value {
|
|
13
12
|
constructor(...args) {
|
|
14
13
|
var _a;
|
|
15
14
|
super(...args);
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}
|
|
15
|
+
const cache = (0, helpers_1.loadCache)(this.id);
|
|
16
|
+
(0, core_1.asArray)((_a = this.__cachedProps) === null || _a === void 0 ? void 0 : _a.keys()).forEach((property) => {
|
|
17
|
+
var _a, _b, _c;
|
|
18
|
+
const accessor = (_a = this.__cachedProps) === null || _a === void 0 ? void 0 : _a.get(property);
|
|
19
|
+
const value = (_b = cache.properties) === null || _b === void 0 ? void 0 : _b[property];
|
|
20
|
+
if (Object.keys((_c = cache === null || cache === void 0 ? void 0 : cache.properties) !== null && _c !== void 0 ? _c : {}).includes(property) && accessor) {
|
|
21
|
+
Object.assign(this, { [property]: accessor.get(value) });
|
|
22
|
+
}
|
|
23
|
+
});
|
|
28
24
|
}
|
|
29
|
-
}
|
|
30
|
-
return NgDocCacheEntityWrapper;
|
|
25
|
+
};
|
|
31
26
|
};
|
|
32
27
|
}
|
|
33
28
|
exports.CachedEntity = CachedEntity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cached-entity.js","sourceRoot":"","sources":["../../../../../../../libs/builder/engine/entities/cache/decorators/cached-entity.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"cached-entity.js","sourceRoot":"","sources":["../../../../../../../libs/builder/engine/entities/cache/decorators/cached-entity.ts"],"names":[],"mappings":";;;AAAA,uCAAkD;AAGlD,wCAAqC;AAGrC;;GAEG;AACH,SAAgB,YAAY;IAC3B,OAAO,CAAC,KAAa,EAAE,QAAuC,EAAE,EAAE;QACjE,OAAO,KAAM,SAAQ,KAAK;YAIzB,YAAsB,GAAG,IAAW;;gBACnC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;gBAEf,MAAM,KAAK,GAAoB,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBAElD,IAAA,cAAO,EAAC,MAAA,IAAI,CAAC,aAAa,0CAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,QAAgB,EAAE,EAAE;;oBAChE,MAAM,QAAQ,GAAoD,MAAA,IAAI,CAAC,aAAa,0CAAE,GAAG,CAAC,QAAQ,CAAC,CAAC;oBACpG,MAAM,KAAK,GAAY,MAAA,KAAK,CAAC,UAAU,0CAAG,QAAQ,CAAC,CAAC;oBAEpD,IAAI,MAAM,CAAC,IAAI,CAAC,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,UAAU,mCAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,QAAQ,EAAE;wBACxE,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAC,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC,KAAwB,CAAC,EAAC,CAAC,CAAC;qBAC1E;gBACF,CAAC,CAAC,CAAC;YACJ,CAAC;SACD,CAAC;IACH,CAAC,CAAC;AACH,CAAC;AAtBD,oCAsBC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { NgDocCategory } from '@ng-doc/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
3
|
+
import { NgDocBuildOutput, NgDocEntityKeyword } from '../../interfaces';
|
|
4
4
|
import { NgDocEntity } from './abstractions/entity';
|
|
5
5
|
import { NgDocNavigationEntity } from './abstractions/navigation.entity';
|
|
6
6
|
import { NgDocPageEntity } from './page.entity';
|
|
7
7
|
export declare class NgDocCategoryEntity extends NgDocNavigationEntity<NgDocCategory> {
|
|
8
8
|
parent?: NgDocCategoryEntity;
|
|
9
|
-
compilable: boolean;
|
|
10
9
|
get route(): string;
|
|
11
10
|
/**
|
|
12
11
|
* Returns full url from the root
|
|
@@ -19,12 +18,13 @@ export declare class NgDocCategoryEntity extends NgDocNavigationEntity<NgDocCate
|
|
|
19
18
|
get order(): number | undefined;
|
|
20
19
|
get pages(): NgDocPageEntity[];
|
|
21
20
|
get categories(): NgDocCategoryEntity[];
|
|
22
|
-
get keywords():
|
|
21
|
+
get keywords(): NgDocEntityKeyword[];
|
|
23
22
|
get title(): string;
|
|
24
23
|
get buildCandidates(): NgDocEntity[];
|
|
25
24
|
get expandable(): boolean;
|
|
26
25
|
get expanded(): boolean;
|
|
27
|
-
|
|
28
|
-
protected
|
|
26
|
+
setParentDynamically(): void;
|
|
27
|
+
protected loadImpl(): Observable<void>;
|
|
28
|
+
protected buildImpl(): Observable<NgDocBuildOutput[]>;
|
|
29
29
|
private buildModule;
|
|
30
30
|
}
|