@ember-eui/core 4.4.0 → 5.0.0-alpha.4
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 +83 -0
- package/addon/components/eui-field-number/index.hbs +3 -3
- package/addon/components/eui-field-number/types.ts +4 -1
- 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-control-layout-custom-icon/types.ts +3 -1
- package/addon/components/eui-form-control-layout-icons/types.ts +4 -1
- package/addon/components/eui-form-label/index.hbs +1 -1
- package/addon/components/eui-form-row/index.hbs +13 -9
- package/addon/components/eui-global-toast-list/index.ts +5 -6
- 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-image/index.ts +7 -2
- 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-loading-logo/index.hbs +14 -0
- 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-portal/index.ts +2 -1
- 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-levels/index.ts +14 -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 +11 -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 +60 -46
- package/addon/components/eui-tab/index.ts +23 -0
- package/addon/components/eui-tabbed-content/index.hbs +14 -27
- package/addon/components/eui-tabbed-content/index.ts +134 -0
- package/addon/components/eui-tabs/index.hbs +6 -9
- package/addon/components/eui-tool-tip/index.hbs +6 -7
- package/addon/components/eui-tool-tip/index.ts +27 -11
- package/addon/helpers/arg-or-default.ts +4 -1
- package/addon/helpers/class-names.ts +2 -0
- package/addon/helpers/eui-palette.ts +4 -1
- package/addon/helpers/get-range-tick.ts +53 -8
- package/addon/helpers/hex-to-rgb.ts +4 -1
- package/addon/helpers/inline-styles.ts +10 -3
- package/addon/helpers/is-within-number.ts +4 -1
- package/addon/helpers/starts-with.ts +3 -1
- package/addon/helpers/unique-id.ts +4 -1
- package/addon/initializers/eui-config.ts +12 -0
- package/addon/modifiers/mutation-observer.ts +4 -1
- package/addon/modifiers/outside-click-detector.ts +4 -4
- package/addon/styles/ember-eui.css +2 -10
- package/addon/utils/accesibility/cascading-menu-keys.ts +8 -1
- package/addon/utils/breakpoint.ts +114 -0
- package/addon/utils/code/utils.ts +304 -0
- package/addon/utils/color/color_palette.ts +3 -3
- package/addon/utils/color/eui_palettes.ts +23 -6
- 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 +17 -0
- package/addon/utils/css-mappings/eui-icon.ts +93 -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-list-group.ts +5 -1
- package/addon/utils/css-mappings/eui-modal.ts +5 -1
- 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/markdown-types.ts +10 -11
- 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/addon/utils/transition.ts +10 -3
- package/addon/version.ts +6 -0
- package/app/components/eui-auto-sizer/index.js +1 -0
- package/app/components/eui-avatar/index.js +1 -1
- package/app/components/eui-badge-group/badge-group-item/index.js +1 -1
- package/app/components/eui-badge-group/index.js +1 -1
- package/app/components/eui-breadcrumbs/index.js +1 -0
- package/app/components/eui-button-icon/index.js +1 -1
- 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-combo-box/create-option/index.js +1 -1
- package/app/components/eui-comment/eui-comment-timeline/index.js +1 -1
- package/app/components/eui-comment/index.js +1 -1
- 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-dual-range/index.js +1 -1
- package/app/components/eui-empty-prompt/index.js +1 -0
- package/app/components/eui-field-number/index.js +1 -1
- package/app/components/eui-field-password/index.js +1 -1
- package/app/components/eui-field-search/index.js +1 -1
- package/app/components/eui-field-text/index.js +1 -1
- package/app/components/eui-file-picker/index.js +1 -1
- package/app/components/eui-form/index.js +1 -1
- package/app/components/eui-form-control-layout/index.js +1 -1
- package/app/components/eui-form-control-layout-clear-button/index.js +1 -1
- package/app/components/eui-form-control-layout-custom-icon/index.js +1 -1
- package/app/components/eui-form-control-layout-delimited/index.js +1 -1
- package/app/components/eui-form-control-layout-icons/index.js +1 -1
- package/app/components/eui-form-error-text/index.js +1 -1
- package/app/components/eui-form-fieldset/index.js +1 -1
- package/app/components/eui-form-help-text/index.js +1 -1
- package/app/components/eui-form-label/index.js +1 -1
- package/app/components/eui-form-legend/index.js +1 -1
- package/app/components/eui-form-row/index.js +1 -1
- 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-image.js +1 -1
- 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-list-group/index.js +1 -1
- package/app/components/eui-list-group-item/index.js +1 -1
- package/app/components/eui-loading-logo/index.js +1 -0
- package/app/components/eui-overlay-mask.js +1 -1
- package/app/components/eui-page/index.js +1 -1
- package/app/components/eui-page-body/index.js +1 -1
- package/app/components/eui-page-content/index.js +1 -1
- package/app/components/eui-page-content-body/index.js +1 -1
- package/app/components/eui-page-content-header/index.js +1 -1
- package/app/components/eui-page-content-header-section/index.js +1 -1
- package/app/components/eui-page-header/index.js +1 -1
- package/app/components/eui-page-header-content/index.js +1 -0
- package/app/components/eui-page-header-section/index.js +1 -1
- package/app/components/eui-page-template/index.js +1 -0
- package/app/components/eui-panel/index.js +1 -1
- package/app/components/eui-popover/index.js +1 -1
- package/app/components/eui-popover-footer/index.js +1 -1
- package/app/components/eui-popover-title/index.js +1 -1
- package/app/components/eui-portal/index.js +1 -1
- package/app/components/eui-progress/index.js +1 -1
- package/app/components/eui-radio/index.js +1 -1
- package/app/components/eui-radio-group/index.js +1 -1
- package/app/components/eui-range/index.js +1 -1
- package/app/components/eui-range-highlight/index.js +1 -1
- package/app/components/eui-range-input/index.js +1 -1
- package/app/components/eui-range-label/index.js +1 -1
- package/app/components/eui-range-levels/index.js +1 -1
- package/app/components/eui-range-slider/index.js +1 -1
- package/app/components/eui-range-thumb/index.js +1 -1
- package/app/components/eui-range-ticks/index.js +1 -1
- package/app/components/eui-range-tooltip/index.js +1 -1
- package/app/components/eui-range-track/index.js +1 -1
- package/app/components/eui-range-wrapper/index.js +1 -1
- package/app/components/eui-select/index.js +1 -1
- package/app/components/eui-show-for/index.js +1 -0
- package/app/components/eui-side-nav/index.js +1 -1
- package/app/components/eui-side-nav-item/button/index.js +1 -1
- package/app/components/eui-side-nav-item/index.js +1 -1
- package/app/components/eui-spacer/index.js +1 -1
- package/app/components/eui-split-panel/inner/index.js +1 -0
- package/app/components/eui-split-panel/outer/index.js +1 -0
- package/app/components/eui-switch/index.js +1 -1
- package/app/components/eui-tab/index.js +1 -1
- package/app/components/eui-tabs/index.js +1 -1
- package/app/components/eui-text/index.js +1 -1
- package/app/components/eui-text-align/index.js +1 -1
- package/app/components/eui-text-area/index.js +1 -1
- package/app/components/eui-text-color/index.js +1 -1
- package/app/components/eui-title/index.js +1 -1
- package/app/components/eui-tool-tip/index.js +1 -1
- package/app/components/eui-tool-tip-popover/index.js +1 -1
- package/app/helpers/eui-palette.js +1 -1
- package/app/helpers/hex-to-rgb.js +1 -1
- package/app/initializers/eui-config.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 +1 -1
- package/docs/display/badge-demo/demo1.md +78 -137
- package/docs/display/badge-demo/demo2.md +32 -0
- package/docs/display/badge-demo/demo3.md +70 -0
- package/docs/display/badge-demo/demo4.md +27 -0
- package/docs/display/badge-demo/demo5.md +31 -0
- package/docs/display/badge-demo/demo6.md +59 -0
- package/docs/display/badge-demo/demo7.md +97 -0
- package/docs/display/badge-demo/demo8.md +19 -0
- package/docs/display/badge.md +1 -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 +9 -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 +1 -1
- package/docs/display/description-list-demo/demo1.md +53 -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 +1 -0
- package/docs/display/empty-prompt-demo/demo1.md +25 -0
- package/docs/display/empty-prompt-demo/demo2.md +16 -0
- package/docs/display/empty-prompt-demo/demo3.md +67 -0
- package/docs/display/empty-prompt-demo/demo4.md +21 -0
- package/docs/display/empty-prompt-demo/demo5.md +33 -0
- package/docs/display/empty-prompt-demo/demo6.md +43 -0
- package/docs/display/empty-prompt-demo/demo7.md +162 -0
- package/docs/display/empty-prompt-demo/demo8.md +57 -0
- package/docs/display/empty-prompt.md +1 -0
- package/docs/display/health-demo/demo1.md +11 -8
- package/docs/display/health-demo/demo2.md +31 -0
- package/docs/display/health.md +9 -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 +1 -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 +9 -1
- package/docs/display/list-group.md +1 -1
- package/docs/display/loading/logo-demo/demo1.md +15 -0
- package/docs/display/loading/logo.md +1 -0
- 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 +1 -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 +8 -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 +12 -1
- package/docs/display/title-demo/demo1.md +50 -26
- package/docs/display/title.md +1 -1
- package/docs/display/tool-tip-demo/demo1.md +26 -71
- package/docs/display/tool-tip-demo/demo2.md +33 -30
- package/docs/display/tool-tip-demo/demo3.md +50 -0
- package/docs/display/tool-tip-demo/demo4.md +74 -0
- package/docs/display/tool-tip.md +11 -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 +21 -1
- package/docs/editors/code/inline-demo/demo1.md +6 -3
- package/docs/editors/code/inline.md +1 -1
- package/docs/editors/markdown-editor/base-editor-demo/demo1.md +9 -28
- package/docs/editors/markdown-editor/base-editor.md +1 -1
- package/docs/forms/form-controls/checkbox/demo/demo1.md +49 -0
- package/docs/forms/form-controls/checkbox/index.md +26 -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 +27 -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 +6 -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 +22 -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 +30 -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 +24 -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 +12 -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 +19 -0
- package/docs/forms/form-controls/radio/demo/demo1.md +43 -0
- package/docs/forms/form-controls/radio/index.md +24 -0
- package/docs/forms/form-controls/radio-group/demo/demo1.md +50 -0
- package/docs/forms/form-controls/radio-group/index.md +18 -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 +18 -0
- package/docs/forms/form-controls/search-field/demo/demo1.md +29 -0
- package/docs/forms/form-controls/search-field/index.md +14 -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 +19 -0
- package/docs/forms/form-controls/{switch-demo → switch/demo}/demo1.md +10 -10
- package/docs/forms/form-controls/switch/index.md +13 -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 +14 -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 +13 -0
- package/docs/forms/form-layouts/described-form-groups-demo/demo1.md +13 -4
- package/docs/forms/form-layouts/described-form-groups.md +1 -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 +39 -9
- 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 +1 -1
- package/docs/layout/flex.md +1 -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 +1 -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 +1 -1
- package/docs/layout/horizontal-rule.md +1 -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 +1 -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 +1 -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 +7 -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 +1 -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 +1 -0
- package/docs/navigation/button-demo/demo1.md +210 -158
- package/docs/navigation/button.md +1 -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 +1 -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 +1 -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 +1 -0
- package/docs/navigation/side-nav-demo/demo1.md +34 -18
- package/docs/navigation/side-nav.md +1 -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 +1 -1
- package/docs/navigation/tabs-demo/demo1.md +50 -148
- package/docs/navigation/tabs-demo/demo2.md +73 -0
- package/docs/navigation/tabs-demo/demo3.md +109 -0
- package/docs/navigation/tabs-demo/demo4.md +81 -0
- package/docs/navigation/tabs-demo/demo5.md +86 -0
- package/docs/navigation/tabs.md +1 -1
- package/docs/utilities/auto-sizer-demo/demo1.md +34 -0
- package/docs/utilities/auto-sizer.md +1 -0
- package/docs/utilities/copy-demo/demo1.md +37 -0
- package/docs/utilities/copy-demo/demo2.md +70 -0
- package/docs/utilities/copy.md +1 -0
- package/docs/utilities/mutation-observer.md +1 -1
- package/docs/utilities/outside-click-detector.md +1 -1
- package/docs/utilities/overlay-mask.md +1 -1
- package/docs/utilities/portal.md +1 -1
- package/docs/utilities/resize-observer.md +1 -1
- package/docs/utilities/responsive-demo/demo1.md +108 -0
- package/docs/utilities/responsive.md +1 -0
- package/index.js +8 -3
- 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/helpers/get-tab-id.ts +0 -17
- package/addon/modifiers/focus-tab.ts +0 -19
- 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/helpers/get-tab-id.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
|
@@ -2,11 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
```hbs template
|
|
4
4
|
<EuiSideNav
|
|
5
|
-
@mobileTitle=
|
|
5
|
+
@mobileTitle='Mobile Title'
|
|
6
|
+
@heading='Title'
|
|
6
7
|
@isOpenMobile={{true}}
|
|
7
8
|
@items={{this.sideNavItems}}
|
|
8
9
|
@selectedItem={{this.selectedItem}}
|
|
10
|
+
@truncate={{true}} {{! you can also truncate per item }}
|
|
9
11
|
/>
|
|
12
|
+
|
|
13
|
+
<EuiSpacer />
|
|
14
|
+
<EuiSideNav
|
|
15
|
+
@isOpenMobile={{true}}
|
|
16
|
+
@items={{this.sideNavItems}}
|
|
17
|
+
@selectedItem={{this.selectedItem}}
|
|
18
|
+
@truncate={{true}} {{! you can also truncate per item }}
|
|
19
|
+
>
|
|
20
|
+
<:heading>
|
|
21
|
+
<EuiIcon @type="faceHappy"/> Header!
|
|
22
|
+
</:heading>
|
|
23
|
+
</EuiSideNav>
|
|
10
24
|
```
|
|
11
25
|
|
|
12
26
|
```js component
|
|
@@ -25,7 +39,7 @@ export default class DemoSideNavComponent extends Component {
|
|
|
25
39
|
...data,
|
|
26
40
|
id: name,
|
|
27
41
|
name,
|
|
28
|
-
onClick
|
|
42
|
+
onClick
|
|
29
43
|
};
|
|
30
44
|
}
|
|
31
45
|
|
|
@@ -38,14 +52,15 @@ export default class DemoSideNavComponent extends Component {
|
|
|
38
52
|
createItem('Elasticsearch', {
|
|
39
53
|
icon: 'logoElasticsearch',
|
|
40
54
|
items: [
|
|
41
|
-
createItem('Data sources'),
|
|
55
|
+
createItem('Data sources', { disabled: true }),
|
|
42
56
|
createItem('Users'),
|
|
43
57
|
createItem('Roles'),
|
|
44
58
|
createItem('Watches'),
|
|
45
59
|
createItem(
|
|
46
|
-
'Extremely long title will become truncated when the browser is narrow enough'
|
|
47
|
-
|
|
48
|
-
|
|
60
|
+
'Extremely long title will become truncated when the browser is narrow enough',
|
|
61
|
+
{ truncate: true }
|
|
62
|
+
)
|
|
63
|
+
]
|
|
49
64
|
}),
|
|
50
65
|
createItem('Kibana', {
|
|
51
66
|
icon: 'logoKibana',
|
|
@@ -57,31 +72,32 @@ export default class DemoSideNavComponent extends Component {
|
|
|
57
72
|
items: [
|
|
58
73
|
createItem('Time stuff', {
|
|
59
74
|
icon: 'clock',
|
|
75
|
+
emphasize: true
|
|
60
76
|
}),
|
|
61
77
|
createItem('Lion stuff', {
|
|
62
78
|
icon: 'stats',
|
|
63
79
|
items: [
|
|
64
80
|
createItem('Hello sstuff', {
|
|
65
81
|
icon: 'logoGolang',
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
82
|
+
disabled: true
|
|
83
|
+
})
|
|
84
|
+
]
|
|
85
|
+
})
|
|
86
|
+
]
|
|
70
87
|
}),
|
|
71
|
-
createItem('Visualizations')
|
|
72
|
-
]
|
|
88
|
+
createItem('Visualizations')
|
|
89
|
+
]
|
|
73
90
|
}),
|
|
74
91
|
createItem('Index Patterns'),
|
|
75
92
|
createItem('Saved Objects'),
|
|
76
|
-
createItem('Reporting')
|
|
77
|
-
]
|
|
93
|
+
createItem('Reporting')
|
|
94
|
+
]
|
|
78
95
|
}),
|
|
79
96
|
createItem('Logstash', {
|
|
80
97
|
icon: 'logoLogstash',
|
|
81
|
-
items: [createItem('Pipeline viewer')]
|
|
82
|
-
})
|
|
98
|
+
items: [createItem('Pipeline viewer')]
|
|
99
|
+
})
|
|
83
100
|
];
|
|
84
101
|
}
|
|
85
102
|
}
|
|
86
|
-
|
|
87
|
-
```
|
|
103
|
+
```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
<EuiPageHeader @pageTitle="Side nav"/>
|
|
@@ -2,28 +2,26 @@
|
|
|
2
2
|
order: 1
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
<EuiText>
|
|
6
|
+
<p><strong>EuiSteps</strong> presents procedural content in a numbered outline format. It is best used when presenting instructional content that must be conducted in a particular order. It requires a <EuiCode>title</EuiCode> and <EuiCode>children</EuiCode> to be present and will automatically increment the step number based on the initial <EuiCode>firstStepNumber</EuiCode>.</p>
|
|
7
|
+
</EuiText>
|
|
6
8
|
|
|
7
9
|
```hbs template
|
|
8
10
|
<EuiSteps>
|
|
9
|
-
<EuiStep
|
|
10
|
-
|
|
11
|
-
@title="Step 1"
|
|
12
|
-
>
|
|
13
|
-
You do this!
|
|
11
|
+
<EuiStep @step={{1}} @title='Step 1'>
|
|
12
|
+
Do this first
|
|
14
13
|
</EuiStep>
|
|
15
|
-
<EuiStep
|
|
16
|
-
|
|
17
|
-
@title="Step 2"
|
|
18
|
-
>
|
|
19
|
-
You do that!
|
|
20
|
-
</EuiStep>
|
|
21
|
-
<EuiStep
|
|
22
|
-
@step={{3}}
|
|
23
|
-
@title="Step 3"
|
|
24
|
-
@status="danger"
|
|
25
|
-
>
|
|
26
|
-
You did what!?
|
|
14
|
+
<EuiStep @step={{2}} @title='Step 2'>
|
|
15
|
+
Then this
|
|
27
16
|
</EuiStep>
|
|
28
17
|
</EuiSteps>
|
|
18
|
+
<EuiSpacer @size='m' />
|
|
19
|
+
<EuiText>
|
|
20
|
+
<p>
|
|
21
|
+
Set
|
|
22
|
+
<EuiCode>firstStepNumber</EuiCode>
|
|
23
|
+
to continue step numbering after any type of break in the content
|
|
24
|
+
</p>
|
|
25
|
+
</EuiText>
|
|
26
|
+
<EuiSpacer @size='m' />
|
|
29
27
|
```
|
|
@@ -1,63 +1,60 @@
|
|
|
1
1
|
---
|
|
2
|
-
order:
|
|
2
|
+
order: 4
|
|
3
3
|
---
|
|
4
4
|
|
|
5
5
|
# Statuses
|
|
6
6
|
|
|
7
|
+
<EuiText>
|
|
8
|
+
<p>Steps can optionally include <EuiCode>status</EuiCode> prop that will alter the look of the number prefix. The options are <EuiCode>incomplete</EuiCode>, <EuiCode>complete</EuiCode>, <EuiCode>warning</EuiCode>, <EuiCode>danger</EuiCode>, <EuiCode>disabled</EuiCode> and <EuiCode>loading</EuiCode>. This is used mostly as a final step when you need to make some sort of final check.</p>
|
|
9
|
+
</EuiText>
|
|
10
|
+
|
|
7
11
|
```hbs template
|
|
8
12
|
<EuiSteps>
|
|
9
|
-
<EuiStep
|
|
10
|
-
@step={{1}}
|
|
11
|
-
@title="Step 1"
|
|
12
|
-
>
|
|
13
|
+
<EuiStep @step={{1}} @title='Step 1'>
|
|
13
14
|
You do this!
|
|
14
15
|
</EuiStep>
|
|
15
|
-
<EuiStep
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
>
|
|
20
|
-
You did good! {{if (eq this.status "danger") "(or not)"}}
|
|
21
|
-
<EuiSubSteps>
|
|
22
|
-
Click the buttons below to change status!
|
|
16
|
+
<EuiStep @title='Step 2' @status={{this.status}} @step={{2}}>
|
|
17
|
+
We are fancy buttons just waiting to be pushed!
|
|
18
|
+
<div>
|
|
19
|
+
<EuiSpacer />
|
|
23
20
|
<EuiFlexGroup>
|
|
24
21
|
<EuiFlexItem @grow={{false}}>
|
|
25
|
-
<EuiButton @color=
|
|
22
|
+
<EuiButton @color='danger' {{on 'click' this.setDanger}}>
|
|
26
23
|
Set Danger
|
|
27
24
|
</EuiButton>
|
|
28
25
|
</EuiFlexItem>
|
|
29
26
|
<EuiFlexItem @grow={{false}}>
|
|
30
|
-
<EuiButton @color=
|
|
27
|
+
<EuiButton @color='success' {{on 'click' this.setComplete}}>
|
|
31
28
|
Set Complete
|
|
32
29
|
</EuiButton>
|
|
33
30
|
</EuiFlexItem>
|
|
34
31
|
<EuiFlexItem @grow={{false}}>
|
|
35
|
-
<EuiButton @color=
|
|
32
|
+
<EuiButton @color='warning' {{on 'click' this.setWarning}}>
|
|
36
33
|
Set Warning
|
|
37
34
|
</EuiButton>
|
|
38
35
|
</EuiFlexItem>
|
|
39
36
|
<EuiFlexItem @grow={{false}}>
|
|
40
|
-
<EuiButton @color=
|
|
37
|
+
<EuiButton @color='primary' {{on 'click' this.setLoading}}>
|
|
41
38
|
Set Loading
|
|
42
39
|
</EuiButton>
|
|
43
40
|
</EuiFlexItem>
|
|
44
41
|
<EuiFlexItem @grow={{false}}>
|
|
45
|
-
<EuiButtonEmpty {{on
|
|
42
|
+
<EuiButtonEmpty {{on 'click' this.setDisabled}}>
|
|
46
43
|
Set Disabled
|
|
47
44
|
</EuiButtonEmpty>
|
|
48
45
|
</EuiFlexItem>
|
|
49
46
|
<EuiFlexItem @grow={{false}}>
|
|
50
|
-
<EuiButtonEmpty {{on
|
|
47
|
+
<EuiButtonEmpty {{on 'click' this.setIncomplete}}>
|
|
51
48
|
Set Incomplete
|
|
52
49
|
</EuiButtonEmpty>
|
|
53
50
|
</EuiFlexItem>
|
|
54
51
|
<EuiFlexItem @grow={{false}}>
|
|
55
|
-
<EuiButtonEmpty {{on
|
|
52
|
+
<EuiButtonEmpty {{on 'click' this.reset}}>
|
|
56
53
|
Reset
|
|
57
54
|
</EuiButtonEmpty>
|
|
58
55
|
</EuiFlexItem>
|
|
59
56
|
</EuiFlexGroup>
|
|
60
|
-
</
|
|
57
|
+
</div>
|
|
61
58
|
</EuiStep>
|
|
62
59
|
</EuiSteps>
|
|
63
60
|
```
|
|
@@ -1,28 +1,30 @@
|
|
|
1
1
|
---
|
|
2
|
-
order:
|
|
2
|
+
order: 5
|
|
3
3
|
---
|
|
4
4
|
|
|
5
5
|
# Horizontal Steps
|
|
6
6
|
|
|
7
|
+
<EuiText>
|
|
8
|
+
<p>For use when forms/setup instructions can and should be split into multiple pages. Each step should correspond to an individual page of form elements, using the <EuiCode>status</EuiCode> key to denote the user's progress.</p>
|
|
9
|
+
<p>For horizontal steps, the <EuiCode>status</EuiCode> key defaults to <EuiCode>"incomplete"</EuiCode> and the default filled styling is reserved for indicating <EuiCode>"current"</EuiCode> status.</p>
|
|
10
|
+
</EuiText>
|
|
11
|
+
|
|
7
12
|
```hbs template
|
|
8
13
|
<EuiStepsHorizontal>
|
|
9
14
|
<EuiStepHorizontal
|
|
10
|
-
@title=
|
|
15
|
+
@title='Completed step 1'
|
|
16
|
+
@status='complete'
|
|
11
17
|
@step={{1}}
|
|
12
18
|
@isComplete={{true}}
|
|
13
19
|
/>
|
|
20
|
+
<EuiStepHorizontal @title='Selected step 2' @step={{2}} @status='current' />
|
|
14
21
|
<EuiStepHorizontal
|
|
15
|
-
@title=
|
|
16
|
-
@step={{2}}
|
|
17
|
-
@isComplete={{true}}
|
|
18
|
-
/>
|
|
19
|
-
<EuiStepHorizontal
|
|
20
|
-
@title="Payment Method"
|
|
22
|
+
@title='Incomplete step 3 which will wrap to the next line'
|
|
21
23
|
@step={{3}}
|
|
22
|
-
@isSelected={{true}}
|
|
23
24
|
/>
|
|
24
25
|
<EuiStepHorizontal
|
|
25
|
-
@title=
|
|
26
|
+
@title='Disabled step 4'
|
|
27
|
+
@status='disabled'
|
|
26
28
|
@step={{4}}
|
|
27
29
|
@disabled={{true}}
|
|
28
30
|
/>
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
order: 2
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Complex steps
|
|
6
|
+
|
|
7
|
+
<EuiText>
|
|
8
|
+
<p>If you need to call out a set of substeps that are not lines of code, most likely a <EuiCode><ol/></EuiCode>, wrap the block in a <EuiCode><EuiSubSteps/></EuiCode>.</p>
|
|
9
|
+
</EuiText>
|
|
10
|
+
|
|
11
|
+
```hbs template
|
|
12
|
+
<EuiSteps>
|
|
13
|
+
<EuiStep @step={{1}} @title='Step 1 has intro plus code snippet'>
|
|
14
|
+
<EuiText>
|
|
15
|
+
<p>Run this code snippet to install things.</p>
|
|
16
|
+
</EuiText>
|
|
17
|
+
<EuiSpacer />
|
|
18
|
+
<EuiCodeBlock @language='bash'>npm install</EuiCodeBlock>
|
|
19
|
+
</EuiStep>
|
|
20
|
+
<EuiStep @step={{2}} @title='Step 2 has sub steps'>
|
|
21
|
+
<EuiText>
|
|
22
|
+
<p>
|
|
23
|
+
In order to complete this step, do the following things{' '}
|
|
24
|
+
<strong>in order</strong>.
|
|
25
|
+
</p>
|
|
26
|
+
<EuiSubSteps>
|
|
27
|
+
<ol>
|
|
28
|
+
<li>Do thing 1</li>
|
|
29
|
+
<li>Do thing 2</li>
|
|
30
|
+
<li>Do thing 3</li>
|
|
31
|
+
</ol>
|
|
32
|
+
</EuiSubSteps>
|
|
33
|
+
<p>Here are some bullet point reminders.</p>
|
|
34
|
+
<ul>
|
|
35
|
+
<li>Reminder 1</li>
|
|
36
|
+
<li>Reminder 2</li>
|
|
37
|
+
<li>Reminder 3</li>
|
|
38
|
+
</ul>
|
|
39
|
+
</EuiText>
|
|
40
|
+
</EuiStep>
|
|
41
|
+
<EuiStep @step={{3}} @title='Step 3 has an intro and one line instruction'>
|
|
42
|
+
<EuiText>
|
|
43
|
+
<p>
|
|
44
|
+
Now that you've completed step 2, go find the{' '}
|
|
45
|
+
<EuiCode>thing</EuiCode>.
|
|
46
|
+
</p>
|
|
47
|
+
<p>
|
|
48
|
+
Go to
|
|
49
|
+
<strong>Overview >> Endpoints</strong>
|
|
50
|
+
note{' '}
|
|
51
|
+
<strong>Elasticsearch</strong>
|
|
52
|
+
as
|
|
53
|
+
<EuiCode><thing></EuiCode>.
|
|
54
|
+
</p>
|
|
55
|
+
</EuiText>
|
|
56
|
+
</EuiStep>
|
|
57
|
+
<EuiStep @step={{4}} @title='The last step has two options'>
|
|
58
|
+
<EuiText @size='s'>
|
|
59
|
+
<h3>
|
|
60
|
+
<strong>Option 1:</strong>
|
|
61
|
+
If you have this type of instance
|
|
62
|
+
</h3>
|
|
63
|
+
<EuiSubSteps>
|
|
64
|
+
<ol>
|
|
65
|
+
<li>Do thing 1</li>
|
|
66
|
+
<li>Do thing 2</li>
|
|
67
|
+
<li>Do thing 3</li>
|
|
68
|
+
</ol>
|
|
69
|
+
</EuiSubSteps>
|
|
70
|
+
<h3>
|
|
71
|
+
<strong>Option 2:</strong>
|
|
72
|
+
If you have the other type of instance
|
|
73
|
+
</h3>
|
|
74
|
+
<EuiSubSteps>
|
|
75
|
+
<ol>
|
|
76
|
+
<li>Do thing 1</li>
|
|
77
|
+
<li>Do thing 2</li>
|
|
78
|
+
<li>Do thing 3</li>
|
|
79
|
+
</ol>
|
|
80
|
+
</EuiSubSteps>
|
|
81
|
+
</EuiText>
|
|
82
|
+
</EuiStep>
|
|
83
|
+
</EuiSteps>
|
|
84
|
+
```
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
order: 3
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Heading elements
|
|
6
|
+
|
|
7
|
+
<EuiText>
|
|
8
|
+
<p>To aid with accessibility and hierarchical headings, you can and should pass in a heading element to use for each step title. The example below shows that the logical heading element should be an <EuiCode>h2</EuiCode>and therefore adds <EuiCode>headingElement<span class="token verb keyword">=</span><span class="token conjunction variable">"</span>h2<span class="token conjunction variable">"</span></EuiCode> to the EuiSteps component.</p>
|
|
9
|
+
<p>The style of the title will <strong>not</strong> be affected.</p>
|
|
10
|
+
</EuiText>
|
|
11
|
+
|
|
12
|
+
```hbs template
|
|
13
|
+
<div>
|
|
14
|
+
<EuiTitle size='l'>
|
|
15
|
+
<h1>Heading 1</h1>
|
|
16
|
+
</EuiTitle>
|
|
17
|
+
|
|
18
|
+
<EuiSpacer size='xl' />
|
|
19
|
+
|
|
20
|
+
<EuiSteps @headingElement='h2'>
|
|
21
|
+
<EuiStep @step={{1}} @title='Step 1'>
|
|
22
|
+
<EuiTitle @size='xs'>
|
|
23
|
+
<h3>Did you notice the step title is inside a Heading 2 element?</h3>
|
|
24
|
+
</EuiTitle>
|
|
25
|
+
</EuiStep>
|
|
26
|
+
|
|
27
|
+
</EuiSteps>
|
|
28
|
+
</div>
|
|
29
|
+
```
|
package/docs/navigation/steps.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
<EuiPageHeader @pageTitle="Steps"/>
|
|
@@ -1,109 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
order: 1
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<EuiText>
|
|
7
|
+
<p><strong>EuiTabs</strong> is a wrapping component that requires <strong>EuiTab</strong> components as direct children. You control the displayed contents and current state through props on EuiTab like <EuiCode>isSelected</EuiCode> and <EuiCode>onClick</EuiCode>.</p><p>Use the <EuiCode>prepend</EuiCode> and <EuiCode>append</EuiCode> tab props to add content before and after the tab label respectively.</p>
|
|
8
|
+
</EuiText>
|
|
2
9
|
|
|
3
10
|
```hbs template
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
</b>
|
|
14
|
-
</EuiTitle>
|
|
15
|
-
<EuiTabs @display="condensed" as |Tab|>
|
|
16
|
-
<Tab @isSelected={{true}}>
|
|
17
|
-
Example 1
|
|
18
|
-
</Tab>
|
|
19
|
-
<Tab>
|
|
20
|
-
Example 2
|
|
21
|
-
</Tab>
|
|
22
|
-
<Tab>
|
|
23
|
-
Example 3
|
|
24
|
-
</Tab>
|
|
11
|
+
<EuiTabs>
|
|
12
|
+
{{#each this.tabs as |tab|}}
|
|
13
|
+
<EuiTab
|
|
14
|
+
@isSelected={{eq tab.id this.selectedTab.id}}
|
|
15
|
+
{{on 'click' (set this 'selectedTab' tab)}}
|
|
16
|
+
>
|
|
17
|
+
{{tab.name}}
|
|
18
|
+
</EuiTab>
|
|
19
|
+
{{/each}}
|
|
25
20
|
</EuiTabs>
|
|
26
|
-
<EuiSpacer @size="xxl" />
|
|
27
|
-
<EuiTitle @size="s">
|
|
28
|
-
Simple tabs with
|
|
29
|
-
<b>
|
|
30
|
-
disabled
|
|
31
|
-
</b>
|
|
32
|
-
and
|
|
33
|
-
<b>
|
|
34
|
-
expand = true
|
|
35
|
-
</b>
|
|
36
|
-
</EuiTitle>
|
|
37
|
-
<EuiTabs @expand={{true}} as |Tab|>
|
|
38
|
-
<Tab @disabled={{true}}>
|
|
39
|
-
Example 1
|
|
40
|
-
</Tab>
|
|
41
|
-
<Tab>
|
|
42
|
-
Example 2
|
|
43
|
-
</Tab>
|
|
44
|
-
</EuiTabs>
|
|
45
|
-
<EuiSpacer @size="xxl" />
|
|
46
|
-
<EuiTitle @size="s">
|
|
47
|
-
Tabbed content
|
|
48
|
-
</EuiTitle>
|
|
49
|
-
<EuiTabbedContent @tabs={{this.tabsItems1}} />
|
|
50
|
-
<EuiSpacer @size="xxl" />
|
|
51
|
-
<EuiTitle @size="s">
|
|
52
|
-
Tabbed content with
|
|
53
|
-
<b>
|
|
54
|
-
onTabClick
|
|
55
|
-
</b>
|
|
56
|
-
</EuiTitle>
|
|
57
|
-
<EuiTabbedContent @tabs={{this.tabsItems2}} @onTabClick={{this.sayMyName}} />
|
|
58
|
-
<EuiSpacer @size="xxl" />
|
|
59
|
-
<EuiTitle @size="s">
|
|
60
|
-
Tabbed content with
|
|
61
|
-
<b>
|
|
62
|
-
initialSelectedTab
|
|
63
|
-
</b>
|
|
64
|
-
</EuiTitle>
|
|
65
|
-
<EuiTabbedContent
|
|
66
|
-
@tabs={{this.tabsItems2}}
|
|
67
|
-
@initialSelectedTab={{object-at 2 this.tabsItems2}}
|
|
68
|
-
/>
|
|
69
|
-
<EuiSpacer @size="xxl" />
|
|
70
|
-
<EuiTitle @size="s">
|
|
71
|
-
Tabbed content with
|
|
72
|
-
<b>
|
|
73
|
-
selectedTab
|
|
74
|
-
</b>
|
|
75
|
-
</EuiTitle>
|
|
76
|
-
<p>
|
|
77
|
-
This is used if you want to control the tabs from the outside, however the internal state is not propagated to the
|
|
78
|
-
outside
|
|
79
|
-
</p>
|
|
80
|
-
<EuiSpacer />
|
|
81
|
-
<EuiButton @color="primary" {{on "click" this.cycleTabs}}>
|
|
82
|
-
Next tab
|
|
83
|
-
</EuiButton>
|
|
84
|
-
Outer selected tab:
|
|
85
|
-
{{get (object-at this.tabsIndex2 this.tabsItems2) "name"}}
|
|
86
|
-
<EuiTabbedContent
|
|
87
|
-
@tabs={{this.tabsItems2}}
|
|
88
|
-
@selectedTab={{object-at this.tabsIndex2 this.tabsItems2}}
|
|
89
|
-
/>
|
|
90
|
-
|
|
91
21
|
<EuiSpacer />
|
|
92
|
-
<
|
|
93
|
-
|
|
94
|
-
</
|
|
95
|
-
<EuiTabbedContent
|
|
96
|
-
@tabs={{array
|
|
97
|
-
(hash id="hello" name="Hello")
|
|
98
|
-
(hash id="goodbye" name="Goodbye")
|
|
99
|
-
}}
|
|
100
|
-
>
|
|
101
|
-
<:selectedTabContent as |currentTab|>
|
|
102
|
-
<EuiTitle>
|
|
103
|
-
{{currentTab.name}}
|
|
104
|
-
</EuiTitle>
|
|
105
|
-
</:selectedTabContent>
|
|
106
|
-
</EuiTabbedContent>
|
|
22
|
+
<EuiText>
|
|
23
|
+
{{this.selectedTab.content}}
|
|
24
|
+
</EuiText>
|
|
107
25
|
```
|
|
108
26
|
|
|
109
27
|
```js component
|
|
@@ -112,54 +30,38 @@ import { action } from '@ember/object';
|
|
|
112
30
|
import { tracked } from '@glimmer/tracking';
|
|
113
31
|
|
|
114
32
|
export default class DemoTabsComponent extends Component {
|
|
115
|
-
@tracked
|
|
116
|
-
|
|
33
|
+
@tracked selectedTab = 0;
|
|
34
|
+
@tracked tabs = [
|
|
35
|
+
{
|
|
36
|
+
id: 'cobalt--id',
|
|
37
|
+
name: 'Cobalt',
|
|
38
|
+
content:
|
|
39
|
+
' Cobalt is a chemical element with symbol Co and atomic number 27. Like nickel, cobalt is found in the Earth’s crust only in chemically combined form, save for small deposits found in alloys of natural meteoric iron. The free element, produced by reductive smelting, is a hard, lustrous, silver-gray metal.'
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
id: 'dextrose--id',
|
|
43
|
+
name: 'Dextrose',
|
|
44
|
+
content:
|
|
45
|
+
'Intravenous sugar solution, also known as dextrose solution, is a mixture of dextrose (glucose) and water. It is used to treat low blood sugar or water loss without electrolyte loss.'
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: 'hydrogen--id',
|
|
49
|
+
name: 'Hydrogen',
|
|
50
|
+
prepend: 'heatmap',
|
|
51
|
+
disabled: true,
|
|
52
|
+
content:
|
|
53
|
+
'Intravenous sugar solution, also known as dextrose solution, is a mixture of dextrose (glucose) and water. It is used to treat low blood sugar or water loss without electrolyte loss.'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: 'monosodium_glutammate--id',
|
|
57
|
+
name: 'Monosodium Glutamate',
|
|
58
|
+
content:
|
|
59
|
+
' Monosodium glutamate (MSG, also known as sodium glutamate) is the sodium salt of glutamic acid, one of the most abundant naturally occurring non-essential amino acids. Monosodium glutamate is found naturally in tomatoes, cheese and other foods.'
|
|
60
|
+
}
|
|
61
|
+
];
|
|
117
62
|
constructor() {
|
|
118
63
|
super(...arguments);
|
|
119
|
-
|
|
120
|
-
this.tabsItems1 = [
|
|
121
|
-
{
|
|
122
|
-
id: 'example1',
|
|
123
|
-
name: 'Example 1',
|
|
124
|
-
content: 'Example 1 content.',
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
id: 'example2',
|
|
128
|
-
name: 'Example 2',
|
|
129
|
-
content: 'Example 2 content.',
|
|
130
|
-
},
|
|
131
|
-
];
|
|
132
|
-
|
|
133
|
-
this.tabsItems2 = [
|
|
134
|
-
{
|
|
135
|
-
id: 'one',
|
|
136
|
-
name: 'Click me 1!',
|
|
137
|
-
content: "Same ol' 1 content.",
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
id: 'two',
|
|
141
|
-
name: 'Click me 2!',
|
|
142
|
-
content: "Same ol' 2 content.",
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
id: 'three',
|
|
146
|
-
name: 'Click me 3!',
|
|
147
|
-
content: "Same ol' 3 content.",
|
|
148
|
-
},
|
|
149
|
-
];
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
sayMyName(tab) {
|
|
153
|
-
alert(`I am ${tab.name || tab.id}`);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
@action
|
|
157
|
-
cycleTabs() {
|
|
158
|
-
this.tabsIndex2++;
|
|
159
|
-
|
|
160
|
-
if (this.tabsIndex2 >= this.tabsItems2.length) {
|
|
161
|
-
this.tabsIndex2 = 0;
|
|
162
|
-
}
|
|
64
|
+
this.selectedTab = this.tabs[0];
|
|
163
65
|
}
|
|
164
66
|
}
|
|
165
67
|
```
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
order: 2
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Tab sizes
|
|
6
|
+
|
|
7
|
+
<EuiText>
|
|
8
|
+
<p><strong>EuiTabs</strong> allow a <EuiCode>size</EuiCode> prop. In general you should always use the default (medium) size. The small size is best for when placing inside popovers or other small containers. Reserve using the large size for when using as primary page navigation, like inside of <a href="#/layout/page-header"><strong>EuiPageHeader</strong></a>.</p><p>You can also use the <EuiCode>expand</EuiCode> prop to evenly stretch each tab horizontally.</p>
|
|
9
|
+
</EuiText>
|
|
10
|
+
|
|
11
|
+
```hbs template
|
|
12
|
+
<div>
|
|
13
|
+
<EuiPopover
|
|
14
|
+
@ownFocus={{true}}
|
|
15
|
+
@isOpen={{this.popover}}
|
|
16
|
+
@anchorPosition='downLeft'
|
|
17
|
+
@closePopover={{set this 'popover' false}}
|
|
18
|
+
>
|
|
19
|
+
<:button>
|
|
20
|
+
<EuiButton
|
|
21
|
+
@iconType='arrowDown'
|
|
22
|
+
@iconSide='right'
|
|
23
|
+
{{on 'click' (set this 'popover' true)}}
|
|
24
|
+
>
|
|
25
|
+
Show Popover
|
|
26
|
+
</EuiButton>
|
|
27
|
+
</:button>
|
|
28
|
+
<:content>
|
|
29
|
+
<EuiTabs>
|
|
30
|
+
{{#each this.tabs as |tab|}}
|
|
31
|
+
<EuiTab
|
|
32
|
+
@isSelected={{eq this.selectedTab.id tab.id}}
|
|
33
|
+
{{on 'click' (set this 'selectedTab' tab)}}
|
|
34
|
+
>
|
|
35
|
+
{{tab.name}}
|
|
36
|
+
</EuiTab>
|
|
37
|
+
{{/each}}
|
|
38
|
+
</EuiTabs>
|
|
39
|
+
<EuiSpacer />
|
|
40
|
+
{{this.selectedTab.content}}
|
|
41
|
+
</:content>
|
|
42
|
+
</EuiPopover>
|
|
43
|
+
</div>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
```js component
|
|
47
|
+
import Component from '@ember/component';
|
|
48
|
+
import { action } from '@ember/object';
|
|
49
|
+
import { tracked } from '@glimmer/tracking';
|
|
50
|
+
|
|
51
|
+
export default class DemoTabsComponent extends Component {
|
|
52
|
+
@tracked selectedTab;
|
|
53
|
+
|
|
54
|
+
constructor() {
|
|
55
|
+
super(...arguments);
|
|
56
|
+
|
|
57
|
+
this.tabs = [
|
|
58
|
+
{
|
|
59
|
+
id: 'example1',
|
|
60
|
+
name: 'Example 1',
|
|
61
|
+
content: 'Example 1 content.'
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: 'example2',
|
|
65
|
+
name: 'Example 2',
|
|
66
|
+
content: 'Example 2 content.'
|
|
67
|
+
}
|
|
68
|
+
];
|
|
69
|
+
|
|
70
|
+
this.selectedTab = this.tabs[0];
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
```
|