@ng-doc/builder 17.6.16 → 18.0.0-beta.1
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/application/index.js +13 -16
- package/application/index.js.map +1 -1
- package/classes/index.d.ts +1 -0
- package/classes/index.js +1 -0
- package/classes/index.js.map +1 -1
- package/classes/observable-map.d.ts +17 -0
- package/classes/observable-map.js +48 -0
- package/classes/observable-map.js.map +1 -0
- package/classes/observable-set.d.ts +4 -1
- package/classes/observable-set.js +9 -3
- package/classes/observable-set.js.map +1 -1
- package/dev-server/index.js +9 -6
- package/dev-server/index.js.map +1 -1
- package/dev-server/patch-builder-context.js +8 -9
- package/dev-server/patch-builder-context.js.map +1 -1
- package/engine/.cache/apps/ng-doc/docs/api-documentation/auto-generation/ng-doc.page.mjs +20 -0
- package/engine/.cache/apps/ng-doc/docs/api-documentation/documenting-declarations/ng-doc.page.mjs +20 -0
- package/engine/.cache/apps/ng-doc/docs/api-documentation/rendering-api/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/customization/icons/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/customization/layout/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/customization/page-processors/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/customization/page-skeleton/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/customization/search/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/customization/themes/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/develop/ng-doc.page.mjs +36 -0
- package/engine/.cache/apps/ng-doc/docs/getting-started/configuration/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/getting-started/installation/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/getting-started/migrations/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/getting-started/ssr/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/getting-started/what-is-ng-doc/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/ng-doc.api.mjs +42 -0
- package/engine/.cache/apps/ng-doc/docs/recipes/ignoring-file-lines/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/recipes/performance/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/blockquotes/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/code-blocks/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/demo-and-demo-pane/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/images-videos-and-embeds/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/keywords/ng-doc.page.mjs +17 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/mermaid-diagrams/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/nunjucks/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/pages-and-categories/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/playground/ng-doc.page.mjs +33 -0
- package/engine/build-ng-doc.d.ts +2 -3
- package/engine/build-ng-doc.js +25 -47
- package/engine/build-ng-doc.js.map +1 -1
- package/engine/builders/api-list/api-list-component.builder.d.ts +13 -0
- package/engine/builders/api-list/api-list-component.builder.js +27 -0
- package/engine/builders/api-list/api-list-component.builder.js.map +1 -0
- package/engine/builders/api-list/api-list.builder.d.ts +17 -0
- package/engine/builders/api-list/api-list.builder.js +42 -0
- package/engine/builders/api-list/api-list.builder.js.map +1 -0
- package/engine/builders/api-list/api-page-template.builder.d.ts +18 -0
- package/engine/builders/api-list/api-page-template.builder.js +67 -0
- package/engine/builders/api-list/api-page-template.builder.js.map +1 -0
- package/engine/builders/api-list/index.d.ts +10 -0
- package/engine/builders/api-list/index.js +63 -0
- package/engine/builders/api-list/index.js.map +1 -0
- package/engine/builders/api-list/keywords/build-api-keywords.d.ts +7 -0
- package/engine/builders/api-list/keywords/build-api-keywords.js +28 -0
- package/engine/builders/api-list/keywords/build-api-keywords.js.map +1 -0
- package/engine/builders/api-list/keywords/get-api-anchor-keywords.d.ts +8 -0
- package/engine/builders/api-list/keywords/get-api-anchor-keywords.js +27 -0
- package/engine/builders/api-list/keywords/get-api-anchor-keywords.js.map +1 -0
- package/engine/builders/api-list/keywords/get-pipe-keywords.d.ts +7 -0
- package/engine/builders/api-list/keywords/get-pipe-keywords.js +20 -0
- package/engine/builders/api-list/keywords/get-pipe-keywords.js.map +1 -0
- package/engine/builders/api-list/keywords/get-selector-keywords.d.ts +7 -0
- package/engine/builders/api-list/keywords/get-selector-keywords.js +38 -0
- package/engine/builders/api-list/keywords/get-selector-keywords.js.map +1 -0
- package/engine/builders/api-list/render-api-header.d.ts +10 -0
- package/engine/builders/api-list/render-api-header.js +24 -0
- package/engine/builders/api-list/render-api-header.js.map +1 -0
- package/engine/builders/global/context-and-routes.builder.d.ts +16 -0
- package/engine/builders/global/context-and-routes.builder.js +61 -0
- package/engine/builders/global/context-and-routes.builder.js.map +1 -0
- package/engine/builders/global/index.builder.d.ts +8 -0
- package/engine/builders/global/index.builder.js +24 -0
- package/engine/builders/global/index.builder.js.map +1 -0
- package/engine/builders/global/index.d.ts +7 -0
- package/engine/builders/global/index.js +16 -0
- package/engine/builders/global/index.js.map +1 -0
- package/engine/builders/global/keywords.builder.d.ts +7 -0
- package/engine/builders/global/keywords.builder.js +23 -0
- package/engine/builders/global/keywords.builder.js.map +1 -0
- package/engine/builders/global/search-indexes.builder.d.ts +7 -0
- package/engine/builders/global/search-indexes.builder.js +20 -0
- package/engine/builders/global/search-indexes.builder.js.map +1 -0
- package/engine/builders/helpers/create-declaration-metadata.d.ts +12 -0
- package/engine/builders/helpers/create-declaration-metadata.js +58 -0
- package/engine/builders/helpers/create-declaration-metadata.js.map +1 -0
- package/engine/builders/helpers/create-declaration-tab-metadata.d.ts +16 -0
- package/engine/builders/helpers/create-declaration-tab-metadata.js +31 -0
- package/engine/builders/helpers/create-declaration-tab-metadata.js.map +1 -0
- package/engine/builders/helpers/create-entry-metadata.d.ts +10 -0
- package/engine/builders/helpers/create-entry-metadata.js +72 -0
- package/engine/builders/helpers/create-entry-metadata.js.map +1 -0
- package/engine/builders/helpers/create-import-path.d.ts +7 -0
- package/engine/builders/helpers/create-import-path.js +19 -0
- package/engine/builders/helpers/create-import-path.js.map +1 -0
- package/engine/builders/helpers/create-markdown-metadata.d.ts +8 -0
- package/engine/builders/helpers/create-markdown-metadata.js +32 -0
- package/engine/builders/helpers/create-markdown-metadata.js.map +1 -0
- package/engine/builders/helpers/get-category-source-file.d.ts +7 -0
- package/engine/builders/helpers/get-category-source-file.js +31 -0
- package/engine/builders/helpers/get-category-source-file.js.map +1 -0
- package/engine/builders/helpers/get-entry-out-dir.d.ts +9 -0
- package/engine/builders/helpers/get-entry-out-dir.js +25 -0
- package/engine/builders/helpers/get-entry-out-dir.js.map +1 -0
- package/engine/builders/helpers/get-entry-relative-path.d.ts +6 -0
- package/engine/builders/helpers/get-entry-relative-path.js +16 -0
- package/engine/builders/helpers/get-entry-relative-path.js.map +1 -0
- package/engine/builders/helpers/get-entry-route.d.ts +7 -0
- package/engine/builders/helpers/get-entry-route.js +23 -0
- package/engine/builders/helpers/get-entry-route.js.map +1 -0
- package/engine/builders/helpers/get-playground-metadata.d.ts +9 -0
- package/engine/builders/helpers/get-playground-metadata.js +40 -0
- package/engine/builders/helpers/get-playground-metadata.js.map +1 -0
- package/engine/builders/helpers/get-scoped-keyword.d.ts +8 -0
- package/engine/builders/helpers/get-scoped-keyword.js +19 -0
- package/engine/builders/helpers/get-scoped-keyword.js.map +1 -0
- package/engine/builders/helpers/get-structured-docs.d.ts +11 -0
- package/engine/builders/helpers/get-structured-docs.js +55 -0
- package/engine/builders/helpers/get-structured-docs.js.map +1 -0
- package/engine/builders/helpers/get-variable-statement-from-object-literal-expression.d.ts +6 -0
- package/engine/builders/helpers/get-variable-statement-from-object-literal-expression.js +19 -0
- package/engine/builders/helpers/get-variable-statement-from-object-literal-expression.js.map +1 -0
- package/engine/builders/helpers/index.d.ts +14 -0
- package/engine/builders/helpers/index.js +18 -0
- package/engine/builders/helpers/index.js.map +1 -0
- package/engine/builders/helpers/markdown-front-matter.d.ts +8 -0
- package/engine/builders/helpers/markdown-front-matter.js +14 -0
- package/engine/builders/helpers/markdown-front-matter.js.map +1 -0
- package/engine/builders/index.d.ts +4 -0
- package/engine/builders/index.js +8 -0
- package/engine/builders/index.js.map +1 -0
- package/engine/builders/interfaces/entry-metadata.d.ts +32 -0
- package/engine/builders/interfaces/entry-metadata.js +13 -0
- package/engine/builders/interfaces/entry-metadata.js.map +1 -0
- package/engine/builders/interfaces/entry.d.ts +23 -0
- package/engine/builders/interfaces/entry.js +23 -0
- package/engine/builders/interfaces/entry.js.map +1 -0
- package/engine/builders/interfaces/index.d.ts +4 -0
- package/engine/builders/interfaces/index.js +8 -0
- package/engine/builders/interfaces/index.js.map +1 -0
- package/engine/builders/interfaces/markdown-entry.d.ts +21 -0
- package/engine/{entities/plugins/types/entity-plugin.js → builders/interfaces/markdown-entry.js} +1 -1
- package/engine/builders/interfaces/markdown-entry.js.map +1 -0
- package/engine/builders/interfaces/template-builder-output.d.ts +8 -0
- package/engine/builders/interfaces/template-builder-output.js +3 -0
- package/engine/builders/interfaces/template-builder-output.js.map +1 -0
- package/engine/builders/page/demo-assets.builder.d.ts +20 -0
- package/engine/builders/page/demo-assets.builder.js +74 -0
- package/engine/builders/page/demo-assets.builder.js.map +1 -0
- package/engine/builders/page/guide-template.builder.d.ts +17 -0
- package/engine/builders/page/guide-template.builder.js +71 -0
- package/engine/builders/page/guide-template.builder.js.map +1 -0
- package/engine/builders/page/index.d.ts +11 -0
- package/engine/builders/page/index.js +39 -0
- package/engine/builders/page/index.js.map +1 -0
- package/engine/builders/page/keywords/build-guide-keywords.d.ts +7 -0
- package/engine/builders/page/keywords/build-guide-keywords.js +25 -0
- package/engine/builders/page/keywords/build-guide-keywords.js.map +1 -0
- package/engine/builders/page/keywords/get-page-anchor-keywords.d.ts +8 -0
- package/engine/builders/page/keywords/get-page-anchor-keywords.js +27 -0
- package/engine/builders/page/keywords/get-page-anchor-keywords.js.map +1 -0
- package/engine/builders/page/playground.builder.d.ts +13 -0
- package/engine/builders/page/playground.builder.js +45 -0
- package/engine/builders/page/playground.builder.js.map +1 -0
- package/engine/builders/page/render-page-header.d.ts +13 -0
- package/engine/builders/page/render-page-header.js +20 -0
- package/engine/builders/page/render-page-header.js.map +1 -0
- package/engine/builders/shared/content.builder.d.ts +21 -0
- package/engine/builders/shared/content.builder.js +84 -0
- package/engine/builders/shared/content.builder.js.map +1 -0
- package/engine/builders/shared/entry.builder.d.ts +20 -0
- package/engine/builders/shared/entry.builder.js +45 -0
- package/engine/builders/shared/entry.builder.js.map +1 -0
- package/engine/builders/shared/index.d.ts +3 -0
- package/engine/builders/shared/index.js +7 -0
- package/engine/builders/shared/index.js.map +1 -0
- package/engine/builders/shared/page-component.builder.d.ts +22 -0
- package/engine/builders/shared/page-component.builder.js +64 -0
- package/engine/builders/shared/page-component.builder.js.map +1 -0
- package/engine/builders/shared/page-wrapper.builder.d.ts +18 -0
- package/engine/builders/shared/page-wrapper.builder.js +84 -0
- package/engine/builders/shared/page-wrapper.builder.js.map +1 -0
- package/engine/{entities/cache → cache}/cache.js +3 -6
- package/engine/cache/cache.js.map +1 -0
- package/engine/{entities/cache → cache}/cached-files-initializer.js +1 -2
- package/engine/cache/cached-files-initializer.js.map +1 -0
- package/engine/{entities/cache → cache}/cached-props-initializer.js +3 -4
- package/engine/cache/cached-props-initializer.js.map +1 -0
- package/engine/{entities/cache → cache}/decorators/cached-entity.js +5 -6
- package/engine/cache/decorators/cached-entity.js.map +1 -0
- package/engine/cache/decorators/cached-files-getter.js.map +1 -0
- package/engine/cache/decorators/cached-property.js.map +1 -0
- package/engine/cache/decorators/index.js.map +1 -0
- package/engine/cache/helpers/create-cache-for-file.js.map +1 -0
- package/engine/{entities/cache → cache}/helpers/create-cache.d.ts +3 -2
- package/engine/{entities/cache → cache}/helpers/create-cache.js +5 -4
- package/engine/cache/helpers/create-cache.js.map +1 -0
- package/engine/{entities/cache → cache}/helpers/get-cache-dir-path.js +2 -3
- package/engine/cache/helpers/get-cache-dir-path.js.map +1 -0
- package/engine/cache/helpers/get-cache-file-path.js.map +1 -0
- package/engine/cache/helpers/index.js.map +1 -0
- package/engine/{entities/cache → cache}/helpers/invalidate-cache-if-needed.js +1 -1
- package/engine/cache/helpers/invalidate-cache-if-needed.js.map +1 -0
- package/engine/{entities/cache → cache}/helpers/is-cache-valid.js +2 -3
- package/engine/cache/helpers/is-cache-valid.js.map +1 -0
- package/engine/{entities/cache → cache}/helpers/load-cache.d.ts +1 -1
- package/engine/cache/helpers/load-cache.js.map +1 -0
- package/engine/{entities/cache → cache}/helpers/update-cache.d.ts +1 -1
- package/engine/cache/helpers/update-cache.js.map +1 -0
- package/engine/cache/index.js.map +1 -0
- package/engine/cache/interfaces/cache-accessor.js.map +1 -0
- package/engine/cache/interfaces/cached-data.d.ts +6 -0
- package/engine/cache/interfaces/cached-data.js.map +1 -0
- package/engine/cache/interfaces/index.js.map +1 -0
- package/engine/core/index.d.ts +6 -0
- package/engine/core/index.js +10 -0
- package/engine/core/index.js.map +1 -0
- package/engine/core/operators/builder-state.d.ts +13 -0
- package/engine/core/operators/builder-state.js +20 -0
- package/engine/core/operators/builder-state.js.map +1 -0
- package/engine/core/operators/create-builder.d.ts +10 -0
- package/engine/core/operators/create-builder.js +32 -0
- package/engine/core/operators/create-builder.js.map +1 -0
- package/engine/core/operators/distinct-pending.d.ts +6 -0
- package/engine/core/operators/distinct-pending.js +12 -0
- package/engine/core/operators/distinct-pending.js.map +1 -0
- package/engine/core/operators/emit-cache.d.ts +17 -0
- package/engine/core/operators/emit-cache.js +31 -0
- package/engine/core/operators/emit-cache.js.map +1 -0
- package/engine/core/operators/emit-file-output.d.ts +7 -0
- package/engine/core/operators/emit-file-output.js +36 -0
- package/engine/core/operators/emit-file-output.js.map +1 -0
- package/engine/core/operators/entries-emitter.d.ts +8 -0
- package/engine/core/operators/entries-emitter.js +37 -0
- package/engine/core/operators/entries-emitter.js.map +1 -0
- package/engine/core/operators/factory.d.ts +12 -0
- package/engine/core/operators/factory.js +54 -0
- package/engine/core/operators/factory.js.map +1 -0
- package/engine/core/operators/handle-cache-strategy.d.ts +16 -0
- package/engine/core/operators/handle-cache-strategy.js +61 -0
- package/engine/core/operators/handle-cache-strategy.js.map +1 -0
- package/engine/core/operators/index.d.ts +16 -0
- package/engine/core/operators/index.js +20 -0
- package/engine/core/operators/index.js.map +1 -0
- package/engine/core/operators/join-builder-states.d.ts +9 -0
- package/engine/core/operators/join-builder-states.js +29 -0
- package/engine/core/operators/join-builder-states.js.map +1 -0
- package/engine/core/operators/merge-factory.d.ts +14 -0
- package/engine/core/operators/merge-factory.js +38 -0
- package/engine/core/operators/merge-factory.js.map +1 -0
- package/engine/core/operators/print-build-progress.d.ts +5 -0
- package/engine/core/operators/print-build-progress.js +16 -0
- package/engine/core/operators/print-build-progress.js.map +1 -0
- package/engine/core/operators/print-errors.d.ts +6 -0
- package/engine/core/operators/print-errors.js +17 -0
- package/engine/core/operators/print-errors.js.map +1 -0
- package/engine/core/operators/resolve-async-file-outputs.d.ts +6 -0
- package/engine/core/operators/resolve-async-file-outputs.js +29 -0
- package/engine/core/operators/resolve-async-file-outputs.js.map +1 -0
- package/engine/core/operators/run-build.d.ts +10 -0
- package/engine/core/operators/run-build.js +22 -0
- package/engine/core/operators/run-build.js.map +1 -0
- package/engine/core/operators/stack.d.ts +27 -0
- package/engine/core/operators/stack.js +78 -0
- package/engine/core/operators/stack.js.map +1 -0
- package/engine/core/operators/when-builders-done.d.ts +9 -0
- package/engine/core/operators/when-builders-done.js +21 -0
- package/engine/core/operators/when-builders-done.js.map +1 -0
- package/engine/core/operators/when-done.d.ts +20 -0
- package/engine/core/operators/when-done.js +40 -0
- package/engine/core/operators/when-done.js.map +1 -0
- package/engine/core/stores/api.d.ts +2 -0
- package/engine/core/stores/api.js +6 -0
- package/engine/core/stores/api.js.map +1 -0
- package/engine/core/stores/index-store.d.ts +3 -0
- package/engine/core/stores/index-store.js +6 -0
- package/engine/core/stores/index-store.js.map +1 -0
- package/engine/core/stores/index.d.ts +4 -0
- package/engine/core/stores/index.js +8 -0
- package/engine/core/stores/index.js.map +1 -0
- package/engine/core/stores/keywords.d.ts +9 -0
- package/engine/core/stores/keywords.js +35 -0
- package/engine/core/stores/keywords.js.map +1 -0
- package/engine/core/stores/page-store.d.ts +3 -0
- package/engine/core/stores/page-store.js +6 -0
- package/engine/core/stores/page-store.js.map +1 -0
- package/engine/core/triggers/index.d.ts +3 -0
- package/engine/core/triggers/index.js +7 -0
- package/engine/core/triggers/index.js.map +1 -0
- package/engine/core/triggers/on-dependencies-change.d.ts +12 -0
- package/engine/core/triggers/on-dependencies-change.js +19 -0
- package/engine/core/triggers/on-dependencies-change.js.map +1 -0
- package/engine/core/triggers/on-keywords-touch.d.ts +13 -0
- package/engine/core/triggers/on-keywords-touch.js +27 -0
- package/engine/core/triggers/on-keywords-touch.js.map +1 -0
- package/engine/core/triggers/on-remove-from-store.d.ts +11 -0
- package/engine/core/triggers/on-remove-from-store.js +15 -0
- package/engine/core/triggers/on-remove-from-store.js.map +1 -0
- package/engine/core/types/builder.d.ts +3 -0
- package/{interfaces/build-result.js → engine/core/types/builder.js} +1 -1
- package/engine/core/types/builder.js.map +1 -0
- package/engine/core/types/cache-strategy.d.ts +29 -0
- package/engine/core/types/cache-strategy.js +3 -0
- package/engine/core/types/cache-strategy.js.map +1 -0
- package/engine/core/types/file-output.d.ts +10 -0
- package/engine/core/types/file-output.js +11 -0
- package/engine/core/types/file-output.js.map +1 -0
- package/engine/core/types/index.d.ts +5 -0
- package/engine/core/types/index.js +9 -0
- package/engine/core/types/index.js.map +1 -0
- package/engine/core/types/state.d.ts +74 -0
- package/engine/core/types/state.js +81 -0
- package/engine/core/types/state.js.map +1 -0
- package/engine/core/types/trigger.d.ts +30 -0
- package/engine/core/types/trigger.js +36 -0
- package/engine/core/types/trigger.js.map +1 -0
- package/engine/core/variables/cold-start.d.ts +8 -0
- package/engine/core/variables/cold-start.js +18 -0
- package/engine/core/variables/cold-start.js.map +1 -0
- package/engine/core/variables/index.d.ts +1 -0
- package/engine/{entities/plugins/types → core/variables}/index.js +1 -1
- package/engine/core/variables/index.js.map +1 -0
- package/engine/core/watcher/index.d.ts +2 -0
- package/engine/core/watcher/index.js +6 -0
- package/engine/core/watcher/index.js.map +1 -0
- package/engine/core/watcher/watch-file.d.ts +9 -0
- package/engine/core/watcher/watch-file.js +29 -0
- package/engine/core/watcher/watch-file.js.map +1 -0
- package/engine/core/watcher/watch-folder.d.ts +8 -0
- package/engine/core/watcher/watch-folder.js +31 -0
- package/engine/core/watcher/watch-folder.js.map +1 -0
- package/engine/core/watcher/watch.d.ts +8 -0
- package/engine/core/watcher/watch.js +39 -0
- package/engine/core/watcher/watch.js.map +1 -0
- package/engine/index.d.ts +2 -6
- package/engine/index.js +2 -6
- package/engine/index.js.map +1 -1
- package/engine/nunjucks/actions/api-details.action.d.ts +6 -0
- package/engine/nunjucks/actions/api-details.action.js +27 -0
- package/engine/nunjucks/actions/api-details.action.js.map +1 -0
- package/engine/nunjucks/actions/api.action.d.ts +6 -0
- package/engine/nunjucks/actions/api.action.js +35 -0
- package/engine/nunjucks/actions/api.action.js.map +1 -0
- package/engine/{actions → nunjucks/actions}/demo-pane.action.d.ts +2 -2
- package/engine/{actions → nunjucks/actions}/demo-pane.action.js +1 -1
- package/engine/nunjucks/actions/demo-pane.action.js.map +1 -0
- package/engine/{actions → nunjucks/actions}/demo.action.d.ts +2 -2
- package/engine/{actions → nunjucks/actions}/demo.action.js +1 -1
- package/engine/nunjucks/actions/demo.action.js.map +1 -0
- package/engine/nunjucks/actions/js-doc-has-tag.action.d.ts +7 -0
- package/engine/nunjucks/actions/js-doc-has-tag.action.js +23 -0
- package/engine/nunjucks/actions/js-doc-has-tag.action.js.map +1 -0
- package/engine/nunjucks/actions/js-doc-tag.action.d.ts +7 -0
- package/engine/nunjucks/actions/js-doc-tag.action.js +23 -0
- package/engine/nunjucks/actions/js-doc-tag.action.js.map +1 -0
- package/engine/nunjucks/actions/js-doc-tags.action.d.ts +7 -0
- package/engine/nunjucks/actions/js-doc-tags.action.js +24 -0
- package/engine/nunjucks/actions/js-doc-tags.action.js.map +1 -0
- package/engine/nunjucks/actions/js-doc.action.d.ts +6 -0
- package/engine/nunjucks/actions/js-doc.action.js +22 -0
- package/engine/nunjucks/actions/js-doc.action.js.map +1 -0
- package/engine/{actions → nunjucks/actions}/playground.action.d.ts +2 -2
- package/engine/{actions → nunjucks/actions}/playground.action.js +7 -6
- package/engine/nunjucks/actions/playground.action.js.map +1 -0
- package/engine/{actions.d.ts → nunjucks/actions.d.ts} +4 -5
- package/engine/{actions.js → nunjucks/actions.js} +7 -12
- package/engine/nunjucks/actions.js.map +1 -0
- package/engine/nunjucks/api.d.ts +7 -0
- package/engine/nunjucks/api.js +20 -0
- package/engine/nunjucks/api.js.map +1 -0
- package/engine/nunjucks/base-action.d.ts +10 -0
- package/engine/nunjucks/base-action.js +16 -0
- package/engine/nunjucks/base-action.js.map +1 -0
- package/engine/nunjucks/filters.d.ts +2 -1
- package/engine/nunjucks/filters.js +10 -7
- package/engine/nunjucks/filters.js.map +1 -1
- package/engine/nunjucks/index.d.ts +3 -0
- package/engine/nunjucks/index.js +3 -0
- package/engine/nunjucks/index.js.map +1 -1
- package/engine/nunjucks/js-doc.d.ts +11 -0
- package/engine/nunjucks/js-doc.js +28 -0
- package/engine/nunjucks/js-doc.js.map +1 -0
- package/engine/nunjucks/render-template.d.ts +6 -0
- package/engine/nunjucks/render-template.js +27 -10
- package/engine/nunjucks/render-template.js.map +1 -1
- package/engine/transform-index-html.d.ts +5 -0
- package/engine/transform-index-html.js +15 -0
- package/engine/transform-index-html.js.map +1 -0
- package/engine/watcher.js +1 -1
- package/engine/watcher.js.map +1 -1
- package/helpers/angular/get-component-assets.d.ts +3 -1
- package/helpers/angular/get-component-assets.js +20 -3
- package/helpers/angular/get-component-assets.js.map +1 -1
- package/helpers/angular/get-component-decorator.js +1 -1
- package/helpers/angular/get-component-decorator.js.map +1 -1
- package/helpers/angular/get-component-inputs.js.map +1 -1
- package/helpers/angular/get-component-source-files.js.map +1 -1
- package/helpers/angular/get-directive-decorator.js +1 -1
- package/helpers/angular/get-directive-decorator.js.map +1 -1
- package/helpers/angular/get-input-name.js +4 -5
- package/helpers/angular/get-input-name.js.map +1 -1
- package/helpers/angular/get-input-type.js.map +1 -1
- package/helpers/angular/get-pipe-decorator.js +1 -1
- package/helpers/angular/get-pipe-decorator.js.map +1 -1
- package/helpers/angular/is-input.js +2 -3
- package/helpers/angular/is-input.js.map +1 -1
- package/helpers/angular/is-standalone.d.ts +1 -1
- package/helpers/angular/is-standalone.js +3 -4
- package/helpers/angular/is-standalone.js.map +1 -1
- package/helpers/build-file-assets.js +1 -1
- package/helpers/build-file-assets.js.map +1 -1
- package/helpers/build-file-entity.js +45 -48
- package/helpers/build-file-entity.js.map +1 -1
- package/helpers/build-indexes.js +41 -45
- package/helpers/build-indexes.js.map +1 -1
- package/helpers/construct-page-keyword.d.ts +10 -0
- package/helpers/construct-page-keyword.js +24 -0
- package/helpers/construct-page-keyword.js.map +1 -0
- package/helpers/create-builder-context.js +12 -11
- package/helpers/create-builder-context.js.map +1 -1
- package/helpers/create-import-path.js.map +1 -1
- package/helpers/{get-demo-class-declarations.js → demo/get-demo-class-declarations.js} +1 -2
- package/helpers/demo/get-demo-class-declarations.js.map +1 -0
- package/helpers/demo/index.d.ts +1 -1
- package/helpers/demo/index.js +1 -1
- package/helpers/extract-selectors.d.ts +7 -2
- package/helpers/extract-selectors.js +16 -3
- package/helpers/extract-selectors.js.map +1 -1
- package/helpers/filter-useless-members.d.ts +2 -2
- package/helpers/filter-useless-members.js.map +1 -1
- package/helpers/format-code.js +3 -4
- package/helpers/format-code.js.map +1 -1
- package/helpers/format-keyword-key.d.ts +5 -0
- package/helpers/{keyword-key.js → format-keyword-key.js} +3 -3
- package/helpers/format-keyword-key.js.map +1 -0
- package/helpers/get-declaration-by-path.d.ts +8 -0
- package/helpers/get-declaration-by-path.js +30 -0
- package/helpers/get-declaration-by-path.js.map +1 -0
- package/helpers/get-declaration-type.js +1 -1
- package/helpers/get-declaration-type.js.map +1 -1
- package/helpers/get-js-doc.d.ts +35 -0
- package/helpers/get-js-doc.js +121 -0
- package/helpers/get-js-doc.js.map +1 -0
- package/helpers/import-fresh-esm.js +10 -12
- package/helpers/import-fresh-esm.js.map +1 -1
- package/helpers/index.d.ts +7 -13
- package/helpers/index.js +7 -13
- package/helpers/index.js.map +1 -1
- package/helpers/is-public-declaration.d.ts +6 -0
- package/helpers/is-public-declaration.js +16 -0
- package/helpers/is-public-declaration.js.map +1 -0
- package/helpers/is-supported-declaration.d.ts +2 -2
- package/helpers/is-supported-declaration.js.map +1 -1
- package/helpers/load-config.js +1 -2
- package/helpers/load-config.js.map +1 -1
- package/helpers/markdown-to-html.js +16 -10
- package/helpers/markdown-to-html.js.map +1 -1
- package/helpers/minify-html.d.ts +5 -0
- package/helpers/minify-html.js +22 -0
- package/helpers/minify-html.js.map +1 -0
- package/helpers/playground/build-playground-metadata.js +15 -11
- package/helpers/playground/build-playground-metadata.js.map +1 -1
- package/helpers/playground/get-playground-inputs.js +6 -6
- package/helpers/playground/get-playground-inputs.js.map +1 -1
- package/helpers/playground/get-playgrounds-class-declarations.d.ts +6 -0
- package/helpers/playground/get-playgrounds-class-declarations.js +26 -0
- package/helpers/playground/get-playgrounds-class-declarations.js.map +1 -0
- package/helpers/playground/get-playgrounds-ids.js +2 -3
- package/helpers/playground/get-playgrounds-ids.js.map +1 -1
- package/helpers/playground/get-target-for-playground.js +4 -3
- package/helpers/playground/get-target-for-playground.js.map +1 -1
- package/helpers/playground/index.d.ts +1 -0
- package/helpers/playground/index.js +1 -0
- package/helpers/playground/index.js.map +1 -1
- package/helpers/presentation.js +3 -6
- package/helpers/presentation.js.map +1 -1
- package/helpers/print.d.ts +0 -15
- package/helpers/print.js +0 -24
- package/helpers/print.js.map +1 -1
- package/helpers/process-legacy-snippets.js +7 -8
- package/helpers/process-legacy-snippets.js.map +1 -1
- package/helpers/process-snippets.js +4 -5
- package/helpers/process-snippets.js.map +1 -1
- package/helpers/remove-lines-from-code.js +1 -2
- package/helpers/remove-lines-from-code.js.map +1 -1
- package/helpers/snippets-from-asset.js +8 -2
- package/helpers/snippets-from-asset.js.map +1 -1
- package/helpers/sort-navigation-entities.d.ts +3 -3
- package/helpers/sort-navigation-entities.js +9 -9
- package/helpers/sort-navigation-entities.js.map +1 -1
- package/helpers/to-template-string.js +5 -2
- package/helpers/to-template-string.js.map +1 -1
- package/helpers/typescript/accessor/group-accessors.js +2 -2
- package/helpers/typescript/accessor/group-accessors.js.map +1 -1
- package/helpers/typescript/create-project.js +19 -1
- package/helpers/typescript/create-project.js.map +1 -1
- package/helpers/typescript/declaration-import.d.ts +2 -2
- package/helpers/typescript/declaration-import.js.map +1 -1
- package/helpers/typescript/display-type.d.ts +2 -1
- package/helpers/typescript/display-type.js +2 -1
- package/helpers/typescript/display-type.js.map +1 -1
- package/helpers/typescript/exclude-by-js-doc-tags.d.ts +7 -0
- package/helpers/typescript/exclude-by-js-doc-tags.js +14 -0
- package/helpers/typescript/exclude-by-js-doc-tags.js.map +1 -0
- package/helpers/typescript/find-declarations.d.ts +10 -0
- package/helpers/typescript/find-declarations.js +35 -0
- package/helpers/typescript/find-declarations.js.map +1 -0
- package/helpers/typescript/first-node-with-comment.d.ts +1 -1
- package/helpers/typescript/first-node-with-comment.js +1 -2
- package/helpers/typescript/first-node-with-comment.js.map +1 -1
- package/helpers/typescript/get-object-expression-from-default.js +4 -4
- package/helpers/typescript/get-object-expression-from-default.js.map +1 -1
- package/helpers/typescript/index.d.ts +2 -1
- package/helpers/typescript/index.js +2 -1
- package/helpers/typescript/index.js.map +1 -1
- package/helpers/typescript/interface/find-interface.js +1 -1
- package/helpers/typescript/interface/find-interface.js.map +1 -1
- package/helpers/typescript/interface/for-all-interfaces.js +1 -1
- package/helpers/typescript/interface/for-all-interfaces.js.map +1 -1
- package/helpers/typescript/interface/get-interface-member.d.ts +2 -2
- package/helpers/typescript/interface/get-interface-member.js.map +1 -1
- package/helpers/typescript/member/find-member.d.ts +3 -3
- package/helpers/typescript/member/find-member.js +3 -3
- package/helpers/typescript/member/find-member.js.map +1 -1
- package/helpers/typescript/member/get-implemented-member.d.ts +2 -2
- package/helpers/typescript/member/get-implemented-member.js +1 -1
- package/helpers/typescript/member/get-implemented-member.js.map +1 -1
- package/helpers/typescript/member/get-inherited-parent.d.ts +2 -2
- package/helpers/typescript/member/get-inherited-parent.js.map +1 -1
- package/helpers/typescript/member/get-member-parent.d.ts +2 -2
- package/helpers/typescript/member/get-member-parent.js.map +1 -1
- package/helpers/typescript/member/get-overridden-member.d.ts +2 -2
- package/helpers/typescript/member/get-overridden-member.js.map +1 -1
- package/helpers/typescript/member/member-type.d.ts +9 -4
- package/helpers/typescript/member/member-type.js +12 -0
- package/helpers/typescript/member/member-type.js.map +1 -1
- package/helpers/typescript/method/get-method-chain.js.map +1 -1
- package/helpers/typescript/node/sort-by-nodes-name.js +1 -1
- package/helpers/typescript/node/sort-by-nodes-name.js.map +1 -1
- package/helpers/typescript/property/get-property-assignment.d.ts +1 -1
- package/helpers/typescript/property/get-property-assignment.js +2 -3
- package/helpers/typescript/property/get-property-assignment.js.map +1 -1
- package/helpers/utils.d.ts +6 -0
- package/helpers/utils.js +12 -0
- package/helpers/utils.js.map +1 -0
- package/interfaces/action-output.d.ts +2 -2
- package/interfaces/builder-context.d.ts +7 -5
- package/interfaces/configuration.d.ts +16 -2
- package/interfaces/entity-keyword.d.ts +1 -1
- package/interfaces/index.d.ts +0 -1
- package/interfaces/index.js +0 -1
- package/interfaces/index.js.map +1 -1
- package/interfaces/renderer-options.d.ts +1 -1
- package/operators/index.d.ts +0 -2
- package/operators/index.js +0 -2
- package/operators/index.js.map +1 -1
- package/package.json +15 -14
- package/parsers/helpers/param.js +1 -1
- package/parsers/helpers/param.js.map +1 -1
- package/parsers/parse-code-block-params.js +3 -3
- package/parsers/parse-code-block-params.js.map +1 -1
- package/parsers/parse-snippet.js +2 -2
- package/parsers/parse-snippet.js.map +1 -1
- package/schematics/api/files/ng-doc.api.ts.template +1 -1
- package/schematics/api/index.js +2 -3
- package/schematics/api/index.js.map +1 -1
- package/schematics/category/index.js +10 -7
- package/schematics/category/index.js.map +1 -1
- package/schematics/category/schema.json +54 -54
- package/schematics/migration.json +8 -8
- package/schematics/migrations/standalone-pages/index.js +13 -6
- package/schematics/migrations/standalone-pages/index.js.map +1 -1
- package/schematics/ng-update/index.js +2 -4
- package/schematics/ng-update/index.js.map +1 -1
- package/schematics/ng-update/steps/{update-git-ignore.d.ts → update-pages.d.ts} +1 -1
- package/schematics/ng-update/steps/update-pages.js +89 -0
- package/schematics/ng-update/steps/update-pages.js.map +1 -0
- package/schematics/page/files/index.md.template +3 -1
- package/schematics/page/files/ng-doc.page.ts.template +1 -2
- package/schematics/page/index.js +12 -7
- package/schematics/page/index.js.map +1 -1
- package/schematics/page/schema.d.ts +2 -5
- package/schematics/page/schema.json +44 -49
- package/schematics/utils/get-project.js +1 -2
- package/schematics/utils/get-project.js.map +1 -1
- package/scripts/restore-theme.js +6 -0
- package/templates/api/base.html.nunj +9 -19
- package/templates/api/class-declaration.html.nunj +57 -0
- package/templates/api/details/class-declaration.html.nunj +47 -0
- package/templates/api/details/enum-declaration.html.nunj +0 -0
- package/templates/api/details/function-declaration.html.nunj +14 -0
- package/templates/api/details/helpers/decorators.html.nunj +14 -0
- package/templates/api/details/helpers/extends.html.nunj +6 -0
- package/templates/api/details/helpers/selectors.html.nunj +12 -0
- package/templates/api/details/helpers/type-parameters.html.nunj +14 -0
- package/templates/api/details/interface-declaration.html.nunj +27 -0
- package/templates/api/details/type-alias-declaration.html.nunj +14 -0
- package/templates/api/details/variable-declaration.html.nunj +0 -0
- package/templates/api/details.html.nunj +9 -0
- package/templates/api/{enum.html.nunj → enum-declaration.html.nunj} +3 -5
- package/templates/api/function-declaration.html.nunj +24 -0
- package/templates/api/interface-declaration.html.nunj +27 -0
- package/templates/api/type-alias-declaration.html.nunj +8 -0
- package/templates/api/variable-declaration.html.nunj +8 -0
- package/templates/api-header.html.nunj +11 -0
- package/templates/api-list.ts.nunj +10 -21
- package/templates/api-page-content.html.nunj +1 -15
- package/templates/context.ts.nunj +48 -33
- package/templates/helpers/accessor.html.nunj +50 -47
- package/templates/helpers/code.html.nunj +1 -2
- package/templates/helpers/constructor.html.nunj +24 -26
- package/templates/helpers/members.html.nunj +26 -20
- package/templates/helpers/method.html.nunj +58 -44
- package/templates/helpers/no-content.html.nunj +1 -1
- package/templates/helpers/overload.html.nunj +47 -0
- package/templates/helpers/parameters.html.nunj +37 -37
- package/templates/helpers/properties.html.nunj +43 -37
- package/templates/helpers/status.html.nunj +37 -0
- package/templates/helpers/type.html.nunj +4 -0
- package/templates/index.ts.nunj +2 -2
- package/templates/page-header.html.nunj +5 -0
- package/templates/page-wrapper.ts.nunj +42 -0
- package/templates/page.ts.nunj +55 -38
- package/templates/parts/page-tags.html.nunj +0 -15
- package/templates/parts/see-also.html.nunj +1 -1
- package/templates/parts/usage-notes.html.nunj +1 -1
- package/templates/playgrounds.ts.nunj +1 -1
- package/templates/routes.ts.nunj +27 -0
- package/types/action.d.ts +2 -3
- package/types/index.d.ts +1 -1
- package/types/index.js +1 -1
- package/types/index.js.map +1 -1
- package/types/supported-declaration.d.ts +2 -0
- package/types/supported-declaration.js +3 -0
- package/types/supported-declaration.js.map +1 -0
- package/engine/actions/demo-pane.action.js.map +0 -1
- package/engine/actions/demo.action.js.map +0 -1
- package/engine/actions/playground.action.js.map +0 -1
- package/engine/actions.js.map +0 -1
- package/engine/builder-operators/add-build-candidates.d.ts +0 -8
- package/engine/builder-operators/add-build-candidates.js +0 -26
- package/engine/builder-operators/add-build-candidates.js.map +0 -1
- package/engine/builder-operators/build.d.ts +0 -11
- package/engine/builder-operators/build.js +0 -22
- package/engine/builder-operators/build.js.map +0 -1
- package/engine/builder-operators/collect-garbage.d.ts +0 -7
- package/engine/builder-operators/collect-garbage.js +0 -19
- package/engine/builder-operators/collect-garbage.js.map +0 -1
- package/engine/builder-operators/compile.d.ts +0 -6
- package/engine/builder-operators/compile.js +0 -19
- package/engine/builder-operators/compile.js.map +0 -1
- package/engine/builder-operators/dependency-changes.d.ts +0 -9
- package/engine/builder-operators/dependency-changes.js +0 -23
- package/engine/builder-operators/dependency-changes.js.map +0 -1
- package/engine/builder-operators/emit.d.ts +0 -6
- package/engine/builder-operators/emit.js +0 -13
- package/engine/builder-operators/emit.js.map +0 -1
- package/engine/builder-operators/index.d.ts +0 -9
- package/engine/builder-operators/index.js +0 -13
- package/engine/builder-operators/index.js.map +0 -1
- package/engine/builder-operators/load.d.ts +0 -7
- package/engine/builder-operators/load.js +0 -20
- package/engine/builder-operators/load.js.map +0 -1
- package/engine/builder-operators/post-build.d.ts +0 -6
- package/engine/builder-operators/post-build.js +0 -22
- package/engine/builder-operators/post-build.js.map +0 -1
- package/engine/builder-operators/post-process.d.ts +0 -12
- package/engine/builder-operators/post-process.js +0 -29
- package/engine/builder-operators/post-process.js.map +0 -1
- package/engine/builder-operators/print-output.d.ts +0 -7
- package/engine/builder-operators/print-output.js +0 -52
- package/engine/builder-operators/print-output.js.map +0 -1
- package/engine/builder-operators/refresh.d.ts +0 -6
- package/engine/builder-operators/refresh.js +0 -19
- package/engine/builder-operators/refresh.js.map +0 -1
- package/engine/builder-operators/task.d.ts +0 -23
- package/engine/builder-operators/task.js +0 -43
- package/engine/builder-operators/task.js.map +0 -1
- package/engine/builder-operators/to-builder-output.d.ts +0 -6
- package/engine/builder-operators/to-builder-output.js +0 -12
- package/engine/builder-operators/to-builder-output.js.map +0 -1
- package/engine/builder-operators/update-cache.d.ts +0 -7
- package/engine/builder-operators/update-cache.js +0 -14
- package/engine/builder-operators/update-cache.js.map +0 -1
- package/engine/entities/abstractions/entity.d.ts +0 -122
- package/engine/entities/abstractions/entity.js +0 -186
- package/engine/entities/abstractions/entity.js.map +0 -1
- package/engine/entities/abstractions/file.entity.d.ts +0 -28
- package/engine/entities/abstractions/file.entity.js +0 -68
- package/engine/entities/abstractions/file.entity.js.map +0 -1
- package/engine/entities/abstractions/module.entity.d.ts +0 -25
- package/engine/entities/abstractions/module.entity.js +0 -57
- package/engine/entities/abstractions/module.entity.js.map +0 -1
- package/engine/entities/abstractions/navigation.entity.d.ts +0 -27
- package/engine/entities/abstractions/navigation.entity.js +0 -36
- package/engine/entities/abstractions/navigation.entity.js.map +0 -1
- package/engine/entities/abstractions/route.entity.d.ts +0 -35
- package/engine/entities/abstractions/route.entity.js +0 -68
- package/engine/entities/abstractions/route.entity.js.map +0 -1
- package/engine/entities/abstractions/source-file.entity.d.ts +0 -38
- package/engine/entities/abstractions/source-file.entity.js +0 -69
- package/engine/entities/abstractions/source-file.entity.js.map +0 -1
- package/engine/entities/api-list.entity.d.ts +0 -20
- package/engine/entities/api-list.entity.js +0 -74
- package/engine/entities/api-list.entity.js.map +0 -1
- package/engine/entities/api-page.entity.d.ts +0 -36
- package/engine/entities/api-page.entity.js +0 -140
- package/engine/entities/api-page.entity.js.map +0 -1
- package/engine/entities/api-scope.entity.d.ts +0 -41
- package/engine/entities/api-scope.entity.js +0 -115
- package/engine/entities/api-scope.entity.js.map +0 -1
- package/engine/entities/api.entity.d.ts +0 -27
- package/engine/entities/api.entity.js +0 -118
- package/engine/entities/api.entity.js.map +0 -1
- package/engine/entities/cache/cache.js.map +0 -1
- package/engine/entities/cache/cached-files-initializer.js.map +0 -1
- package/engine/entities/cache/cached-props-initializer.js.map +0 -1
- package/engine/entities/cache/decorators/cached-entity.js.map +0 -1
- package/engine/entities/cache/decorators/cached-files-getter.js.map +0 -1
- package/engine/entities/cache/decorators/cached-property.js.map +0 -1
- package/engine/entities/cache/decorators/index.js.map +0 -1
- package/engine/entities/cache/helpers/create-cache-for-file.js.map +0 -1
- package/engine/entities/cache/helpers/create-cache.js.map +0 -1
- package/engine/entities/cache/helpers/get-cache-dir-path.js.map +0 -1
- package/engine/entities/cache/helpers/get-cache-file-path.js.map +0 -1
- package/engine/entities/cache/helpers/index.js.map +0 -1
- package/engine/entities/cache/helpers/invalidate-cache-if-needed.js.map +0 -1
- package/engine/entities/cache/helpers/is-cache-valid.js.map +0 -1
- package/engine/entities/cache/helpers/load-cache.js.map +0 -1
- package/engine/entities/cache/helpers/update-cache.js.map +0 -1
- package/engine/entities/cache/index.js.map +0 -1
- package/engine/entities/cache/interfaces/cache-accessor.js.map +0 -1
- package/engine/entities/cache/interfaces/cached-data.d.ts +0 -5
- package/engine/entities/cache/interfaces/cached-data.js.map +0 -1
- package/engine/entities/cache/interfaces/index.js.map +0 -1
- package/engine/entities/category.entity.d.ts +0 -28
- package/engine/entities/category.entity.js +0 -108
- package/engine/entities/category.entity.js.map +0 -1
- package/engine/entities/context.entity.d.ts +0 -11
- package/engine/entities/context.entity.js +0 -34
- package/engine/entities/context.entity.js.map +0 -1
- package/engine/entities/index-file.entity.d.ts +0 -12
- package/engine/entities/index-file.entity.js +0 -57
- package/engine/entities/index-file.entity.js.map +0 -1
- package/engine/entities/index.d.ts +0 -13
- package/engine/entities/index.js +0 -17
- package/engine/entities/index.js.map +0 -1
- package/engine/entities/indexes.entity.d.ts +0 -12
- package/engine/entities/indexes.entity.js +0 -35
- package/engine/entities/indexes.entity.js.map +0 -1
- package/engine/entities/keywords.entity.d.ts +0 -12
- package/engine/entities/keywords.entity.js +0 -32
- package/engine/entities/keywords.entity.js.map +0 -1
- package/engine/entities/page-demo.entity.d.ts +0 -20
- package/engine/entities/page-demo.entity.js +0 -96
- package/engine/entities/page-demo.entity.js.map +0 -1
- package/engine/entities/page-playground.entity.d.ts +0 -22
- package/engine/entities/page-playground.entity.js +0 -101
- package/engine/entities/page-playground.entity.js.map +0 -1
- package/engine/entities/page.entity.d.ts +0 -33
- package/engine/entities/page.entity.js +0 -175
- package/engine/entities/page.entity.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/add-to-dependencies.plugin.d.ts +0 -5
- package/engine/entities/plugins/entity-plugins/add-to-dependencies.plugin.js +0 -19
- package/engine/entities/plugins/entity-plugins/add-to-dependencies.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/apply.plugin.d.ts +0 -26
- package/engine/entities/plugins/entity-plugins/apply.plugin.js +0 -64
- package/engine/entities/plugins/entity-plugins/apply.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/extract-snippets.plugin.d.ts +0 -6
- package/engine/entities/plugins/entity-plugins/extract-snippets.plugin.js +0 -22
- package/engine/entities/plugins/entity-plugins/extract-snippets.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/fill-indexes.plugin.d.ts +0 -6
- package/engine/entities/plugins/entity-plugins/fill-indexes.plugin.js +0 -26
- package/engine/entities/plugins/entity-plugins/fill-indexes.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/index.d.ts +0 -9
- package/engine/entities/plugins/entity-plugins/index.js +0 -13
- package/engine/entities/plugins/entity-plugins/index.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/markdown-to-html.plugin.d.ts +0 -5
- package/engine/entities/plugins/entity-plugins/markdown-to-html.plugin.js +0 -20
- package/engine/entities/plugins/entity-plugins/markdown-to-html.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/post-process-html.plugin.d.ts +0 -5
- package/engine/entities/plugins/entity-plugins/post-process-html.plugin.js +0 -17
- package/engine/entities/plugins/entity-plugins/post-process-html.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/process-html.plugin.d.ts +0 -5
- package/engine/entities/plugins/entity-plugins/process-html.plugin.js +0 -17
- package/engine/entities/plugins/entity-plugins/process-html.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/remove-lines.plugin.d.ts +0 -6
- package/engine/entities/plugins/entity-plugins/remove-lines.plugin.js +0 -22
- package/engine/entities/plugins/entity-plugins/remove-lines.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/wrap-code.plugin.d.ts +0 -6
- package/engine/entities/plugins/entity-plugins/wrap-code.plugin.js +0 -20
- package/engine/entities/plugins/entity-plugins/wrap-code.plugin.js.map +0 -1
- package/engine/entities/plugins/helpers/execute-plugins.d.ts +0 -10
- package/engine/entities/plugins/helpers/execute-plugins.js +0 -17
- package/engine/entities/plugins/helpers/execute-plugins.js.map +0 -1
- package/engine/entities/plugins/helpers/index.d.ts +0 -1
- package/engine/entities/plugins/helpers/index.js +0 -5
- package/engine/entities/plugins/helpers/index.js.map +0 -1
- package/engine/entities/plugins/index.d.ts +0 -3
- package/engine/entities/plugins/index.js +0 -7
- package/engine/entities/plugins/index.js.map +0 -1
- package/engine/entities/plugins/types/entity-plugin.d.ts +0 -5
- package/engine/entities/plugins/types/entity-plugin.js.map +0 -1
- package/engine/entities/plugins/types/index.d.ts +0 -1
- package/engine/entities/plugins/types/index.js.map +0 -1
- package/engine/entities/routes.entity.d.ts +0 -11
- package/engine/entities/routes.entity.js +0 -37
- package/engine/entities/routes.entity.js.map +0 -1
- package/engine/entity-emitter.d.ts +0 -18
- package/engine/entity-emitter.js +0 -49
- package/engine/entity-emitter.js.map +0 -1
- package/engine/entity-store.d.ts +0 -19
- package/engine/entity-store.js +0 -82
- package/engine/entity-store.js.map +0 -1
- package/engine/functions/build-candidates.d.ts +0 -10
- package/engine/functions/build-candidates.js +0 -47
- package/engine/functions/build-candidates.js.map +0 -1
- package/engine/functions/if-not-cached-or-invalid.d.ts +0 -9
- package/engine/functions/if-not-cached-or-invalid.js +0 -18
- package/engine/functions/if-not-cached-or-invalid.js.map +0 -1
- package/engine/functions/index.d.ts +0 -2
- package/engine/functions/index.js +0 -6
- package/engine/functions/index.js.map +0 -1
- package/engine/ts-doc-formatter.d.ts +0 -5
- package/engine/ts-doc-formatter.js +0 -29
- package/engine/ts-doc-formatter.js.map +0 -1
- package/helpers/build-entity-keyword.d.ts +0 -10
- package/helpers/build-entity-keyword.js +0 -27
- package/helpers/build-entity-keyword.js.map +0 -1
- package/helpers/demo/assets-from-component-asset.d.ts +0 -6
- package/helpers/demo/assets-from-component-asset.js +0 -13
- package/helpers/demo/assets-from-component-asset.js.map +0 -1
- package/helpers/entity-type.d.ts +0 -51
- package/helpers/entity-type.js +0 -80
- package/helpers/entity-type.js.map +0 -1
- package/helpers/extract-docs.d.ts +0 -20
- package/helpers/extract-docs.js +0 -78
- package/helpers/extract-docs.js.map +0 -1
- package/helpers/extract-path-anchor.d.ts +0 -7
- package/helpers/extract-path-anchor.js +0 -17
- package/helpers/extract-path-anchor.js.map +0 -1
- package/helpers/generate-api-entities.d.ts +0 -6
- package/helpers/generate-api-entities.js +0 -68
- package/helpers/generate-api-entities.js.map +0 -1
- package/helpers/get-demo-class-declarations.js.map +0 -1
- package/helpers/get-entity-constructor.d.ts +0 -7
- package/helpers/get-entity-constructor.js +0 -24
- package/helpers/get-entity-constructor.js.map +0 -1
- package/helpers/get-keyword-type-from-entity.d.ts +0 -7
- package/helpers/get-keyword-type-from-entity.js +0 -20
- package/helpers/get-keyword-type-from-entity.js.map +0 -1
- package/helpers/get-page-type.d.ts +0 -7
- package/helpers/get-page-type.js +0 -12
- package/helpers/get-page-type.js.map +0 -1
- package/helpers/is-not-excluded-path.d.ts +0 -6
- package/helpers/is-not-excluded-path.js +0 -15
- package/helpers/is-not-excluded-path.js.map +0 -1
- package/helpers/keyword-key.d.ts +0 -5
- package/helpers/keyword-key.js.map +0 -1
- package/helpers/process-html.d.ts +0 -13
- package/helpers/process-html.js +0 -43
- package/helpers/process-html.js.map +0 -1
- package/helpers/typescript/exclude-by-ts-docs-tags.d.ts +0 -7
- package/helpers/typescript/exclude-by-ts-docs-tags.js +0 -17
- package/helpers/typescript/exclude-by-ts-docs-tags.js.map +0 -1
- package/helpers/unique-name.d.ts +0 -5
- package/helpers/unique-name.js +0 -21
- package/helpers/unique-name.js.map +0 -1
- package/interfaces/build-result.d.ts +0 -10
- package/interfaces/build-result.js.map +0 -1
- package/operators/buffer-until-once.d.ts +0 -6
- package/operators/buffer-until-once.js +0 -14
- package/operators/buffer-until-once.js.map +0 -1
- package/operators/error-handler.d.ts +0 -7
- package/operators/error-handler.js +0 -20
- package/operators/error-handler.js.map +0 -1
- package/operators/fork-join-or-empty.d.ts +0 -6
- package/operators/fork-join-or-empty.js +0 -12
- package/operators/fork-join-or-empty.js.map +0 -1
- package/schematics/ng-update/steps/update-angular-json.d.ts +0 -4
- package/schematics/ng-update/steps/update-angular-json.js +0 -73
- package/schematics/ng-update/steps/update-angular-json.js.map +0 -1
- package/schematics/ng-update/steps/update-git-ignore.js +0 -21
- package/schematics/ng-update/steps/update-git-ignore.js.map +0 -1
- package/schematics/ng-update/steps/update-ts-config.d.ts +0 -5
- package/schematics/ng-update/steps/update-ts-config.js +0 -38
- package/schematics/ng-update/steps/update-ts-config.js.map +0 -1
- package/schematics/page/files/ng-doc.module.ts.template +0 -9
- package/templates/api/class.html.nunj +0 -96
- package/templates/api/function.html.nunj +0 -20
- package/templates/api/interface.html.nunj +0 -46
- package/templates/api/type-alias.html.nunj +0 -10
- package/templates/api/variable.html.nunj +0 -10
- package/templates/api-page.ts.nunj +0 -41
- package/templates/routing.ts.nunj +0 -11
- package/types/supported-declarations.d.ts +0 -2
- package/types/supported-declarations.js +0 -3
- package/types/supported-declarations.js.map +0 -1
- /package/engine/{entities/cache → cache}/cache.d.ts +0 -0
- /package/engine/{entities/cache → cache}/cached-files-initializer.d.ts +0 -0
- /package/engine/{entities/cache → cache}/cached-props-initializer.d.ts +0 -0
- /package/engine/{entities/cache → cache}/decorators/cached-entity.d.ts +0 -0
- /package/engine/{entities/cache → cache}/decorators/cached-files-getter.d.ts +0 -0
- /package/engine/{entities/cache → cache}/decorators/cached-files-getter.js +0 -0
- /package/engine/{entities/cache → cache}/decorators/cached-property.d.ts +0 -0
- /package/engine/{entities/cache → cache}/decorators/cached-property.js +0 -0
- /package/engine/{entities/cache → cache}/decorators/index.d.ts +0 -0
- /package/engine/{entities/cache → cache}/decorators/index.js +0 -0
- /package/engine/{entities/cache → cache}/helpers/create-cache-for-file.d.ts +0 -0
- /package/engine/{entities/cache → cache}/helpers/create-cache-for-file.js +0 -0
- /package/engine/{entities/cache → cache}/helpers/get-cache-dir-path.d.ts +0 -0
- /package/engine/{entities/cache → cache}/helpers/get-cache-file-path.d.ts +0 -0
- /package/engine/{entities/cache → cache}/helpers/get-cache-file-path.js +0 -0
- /package/engine/{entities/cache → cache}/helpers/index.d.ts +0 -0
- /package/engine/{entities/cache → cache}/helpers/index.js +0 -0
- /package/engine/{entities/cache → cache}/helpers/invalidate-cache-if-needed.d.ts +0 -0
- /package/engine/{entities/cache → cache}/helpers/is-cache-valid.d.ts +0 -0
- /package/engine/{entities/cache → cache}/helpers/load-cache.js +0 -0
- /package/engine/{entities/cache → cache}/helpers/update-cache.js +0 -0
- /package/engine/{entities/cache → cache}/index.d.ts +0 -0
- /package/engine/{entities/cache → cache}/index.js +0 -0
- /package/engine/{entities/cache → cache}/interfaces/cache-accessor.d.ts +0 -0
- /package/engine/{entities/cache → cache}/interfaces/cache-accessor.js +0 -0
- /package/engine/{entities/cache → cache}/interfaces/cached-data.js +0 -0
- /package/engine/{entities/cache → cache}/interfaces/index.d.ts +0 -0
- /package/engine/{entities/cache → cache}/interfaces/index.js +0 -0
- /package/helpers/{get-demo-class-declarations.d.ts → demo/get-demo-class-declarations.d.ts} +0 -0
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { NgDocFileEntity } from './file.entity';
|
|
2
|
-
export declare abstract class NgDocModuleEntity<TTarget> extends NgDocFileEntity<TTarget> {
|
|
3
|
-
/**
|
|
4
|
-
* Title of the module file.
|
|
5
|
-
*/
|
|
6
|
-
readonly moduleFileName: string;
|
|
7
|
-
abstract parent?: NgDocModuleEntity<unknown>;
|
|
8
|
-
/**
|
|
9
|
-
* Folder name in generated folder
|
|
10
|
-
*/
|
|
11
|
-
abstract folderName: string;
|
|
12
|
-
get folderPath(): string;
|
|
13
|
-
/**
|
|
14
|
-
* Returns paths to the module in generated folder
|
|
15
|
-
* @type {string}
|
|
16
|
-
*/
|
|
17
|
-
get modulePath(): string;
|
|
18
|
-
/**
|
|
19
|
-
* Returns relative paths to the module in generated folder that could be used for import
|
|
20
|
-
* @type {string}
|
|
21
|
-
*/
|
|
22
|
-
get moduleImport(): string;
|
|
23
|
-
destroy(): void;
|
|
24
|
-
removeArtifacts(): void;
|
|
25
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NgDocModuleEntity = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const path = tslib_1.__importStar(require("path"));
|
|
6
|
-
const helpers_1 = require("../../../helpers");
|
|
7
|
-
const cache_1 = require("../cache");
|
|
8
|
-
const file_entity_1 = require("./file.entity");
|
|
9
|
-
let NgDocModuleEntity = (() => {
|
|
10
|
-
var _a;
|
|
11
|
-
let _classSuper = file_entity_1.NgDocFileEntity;
|
|
12
|
-
let _instanceExtraInitializers = [];
|
|
13
|
-
let _get_modulePath_decorators;
|
|
14
|
-
return _a = class NgDocModuleEntity extends _classSuper {
|
|
15
|
-
constructor() {
|
|
16
|
-
super(...arguments);
|
|
17
|
-
/**
|
|
18
|
-
* Title of the module file.
|
|
19
|
-
*/
|
|
20
|
-
this.moduleFileName = (tslib_1.__runInitializers(this, _instanceExtraInitializers), 'module.ts');
|
|
21
|
-
}
|
|
22
|
-
get folderPath() {
|
|
23
|
-
var _b, _c;
|
|
24
|
-
return path.join((_c = (_b = this.parent) === null || _b === void 0 ? void 0 : _b.folderPath) !== null && _c !== void 0 ? _c : this.context.guidesPath, this.folderName);
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Returns paths to the module in generated folder
|
|
28
|
-
* @type {string}
|
|
29
|
-
*/
|
|
30
|
-
get modulePath() {
|
|
31
|
-
return path.join(this.folderPath, this.moduleFileName);
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Returns relative paths to the module in generated folder that could be used for import
|
|
35
|
-
* @type {string}
|
|
36
|
-
*/
|
|
37
|
-
get moduleImport() {
|
|
38
|
-
return (0, helpers_1.posix)(path.relative(this.context.context.workspaceRoot, this.modulePath)).replace(/.ts$/, '');
|
|
39
|
-
}
|
|
40
|
-
destroy() {
|
|
41
|
-
super.destroy();
|
|
42
|
-
}
|
|
43
|
-
removeArtifacts() {
|
|
44
|
-
super.removeArtifacts();
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
(() => {
|
|
48
|
-
var _b;
|
|
49
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create((_b = _classSuper[Symbol.metadata]) !== null && _b !== void 0 ? _b : null) : void 0;
|
|
50
|
-
_get_modulePath_decorators = [(0, cache_1.CachedFilesGetter)()];
|
|
51
|
-
tslib_1.__esDecorate(_a, null, _get_modulePath_decorators, { kind: "getter", name: "modulePath", static: false, private: false, access: { has: obj => "modulePath" in obj, get: obj => obj.modulePath }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
52
|
-
if (_metadata) Object.defineProperty(_a, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
53
|
-
})(),
|
|
54
|
-
_a;
|
|
55
|
-
})();
|
|
56
|
-
exports.NgDocModuleEntity = NgDocModuleEntity;
|
|
57
|
-
//# sourceMappingURL=module.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"module.entity.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/entities/abstractions/module.entity.ts"],"names":[],"mappings":";;;;AAAA,mDAA6B;AAE7B,8CAAyC;AACzC,oCAA6C;AAC7C,+CAAgD;IAE1B,iBAAiB;;sBAAkB,6BAAe;;;sBAAlD,iBAA2B,SAAQ,WAAwB;;;gBAChF;;mBAEG;gBACM,mBAAc,IAJF,2DAAiB,EAIJ,WAAW,EAAC;YAwC/C,CAAC;YA/BA,IAAI,UAAU;;gBACb,OAAO,IAAI,CAAC,IAAI,CAAC,MAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,UAAU,mCAAI,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;YACvF,CAAC;YAED;;;eAGG;YAEH,IAAI,UAAU;gBACb,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;YACxD,CAAC;YAED;;;eAGG;YACH,IAAI,YAAY;gBACf,OAAO,IAAA,eAAK,EAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,CACvF,MAAM,EACN,EAAE,CACF,CAAC;YACH,CAAC;YAEQ,OAAO;gBACf,KAAK,CAAC,OAAO,EAAE,CAAC;YACjB,CAAC;YAEQ,eAAe;gBACvB,KAAK,CAAC,eAAe,EAAE,CAAC;YACzB,CAAC;;;;;0CAtBA,IAAA,yBAAiB,GAAE;YACpB,2LAAI,UAAU,6DAEb;;;;;AAxBoB,8CAAiB"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { NgDocEntity } from './entity';
|
|
2
|
-
import { NgDocRouteEntity } from './route.entity';
|
|
3
|
-
/**
|
|
4
|
-
* Entity for pages that are using for navigation in the sidebar.
|
|
5
|
-
*/
|
|
6
|
-
export declare abstract class NgDocNavigationEntity<TTarget> extends NgDocRouteEntity<TTarget> {
|
|
7
|
-
/**
|
|
8
|
-
* Indicates when current entity is using for page navigation.
|
|
9
|
-
*/
|
|
10
|
-
readonly isNavigable: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Order is using for sorting pages and categories in sidebar
|
|
13
|
-
*/
|
|
14
|
-
abstract order?: number;
|
|
15
|
-
abstract parent?: NgDocNavigationEntity<unknown>;
|
|
16
|
-
get folderName(): string;
|
|
17
|
-
/**
|
|
18
|
-
* Returns is this category entity.
|
|
19
|
-
* @type {boolean}
|
|
20
|
-
*/
|
|
21
|
-
get isCategory(): boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Returns children of the current buildable that are using for page navigation
|
|
24
|
-
* @type {NgDocEntity[]}
|
|
25
|
-
*/
|
|
26
|
-
get navigationItems(): NgDocEntity[];
|
|
27
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NgDocNavigationEntity = void 0;
|
|
4
|
-
const helpers_1 = require("../../../helpers");
|
|
5
|
-
const route_entity_1 = require("./route.entity");
|
|
6
|
-
/**
|
|
7
|
-
* Entity for pages that are using for navigation in the sidebar.
|
|
8
|
-
*/
|
|
9
|
-
class NgDocNavigationEntity extends route_entity_1.NgDocRouteEntity {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
/**
|
|
13
|
-
* Indicates when current entity is using for page navigation.
|
|
14
|
-
*/
|
|
15
|
-
this.isNavigable = true;
|
|
16
|
-
}
|
|
17
|
-
get folderName() {
|
|
18
|
-
return this.route;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Returns is this category entity.
|
|
22
|
-
* @type {boolean}
|
|
23
|
-
*/
|
|
24
|
-
get isCategory() {
|
|
25
|
-
return (0, helpers_1.isCategoryEntity)(this);
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Returns children of the current buildable that are using for page navigation
|
|
29
|
-
* @type {NgDocEntity[]}
|
|
30
|
-
*/
|
|
31
|
-
get navigationItems() {
|
|
32
|
-
return this.builtChildren.filter((child) => child instanceof NgDocNavigationEntity && child.isNavigable);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.NgDocNavigationEntity = NgDocNavigationEntity;
|
|
36
|
-
//# sourceMappingURL=navigation.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.entity.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/entities/abstractions/navigation.entity.ts"],"names":[],"mappings":";;;AAAA,8CAAoD;AAEpD,iDAAkD;AAElD;;GAEG;AACH,MAAsB,qBAA+B,SAAQ,+BAAyB;IAAtF;;QACC;;WAEG;QACM,gBAAW,GAAY,IAAI,CAAC;IA8BtC,CAAC;IArBA,IAAa,UAAU;QACtB,OAAO,IAAI,CAAC,KAAK,CAAC;IACnB,CAAC;IAED;;;OAGG;IACH,IAAI,UAAU;QACb,OAAO,IAAA,0BAAgB,EAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED;;;OAGG;IACH,IAAI,eAAe;QAClB,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM,CAC/B,CAAC,KAAkB,EAAE,EAAE,CAAC,KAAK,YAAY,qBAAqB,IAAI,KAAK,CAAC,WAAW,CACnF,CAAC;IACH,CAAC;CACD;AAlCD,sDAkCC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { NgDocEntityKeyword } from '@ng-doc/builder';
|
|
2
|
-
import { NgDocEntityAnchor } from '@ng-doc/core';
|
|
3
|
-
import { NgDocModuleEntity } from './module.entity';
|
|
4
|
-
export declare abstract class NgDocRouteEntity<TTarget = unknown> extends NgDocModuleEntity<TTarget> {
|
|
5
|
-
/**
|
|
6
|
-
* The route for the current entity.
|
|
7
|
-
*/
|
|
8
|
-
abstract route: string;
|
|
9
|
-
/**
|
|
10
|
-
* The title of the current entity.
|
|
11
|
-
*/
|
|
12
|
-
abstract title: string;
|
|
13
|
-
/**
|
|
14
|
-
* Keywords that will be used to create links to the current entity on the pages
|
|
15
|
-
*/
|
|
16
|
-
abstract keywords: NgDocEntityKeyword[];
|
|
17
|
-
/**
|
|
18
|
-
* The list of anchors for the current entity, that can be used to create keywords
|
|
19
|
-
*/
|
|
20
|
-
anchors: NgDocEntityAnchor[];
|
|
21
|
-
/**
|
|
22
|
-
* Url for to the source file to the current page, that can be used to open it in repository and edit
|
|
23
|
-
*/
|
|
24
|
-
get editSourceFileUrl(): string | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* Url for to the source file to the current page, that can be used to open it in repository and view
|
|
27
|
-
*/
|
|
28
|
-
get viewSourceFileUrl(): string | undefined;
|
|
29
|
-
get fullRoute(): string;
|
|
30
|
-
/**
|
|
31
|
-
* Returns breadcrumbs for the current entity
|
|
32
|
-
*/
|
|
33
|
-
get breadcrumbs(): string[];
|
|
34
|
-
beforeBuild(): void;
|
|
35
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NgDocRouteEntity = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const core_1 = require("@ng-doc/core");
|
|
6
|
-
const path = tslib_1.__importStar(require("path"));
|
|
7
|
-
const helpers_1 = require("../../../helpers");
|
|
8
|
-
const cache_1 = require("../cache");
|
|
9
|
-
const module_entity_1 = require("./module.entity");
|
|
10
|
-
let NgDocRouteEntity = (() => {
|
|
11
|
-
var _a;
|
|
12
|
-
let _classSuper = module_entity_1.NgDocModuleEntity;
|
|
13
|
-
let _anchors_decorators;
|
|
14
|
-
let _anchors_initializers = [];
|
|
15
|
-
let _anchors_extraInitializers = [];
|
|
16
|
-
return _a = class NgDocRouteEntity extends _classSuper {
|
|
17
|
-
/**
|
|
18
|
-
* Url for to the source file to the current page, that can be used to open it in repository and edit
|
|
19
|
-
*/
|
|
20
|
-
get editSourceFileUrl() {
|
|
21
|
-
return undefined;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Url for to the source file to the current page, that can be used to open it in repository and view
|
|
25
|
-
*/
|
|
26
|
-
get viewSourceFileUrl() {
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
get fullRoute() {
|
|
30
|
-
var _b;
|
|
31
|
-
const parentRoute = this.parent instanceof _a
|
|
32
|
-
? this.parent.fullRoute
|
|
33
|
-
: (_b = this.context.config.routePrefix) !== null && _b !== void 0 ? _b : '';
|
|
34
|
-
return (0, helpers_1.posix)(path.join('/', parentRoute, this.route));
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Returns breadcrumbs for the current entity
|
|
38
|
-
*/
|
|
39
|
-
get breadcrumbs() {
|
|
40
|
-
var _b;
|
|
41
|
-
return (0, helpers_1.isRouteEntity)(this.parent)
|
|
42
|
-
? [...(0, core_1.asArray)((_b = this === null || this === void 0 ? void 0 : this.parent) === null || _b === void 0 ? void 0 : _b.breadcrumbs), this.title]
|
|
43
|
-
: [this.title];
|
|
44
|
-
}
|
|
45
|
-
beforeBuild() {
|
|
46
|
-
this.anchors = [];
|
|
47
|
-
return super.beforeBuild();
|
|
48
|
-
}
|
|
49
|
-
constructor() {
|
|
50
|
-
super(...arguments);
|
|
51
|
-
/**
|
|
52
|
-
* The list of anchors for the current entity, that can be used to create keywords
|
|
53
|
-
*/
|
|
54
|
-
this.anchors = tslib_1.__runInitializers(this, _anchors_initializers, []);
|
|
55
|
-
tslib_1.__runInitializers(this, _anchors_extraInitializers);
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
(() => {
|
|
59
|
-
var _b;
|
|
60
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create((_b = _classSuper[Symbol.metadata]) !== null && _b !== void 0 ? _b : null) : void 0;
|
|
61
|
-
_anchors_decorators = [(0, cache_1.CachedProperty)()];
|
|
62
|
-
tslib_1.__esDecorate(null, null, _anchors_decorators, { kind: "field", name: "anchors", static: false, private: false, access: { has: obj => "anchors" in obj, get: obj => obj.anchors, set: (obj, value) => { obj.anchors = value; } }, metadata: _metadata }, _anchors_initializers, _anchors_extraInitializers);
|
|
63
|
-
if (_metadata) Object.defineProperty(_a, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
64
|
-
})(),
|
|
65
|
-
_a;
|
|
66
|
-
})();
|
|
67
|
-
exports.NgDocRouteEntity = NgDocRouteEntity;
|
|
68
|
-
//# sourceMappingURL=route.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"route.entity.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/entities/abstractions/route.entity.ts"],"names":[],"mappings":";;;;AACA,uCAA0D;AAC1D,mDAA6B;AAE7B,8CAAwD;AACxD,oCAA0C;AAC1C,mDAAoD;IAE9B,gBAAgB;;sBAA4B,iCAAiB;;;;sBAA7D,gBAAoC,SAAQ,WAA0B;YAsB3F;;eAEG;YACH,IAAI,iBAAiB;gBACpB,OAAO,SAAS,CAAC;YAClB,CAAC;YAED;;eAEG;YACH,IAAI,iBAAiB;gBACpB,OAAO,SAAS,CAAC;YAClB,CAAC;YAED,IAAI,SAAS;;gBACZ,MAAM,WAAW,GAChB,IAAI,CAAC,MAAM,YAAY,EAAgB;oBACtC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS;oBACvB,CAAC,CAAC,MAAA,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW,mCAAI,EAAE,CAAC;gBAE1C,OAAO,IAAA,eAAK,EAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;YACvD,CAAC;YAED;;eAEG;YACH,IAAI,WAAW;;gBACd,OAAO,IAAA,uBAAa,EAAC,IAAI,CAAC,MAAM,CAAC;oBAChC,CAAC,CAAC,CAAC,GAAG,IAAA,cAAO,EAAC,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,0CAAE,WAAW,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC;oBACrD,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACjB,CAAC;YAEQ,WAAW;gBACnB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;gBAElB,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC;YAC5B,CAAC;;;gBA1CD;;mBAEG;gBAEH,YAAO,0DAAwB,EAAE,EAAC;;;;;;;mCADjC,IAAA,sBAAc,GAAE;YACjB,+KAAA,OAAO,6BAAP,OAAO,yFAA2B;;;;;AApBb,4CAAgB"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { SourceFile } from 'ts-morph';
|
|
3
|
-
import { NgDocBuilderContext } from '../../../interfaces';
|
|
4
|
-
import { NgDocEntityStore } from '../../entity-store';
|
|
5
|
-
import { NgDocCache } from '../cache';
|
|
6
|
-
import { NgDocEntity } from './entity';
|
|
7
|
-
export declare abstract class NgDocSourceFileEntity extends NgDocEntity {
|
|
8
|
-
readonly store: NgDocEntityStore;
|
|
9
|
-
readonly cache: NgDocCache;
|
|
10
|
-
readonly context: NgDocBuilderContext;
|
|
11
|
-
readonly sourceFile: SourceFile;
|
|
12
|
-
/**
|
|
13
|
-
* The key by which the entity will be stored in the store
|
|
14
|
-
*/
|
|
15
|
-
readonly id: string;
|
|
16
|
-
constructor(store: NgDocEntityStore, cache: NgDocCache, context: NgDocBuilderContext, sourceFile: SourceFile);
|
|
17
|
-
/**
|
|
18
|
-
* Files that are watched for changes to rebuild entity or remove it
|
|
19
|
-
*/
|
|
20
|
-
get rootFiles(): string[];
|
|
21
|
-
get sourceFilePath(): string;
|
|
22
|
-
/**
|
|
23
|
-
* Returns relative path to a sourceFileFolder of the source file
|
|
24
|
-
* @type {string}
|
|
25
|
-
*/
|
|
26
|
-
get sourceFileFolder(): string;
|
|
27
|
-
get importPath(): string;
|
|
28
|
-
/**
|
|
29
|
-
* Returns import paths that can be used to import the current source file
|
|
30
|
-
*/
|
|
31
|
-
get pathToCompiledFile(): string;
|
|
32
|
-
/**
|
|
33
|
-
* Runs when the source file was updated, can be used refresh source file in the typescript project
|
|
34
|
-
*/
|
|
35
|
-
protected refreshImpl(): Observable<void>;
|
|
36
|
-
refresh(): Observable<void>;
|
|
37
|
-
destroy(): void;
|
|
38
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NgDocSourceFileEntity = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const path_1 = tslib_1.__importDefault(require("path"));
|
|
6
|
-
const rxjs_1 = require("rxjs");
|
|
7
|
-
const operators_1 = require("rxjs/operators");
|
|
8
|
-
const helpers_1 = require("../../../helpers");
|
|
9
|
-
const variables_1 = require("../../variables");
|
|
10
|
-
const entity_1 = require("./entity");
|
|
11
|
-
class NgDocSourceFileEntity extends entity_1.NgDocEntity {
|
|
12
|
-
constructor(store, cache, context, sourceFile) {
|
|
13
|
-
super(store, cache, context);
|
|
14
|
-
this.store = store;
|
|
15
|
-
this.cache = cache;
|
|
16
|
-
this.context = context;
|
|
17
|
-
this.sourceFile = sourceFile;
|
|
18
|
-
/**
|
|
19
|
-
* The key by which the entity will be stored in the store
|
|
20
|
-
*/
|
|
21
|
-
this.id = this.sourceFilePath;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Files that are watched for changes to rebuild entity or remove it
|
|
25
|
-
*/
|
|
26
|
-
get rootFiles() {
|
|
27
|
-
return [this.sourceFile.getFilePath()];
|
|
28
|
-
}
|
|
29
|
-
get sourceFilePath() {
|
|
30
|
-
return path_1.default.relative(this.context.context.workspaceRoot, this.sourceFile.getFilePath());
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Returns relative path to a sourceFileFolder of the source file
|
|
34
|
-
* @type {string}
|
|
35
|
-
*/
|
|
36
|
-
get sourceFileFolder() {
|
|
37
|
-
return path_1.default.relative(this.context.context.workspaceRoot, path_1.default.dirname(this.sourceFilePath));
|
|
38
|
-
}
|
|
39
|
-
get importPath() {
|
|
40
|
-
return (0, helpers_1.posix)(this.sourceFilePath.replace(/.ts$/, ''));
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Returns import paths that can be used to import the current source file
|
|
44
|
-
*/
|
|
45
|
-
get pathToCompiledFile() {
|
|
46
|
-
const relativePath = path_1.default.relative(this.context.context.workspaceRoot, this.sourceFile.getFilePath());
|
|
47
|
-
return path_1.default.join(variables_1.CACHE_PATH, relativePath.replace(/\.ts$/, '.mjs'));
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Runs when the source file was updated, can be used refresh source file in the typescript project
|
|
51
|
-
*/
|
|
52
|
-
refreshImpl() {
|
|
53
|
-
[this.sourceFile, ...this.sourceFile.getReferencedSourceFiles()].forEach((sourceFile) => sourceFile.refreshFromFileSystemSync());
|
|
54
|
-
return (0, rxjs_1.of)(void 0);
|
|
55
|
-
}
|
|
56
|
-
refresh() {
|
|
57
|
-
// Reset warnings and errors because it's the first step of the build process
|
|
58
|
-
this.warnings = [];
|
|
59
|
-
this.errors = [];
|
|
60
|
-
return this.refreshImpl().pipe((0, operators_1.tap)({
|
|
61
|
-
error: (e) => this.errors.push(e),
|
|
62
|
-
}));
|
|
63
|
-
}
|
|
64
|
-
destroy() {
|
|
65
|
-
super.destroy();
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
exports.NgDocSourceFileEntity = NgDocSourceFileEntity;
|
|
69
|
-
//# sourceMappingURL=source-file.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-file.entity.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/entities/abstractions/source-file.entity.ts"],"names":[],"mappings":";;;;AAAA,wDAAwB;AACxB,+BAAsC;AACtC,8CAAqC;AAGrC,8CAAyC;AAGzC,+CAA6C;AAE7C,qCAAuC;AAEvC,MAAsB,qBAAsB,SAAQ,oBAAW;IAM9D,YACmB,KAAuB,EACvB,KAAiB,EACjB,OAA4B,EACrC,UAAsB;QAE/B,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QALX,UAAK,GAAL,KAAK,CAAkB;QACvB,UAAK,GAAL,KAAK,CAAY;QACjB,YAAO,GAAP,OAAO,CAAqB;QACrC,eAAU,GAAV,UAAU,CAAY;QAThC;;WAEG;QACe,OAAE,GAAW,IAAI,CAAC,cAAc,CAAC;IASnD,CAAC;IAED;;OAEG;IACH,IAAa,SAAS;QACrB,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,CAAC;IACxC,CAAC;IAED,IAAI,cAAc;QACjB,OAAO,cAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;OAGG;IACH,IAAI,gBAAgB;QACnB,OAAO,cAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,EAAE,cAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;IAC7F,CAAC;IAED,IAAI,UAAU;QACb,OAAO,IAAA,eAAK,EAAC,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC;IACvD,CAAC;IAED;;OAEG;IACH,IAAI,kBAAkB;QACrB,MAAM,YAAY,GAAW,cAAI,CAAC,QAAQ,CACzC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,EAClC,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAC7B,CAAC;QAEF,OAAO,cAAI,CAAC,IAAI,CAAC,sBAAU,EAAE,YAAY,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACO,WAAW;QACpB,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAC,CAAC,OAAO,CACvE,CAAC,UAAsB,EAAE,EAAE,CAAC,UAAU,CAAC,yBAAyB,EAAE,CAClE,CAAC;QAEF,OAAO,IAAA,SAAE,EAAC,KAAK,CAAC,CAAC,CAAC;IACnB,CAAC;IAED,OAAO;QACN,6EAA6E;QAC7E,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QAEjB,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,IAAI,CAC7B,IAAA,eAAG,EAAC;YACH,KAAK,EAAE,CAAC,CAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;SACxC,CAAC,CACF,CAAC;IACH,CAAC;IAEQ,OAAO;QACf,KAAK,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC;CACD;AA5ED,sDA4EC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { NgDocApiList } from '@ng-doc/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { NgDocBuilderContext, NgDocBuildResult } from '../../interfaces';
|
|
4
|
-
import { NgDocEntityStore } from '../entity-store';
|
|
5
|
-
import { NgDocEntity } from './abstractions/entity';
|
|
6
|
-
import { NgDocApiEntity } from './api.entity';
|
|
7
|
-
import { NgDocCache } from './cache';
|
|
8
|
-
export declare class NgDocApiListEntity extends NgDocEntity {
|
|
9
|
-
readonly store: NgDocEntityStore;
|
|
10
|
-
readonly cache: NgDocCache;
|
|
11
|
-
readonly context: NgDocBuilderContext;
|
|
12
|
-
readonly parent: NgDocApiEntity;
|
|
13
|
-
id: string;
|
|
14
|
-
isRoot: boolean;
|
|
15
|
-
rootFiles: string[];
|
|
16
|
-
buildCandidates: NgDocEntity[];
|
|
17
|
-
constructor(store: NgDocEntityStore, cache: NgDocCache, context: NgDocBuilderContext, parent: NgDocApiEntity);
|
|
18
|
-
get outputPath(): string;
|
|
19
|
-
build(): Observable<NgDocBuildResult<NgDocApiList[]>>;
|
|
20
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NgDocApiListEntity = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const path = tslib_1.__importStar(require("path"));
|
|
6
|
-
const rxjs_1 = require("rxjs");
|
|
7
|
-
const helpers_1 = require("../../helpers");
|
|
8
|
-
const entity_1 = require("./abstractions/entity");
|
|
9
|
-
const cache_1 = require("./cache");
|
|
10
|
-
let NgDocApiListEntity = (() => {
|
|
11
|
-
let _classDecorators = [(0, cache_1.CachedEntity)()];
|
|
12
|
-
let _classDescriptor;
|
|
13
|
-
let _classExtraInitializers = [];
|
|
14
|
-
let _classThis;
|
|
15
|
-
let _classSuper = entity_1.NgDocEntity;
|
|
16
|
-
let _instanceExtraInitializers = [];
|
|
17
|
-
let _get_outputPath_decorators;
|
|
18
|
-
var NgDocApiListEntity = _classThis = class extends _classSuper {
|
|
19
|
-
constructor(store, cache, context, parent) {
|
|
20
|
-
super(store, cache, context);
|
|
21
|
-
this.store = (tslib_1.__runInitializers(this, _instanceExtraInitializers), store);
|
|
22
|
-
this.cache = cache;
|
|
23
|
-
this.context = context;
|
|
24
|
-
this.parent = parent;
|
|
25
|
-
this.id = `${this.parent.id}#NgDocApiList`;
|
|
26
|
-
this.isRoot = false;
|
|
27
|
-
this.rootFiles = [];
|
|
28
|
-
this.buildCandidates = [];
|
|
29
|
-
}
|
|
30
|
-
get outputPath() {
|
|
31
|
-
return path.join(this.parent.folderPath, 'ng-doc.api-list.json');
|
|
32
|
-
}
|
|
33
|
-
build() {
|
|
34
|
-
const result = this.parent.children
|
|
35
|
-
.filter(helpers_1.isApiScopeEntity)
|
|
36
|
-
.sort((a, b) => { var _a, _b; return ((_a = b.order) !== null && _a !== void 0 ? _a : 0) - ((_b = a.order) !== null && _b !== void 0 ? _b : 0); })
|
|
37
|
-
.map((scope) => ({
|
|
38
|
-
title: scope.title,
|
|
39
|
-
items: scope.children.filter(helpers_1.isApiPageEntity).map((page) => {
|
|
40
|
-
var _a, _b, _c;
|
|
41
|
-
return ({
|
|
42
|
-
route: (0, helpers_1.posix)(path.join(scope.route, page.route)),
|
|
43
|
-
type: (_a = (page.declaration && (0, helpers_1.getKindType)(page.declaration))) !== null && _a !== void 0 ? _a : '',
|
|
44
|
-
name: (_c = (_b = page.declaration) === null || _b === void 0 ? void 0 : _b.getName()) !== null && _c !== void 0 ? _c : '',
|
|
45
|
-
});
|
|
46
|
-
}),
|
|
47
|
-
}));
|
|
48
|
-
return (0, rxjs_1.of)({
|
|
49
|
-
result,
|
|
50
|
-
entity: this,
|
|
51
|
-
toBuilderOutput: (content) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
52
|
-
return ({
|
|
53
|
-
content: JSON.stringify(content, undefined, 2),
|
|
54
|
-
filePath: this.outputPath,
|
|
55
|
-
});
|
|
56
|
-
}),
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
tslib_1.__setFunctionName(_classThis, "NgDocApiListEntity");
|
|
61
|
-
(() => {
|
|
62
|
-
var _a;
|
|
63
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create((_a = _classSuper[Symbol.metadata]) !== null && _a !== void 0 ? _a : null) : void 0;
|
|
64
|
-
_get_outputPath_decorators = [(0, cache_1.CachedFilesGetter)()];
|
|
65
|
-
tslib_1.__esDecorate(_classThis, null, _get_outputPath_decorators, { kind: "getter", name: "outputPath", static: false, private: false, access: { has: obj => "outputPath" in obj, get: obj => obj.outputPath }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
66
|
-
tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
67
|
-
NgDocApiListEntity = _classThis = _classDescriptor.value;
|
|
68
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
69
|
-
tslib_1.__runInitializers(_classThis, _classExtraInitializers);
|
|
70
|
-
})();
|
|
71
|
-
return NgDocApiListEntity = _classThis;
|
|
72
|
-
})();
|
|
73
|
-
exports.NgDocApiListEntity = NgDocApiListEntity;
|
|
74
|
-
//# sourceMappingURL=api-list.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-list.entity.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/entities/api-list.entity.ts"],"names":[],"mappings":";;;;AACA,mDAA6B;AAC7B,+BAAsC;AAEtC,2CAAsF;AAGtF,kDAAoD;AAIpD,mCAAsE;IAGzD,kBAAkB;4BAD9B,IAAA,oBAAY,GAAE;;;;sBACyB,oBAAW;;;+CAAnB,SAAQ,WAAW;QAMlD,YACmB,KAAuB,EACvB,KAAiB,EACjB,OAA4B,EACrC,MAAsB;YAE/B,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;YALX,UAAK,IAPZ,2DAAkB,EAOX,KAAK,EAAkB;YACvB,UAAK,GAAL,KAAK,CAAY;YACjB,YAAO,GAAP,OAAO,CAAqB;YACrC,WAAM,GAAN,MAAM,CAAgB;YATvB,OAAE,GAAW,GAAG,IAAI,CAAC,MAAM,CAAC,EAAE,eAAe,CAAC;YAC9C,WAAM,GAAY,KAAK,CAAC;YACxB,cAAS,GAAa,EAAE,CAAC;YACzB,oBAAe,GAAkB,EAAE,CAAC;QAS7C,CAAC;QAGD,IAAI,UAAU;YACb,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,sBAAsB,CAAC,CAAC;QAClE,CAAC;QAED,KAAK;YACJ,MAAM,MAAM,GAAmB,IAAI,CAAC,MAAM,CAAC,QAAQ;iBACjD,MAAM,CAAC,0BAAgB,CAAC;iBACxB,IAAI,CAAC,CAAC,CAAsB,EAAE,CAAsB,EAAE,EAAE,eAAC,OAAA,CAAC,MAAA,CAAC,CAAC,KAAK,mCAAI,CAAC,CAAC,GAAG,CAAC,MAAA,CAAC,CAAC,KAAK,mCAAI,CAAC,CAAC,CAAA,EAAA,CAAC;iBACzF,GAAG,CAAC,CAAC,KAA0B,EAAE,EAAE,CAAC,CAAC;gBACrC,KAAK,EAAE,KAAK,CAAC,KAAK;gBAClB,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,yBAAe,CAAC,CAAC,GAAG,CAAC,CAAC,IAAwB,EAAE,EAAE;;oBAAC,OAAA,CAAC;wBAChF,KAAK,EAAE,IAAA,eAAK,EAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;wBAChD,IAAI,EAAE,MAAA,CAAC,IAAI,CAAC,WAAW,IAAI,IAAA,qBAAW,EAAC,IAAI,CAAC,WAAW,CAAC,CAAC,mCAAI,EAAE;wBAC/D,IAAI,EAAE,MAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,OAAO,EAAE,mCAAI,EAAE;qBACvC,CAAC,CAAA;iBAAA,CAAC;aACH,CAAC,CAAC,CAAC;YAEL,OAAO,IAAA,SAAE,EAAC;gBACT,MAAM;gBACN,MAAM,EAAE,IAAI;gBACZ,eAAe,EAAE,CAAO,OAAuB,EAAE,EAAE;oBAAC,OAAA,CAAC;wBACpD,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC;wBAC9C,QAAQ,EAAE,IAAI,CAAC,UAAU;qBACzB,CAAC,CAAA;kBAAA;aACF,CAAC,CAAC;QACJ,CAAC;;;;;;sCA1BA,IAAA,yBAAiB,GAAE;QACpB,mMAAI,UAAU,6DAEb;QAlBF,qLA0CC;;;QA1CY,+DAAkB;;;;AAAlB,gDAAkB"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { SourceFile } from 'ts-morph';
|
|
3
|
-
import { NgDocBuilderContext, NgDocBuildResult, NgDocEntityKeyword } from '../../interfaces';
|
|
4
|
-
import { NgDocSupportedDeclarations } from '../../types';
|
|
5
|
-
import { NgDocEntityStore } from '../entity-store';
|
|
6
|
-
import { NgDocEntity } from './abstractions/entity';
|
|
7
|
-
import { NgDocRouteEntity } from './abstractions/route.entity';
|
|
8
|
-
import { NgDocApiScopeEntity } from './api-scope.entity';
|
|
9
|
-
import { NgDocCache } from './cache';
|
|
10
|
-
export declare class NgDocApiPageEntity extends NgDocRouteEntity<never> {
|
|
11
|
-
readonly store: NgDocEntityStore;
|
|
12
|
-
readonly cache: NgDocCache;
|
|
13
|
-
readonly context: NgDocBuilderContext;
|
|
14
|
-
readonly sourceFile: SourceFile;
|
|
15
|
-
parent: NgDocApiScopeEntity;
|
|
16
|
-
readonly declarationName: string;
|
|
17
|
-
readonly index: number;
|
|
18
|
-
declaration?: NgDocSupportedDeclarations;
|
|
19
|
-
readonly physical: boolean;
|
|
20
|
-
readonly id: string;
|
|
21
|
-
folderName: string;
|
|
22
|
-
constructor(store: NgDocEntityStore, cache: NgDocCache, context: NgDocBuilderContext, sourceFile: SourceFile, parent: NgDocApiScopeEntity, declarationName: string, index: number);
|
|
23
|
-
get isRoot(): boolean;
|
|
24
|
-
get route(): string;
|
|
25
|
-
protected refreshImpl(): Observable<void>;
|
|
26
|
-
get title(): string;
|
|
27
|
-
get editSourceFileUrl(): string | undefined;
|
|
28
|
-
get viewSourceFileUrl(): string | undefined;
|
|
29
|
-
get folderPath(): string;
|
|
30
|
-
get buildCandidates(): NgDocEntity[];
|
|
31
|
-
get keywords(): NgDocEntityKeyword[];
|
|
32
|
-
compile(): Observable<void>;
|
|
33
|
-
protected loadImpl(): Observable<void>;
|
|
34
|
-
build(): Observable<NgDocBuildResult<string, this>>;
|
|
35
|
-
private updateDeclaration;
|
|
36
|
-
}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NgDocApiPageEntity = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const core_1 = require("@ng-doc/core");
|
|
6
|
-
const path = tslib_1.__importStar(require("path"));
|
|
7
|
-
const rxjs_1 = require("rxjs");
|
|
8
|
-
const helpers_1 = require("../../helpers");
|
|
9
|
-
const nunjucks_1 = require("../nunjucks");
|
|
10
|
-
const route_entity_1 = require("./abstractions/route.entity");
|
|
11
|
-
const cache_1 = require("./cache");
|
|
12
|
-
const plugins_1 = require("./plugins");
|
|
13
|
-
let NgDocApiPageEntity = (() => {
|
|
14
|
-
let _classDecorators = [(0, cache_1.CachedEntity)()];
|
|
15
|
-
let _classDescriptor;
|
|
16
|
-
let _classExtraInitializers = [];
|
|
17
|
-
let _classThis;
|
|
18
|
-
let _classSuper = route_entity_1.NgDocRouteEntity;
|
|
19
|
-
var NgDocApiPageEntity = _classThis = class extends _classSuper {
|
|
20
|
-
constructor(store, cache, context, sourceFile, parent, declarationName, index) {
|
|
21
|
-
super(store, cache, context, sourceFile);
|
|
22
|
-
this.store = store;
|
|
23
|
-
this.cache = cache;
|
|
24
|
-
this.context = context;
|
|
25
|
-
this.sourceFile = sourceFile;
|
|
26
|
-
this.parent = parent;
|
|
27
|
-
this.declarationName = declarationName;
|
|
28
|
-
this.index = index;
|
|
29
|
-
this.physical = false;
|
|
30
|
-
this.id = (0, helpers_1.uniqueName)(`${this.sourceFilePath}#${this.declarationName}`);
|
|
31
|
-
this.folderName = '';
|
|
32
|
-
this.updateDeclaration();
|
|
33
|
-
}
|
|
34
|
-
get isRoot() {
|
|
35
|
-
// always false, api pages are not rooted
|
|
36
|
-
return false;
|
|
37
|
-
}
|
|
38
|
-
get route() {
|
|
39
|
-
return this.declaration
|
|
40
|
-
? (0, helpers_1.posix)(path.join((0, helpers_1.declarationFolderName)(this.declaration), this.declarationName + (this.index ? this.index : '')))
|
|
41
|
-
: '';
|
|
42
|
-
}
|
|
43
|
-
refreshImpl() {
|
|
44
|
-
/**
|
|
45
|
-
* Just refresh source file, we don't need to emit it
|
|
46
|
-
*/
|
|
47
|
-
this.sourceFile.refreshFromFileSystemSync();
|
|
48
|
-
this.updateDeclaration();
|
|
49
|
-
return (0, rxjs_1.of)(void 0);
|
|
50
|
-
}
|
|
51
|
-
get title() {
|
|
52
|
-
return this.declarationName;
|
|
53
|
-
}
|
|
54
|
-
get editSourceFileUrl() {
|
|
55
|
-
var _a;
|
|
56
|
-
if (this.context.config.repoConfig) {
|
|
57
|
-
return (0, helpers_1.editFileInRepoUrl)(this.context.config.repoConfig, this.sourceFilePath, this.parent.route.toLowerCase(), (_a = this.declaration) === null || _a === void 0 ? void 0 : _a.getStartLineNumber(true));
|
|
58
|
-
}
|
|
59
|
-
return undefined;
|
|
60
|
-
}
|
|
61
|
-
get viewSourceFileUrl() {
|
|
62
|
-
var _a;
|
|
63
|
-
if (this.context.config.repoConfig) {
|
|
64
|
-
return (0, helpers_1.viewFileInRepoUrl)(this.context.config.repoConfig, this.sourceFilePath, (_a = this.declaration) === null || _a === void 0 ? void 0 : _a.getStartLineNumber(true));
|
|
65
|
-
}
|
|
66
|
-
return undefined;
|
|
67
|
-
}
|
|
68
|
-
get folderPath() {
|
|
69
|
-
return path.join(this.parent.folderPath, this.route);
|
|
70
|
-
}
|
|
71
|
-
get buildCandidates() {
|
|
72
|
-
return [];
|
|
73
|
-
}
|
|
74
|
-
get keywords() {
|
|
75
|
-
return [
|
|
76
|
-
{
|
|
77
|
-
key: this.declarationName,
|
|
78
|
-
title: this.declarationName,
|
|
79
|
-
path: this.fullRoute,
|
|
80
|
-
},
|
|
81
|
-
].concat(this.anchors.map((anchor) => (0, helpers_1.buildEntityKeyword)(this.declarationName, this.declarationName, this.fullRoute, anchor)));
|
|
82
|
-
}
|
|
83
|
-
compile() {
|
|
84
|
-
return (0, rxjs_1.of)(void 0);
|
|
85
|
-
}
|
|
86
|
-
loadImpl() {
|
|
87
|
-
return (0, rxjs_1.of)(void 0);
|
|
88
|
-
}
|
|
89
|
-
build() {
|
|
90
|
-
if (this.parent.target) {
|
|
91
|
-
const result = (0, nunjucks_1.renderTemplate)('./api-page-content.html.nunj', {
|
|
92
|
-
context: {
|
|
93
|
-
declaration: this.declaration,
|
|
94
|
-
scope: this.parent.target,
|
|
95
|
-
},
|
|
96
|
-
});
|
|
97
|
-
return (0, rxjs_1.of)({
|
|
98
|
-
result,
|
|
99
|
-
entity: this,
|
|
100
|
-
toBuilderOutput: (content) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
101
|
-
return ({
|
|
102
|
-
content: (0, nunjucks_1.renderTemplate)('./api-page.ts.nunj', {
|
|
103
|
-
context: {
|
|
104
|
-
page: this,
|
|
105
|
-
pageContent: content,
|
|
106
|
-
},
|
|
107
|
-
}),
|
|
108
|
-
filePath: this.modulePath,
|
|
109
|
-
});
|
|
110
|
-
}),
|
|
111
|
-
postBuildPlugins: [(0, plugins_1.processHtmlPlugin)()],
|
|
112
|
-
postProcessPlugins: [(0, plugins_1.postProcessHtmlPlugin)(), (0, plugins_1.fillIndexesPlugin)()],
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
throw new Error(`The entity "${this.id}" is not loaded.`);
|
|
116
|
-
}
|
|
117
|
-
updateDeclaration() {
|
|
118
|
-
const declarations = [
|
|
119
|
-
...(0, core_1.asArray)(this.sourceFile.getExportedDeclarations().get(this.declarationName)),
|
|
120
|
-
...(0, core_1.asArray)(this.sourceFile.getExportedDeclarations().get('default')),
|
|
121
|
-
].filter(helpers_1.isSupportedDeclaration);
|
|
122
|
-
this.declaration = declarations.find((declaration) => declaration.getName() === this.declarationName);
|
|
123
|
-
if (!this.declaration) {
|
|
124
|
-
this.destroy();
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
tslib_1.__setFunctionName(_classThis, "NgDocApiPageEntity");
|
|
129
|
-
(() => {
|
|
130
|
-
var _a;
|
|
131
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create((_a = _classSuper[Symbol.metadata]) !== null && _a !== void 0 ? _a : null) : void 0;
|
|
132
|
-
tslib_1.__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
133
|
-
NgDocApiPageEntity = _classThis = _classDescriptor.value;
|
|
134
|
-
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
135
|
-
tslib_1.__runInitializers(_classThis, _classExtraInitializers);
|
|
136
|
-
})();
|
|
137
|
-
return NgDocApiPageEntity = _classThis;
|
|
138
|
-
})();
|
|
139
|
-
exports.NgDocApiPageEntity = NgDocApiPageEntity;
|
|
140
|
-
//# sourceMappingURL=api-page.entity.js.map
|