@ng-doc/app 15.13.0 → 16.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/components/code/code.component.d.ts +1 -1
- package/components/demo/demo.component.d.ts +1 -1
- package/components/demo-displayer/demo-displayer.component.d.ts +1 -1
- package/components/demo-pane/demo-pane.component.d.ts +1 -1
- package/components/kind-icon/kind-icon.component.d.ts +1 -1
- package/components/link/link.component.d.ts +1 -1
- package/components/navbar/navbar.component.d.ts +1 -1
- package/components/page-link/page-link.component.d.ts +1 -1
- package/components/playground/playground-demo/playground-demo.component.d.ts +1 -1
- package/components/playground/playground-properties/playground-properties.component.d.ts +1 -1
- package/components/playground/playground-property/playground-property.component.d.ts +1 -1
- package/components/root/root.component.d.ts +1 -1
- package/components/search/search.component.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 +1 -1
- package/components/sidebar/sidebar-item/sidebar-item.component.d.ts +1 -1
- package/components/toc/toc-element/toc-element.component.d.ts +1 -1
- package/components/toc/toc.component.d.ts +1 -1
- package/directives/code-highlighter/code-highlighter.directive.d.ts +1 -1
- package/directives/route-active/route-active.directive.d.ts +1 -1
- package/{esm2020 → esm2022}/components/api-list/api-list.component.mjs +4 -4
- package/esm2022/components/api-list/api-list.module.mjs +70 -0
- package/esm2022/components/breadcrumb/breadcrumb.component.mjs +29 -0
- package/esm2022/components/breadcrumb/breadcrumb.module.mjs +21 -0
- package/esm2022/components/code/code.component.mjs +45 -0
- package/esm2022/components/code/code.module.mjs +41 -0
- package/esm2022/components/demo/demo.component.mjs +53 -0
- package/esm2022/components/demo/demo.module.mjs +43 -0
- package/esm2022/components/demo-displayer/demo-displayer.component.mjs +49 -0
- package/esm2022/components/demo-displayer/demo-displayer.module.mjs +49 -0
- package/esm2022/components/demo-pane/demo-pane.component.mjs +52 -0
- package/esm2022/components/demo-pane/demo-pane.module.mjs +22 -0
- package/esm2022/components/kind-icon/kind-icon.component.mjs +26 -0
- package/esm2022/components/kind-icon/kind-icon.module.mjs +19 -0
- package/esm2022/components/link/link.component.mjs +18 -0
- package/esm2022/components/link/link.module.mjs +20 -0
- package/{esm2020 → esm2022}/components/navbar/navbar.component.mjs +4 -4
- package/esm2022/components/navbar/navbar.module.mjs +41 -0
- package/esm2022/components/page/page.component.mjs +45 -0
- package/esm2022/components/page/page.module.mjs +98 -0
- package/esm2022/components/page-link/page-link.component.mjs +31 -0
- package/esm2022/components/page-link/page-link.module.mjs +20 -0
- package/esm2022/components/playground/base-playground.mjs +19 -0
- package/{esm2020 → esm2022}/components/playground/playground-demo/playground-demo.component.mjs +4 -4
- package/esm2022/components/playground/playground-properties/playground-properties.component.mjs +112 -0
- package/esm2022/components/playground/playground-property/playground-property.component.mjs +63 -0
- package/esm2022/components/playground/playground.component.mjs +63 -0
- package/esm2022/components/playground/playground.module.mjs +86 -0
- package/esm2022/components/root/root.component.mjs +116 -0
- package/esm2022/components/root/root.module.mjs +21 -0
- package/esm2022/components/search/search.component.mjs +72 -0
- package/esm2022/components/search/search.module.mjs +85 -0
- package/esm2022/components/search-result/search-result.component.mjs +43 -0
- package/esm2022/components/search-result/search-result.module.mjs +22 -0
- package/{esm2020 → esm2022}/components/sidebar/sidebar-category/sidebar-category.component.mjs +4 -4
- package/esm2022/components/sidebar/sidebar-item/sidebar-item.component.mjs +17 -0
- package/esm2022/components/sidebar/sidebar.component.mjs +25 -0
- package/esm2022/components/sidebar/sidebar.module.mjs +59 -0
- package/esm2022/components/theme-toggle/theme-toggle.component.mjs +54 -0
- package/esm2022/components/theme-toggle/theme-toggle.module.mjs +20 -0
- package/esm2022/components/toc/toc-element/toc-element.component.mjs +30 -0
- package/{esm2020 → esm2022}/components/toc/toc.component.mjs +4 -4
- package/esm2022/components/toc/toc.module.mjs +22 -0
- package/esm2022/directives/code-highlighter/code-highlighter.directive.mjs +44 -0
- package/esm2022/directives/code-highlighter/code-highlighter.module.mjs +17 -0
- package/{esm2020 → esm2022}/directives/route-active/route-active.directive.mjs +4 -4
- package/esm2022/directives/route-active/route-active.module.mjs +19 -0
- package/esm2022/modules/root/ng-doc.module.mjs +59 -0
- package/esm2022/pipes/extract-value/extract-value.module.mjs +17 -0
- package/esm2022/pipes/extract-value/extract-value.pipe.mjs +18 -0
- package/esm2022/pipes/filter-by-text/filter-by-text.module.mjs +17 -0
- package/esm2022/pipes/filter-by-text/filter-by-text.pipe.mjs +17 -0
- package/esm2022/pipes/sanitize-html/sanitize-html.module.mjs +17 -0
- package/esm2022/pipes/sanitize-html/sanitize-html.pipe.mjs +22 -0
- package/esm2022/processors/blockquote-processor/blockquote-processor.directive.mjs +29 -0
- package/esm2022/processors/blockquote-processor/blockquote-processor.module.mjs +19 -0
- package/esm2022/processors/code-processor/code-processor.directive.mjs +34 -0
- package/esm2022/processors/code-processor/code-processor.module.mjs +19 -0
- package/{esm2020 → esm2022}/processors/demo-pane-processor/demo-pane-processor.directive.mjs +4 -4
- package/esm2022/processors/demo-pane-processor/demo-pane-processor.module.mjs +19 -0
- package/{esm2020 → esm2022}/processors/demo-processor/demo-processor.directive.mjs +4 -4
- package/esm2022/processors/demo-processor/demo-processor.module.mjs +19 -0
- package/esm2022/processors/html-processor/html-processor.directive.mjs +39 -0
- package/esm2022/processors/icon-processor/icon-processor.directive.mjs +29 -0
- package/esm2022/processors/icon-processor/icon-processor.module.mjs +17 -0
- package/esm2022/processors/link-processor/link-processor.directive.mjs +30 -0
- package/esm2022/processors/link-processor/link-processor.module.mjs +17 -0
- package/esm2022/processors/playground-processor/playground-processor.directive.mjs +32 -0
- package/esm2022/processors/playground-processor/playground-processor.module.mjs +19 -0
- package/esm2022/processors/tooltip-processor/tooltip-processor.directive.mjs +29 -0
- package/esm2022/processors/tooltip-processor/tooltip-processor.module.mjs +20 -0
- package/esm2022/processors/tooltip-processor/tooltip-wrapper.component.mjs +49 -0
- package/{esm2020 → esm2022}/services/sidebar/sidebar.service.mjs +4 -4
- package/esm2022/services/store/store.service.mjs +21 -0
- package/{esm2020 → esm2022}/services/theme/theme.service.mjs +4 -4
- package/esm2022/type-controls/boolean-control/boolean-control.component.mjs +20 -0
- package/esm2022/type-controls/boolean-control/boolean-control.module.mjs +23 -0
- package/esm2022/type-controls/number-control/number-control.component.mjs +27 -0
- package/esm2022/type-controls/number-control/number-control.module.mjs +51 -0
- package/esm2022/type-controls/string-control/string-control.component.mjs +27 -0
- package/esm2022/type-controls/string-control/string-control.module.mjs +55 -0
- package/esm2022/type-controls/type-alias-control/type-alias-control.component.mjs +31 -0
- package/esm2022/type-controls/type-alias-control/type-alias-control.module.mjs +64 -0
- package/fesm2022/ng-doc-app-components-api-list.mjs +153 -0
- package/{fesm2020 → fesm2022}/ng-doc-app-components-api-list.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-breadcrumb.mjs +50 -0
- package/fesm2022/ng-doc-app-components-breadcrumb.mjs.map +1 -0
- package/fesm2022/ng-doc-app-components-code.mjs +87 -0
- package/fesm2022/ng-doc-app-components-code.mjs.map +1 -0
- package/fesm2022/ng-doc-app-components-demo-displayer.mjs +99 -0
- package/{fesm2015 → fesm2022}/ng-doc-app-components-demo-displayer.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ng-doc-app-components-demo-pane.mjs +7 -7
- package/{fesm2015 → fesm2022}/ng-doc-app-components-demo-pane.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ng-doc-app-components-demo.mjs +19 -19
- package/{fesm2015 → fesm2022}/ng-doc-app-components-demo.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/ng-doc-app-components-kind-icon.mjs +7 -7
- package/fesm2022/ng-doc-app-components-kind-icon.mjs.map +1 -0
- package/fesm2022/ng-doc-app-components-link.mjs +40 -0
- package/fesm2022/ng-doc-app-components-link.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ng-doc-app-components-navbar.mjs +17 -17
- package/{fesm2020 → fesm2022}/ng-doc-app-components-navbar.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-page-link.mjs +53 -0
- package/{fesm2015 → fesm2022}/ng-doc-app-components-page-link.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-page.mjs +143 -0
- package/{fesm2020 → fesm2022}/ng-doc-app-components-page.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ng-doc-app-components-playground.mjs +57 -57
- package/fesm2022/ng-doc-app-components-playground.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ng-doc-app-components-root.mjs +13 -13
- package/{fesm2015 → fesm2022}/ng-doc-app-components-root.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-search-result.mjs +67 -0
- package/{fesm2015 → fesm2022}/ng-doc-app-components-search-result.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-search.mjs +158 -0
- package/{fesm2020 → fesm2022}/ng-doc-app-components-search.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ng-doc-app-components-sidebar.mjs +31 -31
- package/{fesm2020 → fesm2022}/ng-doc-app-components-sidebar.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-theme-toggle.mjs +75 -0
- package/fesm2022/ng-doc-app-components-theme-toggle.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ng-doc-app-components-toc.mjs +10 -10
- package/{fesm2020 → fesm2022}/ng-doc-app-components-toc.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ng-doc-app-directives-code-highlighter.mjs +7 -7
- package/{fesm2020 → fesm2022}/ng-doc-app-directives-code-highlighter.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/ng-doc-app-directives-route-active.mjs +7 -7
- package/{fesm2020 → fesm2022}/ng-doc-app-directives-route-active.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ng-doc-app-modules-root.mjs +4 -4
- package/{fesm2020 → fesm2022}/ng-doc-app-modules-root.mjs.map +1 -1
- package/fesm2022/ng-doc-app-pipes-extract-value.mjs +37 -0
- package/{fesm2015 → fesm2022}/ng-doc-app-pipes-extract-value.mjs.map +1 -1
- package/fesm2022/ng-doc-app-pipes-filter-by-text.mjs +36 -0
- package/{fesm2020 → fesm2022}/ng-doc-app-pipes-filter-by-text.mjs.map +1 -1
- package/fesm2022/ng-doc-app-pipes-sanitize-html.mjs +40 -0
- package/{fesm2015 → fesm2022}/ng-doc-app-pipes-sanitize-html.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ng-doc-app-processors-blockquote-processor.mjs +7 -7
- package/{fesm2020 → fesm2022}/ng-doc-app-processors-blockquote-processor.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ng-doc-app-processors-code-processor.mjs +7 -7
- package/{fesm2020 → fesm2022}/ng-doc-app-processors-code-processor.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ng-doc-app-processors-demo-pane-processor.mjs +7 -7
- package/{fesm2020 → fesm2022}/ng-doc-app-processors-demo-pane-processor.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ng-doc-app-processors-demo-processor.mjs +7 -7
- package/{fesm2020 → fesm2022}/ng-doc-app-processors-demo-processor.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ng-doc-app-processors-html-processor.mjs +3 -3
- package/{fesm2020 → fesm2022}/ng-doc-app-processors-html-processor.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ng-doc-app-processors-icon-processor.mjs +7 -7
- package/{fesm2020 → fesm2022}/ng-doc-app-processors-icon-processor.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ng-doc-app-processors-link-processor.mjs +7 -7
- package/{fesm2020 → fesm2022}/ng-doc-app-processors-link-processor.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ng-doc-app-processors-playground-processor.mjs +7 -7
- package/{fesm2020 → fesm2022}/ng-doc-app-processors-playground-processor.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ng-doc-app-processors-tooltip-processor.mjs +12 -12
- package/{fesm2015 → fesm2022}/ng-doc-app-processors-tooltip-processor.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ng-doc-app-services-sidebar.mjs +3 -3
- package/{fesm2020 → fesm2022}/ng-doc-app-services-sidebar.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ng-doc-app-services-store.mjs +3 -3
- package/{fesm2015 → fesm2022}/ng-doc-app-services-store.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ng-doc-app-services-theme.mjs +3 -3
- package/{fesm2020 → fesm2022}/ng-doc-app-services-theme.mjs.map +1 -1
- package/fesm2022/ng-doc-app-type-controls-boolean-control.mjs +45 -0
- package/{fesm2015 → fesm2022}/ng-doc-app-type-controls-boolean-control.mjs.map +1 -1
- package/fesm2022/ng-doc-app-type-controls-number-control.mjs +79 -0
- package/{fesm2020 → fesm2022}/ng-doc-app-type-controls-number-control.mjs.map +1 -1
- package/fesm2022/ng-doc-app-type-controls-string-control.mjs +83 -0
- package/{fesm2015 → fesm2022}/ng-doc-app-type-controls-string-control.mjs.map +1 -1
- package/fesm2022/ng-doc-app-type-controls-type-alias-control.mjs +97 -0
- package/{fesm2020 → fesm2022}/ng-doc-app-type-controls-type-alias-control.mjs.map +1 -1
- package/package.json +228 -346
- package/processors/tooltip-processor/tooltip-wrapper.component.d.ts +1 -1
- package/esm2020/components/api-list/api-list.module.mjs +0 -69
- package/esm2020/components/breadcrumb/breadcrumb.component.mjs +0 -28
- package/esm2020/components/breadcrumb/breadcrumb.module.mjs +0 -20
- package/esm2020/components/code/code.component.mjs +0 -44
- package/esm2020/components/code/code.module.mjs +0 -40
- package/esm2020/components/demo/demo.component.mjs +0 -52
- package/esm2020/components/demo/demo.module.mjs +0 -42
- package/esm2020/components/demo-displayer/demo-displayer.component.mjs +0 -48
- package/esm2020/components/demo-displayer/demo-displayer.module.mjs +0 -48
- package/esm2020/components/demo-pane/demo-pane.component.mjs +0 -51
- package/esm2020/components/demo-pane/demo-pane.module.mjs +0 -21
- package/esm2020/components/kind-icon/kind-icon.component.mjs +0 -25
- package/esm2020/components/kind-icon/kind-icon.module.mjs +0 -18
- package/esm2020/components/link/link.component.mjs +0 -17
- package/esm2020/components/link/link.module.mjs +0 -19
- package/esm2020/components/navbar/navbar.module.mjs +0 -40
- package/esm2020/components/page/page.component.mjs +0 -44
- package/esm2020/components/page/page.module.mjs +0 -97
- package/esm2020/components/page-link/page-link.component.mjs +0 -30
- package/esm2020/components/page-link/page-link.module.mjs +0 -19
- package/esm2020/components/playground/base-playground.mjs +0 -18
- package/esm2020/components/playground/playground-properties/playground-properties.component.mjs +0 -111
- package/esm2020/components/playground/playground-property/playground-property.component.mjs +0 -62
- package/esm2020/components/playground/playground.component.mjs +0 -62
- package/esm2020/components/playground/playground.module.mjs +0 -85
- package/esm2020/components/root/root.component.mjs +0 -114
- package/esm2020/components/root/root.module.mjs +0 -20
- package/esm2020/components/search/search.component.mjs +0 -72
- package/esm2020/components/search/search.module.mjs +0 -84
- package/esm2020/components/search-result/search-result.component.mjs +0 -42
- package/esm2020/components/search-result/search-result.module.mjs +0 -21
- package/esm2020/components/sidebar/sidebar-item/sidebar-item.component.mjs +0 -16
- package/esm2020/components/sidebar/sidebar.component.mjs +0 -24
- package/esm2020/components/sidebar/sidebar.module.mjs +0 -58
- package/esm2020/components/theme-toggle/theme-toggle.component.mjs +0 -53
- package/esm2020/components/theme-toggle/theme-toggle.module.mjs +0 -19
- package/esm2020/components/toc/toc-element/toc-element.component.mjs +0 -29
- package/esm2020/components/toc/toc.module.mjs +0 -21
- package/esm2020/directives/code-highlighter/code-highlighter.directive.mjs +0 -43
- package/esm2020/directives/code-highlighter/code-highlighter.module.mjs +0 -16
- package/esm2020/directives/route-active/route-active.module.mjs +0 -18
- package/esm2020/modules/root/ng-doc.module.mjs +0 -58
- package/esm2020/pipes/extract-value/extract-value.module.mjs +0 -16
- package/esm2020/pipes/extract-value/extract-value.pipe.mjs +0 -17
- package/esm2020/pipes/filter-by-text/filter-by-text.module.mjs +0 -16
- package/esm2020/pipes/filter-by-text/filter-by-text.pipe.mjs +0 -16
- package/esm2020/pipes/sanitize-html/sanitize-html.module.mjs +0 -16
- package/esm2020/pipes/sanitize-html/sanitize-html.pipe.mjs +0 -21
- package/esm2020/processors/blockquote-processor/blockquote-processor.directive.mjs +0 -28
- package/esm2020/processors/blockquote-processor/blockquote-processor.module.mjs +0 -18
- package/esm2020/processors/code-processor/code-processor.directive.mjs +0 -33
- package/esm2020/processors/code-processor/code-processor.module.mjs +0 -18
- package/esm2020/processors/demo-pane-processor/demo-pane-processor.module.mjs +0 -18
- package/esm2020/processors/demo-processor/demo-processor.module.mjs +0 -18
- package/esm2020/processors/html-processor/html-processor.directive.mjs +0 -38
- package/esm2020/processors/icon-processor/icon-processor.directive.mjs +0 -28
- package/esm2020/processors/icon-processor/icon-processor.module.mjs +0 -16
- package/esm2020/processors/link-processor/link-processor.directive.mjs +0 -29
- package/esm2020/processors/link-processor/link-processor.module.mjs +0 -16
- package/esm2020/processors/playground-processor/playground-processor.directive.mjs +0 -31
- package/esm2020/processors/playground-processor/playground-processor.module.mjs +0 -18
- package/esm2020/processors/tooltip-processor/tooltip-processor.directive.mjs +0 -28
- package/esm2020/processors/tooltip-processor/tooltip-processor.module.mjs +0 -19
- package/esm2020/processors/tooltip-processor/tooltip-wrapper.component.mjs +0 -48
- package/esm2020/services/store/store.service.mjs +0 -20
- package/esm2020/type-controls/boolean-control/boolean-control.component.mjs +0 -19
- package/esm2020/type-controls/boolean-control/boolean-control.module.mjs +0 -22
- package/esm2020/type-controls/number-control/number-control.component.mjs +0 -26
- package/esm2020/type-controls/number-control/number-control.module.mjs +0 -50
- package/esm2020/type-controls/string-control/string-control.component.mjs +0 -26
- package/esm2020/type-controls/string-control/string-control.module.mjs +0 -54
- package/esm2020/type-controls/type-alias-control/type-alias-control.component.mjs +0 -30
- package/esm2020/type-controls/type-alias-control/type-alias-control.module.mjs +0 -63
- package/fesm2015/ng-doc-app-classes-default-search-engine.mjs +0 -70
- package/fesm2015/ng-doc-app-classes-default-search-engine.mjs.map +0 -1
- package/fesm2015/ng-doc-app-components-api-list.mjs +0 -155
- package/fesm2015/ng-doc-app-components-api-list.mjs.map +0 -1
- package/fesm2015/ng-doc-app-components-breadcrumb.mjs +0 -50
- package/fesm2015/ng-doc-app-components-breadcrumb.mjs.map +0 -1
- package/fesm2015/ng-doc-app-components-code.mjs +0 -89
- package/fesm2015/ng-doc-app-components-code.mjs.map +0 -1
- package/fesm2015/ng-doc-app-components-demo-displayer.mjs +0 -99
- package/fesm2015/ng-doc-app-components-demo-pane.mjs +0 -77
- package/fesm2015/ng-doc-app-components-demo.mjs +0 -99
- package/fesm2015/ng-doc-app-components-kind-icon.mjs.map +0 -1
- package/fesm2015/ng-doc-app-components-link.mjs +0 -40
- package/fesm2015/ng-doc-app-components-link.mjs.map +0 -1
- package/fesm2015/ng-doc-app-components-navbar.mjs +0 -146
- package/fesm2015/ng-doc-app-components-navbar.mjs.map +0 -1
- package/fesm2015/ng-doc-app-components-page-link.mjs +0 -53
- package/fesm2015/ng-doc-app-components-page.mjs +0 -147
- package/fesm2015/ng-doc-app-components-page.mjs.map +0 -1
- package/fesm2015/ng-doc-app-components-playground.mjs +0 -445
- package/fesm2015/ng-doc-app-components-playground.mjs.map +0 -1
- package/fesm2015/ng-doc-app-components-search-result.mjs +0 -67
- package/fesm2015/ng-doc-app-components-search.mjs +0 -162
- package/fesm2015/ng-doc-app-components-search.mjs.map +0 -1
- package/fesm2015/ng-doc-app-components-sidebar.mjs +0 -169
- package/fesm2015/ng-doc-app-components-sidebar.mjs.map +0 -1
- package/fesm2015/ng-doc-app-components-theme-toggle.mjs +0 -76
- package/fesm2015/ng-doc-app-components-theme-toggle.mjs.map +0 -1
- package/fesm2015/ng-doc-app-components-toc.mjs +0 -151
- package/fesm2015/ng-doc-app-components-toc.mjs.map +0 -1
- package/fesm2015/ng-doc-app-directives-code-highlighter.mjs +0 -64
- package/fesm2015/ng-doc-app-directives-code-highlighter.mjs.map +0 -1
- package/fesm2015/ng-doc-app-directives-route-active.mjs.map +0 -1
- package/fesm2015/ng-doc-app-helpers.mjs +0 -152
- package/fesm2015/ng-doc-app-helpers.mjs.map +0 -1
- package/fesm2015/ng-doc-app-modules-root.mjs +0 -65
- package/fesm2015/ng-doc-app-modules-root.mjs.map +0 -1
- package/fesm2015/ng-doc-app-pipes-extract-value.mjs +0 -37
- package/fesm2015/ng-doc-app-pipes-filter-by-text.mjs +0 -37
- package/fesm2015/ng-doc-app-pipes-filter-by-text.mjs.map +0 -1
- package/fesm2015/ng-doc-app-pipes-sanitize-html.mjs +0 -40
- package/fesm2015/ng-doc-app-processors-blockquote-processor.mjs +0 -49
- package/fesm2015/ng-doc-app-processors-blockquote-processor.mjs.map +0 -1
- package/fesm2015/ng-doc-app-processors-code-processor.mjs +0 -56
- package/fesm2015/ng-doc-app-processors-code-processor.mjs.map +0 -1
- package/fesm2015/ng-doc-app-processors-demo-pane-processor.mjs +0 -58
- package/fesm2015/ng-doc-app-processors-demo-pane-processor.mjs.map +0 -1
- package/fesm2015/ng-doc-app-processors-demo-processor.mjs +0 -58
- package/fesm2015/ng-doc-app-processors-demo-processor.mjs.map +0 -1
- package/fesm2015/ng-doc-app-processors-html-processor.mjs +0 -46
- package/fesm2015/ng-doc-app-processors-html-processor.mjs.map +0 -1
- package/fesm2015/ng-doc-app-processors-icon-processor.mjs +0 -49
- package/fesm2015/ng-doc-app-processors-icon-processor.mjs.map +0 -1
- package/fesm2015/ng-doc-app-processors-link-processor.mjs +0 -50
- package/fesm2015/ng-doc-app-processors-link-processor.mjs.map +0 -1
- package/fesm2015/ng-doc-app-processors-playground-processor.mjs +0 -53
- package/fesm2015/ng-doc-app-processors-playground-processor.mjs.map +0 -1
- package/fesm2015/ng-doc-app-processors-tooltip-processor.mjs +0 -96
- package/fesm2015/ng-doc-app-services-sidebar.mjs +0 -107
- package/fesm2015/ng-doc-app-services-sidebar.mjs.map +0 -1
- package/fesm2015/ng-doc-app-services-store.mjs +0 -27
- package/fesm2015/ng-doc-app-services-theme.mjs +0 -127
- package/fesm2015/ng-doc-app-services-theme.mjs.map +0 -1
- package/fesm2015/ng-doc-app-type-controls-boolean-control.mjs +0 -45
- package/fesm2015/ng-doc-app-type-controls-number-control.mjs +0 -79
- package/fesm2015/ng-doc-app-type-controls-number-control.mjs.map +0 -1
- package/fesm2015/ng-doc-app-type-controls-string-control.mjs +0 -83
- package/fesm2015/ng-doc-app-type-controls-type-alias-control.mjs +0 -97
- package/fesm2015/ng-doc-app-type-controls-type-alias-control.mjs.map +0 -1
- package/fesm2020/ng-doc-app-classes-root-page.mjs +0 -12
- package/fesm2020/ng-doc-app-classes-root-page.mjs.map +0 -1
- package/fesm2020/ng-doc-app-classes-search-engine.mjs +0 -12
- package/fesm2020/ng-doc-app-classes-search-engine.mjs.map +0 -1
- package/fesm2020/ng-doc-app-classes.mjs +0 -8
- package/fesm2020/ng-doc-app-classes.mjs.map +0 -1
- package/fesm2020/ng-doc-app-components-api-list.mjs +0 -153
- package/fesm2020/ng-doc-app-components-breadcrumb.mjs +0 -50
- package/fesm2020/ng-doc-app-components-breadcrumb.mjs.map +0 -1
- package/fesm2020/ng-doc-app-components-code.mjs +0 -87
- package/fesm2020/ng-doc-app-components-code.mjs.map +0 -1
- package/fesm2020/ng-doc-app-components-demo-displayer.mjs +0 -99
- package/fesm2020/ng-doc-app-components-demo-displayer.mjs.map +0 -1
- package/fesm2020/ng-doc-app-components-demo-pane.mjs.map +0 -1
- package/fesm2020/ng-doc-app-components-demo.mjs.map +0 -1
- package/fesm2020/ng-doc-app-components-kind-icon.mjs +0 -47
- package/fesm2020/ng-doc-app-components-kind-icon.mjs.map +0 -1
- package/fesm2020/ng-doc-app-components-link.mjs +0 -40
- package/fesm2020/ng-doc-app-components-link.mjs.map +0 -1
- package/fesm2020/ng-doc-app-components-page-link.mjs +0 -53
- package/fesm2020/ng-doc-app-components-page-link.mjs.map +0 -1
- package/fesm2020/ng-doc-app-components-page.mjs +0 -143
- package/fesm2020/ng-doc-app-components-playground.mjs.map +0 -1
- package/fesm2020/ng-doc-app-components-root.mjs +0 -136
- package/fesm2020/ng-doc-app-components-root.mjs.map +0 -1
- package/fesm2020/ng-doc-app-components-search-result.mjs +0 -67
- package/fesm2020/ng-doc-app-components-search-result.mjs.map +0 -1
- package/fesm2020/ng-doc-app-components-search.mjs +0 -158
- package/fesm2020/ng-doc-app-components-theme-toggle.mjs +0 -75
- package/fesm2020/ng-doc-app-components-theme-toggle.mjs.map +0 -1
- package/fesm2020/ng-doc-app-components.mjs +0 -23
- package/fesm2020/ng-doc-app-components.mjs.map +0 -1
- package/fesm2020/ng-doc-app-constants.mjs +0 -76
- package/fesm2020/ng-doc-app-constants.mjs.map +0 -1
- package/fesm2020/ng-doc-app-directives-route-active.mjs +0 -76
- package/fesm2020/ng-doc-app-directives.mjs +0 -7
- package/fesm2020/ng-doc-app-directives.mjs.map +0 -1
- package/fesm2020/ng-doc-app-interfaces.mjs +0 -4
- package/fesm2020/ng-doc-app-interfaces.mjs.map +0 -1
- package/fesm2020/ng-doc-app-modules.mjs +0 -6
- package/fesm2020/ng-doc-app-modules.mjs.map +0 -1
- package/fesm2020/ng-doc-app-pipes-extract-value.mjs +0 -37
- package/fesm2020/ng-doc-app-pipes-extract-value.mjs.map +0 -1
- package/fesm2020/ng-doc-app-pipes-filter-by-text.mjs +0 -36
- package/fesm2020/ng-doc-app-pipes-sanitize-html.mjs +0 -40
- package/fesm2020/ng-doc-app-pipes-sanitize-html.mjs.map +0 -1
- package/fesm2020/ng-doc-app-pipes.mjs +0 -8
- package/fesm2020/ng-doc-app-pipes.mjs.map +0 -1
- package/fesm2020/ng-doc-app-processors-tooltip-processor.mjs.map +0 -1
- package/fesm2020/ng-doc-app-processors.mjs +0 -14
- package/fesm2020/ng-doc-app-processors.mjs.map +0 -1
- package/fesm2020/ng-doc-app-services-store.mjs.map +0 -1
- package/fesm2020/ng-doc-app-services.mjs +0 -8
- package/fesm2020/ng-doc-app-services.mjs.map +0 -1
- package/fesm2020/ng-doc-app-tokens.mjs +0 -41
- package/fesm2020/ng-doc-app-tokens.mjs.map +0 -1
- package/fesm2020/ng-doc-app-type-controls-boolean-control.mjs +0 -45
- package/fesm2020/ng-doc-app-type-controls-boolean-control.mjs.map +0 -1
- package/fesm2020/ng-doc-app-type-controls-number-control.mjs +0 -79
- package/fesm2020/ng-doc-app-type-controls-string-control.mjs +0 -83
- package/fesm2020/ng-doc-app-type-controls-string-control.mjs.map +0 -1
- package/fesm2020/ng-doc-app-type-controls-type-alias-control.mjs +0 -97
- package/fesm2020/ng-doc-app-type-controls.mjs +0 -9
- package/fesm2020/ng-doc-app-type-controls.mjs.map +0 -1
- package/fesm2020/ng-doc-app-types.mjs +0 -4
- package/fesm2020/ng-doc-app-types.mjs.map +0 -1
- package/fesm2020/ng-doc-app.mjs +0 -18
- package/fesm2020/ng-doc-app.mjs.map +0 -1
- /package/{esm2020 → esm2022}/classes/default-search-engine/default-search-engine.mjs +0 -0
- /package/{esm2020 → esm2022}/classes/default-search-engine/index.mjs +0 -0
- /package/{esm2020 → esm2022}/classes/default-search-engine/ng-doc-app-classes-default-search-engine.mjs +0 -0
- /package/{esm2020 → esm2022}/classes/index.mjs +0 -0
- /package/{esm2020 → esm2022}/classes/ng-doc-app-classes.mjs +0 -0
- /package/{esm2020 → esm2022}/classes/root-page/index.mjs +0 -0
- /package/{esm2020 → esm2022}/classes/root-page/ng-doc-app-classes-root-page.mjs +0 -0
- /package/{esm2020 → esm2022}/classes/root-page/root-page.mjs +0 -0
- /package/{esm2020 → esm2022}/classes/search-engine/index.mjs +0 -0
- /package/{esm2020 → esm2022}/classes/search-engine/ng-doc-app-classes-search-engine.mjs +0 -0
- /package/{esm2020 → esm2022}/classes/search-engine/search-engine.mjs +0 -0
- /package/{esm2020 → esm2022}/components/api-list/index.mjs +0 -0
- /package/{esm2020 → esm2022}/components/api-list/ng-doc-app-components-api-list.mjs +0 -0
- /package/{esm2020 → esm2022}/components/breadcrumb/index.mjs +0 -0
- /package/{esm2020 → esm2022}/components/breadcrumb/ng-doc-app-components-breadcrumb.mjs +0 -0
- /package/{esm2020 → esm2022}/components/code/index.mjs +0 -0
- /package/{esm2020 → esm2022}/components/code/ng-doc-app-components-code.mjs +0 -0
- /package/{esm2020 → esm2022}/components/demo/index.mjs +0 -0
- /package/{esm2020 → esm2022}/components/demo/ng-doc-app-components-demo.mjs +0 -0
- /package/{esm2020 → esm2022}/components/demo-displayer/index.mjs +0 -0
- /package/{esm2020 → esm2022}/components/demo-displayer/ng-doc-app-components-demo-displayer.mjs +0 -0
- /package/{esm2020 → esm2022}/components/demo-pane/index.mjs +0 -0
- /package/{esm2020 → esm2022}/components/demo-pane/ng-doc-app-components-demo-pane.mjs +0 -0
- /package/{esm2020 → esm2022}/components/index.mjs +0 -0
- /package/{esm2020 → esm2022}/components/kind-icon/index.mjs +0 -0
- /package/{esm2020 → esm2022}/components/kind-icon/ng-doc-app-components-kind-icon.mjs +0 -0
- /package/{esm2020 → esm2022}/components/link/index.mjs +0 -0
- /package/{esm2020 → esm2022}/components/link/ng-doc-app-components-link.mjs +0 -0
- /package/{esm2020 → esm2022}/components/navbar/index.mjs +0 -0
- /package/{esm2020 → esm2022}/components/navbar/ng-doc-app-components-navbar.mjs +0 -0
- /package/{esm2020 → esm2022}/components/ng-doc-app-components.mjs +0 -0
- /package/{esm2020 → esm2022}/components/page/index.mjs +0 -0
- /package/{esm2020 → esm2022}/components/page/ng-doc-app-components-page.mjs +0 -0
- /package/{esm2020 → esm2022}/components/page-link/index.mjs +0 -0
- /package/{esm2020 → esm2022}/components/page-link/ng-doc-app-components-page-link.mjs +0 -0
- /package/{esm2020 → esm2022}/components/playground/index.mjs +0 -0
- /package/{esm2020 → esm2022}/components/playground/ng-doc-app-components-playground.mjs +0 -0
- /package/{esm2020 → esm2022}/components/playground/playground-form.mjs +0 -0
- /package/{esm2020 → esm2022}/components/playground/playground-property-control.mjs +0 -0
- /package/{esm2020 → esm2022}/components/root/index.mjs +0 -0
- /package/{esm2020 → esm2022}/components/root/ng-doc-app-components-root.mjs +0 -0
- /package/{esm2020 → esm2022}/components/search/index.mjs +0 -0
- /package/{esm2020 → esm2022}/components/search/ng-doc-app-components-search.mjs +0 -0
- /package/{esm2020 → esm2022}/components/search-result/index.mjs +0 -0
- /package/{esm2020 → esm2022}/components/search-result/ng-doc-app-components-search-result.mjs +0 -0
- /package/{esm2020 → esm2022}/components/sidebar/index.mjs +0 -0
- /package/{esm2020 → esm2022}/components/sidebar/ng-doc-app-components-sidebar.mjs +0 -0
- /package/{esm2020 → esm2022}/components/theme-toggle/index.mjs +0 -0
- /package/{esm2020 → esm2022}/components/theme-toggle/ng-doc-app-components-theme-toggle.mjs +0 -0
- /package/{esm2020 → esm2022}/components/toc/index.mjs +0 -0
- /package/{esm2020 → esm2022}/components/toc/ng-doc-app-components-toc.mjs +0 -0
- /package/{esm2020 → esm2022}/constants/index.mjs +0 -0
- /package/{esm2020 → esm2022}/constants/ng-doc-app-constants.mjs +0 -0
- /package/{esm2020 → esm2022}/constants/store-keys.mjs +0 -0
- /package/{esm2020 → esm2022}/constants/themes.mjs +0 -0
- /package/{esm2020 → esm2022}/directives/code-highlighter/index.mjs +0 -0
- /package/{esm2020 → esm2022}/directives/code-highlighter/ng-doc-app-directives-code-highlighter.mjs +0 -0
- /package/{esm2020 → esm2022}/directives/index.mjs +0 -0
- /package/{esm2020 → esm2022}/directives/ng-doc-app-directives.mjs +0 -0
- /package/{esm2020 → esm2022}/directives/route-active/index.mjs +0 -0
- /package/{esm2020 → esm2022}/directives/route-active/ng-doc-app-directives-route-active.mjs +0 -0
- /package/{esm2020 → esm2022}/helpers/as-boolean.mjs +0 -0
- /package/{esm2020 → esm2022}/helpers/generate-toc.mjs +0 -0
- /package/{esm2020 → esm2022}/helpers/index.mjs +0 -0
- /package/{esm2020 → esm2022}/helpers/is-dark-os-theme.mjs +0 -0
- /package/{esm2020 → esm2022}/helpers/is-external-link.mjs +0 -0
- /package/{esm2020 → esm2022}/helpers/is-playground-property.mjs +0 -0
- /package/{esm2020 → esm2022}/helpers/ng-doc-app-helpers.mjs +0 -0
- /package/{esm2020 → esm2022}/helpers/provide-playground-demo.mjs +0 -0
- /package/{esm2020 → esm2022}/helpers/provide-search-engine.mjs +0 -0
- /package/{esm2020 → esm2022}/helpers/provide-type-control.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/application-config.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/context.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/demo-assets.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/index.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/navigation.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/ng-doc-app-interfaces.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/processor-options.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/provided-type-control.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/search-result.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/theme.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/toc-item.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/type-control-provider-options.mjs +0 -0
- /package/{esm2020 → esm2022}/interfaces/type-control.mjs +0 -0
- /package/{esm2020 → esm2022}/modules/index.mjs +0 -0
- /package/{esm2020 → esm2022}/modules/ng-doc-app-modules.mjs +0 -0
- /package/{esm2020 → esm2022}/modules/root/index.mjs +0 -0
- /package/{esm2020 → esm2022}/modules/root/ng-doc-app-modules-root.mjs +0 -0
- /package/{esm2020 → esm2022}/ng-doc-app.mjs +0 -0
- /package/{esm2020 → esm2022}/pipes/extract-value/index.mjs +0 -0
- /package/{esm2020 → esm2022}/pipes/extract-value/ng-doc-app-pipes-extract-value.mjs +0 -0
- /package/{esm2020 → esm2022}/pipes/filter-by-text/index.mjs +0 -0
- /package/{esm2020 → esm2022}/pipes/filter-by-text/ng-doc-app-pipes-filter-by-text.mjs +0 -0
- /package/{esm2020 → esm2022}/pipes/index.mjs +0 -0
- /package/{esm2020 → esm2022}/pipes/ng-doc-app-pipes.mjs +0 -0
- /package/{esm2020 → esm2022}/pipes/sanitize-html/index.mjs +0 -0
- /package/{esm2020 → esm2022}/pipes/sanitize-html/ng-doc-app-pipes-sanitize-html.mjs +0 -0
- /package/{esm2020 → esm2022}/processors/blockquote-processor/index.mjs +0 -0
- /package/{esm2020 → esm2022}/processors/blockquote-processor/ng-doc-app-processors-blockquote-processor.mjs +0 -0
- /package/{esm2020 → esm2022}/processors/code-processor/index.mjs +0 -0
- /package/{esm2020 → esm2022}/processors/code-processor/ng-doc-app-processors-code-processor.mjs +0 -0
- /package/{esm2020 → esm2022}/processors/demo-pane-processor/index.mjs +0 -0
- /package/{esm2020 → esm2022}/processors/demo-pane-processor/ng-doc-app-processors-demo-pane-processor.mjs +0 -0
- /package/{esm2020 → esm2022}/processors/demo-processor/index.mjs +0 -0
- /package/{esm2020 → esm2022}/processors/demo-processor/ng-doc-app-processors-demo-processor.mjs +0 -0
- /package/{esm2020 → esm2022}/processors/html-processor/index.mjs +0 -0
- /package/{esm2020 → esm2022}/processors/html-processor/ng-doc-app-processors-html-processor.mjs +0 -0
- /package/{esm2020 → esm2022}/processors/icon-processor/index.mjs +0 -0
- /package/{esm2020 → esm2022}/processors/icon-processor/ng-doc-app-processors-icon-processor.mjs +0 -0
- /package/{esm2020 → esm2022}/processors/index.mjs +0 -0
- /package/{esm2020 → esm2022}/processors/link-processor/index.mjs +0 -0
- /package/{esm2020 → esm2022}/processors/link-processor/ng-doc-app-processors-link-processor.mjs +0 -0
- /package/{esm2020 → esm2022}/processors/ng-doc-app-processors.mjs +0 -0
- /package/{esm2020 → esm2022}/processors/playground-processor/index.mjs +0 -0
- /package/{esm2020 → esm2022}/processors/playground-processor/ng-doc-app-processors-playground-processor.mjs +0 -0
- /package/{esm2020 → esm2022}/processors/tooltip-processor/index.mjs +0 -0
- /package/{esm2020 → esm2022}/processors/tooltip-processor/ng-doc-app-processors-tooltip-processor.mjs +0 -0
- /package/{esm2020 → esm2022}/services/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/ng-doc-app-services.mjs +0 -0
- /package/{esm2020 → esm2022}/services/sidebar/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/sidebar/ng-doc-app-services-sidebar.mjs +0 -0
- /package/{esm2020 → esm2022}/services/store/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/store/ng-doc-app-services-store.mjs +0 -0
- /package/{esm2020 → esm2022}/services/theme/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/theme/ng-doc-app-services-theme.mjs +0 -0
- /package/{esm2020 → esm2022}/tokens/api-list.mjs +0 -0
- /package/{esm2020 → esm2022}/tokens/context.mjs +0 -0
- /package/{esm2020 → esm2022}/tokens/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tokens/ng-doc-app-tokens.mjs +0 -0
- /package/{esm2020 → esm2022}/tokens/theme.mjs +0 -0
- /package/{esm2020 → esm2022}/tokens/type-control.mjs +0 -0
- /package/{esm2020 → esm2022}/type-controls/boolean-control/index.mjs +0 -0
- /package/{esm2020 → esm2022}/type-controls/boolean-control/ng-doc-app-type-controls-boolean-control.mjs +0 -0
- /package/{esm2020 → esm2022}/type-controls/index.mjs +0 -0
- /package/{esm2020 → esm2022}/type-controls/ng-doc-app-type-controls.mjs +0 -0
- /package/{esm2020 → esm2022}/type-controls/number-control/index.mjs +0 -0
- /package/{esm2020 → esm2022}/type-controls/number-control/ng-doc-app-type-controls-number-control.mjs +0 -0
- /package/{esm2020 → esm2022}/type-controls/string-control/index.mjs +0 -0
- /package/{esm2020 → esm2022}/type-controls/string-control/ng-doc-app-type-controls-string-control.mjs +0 -0
- /package/{esm2020 → esm2022}/type-controls/type-alias-control/index.mjs +0 -0
- /package/{esm2020 → esm2022}/type-controls/type-alias-control/ng-doc-app-type-controls-type-alias-control.mjs +0 -0
- /package/{esm2020 → esm2022}/types/index.mjs +0 -0
- /package/{esm2020 → esm2022}/types/ng-doc-app-types.mjs +0 -0
- /package/{esm2020 → esm2022}/types/typed-form.mjs +0 -0
- /package/{fesm2020 → fesm2022}/ng-doc-app-classes-default-search-engine.mjs +0 -0
- /package/{fesm2020 → fesm2022}/ng-doc-app-classes-default-search-engine.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-classes-root-page.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-classes-root-page.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-classes-search-engine.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-classes-search-engine.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-classes.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-classes.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-components.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-components.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-constants.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-constants.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-directives.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-directives.mjs.map +0 -0
- /package/{fesm2020 → fesm2022}/ng-doc-app-helpers.mjs +0 -0
- /package/{fesm2020 → fesm2022}/ng-doc-app-helpers.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-interfaces.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-interfaces.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-modules.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-modules.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-pipes.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-pipes.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-processors.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-processors.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-services.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-services.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-tokens.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-tokens.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-type-controls.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-type-controls.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-types.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-types.mjs.map +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app.mjs.map +0 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { __decorate, __metadata } from 'tslib';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Component, ChangeDetectionStrategy, Inject, NgModule } from '@angular/core';
|
|
4
|
+
import * as i1 from '@angular/forms';
|
|
5
|
+
import { FormBuilder, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
6
|
+
import * as i2 from '@angular/router';
|
|
7
|
+
import { ActivatedRoute, Router, RouterModule } from '@angular/router';
|
|
8
|
+
import { NG_DOC_API_LIST_TOKEN } from '@ng-doc/app/tokens';
|
|
9
|
+
import { asArray } from '@ng-doc/core/helpers/as-array';
|
|
10
|
+
import { ngDocMakePure } from '@ng-doc/ui-kit/decorators';
|
|
11
|
+
import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
|
|
12
|
+
import { debounceTime, startWith, map } from 'rxjs/operators';
|
|
13
|
+
import * as i3 from '@angular/common';
|
|
14
|
+
import { CommonModule } from '@angular/common';
|
|
15
|
+
import * as i4 from '@ng-doc/ui-kit';
|
|
16
|
+
import { NgDocTextModule, NgDocTooltipModule, NgDocInputWrapperModule, NgDocInputStringModule, NgDocComboboxModule, NgDocOptionModule, NgDocDataModule, NgDocListModule, NgDocLabelModule, NgDocIconModule, NgDocAutofocusModule } from '@ng-doc/ui-kit';
|
|
17
|
+
import * as i5 from '@ng-doc/app/components/kind-icon';
|
|
18
|
+
import { NgDocKindIconModule } from '@ng-doc/app/components/kind-icon';
|
|
19
|
+
|
|
20
|
+
let NgDocApiListComponent = class NgDocApiListComponent {
|
|
21
|
+
constructor(apiList, formBuilder, route, router) {
|
|
22
|
+
this.apiList = apiList;
|
|
23
|
+
this.formBuilder = formBuilder;
|
|
24
|
+
this.route = route;
|
|
25
|
+
this.router = router;
|
|
26
|
+
this.formGroup = this.formBuilder.group({
|
|
27
|
+
filter: [''],
|
|
28
|
+
scope: [''],
|
|
29
|
+
type: [''],
|
|
30
|
+
});
|
|
31
|
+
this.route.queryParamMap.pipe(untilDestroyed(this)).subscribe((paramMap) => this.formGroup.setValue({
|
|
32
|
+
filter: paramMap.get('filter') || null,
|
|
33
|
+
scope: paramMap.get('scope') || null,
|
|
34
|
+
type: paramMap.get('type') || null,
|
|
35
|
+
}));
|
|
36
|
+
this.formGroup.valueChanges
|
|
37
|
+
.pipe(untilDestroyed(this))
|
|
38
|
+
.subscribe((formValue) => this.router.navigate([], {
|
|
39
|
+
relativeTo: this.route,
|
|
40
|
+
queryParams: formValue,
|
|
41
|
+
queryParamsHandling: 'merge',
|
|
42
|
+
}));
|
|
43
|
+
this.api$ = this.formGroup.valueChanges.pipe(debounceTime(100), startWith(null), map(() => this.formGroup.value), map((form) => this.apiList
|
|
44
|
+
.filter((api) => !form?.scope || api.title === form?.scope)
|
|
45
|
+
.map((api) => ({
|
|
46
|
+
...api,
|
|
47
|
+
items: api.items
|
|
48
|
+
.filter((item) => item.name.toLowerCase().includes(form?.filter?.toLowerCase() ?? '') &&
|
|
49
|
+
(!form?.type || item.type === form?.type))
|
|
50
|
+
.sort((a, b) => a.type.localeCompare(b.type) || a.name.localeCompare(b.name)),
|
|
51
|
+
}))
|
|
52
|
+
.filter((api) => api.items.length)), untilDestroyed(this));
|
|
53
|
+
}
|
|
54
|
+
get scopes() {
|
|
55
|
+
return asArray(new Set(this.apiList.flatMap((api) => api.title))).sort();
|
|
56
|
+
}
|
|
57
|
+
get types() {
|
|
58
|
+
return asArray(new Set(this.apiList.flatMap((api) => api.items).flatMap((item) => item.type))).sort();
|
|
59
|
+
}
|
|
60
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocApiListComponent, deps: [{ token: NG_DOC_API_LIST_TOKEN }, { token: i1.FormBuilder }, { token: i2.ActivatedRoute }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
61
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgDocApiListComponent, selector: "ng-doc-api-list", ngImport: i0, template: "<h1 ng-doc-text>API List</h1>\n<div class=\"ng-doc-api-list-wrapper\" *ngIf=\"api$ | async as api\">\n\t<form class=\"ng-doc-api-filter\" [formGroup]=\"formGroup\">\n\t\t<label class=\"ng-doc-api-filter-item\" ng-doc-label=\"Filter\">\n\t\t\t<ng-doc-input-wrapper [leftContent]=\"leftContent\">\n\t\t\t\t<ng-template #leftContent>\n\t\t\t\t\t<ng-doc-icon icon=\"search\"></ng-doc-icon>\n\t\t\t\t</ng-template>\n\t\t\t\t<input\n\t\t\t\t\tngDocInputString\n\t\t\t\t\t[formControl]=\"formGroup.controls.filter\"\n\t\t\t\t\tplaceholder=\"Type the name\"\n\t\t\t\t\tngDocAutofocus\n\t\t\t\t/>\n\t\t\t</ng-doc-input-wrapper>\n\t\t</label>\n\n\t\t<label class=\"ng-doc-api-filter-item\" ng-doc-label=\"Scope\" *ngIf=\"scopes.length\">\n\t\t\t<ng-doc-combobox\n\t\t\t\t[formControl]=\"formGroup.controls.scope\"\n\t\t\t\t[valueContent]=\"comboboxScopeItem\"\n\t\t\t\t[readonly]=\"true\"\n\t\t\t\tplaceholder=\"Choose the scope\"\n\t\t\t>\n\t\t\t\t<ng-doc-list *ngDocData>\n\t\t\t\t\t<ng-doc-option *ngFor=\"let scope of scopes\" [value]=\"scope\">\n\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"comboboxScopeItem; context: {$implicit: scope}\"></ng-container>\n\t\t\t\t\t</ng-doc-option>\n\t\t\t\t</ng-doc-list>\n\t\t\t\t<ng-template let-value #comboboxScopeItem>\n\t\t\t\t\t{{ value }}\n\t\t\t\t</ng-template>\n\t\t\t</ng-doc-combobox>\n\t\t</label>\n\n\t\t<label class=\"ng-doc-api-filter-item\" ng-doc-label=\"Type\">\n\t\t\t<ng-doc-combobox\n\t\t\t\t[formControl]=\"formGroup.controls.type\"\n\t\t\t\t[valueContent]=\"comboboxTypeItem\"\n\t\t\t\t[readonly]=\"true\"\n\t\t\t\tplaceholder=\"Choose the entity type\"\n\t\t\t>\n\t\t\t\t<ng-doc-list *ngDocData>\n\t\t\t\t\t<ng-doc-option *ngFor=\"let type of types\" [value]=\"type\">\n\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"comboboxTypeItem; context: {$implicit: type}\"></ng-container>\n\t\t\t\t\t</ng-doc-option>\n\t\t\t\t</ng-doc-list>\n\t\t\t\t<ng-template let-value #comboboxTypeItem>\n\t\t\t\t\t<div ng-doc-text>\n\t\t\t\t\t\t<ng-doc-kind-icon\n\t\t\t\t\t\t\t[kind]=\"value\"\n\t\t\t\t\t\t\t[ngDocTooltip]=\"value\"\n\t\t\t\t\t\t\t[positions]=\"['left-center', 'right-center']\"\n\t\t\t\t\t\t\tngDocTextLeft\n\t\t\t\t\t\t>\n\t\t\t\t\t\t</ng-doc-kind-icon>\n\t\t\t\t\t\t{{ value }}\n\t\t\t\t\t</div>\n\t\t\t\t</ng-template>\n\t\t\t</ng-doc-combobox>\n\t\t</label>\n\t</form>\n\t<div class=\"ng-doc-api-list\">\n\t\t<div class=\"ng-doc-api-scope\" *ngFor=\"let scope of api\">\n\t\t\t<h3 class=\"ng-doc-scope-title\" ng-doc-text>{{ scope.title }}</h3>\n\t\t\t<ul class=\"ng-doc-scope-items\" *ngIf=\"scope.items.length\">\n\t\t\t\t<li class=\"ng-doc-scope-item\" *ngFor=\"let apiReference of scope.items\">\n\t\t\t\t\t<a class=\"ng-doc-scope-item-link\" [routerLink]=\"[apiReference.route]\">\n\t\t\t\t\t\t<ng-doc-kind-icon [kind]=\"apiReference.type\" [ngDocTooltip]=\"apiReference.type\">\n\t\t\t\t\t\t</ng-doc-kind-icon>\n\t\t\t\t\t\t{{ apiReference.name }}\n\t\t\t\t\t</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t</div>\n</div>\n", styles: [":host h1{margin-top:0}:host .ng-doc-api-list-wrapper .ng-doc-api-filter{display:flex;margin-top:calc(var(--ng-doc-base-gutter) * 3)}:host .ng-doc-api-list-wrapper .ng-doc-api-filter .ng-doc-api-filter-item{width:200px}:host .ng-doc-api-list-wrapper .ng-doc-api-filter .ng-doc-api-filter-item:not(:last-child){margin-right:calc(var(--ng-doc-base-gutter) * 2)}:host .ng-doc-api-list-wrapper .ng-doc-api-list{margin-top:calc(var(--ng-doc-base-gutter) * 2)}:host .ng-doc-api-list-wrapper .ng-doc-api-list .ng-doc-api-scope{display:flex;flex-direction:column}:host .ng-doc-api-list-wrapper .ng-doc-api-list .ng-doc-api-scope .ng-doc-scope-items{margin-top:calc(var(--ng-doc-base-gutter) * 3);list-style:none;padding:0}:host .ng-doc-api-list-wrapper .ng-doc-api-list .ng-doc-api-scope .ng-doc-scope-items .ng-doc-scope-item{margin:var(--ng-doc-base-gutter) 0;float:left;width:33%;overflow:hidden;min-width:330px;text-overflow:ellipsis;white-space:nowrap}:host .ng-doc-api-list-wrapper .ng-doc-api-list .ng-doc-api-scope .ng-doc-scope-items .ng-doc-scope-item .ng-doc-scope-item-link{display:flex;align-items:center;color:var(--ng-doc-text);text-decoration:none}:host .ng-doc-api-list-wrapper .ng-doc-api-list .ng-doc-api-scope .ng-doc-scope-items .ng-doc-scope-item .ng-doc-scope-item-link:hover{text-decoration:underline}:host .ng-doc-api-list-wrapper .ng-doc-api-list .ng-doc-api-scope .ng-doc-scope-items .ng-doc-scope-item .ng-doc-scope-item-link ng-doc-kind-icon{margin-right:var(--ng-doc-base-gutter);text-decoration:none!important}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i4.NgDocTextComponent, selector: "[ng-doc-text]", inputs: ["size", "color", "align", "absoluteContent"] }, { kind: "directive", type: i4.NgDocTextLeftDirective, selector: "[ngDocTextLeft]" }, { kind: "component", type: i5.NgDocKindIconComponent, selector: "ng-doc-kind-icon", inputs: ["kind", "type"] }, { kind: "directive", type: i4.NgDocTooltipDirective, selector: "[ngDocTooltip]", inputs: ["ngDocTooltip", "delay", "displayOrigin", "pointerOrigin", "positions", "canOpen", "panelClass", "minHeight", "maxHeight", "height", "minWidth", "maxWidth", "width"], outputs: ["beforeOpen", "afterOpen", "beforeClose", "afterClose"], exportAs: ["ngDocTooltip"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i4.NgDocInputWrapperComponent, selector: "ng-doc-input-wrapper", inputs: ["blurContent", "blurContext", "leftContent", "rightContent", "align"] }, { kind: "directive", type: i4.NgDocInputStringDirective, selector: "input[ngDocInputString]" }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "component", type: i4.NgDocComboboxComponent, selector: "ng-doc-combobox", inputs: ["readonly", "placeholder", "clearButton", "rightContent", "valueContent"] }, { kind: "component", type: i4.NgDocOptionComponent, selector: "ng-doc-option" }, { kind: "directive", type: i4.NgDocDataDirective, selector: "[ngDocData]" }, { kind: "component", type: i4.NgDocListComponent, selector: "ng-doc-list" }, { kind: "component", type: i4.NgDocLabelComponent, selector: "label[ng-doc-label]", inputs: ["ng-doc-label", "align"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i4.NgDocIconComponent, selector: "ng-doc-icon", inputs: ["icon", "size"] }, { kind: "directive", type: i4.NgDocAutofocusDirective, selector: "[ngDocAutofocus]", inputs: ["selectAll"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
62
|
+
};
|
|
63
|
+
__decorate([
|
|
64
|
+
ngDocMakePure,
|
|
65
|
+
__metadata("design:type", Array),
|
|
66
|
+
__metadata("design:paramtypes", [])
|
|
67
|
+
], NgDocApiListComponent.prototype, "scopes", null);
|
|
68
|
+
__decorate([
|
|
69
|
+
ngDocMakePure,
|
|
70
|
+
__metadata("design:type", Array),
|
|
71
|
+
__metadata("design:paramtypes", [])
|
|
72
|
+
], NgDocApiListComponent.prototype, "types", null);
|
|
73
|
+
NgDocApiListComponent = __decorate([
|
|
74
|
+
UntilDestroy(),
|
|
75
|
+
__metadata("design:paramtypes", [Array, FormBuilder,
|
|
76
|
+
ActivatedRoute,
|
|
77
|
+
Router])
|
|
78
|
+
], NgDocApiListComponent);
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocApiListComponent, decorators: [{
|
|
80
|
+
type: Component,
|
|
81
|
+
args: [{ selector: 'ng-doc-api-list', changeDetection: ChangeDetectionStrategy.OnPush, template: "<h1 ng-doc-text>API List</h1>\n<div class=\"ng-doc-api-list-wrapper\" *ngIf=\"api$ | async as api\">\n\t<form class=\"ng-doc-api-filter\" [formGroup]=\"formGroup\">\n\t\t<label class=\"ng-doc-api-filter-item\" ng-doc-label=\"Filter\">\n\t\t\t<ng-doc-input-wrapper [leftContent]=\"leftContent\">\n\t\t\t\t<ng-template #leftContent>\n\t\t\t\t\t<ng-doc-icon icon=\"search\"></ng-doc-icon>\n\t\t\t\t</ng-template>\n\t\t\t\t<input\n\t\t\t\t\tngDocInputString\n\t\t\t\t\t[formControl]=\"formGroup.controls.filter\"\n\t\t\t\t\tplaceholder=\"Type the name\"\n\t\t\t\t\tngDocAutofocus\n\t\t\t\t/>\n\t\t\t</ng-doc-input-wrapper>\n\t\t</label>\n\n\t\t<label class=\"ng-doc-api-filter-item\" ng-doc-label=\"Scope\" *ngIf=\"scopes.length\">\n\t\t\t<ng-doc-combobox\n\t\t\t\t[formControl]=\"formGroup.controls.scope\"\n\t\t\t\t[valueContent]=\"comboboxScopeItem\"\n\t\t\t\t[readonly]=\"true\"\n\t\t\t\tplaceholder=\"Choose the scope\"\n\t\t\t>\n\t\t\t\t<ng-doc-list *ngDocData>\n\t\t\t\t\t<ng-doc-option *ngFor=\"let scope of scopes\" [value]=\"scope\">\n\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"comboboxScopeItem; context: {$implicit: scope}\"></ng-container>\n\t\t\t\t\t</ng-doc-option>\n\t\t\t\t</ng-doc-list>\n\t\t\t\t<ng-template let-value #comboboxScopeItem>\n\t\t\t\t\t{{ value }}\n\t\t\t\t</ng-template>\n\t\t\t</ng-doc-combobox>\n\t\t</label>\n\n\t\t<label class=\"ng-doc-api-filter-item\" ng-doc-label=\"Type\">\n\t\t\t<ng-doc-combobox\n\t\t\t\t[formControl]=\"formGroup.controls.type\"\n\t\t\t\t[valueContent]=\"comboboxTypeItem\"\n\t\t\t\t[readonly]=\"true\"\n\t\t\t\tplaceholder=\"Choose the entity type\"\n\t\t\t>\n\t\t\t\t<ng-doc-list *ngDocData>\n\t\t\t\t\t<ng-doc-option *ngFor=\"let type of types\" [value]=\"type\">\n\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"comboboxTypeItem; context: {$implicit: type}\"></ng-container>\n\t\t\t\t\t</ng-doc-option>\n\t\t\t\t</ng-doc-list>\n\t\t\t\t<ng-template let-value #comboboxTypeItem>\n\t\t\t\t\t<div ng-doc-text>\n\t\t\t\t\t\t<ng-doc-kind-icon\n\t\t\t\t\t\t\t[kind]=\"value\"\n\t\t\t\t\t\t\t[ngDocTooltip]=\"value\"\n\t\t\t\t\t\t\t[positions]=\"['left-center', 'right-center']\"\n\t\t\t\t\t\t\tngDocTextLeft\n\t\t\t\t\t\t>\n\t\t\t\t\t\t</ng-doc-kind-icon>\n\t\t\t\t\t\t{{ value }}\n\t\t\t\t\t</div>\n\t\t\t\t</ng-template>\n\t\t\t</ng-doc-combobox>\n\t\t</label>\n\t</form>\n\t<div class=\"ng-doc-api-list\">\n\t\t<div class=\"ng-doc-api-scope\" *ngFor=\"let scope of api\">\n\t\t\t<h3 class=\"ng-doc-scope-title\" ng-doc-text>{{ scope.title }}</h3>\n\t\t\t<ul class=\"ng-doc-scope-items\" *ngIf=\"scope.items.length\">\n\t\t\t\t<li class=\"ng-doc-scope-item\" *ngFor=\"let apiReference of scope.items\">\n\t\t\t\t\t<a class=\"ng-doc-scope-item-link\" [routerLink]=\"[apiReference.route]\">\n\t\t\t\t\t\t<ng-doc-kind-icon [kind]=\"apiReference.type\" [ngDocTooltip]=\"apiReference.type\">\n\t\t\t\t\t\t</ng-doc-kind-icon>\n\t\t\t\t\t\t{{ apiReference.name }}\n\t\t\t\t\t</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t</div>\n</div>\n", styles: [":host h1{margin-top:0}:host .ng-doc-api-list-wrapper .ng-doc-api-filter{display:flex;margin-top:calc(var(--ng-doc-base-gutter) * 3)}:host .ng-doc-api-list-wrapper .ng-doc-api-filter .ng-doc-api-filter-item{width:200px}:host .ng-doc-api-list-wrapper .ng-doc-api-filter .ng-doc-api-filter-item:not(:last-child){margin-right:calc(var(--ng-doc-base-gutter) * 2)}:host .ng-doc-api-list-wrapper .ng-doc-api-list{margin-top:calc(var(--ng-doc-base-gutter) * 2)}:host .ng-doc-api-list-wrapper .ng-doc-api-list .ng-doc-api-scope{display:flex;flex-direction:column}:host .ng-doc-api-list-wrapper .ng-doc-api-list .ng-doc-api-scope .ng-doc-scope-items{margin-top:calc(var(--ng-doc-base-gutter) * 3);list-style:none;padding:0}:host .ng-doc-api-list-wrapper .ng-doc-api-list .ng-doc-api-scope .ng-doc-scope-items .ng-doc-scope-item{margin:var(--ng-doc-base-gutter) 0;float:left;width:33%;overflow:hidden;min-width:330px;text-overflow:ellipsis;white-space:nowrap}:host .ng-doc-api-list-wrapper .ng-doc-api-list .ng-doc-api-scope .ng-doc-scope-items .ng-doc-scope-item .ng-doc-scope-item-link{display:flex;align-items:center;color:var(--ng-doc-text);text-decoration:none}:host .ng-doc-api-list-wrapper .ng-doc-api-list .ng-doc-api-scope .ng-doc-scope-items .ng-doc-scope-item .ng-doc-scope-item-link:hover{text-decoration:underline}:host .ng-doc-api-list-wrapper .ng-doc-api-list .ng-doc-api-scope .ng-doc-scope-items .ng-doc-scope-item .ng-doc-scope-item-link ng-doc-kind-icon{margin-right:var(--ng-doc-base-gutter);text-decoration:none!important}\n"] }]
|
|
82
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
83
|
+
type: Inject,
|
|
84
|
+
args: [NG_DOC_API_LIST_TOKEN]
|
|
85
|
+
}] }, { type: i1.FormBuilder }, { type: i2.ActivatedRoute }, { type: i2.Router }]; }, propDecorators: { scopes: [], types: [] } });
|
|
86
|
+
|
|
87
|
+
class NgDocApiListModule {
|
|
88
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocApiListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
89
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: NgDocApiListModule, declarations: [NgDocApiListComponent], imports: [CommonModule,
|
|
90
|
+
NgDocTextModule,
|
|
91
|
+
NgDocKindIconModule,
|
|
92
|
+
NgDocTooltipModule,
|
|
93
|
+
RouterModule,
|
|
94
|
+
NgDocInputWrapperModule,
|
|
95
|
+
NgDocInputStringModule,
|
|
96
|
+
FormsModule,
|
|
97
|
+
NgDocComboboxModule,
|
|
98
|
+
NgDocOptionModule,
|
|
99
|
+
NgDocDataModule,
|
|
100
|
+
NgDocListModule,
|
|
101
|
+
NgDocLabelModule,
|
|
102
|
+
ReactiveFormsModule,
|
|
103
|
+
NgDocIconModule,
|
|
104
|
+
NgDocAutofocusModule], exports: [NgDocApiListComponent] }); }
|
|
105
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocApiListModule, imports: [CommonModule,
|
|
106
|
+
NgDocTextModule,
|
|
107
|
+
NgDocKindIconModule,
|
|
108
|
+
NgDocTooltipModule,
|
|
109
|
+
RouterModule,
|
|
110
|
+
NgDocInputWrapperModule,
|
|
111
|
+
NgDocInputStringModule,
|
|
112
|
+
FormsModule,
|
|
113
|
+
NgDocComboboxModule,
|
|
114
|
+
NgDocOptionModule,
|
|
115
|
+
NgDocDataModule,
|
|
116
|
+
NgDocListModule,
|
|
117
|
+
NgDocLabelModule,
|
|
118
|
+
ReactiveFormsModule,
|
|
119
|
+
NgDocIconModule,
|
|
120
|
+
NgDocAutofocusModule] }); }
|
|
121
|
+
}
|
|
122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocApiListModule, decorators: [{
|
|
123
|
+
type: NgModule,
|
|
124
|
+
args: [{
|
|
125
|
+
declarations: [NgDocApiListComponent],
|
|
126
|
+
imports: [
|
|
127
|
+
CommonModule,
|
|
128
|
+
NgDocTextModule,
|
|
129
|
+
NgDocKindIconModule,
|
|
130
|
+
NgDocTooltipModule,
|
|
131
|
+
RouterModule,
|
|
132
|
+
NgDocInputWrapperModule,
|
|
133
|
+
NgDocInputStringModule,
|
|
134
|
+
FormsModule,
|
|
135
|
+
NgDocComboboxModule,
|
|
136
|
+
NgDocOptionModule,
|
|
137
|
+
NgDocDataModule,
|
|
138
|
+
NgDocListModule,
|
|
139
|
+
NgDocLabelModule,
|
|
140
|
+
ReactiveFormsModule,
|
|
141
|
+
NgDocIconModule,
|
|
142
|
+
NgDocAutofocusModule,
|
|
143
|
+
],
|
|
144
|
+
exports: [NgDocApiListComponent],
|
|
145
|
+
}]
|
|
146
|
+
}] });
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Generated bundle index. Do not edit.
|
|
150
|
+
*/
|
|
151
|
+
|
|
152
|
+
export { NgDocApiListComponent, NgDocApiListModule };
|
|
153
|
+
//# sourceMappingURL=ng-doc-app-components-api-list.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-app-components-api-list.mjs","sources":["../../../../libs/app/components/api-list/api-list.component.ts","../../../../libs/app/components/api-list/api-list.component.html","../../../../libs/app/components/api-list/api-list.module.ts","../../../../libs/app/components/api-list/ng-doc-app-components-api-list.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Inject} from '@angular/core';\nimport {FormBuilder, FormControl, FormGroup} from '@angular/forms';\nimport {ActivatedRoute, ParamMap, Router} from '@angular/router';\nimport {NG_DOC_API_LIST_TOKEN} from '@ng-doc/app/tokens';\nimport {NgDocFormPartialValue} from '@ng-doc/app/types';\nimport {asArray} from '@ng-doc/core/helpers/as-array';\nimport {NgDocApiList, NgDocApiListItem} from '@ng-doc/core/interfaces';\nimport {ngDocMakePure} from '@ng-doc/ui-kit/decorators';\nimport {UntilDestroy, untilDestroyed} from '@ngneat/until-destroy';\nimport {Observable} from 'rxjs';\nimport {debounceTime, map, startWith} from 'rxjs/operators';\n\ninterface ApiFilterForm {\n\tfilter: FormControl<string | null>;\n\tscope: FormControl<string | null>;\n\ttype: FormControl<string | null>;\n}\n\n@Component({\n\tselector: 'ng-doc-api-list',\n\ttemplateUrl: './api-list.component.html',\n\tstyleUrls: ['./api-list.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\n@UntilDestroy()\nexport class NgDocApiListComponent {\n\tformGroup: FormGroup<ApiFilterForm>;\n\tapi$: Observable<NgDocApiList[]>;\n\n\tconstructor(\n\t\t@Inject(NG_DOC_API_LIST_TOKEN)\n\t\tprivate readonly apiList: NgDocApiList[],\n\t\tprivate readonly formBuilder: FormBuilder,\n\t\tprivate readonly route: ActivatedRoute,\n\t\tprivate readonly router: Router,\n\t) {\n\t\tthis.formGroup = this.formBuilder.group({\n\t\t\tfilter: [''],\n\t\t\tscope: [''],\n\t\t\ttype: [''],\n\t\t});\n\n\t\tthis.route.queryParamMap.pipe(untilDestroyed(this)).subscribe((paramMap: ParamMap) =>\n\t\t\tthis.formGroup.setValue({\n\t\t\t\tfilter: paramMap.get('filter') || null,\n\t\t\t\tscope: paramMap.get('scope') || null,\n\t\t\t\ttype: paramMap.get('type') || null,\n\t\t\t}),\n\t\t);\n\n\t\tthis.formGroup.valueChanges\n\t\t\t.pipe(untilDestroyed(this))\n\t\t\t.subscribe((formValue: NgDocFormPartialValue<typeof this.formGroup>) =>\n\t\t\t\tthis.router.navigate([], {\n\t\t\t\t\trelativeTo: this.route,\n\t\t\t\t\tqueryParams: formValue,\n\t\t\t\t\tqueryParamsHandling: 'merge',\n\t\t\t\t}),\n\t\t\t);\n\n\t\tthis.api$ = this.formGroup.valueChanges.pipe(\n\t\t\tdebounceTime(100),\n\t\t\tstartWith(null),\n\t\t\tmap(() => this.formGroup.value),\n\t\t\tmap((form: NgDocFormPartialValue<typeof this.formGroup>) =>\n\t\t\t\tthis.apiList\n\t\t\t\t\t.filter((api: NgDocApiList) => !form?.scope || api.title === form?.scope)\n\t\t\t\t\t.map((api: NgDocApiList) => ({\n\t\t\t\t\t\t...api,\n\t\t\t\t\t\titems: api.items\n\t\t\t\t\t\t\t.filter(\n\t\t\t\t\t\t\t\t(item: NgDocApiListItem) =>\n\t\t\t\t\t\t\t\t\titem.name.toLowerCase().includes(form?.filter?.toLowerCase() ?? '') &&\n\t\t\t\t\t\t\t\t\t(!form?.type || item.type === form?.type),\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t.sort(\n\t\t\t\t\t\t\t\t(a: NgDocApiListItem, b: NgDocApiListItem) =>\n\t\t\t\t\t\t\t\t\ta.type.localeCompare(b.type) || a.name.localeCompare(b.name),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t}))\n\t\t\t\t\t.filter((api: NgDocApiList) => api.items.length),\n\t\t\t),\n\t\t\tuntilDestroyed(this),\n\t\t);\n\t}\n\n\t@ngDocMakePure\n\tget scopes(): string[] {\n\t\treturn asArray(new Set(this.apiList.flatMap((api: NgDocApiList) => api.title))).sort();\n\t}\n\n\t@ngDocMakePure\n\tget types(): string[] {\n\t\treturn asArray(\n\t\t\tnew Set(\n\t\t\t\tthis.apiList.flatMap((api: NgDocApiList) => api.items).flatMap((item: NgDocApiListItem) => item.type),\n\t\t\t),\n\t\t).sort();\n\t}\n}\n","<h1 ng-doc-text>API List</h1>\n<div class=\"ng-doc-api-list-wrapper\" *ngIf=\"api$ | async as api\">\n\t<form class=\"ng-doc-api-filter\" [formGroup]=\"formGroup\">\n\t\t<label class=\"ng-doc-api-filter-item\" ng-doc-label=\"Filter\">\n\t\t\t<ng-doc-input-wrapper [leftContent]=\"leftContent\">\n\t\t\t\t<ng-template #leftContent>\n\t\t\t\t\t<ng-doc-icon icon=\"search\"></ng-doc-icon>\n\t\t\t\t</ng-template>\n\t\t\t\t<input\n\t\t\t\t\tngDocInputString\n\t\t\t\t\t[formControl]=\"formGroup.controls.filter\"\n\t\t\t\t\tplaceholder=\"Type the name\"\n\t\t\t\t\tngDocAutofocus\n\t\t\t\t/>\n\t\t\t</ng-doc-input-wrapper>\n\t\t</label>\n\n\t\t<label class=\"ng-doc-api-filter-item\" ng-doc-label=\"Scope\" *ngIf=\"scopes.length\">\n\t\t\t<ng-doc-combobox\n\t\t\t\t[formControl]=\"formGroup.controls.scope\"\n\t\t\t\t[valueContent]=\"comboboxScopeItem\"\n\t\t\t\t[readonly]=\"true\"\n\t\t\t\tplaceholder=\"Choose the scope\"\n\t\t\t>\n\t\t\t\t<ng-doc-list *ngDocData>\n\t\t\t\t\t<ng-doc-option *ngFor=\"let scope of scopes\" [value]=\"scope\">\n\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"comboboxScopeItem; context: {$implicit: scope}\"></ng-container>\n\t\t\t\t\t</ng-doc-option>\n\t\t\t\t</ng-doc-list>\n\t\t\t\t<ng-template let-value #comboboxScopeItem>\n\t\t\t\t\t{{ value }}\n\t\t\t\t</ng-template>\n\t\t\t</ng-doc-combobox>\n\t\t</label>\n\n\t\t<label class=\"ng-doc-api-filter-item\" ng-doc-label=\"Type\">\n\t\t\t<ng-doc-combobox\n\t\t\t\t[formControl]=\"formGroup.controls.type\"\n\t\t\t\t[valueContent]=\"comboboxTypeItem\"\n\t\t\t\t[readonly]=\"true\"\n\t\t\t\tplaceholder=\"Choose the entity type\"\n\t\t\t>\n\t\t\t\t<ng-doc-list *ngDocData>\n\t\t\t\t\t<ng-doc-option *ngFor=\"let type of types\" [value]=\"type\">\n\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"comboboxTypeItem; context: {$implicit: type}\"></ng-container>\n\t\t\t\t\t</ng-doc-option>\n\t\t\t\t</ng-doc-list>\n\t\t\t\t<ng-template let-value #comboboxTypeItem>\n\t\t\t\t\t<div ng-doc-text>\n\t\t\t\t\t\t<ng-doc-kind-icon\n\t\t\t\t\t\t\t[kind]=\"value\"\n\t\t\t\t\t\t\t[ngDocTooltip]=\"value\"\n\t\t\t\t\t\t\t[positions]=\"['left-center', 'right-center']\"\n\t\t\t\t\t\t\tngDocTextLeft\n\t\t\t\t\t\t>\n\t\t\t\t\t\t</ng-doc-kind-icon>\n\t\t\t\t\t\t{{ value }}\n\t\t\t\t\t</div>\n\t\t\t\t</ng-template>\n\t\t\t</ng-doc-combobox>\n\t\t</label>\n\t</form>\n\t<div class=\"ng-doc-api-list\">\n\t\t<div class=\"ng-doc-api-scope\" *ngFor=\"let scope of api\">\n\t\t\t<h3 class=\"ng-doc-scope-title\" ng-doc-text>{{ scope.title }}</h3>\n\t\t\t<ul class=\"ng-doc-scope-items\" *ngIf=\"scope.items.length\">\n\t\t\t\t<li class=\"ng-doc-scope-item\" *ngFor=\"let apiReference of scope.items\">\n\t\t\t\t\t<a class=\"ng-doc-scope-item-link\" [routerLink]=\"[apiReference.route]\">\n\t\t\t\t\t\t<ng-doc-kind-icon [kind]=\"apiReference.type\" [ngDocTooltip]=\"apiReference.type\">\n\t\t\t\t\t\t</ng-doc-kind-icon>\n\t\t\t\t\t\t{{ apiReference.name }}\n\t\t\t\t\t</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t</div>\n</div>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {RouterModule} from '@angular/router';\nimport {NgDocKindIconModule} from '@ng-doc/app/components/kind-icon';\nimport {\n\tNgDocAutofocusModule,\n\tNgDocComboboxModule,\n\tNgDocDataModule,\n\tNgDocIconModule,\n\tNgDocInputStringModule,\n\tNgDocInputWrapperModule,\n\tNgDocLabelModule,\n\tNgDocListModule,\n\tNgDocOptionModule,\n\tNgDocTextModule,\n\tNgDocTooltipModule,\n} from '@ng-doc/ui-kit';\n\nimport {NgDocApiListComponent} from './api-list.component';\n\n@NgModule({\n\tdeclarations: [NgDocApiListComponent],\n\timports: [\n\t\tCommonModule,\n\t\tNgDocTextModule,\n\t\tNgDocKindIconModule,\n\t\tNgDocTooltipModule,\n\t\tRouterModule,\n\t\tNgDocInputWrapperModule,\n\t\tNgDocInputStringModule,\n\t\tFormsModule,\n\t\tNgDocComboboxModule,\n\t\tNgDocOptionModule,\n\t\tNgDocDataModule,\n\t\tNgDocListModule,\n\t\tNgDocLabelModule,\n\t\tReactiveFormsModule,\n\t\tNgDocIconModule,\n\t\tNgDocAutofocusModule,\n\t],\n\texports: [NgDocApiListComponent],\n})\nexport class NgDocApiListModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAyBa,IAAA,qBAAqB,GAA3B,MAAM,qBAAqB,CAAA;AAIjC,IAAA,WAAA,CAEkB,OAAuB,EACvB,WAAwB,EACxB,KAAqB,EACrB,MAAc,EAAA;QAHd,IAAO,CAAA,OAAA,GAAP,OAAO,CAAgB;QACvB,IAAW,CAAA,WAAA,GAAX,WAAW,CAAa;QACxB,IAAK,CAAA,KAAA,GAAL,KAAK,CAAgB;QACrB,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QAE/B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;YACvC,MAAM,EAAE,CAAC,EAAE,CAAC;YACZ,KAAK,EAAE,CAAC,EAAE,CAAC;YACX,IAAI,EAAE,CAAC,EAAE,CAAC;AACV,SAAA,CAAC,CAAC;QAEH,IAAI,CAAC,KAAK,CAA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BAAA,CAAA;;;AC1CD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ng-doc-app-components-api-list.mjs","sources":["../../../../libs/app/components/api-list/api-list.component.ts","../../../../libs/app/components/api-list/api-list.component.html","../../../../libs/app/components/api-list/api-list.module.ts","../../../../libs/app/components/api-list/ng-doc-app-components-api-list.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Inject} from '@angular/core';\nimport {FormBuilder, FormControl, FormGroup} from '@angular/forms';\nimport {ActivatedRoute, ParamMap, Router} from '@angular/router';\nimport {NG_DOC_API_LIST_TOKEN} from '@ng-doc/app/tokens';\nimport {NgDocFormPartialValue} from '@ng-doc/app/types';\nimport {asArray} from '@ng-doc/core/helpers/as-array';\nimport {NgDocApiList, NgDocApiListItem} from '@ng-doc/core/interfaces';\nimport {ngDocMakePure} from '@ng-doc/ui-kit/decorators';\nimport {UntilDestroy, untilDestroyed} from '@ngneat/until-destroy';\nimport {Observable} from 'rxjs';\nimport {debounceTime, map, startWith} from 'rxjs/operators';\n\ninterface ApiFilterForm {\n\tfilter: FormControl<string | null>;\n\tscope: FormControl<string | null>;\n\ttype: FormControl<string | null>;\n}\n\n@Component({\n\tselector: 'ng-doc-api-list',\n\ttemplateUrl: './api-list.component.html',\n\tstyleUrls: ['./api-list.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\n@UntilDestroy()\nexport class NgDocApiListComponent {\n\tformGroup: FormGroup<ApiFilterForm>;\n\tapi$: Observable<NgDocApiList[]>;\n\n\tconstructor(\n\t\t@Inject(NG_DOC_API_LIST_TOKEN)\n\t\tprivate readonly apiList: NgDocApiList[],\n\t\tprivate readonly formBuilder: FormBuilder,\n\t\tprivate readonly route: ActivatedRoute,\n\t\tprivate readonly router: Router,\n\t) {\n\t\tthis.formGroup = this.formBuilder.group({\n\t\t\tfilter: [''],\n\t\t\tscope: [''],\n\t\t\ttype: [''],\n\t\t});\n\n\t\tthis.route.queryParamMap.pipe(untilDestroyed(this)).subscribe((paramMap: ParamMap) =>\n\t\t\tthis.formGroup.setValue({\n\t\t\t\tfilter: paramMap.get('filter') || null,\n\t\t\t\tscope: paramMap.get('scope') || null,\n\t\t\t\ttype: paramMap.get('type') || null,\n\t\t\t}),\n\t\t);\n\n\t\tthis.formGroup.valueChanges\n\t\t\t.pipe(untilDestroyed(this))\n\t\t\t.subscribe((formValue: NgDocFormPartialValue<typeof this.formGroup>) =>\n\t\t\t\tthis.router.navigate([], {\n\t\t\t\t\trelativeTo: this.route,\n\t\t\t\t\tqueryParams: formValue,\n\t\t\t\t\tqueryParamsHandling: 'merge',\n\t\t\t\t}),\n\t\t\t);\n\n\t\tthis.api$ = this.formGroup.valueChanges.pipe(\n\t\t\tdebounceTime(100),\n\t\t\tstartWith(null),\n\t\t\tmap(() => this.formGroup.value),\n\t\t\tmap((form: NgDocFormPartialValue<typeof this.formGroup>) =>\n\t\t\t\tthis.apiList\n\t\t\t\t\t.filter((api: NgDocApiList) => !form?.scope || api.title === form?.scope)\n\t\t\t\t\t.map((api: NgDocApiList) => ({\n\t\t\t\t\t\t...api,\n\t\t\t\t\t\titems: api.items\n\t\t\t\t\t\t\t.filter(\n\t\t\t\t\t\t\t\t(item: NgDocApiListItem) =>\n\t\t\t\t\t\t\t\t\titem.name.toLowerCase().includes(form?.filter?.toLowerCase() ?? '') &&\n\t\t\t\t\t\t\t\t\t(!form?.type || item.type === form?.type),\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t.sort(\n\t\t\t\t\t\t\t\t(a: NgDocApiListItem, b: NgDocApiListItem) =>\n\t\t\t\t\t\t\t\t\ta.type.localeCompare(b.type) || a.name.localeCompare(b.name),\n\t\t\t\t\t\t\t),\n\t\t\t\t\t}))\n\t\t\t\t\t.filter((api: NgDocApiList) => api.items.length),\n\t\t\t),\n\t\t\tuntilDestroyed(this),\n\t\t);\n\t}\n\n\t@ngDocMakePure\n\tget scopes(): string[] {\n\t\treturn asArray(new Set(this.apiList.flatMap((api: NgDocApiList) => api.title))).sort();\n\t}\n\n\t@ngDocMakePure\n\tget types(): string[] {\n\t\treturn asArray(\n\t\t\tnew Set(\n\t\t\t\tthis.apiList.flatMap((api: NgDocApiList) => api.items).flatMap((item: NgDocApiListItem) => item.type),\n\t\t\t),\n\t\t).sort();\n\t}\n}\n","<h1 ng-doc-text>API List</h1>\n<div class=\"ng-doc-api-list-wrapper\" *ngIf=\"api$ | async as api\">\n\t<form class=\"ng-doc-api-filter\" [formGroup]=\"formGroup\">\n\t\t<label class=\"ng-doc-api-filter-item\" ng-doc-label=\"Filter\">\n\t\t\t<ng-doc-input-wrapper [leftContent]=\"leftContent\">\n\t\t\t\t<ng-template #leftContent>\n\t\t\t\t\t<ng-doc-icon icon=\"search\"></ng-doc-icon>\n\t\t\t\t</ng-template>\n\t\t\t\t<input\n\t\t\t\t\tngDocInputString\n\t\t\t\t\t[formControl]=\"formGroup.controls.filter\"\n\t\t\t\t\tplaceholder=\"Type the name\"\n\t\t\t\t\tngDocAutofocus\n\t\t\t\t/>\n\t\t\t</ng-doc-input-wrapper>\n\t\t</label>\n\n\t\t<label class=\"ng-doc-api-filter-item\" ng-doc-label=\"Scope\" *ngIf=\"scopes.length\">\n\t\t\t<ng-doc-combobox\n\t\t\t\t[formControl]=\"formGroup.controls.scope\"\n\t\t\t\t[valueContent]=\"comboboxScopeItem\"\n\t\t\t\t[readonly]=\"true\"\n\t\t\t\tplaceholder=\"Choose the scope\"\n\t\t\t>\n\t\t\t\t<ng-doc-list *ngDocData>\n\t\t\t\t\t<ng-doc-option *ngFor=\"let scope of scopes\" [value]=\"scope\">\n\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"comboboxScopeItem; context: {$implicit: scope}\"></ng-container>\n\t\t\t\t\t</ng-doc-option>\n\t\t\t\t</ng-doc-list>\n\t\t\t\t<ng-template let-value #comboboxScopeItem>\n\t\t\t\t\t{{ value }}\n\t\t\t\t</ng-template>\n\t\t\t</ng-doc-combobox>\n\t\t</label>\n\n\t\t<label class=\"ng-doc-api-filter-item\" ng-doc-label=\"Type\">\n\t\t\t<ng-doc-combobox\n\t\t\t\t[formControl]=\"formGroup.controls.type\"\n\t\t\t\t[valueContent]=\"comboboxTypeItem\"\n\t\t\t\t[readonly]=\"true\"\n\t\t\t\tplaceholder=\"Choose the entity type\"\n\t\t\t>\n\t\t\t\t<ng-doc-list *ngDocData>\n\t\t\t\t\t<ng-doc-option *ngFor=\"let type of types\" [value]=\"type\">\n\t\t\t\t\t\t<ng-container *ngTemplateOutlet=\"comboboxTypeItem; context: {$implicit: type}\"></ng-container>\n\t\t\t\t\t</ng-doc-option>\n\t\t\t\t</ng-doc-list>\n\t\t\t\t<ng-template let-value #comboboxTypeItem>\n\t\t\t\t\t<div ng-doc-text>\n\t\t\t\t\t\t<ng-doc-kind-icon\n\t\t\t\t\t\t\t[kind]=\"value\"\n\t\t\t\t\t\t\t[ngDocTooltip]=\"value\"\n\t\t\t\t\t\t\t[positions]=\"['left-center', 'right-center']\"\n\t\t\t\t\t\t\tngDocTextLeft\n\t\t\t\t\t\t>\n\t\t\t\t\t\t</ng-doc-kind-icon>\n\t\t\t\t\t\t{{ value }}\n\t\t\t\t\t</div>\n\t\t\t\t</ng-template>\n\t\t\t</ng-doc-combobox>\n\t\t</label>\n\t</form>\n\t<div class=\"ng-doc-api-list\">\n\t\t<div class=\"ng-doc-api-scope\" *ngFor=\"let scope of api\">\n\t\t\t<h3 class=\"ng-doc-scope-title\" ng-doc-text>{{ scope.title }}</h3>\n\t\t\t<ul class=\"ng-doc-scope-items\" *ngIf=\"scope.items.length\">\n\t\t\t\t<li class=\"ng-doc-scope-item\" *ngFor=\"let apiReference of scope.items\">\n\t\t\t\t\t<a class=\"ng-doc-scope-item-link\" [routerLink]=\"[apiReference.route]\">\n\t\t\t\t\t\t<ng-doc-kind-icon [kind]=\"apiReference.type\" [ngDocTooltip]=\"apiReference.type\">\n\t\t\t\t\t\t</ng-doc-kind-icon>\n\t\t\t\t\t\t{{ apiReference.name }}\n\t\t\t\t\t</a>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</div>\n\t</div>\n</div>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {RouterModule} from '@angular/router';\nimport {NgDocKindIconModule} from '@ng-doc/app/components/kind-icon';\nimport {\n\tNgDocAutofocusModule,\n\tNgDocComboboxModule,\n\tNgDocDataModule,\n\tNgDocIconModule,\n\tNgDocInputStringModule,\n\tNgDocInputWrapperModule,\n\tNgDocLabelModule,\n\tNgDocListModule,\n\tNgDocOptionModule,\n\tNgDocTextModule,\n\tNgDocTooltipModule,\n} from '@ng-doc/ui-kit';\n\nimport {NgDocApiListComponent} from './api-list.component';\n\n@NgModule({\n\tdeclarations: [NgDocApiListComponent],\n\timports: [\n\t\tCommonModule,\n\t\tNgDocTextModule,\n\t\tNgDocKindIconModule,\n\t\tNgDocTooltipModule,\n\t\tRouterModule,\n\t\tNgDocInputWrapperModule,\n\t\tNgDocInputStringModule,\n\t\tFormsModule,\n\t\tNgDocComboboxModule,\n\t\tNgDocOptionModule,\n\t\tNgDocDataModule,\n\t\tNgDocListModule,\n\t\tNgDocLabelModule,\n\t\tReactiveFormsModule,\n\t\tNgDocIconModule,\n\t\tNgDocAutofocusModule,\n\t],\n\texports: [NgDocApiListComponent],\n})\nexport class NgDocApiListModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAyBa,IAAA,qBAAqB,GAPlC,MAOa,qBAAqB,CAAA;AAIjC,IAAA,WAAA,CAEkB,OAAuB,EACvB,WAAwB,EACxB,KAAqB,EACrB,MAAc,EAAA;QAHd,IAAO,CAAA,OAAA,GAAP,OAAO,CAAgB;QACvB,IAAW,CAAA,WAAA,GAAX,WAAW,CAAa;QACxB,IAAK,CAAA,KAAA,GAAL,KAAK,CAAgB;QACrB,IAAM,CAAA,MAAA,GAAN,M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C,oBAAA,OAAO,EAAE;wBACR,YAAY;wBACZ,eAAe;wBACf,mBAAmB;wBACnB,kBAAkB;wBAClB,YAAY;wBACZ,uBAAuB;wBACvB,sBAAsB;wBACtB,WAAW;wBACX,mBAAmB;wBACnB,iBAAiB;wBACjB,eAAe;wBACf,eAAe;wBACf,gBAAgB;wBAChB,mBAAmB;wBACnB,eAAe;wBACf,oBAAoB;AACpB,qBAAA;oBACD,OAAO,EAAE,CAAC,qBAAqB,CAAC;AAChC,iBAAA,CAAA;;;AC1CD;;AAEG;;;;"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/router';
|
|
4
|
+
import { RouterLink } from '@angular/router';
|
|
5
|
+
import * as i1 from '@ng-doc/app/classes';
|
|
6
|
+
import { isPresent } from '@ng-doc/core/helpers/is-present';
|
|
7
|
+
import * as i3 from '@angular/common';
|
|
8
|
+
import { CommonModule } from '@angular/common';
|
|
9
|
+
import * as i4 from '@ng-doc/ui-kit';
|
|
10
|
+
import { NgDocIconModule, NgDocButtonIconModule, NgDocTextModule } from '@ng-doc/ui-kit';
|
|
11
|
+
|
|
12
|
+
class NgDocBreadcrumbComponent {
|
|
13
|
+
constructor(rootPage, route) {
|
|
14
|
+
this.rootPage = rootPage;
|
|
15
|
+
this.route = route;
|
|
16
|
+
this.breadcrumbs = [];
|
|
17
|
+
this.home = this.rootPage.routePrefix || '/';
|
|
18
|
+
this.breadcrumbs = this.route.pathFromRoot
|
|
19
|
+
.filter((route) => !route.snapshot.url.length)
|
|
20
|
+
.map((route) => route.snapshot.title)
|
|
21
|
+
.filter(isPresent);
|
|
22
|
+
}
|
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocBreadcrumbComponent, deps: [{ token: i1.NgDocRootPage }, { token: i2.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
24
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgDocBreadcrumbComponent, selector: "ng-doc-breadcrumb", ngImport: i0, template: "<a class=\"ng-doc-breadcrumb\" [routerLink]=\"[home]\" ng-doc-button-icon>\n\t<ng-doc-icon icon=\"home\"></ng-doc-icon>\n</a>\n<span class=\"ng-doc-breadcrumb\" *ngFor=\"let item of breadcrumbs\">\n\t<span ng-doc-text>\n\t\t<ng-doc-icon icon=\"chevron-right\"></ng-doc-icon>\n\t\t{{item}}\n\t</span>\n</span>\n", styles: [":host{display:flex;align-items:center;flex-wrap:wrap;margin-bottom:calc(var(--ng-doc-base-gutter) * 2);opacity:.9}:host .ng-doc-breadcrumb:not(:first-child){margin-right:var(--ng-doc-base-gutter)}:host .ng-doc-breadcrumb:not(:first-child):not(:last-child){opacity:.6}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i4.NgDocIconComponent, selector: "ng-doc-icon", inputs: ["icon", "size"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i4.NgDocButtonIconComponent, selector: "button[ng-doc-button-icon], a[ng-doc-button-icon]", inputs: ["size", "rounded"] }, { kind: "component", type: i4.NgDocTextComponent, selector: "[ng-doc-text]", inputs: ["size", "color", "align", "absoluteContent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
25
|
+
}
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocBreadcrumbComponent, decorators: [{
|
|
27
|
+
type: Component,
|
|
28
|
+
args: [{ selector: 'ng-doc-breadcrumb', changeDetection: ChangeDetectionStrategy.OnPush, template: "<a class=\"ng-doc-breadcrumb\" [routerLink]=\"[home]\" ng-doc-button-icon>\n\t<ng-doc-icon icon=\"home\"></ng-doc-icon>\n</a>\n<span class=\"ng-doc-breadcrumb\" *ngFor=\"let item of breadcrumbs\">\n\t<span ng-doc-text>\n\t\t<ng-doc-icon icon=\"chevron-right\"></ng-doc-icon>\n\t\t{{item}}\n\t</span>\n</span>\n", styles: [":host{display:flex;align-items:center;flex-wrap:wrap;margin-bottom:calc(var(--ng-doc-base-gutter) * 2);opacity:.9}:host .ng-doc-breadcrumb:not(:first-child){margin-right:var(--ng-doc-base-gutter)}:host .ng-doc-breadcrumb:not(:first-child):not(:last-child){opacity:.6}\n"] }]
|
|
29
|
+
}], ctorParameters: function () { return [{ type: i1.NgDocRootPage }, { type: i2.ActivatedRoute }]; } });
|
|
30
|
+
|
|
31
|
+
class NgDocBreadcrumbModule {
|
|
32
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocBreadcrumbModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
33
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: NgDocBreadcrumbModule, declarations: [NgDocBreadcrumbComponent], imports: [CommonModule, NgDocIconModule, RouterLink, NgDocButtonIconModule, NgDocTextModule], exports: [NgDocBreadcrumbComponent] }); }
|
|
34
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocBreadcrumbModule, imports: [CommonModule, NgDocIconModule, NgDocButtonIconModule, NgDocTextModule] }); }
|
|
35
|
+
}
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocBreadcrumbModule, decorators: [{
|
|
37
|
+
type: NgModule,
|
|
38
|
+
args: [{
|
|
39
|
+
declarations: [NgDocBreadcrumbComponent],
|
|
40
|
+
imports: [CommonModule, NgDocIconModule, RouterLink, NgDocButtonIconModule, NgDocTextModule],
|
|
41
|
+
exports: [NgDocBreadcrumbComponent],
|
|
42
|
+
}]
|
|
43
|
+
}] });
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Generated bundle index. Do not edit.
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
export { NgDocBreadcrumbComponent, NgDocBreadcrumbModule };
|
|
50
|
+
//# sourceMappingURL=ng-doc-app-components-breadcrumb.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-doc-app-components-breadcrumb.mjs","sources":["../../../../libs/app/components/breadcrumb/breadcrumb.component.ts","../../../../libs/app/components/breadcrumb/breadcrumb.component.html","../../../../libs/app/components/breadcrumb/breadcrumb.module.ts","../../../../libs/app/components/breadcrumb/ng-doc-app-components-breadcrumb.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {ActivatedRoute} from '@angular/router';\nimport {NgDocRootPage} from '@ng-doc/app/classes';\nimport {isPresent} from '@ng-doc/core/helpers/is-present';\n\n@Component({\n\tselector: 'ng-doc-breadcrumb',\n\ttemplateUrl: './breadcrumb.component.html',\n\tstyleUrls: ['./breadcrumb.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgDocBreadcrumbComponent {\n\tbreadcrumbs: string[] = [];\n\thome: string;\n\tconstructor(private readonly rootPage: NgDocRootPage, private readonly route: ActivatedRoute) {\n\t\tthis.home = this.rootPage.routePrefix || '/';\n\t\tthis.breadcrumbs = this.route.pathFromRoot\n\t\t\t.filter((route: ActivatedRoute) => !route.snapshot.url.length)\n\t\t\t.map((route: ActivatedRoute) => route.snapshot.title)\n\t\t\t.filter(isPresent);\n\t}\n}\n","<a class=\"ng-doc-breadcrumb\" [routerLink]=\"[home]\" ng-doc-button-icon>\n\t<ng-doc-icon icon=\"home\"></ng-doc-icon>\n</a>\n<span class=\"ng-doc-breadcrumb\" *ngFor=\"let item of breadcrumbs\">\n\t<span ng-doc-text>\n\t\t<ng-doc-icon icon=\"chevron-right\"></ng-doc-icon>\n\t\t{{item}}\n\t</span>\n</span>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {RouterLink} from '@angular/router';\nimport {NgDocButtonIconModule, NgDocIconModule, NgDocTextModule} from '@ng-doc/ui-kit';\n\nimport {NgDocBreadcrumbComponent} from './breadcrumb.component';\n\n@NgModule({\n\tdeclarations: [NgDocBreadcrumbComponent],\n\timports: [CommonModule, NgDocIconModule, RouterLink, NgDocButtonIconModule, NgDocTextModule],\n\texports: [NgDocBreadcrumbComponent],\n})\nexport class NgDocBreadcrumbModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAKA,MAMa,wBAAwB,CAAA;IAGpC,WAA6B,CAAA,QAAuB,EAAmB,KAAqB,EAAA;QAA/D,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAe;QAAmB,IAAK,CAAA,KAAA,GAAL,KAAK,CAAgB;QAF5F,IAAW,CAAA,WAAA,GAAa,EAAE,CAAC;QAG1B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,IAAI,GAAG,CAAC;AAC7C,QAAA,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY;AACxC,aAAA,MAAM,CAAC,CAAC,KAAqB,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC;aAC7D,GAAG,CAAC,CAAC,KAAqB,KAAK,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;aACpD,MAAM,CAAC,SAAS,CAAC,CAAC;KACpB;8GATW,wBAAwB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,aAAA,EAAA,EAAA,EAAA,KAAA,EAAA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
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import * as i1 from '@angular/cdk/clipboard';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Component, ChangeDetectionStrategy, Input, HostBinding, NgModule } from '@angular/core';
|
|
4
|
+
import * as i2 from '@angular/common';
|
|
5
|
+
import { CommonModule } from '@angular/common';
|
|
6
|
+
import * as i3 from '@ng-doc/ui-kit';
|
|
7
|
+
import { NgDocTextModule, NgDocButtonIconModule, NgDocIconModule, NgDocTooltipModule, NgDocSmoothResizeModule } from '@ng-doc/ui-kit';
|
|
8
|
+
import * as i4 from '@ng-doc/app/processors/link-processor';
|
|
9
|
+
import { NgDocLinkProcessorModule } from '@ng-doc/app/processors/link-processor';
|
|
10
|
+
|
|
11
|
+
class NgDocCodeComponent {
|
|
12
|
+
constructor(elementRef, clipboard) {
|
|
13
|
+
this.elementRef = elementRef;
|
|
14
|
+
this.clipboard = clipboard;
|
|
15
|
+
this.html = '';
|
|
16
|
+
this.copyButton = true;
|
|
17
|
+
this.lineNumbers = false;
|
|
18
|
+
this.tooltipText = '';
|
|
19
|
+
}
|
|
20
|
+
get hasHeader() {
|
|
21
|
+
return !!this.fileName;
|
|
22
|
+
}
|
|
23
|
+
get codeElement() {
|
|
24
|
+
return this.elementRef?.nativeElement.querySelector('code') ?? null;
|
|
25
|
+
}
|
|
26
|
+
copyCode() {
|
|
27
|
+
this.clipboard.copy(this.codeElement?.textContent ?? '');
|
|
28
|
+
}
|
|
29
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocCodeComponent, deps: [{ token: i0.ElementRef }, { token: i1.Clipboard }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
30
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgDocCodeComponent, selector: "ng-doc-code", inputs: { html: "html", copyButton: "copyButton", fileName: "fileName", lineNumbers: "lineNumbers" }, host: { properties: { "attr.data-ng-doc-has-header": "this.hasHeader" } }, ngImport: i0, template: "<div class=\"ng-doc-code-header\" *ngIf=\"hasHeader\">\n\t<span class=\"ng-doc-code-file-name\" ng-doc-text>{{ fileName }}</span>\n</div>\n<div class=\"ng-doc-code-body\">\n\t<div class=\"ng-doc-code-wrapper\" [innerHTML]=\"html\" ngDocLinkProcessor *ngIf=\"html\"></div>\n\t<div class=\"ng-doc-code-wrapper\" *ngIf=\"!html\">\n\t\t<ng-content></ng-content>\n\t</div>\n\n\t<button\n\n\t\tclass=\"ng-doc-copy-button\"\n\t\tng-doc-button-icon\n\t\t*ngIf=\"copyButton\"\n\t\t(click)=\"copyCode(); tooltipText = 'Copied!'\"\n\t\t[ngDocTooltip]=\"tooltipContent\"\n\t\t(mouseenter)=\"tooltipText = 'Copy to clipboard'\"\n\t>\n\t\t<ng-template #tooltipContent>\n\t\t\t<ng-doc-smooth-resize [trigger]=\"tooltipText\">\n\t\t\t\t{{tooltipText}}\n\t\t\t</ng-doc-smooth-resize>\n\t\t</ng-template>\n\t\t<ng-doc-icon icon=\"copy\"></ng-doc-icon>\n\t</button>\n</div>\n", styles: [":host{position:relative;display:block;margin:var(--ng-doc-code-margin)}:host[data-ng-doc-has-header=true]{--ng-doc-code-border-radius: 0 0 var(--ng-doc-base-gutter) var(--ng-doc-base-gutter);--ng-doc-code-shadow: none}:host .ng-doc-code-wrapper{--ng-doc-code-margin: 0}:host .ng-doc-code-header{display:flex;align-items:center;padding:var(--ng-doc-base-gutter) calc(var(--ng-doc-base-gutter) * 2);background:var(--ng-doc-code-header-background, var(--ng-doc-base-2));border-radius:var(--ng-doc-base-gutter) var(--ng-doc-base-gutter) 0 0}:host .ng-doc-code-header .ng-doc-code-file-name{--ng-doc-text: var(--ng-doc-code-header-color);--ng-doc-font-weight: 600;--ng-doc-font-size: 14px}:host .ng-doc-code-body{position:relative;height:100%}:host .ng-doc-copy-button{position:absolute;top:var(--ng-doc-base-gutter);right:var(--ng-doc-base-gutter);transition:var(--ng-doc-transition);--ng-doc-icon-color: var(--ng-doc-text-muted);--ng-doc-button-background: transparent;--ng-doc-button-hover-background: var(--ng-doc-code-copy-button-hover-background, var(--ng-doc-base-2));--ng-doc-button-active-background: var(--ng-doc-code-copy-button-active-background, var(--ng-doc-base-3))}:host .ng-doc-code-wrapper{height:100%}:host ::ng-deep pre{display:flex;margin:var(--ng-doc-code-margin);border-radius:var(--ng-doc-code-border-radius, var(--ng-doc-base-gutter));overflow:hidden;height:100%}:host ::ng-deep pre code{padding:calc(var(--ng-doc-base-gutter) * 2);width:100%;font-family:var(--ng-doc-code-font);font-size:var(--ng-doc-code-font-size);line-height:var(--ng-doc-code-line-height);max-height:var(--ng-doc-code-max-height);overflow:auto;height:100%}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.NgDocTextComponent, selector: "[ng-doc-text]", inputs: ["size", "color", "align", "absoluteContent"] }, { kind: "component", type: i3.NgDocButtonIconComponent, selector: "button[ng-doc-button-icon], a[ng-doc-button-icon]", inputs: ["size", "rounded"] }, { kind: "component", type: i3.NgDocIconComponent, selector: "ng-doc-icon", inputs: ["icon", "size"] }, { kind: "directive", type: i3.NgDocTooltipDirective, selector: "[ngDocTooltip]", inputs: ["ngDocTooltip", "delay", "displayOrigin", "pointerOrigin", "positions", "canOpen", "panelClass", "minHeight", "maxHeight", "height", "minWidth", "maxWidth", "width"], outputs: ["beforeOpen", "afterOpen", "beforeClose", "afterClose"], exportAs: ["ngDocTooltip"] }, { kind: "directive", type: i4.NgDocLinkProcessorDirective, selector: "[ngDocLinkProcessor]" }, { kind: "component", type: i3.NgDocSmoothResizeComponent, selector: "ng-doc-smooth-resize", inputs: ["trigger", "animateOpacity"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
31
|
+
}
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocCodeComponent, decorators: [{
|
|
33
|
+
type: Component,
|
|
34
|
+
args: [{ selector: 'ng-doc-code', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"ng-doc-code-header\" *ngIf=\"hasHeader\">\n\t<span class=\"ng-doc-code-file-name\" ng-doc-text>{{ fileName }}</span>\n</div>\n<div class=\"ng-doc-code-body\">\n\t<div class=\"ng-doc-code-wrapper\" [innerHTML]=\"html\" ngDocLinkProcessor *ngIf=\"html\"></div>\n\t<div class=\"ng-doc-code-wrapper\" *ngIf=\"!html\">\n\t\t<ng-content></ng-content>\n\t</div>\n\n\t<button\n\n\t\tclass=\"ng-doc-copy-button\"\n\t\tng-doc-button-icon\n\t\t*ngIf=\"copyButton\"\n\t\t(click)=\"copyCode(); tooltipText = 'Copied!'\"\n\t\t[ngDocTooltip]=\"tooltipContent\"\n\t\t(mouseenter)=\"tooltipText = 'Copy to clipboard'\"\n\t>\n\t\t<ng-template #tooltipContent>\n\t\t\t<ng-doc-smooth-resize [trigger]=\"tooltipText\">\n\t\t\t\t{{tooltipText}}\n\t\t\t</ng-doc-smooth-resize>\n\t\t</ng-template>\n\t\t<ng-doc-icon icon=\"copy\"></ng-doc-icon>\n\t</button>\n</div>\n", styles: [":host{position:relative;display:block;margin:var(--ng-doc-code-margin)}:host[data-ng-doc-has-header=true]{--ng-doc-code-border-radius: 0 0 var(--ng-doc-base-gutter) var(--ng-doc-base-gutter);--ng-doc-code-shadow: none}:host .ng-doc-code-wrapper{--ng-doc-code-margin: 0}:host .ng-doc-code-header{display:flex;align-items:center;padding:var(--ng-doc-base-gutter) calc(var(--ng-doc-base-gutter) * 2);background:var(--ng-doc-code-header-background, var(--ng-doc-base-2));border-radius:var(--ng-doc-base-gutter) var(--ng-doc-base-gutter) 0 0}:host .ng-doc-code-header .ng-doc-code-file-name{--ng-doc-text: var(--ng-doc-code-header-color);--ng-doc-font-weight: 600;--ng-doc-font-size: 14px}:host .ng-doc-code-body{position:relative;height:100%}:host .ng-doc-copy-button{position:absolute;top:var(--ng-doc-base-gutter);right:var(--ng-doc-base-gutter);transition:var(--ng-doc-transition);--ng-doc-icon-color: var(--ng-doc-text-muted);--ng-doc-button-background: transparent;--ng-doc-button-hover-background: var(--ng-doc-code-copy-button-hover-background, var(--ng-doc-base-2));--ng-doc-button-active-background: var(--ng-doc-code-copy-button-active-background, var(--ng-doc-base-3))}:host .ng-doc-code-wrapper{height:100%}:host ::ng-deep pre{display:flex;margin:var(--ng-doc-code-margin);border-radius:var(--ng-doc-code-border-radius, var(--ng-doc-base-gutter));overflow:hidden;height:100%}:host ::ng-deep pre code{padding:calc(var(--ng-doc-base-gutter) * 2);width:100%;font-family:var(--ng-doc-code-font);font-size:var(--ng-doc-code-font-size);line-height:var(--ng-doc-code-line-height);max-height:var(--ng-doc-code-max-height);overflow:auto;height:100%}\n"] }]
|
|
35
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.Clipboard }]; }, propDecorators: { html: [{
|
|
36
|
+
type: Input
|
|
37
|
+
}], copyButton: [{
|
|
38
|
+
type: Input
|
|
39
|
+
}], fileName: [{
|
|
40
|
+
type: Input
|
|
41
|
+
}], lineNumbers: [{
|
|
42
|
+
type: Input
|
|
43
|
+
}], hasHeader: [{
|
|
44
|
+
type: HostBinding,
|
|
45
|
+
args: ['attr.data-ng-doc-has-header']
|
|
46
|
+
}] } });
|
|
47
|
+
|
|
48
|
+
class NgDocCodeModule {
|
|
49
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocCodeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
50
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: NgDocCodeModule, declarations: [NgDocCodeComponent], imports: [CommonModule,
|
|
51
|
+
NgDocTextModule,
|
|
52
|
+
NgDocButtonIconModule,
|
|
53
|
+
NgDocIconModule,
|
|
54
|
+
NgDocTooltipModule,
|
|
55
|
+
NgDocLinkProcessorModule,
|
|
56
|
+
NgDocSmoothResizeModule], exports: [NgDocCodeComponent] }); }
|
|
57
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocCodeModule, imports: [CommonModule,
|
|
58
|
+
NgDocTextModule,
|
|
59
|
+
NgDocButtonIconModule,
|
|
60
|
+
NgDocIconModule,
|
|
61
|
+
NgDocTooltipModule,
|
|
62
|
+
NgDocLinkProcessorModule,
|
|
63
|
+
NgDocSmoothResizeModule] }); }
|
|
64
|
+
}
|
|
65
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocCodeModule, decorators: [{
|
|
66
|
+
type: NgModule,
|
|
67
|
+
args: [{
|
|
68
|
+
declarations: [NgDocCodeComponent],
|
|
69
|
+
imports: [
|
|
70
|
+
CommonModule,
|
|
71
|
+
NgDocTextModule,
|
|
72
|
+
NgDocButtonIconModule,
|
|
73
|
+
NgDocIconModule,
|
|
74
|
+
NgDocTooltipModule,
|
|
75
|
+
NgDocLinkProcessorModule,
|
|
76
|
+
NgDocSmoothResizeModule,
|
|
77
|
+
],
|
|
78
|
+
exports: [NgDocCodeComponent],
|
|
79
|
+
}]
|
|
80
|
+
}] });
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Generated bundle index. Do not edit.
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
export { NgDocCodeComponent, NgDocCodeModule };
|
|
87
|
+
//# sourceMappingURL=ng-doc-app-components-code.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-doc-app-components-code.mjs","sources":["../../../../libs/app/components/code/code.component.ts","../../../../libs/app/components/code/code.component.html","../../../../libs/app/components/code/code.module.ts","../../../../libs/app/components/code/ng-doc-app-components-code.ts"],"sourcesContent":["import {Clipboard} from '@angular/cdk/clipboard';\nimport {ChangeDetectionStrategy, Component, ElementRef, HostBinding, Input} from '@angular/core';\n\n@Component({\n\tselector: 'ng-doc-code',\n\ttemplateUrl: './code.component.html',\n\tstyleUrls: ['./code.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgDocCodeComponent {\n\t@Input()\n\thtml: string = '';\n\n\t@Input()\n\tcopyButton: boolean = true;\n\n\t@Input()\n\tfileName?: string;\n\n\t@Input()\n\tlineNumbers: boolean = false;\n\n\ttooltipText: string = '';\n\n\tconstructor(\n\t\tprivate elementRef: ElementRef<HTMLElement>,\n\t\tprivate readonly clipboard: Clipboard,\n\t) {}\n\n\t@HostBinding('attr.data-ng-doc-has-header')\n\tget hasHeader(): boolean {\n\t\treturn !!this.fileName;\n\t}\n\n\tget codeElement(): HTMLElement | null {\n\t\treturn this.elementRef?.nativeElement.querySelector('code') ?? null;\n\t}\n\n\tcopyCode(): void {\n\t\tthis.clipboard.copy(this.codeElement?.textContent ?? '');\n\t}\n}\n","<div class=\"ng-doc-code-header\" *ngIf=\"hasHeader\">\n\t<span class=\"ng-doc-code-file-name\" ng-doc-text>{{ fileName }}</span>\n</div>\n<div class=\"ng-doc-code-body\">\n\t<div class=\"ng-doc-code-wrapper\" [innerHTML]=\"html\" ngDocLinkProcessor *ngIf=\"html\"></div>\n\t<div class=\"ng-doc-code-wrapper\" *ngIf=\"!html\">\n\t\t<ng-content></ng-content>\n\t</div>\n\n\t<button\n\n\t\tclass=\"ng-doc-copy-button\"\n\t\tng-doc-button-icon\n\t\t*ngIf=\"copyButton\"\n\t\t(click)=\"copyCode(); tooltipText = 'Copied!'\"\n\t\t[ngDocTooltip]=\"tooltipContent\"\n\t\t(mouseenter)=\"tooltipText = 'Copy to clipboard'\"\n\t>\n\t\t<ng-template #tooltipContent>\n\t\t\t<ng-doc-smooth-resize [trigger]=\"tooltipText\">\n\t\t\t\t{{tooltipText}}\n\t\t\t</ng-doc-smooth-resize>\n\t\t</ng-template>\n\t\t<ng-doc-icon icon=\"copy\"></ng-doc-icon>\n\t</button>\n</div>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {NgDocLinkProcessorModule} from '@ng-doc/app/processors/link-processor';\nimport {\n\tNgDocButtonIconModule,\n\tNgDocIconModule,\n\tNgDocSmoothResizeModule,\n\tNgDocTextModule,\n\tNgDocTooltipModule\n} from '@ng-doc/ui-kit';\n\nimport {NgDocCodeComponent} from './code.component';\n\n@NgModule({\n\tdeclarations: [NgDocCodeComponent],\n\timports: [\n\t\tCommonModule,\n\t\tNgDocTextModule,\n\t\tNgDocButtonIconModule,\n\t\tNgDocIconModule,\n\t\tNgDocTooltipModule,\n\t\tNgDocLinkProcessorModule,\n\t\tNgDocSmoothResizeModule,\n\t],\n\texports: [NgDocCodeComponent],\n})\nexport class NgDocCodeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAGA,MAMa,kBAAkB,CAAA;IAe9B,WACS,CAAA,UAAmC,EAC1B,SAAoB,EAAA;QAD7B,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;QAC1B,IAAS,CAAA,SAAA,GAAT,SAAS,CAAW;QAftC,IAAI,CAAA,IAAA,GAAW,EAAE,CAAC;QAGlB,IAAU,CAAA,UAAA,GAAY,IAAI,CAAC;QAM3B,IAAW,CAAA,WAAA,GAAY,KAAK,CAAC;QAE7B,IAAW,CAAA,WAAA,GAAW,EAAE,CAAC;KAKrB;AAEJ,IAAA,IACI,SAAS,GAAA;AACZ,QAAA,OAAO,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KACvB;AAED,IAAA,IAAI,WAAW,GAAA;AACd,QAAA,OAAO,IAAI,CAAC,UAAU,EAAE,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC;KACpE;IAED,QAAQ,GAAA;AACP,QAAA,IAAI,CAAC,SAAS,CAAC,IAAI,C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YACrB,eAAe;YACf,kBAAkB;YAClB,wBAAwB;AACxB,YAAA,uBAAuB,aAEd,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA;AAEhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,YAV1B,YAAY;YACZ,eAAe;YACf,qBAAqB;YACrB,eAAe;YACf,kBAAkB;YAClB,wBAAwB;YACxB,uBAAuB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIZ,eAAe,EAAA,UAAA,EAAA,CAAA;kBAb3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACT,YAAY,EAAE,CAAC,kBAAkB,CAAC;AAClC,oBAAA,OAAO,EAAE;wBACR,YAAY;wBACZ,eAAe;wBACf,qBAAqB;wBACrB,eAAe;wBACf,kBAAkB;wBAClB,wBAAwB;wBACxB,uBAAuB;AACvB,qBAAA;oBACD,OAAO,EAAE,CAAC,kBAAkB,CAAC;AAC7B,iBAAA,CAAA;;;ACzBD;;AAEG;;;;"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import * as i1 from '@angular/cdk/clipboard';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Component, ChangeDetectionStrategy, Input, HostBinding, NgModule } from '@angular/core';
|
|
4
|
+
import * as i2 from '@angular/common';
|
|
5
|
+
import { CommonModule } from '@angular/common';
|
|
6
|
+
import * as i3 from '@ng-doc/ui-kit';
|
|
7
|
+
import { NgDocExpanderModule, NgDocButtonIconModule, NgDocIconModule, NgDocTooltipModule, NgDocSmoothResizeModule } from '@ng-doc/ui-kit';
|
|
8
|
+
import * as i4 from '@ng-doc/app/components/code';
|
|
9
|
+
import { NgDocCodeModule } from '@ng-doc/app/components/code';
|
|
10
|
+
import * as i5 from '@ng-doc/app/directives/code-highlighter';
|
|
11
|
+
import { NgDocCodeHighlighterModule } from '@ng-doc/app/directives/code-highlighter';
|
|
12
|
+
import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
|
|
13
|
+
|
|
14
|
+
class NgDocDemoDisplayerComponent {
|
|
15
|
+
constructor(clipboard) {
|
|
16
|
+
this.clipboard = clipboard;
|
|
17
|
+
this.codeContent = '';
|
|
18
|
+
this.code = '';
|
|
19
|
+
this.language = 'typescript';
|
|
20
|
+
this.container = true;
|
|
21
|
+
this.border = true;
|
|
22
|
+
this.expanded = false;
|
|
23
|
+
this.copyTooltipText = '';
|
|
24
|
+
}
|
|
25
|
+
get expandTooltipText() {
|
|
26
|
+
return this.expanded ? 'Collapse' : 'Expand';
|
|
27
|
+
}
|
|
28
|
+
copyCode() {
|
|
29
|
+
this.clipboard.copy(this.code);
|
|
30
|
+
}
|
|
31
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocDemoDisplayerComponent, deps: [{ token: i1.Clipboard }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
32
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgDocDemoDisplayerComponent, selector: "ng-doc-demo-displayer", inputs: { codeContent: "codeContent", code: "code", language: "language", container: "container", border: "border", expanded: "expanded" }, host: { properties: { "attr.data-ng-doc-border": "this.border" } }, ngImport: i0, template: "<div class=\"ng-doc-demo-wrapper\" *ngIf=\"container; else demoTemplate\">\n\t<div class=\"ng-doc-demo-container\">\n\t\t<div class=\"ng-doc-demo\">\n\t\t\t<ng-container *ngTemplateOutlet=\"demoTemplate\"></ng-container>\n\t\t</div>\n\t\t<div class=\"ng-doc-demo-controls\">\n\t\t\t<button\n\t\t\t\tclass=\"ng-doc-copy-button\"\n\t\t\t\t*ngIf=\"!codeContent\"\n\t\t\t\tng-doc-button-icon\n\t\t\t\t(click)=\"copyCode(); copyTooltipText = 'Copied!'\"\n\t\t\t\t[ngDocTooltip]=\"tooltipContent\"\n\t\t\t\t(mouseenter)=\"copyTooltipText = 'Copy to clipboard'\"\n\t\t\t>\n\t\t\t\t<ng-template #tooltipContent>\n\t\t\t\t\t<ng-doc-smooth-resize [trigger]=\"copyTooltipText\">\n\t\t\t\t\t\t{{copyTooltipText}}\n\t\t\t\t\t</ng-doc-smooth-resize>\n\t\t\t\t</ng-template>\n\t\t\t\t<ng-doc-icon icon=\"copy\"></ng-doc-icon>\n\t\t\t</button>\n\t\t\t<button\n\t\t\t\tng-doc-button-icon\n\t\t\t\t(click)=\"expanded = !expanded\"\n\t\t\t\t[ngDocTooltip]=\"tooltipContent\"\n\t\t\t>\n\t\t\t\t<ng-template #tooltipContent>\n\t\t\t\t\t<ng-doc-smooth-resize [trigger]=\"expandTooltipText\">\n\t\t\t\t\t\t{{expandTooltipText}}\n\t\t\t\t\t</ng-doc-smooth-resize>\n\t\t\t\t</ng-template>\n\t\t\t\t<ng-doc-icon icon=\"code\"></ng-doc-icon>\n\t\t\t</button>\n\t\t</div>\n\t</div>\n\t<ng-doc-expander [content]=\"codeContent ? codeContent : expanderContent\" [expanded]=\"expanded\">\n\t\t<ng-template #expanderContent>\n\t\t\t<ng-doc-code [copyButton]=\"false\">\n\t\t\t\t<pre class=\"hljs ngde\">\n\t\t\t\t\t<code class=\"ngde\" [ngDocCodeHighlighter]=\"code\" [language]=\"'html'\"></code>\n\t\t\t\t</pre>\n\t\t\t</ng-doc-code>\n\t\t</ng-template>\n\t</ng-doc-expander>\n</div>\n\n<ng-template #demoTemplate>\n\t<ng-content></ng-content>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:column;overflow:hidden;--ng-doc-code-margin: 0;--ng-doc-code-border-radius: 0}:host[data-ng-doc-border=true]{border:var(--ng-doc-demo-displayer-border);border-radius:var(--ng-doc-demo-displayer-border-radius)}:host .ng-doc-demo-wrapper{overflow:hidden}:host .ng-doc-demo-wrapper .ng-doc-demo-container{display:flex;justify-content:flex-start;width:100%;padding:calc(var(--ng-doc-base-gutter) * 2);background:var(--ng-doc-demo-displayer-background, var(--ng-doc-base-0))}:host .ng-doc-demo-wrapper .ng-doc-demo-container .ng-doc-demo{overflow:hidden;width:100%}:host .ng-doc-demo-wrapper .ng-doc-demo-container .ng-doc-demo-controls{flex-shrink:0;margin-left:auto}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3.NgDocExpanderComponent, selector: "ng-doc-expander", inputs: ["expanded", "content", "from"] }, { kind: "component", type: i4.NgDocCodeComponent, selector: "ng-doc-code", inputs: ["html", "copyButton", "fileName", "lineNumbers"] }, { kind: "component", type: i3.NgDocButtonIconComponent, selector: "button[ng-doc-button-icon], a[ng-doc-button-icon]", inputs: ["size", "rounded"] }, { kind: "component", type: i3.NgDocIconComponent, selector: "ng-doc-icon", inputs: ["icon", "size"] }, { kind: "directive", type: i3.NgDocTooltipDirective, selector: "[ngDocTooltip]", inputs: ["ngDocTooltip", "delay", "displayOrigin", "pointerOrigin", "positions", "canOpen", "panelClass", "minHeight", "maxHeight", "height", "minWidth", "maxWidth", "width"], outputs: ["beforeOpen", "afterOpen", "beforeClose", "afterClose"], exportAs: ["ngDocTooltip"] }, { kind: "directive", type: i5.NgDocCodeHighlighterDirective, selector: "code[ngDocCodeHighlighter]", inputs: ["ngDocCodeHighlighter", "html", "language"] }, { kind: "component", type: i3.NgDocSmoothResizeComponent, selector: "ng-doc-smooth-resize", inputs: ["trigger", "animateOpacity"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
33
|
+
}
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocDemoDisplayerComponent, decorators: [{
|
|
35
|
+
type: Component,
|
|
36
|
+
args: [{ selector: 'ng-doc-demo-displayer', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"ng-doc-demo-wrapper\" *ngIf=\"container; else demoTemplate\">\n\t<div class=\"ng-doc-demo-container\">\n\t\t<div class=\"ng-doc-demo\">\n\t\t\t<ng-container *ngTemplateOutlet=\"demoTemplate\"></ng-container>\n\t\t</div>\n\t\t<div class=\"ng-doc-demo-controls\">\n\t\t\t<button\n\t\t\t\tclass=\"ng-doc-copy-button\"\n\t\t\t\t*ngIf=\"!codeContent\"\n\t\t\t\tng-doc-button-icon\n\t\t\t\t(click)=\"copyCode(); copyTooltipText = 'Copied!'\"\n\t\t\t\t[ngDocTooltip]=\"tooltipContent\"\n\t\t\t\t(mouseenter)=\"copyTooltipText = 'Copy to clipboard'\"\n\t\t\t>\n\t\t\t\t<ng-template #tooltipContent>\n\t\t\t\t\t<ng-doc-smooth-resize [trigger]=\"copyTooltipText\">\n\t\t\t\t\t\t{{copyTooltipText}}\n\t\t\t\t\t</ng-doc-smooth-resize>\n\t\t\t\t</ng-template>\n\t\t\t\t<ng-doc-icon icon=\"copy\"></ng-doc-icon>\n\t\t\t</button>\n\t\t\t<button\n\t\t\t\tng-doc-button-icon\n\t\t\t\t(click)=\"expanded = !expanded\"\n\t\t\t\t[ngDocTooltip]=\"tooltipContent\"\n\t\t\t>\n\t\t\t\t<ng-template #tooltipContent>\n\t\t\t\t\t<ng-doc-smooth-resize [trigger]=\"expandTooltipText\">\n\t\t\t\t\t\t{{expandTooltipText}}\n\t\t\t\t\t</ng-doc-smooth-resize>\n\t\t\t\t</ng-template>\n\t\t\t\t<ng-doc-icon icon=\"code\"></ng-doc-icon>\n\t\t\t</button>\n\t\t</div>\n\t</div>\n\t<ng-doc-expander [content]=\"codeContent ? codeContent : expanderContent\" [expanded]=\"expanded\">\n\t\t<ng-template #expanderContent>\n\t\t\t<ng-doc-code [copyButton]=\"false\">\n\t\t\t\t<pre class=\"hljs ngde\">\n\t\t\t\t\t<code class=\"ngde\" [ngDocCodeHighlighter]=\"code\" [language]=\"'html'\"></code>\n\t\t\t\t</pre>\n\t\t\t</ng-doc-code>\n\t\t</ng-template>\n\t</ng-doc-expander>\n</div>\n\n<ng-template #demoTemplate>\n\t<ng-content></ng-content>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:column;overflow:hidden;--ng-doc-code-margin: 0;--ng-doc-code-border-radius: 0}:host[data-ng-doc-border=true]{border:var(--ng-doc-demo-displayer-border);border-radius:var(--ng-doc-demo-displayer-border-radius)}:host .ng-doc-demo-wrapper{overflow:hidden}:host .ng-doc-demo-wrapper .ng-doc-demo-container{display:flex;justify-content:flex-start;width:100%;padding:calc(var(--ng-doc-base-gutter) * 2);background:var(--ng-doc-demo-displayer-background, var(--ng-doc-base-0))}:host .ng-doc-demo-wrapper .ng-doc-demo-container .ng-doc-demo{overflow:hidden;width:100%}:host .ng-doc-demo-wrapper .ng-doc-demo-container .ng-doc-demo-controls{flex-shrink:0;margin-left:auto}\n"] }]
|
|
37
|
+
}], ctorParameters: function () { return [{ type: i1.Clipboard }]; }, propDecorators: { codeContent: [{
|
|
38
|
+
type: Input
|
|
39
|
+
}], code: [{
|
|
40
|
+
type: Input
|
|
41
|
+
}], language: [{
|
|
42
|
+
type: Input
|
|
43
|
+
}], container: [{
|
|
44
|
+
type: Input
|
|
45
|
+
}], border: [{
|
|
46
|
+
type: Input
|
|
47
|
+
}, {
|
|
48
|
+
type: HostBinding,
|
|
49
|
+
args: ['attr.data-ng-doc-border']
|
|
50
|
+
}], expanded: [{
|
|
51
|
+
type: Input
|
|
52
|
+
}] } });
|
|
53
|
+
|
|
54
|
+
class NgDocDemoDisplayerModule {
|
|
55
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocDemoDisplayerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
56
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: NgDocDemoDisplayerModule, declarations: [NgDocDemoDisplayerComponent], imports: [CommonModule,
|
|
57
|
+
PolymorpheusModule,
|
|
58
|
+
NgDocExpanderModule,
|
|
59
|
+
NgDocCodeModule,
|
|
60
|
+
NgDocButtonIconModule,
|
|
61
|
+
NgDocIconModule,
|
|
62
|
+
NgDocTooltipModule,
|
|
63
|
+
NgDocCodeHighlighterModule,
|
|
64
|
+
NgDocSmoothResizeModule], exports: [NgDocDemoDisplayerComponent] }); }
|
|
65
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocDemoDisplayerModule, imports: [CommonModule,
|
|
66
|
+
PolymorpheusModule,
|
|
67
|
+
NgDocExpanderModule,
|
|
68
|
+
NgDocCodeModule,
|
|
69
|
+
NgDocButtonIconModule,
|
|
70
|
+
NgDocIconModule,
|
|
71
|
+
NgDocTooltipModule,
|
|
72
|
+
NgDocCodeHighlighterModule,
|
|
73
|
+
NgDocSmoothResizeModule] }); }
|
|
74
|
+
}
|
|
75
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocDemoDisplayerModule, decorators: [{
|
|
76
|
+
type: NgModule,
|
|
77
|
+
args: [{
|
|
78
|
+
declarations: [NgDocDemoDisplayerComponent],
|
|
79
|
+
imports: [
|
|
80
|
+
CommonModule,
|
|
81
|
+
PolymorpheusModule,
|
|
82
|
+
NgDocExpanderModule,
|
|
83
|
+
NgDocCodeModule,
|
|
84
|
+
NgDocButtonIconModule,
|
|
85
|
+
NgDocIconModule,
|
|
86
|
+
NgDocTooltipModule,
|
|
87
|
+
NgDocCodeHighlighterModule,
|
|
88
|
+
NgDocSmoothResizeModule,
|
|
89
|
+
],
|
|
90
|
+
exports: [NgDocDemoDisplayerComponent],
|
|
91
|
+
}]
|
|
92
|
+
}] });
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Generated bundle index. Do not edit.
|
|
96
|
+
*/
|
|
97
|
+
|
|
98
|
+
export { NgDocDemoDisplayerComponent, NgDocDemoDisplayerModule };
|
|
99
|
+
//# sourceMappingURL=ng-doc-app-components-demo-displayer.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-app-components-demo-displayer.mjs","sources":["../../../../libs/app/components/demo-displayer/demo-displayer.component.ts","../../../../libs/app/components/demo-displayer/demo-displayer.component.html","../../../../libs/app/components/demo-displayer/demo-displayer.module.ts","../../../../libs/app/components/demo-displayer/ng-doc-app-components-demo-displayer.ts"],"sourcesContent":["import {Clipboard} from '@angular/cdk/clipboard';\nimport {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core';\nimport {NgDocContent} from '@ng-doc/ui-kit';\n\n@Component({\n\tselector: 'ng-doc-demo-displayer',\n\ttemplateUrl: './demo-displayer.component.html',\n\tstyleUrls: ['./demo-displayer.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgDocDemoDisplayerComponent {\n\t@Input()\n\tcodeContent: NgDocContent = '';\n\n\t@Input()\n\tcode: string = '';\n\n\t@Input()\n\tlanguage: string = 'typescript';\n\n\t@Input()\n\tcontainer: boolean = true;\n\n\t@Input()\n\t@HostBinding('attr.data-ng-doc-border')\n\tborder: boolean = true;\n\n\t@Input()\n\texpanded: boolean = false;\n\n\tcopyTooltipText: string = '';\n\n\tconstructor(private readonly clipboard: Clipboard) {}\n\n\tprotected get expandTooltipText(): string {\n\t\treturn this.expanded ? 'Collapse' : 'Expand';\n\t}\n\n\tcopyCode(): void {\n\t\tthis.clipboard.copy(this.code);\n\t}\n}\n","<div class=\"ng-doc-demo-wrapper\" *ngIf=\"container; else demoTemplate\">\n\t<div class=\"ng-doc-demo-container\">\n\t\t<div class=\"ng-doc-demo\">\n\t\t\t<ng-container *ngTemplateOutlet=\"demoTemplate\"></ng-container>\n\t\t</div>\n\t\t<div class=\"ng-doc-demo-controls\">\n\t\t\t<button\n\t\t\t\tclass=\"ng-doc-copy-button\"\n\t\t\t\t*ngIf=\"!codeContent\"\n\t\t\t\tng-doc-button-icon\n\t\t\t\t(click)=\"copyCode(); copyTooltipText = 'Copied!'\"\n\t\t\t\t[ngDocTooltip]=\"tooltipContent\"\n\t\t\t\t(mouseenter)=\"copyTooltipText = 'Copy to clipboard'\"\n\t\t\t>\n\t\t\t\t<ng-template #tooltipContent>\n\t\t\t\t\t<ng-doc-smooth-resize [trigger]=\"copyTooltipText\">\n\t\t\t\t\t\t{{copyTooltipText}}\n\t\t\t\t\t</ng-doc-smooth-resize>\n\t\t\t\t</ng-template>\n\t\t\t\t<ng-doc-icon icon=\"copy\"></ng-doc-icon>\n\t\t\t</button>\n\t\t\t<button\n\t\t\t\tng-doc-button-icon\n\t\t\t\t(click)=\"expanded = !expanded\"\n\t\t\t\t[ngDocTooltip]=\"tooltipContent\"\n\t\t\t>\n\t\t\t\t<ng-template #tooltipContent>\n\t\t\t\t\t<ng-doc-smooth-resize [trigger]=\"expandTooltipText\">\n\t\t\t\t\t\t{{expandTooltipText}}\n\t\t\t\t\t</ng-doc-smooth-resize>\n\t\t\t\t</ng-template>\n\t\t\t\t<ng-doc-icon icon=\"code\"></ng-doc-icon>\n\t\t\t</button>\n\t\t</div>\n\t</div>\n\t<ng-doc-expander [content]=\"codeContent ? codeContent : expanderContent\" [expanded]=\"expanded\">\n\t\t<ng-template #expanderContent>\n\t\t\t<ng-doc-code [copyButton]=\"false\">\n\t\t\t\t<pre class=\"hljs ngde\">\n\t\t\t\t\t<code class=\"ngde\" [ngDocCodeHighlighter]=\"code\" [language]=\"'html'\"></code>\n\t\t\t\t</pre>\n\t\t\t</ng-doc-code>\n\t\t</ng-template>\n\t</ng-doc-expander>\n</div>\n\n<ng-template #demoTemplate>\n\t<ng-content></ng-content>\n</ng-template>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {NgDocCodeModule} from '@ng-doc/app/components/code';\nimport {NgDocCodeHighlighterModule} from '@ng-doc/app/directives/code-highlighter';\nimport {\n NgDocButtonIconModule,\n NgDocExpanderModule,\n NgDocIconModule,\n NgDocSmoothResizeModule,\n NgDocTooltipModule\n} from '@ng-doc/ui-kit';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {NgDocDemoDisplayerComponent} from './demo-displayer.component';\n\n@NgModule({\n\tdeclarations: [NgDocDemoDisplayerComponent],\n\timports: [\n\t\tCommonModule,\n\t\tPolymorpheusModule,\n\t\tNgDocExpanderModule,\n\t\tNgDocCodeModule,\n\t\tNgDocButtonIconModule,\n\t\tNgDocIconModule,\n\t\tNgDocTooltipModule,\n\t\tNgDocCodeHighlighterModule,\n\t\tNgDocSmoothResizeModule,\n\t],\n\texports: [NgDocDemoDisplayerComponent],\n})\nexport class NgDocDemoDisplayerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ng-doc-app-components-demo-displayer.mjs","sources":["../../../../libs/app/components/demo-displayer/demo-displayer.component.ts","../../../../libs/app/components/demo-displayer/demo-displayer.component.html","../../../../libs/app/components/demo-displayer/demo-displayer.module.ts","../../../../libs/app/components/demo-displayer/ng-doc-app-components-demo-displayer.ts"],"sourcesContent":["import {Clipboard} from '@angular/cdk/clipboard';\nimport {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core';\nimport {NgDocContent} from '@ng-doc/ui-kit';\n\n@Component({\n\tselector: 'ng-doc-demo-displayer',\n\ttemplateUrl: './demo-displayer.component.html',\n\tstyleUrls: ['./demo-displayer.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgDocDemoDisplayerComponent {\n\t@Input()\n\tcodeContent: NgDocContent = '';\n\n\t@Input()\n\tcode: string = '';\n\n\t@Input()\n\tlanguage: string = 'typescript';\n\n\t@Input()\n\tcontainer: boolean = true;\n\n\t@Input()\n\t@HostBinding('attr.data-ng-doc-border')\n\tborder: boolean = true;\n\n\t@Input()\n\texpanded: boolean = false;\n\n\tcopyTooltipText: string = '';\n\n\tconstructor(private readonly clipboard: Clipboard) {}\n\n\tprotected get expandTooltipText(): string {\n\t\treturn this.expanded ? 'Collapse' : 'Expand';\n\t}\n\n\tcopyCode(): void {\n\t\tthis.clipboard.copy(this.code);\n\t}\n}\n","<div class=\"ng-doc-demo-wrapper\" *ngIf=\"container; else demoTemplate\">\n\t<div class=\"ng-doc-demo-container\">\n\t\t<div class=\"ng-doc-demo\">\n\t\t\t<ng-container *ngTemplateOutlet=\"demoTemplate\"></ng-container>\n\t\t</div>\n\t\t<div class=\"ng-doc-demo-controls\">\n\t\t\t<button\n\t\t\t\tclass=\"ng-doc-copy-button\"\n\t\t\t\t*ngIf=\"!codeContent\"\n\t\t\t\tng-doc-button-icon\n\t\t\t\t(click)=\"copyCode(); copyTooltipText = 'Copied!'\"\n\t\t\t\t[ngDocTooltip]=\"tooltipContent\"\n\t\t\t\t(mouseenter)=\"copyTooltipText = 'Copy to clipboard'\"\n\t\t\t>\n\t\t\t\t<ng-template #tooltipContent>\n\t\t\t\t\t<ng-doc-smooth-resize [trigger]=\"copyTooltipText\">\n\t\t\t\t\t\t{{copyTooltipText}}\n\t\t\t\t\t</ng-doc-smooth-resize>\n\t\t\t\t</ng-template>\n\t\t\t\t<ng-doc-icon icon=\"copy\"></ng-doc-icon>\n\t\t\t</button>\n\t\t\t<button\n\t\t\t\tng-doc-button-icon\n\t\t\t\t(click)=\"expanded = !expanded\"\n\t\t\t\t[ngDocTooltip]=\"tooltipContent\"\n\t\t\t>\n\t\t\t\t<ng-template #tooltipContent>\n\t\t\t\t\t<ng-doc-smooth-resize [trigger]=\"expandTooltipText\">\n\t\t\t\t\t\t{{expandTooltipText}}\n\t\t\t\t\t</ng-doc-smooth-resize>\n\t\t\t\t</ng-template>\n\t\t\t\t<ng-doc-icon icon=\"code\"></ng-doc-icon>\n\t\t\t</button>\n\t\t</div>\n\t</div>\n\t<ng-doc-expander [content]=\"codeContent ? codeContent : expanderContent\" [expanded]=\"expanded\">\n\t\t<ng-template #expanderContent>\n\t\t\t<ng-doc-code [copyButton]=\"false\">\n\t\t\t\t<pre class=\"hljs ngde\">\n\t\t\t\t\t<code class=\"ngde\" [ngDocCodeHighlighter]=\"code\" [language]=\"'html'\"></code>\n\t\t\t\t</pre>\n\t\t\t</ng-doc-code>\n\t\t</ng-template>\n\t</ng-doc-expander>\n</div>\n\n<ng-template #demoTemplate>\n\t<ng-content></ng-content>\n</ng-template>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {NgDocCodeModule} from '@ng-doc/app/components/code';\nimport {NgDocCodeHighlighterModule} from '@ng-doc/app/directives/code-highlighter';\nimport {\n NgDocButtonIconModule,\n NgDocExpanderModule,\n NgDocIconModule,\n NgDocSmoothResizeModule,\n NgDocTooltipModule\n} from '@ng-doc/ui-kit';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {NgDocDemoDisplayerComponent} from './demo-displayer.component';\n\n@NgModule({\n\tdeclarations: [NgDocDemoDisplayerComponent],\n\timports: [\n\t\tCommonModule,\n\t\tPolymorpheusModule,\n\t\tNgDocExpanderModule,\n\t\tNgDocCodeModule,\n\t\tNgDocButtonIconModule,\n\t\tNgDocIconModule,\n\t\tNgDocTooltipModule,\n\t\tNgDocCodeHighlighterModule,\n\t\tNgDocSmoothResizeModule,\n\t],\n\texports: [NgDocDemoDisplayerComponent],\n})\nexport class NgDocDemoDisplayerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAIA,MAMa,2BAA2B,CAAA;AAsBvC,IAAA,WAAA,CAA6B,SAAoB,EAAA;QAApB,IAAS,CAAA,SAAA,GAAT,SAAS,CAAW;QApBjD,IAAW,CAAA,WAAA,GAAiB,EAAE,CAAC;QAG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