@ember-eui/core 5.4.4 → 5.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/addon/components/eui-card/index.hbs +25 -20
- package/addon/components/eui-card/index.ts +26 -0
- package/addon/components/eui-confirm-modal/index.hbs +13 -7
- package/addon/components/eui-described-form-group/index.hbs +5 -1
- package/addon/components/eui-loading-content/index.hbs +6 -1
- package/addon/components/eui-modal/index.hbs +2 -2
- package/addon/components/eui-selectable-list-item/index.hbs +24 -0
- package/addon/utils/css-mappings/eui-selectable-list-item.ts +14 -0
- package/addon/utils/css-mappings/index.ts +2 -0
- package/app/components/eui-selectable-list-item/index.js +1 -0
- package/docs/display/{avatar-demo/demo1.md → avatar/demo/d01-basic.md} +0 -2
- package/docs/display/{avatar-demo/demo2.md → avatar/demo/d02-initials.md} +0 -0
- package/docs/display/{avatar-demo/demo3.md → avatar/demo/d03-types.md} +0 -0
- package/docs/display/{avatar-demo/demo4.md → avatar/demo/d04-icons.md} +0 -0
- package/docs/display/{avatar-demo/demo5.md → avatar/demo/d05-disabled.md} +0 -0
- package/docs/display/{avatar.md → avatar/index.md} +5 -0
- package/docs/display/{badge-demo/demo1.md → badge/demo/d01-badge.md} +0 -0
- package/docs/display/{badge-demo/demo2.md → badge/demo/d02-badge-with-icon.md} +0 -0
- package/docs/display/{badge-demo/demo3.md → badge/demo/d03-badge-with-onclick-events.md} +0 -0
- package/docs/display/{badge-demo/demo4.md → badge/demo/d04-badge-for-health-status.md} +0 -0
- package/docs/display/{badge-demo/demo5.md → badge/demo/d05-badge-with-href.md} +0 -0
- package/docs/display/{badge-demo/demo7.md → badge/demo/d06-badge-groups-and-truncation.md} +0 -0
- package/docs/display/{badge-demo/demo6.md → badge/demo/d07-beta-badge-type.md} +0 -0
- package/docs/display/{badge-demo/demo8.md → badge/demo/d08-notification-badge-type.md} +0 -0
- package/docs/display/{badge.md → badge/index.md} +5 -0
- package/docs/display/{callout-demo/demo1.md → callout/demo/d01-info.md} +0 -0
- package/docs/display/{callout-demo/demo2.md → callout/demo/d02-success.md} +0 -0
- package/docs/display/{callout-demo/demo3.md → callout/demo/d03-warning.md} +0 -0
- package/docs/display/{callout-demo/demo4.md → callout/demo/d04-danger.md} +0 -0
- package/docs/display/{callout.md → callout/index.md} +6 -1
- package/docs/display/card/{basic-card-demo/demo1.md → demo/d01-basic-card.md} +5 -1
- package/docs/display/card/{layout-demo/demo1.md → demo/d02-layout.md} +4 -0
- package/docs/display/card/{images-demo/demo1.md → demo/d03-images.md} +1 -1
- package/docs/display/card/{footer-demo/demo1.md → demo/d04-footer.md} +4 -0
- package/docs/display/card/{beta-badge-demo/demo1.md → demo/d05-beta-badge.md} +4 -0
- package/docs/display/card/{selectable-demo/demo1.md → demo/d06-selectable.md} +5 -1
- package/docs/display/card/{checkable-demo/demo1.md → demo/d07-checkable.md} +1 -1
- package/docs/display/card/{checkable-demo/demo2.md → demo/d07.1-cheekable.md} +1 -1
- package/docs/display/card/{custom-children-demo/demo1.md → demo/d08-custom-children.md} +5 -1
- package/docs/display/card/index.md +14 -0
- package/docs/display/{comment-list-demo/demo1.md → comment-list/demo/d01-comment-list.md} +28 -22
- package/docs/display/{comment-list.md → comment-list/index.md} +6 -0
- package/docs/display/{description-list-demo/demo1.md → description-list/demo/d01-description-list.md} +0 -0
- package/docs/display/{description-list-demo/demo2.md → description-list/demo/d02-reverse-style.md} +0 -0
- package/docs/display/{description-list-demo/demo3.md → description-list/demo/d03-as-columns.md} +0 -0
- package/docs/display/{description-list-demo/demo4.md → description-list/demo/d04-inline.md} +0 -0
- package/docs/display/{description-list-demo/demo5.md → description-list/demo/d05-centered-and-compressed.md} +0 -0
- package/docs/display/{description-list-demo/demo6.md → description-list/demo/d06-passing-classname.md} +0 -0
- package/docs/display/{description-list.md → description-list/index.md} +6 -0
- package/docs/display/{empty-prompt-demo/demo1.md → empty-prompt/demo/d01-empty-prompt.md} +0 -0
- package/docs/display/{empty-prompt-demo/demo2.md → empty-prompt/demo/d02-less-content-more-actions.md} +0 -0
- package/docs/display/{empty-prompt-demo/demo3.md → empty-prompt/demo/d03-panel-options.md} +0 -0
- package/docs/display/{empty-prompt-demo/demo4.md → empty-prompt/demo/d04-title-sizes-and-icon-colors.md} +0 -0
- package/docs/display/{empty-prompt-demo/demo5.md → empty-prompt/demo/d05-loading-and-error-prompts.md} +0 -0
- package/docs/display/{empty-prompt-demo/demo6.md → empty-prompt/demo/d06-layout.md} +0 -0
- package/docs/display/{empty-prompt-demo/demo7.md → empty-prompt/demo/d07-more-types-of-empty-states.md} +0 -0
- package/docs/display/{empty-prompt-demo/demo8.md → empty-prompt/demo/d08-using-in-a-page-template.md} +0 -0
- package/docs/display/empty-prompt/index.md +13 -0
- package/docs/display/{health-demo/demo1.md → health/demo/d01-health.md} +0 -0
- package/docs/display/{health-demo/demo2.md → health/demo/d02-text-sizes.md} +0 -0
- package/docs/display/health/index.md +13 -0
- package/docs/display/{icons-demo/demo1.md → icons/demo/d01-glyphs.md} +0 -0
- package/docs/display/{icons-demo/demo2.md → icons/demo/d02-editor-controls.md} +0 -0
- package/docs/display/{icons-demo/demo3.md → icons/demo/d03-elastic-logos.md} +0 -0
- package/docs/display/{icons-demo/demo4.md → icons/demo/d04-apps.md} +0 -0
- package/docs/display/{icons-demo/demo5.md → icons/demo/d05-tokens.md} +0 -0
- package/docs/display/{icons-demo/demo6.md → icons/demo/d06-sizes.md} +0 -0
- package/docs/display/{icons-demo/demo7.md → icons/demo/d07-colors.md} +0 -0
- package/docs/display/{icons-demo/demo8.md → icons/demo/d08-custom-svgs.md} +0 -0
- package/docs/display/{icons.md → icons/index.md} +5 -0
- package/docs/display/{image-demo/demo1.md → image/demo/d01-image.md} +0 -0
- package/docs/display/{image-demo/demo2.md → image/demo/d02-click-an-image-for-a-fullscreen-version.md} +0 -0
- package/docs/display/{image-demo/demo3.md → image/demo/d03-images-can-be-sized.md} +0 -0
- package/docs/display/{image-demo/demo4.md → image/demo/d04-float-images-within-text.md} +0 -0
- package/docs/display/{image.md → image/index.md} +5 -1
- package/docs/display/list-group/demo/d01-list-group.md +236 -0
- package/docs/display/list-group/index.md +8 -0
- package/docs/display/loading/logo-demo/{demo1.md → d01-logos.md} +0 -0
- package/docs/display/loading/spinner-demo/d02-spinner.md +6 -0
- package/docs/display/loading/text-content-demo/{demo1.md → d3-text-content.md} +0 -2
- package/docs/display/notification-event/demo/{demo1.md → d01-notification-event.md} +15 -24
- package/docs/display/notification-event/demo/{demo2.md → d02-read-state.md} +0 -0
- package/docs/display/notification-event/demo/{demo3.md → d03-feed.md} +0 -0
- package/docs/display/notification-event/index.md +2 -2
- package/docs/display/{progress-demo → progress/demo}/demo1.md +0 -0
- package/docs/display/{progress-demo → progress/demo}/demo2.md +0 -0
- package/docs/display/{progress-demo → progress/demo}/demo3.md +0 -0
- package/docs/display/{progress-demo → progress/demo}/demo4.md +0 -0
- package/docs/display/progress/index.md +7 -0
- package/docs/display/stat-demo/{demo1.md → demo/d01-stat.md} +0 -0
- package/docs/display/stat-demo/{demo2.md → demo/d02-applying-color.md} +0 -0
- package/docs/display/stat-demo/{demo3.md → demo/d03-text-alignment.md} +0 -0
- package/docs/display/stat-demo/{demo4.md → demo/d04-title-size.md} +0 -0
- package/docs/display/stat-demo/{demo5.md → demo/d05-reverse-the-order.md} +0 -0
- package/docs/display/stat-demo/{demo6.md → demo/d06-stat-loading.md} +0 -0
- package/docs/display/stat-demo/{demo7.md → demo/d07-putting-it-all-together.md} +0 -0
- package/docs/display/{stat.md → stat-demo/index.md} +5 -0
- package/docs/display/{text-demo/demo1.md → text/demo/d01-text.md} +0 -0
- package/docs/display/{text-demo/demo2.md → text/demo/d02-coloring-text.md} +0 -0
- package/docs/display/{text-demo/demo3.md → text/demo/d03-alignment.md} +0 -0
- package/docs/display/{text.md → text/index.md} +6 -1
- package/docs/display/{title-demo/demo1.md → title/demo/d01-title.md} +0 -0
- package/docs/display/title/index.md +6 -0
- package/docs/display/toast/{toast-list-demo/demo1.md → demo/d01-toast.md} +11 -13
- package/docs/display/{tool-tip.md → toast/index.md} +6 -1
- package/docs/display/{tool-tip-demo/demo1.md → tool-tip/demo/d01-tool-tip.md} +0 -3
- package/docs/display/{tool-tip-demo/demo2.md → tool-tip/demo/d02-wrapping-components.md} +0 -0
- package/docs/display/{tool-tip-demo/demo3.md → tool-tip/demo/d03-icontip.md} +0 -0
- package/docs/display/{tool-tip-demo/demo4.md → tool-tip/demo/d04-attaching-to.md} +0 -0
- package/docs/display/tool-tip/index.md +10 -0
- package/docs/editors/code/{inline-demo/demo1.md → demo/d01-inline.md} +1 -1
- package/docs/editors/code/{code-block-demo/demo1.md → demo/d02-code-block.md} +1 -1
- package/docs/editors/code/{code-block-demo/demo5.md → demo/d03-line-numbers.md} +1 -1
- package/docs/editors/code/{code-block-demo/demo2.md → demo/d04-copy.md} +1 -1
- package/docs/editors/code/{code-block-demo/demo3.md → demo/d05-overflow-height.md} +1 -1
- package/docs/editors/code/{code-block-demo/demo4.md → demo/d06-white-space.md} +1 -1
- package/docs/editors/code/{code-block-demo/demo6.md → demo/d07-line-numbers-highlighted.md} +1 -1
- package/docs/editors/code/{code-block-demo/demo7.md → demo/d08-code-block-virtualization.md} +1 -1
- package/docs/editors/code/{code-block-demo/demo8.md → demo/d09-flyout.md} +1 -1
- package/docs/editors/code/{code-block.md → index.md} +8 -3
- package/docs/editors/markdown-editor/base-editor-demo/demo1.md +1 -4
- package/docs/editors/markdown-editor/base-editor.md +2 -1
- package/docs/forms/{form-controls/combo-box → combo-box}/demo/demo1.md +0 -2
- package/docs/forms/{form-controls/combo-box → combo-box}/demo/demo2.md +0 -0
- package/docs/forms/{form-controls/combo-box → combo-box}/demo/demo3.md +0 -0
- package/docs/forms/{form-controls/combo-box → combo-box}/demo/demo4.md +0 -0
- package/docs/forms/{form-controls/combo-box → combo-box}/demo/demo5.md +0 -0
- package/docs/forms/{form-controls/combo-box → combo-box}/index.md +1 -0
- package/docs/forms/form-controls/checkbox/index.md +1 -0
- package/docs/forms/form-controls/checkbox-group/index.md +1 -0
- package/docs/forms/form-controls/file-picker/index.md +1 -1
- package/docs/forms/form-controls/form-control-layout/demo/demo1.md +85 -69
- package/docs/forms/form-controls/form-control-layout/index.md +1 -0
- package/docs/forms/form-controls/form-control-layout-delimited/demo/demo1.md +0 -2
- package/docs/forms/form-controls/form-control-layout-delimited/index.md +1 -0
- package/docs/forms/form-controls/number-field/index.md +1 -0
- package/docs/forms/form-controls/password-field/index.md +1 -0
- package/docs/forms/form-controls/radio/index.md +1 -0
- package/docs/forms/form-controls/radio-group/index.md +1 -1
- package/docs/forms/form-controls/range/index.md +1 -0
- package/docs/forms/form-controls/search-field/index.md +1 -1
- package/docs/forms/form-controls/select/index.md +1 -1
- package/docs/forms/form-controls/switch/index.md +1 -0
- package/docs/forms/form-controls/text-field/index.md +1 -1
- package/docs/forms/form-controls/textarea/index.md +2 -0
- package/docs/forms/form-layouts/described-form-groups.md +2 -1
- package/docs/layout/accordion/index.md +14 -13
- package/docs/layout/bottom-bar/index.md +2 -1
- package/docs/layout/flex/index.md +8 -7
- package/docs/layout/flyout/index.md +2 -1
- package/docs/layout/header/index.md +2 -1
- package/docs/layout/horizontal-rule/horizontal-rule.md +2 -1
- package/docs/layout/modal/index.md +1 -1
- package/docs/layout/page-header/index.md +2 -1
- package/docs/layout/panel/index.md +1 -0
- package/docs/layout/popover/index.md +2 -1
- package/docs/layout/resizable-container/index.md +2 -1
- package/docs/layout/spacer/index.md +2 -1
- package/docs/navigation/breadcrumbs/demo/d01-basic.md +5 -7
- package/docs/navigation/button/index.md +2 -1
- package/docs/navigation/collapsible-nav.md +2 -1
- package/docs/navigation/key-pad-menu-demo/demo1.md +0 -2
- package/docs/navigation/key-pad-menu.md +2 -1
- package/docs/navigation/link-demo/demo1.md +0 -2
- package/docs/navigation/link.md +2 -1
- package/docs/navigation/side-nav-demo/demo1.md +6 -5
- package/docs/navigation/side-nav.md +2 -1
- package/docs/navigation/steps.md +2 -1
- package/docs/navigation/tabs.md +1 -0
- package/docs/templates/page-template/index.md +4 -2
- package/docs/templates/sitewide-search/index.md +2 -1
- package/docs/templates/super-date-picker/index.md +1 -1
- package/docs/utilities/auto-sizer-demo/demo1.md +0 -2
- package/docs/utilities/auto-sizer.md +2 -1
- package/docs/utilities/copy-demo/demo1.md +0 -2
- package/docs/utilities/copy.md +2 -1
- package/docs/utilities/mutation-observer-demo/demo1.md +9 -6
- package/docs/utilities/mutation-observer.md +2 -1
- package/docs/utilities/outside-click-detector-demo/demo1.md +1 -3
- package/docs/utilities/outside-click-detector.md +2 -1
- package/docs/utilities/overlay-mask-demo/demo1.md +3 -5
- package/docs/utilities/overlay-mask.md +2 -1
- package/docs/utilities/portal-demo/demo1.md +1 -1
- package/docs/utilities/portal-demo/demo2.md +15 -14
- package/docs/utilities/portal.md +2 -1
- package/docs/utilities/resize-observer-demo/demo1.md +26 -15
- package/docs/utilities/resize-observer.md +2 -1
- package/docs/utilities/responsive.md +2 -1
- package/package.json +3 -3
- package/docs/display/card/basic-card.md +0 -9
- package/docs/display/card/beta-badge.md +0 -9
- package/docs/display/card/checkable.md +0 -9
- package/docs/display/card/custom-children.md +0 -9
- package/docs/display/card/footer.md +0 -9
- package/docs/display/card/images.md +0 -9
- package/docs/display/card/layout.md +0 -9
- package/docs/display/card/selectable.md +0 -9
- package/docs/display/empty-prompt.md +0 -2
- package/docs/display/health.md +0 -9
- package/docs/display/list-group-demo/demo1.md +0 -171
- package/docs/display/list-group.md +0 -1
- package/docs/display/loading/spinner-demo/demo1.md +0 -8
- package/docs/display/progress.md +0 -1
- package/docs/display/title.md +0 -1
- package/docs/display/toast/toast-list.md +0 -1
- package/docs/editors/code/inline.md +0 -1
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Image
|
|
3
|
+
---
|
|
1
4
|
|
|
5
|
+
<EuiSpacer/>
|
|
2
6
|
<EuiPageHeader @pageTitle="Image"/>
|
|
3
7
|
|
|
4
8
|
<EuiSpacer />
|
|
@@ -6,4 +10,4 @@
|
|
|
6
10
|
<p>Use <strong>EuiImage</strong> when you need to place a static image into a page with an optional caption.</p>
|
|
7
11
|
</EuiText>
|
|
8
12
|
|
|
9
|
-
<EuiHorizontalRule />
|
|
13
|
+
<EuiHorizontalRule />
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
```hbs template
|
|
2
|
+
<EuiFlexGroup>
|
|
3
|
+
<EuiFlexItem>
|
|
4
|
+
<EuiListGroup
|
|
5
|
+
@bordered={{this.bordered}}
|
|
6
|
+
@flush={{this.flush}}
|
|
7
|
+
@maxWidth={{this.maxWidth}}
|
|
8
|
+
@gutterSize={{this.gutterSize}}
|
|
9
|
+
>
|
|
10
|
+
<EuiListGroupItem
|
|
11
|
+
@href={{if this.useHref '/'}}
|
|
12
|
+
@onClick={{if this.useOnClick this.onClick}}
|
|
13
|
+
@isActive={{this.isActive}}
|
|
14
|
+
@isDisabled={{this.isDisabled}}
|
|
15
|
+
@wrapText={{this.wrapText}}
|
|
16
|
+
@size={{this.size}}
|
|
17
|
+
@color={{this.color}}
|
|
18
|
+
@iconType={{if this.useIconType 'bell'}}
|
|
19
|
+
>
|
|
20
|
+
{{#if this.wrapText}}
|
|
21
|
+
First item with very long text with Lorem ipsum dolor sit amet,
|
|
22
|
+
consectetur adipiscing elit
|
|
23
|
+
{{else}}
|
|
24
|
+
First item
|
|
25
|
+
{{/if}}
|
|
26
|
+
</EuiListGroupItem>
|
|
27
|
+
<EuiListGroupItem>
|
|
28
|
+
Second item
|
|
29
|
+
</EuiListGroupItem>
|
|
30
|
+
<EuiListGroupItem>
|
|
31
|
+
Third item
|
|
32
|
+
</EuiListGroupItem>
|
|
33
|
+
<EuiListGroupItem>
|
|
34
|
+
Fourth item
|
|
35
|
+
</EuiListGroupItem>
|
|
36
|
+
</EuiListGroup>
|
|
37
|
+
</EuiFlexItem>
|
|
38
|
+
<EuiFlexItem>
|
|
39
|
+
<EuiFlexGroup>
|
|
40
|
+
<EuiFlexItem>
|
|
41
|
+
<EuiTitle @size='xs'>Group</EuiTitle>
|
|
42
|
+
<div>
|
|
43
|
+
<Input @type='checkbox' @checked={{this.bordered}} name='bordered' />
|
|
44
|
+
<label for='bordered'>Bordered</label>
|
|
45
|
+
</div>
|
|
46
|
+
<div>
|
|
47
|
+
<Input @type='checkbox' @checked={{this.flush}} name='flushed' />
|
|
48
|
+
<label for='flushed'>Flush</label>
|
|
49
|
+
</div>
|
|
50
|
+
<div>
|
|
51
|
+
<EuiText>Gutter size</EuiText>
|
|
52
|
+
<EuiBadge
|
|
53
|
+
@color={{if (eq this.gutterSize 'none') 'primary'}}
|
|
54
|
+
@onClick={{set this 'gutterSize' 'none'}}
|
|
55
|
+
>none</EuiBadge>
|
|
56
|
+
<EuiBadge
|
|
57
|
+
@color={{if (eq this.gutterSize 's') 'primary'}}
|
|
58
|
+
@onClick={{set this 'gutterSize' 's'}}
|
|
59
|
+
>small</EuiBadge>
|
|
60
|
+
<EuiBadge
|
|
61
|
+
@color={{if (eq this.gutterSize 'm') 'primary'}}
|
|
62
|
+
@onClick={{set this 'gutterSize' 'm'}}
|
|
63
|
+
>medium</EuiBadge>
|
|
64
|
+
</div>
|
|
65
|
+
<div>
|
|
66
|
+
<EuiText>Max width</EuiText>
|
|
67
|
+
<EuiBadge
|
|
68
|
+
@color={{if (eq this.maxWidthType 'bool') 'primary'}}
|
|
69
|
+
@onClick={{pipe
|
|
70
|
+
(set this 'maxWidthType' 'bool')
|
|
71
|
+
(set this 'maxWidth' false)
|
|
72
|
+
}}
|
|
73
|
+
>
|
|
74
|
+
boolean
|
|
75
|
+
</EuiBadge>
|
|
76
|
+
<EuiBadge
|
|
77
|
+
@color={{if (eq this.maxWidthType 'num') 'primary'}}
|
|
78
|
+
@onClick={{pipe
|
|
79
|
+
(set this 'maxWidthType' 'num')
|
|
80
|
+
(set this 'maxWidth' 400)
|
|
81
|
+
}}
|
|
82
|
+
>
|
|
83
|
+
number
|
|
84
|
+
</EuiBadge>
|
|
85
|
+
<EuiBadge
|
|
86
|
+
@color={{if (eq this.maxWidthType 'string') 'primary'}}
|
|
87
|
+
@onClick={{pipe
|
|
88
|
+
(set this 'maxWidthType' 'string')
|
|
89
|
+
(set this 'maxWidth' '')
|
|
90
|
+
}}
|
|
91
|
+
>
|
|
92
|
+
string
|
|
93
|
+
</EuiBadge>
|
|
94
|
+
</div>
|
|
95
|
+
<div>
|
|
96
|
+
{{#if (eq this.maxWidthType 'bool')}}
|
|
97
|
+
<Input
|
|
98
|
+
@type='checkbox'
|
|
99
|
+
@checked={{this.maxWidth}}
|
|
100
|
+
name='maxwidth'
|
|
101
|
+
/>
|
|
102
|
+
<label for='maxwidth'>{{this.maxWidth}}</label>
|
|
103
|
+
{{else if (eq this.maxWidthType 'num')}}
|
|
104
|
+
<label for='maxwidth'>Enter value</label>
|
|
105
|
+
<input
|
|
106
|
+
type='number'
|
|
107
|
+
value={{this.maxWidth}}
|
|
108
|
+
{{on 'input' this.parseToNum}}
|
|
109
|
+
name='maxwidth'
|
|
110
|
+
/>
|
|
111
|
+
{{else}}
|
|
112
|
+
<label for='maxwidth'>Enter value</label>
|
|
113
|
+
<Input @value={{this.maxWidth}} name='maxwidth' />
|
|
114
|
+
{{/if}}
|
|
115
|
+
</div>
|
|
116
|
+
</EuiFlexItem>
|
|
117
|
+
<EuiFlexItem>
|
|
118
|
+
<EuiTitle @size='xs'>First Item</EuiTitle>
|
|
119
|
+
<div>
|
|
120
|
+
<Input @type='checkbox' @checked={{this.useHref}} name='useHref' />
|
|
121
|
+
<label for='useHref'>use Href</label>
|
|
122
|
+
</div>
|
|
123
|
+
<div>
|
|
124
|
+
<Input
|
|
125
|
+
@type='checkbox'
|
|
126
|
+
@checked={{this.useOnClick}}
|
|
127
|
+
name='useOnClick'
|
|
128
|
+
/>
|
|
129
|
+
<label for='useOnClick'>use onClick</label>
|
|
130
|
+
</div>
|
|
131
|
+
<div>
|
|
132
|
+
<Input @type='checkbox' @checked={{this.isActive}} name='isActive' />
|
|
133
|
+
<label for='isActive'>isActive</label>
|
|
134
|
+
</div>
|
|
135
|
+
<div>
|
|
136
|
+
<Input
|
|
137
|
+
@type='checkbox'
|
|
138
|
+
@checked={{this.isDisabled}}
|
|
139
|
+
name='isDisabled'
|
|
140
|
+
/>
|
|
141
|
+
<label for='isDisabled'>isDisabled</label>
|
|
142
|
+
</div>
|
|
143
|
+
<div>
|
|
144
|
+
<Input @type='checkbox' @checked={{this.wrapText}} name='wrapText' />
|
|
145
|
+
<label for='wrapText'>wrapText</label>
|
|
146
|
+
</div>
|
|
147
|
+
<div>
|
|
148
|
+
<EuiText>Size</EuiText>
|
|
149
|
+
<EuiBadge
|
|
150
|
+
@color={{if (eq this.size 'xs') 'primary'}}
|
|
151
|
+
@onClick={{set this 'size' 'xs'}}
|
|
152
|
+
>extra small</EuiBadge>
|
|
153
|
+
<EuiBadge
|
|
154
|
+
@color={{if (eq this.size 's') 'primary'}}
|
|
155
|
+
@onClick={{set this 'size' 's'}}
|
|
156
|
+
>small</EuiBadge>
|
|
157
|
+
<EuiBadge
|
|
158
|
+
@color={{if (eq this.size 'm') 'primary'}}
|
|
159
|
+
@onClick={{set this 'size' 'm'}}
|
|
160
|
+
>medium</EuiBadge>
|
|
161
|
+
<EuiBadge
|
|
162
|
+
@color={{if (eq this.size 'l') 'primary'}}
|
|
163
|
+
@onClick={{set this 'size' 'l'}}
|
|
164
|
+
>large</EuiBadge>
|
|
165
|
+
</div>
|
|
166
|
+
<div>
|
|
167
|
+
<EuiText>Color</EuiText>
|
|
168
|
+
<EuiBadge
|
|
169
|
+
@color={{if (eq this.color 'inherit') 'primary'}}
|
|
170
|
+
@onClick={{set this 'color' 'inherit'}}
|
|
171
|
+
>inherit</EuiBadge>
|
|
172
|
+
<EuiBadge
|
|
173
|
+
@color={{if (eq this.color 'text') 'primary'}}
|
|
174
|
+
@onClick={{set this 'color' 'text'}}
|
|
175
|
+
>text</EuiBadge>
|
|
176
|
+
<EuiBadge
|
|
177
|
+
@color={{if (eq this.color 'subdued') 'primary'}}
|
|
178
|
+
@onClick={{set this 'color' 'subdued'}}
|
|
179
|
+
>subdued</EuiBadge>
|
|
180
|
+
<EuiBadge
|
|
181
|
+
@color={{if (eq this.color 'ghost') 'primary'}}
|
|
182
|
+
@onClick={{set this 'color' 'ghost'}}
|
|
183
|
+
>ghost</EuiBadge>
|
|
184
|
+
<EuiBadge
|
|
185
|
+
@color={{if (eq this.color 'primary') 'primary'}}
|
|
186
|
+
@onClick={{set this 'color' 'primary'}}
|
|
187
|
+
>primary</EuiBadge>
|
|
188
|
+
</div>
|
|
189
|
+
<div>
|
|
190
|
+
<Input
|
|
191
|
+
@type='checkbox'
|
|
192
|
+
@checked={{this.useIconType}}
|
|
193
|
+
name='useIconType'
|
|
194
|
+
/>
|
|
195
|
+
<label for='useIconType'>use iconType</label>
|
|
196
|
+
</div>
|
|
197
|
+
</EuiFlexItem>
|
|
198
|
+
</EuiFlexGroup>
|
|
199
|
+
</EuiFlexItem>
|
|
200
|
+
</EuiFlexGroup>
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
```js component
|
|
204
|
+
import Component from '@glimmer/component';
|
|
205
|
+
import { tracked } from '@glimmer/tracking';
|
|
206
|
+
import { action } from '@ember/object';
|
|
207
|
+
|
|
208
|
+
export default class DemoListGroupComponent extends Component {
|
|
209
|
+
// Group config
|
|
210
|
+
@tracked bordered = false;
|
|
211
|
+
@tracked flush = false;
|
|
212
|
+
@tracked gutterSize = 's';
|
|
213
|
+
@tracked maxWidthType = 'bool';
|
|
214
|
+
@tracked maxWidth = false;
|
|
215
|
+
|
|
216
|
+
@action
|
|
217
|
+
parseToNum(event) {
|
|
218
|
+
this.maxWidth = Number(event.target.value);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
@action
|
|
222
|
+
onClick(event) {
|
|
223
|
+
console.log('Item clicked');
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
//Item config
|
|
227
|
+
@tracked useHref = false;
|
|
228
|
+
@tracked useOnClick = false;
|
|
229
|
+
@tracked isActive = false;
|
|
230
|
+
@tracked isDisabled = false;
|
|
231
|
+
@tracked wrapText = false;
|
|
232
|
+
@tracked size = 'm';
|
|
233
|
+
@tracked color = 'inherit';
|
|
234
|
+
@tracked useIconType = false;
|
|
235
|
+
}
|
|
236
|
+
```
|
|
File without changes
|
|
@@ -2,12 +2,8 @@
|
|
|
2
2
|
order: 1
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# Basic
|
|
6
|
-
|
|
7
5
|
```hbs template
|
|
8
|
-
{{#let (slice
|
|
9
|
-
0 this.messagesCount this.messages
|
|
10
|
-
) as |msgs|}}
|
|
6
|
+
{{#let (slice 0 this.messagesCount this.messages) as |msgs|}}
|
|
11
7
|
<EuiPanel @paddingSize='xs'>
|
|
12
8
|
<EuiNotificationEvent
|
|
13
9
|
@type='Hey!'
|
|
@@ -20,21 +16,21 @@ order: 1
|
|
|
20
16
|
@accordionHideText='hide'
|
|
21
17
|
>
|
|
22
18
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
19
|
+
<:primaryAction>
|
|
20
|
+
<EuiButtonEmpty
|
|
21
|
+
style='display: {{if this.showPrimaryAction "" "none"}};'
|
|
22
|
+
@flush='left'
|
|
23
|
+
@size='s'
|
|
24
|
+
>
|
|
25
|
+
Do something!
|
|
26
|
+
</EuiButtonEmpty>
|
|
27
|
+
</:primaryAction>
|
|
32
28
|
|
|
33
29
|
</EuiNotificationEvent>
|
|
34
30
|
</EuiPanel>
|
|
35
31
|
{{/let}}
|
|
36
32
|
|
|
37
|
-
<EuiSpacer/>
|
|
33
|
+
<EuiSpacer />
|
|
38
34
|
|
|
39
35
|
Messages count:
|
|
40
36
|
<EuiRange
|
|
@@ -61,12 +57,8 @@ import { action } from '@ember/object';
|
|
|
61
57
|
export default class NotificationEvent1Component extends Component {
|
|
62
58
|
@tracked messagesCount;
|
|
63
59
|
@tracked showPrimaryAction;
|
|
64
|
-
|
|
65
|
-
messages = [
|
|
66
|
-
'This is a message',
|
|
67
|
-
"Wait, there's more",
|
|
68
|
-
'hmmm...'
|
|
69
|
-
]
|
|
60
|
+
|
|
61
|
+
messages = ['This is a message', "Wait, there's more", 'hmmm...'];
|
|
70
62
|
|
|
71
63
|
constructor() {
|
|
72
64
|
super(...arguments);
|
|
@@ -75,9 +67,8 @@ export default class NotificationEvent1Component extends Component {
|
|
|
75
67
|
}
|
|
76
68
|
|
|
77
69
|
@action
|
|
78
|
-
setMessagesCount(e){
|
|
70
|
+
setMessagesCount(e) {
|
|
79
71
|
this.messagesCount = e.target.value;
|
|
80
72
|
}
|
|
81
|
-
|
|
82
73
|
}
|
|
83
|
-
```
|
|
74
|
+
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Text
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<EuiSpacer/>
|
|
1
6
|
<EuiPageHeader @pageTitle="Text"/>
|
|
2
7
|
|
|
3
8
|
<EuiText>
|
|
@@ -9,4 +14,4 @@ EuiText can ensure proper line-length for readability by setting a <EuiCode>max-
|
|
|
9
14
|
</p>
|
|
10
15
|
</EuiText>
|
|
11
16
|
|
|
12
|
-
<EuiHorizontalRule />
|
|
17
|
+
<EuiHorizontalRule />
|
|
File without changes
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
# Demo
|
|
2
|
-
|
|
3
1
|
```hbs template
|
|
4
|
-
<EuiButton @color=
|
|
2
|
+
<EuiButton @color='primary' {{on 'click' this.showRandomToast}}>
|
|
5
3
|
Add toast to global toast list
|
|
6
4
|
</EuiButton>
|
|
7
5
|
|
|
8
|
-
<EuiSpacer @size=
|
|
6
|
+
<EuiSpacer @size='l' />
|
|
9
7
|
|
|
10
8
|
<EuiGlobalToastList @toastLifeTimeMs={{3000}} />
|
|
11
9
|
```
|
|
@@ -22,11 +20,11 @@ export default class DemoToastListComponent extends Component {
|
|
|
22
20
|
@action
|
|
23
21
|
showRandomToast() {
|
|
24
22
|
this.euiToaster.show({
|
|
25
|
-
onClose: function() {
|
|
23
|
+
onClose: function () {
|
|
26
24
|
console.log('A toast is being closed');
|
|
27
25
|
},
|
|
28
26
|
...this.toasts[Math.floor(Math.random() * 4)]
|
|
29
|
-
})
|
|
27
|
+
});
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
toasts = [
|
|
@@ -35,25 +33,25 @@ export default class DemoToastListComponent extends Component {
|
|
|
35
33
|
body: 'This toast overrides the default toastLifeTimeMs value and will be around for 15 seconds.',
|
|
36
34
|
color: 'warning',
|
|
37
35
|
iconType: 'clock',
|
|
38
|
-
toastLifeTimeMs: 15000
|
|
36
|
+
toastLifeTimeMs: 15000
|
|
39
37
|
},
|
|
40
38
|
{
|
|
41
39
|
title: `Download complete!`,
|
|
42
40
|
body: 'Thanks for your patience!',
|
|
43
|
-
color: 'success'
|
|
41
|
+
color: 'success'
|
|
44
42
|
},
|
|
45
43
|
{
|
|
46
44
|
title: `Logging you out soon, due to inactivity`,
|
|
47
45
|
body: 'This is a security measure.',
|
|
48
46
|
color: 'warning',
|
|
49
|
-
iconType: 'user'
|
|
47
|
+
iconType: 'user'
|
|
50
48
|
},
|
|
51
|
-
|
|
49
|
+
{
|
|
52
50
|
title: `Oops, there was an error`,
|
|
53
51
|
body: 'Sorry. We’ll try not to let it happen it again.',
|
|
54
52
|
color: 'danger',
|
|
55
|
-
iconType: 'help'
|
|
53
|
+
iconType: 'help'
|
|
56
54
|
}
|
|
57
|
-
]
|
|
55
|
+
];
|
|
58
56
|
}
|
|
59
|
-
```
|
|
57
|
+
```
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
order: 1
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
<EuiText>
|
|
6
|
-
Generally, tooltips should provide short, <strong>non-essential</strong>, contextual information, usually naming or describing with more detail. If you need interactive content or anything other than text, we recommend using <strong>EuiPopover</strong> instead.
|
|
7
|
-
</EuiText>
|
|
8
5
|
<EuiSpacer />
|
|
9
6
|
<EuiCallOut @color="warning" @size="s" @iconType="accessibility" @title="Putting anything other than plain text in a tooltip is lost on screen readers." />
|
|
10
7
|
<EuiSpacer />
|
|
File without changes
|
|
File without changes
|
|
File without changes
|