@ember-eui/core 5.5.0 → 5.8.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 +3 -3
- package/addon/components/eui-card/index.ts +26 -0
- package/addon/components/eui-described-form-group/index.hbs +5 -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 +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/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,36 @@
|
|
|
1
|
+
{{#let (add @pageIndex 1) as |pageNumber|}}
|
|
2
|
+
<EuiI18n
|
|
3
|
+
@token="euiPaginationButton.longPageString"
|
|
4
|
+
@default="Page {page} of {totalPages}"
|
|
5
|
+
@values={{hash page=pageNumber totalPages=@totalPages}}
|
|
6
|
+
as |Token|
|
|
7
|
+
>
|
|
8
|
+
<Token as |longPageString|>
|
|
9
|
+
<EuiI18n
|
|
10
|
+
@token="euiPaginationButton.shortPageString"
|
|
11
|
+
@default="Page {page}"
|
|
12
|
+
values={{hash page=pageNumber}}
|
|
13
|
+
as |InnerToken|
|
|
14
|
+
>
|
|
15
|
+
<InnerToken as |shortPageString|>
|
|
16
|
+
<EuiButtonEmpty
|
|
17
|
+
class={{class-names
|
|
18
|
+
"euiPaginationButton"
|
|
19
|
+
(if @isActive "euiPaginationButton-isActive")
|
|
20
|
+
(if @isPlaceholder "euiPaginationButton-isPlaceholder")
|
|
21
|
+
(if @hideOnMobile "euiPaginationButton--hideOnMobile")
|
|
22
|
+
}}
|
|
23
|
+
aria-label={{if @totalPages longPageString shortPageString}}
|
|
24
|
+
@size="s"
|
|
25
|
+
@color="text"
|
|
26
|
+
@isDisabled={{or @isPlaceholder @isActive}}
|
|
27
|
+
aria-current={{if @isActive true}}
|
|
28
|
+
...attributes
|
|
29
|
+
>
|
|
30
|
+
{{pageNumber}}
|
|
31
|
+
</EuiButtonEmpty>
|
|
32
|
+
</InnerToken>
|
|
33
|
+
</EuiI18n>
|
|
34
|
+
</Token>
|
|
35
|
+
</EuiI18n>
|
|
36
|
+
{{/let}}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
// import moment from 'moment';
|
|
10
|
+
|
|
11
|
+
export const always = (_value?: any) => true;
|
|
12
|
+
|
|
13
|
+
export const never = (_value?: any) => false;
|
|
14
|
+
|
|
15
|
+
export const isUndefined = (value: any): value is undefined => {
|
|
16
|
+
return value === undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const isNull = (value: any): value is null => {
|
|
20
|
+
return value === null;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const isNil = (value: any): value is null | undefined => {
|
|
24
|
+
return isUndefined(value) || isNull(value);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
// export const isMoment = (value: any) => {
|
|
28
|
+
// return moment.isMoment(value);
|
|
29
|
+
// };
|
|
30
|
+
|
|
31
|
+
// export const isDate = (value: any): value is Date => {
|
|
32
|
+
// return moment.isDate(value);
|
|
33
|
+
// };
|
|
34
|
+
|
|
35
|
+
// export const isDateLike = (value: any): value is moment.Moment | Date => {
|
|
36
|
+
// return isDate(value);
|
|
37
|
+
// };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export * from './common_predicates';
|
|
10
|
+
export * from './lodash_predicates';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import _isFunction from 'lodash-es/isFunction';
|
|
10
|
+
import _isArray from 'lodash-es/isArray';
|
|
11
|
+
import _isString from 'lodash-es/isString';
|
|
12
|
+
import _isBoolean from 'lodash-es/isBoolean';
|
|
13
|
+
import _isNumber from 'lodash-es/isNumber';
|
|
14
|
+
import _isNaN from 'lodash-es/isNaN';
|
|
15
|
+
import _isObject from 'lodash-es/isObject';
|
|
16
|
+
|
|
17
|
+
// wrap the lodash functions to avoid having lodash's TS type definition from being
|
|
18
|
+
// exported, which can conflict with the lodash namespace if other versions are used
|
|
19
|
+
|
|
20
|
+
export const isFunction = (value: any): value is (...args: any[]) => any =>
|
|
21
|
+
_isFunction(value);
|
|
22
|
+
export const isArray = (value: any): value is any[] => _isArray(value);
|
|
23
|
+
export const isString = (value: any): value is string => _isString(value);
|
|
24
|
+
export const isBoolean = (value: any): value is boolean => _isBoolean(value);
|
|
25
|
+
export const isNumber = (value: any): value is number => _isNumber(value);
|
|
26
|
+
export const isNaN = (value: any) => _isNaN(value);
|
|
27
|
+
export const isObject = (value: any): value is object => _isObject(value);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-i18n';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-i18n/render';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-pagination/button-wrapper';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-pagination';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-pagination/next-button';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-pagination/previous-button';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@ember-eui/core/components/eui-pagination-button';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@ember-eui/core/i18n';
|
|
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: CallOut
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<EuiSpacer/>
|
|
1
6
|
<EuiPageHeader @pageTitle="Callout"/>
|
|
2
7
|
|
|
3
8
|
<EuiSpacer />
|
|
@@ -6,4 +11,4 @@
|
|
|
6
11
|
<strong>EuiCallOut</strong> contains a message directly related to content on the page. This includes general information, success, warning, and error messages.</p><p><strong>Keep these guidelines in mind:</strong></p><ul><li>Minimize the number of callouts per page.</li><li>Stack callouts in the order in which they require users' attention: error, warning, info, and then success.</li><li>Offer only one action per callout and ensure it's an action users can perform quickly.</li><li>If the callout has a permanent spot in the UI, but needs to be less obstructive, set the <EuiCode @language="text">size</EuiCode> property to <EuiCode @language=="text">s</EuiCode> (small).</li><li>Use an <EuiCode @language="text">icon</EuiCode> prop if it adds context.</li></ul>
|
|
7
12
|
</EuiText>
|
|
8
13
|
|
|
9
|
-
<EuiHorizontalRule />
|
|
14
|
+
<EuiHorizontalRule />
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
order: 1
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Basic Card
|
|
2
6
|
|
|
3
7
|
<EuiText>
|
|
4
8
|
<p>At its core an <strong>EuiCard</strong> should contain a <EuiCode @language="text">title</EuiCode>,<EuiCode @language="text">description</EuiCode>, and an <EuiCode @language="text">icon</EuiCode>. You can make the whole card clickable by giving it an <EuiCode @language="text">onClick</EuiCode> handler or <EuiCode @language="text">href</EuiCode>.</p>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
order: 9
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Custom children
|
|
2
6
|
|
|
3
7
|
<EuiText>
|
|
4
8
|
<p>In the event that you need <strong>more than</strong> just paragraph text for the <EuiCode>description</EuiCode>, you can suppliment with anything you need as the <EuiCode>children</EuiCode> of the component. You can also completely replace the description with custom children, but <strong>EuiCard</strong> at least one of these.</p>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Card
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<EuiSpacer/>
|
|
6
|
+
<EuiPageHeader @pageTitle="Card"/>
|
|
7
|
+
<EuiSpacer/>
|
|
8
|
+
<EuiText>
|
|
9
|
+
<p>
|
|
10
|
+
<strong>EuiCard</strong> is a content-oriented component built on top of EuiPanel. Be sure to check out the guidelines for properly nesting panels.
|
|
11
|
+
</p>
|
|
12
|
+
</EuiText>
|
|
13
|
+
|
|
14
|
+
<EuiHorizontalRule/>
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
<EuiText>
|
|
2
|
+
<p>
|
|
3
3
|
The Comment List serves merely as a wrapper for various comments.
|
|
4
4
|
It does contain the comments from trying to connect each other in case you had multiple
|
|
5
5
|
unrelated comment lists in the same page.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
The original component from the React.js framework receives a @comments object, and maps them into the EuiCommentList component. For Ember.js, just pass them as children.
|
|
8
|
+
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
</EuiText>
|
|
8
12
|
|
|
9
13
|
```hbs template
|
|
10
14
|
<EuiCommentList>
|
|
11
|
-
<EuiComment @type=
|
|
15
|
+
<EuiComment @type='regular'>
|
|
12
16
|
<:username>
|
|
13
17
|
kyloRen
|
|
14
18
|
</:username>
|
|
@@ -24,10 +28,10 @@ unrelated comment lists in the same page.
|
|
|
24
28
|
</EuiText>
|
|
25
29
|
</:body>
|
|
26
30
|
<:actions>
|
|
27
|
-
<EuiButtonIcon @iconType=
|
|
31
|
+
<EuiButtonIcon @iconType='wrench' />
|
|
28
32
|
</:actions>
|
|
29
33
|
</EuiComment>
|
|
30
|
-
<EuiComment @type=
|
|
34
|
+
<EuiComment @type='update'>
|
|
31
35
|
<:username>
|
|
32
36
|
lukeSW
|
|
33
37
|
</:username>
|
|
@@ -38,7 +42,7 @@ unrelated comment lists in the same page.
|
|
|
38
42
|
on 2015-02-05
|
|
39
43
|
</:timestamp>
|
|
40
44
|
</EuiComment>
|
|
41
|
-
<EuiComment @type=
|
|
45
|
+
<EuiComment @type='update'>
|
|
42
46
|
<:username>
|
|
43
47
|
r2d2
|
|
44
48
|
</:username>
|
|
@@ -48,8 +52,8 @@ unrelated comment lists in the same page.
|
|
|
48
52
|
<:body>
|
|
49
53
|
<EuiText>
|
|
50
54
|
<p>
|
|
51
|
-
He went into a sort of hibernation or low power mode,
|
|
52
|
-
|
|
55
|
+
He went into a sort of hibernation or low power mode, you know? Like
|
|
56
|
+
when you 'sleep' a computer.
|
|
53
57
|
</p>
|
|
54
58
|
</EuiText>
|
|
55
59
|
</:body>
|
|
@@ -57,11 +61,17 @@ unrelated comment lists in the same page.
|
|
|
57
61
|
on 2015-02-05
|
|
58
62
|
</:timestamp>
|
|
59
63
|
</EuiComment>
|
|
60
|
-
<EuiComment @timelineIcon=
|
|
64
|
+
<EuiComment @timelineIcon='listAdd' @type='update'>
|
|
61
65
|
<:username>
|
|
62
|
-
<EuiFlexGroup @responsive={{false}} @alignItems=
|
|
66
|
+
<EuiFlexGroup @responsive={{false}} @alignItems='center' @gutterSize='s'>
|
|
63
67
|
<EuiFlexItem @grow={{false}}>
|
|
64
|
-
<EuiAvatar
|
|
68
|
+
<EuiAvatar
|
|
69
|
+
@type='space'
|
|
70
|
+
@initials='FO'
|
|
71
|
+
@name='First Order'
|
|
72
|
+
@initialLength={{2}}
|
|
73
|
+
@size='s'
|
|
74
|
+
/>
|
|
65
75
|
</EuiFlexItem>
|
|
66
76
|
<EuiFlexItem @grow={{false}}>
|
|
67
77
|
firstOrder
|
|
@@ -69,12 +79,12 @@ unrelated comment lists in the same page.
|
|
|
69
79
|
</EuiFlexGroup>
|
|
70
80
|
</:username>
|
|
71
81
|
<:event>
|
|
72
|
-
<EuiFlexGroup @responsive={{false}} @alignItems=
|
|
82
|
+
<EuiFlexGroup @responsive={{false}} @alignItems='center' @gutterSize='s'>
|
|
73
83
|
<EuiFlexItem @grow={{false}}>
|
|
74
84
|
was created by
|
|
75
85
|
</EuiFlexItem>
|
|
76
86
|
<EuiFlexItem @grow={{false}}>
|
|
77
|
-
<EuiBadge @color=
|
|
87
|
+
<EuiBadge @color='accent'>snoke</EuiBadge>
|
|
78
88
|
</EuiFlexItem>
|
|
79
89
|
</EuiFlexGroup>
|
|
80
90
|
</:event>
|
|
@@ -82,13 +92,9 @@ unrelated comment lists in the same page.
|
|
|
82
92
|
on 2015-02-05
|
|
83
93
|
</:timestamp>
|
|
84
94
|
</EuiComment>
|
|
85
|
-
<EuiComment @type=
|
|
95
|
+
<EuiComment @type='regular'>
|
|
86
96
|
<:timelineIcon>
|
|
87
|
-
<EuiAvatar
|
|
88
|
-
@initials="RS"
|
|
89
|
-
@name="Rey Skywokah"
|
|
90
|
-
@type="user"
|
|
91
|
-
/>
|
|
97
|
+
<EuiAvatar @initials='RS' @name='Rey Skywokah' @type='user' />
|
|
92
98
|
</:timelineIcon>
|
|
93
99
|
<:username>
|
|
94
100
|
reySkywokah
|
|
@@ -104,11 +110,11 @@ unrelated comment lists in the same page.
|
|
|
104
110
|
</EuiText>
|
|
105
111
|
</:body>
|
|
106
112
|
<:actions>
|
|
107
|
-
<EuiButtonIcon @iconType=
|
|
113
|
+
<EuiButtonIcon @iconType='questionInCircle' />
|
|
108
114
|
</:actions>
|
|
109
115
|
<:timestamp>
|
|
110
116
|
on 2015-02-05
|
|
111
117
|
</:timestamp>
|
|
112
118
|
</EuiComment>
|
|
113
119
|
</EuiCommentList>
|
|
114
|
-
```
|
|
120
|
+
```
|
|
File without changes
|
package/docs/display/{description-list-demo/demo2.md → description-list/demo/d02-reverse-style.md}
RENAMED
|
File without changes
|
package/docs/display/{description-list-demo/demo3.md → description-list/demo/d03-as-columns.md}
RENAMED
|
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
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Empty Prompt
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<EuiSpacer/>
|
|
6
|
+
<EuiPageHeader @pageTitle="Empty prompt"/>
|
|
7
|
+
<EuiSpacer/>
|
|
8
|
+
<EuiText>
|
|
9
|
+
<p>
|
|
10
|
+
The <strong>EuiEmptyPrompt</strong> is the building block to create an empty state. You can use it as a placeholder for any type of empty content. They are especially helpful for replacing entire pages or parts of a product that contain no content.
|
|
11
|
+
</p>
|
|
12
|
+
</EuiText>
|
|
13
|
+
<EuiHorizontalRule />
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Health
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<EuiSpacer/>
|
|
6
|
+
<EuiPageHeader @pageTitle="Health"/>
|
|
7
|
+
|
|
8
|
+
<EuiHorizontalRule />
|
|
9
|
+
<EuiText>
|
|
10
|
+
<p>
|
|
11
|
+
<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>
|
|
12
|
+
</p>
|
|
13
|
+
</EuiText>
|
|
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,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 />
|