@ng-doc/builder 22.0.0-beta.2 → 22.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -28
- package/application/index.js +2 -2
- package/application/index.js.map +1 -1
- package/application/schema.json +1 -2
- package/builders.json +23 -13
- package/classes/observable-map.d.ts +1 -0
- package/classes/observable-map.js +14 -3
- package/classes/observable-map.js.map +1 -1
- package/classes/observable-set.js +2 -1
- package/classes/observable-set.js.map +1 -1
- package/dev-server/index.js +5 -3
- package/dev-server/index.js.map +1 -1
- package/engine/builders/api-list/api-list-component.builder.js +4 -4
- package/engine/builders/api-list/api-list-component.builder.js.map +1 -1
- package/engine/builders/api-list/api-page-template.builder.js +2 -2
- package/engine/builders/api-list/api-page-template.builder.js.map +1 -1
- package/engine/builders/global/keywords.builder.d.ts +1 -4
- package/engine/builders/global/keywords.builder.js +5 -9
- package/engine/builders/global/keywords.builder.js.map +1 -1
- package/engine/builders/global/search-indexes.builder.js +1 -1
- package/engine/builders/global/search-indexes.builder.js.map +1 -1
- package/engine/builders/helpers/create-entry-metadata.js +2 -1
- package/engine/builders/helpers/create-entry-metadata.js.map +1 -1
- package/engine/builders/helpers/create-import-path.js.map +1 -1
- package/engine/builders/helpers/get-entry-relative-path.js.map +1 -1
- package/engine/builders/helpers/get-playground-metadata.js +7 -1
- package/engine/builders/helpers/get-playground-metadata.js.map +1 -1
- package/engine/builders/page/demo-assets.builder.js +10 -5
- package/engine/builders/page/demo-assets.builder.js.map +1 -1
- package/engine/builders/page/playground.builder.js +1 -0
- package/engine/builders/page/playground.builder.js.map +1 -1
- package/engine/builders/shared/content.builder.js +5 -3
- package/engine/builders/shared/content.builder.js.map +1 -1
- package/engine/builders/shared/page-component.builder.js +16 -6
- package/engine/builders/shared/page-component.builder.js.map +1 -1
- package/engine/builders/shared/page-wrapper.builder.js +10 -5
- package/engine/builders/shared/page-wrapper.builder.js.map +1 -1
- package/engine/core/operators/distinct-pending.js.map +1 -1
- package/engine/core/operators/factory.js +1 -4
- package/engine/core/operators/factory.js.map +1 -1
- package/engine/core/operators/merge-factory.js +19 -17
- package/engine/core/operators/merge-factory.js.map +1 -1
- package/engine/core/operators/when-builders-done.js.map +1 -1
- package/engine/core/triggers/on-dependencies-change.d.ts +1 -1
- package/engine/core/triggers/on-dependencies-change.js +2 -2
- package/engine/core/triggers/on-dependencies-change.js.map +1 -1
- package/generator/artifacts/index.d.ts +317 -0
- package/generator/bootstrap/bin.d.ts +18 -0
- package/generator/bootstrap/bin.js +7298 -0
- package/generator/bootstrap/candidate-output-committer.d.ts +12 -0
- package/generator/bootstrap/cli.d.ts +42 -0
- package/generator/bootstrap/cli.js +7147 -0
- package/generator/bootstrap/constants.d.ts +4 -0
- package/generator/bootstrap/index.d.ts +111 -0
- package/generator/bootstrap/index.js +5034 -0
- package/generator/bootstrap/prerender-command.d.ts +31 -0
- package/generator/bootstrap/process-tree.d.ts +49 -0
- package/generator/build-metafile.json +12009 -0
- package/generator/build-provenance.json +121 -0
- package/generator/compiler/assemble.d.ts +41 -0
- package/generator/compiler/classify.d.ts +161 -0
- package/generator/compiler/closure-store.d.ts +55 -0
- package/generator/compiler/common.d.ts +32 -0
- package/generator/compiler/describe.d.ts +21 -0
- package/generator/compiler/dry-run.d.ts +108 -0
- package/generator/compiler/fast-start.d.ts +104 -0
- package/generator/compiler/fold.d.ts +116 -0
- package/generator/compiler/index.d.ts +131 -0
- package/generator/compiler/index.js +19009 -0
- package/generator/compiler/link.d.ts +38 -0
- package/generator/compiler/memo.d.ts +44 -0
- package/generator/compiler/plan.d.ts +116 -0
- package/generator/compiler/progress.d.ts +54 -0
- package/generator/compiler/render.d.ts +27 -0
- package/generator/compiler/retention.d.ts +181 -0
- package/generator/compiler/semantic-closure.d.ts +46 -0
- package/generator/compiler/targeted.d.ts +280 -0
- package/generator/content/code-snippet.d.ts +20 -0
- package/generator/content/content-compiler.d.ts +122 -0
- package/generator/content/format-cache.d.ts +108 -0
- package/generator/content/highlight-cache.d.ts +115 -0
- package/generator/content/html-pipeline.d.ts +179 -0
- package/generator/content/html-pool.d.ts +245 -0
- package/generator/content/html-worker.js +2181 -0
- package/generator/content-module-ids.d.ts +8 -0
- package/generator/contracts.d.ts +1102 -0
- package/generator/contracts.js +15 -0
- package/generator/discovery/index.d.ts +79 -0
- package/generator/graph/index.d.ts +211 -0
- package/generator/graph/unit-index.d.ts +216 -0
- package/generator/kernel/canonical.d.ts +57 -0
- package/generator/kernel/flags.d.ts +51 -0
- package/generator/kernel/footprint.d.ts +88 -0
- package/generator/kernel/observations.d.ts +68 -0
- package/generator/kernel/paths.d.ts +22 -0
- package/generator/kernel/runtime-identity.d.ts +11 -0
- package/generator/outputs/index.d.ts +80 -0
- package/generator/package.json +3 -0
- package/generator/progress/ci.d.ts +22 -0
- package/generator/progress/detect.d.ts +60 -0
- package/generator/progress/events.d.ts +126 -0
- package/generator/progress/format.d.ts +83 -0
- package/generator/progress/gate.d.ts +49 -0
- package/generator/progress/host.d.ts +29 -0
- package/generator/progress/lines.d.ts +42 -0
- package/generator/progress/live.d.ts +115 -0
- package/generator/progress/model.d.ts +85 -0
- package/generator/progress/reporter.d.ts +87 -0
- package/generator/progress/settings.d.ts +60 -0
- package/generator/semantic/angular.d.ts +29 -0
- package/generator/semantic/api-enumeration.d.ts +19 -0
- package/generator/semantic/api-summary.d.ts +33 -0
- package/generator/semantic/dependencies.d.ts +20 -0
- package/generator/semantic/derived-classes.d.ts +58 -0
- package/generator/semantic/documentation-cache.d.ts +23 -0
- package/generator/semantic/formatting.d.ts +27 -0
- package/generator/semantic/fragments.d.ts +37 -0
- package/generator/semantic/owned-roots.d.ts +59 -0
- package/generator/semantic/program-builder.d.ts +55 -0
- package/generator/semantic/program-index.d.ts +124 -0
- package/generator/semantic/program-inputs.d.ts +26 -0
- package/generator/semantic/program-observations.d.ts +158 -0
- package/generator/semantic/program-retention.d.ts +147 -0
- package/generator/semantic/program-state.d.ts +196 -0
- package/generator/semantic/program-verify.d.ts +22 -0
- package/generator/semantic/recorder.d.ts +89 -0
- package/generator/semantic/rendering.d.ts +34 -0
- package/generator/semantic/semantic-closure.d.ts +129 -0
- package/generator/semantic/semantic-service.d.ts +186 -0
- package/generator/semantic/type-text.d.ts +5 -0
- package/generator/session/build-session.d.ts +206 -0
- package/generator/session/input-verification.d.ts +38 -0
- package/generator/session/parcel-event-source.d.ts +22 -0
- package/generator/session/progress.d.ts +72 -0
- package/generator/session/unchanged-saves.d.ts +63 -0
- package/generator/session/watch-inputs.d.ts +6 -0
- package/generator/session/watch-signals.d.ts +10 -0
- package/generator/templates/api/base.html.nunj +26 -0
- package/generator/templates/api/class-declaration.html.nunj +59 -0
- package/generator/templates/api/details/class-declaration.html.nunj +47 -0
- package/generator/templates/api/details/enum-declaration.html.nunj +0 -0
- package/generator/templates/api/details/function-declaration.html.nunj +14 -0
- package/generator/templates/api/details/helpers/decorators.html.nunj +14 -0
- package/generator/templates/api/details/helpers/extends.html.nunj +6 -0
- package/generator/templates/api/details/helpers/selectors.html.nunj +12 -0
- package/generator/templates/api/details/helpers/type-parameters.html.nunj +14 -0
- package/generator/templates/api/details/interface-declaration.html.nunj +27 -0
- package/generator/templates/api/details/type-alias-declaration.html.nunj +14 -0
- package/generator/templates/api/details/variable-declaration.html.nunj +0 -0
- package/generator/templates/api/details.html.nunj +9 -0
- package/generator/templates/api/enum-declaration.html.nunj +12 -0
- package/generator/templates/api/function-declaration.html.nunj +35 -0
- package/generator/templates/api/interface-declaration.html.nunj +37 -0
- package/generator/templates/api/type-alias-declaration.html.nunj +16 -0
- package/generator/templates/api/variable-declaration.html.nunj +8 -0
- package/generator/templates/api-header.html.nunj +11 -0
- package/generator/templates/api-list.ts.nunj +22 -0
- package/generator/templates/api-page-content.html.nunj +1 -0
- package/generator/templates/api-scope.ts.nunj +22 -0
- package/generator/templates/category.ts.nunj +22 -0
- package/generator/templates/code.html.nunj +3 -0
- package/generator/templates/context.ts.nunj +55 -0
- package/generator/templates/demo-app.ts.nunj +37 -0
- package/generator/templates/demo-assets.ts.nunj +25 -0
- package/generator/templates/demo-routes.ts.nunj +23 -0
- package/generator/templates/helpers/accessor.html.nunj +76 -0
- package/generator/templates/helpers/accessors.html.nunj +7 -0
- package/generator/templates/helpers/badge.html.nunj +4 -0
- package/generator/templates/helpers/call-signature.html.nunj +70 -0
- package/generator/templates/helpers/code.html.nunj +3 -0
- package/generator/templates/helpers/constructor.html.nunj +32 -0
- package/generator/templates/helpers/declaration-modifiers.html.nunj +45 -0
- package/generator/templates/helpers/decorators.html.nunj +11 -0
- package/generator/templates/helpers/members.html.nunj +29 -0
- package/generator/templates/helpers/method.html.nunj +89 -0
- package/generator/templates/helpers/methods.html.nunj +7 -0
- package/generator/templates/helpers/modifier.html.nunj +4 -0
- package/generator/templates/helpers/no-content.html.nunj +3 -0
- package/generator/templates/helpers/overload.html.nunj +57 -0
- package/generator/templates/helpers/parameters.html.nunj +44 -0
- package/generator/templates/helpers/properties.html.nunj +61 -0
- package/generator/templates/helpers/status.html.nunj +33 -0
- package/generator/templates/helpers/tag.html.nunj +4 -0
- package/generator/templates/helpers/type.html.nunj +11 -0
- package/generator/templates/index.ts.nunj +7 -0
- package/generator/templates/page-header.html.nunj +5 -0
- package/generator/templates/page-wrapper.ts.nunj +69 -0
- package/generator/templates/page.ts.nunj +104 -0
- package/generator/templates/parts/examples.html.nunj +11 -0
- package/generator/templates/parts/member-examples.html.nunj +12 -0
- package/generator/templates/parts/member-remarks.html.nunj +8 -0
- package/generator/templates/parts/page-tags.html.nunj +10 -0
- package/generator/templates/parts/remarks.html.nunj +10 -0
- package/generator/templates/parts/see-also.html.nunj +23 -0
- package/generator/templates/parts/usage-notes.html.nunj +8 -0
- package/generator/templates/playgrounds.ts.nunj +63 -0
- package/generator/templates/routes.ts.nunj +53 -0
- package/generator/templates/symbol/decorators.html.nunj +12 -0
- package/generator/templates/symbol/details.html.nunj +62 -0
- package/generator/templates/symbol/extended-by.html.nunj +17 -0
- package/generator/templates/symbol/header.html.nunj +22 -0
- package/generator/templates/symbol/members.html.nunj +303 -0
- package/generator/templates/symbol/page.html.nunj +76 -0
- package/generator/templates/symbol/see-also.html.nunj +16 -0
- package/generator/vite/angular/ANALOG-LICENSE +21 -0
- package/generator/vite/angular/analog-provenance.json +880 -0
- package/generator/vite/angular/index.d.ts +14 -0
- package/generator/vite/angular/index.js +7300 -0
- package/generator/vite/angular-compatibility.d.ts +6 -0
- package/generator/vite/angular-composition.d.ts +68 -0
- package/generator/vite/angular-version.d.ts +38 -0
- package/generator/vite/application-builder.js +336 -0
- package/generator/vite/application-builder.schema.json +46 -0
- package/generator/vite/application.d.ts +105 -0
- package/generator/vite/assets.d.ts +11 -0
- package/generator/vite/bounded-close.d.ts +33 -0
- package/generator/vite/component-updates.d.ts +21 -0
- package/generator/vite/configuration.d.ts +3 -0
- package/generator/vite/demo-application.d.ts +34 -0
- package/generator/vite/dev-server-builder.js +339 -0
- package/generator/vite/dev-server-builder.schema.json +27 -0
- package/generator/vite/dev-styles.d.ts +65 -0
- package/generator/vite/diagnostics.d.ts +4 -0
- package/generator/vite/external-probes.d.ts +40 -0
- package/generator/vite/host-updates.d.ts +212 -0
- package/generator/vite/index.d.ts +13 -0
- package/generator/vite/index.js +11949 -0
- package/generator/vite/lease.d.ts +6 -0
- package/generator/vite/lifecycle.d.ts +120 -0
- package/generator/vite/mime.d.ts +2 -0
- package/generator/vite/missing-paths.d.ts +44 -0
- package/generator/vite/options.d.ts +87 -0
- package/generator/vite/output-watch.d.ts +41 -0
- package/generator/vite/paths.d.ts +7 -0
- package/generator/vite/plugin.d.ts +3 -0
- package/generator/vite/prerender-entry.js +465 -0
- package/generator/vite/prerender-runtime.d.ts +79 -0
- package/generator/vite/prerender.d.ts +29 -0
- package/generator/vite/production.d.ts +66 -0
- package/generator/vite/progress.d.ts +33 -0
- package/generator/vite/restore-theme.js +13 -0
- package/generator/vite/route-inventory.d.ts +24 -0
- package/generator/vite/ssr-renderer-control.d.ts +1 -0
- package/generator/vite/ssr-renderer-entry.js +444 -0
- package/generator/vite/ssr-renderer-protocol.d.ts +101 -0
- package/generator/vite/ssr-renderer.d.ts +74 -0
- package/generator/vite/theme-index.d.ts +13 -0
- package/generator/vite/tsconfig-paths.d.ts +64 -0
- package/generator/vite/vite-event-source.d.ts +198 -0
- package/generator/vite/vite-version.d.ts +26 -0
- package/generator/vite/watch-inputs.d.ts +39 -0
- package/generator/worker/entry.d.ts +1 -0
- package/generator/worker/entry.js +614 -0
- package/generator/worker/index.d.ts +156 -0
- package/generator/worker/index.js +1030 -0
- package/generator/worker/protocol.d.ts +160 -0
- package/helpers/angular/get-component-decorator.js +6 -6
- package/helpers/angular/get-component-decorator.js.map +1 -1
- package/helpers/angular/get-directive-decorator.js +3 -3
- package/helpers/angular/get-directive-decorator.js.map +1 -1
- package/helpers/angular/get-pipe-decorator.js +3 -3
- package/helpers/angular/get-pipe-decorator.js.map +1 -1
- package/helpers/build-indexes.js +5 -2
- package/helpers/build-indexes.js.map +1 -1
- package/helpers/construct-page-keyword.js +2 -1
- package/helpers/construct-page-keyword.js.map +1 -1
- package/helpers/extract-selectors.d.ts +1 -1
- package/helpers/extract-selectors.js +5 -3
- package/helpers/extract-selectors.js.map +1 -1
- package/helpers/filter-useless-members.d.ts +1 -1
- package/helpers/format-cache.d.ts +34 -0
- package/helpers/format-cache.js +26 -0
- package/helpers/format-cache.js.map +1 -0
- package/helpers/format-code.d.ts +2 -1
- package/helpers/format-code.js +20 -4
- package/helpers/format-code.js.map +1 -1
- package/helpers/import-fresh-esm.js.map +1 -1
- package/helpers/index.d.ts +2 -0
- package/helpers/index.js +2 -0
- package/helpers/index.js.map +1 -1
- package/helpers/keyword-heading-title.d.ts +7 -0
- package/helpers/keyword-heading-title.js +21 -0
- package/helpers/keyword-heading-title.js.map +1 -0
- package/helpers/markdown-to-html.js +3 -3
- package/helpers/markdown-to-html.js.map +1 -1
- package/helpers/navigation-title-order.d.ts +8 -0
- package/helpers/navigation-title-order.js +15 -0
- package/helpers/navigation-title-order.js.map +1 -0
- package/helpers/playground/get-playground-inputs.js +8 -4
- package/helpers/playground/get-playground-inputs.js.map +1 -1
- package/helpers/playground/get-playground-template-inputs.js +2 -1
- package/helpers/playground/get-playground-template-inputs.js.map +1 -1
- package/helpers/presentation.d.ts +7 -7
- package/helpers/presentation.js +23 -23
- package/helpers/presentation.js.map +1 -1
- package/helpers/print.js +32 -5
- package/helpers/print.js.map +1 -1
- package/helpers/process-snippets.d.ts +1 -1
- package/helpers/process-snippets.js +3 -3
- package/helpers/process-snippets.js.map +1 -1
- package/helpers/snippets-from-asset.d.ts +1 -1
- package/helpers/snippets-from-asset.js +2 -2
- package/helpers/snippets-from-asset.js.map +1 -1
- package/helpers/sort-navigation-entities.js +2 -1
- package/helpers/sort-navigation-entities.js.map +1 -1
- package/helpers/stable-generated-id.d.ts +2 -0
- package/helpers/stable-generated-id.js +12 -0
- package/helpers/stable-generated-id.js.map +1 -0
- package/helpers/text-order.d.ts +8 -0
- package/helpers/text-order.js +26 -0
- package/helpers/text-order.js.map +1 -0
- package/helpers/to-template-string.d.ts +5 -1
- package/helpers/to-template-string.js +7 -2
- package/helpers/to-template-string.js.map +1 -1
- package/helpers/typescript/member/get-inherited-parent.d.ts +1 -1
- package/helpers/typescript/member/get-inherited-parent.js +2 -2
- package/helpers/typescript/member/get-inherited-parent.js.map +1 -1
- package/helpers/typescript/node/sort-by-nodes-name.d.ts +4 -2
- package/helpers/typescript/node/sort-by-nodes-name.js +6 -3
- package/helpers/typescript/node/sort-by-nodes-name.js.map +1 -1
- package/helpers/typescript/property/get-property-assignment.js.map +1 -1
- package/interfaces/code-block-options.d.ts +5 -0
- package/interfaces/configuration.d.ts +84 -1
- package/package.json +87 -29
- package/parsers/helpers/number.d.ts +1 -1
- package/parsers/helpers/number.js +2 -2
- package/parsers/helpers/number.js.map +1 -1
- package/parsers/helpers/param-value.d.ts +1 -1
- package/parsers/helpers/param-value.js +2 -2
- package/parsers/helpers/param-value.js.map +1 -1
- package/parsers/helpers/param.js +3 -3
- package/parsers/helpers/param.js.map +1 -1
- package/parsers/parse-code-block-params.d.ts +11 -2
- package/parsers/parse-code-block-params.js +50 -18
- package/parsers/parse-code-block-params.js.map +1 -1
- package/parsers/parse-snippet.js +10 -10
- package/parsers/parse-snippet.js.map +1 -1
- package/schematics/collection.json +34 -23
- package/schematics/migrate-to-vite/analyze.d.ts +76 -0
- package/schematics/migrate-to-vite/analyze.js +859 -0
- package/schematics/migrate-to-vite/analyze.js.map +1 -0
- package/schematics/migrate-to-vite/index.d.ts +9 -0
- package/schematics/migrate-to-vite/index.js +585 -0
- package/schematics/migrate-to-vite/index.js.map +1 -0
- package/schematics/migrate-to-vite/legacy-folder.d.ts +84 -0
- package/schematics/migrate-to-vite/legacy-folder.js +340 -0
- package/schematics/migrate-to-vite/legacy-folder.js.map +1 -0
- package/schematics/migrate-to-vite/report.d.ts +32 -0
- package/schematics/migrate-to-vite/report.js +97 -0
- package/schematics/migrate-to-vite/report.js.map +1 -0
- package/schematics/migrate-to-vite/schema.d.ts +13 -0
- package/schematics/migrate-to-vite/schema.js +3 -0
- package/schematics/migrate-to-vite/schema.js.map +1 -0
- package/schematics/migrate-to-vite/schema.json +31 -0
- package/schematics/migrate-to-vite/setup/dependencies.d.ts +64 -0
- package/schematics/migrate-to-vite/setup/dependencies.js +183 -0
- package/schematics/migrate-to-vite/setup/dependencies.js.map +1 -0
- package/schematics/migrate-to-vite/setup/index.d.ts +6 -0
- package/schematics/migrate-to-vite/setup/index.js +13 -0
- package/schematics/migrate-to-vite/setup/index.js.map +1 -0
- package/schematics/migrate-to-vite/setup/json-file.d.ts +51 -0
- package/schematics/migrate-to-vite/setup/json-file.js +115 -0
- package/schematics/migrate-to-vite/setup/json-file.js.map +1 -0
- package/schematics/migrate-to-vite/setup/source.d.ts +30 -0
- package/schematics/migrate-to-vite/setup/source.js +202 -0
- package/schematics/migrate-to-vite/setup/source.js.map +1 -0
- package/schematics/migrate-to-vite/setup/targets.d.ts +51 -0
- package/schematics/migrate-to-vite/setup/targets.js +48 -0
- package/schematics/migrate-to-vite/setup/targets.js.map +1 -0
- package/schematics/migrate-to-vite/setup/vite-config.d.ts +100 -0
- package/schematics/migrate-to-vite/setup/vite-config.js +175 -0
- package/schematics/migrate-to-vite/setup/vite-config.js.map +1 -0
- package/schematics/migrate-to-vite/setup/workspace.d.ts +105 -0
- package/schematics/migrate-to-vite/setup/workspace.js +245 -0
- package/schematics/migrate-to-vite/setup/workspace.js.map +1 -0
- package/schematics/migrate-to-vite/state.d.ts +65 -0
- package/schematics/migrate-to-vite/state.js +92 -0
- package/schematics/migrate-to-vite/state.js.map +1 -0
- package/schematics/migrate-to-vite/testing/fixtures.d.ts +30 -0
- package/schematics/migrate-to-vite/testing/fixtures.js +306 -0
- package/schematics/migrate-to-vite/testing/fixtures.js.map +1 -0
- package/schematics/migrate-to-vite/update-note.d.ts +6 -0
- package/schematics/migrate-to-vite/update-note.js +23 -0
- package/schematics/migrate-to-vite/update-note.js.map +1 -0
- package/schematics/migration.json +5 -0
- package/schematics/migrations/standalone-pages/index.js +7 -6
- package/schematics/migrations/standalone-pages/index.js.map +1 -1
- package/schematics/vite-setup/index.d.ts +24 -0
- package/schematics/vite-setup/index.js +212 -0
- package/schematics/vite-setup/index.js.map +1 -0
- package/schematics/vite-setup/schema.d.ts +7 -0
- package/schematics/vite-setup/schema.js +3 -0
- package/schematics/vite-setup/schema.js.map +1 -0
- package/schematics/vite-setup/schema.json +19 -0
- package/scripts/restore-theme.js +9 -2
- package/templates/api/class-declaration.html.nunj +5 -3
- package/templates/context.ts.nunj +3 -0
- package/templates/demo-app.ts.nunj +37 -0
- package/templates/demo-routes.ts.nunj +23 -0
- package/templates/helpers/badge.html.nunj +1 -1
- package/templates/helpers/status.html.nunj +4 -8
- package/templates/index.ts.nunj +5 -0
- package/templates/page-wrapper.ts.nunj +30 -2
- package/templates/page.ts.nunj +33 -1
- package/templates/parts/page-tags.html.nunj +1 -1
- package/templates/playgrounds.ts.nunj +8 -9
- package/templates/routes.ts.nunj +10 -1
- package/templates/symbol/decorators.html.nunj +12 -0
- package/templates/symbol/details.html.nunj +62 -0
- package/templates/symbol/extended-by.html.nunj +17 -0
- package/templates/symbol/header.html.nunj +22 -0
- package/templates/symbol/members.html.nunj +303 -0
- package/templates/symbol/page.html.nunj +76 -0
- package/templates/symbol/see-also.html.nunj +16 -0
- package/engine/.cache/apps/ng-doc/docs/api-documentation/auto-generation/ng-doc.page.mjs +0 -20
- package/engine/.cache/apps/ng-doc/docs/api-documentation/documenting-declarations/ng-doc.page.mjs +0 -20
- package/engine/.cache/apps/ng-doc/docs/api-documentation/rendering-api/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/customization/icons/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/customization/layout/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/customization/page-processors/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/customization/page-skeleton/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/customization/search/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/customization/themes/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/develop/ng-doc.page.mjs +0 -36
- package/engine/.cache/apps/ng-doc/docs/getting-started/configuration/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/getting-started/installation/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/getting-started/migrations/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/getting-started/ssr/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/getting-started/what-is-ng-doc/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/ng-doc.api.mjs +0 -42
- package/engine/.cache/apps/ng-doc/docs/recipes/ignoring-file-lines/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/recipes/performance/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/writing-content/blockquotes/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/writing-content/code-blocks/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/writing-content/demo-and-demo-pane/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/writing-content/images-videos-and-embeds/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/writing-content/keywords/ng-doc.page.mjs +0 -17
- package/engine/.cache/apps/ng-doc/docs/writing-content/mermaid-diagrams/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/writing-content/nunjucks/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/writing-content/pages-and-categories/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/writing-content/playground/ng-doc.page.mjs +0 -33
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.compareNavigationTitles = compareNavigationTitles;
|
|
4
|
+
const text_order_1 = require("./text-order");
|
|
5
|
+
/**
|
|
6
|
+
* Compares two navigation titles in the fixed navigation order, in both engines: the shared text
|
|
7
|
+
* order (`compareText`), so a sidebar does not depend on the process locale.
|
|
8
|
+
* @param left - A title.
|
|
9
|
+
* @param right - Another title.
|
|
10
|
+
* @returns A negative number, zero or a positive number, as `localeCompare` does.
|
|
11
|
+
*/
|
|
12
|
+
function compareNavigationTitles(left, right) {
|
|
13
|
+
return (0, text_order_1.compareText)(left, right);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=navigation-title-order.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-title-order.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/navigation-title-order.ts"],"names":[],"mappings":";;AASA,0DAEC;AAXD,6CAA2C;AAE3C;;;;;;GAMG;AACH,SAAgB,uBAAuB,CAAC,IAAY,EAAE,KAAa;IACjE,OAAO,IAAA,wBAAW,EAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClC,CAAC"}
|
|
@@ -3,7 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getPlaygroundComponentInputs = getPlaygroundComponentInputs;
|
|
4
4
|
exports.getPlaygroundPipeInputs = getPlaygroundPipeInputs;
|
|
5
5
|
const ts_morph_1 = require("ts-morph");
|
|
6
|
-
|
|
6
|
+
// Not the `../angular` barrel: it re-exports get-component-assets, which imports the
|
|
7
|
+
// @ng-doc/builder package itself, so this helper would need a built and linked package to load.
|
|
8
|
+
const get_component_inputs_1 = require("../angular/get-component-inputs");
|
|
9
|
+
const get_input_name_1 = require("../angular/get-input-name");
|
|
10
|
+
const get_input_type_1 = require("../angular/get-input-type");
|
|
7
11
|
const get_js_doc_1 = require("../get-js-doc");
|
|
8
12
|
const typescript_1 = require("../typescript");
|
|
9
13
|
/**
|
|
@@ -11,8 +15,8 @@ const typescript_1 = require("../typescript");
|
|
|
11
15
|
* @param declaration
|
|
12
16
|
*/
|
|
13
17
|
function getPlaygroundComponentInputs(declaration) {
|
|
14
|
-
return (0,
|
|
15
|
-
const inputName = (0,
|
|
18
|
+
return (0, get_component_inputs_1.getComponentInputs)(declaration).reduce((properties, property) => {
|
|
19
|
+
const inputName = (0, get_input_name_1.getInputName)(property);
|
|
16
20
|
return { ...properties, ...propOrParamToPlaygroundProperty(property, inputName) };
|
|
17
21
|
}, {});
|
|
18
22
|
}
|
|
@@ -36,7 +40,7 @@ function getPlaygroundPipeInputs(declaration) {
|
|
|
36
40
|
*/
|
|
37
41
|
function propOrParamToPlaygroundProperty(propOrParam, inputName) {
|
|
38
42
|
const inputType = ts_morph_1.Node.isPropertyDeclaration(propOrParam)
|
|
39
|
-
? (0,
|
|
43
|
+
? (0, get_input_type_1.getInputType)(propOrParam)
|
|
40
44
|
: propOrParam.getType();
|
|
41
45
|
const type = (0, typescript_1.formatType)(inputType, ts_morph_1.TypeFormatFlags.NoTruncation | ts_morph_1.TypeFormatFlags.UseSingleQuotesForStringLiteralType);
|
|
42
46
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-playground-inputs.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/playground/get-playground-inputs.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"get-playground-inputs.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/playground/get-playground-inputs.ts"],"names":[],"mappings":";;AAuBA,oEAUC;AAMD,0DAQC;AA9CD,uCAOkB;AAElB,qFAAqF;AACrF,gGAAgG;AAChG,0EAAqE;AACrE,8DAAyD;AACzD,8DAAyD;AAEzD,8CAAmE;AACnE,8CAA2C;AAE3C;;;GAGG;AACH,SAAgB,4BAA4B,CAC1C,WAA6B;IAE7B,OAAO,IAAA,yCAAkB,EAAC,WAAW,CAAC,CAAC,MAAM,CAC3C,CAAC,UAAqC,EAAE,QAA+B,EAAE,EAAE;QACzE,MAAM,SAAS,GAAW,IAAA,6BAAY,EAAC,QAAQ,CAAC,CAAC;QACjD,OAAO,EAAE,GAAG,UAAU,EAAE,GAAG,+BAA+B,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,CAAC;IACpF,CAAC,EACD,EAAE,CACH,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAgB,uBAAuB,CAAC,WAA6B;IACnE,OAAO,WAAW;SACf,gBAAgB,CAAC,WAAW,CAAC;SAC7B,aAAa,EAAE;SACf,KAAK,CAAC,CAAC,CAAC;SACR,MAAM,CAAC,CAAC,UAAqC,EAAE,SAA+B,EAAE,EAAE;QACjF,OAAO,EAAE,GAAG,UAAU,EAAE,GAAG,+BAA+B,CAAC,SAAS,CAAC,EAAE,CAAC;IAC1E,CAAC,EAAE,EAAE,CAAC,CAAC;AACX,CAAC;AAED;;;;GAIG;AACH,SAAS,+BAA+B,CACtC,WAAyD,EACzD,SAAkB;IAElB,MAAM,SAAS,GAAG,eAAI,CAAC,qBAAqB,CAAC,WAAW,CAAC;QACvD,CAAC,CAAC,IAAA,6BAAY,EAAC,WAAW,CAAC;QAC3B,CAAC,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;IAC1B,MAAM,IAAI,GAAW,IAAA,uBAAU,EAC7B,SAAS,EACT,0BAAe,CAAC,YAAY,GAAG,0BAAe,CAAC,mCAAmC,CACnF,CAAC;IAEF,OAAO;QACL,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC,EAAE;YACvB,SAAS,EAAE,SAAS,IAAI,WAAW,CAAC,OAAO,EAAE;YAC7C,IAAI;YACJ,WAAW,EACT,eAAI,CAAC,qBAAqB,CAAC,WAAW,CAAC;gBACvC,eAAI,CAAC,wBAAwB,CAAC,WAAW,CAAC;gBAC1C,eAAI,CAAC,wBAAwB,CAAC,WAAW,CAAC;gBACxC,CAAC,CAAC,IAAA,gCAAmB,EAAC,WAAW,CAAC;gBAClC,CAAC,CAAC,IAAA,0BAAa,EACX,WAAW,CAAC,sBAAsB,CAAC,qBAAU,CAAC,iBAAiB,CAAC,EAChE,WAAW,CAAC,OAAO,EAAE,CACtB;YACP,OAAO,EAAE,SAAS;iBACf,aAAa,EAAE;iBACf,GAAG,CAAC,CAAC,IAAU,EAAE,EAAE,CAClB,IAAI,CAAC,OAAO,CACV,SAAS,EACT,0BAAe,CAAC,YAAY,GAAG,0BAAe,CAAC,mCAAmC,CACnF,CACF;SACJ;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -9,7 +9,8 @@ exports.getPlaygroundTemplateInputs = getPlaygroundTemplateInputs;
|
|
|
9
9
|
function getPlaygroundTemplateInputs(properties) {
|
|
10
10
|
return Object.keys(properties).reduce((inputs, property) => {
|
|
11
11
|
const inputName = properties[property].inputName;
|
|
12
|
-
|
|
12
|
+
// `properties` is a signal input of the generated playground class.
|
|
13
|
+
inputs[inputName] = `properties()['${property}']`;
|
|
13
14
|
return inputs;
|
|
14
15
|
}, {});
|
|
15
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-playground-template-inputs.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/playground/get-playground-template-inputs.ts"],"names":[],"mappings":";;AAOA,
|
|
1
|
+
{"version":3,"file":"get-playground-template-inputs.js","sourceRoot":"","sources":["../../../../../libs/builder/helpers/playground/get-playground-template-inputs.ts"],"names":[],"mappings":";;AAOA,kEAWC;AAhBD;;;;GAIG;AACH,SAAgB,2BAA2B,CACzC,UAAqC;IAErC,OAAO,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,MAA8B,EAAE,QAAgB,EAAE,EAAE;QACzF,MAAM,SAAS,GAAW,UAAU,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC;QAEzD,oEAAoE;QACpE,MAAM,CAAC,SAAS,CAAC,GAAG,iBAAiB,QAAQ,IAAI,CAAC;QAElD,OAAO,MAAM,CAAC;IAChB,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC"}
|
|
@@ -3,34 +3,34 @@ import { AccessorDeclaration, CallSignatureDeclaration, ConstructorDeclaration,
|
|
|
3
3
|
*
|
|
4
4
|
* @param constructor
|
|
5
5
|
*/
|
|
6
|
-
export declare function constructorPresentation(constructor: ConstructorDeclaration): string;
|
|
6
|
+
export declare function constructorPresentation(constructor: ConstructorDeclaration, configDirectory?: string): string;
|
|
7
7
|
/**
|
|
8
8
|
*
|
|
9
9
|
* @param accessor
|
|
10
10
|
*/
|
|
11
|
-
export declare function accessorPresentation(accessor: AccessorDeclaration): string;
|
|
11
|
+
export declare function accessorPresentation(accessor: AccessorDeclaration, configDirectory?: string): string;
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @param method
|
|
15
15
|
*/
|
|
16
|
-
export declare function methodPresentation(method: MethodDeclaration): string;
|
|
16
|
+
export declare function methodPresentation(method: MethodDeclaration, configDirectory?: string): string;
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
19
19
|
* @param callSignature
|
|
20
20
|
*/
|
|
21
|
-
export declare function callSignaturePresentation(callSignature: CallSignatureDeclaration): string;
|
|
21
|
+
export declare function callSignaturePresentation(callSignature: CallSignatureDeclaration, configDirectory?: string): string;
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @param fnc
|
|
25
25
|
*/
|
|
26
|
-
export declare function functionPresentation(fnc: FunctionDeclaration): string;
|
|
26
|
+
export declare function functionPresentation(fnc: FunctionDeclaration, configDirectory?: string): string;
|
|
27
27
|
/**
|
|
28
28
|
*
|
|
29
29
|
* @param typeAlias
|
|
30
30
|
*/
|
|
31
|
-
export declare function typeAliasPresentation(typeAlias: TypeAliasDeclaration): string;
|
|
31
|
+
export declare function typeAliasPresentation(typeAlias: TypeAliasDeclaration, configDirectory?: string): string;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @param variable
|
|
35
35
|
*/
|
|
36
|
-
export declare function variablePresentation(variable: VariableDeclaration): string;
|
|
36
|
+
export declare function variablePresentation(variable: VariableDeclaration, configDirectory?: string): string;
|
package/helpers/presentation.js
CHANGED
|
@@ -10,108 +10,108 @@ exports.variablePresentation = variablePresentation;
|
|
|
10
10
|
const core_1 = require("@ng-doc/core");
|
|
11
11
|
const ts_morph_1 = require("ts-morph");
|
|
12
12
|
const format_code_1 = require("./format-code");
|
|
13
|
-
const
|
|
13
|
+
const display_type_1 = require("./typescript/display-type");
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @param constructor
|
|
17
17
|
*/
|
|
18
|
-
function constructorPresentation(constructor) {
|
|
18
|
+
function constructorPresentation(constructor, configDirectory) {
|
|
19
19
|
const parameters = constructor.getParameters().map(parameterPresentation).join(', \n ');
|
|
20
20
|
const presentation = [
|
|
21
21
|
scopePresentation(constructor),
|
|
22
22
|
`constructor(\n ${parameters}\n):`,
|
|
23
|
-
(0,
|
|
23
|
+
(0, display_type_1.displayReturnType)(constructor),
|
|
24
24
|
]
|
|
25
25
|
.filter(core_1.isPresent)
|
|
26
26
|
.join(' ') + ';';
|
|
27
|
-
return (0, format_code_1.formatCode)(presentation, 'TypeScript');
|
|
27
|
+
return (0, format_code_1.formatCode)(presentation, 'TypeScript', configDirectory);
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
31
|
* @param accessor
|
|
32
32
|
*/
|
|
33
|
-
function accessorPresentation(accessor) {
|
|
33
|
+
function accessorPresentation(accessor, configDirectory) {
|
|
34
34
|
const parameters = accessor.getParameters().map(parameterPresentation).join(', ');
|
|
35
35
|
const prefix = ts_morph_1.Node.isGetAccessorDeclaration(accessor) ? 'get' : 'set';
|
|
36
36
|
const header = ts_morph_1.Node.isGetAccessorDeclaration(accessor)
|
|
37
37
|
? `${accessor.getName()}():`
|
|
38
38
|
: `${accessor.getName()}(${parameters})`;
|
|
39
39
|
const returnType = ts_morph_1.Node.isGetAccessorDeclaration(accessor)
|
|
40
|
-
? (0,
|
|
40
|
+
? (0, display_type_1.displayReturnType)(accessor)
|
|
41
41
|
: '';
|
|
42
42
|
const presentation = [staticPresentation(accessor), scopePresentation(accessor), prefix, header, returnType]
|
|
43
43
|
.filter(core_1.isPresent)
|
|
44
44
|
.join(' ') + ';';
|
|
45
|
-
return (0, format_code_1.formatCode)(presentation, 'TypeScript');
|
|
45
|
+
return (0, format_code_1.formatCode)(presentation, 'TypeScript', configDirectory);
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @param method
|
|
50
50
|
*/
|
|
51
|
-
function methodPresentation(method) {
|
|
51
|
+
function methodPresentation(method, configDirectory) {
|
|
52
52
|
const parameters = method.getParameters().map(parameterPresentation).join(', ');
|
|
53
53
|
const presentation = [
|
|
54
54
|
memberModifiers(method),
|
|
55
55
|
staticPresentation(method),
|
|
56
56
|
scopePresentation(method),
|
|
57
57
|
`${method.getName()}(${parameters}):`,
|
|
58
|
-
`${(0,
|
|
58
|
+
`${(0, display_type_1.displayReturnType)(method)};`,
|
|
59
59
|
]
|
|
60
60
|
.filter(core_1.isPresent)
|
|
61
61
|
.join(' ');
|
|
62
|
-
return (0, format_code_1.formatCode)(presentation, 'TypeScript');
|
|
62
|
+
return (0, format_code_1.formatCode)(presentation, 'TypeScript', configDirectory);
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @param callSignature
|
|
67
67
|
*/
|
|
68
|
-
function callSignaturePresentation(callSignature) {
|
|
68
|
+
function callSignaturePresentation(callSignature, configDirectory) {
|
|
69
69
|
const parameters = callSignature.getParameters().map(parameterPresentation).join(', ');
|
|
70
70
|
const typeParameters = typeParametersPresentation(callSignature.getTypeParameters());
|
|
71
71
|
const presentation = [
|
|
72
72
|
`${typeParameters ? `<${typeParameters}>` : ''}(${parameters}):`,
|
|
73
|
-
`${(0,
|
|
73
|
+
`${(0, display_type_1.displayReturnType)(callSignature)};`,
|
|
74
74
|
]
|
|
75
75
|
.filter(core_1.isPresent)
|
|
76
76
|
.join(' ');
|
|
77
|
-
return (0, format_code_1.formatCode)(presentation, 'TypeScript');
|
|
77
|
+
return (0, format_code_1.formatCode)(presentation, 'TypeScript', configDirectory);
|
|
78
78
|
}
|
|
79
79
|
/**
|
|
80
80
|
*
|
|
81
81
|
* @param fnc
|
|
82
82
|
*/
|
|
83
|
-
function functionPresentation(fnc) {
|
|
83
|
+
function functionPresentation(fnc, configDirectory) {
|
|
84
84
|
const parameters = fnc.getParameters().map(parameterPresentation).join(', ');
|
|
85
85
|
const presentation = [
|
|
86
86
|
'function',
|
|
87
87
|
`${fnc.getName()}(${parameters}):`,
|
|
88
|
-
`${(0,
|
|
88
|
+
`${(0, display_type_1.displayReturnType)(fnc)};`,
|
|
89
89
|
]
|
|
90
90
|
.filter(core_1.isPresent)
|
|
91
91
|
.join(' ');
|
|
92
|
-
return (0, format_code_1.formatCode)(presentation, 'TypeScript');
|
|
92
|
+
return (0, format_code_1.formatCode)(presentation, 'TypeScript', configDirectory);
|
|
93
93
|
}
|
|
94
94
|
/**
|
|
95
95
|
*
|
|
96
96
|
* @param typeAlias
|
|
97
97
|
*/
|
|
98
|
-
function typeAliasPresentation(typeAlias) {
|
|
99
|
-
const presentation = `type ${typeAlias.getName()} = ${(0,
|
|
100
|
-
return (0, format_code_1.formatCode)(presentation, 'TypeScript');
|
|
98
|
+
function typeAliasPresentation(typeAlias, configDirectory) {
|
|
99
|
+
const presentation = `type ${typeAlias.getName()} = ${(0, display_type_1.displayType)(typeAlias)};`;
|
|
100
|
+
return (0, format_code_1.formatCode)(presentation, 'TypeScript', configDirectory);
|
|
101
101
|
}
|
|
102
102
|
/**
|
|
103
103
|
*
|
|
104
104
|
* @param variable
|
|
105
105
|
*/
|
|
106
|
-
function variablePresentation(variable) {
|
|
106
|
+
function variablePresentation(variable, configDirectory) {
|
|
107
107
|
const presentation = [
|
|
108
108
|
variable.getVariableStatement()?.getDeclarationKind() ?? 'const',
|
|
109
109
|
`${variable.getName()}:`,
|
|
110
|
-
`${(0,
|
|
110
|
+
`${(0, display_type_1.displayType)(variable)};`,
|
|
111
111
|
]
|
|
112
112
|
.filter(core_1.isPresent)
|
|
113
113
|
.join(' ');
|
|
114
|
-
return (0, format_code_1.formatCode)(presentation, 'TypeScript');
|
|
114
|
+
return (0, format_code_1.formatCode)(presentation, 'TypeScript', configDirectory);
|
|
115
115
|
}
|
|
116
116
|
/**
|
|
117
117
|
*
|
|
@@ -123,7 +123,7 @@ function parameterPresentation(parameter) {
|
|
|
123
123
|
scopePresentation(parameter),
|
|
124
124
|
modPresentation(parameter),
|
|
125
125
|
parameter.getName() + (parameter.hasQuestionToken() ? '?' : '') + ':',
|
|
126
|
-
(0,
|
|
126
|
+
(0, display_type_1.displayType)(parameter),
|
|
127
127
|
parameter.getInitializer() ? `= ${parameter.getInitializer()?.getText() ?? ''}` : '',
|
|
128
128
|
]
|
|
129
129
|
.filter(core_1.isPresent)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentation.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/presentation.ts"],"names":[],"mappings":";;AA0BA,
|
|
1
|
+
{"version":3,"file":"presentation.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/presentation.ts"],"names":[],"mappings":";;AA0BA,0DAgBC;AAMD,oDAmBC;AAMD,gDAcC;AAMD,8DAeC;AAMD,oDAYC;AAMD,sDAOC;AAMD,oDAaC;AA9JD,uCAAyC;AACzC,uCAgBkB;AAElB,+CAA2C;AAC3C,4DAA2E;AAE3E;;;GAGG;AACH,SAAgB,uBAAuB,CACrC,WAAmC,EACnC,eAAwB;IAExB,MAAM,UAAU,GAAW,WAAW,CAAC,aAAa,EAAE,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAEhG,MAAM,YAAY,GAChB;QACE,iBAAiB,CAAC,WAAW,CAAC;QAC9B,kBAAkB,UAAU,MAAM;QAClC,IAAA,gCAAiB,EAAC,WAAW,CAAC;KAC/B;SACE,MAAM,CAAC,gBAAS,CAAC;SACjB,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;IAErB,OAAO,IAAA,wBAAU,EAAC,YAAY,EAAE,YAAY,EAAE,eAAe,CAAC,CAAC;AACjE,CAAC;AAED;;;GAGG;AACH,SAAgB,oBAAoB,CAClC,QAA6B,EAC7B,eAAwB;IAExB,MAAM,UAAU,GAAW,QAAQ,CAAC,aAAa,EAAE,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1F,MAAM,MAAM,GAAW,eAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC;IAC/E,MAAM,MAAM,GAAW,eAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC;QAC5D,CAAC,CA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IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;AACpE,CAAC;AAED;;;GAGG;AACH,SAAS,eAAe,CAAC,MAAY;IACnC,OAAO;QACL,CAAC,eAAI,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,UAAU,EAAE,IAAI,UAAU,CAAC,IAAI,EAAE;QACxE,CAAC,eAAI,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,EAAE,IAAI,OAAO,CAAC,IAAI,EAAE;KAChE;SACE,MAAM,CAAC,gBAAS,CAAC;SACjB,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC;AAED;;;GAGG;AACH,SAAS,eAAe,CAAC,IAAsB;IAC7C,OAAO,CAAC,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,UAAU,EAAE,IAAI,UAAU,CAAC,IAAI,EAAE,CAAC;AACpE,CAAC;AAED;;;GAGG;AACH,SAAS,sBAAsB,CAAC,IAAqB;IACnD,OAAO,IAAI;SACR,aAAa,EAAE;SACf,GAAG,CAAC,CAAC,CAAY,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,IAAI,CAAC;SAC1C,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC;AAED;;;GAGG;AACH,SAAS,0BAA0B,CAAC,cAA0C;IAC5E,OAAO,cAAc,CAAC,GAAG,CAAC,CAAC,EAA4B,EAAE,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACvF,CAAC"}
|
package/helpers/print.js
CHANGED
|
@@ -1,17 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.printProgress = printProgress;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const readline_1 = require("readline");
|
|
5
|
+
const FRAMES = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'];
|
|
6
|
+
const stream = process.stderr;
|
|
7
|
+
const isTTY = !!stream.isTTY && !process.env['CI'];
|
|
8
|
+
let interval;
|
|
9
|
+
let frame = 0;
|
|
10
|
+
let message = '';
|
|
11
|
+
/**
|
|
12
|
+
* Renders the current frame of the spinner.
|
|
13
|
+
*/
|
|
14
|
+
function render() {
|
|
15
|
+
(0, readline_1.clearLine)(stream, 0);
|
|
16
|
+
(0, readline_1.cursorTo)(stream, 0);
|
|
17
|
+
stream.write(`${FRAMES[frame]} ${message}`);
|
|
18
|
+
frame = (frame + 1) % FRAMES.length;
|
|
19
|
+
}
|
|
6
20
|
/**
|
|
7
21
|
* Prints a progress message. If no message is passed, the message will be cleared.
|
|
8
22
|
* @param text - The message to print.
|
|
9
23
|
*/
|
|
10
24
|
function printProgress(text) {
|
|
11
|
-
|
|
25
|
+
if (!isTTY) {
|
|
26
|
+
if (text) {
|
|
27
|
+
stream.write(`- NgDoc: ${text}\n`);
|
|
28
|
+
}
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (interval) {
|
|
32
|
+
clearInterval(interval);
|
|
33
|
+
interval = undefined;
|
|
34
|
+
(0, readline_1.clearLine)(stream, 0);
|
|
35
|
+
(0, readline_1.cursorTo)(stream, 0);
|
|
36
|
+
}
|
|
12
37
|
if (text) {
|
|
13
|
-
|
|
14
|
-
|
|
38
|
+
message = `NgDoc: ${text}`;
|
|
39
|
+
render();
|
|
40
|
+
// Do not keep the process alive only because of the spinner
|
|
41
|
+
interval = setInterval(render, 80).unref();
|
|
15
42
|
}
|
|
16
43
|
}
|
|
17
44
|
//# sourceMappingURL=print.js.map
|
package/helpers/print.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"print.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/print.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"print.js","sourceRo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B,CAAC;IAED,IAAI,IAAI,EAAE,CAAC;QACT,OAAO,GAAG,UAAU,IAAI,EAAE,CAAC;QAC3B,MAAM,EAAE,CAAC;QACT,4DAA4D;QAC5D,QAAQ,GAAG,WAAW,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;IAC7C,CAAC;AACH,CAAC"}
|
|
@@ -4,4 +4,4 @@ import { NgDocSnippet } from '../interfaces';
|
|
|
4
4
|
* @param code - code to process
|
|
5
5
|
* @param basePath - base path to file
|
|
6
6
|
*/
|
|
7
|
-
export declare function processSnippets(code: string, basePath?: string): NgDocSnippet[];
|
|
7
|
+
export declare function processSnippets(code: string, basePath?: string, configDirectory?: string): NgDocSnippet[];
|
|
@@ -16,7 +16,7 @@ const snippet = (id) => id
|
|
|
16
16
|
* @param code - code to process
|
|
17
17
|
* @param basePath - base path to file
|
|
18
18
|
*/
|
|
19
|
-
function processSnippets(code, basePath) {
|
|
19
|
+
function processSnippets(code, basePath, configDirectory) {
|
|
20
20
|
const result = [];
|
|
21
21
|
const endings = new Set();
|
|
22
22
|
const startRegexp = snippet();
|
|
@@ -36,7 +36,7 @@ function processSnippets(code, basePath) {
|
|
|
36
36
|
lang: language,
|
|
37
37
|
icon,
|
|
38
38
|
opened,
|
|
39
|
-
code: (0, format_code_1.formatCode)(removeSnippets(snippetCode), (0, get_code_type_from_lang_1.getCodeTypeFromLang)(language)).trim(),
|
|
39
|
+
code: (0, format_code_1.formatCode)(removeSnippets(snippetCode), (0, get_code_type_from_lang_1.getCodeTypeFromLang)(language), configDirectory).trim(),
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -58,7 +58,7 @@ function processSnippets(code, basePath) {
|
|
|
58
58
|
lang: language,
|
|
59
59
|
icon,
|
|
60
60
|
opened,
|
|
61
|
-
code: (0, format_code_1.formatCode)(removeSnippets(snippetCode), (0, get_code_type_from_lang_1.getCodeTypeFromLang)(language)).trim(),
|
|
61
|
+
code: (0, format_code_1.formatCode)(removeSnippets(snippetCode), (0, get_code_type_from_lang_1.getCodeTypeFromLang)(language), configDirectory).trim(),
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-snippets.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/process-snippets.ts"],"names":[],"mappings":";;AA2BA,
|
|
1
|
+
{"version":3,"file":"process-snippets.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/process-snippets.ts"],"names":[],"mappings":";;AA2BA,0CA0EC;;AArGD,uCAA4C;AAC5C,+CAAyB;AACzB,wDAAwB;AAGxB,4DAAwD;AACxD,+CAA2C;AAC3C,uEAAgE;AAEhE,MAAM,OAAO,GAAG,CAAC,EAAkB,EAAE,EAAE,CACrC,EAAE;IACA,CAAC,CAAC,IAAI,MAAM,CACR,iDAAiD,IAAA,mBAAY,EAC3D,EAAE,CACH,yCAAyC,EAC1C,IAAI,CACL;IACH,CAAC,CAAC,IAAI,MAAM,CACR,sFAAsF,EACtF,IAAI,CACL,CAAC;AAER;;;;GAIG;AACH,SAAgB,eAAe,CAC7B,IAAY,EACZ,QAAiB,EACjB,eAAwB;IAExB,MAAM,MAAM,GAAmB,EAAE,CAAC;IAClC,MAAM,OAAO,GAAgB,IAAI,GAAG,EAAE,CAAC;IACvC,MAAM,WAAW,GAAG,OAAO,EAAE,CAAC;IAC9B,IAAI,KAA6B,CAAC;IAElC,0CAA0C;IAC1C,OAAO,CAAC,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;QACxC,MAAM,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;QAE1C,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,oBAAoB,CAAC,IAAI,QAAQ,EAAE,CAAC;YACzD,MAAM,MAAM,GAAG,IAAA,4BAAY,EAAC,KAAK,CAAC,CAAC,CAAC,C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D,MAAM,QAAQ,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAEtC,IAAI,QAAQ,EAAE,CAAC;oBACb,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;oBAE5B,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;oBAC9E,MAAM,QAAQ,GAAG,IAAI,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;oBAEzE,IAAI,WAAW,EAAE,CAAC;wBAChB,MAAM,CAAC,IAAI,CAAC;4BACV,KAAK;4BACL,IAAI,EAAE,QAAQ;4BACd,IAAI;4BACJ,MAAM;4BACN,IAAI,EAAE,IAAA,wBAAU,EACd,cAAc,CAAC,WAAW,CAAC,EAC3B,IAAA,6CAAmB,EAAC,QAAQ,CAAC,EAC7B,eAAe,CAChB,CAAC,IAAI,EAAE;yBACT,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;GAGG;AACH,SAAS,cAAc,CAAC,IAAY;IAClC,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC;AACrC,CAAC"}
|
|
@@ -5,4 +5,4 @@ import { NgDocAsset } from '../interfaces';
|
|
|
5
5
|
* @param asset - Asset
|
|
6
6
|
* @param inlineStylesType - Inline styles type
|
|
7
7
|
*/
|
|
8
|
-
export declare function snippetsFromAsset(asset: NgDocAsset, inlineStylesType: NgDocStyleType): NgDocAsset[];
|
|
8
|
+
export declare function snippetsFromAsset(asset: NgDocAsset, inlineStylesType: NgDocStyleType, configDirectory?: string): NgDocAsset[];
|
|
@@ -11,8 +11,8 @@ const process_snippets_1 = require("./process-snippets");
|
|
|
11
11
|
* @param asset - Asset
|
|
12
12
|
* @param inlineStylesType - Inline styles type
|
|
13
13
|
*/
|
|
14
|
-
function snippetsFromAsset(asset, inlineStylesType) {
|
|
15
|
-
const snippets = (0, process_legacy_snippets_1.processLegacySnippets)(asset.code).concat((0, process_snippets_1.processSnippets)(asset.code, path_1.default.dirname(asset.filePath)));
|
|
14
|
+
function snippetsFromAsset(asset, inlineStylesType, configDirectory) {
|
|
15
|
+
const snippets = (0, process_legacy_snippets_1.processLegacySnippets)(asset.code).concat((0, process_snippets_1.processSnippets)(asset.code, path_1.default.dirname(asset.filePath), configDirectory));
|
|
16
16
|
const codeType = (0, code_type_from_ext_1.codeTypeFromExt)(asset.filePath);
|
|
17
17
|
const isStylesFile = ['CSS', 'SCSS', 'LESS', 'SASS'].includes(codeType.toUpperCase());
|
|
18
18
|
return snippets.map(({ code, title, lang, icon, opened }, i) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snippets-from-asset.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/snippets-from-asset.ts"],"names":[],"mappings":";;AAaA,
|
|
1
|
+
{"version":3,"file":"snippets-from-asset.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/snippets-from-asset.ts"],"names":[],"mappings":";;AAaA,8CAuBC;;AAnCD,wDAAwB;AAGxB,6DAAuD;AACvD,uEAAkE;AAClE,yDAAqD;AAErD;;;;GAIG;AACH,SAAgB,iBAAiB,CAC/B,KAAiB,EACjB,gBAAgC,EAChC,eAAwB;IAExB,MAAM,QAAQ,GAAG,IAAA,+CAAqB,EAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CACvD,IAAA,kCAAe,EAAC,KAAK,CAAC,IAAI,EAAE,cAAI,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,eAAe,CAAC,CAC3E,CAAC;IACF,MAAM,QAAQ,GAAG,IAAA,oCAAe,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACjD,MAAM,YAAY,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC;IAEtF,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,EAAE;QAC7D,MAAM,QAAQ,GAAG,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAEzF,OAAO;YACL,GAAG,KAAK;YACR,IAAI;YACJ,KAAK,EAAE,KAAK,IAAI,YAAY,CAAC,GAAG,CAAC,EAAE;YACnC,IAAI;YACJ,MAAM;YACN,IAAI,EAAE,QAAQ;SACf,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sortNavigationEntries = sortNavigationEntries;
|
|
4
4
|
const is_present_1 = require("@ng-doc/core/helpers/is-present");
|
|
5
|
+
const navigation_title_order_1 = require("./navigation-title-order");
|
|
5
6
|
/**
|
|
6
7
|
*
|
|
7
8
|
* @param entries
|
|
@@ -17,7 +18,7 @@ function sortNavigationEntries(entries) {
|
|
|
17
18
|
if ((0, is_present_1.isPresent)(b.item.order)) {
|
|
18
19
|
return 1;
|
|
19
20
|
}
|
|
20
|
-
return a.item.title
|
|
21
|
+
return (0, navigation_title_order_1.compareNavigationTitles)(a.item.title, b.item.title);
|
|
21
22
|
});
|
|
22
23
|
}
|
|
23
24
|
//# sourceMappingURL=sort-navigation-entities.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort-navigation-entities.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/sort-navigation-entities.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"sort-navigation-entities.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/sort-navigation-entities.ts"],"names":[],"mappings":";;AASA,sDAcC;AAtBD,gEAA4D;AAE5D,qEAAmE;AAEnE;;;GAGG;AACH,SAAgB,qBAAqB,CAAC,OAAwB;IAC5D,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAgB,EAAE,CAAgB,EAAE,EAAE;QACzD,IAAI,IAAA,sBAAS,EAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAA,sBAAS,EAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YACvD,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;QACrC,CAAC;QACD,IAAI,IAAA,sBAAS,EAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAC5B,OAAO,CAAC,CAAC,CAAC;QACZ,CAAC;QACD,IAAI,IAAA,sBAAS,EAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAC5B,OAAO,CAAC,CAAC;QACX,CAAC;QAED,OAAO,IAAA,gDAAuB,EAAC,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.stableGeneratedId = stableGeneratedId;
|
|
4
|
+
const node_crypto_1 = require("node:crypto");
|
|
5
|
+
/** Stable identifier for a generated role; tuple encoding avoids separator collisions. */
|
|
6
|
+
function stableGeneratedId(project, entity, role) {
|
|
7
|
+
return (0, node_crypto_1.createHash)('sha256')
|
|
8
|
+
.update(JSON.stringify([project, entity, role]))
|
|
9
|
+
.digest('hex')
|
|
10
|
+
.slice(0, 24);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=stable-generated-id.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stable-generated-id.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/stable-generated-id.ts"],"names":[],"mappings":";;AAGA,8CAKC;AARD,6CAAyC;AAEzC,0FAA0F;AAC1F,SAAgB,iBAAiB,CAAC,OAAe,EAAE,MAAc,EAAE,IAAY;IAC7E,OAAO,IAAA,wBAAU,EAAC,QAAQ,CAAC;SACxB,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;SAC/C,MAAM,CAAC,KAAK,CAAC;SACb,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compares two strings in NgDoc's fixed text order. Use it instead of `localeCompare` wherever the
|
|
3
|
+
* order can reach generated output.
|
|
4
|
+
* @param left - A string.
|
|
5
|
+
* @param right - Another string.
|
|
6
|
+
* @returns A negative number, zero or a positive number, as `localeCompare` does.
|
|
7
|
+
*/
|
|
8
|
+
export declare function compareText(left: string, right: string): number;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.compareText = compareText;
|
|
4
|
+
/**
|
|
5
|
+
* The one collator that orders names, titles, keys and paths wherever their order reaches generated
|
|
6
|
+
* output, in both engines: navigation, API members, keywords, discovery entries, the output
|
|
7
|
+
* manifest and the diagnostics that list them.
|
|
8
|
+
*
|
|
9
|
+
* `localeCompare` without a locale uses the process's default locale (`LANG`, `LC_ALL`), so the
|
|
10
|
+
* same docs tree produced different output on machines with different locales (in Swedish `Ä`
|
|
11
|
+
* sorts after `Z`). A fixed locale makes the order the same everywhere. English with the default
|
|
12
|
+
* options is what `localeCompare` gave on an English machine, and on a C or POSIX one, which V8
|
|
13
|
+
* maps to `en-US`, so today's output keeps its order.
|
|
14
|
+
*/
|
|
15
|
+
const TEXT_COLLATOR = new Intl.Collator('en');
|
|
16
|
+
/**
|
|
17
|
+
* Compares two strings in NgDoc's fixed text order. Use it instead of `localeCompare` wherever the
|
|
18
|
+
* order can reach generated output.
|
|
19
|
+
* @param left - A string.
|
|
20
|
+
* @param right - Another string.
|
|
21
|
+
* @returns A negative number, zero or a positive number, as `localeCompare` does.
|
|
22
|
+
*/
|
|
23
|
+
function compareText(left, right) {
|
|
24
|
+
return TEXT_COLLATOR.compare(left, right);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=text-order.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-order.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/text-order.ts"],"names":[],"mappings":";;AAoBA,kCAEC;AAtBD;;;;;;;;;;GAUG;AACH,MAAM,aAAa,GAAG,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAE9C;;;;;;GAMG;AACH,SAAgB,WAAW,CAAC,IAAY,EAAE,KAAa;IACrD,OAAO,aAAa,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Escapes text for the body of a template literal, so the literal evaluates to the text itself.
|
|
2
3
|
*
|
|
3
|
-
*
|
|
4
|
+
* The backslash is escaped first: otherwise `\d` would evaluate to `d`, `\n` to a line break and
|
|
5
|
+
* `\203A` would fail to compile (octal escapes are not allowed in template literals), and the
|
|
6
|
+
* escapes added for `` ` `` and `${` must not be escaped again.
|
|
7
|
+
* @param content - The text to embed.
|
|
4
8
|
*/
|
|
5
9
|
export declare function toTemplateString(content: string): string;
|
|
@@ -2,12 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.toTemplateString = toTemplateString;
|
|
4
4
|
/**
|
|
5
|
+
* Escapes text for the body of a template literal, so the literal evaluates to the text itself.
|
|
5
6
|
*
|
|
6
|
-
*
|
|
7
|
+
* The backslash is escaped first: otherwise `\d` would evaluate to `d`, `\n` to a line break and
|
|
8
|
+
* `\203A` would fail to compile (octal escapes are not allowed in template literals), and the
|
|
9
|
+
* escapes added for `` ` `` and `${` must not be escaped again.
|
|
10
|
+
* @param content - The text to embed.
|
|
7
11
|
*/
|
|
8
12
|
function toTemplateString(content) {
|
|
9
13
|
return (content
|
|
10
|
-
?.replace(
|
|
14
|
+
?.replace(/\\/g, '\\\\')
|
|
15
|
+
.replace(/`/g, '\\`')
|
|
11
16
|
.replace(/\${/g, '\\${')
|
|
12
17
|
.replace(/{/g, '\\{')
|
|
13
18
|
.replace(/}/g, '\\}') ?? '');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-template-string.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/to-template-string.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"to-template-string.js","sourceRoot":"","sources":["../../../../libs/builder/helpers/to-template-string.ts"],"names":[],"mappings":";;AAQA,4CASC;AAjBD;;;;;;;GAOG;AACH,SAAgB,gBAAgB,CAAC,OAAe;IAC9C,OAAO,CACL,OAAO;QACL,EAAE,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC;SACvB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC;SACvB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAC9B,CAAC;AACJ,CAAC"}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getInheritedParent = getInheritedParent;
|
|
4
4
|
const ts_morph_1 = require("ts-morph");
|
|
5
|
-
const
|
|
5
|
+
const get_member_parent_1 = require("./get-member-parent");
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
8
8
|
* @param member
|
|
9
9
|
* @param currentNode
|
|
10
10
|
*/
|
|
11
11
|
function getInheritedParent(member, currentNode) {
|
|
12
|
-
const memberParent = (0,
|
|
12
|
+
const memberParent = (0, get_member_parent_1.getMemberParent)(member);
|
|
13
13
|
if (ts_morph_1.Node.isConstructorDeclaration(currentNode)) {
|
|
14
14
|
currentNode = currentNode.getParent();
|
|
15
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-inherited-parent.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/member/get-inherited-parent.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"get-inherited-parent.js","sourceRoot":"","sources":["../../../../../../libs/builder/helpers/typescript/member/get-inherited-parent.ts"],"names":[],"mappings":";;AAUA,gDAQC;AAlBD,uCAAgC;AAEhC,2DAAsD;AAGtD;;;;GAIG;AACH,SAAgB,kBAAkB,CAAC,MAAkB,EAAE,WAAiB;IACtE,MAAM,YAAY,GAAS,IAAA,mCAAe,EAAC,MAAM,CAAC,CAAC;IAEnD,IAAI,eAAI,CAAC,wBAAwB,CAAC,WAAW,CAAC,EAAE,CAAC;QAC/C,WAAW,GAAG,WAAW,CAAC,SAAS,EAAE,CAAC;IACxC,CAAC;IAED,OAAO,YAAY,KAAK,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC;AACjE,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { NameableNodeSpecific } from 'ts-morph';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* Sorts nodes by name in the shared text order, so API members are listed in the same order
|
|
4
|
+
* whatever the process locale.
|
|
5
|
+
* @param nodes - The nodes, sorted in place.
|
|
6
|
+
* @returns The same array.
|
|
5
7
|
*/
|
|
6
8
|
export declare function sortByNodesName<T extends NameableNodeSpecific>(nodes: T[]): T[];
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sortByNodesName = sortByNodesName;
|
|
4
|
+
const text_order_1 = require("../../text-order");
|
|
4
5
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
6
|
+
* Sorts nodes by name in the shared text order, so API members are listed in the same order
|
|
7
|
+
* whatever the process locale.
|
|
8
|
+
* @param nodes - The nodes, sorted in place.
|
|
9
|
+
* @returns The same array.
|
|
7
10
|
*/
|
|
8
11
|
function sortByNodesName(nodes) {
|
|
9
|
-
return nodes.sort((a, b) => (a.getName() ?? ''
|
|
12
|
+
return nodes.sort((a, b) => (0, text_order_1.compareText)(a.getName() ?? '', b.getName() ?? ''));
|
|
10
13
|
}
|
|
11
14
|
//# sourceMappingURL=sort-by-nodes-name.js.map
|