@ng-doc/builder 16.0.1 → 16.1.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.d.ts +1 -3
- package/browser/index.js +10 -10
- package/browser/index.js.map +1 -1
- package/dev-server/index.js +9 -1
- package/dev-server/index.js.map +1 -1
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/api-documentation/ng-doc.category.js +32 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/api-documentation/templating/ng-doc.page.js +44 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/customization/layout/ng-doc.page.js +42 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/customization/ng-doc.category.js +31 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/customization/search/ng-doc.page.js +42 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/customization/themes/ng-doc.page.js +43 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/customization/type-controls/ng-doc.page.js +43 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/develop/ng-doc.page.js +47 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/features/keywords/ng-doc.page.js +41 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/features/ng-doc.category.js +30 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/file-entities/api/ng-doc.page.js +43 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/file-entities/category/ng-doc.page.js +43 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/file-entities/dependencies/ng-doc.page.js +43 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/file-entities/ng-doc.category.js +31 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/file-entities/page/ng-doc.page.js +44 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/getting-started/configuration/ng-doc.page.js +42 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/getting-started/installation/ng-doc.page.js +42 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/getting-started/ng-doc.category.js +31 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/getting-started/what-is-ng-doc/ng-doc.page.js +41 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/guides/demo/ng-doc.page.js +43 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/guides/demo-pane/ng-doc.page.js +43 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/guides/ng-doc.category.js +31 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/guides/playground/ng-doc.page.js +42 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/guides/snippets/ng-doc.page.js +43 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/guides/templating/ng-doc.page.js +43 -0
- package/engine/.cache/apps/ng-doc/src/app/pages/docs/ng-doc.api.js +53 -0
- package/engine/builder.js +6 -6
- package/engine/builder.js.map +1 -1
- package/engine/entities/abstractions/entity.d.ts +0 -3
- package/engine/entities/abstractions/entity.js +4 -52
- package/engine/entities/abstractions/entity.js.map +1 -1
- package/engine/entities/abstractions/route.entity.js.map +1 -1
- package/engine/entities/api-page.entity.d.ts +0 -2
- package/engine/entities/api-page.entity.js +19 -25
- package/engine/entities/api-page.entity.js.map +1 -1
- package/engine/entities/api.entity.js.map +1 -1
- package/engine/entities/dependencies.entity.js +6 -4
- package/engine/entities/dependencies.entity.js.map +1 -1
- package/engine/entities/page.entity.d.ts +0 -2
- package/engine/entities/page.entity.js +19 -22
- package/engine/entities/page.entity.js.map +1 -1
- package/engine/entity-life-cycle.js +2 -1
- package/engine/entity-life-cycle.js.map +1 -1
- package/engine/entity-store.js.map +1 -1
- package/engine/extentions/index.extension.js.map +1 -1
- package/engine/renderer.js +1 -2
- package/engine/renderer.js.map +1 -1
- package/engine/template-filters.d.ts +2 -2
- package/engine/template-filters.js +3 -1
- package/engine/template-filters.js.map +1 -1
- package/helpers/build-indexes.js +0 -5
- package/helpers/build-indexes.js.map +1 -1
- package/helpers/create-builder-context.js +5 -10
- package/helpers/create-builder-context.js.map +1 -1
- package/helpers/get-playground-properties.js +3 -4
- package/helpers/get-playground-properties.js.map +1 -1
- package/helpers/index.d.ts +3 -0
- package/helpers/index.js +3 -0
- package/helpers/index.js.map +1 -1
- package/helpers/presentation.js.map +1 -1
- package/helpers/print-progress.d.ts +6 -0
- package/helpers/print-progress.js +19 -0
- package/helpers/print-progress.js.map +1 -0
- package/helpers/process-html.d.ts +8 -0
- package/helpers/process-html.js +23 -0
- package/helpers/process-html.js.map +1 -0
- package/helpers/to-template-string.d.ts +5 -0
- package/helpers/to-template-string.js +13 -0
- package/helpers/to-template-string.js.map +1 -0
- package/helpers/typescript/display-type.d.ts +4 -3
- package/helpers/typescript/display-type.js +5 -4
- package/helpers/typescript/display-type.js.map +1 -1
- package/interfaces/configuration.d.ts +11 -0
- package/interfaces/schema.d.ts +0 -5
- package/operators/index.d.ts +3 -1
- package/operators/index.js +2 -0
- package/operators/index.js.map +1 -1
- package/operators/progress.d.ts +8 -0
- package/operators/progress.js +15 -0
- package/operators/progress.js.map +1 -0
- package/package.json +5 -6
- package/templates/api-page.module.ts.nunj +3 -1
- package/templates/api.module.ts.nunj +1 -0
- package/templates/component-assets.ts.nunj +1 -8
- package/templates/page.module.ts.nunj +3 -1
- package/templates/playgrounds.ts.nunj +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-builder-context.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/create-builder-context.ts"],"names":[],"mappings":";;;;AAEA,uCAAqD;AACrD,mDAA6B;AAG7B,+CAAyC;AAEzC;;;;;;GAMG;AACH,SAAgB,oBAAoB,CACnC,aAA8B,EAC9B,OAAoB,EACpB,OAAuB;;IAEvB,MAAM,SAAS,GAAW,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,SAAS,EAAE,MAAA,MAAA,OAAO,CAAC,MAAM,0CAAE,OAAO,mCAAI,KAAK,CAAC,CAAC;IACxG,MAAM,WAAW,GAAW,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAW,CAAC,CAAC;IAE1E,
|
|
1
|
+
{"version":3,"file":"create-builder-context.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/create-builder-context.ts"],"names":[],"mappings":";;;;AAEA,uCAAqD;AACrD,mDAA6B;AAG7B,+CAAyC;AAEzC;;;;;;GAMG;AACH,SAAgB,oBAAoB,CACnC,aAA8B,EAC9B,OAAoB,EACpB,OAAuB;;IAEvB,MAAM,SAAS,GAAW,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,SAAS,EAAE,MAAA,MAAA,OAAO,CAAC,MAAM,0CAAE,OAAO,mCAAI,KAAK,CAAC,CAAC;IACxG,MAAM,WAAW,GAAW,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAW,CAAC,CAAC;IAE1E,MAAM,MAAM,GAAuB,IAAA,wBAAU,EAAC,WAAW,CAAC,CAAC;IAE3D,OAAO;QACN,QAAQ,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,mCAAI,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;QAC/D,MAAM;QACN,OAAO;QACP,mBAAmB,EAAE,MAAC,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAG,qBAAqB,CAAoB,mCAAI,KAAK;QACxF,UAAU,EAAE,CAAA,MAAA,MAAM,CAAC,KAAK,0CAAE,MAAM,EAAC,CAAC,CAAC,IAAA,cAAO,EAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;QACxE,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC;QAC1C,SAAS;QACT,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC;QACpC,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC;KAC1C,CAAC;AACH,CAAC;AArBD,oDAqBC"}
|
|
@@ -38,8 +38,7 @@ function getTemplateForPlayground(expression, playgroundId) {
|
|
|
38
38
|
const template = playground.getProperty('template');
|
|
39
39
|
if (ts_morph_1.Node.isPropertyAssignment(template)) {
|
|
40
40
|
const templateInitializer = template.getInitializer();
|
|
41
|
-
if (ts_morph_1.Node.isStringLiteral(templateInitializer) ||
|
|
42
|
-
ts_morph_1.Node.isNoSubstitutionTemplateLiteral(templateInitializer)) {
|
|
41
|
+
if (ts_morph_1.Node.isStringLiteral(templateInitializer) || ts_morph_1.Node.isNoSubstitutionTemplateLiteral(templateInitializer)) {
|
|
43
42
|
return templateInitializer.getLiteralValue();
|
|
44
43
|
}
|
|
45
44
|
}
|
|
@@ -97,7 +96,7 @@ function getPlaygroundClassProperties(declaration) {
|
|
|
97
96
|
.getDecorator('Input')) === null || _a === void 0 ? void 0 : _a.getArguments()[0]) === null || _b === void 0 ? void 0 : _b.getText().replace(/^["']|['"]$/g, '')) !== null && _c !== void 0 ? _c : property.getName();
|
|
98
97
|
properties[property.getName()] = {
|
|
99
98
|
name: inputName,
|
|
100
|
-
type: (0, typescript_1.displayType)(property),
|
|
99
|
+
type: (0, typescript_1.displayType)(property, ts_morph_1.TypeFormatFlags.NoTruncation | ts_morph_1.TypeFormatFlags.UseSingleQuotesForStringLiteralType),
|
|
101
100
|
default: (_d = property.getInitializer()) === null || _d === void 0 ? void 0 : _d.getText(),
|
|
102
101
|
description: property
|
|
103
102
|
.getJsDocs()
|
|
@@ -105,7 +104,7 @@ function getPlaygroundClassProperties(declaration) {
|
|
|
105
104
|
options: property
|
|
106
105
|
.getType()
|
|
107
106
|
.getUnionTypes()
|
|
108
|
-
.map((type) => type.getText(undefined, ts_morph_1.TypeFormatFlags.NoTruncation)),
|
|
107
|
+
.map((type) => type.getText(undefined, ts_morph_1.TypeFormatFlags.NoTruncation | ts_morph_1.TypeFormatFlags.UseSingleQuotesForStringLiteralType)),
|
|
109
108
|
};
|
|
110
109
|
return properties;
|
|
111
110
|
}, {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-playground-properties.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/get-playground-properties.ts"],"names":[],"mappings":";;;AACA,uCAUkB;AAElB,iEAAyD;AACzD,6CAAyC;AAEzC;;;;GAIG;AACH,SAAgB,sBAAsB,CACrC,UAAmC,EACnC,YAAoB;;IAEpB,MAAM,UAAU,GAAwC,IAAA,wCAAiB,EAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IAEpG,IAAI,UAAU,EAAE;QACf,MAAM,MAAM,GAAyC,UAAU,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAEtF,IAAI,eAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE;YACtC,MAAM,iBAAiB,GAA2B,MAAM,CAAC,cAAc,EAAE,CAAC;YAE1E,IAAI,eAAI,CAAC,YAAY,CAAC,iBAAiB,CAAC,EAAE;gBACzC,MAAM,WAAW,GAAqB,MAAA,MAAA,iBAAiB,CAAC,OAAO,EAAE,0CAAE,SAAS,EAAE,0CAAE,eAAe,GAAG,CAAC,CAAC,CAAC;gBAErG,IAAI,eAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE;oBACzC,OAAO,WAAW,CAAC;iBACnB;aACD;SACD;KACD;IAED,OAAO,SAAS,CAAC;AAClB,CAAC;AAvBD,wDAuBC;AAED;;;;GAIG;AACH,SAAgB,wBAAwB,CAAC,UAAmC,EAAE,YAAoB;IACjG,MAAM,UAAU,GAAwC,IAAA,wCAAiB,EAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IAEpG,IAAI,UAAU,EAAE;QACf,MAAM,QAAQ,GAAyC,UAAU,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QAE1F,IAAI,eAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,EAAE;YACxC,MAAM,mBAAmB,GAA2B,QAAQ,CAAC,cAAc,EAAE,CAAC;YAE9E,
|
|
1
|
+
{"version":3,"file":"get-playground-properties.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/get-playground-properties.ts"],"names":[],"mappings":";;;AACA,uCAUkB;AAElB,iEAAyD;AACzD,6CAAyC;AAEzC;;;;GAIG;AACH,SAAgB,sBAAsB,CACrC,UAAmC,EACnC,YAAoB;;IAEpB,MAAM,UAAU,GAAwC,IAAA,wCAAiB,EAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IAEpG,IAAI,UAAU,EAAE;QACf,MAAM,MAAM,GAAyC,UAAU,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAEtF,IAAI,eAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE;YACtC,MAAM,iBAAiB,GAA2B,MAAM,CAAC,cAAc,EAAE,CAAC;YAE1E,IAAI,eAAI,CAAC,YAAY,CAAC,iBAAiB,CAAC,EAAE;gBACzC,MAAM,WAAW,GAAqB,MAAA,MAAA,iBAAiB,CAAC,OAAO,EAAE,0CAAE,SAAS,EAAE,0CAAE,eAAe,GAAG,CAAC,CAAC,CAAC;gBAErG,IAAI,eAAI,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE;oBACzC,OAAO,WAAW,CAAC;iBACnB;aACD;SACD;KACD;IAED,OAAO,SAAS,CAAC;AAClB,CAAC;AAvBD,wDAuBC;AAED;;;;GAIG;AACH,SAAgB,wBAAwB,CAAC,UAAmC,EAAE,YAAoB;IACjG,MAAM,UAAU,GAAwC,IAAA,wCAAiB,EAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IAEpG,IAAI,UAAU,EAAE;QACf,MAAM,QAAQ,GAAyC,UAAU,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QAE1F,IAAI,eAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,EAAE;YACxC,MAAM,mBAAmB,GAA2B,QAAQ,CAAC,cAAc,EAAE,CAAC;YAE9E,IAAI,eAAI,CA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Y,GAAG,0BAAe,CAAC,mCAAmC,CAAC,CAC3G;SACF,CAAC;QAEF,OAAO,UAAU,CAAC;IACnB,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC;AA7BD,oEA6BC"}
|
package/helpers/index.d.ts
CHANGED
|
@@ -28,9 +28,12 @@ export * from './no-empty';
|
|
|
28
28
|
export * from './no-line-breaks';
|
|
29
29
|
export * from './not-empty-assets';
|
|
30
30
|
export * from './presentation';
|
|
31
|
+
export * from './print-progress';
|
|
32
|
+
export * from './process-html';
|
|
31
33
|
export * from './process-snippets';
|
|
32
34
|
export * from './repo-link';
|
|
33
35
|
export * from './slash';
|
|
34
36
|
export * from './sort-navigation-entities';
|
|
37
|
+
export * from './to-template-string';
|
|
35
38
|
export * from './typescript';
|
|
36
39
|
export * from './unique-name';
|
package/helpers/index.js
CHANGED
|
@@ -31,10 +31,13 @@ tslib_1.__exportStar(require("./no-empty"), exports);
|
|
|
31
31
|
tslib_1.__exportStar(require("./no-line-breaks"), exports);
|
|
32
32
|
tslib_1.__exportStar(require("./not-empty-assets"), exports);
|
|
33
33
|
tslib_1.__exportStar(require("./presentation"), exports);
|
|
34
|
+
tslib_1.__exportStar(require("./print-progress"), exports);
|
|
35
|
+
tslib_1.__exportStar(require("./process-html"), exports);
|
|
34
36
|
tslib_1.__exportStar(require("./process-snippets"), exports);
|
|
35
37
|
tslib_1.__exportStar(require("./repo-link"), exports);
|
|
36
38
|
tslib_1.__exportStar(require("./slash"), exports);
|
|
37
39
|
tslib_1.__exportStar(require("./sort-navigation-entities"), exports);
|
|
40
|
+
tslib_1.__exportStar(require("./to-template-string"), exports);
|
|
38
41
|
tslib_1.__exportStar(require("./typescript"), exports);
|
|
39
42
|
tslib_1.__exportStar(require("./unique-name"), exports);
|
|
40
43
|
//# sourceMappingURL=index.js.map
|
package/helpers/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,+DAAqC;AACrC,mEAAyC;AACzC,oEAA0C;AAC1C,8DAAoC;AACpC,wDAA8B;AAC9B,yDAA+B;AAC/B,gEAAsC;AACtC,8DAAoC;AACpC,mEAAyC;AACzC,8DAAoC;AACpC,wDAA8B;AAC9B,kEAAwC;AACxC,gEAAsC;AACtC,iEAAuC;AACvC,wEAA8C;AAC9C,mEAAyC;AACzC,yEAA+C;AAC/C,0DAAgC;AAChC,0DAAgC;AAChC,iEAAuC;AACvC,sEAA4C;AAC5C,6DAAmC;AACnC,iEAAuC;AACvC,qEAA2C;AAC3C,mDAAyB;AACzB,qDAA2B;AAC3B,2DAAiC;AACjC,6DAAmC;AACnC,yDAA+B;AAC/B,6DAAmC;AACnC,sDAA4B;AAC5B,kDAAwB;AACxB,qEAA2C;AAC3C,uDAA6B;AAC7B,wDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,+DAAqC;AACrC,mEAAyC;AACzC,oEAA0C;AAC1C,8DAAoC;AACpC,wDAA8B;AAC9B,yDAA+B;AAC/B,gEAAsC;AACtC,8DAAoC;AACpC,mEAAyC;AACzC,8DAAoC;AACpC,wDAA8B;AAC9B,kEAAwC;AACxC,gEAAsC;AACtC,iEAAuC;AACvC,wEAA8C;AAC9C,mEAAyC;AACzC,yEAA+C;AAC/C,0DAAgC;AAChC,0DAAgC;AAChC,iEAAuC;AACvC,sEAA4C;AAC5C,6DAAmC;AACnC,iEAAuC;AACvC,qEAA2C;AAC3C,mDAAyB;AACzB,qDAA2B;AAC3B,2DAAiC;AACjC,6DAAmC;AACnC,yDAA+B;AAC/B,2DAAiC;AACjC,yDAA+B;AAC/B,6DAAmC;AACnC,sDAA4B;AAC5B,kDAAwB;AACxB,qEAA2C;AAC3C,+DAAqC;AACrC,uDAA6B;AAC7B,wDAA8B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentation.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/presentation.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,
|
|
1
|
+
{"version":3,"file":"presentation.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/presentation.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,uCAckB;AAElB,+CAAyC;AACzC,6CAA4D;AAE5D;;;GAGG;AACH,SAAgB,uBAAuB,CAAC,WAAmC;IAC1E,MAAM,UAAU,GAAW,WAAW,CAAC,aAAa,EAAE,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAEhG,MAAM,YAAY,GAAW;QAC5B,iBAAiB,CAAC,WAAW,CAAC;QAC9B,kBAAkB,UAAU,MAAM;QAClC,IAAA,8BAAiB,EAAC,WAAW,CAAC;KAC9B;SACC,MAAM,CAAC,gBAAS,CAAC;SACjB,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;IAElB,OAAO,IAAA,wBAAU,EAAC,YAAY,EAAE,YAAY,CAAC,CAAC;AAC/C,CAAC;AAZD,0DAYC;AAED;;;GAGG;AACH,SAAgB,oBAAoB,CAAC,QAA6B;IACjE,MAAM,UAAU,GAAW,QAAQ,CAAC,aAAa,EAAE,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1F,MAAM,MAAM,GAAW,eAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC;IAC/E,MAAM,MAAM,GAAW,eAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC;QAC7D,CAAC,CAAC,GAAG,QAAQ,CAAC,OAAO,EAAE,KAAK;QAC5B,CAAC,CAAC,GAAG,QAAQ,CAAC,OAAO,EAAE,IAAI,UAAU,GAAG,CAAC;IAC1C,MAAM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CAAC,CAAC,CAAY,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,IAAI,CAAC;SAC1C,IAAI,CAAC,GAAG,CAAC,CAAC;AACb,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.printProgress = void 0;
|
|
4
|
+
const spinner_1 = require("@angular/cli/src/utilities/spinner");
|
|
5
|
+
let spinner;
|
|
6
|
+
/**
|
|
7
|
+
* Prints a progress message. If no message is passed, the message will be cleared.
|
|
8
|
+
*
|
|
9
|
+
* @param text - The message to print.
|
|
10
|
+
*/
|
|
11
|
+
function printProgress(text) {
|
|
12
|
+
spinner === null || spinner === void 0 ? void 0 : spinner.stop();
|
|
13
|
+
if (text) {
|
|
14
|
+
spinner = new spinner_1.Spinner(`NgDoc: ${text}`);
|
|
15
|
+
spinner.start();
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.printProgress = printProgress;
|
|
19
|
+
//# sourceMappingURL=print-progress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"print-progress.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/print-progress.ts"],"names":[],"mappings":";;;AAAA,gEAA2D;AAE3D,IAAI,OAAgB,CAAC;AAErB;;;;GAIG;AACH,SAAgB,aAAa,CAAC,IAAa;IAC1C,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,EAAE,CAAC;IAEhB,IAAI,IAAI,EAAE;QACT,OAAO,GAAG,IAAI,iBAAO,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC;QACxC,OAAO,CAAC,KAAK,EAAE,CAAC;KAChB;AACF,CAAC;AAPD,sCAOC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NgDocEntity } from '../engine/entities/abstractions/entity';
|
|
2
|
+
/**
|
|
3
|
+
* Processes html content for the current entity
|
|
4
|
+
*
|
|
5
|
+
* @param entity - The current entity
|
|
6
|
+
* @param html - The html content to process
|
|
7
|
+
*/
|
|
8
|
+
export declare function processHtml(entity: NgDocEntity, html: string): Promise<string>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.processHtml = void 0;
|
|
4
|
+
const entity_type_1 = require("./entity-type");
|
|
5
|
+
const import_es_module_1 = require("./import-es-module");
|
|
6
|
+
/**
|
|
7
|
+
* Processes html content for the current entity
|
|
8
|
+
*
|
|
9
|
+
* @param entity - The current entity
|
|
10
|
+
* @param html - The html content to process
|
|
11
|
+
*/
|
|
12
|
+
async function processHtml(entity, html) {
|
|
13
|
+
var _a;
|
|
14
|
+
const utils = await (0, import_es_module_1.importEsModule)('@ng-doc/utils');
|
|
15
|
+
return utils.htmlPostProcessor(html, {
|
|
16
|
+
headings: (_a = entity.context.config.guide) === null || _a === void 0 ? void 0 : _a.anchorHeadings,
|
|
17
|
+
route: (0, entity_type_1.isRouteEntity)(entity) ? entity.fullRoute : undefined,
|
|
18
|
+
addUsedKeyword: entity.usedKeywords.add.bind(entity.usedKeywords),
|
|
19
|
+
getKeyword: entity.builder.entities.getByKeyword.bind(entity.builder.entities),
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
exports.processHtml = processHtml;
|
|
23
|
+
//# sourceMappingURL=process-html.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-html.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/process-html.ts"],"names":[],"mappings":";;;AACA,+CAA4C;AAC5C,yDAAkD;AAIlD;;;;;GAKG;AACI,KAAK,UAAU,WAAW,CAAC,MAAmB,EAAE,IAAY;;IAClE,MAAM,KAAK,GAAU,MAAM,IAAA,iCAAc,EAAQ,eAAe,CAAC,CAAC;IAElE,OAAO,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE;QACpC,QAAQ,EAAE,MAAA,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,0CAAE,cAAc;QACrD,KAAK,EAAE,IAAA,2BAAa,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS;QAC3D,cAAc,EAAE,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC;QACjE,UAAU,EAAE,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC;KAC9E,CAAC,CAAC;AACJ,CAAC;AATD,kCASC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toTemplateString = void 0;
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param content
|
|
7
|
+
*/
|
|
8
|
+
function toTemplateString(content) {
|
|
9
|
+
var _a;
|
|
10
|
+
return (_a = content === null || content === void 0 ? void 0 : content.replace(/`/g, '\\`')) !== null && _a !== void 0 ? _a : '';
|
|
11
|
+
}
|
|
12
|
+
exports.toTemplateString = toTemplateString;
|
|
13
|
+
//# sourceMappingURL=to-template-string.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-template-string.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/to-template-string.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,OAAe;;IAC/C,OAAO,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,mCAAI,EAAE,CAAC;AAC5C,CAAC;AAFD,4CAEC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { Node } from 'ts-morph';
|
|
1
|
+
import { Node, TypeFormatFlags } from 'ts-morph';
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
* @param node
|
|
5
5
|
* @param typeFormatFlags
|
|
6
6
|
*/
|
|
7
|
-
export declare function displayType(node: Node): string;
|
|
7
|
+
export declare function displayType(node: Node, typeFormatFlags?: TypeFormatFlags): string;
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
10
10
|
* @param node
|
|
11
|
+
* @param typeFormatFlags
|
|
11
12
|
*/
|
|
12
|
-
export declare function displayReturnType(node: Node): string;
|
|
13
|
+
export declare function displayReturnType(node: Node, typeFormatFlags?: TypeFormatFlags): string;
|
|
@@ -7,19 +7,20 @@ const ts_morph_1 = require("ts-morph");
|
|
|
7
7
|
* @param node
|
|
8
8
|
* @param typeFormatFlags
|
|
9
9
|
*/
|
|
10
|
-
function displayType(node) {
|
|
10
|
+
function displayType(node, typeFormatFlags = ts_morph_1.TypeFormatFlags.NoTruncation) {
|
|
11
11
|
return ts_morph_1.Node.isTypeAliasDeclaration(node)
|
|
12
12
|
? node.getTypeNodeOrThrow().getText(undefined)
|
|
13
|
-
: node.getType().getText(undefined,
|
|
13
|
+
: node.getType().getText(undefined, typeFormatFlags);
|
|
14
14
|
}
|
|
15
15
|
exports.displayType = displayType;
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @param node
|
|
19
|
+
* @param typeFormatFlags
|
|
19
20
|
*/
|
|
20
|
-
function displayReturnType(node) {
|
|
21
|
+
function displayReturnType(node, typeFormatFlags = ts_morph_1.TypeFormatFlags.NoTruncation) {
|
|
21
22
|
if (ts_morph_1.Node.isReturnTyped(node)) {
|
|
22
|
-
return node.getReturnType().getText(undefined,
|
|
23
|
+
return node.getReturnType().getText(undefined, typeFormatFlags);
|
|
23
24
|
}
|
|
24
25
|
return '';
|
|
25
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"display-type.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/typescript/display-type.ts"],"names":[],"mappings":";;;AAAA,uCAA+C;AAE/C;;;;GAIG;AACH,SAAgB,WAAW,CAAC,IAAU;
|
|
1
|
+
{"version":3,"file":"display-type.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/typescript/display-type.ts"],"names":[],"mappings":";;;AAAA,uCAA+C;AAE/C;;;;GAIG;AACH,SAAgB,WAAW,CAAC,IAAU,EAAE,kBAAmC,0BAAe,CAAC,YAAY;IACtG,OAAO,eAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC;QACvC,CAAC,CAAC,IAAI,CAAC,kBAAkB,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC;QAC9C,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;AACvD,CAAC;AAJD,kCAIC;AAED;;;;GAIG;AACH,SAAgB,iBAAiB,CAAC,IAAU,EAAE,kBAAmC,0BAAe,CAAC,YAAY;IAC5G,IAAI,eAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE;QAC7B,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;KAChE;IACD,OAAO,EAAE,CAAC;AACX,CAAC;AALD,8CAKC"}
|
|
@@ -5,6 +5,11 @@ import { NgDocRepoConfig } from './repo-config';
|
|
|
5
5
|
* NgDoc configuration interface, that configure NgDoc library
|
|
6
6
|
*/
|
|
7
7
|
export interface NgDocConfiguration {
|
|
8
|
+
/**
|
|
9
|
+
* The builder that will be used to build the Angular application. (`webpack` is used by default)
|
|
10
|
+
* You can use `esbuild`, then NgDoc will also use `Vite` for the development server.
|
|
11
|
+
*/
|
|
12
|
+
angularBuilder?: 'esbuild' | 'webpack';
|
|
8
13
|
/**
|
|
9
14
|
* List of paths to your documentation location (e.g. "src/app")
|
|
10
15
|
*/
|
|
@@ -40,4 +45,10 @@ export interface NgDocGuideConfiguration {
|
|
|
40
45
|
* Defines a list of the heading levels for which the anchor will be generated.
|
|
41
46
|
*/
|
|
42
47
|
anchorHeadings?: NgDocHeading[];
|
|
48
|
+
/**
|
|
49
|
+
* Defines a list of the external packages that can be used in the guide entity.
|
|
50
|
+
* For example, if you use `fs` package in some function that is used for generating some value for `data` field,
|
|
51
|
+
* then you should add `fs` to this list, to make sure that the `fs` package will be available in the guide.
|
|
52
|
+
*/
|
|
53
|
+
externalPackages?: string[];
|
|
43
54
|
}
|
package/interfaces/schema.d.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import { NgDocConfiguration } from './configuration';
|
|
2
1
|
export interface NgDocSchema {
|
|
3
2
|
browserTarget: string;
|
|
4
3
|
main: string;
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated Please use `ng-doc.config.js` file instead. Check our configuration guide for more details.
|
|
7
|
-
*/
|
|
8
|
-
ngDoc?: NgDocConfiguration;
|
|
9
4
|
}
|
package/operators/index.d.ts
CHANGED
package/operators/index.js
CHANGED
|
@@ -3,4 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./buffer-debounce"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./buffer-until-once"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./fork-join-or-empty"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./progress"), exports);
|
|
6
8
|
//# sourceMappingURL=index.js.map
|
package/operators/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/builder/operators/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC;AAClC,8DAAoC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/builder/operators/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC;AAClC,8DAAoC;AACpC,+DAAqC;AACrC,qDAA2B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OperatorFunction } from 'rxjs';
|
|
2
|
+
import { printProgress } from '../helpers';
|
|
3
|
+
/**
|
|
4
|
+
* Prints a progress message. If no message is passed, the message will be cleared.
|
|
5
|
+
*
|
|
6
|
+
* @param args - Arguments to pass to the `printProgress` function.
|
|
7
|
+
*/
|
|
8
|
+
export declare function progress<T>(...args: Parameters<typeof printProgress>): OperatorFunction<T, T>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.progress = void 0;
|
|
4
|
+
const operators_1 = require("rxjs/operators");
|
|
5
|
+
const helpers_1 = require("../helpers");
|
|
6
|
+
/**
|
|
7
|
+
* Prints a progress message. If no message is passed, the message will be cleared.
|
|
8
|
+
*
|
|
9
|
+
* @param args - Arguments to pass to the `printProgress` function.
|
|
10
|
+
*/
|
|
11
|
+
function progress(...args) {
|
|
12
|
+
return (source) => source.pipe((0, operators_1.tap)(() => (0, helpers_1.printProgress)(...args)));
|
|
13
|
+
}
|
|
14
|
+
exports.progress = progress;
|
|
15
|
+
//# sourceMappingURL=progress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.js","sourceRoot":"","sources":["../../../../libs/builder/operators/progress.ts"],"names":[],"mappings":";;;AACA,8CAAmC;AAEnC,wCAAyC;AAEzC;;;;GAIG;AACH,SAAgB,QAAQ,CAAI,GAAG,IAAsC;IACpE,OAAO,CAAC,MAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAA,eAAG,EAAC,GAAG,EAAE,CAAC,IAAA,uBAAa,EAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;AAClF,CAAC;AAFD,4BAEC"}
|
package/package.json
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-doc/builder",
|
|
3
|
-
"version": "16.0
|
|
3
|
+
"version": "16.1.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"builders": "./builders.json",
|
|
6
6
|
"schematics": "./schematics/collection.json",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@ng-doc/core": "16.0
|
|
9
|
-
"@ng-doc/utils": "16.0
|
|
8
|
+
"@ng-doc/core": "16.1.0",
|
|
9
|
+
"@ng-doc/utils": "16.1.0",
|
|
10
10
|
"@angular-devkit/architect": ">=0.1600.0",
|
|
11
11
|
"chokidar": "3.5.3",
|
|
12
12
|
"minimatch": "5.1.0",
|
|
13
13
|
"rxjs": "^6.6.7",
|
|
14
14
|
"ts-morph": "17.0.1",
|
|
15
15
|
"nunjucks": "3.2.4",
|
|
16
|
-
"@orama/orama": "1.0.0-beta.
|
|
17
|
-
"@orama/plugin-parsedoc": "1.0.0-beta.
|
|
16
|
+
"@orama/orama": "1.0.0-beta.16",
|
|
17
|
+
"@orama/plugin-parsedoc": "1.0.0-beta.16",
|
|
18
18
|
"posthtml-parser": "0.11.0",
|
|
19
19
|
"prettier": "2.6.2",
|
|
20
20
|
"glob": "8.1.0",
|
|
21
21
|
"marked": "4.0.18",
|
|
22
22
|
"highlight.js": "11.5.1",
|
|
23
|
-
"raw-loader": "4.0.2",
|
|
24
23
|
"esbuild": "0.17.8",
|
|
25
24
|
"@microsoft/tsdoc": "0.14.2",
|
|
26
25
|
"cosmiconfig": "8.1.0",
|
|
@@ -4,9 +4,11 @@ import {RouterModule} from "@angular/router";
|
|
|
4
4
|
import {CommonModule} from '@angular/common';
|
|
5
5
|
import {NgDocDemoAssets, NgDocPageModule, NgDocRootPage} from '@ng-doc/app';
|
|
6
6
|
import {NgDocPageType} from '@ng-doc/core';
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
const pageContent: string = `{{ pageContent | toTemplateString }}`
|
|
8
9
|
|
|
9
10
|
@Component({
|
|
11
|
+
selector: 'ng-doc-page-{{ page.fullRoute | kebabCase }}',
|
|
10
12
|
template: `<ng-doc-page></ng-doc-page>`,
|
|
11
13
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
14
|
providers: [{provide: NgDocRootPage, useExisting: DynamicComponent}],
|
|
@@ -6,6 +6,7 @@ import {NG_DOC_API_LIST_TOKEN, NgDocApiListModule} from '@ng-doc/app';
|
|
|
6
6
|
import apiList from './ng-doc.api-list.json';
|
|
7
7
|
|
|
8
8
|
@Component({
|
|
9
|
+
selector: 'ng-doc-api-list-page-{{ api.route | kebabCase }}',
|
|
9
10
|
template: `<ng-doc-api-list></ng-doc-api-list>`,
|
|
10
11
|
providers: [{
|
|
11
12
|
provide: NG_DOC_API_LIST_TOKEN,
|
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import {NgDocDemoAssets} from '@ng-doc/app';
|
|
3
|
-
{% set i = 0 %}
|
|
4
|
-
{%- for componentName, assets in componentsAssets %}
|
|
5
|
-
{%- for asset in assets | notEmptyAssets %}
|
|
6
|
-
import {{ asset.name + i }} from '!!raw-loader!{{ asset.outputPath }}';
|
|
7
|
-
{%- set i = i + 1 %}
|
|
8
|
-
{%- endfor %}
|
|
9
|
-
{%- endfor %}
|
|
10
3
|
|
|
11
4
|
export const demoAssets: NgDocDemoAssets = {
|
|
12
5
|
{% set i = 0 %}
|
|
13
6
|
{%- for componentName, assets in componentsAssets %}
|
|
14
7
|
{{ componentName }}: [
|
|
15
8
|
{%- for asset in assets | notEmptyAssets %}
|
|
16
|
-
{title: '{{ asset.title }}', codeType: '{{ asset.type }}', code: {{ asset.
|
|
9
|
+
{title: '{{ asset.title }}', codeType: '{{ asset.type }}', code: `{{ asset.output | toTemplateString }}`},
|
|
17
10
|
{%- set i = i + 1 %}
|
|
18
11
|
{%- endfor %}
|
|
19
12
|
],
|
|
@@ -4,7 +4,6 @@ import {RouterModule} from '@angular/router';
|
|
|
4
4
|
import {CommonModule} from '@angular/common';
|
|
5
5
|
import {NgDocPageModule, NgDocRootPage, NgDocDemoAssets} from '@ng-doc/app';
|
|
6
6
|
import {NgDocDependencies, NgDocPageType} from '@ng-doc/core';
|
|
7
|
-
import pageContent from '!!raw-loader!{{ page.builtPagePath }}';
|
|
8
7
|
{%- if page.pageDependencies %}
|
|
9
8
|
// noinspection ES6UnusedImports
|
|
10
9
|
import {PlaygroundsModule} from './playgrounds';
|
|
@@ -15,8 +14,11 @@ import pageDependencies from '{{ page.pageDependencies.importPath }}';
|
|
|
15
14
|
import demoAssets from '{{ page.componentsAssets }}';
|
|
16
15
|
{%- endif %}
|
|
17
16
|
|
|
17
|
+
const pageContent: string = `{{ pageContent | toTemplateString }}`
|
|
18
|
+
|
|
18
19
|
|
|
19
20
|
@Component({
|
|
21
|
+
selector: 'ng-doc-page-{{ page.fullRoute | kebabCase }}',
|
|
20
22
|
template: `<ng-doc-page></ng-doc-page>`,
|
|
21
23
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
22
24
|
providers: [{provide: NgDocRootPage, useExisting: DynamicComponent}],
|
|
@@ -21,6 +21,7 @@ import pageDependencies from '{{ dependencies.importPath }}'; import {CommonModu
|
|
|
21
21
|
{%- set components = (components.push(comp), components) %}
|
|
22
22
|
|
|
23
23
|
@Component({
|
|
24
|
+
selector: 'ng-doc-playground-{{ index }}',
|
|
24
25
|
template: `
|
|
25
26
|
{{template | buildPlaygroundDemoTemplate(selector, content) }}
|
|
26
27
|
`,
|