@skyux/docs-tools 4.9.6 → 5.0.0-beta.10
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/LICENSE +21 -0
- package/bundles/skyux-docs-tools.umd.js +2033 -1789
- package/docs-tools.module.d.ts +10 -0
- package/documentation.json +10784 -0
- package/esm2015/docs-tools.module.js +30 -21
- package/esm2015/modules/anatomy/anatomy-item.component.js +18 -16
- package/esm2015/modules/anatomy/anatomy.component.js +22 -19
- package/esm2015/modules/anatomy/anatomy.module.js +30 -19
- package/esm2015/modules/code-examples/code-example-module-dependencies.js +2 -1
- package/esm2015/modules/code-examples/code-example-theme.js +1 -1
- package/esm2015/modules/code-examples/code-example.component.js +23 -26
- package/esm2015/modules/code-examples/code-example.js +2 -1
- package/esm2015/modules/code-examples/code-examples-editor.service.js +59 -46
- package/esm2015/modules/code-examples/code-examples.component.js +32 -25
- package/esm2015/modules/code-examples/code-examples.module.js +37 -26
- package/esm2015/modules/demo/demo-content-alignment.js +2 -1
- package/esm2015/modules/demo/demo-control-panel-change.js +2 -1
- package/esm2015/modules/demo/demo-control-panel-checkbox.component.js +25 -28
- package/esm2015/modules/demo/demo-control-panel-radio-choice.js +2 -1
- package/esm2015/modules/demo/demo-control-panel-radio-group.component.js +29 -32
- package/esm2015/modules/demo/demo-control-panel-section.component.js +15 -13
- package/esm2015/modules/demo/demo-control-panel.component.js +27 -34
- package/esm2015/modules/demo/demo.component.js +27 -36
- package/esm2015/modules/demo/demo.module.js +51 -31
- package/esm2015/modules/demo-page/demo-page-dom-adapter.service.js +10 -12
- package/esm2015/modules/demo-page/demo-page-module-info.component.js +13 -11
- package/esm2015/modules/demo-page/demo-page-section.component.js +19 -16
- package/esm2015/modules/demo-page/demo-page-summary.component.js +15 -13
- package/esm2015/modules/demo-page/demo-page-title.service.js +13 -12
- package/esm2015/modules/demo-page/demo-page-type-definitions.component.js +28 -20
- package/esm2015/modules/demo-page/demo-page.component.js +53 -54
- package/esm2015/modules/demo-page/demo-page.module.js +60 -29
- package/esm2015/modules/design-guidelines/design-guideline-thumbnail.component.js +28 -31
- package/esm2015/modules/design-guidelines/design-guideline.component.js +24 -22
- package/esm2015/modules/design-guidelines/design-guidelines.component.js +14 -12
- package/esm2015/modules/design-guidelines/design-guidelines.module.js +34 -21
- package/esm2015/modules/heading-anchor/heading-anchor.component.js +22 -19
- package/esm2015/modules/heading-anchor/heading-anchor.module.js +26 -17
- package/esm2015/modules/markdown/markdown.module.js +23 -18
- package/esm2015/modules/markdown/markdown.pipe.js +12 -10
- package/esm2015/modules/module-info/module-info.component.js +32 -30
- package/esm2015/modules/module-info/module-info.module.js +32 -17
- package/esm2015/modules/safe-html/safe-html.component.js +17 -19
- package/esm2015/modules/safe-html/safe-html.module.js +22 -17
- package/esm2015/modules/shared/docs-tools-component-info.js +2 -1
- package/esm2015/modules/shared/docs-tools-options.js +1 -1
- package/esm2015/modules/shared/docs-tools-supportal.service.js +13 -12
- package/esm2015/modules/shared/sky-docs-tools-resources.module.js +41 -0
- package/esm2015/modules/source-code/source-code-file.js +2 -1
- package/esm2015/modules/source-code/source-code-provider.js +12 -8
- package/esm2015/modules/source-code/source-code.service.js +13 -12
- package/esm2015/modules/thumbnail/thumbnail.component.js +29 -31
- package/esm2015/modules/thumbnail/thumbnail.module.js +24 -17
- package/esm2015/modules/type-definitions/anchor-link-service-config.js +2 -1
- package/esm2015/modules/type-definitions/anchor-link-service-format.js +2 -1
- package/esm2015/modules/type-definitions/anchor-link.js +2 -1
- package/esm2015/modules/type-definitions/anchor-link.service.js +13 -12
- package/esm2015/modules/type-definitions/call-signature-definition.component.js +23 -20
- package/esm2015/modules/type-definitions/call-signature-definition.js +2 -1
- package/esm2015/modules/type-definitions/class-definition.component.js +24 -16
- package/esm2015/modules/type-definitions/class-definition.js +2 -1
- package/esm2015/modules/type-definitions/comment-tags.js +2 -1
- package/esm2015/modules/type-definitions/directive-definition.component.js +24 -16
- package/esm2015/modules/type-definitions/directive-definition.js +2 -1
- package/esm2015/modules/type-definitions/entry-child-definition.js +2 -1
- package/esm2015/modules/type-definitions/entry-definition.js +2 -1
- package/esm2015/modules/type-definitions/enumeration-definition.component.js +22 -15
- package/esm2015/modules/type-definitions/enumeration-definition.js +2 -1
- package/esm2015/modules/type-definitions/enumeration-member-definition.js +2 -1
- package/esm2015/modules/type-definitions/index-signature-definition.js +2 -1
- package/esm2015/modules/type-definitions/interface-definition.component.js +24 -19
- package/esm2015/modules/type-definitions/interface-definition.js +2 -1
- package/esm2015/modules/type-definitions/interface-property-definition.js +2 -1
- package/esm2015/modules/type-definitions/method-definition.js +2 -1
- package/esm2015/modules/type-definitions/method-definitions.component.js +27 -24
- package/esm2015/modules/type-definitions/parameter-definition.js +2 -1
- package/esm2015/modules/type-definitions/pipe-definition.component.js +24 -16
- package/esm2015/modules/type-definitions/pipe-definition.js +2 -1
- package/esm2015/modules/type-definitions/property-decorator.js +2 -1
- package/esm2015/modules/type-definitions/property-definition.js +2 -1
- package/esm2015/modules/type-definitions/property-definitions.component.js +31 -30
- package/esm2015/modules/type-definitions/type-alias-definition.component.js +25 -20
- package/esm2015/modules/type-definitions/type-alias-definition.js +2 -1
- package/esm2015/modules/type-definitions/type-anchor-links.pipe.js +14 -15
- package/esm2015/modules/type-definitions/type-definition.js +2 -1
- package/esm2015/modules/type-definitions/type-definitions-format.service.js +12 -8
- package/esm2015/modules/type-definitions/type-definitions-provider.js +9 -8
- package/esm2015/modules/type-definitions/type-definitions.js +2 -1
- package/esm2015/modules/type-definitions/type-definitions.module.js +75 -51
- package/esm2015/modules/type-definitions/type-definitions.service.js +70 -60
- package/esm2015/modules/type-definitions/type-parameter-definition.js +2 -1
- package/esm2015/modules/type-definitions/typedoc-adapter.service.js +48 -24
- package/esm2015/modules/type-definitions/typedoc-types.js +2 -1
- package/esm2015/public-api.js +66 -0
- package/esm2015/skyux-docs-tools.js +2 -46
- package/fesm2015/skyux-docs-tools.js +1625 -1484
- package/fesm2015/skyux-docs-tools.js.map +1 -1
- package/modules/anatomy/anatomy-item.component.d.ts +3 -0
- package/modules/anatomy/anatomy.component.d.ts +3 -0
- package/modules/anatomy/anatomy.module.d.ts +9 -0
- package/modules/code-examples/code-example.component.d.ts +3 -0
- package/modules/code-examples/code-example.d.ts +1 -0
- package/modules/code-examples/code-examples-editor.service.d.ts +3 -0
- package/modules/code-examples/code-examples.component.d.ts +4 -0
- package/modules/code-examples/code-examples.module.d.ts +12 -0
- package/modules/demo/demo-control-panel-checkbox.component.d.ts +3 -0
- package/modules/demo/demo-control-panel-radio-group.component.d.ts +3 -0
- package/modules/demo/demo-control-panel-section.component.d.ts +3 -0
- package/modules/demo/demo-control-panel.component.d.ts +3 -5
- package/modules/demo/demo.component.d.ts +3 -6
- package/modules/demo/demo.module.d.ts +15 -0
- package/modules/demo-page/demo-page-dom-adapter.service.d.ts +3 -0
- package/modules/demo-page/demo-page-module-info.component.d.ts +3 -0
- package/modules/demo-page/demo-page-section.component.d.ts +3 -0
- package/modules/demo-page/demo-page-summary.component.d.ts +3 -0
- package/modules/demo-page/demo-page-title.service.d.ts +3 -0
- package/modules/demo-page/demo-page-type-definitions.component.d.ts +4 -0
- package/modules/demo-page/demo-page.component.d.ts +7 -0
- package/modules/demo-page/demo-page.module.d.ts +19 -0
- package/modules/design-guidelines/design-guideline-thumbnail.component.d.ts +3 -0
- package/modules/design-guidelines/design-guideline.component.d.ts +3 -0
- package/modules/design-guidelines/design-guidelines.component.d.ts +3 -0
- package/modules/design-guidelines/design-guidelines.module.d.ts +10 -0
- package/modules/heading-anchor/heading-anchor.component.d.ts +3 -0
- package/modules/heading-anchor/heading-anchor.module.d.ts +8 -0
- package/modules/markdown/markdown.module.d.ts +5 -0
- package/modules/markdown/markdown.pipe.d.ts +3 -0
- package/modules/module-info/module-info.component.d.ts +3 -0
- package/modules/module-info/module-info.module.d.ts +11 -0
- package/modules/safe-html/safe-html.component.d.ts +3 -0
- package/modules/safe-html/safe-html.module.d.ts +6 -0
- package/modules/shared/docs-tools-supportal.service.d.ts +3 -0
- package/modules/shared/sky-docs-tools-resources.module.d.ts +14 -0
- package/modules/source-code/source-code-provider.d.ts +3 -0
- package/modules/source-code/source-code.service.d.ts +3 -0
- package/modules/thumbnail/thumbnail.component.d.ts +3 -0
- package/modules/thumbnail/thumbnail.module.d.ts +7 -0
- package/modules/type-definitions/anchor-link.service.d.ts +3 -0
- package/modules/type-definitions/call-signature-definition.component.d.ts +3 -0
- package/modules/type-definitions/class-definition.component.d.ts +3 -0
- package/modules/type-definitions/directive-definition.component.d.ts +3 -0
- package/modules/type-definitions/enumeration-definition.component.d.ts +3 -0
- package/modules/type-definitions/interface-definition.component.d.ts +3 -0
- package/modules/type-definitions/method-definitions.component.d.ts +3 -0
- package/modules/type-definitions/pipe-definition.component.d.ts +3 -0
- package/modules/type-definitions/property-definitions.component.d.ts +3 -0
- package/modules/type-definitions/type-alias-definition.component.d.ts +3 -0
- package/modules/type-definitions/type-anchor-links.pipe.d.ts +3 -0
- package/modules/type-definitions/type-definitions-format.service.d.ts +3 -0
- package/modules/type-definitions/type-definitions-provider.d.ts +3 -0
- package/modules/type-definitions/type-definitions.module.d.ts +22 -0
- package/modules/type-definitions/type-definitions.service.d.ts +4 -1
- package/modules/type-definitions/typedoc-adapter.service.d.ts +3 -0
- package/modules/type-definitions/typedoc-types.d.ts +2 -2
- package/package.json +23 -32
- package/public-api.d.ts +63 -0
- package/skyux-docs-tools.d.ts +2 -45
- package/CHANGELOG.md +0 -395
- package/bundles/skyux-docs-tools.umd.js.map +0 -1
- package/bundles/skyux-docs-tools.umd.min.js +0 -2
- package/bundles/skyux-docs-tools.umd.min.js.map +0 -1
- package/esm2015/modules/demo/demo-control-panel-theme.component.js +0 -102
- package/esm2015/modules/demo/demo-theme.service.js +0 -14
- package/esm2015/modules/shared/docs-tools-resources.module.js +0 -20
- package/esm2015/modules/source-code/source-code.module.js +0 -16
- package/esm2015/plugin-resources/docs-tools-resources-provider.js +0 -16
- package/esm2015/public_api.js +0 -19
- package/esm5/docs-tools.module.js +0 -34
- package/esm5/modules/anatomy/anatomy-item.component.js +0 -21
- package/esm5/modules/anatomy/anatomy.component.js +0 -29
- package/esm5/modules/anatomy/anatomy.module.js +0 -31
- package/esm5/modules/code-examples/code-example-module-dependencies.js +0 -1
- package/esm5/modules/code-examples/code-example-theme.js +0 -6
- package/esm5/modules/code-examples/code-example.component.js +0 -77
- package/esm5/modules/code-examples/code-example.js +0 -1
- package/esm5/modules/code-examples/code-examples-editor.service.js +0 -148
- package/esm5/modules/code-examples/code-examples.component.js +0 -101
- package/esm5/modules/code-examples/code-examples.module.js +0 -43
- package/esm5/modules/demo/demo-content-alignment.js +0 -1
- package/esm5/modules/demo/demo-control-panel-change.js +0 -1
- package/esm5/modules/demo/demo-control-panel-checkbox.component.js +0 -94
- package/esm5/modules/demo/demo-control-panel-radio-choice.js +0 -1
- package/esm5/modules/demo/demo-control-panel-radio-group.component.js +0 -85
- package/esm5/modules/demo/demo-control-panel-section.component.js +0 -28
- package/esm5/modules/demo/demo-control-panel-theme.component.js +0 -114
- package/esm5/modules/demo/demo-control-panel.component.js +0 -95
- package/esm5/modules/demo/demo-theme.service.js +0 -15
- package/esm5/modules/demo/demo.component.js +0 -84
- package/esm5/modules/demo/demo.module.js +0 -52
- package/esm5/modules/demo-page/demo-page-dom-adapter.service.js +0 -93
- package/esm5/modules/demo-page/demo-page-module-info.component.js +0 -15
- package/esm5/modules/demo-page/demo-page-section.component.js +0 -51
- package/esm5/modules/demo-page/demo-page-summary.component.js +0 -27
- package/esm5/modules/demo-page/demo-page-title.service.js +0 -32
- package/esm5/modules/demo-page/demo-page-type-definitions.component.js +0 -32
- package/esm5/modules/demo-page/demo-page.component.js +0 -146
- package/esm5/modules/demo-page/demo-page.module.js +0 -60
- package/esm5/modules/design-guidelines/design-guideline-thumbnail.component.js +0 -36
- package/esm5/modules/design-guidelines/design-guideline.component.js +0 -41
- package/esm5/modules/design-guidelines/design-guidelines.component.js +0 -16
- package/esm5/modules/design-guidelines/design-guidelines.module.js +0 -34
- package/esm5/modules/heading-anchor/heading-anchor.component.js +0 -24
- package/esm5/modules/heading-anchor/heading-anchor.module.js +0 -28
- package/esm5/modules/markdown/markdown.module.js +0 -23
- package/esm5/modules/markdown/markdown.pipe.js +0 -21
- package/esm5/modules/module-info/module-info.component.js +0 -101
- package/esm5/modules/module-info/module-info.module.js +0 -34
- package/esm5/modules/safe-html/safe-html.component.js +0 -27
- package/esm5/modules/safe-html/safe-html.module.js +0 -24
- package/esm5/modules/shared/docs-tools-component-info.js +0 -1
- package/esm5/modules/shared/docs-tools-options.js +0 -7
- package/esm5/modules/shared/docs-tools-resources.module.js +0 -23
- package/esm5/modules/shared/docs-tools-supportal.service.js +0 -23
- package/esm5/modules/source-code/source-code-file.js +0 -1
- package/esm5/modules/source-code/source-code-provider.js +0 -12
- package/esm5/modules/source-code/source-code.module.js +0 -19
- package/esm5/modules/source-code/source-code.service.js +0 -42
- package/esm5/modules/thumbnail/thumbnail.component.js +0 -36
- package/esm5/modules/thumbnail/thumbnail.module.js +0 -26
- package/esm5/modules/type-definitions/anchor-link-service-config.js +0 -1
- package/esm5/modules/type-definitions/anchor-link-service-format.js +0 -1
- package/esm5/modules/type-definitions/anchor-link.js +0 -1
- package/esm5/modules/type-definitions/anchor-link.service.js +0 -99
- package/esm5/modules/type-definitions/call-signature-definition.component.js +0 -54
- package/esm5/modules/type-definitions/call-signature-definition.js +0 -1
- package/esm5/modules/type-definitions/class-definition.component.js +0 -20
- package/esm5/modules/type-definitions/class-definition.js +0 -1
- package/esm5/modules/type-definitions/comment-tags.js +0 -1
- package/esm5/modules/type-definitions/directive-definition.component.js +0 -20
- package/esm5/modules/type-definitions/directive-definition.js +0 -1
- package/esm5/modules/type-definitions/entry-child-definition.js +0 -1
- package/esm5/modules/type-definitions/entry-definition.js +0 -1
- package/esm5/modules/type-definitions/enumeration-definition.component.js +0 -19
- package/esm5/modules/type-definitions/enumeration-definition.js +0 -1
- package/esm5/modules/type-definitions/enumeration-member-definition.js +0 -1
- package/esm5/modules/type-definitions/index-signature-definition.js +0 -1
- package/esm5/modules/type-definitions/interface-definition.component.js +0 -38
- package/esm5/modules/type-definitions/interface-definition.js +0 -1
- package/esm5/modules/type-definitions/interface-property-definition.js +0 -1
- package/esm5/modules/type-definitions/method-definition.js +0 -1
- package/esm5/modules/type-definitions/method-definitions.component.js +0 -66
- package/esm5/modules/type-definitions/parameter-definition.js +0 -1
- package/esm5/modules/type-definitions/pipe-definition.component.js +0 -20
- package/esm5/modules/type-definitions/pipe-definition.js +0 -1
- package/esm5/modules/type-definitions/property-decorator.js +0 -1
- package/esm5/modules/type-definitions/property-definition.js +0 -1
- package/esm5/modules/type-definitions/property-definitions.component.js +0 -75
- package/esm5/modules/type-definitions/type-alias-definition.component.js +0 -39
- package/esm5/modules/type-definitions/type-alias-definition.js +0 -1
- package/esm5/modules/type-definitions/type-anchor-links.pipe.js +0 -29
- package/esm5/modules/type-definitions/type-definition.js +0 -1
- package/esm5/modules/type-definitions/type-definitions-format.service.js +0 -248
- package/esm5/modules/type-definitions/type-definitions-provider.js +0 -12
- package/esm5/modules/type-definitions/type-definitions.js +0 -1
- package/esm5/modules/type-definitions/type-definitions.module.js +0 -81
- package/esm5/modules/type-definitions/type-definitions.service.js +0 -95
- package/esm5/modules/type-definitions/type-parameter-definition.js +0 -1
- package/esm5/modules/type-definitions/typedoc-adapter.service.js +0 -462
- package/esm5/modules/type-definitions/typedoc-types.js +0 -1
- package/esm5/plugin-resources/docs-tools-resources-provider.js +0 -17
- package/esm5/public_api.js +0 -19
- package/esm5/skyux-docs-tools.js +0 -49
- package/fesm5/skyux-docs-tools.js +0 -3201
- package/fesm5/skyux-docs-tools.js.map +0 -1
- package/modules/demo/demo-control-panel-theme.component.d.ts +0 -32
- package/modules/demo/demo-theme.service.d.ts +0 -6
- package/modules/shared/docs-tools-resources.module.d.ts +0 -2
- package/modules/source-code/source-code.module.d.ts +0 -2
- package/plugin-resources/docs-tools-resources-provider.d.ts +0 -5
- package/public_api.d.ts +0 -33
- package/skyux-docs-tools.metadata.json +0 -1
- package/src/assets/img/guidelines/popover/anatomy.png +0 -0
- package/src/assets/img/guidelines/popover/behavior-responsive.png +0 -0
- package/src/assets/img/guidelines/popover/content-dont-overload.png +0 -0
- package/src/assets/img/guidelines/popover/content-html.png +0 -0
- package/src/assets/img/guidelines/popover/content-simple.png +0 -0
- package/src/assets/img/guidelines/popover/layout-alternate.png +0 -0
- package/src/assets/img/guidelines/popover/layout-default.png +0 -0
- package/src/assets/img/guidelines/popover/option-position.png +0 -0
- package/src/assets/img/guidelines/popover/popover-auto.mp4 +0 -0
- package/src/assets/img/guidelines/popover/popover-click.mp4 +0 -0
- package/src/assets/locales/resources_en_US.json +0 -22
|
@@ -1,171 +1,159 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as i2 from '@angular/common';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
|
-
import
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { Component, ChangeDetectionStrategy, Input, ContentChildren, NgModule, Optional, Injectable, EventEmitter, Output, ElementRef, Pipe, ContentChild } from '@angular/core';
|
|
5
|
+
import * as i2$2 from '@blackbaud/skyux-lib-media';
|
|
4
6
|
import { SkyImageModule } from '@blackbaud/skyux-lib-media';
|
|
7
|
+
import * as i2$1 from '@skyux/layout';
|
|
5
8
|
import { SkyFluidGridModule, SkyDefinitionListModule } from '@skyux/layout';
|
|
9
|
+
import * as i3$1 from '@blackbaud/skyux-lib-code-block';
|
|
6
10
|
import { SkyCodeBlockModule, SkyCodeModule } from '@blackbaud/skyux-lib-code-block';
|
|
11
|
+
import * as i1$1 from '@skyux/indicators';
|
|
7
12
|
import { SkyIconModule, SkyHelpInlineModule } from '@skyux/indicators';
|
|
13
|
+
import * as i3 from '@skyux/lists';
|
|
8
14
|
import { SkyRepeaterModule } from '@skyux/lists';
|
|
15
|
+
import * as i4 from '@skyux/tabs';
|
|
9
16
|
import { SkyVerticalTabsetModule, SkyTabsModule } from '@skyux/tabs';
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import { Subject,
|
|
17
|
+
import * as i8 from '@skyux/i18n';
|
|
18
|
+
import { getLibStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS } from '@skyux/i18n';
|
|
19
|
+
import { Subject, merge } from 'rxjs';
|
|
13
20
|
import { takeUntil, map, share } from 'rxjs/operators';
|
|
21
|
+
import * as i1 from '@skyux/theme';
|
|
22
|
+
import { SkyThemeModule } from '@skyux/theme';
|
|
14
23
|
import StackBlitzSDK from '@stackblitz/sdk';
|
|
24
|
+
import * as i2$3 from '@angular/forms';
|
|
15
25
|
import { FormsModule } from '@angular/forms';
|
|
26
|
+
import * as i1$2 from '@skyux/forms';
|
|
16
27
|
import { SkyCheckboxModule, SkyRadioModule } from '@skyux/forms';
|
|
17
|
-
import
|
|
28
|
+
import * as i6$1 from '@blackbaud/skyux-lib-stache';
|
|
18
29
|
import { StachePageSummaryModule, StacheWrapperModule } from '@blackbaud/skyux-lib-stache';
|
|
19
|
-
import
|
|
30
|
+
import * as i1$3 from '@angular/router';
|
|
31
|
+
import { RouterModule } from '@angular/router';
|
|
20
32
|
import marked from 'marked';
|
|
33
|
+
import * as i6 from '@blackbaud/skyux-lib-clipboard';
|
|
21
34
|
import { SkyClipboardModule } from '@blackbaud/skyux-lib-clipboard';
|
|
35
|
+
import * as i5 from '@skyux/popovers';
|
|
22
36
|
import { SkyPopoverModule } from '@skyux/popovers';
|
|
23
|
-
import
|
|
24
|
-
import
|
|
37
|
+
import * as i1$4 from '@angular/platform-browser';
|
|
38
|
+
import * as i2$4 from '@skyux/core';
|
|
39
|
+
import { SkyMediaBreakpoints } from '@skyux/core';
|
|
40
|
+
import * as i2$5 from '@skyux/config';
|
|
41
|
+
import * as i1$5 from '@angular/common/http';
|
|
25
42
|
import orderBy from 'lodash.orderby';
|
|
26
|
-
import { SkyAppConfig } from '@skyux/config';
|
|
27
|
-
import { HttpClient } from '@angular/common/http';
|
|
28
43
|
import { SkyAuthHttpClientModule } from '@skyux/http';
|
|
29
44
|
|
|
30
|
-
|
|
45
|
+
class SkyDocsAnatomyItemComponent {
|
|
31
46
|
constructor() {
|
|
32
47
|
this.isOptional = false;
|
|
33
48
|
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
],
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
}
|
|
50
|
+
SkyDocsAnatomyItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsAnatomyItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
51
|
+
SkyDocsAnatomyItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsAnatomyItemComponent, selector: "sky-docs-anatomy-item", inputs: { isOptional: "isOptional" }, ngImport: i0, template: "<div\n class=\"sky-docs-anatomy-item\"\n [ngClass]=\"{\n 'sky-docs-anatomy-item-optional': isOptional\n }\"\n>\n <div class=\"sky-docs-anatomy-item-marker\">\n {{ marker }}\n </div>\n <div class=\"sky-docs-anatomy-item-description\">\n <ng-content></ng-content>\n <span *ngIf=\"isOptional\"\n class=\"sky-deemphasized\"\n > (optional)</span>\n </div>\n</div>", styles: [".sky-docs-anatomy-item-marker{display:flex;width:22px;height:22px;border-radius:50%;justify-content:center;align-items:center;margin-right:5px;color:#fff;background-color:#4d842d}.sky-docs-anatomy-item{margin-bottom:10px;display:flex;align-items:center}.sky-docs-anatomy-item.sky-docs-anatomy-item-optional .sky-docs-anatomy-item-marker{background-color:#b7da9b;color:#212327}\n"], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsAnatomyItemComponent, decorators: [{
|
|
53
|
+
type: Component,
|
|
54
|
+
args: [{
|
|
55
|
+
selector: 'sky-docs-anatomy-item',
|
|
56
|
+
templateUrl: './anatomy-item.component.html',
|
|
57
|
+
styleUrls: ['./anatomy-item.component.scss'],
|
|
58
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
59
|
+
}]
|
|
60
|
+
}], propDecorators: { isOptional: [{
|
|
61
|
+
type: Input
|
|
62
|
+
}] } });
|
|
63
|
+
|
|
64
|
+
class SkyDocsAnatomyComponent {
|
|
48
65
|
ngAfterContentInit() {
|
|
49
66
|
this.anatomyItems.forEach((item, i) => {
|
|
50
67
|
item.marker = (i + 1).toString();
|
|
51
68
|
});
|
|
52
69
|
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
SkyDocsAnatomyModule
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
}
|
|
71
|
+
SkyDocsAnatomyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsAnatomyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
72
|
+
SkyDocsAnatomyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsAnatomyComponent, selector: "sky-docs-anatomy", inputs: { imagePath: "imagePath" }, queries: [{ propertyName: "anatomyItems", predicate: SkyDocsAnatomyItemComponent }], ngImport: i0, template: "<div class=\"sky-docs-anatomy\">\n <sky-row>\n <sky-column\n screenSmall=\"6\"\n screenMedium=\"5\"\n screenLarge=\"4\"\n >\n <ng-content select=\"sky-docs-anatomy-item\"></ng-content>\n </sky-column>\n <sky-column\n screenSmall=\"6\"\n screenMedium=\"7\"\n screenLarge=\"8\"\n >\n <sky-image\n [imageSource]=\"imagePath\"\n ></sky-image>\n </sky-column>\n </sky-row>\n</div>", styles: [""], components: [{ type: i2$1.λ23, selector: "sky-row", inputs: ["reverseColumnOrder"] }, { type: i2$1.λ24, selector: "sky-column", inputs: ["screenXSmall", "screenSmall", "screenMedium", "screenLarge"] }, { type: i2$2.λ4, selector: "sky-image", inputs: ["caption", "captionType", "imageAlt", "imageSource", "showBorder", "showCaptionPrefix"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsAnatomyComponent, decorators: [{
|
|
74
|
+
type: Component,
|
|
75
|
+
args: [{
|
|
76
|
+
selector: 'sky-docs-anatomy',
|
|
77
|
+
templateUrl: './anatomy.component.html',
|
|
78
|
+
styleUrls: ['./anatomy.component.scss'],
|
|
79
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
80
|
+
}]
|
|
81
|
+
}], propDecorators: { imagePath: [{
|
|
82
|
+
type: Input
|
|
83
|
+
}], anatomyItems: [{
|
|
84
|
+
type: ContentChildren,
|
|
85
|
+
args: [SkyDocsAnatomyItemComponent]
|
|
86
|
+
}] } });
|
|
87
|
+
|
|
88
|
+
class SkyDocsAnatomyModule {
|
|
89
|
+
}
|
|
90
|
+
SkyDocsAnatomyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsAnatomyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
91
|
+
SkyDocsAnatomyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsAnatomyModule, declarations: [SkyDocsAnatomyComponent,
|
|
92
|
+
SkyDocsAnatomyItemComponent], imports: [CommonModule,
|
|
93
|
+
SkyFluidGridModule,
|
|
94
|
+
SkyImageModule], exports: [SkyDocsAnatomyComponent,
|
|
95
|
+
SkyDocsAnatomyItemComponent] });
|
|
96
|
+
SkyDocsAnatomyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsAnatomyModule, imports: [[
|
|
74
97
|
CommonModule,
|
|
75
98
|
SkyFluidGridModule,
|
|
76
99
|
SkyImageModule
|
|
77
|
-
]
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
};
|
|
97
|
-
SkyDocsToolsResourcesProvider = __decorate([
|
|
98
|
-
Injectable()
|
|
99
|
-
], SkyDocsToolsResourcesProvider);
|
|
100
|
+
]] });
|
|
101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsAnatomyModule, decorators: [{
|
|
102
|
+
type: NgModule,
|
|
103
|
+
args: [{
|
|
104
|
+
imports: [
|
|
105
|
+
CommonModule,
|
|
106
|
+
SkyFluidGridModule,
|
|
107
|
+
SkyImageModule
|
|
108
|
+
],
|
|
109
|
+
declarations: [
|
|
110
|
+
SkyDocsAnatomyComponent,
|
|
111
|
+
SkyDocsAnatomyItemComponent
|
|
112
|
+
],
|
|
113
|
+
exports: [
|
|
114
|
+
SkyDocsAnatomyComponent,
|
|
115
|
+
SkyDocsAnatomyItemComponent
|
|
116
|
+
]
|
|
117
|
+
}]
|
|
118
|
+
}] });
|
|
100
119
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}],
|
|
110
|
-
exports: [
|
|
111
|
-
SkyI18nModule
|
|
112
|
-
]
|
|
113
|
-
})
|
|
114
|
-
], SkyDocsToolsResourcesModule);
|
|
115
|
-
|
|
116
|
-
let SkyDocsSourceCodeProvider = class SkyDocsSourceCodeProvider {
|
|
120
|
+
/**
|
|
121
|
+
* NOTICE: DO NOT MODIFY THIS FILE!
|
|
122
|
+
* The contents of this file were automatically generated by
|
|
123
|
+
* the 'ng generate @skyux/i18n:lib-resources-module modules/shared/sky-docs-tools' schematic.
|
|
124
|
+
* To update this file, simply rerun the command.
|
|
125
|
+
*/
|
|
126
|
+
const RESOURCES = {
|
|
127
|
+
'EN-US': { "sky-docs-demo-heading": { "message": "Demo" }, "sky-docs-demo-toggle-button-on": { "message": "Show options" }, "sky-docs-demo-toggle-button-off": { "message": "Hide options" }, "sky-docs-code-example-launch-button-label": { "message": "Run in StackBlitz" }, "sky-docs-demo-control-panel-reset-button-label": { "message": "Reset" } },
|
|
117
128
|
};
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
let SkyDocsSourceCodeService = class SkyDocsSourceCodeService {
|
|
123
|
-
constructor(sourceCodeProvider) {
|
|
124
|
-
this.sourceCodeProvider = sourceCodeProvider;
|
|
125
|
-
}
|
|
126
|
-
getSourceCode(path) {
|
|
127
|
-
const sourceCode = this.sourceCodeProvider.sourceCode;
|
|
128
|
-
if (!sourceCode || !sourceCode.length) {
|
|
129
|
-
return [];
|
|
130
|
-
}
|
|
131
|
-
return sourceCode
|
|
132
|
-
.filter(file => file.filePath.indexOf(path) === 0)
|
|
133
|
-
.map(file => {
|
|
134
|
-
// TODO: Remove decoding after migrating to Angular CLI. Code examples will not be encoded for SKY UX 5 libraries.
|
|
135
|
-
// SKY UX 4 libraries will return rawContents encoded, while later libraries will
|
|
136
|
-
// return rawContents decoded. Check if the contents need decoded before returning them.
|
|
137
|
-
let decodedContents;
|
|
138
|
-
try {
|
|
139
|
-
decodedContents = decodeURIComponent(file.rawContents);
|
|
140
|
-
if (decodedContents !== file.rawContents) {
|
|
141
|
-
file.rawContents = decodedContents;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
catch (error) {
|
|
145
|
-
// Pre-decoded contents may contain characters like '%' that would throw errors.
|
|
146
|
-
// In these cases, pass along the original rawContents.
|
|
147
|
-
}
|
|
148
|
-
return file;
|
|
149
|
-
});
|
|
129
|
+
class SkyDocsToolsResourcesProvider {
|
|
130
|
+
getString(localeInfo, name) {
|
|
131
|
+
return getLibStringForLocale(RESOURCES, localeInfo.locale, name);
|
|
150
132
|
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
],
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Import into any component library module that needs to use resource strings.
|
|
136
|
+
*/
|
|
137
|
+
class SkyDocsToolsResourcesModule {
|
|
138
|
+
}
|
|
139
|
+
SkyDocsToolsResourcesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsToolsResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
140
|
+
SkyDocsToolsResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsToolsResourcesModule, exports: [SkyI18nModule] });
|
|
141
|
+
SkyDocsToolsResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsToolsResourcesModule, providers: [{
|
|
142
|
+
provide: SKY_LIB_RESOURCES_PROVIDERS,
|
|
143
|
+
useClass: SkyDocsToolsResourcesProvider,
|
|
144
|
+
multi: true
|
|
145
|
+
}], imports: [SkyI18nModule] });
|
|
146
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsToolsResourcesModule, decorators: [{
|
|
147
|
+
type: NgModule,
|
|
148
|
+
args: [{
|
|
149
|
+
exports: [SkyI18nModule],
|
|
150
|
+
providers: [{
|
|
151
|
+
provide: SKY_LIB_RESOURCES_PROVIDERS,
|
|
152
|
+
useClass: SkyDocsToolsResourcesProvider,
|
|
153
|
+
multi: true
|
|
154
|
+
}]
|
|
155
|
+
}]
|
|
156
|
+
}] });
|
|
169
157
|
|
|
170
158
|
var SkyDocsCodeExampleTheme;
|
|
171
159
|
(function (SkyDocsCodeExampleTheme) {
|
|
@@ -184,7 +172,7 @@ var SkyDocsCodeExampleTheme;
|
|
|
184
172
|
* </sky-docs-code-example>
|
|
185
173
|
* ```
|
|
186
174
|
*/
|
|
187
|
-
|
|
175
|
+
class SkyDocsCodeExampleComponent {
|
|
188
176
|
constructor(themeSvc) {
|
|
189
177
|
this.ngUnsubscribe = new Subject();
|
|
190
178
|
// Update theme property with SkyThemeService if it has not been set.
|
|
@@ -215,40 +203,38 @@ let SkyDocsCodeExampleComponent = class SkyDocsCodeExampleComponent {
|
|
|
215
203
|
this.ngUnsubscribe.next();
|
|
216
204
|
this.ngUnsubscribe.complete();
|
|
217
205
|
}
|
|
218
|
-
}
|
|
219
|
-
SkyDocsCodeExampleComponent
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
]
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
]
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
__param(0, Optional())
|
|
238
|
-
], SkyDocsCodeExampleComponent);
|
|
206
|
+
}
|
|
207
|
+
SkyDocsCodeExampleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsCodeExampleComponent, deps: [{ token: i1.SkyThemeService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
208
|
+
SkyDocsCodeExampleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsCodeExampleComponent, selector: "sky-docs-code-example", inputs: { heading: "heading", sourceCodePath: "sourceCodePath", theme: "theme" }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsCodeExampleComponent, decorators: [{
|
|
210
|
+
type: Component,
|
|
211
|
+
args: [{
|
|
212
|
+
selector: 'sky-docs-code-example',
|
|
213
|
+
template: '',
|
|
214
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
215
|
+
}]
|
|
216
|
+
}], ctorParameters: function () { return [{ type: i1.SkyThemeService, decorators: [{
|
|
217
|
+
type: Optional
|
|
218
|
+
}] }]; }, propDecorators: { heading: [{
|
|
219
|
+
type: Input
|
|
220
|
+
}], sourceCodePath: [{
|
|
221
|
+
type: Input
|
|
222
|
+
}], theme: [{
|
|
223
|
+
type: Input
|
|
224
|
+
}] } });
|
|
239
225
|
|
|
240
226
|
/**
|
|
241
227
|
* @internal
|
|
242
228
|
*/
|
|
243
|
-
|
|
229
|
+
class SkyDocsCodeExamplesEditorService {
|
|
244
230
|
launchEditor(codeExample) {
|
|
245
231
|
const project = this.getPayload(codeExample);
|
|
246
232
|
const options = {};
|
|
247
233
|
StackBlitzSDK.openProject(project, options);
|
|
248
234
|
}
|
|
249
235
|
getPayload(codeExample) {
|
|
250
|
-
const angularVersion = '^
|
|
251
|
-
const skyuxVersion = '
|
|
236
|
+
const angularVersion = '^12.2.0';
|
|
237
|
+
const skyuxVersion = '^5.0.0-0';
|
|
252
238
|
const defaultDependencies = {
|
|
253
239
|
'@angular/animations': angularVersion,
|
|
254
240
|
'@angular/common': angularVersion,
|
|
@@ -272,14 +258,23 @@ let SkyDocsCodeExamplesEditorService = class SkyDocsCodeExamplesEditorService {
|
|
|
272
258
|
'@skyux/popovers': skyuxVersion,
|
|
273
259
|
'@skyux/router': skyuxVersion,
|
|
274
260
|
'@skyux/theme': skyuxVersion,
|
|
275
|
-
'
|
|
276
|
-
'
|
|
277
|
-
'rxjs-compat': '^6.0.0',
|
|
278
|
-
'tslib': '~1.14.1',
|
|
261
|
+
'rxjs': '^6.6.0',
|
|
262
|
+
'tslib': '^2.3.0',
|
|
279
263
|
'zone.js': '~0.11.4'
|
|
280
264
|
};
|
|
281
265
|
const mergedDependencies = Object.assign({}, defaultDependencies, codeExample.packageDependencies);
|
|
282
|
-
|
|
266
|
+
// Ensure any @skyux dependencies list the correct version of SKY UX.
|
|
267
|
+
// e.g. `"@skyux/core": "*"` --> `"@skyux/core": "5.0.0"`
|
|
268
|
+
for (const packageName in mergedDependencies) {
|
|
269
|
+
/*istanbul ignore else*/
|
|
270
|
+
if (mergedDependencies.hasOwnProperty(packageName)) {
|
|
271
|
+
const version = mergedDependencies[packageName];
|
|
272
|
+
if (version === '*' && /^(@blackbaud\/skyux-lib-|@skyux)/.test(packageName)) {
|
|
273
|
+
mergedDependencies[packageName] = skyuxVersion;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
const files = this.parseStackBlitzFiles(codeExample.sourceCode, mergedDependencies, codeExample.theme, codeExample.stylesheets);
|
|
283
278
|
return {
|
|
284
279
|
files,
|
|
285
280
|
title: 'SKY UX Demo',
|
|
@@ -293,20 +288,18 @@ let SkyDocsCodeExamplesEditorService = class SkyDocsCodeExamplesEditorService {
|
|
|
293
288
|
}
|
|
294
289
|
};
|
|
295
290
|
}
|
|
296
|
-
parseStackBlitzFiles(sourceCode, dependencies, theme) {
|
|
291
|
+
parseStackBlitzFiles(sourceCode, dependencies, theme, stylesheets = []) {
|
|
297
292
|
const srcPath = 'src/';
|
|
298
293
|
const appPath = `${srcPath}app/`;
|
|
299
294
|
const banner = `/**
|
|
300
295
|
* This file is needed for the StackBlitz demo only.
|
|
301
|
-
* It is automatically
|
|
302
|
-
* Visit https://developer.blackbaud/skyux for more information
|
|
296
|
+
* It is automatically provided when using the Angular CLI.
|
|
303
297
|
**/
|
|
304
298
|
`;
|
|
305
299
|
const moduleImportStatements = [
|
|
306
|
-
`import {\n
|
|
300
|
+
`import {\n NgModule\n} from '@angular/core';`,
|
|
307
301
|
`import {\n FormsModule,\n ReactiveFormsModule\n} from '@angular/forms';`,
|
|
308
|
-
`import {\n
|
|
309
|
-
`import {\n BrowserModule\n} from '@angular/platform-browser';`,
|
|
302
|
+
`import {\n BrowserAnimationsModule\n} from '@angular/platform-browser/animations';`,
|
|
310
303
|
`import {\n RouterModule\n} from '@angular/router';`,
|
|
311
304
|
`import {\n SkyAppLocaleProvider\n} from '@skyux/i18n';`,
|
|
312
305
|
`import {\n SkyThemeService\n} from '@skyux/theme';`,
|
|
@@ -314,7 +307,7 @@ let SkyDocsCodeExamplesEditorService = class SkyDocsCodeExamplesEditorService {
|
|
|
314
307
|
`import {\n AppComponent\n} from './app.component';`
|
|
315
308
|
];
|
|
316
309
|
const moduleImports = [
|
|
317
|
-
'
|
|
310
|
+
'BrowserAnimationsModule',
|
|
318
311
|
'FormsModule',
|
|
319
312
|
'ReactiveFormsModule',
|
|
320
313
|
'RouterModule.forRoot([])'
|
|
@@ -357,16 +350,16 @@ export class AppComponent {
|
|
|
357
350
|
themeSvc: SkyThemeService,
|
|
358
351
|
renderer?: Renderer2
|
|
359
352
|
) {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
353
|
+
const themeSettings = new SkyThemeSettings(
|
|
354
|
+
SkyTheme.presets['${theme === SkyDocsCodeExampleTheme.Modern ? 'modern' : 'default'}'],
|
|
355
|
+
SkyThemeMode.presets.light
|
|
356
|
+
);
|
|
357
|
+
|
|
358
|
+
themeSvc.init(
|
|
359
|
+
document.body,
|
|
360
|
+
renderer,
|
|
361
|
+
themeSettings
|
|
362
|
+
);
|
|
370
363
|
}
|
|
371
364
|
|
|
372
365
|
}`;
|
|
@@ -401,7 +394,7 @@ export class AppModule { }
|
|
|
401
394
|
This is a workaround for a known bug that prevents external imports in CSS.
|
|
402
395
|
https://github.com/stackblitz/core/issues/133
|
|
403
396
|
-->
|
|
404
|
-
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />${theme === SkyDocsCodeExampleTheme.Modern ? `<link rel="stylesheet" type="text/css" href="https://sky.blackbaudcdn.net/static/skyux-icons/
|
|
397
|
+
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />${theme === SkyDocsCodeExampleTheme.Modern ? `<link rel="stylesheet" type="text/css" href="https://sky.blackbaudcdn.net/static/skyux-icons/5.0.0/assets/css/skyux-icons.min.css" />` : ``}
|
|
405
398
|
|
|
406
399
|
<sky-demo-app>
|
|
407
400
|
Loading...
|
|
@@ -409,10 +402,6 @@ export class AppModule { }
|
|
|
409
402
|
files[`${srcPath}main.ts`] = `${banner}
|
|
410
403
|
import './polyfills';
|
|
411
404
|
|
|
412
|
-
import {
|
|
413
|
-
enableProdMode
|
|
414
|
-
} from '@angular/core';
|
|
415
|
-
|
|
416
405
|
import {
|
|
417
406
|
platformBrowserDynamic
|
|
418
407
|
} from '@angular/platform-browser-dynamic';
|
|
@@ -430,9 +419,7 @@ platformBrowserDynamic().bootstrapModule(AppModule).then(ref => {
|
|
|
430
419
|
}).catch(err => console.error(err));
|
|
431
420
|
`;
|
|
432
421
|
files[`${srcPath}polyfills.ts`] = `${banner}
|
|
433
|
-
import '
|
|
434
|
-
import 'core-js/es7/reflect';
|
|
435
|
-
import 'zone.js/dist/zone';
|
|
422
|
+
import 'zone.js';
|
|
436
423
|
`;
|
|
437
424
|
files[`${srcPath}styles.scss`] = `@import '~@skyux/theme/css/sky';
|
|
438
425
|
${theme === SkyDocsCodeExampleTheme.Modern ? `@import '~@skyux/theme/css/themes/modern/styles';` : ``}
|
|
@@ -440,6 +427,7 @@ body {
|
|
|
440
427
|
background-color: #fff;
|
|
441
428
|
margin: 15px;
|
|
442
429
|
}`;
|
|
430
|
+
stylesheets.push("src/styles.scss");
|
|
443
431
|
files['angular.json'] = `{
|
|
444
432
|
"projects": {
|
|
445
433
|
"demo": {
|
|
@@ -447,9 +435,7 @@ body {
|
|
|
447
435
|
"build": {
|
|
448
436
|
"options": {
|
|
449
437
|
"index": "src/index.html",
|
|
450
|
-
"styles":
|
|
451
|
-
"src/styles.scss"
|
|
452
|
-
]
|
|
438
|
+
"styles": ${JSON.stringify(stylesheets)}
|
|
453
439
|
}
|
|
454
440
|
}
|
|
455
441
|
}
|
|
@@ -461,15 +447,24 @@ body {
|
|
|
461
447
|
}, undefined, 2);
|
|
462
448
|
files['tsconfig.json'] = `{
|
|
463
449
|
"compilerOptions": {
|
|
464
|
-
"target": "
|
|
450
|
+
"target": "es2017",
|
|
451
|
+
"module": "es2020",
|
|
465
452
|
"moduleResolution": "node",
|
|
466
453
|
"emitDecoratorMetadata": true,
|
|
467
454
|
"experimentalDecorators": true,
|
|
468
455
|
"importHelpers": true,
|
|
456
|
+
"typeRoots": ["node_modules/@types"],
|
|
469
457
|
"lib": [
|
|
470
|
-
"
|
|
471
|
-
"
|
|
458
|
+
"es2018",
|
|
459
|
+
"dom"
|
|
472
460
|
]
|
|
461
|
+
},
|
|
462
|
+
"angularCompilerOptions": {
|
|
463
|
+
"fullTemplateTypeCheck": true,
|
|
464
|
+
"strictInjectionParameters": true,
|
|
465
|
+
"strictInputAccessModifiers": true,
|
|
466
|
+
"strictTemplates": true,
|
|
467
|
+
"enableIvy": false
|
|
473
468
|
}
|
|
474
469
|
}`;
|
|
475
470
|
return files;
|
|
@@ -488,7 +483,7 @@ body {
|
|
|
488
483
|
throw 'You must export a component from the code example module!';
|
|
489
484
|
}
|
|
490
485
|
fragment = fragment.split(']')[0];
|
|
491
|
-
const components = fragment.split(',');
|
|
486
|
+
const components = fragment.split(',').filter(x => x);
|
|
492
487
|
if (components.length > 1) {
|
|
493
488
|
throw 'You may only export a single component from the code example module' +
|
|
494
489
|
`(we found ${components.length}: ${components.join(', ')}).` +
|
|
@@ -503,10 +498,65 @@ body {
|
|
|
503
498
|
const trimmed = found.rawContents.replace(/\s/g, '');
|
|
504
499
|
return trimmed.split(`selector:'`)[1].split(`'`)[0];
|
|
505
500
|
}
|
|
506
|
-
}
|
|
507
|
-
SkyDocsCodeExamplesEditorService =
|
|
508
|
-
|
|
509
|
-
|
|
501
|
+
}
|
|
502
|
+
SkyDocsCodeExamplesEditorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsCodeExamplesEditorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
503
|
+
SkyDocsCodeExamplesEditorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsCodeExamplesEditorService, providedIn: 'root' });
|
|
504
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsCodeExamplesEditorService, decorators: [{
|
|
505
|
+
type: Injectable,
|
|
506
|
+
args: [{
|
|
507
|
+
providedIn: 'root'
|
|
508
|
+
}]
|
|
509
|
+
}] });
|
|
510
|
+
|
|
511
|
+
class SkyDocsSourceCodeProvider {
|
|
512
|
+
}
|
|
513
|
+
SkyDocsSourceCodeProvider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsSourceCodeProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
514
|
+
SkyDocsSourceCodeProvider.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsSourceCodeProvider, providedIn: 'any' });
|
|
515
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsSourceCodeProvider, decorators: [{
|
|
516
|
+
type: Injectable,
|
|
517
|
+
args: [{
|
|
518
|
+
providedIn: 'any'
|
|
519
|
+
}]
|
|
520
|
+
}] });
|
|
521
|
+
|
|
522
|
+
class SkyDocsSourceCodeService {
|
|
523
|
+
constructor(sourceCodeProvider) {
|
|
524
|
+
this.sourceCodeProvider = sourceCodeProvider;
|
|
525
|
+
}
|
|
526
|
+
getSourceCode(path) {
|
|
527
|
+
const sourceCode = this.sourceCodeProvider.sourceCode;
|
|
528
|
+
if (!sourceCode || !sourceCode.length) {
|
|
529
|
+
return [];
|
|
530
|
+
}
|
|
531
|
+
return sourceCode
|
|
532
|
+
.filter(file => file.filePath.indexOf(path) === 0)
|
|
533
|
+
.map(file => {
|
|
534
|
+
// TODO: Remove decoding after migrating to Angular CLI. Code examples will not be encoded for SKY UX 5 libraries.
|
|
535
|
+
// SKY UX 4 libraries will return rawContents encoded, while later libraries will
|
|
536
|
+
// return rawContents decoded. Check if the contents need decoded before returning them.
|
|
537
|
+
let decodedContents;
|
|
538
|
+
try {
|
|
539
|
+
decodedContents = decodeURIComponent(file.rawContents);
|
|
540
|
+
if (decodedContents !== file.rawContents) {
|
|
541
|
+
file.rawContents = decodedContents;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
catch (error) {
|
|
545
|
+
// Pre-decoded contents may contain characters like '%' that would throw errors.
|
|
546
|
+
// In these cases, pass along the original rawContents.
|
|
547
|
+
}
|
|
548
|
+
return file;
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
SkyDocsSourceCodeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsSourceCodeService, deps: [{ token: SkyDocsSourceCodeProvider }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
553
|
+
SkyDocsSourceCodeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsSourceCodeService, providedIn: 'any' });
|
|
554
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsSourceCodeService, decorators: [{
|
|
555
|
+
type: Injectable,
|
|
556
|
+
args: [{
|
|
557
|
+
providedIn: 'any'
|
|
558
|
+
}]
|
|
559
|
+
}], ctorParameters: function () { return [{ type: SkyDocsSourceCodeProvider }]; } });
|
|
510
560
|
|
|
511
561
|
/**
|
|
512
562
|
* Wraps all code examples and handles their configuration and styles.
|
|
@@ -523,10 +573,11 @@ SkyDocsCodeExamplesEditorService = __decorate([
|
|
|
523
573
|
* </sky-docs-code-examples>
|
|
524
574
|
* ```
|
|
525
575
|
*/
|
|
526
|
-
|
|
576
|
+
class SkyDocsCodeExamplesComponent {
|
|
527
577
|
constructor(editorService, sourceCodeService) {
|
|
528
578
|
this.editorService = editorService;
|
|
529
579
|
this.sourceCodeService = sourceCodeService;
|
|
580
|
+
this.stylesheets = [];
|
|
530
581
|
this.codeExamples = [];
|
|
531
582
|
}
|
|
532
583
|
/**
|
|
@@ -555,6 +606,7 @@ let SkyDocsCodeExamplesComponent = class SkyDocsCodeExamplesComponent {
|
|
|
555
606
|
heading: component.heading,
|
|
556
607
|
packageDependencies: this.packageDependencies,
|
|
557
608
|
sourceCode,
|
|
609
|
+
stylesheets: this.stylesheets,
|
|
558
610
|
theme: component.theme
|
|
559
611
|
});
|
|
560
612
|
});
|
|
@@ -577,52 +629,66 @@ let SkyDocsCodeExamplesComponent = class SkyDocsCodeExamplesComponent {
|
|
|
577
629
|
return extension;
|
|
578
630
|
}
|
|
579
631
|
}
|
|
580
|
-
}
|
|
581
|
-
SkyDocsCodeExamplesComponent
|
|
582
|
-
{ type:
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
]
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
]
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
}
|
|
602
|
-
SkyDocsCodeExamplesModule =
|
|
603
|
-
|
|
604
|
-
imports: [
|
|
632
|
+
}
|
|
633
|
+
SkyDocsCodeExamplesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsCodeExamplesComponent, deps: [{ token: SkyDocsCodeExamplesEditorService }, { token: SkyDocsSourceCodeService }], target: i0.ɵɵFactoryTarget.Component });
|
|
634
|
+
SkyDocsCodeExamplesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsCodeExamplesComponent, selector: "sky-docs-code-examples", inputs: { packageDependencies: "packageDependencies", stylesheets: "stylesheets" }, queries: [{ propertyName: "codeExampleComponents", predicate: SkyDocsCodeExampleComponent }], ngImport: i0, template: "<div *ngIf=\"codeExamples && codeExamples.length\"\n class=\"sky-docs-code-examples\"\n>\n <sky-repeater *ngIf=\"codeExamples.length > 1 else singleCodeExample\"\n expandMode=\"multiple\"\n >\n <sky-repeater-item *ngFor=\"let codeExample of codeExamples\"\n [isExpanded]=\"false\"\n >\n <sky-repeater-item-title>\n <ng-container *ngTemplateOutlet=\"codeExampleHeaderTemplate; context: {$implicit: codeExample}\">\n </ng-container>\n </sky-repeater-item-title>\n <sky-repeater-item-content>\n <ng-container *ngTemplateOutlet=\"codeExampleTemplate; context: {$implicit: codeExample}\">\n </ng-container>\n </sky-repeater-item-content>\n </sky-repeater-item>\n </sky-repeater>\n</div>\n\n<ng-template>\n <ng-content\n select=\"sky-docs-code-example\"\n >\n </ng-content>\n</ng-template>\n\n<ng-template\n let-item\n #codeExampleTemplate\n>\n <div class=\"sky-docs-code-example-wrapper\">\n <sky-vertical-tabset *ngIf=\"item.sourceCode && item.sourceCode.length\">\n <sky-vertical-tab *ngFor=\"let file of item.sourceCode; let i = index;\"\n [active]=\"i === 0\"\n [tabHeading]=\"file.fileName\"\n >\n <sky-code-block\n [code]=\"file.rawContents\"\n [languageType]=\"parseCodeLanguageType(file.fileName)\"\n >\n </sky-code-block>\n </sky-vertical-tab>\n </sky-vertical-tabset>\n </div>\n</ng-template>\n\n<ng-template\n #singleCodeExample\n>\n <ng-container *ngTemplateOutlet=\"codeExampleHeaderTemplate; context: {$implicit: codeExamples[0]}\">\n </ng-container>\n <ng-container *ngTemplateOutlet=\"codeExampleTemplate; context: {$implicit: codeExamples[0]}\">\n </ng-container>\n</ng-template>\n\n<ng-template\n let-codeExample\n #codeExampleHeaderTemplate\n>\n <div\n class=\"sky-docs-code-example-header\"\n >\n <div\n class=\"sky-docs-code-example-header-title sky-emphasized\"\n >\n {{ codeExample.heading }}\n </div>\n <div\n class=\"sky-docs-code-example-header-controls\"\n >\n <button\n class=\"sky-btn sky-btn-default\"\n type=\"button\"\n (click)=\"launchEditor(codeExample);$event.stopPropagation();\"\n >\n <sky-icon\n icon=\"pencil\"\n ></sky-icon>\n {{ 'sky-docs-code-example-launch-button-label' | skyLibResources }}\n </button>\n </div>\n </div>\n</ng-template>", styles: [".sky-docs-code-example-header{display:flex;align-items:baseline}.sky-docs-code-example-header-title{flex-grow:1}.sky-docs-code-example-header-controls{flex-grow:0}.sky-docs-code-example-header-controls .sky-btn{font-weight:normal}.sky-docs-code-example-wrapper{border-top:1px solid #cdcfd2;border-bottom:1px solid #cdcfd2;border-left:1px solid #cdcfd2;border-right:1px solid #cdcfd2;margin-top:10px}.sky-docs-code-example-wrapper ::ng-deep .sky-vertical-tabset-content{margin:0}.sky-docs-code-example-wrapper ::ng-deep sky-code-block{margin:0!important}.sky-docs-code-example-wrapper ::ng-deep .sky-code-block-header{border:0}.sky-docs-code-example-wrapper ::ng-deep .sky-code-output{border-left:0;border-right:0;border-bottom:0}\n"], components: [{ type: i3.λ11, selector: "sky-repeater", inputs: ["activeIndex", "ariaLabel", "reorderable", "expandMode"], outputs: ["activeIndexChange", "orderChange"] }, { type: i3.λ10, selector: "sky-repeater-item", inputs: ["itemName", "inlineFormConfig", "inlineFormTemplate", "isExpanded", "isSelected", "reorderable", "selectable", "showInlineForm", "tag"], outputs: ["collapse", "expand", "inlineFormClose", "isSelectedChange"] }, { type: i3.λ12, selector: "sky-repeater-item-title" }, { type: i3.λ8, selector: "sky-repeater-item-content" }, { type: i4.λ6, selector: "sky-vertical-tabset", inputs: ["showTabsText", "ariaRole", "maintainTabContent"], outputs: ["activeChange"] }, { type: i4.λ4, selector: "sky-vertical-tab", inputs: ["active", "ariaControls", "ariaInvalid", "ariaRequired", "ariaRole", "disabled", "errorIndicator", "tabHeaderCount", "tabHeading", "showTabRightArrow", "tabId"] }, { type: i3$1.λ2, selector: "sky-code-block", inputs: ["code", "fileName", "languageType", "hideCopyToClipboard", "hideHeader"] }, { type: i1$1.λ4, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "skyLibResources": i8.SkyLibResourcesPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
635
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsCodeExamplesComponent, decorators: [{
|
|
636
|
+
type: Component,
|
|
637
|
+
args: [{
|
|
638
|
+
selector: 'sky-docs-code-examples',
|
|
639
|
+
templateUrl: './code-examples.component.html',
|
|
640
|
+
styleUrls: ['./code-examples.component.scss'],
|
|
641
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
642
|
+
}]
|
|
643
|
+
}], ctorParameters: function () { return [{ type: SkyDocsCodeExamplesEditorService }, { type: SkyDocsSourceCodeService }]; }, propDecorators: { packageDependencies: [{
|
|
644
|
+
type: Input
|
|
645
|
+
}], stylesheets: [{
|
|
646
|
+
type: Input
|
|
647
|
+
}], codeExampleComponents: [{
|
|
648
|
+
type: ContentChildren,
|
|
649
|
+
args: [SkyDocsCodeExampleComponent]
|
|
650
|
+
}] } });
|
|
651
|
+
|
|
652
|
+
class SkyDocsCodeExamplesModule {
|
|
653
|
+
}
|
|
654
|
+
SkyDocsCodeExamplesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsCodeExamplesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
655
|
+
SkyDocsCodeExamplesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsCodeExamplesModule, declarations: [SkyDocsCodeExampleComponent,
|
|
656
|
+
SkyDocsCodeExamplesComponent], imports: [CommonModule,
|
|
657
|
+
SkyCodeBlockModule,
|
|
658
|
+
SkyDocsToolsResourcesModule,
|
|
659
|
+
SkyIconModule,
|
|
660
|
+
SkyRepeaterModule,
|
|
661
|
+
SkyVerticalTabsetModule], exports: [SkyDocsCodeExampleComponent,
|
|
662
|
+
SkyDocsCodeExamplesComponent] });
|
|
663
|
+
SkyDocsCodeExamplesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsCodeExamplesModule, imports: [[
|
|
605
664
|
CommonModule,
|
|
606
665
|
SkyCodeBlockModule,
|
|
607
|
-
SkyDocsSourceCodeModule,
|
|
608
666
|
SkyDocsToolsResourcesModule,
|
|
609
667
|
SkyIconModule,
|
|
610
668
|
SkyRepeaterModule,
|
|
611
669
|
SkyVerticalTabsetModule
|
|
612
|
-
]
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
670
|
+
]] });
|
|
671
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsCodeExamplesModule, decorators: [{
|
|
672
|
+
type: NgModule,
|
|
673
|
+
args: [{
|
|
674
|
+
imports: [
|
|
675
|
+
CommonModule,
|
|
676
|
+
SkyCodeBlockModule,
|
|
677
|
+
SkyDocsToolsResourcesModule,
|
|
678
|
+
SkyIconModule,
|
|
679
|
+
SkyRepeaterModule,
|
|
680
|
+
SkyVerticalTabsetModule
|
|
681
|
+
],
|
|
682
|
+
declarations: [
|
|
683
|
+
SkyDocsCodeExampleComponent,
|
|
684
|
+
SkyDocsCodeExamplesComponent
|
|
685
|
+
],
|
|
686
|
+
exports: [
|
|
687
|
+
SkyDocsCodeExampleComponent,
|
|
688
|
+
SkyDocsCodeExamplesComponent
|
|
689
|
+
]
|
|
690
|
+
}]
|
|
691
|
+
}] });
|
|
626
692
|
|
|
627
693
|
/**
|
|
628
694
|
* Renders a checkbox control within the control panel.
|
|
@@ -636,7 +702,7 @@ SkyDocsCodeExamplesModule = __decorate([
|
|
|
636
702
|
* </sky-docs-demo-control-panel-checkbox>
|
|
637
703
|
* ```
|
|
638
704
|
*/
|
|
639
|
-
|
|
705
|
+
class SkyDocsDemoControlPanelCheckboxComponent {
|
|
640
706
|
constructor(changeDetector) {
|
|
641
707
|
this.changeDetector = changeDetector;
|
|
642
708
|
/**
|
|
@@ -683,29 +749,25 @@ let SkyDocsDemoControlPanelCheckboxComponent = class SkyDocsDemoControlPanelChec
|
|
|
683
749
|
[this.propertyName]: this.checked
|
|
684
750
|
});
|
|
685
751
|
}
|
|
686
|
-
}
|
|
687
|
-
SkyDocsDemoControlPanelCheckboxComponent
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
]
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
],
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
template: "<sky-checkbox\n [disabled]=\"disabled\"\n [name]=\"propertyName\"\n [(ngModel)]=\"checked\"\n (change)=\"onModelChange()\"\n>\n <sky-checkbox-label>{{ label }}</sky-checkbox-label>\n</sky-checkbox>\n",
|
|
706
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
707
|
-
})
|
|
708
|
-
], SkyDocsDemoControlPanelCheckboxComponent);
|
|
752
|
+
}
|
|
753
|
+
SkyDocsDemoControlPanelCheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoControlPanelCheckboxComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
754
|
+
SkyDocsDemoControlPanelCheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsDemoControlPanelCheckboxComponent, selector: "sky-docs-demo-control-panel-checkbox", inputs: { checked: "checked", disabled: "disabled", label: "label", propertyName: "propertyName" }, ngImport: i0, template: "<sky-checkbox\n [disabled]=\"disabled\"\n [name]=\"propertyName\"\n [(ngModel)]=\"checked\"\n (change)=\"onModelChange()\"\n>\n <sky-checkbox-label>{{ label }}</sky-checkbox-label>\n</sky-checkbox>\n", components: [{ type: i1$2.λ3, selector: "sky-checkbox", inputs: ["label", "labelledBy", "id", "disabled", "tabindex", "name", "icon", "checkboxType", "checked", "required"], outputs: ["change", "checkedChange", "disabledChange"] }, { type: i1$2.λ4, selector: "sky-checkbox-label" }], directives: [{ type: i2$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoControlPanelCheckboxComponent, decorators: [{
|
|
756
|
+
type: Component,
|
|
757
|
+
args: [{
|
|
758
|
+
selector: 'sky-docs-demo-control-panel-checkbox',
|
|
759
|
+
templateUrl: './demo-control-panel-checkbox.component.html',
|
|
760
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
761
|
+
}]
|
|
762
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { checked: [{
|
|
763
|
+
type: Input
|
|
764
|
+
}], disabled: [{
|
|
765
|
+
type: Input
|
|
766
|
+
}], label: [{
|
|
767
|
+
type: Input
|
|
768
|
+
}], propertyName: [{
|
|
769
|
+
type: Input
|
|
770
|
+
}] } });
|
|
709
771
|
|
|
710
772
|
/**
|
|
711
773
|
* Renders a radio control group.
|
|
@@ -724,7 +786,7 @@ SkyDocsDemoControlPanelCheckboxComponent = __decorate([
|
|
|
724
786
|
* </sky-docs-demo-control-panel-radio-group>
|
|
725
787
|
* ```
|
|
726
788
|
*/
|
|
727
|
-
|
|
789
|
+
class SkyDocsDemoControlPanelRadioGroupComponent {
|
|
728
790
|
constructor(changeDetector) {
|
|
729
791
|
this.changeDetector = changeDetector;
|
|
730
792
|
/**
|
|
@@ -758,43 +820,28 @@ let SkyDocsDemoControlPanelRadioGroupComponent = class SkyDocsDemoControlPanelRa
|
|
|
758
820
|
}
|
|
759
821
|
return value;
|
|
760
822
|
}
|
|
761
|
-
}
|
|
762
|
-
SkyDocsDemoControlPanelRadioGroupComponent
|
|
763
|
-
{ type:
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
],
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
template: "<div\n class=\"sky-demo-control-panel-radio-group\"\n>\n <strong *ngIf=\"heading\">{{ heading }}</strong>\n <sky-radio-group\n [disabled]=\"disabled\"\n [name]=\"propertyName\"\n [ngModel]=\"value\"\n (ngModelChange)=\"onModelChange($event);\"\n >\n <ul\n class=\"sky-list-unstyled\"\n >\n <li *ngFor=\"let choice of choices\">\n <sky-radio\n [value]=\"choice.value\"\n >\n <sky-radio-label>{{ choice.label }}</sky-radio-label>\n </sky-radio>\n </li>\n </ul>\n </sky-radio-group>\n</div>\n",
|
|
784
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
785
|
-
styles: [".sky-demo-control-panel-radio-group{margin-bottom:20px}ul{margin:0}"]
|
|
786
|
-
})
|
|
787
|
-
], SkyDocsDemoControlPanelRadioGroupComponent);
|
|
788
|
-
|
|
789
|
-
let SkyDocsDemoThemeService = class SkyDocsDemoThemeService {
|
|
790
|
-
constructor() {
|
|
791
|
-
this.supportsTheming = new BehaviorSubject(false);
|
|
792
|
-
this.themeSettings = new BehaviorSubject(undefined);
|
|
793
|
-
}
|
|
794
|
-
};
|
|
795
|
-
SkyDocsDemoThemeService = __decorate([
|
|
796
|
-
Injectable()
|
|
797
|
-
], SkyDocsDemoThemeService);
|
|
823
|
+
}
|
|
824
|
+
SkyDocsDemoControlPanelRadioGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoControlPanelRadioGroupComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
825
|
+
SkyDocsDemoControlPanelRadioGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsDemoControlPanelRadioGroupComponent, selector: "sky-docs-demo-control-panel-radio-group", inputs: { choices: "choices", disabled: "disabled", heading: "heading", initialValue: "initialValue", propertyName: "propertyName" }, ngImport: i0, template: "<div\n class=\"sky-demo-control-panel-radio-group\"\n>\n <strong *ngIf=\"heading\">{{ heading }}</strong>\n <sky-radio-group\n [disabled]=\"disabled\"\n [name]=\"propertyName\"\n [ngModel]=\"value\"\n (ngModelChange)=\"onModelChange($event);\"\n >\n <ul\n class=\"sky-list-unstyled\"\n >\n <li *ngFor=\"let choice of choices\">\n <sky-radio\n [value]=\"choice.value\"\n >\n <sky-radio-label>{{ choice.label }}</sky-radio-label>\n </sky-radio>\n </li>\n </ul>\n </sky-radio-group>\n</div>\n", styles: [".sky-demo-control-panel-radio-group{margin-bottom:20px}ul{margin:0}\n"], components: [{ type: i1$2.λ11, selector: "sky-radio-group", inputs: ["ariaLabelledBy", "ariaLabel", "disabled", "name", "required", "value", "tabIndex"] }, { type: i1$2.λ13, selector: "sky-radio", inputs: ["checked", "disabled", "id", "label", "labelledBy", "name", "tabindex", "value", "icon", "radioType"], outputs: ["change", "checkedChange", "disabledChange"] }, { type: i1$2.λ12, selector: "sky-radio-label" }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
826
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoControlPanelRadioGroupComponent, decorators: [{
|
|
827
|
+
type: Component,
|
|
828
|
+
args: [{
|
|
829
|
+
selector: 'sky-docs-demo-control-panel-radio-group',
|
|
830
|
+
templateUrl: './demo-control-panel-radio-group.component.html',
|
|
831
|
+
styleUrls: ['./demo-control-panel-radio-group.component.scss'],
|
|
832
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
833
|
+
}]
|
|
834
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { choices: [{
|
|
835
|
+
type: Input
|
|
836
|
+
}], disabled: [{
|
|
837
|
+
type: Input
|
|
838
|
+
}], heading: [{
|
|
839
|
+
type: Input
|
|
840
|
+
}], initialValue: [{
|
|
841
|
+
type: Input
|
|
842
|
+
}], propertyName: [{
|
|
843
|
+
type: Input
|
|
844
|
+
}] } });
|
|
798
845
|
|
|
799
846
|
/**
|
|
800
847
|
* Handles the appearance and configuration of the behavior demo control panel.
|
|
@@ -807,9 +854,8 @@ SkyDocsDemoThemeService = __decorate([
|
|
|
807
854
|
* </sky-docs-demo-control-panel>
|
|
808
855
|
* ```
|
|
809
856
|
*/
|
|
810
|
-
|
|
811
|
-
constructor(
|
|
812
|
-
this.demoThemeSvc = demoThemeSvc;
|
|
857
|
+
class SkyDocsDemoControlPanelComponent {
|
|
858
|
+
constructor() {
|
|
813
859
|
/**
|
|
814
860
|
* Fires when the user clicks the reset button.
|
|
815
861
|
*/
|
|
@@ -843,9 +889,6 @@ let SkyDocsDemoControlPanelComponent = class SkyDocsDemoControlPanelComponent {
|
|
|
843
889
|
});
|
|
844
890
|
this.reset.emit();
|
|
845
891
|
}
|
|
846
|
-
onThemeSettingsChange(themeSettings) {
|
|
847
|
-
this.demoThemeSvc.themeSettings.next(themeSettings);
|
|
848
|
-
}
|
|
849
892
|
addEventListeners() {
|
|
850
893
|
if (this.eventListeners) {
|
|
851
894
|
this.eventListeners.unsubscribe();
|
|
@@ -856,30 +899,28 @@ let SkyDocsDemoControlPanelComponent = class SkyDocsDemoControlPanelComponent {
|
|
|
856
899
|
this.selectionChange.next(change);
|
|
857
900
|
});
|
|
858
901
|
}
|
|
859
|
-
}
|
|
860
|
-
SkyDocsDemoControlPanelComponent
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
],
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
})
|
|
882
|
-
], SkyDocsDemoControlPanelComponent);
|
|
902
|
+
}
|
|
903
|
+
SkyDocsDemoControlPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoControlPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
904
|
+
SkyDocsDemoControlPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsDemoControlPanelComponent, selector: "sky-docs-demo-control-panel", outputs: { reset: "reset", selectionChange: "selectionChange" }, queries: [{ propertyName: "radioGroups", predicate: SkyDocsDemoControlPanelRadioGroupComponent, descendants: true }, { propertyName: "checkboxes", predicate: SkyDocsDemoControlPanelCheckboxComponent, descendants: true }], ngImport: i0, template: "<div class=\"sky-docs-demo-control-panel\">\n <div class=\"sky-docs-demo-control-panel-row sky-rounded-corners\">\n <div class=\"sky-docs-demo-control-panel-column sky-docs-demo-control-panel-sections-column\">\n <ng-content select=\"sky-docs-demo-control-panel-section\"></ng-content>\n </div>\n\n <div class=\"sky-docs-demo-control-panel-column sky-docs-demo-control-panel-button-column\">\n <button\n class=\"sky-btn sky-btn-link\"\n type=\"button\"\n [attr.data-test-selector]=\"'sky-docs-demo-control-panel-reset-button'\"\n (click)=\"onResetButtonClick()\"\n >\n {{ 'sky-docs-demo-control-panel-reset-button-label' | skyLibResources }}\n </button>\n </div>\n </div>\n</div>\n", styles: [".sky-docs-demo-control-panel{margin-bottom:20px;margin-top:-1px;margin-left:-15px}.sky-docs-demo-control-panel-row{border-top:1px solid #cdcfd2;border-bottom:1px solid #cdcfd2;border-left:1px solid #cdcfd2;border-right:1px solid #cdcfd2;padding:15px;background-color:#fff;display:inline-flex;min-width:220px}.sky-docs-demo-control-panel-sections-column{display:flex}.sky-docs-demo-control-panel-sections-column ::ng-deep sky-docs-demo-control-panel-section{min-width:120px}.sky-docs-demo-control-panel-button-column{align-self:flex-end}.sky-docs-demo-control-panel-button-column .sky-btn{border:0}\n"], pipes: { "skyLibResources": i8.SkyLibResourcesPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
905
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoControlPanelComponent, decorators: [{
|
|
906
|
+
type: Component,
|
|
907
|
+
args: [{
|
|
908
|
+
selector: 'sky-docs-demo-control-panel',
|
|
909
|
+
templateUrl: './demo-control-panel.component.html',
|
|
910
|
+
styleUrls: ['./demo-control-panel.component.scss'],
|
|
911
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
912
|
+
}]
|
|
913
|
+
}], propDecorators: { reset: [{
|
|
914
|
+
type: Output
|
|
915
|
+
}], selectionChange: [{
|
|
916
|
+
type: Output
|
|
917
|
+
}], radioGroups: [{
|
|
918
|
+
type: ContentChildren,
|
|
919
|
+
args: [SkyDocsDemoControlPanelRadioGroupComponent, { descendants: true }]
|
|
920
|
+
}], checkboxes: [{
|
|
921
|
+
type: ContentChildren,
|
|
922
|
+
args: [SkyDocsDemoControlPanelCheckboxComponent, { descendants: true }]
|
|
923
|
+
}] } });
|
|
883
924
|
|
|
884
925
|
/**
|
|
885
926
|
* Wraps all behavior demo components and handles the configuration and appearance of the behavior demo.
|
|
@@ -890,9 +931,8 @@ SkyDocsDemoControlPanelComponent = __decorate([
|
|
|
890
931
|
* </sky-docs-demo>
|
|
891
932
|
* ```
|
|
892
933
|
*/
|
|
893
|
-
|
|
894
|
-
constructor(
|
|
895
|
-
this.demoThemeSvc = demoThemeSvc;
|
|
934
|
+
class SkyDocsDemoComponent {
|
|
935
|
+
constructor() {
|
|
896
936
|
this.areOptionsVisible = false;
|
|
897
937
|
}
|
|
898
938
|
/**
|
|
@@ -905,11 +945,8 @@ let SkyDocsDemoComponent = class SkyDocsDemoComponent {
|
|
|
905
945
|
get alignContents() {
|
|
906
946
|
return this._alignContents || 'left';
|
|
907
947
|
}
|
|
908
|
-
set supportsTheming(value) {
|
|
909
|
-
this.demoThemeSvc.supportsTheming.next(value);
|
|
910
|
-
}
|
|
911
948
|
get hasOptions() {
|
|
912
|
-
return
|
|
949
|
+
return (this.controlPanels && this.controlPanels.length > 0);
|
|
913
950
|
}
|
|
914
951
|
get toggleOptionsButtonIcon() {
|
|
915
952
|
return (this.areOptionsVisible) ? 'chevron-up' : 'chevron-down';
|
|
@@ -917,31 +954,25 @@ let SkyDocsDemoComponent = class SkyDocsDemoComponent {
|
|
|
917
954
|
onToggleOptionsButtonClick() {
|
|
918
955
|
this.areOptionsVisible = !this.areOptionsVisible;
|
|
919
956
|
}
|
|
920
|
-
}
|
|
921
|
-
SkyDocsDemoComponent
|
|
922
|
-
{ type:
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
],
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
template: "<div class=\"sky-docs-demo\">\n <div\n aria-level=\"3\"\n class=\"sky-docs-demo-heading\"\n role=\"heading\"\n >\n <span\n class=\"sky-section-heading\"\n [attr.data-test-selector]=\"'sky-docs-demo-heading-text'\"\n >\n {{ heading || ('sky-docs-demo-heading' | skyLibResources) }}\n </span>\n\n <div\n class=\"sky-docs-demo-control-panel-wrapper\"\n >\n <div\n class=\"sky-docs-demo-control-panel-wrapper-header\"\n >\n <button *ngIf=\"hasOptions\"\n class=\"sky-btn\"\n type=\"button\"\n [attr.data-test-selector]=\"'sky-docs-demo-heading-button'\"\n [ngClass]=\"{\n 'sky-docs-demo-heading-btn-open': areOptionsVisible\n }\"\n (click)=\"onToggleOptionsButtonClick()\"\n >\n <sky-icon\n [icon]=\"toggleOptionsButtonIcon\"\n ></sky-icon>\n <ng-container *ngIf=\"areOptionsVisible\">\n {{ 'sky-docs-demo-toggle-button-off' | skyLibResources }}\n </ng-container>\n <ng-container *ngIf=\"!areOptionsVisible\">\n {{ 'sky-docs-demo-toggle-button-on' | skyLibResources }}\n </ng-container>\n </button>\n </div>\n <div\n class=\"sky-docs-demo-control-panel-wrapper-body\"\n >\n <ng-container *ngIf=\"areOptionsVisible\">\n <ng-container *ngTemplateOutlet=\"controlPanels\"></ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n\n <div\n class=\"sky-docs-demo-viewport\"\n [ngClass]=\"'sky-docs-demo-viewport-align-' + alignContents\"\n [skyTheme]=\"demoThemeSvc.themeSettings | async\"\n >\n <div class=\"sky-docs-demo-viewport-gutter\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n\n<ng-template #controlPanels>\n <ng-content select=\"sky-docs-demo-control-panel\"></ng-content>\n</ng-template>\n",
|
|
940
|
-
providers: [SkyDocsDemoThemeService],
|
|
941
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
942
|
-
styles: [".sky-docs-demo{margin-bottom:20px}.sky-docs-demo-heading{margin-bottom:10px;display:flex;flex-direction:row}.sky-docs-demo-heading .sky-docs-demo-heading-btn-open{border-bottom-color:#fff;border-bottom-left-radius:0;border-bottom-right-radius:0;position:relative}.sky-docs-demo-control-panel-wrapper{display:flex;flex-direction:column}.sky-section-heading{margin-right:10px}.sky-docs-demo-viewport{border-top:1px solid #cdcfd2;border-bottom:1px solid #cdcfd2;border-left:1px solid #cdcfd2;border-right:1px solid #cdcfd2;margin-bottom:10px;padding:15px}.sky-docs-demo-viewport-align-center{display:flex;align-items:center;justify-content:center}"]
|
|
943
|
-
})
|
|
944
|
-
], SkyDocsDemoComponent);
|
|
957
|
+
}
|
|
958
|
+
SkyDocsDemoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
959
|
+
SkyDocsDemoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsDemoComponent, selector: "sky-docs-demo", inputs: { alignContents: "alignContents", heading: "heading" }, queries: [{ propertyName: "controlPanels", predicate: SkyDocsDemoControlPanelComponent, read: ElementRef }], ngImport: i0, template: "<div class=\"sky-docs-demo\">\n <div\n aria-level=\"3\"\n class=\"sky-docs-demo-heading\"\n role=\"heading\"\n >\n <span\n class=\"sky-section-heading\"\n [attr.data-test-selector]=\"'sky-docs-demo-heading-text'\"\n >\n {{ heading || ('sky-docs-demo-heading' | skyLibResources) }}\n </span>\n\n <div\n class=\"sky-docs-demo-control-panel-wrapper\"\n >\n <div\n class=\"sky-docs-demo-control-panel-wrapper-header\"\n >\n <button *ngIf=\"hasOptions\"\n class=\"sky-btn\"\n type=\"button\"\n [attr.data-test-selector]=\"'sky-docs-demo-heading-button'\"\n [ngClass]=\"{\n 'sky-docs-demo-heading-btn-open': areOptionsVisible\n }\"\n (click)=\"onToggleOptionsButtonClick()\"\n >\n <sky-icon\n [icon]=\"toggleOptionsButtonIcon\"\n ></sky-icon>\n <ng-container *ngIf=\"areOptionsVisible\">\n {{ 'sky-docs-demo-toggle-button-off' | skyLibResources }}\n </ng-container>\n <ng-container *ngIf=\"!areOptionsVisible\">\n {{ 'sky-docs-demo-toggle-button-on' | skyLibResources }}\n </ng-container>\n </button>\n </div>\n <div\n class=\"sky-docs-demo-control-panel-wrapper-body\"\n >\n <ng-container *ngIf=\"areOptionsVisible\">\n <ng-container *ngTemplateOutlet=\"controlPanels\"></ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n\n <div\n class=\"sky-docs-demo-viewport\"\n [ngClass]=\"'sky-docs-demo-viewport-align-' + alignContents\"\n >\n <div class=\"sky-docs-demo-viewport-gutter\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n\n<ng-template #controlPanels>\n <ng-content select=\"sky-docs-demo-control-panel\"></ng-content>\n</ng-template>\n", styles: [".sky-docs-demo{margin-bottom:20px}.sky-docs-demo-heading{margin-bottom:10px;display:flex;flex-direction:row}.sky-docs-demo-heading .sky-docs-demo-heading-btn-open{border-bottom-color:#fff;border-bottom-left-radius:0;border-bottom-right-radius:0;position:relative}.sky-docs-demo-control-panel-wrapper{display:flex;flex-direction:column}.sky-section-heading{margin-right:10px}.sky-docs-demo-viewport{border-top:1px solid #cdcfd2;border-bottom:1px solid #cdcfd2;border-left:1px solid #cdcfd2;border-right:1px solid #cdcfd2;margin-bottom:10px;padding:15px}.sky-docs-demo-viewport-align-center{display:flex;align-items:center;justify-content:center}\n"], components: [{ type: i1$1.λ4, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "skyLibResources": i8.SkyLibResourcesPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
960
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoComponent, decorators: [{
|
|
961
|
+
type: Component,
|
|
962
|
+
args: [{
|
|
963
|
+
selector: 'sky-docs-demo',
|
|
964
|
+
templateUrl: './demo.component.html',
|
|
965
|
+
styleUrls: ['./demo.component.scss'],
|
|
966
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
967
|
+
}]
|
|
968
|
+
}], propDecorators: { alignContents: [{
|
|
969
|
+
type: Input
|
|
970
|
+
}], heading: [{
|
|
971
|
+
type: Input
|
|
972
|
+
}], controlPanels: [{
|
|
973
|
+
type: ContentChildren,
|
|
974
|
+
args: [SkyDocsDemoControlPanelComponent, { read: ElementRef }]
|
|
975
|
+
}] } });
|
|
945
976
|
|
|
946
977
|
/**
|
|
947
978
|
* Renders a section within the control panel.
|
|
@@ -954,218 +985,168 @@ SkyDocsDemoComponent = __decorate([
|
|
|
954
985
|
* </sky-docs-demo-control-panel>
|
|
955
986
|
* ```
|
|
956
987
|
*/
|
|
957
|
-
|
|
958
|
-
}
|
|
959
|
-
SkyDocsDemoControlPanelSectionComponent =
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
],
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
}
|
|
991
|
-
get mode() {
|
|
992
|
-
return this._mode;
|
|
993
|
-
}
|
|
994
|
-
set mode(value) {
|
|
995
|
-
this._mode = value;
|
|
996
|
-
this.updateTheme();
|
|
997
|
-
}
|
|
998
|
-
get theme() {
|
|
999
|
-
return this._theme;
|
|
1000
|
-
}
|
|
1001
|
-
set theme(value) {
|
|
1002
|
-
this._theme = value;
|
|
1003
|
-
this.updateModesForTheme();
|
|
1004
|
-
this.updateTheme();
|
|
1005
|
-
}
|
|
1006
|
-
ngOnInit() {
|
|
1007
|
-
this.themeOptions = Object.keys(SkyTheme.presets).map(key => this.createRadioItem(key));
|
|
1008
|
-
this.updateModesForTheme();
|
|
1009
|
-
this.updateTheme();
|
|
1010
|
-
}
|
|
1011
|
-
ngOnDestroy() {
|
|
1012
|
-
this.ngUnsubscribe.next();
|
|
1013
|
-
this.ngUnsubscribe.complete();
|
|
1014
|
-
}
|
|
1015
|
-
updateModesForTheme() {
|
|
1016
|
-
let selectedTheme = this.getThemeByName(this.theme);
|
|
1017
|
-
this.modeOptions = selectedTheme.supportedModes
|
|
1018
|
-
.map(supportedMode => this.createRadioItem(supportedMode.name));
|
|
1019
|
-
if (!this.modeOptions.some((item) => item.value === this.mode)) {
|
|
1020
|
-
this.mode = this.modeOptions[0].value;
|
|
1021
|
-
}
|
|
1022
|
-
}
|
|
1023
|
-
createRadioItem(name) {
|
|
1024
|
-
return {
|
|
1025
|
-
label: this.capitalize(name),
|
|
1026
|
-
value: name
|
|
1027
|
-
};
|
|
1028
|
-
}
|
|
1029
|
-
capitalize(name) {
|
|
1030
|
-
return name.charAt(0).toUpperCase() + name.substr(1);
|
|
1031
|
-
}
|
|
1032
|
-
getThemeSettings() {
|
|
1033
|
-
return new SkyThemeSettings(this.getThemeByName(this.theme), this.getModeByName(this.mode));
|
|
1034
|
-
}
|
|
1035
|
-
getThemeByName(name) {
|
|
1036
|
-
const themePresets = SkyTheme.presets;
|
|
1037
|
-
return themePresets[name];
|
|
1038
|
-
}
|
|
1039
|
-
getModeByName(name) {
|
|
1040
|
-
const modePresets = SkyThemeMode.presets;
|
|
1041
|
-
return modePresets[name];
|
|
1042
|
-
}
|
|
1043
|
-
updateTheme() {
|
|
1044
|
-
this.themeSettingsChange.emit(this.getThemeSettings());
|
|
1045
|
-
}
|
|
1046
|
-
};
|
|
1047
|
-
SkyDocsDemoControlPanelThemeComponent.ctorParameters = () => [
|
|
1048
|
-
{ type: ChangeDetectorRef },
|
|
1049
|
-
{ type: SkyThemeService, decorators: [{ type: Optional }] }
|
|
1050
|
-
];
|
|
1051
|
-
__decorate([
|
|
1052
|
-
Output()
|
|
1053
|
-
], SkyDocsDemoControlPanelThemeComponent.prototype, "themeSettingsChange", void 0);
|
|
1054
|
-
SkyDocsDemoControlPanelThemeComponent = __decorate([
|
|
1055
|
-
Component({
|
|
1056
|
-
selector: 'sky-docs-demo-control-panel-theme',
|
|
1057
|
-
template: "<strong>Theme</strong>\n<sky-radio-group\n name=\"theme\"\n [(ngModel)]=\"theme\"\n>\n <ul\n class=\"sky-list-unstyled\"\n >\n <li *ngFor=\"let themeOption of themeOptions\">\n <sky-radio\n [value]=\"themeOption.value\"\n >\n <sky-radio-label>{{ themeOption.label }}</sky-radio-label>\n </sky-radio>\n </li>\n </ul>\n</sky-radio-group>\n\n<strong>Mode</strong>\n<sky-radio-group\n name=\"mode\"\n [(ngModel)]=\"mode\"\n>\n <ul\n class=\"sky-list-unstyled\"\n >\n <li *ngFor=\"let modeOption of modeOptions\">\n <sky-radio\n [value]=\"modeOption.value\"\n >\n <sky-radio-label>{{ modeOption.label }}</sky-radio-label>\n </sky-radio>\n </li>\n </ul>\n</sky-radio-group>\n",
|
|
1058
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1059
|
-
styles: ["ul{margin:0}"]
|
|
1060
|
-
}),
|
|
1061
|
-
__param(1, Optional())
|
|
1062
|
-
], SkyDocsDemoControlPanelThemeComponent);
|
|
1063
|
-
|
|
1064
|
-
let SkyDocsDemoModule = class SkyDocsDemoModule {
|
|
1065
|
-
};
|
|
1066
|
-
SkyDocsDemoModule = __decorate([
|
|
1067
|
-
NgModule({
|
|
1068
|
-
imports: [
|
|
988
|
+
class SkyDocsDemoControlPanelSectionComponent {
|
|
989
|
+
}
|
|
990
|
+
SkyDocsDemoControlPanelSectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoControlPanelSectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
991
|
+
SkyDocsDemoControlPanelSectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsDemoControlPanelSectionComponent, selector: "sky-docs-demo-control-panel-section", ngImport: i0, template: "<div\n class=\"sky-demo-control-panel-section\"\n>\n <ng-content select=\"sky-docs-demo-control-panel-radio-group\"></ng-content>\n <ng-content select=\"sky-docs-demo-control-panel-checkbox\"></ng-content>\n</div>\n", styles: [".sky-demo-control-panel-section{padding-right:20px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
992
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoControlPanelSectionComponent, decorators: [{
|
|
993
|
+
type: Component,
|
|
994
|
+
args: [{
|
|
995
|
+
selector: 'sky-docs-demo-control-panel-section',
|
|
996
|
+
templateUrl: './demo-control-panel-section.component.html',
|
|
997
|
+
styleUrls: ['./demo-control-panel-section.component.scss'],
|
|
998
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
999
|
+
}]
|
|
1000
|
+
}] });
|
|
1001
|
+
|
|
1002
|
+
class SkyDocsDemoModule {
|
|
1003
|
+
}
|
|
1004
|
+
SkyDocsDemoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1005
|
+
SkyDocsDemoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoModule, declarations: [SkyDocsDemoComponent,
|
|
1006
|
+
SkyDocsDemoControlPanelCheckboxComponent,
|
|
1007
|
+
SkyDocsDemoControlPanelComponent,
|
|
1008
|
+
SkyDocsDemoControlPanelRadioGroupComponent,
|
|
1009
|
+
SkyDocsDemoControlPanelSectionComponent], imports: [CommonModule,
|
|
1010
|
+
FormsModule,
|
|
1011
|
+
SkyCheckboxModule,
|
|
1012
|
+
SkyDocsToolsResourcesModule,
|
|
1013
|
+
SkyIconModule,
|
|
1014
|
+
SkyRadioModule,
|
|
1015
|
+
SkyThemeModule], exports: [SkyDocsDemoComponent,
|
|
1016
|
+
SkyDocsDemoControlPanelCheckboxComponent,
|
|
1017
|
+
SkyDocsDemoControlPanelComponent,
|
|
1018
|
+
SkyDocsDemoControlPanelRadioGroupComponent,
|
|
1019
|
+
SkyDocsDemoControlPanelSectionComponent] });
|
|
1020
|
+
SkyDocsDemoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoModule, imports: [[
|
|
1069
1021
|
CommonModule,
|
|
1070
1022
|
FormsModule,
|
|
1071
1023
|
SkyCheckboxModule,
|
|
1072
1024
|
SkyDocsToolsResourcesModule,
|
|
1073
1025
|
SkyIconModule,
|
|
1074
1026
|
SkyRadioModule,
|
|
1075
|
-
SkyRestrictedViewModule,
|
|
1076
1027
|
SkyThemeModule
|
|
1077
|
-
]
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1028
|
+
]] });
|
|
1029
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoModule, decorators: [{
|
|
1030
|
+
type: NgModule,
|
|
1031
|
+
args: [{
|
|
1032
|
+
imports: [
|
|
1033
|
+
CommonModule,
|
|
1034
|
+
FormsModule,
|
|
1035
|
+
SkyCheckboxModule,
|
|
1036
|
+
SkyDocsToolsResourcesModule,
|
|
1037
|
+
SkyIconModule,
|
|
1038
|
+
SkyRadioModule,
|
|
1039
|
+
SkyThemeModule
|
|
1040
|
+
],
|
|
1041
|
+
declarations: [
|
|
1042
|
+
SkyDocsDemoComponent,
|
|
1043
|
+
SkyDocsDemoControlPanelCheckboxComponent,
|
|
1044
|
+
SkyDocsDemoControlPanelComponent,
|
|
1045
|
+
SkyDocsDemoControlPanelRadioGroupComponent,
|
|
1046
|
+
SkyDocsDemoControlPanelSectionComponent,
|
|
1047
|
+
],
|
|
1048
|
+
exports: [
|
|
1049
|
+
SkyDocsDemoComponent,
|
|
1050
|
+
SkyDocsDemoControlPanelCheckboxComponent,
|
|
1051
|
+
SkyDocsDemoControlPanelComponent,
|
|
1052
|
+
SkyDocsDemoControlPanelRadioGroupComponent,
|
|
1053
|
+
SkyDocsDemoControlPanelSectionComponent,
|
|
1054
|
+
]
|
|
1055
|
+
}]
|
|
1056
|
+
}] });
|
|
1057
|
+
|
|
1058
|
+
class SkyDocsHeadingAnchorComponent {
|
|
1098
1059
|
constructor() {
|
|
1099
1060
|
this.headingLevel = '2';
|
|
1100
1061
|
}
|
|
1101
|
-
}
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
],
|
|
1124
|
-
|
|
1062
|
+
}
|
|
1063
|
+
SkyDocsHeadingAnchorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsHeadingAnchorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1064
|
+
SkyDocsHeadingAnchorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsHeadingAnchorComponent, selector: "sky-docs-heading-anchor", inputs: { anchorId: "anchorId", headingLevel: "headingLevel" }, ngImport: i0, template: "<div\n class=\"sky-docs-heading-anchor\"\n role=\"heading\"\n [ngClass]=\"'sky-docs-tools-heading-anchor-h' + headingLevel\"\n [attr.aria-level]=\"headingLevel\"\n [attr.id]=\"anchorId || null\"\n>\n <ng-content></ng-content>\n <a *ngIf=\"anchorId\"\n aria-hidden=\"true\"\n class=\"sky-docs-heading-anchor\"\n queryParamsHandling=\"merge\"\n [fragment]=\"anchorId\"\n [routerLink]=\"[]\"\n >\n <sky-icon\n class=\"sky-docs-heading-anchor-icon\"\n icon=\"link\"\n ></sky-icon>\n </a>\n</div>", styles: [".sky-docs-heading-anchor{color:#212327}.sky-docs-heading-anchor:hover{text-decoration:none}.sky-docs-heading-anchor:hover .sky-docs-heading-anchor-icon{opacity:1}.sky-docs-heading-anchor:focus .sky-docs-heading-anchor-icon{opacity:1}.sky-docs-heading-anchor-icon{opacity:0;transition:opacity .15s ease-in-out;color:#0974a1;font-weight:normal;font-size:18px}.sky-docs-tools-heading-anchor-h1,.sky-docs-tools-heading-anchor-h2,.sky-docs-tools-heading-anchor-h3,.sky-docs-tools-heading-anchor-h4,.sky-docs-tools-heading-anchor-h5,.sky-docs-tools-heading-anchor-h6{line-height:1.1;font-family:\"BLKB Sans\",\"Helvetica Neue\",Arial,sans-serif;color:#212327;font-weight:400;margin:30px 0 15px}.sky-docs-tools-heading-anchor-h1{line-height:1.1;font-family:\"BLKB Sans\",\"Helvetica Neue\",Arial,sans-serif;color:#212327;font-weight:400;margin:30px 0 15px;font-weight:300;font-size:34px}.sky-docs-tools-heading-anchor-h2{line-height:1.1;font-family:\"BLKB Sans\",\"Helvetica Neue\",Arial,sans-serif;color:#212327;font-weight:400;margin:30px 0;font-weight:300;font-size:26px}.sky-docs-tools-heading-anchor-h3{line-height:1.1;font-family:\"BLKB Sans\",\"Helvetica Neue\",Arial,sans-serif;color:#212327;margin:30px 0 15px;font-size:19px;font-weight:400}.sky-docs-tools-heading-anchor-h4{line-height:1.1;font-family:\"BLKB Sans\",\"Helvetica Neue\",Arial,sans-serif;color:#212327;font-weight:400;font-weight:600;font-size:15px;margin:0 0 10px}\n"], components: [{ type: i1$1.λ4, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$3.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1065
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsHeadingAnchorComponent, decorators: [{
|
|
1066
|
+
type: Component,
|
|
1067
|
+
args: [{
|
|
1068
|
+
selector: 'sky-docs-heading-anchor',
|
|
1069
|
+
templateUrl: './heading-anchor.component.html',
|
|
1070
|
+
styleUrls: ['./heading-anchor.component.scss'],
|
|
1071
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1072
|
+
}]
|
|
1073
|
+
}], propDecorators: { anchorId: [{
|
|
1074
|
+
type: Input
|
|
1075
|
+
}], headingLevel: [{
|
|
1076
|
+
type: Input
|
|
1077
|
+
}] } });
|
|
1078
|
+
|
|
1079
|
+
class SkyDocsHeadingAnchorModule {
|
|
1080
|
+
}
|
|
1081
|
+
SkyDocsHeadingAnchorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsHeadingAnchorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1082
|
+
SkyDocsHeadingAnchorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsHeadingAnchorModule, declarations: [SkyDocsHeadingAnchorComponent], imports: [CommonModule,
|
|
1083
|
+
RouterModule,
|
|
1084
|
+
SkyIconModule], exports: [SkyDocsHeadingAnchorComponent] });
|
|
1085
|
+
SkyDocsHeadingAnchorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsHeadingAnchorModule, imports: [[
|
|
1125
1086
|
CommonModule,
|
|
1126
1087
|
RouterModule,
|
|
1127
1088
|
SkyIconModule
|
|
1128
|
-
]
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1089
|
+
]] });
|
|
1090
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsHeadingAnchorModule, decorators: [{
|
|
1091
|
+
type: NgModule,
|
|
1092
|
+
args: [{
|
|
1093
|
+
declarations: [
|
|
1094
|
+
SkyDocsHeadingAnchorComponent
|
|
1095
|
+
],
|
|
1096
|
+
imports: [
|
|
1097
|
+
CommonModule,
|
|
1098
|
+
RouterModule,
|
|
1099
|
+
SkyIconModule
|
|
1100
|
+
],
|
|
1101
|
+
exports: [
|
|
1102
|
+
SkyDocsHeadingAnchorComponent
|
|
1103
|
+
]
|
|
1104
|
+
}]
|
|
1105
|
+
}] });
|
|
1106
|
+
|
|
1107
|
+
class SkyDocsMarkdownPipe {
|
|
1136
1108
|
transform(markdown) {
|
|
1137
1109
|
if (!markdown) {
|
|
1138
1110
|
return '';
|
|
1139
1111
|
}
|
|
1140
1112
|
return marked(markdown);
|
|
1141
1113
|
}
|
|
1142
|
-
}
|
|
1143
|
-
SkyDocsMarkdownPipe =
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
};
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1114
|
+
}
|
|
1115
|
+
SkyDocsMarkdownPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsMarkdownPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1116
|
+
SkyDocsMarkdownPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsMarkdownPipe, name: "skyDocsMarkdown" });
|
|
1117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsMarkdownPipe, decorators: [{
|
|
1118
|
+
type: Pipe,
|
|
1119
|
+
args: [{
|
|
1120
|
+
name: 'skyDocsMarkdown'
|
|
1121
|
+
}]
|
|
1122
|
+
}] });
|
|
1123
|
+
|
|
1124
|
+
class SkyDocsMarkdownModule {
|
|
1125
|
+
}
|
|
1126
|
+
SkyDocsMarkdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsMarkdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1127
|
+
SkyDocsMarkdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsMarkdownModule, declarations: [SkyDocsMarkdownPipe], exports: [SkyDocsMarkdownPipe] });
|
|
1128
|
+
SkyDocsMarkdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsMarkdownModule, providers: [
|
|
1129
|
+
SkyDocsMarkdownPipe
|
|
1130
|
+
] });
|
|
1131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsMarkdownModule, decorators: [{
|
|
1132
|
+
type: NgModule,
|
|
1133
|
+
args: [{
|
|
1134
|
+
declarations: [
|
|
1135
|
+
SkyDocsMarkdownPipe
|
|
1136
|
+
],
|
|
1137
|
+
providers: [
|
|
1138
|
+
SkyDocsMarkdownPipe
|
|
1139
|
+
],
|
|
1140
|
+
exports: [
|
|
1141
|
+
SkyDocsMarkdownPipe
|
|
1142
|
+
]
|
|
1143
|
+
}]
|
|
1144
|
+
}] });
|
|
1164
1145
|
|
|
1165
1146
|
class SkyDocsToolsOptions {
|
|
1166
1147
|
}
|
|
1167
1148
|
|
|
1168
|
-
|
|
1149
|
+
class SkyDocsModuleInfoComponent {
|
|
1169
1150
|
constructor(options) {
|
|
1170
1151
|
this.options = options;
|
|
1171
1152
|
}
|
|
@@ -1215,194 +1196,113 @@ let SkyDocsModuleInfoComponent = class SkyDocsModuleInfoComponent {
|
|
|
1215
1196
|
}
|
|
1216
1197
|
return `npm install --save-exact ${this.packageName}`;
|
|
1217
1198
|
}
|
|
1218
|
-
}
|
|
1219
|
-
SkyDocsModuleInfoComponent
|
|
1220
|
-
{ type:
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
],
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1199
|
+
}
|
|
1200
|
+
SkyDocsModuleInfoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsModuleInfoComponent, deps: [{ token: SkyDocsToolsOptions, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1201
|
+
SkyDocsModuleInfoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsModuleInfoComponent, selector: "sky-docs-module-info", inputs: { gitRepoUrl: "gitRepoUrl", moduleName: "moduleName", packageName: "packageName", packageUrl: "packageUrl" }, ngImport: i0, template: "<div class=\"sky-docs-module-info\">\n <sky-definition-list\n defaultValue=\"\"\n labelWidth=\"120px\"\n >\n <sky-definition-list-content *ngIf=\"moduleName\">\n <sky-definition-list-label>\n Defined in\n </sky-definition-list-label>\n <sky-definition-list-value>\n <sky-code>{{ moduleName }}</sky-code>\n </sky-definition-list-value>\n </sky-definition-list-content>\n <sky-definition-list-content *ngIf=\"packageName\">\n <sky-definition-list-label>\n NPM package\n </sky-definition-list-label>\n <sky-definition-list-value>\n <span class=\"sky-docs-module-info-package-name\"><sky-code>{{ packageName }}</sky-code></span>\n <ng-container *ngFor=\"let externalLink of externalLinks; let i = index;\">\n <a [attr.href]=\"externalLink.url\">{{ externalLink.label }}</a>\n <ng-container *ngIf=\"i < externalLinks.length - 1\"> | </ng-container>\n </ng-container>\n </sky-definition-list-value>\n </sky-definition-list-content>\n\n <sky-definition-list-content *ngIf=\"installationCommand\">\n <sky-definition-list-label>\n Installation\n <sky-help-inline\n [skyPopover]=\"installationCommandPopover\"\n skyPopoverPlacement=\"right\"\n >\n </sky-help-inline>\n </sky-definition-list-label>\n <sky-definition-list-value>\n <sky-popover #installationCommandPopover>\n To use this module, you must install peer dependencies along with its package. Also, after you install the package, you must add the module as an export in your SPA's main module to make exports available to your SPA.\n </sky-popover>\n <div class=\"sky-docs-module-info-installation-command\">\n <span class=\"sky-docs-module-info-installation-command-code\" #copyTarget>\n <sky-code>{{ installationCommand }}</sky-code>\n </span>\n <sky-copy-to-clipboard\n buttonText=\"Copy\"\n [copyTarget]=\"copyTarget\"\n ></sky-copy-to-clipboard>\n </div>\n </sky-definition-list-value>\n </sky-definition-list-content>\n </sky-definition-list>\n\n <div\n class=\"sky-docs-module-info-additional-content\"\n >\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [".sky-docs-module-info-installation-command{display:flex}.sky-docs-module-info-installation-command-code{margin-right:10px}.sky-docs-module-info-package-name{margin-right:10px}\n"], components: [{ type: i2$1.λ13, selector: "sky-definition-list", inputs: ["labelWidth", "defaultValue"] }, { type: i2$1.λ14, selector: "sky-definition-list-content" }, { type: i2$1.λ16, selector: "sky-definition-list-label" }, { type: i2$1.λ17, selector: "sky-definition-list-value" }, { type: i3$1.λ1, selector: "sky-code" }, { type: i1$1.λ3, selector: "sky-help-inline", outputs: ["actionClick"] }, { type: i5.λ6, selector: "sky-popover", inputs: ["alignment", "dismissOnBlur", "placement", "popoverTitle", "popoverType"], outputs: ["popoverClosed", "popoverOpened"] }, { type: i6.λ1, selector: "sky-copy-to-clipboard", inputs: ["copyTarget", "buttonText", "buttonClickedText"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5.λ7, selector: "[skyPopover]", inputs: ["skyPopover", "skyPopoverAlignment", "skyPopoverMessageStream", "skyPopoverPlacement", "skyPopoverTrigger"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1202
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsModuleInfoComponent, decorators: [{
|
|
1203
|
+
type: Component,
|
|
1204
|
+
args: [{
|
|
1205
|
+
selector: 'sky-docs-module-info',
|
|
1206
|
+
templateUrl: './module-info.component.html',
|
|
1207
|
+
styleUrls: ['./module-info.component.scss'],
|
|
1208
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1209
|
+
}]
|
|
1210
|
+
}], ctorParameters: function () { return [{ type: SkyDocsToolsOptions, decorators: [{
|
|
1211
|
+
type: Optional
|
|
1212
|
+
}] }]; }, propDecorators: { gitRepoUrl: [{
|
|
1213
|
+
type: Input
|
|
1214
|
+
}], moduleName: [{
|
|
1215
|
+
type: Input
|
|
1216
|
+
}], packageName: [{
|
|
1217
|
+
type: Input
|
|
1218
|
+
}], packageUrl: [{
|
|
1219
|
+
type: Input
|
|
1220
|
+
}] } });
|
|
1221
|
+
|
|
1222
|
+
class SkyDocsModuleInfoModule {
|
|
1223
|
+
}
|
|
1224
|
+
SkyDocsModuleInfoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsModuleInfoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1225
|
+
SkyDocsModuleInfoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsModuleInfoModule, declarations: [SkyDocsModuleInfoComponent], imports: [CommonModule,
|
|
1226
|
+
SkyCodeModule,
|
|
1227
|
+
SkyClipboardModule,
|
|
1228
|
+
SkyDefinitionListModule,
|
|
1229
|
+
SkyHelpInlineModule,
|
|
1230
|
+
SkyPopoverModule], exports: [SkyDocsModuleInfoComponent] });
|
|
1231
|
+
SkyDocsModuleInfoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsModuleInfoModule, imports: [[
|
|
1249
1232
|
CommonModule,
|
|
1250
1233
|
SkyCodeModule,
|
|
1251
1234
|
SkyClipboardModule,
|
|
1252
1235
|
SkyDefinitionListModule,
|
|
1253
1236
|
SkyHelpInlineModule,
|
|
1254
1237
|
SkyPopoverModule
|
|
1255
|
-
]
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1238
|
+
]] });
|
|
1239
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsModuleInfoModule, decorators: [{
|
|
1240
|
+
type: NgModule,
|
|
1241
|
+
args: [{
|
|
1242
|
+
imports: [
|
|
1243
|
+
CommonModule,
|
|
1244
|
+
SkyCodeModule,
|
|
1245
|
+
SkyClipboardModule,
|
|
1246
|
+
SkyDefinitionListModule,
|
|
1247
|
+
SkyHelpInlineModule,
|
|
1248
|
+
SkyPopoverModule
|
|
1249
|
+
],
|
|
1250
|
+
declarations: [
|
|
1251
|
+
SkyDocsModuleInfoComponent
|
|
1252
|
+
],
|
|
1253
|
+
exports: [
|
|
1254
|
+
SkyDocsModuleInfoComponent
|
|
1255
|
+
]
|
|
1256
|
+
}]
|
|
1257
|
+
}] });
|
|
1258
|
+
|
|
1259
|
+
class SkyDocsSafeHtmlComponent {
|
|
1266
1260
|
constructor(domSanitizer) {
|
|
1267
1261
|
this.domSanitizer = domSanitizer;
|
|
1268
1262
|
}
|
|
1269
1263
|
getTrustedHtml(content) {
|
|
1270
1264
|
return this.domSanitizer.bypassSecurityTrustHtml(content);
|
|
1271
1265
|
}
|
|
1272
|
-
};
|
|
1273
|
-
SkyDocsSafeHtmlComponent.ctorParameters = () => [
|
|
1274
|
-
{ type: DomSanitizer }
|
|
1275
|
-
];
|
|
1276
|
-
__decorate([
|
|
1277
|
-
Input()
|
|
1278
|
-
], SkyDocsSafeHtmlComponent.prototype, "innerHtml", void 0);
|
|
1279
|
-
SkyDocsSafeHtmlComponent = __decorate([
|
|
1280
|
-
Component({
|
|
1281
|
-
selector: 'sky-docs-safe-html',
|
|
1282
|
-
template: "<div\n class=\"sky-docs-safe-html\"\n [innerHtml]=\"getTrustedHtml(innerHtml)\"\n></div>",
|
|
1283
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1284
|
-
})
|
|
1285
|
-
], SkyDocsSafeHtmlComponent);
|
|
1286
|
-
|
|
1287
|
-
let SkyDocsSafeHtmlModule = class SkyDocsSafeHtmlModule {
|
|
1288
|
-
};
|
|
1289
|
-
SkyDocsSafeHtmlModule = __decorate([
|
|
1290
|
-
NgModule({
|
|
1291
|
-
declarations: [
|
|
1292
|
-
SkyDocsSafeHtmlComponent
|
|
1293
|
-
],
|
|
1294
|
-
imports: [
|
|
1295
|
-
CommonModule
|
|
1296
|
-
],
|
|
1297
|
-
exports: [
|
|
1298
|
-
SkyDocsSafeHtmlComponent
|
|
1299
|
-
]
|
|
1300
|
-
})
|
|
1301
|
-
], SkyDocsSafeHtmlModule);
|
|
1302
|
-
|
|
1303
|
-
let SkyDocsTypeDefinitionsProvider = class SkyDocsTypeDefinitionsProvider {
|
|
1304
|
-
};
|
|
1305
|
-
SkyDocsTypeDefinitionsProvider = __decorate([
|
|
1306
|
-
Injectable()
|
|
1307
|
-
], SkyDocsTypeDefinitionsProvider);
|
|
1308
|
-
|
|
1309
|
-
/**
|
|
1310
|
-
* Finds any type name that is NOT surrounded by alpha-numeric (and '>', '<', '.') characters.
|
|
1311
|
-
* (This is to avoid matching types that share similar words, such as `Foo` and `FooUser`.)
|
|
1312
|
-
* Notes:
|
|
1313
|
-
* - If the type name is surrounded by angle brackets, then it has already been processed as a link.
|
|
1314
|
-
* - If the type name starts with a period '.', then it is a sub property of an enumeration, etc. and should not be processed as a link.
|
|
1315
|
-
* - If the type name ends with a period followed immediately by any word character, then it is a method or property (Foo.bar).
|
|
1316
|
-
* Only the type name should be processed as a link.
|
|
1317
|
-
*/
|
|
1318
|
-
function createRegex(keyword) {
|
|
1319
|
-
return new RegExp(`(^|[^a-zA-Z0-9>.[/])(${keyword})(\\.\\w+)?(?=[^a-zA-Z0-9<]+|$)`, 'g');
|
|
1320
1266
|
}
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
if (config.applyCodeFormatting) {
|
|
1356
|
-
replacement = '<code>' + anchorHtml + typeProperty + '</code>';
|
|
1357
|
-
}
|
|
1358
|
-
else {
|
|
1359
|
-
replacement = anchorHtml + typeProperty;
|
|
1360
|
-
}
|
|
1361
|
-
// Regex Positive lookbehinds aren't supported in IE11 and Safari, so we have to check if the match has a starting extra character
|
|
1362
|
-
// (usually whitespace " Foo"), and then modify the starting/ending indexes to account for the extra character.
|
|
1363
|
-
const isMatchExact = matches[0].substr(0, typeName.length) === typeName;
|
|
1364
|
-
const startIndex = isMatchExact ? matches.index : matches.index + 1;
|
|
1365
|
-
const endIndex = isMatchExact ? matches[0].length : matches[0].length - 1;
|
|
1366
|
-
let contentWithCodeTags = content.substr(0, startIndex) + replacement + content.substr(startIndex + endIndex);
|
|
1367
|
-
content = contentWithCodeTags;
|
|
1368
|
-
counter++;
|
|
1369
|
-
}
|
|
1370
|
-
} while (matches !== null && counter < max);
|
|
1371
|
-
});
|
|
1372
|
-
return content;
|
|
1373
|
-
}
|
|
1374
|
-
/**
|
|
1375
|
-
* For backwards compatibility, we need to remove any double brackets wrapped around types.
|
|
1376
|
-
* e.g., `[[SampleType]]`
|
|
1377
|
-
*/
|
|
1378
|
-
removeDoubleSquareBrackets(content) {
|
|
1379
|
-
const match = content.match(/\[\[.*\]\]/);
|
|
1380
|
-
if (match) {
|
|
1381
|
-
const typeName = match[0].replace(/\[\[/g, '').replace(/\]\]/g, '');
|
|
1382
|
-
content = content.replace(match[0], typeName);
|
|
1383
|
-
}
|
|
1384
|
-
return content;
|
|
1385
|
-
}
|
|
1386
|
-
/**
|
|
1387
|
-
* Removes backtick characters around known types to prevent
|
|
1388
|
-
* the markdown pipe from wrapping them with code elements.
|
|
1389
|
-
*/
|
|
1390
|
-
removeBackticks(typeName, content) {
|
|
1391
|
-
const regexp = new RegExp(`\`(${typeName})\``, 'g');
|
|
1392
|
-
return content.replace(regexp, typeName);
|
|
1393
|
-
}
|
|
1394
|
-
};
|
|
1395
|
-
SkyDocsAnchorLinkService.ctorParameters = () => [
|
|
1396
|
-
{ type: SkyDocsTypeDefinitionsProvider }
|
|
1397
|
-
];
|
|
1398
|
-
SkyDocsAnchorLinkService = __decorate([
|
|
1399
|
-
Injectable()
|
|
1400
|
-
], SkyDocsAnchorLinkService);
|
|
1267
|
+
SkyDocsSafeHtmlComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsSafeHtmlComponent, deps: [{ token: i1$4.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
|
|
1268
|
+
SkyDocsSafeHtmlComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsSafeHtmlComponent, selector: "sky-docs-safe-html", inputs: { innerHtml: "innerHtml" }, ngImport: i0, template: "<div\n class=\"sky-docs-safe-html\"\n [innerHtml]=\"getTrustedHtml(innerHtml)\"\n></div>", changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1269
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsSafeHtmlComponent, decorators: [{
|
|
1270
|
+
type: Component,
|
|
1271
|
+
args: [{
|
|
1272
|
+
selector: 'sky-docs-safe-html',
|
|
1273
|
+
templateUrl: './safe-html.component.html',
|
|
1274
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1275
|
+
}]
|
|
1276
|
+
}], ctorParameters: function () { return [{ type: i1$4.DomSanitizer }]; }, propDecorators: { innerHtml: [{
|
|
1277
|
+
type: Input
|
|
1278
|
+
}] } });
|
|
1279
|
+
|
|
1280
|
+
class SkyDocsSafeHtmlModule {
|
|
1281
|
+
}
|
|
1282
|
+
SkyDocsSafeHtmlModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsSafeHtmlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1283
|
+
SkyDocsSafeHtmlModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsSafeHtmlModule, declarations: [SkyDocsSafeHtmlComponent], imports: [CommonModule], exports: [SkyDocsSafeHtmlComponent] });
|
|
1284
|
+
SkyDocsSafeHtmlModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsSafeHtmlModule, imports: [[
|
|
1285
|
+
CommonModule
|
|
1286
|
+
]] });
|
|
1287
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsSafeHtmlModule, decorators: [{
|
|
1288
|
+
type: NgModule,
|
|
1289
|
+
args: [{
|
|
1290
|
+
declarations: [
|
|
1291
|
+
SkyDocsSafeHtmlComponent
|
|
1292
|
+
],
|
|
1293
|
+
imports: [
|
|
1294
|
+
CommonModule
|
|
1295
|
+
],
|
|
1296
|
+
exports: [
|
|
1297
|
+
SkyDocsSafeHtmlComponent
|
|
1298
|
+
]
|
|
1299
|
+
}]
|
|
1300
|
+
}] });
|
|
1401
1301
|
|
|
1402
1302
|
/**
|
|
1403
1303
|
* Formats type definitions into HTML-compatible strings.
|
|
1404
1304
|
*/
|
|
1405
|
-
|
|
1305
|
+
class SkyDocsTypeDefinitionsFormatService {
|
|
1406
1306
|
/**
|
|
1407
1307
|
* Returns an HTML-formatted representation of the provided interface config.
|
|
1408
1308
|
*/
|
|
@@ -1628,16 +1528,148 @@ let SkyDocsTypeDefinitionsFormatService = class SkyDocsTypeDefinitionsFormatServ
|
|
|
1628
1528
|
});
|
|
1629
1529
|
return signature;
|
|
1630
1530
|
}
|
|
1631
|
-
}
|
|
1632
|
-
SkyDocsTypeDefinitionsFormatService =
|
|
1633
|
-
|
|
1634
|
-
|
|
1531
|
+
}
|
|
1532
|
+
SkyDocsTypeDefinitionsFormatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsTypeDefinitionsFormatService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1533
|
+
SkyDocsTypeDefinitionsFormatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsTypeDefinitionsFormatService, providedIn: 'root' });
|
|
1534
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsTypeDefinitionsFormatService, decorators: [{
|
|
1535
|
+
type: Injectable,
|
|
1536
|
+
args: [{
|
|
1537
|
+
providedIn: 'root'
|
|
1538
|
+
}]
|
|
1539
|
+
}] });
|
|
1540
|
+
|
|
1541
|
+
class SkyDocsTypeDefinitionsProvider {
|
|
1542
|
+
}
|
|
1543
|
+
SkyDocsTypeDefinitionsProvider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsTypeDefinitionsProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1544
|
+
SkyDocsTypeDefinitionsProvider.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsTypeDefinitionsProvider });
|
|
1545
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsTypeDefinitionsProvider, decorators: [{
|
|
1546
|
+
type: Injectable
|
|
1547
|
+
}] });
|
|
1635
1548
|
|
|
1636
1549
|
/**
|
|
1637
|
-
*
|
|
1638
|
-
* This
|
|
1639
|
-
|
|
1640
|
-
|
|
1550
|
+
* Finds any type name that is NOT surrounded by alpha-numeric (and '>', '<', '.') characters.
|
|
1551
|
+
* (This is to avoid matching types that share similar words, such as `Foo` and `FooUser`.)
|
|
1552
|
+
* Notes:
|
|
1553
|
+
* - If the type name is surrounded by angle brackets, then it has already been processed as a link.
|
|
1554
|
+
* - If the type name starts with a period '.', then it is a sub property of an enumeration, etc. and should not be processed as a link.
|
|
1555
|
+
* - If the type name ends with a period followed immediately by any word character, then it is a method or property (Foo.bar).
|
|
1556
|
+
* Only the type name should be processed as a link.
|
|
1557
|
+
*/
|
|
1558
|
+
function createRegex(keyword) {
|
|
1559
|
+
return new RegExp(`(^|[^a-zA-Z0-9>.[/])(${keyword})(\\.\\w+)?(?=[^a-zA-Z0-9<]+|$)`, 'g');
|
|
1560
|
+
}
|
|
1561
|
+
class SkyDocsAnchorLinkService {
|
|
1562
|
+
constructor(typeDefinitionsProvider) {
|
|
1563
|
+
this.anchorIds = typeDefinitionsProvider.anchorIds;
|
|
1564
|
+
}
|
|
1565
|
+
/**
|
|
1566
|
+
* Formats known type names with `<code>` tags and wraps them with anchor tags, linking to the appropriate type.
|
|
1567
|
+
* If the content is already contained within a `<code>` tag, set `codeFormat = false` to prevent extra `<code>` tags from being added.
|
|
1568
|
+
*/
|
|
1569
|
+
applyTypeAnchorLinks(content, config) {
|
|
1570
|
+
if (!this.anchorIds || !content) {
|
|
1571
|
+
return content;
|
|
1572
|
+
}
|
|
1573
|
+
// Set default for code formatting.
|
|
1574
|
+
if (!config) {
|
|
1575
|
+
config = {
|
|
1576
|
+
applyCodeFormatting: true
|
|
1577
|
+
};
|
|
1578
|
+
}
|
|
1579
|
+
content = this.removeDoubleSquareBrackets(content);
|
|
1580
|
+
Object.keys(this.anchorIds).forEach((typeName) => {
|
|
1581
|
+
content = this.removeBackticks(typeName, content);
|
|
1582
|
+
let matches;
|
|
1583
|
+
let counter = 0;
|
|
1584
|
+
const max = 100;
|
|
1585
|
+
const regex = createRegex(typeName);
|
|
1586
|
+
do {
|
|
1587
|
+
matches = regex.exec(content);
|
|
1588
|
+
if (matches) {
|
|
1589
|
+
const anchorId = this.anchorIds[typeName];
|
|
1590
|
+
const anchorHtml = '<a class="sky-docs-anchor-link" href="#' + anchorId + '">' + typeName + '</a>';
|
|
1591
|
+
// Group 3 of the regex pattern captures type properties like Foo.bar.
|
|
1592
|
+
// If these are found, they do not need hyperlinked, but add them to the encapsulating code tag.
|
|
1593
|
+
const typeProperty = (matches[3] ? matches[3] : '');
|
|
1594
|
+
let replacement;
|
|
1595
|
+
if (config.applyCodeFormatting) {
|
|
1596
|
+
replacement = '<code>' + anchorHtml + typeProperty + '</code>';
|
|
1597
|
+
}
|
|
1598
|
+
else {
|
|
1599
|
+
replacement = anchorHtml + typeProperty;
|
|
1600
|
+
}
|
|
1601
|
+
// Regex Positive lookbehinds aren't supported in IE11 and Safari, so we have to check if the match has a starting extra character
|
|
1602
|
+
// (usually whitespace " Foo"), and then modify the starting/ending indexes to account for the extra character.
|
|
1603
|
+
const isMatchExact = matches[0].substr(0, typeName.length) === typeName;
|
|
1604
|
+
const startIndex = isMatchExact ? matches.index : matches.index + 1;
|
|
1605
|
+
const endIndex = isMatchExact ? matches[0].length : matches[0].length - 1;
|
|
1606
|
+
let contentWithCodeTags = content.substr(0, startIndex) + replacement + content.substr(startIndex + endIndex);
|
|
1607
|
+
content = contentWithCodeTags;
|
|
1608
|
+
counter++;
|
|
1609
|
+
}
|
|
1610
|
+
} while (matches !== null && counter < max);
|
|
1611
|
+
});
|
|
1612
|
+
return content;
|
|
1613
|
+
}
|
|
1614
|
+
/**
|
|
1615
|
+
* For backwards compatibility, we need to remove any double brackets wrapped around types.
|
|
1616
|
+
* e.g., `[[SampleType]]`
|
|
1617
|
+
*/
|
|
1618
|
+
removeDoubleSquareBrackets(content) {
|
|
1619
|
+
const match = content.match(/\[\[.*\]\]/);
|
|
1620
|
+
if (match) {
|
|
1621
|
+
const typeName = match[0].replace(/\[\[/g, '').replace(/\]\]/g, '');
|
|
1622
|
+
content = content.replace(match[0], typeName);
|
|
1623
|
+
}
|
|
1624
|
+
return content;
|
|
1625
|
+
}
|
|
1626
|
+
/**
|
|
1627
|
+
* Removes backtick characters around known types to prevent
|
|
1628
|
+
* the markdown pipe from wrapping them with code elements.
|
|
1629
|
+
*/
|
|
1630
|
+
removeBackticks(typeName, content) {
|
|
1631
|
+
const regexp = new RegExp(`\`(${typeName})\``, 'g');
|
|
1632
|
+
return content.replace(regexp, typeName);
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
SkyDocsAnchorLinkService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsAnchorLinkService, deps: [{ token: SkyDocsTypeDefinitionsProvider }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1636
|
+
SkyDocsAnchorLinkService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsAnchorLinkService, providedIn: 'any' });
|
|
1637
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsAnchorLinkService, decorators: [{
|
|
1638
|
+
type: Injectable,
|
|
1639
|
+
args: [{
|
|
1640
|
+
providedIn: 'any'
|
|
1641
|
+
}]
|
|
1642
|
+
}], ctorParameters: function () { return [{ type: SkyDocsTypeDefinitionsProvider }]; } });
|
|
1643
|
+
|
|
1644
|
+
/**
|
|
1645
|
+
* Adds same-page anchor tags around known TypeScript types.
|
|
1646
|
+
*/
|
|
1647
|
+
class SkyDocsTypeAnchorLinksPipe {
|
|
1648
|
+
constructor(anchorLinkService) {
|
|
1649
|
+
this.anchorLinkService = anchorLinkService;
|
|
1650
|
+
}
|
|
1651
|
+
transform(value, formatType) {
|
|
1652
|
+
const anchorLinkConfig = {
|
|
1653
|
+
applyCodeFormatting: (formatType !== 'no-code-tags')
|
|
1654
|
+
};
|
|
1655
|
+
return this.anchorLinkService.applyTypeAnchorLinks(value, anchorLinkConfig);
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1658
|
+
SkyDocsTypeAnchorLinksPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsTypeAnchorLinksPipe, deps: [{ token: SkyDocsAnchorLinkService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1659
|
+
SkyDocsTypeAnchorLinksPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsTypeAnchorLinksPipe, name: "skyDocsTypeAnchorLinks" });
|
|
1660
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsTypeAnchorLinksPipe, decorators: [{
|
|
1661
|
+
type: Pipe,
|
|
1662
|
+
args: [{
|
|
1663
|
+
name: 'skyDocsTypeAnchorLinks',
|
|
1664
|
+
pure: true
|
|
1665
|
+
}]
|
|
1666
|
+
}], ctorParameters: function () { return [{ type: SkyDocsAnchorLinkService }]; } });
|
|
1667
|
+
|
|
1668
|
+
/**
|
|
1669
|
+
* "Call signatures" include methods, functions, and inline arrow functions.
|
|
1670
|
+
* This component is used to document both the return type and parameters of a given call signature.
|
|
1671
|
+
*/
|
|
1672
|
+
class SkyDocsCallSignatureDefinitionComponent {
|
|
1641
1673
|
constructor(formatService) {
|
|
1642
1674
|
this.formatService = formatService;
|
|
1643
1675
|
}
|
|
@@ -1661,50 +1693,111 @@ let SkyDocsCallSignatureDefinitionComponent = class SkyDocsCallSignatureDefiniti
|
|
|
1661
1693
|
});
|
|
1662
1694
|
this.returnTypeFormatted = this.formatService.getFormattedType((_c = this.config) === null || _c === void 0 ? void 0 : _c.returnType);
|
|
1663
1695
|
}
|
|
1664
|
-
}
|
|
1665
|
-
SkyDocsCallSignatureDefinitionComponent
|
|
1666
|
-
{ type:
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
};
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1696
|
+
}
|
|
1697
|
+
SkyDocsCallSignatureDefinitionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsCallSignatureDefinitionComponent, deps: [{ token: SkyDocsTypeDefinitionsFormatService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1698
|
+
SkyDocsCallSignatureDefinitionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsCallSignatureDefinitionComponent, selector: "sky-docs-call-signature-definition", inputs: { config: "config" }, ngImport: i0, template: "<div *ngIf=\"config\"\n class=\"sky-docs-call-signature-definition\"\n>\n <ng-container *ngIf=\"parameters\">\n <h4\n class=\"sky-docs-call-signature-definition-heading\"\n >\n Parameters\n </h4>\n <table\n class=\"sky-docs-parameter-definitions\"\n >\n <tbody>\n <tr *ngFor=\"let parameter of parameters\">\n <th\n class=\"sky-docs-parameter-definition-header\"\n >\n <sky-code><span\n [innerHtml]=\"parameter.formattedName | skyDocsTypeAnchorLinks:'no-code-tags'\"\n ></span></sky-code>\n </th>\n <td\n class=\"sky-docs-parameter-definition-body\"\n >\n <div *ngIf=\"parameter.description\"\n class=\"sky-docs-parameter-definition-description\"\n >\n <sky-docs-safe-html *ngIf=\"parameter.description\"\n [innerHtml]=\"parameter.description | skyDocsTypeAnchorLinks | skyDocsMarkdown\"\n ></sky-docs-safe-html>\n </div>\n <div *ngIf=\"parameter.isOptional\"\n class=\"sky-docs-parameter-definition-label-optional\"\n >\n Optional.\n <ng-container *ngIf=\"parameter.defaultValue\">\n Default is\n <sky-code><span\n [innerHtml]=\"parameter.defaultValue | skyDocsTypeAnchorLinks:'no-code-tags'\"\n ></span></sky-code>.\n </ng-container>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n\n <ng-container *ngIf=\"returnTypeFormatted\">\n <h4\n class=\"sky-docs-call-signature-definition-heading\"\n >\n Returns\n </h4>\n\n <div\n class=\"sky-docs-call-signature-definition-return-type\"\n >\n <sky-code><span\n [innerHtml]=\"returnTypeFormatted | skyDocsTypeAnchorLinks:'no-code-tags'\"\n ></span></sky-code>\n </div>\n </ng-container>\n\n</div>\n", styles: [".sky-docs-call-signature-definition-heading{line-height:1.1;font-family:\"BLKB Sans\",\"Helvetica Neue\",Arial,sans-serif;color:#212327;font-weight:400;font-weight:600;font-size:15px;margin:0 0 10px}.sky-docs-parameter-definitions{width:auto;max-width:100%;border-spacing:0;border-collapse:collapse;background-color:#fff;margin-left:15px}.sky-docs-parameter-definitions th,.sky-docs-parameter-definitions td{padding:10px;border-bottom:1px dotted #cdcfd2;vertical-align:top;text-align:left}.sky-docs-parameter-definitions th ::ng-deep:first-child .sky-code,.sky-docs-parameter-definitions td ::ng-deep:first-child .sky-code{display:inline-block;white-space:normal}.sky-docs-parameter-definitions th ::ng-deep p,.sky-docs-parameter-definitions td ::ng-deep p{margin:10px 0}.sky-docs-parameter-definitions th ::ng-deep p:first-child,.sky-docs-parameter-definitions td ::ng-deep p:first-child{margin-top:0!important}.sky-docs-parameter-definitions th ::ng-deep p:last-child,.sky-docs-parameter-definitions td ::ng-deep p:last-child{margin-bottom:0!important}.sky-docs-parameter-definitions th{width:25%;padding-left:0}.sky-docs-parameter-definitions tr:first-child>th,.sky-docs-parameter-definitions tr:first-child>td{padding-top:0}.sky-docs-parameter-definitions tr:last-child>th,.sky-docs-parameter-definitions tr:last-child>td{border-bottom:0;padding-bottom:0}.sky-docs-parameter-definition-header{width:1%;white-space:nowrap;font-weight:normal}.sky-docs-parameter-definition-label-optional{color:#686c73}.sky-docs-call-signature-definition-return-type{margin-left:15px}\n"], components: [{ type: i3$1.λ1, selector: "sky-code" }, { type: SkyDocsSafeHtmlComponent, selector: "sky-docs-safe-html", inputs: ["innerHtml"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "skyDocsTypeAnchorLinks": SkyDocsTypeAnchorLinksPipe, "skyDocsMarkdown": SkyDocsMarkdownPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1699
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsCallSignatureDefinitionComponent, decorators: [{
|
|
1700
|
+
type: Component,
|
|
1701
|
+
args: [{
|
|
1702
|
+
selector: 'sky-docs-call-signature-definition',
|
|
1703
|
+
templateUrl: './call-signature-definition.component.html',
|
|
1704
|
+
styleUrls: ['./call-signature-definition.component.scss'],
|
|
1705
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1706
|
+
}]
|
|
1707
|
+
}], ctorParameters: function () { return [{ type: SkyDocsTypeDefinitionsFormatService }]; }, propDecorators: { config: [{
|
|
1708
|
+
type: Input
|
|
1709
|
+
}] } });
|
|
1710
|
+
|
|
1711
|
+
class SkyDocsPropertyDefinitionsComponent {
|
|
1712
|
+
constructor(changeDetector, formatService, mediaQueryService) {
|
|
1713
|
+
this.changeDetector = changeDetector;
|
|
1714
|
+
this.formatService = formatService;
|
|
1715
|
+
this.mediaQueryService = mediaQueryService;
|
|
1716
|
+
this.propertyType = 'Property';
|
|
1717
|
+
this.showOptionalStatus = true;
|
|
1718
|
+
this.deprecationWarningPrefix = `<span class="sky-text-warning"></span>**Deprecated.** `;
|
|
1719
|
+
this.isMobile = true;
|
|
1720
|
+
this.properties = [];
|
|
1721
|
+
}
|
|
1722
|
+
set config(value) {
|
|
1723
|
+
this._config = value;
|
|
1724
|
+
this.updateView();
|
|
1725
|
+
}
|
|
1726
|
+
get config() {
|
|
1727
|
+
return this._config || {};
|
|
1728
|
+
}
|
|
1729
|
+
ngOnInit() {
|
|
1730
|
+
this.mediaQueryService.subscribe((breakpoints) => {
|
|
1731
|
+
this.isMobile = (breakpoints <= SkyMediaBreakpoints.sm);
|
|
1732
|
+
this.changeDetector.markForCheck();
|
|
1733
|
+
});
|
|
1734
|
+
}
|
|
1735
|
+
updateView() {
|
|
1736
|
+
var _a, _b;
|
|
1737
|
+
this.properties = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.map(property => {
|
|
1738
|
+
var _a;
|
|
1739
|
+
const vm = {
|
|
1740
|
+
callSignature: (_a = property.type) === null || _a === void 0 ? void 0 : _a.callSignature,
|
|
1741
|
+
defaultValue: this.formatService.escapeSpecialCharacters(property.defaultValue || ''),
|
|
1742
|
+
deprecationWarning: property.deprecationWarning,
|
|
1743
|
+
description: property.description,
|
|
1744
|
+
formattedName: this.formatService.getFormattedPropertyName(property),
|
|
1745
|
+
isOptional: property.isOptional
|
|
1746
|
+
};
|
|
1747
|
+
return vm;
|
|
1748
|
+
});
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
SkyDocsPropertyDefinitionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsPropertyDefinitionsComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: SkyDocsTypeDefinitionsFormatService }, { token: i2$4.SkyMediaQueryService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1752
|
+
SkyDocsPropertyDefinitionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsPropertyDefinitionsComponent, selector: "sky-docs-property-definitions", inputs: { config: "config", propertyType: "propertyType", showOptionalStatus: "showOptionalStatus" }, ngImport: i0, template: "<div *ngIf=\"properties\"\n class=\"sky-docs-property-definitions\"\n>\n <table *ngIf=\"!isMobile else mobileTemplate\"\n class=\"sky-docs-table\"\n >\n <tr\n class=\"sky-docs-table-row\"\n >\n <th\n class=\"sky-docs-table-column-header sky-docs-table-column-header-name\"\n >\n {{ propertyType }}\n </th>\n <th\n class=\"sky-docs-table-column-header sky-docs-table-column-header-description\"\n >\n Description\n </th>\n </tr>\n <tr *ngFor=\"let property of properties\"\n class=\"sky-docs-table-row\"\n >\n <td\n class=\"sky-docs-table-cell sky-docs-property-definitions-table-cell-name\"\n >\n <ng-template\n [ngTemplateOutlet]=\"nameTemplate\"\n [ngTemplateOutletContext]=\"{$implicit: property}\"\n ></ng-template>\n </td>\n <td\n class=\"sky-docs-table-cell sky-docs-property-definitions-table-cell-description\"\n >\n <ng-template\n [ngTemplateOutlet]=\"descriptionTemplate\"\n [ngTemplateOutletContext]=\"{$implicit: property}\"\n ></ng-template>\n </td>\n </tr>\n </table>\n\n <ng-template #mobileTemplate>\n <dl\n class=\"sky-docs-property-definition-list\"\n >\n <div *ngFor=\"let property of properties\"\n class=\"sky-docs-property-definition-list-item\"\n >\n <dt\n class=\"sky-field-label\"\n >{{ propertyType }}</dt>\n <dd\n class=\"sky-docs-property-definitions-dd-name\"\n >\n <ng-template\n [ngTemplateOutlet]=\"nameTemplate\"\n [ngTemplateOutletContext]=\"{$implicit: property}\"\n ></ng-template>\n </dd>\n <dt\n class=\"sky-field-label\"\n >Description</dt>\n <dd\n class=\"sky-docs-property-definitions-dd-description\"\n >\n <ng-template\n [ngTemplateOutlet]=\"descriptionTemplate\"\n [ngTemplateOutletContext]=\"{$implicit: property}\"\n ></ng-template>\n </dd>\n </div>\n </dl>\n </ng-template>\n</div>\n\n<ng-template let-property #nameTemplate>\n <sky-code><span\n [innerHtml]=\"property.formattedName | skyDocsTypeAnchorLinks:'no-code-tags'\"\n ></span></sky-code>\n</ng-template>\n\n<ng-template let-property #descriptionTemplate>\n <div *ngIf=\"!property.isOptional && showOptionalStatus\"\n class=\"sky-docs-property-definition-label sky-text-danger\"\n >Required.</div>\n\n <sky-docs-safe-html *ngIf=\"property.deprecationWarning !== undefined\"\n class=\"sky-docs-property-definitions-deprecation-warning\"\n [innerHtml]=\"deprecationWarningPrefix + property.deprecationWarning | skyDocsTypeAnchorLinks | skyDocsMarkdown\"\n ></sky-docs-safe-html>\n\n <sky-docs-safe-html *ngIf=\"property.description\"\n class=\"sky-docs-property-definitions-description\"\n [innerHtml]=\"property.description | skyDocsTypeAnchorLinks | skyDocsMarkdown\"\n ></sky-docs-safe-html>\n\n <div *ngIf=\"property.isOptional && showOptionalStatus\"\n class=\"sky-docs-property-definition-label sky-docs-property-definition-label-optional\"\n >\n Optional. <ng-container *ngIf=\"property.defaultValue\">Default is <sky-code><span\n [innerHtml]=\"property.defaultValue | skyDocsTypeAnchorLinks:'no-code-tags'\"\n ></span></sky-code>.</ng-container>\n </div>\n\n <sky-docs-call-signature-definition *ngIf=\"property.callSignature\"\n [config]=\"property.callSignature\"\n ></sky-docs-call-signature-definition>\n</ng-template>\n", styles: [":host{margin:15px 0}.sky-docs-property-definitions{width:100%;max-width:100%;overflow:auto}.sky-docs-table-column-header-name{width:25%}.sky-docs-property-definition-label-optional{color:#686c73;margin-bottom:10px}.sky-docs-property-definition-list{margin:0}.sky-docs-property-definition-list-item{border-bottom:1px dotted #cdcfd2;margin:10px 0}.sky-docs-property-definition-list-item .sky-field-label{margin:10px 0}\n"], components: [{ type: i3$1.λ1, selector: "sky-code" }, { type: SkyDocsSafeHtmlComponent, selector: "sky-docs-safe-html", inputs: ["innerHtml"] }, { type: SkyDocsCallSignatureDefinitionComponent, selector: "sky-docs-call-signature-definition", inputs: ["config"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "skyDocsTypeAnchorLinks": SkyDocsTypeAnchorLinksPipe, "skyDocsMarkdown": SkyDocsMarkdownPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1753
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsPropertyDefinitionsComponent, decorators: [{
|
|
1754
|
+
type: Component,
|
|
1755
|
+
args: [{
|
|
1756
|
+
selector: 'sky-docs-property-definitions',
|
|
1757
|
+
templateUrl: './property-definitions.component.html',
|
|
1758
|
+
styleUrls: ['./property-definitions.component.scss'],
|
|
1759
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1760
|
+
}]
|
|
1761
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: SkyDocsTypeDefinitionsFormatService }, { type: i2$4.SkyMediaQueryService }]; }, propDecorators: { config: [{
|
|
1762
|
+
type: Input
|
|
1763
|
+
}], propertyType: [{
|
|
1764
|
+
type: Input
|
|
1765
|
+
}], showOptionalStatus: [{
|
|
1766
|
+
type: Input
|
|
1767
|
+
}] } });
|
|
1768
|
+
|
|
1769
|
+
class SkyDocsDirectiveDefinitionComponent {
|
|
1770
|
+
}
|
|
1771
|
+
SkyDocsDirectiveDefinitionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDirectiveDefinitionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1772
|
+
SkyDocsDirectiveDefinitionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsDirectiveDefinitionComponent, selector: "sky-docs-directive-definition", inputs: { config: "config" }, ngImport: i0, template: "<div *ngIf=\"config\"\n class=\"sky-docs-directive-definition sky-docs-type-definition-wrapper\"\n>\n <sky-docs-heading-anchor\n headingLevel=\"3\"\n [anchorId]=\"config.anchorId\"\n >\n {{ config.name }}\n </sky-docs-heading-anchor>\n\n <sky-docs-safe-html *ngIf=\"config.description\"\n class=\"sky-docs-directive-definition-description\"\n [innerHtml]=\"config.description | skyDocsTypeAnchorLinks | skyDocsMarkdown\"\n ></sky-docs-safe-html>\n\n <h4\n class=\"sky-docs-directive-definition-h4\"\n >\n Selector\n </h4>\n\n <p\n class=\"sky-docs-directive-selector\"\n >\n <sky-code>{{ config.selector }}</sky-code>\n </p>\n\n <ng-container *ngIf=\"config.codeExample\">\n <h4\n class=\"sky-docs-directive-definition-h4\"\n >\n Example\n </h4>\n <sky-code-block\n class=\"sky-docs-code-block\"\n [code]=\"config.codeExample\"\n [hideHeader]=\"true\"\n [languageType]=\"config.codeExampleLanguage\"\n >\n </sky-code-block>\n </ng-container>\n\n <sky-docs-property-definitions *ngIf=\"config.inputProperties?.length\"\n propertyType=\"Input\"\n [config]=\"{\n properties: config.inputProperties\n }\"\n ></sky-docs-property-definitions>\n\n <sky-docs-property-definitions *ngIf=\"config.eventProperties?.length\"\n propertyType=\"Event\"\n [config]=\"{\n properties: config.eventProperties\n }\"\n ></sky-docs-property-definitions>\n</div>\n", styles: [".sky-docs-directive-definition-h4{line-height:1.1;font-family:\"BLKB Sans\",\"Helvetica Neue\",Arial,sans-serif;color:#212327;font-weight:400;font-weight:600;font-size:15px;margin:0 0 10px}.sky-docs-directive-selector{margin-left:15px!important;margin-top:10px!important}\n"], components: [{ type: SkyDocsHeadingAnchorComponent, selector: "sky-docs-heading-anchor", inputs: ["anchorId", "headingLevel"] }, { type: SkyDocsSafeHtmlComponent, selector: "sky-docs-safe-html", inputs: ["innerHtml"] }, { type: i3$1.λ1, selector: "sky-code" }, { type: i3$1.λ2, selector: "sky-code-block", inputs: ["code", "fileName", "languageType", "hideCopyToClipboard", "hideHeader"] }, { type: SkyDocsPropertyDefinitionsComponent, selector: "sky-docs-property-definitions", inputs: ["config", "propertyType", "showOptionalStatus"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "skyDocsMarkdown": SkyDocsMarkdownPipe, "skyDocsTypeAnchorLinks": SkyDocsTypeAnchorLinksPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1773
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDirectiveDefinitionComponent, decorators: [{
|
|
1774
|
+
type: Component,
|
|
1775
|
+
args: [{
|
|
1776
|
+
selector: 'sky-docs-directive-definition',
|
|
1777
|
+
templateUrl: './directive-definition.component.html',
|
|
1778
|
+
styleUrls: ['./directive-definition.component.scss'],
|
|
1779
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1780
|
+
}]
|
|
1781
|
+
}], propDecorators: { config: [{
|
|
1782
|
+
type: Input
|
|
1783
|
+
}] } });
|
|
1784
|
+
|
|
1785
|
+
class SkyDocsEnumerationDefinitionComponent {
|
|
1786
|
+
}
|
|
1787
|
+
SkyDocsEnumerationDefinitionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsEnumerationDefinitionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1788
|
+
SkyDocsEnumerationDefinitionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsEnumerationDefinitionComponent, selector: "sky-docs-enumeration-definition", inputs: { config: "config" }, ngImport: i0, template: "<div *ngIf=\"config\"\n class=\"sky-docs-enumeration-definition sky-docs-type-definition-wrapper\"\n>\n <sky-docs-heading-anchor\n headingLevel=\"3\"\n [anchorId]=\"config.anchorId\"\n >\n {{ config.name }}\n </sky-docs-heading-anchor>\n\n <sky-docs-safe-html *ngIf=\"config.description\"\n class=\"sky-docs-enumeration-definition-description\"\n [innerHtml]=\"config.description | skyDocsTypeAnchorLinks | skyDocsMarkdown\"\n ></sky-docs-safe-html>\n\n <sky-docs-property-definitions *ngIf=\"config.members\"\n propertyType=\"Member\"\n [config]=\"{ properties: config.members }\"\n [showOptionalStatus]=\"false\"\n ></sky-docs-property-definitions>\n</div>", components: [{ type: SkyDocsHeadingAnchorComponent, selector: "sky-docs-heading-anchor", inputs: ["anchorId", "headingLevel"] }, { type: SkyDocsSafeHtmlComponent, selector: "sky-docs-safe-html", inputs: ["innerHtml"] }, { type: SkyDocsPropertyDefinitionsComponent, selector: "sky-docs-property-definitions", inputs: ["config", "propertyType", "showOptionalStatus"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "skyDocsMarkdown": SkyDocsMarkdownPipe, "skyDocsTypeAnchorLinks": SkyDocsTypeAnchorLinksPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsEnumerationDefinitionComponent, decorators: [{
|
|
1790
|
+
type: Component,
|
|
1791
|
+
args: [{
|
|
1792
|
+
selector: 'sky-docs-enumeration-definition',
|
|
1793
|
+
templateUrl: './enumeration-definition.component.html',
|
|
1794
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1795
|
+
}]
|
|
1796
|
+
}], propDecorators: { config: [{
|
|
1797
|
+
type: Input
|
|
1798
|
+
}] } });
|
|
1799
|
+
|
|
1800
|
+
class SkyDocsInterfaceDefinitionComponent {
|
|
1708
1801
|
constructor(formatService) {
|
|
1709
1802
|
this.formatService = formatService;
|
|
1710
1803
|
}
|
|
@@ -1718,22 +1811,21 @@ let SkyDocsInterfaceDefinitionComponent = class SkyDocsInterfaceDefinitionCompon
|
|
|
1718
1811
|
updateView() {
|
|
1719
1812
|
this.sourceCode = (this.config) ? this.formatService.getInterfaceSourceCode(this.config) : undefined;
|
|
1720
1813
|
}
|
|
1721
|
-
}
|
|
1722
|
-
SkyDocsInterfaceDefinitionComponent
|
|
1723
|
-
{ type:
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
let SkyDocsMethodDefinitionsComponent = class SkyDocsMethodDefinitionsComponent {
|
|
1814
|
+
}
|
|
1815
|
+
SkyDocsInterfaceDefinitionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsInterfaceDefinitionComponent, deps: [{ token: SkyDocsTypeDefinitionsFormatService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1816
|
+
SkyDocsInterfaceDefinitionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsInterfaceDefinitionComponent, selector: "sky-docs-interface-definition", inputs: { config: "config" }, ngImport: i0, template: "<div *ngIf=\"config\"\n class=\"sky-docs-interface-definition sky-docs-type-definition-wrapper\"\n>\n <sky-docs-heading-anchor\n headingLevel=\"3\"\n [anchorId]=\"config.anchorId\"\n >\n {{ config.name }}\n </sky-docs-heading-anchor>\n\n <sky-docs-safe-html *ngIf=\"config.description\"\n class=\"sky-docs-interface-definition-description\"\n [innerHtml]=\"config.description | skyDocsTypeAnchorLinks | skyDocsMarkdown\"\n ></sky-docs-safe-html>\n\n <sky-code-block *ngIf=\"sourceCode\"\n class=\"sky-docs-code-block\"\n languageType=\"typescript\"\n [code]=\"sourceCode\"\n [hideHeader]=\"true\"\n ></sky-code-block>\n\n <sky-docs-property-definitions *ngIf=\"config.properties\"\n [config]=\"{ properties: config.properties }\"\n [showOptionalStatus]=\"false\"\n ></sky-docs-property-definitions>\n</div>\n", components: [{ type: SkyDocsHeadingAnchorComponent, selector: "sky-docs-heading-anchor", inputs: ["anchorId", "headingLevel"] }, { type: SkyDocsSafeHtmlComponent, selector: "sky-docs-safe-html", inputs: ["innerHtml"] }, { type: i3$1.λ2, selector: "sky-code-block", inputs: ["code", "fileName", "languageType", "hideCopyToClipboard", "hideHeader"] }, { type: SkyDocsPropertyDefinitionsComponent, selector: "sky-docs-property-definitions", inputs: ["config", "propertyType", "showOptionalStatus"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "skyDocsMarkdown": SkyDocsMarkdownPipe, "skyDocsTypeAnchorLinks": SkyDocsTypeAnchorLinksPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1817
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsInterfaceDefinitionComponent, decorators: [{
|
|
1818
|
+
type: Component,
|
|
1819
|
+
args: [{
|
|
1820
|
+
selector: 'sky-docs-interface-definition',
|
|
1821
|
+
templateUrl: './interface-definition.component.html',
|
|
1822
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1823
|
+
}]
|
|
1824
|
+
}], ctorParameters: function () { return [{ type: SkyDocsTypeDefinitionsFormatService }]; }, propDecorators: { config: [{
|
|
1825
|
+
type: Input
|
|
1826
|
+
}] } });
|
|
1827
|
+
|
|
1828
|
+
class SkyDocsMethodDefinitionsComponent {
|
|
1737
1829
|
constructor(changeDetector, formatService, mediaQueryService) {
|
|
1738
1830
|
this.changeDetector = changeDetector;
|
|
1739
1831
|
this.formatService = formatService;
|
|
@@ -1769,149 +1861,363 @@ let SkyDocsMethodDefinitionsComponent = class SkyDocsMethodDefinitionsComponent
|
|
|
1769
1861
|
return vm;
|
|
1770
1862
|
});
|
|
1771
1863
|
}
|
|
1772
|
-
}
|
|
1773
|
-
SkyDocsMethodDefinitionsComponent
|
|
1774
|
-
{ type:
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1864
|
+
}
|
|
1865
|
+
SkyDocsMethodDefinitionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsMethodDefinitionsComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: SkyDocsTypeDefinitionsFormatService }, { token: i2$4.SkyMediaQueryService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1866
|
+
SkyDocsMethodDefinitionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsMethodDefinitionsComponent, selector: "sky-docs-method-definitions", inputs: { config: "config" }, ngImport: i0, template: "<div *ngIf=\"methods\"\n class=\"sky-docs-method-definitions\"\n>\n <table *ngIf=\"!isMobile else mobileTemplate\"\n class=\"sky-docs-table\"\n >\n <tr\n class=\"sky-docs-table-row\"\n >\n <th\n class=\"sky-docs-table-column-header sky-docs-table-column-header-name\"\n >\n Methods\n </th>\n <th\n class=\"sky-docs-table-column-header sky-docs-table-column-header-description\"\n >\n Description\n </th>\n </tr>\n <tr *ngFor=\"let method of methods\"\n class=\"sky-docs-table-row\"\n >\n <td\n class=\"sky-docs-table-cell sky-docs-method-definitions-table-cell-name\"\n >\n <ng-template\n [ngTemplateOutlet]=\"nameTemplate\"\n [ngTemplateOutletContext]=\"{$implicit: method}\"\n ></ng-template>\n </td>\n <td\n class=\"sky-docs-table-cell sky-docs-method-definitions-table-cell-description\"\n >\n <ng-template\n [ngTemplateOutlet]=\"descriptionTemplate\"\n [ngTemplateOutletContext]=\"{$implicit: method}\"\n ></ng-template>\n </td>\n </tr>\n </table>\n\n <ng-template #mobileTemplate>\n <dl\n class=\"sky-docs-method-definition-list\"\n >\n <div *ngFor=\"let method of methods\"\n class=\"sky-docs-method-definition-list-item\"\n >\n <dt\n class=\"sky-field-label\"\n >\n Methods\n </dt>\n <dd\n class=\"sky-docs-method-definitions-dd-name\"\n >\n <ng-template\n [ngTemplateOutlet]=\"nameTemplate\"\n [ngTemplateOutletContext]=\"{$implicit: method}\"\n ></ng-template>\n </dd>\n <dt\n class=\"sky-field-label\"\n >Description</dt>\n <dd\n class=\"sky-docs-method-definitions-dd-description\"\n >\n <ng-template\n [ngTemplateOutlet]=\"descriptionTemplate\"\n [ngTemplateOutletContext]=\"{$implicit: method}\"\n ></ng-template>\n </dd>\n </div>\n </dl>\n </ng-template>\n</div>\n\n<ng-template let-method #nameTemplate>\n <sky-code><span\n [innerHtml]=\"method.formattedName | skyDocsTypeAnchorLinks:'no-code-tags'\"\n ></span></sky-code>\n</ng-template>\n\n<ng-template let-method #descriptionTemplate>\n\n <sky-docs-safe-html *ngIf=\"method.deprecationWarning !== undefined\"\n class=\"sky-docs-method-definition-deprecation-warning\"\n [innerHtml]=\"deprecationWarningPrefix + method.deprecationWarning | skyDocsTypeAnchorLinks | skyDocsMarkdown\"\n ></sky-docs-safe-html>\n\n <sky-docs-safe-html *ngIf=\"method.description\"\n class=\"sky-docs-method-definition-description\"\n [innerHtml]=\"method.description | skyDocsTypeAnchorLinks | skyDocsMarkdown\"\n ></sky-docs-safe-html>\n\n <sky-code-block *ngIf=\"method.sourceCode\"\n class=\"sky-docs-code-block\"\n languageType=\"typescript\"\n [code]=\"method.sourceCode\"\n [hideHeader]=\"true\"\n ></sky-code-block>\n\n <sky-docs-call-signature-definition *ngIf=\"method.callSignature\"\n [config]=\"method.callSignature\"\n ></sky-docs-call-signature-definition>\n\n <ng-container *ngIf=\"method.codeExample\">\n <h4 class=\"sky-docs-method-definition-heading\">\n Example\n </h4>\n <sky-code-block *ngIf=\"method.codeExample\"\n class=\"sky-docs-code-block\"\n languageType=\"method.codeExampleLanguage\"\n [code]=\"method.codeExample\"\n [hideHeader]=\"true\"\n ></sky-code-block>\n </ng-container>\n</ng-template>\n", styles: [":host{margin:15px 0}.sky-docs-method-definitions{width:100%;max-width:100%;overflow:auto}.sky-docs-table-column-header-name{width:25%}.sky-docs-method-definition-label-optional{color:#686c73}.sky-docs-method-definition-list{margin:0}.sky-docs-method-definition-list-item{border-bottom:1px dotted #cdcfd2;margin:10px 0}.sky-docs-method-definition-list-item .sky-field-label{margin:10px 0}\n"], components: [{ type: i3$1.λ1, selector: "sky-code" }, { type: SkyDocsSafeHtmlComponent, selector: "sky-docs-safe-html", inputs: ["innerHtml"] }, { type: i3$1.λ2, selector: "sky-code-block", inputs: ["code", "fileName", "languageType", "hideCopyToClipboard", "hideHeader"] }, { type: SkyDocsCallSignatureDefinitionComponent, selector: "sky-docs-call-signature-definition", inputs: ["config"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "skyDocsTypeAnchorLinks": SkyDocsTypeAnchorLinksPipe, "skyDocsMarkdown": SkyDocsMarkdownPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1867
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsMethodDefinitionsComponent, decorators: [{
|
|
1868
|
+
type: Component,
|
|
1869
|
+
args: [{
|
|
1870
|
+
selector: 'sky-docs-method-definitions',
|
|
1871
|
+
templateUrl: './method-definitions.component.html',
|
|
1872
|
+
styleUrls: ['./method-definitions.component.scss'],
|
|
1873
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1874
|
+
}]
|
|
1875
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: SkyDocsTypeDefinitionsFormatService }, { type: i2$4.SkyMediaQueryService }]; }, propDecorators: { config: [{
|
|
1876
|
+
type: Input
|
|
1877
|
+
}] } });
|
|
1878
|
+
|
|
1879
|
+
class SkyDocsPipeDefinitionComponent {
|
|
1880
|
+
}
|
|
1881
|
+
SkyDocsPipeDefinitionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsPipeDefinitionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1882
|
+
SkyDocsPipeDefinitionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsPipeDefinitionComponent, selector: "sky-docs-pipe-definition", inputs: { config: "config" }, ngImport: i0, template: "<div *ngIf=\"config\"\n class=\"sky-docs-pipe-definition sky-docs-type-definition-wrapper\"\n>\n <sky-docs-heading-anchor\n headingLevel=\"3\"\n [anchorId]=\"config.anchorId\"\n >\n {{ config.name }}\n </sky-docs-heading-anchor>\n\n <sky-docs-safe-html *ngIf=\"config.description\"\n [innerHtml]=\"config.description | skyDocsTypeAnchorLinks | skyDocsMarkdown\"\n ></sky-docs-safe-html>\n\n <ng-container *ngIf=\"config.codeExample\">\n <h4\n class=\"sky-docs-pipe-definition-heading\"\n >\n Example\n </h4>\n <sky-code-block\n class=\"sky-docs-code-block\"\n [code]=\"config.codeExample\"\n [hideHeader]=\"true\"\n [languageType]=\"config.codeExampleLanguage\"\n ></sky-code-block>\n </ng-container>\n\n <sky-docs-method-definitions\n [config]=\"{\n methods: [config.transformMethod]\n }\"\n ></sky-docs-method-definitions>\n</div>\n", styles: [".sky-docs-pipe-definition-heading{line-height:1.1;font-family:\"BLKB Sans\",\"Helvetica Neue\",Arial,sans-serif;color:#212327;font-weight:400;font-weight:600;font-size:15px;margin:0 0 10px}\n"], components: [{ type: SkyDocsHeadingAnchorComponent, selector: "sky-docs-heading-anchor", inputs: ["anchorId", "headingLevel"] }, { type: SkyDocsSafeHtmlComponent, selector: "sky-docs-safe-html", inputs: ["innerHtml"] }, { type: i3$1.λ2, selector: "sky-code-block", inputs: ["code", "fileName", "languageType", "hideCopyToClipboard", "hideHeader"] }, { type: SkyDocsMethodDefinitionsComponent, selector: "sky-docs-method-definitions", inputs: ["config"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "skyDocsMarkdown": SkyDocsMarkdownPipe, "skyDocsTypeAnchorLinks": SkyDocsTypeAnchorLinksPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1883
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsPipeDefinitionComponent, decorators: [{
|
|
1884
|
+
type: Component,
|
|
1885
|
+
args: [{
|
|
1886
|
+
selector: 'sky-docs-pipe-definition',
|
|
1887
|
+
templateUrl: './pipe-definition.component.html',
|
|
1888
|
+
styleUrls: ['./pipe-definition.component.scss'],
|
|
1889
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1890
|
+
}]
|
|
1891
|
+
}], propDecorators: { config: [{
|
|
1892
|
+
type: Input
|
|
1893
|
+
}] } });
|
|
1894
|
+
|
|
1895
|
+
class SkyDocsClassDefinitionComponent {
|
|
1896
|
+
}
|
|
1897
|
+
SkyDocsClassDefinitionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsClassDefinitionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1898
|
+
SkyDocsClassDefinitionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsClassDefinitionComponent, selector: "sky-docs-class-definition", inputs: { config: "config" }, ngImport: i0, template: "<div *ngIf=\"config\"\n class=\"sky-docs-class-definition sky-docs-type-definition-wrapper\"\n>\n <sky-docs-heading-anchor\n headingLevel=\"3\"\n [anchorId]=\"config.anchorId\"\n >\n {{ config.name }}\n </sky-docs-heading-anchor>\n\n <sky-docs-safe-html *ngIf=\"config.description\"\n class=\"sky-docs-class-definition-description\"\n [innerHtml]=\"config.description | skyDocsTypeAnchorLinks | skyDocsMarkdown\"\n ></sky-docs-safe-html>\n\n <ng-container *ngIf=\"config.properties?.length\">\n <sky-docs-property-definitions\n [config]=\"{ properties: config.properties }\"\n ></sky-docs-property-definitions>\n </ng-container>\n\n <ng-container *ngIf=\"config.methods?.length\">\n <sky-docs-method-definitions\n [config]=\"{ methods: config.methods }\"\n ></sky-docs-method-definitions>\n </ng-container>\n</div>\n", styles: [".sky-docs-class-definition-heading{line-height:1.1;font-family:\"BLKB Sans\",\"Helvetica Neue\",Arial,sans-serif;color:#212327;font-weight:400;font-weight:600;font-size:15px;margin:0 0 10px}.sky-docs-class-definition-return-type{margin-left:15px}\n"], components: [{ type: SkyDocsHeadingAnchorComponent, selector: "sky-docs-heading-anchor", inputs: ["anchorId", "headingLevel"] }, { type: SkyDocsSafeHtmlComponent, selector: "sky-docs-safe-html", inputs: ["innerHtml"] }, { type: SkyDocsPropertyDefinitionsComponent, selector: "sky-docs-property-definitions", inputs: ["config", "propertyType", "showOptionalStatus"] }, { type: SkyDocsMethodDefinitionsComponent, selector: "sky-docs-method-definitions", inputs: ["config"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "skyDocsMarkdown": SkyDocsMarkdownPipe, "skyDocsTypeAnchorLinks": SkyDocsTypeAnchorLinksPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1899
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsClassDefinitionComponent, decorators: [{
|
|
1900
|
+
type: Component,
|
|
1901
|
+
args: [{
|
|
1902
|
+
selector: 'sky-docs-class-definition',
|
|
1903
|
+
templateUrl: './class-definition.component.html',
|
|
1904
|
+
styleUrls: ['./class-definition.component.scss'],
|
|
1905
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1906
|
+
}]
|
|
1907
|
+
}], propDecorators: { config: [{
|
|
1908
|
+
type: Input
|
|
1909
|
+
}] } });
|
|
1910
|
+
|
|
1911
|
+
class SkyDocsTypeAliasDefinitionComponent {
|
|
1912
|
+
constructor(formatService) {
|
|
1807
1913
|
this.formatService = formatService;
|
|
1808
|
-
this.mediaQueryService = mediaQueryService;
|
|
1809
|
-
this.propertyType = 'Property';
|
|
1810
|
-
this.showOptionalStatus = true;
|
|
1811
|
-
this.deprecationWarningPrefix = `<span class="sky-text-warning"></span>**Deprecated.** `;
|
|
1812
|
-
this.isMobile = true;
|
|
1813
|
-
this.properties = [];
|
|
1814
1914
|
}
|
|
1815
1915
|
set config(value) {
|
|
1816
1916
|
this._config = value;
|
|
1817
1917
|
this.updateView();
|
|
1818
1918
|
}
|
|
1819
1919
|
get config() {
|
|
1820
|
-
return this._config
|
|
1821
|
-
}
|
|
1822
|
-
ngOnInit() {
|
|
1823
|
-
this.mediaQueryService.subscribe((breakpoints) => {
|
|
1824
|
-
this.isMobile = (breakpoints <= SkyMediaBreakpoints.sm);
|
|
1825
|
-
this.changeDetector.markForCheck();
|
|
1826
|
-
});
|
|
1920
|
+
return this._config;
|
|
1827
1921
|
}
|
|
1828
1922
|
updateView() {
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1923
|
+
this.sourceCode = (this.config) ? this.formatService.getTypeAliasSourceCode(this.config) : undefined;
|
|
1924
|
+
}
|
|
1925
|
+
}
|
|
1926
|
+
SkyDocsTypeAliasDefinitionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsTypeAliasDefinitionComponent, deps: [{ token: SkyDocsTypeDefinitionsFormatService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1927
|
+
SkyDocsTypeAliasDefinitionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsTypeAliasDefinitionComponent, selector: "sky-docs-type-alias-definition", inputs: { config: "config" }, ngImport: i0, template: "<div *ngIf=\"config\"\n class=\"sky-docs-type-alias-definition sky-docs-type-definition-wrapper\"\n>\n <sky-docs-heading-anchor\n headingLevel=\"3\"\n [anchorId]=\"config.anchorId\"\n >\n {{ config.name }}\n </sky-docs-heading-anchor>\n\n <sky-docs-safe-html *ngIf=\"config.description\"\n class=\"sky-docs-type-alias-definition-description\"\n [innerHtml]=\"config.description | skyDocsTypeAnchorLinks | skyDocsMarkdown\"\n ></sky-docs-safe-html>\n\n <sky-code-block *ngIf=\"sourceCode\"\n class=\"sky-docs-code-block\"\n languageType=\"typescript\"\n [code]=\"sourceCode\"\n [hideHeader]=\"true\"\n ></sky-code-block>\n\n <sky-docs-call-signature-definition *ngIf=\"config.type.callSignature\"\n [config]=\"config.type.callSignature\"\n ></sky-docs-call-signature-definition>\n</div>\n", styles: [".sky-docs-type-alias-definition-heading{line-height:1.1;font-family:\"BLKB Sans\",\"Helvetica Neue\",Arial,sans-serif;color:#212327;font-weight:400;font-weight:600;font-size:15px;margin:0 0 10px}.sky-docs-type-alias-definition-return-type{margin-left:15px}\n"], components: [{ type: SkyDocsHeadingAnchorComponent, selector: "sky-docs-heading-anchor", inputs: ["anchorId", "headingLevel"] }, { type: SkyDocsSafeHtmlComponent, selector: "sky-docs-safe-html", inputs: ["innerHtml"] }, { type: i3$1.λ2, selector: "sky-code-block", inputs: ["code", "fileName", "languageType", "hideCopyToClipboard", "hideHeader"] }, { type: SkyDocsCallSignatureDefinitionComponent, selector: "sky-docs-call-signature-definition", inputs: ["config"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "skyDocsMarkdown": SkyDocsMarkdownPipe, "skyDocsTypeAnchorLinks": SkyDocsTypeAnchorLinksPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1928
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsTypeAliasDefinitionComponent, decorators: [{
|
|
1929
|
+
type: Component,
|
|
1930
|
+
args: [{
|
|
1931
|
+
selector: 'sky-docs-type-alias-definition',
|
|
1932
|
+
templateUrl: './type-alias-definition.component.html',
|
|
1933
|
+
styleUrls: ['./type-alias-definition.component.scss'],
|
|
1934
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1935
|
+
}]
|
|
1936
|
+
}], ctorParameters: function () { return [{ type: SkyDocsTypeDefinitionsFormatService }]; }, propDecorators: { config: [{
|
|
1937
|
+
type: Input
|
|
1938
|
+
}] } });
|
|
1939
|
+
|
|
1940
|
+
class SkyDocsTypeDefinitionsModule {
|
|
1941
|
+
}
|
|
1942
|
+
SkyDocsTypeDefinitionsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsTypeDefinitionsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1943
|
+
SkyDocsTypeDefinitionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsTypeDefinitionsModule, declarations: [SkyDocsCallSignatureDefinitionComponent,
|
|
1944
|
+
SkyDocsClassDefinitionComponent,
|
|
1945
|
+
SkyDocsDirectiveDefinitionComponent,
|
|
1946
|
+
SkyDocsEnumerationDefinitionComponent,
|
|
1947
|
+
SkyDocsInterfaceDefinitionComponent,
|
|
1948
|
+
SkyDocsMethodDefinitionsComponent,
|
|
1949
|
+
SkyDocsPipeDefinitionComponent,
|
|
1950
|
+
SkyDocsPropertyDefinitionsComponent,
|
|
1951
|
+
SkyDocsTypeAliasDefinitionComponent,
|
|
1952
|
+
SkyDocsTypeAnchorLinksPipe], imports: [CommonModule,
|
|
1953
|
+
RouterModule,
|
|
1954
|
+
SkyCodeBlockModule,
|
|
1955
|
+
SkyCodeModule,
|
|
1956
|
+
SkyDefinitionListModule,
|
|
1957
|
+
SkyDocsHeadingAnchorModule,
|
|
1958
|
+
SkyDocsMarkdownModule,
|
|
1959
|
+
SkyDocsSafeHtmlModule,
|
|
1960
|
+
SkyIconModule], exports: [SkyDocsCallSignatureDefinitionComponent,
|
|
1961
|
+
SkyDocsClassDefinitionComponent,
|
|
1962
|
+
SkyDocsDirectiveDefinitionComponent,
|
|
1963
|
+
SkyDocsEnumerationDefinitionComponent,
|
|
1964
|
+
SkyDocsInterfaceDefinitionComponent,
|
|
1965
|
+
SkyDocsMethodDefinitionsComponent,
|
|
1966
|
+
SkyDocsPipeDefinitionComponent,
|
|
1967
|
+
SkyDocsPropertyDefinitionsComponent,
|
|
1968
|
+
SkyDocsTypeAliasDefinitionComponent,
|
|
1969
|
+
SkyDocsTypeAnchorLinksPipe] });
|
|
1970
|
+
SkyDocsTypeDefinitionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsTypeDefinitionsModule, imports: [[
|
|
1971
|
+
CommonModule,
|
|
1972
|
+
RouterModule,
|
|
1973
|
+
SkyCodeBlockModule,
|
|
1974
|
+
SkyCodeModule,
|
|
1975
|
+
SkyDefinitionListModule,
|
|
1976
|
+
SkyDocsHeadingAnchorModule,
|
|
1977
|
+
SkyDocsMarkdownModule,
|
|
1978
|
+
SkyDocsSafeHtmlModule,
|
|
1979
|
+
SkyIconModule
|
|
1980
|
+
]] });
|
|
1981
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsTypeDefinitionsModule, decorators: [{
|
|
1982
|
+
type: NgModule,
|
|
1983
|
+
args: [{
|
|
1984
|
+
imports: [
|
|
1985
|
+
CommonModule,
|
|
1986
|
+
RouterModule,
|
|
1987
|
+
SkyCodeBlockModule,
|
|
1988
|
+
SkyCodeModule,
|
|
1989
|
+
SkyDefinitionListModule,
|
|
1990
|
+
SkyDocsHeadingAnchorModule,
|
|
1991
|
+
SkyDocsMarkdownModule,
|
|
1992
|
+
SkyDocsSafeHtmlModule,
|
|
1993
|
+
SkyIconModule
|
|
1994
|
+
],
|
|
1995
|
+
declarations: [
|
|
1996
|
+
SkyDocsCallSignatureDefinitionComponent,
|
|
1997
|
+
SkyDocsClassDefinitionComponent,
|
|
1998
|
+
SkyDocsDirectiveDefinitionComponent,
|
|
1999
|
+
SkyDocsEnumerationDefinitionComponent,
|
|
2000
|
+
SkyDocsInterfaceDefinitionComponent,
|
|
2001
|
+
SkyDocsMethodDefinitionsComponent,
|
|
2002
|
+
SkyDocsPipeDefinitionComponent,
|
|
2003
|
+
SkyDocsPropertyDefinitionsComponent,
|
|
2004
|
+
SkyDocsTypeAliasDefinitionComponent,
|
|
2005
|
+
SkyDocsTypeAnchorLinksPipe
|
|
2006
|
+
],
|
|
2007
|
+
exports: [
|
|
2008
|
+
SkyDocsCallSignatureDefinitionComponent,
|
|
2009
|
+
SkyDocsClassDefinitionComponent,
|
|
2010
|
+
SkyDocsDirectiveDefinitionComponent,
|
|
2011
|
+
SkyDocsEnumerationDefinitionComponent,
|
|
2012
|
+
SkyDocsInterfaceDefinitionComponent,
|
|
2013
|
+
SkyDocsMethodDefinitionsComponent,
|
|
2014
|
+
SkyDocsPipeDefinitionComponent,
|
|
2015
|
+
SkyDocsPropertyDefinitionsComponent,
|
|
2016
|
+
SkyDocsTypeAliasDefinitionComponent,
|
|
2017
|
+
SkyDocsTypeAnchorLinksPipe
|
|
2018
|
+
]
|
|
2019
|
+
}]
|
|
2020
|
+
}] });
|
|
2021
|
+
|
|
2022
|
+
/**
|
|
2023
|
+
* Specifies a section of page content.
|
|
2024
|
+
* @example
|
|
2025
|
+
* ```
|
|
2026
|
+
* <sky-docs-demo-page-section
|
|
2027
|
+
* heading="Section heading"
|
|
2028
|
+
* >
|
|
2029
|
+
* Section content here.
|
|
2030
|
+
* </sky-docs-demo-page-section>
|
|
2031
|
+
* ```
|
|
2032
|
+
*/
|
|
2033
|
+
class SkyDocsDemoPageSectionComponent {
|
|
2034
|
+
get anchorId() {
|
|
2035
|
+
return `section-${this.getSanitizedName(this.heading)}`;
|
|
2036
|
+
}
|
|
2037
|
+
getSanitizedName(value) {
|
|
2038
|
+
if (!value) {
|
|
2039
|
+
return;
|
|
2040
|
+
}
|
|
2041
|
+
const sanitized = value.toLowerCase()
|
|
2042
|
+
// Remove special characters.
|
|
2043
|
+
.replace(/[\_\~\`\@\!\#\$\%\^\&\*\(\)\[\]\{\}\;\:\'\/\\\<\>\,\.\?\=\+\|"]/g, '')
|
|
2044
|
+
// Replace space characters with a dash.
|
|
2045
|
+
.replace(/\s/g, '-')
|
|
2046
|
+
// Remove any double-dashes.
|
|
2047
|
+
.replace(/--/g, '-');
|
|
2048
|
+
return sanitized;
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
SkyDocsDemoPageSectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoPageSectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2052
|
+
SkyDocsDemoPageSectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsDemoPageSectionComponent, selector: "sky-docs-demo-page-section", inputs: { heading: "heading" }, ngImport: i0, template: "<div class=\"sky-docs-demo-page-section sky-rounded-corners\">\n <div *ngIf=\"heading\"\n class=\"sky-docs-demo-page-section-header\"\n >\n <sky-docs-heading-anchor\n headingLevel=\"2\"\n [anchorId]=\"anchorId\"\n >\n {{ heading }}\n </sky-docs-heading-anchor>\n </div>\n <div class=\"sky-docs-demo-page-section-body\">\n <ng-content></ng-content>\n </div>\n</div>", styles: [".sky-docs-demo-page-section{margin-bottom:50px}\n"], components: [{ type: SkyDocsHeadingAnchorComponent, selector: "sky-docs-heading-anchor", inputs: ["anchorId", "headingLevel"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2053
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoPageSectionComponent, decorators: [{
|
|
2054
|
+
type: Component,
|
|
2055
|
+
args: [{
|
|
2056
|
+
selector: 'sky-docs-demo-page-section',
|
|
2057
|
+
templateUrl: './demo-page-section.component.html',
|
|
2058
|
+
styleUrls: ['./demo-page-section.component.scss'],
|
|
2059
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2060
|
+
}]
|
|
2061
|
+
}], propDecorators: { heading: [{
|
|
2062
|
+
type: Input
|
|
2063
|
+
}] } });
|
|
2064
|
+
|
|
2065
|
+
/**
|
|
2066
|
+
* The page summary provides a section at the top of the page
|
|
2067
|
+
* to summarize what a user should expect to find or learn on the page.
|
|
2068
|
+
* @example
|
|
2069
|
+
* ```
|
|
2070
|
+
* <sky-docs-demo-page-summary>
|
|
2071
|
+
* Page summary here.
|
|
2072
|
+
* </sky-docs-demo-page-summary>
|
|
2073
|
+
* ```
|
|
2074
|
+
*/
|
|
2075
|
+
class SkyDocsDemoPageSummaryComponent {
|
|
2076
|
+
}
|
|
2077
|
+
SkyDocsDemoPageSummaryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoPageSummaryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2078
|
+
SkyDocsDemoPageSummaryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsDemoPageSummaryComponent, selector: "sky-docs-demo-page-summary", ngImport: i0, template: "<div class=\"sky-docs-demo-page-summary\">\n <ng-content></ng-content>\n</div>\n", styles: [".sky-docs-demo-page-summary{margin-bottom:20px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2079
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoPageSummaryComponent, decorators: [{
|
|
2080
|
+
type: Component,
|
|
2081
|
+
args: [{
|
|
2082
|
+
selector: 'sky-docs-demo-page-summary',
|
|
2083
|
+
templateUrl: './demo-page-summary.component.html',
|
|
2084
|
+
styleUrls: ['./demo-page-summary.component.scss'],
|
|
2085
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2086
|
+
}]
|
|
2087
|
+
}] });
|
|
2088
|
+
|
|
2089
|
+
class SkyDocsDesignGuidelinesComponent {
|
|
2090
|
+
}
|
|
2091
|
+
SkyDocsDesignGuidelinesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDesignGuidelinesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2092
|
+
SkyDocsDesignGuidelinesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsDesignGuidelinesComponent, selector: "sky-docs-design-guidelines", ngImport: i0, template: "<div class=\"sky-docs-design-guidelines\">\n <ng-content></ng-content>\n</div>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2093
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDesignGuidelinesComponent, decorators: [{
|
|
2094
|
+
type: Component,
|
|
2095
|
+
args: [{
|
|
2096
|
+
selector: 'sky-docs-design-guidelines',
|
|
2097
|
+
templateUrl: './design-guidelines.component.html',
|
|
2098
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2099
|
+
}]
|
|
2100
|
+
}] });
|
|
2101
|
+
|
|
2102
|
+
/**
|
|
2103
|
+
* @internal
|
|
2104
|
+
*/
|
|
2105
|
+
class SkyDocsDemoPageDomAdapterService {
|
|
2106
|
+
constructor(windowRef) {
|
|
2107
|
+
this.windowRef = windowRef;
|
|
2108
|
+
this._anchorLinkClick = new Subject();
|
|
2109
|
+
this.eventListener = (e) => {
|
|
2110
|
+
e.preventDefault();
|
|
2111
|
+
this._anchorLinkClick.next({
|
|
2112
|
+
href: e.target.href
|
|
2113
|
+
});
|
|
2114
|
+
};
|
|
2115
|
+
}
|
|
2116
|
+
get anchorLinks() {
|
|
2117
|
+
return document.querySelectorAll('a.sky-docs-anchor-link');
|
|
2118
|
+
}
|
|
2119
|
+
get currentUrl() {
|
|
2120
|
+
return this.windowRef.nativeWindow.location.href.split('#')[0];
|
|
2121
|
+
}
|
|
2122
|
+
ngOnDestroy() {
|
|
2123
|
+
this.removeClickEventListeners();
|
|
2124
|
+
}
|
|
2125
|
+
setupAnchorLinks() {
|
|
2126
|
+
for (let index = 0; index < this.anchorLinks.length; index++) {
|
|
2127
|
+
const anchor = this.anchorLinks[index];
|
|
2128
|
+
const fragment = anchor.href.split('#')[1];
|
|
2129
|
+
const url = this.currentUrl;
|
|
2130
|
+
const href = `${url}#${fragment}`;
|
|
2131
|
+
anchor.href = href;
|
|
2132
|
+
}
|
|
2133
|
+
}
|
|
2134
|
+
get anchorLinkClick() {
|
|
2135
|
+
if (this._anchorLinkClick.observers.length === 0) {
|
|
2136
|
+
this.addClickEventListeners();
|
|
2137
|
+
}
|
|
2138
|
+
else {
|
|
2139
|
+
this.removeClickEventListeners();
|
|
2140
|
+
}
|
|
2141
|
+
return this._anchorLinkClick;
|
|
2142
|
+
}
|
|
2143
|
+
scrollToFragment(fragment) {
|
|
2144
|
+
this.windowRef.nativeWindow.setTimeout(() => {
|
|
2145
|
+
const element = document.getElementById(fragment);
|
|
2146
|
+
if (element) {
|
|
2147
|
+
this.windowRef.nativeWindow.scrollTo(0, element.offsetTop);
|
|
2148
|
+
}
|
|
2149
|
+
}, 250);
|
|
2150
|
+
}
|
|
2151
|
+
addClickEventListeners() {
|
|
2152
|
+
// Wait for a tick to allow all anchors to be written.
|
|
2153
|
+
this.windowRef.nativeWindow.setTimeout(() => {
|
|
2154
|
+
for (let index = 0; index < this.anchorLinks.length; index++) {
|
|
2155
|
+
const anchor = this.anchorLinks[index];
|
|
2156
|
+
anchor.addEventListener('click', this.eventListener);
|
|
2157
|
+
}
|
|
1841
2158
|
});
|
|
1842
2159
|
}
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
];
|
|
1849
|
-
__decorate([
|
|
1850
|
-
Input()
|
|
1851
|
-
], SkyDocsPropertyDefinitionsComponent.prototype, "config", null);
|
|
1852
|
-
__decorate([
|
|
1853
|
-
Input()
|
|
1854
|
-
], SkyDocsPropertyDefinitionsComponent.prototype, "propertyType", void 0);
|
|
1855
|
-
__decorate([
|
|
1856
|
-
Input()
|
|
1857
|
-
], SkyDocsPropertyDefinitionsComponent.prototype, "showOptionalStatus", void 0);
|
|
1858
|
-
SkyDocsPropertyDefinitionsComponent = __decorate([
|
|
1859
|
-
Component({
|
|
1860
|
-
selector: 'sky-docs-property-definitions',
|
|
1861
|
-
template: "<div *ngIf=\"properties\"\n class=\"sky-docs-property-definitions\"\n>\n <table *ngIf=\"!isMobile else mobileTemplate\"\n class=\"sky-docs-table\"\n >\n <tr\n class=\"sky-docs-table-row\"\n >\n <th\n class=\"sky-docs-table-column-header sky-docs-table-column-header-name\"\n >\n {{ propertyType }}\n </th>\n <th\n class=\"sky-docs-table-column-header sky-docs-table-column-header-description\"\n >\n Description\n </th>\n </tr>\n <tr *ngFor=\"let property of properties\"\n class=\"sky-docs-table-row\"\n >\n <td\n class=\"sky-docs-table-cell sky-docs-property-definitions-table-cell-name\"\n >\n <ng-template\n [ngTemplateOutlet]=\"nameTemplate\"\n [ngTemplateOutletContext]=\"{$implicit: property}\"\n ></ng-template>\n </td>\n <td\n class=\"sky-docs-table-cell sky-docs-property-definitions-table-cell-description\"\n >\n <ng-template\n [ngTemplateOutlet]=\"descriptionTemplate\"\n [ngTemplateOutletContext]=\"{$implicit: property}\"\n ></ng-template>\n </td>\n </tr>\n </table>\n\n <ng-template #mobileTemplate>\n <dl\n class=\"sky-docs-property-definition-list\"\n >\n <div *ngFor=\"let property of properties\"\n class=\"sky-docs-property-definition-list-item\"\n >\n <dt\n class=\"sky-field-label\"\n >{{ propertyType }}</dt>\n <dd\n class=\"sky-docs-property-definitions-dd-name\"\n >\n <ng-template\n [ngTemplateOutlet]=\"nameTemplate\"\n [ngTemplateOutletContext]=\"{$implicit: property}\"\n ></ng-template>\n </dd>\n <dt\n class=\"sky-field-label\"\n >Description</dt>\n <dd\n class=\"sky-docs-property-definitions-dd-description\"\n >\n <ng-template\n [ngTemplateOutlet]=\"descriptionTemplate\"\n [ngTemplateOutletContext]=\"{$implicit: property}\"\n ></ng-template>\n </dd>\n </div>\n </dl>\n </ng-template>\n</div>\n\n<ng-template let-property #nameTemplate>\n <sky-code><span\n [innerHtml]=\"property.formattedName | skyDocsTypeAnchorLinks:'no-code-tags'\"\n ></span></sky-code>\n</ng-template>\n\n<ng-template let-property #descriptionTemplate>\n <div *ngIf=\"!property.isOptional && showOptionalStatus\"\n class=\"sky-docs-property-definition-label sky-text-danger\"\n >Required.</div>\n\n <sky-docs-safe-html *ngIf=\"property.deprecationWarning !== undefined\"\n class=\"sky-docs-property-definitions-deprecation-warning\"\n [innerHtml]=\"deprecationWarningPrefix + property.deprecationWarning | skyDocsTypeAnchorLinks | skyDocsMarkdown\"\n ></sky-docs-safe-html>\n\n <sky-docs-safe-html *ngIf=\"property.description\"\n class=\"sky-docs-property-definitions-description\"\n [innerHtml]=\"property.description | skyDocsTypeAnchorLinks | skyDocsMarkdown\"\n ></sky-docs-safe-html>\n\n <div *ngIf=\"property.isOptional && showOptionalStatus\"\n class=\"sky-docs-property-definition-label sky-docs-property-definition-label-optional\"\n >\n Optional. <ng-container *ngIf=\"property.defaultValue\">Default is <sky-code><span\n [innerHtml]=\"property.defaultValue | skyDocsTypeAnchorLinks:'no-code-tags'\"\n ></span></sky-code>.</ng-container>\n </div>\n\n <sky-docs-call-signature-definition *ngIf=\"property.callSignature\"\n [config]=\"property.callSignature\"\n ></sky-docs-call-signature-definition>\n</ng-template>\n",
|
|
1862
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1863
|
-
styles: [":host{margin:15px 0}.sky-docs-property-definitions{width:100%;max-width:100%;overflow:auto}.sky-docs-table-column-header-name{width:25%}.sky-docs-property-definition-label-optional{color:#686c73;margin-bottom:10px}.sky-docs-property-definition-list{margin:0}.sky-docs-property-definition-list-item{border-bottom:1px dotted #cdcfd2;margin:10px 0}.sky-docs-property-definition-list-item .sky-field-label{margin:10px 0}"]
|
|
1864
|
-
})
|
|
1865
|
-
], SkyDocsPropertyDefinitionsComponent);
|
|
1866
|
-
|
|
1867
|
-
let SkyDocsClassDefinitionComponent = class SkyDocsClassDefinitionComponent {
|
|
1868
|
-
};
|
|
1869
|
-
__decorate([
|
|
1870
|
-
Input()
|
|
1871
|
-
], SkyDocsClassDefinitionComponent.prototype, "config", void 0);
|
|
1872
|
-
SkyDocsClassDefinitionComponent = __decorate([
|
|
1873
|
-
Component({
|
|
1874
|
-
selector: 'sky-docs-class-definition',
|
|
1875
|
-
template: "<div *ngIf=\"config\"\n class=\"sky-docs-class-definition sky-docs-type-definition-wrapper\"\n>\n <sky-docs-heading-anchor\n headingLevel=\"3\"\n [anchorId]=\"config.anchorId\"\n >\n {{ config.name }}\n </sky-docs-heading-anchor>\n\n <sky-docs-safe-html *ngIf=\"config.description\"\n class=\"sky-docs-class-definition-description\"\n [innerHtml]=\"config.description | skyDocsTypeAnchorLinks | skyDocsMarkdown\"\n ></sky-docs-safe-html>\n\n <ng-container *ngIf=\"config.properties?.length\">\n <sky-docs-property-definitions\n [config]=\"{ properties: config.properties }\"\n ></sky-docs-property-definitions>\n </ng-container>\n\n <ng-container *ngIf=\"config.methods?.length\">\n <sky-docs-method-definitions\n [config]=\"{ methods: config.methods }\"\n ></sky-docs-method-definitions>\n </ng-container>\n</div>\n",
|
|
1876
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1877
|
-
styles: [".sky-docs-class-definition-heading{line-height:1.1;font-family:\"Blackbaud Sans\",\"Helvetica Neue\",Arial,sans-serif;color:#212327;margin:0 0 10px;font-weight:600;font-size:15px}.sky-docs-class-definition-return-type{margin-left:15px}"]
|
|
1878
|
-
})
|
|
1879
|
-
], SkyDocsClassDefinitionComponent);
|
|
1880
|
-
|
|
1881
|
-
let SkyDocsTypeAliasDefinitionComponent = class SkyDocsTypeAliasDefinitionComponent {
|
|
1882
|
-
constructor(formatService) {
|
|
1883
|
-
this.formatService = formatService;
|
|
2160
|
+
removeClickEventListeners() {
|
|
2161
|
+
for (let index = 0; index < this.anchorLinks.length; index++) {
|
|
2162
|
+
const anchor = this.anchorLinks[index];
|
|
2163
|
+
anchor.removeEventListener('click', this.eventListener);
|
|
2164
|
+
}
|
|
1884
2165
|
}
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
2166
|
+
}
|
|
2167
|
+
SkyDocsDemoPageDomAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoPageDomAdapterService, deps: [{ token: i2$4.SkyAppWindowRef }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2168
|
+
SkyDocsDemoPageDomAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoPageDomAdapterService });
|
|
2169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoPageDomAdapterService, decorators: [{
|
|
2170
|
+
type: Injectable
|
|
2171
|
+
}], ctorParameters: function () { return [{ type: i2$4.SkyAppWindowRef }]; } });
|
|
2172
|
+
|
|
2173
|
+
class SkyDocsSupportalService {
|
|
2174
|
+
constructor(http) {
|
|
2175
|
+
this.http = http;
|
|
1888
2176
|
}
|
|
1889
|
-
|
|
1890
|
-
return this.
|
|
2177
|
+
getComponentsInfo() {
|
|
2178
|
+
return this.http
|
|
2179
|
+
.get('https://sky-pusa01.app.blackbaud.net/skysp/v1/docs/components-info')
|
|
2180
|
+
.pipe(map((results) => results.components), share());
|
|
1891
2181
|
}
|
|
1892
|
-
|
|
1893
|
-
|
|
2182
|
+
}
|
|
2183
|
+
SkyDocsSupportalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsSupportalService, deps: [{ token: i1$5.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2184
|
+
SkyDocsSupportalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsSupportalService, providedIn: 'root' });
|
|
2185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsSupportalService, decorators: [{
|
|
2186
|
+
type: Injectable,
|
|
2187
|
+
args: [{
|
|
2188
|
+
providedIn: 'root'
|
|
2189
|
+
}]
|
|
2190
|
+
}], ctorParameters: function () { return [{ type: i1$5.HttpClient }]; } });
|
|
2191
|
+
|
|
2192
|
+
/**
|
|
2193
|
+
* @internal
|
|
2194
|
+
*/
|
|
2195
|
+
class SkyDocsDemoPageTitleService {
|
|
2196
|
+
constructor(title) {
|
|
2197
|
+
this.title = title;
|
|
1894
2198
|
}
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
2199
|
+
setTitle(...parts) {
|
|
2200
|
+
let windowTitle = 'SKY UX';
|
|
2201
|
+
if (parts && parts.length > 0) {
|
|
2202
|
+
parts.push(windowTitle);
|
|
2203
|
+
windowTitle = parts.join(' - ');
|
|
2204
|
+
}
|
|
2205
|
+
this.title.setTitle(windowTitle);
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
|
+
SkyDocsDemoPageTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoPageTitleService, deps: [{ token: i1$4.Title }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2209
|
+
SkyDocsDemoPageTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoPageTitleService, providedIn: 'root' });
|
|
2210
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoPageTitleService, decorators: [{
|
|
2211
|
+
type: Injectable,
|
|
2212
|
+
args: [{
|
|
2213
|
+
providedIn: 'root'
|
|
2214
|
+
}]
|
|
2215
|
+
}], ctorParameters: function () { return [{ type: i1$4.Title }]; } });
|
|
1910
2216
|
|
|
1911
2217
|
/**
|
|
1912
2218
|
* Converts TypeDoc types into SKY UX docs-tools types, to be supplied to the various definitions components.
|
|
1913
2219
|
*/
|
|
1914
|
-
|
|
2220
|
+
class SkyDocsTypeDocAdapterService {
|
|
1915
2221
|
constructor(typeDefinitionsProvider) {
|
|
1916
2222
|
this.typeDefinitionsProvider = typeDefinitionsProvider;
|
|
1917
2223
|
}
|
|
@@ -2019,21 +2325,43 @@ let SkyDocsTypeDocAdapterService = class SkyDocsTypeDocAdapterService {
|
|
|
2019
2325
|
const definitions = entry.children
|
|
2020
2326
|
.filter(child => child.kindString === 'Property' || child.kindString === 'Accessor')
|
|
2021
2327
|
.map(child => {
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
isOptional:
|
|
2328
|
+
var _a, _b, _c;
|
|
2329
|
+
let definition = {
|
|
2330
|
+
isOptional: true,
|
|
2025
2331
|
name: this.getPropertyName(child),
|
|
2026
2332
|
type: this.getTypeDefinition(child)
|
|
2027
2333
|
};
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
if (
|
|
2031
|
-
|
|
2334
|
+
let defaultValue;
|
|
2335
|
+
/* Ensure we are properly capturing definitions which use a getter/setter. Final check is a sanity check */
|
|
2336
|
+
if (child.kindString === 'Accessor' && !((_a = child.comment) === null || _a === void 0 ? void 0 : _a.shortText) && ((_b = child.getSignature) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
2337
|
+
const mainTags = this.getCommentTags(child.comment);
|
|
2338
|
+
const getTags = this.getCommentTags(child.getSignature[0].comment);
|
|
2339
|
+
this.applyCommentTagValues(definition, mainTags);
|
|
2340
|
+
this.applyCommentTagValues(definition, getTags);
|
|
2341
|
+
if (((_c = child.setSignature) === null || _c === void 0 ? void 0 : _c.length) > 0) {
|
|
2342
|
+
const setTags = this.getCommentTags(child.setSignature[0].comment);
|
|
2343
|
+
this.applyCommentTagValues(definition, setTags);
|
|
2344
|
+
definition.isOptional = !setTags.extras.required;
|
|
2345
|
+
defaultValue = this.getDefaultValue(child, setTags);
|
|
2346
|
+
}
|
|
2347
|
+
else {
|
|
2348
|
+
definition.isOptional = !mainTags.extras.required;
|
|
2349
|
+
defaultValue = this.getDefaultValue(child, mainTags);
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2352
|
+
else {
|
|
2353
|
+
const tags = this.getCommentTags(child.comment);
|
|
2354
|
+
definition.isOptional = !tags.extras.required;
|
|
2355
|
+
this.applyCommentTagValues(definition, tags);
|
|
2356
|
+
defaultValue = this.getDefaultValue(child, tags);
|
|
2032
2357
|
}
|
|
2033
|
-
const defaultValue = this.getDefaultValue(child, tags);
|
|
2034
2358
|
if (defaultValue) {
|
|
2035
2359
|
definition.defaultValue = defaultValue;
|
|
2036
2360
|
}
|
|
2361
|
+
const decorator = this.getDecorator(child);
|
|
2362
|
+
if (decorator) {
|
|
2363
|
+
definition.decorator = decorator;
|
|
2364
|
+
}
|
|
2037
2365
|
return definition;
|
|
2038
2366
|
});
|
|
2039
2367
|
return orderBy(definitions, ['isOptional', 'name'], ['asc', 'asc']);
|
|
@@ -2080,7 +2408,7 @@ let SkyDocsTypeDocAdapterService = class SkyDocsTypeDocAdapterService {
|
|
|
2080
2408
|
const sorted = orderBy(definitions, ['isOptional', 'name'], ['asc', 'asc']);
|
|
2081
2409
|
// Add any index signatures, e.g. `[_: string]: any`
|
|
2082
2410
|
if (entry.indexSignature) {
|
|
2083
|
-
const indexSignature = entry.indexSignature
|
|
2411
|
+
const indexSignature = entry.indexSignature;
|
|
2084
2412
|
const definition = {
|
|
2085
2413
|
isOptional: true,
|
|
2086
2414
|
name: indexSignature.name,
|
|
@@ -2144,10 +2472,10 @@ let SkyDocsTypeDocAdapterService = class SkyDocsTypeDocAdapterService {
|
|
|
2144
2472
|
definition.callSignature = this.getCallSignatureDefinition(declaration.signatures[0], this.getCommentTags(child.comment));
|
|
2145
2473
|
}
|
|
2146
2474
|
else if (declaration.indexSignature) {
|
|
2147
|
-
const indexSignature = declaration.indexSignature
|
|
2475
|
+
const indexSignature = declaration.indexSignature;
|
|
2148
2476
|
definition.indexSignature = this.getIndexSignatureDefinition(indexSignature);
|
|
2149
2477
|
}
|
|
2150
|
-
else if (declaration.children) {
|
|
2478
|
+
else /* istanbul ignore else */ if (declaration.children) {
|
|
2151
2479
|
definition.typeLiteral = {
|
|
2152
2480
|
properties: this.getInterfaceProperties({
|
|
2153
2481
|
children: declaration.children
|
|
@@ -2347,19 +2675,22 @@ let SkyDocsTypeDocAdapterService = class SkyDocsTypeDocAdapterService {
|
|
|
2347
2675
|
var _a;
|
|
2348
2676
|
return entry.anchorId || ((_a = this.typeDefinitionsProvider) === null || _a === void 0 ? void 0 : _a.anchorIds[entry.name]) || '';
|
|
2349
2677
|
}
|
|
2350
|
-
}
|
|
2351
|
-
SkyDocsTypeDocAdapterService
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
]
|
|
2678
|
+
}
|
|
2679
|
+
SkyDocsTypeDocAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsTypeDocAdapterService, deps: [{ token: SkyDocsTypeDefinitionsProvider, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2680
|
+
SkyDocsTypeDocAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsTypeDocAdapterService, providedIn: 'any' });
|
|
2681
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsTypeDocAdapterService, decorators: [{
|
|
2682
|
+
type: Injectable,
|
|
2683
|
+
args: [{
|
|
2684
|
+
providedIn: 'any'
|
|
2685
|
+
}]
|
|
2686
|
+
}], ctorParameters: function () { return [{ type: SkyDocsTypeDefinitionsProvider, decorators: [{
|
|
2687
|
+
type: Optional
|
|
2688
|
+
}] }]; } });
|
|
2358
2689
|
|
|
2359
2690
|
/**
|
|
2360
2691
|
* Handles all type definitions that have been converted from the third-party documentation generator.
|
|
2361
2692
|
*/
|
|
2362
|
-
|
|
2693
|
+
class SkyDocsTypeDefinitionsService {
|
|
2363
2694
|
constructor(typeDefinitionsProvider, adapter) {
|
|
2364
2695
|
this.typeDefinitionsProvider = typeDefinitionsProvider;
|
|
2365
2696
|
this.adapter = adapter;
|
|
@@ -2369,14 +2700,19 @@ let SkyDocsTypeDefinitionsService = class SkyDocsTypeDefinitionsService {
|
|
|
2369
2700
|
* @param sourceCodePath The directory of the source code you wish to pull type definitions from,
|
|
2370
2701
|
* relative to the application's root directory.
|
|
2371
2702
|
*/
|
|
2372
|
-
getTypeDefinitions(sourceCodePath) {
|
|
2373
|
-
if (sourceCodePath
|
|
2374
|
-
throw new Error('The
|
|
2375
|
-
}
|
|
2703
|
+
getTypeDefinitions(sourceCodePath, additionalSourceCodePaths) {
|
|
2704
|
+
if (!sourceCodePath) {
|
|
2705
|
+
throw new Error('The `sourceCodePath` parameter is required');
|
|
2706
|
+
}
|
|
2707
|
+
const sourceCodePaths = additionalSourceCodePaths && additionalSourceCodePaths.length > 0 ?
|
|
2708
|
+
[sourceCodePath].concat(additionalSourceCodePaths) :
|
|
2709
|
+
[sourceCodePath];
|
|
2710
|
+
sourceCodePaths.forEach((path) => {
|
|
2711
|
+
if (!path.endsWith('/') && !path.endsWith('.ts')) {
|
|
2712
|
+
throw new Error('Source code paths must end with a forward slash (`/`) or `.ts`.');
|
|
2713
|
+
}
|
|
2714
|
+
});
|
|
2376
2715
|
const allDefinitions = this.typeDefinitionsProvider.typeDefinitions;
|
|
2377
|
-
const requestedDir = sourceCodePath
|
|
2378
|
-
.replace(/src\/app\/public\//, '')
|
|
2379
|
-
.replace(/^\//, ''); // remove first slash.
|
|
2380
2716
|
const types = {
|
|
2381
2717
|
classes: [],
|
|
2382
2718
|
components: [],
|
|
@@ -2391,317 +2727,92 @@ let SkyDocsTypeDefinitionsService = class SkyDocsTypeDefinitionsService {
|
|
|
2391
2727
|
console.warn(`No types were found for this project!`);
|
|
2392
2728
|
return types;
|
|
2393
2729
|
}
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
switch (decorator) {
|
|
2403
|
-
case 'Component':
|
|
2404
|
-
types.components.push(this.adapter.toDirectiveDefinition(item));
|
|
2405
|
-
break;
|
|
2406
|
-
case 'Directive':
|
|
2407
|
-
types.directives.push(this.adapter.toDirectiveDefinition(item));
|
|
2408
|
-
break;
|
|
2409
|
-
case 'Injectable':
|
|
2410
|
-
types.services.push(this.adapter.toClassDefinition(item));
|
|
2411
|
-
break;
|
|
2412
|
-
case 'NgModule':
|
|
2413
|
-
// Don't document modules.
|
|
2414
|
-
break;
|
|
2415
|
-
case 'Pipe':
|
|
2416
|
-
types.pipes.push(this.adapter.toPipeDefinition(item));
|
|
2417
|
-
break;
|
|
2418
|
-
default:
|
|
2419
|
-
/*tslint:disable-next-line:switch-default*/
|
|
2420
|
-
switch (kindString) {
|
|
2421
|
-
case 'Class':
|
|
2422
|
-
types.classes.push(this.adapter.toClassDefinition(item));
|
|
2423
|
-
break;
|
|
2424
|
-
case 'Interface':
|
|
2425
|
-
types.interfaces.push(this.adapter.toInterfaceDefinition(item));
|
|
2426
|
-
break;
|
|
2427
|
-
case 'Enumeration':
|
|
2428
|
-
types.enumerations.push(this.adapter.toEnumerationDefinition(item));
|
|
2429
|
-
break;
|
|
2430
|
-
case 'Type alias':
|
|
2431
|
-
types.typeAliases.push(this.adapter.toTypeAliasDefinition(item));
|
|
2432
|
-
break;
|
|
2433
|
-
}
|
|
2730
|
+
sourceCodePaths.forEach((path) => {
|
|
2731
|
+
const requestedDir = path
|
|
2732
|
+
.replace(/src\/app\/public\//, '')
|
|
2733
|
+
.replace(/^\//, ''); // remove first slash.
|
|
2734
|
+
// Only process types that match the requested source code location.
|
|
2735
|
+
const typeDefinitions = allDefinitions.filter((i) => i.sources && i.sources[0].fileName.match(requestedDir));
|
|
2736
|
+
if (typeDefinitions.length === 0) {
|
|
2737
|
+
console.warn(`Type definitions were not found for location: ${requestedDir}`);
|
|
2434
2738
|
}
|
|
2739
|
+
typeDefinitions.forEach((item) => {
|
|
2740
|
+
const decorator = item.decorators && item.decorators[0].name;
|
|
2741
|
+
const kindString = item.kindString;
|
|
2742
|
+
switch (decorator) {
|
|
2743
|
+
case 'Component':
|
|
2744
|
+
types.components.push(this.adapter.toDirectiveDefinition(item));
|
|
2745
|
+
break;
|
|
2746
|
+
case 'Directive':
|
|
2747
|
+
types.directives.push(this.adapter.toDirectiveDefinition(item));
|
|
2748
|
+
break;
|
|
2749
|
+
case 'Injectable':
|
|
2750
|
+
types.services.push(this.adapter.toClassDefinition(item));
|
|
2751
|
+
break;
|
|
2752
|
+
case 'NgModule':
|
|
2753
|
+
// Don't document modules.
|
|
2754
|
+
break;
|
|
2755
|
+
case 'Pipe':
|
|
2756
|
+
types.pipes.push(this.adapter.toPipeDefinition(item));
|
|
2757
|
+
break;
|
|
2758
|
+
default:
|
|
2759
|
+
/*tslint:disable-next-line:switch-default*/
|
|
2760
|
+
switch (kindString) {
|
|
2761
|
+
case 'Class':
|
|
2762
|
+
types.classes.push(this.adapter.toClassDefinition(item));
|
|
2763
|
+
break;
|
|
2764
|
+
case 'Interface':
|
|
2765
|
+
types.interfaces.push(this.adapter.toInterfaceDefinition(item));
|
|
2766
|
+
break;
|
|
2767
|
+
case 'Enumeration':
|
|
2768
|
+
types.enumerations.push(this.adapter.toEnumerationDefinition(item));
|
|
2769
|
+
break;
|
|
2770
|
+
case 'Type alias':
|
|
2771
|
+
types.typeAliases.push(this.adapter.toTypeAliasDefinition(item));
|
|
2772
|
+
break;
|
|
2773
|
+
}
|
|
2774
|
+
}
|
|
2775
|
+
});
|
|
2435
2776
|
});
|
|
2436
2777
|
return types;
|
|
2437
2778
|
}
|
|
2438
|
-
}
|
|
2439
|
-
SkyDocsTypeDefinitionsService
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
]
|
|
2446
|
-
|
|
2447
|
-
/**
|
|
2448
|
-
* Adds same-page anchor tags around known TypeScript types.
|
|
2449
|
-
*/
|
|
2450
|
-
let SkyDocsTypeAnchorLinksPipe = class SkyDocsTypeAnchorLinksPipe {
|
|
2451
|
-
constructor(anchorLinkService) {
|
|
2452
|
-
this.anchorLinkService = anchorLinkService;
|
|
2453
|
-
}
|
|
2454
|
-
transform(value, formatType) {
|
|
2455
|
-
const anchorLinkConfig = {
|
|
2456
|
-
applyCodeFormatting: (formatType !== 'no-code-tags')
|
|
2457
|
-
};
|
|
2458
|
-
return this.anchorLinkService.applyTypeAnchorLinks(value, anchorLinkConfig);
|
|
2459
|
-
}
|
|
2460
|
-
};
|
|
2461
|
-
SkyDocsTypeAnchorLinksPipe.ctorParameters = () => [
|
|
2462
|
-
{ type: SkyDocsAnchorLinkService }
|
|
2463
|
-
];
|
|
2464
|
-
SkyDocsTypeAnchorLinksPipe = __decorate([
|
|
2465
|
-
Pipe({
|
|
2466
|
-
name: 'skyDocsTypeAnchorLinks',
|
|
2467
|
-
pure: true
|
|
2468
|
-
})
|
|
2469
|
-
], SkyDocsTypeAnchorLinksPipe);
|
|
2470
|
-
|
|
2471
|
-
let SkyDocsTypeDefinitionsModule = class SkyDocsTypeDefinitionsModule {
|
|
2472
|
-
};
|
|
2473
|
-
SkyDocsTypeDefinitionsModule = __decorate([
|
|
2474
|
-
NgModule({
|
|
2475
|
-
imports: [
|
|
2476
|
-
CommonModule,
|
|
2477
|
-
RouterModule,
|
|
2478
|
-
SkyCodeBlockModule,
|
|
2479
|
-
SkyCodeModule,
|
|
2480
|
-
SkyDefinitionListModule,
|
|
2481
|
-
SkyDocsHeadingAnchorModule,
|
|
2482
|
-
SkyDocsMarkdownModule,
|
|
2483
|
-
SkyDocsSafeHtmlModule,
|
|
2484
|
-
SkyIconModule,
|
|
2485
|
-
SkyMediaQueryModule
|
|
2486
|
-
],
|
|
2487
|
-
declarations: [
|
|
2488
|
-
SkyDocsCallSignatureDefinitionComponent,
|
|
2489
|
-
SkyDocsClassDefinitionComponent,
|
|
2490
|
-
SkyDocsDirectiveDefinitionComponent,
|
|
2491
|
-
SkyDocsEnumerationDefinitionComponent,
|
|
2492
|
-
SkyDocsInterfaceDefinitionComponent,
|
|
2493
|
-
SkyDocsMethodDefinitionsComponent,
|
|
2494
|
-
SkyDocsPipeDefinitionComponent,
|
|
2495
|
-
SkyDocsPropertyDefinitionsComponent,
|
|
2496
|
-
SkyDocsTypeAliasDefinitionComponent,
|
|
2497
|
-
SkyDocsTypeAnchorLinksPipe
|
|
2498
|
-
],
|
|
2499
|
-
exports: [
|
|
2500
|
-
SkyDocsCallSignatureDefinitionComponent,
|
|
2501
|
-
SkyDocsClassDefinitionComponent,
|
|
2502
|
-
SkyDocsDirectiveDefinitionComponent,
|
|
2503
|
-
SkyDocsEnumerationDefinitionComponent,
|
|
2504
|
-
SkyDocsInterfaceDefinitionComponent,
|
|
2505
|
-
SkyDocsMethodDefinitionsComponent,
|
|
2506
|
-
SkyDocsPipeDefinitionComponent,
|
|
2507
|
-
SkyDocsPropertyDefinitionsComponent,
|
|
2508
|
-
SkyDocsTypeAliasDefinitionComponent,
|
|
2509
|
-
SkyDocsTypeAnchorLinksPipe
|
|
2510
|
-
],
|
|
2511
|
-
providers: [
|
|
2512
|
-
SkyDocsAnchorLinkService,
|
|
2513
|
-
SkyDocsTypeAnchorLinksPipe,
|
|
2514
|
-
SkyDocsTypeDefinitionsFormatService,
|
|
2515
|
-
SkyDocsTypeDefinitionsProvider,
|
|
2516
|
-
SkyDocsTypeDefinitionsService,
|
|
2517
|
-
SkyDocsTypeDocAdapterService
|
|
2518
|
-
]
|
|
2519
|
-
})
|
|
2520
|
-
], SkyDocsTypeDefinitionsModule);
|
|
2521
|
-
|
|
2522
|
-
/**
|
|
2523
|
-
* Specifies a section of page content.
|
|
2524
|
-
* @example
|
|
2525
|
-
* ```
|
|
2526
|
-
* <sky-docs-demo-page-section
|
|
2527
|
-
* heading="Section heading"
|
|
2528
|
-
* >
|
|
2529
|
-
* Section content here.
|
|
2530
|
-
* </sky-docs-demo-page-section>
|
|
2531
|
-
* ```
|
|
2532
|
-
*/
|
|
2533
|
-
let SkyDocsDemoPageSectionComponent = class SkyDocsDemoPageSectionComponent {
|
|
2534
|
-
get anchorId() {
|
|
2535
|
-
return `section-${this.getSanitizedName(this.heading)}`;
|
|
2536
|
-
}
|
|
2537
|
-
getSanitizedName(value) {
|
|
2538
|
-
if (!value) {
|
|
2539
|
-
return;
|
|
2540
|
-
}
|
|
2541
|
-
const sanitized = value.toLowerCase()
|
|
2542
|
-
// Remove special characters.
|
|
2543
|
-
.replace(/[\_\~\`\@\!\#\$\%\^\&\*\(\)\[\]\{\}\;\:\'\/\\\<\>\,\.\?\=\+\|"]/g, '')
|
|
2544
|
-
// Replace space characters with a dash.
|
|
2545
|
-
.replace(/\s/g, '-')
|
|
2546
|
-
// Remove any double-dashes.
|
|
2547
|
-
.replace(/--/g, '-');
|
|
2548
|
-
return sanitized;
|
|
2549
|
-
}
|
|
2550
|
-
};
|
|
2551
|
-
__decorate([
|
|
2552
|
-
Input()
|
|
2553
|
-
], SkyDocsDemoPageSectionComponent.prototype, "heading", void 0);
|
|
2554
|
-
SkyDocsDemoPageSectionComponent = __decorate([
|
|
2555
|
-
Component({
|
|
2556
|
-
selector: 'sky-docs-demo-page-section',
|
|
2557
|
-
template: "<div class=\"sky-docs-demo-page-section sky-rounded-corners\">\n <div *ngIf=\"heading\"\n class=\"sky-docs-demo-page-section-header\"\n >\n <sky-docs-heading-anchor\n headingLevel=\"2\"\n [anchorId]=\"anchorId\"\n >\n {{ heading }}\n </sky-docs-heading-anchor>\n </div>\n <div class=\"sky-docs-demo-page-section-body\">\n <ng-content></ng-content>\n </div>\n</div>",
|
|
2558
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2559
|
-
styles: [".sky-docs-demo-page-section{margin-bottom:50px}"]
|
|
2560
|
-
})
|
|
2561
|
-
], SkyDocsDemoPageSectionComponent);
|
|
2562
|
-
|
|
2563
|
-
/**
|
|
2564
|
-
* The page summary provides a section at the top of the page
|
|
2565
|
-
* to summarize what a user should expect to find or learn on the page.
|
|
2566
|
-
* @example
|
|
2567
|
-
* ```
|
|
2568
|
-
* <sky-docs-demo-page-summary>
|
|
2569
|
-
* Page summary here.
|
|
2570
|
-
* </sky-docs-demo-page-summary>
|
|
2571
|
-
* ```
|
|
2572
|
-
*/
|
|
2573
|
-
let SkyDocsDemoPageSummaryComponent = class SkyDocsDemoPageSummaryComponent {
|
|
2574
|
-
};
|
|
2575
|
-
SkyDocsDemoPageSummaryComponent = __decorate([
|
|
2576
|
-
Component({
|
|
2577
|
-
selector: 'sky-docs-demo-page-summary',
|
|
2578
|
-
template: "<div class=\"sky-docs-demo-page-summary\">\n <ng-content></ng-content>\n</div>\n",
|
|
2579
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2580
|
-
styles: [".sky-docs-demo-page-summary{margin-bottom:20px}"]
|
|
2581
|
-
})
|
|
2582
|
-
], SkyDocsDemoPageSummaryComponent);
|
|
2583
|
-
|
|
2584
|
-
/**
|
|
2585
|
-
* @internal
|
|
2586
|
-
*/
|
|
2587
|
-
let SkyDocsDemoPageTitleService = class SkyDocsDemoPageTitleService {
|
|
2588
|
-
constructor(title) {
|
|
2589
|
-
this.title = title;
|
|
2590
|
-
}
|
|
2591
|
-
setTitle(...parts) {
|
|
2592
|
-
let windowTitle = 'SKY UX';
|
|
2593
|
-
if (parts && parts.length > 0) {
|
|
2594
|
-
parts.push(windowTitle);
|
|
2595
|
-
windowTitle = parts.join(' - ');
|
|
2596
|
-
}
|
|
2597
|
-
this.title.setTitle(windowTitle);
|
|
2598
|
-
}
|
|
2599
|
-
};
|
|
2600
|
-
SkyDocsDemoPageTitleService.ctorParameters = () => [
|
|
2601
|
-
{ type: Title }
|
|
2602
|
-
];
|
|
2603
|
-
SkyDocsDemoPageTitleService = __decorate([
|
|
2604
|
-
Injectable()
|
|
2605
|
-
], SkyDocsDemoPageTitleService);
|
|
2606
|
-
|
|
2607
|
-
let SkyDocsDesignGuidelinesComponent = class SkyDocsDesignGuidelinesComponent {
|
|
2608
|
-
};
|
|
2609
|
-
SkyDocsDesignGuidelinesComponent = __decorate([
|
|
2610
|
-
Component({
|
|
2611
|
-
selector: 'sky-docs-design-guidelines',
|
|
2612
|
-
template: "<div class=\"sky-docs-design-guidelines\">\n <ng-content></ng-content>\n</div>\n",
|
|
2613
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2614
|
-
})
|
|
2615
|
-
], SkyDocsDesignGuidelinesComponent);
|
|
2616
|
-
|
|
2617
|
-
let SkyDocsSupportalService = class SkyDocsSupportalService {
|
|
2618
|
-
constructor(http) {
|
|
2619
|
-
this.http = http;
|
|
2620
|
-
}
|
|
2621
|
-
getComponentsInfo() {
|
|
2622
|
-
return this.http
|
|
2623
|
-
.get('https://sky-pusa01.app.blackbaud.net/skysp/v1/docs/components-info')
|
|
2624
|
-
.pipe(map((results) => results.components), share());
|
|
2625
|
-
}
|
|
2626
|
-
};
|
|
2627
|
-
SkyDocsSupportalService.ctorParameters = () => [
|
|
2628
|
-
{ type: HttpClient }
|
|
2629
|
-
];
|
|
2630
|
-
SkyDocsSupportalService = __decorate([
|
|
2631
|
-
Injectable()
|
|
2632
|
-
], SkyDocsSupportalService);
|
|
2779
|
+
}
|
|
2780
|
+
SkyDocsTypeDefinitionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsTypeDefinitionsService, deps: [{ token: SkyDocsTypeDefinitionsProvider }, { token: SkyDocsTypeDocAdapterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2781
|
+
SkyDocsTypeDefinitionsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsTypeDefinitionsService, providedIn: 'any' });
|
|
2782
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsTypeDefinitionsService, decorators: [{
|
|
2783
|
+
type: Injectable,
|
|
2784
|
+
args: [{
|
|
2785
|
+
providedIn: 'any'
|
|
2786
|
+
}]
|
|
2787
|
+
}], ctorParameters: function () { return [{ type: SkyDocsTypeDefinitionsProvider }, { type: SkyDocsTypeDocAdapterService }]; } });
|
|
2633
2788
|
|
|
2634
2789
|
/**
|
|
2635
2790
|
* @internal
|
|
2636
2791
|
*/
|
|
2637
|
-
|
|
2638
|
-
constructor(
|
|
2639
|
-
this.
|
|
2640
|
-
this._anchorLinkClick = new Subject();
|
|
2641
|
-
this.eventListener = (e) => {
|
|
2642
|
-
e.preventDefault();
|
|
2643
|
-
this._anchorLinkClick.next({
|
|
2644
|
-
href: e.target.href
|
|
2645
|
-
});
|
|
2646
|
-
};
|
|
2647
|
-
}
|
|
2648
|
-
get anchorLinks() {
|
|
2649
|
-
return document.querySelectorAll('a.sky-docs-anchor-link');
|
|
2650
|
-
}
|
|
2651
|
-
get currentUrl() {
|
|
2652
|
-
return this.windowRef.nativeWindow.location.href.split('#')[0];
|
|
2653
|
-
}
|
|
2654
|
-
ngOnDestroy() {
|
|
2655
|
-
this.removeClickEventListeners();
|
|
2656
|
-
}
|
|
2657
|
-
setupAnchorLinks() {
|
|
2658
|
-
for (let index = 0; index < this.anchorLinks.length; index++) {
|
|
2659
|
-
const anchor = this.anchorLinks[index];
|
|
2660
|
-
const fragment = anchor.href.split('#')[1];
|
|
2661
|
-
const url = this.currentUrl;
|
|
2662
|
-
const href = `${url}#${fragment}`;
|
|
2663
|
-
anchor.href = href;
|
|
2664
|
-
}
|
|
2665
|
-
}
|
|
2666
|
-
get anchorLinkClick() {
|
|
2667
|
-
if (this._anchorLinkClick.observers.length === 0) {
|
|
2668
|
-
this.addClickEventListeners();
|
|
2669
|
-
}
|
|
2670
|
-
else {
|
|
2671
|
-
this.removeClickEventListeners();
|
|
2672
|
-
}
|
|
2673
|
-
return this._anchorLinkClick;
|
|
2674
|
-
}
|
|
2675
|
-
scrollToFragment(fragment) {
|
|
2676
|
-
this.windowRef.nativeWindow.setTimeout(() => {
|
|
2677
|
-
const element = document.getElementById(fragment);
|
|
2678
|
-
if (element) {
|
|
2679
|
-
this.windowRef.nativeWindow.scrollTo(0, element.offsetTop);
|
|
2680
|
-
}
|
|
2681
|
-
}, 250);
|
|
2682
|
-
}
|
|
2683
|
-
addClickEventListeners() {
|
|
2684
|
-
// Wait for a tick to allow all anchors to be written.
|
|
2685
|
-
this.windowRef.nativeWindow.setTimeout(() => {
|
|
2686
|
-
for (let index = 0; index < this.anchorLinks.length; index++) {
|
|
2687
|
-
const anchor = this.anchorLinks[index];
|
|
2688
|
-
anchor.addEventListener('click', this.eventListener);
|
|
2689
|
-
}
|
|
2690
|
-
});
|
|
2792
|
+
class SkyDocsDemoPageTypeDefinitionsComponent {
|
|
2793
|
+
constructor(typeDefinitionService) {
|
|
2794
|
+
this.typeDefinitionService = typeDefinitionService;
|
|
2691
2795
|
}
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
anchor.removeEventListener('click', this.eventListener);
|
|
2796
|
+
ngOnInit() {
|
|
2797
|
+
if (this.moduleSourceCodePath) {
|
|
2798
|
+
this.types = this.typeDefinitionService.getTypeDefinitions(this.moduleSourceCodePath, this.additionalSourceCodePaths);
|
|
2696
2799
|
}
|
|
2697
2800
|
}
|
|
2698
|
-
}
|
|
2699
|
-
|
|
2700
|
-
{ type:
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2801
|
+
}
|
|
2802
|
+
SkyDocsDemoPageTypeDefinitionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoPageTypeDefinitionsComponent, deps: [{ token: SkyDocsTypeDefinitionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2803
|
+
SkyDocsDemoPageTypeDefinitionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsDemoPageTypeDefinitionsComponent, selector: "sky-docs-demo-page-type-definitions", inputs: { additionalSourceCodePaths: "additionalSourceCodePaths", moduleSourceCodePath: "moduleSourceCodePath" }, ngImport: i0, template: "<ng-template [ngIf]=\"types\">\n <sky-docs-demo-page-section *ngIf=\"types.components.length\"\n heading=\"Components\"\n >\n <sky-docs-directive-definition *ngFor=\"let config of types.components\"\n [config]=\"config\"\n ></sky-docs-directive-definition>\n </sky-docs-demo-page-section>\n\n <sky-docs-demo-page-section *ngIf=\"types.directives.length\"\n heading=\"Directives\"\n >\n <sky-docs-directive-definition *ngFor=\"let config of types.directives\"\n [config]=\"config\"\n ></sky-docs-directive-definition>\n </sky-docs-demo-page-section>\n\n <sky-docs-demo-page-section *ngIf=\"types.pipes.length\"\n heading=\"Pipes\"\n >\n <sky-docs-pipe-definition *ngFor=\"let config of types.pipes\"\n [config]=\"config\"\n ></sky-docs-pipe-definition>\n </sky-docs-demo-page-section>\n\n <sky-docs-demo-page-section *ngIf=\"types.services.length\"\n heading=\"Services\"\n >\n <sky-docs-class-definition *ngFor=\"let config of types.services\"\n [config]=\"config\"\n ></sky-docs-class-definition>\n </sky-docs-demo-page-section>\n\n <sky-docs-demo-page-section *ngIf=\"types.classes.length\"\n heading=\"Classes\"\n >\n <sky-docs-class-definition *ngFor=\"let config of types.classes\"\n [config]=\"config\"\n ></sky-docs-class-definition>\n </sky-docs-demo-page-section>\n\n <sky-docs-demo-page-section *ngIf=\"types.interfaces.length\"\n heading=\"Interfaces\"\n >\n <sky-docs-interface-definition *ngFor=\"let config of types.interfaces\"\n [config]=\"config\"\n ></sky-docs-interface-definition>\n </sky-docs-demo-page-section>\n\n <sky-docs-demo-page-section *ngIf=\"types.enumerations.length\"\n heading=\"Enumerations\"\n >\n <sky-docs-enumeration-definition *ngFor=\"let config of types.enumerations\"\n [config]=\"config\"\n ></sky-docs-enumeration-definition>\n </sky-docs-demo-page-section>\n\n <sky-docs-demo-page-section *ngIf=\"types.typeAliases.length\"\n heading=\"Type aliases\"\n >\n <sky-docs-type-alias-definition *ngFor=\"let config of types.typeAliases\"\n [config]=\"config\"\n ></sky-docs-type-alias-definition>\n </sky-docs-demo-page-section>\n</ng-template>", components: [{ type: SkyDocsDemoPageSectionComponent, selector: "sky-docs-demo-page-section", inputs: ["heading"] }, { type: SkyDocsDirectiveDefinitionComponent, selector: "sky-docs-directive-definition", inputs: ["config"] }, { type: SkyDocsPipeDefinitionComponent, selector: "sky-docs-pipe-definition", inputs: ["config"] }, { type: SkyDocsClassDefinitionComponent, selector: "sky-docs-class-definition", inputs: ["config"] }, { type: SkyDocsInterfaceDefinitionComponent, selector: "sky-docs-interface-definition", inputs: ["config"] }, { type: SkyDocsEnumerationDefinitionComponent, selector: "sky-docs-enumeration-definition", inputs: ["config"] }, { type: SkyDocsTypeAliasDefinitionComponent, selector: "sky-docs-type-alias-definition", inputs: ["config"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2804
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoPageTypeDefinitionsComponent, decorators: [{
|
|
2805
|
+
type: Component,
|
|
2806
|
+
args: [{
|
|
2807
|
+
selector: 'sky-docs-demo-page-type-definitions',
|
|
2808
|
+
templateUrl: './demo-page-type-definitions.component.html',
|
|
2809
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2810
|
+
}]
|
|
2811
|
+
}], ctorParameters: function () { return [{ type: SkyDocsTypeDefinitionsService }]; }, propDecorators: { additionalSourceCodePaths: [{
|
|
2812
|
+
type: Input
|
|
2813
|
+
}], moduleSourceCodePath: [{
|
|
2814
|
+
type: Input
|
|
2815
|
+
}] } });
|
|
2705
2816
|
|
|
2706
2817
|
/**
|
|
2707
2818
|
* The demo page component wraps all documentation components and handles the configuration and layout of the page.
|
|
@@ -2714,7 +2825,7 @@ SkyDocsDemoPageDomAdapterService = __decorate([
|
|
|
2714
2825
|
* </sky-docs-demo-page>
|
|
2715
2826
|
* ```
|
|
2716
2827
|
*/
|
|
2717
|
-
|
|
2828
|
+
class SkyDocsDemoPageComponent {
|
|
2718
2829
|
constructor(activatedRoute, changeDetector, router, skyAppConfig, domAdapter, supportalService, titleService) {
|
|
2719
2830
|
this.activatedRoute = activatedRoute;
|
|
2720
2831
|
this.changeDetector = changeDetector;
|
|
@@ -2776,6 +2887,7 @@ let SkyDocsDemoPageComponent = class SkyDocsDemoPageComponent {
|
|
|
2776
2887
|
});
|
|
2777
2888
|
}
|
|
2778
2889
|
updateTitle() {
|
|
2890
|
+
/*istanbul ignore else*/
|
|
2779
2891
|
if (this.pageTitle) {
|
|
2780
2892
|
this.titleService.setTitle(this.pageTitle, 'Components');
|
|
2781
2893
|
}
|
|
@@ -2790,93 +2902,80 @@ let SkyDocsDemoPageComponent = class SkyDocsDemoPageComponent {
|
|
|
2790
2902
|
return url;
|
|
2791
2903
|
}
|
|
2792
2904
|
}
|
|
2793
|
-
}
|
|
2794
|
-
SkyDocsDemoPageComponent
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
{ type:
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
]
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
],
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
],
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
],
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
],
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
}
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
SkyDocsDemoPageTypeDefinitionsComponent = __decorate([
|
|
2868
|
-
Component({
|
|
2869
|
-
selector: 'sky-docs-demo-page-type-definitions',
|
|
2870
|
-
template: "<ng-template [ngIf]=\"types\">\n <sky-docs-demo-page-section *ngIf=\"types.components.length\"\n heading=\"Components\"\n >\n <sky-docs-directive-definition *ngFor=\"let config of types.components\"\n [config]=\"config\"\n ></sky-docs-directive-definition>\n </sky-docs-demo-page-section>\n\n <sky-docs-demo-page-section *ngIf=\"types.directives.length\"\n heading=\"Directives\"\n >\n <sky-docs-directive-definition *ngFor=\"let config of types.directives\"\n [config]=\"config\"\n ></sky-docs-directive-definition>\n </sky-docs-demo-page-section>\n\n <sky-docs-demo-page-section *ngIf=\"types.pipes.length\"\n heading=\"Pipes\"\n >\n <sky-docs-pipe-definition *ngFor=\"let config of types.pipes\"\n [config]=\"config\"\n ></sky-docs-pipe-definition>\n </sky-docs-demo-page-section>\n\n <sky-docs-demo-page-section *ngIf=\"types.services.length\"\n heading=\"Services\"\n >\n <sky-docs-class-definition *ngFor=\"let config of types.services\"\n [config]=\"config\"\n ></sky-docs-class-definition>\n </sky-docs-demo-page-section>\n\n <sky-docs-demo-page-section *ngIf=\"types.classes.length\"\n heading=\"Classes\"\n >\n <sky-docs-class-definition *ngFor=\"let config of types.classes\"\n [config]=\"config\"\n ></sky-docs-class-definition>\n </sky-docs-demo-page-section>\n\n <sky-docs-demo-page-section *ngIf=\"types.interfaces.length\"\n heading=\"Interfaces\"\n >\n <sky-docs-interface-definition *ngFor=\"let config of types.interfaces\"\n [config]=\"config\"\n ></sky-docs-interface-definition>\n </sky-docs-demo-page-section>\n\n <sky-docs-demo-page-section *ngIf=\"types.enumerations.length\"\n heading=\"Enumerations\"\n >\n <sky-docs-enumeration-definition *ngFor=\"let config of types.enumerations\"\n [config]=\"config\"\n ></sky-docs-enumeration-definition>\n </sky-docs-demo-page-section>\n\n <sky-docs-demo-page-section *ngIf=\"types.typeAliases.length\"\n heading=\"Type aliases\"\n >\n <sky-docs-type-alias-definition *ngFor=\"let config of types.typeAliases\"\n [config]=\"config\"\n ></sky-docs-type-alias-definition>\n </sky-docs-demo-page-section>\n</ng-template>",
|
|
2871
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2872
|
-
})
|
|
2873
|
-
], SkyDocsDemoPageTypeDefinitionsComponent);
|
|
2874
|
-
|
|
2875
|
-
let SkyDocsDemoPageModule = class SkyDocsDemoPageModule {
|
|
2876
|
-
};
|
|
2877
|
-
SkyDocsDemoPageModule = __decorate([
|
|
2878
|
-
NgModule({
|
|
2879
|
-
imports: [
|
|
2905
|
+
}
|
|
2906
|
+
SkyDocsDemoPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoPageComponent, deps: [{ token: i1$3.ActivatedRoute }, { token: i0.ChangeDetectorRef }, { token: i1$3.Router }, { token: i2$5.SkyAppConfig }, { token: SkyDocsDemoPageDomAdapterService }, { token: SkyDocsSupportalService }, { token: SkyDocsDemoPageTitleService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2907
|
+
SkyDocsDemoPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsDemoPageComponent, selector: "sky-docs-demo-page", inputs: { additionalSourceCodePaths: "additionalSourceCodePaths", gitRepoUrl: "gitRepoUrl", moduleName: "moduleName", moduleSourceCodePath: "moduleSourceCodePath", packageName: "packageName", packageUrl: "packageUrl", pageTitle: "pageTitle" }, providers: [
|
|
2908
|
+
SkyDocsDemoPageDomAdapterService
|
|
2909
|
+
], queries: [{ propertyName: "designGuidelinesComponent", first: true, predicate: SkyDocsDesignGuidelinesComponent, descendants: true }, { propertyName: "codeExampleComponents", predicate: SkyDocsCodeExamplesComponent }], ngImport: i0, template: "<div class=\"sky-docs-demo-page\">\n <stache\n layout=\"sidebar\"\n [pageTitle]=\"pageTitle\"\n [showBreadcrumbs]=\"false\"\n [showTableOfContents]=\"false\"\n [sidebarRoutes]=\"sidebarRoutes\"\n >\n <ng-content\n select=\"sky-docs-demo-page-summary\"\n ></ng-content>\n\n <ng-content\n select=\"sky-docs-demo\"\n ></ng-content>\n\n <div\n class=\"sky-docs-demo-page-main\"\n >\n <sky-tabset *ngIf=\"enableTabLayout else content\"\n permalinkId=\"docs\"\n >\n <sky-tab tabHeading=\"Design\">\n <ng-content\n select=\"sky-docs-design-guidelines\"\n ></ng-content>\n </sky-tab>\n\n <sky-tab tabHeading=\"Development\">\n <ng-container\n [ngTemplateOutlet]=\"content\"\n ></ng-container>\n </sky-tab>\n </sky-tabset>\n </div>\n </stache>\n</div>\n\n<ng-template #content>\n <sky-docs-demo-page-section *ngIf=\"moduleName\"\n heading=\"Installation\"\n >\n <sky-docs-module-info\n [gitRepoUrl]=\"gitRepoUrl\"\n [moduleName]=\"moduleName\"\n [packageName]=\"packageName\"\n [packageUrl]=\"packageUrl\"\n >\n <ng-content\n select=\"sky-docs-demo-page-module-info\"\n ></ng-content>\n </sky-docs-module-info>\n </sky-docs-demo-page-section>\n\n <ng-content></ng-content>\n\n <sky-docs-demo-page-type-definitions\n [additionalSourceCodePaths]=\"additionalSourceCodePaths\"\n [moduleSourceCodePath]=\"moduleSourceCodePath\"\n >\n </sky-docs-demo-page-type-definitions>\n\n <sky-docs-demo-page-section *ngIf=\"enableCodeExamples\"\n heading=\"Code examples\"\n >\n <ng-content\n select=\"sky-docs-code-examples\"\n ></ng-content>\n </sky-docs-demo-page-section>\n</ng-template>", styles: [".sky-docs-demo-page ::ng-deep p{margin:15px 0}.sky-docs-demo-page ::ng-deep .stache-max-width-container{max-width:none;margin:0}.sky-docs-demo-page ::ng-deep .sky-docs-code-block{margin:15px 0;display:block}.sky-docs-demo-page ::ng-deep .sky-docs-code-block .sky-code-block{font-size:13.5px}.sky-docs-demo-page ::ng-deep .sky-docs-code-block .sky-code-output{margin:-2px 0 0;padding:0 0 0 15px;background:transparent;border:0}.sky-docs-demo-page ::ng-deep .sky-definition-list{margin:0}.sky-docs-demo-page ::ng-deep .sky-definition-list .sky-docs-code-block{margin:0}.sky-docs-demo-page ::ng-deep .sky-docs-type-definition-wrapper{margin-bottom:40px}.sky-docs-demo-page-main{padding:30px 0}.sky-docs-demo-page-main table{margin-top:15px;margin-bottom:15px}.sky-docs-demo-page-main ::ng-deep .sky-tabset{margin-left:-45px;margin-right:-45px;padding-left:45px;padding-right:45px}\n"], components: [{ type: i6$1.λ30, selector: "stache", inputs: ["pageTitle", "windowTitle", "navTitle", "layout", "sidebarRoutes", "breadcrumbsRoutes", "showBreadcrumbs", "showEditButton", "showFooter", "showTableOfContents", "showBackToTop", "showInNav", "inPageRoutes"] }, { type: i4.λ2, selector: "sky-tabset", inputs: ["active", "ariaLabel", "ariaLabelledBy", "permalinkId", "tabStyle"], outputs: ["activeChange", "newTab", "openTab", "tabIndexesChange"] }, { type: i4.λ1, selector: "sky-tab", inputs: ["active", "disabled", "permalinkValue", "tabHeaderCount", "tabHeading", "tabIndex"], outputs: ["close"] }, { type: SkyDocsDemoPageSectionComponent, selector: "sky-docs-demo-page-section", inputs: ["heading"] }, { type: SkyDocsModuleInfoComponent, selector: "sky-docs-module-info", inputs: ["gitRepoUrl", "moduleName", "packageName", "packageUrl"] }, { type: SkyDocsDemoPageTypeDefinitionsComponent, selector: "sky-docs-demo-page-type-definitions", inputs: ["additionalSourceCodePaths", "moduleSourceCodePath"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2910
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoPageComponent, decorators: [{
|
|
2911
|
+
type: Component,
|
|
2912
|
+
args: [{
|
|
2913
|
+
selector: 'sky-docs-demo-page',
|
|
2914
|
+
templateUrl: './demo-page.component.html',
|
|
2915
|
+
styleUrls: ['./demo-page.component.scss'],
|
|
2916
|
+
providers: [
|
|
2917
|
+
SkyDocsDemoPageDomAdapterService
|
|
2918
|
+
],
|
|
2919
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2920
|
+
}]
|
|
2921
|
+
}], ctorParameters: function () { return [{ type: i1$3.ActivatedRoute }, { type: i0.ChangeDetectorRef }, { type: i1$3.Router }, { type: i2$5.SkyAppConfig }, { type: SkyDocsDemoPageDomAdapterService }, { type: SkyDocsSupportalService }, { type: SkyDocsDemoPageTitleService }]; }, propDecorators: { additionalSourceCodePaths: [{
|
|
2922
|
+
type: Input
|
|
2923
|
+
}], gitRepoUrl: [{
|
|
2924
|
+
type: Input
|
|
2925
|
+
}], moduleName: [{
|
|
2926
|
+
type: Input
|
|
2927
|
+
}], moduleSourceCodePath: [{
|
|
2928
|
+
type: Input
|
|
2929
|
+
}], packageName: [{
|
|
2930
|
+
type: Input
|
|
2931
|
+
}], packageUrl: [{
|
|
2932
|
+
type: Input
|
|
2933
|
+
}], pageTitle: [{
|
|
2934
|
+
type: Input
|
|
2935
|
+
}], designGuidelinesComponent: [{
|
|
2936
|
+
type: ContentChild,
|
|
2937
|
+
args: [SkyDocsDesignGuidelinesComponent]
|
|
2938
|
+
}], codeExampleComponents: [{
|
|
2939
|
+
type: ContentChildren,
|
|
2940
|
+
args: [SkyDocsCodeExamplesComponent]
|
|
2941
|
+
}] } });
|
|
2942
|
+
|
|
2943
|
+
class SkyDocsDemoPageModuleInfoComponent {
|
|
2944
|
+
}
|
|
2945
|
+
SkyDocsDemoPageModuleInfoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoPageModuleInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2946
|
+
SkyDocsDemoPageModuleInfoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsDemoPageModuleInfoComponent, selector: "sky-docs-demo-page-module-info", ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
|
|
2947
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoPageModuleInfoComponent, decorators: [{
|
|
2948
|
+
type: Component,
|
|
2949
|
+
args: [{
|
|
2950
|
+
selector: 'sky-docs-demo-page-module-info',
|
|
2951
|
+
template: '<ng-content></ng-content>'
|
|
2952
|
+
}]
|
|
2953
|
+
}] });
|
|
2954
|
+
|
|
2955
|
+
class SkyDocsDemoPageModule {
|
|
2956
|
+
}
|
|
2957
|
+
SkyDocsDemoPageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoPageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2958
|
+
SkyDocsDemoPageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoPageModule, declarations: [SkyDocsDemoPageComponent,
|
|
2959
|
+
SkyDocsDemoPageModuleInfoComponent,
|
|
2960
|
+
SkyDocsDemoPageSectionComponent,
|
|
2961
|
+
SkyDocsDemoPageSummaryComponent,
|
|
2962
|
+
SkyDocsDemoPageTypeDefinitionsComponent], imports: [CommonModule,
|
|
2963
|
+
RouterModule,
|
|
2964
|
+
SkyCodeBlockModule,
|
|
2965
|
+
SkyCodeModule,
|
|
2966
|
+
SkyDocsDemoModule,
|
|
2967
|
+
SkyDocsHeadingAnchorModule,
|
|
2968
|
+
SkyDocsMarkdownModule,
|
|
2969
|
+
SkyDocsModuleInfoModule,
|
|
2970
|
+
SkyDocsTypeDefinitionsModule,
|
|
2971
|
+
SkyTabsModule,
|
|
2972
|
+
StachePageSummaryModule,
|
|
2973
|
+
StacheWrapperModule], exports: [SkyDocsDemoPageComponent,
|
|
2974
|
+
SkyDocsDemoPageModuleInfoComponent,
|
|
2975
|
+
SkyDocsDemoPageSectionComponent,
|
|
2976
|
+
SkyDocsDemoPageSummaryComponent,
|
|
2977
|
+
SkyDocsDemoPageTypeDefinitionsComponent] });
|
|
2978
|
+
SkyDocsDemoPageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoPageModule, imports: [[
|
|
2880
2979
|
CommonModule,
|
|
2881
2980
|
RouterModule,
|
|
2882
2981
|
SkyCodeBlockModule,
|
|
@@ -2889,109 +2988,125 @@ SkyDocsDemoPageModule = __decorate([
|
|
|
2889
2988
|
SkyTabsModule,
|
|
2890
2989
|
StachePageSummaryModule,
|
|
2891
2990
|
StacheWrapperModule
|
|
2892
|
-
]
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2991
|
+
]] });
|
|
2992
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDemoPageModule, decorators: [{
|
|
2993
|
+
type: NgModule,
|
|
2994
|
+
args: [{
|
|
2995
|
+
imports: [
|
|
2996
|
+
CommonModule,
|
|
2997
|
+
RouterModule,
|
|
2998
|
+
SkyCodeBlockModule,
|
|
2999
|
+
SkyCodeModule,
|
|
3000
|
+
SkyDocsDemoModule,
|
|
3001
|
+
SkyDocsHeadingAnchorModule,
|
|
3002
|
+
SkyDocsMarkdownModule,
|
|
3003
|
+
SkyDocsModuleInfoModule,
|
|
3004
|
+
SkyDocsTypeDefinitionsModule,
|
|
3005
|
+
SkyTabsModule,
|
|
3006
|
+
StachePageSummaryModule,
|
|
3007
|
+
StacheWrapperModule
|
|
3008
|
+
],
|
|
3009
|
+
declarations: [
|
|
3010
|
+
SkyDocsDemoPageComponent,
|
|
3011
|
+
SkyDocsDemoPageModuleInfoComponent,
|
|
3012
|
+
SkyDocsDemoPageSectionComponent,
|
|
3013
|
+
SkyDocsDemoPageSummaryComponent,
|
|
3014
|
+
SkyDocsDemoPageTypeDefinitionsComponent
|
|
3015
|
+
],
|
|
3016
|
+
exports: [
|
|
3017
|
+
SkyDocsDemoPageComponent,
|
|
3018
|
+
SkyDocsDemoPageModuleInfoComponent,
|
|
3019
|
+
SkyDocsDemoPageSectionComponent,
|
|
3020
|
+
SkyDocsDemoPageSummaryComponent,
|
|
3021
|
+
SkyDocsDemoPageTypeDefinitionsComponent
|
|
3022
|
+
]
|
|
3023
|
+
}]
|
|
3024
|
+
}] });
|
|
3025
|
+
|
|
3026
|
+
class SkyDocsThumbnailComponent {
|
|
2914
3027
|
constructor() {
|
|
2915
3028
|
this.showBorder = false;
|
|
2916
3029
|
}
|
|
2917
|
-
}
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
],
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
};
|
|
2947
|
-
SkyDocsThumbnailModule =
|
|
2948
|
-
NgModule({
|
|
2949
|
-
imports: [
|
|
3030
|
+
}
|
|
3031
|
+
SkyDocsThumbnailComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsThumbnailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3032
|
+
SkyDocsThumbnailComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsThumbnailComponent, selector: "sky-docs-thumbnail", inputs: { caption: "caption", captionType: "captionType", imageAlt: "imageAlt", imageSource: "imageSource", showBorder: "showBorder", videoSource: "videoSource" }, ngImport: i0, template: "<div class=\"sky-docs-thumbnail\">\n <sky-image *ngIf=\"imageSource\"\n [caption]=\"caption\"\n [captionType]=\"captionType\"\n [imageAlt]=\"imageAlt\"\n [imageSource]=\"imageSource\"\n [showBorder]=\"showBorder\"\n [showCaptionPrefix]=\"false\"\n ></sky-image>\n <div *ngIf=\"videoSource\"\n class=\"sky-docs-video\"\n [ngClass]=\"{\n 'sky-docs-video-border': showBorder\n }\"\n >\n <video controls>\n <source\n [attr.src]=\"videoSource\"\n type=\"video/mp4\"\n />\n </video>\n </div>\n</div>\n", styles: [".sky-docs-thumbnail{margin-bottom:50px}.sky-docs-video video{max-width:100%}.sky-docs-video-border video{border-top:1px solid #e2e3e4;border-right:1px solid #e2e3e4;border-bottom:1px solid #e2e3e4;border-left:1px solid #e2e3e4}\n"], components: [{ type: i2$2.λ4, selector: "sky-image", inputs: ["caption", "captionType", "imageAlt", "imageSource", "showBorder", "showCaptionPrefix"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3033
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsThumbnailComponent, decorators: [{
|
|
3034
|
+
type: Component,
|
|
3035
|
+
args: [{
|
|
3036
|
+
selector: 'sky-docs-thumbnail',
|
|
3037
|
+
templateUrl: './thumbnail.component.html',
|
|
3038
|
+
styleUrls: ['./thumbnail.component.scss'],
|
|
3039
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
3040
|
+
}]
|
|
3041
|
+
}], propDecorators: { caption: [{
|
|
3042
|
+
type: Input
|
|
3043
|
+
}], captionType: [{
|
|
3044
|
+
type: Input
|
|
3045
|
+
}], imageAlt: [{
|
|
3046
|
+
type: Input
|
|
3047
|
+
}], imageSource: [{
|
|
3048
|
+
type: Input
|
|
3049
|
+
}], showBorder: [{
|
|
3050
|
+
type: Input
|
|
3051
|
+
}], videoSource: [{
|
|
3052
|
+
type: Input
|
|
3053
|
+
}] } });
|
|
3054
|
+
|
|
3055
|
+
class SkyDocsThumbnailModule {
|
|
3056
|
+
}
|
|
3057
|
+
SkyDocsThumbnailModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsThumbnailModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3058
|
+
SkyDocsThumbnailModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsThumbnailModule, declarations: [SkyDocsThumbnailComponent], imports: [CommonModule,
|
|
3059
|
+
SkyImageModule], exports: [SkyDocsThumbnailComponent] });
|
|
3060
|
+
SkyDocsThumbnailModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsThumbnailModule, imports: [[
|
|
2950
3061
|
CommonModule,
|
|
2951
3062
|
SkyImageModule
|
|
2952
|
-
]
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
3063
|
+
]] });
|
|
3064
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsThumbnailModule, decorators: [{
|
|
3065
|
+
type: NgModule,
|
|
3066
|
+
args: [{
|
|
3067
|
+
imports: [
|
|
3068
|
+
CommonModule,
|
|
3069
|
+
SkyImageModule
|
|
3070
|
+
],
|
|
3071
|
+
exports: [
|
|
3072
|
+
SkyDocsThumbnailComponent
|
|
3073
|
+
],
|
|
3074
|
+
declarations: [
|
|
3075
|
+
SkyDocsThumbnailComponent
|
|
3076
|
+
]
|
|
3077
|
+
}]
|
|
3078
|
+
}] });
|
|
3079
|
+
|
|
3080
|
+
class SkyDocsDesignGuidelineThumbnailComponent {
|
|
2963
3081
|
constructor() {
|
|
2964
3082
|
this.showBorder = false;
|
|
2965
3083
|
}
|
|
2966
|
-
}
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
],
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
], SkyDocsDesignGuidelineThumbnailComponent);
|
|
2993
|
-
|
|
2994
|
-
let SkyDocsDesignGuidelineComponent = class SkyDocsDesignGuidelineComponent {
|
|
3084
|
+
}
|
|
3085
|
+
SkyDocsDesignGuidelineThumbnailComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDesignGuidelineThumbnailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3086
|
+
SkyDocsDesignGuidelineThumbnailComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsDesignGuidelineThumbnailComponent, selector: "sky-docs-design-guideline-thumbnail", inputs: { caption: "caption", captionType: "captionType", imageAlt: "imageAlt", imageSource: "imageSource", videoSource: "videoSource", showBorder: "showBorder" }, ngImport: i0, template: "<div class=\"sky-docs-design-guideline-thumbnail\">\n <sky-docs-thumbnail\n [caption]=\"caption\"\n [captionType]=\"captionType\"\n [imageAlt]=\"imageAlt\"\n [imageSource]=\"imageSource\"\n [videoSource]=\"videoSource\"\n [showBorder]=\"showBorder\"\n ></sky-docs-thumbnail>\n</div>\n", styles: [".sky-docs-design-guideline-thumbnail{margin-bottom:50px}.sky-docs-design-guideline-video video{max-width:100%}.sky-docs-design-guideline-video-border video{border-top:1px solid #e2e3e4;border-right:1px solid #e2e3e4;border-bottom:1px solid #e2e3e4;border-left:1px solid #e2e3e4}\n"], components: [{ type: SkyDocsThumbnailComponent, selector: "sky-docs-thumbnail", inputs: ["caption", "captionType", "imageAlt", "imageSource", "showBorder", "videoSource"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3087
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDesignGuidelineThumbnailComponent, decorators: [{
|
|
3088
|
+
type: Component,
|
|
3089
|
+
args: [{
|
|
3090
|
+
selector: 'sky-docs-design-guideline-thumbnail',
|
|
3091
|
+
templateUrl: './design-guideline-thumbnail.component.html',
|
|
3092
|
+
styleUrls: ['./design-guideline-thumbnail.component.scss'],
|
|
3093
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
3094
|
+
}]
|
|
3095
|
+
}], propDecorators: { caption: [{
|
|
3096
|
+
type: Input
|
|
3097
|
+
}], captionType: [{
|
|
3098
|
+
type: Input
|
|
3099
|
+
}], imageAlt: [{
|
|
3100
|
+
type: Input
|
|
3101
|
+
}], imageSource: [{
|
|
3102
|
+
type: Input
|
|
3103
|
+
}], videoSource: [{
|
|
3104
|
+
type: Input
|
|
3105
|
+
}], showBorder: [{
|
|
3106
|
+
type: Input
|
|
3107
|
+
}] } });
|
|
3108
|
+
|
|
3109
|
+
class SkyDocsDesignGuidelineComponent {
|
|
2995
3110
|
constructor() {
|
|
2996
3111
|
this.headingStyle = 'default';
|
|
2997
3112
|
this.hasThumbnails = false;
|
|
@@ -3004,71 +3119,97 @@ let SkyDocsDesignGuidelineComponent = class SkyDocsDesignGuidelineComponent {
|
|
|
3004
3119
|
ngAfterContentInit() {
|
|
3005
3120
|
this.hasThumbnails = !!this.thumbnails.length;
|
|
3006
3121
|
}
|
|
3007
|
-
}
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
]
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3122
|
+
}
|
|
3123
|
+
SkyDocsDesignGuidelineComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDesignGuidelineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3124
|
+
SkyDocsDesignGuidelineComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyDocsDesignGuidelineComponent, selector: "sky-docs-design-guideline", inputs: { heading: "heading", headingStyle: "headingStyle" }, queries: [{ propertyName: "thumbnails", predicate: SkyDocsDesignGuidelineThumbnailComponent }], ngImport: i0, template: "<div class=\"sky-docs-design-guideline\">\n <h3 *ngIf=\"heading\"\n class=\"sky-docs-design-guideline-heading\"\n [ngClass]=\"classNames\"\n >\n {{ heading }}\n </h3>\n <sky-row *ngIf=\"hasThumbnails; else content\">\n <sky-column\n screenSmall=\"6\"\n screenMedium=\"5\"\n screenLarge=\"4\"\n >\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </sky-column>\n <sky-column\n screenSmall=\"6\"\n screenMedium=\"7\"\n screenLarge=\"8\"\n >\n <div class=\"sky-docs-design-guideline-thumbnails\">\n <ng-container *ngTemplateOutlet=\"thumbnails\"></ng-container>\n </div>\n </sky-column>\n </sky-row>\n</div>\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n\n<ng-template #thumbnails>\n <ng-content select=\"sky-docs-design-guideline-thumbnail\"></ng-content>\n</ng-template>\n", styles: [".sky-docs-design-guideline-heading{line-height:1.1;font-family:\"BLKB Sans\",\"Helvetica Neue\",Arial,sans-serif;color:#212327;margin:30px 0 15px;font-size:19px;font-weight:400}.sky-docs-design-guideline-thumbnails{display:flex;flex-wrap:wrap}.sky-docs-design-guideline-thumbnails ::ng-deep sky-docs-design-guideline-thumbnail:first-child{padding-right:20px}\n"], components: [{ type: i2$1.λ23, selector: "sky-row", inputs: ["reverseColumnOrder"] }, { type: i2$1.λ24, selector: "sky-column", inputs: ["screenXSmall", "screenSmall", "screenMedium", "screenLarge"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDesignGuidelineComponent, decorators: [{
|
|
3126
|
+
type: Component,
|
|
3127
|
+
args: [{
|
|
3128
|
+
selector: 'sky-docs-design-guideline',
|
|
3129
|
+
templateUrl: './design-guideline.component.html',
|
|
3130
|
+
styleUrls: ['./design-guideline.component.scss'],
|
|
3131
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
3132
|
+
}]
|
|
3133
|
+
}], propDecorators: { heading: [{
|
|
3134
|
+
type: Input
|
|
3135
|
+
}], headingStyle: [{
|
|
3136
|
+
type: Input
|
|
3137
|
+
}], thumbnails: [{
|
|
3138
|
+
type: ContentChildren,
|
|
3139
|
+
args: [SkyDocsDesignGuidelineThumbnailComponent]
|
|
3140
|
+
}] } });
|
|
3141
|
+
|
|
3142
|
+
class SkyDocsDesignGuidelinesModule {
|
|
3143
|
+
}
|
|
3144
|
+
SkyDocsDesignGuidelinesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDesignGuidelinesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3145
|
+
SkyDocsDesignGuidelinesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDesignGuidelinesModule, declarations: [SkyDocsDesignGuidelineComponent,
|
|
3146
|
+
SkyDocsDesignGuidelineThumbnailComponent,
|
|
3147
|
+
SkyDocsDesignGuidelinesComponent], imports: [CommonModule,
|
|
3148
|
+
SkyDocsThumbnailModule,
|
|
3149
|
+
SkyFluidGridModule], exports: [SkyDocsDesignGuidelineComponent,
|
|
3150
|
+
SkyDocsDesignGuidelineThumbnailComponent,
|
|
3151
|
+
SkyDocsDesignGuidelinesComponent] });
|
|
3152
|
+
SkyDocsDesignGuidelinesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDesignGuidelinesModule, imports: [[
|
|
3031
3153
|
CommonModule,
|
|
3032
3154
|
SkyDocsThumbnailModule,
|
|
3033
3155
|
SkyFluidGridModule
|
|
3034
|
-
]
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3156
|
+
]] });
|
|
3157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsDesignGuidelinesModule, decorators: [{
|
|
3158
|
+
type: NgModule,
|
|
3159
|
+
args: [{
|
|
3160
|
+
imports: [
|
|
3161
|
+
CommonModule,
|
|
3162
|
+
SkyDocsThumbnailModule,
|
|
3163
|
+
SkyFluidGridModule
|
|
3164
|
+
],
|
|
3165
|
+
declarations: [
|
|
3166
|
+
SkyDocsDesignGuidelineComponent,
|
|
3167
|
+
SkyDocsDesignGuidelineThumbnailComponent,
|
|
3168
|
+
SkyDocsDesignGuidelinesComponent
|
|
3169
|
+
],
|
|
3170
|
+
exports: [
|
|
3171
|
+
SkyDocsDesignGuidelineComponent,
|
|
3172
|
+
SkyDocsDesignGuidelineThumbnailComponent,
|
|
3173
|
+
SkyDocsDesignGuidelinesComponent
|
|
3174
|
+
]
|
|
3175
|
+
}]
|
|
3176
|
+
}] });
|
|
3047
3177
|
|
|
3048
3178
|
/**
|
|
3049
3179
|
* This module conveniently exports the most commonly used modules.
|
|
3050
3180
|
*/
|
|
3051
|
-
|
|
3052
|
-
}
|
|
3053
|
-
SkyDocsToolsModule =
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
]
|
|
3066
|
-
|
|
3067
|
-
|
|
3181
|
+
class SkyDocsToolsModule {
|
|
3182
|
+
}
|
|
3183
|
+
SkyDocsToolsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsToolsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3184
|
+
SkyDocsToolsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsToolsModule, exports: [SkyAuthHttpClientModule,
|
|
3185
|
+
SkyDocsAnatomyModule,
|
|
3186
|
+
SkyDocsCodeExamplesModule,
|
|
3187
|
+
SkyDocsDemoModule,
|
|
3188
|
+
SkyDocsDemoPageModule,
|
|
3189
|
+
SkyDocsDesignGuidelinesModule] });
|
|
3190
|
+
SkyDocsToolsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsToolsModule, imports: [SkyAuthHttpClientModule,
|
|
3191
|
+
SkyDocsAnatomyModule,
|
|
3192
|
+
SkyDocsCodeExamplesModule,
|
|
3193
|
+
SkyDocsDemoModule,
|
|
3194
|
+
SkyDocsDemoPageModule,
|
|
3195
|
+
SkyDocsDesignGuidelinesModule] });
|
|
3196
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyDocsToolsModule, decorators: [{
|
|
3197
|
+
type: NgModule,
|
|
3198
|
+
args: [{
|
|
3199
|
+
exports: [
|
|
3200
|
+
SkyAuthHttpClientModule,
|
|
3201
|
+
SkyDocsAnatomyModule,
|
|
3202
|
+
SkyDocsCodeExamplesModule,
|
|
3203
|
+
SkyDocsDemoModule,
|
|
3204
|
+
SkyDocsDemoPageModule,
|
|
3205
|
+
SkyDocsDesignGuidelinesModule
|
|
3206
|
+
]
|
|
3207
|
+
}]
|
|
3208
|
+
}] });
|
|
3068
3209
|
|
|
3069
3210
|
/**
|
|
3070
3211
|
* Generated bundle index. Do not edit.
|
|
3071
3212
|
*/
|
|
3072
3213
|
|
|
3073
|
-
export { SkyDocsAnatomyModule, SkyDocsCodeExampleTheme, SkyDocsCodeExamplesModule, SkyDocsDemoModule, SkyDocsDemoPageModule, SkyDocsDesignGuidelinesModule, SkyDocsHeadingAnchorModule, SkyDocsMarkdownModule, SkyDocsMarkdownPipe, SkyDocsModuleInfoModule, SkyDocsSourceCodeProvider, SkyDocsSupportalService, SkyDocsThumbnailModule, SkyDocsToolsModule, SkyDocsToolsOptions, SkyDocsTypeDefinitionsModule, SkyDocsTypeDefinitionsProvider, SkyDocsTypeDefinitionsService,
|
|
3214
|
+
export { SkyDocsAnatomyModule, SkyDocsCodeExampleTheme, SkyDocsCodeExamplesModule, SkyDocsDemoModule, SkyDocsDemoPageModule, SkyDocsDesignGuidelinesModule, SkyDocsHeadingAnchorModule, SkyDocsMarkdownModule, SkyDocsMarkdownPipe, SkyDocsModuleInfoModule, SkyDocsSourceCodeProvider, SkyDocsSupportalService, SkyDocsThumbnailModule, SkyDocsToolsModule, SkyDocsToolsOptions, SkyDocsTypeDefinitionsModule, SkyDocsTypeDefinitionsProvider, SkyDocsTypeDefinitionsService, SkyDocsAnatomyItemComponent as λ1, SkyDocsDemoPageModuleInfoComponent as λ10, SkyDocsDemoPageSectionComponent as λ11, SkyDocsDemoPageSummaryComponent as λ12, SkyDocsDemoPageTypeDefinitionsComponent as λ13, SkyDocsDemoPageComponent as λ14, SkyDocsDesignGuidelineThumbnailComponent as λ15, SkyDocsDesignGuidelineComponent as λ16, SkyDocsDesignGuidelinesComponent as λ17, SkyDocsHeadingAnchorComponent as λ18, SkyDocsModuleInfoComponent as λ19, SkyDocsAnatomyComponent as λ2, SkyDocsThumbnailComponent as λ20, SkyDocsCallSignatureDefinitionComponent as λ21, SkyDocsClassDefinitionComponent as λ22, SkyDocsDirectiveDefinitionComponent as λ23, SkyDocsEnumerationDefinitionComponent as λ24, SkyDocsInterfaceDefinitionComponent as λ25, SkyDocsMethodDefinitionsComponent as λ26, SkyDocsPipeDefinitionComponent as λ27, SkyDocsPropertyDefinitionsComponent as λ28, SkyDocsTypeAliasDefinitionComponent as λ29, SkyDocsCodeExampleComponent as λ3, SkyDocsTypeAnchorLinksPipe as λ30, SkyDocsCodeExamplesComponent as λ4, SkyDocsDemoControlPanelCheckboxComponent as λ5, SkyDocsDemoControlPanelRadioGroupComponent as λ6, SkyDocsDemoControlPanelSectionComponent as λ7, SkyDocsDemoControlPanelComponent as λ8, SkyDocsDemoComponent as λ9 };
|
|
3074
3215
|
//# sourceMappingURL=skyux-docs-tools.js.map
|