@eui/showcase 18.2.13-snapshot-1747380207562 → 18.2.13
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/esm2022/lib/components/doc-playground-device/doc-playground-device.component.mjs +53 -14
- package/fesm2022/eui-showcase.mjs +57 -18
- package/fesm2022/eui-showcase.mjs.map +1 -1
- package/lib/components/doc-playground-device/doc-playground-device.component.d.ts +7 -1
- package/lib/components/doc-playground-device/doc-playground-device.component.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -4,16 +4,21 @@ import { EuiIconModule } from '@eui/components/eui-icon';
|
|
|
4
4
|
import { DEVICE_SIZES } from './device-sizes.const';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
import * as i1 from "@angular/platform-browser";
|
|
7
|
-
import * as i2 from "@
|
|
8
|
-
import * as i3 from "@eui/components/eui-
|
|
7
|
+
import * as i2 from "@angular/cdk/layout";
|
|
8
|
+
import * as i3 from "@eui/components/eui-select";
|
|
9
|
+
import * as i4 from "@eui/components/eui-icon";
|
|
9
10
|
export class DocPlaygroundDeviceComponent {
|
|
10
|
-
constructor(sanitizer) {
|
|
11
|
+
constructor(sanitizer, breakpointObserver) {
|
|
11
12
|
this.sanitizer = sanitizer;
|
|
13
|
+
this.breakpointObserver = breakpointObserver;
|
|
12
14
|
this.url = input();
|
|
13
15
|
this.showcaseNameWithVersion = input();
|
|
14
16
|
this.hasPreviewToolbar = input(true, { transform: booleanAttribute });
|
|
15
17
|
this.isPreviewToolbarDisabled = input(false, { transform: booleanAttribute });
|
|
18
|
+
this.isLandscapeView = false;
|
|
16
19
|
this.devices = [];
|
|
20
|
+
this.selectedDevice = { name: 'phone-small', width: 375, height: 667 };
|
|
21
|
+
this.isMobile = false;
|
|
17
22
|
}
|
|
18
23
|
ngOnInit() {
|
|
19
24
|
const url = window.location;
|
|
@@ -28,31 +33,65 @@ export class DocPlaygroundDeviceComponent {
|
|
|
28
33
|
}
|
|
29
34
|
this.urlSafe = this.sanitizer.bypassSecurityTrustResourceUrl(shellUrl);
|
|
30
35
|
this.loadDevices();
|
|
36
|
+
this.breakpointObserver.observe(['(max-width: 767px)']).subscribe(result => {
|
|
37
|
+
this.isMobile = result.matches;
|
|
38
|
+
if (this.isMobile) {
|
|
39
|
+
this.isLandscapeView = false;
|
|
40
|
+
}
|
|
41
|
+
this.onDeviceChange(event);
|
|
42
|
+
});
|
|
31
43
|
}
|
|
32
44
|
toggleOrientation() {
|
|
33
45
|
this.isLandscapeView = !this.isLandscapeView;
|
|
46
|
+
this.updateToolbarWidth();
|
|
34
47
|
}
|
|
35
48
|
onDeviceChange(event) {
|
|
36
|
-
const selectElement = event
|
|
37
|
-
const value = selectElement
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
49
|
+
const selectElement = event?.target;
|
|
50
|
+
const value = selectElement?.value;
|
|
51
|
+
const foundDevice = this.devices.find(d => d.name === value);
|
|
52
|
+
if (this.isMobile) {
|
|
53
|
+
this.selectedDevice = { name: 'phone-small', width: 375, height: 667 };
|
|
54
|
+
this.updateToolbarWidth();
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
this.updateToolbarWidth();
|
|
58
|
+
}
|
|
59
|
+
if (foundDevice && !this.isMobile) {
|
|
60
|
+
this.selectedDevice = foundDevice;
|
|
40
61
|
const el = this.containerRef.nativeElement;
|
|
41
|
-
el.style.setProperty('--device-width', `${
|
|
42
|
-
el.style.setProperty('--device-height', `${
|
|
62
|
+
el.style.setProperty('--device-width', `${foundDevice.width}px`);
|
|
63
|
+
el.style.setProperty('--device-height', `${foundDevice.height}px`);
|
|
64
|
+
this.updateToolbarWidth();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
updateToolbarWidth() {
|
|
68
|
+
if (!this.previewToolbar || !this.selectedDevice)
|
|
69
|
+
return;
|
|
70
|
+
const previewToolbar = this.previewToolbar.nativeElement;
|
|
71
|
+
if (this.isMobile) {
|
|
72
|
+
previewToolbar.style.setProperty('--toolbar-width', '100%');
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
const toolbarWidth = this.isLandscapeView
|
|
76
|
+
? this.selectedDevice.height
|
|
77
|
+
: this.selectedDevice.width;
|
|
78
|
+
previewToolbar.style.setProperty('--toolbar-width', `${toolbarWidth}px`);
|
|
43
79
|
}
|
|
44
80
|
}
|
|
45
81
|
loadDevices() {
|
|
46
82
|
this.devices = DEVICE_SIZES;
|
|
47
83
|
}
|
|
48
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DocPlaygroundDeviceComponent, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
49
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: DocPlaygroundDeviceComponent, isStandalone: true, selector: "eui-showcase-doc-playground-device", inputs: { url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: false, transformFunction: null }, showcaseNameWithVersion: { classPropertyName: "showcaseNameWithVersion", publicName: "showcaseNameWithVersion", isSignal: true, isRequired: false, transformFunction: null }, hasPreviewToolbar: { classPropertyName: "hasPreviewToolbar", publicName: "hasPreviewToolbar", isSignal: true, isRequired: false, transformFunction: null }, isPreviewToolbarDisabled: { classPropertyName: "isPreviewToolbarDisabled", publicName: "isPreviewToolbarDisabled", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["deviceWrapper"], descendants: true }], ngImport: i0, template: "@if (hasPreviewToolbar()) {\n <div class=\"device-preview-toolbar\" [class.device-preview-toolbar--disabled]=\"isPreviewToolbarDisabled()\">\n <div class=\"device-preview-toolbar__devices\">\n <select class=\"eui-u-cursor-pointer\" euiSelect name=\"device-sizes\" aria-label=\"device-sizes\" [value]=\"'phone-small'\" (change)=\"onDeviceChange($event)\">\n @for (device of devices; track device) {\n <option [value]=\"device.name\">\n {{ device.label }}\n </option>\n }\n </select>\n </div>\n <button class=\"device-preview-toolbar__orientation\" (click)=\"toggleOrientation()\">\n <eui-icon-svg [icon]=\"!isLandscapeView ? 'phone-portrait:outline' : 'phone-landscape:outline'\"
|
|
84
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DocPlaygroundDeviceComponent, deps: [{ token: i1.DomSanitizer }, { token: i2.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
85
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: DocPlaygroundDeviceComponent, isStandalone: true, selector: "eui-showcase-doc-playground-device", inputs: { url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: false, transformFunction: null }, showcaseNameWithVersion: { classPropertyName: "showcaseNameWithVersion", publicName: "showcaseNameWithVersion", isSignal: true, isRequired: false, transformFunction: null }, hasPreviewToolbar: { classPropertyName: "hasPreviewToolbar", publicName: "hasPreviewToolbar", isSignal: true, isRequired: false, transformFunction: null }, isPreviewToolbarDisabled: { classPropertyName: "isPreviewToolbarDisabled", publicName: "isPreviewToolbarDisabled", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["deviceWrapper"], descendants: true }, { propertyName: "previewToolbar", first: true, predicate: ["previewToolbar"], descendants: true }], ngImport: i0, template: "@if (hasPreviewToolbar()) {\n <div #previewToolbar class=\"device-preview-toolbar\" [class.device-preview-toolbar--disabled]=\"isPreviewToolbarDisabled()\">\n <div class=\"device-preview-toolbar__devices\">\n <select class=\"eui-u-cursor-pointer\" euiSelect name=\"device-sizes\" aria-label=\"device-sizes\" [value]=\"'phone-small'\" (change)=\"onDeviceChange($event)\">\n @for (device of devices; track device) {\n <option [value]=\"device.name\">\n {{ device.label }}\n </option>\n }\n </select>\n </div>\n <button class=\"device-preview-toolbar__orientation eui-u-cursor-pointer\" (click)=\"toggleOrientation()\">\n <eui-icon-svg [icon]=\"!isLandscapeView ? 'phone-portrait:outline' : 'phone-landscape:outline'\"/> |\n </button>\n <a [href]=\"urlSafe\" class=\"device-preview-toolbar__full-screen\" target=\"_blank\">\n <eui-icon-svg icon=\"open:outline\"/>\n <span>Full Screen</span>\n </a>\n </div>\n}\n<div class=\"device-wrapper\" #deviceWrapper [class.landscape]=\"isLandscapeView\">\n <iframe id=\"iframe-playground\" loading=\"lazy\" class=\"device-frame\" width=\"100%\" height=\"100%\" frameBorder=\"0\" [src]=\"urlSafe\"></iframe>\n</div>\n", styles: [":root{--device-width: 375px;--device-height: 667px;--toolbar-width: 375px}@media (max-width: 767px){:root{--toolbar-width: 100%}}.device-wrapper{border:.5rem solid var(--eui-c-neutral-max);border-radius:2rem;width:var(--device-width);height:var(--device-height);transition:transform .5s ease,width .5s,height .5s;transform-origin:center center;position:relative}@media (min-width: 768px){.device-wrapper{width:var(--device-width)}}.device-wrapper.landscape{transform:rotate(0);width:var(--device-height);height:var(--device-width)}.device-wrapper.landscape .device-frame{height:calc(var(--device-width) - var(--eui-s-m));width:calc(var(--device-height) - var(--eui-s-m))}.device-frame{border-radius:1.5rem;height:calc(var(--device-height) - var(--eui-s-m));transition:transform .5s ease,width .5s,height .5s;transform-origin:center center}@media (min-width: 768px){.device-frame{width:calc(var(--device-width) - var(--eui-s-m))}}@media screen and (max-width: 767px){.device-wrapper{width:100%}}.device-preview-toolbar{font:var(--eui-f-m-compact);display:flex;align-items:center;justify-content:center;padding:var(--eui-s-xs);border-radius:var(--eui-br-xl);box-shadow:0 1px 3px #0003;margin-bottom:var(--eui-s-m);width:var(--toolbar-width);transition:transform .5s ease,width .5s,height .5s}@media (max-width: 767px){.device-preview-toolbar__devices{display:none}}.device-preview-toolbar__orientation{background-color:transparent;border:none;display:flex;align-items:center;margin-left:var(--eui-s-m);margin-right:var(--eui-s-m)}.device-preview-toolbar__orientation eui-icon-svg{width:var(--eui-is-m);height:var(--eui-is-m);color:var(--eui-c-neutral);margin-right:var(--eui-s-m)}@media (max-width: 767px){.device-preview-toolbar__orientation{display:none}}.device-preview-toolbar__full-screen{display:flex;align-items:center;color:var(--eui-c-neutral);text-decoration:none}.device-preview-toolbar__full-screen eui-icon-svg{width:var(--eui-is-m);height:var(--eui-is-m);margin-right:var(--eui-s-xs)}.device-preview-toolbar--disabled{opacity:.5;pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: EuiSelectModule }, { kind: "component", type: i3.EuiSelectComponent, selector: "select[euiSelect]", inputs: ["placeholder", "readonly", "isInvalid"] }, { kind: "directive", type: i3.EuiNgSelectOptionDirective, selector: "option:not([eclSelectOption]):not([eclMultiselectOption]), option[euiOption]", inputs: ["selected", "label", "ngValue"] }, { kind: "directive", type: i3.EuiSelectMultipleOption, selector: "option, option[euiOption]", inputs: ["ngValue", "value"] }, { kind: "ngmodule", type: EuiIconModule }, { kind: "component", type: i4.EuiIconSvgComponent, selector: "eui-icon-svg, span[euiIconSvg], i[euiIconSvg]", inputs: ["icon", "fillColor", "set", "size", "style", "iconUrl", "transform", "euiVariant", "aria-label", "ariaHidden", "focusable", "isLoading", "isInputIcon", "euiStart", "euiEnd"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
50
86
|
}
|
|
51
87
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DocPlaygroundDeviceComponent, decorators: [{
|
|
52
88
|
type: Component,
|
|
53
|
-
args: [{ selector: 'eui-showcase-doc-playground-device', encapsulation: ViewEncapsulation.None, standalone: true, imports: [EuiSelectModule, EuiIconModule], template: "@if (hasPreviewToolbar()) {\n <div class=\"device-preview-toolbar\" [class.device-preview-toolbar--disabled]=\"isPreviewToolbarDisabled()\">\n <div class=\"device-preview-toolbar__devices\">\n <select class=\"eui-u-cursor-pointer\" euiSelect name=\"device-sizes\" aria-label=\"device-sizes\" [value]=\"'phone-small'\" (change)=\"onDeviceChange($event)\">\n @for (device of devices; track device) {\n <option [value]=\"device.name\">\n {{ device.label }}\n </option>\n }\n </select>\n </div>\n <button class=\"device-preview-toolbar__orientation\" (click)=\"toggleOrientation()\">\n <eui-icon-svg [icon]=\"!isLandscapeView ? 'phone-portrait:outline' : 'phone-landscape:outline'\"
|
|
54
|
-
}], ctorParameters: () => [{ type: i1.DomSanitizer }], propDecorators: { containerRef: [{
|
|
89
|
+
args: [{ selector: 'eui-showcase-doc-playground-device', encapsulation: ViewEncapsulation.None, standalone: true, imports: [EuiSelectModule, EuiIconModule], template: "@if (hasPreviewToolbar()) {\n <div #previewToolbar class=\"device-preview-toolbar\" [class.device-preview-toolbar--disabled]=\"isPreviewToolbarDisabled()\">\n <div class=\"device-preview-toolbar__devices\">\n <select class=\"eui-u-cursor-pointer\" euiSelect name=\"device-sizes\" aria-label=\"device-sizes\" [value]=\"'phone-small'\" (change)=\"onDeviceChange($event)\">\n @for (device of devices; track device) {\n <option [value]=\"device.name\">\n {{ device.label }}\n </option>\n }\n </select>\n </div>\n <button class=\"device-preview-toolbar__orientation eui-u-cursor-pointer\" (click)=\"toggleOrientation()\">\n <eui-icon-svg [icon]=\"!isLandscapeView ? 'phone-portrait:outline' : 'phone-landscape:outline'\"/> |\n </button>\n <a [href]=\"urlSafe\" class=\"device-preview-toolbar__full-screen\" target=\"_blank\">\n <eui-icon-svg icon=\"open:outline\"/>\n <span>Full Screen</span>\n </a>\n </div>\n}\n<div class=\"device-wrapper\" #deviceWrapper [class.landscape]=\"isLandscapeView\">\n <iframe id=\"iframe-playground\" loading=\"lazy\" class=\"device-frame\" width=\"100%\" height=\"100%\" frameBorder=\"0\" [src]=\"urlSafe\"></iframe>\n</div>\n", styles: [":root{--device-width: 375px;--device-height: 667px;--toolbar-width: 375px}@media (max-width: 767px){:root{--toolbar-width: 100%}}.device-wrapper{border:.5rem solid var(--eui-c-neutral-max);border-radius:2rem;width:var(--device-width);height:var(--device-height);transition:transform .5s ease,width .5s,height .5s;transform-origin:center center;position:relative}@media (min-width: 768px){.device-wrapper{width:var(--device-width)}}.device-wrapper.landscape{transform:rotate(0);width:var(--device-height);height:var(--device-width)}.device-wrapper.landscape .device-frame{height:calc(var(--device-width) - var(--eui-s-m));width:calc(var(--device-height) - var(--eui-s-m))}.device-frame{border-radius:1.5rem;height:calc(var(--device-height) - var(--eui-s-m));transition:transform .5s ease,width .5s,height .5s;transform-origin:center center}@media (min-width: 768px){.device-frame{width:calc(var(--device-width) - var(--eui-s-m))}}@media screen and (max-width: 767px){.device-wrapper{width:100%}}.device-preview-toolbar{font:var(--eui-f-m-compact);display:flex;align-items:center;justify-content:center;padding:var(--eui-s-xs);border-radius:var(--eui-br-xl);box-shadow:0 1px 3px #0003;margin-bottom:var(--eui-s-m);width:var(--toolbar-width);transition:transform .5s ease,width .5s,height .5s}@media (max-width: 767px){.device-preview-toolbar__devices{display:none}}.device-preview-toolbar__orientation{background-color:transparent;border:none;display:flex;align-items:center;margin-left:var(--eui-s-m);margin-right:var(--eui-s-m)}.device-preview-toolbar__orientation eui-icon-svg{width:var(--eui-is-m);height:var(--eui-is-m);color:var(--eui-c-neutral);margin-right:var(--eui-s-m)}@media (max-width: 767px){.device-preview-toolbar__orientation{display:none}}.device-preview-toolbar__full-screen{display:flex;align-items:center;color:var(--eui-c-neutral);text-decoration:none}.device-preview-toolbar__full-screen eui-icon-svg{width:var(--eui-is-m);height:var(--eui-is-m);margin-right:var(--eui-s-xs)}.device-preview-toolbar--disabled{opacity:.5;pointer-events:none}\n"] }]
|
|
90
|
+
}], ctorParameters: () => [{ type: i1.DomSanitizer }, { type: i2.BreakpointObserver }], propDecorators: { containerRef: [{
|
|
55
91
|
type: ViewChild,
|
|
56
92
|
args: ['deviceWrapper']
|
|
93
|
+
}], previewToolbar: [{
|
|
94
|
+
type: ViewChild,
|
|
95
|
+
args: ['previewToolbar']
|
|
57
96
|
}] } });
|
|
58
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9jLXBsYXlncm91bmQtZGV2aWNlL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W5cIiB0YXJnZXQ9XCJfYmxhbmtcIj5cbiAgICAgICAgICAgIDxldWktaWNvbi1zdmcgaWNvbj1cIm9wZW46b3V0bGluZVwiLz5cbiAgICAgICAgICAgIDxzcGFuPkZ1bGwgU2NyZWVuPC9zcGFuPlxuICAgICAgICA8L2E+XG4gICAgPC9kaXY+XG59XG48ZGl2IGNsYXNzPVwiZGV2aWNlLXdyYXBwZXJcIiAjZGV2aWNlV3JhcHBlciBbY2xhc3MubGFuZHNjYXBlXT1cImlzTGFuZHNjYXBlVmlld1wiPlxuICAgIDxpZnJhbWUgaWQ9XCJpZnJhbWUtcGxheWdyb3VuZFwiIGxvYWRpbmc9XCJsYXp5XCIgY2xhc3M9XCJkZXZpY2UtZnJhbWVcIiB3aWR0aD1cIjEwMCVcIiBoZWlnaHQ9XCIxMDAlXCIgZnJhbWVCb3JkZXI9XCIwXCIgW3NyY109XCJ1cmxTYWZlXCI+PC9pZnJhbWU+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -20,7 +20,7 @@ import * as i1$2 from '@eui/components/eui-block-content';
|
|
|
20
20
|
import { EuiBlockContentModule } from '@eui/components/eui-block-content';
|
|
21
21
|
import * as i8 from '@eui/components/eui-badge';
|
|
22
22
|
import { EuiBadgeModule } from '@eui/components/eui-badge';
|
|
23
|
-
import * as
|
|
23
|
+
import * as i4$2 from '@eui/components/eui-icon';
|
|
24
24
|
import { EuiIconModule } from '@eui/components/eui-icon';
|
|
25
25
|
import * as i12 from '@eui/components/eui-label';
|
|
26
26
|
import { EuiLabelModule } from '@eui/components/eui-label';
|
|
@@ -36,8 +36,9 @@ import * as i3$1 from '@angular/platform-browser';
|
|
|
36
36
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
37
37
|
import * as i1$1 from 'ngx-markdown';
|
|
38
38
|
import { MarkdownModule } from 'ngx-markdown';
|
|
39
|
-
import * as
|
|
39
|
+
import * as i3$3 from '@eui/components/eui-select';
|
|
40
40
|
import { EuiSelectModule } from '@eui/components/eui-select';
|
|
41
|
+
import * as i2$3 from '@angular/cdk/layout';
|
|
41
42
|
|
|
42
43
|
const polyfillsFile = 'import \'zone.js\';';
|
|
43
44
|
const mainFile = (moduleName, componentName) => `
|
|
@@ -740,7 +741,7 @@ class DocSampleComponent {
|
|
|
740
741
|
}));
|
|
741
742
|
}
|
|
742
743
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DocSampleComponent, deps: [{ token: StackblitzService }, { token: i2.HttpClient }, { token: i3.EuiAppShellService }, { token: i0.ChangeDetectorRef }, { token: i3.EuiGrowlService }, { token: i4.Clipboard }, { token: i1.Router }, { token: ConfigurationService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
743
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.2.13", type: DocSampleComponent, selector: "eui-showcase-doc-sample", inputs: { id: "id", label: "label", category: "category", description: "description", defaultValue: "defaultValue", styleClass: "styleClass", renderPlayground: ["renderPlayground", "renderPlayground", booleanAttribute], isCodeButtonVisible: ["isCodeButtonVisible", "isCodeButtonVisible", booleanAttribute], isInnerSection: ["isInnerSection", "isInnerSection", booleanAttribute] }, host: { properties: { "class": "this.classes" } }, ngImport: i0, template: "<div class=\"doc-sample-title\">\n <div class=\"doc-sample-title__label\" [class.doc-sample-title__label--inner]=\"isInnerSection\">\n {{ label }}\n <button\n euiButton\n euiIconButton\n euiBasicButton\n euiRounded\n euiPrimary\n euiSizeS\n (click)=\"copyCurrentUrlToClipboard(id)\"\n class=\"doc-sample-title__link\"\n tabindex=\"-1\">\n <eui-icon-svg icon=\"link\" set=\"outline\" size=\"l\" fillColor=\"neutral\"></eui-icon-svg>\n </button>\n </div>\n <div *ngIf=\"shouldRenderPlayground()\" class=\"doc-sample-title__items eui-u-mr-s\">\n <button\n *ngIf=\"isCodeButtonVisible\"\n type=\"button\"\n euiButton\n [euiOutline]=\"!isCodeExpanded\"\n euiPrimary\n euiSizeS\n (click)=\"onStackblitzOpen()\">\n <span euiLabel>Stackblitz</span>\n <eui-icon-svg icon=\"flash:outline\"></eui-icon-svg>\n </button>\n </div>\n <div class=\"doc-sample-title__items\">\n <button\n *ngIf=\"isCodeButtonVisible\"\n type=\"button\"\n euiButton\n [euiOutline]=\"!isCodeExpanded\"\n euiPrimary\n euiSizeS\n (click)=\"onToggleCode()\"\n [euiDisabled]=\"isCodeLoading\">\n <eui-icon-svg *ngIf=\"isCodeLoading\" isLoading></eui-icon-svg>\n <span *ngIf=\"!isCodeExpanded\" euiLabel>Code</span>\n <span *ngIf=\"isCodeExpanded\" euiLabel>Hide Code</span>\n <eui-icon-svg icon=\"eui-code\"></eui-icon-svg>\n </button>\n </div>\n</div>\n\n<ng-template [ngIf]=\"isCodeExpanded\">\n <eui-card euiNoContentPadding>\n <eui-card-content>\n <eui-tabs (tabSelect)=\"onSelectedTab($event)\">\n <eui-tab [isVisible]=\"htmlContent\">\n <euiTabLabel>\n HTML\n <euiTabSubLabel>HyperText Markup Language</euiTabSubLabel>\n </euiTabLabel>\n <euiTabContent>\n <pre><code class=\"language-markup\" euiCode>{{htmlContent}}</code></pre>\n </euiTabContent>\n </eui-tab>\n <eui-tab [isVisible]=\"tsContent\">\n <euiTabLabel>\n TS\n <euiTabSubLabel>Typescript</euiTabSubLabel>\n </euiTabLabel>\n <euiTabContent>\n <pre><code class=\"language-javascript\" euiCode>{{filterOutModuleAndImports(tsContent)}}</code></pre>\n </euiTabContent>\n </eui-tab>\n </eui-tabs>\n </eui-card-content>\n </eui-card>\n</ng-template>\n\n<ng-content></ng-content>\n", styles: [".eui-showcase-doc-sample{display:block;margin-bottom:var(--eui-s-2xl);margin-top:var(--eui-s-6xl);width:100%}.eui-showcase-doc-sample:first-child{margin-top:var(--eui-s-xl)}.eui-showcase-doc-sample .doc-sample-title{align-items:flex-end;display:flex;width:100%;margin-bottom:var(--eui-s-m);padding-bottom:var(--eui-s-s);border-bottom:1px solid var(--eui-c-neutral-lightest)}.eui-showcase-doc-sample .doc-sample-title__label{align-items:center;display:flex;min-height:var(--eui-s-xl);width:100%;letter-spacing:-.75px;font:var(--eui-f-xl-bold)}.eui-showcase-doc-sample .doc-sample-title__label:hover .doc-sample-title__link{opacity:1;transition:all .25s ease-in-out}.eui-showcase-doc-sample .doc-sample-title__label--inner{color:var(--eui-c-neutral-light);font:var(--eui-f-l)}.eui-showcase-doc-sample .doc-sample-title__items{display:flex;margin-left:auto}.eui-showcase-doc-sample .doc-sample-title__link{opacity:0;margin-left:var(--eui-s-m)}.eui-showcase-doc-sample .doc-sample-section-title,.eui-showcase-doc-sample h6.section-title{border-bottom:none;letter-spacing:-.5px;margin:var(--eui-s-3xl) 0 var(--eui-s-xs) 0!important;width:auto;display:table;color:var(--eui-c-primary-darker);font:var(--eui-f-l)!important}.eui-showcase-doc-sample .doc-sample-section-title:first-child,.eui-showcase-doc-sample h6.section-title:first-child{margin-top:var(--eui-s-m)!important}.eui-showcase-doc-sample .doc-sample-section-subtitle{border-bottom:none;letter-spacing:-.25px;margin:var(--eui-s-xl) 0 var(--eui-s-xs) 0!important;width:auto;display:table;color:var(--eui-c-primary-darker);font:var(--eui-f-m)!important}\n"], dependencies: [{ kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.EuiCardComponent, selector: "eui-card", inputs: ["e2eAttr", "euiSelected", "euiCollapsible", "euiCollapsed", "euiUrgent", "euiNoShadow", "euiNoContentPadding", "euiHoverable"], outputs: ["collapse"] }, { kind: "component", type: i2$1.EuiCardContentComponent, selector: "eui-card-content" }, { kind: "component", type: i2$2.EuiButtonComponent, selector: "button[euiButton], a[euiButton]", inputs: ["e2eAttr", "id", "euiBasicButton", "euiButtonCall", "euiBlockButton", "euiIconButton", "euiLineWrap", "isChecked", "euiDisabled"], outputs: ["buttonClick"] }, { kind: "component", type: i10.EuiTabsComponent, selector: "eui-tabs", inputs: ["tabs", "activeTabIndex", "e2eAttr", "pathMatch", "isMainNavigation", "isHandleChangeTab", "isSubTabs", "isVerticalTabs"], outputs: ["tabClose", "tabSelect"] }, { kind: "component", type: i10.EuiTabComponent, selector: "eui-tab", inputs: ["url", "e2eAttr", "tooltip", "isClosable", "isVisible", "isActive", "isDisabled", "isHandleCloseOnClose"] }, { kind: "component", type: i10.EuiTabLabelComponent, selector: "eui-tab-label, euiTabLabel" }, { kind: "directive", type: i10.EuiTabSubLabelDirective, selector: "euiTabSubLabel" }, { kind: "component", type: i10.EuiTabContentComponent, selector: "eui-tab-content, euiTabContent", inputs: ["hasNoContentPadding"] }, { kind: "component", type:
|
|
744
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.2.13", type: DocSampleComponent, selector: "eui-showcase-doc-sample", inputs: { id: "id", label: "label", category: "category", description: "description", defaultValue: "defaultValue", styleClass: "styleClass", renderPlayground: ["renderPlayground", "renderPlayground", booleanAttribute], isCodeButtonVisible: ["isCodeButtonVisible", "isCodeButtonVisible", booleanAttribute], isInnerSection: ["isInnerSection", "isInnerSection", booleanAttribute] }, host: { properties: { "class": "this.classes" } }, ngImport: i0, template: "<div class=\"doc-sample-title\">\n <div class=\"doc-sample-title__label\" [class.doc-sample-title__label--inner]=\"isInnerSection\">\n {{ label }}\n <button\n euiButton\n euiIconButton\n euiBasicButton\n euiRounded\n euiPrimary\n euiSizeS\n (click)=\"copyCurrentUrlToClipboard(id)\"\n class=\"doc-sample-title__link\"\n tabindex=\"-1\">\n <eui-icon-svg icon=\"link\" set=\"outline\" size=\"l\" fillColor=\"neutral\"></eui-icon-svg>\n </button>\n </div>\n <div *ngIf=\"shouldRenderPlayground()\" class=\"doc-sample-title__items eui-u-mr-s\">\n <button\n *ngIf=\"isCodeButtonVisible\"\n type=\"button\"\n euiButton\n [euiOutline]=\"!isCodeExpanded\"\n euiPrimary\n euiSizeS\n (click)=\"onStackblitzOpen()\">\n <span euiLabel>Stackblitz</span>\n <eui-icon-svg icon=\"flash:outline\"></eui-icon-svg>\n </button>\n </div>\n <div class=\"doc-sample-title__items\">\n <button\n *ngIf=\"isCodeButtonVisible\"\n type=\"button\"\n euiButton\n [euiOutline]=\"!isCodeExpanded\"\n euiPrimary\n euiSizeS\n (click)=\"onToggleCode()\"\n [euiDisabled]=\"isCodeLoading\">\n <eui-icon-svg *ngIf=\"isCodeLoading\" isLoading></eui-icon-svg>\n <span *ngIf=\"!isCodeExpanded\" euiLabel>Code</span>\n <span *ngIf=\"isCodeExpanded\" euiLabel>Hide Code</span>\n <eui-icon-svg icon=\"eui-code\"></eui-icon-svg>\n </button>\n </div>\n</div>\n\n<ng-template [ngIf]=\"isCodeExpanded\">\n <eui-card euiNoContentPadding>\n <eui-card-content>\n <eui-tabs (tabSelect)=\"onSelectedTab($event)\">\n <eui-tab [isVisible]=\"htmlContent\">\n <euiTabLabel>\n HTML\n <euiTabSubLabel>HyperText Markup Language</euiTabSubLabel>\n </euiTabLabel>\n <euiTabContent>\n <pre><code class=\"language-markup\" euiCode>{{htmlContent}}</code></pre>\n </euiTabContent>\n </eui-tab>\n <eui-tab [isVisible]=\"tsContent\">\n <euiTabLabel>\n TS\n <euiTabSubLabel>Typescript</euiTabSubLabel>\n </euiTabLabel>\n <euiTabContent>\n <pre><code class=\"language-javascript\" euiCode>{{filterOutModuleAndImports(tsContent)}}</code></pre>\n </euiTabContent>\n </eui-tab>\n </eui-tabs>\n </eui-card-content>\n </eui-card>\n</ng-template>\n\n<ng-content></ng-content>\n", styles: [".eui-showcase-doc-sample{display:block;margin-bottom:var(--eui-s-2xl);margin-top:var(--eui-s-6xl);width:100%}.eui-showcase-doc-sample:first-child{margin-top:var(--eui-s-xl)}.eui-showcase-doc-sample .doc-sample-title{align-items:flex-end;display:flex;width:100%;margin-bottom:var(--eui-s-m);padding-bottom:var(--eui-s-s);border-bottom:1px solid var(--eui-c-neutral-lightest)}.eui-showcase-doc-sample .doc-sample-title__label{align-items:center;display:flex;min-height:var(--eui-s-xl);width:100%;letter-spacing:-.75px;font:var(--eui-f-xl-bold)}.eui-showcase-doc-sample .doc-sample-title__label:hover .doc-sample-title__link{opacity:1;transition:all .25s ease-in-out}.eui-showcase-doc-sample .doc-sample-title__label--inner{color:var(--eui-c-neutral-light);font:var(--eui-f-l)}.eui-showcase-doc-sample .doc-sample-title__items{display:flex;margin-left:auto}.eui-showcase-doc-sample .doc-sample-title__link{opacity:0;margin-left:var(--eui-s-m)}.eui-showcase-doc-sample .doc-sample-section-title,.eui-showcase-doc-sample h6.section-title{border-bottom:none;letter-spacing:-.5px;margin:var(--eui-s-3xl) 0 var(--eui-s-xs) 0!important;width:auto;display:table;color:var(--eui-c-primary-darker);font:var(--eui-f-l)!important}.eui-showcase-doc-sample .doc-sample-section-title:first-child,.eui-showcase-doc-sample h6.section-title:first-child{margin-top:var(--eui-s-m)!important}.eui-showcase-doc-sample .doc-sample-section-subtitle{border-bottom:none;letter-spacing:-.25px;margin:var(--eui-s-xl) 0 var(--eui-s-xs) 0!important;width:auto;display:table;color:var(--eui-c-primary-darker);font:var(--eui-f-m)!important}\n"], dependencies: [{ kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.EuiCardComponent, selector: "eui-card", inputs: ["e2eAttr", "euiSelected", "euiCollapsible", "euiCollapsed", "euiUrgent", "euiNoShadow", "euiNoContentPadding", "euiHoverable"], outputs: ["collapse"] }, { kind: "component", type: i2$1.EuiCardContentComponent, selector: "eui-card-content" }, { kind: "component", type: i2$2.EuiButtonComponent, selector: "button[euiButton], a[euiButton]", inputs: ["e2eAttr", "id", "euiBasicButton", "euiButtonCall", "euiBlockButton", "euiIconButton", "euiLineWrap", "isChecked", "euiDisabled"], outputs: ["buttonClick"] }, { kind: "component", type: i10.EuiTabsComponent, selector: "eui-tabs", inputs: ["tabs", "activeTabIndex", "e2eAttr", "pathMatch", "isMainNavigation", "isHandleChangeTab", "isSubTabs", "isVerticalTabs"], outputs: ["tabClose", "tabSelect"] }, { kind: "component", type: i10.EuiTabComponent, selector: "eui-tab", inputs: ["url", "e2eAttr", "tooltip", "isClosable", "isVisible", "isActive", "isDisabled", "isHandleCloseOnClose"] }, { kind: "component", type: i10.EuiTabLabelComponent, selector: "eui-tab-label, euiTabLabel" }, { kind: "directive", type: i10.EuiTabSubLabelDirective, selector: "euiTabSubLabel" }, { kind: "component", type: i10.EuiTabContentComponent, selector: "eui-tab-content, euiTabContent", inputs: ["hasNoContentPadding"] }, { kind: "component", type: i4$2.EuiIconSvgComponent, selector: "eui-icon-svg, span[euiIconSvg], i[euiIconSvg]", inputs: ["icon", "fillColor", "set", "size", "style", "iconUrl", "transform", "euiVariant", "aria-label", "ariaHidden", "focusable", "isLoading", "isInputIcon", "euiStart", "euiEnd"] }, { kind: "component", type: i12.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"] }, { kind: "directive", type: EuiCodeHighlighterDirective, selector: "[euiCode]" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
744
745
|
}
|
|
745
746
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DocSampleComponent, decorators: [{
|
|
746
747
|
type: Component,
|
|
@@ -811,7 +812,7 @@ class DocPageCodeComponent {
|
|
|
811
812
|
window.open(sourceRootPath + this.codeFolder, '_blank');
|
|
812
813
|
}
|
|
813
814
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DocPageCodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
814
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", 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 <eui-icon-svg icon=\"eui-code\"></eui-icon-svg>\n</button>\n", dependencies: [{ kind: "component", type: i2$2.EuiButtonComponent, selector: "button[euiButton], a[euiButton]", inputs: ["e2eAttr", "id", "euiBasicButton", "euiButtonCall", "euiBlockButton", "euiIconButton", "euiLineWrap", "isChecked", "euiDisabled"], outputs: ["buttonClick"] }, { kind: "component", type:
|
|
815
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", 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 <eui-icon-svg icon=\"eui-code\"></eui-icon-svg>\n</button>\n", dependencies: [{ kind: "component", type: i2$2.EuiButtonComponent, selector: "button[euiButton], a[euiButton]", inputs: ["e2eAttr", "id", "euiBasicButton", "euiButtonCall", "euiBlockButton", "euiIconButton", "euiLineWrap", "isChecked", "euiDisabled"], outputs: ["buttonClick"] }, { kind: "component", type: i4$2.EuiIconSvgComponent, selector: "eui-icon-svg, span[euiIconSvg], i[euiIconSvg]", inputs: ["icon", "fillColor", "set", "size", "style", "iconUrl", "transform", "euiVariant", "aria-label", "ariaHidden", "focusable", "isLoading", "isInputIcon", "euiStart", "euiEnd"] }, { kind: "component", type: i12.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"] }] }); }
|
|
815
816
|
}
|
|
816
817
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DocPageCodeComponent, decorators: [{
|
|
817
818
|
type: Component,
|
|
@@ -1449,7 +1450,7 @@ class DocPageCodeModalComponent {
|
|
|
1449
1450
|
this.dialog.closeDialog();
|
|
1450
1451
|
}
|
|
1451
1452
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DocPageCodeModalComponent, deps: [{ token: i3.EuiAppShellService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1452
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: DocPageCodeModalComponent, selector: "eui-showcase-doc-page-code-modal", inputs: { width: "width" }, viewQueries: [{ propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true }], ngImport: i0, template: "<button type=\"button\" euiButton euiAccent (click)=\"toggleCode()\">\n <span euiLabel>Check the code</span>\n <eui-icon-svg icon=\"eui-code\"></eui-icon-svg>\n</button>\n\n<eui-dialog #dialog title=\"Page source code\" [hasFooter]=\"false\" (close)=\"onClose()\" [width]=\"width\">\n <ng-content></ng-content>\n</eui-dialog>\n", dependencies: [{ kind: "component", type: i2$2.EuiButtonComponent, selector: "button[euiButton], a[euiButton]", inputs: ["e2eAttr", "id", "euiBasicButton", "euiButtonCall", "euiBlockButton", "euiIconButton", "euiLineWrap", "isChecked", "euiDisabled"], outputs: ["buttonClick"] }, { kind: "component", type: i3$2.EuiDialogComponent, selector: "eui-dialog", inputs: ["e2eAttr", "title", "acceptLabel", "dismissLabel", "typeClass", "verticalPosition", "width", "height", "isFullScreen", "hasCloseButton", "hasAcceptButton", "hasDismissButton", "hasMobileCustomSize", "isClosedOnClickOutside", "hasClosedOnClickOutside", "isClosedOnEscape", "hasClosedOnEscape", "isHandleCloseOnDismiss", "isHandleCloseOnClose", "isHandleCloseOnAccept", "isHandleCloseOnClickOutside", "isHandleCloseOnEscape", "isMessageBox", "isDraggable", "hasNoBodyPadding", "hasFooter", "classList"], outputs: ["clickOutside", "escape", "dialogOpen", "dialogClose", "dismiss", "accept"] }, { kind: "component", type:
|
|
1453
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: DocPageCodeModalComponent, selector: "eui-showcase-doc-page-code-modal", inputs: { width: "width" }, viewQueries: [{ propertyName: "dialog", first: true, predicate: ["dialog"], descendants: true }], ngImport: i0, template: "<button type=\"button\" euiButton euiAccent (click)=\"toggleCode()\">\n <span euiLabel>Check the code</span>\n <eui-icon-svg icon=\"eui-code\"></eui-icon-svg>\n</button>\n\n<eui-dialog #dialog title=\"Page source code\" [hasFooter]=\"false\" (close)=\"onClose()\" [width]=\"width\">\n <ng-content></ng-content>\n</eui-dialog>\n", dependencies: [{ kind: "component", type: i2$2.EuiButtonComponent, selector: "button[euiButton], a[euiButton]", inputs: ["e2eAttr", "id", "euiBasicButton", "euiButtonCall", "euiBlockButton", "euiIconButton", "euiLineWrap", "isChecked", "euiDisabled"], outputs: ["buttonClick"] }, { kind: "component", type: i3$2.EuiDialogComponent, selector: "eui-dialog", inputs: ["e2eAttr", "title", "acceptLabel", "dismissLabel", "typeClass", "verticalPosition", "width", "height", "isFullScreen", "hasCloseButton", "hasAcceptButton", "hasDismissButton", "hasMobileCustomSize", "isClosedOnClickOutside", "hasClosedOnClickOutside", "isClosedOnEscape", "hasClosedOnEscape", "isHandleCloseOnDismiss", "isHandleCloseOnClose", "isHandleCloseOnAccept", "isHandleCloseOnClickOutside", "isHandleCloseOnEscape", "isMessageBox", "isDraggable", "hasNoBodyPadding", "hasFooter", "classList"], outputs: ["clickOutside", "escape", "dialogOpen", "dialogClose", "dismiss", "accept"] }, { kind: "component", type: i4$2.EuiIconSvgComponent, selector: "eui-icon-svg, span[euiIconSvg], i[euiIconSvg]", inputs: ["icon", "fillColor", "set", "size", "style", "iconUrl", "transform", "euiVariant", "aria-label", "ariaHidden", "focusable", "isLoading", "isInputIcon", "euiStart", "euiEnd"] }, { kind: "component", type: i12.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"] }] }); }
|
|
1453
1454
|
}
|
|
1454
1455
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DocPageCodeModalComponent, decorators: [{
|
|
1455
1456
|
type: Component,
|
|
@@ -1489,13 +1490,17 @@ const DEVICE_SIZES = [
|
|
|
1489
1490
|
];
|
|
1490
1491
|
|
|
1491
1492
|
class DocPlaygroundDeviceComponent {
|
|
1492
|
-
constructor(sanitizer) {
|
|
1493
|
+
constructor(sanitizer, breakpointObserver) {
|
|
1493
1494
|
this.sanitizer = sanitizer;
|
|
1495
|
+
this.breakpointObserver = breakpointObserver;
|
|
1494
1496
|
this.url = input();
|
|
1495
1497
|
this.showcaseNameWithVersion = input();
|
|
1496
1498
|
this.hasPreviewToolbar = input(true, { transform: booleanAttribute });
|
|
1497
1499
|
this.isPreviewToolbarDisabled = input(false, { transform: booleanAttribute });
|
|
1500
|
+
this.isLandscapeView = false;
|
|
1498
1501
|
this.devices = [];
|
|
1502
|
+
this.selectedDevice = { name: 'phone-small', width: 375, height: 667 };
|
|
1503
|
+
this.isMobile = false;
|
|
1499
1504
|
}
|
|
1500
1505
|
ngOnInit() {
|
|
1501
1506
|
const url = window.location;
|
|
@@ -1510,32 +1515,66 @@ class DocPlaygroundDeviceComponent {
|
|
|
1510
1515
|
}
|
|
1511
1516
|
this.urlSafe = this.sanitizer.bypassSecurityTrustResourceUrl(shellUrl);
|
|
1512
1517
|
this.loadDevices();
|
|
1518
|
+
this.breakpointObserver.observe(['(max-width: 767px)']).subscribe(result => {
|
|
1519
|
+
this.isMobile = result.matches;
|
|
1520
|
+
if (this.isMobile) {
|
|
1521
|
+
this.isLandscapeView = false;
|
|
1522
|
+
}
|
|
1523
|
+
this.onDeviceChange(event);
|
|
1524
|
+
});
|
|
1513
1525
|
}
|
|
1514
1526
|
toggleOrientation() {
|
|
1515
1527
|
this.isLandscapeView = !this.isLandscapeView;
|
|
1528
|
+
this.updateToolbarWidth();
|
|
1516
1529
|
}
|
|
1517
1530
|
onDeviceChange(event) {
|
|
1518
|
-
const selectElement = event
|
|
1519
|
-
const value = selectElement
|
|
1520
|
-
const
|
|
1521
|
-
if (
|
|
1531
|
+
const selectElement = event?.target;
|
|
1532
|
+
const value = selectElement?.value;
|
|
1533
|
+
const foundDevice = this.devices.find(d => d.name === value);
|
|
1534
|
+
if (this.isMobile) {
|
|
1535
|
+
this.selectedDevice = { name: 'phone-small', width: 375, height: 667 };
|
|
1536
|
+
this.updateToolbarWidth();
|
|
1537
|
+
}
|
|
1538
|
+
else {
|
|
1539
|
+
this.updateToolbarWidth();
|
|
1540
|
+
}
|
|
1541
|
+
if (foundDevice && !this.isMobile) {
|
|
1542
|
+
this.selectedDevice = foundDevice;
|
|
1522
1543
|
const el = this.containerRef.nativeElement;
|
|
1523
|
-
el.style.setProperty('--device-width', `${
|
|
1524
|
-
el.style.setProperty('--device-height', `${
|
|
1544
|
+
el.style.setProperty('--device-width', `${foundDevice.width}px`);
|
|
1545
|
+
el.style.setProperty('--device-height', `${foundDevice.height}px`);
|
|
1546
|
+
this.updateToolbarWidth();
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
updateToolbarWidth() {
|
|
1550
|
+
if (!this.previewToolbar || !this.selectedDevice)
|
|
1551
|
+
return;
|
|
1552
|
+
const previewToolbar = this.previewToolbar.nativeElement;
|
|
1553
|
+
if (this.isMobile) {
|
|
1554
|
+
previewToolbar.style.setProperty('--toolbar-width', '100%');
|
|
1555
|
+
}
|
|
1556
|
+
else {
|
|
1557
|
+
const toolbarWidth = this.isLandscapeView
|
|
1558
|
+
? this.selectedDevice.height
|
|
1559
|
+
: this.selectedDevice.width;
|
|
1560
|
+
previewToolbar.style.setProperty('--toolbar-width', `${toolbarWidth}px`);
|
|
1525
1561
|
}
|
|
1526
1562
|
}
|
|
1527
1563
|
loadDevices() {
|
|
1528
1564
|
this.devices = DEVICE_SIZES;
|
|
1529
1565
|
}
|
|
1530
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DocPlaygroundDeviceComponent, deps: [{ token: i3$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1531
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: DocPlaygroundDeviceComponent, isStandalone: true, selector: "eui-showcase-doc-playground-device", inputs: { url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: false, transformFunction: null }, showcaseNameWithVersion: { classPropertyName: "showcaseNameWithVersion", publicName: "showcaseNameWithVersion", isSignal: true, isRequired: false, transformFunction: null }, hasPreviewToolbar: { classPropertyName: "hasPreviewToolbar", publicName: "hasPreviewToolbar", isSignal: true, isRequired: false, transformFunction: null }, isPreviewToolbarDisabled: { classPropertyName: "isPreviewToolbarDisabled", publicName: "isPreviewToolbarDisabled", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["deviceWrapper"], descendants: true }], ngImport: i0, template: "@if (hasPreviewToolbar()) {\n <div class=\"device-preview-toolbar\" [class.device-preview-toolbar--disabled]=\"isPreviewToolbarDisabled()\">\n <div class=\"device-preview-toolbar__devices\">\n <select class=\"eui-u-cursor-pointer\" euiSelect name=\"device-sizes\" aria-label=\"device-sizes\" [value]=\"'phone-small'\" (change)=\"onDeviceChange($event)\">\n @for (device of devices; track device) {\n <option [value]=\"device.name\">\n {{ device.label }}\n </option>\n }\n </select>\n </div>\n <button class=\"device-preview-toolbar__orientation\" (click)=\"toggleOrientation()\">\n <eui-icon-svg [icon]=\"!isLandscapeView ? 'phone-portrait:outline' : 'phone-landscape:outline'\"
|
|
1566
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DocPlaygroundDeviceComponent, deps: [{ token: i3$1.DomSanitizer }, { token: i2$3.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1567
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: DocPlaygroundDeviceComponent, isStandalone: true, selector: "eui-showcase-doc-playground-device", inputs: { url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: false, transformFunction: null }, showcaseNameWithVersion: { classPropertyName: "showcaseNameWithVersion", publicName: "showcaseNameWithVersion", isSignal: true, isRequired: false, transformFunction: null }, hasPreviewToolbar: { classPropertyName: "hasPreviewToolbar", publicName: "hasPreviewToolbar", isSignal: true, isRequired: false, transformFunction: null }, isPreviewToolbarDisabled: { classPropertyName: "isPreviewToolbarDisabled", publicName: "isPreviewToolbarDisabled", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["deviceWrapper"], descendants: true }, { propertyName: "previewToolbar", first: true, predicate: ["previewToolbar"], descendants: true }], ngImport: i0, template: "@if (hasPreviewToolbar()) {\n <div #previewToolbar class=\"device-preview-toolbar\" [class.device-preview-toolbar--disabled]=\"isPreviewToolbarDisabled()\">\n <div class=\"device-preview-toolbar__devices\">\n <select class=\"eui-u-cursor-pointer\" euiSelect name=\"device-sizes\" aria-label=\"device-sizes\" [value]=\"'phone-small'\" (change)=\"onDeviceChange($event)\">\n @for (device of devices; track device) {\n <option [value]=\"device.name\">\n {{ device.label }}\n </option>\n }\n </select>\n </div>\n <button class=\"device-preview-toolbar__orientation eui-u-cursor-pointer\" (click)=\"toggleOrientation()\">\n <eui-icon-svg [icon]=\"!isLandscapeView ? 'phone-portrait:outline' : 'phone-landscape:outline'\"/> |\n </button>\n <a [href]=\"urlSafe\" class=\"device-preview-toolbar__full-screen\" target=\"_blank\">\n <eui-icon-svg icon=\"open:outline\"/>\n <span>Full Screen</span>\n </a>\n </div>\n}\n<div class=\"device-wrapper\" #deviceWrapper [class.landscape]=\"isLandscapeView\">\n <iframe id=\"iframe-playground\" loading=\"lazy\" class=\"device-frame\" width=\"100%\" height=\"100%\" frameBorder=\"0\" [src]=\"urlSafe\"></iframe>\n</div>\n", styles: [":root{--device-width: 375px;--device-height: 667px;--toolbar-width: 375px}@media (max-width: 767px){:root{--toolbar-width: 100%}}.device-wrapper{border:.5rem solid var(--eui-c-neutral-max);border-radius:2rem;width:var(--device-width);height:var(--device-height);transition:transform .5s ease,width .5s,height .5s;transform-origin:center center;position:relative}@media (min-width: 768px){.device-wrapper{width:var(--device-width)}}.device-wrapper.landscape{transform:rotate(0);width:var(--device-height);height:var(--device-width)}.device-wrapper.landscape .device-frame{height:calc(var(--device-width) - var(--eui-s-m));width:calc(var(--device-height) - var(--eui-s-m))}.device-frame{border-radius:1.5rem;height:calc(var(--device-height) - var(--eui-s-m));transition:transform .5s ease,width .5s,height .5s;transform-origin:center center}@media (min-width: 768px){.device-frame{width:calc(var(--device-width) - var(--eui-s-m))}}@media screen and (max-width: 767px){.device-wrapper{width:100%}}.device-preview-toolbar{font:var(--eui-f-m-compact);display:flex;align-items:center;justify-content:center;padding:var(--eui-s-xs);border-radius:var(--eui-br-xl);box-shadow:0 1px 3px #0003;margin-bottom:var(--eui-s-m);width:var(--toolbar-width);transition:transform .5s ease,width .5s,height .5s}@media (max-width: 767px){.device-preview-toolbar__devices{display:none}}.device-preview-toolbar__orientation{background-color:transparent;border:none;display:flex;align-items:center;margin-left:var(--eui-s-m);margin-right:var(--eui-s-m)}.device-preview-toolbar__orientation eui-icon-svg{width:var(--eui-is-m);height:var(--eui-is-m);color:var(--eui-c-neutral);margin-right:var(--eui-s-m)}@media (max-width: 767px){.device-preview-toolbar__orientation{display:none}}.device-preview-toolbar__full-screen{display:flex;align-items:center;color:var(--eui-c-neutral);text-decoration:none}.device-preview-toolbar__full-screen eui-icon-svg{width:var(--eui-is-m);height:var(--eui-is-m);margin-right:var(--eui-s-xs)}.device-preview-toolbar--disabled{opacity:.5;pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: EuiSelectModule }, { kind: "component", type: i3$3.EuiSelectComponent, selector: "select[euiSelect]", inputs: ["placeholder", "readonly", "isInvalid"] }, { kind: "directive", type: i3$3.EuiNgSelectOptionDirective, selector: "option:not([eclSelectOption]):not([eclMultiselectOption]), option[euiOption]", inputs: ["selected", "label", "ngValue"] }, { kind: "directive", type: i3$3.EuiSelectMultipleOption, selector: "option, option[euiOption]", inputs: ["ngValue", "value"] }, { kind: "ngmodule", type: EuiIconModule }, { kind: "component", type: i4$2.EuiIconSvgComponent, selector: "eui-icon-svg, span[euiIconSvg], i[euiIconSvg]", inputs: ["icon", "fillColor", "set", "size", "style", "iconUrl", "transform", "euiVariant", "aria-label", "ariaHidden", "focusable", "isLoading", "isInputIcon", "euiStart", "euiEnd"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
1532
1568
|
}
|
|
1533
1569
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DocPlaygroundDeviceComponent, decorators: [{
|
|
1534
1570
|
type: Component,
|
|
1535
|
-
args: [{ selector: 'eui-showcase-doc-playground-device', encapsulation: ViewEncapsulation.None, standalone: true, imports: [EuiSelectModule, EuiIconModule], template: "@if (hasPreviewToolbar()) {\n <div class=\"device-preview-toolbar\" [class.device-preview-toolbar--disabled]=\"isPreviewToolbarDisabled()\">\n <div class=\"device-preview-toolbar__devices\">\n <select class=\"eui-u-cursor-pointer\" euiSelect name=\"device-sizes\" aria-label=\"device-sizes\" [value]=\"'phone-small'\" (change)=\"onDeviceChange($event)\">\n @for (device of devices; track device) {\n <option [value]=\"device.name\">\n {{ device.label }}\n </option>\n }\n </select>\n </div>\n <button class=\"device-preview-toolbar__orientation\" (click)=\"toggleOrientation()\">\n <eui-icon-svg [icon]=\"!isLandscapeView ? 'phone-portrait:outline' : 'phone-landscape:outline'\"
|
|
1536
|
-
}], ctorParameters: () => [{ type: i3$1.DomSanitizer }], propDecorators: { containerRef: [{
|
|
1571
|
+
args: [{ selector: 'eui-showcase-doc-playground-device', encapsulation: ViewEncapsulation.None, standalone: true, imports: [EuiSelectModule, EuiIconModule], template: "@if (hasPreviewToolbar()) {\n <div #previewToolbar class=\"device-preview-toolbar\" [class.device-preview-toolbar--disabled]=\"isPreviewToolbarDisabled()\">\n <div class=\"device-preview-toolbar__devices\">\n <select class=\"eui-u-cursor-pointer\" euiSelect name=\"device-sizes\" aria-label=\"device-sizes\" [value]=\"'phone-small'\" (change)=\"onDeviceChange($event)\">\n @for (device of devices; track device) {\n <option [value]=\"device.name\">\n {{ device.label }}\n </option>\n }\n </select>\n </div>\n <button class=\"device-preview-toolbar__orientation eui-u-cursor-pointer\" (click)=\"toggleOrientation()\">\n <eui-icon-svg [icon]=\"!isLandscapeView ? 'phone-portrait:outline' : 'phone-landscape:outline'\"/> |\n </button>\n <a [href]=\"urlSafe\" class=\"device-preview-toolbar__full-screen\" target=\"_blank\">\n <eui-icon-svg icon=\"open:outline\"/>\n <span>Full Screen</span>\n </a>\n </div>\n}\n<div class=\"device-wrapper\" #deviceWrapper [class.landscape]=\"isLandscapeView\">\n <iframe id=\"iframe-playground\" loading=\"lazy\" class=\"device-frame\" width=\"100%\" height=\"100%\" frameBorder=\"0\" [src]=\"urlSafe\"></iframe>\n</div>\n", styles: [":root{--device-width: 375px;--device-height: 667px;--toolbar-width: 375px}@media (max-width: 767px){:root{--toolbar-width: 100%}}.device-wrapper{border:.5rem solid var(--eui-c-neutral-max);border-radius:2rem;width:var(--device-width);height:var(--device-height);transition:transform .5s ease,width .5s,height .5s;transform-origin:center center;position:relative}@media (min-width: 768px){.device-wrapper{width:var(--device-width)}}.device-wrapper.landscape{transform:rotate(0);width:var(--device-height);height:var(--device-width)}.device-wrapper.landscape .device-frame{height:calc(var(--device-width) - var(--eui-s-m));width:calc(var(--device-height) - var(--eui-s-m))}.device-frame{border-radius:1.5rem;height:calc(var(--device-height) - var(--eui-s-m));transition:transform .5s ease,width .5s,height .5s;transform-origin:center center}@media (min-width: 768px){.device-frame{width:calc(var(--device-width) - var(--eui-s-m))}}@media screen and (max-width: 767px){.device-wrapper{width:100%}}.device-preview-toolbar{font:var(--eui-f-m-compact);display:flex;align-items:center;justify-content:center;padding:var(--eui-s-xs);border-radius:var(--eui-br-xl);box-shadow:0 1px 3px #0003;margin-bottom:var(--eui-s-m);width:var(--toolbar-width);transition:transform .5s ease,width .5s,height .5s}@media (max-width: 767px){.device-preview-toolbar__devices{display:none}}.device-preview-toolbar__orientation{background-color:transparent;border:none;display:flex;align-items:center;margin-left:var(--eui-s-m);margin-right:var(--eui-s-m)}.device-preview-toolbar__orientation eui-icon-svg{width:var(--eui-is-m);height:var(--eui-is-m);color:var(--eui-c-neutral);margin-right:var(--eui-s-m)}@media (max-width: 767px){.device-preview-toolbar__orientation{display:none}}.device-preview-toolbar__full-screen{display:flex;align-items:center;color:var(--eui-c-neutral);text-decoration:none}.device-preview-toolbar__full-screen eui-icon-svg{width:var(--eui-is-m);height:var(--eui-is-m);margin-right:var(--eui-s-xs)}.device-preview-toolbar--disabled{opacity:.5;pointer-events:none}\n"] }]
|
|
1572
|
+
}], ctorParameters: () => [{ type: i3$1.DomSanitizer }, { type: i2$3.BreakpointObserver }], propDecorators: { containerRef: [{
|
|
1537
1573
|
type: ViewChild,
|
|
1538
1574
|
args: ['deviceWrapper']
|
|
1575
|
+
}], previewToolbar: [{
|
|
1576
|
+
type: ViewChild,
|
|
1577
|
+
args: ['previewToolbar']
|
|
1539
1578
|
}] } });
|
|
1540
1579
|
|
|
1541
1580
|
class DocPageCodeFabComponent {
|
|
@@ -1557,7 +1596,7 @@ class DocPageCodeFabComponent {
|
|
|
1557
1596
|
window.open(sourceRootPath + this.codeFolder, '_blank');
|
|
1558
1597
|
}
|
|
1559
1598
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DocPageCodeFabComponent, deps: [{ token: i3.EuiAppShellService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1560
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", 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 eui-u-mb-4xl\">\n <div class=\"eui-button-floating eui-button--size-2xl eui-button--icon-only eui-u-c-bg-accent eui--accent\">\n <eui-icon-svg icon=\"eui-code\" size=\"l\" (click)=\"toggleCode()\"></eui-icon-svg>\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 class=\"eui-u-text-paragraph\">Use the <kbd class=\"eui-u-text-kbd\">View sources</kbd> button to access the code source of the page.</p>\n</eui-dialog>\n", dependencies: [{ kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$2.EuiButtonComponent, selector: "button[euiButton], a[euiButton]", inputs: ["e2eAttr", "id", "euiBasicButton", "euiButtonCall", "euiBlockButton", "euiIconButton", "euiLineWrap", "isChecked", "euiDisabled"], outputs: ["buttonClick"] }, { kind: "component", type: i3$2.EuiDialogComponent, selector: "eui-dialog", inputs: ["e2eAttr", "title", "acceptLabel", "dismissLabel", "typeClass", "verticalPosition", "width", "height", "isFullScreen", "hasCloseButton", "hasAcceptButton", "hasDismissButton", "hasMobileCustomSize", "isClosedOnClickOutside", "hasClosedOnClickOutside", "isClosedOnEscape", "hasClosedOnEscape", "isHandleCloseOnDismiss", "isHandleCloseOnClose", "isHandleCloseOnAccept", "isHandleCloseOnClickOutside", "isHandleCloseOnEscape", "isMessageBox", "isDraggable", "hasNoBodyPadding", "hasFooter", "classList"], outputs: ["clickOutside", "escape", "dialogOpen", "dialogClose", "dismiss", "accept"] }, { kind: "component", type:
|
|
1599
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", 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 eui-u-mb-4xl\">\n <div class=\"eui-button-floating eui-button--size-2xl eui-button--icon-only eui-u-c-bg-accent eui--accent\">\n <eui-icon-svg icon=\"eui-code\" size=\"l\" (click)=\"toggleCode()\"></eui-icon-svg>\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 class=\"eui-u-text-paragraph\">Use the <kbd class=\"eui-u-text-kbd\">View sources</kbd> button to access the code source of the page.</p>\n</eui-dialog>\n", dependencies: [{ kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$2.EuiButtonComponent, selector: "button[euiButton], a[euiButton]", inputs: ["e2eAttr", "id", "euiBasicButton", "euiButtonCall", "euiBlockButton", "euiIconButton", "euiLineWrap", "isChecked", "euiDisabled"], outputs: ["buttonClick"] }, { kind: "component", type: i3$2.EuiDialogComponent, selector: "eui-dialog", inputs: ["e2eAttr", "title", "acceptLabel", "dismissLabel", "typeClass", "verticalPosition", "width", "height", "isFullScreen", "hasCloseButton", "hasAcceptButton", "hasDismissButton", "hasMobileCustomSize", "isClosedOnClickOutside", "hasClosedOnClickOutside", "isClosedOnEscape", "hasClosedOnEscape", "isHandleCloseOnDismiss", "isHandleCloseOnClose", "isHandleCloseOnAccept", "isHandleCloseOnClickOutside", "isHandleCloseOnEscape", "isMessageBox", "isDraggable", "hasNoBodyPadding", "hasFooter", "classList"], outputs: ["clickOutside", "escape", "dialogOpen", "dialogClose", "dismiss", "accept"] }, { kind: "component", type: i4$2.EuiIconSvgComponent, selector: "eui-icon-svg, span[euiIconSvg], i[euiIconSvg]", inputs: ["icon", "fillColor", "set", "size", "style", "iconUrl", "transform", "euiVariant", "aria-label", "ariaHidden", "focusable", "isLoading", "isInputIcon", "euiStart", "euiEnd"] }] }); }
|
|
1561
1600
|
}
|
|
1562
1601
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DocPageCodeFabComponent, decorators: [{
|
|
1563
1602
|
type: Component,
|
|
@@ -1730,7 +1769,7 @@ class DocPagePatternComponent {
|
|
|
1730
1769
|
});
|
|
1731
1770
|
}
|
|
1732
1771
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DocPagePatternComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1733
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: DocPagePatternComponent, selector: "eui-showcase-doc-page-pattern", inputs: { id: "id", label: "label", anatomyImage: "anatomyImage", docEntries: "docEntries", dos: "dos", donts: "donts", sourceUrl: "sourceUrl", figmaUrl: "figmaUrl", figmaEmbedSrc: "figmaEmbedSrc" }, host: { listeners: { "window:scroll": "checkScroll()" }, properties: { "class": "this.cssClasses" } }, queries: [{ propertyName: "sampleContent", first: true, predicate: i0.forwardRef(() => DocPagePatternSampleDirective), descendants: true }, { propertyName: "docContent", first: true, predicate: i0.forwardRef(() => DocPagePatternDocDirective), descendants: true }], ngImport: i0, template: "<eui-tabs (tabSelect)=\"onTabSelect($event)\">\n <eui-tab>\n <euiTabLabel>Usage and documentation</euiTabLabel>\n <euiTabContent>\n <h2 class=\"eui-u-c-primary eui-u-mb-none eui-u-text-h2\">{{ label }}</h2>\n\n <h3 class=\"eui-u-text-h3\">Information</h3>\n <ng-content select=\"docPagePatternDoc\"></ng-content>\n\n <ng-container *ngIf=\"figmaEmbedSrc; else screenshot\">\n <h3 class=\"eui-u-mt-2xl eui-u-text-h3\">Figma design anatomy</h3>\n <iframe id=\"iframe-figma\" style=\"border: 1px solid rgba(0, 0, 0, 0.1)\" width=\"100%\" height=\"650\" [src]=\"urlSafe\"></iframe>\n </ng-container>\n <ng-template #screenshot>\n <ng-container *ngIf=\"figmaUrl !== 'PENDING_DS'\">\n <h3 class=\"eui-u-mt-2xl eui-u-text-h3\">Anatomy</h3>\n <img\n src=\"assets/images/design-system/{{ anatomyImage }}\"\n alt=\"Design anatomy image\"\n width=\"90%\"\n class=\"eui-u-sh-6 eui-u-mb-m\" />\n </ng-container>\n </ng-template>\n\n <ng-container *ngIf=\"docEntries.length !== 0\">\n <h3 class=\"eui-u-mt-2xl eui-u-text-h3\">Design system references</h3>\n\n <eui-card *ngFor=\"let ref of docEntries\" class=\"eui-u-mb-m\" [euiWarning]=\"ref.mandatory\" [euiInfo]=\"!ref.mandatory\">\n <eui-card-header>\n <eui-card-header-title>\n <div class=\"eui-u-flex\">\n <eui-badge *ngIf=\"ref?.id\" euiSizeXL class=\"eui-u-mr-s\">{{ ref.id }}</eui-badge>\n <span class=\"eui-u-font-l\">{{ ref.name }}</span>\n </div>\n </eui-card-header-title>\n <eui-card-header-right-content>\n <eui-chip [euiWarning]=\"ref.mandatory\" [euiInfo]=\"!ref.mandatory\" class=\"eui-u-ml-m\">\n <span *ngIf=\"ref.mandatory\" euiLabel><strong> Mandatory </strong></span>\n <span *ngIf=\"!ref.mandatory\" euiLabel><strong> Optional </strong></span>\n </eui-chip>\n </eui-card-header-right-content>\n </eui-card-header>\n <eui-card-content>\n <h6 class=\"section-title eui-u-mt-none\"><strong>Description</strong></h6>\n <div class=\"html\" [innerHTML]=\"ref.description\"></div>\n\n <ng-container *ngIf=\"ref.whenToUse\">\n <h6 class=\"section-title eui-u-mt-xl\"><strong>When to use ?</strong></h6>\n <div class=\"html\" [innerHTML]=\"ref.whenToUse\"></div>\n </ng-container>\n <ng-container *ngIf=\"ref.whenNotToUse\">\n <h6 class=\"section-title eui-u-mt-xl\"><strong>When to not use ?</strong></h6>\n <div class=\"html\" [innerHTML]=\"ref.whenNotToUse\"></div>\n </ng-container>\n <div class=\"row\">\n <div class=\"col-md-6\">\n <ng-container *ngIf=\"ref.dos && ref.dos.length !== 0\">\n <h6 class=\"section-title eui-u-mt-xl\">\n <eui-icon-svg\n icon=\"thumbs-up\"\n set=\"sharp\"\n size=\"m\"\n fillColor=\"success-100\"\n class=\"eui-u-mr-m\"></eui-icon-svg>\n <strong>Do's</strong>\n </h6>\n <li *ngFor=\"let do of ref.dos\">{{ do }}</li>\n </ng-container>\n </div>\n <div class=\"col-md-6\">\n <ng-container *ngIf=\"ref.donts && ref.donts.length !== 0\">\n <h6 class=\"section-title eui-u-mt-xl\">\n <eui-icon-svg\n icon=\"hand-right\"\n set=\"sharp\"\n size=\"m\"\n fillColor=\"danger-100\"\n class=\"eui-u-mr-m\"></eui-icon-svg>\n <strong>Dont's</strong>\n </h6>\n <li *ngFor=\"let dont of ref.donts\">{{ dont }}</li>\n </ng-container>\n </div>\n </div>\n </eui-card-content>\n </eui-card>\n </ng-container>\n\n <!-- <ng-container *ngIf=\"dos.length !== 0\">\n <h3 class=\"eui-u-mt-2xl eui-u-color-success-100 eui-u-text-h3\">Do's</h3>\n <table class=\"eui-table-default\">\n <tr *ngFor=\"let ref of dos\">\n <td>{{ref.description}}</td>\n </tr>\n </table>\n </ng-container>\n\n <ng-container *ngIf=\"donts.length !== 0\">\n <h3 class=\"eui-u-mt-2xl eui-u-color-danger-100 eui-u-text-h3\">Dont's</h3>\n <table class=\"eui-table-default\">\n <tr *ngFor=\"let ref of donts\">\n <td>{{ref.description}}</td>\n </tr>\n </table>\n </ng-container> -->\n\n <h3 class=\"eui-u-mt-2xl eui-u-text-h3\">Figma resource</h3>\n <ng-container *ngIf=\"figmaUrl === 'PENDING_DS'; else figmaOK\">\n Pending Design system publication. Will be available in a future release.\n </ng-container>\n <ng-template #figmaOK>\n <eui-card>\n <eui-card-header>\n <eui-card-header-left-content>\n <img\n width=\"32\"\n height=\"32\"\n alt=\"Figma Logo\"\n src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAABL1BMVEX/////cmLyTh6iWf8Kz4MavP7yTBr5YUWeUP8AzX3UuP//bVwAt/6jV///rKTyRgr2TwCxX+kA032m6Mf3m4uabPb/aVf/8O8AzHmbSf/xPAD/a1rxQgDyShaaR/8Avv74pJP/urP/6Ob/ZVLQ7//839n5tqj/xL7/b1f/9O/59f/r3v+65/9jzP6yef/p+P+u4//Mqv/iz//cxf/I7P/fvf+U2v71/fqO5LzW9ed74LIp043/y8b4rJz0dln/i3/zXTX2jnf/19P/emv0bEv/p5//l4zzWCz2h270dVf4g2D2Whzt5v+6hfuzbfCuWOjE2+6nz+6BxO5lu+5o1v9Nx/7BlP930v63rf+UoP90lP7n1v/Prv/iwf/Onf+hefiWZPZi36O07dLf9+2A4bX7S8Q6AAAGG0lEQVR4nO2aeVcaZxSHZ6JYhsHYFjsig3UhaHG3RkHBxMRE2zR2M5SuaUW//2cow4CgwMz7uzl65x3v8/+cM8+5y7tdwxAEQRAEQRAEQRAEQRAEQRAEQRCEiFJcOVqYDuDt0wAWV2pFboFAikcv8rl8fiqA/LE9Gtd1Hcd5ubjELTKC5eNcfu5JCBOfmWHYrnO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Oe9QI7NnUN/yAZpjkE31MazdjknzRDjpu3+BuuPaghxzk4/jGMv6FBMtSplz6C9TD+e5qd2O9L/3rAswXTpWnsz4fxP+M/gnua+N+1Ue9LN9AQMr4/4UGk3Hlzvs3gldh+t1B9POyEkPPdwjinva5BEWR9e3oE74fwxka7N2DyO77aoEIU3vEfwSyGYfx9j/M0EYigx+69zUStM1rd4p7m2uajNJ4Y99lE4xHMlxrejHDIAPQwQ41mhD1WU/6cdxDD57zT6XTPLrJz3j5r/3w8//er0fy3O+yrref7jbrHRiPSs/qGUW5WLr8MJsP9j59C89JqMR6Ipa9huRJqp7dhRkVPY8OrqpqftoYZVT9dDS+zyoJ6Gl6qR1BPQ0hQR8NDSFBDwwpQg1oaHoCC+hlWQUHtDCtYEepnWIYFdTO8jrshIYSaGQLbUU0N4UaqmyElSfUybMbeENyRamhIKUO9DCkh1MqwjG66tTO8ir0hfHASw8gR/ywlGja5/xuAZnjA/dsAtBX/ivu3AbCL0q4h918j4Jc0LcFL7r9GoCwXVoX7ryFwwfGsTo2GdHyqcv8zBp6mOq33bfAb7zL3L4M00WeZQ+4/hgGDqF0I0UrUbKnwge71NWukHZTHTDTbkva4UjbM6nRu6ke1FLM6FqGP2pKhsaBaFLUWbNXieFgxaluDXcrBc19WVc8ueovm6DBammfoDZXhA6ZW9lC/rdoIyplq9o6kZVmHMUjQPg4qVStrdclWD3VvMEM5aGYq19fXleZBbLJTEARBEARBEARBEARBEARBEARBEHz+B91xJIzYVK0AAAAAAElFTkSuQmCC\" />\n </eui-card-header-left-content>\n <eui-card-header-title>\n <a\n class=\"h5 eui-u-text-link-external\"\n href=\"https://www.figma.com/file/jQ9htWvSM8SWTPuk3hoigc/{{ figmaUrl }}\"\n target=\"blank\">\n <span class=\"eui-u-color-grey-75\">Layout component /</span>\n {{ label }}\n </a>\n </eui-card-header-title>\n </eui-card-header>\n </eui-card>\n </ng-template>\n </euiTabContent>\n </eui-tab>\n <eui-tab>\n <euiTabLabel>Pattern sample</euiTabLabel>\n <euiTabContent>\n <ng-content select=\"docPagePatternSample\"></ng-content>\n </euiTabContent>\n </eui-tab>\n\n <euiTabsRightContent>\n <button type=\"button\" euiButton euiAccent euiSizeS (click)=\"onNavigateToCode($event)\">\n <eui-icon-svg icon=\"code-slash:sharp\"></eui-icon-svg>\n View sources\n </button>\n </euiTabsRightContent>\n</eui-tabs>\n\n<button\n type=\"button\"\n *ngIf=\"isShowGoTop && tabSelectedIndex === 0\"\n euiButton\n euiIconButton\n euiOutline\n euiRounded\n euiSizeL\n class=\"eui-button-fixed eui-u-sh-8\"\n (click)=\"gotoTop()\"\n title=\"Goto Top\"\n aria-label=\"Goto Top\">\n <!-- \uD83D\uDC46 -->\n <eui-icon-svg icon=\"eui-arrow-up\" set=\"eui\" size=\"l\" fillColor=\"grey-50\"></eui-icon-svg>\n</button>\n", styles: [".doc-page-pattern{display:flex;flex-direction:column;flex:1 1 auto;min-height:100%;padding:var(--eui-s-xl)}.doc-page-pattern sample,.doc-page-pattern eui-tabs,.doc-page-pattern .eui-tabs,.doc-page-pattern .eui-tab-content-wrapper,.doc-page-pattern .eui-tab-content{display:flex;flex-direction:column;flex:1 1 auto;min-height:100%}.doc-page-pattern .eui-tabs .eui-tab-item--active,.doc-page-pattern .eui-tabs .eui-tab-item:focus{background-color:var(--eui-c-white)}.doc-page-pattern .eui-tabs .eui-tab-content-wrapper .eui-tab-content{padding:var(--eui-s-m)}.doc-page-pattern docPagePatternSample{display:flex;flex-direction:column;flex-grow:1;min-height:0;position:relative;width:100%}.doc-page-pattern .html{display:block;position:relative;text-align:left}\n"], dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.EuiCardComponent, selector: "eui-card", inputs: ["e2eAttr", "euiSelected", "euiCollapsible", "euiCollapsed", "euiUrgent", "euiNoShadow", "euiNoContentPadding", "euiHoverable"], outputs: ["collapse"] }, { kind: "component", type: i2$1.EuiCardHeaderComponent, selector: "eui-card-header", inputs: ["expandLabel", "collapseLabel", "hasHeaderClickToggle", "hasBottomExpander", "hasFullTitle", "isHeaderMultilines"], outputs: ["collapse"] }, { kind: "component", type: i2$1.EuiCardHeaderTitleComponent, selector: "eui-card-header-title" }, { kind: "component", type: i2$1.EuiCardContentComponent, selector: "eui-card-content" }, { kind: "component", type: i2$1.EuiCardHeaderLeftContentComponent, selector: "eui-card-header-left-content" }, { kind: "component", type: i2$1.EuiCardHeaderRightContentComponent, selector: "eui-card-header-right-content" }, { kind: "component", type: i2$2.EuiButtonComponent, selector: "button[euiButton], a[euiButton]", inputs: ["e2eAttr", "id", "euiBasicButton", "euiButtonCall", "euiBlockButton", "euiIconButton", "euiLineWrap", "isChecked", "euiDisabled"], outputs: ["buttonClick"] }, { kind: "component", type: i10.EuiTabsComponent, selector: "eui-tabs", inputs: ["tabs", "activeTabIndex", "e2eAttr", "pathMatch", "isMainNavigation", "isHandleChangeTab", "isSubTabs", "isVerticalTabs"], outputs: ["tabClose", "tabSelect"] }, { kind: "component", type: i10.EuiTabComponent, selector: "eui-tab", inputs: ["url", "e2eAttr", "tooltip", "isClosable", "isVisible", "isActive", "isDisabled", "isHandleCloseOnClose"] }, { kind: "directive", type: i10.EuiTabsRightContentTagDirective, selector: "euiTabsRightContent" }, { kind: "component", type: i10.EuiTabLabelComponent, selector: "eui-tab-label, euiTabLabel" }, { kind: "component", type: i10.EuiTabContentComponent, selector: "eui-tab-content, euiTabContent", inputs: ["hasNoContentPadding"] }, { kind: "component", type: i5.EuiChipComponent, selector: "eui-chip, span[euiChip], li[euiChip]", inputs: ["ariaLabel", "e2eAttr", "euiInternalId", "tooltipMessage", "id", "data", "isChipRemovable", "isSquared", "isFilled"], outputs: ["remove"] }, { kind: "component", type: i8.EuiBadgeComponent, selector: "div[euiBadge], span[euiBadge], eui-badge", inputs: ["e2eAttr", "aria-label", "maxCharCount", "charReplacement", "euiIconBadge", "euiDottedBadge"] }, { kind: "component", type: i11.EuiIconSvgComponent, selector: "eui-icon-svg, span[euiIconSvg], i[euiIconSvg]", inputs: ["icon", "fillColor", "set", "size", "style", "iconUrl", "transform", "euiVariant", "aria-label", "ariaHidden", "focusable", "isLoading", "isInputIcon", "euiStart", "euiEnd"] }, { kind: "component", type: i12.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"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
1772
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: DocPagePatternComponent, selector: "eui-showcase-doc-page-pattern", inputs: { id: "id", label: "label", anatomyImage: "anatomyImage", docEntries: "docEntries", dos: "dos", donts: "donts", sourceUrl: "sourceUrl", figmaUrl: "figmaUrl", figmaEmbedSrc: "figmaEmbedSrc" }, host: { listeners: { "window:scroll": "checkScroll()" }, properties: { "class": "this.cssClasses" } }, queries: [{ propertyName: "sampleContent", first: true, predicate: i0.forwardRef(() => DocPagePatternSampleDirective), descendants: true }, { propertyName: "docContent", first: true, predicate: i0.forwardRef(() => DocPagePatternDocDirective), descendants: true }], ngImport: i0, template: "<eui-tabs (tabSelect)=\"onTabSelect($event)\">\n <eui-tab>\n <euiTabLabel>Usage and documentation</euiTabLabel>\n <euiTabContent>\n <h2 class=\"eui-u-c-primary eui-u-mb-none eui-u-text-h2\">{{ label }}</h2>\n\n <h3 class=\"eui-u-text-h3\">Information</h3>\n <ng-content select=\"docPagePatternDoc\"></ng-content>\n\n <ng-container *ngIf=\"figmaEmbedSrc; else screenshot\">\n <h3 class=\"eui-u-mt-2xl eui-u-text-h3\">Figma design anatomy</h3>\n <iframe id=\"iframe-figma\" style=\"border: 1px solid rgba(0, 0, 0, 0.1)\" width=\"100%\" height=\"650\" [src]=\"urlSafe\"></iframe>\n </ng-container>\n <ng-template #screenshot>\n <ng-container *ngIf=\"figmaUrl !== 'PENDING_DS'\">\n <h3 class=\"eui-u-mt-2xl eui-u-text-h3\">Anatomy</h3>\n <img\n src=\"assets/images/design-system/{{ anatomyImage }}\"\n alt=\"Design anatomy image\"\n width=\"90%\"\n class=\"eui-u-sh-6 eui-u-mb-m\" />\n </ng-container>\n </ng-template>\n\n <ng-container *ngIf=\"docEntries.length !== 0\">\n <h3 class=\"eui-u-mt-2xl eui-u-text-h3\">Design system references</h3>\n\n <eui-card *ngFor=\"let ref of docEntries\" class=\"eui-u-mb-m\" [euiWarning]=\"ref.mandatory\" [euiInfo]=\"!ref.mandatory\">\n <eui-card-header>\n <eui-card-header-title>\n <div class=\"eui-u-flex\">\n <eui-badge *ngIf=\"ref?.id\" euiSizeXL class=\"eui-u-mr-s\">{{ ref.id }}</eui-badge>\n <span class=\"eui-u-font-l\">{{ ref.name }}</span>\n </div>\n </eui-card-header-title>\n <eui-card-header-right-content>\n <eui-chip [euiWarning]=\"ref.mandatory\" [euiInfo]=\"!ref.mandatory\" class=\"eui-u-ml-m\">\n <span *ngIf=\"ref.mandatory\" euiLabel><strong> Mandatory </strong></span>\n <span *ngIf=\"!ref.mandatory\" euiLabel><strong> Optional </strong></span>\n </eui-chip>\n </eui-card-header-right-content>\n </eui-card-header>\n <eui-card-content>\n <h6 class=\"section-title eui-u-mt-none\"><strong>Description</strong></h6>\n <div class=\"html\" [innerHTML]=\"ref.description\"></div>\n\n <ng-container *ngIf=\"ref.whenToUse\">\n <h6 class=\"section-title eui-u-mt-xl\"><strong>When to use ?</strong></h6>\n <div class=\"html\" [innerHTML]=\"ref.whenToUse\"></div>\n </ng-container>\n <ng-container *ngIf=\"ref.whenNotToUse\">\n <h6 class=\"section-title eui-u-mt-xl\"><strong>When to not use ?</strong></h6>\n <div class=\"html\" [innerHTML]=\"ref.whenNotToUse\"></div>\n </ng-container>\n <div class=\"row\">\n <div class=\"col-md-6\">\n <ng-container *ngIf=\"ref.dos && ref.dos.length !== 0\">\n <h6 class=\"section-title eui-u-mt-xl\">\n <eui-icon-svg\n icon=\"thumbs-up\"\n set=\"sharp\"\n size=\"m\"\n fillColor=\"success-100\"\n class=\"eui-u-mr-m\"></eui-icon-svg>\n <strong>Do's</strong>\n </h6>\n <li *ngFor=\"let do of ref.dos\">{{ do }}</li>\n </ng-container>\n </div>\n <div class=\"col-md-6\">\n <ng-container *ngIf=\"ref.donts && ref.donts.length !== 0\">\n <h6 class=\"section-title eui-u-mt-xl\">\n <eui-icon-svg\n icon=\"hand-right\"\n set=\"sharp\"\n size=\"m\"\n fillColor=\"danger-100\"\n class=\"eui-u-mr-m\"></eui-icon-svg>\n <strong>Dont's</strong>\n </h6>\n <li *ngFor=\"let dont of ref.donts\">{{ dont }}</li>\n </ng-container>\n </div>\n </div>\n </eui-card-content>\n </eui-card>\n </ng-container>\n\n <!-- <ng-container *ngIf=\"dos.length !== 0\">\n <h3 class=\"eui-u-mt-2xl eui-u-color-success-100 eui-u-text-h3\">Do's</h3>\n <table class=\"eui-table-default\">\n <tr *ngFor=\"let ref of dos\">\n <td>{{ref.description}}</td>\n </tr>\n </table>\n </ng-container>\n\n <ng-container *ngIf=\"donts.length !== 0\">\n <h3 class=\"eui-u-mt-2xl eui-u-color-danger-100 eui-u-text-h3\">Dont's</h3>\n <table class=\"eui-table-default\">\n <tr *ngFor=\"let ref of donts\">\n <td>{{ref.description}}</td>\n </tr>\n </table>\n </ng-container> -->\n\n <h3 class=\"eui-u-mt-2xl eui-u-text-h3\">Figma resource</h3>\n <ng-container *ngIf=\"figmaUrl === 'PENDING_DS'; else figmaOK\">\n Pending Design system publication. Will be available in a future release.\n </ng-container>\n <ng-template #figmaOK>\n <eui-card>\n <eui-card-header>\n <eui-card-header-left-content>\n <img\n width=\"32\"\n height=\"32\"\n alt=\"Figma Logo\"\n src=\"data:image/png;base64,i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dTO8jrshIYSaGQLbUU0N4UaqmyElSfUybMbeENyRamhIKUO9DCkh1MqwjG66tTO8ir0hfHASw8gR/ywlGja5/xuAZnjA/dsAtBX/ivu3AbCL0q4h918j4Jc0LcFL7r9GoCwXVoX7ryFwwfGsTo2GdHyqcv8zBp6mOq33bfAb7zL3L4M00WeZQ+4/hgGDqF0I0UrUbKnwge71NWukHZTHTDTbkva4UjbM6nRu6ke1FLM6FqGP2pKhsaBaFLUWbNXieFgxaluDXcrBc19WVc8ueovm6DBammfoDZXhA6ZW9lC/rdoIyplq9o6kZVmHMUjQPg4qVStrdclWD3VvMEM5aGYq19fXleZBbLJTEARBEARBEARBEARBEARBEARBEHz+B91xJIzYVK0AAAAAAElFTkSuQmCC\" />\n </eui-card-header-left-content>\n <eui-card-header-title>\n <a\n class=\"h5 eui-u-text-link-external\"\n href=\"https://www.figma.com/file/jQ9htWvSM8SWTPuk3hoigc/{{ figmaUrl }}\"\n target=\"blank\">\n <span class=\"eui-u-color-grey-75\">Layout component /</span>\n {{ label }}\n </a>\n </eui-card-header-title>\n </eui-card-header>\n </eui-card>\n </ng-template>\n </euiTabContent>\n </eui-tab>\n <eui-tab>\n <euiTabLabel>Pattern sample</euiTabLabel>\n <euiTabContent>\n <ng-content select=\"docPagePatternSample\"></ng-content>\n </euiTabContent>\n </eui-tab>\n\n <euiTabsRightContent>\n <button type=\"button\" euiButton euiAccent euiSizeS (click)=\"onNavigateToCode($event)\">\n <eui-icon-svg icon=\"code-slash:sharp\"></eui-icon-svg>\n View sources\n </button>\n </euiTabsRightContent>\n</eui-tabs>\n\n<button\n type=\"button\"\n *ngIf=\"isShowGoTop && tabSelectedIndex === 0\"\n euiButton\n euiIconButton\n euiOutline\n euiRounded\n euiSizeL\n class=\"eui-button-fixed eui-u-sh-8\"\n (click)=\"gotoTop()\"\n title=\"Goto Top\"\n aria-label=\"Goto Top\">\n <!-- \uD83D\uDC46 -->\n <eui-icon-svg icon=\"eui-arrow-up\" set=\"eui\" size=\"l\" fillColor=\"grey-50\"></eui-icon-svg>\n</button>\n", styles: [".doc-page-pattern{display:flex;flex-direction:column;flex:1 1 auto;min-height:100%;padding:var(--eui-s-xl)}.doc-page-pattern sample,.doc-page-pattern eui-tabs,.doc-page-pattern .eui-tabs,.doc-page-pattern .eui-tab-content-wrapper,.doc-page-pattern .eui-tab-content{display:flex;flex-direction:column;flex:1 1 auto;min-height:100%}.doc-page-pattern .eui-tabs .eui-tab-item--active,.doc-page-pattern .eui-tabs .eui-tab-item:focus{background-color:var(--eui-c-white)}.doc-page-pattern .eui-tabs .eui-tab-content-wrapper .eui-tab-content{padding:var(--eui-s-m)}.doc-page-pattern docPagePatternSample{display:flex;flex-direction:column;flex-grow:1;min-height:0;position:relative;width:100%}.doc-page-pattern .html{display:block;position:relative;text-align:left}\n"], dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.EuiCardComponent, selector: "eui-card", inputs: ["e2eAttr", "euiSelected", "euiCollapsible", "euiCollapsed", "euiUrgent", "euiNoShadow", "euiNoContentPadding", "euiHoverable"], outputs: ["collapse"] }, { kind: "component", type: i2$1.EuiCardHeaderComponent, selector: "eui-card-header", inputs: ["expandLabel", "collapseLabel", "hasHeaderClickToggle", "hasBottomExpander", "hasFullTitle", "isHeaderMultilines"], outputs: ["collapse"] }, { kind: "component", type: i2$1.EuiCardHeaderTitleComponent, selector: "eui-card-header-title" }, { kind: "component", type: i2$1.EuiCardContentComponent, selector: "eui-card-content" }, { kind: "component", type: i2$1.EuiCardHeaderLeftContentComponent, selector: "eui-card-header-left-content" }, { kind: "component", type: i2$1.EuiCardHeaderRightContentComponent, selector: "eui-card-header-right-content" }, { kind: "component", type: i2$2.EuiButtonComponent, selector: "button[euiButton], a[euiButton]", inputs: ["e2eAttr", "id", "euiBasicButton", "euiButtonCall", "euiBlockButton", "euiIconButton", "euiLineWrap", "isChecked", "euiDisabled"], outputs: ["buttonClick"] }, { kind: "component", type: i10.EuiTabsComponent, selector: "eui-tabs", inputs: ["tabs", "activeTabIndex", "e2eAttr", "pathMatch", "isMainNavigation", "isHandleChangeTab", "isSubTabs", "isVerticalTabs"], outputs: ["tabClose", "tabSelect"] }, { kind: "component", type: i10.EuiTabComponent, selector: "eui-tab", inputs: ["url", "e2eAttr", "tooltip", "isClosable", "isVisible", "isActive", "isDisabled", "isHandleCloseOnClose"] }, { kind: "directive", type: i10.EuiTabsRightContentTagDirective, selector: "euiTabsRightContent" }, { kind: "component", type: i10.EuiTabLabelComponent, selector: "eui-tab-label, euiTabLabel" }, { kind: "component", type: i10.EuiTabContentComponent, selector: "eui-tab-content, euiTabContent", inputs: ["hasNoContentPadding"] }, { kind: "component", type: i5.EuiChipComponent, selector: "eui-chip, span[euiChip], li[euiChip]", inputs: ["ariaLabel", "e2eAttr", "euiInternalId", "tooltipMessage", "id", "data", "isChipRemovable", "isSquared", "isFilled"], outputs: ["remove"] }, { kind: "component", type: i8.EuiBadgeComponent, selector: "div[euiBadge], span[euiBadge], eui-badge", inputs: ["e2eAttr", "aria-label", "maxCharCount", "charReplacement", "euiIconBadge", "euiDottedBadge"] }, { kind: "component", type: i4$2.EuiIconSvgComponent, selector: "eui-icon-svg, span[euiIconSvg], i[euiIconSvg]", inputs: ["icon", "fillColor", "set", "size", "style", "iconUrl", "transform", "euiVariant", "aria-label", "ariaHidden", "focusable", "isLoading", "isInputIcon", "euiStart", "euiEnd"] }, { kind: "component", type: i12.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"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
1734
1773
|
}
|
|
1735
1774
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DocPagePatternComponent, decorators: [{
|
|
1736
1775
|
type: Component,
|