@ng-doc/builder 19.1.0 → 19.3.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/engine/builders/helpers/create-entry-metadata.js +2 -1
- package/engine/builders/helpers/create-entry-metadata.js.map +1 -1
- package/engine/builders/interfaces/entry-metadata.d.ts +2 -0
- package/engine/builders/interfaces/entry-metadata.js.map +1 -1
- package/engine/nunjucks/actions/playground.action.js +2 -1
- package/engine/nunjucks/actions/playground.action.js.map +1 -1
- package/engine/nunjucks/filters.d.ts +1 -1
- package/engine/nunjucks/filters.js +5 -1
- package/engine/nunjucks/filters.js.map +1 -1
- package/helpers/code-type-from-ext.js.map +1 -1
- package/helpers/get-code-type-from-lang.js.map +1 -1
- package/helpers/get-declaration-type.js.map +1 -1
- package/helpers/get-js-doc.d.ts +7 -6
- package/helpers/get-js-doc.js +34 -4
- package/helpers/get-js-doc.js.map +1 -1
- package/helpers/get-kind-type.js.map +1 -1
- package/helpers/markdown-to-html.js.map +1 -1
- package/helpers/no-empty.js.map +1 -1
- package/helpers/not-empty-assets.js.map +1 -1
- package/helpers/playground/get-playgrounds-ids.js.map +1 -1
- package/helpers/playground/get-target-for-playground.js.map +1 -1
- package/helpers/typescript/accessor/get-accessor-chain.js.map +1 -1
- package/helpers/typescript/accessor/get-class-accessors.js.map +1 -1
- package/helpers/typescript/accessor/get-interface-accessors.js.map +1 -1
- package/helpers/typescript/class/find-base-class.js.map +1 -1
- package/helpers/typescript/class/find-class.js.map +1 -1
- package/helpers/typescript/filter-by-scope.js.map +1 -1
- package/helpers/typescript/filter-by-static.js.map +1 -1
- package/helpers/typescript/first-node-with-comment.d.ts +2 -2
- package/helpers/typescript/first-node-with-comment.js +2 -1
- package/helpers/typescript/first-node-with-comment.js.map +1 -1
- package/helpers/typescript/get-object-expression-from-default.js.map +1 -1
- package/helpers/typescript/index.d.ts +1 -0
- package/helpers/typescript/index.js +1 -0
- package/helpers/typescript/index.js.map +1 -1
- package/helpers/typescript/interface/find-interface.js.map +1 -1
- package/helpers/typescript/is-named.d.ts +7 -0
- package/helpers/typescript/is-named.js +13 -0
- package/helpers/typescript/is-named.js.map +1 -0
- package/helpers/typescript/method/get-interface-methods.js.map +1 -1
- package/helpers/typescript/node/sort-by-nodes-name.js.map +1 -1
- package/helpers/typescript/property/get-defined-in-parent.d.ts +21 -0
- package/helpers/typescript/property/get-defined-in-parent.js +35 -0
- package/helpers/typescript/property/get-defined-in-parent.js.map +1 -0
- package/helpers/typescript/property/get-interface-properties.js.map +1 -1
- package/helpers/typescript/property/get-property-chain.js +5 -1
- package/helpers/typescript/property/get-property-chain.js.map +1 -1
- package/helpers/typescript/property/get-type-alias-properties.d.ts +13 -0
- package/helpers/typescript/property/get-type-alias-properties.js +64 -0
- package/helpers/typescript/property/get-type-alias-properties.js.map +1 -0
- package/helpers/typescript/property/index.d.ts +2 -0
- package/helpers/typescript/property/index.js +2 -0
- package/helpers/typescript/property/index.js.map +1 -1
- package/operators/buffer-debounce.js.map +1 -1
- package/package.json +3 -3
- package/schematics/api/index.js.map +1 -1
- package/schematics/category/index.js.map +1 -1
- package/schematics/migrations/standalone-pages/index.js.map +1 -1
- package/templates/api/type-alias-declaration.html.nunj +8 -0
- package/templates/helpers/properties.html.nunj +8 -3
- package/templates/routes.ts.nunj +14 -0
|
@@ -27,6 +27,7 @@ function createEntryMetadata(context, entry, sourceFile) {
|
|
|
27
27
|
const outDir = (0, get_entry_out_dir_1.getEntryOutDir)(context, entry, entryPath);
|
|
28
28
|
const isCategory = (0, minimatch_1.minimatch)(entryPath, variables_1.CATEGORY_PATTERN);
|
|
29
29
|
return {
|
|
30
|
+
id: `entry${Math.random().toString(36).substring(2)}`,
|
|
30
31
|
dir,
|
|
31
32
|
dirName,
|
|
32
33
|
route,
|
|
@@ -44,7 +45,7 @@ function createEntryMetadata(context, entry, sourceFile) {
|
|
|
44
45
|
title: entry.title,
|
|
45
46
|
keywordTitle: entry.title,
|
|
46
47
|
order: entry.order,
|
|
47
|
-
|
|
48
|
+
isCategory,
|
|
48
49
|
jsDocMetadata: function () {
|
|
49
50
|
const statement = (0, get_variable_statement_from_object_literal_expression_1.getVariableStatementFromObjectLiteralExpression)(this.objectExpression());
|
|
50
51
|
const description = (0, helpers_1.getJsDocDescription)(statement);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-entry-metadata.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/builders/helpers/create-entry-metadata.ts"],"names":[],"mappings":";;AA0BA,
|
|
1
|
+
{"version":3,"file":"create-entry-metadata.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/builders/helpers/create-entry-metadata.ts"],"names":[],"mappings":";;AA0BA,kDAkEC;;AA5FD,uCAAsD;AACtD,yCAAsC;AACtC,wDAAwB;AACxB,+BAA6B;AAG7B,8CAK0B;AAE1B,+CAAmD;AAEnD,yEAAmE;AACnE,2DAAqD;AACrD,uDAAkD;AAClD,mIAA0H;AAE1H;;;;;GAKG;AACH,SAAgB,mBAAmB,CACjC,OAA4B,EAC5B,KAAQ,EACR,UAAsB;IAEtB,MAAM,SAAS,GAAG,UAAU,CAAC,WAAW,EAAE,CAAC;IAC3C,MAAM,GAAG,GAAG,UAAU,CAAC,gBAAgB,EAAE,CAAC;IAC1C,MAAM,OAAO,GAAG,cAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IACnC,MAAM,KAAK,GAAG,IAAA,+BAAa,EAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IAC9C,MAAM,kBAAkB,GAAG,KAAK,CAAC,QAAQ,IAAI,IAAA,gDAAqB,EAAC,UAAU,CAAC,CAAC;IAC/E,MAAM,MAAM,GAAG,IAAA,kCAAc,EAAC,OAAO,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;IACzD,MAAM,UAAU,GAAG,IAAA,qBAAS,EAAC,SAAS,EAAE,4BAAgB,CAAC,CAAC;IAE1D,OAAO;QACL,EAAE,EAAE,QAAQ,IA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,CAAC;QAC/D,CAAC;QACD,OAAO,EAAE,KAAK,eAA6B,CAAC;QAC5C,WAAW,EAAE,YAAK;QAClB,gDAAgD;QAChD,MAAM,EACJ,KAAK,CAAC,QAAQ,IAAI,kBAAkB;YAClC,CAAC,CAAC,mBAAmB,CAAC,OAAO,EAAE,KAAK,CAAC,QAAQ,EAAE,kBAAkB,CAAC;YAClE,CAAC,CAAC,SAAS;QACf,KAAK;KACN,CAAC;AACJ,CAAC"}
|
|
@@ -4,6 +4,7 @@ import { ObjectLiteralExpression, SourceFile } from 'ts-morph';
|
|
|
4
4
|
import { DeclarationEntry, DeclarationTabEntry, Entry } from './entry';
|
|
5
5
|
import { MarkdownEntry } from './markdown-entry';
|
|
6
6
|
export interface EntryMetadata<T extends Entry = Entry> {
|
|
7
|
+
id: string;
|
|
7
8
|
dir: string;
|
|
8
9
|
path: string;
|
|
9
10
|
dirName: string;
|
|
@@ -21,6 +22,7 @@ export interface EntryMetadata<T extends Entry = Entry> {
|
|
|
21
22
|
parent: ParentEntryMetadata<T>;
|
|
22
23
|
entry: T;
|
|
23
24
|
jsDocMetadata: () => JSDocMetadata;
|
|
25
|
+
isCategory: boolean;
|
|
24
26
|
order?: number;
|
|
25
27
|
hidden?: boolean;
|
|
26
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry-metadata.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/builders/interfaces/entry-metadata.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"entry-metadata.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/builders/interfaces/entry-metadata.ts"],"names":[],"mappings":";;AAiDA,kDAEC;AAlDD,yCAAsC;AAItC,+CAA+C;AAwC/C;;;GAGG;AACH,SAAgB,mBAAmB,CAAC,KAAoB;IACtD,OAAO,IAAA,qBAAS,EAAC,KAAK,CAAC,IAAI,EAAE,wBAAY,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -13,11 +13,12 @@ function playgroundAction(pId, options) {
|
|
|
13
13
|
const playgroundMetadata = (0, index_1.getPlaygroundMetadata)(page.parent.entry, page.objectExpression());
|
|
14
14
|
const metadata = playgroundMetadata[pId];
|
|
15
15
|
if (metadata) {
|
|
16
|
+
const data = JSON.stringify(metadata.properties).replace(/\\/g, '\\\\');
|
|
16
17
|
return {
|
|
17
18
|
output: `<ng-doc-playground id="${pId}" indexable="false">
|
|
18
19
|
<div id="selectors">${metadata.selector ?? ''}</div>
|
|
19
20
|
<div id="pipeName">${metadata.name ?? ''}</div>
|
|
20
|
-
<div id="data">${(0, core_1.escapeHtml)(
|
|
21
|
+
<div id="data">${(0, core_1.escapeHtml)(data)}</div>
|
|
21
22
|
<div id="options">${(0, core_1.escapeHtml)(JSON.stringify(options ?? {}))}</div>
|
|
22
23
|
</ng-doc-playground>`,
|
|
23
24
|
dependencies: [metadata.class.getSourceFile().getFilePath()],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playground.action.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/nunjucks/actions/playground.action.ts"],"names":[],"mappings":";;AAWA,
|
|
1
|
+
{"version":3,"file":"playground.action.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/nunjucks/actions/playground.action.ts"],"names":[],"mappings":";;AAWA,4CAwBC;AAnCD,uCAAkE;AAElE,0CAAuD;AAIvD;;;;GAIG;AACH,SAAgB,gBAAgB,CAC9B,GAAW,EACX,OAAgC;IAEhC,OAAO,CAAC,IAAI,EAAE,EAAE;QACd,MAAM,kBAAkB,GAAG,IAAA,6BAAqB,EAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC;QAC7F,MAAM,QAAQ,GAAwC,kBAAkB,CAAC,GAAG,CAAC,CAAC;QAE9E,IAAI,QAAQ,EAAE,CAAC;YACb,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;YAExE,OAAO;gBACL,MAAM,EAAE,0BAA0B,GAAG;6BAChB,QAAQ,CAAC,QAAQ,IAAI,EAAE;4BACxB,QAAQ,CAAC,IAAI,IAAI,EAAE;wBACvB,IAAA,iBAAU,EAAC,IAAI,CAAC;2BACb,IAAA,iBAAU,EAAC,IAAI,CAAC,SAAS,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC;2BACzC;gBACnB,YAAY,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC,WAAW,EAAE,CAAC;aAC7D,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;QACxB,CAAC;IACH,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { accessorPresentation, callSignaturePresentation, constructorPresentation, declarationImport, displayReturnType, displayType, excludeByJsDocTags, extractSelectors, filterByScope, filterByStatic, filterUselessMembers, firstNodeWithComment, functionPresentation, getAccessorChain, getCallSignatureChain, getClassAccessors, getClassMethods, getClassProperties, getDeclarationType, getImplementedMember, getInheritedParent, getInterfaceAccessors, getInterfaceCallSignatures, getInterfaceMethods, getInterfaceProperties, getJsDocDescription, getJsDocParam, getJsDocTag, getJsDocTags, getMemberParent, getMethodChain, getOverriddenMember, getPropertyChain, groupAccessors, hasJsDocTag, markdownToHtml, methodPresentation, noEmpty, noLineBreaks, notEmptyAssets, sortByNodesName, sortNavigationEntries, toTemplateString, typeAliasPresentation, variablePresentation, } from '../../helpers';
|
|
1
|
+
export { accessorPresentation, callSignaturePresentation, constructorPresentation, declarationImport, displayReturnType, displayType, excludeByJsDocTags, extractSelectors, filterByScope, filterByStatic, filterUselessMembers, firstNodeWithComment, functionPresentation, getAccessorChain, getCallSignatureChain, getClassAccessors, getClassMethods, getClassProperties, getDeclarationType, getDefinedInParent, getImplementedMember, getInheritedParent, getInterfaceAccessors, getInterfaceCallSignatures, getInterfaceMethods, getInterfaceProperties, getJsDocDescription, getJsDocParam, getJsDocTag, getJsDocTags, getMemberParent, getMethodChain, getOverriddenMember, getPropertyChain, getTypeAliasProperties, groupAccessors, hasJsDocTag, isNamed, markdownToHtml, methodPresentation, noEmpty, noLineBreaks, notEmptyAssets, sortByNodesName, sortNavigationEntries, toTemplateString, typeAliasPresentation, variablePresentation, } from '../../helpers';
|
|
2
2
|
export { createImportPath } from '../builders/helpers';
|
|
3
3
|
export { isRoute, kebabCase, objectKeys, unique } from '@ng-doc/core';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* Just re-export filters from this file, they will be included to the template renderer automatically */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.isRoute = exports.createImportPath = exports.variablePresentation = exports.typeAliasPresentation = exports.toTemplateString = exports.sortNavigationEntries = exports.sortByNodesName = exports.notEmptyAssets = exports.noLineBreaks = exports.noEmpty = exports.methodPresentation = exports.markdownToHtml = exports.isNamed = exports.hasJsDocTag = exports.groupAccessors = exports.getTypeAliasProperties = exports.getPropertyChain = exports.getOverriddenMember = exports.getMethodChain = exports.getMemberParent = exports.getJsDocTags = exports.getJsDocTag = exports.getJsDocParam = exports.getJsDocDescription = exports.getInterfaceProperties = exports.getInterfaceMethods = exports.getInterfaceCallSignatures = exports.getInterfaceAccessors = exports.getInheritedParent = exports.getImplementedMember = exports.getDefinedInParent = exports.getDeclarationType = exports.getClassProperties = exports.getClassMethods = exports.getClassAccessors = exports.getCallSignatureChain = exports.getAccessorChain = exports.functionPresentation = exports.firstNodeWithComment = exports.filterUselessMembers = exports.filterByStatic = exports.filterByScope = exports.extractSelectors = exports.excludeByJsDocTags = exports.displayType = exports.displayReturnType = exports.declarationImport = exports.constructorPresentation = exports.callSignaturePresentation = exports.accessorPresentation = void 0;
|
|
5
|
+
exports.unique = exports.objectKeys = exports.kebabCase = void 0;
|
|
5
6
|
var helpers_1 = require("../../helpers");
|
|
6
7
|
Object.defineProperty(exports, "accessorPresentation", { enumerable: true, get: function () { return helpers_1.accessorPresentation; } });
|
|
7
8
|
Object.defineProperty(exports, "callSignaturePresentation", { enumerable: true, get: function () { return helpers_1.callSignaturePresentation; } });
|
|
@@ -22,6 +23,7 @@ Object.defineProperty(exports, "getClassAccessors", { enumerable: true, get: fun
|
|
|
22
23
|
Object.defineProperty(exports, "getClassMethods", { enumerable: true, get: function () { return helpers_1.getClassMethods; } });
|
|
23
24
|
Object.defineProperty(exports, "getClassProperties", { enumerable: true, get: function () { return helpers_1.getClassProperties; } });
|
|
24
25
|
Object.defineProperty(exports, "getDeclarationType", { enumerable: true, get: function () { return helpers_1.getDeclarationType; } });
|
|
26
|
+
Object.defineProperty(exports, "getDefinedInParent", { enumerable: true, get: function () { return helpers_1.getDefinedInParent; } });
|
|
25
27
|
Object.defineProperty(exports, "getImplementedMember", { enumerable: true, get: function () { return helpers_1.getImplementedMember; } });
|
|
26
28
|
Object.defineProperty(exports, "getInheritedParent", { enumerable: true, get: function () { return helpers_1.getInheritedParent; } });
|
|
27
29
|
Object.defineProperty(exports, "getInterfaceAccessors", { enumerable: true, get: function () { return helpers_1.getInterfaceAccessors; } });
|
|
@@ -36,8 +38,10 @@ Object.defineProperty(exports, "getMemberParent", { enumerable: true, get: funct
|
|
|
36
38
|
Object.defineProperty(exports, "getMethodChain", { enumerable: true, get: function () { return helpers_1.getMethodChain; } });
|
|
37
39
|
Object.defineProperty(exports, "getOverriddenMember", { enumerable: true, get: function () { return helpers_1.getOverriddenMember; } });
|
|
38
40
|
Object.defineProperty(exports, "getPropertyChain", { enumerable: true, get: function () { return helpers_1.getPropertyChain; } });
|
|
41
|
+
Object.defineProperty(exports, "getTypeAliasProperties", { enumerable: true, get: function () { return helpers_1.getTypeAliasProperties; } });
|
|
39
42
|
Object.defineProperty(exports, "groupAccessors", { enumerable: true, get: function () { return helpers_1.groupAccessors; } });
|
|
40
43
|
Object.defineProperty(exports, "hasJsDocTag", { enumerable: true, get: function () { return helpers_1.hasJsDocTag; } });
|
|
44
|
+
Object.defineProperty(exports, "isNamed", { enumerable: true, get: function () { return helpers_1.isNamed; } });
|
|
41
45
|
Object.defineProperty(exports, "markdownToHtml", { enumerable: true, get: function () { return helpers_1.markdownToHtml; } });
|
|
42
46
|
Object.defineProperty(exports, "methodPresentation", { enumerable: true, get: function () { return helpers_1.methodPresentation; } });
|
|
43
47
|
Object.defineProperty(exports, "noEmpty", { enumerable: true, get: function () { return helpers_1.noEmpty; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/nunjucks/filters.ts"],"names":[],"mappings":";AAAA,yGAAyG
|
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/nunjucks/filters.ts"],"names":[],"mappings":";AAAA,yGAAyG;;;;AAEzG,yCAiDuB;AAhDrB,+GAAA,oBAAoB,OAAA;AACpB,oHAAA,yBAAyB,OAAA;AACzB,kHAAA,uBAAuB,OAAA;AACvB,4GAAA,iBAAiB,OAAA;AACjB,4GAAA,iBAAiB,OAAA;AACjB,sGAAA,WAAW,OAAA;AACX,6GAAA,kBAAkB,OAAA;AAClB,2GAAA,gBAAgB,OAAA;AAChB,wGAAA,aAAa,OAAA;AACb,yGAAA,cAAc,OAAA;AACd,+GAAA,oBAAoB,OAAA;AACpB,+GAAA,oBAAoB,OAAA;AACpB,+GAAA,oBAAoB,OAAA;AACpB,2GAAA,gBAAgB,OAAA;AAChB,gHAAA,qBAAqB,OAAA;AACrB,4GAAA,iBAAiB,OAAA;AACjB,0GAAA,eAAe,OAAA;AACf,6GAAA,kBAAkB,OAAA;AAClB,6GAAA,kBAAkB,OAAA;AAClB,6GAAA,kBAAkB,OAAA;AAClB,+GAAA,oBAAoB,OAAA;AACpB,6GAAA,kBAAkB,OAAA;AAClB,gHAAA,qBAAqB,OAAA;AACrB,qHAAA,0BAA0B,OAAA;AAC1B,8GAAA,mBAAmB,OAAA;AACnB,iHAAA,sBAAsB,OAAA;AACtB,8GAAA,mBAAmB,OAAA;AACnB,wGAAA,aAAa,OAAA;AACb,sGAAA,WAAW,OAAA;AACX,uGAAA,YAAY,OAAA;AACZ,0GAAA,eAAe,OAAA;AACf,yGAAA,cAAc,OAAA;AACd,8GAAA,mBAAmB,OAAA;AACnB,2GAAA,gBAAgB,OAAA;AAChB,iHAAA,sBAAsB,OAAA;AACtB,yGAAA,cAAc,OAAA;AACd,sGAAA,WAAW,OAAA;AACX,kGAAA,OAAO,OAAA;AACP,yGAAA,cAAc,OAAA;AACd,6GAAA,kBAAkB,OAAA;AAClB,kGAAA,OAAO,OAAA;AACP,uGAAA,YAAY,OAAA;AACZ,yGAAA,cAAc,OAAA;AACd,0GAAA,eAAe,OAAA;AACf,gHAAA,qBAAqB,OAAA;AACrB,2GAAA,gBAAgB,OAAA;AAChB,gHAAA,qBAAqB,OAAA;AACrB,+GAAA,oBAAoB,OAAA;AAEtB,+CAAuD;AAA9C,2GAAA,gBAAgB,OAAA;AACzB,qCAAsE;AAA7D,+FAAA,OAAO,OAAA;AAAE,iGAAA,SAAS,OAAA;AAAE,kGAAA,UAAU,OAAA;AAAE,8FAAA,MAAM,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-type-from-ext.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/code-type-from-ext.ts"],"names":[],"mappings":";;AAMA,0CAmBC;AAvBD;;;GAGG;AACH,SAAgB,eAAe,CAAC,QAAgB;
|
|
1
|
+
{"version":3,"file":"code-type-from-ext.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/code-type-from-ext.ts"],"names":[],"mappings":";;AAMA,0CAmBC;AAvBD;;;GAGG;AACH,SAAgB,eAAe,CAAC,QAAgB;IAC9C,MAAM,GAAG,GAAuB,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;IAE1D,QAAQ,GAAG,EAAE,CAAC;QACZ,KAAK,IAAI;YACP,OAAO,YAAY,CAAC;QACtB,KAAK,MAAM;YACT,OAAO,MAAM,CAAC;QAChB,KAAK,KAAK;YACR,OAAO,KAAK,CAAC;QACf,KAAK,MAAM;YACT,OAAO,MAAM,CAAC;QAChB,KAAK,MAAM;YACT,OAAO,MAAM,CAAC;QAChB,KAAK,MAAM;YACT,OAAO,MAAM,CAAC;QAChB;YACE,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-code-type-from-lang.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/get-code-type-from-lang.ts"],"names":[],"mappings":";;AAMA,kDAqBC;AAzBD;;;GAGG;AACH,SAAgB,mBAAmB,CAAC,IAAY;
|
|
1
|
+
{"version":3,"file":"get-code-type-from-lang.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/get-code-type-from-lang.ts"],"names":[],"mappings":";;AAMA,kDAqBC;AAzBD;;;GAGG;AACH,SAAgB,mBAAmB,CAAC,IAAY;IAC9C,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,KAAK;YACR,OAAO,KAAK,CAAC;QACf,KAAK,MAAM;YACT,OAAO,MAAM,CAAC;QAChB,KAAK,MAAM;YACT,OAAO,MAAM,CAAC;QAChB,KAAK,MAAM;YACT,OAAO,MAAM,CAAC;QAChB,KAAK,MAAM;YACT,OAAO,MAAM,CAAC;QAChB,KAAK,IAAI,CAAC;QACV,KAAK,YAAY;YACf,OAAO,YAAY,CAAC;QACtB,KAAK,IAAI,CAAC;QACV,KAAK,YAAY;YACf,OAAO,YAAY,CAAC;QACtB;YACE,OAAO,IAAI,CAAC;IAChB,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-declaration-type.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/get-declaration-type.ts"],"names":[],"mappings":";;AAOA,gDAQC;AAfD,
|
|
1
|
+
{"version":3,"file":"get-declaration-type.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/get-declaration-type.ts"],"names":[],"mappings":";;AAOA,gDAQC;AAfD,uCAAuE;AAGvE;;;GAGG;AACH,SAAgB,kBAAkB,CAAC,IAAU;IAC3C,KAAK,MAAM,WAAW,IAAI,wBAAiB,EAAE,CAAC;QAC5C,IAAI,IAAI,EAAE,WAAW,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;YAC9C,OAAO,WAAW,CAAC;QACrB,CAAC;IACH,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
package/helpers/get-js-doc.d.ts
CHANGED
|
@@ -3,38 +3,39 @@ import { JSDocableNode } from 'ts-morph';
|
|
|
3
3
|
export declare class Formatter {
|
|
4
4
|
static renderDocNode(docNode: DocNode): string;
|
|
5
5
|
static renderDocNodes(docNodes: readonly DocNode[]): string;
|
|
6
|
+
private static filterOutStatusTag;
|
|
6
7
|
}
|
|
7
8
|
/**
|
|
8
9
|
*
|
|
9
10
|
* @param node
|
|
10
11
|
*/
|
|
11
|
-
export declare function getJsDocDescription(node: JSDocableNode): string;
|
|
12
|
+
export declare function getJsDocDescription(node: JSDocableNode | undefined): string;
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @param node
|
|
15
16
|
* @param tagName
|
|
16
17
|
*/
|
|
17
|
-
export declare function getJsDocTag(node: JSDocableNode, tagName: string): string;
|
|
18
|
+
export declare function getJsDocTag(node: JSDocableNode | undefined, tagName: string): string;
|
|
18
19
|
/**
|
|
19
20
|
*
|
|
20
21
|
* @param node
|
|
21
22
|
* @param tagName
|
|
22
23
|
*/
|
|
23
|
-
export declare function getJsDocTags(node: JSDocableNode, tagName: string): string[];
|
|
24
|
+
export declare function getJsDocTags(node: JSDocableNode | undefined, tagName: string): string[];
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
27
|
* @param node
|
|
27
28
|
*/
|
|
28
|
-
export declare function getAllJsDocTags(node: JSDocableNode): Record<string, string[]>;
|
|
29
|
+
export declare function getAllJsDocTags(node: JSDocableNode | undefined): Record<string, string[]>;
|
|
29
30
|
/**
|
|
30
31
|
*
|
|
31
32
|
* @param node
|
|
32
33
|
* @param tagName
|
|
33
34
|
*/
|
|
34
|
-
export declare function hasJsDocTag(node: JSDocableNode, tagName: string): boolean;
|
|
35
|
+
export declare function hasJsDocTag(node: JSDocableNode | undefined, tagName: string): boolean;
|
|
35
36
|
/**
|
|
36
37
|
*
|
|
37
38
|
* @param node
|
|
38
39
|
* @param paramName
|
|
39
40
|
*/
|
|
40
|
-
export declare function getJsDocParam(node: JSDocableNode, paramName: string): string;
|
|
41
|
+
export declare function getJsDocParam(node: JSDocableNode | undefined, paramName: string): string;
|
package/helpers/get-js-doc.js
CHANGED
|
@@ -8,17 +8,16 @@ exports.getAllJsDocTags = getAllJsDocTags;
|
|
|
8
8
|
exports.hasJsDocTag = hasJsDocTag;
|
|
9
9
|
exports.getJsDocParam = getJsDocParam;
|
|
10
10
|
const tsdoc_1 = require("@microsoft/tsdoc");
|
|
11
|
-
const tsdoc_2 = require("@microsoft/tsdoc");
|
|
12
11
|
const core_1 = require("@ng-doc/core");
|
|
13
12
|
const markdown_to_html_1 = require("./markdown-to-html");
|
|
14
13
|
class Formatter {
|
|
15
14
|
static renderDocNode(docNode) {
|
|
16
15
|
let result = '';
|
|
17
16
|
if (docNode) {
|
|
18
|
-
if (docNode instanceof
|
|
17
|
+
if (docNode instanceof tsdoc_1.DocExcerpt) {
|
|
19
18
|
result += docNode.content.toString();
|
|
20
19
|
}
|
|
21
|
-
for (const childNode of docNode.getChildNodes()) {
|
|
20
|
+
for (const childNode of Formatter.filterOutStatusTag(docNode.getChildNodes())) {
|
|
22
21
|
result += Formatter.renderDocNode(childNode);
|
|
23
22
|
}
|
|
24
23
|
}
|
|
@@ -31,6 +30,25 @@ class Formatter {
|
|
|
31
30
|
}
|
|
32
31
|
return result;
|
|
33
32
|
}
|
|
33
|
+
static filterOutStatusTag(docNodes) {
|
|
34
|
+
if (docNodes.length < 2)
|
|
35
|
+
return docNodes;
|
|
36
|
+
const result = [];
|
|
37
|
+
for (let i = 0; i < docNodes.length; i += 2) {
|
|
38
|
+
const node1 = docNodes.at(i), node2 = docNodes.at(i + 1);
|
|
39
|
+
if (node1 instanceof tsdoc_1.DocErrorText &&
|
|
40
|
+
node1.text === '@' &&
|
|
41
|
+
node2 instanceof tsdoc_1.DocPlainText &&
|
|
42
|
+
node2.text.startsWith('status:')) {
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
if (node1)
|
|
46
|
+
result.push(node1);
|
|
47
|
+
if (node2)
|
|
48
|
+
result.push(node2);
|
|
49
|
+
}
|
|
50
|
+
return result;
|
|
51
|
+
}
|
|
34
52
|
}
|
|
35
53
|
exports.Formatter = Formatter;
|
|
36
54
|
/**
|
|
@@ -38,6 +56,8 @@ exports.Formatter = Formatter;
|
|
|
38
56
|
* @param node
|
|
39
57
|
*/
|
|
40
58
|
function getJsDocDescription(node) {
|
|
59
|
+
if (!node)
|
|
60
|
+
return '';
|
|
41
61
|
const jsDocs = (0, core_1.asArray)(node.getJsDocs()[0]);
|
|
42
62
|
const tsdocParser = new tsdoc_1.TSDocParser();
|
|
43
63
|
const parserContext = tsdocParser.parseString(jsDocs[0]?.getText() ?? '');
|
|
@@ -49,6 +69,8 @@ function getJsDocDescription(node) {
|
|
|
49
69
|
* @param tagName
|
|
50
70
|
*/
|
|
51
71
|
function getJsDocTag(node, tagName) {
|
|
72
|
+
if (!node)
|
|
73
|
+
return '';
|
|
52
74
|
const jsDocs = (0, core_1.asArray)(node.getJsDocs()[0]);
|
|
53
75
|
const tag = jsDocs
|
|
54
76
|
.map((doc) => doc.getStructure())
|
|
@@ -64,6 +86,8 @@ function getJsDocTag(node, tagName) {
|
|
|
64
86
|
* @param tagName
|
|
65
87
|
*/
|
|
66
88
|
function getJsDocTags(node, tagName) {
|
|
89
|
+
if (!node)
|
|
90
|
+
return [];
|
|
67
91
|
const jsDocs = (0, core_1.asArray)(node.getJsDocs()[0]);
|
|
68
92
|
const tags = jsDocs
|
|
69
93
|
.map((doc) => doc.getStructure())
|
|
@@ -78,6 +102,8 @@ function getJsDocTags(node, tagName) {
|
|
|
78
102
|
* @param node
|
|
79
103
|
*/
|
|
80
104
|
function getAllJsDocTags(node) {
|
|
105
|
+
if (!node)
|
|
106
|
+
return {};
|
|
81
107
|
const jsDocs = (0, core_1.asArray)(node.getJsDocs()[0]);
|
|
82
108
|
const tags = jsDocs
|
|
83
109
|
.map((doc) => doc.getStructure())
|
|
@@ -99,6 +125,8 @@ function getAllJsDocTags(node) {
|
|
|
99
125
|
* @param tagName
|
|
100
126
|
*/
|
|
101
127
|
function hasJsDocTag(node, tagName) {
|
|
128
|
+
if (!node)
|
|
129
|
+
return false;
|
|
102
130
|
const jsDocs = (0, core_1.asArray)(node.getJsDocs()[0]);
|
|
103
131
|
return jsDocs
|
|
104
132
|
.map((doc) => doc.getStructure())
|
|
@@ -112,10 +140,12 @@ function hasJsDocTag(node, tagName) {
|
|
|
112
140
|
* @param paramName
|
|
113
141
|
*/
|
|
114
142
|
function getJsDocParam(node, paramName) {
|
|
143
|
+
if (!node)
|
|
144
|
+
return '';
|
|
115
145
|
const jsDocs = (0, core_1.asArray)(node.getJsDocs()[0]);
|
|
116
146
|
const tsdocParser = new tsdoc_1.TSDocParser();
|
|
117
147
|
const parserContext = tsdocParser.parseString(jsDocs[0]?.getText() ?? '');
|
|
118
|
-
const param = Formatter.renderDocNodes(parserContext.docComment.params.tryGetBlockByName(paramName)?.getChildNodes() ?? []);
|
|
148
|
+
const param = Formatter.renderDocNodes(parserContext.docComment.params.tryGetBlockByName(paramName)?.content?.getChildNodes() ?? []);
|
|
119
149
|
return (0, markdown_to_html_1.markdownToHtml)(param).trim();
|
|
120
150
|
}
|
|
121
151
|
//# sourceMappingURL=get-js-doc.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-js-doc.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/get-js-doc.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"get-js-doc.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/get-js-doc.ts"],"names":[],"mappings":";;;AAgEA,kDASC;AAOD,kCAWC;AAOD,oCAWC;AAMD,0CAsBC;AAOD,kCASC;AAOD,sCAWC;AA3KD,4CAM0B;AAC1B,uCAAkD;AAGlD,yDAAoD;AAEpD,MAAa,SAAS;IACpB,MAAM,CAAC,aAAa,CAAC,OAAgB;QACnC,IAAI,MAAM,GAAW,EAAE,CAAC;QACxB,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,OAAO,YAAY,kBAAU,EAAE,CAAC;gBAClC,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;YACvC,CAAC;YACD,KAAK,MAAM,SAAS,IAAI,SAAS,CAAC,kBAAkB,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC,EAAE,CAAC;gBAC9E,MAAM,IAAI,SAAS,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;YAC/C,CAAC;QACH,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,CAAC,cAAc,CAAC,QAA4B;QAChD,IAAI,MAAM,GAAW,EAAE,CAAC;QACxB,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;YAC/B,MAAM,IAAI,SAAS,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAC7C,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAEO,MAAM,CAAC,kBAAkB,CAAC,QAA4B;QAC5D,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC;YAAE,OAAO,QAAQ,CAAC;QAEzC,MAAM,MAAM,GAAc,EAAE,CAAC;QAE7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC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AI,EAAE,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,KAAK,OAAO,CAAC,CAAC;SAC9D,MAAM,CAAC,gBAAS,CAAC;SACjB,IAAI,CAAC,OAAO,CAAC,CAAC;AACnB,CAAC;AAED;;;;GAIG;AACH,SAAgB,aAAa,CAAC,IAA+B,EAAE,SAAiB;IAC9E,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,CAAC;IACrB,MAAM,MAAM,GAAG,IAAA,cAAO,EAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5C,MAAM,WAAW,GAAG,IAAI,mBAAW,EAAE,CAAC;IACtC,MAAM,aAAa,GAAG,WAAW,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAE1E,MAAM,KAAK,GAAG,SAAS,CAAC,cAAc,CACpC,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,CAC7F,CAAC;IAEF,OAAO,IAAA,iCAAc,EAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC;AACtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-kind-type.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/get-kind-type.ts"],"names":[],"mappings":";;AASA,kCAUC;AAnBD,
|
|
1
|
+
{"version":3,"file":"get-kind-type.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/get-kind-type.ts"],"names":[],"mappings":";;AASA,kCAUC;AAnBD,uCAAmE;AACnE,uCAAgC;AAEhC,iEAA4D;AAE5D;;;GAGG;AACH,SAAgB,WAAW,CAAC,IAAU;IACpC,IAAI,eAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC;QAClC,KAAK,MAAM,SAAS,IAAI,2BAAoB,EAAE,CAAC;YAC7C,IAAI,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC;gBACjC,OAAO,SAAS,CAAC;YACnB,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,IAAA,yCAAkB,EAAC,IAAI,CAAC,CAAC;AAClC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-to-html.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/markdown-to-html.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"markdown-to-html.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/markdown-to-html.ts"],"names":[],"mappings":";;AAsBA,wCAsEC;;AA5FD,uCAA0C;AAC1C,+CAAyB;AACzB,mCAAgD;AAChD,qCAA8B;AAC9B,mDAA6B;AAG7B,wCAAkD;AAClD,qEAA+D;AAC/D,mCAAgC;AAEhC,MAAM,eAAe,GAAW,gCAAgC,CAAC;AAEjE;;;;;;;;GAQG;AACH,SAAgB,cAAc,CAC5B,QAAgB,EAChB,OAAgB,EAChB,aAAqC;IAErC,MAAM,QAAQ,GAAmB;QAC/B,IAAI,CAAC,IAAY,EAAE,IAAwB;YACzC,MAAM,EACJ,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,KAAK,EACL,MAAM,EACN,IAAI,GACL,GAAyB,IAAA,8BAAoB,EAAC,IAAI,EAAE,IAAI,EAAE,IAAI,YAAY,CAAC,CAAC;YAE7E,IAAI,IAAI,IAAI,OAAO,EAAE,CAAC;gBACpB,MAAM,gBAAgB,GAAW,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;gBAC1D,MAAM,WAAW,GAAW,EAAE;qBAC3B,YAAY,CAAC,gBAAgB,IAAI,EAAE,EAAE,MAAM,CAAC;qBAC5C,KAAK,CAAC,aAAG,CAAC;qBACV,KAAK,CAAC,aAAa,EAAE,WAAW,CAAC;qBACjC,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KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QACpC,CAAC;KACF,CAAC;IAEF,eAAM,CAAC,GAAG,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IAEzB,OAAO,eAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAW,CAAC;AAC5D,CAAC"}
|
package/helpers/no-empty.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-empty.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/no-empty.ts"],"names":[],"mappings":";;AAMA,0BAEC;AARD,
|
|
1
|
+
{"version":3,"file":"no-empty.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/no-empty.ts"],"names":[],"mappings":";;AAMA,0BAEC;AARD,uCAAyC;AAEzC;;;GAGG;AACH,SAAgB,OAAO,CAAI,GAAQ;IACjC,OAAO,GAAG,CAAC,MAAM,CAAC,gBAAS,CAAC,CAAC;AAC/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"not-empty-assets.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/not-empty-assets.ts"],"names":[],"mappings":";;AAMA,wCAEC;AAND;;;GAGG;AACH,SAAgB,cAAc,CAAC,MAAoB;
|
|
1
|
+
{"version":3,"file":"not-empty-assets.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/not-empty-assets.ts"],"names":[],"mappings":";;AAMA,wCAEC;AAND;;;GAGG;AACH,SAAgB,cAAc,CAAC,MAAoB;IACjD,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,MAAkB,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;AACrE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-playgrounds-ids.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/playground/get-playgrounds-ids.ts"],"names":[],"mappings":";;AAMA,8CAOC;AAbD,
|
|
1
|
+
{"version":3,"file":"get-playgrounds-ids.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/playground/get-playgrounds-ids.ts"],"names":[],"mappings":";;AAMA,8CAOC;AAbD,uCAA6E;AAE7E;;;GAGG;AACH,SAAgB,iBAAiB,CAAC,UAAmC;IACnE,OAAO,CACL,UAAU;SACP,aAAa,EAAE;SACf,MAAM,CAAC,eAAI,CAAC,oBAAoB,CAAC;SACjC,GAAG,CAAC,CAAC,CAAqB,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,CACrD,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-target-for-playground.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/playground/get-target-for-playground.ts"],"names":[],"mappings":";;AAcA,wDAqBC;AAnCD,uCAMkB;AAElB;;;;;GAKG;AACH,SAAgB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"get-target-for-playground.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/playground/get-target-for-playground.ts"],"names":[],"mappings":";;AAcA,wDAqBC;AAnCD,uCAMkB;AAElB;;;;;GAKG;AACH,SAAgB,sBAAsB,CACpC,UAAmC;IAEnC,MAAM,MAAM,GAAyC,UAAU,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAEtF,IAAI,eAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,CAAC;QACtC,MAAM,iBAAiB,GAA2B,MAAM,CAAC,cAAc,EAAE,CAAC;QAE1E,IAAI,eAAI,CAAC,YAAY,CAAC,iBAAiB,CAAC,EAAE,CAAC;YACzC,MAAM,WAAW,GAAqB,iBAAiB;iBACpD,OAAO,EAAE;gBACV,EAAE,SAAS,EAAE;gBACb,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC,CAAC;YAEzB,IAAI,eAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE,CAAC;gBACzC,OAAO,WAAW,CAAC;YACrB,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-accessor-chain.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/accessor/get-accessor-chain.ts"],"names":[],"mappings":";;AAuBA,4CA4CC;AAnED,uCAOkB;AAElB,oCAAyC;AACzC,wEAAmE;AACnE,uEAAkE;AAQlE;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,QAA6B;
|
|
1
|
+
{"version":3,"file":"get-accessor-chain.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/accessor/get-accessor-chain.ts"],"names":[],"mappings":";;AAuBA,4CA4CC;AAnED,uCAOkB;AAElB,oCAAyC;AACzC,wEAAmE;AACnE,uEAAkE;AAQlE;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,QAA6B;IAC5D,MAAM,MAAM,GAAqB,QAAQ,CAAC,SAAS,EAAE,CAAC;IACtD,MAAM,SAAS,GAA0B,EAAE,CAAC;IAC5C,MAAM,IAAI,GAAW,QAAQ,CAAC,OAAO,EAAE,CAAC;IAExC,IAAI,eAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC;QACpC,IAAA,qBAAa,EAAC,MAAM,EAAE,CAAC,GAAqB,EAAE,EAAE;YAC9C,IAAI,eAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAC5C,MAAM,MAAM,GAAuC,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;gBAE5E,IAAI,MAAM,EAAE,CAAC;oBACX,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;gBACzB,CAAC;YACH,CAAC;YAED,IAAI,eAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAC5C,MAAM,MAAM,GAAuC,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;gBAE5E,IAAI,MAAM,EAAE,CAAC;oBACX,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;gBACzB,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,uBAAuB;IACzB,CAAC;IAED,IAAI,eAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE,CAAC;QACxC,IAAA,qCAAgB,EAAC,MAAM,EAAE,CAAC,GAAyB,EAAE,EAAE;YACrD,IAAA,+CAAqB,EAAC,GAAG,CAAC;iBACvB,MAAM,CAAC,CAAC,GAAwB,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,IAAI,CAAC;iBAC5D,OAAO,CAAC,CAAC,GAAwB,EAAE,EAAE;gBACpC,IAAI,eAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,IAAI,eAAI,CAAC,wBAAwB,CAAC,GAAG,CAAC,EAAE,CAAC;oBAClF,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACtB,CAAC;gBAED,IAAI,eAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,IAAI,eAAI,CAAC,wBAAwB,CAAC,GAAG,CAAC,EAAE,CAAC;oBAClF,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACtB,CAAC;YACH,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-class-accessors.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/accessor/get-class-accessors.ts"],"names":[],"mappings":";;AAcA,8CA4BC;AA1CD,uCAAuC;AAQvC,oCAAyC;AAEzC;;;GAGG;AACH,SAAgB,iBAAiB,CAAC,GAAqB;
|
|
1
|
+
{"version":3,"file":"get-class-accessors.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/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 @@
|
|
|
1
|
-
{"version":3,"file":"get-interface-accessors.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/accessor/get-interface-accessors.ts"],"names":[],"mappings":";;AAeA,sDA8BC;AA7CD,uCAAuC;AACvC,uCAMkB;AAElB,4CAAgD;AAEhD;;;GAGG;AACH,SAAgB,qBAAqB,CAAC,GAAyB;
|
|
1
|
+
{"version":3,"file":"get-interface-accessors.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/accessor/get-interface-accessors.ts"],"names":[],"mappings":";;AAeA,sDA8BC;AA7CD,uCAAuC;AACvC,uCAMkB;AAElB,4CAAgD;AAEhD;;;GAGG;AACH,SAAgB,qBAAqB,CAAC,GAAyB;IAC7D,MAAM,SAAS,GAAqC,IAAI,GAAG,EAA+B,CAAC;IAE3F,IAAA,4BAAgB,EAAC,GAAG,EAAE,CAAC,CAAuB,EAAE,EAAE;QAChD,MAAM,OAAO,GAA6B,CAAC;aACxC,UAAU,EAAE;aACZ,MAAM,CAAC,eAAI,CAAC,wBAAwB,CAAwC,CAAC;QAEhF,MAAM,OAAO,GAA6B,CAAC;aACxC,UAAU,EAAE;aACZ,MAAM,CAAC,eAAI,CAAC,wBAAwB,CAAwC,CAAC;QAEhF,OAAO,CAAC,OAAO,CAAC,CAAC,MAA8B,EAAE,EAAE;YACjD,MAAM,IAAI,GAAW,MAAM,CAAC,OAAO,EAAE,CAAC;YAEtC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,CAAC;gBACjC,SAAS,CAAC,GAAG,CAAC,MAAM,IAAI,EAAE,EAAE,MAAM,CAAC,CAAC;YACtC,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,CAAC,OAAO,CAAC,CAAC,MAA8B,EAAE,EAAE;YACjD,MAAM,IAAI,GAAW,MAAM,CAAC,OAAO,EAAE,CAAC;YAEtC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,CAAC;gBACjC,SAAS,CAAC,GAAG,CAAC,MAAM,IAAI,EAAE,EAAE,MAAM,CAAC,CAAC;YACtC,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,IAAA,cAAO,EAAC,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC;AACrC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-base-class.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/class/find-base-class.ts"],"names":[],"mappings":";;AASA,sCAiBC;AAxBD,
|
|
1
|
+
{"version":3,"file":"find-base-class.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/class/find-base-class.ts"],"names":[],"mappings":";;AASA,sCAiBC;AAxBD,uDAAkD;AAElD;;;;GAIG;AACH,SAAgB,aAAa,CAC3B,GAAqB,EACrB,SAA6C;IAE7C,IAAI,SAAuC,CAAC;IAE5C,IAAA,+BAAa,EAAC,GAAG,EAAE,CAAC,CAAmB,EAAE,EAAE;QACzC,IAAI,CAAC,KAAK,GAAG,IAAI,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;YAC9B,SAAS,GAAG,CAAC,CAAC;YAEd,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;IAEH,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-class.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/class/find-class.ts"],"names":[],"mappings":";;AASA,8BAiBC;AAxBD,
|
|
1
|
+
{"version":3,"file":"find-class.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/class/find-class.ts"],"names":[],"mappings":";;AASA,8BAiBC;AAxBD,uDAAkD;AAElD;;;;GAIG;AACH,SAAgB,SAAS,CACvB,GAAqB,EACrB,SAA2C;IAE3C,IAAI,SAAuC,CAAC;IAE5C,IAAA,+BAAa,EAAC,GAAG,EAAE,CAAC,CAAmB,EAAE,EAAE;QACzC,IAAI,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;YACjB,SAAS,GAAG,CAAC,CAAC;YAEd,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;IAEH,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-by-scope.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/typescript/filter-by-scope.ts"],"names":[],"mappings":";;AAQA,sCAEC;AAVD,
|
|
1
|
+
{"version":3,"file":"filter-by-scope.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/typescript/filter-by-scope.ts"],"names":[],"mappings":";;AAQA,sCAEC;AAVD,uCAAuC;AAGvC;;;;GAIG;AACH,SAAgB,aAAa,CAAuB,KAAU,EAAE,KAAsB;IACpF,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,IAAO,EAAE,EAAE,CAAC,IAAA,cAAO,EAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;AAC7E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-by-static.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/typescript/filter-by-static.ts"],"names":[],"mappings":";;AAOA,wCAEC;AAPD;;;;GAIG;AACH,SAAgB,cAAc,CAA2B,KAAU,EAAE,QAAiB;
|
|
1
|
+
{"version":3,"file":"filter-by-static.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/typescript/filter-by-static.ts"],"names":[],"mappings":";;AAOA,wCAEC;AAPD;;;;GAIG;AACH,SAAgB,cAAc,CAA2B,KAAU,EAAE,QAAiB;IACpF,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,IAAO,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,QAAQ,CAAC,CAAC;AACjE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Node } from 'ts-morph';
|
|
2
2
|
/**
|
|
3
3
|
* Returns first node that has JSDoc comment, will return first node, if there are no comment nodes
|
|
4
4
|
* @param nodes
|
|
5
5
|
*/
|
|
6
|
-
export declare function firstNodeWithComment<T extends
|
|
6
|
+
export declare function firstNodeWithComment<T extends Node>(nodes: T[]): T | undefined;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.firstNodeWithComment = firstNodeWithComment;
|
|
4
|
+
const ts_morph_1 = require("ts-morph");
|
|
4
5
|
/**
|
|
5
6
|
* Returns first node that has JSDoc comment, will return first node, if there are no comment nodes
|
|
6
7
|
* @param nodes
|
|
7
8
|
*/
|
|
8
9
|
function firstNodeWithComment(nodes) {
|
|
9
|
-
return nodes.find((n) => n.getJsDocs().length) ?? nodes[0];
|
|
10
|
+
return nodes.find((n) => ts_morph_1.Node.isJSDocable(n) && n.getJsDocs().length) ?? nodes[0];
|
|
10
11
|
}
|
|
11
12
|
//# sourceMappingURL=first-node-with-comment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"first-node-with-comment.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/typescript/first-node-with-comment.ts"],"names":[],"mappings":";;AAMA,oDAEC;
|
|
1
|
+
{"version":3,"file":"first-node-with-comment.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/typescript/first-node-with-comment.ts"],"names":[],"mappings":";;AAMA,oDAEC;AARD,uCAAgC;AAEhC;;;GAGG;AACH,SAAgB,oBAAoB,CAAiB,KAAU;IAC7D,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAO,EAAE,EAAE,CAAC,eAAI,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;AAC1F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-object-expression-from-default.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/typescript/get-object-expression-from-default.ts"],"names":[],"mappings":";;AAYA,wEAYC;AAxBD,uCAMkB;AAElB;;;GAGG;AACH,SAAgB,8BAA8B,
|
|
1
|
+
{"version":3,"file":"get-object-expression-from-default.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/typescript/get-object-expression-from-default.ts"],"names":[],"mappings":";;AAYA,wEAYC;AAxBD,uCAMkB;AAElB;;;GAGG;AACH,SAAgB,8BAA8B,CAC5C,UAAsB;IAEtB,MAAM,aAAa,GAAqC,UAAU;SAC/D,uBAAuB,EAAE;QAC1B,EAAE,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAExB,IAAI,eAAI,CAAC,qBAAqB,CAAC,aAAa,CAAC,EAAE,CAAC;QAC9C,OAAO,aAAa,EAAE,0BAA0B,CAAC,qBAAU,CAAC,uBAAuB,CAAC,CAAC;IACvF,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -11,6 +11,7 @@ export * from './find-declarations';
|
|
|
11
11
|
export * from './first-node-with-comment';
|
|
12
12
|
export * from './get-object-expression-from-default';
|
|
13
13
|
export * from './interface';
|
|
14
|
+
export * from './is-named';
|
|
14
15
|
export * from './member';
|
|
15
16
|
export * from './method';
|
|
16
17
|
export * from './node';
|
|
@@ -14,6 +14,7 @@ tslib_1.__exportStar(require("./find-declarations"), exports);
|
|
|
14
14
|
tslib_1.__exportStar(require("./first-node-with-comment"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./get-object-expression-from-default"), exports);
|
|
16
16
|
tslib_1.__exportStar(require("./interface"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./is-named"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./member"), exports);
|
|
18
19
|
tslib_1.__exportStar(require("./method"), exports);
|
|
19
20
|
tslib_1.__exportStar(require("./node"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/typescript/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,2DAAiC;AACjC,kDAAwB;AACxB,2DAAiC;AACjC,+DAAqC;AACrC,yDAA+B;AAC/B,mEAAyC;AACzC,4DAAkC;AAClC,6DAAmC;AACnC,8DAAoC;AACpC,oEAA0C;AAC1C,+EAAqD;AACrD,sDAA4B;AAC5B,mDAAyB;AACzB,mDAAyB;AACzB,iDAAuB;AACvB,qDAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/typescript/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,2DAAiC;AACjC,kDAAwB;AACxB,2DAAiC;AACjC,+DAAqC;AACrC,yDAA+B;AAC/B,mEAAyC;AACzC,4DAAkC;AAClC,6DAAmC;AACnC,8DAAoC;AACpC,oEAA0C;AAC1C,+EAAqD;AACrD,sDAA4B;AAC5B,qDAA2B;AAC3B,mDAAyB;AACzB,mDAAyB;AACzB,iDAAuB;AACvB,qDAA2B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-interface.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/interface/find-interface.ts"],"names":[],"mappings":";;AAOA,sCA0BC;AAjCD,
|
|
1
|
+
{"version":3,"file":"find-interface.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/interface/find-interface.ts"],"names":[],"mappings":";;AAOA,sCA0BC;AAjCD,uCAAmF;AAEnF;;;;GAIG;AACH,SAAgB,aAAa,CAC3B,GAAyB,EACzB,EAAwC;IAExC,MAAM,aAAa,GAAqC,GAAG,CAAC;IAE5D,IAAI,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;QACtB,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,MAAM,GAAG,GAA2B,aAAa;SAC9C,UAAU,EAAE;SACZ,GAAG,CAAC,CAAC,IAAiC,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,SAAS,EAAE,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC,CAAC;SAC5F,MAAM,CAAC,CAAC,IAAsB,EAAE,EAAE,CAAC,eAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;QACtE,mEAAmE;SAClE,OAAO,EAA4B,CAAC;IAEvC,KAAK,MAAM,CAAC,IAAI,GAAG,EAAE,CAAC;QACpB,MAAM,UAAU,GAAqC,aAAa,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAE1E,IAAI,UAAU,EAAE,CAAC;YACf,OAAO,CAAC,CAAC;QACX,CAAC;IACH,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isNamed = isNamed;
|
|
4
|
+
const ts_morph_1 = require("ts-morph");
|
|
5
|
+
/**
|
|
6
|
+
* Helper for use in templates to check if a node has a name.
|
|
7
|
+
* @param node
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
function isNamed(node) {
|
|
11
|
+
return ts_morph_1.Node.isNamed(node);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=is-named.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-named.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/typescript/is-named.ts"],"names":[],"mappings":";;AAOA,0BAEC;AATD,uCAAgC;AAEhC;;;;GAIG;AACH,SAAgB,OAAO,CAAC,IAAsB;IAC5C,OAAO,eAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-interface-methods.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/method/get-interface-methods.ts"],"names":[],"mappings":";;AASA,kDAcC;AAvBD,
|
|
1
|
+
{"version":3,"file":"get-interface-methods.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/method/get-interface-methods.ts"],"names":[],"mappings":";;AASA,kDAcC;AAvBD,uCAAuC;AAGvC,4CAAgD;AAEhD;;;GAGG;AACH,SAAgB,mBAAmB,CAAC,GAAyB;IAC3D,MAAM,OAAO,GAAiC,IAAI,GAAG,EAA2B,CAAC;IAEjF,IAAA,4BAAgB,EAAC,GAAG,EAAE,CAAC,CAAuB,EAAE,EAAE;QAChD,CAAC,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,CAAC,MAAuB,EAAE,EAAE;YACjD,MAAM,IAAI,GAAW,MAAM,CAAC,OAAO,EAAE,CAAC;YAEtC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;gBACvB,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;YAC5B,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,IAAA,cAAO,EAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;AACnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort-by-nodes-name.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/node/sort-by-nodes-name.ts"],"names":[],"mappings":";;AAMA,0CAEC;AAND;;;GAGG;AACH,SAAgB,eAAe,CAAiC,KAAU;
|
|
1
|
+
{"version":3,"file":"sort-by-nodes-name.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/node/sort-by-nodes-name.ts"],"names":[],"mappings":";;AAMA,0CAEC;AAND;;;GAGG;AACH,SAAgB,eAAe,CAAiC,KAAU;IACxE,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAI,EAAE,CAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AAC1F,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Node } from 'ts-morph';
|
|
2
|
+
/**
|
|
3
|
+
* Resolves the parent node (TypeReference or TypeAliasDeclaration name)
|
|
4
|
+
* of a property that is defined in a type alias declaration.
|
|
5
|
+
*
|
|
6
|
+
* Specifically, this resolves type alias declarations that resolve to types
|
|
7
|
+
* that are "object-like", including:
|
|
8
|
+
* - IntersectionTypes,
|
|
9
|
+
* - TypeLiterals, and
|
|
10
|
+
* - TypeReferences (which resolve to IntersectionTypes or TypeLiterals)
|
|
11
|
+
*
|
|
12
|
+
* For other types (e.g. UnionType) it just defaults back to the existing
|
|
13
|
+
* rendering.
|
|
14
|
+
* @param property
|
|
15
|
+
* @param currentNode
|
|
16
|
+
* @note
|
|
17
|
+
* Similar to `getMemberParent` but handling type aliases declarations
|
|
18
|
+
* rather than member inheritance.
|
|
19
|
+
* @see libs/builder/helpers/typescript/member/get-member-parent.ts
|
|
20
|
+
*/
|
|
21
|
+
export declare function getDefinedInParent(property: Node, currentNode: Node): Node | undefined;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDefinedInParent = getDefinedInParent;
|
|
4
|
+
const ts_morph_1 = require("ts-morph");
|
|
5
|
+
/**
|
|
6
|
+
* Resolves the parent node (TypeReference or TypeAliasDeclaration name)
|
|
7
|
+
* of a property that is defined in a type alias declaration.
|
|
8
|
+
*
|
|
9
|
+
* Specifically, this resolves type alias declarations that resolve to types
|
|
10
|
+
* that are "object-like", including:
|
|
11
|
+
* - IntersectionTypes,
|
|
12
|
+
* - TypeLiterals, and
|
|
13
|
+
* - TypeReferences (which resolve to IntersectionTypes or TypeLiterals)
|
|
14
|
+
*
|
|
15
|
+
* For other types (e.g. UnionType) it just defaults back to the existing
|
|
16
|
+
* rendering.
|
|
17
|
+
* @param property
|
|
18
|
+
* @param currentNode
|
|
19
|
+
* @note
|
|
20
|
+
* Similar to `getMemberParent` but handling type aliases declarations
|
|
21
|
+
* rather than member inheritance.
|
|
22
|
+
* @see libs/builder/helpers/typescript/member/get-member-parent.ts
|
|
23
|
+
*/
|
|
24
|
+
function getDefinedInParent(property, currentNode) {
|
|
25
|
+
const propertyParent = property.getParent();
|
|
26
|
+
const excludeCurrentNode = (node) => (node === currentNode ? undefined : node);
|
|
27
|
+
if (propertyParent?.isKind(ts_morph_1.SyntaxKind.TypeLiteral)) {
|
|
28
|
+
return excludeCurrentNode(getDefinedInParent(propertyParent, currentNode) ?? propertyParent);
|
|
29
|
+
}
|
|
30
|
+
if (propertyParent?.isKind(ts_morph_1.SyntaxKind.IntersectionType)) {
|
|
31
|
+
return excludeCurrentNode(getDefinedInParent(propertyParent, currentNode) ?? propertyParent);
|
|
32
|
+
}
|
|
33
|
+
return excludeCurrentNode(propertyParent);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=get-defined-in-parent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-defined-in-parent.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/property/get-defined-in-parent.ts"],"names":[],"mappings":";;AAqBA,gDAcC;AAnCD,uCAA4C;AAE5C;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,kBAAkB,CAAC,QAAc,EAAE,WAAiB;IAClE,MAAM,cAAc,GAAG,QAAQ,CAAC,SAAS,EAAE,CAAC;IAE5C,MAAM,kBAAkB,GAAG,CAAC,IAAsB,EAAE,EAAE,CAAC,CAAC,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAEjG,IAAI,cAAc,EAAE,MAAM,CAAC,qBAAU,CAAC,WAAW,CAAC,EAAE,CAAC;QACnD,OAAO,kBAAkB,CAAC,kBAAkB,CAAC,cAAc,EAAE,WAAW,CAAC,IAAI,cAAc,CAAC,CAAC;IAC/F,CAAC;IAED,IAAI,cAAc,EAAE,MAAM,CAAC,qBAAU,CAAC,gBAAgB,CAAC,EAAE,CAAC;QACxD,OAAO,kBAAkB,CAAC,kBAAkB,CAAC,cAAc,EAAE,WAAW,CAAC,IAAI,cAAc,CAAC,CAAC;IAC/F,CAAC;IAED,OAAO,kBAAkB,CAAC,cAAc,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-interface-properties.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/property/get-interface-properties.ts"],"names":[],"mappings":";;AASA,wDAcC;AAvBD,
|
|
1
|
+
{"version":3,"file":"get-interface-properties.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/property/get-interface-properties.ts"],"names":[],"mappings":";;AASA,wDAcC;AAvBD,uCAAuC;AAGvC,4CAAgD;AAEhD;;;GAGG;AACH,SAAgB,sBAAsB,CAAC,GAAyB;IAC9D,MAAM,UAAU,GAAmC,IAAI,GAAG,EAA6B,CAAC;IAExF,IAAA,4BAAgB,EAAC,GAAG,EAAE,CAAC,CAAuB,EAAE,EAAE;QAChD,CAAC,CAAC,aAAa,EAAE,CAAC,OAAO,CAAC,CAAC,QAA2B,EAAE,EAAE;YACxD,MAAM,IAAI,GAAW,QAAQ,CAAC,OAAO,EAAE,CAAC;YAExC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;gBAC1B,UAAU,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;YACjC,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,IAAA,cAAO,EAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC;AACtC,CAAC"}
|
|
@@ -21,7 +21,7 @@ function getPropertyChain(property) {
|
|
|
21
21
|
});
|
|
22
22
|
// TODO: Add interfaces
|
|
23
23
|
}
|
|
24
|
-
if (ts_morph_1.Node.isInterfaceDeclaration(parent)) {
|
|
24
|
+
else if (ts_morph_1.Node.isInterfaceDeclaration(parent)) {
|
|
25
25
|
(0, interface_1.forAllInterfaces)(parent, (int) => {
|
|
26
26
|
const prop = int.getProperty(name);
|
|
27
27
|
if (prop) {
|
|
@@ -29,6 +29,10 @@ function getPropertyChain(property) {
|
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
+
else {
|
|
33
|
+
// type aliases etc don't have inheritance, so we just add the property itself
|
|
34
|
+
properties.push(property);
|
|
35
|
+
}
|
|
32
36
|
return properties;
|
|
33
37
|
}
|
|
34
38
|
//# sourceMappingURL=get-property-chain.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-property-chain.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/property/get-property-chain.ts"],"names":[],"mappings":";;AAeA,
|
|
1
|
+
{"version":3,"file":"get-property-chain.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/property/get-property-chain.ts"],"names":[],"mappings":";;AAeA,4CA+BC;AA9CD,uCAMkB;AAElB,oCAAyC;AACzC,4CAAgD;AAEhD;;;GAGG;AACH,SAAgB,gBAAgB,CAC9B,QAAiD;IAEjD,MAAM,MAAM,GAAqB,QAAQ,CAAC,SAAS,EAAE,CAAC;IACtD,MAAM,IAAI,GAAW,QAAQ,CAAC,OAAO,EAAE,CAAC;IACxC,MAAM,UAAU,GAAmD,EAAE,CAAC;IAEtE,IAAI,eAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC;QACpC,IAAA,qBAAa,EAAC,MAAM,EAAE,CAAC,GAAqB,EAAE,EAAE;YAC9C,MAAM,IAAI,GAAoC,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;YAEpE,IAAI,IAAI,EAAE,CAAC;gBACT,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,uBAAuB;IACzB,CAAC;SAAM,IAAI,eAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE,CAAC;QAC/C,IAAA,4BAAgB,EAAC,MAAM,EAAE,CAAC,GAAyB,EAAE,EAAE;YACrD,MAAM,IAAI,GAAkC,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;YAElE,IAAI,IAAI,EAAE,CAAC;gBACT,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;SAAM,CAAC;QACN,8EAA8E;QAC9E,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC5B,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PropertySignature, TypeAliasDeclaration } from 'ts-morph';
|
|
2
|
+
/**
|
|
3
|
+
* Traverse all of the properties of a type alias declaration,
|
|
4
|
+
* returning an array of all of the properties.
|
|
5
|
+
*
|
|
6
|
+
* Specifically, this resolves type alias declarations that resolve to types
|
|
7
|
+
* that are "object-like", including:
|
|
8
|
+
* - IntersectionTypes,
|
|
9
|
+
* - TypeLiterals, and
|
|
10
|
+
* - TypeReferences (which resolve to IntersectionTypes or TypeLiterals)
|
|
11
|
+
* @param ta
|
|
12
|
+
*/
|
|
13
|
+
export declare function getTypeAliasProperties(ta: TypeAliasDeclaration): PropertySignature[];
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getTypeAliasProperties = getTypeAliasProperties;
|
|
4
|
+
const core_1 = require("@ng-doc/core");
|
|
5
|
+
const ts_morph_1 = require("ts-morph");
|
|
6
|
+
/**
|
|
7
|
+
* Traverse all of the properties of a type alias declaration,
|
|
8
|
+
* returning an array of all of the properties.
|
|
9
|
+
*
|
|
10
|
+
* Specifically, this resolves type alias declarations that resolve to types
|
|
11
|
+
* that are "object-like", including:
|
|
12
|
+
* - IntersectionTypes,
|
|
13
|
+
* - TypeLiterals, and
|
|
14
|
+
* - TypeReferences (which resolve to IntersectionTypes or TypeLiterals)
|
|
15
|
+
* @param ta
|
|
16
|
+
*/
|
|
17
|
+
function getTypeAliasProperties(ta) {
|
|
18
|
+
const properties = new Map();
|
|
19
|
+
const signatures = [];
|
|
20
|
+
const getProperties = (typeNode) => {
|
|
21
|
+
if (typeNode.isKind(ts_morph_1.SyntaxKind.TypeLiteral)) {
|
|
22
|
+
const members = typeNode.getMembers();
|
|
23
|
+
members.forEach((member) => {
|
|
24
|
+
if (member.isKind(ts_morph_1.SyntaxKind.PropertySignature)) {
|
|
25
|
+
signatures.push(member);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
else if (typeNode?.isKind(ts_morph_1.SyntaxKind.IntersectionType)) {
|
|
30
|
+
const types = typeNode.getTypeNodes();
|
|
31
|
+
types.forEach((typ) => {
|
|
32
|
+
getProperties(typ);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
else if (typeNode.isKind(ts_morph_1.SyntaxKind.TypeReference)) {
|
|
36
|
+
const symbol = typeNode.getTypeName().getSymbol();
|
|
37
|
+
if (symbol) {
|
|
38
|
+
const declarations = symbol.getDeclarations();
|
|
39
|
+
declarations.forEach((decl) => {
|
|
40
|
+
if (decl.isKind(ts_morph_1.SyntaxKind.TypeLiteral)) {
|
|
41
|
+
getProperties(decl);
|
|
42
|
+
}
|
|
43
|
+
else if (decl.isKind(ts_morph_1.SyntaxKind.TypeAliasDeclaration)) {
|
|
44
|
+
const typeNode = decl.getTypeNode();
|
|
45
|
+
if (typeNode) {
|
|
46
|
+
getProperties(typeNode);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const typeNode = ta.getTypeNode();
|
|
54
|
+
if (typeNode) {
|
|
55
|
+
getProperties(typeNode);
|
|
56
|
+
}
|
|
57
|
+
signatures.forEach((property) => {
|
|
58
|
+
const name = property.getName();
|
|
59
|
+
// this may override the previous value (and we want the last one)
|
|
60
|
+
properties.set(name, property);
|
|
61
|
+
});
|
|
62
|
+
return (0, core_1.asArray)(properties.values());
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=get-type-alias-properties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-type-alias-properties.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/property/get-type-alias-properties.ts"],"names":[],"mappings":";;AAcA,wDAiDC;AA/DD,uCAAuC;AACvC,uCAAyF;AAEzF;;;;;;;;;;GAUG;AACH,SAAgB,sBAAsB,CAAC,EAAwB;IAC7D,MAAM,UAAU,GAAmC,IAAI,GAAG,EAA6B,CAAC;IAExF,MAAM,UAAU,GAAwB,EAAE,CAAC;IAE3C,MAAM,aAAa,GAAG,CAAC,QAAkB,EAAE,EAAE;QAC3C,IAAI,QAAQ,CAAC,MAAM,CAAC,qBAAU,CAAC,WAAW,CAAC,EAAE,CAAC;YAC5C,MAAM,OAAO,GAAG,QAAQ,CAAC,UAAU,EAAE,CAAC;YACtC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;gBACzB,IAAI,MAAM,CAAC,MAAM,CAAC,qBAAU,CAAC,iBAAiB,CAAC,EAAE,CAAC;oBAChD,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;gBAC1B,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;aAAM,IAAI,QAAQ,EAAE,MAAM,CAAC,qBAAU,CAAC,gBAAgB,CAAC,EAAE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AC,CAAC;IAEH,OAAO,IAAA,cAAO,EAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC;AACtC,CAAC"}
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./get-class-properties"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./get-defined-in-parent"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./get-interface-properties"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./get-property-assignment"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./get-property-chain"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./get-type-alias-properties"), exports);
|
|
8
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/property/index.ts"],"names":[],"mappings":";;;AAAA,iEAAuC;AACvC,qEAA2C;AAC3C,oEAA0C;AAC1C,+DAAqC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/property/index.ts"],"names":[],"mappings":";;;AAAA,iEAAuC;AACvC,kEAAwC;AACxC,qEAA2C;AAC3C,oEAA0C;AAC1C,+DAAqC;AACrC,sEAA4C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buffer-debounce.js","sourceRoot":"","sources":["../../../../libs/builder/operators/buffer-debounce.ts"],"names":[],"mappings":";;AAOA,wCAMC;AAZD,
|
|
1
|
+
{"version":3,"file":"buffer-debounce.js","sourceRoot":"","sources":["../../../../libs/builder/operators/buffer-debounce.ts"],"names":[],"mappings":";;AAOA,wCAMC;AAZD,8CAA6D;AAE7D;;;GAGG;AACH,SAAgB,cAAc,CAAI,QAAgB;IAChD,OAAO,CAAC,MAAqB,EAAE,EAAE;QAC/B,MAAM,YAAY,GAAkB,MAAM,CAAC,IAAI,CAAC,IAAA,iBAAK,GAAE,CAAC,CAAC;QAEzD,OAAO,YAAY,CAAC,IAAI,CAAC,IAAA,kBAAM,EAAC,YAAY,CAAC,IAAI,CAAC,IAAA,wBAAY,EAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9E,CAAC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-doc/builder",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.3.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"builders": "./builders.json",
|
|
6
6
|
"schematics": "./schematics/collection.json",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
]
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@ng-doc/core": "19.
|
|
15
|
-
"@ng-doc/utils": "19.
|
|
14
|
+
"@ng-doc/core": "19.3.0",
|
|
15
|
+
"@ng-doc/utils": "19.3.0",
|
|
16
16
|
"@angular-devkit/architect": ">=0.1900.0 < 0.2000.0",
|
|
17
17
|
"@angular-devkit/build-angular": ">=19.0.0 < 20.0.0",
|
|
18
18
|
"minimatch": "9.0.1",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/schematics/api/index.ts"],"names":[],"mappings":";;AAqBA,4BAoBC;AAzCD,2DAYoC;AAIpC;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,OAA4B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/schematics/api/index.ts"],"names":[],"mappings":";;AAqBA,4BAoBC;AAzCD,2DAYoC;AAIpC;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,OAA4B;IACnD,OAAO,CAAC,IAAU,EAAE,EAAE;QACpB,MAAM,QAAQ,GAAW,OAAO,EAAE,IAAI,IAAI,EAAE,CAAC;QAE7C,OAAO,IAAA,kBAAK,EAAC;YACX,IAAA,sBAAS,EACP,IAAA,kBAAK,EAAC,IAAA,gBAAG,EAAC,SAAS,CAAC,EAAE;gBACpB,IAAA,2BAAc,EAAC,EAAE,GAAG,OAAO,EAAE,CAAC;gBAC9B,IAAA,iBAAI,EAAC,QAAQ,CAAC;gBACd,IAAA,oBAAO,EAAC,CAAC,SAAoB,EAAE,EAAE;oBAC/B,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;wBAChC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;oBACpD,CAAC;oBACD,OAAO,SAAS,CAAC;gBACnB,CAAC,CAAC;aACH,CAAC,EACF,0BAAa,CAAC,SAAS,CACxB;SACF,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/schematics/category/index.ts"],"names":[],"mappings":";;AA2BA,4BA4CC;AAvED,oEAA6E;AAC7E,2DAYoC;AACpC,+BAAsC;AAEtC,sDAAuD;AACvD,+CAA4C;AAC5C,oCAAwE;AACxE,sFAAgF;AAGhF;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,OAAiC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/schematics/category/index.ts"],"names":[],"mappings":";;AA2BA,4BA4CC;AAvED,oEAA6E;AAC7E,2DAYoC;AACpC,+BAAsC;AAEtC,sDAAuD;AACvD,+CAA4C;AAC5C,oCAAwE;AACxE,sFAAgF;AAGhF;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,OAAiC;IACxD,OAAO,CAAC,IAAU,EAAE,EAAE;QACpB,OAAO,CAAC,KAAK,GAAG,IAAA,gBAAQ,EAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAExC,MAAM,YAA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AAI,EAAC,IAAI,CAAC;gBACV,IAAA,oBAAO,EAAC,CAAC,SAAoB,EAAE,EAAE;oBAC/B,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;wBAChC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;oBACpD,CAAC;oBACD,OAAO,SAAS,CAAC;gBACnB,CAAC,CAAC;aACH,CAAC,EACF,0BAAa,CAAC,SAAS,CACxB;SACF,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/builder/schematics/migrations/standalone-pages/index.ts"],"names":[],"mappings":";;AAuBA,0BAuCC;;AA7DD,uCAakB;AAClB,mDAA6B;AAI7B;;;GAGG;AACH,SAAgB,OAAO,CAAC,OAAmC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/builder/schematics/migrations/standalone-pages/index.ts"],"names":[],"mappings":";;AAuBA,0BAuCC;;AA7DD,uCAakB;AAClB,mDAA6B;AAI7B;;;GAGG;AACH,SAAgB,OAAO,CAAC,OAAmC;IACzD,OAAO,CAAC,IAAU,EAAE,EAAE;QACpB,IAAA,2BAAgB,EACd,IAAA,wBAAa,EAAC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,8BAA8B,EAAE,sBAAsB,CAAC,CAAC,CAC5F,CAAC;QAEF,MAAM,WAAW,GAAG,IAAA,yBAAc,EAAC,8BAA8B,CAAC,CAAC;QAEnE,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;YACrC,MAAM,cAAc,GAAG,IAAA,yBAAc,EACnC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,gBAAgB,EAAE,EAAE,gBAAgB,CAAC,CAC3D,CAAC,CAAC,CAAC,CAAC;YAEL,IAAI,CAAC,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,CAAC,CACd,CAAC;YACJ,CAAC,CAAC;iBACD,IAAI,EAAE,CAAC;YAEV,WAAW;iBACR,aAAa,EAAE;iBACf,qBAAqB,CACpB,OAAO,CAAC,GAAG,CAAC,CAAC,iBAAoC,EAAE,EAAE,CAAC,iBAAiB,CAAC,YAAY,EAAE,CAAC,CACxF,CAAC;QACN,CAAC;IACH,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,SAAS,SAAS,CAAC,IAAU,EAAE,MAAY;IACzC,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QACpB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAC,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;IAE3B,IAAI,CAAC,EAAE,CAAC;QACN,OAAO,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
{% extends "api/base.html.nunj" %}
|
|
2
2
|
|
|
3
|
+
{% import "helpers/properties.html.nunj" as propertiesMacro %}
|
|
3
4
|
{% import "helpers/code.html.nunj" as codeMacro %}
|
|
4
5
|
|
|
5
6
|
{% block overview %}
|
|
7
|
+
{%- set properties = declaration | getTypeAliasProperties | excludeByJsDocTags('internal') | filterUselessMembers | sortByNodesName -%}
|
|
8
|
+
|
|
9
|
+
{% if properties.length -%}
|
|
10
|
+
<h2>Properties</h2>
|
|
11
|
+
{{ propertiesMacro.render(properties, declaration, 'definedIn') }}
|
|
12
|
+
{%- endif %}
|
|
13
|
+
|
|
6
14
|
<h2>Presentation</h2>
|
|
7
15
|
{{ codeMacro.render(declaration | typeAliasPresentation, "typescript", false) }}
|
|
8
16
|
{% endblock %}
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
{% import "helpers/status.html.nunj" as statusMacro %}
|
|
5
5
|
{% set examplesColSpan = 3 %}
|
|
6
6
|
|
|
7
|
-
{
|
|
7
|
+
{# mode='inheritedFrom' (classes/interfaces) or mode='definedIn' (type aliases) #}
|
|
8
|
+
{% macro render(properties, origin, mode='inheritedFrom') %}
|
|
8
9
|
<table class="ng-doc-api-table sticky first-colum-highlighted">
|
|
9
10
|
<thead>
|
|
10
11
|
<tr indexable="false">
|
|
@@ -16,6 +17,8 @@
|
|
|
16
17
|
<tbody>
|
|
17
18
|
{%- for property in properties %}
|
|
18
19
|
{% set propertyChain = property | getPropertyChain %}
|
|
20
|
+
{% set definedIn = property | getDefinedInParent(origin) %}
|
|
21
|
+
{% set definedInHasName = definedIn | isNamed %}
|
|
19
22
|
{% set inheritedFrom = property | getInheritedParent(origin) %}
|
|
20
23
|
{% set overriddenMember = property | getOverriddenMember %}
|
|
21
24
|
{% set implementedMember = property | getImplementedMember %}
|
|
@@ -26,7 +29,9 @@
|
|
|
26
29
|
{{ decoratorsMacro.render(property.getDecorators(), true) if property.getDecorators }}
|
|
27
30
|
<span>{{ property.getName() }}{{ tagsMacro.render(property, "badge") }}</span>
|
|
28
31
|
<div class="ng-doc-node-details">
|
|
29
|
-
{%- if
|
|
32
|
+
{%- if mode == 'definedIn' and definedIn and definedInHasName %}
|
|
33
|
+
defined in <code>{{ definedIn.getName() }}</code>
|
|
34
|
+
{%- elseif mode == 'inheritedFrom' and inheritedFrom %}
|
|
30
35
|
inherited from <code>{{ inheritedFrom.getName() }}</code>
|
|
31
36
|
{%- elseif overriddenMember %}
|
|
32
37
|
overrides
|
|
@@ -37,7 +42,7 @@
|
|
|
37
42
|
{%- endif %}
|
|
38
43
|
</div>
|
|
39
44
|
</td>
|
|
40
|
-
<td>{{ typeMacro.type(property) }}</td>
|
|
45
|
+
<td class="ng-doc-api-table-type">{{ typeMacro.type(property) }}</td>
|
|
41
46
|
<td>
|
|
42
47
|
<div class="ng-doc-api-status">
|
|
43
48
|
{{ statusMacro.render(property) }}
|
package/templates/routes.ts.nunj
CHANGED
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import {Routes} from '@angular/router';
|
|
3
|
+
{%- macro categoryImport(entry) -%}
|
|
4
|
+
{%- if entry.isCategory %}
|
|
5
|
+
import {{ entry.id }} from '{{ curDir | createImportPath(entry.path) }}';
|
|
6
|
+
{%- endif -%}
|
|
7
|
+
{%- endmacro -%}
|
|
8
|
+
|
|
9
|
+
{%- for entry in entries -%}
|
|
10
|
+
{{ categoryImport(entry.item) }}
|
|
11
|
+
{%- endfor %}
|
|
3
12
|
|
|
4
13
|
export const NG_DOC_ROUTING: Routes = [
|
|
5
14
|
{%- macro route(entry) %}
|
|
6
15
|
{
|
|
7
16
|
path: '{{ entry.item.route }}',
|
|
8
17
|
title: `{{ entry.item.title | toTemplateString }}`,
|
|
18
|
+
{%- if entry.item.isCategory %}
|
|
19
|
+
providers: [
|
|
20
|
+
...({{ entry.item.id }}.providers ?? []),
|
|
21
|
+
],
|
|
22
|
+
{%- endif %}
|
|
9
23
|
{%- if entry.children.length %}
|
|
10
24
|
children: [{
|
|
11
25
|
path: '',
|