@eui/showcase 15.4.0 → 15.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +296 -296
- package/README.md +26 -26
- package/esm2020/eui-showcase.mjs +4 -4
- package/esm2020/index.mjs +3 -3
- package/esm2020/lib/components/doc-page/doc-page.component.mjs +357 -357
- package/esm2020/lib/components/doc-page-code/doc-page-code.component.mjs +27 -27
- package/esm2020/lib/components/doc-page-code-fab/doc-page-code-fab.component.mjs +39 -39
- package/esm2020/lib/components/doc-page-pattern/doc-page-pattern.component.mjs +114 -114
- package/esm2020/lib/components/doc-sample/doc-sample.component.mjs +158 -158
- package/esm2020/lib/components/doc-sample-api/doc-sample-api.component.mjs +11 -11
- package/esm2020/lib/components/doc-section/doc-section.component.mjs +27 -27
- package/esm2020/lib/components/doc-section-code/doc-section-code.component.mjs +106 -106
- package/esm2020/lib/components/eui-code-highlighter/eui-code-highlighter.component.mjs +21 -21
- package/esm2020/lib/components/index.mjs +13 -13
- package/esm2020/lib/components/lorem-ipsum/lorem-ipsum-sample.component.mjs +17 -17
- package/esm2020/lib/components/playground/playground.component.mjs +198 -198
- package/esm2020/lib/components/playground/stackblitz.files.mjs +210 -210
- package/esm2020/lib/eui-showcase.module.mjs +150 -150
- package/fesm2015/eui-showcase.mjs +1307 -1307
- package/fesm2015/eui-showcase.mjs.map +1 -1
- package/fesm2020/eui-showcase.mjs +1309 -1309
- package/fesm2020/eui-showcase.mjs.map +1 -1
- package/index.d.ts +2 -2
- package/lib/components/doc-page/doc-page.component.d.ts +90 -90
- package/lib/components/doc-page-code/doc-page-code.component.d.ts +8 -8
- package/lib/components/doc-page-code-fab/doc-page-code-fab.component.d.ts +15 -15
- package/lib/components/doc-page-pattern/doc-page-pattern.component.d.ts +43 -43
- package/lib/components/doc-sample/doc-sample.component.d.ts +45 -45
- package/lib/components/doc-sample-api/doc-sample-api.component.d.ts +5 -5
- package/lib/components/doc-section/doc-section.component.d.ts +10 -10
- package/lib/components/doc-section-code/doc-section-code.component.d.ts +44 -44
- package/lib/components/eui-code-highlighter/eui-code-highlighter.component.d.ts +9 -9
- package/lib/components/index.d.ts +12 -12
- package/lib/components/lorem-ipsum/lorem-ipsum-sample.component.d.ts +6 -6
- package/lib/components/playground/playground.component.d.ts +61 -61
- package/lib/components/playground/stackblitz.files.d.ts +15 -15
- package/lib/eui-showcase.module.d.ts +29 -29
- package/package.json +2 -2
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@eui/components/eui-button";
|
|
4
|
-
import * as i2 from "@eui/components/eui-icon";
|
|
5
|
-
import * as i3 from "@eui/components/eui-label";
|
|
6
|
-
export class DocPageCodeComponent {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.codeFolder = '';
|
|
9
|
-
this.showcase = 'ux';
|
|
10
|
-
}
|
|
11
|
-
onOpenCode() {
|
|
12
|
-
// eslint-disable-next-line max-len
|
|
13
|
-
const sourceRootPath = `https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/app-eui-showcase-${this.showcase}/browse/src/app/`;
|
|
14
|
-
window.open(sourceRootPath + this.codeFolder, '_blank');
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
/** @nocollapse */ DocPageCodeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocPageCodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
-
/** @nocollapse */ DocPageCodeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: DocPageCodeComponent, selector: "eui-showcase-doc-page-code", inputs: { codeFolder: "codeFolder", showcase: "showcase" }, ngImport: i0, template: "<button type=\"button\" euiButton euiAccent (click)=\"onOpenCode()\">\n <span euiLabel>Check the code</span>\n <span euiIcon iconClass=\"eui-icon eui-icon-code\"></span>\n</button>\n", dependencies: [{ kind: "component", type: i1.EuiButtonComponent, selector: "button[euiButton], a[euiButton]", inputs: ["e2eAttr", "id", "euiBasicButton", "euiButtonCall", "euiBlockButton", "isLoading", "euiIconButton", "euiLineWrap"], outputs: ["buttonClick"] }, { kind: "component", type: i2.EuiIconComponent, selector: "div[euiIcon], span[euiIcon], i[euiIcon], eui-icon", inputs: ["aria-label", "iconClass", "isLoading"] }, { kind: "component", type: i3.EuiLabelComponent, selector: "label[euiLabel], span[euiLabel], div[euiLabel], a[euiLabel], eui-label, label[euiSublabel], span[euiSublabel], div[euiSublabel], a[euiSublabel], eui-sublabel", inputs: ["euiRequired", "euiReadonly", "euiSublabel"] }] });
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocPageCodeComponent, decorators: [{
|
|
20
|
-
type: Component,
|
|
21
|
-
args: [{ selector: 'eui-showcase-doc-page-code', template: "<button type=\"button\" euiButton euiAccent (click)=\"onOpenCode()\">\n <span euiLabel>Check the code</span>\n <span euiIcon iconClass=\"eui-icon eui-icon-code\"></span>\n</button>\n" }]
|
|
22
|
-
}], propDecorators: { codeFolder: [{
|
|
23
|
-
type: Input
|
|
24
|
-
}], showcase: [{
|
|
25
|
-
type: Input
|
|
26
|
-
}] } });
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@eui/components/eui-button";
|
|
4
|
+
import * as i2 from "@eui/components/eui-icon";
|
|
5
|
+
import * as i3 from "@eui/components/eui-label";
|
|
6
|
+
export class DocPageCodeComponent {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.codeFolder = '';
|
|
9
|
+
this.showcase = 'ux';
|
|
10
|
+
}
|
|
11
|
+
onOpenCode() {
|
|
12
|
+
// eslint-disable-next-line max-len
|
|
13
|
+
const sourceRootPath = `https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/app-eui-showcase-${this.showcase}/browse/src/app/`;
|
|
14
|
+
window.open(sourceRootPath + this.codeFolder, '_blank');
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
/** @nocollapse */ DocPageCodeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocPageCodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
+
/** @nocollapse */ DocPageCodeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: DocPageCodeComponent, selector: "eui-showcase-doc-page-code", inputs: { codeFolder: "codeFolder", showcase: "showcase" }, ngImport: i0, template: "<button type=\"button\" euiButton euiAccent (click)=\"onOpenCode()\">\r\n <span euiLabel>Check the code</span>\r\n <span euiIcon iconClass=\"eui-icon eui-icon-code\"></span>\r\n</button>\r\n", dependencies: [{ kind: "component", type: i1.EuiButtonComponent, selector: "button[euiButton], a[euiButton]", inputs: ["e2eAttr", "id", "euiBasicButton", "euiButtonCall", "euiBlockButton", "isLoading", "euiIconButton", "euiLineWrap"], outputs: ["buttonClick"] }, { kind: "component", type: i2.EuiIconComponent, selector: "div[euiIcon], span[euiIcon], i[euiIcon], eui-icon", inputs: ["aria-label", "iconClass", "isLoading"] }, { kind: "component", type: i3.EuiLabelComponent, selector: "label[euiLabel], span[euiLabel], div[euiLabel], a[euiLabel], eui-label, label[euiSublabel], span[euiSublabel], div[euiSublabel], a[euiSublabel], eui-sublabel", inputs: ["euiRequired", "euiReadonly", "euiSublabel"] }] });
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocPageCodeComponent, decorators: [{
|
|
20
|
+
type: Component,
|
|
21
|
+
args: [{ selector: 'eui-showcase-doc-page-code', template: "<button type=\"button\" euiButton euiAccent (click)=\"onOpenCode()\">\r\n <span euiLabel>Check the code</span>\r\n <span euiIcon iconClass=\"eui-icon eui-icon-code\"></span>\r\n</button>\r\n" }]
|
|
22
|
+
}], propDecorators: { codeFolder: [{
|
|
23
|
+
type: Input
|
|
24
|
+
}], showcase: [{
|
|
25
|
+
type: Input
|
|
26
|
+
}] } });
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9jLXBhZ2UtY29kZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL2NvbXBvbmVudHMvZG9jLXBhZ2UtY29kZS9kb2MtcGFnZS1jb2RlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9kb2MtcGFnZS1jb2RlL2RvYy1wYWdlLWNvZGUuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7O0FBTWpELE1BQU0sT0FBTyxvQkFBb0I7SUFKakM7UUFLYSxlQUFVLEdBQUcsRUFBRSxDQUFDO1FBQ2hCLGFBQVEsR0FBRyxJQUFJLENBQUM7S0FPNUI7SUFMRyxVQUFVO1FBQ04sbUNBQW1DO1FBQ25DLE1BQU0sY0FBYyxHQUFHLHNGQUFzRixJQUFJLENBQUMsUUFBUSxrQkFBa0IsQ0FBQztRQUM3SSxNQUFNLENBQUMsSUFBSSxDQUFDLGNBQWMsR0FBRyxJQUFJLENBQUMsVUFBVSxFQUFFLFFBQVEsQ0FBQyxDQUFDO0lBQzVELENBQUM7O29JQVJRLG9CQUFvQjt3SEFBcEIsb0JBQW9CLDhIQ05qQyxzTUFJQTsyRkRFYSxvQkFBb0I7a0JBSmhDLFNBQVM7K0JBQ0ksNEJBQTRCOzhCQUk3QixVQUFVO3NCQUFsQ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XCI+PC9zcGFuPlxyXG48L2J1dHRvbj5cclxuIl19
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { Component, Input, ViewChild } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@eui/core";
|
|
4
|
-
import * as i2 from "@angular/common";
|
|
5
|
-
import * as i3 from "@eui/components/eui-button";
|
|
6
|
-
import * as i4 from "@eui/components/eui-dialog";
|
|
7
|
-
import * as i5 from "@eui/components/eui-icon";
|
|
8
|
-
export class DocPageCodeFabComponent {
|
|
9
|
-
constructor(asService) {
|
|
10
|
-
this.asService = asService;
|
|
11
|
-
this.codeFolder = '';
|
|
12
|
-
this.showcase = 'ux-patterns';
|
|
13
|
-
}
|
|
14
|
-
toggleCode() {
|
|
15
|
-
this.dialog.openDialog();
|
|
16
|
-
}
|
|
17
|
-
onClose() {
|
|
18
|
-
this.dialog.closeDialog();
|
|
19
|
-
}
|
|
20
|
-
onOpenCode() {
|
|
21
|
-
// eslint-disable-next-line max-len
|
|
22
|
-
const sourceRootPath = `https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/app-eui-showcase-${this.showcase}/browse/src/app/features/`;
|
|
23
|
-
window.open(sourceRootPath + this.codeFolder, '_blank');
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
/** @nocollapse */ DocPageCodeFabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocPageCodeFabComponent, deps: [{ token: i1.UxAppShellService }], target: i0.ɵɵFactoryTarget.Component });
|
|
27
|
-
/** @nocollapse */ DocPageCodeFabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: DocPageCodeFabComponent, selector: "eui-showcase-doc-page-code-fab", inputs: { codeFolder: "codeFolder", showcase: "showcase" }, viewQueries: [{ propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true }], ngImport: i0, template: "<div class=\"eui-button-fixed\">\n <div class=\"eui-button-floating eui-button--size-2xl eui-button--icon-only eui-button--accent\">\n <span class=\"eui-icon eui-icon-code\" (click)=\"toggleCode()\"></span>\n </div>\n</div>\n\n<eui-dialog #dialog title=\"Page source code\" [hasFooter]=\"false\" (close)=\"onClose()\" [width]=\"'50vw'\">\n <button type=\"button\" *ngIf=\"codeFolder\" euiButton euiAccent euiSizeS (click)=\"onOpenCode()\">\n <eui-icon-svg icon=\"eui-code\" set=\"eui\" size=\"m\" fillColor=\"grey-100\" class=\"eui-u-mr-xs\"></eui-icon-svg> VIEW SOURCES\n </button>\n <ng-content></ng-content>\n <p>Use the <kbd>View sources</kbd> button to access the code source of the page.</p>\n</eui-dialog>\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.EuiButtonComponent, selector: "button[euiButton], a[euiButton]", inputs: ["e2eAttr", "id", "euiBasicButton", "euiButtonCall", "euiBlockButton", "isLoading", "euiIconButton", "euiLineWrap"], outputs: ["buttonClick"] }, { kind: "component", type: i4.EuiDialogComponent, selector: "eui-dialog", inputs: ["e2eAttr", "title", "acceptLabel", "dismissLabel", "typeClass", "width", "height", "isFullScreen", "hasCloseButton", "hasAcceptButton", "hasDismissButton", "hasMobileCustomSize", "isClosedOnClickOutside", "isClosedOnEscape", "isHandleCloseOnDismiss", "isHandleCloseOnClose", "isHandleCloseOnAccept", "isHandleCloseOnClickOutside", "isHandleCloseOnEscape", "isMessageBox", "isDraggable", "hasNoBodyPadding", "hasFooter"], outputs: ["clickOutside", "escape", "open", "close", "dismiss", "accept"] }, { kind: "component", type: i5.EuiIconSvgComponent, selector: "eui-icon-svg, span[euiIconSvg], i[euiIconSvg]", inputs: ["icon", "size", "fillColor", "set", "ariaLabelledby", "role", "style", "iconUrl", "transform", "aria-label", "ariaHidden", "focusable", "isLoading"] }] });
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocPageCodeFabComponent, decorators: [{
|
|
29
|
-
type: Component,
|
|
30
|
-
args: [{ selector: 'eui-showcase-doc-page-code-fab', template: "<div class=\"eui-button-fixed\">\n <div class=\"eui-button-floating eui-button--size-2xl eui-button--icon-only eui-button--accent\">\n <span class=\"eui-icon eui-icon-code\" (click)=\"toggleCode()\"></span>\n </div>\n</div>\n\n<eui-dialog #dialog title=\"Page source code\" [hasFooter]=\"false\" (close)=\"onClose()\" [width]=\"'50vw'\">\n <button type=\"button\" *ngIf=\"codeFolder\" euiButton euiAccent euiSizeS (click)=\"onOpenCode()\">\n <eui-icon-svg icon=\"eui-code\" set=\"eui\" size=\"m\" fillColor=\"grey-100\" class=\"eui-u-mr-xs\"></eui-icon-svg> VIEW SOURCES\n </button>\n <ng-content></ng-content>\n <p>Use the <kbd>View sources</kbd> button to access the code source of the page.</p>\n</eui-dialog>\n" }]
|
|
31
|
-
}], ctorParameters: function () { return [{ type: i1.UxAppShellService }]; }, propDecorators: { codeFolder: [{
|
|
32
|
-
type: Input
|
|
33
|
-
}], showcase: [{
|
|
34
|
-
type: Input
|
|
35
|
-
}], dialog: [{
|
|
36
|
-
type: ViewChild,
|
|
37
|
-
args: ['dialog']
|
|
38
|
-
}] } });
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, Input, ViewChild } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@eui/core";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
import * as i3 from "@eui/components/eui-button";
|
|
6
|
+
import * as i4 from "@eui/components/eui-dialog";
|
|
7
|
+
import * as i5 from "@eui/components/eui-icon";
|
|
8
|
+
export class DocPageCodeFabComponent {
|
|
9
|
+
constructor(asService) {
|
|
10
|
+
this.asService = asService;
|
|
11
|
+
this.codeFolder = '';
|
|
12
|
+
this.showcase = 'ux-patterns';
|
|
13
|
+
}
|
|
14
|
+
toggleCode() {
|
|
15
|
+
this.dialog.openDialog();
|
|
16
|
+
}
|
|
17
|
+
onClose() {
|
|
18
|
+
this.dialog.closeDialog();
|
|
19
|
+
}
|
|
20
|
+
onOpenCode() {
|
|
21
|
+
// eslint-disable-next-line max-len
|
|
22
|
+
const sourceRootPath = `https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/app-eui-showcase-${this.showcase}/browse/src/app/features/`;
|
|
23
|
+
window.open(sourceRootPath + this.codeFolder, '_blank');
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
/** @nocollapse */ DocPageCodeFabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocPageCodeFabComponent, deps: [{ token: i1.UxAppShellService }], target: i0.ɵɵFactoryTarget.Component });
|
|
27
|
+
/** @nocollapse */ DocPageCodeFabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: DocPageCodeFabComponent, selector: "eui-showcase-doc-page-code-fab", inputs: { codeFolder: "codeFolder", showcase: "showcase" }, viewQueries: [{ propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true }], ngImport: i0, template: "<div class=\"eui-button-fixed\">\r\n <div class=\"eui-button-floating eui-button--size-2xl eui-button--icon-only eui-button--accent\">\r\n <span class=\"eui-icon eui-icon-code\" (click)=\"toggleCode()\"></span>\r\n </div>\r\n</div>\r\n\r\n<eui-dialog #dialog title=\"Page source code\" [hasFooter]=\"false\" (close)=\"onClose()\" [width]=\"'50vw'\">\r\n <button type=\"button\" *ngIf=\"codeFolder\" euiButton euiAccent euiSizeS (click)=\"onOpenCode()\">\r\n <eui-icon-svg icon=\"eui-code\" set=\"eui\" size=\"m\" fillColor=\"grey-100\" class=\"eui-u-mr-xs\"></eui-icon-svg> VIEW SOURCES\r\n </button>\r\n <ng-content></ng-content>\r\n <p>Use the <kbd>View sources</kbd> button to access the code source of the page.</p>\r\n</eui-dialog>\r\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.EuiButtonComponent, selector: "button[euiButton], a[euiButton]", inputs: ["e2eAttr", "id", "euiBasicButton", "euiButtonCall", "euiBlockButton", "isLoading", "euiIconButton", "euiLineWrap"], outputs: ["buttonClick"] }, { kind: "component", type: i4.EuiDialogComponent, selector: "eui-dialog", inputs: ["e2eAttr", "title", "acceptLabel", "dismissLabel", "typeClass", "width", "height", "isFullScreen", "hasCloseButton", "hasAcceptButton", "hasDismissButton", "hasMobileCustomSize", "isClosedOnClickOutside", "isClosedOnEscape", "isHandleCloseOnDismiss", "isHandleCloseOnClose", "isHandleCloseOnAccept", "isHandleCloseOnClickOutside", "isHandleCloseOnEscape", "isMessageBox", "isDraggable", "hasNoBodyPadding", "hasFooter"], outputs: ["clickOutside", "escape", "open", "close", "dismiss", "accept"] }, { kind: "component", type: i5.EuiIconSvgComponent, selector: "eui-icon-svg, span[euiIconSvg], i[euiIconSvg]", inputs: ["icon", "size", "fillColor", "set", "ariaLabelledby", "role", "style", "iconUrl", "transform", "aria-label", "ariaHidden", "focusable", "isLoading"] }] });
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DocPageCodeFabComponent, decorators: [{
|
|
29
|
+
type: Component,
|
|
30
|
+
args: [{ selector: 'eui-showcase-doc-page-code-fab', template: "<div class=\"eui-button-fixed\">\r\n <div class=\"eui-button-floating eui-button--size-2xl eui-button--icon-only eui-button--accent\">\r\n <span class=\"eui-icon eui-icon-code\" (click)=\"toggleCode()\"></span>\r\n </div>\r\n</div>\r\n\r\n<eui-dialog #dialog title=\"Page source code\" [hasFooter]=\"false\" (close)=\"onClose()\" [width]=\"'50vw'\">\r\n <button type=\"button\" *ngIf=\"codeFolder\" euiButton euiAccent euiSizeS (click)=\"onOpenCode()\">\r\n <eui-icon-svg icon=\"eui-code\" set=\"eui\" size=\"m\" fillColor=\"grey-100\" class=\"eui-u-mr-xs\"></eui-icon-svg> VIEW SOURCES\r\n </button>\r\n <ng-content></ng-content>\r\n <p>Use the <kbd>View sources</kbd> button to access the code source of the page.</p>\r\n</eui-dialog>\r\n" }]
|
|
31
|
+
}], ctorParameters: function () { return [{ type: i1.UxAppShellService }]; }, propDecorators: { codeFolder: [{
|
|
32
|
+
type: Input
|
|
33
|
+
}], showcase: [{
|
|
34
|
+
type: Input
|
|
35
|
+
}], dialog: [{
|
|
36
|
+
type: ViewChild,
|
|
37
|
+
args: ['dialog']
|
|
38
|
+
}] } });
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9jLXBhZ2UtY29kZS1mYWIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2xpYi9jb21wb25lbnRzL2RvYy1wYWdlLWNvZGUtZmFiL2RvYy1wYWdlLWNvZGUtZmFiLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9kb2MtcGFnZS1jb2RlLWZhYi9kb2MtcGFnZS1jb2RlLWZhYi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7Ozs7QUFRNUQsTUFBTSxPQUFPLHVCQUF1QjtJQU1oQyxZQUFtQixTQUE0QjtRQUE1QixjQUFTLEdBQVQsU0FBUyxDQUFtQjtRQUx0QyxlQUFVLEdBQUcsRUFBRSxDQUFDO1FBQ2hCLGFBQVEsR0FBRyxhQUFhLENBQUM7SUFJZ0IsQ0FBQztJQUU1QyxVQUFVO1FBQ2IsSUFBSSxDQUFDLE1BQU0sQ0FBQyxVQUFVLEVBQUU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