@ng-doc/app 15.12.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 +8 -8
- 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 +9 -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 +26 -2
- package/components/root/root.module.d.ts +3 -2
- 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/esm2022/components/navbar/navbar.component.mjs +101 -0
- 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/{esm2020 → esm2022}/constants/store-keys.mjs +2 -2
- 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/helpers/index.mjs +9 -0
- package/esm2022/helpers/is-dark-os-theme.mjs +7 -0
- package/esm2022/interfaces/application-config.mjs +2 -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/esm2022/services/sidebar/sidebar.service.mjs +99 -0
- package/esm2022/services/store/store.service.mjs +21 -0
- package/esm2022/services/theme/theme.service.mjs +118 -0
- 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/fesm2022/ng-doc-app-components-navbar.mjs +144 -0
- package/fesm2022/ng-doc-app-components-navbar.mjs.map +1 -0
- 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/fesm2022/ng-doc-app-components-root.mjs +136 -0
- package/fesm2022/ng-doc-app-components-root.mjs.map +1 -0
- 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/fesm2022/ng-doc-app-components-search.mjs.map +1 -0
- 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-constants.mjs +1 -1
- package/fesm2022/ng-doc-app-constants.mjs.map +1 -0
- 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-helpers.mjs +8 -1
- package/fesm2022/ng-doc-app-helpers.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ng-doc-app-modules-root.mjs +9 -5
- package/fesm2022/ng-doc-app-modules-root.mjs.map +1 -0
- 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 +30 -26
- package/fesm2022/ng-doc-app-services-sidebar.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ng-doc-app-services-store.mjs +3 -3
- package/{fesm2015 → fesm2022}/ng-doc-app-services-store.mjs.map +1 -1
- package/fesm2022/ng-doc-app-services-theme.mjs +124 -0
- package/fesm2022/ng-doc-app-services-theme.mjs.map +1 -0
- 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/{fesm2015 → 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/helpers/index.d.ts +1 -0
- package/helpers/is-dark-os-theme.d.ts +4 -0
- package/interfaces/application-config.d.ts +11 -1
- package/package.json +228 -346
- package/processors/tooltip-processor/tooltip-wrapper.component.d.ts +1 -1
- package/services/sidebar/sidebar.service.d.ts +3 -10
- package/services/theme/theme.service.d.ts +23 -3
- package/styles/global.css +11 -2
- package/styles/main.css +6 -2
- 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.component.mjs +0 -85
- 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 -71
- package/esm2020/components/root/root.module.mjs +0 -19
- 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/helpers/index.mjs +0 -8
- package/esm2020/interfaces/application-config.mjs +0 -2
- package/esm2020/modules/root/ng-doc.module.mjs +0 -54
- 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/sidebar/sidebar.service.mjs +0 -95
- package/esm2020/services/store/store.service.mjs +0 -20
- package/esm2020/services/theme/theme.service.mjs +0 -70
- 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 -130
- 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-root.mjs +0 -93
- package/fesm2015/ng-doc-app-components-root.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-constants.mjs +0 -76
- package/fesm2015/ng-doc-app-constants.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 -145
- package/fesm2015/ng-doc-app-helpers.mjs.map +0 -1
- package/fesm2015/ng-doc-app-modules-root.mjs +0 -61
- 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 -103
- 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 -79
- 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-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-navbar.mjs +0 -128
- package/fesm2020/ng-doc-app-components-navbar.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 -93
- 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-search.mjs.map +0 -1
- 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.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-helpers.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-root.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-sidebar.mjs.map +0 -1
- package/fesm2020/ng-doc-app-services-store.mjs.map +0 -1
- package/fesm2020/ng-doc-app-services-theme.mjs +0 -76
- package/fesm2020/ng-doc-app-services-theme.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-number-control.mjs.map +0 -1
- 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/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/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/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-directives.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ng-doc-app-directives.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
|
@@ -9,8 +9,8 @@ import { NavigationEnd, Router } from '@angular/router';
|
|
|
9
9
|
import * as i3 from '@ng-doc/ui-kit/services/scroll';
|
|
10
10
|
import { NgDocScrollService } from '@ng-doc/ui-kit/services/scroll';
|
|
11
11
|
import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
|
|
12
|
-
import { BehaviorSubject,
|
|
13
|
-
import { pluck,
|
|
12
|
+
import { BehaviorSubject, combineLatest } from 'rxjs';
|
|
13
|
+
import { pluck, distinctUntilChanged, filter, debounceTime } from 'rxjs/operators';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Service for sidebar, it can be used to hide/show sidebar or to check if sidebar is collapsable.
|
|
@@ -22,39 +22,43 @@ let NgDocSidebarService = class NgDocSidebarService {
|
|
|
22
22
|
this.router = router;
|
|
23
23
|
this.scroll = scroll;
|
|
24
24
|
this.breakpoints = [Breakpoints.XSmall, Breakpoints.Small];
|
|
25
|
-
this.
|
|
26
|
-
this.observer = this.breakpointObserver
|
|
27
|
-
|
|
28
|
-
.pipe(
|
|
25
|
+
this.expanded = new BehaviorSubject(true);
|
|
26
|
+
this.observer = this.breakpointObserver
|
|
27
|
+
.observe(this.breakpoints)
|
|
28
|
+
.pipe(pluck('matches'), distinctUntilChanged(), untilDestroyed(this));
|
|
29
|
+
combineLatest([this.router.events, this.isMobileMode()])
|
|
30
|
+
.pipe(filter(([event, isMobileMode]) => event instanceof NavigationEnd && this.expanded.value && isMobileMode), debounceTime(10))
|
|
29
31
|
.subscribe(() => this.hide());
|
|
32
|
+
this.isMobileMode()
|
|
33
|
+
.pipe(untilDestroyed(this))
|
|
34
|
+
.subscribe((isMobileMode) => {
|
|
35
|
+
if (isMobileMode) {
|
|
36
|
+
this.hide();
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
this.show();
|
|
40
|
+
this.scroll.unblock();
|
|
41
|
+
}
|
|
42
|
+
});
|
|
30
43
|
}
|
|
31
44
|
/**
|
|
32
|
-
* Indicates if sidebar
|
|
33
|
-
* You can use it to start showing a button in the navbar to show/hide sidebar.
|
|
34
|
-
* This method uses media queries to check if sidebar is collapsable based on the current screen size.
|
|
45
|
+
* Indicates if sidebar is collapsable, based on the screen size.
|
|
35
46
|
*/
|
|
36
|
-
|
|
47
|
+
isMobileMode() {
|
|
37
48
|
return this.observer;
|
|
38
49
|
}
|
|
39
50
|
/**
|
|
40
51
|
* Indicates if sidebar is visible, based on the show/hide methods.
|
|
41
52
|
*/
|
|
42
|
-
visibilityChanges() {
|
|
43
|
-
return this.visible.asObservable();
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Indicates if sidebar is expanded, based on the show/hide methods and if sidebar is collapsable.
|
|
47
|
-
* This method can be used to display backdrop when sidebar is expanded.
|
|
48
|
-
*/
|
|
49
53
|
isExpanded() {
|
|
50
|
-
return this.
|
|
54
|
+
return this.expanded.asObservable();
|
|
51
55
|
}
|
|
52
56
|
/**
|
|
53
57
|
* Show sidebar, and block scrolling.
|
|
54
58
|
*/
|
|
55
59
|
show() {
|
|
56
|
-
if (!this.
|
|
57
|
-
this.
|
|
60
|
+
if (!this.expanded.value) {
|
|
61
|
+
this.expanded.next(true);
|
|
58
62
|
this.scroll.block();
|
|
59
63
|
}
|
|
60
64
|
}
|
|
@@ -62,8 +66,8 @@ let NgDocSidebarService = class NgDocSidebarService {
|
|
|
62
66
|
* Hide sidebar, and unblock scrolling.
|
|
63
67
|
*/
|
|
64
68
|
hide() {
|
|
65
|
-
if (this.
|
|
66
|
-
this.
|
|
69
|
+
if (this.expanded.value) {
|
|
70
|
+
this.expanded.next(false);
|
|
67
71
|
this.scroll.unblock();
|
|
68
72
|
}
|
|
69
73
|
}
|
|
@@ -71,11 +75,11 @@ let NgDocSidebarService = class NgDocSidebarService {
|
|
|
71
75
|
* Toggle sidebar visibility.
|
|
72
76
|
*/
|
|
73
77
|
toggle() {
|
|
74
|
-
this.
|
|
78
|
+
this.expanded.value ? this.hide() : this.show();
|
|
75
79
|
}
|
|
80
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocSidebarService, deps: [{ token: DOCUMENT }, { token: i1.BreakpointObserver }, { token: i2.Router }, { token: i3.NgDocScrollService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
81
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocSidebarService, providedIn: 'root' }); }
|
|
76
82
|
};
|
|
77
|
-
NgDocSidebarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocSidebarService, deps: [{ token: DOCUMENT }, { token: i1.BreakpointObserver }, { token: i2.Router }, { token: i3.NgDocScrollService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
78
|
-
NgDocSidebarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocSidebarService, providedIn: 'root' });
|
|
79
83
|
NgDocSidebarService = __decorate([
|
|
80
84
|
UntilDestroy(),
|
|
81
85
|
__metadata("design:paramtypes", [Document,
|
|
@@ -83,7 +87,7 @@ NgDocSidebarService = __decorate([
|
|
|
83
87
|
Router,
|
|
84
88
|
NgDocScrollService])
|
|
85
89
|
], NgDocSidebarService);
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocSidebarService, decorators: [{
|
|
87
91
|
type: Injectable,
|
|
88
92
|
args: [{
|
|
89
93
|
providedIn: 'root',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-doc-app-services-sidebar.mjs","sources":["../../../../libs/app/services/sidebar/sidebar.service.ts","../../../../libs/app/services/sidebar/ng-doc-app-services-sidebar.ts"],"sourcesContent":["import {BreakpointObserver, Breakpoints} from '@angular/cdk/layout';\nimport {DOCUMENT} from '@angular/common';\nimport {Inject, Injectable} from '@angular/core';\nimport {Event, NavigationEnd, Router} from '@angular/router';\nimport {NgDocScrollService} from '@ng-doc/ui-kit/services/scroll';\nimport {UntilDestroy, untilDestroyed} from '@ngneat/until-destroy';\nimport {BehaviorSubject, combineLatest, Observable, of} from 'rxjs';\nimport {debounceTime, distinctUntilChanged, filter, pluck, share, startWith, switchMap, tap} from 'rxjs/operators';\n\n/**\n * Service for sidebar, it can be used to hide/show sidebar or to check if sidebar is collapsable.\n */\n@Injectable({\n\tprovidedIn: 'root',\n})\n@UntilDestroy()\nexport class NgDocSidebarService {\n\treadonly breakpoints: string[] = [Breakpoints.XSmall, Breakpoints.Small];\n\tprotected readonly observer: Observable<boolean>;\n\tprotected readonly expanded: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(true);\n\n\tconstructor(\n\t\t@Inject(DOCUMENT)\n\t\tprotected readonly document: Document,\n\t\tprotected readonly breakpointObserver: BreakpointObserver,\n\t\tprotected readonly router: Router,\n\t\tprotected readonly scroll: NgDocScrollService,\n\t) {\n\t\tthis.observer = this.breakpointObserver\n\t\t\t.observe(this.breakpoints)\n\t\t\t.pipe(pluck('matches'), distinctUntilChanged(), untilDestroyed(this));\n\n\t\tcombineLatest([this.router.events, this.isMobileMode()])\n\t\t\t.pipe(\n\t\t\t\tfilter(\n\t\t\t\t\t([event, isMobileMode]: [Event, boolean]) =>\n\t\t\t\t\t\tevent instanceof NavigationEnd && this.expanded.value && isMobileMode,\n\t\t\t\t),\n\t\t\t\tdebounceTime(10),\n\t\t\t)\n\t\t\t.subscribe(() => this.hide());\n\n\t\tthis.isMobileMode()\n\t\t\t.pipe(untilDestroyed(this))\n\t\t\t.subscribe((isMobileMode: boolean) => {\n\t\t\t\tif (isMobileMode) {\n\t\t\t\t\tthis.hide();\n\t\t\t\t} else {\n\t\t\t\t\tthis.show();\n\t\t\t\t\tthis.scroll.unblock();\n\t\t\t\t}\n\t\t\t});\n\t}\n\n\t/**\n\t * Indicates if sidebar is collapsable, based on the screen size.\n\t */\n\tisMobileMode(): Observable<boolean> {\n\t\treturn this.observer;\n\t}\n\n\t/**\n\t * Indicates if sidebar is visible, based on the show/hide methods.\n\t */\n\tisExpanded(): Observable<boolean> {\n\t\treturn this.expanded.asObservable();\n\t}\n\n\t/**\n\t * Show sidebar, and block scrolling.\n\t */\n\tshow(): void {\n\t\tif (!this.expanded.value) {\n\t\t\tthis.expanded.next(true);\n\t\t\tthis.scroll.block();\n\t\t}\n\t}\n\n\t/**\n\t * Hide sidebar, and unblock scrolling.\n\t */\n\thide(): void {\n\t\tif (this.expanded.value) {\n\t\t\tthis.expanded.next(false);\n\t\t\tthis.scroll.unblock();\n\t\t}\n\t}\n\n\t/**\n\t * Toggle sidebar visibility.\n\t */\n\ttoggle(): void {\n\t\tthis.expanded.value ? this.hide() : this.show();\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AASA;;AAEG;AAKU,IAAA,mBAAmB,GAJhC,MAIa,mBAAmB,CAAA;AAK/B,IAAA,WAAA,CAEoB,QAAkB,EAClB,kBAAsC,EACtC,MAAc,EACd,MAA0B,EAAA;QAH1B,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAU;QAClB,IAAkB,CAAA,kBAAA,GAAlB,kBAAkB,CAAoB;QACtC,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QACd,IAAM,CAAA,MAAA,GAAN,MAAM,CAAoB;QATrC,IAAW,CAAA,WAAA,GAAa,CAAC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAEtD,QAAA,IAAA,CAAA,QAAQ,GAA6B,IAAI,eAAe,CAAU,IAAI,CAAC,CAAC;AAS1F,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,kBAAkB;AACrC,aAAA,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC;AACzB,aAAA,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,oBAAoB,EAAE,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC;AAEvE,QAAA,aAAa,CAA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
9
9
|
get(key, deserialize) {
|
|
10
10
|
return deserialize ? deserialize(localStorage.getItem(key)) : localStorage.getItem(key);
|
|
11
11
|
}
|
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocStoreService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
13
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocStoreService, providedIn: 'root' }); }
|
|
12
14
|
}
|
|
13
|
-
|
|
14
|
-
NgDocStoreService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocStoreService, providedIn: 'root' });
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocStoreService, decorators: [{
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocStoreService, decorators: [{
|
|
16
16
|
type: Injectable,
|
|
17
17
|
args: [{
|
|
18
18
|
providedIn: 'root',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-app-services-store.mjs","sources":["../../../../libs/app/services/store/store.service.ts","../../../../libs/app/services/store/ng-doc-app-services-store.ts"],"sourcesContent":["import {Injectable} from '@angular/core';\n\nconst DEFAULT_SERIALIZE: (v: unknown) => string = (v: unknown) => String(v);\n\n@Injectable({\n\tprovidedIn: 'root',\n})\nexport class NgDocStoreService {\n\tset(key: string, data: string): void;\n\tset<T>(key: string, data: T, serialize: (v: T) => string): void;\n\tset<T>(key: string, data: T, serialize: (v: T) => string = DEFAULT_SERIALIZE): void {\n\t\treturn localStorage.setItem(key, serialize(data));\n\t}\n\n\tget(key: string): string | null;\n\tget<T>(key: string, deserialize: (v: string | null) => T): T;\n\tget<T>(key: string, deserialize?: (v: string | null) => T): T | string | null {\n\t\treturn deserialize ? deserialize(localStorage.getItem(key)) : localStorage.getItem(key);\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA,MAAM,iBAAiB,GAA2B,CAAC,CAAU,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"ng-doc-app-services-store.mjs","sources":["../../../../libs/app/services/store/store.service.ts","../../../../libs/app/services/store/ng-doc-app-services-store.ts"],"sourcesContent":["import {Injectable} from '@angular/core';\n\nconst DEFAULT_SERIALIZE: (v: unknown) => string = (v: unknown) => String(v);\n\n@Injectable({\n\tprovidedIn: 'root',\n})\nexport class NgDocStoreService {\n\tset(key: string, data: string): void;\n\tset<T>(key: string, data: T, serialize: (v: T) => string): void;\n\tset<T>(key: string, data: T, serialize: (v: T) => string = DEFAULT_SERIALIZE): void {\n\t\treturn localStorage.setItem(key, serialize(data));\n\t}\n\n\tget(key: string): string | null;\n\tget<T>(key: string, deserialize: (v: string | null) => T): T;\n\tget<T>(key: string, deserialize?: (v: string | null) => T): T | string | null {\n\t\treturn deserialize ? deserialize(localStorage.getItem(key)) : localStorage.getItem(key);\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA,MAAM,iBAAiB,GAA2B,CAAC,CAAU,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC;AAE5E,MAGa,iBAAiB,CAAA;AAG7B,IAAA,GAAG,CAAI,GAAW,EAAE,IAAO,EAAE,YAA8B,iBAAiB,EAAA;QAC3E,OAAO,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;KAClD;IAID,GAAG,CAAI,GAAW,EAAE,WAAqC,EAAA;QACxD,OAAO,WAAW,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;KACxF;8GAXW,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,cAFjB,MAAM,EAAA,CAAA,CAAA,EAAA;;2FAEN,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAH7B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACX,oBAAA,UAAU,EAAE,MAAM;AAClB,iBAAA,CAAA;;;ACND;;AAEG;;;;"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { __decorate, __metadata } from 'tslib';
|
|
2
|
+
import { DOCUMENT } from '@angular/common';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { Injectable, Inject, Optional } from '@angular/core';
|
|
5
|
+
import { NG_DOC_NIGHT_THEME, NG_DOC_STORE_THEME_KEY } from '@ng-doc/app/constants';
|
|
6
|
+
import * as i1 from '@ng-doc/app/services/store';
|
|
7
|
+
import { NgDocStoreService } from '@ng-doc/app/services/store';
|
|
8
|
+
import { NG_DOC_THEME, NG_DOC_DEFAULT_THEME_ID } from '@ng-doc/app/tokens';
|
|
9
|
+
import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
|
|
10
|
+
import { Subject, fromEvent } from 'rxjs';
|
|
11
|
+
import { takeUntil } from 'rxjs/operators';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Service for managing themes.
|
|
15
|
+
*/
|
|
16
|
+
let NgDocThemeService = class NgDocThemeService {
|
|
17
|
+
constructor(document, themes, store, defaultThemeId) {
|
|
18
|
+
this.document = document;
|
|
19
|
+
this.themes = themes;
|
|
20
|
+
this.store = store;
|
|
21
|
+
this.defaultThemeId = defaultThemeId;
|
|
22
|
+
this.theme = undefined;
|
|
23
|
+
this.theme$ = new Subject();
|
|
24
|
+
this.disableAutoTheme$ = new Subject();
|
|
25
|
+
if (defaultThemeId === 'auto') {
|
|
26
|
+
fromEvent(window.matchMedia('(prefers-color-scheme: dark)'), 'change')
|
|
27
|
+
.pipe(takeUntil(this.disableAutoTheme$), untilDestroyed(this))
|
|
28
|
+
.subscribe((event) => this.set(event.matches ? NG_DOC_NIGHT_THEME.id : undefined, false));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Returns the current theme.
|
|
33
|
+
*/
|
|
34
|
+
get currentTheme() {
|
|
35
|
+
return this.theme;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Sets the theme by id.
|
|
39
|
+
*
|
|
40
|
+
* @param id Theme id.
|
|
41
|
+
* @param save Whether to save the theme in the store to restore it when the page is reloaded. (`true` by default)
|
|
42
|
+
*/
|
|
43
|
+
set(id, save = true) {
|
|
44
|
+
this.removeLink();
|
|
45
|
+
if (id === 'auto') {
|
|
46
|
+
return Promise.resolve();
|
|
47
|
+
}
|
|
48
|
+
save && this.disableAutoTheme$.next();
|
|
49
|
+
if (id !== 'day' && id) {
|
|
50
|
+
const theme = this.themes.find((theme) => theme.id === id);
|
|
51
|
+
if (!theme) {
|
|
52
|
+
console.warn(`Theme with id "${id}" is not registered. Make sure that you registered it in the root of your application.`);
|
|
53
|
+
return Promise.resolve();
|
|
54
|
+
}
|
|
55
|
+
this.createLinkIfNoExists();
|
|
56
|
+
if (this.linkElement) {
|
|
57
|
+
this.linkElement.href = theme.path;
|
|
58
|
+
save && this.store.set(NG_DOC_STORE_THEME_KEY, theme.id);
|
|
59
|
+
this.theme = theme;
|
|
60
|
+
return new Promise((resolve, reject) => {
|
|
61
|
+
if (this.linkElement) {
|
|
62
|
+
this.linkElement.onload = () => {
|
|
63
|
+
this.theme$.next(theme);
|
|
64
|
+
resolve();
|
|
65
|
+
};
|
|
66
|
+
this.linkElement.onerror = reject;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
save && this.store.set(NG_DOC_STORE_THEME_KEY, 'day');
|
|
72
|
+
this.theme$.next(undefined);
|
|
73
|
+
return Promise.resolve();
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Returns an observable that emits when the theme changes.
|
|
77
|
+
*/
|
|
78
|
+
themeChanges() {
|
|
79
|
+
return this.theme$.asObservable();
|
|
80
|
+
}
|
|
81
|
+
removeLink() {
|
|
82
|
+
this.theme = undefined;
|
|
83
|
+
this.linkElement?.remove();
|
|
84
|
+
this.linkElement = undefined;
|
|
85
|
+
}
|
|
86
|
+
createLinkIfNoExists() {
|
|
87
|
+
if (!this.linkElement) {
|
|
88
|
+
this.linkElement = this.document.createElement('link');
|
|
89
|
+
this.linkElement.setAttribute('rel', 'stylesheet');
|
|
90
|
+
this.linkElement.setAttribute('type', 'text/css');
|
|
91
|
+
this.document.getElementsByTagName('head')[0].appendChild(this.linkElement);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocThemeService, deps: [{ token: DOCUMENT }, { token: NG_DOC_THEME }, { token: i1.NgDocStoreService }, { token: NG_DOC_DEFAULT_THEME_ID, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
95
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocThemeService, providedIn: 'root' }); }
|
|
96
|
+
};
|
|
97
|
+
NgDocThemeService = __decorate([
|
|
98
|
+
UntilDestroy(),
|
|
99
|
+
__metadata("design:paramtypes", [Document, Array, NgDocStoreService, String])
|
|
100
|
+
], NgDocThemeService);
|
|
101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocThemeService, decorators: [{
|
|
102
|
+
type: Injectable,
|
|
103
|
+
args: [{
|
|
104
|
+
providedIn: 'root',
|
|
105
|
+
}]
|
|
106
|
+
}], ctorParameters: function () { return [{ type: Document, decorators: [{
|
|
107
|
+
type: Inject,
|
|
108
|
+
args: [DOCUMENT]
|
|
109
|
+
}] }, { type: undefined, decorators: [{
|
|
110
|
+
type: Inject,
|
|
111
|
+
args: [NG_DOC_THEME]
|
|
112
|
+
}] }, { type: i1.NgDocStoreService }, { type: undefined, decorators: [{
|
|
113
|
+
type: Inject,
|
|
114
|
+
args: [NG_DOC_DEFAULT_THEME_ID]
|
|
115
|
+
}, {
|
|
116
|
+
type: Optional
|
|
117
|
+
}] }]; } });
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Generated bundle index. Do not edit.
|
|
121
|
+
*/
|
|
122
|
+
|
|
123
|
+
export { NgDocThemeService };
|
|
124
|
+
//# sourceMappingURL=ng-doc-app-services-theme.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-doc-app-services-theme.mjs","sources":["../../../../libs/app/services/theme/theme.service.ts","../../../../libs/app/services/theme/ng-doc-app-services-theme.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Inject, Injectable, Optional} from '@angular/core';\nimport {NG_DOC_NIGHT_THEME, NG_DOC_STORE_THEME_KEY} from '@ng-doc/app/constants';\nimport {NgDocTheme} from '@ng-doc/app/interfaces';\nimport {NgDocStoreService} from '@ng-doc/app/services/store';\nimport {NG_DOC_DEFAULT_THEME_ID, NG_DOC_THEME} from '@ng-doc/app/tokens';\nimport {UntilDestroy, untilDestroyed} from '@ngneat/until-destroy';\nimport {from, fromEvent, Observable, Subject} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n/**\n * Service for managing themes.\n */\n@Injectable({\n\tprovidedIn: 'root',\n})\n@UntilDestroy()\nexport class NgDocThemeService {\n\tprivate linkElement?: HTMLLinkElement;\n\tprivate theme: NgDocTheme | undefined = undefined;\n\tprivate readonly theme$: Subject<NgDocTheme | undefined> = new Subject<NgDocTheme | undefined>();\n\tprivate readonly disableAutoTheme$: Subject<void> = new Subject<void>();\n\n\tconstructor(\n\t\t@Inject(DOCUMENT)\n\t\tprivate readonly document: Document,\n\t\t@Inject(NG_DOC_THEME)\n\t\tprivate readonly themes: NgDocTheme[],\n\t\tprivate readonly store: NgDocStoreService,\n\t\t@Inject(NG_DOC_DEFAULT_THEME_ID)\n\t\t@Optional()\n\t\tprivate readonly defaultThemeId?: string | 'auto',\n\t) {\n\t\tif (defaultThemeId === 'auto') {\n\t\t\tfromEvent<MediaQueryList>(window.matchMedia('(prefers-color-scheme: dark)'), 'change')\n\t\t\t\t.pipe(takeUntil(this.disableAutoTheme$), untilDestroyed(this))\n\t\t\t\t.subscribe((event: MediaQueryList) => this.set(event.matches ? NG_DOC_NIGHT_THEME.id : undefined, false))\n\t\t}\n\t}\n\n\t/**\n\t * Returns the current theme.\n\t */\n\tget currentTheme(): NgDocTheme | undefined {\n\t\treturn this.theme;\n\t}\n\n\t/**\n\t * Sets the theme by id.\n\t *\n\t * @param id Theme id.\n\t * @param save Whether to save the theme in the store to restore it when the page is reloaded. (`true` by default)\n\t */\n\tset(id?: string | 'auto', save: boolean = true): Promise<void> {\n\t\tthis.removeLink();\n\n\t\tif (id === 'auto') {\n\t\t\treturn Promise.resolve();\n\t\t}\n\n\t\tsave && this.disableAutoTheme$.next();\n\n\t\tif (id !== 'day' && id) {\n\t\t\tconst theme: NgDocTheme | undefined = this.themes.find((theme: NgDocTheme) => theme.id === id);\n\n\t\t\tif (!theme) {\n\t\t\t\tconsole.warn(\n\t\t\t\t\t`Theme with id \"${id}\" is not registered. Make sure that you registered it in the root of your application.`,\n\t\t\t\t);\n\n\t\t\t\treturn Promise.resolve();\n\t\t\t}\n\n\t\t\tthis.createLinkIfNoExists();\n\n\t\t\tif (this.linkElement) {\n\t\t\t\tthis.linkElement.href = theme.path;\n\t\t\t\tsave && this.store.set(NG_DOC_STORE_THEME_KEY, theme.id);\n\t\t\t\tthis.theme = theme;\n\n\t\t\t\treturn new Promise<void>((resolve: () => void, reject: (err: Event | string) => void) => {\n\t\t\t\t\tif (this.linkElement) {\n\t\t\t\t\t\tthis.linkElement.onload = () => {\n\t\t\t\t\t\t\tthis.theme$.next(theme);\n\t\t\t\t\t\t\tresolve();\n\t\t\t\t\t\t};\n\t\t\t\t\t\tthis.linkElement.onerror = reject;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tsave && this.store.set(NG_DOC_STORE_THEME_KEY, 'day');\n\n\t\tthis.theme$.next(undefined);\n\n\t\treturn Promise.resolve();\n\t}\n\n\t/**\n\t * Returns an observable that emits when the theme changes.\n\t */\n\tthemeChanges(): Observable<NgDocTheme | undefined> {\n\t\treturn this.theme$.asObservable();\n\t}\n\n\tprivate removeLink(): void {\n\t\tthis.theme = undefined;\n\t\tthis.linkElement?.remove();\n\t\tthis.linkElement = undefined;\n\t}\n\tprivate createLinkIfNoExists(): void {\n\t\tif (!this.linkElement) {\n\t\t\tthis.linkElement = this.document.createElement('link');\n\t\t\tthis.linkElement.setAttribute('rel', 'stylesheet');\n\t\t\tthis.linkElement.setAttribute('type', 'text/css');\n\t\t\tthis.document.getElementsByTagName('head')[0].appendChild(this.linkElement);\n\t\t}\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAUA;;AAEG;AAKU,IAAA,iBAAiB,GAJ9B,MAIa,iBAAiB,CAAA;AAM7B,IAAA,WAAA,CAEkB,QAAkB,EAElB,MAAoB,EACpB,KAAwB,EAGxB,cAAgC,EAAA;QANhC,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAU;QAElB,IAAM,CAAA,MAAA,GAAN,MAAM,CAAc;QACpB,IAAK,CAAA,KAAA,GAAL,KAAK,CAAmB;QAGxB,IA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A;2FAtGY,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACX,oBAAA,UAAU,EAAE,MAAM;AAClB,iBAAA,CAAA;;0BASE,MAAM;2BAAC,QAAQ,CAAA;;0BAEf,MAAM;2BAAC,YAAY,CAAA;;0BAGnB,MAAM;2BAAC,uBAAuB,CAAA;;0BAC9B,QAAQ;;;AC9BX;;AAEG;;;;"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
|
3
|
+
import { FlControlHost, provideControlHost } from 'flex-controls';
|
|
4
|
+
import * as i1 from '@ng-doc/ui-kit';
|
|
5
|
+
import { NgDocCheckboxModule, NgDocTooltipModule } from '@ng-doc/ui-kit';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import { provideTypeControl } from '@ng-doc/app/helpers';
|
|
8
|
+
|
|
9
|
+
class NgDocBooleanControlComponent extends FlControlHost {
|
|
10
|
+
constructor() {
|
|
11
|
+
super();
|
|
12
|
+
this.name = '';
|
|
13
|
+
this.description = '';
|
|
14
|
+
this.controlChange.subscribe(() => this.onTouched());
|
|
15
|
+
}
|
|
16
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocBooleanControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
17
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgDocBooleanControlComponent, selector: "ng-doc-boolean-control", providers: [provideControlHost(NgDocBooleanControlComponent)], usesInheritance: true, ngImport: i0, template: "<ng-doc-checkbox [ngDocTooltip]=\"description\" [canOpen]=\"!!description\">{{ name }}</ng-doc-checkbox>\n", styles: [":host{display:inline-flex;width:100%}\n"], dependencies: [{ kind: "component", type: i1.NgDocCheckboxComponent, selector: "ng-doc-checkbox", inputs: ["color"] }, { kind: "directive", type: i1.NgDocTooltipDirective, selector: "[ngDocTooltip]", inputs: ["ngDocTooltip", "delay", "displayOrigin", "pointerOrigin", "positions", "canOpen", "panelClass", "minHeight", "maxHeight", "height", "minWidth", "maxWidth", "width"], outputs: ["beforeOpen", "afterOpen", "beforeClose", "afterClose"], exportAs: ["ngDocTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
18
|
+
}
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocBooleanControlComponent, decorators: [{
|
|
20
|
+
type: Component,
|
|
21
|
+
args: [{ selector: 'ng-doc-boolean-control', providers: [provideControlHost(NgDocBooleanControlComponent)], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-doc-checkbox [ngDocTooltip]=\"description\" [canOpen]=\"!!description\">{{ name }}</ng-doc-checkbox>\n", styles: [":host{display:inline-flex;width:100%}\n"] }]
|
|
22
|
+
}], ctorParameters: function () { return []; } });
|
|
23
|
+
|
|
24
|
+
const provider = provideTypeControl('boolean', NgDocBooleanControlComponent, { hideLabel: true, order: 40 });
|
|
25
|
+
class NgDocBooleanControlModule {
|
|
26
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocBooleanControlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
27
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: NgDocBooleanControlModule, declarations: [NgDocBooleanControlComponent], imports: [CommonModule, NgDocCheckboxModule, NgDocTooltipModule], exports: [NgDocBooleanControlComponent] }); }
|
|
28
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocBooleanControlModule, providers: [provider], imports: [CommonModule, NgDocCheckboxModule, NgDocTooltipModule] }); }
|
|
29
|
+
}
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocBooleanControlModule, decorators: [{
|
|
31
|
+
type: NgModule,
|
|
32
|
+
args: [{
|
|
33
|
+
declarations: [NgDocBooleanControlComponent],
|
|
34
|
+
imports: [CommonModule, NgDocCheckboxModule, NgDocTooltipModule],
|
|
35
|
+
providers: [provider],
|
|
36
|
+
exports: [NgDocBooleanControlComponent],
|
|
37
|
+
}]
|
|
38
|
+
}] });
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Generated bundle index. Do not edit.
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
export { NgDocBooleanControlComponent, NgDocBooleanControlModule };
|
|
45
|
+
//# sourceMappingURL=ng-doc-app-type-controls-boolean-control.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-app-type-controls-boolean-control.mjs","sources":["../../../../libs/app/type-controls/boolean-control/boolean-control.component.ts","../../../../libs/app/type-controls/boolean-control/boolean-control.component.html","../../../../libs/app/type-controls/boolean-control/boolean-control.module.ts","../../../../libs/app/type-controls/boolean-control/ng-doc-app-type-controls-boolean-control.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {NgDocTypeControl} from '@ng-doc/app/interfaces';\nimport {FlControlHost, provideControlHost} from 'flex-controls';\n\n@Component({\n\tselector: 'ng-doc-boolean-control',\n\ttemplateUrl: './boolean-control.component.html',\n\tstyleUrls: ['./boolean-control.component.scss'],\n\tproviders: [provideControlHost(NgDocBooleanControlComponent)],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgDocBooleanControlComponent extends FlControlHost<string | undefined> implements NgDocTypeControl {\n\tname: string = '';\n\tdescription: string = '';\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.controlChange.subscribe(() => this.onTouched());\n\t}\n}\n","<ng-doc-checkbox [ngDocTooltip]=\"description\" [canOpen]=\"!!description\">{{ name }}</ng-doc-checkbox>\n","import {CommonModule} from '@angular/common';\nimport {NgModule, Provider} from '@angular/core';\nimport {provideTypeControl} from '@ng-doc/app/helpers';\nimport {NgDocCheckboxModule, NgDocTooltipModule} from '@ng-doc/ui-kit';\n\nimport {NgDocBooleanControlComponent} from './boolean-control.component';\n\nconst provider: Provider = provideTypeControl('boolean', NgDocBooleanControlComponent, {hideLabel: true, order: 40});\n\n@NgModule({\n\tdeclarations: [NgDocBooleanControlComponent],\n\timports: [CommonModule, NgDocCheckboxModule, NgDocTooltipModule],\n\tproviders: [provider],\n\texports: [NgDocBooleanControlComponent],\n})\nexport class NgDocBooleanControlModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"ng-doc-app-type-controls-boolean-control.mjs","sources":["../../../../libs/app/type-controls/boolean-control/boolean-control.component.ts","../../../../libs/app/type-controls/boolean-control/boolean-control.component.html","../../../../libs/app/type-controls/boolean-control/boolean-control.module.ts","../../../../libs/app/type-controls/boolean-control/ng-doc-app-type-controls-boolean-control.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {NgDocTypeControl} from '@ng-doc/app/interfaces';\nimport {FlControlHost, provideControlHost} from 'flex-controls';\n\n@Component({\n\tselector: 'ng-doc-boolean-control',\n\ttemplateUrl: './boolean-control.component.html',\n\tstyleUrls: ['./boolean-control.component.scss'],\n\tproviders: [provideControlHost(NgDocBooleanControlComponent)],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgDocBooleanControlComponent extends FlControlHost<string | undefined> implements NgDocTypeControl {\n\tname: string = '';\n\tdescription: string = '';\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.controlChange.subscribe(() => this.onTouched());\n\t}\n}\n","<ng-doc-checkbox [ngDocTooltip]=\"description\" [canOpen]=\"!!description\">{{ name }}</ng-doc-checkbox>\n","import {CommonModule} from '@angular/common';\nimport {NgModule, Provider} from '@angular/core';\nimport {provideTypeControl} from '@ng-doc/app/helpers';\nimport {NgDocCheckboxModule, NgDocTooltipModule} from '@ng-doc/ui-kit';\n\nimport {NgDocBooleanControlComponent} from './boolean-control.component';\n\nconst provider: Provider = provideTypeControl('boolean', NgDocBooleanControlComponent, {hideLabel: true, order: 40});\n\n@NgModule({\n\tdeclarations: [NgDocBooleanControlComponent],\n\timports: [CommonModule, NgDocCheckboxModule, NgDocTooltipModule],\n\tproviders: [provider],\n\texports: [NgDocBooleanControlComponent],\n})\nexport class NgDocBooleanControlModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAIA,MAOa,4BAA6B,SAAQ,aAAiC,CAAA;AAIlF,IAAA,WAAA,GAAA;AACC,QAAA,KAAK,EAAE,CAAC;QAJT,IAAI,CAAA,IAAA,GAAW,EAAE,CAAC;QAClB,IAAW,CAAA,WAAA,GAAW,EAAE,CAAC;AAKxB,QAAA,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;KACrD;8GARW,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAA5B,4BAA4B,EAAA,QAAA,EAAA,wBAAA,EAAA,SAAA,EAH7B,CAAC,kBAAkB,CAAC,4BAA4B,CAAC,CAAC,iDCR9D,4GACA,EAAA,MAAA,EAAA,CAAA,yCAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,sBAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,OAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,qBAAA,EAA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yBAAyB,EAAA,UAAA,EAAA,CAAA;kBANrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACT,YAAY,EAAE,CAAC,4BAA4B,CAAC;AAC5C,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,CAAC;oBAChE,SAAS,EAAE,CAAC,QAAQ,CAAC;oBACrB,OAAO,EAAE,CAAC,4BAA4B,CAAC;AACvC,iBAAA,CAAA;;;ACdD;;AAEG;;;;"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
|
3
|
+
import { extractValue } from '@ng-doc/core/helpers/extract-value';
|
|
4
|
+
import * as i4 from 'flex-controls';
|
|
5
|
+
import { FlControl, FlControlSilencerModule } from 'flex-controls';
|
|
6
|
+
import * as i1 from '@angular/common';
|
|
7
|
+
import { CommonModule } from '@angular/common';
|
|
8
|
+
import * as i2 from '@ng-doc/ui-kit';
|
|
9
|
+
import { NgDocInputWrapperModule, NgDocInputNumberModule, NgDocClearControlModule, NgDocButtonIconModule, NgDocFocusableModule, NgDocIconModule } from '@ng-doc/ui-kit';
|
|
10
|
+
import * as i3 from '@angular/forms';
|
|
11
|
+
import { FormsModule } from '@angular/forms';
|
|
12
|
+
import { provideTypeControl } from '@ng-doc/app/helpers';
|
|
13
|
+
|
|
14
|
+
class NgDocNumberControlComponent extends FlControl {
|
|
15
|
+
constructor() {
|
|
16
|
+
super();
|
|
17
|
+
}
|
|
18
|
+
get defaultValue() {
|
|
19
|
+
return this.default ? extractValue(this.default) : null;
|
|
20
|
+
}
|
|
21
|
+
changeModel(value) {
|
|
22
|
+
this.updateModel(value === null && this.default ? this.defaultValue : value);
|
|
23
|
+
}
|
|
24
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocNumberControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
25
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgDocNumberControlComponent, selector: "ng-doc-number-control", usesInheritance: true, ngImport: i0, template: "<ng-doc-input-wrapper flControlSilencer [rightContent]=\"rightContent\">\n\t<input ngDocInputNumber type=\"number\" [ngModel]=\"model\" (ngModelChange)=\"changeModel($event)\">\n\t<ng-template #rightContent>\n\t\t<button\n\t\t\tng-doc-button-icon\n\t\t\tsize=\"large\"\n\t\t\t[ngDocFocusable]=\"false\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[rounded]=\"false\"\n\t\t\t(click)=\"updateModel(defaultValue)\"\n\t\t\t(focusout)=\"onTouched()\"\n\t\t\t*ngIf=\"model && model !== defaultValue\"\n\t\t>\n\t\t\t<ng-doc-icon icon=\"x\"></ng-doc-icon>\n\t\t</button>\n\t</ng-template>\n</ng-doc-input-wrapper>\n", styles: [":host{display:block;width:100%}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.NgDocInputWrapperComponent, selector: "ng-doc-input-wrapper", inputs: ["blurContent", "blurContext", "leftContent", "rightContent", "align"] }, { kind: "directive", type: i2.NgDocInputNumberDirective, selector: "input[ngDocInputNumber]" }, { kind: "directive", type: i3.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: i3.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4.FlControlSilencerDirective, selector: "[flControlSilencer]" }, { kind: "component", type: i2.NgDocButtonIconComponent, selector: "button[ng-doc-button-icon], a[ng-doc-button-icon]", inputs: ["size", "rounded"] }, { kind: "directive", type: i2.NgDocFocusableDirective, selector: "[ngDocFocusable]", inputs: ["ngDocFocusable"], exportAs: ["ngDocFocusable"] }, { kind: "component", type: i2.NgDocIconComponent, selector: "ng-doc-icon", inputs: ["icon", "size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
26
|
+
}
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocNumberControlComponent, decorators: [{
|
|
28
|
+
type: Component,
|
|
29
|
+
args: [{ selector: 'ng-doc-number-control', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-doc-input-wrapper flControlSilencer [rightContent]=\"rightContent\">\n\t<input ngDocInputNumber type=\"number\" [ngModel]=\"model\" (ngModelChange)=\"changeModel($event)\">\n\t<ng-template #rightContent>\n\t\t<button\n\t\t\tng-doc-button-icon\n\t\t\tsize=\"large\"\n\t\t\t[ngDocFocusable]=\"false\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[rounded]=\"false\"\n\t\t\t(click)=\"updateModel(defaultValue)\"\n\t\t\t(focusout)=\"onTouched()\"\n\t\t\t*ngIf=\"model && model !== defaultValue\"\n\t\t>\n\t\t\t<ng-doc-icon icon=\"x\"></ng-doc-icon>\n\t\t</button>\n\t</ng-template>\n</ng-doc-input-wrapper>\n", styles: [":host{display:block;width:100%}\n"] }]
|
|
30
|
+
}], ctorParameters: function () { return []; } });
|
|
31
|
+
|
|
32
|
+
const provider = provideTypeControl('number', NgDocNumberControlComponent, { order: 30 });
|
|
33
|
+
class NgDocNumberControlModule {
|
|
34
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocNumberControlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
35
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: NgDocNumberControlModule, declarations: [NgDocNumberControlComponent], imports: [CommonModule,
|
|
36
|
+
NgDocInputWrapperModule,
|
|
37
|
+
NgDocInputNumberModule,
|
|
38
|
+
NgDocClearControlModule,
|
|
39
|
+
FormsModule,
|
|
40
|
+
FlControlSilencerModule,
|
|
41
|
+
NgDocButtonIconModule,
|
|
42
|
+
NgDocFocusableModule,
|
|
43
|
+
NgDocIconModule], exports: [NgDocNumberControlComponent] }); }
|
|
44
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocNumberControlModule, providers: [provider], imports: [CommonModule,
|
|
45
|
+
NgDocInputWrapperModule,
|
|
46
|
+
NgDocInputNumberModule,
|
|
47
|
+
NgDocClearControlModule,
|
|
48
|
+
FormsModule,
|
|
49
|
+
FlControlSilencerModule,
|
|
50
|
+
NgDocButtonIconModule,
|
|
51
|
+
NgDocFocusableModule,
|
|
52
|
+
NgDocIconModule] }); }
|
|
53
|
+
}
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocNumberControlModule, decorators: [{
|
|
55
|
+
type: NgModule,
|
|
56
|
+
args: [{
|
|
57
|
+
declarations: [NgDocNumberControlComponent],
|
|
58
|
+
imports: [
|
|
59
|
+
CommonModule,
|
|
60
|
+
NgDocInputWrapperModule,
|
|
61
|
+
NgDocInputNumberModule,
|
|
62
|
+
NgDocClearControlModule,
|
|
63
|
+
FormsModule,
|
|
64
|
+
FlControlSilencerModule,
|
|
65
|
+
NgDocButtonIconModule,
|
|
66
|
+
NgDocFocusableModule,
|
|
67
|
+
NgDocIconModule,
|
|
68
|
+
],
|
|
69
|
+
providers: [provider],
|
|
70
|
+
exports: [NgDocNumberControlComponent],
|
|
71
|
+
}]
|
|
72
|
+
}] });
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Generated bundle index. Do not edit.
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
export { NgDocNumberControlComponent, NgDocNumberControlModule };
|
|
79
|
+
//# sourceMappingURL=ng-doc-app-type-controls-number-control.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-app-type-controls-number-control.mjs","sources":["../../../../libs/app/type-controls/number-control/number-control.component.ts","../../../../libs/app/type-controls/number-control/number-control.component.html","../../../../libs/app/type-controls/number-control/number-control.module.ts","../../../../libs/app/type-controls/number-control/ng-doc-app-type-controls-number-control.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {NgDocTypeControl} from '@ng-doc/app/interfaces';\nimport {extractValue} from '@ng-doc/core/helpers/extract-value';\nimport {FlControl} from 'flex-controls';\n\n@Component({\n\tselector: 'ng-doc-number-control',\n\ttemplateUrl: './number-control.component.html',\n\tstyleUrls: ['./number-control.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgDocNumberControlComponent extends FlControl<number> implements NgDocTypeControl {\n\tdefault: string | undefined;\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tget defaultValue(): number | null {\n\t\treturn this.default ? (extractValue(this.default) as number) : null;\n\t}\n\n\tchangeModel(value: number | null): void {\n\t\tthis.updateModel(value === null && this.default ? this.defaultValue : value);\n\t}\n}\n","<ng-doc-input-wrapper flControlSilencer [rightContent]=\"rightContent\">\n\t<input ngDocInputNumber type=\"number\" [ngModel]=\"model\" (ngModelChange)=\"changeModel($event)\">\n\t<ng-template #rightContent>\n\t\t<button\n\t\t\tng-doc-button-icon\n\t\t\tsize=\"large\"\n\t\t\t[ngDocFocusable]=\"false\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[rounded]=\"false\"\n\t\t\t(click)=\"updateModel(defaultValue)\"\n\t\t\t(focusout)=\"onTouched()\"\n\t\t\t*ngIf=\"model && model !== defaultValue\"\n\t\t>\n\t\t\t<ng-doc-icon icon=\"x\"></ng-doc-icon>\n\t\t</button>\n\t</ng-template>\n</ng-doc-input-wrapper>\n","import {CommonModule} from '@angular/common';\nimport {NgModule, Provider} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {provideTypeControl} from '@ng-doc/app/helpers';\nimport {\n\tNgDocButtonIconModule,\n\tNgDocClearControlModule,\n\tNgDocFocusableModule,\n\tNgDocIconModule,\n\tNgDocInputNumberModule,\n\tNgDocInputWrapperModule,\n} from '@ng-doc/ui-kit';\nimport {FlControlSilencerModule} from 'flex-controls';\n\nimport {NgDocNumberControlComponent} from './number-control.component';\n\nconst provider: Provider = provideTypeControl('number', NgDocNumberControlComponent, {order: 30});\n\n@NgModule({\n\tdeclarations: [NgDocNumberControlComponent],\n\timports: [\n\t\tCommonModule,\n\t\tNgDocInputWrapperModule,\n\t\tNgDocInputNumberModule,\n\t\tNgDocClearControlModule,\n\t\tFormsModule,\n\t\tFlControlSilencerModule,\n\t\tNgDocButtonIconModule,\n\t\tNgDocFocusableModule,\n\t\tNgDocIconModule,\n\t],\n\tproviders: [provider],\n\texports: [NgDocNumberControlComponent],\n})\nexport class NgDocNumberControlModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ng-doc-app-type-controls-number-control.mjs","sources":["../../../../libs/app/type-controls/number-control/number-control.component.ts","../../../../libs/app/type-controls/number-control/number-control.component.html","../../../../libs/app/type-controls/number-control/number-control.module.ts","../../../../libs/app/type-controls/number-control/ng-doc-app-type-controls-number-control.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {NgDocTypeControl} from '@ng-doc/app/interfaces';\nimport {extractValue} from '@ng-doc/core/helpers/extract-value';\nimport {FlControl} from 'flex-controls';\n\n@Component({\n\tselector: 'ng-doc-number-control',\n\ttemplateUrl: './number-control.component.html',\n\tstyleUrls: ['./number-control.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgDocNumberControlComponent extends FlControl<number> implements NgDocTypeControl {\n\tdefault: string | undefined;\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tget defaultValue(): number | null {\n\t\treturn this.default ? (extractValue(this.default) as number) : null;\n\t}\n\n\tchangeModel(value: number | null): void {\n\t\tthis.updateModel(value === null && this.default ? this.defaultValue : value);\n\t}\n}\n","<ng-doc-input-wrapper flControlSilencer [rightContent]=\"rightContent\">\n\t<input ngDocInputNumber type=\"number\" [ngModel]=\"model\" (ngModelChange)=\"changeModel($event)\">\n\t<ng-template #rightContent>\n\t\t<button\n\t\t\tng-doc-button-icon\n\t\t\tsize=\"large\"\n\t\t\t[ngDocFocusable]=\"false\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[rounded]=\"false\"\n\t\t\t(click)=\"updateModel(defaultValue)\"\n\t\t\t(focusout)=\"onTouched()\"\n\t\t\t*ngIf=\"model && model !== defaultValue\"\n\t\t>\n\t\t\t<ng-doc-icon icon=\"x\"></ng-doc-icon>\n\t\t</button>\n\t</ng-template>\n</ng-doc-input-wrapper>\n","import {CommonModule} from '@angular/common';\nimport {NgModule, Provider} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {provideTypeControl} from '@ng-doc/app/helpers';\nimport {\n\tNgDocButtonIconModule,\n\tNgDocClearControlModule,\n\tNgDocFocusableModule,\n\tNgDocIconModule,\n\tNgDocInputNumberModule,\n\tNgDocInputWrapperModule,\n} from '@ng-doc/ui-kit';\nimport {FlControlSilencerModule} from 'flex-controls';\n\nimport {NgDocNumberControlComponent} from './number-control.component';\n\nconst provider: Provider = provideTypeControl('number', NgDocNumberControlComponent, {order: 30});\n\n@NgModule({\n\tdeclarations: [NgDocNumberControlComponent],\n\timports: [\n\t\tCommonModule,\n\t\tNgDocInputWrapperModule,\n\t\tNgDocInputNumberModule,\n\t\tNgDocClearControlModule,\n\t\tFormsModule,\n\t\tFlControlSilencerModule,\n\t\tNgDocButtonIconModule,\n\t\tNgDocFocusableModule,\n\t\tNgDocIconModule,\n\t],\n\tproviders: [provider],\n\texports: [NgDocNumberControlComponent],\n})\nexport class NgDocNumberControlModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAKA,MAMa,2BAA4B,SAAQ,SAAiB,CAAA;AAGjE,IAAA,WAAA,GAAA;AACC,QAAA,KAAK,EAAE,CAAC;KACR;AAED,IAAA,IAAI,YAAY,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,OAAO,GAAI,YAAY,CAAC,IAAI,CAAC,OAAO,CAAY,GAAG,IAAI,CAAC;KACpE;AAED,IAAA,WAAW,CAAC,KAAoB,EAAA;QAC/B,IAAI,CAAC,WAAW,CAAC,KAAK,KAAK,IAAI,IAAI,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,CAAC;KAC7E;8GAbW,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAA3B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,2BAA2B,oFCXxC,2lBAiBA,EAAA,MAAA,EAAA,CAAA,mCAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,IAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,0BAAA,EAAA,QAAA,EAAA,sBA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hBpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACT,YAAY,EAAE,CAAC,2BAA2B,CAAC;AAC3C,oBAAA,OAAO,EAAE;wBACR,YAAY;wBACZ,uBAAuB;wBACvB,sBAAsB;wBACtB,uBAAuB;wBACvB,WAAW;wBACX,uBAAuB;wBACvB,qBAAqB;wBACrB,oBAAoB;wBACpB,eAAe;AACf,qBAAA;oBACD,SAAS,EAAE,CAAC,QAAQ,CAAC;oBACrB,OAAO,EAAE,CAAC,2BAA2B,CAAC;AACtC,iBAAA,CAAA;;;ACjCD;;AAEG;;;;"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
|
3
|
+
import { extractValue } from '@ng-doc/core/helpers/extract-value';
|
|
4
|
+
import * as i4 from 'flex-controls';
|
|
5
|
+
import { FlControl, FlControlSilencerModule } from 'flex-controls';
|
|
6
|
+
import * as i1 from '@angular/common';
|
|
7
|
+
import { CommonModule } from '@angular/common';
|
|
8
|
+
import * as i2 from '@ng-doc/ui-kit';
|
|
9
|
+
import { NgDocInputWrapperModule, NgDocInputStringModule, NgDocClearControlModule, NgDocIconModule, NgDocButtonIconModule, NgDocFocusableModule } from '@ng-doc/ui-kit';
|
|
10
|
+
import * as i3 from '@angular/forms';
|
|
11
|
+
import { FormsModule } from '@angular/forms';
|
|
12
|
+
import { provideTypeControl } from '@ng-doc/app/helpers';
|
|
13
|
+
import { NgDocExtractValueModule } from '@ng-doc/app/pipes/extract-value';
|
|
14
|
+
|
|
15
|
+
class NgDocStringControlComponent extends FlControl {
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
}
|
|
19
|
+
get defaultValue() {
|
|
20
|
+
return this.default ? extractValue(this.default) : null;
|
|
21
|
+
}
|
|
22
|
+
changeModel(value) {
|
|
23
|
+
this.updateModel(value === null && this.default ? this.defaultValue : value);
|
|
24
|
+
}
|
|
25
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocStringControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
26
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgDocStringControlComponent, selector: "ng-doc-string-control", usesInheritance: true, ngImport: i0, template: "<ng-doc-input-wrapper [rightContent]=\"rightContent\" flControlSilencer>\n\t<input ngDocInputString [ngModel]=\"model\" (ngModelChange)=\"changeModel($event)\">\n\t<ng-template #rightContent>\n\t\t<button\n\t\t\tng-doc-button-icon\n\t\t\tsize=\"large\"\n\t\t\t[ngDocFocusable]=\"false\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[rounded]=\"false\"\n\t\t\t(click)=\"updateModel(defaultValue)\"\n\t\t\t(focusout)=\"onTouched()\"\n\t\t\t*ngIf=\"model && model !== defaultValue\"\n\t\t>\n\t\t\t<ng-doc-icon icon=\"x\"></ng-doc-icon>\n\t\t</button>\n\t</ng-template>\n</ng-doc-input-wrapper>\n", styles: [":host{display:block;width:100%}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.NgDocInputWrapperComponent, selector: "ng-doc-input-wrapper", inputs: ["blurContent", "blurContext", "leftContent", "rightContent", "align"] }, { kind: "directive", type: i2.NgDocInputStringDirective, selector: "input[ngDocInputString]" }, { kind: "directive", type: i3.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: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4.FlControlSilencerDirective, selector: "[flControlSilencer]" }, { kind: "component", type: i2.NgDocIconComponent, selector: "ng-doc-icon", inputs: ["icon", "size"] }, { kind: "component", type: i2.NgDocButtonIconComponent, selector: "button[ng-doc-button-icon], a[ng-doc-button-icon]", inputs: ["size", "rounded"] }, { kind: "directive", type: i2.NgDocFocusableDirective, selector: "[ngDocFocusable]", inputs: ["ngDocFocusable"], exportAs: ["ngDocFocusable"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
27
|
+
}
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocStringControlComponent, decorators: [{
|
|
29
|
+
type: Component,
|
|
30
|
+
args: [{ selector: 'ng-doc-string-control', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-doc-input-wrapper [rightContent]=\"rightContent\" flControlSilencer>\n\t<input ngDocInputString [ngModel]=\"model\" (ngModelChange)=\"changeModel($event)\">\n\t<ng-template #rightContent>\n\t\t<button\n\t\t\tng-doc-button-icon\n\t\t\tsize=\"large\"\n\t\t\t[ngDocFocusable]=\"false\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[rounded]=\"false\"\n\t\t\t(click)=\"updateModel(defaultValue)\"\n\t\t\t(focusout)=\"onTouched()\"\n\t\t\t*ngIf=\"model && model !== defaultValue\"\n\t\t>\n\t\t\t<ng-doc-icon icon=\"x\"></ng-doc-icon>\n\t\t</button>\n\t</ng-template>\n</ng-doc-input-wrapper>\n", styles: [":host{display:block;width:100%}\n"] }]
|
|
31
|
+
}], ctorParameters: function () { return []; } });
|
|
32
|
+
|
|
33
|
+
const provider = provideTypeControl('string', NgDocStringControlComponent, { order: 20 });
|
|
34
|
+
class NgDocStringControlModule {
|
|
35
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocStringControlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
36
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: NgDocStringControlModule, declarations: [NgDocStringControlComponent], imports: [CommonModule,
|
|
37
|
+
NgDocInputWrapperModule,
|
|
38
|
+
NgDocInputStringModule,
|
|
39
|
+
NgDocClearControlModule,
|
|
40
|
+
FormsModule,
|
|
41
|
+
FlControlSilencerModule,
|
|
42
|
+
NgDocExtractValueModule,
|
|
43
|
+
NgDocIconModule,
|
|
44
|
+
NgDocButtonIconModule,
|
|
45
|
+
NgDocFocusableModule], exports: [NgDocStringControlComponent] }); }
|
|
46
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocStringControlModule, providers: [provider], imports: [CommonModule,
|
|
47
|
+
NgDocInputWrapperModule,
|
|
48
|
+
NgDocInputStringModule,
|
|
49
|
+
NgDocClearControlModule,
|
|
50
|
+
FormsModule,
|
|
51
|
+
FlControlSilencerModule,
|
|
52
|
+
NgDocExtractValueModule,
|
|
53
|
+
NgDocIconModule,
|
|
54
|
+
NgDocButtonIconModule,
|
|
55
|
+
NgDocFocusableModule] }); }
|
|
56
|
+
}
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocStringControlModule, decorators: [{
|
|
58
|
+
type: NgModule,
|
|
59
|
+
args: [{
|
|
60
|
+
declarations: [NgDocStringControlComponent],
|
|
61
|
+
imports: [
|
|
62
|
+
CommonModule,
|
|
63
|
+
NgDocInputWrapperModule,
|
|
64
|
+
NgDocInputStringModule,
|
|
65
|
+
NgDocClearControlModule,
|
|
66
|
+
FormsModule,
|
|
67
|
+
FlControlSilencerModule,
|
|
68
|
+
NgDocExtractValueModule,
|
|
69
|
+
NgDocIconModule,
|
|
70
|
+
NgDocButtonIconModule,
|
|
71
|
+
NgDocFocusableModule,
|
|
72
|
+
],
|
|
73
|
+
providers: [provider],
|
|
74
|
+
exports: [NgDocStringControlComponent],
|
|
75
|
+
}]
|
|
76
|
+
}] });
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Generated bundle index. Do not edit.
|
|
80
|
+
*/
|
|
81
|
+
|
|
82
|
+
export { NgDocStringControlComponent, NgDocStringControlModule };
|
|
83
|
+
//# sourceMappingURL=ng-doc-app-type-controls-string-control.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-app-type-controls-string-control.mjs","sources":["../../../../libs/app/type-controls/string-control/string-control.component.ts","../../../../libs/app/type-controls/string-control/string-control.component.html","../../../../libs/app/type-controls/string-control/string-control.module.ts","../../../../libs/app/type-controls/string-control/ng-doc-app-type-controls-string-control.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {NgDocTypeControl} from '@ng-doc/app/interfaces';\nimport {extractValue} from '@ng-doc/core/helpers/extract-value';\nimport {FlControl} from 'flex-controls';\n\n@Component({\n\tselector: 'ng-doc-string-control',\n\ttemplateUrl: './string-control.component.html',\n\tstyleUrls: ['./string-control.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgDocStringControlComponent extends FlControl<string> implements NgDocTypeControl {\n\tdefault?: string;\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tget defaultValue(): string | null {\n\t\treturn this.default ? (extractValue(this.default) as string) : null;\n\t}\n\n\tchangeModel(value: string | null): void {\n\t\tthis.updateModel(value === null && this.default ? this.defaultValue : value);\n\t}\n}\n","<ng-doc-input-wrapper [rightContent]=\"rightContent\" flControlSilencer>\n\t<input ngDocInputString [ngModel]=\"model\" (ngModelChange)=\"changeModel($event)\">\n\t<ng-template #rightContent>\n\t\t<button\n\t\t\tng-doc-button-icon\n\t\t\tsize=\"large\"\n\t\t\t[ngDocFocusable]=\"false\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[rounded]=\"false\"\n\t\t\t(click)=\"updateModel(defaultValue)\"\n\t\t\t(focusout)=\"onTouched()\"\n\t\t\t*ngIf=\"model && model !== defaultValue\"\n\t\t>\n\t\t\t<ng-doc-icon icon=\"x\"></ng-doc-icon>\n\t\t</button>\n\t</ng-template>\n</ng-doc-input-wrapper>\n","import {CommonModule} from '@angular/common';\nimport {NgModule, Provider} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {provideTypeControl} from '@ng-doc/app/helpers';\nimport {NgDocExtractValueModule} from '@ng-doc/app/pipes/extract-value';\nimport {\n\tNgDocButtonIconModule,\n\tNgDocClearControlModule,\n\tNgDocFocusableModule,\n\tNgDocIconModule,\n\tNgDocInputStringModule,\n\tNgDocInputWrapperModule,\n} from '@ng-doc/ui-kit';\nimport {FlControlSilencerModule} from 'flex-controls';\n\nimport {NgDocStringControlComponent} from './string-control.component';\n\nconst provider: Provider = provideTypeControl('string', NgDocStringControlComponent, {order: 20});\n\n@NgModule({\n\tdeclarations: [NgDocStringControlComponent],\n\timports: [\n\t\tCommonModule,\n\t\tNgDocInputWrapperModule,\n\t\tNgDocInputStringModule,\n\t\tNgDocClearControlModule,\n\t\tFormsModule,\n\t\tFlControlSilencerModule,\n\t\tNgDocExtractValueModule,\n\t\tNgDocIconModule,\n\t\tNgDocButtonIconModule,\n\t\tNgDocFocusableModule,\n\t],\n\tproviders: [provider],\n\texports: [NgDocStringControlComponent],\n})\nexport class NgDocStringControlModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ng-doc-app-type-controls-string-control.mjs","sources":["../../../../libs/app/type-controls/string-control/string-control.component.ts","../../../../libs/app/type-controls/string-control/string-control.component.html","../../../../libs/app/type-controls/string-control/string-control.module.ts","../../../../libs/app/type-controls/string-control/ng-doc-app-type-controls-string-control.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {NgDocTypeControl} from '@ng-doc/app/interfaces';\nimport {extractValue} from '@ng-doc/core/helpers/extract-value';\nimport {FlControl} from 'flex-controls';\n\n@Component({\n\tselector: 'ng-doc-string-control',\n\ttemplateUrl: './string-control.component.html',\n\tstyleUrls: ['./string-control.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgDocStringControlComponent extends FlControl<string> implements NgDocTypeControl {\n\tdefault?: string;\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tget defaultValue(): string | null {\n\t\treturn this.default ? (extractValue(this.default) as string) : null;\n\t}\n\n\tchangeModel(value: string | null): void {\n\t\tthis.updateModel(value === null && this.default ? this.defaultValue : value);\n\t}\n}\n","<ng-doc-input-wrapper [rightContent]=\"rightContent\" flControlSilencer>\n\t<input ngDocInputString [ngModel]=\"model\" (ngModelChange)=\"changeModel($event)\">\n\t<ng-template #rightContent>\n\t\t<button\n\t\t\tng-doc-button-icon\n\t\t\tsize=\"large\"\n\t\t\t[ngDocFocusable]=\"false\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[rounded]=\"false\"\n\t\t\t(click)=\"updateModel(defaultValue)\"\n\t\t\t(focusout)=\"onTouched()\"\n\t\t\t*ngIf=\"model && model !== defaultValue\"\n\t\t>\n\t\t\t<ng-doc-icon icon=\"x\"></ng-doc-icon>\n\t\t</button>\n\t</ng-template>\n</ng-doc-input-wrapper>\n","import {CommonModule} from '@angular/common';\nimport {NgModule, Provider} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {provideTypeControl} from '@ng-doc/app/helpers';\nimport {NgDocExtractValueModule} from '@ng-doc/app/pipes/extract-value';\nimport {\n\tNgDocButtonIconModule,\n\tNgDocClearControlModule,\n\tNgDocFocusableModule,\n\tNgDocIconModule,\n\tNgDocInputStringModule,\n\tNgDocInputWrapperModule,\n} from '@ng-doc/ui-kit';\nimport {FlControlSilencerModule} from 'flex-controls';\n\nimport {NgDocStringControlComponent} from './string-control.component';\n\nconst provider: Provider = provideTypeControl('string', NgDocStringControlComponent, {order: 20});\n\n@NgModule({\n\tdeclarations: [NgDocStringControlComponent],\n\timports: [\n\t\tCommonModule,\n\t\tNgDocInputWrapperModule,\n\t\tNgDocInputStringModule,\n\t\tNgDocClearControlModule,\n\t\tFormsModule,\n\t\tFlControlSilencerModule,\n\t\tNgDocExtractValueModule,\n\t\tNgDocIconModule,\n\t\tNgDocButtonIconModule,\n\t\tNgDocFocusableModule,\n\t],\n\tproviders: [provider],\n\texports: [NgDocStringControlComponent],\n})\nexport class NgDocStringControlModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAKA,MAMa,2BAA4B,SAAQ,SAAiB,CAAA;AAGjE,IAAA,WAAA,GAAA;AACC,QAAA,KAAK,EAAE,CAAC;KACR;AAED,IAAA,IAAI,YAAY,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,OAAO,GAAI,YAAY,CAAC,IAAI,CAAC,OAAO,CAAY,GAAG,IAAI,CAAC;KACpE;AAED,IAAA,WAAW,CAAC,KAAoB,EAAA;QAC/B,IAAI,CAAC,WAAW,CAAC,KAAK,KAAK,IAAI,IAAI,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,CAAC;KAC7E;8GAbW,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAA3B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,2BAA2B,oFCXxC,2kBAiBA,EAAA,MAAA,EAAA,CAAA,mCAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,IAAA,EAAA,QAAA,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