@ember-eui/core 5.6.0 → 5.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/addon/components/eui-described-form-group/index.hbs +5 -1
- package/addon/components/eui-empty-prompt/index.hbs +2 -1
- package/addon/components/eui-i18n/index.hbs +33 -0
- package/addon/components/eui-i18n/index.ts +73 -0
- package/addon/components/eui-i18n/render.hbs +1 -0
- package/addon/components/eui-i18n/util.ts +127 -0
- package/addon/components/eui-pagination/button-wrapper/index.hbs +21 -0
- package/addon/components/eui-pagination/index.hbs +115 -0
- package/addon/components/eui-pagination/index.ts +177 -0
- package/addon/components/eui-pagination/next-button/index.hbs +27 -0
- package/addon/components/eui-pagination/previous-button/index.hbs +27 -0
- package/addon/components/eui-pagination-button/index.hbs +36 -0
- package/addon/i18n/index.ts +8 -0
- package/addon/utils/predicate/common_predicates.ts +37 -0
- package/addon/utils/predicate/index.ts +10 -0
- package/addon/utils/predicate/lodash_predicates.ts +27 -0
- package/app/components/eui-i18n/index.js +1 -0
- package/app/components/eui-i18n/render.js +1 -0
- package/app/components/eui-pagination/button-wrapper.js +1 -0
- package/app/components/eui-pagination/index.js +1 -0
- package/app/components/eui-pagination/next-button.js +1 -0
- package/app/components/eui-pagination/previous-button.js +1 -0
- package/app/components/eui-pagination-button/index.js +1 -0
- package/app/i18n/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 +99 -0
- package/docs/display/list-group/demo/d02-list-of-links.md +47 -0
- package/docs/display/list-group/demo/d03-text-wrapping-and-tooltips.md +31 -0
- package/docs/display/list-group/demo/d04-list-item-color-and-size.md +27 -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/pagination/demo/d01-basic.md +27 -0
- package/docs/navigation/pagination/index.md +8 -0
- 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/i18n/demo/d01-basic.md +32 -0
- package/docs/utilities/i18n/index.md +8 -0
- 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
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
---
|
|
2
|
+
order: 1
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<EuiText>
|
|
6
|
+
<p>The <strong>EuiListGroup</strong> component is used to present <strong>EuiListGroupItems</strong> in a neatly formatted list. Use the <EuiCode>flush</EuiCode> and <EuiCode>bordered</EuiCode> properties for full-width and bordered presentations, respectively.
|
|
7
|
+
Adjust the <EuiCode>gutterSize</EuiCode> prop to increase or decrease the spacing between items.</p>
|
|
8
|
+
</EuiText>
|
|
9
|
+
|
|
10
|
+
```hbs template
|
|
11
|
+
<EuiFlexGroup>
|
|
12
|
+
<EuiFlexItem>
|
|
13
|
+
<EuiListGroup
|
|
14
|
+
@bordered={{this.bordered}}
|
|
15
|
+
@flush={{this.flush}}
|
|
16
|
+
@maxWidth={{this.maxWidth}}
|
|
17
|
+
@gutterSize={{this.gutterSize}}
|
|
18
|
+
>
|
|
19
|
+
<EuiListGroupItem
|
|
20
|
+
@href={{if this.useHref '/'}}
|
|
21
|
+
@onClick={{if this.useOnClick this.onClick}}
|
|
22
|
+
@isActive={{this.isActive}}
|
|
23
|
+
@isDisabled={{this.isDisabled}}
|
|
24
|
+
@wrapText={{this.wrapText}}
|
|
25
|
+
@size={{this.size}}
|
|
26
|
+
@color={{this.color}}
|
|
27
|
+
@iconType={{if this.useIconType 'bell'}}
|
|
28
|
+
>
|
|
29
|
+
{{#if this.wrapText}}
|
|
30
|
+
First item with very long text with Lorem ipsum dolor sit amet,
|
|
31
|
+
consectetur adipiscing elit
|
|
32
|
+
{{else}}
|
|
33
|
+
First item
|
|
34
|
+
{{/if}}
|
|
35
|
+
</EuiListGroupItem>
|
|
36
|
+
<EuiListGroupItem>
|
|
37
|
+
Second item
|
|
38
|
+
</EuiListGroupItem>
|
|
39
|
+
<EuiListGroupItem>
|
|
40
|
+
Third item
|
|
41
|
+
</EuiListGroupItem>
|
|
42
|
+
<EuiListGroupItem>
|
|
43
|
+
Fourth item
|
|
44
|
+
</EuiListGroupItem>
|
|
45
|
+
</EuiListGroup>
|
|
46
|
+
</EuiFlexItem>
|
|
47
|
+
<EuiFlexItem>
|
|
48
|
+
<EuiFlexGroup>
|
|
49
|
+
<EuiFlexItem>
|
|
50
|
+
<EuiTitle @size='xs'>Group</EuiTitle>
|
|
51
|
+
<div>
|
|
52
|
+
<Input @type='checkbox' @checked={{this.bordered}} name='bordered' />
|
|
53
|
+
<label for='bordered'>Bordered</label>
|
|
54
|
+
</div>
|
|
55
|
+
<div>
|
|
56
|
+
<Input @type='checkbox' @checked={{this.flush}} name='flushed' />
|
|
57
|
+
<label for='flushed'>Flush</label>
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
</EuiFlexItem>
|
|
61
|
+
</EuiFlexGroup>
|
|
62
|
+
</EuiFlexItem>
|
|
63
|
+
</EuiFlexGroup>
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
```js component
|
|
67
|
+
import Component from '@glimmer/component';
|
|
68
|
+
import { tracked } from '@glimmer/tracking';
|
|
69
|
+
import { action } from '@ember/object';
|
|
70
|
+
|
|
71
|
+
export default class DemoListGroupComponent extends Component {
|
|
72
|
+
// Group config
|
|
73
|
+
@tracked bordered = false;
|
|
74
|
+
@tracked flush = false;
|
|
75
|
+
@tracked gutterSize = 's';
|
|
76
|
+
@tracked maxWidthType = 'bool';
|
|
77
|
+
@tracked maxWidth = false;
|
|
78
|
+
|
|
79
|
+
@action
|
|
80
|
+
parseToNum(event) {
|
|
81
|
+
this.maxWidth = Number(event.target.value);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@action
|
|
85
|
+
onClick(event) {
|
|
86
|
+
console.log('Item clicked');
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
//Item config
|
|
90
|
+
@tracked useHref = false;
|
|
91
|
+
@tracked useOnClick = false;
|
|
92
|
+
@tracked isActive = false;
|
|
93
|
+
@tracked isDisabled = false;
|
|
94
|
+
@tracked wrapText = false;
|
|
95
|
+
@tracked size = 'm';
|
|
96
|
+
@tracked color = 'inherit';
|
|
97
|
+
@tracked useIconType = false;
|
|
98
|
+
}
|
|
99
|
+
```
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
order: 2
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# List of links
|
|
6
|
+
|
|
7
|
+
<EuiText>
|
|
8
|
+
<p>Display <strong>EuiListGroupItems</strong> as links by providing an <EuiCode>href</EuiCode> value and change their state with the <EuiCode>isActive</EuiCode> and <EuiCode>isDisabled</EuiCode> properties.</p><p>As is done in this example, the <strong>EuiListGroup</strong> component can also accept an array of items via the <EuiCode>listItems</EuiCode> property.</p>
|
|
9
|
+
</EuiText>
|
|
10
|
+
|
|
11
|
+
```hbs template
|
|
12
|
+
<EuiListGroup>
|
|
13
|
+
<EuiListGroupItem @href='#/display/list-group' @iconType='calendar' @size='s'>
|
|
14
|
+
First link
|
|
15
|
+
</EuiListGroupItem>
|
|
16
|
+
<EuiListGroupItem
|
|
17
|
+
@href='#/display/list-group'
|
|
18
|
+
@iconType='clock'
|
|
19
|
+
@size='s'
|
|
20
|
+
@isActive='true'
|
|
21
|
+
>
|
|
22
|
+
This is an active link with very long label that truncates
|
|
23
|
+
</EuiListGroupItem>
|
|
24
|
+
<EuiListGroupItem
|
|
25
|
+
@href='#/display/list-group'
|
|
26
|
+
@iconType='compute'
|
|
27
|
+
@size='s'
|
|
28
|
+
@isDisabled='true'
|
|
29
|
+
>
|
|
30
|
+
Third link is disabled
|
|
31
|
+
</EuiListGroupItem>
|
|
32
|
+
<EuiListGroupItem
|
|
33
|
+
@href='#/display/list-group'
|
|
34
|
+
@iconType='copyClipboard'
|
|
35
|
+
@size='s'
|
|
36
|
+
>
|
|
37
|
+
Fourth link
|
|
38
|
+
</EuiListGroupItem>
|
|
39
|
+
<EuiListGroupItem
|
|
40
|
+
@href='#/display/list-group'
|
|
41
|
+
@iconType='crosshairs'
|
|
42
|
+
@size='s'
|
|
43
|
+
>
|
|
44
|
+
Fifth link
|
|
45
|
+
</EuiListGroupItem>
|
|
46
|
+
</EuiListGroup>
|
|
47
|
+
```
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
order: 3
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Text wrapping and tooltips
|
|
6
|
+
|
|
7
|
+
<EuiText>
|
|
8
|
+
<p>Optional props <EuiCode>showToolTip</EuiCode> and <EuiCode>wrapLines</EuiCode> can be used to augment the display of list items. Use these when lists are inside small containers where it is likely that the content will be truncated.</p>
|
|
9
|
+
</EuiText>
|
|
10
|
+
|
|
11
|
+
```hbs template
|
|
12
|
+
<EuiListGroup @showToolTips>
|
|
13
|
+
<EuiListGroupItem>
|
|
14
|
+
First item
|
|
15
|
+
</EuiListGroupItem>
|
|
16
|
+
|
|
17
|
+
<EuiListGroupItem>
|
|
18
|
+
Second item
|
|
19
|
+
</EuiListGroupItem>
|
|
20
|
+
|
|
21
|
+
<EuiListGroupItem>
|
|
22
|
+
<span>
|
|
23
|
+
Third very, very long item that
|
|
24
|
+
<strong>will surely</strong>
|
|
25
|
+
force truncation
|
|
26
|
+
</span>
|
|
27
|
+
</EuiListGroupItem>
|
|
28
|
+
<EuiListGroupItem @wrapText={{true}}>Fourth very, very long item with wrapping
|
|
29
|
+
enabled that will not force truncation</EuiListGroupItem>
|
|
30
|
+
</EuiListGroup>
|
|
31
|
+
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
order: 4
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# List item color and size
|
|
6
|
+
|
|
7
|
+
<EuiText>
|
|
8
|
+
<p><strong>EuiListGroupItems</strong> will inherit the color from their element type whether it is a <EuiCode>button</EuiCode>, <EuiCode>anchor</EuiCode>, or <EuiCode>span</EuiCode>. You can enforce a different color of <EuiCode>primary</EuiCode>, <EuiCode>text</EuiCode>, or <EuiCode>subdued</EuiCode> with the <EuiCode>color</EuiCode> prop. Or provide the prop directly to <strong>EuiListGroup</strong>.</p><p>They also accept options for text size; <EuiCode><span class="token string">'xs'</span> <span class="token operator">|</span> <span class="token string">'s'</span> <span class="token operator">|</span> <span class="token string">'m'</span> <span class="token operator">|</span> <span class="token string">'l'</span></EuiCode>.</p>
|
|
9
|
+
</EuiText>
|
|
10
|
+
|
|
11
|
+
```hbs template
|
|
12
|
+
<EuiListGroup>
|
|
13
|
+
<EuiListGroupItem @href='#' @label='Inherit by default (xs)' @size='xs' />
|
|
14
|
+
|
|
15
|
+
<EuiListGroupItem @label='Primary (s)' @color='primary' @size='s' />
|
|
16
|
+
|
|
17
|
+
<EuiListGroupItem @href='#' @label='Text (m)' @color='text' />
|
|
18
|
+
|
|
19
|
+
<EuiListGroupItem @href='#' @label='Subdued (l)' @color='subdued' @size='l' />
|
|
20
|
+
</EuiListGroup>
|
|
21
|
+
|
|
22
|
+
<EuiSpacer @size='s' />
|
|
23
|
+
|
|
24
|
+
<EuiListGroup {{style (inline-styles background='black')}}>
|
|
25
|
+
<EuiListGroupItem @href='#' @label='Ghost' @color='ghost' />
|
|
26
|
+
</EuiListGroup>
|
|
27
|
+
```
|
|
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
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Code
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<EuiSpacer/>
|
|
1
6
|
<EuiPageHeader @pageTitle="Code"/>
|
|
2
7
|
|
|
3
|
-
<EuiSpacer />
|
|
8
|
+
<EuiSpacer @size='l' />
|
|
9
|
+
|
|
4
10
|
<EuiCallOut>
|
|
5
11
|
<:body>
|
|
6
12
|
<strong>EuiCode</strong> and <strong>EuiCodeBlock</strong> are intended to render static lines or blocks of code in <strong>read-only</strong> contexts. If you need capabilities to edit, or want to print long code (e.g., printing JSON from an API), we recommend installing a version of Monaco. If you are building within the Kibana platform, you can use their CodeEditor.
|
|
7
13
|
</:body>
|
|
8
14
|
</EuiCallOut>
|
|
9
15
|
|
|
10
|
-
<EuiSpacer />
|
|
11
|
-
|
|
12
16
|
<EuiText>
|
|
13
17
|
<p>
|
|
14
18
|
The <strong>EuiCode</strong> and <strong>EuiCodeBlock</strong> components support <a href="https://prismjs.com/#supported-languages" target="_blank">all language syntaxes</a> supported by the <EuiCode>prism</EuiCode> <a href="https://prismjs.com" target="_blank">library</a>. The language prop can also be omitted to simply render formatted but unhighlighted code.
|
|
@@ -19,3 +23,4 @@
|
|
|
19
23
|
</EuiText>
|
|
20
24
|
|
|
21
25
|
<EuiHorizontalRule />
|
|
26
|
+
<EuiSpacer/>
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
order: 1
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# Demo
|
|
6
|
-
|
|
7
5
|
```hbs template
|
|
8
6
|
<EuiMarkdownEditor
|
|
9
7
|
@value={{this.value}}
|
|
@@ -19,7 +17,6 @@ import { action } from '@ember/object';
|
|
|
19
17
|
import { visit } from '@ember-eui/core/utils/markdown/plugins/markdown-add-components';
|
|
20
18
|
import { defaultProcessingPlugins } from '@ember-eui/core/utils/markdown/plugins/markdown-default-plugins';
|
|
21
19
|
|
|
22
|
-
|
|
23
20
|
/*
|
|
24
21
|
Quick example how you can extend plugins, this plugin adds _blank to `a` elements
|
|
25
22
|
*/
|
|
@@ -27,7 +24,7 @@ function TargetBlankProcessingPlugin() {
|
|
|
27
24
|
return (tree) => {
|
|
28
25
|
visit(tree, (node) => {
|
|
29
26
|
if (node.type === 'element' && node.tagName === 'a') {
|
|
30
|
-
|
|
27
|
+
node.properties.target = '_blank';
|
|
31
28
|
}
|
|
32
29
|
return node;
|
|
33
30
|
});
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
<
|
|
1
|
+
<EuiSpacer/>
|
|
2
|
+
<EuiPageHeader @pageTitle="Base editor"/>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|