@ng-doc/builder 16.12.1 → 16.13.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/README.md +1 -0
- package/builders.json +13 -13
- package/classes/observable-set.js.map +1 -1
- package/dev-server/index.js +3 -1
- package/dev-server/index.js.map +1 -1
- package/engine/.cache/apps/ng-doc/docs/api-documentation/ng-doc.category.mjs +11 -0
- package/engine/.cache/apps/ng-doc/docs/api-documentation/templating/ng-doc.page.mjs +21 -0
- package/engine/.cache/apps/ng-doc/docs/customization/icons/ng-doc.page.mjs +20 -0
- package/engine/.cache/apps/ng-doc/docs/customization/layout/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/customization/ng-doc.category.mjs +10 -0
- package/engine/.cache/apps/ng-doc/docs/customization/page-skeleton/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/customization/search/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/customization/themes/ng-doc.page.mjs +20 -0
- package/engine/.cache/apps/ng-doc/docs/customization/type-controls/ng-doc.page.mjs +22 -0
- package/engine/.cache/apps/ng-doc/docs/develop/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/features/cache/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/features/keywords/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/features/keywords-loaders/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/features/markdown/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/features/ng-doc.category.mjs +9 -0
- package/engine/.cache/apps/ng-doc/docs/features/page-processors/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/file-entities/api/ng-doc.page.mjs +20 -0
- package/engine/.cache/apps/ng-doc/docs/file-entities/category/ng-doc.page.mjs +20 -0
- package/engine/.cache/apps/ng-doc/docs/file-entities/ng-doc.category.mjs +10 -0
- package/engine/.cache/apps/ng-doc/docs/file-entities/page/ng-doc.page.mjs +20 -0
- package/engine/.cache/apps/ng-doc/docs/getting-started/configuration/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/getting-started/installation/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/getting-started/migrations/ng-doc.page.mjs +17 -0
- package/engine/.cache/apps/ng-doc/docs/getting-started/ng-doc.category.mjs +9 -0
- package/engine/.cache/apps/ng-doc/docs/getting-started/what-is-ng-doc/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/guides/demo/ng-doc.page.mjs +20 -0
- package/engine/.cache/apps/ng-doc/docs/guides/demo-pane/ng-doc.page.mjs +20 -0
- package/engine/.cache/apps/ng-doc/docs/guides/ng-doc.category.mjs +10 -0
- package/engine/.cache/apps/ng-doc/docs/guides/playground/ng-doc.page.mjs +33 -0
- package/engine/.cache/apps/ng-doc/docs/guides/snippets/ng-doc.page.mjs +20 -0
- package/engine/.cache/apps/ng-doc/docs/guides/templating/ng-doc.page.mjs +20 -0
- package/engine/.cache/apps/ng-doc/docs/ng-doc.api.mjs +41 -0
- package/engine/.cache/apps/ng-doc/docs/recipes/ignoring-file-lines/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/recipes/ng-doc.category.mjs +10 -0
- package/engine/build-ng-doc.js +0 -1
- package/engine/build-ng-doc.js.map +1 -1
- package/engine/entities/abstractions/file.entity.js +3 -5
- package/engine/entities/abstractions/file.entity.js.map +1 -1
- package/engine/entities/abstractions/module.entity.js.map +1 -1
- package/engine/entities/abstractions/source-file.entity.js +1 -1
- package/engine/entities/abstractions/source-file.entity.js.map +1 -1
- package/engine/entities/api-page.entity.js +2 -2
- package/engine/entities/api-page.entity.js.map +1 -1
- package/engine/entities/api-scope.entity.js +1 -1
- package/engine/entities/api-scope.entity.js.map +1 -1
- package/engine/entities/api.entity.js +1 -1
- package/engine/entities/api.entity.js.map +1 -1
- package/engine/entities/category.entity.js +1 -1
- package/engine/entities/category.entity.js.map +1 -1
- package/engine/entities/index.d.ts +0 -1
- package/engine/entities/index.js +0 -1
- package/engine/entities/index.js.map +1 -1
- package/engine/entities/page-demo.entity.js +4 -1
- package/engine/entities/page-demo.entity.js.map +1 -1
- package/engine/entities/page.entity.js +2 -2
- package/engine/entities/page.entity.js.map +1 -1
- package/engine/entities/plugins/entity-plugins/apply.plugin.js.map +1 -1
- package/engine/entities/plugins/entity-plugins/index.d.ts +6 -6
- package/engine/nunjucks/filters.js.map +1 -1
- package/engine/watcher.js.map +1 -1
- package/helpers/build-file-entity.js +7 -4
- package/helpers/build-file-entity.js.map +1 -1
- package/helpers/build-indexes.js +10 -7
- package/helpers/build-indexes.js.map +1 -1
- package/helpers/create-builder-context.js.map +1 -1
- package/helpers/declaration-folder-name.js.map +1 -1
- package/helpers/entity-type.js.map +1 -1
- package/helpers/extract-docs.js +5 -1
- package/helpers/extract-docs.js.map +1 -1
- package/helpers/format-code.d.ts +5 -4
- package/helpers/format-code.js +7 -5
- package/helpers/format-code.js.map +1 -1
- package/helpers/get-demo-class-declarations.js +5 -2
- package/helpers/get-demo-class-declarations.js.map +1 -1
- package/helpers/{import-es-module.d.ts → import-esm.d.ts} +1 -1
- package/helpers/{import-es-module.js → import-esm.js} +4 -4
- package/helpers/import-esm.js.map +1 -0
- package/helpers/import-fresh-esm.d.ts +9 -0
- package/helpers/import-fresh-esm.js +30 -0
- package/helpers/import-fresh-esm.js.map +1 -0
- package/helpers/index.d.ts +2 -1
- package/helpers/index.js +2 -1
- package/helpers/index.js.map +1 -1
- package/helpers/is-supported-declaration.js +7 -7
- package/helpers/is-supported-declaration.js.map +1 -1
- package/helpers/markdown-to-html.js.map +1 -1
- package/helpers/playground/build-playground-metadata.js +3 -1
- package/helpers/playground/build-playground-metadata.js.map +1 -1
- package/helpers/playground/get-playground-by-id.js.map +1 -1
- package/helpers/playground/get-target-for-playground.js +2 -1
- package/helpers/playground/get-target-for-playground.js.map +1 -1
- package/helpers/presentation.js +19 -5
- package/helpers/presentation.js.map +1 -1
- package/helpers/process-html.js +3 -3
- package/helpers/process-html.js.map +1 -1
- package/helpers/remove-lines-from-code.js +4 -2
- package/helpers/remove-lines-from-code.js.map +1 -1
- package/helpers/typescript/accessor/get-class-accessors.js.map +1 -1
- package/helpers/typescript/display-type.js.map +1 -1
- package/helpers/typescript/get-object-expression-from-default.js +2 -1
- package/helpers/typescript/get-object-expression-from-default.js.map +1 -1
- package/helpers/typescript/method/get-method-chain.js.map +1 -1
- package/helpers/typescript/property/get-property-chain.js.map +1 -1
- package/interfaces/configuration.d.ts +0 -6
- package/operators/index.d.ts +1 -1
- package/package.json +4 -4
- package/parsers/helpers/param.js.map +1 -1
- package/parsers/parse-code-block-params.js +9 -1
- package/parsers/parse-code-block-params.js.map +1 -1
- package/parsers/parse-snippet.js +12 -3
- package/parsers/parse-snippet.js.map +1 -1
- package/schematics/utils/get-title.js +1 -4
- package/schematics/utils/get-title.js.map +1 -1
- package/schematics/utils/var-name-validation.js.map +1 -1
- package/templates/api-list.ts.nunj +34 -0
- package/templates/{api-page.html.nunj → api-page-content.html.nunj} +0 -1
- package/templates/{api-page.module.ts.nunj → api-page.ts.nunj} +11 -18
- package/templates/api-scope.ts.nunj +22 -0
- package/templates/category.ts.nunj +22 -0
- package/templates/context.ts.nunj +32 -30
- package/templates/demo-assets.ts.nunj +16 -16
- package/templates/helpers/accessor.html.nunj +2 -1
- package/templates/helpers/badge.html.nunj +2 -1
- package/templates/helpers/code.html.nunj +2 -1
- package/templates/helpers/declaration-modifiers.html.nunj +1 -1
- package/templates/helpers/members.html.nunj +1 -1
- package/templates/helpers/methods.html.nunj +3 -3
- package/templates/helpers/modifier.html.nunj +2 -1
- package/templates/helpers/tag.html.nunj +2 -1
- package/templates/helpers/type.html.nunj +1 -1
- package/templates/index.ts.nunj +0 -1
- package/templates/{page.module.ts.nunj → page.ts.nunj} +22 -30
- package/templates/playgrounds.ts.nunj +12 -21
- package/templates/routing.ts.nunj +1 -1
- package/engine/entities/generated-module.entity.d.ts +0 -12
- package/engine/entities/generated-module.entity.js +0 -52
- package/engine/entities/generated-module.entity.js.map +0 -1
- package/helpers/import-es-module.js.map +0 -1
- package/templates/api-scope.module.ts.nunj +0 -28
- package/templates/api.module.ts.nunj +0 -41
- package/templates/category.module.ts.nunj +0 -29
- package/templates/ng-doc.generated.module.ts.nunj +0 -13
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NgDocGeneratedModuleEntity = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const path = tslib_1.__importStar(require("path"));
|
|
6
|
-
const rxjs_1 = require("rxjs");
|
|
7
|
-
const nunjucks_1 = require("../nunjucks");
|
|
8
|
-
const entity_1 = require("./abstractions/entity");
|
|
9
|
-
const cache_1 = require("./cache");
|
|
10
|
-
exports.NgDocGeneratedModuleEntity = (() => {
|
|
11
|
-
let _classDecorators = [(0, cache_1.CachedEntity)()];
|
|
12
|
-
let _classDescriptor;
|
|
13
|
-
let _classExtraInitializers = [];
|
|
14
|
-
let _classThis;
|
|
15
|
-
let _instanceExtraInitializers = [];
|
|
16
|
-
let _get_outputPath_decorators;
|
|
17
|
-
var NgDocGeneratedModuleEntity = _classThis = class extends entity_1.NgDocEntity {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.id = (tslib_1.__runInitializers(this, _instanceExtraInitializers), `NgDocGeneratedModule`);
|
|
21
|
-
this.isRoot = false;
|
|
22
|
-
this.parent = undefined;
|
|
23
|
-
this.rootFiles = [];
|
|
24
|
-
this.buildCandidates = [];
|
|
25
|
-
}
|
|
26
|
-
get outputPath() {
|
|
27
|
-
return path.join(this.context.buildPath, 'ng-doc.generated.module.ts');
|
|
28
|
-
}
|
|
29
|
-
build() {
|
|
30
|
-
return (0, rxjs_1.of)({
|
|
31
|
-
result: (0, nunjucks_1.renderTemplate)('./ng-doc.generated.module.ts.nunj'),
|
|
32
|
-
entity: this,
|
|
33
|
-
toBuilderOutput: (content) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
return ({
|
|
35
|
-
content,
|
|
36
|
-
filePath: this.outputPath,
|
|
37
|
-
});
|
|
38
|
-
}),
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
tslib_1.__setFunctionName(_classThis, "NgDocGeneratedModuleEntity");
|
|
43
|
-
(() => {
|
|
44
|
-
_get_outputPath_decorators = [(0, cache_1.CachedFilesGetter)()];
|
|
45
|
-
tslib_1.__esDecorate(_classThis, null, _get_outputPath_decorators, { kind: "getter", name: "outputPath", static: false, private: false, access: { has: obj => "outputPath" in obj, get: obj => obj.outputPath } }, null, _instanceExtraInitializers);
|
|
46
|
-
tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name }, null, _classExtraInitializers);
|
|
47
|
-
NgDocGeneratedModuleEntity = _classThis = _classDescriptor.value;
|
|
48
|
-
tslib_1.__runInitializers(_classThis, _classExtraInitializers);
|
|
49
|
-
})();
|
|
50
|
-
return NgDocGeneratedModuleEntity = _classThis;
|
|
51
|
-
})();
|
|
52
|
-
//# sourceMappingURL=generated-module.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-module.entity.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/entities/generated-module.entity.ts"],"names":[],"mappings":";;;;AAAA,mDAA6B;AAC7B,+BAAoC;AAGpC,0CAA2C;AAC3C,kDAAkD;AAClD,mCAAwD;AAG3C,QAAA,0BAA0B;4BADtC,IAAA,oBAAY,GAAE;;;;;;QACF,0BAA0B,qBAAC,SAAQ,oBAAW;;;YACjD,OAAE,iEAAW,sBAAsB,EAAC;YACpC,WAAM,GAAY,KAAK,CAAC;YACxB,WAAM,GAAc,SAAS,CAAC;YAC9B,cAAS,GAAa,EAAE,CAAC;YACzB,oBAAe,GAAkB,EAAE,CAAC;QAiB9C,CAAC;QAdA,IAAI,UAAU;YACb,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,4BAA4B,CAAC,CAAC;QACxE,CAAC;QAED,KAAK;YACJ,OAAO,IAAA,SAAE,EAAC;gBACT,MAAM,EAAE,IAAA,yBAAc,EAAC,mCAAmC,CAAC;gBAC3D,MAAM,EAAE,IAAI;gBACZ,eAAe,EAAE,CAAO,OAAe,EAAE,EAAE;oBAAC,OAAA,CAAC;wBAC5C,OAAO;wBACP,QAAQ,EAAE,IAAI,CAAC,UAAU;qBACzB,CAAC,CAAA;kBAAA;aACF,CAAC,CAAC;QACJ,CAAC;;;;sCAdA,IAAA,yBAAiB,GAAE;QACpB,mMAAI,UAAU,wCAEb;QAVF,gKAsBC;QAtBY,0BAA0B;QAA1B,+DAA0B;;WAA1B,0BAA0B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"import-es-module.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/import-es-module.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,SAAgB,cAAc,CAAI,UAAkB;IACnD,OAAO,IAAI,QAAQ,CAAC,kBAAkB,UAAU,KAAK,CAAC,EAAE,CAAC;AAC1D,CAAC;AAFD,wCAEC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import {NgModule} from "@angular/core";
|
|
3
|
-
import {RouterModule} from "@angular/router";
|
|
4
|
-
|
|
5
|
-
@NgModule({
|
|
6
|
-
imports: [
|
|
7
|
-
RouterModule.forChild([
|
|
8
|
-
{%- if scope.builtChildren.length %}
|
|
9
|
-
{path: '', redirectTo: '{{ scope.builtChildren[0].route }}', pathMatch: 'full' },
|
|
10
|
-
{%- endif %}
|
|
11
|
-
{
|
|
12
|
-
path: '',
|
|
13
|
-
title: '{{ scope.title }}',
|
|
14
|
-
children: [
|
|
15
|
-
{%- for page in scope.builtChildren %}
|
|
16
|
-
{
|
|
17
|
-
path: '{{ page.route }}',
|
|
18
|
-
loadChildren: () => import('{{ page.moduleImport }}').then(m => m.DynamicModule)
|
|
19
|
-
},
|
|
20
|
-
{%- endfor %}
|
|
21
|
-
]
|
|
22
|
-
}
|
|
23
|
-
]),
|
|
24
|
-
],
|
|
25
|
-
exports: [RouterModule]
|
|
26
|
-
})
|
|
27
|
-
export class DynamicModule {
|
|
28
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import {ChangeDetectionStrategy, Component, NgModule} from "@angular/core";
|
|
3
|
-
import {RouterModule} from "@angular/router";
|
|
4
|
-
import {CommonModule} from '@angular/common';
|
|
5
|
-
import {NG_DOC_API_LIST_TOKEN, NgDocApiListModule} from '@ng-doc/app';
|
|
6
|
-
import apiList from './ng-doc.api-list.json';
|
|
7
|
-
|
|
8
|
-
@Component({
|
|
9
|
-
selector: 'ng-doc-api-list-page-{{ api.route | kebabCase }}',
|
|
10
|
-
template: `<ng-doc-api-list></ng-doc-api-list>`,
|
|
11
|
-
providers: [{
|
|
12
|
-
provide: NG_DOC_API_LIST_TOKEN,
|
|
13
|
-
useValue: apiList
|
|
14
|
-
}],
|
|
15
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16
|
-
})
|
|
17
|
-
export class DynamicComponent {
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@NgModule({
|
|
21
|
-
declarations: [DynamicComponent],
|
|
22
|
-
imports: [
|
|
23
|
-
CommonModule,
|
|
24
|
-
NgDocApiListModule,
|
|
25
|
-
RouterModule.forChild([
|
|
26
|
-
{
|
|
27
|
-
path: '',
|
|
28
|
-
component: DynamicComponent,
|
|
29
|
-
},
|
|
30
|
-
{%- for scope in api.builtChildren %}
|
|
31
|
-
{
|
|
32
|
-
path: '{{ scope.route }}',
|
|
33
|
-
loadChildren: () => import('{{ scope.moduleImport }}').then(m => m.DynamicModule)
|
|
34
|
-
},
|
|
35
|
-
{%- endfor %}
|
|
36
|
-
]),
|
|
37
|
-
],
|
|
38
|
-
exports: [RouterModule]
|
|
39
|
-
})
|
|
40
|
-
export class DynamicModule {
|
|
41
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import {NgModule} from "@angular/core";
|
|
3
|
-
import {RouterModule} from "@angular/router";
|
|
4
|
-
|
|
5
|
-
@NgModule({
|
|
6
|
-
imports: [RouterModule.forChild([
|
|
7
|
-
{%- if category.builtChildren.length %}
|
|
8
|
-
{path: '', redirectTo: '{{ category.builtChildren[0].route }}', pathMatch: 'full' },
|
|
9
|
-
{%- endif %}
|
|
10
|
-
{
|
|
11
|
-
path: '',
|
|
12
|
-
title: `{{ category.title | toTemplateString }}`,
|
|
13
|
-
children: [
|
|
14
|
-
{%- for child in category.builtChildren %}
|
|
15
|
-
{
|
|
16
|
-
path: '{{ child.route }}',
|
|
17
|
-
loadChildren: () => import('{{ child.moduleImport }}').then(m => m.DynamicModule)
|
|
18
|
-
},
|
|
19
|
-
{%- endfor %}
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
]),
|
|
23
|
-
],
|
|
24
|
-
exports: [RouterModule]
|
|
25
|
-
})
|
|
26
|
-
export class DynamicModule {
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// qu
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import {ModuleWithProviders, NgModule} from '@angular/core';
|
|
2
|
-
|
|
3
|
-
import {ngDocContextProvider} from './ng-doc.context';
|
|
4
|
-
|
|
5
|
-
@NgModule()
|
|
6
|
-
export class NgDocGeneratedModule {
|
|
7
|
-
static forRoot(): ModuleWithProviders<NgDocGeneratedModule> {
|
|
8
|
-
return {
|
|
9
|
-
ngModule: NgDocGeneratedModule,
|
|
10
|
-
providers: [ngDocContextProvider],
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
}
|