@ember-eui/core 4.4.0 → 5.0.0-alpha.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/common.ts +1 -0
- package/addon/components/eui-accordion/index.hbs +106 -85
- package/addon/components/eui-accordion/index.ts +58 -19
- package/addon/components/eui-auto-sizer/index.hbs +3 -0
- package/addon/components/eui-auto-sizer/index.ts +175 -0
- package/addon/components/eui-avatar/index.hbs +7 -3
- package/addon/components/eui-badge/index.hbs +9 -3
- package/addon/components/eui-beta-badge/index.hbs +171 -19
- package/addon/components/eui-bottom-bar/index.hbs +43 -12
- package/addon/components/eui-bottom-bar/index.ts +75 -32
- package/addon/components/eui-breadcrumbs/index.hbs +98 -0
- package/addon/components/eui-breadcrumbs/index.ts +194 -0
- package/addon/components/eui-button/index.hbs +4 -4
- package/addon/components/eui-button-content/index.hbs +6 -2
- package/addon/components/eui-button-empty/index.hbs +60 -52
- package/addon/components/eui-button-icon/index.hbs +17 -3
- package/addon/components/eui-call-out/index.hbs +1 -0
- package/addon/components/eui-card/index.hbs +61 -47
- package/addon/components/eui-card/index.ts +27 -0
- package/addon/components/{eui-card/eui-card-select → eui-card-select}/index.hbs +2 -5
- package/addon/components/eui-card-select/index.ts +35 -0
- package/addon/components/eui-checkable-card/index.hbs +17 -11
- package/addon/components/eui-checkbox/index.hbs +11 -5
- package/addon/components/eui-checkbox/index.ts +15 -0
- package/addon/components/eui-code/index.hbs +14 -8
- package/addon/components/eui-code/index.ts +73 -0
- package/addon/components/eui-code-block/controls/index.hbs +26 -0
- package/addon/components/eui-code-block/full-screen-display/index.hbs +12 -0
- package/addon/components/eui-code-block/index.hbs +144 -9
- package/addon/components/eui-code-block/index.ts +290 -0
- package/addon/components/eui-code-block/virtualized/index.hbs +30 -0
- package/addon/components/eui-code-block/virtualized/index.ts +22 -0
- package/addon/components/eui-collapsible-nav/index.hbs +35 -44
- package/addon/components/eui-collapsible-nav/index.ts +161 -0
- package/addon/components/eui-collapsible-nav-group/index.hbs +114 -66
- package/addon/components/eui-combo-box/group/index.hbs +3 -3
- package/addon/components/eui-combo-box/index.hbs +5 -2
- package/addon/components/eui-combo-box/index.ts +89 -4
- package/addon/components/eui-combo-box/options/index.hbs +14 -2
- package/addon/components/eui-combo-box/options/index.js +22 -9
- package/addon/components/eui-combo-box/trigger/index.hbs +3 -1
- package/addon/components/eui-confirm-modal/index.hbs +1 -1
- package/addon/components/eui-copy/index.hbs +1 -4
- package/addon/components/eui-described-form-group/index.hbs +3 -2
- package/addon/components/eui-description-list/index.hbs +23 -0
- package/addon/components/eui-description-list-description/index.hbs +3 -0
- package/addon/components/eui-description-list-title/index.hbs +3 -0
- package/addon/components/eui-dual-range/index.hbs +30 -18
- package/addon/components/eui-dual-range/index.ts +36 -10
- package/addon/components/eui-empty-prompt/index.hbs +77 -0
- package/addon/components/eui-field-number/index.hbs +3 -3
- package/addon/components/eui-field-search/index.hbs +2 -1
- package/addon/components/eui-field-text/index.hbs +3 -1
- package/addon/components/eui-file-picker/index.hbs +15 -11
- package/addon/components/eui-file-picker/index.ts +26 -8
- package/addon/components/eui-flyout/index.hbs +130 -43
- package/addon/components/eui-flyout/index.ts +233 -0
- package/addon/components/eui-flyout-body/index.hbs +21 -7
- package/addon/components/eui-form-label/index.hbs +1 -1
- package/addon/components/eui-form-row/index.hbs +13 -9
- package/addon/components/eui-header/index.hbs +18 -3
- package/addon/{modifiers/fixed-header.ts → components/eui-header/index.ts} +10 -1
- package/addon/components/eui-header-alert/index.hbs +25 -0
- package/addon/components/eui-header-breadcrumbs/index.hbs +7 -0
- package/addon/components/eui-header-links/index.hbs +41 -0
- package/addon/components/eui-header-links/index.ts +14 -0
- package/addon/components/eui-header-section-item-button/index.hbs +30 -12
- package/addon/components/eui-header-section-item-button/index.ts +131 -0
- package/addon/components/eui-health/index.hbs +15 -13
- package/addon/components/eui-hide-for/index.hbs +3 -0
- package/addon/components/eui-hide-for/index.ts +33 -0
- package/addon/components/eui-icon/index.hbs +6 -3
- package/addon/components/eui-icon/index.ts +4 -0
- package/addon/components/eui-image/index.hbs +63 -25
- package/addon/components/eui-input-popover/index.ts +6 -4
- package/addon/components/eui-key-pad-menu/index.hbs +16 -0
- package/addon/components/eui-key-pad-menu/key/index.hbs +1 -0
- package/addon/components/eui-key-pad-menu-item/index.hbs +66 -0
- package/addon/components/eui-key-pad-menu-item/index.ts +11 -0
- package/addon/components/eui-link/index.hbs +50 -0
- package/addon/components/eui-list-group-item/index.hbs +10 -2
- package/addon/components/eui-markdown-editor/index.hbs +4 -1
- package/addon/components/eui-markdown-editor/index.ts +54 -0
- package/addon/components/eui-markdown-editor-footer/index.hbs +39 -40
- package/addon/components/eui-markdown-format/index.ts +1 -1
- package/addon/components/eui-markdown-format/markdown-code/index.hbs +2 -2
- package/addon/components/eui-markdown-format/markdown-code-block/index.hbs +1 -0
- package/addon/components/eui-modal/index.hbs +28 -24
- package/addon/components/eui-overlay-mask/index.hbs +4 -4
- package/addon/components/eui-overlay-mask/index.ts +14 -1
- package/addon/components/eui-page/index.hbs +3 -6
- package/addon/components/eui-page-body/index.hbs +47 -15
- package/addon/components/eui-page-content/index.hbs +6 -8
- package/addon/components/eui-page-content-body/index.hbs +13 -1
- package/addon/components/eui-page-content-header/index.hbs +6 -0
- package/addon/components/eui-page-header/index.hbs +31 -6
- package/addon/components/eui-page-header-content/index.hbs +219 -0
- package/addon/components/eui-page-header-content/index.ts +49 -0
- package/addon/components/eui-page-side-bar/index.hbs +8 -1
- package/addon/components/eui-page-template/index.hbs +417 -0
- package/addon/components/eui-page-template/index.ts +89 -0
- package/addon/components/eui-panel/index.hbs +58 -12
- package/addon/components/eui-popover/index.hbs +8 -4
- package/addon/components/eui-popover/index.ts +28 -12
- package/addon/components/eui-progress/index.hbs +16 -13
- package/addon/components/eui-radio/index.hbs +9 -3
- package/addon/components/eui-range/index.hbs +33 -11
- package/addon/components/eui-range/index.ts +7 -4
- package/addon/components/eui-range-input/index.hbs +37 -31
- package/addon/components/eui-range-input/types.ts +2 -1
- package/addon/components/eui-range-levels/index.hbs +3 -3
- package/addon/components/eui-range-ticks/index.hbs +2 -2
- package/addon/components/eui-range-track/index.hbs +10 -2
- package/addon/components/eui-range-track/index.ts +23 -6
- package/addon/components/eui-show-for/index.hbs +3 -0
- package/addon/components/eui-show-for/index.ts +79 -0
- package/addon/components/eui-side-nav/index.hbs +161 -36
- package/addon/components/eui-side-nav/index.ts +28 -0
- package/addon/components/eui-side-nav-item/button/index.hbs +26 -14
- package/addon/components/eui-side-nav-item/index.hbs +52 -25
- package/addon/components/eui-split-panel/inner/index.hbs +10 -0
- package/addon/components/eui-split-panel/outer/index.hbs +27 -0
- package/addon/components/eui-split-panel/outer/index.ts +37 -0
- package/addon/components/eui-step/eui-step-number/index.hbs +21 -4
- package/addon/components/eui-steps/index.hbs +7 -1
- package/addon/components/eui-tab/index.hbs +28 -3
- package/addon/{modifiers/focus-tab.ts → components/eui-tab/index.ts} +6 -1
- package/addon/components/eui-tabs/index.hbs +6 -1
- package/addon/components/eui-tool-tip/index.hbs +6 -7
- package/addon/components/eui-tool-tip/index.ts +27 -11
- package/addon/helpers/class-names.ts +2 -0
- package/addon/helpers/get-range-tick.ts +53 -8
- package/addon/helpers/unique-id.ts +4 -1
- package/addon/styles/ember-eui.css +2 -10
- package/addon/utils/breakpoint.ts +114 -0
- package/addon/utils/code/utils.ts +304 -0
- package/addon/utils/css-mappings/eui-avatar.ts +51 -9
- package/addon/utils/css-mappings/eui-badge.ts +6 -2
- package/addon/utils/css-mappings/eui-beta-badge.ts +22 -0
- package/addon/utils/css-mappings/eui-bottom-bar.ts +8 -1
- package/addon/utils/css-mappings/eui-button-empty.ts +4 -4
- package/addon/utils/css-mappings/eui-button-icon.ts +19 -6
- package/addon/utils/css-mappings/eui-button.ts +2 -1
- package/addon/utils/css-mappings/eui-card-select.ts +1 -11
- package/addon/utils/css-mappings/eui-card.ts +1 -18
- package/addon/utils/css-mappings/{eui-code-block-impl.ts → eui-code-block.ts} +0 -0
- package/addon/utils/css-mappings/eui-description-list.ts +29 -0
- package/addon/utils/css-mappings/eui-empty-prompt.ts +17 -0
- package/addon/utils/css-mappings/eui-flyout.ts +21 -1
- package/addon/utils/css-mappings/eui-header-links.ts +27 -0
- package/addon/utils/css-mappings/eui-health.ts +20 -0
- package/addon/utils/css-mappings/eui-icon.ts +94 -70
- package/addon/utils/css-mappings/eui-image.ts +17 -2
- package/addon/utils/css-mappings/eui-link.ts +21 -0
- package/addon/utils/css-mappings/eui-page-body.ts +25 -0
- package/addon/utils/css-mappings/eui-page-content-body.ts +17 -0
- package/addon/utils/css-mappings/eui-page-content.ts +7 -1
- package/addon/utils/css-mappings/eui-page-header.ts +17 -0
- package/addon/utils/css-mappings/eui-page-side-bar.ts +17 -0
- package/addon/utils/css-mappings/eui-panel.ts +1 -0
- package/addon/utils/css-mappings/eui-progress-data.ts +0 -1
- package/addon/utils/css-mappings/eui-progress.ts +0 -2
- package/addon/utils/css-mappings/eui-range-levels.ts +22 -4
- package/addon/utils/css-mappings/eui-tabs.ts +3 -1
- package/addon/utils/css-mappings/eui-text-color.ts +3 -2
- package/addon/utils/css-mappings/index.ts +23 -3
- package/addon/utils/detect-element-resize.js +248 -0
- package/addon/utils/markdown/plugins/markdown-add-components/index.ts +1 -0
- package/addon/utils/markdown/plugins/{markdown-add-components.ts → markdown-add-components/processor.ts} +14 -7
- package/addon/utils/markdown/plugins/markdown-checkbox/index.ts +9 -0
- package/addon/utils/markdown/plugins/{markdown-checkbox.ts → markdown-checkbox/parser.ts} +3 -5
- package/addon/utils/markdown/plugins/markdown-default-plugins/index.ts +12 -0
- package/addon/utils/markdown/plugins/{markdown-default-plugins.ts → markdown-default-plugins/parsing-plugins.ts} +13 -25
- package/addon/utils/markdown/plugins/markdown-default-plugins/plugins.ts +32 -0
- package/addon/utils/markdown/plugins/markdown-default-plugins/processing-plugins.ts +67 -0
- package/addon/utils/markdown/plugins/markdown-default-plugins/ui-plugins.ts +27 -0
- package/addon/utils/markdown/plugins/markdown-tooltip/index.ts +2 -0
- package/addon/utils/markdown/plugins/{markdown-tooltip.ts → markdown-tooltip/parser.ts} +3 -23
- package/addon/utils/markdown/plugins/markdown-tooltip/plugin.ts +17 -0
- package/addon/utils/markdown/plugins/to-dom.ts +3 -1
- package/addon/utils/markdown/remark/remark-prismjs.ts +41 -0
- package/addon/utils/popover/index.ts +87 -35
- package/addon/utils/range/index.ts +1 -0
- package/app/components/eui-auto-sizer/index.js +1 -0
- package/app/components/eui-breadcrumbs/index.js +1 -0
- package/app/components/eui-card-select/index.js +1 -0
- package/app/components/{eui-code-block-impl → eui-code-block/controls}/index.js +1 -1
- package/app/components/{eui-code-block-impl/code-block-controls → eui-code-block/full-screen-display}/index.js +1 -1
- package/app/components/eui-code-block/virtualized/index.js +1 -0
- package/app/components/eui-description-list/index.js +1 -0
- package/app/components/eui-description-list-description/index.js +1 -0
- package/app/components/eui-description-list-title/index.js +1 -0
- package/app/components/eui-empty-prompt/index.js +1 -0
- package/app/components/eui-header-alert/index.js +1 -0
- package/app/components/eui-header-breadcrumbs/index.js +1 -0
- package/app/components/eui-header-links/index.js +1 -0
- package/app/components/eui-hide-for/index.js +1 -0
- package/app/components/eui-key-pad-menu/index.js +1 -0
- package/app/components/eui-key-pad-menu/key/index.js +1 -0
- package/app/components/eui-key-pad-menu-item/index.js +1 -0
- package/app/components/eui-link/index.js +1 -0
- package/app/components/eui-page-header-content/index.js +1 -0
- package/app/components/eui-page-template/index.js +1 -0
- package/app/components/eui-show-for/index.js +1 -0
- package/app/components/eui-split-panel/inner/index.js +1 -0
- package/app/components/eui-split-panel/outer/index.js +1 -0
- package/app/utils/copy-to-clipboard.js +1 -0
- package/docs/display/avatar-demo/demo1.md +43 -49
- package/docs/display/avatar-demo/demo2.md +42 -0
- package/docs/display/avatar-demo/demo3.md +33 -0
- package/docs/display/avatar-demo/demo4.md +53 -0
- package/docs/display/avatar-demo/demo5.md +38 -0
- package/docs/display/avatar.md +9 -1
- package/docs/display/badge-demo/demo1.md +111 -168
- package/docs/display/badge-demo/demo2.md +34 -0
- package/docs/display/badge-demo/demo3.md +73 -0
- package/docs/display/badge-demo/demo4.md +29 -0
- package/docs/display/badge-demo/demo5.md +33 -0
- package/docs/display/badge-demo/demo6.md +71 -0
- package/docs/display/badge-demo/demo7.md +101 -0
- package/docs/display/badge-demo/demo8.md +22 -0
- package/docs/display/badge.md +9 -1
- package/docs/display/callout-demo/demo1.md +29 -81
- package/docs/display/callout-demo/demo2.md +28 -0
- package/docs/display/callout-demo/demo3.md +29 -0
- package/docs/display/callout-demo/demo4.md +26 -0
- package/docs/display/callout.md +15 -1
- package/docs/display/card/basic-card-demo/demo1.md +22 -316
- package/docs/display/card/basic-card.md +9 -1
- package/docs/display/card/beta-badge-demo/demo1.md +47 -0
- package/docs/display/card/beta-badge.md +9 -0
- package/docs/display/card/checkable-demo/demo1.md +20 -94
- package/docs/display/card/checkable-demo/demo2.md +63 -0
- package/docs/display/card/checkable.md +9 -1
- package/docs/display/card/custom-children-demo/demo1.md +93 -0
- package/docs/display/card/custom-children.md +9 -0
- package/docs/display/card/footer-demo/demo1.md +77 -0
- package/docs/display/card/footer.md +9 -0
- package/docs/display/card/images-demo/demo1.md +57 -0
- package/docs/display/card/images.md +9 -0
- package/docs/display/card/layout-demo/demo1.md +40 -0
- package/docs/display/card/layout.md +9 -0
- package/docs/display/card/selectable-demo/demo1.md +60 -53
- package/docs/display/card/selectable.md +9 -1
- package/docs/display/comment-list.md +9 -1
- package/docs/display/description-list-demo/demo1.md +54 -0
- package/docs/display/description-list-demo/demo2.md +43 -0
- package/docs/display/description-list-demo/demo3.md +58 -0
- package/docs/display/description-list-demo/demo4.md +42 -0
- package/docs/display/description-list-demo/demo5.md +62 -0
- package/docs/display/description-list-demo/demo6.md +46 -0
- package/docs/display/description-list.md +9 -0
- package/docs/display/empty-prompt-demo/demo1.md +49 -0
- package/docs/display/empty-prompt.md +11 -0
- package/docs/display/health-demo/demo1.md +11 -7
- package/docs/display/health-demo/demo2.md +31 -0
- package/docs/display/health.md +15 -1
- package/docs/display/icons-demo/demo1.md +270 -57
- package/docs/display/icons-demo/demo2.md +76 -0
- package/docs/display/icons-demo/demo3.md +76 -0
- package/docs/display/icons-demo/demo4.md +104 -0
- package/docs/display/icons-demo/demo5.md +64 -0
- package/docs/display/icons-demo/demo6.md +63 -0
- package/docs/display/icons-demo/demo7.md +101 -0
- package/docs/display/icons-demo/demo8.md +47 -0
- package/docs/display/icons.md +9 -1
- package/docs/display/image-demo/demo1.md +15 -50
- package/docs/display/image-demo/demo2.md +35 -0
- package/docs/display/image-demo/demo3.md +75 -0
- package/docs/display/image-demo/demo4.md +80 -0
- package/docs/display/image.md +13 -1
- package/docs/display/list-group.md +9 -1
- package/docs/display/progress-demo/demo1.md +10 -5
- package/docs/display/progress-demo/demo2.md +11 -26
- package/docs/display/progress-demo/demo3.md +27 -0
- package/docs/display/progress-demo/demo4.md +77 -0
- package/docs/display/progress.md +9 -1
- package/docs/display/stat-demo/demo1.md +0 -118
- package/docs/display/stat-demo/demo2.md +24 -22
- package/docs/display/stat-demo/demo3.md +39 -0
- package/docs/display/stat-demo/demo4.md +50 -0
- package/docs/display/stat-demo/demo5.md +25 -0
- package/docs/display/stat-demo/demo6.md +40 -0
- package/docs/display/stat-demo/demo7.md +84 -0
- package/docs/display/stat.md +15 -1
- package/docs/display/text-demo/demo1.md +79 -130
- package/docs/display/text-demo/demo2.md +71 -0
- package/docs/display/text-demo/demo3.md +39 -0
- package/docs/display/text.md +20 -1
- package/docs/display/title-demo/demo1.md +50 -26
- package/docs/display/title.md +9 -1
- package/docs/display/tool-tip-demo/demo1.md +57 -100
- package/docs/display/tool-tip-demo/demo2.md +35 -29
- package/docs/display/tool-tip-demo/demo3.md +52 -0
- package/docs/display/tool-tip-demo/demo4.md +77 -0
- package/docs/display/tool-tip.md +15 -1
- package/docs/editors/code/code-block-demo/demo1.md +21 -40
- package/docs/editors/code/code-block-demo/demo2.md +35 -0
- package/docs/editors/code/code-block-demo/demo3.md +43 -0
- package/docs/editors/code/code-block-demo/demo4.md +28 -0
- package/docs/editors/code/code-block-demo/demo5.md +42 -0
- package/docs/editors/code/code-block-demo/demo6.md +42 -0
- package/docs/editors/code/code-block-demo/demo7.md +853 -0
- package/docs/editors/code/code-block-demo/demo8.md +855 -0
- package/docs/editors/code/code-block.md +27 -1
- package/docs/editors/code/inline-demo/demo1.md +6 -3
- package/docs/editors/code/inline.md +9 -1
- package/docs/editors/markdown-editor/base-editor-demo/demo1.md +9 -28
- package/docs/editors/markdown-editor/base-editor.md +9 -1
- package/docs/forms/form-controls/checkbox/demo/demo1.md +49 -0
- package/docs/forms/form-controls/checkbox/index.md +34 -0
- package/docs/forms/form-controls/{checkbox-group-demo → checkbox-group/demo}/demo1.md +4 -13
- package/docs/forms/form-controls/checkbox-group/index.md +35 -0
- package/docs/forms/form-controls/{combo-box-demo → combo-box/demo}/demo1.md +8 -2
- package/docs/forms/form-controls/{combo-box-demo → combo-box/demo}/demo2.md +10 -8
- package/docs/forms/form-controls/combo-box/demo/demo3.md +60 -0
- package/docs/forms/form-controls/{combo-box-demo/demo3.md → combo-box/demo/demo4.md} +17 -14
- package/docs/forms/form-controls/combo-box/demo/demo5.md +151 -0
- package/docs/forms/form-controls/combo-box/index.md +14 -0
- package/docs/forms/form-controls/file-picker/demo/demo1.md +29 -0
- package/docs/forms/form-controls/file-picker/demo/demo2.md +44 -0
- package/docs/forms/form-controls/file-picker/demo/demo3.md +45 -0
- package/docs/forms/form-controls/file-picker/demo/demo4.md +63 -0
- package/docs/forms/form-controls/file-picker/index.md +30 -0
- package/docs/forms/form-controls/{form-control-layout-demo → form-control-layout/demo}/demo1.md +0 -0
- package/docs/forms/form-controls/form-control-layout/index.md +38 -0
- package/docs/forms/form-controls/{form-control-layout-delimited-demo → form-control-layout-delimited/demo}/demo1.md +41 -37
- package/docs/forms/form-controls/form-control-layout-delimited/index.md +32 -0
- package/docs/forms/form-controls/number-field/demo/demo1.md +20 -0
- package/docs/forms/form-controls/{number-field-demo/demo1.md → number-field/demo/demo2.md} +23 -11
- package/docs/forms/form-controls/number-field/index.md +20 -0
- package/docs/forms/form-controls/password-field/demo/demo1.md +19 -0
- package/docs/forms/form-controls/{password-field-demo/demo1.md → password-field/demo/demo2.md} +12 -8
- package/docs/forms/form-controls/password-field/index.md +27 -0
- package/docs/forms/form-controls/radio/demo/demo1.md +43 -0
- package/docs/forms/form-controls/radio/index.md +32 -0
- package/docs/forms/form-controls/radio-group/demo/demo1.md +50 -0
- package/docs/forms/form-controls/radio-group/index.md +26 -0
- package/docs/forms/form-controls/range/demo/demo1.md +96 -0
- package/docs/forms/form-controls/range/demo/demo2.md +62 -0
- package/docs/forms/form-controls/{range-demo → range/demo}/demo3.md +10 -12
- package/docs/forms/form-controls/{range-demo → range/demo}/demo4.md +16 -18
- package/docs/forms/form-controls/{range-demo → range/demo}/demo5.md +18 -20
- package/docs/forms/form-controls/range/demo/demo6.md +57 -0
- package/docs/forms/form-controls/range/demo/demo7.md +350 -0
- package/docs/forms/form-controls/range/index.md +26 -0
- package/docs/forms/form-controls/search-field/demo/demo1.md +29 -0
- package/docs/forms/form-controls/search-field/index.md +22 -0
- package/docs/forms/form-controls/select/demo/demo1.md +29 -0
- package/docs/forms/form-controls/select/demo/demo2.md +44 -0
- package/docs/forms/form-controls/{select-demo/demo1.md → select/demo/demo3.md} +20 -10
- package/docs/forms/form-controls/select/index.md +27 -0
- package/docs/forms/form-controls/{switch-demo → switch/demo}/demo1.md +10 -10
- package/docs/forms/form-controls/switch/index.md +21 -0
- package/docs/forms/form-controls/text-field/demo/demo1.md +35 -0
- package/docs/forms/form-controls/text-field/demo/demo2.md +40 -0
- package/docs/forms/form-controls/{text-field-demo/demo2.md → text-field/demo/demo3.md} +14 -17
- package/docs/forms/form-controls/{text-field-demo/demo1.md → text-field/demo/demo4.md} +18 -32
- package/docs/forms/form-controls/text-field/index.md +22 -0
- package/docs/forms/form-controls/textarea/demo/demo1.md +21 -0
- package/docs/forms/form-controls/textarea/demo/demo2.md +24 -0
- package/docs/forms/form-controls/textarea/index.md +22 -0
- package/docs/forms/form-layouts/described-form-groups-demo/demo1.md +13 -4
- package/docs/forms/form-layouts/described-form-groups.md +9 -1
- package/docs/layout/accordion-demo/demo1.md +21 -102
- package/docs/layout/accordion-demo/demo2.md +76 -0
- package/docs/layout/accordion-demo/demo3.md +25 -0
- package/docs/layout/accordion-demo/demo4.md +26 -0
- package/docs/layout/accordion-demo/demo5.md +65 -0
- package/docs/layout/accordion-demo/demo6.md +78 -0
- package/docs/layout/accordion-demo/demo7.md +66 -0
- package/docs/layout/accordion-demo/demo8.md +64 -0
- package/docs/layout/accordion-demo/demo9.md +114 -0
- package/docs/layout/accordion.md +40 -1
- package/docs/layout/bottom-bar-demo/demo1.md +32 -49
- package/docs/layout/bottom-bar-demo/demo2.md +54 -0
- package/docs/layout/bottom-bar-demo/demo3.md +81 -0
- package/docs/layout/bottom-bar.md +9 -1
- package/docs/layout/flex.md +9 -1
- package/docs/layout/flyout-demo/demo1.md +19 -11
- package/docs/layout/flyout-demo/demo2.md +43 -28
- package/docs/layout/flyout-demo/demo3.md +99 -0
- package/docs/layout/flyout-demo/demo4.md +115 -0
- package/docs/layout/flyout-demo/demo5.md +59 -0
- package/docs/layout/flyout-demo/demo6.md +57 -0
- package/docs/layout/flyout-demo/demo7.md +51 -0
- package/docs/layout/flyout.md +9 -1
- package/docs/layout/header-demo/demo1.md +284 -35
- package/docs/layout/header-demo/demo2.md +42 -0
- package/docs/layout/header-demo/demo3.md +48 -0
- package/docs/layout/header-demo/demo4.md +57 -0
- package/docs/layout/header-demo/demo5.md +232 -0
- package/docs/layout/header-demo/demo6.md +85 -0
- package/docs/layout/header-demo/demo7.md +94 -0
- package/docs/layout/header.md +9 -1
- package/docs/layout/horizontal-rule.md +9 -1
- package/docs/layout/modal-demo/demo1.md +64 -167
- package/docs/layout/modal-demo/demo2.md +126 -0
- package/docs/layout/modal-demo/demo3.md +55 -0
- package/docs/layout/modal-demo/demo4.md +65 -0
- package/docs/layout/modal-demo/demo5.md +96 -0
- package/docs/layout/modal.md +9 -1
- package/docs/layout/page-demo/demo1.md +96 -3
- package/docs/layout/page-demo/demo10.md +42 -0
- package/docs/layout/page-demo/demo2.md +46 -0
- package/docs/layout/page-demo/demo3.md +50 -0
- package/docs/layout/page-demo/demo4.md +38 -0
- package/docs/layout/page-demo/demo5.md +30 -0
- package/docs/layout/page-demo/demo6.md +51 -0
- package/docs/layout/page-demo/demo7.md +59 -0
- package/docs/layout/page-demo/demo8.md +19 -0
- package/docs/layout/page-demo/demo9.md +29 -0
- package/docs/layout/page.md +9 -1
- package/docs/layout/panel-demo/demo1.md +28 -19
- package/docs/layout/panel-demo/demo2.md +22 -0
- package/docs/layout/panel-demo/demo3.md +27 -0
- package/docs/layout/panel-demo/demo4.md +46 -0
- package/docs/layout/panel-demo/demo5.md +81 -0
- package/docs/layout/panel.md +15 -1
- package/docs/layout/popover-demo/demo1.md +42 -300
- package/docs/layout/popover-demo/demo10.md +72 -0
- package/docs/layout/popover-demo/demo2.md +306 -96
- package/docs/layout/popover-demo/demo3.md +20 -12
- package/docs/layout/popover-demo/demo4.md +118 -0
- package/docs/layout/popover-demo/demo5.md +252 -0
- package/docs/layout/popover-demo/demo6.md +44 -0
- package/docs/layout/popover-demo/demo7.md +44 -0
- package/docs/layout/popover-demo/demo8.md +50 -0
- package/docs/layout/popover-demo/demo9.md +80 -0
- package/docs/layout/popover.md +9 -1
- package/docs/navigation/breadcrumbs-demo/demo1.md +77 -0
- package/docs/navigation/breadcrumbs-demo/demo2.md +61 -0
- package/docs/navigation/breadcrumbs-demo/demo3.md +61 -0
- package/docs/navigation/breadcrumbs-demo/demo4.md +61 -0
- package/docs/navigation/breadcrumbs-demo/demo5.md +61 -0
- package/docs/navigation/breadcrumbs-demo/demo6.md +61 -0
- package/docs/navigation/breadcrumbs.md +9 -0
- package/docs/navigation/button-demo/demo1.md +210 -158
- package/docs/navigation/button.md +9 -1
- package/docs/navigation/collapsible-nav-demo/demo1.md +21 -44
- package/docs/navigation/collapsible-nav-demo/demo2.md +108 -0
- package/docs/navigation/collapsible-nav.md +9 -1
- package/docs/navigation/key-pad-menu-demo/demo1.md +77 -0
- package/docs/navigation/key-pad-menu-demo/demo2.md +102 -0
- package/docs/navigation/key-pad-menu-demo/demo3.md +54 -0
- package/docs/navigation/key-pad-menu-demo/demo4.md +71 -0
- package/docs/navigation/key-pad-menu-demo/demo5.md +65 -0
- package/docs/navigation/key-pad-menu.md +9 -0
- package/docs/navigation/link-demo/demo1.md +44 -0
- package/docs/navigation/link-demo/demo2.md +41 -0
- package/docs/navigation/link-demo/demo3.md +45 -0
- package/docs/navigation/link-demo/demo4.md +61 -0
- package/docs/navigation/link.md +9 -0
- package/docs/navigation/side-nav-demo/demo1.md +34 -18
- package/docs/navigation/side-nav.md +9 -1
- package/docs/navigation/steps-demo/demo1.md +16 -18
- package/docs/navigation/steps-demo/demo2.md +18 -21
- package/docs/navigation/steps-demo/demo3.md +12 -10
- package/docs/navigation/steps-demo/demo4.md +84 -0
- package/docs/navigation/steps-demo/demo5.md +29 -0
- package/docs/navigation/steps.md +9 -1
- package/docs/navigation/tabs.md +9 -1
- package/docs/utilities/auto-sizer-demo/demo1.md +34 -0
- package/docs/utilities/auto-sizer.md +9 -0
- package/docs/utilities/copy-demo/demo1.md +37 -0
- package/docs/utilities/copy-demo/demo2.md +70 -0
- package/docs/utilities/copy.md +9 -0
- package/docs/utilities/mutation-observer.md +9 -1
- package/docs/utilities/outside-click-detector.md +9 -1
- package/docs/utilities/overlay-mask.md +9 -1
- package/docs/utilities/portal.md +9 -1
- package/docs/utilities/resize-observer.md +9 -1
- package/docs/utilities/responsive-demo/demo1.md +108 -0
- package/docs/utilities/responsive.md +9 -0
- package/index.js +4 -2
- package/package.json +13 -7
- package/CHANGELOG.md +0 -1345
- package/addon/components/eui-code-block-impl/code-block-controls/index.hbs +0 -33
- package/addon/components/eui-code-block-impl/index.hbs +0 -111
- package/addon/components/eui-code-block-impl/index.ts +0 -121
- package/addon/components/eui-flyout-body/banner/index.hbs +0 -3
- package/addon/components/eui-flyout-body/content/index.hbs +0 -3
- package/addon/helpers/create-event.ts +0 -30
- package/addon/modifiers/get-cursor-node.ts +0 -54
- package/addon/modifiers/invalidate-indeterminate.ts +0 -10
- package/addon/modifiers/on-event-simulate-event.ts +0 -32
- package/app/components/eui-card/eui-card-select/index.js +0 -1
- package/app/components/eui-flyout-body/banner/index.js +0 -1
- package/app/components/eui-flyout-body/content/index.js +0 -1
- package/app/helpers/create-event.js +0 -1
- package/app/modifiers/fixed-header.js +0 -1
- package/app/modifiers/focus-tab.js +0 -1
- package/app/modifiers/get-cursor-node.js +0 -1
- package/app/modifiers/invalidate-indeterminate.js +0 -1
- package/app/modifiers/on-event-simulate-event.js +0 -1
- package/docs/forms/form-controls/checkbox-demo/demo1.md +0 -40
- package/docs/forms/form-controls/checkbox-group.md +0 -1
- package/docs/forms/form-controls/checkbox.md +0 -1
- package/docs/forms/form-controls/combo-box.md +0 -1
- package/docs/forms/form-controls/file-picker-demo/demo1.md +0 -28
- package/docs/forms/form-controls/file-picker.md +0 -1
- package/docs/forms/form-controls/form-control-layout-delimited.md +0 -1
- package/docs/forms/form-controls/form-control-layout.md +0 -1
- package/docs/forms/form-controls/number-field.md +0 -1
- package/docs/forms/form-controls/password-field.md +0 -1
- package/docs/forms/form-controls/radio-demo/demo1.md +0 -39
- package/docs/forms/form-controls/radio-group-demo/demo1.md +0 -60
- package/docs/forms/form-controls/radio-group.md +0 -1
- package/docs/forms/form-controls/radio.md +0 -1
- package/docs/forms/form-controls/range-demo/demo1.md +0 -61
- package/docs/forms/form-controls/range-demo/demo2.md +0 -59
- package/docs/forms/form-controls/range-demo/demo6.md +0 -59
- package/docs/forms/form-controls/range.md +0 -1
- package/docs/forms/form-controls/search-field-demo/demo1.md +0 -31
- package/docs/forms/form-controls/search-field.md +0 -1
- package/docs/forms/form-controls/select.md +0 -1
- package/docs/forms/form-controls/switch.md +0 -1
- package/docs/forms/form-controls/text-field.md +0 -1
- package/docs/forms/form-controls/textarea-demo/demo1.md +0 -36
- package/docs/forms/form-controls/textarea.md +0 -1
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
---
|
|
2
|
+
order: 5
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Portal content in the header
|
|
6
|
+
|
|
7
|
+
<EuiText>
|
|
8
|
+
<p>
|
|
9
|
+
Use an <strong>EuiHeaderSectionItemButton</strong> to display additional information in <EuiLink @href="/docs/core/docs/layout/popover">popovers</EuiLink> or <EuiLink @href="/docs/core/docs/layout/flyout">flyouts</EuiLink>, such as a user profile or news feed. When using <EuiLink @href="/docs/core/docs/layout/flyout">EuiFlyout</EuiLink>, be sure to wrap it in a <EuiLink @href="/docs/core/docs/utilities/portal">EuiPortal</EuiLink>. When using an <EuiLink @href="">EuiPopover</EuiLink> in conjunction with a <strong>fixed</strong> header, be sure to add the <EuiCode>repositionOnScroll</EuiCode> prop to the popover.
|
|
10
|
+
</p>
|
|
11
|
+
</EuiText>
|
|
12
|
+
|
|
13
|
+
```hbs template
|
|
14
|
+
<EuiFlexGroup @alignItems='center' @gutterSize='m'>
|
|
15
|
+
<EuiFlexItem @grow={{false}}>
|
|
16
|
+
<EuiSwitch
|
|
17
|
+
@label='Make header fixed position'
|
|
18
|
+
@checked={{eq this.position 'fixed'}}
|
|
19
|
+
@onChange={{this.setPosition}}
|
|
20
|
+
/>
|
|
21
|
+
</EuiFlexItem>
|
|
22
|
+
|
|
23
|
+
<EuiFlexItem @grow={{false}}>
|
|
24
|
+
<EuiSwitch
|
|
25
|
+
@label='Change theme to dark'
|
|
26
|
+
@checked={{eq this.theme 'dark'}}
|
|
27
|
+
@onChange={{this.setTheme}}
|
|
28
|
+
/>
|
|
29
|
+
</EuiFlexItem>
|
|
30
|
+
</EuiFlexGroup>
|
|
31
|
+
|
|
32
|
+
<EuiSpacer />
|
|
33
|
+
<EuiHeader @position={{this.position}} @theme={{this.theme}}>
|
|
34
|
+
<EuiHeaderSection @side='left'>
|
|
35
|
+
<EuiHeaderSectionItem @border='right'>
|
|
36
|
+
<EuiHeaderLogo>Elastic</EuiHeaderLogo>
|
|
37
|
+
</EuiHeaderSectionItem>
|
|
38
|
+
</EuiHeaderSection>
|
|
39
|
+
<EuiHeaderSection @side='right'>
|
|
40
|
+
<EuiHeaderSectionItem>
|
|
41
|
+
<EuiHeaderSectionItemButton
|
|
42
|
+
@notification={{true}}
|
|
43
|
+
aria-controls='headerFlyoutNewsFeed'
|
|
44
|
+
aria-expanded={{this.flyout}}
|
|
45
|
+
aria-haspopup='true'
|
|
46
|
+
aria-label='Alerts feed: Updates available'
|
|
47
|
+
{{on 'click' (set this 'flyout' true)}}
|
|
48
|
+
>
|
|
49
|
+
<EuiIcon @type='bell' />
|
|
50
|
+
</EuiHeaderSectionItemButton>
|
|
51
|
+
</EuiHeaderSectionItem>
|
|
52
|
+
<EuiHeaderSectionItem>
|
|
53
|
+
<EuiPopover
|
|
54
|
+
@isOpen={{this.popover}}
|
|
55
|
+
@closePopover={{set this 'popover' false}}
|
|
56
|
+
@panelPaddingSize='none'
|
|
57
|
+
>
|
|
58
|
+
<:button>
|
|
59
|
+
<EuiHeaderSectionItemButton
|
|
60
|
+
@notification={{6}}
|
|
61
|
+
aria-controls='headerPopoverNewsFeed'
|
|
62
|
+
aria-expanded={{this.popover}}
|
|
63
|
+
aria-haspopup='true'
|
|
64
|
+
aria-label='News feed: Updates available'
|
|
65
|
+
{{on 'click' (set this 'popover' (not this.popover))}}
|
|
66
|
+
>
|
|
67
|
+
<EuiIcon @type='cheer' />
|
|
68
|
+
</EuiHeaderSectionItemButton>
|
|
69
|
+
</:button>
|
|
70
|
+
<:content>
|
|
71
|
+
<EuiPopoverTitle @paddingSize='s'>What's new</EuiPopoverTitle>
|
|
72
|
+
<div style='max-height:40vh; overflow-y: auto; padding: 4px'>
|
|
73
|
+
<EuiSpacer size='s' />
|
|
74
|
+
{{#each this.alerts as |alert|}}
|
|
75
|
+
<EuiHeaderAlert>
|
|
76
|
+
<:title>
|
|
77
|
+
{{alert.title}}
|
|
78
|
+
</:title>
|
|
79
|
+
<:action>
|
|
80
|
+
<EuiLink>{{alert.action}}</EuiLink>
|
|
81
|
+
</:action>
|
|
82
|
+
<:text>
|
|
83
|
+
{{alert.text}}
|
|
84
|
+
</:text>
|
|
85
|
+
<:date>
|
|
86
|
+
{{alert.date}}
|
|
87
|
+
</:date>
|
|
88
|
+
<:badge>
|
|
89
|
+
<EuiBadge>{{alert.badge}}</EuiBadge>
|
|
90
|
+
</:badge>
|
|
91
|
+
</EuiHeaderAlert>
|
|
92
|
+
{{/each}}
|
|
93
|
+
</div>
|
|
94
|
+
<EuiPopoverFooter @paddingSize='s'>
|
|
95
|
+
<EuiText @color='subdued' @size='s'>
|
|
96
|
+
<p>Version 7.0</p>
|
|
97
|
+
</EuiText>
|
|
98
|
+
</EuiPopoverFooter>
|
|
99
|
+
</:content>
|
|
100
|
+
</EuiPopover>
|
|
101
|
+
|
|
102
|
+
</EuiHeaderSectionItem>
|
|
103
|
+
</EuiHeaderSection>
|
|
104
|
+
</EuiHeader>
|
|
105
|
+
|
|
106
|
+
{{#if this.flyout}}
|
|
107
|
+
<EuiPortal>
|
|
108
|
+
<EuiFlyout @onClose={{set this 'flyout' false}} @size='s'>
|
|
109
|
+
<EuiFlyoutHeader @hasBorder={{true}}>
|
|
110
|
+
<EuiTitle @size='s'>
|
|
111
|
+
<h2>What's new</h2>
|
|
112
|
+
</EuiTitle>
|
|
113
|
+
</EuiFlyoutHeader>
|
|
114
|
+
<EuiFlyoutBody>
|
|
115
|
+
{{#each this.alerts as |alert|}}
|
|
116
|
+
<EuiHeaderAlert>
|
|
117
|
+
<:title>
|
|
118
|
+
{{alert.title}}
|
|
119
|
+
</:title>
|
|
120
|
+
<:action>
|
|
121
|
+
<EuiLink>{{alert.action}}</EuiLink>
|
|
122
|
+
</:action>
|
|
123
|
+
<:text>
|
|
124
|
+
{{alert.text}}
|
|
125
|
+
</:text>
|
|
126
|
+
<:date>
|
|
127
|
+
{{alert.date}}
|
|
128
|
+
</:date>
|
|
129
|
+
<:badge>
|
|
130
|
+
<EuiBadge>{{alert.badge}}</EuiBadge>
|
|
131
|
+
</:badge>
|
|
132
|
+
</EuiHeaderAlert>
|
|
133
|
+
{{/each}}
|
|
134
|
+
</EuiFlyoutBody>
|
|
135
|
+
<EuiFlyoutFooter>
|
|
136
|
+
<EuiFlexGroup @justifyContent='spaceBetween' @alignItems='center'>
|
|
137
|
+
<EuiFlexItem @grow={{false}}>
|
|
138
|
+
<EuiButtonEmpty
|
|
139
|
+
@iconType='cross'
|
|
140
|
+
@onClick={{set this 'flyout' false}}
|
|
141
|
+
@flush='left'
|
|
142
|
+
>
|
|
143
|
+
Close
|
|
144
|
+
</EuiButtonEmpty>
|
|
145
|
+
</EuiFlexItem>
|
|
146
|
+
<EuiFlexItem @grow={{false}}>
|
|
147
|
+
<EuiText @color='subdued' @size='s'>
|
|
148
|
+
<p>Version 7.0</p>
|
|
149
|
+
</EuiText>
|
|
150
|
+
</EuiFlexItem>
|
|
151
|
+
</EuiFlexGroup>
|
|
152
|
+
</EuiFlyoutFooter>
|
|
153
|
+
</EuiFlyout>
|
|
154
|
+
|
|
155
|
+
</EuiPortal>
|
|
156
|
+
|
|
157
|
+
{{/if}}
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
```js component
|
|
161
|
+
import Component from '@glimmer/component';
|
|
162
|
+
import { tracked } from '@glimmer/tracking';
|
|
163
|
+
import { action } from '@ember/object';
|
|
164
|
+
|
|
165
|
+
export default class DemoHeaderComponent extends Component {
|
|
166
|
+
@tracked flyout = false;
|
|
167
|
+
@tracked popover = false;
|
|
168
|
+
@tracked position = 'static';
|
|
169
|
+
@tracked theme = 'default';
|
|
170
|
+
|
|
171
|
+
alerts = [
|
|
172
|
+
{
|
|
173
|
+
title: 'Control access to features',
|
|
174
|
+
text: 'Show or hide applications and features per space in Kibana.',
|
|
175
|
+
action: 'Learn about feature controls',
|
|
176
|
+
date: '1 May 2019',
|
|
177
|
+
badge: 7.1
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
title: 'Kibana 7.0 is turning heads',
|
|
181
|
+
text: 'Simplified navigation, responsive dashboards, dark mode… pick your favorite.',
|
|
182
|
+
action: 'Read the blog',
|
|
183
|
+
date: '10 April 2019',
|
|
184
|
+
badge: 7.0
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
title: 'Enter dark mode',
|
|
188
|
+
text: 'Kibana now supports the easy-on-the-eyes theme across the entire UI.',
|
|
189
|
+
action: 'Go to Advanced Settings',
|
|
190
|
+
date: '10 April 2019',
|
|
191
|
+
badge: 7.0
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
title: 'Pixel-perfect Canvas is production ready',
|
|
195
|
+
text: 'Your creative space for visualizing data awaits.',
|
|
196
|
+
action: 'Watch the webinar',
|
|
197
|
+
date: '26 March 2019',
|
|
198
|
+
badge: 6.7
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
title: '6.7 release notes',
|
|
202
|
+
text: 'Stay up-to-date on the latest and greatest features.',
|
|
203
|
+
action: 'Check out the docs',
|
|
204
|
+
date: '26 March 2019',
|
|
205
|
+
badge: 6.7
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
title: 'Rollups made simple in Kibana',
|
|
209
|
+
text: 'Save space and preserve the integrity of your data directly in the UI.',
|
|
210
|
+
action: 'Read the blog',
|
|
211
|
+
date: '10 January 2019',
|
|
212
|
+
badge: 6.5
|
|
213
|
+
}
|
|
214
|
+
];
|
|
215
|
+
|
|
216
|
+
setPosition = (e) => {
|
|
217
|
+
if (e.target.checked) {
|
|
218
|
+
this.position = 'fixed';
|
|
219
|
+
} else {
|
|
220
|
+
this.position = 'static';
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
setTheme = (e) => {
|
|
225
|
+
if (e.target.checked) {
|
|
226
|
+
this.theme = 'dark';
|
|
227
|
+
} else {
|
|
228
|
+
this.theme = 'default';
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
```
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
order: 6
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Header notifications
|
|
6
|
+
|
|
7
|
+
<EuiText>
|
|
8
|
+
To alert or notify users about the additional information they are receiving,
|
|
9
|
+
use the <strong>EuiHeaderSectionItemButton</strong> <EuiCode>notification</EuiCode> prop. You can pass a node that
|
|
10
|
+
will render inside a <strong>EuiBadgeNotification</strong> or pass <EuiCode>true</EuiCode> to render a simple dot.
|
|
11
|
+
You can also animate the button by calling the <EuiCode>euiAnimate()</EuiCode> method on the
|
|
12
|
+
<strong>EuiHeaderSectionItemButton</strong> <EuiCode>ref</EuiCode>.
|
|
13
|
+
</EuiText>
|
|
14
|
+
|
|
15
|
+
```hbs template
|
|
16
|
+
<EuiFlexGroup>
|
|
17
|
+
<EuiFlexItem>
|
|
18
|
+
<EuiButton {{on 'click' this.notify}}>
|
|
19
|
+
Notify
|
|
20
|
+
</EuiButton>
|
|
21
|
+
</EuiFlexItem>
|
|
22
|
+
<EuiFlexItem>
|
|
23
|
+
<EuiButton {{on 'click' this.reset}}>
|
|
24
|
+
Reset
|
|
25
|
+
</EuiButton>
|
|
26
|
+
</EuiFlexItem>
|
|
27
|
+
</EuiFlexGroup>
|
|
28
|
+
<EuiSpacer />
|
|
29
|
+
<EuiHeader>
|
|
30
|
+
<EuiHeaderSection @side='left'>
|
|
31
|
+
<EuiHeaderSectionItem @border='right'>
|
|
32
|
+
<EuiHeaderLogo>Elastic</EuiHeaderLogo>
|
|
33
|
+
</EuiHeaderSectionItem>
|
|
34
|
+
</EuiHeaderSection>
|
|
35
|
+
<EuiHeaderSection @side='right'>
|
|
36
|
+
<EuiHeaderSectionItem>
|
|
37
|
+
<EuiHeaderSectionItemButton
|
|
38
|
+
@notification={{if this.notificationNumber true false}}
|
|
39
|
+
@notificationColor='accent'
|
|
40
|
+
@ref={{set this 'bellRef'}}
|
|
41
|
+
>
|
|
42
|
+
<EuiIcon @type='bell' />
|
|
43
|
+
</EuiHeaderSectionItemButton>
|
|
44
|
+
</EuiHeaderSectionItem>
|
|
45
|
+
<EuiHeaderSectionItem>
|
|
46
|
+
<EuiHeaderSectionItemButton
|
|
47
|
+
@notification={{this.notificationNumber}}
|
|
48
|
+
@notificationColor='accent'
|
|
49
|
+
@ref={{set this 'cheerRef'}}
|
|
50
|
+
>
|
|
51
|
+
<EuiIcon @type='cheer' />
|
|
52
|
+
</EuiHeaderSectionItemButton>
|
|
53
|
+
</EuiHeaderSectionItem>
|
|
54
|
+
</EuiHeaderSection>
|
|
55
|
+
</EuiHeader>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
```js component
|
|
59
|
+
import Component from '@glimmer/component';
|
|
60
|
+
import { tracked } from '@glimmer/tracking';
|
|
61
|
+
import { action } from '@ember/object';
|
|
62
|
+
|
|
63
|
+
export default class DemoHeaderComponent extends Component {
|
|
64
|
+
@tracked notificationNumber = 0;
|
|
65
|
+
bellRef;
|
|
66
|
+
cheerRef;
|
|
67
|
+
|
|
68
|
+
@action
|
|
69
|
+
animate() {
|
|
70
|
+
this.bellRef?.euiAnimate();
|
|
71
|
+
this.cheerRef?.euiAnimate();
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@action
|
|
75
|
+
notify() {
|
|
76
|
+
this.notificationNumber += 1;
|
|
77
|
+
this.animate();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@action
|
|
81
|
+
reset() {
|
|
82
|
+
this.notificationNumber = 0;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
```
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
---
|
|
2
|
+
order: 6
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Stacked headers
|
|
6
|
+
|
|
7
|
+
<EuiText>
|
|
8
|
+
Stacking multiple headers provides a great way to separate global navigation concerns. However, the <EuiCode>position="fixed"</EuiCode> option will not be aware of the number of headers. If you do need fixed <strong>and</strong> stacked headers, you will need to apply the SASS helper mixin and pass in the correct height to afford for.
|
|
9
|
+
</EuiText>
|
|
10
|
+
|
|
11
|
+
```hbs template
|
|
12
|
+
<EuiFlexGroup @alignItems='center' @gutterSize='m'>
|
|
13
|
+
<EuiFlexItem @grow={{false}}>
|
|
14
|
+
<EuiSwitch
|
|
15
|
+
@label='Make header fixed position'
|
|
16
|
+
@checked={{eq this.position 'fixed'}}
|
|
17
|
+
@onChange={{this.setPosition}}
|
|
18
|
+
/>
|
|
19
|
+
</EuiFlexItem>
|
|
20
|
+
</EuiFlexGroup>
|
|
21
|
+
<EuiSpacer />
|
|
22
|
+
<EuiHeader @position={{this.position}}>
|
|
23
|
+
<EuiHeaderSection @side='left'>
|
|
24
|
+
<EuiHeaderSectionItem @border='right'>
|
|
25
|
+
<EuiHeaderLogo>Elastic</EuiHeaderLogo>
|
|
26
|
+
</EuiHeaderSectionItem>
|
|
27
|
+
</EuiHeaderSection>
|
|
28
|
+
<EuiHeaderSection @side='right'>
|
|
29
|
+
<EuiHeaderSectionItem>
|
|
30
|
+
<EuiHeaderSectionItemButton
|
|
31
|
+
@notification={{if this.notificationNumber true false}}
|
|
32
|
+
@notificationColor='accent'
|
|
33
|
+
@ref={{set this 'bellRef'}}
|
|
34
|
+
>
|
|
35
|
+
<EuiIcon @type='bell' />
|
|
36
|
+
</EuiHeaderSectionItemButton>
|
|
37
|
+
</EuiHeaderSectionItem>
|
|
38
|
+
<EuiHeaderSectionItem>
|
|
39
|
+
<EuiHeaderSectionItemButton
|
|
40
|
+
@notification={{this.notificationNumber}}
|
|
41
|
+
@notificationColor='accent'
|
|
42
|
+
@ref={{set this 'cheerRef'}}
|
|
43
|
+
>
|
|
44
|
+
<EuiIcon @type='cheer' />
|
|
45
|
+
</EuiHeaderSectionItemButton>
|
|
46
|
+
</EuiHeaderSectionItem>
|
|
47
|
+
</EuiHeaderSection>
|
|
48
|
+
</EuiHeader>
|
|
49
|
+
<EuiHeader @position={{this.position}} @theme='dark'>
|
|
50
|
+
<EuiHeaderSection @side='left'>
|
|
51
|
+
<EuiHeaderSectionItem @border='right'>
|
|
52
|
+
<EuiHeaderLogo>Elastic</EuiHeaderLogo>
|
|
53
|
+
</EuiHeaderSectionItem>
|
|
54
|
+
</EuiHeaderSection>
|
|
55
|
+
<EuiHeaderSection @side='right'>
|
|
56
|
+
<EuiHeaderSectionItem>
|
|
57
|
+
<EuiHeaderSectionItemButton
|
|
58
|
+
@notification={{if this.notificationNumber true false}}
|
|
59
|
+
@notificationColor='accent'
|
|
60
|
+
@ref={{set this 'bellRef'}}
|
|
61
|
+
>
|
|
62
|
+
<EuiIcon @type='bell' />
|
|
63
|
+
</EuiHeaderSectionItemButton>
|
|
64
|
+
</EuiHeaderSectionItem>
|
|
65
|
+
<EuiHeaderSectionItem>
|
|
66
|
+
<EuiHeaderSectionItemButton
|
|
67
|
+
@notification={{this.notificationNumber}}
|
|
68
|
+
@notificationColor='accent'
|
|
69
|
+
@ref={{set this 'cheerRef'}}
|
|
70
|
+
>
|
|
71
|
+
<EuiIcon @type='cheer' />
|
|
72
|
+
</EuiHeaderSectionItemButton>
|
|
73
|
+
</EuiHeaderSectionItem>
|
|
74
|
+
</EuiHeaderSection>
|
|
75
|
+
</EuiHeader>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
```js component
|
|
79
|
+
import Component from '@glimmer/component';
|
|
80
|
+
import { tracked } from '@glimmer/tracking';
|
|
81
|
+
import { action } from '@ember/object';
|
|
82
|
+
|
|
83
|
+
export default class DemoHeaderComponent extends Component {
|
|
84
|
+
@tracked position = 'static';
|
|
85
|
+
|
|
86
|
+
setPosition = (e) => {
|
|
87
|
+
if (e.target.checked) {
|
|
88
|
+
this.position = 'fixed';
|
|
89
|
+
} else {
|
|
90
|
+
this.position = 'static';
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
```
|
package/docs/layout/header.md
CHANGED
|
@@ -1,175 +1,74 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
order: 1
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Modal
|
|
6
|
+
|
|
7
|
+
<EuiText>
|
|
8
|
+
Each <strong>EuiModal</strong> requires a specific set of nested child components. They can be
|
|
9
|
+
omitted if necessary, but the order cannot be changed or interrupted. Modals
|
|
10
|
+
come a wrapping <strong>EuiOverlayMask</strong> to obscure the content beneath, but unlike
|
|
11
|
+
flyouts, modals cannot be dismissed by clicking on the overlay mask. This is
|
|
12
|
+
inline with our modal usage guidelines which requires there to be a primary
|
|
13
|
+
action button, even if that button simply closes the modal.
|
|
14
|
+
</EuiText>
|
|
2
15
|
|
|
3
16
|
```hbs template
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Activate Modal
|
|
9
|
-
</EuiButton>
|
|
10
|
-
{{#if this.basicModalActive}}
|
|
11
|
-
<EuiOverlayMask @headerZindexLocation="above">
|
|
12
|
-
<EuiModal
|
|
13
|
-
@onClose={{fn this.deactivateModal "basicModalActive"}}
|
|
14
|
-
@initialFocus="#focusee"
|
|
15
|
-
@maxWidth="90%"
|
|
16
|
-
>
|
|
17
|
-
<EuiModalHeader>
|
|
18
|
-
<EuiTitle @size="m">
|
|
19
|
-
Basic Modal
|
|
20
|
-
</EuiTitle>
|
|
21
|
-
</EuiModalHeader>
|
|
22
|
-
<EuiModalBody>
|
|
23
|
-
<EuiText>
|
|
24
|
-
<p>
|
|
25
|
-
Hello there!
|
|
26
|
-
</p>
|
|
27
|
-
<p>
|
|
28
|
-
This modal has many
|
|
29
|
-
<a id="focusee" href="#">
|
|
30
|
-
different
|
|
31
|
-
</a>
|
|
32
|
-
<a href="#">
|
|
33
|
-
focusable
|
|
34
|
-
</a>
|
|
35
|
-
<a href="#">
|
|
36
|
-
items
|
|
37
|
-
</a>
|
|
38
|
-
.
|
|
39
|
-
</p>
|
|
40
|
-
</EuiText>
|
|
41
|
-
</EuiModalBody>
|
|
42
|
-
<EuiModalFooter>
|
|
43
|
-
<EuiButtonEmpty {{on "click" (fn this.deactivateModal "basicModalActive")}}>
|
|
44
|
-
Cancel
|
|
45
|
-
</EuiButtonEmpty>
|
|
46
|
-
<EuiButton
|
|
47
|
-
{{on "click" (fn this.deactivateModal "basicModalActive")}}
|
|
48
|
-
@color="primary"
|
|
49
|
-
@fill={{true}}
|
|
50
|
-
>
|
|
51
|
-
Submit
|
|
52
|
-
</EuiButton>
|
|
53
|
-
</EuiModalFooter>
|
|
54
|
-
</EuiModal>
|
|
55
|
-
</EuiOverlayMask>
|
|
56
|
-
{{/if}}
|
|
57
|
-
<EuiSpacer />
|
|
58
|
-
<EuiTitle>
|
|
59
|
-
Overflow Test
|
|
60
|
-
</EuiTitle>
|
|
61
|
-
<EuiButton @color="primary" {{on "click" (fn this.activateModal "overflowModalActive")}}>
|
|
17
|
+
<EuiButton
|
|
18
|
+
@color='primary'
|
|
19
|
+
{{on 'click' (fn this.activateModal 'basicModalActive')}}
|
|
20
|
+
>
|
|
62
21
|
Show Modal
|
|
63
22
|
</EuiButton>
|
|
64
|
-
{{#if this.
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
</
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
<p>
|
|
78
|
-
<strong>
|
|
79
|
-
Palpatine
|
|
80
|
-
</strong>
|
|
81
|
-
: Did you ever hear the tragedy of Darth Plagueis The Wise?
|
|
82
|
-
</p>
|
|
83
|
-
<p>
|
|
84
|
-
<strong>
|
|
85
|
-
Anakin
|
|
86
|
-
</strong>
|
|
87
|
-
: No.
|
|
88
|
-
</p>
|
|
89
|
-
<p>
|
|
90
|
-
<strong>
|
|
91
|
-
Palpatine
|
|
92
|
-
</strong>
|
|
93
|
-
: I thought not. It's not a story the Jedi would tell you.
|
|
94
|
-
It's a Sith legend. Darth Plagueis was a Dark Lord of the Sith,
|
|
95
|
-
so powerful and so wise he could use the Force to influence the midichlorians
|
|
96
|
-
to create life… He had such a knowledge of the dark side,
|
|
97
|
-
he could even keep the ones he cared about from dying.
|
|
98
|
-
</p>
|
|
99
|
-
<p>
|
|
100
|
-
<strong>
|
|
101
|
-
Anakin
|
|
102
|
-
</strong>
|
|
103
|
-
: He could actually save people from death?
|
|
104
|
-
</p>
|
|
105
|
-
<p>
|
|
106
|
-
Palpatine: The dark side of the Force is a pathway to many
|
|
107
|
-
abilities some consider to be unnatural.
|
|
108
|
-
</p>
|
|
109
|
-
<p>
|
|
110
|
-
<strong>
|
|
111
|
-
Anakin
|
|
112
|
-
</strong>
|
|
113
|
-
: What happened to him?
|
|
114
|
-
</p>
|
|
115
|
-
<p>
|
|
116
|
-
<strong>
|
|
117
|
-
Palpatine
|
|
118
|
-
</strong>
|
|
119
|
-
: He became so powerful… the only thing he was afraid of was losing his power,
|
|
120
|
-
which eventually, of course, he did. Unfortunately, he taught his apprentice
|
|
121
|
-
everything he knew, then his apprentice killed him in his sleep.
|
|
122
|
-
Ironic. He could save others from death, but not himself.
|
|
123
|
-
</p>
|
|
124
|
-
<p>
|
|
125
|
-
<strong>
|
|
126
|
-
Anakin
|
|
127
|
-
</strong>
|
|
128
|
-
: Is it possible to learn this power?
|
|
129
|
-
</p>
|
|
130
|
-
<p>
|
|
131
|
-
<strong>
|
|
132
|
-
Palpatine
|
|
133
|
-
</strong>
|
|
134
|
-
: Not from a Jedi.
|
|
135
|
-
</p>
|
|
136
|
-
</EuiText>
|
|
137
|
-
</EuiModalBody>
|
|
138
|
-
<EuiModalFooter>
|
|
139
|
-
<EuiButton
|
|
140
|
-
@color="primary"
|
|
141
|
-
{{on "click" (fn this.deactivateModal "overflowModalActive")}}
|
|
142
|
-
id="donebutton"
|
|
143
|
-
>
|
|
144
|
-
Done
|
|
145
|
-
</EuiButton>
|
|
146
|
-
</EuiModalFooter>
|
|
147
|
-
</EuiModal>
|
|
148
|
-
</EuiOverlayMask>
|
|
149
|
-
{{/if}}
|
|
150
|
-
<EuiSpacer />
|
|
151
|
-
<EuiTitle>
|
|
152
|
-
Confirm Modal
|
|
153
|
-
</EuiTitle>
|
|
154
|
-
<EuiButton @color="primary" {{on "click" (fn this.activateModal "confirmModalActive")}}>
|
|
155
|
-
Show Confirm Modal
|
|
156
|
-
</EuiButton>
|
|
157
|
-
{{#if this.confirmModalActive}}
|
|
158
|
-
<EuiOverlayMask @headerZindexLocation="above">
|
|
159
|
-
<EuiConfirmModal
|
|
160
|
-
@title="Refresh the page?"
|
|
161
|
-
@onConfirm={{this.reloadPage}}
|
|
162
|
-
@buttonColor="primary"
|
|
163
|
-
@confirmButtonText="Refresh"
|
|
164
|
-
@cancelButtonText="Cancel"
|
|
165
|
-
@onCancel={{fn this.deactivateModal "confirmModalActive"}}
|
|
166
|
-
>
|
|
23
|
+
{{#if this.basicModalActive}}
|
|
24
|
+
|
|
25
|
+
<EuiModal
|
|
26
|
+
@onClose={{fn this.deactivateModal 'basicModalActive'}}
|
|
27
|
+
@initialFocus='#focusee'
|
|
28
|
+
@maxWidth='90%'
|
|
29
|
+
>
|
|
30
|
+
<EuiModalHeader>
|
|
31
|
+
<EuiTitle @size='m'>
|
|
32
|
+
Basic Modal
|
|
33
|
+
</EuiTitle>
|
|
34
|
+
</EuiModalHeader>
|
|
35
|
+
<EuiModalBody>
|
|
167
36
|
<EuiText>
|
|
168
|
-
|
|
37
|
+
<p>
|
|
38
|
+
Hello there!
|
|
39
|
+
</p>
|
|
40
|
+
<p>
|
|
41
|
+
This modal has many
|
|
42
|
+
<a id='focusee' href='#'>
|
|
43
|
+
different
|
|
44
|
+
</a>
|
|
45
|
+
<a href='#'>
|
|
46
|
+
focusable
|
|
47
|
+
</a>
|
|
48
|
+
<a href='#'>
|
|
49
|
+
items
|
|
50
|
+
</a>
|
|
51
|
+
.
|
|
52
|
+
</p>
|
|
169
53
|
</EuiText>
|
|
170
|
-
</
|
|
171
|
-
|
|
54
|
+
</EuiModalBody>
|
|
55
|
+
<EuiModalFooter>
|
|
56
|
+
<EuiButtonEmpty
|
|
57
|
+
{{on 'click' (fn this.deactivateModal 'basicModalActive')}}
|
|
58
|
+
>
|
|
59
|
+
Cancel
|
|
60
|
+
</EuiButtonEmpty>
|
|
61
|
+
<EuiButton
|
|
62
|
+
{{on 'click' (fn this.deactivateModal 'basicModalActive')}}
|
|
63
|
+
@color='primary'
|
|
64
|
+
@fill={{true}}
|
|
65
|
+
>
|
|
66
|
+
Submit
|
|
67
|
+
</EuiButton>
|
|
68
|
+
</EuiModalFooter>
|
|
69
|
+
</EuiModal>
|
|
172
70
|
{{/if}}
|
|
71
|
+
<EuiSpacer />
|
|
173
72
|
```
|
|
174
73
|
|
|
175
74
|
```js component
|
|
@@ -179,8 +78,6 @@ import { action } from '@ember/object';
|
|
|
179
78
|
|
|
180
79
|
export default class DemoModalComponent extends Component {
|
|
181
80
|
@tracked basicModalActive = false;
|
|
182
|
-
@tracked overflowModalActive = false;
|
|
183
|
-
@tracked confirmModalActive = false;
|
|
184
81
|
|
|
185
82
|
@action
|
|
186
83
|
activateModal(modal) {
|