@ember-eui/core 14.1.4 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/declarations/-private/basic-table.d.ts +366 -0
- package/declarations/-private/basic-table.d.ts.map +1 -0
- package/declarations/-private/eui-apply-props.d.ts +37 -0
- package/declarations/-private/eui-apply-props.d.ts.map +1 -0
- package/declarations/-private/eui-button-context.d.ts +65 -0
- package/declarations/-private/eui-button-context.d.ts.map +1 -0
- package/declarations/-private/eui-button-group-item.d.ts +17 -0
- package/declarations/-private/eui-button-group-item.d.ts.map +1 -0
- package/declarations/-private/eui-comment-item.d.ts +72 -0
- package/declarations/-private/eui-comment-item.d.ts.map +1 -0
- package/declarations/-private/eui-context-menu-entry.d.ts +18 -0
- package/declarations/-private/eui-context-menu-entry.d.ts.map +1 -0
- package/declarations/-private/eui-disabled-element.d.ts +24 -0
- package/declarations/-private/eui-disabled-element.d.ts.map +1 -0
- package/declarations/-private/eui-filter-group-context.d.ts +18 -0
- package/declarations/-private/eui-filter-group-context.d.ts.map +1 -0
- package/declarations/-private/eui-flyout-context.d.ts +32 -0
- package/declarations/-private/eui-flyout-context.d.ts.map +1 -0
- package/declarations/-private/eui-form-context.d.ts +18 -0
- package/declarations/-private/eui-form-context.d.ts.map +1 -0
- package/declarations/-private/eui-form-control-layout-context.d.ts +22 -0
- package/declarations/-private/eui-form-control-layout-context.d.ts.map +1 -0
- package/declarations/-private/eui-list-context.d.ts +42 -0
- package/declarations/-private/eui-list-context.d.ts.map +1 -0
- package/declarations/-private/eui-maybe-popover.d.ts +26 -0
- package/declarations/-private/eui-maybe-popover.d.ts.map +1 -0
- package/declarations/-private/eui-maybe-tool-tip.d.ts +29 -0
- package/declarations/-private/eui-maybe-tool-tip.d.ts.map +1 -0
- package/declarations/-private/eui-node.d.ts +19 -0
- package/declarations/-private/eui-node.d.ts.map +1 -0
- package/declarations/-private/eui-popover-panel-context.d.ts +19 -0
- package/declarations/-private/eui-popover-panel-context.d.ts.map +1 -0
- package/declarations/-private/eui-render-node.d.ts +19 -0
- package/declarations/-private/eui-render-node.d.ts.map +1 -0
- package/declarations/-private/eui-split-button-context.d.ts +23 -0
- package/declarations/-private/eui-split-button-context.d.ts.map +1 -0
- package/declarations/-private/eui-split-panel-context.d.ts +22 -0
- package/declarations/-private/eui-split-panel-context.d.ts.map +1 -0
- package/declarations/-private/eui-spread-attributes.d.ts +17 -0
- package/declarations/-private/eui-spread-attributes.d.ts.map +1 -0
- package/declarations/-private/eui-steps-context.d.ts +18 -0
- package/declarations/-private/eui-steps-context.d.ts.map +1 -0
- package/declarations/-private/eui-steps-horizontal-context.d.ts +15 -0
- package/declarations/-private/eui-steps-horizontal-context.d.ts.map +1 -0
- package/declarations/-private/eui-tabs-context.d.ts +16 -0
- package/declarations/-private/eui-tabs-context.d.ts.map +1 -0
- package/declarations/-private/eui-tour-parts.d.ts +28 -0
- package/declarations/-private/eui-tour-parts.d.ts.map +1 -0
- package/declarations/-private/focus-trap-effects.d.ts +14 -0
- package/declarations/-private/focus-trap-effects.d.ts.map +1 -0
- package/declarations/-private/focus-trap-registry.d.ts +20 -0
- package/declarations/-private/focus-trap-registry.d.ts.map +1 -0
- package/declarations/-private/live-text.d.ts +18 -0
- package/declarations/-private/live-text.d.ts.map +1 -0
- package/declarations/-private/next-frame.d.ts +7 -0
- package/declarations/-private/next-frame.d.ts.map +1 -0
- package/declarations/-private/removed-upstream.d.ts +12 -0
- package/declarations/-private/removed-upstream.d.ts.map +1 -0
- package/declarations/-private/search-bar.d.ts +85 -0
- package/declarations/-private/search-bar.d.ts.map +1 -0
- package/declarations/-private/table-node.d.ts +25 -0
- package/declarations/-private/table-node.d.ts.map +1 -0
- package/declarations/-private/table-pagination-defaults.d.ts +19 -0
- package/declarations/-private/table-pagination-defaults.d.ts.map +1 -0
- package/declarations/-private/tabular-copy-marker.d.ts +17 -0
- package/declarations/-private/tabular-copy-marker.d.ts.map +1 -0
- package/declarations/-private/unused-after-borealis.d.ts +12 -0
- package/declarations/-private/unused-after-borealis.d.ts.map +1 -0
- package/declarations/-private/value-modifier.d.ts +17 -0
- package/declarations/-private/value-modifier.d.ts.map +1 -0
- package/declarations/-private/window-resize.d.ts +10 -0
- package/declarations/-private/window-resize.d.ts.map +1 -0
- package/declarations/components/eui-accordion.d.ts.map +1 -1
- package/declarations/components/eui-auto-refresh-button.d.ts +73 -0
- package/declarations/components/eui-auto-refresh-button.d.ts.map +1 -0
- package/declarations/components/eui-auto-refresh.d.ts +73 -0
- package/declarations/components/eui-auto-refresh.d.ts.map +1 -0
- package/declarations/components/eui-banner.d.ts +132 -0
- package/declarations/components/eui-banner.d.ts.map +1 -0
- package/declarations/components/eui-basic-table/collapsed-item-actions.d.ts +40 -0
- package/declarations/components/eui-basic-table/collapsed-item-actions.d.ts.map +1 -0
- package/declarations/components/eui-basic-table/default-item-action.d.ts +28 -0
- package/declarations/components/eui-basic-table/default-item-action.d.ts.map +1 -0
- package/declarations/components/eui-basic-table/expanded-item-actions.d.ts +25 -0
- package/declarations/components/eui-basic-table/expanded-item-actions.d.ts.map +1 -0
- package/declarations/components/eui-basic-table/pagination-bar.d.ts +47 -0
- package/declarations/components/eui-basic-table/pagination-bar.d.ts.map +1 -0
- package/declarations/components/eui-basic-table-panel.d.ts +43 -0
- package/declarations/components/eui-basic-table-panel.d.ts.map +1 -0
- package/declarations/components/eui-basic-table.d.ts +264 -0
- package/declarations/components/eui-basic-table.d.ts.map +1 -0
- package/declarations/components/eui-button.d.ts.map +1 -1
- package/declarations/components/eui-card.d.ts.map +1 -1
- package/declarations/components/eui-code-block/annotation.d.ts +41 -0
- package/declarations/components/eui-code-block/annotation.d.ts.map +1 -0
- package/declarations/components/eui-collapsible-nav-group.d.ts.map +1 -1
- package/declarations/components/eui-combo-box/node.d.ts +21 -0
- package/declarations/components/eui-combo-box/node.d.ts.map +1 -0
- package/declarations/components/eui-combo-box/option-text.d.ts +37 -0
- package/declarations/components/eui-combo-box/option-text.d.ts.map +1 -0
- package/declarations/components/eui-container-query.d.ts +44 -0
- package/declarations/components/eui-container-query.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/body-base.d.ts +66 -0
- package/declarations/components/eui-data-grid/body-base.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/body.d.ts +215 -0
- package/declarations/components/eui-data-grid/body.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/cell-actions.d.ts +78 -0
- package/declarations/components/eui-data-grid/cell-actions.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/cell.d.ts +220 -0
- package/declarations/components/eui-data-grid/cell.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/column-actions.d.ts +61 -0
- package/declarations/components/eui-data-grid/column-actions.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/column-resizer.d.ts +22 -0
- package/declarations/components/eui-data-grid/column-resizer.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/column-selector.d.ts +47 -0
- package/declarations/components/eui-data-grid/column-selector.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/column-sorting.d.ts +61 -0
- package/declarations/components/eui-data-grid/column-sorting.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/copy-marker.d.ts +16 -0
- package/declarations/components/eui-data-grid/copy-marker.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/custom-body.d.ts +113 -0
- package/declarations/components/eui-data-grid/custom-body.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/default-cell-popover.d.ts +23 -0
- package/declarations/components/eui-data-grid/default-cell-popover.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/display-selector.d.ts +56 -0
- package/declarations/components/eui-data-grid/display-selector.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/footer-row.d.ts +21 -0
- package/declarations/components/eui-data-grid/footer-row.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/fullscreen-selector.d.ts +14 -0
- package/declarations/components/eui-data-grid/fullscreen-selector.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/header-cell.d.ts +159 -0
- package/declarations/components/eui-data-grid/header-cell.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/header-row.d.ts +91 -0
- package/declarations/components/eui-data-grid/header-row.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/in-memory-renderer.d.ts +46 -0
- package/declarations/components/eui-data-grid/in-memory-renderer.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/keyboard-shortcuts.d.ts +24 -0
- package/declarations/components/eui-data-grid/keyboard-shortcuts.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/pagination.d.ts +31 -0
- package/declarations/components/eui-data-grid/pagination.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/row-model.d.ts +81 -0
- package/declarations/components/eui-data-grid/row-model.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/row-tree-hooks.d.ts +65 -0
- package/declarations/components/eui-data-grid/row-tree-hooks.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/row.d.ts +26 -0
- package/declarations/components/eui-data-grid/row.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/toolbar.d.ts +43 -0
- package/declarations/components/eui-data-grid/toolbar.d.ts.map +1 -0
- package/declarations/components/eui-data-grid/tree-cell.d.ts +36 -0
- package/declarations/components/eui-data-grid/tree-cell.d.ts.map +1 -0
- package/declarations/components/eui-data-grid-toolbar-control.d.ts +61 -0
- package/declarations/components/eui-data-grid-toolbar-control.d.ts.map +1 -0
- package/declarations/components/eui-data-grid.d.ts +405 -0
- package/declarations/components/eui-data-grid.d.ts.map +1 -0
- package/declarations/components/eui-emotion-button.d.ts +31 -0
- package/declarations/components/eui-emotion-button.d.ts.map +1 -0
- package/declarations/components/eui-emotion-provider.d.ts +100 -0
- package/declarations/components/eui-emotion-provider.d.ts.map +1 -0
- package/declarations/components/eui-error-message.d.ts +36 -0
- package/declarations/components/eui-error-message.d.ts.map +1 -0
- package/declarations/components/eui-expression.d.ts.map +1 -1
- package/declarations/components/eui-flex-grid.d.ts.map +1 -1
- package/declarations/components/eui-flex-item.d.ts.map +1 -1
- package/declarations/components/eui-flyout-menu.d.ts +194 -0
- package/declarations/components/eui-flyout-menu.d.ts.map +1 -0
- package/declarations/components/eui-flyout-resizable.d.ts +21 -0
- package/declarations/components/eui-flyout-resizable.d.ts.map +1 -0
- package/declarations/components/eui-flyout-resize-button.d.ts +25 -0
- package/declarations/components/eui-flyout-resize-button.d.ts.map +1 -0
- package/declarations/components/eui-flyout.d.ts.map +1 -1
- package/declarations/components/eui-focus-trap.d.ts +96 -0
- package/declarations/components/eui-focus-trap.d.ts.map +1 -0
- package/declarations/components/eui-form-append.d.ts +18 -0
- package/declarations/components/eui-form-append.d.ts.map +1 -0
- package/declarations/components/eui-form-control-button.d.ts +108 -0
- package/declarations/components/eui-form-control-button.d.ts.map +1 -0
- package/declarations/components/eui-form-control-layout/eui-form-append-prepend.d.ts +75 -0
- package/declarations/components/eui-form-control-layout/eui-form-append-prepend.d.ts.map +1 -0
- package/declarations/components/eui-form-prepend.d.ts +18 -0
- package/declarations/components/eui-form-prepend.d.ts.map +1 -0
- package/declarations/components/eui-header-logo/elastic-logo-full.d.ts +11 -0
- package/declarations/components/eui-header-logo/elastic-logo-full.d.ts.map +1 -0
- package/declarations/components/eui-illustration.d.ts +53 -0
- package/declarations/components/eui-illustration.d.ts.map +1 -0
- package/declarations/components/eui-in-memory-table.d.ts +171 -0
- package/declarations/components/eui-in-memory-table.d.ts.map +1 -0
- package/declarations/components/eui-inline-edit/eui-inline-edit-form.d.ts +205 -0
- package/declarations/components/eui-inline-edit/eui-inline-edit-form.d.ts.map +1 -0
- package/declarations/components/eui-inline-edit-text.d.ts +23 -0
- package/declarations/components/eui-inline-edit-text.d.ts.map +1 -0
- package/declarations/components/eui-inline-edit-title.d.ts +38 -0
- package/declarations/components/eui-inline-edit-title.d.ts.map +1 -0
- package/declarations/components/eui-key-pad-menu-item.d.ts.map +1 -1
- package/declarations/components/eui-live-announcer.d.ts +60 -0
- package/declarations/components/eui-live-announcer.d.ts.map +1 -0
- package/declarations/components/eui-markdown-format/markdown-horizontal-rule.d.ts +16 -0
- package/declarations/components/eui-markdown-format/markdown-horizontal-rule.d.ts.map +1 -0
- package/declarations/components/eui-markdown-format/markdown-link.d.ts +28 -0
- package/declarations/components/eui-markdown-format/markdown-link.d.ts.map +1 -0
- package/declarations/components/eui-notification-event.d.ts.map +1 -1
- package/declarations/components/eui-page-body.d.ts.map +1 -1
- package/declarations/components/eui-page-section.d.ts +76 -0
- package/declarations/components/eui-page-section.d.ts.map +1 -0
- package/declarations/components/eui-page-sidebar.d.ts +60 -0
- package/declarations/components/eui-page-sidebar.d.ts.map +1 -0
- package/declarations/components/eui-page-template/bottom-bar.d.ts +54 -0
- package/declarations/components/eui-page-template/bottom-bar.d.ts.map +1 -0
- package/declarations/components/eui-page-template/empty-prompt.d.ts +91 -0
- package/declarations/components/eui-page-template/empty-prompt.d.ts.map +1 -0
- package/declarations/components/eui-page-template/sidebar.d.ts +32 -0
- package/declarations/components/eui-page-template/sidebar.d.ts.map +1 -0
- package/declarations/components/eui-pagination/arrow-button.d.ts +26 -0
- package/declarations/components/eui-pagination/arrow-button.d.ts.map +1 -0
- package/declarations/components/eui-pretty-duration.d.ts +29 -0
- package/declarations/components/eui-pretty-duration.d.ts.map +1 -0
- package/declarations/components/eui-screen-reader-live.d.ts +75 -0
- package/declarations/components/eui-screen-reader-live.d.ts.map +1 -0
- package/declarations/components/eui-search-bar/eui-search-box.d.ts +106 -0
- package/declarations/components/eui-search-bar/eui-search-box.d.ts.map +1 -0
- package/declarations/components/eui-search-bar/field-value-selection-filter.d.ts +70 -0
- package/declarations/components/eui-search-bar/field-value-selection-filter.d.ts.map +1 -0
- package/declarations/components/eui-search-bar/field-value-toggle-filter.d.ts +23 -0
- package/declarations/components/eui-search-bar/field-value-toggle-filter.d.ts.map +1 -0
- package/declarations/components/eui-search-bar/field-value-toggle-group-filter.d.ts +26 -0
- package/declarations/components/eui-search-bar/field-value-toggle-group-filter.d.ts.map +1 -0
- package/declarations/components/eui-search-bar/is-filter.d.ts +23 -0
- package/declarations/components/eui-search-bar/is-filter.d.ts.map +1 -0
- package/declarations/components/eui-search-bar-filters.d.ts +28 -0
- package/declarations/components/eui-search-bar-filters.d.ts.map +1 -0
- package/declarations/components/eui-search-bar.d.ts +134 -0
- package/declarations/components/eui-search-bar.d.ts.map +1 -0
- package/declarations/components/eui-selectable-list/option-text.d.ts +31 -0
- package/declarations/components/eui-selectable-list/option-text.d.ts.map +1 -0
- package/declarations/components/eui-side-nav.d.ts.map +1 -1
- package/declarations/components/eui-skeleton-circle.d.ts +60 -0
- package/declarations/components/eui-skeleton-circle.d.ts.map +1 -0
- package/declarations/components/eui-skeleton-loading/screen-reader-live.d.ts +60 -0
- package/declarations/components/eui-skeleton-loading/screen-reader-live.d.ts.map +1 -0
- package/declarations/components/eui-skeleton-loading.d.ts +86 -0
- package/declarations/components/eui-skeleton-loading.d.ts.map +1 -0
- package/declarations/components/eui-skeleton-rectangle.d.ts +70 -0
- package/declarations/components/eui-skeleton-rectangle.d.ts.map +1 -0
- package/declarations/components/eui-skeleton-text.d.ts +64 -0
- package/declarations/components/eui-skeleton-text.d.ts.map +1 -0
- package/declarations/components/eui-skeleton-title.d.ts +60 -0
- package/declarations/components/eui-skeleton-title.d.ts.map +1 -0
- package/declarations/components/eui-split-button/eui-split-button-action-primary.d.ts +58 -0
- package/declarations/components/eui-split-button/eui-split-button-action-primary.d.ts.map +1 -0
- package/declarations/components/eui-split-button/eui-split-button-action-secondary.d.ts +63 -0
- package/declarations/components/eui-split-button/eui-split-button-action-secondary.d.ts.map +1 -0
- package/declarations/components/eui-split-button.d.ts +76 -0
- package/declarations/components/eui-split-button.d.ts.map +1 -0
- package/declarations/components/eui-stat/description.d.ts.map +1 -1
- package/declarations/components/eui-stat/title.d.ts.map +1 -1
- package/declarations/components/eui-suggest-item.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/date-popover/eui-time-zone-display.d.ts +59 -0
- package/declarations/components/eui-super-date-picker/date-popover/eui-time-zone-display.d.ts.map +1 -0
- package/declarations/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select-panel.d.ts +46 -0
- package/declarations/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select-panel.d.ts.map +1 -0
- package/declarations/components/eui-super-date-picker/eui-time-window-buttons.d.ts +63 -0
- package/declarations/components/eui-super-date-picker/eui-time-window-buttons.d.ts.map +1 -0
- package/declarations/components/eui-super-date-picker/utils/pretty-interval.d.ts +14 -0
- package/declarations/components/eui-super-date-picker/utils/pretty-interval.d.ts.map +1 -0
- package/declarations/components/eui-super-date-picker/utils/time-window.d.ts +34 -0
- package/declarations/components/eui-super-date-picker/utils/time-window.d.ts.map +1 -0
- package/declarations/components/eui-super-date-picker.d.ts +1 -1
- package/declarations/components/eui-super-date-picker.d.ts.map +1 -1
- package/declarations/components/eui-table/sticky-header.d.ts +56 -0
- package/declarations/components/eui-table/sticky-header.d.ts.map +1 -0
- package/declarations/components/eui-table/sticky-scrollbar.d.ts +47 -0
- package/declarations/components/eui-table/sticky-scrollbar.d.ts.map +1 -0
- package/declarations/components/eui-table-header-cell.d.ts.map +1 -1
- package/declarations/components/eui-text-block-truncate.d.ts +42 -0
- package/declarations/components/eui-text-block-truncate.d.ts.map +1 -0
- package/declarations/components/eui-text-truncate.d.ts +116 -0
- package/declarations/components/eui-text-truncate.d.ts.map +1 -0
- package/declarations/components/eui-timeline-item-event.d.ts +21 -0
- package/declarations/components/eui-timeline-item-event.d.ts.map +1 -0
- package/declarations/components/eui-timeline-item-icon.d.ts +41 -0
- package/declarations/components/eui-timeline-item-icon.d.ts.map +1 -0
- package/declarations/components/eui-timeline-item.d.ts +46 -0
- package/declarations/components/eui-timeline-item.d.ts.map +1 -0
- package/declarations/components/eui-timeline.d.ts +24 -0
- package/declarations/components/eui-timeline.d.ts.map +1 -0
- package/declarations/components/eui-window-event.d.ts +16 -0
- package/declarations/components/eui-window-event.d.ts.map +1 -0
- package/declarations/modifiers/container-query.d.ts +26 -0
- package/declarations/modifiers/container-query.d.ts.map +1 -0
- package/declarations/services/eui-emotion.d.ts +21 -0
- package/declarations/services/eui-emotion.d.ts.map +1 -0
- package/declarations/services/eui-flyout-manager.d.ts +103 -0
- package/declarations/services/eui-flyout-manager.d.ts.map +1 -0
- package/declarations/theming.d.ts +84 -0
- package/declarations/theming.d.ts.map +1 -0
- package/declarations/utils/color/eui_palettes_deprecated.d.ts +20 -0
- package/declarations/utils/color/eui_palettes_deprecated.d.ts.map +1 -0
- package/declarations/utils/container-query/match-container.d.ts +85 -0
- package/declarations/utils/container-query/match-container.d.ts.map +1 -0
- package/declarations/utils/data-grid/focus.d.ts +33 -0
- package/declarations/utils/data-grid/focus.d.ts.map +1 -0
- package/declarations/utils/data-grid/row-heights.d.ts +26 -0
- package/declarations/utils/data-grid/row-heights.d.ts.map +1 -0
- package/declarations/utils/data-grid/row-tree.d.ts +102 -0
- package/declarations/utils/data-grid/row-tree.d.ts.map +1 -0
- package/declarations/utils/data-grid/scheduling.d.ts +12 -0
- package/declarations/utils/data-grid/scheduling.d.ts.map +1 -0
- package/declarations/utils/data-grid/schema.d.ts +21 -0
- package/declarations/utils/data-grid/schema.d.ts.map +1 -0
- package/declarations/utils/data-grid/sorting.d.ts +13 -0
- package/declarations/utils/data-grid/sorting.d.ts.map +1 -0
- package/declarations/utils/data-grid/tabular-copy.d.ts +25 -0
- package/declarations/utils/data-grid/tabular-copy.d.ts.map +1 -0
- package/declarations/utils/data-grid/toolbar.d.ts +14 -0
- package/declarations/utils/data-grid/toolbar.d.ts.map +1 -0
- package/declarations/utils/data-grid/types.d.ts +495 -0
- package/declarations/utils/data-grid/types.d.ts.map +1 -0
- package/declarations/utils/emotion/consume.d.ts +10 -0
- package/declarations/utils/emotion/consume.d.ts.map +1 -0
- package/declarations/utils/emotion/context.d.ts +56 -0
- package/declarations/utils/emotion/context.d.ts.map +1 -0
- package/declarations/utils/emotion/system.d.ts +27 -0
- package/declarations/utils/emotion/system.d.ts.map +1 -0
- package/declarations/utils/emotion/theme.d.ts +27 -0
- package/declarations/utils/emotion/theme.d.ts.map +1 -0
- package/declarations/utils/eui/buttons-misc.d.ts +21 -0
- package/declarations/utils/eui/buttons-misc.d.ts.map +1 -0
- package/declarations/utils/eui/code-block.d.ts +16 -0
- package/declarations/utils/eui/code-block.d.ts.map +1 -0
- package/declarations/utils/eui/color-picker.d.ts +43 -0
- package/declarations/utils/eui/color-picker.d.ts.map +1 -0
- package/declarations/utils/eui/combo-box.d.ts +130 -0
- package/declarations/utils/eui/combo-box.d.ts.map +1 -0
- package/declarations/utils/eui/content-blocks.d.ts +14 -0
- package/declarations/utils/eui/content-blocks.d.ts.map +1 -0
- package/declarations/utils/eui/control-bar.d.ts +36 -0
- package/declarations/utils/eui/control-bar.d.ts.map +1 -0
- package/declarations/utils/eui/css-variables.d.ts +34 -0
- package/declarations/utils/eui/css-variables.d.ts.map +1 -0
- package/declarations/utils/eui/data-grid.d.ts +20 -0
- package/declarations/utils/eui/data-grid.d.ts.map +1 -0
- package/declarations/utils/eui/date-pickers.d.ts +73 -0
- package/declarations/utils/eui/date-pickers.d.ts.map +1 -0
- package/declarations/utils/eui/flyout-manager/actions.d.ts +168 -0
- package/declarations/utils/eui/flyout-manager/actions.d.ts.map +1 -0
- package/declarations/utils/eui/flyout-manager/activity-stage.d.ts +27 -0
- package/declarations/utils/eui/flyout-manager/activity-stage.d.ts.map +1 -0
- package/declarations/utils/eui/flyout-manager/const.d.ts +49 -0
- package/declarations/utils/eui/flyout-manager/const.d.ts.map +1 -0
- package/declarations/utils/eui/flyout-manager/history.d.ts +9 -0
- package/declarations/utils/eui/flyout-manager/history.d.ts.map +1 -0
- package/declarations/utils/eui/flyout-manager/layout-mode.d.ts +15 -0
- package/declarations/utils/eui/flyout-manager/layout-mode.d.ts.map +1 -0
- package/declarations/utils/eui/flyout-manager/reducer.d.ts +11 -0
- package/declarations/utils/eui/flyout-manager/reducer.d.ts.map +1 -0
- package/declarations/utils/eui/flyout-manager/selectors.d.ts +34 -0
- package/declarations/utils/eui/flyout-manager/selectors.d.ts.map +1 -0
- package/declarations/utils/eui/flyout-manager/types.d.ts +84 -0
- package/declarations/utils/eui/flyout-manager/types.d.ts.map +1 -0
- package/declarations/utils/eui/flyout-manager/validation.d.ts +30 -0
- package/declarations/utils/eui/flyout-manager/validation.d.ts.map +1 -0
- package/declarations/utils/eui/flyout-menu.d.ts +12 -0
- package/declarations/utils/eui/flyout-menu.d.ts.map +1 -0
- package/declarations/utils/eui/form-controls.d.ts +36 -0
- package/declarations/utils/eui/form-controls.d.ts.map +1 -0
- package/declarations/utils/eui/format.d.ts +43 -0
- package/declarations/utils/eui/format.d.ts.map +1 -0
- package/declarations/utils/eui/global-styles.d.ts +11 -0
- package/declarations/utils/eui/global-styles.d.ts.map +1 -0
- package/declarations/utils/eui/lists.d.ts +20 -0
- package/declarations/utils/eui/lists.d.ts.map +1 -0
- package/declarations/utils/eui/markdown.d.ts +16 -0
- package/declarations/utils/eui/markdown.d.ts.map +1 -0
- package/declarations/utils/eui/modal-flyout.d.ts +63 -0
- package/declarations/utils/eui/modal-flyout.d.ts.map +1 -0
- package/declarations/utils/eui/notification-event.d.ts +23 -0
- package/declarations/utils/eui/notification-event.d.ts.map +1 -0
- package/declarations/utils/eui/page-layout.d.ts +39 -0
- package/declarations/utils/eui/page-layout.d.ts.map +1 -0
- package/declarations/utils/eui/range.d.ts +37 -0
- package/declarations/utils/eui/range.d.ts.map +1 -0
- package/declarations/utils/eui/search-bar/ast-to-es-query-dsl.d.ts +38 -0
- package/declarations/utils/eui/search-bar/ast-to-es-query-dsl.d.ts.map +1 -0
- package/declarations/utils/eui/search-bar/ast-to-es-query-string.d.ts +3 -0
- package/declarations/utils/eui/search-bar/ast-to-es-query-string.d.ts.map +1 -0
- package/declarations/utils/eui/search-bar/ast.d.ts +287 -0
- package/declarations/utils/eui/search-bar/ast.d.ts.map +1 -0
- package/declarations/utils/eui/search-bar/date-format.d.ts +28 -0
- package/declarations/utils/eui/search-bar/date-format.d.ts.map +1 -0
- package/declarations/utils/eui/search-bar/date-value.d.ts +19 -0
- package/declarations/utils/eui/search-bar/date-value.d.ts.map +1 -0
- package/declarations/utils/eui/search-bar/default-syntax-parser.d.ts +9 -0
- package/declarations/utils/eui/search-bar/default-syntax-parser.d.ts.map +1 -0
- package/declarations/utils/eui/search-bar/default-syntax.d.ts +17 -0
- package/declarations/utils/eui/search-bar/default-syntax.d.ts.map +1 -0
- package/declarations/utils/eui/search-bar/execute-ast.d.ts +20 -0
- package/declarations/utils/eui/search-bar/execute-ast.d.ts.map +1 -0
- package/declarations/utils/eui/search-bar/index.d.ts +10 -0
- package/declarations/utils/eui/search-bar/index.d.ts.map +1 -0
- package/declarations/utils/eui/search-bar/operators.d.ts +16 -0
- package/declarations/utils/eui/search-bar/operators.d.ts.map +1 -0
- package/declarations/utils/eui/search-bar/predicate.d.ts +8 -0
- package/declarations/utils/eui/search-bar/predicate.d.ts.map +1 -0
- package/declarations/utils/eui/search-bar/query.d.ts +89 -0
- package/declarations/utils/eui/search-bar/query.d.ts.map +1 -0
- package/declarations/utils/eui/selectable.d.ts +33 -0
- package/declarations/utils/eui/selectable.d.ts.map +1 -0
- package/declarations/utils/eui/sort.d.ts +23 -0
- package/declarations/utils/eui/sort.d.ts.map +1 -0
- package/declarations/utils/eui/split-button.d.ts +13 -0
- package/declarations/utils/eui/split-button.d.ts.map +1 -0
- package/declarations/utils/eui/styles.d.ts +37 -0
- package/declarations/utils/eui/styles.d.ts.map +1 -0
- package/declarations/utils/eui/styles.generated.d.ts +4467 -0
- package/declarations/utils/eui/styles.generated.d.ts.map +1 -0
- package/declarations/utils/eui/suggest.d.ts +24 -0
- package/declarations/utils/eui/suggest.d.ts.map +1 -0
- package/declarations/utils/eui/table.d.ts +12 -0
- package/declarations/utils/eui/table.d.ts.map +1 -0
- package/declarations/utils/eui/text-truncate.d.ts +5 -0
- package/declarations/utils/eui/text-truncate.d.ts.map +1 -0
- package/declarations/utils/eui/theme.d.ts +30 -0
- package/declarations/utils/eui/theme.d.ts.map +1 -0
- package/declarations/utils/eui/token.d.ts +7 -0
- package/declarations/utils/eui/token.d.ts.map +1 -0
- package/declarations/utils/eui/utilities.d.ts +18 -0
- package/declarations/utils/eui/utilities.d.ts.map +1 -0
- package/declarations/utils/html-id-generator.d.ts +11 -0
- package/declarations/utils/html-id-generator.d.ts.map +1 -0
- package/declarations/utils/markdown/plugins/markdown-link-validator.d.ts +53 -0
- package/declarations/utils/markdown/plugins/markdown-link-validator.d.ts.map +1 -0
- package/declarations/utils/markdown/remark/remark-intraword-underscore.d.ts +4 -0
- package/declarations/utils/markdown/remark/remark-intraword-underscore.d.ts.map +1 -0
- package/declarations/utils/pretty-duration.d.ts +12 -0
- package/declarations/utils/pretty-duration.d.ts.map +1 -0
- package/dist/components/eui-accordion.js +1 -3
- package/dist/components/eui-accordion.js.map +1 -1
- package/dist/components/eui-button.js +0 -2
- package/dist/components/eui-button.js.map +1 -1
- package/dist/components/eui-card.js +0 -2
- package/dist/components/eui-card.js.map +1 -1
- package/dist/components/eui-collapsible-nav-group.js +1 -3
- package/dist/components/eui-collapsible-nav-group.js.map +1 -1
- package/dist/components/eui-expression.js +0 -2
- package/dist/components/eui-expression.js.map +1 -1
- package/dist/components/eui-flex-grid.js +1 -3
- package/dist/components/eui-flex-grid.js.map +1 -1
- package/dist/components/eui-flex-item.js +1 -3
- package/dist/components/eui-flex-item.js.map +1 -1
- package/dist/components/eui-flyout.js +0 -2
- package/dist/components/eui-flyout.js.map +1 -1
- package/dist/components/eui-key-pad-menu-item.js +0 -2
- package/dist/components/eui-key-pad-menu-item.js.map +1 -1
- package/dist/components/eui-notification-event.js +0 -2
- package/dist/components/eui-notification-event.js.map +1 -1
- package/dist/components/eui-page-body.js +1 -3
- package/dist/components/eui-page-body.js.map +1 -1
- package/dist/components/eui-side-nav.js +0 -2
- package/dist/components/eui-side-nav.js.map +1 -1
- package/dist/components/eui-stat/description.js +0 -2
- package/dist/components/eui-stat/description.js.map +1 -1
- package/dist/components/eui-stat/title.js +0 -2
- package/dist/components/eui-stat/title.js.map +1 -1
- package/dist/components/eui-suggest-item.js +0 -2
- package/dist/components/eui-suggest-item.js.map +1 -1
- package/dist/components/eui-super-date-picker.js.map +1 -1
- package/dist/components/eui-table-header-cell.js +0 -2
- package/dist/components/eui-table-header-cell.js.map +1 -1
- package/dist/icons-CQELx6Ce.js.map +1 -1
- package/package.json +5 -6
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type EuiDataGridBodyBase from './eui-data-grid/body-base.ts';
|
|
3
|
+
import EuiDataGridRowModel from './eui-data-grid/row-model.ts';
|
|
4
|
+
import type Owner from '@ember/owner';
|
|
5
|
+
import type EuiI18n from '../services/eui-i18n.ts';
|
|
6
|
+
import type { EuiCss } from '../utils/eui/styles.ts';
|
|
7
|
+
import type { EuiDataGridCellValueElementProps, EuiDataGridCellValueSignature, EuiDataGridColumn, EuiDataGridColumnVisibility, EuiDataGridControlColumn, EuiDataGridCustomToolbarProps, EuiDataGridFocusedCell, EuiDataGridGrouping, EuiDataGridInMemory, EuiDataGridInMemoryValues, EuiDataGridPaginationProps, EuiDataGridRefProps, EuiDataGridRowHeightsOptions, EuiDataGridRowTree, EuiDataGridRowTreeRowInfo, EuiDataGridSchema, EuiDataGridSchemaDetector, EuiDataGridSorting, EuiDataGridStyle, EuiDataGridToolBarVisibilityOptions, EuiDataGridVirtualizationOptions } from '../utils/data-grid/types.ts';
|
|
8
|
+
import type { ComponentLike } from '@glint/template';
|
|
9
|
+
import type { EuiDataGridCustomBodyProps } from './eui-data-grid/custom-body';
|
|
10
|
+
import type { EuiDataGridDefaultCellPopoverSignature } from './eui-data-grid/default-cell-popover';
|
|
11
|
+
export type * from '../utils/data-grid/types.ts';
|
|
12
|
+
export type { EuiDataGridCustomBodyCellSignature, EuiDataGridCustomBodyProps, EuiDataGridCustomFooterRowSignature, EuiDataGridSetCustomGridBodyProps } from './eui-data-grid/custom-body';
|
|
13
|
+
/** Upstream `startingStyles` (display_selector.tsx). */
|
|
14
|
+
export declare const startingStyles: Required<Pick<EuiDataGridStyle, 'cellPadding' | 'fontSize' | 'border' | 'stripes' | 'rowHover' | 'header' | 'footer' | 'stickyFooter'>>;
|
|
15
|
+
type CellCallback = (isFocused: boolean, preventScroll?: boolean) => void;
|
|
16
|
+
export interface EuiDataGridCellLocation {
|
|
17
|
+
rowIndex: number;
|
|
18
|
+
colIndex: number;
|
|
19
|
+
}
|
|
20
|
+
/** Popover options a custom popover renderer may set with `setCellPopoverProps`. */
|
|
21
|
+
export interface EuiDataGridCellPopoverProps {
|
|
22
|
+
panelClassName?: string;
|
|
23
|
+
zIndex?: number;
|
|
24
|
+
[key: string]: unknown;
|
|
25
|
+
}
|
|
26
|
+
/** Arguments of `@renderCellPopover` / the `<:cellPopover>` block. */
|
|
27
|
+
export interface EuiDataGridCellPopoverElementProps {
|
|
28
|
+
rowIndex: number;
|
|
29
|
+
colIndex: number;
|
|
30
|
+
columnId: string;
|
|
31
|
+
schema?: string | null;
|
|
32
|
+
cellContentsElement: HTMLElement | null;
|
|
33
|
+
setCellPopoverProps: (props: Record<string, unknown>) => void;
|
|
34
|
+
/** The column's cell actions, as rendered in the default popover footer. */
|
|
35
|
+
cellActions: ComponentLike;
|
|
36
|
+
/**
|
|
37
|
+
* The standard popover display (`EuiText` around its block, or the cell's
|
|
38
|
+
* JSON in a code block for the `json` schema, then the cell actions), to
|
|
39
|
+
* fall back to it for some columns: `<@DefaultCellPopover>{{yield}}</@DefaultCellPopover>`.
|
|
40
|
+
*/
|
|
41
|
+
DefaultCellPopover: ComponentLike<EuiDataGridDefaultCellPopoverSignature>;
|
|
42
|
+
/** The row object, with `@rowTree` or `@grouping.rows` (Ember EUI extension). */
|
|
43
|
+
row?: any;
|
|
44
|
+
/** The row's tree state, with `@rowTree` or `@grouping` (Ember EUI extension). */
|
|
45
|
+
rowTree?: EuiDataGridRowTreeRowInfo;
|
|
46
|
+
}
|
|
47
|
+
export interface EuiDataGridSignature {
|
|
48
|
+
Element: HTMLDivElement;
|
|
49
|
+
Args: {
|
|
50
|
+
/** Column definitions (`id`, `displayAsText`, `schema`, `initialWidth`, `actions`, `cellActions`, …). */
|
|
51
|
+
columns: EuiDataGridColumn[];
|
|
52
|
+
/**
|
|
53
|
+
* Controlled column order/visibility. Optional in Ember: without it the
|
|
54
|
+
* grid keeps its own state, starting with every column visible.
|
|
55
|
+
*/
|
|
56
|
+
columnVisibility?: EuiDataGridColumnVisibility;
|
|
57
|
+
/** Number of rows in the data (not needed with `@rowTree` or `@grouping.rows`). */
|
|
58
|
+
rowCount?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Ember EUI extension: nested rows. The rows array (nested through each
|
|
61
|
+
* row's `children`, or flat with `parentId`), or options
|
|
62
|
+
* `{ rows, getChildren, getParentId, getRowId, hasChildren,
|
|
63
|
+
* expandedRowIds, defaultExpandedRowIds, onExpandedChange,
|
|
64
|
+
* toggleColumnId }`.
|
|
65
|
+
*/
|
|
66
|
+
rowTree?: EuiDataGridRowTree;
|
|
67
|
+
/**
|
|
68
|
+
* Ember EUI extension: groups rows by column values
|
|
69
|
+
* (`{ groupBy, getValue, rows, expandedGroupIds, defaultExpandedGroupIds,
|
|
70
|
+
* onExpandedChange, renderGroupCell, toggleColumnId }`).
|
|
71
|
+
*/
|
|
72
|
+
grouping?: EuiDataGridGrouping;
|
|
73
|
+
/**
|
|
74
|
+
* Component rendering a cell's value; receives `@rowIndex`, `@colIndex`,
|
|
75
|
+
* `@columnId`, `@isDetails`, `@isExpanded`, `@isExpandable`,
|
|
76
|
+
* `@setCellProps`, `@schema`, `@cellContext` and (with `@rowTree` or
|
|
77
|
+
* `@grouping.rows`) `@row`. Or use the `<:cell>` block.
|
|
78
|
+
*/
|
|
79
|
+
renderCellValue?: ComponentLike<EuiDataGridCellValueSignature>;
|
|
80
|
+
/** Extra data passed to every cell renderer as `@cellContext`. */
|
|
81
|
+
cellContext?: Record<string, unknown>;
|
|
82
|
+
/**
|
|
83
|
+
* Component rendering the expansion popover (its default block renders
|
|
84
|
+
* the cell value with `@isDetails`); or use the `<:cellPopover>` block.
|
|
85
|
+
*/
|
|
86
|
+
renderCellPopover?: ComponentLike<{
|
|
87
|
+
Args: EuiDataGridCellPopoverElementProps;
|
|
88
|
+
Blocks: {
|
|
89
|
+
default: [];
|
|
90
|
+
};
|
|
91
|
+
}>;
|
|
92
|
+
/** Component rendering footer cells; or use the `<:footerCell>` block. */
|
|
93
|
+
renderFooterCellValue?: ComponentLike<EuiDataGridCellValueSignature>;
|
|
94
|
+
/**
|
|
95
|
+
* Escape hatch replacing the virtualized body: a component receiving
|
|
96
|
+
* `@Cell`, `@visibleColumns`, `@visibleRowData`, `@setCustomGridBodyProps`,
|
|
97
|
+
* `@gridWidth`, `@headerRow` and `@footerRow`; or use the
|
|
98
|
+
* `<:customGridBody>` block. Give cell content with `@renderCellValue`
|
|
99
|
+
* or the `Cell`'s own block.
|
|
100
|
+
*/
|
|
101
|
+
renderCustomGridBody?: ComponentLike<{
|
|
102
|
+
Args: EuiDataGridCustomBodyProps;
|
|
103
|
+
}>;
|
|
104
|
+
/**
|
|
105
|
+
* Custom toolbar layout: a component receiving the toolbar controls
|
|
106
|
+
* (`@hasRoomForGridControls`, `@columnControl`, `@columnSortingControl`,
|
|
107
|
+
* `@keyboardShortcutsControl`, `@displayControl`, `@fullScreenControl`,
|
|
108
|
+
* `@additionalControls`); or use the `<:customToolbar>` block.
|
|
109
|
+
*/
|
|
110
|
+
renderCustomToolbar?: ComponentLike<{
|
|
111
|
+
Args: EuiDataGridCustomToolbarProps;
|
|
112
|
+
}>;
|
|
113
|
+
/** Columns before the data columns (e.g. row selection). */
|
|
114
|
+
leadingControlColumns?: EuiDataGridControlColumn[];
|
|
115
|
+
/** Columns after the data columns (e.g. row actions). */
|
|
116
|
+
trailingControlColumns?: EuiDataGridControlColumn[];
|
|
117
|
+
/** Extra schema detectors, appended to the defaults. */
|
|
118
|
+
schemaDetectors?: EuiDataGridSchemaDetector[];
|
|
119
|
+
/** Borders, header/footer styles, stripes, row hover, density. */
|
|
120
|
+
gridStyle?: EuiDataGridStyle;
|
|
121
|
+
/** Default and per-row heights (`'auto'`, a number, `{ lineCount }` or `{ height }`). */
|
|
122
|
+
rowHeightsOptions?: EuiDataGridRowHeightsOptions;
|
|
123
|
+
/** `false` hides the toolbar, or an object toggling each control. Defaults to `true`. */
|
|
124
|
+
toolbarVisibility?: boolean | EuiDataGridToolBarVisibilityOptions;
|
|
125
|
+
/** `false` hides the header row. Defaults to `true`. */
|
|
126
|
+
headerVisibility?: boolean;
|
|
127
|
+
/** Pagination state and callbacks; rendered with `EuiTablePagination`. */
|
|
128
|
+
pagination?: EuiDataGridPaginationProps;
|
|
129
|
+
/** Sorted columns and `onSort`. */
|
|
130
|
+
sorting?: EuiDataGridSorting;
|
|
131
|
+
/** Let the grid read rendered values to detect schemas and sort in memory. */
|
|
132
|
+
inMemory?: EuiDataGridInMemory;
|
|
133
|
+
/** Called after a column is resized. */
|
|
134
|
+
onColumnResize?: (event: {
|
|
135
|
+
columnId: string;
|
|
136
|
+
width: number;
|
|
137
|
+
}) => void;
|
|
138
|
+
/** Below this width only the right toolbar controls show. Defaults to 479. */
|
|
139
|
+
minSizeForControls?: number;
|
|
140
|
+
/** Grid height (CSS length or px number). Without it the grid grows with its rows. */
|
|
141
|
+
height?: string | number;
|
|
142
|
+
/** Grid width (CSS length or px number). */
|
|
143
|
+
width?: string | number;
|
|
144
|
+
/** Overscan counts and render/scroll callbacks of the virtualized body. */
|
|
145
|
+
virtualizationOptions?: EuiDataGridVirtualizationOptions;
|
|
146
|
+
/** Called when fullscreen mode is entered or left. */
|
|
147
|
+
onFullScreenChange?: (isFullScreen: boolean) => void;
|
|
148
|
+
/**
|
|
149
|
+
* Called after render with the grid's imperative API (upstream's `ref`):
|
|
150
|
+
* `setIsFullScreen`, `setFocusedCell`, `openCellPopover`,
|
|
151
|
+
* `closeCellPopover`, `scrollTo` and `scrollToItem`.
|
|
152
|
+
*/
|
|
153
|
+
registerApi?: (api: EuiDataGridRefProps) => void;
|
|
154
|
+
/** Accessible name of the grid (same as the `aria-label` attribute). */
|
|
155
|
+
ariaLabel?: string;
|
|
156
|
+
/** Id(s) labelling the grid (same as the `aria-labelledby` attribute). */
|
|
157
|
+
ariaLabelledBy?: string;
|
|
158
|
+
/** Extra styles composed last into the grid class. */
|
|
159
|
+
css?: EuiCss;
|
|
160
|
+
};
|
|
161
|
+
Blocks: {
|
|
162
|
+
/** Cell content when `@renderCellValue` is not given. */
|
|
163
|
+
cell: [EuiDataGridCellValueElementProps];
|
|
164
|
+
/** Expansion popover content when `@renderCellPopover` is not given. */
|
|
165
|
+
cellPopover: [EuiDataGridCellPopoverElementProps];
|
|
166
|
+
/** Footer cell content when `@renderFooterCellValue` is not given. */
|
|
167
|
+
footerCell: [EuiDataGridCellValueElementProps];
|
|
168
|
+
/** Header of a control column without `headerCellRender`. */
|
|
169
|
+
controlHeaderCell: [{
|
|
170
|
+
columnId: string;
|
|
171
|
+
}];
|
|
172
|
+
/** Body cell of a control column without `rowCellRender`. */
|
|
173
|
+
controlCell: [EuiDataGridCellValueElementProps];
|
|
174
|
+
/** Footer cell of a control column without `footerCellRender`. */
|
|
175
|
+
controlFooterCell: [EuiDataGridCellValueElementProps];
|
|
176
|
+
/** Toolbar controls before the column/sort controls. */
|
|
177
|
+
leftControlsPrepend: [];
|
|
178
|
+
/** Toolbar controls after the column/sort controls. */
|
|
179
|
+
leftControlsAppend: [];
|
|
180
|
+
/** Toolbar controls before the right icon buttons. */
|
|
181
|
+
rightControls: [];
|
|
182
|
+
/** Custom toolbar (like `@renderCustomToolbar`), yielding the toolbar controls. */
|
|
183
|
+
customToolbar: [EuiDataGridCustomToolbarProps];
|
|
184
|
+
/** Custom grid body (like `@renderCustomGridBody`). */
|
|
185
|
+
customGridBody: [EuiDataGridCustomBodyProps];
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Data grid with virtualized rows and columns, keyboard navigation, cell
|
|
190
|
+
* expansion, sorting, column management, display options and pagination.
|
|
191
|
+
* Port of EUI 123.1.0 `EuiDataGrid`.
|
|
192
|
+
*/
|
|
193
|
+
export default class EuiDataGrid extends Component<EuiDataGridSignature> {
|
|
194
|
+
euiI18n: EuiI18n;
|
|
195
|
+
readonly gridId: string;
|
|
196
|
+
readonly interactiveCellId: string;
|
|
197
|
+
readonly ariaLabelledById: string;
|
|
198
|
+
/** The grid body; registers itself to scroll focused cells into view. */
|
|
199
|
+
body: EuiDataGridBodyBase<any> | null;
|
|
200
|
+
contentElement: HTMLElement | null;
|
|
201
|
+
/**
|
|
202
|
+
* Toolbar width, kept by the root's resize observer. Only the toolbar
|
|
203
|
+
* consumes it (to hide the left controls on narrow grids).
|
|
204
|
+
*/
|
|
205
|
+
gridWidth: number;
|
|
206
|
+
isFullScreen: boolean;
|
|
207
|
+
attrAriaLabel: string | null;
|
|
208
|
+
attrAriaLabelledBy: string | null;
|
|
209
|
+
get leadingControlColumns(): EuiDataGridControlColumn[];
|
|
210
|
+
get trailingControlColumns(): EuiDataGridControlColumn[];
|
|
211
|
+
get displayValues(): Record<string, string>;
|
|
212
|
+
private internalVisibleColumns;
|
|
213
|
+
get visibleColumnIds(): string[];
|
|
214
|
+
setVisibleColumns(columnIds: string[]): void;
|
|
215
|
+
private sortedColumnsState;
|
|
216
|
+
get initialSortedColumns(): string[];
|
|
217
|
+
get sortedColumns(): string[];
|
|
218
|
+
setSortedColumns(nextColumns: string[]): void;
|
|
219
|
+
/** Move a column to another column's position (header column actions). */
|
|
220
|
+
switchColumnPos(fromColId: string, toColId: string): void;
|
|
221
|
+
/** The visible data columns, in display order. */
|
|
222
|
+
get columns(): EuiDataGridColumn[];
|
|
223
|
+
get visibleColCount(): number;
|
|
224
|
+
get pagination(): (EuiDataGridPaginationProps & {
|
|
225
|
+
pageSize: number;
|
|
226
|
+
pageSizeOptions: number[];
|
|
227
|
+
}) | undefined;
|
|
228
|
+
/** `pagination` where the template already checked it is defined. */
|
|
229
|
+
get definedPagination(): EuiDataGridPaginationProps & {
|
|
230
|
+
pageSize: number;
|
|
231
|
+
pageSizeOptions: number[];
|
|
232
|
+
};
|
|
233
|
+
readonly rowTreeModel: EuiDataGridRowModel;
|
|
234
|
+
get rowModel(): EuiDataGridRowModel | null;
|
|
235
|
+
get rowCount(): number;
|
|
236
|
+
get dataRowCount(): number;
|
|
237
|
+
get showPagination(): boolean;
|
|
238
|
+
get visibleRows(): {
|
|
239
|
+
startRow: number;
|
|
240
|
+
endRow: number;
|
|
241
|
+
visibleRowCount: number;
|
|
242
|
+
};
|
|
243
|
+
get schemaDetectors(): EuiDataGridSchemaDetector[];
|
|
244
|
+
/** Values read from the off-screen in-memory renderer. */
|
|
245
|
+
inMemoryValues: EuiDataGridInMemoryValues;
|
|
246
|
+
inMemoryVersion: number;
|
|
247
|
+
onCellRender(rowIndex: number, columnId: string, value: string): void;
|
|
248
|
+
resetInMemoryValues(rowCount: number): void;
|
|
249
|
+
get inMemoryValuesSnapshot(): EuiDataGridInMemoryValues;
|
|
250
|
+
get inMemoryRowCount(): number;
|
|
251
|
+
get schema(): EuiDataGridSchema;
|
|
252
|
+
get sortedRowMap(): number[];
|
|
253
|
+
/** Visible (page-relative or absolute) row index to the data row index. */
|
|
254
|
+
getCorrectRowIndex(visibleRowIndex: number): number;
|
|
255
|
+
get passedGridStyles(): EuiDataGridStyle;
|
|
256
|
+
get passedGridStylesKey(): string;
|
|
257
|
+
private gridStylesState;
|
|
258
|
+
get gridStyles(): typeof startingStyles & EuiDataGridStyle;
|
|
259
|
+
/** Initial styles the display selector's reset button restores. */
|
|
260
|
+
initialGridStyles: EuiDataGridStyle | null;
|
|
261
|
+
onUserGridStyleChange(styles: Partial<EuiDataGridStyle>): void;
|
|
262
|
+
get passedRowHeightsOptions(): EuiDataGridRowHeightsOptions;
|
|
263
|
+
get passedRowHeightsOptionsKey(): string;
|
|
264
|
+
private rowHeightsState;
|
|
265
|
+
get rowHeightsOptions(): EuiDataGridRowHeightsOptions;
|
|
266
|
+
initialRowHeightsOptions: EuiDataGridRowHeightsOptions | null;
|
|
267
|
+
onUserRowHeightChange(options: Partial<EuiDataGridRowHeightsOptions>): void;
|
|
268
|
+
resetDisplayOptions(): void;
|
|
269
|
+
constructor(owner: Owner, args: EuiDataGridSignature['Args']);
|
|
270
|
+
private cellsUpdateFocus;
|
|
271
|
+
focusedCell: EuiDataGridFocusedCell | undefined;
|
|
272
|
+
isFocusedCellInView: boolean;
|
|
273
|
+
/** Register a cell's focus callback; returns the unregister function. */
|
|
274
|
+
onFocusUpdate(cell: EuiDataGridFocusedCell, callback: CellCallback): () => void;
|
|
275
|
+
isFocusedCell(colIndex: number, visibleRowIndex: number): boolean;
|
|
276
|
+
setFocusedCell(nextFocusedCell: EuiDataGridFocusedCell, forceUpdate?: boolean): void;
|
|
277
|
+
private notifyCell;
|
|
278
|
+
setIsFocusedCellInView(isInView: boolean): void;
|
|
279
|
+
focusFirstVisibleInteractiveCell(): void;
|
|
280
|
+
popoverCell: EuiDataGridCellLocation | null;
|
|
281
|
+
/** Popover props a custom popover renderer sets (`setCellPopoverProps`). */
|
|
282
|
+
cellPopoverProps: EuiDataGridCellPopoverProps;
|
|
283
|
+
openCellPopover({ rowIndex, colIndex }: EuiDataGridCellLocation): void;
|
|
284
|
+
closeCellPopover(): void;
|
|
285
|
+
isPopoverOpenFor(colIndex: number, visibleRowIndex: number): boolean;
|
|
286
|
+
setIsFullScreen(isFullScreen: boolean): void;
|
|
287
|
+
toggleFullScreen(): void;
|
|
288
|
+
onGridRootKeyDown(event: KeyboardEvent): void;
|
|
289
|
+
restrictBody: import("ember-modifier").FunctionBasedModifier<{
|
|
290
|
+
Args: {
|
|
291
|
+
Positional: [boolean, string];
|
|
292
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
293
|
+
};
|
|
294
|
+
Element: HTMLElement;
|
|
295
|
+
}>;
|
|
296
|
+
get showToolbar(): boolean;
|
|
297
|
+
get showHeader(): boolean;
|
|
298
|
+
get styles(): {
|
|
299
|
+
context: import("../theming.ts").EuiThemeContext;
|
|
300
|
+
grid: {
|
|
301
|
+
euiDataGrid: import("@emotion/serialize").SerializedStyles;
|
|
302
|
+
cellPadding: {
|
|
303
|
+
cellPadding: (size: any) => import("@emotion/serialize").SerializedStyles;
|
|
304
|
+
readonly s: import("@emotion/serialize").SerializedStyles;
|
|
305
|
+
readonly m: import("@emotion/serialize").SerializedStyles;
|
|
306
|
+
readonly l: import("@emotion/serialize").SerializedStyles;
|
|
307
|
+
};
|
|
308
|
+
fontSize: {
|
|
309
|
+
fontSize: (size: any) => import("@emotion/serialize").SerializedStyles;
|
|
310
|
+
readonly s: import("@emotion/serialize").SerializedStyles;
|
|
311
|
+
readonly m: import("@emotion/serialize").SerializedStyles;
|
|
312
|
+
readonly l: import("@emotion/serialize").SerializedStyles;
|
|
313
|
+
};
|
|
314
|
+
borders: {
|
|
315
|
+
none: null;
|
|
316
|
+
horizontal: import("@emotion/serialize").SerializedStyles;
|
|
317
|
+
all: import("@emotion/serialize").SerializedStyles;
|
|
318
|
+
};
|
|
319
|
+
euiDataGrid__content: import("@emotion/serialize").SerializedStyles;
|
|
320
|
+
euiDataGrid__focusWrap: import("@emotion/serialize").SerializedStyles;
|
|
321
|
+
};
|
|
322
|
+
fullScreen: {
|
|
323
|
+
'euiDataGrid--fullScreen': import("@emotion/serialize").SerializedStyles;
|
|
324
|
+
euiDataGrid__restrictBody: import("@emotion/serialize").SerializedStyles;
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
get focusWrapClass(): string;
|
|
328
|
+
get fullScreenClass(): string;
|
|
329
|
+
get restrictBodyClass(): string;
|
|
330
|
+
get classes(): string;
|
|
331
|
+
/** Class of the hidden tabular copy marker characters. */
|
|
332
|
+
get copyMarkerClass(): string;
|
|
333
|
+
get contentClass(): string;
|
|
334
|
+
get rootStyle(): import("@ember/template").TrustedHTML | undefined;
|
|
335
|
+
get ariaPage(): number;
|
|
336
|
+
get ariaPageCount(): number;
|
|
337
|
+
get rawAriaLabel(): string | null;
|
|
338
|
+
get rawAriaLabelledBy(): string | null;
|
|
339
|
+
get gridAriaLabel(): string | undefined;
|
|
340
|
+
get gridAriaLabelledBy(): string | undefined;
|
|
341
|
+
get ariaLabelledByText(): string;
|
|
342
|
+
get screenReaderNotice(): string;
|
|
343
|
+
/** Moves `aria-label`/`aria-labelledby` attributes to the `role=grid` element. */
|
|
344
|
+
moveAriaAttributes: import("ember-modifier").FunctionBasedModifier<{
|
|
345
|
+
Args: {
|
|
346
|
+
Positional: unknown[];
|
|
347
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
348
|
+
};
|
|
349
|
+
Element: HTMLElement;
|
|
350
|
+
}>;
|
|
351
|
+
/** Tracks the grid width for the toolbar's responsive controls. */
|
|
352
|
+
observeWidth: import("ember-modifier").FunctionBasedModifier<{
|
|
353
|
+
Args: {
|
|
354
|
+
Positional: unknown[];
|
|
355
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
356
|
+
};
|
|
357
|
+
Element: HTMLElement;
|
|
358
|
+
}>;
|
|
359
|
+
/** Interactive elements added to cells leave the tab order. */
|
|
360
|
+
setupContent: import("ember-modifier").FunctionBasedModifier<{
|
|
361
|
+
Args: {
|
|
362
|
+
Positional: unknown[];
|
|
363
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
364
|
+
};
|
|
365
|
+
Element: HTMLElement;
|
|
366
|
+
}>;
|
|
367
|
+
get hasFooter(): boolean;
|
|
368
|
+
onContentKeyDown(event: KeyboardEvent): void;
|
|
369
|
+
get contentTabIndex(): number;
|
|
370
|
+
onContentKeyUp(event: KeyboardEvent): void;
|
|
371
|
+
willDestroy(): void;
|
|
372
|
+
/**
|
|
373
|
+
* Throws a digestible error if the consumer targets an invalid cell, which
|
|
374
|
+
* also stops the API from continuing.
|
|
375
|
+
*/
|
|
376
|
+
private checkCellExists;
|
|
377
|
+
/**
|
|
378
|
+
* The consumer's (unsorted, unpaginated) row index to the visible row
|
|
379
|
+
* index the cells use, changing page when the row is on another one.
|
|
380
|
+
*/
|
|
381
|
+
private findVisibleRowIndex;
|
|
382
|
+
/** The API passed to `@registerApi`. */
|
|
383
|
+
readonly api: EuiDataGridRefProps;
|
|
384
|
+
toggleRow(row: {
|
|
385
|
+
id: string;
|
|
386
|
+
kind: 'row' | 'group';
|
|
387
|
+
isExpanded: boolean;
|
|
388
|
+
}): void;
|
|
389
|
+
get hasRowModel(): boolean;
|
|
390
|
+
clampRowTreePageIndex: import("ember-modifier").FunctionBasedModifier<{
|
|
391
|
+
Args: {
|
|
392
|
+
Positional: [EuiDataGrid, number, number | undefined, number | undefined];
|
|
393
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
394
|
+
};
|
|
395
|
+
Element: HTMLElement;
|
|
396
|
+
}>;
|
|
397
|
+
registerApi: import("ember-modifier").FunctionBasedModifier<{
|
|
398
|
+
Args: {
|
|
399
|
+
Positional: [((api: EuiDataGridRefProps) => void) | undefined, boolean];
|
|
400
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
401
|
+
};
|
|
402
|
+
Element: HTMLElement;
|
|
403
|
+
}>;
|
|
404
|
+
}
|
|
405
|
+
//# sourceMappingURL=eui-data-grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-data-grid.d.ts","sourceRoot":"","sources":["../../src/components/eui-data-grid.gts"],"names":[],"mappings":"AAouCA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAqC3C,OAAO,KAAK,mBAAmB,MAAM,8BAA8B,CAAC;AAOpE,OAAO,mBAAmB,MAAM,8BAA8B,CAAC;AAG/D,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC;AACnD,OAAO,KAAK,EAAE,MAAM,EA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AAmB,KAAK,IAAI;;;;OAk2BhD;CAgMH"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type { EuiThemeContext } from '../utils/emotion/context.ts';
|
|
3
|
+
export interface EuiEmotionButtonSignature {
|
|
4
|
+
Element: HTMLButtonElement | HTMLAnchorElement;
|
|
5
|
+
Args: {
|
|
6
|
+
context?: EuiThemeContext;
|
|
7
|
+
color?: 'primary' | 'success' | 'warning' | 'danger' | 'text';
|
|
8
|
+
size?: 's' | 'm';
|
|
9
|
+
fill?: boolean;
|
|
10
|
+
fullWidth?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
isDisabled?: boolean;
|
|
13
|
+
isLoading?: boolean;
|
|
14
|
+
isSelected?: boolean;
|
|
15
|
+
href?: string;
|
|
16
|
+
target?: string;
|
|
17
|
+
type?: 'button' | 'submit' | 'reset';
|
|
18
|
+
};
|
|
19
|
+
Blocks: {
|
|
20
|
+
default: [];
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/** Opt-in button port. All styling is Emotion-owned, with no legacy EUI CSS. */
|
|
24
|
+
export default class EuiEmotionButton extends Component<EuiEmotionButtonSignature> {
|
|
25
|
+
get context(): EuiThemeContext;
|
|
26
|
+
get isDisabled(): boolean;
|
|
27
|
+
get isLink(): boolean;
|
|
28
|
+
get styles(): string;
|
|
29
|
+
get spinnerStyles(): string;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=eui-emotion-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-emotion-button.d.ts","sourceRoot":"","sources":["../../src/components/eui-emotion-button.gts"],"names":[],"mappings":"AAmIA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAI3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,IAAI,EAAE;QACJ,OAAO,CAAC,EAAE,eAAe,CAAC;QAC1B,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;QAC9D,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC;QACjB,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;KACtC,CAAC;IACF,MAAM,EAAE;QAAE,OAAO,EAAE,EAAE,CAAA;KAAE,CAAC;CACzB;AAED,gFAAgF;AAChF,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,SAAS,CAAC,yBAAyB,CAAC;IAChF,IAAI,OAAO,oBAEV;IACD,IAAI,UAAU,YAIb;IACD,IAAI,MAAM,YAET;IAED,IAAI,MAAM,WAmDT;IAED,IAAI,aAAa,WAchB;CA2DF"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import type { EuiBorealisOverrides, EuiHighContrastModeArg } from '../utils/eui/theme.ts';
|
|
2
|
+
import Component from '@glimmer/component';
|
|
3
|
+
import { EuiThemeContext } from '../utils/emotion/context.ts';
|
|
4
|
+
import type { EuiEmotionCache } from '../utils/emotion/context.ts';
|
|
5
|
+
import type { EuiBorealisContext } from '../utils/eui/theme.ts';
|
|
6
|
+
import type { EuiColorMode, EuiEmotionTheme, EuiThemeOverrides } from '../utils/emotion/theme.ts';
|
|
7
|
+
import type { EuiEmotionButtonSignature } from './eui-emotion-button';
|
|
8
|
+
import type { ComponentLike } from '@glint/template';
|
|
9
|
+
export interface EuiEmotionProviderSignature {
|
|
10
|
+
Element: HTMLSpanElement;
|
|
11
|
+
Args: {
|
|
12
|
+
/**
|
|
13
|
+
* Wrap the content in a `<span class="euiThemeProvider">` that sets the
|
|
14
|
+
* resolved paragraph color, as upstream's nested EuiThemeProvider does,
|
|
15
|
+
* so inherited text follows this provider's mode. Defaults to `true`.
|
|
16
|
+
* Pass `false` where an extra element would break layout (e.g. a
|
|
17
|
+
* provider directly inside a flex or grid container); attributes are
|
|
18
|
+
* forwarded to the span.
|
|
19
|
+
*/
|
|
20
|
+
wrapper?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Like upstream EuiProvider's `globalStyles`: the outermost provider
|
|
23
|
+
* injects EUI's global reset and root typography (root font size 14px
|
|
24
|
+
* in Borealis, which upstream `rem` sizes are relative to) while it is
|
|
25
|
+
* rendered, and removes them when torn down. Nested providers never
|
|
26
|
+
* do. Pass `false` on pages that still rely on legacy EUI CSS, or when
|
|
27
|
+
* the host app owns its global styles. Defaults to `true`.
|
|
28
|
+
*/
|
|
29
|
+
globalStyles?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* `"light"` or `"dark"`. Nested providers inherit their parent's. Like
|
|
32
|
+
* upstream EuiProvider, a root provider (no parent provider) left
|
|
33
|
+
* undefined follows the OS `prefers-color-scheme` (or the
|
|
34
|
+
* `eui-emotion` service's `colorMode` when set). An OS-forced high
|
|
35
|
+
* contrast (`forced-colors: active`) supersedes it.
|
|
36
|
+
*/
|
|
37
|
+
colorMode?: EuiColorMode;
|
|
38
|
+
borealisOverrides?: EuiBorealisOverrides;
|
|
39
|
+
/**
|
|
40
|
+
* Like upstream: `true` (or `"preferred"`) enables high contrast,
|
|
41
|
+
* `false` overrides the parent/system preference, `"forced"` forces it.
|
|
42
|
+
* Undefined inherits; a root provider then follows the OS
|
|
43
|
+
* (`prefers-contrast: more` → `"preferred"`, Windows
|
|
44
|
+
* `forced-colors: active` → `"forced"`, which supersedes every app
|
|
45
|
+
* setting, including `@colorMode`).
|
|
46
|
+
*/
|
|
47
|
+
highContrastMode?: EuiHighContrastModeArg;
|
|
48
|
+
overrides?: EuiThemeOverrides;
|
|
49
|
+
parent?: EuiThemeContext;
|
|
50
|
+
cache?: EuiEmotionCache;
|
|
51
|
+
};
|
|
52
|
+
Blocks: {
|
|
53
|
+
default: [
|
|
54
|
+
{
|
|
55
|
+
context: EuiThemeContext;
|
|
56
|
+
theme: EuiEmotionTheme;
|
|
57
|
+
Button: ComponentLike<EuiEmotionButtonSignature>;
|
|
58
|
+
}
|
|
59
|
+
];
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
/** Descendants consume the nearest theme automatically; see `@wrapper`. */
|
|
63
|
+
export default class EuiEmotionProvider extends Component<EuiEmotionProviderSignature> {
|
|
64
|
+
private readonly themeContext;
|
|
65
|
+
private system?;
|
|
66
|
+
private rootParent?;
|
|
67
|
+
/**
|
|
68
|
+
* A root provider's parent: upstream's `EuiSystemDefaultsProvider`. OS
|
|
69
|
+
* preferences fill what the `eui-emotion` service leaves unset; the
|
|
70
|
+
* service still supplies overrides and the default cache.
|
|
71
|
+
*/
|
|
72
|
+
private systemContext;
|
|
73
|
+
get context(): EuiThemeContext;
|
|
74
|
+
private globals?;
|
|
75
|
+
/** The outermost provider: no parent provider and no `@parent`. */
|
|
76
|
+
get isRoot(): boolean;
|
|
77
|
+
/** Only the outermost provider owns global styles, as upstream. */
|
|
78
|
+
get rendersGlobalStyles(): boolean;
|
|
79
|
+
/**
|
|
80
|
+
* The root provider owns the page-level styles: upstream's global styles
|
|
81
|
+
* (unless `@globalStyles={{false}}`) in the `eui-global` cache, and the
|
|
82
|
+
* theme's CSS variables on `:root` (see `utils/eui/css-variables.ts`) in
|
|
83
|
+
* the `eui-vars` cache, re-injected when the theme changes. Variables are
|
|
84
|
+
* published even without global styles: they style nothing by
|
|
85
|
+
* themselves.
|
|
86
|
+
*/
|
|
87
|
+
syncGlobalStyles: (upstream: EuiBorealisContext, isRoot: boolean, globalStyles: boolean) => undefined;
|
|
88
|
+
private variables?;
|
|
89
|
+
private removeGlobalStyles;
|
|
90
|
+
private removeCssVariables;
|
|
91
|
+
willDestroy(): void;
|
|
92
|
+
/**
|
|
93
|
+
* A nested provider whose theme differs from its parent's (own
|
|
94
|
+
* overrides, or a different color/contrast mode) scopes the theme CSS
|
|
95
|
+
* variables on its wrapper; otherwise they are inherited from `:root`.
|
|
96
|
+
*/
|
|
97
|
+
get scopesCssVariables(): boolean;
|
|
98
|
+
get colorClass(): string;
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=eui-emotion-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-emotion-provider.d.ts","sourceRoot":"","sources":["../../src/components/eui-emotion-provider.gts"],"names":[],"mappings":"AAwPA,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAS3C,OAAO,EACL,eAAe,EAEhB,MAAM,6BAA6B,CAAC;AAOrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EACf,iBAAiB,EAClB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,eAAe,CAAC;IACzB,IAAI,EAAE;QACJ;;;;;;;WAOG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB;;;;;;;WAOG;QACH,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB;;;;;;WAMG;QACH,SAAS,CAAC,EAAE,YAAY,CAAC;QACzB,iBAAiB,CAAC,EAAE,oBAAoB,CAAC;QACzC;;;;;;;WAOG;QACH,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;QAC1C,SAAS,CAAC,EAAE,iBAAiB,CAAC;QAC9B,MAAM,CAAC,EAAE,eAAe,CAAC;QACzB,KAAK,CAAC,EAAE,eAAe,CAAC;KACzB,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBACE,OAAO,EAAE,eAAe,CAAC;gBACzB,KAAK,EAAE,eAAe,CAAC;gBACvB,MAAM,EAAE,aAAa,CAAC,yBAAyB,CAAC,CAAC;aAClD;SACF,CAAC;KACH,CAAC;CACH;AAED,2EAA2E;AAC3E,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,SAAS,CAAC,2BAA2B,CAAC;IACpF,OAAO,CAAC,QAAQ,CAAC,YAAY,CAM3B;IAEF,OAAO,CAAC,MAAM,CAAC,CAAuB;IACtC,OAAO,CAAC,UAAU,CAAC,CAAkB;IAErC;;;;OAIG;IACH,OAAO,CAAC,aAAa;IAmBrB,IACI,OAAO,oBAEV;IAED,OAAO,CAAC,OAAO,CAAC,CAAkB;IAElC,mEAAmE;IACnE,IAAI,MAAM,YAET;IAED,mEAAmE;IACnE,IAAI,mBAAmB,YAEtB;IAED;;;;;;;OAOG;IACH,gBAAgB,GACd,UAAU,kBAAkB,EAC5B,QAAQ,OAAO,EACf,cAAc,OAAO,KACpB,SAAS,CAkBV;IAEF,OAAO,CAAC,SAAS,CAAC,CAAkB;IAEpC,OAAO,CAAC,kBAAkB;IAK1B,OAAO,CAAC,kBAAkB;IAK1B,WAAW;IAOX;;;;OAIG;IACH,IAAI,kBAAkB,IAAI,OAAO,CAShC;IAED,IACI,UAAU,WAUb;CA4BF"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type EuiI18n from '../services/eui-i18n.ts';
|
|
3
|
+
import type { EuiCss } from '../utils/eui/styles.ts';
|
|
4
|
+
/**
|
|
5
|
+
* Upstream `EuiErrorBoundary`'s message text: "Error: message" followed by
|
|
6
|
+
* the stack without its first line (only Chrome repeats the message there).
|
|
7
|
+
*/
|
|
8
|
+
export declare function euiErrorMessageText(error: unknown): string;
|
|
9
|
+
export interface EuiErrorMessageSignature {
|
|
10
|
+
Element: HTMLDivElement;
|
|
11
|
+
Args: {
|
|
12
|
+
/** The text to show, as upstream's `errorMessage` (e.g. a message and stack). */
|
|
13
|
+
errorMessage?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Ember EUI: an error to show instead, formatted like upstream's
|
|
16
|
+
* `EuiErrorBoundary` formats a caught error (message and stack). Handy in
|
|
17
|
+
* a route's `error` template: `<EuiErrorMessage @error={{@model}} />`.
|
|
18
|
+
*/
|
|
19
|
+
error?: unknown;
|
|
20
|
+
/** Extra styles composed last into the panel's class (upstream's `css`). */
|
|
21
|
+
css?: EuiCss;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Upstream `EuiErrorMessage`, the fallback `EuiErrorBoundary` renders: a
|
|
26
|
+
* danger-striped panel with an "Error" title and the error text in a code
|
|
27
|
+
* block. Ember has no render error boundaries, so render it yourself where
|
|
28
|
+
* an error was caught, e.g. in a route's `error` template.
|
|
29
|
+
*/
|
|
30
|
+
export default class EuiErrorMessage extends Component<EuiErrorMessageSignature> {
|
|
31
|
+
euiI18n: EuiI18n;
|
|
32
|
+
get classes(): string;
|
|
33
|
+
get text(): string | undefined;
|
|
34
|
+
get title(): string;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=eui-error-message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-error-message.d.ts","sourceRoot":"","sources":["../../src/components/eui-error-message.gts"],"names":[],"mappings":"AAqFA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAU3C,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC;AACnD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAErD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAO1D;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE;QACJ,iFAAiF;QACjF,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB;;;;WAIG;QACH,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,4EAA4E;QAC5E,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED;;;;;GAKG;AACH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,SAAS,CAAC,wBAAwB,CAAC;IAC7D,OAAO,EAAE,OAAO,CAAC;IAElC,IACI,OAAO,IAAI,MAAM,CAcpB;IAED,IAAI,IAAI,IAAI,MAAM,GAAG,SAAS,CAI7B;IAED,IAAI,KAAK,IAAI,MAAM,CAElB;CA6CF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-expression.d.ts","sourceRoot":"","sources":["../../src/components/eui-expression.gts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"eui-expression.d.ts","sourceRoot":"","sources":["../../src/components/eui-expression.gts"],"names":[],"mappings":"AA4IA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAW5E;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,iBAAiB,GAAG,eAAe,CAAC;IAC7C,IAAI,EAAE;QACJ,0EAA0E;QAC1E,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,sEAAsE;QACtE,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;;WAGG;QACH,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;QAC5E,sDAAsD;QACtD,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,uDAAuD;QACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,mDAAmD;QACnD,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,qDAAqD;QACrD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;QACtC;;;WAGG;QACH,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;QAC/B,wEAAwE;QACxE,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACnC,8EAA8E;QAC9E,QAAQ,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;KACtC,CAAC;IACF,MAAM,EAAE;QACN,6DAA6D;QAC7D,WAAW,EAAE,EAAE,CAAC;QAChB,iDAAiD;QACjD,KAAK,EAAE,EAAE,CAAC;KACX,CAAC;CACH;AA0BD,QAAA,MAAM,aAAa,EAAE,qBAAqB,CAAC,sBAAsB,CA0E/D,CAAC;AAMH,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-flex-grid.d.ts","sourceRoot":"","sources":["../../src/components/eui-flex-grid.gts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"eui-flex-grid.d.ts","sourceRoot":"","sources":["../../src/components/eui-flex-grid.gts"],"names":[],"mappings":"AAmFA,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EAAC,MAAM,wCAAwC,CAAC;AACnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE5E,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,cAAc,GAAG,GAAG,CAAC;IAC9B,IAAI,EAAE;QACJ;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB;;;WAGG;QACH,SAAS,CAAC,EAAE,MAAM,OAAO,gBAAgB,CAAC;QAC1C;;;WAGG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB;;;WAGG;QACH,UAAU,CAAC,EAAE,MAAM,OAAO,iBAAiB,CAAC;QAC5C;;WAEG;QACH,UAAU,CAAC,EAAE,OAAO,CAAC;KACtB,CAAC;IACF,MAAM,EAAE;QACN,8CAA8C;QAC9C,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAED,QAAA,MAAM,WAAW,EAAE,qBAAqB,CAAC,oBAAoB,CAwC3D,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-flex-item.d.ts","sourceRoot":"","sources":["../../src/components/eui-flex-item.gts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"eui-flex-item.d.ts","sourceRoot":"","sources":["../../src/components/eui-flex-item.gts"],"names":[],"mappings":"AA6DA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE5E,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE;QACJ;;;;WAIG;QACH,IAAI,CAAC,EAAE,MAAM,OAAO,WAAW,GAAG,OAAO,CAAC;QAC1C,4CAA4C;QAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,MAAM,EAAE;QACN,mBAAmB;QACnB,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAED,QAAA,MAAM,WAAW,EAAE,qBAAqB,CAAC,oBAAoB,CAqD3D,CAAC;AAEH,eAAe,WAAW,CAAC"}
|