@skyux/docs-tools 5.0.0-beta.1 → 5.0.0-beta.5
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 +1946 -1732
- package/bundles/skyux-docs-tools.umd.js.map +1 -1
- package/docs-tools.module.d.ts +10 -0
- package/documentation.json +10696 -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 +31 -23
- package/esm2015/modules/code-examples/code-examples.component.js +28 -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 +25 -19
- package/esm2015/modules/demo-page/demo-page.component.js +51 -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 +15 -15
- package/esm2015/modules/type-definitions/type-parameter-definition.js +2 -1
- package/esm2015/modules/type-definitions/typedoc-adapter.service.js +46 -22
- 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 +1529 -1411
- 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-examples-editor.service.d.ts +3 -0
- package/modules/code-examples/code-examples.component.d.ts +3 -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 +3 -0
- package/modules/demo-page/demo-page.component.d.ts +3 -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 +3 -0
- package/modules/type-definitions/typedoc-adapter.service.d.ts +3 -0
- package/package.json +22 -34
- package/public-api.d.ts +63 -0
- package/skyux-docs-tools.d.ts +2 -45
- package/CHANGELOG.md +0 -403
- 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.13", ngImport: i0, type: SkyDocsAnatomyItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
51
|
+
SkyDocsAnatomyItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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.13", 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.13", ngImport: i0, type: SkyDocsAnatomyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
72
|
+
SkyDocsAnatomyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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.13", 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.13", ngImport: i0, type: SkyDocsAnatomyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
91
|
+
SkyDocsAnatomyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", 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.13", 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.13", 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.13", ngImport: i0, type: SkyDocsToolsResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
140
|
+
SkyDocsToolsResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsToolsResourcesModule, exports: [SkyI18nModule] });
|
|
141
|
+
SkyDocsToolsResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", 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.13", 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.13", 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.13", 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.13", 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';
|
|
252
238
|
const defaultDependencies = {
|
|
253
239
|
'@angular/animations': angularVersion,
|
|
254
240
|
'@angular/common': angularVersion,
|
|
@@ -272,10 +258,8 @@ 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);
|
|
@@ -298,8 +282,7 @@ let SkyDocsCodeExamplesEditorService = class SkyDocsCodeExamplesEditorService {
|
|
|
298
282
|
const appPath = `${srcPath}app/`;
|
|
299
283
|
const banner = `/**
|
|
300
284
|
* This file is needed for the StackBlitz demo only.
|
|
301
|
-
* It is automatically
|
|
302
|
-
* Visit https://developer.blackbaud/skyux for more information
|
|
285
|
+
* It is automatically provided when using the Angular CLI.
|
|
303
286
|
**/
|
|
304
287
|
`;
|
|
305
288
|
const moduleImportStatements = [
|
|
@@ -401,7 +384,7 @@ export class AppModule { }
|
|
|
401
384
|
This is a workaround for a known bug that prevents external imports in CSS.
|
|
402
385
|
https://github.com/stackblitz/core/issues/133
|
|
403
386
|
-->
|
|
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/
|
|
387
|
+
<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
388
|
|
|
406
389
|
<sky-demo-app>
|
|
407
390
|
Loading...
|
|
@@ -430,9 +413,7 @@ platformBrowserDynamic().bootstrapModule(AppModule).then(ref => {
|
|
|
430
413
|
}).catch(err => console.error(err));
|
|
431
414
|
`;
|
|
432
415
|
files[`${srcPath}polyfills.ts`] = `${banner}
|
|
433
|
-
import '
|
|
434
|
-
import 'core-js/es7/reflect';
|
|
435
|
-
import 'zone.js/dist/zone';
|
|
416
|
+
import 'zone.js';
|
|
436
417
|
`;
|
|
437
418
|
files[`${srcPath}styles.scss`] = `@import '~@skyux/theme/css/sky';
|
|
438
419
|
${theme === SkyDocsCodeExampleTheme.Modern ? `@import '~@skyux/theme/css/themes/modern/styles';` : ``}
|
|
@@ -461,15 +442,24 @@ body {
|
|
|
461
442
|
}, undefined, 2);
|
|
462
443
|
files['tsconfig.json'] = `{
|
|
463
444
|
"compilerOptions": {
|
|
464
|
-
"target": "
|
|
445
|
+
"target": "es2017",
|
|
446
|
+
"module": "es2020",
|
|
465
447
|
"moduleResolution": "node",
|
|
466
448
|
"emitDecoratorMetadata": true,
|
|
467
449
|
"experimentalDecorators": true,
|
|
468
450
|
"importHelpers": true,
|
|
451
|
+
"typeRoots": ["node_modules/@types"],
|
|
469
452
|
"lib": [
|
|
470
|
-
"
|
|
471
|
-
"
|
|
453
|
+
"es2018",
|
|
454
|
+
"dom"
|
|
472
455
|
]
|
|
456
|
+
},
|
|
457
|
+
"angularCompilerOptions": {
|
|
458
|
+
"fullTemplateTypeCheck": true,
|
|
459
|
+
"strictInjectionParameters": true,
|
|
460
|
+
"strictInputAccessModifiers": true,
|
|
461
|
+
"strictTemplates": true,
|
|
462
|
+
"enableIvy": false
|
|
473
463
|
}
|
|
474
464
|
}`;
|
|
475
465
|
return files;
|
|
@@ -503,10 +493,65 @@ body {
|
|
|
503
493
|
const trimmed = found.rawContents.replace(/\s/g, '');
|
|
504
494
|
return trimmed.split(`selector:'`)[1].split(`'`)[0];
|
|
505
495
|
}
|
|
506
|
-
}
|
|
507
|
-
SkyDocsCodeExamplesEditorService =
|
|
508
|
-
|
|
509
|
-
|
|
496
|
+
}
|
|
497
|
+
SkyDocsCodeExamplesEditorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsCodeExamplesEditorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
498
|
+
SkyDocsCodeExamplesEditorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsCodeExamplesEditorService, providedIn: 'root' });
|
|
499
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsCodeExamplesEditorService, decorators: [{
|
|
500
|
+
type: Injectable,
|
|
501
|
+
args: [{
|
|
502
|
+
providedIn: 'root'
|
|
503
|
+
}]
|
|
504
|
+
}] });
|
|
505
|
+
|
|
506
|
+
class SkyDocsSourceCodeProvider {
|
|
507
|
+
}
|
|
508
|
+
SkyDocsSourceCodeProvider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsSourceCodeProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
509
|
+
SkyDocsSourceCodeProvider.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsSourceCodeProvider, providedIn: 'any' });
|
|
510
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsSourceCodeProvider, decorators: [{
|
|
511
|
+
type: Injectable,
|
|
512
|
+
args: [{
|
|
513
|
+
providedIn: 'any'
|
|
514
|
+
}]
|
|
515
|
+
}] });
|
|
516
|
+
|
|
517
|
+
class SkyDocsSourceCodeService {
|
|
518
|
+
constructor(sourceCodeProvider) {
|
|
519
|
+
this.sourceCodeProvider = sourceCodeProvider;
|
|
520
|
+
}
|
|
521
|
+
getSourceCode(path) {
|
|
522
|
+
const sourceCode = this.sourceCodeProvider.sourceCode;
|
|
523
|
+
if (!sourceCode || !sourceCode.length) {
|
|
524
|
+
return [];
|
|
525
|
+
}
|
|
526
|
+
return sourceCode
|
|
527
|
+
.filter(file => file.filePath.indexOf(path) === 0)
|
|
528
|
+
.map(file => {
|
|
529
|
+
// TODO: Remove decoding after migrating to Angular CLI. Code examples will not be encoded for SKY UX 5 libraries.
|
|
530
|
+
// SKY UX 4 libraries will return rawContents encoded, while later libraries will
|
|
531
|
+
// return rawContents decoded. Check if the contents need decoded before returning them.
|
|
532
|
+
let decodedContents;
|
|
533
|
+
try {
|
|
534
|
+
decodedContents = decodeURIComponent(file.rawContents);
|
|
535
|
+
if (decodedContents !== file.rawContents) {
|
|
536
|
+
file.rawContents = decodedContents;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
catch (error) {
|
|
540
|
+
// Pre-decoded contents may contain characters like '%' that would throw errors.
|
|
541
|
+
// In these cases, pass along the original rawContents.
|
|
542
|
+
}
|
|
543
|
+
return file;
|
|
544
|
+
});
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
SkyDocsSourceCodeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsSourceCodeService, deps: [{ token: SkyDocsSourceCodeProvider }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
548
|
+
SkyDocsSourceCodeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsSourceCodeService, providedIn: 'any' });
|
|
549
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsSourceCodeService, decorators: [{
|
|
550
|
+
type: Injectable,
|
|
551
|
+
args: [{
|
|
552
|
+
providedIn: 'any'
|
|
553
|
+
}]
|
|
554
|
+
}], ctorParameters: function () { return [{ type: SkyDocsSourceCodeProvider }]; } });
|
|
510
555
|
|
|
511
556
|
/**
|
|
512
557
|
* Wraps all code examples and handles their configuration and styles.
|
|
@@ -523,7 +568,7 @@ SkyDocsCodeExamplesEditorService = __decorate([
|
|
|
523
568
|
* </sky-docs-code-examples>
|
|
524
569
|
* ```
|
|
525
570
|
*/
|
|
526
|
-
|
|
571
|
+
class SkyDocsCodeExamplesComponent {
|
|
527
572
|
constructor(editorService, sourceCodeService) {
|
|
528
573
|
this.editorService = editorService;
|
|
529
574
|
this.sourceCodeService = sourceCodeService;
|
|
@@ -577,52 +622,64 @@ let SkyDocsCodeExamplesComponent = class SkyDocsCodeExamplesComponent {
|
|
|
577
622
|
return extension;
|
|
578
623
|
}
|
|
579
624
|
}
|
|
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
|
-
|
|
603
|
-
|
|
604
|
-
|
|
625
|
+
}
|
|
626
|
+
SkyDocsCodeExamplesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsCodeExamplesComponent, deps: [{ token: SkyDocsCodeExamplesEditorService }, { token: SkyDocsSourceCodeService }], target: i0.ɵɵFactoryTarget.Component });
|
|
627
|
+
SkyDocsCodeExamplesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyDocsCodeExamplesComponent, selector: "sky-docs-code-examples", inputs: { packageDependencies: "packageDependencies" }, 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: ["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 });
|
|
628
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsCodeExamplesComponent, decorators: [{
|
|
629
|
+
type: Component,
|
|
630
|
+
args: [{
|
|
631
|
+
selector: 'sky-docs-code-examples',
|
|
632
|
+
templateUrl: './code-examples.component.html',
|
|
633
|
+
styleUrls: ['./code-examples.component.scss'],
|
|
634
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
635
|
+
}]
|
|
636
|
+
}], ctorParameters: function () { return [{ type: SkyDocsCodeExamplesEditorService }, { type: SkyDocsSourceCodeService }]; }, propDecorators: { packageDependencies: [{
|
|
637
|
+
type: Input
|
|
638
|
+
}], codeExampleComponents: [{
|
|
639
|
+
type: ContentChildren,
|
|
640
|
+
args: [SkyDocsCodeExampleComponent]
|
|
641
|
+
}] } });
|
|
642
|
+
|
|
643
|
+
class SkyDocsCodeExamplesModule {
|
|
644
|
+
}
|
|
645
|
+
SkyDocsCodeExamplesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsCodeExamplesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
646
|
+
SkyDocsCodeExamplesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsCodeExamplesModule, declarations: [SkyDocsCodeExampleComponent,
|
|
647
|
+
SkyDocsCodeExamplesComponent], imports: [CommonModule,
|
|
648
|
+
SkyCodeBlockModule,
|
|
649
|
+
SkyDocsToolsResourcesModule,
|
|
650
|
+
SkyIconModule,
|
|
651
|
+
SkyRepeaterModule,
|
|
652
|
+
SkyVerticalTabsetModule], exports: [SkyDocsCodeExampleComponent,
|
|
653
|
+
SkyDocsCodeExamplesComponent] });
|
|
654
|
+
SkyDocsCodeExamplesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsCodeExamplesModule, imports: [[
|
|
605
655
|
CommonModule,
|
|
606
656
|
SkyCodeBlockModule,
|
|
607
|
-
SkyDocsSourceCodeModule,
|
|
608
657
|
SkyDocsToolsResourcesModule,
|
|
609
658
|
SkyIconModule,
|
|
610
659
|
SkyRepeaterModule,
|
|
611
660
|
SkyVerticalTabsetModule
|
|
612
|
-
]
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
661
|
+
]] });
|
|
662
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsCodeExamplesModule, decorators: [{
|
|
663
|
+
type: NgModule,
|
|
664
|
+
args: [{
|
|
665
|
+
imports: [
|
|
666
|
+
CommonModule,
|
|
667
|
+
SkyCodeBlockModule,
|
|
668
|
+
SkyDocsToolsResourcesModule,
|
|
669
|
+
SkyIconModule,
|
|
670
|
+
SkyRepeaterModule,
|
|
671
|
+
SkyVerticalTabsetModule
|
|
672
|
+
],
|
|
673
|
+
declarations: [
|
|
674
|
+
SkyDocsCodeExampleComponent,
|
|
675
|
+
SkyDocsCodeExamplesComponent
|
|
676
|
+
],
|
|
677
|
+
exports: [
|
|
678
|
+
SkyDocsCodeExampleComponent,
|
|
679
|
+
SkyDocsCodeExamplesComponent
|
|
680
|
+
]
|
|
681
|
+
}]
|
|
682
|
+
}] });
|
|
626
683
|
|
|
627
684
|
/**
|
|
628
685
|
* Renders a checkbox control within the control panel.
|
|
@@ -636,7 +693,7 @@ SkyDocsCodeExamplesModule = __decorate([
|
|
|
636
693
|
* </sky-docs-demo-control-panel-checkbox>
|
|
637
694
|
* ```
|
|
638
695
|
*/
|
|
639
|
-
|
|
696
|
+
class SkyDocsDemoControlPanelCheckboxComponent {
|
|
640
697
|
constructor(changeDetector) {
|
|
641
698
|
this.changeDetector = changeDetector;
|
|
642
699
|
/**
|
|
@@ -683,29 +740,25 @@ let SkyDocsDemoControlPanelCheckboxComponent = class SkyDocsDemoControlPanelChec
|
|
|
683
740
|
[this.propertyName]: this.checked
|
|
684
741
|
});
|
|
685
742
|
}
|
|
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);
|
|
743
|
+
}
|
|
744
|
+
SkyDocsDemoControlPanelCheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoControlPanelCheckboxComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
745
|
+
SkyDocsDemoControlPanelCheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
746
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoControlPanelCheckboxComponent, decorators: [{
|
|
747
|
+
type: Component,
|
|
748
|
+
args: [{
|
|
749
|
+
selector: 'sky-docs-demo-control-panel-checkbox',
|
|
750
|
+
templateUrl: './demo-control-panel-checkbox.component.html',
|
|
751
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
752
|
+
}]
|
|
753
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { checked: [{
|
|
754
|
+
type: Input
|
|
755
|
+
}], disabled: [{
|
|
756
|
+
type: Input
|
|
757
|
+
}], label: [{
|
|
758
|
+
type: Input
|
|
759
|
+
}], propertyName: [{
|
|
760
|
+
type: Input
|
|
761
|
+
}] } });
|
|
709
762
|
|
|
710
763
|
/**
|
|
711
764
|
* Renders a radio control group.
|
|
@@ -724,7 +777,7 @@ SkyDocsDemoControlPanelCheckboxComponent = __decorate([
|
|
|
724
777
|
* </sky-docs-demo-control-panel-radio-group>
|
|
725
778
|
* ```
|
|
726
779
|
*/
|
|
727
|
-
|
|
780
|
+
class SkyDocsDemoControlPanelRadioGroupComponent {
|
|
728
781
|
constructor(changeDetector) {
|
|
729
782
|
this.changeDetector = changeDetector;
|
|
730
783
|
/**
|
|
@@ -758,43 +811,28 @@ let SkyDocsDemoControlPanelRadioGroupComponent = class SkyDocsDemoControlPanelRa
|
|
|
758
811
|
}
|
|
759
812
|
return value;
|
|
760
813
|
}
|
|
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);
|
|
814
|
+
}
|
|
815
|
+
SkyDocsDemoControlPanelRadioGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoControlPanelRadioGroupComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
816
|
+
SkyDocsDemoControlPanelRadioGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
817
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoControlPanelRadioGroupComponent, decorators: [{
|
|
818
|
+
type: Component,
|
|
819
|
+
args: [{
|
|
820
|
+
selector: 'sky-docs-demo-control-panel-radio-group',
|
|
821
|
+
templateUrl: './demo-control-panel-radio-group.component.html',
|
|
822
|
+
styleUrls: ['./demo-control-panel-radio-group.component.scss'],
|
|
823
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
824
|
+
}]
|
|
825
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { choices: [{
|
|
826
|
+
type: Input
|
|
827
|
+
}], disabled: [{
|
|
828
|
+
type: Input
|
|
829
|
+
}], heading: [{
|
|
830
|
+
type: Input
|
|
831
|
+
}], initialValue: [{
|
|
832
|
+
type: Input
|
|
833
|
+
}], propertyName: [{
|
|
834
|
+
type: Input
|
|
835
|
+
}] } });
|
|
798
836
|
|
|
799
837
|
/**
|
|
800
838
|
* Handles the appearance and configuration of the behavior demo control panel.
|
|
@@ -807,9 +845,8 @@ SkyDocsDemoThemeService = __decorate([
|
|
|
807
845
|
* </sky-docs-demo-control-panel>
|
|
808
846
|
* ```
|
|
809
847
|
*/
|
|
810
|
-
|
|
811
|
-
constructor(
|
|
812
|
-
this.demoThemeSvc = demoThemeSvc;
|
|
848
|
+
class SkyDocsDemoControlPanelComponent {
|
|
849
|
+
constructor() {
|
|
813
850
|
/**
|
|
814
851
|
* Fires when the user clicks the reset button.
|
|
815
852
|
*/
|
|
@@ -843,9 +880,6 @@ let SkyDocsDemoControlPanelComponent = class SkyDocsDemoControlPanelComponent {
|
|
|
843
880
|
});
|
|
844
881
|
this.reset.emit();
|
|
845
882
|
}
|
|
846
|
-
onThemeSettingsChange(themeSettings) {
|
|
847
|
-
this.demoThemeSvc.themeSettings.next(themeSettings);
|
|
848
|
-
}
|
|
849
883
|
addEventListeners() {
|
|
850
884
|
if (this.eventListeners) {
|
|
851
885
|
this.eventListeners.unsubscribe();
|
|
@@ -856,30 +890,28 @@ let SkyDocsDemoControlPanelComponent = class SkyDocsDemoControlPanelComponent {
|
|
|
856
890
|
this.selectionChange.next(change);
|
|
857
891
|
});
|
|
858
892
|
}
|
|
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);
|
|
893
|
+
}
|
|
894
|
+
SkyDocsDemoControlPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoControlPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
895
|
+
SkyDocsDemoControlPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
896
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoControlPanelComponent, decorators: [{
|
|
897
|
+
type: Component,
|
|
898
|
+
args: [{
|
|
899
|
+
selector: 'sky-docs-demo-control-panel',
|
|
900
|
+
templateUrl: './demo-control-panel.component.html',
|
|
901
|
+
styleUrls: ['./demo-control-panel.component.scss'],
|
|
902
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
903
|
+
}]
|
|
904
|
+
}], propDecorators: { reset: [{
|
|
905
|
+
type: Output
|
|
906
|
+
}], selectionChange: [{
|
|
907
|
+
type: Output
|
|
908
|
+
}], radioGroups: [{
|
|
909
|
+
type: ContentChildren,
|
|
910
|
+
args: [SkyDocsDemoControlPanelRadioGroupComponent, { descendants: true }]
|
|
911
|
+
}], checkboxes: [{
|
|
912
|
+
type: ContentChildren,
|
|
913
|
+
args: [SkyDocsDemoControlPanelCheckboxComponent, { descendants: true }]
|
|
914
|
+
}] } });
|
|
883
915
|
|
|
884
916
|
/**
|
|
885
917
|
* Wraps all behavior demo components and handles the configuration and appearance of the behavior demo.
|
|
@@ -890,9 +922,8 @@ SkyDocsDemoControlPanelComponent = __decorate([
|
|
|
890
922
|
* </sky-docs-demo>
|
|
891
923
|
* ```
|
|
892
924
|
*/
|
|
893
|
-
|
|
894
|
-
constructor(
|
|
895
|
-
this.demoThemeSvc = demoThemeSvc;
|
|
925
|
+
class SkyDocsDemoComponent {
|
|
926
|
+
constructor() {
|
|
896
927
|
this.areOptionsVisible = false;
|
|
897
928
|
}
|
|
898
929
|
/**
|
|
@@ -905,11 +936,8 @@ let SkyDocsDemoComponent = class SkyDocsDemoComponent {
|
|
|
905
936
|
get alignContents() {
|
|
906
937
|
return this._alignContents || 'left';
|
|
907
938
|
}
|
|
908
|
-
set supportsTheming(value) {
|
|
909
|
-
this.demoThemeSvc.supportsTheming.next(value);
|
|
910
|
-
}
|
|
911
939
|
get hasOptions() {
|
|
912
|
-
return
|
|
940
|
+
return (this.controlPanels && this.controlPanels.length > 0);
|
|
913
941
|
}
|
|
914
942
|
get toggleOptionsButtonIcon() {
|
|
915
943
|
return (this.areOptionsVisible) ? 'chevron-up' : 'chevron-down';
|
|
@@ -917,31 +945,25 @@ let SkyDocsDemoComponent = class SkyDocsDemoComponent {
|
|
|
917
945
|
onToggleOptionsButtonClick() {
|
|
918
946
|
this.areOptionsVisible = !this.areOptionsVisible;
|
|
919
947
|
}
|
|
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);
|
|
948
|
+
}
|
|
949
|
+
SkyDocsDemoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
950
|
+
SkyDocsDemoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
951
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoComponent, decorators: [{
|
|
952
|
+
type: Component,
|
|
953
|
+
args: [{
|
|
954
|
+
selector: 'sky-docs-demo',
|
|
955
|
+
templateUrl: './demo.component.html',
|
|
956
|
+
styleUrls: ['./demo.component.scss'],
|
|
957
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
958
|
+
}]
|
|
959
|
+
}], propDecorators: { alignContents: [{
|
|
960
|
+
type: Input
|
|
961
|
+
}], heading: [{
|
|
962
|
+
type: Input
|
|
963
|
+
}], controlPanels: [{
|
|
964
|
+
type: ContentChildren,
|
|
965
|
+
args: [SkyDocsDemoControlPanelComponent, { read: ElementRef }]
|
|
966
|
+
}] } });
|
|
945
967
|
|
|
946
968
|
/**
|
|
947
969
|
* Renders a section within the control panel.
|
|
@@ -954,218 +976,168 @@ SkyDocsDemoComponent = __decorate([
|
|
|
954
976
|
* </sky-docs-demo-control-panel>
|
|
955
977
|
* ```
|
|
956
978
|
*/
|
|
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: [
|
|
979
|
+
class SkyDocsDemoControlPanelSectionComponent {
|
|
980
|
+
}
|
|
981
|
+
SkyDocsDemoControlPanelSectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoControlPanelSectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
982
|
+
SkyDocsDemoControlPanelSectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
983
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoControlPanelSectionComponent, decorators: [{
|
|
984
|
+
type: Component,
|
|
985
|
+
args: [{
|
|
986
|
+
selector: 'sky-docs-demo-control-panel-section',
|
|
987
|
+
templateUrl: './demo-control-panel-section.component.html',
|
|
988
|
+
styleUrls: ['./demo-control-panel-section.component.scss'],
|
|
989
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
990
|
+
}]
|
|
991
|
+
}] });
|
|
992
|
+
|
|
993
|
+
class SkyDocsDemoModule {
|
|
994
|
+
}
|
|
995
|
+
SkyDocsDemoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
996
|
+
SkyDocsDemoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoModule, declarations: [SkyDocsDemoComponent,
|
|
997
|
+
SkyDocsDemoControlPanelCheckboxComponent,
|
|
998
|
+
SkyDocsDemoControlPanelComponent,
|
|
999
|
+
SkyDocsDemoControlPanelRadioGroupComponent,
|
|
1000
|
+
SkyDocsDemoControlPanelSectionComponent], imports: [CommonModule,
|
|
1001
|
+
FormsModule,
|
|
1002
|
+
SkyCheckboxModule,
|
|
1003
|
+
SkyDocsToolsResourcesModule,
|
|
1004
|
+
SkyIconModule,
|
|
1005
|
+
SkyRadioModule,
|
|
1006
|
+
SkyThemeModule], exports: [SkyDocsDemoComponent,
|
|
1007
|
+
SkyDocsDemoControlPanelCheckboxComponent,
|
|
1008
|
+
SkyDocsDemoControlPanelComponent,
|
|
1009
|
+
SkyDocsDemoControlPanelRadioGroupComponent,
|
|
1010
|
+
SkyDocsDemoControlPanelSectionComponent] });
|
|
1011
|
+
SkyDocsDemoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoModule, imports: [[
|
|
1069
1012
|
CommonModule,
|
|
1070
1013
|
FormsModule,
|
|
1071
1014
|
SkyCheckboxModule,
|
|
1072
1015
|
SkyDocsToolsResourcesModule,
|
|
1073
1016
|
SkyIconModule,
|
|
1074
1017
|
SkyRadioModule,
|
|
1075
|
-
SkyRestrictedViewModule,
|
|
1076
1018
|
SkyThemeModule
|
|
1077
|
-
]
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1019
|
+
]] });
|
|
1020
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoModule, decorators: [{
|
|
1021
|
+
type: NgModule,
|
|
1022
|
+
args: [{
|
|
1023
|
+
imports: [
|
|
1024
|
+
CommonModule,
|
|
1025
|
+
FormsModule,
|
|
1026
|
+
SkyCheckboxModule,
|
|
1027
|
+
SkyDocsToolsResourcesModule,
|
|
1028
|
+
SkyIconModule,
|
|
1029
|
+
SkyRadioModule,
|
|
1030
|
+
SkyThemeModule
|
|
1031
|
+
],
|
|
1032
|
+
declarations: [
|
|
1033
|
+
SkyDocsDemoComponent,
|
|
1034
|
+
SkyDocsDemoControlPanelCheckboxComponent,
|
|
1035
|
+
SkyDocsDemoControlPanelComponent,
|
|
1036
|
+
SkyDocsDemoControlPanelRadioGroupComponent,
|
|
1037
|
+
SkyDocsDemoControlPanelSectionComponent,
|
|
1038
|
+
],
|
|
1039
|
+
exports: [
|
|
1040
|
+
SkyDocsDemoComponent,
|
|
1041
|
+
SkyDocsDemoControlPanelCheckboxComponent,
|
|
1042
|
+
SkyDocsDemoControlPanelComponent,
|
|
1043
|
+
SkyDocsDemoControlPanelRadioGroupComponent,
|
|
1044
|
+
SkyDocsDemoControlPanelSectionComponent,
|
|
1045
|
+
]
|
|
1046
|
+
}]
|
|
1047
|
+
}] });
|
|
1048
|
+
|
|
1049
|
+
class SkyDocsHeadingAnchorComponent {
|
|
1098
1050
|
constructor() {
|
|
1099
1051
|
this.headingLevel = '2';
|
|
1100
1052
|
}
|
|
1101
|
-
}
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
],
|
|
1124
|
-
|
|
1053
|
+
}
|
|
1054
|
+
SkyDocsHeadingAnchorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsHeadingAnchorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1055
|
+
SkyDocsHeadingAnchorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
1056
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsHeadingAnchorComponent, decorators: [{
|
|
1057
|
+
type: Component,
|
|
1058
|
+
args: [{
|
|
1059
|
+
selector: 'sky-docs-heading-anchor',
|
|
1060
|
+
templateUrl: './heading-anchor.component.html',
|
|
1061
|
+
styleUrls: ['./heading-anchor.component.scss'],
|
|
1062
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1063
|
+
}]
|
|
1064
|
+
}], propDecorators: { anchorId: [{
|
|
1065
|
+
type: Input
|
|
1066
|
+
}], headingLevel: [{
|
|
1067
|
+
type: Input
|
|
1068
|
+
}] } });
|
|
1069
|
+
|
|
1070
|
+
class SkyDocsHeadingAnchorModule {
|
|
1071
|
+
}
|
|
1072
|
+
SkyDocsHeadingAnchorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsHeadingAnchorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1073
|
+
SkyDocsHeadingAnchorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsHeadingAnchorModule, declarations: [SkyDocsHeadingAnchorComponent], imports: [CommonModule,
|
|
1074
|
+
RouterModule,
|
|
1075
|
+
SkyIconModule], exports: [SkyDocsHeadingAnchorComponent] });
|
|
1076
|
+
SkyDocsHeadingAnchorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsHeadingAnchorModule, imports: [[
|
|
1125
1077
|
CommonModule,
|
|
1126
1078
|
RouterModule,
|
|
1127
1079
|
SkyIconModule
|
|
1128
|
-
]
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1080
|
+
]] });
|
|
1081
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsHeadingAnchorModule, decorators: [{
|
|
1082
|
+
type: NgModule,
|
|
1083
|
+
args: [{
|
|
1084
|
+
declarations: [
|
|
1085
|
+
SkyDocsHeadingAnchorComponent
|
|
1086
|
+
],
|
|
1087
|
+
imports: [
|
|
1088
|
+
CommonModule,
|
|
1089
|
+
RouterModule,
|
|
1090
|
+
SkyIconModule
|
|
1091
|
+
],
|
|
1092
|
+
exports: [
|
|
1093
|
+
SkyDocsHeadingAnchorComponent
|
|
1094
|
+
]
|
|
1095
|
+
}]
|
|
1096
|
+
}] });
|
|
1097
|
+
|
|
1098
|
+
class SkyDocsMarkdownPipe {
|
|
1136
1099
|
transform(markdown) {
|
|
1137
1100
|
if (!markdown) {
|
|
1138
1101
|
return '';
|
|
1139
1102
|
}
|
|
1140
1103
|
return marked(markdown);
|
|
1141
1104
|
}
|
|
1142
|
-
}
|
|
1143
|
-
SkyDocsMarkdownPipe =
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
};
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1105
|
+
}
|
|
1106
|
+
SkyDocsMarkdownPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsMarkdownPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1107
|
+
SkyDocsMarkdownPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsMarkdownPipe, name: "skyDocsMarkdown" });
|
|
1108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsMarkdownPipe, decorators: [{
|
|
1109
|
+
type: Pipe,
|
|
1110
|
+
args: [{
|
|
1111
|
+
name: 'skyDocsMarkdown'
|
|
1112
|
+
}]
|
|
1113
|
+
}] });
|
|
1114
|
+
|
|
1115
|
+
class SkyDocsMarkdownModule {
|
|
1116
|
+
}
|
|
1117
|
+
SkyDocsMarkdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsMarkdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1118
|
+
SkyDocsMarkdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsMarkdownModule, declarations: [SkyDocsMarkdownPipe], exports: [SkyDocsMarkdownPipe] });
|
|
1119
|
+
SkyDocsMarkdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsMarkdownModule, providers: [
|
|
1120
|
+
SkyDocsMarkdownPipe
|
|
1121
|
+
] });
|
|
1122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsMarkdownModule, decorators: [{
|
|
1123
|
+
type: NgModule,
|
|
1124
|
+
args: [{
|
|
1125
|
+
declarations: [
|
|
1126
|
+
SkyDocsMarkdownPipe
|
|
1127
|
+
],
|
|
1128
|
+
providers: [
|
|
1129
|
+
SkyDocsMarkdownPipe
|
|
1130
|
+
],
|
|
1131
|
+
exports: [
|
|
1132
|
+
SkyDocsMarkdownPipe
|
|
1133
|
+
]
|
|
1134
|
+
}]
|
|
1135
|
+
}] });
|
|
1164
1136
|
|
|
1165
1137
|
class SkyDocsToolsOptions {
|
|
1166
1138
|
}
|
|
1167
1139
|
|
|
1168
|
-
|
|
1140
|
+
class SkyDocsModuleInfoComponent {
|
|
1169
1141
|
constructor(options) {
|
|
1170
1142
|
this.options = options;
|
|
1171
1143
|
}
|
|
@@ -1215,194 +1187,113 @@ let SkyDocsModuleInfoComponent = class SkyDocsModuleInfoComponent {
|
|
|
1215
1187
|
}
|
|
1216
1188
|
return `npm install --save-exact ${this.packageName}`;
|
|
1217
1189
|
}
|
|
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
|
-
|
|
1190
|
+
}
|
|
1191
|
+
SkyDocsModuleInfoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsModuleInfoComponent, deps: [{ token: SkyDocsToolsOptions, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1192
|
+
SkyDocsModuleInfoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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. If you use the SKY UX SDK, the main module is <sky-code>app-sky.module.ts</sky-code>.\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 });
|
|
1193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsModuleInfoComponent, decorators: [{
|
|
1194
|
+
type: Component,
|
|
1195
|
+
args: [{
|
|
1196
|
+
selector: 'sky-docs-module-info',
|
|
1197
|
+
templateUrl: './module-info.component.html',
|
|
1198
|
+
styleUrls: ['./module-info.component.scss'],
|
|
1199
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1200
|
+
}]
|
|
1201
|
+
}], ctorParameters: function () { return [{ type: SkyDocsToolsOptions, decorators: [{
|
|
1202
|
+
type: Optional
|
|
1203
|
+
}] }]; }, propDecorators: { gitRepoUrl: [{
|
|
1204
|
+
type: Input
|
|
1205
|
+
}], moduleName: [{
|
|
1206
|
+
type: Input
|
|
1207
|
+
}], packageName: [{
|
|
1208
|
+
type: Input
|
|
1209
|
+
}], packageUrl: [{
|
|
1210
|
+
type: Input
|
|
1211
|
+
}] } });
|
|
1212
|
+
|
|
1213
|
+
class SkyDocsModuleInfoModule {
|
|
1214
|
+
}
|
|
1215
|
+
SkyDocsModuleInfoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsModuleInfoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1216
|
+
SkyDocsModuleInfoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsModuleInfoModule, declarations: [SkyDocsModuleInfoComponent], imports: [CommonModule,
|
|
1217
|
+
SkyCodeModule,
|
|
1218
|
+
SkyClipboardModule,
|
|
1219
|
+
SkyDefinitionListModule,
|
|
1220
|
+
SkyHelpInlineModule,
|
|
1221
|
+
SkyPopoverModule], exports: [SkyDocsModuleInfoComponent] });
|
|
1222
|
+
SkyDocsModuleInfoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsModuleInfoModule, imports: [[
|
|
1249
1223
|
CommonModule,
|
|
1250
1224
|
SkyCodeModule,
|
|
1251
1225
|
SkyClipboardModule,
|
|
1252
1226
|
SkyDefinitionListModule,
|
|
1253
1227
|
SkyHelpInlineModule,
|
|
1254
1228
|
SkyPopoverModule
|
|
1255
|
-
]
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1229
|
+
]] });
|
|
1230
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsModuleInfoModule, decorators: [{
|
|
1231
|
+
type: NgModule,
|
|
1232
|
+
args: [{
|
|
1233
|
+
imports: [
|
|
1234
|
+
CommonModule,
|
|
1235
|
+
SkyCodeModule,
|
|
1236
|
+
SkyClipboardModule,
|
|
1237
|
+
SkyDefinitionListModule,
|
|
1238
|
+
SkyHelpInlineModule,
|
|
1239
|
+
SkyPopoverModule
|
|
1240
|
+
],
|
|
1241
|
+
declarations: [
|
|
1242
|
+
SkyDocsModuleInfoComponent
|
|
1243
|
+
],
|
|
1244
|
+
exports: [
|
|
1245
|
+
SkyDocsModuleInfoComponent
|
|
1246
|
+
]
|
|
1247
|
+
}]
|
|
1248
|
+
}] });
|
|
1249
|
+
|
|
1250
|
+
class SkyDocsSafeHtmlComponent {
|
|
1266
1251
|
constructor(domSanitizer) {
|
|
1267
1252
|
this.domSanitizer = domSanitizer;
|
|
1268
1253
|
}
|
|
1269
1254
|
getTrustedHtml(content) {
|
|
1270
1255
|
return this.domSanitizer.bypassSecurityTrustHtml(content);
|
|
1271
1256
|
}
|
|
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
1257
|
}
|
|
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);
|
|
1258
|
+
SkyDocsSafeHtmlComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsSafeHtmlComponent, deps: [{ token: i1$4.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
|
|
1259
|
+
SkyDocsSafeHtmlComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
1260
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsSafeHtmlComponent, decorators: [{
|
|
1261
|
+
type: Component,
|
|
1262
|
+
args: [{
|
|
1263
|
+
selector: 'sky-docs-safe-html',
|
|
1264
|
+
templateUrl: './safe-html.component.html',
|
|
1265
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1266
|
+
}]
|
|
1267
|
+
}], ctorParameters: function () { return [{ type: i1$4.DomSanitizer }]; }, propDecorators: { innerHtml: [{
|
|
1268
|
+
type: Input
|
|
1269
|
+
}] } });
|
|
1270
|
+
|
|
1271
|
+
class SkyDocsSafeHtmlModule {
|
|
1272
|
+
}
|
|
1273
|
+
SkyDocsSafeHtmlModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsSafeHtmlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1274
|
+
SkyDocsSafeHtmlModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsSafeHtmlModule, declarations: [SkyDocsSafeHtmlComponent], imports: [CommonModule], exports: [SkyDocsSafeHtmlComponent] });
|
|
1275
|
+
SkyDocsSafeHtmlModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsSafeHtmlModule, imports: [[
|
|
1276
|
+
CommonModule
|
|
1277
|
+
]] });
|
|
1278
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsSafeHtmlModule, decorators: [{
|
|
1279
|
+
type: NgModule,
|
|
1280
|
+
args: [{
|
|
1281
|
+
declarations: [
|
|
1282
|
+
SkyDocsSafeHtmlComponent
|
|
1283
|
+
],
|
|
1284
|
+
imports: [
|
|
1285
|
+
CommonModule
|
|
1286
|
+
],
|
|
1287
|
+
exports: [
|
|
1288
|
+
SkyDocsSafeHtmlComponent
|
|
1289
|
+
]
|
|
1290
|
+
}]
|
|
1291
|
+
}] });
|
|
1401
1292
|
|
|
1402
1293
|
/**
|
|
1403
1294
|
* Formats type definitions into HTML-compatible strings.
|
|
1404
1295
|
*/
|
|
1405
|
-
|
|
1296
|
+
class SkyDocsTypeDefinitionsFormatService {
|
|
1406
1297
|
/**
|
|
1407
1298
|
* Returns an HTML-formatted representation of the provided interface config.
|
|
1408
1299
|
*/
|
|
@@ -1628,16 +1519,148 @@ let SkyDocsTypeDefinitionsFormatService = class SkyDocsTypeDefinitionsFormatServ
|
|
|
1628
1519
|
});
|
|
1629
1520
|
return signature;
|
|
1630
1521
|
}
|
|
1631
|
-
}
|
|
1632
|
-
SkyDocsTypeDefinitionsFormatService =
|
|
1633
|
-
|
|
1634
|
-
|
|
1522
|
+
}
|
|
1523
|
+
SkyDocsTypeDefinitionsFormatService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsTypeDefinitionsFormatService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1524
|
+
SkyDocsTypeDefinitionsFormatService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsTypeDefinitionsFormatService, providedIn: 'root' });
|
|
1525
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsTypeDefinitionsFormatService, decorators: [{
|
|
1526
|
+
type: Injectable,
|
|
1527
|
+
args: [{
|
|
1528
|
+
providedIn: 'root'
|
|
1529
|
+
}]
|
|
1530
|
+
}] });
|
|
1531
|
+
|
|
1532
|
+
class SkyDocsTypeDefinitionsProvider {
|
|
1533
|
+
}
|
|
1534
|
+
SkyDocsTypeDefinitionsProvider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsTypeDefinitionsProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1535
|
+
SkyDocsTypeDefinitionsProvider.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsTypeDefinitionsProvider });
|
|
1536
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsTypeDefinitionsProvider, decorators: [{
|
|
1537
|
+
type: Injectable
|
|
1538
|
+
}] });
|
|
1635
1539
|
|
|
1636
1540
|
/**
|
|
1637
|
-
*
|
|
1638
|
-
* This
|
|
1541
|
+
* Finds any type name that is NOT surrounded by alpha-numeric (and '>', '<', '.') characters.
|
|
1542
|
+
* (This is to avoid matching types that share similar words, such as `Foo` and `FooUser`.)
|
|
1543
|
+
* Notes:
|
|
1544
|
+
* - If the type name is surrounded by angle brackets, then it has already been processed as a link.
|
|
1545
|
+
* - 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.
|
|
1546
|
+
* - If the type name ends with a period followed immediately by any word character, then it is a method or property (Foo.bar).
|
|
1547
|
+
* Only the type name should be processed as a link.
|
|
1639
1548
|
*/
|
|
1640
|
-
|
|
1549
|
+
function createRegex(keyword) {
|
|
1550
|
+
return new RegExp(`(^|[^a-zA-Z0-9>.[/])(${keyword})(\\.\\w+)?(?=[^a-zA-Z0-9<]+|$)`, 'g');
|
|
1551
|
+
}
|
|
1552
|
+
class SkyDocsAnchorLinkService {
|
|
1553
|
+
constructor(typeDefinitionsProvider) {
|
|
1554
|
+
this.anchorIds = typeDefinitionsProvider.anchorIds;
|
|
1555
|
+
}
|
|
1556
|
+
/**
|
|
1557
|
+
* Formats known type names with `<code>` tags and wraps them with anchor tags, linking to the appropriate type.
|
|
1558
|
+
* If the content is already contained within a `<code>` tag, set `codeFormat = false` to prevent extra `<code>` tags from being added.
|
|
1559
|
+
*/
|
|
1560
|
+
applyTypeAnchorLinks(content, config) {
|
|
1561
|
+
if (!this.anchorIds || !content) {
|
|
1562
|
+
return content;
|
|
1563
|
+
}
|
|
1564
|
+
// Set default for code formatting.
|
|
1565
|
+
if (!config) {
|
|
1566
|
+
config = {
|
|
1567
|
+
applyCodeFormatting: true
|
|
1568
|
+
};
|
|
1569
|
+
}
|
|
1570
|
+
content = this.removeDoubleSquareBrackets(content);
|
|
1571
|
+
Object.keys(this.anchorIds).forEach((typeName) => {
|
|
1572
|
+
content = this.removeBackticks(typeName, content);
|
|
1573
|
+
let matches;
|
|
1574
|
+
let counter = 0;
|
|
1575
|
+
const max = 100;
|
|
1576
|
+
const regex = createRegex(typeName);
|
|
1577
|
+
do {
|
|
1578
|
+
matches = regex.exec(content);
|
|
1579
|
+
if (matches) {
|
|
1580
|
+
const anchorId = this.anchorIds[typeName];
|
|
1581
|
+
const anchorHtml = '<a class="sky-docs-anchor-link" href="#' + anchorId + '">' + typeName + '</a>';
|
|
1582
|
+
// Group 3 of the regex pattern captures type properties like Foo.bar.
|
|
1583
|
+
// If these are found, they do not need hyperlinked, but add them to the encapsulating code tag.
|
|
1584
|
+
const typeProperty = (matches[3] ? matches[3] : '');
|
|
1585
|
+
let replacement;
|
|
1586
|
+
if (config.applyCodeFormatting) {
|
|
1587
|
+
replacement = '<code>' + anchorHtml + typeProperty + '</code>';
|
|
1588
|
+
}
|
|
1589
|
+
else {
|
|
1590
|
+
replacement = anchorHtml + typeProperty;
|
|
1591
|
+
}
|
|
1592
|
+
// Regex Positive lookbehinds aren't supported in IE11 and Safari, so we have to check if the match has a starting extra character
|
|
1593
|
+
// (usually whitespace " Foo"), and then modify the starting/ending indexes to account for the extra character.
|
|
1594
|
+
const isMatchExact = matches[0].substr(0, typeName.length) === typeName;
|
|
1595
|
+
const startIndex = isMatchExact ? matches.index : matches.index + 1;
|
|
1596
|
+
const endIndex = isMatchExact ? matches[0].length : matches[0].length - 1;
|
|
1597
|
+
let contentWithCodeTags = content.substr(0, startIndex) + replacement + content.substr(startIndex + endIndex);
|
|
1598
|
+
content = contentWithCodeTags;
|
|
1599
|
+
counter++;
|
|
1600
|
+
}
|
|
1601
|
+
} while (matches !== null && counter < max);
|
|
1602
|
+
});
|
|
1603
|
+
return content;
|
|
1604
|
+
}
|
|
1605
|
+
/**
|
|
1606
|
+
* For backwards compatibility, we need to remove any double brackets wrapped around types.
|
|
1607
|
+
* e.g., `[[SampleType]]`
|
|
1608
|
+
*/
|
|
1609
|
+
removeDoubleSquareBrackets(content) {
|
|
1610
|
+
const match = content.match(/\[\[.*\]\]/);
|
|
1611
|
+
if (match) {
|
|
1612
|
+
const typeName = match[0].replace(/\[\[/g, '').replace(/\]\]/g, '');
|
|
1613
|
+
content = content.replace(match[0], typeName);
|
|
1614
|
+
}
|
|
1615
|
+
return content;
|
|
1616
|
+
}
|
|
1617
|
+
/**
|
|
1618
|
+
* Removes backtick characters around known types to prevent
|
|
1619
|
+
* the markdown pipe from wrapping them with code elements.
|
|
1620
|
+
*/
|
|
1621
|
+
removeBackticks(typeName, content) {
|
|
1622
|
+
const regexp = new RegExp(`\`(${typeName})\``, 'g');
|
|
1623
|
+
return content.replace(regexp, typeName);
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
SkyDocsAnchorLinkService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsAnchorLinkService, deps: [{ token: SkyDocsTypeDefinitionsProvider }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1627
|
+
SkyDocsAnchorLinkService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsAnchorLinkService, providedIn: 'any' });
|
|
1628
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsAnchorLinkService, decorators: [{
|
|
1629
|
+
type: Injectable,
|
|
1630
|
+
args: [{
|
|
1631
|
+
providedIn: 'any'
|
|
1632
|
+
}]
|
|
1633
|
+
}], ctorParameters: function () { return [{ type: SkyDocsTypeDefinitionsProvider }]; } });
|
|
1634
|
+
|
|
1635
|
+
/**
|
|
1636
|
+
* Adds same-page anchor tags around known TypeScript types.
|
|
1637
|
+
*/
|
|
1638
|
+
class SkyDocsTypeAnchorLinksPipe {
|
|
1639
|
+
constructor(anchorLinkService) {
|
|
1640
|
+
this.anchorLinkService = anchorLinkService;
|
|
1641
|
+
}
|
|
1642
|
+
transform(value, formatType) {
|
|
1643
|
+
const anchorLinkConfig = {
|
|
1644
|
+
applyCodeFormatting: (formatType !== 'no-code-tags')
|
|
1645
|
+
};
|
|
1646
|
+
return this.anchorLinkService.applyTypeAnchorLinks(value, anchorLinkConfig);
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
SkyDocsTypeAnchorLinksPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsTypeAnchorLinksPipe, deps: [{ token: SkyDocsAnchorLinkService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1650
|
+
SkyDocsTypeAnchorLinksPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsTypeAnchorLinksPipe, name: "skyDocsTypeAnchorLinks" });
|
|
1651
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsTypeAnchorLinksPipe, decorators: [{
|
|
1652
|
+
type: Pipe,
|
|
1653
|
+
args: [{
|
|
1654
|
+
name: 'skyDocsTypeAnchorLinks',
|
|
1655
|
+
pure: true
|
|
1656
|
+
}]
|
|
1657
|
+
}], ctorParameters: function () { return [{ type: SkyDocsAnchorLinkService }]; } });
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* "Call signatures" include methods, functions, and inline arrow functions.
|
|
1661
|
+
* This component is used to document both the return type and parameters of a given call signature.
|
|
1662
|
+
*/
|
|
1663
|
+
class SkyDocsCallSignatureDefinitionComponent {
|
|
1641
1664
|
constructor(formatService) {
|
|
1642
1665
|
this.formatService = formatService;
|
|
1643
1666
|
}
|
|
@@ -1661,50 +1684,111 @@ let SkyDocsCallSignatureDefinitionComponent = class SkyDocsCallSignatureDefiniti
|
|
|
1661
1684
|
});
|
|
1662
1685
|
this.returnTypeFormatted = this.formatService.getFormattedType((_c = this.config) === null || _c === void 0 ? void 0 : _c.returnType);
|
|
1663
1686
|
}
|
|
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
|
-
|
|
1687
|
+
}
|
|
1688
|
+
SkyDocsCallSignatureDefinitionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsCallSignatureDefinitionComponent, deps: [{ token: SkyDocsTypeDefinitionsFormatService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1689
|
+
SkyDocsCallSignatureDefinitionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
1690
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsCallSignatureDefinitionComponent, decorators: [{
|
|
1691
|
+
type: Component,
|
|
1692
|
+
args: [{
|
|
1693
|
+
selector: 'sky-docs-call-signature-definition',
|
|
1694
|
+
templateUrl: './call-signature-definition.component.html',
|
|
1695
|
+
styleUrls: ['./call-signature-definition.component.scss'],
|
|
1696
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1697
|
+
}]
|
|
1698
|
+
}], ctorParameters: function () { return [{ type: SkyDocsTypeDefinitionsFormatService }]; }, propDecorators: { config: [{
|
|
1699
|
+
type: Input
|
|
1700
|
+
}] } });
|
|
1701
|
+
|
|
1702
|
+
class SkyDocsPropertyDefinitionsComponent {
|
|
1703
|
+
constructor(changeDetector, formatService, mediaQueryService) {
|
|
1704
|
+
this.changeDetector = changeDetector;
|
|
1705
|
+
this.formatService = formatService;
|
|
1706
|
+
this.mediaQueryService = mediaQueryService;
|
|
1707
|
+
this.propertyType = 'Property';
|
|
1708
|
+
this.showOptionalStatus = true;
|
|
1709
|
+
this.deprecationWarningPrefix = `<span class="sky-text-warning"></span>**Deprecated.** `;
|
|
1710
|
+
this.isMobile = true;
|
|
1711
|
+
this.properties = [];
|
|
1712
|
+
}
|
|
1713
|
+
set config(value) {
|
|
1714
|
+
this._config = value;
|
|
1715
|
+
this.updateView();
|
|
1716
|
+
}
|
|
1717
|
+
get config() {
|
|
1718
|
+
return this._config || {};
|
|
1719
|
+
}
|
|
1720
|
+
ngOnInit() {
|
|
1721
|
+
this.mediaQueryService.subscribe((breakpoints) => {
|
|
1722
|
+
this.isMobile = (breakpoints <= SkyMediaBreakpoints.sm);
|
|
1723
|
+
this.changeDetector.markForCheck();
|
|
1724
|
+
});
|
|
1725
|
+
}
|
|
1726
|
+
updateView() {
|
|
1727
|
+
var _a, _b;
|
|
1728
|
+
this.properties = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.map(property => {
|
|
1729
|
+
var _a;
|
|
1730
|
+
const vm = {
|
|
1731
|
+
callSignature: (_a = property.type) === null || _a === void 0 ? void 0 : _a.callSignature,
|
|
1732
|
+
defaultValue: this.formatService.escapeSpecialCharacters(property.defaultValue || ''),
|
|
1733
|
+
deprecationWarning: property.deprecationWarning,
|
|
1734
|
+
description: property.description,
|
|
1735
|
+
formattedName: this.formatService.getFormattedPropertyName(property),
|
|
1736
|
+
isOptional: property.isOptional
|
|
1737
|
+
};
|
|
1738
|
+
return vm;
|
|
1739
|
+
});
|
|
1740
|
+
}
|
|
1741
|
+
}
|
|
1742
|
+
SkyDocsPropertyDefinitionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsPropertyDefinitionsComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: SkyDocsTypeDefinitionsFormatService }, { token: i2$4.SkyMediaQueryService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1743
|
+
SkyDocsPropertyDefinitionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
1744
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsPropertyDefinitionsComponent, decorators: [{
|
|
1745
|
+
type: Component,
|
|
1746
|
+
args: [{
|
|
1747
|
+
selector: 'sky-docs-property-definitions',
|
|
1748
|
+
templateUrl: './property-definitions.component.html',
|
|
1749
|
+
styleUrls: ['./property-definitions.component.scss'],
|
|
1750
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1751
|
+
}]
|
|
1752
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: SkyDocsTypeDefinitionsFormatService }, { type: i2$4.SkyMediaQueryService }]; }, propDecorators: { config: [{
|
|
1753
|
+
type: Input
|
|
1754
|
+
}], propertyType: [{
|
|
1755
|
+
type: Input
|
|
1756
|
+
}], showOptionalStatus: [{
|
|
1757
|
+
type: Input
|
|
1758
|
+
}] } });
|
|
1759
|
+
|
|
1760
|
+
class SkyDocsDirectiveDefinitionComponent {
|
|
1761
|
+
}
|
|
1762
|
+
SkyDocsDirectiveDefinitionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDirectiveDefinitionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1763
|
+
SkyDocsDirectiveDefinitionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
1764
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDirectiveDefinitionComponent, decorators: [{
|
|
1765
|
+
type: Component,
|
|
1766
|
+
args: [{
|
|
1767
|
+
selector: 'sky-docs-directive-definition',
|
|
1768
|
+
templateUrl: './directive-definition.component.html',
|
|
1769
|
+
styleUrls: ['./directive-definition.component.scss'],
|
|
1770
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1771
|
+
}]
|
|
1772
|
+
}], propDecorators: { config: [{
|
|
1773
|
+
type: Input
|
|
1774
|
+
}] } });
|
|
1775
|
+
|
|
1776
|
+
class SkyDocsEnumerationDefinitionComponent {
|
|
1777
|
+
}
|
|
1778
|
+
SkyDocsEnumerationDefinitionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsEnumerationDefinitionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1779
|
+
SkyDocsEnumerationDefinitionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
1780
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsEnumerationDefinitionComponent, decorators: [{
|
|
1781
|
+
type: Component,
|
|
1782
|
+
args: [{
|
|
1783
|
+
selector: 'sky-docs-enumeration-definition',
|
|
1784
|
+
templateUrl: './enumeration-definition.component.html',
|
|
1785
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1786
|
+
}]
|
|
1787
|
+
}], propDecorators: { config: [{
|
|
1788
|
+
type: Input
|
|
1789
|
+
}] } });
|
|
1790
|
+
|
|
1791
|
+
class SkyDocsInterfaceDefinitionComponent {
|
|
1708
1792
|
constructor(formatService) {
|
|
1709
1793
|
this.formatService = formatService;
|
|
1710
1794
|
}
|
|
@@ -1718,22 +1802,21 @@ let SkyDocsInterfaceDefinitionComponent = class SkyDocsInterfaceDefinitionCompon
|
|
|
1718
1802
|
updateView() {
|
|
1719
1803
|
this.sourceCode = (this.config) ? this.formatService.getInterfaceSourceCode(this.config) : undefined;
|
|
1720
1804
|
}
|
|
1721
|
-
}
|
|
1722
|
-
SkyDocsInterfaceDefinitionComponent
|
|
1723
|
-
{ type:
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
let SkyDocsMethodDefinitionsComponent = class SkyDocsMethodDefinitionsComponent {
|
|
1805
|
+
}
|
|
1806
|
+
SkyDocsInterfaceDefinitionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsInterfaceDefinitionComponent, deps: [{ token: SkyDocsTypeDefinitionsFormatService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1807
|
+
SkyDocsInterfaceDefinitionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
1808
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsInterfaceDefinitionComponent, decorators: [{
|
|
1809
|
+
type: Component,
|
|
1810
|
+
args: [{
|
|
1811
|
+
selector: 'sky-docs-interface-definition',
|
|
1812
|
+
templateUrl: './interface-definition.component.html',
|
|
1813
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1814
|
+
}]
|
|
1815
|
+
}], ctorParameters: function () { return [{ type: SkyDocsTypeDefinitionsFormatService }]; }, propDecorators: { config: [{
|
|
1816
|
+
type: Input
|
|
1817
|
+
}] } });
|
|
1818
|
+
|
|
1819
|
+
class SkyDocsMethodDefinitionsComponent {
|
|
1737
1820
|
constructor(changeDetector, formatService, mediaQueryService) {
|
|
1738
1821
|
this.changeDetector = changeDetector;
|
|
1739
1822
|
this.formatService = formatService;
|
|
@@ -1769,149 +1852,363 @@ let SkyDocsMethodDefinitionsComponent = class SkyDocsMethodDefinitionsComponent
|
|
|
1769
1852
|
return vm;
|
|
1770
1853
|
});
|
|
1771
1854
|
}
|
|
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
|
-
|
|
1855
|
+
}
|
|
1856
|
+
SkyDocsMethodDefinitionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsMethodDefinitionsComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: SkyDocsTypeDefinitionsFormatService }, { token: i2$4.SkyMediaQueryService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1857
|
+
SkyDocsMethodDefinitionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
1858
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsMethodDefinitionsComponent, decorators: [{
|
|
1859
|
+
type: Component,
|
|
1860
|
+
args: [{
|
|
1861
|
+
selector: 'sky-docs-method-definitions',
|
|
1862
|
+
templateUrl: './method-definitions.component.html',
|
|
1863
|
+
styleUrls: ['./method-definitions.component.scss'],
|
|
1864
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1865
|
+
}]
|
|
1866
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: SkyDocsTypeDefinitionsFormatService }, { type: i2$4.SkyMediaQueryService }]; }, propDecorators: { config: [{
|
|
1867
|
+
type: Input
|
|
1868
|
+
}] } });
|
|
1869
|
+
|
|
1870
|
+
class SkyDocsPipeDefinitionComponent {
|
|
1871
|
+
}
|
|
1872
|
+
SkyDocsPipeDefinitionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsPipeDefinitionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1873
|
+
SkyDocsPipeDefinitionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
1874
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsPipeDefinitionComponent, decorators: [{
|
|
1875
|
+
type: Component,
|
|
1876
|
+
args: [{
|
|
1877
|
+
selector: 'sky-docs-pipe-definition',
|
|
1878
|
+
templateUrl: './pipe-definition.component.html',
|
|
1879
|
+
styleUrls: ['./pipe-definition.component.scss'],
|
|
1880
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1881
|
+
}]
|
|
1882
|
+
}], propDecorators: { config: [{
|
|
1883
|
+
type: Input
|
|
1884
|
+
}] } });
|
|
1885
|
+
|
|
1886
|
+
class SkyDocsClassDefinitionComponent {
|
|
1887
|
+
}
|
|
1888
|
+
SkyDocsClassDefinitionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsClassDefinitionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1889
|
+
SkyDocsClassDefinitionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
1890
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsClassDefinitionComponent, decorators: [{
|
|
1891
|
+
type: Component,
|
|
1892
|
+
args: [{
|
|
1893
|
+
selector: 'sky-docs-class-definition',
|
|
1894
|
+
templateUrl: './class-definition.component.html',
|
|
1895
|
+
styleUrls: ['./class-definition.component.scss'],
|
|
1896
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1897
|
+
}]
|
|
1898
|
+
}], propDecorators: { config: [{
|
|
1899
|
+
type: Input
|
|
1900
|
+
}] } });
|
|
1901
|
+
|
|
1902
|
+
class SkyDocsTypeAliasDefinitionComponent {
|
|
1903
|
+
constructor(formatService) {
|
|
1807
1904
|
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
1905
|
}
|
|
1815
1906
|
set config(value) {
|
|
1816
1907
|
this._config = value;
|
|
1817
1908
|
this.updateView();
|
|
1818
1909
|
}
|
|
1819
1910
|
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
|
-
});
|
|
1911
|
+
return this._config;
|
|
1827
1912
|
}
|
|
1828
1913
|
updateView() {
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1914
|
+
this.sourceCode = (this.config) ? this.formatService.getTypeAliasSourceCode(this.config) : undefined;
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
SkyDocsTypeAliasDefinitionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsTypeAliasDefinitionComponent, deps: [{ token: SkyDocsTypeDefinitionsFormatService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1918
|
+
SkyDocsTypeAliasDefinitionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
1919
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsTypeAliasDefinitionComponent, decorators: [{
|
|
1920
|
+
type: Component,
|
|
1921
|
+
args: [{
|
|
1922
|
+
selector: 'sky-docs-type-alias-definition',
|
|
1923
|
+
templateUrl: './type-alias-definition.component.html',
|
|
1924
|
+
styleUrls: ['./type-alias-definition.component.scss'],
|
|
1925
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1926
|
+
}]
|
|
1927
|
+
}], ctorParameters: function () { return [{ type: SkyDocsTypeDefinitionsFormatService }]; }, propDecorators: { config: [{
|
|
1928
|
+
type: Input
|
|
1929
|
+
}] } });
|
|
1930
|
+
|
|
1931
|
+
class SkyDocsTypeDefinitionsModule {
|
|
1932
|
+
}
|
|
1933
|
+
SkyDocsTypeDefinitionsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsTypeDefinitionsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1934
|
+
SkyDocsTypeDefinitionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsTypeDefinitionsModule, declarations: [SkyDocsCallSignatureDefinitionComponent,
|
|
1935
|
+
SkyDocsClassDefinitionComponent,
|
|
1936
|
+
SkyDocsDirectiveDefinitionComponent,
|
|
1937
|
+
SkyDocsEnumerationDefinitionComponent,
|
|
1938
|
+
SkyDocsInterfaceDefinitionComponent,
|
|
1939
|
+
SkyDocsMethodDefinitionsComponent,
|
|
1940
|
+
SkyDocsPipeDefinitionComponent,
|
|
1941
|
+
SkyDocsPropertyDefinitionsComponent,
|
|
1942
|
+
SkyDocsTypeAliasDefinitionComponent,
|
|
1943
|
+
SkyDocsTypeAnchorLinksPipe], imports: [CommonModule,
|
|
1944
|
+
RouterModule,
|
|
1945
|
+
SkyCodeBlockModule,
|
|
1946
|
+
SkyCodeModule,
|
|
1947
|
+
SkyDefinitionListModule,
|
|
1948
|
+
SkyDocsHeadingAnchorModule,
|
|
1949
|
+
SkyDocsMarkdownModule,
|
|
1950
|
+
SkyDocsSafeHtmlModule,
|
|
1951
|
+
SkyIconModule], exports: [SkyDocsCallSignatureDefinitionComponent,
|
|
1952
|
+
SkyDocsClassDefinitionComponent,
|
|
1953
|
+
SkyDocsDirectiveDefinitionComponent,
|
|
1954
|
+
SkyDocsEnumerationDefinitionComponent,
|
|
1955
|
+
SkyDocsInterfaceDefinitionComponent,
|
|
1956
|
+
SkyDocsMethodDefinitionsComponent,
|
|
1957
|
+
SkyDocsPipeDefinitionComponent,
|
|
1958
|
+
SkyDocsPropertyDefinitionsComponent,
|
|
1959
|
+
SkyDocsTypeAliasDefinitionComponent,
|
|
1960
|
+
SkyDocsTypeAnchorLinksPipe] });
|
|
1961
|
+
SkyDocsTypeDefinitionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsTypeDefinitionsModule, imports: [[
|
|
1962
|
+
CommonModule,
|
|
1963
|
+
RouterModule,
|
|
1964
|
+
SkyCodeBlockModule,
|
|
1965
|
+
SkyCodeModule,
|
|
1966
|
+
SkyDefinitionListModule,
|
|
1967
|
+
SkyDocsHeadingAnchorModule,
|
|
1968
|
+
SkyDocsMarkdownModule,
|
|
1969
|
+
SkyDocsSafeHtmlModule,
|
|
1970
|
+
SkyIconModule
|
|
1971
|
+
]] });
|
|
1972
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsTypeDefinitionsModule, decorators: [{
|
|
1973
|
+
type: NgModule,
|
|
1974
|
+
args: [{
|
|
1975
|
+
imports: [
|
|
1976
|
+
CommonModule,
|
|
1977
|
+
RouterModule,
|
|
1978
|
+
SkyCodeBlockModule,
|
|
1979
|
+
SkyCodeModule,
|
|
1980
|
+
SkyDefinitionListModule,
|
|
1981
|
+
SkyDocsHeadingAnchorModule,
|
|
1982
|
+
SkyDocsMarkdownModule,
|
|
1983
|
+
SkyDocsSafeHtmlModule,
|
|
1984
|
+
SkyIconModule
|
|
1985
|
+
],
|
|
1986
|
+
declarations: [
|
|
1987
|
+
SkyDocsCallSignatureDefinitionComponent,
|
|
1988
|
+
SkyDocsClassDefinitionComponent,
|
|
1989
|
+
SkyDocsDirectiveDefinitionComponent,
|
|
1990
|
+
SkyDocsEnumerationDefinitionComponent,
|
|
1991
|
+
SkyDocsInterfaceDefinitionComponent,
|
|
1992
|
+
SkyDocsMethodDefinitionsComponent,
|
|
1993
|
+
SkyDocsPipeDefinitionComponent,
|
|
1994
|
+
SkyDocsPropertyDefinitionsComponent,
|
|
1995
|
+
SkyDocsTypeAliasDefinitionComponent,
|
|
1996
|
+
SkyDocsTypeAnchorLinksPipe
|
|
1997
|
+
],
|
|
1998
|
+
exports: [
|
|
1999
|
+
SkyDocsCallSignatureDefinitionComponent,
|
|
2000
|
+
SkyDocsClassDefinitionComponent,
|
|
2001
|
+
SkyDocsDirectiveDefinitionComponent,
|
|
2002
|
+
SkyDocsEnumerationDefinitionComponent,
|
|
2003
|
+
SkyDocsInterfaceDefinitionComponent,
|
|
2004
|
+
SkyDocsMethodDefinitionsComponent,
|
|
2005
|
+
SkyDocsPipeDefinitionComponent,
|
|
2006
|
+
SkyDocsPropertyDefinitionsComponent,
|
|
2007
|
+
SkyDocsTypeAliasDefinitionComponent,
|
|
2008
|
+
SkyDocsTypeAnchorLinksPipe
|
|
2009
|
+
]
|
|
2010
|
+
}]
|
|
2011
|
+
}] });
|
|
2012
|
+
|
|
2013
|
+
/**
|
|
2014
|
+
* Specifies a section of page content.
|
|
2015
|
+
* @example
|
|
2016
|
+
* ```
|
|
2017
|
+
* <sky-docs-demo-page-section
|
|
2018
|
+
* heading="Section heading"
|
|
2019
|
+
* >
|
|
2020
|
+
* Section content here.
|
|
2021
|
+
* </sky-docs-demo-page-section>
|
|
2022
|
+
* ```
|
|
2023
|
+
*/
|
|
2024
|
+
class SkyDocsDemoPageSectionComponent {
|
|
2025
|
+
get anchorId() {
|
|
2026
|
+
return `section-${this.getSanitizedName(this.heading)}`;
|
|
2027
|
+
}
|
|
2028
|
+
getSanitizedName(value) {
|
|
2029
|
+
if (!value) {
|
|
2030
|
+
return;
|
|
2031
|
+
}
|
|
2032
|
+
const sanitized = value.toLowerCase()
|
|
2033
|
+
// Remove special characters.
|
|
2034
|
+
.replace(/[\_\~\`\@\!\#\$\%\^\&\*\(\)\[\]\{\}\;\:\'\/\\\<\>\,\.\?\=\+\|"]/g, '')
|
|
2035
|
+
// Replace space characters with a dash.
|
|
2036
|
+
.replace(/\s/g, '-')
|
|
2037
|
+
// Remove any double-dashes.
|
|
2038
|
+
.replace(/--/g, '-');
|
|
2039
|
+
return sanitized;
|
|
2040
|
+
}
|
|
2041
|
+
}
|
|
2042
|
+
SkyDocsDemoPageSectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoPageSectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2043
|
+
SkyDocsDemoPageSectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
2044
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoPageSectionComponent, decorators: [{
|
|
2045
|
+
type: Component,
|
|
2046
|
+
args: [{
|
|
2047
|
+
selector: 'sky-docs-demo-page-section',
|
|
2048
|
+
templateUrl: './demo-page-section.component.html',
|
|
2049
|
+
styleUrls: ['./demo-page-section.component.scss'],
|
|
2050
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2051
|
+
}]
|
|
2052
|
+
}], propDecorators: { heading: [{
|
|
2053
|
+
type: Input
|
|
2054
|
+
}] } });
|
|
2055
|
+
|
|
2056
|
+
/**
|
|
2057
|
+
* The page summary provides a section at the top of the page
|
|
2058
|
+
* to summarize what a user should expect to find or learn on the page.
|
|
2059
|
+
* @example
|
|
2060
|
+
* ```
|
|
2061
|
+
* <sky-docs-demo-page-summary>
|
|
2062
|
+
* Page summary here.
|
|
2063
|
+
* </sky-docs-demo-page-summary>
|
|
2064
|
+
* ```
|
|
2065
|
+
*/
|
|
2066
|
+
class SkyDocsDemoPageSummaryComponent {
|
|
2067
|
+
}
|
|
2068
|
+
SkyDocsDemoPageSummaryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoPageSummaryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2069
|
+
SkyDocsDemoPageSummaryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
2070
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoPageSummaryComponent, decorators: [{
|
|
2071
|
+
type: Component,
|
|
2072
|
+
args: [{
|
|
2073
|
+
selector: 'sky-docs-demo-page-summary',
|
|
2074
|
+
templateUrl: './demo-page-summary.component.html',
|
|
2075
|
+
styleUrls: ['./demo-page-summary.component.scss'],
|
|
2076
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2077
|
+
}]
|
|
2078
|
+
}] });
|
|
2079
|
+
|
|
2080
|
+
class SkyDocsDesignGuidelinesComponent {
|
|
2081
|
+
}
|
|
2082
|
+
SkyDocsDesignGuidelinesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDesignGuidelinesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2083
|
+
SkyDocsDesignGuidelinesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
2084
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDesignGuidelinesComponent, decorators: [{
|
|
2085
|
+
type: Component,
|
|
2086
|
+
args: [{
|
|
2087
|
+
selector: 'sky-docs-design-guidelines',
|
|
2088
|
+
templateUrl: './design-guidelines.component.html',
|
|
2089
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2090
|
+
}]
|
|
2091
|
+
}] });
|
|
2092
|
+
|
|
2093
|
+
/**
|
|
2094
|
+
* @internal
|
|
2095
|
+
*/
|
|
2096
|
+
class SkyDocsDemoPageDomAdapterService {
|
|
2097
|
+
constructor(windowRef) {
|
|
2098
|
+
this.windowRef = windowRef;
|
|
2099
|
+
this._anchorLinkClick = new Subject();
|
|
2100
|
+
this.eventListener = (e) => {
|
|
2101
|
+
e.preventDefault();
|
|
2102
|
+
this._anchorLinkClick.next({
|
|
2103
|
+
href: e.target.href
|
|
2104
|
+
});
|
|
2105
|
+
};
|
|
2106
|
+
}
|
|
2107
|
+
get anchorLinks() {
|
|
2108
|
+
return document.querySelectorAll('a.sky-docs-anchor-link');
|
|
2109
|
+
}
|
|
2110
|
+
get currentUrl() {
|
|
2111
|
+
return this.windowRef.nativeWindow.location.href.split('#')[0];
|
|
2112
|
+
}
|
|
2113
|
+
ngOnDestroy() {
|
|
2114
|
+
this.removeClickEventListeners();
|
|
2115
|
+
}
|
|
2116
|
+
setupAnchorLinks() {
|
|
2117
|
+
for (let index = 0; index < this.anchorLinks.length; index++) {
|
|
2118
|
+
const anchor = this.anchorLinks[index];
|
|
2119
|
+
const fragment = anchor.href.split('#')[1];
|
|
2120
|
+
const url = this.currentUrl;
|
|
2121
|
+
const href = `${url}#${fragment}`;
|
|
2122
|
+
anchor.href = href;
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
get anchorLinkClick() {
|
|
2126
|
+
if (this._anchorLinkClick.observers.length === 0) {
|
|
2127
|
+
this.addClickEventListeners();
|
|
2128
|
+
}
|
|
2129
|
+
else {
|
|
2130
|
+
this.removeClickEventListeners();
|
|
2131
|
+
}
|
|
2132
|
+
return this._anchorLinkClick;
|
|
2133
|
+
}
|
|
2134
|
+
scrollToFragment(fragment) {
|
|
2135
|
+
this.windowRef.nativeWindow.setTimeout(() => {
|
|
2136
|
+
const element = document.getElementById(fragment);
|
|
2137
|
+
if (element) {
|
|
2138
|
+
this.windowRef.nativeWindow.scrollTo(0, element.offsetTop);
|
|
2139
|
+
}
|
|
2140
|
+
}, 250);
|
|
2141
|
+
}
|
|
2142
|
+
addClickEventListeners() {
|
|
2143
|
+
// Wait for a tick to allow all anchors to be written.
|
|
2144
|
+
this.windowRef.nativeWindow.setTimeout(() => {
|
|
2145
|
+
for (let index = 0; index < this.anchorLinks.length; index++) {
|
|
2146
|
+
const anchor = this.anchorLinks[index];
|
|
2147
|
+
anchor.addEventListener('click', this.eventListener);
|
|
2148
|
+
}
|
|
1841
2149
|
});
|
|
1842
2150
|
}
|
|
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;
|
|
2151
|
+
removeClickEventListeners() {
|
|
2152
|
+
for (let index = 0; index < this.anchorLinks.length; index++) {
|
|
2153
|
+
const anchor = this.anchorLinks[index];
|
|
2154
|
+
anchor.removeEventListener('click', this.eventListener);
|
|
2155
|
+
}
|
|
1884
2156
|
}
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
2157
|
+
}
|
|
2158
|
+
SkyDocsDemoPageDomAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoPageDomAdapterService, deps: [{ token: i2$4.SkyAppWindowRef }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2159
|
+
SkyDocsDemoPageDomAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoPageDomAdapterService });
|
|
2160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoPageDomAdapterService, decorators: [{
|
|
2161
|
+
type: Injectable
|
|
2162
|
+
}], ctorParameters: function () { return [{ type: i2$4.SkyAppWindowRef }]; } });
|
|
2163
|
+
|
|
2164
|
+
class SkyDocsSupportalService {
|
|
2165
|
+
constructor(http) {
|
|
2166
|
+
this.http = http;
|
|
1888
2167
|
}
|
|
1889
|
-
|
|
1890
|
-
return this.
|
|
2168
|
+
getComponentsInfo() {
|
|
2169
|
+
return this.http
|
|
2170
|
+
.get('https://sky-pusa01.app.blackbaud.net/skysp/v1/docs/components-info')
|
|
2171
|
+
.pipe(map((results) => results.components), share());
|
|
1891
2172
|
}
|
|
1892
|
-
|
|
1893
|
-
|
|
2173
|
+
}
|
|
2174
|
+
SkyDocsSupportalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsSupportalService, deps: [{ token: i1$5.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2175
|
+
SkyDocsSupportalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsSupportalService, providedIn: 'root' });
|
|
2176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsSupportalService, decorators: [{
|
|
2177
|
+
type: Injectable,
|
|
2178
|
+
args: [{
|
|
2179
|
+
providedIn: 'root'
|
|
2180
|
+
}]
|
|
2181
|
+
}], ctorParameters: function () { return [{ type: i1$5.HttpClient }]; } });
|
|
2182
|
+
|
|
2183
|
+
/**
|
|
2184
|
+
* @internal
|
|
2185
|
+
*/
|
|
2186
|
+
class SkyDocsDemoPageTitleService {
|
|
2187
|
+
constructor(title) {
|
|
2188
|
+
this.title = title;
|
|
1894
2189
|
}
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
2190
|
+
setTitle(...parts) {
|
|
2191
|
+
let windowTitle = 'SKY UX';
|
|
2192
|
+
if (parts && parts.length > 0) {
|
|
2193
|
+
parts.push(windowTitle);
|
|
2194
|
+
windowTitle = parts.join(' - ');
|
|
2195
|
+
}
|
|
2196
|
+
this.title.setTitle(windowTitle);
|
|
2197
|
+
}
|
|
2198
|
+
}
|
|
2199
|
+
SkyDocsDemoPageTitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoPageTitleService, deps: [{ token: i1$4.Title }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2200
|
+
SkyDocsDemoPageTitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoPageTitleService, providedIn: 'root' });
|
|
2201
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoPageTitleService, decorators: [{
|
|
2202
|
+
type: Injectable,
|
|
2203
|
+
args: [{
|
|
2204
|
+
providedIn: 'root'
|
|
2205
|
+
}]
|
|
2206
|
+
}], ctorParameters: function () { return [{ type: i1$4.Title }]; } });
|
|
1910
2207
|
|
|
1911
2208
|
/**
|
|
1912
2209
|
* Converts TypeDoc types into SKY UX docs-tools types, to be supplied to the various definitions components.
|
|
1913
2210
|
*/
|
|
1914
|
-
|
|
2211
|
+
class SkyDocsTypeDocAdapterService {
|
|
1915
2212
|
constructor(typeDefinitionsProvider) {
|
|
1916
2213
|
this.typeDefinitionsProvider = typeDefinitionsProvider;
|
|
1917
2214
|
}
|
|
@@ -2019,21 +2316,43 @@ let SkyDocsTypeDocAdapterService = class SkyDocsTypeDocAdapterService {
|
|
|
2019
2316
|
const definitions = entry.children
|
|
2020
2317
|
.filter(child => child.kindString === 'Property' || child.kindString === 'Accessor')
|
|
2021
2318
|
.map(child => {
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
isOptional:
|
|
2319
|
+
var _a, _b, _c;
|
|
2320
|
+
let definition = {
|
|
2321
|
+
isOptional: true,
|
|
2025
2322
|
name: this.getPropertyName(child),
|
|
2026
2323
|
type: this.getTypeDefinition(child)
|
|
2027
2324
|
};
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
if (
|
|
2031
|
-
|
|
2325
|
+
let defaultValue;
|
|
2326
|
+
/* Ensure we are properly capturing definitions which use a getter/setter. Final check is a sanity check */
|
|
2327
|
+
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) {
|
|
2328
|
+
const mainTags = this.getCommentTags(child.comment);
|
|
2329
|
+
const getTags = this.getCommentTags(child.getSignature[0].comment);
|
|
2330
|
+
this.applyCommentTagValues(definition, mainTags);
|
|
2331
|
+
this.applyCommentTagValues(definition, getTags);
|
|
2332
|
+
if (((_c = child.setSignature) === null || _c === void 0 ? void 0 : _c.length) > 0) {
|
|
2333
|
+
const setTags = this.getCommentTags(child.setSignature[0].comment);
|
|
2334
|
+
this.applyCommentTagValues(definition, setTags);
|
|
2335
|
+
definition.isOptional = !setTags.extras.required;
|
|
2336
|
+
defaultValue = this.getDefaultValue(child, setTags);
|
|
2337
|
+
}
|
|
2338
|
+
else {
|
|
2339
|
+
definition.isOptional = !mainTags.extras.required;
|
|
2340
|
+
defaultValue = this.getDefaultValue(child, mainTags);
|
|
2341
|
+
}
|
|
2342
|
+
}
|
|
2343
|
+
else {
|
|
2344
|
+
const tags = this.getCommentTags(child.comment);
|
|
2345
|
+
definition.isOptional = !tags.extras.required;
|
|
2346
|
+
this.applyCommentTagValues(definition, tags);
|
|
2347
|
+
defaultValue = this.getDefaultValue(child, tags);
|
|
2032
2348
|
}
|
|
2033
|
-
const defaultValue = this.getDefaultValue(child, tags);
|
|
2034
2349
|
if (defaultValue) {
|
|
2035
2350
|
definition.defaultValue = defaultValue;
|
|
2036
2351
|
}
|
|
2352
|
+
const decorator = this.getDecorator(child);
|
|
2353
|
+
if (decorator) {
|
|
2354
|
+
definition.decorator = decorator;
|
|
2355
|
+
}
|
|
2037
2356
|
return definition;
|
|
2038
2357
|
});
|
|
2039
2358
|
return orderBy(definitions, ['isOptional', 'name'], ['asc', 'asc']);
|
|
@@ -2147,7 +2466,7 @@ let SkyDocsTypeDocAdapterService = class SkyDocsTypeDocAdapterService {
|
|
|
2147
2466
|
const indexSignature = declaration.indexSignature;
|
|
2148
2467
|
definition.indexSignature = this.getIndexSignatureDefinition(indexSignature);
|
|
2149
2468
|
}
|
|
2150
|
-
else if (declaration.children) {
|
|
2469
|
+
else /* istanbul ignore else */ if (declaration.children) {
|
|
2151
2470
|
definition.typeLiteral = {
|
|
2152
2471
|
properties: this.getInterfaceProperties({
|
|
2153
2472
|
children: declaration.children
|
|
@@ -2347,19 +2666,22 @@ let SkyDocsTypeDocAdapterService = class SkyDocsTypeDocAdapterService {
|
|
|
2347
2666
|
var _a;
|
|
2348
2667
|
return entry.anchorId || ((_a = this.typeDefinitionsProvider) === null || _a === void 0 ? void 0 : _a.anchorIds[entry.name]) || '';
|
|
2349
2668
|
}
|
|
2350
|
-
}
|
|
2351
|
-
SkyDocsTypeDocAdapterService
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
]
|
|
2669
|
+
}
|
|
2670
|
+
SkyDocsTypeDocAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsTypeDocAdapterService, deps: [{ token: SkyDocsTypeDefinitionsProvider, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2671
|
+
SkyDocsTypeDocAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsTypeDocAdapterService, providedIn: 'any' });
|
|
2672
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsTypeDocAdapterService, decorators: [{
|
|
2673
|
+
type: Injectable,
|
|
2674
|
+
args: [{
|
|
2675
|
+
providedIn: 'any'
|
|
2676
|
+
}]
|
|
2677
|
+
}], ctorParameters: function () { return [{ type: SkyDocsTypeDefinitionsProvider, decorators: [{
|
|
2678
|
+
type: Optional
|
|
2679
|
+
}] }]; } });
|
|
2358
2680
|
|
|
2359
2681
|
/**
|
|
2360
2682
|
* Handles all type definitions that have been converted from the third-party documentation generator.
|
|
2361
2683
|
*/
|
|
2362
|
-
|
|
2684
|
+
class SkyDocsTypeDefinitionsService {
|
|
2363
2685
|
constructor(typeDefinitionsProvider, adapter) {
|
|
2364
2686
|
this.typeDefinitionsProvider = typeDefinitionsProvider;
|
|
2365
2687
|
this.adapter = adapter;
|
|
@@ -2392,7 +2714,7 @@ let SkyDocsTypeDefinitionsService = class SkyDocsTypeDefinitionsService {
|
|
|
2392
2714
|
return types;
|
|
2393
2715
|
}
|
|
2394
2716
|
// Only process types that match the requested source code location.
|
|
2395
|
-
const typeDefinitions = allDefinitions.filter((i) => i.sources[0].fileName.match(requestedDir));
|
|
2717
|
+
const typeDefinitions = allDefinitions.filter((i) => i.sources && i.sources[0].fileName.match(requestedDir));
|
|
2396
2718
|
if (typeDefinitions.length === 0) {
|
|
2397
2719
|
console.warn(`Type definitions were not found for location: ${requestedDir}`);
|
|
2398
2720
|
}
|
|
@@ -2435,273 +2757,41 @@ let SkyDocsTypeDefinitionsService = class SkyDocsTypeDefinitionsService {
|
|
|
2435
2757
|
});
|
|
2436
2758
|
return types;
|
|
2437
2759
|
}
|
|
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);
|
|
2760
|
+
}
|
|
2761
|
+
SkyDocsTypeDefinitionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsTypeDefinitionsService, deps: [{ token: SkyDocsTypeDefinitionsProvider }, { token: SkyDocsTypeDocAdapterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2762
|
+
SkyDocsTypeDefinitionsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsTypeDefinitionsService, providedIn: 'any' });
|
|
2763
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsTypeDefinitionsService, decorators: [{
|
|
2764
|
+
type: Injectable,
|
|
2765
|
+
args: [{
|
|
2766
|
+
providedIn: 'any'
|
|
2767
|
+
}]
|
|
2768
|
+
}], ctorParameters: function () { return [{ type: SkyDocsTypeDefinitionsProvider }, { type: SkyDocsTypeDocAdapterService }]; } });
|
|
2633
2769
|
|
|
2634
2770
|
/**
|
|
2635
2771
|
* @internal
|
|
2636
2772
|
*/
|
|
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
|
-
});
|
|
2773
|
+
class SkyDocsDemoPageTypeDefinitionsComponent {
|
|
2774
|
+
constructor(typeDefinitionService) {
|
|
2775
|
+
this.typeDefinitionService = typeDefinitionService;
|
|
2691
2776
|
}
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
anchor.removeEventListener('click', this.eventListener);
|
|
2777
|
+
ngOnInit() {
|
|
2778
|
+
if (this.moduleSourceCodePath) {
|
|
2779
|
+
this.types = this.typeDefinitionService.getTypeDefinitions(this.moduleSourceCodePath);
|
|
2696
2780
|
}
|
|
2697
2781
|
}
|
|
2698
|
-
}
|
|
2699
|
-
|
|
2700
|
-
{ type:
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2782
|
+
}
|
|
2783
|
+
SkyDocsDemoPageTypeDefinitionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoPageTypeDefinitionsComponent, deps: [{ token: SkyDocsTypeDefinitionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2784
|
+
SkyDocsDemoPageTypeDefinitionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyDocsDemoPageTypeDefinitionsComponent, selector: "sky-docs-demo-page-type-definitions", inputs: { 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 });
|
|
2785
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoPageTypeDefinitionsComponent, decorators: [{
|
|
2786
|
+
type: Component,
|
|
2787
|
+
args: [{
|
|
2788
|
+
selector: 'sky-docs-demo-page-type-definitions',
|
|
2789
|
+
templateUrl: './demo-page-type-definitions.component.html',
|
|
2790
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2791
|
+
}]
|
|
2792
|
+
}], ctorParameters: function () { return [{ type: SkyDocsTypeDefinitionsService }]; }, propDecorators: { moduleSourceCodePath: [{
|
|
2793
|
+
type: Input
|
|
2794
|
+
}] } });
|
|
2705
2795
|
|
|
2706
2796
|
/**
|
|
2707
2797
|
* The demo page component wraps all documentation components and handles the configuration and layout of the page.
|
|
@@ -2714,7 +2804,7 @@ SkyDocsDemoPageDomAdapterService = __decorate([
|
|
|
2714
2804
|
* </sky-docs-demo-page>
|
|
2715
2805
|
* ```
|
|
2716
2806
|
*/
|
|
2717
|
-
|
|
2807
|
+
class SkyDocsDemoPageComponent {
|
|
2718
2808
|
constructor(activatedRoute, changeDetector, router, skyAppConfig, domAdapter, supportalService, titleService) {
|
|
2719
2809
|
this.activatedRoute = activatedRoute;
|
|
2720
2810
|
this.changeDetector = changeDetector;
|
|
@@ -2776,6 +2866,7 @@ let SkyDocsDemoPageComponent = class SkyDocsDemoPageComponent {
|
|
|
2776
2866
|
});
|
|
2777
2867
|
}
|
|
2778
2868
|
updateTitle() {
|
|
2869
|
+
/*istanbul ignore else*/
|
|
2779
2870
|
if (this.pageTitle) {
|
|
2780
2871
|
this.titleService.setTitle(this.pageTitle, 'Components');
|
|
2781
2872
|
}
|
|
@@ -2790,93 +2881,78 @@ let SkyDocsDemoPageComponent = class SkyDocsDemoPageComponent {
|
|
|
2790
2881
|
return url;
|
|
2791
2882
|
}
|
|
2792
2883
|
}
|
|
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
|
-
Input()
|
|
2866
|
-
], SkyDocsDemoPageTypeDefinitionsComponent.prototype, "moduleSourceCodePath", void 0);
|
|
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: [
|
|
2884
|
+
}
|
|
2885
|
+
SkyDocsDemoPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
2886
|
+
SkyDocsDemoPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyDocsDemoPageComponent, selector: "sky-docs-demo-page", inputs: { gitRepoUrl: "gitRepoUrl", moduleName: "moduleName", moduleSourceCodePath: "moduleSourceCodePath", packageName: "packageName", packageUrl: "packageUrl", pageTitle: "pageTitle" }, providers: [
|
|
2887
|
+
SkyDocsDemoPageDomAdapterService
|
|
2888
|
+
], 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 [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: ["moduleSourceCodePath"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2889
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoPageComponent, decorators: [{
|
|
2890
|
+
type: Component,
|
|
2891
|
+
args: [{
|
|
2892
|
+
selector: 'sky-docs-demo-page',
|
|
2893
|
+
templateUrl: './demo-page.component.html',
|
|
2894
|
+
styleUrls: ['./demo-page.component.scss'],
|
|
2895
|
+
providers: [
|
|
2896
|
+
SkyDocsDemoPageDomAdapterService
|
|
2897
|
+
],
|
|
2898
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2899
|
+
}]
|
|
2900
|
+
}], 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: { gitRepoUrl: [{
|
|
2901
|
+
type: Input
|
|
2902
|
+
}], moduleName: [{
|
|
2903
|
+
type: Input
|
|
2904
|
+
}], moduleSourceCodePath: [{
|
|
2905
|
+
type: Input
|
|
2906
|
+
}], packageName: [{
|
|
2907
|
+
type: Input
|
|
2908
|
+
}], packageUrl: [{
|
|
2909
|
+
type: Input
|
|
2910
|
+
}], pageTitle: [{
|
|
2911
|
+
type: Input
|
|
2912
|
+
}], designGuidelinesComponent: [{
|
|
2913
|
+
type: ContentChild,
|
|
2914
|
+
args: [SkyDocsDesignGuidelinesComponent]
|
|
2915
|
+
}], codeExampleComponents: [{
|
|
2916
|
+
type: ContentChildren,
|
|
2917
|
+
args: [SkyDocsCodeExamplesComponent]
|
|
2918
|
+
}] } });
|
|
2919
|
+
|
|
2920
|
+
class SkyDocsDemoPageModuleInfoComponent {
|
|
2921
|
+
}
|
|
2922
|
+
SkyDocsDemoPageModuleInfoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoPageModuleInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2923
|
+
SkyDocsDemoPageModuleInfoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyDocsDemoPageModuleInfoComponent, selector: "sky-docs-demo-page-module-info", ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
|
|
2924
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoPageModuleInfoComponent, decorators: [{
|
|
2925
|
+
type: Component,
|
|
2926
|
+
args: [{
|
|
2927
|
+
selector: 'sky-docs-demo-page-module-info',
|
|
2928
|
+
template: '<ng-content></ng-content>'
|
|
2929
|
+
}]
|
|
2930
|
+
}] });
|
|
2931
|
+
|
|
2932
|
+
class SkyDocsDemoPageModule {
|
|
2933
|
+
}
|
|
2934
|
+
SkyDocsDemoPageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoPageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2935
|
+
SkyDocsDemoPageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoPageModule, declarations: [SkyDocsDemoPageComponent,
|
|
2936
|
+
SkyDocsDemoPageModuleInfoComponent,
|
|
2937
|
+
SkyDocsDemoPageSectionComponent,
|
|
2938
|
+
SkyDocsDemoPageSummaryComponent,
|
|
2939
|
+
SkyDocsDemoPageTypeDefinitionsComponent], imports: [CommonModule,
|
|
2940
|
+
RouterModule,
|
|
2941
|
+
SkyCodeBlockModule,
|
|
2942
|
+
SkyCodeModule,
|
|
2943
|
+
SkyDocsDemoModule,
|
|
2944
|
+
SkyDocsHeadingAnchorModule,
|
|
2945
|
+
SkyDocsMarkdownModule,
|
|
2946
|
+
SkyDocsModuleInfoModule,
|
|
2947
|
+
SkyDocsTypeDefinitionsModule,
|
|
2948
|
+
SkyTabsModule,
|
|
2949
|
+
StachePageSummaryModule,
|
|
2950
|
+
StacheWrapperModule], exports: [SkyDocsDemoPageComponent,
|
|
2951
|
+
SkyDocsDemoPageModuleInfoComponent,
|
|
2952
|
+
SkyDocsDemoPageSectionComponent,
|
|
2953
|
+
SkyDocsDemoPageSummaryComponent,
|
|
2954
|
+
SkyDocsDemoPageTypeDefinitionsComponent] });
|
|
2955
|
+
SkyDocsDemoPageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoPageModule, imports: [[
|
|
2880
2956
|
CommonModule,
|
|
2881
2957
|
RouterModule,
|
|
2882
2958
|
SkyCodeBlockModule,
|
|
@@ -2889,109 +2965,125 @@ SkyDocsDemoPageModule = __decorate([
|
|
|
2889
2965
|
SkyTabsModule,
|
|
2890
2966
|
StachePageSummaryModule,
|
|
2891
2967
|
StacheWrapperModule
|
|
2892
|
-
]
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2968
|
+
]] });
|
|
2969
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDemoPageModule, decorators: [{
|
|
2970
|
+
type: NgModule,
|
|
2971
|
+
args: [{
|
|
2972
|
+
imports: [
|
|
2973
|
+
CommonModule,
|
|
2974
|
+
RouterModule,
|
|
2975
|
+
SkyCodeBlockModule,
|
|
2976
|
+
SkyCodeModule,
|
|
2977
|
+
SkyDocsDemoModule,
|
|
2978
|
+
SkyDocsHeadingAnchorModule,
|
|
2979
|
+
SkyDocsMarkdownModule,
|
|
2980
|
+
SkyDocsModuleInfoModule,
|
|
2981
|
+
SkyDocsTypeDefinitionsModule,
|
|
2982
|
+
SkyTabsModule,
|
|
2983
|
+
StachePageSummaryModule,
|
|
2984
|
+
StacheWrapperModule
|
|
2985
|
+
],
|
|
2986
|
+
declarations: [
|
|
2987
|
+
SkyDocsDemoPageComponent,
|
|
2988
|
+
SkyDocsDemoPageModuleInfoComponent,
|
|
2989
|
+
SkyDocsDemoPageSectionComponent,
|
|
2990
|
+
SkyDocsDemoPageSummaryComponent,
|
|
2991
|
+
SkyDocsDemoPageTypeDefinitionsComponent
|
|
2992
|
+
],
|
|
2993
|
+
exports: [
|
|
2994
|
+
SkyDocsDemoPageComponent,
|
|
2995
|
+
SkyDocsDemoPageModuleInfoComponent,
|
|
2996
|
+
SkyDocsDemoPageSectionComponent,
|
|
2997
|
+
SkyDocsDemoPageSummaryComponent,
|
|
2998
|
+
SkyDocsDemoPageTypeDefinitionsComponent
|
|
2999
|
+
]
|
|
3000
|
+
}]
|
|
3001
|
+
}] });
|
|
3002
|
+
|
|
3003
|
+
class SkyDocsThumbnailComponent {
|
|
2914
3004
|
constructor() {
|
|
2915
3005
|
this.showBorder = false;
|
|
2916
3006
|
}
|
|
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: [
|
|
3007
|
+
}
|
|
3008
|
+
SkyDocsThumbnailComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsThumbnailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3009
|
+
SkyDocsThumbnailComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
3010
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsThumbnailComponent, decorators: [{
|
|
3011
|
+
type: Component,
|
|
3012
|
+
args: [{
|
|
3013
|
+
selector: 'sky-docs-thumbnail',
|
|
3014
|
+
templateUrl: './thumbnail.component.html',
|
|
3015
|
+
styleUrls: ['./thumbnail.component.scss'],
|
|
3016
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
3017
|
+
}]
|
|
3018
|
+
}], propDecorators: { caption: [{
|
|
3019
|
+
type: Input
|
|
3020
|
+
}], captionType: [{
|
|
3021
|
+
type: Input
|
|
3022
|
+
}], imageAlt: [{
|
|
3023
|
+
type: Input
|
|
3024
|
+
}], imageSource: [{
|
|
3025
|
+
type: Input
|
|
3026
|
+
}], showBorder: [{
|
|
3027
|
+
type: Input
|
|
3028
|
+
}], videoSource: [{
|
|
3029
|
+
type: Input
|
|
3030
|
+
}] } });
|
|
3031
|
+
|
|
3032
|
+
class SkyDocsThumbnailModule {
|
|
3033
|
+
}
|
|
3034
|
+
SkyDocsThumbnailModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsThumbnailModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3035
|
+
SkyDocsThumbnailModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsThumbnailModule, declarations: [SkyDocsThumbnailComponent], imports: [CommonModule,
|
|
3036
|
+
SkyImageModule], exports: [SkyDocsThumbnailComponent] });
|
|
3037
|
+
SkyDocsThumbnailModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsThumbnailModule, imports: [[
|
|
2950
3038
|
CommonModule,
|
|
2951
3039
|
SkyImageModule
|
|
2952
|
-
]
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
3040
|
+
]] });
|
|
3041
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsThumbnailModule, decorators: [{
|
|
3042
|
+
type: NgModule,
|
|
3043
|
+
args: [{
|
|
3044
|
+
imports: [
|
|
3045
|
+
CommonModule,
|
|
3046
|
+
SkyImageModule
|
|
3047
|
+
],
|
|
3048
|
+
exports: [
|
|
3049
|
+
SkyDocsThumbnailComponent
|
|
3050
|
+
],
|
|
3051
|
+
declarations: [
|
|
3052
|
+
SkyDocsThumbnailComponent
|
|
3053
|
+
]
|
|
3054
|
+
}]
|
|
3055
|
+
}] });
|
|
3056
|
+
|
|
3057
|
+
class SkyDocsDesignGuidelineThumbnailComponent {
|
|
2963
3058
|
constructor() {
|
|
2964
3059
|
this.showBorder = false;
|
|
2965
3060
|
}
|
|
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 {
|
|
3061
|
+
}
|
|
3062
|
+
SkyDocsDesignGuidelineThumbnailComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDesignGuidelineThumbnailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3063
|
+
SkyDocsDesignGuidelineThumbnailComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
3064
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDesignGuidelineThumbnailComponent, decorators: [{
|
|
3065
|
+
type: Component,
|
|
3066
|
+
args: [{
|
|
3067
|
+
selector: 'sky-docs-design-guideline-thumbnail',
|
|
3068
|
+
templateUrl: './design-guideline-thumbnail.component.html',
|
|
3069
|
+
styleUrls: ['./design-guideline-thumbnail.component.scss'],
|
|
3070
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
3071
|
+
}]
|
|
3072
|
+
}], propDecorators: { caption: [{
|
|
3073
|
+
type: Input
|
|
3074
|
+
}], captionType: [{
|
|
3075
|
+
type: Input
|
|
3076
|
+
}], imageAlt: [{
|
|
3077
|
+
type: Input
|
|
3078
|
+
}], imageSource: [{
|
|
3079
|
+
type: Input
|
|
3080
|
+
}], videoSource: [{
|
|
3081
|
+
type: Input
|
|
3082
|
+
}], showBorder: [{
|
|
3083
|
+
type: Input
|
|
3084
|
+
}] } });
|
|
3085
|
+
|
|
3086
|
+
class SkyDocsDesignGuidelineComponent {
|
|
2995
3087
|
constructor() {
|
|
2996
3088
|
this.headingStyle = 'default';
|
|
2997
3089
|
this.hasThumbnails = false;
|
|
@@ -3004,71 +3096,97 @@ let SkyDocsDesignGuidelineComponent = class SkyDocsDesignGuidelineComponent {
|
|
|
3004
3096
|
ngAfterContentInit() {
|
|
3005
3097
|
this.hasThumbnails = !!this.thumbnails.length;
|
|
3006
3098
|
}
|
|
3007
|
-
}
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
]
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3099
|
+
}
|
|
3100
|
+
SkyDocsDesignGuidelineComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDesignGuidelineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3101
|
+
SkyDocsDesignGuidelineComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", 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 });
|
|
3102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDesignGuidelineComponent, decorators: [{
|
|
3103
|
+
type: Component,
|
|
3104
|
+
args: [{
|
|
3105
|
+
selector: 'sky-docs-design-guideline',
|
|
3106
|
+
templateUrl: './design-guideline.component.html',
|
|
3107
|
+
styleUrls: ['./design-guideline.component.scss'],
|
|
3108
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
3109
|
+
}]
|
|
3110
|
+
}], propDecorators: { heading: [{
|
|
3111
|
+
type: Input
|
|
3112
|
+
}], headingStyle: [{
|
|
3113
|
+
type: Input
|
|
3114
|
+
}], thumbnails: [{
|
|
3115
|
+
type: ContentChildren,
|
|
3116
|
+
args: [SkyDocsDesignGuidelineThumbnailComponent]
|
|
3117
|
+
}] } });
|
|
3118
|
+
|
|
3119
|
+
class SkyDocsDesignGuidelinesModule {
|
|
3120
|
+
}
|
|
3121
|
+
SkyDocsDesignGuidelinesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDesignGuidelinesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3122
|
+
SkyDocsDesignGuidelinesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDesignGuidelinesModule, declarations: [SkyDocsDesignGuidelineComponent,
|
|
3123
|
+
SkyDocsDesignGuidelineThumbnailComponent,
|
|
3124
|
+
SkyDocsDesignGuidelinesComponent], imports: [CommonModule,
|
|
3125
|
+
SkyDocsThumbnailModule,
|
|
3126
|
+
SkyFluidGridModule], exports: [SkyDocsDesignGuidelineComponent,
|
|
3127
|
+
SkyDocsDesignGuidelineThumbnailComponent,
|
|
3128
|
+
SkyDocsDesignGuidelinesComponent] });
|
|
3129
|
+
SkyDocsDesignGuidelinesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDesignGuidelinesModule, imports: [[
|
|
3031
3130
|
CommonModule,
|
|
3032
3131
|
SkyDocsThumbnailModule,
|
|
3033
3132
|
SkyFluidGridModule
|
|
3034
|
-
]
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3133
|
+
]] });
|
|
3134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsDesignGuidelinesModule, decorators: [{
|
|
3135
|
+
type: NgModule,
|
|
3136
|
+
args: [{
|
|
3137
|
+
imports: [
|
|
3138
|
+
CommonModule,
|
|
3139
|
+
SkyDocsThumbnailModule,
|
|
3140
|
+
SkyFluidGridModule
|
|
3141
|
+
],
|
|
3142
|
+
declarations: [
|
|
3143
|
+
SkyDocsDesignGuidelineComponent,
|
|
3144
|
+
SkyDocsDesignGuidelineThumbnailComponent,
|
|
3145
|
+
SkyDocsDesignGuidelinesComponent
|
|
3146
|
+
],
|
|
3147
|
+
exports: [
|
|
3148
|
+
SkyDocsDesignGuidelineComponent,
|
|
3149
|
+
SkyDocsDesignGuidelineThumbnailComponent,
|
|
3150
|
+
SkyDocsDesignGuidelinesComponent
|
|
3151
|
+
]
|
|
3152
|
+
}]
|
|
3153
|
+
}] });
|
|
3047
3154
|
|
|
3048
3155
|
/**
|
|
3049
3156
|
* This module conveniently exports the most commonly used modules.
|
|
3050
3157
|
*/
|
|
3051
|
-
|
|
3052
|
-
}
|
|
3053
|
-
SkyDocsToolsModule =
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
]
|
|
3066
|
-
|
|
3067
|
-
|
|
3158
|
+
class SkyDocsToolsModule {
|
|
3159
|
+
}
|
|
3160
|
+
SkyDocsToolsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsToolsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3161
|
+
SkyDocsToolsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsToolsModule, exports: [SkyAuthHttpClientModule,
|
|
3162
|
+
SkyDocsAnatomyModule,
|
|
3163
|
+
SkyDocsCodeExamplesModule,
|
|
3164
|
+
SkyDocsDemoModule,
|
|
3165
|
+
SkyDocsDemoPageModule,
|
|
3166
|
+
SkyDocsDesignGuidelinesModule] });
|
|
3167
|
+
SkyDocsToolsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsToolsModule, imports: [SkyAuthHttpClientModule,
|
|
3168
|
+
SkyDocsAnatomyModule,
|
|
3169
|
+
SkyDocsCodeExamplesModule,
|
|
3170
|
+
SkyDocsDemoModule,
|
|
3171
|
+
SkyDocsDemoPageModule,
|
|
3172
|
+
SkyDocsDesignGuidelinesModule] });
|
|
3173
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: SkyDocsToolsModule, decorators: [{
|
|
3174
|
+
type: NgModule,
|
|
3175
|
+
args: [{
|
|
3176
|
+
exports: [
|
|
3177
|
+
SkyAuthHttpClientModule,
|
|
3178
|
+
SkyDocsAnatomyModule,
|
|
3179
|
+
SkyDocsCodeExamplesModule,
|
|
3180
|
+
SkyDocsDemoModule,
|
|
3181
|
+
SkyDocsDemoPageModule,
|
|
3182
|
+
SkyDocsDesignGuidelinesModule
|
|
3183
|
+
]
|
|
3184
|
+
}]
|
|
3185
|
+
}] });
|
|
3068
3186
|
|
|
3069
3187
|
/**
|
|
3070
3188
|
* Generated bundle index. Do not edit.
|
|
3071
3189
|
*/
|
|
3072
3190
|
|
|
3073
|
-
export { SkyDocsAnatomyModule, SkyDocsCodeExampleTheme, SkyDocsCodeExamplesModule, SkyDocsDemoModule, SkyDocsDemoPageModule, SkyDocsDesignGuidelinesModule, SkyDocsHeadingAnchorModule, SkyDocsMarkdownModule, SkyDocsMarkdownPipe, SkyDocsModuleInfoModule, SkyDocsSourceCodeProvider, SkyDocsSupportalService, SkyDocsThumbnailModule, SkyDocsToolsModule, SkyDocsToolsOptions, SkyDocsTypeDefinitionsModule, SkyDocsTypeDefinitionsProvider, SkyDocsTypeDefinitionsService,
|
|
3191
|
+
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
3192
|
//# sourceMappingURL=skyux-docs-tools.js.map
|