@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,495 @@
|
|
|
1
|
+
import type { ComponentLike } from '@glint/template';
|
|
2
|
+
export type EuiDataGridStyleFontSizes = 's' | 'm' | 'l';
|
|
3
|
+
export type EuiDataGridStyleBorders = 'all' | 'horizontal' | 'none';
|
|
4
|
+
export type EuiDataGridStyleHeader = 'shade' | 'underline';
|
|
5
|
+
export type EuiDataGridStyleFooter = 'shade' | 'overline' | 'striped';
|
|
6
|
+
export type EuiDataGridStyleRowHover = 'highlight' | 'none';
|
|
7
|
+
export type EuiDataGridStyleCellPaddings = 's' | 'm' | 'l';
|
|
8
|
+
export interface EuiDataGridStyle {
|
|
9
|
+
fontSize?: EuiDataGridStyleFontSizes;
|
|
10
|
+
border?: EuiDataGridStyleBorders;
|
|
11
|
+
stripes?: boolean;
|
|
12
|
+
header?: EuiDataGridStyleHeader;
|
|
13
|
+
footer?: EuiDataGridStyleFooter;
|
|
14
|
+
stickyFooter?: boolean;
|
|
15
|
+
rowHover?: EuiDataGridStyleRowHover;
|
|
16
|
+
cellPadding?: EuiDataGridStyleCellPaddings;
|
|
17
|
+
/** Extra classes per row index (data index), e.g. `{ 3: 'myRow' }`. */
|
|
18
|
+
rowClasses?: Record<number, string>;
|
|
19
|
+
/** Called with the new styles when the display selector changes them. */
|
|
20
|
+
onChange?: (styles: EuiDataGridStyle) => void;
|
|
21
|
+
}
|
|
22
|
+
export type EuiDataGridRowHeightOption = number | 'auto' | {
|
|
23
|
+
lineCount: number;
|
|
24
|
+
height?: never;
|
|
25
|
+
} | {
|
|
26
|
+
height: number;
|
|
27
|
+
lineCount?: never;
|
|
28
|
+
};
|
|
29
|
+
export interface EuiDataGridRowHeightsOptions {
|
|
30
|
+
defaultHeight?: EuiDataGridRowHeightOption;
|
|
31
|
+
rowHeights?: Record<number, EuiDataGridRowHeightOption>;
|
|
32
|
+
lineHeight?: string;
|
|
33
|
+
autoBelowLineCount?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* The row anchoring vertical layout shifts: with `'start'` or `'center'`
|
|
36
|
+
* the first or middle visible row keeps its position when rows above it
|
|
37
|
+
* change height, by adjusting the grid's scroll position.
|
|
38
|
+
*/
|
|
39
|
+
scrollAnchorRow?: 'start' | 'center';
|
|
40
|
+
onChange?: (options: EuiDataGridRowHeightsOptions) => void;
|
|
41
|
+
}
|
|
42
|
+
/** Props a cell renderer may set on its cell (`setCellProps`). */
|
|
43
|
+
export interface EuiDataGridSetCellProps {
|
|
44
|
+
className?: string;
|
|
45
|
+
style?: Record<string, string | number | undefined>;
|
|
46
|
+
isExpandable?: boolean;
|
|
47
|
+
'data-test-subj'?: string;
|
|
48
|
+
[attribute: string]: unknown;
|
|
49
|
+
}
|
|
50
|
+
/** Arguments of `@renderCellValue` / the `<:cell>` block. */
|
|
51
|
+
export interface EuiDataGridCellValueElementProps {
|
|
52
|
+
rowIndex: number;
|
|
53
|
+
colIndex: number;
|
|
54
|
+
columnId: string;
|
|
55
|
+
setCellProps: (props: EuiDataGridSetCellProps) => void;
|
|
56
|
+
isExpandable: boolean;
|
|
57
|
+
isExpanded: boolean;
|
|
58
|
+
isDetails: boolean;
|
|
59
|
+
schema?: string | null;
|
|
60
|
+
cellContext?: Record<string, unknown>;
|
|
61
|
+
/** The row object, with `@rowTree` or `@grouping.rows` (Ember EUI extension). */
|
|
62
|
+
row?: any;
|
|
63
|
+
/** The row's tree state, with `@rowTree` or `@grouping` (Ember EUI extension). */
|
|
64
|
+
rowTree?: EuiDataGridRowTreeRowInfo;
|
|
65
|
+
}
|
|
66
|
+
export interface EuiDataGridCellValueSignature {
|
|
67
|
+
Args: EuiDataGridCellValueElementProps;
|
|
68
|
+
}
|
|
69
|
+
/** Arguments of a column cell action component. */
|
|
70
|
+
export interface EuiDataGridColumnCellActionProps {
|
|
71
|
+
rowIndex: number;
|
|
72
|
+
colIndex: number;
|
|
73
|
+
columnId: string;
|
|
74
|
+
/** The button to render: an EuiButtonIcon on hover, EuiButtonEmpty in the popover. */
|
|
75
|
+
Component: ComponentLike<{
|
|
76
|
+
Element: HTMLButtonElement | HTMLAnchorElement;
|
|
77
|
+
Args: {
|
|
78
|
+
iconType?: string;
|
|
79
|
+
isDisabled?: boolean;
|
|
80
|
+
};
|
|
81
|
+
Blocks: {
|
|
82
|
+
default: [];
|
|
83
|
+
};
|
|
84
|
+
}>;
|
|
85
|
+
isExpanded: boolean;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* A cell action: an Ember component (upstream API) or, as an Ember
|
|
89
|
+
* convenience, a descriptor rendered with the cell action button.
|
|
90
|
+
*/
|
|
91
|
+
export type EuiDataGridColumnCellAction = ComponentLike<{
|
|
92
|
+
Args: EuiDataGridColumnCellActionProps;
|
|
93
|
+
}> | {
|
|
94
|
+
iconType: string;
|
|
95
|
+
label: string;
|
|
96
|
+
onClick: (props: Omit<EuiDataGridColumnCellActionProps, 'Component'>) => void;
|
|
97
|
+
'data-test-subj'?: string;
|
|
98
|
+
};
|
|
99
|
+
export interface EuiDataGridColumnActionConfig {
|
|
100
|
+
label?: string;
|
|
101
|
+
iconType?: string;
|
|
102
|
+
isDisabled?: boolean;
|
|
103
|
+
[key: string]: unknown;
|
|
104
|
+
}
|
|
105
|
+
export interface EuiDataGridColumnActions {
|
|
106
|
+
showHide?: boolean | EuiDataGridColumnActionConfig;
|
|
107
|
+
showMoveLeft?: boolean | EuiDataGridColumnActionConfig;
|
|
108
|
+
showMoveRight?: boolean | EuiDataGridColumnActionConfig;
|
|
109
|
+
showSortAsc?: boolean | EuiDataGridColumnActionConfig;
|
|
110
|
+
showSortDesc?: boolean | EuiDataGridColumnActionConfig;
|
|
111
|
+
/** Extra `EuiListGroupItem` arguments (`label`, `iconType`, `onClick`, …). */
|
|
112
|
+
additional?: EuiDataGridColumnActionConfig[];
|
|
113
|
+
}
|
|
114
|
+
export interface EuiDataGridColumn {
|
|
115
|
+
id: string;
|
|
116
|
+
/** Header content component; falls back to `displayAsText` or `id`. */
|
|
117
|
+
display?: ComponentLike;
|
|
118
|
+
displayAsText?: string;
|
|
119
|
+
/** Extra attributes for the header cell (`className`, `data-*`, …). */
|
|
120
|
+
displayHeaderCellProps?: Record<string, unknown> & {
|
|
121
|
+
className?: string;
|
|
122
|
+
};
|
|
123
|
+
initialWidth?: number;
|
|
124
|
+
isResizable?: boolean;
|
|
125
|
+
isExpandable?: boolean;
|
|
126
|
+
isSortable?: boolean;
|
|
127
|
+
defaultSortDirection?: 'asc' | 'desc';
|
|
128
|
+
schema?: string;
|
|
129
|
+
actions?: false | EuiDataGridColumnActions;
|
|
130
|
+
cellActions?: EuiDataGridColumnCellAction[];
|
|
131
|
+
visibleCellActions?: number;
|
|
132
|
+
}
|
|
133
|
+
export interface EuiDataGridControlColumn {
|
|
134
|
+
id: string;
|
|
135
|
+
width: number;
|
|
136
|
+
/** Header component; or use the `<:controlHeaderCell>` block. */
|
|
137
|
+
headerCellRender?: ComponentLike;
|
|
138
|
+
headerCellProps?: Record<string, unknown> & {
|
|
139
|
+
className?: string;
|
|
140
|
+
};
|
|
141
|
+
/** Body cell component; or use the `<:controlCell>` block. */
|
|
142
|
+
rowCellRender?: ComponentLike<EuiDataGridCellValueSignature>;
|
|
143
|
+
/** Footer cell component; or use the `<:controlFooterCell>` block. */
|
|
144
|
+
footerCellRender?: ComponentLike<EuiDataGridCellValueSignature>;
|
|
145
|
+
/**
|
|
146
|
+
* Props of the footer cell: `className` and `style` (an object of CSS
|
|
147
|
+
* properties, under the cell's own width and line height) apply to it.
|
|
148
|
+
*/
|
|
149
|
+
footerCellProps?: Record<string, unknown> & {
|
|
150
|
+
className?: string;
|
|
151
|
+
style?: Record<string, string | number | undefined>;
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
export interface EuiDataGridColumnVisibility {
|
|
155
|
+
visibleColumns: string[];
|
|
156
|
+
setVisibleColumns: (columnIds: string[]) => void;
|
|
157
|
+
canDragAndDropColumns?: boolean;
|
|
158
|
+
}
|
|
159
|
+
export interface EuiDataGridSortingColumn {
|
|
160
|
+
id: string;
|
|
161
|
+
direction: 'asc' | 'desc';
|
|
162
|
+
}
|
|
163
|
+
export interface EuiDataGridSorting {
|
|
164
|
+
onSort: (columns: EuiDataGridSortingColumn[]) => void;
|
|
165
|
+
columns: EuiDataGridSortingColumn[];
|
|
166
|
+
}
|
|
167
|
+
export interface EuiDataGridPaginationProps {
|
|
168
|
+
pageIndex: number;
|
|
169
|
+
pageSize?: number;
|
|
170
|
+
pageSizeOptions?: number[];
|
|
171
|
+
onChangePage: (pageIndex: number) => void;
|
|
172
|
+
onChangeItemsPerPage: (pageSize: number) => void;
|
|
173
|
+
}
|
|
174
|
+
export interface EuiDataGridInMemory {
|
|
175
|
+
level: 'enhancements' | 'pagination' | 'sorting';
|
|
176
|
+
skipColumns?: string[];
|
|
177
|
+
}
|
|
178
|
+
export type EuiDataGridInMemoryValues = Record<string, Record<string, string>>;
|
|
179
|
+
export interface EuiDataGridSchemaDetector {
|
|
180
|
+
type: string;
|
|
181
|
+
detector: (value: string) => number;
|
|
182
|
+
comparator?: (a: string, b: string, direction: 'asc' | 'desc', indexes: {
|
|
183
|
+
aIndex: number;
|
|
184
|
+
bIndex: number;
|
|
185
|
+
}) => number;
|
|
186
|
+
icon: string;
|
|
187
|
+
color?: string;
|
|
188
|
+
/** Sort labels: plain text or an i18n `{ token, default }` pair. */
|
|
189
|
+
sortTextAsc: string | {
|
|
190
|
+
token: string;
|
|
191
|
+
default: string;
|
|
192
|
+
};
|
|
193
|
+
sortTextDesc: string | {
|
|
194
|
+
token: string;
|
|
195
|
+
default: string;
|
|
196
|
+
};
|
|
197
|
+
isSortable?: boolean;
|
|
198
|
+
defaultSortDirection?: 'asc' | 'desc';
|
|
199
|
+
textTransform?: 'uppercase' | 'lowercase' | 'capitalize';
|
|
200
|
+
}
|
|
201
|
+
export type EuiDataGridSchema = Record<string, {
|
|
202
|
+
columnType: string | null;
|
|
203
|
+
}>;
|
|
204
|
+
export interface EuiDataGridToolBarVisibilityColumnSelectorOptions {
|
|
205
|
+
allowHide?: boolean;
|
|
206
|
+
allowReorder?: boolean;
|
|
207
|
+
}
|
|
208
|
+
export interface EuiDataGridToolBarVisibilityDisplaySelectorOptions {
|
|
209
|
+
allowDensity?: boolean;
|
|
210
|
+
allowRowHeight?: boolean;
|
|
211
|
+
allowResetButton?: boolean;
|
|
212
|
+
/** A component appended to the bottom of the display settings popover. */
|
|
213
|
+
additionalDisplaySettings?: ComponentLike;
|
|
214
|
+
/**
|
|
215
|
+
* Completely custom layout of the display settings popover: a component
|
|
216
|
+
* receiving the default controls (undefined when disabled).
|
|
217
|
+
*/
|
|
218
|
+
customRender?: ComponentLike<{
|
|
219
|
+
Args: EuiDataGridDisplaySelectorCustomRenderProps;
|
|
220
|
+
}>;
|
|
221
|
+
}
|
|
222
|
+
/** Arguments of `showDisplaySelector.customRender`. */
|
|
223
|
+
export interface EuiDataGridDisplaySelectorCustomRenderProps {
|
|
224
|
+
densityControl?: ComponentLike;
|
|
225
|
+
rowHeightControl?: ComponentLike;
|
|
226
|
+
additionalDisplaySettings?: ComponentLike;
|
|
227
|
+
resetButton?: ComponentLike;
|
|
228
|
+
}
|
|
229
|
+
/** Where `toolbarVisibility.additionalControls.left` components go. */
|
|
230
|
+
export interface EuiDataGridToolBarAdditionalControlsLeftOptions {
|
|
231
|
+
/** Before the column & sort controls. */
|
|
232
|
+
prepend?: ComponentLike;
|
|
233
|
+
/** After the column & sort controls. */
|
|
234
|
+
append?: ComponentLike;
|
|
235
|
+
}
|
|
236
|
+
export interface EuiDataGridToolBarAdditionalControlsOptions {
|
|
237
|
+
/**
|
|
238
|
+
* A component appended to the left side (after the column & sort
|
|
239
|
+
* controls), or `{ prepend, append }` components.
|
|
240
|
+
*/
|
|
241
|
+
left?: ComponentLike | EuiDataGridToolBarAdditionalControlsLeftOptions;
|
|
242
|
+
/** A component prepended to the right side (before the display & fullscreen controls). */
|
|
243
|
+
right?: ComponentLike;
|
|
244
|
+
}
|
|
245
|
+
export interface EuiDataGridToolBarVisibilityOptions {
|
|
246
|
+
showColumnSelector?: boolean | EuiDataGridToolBarVisibilityColumnSelectorOptions;
|
|
247
|
+
showDisplaySelector?: boolean | EuiDataGridToolBarVisibilityDisplaySelectorOptions;
|
|
248
|
+
showSortSelector?: boolean;
|
|
249
|
+
showFullScreenSelector?: boolean;
|
|
250
|
+
/**
|
|
251
|
+
* Shows the keyboard shortcuts popover button. When `false`, it is
|
|
252
|
+
* visually hidden but still reachable by keyboard and screen readers.
|
|
253
|
+
*/
|
|
254
|
+
showKeyboardShortcuts?: boolean;
|
|
255
|
+
/**
|
|
256
|
+
* Extra toolbar controls as components: one component (appended to the
|
|
257
|
+
* left side) or `{ left, right }` (see also the grid's
|
|
258
|
+
* `<:leftControlsPrepend>`, `<:leftControlsAppend>` and `<:rightControls>`
|
|
259
|
+
* blocks).
|
|
260
|
+
*/
|
|
261
|
+
additionalControls?: ComponentLike | EuiDataGridToolBarAdditionalControlsOptions;
|
|
262
|
+
}
|
|
263
|
+
/** Controls handed to `@renderCustomToolbar` / the `<:customToolbar>` block (undefined when hidden). */
|
|
264
|
+
export interface EuiDataGridCustomToolbarProps {
|
|
265
|
+
/** Whether the grid is wide enough (or fullscreen) for the left controls. */
|
|
266
|
+
hasRoomForGridControls: boolean;
|
|
267
|
+
/** The column selector button. */
|
|
268
|
+
columnControl?: ComponentLike;
|
|
269
|
+
/** The sort popover button (undefined without `@sorting`). */
|
|
270
|
+
columnSortingControl?: ComponentLike;
|
|
271
|
+
/** The keyboard shortcuts button (screen reader only when `showKeyboardShortcuts` is false). */
|
|
272
|
+
keyboardShortcutsControl: ComponentLike;
|
|
273
|
+
/** The display options button. */
|
|
274
|
+
displayControl?: ComponentLike;
|
|
275
|
+
/** The fullscreen toggle. */
|
|
276
|
+
fullScreenControl?: ComponentLike;
|
|
277
|
+
/**
|
|
278
|
+
* Ember addition: `toolbarVisibility.additionalControls` components by
|
|
279
|
+
* position (the grid's control blocks can't be passed on).
|
|
280
|
+
*/
|
|
281
|
+
additionalControls: {
|
|
282
|
+
leftPrepend?: ComponentLike;
|
|
283
|
+
leftAppend?: ComponentLike;
|
|
284
|
+
right?: ComponentLike;
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
export interface EuiDataGridVirtualizationOptions {
|
|
288
|
+
/** Extra class of the scrolling body element. */
|
|
289
|
+
className?: string;
|
|
290
|
+
/** Extra inline styles of the scrolling body element. */
|
|
291
|
+
style?: Record<string, string | number>;
|
|
292
|
+
/** Initial vertical scroll offset in px. */
|
|
293
|
+
initialScrollTop?: number;
|
|
294
|
+
/** Initial horizontal scroll offset in px. */
|
|
295
|
+
initialScrollLeft?: number;
|
|
296
|
+
/** Extra rows rendered above/below the viewport. Defaults to 1. */
|
|
297
|
+
overscanRowCount?: number;
|
|
298
|
+
/** Extra columns rendered before/after the viewport. Defaults to 1. */
|
|
299
|
+
overscanColumnCount?: number;
|
|
300
|
+
/**
|
|
301
|
+
* Height in px assumed for rows the grid hasn't laid out yet (react-window
|
|
302
|
+
* `estimatedRowHeight`): rows past the last rendered one count with this
|
|
303
|
+
* height in the scrollable height, which then grows or shrinks as rows
|
|
304
|
+
* render. Without it the scrollable height is exact (Ember EUI default;
|
|
305
|
+
* react-window assumes 50).
|
|
306
|
+
*/
|
|
307
|
+
estimatedRowHeight?: number;
|
|
308
|
+
onItemsRendered?: (items: EuiDataGridItemsRendered) => void;
|
|
309
|
+
/**
|
|
310
|
+
* Called when the scroll position changes, from user scrolling or from
|
|
311
|
+
* scrolling requested by the grid (`scrollTo`, `scrollToItem`, keyboard
|
|
312
|
+
* focus), and once when the body first renders.
|
|
313
|
+
*/
|
|
314
|
+
onScroll?: (event: EuiDataGridScrollEvent) => void;
|
|
315
|
+
}
|
|
316
|
+
export interface EuiDataGridItemsRendered {
|
|
317
|
+
overscanRowStartIndex: number;
|
|
318
|
+
overscanRowStopIndex: number;
|
|
319
|
+
overscanColumnStartIndex: number;
|
|
320
|
+
overscanColumnStopIndex: number;
|
|
321
|
+
visibleRowStartIndex: number;
|
|
322
|
+
visibleRowStopIndex: number;
|
|
323
|
+
visibleColumnStartIndex: number;
|
|
324
|
+
visibleColumnStopIndex: number;
|
|
325
|
+
}
|
|
326
|
+
export interface EuiDataGridScrollEvent {
|
|
327
|
+
/** react-window: `'forward'` when the scroll offset grew, else `'backward'`. */
|
|
328
|
+
horizontalScrollDirection: 'forward' | 'backward';
|
|
329
|
+
verticalScrollDirection: 'forward' | 'backward';
|
|
330
|
+
/**
|
|
331
|
+
* react-window: true when the grid scrolled itself (`scrollTo`,
|
|
332
|
+
* `scrollToItem`, a focused cell scrolled into view), false for user
|
|
333
|
+
* scrolling.
|
|
334
|
+
*/
|
|
335
|
+
scrollUpdateWasRequested: boolean;
|
|
336
|
+
scrollTop: number;
|
|
337
|
+
scrollLeft: number;
|
|
338
|
+
scrollHeight: number;
|
|
339
|
+
scrollWidth: number;
|
|
340
|
+
clientHeight: number;
|
|
341
|
+
clientWidth: number;
|
|
342
|
+
isScrolledToBlockStart: boolean;
|
|
343
|
+
isScrolledToBlockEnd: boolean;
|
|
344
|
+
isScrolledToInlineStart: boolean;
|
|
345
|
+
isScrolledToInlineEnd: boolean;
|
|
346
|
+
}
|
|
347
|
+
/** `[colIndex, visibleRowIndex]`; the header row is `-1`. */
|
|
348
|
+
export type EuiDataGridFocusedCell = [number, number];
|
|
349
|
+
/** Cell location used by the imperative API (`rowIndex` is the data row index). */
|
|
350
|
+
export interface EuiDataGridCellLocationProps {
|
|
351
|
+
rowIndex: number;
|
|
352
|
+
colIndex: number;
|
|
353
|
+
}
|
|
354
|
+
/** react-window `scrollTo` arguments: offsets in px, missing ones are kept. */
|
|
355
|
+
export interface EuiDataGridScrollToProps {
|
|
356
|
+
scrollLeft?: number;
|
|
357
|
+
scrollTop?: number;
|
|
358
|
+
}
|
|
359
|
+
/** react-window `scrollToItem` arguments (`rowIndex` is the visible row index). */
|
|
360
|
+
export interface EuiDataGridScrollToItemProps {
|
|
361
|
+
align?: 'auto' | 'smart' | 'center' | 'end' | 'start';
|
|
362
|
+
columnIndex?: number;
|
|
363
|
+
rowIndex?: number;
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* The grid's imperative API (upstream's `ref`), passed to `@registerApi`.
|
|
367
|
+
*/
|
|
368
|
+
export interface EuiDataGridRefProps {
|
|
369
|
+
/** Allows manually controlling the fullscreen state of the grid. */
|
|
370
|
+
setIsFullScreen: (isFullScreen: boolean) => void;
|
|
371
|
+
/**
|
|
372
|
+
* Focuses the specified cell, changing page if needed. Restore focus to
|
|
373
|
+
* the grid with it after closing a modal or flyout the grid opened.
|
|
374
|
+
*/
|
|
375
|
+
setFocusedCell: (cell: EuiDataGridCellLocationProps) => void;
|
|
376
|
+
/** Opens the expansion popover of the specified cell, changing page if needed. */
|
|
377
|
+
openCellPopover: (cell: EuiDataGridCellLocationProps) => void;
|
|
378
|
+
/** Closes any open cell popover. */
|
|
379
|
+
closeCellPopover: () => void;
|
|
380
|
+
/** Scrolls the grid body to a top/left offset (not available with a custom grid body). */
|
|
381
|
+
scrollTo?: (params: EuiDataGridScrollToProps) => void;
|
|
382
|
+
/** Scrolls a row and/or column into view (not available with a custom grid body). */
|
|
383
|
+
scrollToItem?: (params: EuiDataGridScrollToItemProps) => void;
|
|
384
|
+
/**
|
|
385
|
+
* Ember EUI extension, with `@rowTree`/`@grouping`: expands a row or group
|
|
386
|
+
* by id. (`setFocusedCell`/`openCellPopover` reveal collapsed rows themselves.)
|
|
387
|
+
*/
|
|
388
|
+
expandRow?: (id: string) => void;
|
|
389
|
+
/** Collapses a row or group by id. */
|
|
390
|
+
collapseRow?: (id: string) => void;
|
|
391
|
+
/** Expands every row and group. */
|
|
392
|
+
expandAll?: () => void;
|
|
393
|
+
/** Collapses every row and group. */
|
|
394
|
+
collapseAll?: () => void;
|
|
395
|
+
}
|
|
396
|
+
/** Options of `@rowTree` (or pass the rows array itself). */
|
|
397
|
+
export interface EuiDataGridRowTreeOptions<T = any> {
|
|
398
|
+
/**
|
|
399
|
+
* The rows: nested (a row's `children` array holds its child rows) or flat
|
|
400
|
+
* (each row's `parentId`/`parent` is another row's `id`). Cell renderers
|
|
401
|
+
* receive the row as `@row`; `@rowIndex` is the row's index in pre-order
|
|
402
|
+
* for nested rows and its array index for flat rows.
|
|
403
|
+
*/
|
|
404
|
+
rows: T[];
|
|
405
|
+
/** Child rows of a row. Defaults to `row.children` when it is an array. */
|
|
406
|
+
getChildren?: (row: T) => T[] | null | undefined;
|
|
407
|
+
/** Parent row id of a row (flat rows). Defaults to `row.parentId ?? row.parent`. */
|
|
408
|
+
getParentId?: (row: T) => string | number | null | undefined;
|
|
409
|
+
/** Row id. Defaults to `row.id`, else the row index. */
|
|
410
|
+
getRowId?: (row: T, rowIndex: number) => string | number | null | undefined;
|
|
411
|
+
/**
|
|
412
|
+
* Whether a row shows a toggle before its children are loaded (lazy
|
|
413
|
+
* loading). Defaults to `row.hasChildren === true`.
|
|
414
|
+
*/
|
|
415
|
+
hasChildren?: (row: T) => boolean;
|
|
416
|
+
/** Controlled expanded row ids. Without it the grid keeps its own state. */
|
|
417
|
+
expandedRowIds?: string[];
|
|
418
|
+
/** Initially expanded row ids (uncontrolled), or `'all'`. */
|
|
419
|
+
defaultExpandedRowIds?: string[] | 'all';
|
|
420
|
+
/** Called with the new expanded row ids when a row is toggled. */
|
|
421
|
+
onExpandedChange?: (expandedRowIds: string[]) => void;
|
|
422
|
+
/** Column showing the indentation and toggle. Defaults to the first data column. */
|
|
423
|
+
toggleColumnId?: string;
|
|
424
|
+
}
|
|
425
|
+
/** `@rowTree`: the (nested or flat) rows, or options with `rows`. */
|
|
426
|
+
export type EuiDataGridRowTree<T = any> = T[] | EuiDataGridRowTreeOptions<T>;
|
|
427
|
+
/** Arguments of `@grouping.renderGroupCell`, rendered in every data cell of a group row. */
|
|
428
|
+
export interface EuiDataGridGroupCellProps {
|
|
429
|
+
/** Grouped column, value, row count and data row indexes. */
|
|
430
|
+
group: {
|
|
431
|
+
columnId: string;
|
|
432
|
+
value: unknown;
|
|
433
|
+
count: number;
|
|
434
|
+
rowIndices: number[];
|
|
435
|
+
};
|
|
436
|
+
/** Group id (used in `expandedGroupIds`). */
|
|
437
|
+
groupId: string;
|
|
438
|
+
/** The cell's column. */
|
|
439
|
+
columnId: string;
|
|
440
|
+
colIndex: number;
|
|
441
|
+
/** Whether this cell holds the toggle (render the group label here). */
|
|
442
|
+
isToggleCell: boolean;
|
|
443
|
+
isExpanded: boolean;
|
|
444
|
+
/** Nesting level, 0 for outermost groups. */
|
|
445
|
+
depth: number;
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* Tree state of a data row, passed with `@rowTree`/`@grouping` to cell
|
|
449
|
+
* renderers (`@rowTree`, `rowTree` in the `<:cell>` block) and popovers.
|
|
450
|
+
*/
|
|
451
|
+
export interface EuiDataGridRowTreeRowInfo {
|
|
452
|
+
/** Row id (used in `expandedRowIds`). */
|
|
453
|
+
id: string;
|
|
454
|
+
/** Nesting level, 0 for top-level rows (rows inside groups count the groups). */
|
|
455
|
+
depth: number;
|
|
456
|
+
/** Whether the row has (or, lazily loaded, can have) child rows. */
|
|
457
|
+
hasChildren: boolean;
|
|
458
|
+
/** Whether the row's children are shown. */
|
|
459
|
+
isExpanded: boolean;
|
|
460
|
+
/** Parent row or group id, `null` for top-level rows. */
|
|
461
|
+
parentId: string | null;
|
|
462
|
+
/** 1-based position among its siblings. */
|
|
463
|
+
posInSet: number;
|
|
464
|
+
/** Number of siblings (the row included). */
|
|
465
|
+
setSize: number;
|
|
466
|
+
/** Whether this cell holds the indentation and toggle. */
|
|
467
|
+
isToggleCell: boolean;
|
|
468
|
+
/** Expands or collapses the row (calls `onExpandedChange`). */
|
|
469
|
+
toggle: () => void;
|
|
470
|
+
}
|
|
471
|
+
/** Options of `@grouping`. */
|
|
472
|
+
export interface EuiDataGridGrouping<T = any> {
|
|
473
|
+
/** Column ids to group by, outermost first. */
|
|
474
|
+
groupBy: string[];
|
|
475
|
+
/**
|
|
476
|
+
* Raw value of a cell to group by. Defaults to `row[columnId]` when rows
|
|
477
|
+
* are known (`rows` here or `@rowTree`).
|
|
478
|
+
*/
|
|
479
|
+
getValue?: (rowIndex: number, columnId: string, row: T | undefined) => unknown;
|
|
480
|
+
/** Flat rows (cell renderers receive the row as `@row`). Optional with `getValue`. */
|
|
481
|
+
rows?: T[];
|
|
482
|
+
/** Controlled expanded group ids. Without it the grid keeps its own state. */
|
|
483
|
+
expandedGroupIds?: string[];
|
|
484
|
+
/** Initially expanded group ids (uncontrolled), or `'all'`. */
|
|
485
|
+
defaultExpandedGroupIds?: string[] | 'all';
|
|
486
|
+
/** Called with the new expanded group ids when a group is toggled. */
|
|
487
|
+
onExpandedChange?: (expandedGroupIds: string[]) => void;
|
|
488
|
+
/** Component rendering a group row's data cells (default: value and count in the toggle cell). */
|
|
489
|
+
renderGroupCell?: ComponentLike<{
|
|
490
|
+
Args: EuiDataGridGroupCellProps;
|
|
491
|
+
}>;
|
|
492
|
+
/** Column showing the indentation and toggle. Defaults to the first data column. */
|
|
493
|
+
toggleColumnId?: string;
|
|
494
|
+
}
|
|
495
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/data-grid/types.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,yBAAyB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;A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yBAAyB,CAAA;KAAE,CAAC,CAAC;IACrE,oFAAoF;IACpF,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { EuiThemeContext } from './context.ts';
|
|
2
|
+
export declare const EUI_EMOTION_CONTEXT: "@ember-eui/core/emotion-theme";
|
|
3
|
+
declare module 'ember-provide-consume-context/context-registry' {
|
|
4
|
+
export default interface ContextRegistry {
|
|
5
|
+
[EUI_EMOTION_CONTEXT]: EuiThemeContext;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
/** Read in a component getter so provider and service changes remain tracked. */
|
|
9
|
+
export declare function getEuiThemeContext(component: object): EuiThemeContext;
|
|
10
|
+
//# sourceMappingURL=consume.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consume.d.ts","sourceRoot":"","sources":["../../../src/utils/emotion/consume.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,eAAO,MAAM,mBAAmB,EAAG,+BAAwC,CAAC;AAE5E,OAAO,QAAQ,gDAAgD,CAAC;IAC9D,MAAM,CAAC,OAAO,WAAW,eAAe;QACtC,CAAC,mBAAmB,CAAC,EAAE,eAAe,CAAC;KACxC;CACF;AAED,iFAAiF;AACjF,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,eAAe,CAQrE"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { EuiBorealisOverrides, EuiBorealisHighContrastMode, EuiHighContrastModeArg } from '../eui/theme.ts';
|
|
2
|
+
import type { CSSInterpolation, Emotion, Options } from '@emotion/css/create-instance';
|
|
3
|
+
import type { EuiColorMode, EuiEmotionTheme, EuiThemeOverrides } from './theme.ts';
|
|
4
|
+
export type EuiEmotionCache = Emotion;
|
|
5
|
+
/** The caller owns the instance; shared caches must not be flushed by children. */
|
|
6
|
+
export declare function createEuiEmotionCache(options?: Options): EuiEmotionCache;
|
|
7
|
+
export interface EuiThemeSettings {
|
|
8
|
+
colorMode?: EuiColorMode;
|
|
9
|
+
borealisOverrides?: EuiBorealisOverrides;
|
|
10
|
+
highContrastMode?: EuiHighContrastModeArg;
|
|
11
|
+
overrides?: EuiThemeOverrides;
|
|
12
|
+
cache?: EuiEmotionCache;
|
|
13
|
+
}
|
|
14
|
+
/** Explicit context lets Ember autotracking follow provider and parent settings. */
|
|
15
|
+
export declare class EuiThemeContext {
|
|
16
|
+
/** The context's own (unresolved) settings; `undefined` inherits. */
|
|
17
|
+
readonly settings: () => EuiThemeSettings;
|
|
18
|
+
private parent;
|
|
19
|
+
private fallbackCache?;
|
|
20
|
+
constructor(
|
|
21
|
+
/** The context's own (unresolved) settings; `undefined` inherits. */
|
|
22
|
+
settings: () => EuiThemeSettings, parent?: () => EuiThemeContext | undefined);
|
|
23
|
+
/**
|
|
24
|
+
* Set on the contexts that are not providers: the `eui-emotion` service's
|
|
25
|
+
* defaults and a root provider's system (OS) defaults.
|
|
26
|
+
*/
|
|
27
|
+
isSystem: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The outermost provider's context (upstream's global theme), or this
|
|
30
|
+
* context when no provider is rendered.
|
|
31
|
+
*/
|
|
32
|
+
get root(): EuiThemeContext;
|
|
33
|
+
/**
|
|
34
|
+
* As upstream `getColorMode`: an OS-forced high contrast (`'forced'` from
|
|
35
|
+
* the parent) supersedes the app's color mode, so the parent's (the
|
|
36
|
+
* system's, at the root) mode wins.
|
|
37
|
+
*/
|
|
38
|
+
get colorMode(): EuiColorMode;
|
|
39
|
+
get overrides(): EuiThemeOverrides;
|
|
40
|
+
get borealisOverrides(): EuiBorealisOverrides;
|
|
41
|
+
/**
|
|
42
|
+
* As upstream EuiThemeProvider: a forced parent always wins, `true` means
|
|
43
|
+
* `'preferred'`, `false` overrides the parent/system preference, and
|
|
44
|
+
* `undefined` inherits it.
|
|
45
|
+
*/
|
|
46
|
+
get highContrastMode(): EuiBorealisHighContrastMode;
|
|
47
|
+
get upstream(): import("../eui/theme.ts").EuiBorealisContext;
|
|
48
|
+
get theme(): EuiEmotionTheme;
|
|
49
|
+
get cache(): EuiEmotionCache;
|
|
50
|
+
/** Only flush a cache this context created, never a supplied or inherited one. */
|
|
51
|
+
destroy(): void;
|
|
52
|
+
}
|
|
53
|
+
/** Ordinary tracked reads, without React hook lifecycle or ordering rules. */
|
|
54
|
+
export declare function useEuiTheme(context: EuiThemeContext): EuiEmotionTheme;
|
|
55
|
+
export declare function useEuiStyles(context: EuiThemeContext, factory: (theme: EuiEmotionTheme) => CSSInterpolation): string;
|
|
56
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/utils/emotion/context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,oBAAoB,EACpB,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AAIzB,OAAO,KAAK,EACV,gBAAgB,EAChB,OAAO,EACP,OAAO,EACR,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EACf,iBAAiB,EAClB,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC;AAEtC,mFAAmF;AACnF,wBAAgB,qBAAqB,CACnC,OAAO,GAAE,OAA8B,GACtC,eAAe,CAEjB;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB,iBAAiB,CAAC,EAAE,oBAAoB,CAAC;IACzC,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAC1C,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB;AAED,oFAAoF;AACpF,qBAAa,eAAe;IAIxB,qEAAqE;IACrE,QAAQ,CAAC,QAAQ,EAAE,MAAM,gBAAgB;IACzC,OAAO,CAAC,MAAM;IALhB,OAAO,CAAC,aAAa,CAAC,CAAkB;;IAGtC,qEAAqE;IAC5D,QAAQ,EAAE,MAAM,gBAAgB,EACjC,MAAM,GAAE,MAAM,eAAe,GAAG,SAA2B;IAGrE;;;OAGG;IACH,QAAQ,UAAS;IAEjB;;;OAGG;IACH,IAAI,IAAI,IAAI,eAAe,CAG1B;IAED;;;;OAIG;IACH,IAAI,SAAS,IAAI,YAAY,CAI5B;IAED,IAAI,SAAS,IAAI,iBAAiB,CAQjC;IAED,IAAI,iBAAiB,IAAI,oBAAoB,CAK5C;IAED;;;;OAIG;IACH,IAAI,gBAAgB,IAAI,2BAA2B,CAOlD;IAED,IACI,QAAQ,iDAMX;IAED,IAAI,KAAK,IAAI,eAAe,CAE3B;IAED,IAAI,KAAK,IAAI,eAAe,CAI3B;IAED,kFAAkF;IAClF,OAAO;CAIR;AAED,8EAA8E;AAC9E,wBAAgB,WAAW,CAAC,OAAO,EAAE,eAAe,GAAG,eAAe,CAErE;AAED,wBAAgB,YAAY,CAC1B,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,gBAAgB,GACpD,MAAM,CAER"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { EuiColorMode } from './theme.ts';
|
|
2
|
+
import type { EuiBorealisHighContrastMode } from '../eui/theme.ts';
|
|
3
|
+
/**
|
|
4
|
+
* The OS/browser preferences upstream's `EuiSystemDefaultsProvider` reads
|
|
5
|
+
* (`components/provider/system_defaults`), tracked so a root provider whose
|
|
6
|
+
* `@colorMode`/`@highContrastMode` are undefined follows them live:
|
|
7
|
+
*
|
|
8
|
+
* - `(prefers-color-scheme: dark)` → `'dark'`, else `'light'`;
|
|
9
|
+
* - `(forced-colors: active)` (Windows high contrast) → `'forced'`, which
|
|
10
|
+
* supersedes app settings, else `(prefers-contrast: more)` → `'preferred'`,
|
|
11
|
+
* else `false`.
|
|
12
|
+
*
|
|
13
|
+
* Safe without `window`/`matchMedia` (SSR, FastBoot, tests): everything
|
|
14
|
+
* stays at its default. Call `destroy()` to remove the change listeners.
|
|
15
|
+
*/
|
|
16
|
+
export declare class EuiSystemPreferences {
|
|
17
|
+
prefersDark: boolean;
|
|
18
|
+
forcedColors: boolean;
|
|
19
|
+
prefersMoreContrast: boolean;
|
|
20
|
+
private cleanups;
|
|
21
|
+
constructor();
|
|
22
|
+
get colorMode(): EuiColorMode;
|
|
23
|
+
get highContrastMode(): EuiBorealisHighContrastMode;
|
|
24
|
+
private watch;
|
|
25
|
+
destroy(): void;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=system.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../src/utils/emotion/system.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAEnE;;;;;;;;;;;;GAYG;AACH,qBAAa,oBAAoB;IACtB,WAAW,UAAS;IACpB,YAAY,UAAS;IACrB,mBAAmB,UAAS;IAErC,OAAO,CAAC,QAAQ,CAAyB;;IAQzC,IAAI,SAAS,IAAI,YAAY,CAE5B;IAED,IAAI,gBAAgB,IAAI,2BAA2B,CAGlD;IAED,OAAO,CAAC,KAAK;IAab,OAAO;CAIR"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** Experimental tokens for the Emotion spike; not an upstream EUI theme. */
|
|
2
|
+
export type EuiColorMode = 'light' | 'dark';
|
|
3
|
+
export interface EuiEmotionTheme {
|
|
4
|
+
colors: {
|
|
5
|
+
background: string;
|
|
6
|
+
text: string;
|
|
7
|
+
primary: string;
|
|
8
|
+
success: string;
|
|
9
|
+
warning: string;
|
|
10
|
+
danger: string;
|
|
11
|
+
onPrimary: string;
|
|
12
|
+
onSuccess: string;
|
|
13
|
+
onWarning: string;
|
|
14
|
+
onDanger: string;
|
|
15
|
+
disabled: string;
|
|
16
|
+
focus: string;
|
|
17
|
+
};
|
|
18
|
+
fontFamily: string;
|
|
19
|
+
borderRadius: number;
|
|
20
|
+
spacing: number;
|
|
21
|
+
}
|
|
22
|
+
export type EuiThemeOverrides = Partial<Omit<EuiEmotionTheme, 'colors'>> & {
|
|
23
|
+
colors?: Partial<EuiEmotionTheme['colors']>;
|
|
24
|
+
};
|
|
25
|
+
export declare function defaultTheme(mode: EuiColorMode): EuiEmotionTheme;
|
|
26
|
+
export declare function mergeTheme(base: EuiEmotionTheme, overrides?: EuiThemeOverrides): EuiEmotionTheme;
|
|
27
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/utils/emotion/theme.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,MAAM,CAAC;AAC5C,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE;QACN,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB;AACD,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC,GAAG;IACzE,MAAM,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC;CAC7C,CAAC;AAEF,wBAAgB,YAAY,CAAC,IAAI,EAAE,YAAY,GAAG,eAAe,CAqBhE;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,eAAe,EAAE,SAAS,CAAC,EAAE,iBAAiB,GAAG,eAAe,CAEhG"}
|