@skyux/docs-tools 8.0.2 → 9.0.0-alpha.0

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