@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,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
order: 1
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Basic usage with many pages
|
|
6
|
+
|
|
7
|
+
<EuiText>
|
|
8
|
+
<p><strong>EuiPagination</strong> accepts a total <EuiCode>pageCount</EuiCode> and only shows up to 5 consecutive pages, with shortcuts to the first and/or last page. It also requires the parent component to maintain the current <EuiCode>activePage</EuiCode> and handle the <EuiCode>onPageClick</EuiCode>.</p>
|
|
9
|
+
</EuiText>
|
|
10
|
+
|
|
11
|
+
```hbs template
|
|
12
|
+
{{#let (use-state 0) as |activePage|}}
|
|
13
|
+
<EuiPagination
|
|
14
|
+
@compressed={{true}}
|
|
15
|
+
@aria-label='Many pages example'
|
|
16
|
+
@pageCount={{22}}
|
|
17
|
+
@activePage={{activePage.value}}
|
|
18
|
+
@onPageClick={{activePage.setState}}
|
|
19
|
+
/>
|
|
20
|
+
<EuiPagination
|
|
21
|
+
@aria-label='Many pages example'
|
|
22
|
+
@pageCount={{22}}
|
|
23
|
+
@activePage={{activePage.value}}
|
|
24
|
+
@onPageClick={{activePage.setState}}
|
|
25
|
+
/>
|
|
26
|
+
{{/let}}
|
|
27
|
+
```
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
# Demo
|
|
2
|
-
|
|
3
1
|
```hbs template
|
|
4
2
|
<EuiSideNav
|
|
5
3
|
@mobileTitle='Mobile Title'
|
|
@@ -7,7 +5,8 @@
|
|
|
7
5
|
@isOpenMobile={{true}}
|
|
8
6
|
@items={{this.sideNavItems}}
|
|
9
7
|
@selectedItem={{this.selectedItem}}
|
|
10
|
-
@truncate={{true}}
|
|
8
|
+
@truncate={{true}}
|
|
9
|
+
{{! you can also truncate per item }}
|
|
11
10
|
/>
|
|
12
11
|
|
|
13
12
|
<EuiSpacer />
|
|
@@ -15,10 +14,12 @@
|
|
|
15
14
|
@isOpenMobile={{true}}
|
|
16
15
|
@items={{this.sideNavItems}}
|
|
17
16
|
@selectedItem={{this.selectedItem}}
|
|
18
|
-
@truncate={{true}}
|
|
17
|
+
@truncate={{true}}
|
|
18
|
+
{{! you can also truncate per item }}
|
|
19
19
|
>
|
|
20
20
|
<:heading>
|
|
21
|
-
<EuiIcon @type=
|
|
21
|
+
<EuiIcon @type='faceHappy' />
|
|
22
|
+
Header!
|
|
22
23
|
</:heading>
|
|
23
24
|
</EuiSideNav>
|
|
24
25
|
```
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
<
|
|
1
|
+
<EuiSpacer/>
|
|
2
|
+
<EuiPageHeader @pageTitle="Side nav"/>
|
package/docs/navigation/steps.md
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
<
|
|
1
|
+
<EuiSpacer/>
|
|
2
|
+
<EuiPageHeader @pageTitle="Steps"/>
|
package/docs/navigation/tabs.md
CHANGED
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
title: Page template
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
+
<EuiSpacer/>
|
|
5
6
|
<EuiPageHeader @pageTitle="Page template"/>
|
|
6
|
-
|
|
7
|
+
<EuiSpacer />
|
|
7
8
|
<EuiText>
|
|
9
|
+
|
|
8
10
|
<p>
|
|
9
11
|
Page layouts are modular and fit together in a precise manner, though certain
|
|
10
12
|
parts can also be added or removed as needed. EUI provides both the indivdual
|
|
@@ -34,4 +36,4 @@ title: Page template
|
|
|
34
36
|
</EuiCallOut>
|
|
35
37
|
<EuiSpacer /> -->
|
|
36
38
|
|
|
37
|
-
<EuiHorizontalRule />
|
|
39
|
+
<EuiHorizontalRule />
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
order: 1
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# Auto sizer
|
|
6
|
-
|
|
7
5
|
<EuiText>
|
|
8
6
|
<p>
|
|
9
7
|
<strong>EuiAutoSizer</strong> helps components that use virtualized rendering and/or require explicit dimensions to fill all available space in the parent container. See the <EuiLink @href="https://github.com/bvaughn/react-virtualized/blob/master/docs/AutoSizer.md">react-virtualized</EuiLink> documentation as <strong>EuiAutoSizer</strong> is a port from component for <strong>AutoSizer</strong>.
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
<
|
|
1
|
+
<EuiSpacer/>
|
|
2
|
+
<EuiPageHeader @pageTitle="Auto sizer"/>
|
package/docs/utilities/copy.md
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
<
|
|
1
|
+
<EuiSpacer/>
|
|
2
|
+
<EuiPageHeader @pageTitle="Copy"/>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
order: 1
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<EuiText>
|
|
6
|
+
<p>
|
|
7
|
+
Render strings to components, you can provide a hash containing custom tokens via <EuiCode>{{"@i18n"}}</EuiCode> or override i18n/index.js in your host app to export a hash containg them
|
|
8
|
+
</p>
|
|
9
|
+
</EuiText>
|
|
10
|
+
|
|
11
|
+
```hbs template
|
|
12
|
+
<EuiI18n
|
|
13
|
+
@token='euiPagination.pageOfTotalCompressed'
|
|
14
|
+
@default='{page} of {total}'
|
|
15
|
+
@values={{hash page=(component 'eui-button') total=(component 'eui-button')}}
|
|
16
|
+
as |Token|
|
|
17
|
+
>
|
|
18
|
+
<Token as |value|>
|
|
19
|
+
{{value}}
|
|
20
|
+
</Token>
|
|
21
|
+
</EuiI18n>
|
|
22
|
+
<EuiI18n
|
|
23
|
+
@token='euiPagination.pageOfTotalCompressed'
|
|
24
|
+
@default='{page} other {total}'
|
|
25
|
+
@values={{hash page=10 total=2000}}
|
|
26
|
+
as |Token|
|
|
27
|
+
>
|
|
28
|
+
<Token as |value|>
|
|
29
|
+
{{value}}
|
|
30
|
+
</Token>
|
|
31
|
+
</EuiI18n>
|
|
32
|
+
```
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
# Demo
|
|
2
|
-
|
|
3
1
|
```hbs template
|
|
4
2
|
<div>
|
|
5
3
|
<p>
|
|
@@ -12,7 +10,11 @@
|
|
|
12
10
|
onMutation=this.onMutation
|
|
13
11
|
}}
|
|
14
12
|
>
|
|
15
|
-
<EuiButton
|
|
13
|
+
<EuiButton
|
|
14
|
+
@color={{this.buttonColor}}
|
|
15
|
+
@fill='{true}'
|
|
16
|
+
{{on 'click' this.toggleButtonColor}}
|
|
17
|
+
>
|
|
16
18
|
Toggle button color
|
|
17
19
|
</EuiButton>
|
|
18
20
|
<EuiSpacer />
|
|
@@ -26,8 +28,8 @@
|
|
|
26
28
|
</li>
|
|
27
29
|
{{/each}}
|
|
28
30
|
</ul>
|
|
29
|
-
<EuiSpacer size=
|
|
30
|
-
<EuiButtonEmpty {{on
|
|
31
|
+
<EuiSpacer size='s' />
|
|
32
|
+
<EuiButtonEmpty {{on 'click' this.addItem}}>
|
|
31
33
|
add item
|
|
32
34
|
</EuiButtonEmpty>
|
|
33
35
|
</EuiPanel>
|
|
@@ -60,7 +62,8 @@ export default class OutsideClickDetectorComponentDemo1 extends GlimmerComponent
|
|
|
60
62
|
|
|
61
63
|
@action
|
|
62
64
|
onMutation([{ type }]) {
|
|
63
|
-
this.lastMutation =
|
|
65
|
+
this.lastMutation =
|
|
66
|
+
type === 'attributes' ? 'button class name changed' : 'DOM tree changed';
|
|
64
67
|
}
|
|
65
68
|
}
|
|
66
69
|
```
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
<
|
|
1
|
+
<EuiSpacer/>
|
|
2
|
+
<EuiPageHeader @pageTitle="Mutation observer"/>
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
# Demo
|
|
2
|
-
|
|
3
1
|
```hbs template
|
|
4
2
|
<EuiButton
|
|
5
|
-
{{on
|
|
3
|
+
{{on 'click' (set this 'disabled' (not this.disabled))}}
|
|
6
4
|
{{outside-click-detector onOutsideClick=this.salute isDisabled=this.disabled}}
|
|
7
5
|
>
|
|
8
6
|
{{#if this.disabled}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
<
|
|
1
|
+
<EuiSpacer/>
|
|
2
|
+
<EuiPageHeader @pageTitle="Outside click detector"/>
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
# Demo
|
|
2
|
-
|
|
3
1
|
```hbs template
|
|
4
|
-
<EuiButtonEmpty {{on
|
|
5
|
-
|
|
2
|
+
<EuiButtonEmpty {{on 'click' this.toggle}} @color='primary'>
|
|
3
|
+
Click here to test Overlay
|
|
6
4
|
</EuiButtonEmpty>
|
|
7
5
|
{{#if this.showOverlay}}
|
|
8
|
-
<EuiOverlayMask @headerZindexLocation=
|
|
6
|
+
<EuiOverlayMask @headerZindexLocation='above' {{on 'click' this.toggle}}>
|
|
9
7
|
This is a plain overlay!!
|
|
10
8
|
</EuiOverlayMask>
|
|
11
9
|
{{/if}}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
<
|
|
1
|
+
<EuiSpacer/>
|
|
2
|
+
<EuiPageHeader @pageTitle="Overlay mask"/>
|
|
@@ -2,30 +2,31 @@
|
|
|
2
2
|
order: 2
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
# Demo
|
|
6
|
-
|
|
7
5
|
```hbs template
|
|
8
6
|
<EuiTitle>
|
|
9
|
-
Inserting portals
|
|
7
|
+
Inserting portals
|
|
10
8
|
</EuiTitle>
|
|
11
9
|
<EuiText>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
There is an optional insert prop that can specify the portal's location in the
|
|
11
|
+
DOM. When used, it is important to consider how the location relates to the
|
|
12
|
+
component lifecycle, as it could be removed from the DOM by another component
|
|
13
|
+
update. insert is an object with two key-value pairs: sibling and
|
|
14
|
+
position.sibling is the HTMLElement to insert the portal next to, and position
|
|
15
|
+
specifies the portal's relative position, either before or after.
|
|
15
16
|
</EuiText>
|
|
16
|
-
<EuiSpacer @size=
|
|
17
|
+
<EuiSpacer @size='l' />
|
|
17
18
|
<EuiButton
|
|
18
|
-
|
|
19
|
-
{{on
|
|
19
|
+
{{did-insert (set this 'buttonRef')}}
|
|
20
|
+
{{on 'click' (set this 'showPortal' (not this.showPortal))}}
|
|
20
21
|
>
|
|
21
|
-
|
|
22
|
+
Toggle portal
|
|
22
23
|
</EuiButton>
|
|
23
24
|
|
|
24
25
|
{{#if this.showPortal}}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
<EuiPortal @insert={{hash sibling=this.buttonRef position='after'}}>
|
|
27
|
+
<EuiSpacer />
|
|
28
|
+
<p>This element is appended immediately after the button.</p>
|
|
29
|
+
</EuiPortal>
|
|
29
30
|
{{/if}}
|
|
30
31
|
```
|
|
31
32
|
|
package/docs/utilities/portal.md
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
<
|
|
1
|
+
<EuiSpacer/>
|
|
2
|
+
<EuiPageHeader @pageTitle="Portal"/>
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
# Demo
|
|
2
|
-
|
|
3
1
|
```hbs template
|
|
4
2
|
<div>
|
|
5
3
|
<EuiText>
|
|
6
4
|
<p>
|
|
7
|
-
EuiResizeObserver is a wrapper around the Resizer Observer API which
|
|
5
|
+
EuiResizeObserver is a wrapper around the Resizer Observer API which
|
|
6
|
+
allows watching for changes to the content rectangle of DOM elements.
|
|
7
|
+
Unlike EuiMutationObserver, EuiResizeObserver does not take parameters,
|
|
8
|
+
but it does fire a more efficient and informative callback when resize
|
|
9
|
+
events occur.
|
|
8
10
|
</p>
|
|
9
11
|
<p>
|
|
10
|
-
Due to limited browser support (currently not in Safari and IE11), will
|
|
12
|
+
Due to limited browser support (currently not in Safari and IE11), will
|
|
13
|
+
fallback to using the MutationObserver API with a default set of
|
|
14
|
+
parameters that approximate the results of EuiMutationObserver.
|
|
11
15
|
</p>
|
|
12
16
|
</EuiText>
|
|
13
17
|
<EuiSpacer />
|
|
@@ -18,13 +22,16 @@
|
|
|
18
22
|
height:
|
|
19
23
|
{{this.dimensions.height}}
|
|
20
24
|
</EuiTitle>
|
|
21
|
-
<EuiButton {{on
|
|
25
|
+
<EuiButton {{on 'click' this.addItem}}>
|
|
22
26
|
add item
|
|
23
27
|
</EuiButton>
|
|
24
28
|
<EuiSpacer />
|
|
25
29
|
<EuiFlexGroup>
|
|
26
30
|
<EuiFlexItem @grow={{false}}>
|
|
27
|
-
<EuiPanel
|
|
31
|
+
<EuiPanel
|
|
32
|
+
@grow={{false}}
|
|
33
|
+
{{resize-observer onResize=(set this 'dimensions')}}
|
|
34
|
+
>
|
|
28
35
|
<ul>
|
|
29
36
|
{{#each this.items as |item|}}
|
|
30
37
|
<li>
|
|
@@ -32,19 +39,20 @@
|
|
|
32
39
|
</li>
|
|
33
40
|
{{/each}}
|
|
34
41
|
</ul>
|
|
35
|
-
<EuiSpacer size=
|
|
42
|
+
<EuiSpacer size='s' />
|
|
36
43
|
</EuiPanel>
|
|
37
44
|
</EuiFlexItem>
|
|
38
45
|
</EuiFlexGroup>
|
|
39
|
-
<EuiSpacer @size=
|
|
46
|
+
<EuiSpacer @size='l' />
|
|
40
47
|
<EuiText>
|
|
41
|
-
You can also indicate to only care about width or height, for example the
|
|
48
|
+
You can also indicate to only care about width or height, for example the
|
|
49
|
+
next panel only observers for height changes
|
|
42
50
|
</EuiText>
|
|
43
51
|
<EuiSpacer />
|
|
44
|
-
<EuiButton {{on
|
|
52
|
+
<EuiButton {{on 'click' this.increaseItemsWidth}}>
|
|
45
53
|
increaseWidth
|
|
46
54
|
</EuiButton>
|
|
47
|
-
<EuiButton {{on
|
|
55
|
+
<EuiButton {{on 'click' this.addItem}}>
|
|
48
56
|
add item
|
|
49
57
|
</EuiButton>
|
|
50
58
|
<EuiTitle>
|
|
@@ -56,7 +64,10 @@
|
|
|
56
64
|
<EuiSpacer />
|
|
57
65
|
<EuiFlexGroup>
|
|
58
66
|
<EuiFlexItem @grow={{false}}>
|
|
59
|
-
<EuiPanel
|
|
67
|
+
<EuiPanel
|
|
68
|
+
@grow={{false}}
|
|
69
|
+
{{resize-observer 'height' onResize=(set this 'dimensions2')}}
|
|
70
|
+
>
|
|
60
71
|
<ul>
|
|
61
72
|
{{#each this.items as |item|}}
|
|
62
73
|
<li>
|
|
@@ -64,7 +75,7 @@
|
|
|
64
75
|
</li>
|
|
65
76
|
{{/each}}
|
|
66
77
|
</ul>
|
|
67
|
-
<EuiSpacer size=
|
|
78
|
+
<EuiSpacer size='s' />
|
|
68
79
|
</EuiPanel>
|
|
69
80
|
</EuiFlexItem>
|
|
70
81
|
</EuiFlexGroup>
|
|
@@ -81,11 +92,11 @@ export default class OutsideClickDetectorComponentDemo1 extends GlimmerComponent
|
|
|
81
92
|
@tracked disabled = false;
|
|
82
93
|
@tracked dimensions = {
|
|
83
94
|
width: 0,
|
|
84
|
-
height: 0
|
|
95
|
+
height: 0
|
|
85
96
|
};
|
|
86
97
|
@tracked dimensions2 = {
|
|
87
98
|
width: 0,
|
|
88
|
-
height: 0
|
|
99
|
+
height: 0
|
|
89
100
|
};
|
|
90
101
|
@tracked items = ['item 1', 'item 2', 'item 3'];
|
|
91
102
|
@tracked items2 = ['item 1', 'item 2', 'item 3'];
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
<
|
|
1
|
+
<EuiSpacer/>
|
|
2
|
+
<EuiPageHeader @pageTitle="Resize observer"/>
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
<
|
|
1
|
+
<EuiSpacer/>
|
|
2
|
+
<EuiPageHeader @pageTitle="Responsive"/>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-eui/core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.8.1",
|
|
4
4
|
"description": "Ember Components for Elastic UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"ember-cli-htmlbars": "^6.0.1",
|
|
65
65
|
"ember-cli-typescript": "4.2.1",
|
|
66
66
|
"ember-composable-helpers": "^4.4.1",
|
|
67
|
-
"ember-element-helper": "^0.
|
|
67
|
+
"ember-element-helper": "^0.6.0",
|
|
68
68
|
"ember-event-helpers": "^0.1.1",
|
|
69
69
|
"ember-in-element-polyfill": "^1.0.0",
|
|
70
70
|
"ember-keyboard": "^7.0.1",
|
|
@@ -182,5 +182,5 @@
|
|
|
182
182
|
"volta": {
|
|
183
183
|
"extends": "../../package.json"
|
|
184
184
|
},
|
|
185
|
-
"gitHead": "
|
|
185
|
+
"gitHead": "e057d6d6b01d895b7e338923bc5d390b8654e4b4"
|
|
186
186
|
}
|
package/docs/display/health.md
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<EuiPageHeader @pageTitle="Health"/>
|
|
2
|
-
|
|
3
|
-
<EuiSpacer />
|
|
4
|
-
<EuiText>
|
|
5
|
-
<p>
|
|
6
|
-
<p>The <strong>EuiHealth</strong> component should be used when showing comparitive health of listed objects (like servers, HTTP response status codes(as per convenience), nodes, indexes..etc). Because icons are vague and bulky and color alone does not work, color plus text provides a recognizable, lightweight combo that works in most situations.</p>
|
|
7
|
-
</p>
|
|
8
|
-
</EuiText>
|
|
9
|
-
<EuiHorizontalRule />
|