@ng-doc/app 15.0.0-beta.32 → 15.0.0-beta.34
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/assets/themes/ng-doc-dark-purple.css +112 -0
- package/assets/themes/ng-doc-night.css +1 -0
- package/classes/index.d.ts +0 -1
- package/classes/root-page/root-page.d.ts +24 -5
- package/classes/search-engine/search-engine.d.ts +1 -1
- package/components/api-list/api-list.component.d.ts +3 -4
- package/components/api-list/api-list.module.d.ts +1 -1
- package/components/demo/demo.component.d.ts +5 -4
- package/components/demo-displayer/demo-displayer.component.d.ts +1 -1
- package/components/demo-displayer/demo-displayer.module.d.ts +2 -1
- package/components/index.d.ts +1 -0
- package/components/navbar/navbar.component.d.ts +18 -0
- package/components/navbar/navbar.module.d.ts +4 -2
- package/components/page/page.component.d.ts +9 -1
- package/components/page/page.module.d.ts +8 -6
- package/components/playground/base-playground.d.ts +15 -0
- package/components/playground/index.d.ts +5 -0
- package/components/playground/playground-demo/playground-demo.component.d.ts +33 -0
- package/components/playground/playground-form.d.ts +6 -0
- package/components/playground/playground-properties/playground-properties.component.d.ts +22 -0
- package/components/{playground-property → playground/playground-property}/playground-property.component.d.ts +2 -2
- package/components/playground/playground.component.d.ts +6 -5
- package/components/playground/playground.module.d.ts +9 -6
- package/components/root/root.component.d.ts +36 -2
- package/components/root/root.module.d.ts +2 -2
- package/components/search/search.component.d.ts +1 -1
- package/components/search/search.module.d.ts +1 -1
- package/components/search-result/search-result.component.d.ts +1 -1
- package/components/sidebar/sidebar-category/sidebar-category.component.d.ts +2 -2
- package/components/sidebar/sidebar.module.d.ts +9 -4
- package/components/theme-toggle/theme-toggle.component.d.ts +2 -1
- package/constants/themes.d.ts +63 -0
- package/esm2020/classes/index.mjs +1 -2
- package/esm2020/classes/root-page/root-page.mjs +4 -1
- package/esm2020/classes/search-engine/search-engine.mjs +9 -10
- package/esm2020/components/api-list/api-list.component.mjs +18 -8
- package/esm2020/components/api-list/api-list.module.mjs +7 -4
- package/esm2020/components/code/code.component.mjs +4 -4
- package/esm2020/components/demo/demo.component.mjs +8 -7
- package/esm2020/components/demo-displayer/demo-displayer.component.mjs +6 -3
- package/esm2020/components/demo-displayer/demo-displayer.module.mjs +7 -3
- package/esm2020/components/index.mjs +2 -1
- package/esm2020/components/link/link.component.mjs +1 -1
- package/esm2020/components/navbar/navbar.component.mjs +24 -4
- package/esm2020/components/navbar/navbar.module.mjs +4 -5
- package/esm2020/components/page/page.component.mjs +35 -12
- package/esm2020/components/page/page.module.mjs +46 -7
- package/esm2020/components/playground/base-playground.mjs +18 -0
- package/esm2020/components/playground/index.mjs +6 -1
- package/esm2020/components/playground/playground-demo/playground-demo.component.mjs +117 -0
- package/esm2020/components/playground/playground-form.mjs +2 -0
- package/esm2020/components/playground/playground-properties/playground-properties.component.mjs +42 -0
- package/esm2020/components/playground/playground-property/playground-property.component.mjs +89 -0
- package/esm2020/components/playground/playground.component.mjs +15 -13
- package/esm2020/components/playground/playground.module.mjs +57 -14
- package/esm2020/components/root/root.component.mjs +54 -7
- package/esm2020/components/root/root.module.mjs +6 -6
- package/esm2020/components/search/search.component.mjs +3 -3
- package/esm2020/components/search/search.module.mjs +10 -4
- package/esm2020/components/search-result/search-result.component.mjs +1 -1
- package/esm2020/components/sidebar/sidebar-category/sidebar-category.component.mjs +10 -6
- package/esm2020/components/sidebar/sidebar-item/sidebar-item.component.mjs +5 -4
- package/esm2020/components/sidebar/sidebar.component.mjs +4 -16
- package/esm2020/components/sidebar/sidebar.module.mjs +7 -2
- package/esm2020/components/theme-toggle/theme-toggle.component.mjs +21 -14
- package/esm2020/components/toc/toc-element/toc-element.component.mjs +3 -3
- package/esm2020/components/toc/toc.component.mjs +4 -4
- package/esm2020/constants/themes.mjs +67 -1
- package/esm2020/directives/code-highlighter/code-highlighter.directive.mjs +1 -19
- package/esm2020/directives/route-active/route-active.directive.mjs +2 -2
- package/esm2020/helpers/generate-toc/generate-toc.mjs +10 -14
- package/esm2020/helpers/index.mjs +2 -3
- package/esm2020/helpers/is-playground-property/is-playground-property.mjs +2 -2
- package/esm2020/helpers/provide-playground-demo/index.mjs +2 -0
- package/esm2020/helpers/provide-playground-demo/ng-doc-app-helpers-provide-playground-demo.mjs +5 -0
- package/esm2020/helpers/provide-playground-demo/provide-playground-demo.mjs +29 -0
- package/esm2020/helpers/provide-type-control/provide-type-control.mjs +1 -1
- package/esm2020/index.mjs +2 -1
- package/esm2020/interfaces/context.mjs +1 -1
- package/esm2020/interfaces/demo-assets.mjs +1 -1
- package/esm2020/interfaces/index.mjs +1 -2
- package/esm2020/interfaces/navigation.mjs +1 -1
- package/esm2020/interfaces/provided-type-control.mjs +1 -1
- package/esm2020/interfaces/type-control-provider-options.mjs +1 -1
- package/esm2020/modules/root/ng-doc.module.mjs +11 -11
- package/esm2020/pipes/extract-value/extract-value.pipe.mjs +2 -2
- package/esm2020/processors/demo-processor/demo-processor.directive.mjs +2 -3
- package/esm2020/processors/html-processor/html-processor.directive.mjs +2 -3
- package/esm2020/processors/tooltip-processor/tooltip-wrapper.component.mjs +3 -3
- package/esm2020/services/sidebar/sidebar.service.mjs +49 -8
- package/esm2020/services/theme/theme.service.mjs +2 -2
- package/esm2020/tokens/api-list.mjs +1 -1
- package/esm2020/type-controls/boolean-control/boolean-control.module.mjs +4 -3
- package/esm2020/type-controls/number-control/number-control.component.mjs +2 -2
- package/esm2020/type-controls/number-control/number-control.module.mjs +4 -3
- package/esm2020/type-controls/string-control/string-control.component.mjs +2 -2
- package/esm2020/type-controls/string-control/string-control.module.mjs +4 -3
- package/esm2020/type-controls/type-alias-control/type-alias-control.component.mjs +2 -2
- package/esm2020/type-controls/type-alias-control/type-alias-control.module.mjs +4 -3
- package/esm2020/types/index.mjs +1 -2
- package/fesm2015/ng-doc-app-classes-root-page.mjs +3 -0
- package/fesm2015/ng-doc-app-classes-root-page.mjs.map +1 -1
- package/fesm2015/ng-doc-app-classes-search-engine.mjs +10 -11
- package/fesm2015/ng-doc-app-classes-search-engine.mjs.map +1 -1
- package/fesm2015/ng-doc-app-classes.mjs +0 -1
- package/fesm2015/ng-doc-app-classes.mjs.map +1 -1
- package/fesm2015/ng-doc-app-components-api-list.mjs +23 -10
- package/fesm2015/ng-doc-app-components-api-list.mjs.map +1 -1
- package/fesm2015/ng-doc-app-components-code.mjs +3 -3
- package/fesm2015/ng-doc-app-components-code.mjs.map +1 -1
- package/fesm2015/ng-doc-app-components-demo-displayer.mjs +11 -4
- package/fesm2015/ng-doc-app-components-demo-displayer.mjs.map +1 -1
- package/fesm2015/ng-doc-app-components-demo.mjs +8 -6
- package/fesm2015/ng-doc-app-components-demo.mjs.map +1 -1
- package/fesm2015/ng-doc-app-components-link.mjs.map +1 -1
- package/fesm2015/ng-doc-app-components-navbar.mjs +27 -7
- package/fesm2015/ng-doc-app-components-navbar.mjs.map +1 -1
- package/fesm2015/ng-doc-app-components-page.mjs +83 -18
- package/fesm2015/ng-doc-app-components-page.mjs.map +1 -1
- package/fesm2015/ng-doc-app-components-playground.mjs +324 -31
- package/fesm2015/ng-doc-app-components-playground.mjs.map +1 -1
- package/fesm2015/ng-doc-app-components-root.mjs +58 -10
- package/fesm2015/ng-doc-app-components-root.mjs.map +1 -1
- package/fesm2015/ng-doc-app-components-search-result.mjs.map +1 -1
- package/fesm2015/ng-doc-app-components-search.mjs +11 -5
- package/fesm2015/ng-doc-app-components-search.mjs.map +1 -1
- package/fesm2015/ng-doc-app-components-sidebar.mjs +20 -23
- package/fesm2015/ng-doc-app-components-sidebar.mjs.map +1 -1
- package/fesm2015/ng-doc-app-components-theme-toggle.mjs +21 -13
- package/fesm2015/ng-doc-app-components-theme-toggle.mjs.map +1 -1
- package/fesm2015/ng-doc-app-components-toc.mjs +5 -5
- package/fesm2015/ng-doc-app-components-toc.mjs.map +1 -1
- package/fesm2015/ng-doc-app-components.mjs +1 -0
- package/fesm2015/ng-doc-app-components.mjs.map +1 -1
- package/fesm2015/ng-doc-app-constants.mjs +67 -1
- package/fesm2015/ng-doc-app-constants.mjs.map +1 -1
- package/fesm2015/ng-doc-app-directives-code-highlighter.mjs +0 -18
- package/fesm2015/ng-doc-app-directives-code-highlighter.mjs.map +1 -1
- package/fesm2015/ng-doc-app-directives-route-active.mjs +1 -1
- package/fesm2015/ng-doc-app-directives-route-active.mjs.map +1 -1
- package/fesm2015/ng-doc-app-helpers-generate-toc.mjs +10 -13
- package/fesm2015/ng-doc-app-helpers-generate-toc.mjs.map +1 -1
- package/fesm2015/ng-doc-app-helpers-is-playground-property.mjs +1 -1
- package/fesm2015/ng-doc-app-helpers-is-playground-property.mjs.map +1 -1
- package/fesm2015/ng-doc-app-helpers-provide-playground-demo.mjs +37 -0
- package/fesm2015/ng-doc-app-helpers-provide-playground-demo.mjs.map +1 -0
- package/fesm2015/ng-doc-app-helpers-provide-type-control.mjs.map +1 -1
- package/fesm2015/ng-doc-app-helpers.mjs +1 -2
- package/fesm2015/ng-doc-app-helpers.mjs.map +1 -1
- package/fesm2015/ng-doc-app-modules-root.mjs +10 -10
- package/fesm2015/ng-doc-app-modules-root.mjs.map +1 -1
- package/fesm2015/ng-doc-app-pipes-extract-value.mjs +1 -1
- package/fesm2015/ng-doc-app-pipes-extract-value.mjs.map +1 -1
- package/fesm2015/ng-doc-app-processors-demo-processor.mjs +2 -2
- package/fesm2015/ng-doc-app-processors-demo-processor.mjs.map +1 -1
- package/fesm2015/ng-doc-app-processors-html-processor.mjs +1 -2
- package/fesm2015/ng-doc-app-processors-html-processor.mjs.map +1 -1
- package/fesm2015/ng-doc-app-processors-tooltip-processor.mjs +2 -2
- package/fesm2015/ng-doc-app-processors-tooltip-processor.mjs.map +1 -1
- package/fesm2015/ng-doc-app-services-sidebar.mjs +50 -7
- package/fesm2015/ng-doc-app-services-sidebar.mjs.map +1 -1
- package/fesm2015/ng-doc-app-services-theme.mjs +1 -1
- package/fesm2015/ng-doc-app-services-theme.mjs.map +1 -1
- package/fesm2015/ng-doc-app-tokens.mjs.map +1 -1
- package/fesm2015/ng-doc-app-type-controls-boolean-control.mjs +3 -2
- package/fesm2015/ng-doc-app-type-controls-boolean-control.mjs.map +1 -1
- package/fesm2015/ng-doc-app-type-controls-number-control.mjs +4 -3
- package/fesm2015/ng-doc-app-type-controls-number-control.mjs.map +1 -1
- package/fesm2015/ng-doc-app-type-controls-string-control.mjs +4 -3
- package/fesm2015/ng-doc-app-type-controls-string-control.mjs.map +1 -1
- package/fesm2015/ng-doc-app-type-controls-type-alias-control.mjs +4 -3
- package/fesm2015/ng-doc-app-type-controls-type-alias-control.mjs.map +1 -1
- package/fesm2015/ng-doc-app.mjs +1 -0
- package/fesm2015/ng-doc-app.mjs.map +1 -1
- package/fesm2020/ng-doc-app-classes-root-page.mjs +3 -0
- package/fesm2020/ng-doc-app-classes-root-page.mjs.map +1 -1
- package/fesm2020/ng-doc-app-classes-search-engine.mjs +10 -11
- package/fesm2020/ng-doc-app-classes-search-engine.mjs.map +1 -1
- package/fesm2020/ng-doc-app-classes.mjs +0 -1
- package/fesm2020/ng-doc-app-classes.mjs.map +1 -1
- package/fesm2020/ng-doc-app-components-api-list.mjs +23 -10
- package/fesm2020/ng-doc-app-components-api-list.mjs.map +1 -1
- package/fesm2020/ng-doc-app-components-code.mjs +3 -3
- package/fesm2020/ng-doc-app-components-code.mjs.map +1 -1
- package/fesm2020/ng-doc-app-components-demo-displayer.mjs +11 -4
- package/fesm2020/ng-doc-app-components-demo-displayer.mjs.map +1 -1
- package/fesm2020/ng-doc-app-components-demo.mjs +7 -6
- package/fesm2020/ng-doc-app-components-demo.mjs.map +1 -1
- package/fesm2020/ng-doc-app-components-link.mjs.map +1 -1
- package/fesm2020/ng-doc-app-components-navbar.mjs +27 -7
- package/fesm2020/ng-doc-app-components-navbar.mjs.map +1 -1
- package/fesm2020/ng-doc-app-components-page.mjs +79 -18
- package/fesm2020/ng-doc-app-components-page.mjs.map +1 -1
- package/fesm2020/ng-doc-app-components-playground.mjs +315 -31
- package/fesm2020/ng-doc-app-components-playground.mjs.map +1 -1
- package/fesm2020/ng-doc-app-components-root.mjs +58 -10
- package/fesm2020/ng-doc-app-components-root.mjs.map +1 -1
- package/fesm2020/ng-doc-app-components-search-result.mjs.map +1 -1
- package/fesm2020/ng-doc-app-components-search.mjs +11 -5
- package/fesm2020/ng-doc-app-components-search.mjs.map +1 -1
- package/fesm2020/ng-doc-app-components-sidebar.mjs +20 -23
- package/fesm2020/ng-doc-app-components-sidebar.mjs.map +1 -1
- package/fesm2020/ng-doc-app-components-theme-toggle.mjs +20 -13
- package/fesm2020/ng-doc-app-components-theme-toggle.mjs.map +1 -1
- package/fesm2020/ng-doc-app-components-toc.mjs +5 -5
- package/fesm2020/ng-doc-app-components-toc.mjs.map +1 -1
- package/fesm2020/ng-doc-app-components.mjs +1 -0
- package/fesm2020/ng-doc-app-components.mjs.map +1 -1
- package/fesm2020/ng-doc-app-constants.mjs +67 -1
- package/fesm2020/ng-doc-app-constants.mjs.map +1 -1
- package/fesm2020/ng-doc-app-directives-code-highlighter.mjs +0 -18
- package/fesm2020/ng-doc-app-directives-code-highlighter.mjs.map +1 -1
- package/fesm2020/ng-doc-app-directives-route-active.mjs +1 -1
- package/fesm2020/ng-doc-app-directives-route-active.mjs.map +1 -1
- package/fesm2020/ng-doc-app-helpers-generate-toc.mjs +10 -13
- package/fesm2020/ng-doc-app-helpers-generate-toc.mjs.map +1 -1
- package/fesm2020/ng-doc-app-helpers-is-playground-property.mjs +1 -1
- package/fesm2020/ng-doc-app-helpers-is-playground-property.mjs.map +1 -1
- package/fesm2020/ng-doc-app-helpers-provide-playground-demo.mjs +36 -0
- package/fesm2020/ng-doc-app-helpers-provide-playground-demo.mjs.map +1 -0
- package/fesm2020/ng-doc-app-helpers-provide-type-control.mjs.map +1 -1
- package/fesm2020/ng-doc-app-helpers.mjs +1 -2
- package/fesm2020/ng-doc-app-helpers.mjs.map +1 -1
- package/fesm2020/ng-doc-app-modules-root.mjs +10 -10
- package/fesm2020/ng-doc-app-modules-root.mjs.map +1 -1
- package/fesm2020/ng-doc-app-pipes-extract-value.mjs +1 -1
- package/fesm2020/ng-doc-app-pipes-extract-value.mjs.map +1 -1
- package/fesm2020/ng-doc-app-processors-demo-processor.mjs +1 -2
- package/fesm2020/ng-doc-app-processors-demo-processor.mjs.map +1 -1
- package/fesm2020/ng-doc-app-processors-html-processor.mjs +1 -2
- package/fesm2020/ng-doc-app-processors-html-processor.mjs.map +1 -1
- package/fesm2020/ng-doc-app-processors-tooltip-processor.mjs +2 -2
- package/fesm2020/ng-doc-app-processors-tooltip-processor.mjs.map +1 -1
- package/fesm2020/ng-doc-app-services-sidebar.mjs +48 -7
- package/fesm2020/ng-doc-app-services-sidebar.mjs.map +1 -1
- package/fesm2020/ng-doc-app-services-theme.mjs +1 -1
- package/fesm2020/ng-doc-app-services-theme.mjs.map +1 -1
- package/fesm2020/ng-doc-app-tokens.mjs.map +1 -1
- package/fesm2020/ng-doc-app-type-controls-boolean-control.mjs +3 -2
- package/fesm2020/ng-doc-app-type-controls-boolean-control.mjs.map +1 -1
- package/fesm2020/ng-doc-app-type-controls-number-control.mjs +4 -3
- package/fesm2020/ng-doc-app-type-controls-number-control.mjs.map +1 -1
- package/fesm2020/ng-doc-app-type-controls-string-control.mjs +4 -3
- package/fesm2020/ng-doc-app-type-controls-string-control.mjs.map +1 -1
- package/fesm2020/ng-doc-app-type-controls-type-alias-control.mjs +4 -3
- package/fesm2020/ng-doc-app-type-controls-type-alias-control.mjs.map +1 -1
- package/fesm2020/ng-doc-app.mjs +1 -0
- package/fesm2020/ng-doc-app.mjs.map +1 -1
- package/helpers/generate-toc/generate-toc.d.ts +2 -1
- package/helpers/index.d.ts +1 -2
- package/helpers/is-playground-property/is-playground-property.d.ts +1 -1
- package/helpers/provide-playground-demo/index.d.ts +1 -0
- package/helpers/provide-playground-demo/provide-playground-demo.d.ts +18 -0
- package/helpers/provide-type-control/provide-type-control.d.ts +1 -1
- package/index.d.ts +1 -0
- package/interfaces/context.d.ts +6 -0
- package/interfaces/demo-assets.d.ts +1 -1
- package/interfaces/index.d.ts +0 -1
- package/interfaces/navigation.d.ts +3 -0
- package/interfaces/provided-type-control.d.ts +1 -1
- package/interfaces/type-control-provider-options.d.ts +7 -0
- package/modules/root/ng-doc.module.d.ts +2 -4
- package/package.json +12 -55
- package/pipes/extract-value/extract-value.pipe.d.ts +1 -1
- package/services/sidebar/sidebar.service.d.ts +28 -1
- package/styles/global.css +200 -171
- package/styles/main.css +200 -171
- package/tokens/api-list.d.ts +1 -1
- package/types/index.d.ts +0 -1
- package/classes/html-parser/index.d.ts +0 -1
- package/components/playground-demo/demo/base-demo.component.d.ts +0 -7
- package/components/playground-demo/index.d.ts +0 -2
- package/components/playground-demo/playground-demo.component.d.ts +0 -29
- package/components/playground-demo/playground-demo.module.d.ts +0 -9
- package/components/playground-properties/index.d.ts +0 -2
- package/components/playground-properties/playground-properties.component.d.ts +0 -16
- package/components/playground-properties/playground-properties.module.d.ts +0 -11
- package/components/playground-property/index.d.ts +0 -2
- package/components/playground-property/playground-property.module.d.ts +0 -11
- package/esm2020/classes/html-parser/index.mjs +0 -2
- package/esm2020/classes/html-parser/ng-doc-app-classes-html-parser.mjs +0 -5
- package/esm2020/components/playground-demo/demo/base-demo.component.mjs +0 -3
- package/esm2020/components/playground-demo/index.mjs +0 -3
- package/esm2020/components/playground-demo/ng-doc-app-components-playground-demo.mjs +0 -5
- package/esm2020/components/playground-demo/playground-demo.component.mjs +0 -101
- package/esm2020/components/playground-demo/playground-demo.module.mjs +0 -19
- package/esm2020/components/playground-properties/index.mjs +0 -3
- package/esm2020/components/playground-properties/ng-doc-app-components-playground-properties.mjs +0 -5
- package/esm2020/components/playground-properties/playground-properties.component.mjs +0 -36
- package/esm2020/components/playground-properties/playground-properties.module.mjs +0 -50
- package/esm2020/components/playground-property/index.mjs +0 -3
- package/esm2020/components/playground-property/ng-doc-app-components-playground-property.mjs +0 -5
- package/esm2020/components/playground-property/playground-property.component.mjs +0 -88
- package/esm2020/components/playground-property/playground-property.module.mjs +0 -21
- package/esm2020/helpers/compile-template/compile-template.mjs +0 -116
- package/esm2020/helpers/compile-template/index.mjs +0 -2
- package/esm2020/helpers/compile-template/ng-doc-app-helpers-compile-template.mjs +0 -5
- package/esm2020/helpers/format-html/format-html.mjs +0 -16
- package/esm2020/helpers/format-html/index.mjs +0 -2
- package/esm2020/helpers/format-html/ng-doc-app-helpers-format-html.mjs +0 -5
- package/esm2020/interfaces/playground-form.mjs +0 -2
- package/esm2020/types/header-level.mjs +0 -2
- package/fesm2015/ng-doc-app-classes-html-parser.mjs +0 -8
- package/fesm2015/ng-doc-app-classes-html-parser.mjs.map +0 -1
- package/fesm2015/ng-doc-app-components-playground-demo.mjs +0 -123
- package/fesm2015/ng-doc-app-components-playground-demo.mjs.map +0 -1
- package/fesm2015/ng-doc-app-components-playground-properties.mjs +0 -90
- package/fesm2015/ng-doc-app-components-playground-properties.mjs.map +0 -1
- package/fesm2015/ng-doc-app-components-playground-property.mjs +0 -113
- package/fesm2015/ng-doc-app-components-playground-property.mjs.map +0 -1
- package/fesm2015/ng-doc-app-helpers-compile-template.mjs +0 -122
- package/fesm2015/ng-doc-app-helpers-compile-template.mjs.map +0 -1
- package/fesm2015/ng-doc-app-helpers-format-html.mjs +0 -22
- package/fesm2015/ng-doc-app-helpers-format-html.mjs.map +0 -1
- package/fesm2020/ng-doc-app-classes-html-parser.mjs +0 -8
- package/fesm2020/ng-doc-app-classes-html-parser.mjs.map +0 -1
- package/fesm2020/ng-doc-app-components-playground-demo.mjs +0 -123
- package/fesm2020/ng-doc-app-components-playground-demo.mjs.map +0 -1
- package/fesm2020/ng-doc-app-components-playground-properties.mjs +0 -89
- package/fesm2020/ng-doc-app-components-playground-properties.mjs.map +0 -1
- package/fesm2020/ng-doc-app-components-playground-property.mjs +0 -112
- package/fesm2020/ng-doc-app-components-playground-property.mjs.map +0 -1
- package/fesm2020/ng-doc-app-helpers-compile-template.mjs +0 -122
- package/fesm2020/ng-doc-app-helpers-compile-template.mjs.map +0 -1
- package/fesm2020/ng-doc-app-helpers-format-html.mjs +0 -22
- package/fesm2020/ng-doc-app-helpers-format-html.mjs.map +0 -1
- package/helpers/compile-template/compile-template.d.ts +0 -18
- package/helpers/compile-template/index.d.ts +0 -1
- package/helpers/format-html/format-html.d.ts +0 -5
- package/helpers/format-html/index.d.ts +0 -1
- package/interfaces/playground-form.d.ts +0 -5
- package/types/header-level.d.ts +0 -4
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
Theme: Hardcore
|
|
3
|
+
Author: Chris Caller
|
|
4
|
+
License: ~ MIT (or more permissive) [via base16-schemes-source]
|
|
5
|
+
Maintainer: @highlightjs/core-team
|
|
6
|
+
Version: 2021.09.0
|
|
7
|
+
*/
|
|
8
|
+
pre code.hljs {
|
|
9
|
+
display: block;
|
|
10
|
+
overflow-x: auto;
|
|
11
|
+
padding: 1em;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
code.hljs {
|
|
15
|
+
padding: 3px 5px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.hljs {
|
|
19
|
+
color: #cdcdcd;
|
|
20
|
+
background: #212121;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.hljs ::selection, .hljs::selection {
|
|
24
|
+
background-color: #353535;
|
|
25
|
+
color: #cdcdcd;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.hljs-comment {
|
|
29
|
+
color: #4a4a4a;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.hljs-tag {
|
|
33
|
+
color: #707070;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.hljs-operator, .hljs-punctuation, .hljs-subst {
|
|
37
|
+
color: #cdcdcd;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.hljs-operator {
|
|
41
|
+
opacity: 0.7;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.hljs-bullet, .hljs-deletion, .hljs-name, .hljs-selector-tag, .hljs-template-variable, .hljs-variable {
|
|
45
|
+
color: #f92672;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.hljs-attr, .hljs-link, .hljs-literal, .hljs-number, .hljs-symbol, .hljs-variable.constant_ {
|
|
49
|
+
color: #fd971f;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.hljs-class .hljs-title, .hljs-title, .hljs-title.class_ {
|
|
53
|
+
color: #e6db74;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.hljs-strong {
|
|
57
|
+
font-weight: 700;
|
|
58
|
+
color: #e6db74;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.hljs-addition, .hljs-code, .hljs-string, .hljs-title.class_.inherited__ {
|
|
62
|
+
color: #a6e22e;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.hljs-built_in, .hljs-doctag, .hljs-keyword.hljs-atrule, .hljs-quote, .hljs-regexp {
|
|
66
|
+
color: #708387;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.hljs-attribute, .hljs-function .hljs-title, .hljs-section, .hljs-title.function_, .ruby .hljs-property {
|
|
70
|
+
color: #66d9ef;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.diff .hljs-meta, .hljs-keyword, .hljs-template-tag, .hljs-type {
|
|
74
|
+
color: #9e6ffe;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.hljs-emphasis {
|
|
78
|
+
color: #9e6ffe;
|
|
79
|
+
font-style: italic;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.hljs-meta, .hljs-meta .hljs-keyword, .hljs-meta .hljs-string {
|
|
83
|
+
color: #e8b882;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.hljs-meta .hljs-keyword, .hljs-meta-keyword {
|
|
87
|
+
font-weight: 700;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:root {
|
|
91
|
+
--ng-doc-base-0: #2a2438;
|
|
92
|
+
--ng-doc-base-1: #352f44;
|
|
93
|
+
--ng-doc-base-2: #474057;
|
|
94
|
+
--ng-doc-base-3: #453d57;
|
|
95
|
+
--ng-doc-base-4: #5e5474;
|
|
96
|
+
--ng-doc-base-5: #41365a;
|
|
97
|
+
--ng-doc-base-6: #5e5474;
|
|
98
|
+
--ng-doc-base-7: #625c71;
|
|
99
|
+
--ng-doc-base-8: #a19baf;
|
|
100
|
+
--ng-doc-base-9: var(--ng-doc-grey-100);
|
|
101
|
+
--ng-doc-base-10: var(--ng-doc-grey-90);
|
|
102
|
+
--ng-doc-base-11: var(--ng-doc-grey-80);
|
|
103
|
+
--ng-doc-text: var(--ng-doc-white);
|
|
104
|
+
--ng-doc-shadow-color: rgb(var(--ng-doc-grey-rgb));
|
|
105
|
+
--ng-doc-code-background: #281f2e;
|
|
106
|
+
--ng-doc-link-color: var(--ng-doc-pink-120);
|
|
107
|
+
--ng-doc-link-color-rgb: var(--ng-doc-pink-rgb);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
pre code.hljs {
|
|
111
|
+
background-color: #27202e;
|
|
112
|
+
}
|
package/classes/index.d.ts
CHANGED
|
@@ -1,10 +1,29 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
1
|
import { NgDocDemoAssets } from '@ng-doc/app/interfaces';
|
|
3
|
-
import {
|
|
2
|
+
import { NgDocPageType } from '@ng-doc/core';
|
|
3
|
+
import { NgDocDependencies } from '@ng-doc/core/interfaces';
|
|
4
|
+
/**
|
|
5
|
+
* Base class for NgDoc page
|
|
6
|
+
*/
|
|
4
7
|
export declare abstract class NgDocRootPage {
|
|
8
|
+
abstract readonly pageType: NgDocPageType;
|
|
9
|
+
/**
|
|
10
|
+
* Html content of the page
|
|
11
|
+
*/
|
|
5
12
|
abstract readonly pageContent: string;
|
|
6
|
-
|
|
7
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Edit URL that can be used to edit the page source file in the repository
|
|
15
|
+
*/
|
|
16
|
+
abstract readonly editSourceFileUrl?: string;
|
|
17
|
+
/**
|
|
18
|
+
* View URL that can be used to view the page source file in the repository
|
|
19
|
+
*/
|
|
20
|
+
abstract readonly viewSourceFileUrl?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The page dependencies file
|
|
23
|
+
*/
|
|
24
|
+
abstract readonly dependencies?: NgDocDependencies;
|
|
25
|
+
/**
|
|
26
|
+
* The page demo assets that have code examples of the demo components
|
|
27
|
+
*/
|
|
8
28
|
abstract readonly demoAssets?: NgDocDemoAssets;
|
|
9
|
-
abstract readonly playground?: NgDocPlayground;
|
|
10
29
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
2
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
-
import { NgDocApiList } from '@ng-doc/core';
|
|
3
|
+
import { NgDocApiList } from '@ng-doc/core/interfaces';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
interface ApiFilterForm {
|
|
7
7
|
filter: FormControl<string | null>;
|
|
8
|
+
scope: FormControl<string | null>;
|
|
8
9
|
type: FormControl<string | null>;
|
|
9
10
|
}
|
|
10
11
|
export declare class NgDocApiListComponent {
|
|
@@ -12,12 +13,10 @@ export declare class NgDocApiListComponent {
|
|
|
12
13
|
private readonly formBuilder;
|
|
13
14
|
private readonly route;
|
|
14
15
|
private readonly router;
|
|
15
|
-
/**
|
|
16
|
-
* My comment
|
|
17
|
-
*/
|
|
18
16
|
formGroup: FormGroup<ApiFilterForm>;
|
|
19
17
|
api$: Observable<NgDocApiList[]>;
|
|
20
18
|
constructor(apiList: NgDocApiList[], formBuilder: FormBuilder, route: ActivatedRoute, router: Router);
|
|
19
|
+
get scopes(): string[];
|
|
21
20
|
get types(): string[];
|
|
22
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocApiListComponent, never>;
|
|
23
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgDocApiListComponent, "ng-doc-api-list", never, {}, {}, never, never, false, never>;
|
|
@@ -7,6 +7,6 @@ import * as i5 from "@angular/router";
|
|
|
7
7
|
import * as i6 from "@angular/forms";
|
|
8
8
|
export declare class NgDocApiListModule {
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocApiListModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgDocApiListModule, [typeof i1.NgDocApiListComponent], [typeof i2.CommonModule, typeof i3.NgDocTextModule, typeof i4.NgDocKindIconModule, typeof i3.NgDocTooltipModule, typeof i5.RouterModule, typeof i3.NgDocInputWrapperModule, typeof i3.NgDocInputStringModule, typeof i6.FormsModule, typeof i3.NgDocComboboxModule, typeof i3.NgDocOptionModule, typeof i3.NgDocDataModule, typeof i3.NgDocListModule, typeof i3.NgDocLabelModule, typeof i6.ReactiveFormsModule, typeof i3.NgDocIconModule], [typeof i1.NgDocApiListComponent]>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgDocApiListModule, [typeof i1.NgDocApiListComponent], [typeof i2.CommonModule, typeof i3.NgDocTextModule, typeof i4.NgDocKindIconModule, typeof i3.NgDocTooltipModule, typeof i5.RouterModule, typeof i3.NgDocInputWrapperModule, typeof i3.NgDocInputStringModule, typeof i6.FormsModule, typeof i3.NgDocComboboxModule, typeof i3.NgDocOptionModule, typeof i3.NgDocDataModule, typeof i3.NgDocListModule, typeof i3.NgDocLabelModule, typeof i6.ReactiveFormsModule, typeof i3.NgDocIconModule, typeof i3.NgDocAutofocusModule], [typeof i1.NgDocApiListComponent]>;
|
|
11
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgDocApiListModule>;
|
|
12
12
|
}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { NgDocRootPage } from '@ng-doc/app/classes/root-page';
|
|
3
3
|
import { NgDocDemoAsset } from '@ng-doc/app/interfaces';
|
|
4
|
-
import {
|
|
4
|
+
import { NgDocDemoActionOptions } from '@ng-doc/core/interfaces';
|
|
5
|
+
import { NgDocContent } from '@ng-doc/ui-kit/types';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class NgDocDemoComponent implements OnInit {
|
|
7
8
|
private readonly rootPage;
|
|
8
9
|
componentName?: string;
|
|
9
|
-
|
|
10
|
-
demo?:
|
|
10
|
+
options: NgDocDemoActionOptions;
|
|
11
|
+
demo?: NgDocContent<object>;
|
|
11
12
|
assets: NgDocDemoAsset[];
|
|
12
13
|
constructor(rootPage: NgDocRootPage);
|
|
13
14
|
ngOnInit(): void;
|
|
14
15
|
private getDemo;
|
|
15
16
|
private getAssets;
|
|
16
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocDemoComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgDocDemoComponent, "ng-doc-demo", never, { "componentName": "componentName"; "
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgDocDemoComponent, "ng-doc-demo", never, { "componentName": "componentName"; "options": "options"; }, {}, never, never, false, never>;
|
|
18
19
|
}
|
|
@@ -13,5 +13,5 @@ export declare class NgDocDemoDisplayerComponent {
|
|
|
13
13
|
constructor(notifyService: NgDocNotifyService, clipboard: Clipboard);
|
|
14
14
|
copyCode(): void;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocDemoDisplayerComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgDocDemoDisplayerComponent, "ng-doc-demo-displayer", never, { "codeContent": "codeContent"; "code": "code"; "language": "language"; "container": "container"; "border": "border"; }, {}, never, ["*"], false, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgDocDemoDisplayerComponent, "ng-doc-demo-displayer", never, { "codeContent": "codeContent"; "code": "code"; "language": "language"; "container": "container"; "border": "border"; "expanded": "expanded"; }, {}, never, ["*"], false, never>;
|
|
17
17
|
}
|
|
@@ -4,8 +4,9 @@ import * as i2 from "@angular/common";
|
|
|
4
4
|
import * as i3 from "@tinkoff/ng-polymorpheus";
|
|
5
5
|
import * as i4 from "@ng-doc/ui-kit";
|
|
6
6
|
import * as i5 from "@ng-doc/app/components/code";
|
|
7
|
+
import * as i6 from "@ng-doc/app/directives/code-highlighter";
|
|
7
8
|
export declare class NgDocDemoDisplayerModule {
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocDemoDisplayerModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgDocDemoDisplayerModule, [typeof i1.NgDocDemoDisplayerComponent], [typeof i2.CommonModule, typeof i3.PolymorpheusModule, typeof i4.NgDocExpanderModule, typeof i5.NgDocCodeModule, typeof i4.NgDocButtonIconModule, typeof i4.NgDocIconModule, typeof i4.NgDocTooltipModule], [typeof i1.NgDocDemoDisplayerComponent]>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgDocDemoDisplayerModule, [typeof i1.NgDocDemoDisplayerComponent], [typeof i2.CommonModule, typeof i3.PolymorpheusModule, typeof i4.NgDocExpanderModule, typeof i5.NgDocCodeModule, typeof i4.NgDocButtonIconModule, typeof i4.NgDocIconModule, typeof i4.NgDocTooltipModule, typeof i6.NgDocCodeHighlighterModule], [typeof i1.NgDocDemoDisplayerComponent]>;
|
|
10
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgDocDemoDisplayerModule>;
|
|
11
12
|
}
|
package/components/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from '@ng-doc/app/components/kind-icon';
|
|
|
6
6
|
export * from '@ng-doc/app/components/link';
|
|
7
7
|
export * from '@ng-doc/app/components/navbar';
|
|
8
8
|
export * from '@ng-doc/app/components/page';
|
|
9
|
+
export * from '@ng-doc/app/components/playground';
|
|
9
10
|
export * from '@ng-doc/app/components/root';
|
|
10
11
|
export * from '@ng-doc/app/components/search';
|
|
11
12
|
export * from '@ng-doc/app/components/search-result';
|
|
@@ -2,15 +2,33 @@ import { ChangeDetectorRef, NgZone } from '@angular/core';
|
|
|
2
2
|
import { NgDocSidebarService } from '@ng-doc/app/services';
|
|
3
3
|
import { NgDocContent } from '@ng-doc/ui-kit';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Navbar component for ng-doc application
|
|
7
|
+
*/
|
|
5
8
|
export declare class NgDocNavbarComponent {
|
|
6
9
|
private readonly window;
|
|
7
10
|
private readonly ngZone;
|
|
8
11
|
private readonly changeDetectorRef;
|
|
9
12
|
protected readonly sidebarService: NgDocSidebarService;
|
|
13
|
+
/**
|
|
14
|
+
* Content for left side of navbar
|
|
15
|
+
*/
|
|
10
16
|
leftContent: NgDocContent;
|
|
17
|
+
/**
|
|
18
|
+
* Content for center side of navbar
|
|
19
|
+
*/
|
|
11
20
|
centerContent: NgDocContent;
|
|
21
|
+
/**
|
|
22
|
+
* Content for right side of navbar
|
|
23
|
+
*/
|
|
12
24
|
rightContent: NgDocContent;
|
|
25
|
+
/**
|
|
26
|
+
* Show search input
|
|
27
|
+
*/
|
|
13
28
|
search: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Indicates if navbar has shadow
|
|
31
|
+
*/
|
|
14
32
|
hasShadow: boolean;
|
|
15
33
|
constructor(window: Window, ngZone: NgZone, changeDetectorRef: ChangeDetectorRef, sidebarService: NgDocSidebarService);
|
|
16
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocNavbarComponent, never>;
|
|
@@ -3,9 +3,11 @@ import * as i1 from "./navbar.component";
|
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "@tinkoff/ng-polymorpheus";
|
|
5
5
|
import * as i4 from "@ng-doc/app/components/search";
|
|
6
|
-
import * as i5 from "@ng-doc/ui-kit";
|
|
6
|
+
import * as i5 from "@ng-doc/ui-kit/components/button-icon";
|
|
7
|
+
import * as i6 from "@ng-doc/ui-kit/components/icon";
|
|
8
|
+
import * as i7 from "@ng-doc/ui-kit/directives/let";
|
|
7
9
|
export declare class NgDocNavbarModule {
|
|
8
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocNavbarModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgDocNavbarModule, [typeof i1.NgDocNavbarComponent], [typeof i2.CommonModule, typeof i3.PolymorpheusModule, typeof i4.NgDocSearchModule, typeof i5.NgDocButtonIconModule, typeof
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgDocNavbarModule, [typeof i1.NgDocNavbarComponent], [typeof i2.CommonModule, typeof i3.PolymorpheusModule, typeof i4.NgDocSearchModule, typeof i5.NgDocButtonIconModule, typeof i6.NgDocIconModule, typeof i7.NgDocLetModule], [typeof i1.NgDocNavbarComponent]>;
|
|
10
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgDocNavbarModule>;
|
|
11
13
|
}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
+
import { Router } from '@angular/router';
|
|
1
2
|
import { NgDocRootPage } from '@ng-doc/app/classes/root-page';
|
|
3
|
+
import { NgDocContext, NgDocNavigation } from '@ng-doc/app/interfaces';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
5
|
export declare class NgDocPageComponent {
|
|
6
|
+
private readonly context;
|
|
7
|
+
private readonly router;
|
|
4
8
|
readonly rootPage: NgDocRootPage;
|
|
5
|
-
|
|
9
|
+
readonly prevPage?: NgDocNavigation;
|
|
10
|
+
readonly nextPage?: NgDocNavigation;
|
|
11
|
+
constructor(context: NgDocContext, router: Router, rootPage: NgDocRootPage);
|
|
12
|
+
private flatPages;
|
|
13
|
+
private get url();
|
|
6
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocPageComponent, never>;
|
|
7
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgDocPageComponent, "ng-doc-page", never, {}, {}, never, never, false, never>;
|
|
8
16
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./page.component";
|
|
3
|
-
import * as i2 from "@
|
|
4
|
-
import * as i3 from "@
|
|
5
|
-
import * as i4 from "@ng-doc/app/
|
|
6
|
-
import * as i5 from "@ng-doc/app/
|
|
7
|
-
import * as i6 from "@ng-doc/
|
|
3
|
+
import * as i2 from "@ng-doc/app/type-controls";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@ng-doc/app/processors";
|
|
6
|
+
import * as i5 from "@ng-doc/app/pipes/sanitize-html";
|
|
7
|
+
import * as i6 from "@ng-doc/app/components/toc";
|
|
8
|
+
import * as i7 from "@ng-doc/ui-kit";
|
|
9
|
+
import * as i8 from "@angular/router";
|
|
8
10
|
export declare class NgDocPageModule {
|
|
9
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocPageModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgDocPageModule, [typeof i1.NgDocPageComponent], [typeof i2.
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgDocPageModule, [typeof i1.NgDocPageComponent], [typeof i2.NgDocBooleanControlModule, typeof i2.NgDocNumberControlModule, typeof i2.NgDocStringControlModule, typeof i2.NgDocTypeAliasControlModule, typeof i3.CommonModule, typeof i4.NgDocDemoProcessorModule, typeof i4.NgDocCodeProcessorModule, typeof i4.NgDocBlockquoteProcessorModule, typeof i5.NgDocSanitizeHtmlModule, typeof i4.NgDocIconProcessorModule, typeof i6.NgDocPageMapModule, typeof i7.NgDocMediaQueryModule, typeof i4.NgDocTooltipProcessorModule, typeof i7.NgDocButtonIconModule, typeof i7.NgDocIconModule, typeof i7.NgDocTooltipModule, typeof i4.NgDocPlaygroundProcessorModule, typeof i8.RouterLink, typeof i7.NgDocButtonModule, typeof i7.NgDocTextModule], [typeof i1.NgDocPageComponent]>;
|
|
11
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgDocPageModule>;
|
|
12
14
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Type, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { NgDocPlaygroundConfig } from '@ng-doc/core/interfaces';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Base class for playgrounds components.
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class NgDocBasePlayground implements Pick<NgDocPlaygroundConfig, 'data'> {
|
|
8
|
+
static readonly selector: string;
|
|
9
|
+
abstract readonly playground?: Type<unknown>;
|
|
10
|
+
abstract readonly viewContainerRef?: ViewContainerRef;
|
|
11
|
+
data: Record<string, unknown>;
|
|
12
|
+
content: any;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocBasePlayground, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgDocBasePlayground, never, never, {}, {}, never, never, false, never>;
|
|
15
|
+
}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
+
export * from './base-playground';
|
|
1
2
|
export * from './playground.component';
|
|
2
3
|
export * from './playground.module';
|
|
4
|
+
export * from './playground-demo/playground-demo.component';
|
|
5
|
+
export * from './playground-form';
|
|
6
|
+
export * from './playground-properties/playground-properties.component';
|
|
7
|
+
export * from './playground-property/playground-property.component';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Injector, OnChanges, OnDestroy, SimpleChanges, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { NgDocRootPage } from '@ng-doc/app/classes/root-page';
|
|
4
|
+
import { NgDocPlaygroundConfig, NgDocPlaygroundProperties } from '@ng-doc/core/interfaces';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { NgDocBasePlayground } from '../base-playground';
|
|
7
|
+
import { NgDocPlaygroundForm } from '../playground-form';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class NgDocPlaygroundDemoComponent<T extends NgDocPlaygroundProperties = NgDocPlaygroundProperties> implements OnChanges, OnDestroy {
|
|
10
|
+
private readonly rootPage;
|
|
11
|
+
private readonly injector;
|
|
12
|
+
id: string;
|
|
13
|
+
selector: string;
|
|
14
|
+
configuration?: NgDocPlaygroundConfig;
|
|
15
|
+
properties?: T;
|
|
16
|
+
recreateDemo: boolean;
|
|
17
|
+
form: FormGroup<NgDocPlaygroundForm>;
|
|
18
|
+
demoOutlet?: ViewContainerRef;
|
|
19
|
+
playgroundDemo?: typeof NgDocBasePlayground;
|
|
20
|
+
code: Observable<string>;
|
|
21
|
+
private demoRef?;
|
|
22
|
+
private readonly unsubscribe$;
|
|
23
|
+
constructor(rootPage: NgDocRootPage, injector: Injector);
|
|
24
|
+
ngOnChanges({ form, id }: SimpleChanges): void;
|
|
25
|
+
private updateDemo;
|
|
26
|
+
private renderDemo;
|
|
27
|
+
private updateCodeView;
|
|
28
|
+
private getActiveContent;
|
|
29
|
+
private getActiveInputs;
|
|
30
|
+
ngOnDestroy(): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocPlaygroundDemoComponent<any>, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgDocPlaygroundDemoComponent<any>, "ng-doc-playground-demo", never, { "id": "id"; "selector": "selector"; "configuration": "configuration"; "properties": "properties"; "recreateDemo": "recreateDemo"; "form": "form"; }, {}, never, never, false, never>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
2
|
+
import { NgDocExtractedValue } from '@ng-doc/core/types';
|
|
3
|
+
export interface NgDocPlaygroundForm {
|
|
4
|
+
properties: FormGroup<Record<string, FormControl<NgDocExtractedValue>>>;
|
|
5
|
+
content: FormGroup<Record<string, FormControl<boolean>>>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
2
|
+
import { EventEmitter } from '@angular/core';
|
|
3
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
4
|
+
import { NgDocPlaygroundContent, NgDocPlaygroundProperties } from '@ng-doc/core/interfaces';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { NgDocPlaygroundForm } from '../playground-form';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class NgDocPlaygroundPropertiesComponent<P extends NgDocPlaygroundProperties, C extends Record<string, NgDocPlaygroundContent>> {
|
|
9
|
+
protected readonly breakpointObserver: BreakpointObserver;
|
|
10
|
+
form: FormGroup<NgDocPlaygroundForm>;
|
|
11
|
+
properties?: P;
|
|
12
|
+
dynamicContent?: C;
|
|
13
|
+
recreateDemo: boolean;
|
|
14
|
+
recreateDemoChange: EventEmitter<boolean>;
|
|
15
|
+
resetForm: EventEmitter<void>;
|
|
16
|
+
readonly breakpoints: string[];
|
|
17
|
+
readonly observer: Observable<boolean>;
|
|
18
|
+
constructor(breakpointObserver: BreakpointObserver);
|
|
19
|
+
getFormControl(controlType: keyof typeof this.form.controls, key: string): FormControl;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocPlaygroundPropertiesComponent<any, any>, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgDocPlaygroundPropertiesComponent<any, any>, "ng-doc-playground-properties", never, { "form": "form"; "properties": "properties"; "dynamicContent": "dynamicContent"; "recreateDemo": "recreateDemo"; }, { "recreateDemoChange": "recreateDemoChange"; "resetForm": "resetForm"; }, never, ["*"], false, never>;
|
|
22
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Injector, OnChanges, SimpleChanges, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { NgDocTypeControlProviderOptions } from '@ng-doc/app/interfaces';
|
|
4
|
-
import {
|
|
4
|
+
import { NgDocPlaygroundContent, NgDocPlaygroundProperty } from '@ng-doc/core/interfaces';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class NgDocPlaygroundPropertyComponent implements OnChanges {
|
|
7
7
|
private readonly injector;
|
|
8
8
|
name: string;
|
|
9
|
-
property?: NgDocPlaygroundProperty |
|
|
9
|
+
property?: NgDocPlaygroundProperty | NgDocPlaygroundContent;
|
|
10
10
|
control?: FormControl;
|
|
11
11
|
propertyOutlet?: ViewContainerRef;
|
|
12
12
|
option?: NgDocTypeControlProviderOptions;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
-
import { NgDocRootPage } from '@ng-doc/app/classes';
|
|
4
|
-
import { NgDocPlaygroundConfig, NgDocPlaygroundProperties } from '@ng-doc/core';
|
|
3
|
+
import { NgDocRootPage } from '@ng-doc/app/classes/root-page';
|
|
4
|
+
import { NgDocPlaygroundConfig, NgDocPlaygroundProperties } from '@ng-doc/core/interfaces';
|
|
5
|
+
import { NgDocPlaygroundForm } from './playground-form';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class NgDocPlaygroundComponent<T extends NgDocPlaygroundProperties = NgDocPlaygroundProperties> implements OnInit {
|
|
7
8
|
private readonly rootPage;
|
|
8
9
|
private readonly formBuilder;
|
|
9
|
-
id
|
|
10
|
+
id: string;
|
|
10
11
|
selectors: string[];
|
|
11
12
|
properties?: T;
|
|
12
|
-
formGroup
|
|
13
|
-
|
|
13
|
+
formGroup: FormGroup<NgDocPlaygroundForm>;
|
|
14
|
+
recreateDemo: boolean;
|
|
14
15
|
constructor(rootPage: NgDocRootPage, formBuilder: FormBuilder);
|
|
15
16
|
ngOnInit(): void;
|
|
16
17
|
get configuration(): NgDocPlaygroundConfig | undefined;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./playground.component";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "@
|
|
7
|
-
import * as i6 from "@
|
|
3
|
+
import * as i2 from "./playground-property/playground-property.component";
|
|
4
|
+
import * as i3 from "./playground-properties/playground-properties.component";
|
|
5
|
+
import * as i4 from "./playground-demo/playground-demo.component";
|
|
6
|
+
import * as i5 from "@angular/common";
|
|
7
|
+
import * as i6 from "@angular/forms";
|
|
8
|
+
import * as i7 from "@ng-doc/ui-kit";
|
|
9
|
+
import * as i8 from "@tinkoff/ng-polymorpheus";
|
|
10
|
+
import * as i9 from "@ng-doc/app/components/demo-displayer";
|
|
8
11
|
export declare class NgDocPlaygroundModule {
|
|
9
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocPlaygroundModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgDocPlaygroundModule, [typeof i1.NgDocPlaygroundComponent], [typeof
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgDocPlaygroundModule, [typeof i1.NgDocPlaygroundComponent, typeof i2.NgDocPlaygroundPropertyComponent, typeof i3.NgDocPlaygroundPropertiesComponent, typeof i4.NgDocPlaygroundDemoComponent], [typeof i5.CommonModule, typeof i6.ReactiveFormsModule, typeof i7.NgDocLabelModule, typeof i7.NgDocTooltipModule, typeof i8.PolymorpheusModule, typeof i7.NgDocAsArrayModule, typeof i7.NgDocButtonIconModule, typeof i7.NgDocIconModule, typeof i7.NgDocTextModule, typeof i7.NgDocCheckboxModule, typeof i6.FormsModule, typeof i7.NgDocButtonModule, typeof i9.NgDocDemoDisplayerModule], [typeof i1.NgDocPlaygroundComponent, typeof i2.NgDocPlaygroundPropertyComponent, typeof i3.NgDocPlaygroundPropertiesComponent, typeof i4.NgDocPlaygroundDemoComponent]>;
|
|
11
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgDocPlaygroundModule>;
|
|
12
15
|
}
|
|
@@ -2,8 +2,42 @@ import { BreakpointObserver } from '@angular/cdk/layout';
|
|
|
2
2
|
import { Location } from '@angular/common';
|
|
3
3
|
import { ElementRef, NgZone } from '@angular/core';
|
|
4
4
|
import { Router } from '@angular/router';
|
|
5
|
-
import { NgDocSidebarService } from '@ng-doc/app/services';
|
|
5
|
+
import { NgDocSidebarService } from '@ng-doc/app/services/sidebar';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Directive uses for providing custom navbar, you should mark element with this directive
|
|
9
|
+
* and the `NgDocRootComponent` will use it as a navbar
|
|
10
|
+
*
|
|
11
|
+
* ```html
|
|
12
|
+
* <ng-doc-root>
|
|
13
|
+
* <my-custom-navbar ngDocCustomNavbar></my-custom-navbar>
|
|
14
|
+
*
|
|
15
|
+
* <ng-doc-sidebar></ng-doc-sidebar>
|
|
16
|
+
* <router-outlet></router-outlet>
|
|
17
|
+
* </ng-doc-root>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare class NgDocCustomNavbarDirective {
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocCustomNavbarDirective, never>;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgDocCustomNavbarDirective, "[ngDocCustomNavbar]", never, {}, {}, never, never, false, never>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Directive uses for providing custom sidebar, you should mark element with this directive
|
|
26
|
+
* and the `NgDocRootComponent` will use it as a sidebar
|
|
27
|
+
*
|
|
28
|
+
* ```html
|
|
29
|
+
* <ng-doc-root>
|
|
30
|
+
* <ng-doc-navbar></ng-doc-sidebar>
|
|
31
|
+
*
|
|
32
|
+
* <my-custom-sidebar ngDocCustomSidebar></my-custom-sidebar>
|
|
33
|
+
* <router-outlet></router-outlet>
|
|
34
|
+
* </ng-doc-root>
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare class NgDocCustomSidebarDirective {
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocCustomSidebarDirective, never>;
|
|
39
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgDocCustomSidebarDirective, "[ngDocCustomSidebar]", never, {}, {}, never, never, false, never>;
|
|
40
|
+
}
|
|
7
41
|
export declare class NgDocRootComponent {
|
|
8
42
|
private readonly elementRef;
|
|
9
43
|
private readonly ngZone;
|
|
@@ -15,5 +49,5 @@ export declare class NgDocRootComponent {
|
|
|
15
49
|
constructor(elementRef: ElementRef<HTMLElement>, ngZone: NgZone, router: Router, location: Location, breakpointObserver: BreakpointObserver, sidebarService: NgDocSidebarService, window: Window);
|
|
16
50
|
private isPointerEvent;
|
|
17
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocRootComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgDocRootComponent, "ng-doc-root", never, {}, {}, never, ["ng-doc-navbar", "ng-doc-sidebar", "*"], false, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgDocRootComponent, "ng-doc-root", never, {}, {}, never, ["ng-doc-navbar", "[ngDocCustomNavbar]", "ng-doc-sidebar", "[ngDocCustomSidebar]", "*"], false, never>;
|
|
19
53
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./root.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "@ng-doc/ui-kit";
|
|
4
|
+
import * as i3 from "@ng-doc/ui-kit/directives/media-query";
|
|
5
5
|
export declare class NgDocRootModule {
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocRootModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgDocRootModule, [typeof i1.NgDocRootComponent], [typeof i2.CommonModule, typeof i3.NgDocMediaQueryModule], [typeof i1.NgDocRootComponent]>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgDocRootModule, [typeof i1.NgDocRootComponent, typeof i1.NgDocCustomNavbarDirective, typeof i1.NgDocCustomSidebarDirective], [typeof i2.CommonModule, typeof i3.NgDocMediaQueryModule], [typeof i1.NgDocRootComponent, typeof i1.NgDocCustomNavbarDirective, typeof i1.NgDocCustomSidebarDirective]>;
|
|
8
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgDocRootModule>;
|
|
9
9
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { NgDocSearchEngine } from '@ng-doc/app/classes/search-engine';
|
|
3
|
-
import { NgDocPageInfo } from '@ng-doc/core';
|
|
3
|
+
import { NgDocPageInfo } from '@ng-doc/core/interfaces/page-info';
|
|
4
4
|
import { Subject } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class NgDocSearchComponent {
|
|
@@ -6,6 +6,6 @@ import * as i4 from "@angular/forms";
|
|
|
6
6
|
import * as i5 from "@ng-doc/app/components/search-result";
|
|
7
7
|
export declare class NgDocSearchModule {
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocSearchModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgDocSearchModule, [typeof i1.NgDocSearchComponent], [typeof i2.CommonModule, typeof i3.NgDocInputWrapperModule, typeof i3.NgDocInputStringModule, typeof i3.NgDocDropdownModule, typeof i3.NgDocDropdownOriginModule, typeof i3.NgDocFocusCatcherModule, typeof i4.FormsModule, typeof i5.NgDocSearchResultModule, typeof i3.NgDocIconModule, typeof i3.NgDocButtonIconModule, typeof i3.NgDocAutofocusModule], [typeof i1.NgDocSearchComponent]>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgDocSearchModule, [typeof i1.NgDocSearchComponent], [typeof i2.CommonModule, typeof i3.NgDocInputWrapperModule, typeof i3.NgDocInputStringModule, typeof i3.NgDocDropdownModule, typeof i3.NgDocDropdownOriginModule, typeof i3.NgDocFocusCatcherModule, typeof i4.FormsModule, typeof i5.NgDocSearchResultModule, typeof i3.NgDocIconModule, typeof i3.NgDocButtonIconModule, typeof i3.NgDocAutofocusModule, typeof i3.NgDocTagModule, typeof i3.NgDocHotkeyModule], [typeof i1.NgDocSearchComponent]>;
|
|
10
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgDocSearchModule>;
|
|
11
11
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { NgDocPageInfo } from '@ng-doc/core';
|
|
2
|
+
import { NgDocPageInfo } from '@ng-doc/core/interfaces';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class NgDocSearchResultComponent implements OnChanges {
|
|
5
5
|
result: NgDocPageInfo[] | null;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
3
|
import { NgDocNavigation } from '@ng-doc/app/interfaces';
|
|
4
|
-
import {
|
|
4
|
+
import { NgDocContent } from '@ng-doc/ui-kit/types';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class NgDocSidebarCategoryComponent implements OnInit {
|
|
7
7
|
private readonly router;
|
|
8
8
|
private readonly changeDetectorRef;
|
|
9
9
|
category?: NgDocNavigation;
|
|
10
10
|
isRoot: boolean;
|
|
11
|
-
content:
|
|
11
|
+
content: NgDocContent;
|
|
12
12
|
expandable: boolean;
|
|
13
13
|
expanded: boolean;
|
|
14
14
|
constructor(router: Router, changeDetectorRef: ChangeDetectorRef);
|