@ember-eui/core 8.0.64 → 8.0.66
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/declarations/-private/associate-form-row-label.d.ts +9 -0
- package/declarations/-private/associate-form-row-label.d.ts.map +1 -0
- package/declarations/-private/color.d.ts +64 -0
- package/declarations/-private/color.d.ts.map +1 -0
- package/declarations/-private/css-style.d.ts +11 -0
- package/declarations/-private/css-style.d.ts.map +1 -0
- package/declarations/-private/drag-drop.d.ts +13 -0
- package/declarations/-private/drag-drop.d.ts.map +1 -0
- package/declarations/-private/event-helpers.d.ts +12 -0
- package/declarations/-private/event-helpers.d.ts.map +1 -0
- package/declarations/-private/icon-loader.d.ts +13 -0
- package/declarations/-private/icon-loader.d.ts.map +1 -0
- package/declarations/-private/icons.d.ts +18 -0
- package/declarations/-private/icons.d.ts.map +1 -0
- package/declarations/-private/language-loader.d.ts +12 -0
- package/declarations/-private/language-loader.d.ts.map +1 -0
- package/declarations/-private/languages.d.ts +10 -0
- package/declarations/-private/languages.d.ts.map +1 -0
- package/declarations/-private/link-form-row-control.d.ts +17 -0
- package/declarations/-private/link-form-row-control.d.ts.map +1 -0
- package/declarations/-private/random-id.d.ts +2 -0
- package/declarations/-private/random-id.d.ts.map +1 -1
- package/declarations/-private/resizable.d.ts +34 -0
- package/declarations/-private/resizable.d.ts.map +1 -0
- package/declarations/-private/selectable-options.d.ts +38 -0
- package/declarations/-private/selectable-options.d.ts.map +1 -0
- package/declarations/-private/set-body-class.d.ts +14 -0
- package/declarations/-private/set-body-class.d.ts.map +1 -0
- package/declarations/-private/table.d.ts +20 -0
- package/declarations/-private/table.d.ts.map +1 -0
- package/declarations/-private/text-diff.d.ts +11 -0
- package/declarations/-private/text-diff.d.ts.map +1 -0
- package/declarations/-private/vis-colors.d.ts +8 -0
- package/declarations/-private/vis-colors.d.ts.map +1 -0
- package/declarations/components/eui-aspect-ratio.d.ts +23 -0
- package/declarations/components/eui-aspect-ratio.d.ts.map +1 -0
- package/declarations/components/eui-beacon.d.ts +15 -0
- package/declarations/components/eui-beacon.d.ts.map +1 -0
- package/declarations/components/eui-color-palette-display.d.ts +25 -0
- package/declarations/components/eui-color-palette-display.d.ts.map +1 -0
- package/declarations/components/eui-color-palette-picker.d.ts +53 -0
- package/declarations/components/eui-color-palette-picker.d.ts.map +1 -0
- package/declarations/components/eui-color-picker-swatch.d.ts +19 -0
- package/declarations/components/eui-color-picker-swatch.d.ts.map +1 -0
- package/declarations/components/eui-color-picker.d.ts +153 -0
- package/declarations/components/eui-color-picker.d.ts.map +1 -0
- package/declarations/components/eui-color-stops/thumb.d.ts +56 -0
- package/declarations/components/eui-color-stops/thumb.d.ts.map +1 -0
- package/declarations/components/eui-color-stops.d.ts +100 -0
- package/declarations/components/eui-color-stops.d.ts.map +1 -0
- package/declarations/components/eui-context-menu-item.d.ts +22 -2
- package/declarations/components/eui-context-menu-item.d.ts.map +1 -1
- package/declarations/components/eui-context-menu-panel.d.ts +87 -3
- package/declarations/components/eui-context-menu-panel.d.ts.map +1 -1
- package/declarations/components/eui-context-menu.d.ts +94 -0
- package/declarations/components/eui-context-menu.d.ts.map +1 -0
- package/declarations/components/eui-control-bar.d.ts +110 -0
- package/declarations/components/eui-control-bar.d.ts.map +1 -0
- package/declarations/components/eui-date-picker-range.d.ts +28 -0
- package/declarations/components/eui-date-picker-range.d.ts.map +1 -0
- package/declarations/components/eui-delay-hide.d.ts +21 -0
- package/declarations/components/eui-delay-hide.d.ts.map +1 -0
- package/declarations/components/eui-delay-render.d.ts +21 -0
- package/declarations/components/eui-delay-render.d.ts.map +1 -0
- package/declarations/components/eui-drag-drop-context.d.ts +66 -0
- package/declarations/components/eui-drag-drop-context.d.ts.map +1 -0
- package/declarations/components/eui-draggable.d.ts +76 -0
- package/declarations/components/eui-draggable.d.ts.map +1 -0
- package/declarations/components/eui-droppable.d.ts +86 -0
- package/declarations/components/eui-droppable.d.ts.map +1 -0
- package/declarations/components/eui-expression.d.ts +46 -0
- package/declarations/components/eui-expression.d.ts.map +1 -0
- package/declarations/components/eui-facet-button.d.ts +30 -0
- package/declarations/components/eui-facet-button.d.ts.map +1 -0
- package/declarations/components/eui-facet-group.d.ts +21 -0
- package/declarations/components/eui-facet-group.d.ts.map +1 -0
- package/declarations/components/eui-filter-button.d.ts +54 -0
- package/declarations/components/eui-filter-button.d.ts.map +1 -0
- package/declarations/components/eui-filter-group.d.ts +19 -0
- package/declarations/components/eui-filter-group.d.ts.map +1 -0
- package/declarations/components/eui-filter-select-item.d.ts +29 -0
- package/declarations/components/eui-filter-select-item.d.ts.map +1 -0
- package/declarations/components/eui-highlight.d.ts +26 -0
- package/declarations/components/eui-highlight.d.ts.map +1 -0
- package/declarations/components/eui-hue.d.ts +25 -0
- package/declarations/components/eui-hue.d.ts.map +1 -0
- package/declarations/components/eui-i18n-number.d.ts +25 -0
- package/declarations/components/eui-i18n-number.d.ts.map +1 -0
- package/declarations/components/eui-loading-chart.d.ts +17 -0
- package/declarations/components/eui-loading-chart.d.ts.map +1 -0
- package/declarations/components/eui-loading-elastic.d.ts +15 -0
- package/declarations/components/eui-loading-elastic.d.ts.map +1 -0
- package/declarations/components/eui-mark.d.ts +15 -0
- package/declarations/components/eui-mark.d.ts.map +1 -0
- package/declarations/components/eui-markdown-editor.d.ts +2 -2
- package/declarations/components/eui-markdown-editor.d.ts.map +1 -1
- package/declarations/components/eui-pinnable-list-group.d.ts +59 -0
- package/declarations/components/eui-pinnable-list-group.d.ts.map +1 -0
- package/declarations/components/eui-popover.d.ts +1 -0
- package/declarations/components/eui-popover.d.ts.map +1 -1
- package/declarations/components/eui-refresh-interval.d.ts +46 -0
- package/declarations/components/eui-refresh-interval.d.ts.map +1 -0
- package/declarations/components/eui-resizable-container/button.d.ts +38 -0
- package/declarations/components/eui-resizable-container/button.d.ts.map +1 -0
- package/declarations/components/eui-resizable-container/collapse-button.d.ts +15 -0
- package/declarations/components/eui-resizable-container/collapse-button.d.ts.map +1 -0
- package/declarations/components/eui-resizable-container/panel.d.ts +86 -0
- package/declarations/components/eui-resizable-container/panel.d.ts.map +1 -0
- package/declarations/components/eui-resizable-container.d.ts +82 -0
- package/declarations/components/eui-resizable-container.d.ts.map +1 -0
- package/declarations/components/eui-saturation.d.ts +62 -0
- package/declarations/components/eui-saturation.d.ts.map +1 -0
- package/declarations/components/eui-screen-reader-only.d.ts +23 -0
- package/declarations/components/eui-screen-reader-only.d.ts.map +1 -0
- package/declarations/components/eui-selectable-list-item.d.ts +53 -3
- package/declarations/components/eui-selectable-list-item.d.ts.map +1 -1
- package/declarations/components/eui-selectable-list.d.ts +95 -0
- package/declarations/components/eui-selectable-list.d.ts.map +1 -0
- package/declarations/components/eui-selectable-message.d.ts +19 -0
- package/declarations/components/eui-selectable-message.d.ts.map +1 -0
- package/declarations/components/eui-selectable-search.d.ts +33 -0
- package/declarations/components/eui-selectable-search.d.ts.map +1 -0
- package/declarations/components/eui-selectable-template-sitewide.d.ts +86 -0
- package/declarations/components/eui-selectable-template-sitewide.d.ts.map +1 -0
- package/declarations/components/eui-selectable.d.ts +123 -0
- package/declarations/components/eui-selectable.d.ts.map +1 -0
- package/declarations/components/eui-skip-link.d.ts +31 -0
- package/declarations/components/eui-skip-link.d.ts.map +1 -0
- package/declarations/components/eui-suggest-input.d.ts +55 -0
- package/declarations/components/eui-suggest-input.d.ts.map +1 -0
- package/declarations/components/eui-suggest-item.d.ts +38 -0
- package/declarations/components/eui-suggest-item.d.ts.map +1 -0
- package/declarations/components/eui-suggest.d.ts +52 -0
- package/declarations/components/eui-suggest.d.ts.map +1 -0
- package/declarations/components/eui-super-date-picker/eui-quick-select-popover.d.ts +7 -1
- package/declarations/components/eui-super-date-picker/eui-quick-select-popover.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker.d.ts +69 -18
- package/declarations/components/eui-super-date-picker.d.ts.map +1 -1
- package/declarations/components/eui-super-select-control.d.ts +57 -0
- package/declarations/components/eui-super-select-control.d.ts.map +1 -0
- package/declarations/components/eui-super-select.d.ts +84 -0
- package/declarations/components/eui-super-select.d.ts.map +1 -0
- package/declarations/components/eui-table-body.d.ts +12 -0
- package/declarations/components/eui-table-body.d.ts.map +1 -0
- package/declarations/components/eui-table-footer-cell.d.ts +19 -0
- package/declarations/components/eui-table-footer-cell.d.ts.map +1 -0
- package/declarations/components/eui-table-footer.d.ts +12 -0
- package/declarations/components/eui-table-footer.d.ts.map +1 -0
- package/declarations/components/eui-table-header-button.d.ts +17 -0
- package/declarations/components/eui-table-header-button.d.ts.map +1 -0
- package/declarations/components/eui-table-header-cell-checkbox.d.ts +18 -0
- package/declarations/components/eui-table-header-cell-checkbox.d.ts.map +1 -0
- package/declarations/components/eui-table-header-cell.d.ts +43 -0
- package/declarations/components/eui-table-header-cell.d.ts.map +1 -0
- package/declarations/components/eui-table-header-mobile.d.ts +15 -0
- package/declarations/components/eui-table-header-mobile.d.ts.map +1 -0
- package/declarations/components/eui-table-header.d.ts +16 -0
- package/declarations/components/eui-table-header.d.ts.map +1 -0
- package/declarations/components/eui-table-pagination.d.ts +40 -0
- package/declarations/components/eui-table-pagination.d.ts.map +1 -0
- package/declarations/components/eui-table-row-cell-checkbox.d.ts +12 -0
- package/declarations/components/eui-table-row-cell-checkbox.d.ts.map +1 -0
- package/declarations/components/eui-table-row-cell.d.ts +44 -0
- package/declarations/components/eui-table-row-cell.d.ts.map +1 -0
- package/declarations/components/eui-table-row.d.ts +26 -0
- package/declarations/components/eui-table-row.d.ts.map +1 -0
- package/declarations/components/eui-table-sort-mobile-item.d.ts +22 -0
- package/declarations/components/eui-table-sort-mobile-item.d.ts.map +1 -0
- package/declarations/components/eui-table-sort-mobile.d.ts +37 -0
- package/declarations/components/eui-table-sort-mobile.d.ts.map +1 -0
- package/declarations/components/eui-table.d.ts +28 -0
- package/declarations/components/eui-table.d.ts.map +1 -0
- package/declarations/components/eui-text-diff.d.ts +30 -0
- package/declarations/components/eui-text-diff.d.ts.map +1 -0
- package/declarations/components/eui-token.d.ts +37 -0
- package/declarations/components/eui-token.d.ts.map +1 -0
- package/declarations/components/eui-tour-step-indicator.d.ts +19 -0
- package/declarations/components/eui-tour-step-indicator.d.ts.map +1 -0
- package/declarations/components/eui-tour-step.d.ts +93 -0
- package/declarations/components/eui-tour-step.d.ts.map +1 -0
- package/declarations/components/eui-tour.d.ts +77 -0
- package/declarations/components/eui-tour.d.ts.map +1 -0
- package/declarations/components/eui-tree-view.d.ts +71 -0
- package/declarations/components/eui-tree-view.d.ts.map +1 -0
- package/declarations/components.d.ts +75 -1
- package/declarations/components.d.ts.map +1 -1
- package/declarations/modifiers/resize-observer.d.ts.map +1 -1
- package/declarations/services/eui-i18n.d.ts +6 -0
- package/declarations/services/eui-i18n.d.ts.map +1 -1
- package/declarations/template-registry.d.ts +221 -0
- package/declarations/template-registry.d.ts.map +1 -1
- package/declarations/utils/drag-drop.d.ts +21 -0
- package/declarations/utils/drag-drop.d.ts.map +1 -0
- package/declarations/utils/icons-from-glob.d.ts +39 -0
- package/declarations/utils/icons-from-glob.d.ts.map +1 -0
- package/declarations/utils/preload-icons.d.ts +21 -0
- package/declarations/utils/preload-icons.d.ts.map +1 -0
- package/declarations/utils/token-map.d.ts +11 -0
- package/declarations/utils/token-map.d.ts.map +1 -0
- package/dist/-private/color.js +168 -0
- package/dist/-private/color.js.map +1 -0
- package/dist/-private/css-style.js +24 -0
- package/dist/-private/css-style.js.map +1 -0
- package/dist/-private/random-id.js +2 -1
- package/dist/-private/random-id.js.map +1 -1
- package/dist/-private/resizable.js +44 -0
- package/dist/-private/resizable.js.map +1 -0
- package/dist/-private/selectable-options.js +59 -0
- package/dist/-private/selectable-options.js.map +1 -0
- package/dist/-private/table.js +20 -0
- package/dist/-private/table.js.map +1 -0
- package/dist/-private/text-diff.js +94 -0
- package/dist/-private/text-diff.js.map +1 -0
- package/dist/_app_/components/eui-aspect-ratio.js +1 -0
- package/dist/_app_/components/eui-beacon.js +1 -0
- package/dist/_app_/components/eui-color-palette-display.js +1 -0
- package/dist/_app_/components/eui-color-palette-picker.js +1 -0
- package/dist/_app_/components/eui-color-picker-swatch.js +1 -0
- package/dist/_app_/components/eui-color-picker.js +1 -0
- package/dist/_app_/components/eui-color-stops/thumb.js +1 -0
- package/dist/_app_/components/eui-color-stops.js +1 -0
- package/dist/_app_/components/eui-context-menu.js +1 -0
- package/dist/_app_/components/eui-control-bar.js +1 -0
- package/dist/_app_/components/eui-date-picker-range.js +1 -0
- package/dist/_app_/components/eui-delay-hide.js +1 -0
- package/dist/_app_/components/eui-delay-render.js +1 -0
- package/dist/_app_/components/eui-drag-drop-context.js +1 -0
- package/dist/_app_/components/eui-draggable.js +1 -0
- package/dist/_app_/components/eui-droppable.js +1 -0
- package/dist/_app_/components/eui-expression.js +1 -0
- package/dist/_app_/components/eui-facet-button.js +1 -0
- package/dist/_app_/components/eui-facet-group.js +1 -0
- package/dist/_app_/components/eui-filter-button.js +1 -0
- package/dist/_app_/components/eui-filter-group.js +1 -0
- package/dist/_app_/components/eui-filter-select-item.js +1 -0
- package/dist/_app_/components/eui-highlight.js +1 -0
- package/dist/_app_/components/eui-hue.js +1 -0
- package/dist/_app_/components/eui-i18n-number.js +1 -0
- package/dist/_app_/components/eui-loading-chart.js +1 -0
- package/dist/_app_/components/eui-loading-elastic.js +1 -0
- package/dist/_app_/components/eui-mark.js +1 -0
- package/dist/_app_/components/eui-pinnable-list-group.js +1 -0
- package/dist/_app_/components/eui-refresh-interval.js +1 -0
- package/dist/_app_/components/eui-resizable-container/button.js +1 -0
- package/dist/_app_/components/eui-resizable-container/collapse-button.js +1 -0
- package/dist/_app_/components/eui-resizable-container/panel.js +1 -0
- package/dist/_app_/components/eui-resizable-container.js +1 -0
- package/dist/_app_/components/eui-saturation.js +1 -0
- package/dist/_app_/components/eui-screen-reader-only.js +1 -0
- package/dist/_app_/components/eui-selectable-list.js +1 -0
- package/dist/_app_/components/eui-selectable-message.js +1 -0
- package/dist/_app_/components/eui-selectable-search.js +1 -0
- package/dist/_app_/components/eui-selectable-template-sitewide.js +1 -0
- package/dist/_app_/components/eui-selectable.js +1 -0
- package/dist/_app_/components/eui-skip-link.js +1 -0
- package/dist/_app_/components/eui-suggest-input.js +1 -0
- package/dist/_app_/components/eui-suggest-item.js +1 -0
- package/dist/_app_/components/eui-suggest.js +1 -0
- package/dist/_app_/components/eui-super-select-control.js +1 -0
- package/dist/_app_/components/eui-super-select.js +1 -0
- package/dist/_app_/components/eui-table-body.js +1 -0
- package/dist/_app_/components/eui-table-footer-cell.js +1 -0
- package/dist/_app_/components/eui-table-footer.js +1 -0
- package/dist/_app_/components/eui-table-header-button.js +1 -0
- package/dist/_app_/components/eui-table-header-cell-checkbox.js +1 -0
- package/dist/_app_/components/eui-table-header-cell.js +1 -0
- package/dist/_app_/components/eui-table-header-mobile.js +1 -0
- package/dist/_app_/components/eui-table-header.js +1 -0
- package/dist/_app_/components/eui-table-pagination.js +1 -0
- package/dist/_app_/components/eui-table-row-cell-checkbox.js +1 -0
- package/dist/_app_/components/eui-table-row-cell.js +1 -0
- package/dist/_app_/components/eui-table-row.js +1 -0
- package/dist/_app_/components/eui-table-sort-mobile-item.js +1 -0
- package/dist/_app_/components/eui-table-sort-mobile.js +1 -0
- package/dist/_app_/components/eui-table.js +1 -0
- package/dist/_app_/components/eui-text-diff.js +1 -0
- package/dist/_app_/components/eui-token.js +1 -0
- package/dist/_app_/components/eui-tour-step-indicator.js +1 -0
- package/dist/_app_/components/eui-tour-step.js +1 -0
- package/dist/_app_/components/eui-tour.js +1 -0
- package/dist/_app_/components/eui-tree-view.js +1 -0
- package/dist/components/eui-aspect-ratio.js +45 -0
- package/dist/components/eui-aspect-ratio.js.map +1 -0
- package/dist/components/eui-beacon.js +29 -0
- package/dist/components/eui-beacon.js.map +1 -0
- package/dist/components/eui-color-palette-display.js +67 -0
- package/dist/components/eui-color-palette-display.js.map +1 -0
- package/dist/components/eui-color-palette-picker.js +96 -0
- package/dist/components/eui-color-palette-picker.js.map +1 -0
- package/dist/components/eui-color-picker-swatch.js +51 -0
- package/dist/components/eui-color-picker-swatch.js.map +1 -0
- package/dist/components/eui-color-picker.js +529 -0
- package/dist/components/eui-color-picker.js.map +1 -0
- package/dist/components/eui-color-stops/thumb.js +278 -0
- package/dist/components/eui-color-stops/thumb.js.map +1 -0
- package/dist/components/eui-color-stops.js +405 -0
- package/dist/components/eui-color-stops.js.map +1 -0
- package/dist/components/eui-context-menu-item.js +7 -3
- package/dist/components/eui-context-menu-item.js.map +1 -1
- package/dist/components/eui-context-menu-panel.js +218 -7
- package/dist/components/eui-context-menu-panel.js.map +1 -1
- package/dist/components/eui-context-menu.js +254 -0
- package/dist/components/eui-context-menu.js.map +1 -0
- package/dist/components/eui-control-bar.js +241 -0
- package/dist/components/eui-control-bar.js.map +1 -0
- package/dist/components/eui-date-picker-range.js +42 -0
- package/dist/components/eui-date-picker-range.js.map +1 -0
- package/dist/components/eui-delay-hide.js +68 -0
- package/dist/components/eui-delay-hide.js.map +1 -0
- package/dist/components/eui-delay-render.js +38 -0
- package/dist/components/eui-delay-render.js.map +1 -0
- package/dist/components/eui-drag-drop-context.js +85 -0
- package/dist/components/eui-drag-drop-context.js.map +1 -0
- package/dist/components/eui-draggable.js +201 -0
- package/dist/components/eui-draggable.js.map +1 -0
- package/dist/components/eui-droppable.js +140 -0
- package/dist/components/eui-droppable.js.map +1 -0
- package/dist/components/eui-expression.js +88 -0
- package/dist/components/eui-expression.js.map +1 -0
- package/dist/components/eui-facet-button.js +66 -0
- package/dist/components/eui-facet-button.js.map +1 -0
- package/dist/components/eui-facet-group.js +41 -0
- package/dist/components/eui-facet-group.js.map +1 -0
- package/dist/components/eui-filter-button.js +106 -0
- package/dist/components/eui-filter-button.js.map +1 -0
- package/dist/components/eui-filter-group.js +20 -0
- package/dist/components/eui-filter-group.js.map +1 -0
- package/dist/components/eui-filter-select-item.js +58 -0
- package/dist/components/eui-filter-select-item.js.map +1 -0
- package/dist/components/eui-highlight.js +61 -0
- package/dist/components/eui-highlight.js.map +1 -0
- package/dist/components/eui-hue.js +57 -0
- package/dist/components/eui-hue.js.map +1 -0
- package/dist/components/eui-i18n-number.js +43 -0
- package/dist/components/eui-i18n-number.js.map +1 -0
- package/dist/components/eui-loading-chart.js +34 -0
- package/dist/components/eui-loading-chart.js.map +1 -0
- package/dist/components/eui-loading-elastic.js +34 -0
- package/dist/components/eui-loading-elastic.js.map +1 -0
- package/dist/components/eui-mark.js +17 -0
- package/dist/components/eui-mark.js.map +1 -0
- package/dist/components/eui-page-header-content.js +1 -0
- package/dist/components/eui-page-header-content.js.map +1 -1
- package/dist/components/eui-pinnable-list-group.js +102 -0
- package/dist/components/eui-pinnable-list-group.js.map +1 -0
- package/dist/components/eui-popover.js.map +1 -1
- package/dist/components/eui-refresh-interval.js +205 -0
- package/dist/components/eui-refresh-interval.js.map +1 -0
- package/dist/components/eui-resizable-container/button.js +87 -0
- package/dist/components/eui-resizable-container/button.js.map +1 -0
- package/dist/components/eui-resizable-container/collapse-button.js +36 -0
- package/dist/components/eui-resizable-container/collapse-button.js.map +1 -0
- package/dist/components/eui-resizable-container/panel.js +246 -0
- package/dist/components/eui-resizable-container/panel.js.map +1 -0
- package/dist/components/eui-resizable-container.js +306 -0
- package/dist/components/eui-resizable-container.js.map +1 -0
- package/dist/components/eui-saturation.js +197 -0
- package/dist/components/eui-saturation.js.map +1 -0
- package/dist/components/eui-screen-reader-only.js +25 -0
- package/dist/components/eui-screen-reader-only.js.map +1 -0
- package/dist/components/eui-selectable-list-item.js +131 -24
- package/dist/components/eui-selectable-list-item.js.map +1 -1
- package/dist/components/eui-selectable-list.js +169 -0
- package/dist/components/eui-selectable-list.js.map +1 -0
- package/dist/components/eui-selectable-message.js +27 -0
- package/dist/components/eui-selectable-message.js.map +1 -0
- package/dist/components/eui-selectable-search.js +54 -0
- package/dist/components/eui-selectable-search.js.map +1 -0
- package/dist/components/eui-selectable-template-sitewide.js +259 -0
- package/dist/components/eui-selectable-template-sitewide.js.map +1 -0
- package/dist/components/eui-selectable.js +334 -0
- package/dist/components/eui-selectable.js.map +1 -0
- package/dist/components/eui-skip-link.js +40 -0
- package/dist/components/eui-skip-link.js.map +1 -0
- package/dist/components/eui-suggest-input.js +140 -0
- package/dist/components/eui-suggest-input.js.map +1 -0
- package/dist/components/eui-suggest-item.js +59 -0
- package/dist/components/eui-suggest-item.js.map +1 -0
- package/dist/components/eui-suggest.js +89 -0
- package/dist/components/eui-suggest.js.map +1 -0
- package/dist/components/eui-super-date-picker/eui-quick-select-popover.js +12 -1
- package/dist/components/eui-super-date-picker/eui-quick-select-popover.js.map +1 -1
- package/dist/components/eui-super-date-picker.js +89 -42
- package/dist/components/eui-super-date-picker.js.map +1 -1
- package/dist/components/eui-super-select-control.js +111 -0
- package/dist/components/eui-super-select-control.js.map +1 -0
- package/dist/components/eui-super-select.js +202 -0
- package/dist/components/eui-super-select.js.map +1 -0
- package/dist/components/eui-table-body.js +14 -0
- package/dist/components/eui-table-body.js.map +1 -0
- package/dist/components/eui-table-footer-cell.js +23 -0
- package/dist/components/eui-table-footer-cell.js.map +1 -0
- package/dist/components/eui-table-footer.js +14 -0
- package/dist/components/eui-table-footer.js.map +1 -0
- package/dist/components/eui-table-header-button.js +34 -0
- package/dist/components/eui-table-header-button.js.map +1 -0
- package/dist/components/eui-table-header-cell-checkbox.js +25 -0
- package/dist/components/eui-table-header-cell-checkbox.js.map +1 -0
- package/dist/components/eui-table-header-cell.js +136 -0
- package/dist/components/eui-table-header-cell.js.map +1 -0
- package/dist/components/eui-table-header-mobile.js +17 -0
- package/dist/components/eui-table-header-mobile.js.map +1 -0
- package/dist/components/eui-table-header.js +26 -0
- package/dist/components/eui-table-header.js.map +1 -0
- package/dist/components/eui-table-pagination.js +129 -0
- package/dist/components/eui-table-pagination.js.map +1 -0
- package/dist/components/eui-table-row-cell-checkbox.js +16 -0
- package/dist/components/eui-table-row-cell-checkbox.js.map +1 -0
- package/dist/components/eui-table-row-cell.js +89 -0
- package/dist/components/eui-table-row-cell.js.map +1 -0
- package/dist/components/eui-table-row.js +62 -0
- package/dist/components/eui-table-row.js.map +1 -0
- package/dist/components/eui-table-sort-mobile-item.js +37 -0
- package/dist/components/eui-table-sort-mobile-item.js.map +1 -0
- package/dist/components/eui-table-sort-mobile.js +90 -0
- package/dist/components/eui-table-sort-mobile.js.map +1 -0
- package/dist/components/eui-table.js +29 -0
- package/dist/components/eui-table.js.map +1 -0
- package/dist/components/eui-text-diff.js +52 -0
- package/dist/components/eui-text-diff.js.map +1 -0
- package/dist/components/eui-token.js +74 -0
- package/dist/components/eui-token.js.map +1 -0
- package/dist/components/eui-tour-step-indicator.js +65 -0
- package/dist/components/eui-tour-step-indicator.js.map +1 -0
- package/dist/components/eui-tour-step.js +183 -0
- package/dist/components/eui-tour-step.js.map +1 -0
- package/dist/components/eui-tour.js +102 -0
- package/dist/components/eui-tour.js.map +1 -0
- package/dist/components/eui-tree-view.js +229 -0
- package/dist/components/eui-tree-view.js.map +1 -0
- package/dist/components.js +74 -0
- package/dist/components.js.map +1 -1
- package/dist/modifiers/resize-observer.js.map +1 -1
- package/dist/services/eui-i18n.js +18 -3
- package/dist/services/eui-i18n.js.map +1 -1
- package/dist/styles/ember-eui.css +24 -0
- package/dist/utils/drag-drop.js +43 -0
- package/dist/utils/drag-drop.js.map +1 -0
- package/dist/utils/token-map.js +217 -0
- package/dist/utils/token-map.js.map +1 -0
- package/package.json +69 -1
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { getChromaColor } from '../-private/color.ts';
|
|
3
|
+
import type EuiI18n from '../services/eui-i18n';
|
|
4
|
+
import type { HSV, RGBA } from '../-private/color.ts';
|
|
5
|
+
import type Owner from '@ember/owner';
|
|
6
|
+
export interface EuiColorPickerOutput {
|
|
7
|
+
/** The color as `[r, g, b, a]` (`NaN`s when invalid). */
|
|
8
|
+
rgba: RGBA;
|
|
9
|
+
/** The color as hex (`''` when invalid). */
|
|
10
|
+
hex: string;
|
|
11
|
+
/** Whether the text is a valid color (opaque, unless `@showAlpha`). */
|
|
12
|
+
isValid: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A color field: a text input showing the color (hex or `r, g, b`) that
|
|
16
|
+
* opens a popover to pick it from a saturation square and a hue slider,
|
|
17
|
+
* and from swatches. You keep the color: `@onChange` gets the new text and
|
|
18
|
+
* `{ hex, rgba, isValid }`.
|
|
19
|
+
*/
|
|
20
|
+
export interface EuiColorPickerSignature {
|
|
21
|
+
Element: HTMLDivElement;
|
|
22
|
+
Args: {
|
|
23
|
+
/** The color: a hex string (`'#D36086'`), `'r, g, b'`, or `''`. */
|
|
24
|
+
color?: string;
|
|
25
|
+
/** Called with the new color text and `{ hex, rgba, isValid }`. */
|
|
26
|
+
onChange: (text: string, output: EuiColorPickerOutput) => void;
|
|
27
|
+
/**
|
|
28
|
+
* `'default'` (square, hue and swatches), `'picker'` (no swatches),
|
|
29
|
+
* `'swatch'` (only swatches) or `'secondaryInput'` (only the text
|
|
30
|
+
* field set by `@secondaryInputDisplay`). Defaults to `'default'`.
|
|
31
|
+
*/
|
|
32
|
+
mode?: 'default' | 'picker' | 'swatch' | 'secondaryInput';
|
|
33
|
+
/** `'default'` (a field opening a popover) or `'inline'` (the picker itself). */
|
|
34
|
+
display?: 'default' | 'inline';
|
|
35
|
+
/** The swatches. Defaults to EUI's color-blind safe palette. */
|
|
36
|
+
swatches?: string[];
|
|
37
|
+
/** Adds an opacity slider; the color can then have an alpha channel. */
|
|
38
|
+
showAlpha?: boolean;
|
|
39
|
+
/** `'hex'` or `'rgba'` output. Defaults to the format of `@color`. */
|
|
40
|
+
format?: 'hex' | 'rgba';
|
|
41
|
+
/**
|
|
42
|
+
* A text field inside the popover: `'top'`, `'bottom'` or `'none'`.
|
|
43
|
+
* Defaults to `'none'`.
|
|
44
|
+
*/
|
|
45
|
+
secondaryInputDisplay?: 'top' | 'bottom' | 'none';
|
|
46
|
+
/** Adds a button clearing the color. */
|
|
47
|
+
isClearable?: boolean;
|
|
48
|
+
/** Placeholder while empty. Defaults to "Transparent". */
|
|
49
|
+
placeholder?: string;
|
|
50
|
+
/** Smaller field. */
|
|
51
|
+
compressed?: boolean;
|
|
52
|
+
/** Takes the container's full width. */
|
|
53
|
+
fullWidth?: boolean;
|
|
54
|
+
/** Disables it. */
|
|
55
|
+
disabled?: boolean;
|
|
56
|
+
/** Read-only: the popover does not open. */
|
|
57
|
+
readOnly?: boolean;
|
|
58
|
+
/** Invalid look. */
|
|
59
|
+
isInvalid?: boolean;
|
|
60
|
+
/** `id` of the input. */
|
|
61
|
+
id?: string;
|
|
62
|
+
/** Called when the popover opens. */
|
|
63
|
+
onFocus?: () => void;
|
|
64
|
+
/** Called when the field loses focus or the popover closes. */
|
|
65
|
+
onBlur?: () => void;
|
|
66
|
+
};
|
|
67
|
+
Blocks: {
|
|
68
|
+
/**
|
|
69
|
+
* A custom trigger instead of the field (e.g. a swatch button); yields
|
|
70
|
+
* the function toggling the popover.
|
|
71
|
+
*/
|
|
72
|
+
button: [toggle: () => void];
|
|
73
|
+
/** Content before the field; yields the class to put on it. */
|
|
74
|
+
prepend: [className: string, inputId: string];
|
|
75
|
+
/** Content after the field; yields the class to put on it. */
|
|
76
|
+
append: [className: string, inputId: string];
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
export default class EuiColorPicker extends Component<EuiColorPickerSignature> {
|
|
80
|
+
euiI18n: EuiI18n;
|
|
81
|
+
isColorSelectorShown: boolean;
|
|
82
|
+
colorAsHsv: HSV;
|
|
83
|
+
alphaInput?: string;
|
|
84
|
+
ownId: string;
|
|
85
|
+
prevColor: string | null;
|
|
86
|
+
input?: HTMLInputElement;
|
|
87
|
+
saturation?: HTMLElement;
|
|
88
|
+
firstSwatch?: HTMLElement;
|
|
89
|
+
constructor(owner: Owner, args: EuiColorPickerSignature['Args']);
|
|
90
|
+
get id(): string;
|
|
91
|
+
get mode(): string;
|
|
92
|
+
get secondaryInputDisplay(): string;
|
|
93
|
+
get chromaColor(): ReturnType<typeof getChromaColor>;
|
|
94
|
+
get preferredFormat(): 'hex' | 'rgba';
|
|
95
|
+
get alphaChannel(): number;
|
|
96
|
+
get alphaRangeValue(): number;
|
|
97
|
+
/** The color as HSV; the hue is kept for colors without one. */
|
|
98
|
+
get usableHsv(): HSV;
|
|
99
|
+
get hex(): string | undefined;
|
|
100
|
+
get inputValue(): string;
|
|
101
|
+
get placeholder(): string | undefined;
|
|
102
|
+
get showPicker(): boolean;
|
|
103
|
+
get showSwatches(): boolean;
|
|
104
|
+
get swatches(): string[];
|
|
105
|
+
get canClear(): boolean;
|
|
106
|
+
get panelClasses(): string;
|
|
107
|
+
get labels(): {
|
|
108
|
+
popover: string;
|
|
109
|
+
color: string;
|
|
110
|
+
error: string;
|
|
111
|
+
alpha: string;
|
|
112
|
+
open: string;
|
|
113
|
+
closed: string;
|
|
114
|
+
};
|
|
115
|
+
output(text: string): EuiColorPickerOutput;
|
|
116
|
+
change(text: string): void;
|
|
117
|
+
updateColorAsHsv(hsv: HSV): void;
|
|
118
|
+
updateWithHsv(hsv: HSV): void;
|
|
119
|
+
showColorSelector(): void;
|
|
120
|
+
closeColorSelector(): void;
|
|
121
|
+
toggle(): void;
|
|
122
|
+
/** Closes the popover and returns to the field, to keep adjusting. */
|
|
123
|
+
finalSelection(): void;
|
|
124
|
+
onInputClick(): void;
|
|
125
|
+
onInputKeyDown(event: KeyboardEvent): void;
|
|
126
|
+
onInputBlur(): void;
|
|
127
|
+
/** Arrow down opens the popover, then moves into it. */
|
|
128
|
+
onLayoutKeyDown(event: KeyboardEvent): void;
|
|
129
|
+
/** Enter in the picker confirms the color. */
|
|
130
|
+
onPickerKeyDown(event: KeyboardEvent): void;
|
|
131
|
+
onColorInput(event: Event): void;
|
|
132
|
+
clear(): void;
|
|
133
|
+
onSaturationChange([, s, v]: HSV): void;
|
|
134
|
+
onHueChange(hue: number): void;
|
|
135
|
+
onSwatchClick(swatch: string): void;
|
|
136
|
+
onAlphaChange(event: Event, isValid: boolean): void;
|
|
137
|
+
registerInput: (element: HTMLInputElement | null) => void;
|
|
138
|
+
registerSaturation: import("ember-modifier").FunctionBasedModifier<{
|
|
139
|
+
Args: {
|
|
140
|
+
Positional: unknown[];
|
|
141
|
+
Named: import("ember-modifier/-private/signature.js").EmptyObject;
|
|
142
|
+
};
|
|
143
|
+
Element: HTMLElement;
|
|
144
|
+
}>;
|
|
145
|
+
registerFirstSwatch: import("ember-modifier").FunctionBasedModifier<{
|
|
146
|
+
Args: {
|
|
147
|
+
Positional: [number];
|
|
148
|
+
Named: import("ember-modifier/-private/signature.js").EmptyObject;
|
|
149
|
+
};
|
|
150
|
+
Element: HTMLElement;
|
|
151
|
+
}>;
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=eui-color-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-color-picker.d.ts","sourceRoot":"","sources":["../../src/components/eui-color-picker.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAW3C,OAAO,EACL,cAAc,EAOf,MAAM,sBAAsB,CAAC;AAY9B,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,MAAM,WAAW,oBAAoB;IACnC,yDAAyD;IACzD,IAAI,EAAE,IAAI,CAAC;IACX,4CAA4C;IAC5C,GAAG,EAAE,MAAM,CAAC;IACZ,uEAAuE;IACvE,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE;QACJ,mEAAmE;QACnE,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,mEAAmE;QACnE,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,E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-private/color.ts';
|
|
4
|
+
interface ThumbSignature {
|
|
5
|
+
Element: HTMLButtonElement;
|
|
6
|
+
Args: {
|
|
7
|
+
stop: number;
|
|
8
|
+
color: string;
|
|
9
|
+
index: number;
|
|
10
|
+
count: number;
|
|
11
|
+
onChange: (colorStop: ColorStop) => void;
|
|
12
|
+
onFocus: () => void;
|
|
13
|
+
onRemove?: () => void;
|
|
14
|
+
globalMin: number;
|
|
15
|
+
globalMax: number;
|
|
16
|
+
localMin: number;
|
|
17
|
+
localMax: number;
|
|
18
|
+
min?: number;
|
|
19
|
+
max?: number;
|
|
20
|
+
isRangeMin: boolean;
|
|
21
|
+
isRangeMax: boolean;
|
|
22
|
+
trackWidth: number;
|
|
23
|
+
parent?: HTMLElement;
|
|
24
|
+
mode?: 'default' | 'swatch' | 'picker';
|
|
25
|
+
showAlpha?: boolean;
|
|
26
|
+
swatches?: string[];
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
readOnly?: boolean;
|
|
29
|
+
isPopoverOpen: boolean;
|
|
30
|
+
openPopover: () => void;
|
|
31
|
+
closePopover: () => void;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/** @private One stop of EuiColorStops: a thumb opening an edit popover. */
|
|
35
|
+
export default class EuiColorStopThumb extends Component<ThumbSignature> {
|
|
36
|
+
euiI18n: EuiI18n;
|
|
37
|
+
hasFocus: boolean;
|
|
38
|
+
get background(): string | undefined;
|
|
39
|
+
get position(): string;
|
|
40
|
+
get stopIsInvalid(): boolean;
|
|
41
|
+
get colorIsInvalid(): boolean;
|
|
42
|
+
get classes(): string;
|
|
43
|
+
t: (token: string, text: string) => string;
|
|
44
|
+
get valueText(): string;
|
|
45
|
+
/** Clamped to the neighbouring stops. */
|
|
46
|
+
changeStop(value: number): void;
|
|
47
|
+
onStopInput(event: Event): void;
|
|
48
|
+
onColorChange(color: string): void;
|
|
49
|
+
onMouseDown(event: MouseEvent): void;
|
|
50
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
51
|
+
remove(): void;
|
|
52
|
+
onFocus(): void;
|
|
53
|
+
setFocus(value: boolean): void;
|
|
54
|
+
}
|
|
55
|
+
export {};
|
|
56
|
+
//# sourceMappingURL=thumb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thumb.d.ts","sourceRoot":"","sources":["../../../src/components/eui-color-stops/thumb.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AA0B3C,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD,UAAU,cAAc;IACtB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,IAAI,CAAC;QACzC,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;QACtB,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,OAAO,CAAC;QACpB,UAAU,EAAE,OAAO,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,CAAC,EAAE,WAAW,CAAC;QACrB,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;QACvC,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,aAAa,EAAE,OAAO,CAAC;QACvB,WAAW,EAAE,MAAM,IAAI,CAAC;QACxB,YAAY,EAAE,MAAM,IAAI,CAAC;KAC1B,CAAC;CACH;AAED,2EAA2E;AAC3E,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,SAAS,CAAC,cAAc,CAAC;IACrD,OAAO,EAAE,OAAO,CAAC;IAEzB,QAAQ,UAAS;IAE1B,IAAI,UAAU,IAAI,MAAM,GAAG,SAAS,CAEnC;IAED,IAAI,QAAQ,IAAI,MAAM,CAIrB;IAED,IAAI,aAAa,IAAI,OAAO,CAE3B;IAED,IAAI,cAAc,IAAI,OAAO,CAE5B;IAED,IAAI,OAAO,IAAI,MAAM,CAIpB;IAED,CAAC,UAAW,MAAM,QAAQ,MAAM,KAAG,MAAM,CAAiE;IAE1G,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED,yCAAyC;IACzC,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAO/B,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAW/B,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAKlC,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IA4BpC,SAAS,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAkBrC,MAAM,IAAI,IAAI;IAQd,OAAO,IAAI,IAAI;IAMf,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;CAiI/B"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type EuiI18n from '../services/eui-i18n';
|
|
3
|
+
import type { ColorStop } from '../-private/color.ts';
|
|
4
|
+
export type { ColorStop };
|
|
5
|
+
type IndexedStop = ColorStop & {
|
|
6
|
+
id: number;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* An editable gradient: a track with color stops (a value and a color
|
|
10
|
+
* each) to drag, click to edit, add (click the track) and remove, e.g. to
|
|
11
|
+
* color a map or a chart by value. You keep the stops: `@onChange` gets
|
|
12
|
+
* the new ones and whether any is invalid.
|
|
13
|
+
*/
|
|
14
|
+
export interface EuiColorStopsSignature {
|
|
15
|
+
Element: HTMLDivElement;
|
|
16
|
+
Args: {
|
|
17
|
+
/** The stops: `[{ stop: 0, color: '#54B399' }, …]`. */
|
|
18
|
+
colorStops: ColorStop[];
|
|
19
|
+
/** Called with the new stops and whether any stop is invalid. */
|
|
20
|
+
onChange: (colorStops: ColorStop[], isInvalid: boolean) => void;
|
|
21
|
+
/** Accessible name, e.g. "Map colors". */
|
|
22
|
+
label: string;
|
|
23
|
+
/** Lowest stop value; by default the track follows the stops. */
|
|
24
|
+
min?: number;
|
|
25
|
+
/** Highest stop value; by default the track follows the stops. */
|
|
26
|
+
max?: number;
|
|
27
|
+
/**
|
|
28
|
+
* `'gradient'` (colors blend), `'fixed'` (each color until the next
|
|
29
|
+
* stop) or `'stepped'` (`@stepNumber` blended steps). Defaults to
|
|
30
|
+
* `'gradient'`.
|
|
31
|
+
*/
|
|
32
|
+
stopType?: 'gradient' | 'fixed' | 'stepped';
|
|
33
|
+
/** Number of steps with `@stopType="stepped"`. Defaults to `10`. */
|
|
34
|
+
stepNumber?: number;
|
|
35
|
+
/** Color of new stops. Defaults to EUI's second visualization color. */
|
|
36
|
+
addColor?: string;
|
|
37
|
+
/** Color picker of each stop: `'default'`, `'swatch'` or `'picker'`. */
|
|
38
|
+
mode?: 'default' | 'swatch' | 'picker';
|
|
39
|
+
/** Swatches of the stops' color pickers. */
|
|
40
|
+
swatches?: string[];
|
|
41
|
+
/** Colors may have an alpha channel. */
|
|
42
|
+
showAlpha?: boolean;
|
|
43
|
+
/** Disables it. */
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
/** Stops can be inspected but not changed. */
|
|
46
|
+
readOnly?: boolean;
|
|
47
|
+
/** Smaller track. */
|
|
48
|
+
compressed?: boolean;
|
|
49
|
+
/** Takes the container's full width. */
|
|
50
|
+
fullWidth?: boolean;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export default class EuiColorStops extends Component<EuiColorStopsSignature> {
|
|
54
|
+
euiI18n: EuiI18n;
|
|
55
|
+
wrapper?: HTMLElement;
|
|
56
|
+
trackWidth: number;
|
|
57
|
+
hasFocus: boolean;
|
|
58
|
+
focusedStopIndex: number | null;
|
|
59
|
+
openedStopId: number | null;
|
|
60
|
+
addTargetPosition: number;
|
|
61
|
+
isHoverDisabled: boolean;
|
|
62
|
+
focusStopOnUpdate: number | null;
|
|
63
|
+
get sortedStops(): IndexedStop[];
|
|
64
|
+
get rangeMax(): number;
|
|
65
|
+
get rangeMin(): number;
|
|
66
|
+
get globalMin(): number;
|
|
67
|
+
get globalMax(): number;
|
|
68
|
+
get isNotInteractive(): boolean;
|
|
69
|
+
get classes(): string;
|
|
70
|
+
get announcement(): string;
|
|
71
|
+
positionOf: (stop: number) => number;
|
|
72
|
+
get gradient(): string;
|
|
73
|
+
change(colorStops: ColorStop[]): void;
|
|
74
|
+
focusStop(index: number): void;
|
|
75
|
+
focusWrapper(): void;
|
|
76
|
+
onAdd(): void;
|
|
77
|
+
onRemove(id: number): void;
|
|
78
|
+
onStopChange(id: number, colorStop: ColorStop): void;
|
|
79
|
+
onAddHover(event: MouseEvent): void;
|
|
80
|
+
onAddClick(event: MouseEvent): void;
|
|
81
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
82
|
+
onWrapperFocus(event: FocusEvent): void;
|
|
83
|
+
onWrapperBlur(): void;
|
|
84
|
+
setHoverDisabled(value: boolean): void;
|
|
85
|
+
setFocusedStop(index: number): void;
|
|
86
|
+
openStop(id: number): void;
|
|
87
|
+
closeStop(): void;
|
|
88
|
+
isRangeMin: (stop: number) => boolean;
|
|
89
|
+
isRangeMax: (stop: number) => boolean;
|
|
90
|
+
localMin: (index: number) => number;
|
|
91
|
+
localMax: (index: number) => number;
|
|
92
|
+
registerWrapper: import("ember-modifier").FunctionBasedModifier<{
|
|
93
|
+
Args: {
|
|
94
|
+
Positional: [ColorStop[]];
|
|
95
|
+
Named: import("ember-modifier/-private/signature.js").EmptyObject;
|
|
96
|
+
};
|
|
97
|
+
Element: HTMLElement;
|
|
98
|
+
}>;
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=eui-color-stops.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-color-stops.d.ts","sourceRoot":"","sources":["../../src/components/eui-color-stops.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AA0B3C,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEtD,YAAY,EAAE,SAAS,EAAE,CAAC;AAM1B,KAAK,WAAW,GAAG,SAAS,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9C;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE;QACJ,uDAAuD;QACvD,UAAU,EAAE,SAAS,EAAE,CAAC;QACxB,iEAAiE;QACjE,QAAQ,EAAE,CAAC,UAAU,EAAE,SAAS,EAAE,EAAE,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;QAChE,0CAA0C;QAC1C,KAAK,EAAE,MAAM,CAAC;QACd,iEAAiE;QACjE,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,kEAAkE;QAClE,GAAG,CAAC,EAAE,MAAM,CAAC;QACb;;;;WAIG;QACH,QAAQ,CAAC,EAAE,UAAU,GAAG,OAAO,GAAG,SAAS,CAAC;QAC5C,oEAAoE;QACpE,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,wEAAwE;QACxE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,wEAAwE;QACxE,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,GAA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ASb,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAM1B,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI;IAQpD,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAcnC,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAiBnC,SAAS,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IA0CrC,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAKvC,aAAa,IAAI,IAAI;IAKrB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAKtC,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAKnC,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAK1B,SAAS,IAAI,IAAI;IAIjB,UAAU,SAAU,MAAM,KAAG,OAAO,CAA0D;IAE9F,UAAU,SAAU,MAAM,KAAG,OAAO,CAA0D;IAE9F,QAAQ,UAAW,MAAM,KAAG,MAAM,CACqC;IAEvE,QAAQ,UAAW,MAAM,KAAG,MAAM,CAC+D;IAEjG,eAAe;;;;;;OAoBZ;CA4FJ"}
|
|
@@ -1,20 +1,40 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import type { layoutAlignMapping, sizeMapping } from '../utils/css-mappings/eui-context-menu-item';
|
|
2
|
+
import type { layoutAlignMapping, sizeMapping } from '../utils/css-mappings/eui-context-menu-item.ts';
|
|
3
3
|
import type { EuiIconSignature } from './eui-icon';
|
|
4
|
+
/**
|
|
5
|
+
* An action in a menu, usually inside an `EuiContextMenuPanel` in an
|
|
6
|
+
* `EuiPopover`. Add `{{on "click" …}}` for the action.
|
|
7
|
+
*/
|
|
4
8
|
export interface EuiContextMenuItemSignature {
|
|
5
9
|
Element: HTMLAnchorElement | HTMLButtonElement;
|
|
6
10
|
Args: {
|
|
11
|
+
/**
|
|
12
|
+
* Vertical alignment of the icon and text: `'center'`, `'top'` or
|
|
13
|
+
* `'bottom'`. Defaults to `'center'`.
|
|
14
|
+
*/
|
|
7
15
|
layoutAlign?: keyof typeof layoutAlignMapping;
|
|
16
|
+
/** Disables the item. */
|
|
8
17
|
disabled?: boolean;
|
|
18
|
+
/** `'s'` or `'m'`. Defaults to `'m'`. */
|
|
9
19
|
size?: keyof typeof sizeMapping;
|
|
20
|
+
/** Renders the item as a link. */
|
|
10
21
|
href?: string;
|
|
22
|
+
/** `target` of the `@href` link, e.g. `'_blank'`. */
|
|
11
23
|
target?: string;
|
|
24
|
+
/** Shows a spinner instead of the icon. */
|
|
12
25
|
isLoading?: boolean;
|
|
13
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Icon before the text; anything `EuiIcon`'s `@type` accepts. Pass
|
|
28
|
+
* `'empty'` to align items without an icon with the others.
|
|
29
|
+
*/
|
|
30
|
+
icon?: EuiIconSignature['Args']['type'];
|
|
31
|
+
/** Extra classes for the icon. */
|
|
14
32
|
iconClasses?: string;
|
|
33
|
+
/** Shows an arrow on the right, for items opening another panel. */
|
|
15
34
|
hasPanel?: boolean;
|
|
16
35
|
};
|
|
17
36
|
Blocks: {
|
|
37
|
+
/** The item's text. */
|
|
18
38
|
default: [];
|
|
19
39
|
};
|
|
20
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-context-menu-item.d.ts","sourceRoot":"","sources":["../../src/components/eui-context-menu-item.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAa3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"eui-context-menu-item.d.ts","sourceRoot":"","sources":["../../src/components/eui-context-menu-item.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAa3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AACtG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,IAAI,EAAE;QACJ;;;WAGG;QACH,WAAW,CAAC,EAAE,MAAM,OAAO,kBAAkB,CAAC;QAC9C,yBAAyB;QACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,yCAAyC;QACzC,IAAI,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;QAChC,kCAAkC;QAClC,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,qDAAqD;QACrD,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,2CAA2C;QAC3C,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB;;;WAGG;QACH,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;QACxC,kCAAkC;QAClC,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,oEAAoE;QACpE,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC;IAEF,MAAM,EAAE;QACN,uBAAuB;QACvB,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,2BAA4B,SAAQ,SAAS,CAAC,2BAA2B,CAAC;IACpF,IAAI,EAAE,iBAAiB,GAAG,iBAAiB,GAAG,IAAI,CAAQ;IAGnE,YAAY,CAAC,CAAC,EAAE,iBAAiB,GAAG,iBAAiB;IAIrD,WAAW;CAoFZ"}
|
|
@@ -1,10 +1,94 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type Owner from '@ember/owner';
|
|
3
|
+
type TransitionType = 'in' | 'out';
|
|
4
|
+
type TransitionDirection = 'next' | 'previous';
|
|
5
|
+
/**
|
|
6
|
+
* A list of `EuiContextMenuItem`s, usually as a popover's content, with
|
|
7
|
+
* an optional title. Arrow keys move between the items. For menus with
|
|
8
|
+
* several panels (items opening sub-menus), use `EuiContextMenu`, which
|
|
9
|
+
* renders these panels for you.
|
|
10
|
+
*/
|
|
2
11
|
export interface EuiContextMenuPanelSignature {
|
|
3
12
|
Element: HTMLDivElement;
|
|
13
|
+
Args: {
|
|
14
|
+
/** Title above the items. */
|
|
15
|
+
title?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Makes the title a "back" button calling this function, e.g. to
|
|
18
|
+
* return to the previous panel.
|
|
19
|
+
*/
|
|
20
|
+
onClose?: () => void;
|
|
21
|
+
/** `'s'` for a smaller title. Defaults to `'m'`. */
|
|
22
|
+
size?: 's' | 'm';
|
|
23
|
+
/**
|
|
24
|
+
* Moves focus into the panel once rendered: to the item at
|
|
25
|
+
* `@initialFocusedItemIndex`, else to its first focusable element when
|
|
26
|
+
* it has no items, else to the panel itself.
|
|
27
|
+
*/
|
|
28
|
+
hasFocus?: boolean;
|
|
29
|
+
/** Index of the item to focus with `@hasFocus`; `-1` focuses the panel. */
|
|
30
|
+
initialFocusedItemIndex?: number;
|
|
31
|
+
/** @private Slide animation, set by `EuiContextMenu`. */
|
|
32
|
+
transitionType?: TransitionType;
|
|
33
|
+
/** @private Slide direction, set by `EuiContextMenu`. */
|
|
34
|
+
transitionDirection?: TransitionDirection;
|
|
35
|
+
/** @private Called when the slide animation ends. */
|
|
36
|
+
onTransitionComplete?: () => void;
|
|
37
|
+
/** @private Called with the panel's height when it changes. */
|
|
38
|
+
onHeightChange?: (height: number) => void;
|
|
39
|
+
/** @private Arrow right on an item: opens its panel. */
|
|
40
|
+
showNextPanel?: (itemIndex?: number) => void;
|
|
41
|
+
/** @private Arrow left: back to the previous panel. */
|
|
42
|
+
showPreviousPanel?: () => void;
|
|
43
|
+
/** @private Called once the keyboard is used to move around. */
|
|
44
|
+
onUseKeyboardToNavigate?: () => void;
|
|
45
|
+
};
|
|
4
46
|
Blocks: {
|
|
47
|
+
/** The `EuiContextMenuItem`s (and e.g. `EuiHorizontalRule`s), or any content. */
|
|
5
48
|
default: [];
|
|
6
49
|
};
|
|
7
50
|
}
|
|
8
|
-
|
|
9
|
-
|
|
51
|
+
export default class EuiContextMenuPanel extends Component<EuiContextMenuPanelSignature> {
|
|
52
|
+
focusedItemIndex?: number;
|
|
53
|
+
constructor(owner: Owner, args: EuiContextMenuPanelSignature['Args']);
|
|
54
|
+
panel?: HTMLElement;
|
|
55
|
+
content?: HTMLElement;
|
|
56
|
+
backButton?: HTMLElement;
|
|
57
|
+
get classes(): string;
|
|
58
|
+
get titleClasses(): string;
|
|
59
|
+
/** The panel's own menu items (not those of a nested panel). */
|
|
60
|
+
get menuItems(): HTMLElement[];
|
|
61
|
+
focusItem(index: number): void;
|
|
62
|
+
moveFocus(amount: number): void;
|
|
63
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
64
|
+
onAnimationEnd(event: AnimationEvent): void;
|
|
65
|
+
onResize({ height }: {
|
|
66
|
+
height: number;
|
|
67
|
+
}): void;
|
|
68
|
+
reportHeight(height: number): void;
|
|
69
|
+
/** Registers the elements, and handles focus and transitions once rendered. */
|
|
70
|
+
setup: import("ember-modifier").FunctionBasedModifier<{
|
|
71
|
+
Args: {
|
|
72
|
+
Positional: [boolean | undefined, TransitionType | undefined];
|
|
73
|
+
Named: import("ember-modifier/-private/signature.js").EmptyObject;
|
|
74
|
+
};
|
|
75
|
+
Element: HTMLElement;
|
|
76
|
+
}>;
|
|
77
|
+
updateFocus(panel: HTMLElement): void;
|
|
78
|
+
registerContent: import("ember-modifier").FunctionBasedModifier<{
|
|
79
|
+
Args: {
|
|
80
|
+
Positional: unknown[];
|
|
81
|
+
Named: import("ember-modifier/-private/signature.js").EmptyObject;
|
|
82
|
+
};
|
|
83
|
+
Element: HTMLElement;
|
|
84
|
+
}>;
|
|
85
|
+
registerBackButton: import("ember-modifier").FunctionBasedModifier<{
|
|
86
|
+
Args: {
|
|
87
|
+
Positional: unknown[];
|
|
88
|
+
Named: import("ember-modifier/-private/signature.js").EmptyObject;
|
|
89
|
+
};
|
|
90
|
+
Element: HTMLElement;
|
|
91
|
+
}>;
|
|
92
|
+
}
|
|
93
|
+
export {};
|
|
10
94
|
//# sourceMappingURL=eui-context-menu-panel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-context-menu-panel.d.ts","sourceRoot":"","sources":["../../src/components/eui-context-menu-panel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"eui-context-menu-panel.d.ts","sourceRoot":"","sources":["../../src/components/eui-context-menu-panel.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAS3C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAKtC,KAAK,cAAc,GAAG,IAAI,GAAG,KAAK,CAAC;AACnC,KAAK,mBAAmB,GAAG,MAAM,GAAG,UAAU,CAAC;AAO/C;;;;;GAKG;AACH,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE;QACJ,6BAA6B;QAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;;WAGG;QACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;QACrB,oDAAoD;QACpD,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC;QACjB;;;;WAIG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,2EAA2E;QAC3E,uBAAuB,CAAC,EAAE,MAAM,CAAC;QACjC,yDAAyD;QACzD,cAAc,CAAC,EAAE,cAAc,CAAC;QAChC,yDAAyD;QACzD,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;QAC1C,qDAAqD;QACrD,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;QAClC,+DAA+D;QAC/D,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;QAC1C,wDAAwD;QACxD,aAAa,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,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'./eui-context-menu-item';
|
|
3
|
+
import type Owner from '@ember/owner';
|
|
4
|
+
type PanelId = string | number;
|
|
5
|
+
/** One entry of a panel: an item, or a separator (`{ isSeparator: true }`). */
|
|
6
|
+
export type EuiContextMenuPanelItem = {
|
|
7
|
+
isSeparator: true;
|
|
8
|
+
key?: string;
|
|
9
|
+
} | {
|
|
10
|
+
isSeparator?: false;
|
|
11
|
+
/** The item's text. */
|
|
12
|
+
name: string;
|
|
13
|
+
/** Icon before the text, any `EuiIcon` type. */
|
|
14
|
+
icon?: EuiContextMenuItemSignature['Args']['icon'];
|
|
15
|
+
/** Id of the panel this item opens (it gets an arrow). */
|
|
16
|
+
panel?: PanelId;
|
|
17
|
+
/** Called when the item is clicked (also when it opens a panel). */
|
|
18
|
+
onClick?: (event: MouseEvent) => void;
|
|
19
|
+
/** Makes the item a link. */
|
|
20
|
+
href?: string;
|
|
21
|
+
/** `target` of the link. */
|
|
22
|
+
target?: string;
|
|
23
|
+
/** Disables the item. */
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/** Aligns the icon with the `'center'` or the `'top'` of the text. */
|
|
26
|
+
layoutAlign?: EuiContextMenuItemSignature['Args']['layoutAlign'];
|
|
27
|
+
/** `data-test-subj` of the item, for tests. */
|
|
28
|
+
'data-test-subj'?: string;
|
|
29
|
+
};
|
|
30
|
+
export interface EuiContextMenuPanelDescriptor {
|
|
31
|
+
/** Unique id; items open the panel with `panel: id`. */
|
|
32
|
+
id: PanelId;
|
|
33
|
+
/** Title of the panel (a back button on panels opened from another). */
|
|
34
|
+
title?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The panel's items. Without items, the `<:content>` block renders the
|
|
37
|
+
* panel's content instead (e.g. a form).
|
|
38
|
+
*/
|
|
39
|
+
items?: EuiContextMenuPanelItem[];
|
|
40
|
+
/** Width of the menu while this panel is shown, e.g. `400` (px). */
|
|
41
|
+
width?: number | string;
|
|
42
|
+
/** Item to focus when the panel opens. */
|
|
43
|
+
initialFocusedItemIndex?: number;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* A menu of panels: items can open another panel (a sub-menu), which
|
|
47
|
+
* slides in with a back button to return. Usually the content of an
|
|
48
|
+
* `EuiPopover`. For a single list of items, `EuiContextMenuPanel` is
|
|
49
|
+
* enough.
|
|
50
|
+
*/
|
|
51
|
+
export interface EuiContextMenuSignature {
|
|
52
|
+
Element: HTMLDivElement;
|
|
53
|
+
Args: {
|
|
54
|
+
/** Every panel, flat: an item's `panel` is the id of the panel it opens. */
|
|
55
|
+
panels: EuiContextMenuPanelDescriptor[];
|
|
56
|
+
/** Id of the panel shown first. */
|
|
57
|
+
initialPanelId: PanelId;
|
|
58
|
+
/** `'s'` for smaller items and titles. Defaults to `'m'`. */
|
|
59
|
+
size?: 's' | 'm';
|
|
60
|
+
};
|
|
61
|
+
Blocks: {
|
|
62
|
+
/** Content of the panels without `items`; yields the panel. */
|
|
63
|
+
content: [panel: EuiContextMenuPanelDescriptor];
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
type Direction = 'next' | 'previous';
|
|
67
|
+
export default class EuiContextMenu extends Component<EuiContextMenuSignature> {
|
|
68
|
+
incomingPanelId: PanelId;
|
|
69
|
+
outgoingPanelId?: PanelId;
|
|
70
|
+
transitionDirection?: Direction;
|
|
71
|
+
isOutgoingPanelVisible: boolean;
|
|
72
|
+
height?: number;
|
|
73
|
+
focusedItemIndex?: number;
|
|
74
|
+
isUsingKeyboardToNavigate: boolean;
|
|
75
|
+
constructor(owner: Owner, args: EuiContextMenuSignature['Args']);
|
|
76
|
+
get panelsById(): Map<PanelId, EuiContextMenuPanelDescriptor>;
|
|
77
|
+
/** For each panel opened from an item: the panel holding that item. */
|
|
78
|
+
get previousPanelIds(): Map<PanelId, PanelId>;
|
|
79
|
+
get incomingPanels(): EuiContextMenuPanelDescriptor[];
|
|
80
|
+
get outgoingPanels(): EuiContextMenuPanelDescriptor[];
|
|
81
|
+
get width(): number | string | undefined;
|
|
82
|
+
get classes(): string;
|
|
83
|
+
hasPreviousPanel: (panelId: PanelId) => boolean;
|
|
84
|
+
showPanel(panelId: PanelId, direction: Direction): void;
|
|
85
|
+
showNextPanel(itemIndex?: number): void;
|
|
86
|
+
showPreviousPanel(): void;
|
|
87
|
+
onItemClick(item: EuiContextMenuPanelItem, index: number, event: MouseEvent): void;
|
|
88
|
+
onOutgoingTransitionComplete(): void;
|
|
89
|
+
onIncomingHeightChange(height: number): void;
|
|
90
|
+
onUseKeyboardToNavigate(): void;
|
|
91
|
+
initialFocusedItemIndex: (panel: EuiContextMenuPanelDescriptor) => number | undefined;
|
|
92
|
+
}
|
|
93
|
+
export {};
|
|
94
|
+
//# sourceMappingURL=eui-context-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-context-menu.d.ts","sourceRoot":"","sources":["../../src/components/eui-context-menu.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAW3C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,KAAK,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAE/B,+EAA+E;AAC/E,MAAM,MAAM,uBAAuB,GAC/B;IAAE,WAAW,EAAE,IAAI,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GACnC;IACE,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,IAAI,CAAC,EAAE,2BAA2B,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;IACnD,0DAA0D;IAC1D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,oEAAoE;IACpE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IACtC,6BAA6B;IAC7B,IAAI,CAAC,EAAE,MAAM,C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