@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,7 +0,0 @@
|
|
|
1
|
-
import { OperatorFunction } from 'rxjs';
|
|
2
|
-
import { NgDocEntityStore } from '../entity-store';
|
|
3
|
-
/**
|
|
4
|
-
* Prints all errors and warnings existing in the store
|
|
5
|
-
* @param store - The store to print warnings and errors from
|
|
6
|
-
*/
|
|
7
|
-
export declare function printOutput<T>(store: NgDocEntityStore): OperatorFunction<T, T>;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.printOutput = printOutput;
|
|
4
|
-
const operators_1 = require("rxjs/operators");
|
|
5
|
-
const helpers_1 = require("../../helpers");
|
|
6
|
-
/**
|
|
7
|
-
* Prints all errors and warnings existing in the store
|
|
8
|
-
* @param store - The store to print warnings and errors from
|
|
9
|
-
*/
|
|
10
|
-
function printOutput(store) {
|
|
11
|
-
return (source) => source.pipe((0, operators_1.tap)(() => {
|
|
12
|
-
const entitiesWithErrors = store
|
|
13
|
-
.getAllWithErrorsOrWarnings()
|
|
14
|
-
.sort(sortEntities);
|
|
15
|
-
if (entitiesWithErrors.length > 0) {
|
|
16
|
-
(0, helpers_1.printError)(`NgDoc: ${entitiesWithErrors.length} entities with problems:`);
|
|
17
|
-
entitiesWithErrors.forEach((entity) => {
|
|
18
|
-
const printIdFunc = entity.errors.length ? helpers_1.printError : helpers_1.printWarning;
|
|
19
|
-
printIdFunc(` ${entity.id}:`);
|
|
20
|
-
entity.warnings.forEach((error, i) => {
|
|
21
|
-
const isLast = i === entity.warnings.length - 1 && !entity.errors.length;
|
|
22
|
-
(0, helpers_1.printWarning)(` ${error.message}${isLast ? '\n' : ''}`);
|
|
23
|
-
});
|
|
24
|
-
entity.errors.forEach((error, i) => {
|
|
25
|
-
const isLast = i === entity.errors.length - 1;
|
|
26
|
-
(0, helpers_1.printError)(` ${error}${isLast ? '\n' : ''}`);
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
}));
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Sorts entities by errors and warnings
|
|
34
|
-
* @param a - The first entity to compare
|
|
35
|
-
* @param b - The second entity to compare
|
|
36
|
-
*/
|
|
37
|
-
function sortEntities(a, b) {
|
|
38
|
-
if (a.errors.length && !b.errors.length) {
|
|
39
|
-
return -1;
|
|
40
|
-
}
|
|
41
|
-
if (!a.errors.length && b.errors.length) {
|
|
42
|
-
return 1;
|
|
43
|
-
}
|
|
44
|
-
if (a.warnings.length && !b.warnings.length) {
|
|
45
|
-
return -1;
|
|
46
|
-
}
|
|
47
|
-
if (!a.warnings.length && b.warnings.length) {
|
|
48
|
-
return 1;
|
|
49
|
-
}
|
|
50
|
-
return 0;
|
|
51
|
-
}
|
|
52
|
-
//# sourceMappingURL=print-output.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"print-output.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/print-output.ts"],"names":[],"mappings":";;AAWA,kCA+BC;AAzCD,8CAAqC;AAErC,2CAAyD;AAIzD;;;GAGG;AACH,SAAgB,WAAW,CAAI,KAAuB;IACrD,OAAO,CAAC,MAAqB,EAAE,EAAE,CAChC,MAAM,CAAC,IAAI,CACV,IAAA,eAAG,EAAC,GAAG,EAAE;QACR,MAAM,kBAAkB,GAAkB,KAAK;aAC7C,0BAA0B,EAAE;aAC5B,IAAI,CAAC,YAAY,CAAC,CAAC;QAErB,IAAI,kBAAkB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACnC,IAAA,oBAAU,EAAC,UAAU,kBAAkB,CAAC,MAAM,0BAA0B,CAAC,CAAC;YAE1E,kBAAkB,CAAC,OAAO,CAAC,CAAC,MAAmB,EAAE,EAAE;gBAClD,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,oBAAU,CAAC,CAAC,CAAC,sBAAY,CAAC;gBAErE,WAAW,CAAC,KAAK,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC;gBAE/B,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAY,EAAE,CAAS,EAAE,EAAE;oBACnD,MAAM,MAAM,GAAY,CAAC,KAAK,MAAM,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;oBAElF,IAAA,sBAAY,EAAC,OAAO,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;gBAC3D,CAAC,CAAC,CAAC;gBAEH,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAY,EAAE,CAAS,EAAE,EAAE;oBACjD,MAAM,MAAM,GAAY,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;oBAEvD,IAAA,oBAAU,EAAC,OAAO,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;gBACjD,CAAC,CAAC,CAAC;YACJ,CAAC,CAAC,CAAC;QACJ,CAAC;IACF,CAAC,CAAC,CACF,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAS,YAAY,CAAC,CAAc,EAAE,CAAc;IACnD,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QACzC,OAAO,CAAC,CAAC,CAAC;IACX,CAAC;IAED,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QACzC,OAAO,CAAC,CAAC;IACV,CAAC;IAED,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;QAC7C,OAAO,CAAC,CAAC,CAAC;IACX,CAAC;IAED,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;QAC7C,OAAO,CAAC,CAAC;IACV,CAAC;IAED,OAAO,CAAC,CAAC;AACV,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.refresh = refresh;
|
|
4
|
-
const rxjs_1 = require("rxjs");
|
|
5
|
-
const operators_1 = require("rxjs/operators");
|
|
6
|
-
const helpers_1 = require("../../helpers");
|
|
7
|
-
const error_handler_1 = require("../../operators/error-handler");
|
|
8
|
-
/**
|
|
9
|
-
* Operator that runs the `emit` method of the entity.
|
|
10
|
-
*/
|
|
11
|
-
function refresh() {
|
|
12
|
-
return (source) => source.pipe((0, operators_1.switchMap)((e) => {
|
|
13
|
-
if ((0, helpers_1.isSourceFileEntity)(e) && !e.destroyed) {
|
|
14
|
-
return e.refresh().pipe((0, operators_1.map)(() => e), (0, error_handler_1.errorHandler)(e));
|
|
15
|
-
}
|
|
16
|
-
return (0, rxjs_1.of)(e);
|
|
17
|
-
}));
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=refresh.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"refresh.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/refresh.ts"],"names":[],"mappings":";;AAUA,0BAcC;AAxBD,+BAAsD;AACtD,8CAA8C;AAE9C,2CAAiD;AACjD,iEAA2D;AAG3D;;GAEG;AACH,SAAgB,OAAO;IACtB,OAAO,CAAC,MAA+B,EAAE,EAAE,CAC1C,MAAM,CAAC,IAAI,CACV,IAAA,qBAAS,EAAC,CAAC,CAAc,EAAE,EAAE;QAC5B,IAAI,IAAA,4BAAkB,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;YAC3C,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC,IAAI,CACtB,IAAA,eAAG,EAAC,GAAG,EAAE,CAAC,CAAC,CAAC,EACZ,IAAA,4BAAY,EAAC,CAAC,CAAC,CACf,CAAC;QACH,CAAC;QAED,OAAO,IAAA,SAAE,EAAC,CAAC,CAAC,CAAC;IACd,CAAC,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { OperatorFunction } from 'rxjs';
|
|
2
|
-
/**
|
|
3
|
-
* Task operator that runs the provided operator on each value of the source.
|
|
4
|
-
* It also filters the values if the filter function is provided, shows the progress and handles the errors.
|
|
5
|
-
*
|
|
6
|
-
* The operator will be executed for each value that passes the filter function,
|
|
7
|
-
* and return the values in the same order as they were in the source.
|
|
8
|
-
* @param name - The name of the task (for progress).
|
|
9
|
-
* @param operator - The operator to run on each value of the source.
|
|
10
|
-
* @param filter - The filter function to filter the values of the source.
|
|
11
|
-
*/
|
|
12
|
-
export declare function task<T, R>(name: string, operator: OperatorFunction<T, R>, filter?: (value: T) => boolean): OperatorFunction<T[], R[]>;
|
|
13
|
-
/**
|
|
14
|
-
* Task operator that runs the provided operator on the source with all the values.
|
|
15
|
-
* It also filters the values if the filter function is provided, shows the progress and handles the errors.
|
|
16
|
-
*
|
|
17
|
-
* The operator will be executed for each value that passes the filter function,
|
|
18
|
-
* and return the values in the same order as they were in the source.
|
|
19
|
-
* @param name - The name of the task (for progress).
|
|
20
|
-
* @param operator - The operator to run on the source.
|
|
21
|
-
* @param filter - The filter function to filter the values of the source.
|
|
22
|
-
*/
|
|
23
|
-
export declare function taskForMany<T, R>(name: string | undefined, operator: OperatorFunction<T[], R[]>, filter?: (value: T) => boolean): OperatorFunction<T[], R[]>;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.task = task;
|
|
4
|
-
exports.taskForMany = taskForMany;
|
|
5
|
-
const rxjs_1 = require("rxjs");
|
|
6
|
-
const operators_1 = require("../../operators");
|
|
7
|
-
/**
|
|
8
|
-
* Task operator that runs the provided operator on each value of the source.
|
|
9
|
-
* It also filters the values if the filter function is provided, shows the progress and handles the errors.
|
|
10
|
-
*
|
|
11
|
-
* The operator will be executed for each value that passes the filter function,
|
|
12
|
-
* and return the values in the same order as they were in the source.
|
|
13
|
-
* @param name - The name of the task (for progress).
|
|
14
|
-
* @param operator - The operator to run on each value of the source.
|
|
15
|
-
* @param filter - The filter function to filter the values of the source.
|
|
16
|
-
*/
|
|
17
|
-
function task(name, operator, filter) {
|
|
18
|
-
return (source) => {
|
|
19
|
-
return source.pipe((0, operators_1.progress)(name), (0, rxjs_1.mergeMap)((values) => {
|
|
20
|
-
const filtered = filter ? values.filter(filter) : values;
|
|
21
|
-
return (0, operators_1.forkJoinOrEmpty)(filtered.map((v) => (0, rxjs_1.of)(v).pipe(operator)));
|
|
22
|
-
}));
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Task operator that runs the provided operator on the source with all the values.
|
|
27
|
-
* It also filters the values if the filter function is provided, shows the progress and handles the errors.
|
|
28
|
-
*
|
|
29
|
-
* The operator will be executed for each value that passes the filter function,
|
|
30
|
-
* and return the values in the same order as they were in the source.
|
|
31
|
-
* @param name - The name of the task (for progress).
|
|
32
|
-
* @param operator - The operator to run on the source.
|
|
33
|
-
* @param filter - The filter function to filter the values of the source.
|
|
34
|
-
*/
|
|
35
|
-
function taskForMany(name, operator, filter) {
|
|
36
|
-
return (source) => {
|
|
37
|
-
return source.pipe((0, operators_1.progress)(name), (0, rxjs_1.mergeMap)((values) => {
|
|
38
|
-
const filtered = filter ? values.filter(filter) : values;
|
|
39
|
-
return (0, rxjs_1.of)(filtered).pipe(operator);
|
|
40
|
-
}));
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=task.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/task.ts"],"names":[],"mappings":";;AAcA,oBAeC;AAYD,kCAeC;AAxDD,+BAAsD;AAEtD,+CAA4D;AAE5D;;;;;;;;;GASG;AACH,SAAgB,IAAI,CACnB,IAAY,EACZ,QAAgC,EAChC,MAA8B;IAE9B,OAAO,CAAC,MAAM,EAAE,EAAE;QACjB,OAAO,MAAM,CAAC,IAAI,CACjB,IAAA,oBAAQ,EAAC,IAAI,CAAC,EACd,IAAA,eAAQ,EAAC,CAAC,MAAM,EAAE,EAAE;YACnB,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;YAEzD,OAAO,IAAA,2BAAe,EAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,SAAE,EAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QACnE,CAAC,CAAC,CACF,CAAC;IACH,CAAC,CAAC;AACH,CAAC;AAED;;;;;;;;;GASG;AACH,SAAgB,WAAW,CAC1B,IAAwB,EACxB,QAAoC,EACpC,MAA8B;IAE9B,OAAO,CAAC,MAAM,EAAE,EAAE;QACjB,OAAO,MAAM,CAAC,IAAI,CACjB,IAAA,oBAAQ,EAAC,IAAI,CAAC,EACd,IAAA,eAAQ,EAAC,CAAC,MAAM,EAAE,EAAE;YACnB,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;YAEzD,OAAO,IAAA,SAAE,EAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACpC,CAAC,CAAC,CACF,CAAC;IACH,CAAC,CAAC;AACH,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { OperatorFunction } from 'rxjs';
|
|
2
|
-
import { NgDocBuilderOutput, NgDocBuildResult } from '../../interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* Converts the build result to a builder output.
|
|
5
|
-
*/
|
|
6
|
-
export declare function toBuilderOutput<T extends NgDocBuildResult>(): OperatorFunction<T[], NgDocBuilderOutput[]>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toBuilderOutput = toBuilderOutput;
|
|
4
|
-
const operators_1 = require("rxjs/operators");
|
|
5
|
-
const operators_2 = require("../../operators");
|
|
6
|
-
/**
|
|
7
|
-
* Converts the build result to a builder output.
|
|
8
|
-
*/
|
|
9
|
-
function toBuilderOutput() {
|
|
10
|
-
return (source) => source.pipe((0, operators_1.switchMap)((outputs) => (0, operators_2.forkJoinOrEmpty)(outputs.map((output) => output.toBuilderOutput(output.result)))));
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=to-builder-output.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"to-builder-output.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/to-builder-output.ts"],"names":[],"mappings":";;AASA,0CAUC;AAlBD,8CAA2C;AAG3C,+CAAkD;AAElD;;GAEG;AACH,SAAgB,eAAe;IAI9B,OAAO,CAAC,MAAuB,EAAE,EAAE,CAClC,MAAM,CAAC,IAAI,CACV,IAAA,qBAAS,EAAC,CAAC,OAAY,EAAE,EAAE,CAC1B,IAAA,2BAAe,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAS,EAAE,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAClF,CACD,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { OperatorFunction } from 'rxjs';
|
|
2
|
-
import { NgDocEntityStore } from '../entity-store';
|
|
3
|
-
/**
|
|
4
|
-
* Operator that updates cache of all entities in the store
|
|
5
|
-
* @param store - store to update cache for
|
|
6
|
-
*/
|
|
7
|
-
export declare function updateCache<T>(store: NgDocEntityStore): OperatorFunction<T, T>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateCache = updateCache;
|
|
4
|
-
const operators_1 = require("rxjs/operators");
|
|
5
|
-
/**
|
|
6
|
-
* Operator that updates cache of all entities in the store
|
|
7
|
-
* @param store - store to update cache for
|
|
8
|
-
*/
|
|
9
|
-
function updateCache(store) {
|
|
10
|
-
return (source) => source.pipe((0, operators_1.tap)(() => {
|
|
11
|
-
store.asArray().forEach((entity) => entity.updateCache());
|
|
12
|
-
}));
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=update-cache.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-cache.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/builder-operators/update-cache.ts"],"names":[],"mappings":";;AAUA,kCAOC;AAhBD,8CAAqC;AAKrC;;;GAGG;AACH,SAAgB,WAAW,CAAI,KAAuB;IACrD,OAAO,CAAC,MAAqB,EAAE,EAAE,CAChC,MAAM,CAAC,IAAI,CACV,IAAA,eAAG,EAAC,GAAG,EAAE;QACR,KAAK,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,CAAC,MAAmB,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC;IACxE,CAAC,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { logging } from '@angular-devkit/core';
|
|
2
|
-
import { NgDocPageIndex } from '@ng-doc/core';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { ObservableSet } from '../../../classes';
|
|
5
|
-
import { NgDocBuilderContext, NgDocBuildResult } from '../../../interfaces';
|
|
6
|
-
import { NgDocEntityStore } from '../../entity-store';
|
|
7
|
-
import { NgDocCache } from '../cache';
|
|
8
|
-
/**
|
|
9
|
-
* Base entity class that all entities should extend.
|
|
10
|
-
*/
|
|
11
|
-
export declare abstract class NgDocEntity {
|
|
12
|
-
readonly store: NgDocEntityStore;
|
|
13
|
-
readonly cache: NgDocCache;
|
|
14
|
-
readonly context: NgDocBuilderContext;
|
|
15
|
-
/**
|
|
16
|
-
* The key by which the entity will be stored in the store
|
|
17
|
-
*/
|
|
18
|
-
abstract readonly id: string;
|
|
19
|
-
/** Indicates when entity was destroyed */
|
|
20
|
-
destroyed: boolean;
|
|
21
|
-
/** Search indexes for the current entity */
|
|
22
|
-
indexes: NgDocPageIndex[];
|
|
23
|
-
/**
|
|
24
|
-
* List of keywords that were linked to the entity
|
|
25
|
-
*/
|
|
26
|
-
usedKeywords: Set<string>;
|
|
27
|
-
/**
|
|
28
|
-
* List of potential keywords that are used by the entity but not linked yet
|
|
29
|
-
* (they will be sat by Keywords Processor, and used to indicate when this entity should be re-build if one of them appears)
|
|
30
|
-
*/
|
|
31
|
-
potentialKeywords: Set<string>;
|
|
32
|
-
/**
|
|
33
|
-
* Collection of all file dependencies of the current entity.
|
|
34
|
-
* This property is using to watch for changes in this dependencies list and rebuild current buildable.
|
|
35
|
-
*/
|
|
36
|
-
readonly dependencies: ObservableSet<string>;
|
|
37
|
-
/**
|
|
38
|
-
* Indicates if this entity has physical file in file system
|
|
39
|
-
* If this entity was generated by another Entity, this property should be `false`
|
|
40
|
-
*
|
|
41
|
-
* NgDoc destroys all child elements of non-physical entities when they are destroyed
|
|
42
|
-
*/
|
|
43
|
-
readonly physical: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* List of errors that were occurred during the build process
|
|
46
|
-
*/
|
|
47
|
-
errors: Error[];
|
|
48
|
-
/**
|
|
49
|
-
* List of warnings that were occurred during the build process
|
|
50
|
-
*/
|
|
51
|
-
warnings: Error[];
|
|
52
|
-
private destroy$;
|
|
53
|
-
/**
|
|
54
|
-
* Indicates when it's root entity and should be used for rooted components.
|
|
55
|
-
*/
|
|
56
|
-
abstract readonly isRoot: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Files that are watched for changes to rebuild entity or remove it
|
|
59
|
-
*/
|
|
60
|
-
abstract readonly rootFiles: string[];
|
|
61
|
-
/**
|
|
62
|
-
* Should return the parent of the current entity
|
|
63
|
-
*/
|
|
64
|
-
abstract readonly parent?: NgDocEntity;
|
|
65
|
-
/**
|
|
66
|
-
* Should return the list of the dependencies that have to be built if current entity was changed.
|
|
67
|
-
*/
|
|
68
|
-
abstract readonly buildCandidates: NgDocEntity[];
|
|
69
|
-
constructor(store: NgDocEntityStore, cache: NgDocCache, context: NgDocBuilderContext);
|
|
70
|
-
/** Indicates when current entity could be built */
|
|
71
|
-
protected get canBeBuilt(): boolean;
|
|
72
|
-
/**
|
|
73
|
-
* Recursively returns parents for the current entity
|
|
74
|
-
* @type {Array<NgDocEntity>}
|
|
75
|
-
*/
|
|
76
|
-
get parentEntities(): NgDocEntity[];
|
|
77
|
-
/**
|
|
78
|
-
* The children of the entity.
|
|
79
|
-
* Contains all children of the current entity.
|
|
80
|
-
*/
|
|
81
|
-
get children(): NgDocEntity[];
|
|
82
|
-
/**
|
|
83
|
-
* Returns children that are ready to build or already built
|
|
84
|
-
*/
|
|
85
|
-
get builtChildren(): NgDocEntity[];
|
|
86
|
-
/**
|
|
87
|
-
* Recursively returns children for the current entity
|
|
88
|
-
* @type {Array<NgDocEntity>}
|
|
89
|
-
*/
|
|
90
|
-
get childEntities(): NgDocEntity[];
|
|
91
|
-
/**
|
|
92
|
-
* Returns `true` if current entity has children
|
|
93
|
-
* @type {boolean}
|
|
94
|
-
*/
|
|
95
|
-
get hasChildren(): boolean;
|
|
96
|
-
/**
|
|
97
|
-
* Should return if this entity is ready to build
|
|
98
|
-
* @type {boolean}
|
|
99
|
-
*/
|
|
100
|
-
get isReadyForBuild(): boolean;
|
|
101
|
-
get logger(): logging.LoggerApi;
|
|
102
|
-
get cachedFilePaths(): string[];
|
|
103
|
-
/**
|
|
104
|
-
* Method called by NgDocBuilder when one or more dependencies have changed
|
|
105
|
-
*/
|
|
106
|
-
dependenciesChanged(): void;
|
|
107
|
-
childrenGenerator(): Observable<NgDocEntity[]>;
|
|
108
|
-
beforeBuild(): void;
|
|
109
|
-
/**
|
|
110
|
-
* Build all artifacts that need for application.
|
|
111
|
-
* This is the last method in the build process, should return output that should be emitted to the file system
|
|
112
|
-
*/
|
|
113
|
-
abstract build(): Observable<NgDocBuildResult<any, any>>;
|
|
114
|
-
updateCache(): void;
|
|
115
|
-
removeArtifacts(): void;
|
|
116
|
-
/**
|
|
117
|
-
* Destroys current entity and clear all references
|
|
118
|
-
* @type {void}
|
|
119
|
-
*/
|
|
120
|
-
destroy(): void;
|
|
121
|
-
onDestroy(): Observable<void>;
|
|
122
|
-
}
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NgDocEntity = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const rxjs_1 = require("rxjs");
|
|
6
|
-
const operators_1 = require("rxjs/operators");
|
|
7
|
-
const classes_1 = require("../../../classes");
|
|
8
|
-
const decorators_1 = require("../cache/decorators");
|
|
9
|
-
/**
|
|
10
|
-
* Base entity class that all entities should extend.
|
|
11
|
-
*/
|
|
12
|
-
let NgDocEntity = (() => {
|
|
13
|
-
var _a;
|
|
14
|
-
let _instanceExtraInitializers = [];
|
|
15
|
-
let _indexes_decorators;
|
|
16
|
-
let _indexes_initializers = [];
|
|
17
|
-
let _indexes_extraInitializers = [];
|
|
18
|
-
let _usedKeywords_decorators;
|
|
19
|
-
let _usedKeywords_initializers = [];
|
|
20
|
-
let _usedKeywords_extraInitializers = [];
|
|
21
|
-
let _potentialKeywords_decorators;
|
|
22
|
-
let _potentialKeywords_initializers = [];
|
|
23
|
-
let _potentialKeywords_extraInitializers = [];
|
|
24
|
-
let _dependencies_decorators;
|
|
25
|
-
let _dependencies_initializers = [];
|
|
26
|
-
let _dependencies_extraInitializers = [];
|
|
27
|
-
let _get_cachedFilePaths_decorators;
|
|
28
|
-
return _a = class NgDocEntity {
|
|
29
|
-
constructor(store, cache, context) {
|
|
30
|
-
this.store = (tslib_1.__runInitializers(this, _instanceExtraInitializers), store);
|
|
31
|
-
this.cache = cache;
|
|
32
|
-
this.context = context;
|
|
33
|
-
/** Indicates when entity was destroyed */
|
|
34
|
-
this.destroyed = false;
|
|
35
|
-
/** Search indexes for the current entity */
|
|
36
|
-
this.indexes = tslib_1.__runInitializers(this, _indexes_initializers, []);
|
|
37
|
-
/**
|
|
38
|
-
* List of keywords that were linked to the entity
|
|
39
|
-
*/
|
|
40
|
-
this.usedKeywords = (tslib_1.__runInitializers(this, _indexes_extraInitializers), tslib_1.__runInitializers(this, _usedKeywords_initializers, new Set()));
|
|
41
|
-
/**
|
|
42
|
-
* List of potential keywords that are used by the entity but not linked yet
|
|
43
|
-
* (they will be sat by Keywords Processor, and used to indicate when this entity should be re-build if one of them appears)
|
|
44
|
-
*/
|
|
45
|
-
this.potentialKeywords = (tslib_1.__runInitializers(this, _usedKeywords_extraInitializers), tslib_1.__runInitializers(this, _potentialKeywords_initializers, new Set()));
|
|
46
|
-
/**
|
|
47
|
-
* Collection of all file dependencies of the current entity.
|
|
48
|
-
* This property is using to watch for changes in this dependencies list and rebuild current buildable.
|
|
49
|
-
*/
|
|
50
|
-
this.dependencies = (tslib_1.__runInitializers(this, _potentialKeywords_extraInitializers), tslib_1.__runInitializers(this, _dependencies_initializers, new classes_1.ObservableSet()));
|
|
51
|
-
/**
|
|
52
|
-
* Indicates if this entity has physical file in file system
|
|
53
|
-
* If this entity was generated by another Entity, this property should be `false`
|
|
54
|
-
*
|
|
55
|
-
* NgDoc destroys all child elements of non-physical entities when they are destroyed
|
|
56
|
-
*/
|
|
57
|
-
this.physical = (tslib_1.__runInitializers(this, _dependencies_extraInitializers), true);
|
|
58
|
-
/**
|
|
59
|
-
* List of errors that were occurred during the build process
|
|
60
|
-
*/
|
|
61
|
-
this.errors = [];
|
|
62
|
-
/**
|
|
63
|
-
* List of warnings that were occurred during the build process
|
|
64
|
-
*/
|
|
65
|
-
this.warnings = [];
|
|
66
|
-
this.destroy$ = new rxjs_1.Subject();
|
|
67
|
-
}
|
|
68
|
-
/** Indicates when current entity could be built */
|
|
69
|
-
get canBeBuilt() {
|
|
70
|
-
return true;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Recursively returns parents for the current entity
|
|
74
|
-
* @type {Array<NgDocEntity>}
|
|
75
|
-
*/
|
|
76
|
-
get parentEntities() {
|
|
77
|
-
var _b, _c, _d;
|
|
78
|
-
return [(_b = this.parent) !== null && _b !== void 0 ? _b : [], (_d = (_c = this.parent) === null || _c === void 0 ? void 0 : _c.parentEntities) !== null && _d !== void 0 ? _d : []].flat();
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* The children of the entity.
|
|
82
|
-
* Contains all children of the current entity.
|
|
83
|
-
*/
|
|
84
|
-
get children() {
|
|
85
|
-
return this.store
|
|
86
|
-
.asArray()
|
|
87
|
-
.filter((entity) => entity.parent === this && !entity.destroyed);
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Returns children that are ready to build or already built
|
|
91
|
-
*/
|
|
92
|
-
get builtChildren() {
|
|
93
|
-
return this.children.filter((entity) => entity.isReadyForBuild);
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Recursively returns children for the current entity
|
|
97
|
-
* @type {Array<NgDocEntity>}
|
|
98
|
-
*/
|
|
99
|
-
get childEntities() {
|
|
100
|
-
return this.children.concat(this.children.map((child) => child.childEntities).flat());
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Returns `true` if current entity has children
|
|
104
|
-
* @type {boolean}
|
|
105
|
-
*/
|
|
106
|
-
get hasChildren() {
|
|
107
|
-
return this.children.length > 0;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Should return if this entity is ready to build
|
|
111
|
-
* @type {boolean}
|
|
112
|
-
*/
|
|
113
|
-
get isReadyForBuild() {
|
|
114
|
-
return !this.destroyed && !this.errors.length && this.canBeBuilt;
|
|
115
|
-
}
|
|
116
|
-
get logger() {
|
|
117
|
-
return this.context.context.logger;
|
|
118
|
-
}
|
|
119
|
-
get cachedFilePaths() {
|
|
120
|
-
return this.rootFiles.concat(this.dependencies.asArray());
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Method called by NgDocBuilder when one or more dependencies have changed
|
|
124
|
-
*/
|
|
125
|
-
dependenciesChanged() {
|
|
126
|
-
// Reset error and warnings, because dependency changes could fix them
|
|
127
|
-
this.warnings = [];
|
|
128
|
-
this.errors = [];
|
|
129
|
-
}
|
|
130
|
-
childrenGenerator() {
|
|
131
|
-
return (0, rxjs_1.of)([]);
|
|
132
|
-
}
|
|
133
|
-
beforeBuild() {
|
|
134
|
-
// Clear all indexes and used keywords before build
|
|
135
|
-
this.usedKeywords.clear();
|
|
136
|
-
this.potentialKeywords.clear();
|
|
137
|
-
this.indexes = [];
|
|
138
|
-
}
|
|
139
|
-
updateCache() {
|
|
140
|
-
if (this.isReadyForBuild && !this.warnings.length) {
|
|
141
|
-
this.cache.cache(this);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
removeArtifacts() {
|
|
145
|
-
// No implementation
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Destroys current entity and clear all references
|
|
149
|
-
* @type {void}
|
|
150
|
-
*/
|
|
151
|
-
destroy() {
|
|
152
|
-
this.children.forEach((entity) => !entity.physical && entity.destroy());
|
|
153
|
-
this.destroyed = true;
|
|
154
|
-
this.destroy$.next();
|
|
155
|
-
}
|
|
156
|
-
onDestroy() {
|
|
157
|
-
return this.destroy$.asObservable().pipe((0, operators_1.take)(1));
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
(() => {
|
|
161
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
162
|
-
_indexes_decorators = [(0, decorators_1.CachedProperty)()];
|
|
163
|
-
_usedKeywords_decorators = [(0, decorators_1.CachedProperty)({
|
|
164
|
-
get: (value) => new Set(value),
|
|
165
|
-
set: (value) => Array.from(value),
|
|
166
|
-
})];
|
|
167
|
-
_potentialKeywords_decorators = [(0, decorators_1.CachedProperty)({
|
|
168
|
-
get: (value) => new Set(value),
|
|
169
|
-
set: (value) => Array.from(value),
|
|
170
|
-
})];
|
|
171
|
-
_dependencies_decorators = [(0, decorators_1.CachedProperty)({
|
|
172
|
-
get: (value) => new classes_1.ObservableSet(value),
|
|
173
|
-
set: (value) => value.asArray(),
|
|
174
|
-
})];
|
|
175
|
-
_get_cachedFilePaths_decorators = [(0, decorators_1.CachedFilesGetter)()];
|
|
176
|
-
tslib_1.__esDecorate(_a, null, _get_cachedFilePaths_decorators, { kind: "getter", name: "cachedFilePaths", static: false, private: false, access: { has: obj => "cachedFilePaths" in obj, get: obj => obj.cachedFilePaths }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
177
|
-
tslib_1.__esDecorate(null, null, _indexes_decorators, { kind: "field", name: "indexes", static: false, private: false, access: { has: obj => "indexes" in obj, get: obj => obj.indexes, set: (obj, value) => { obj.indexes = value; } }, metadata: _metadata }, _indexes_initializers, _indexes_extraInitializers);
|
|
178
|
-
tslib_1.__esDecorate(null, null, _usedKeywords_decorators, { kind: "field", name: "usedKeywords", static: false, private: false, access: { has: obj => "usedKeywords" in obj, get: obj => obj.usedKeywords, set: (obj, value) => { obj.usedKeywords = value; } }, metadata: _metadata }, _usedKeywords_initializers, _usedKeywords_extraInitializers);
|
|
179
|
-
tslib_1.__esDecorate(null, null, _potentialKeywords_decorators, { kind: "field", name: "potentialKeywords", static: false, private: false, access: { has: obj => "potentialKeywords" in obj, get: obj => obj.potentialKeywords, set: (obj, value) => { obj.potentialKeywords = value; } }, metadata: _metadata }, _potentialKeywords_initializers, _potentialKeywords_extraInitializers);
|
|
180
|
-
tslib_1.__esDecorate(null, null, _dependencies_decorators, { kind: "field", name: "dependencies", static: false, private: false, access: { has: obj => "dependencies" in obj, get: obj => obj.dependencies, set: (obj, value) => { obj.dependencies = value; } }, metadata: _metadata }, _dependencies_initializers, _dependencies_extraInitializers);
|
|
181
|
-
if (_metadata) Object.defineProperty(_a, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
182
|
-
})(),
|
|
183
|
-
_a;
|
|
184
|
-
})();
|
|
185
|
-
exports.NgDocEntity = NgDocEntity;
|
|
186
|
-
//# sourceMappingURL=entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entity.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/entities/abstractions/entity.ts"],"names":[],"mappings":";;;;AAEA,+BAA+C;AAC/C,8CAAsC;AAEtC,8CAAiD;AAIjD,oDAAwE;AAExE;;GAEG;IACmB,WAAW;;;;;;;;;;;;;;;;sBAAX,WAAW;YAkFhC,YACU,KAAuB,EACvB,KAAiB,EACjB,OAA4B;gBAF5B,UAAK,IAnFM,2DAAW,EAmFtB,KAAK,EAAkB;gBACvB,UAAK,GAAL,KAAK,CAAY;gBACjB,YAAO,GAAP,OAAO,CAAqB;gBA/EtC,0CAA0C;gBAC1C,cAAS,GAAY,KAAK,CAAC;gBAE3B,4CAA4C;gBAE5C,YAAO,0DAAqB,EAAE,EAAC;gBAE/B;;mBAEG;gBAKH,iBAAY,6HAAgB,IAAI,GAAG,EAAU,GAAC;gBAE9C;;;mBAGG;gBAKH,sBAAiB,uIAAgB,IAAI,GAAG,EAAU,GAAC;gBAEnD;;;mBAGG;gBAKM,iBAAY,uIAA0B,IAAI,uBAAa,EAAU,GAAC;gBAE3E;;;;;mBAKG;gBACM,aAAQ,sEAAY,IAAI,EAAC;gBAElC;;mBAEG;gBACH,WAAM,GAAY,EAAE,CAAC;gBAErB;;mBAEG;gBACH,aAAQ,GAAY,EAAE,CAAC;gBAEf,aAAQ,GAAkB,IAAI,cAAO,EAAQ,CAAC;YA0BnD,CAAC;YAEJ,mDAAmD;YACnD,IAAc,UAAU;gBACvB,OAAO,IAAI,CAAC;YACb,CAAC;YAED;;;eAGG;YACH,IAAI,cAAc;;gBACjB,OAAO,CAAC,MAAA,IAAI,CAAC,MAAM,mCAAI,EAAE,EAAE,MAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,cAAc,mCAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;YACtE,CAAC;YAED;;;eAGG;YACH,IAAI,QAAQ;gBACX,OAAO,IAAI,CAAC,KAAK;qBACf,OAAO,EAAE;qBACT,MAAM,CAAC,CAAC,MAAmB,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YAChF,CAAC;YAED;;eAEG;YACH,IAAI,aAAa;gBAChB,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAmB,EAAE,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;YAC9E,CAAC;YAED;;;eAGG;YACH,IAAI,aAAa;gBAChB,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAC1B,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAkB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,IAAI,EAAE,CACrE,CAAC;YACH,CAAC;YAED;;;eAGG;YACH,IAAI,WAAW;gBACd,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;YACjC,CAAC;YAED;;;eAGG;YACH,IAAI,eAAe;gBAClB,OAAO,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,IAAI,CAAC,UAAU,CAAC;YAClE,CAAC;YAED,IAAI,MAAM;gBACT,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;YACpC,CAAC;YAGD,IAAI,eAAe;gBAClB,OAAO,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC,CAAC;YAC3D,CAAC;YAED;;eAEG;YACH,mBAAmB;gBAClB,sEAAsE;gBACtE,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;gBACnB,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;YAClB,CAAC;YAED,iBAAiB;gBAChB,OAAO,IAAA,SAAE,EAAC,EAAE,CAAC,CAAC;YACf,CAAC;YAED,WAAW;gBACV,mDAAmD;gBACnD,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;gBAC1B,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,CAAC;gBAC/B,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;YACnB,CAAC;YAQD,WAAW;gBACV,IAAI,IAAI,CAAC,eAAe,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;oBACnD,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;gBACxB,CAAC;YACF,CAAC;YAED,eAAe;gBACd,oBAAoB;YACrB,CAAC;YAED;;;eAGG;YACH,OAAO;gBACN,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,MAAmB,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;gBAErF,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;gBACtB,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YACtB,CAAC;YAED,SAAS;gBACR,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC,IAAI,CAAC,IAAA,gBAAI,EAAC,CAAC,CAAC,CAAC,CAAC;YACnD,CAAC;;;;mCAhMA,IAAA,2BAAc,GAAE;wCAMhB,IAAA,2BAAc,EAAC;oBACf,GAAG,EAAE,CAAC,KAAe,EAAE,EAAE,CAAC,IAAI,GAAG,CAAS,KAAK,CAAC;oBAChD,GAAG,EAAE,CAAC,KAAkB,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;iBAC9C,CAAC;6CAOD,IAAA,2BAAc,EAAC;oBACf,GAAG,EAAE,CAAC,KAAe,EAAE,EAAE,CAAC,IAAI,GAAG,CAAS,KAAK,CAAC;oBAChD,GAAG,EAAE,CAAC,KAAkB,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;iBAC9C,CAAC;wCAOD,IAAA,2BAAc,EAAC;oBACf,GAAG,EAAE,CAAC,KAAe,EAAE,EAAE,CAAC,IAAI,uBAAa,CAAS,KAAK,CAAC;oBAC1D,GAAG,EAAE,CAAC,KAA4B,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE;iBACtD,CAAC;+CA6GD,IAAA,8BAAiB,GAAE;YACpB,0MAAI,eAAe,6DAElB;YA5ID,+KAAA,OAAO,6BAAP,OAAO,yFAAwB;YAS/B,8LAAA,YAAY,6BAAZ,YAAY,mGAAkC;YAU9C,6MAAA,iBAAiB,6BAAjB,iBAAiB,6GAAkC;YAUnD,8LAAS,YAAY,6BAAZ,YAAY,mGAAsD;;;;;AAxCtD,kCAAW"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { ObjectLiteralExpression } from 'ts-morph';
|
|
3
|
-
import { NgDocCategoryEntity } from '../category.entity';
|
|
4
|
-
import { NgDocSourceFileEntity } from './source-file.entity';
|
|
5
|
-
/**
|
|
6
|
-
* Entity for file end points that generate modules and components.
|
|
7
|
-
*/
|
|
8
|
-
export declare abstract class NgDocFileEntity<TTarget> extends NgDocSourceFileEntity {
|
|
9
|
-
objectExpression: ObjectLiteralExpression | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* Entity target.
|
|
12
|
-
*/
|
|
13
|
-
target?: TTarget;
|
|
14
|
-
protected refreshImpl(): Observable<void>;
|
|
15
|
-
/**
|
|
16
|
-
* Runs when the source file was updated, can be used to load target file.
|
|
17
|
-
*/
|
|
18
|
-
protected loadImpl(): Observable<void>;
|
|
19
|
-
protected getParentFromCategory(): NgDocCategoryEntity | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* Compiles the source file
|
|
22
|
-
*/
|
|
23
|
-
compile(): Observable<void>;
|
|
24
|
-
load(): Observable<void>;
|
|
25
|
-
setParentDynamically(): void;
|
|
26
|
-
destroy(): void;
|
|
27
|
-
removeArtifacts(): void;
|
|
28
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NgDocFileEntity = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const minimatch_1 = require("minimatch");
|
|
6
|
-
const path = tslib_1.__importStar(require("path"));
|
|
7
|
-
const rxjs_1 = require("rxjs");
|
|
8
|
-
const operators_1 = require("rxjs/operators");
|
|
9
|
-
const ts_morph_1 = require("ts-morph");
|
|
10
|
-
const helpers_1 = require("../../../helpers");
|
|
11
|
-
const variables_1 = require("../../variables");
|
|
12
|
-
const source_file_entity_1 = require("./source-file.entity");
|
|
13
|
-
/**
|
|
14
|
-
* Entity for file end points that generate modules and components.
|
|
15
|
-
*/
|
|
16
|
-
class NgDocFileEntity extends source_file_entity_1.NgDocSourceFileEntity {
|
|
17
|
-
refreshImpl() {
|
|
18
|
-
return super
|
|
19
|
-
.refreshImpl()
|
|
20
|
-
.pipe((0, operators_1.tap)(() => (this.objectExpression = (0, helpers_1.getObjectExpressionFromDefault)(this.sourceFile))));
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Runs when the source file was updated, can be used to load target file.
|
|
24
|
-
*/
|
|
25
|
-
loadImpl() {
|
|
26
|
-
return (0, rxjs_1.defer)(() => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
27
|
-
this.target = (yield (0, helpers_1.importFreshEsm)(this.pathToCompiledFile)).default;
|
|
28
|
-
if (!this.target || !this.objectExpression) {
|
|
29
|
-
new Error(`Failed to load object. Make sure that you have exported it as default.`);
|
|
30
|
-
}
|
|
31
|
-
}));
|
|
32
|
-
}
|
|
33
|
-
getParentFromCategory() {
|
|
34
|
-
var _a, _b, _c, _d, _e, _f;
|
|
35
|
-
const sourceFilePath = (_f = (_e = (_d = (_c = (_b = (_a = this.objectExpression) === null || _a === void 0 ? void 0 : _a.getProperty('category')) === null || _b === void 0 ? void 0 : _b.getChildrenOfKind(ts_morph_1.SyntaxKind.Identifier)) === null || _c === void 0 ? void 0 : _c.pop()) === null || _d === void 0 ? void 0 : _d.getDefinitions()[0]) === null || _e === void 0 ? void 0 : _e.getSourceFile()) === null || _f === void 0 ? void 0 : _f.getFilePath();
|
|
36
|
-
if (sourceFilePath &&
|
|
37
|
-
(0, minimatch_1.minimatch)(sourceFilePath, variables_1.CATEGORY_PATTERN) &&
|
|
38
|
-
sourceFilePath !== this.sourceFilePath) {
|
|
39
|
-
const parent = this.store.get(path.relative(this.context.context.workspaceRoot, sourceFilePath));
|
|
40
|
-
return (0, helpers_1.isCategoryEntity)(parent) && parent.isReadyForBuild ? parent : undefined;
|
|
41
|
-
}
|
|
42
|
-
return undefined;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Compiles the source file
|
|
46
|
-
*/
|
|
47
|
-
compile() {
|
|
48
|
-
return (0, rxjs_1.from)((0, helpers_1.buildFileEntity)(this.sourceFile, this.context.tsConfig, this.context.context.workspaceRoot)).pipe((0, operators_1.map)(() => void 0), (0, operators_1.tap)({
|
|
49
|
-
error: (e) => this.errors.push(e),
|
|
50
|
-
}));
|
|
51
|
-
}
|
|
52
|
-
load() {
|
|
53
|
-
return this.loadImpl().pipe((0, operators_1.tap)({
|
|
54
|
-
error: (e) => this.errors.push(e),
|
|
55
|
-
}));
|
|
56
|
-
}
|
|
57
|
-
setParentDynamically() {
|
|
58
|
-
// No implementation
|
|
59
|
-
}
|
|
60
|
-
destroy() {
|
|
61
|
-
super.destroy();
|
|
62
|
-
}
|
|
63
|
-
removeArtifacts() {
|
|
64
|
-
super.removeArtifacts();
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
exports.NgDocFileEntity = NgDocFileEntity;
|
|
68
|
-
//# sourceMappingURL=file.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.entity.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/entities/abstractions/file.entity.ts"],"names":[],"mappings":";;;;AAAA,yCAAsC;AACtC,mDAA6B;AAC7B,+BAA+C;AAC/C,8CAA0C;AAC1C,uCAA+D;AAE/D,8CAK0B;AAC1B,+CAAmD;AAGnD,6DAA6D;AAE7D;;GAEG;AACH,MAAsB,eAAyB,SAAQ,0CAAqB;IAOxD,WAAW;QAC7B,OAAO,KAAK;aACV,WAAW,EAAE;aACb,IAAI,CAAC,IAAA,eAAG,EAAC,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,gBAAgB,GAAG,IAAA,wCAA8B,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9F,CAAC;IAED;;OAEG;IACO,QAAQ;QACjB,OAAO,IAAA,YAAK,EAAC,GAAS,EAAE;YACvB,IAAI,CAAC,MAAM,GAAG,CAAC,MAAM,IAAA,wBAAc,EAAuB,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,OAAO,CAAC;YAE5F,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;gBAC5C,IAAI,KAAK,CAAC,wEAAwE,CAAC,CAAC;YACrF,CAAC;QACF,CAAC,CAAA,CAAC,CAAC;IACJ,CAAC;IAES,qBAAqB;;QAC9B,MAAM,cAAc,GAAuB,MAAA,MAAA,MAAA,MAAA,MAAA,MAAA,IAAI,CAAC,gBAAgB,0CAC7D,WAAW,CAAC,UAAU,CAAC,0CACvB,iBAAiB,CAAC,qBAAU,CAAC,UAAU,CAAC,0CACxC,GAAG,EAAE,0CACL,cAAc,GAAG,CAAC,CAAC,0CACnB,aAAa,EAAE,0CACf,WAAW,EAAE,CAAC;QAEjB,IACC,cAAc;YACd,IAAA,qBAAS,EAAC,cAAc,EAAE,4BAAgB,CAAC;YAC3C,cAAc,KAAK,IAAI,CAAC,cAAc,EACrC,CAAC;YACF,MAAM,MAAM,GAA4B,IAAI,CAAC,KAAK,CAAC,GAAG,CACrD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,EAAE,cAAc,CAAC,CACjE,CAAC;YAEF,OAAO,IAAA,0BAAgB,EAAC,MAAM,CAAC,IAAI,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;QAChF,CAAC;QAED,OAAO,SAAS,CAAC;IAClB,CAAC;IAED;;OAEG;IACH,OAAO;QACN,OAAO,IAAA,WAAI,EACV,IAAA,yBAAe,EAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAC3F,CAAC,IAAI,CACL,IAAA,eAAG,EAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,EACjB,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;IAED,IAAI;QACH,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC,IAAI,CAC1B,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;IAED,oBAAoB;QACnB,oBAAoB;IACrB,CAAC;IAEQ,OAAO;QACf,KAAK,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC;IAEQ,eAAe;QACvB,KAAK,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC;CACD;AAnFD,0CAmFC"}
|