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