@ember-eui/core 14.1.3 → 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 +2 -1
- package/declarations/components/eui-page-body.d.ts.map +1 -1
- package/declarations/components/eui-page-content-body.d.ts +2 -1
- package/declarations/components/eui-page-content-body.d.ts.map +1 -1
- package/declarations/components/eui-page-content.d.ts +1 -1
- package/declarations/components/eui-page-content.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-page-template.d.ts +16 -15
- package/declarations/components/eui-page-template.d.ts.map +1 -1
- package/declarations/components/eui-page.d.ts +2 -1
- package/declarations/components/eui-page.d.ts.map +1 -1
- 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-pagination.d.ts.map +1 -1
- package/declarations/components/eui-panel.d.ts.map +1 -1
- 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-refresh-interval.d.ts +2 -0
- package/declarations/components/eui-refresh-interval.d.ts.map +1 -1
- 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-tabbed-content.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/helpers/eui-page-restrict-width.d.ts.map +1 -1
- 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-page-content-body.js.map +1 -1
- package/dist/components/eui-page-content.js.map +1 -1
- package/dist/components/eui-page-template.js +5 -5
- package/dist/components/eui-page-template.js.map +1 -1
- package/dist/components/eui-page.js.map +1 -1
- package/dist/components/eui-pagination.js +7 -4
- package/dist/components/eui-pagination.js.map +1 -1
- package/dist/components/eui-panel.js +1 -1
- package/dist/components/eui-panel.js.map +1 -1
- package/dist/components/eui-range.js +1 -1
- package/dist/components/eui-range.js.map +1 -1
- package/dist/components/eui-refresh-interval.js +22 -1
- package/dist/components/eui-refresh-interval.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-tabbed-content.js +6 -5
- package/dist/components/eui-tabbed-content.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/helpers/eui-page-restrict-width.js +1 -1
- package/dist/helpers/eui-page-restrict-width.js.map +1 -1
- package/dist/icons-CQELx6Ce.js.map +1 -1
- package/package.json +5 -6
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { SafeString } from '@ember/template';
|
|
2
|
+
/** `range/utils.js` `EUI_THUMB_SIZE`. */
|
|
3
|
+
export declare const EUI_THUMB_SIZE = 16;
|
|
4
|
+
/**
|
|
5
|
+
* `range/utils.js` `calculateThumbPosition`: the thumb's start position in %
|
|
6
|
+
* of the track, compensated for the thumb width. Unlike upstream, an
|
|
7
|
+
* unmeasured track (width 0) returns the plain percentage instead of `NaN`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function calculateThumbPosition(value: number, min: number, max: number, trackWidth: number, thumbSize?: number): number;
|
|
10
|
+
/** `range_levels.js` `calculateOffset` (estimated by eye upstream). */
|
|
11
|
+
export declare function calculateLevelOffset(position: number, value: number, bound: number): number;
|
|
12
|
+
/** `range_levels.js` level element position (left/right) for a track width. */
|
|
13
|
+
export declare function levelPosition(level: {
|
|
14
|
+
min: number;
|
|
15
|
+
max: number;
|
|
16
|
+
}, min: number, max: number, trackWidth: number): {
|
|
17
|
+
left: string;
|
|
18
|
+
right: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* `range_ticks.js`: long min/max labels shift into the track's reserved
|
|
22
|
+
* margin (`em`). Only string labels have a length (numbers don't shift).
|
|
23
|
+
*/
|
|
24
|
+
export declare function tickLabelShift(label: unknown, isMinTick: boolean, isMaxTick: boolean): number;
|
|
25
|
+
/** `range.js` `handleAriaValueText`: `"value, (label)"` for a matching tick. */
|
|
26
|
+
export declare function rangeAriaValueText(ticks: {
|
|
27
|
+
value: number;
|
|
28
|
+
label?: unknown;
|
|
29
|
+
accessibleLabel?: string;
|
|
30
|
+
}[], value: string | number | undefined): string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Upstream `logicalStyles(...)` for inline styles: physical keys become
|
|
33
|
+
* logical properties, so positions mirror in RTL. Custom properties
|
|
34
|
+
* (`--name`) pass through. Empty values are skipped.
|
|
35
|
+
*/
|
|
36
|
+
export declare function logicalStyle(styles: Record<string, string | number | undefined | null>): SafeString | undefined;
|
|
37
|
+
//# sourceMappingURL=range.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../../src/utils/eui/range.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,yCAAyC;AACzC,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,MAAM,EAClB,SAAS,SAAiB,GACzB,MAAM,CAQR;AAED,uEAAuE;AACvE,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,GACZ,MAAM,CAYR;AAED,+EAA+E;AAC/E,wBAAgB,aAAa,CAC3B,KAAK,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,EACnC,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,MAAM,GACjB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAqBjC;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,OAAO,EACd,SAAS,EAAE,OAAO,EAClB,SAAS,EAAE,OAAO,GACjB,MAAM,CAKR;AAED,gFAAgF;AAChF,wBAAgB,kBAAkB,CAChC,KAAK,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,eAAe,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,EACrE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GACjC,MAAM,GAAG,SAAS,CAWpB;AAcD;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC,GACzD,UAAU,GAAG,SAAS,CAUxB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { OperatorType, Value, _AST } from './ast.ts';
|
|
2
|
+
export interface QueryContainer {
|
|
3
|
+
bool?: BoolQuery;
|
|
4
|
+
match_all?: {};
|
|
5
|
+
match?: object;
|
|
6
|
+
match_phrase?: object;
|
|
7
|
+
range?: object;
|
|
8
|
+
term?: object;
|
|
9
|
+
simple_query_string?: object;
|
|
10
|
+
}
|
|
11
|
+
interface BoolQuery {
|
|
12
|
+
must?: QueryContainer[];
|
|
13
|
+
must_not?: QueryContainer[];
|
|
14
|
+
should?: QueryContainer[];
|
|
15
|
+
}
|
|
16
|
+
type Options = Partial<{
|
|
17
|
+
defaultFields: string[];
|
|
18
|
+
extraMustQueries: QueryContainer[];
|
|
19
|
+
extraMustNotQueries: QueryContainer[];
|
|
20
|
+
termValuesToQuery: (terms: Value[], options: {}) => QueryContainer;
|
|
21
|
+
fieldValuesToQuery: (terms: string, options: {}) => QueryContainer;
|
|
22
|
+
isFlagToQuery: (flag: string, on: boolean) => QueryContainer;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const _termValuesToQuery: (values: Value[], options: Options) => {
|
|
25
|
+
simple_query_string: {
|
|
26
|
+
query: string;
|
|
27
|
+
fields?: string[];
|
|
28
|
+
};
|
|
29
|
+
} | undefined;
|
|
30
|
+
export declare const _fieldValuesToQuery: (field: string, operations: { [x in OperatorType]: Value[]; }, andOr: "and" | "or") => QueryContainer | undefined;
|
|
31
|
+
export declare const _isFlagToQuery: (flag: string, on: boolean) => {
|
|
32
|
+
term: {
|
|
33
|
+
[x: string]: boolean;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export declare const astToEsQueryDsl: (ast: _AST, options?: {}) => QueryContainer;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=ast-to-es-query-dsl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ast-to-es-query-dsl.d.ts","sourceRoot":"","sources":["../../../../src/utils/eui/search-bar/ast-to-es-query-dsl.ts"],"names":[],"mappings":"AAaA,OAAO,EAIL,YAAY,EAEZ,KAAK,EACL,IAAI,EACL,MAAM,UAAU,CAAC;AAIlB,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,EAAE,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAOD,UAAU,SAAS;IACjB,IAAI,CAAC,EAAE,cAAc,EAAE,CAAC;IACxB,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;IAC5B,MAAM,CAAC,EAAE,cAAc,EAAE,CAAC;CAC3B;AAqBD,KAAK,OAAO,GAAG,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,gBAAgB,EAAE,cAAc,EAAE,CAAC;IACnC,mBAAmB,EAAE,cAAc,EAAE,CAAC;IACtC,iBAAiB,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,KAAK,cAAc,CAAC;IACnE,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,KAAK,cAAc,CAAC;IACnE,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,KAAK,cAAc,CAAC;CAC9D,CAAC,CAAC;AA+BH,eAAO,MAAM,kBAAkB,GAAI,QAAQ,KAAK,EAAE,EAAE,SAAS,OAAO;;eAEzD,MAAM;iBACJ,MAAM,EAAE;;aAoBpB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,OAAO,MAAM,EACb,YAAY,GAAG,CAAC,IAAI,YAAY,GAAG,KAAK,EAAE,GAAE,EAC5C,OAAO,KAAK,GAAG,IAAI,+BAqGpB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,EAAE,IAAI,OAAO;;;;CAIvD,CAAC;AAwHF,eAAO,MAAM,eAAe,GAAI,KAAK,IAAI,EAAE,YAAY,KAAG,cAiEzD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ast-to-es-query-string.d.ts","sourceRoot":"","sources":["../../../../src/utils/eui/search-bar/ast-to-es-query-string.ts"],"names":[],"mappings":"AAcA,OAAO,EACL,IAAI,EAWL,MAAM,UAAU,CAAC;AAyNlB,eAAO,MAAM,kBAAkB,GAAI,KAAK,IAAI,WAM3C,CAAC"}
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { DateValue } from './date-value.ts';
|
|
2
|
+
export type MatchType = 'must' | 'must_not';
|
|
3
|
+
export type Value = string | number | boolean | DateValue;
|
|
4
|
+
export interface IsClause {
|
|
5
|
+
type: 'is';
|
|
6
|
+
match?: MatchType;
|
|
7
|
+
flag: string;
|
|
8
|
+
}
|
|
9
|
+
export interface FieldClause {
|
|
10
|
+
type: 'field';
|
|
11
|
+
match?: MatchType;
|
|
12
|
+
operator: OperatorType;
|
|
13
|
+
field: string;
|
|
14
|
+
value: Value | Value[];
|
|
15
|
+
}
|
|
16
|
+
export interface TermClause {
|
|
17
|
+
type: 'term';
|
|
18
|
+
match?: MatchType;
|
|
19
|
+
value: Value;
|
|
20
|
+
}
|
|
21
|
+
export interface GroupClause {
|
|
22
|
+
type: 'group';
|
|
23
|
+
match: MatchType;
|
|
24
|
+
value: Clause[];
|
|
25
|
+
}
|
|
26
|
+
export type Clause = IsClause | FieldClause | TermClause | GroupClause;
|
|
27
|
+
export declare const Match: Readonly<{
|
|
28
|
+
MUST: "must";
|
|
29
|
+
MUST_NOT: "must_not";
|
|
30
|
+
isMust(match: MatchType | undefined): match is "must";
|
|
31
|
+
isMustClause(clause: Clause): boolean;
|
|
32
|
+
}>;
|
|
33
|
+
export type OperatorType = 'eq' | 'exact' | 'gt' | 'gte' | 'lt' | 'lte';
|
|
34
|
+
export declare const Operator: Readonly<{
|
|
35
|
+
EQ: "eq";
|
|
36
|
+
EXACT: "exact";
|
|
37
|
+
GT: "gt";
|
|
38
|
+
GTE: "gte";
|
|
39
|
+
LT: "lt";
|
|
40
|
+
LTE: "lte";
|
|
41
|
+
isEQ(match: OperatorType | undefined): match is "eq";
|
|
42
|
+
isEQClause(clause: Clause): boolean;
|
|
43
|
+
isEXACT(match: OperatorType | undefined): match is "exact";
|
|
44
|
+
isEXACTClause(clause: Clause): boolean;
|
|
45
|
+
isRange(match: OperatorType | undefined): match is "gt" | "gte" | "lt" | "lte";
|
|
46
|
+
isRangeClause(clause: Clause): boolean;
|
|
47
|
+
isGT(match: OperatorType | undefined): match is "gt";
|
|
48
|
+
isGTClause(clause: Clause): boolean;
|
|
49
|
+
isGTE(match: OperatorType | undefined): match is "gte";
|
|
50
|
+
isGTEClause(clause: Clause): boolean;
|
|
51
|
+
isLT(match: OperatorType | undefined): match is "lt";
|
|
52
|
+
isLTClause(clause: Clause): boolean;
|
|
53
|
+
isLTE(match: OperatorType | undefined): match is "lte";
|
|
54
|
+
isLTEClause(clause: Clause): boolean;
|
|
55
|
+
}>;
|
|
56
|
+
/**
|
|
57
|
+
* The AST structure is an array of clauses. There are 3 types of clauses that are supported:
|
|
58
|
+
*
|
|
59
|
+
* :term:
|
|
60
|
+
* Holds a VALUE and an OCCUR. The OCCUR indicates whether the value must match or must not match. Default
|
|
61
|
+
* clauses are not associated with any specific field - when executing the search, one can specify what are
|
|
62
|
+
* the default fields that the default clauses will be matched against.
|
|
63
|
+
*
|
|
64
|
+
* :field:
|
|
65
|
+
* Like the `term` clause, holds a VALUE and an MATCH, but this clause also specifies the field that the
|
|
66
|
+
* value will be matched against.
|
|
67
|
+
*
|
|
68
|
+
* :is:
|
|
69
|
+
* Holds a FLAG and indicates whether this flag must be applied or must not be applied. Typically this clause
|
|
70
|
+
* matches against boolean values of a record (e.g. "is:online", "is:internal", "is:on", etc..)
|
|
71
|
+
*
|
|
72
|
+
* This AST is immutable - every "mutating" operation returns a newly mutated AST.
|
|
73
|
+
*/
|
|
74
|
+
export declare class _AST {
|
|
75
|
+
private readonly _clauses;
|
|
76
|
+
private readonly _indexedClauses;
|
|
77
|
+
static create(clauses: Clause[]): _AST;
|
|
78
|
+
constructor(clauses?: Clause[]);
|
|
79
|
+
get clauses(): Clause[];
|
|
80
|
+
getTermClauses(): TermClause[];
|
|
81
|
+
getTermClause(value: Value): TermClause | undefined;
|
|
82
|
+
getFieldNames(): string[];
|
|
83
|
+
getFieldClauses(field?: string): FieldClause[];
|
|
84
|
+
getFieldClause(field: string, predicate: (c: FieldClause) => boolean): FieldClause | undefined;
|
|
85
|
+
hasOrFieldClause(field: string, value?: Value): boolean;
|
|
86
|
+
getOrFieldClause(field: string, value?: Value, must?: boolean, operator?: OperatorType): FieldClause | undefined;
|
|
87
|
+
addOrFieldValue(field: string, value: Value, must?: boolean, operator?: OperatorType): _AST;
|
|
88
|
+
removeOrFieldValue(field: string, value: Value): _AST;
|
|
89
|
+
removeOrFieldClauses(field: string): _AST;
|
|
90
|
+
hasSimpleFieldClause(field: string, value?: Value): boolean;
|
|
91
|
+
getSimpleFieldClause(field: string, value?: Value): FieldClause | undefined;
|
|
92
|
+
addSimpleFieldValue(field: string, value: Value, must?: boolean, operator?: OperatorType): _AST;
|
|
93
|
+
removeSimpleFieldValue(field: string, value: Value): _AST;
|
|
94
|
+
removeSimpleFieldClauses(field: string): _AST;
|
|
95
|
+
getIsClauses(): IsClause[];
|
|
96
|
+
getIsClause(flag: string): IsClause | undefined;
|
|
97
|
+
removeIsClause(flag: string): _AST;
|
|
98
|
+
removeIsClauses(): _AST;
|
|
99
|
+
removeAllClauses(): _AST;
|
|
100
|
+
getGroupClauses(): GroupClause[];
|
|
101
|
+
/**
|
|
102
|
+
* Creates and returns a new AST with the given clause added to the current clauses. If
|
|
103
|
+
* the current clauses already include a similar clause, it will be (in-place) replaced by
|
|
104
|
+
* the given clause. Whether a clause is similar to the given one depends on the type of the clause.
|
|
105
|
+
* Two clauses are similar if:
|
|
106
|
+
*
|
|
107
|
+
* - they are both of the same type
|
|
108
|
+
* - if they are `default` clauses, they must have the same value
|
|
109
|
+
* - if they are `term` clauses, they must have the same fields and values
|
|
110
|
+
* - if they are `is` clauses, they must have the same flags
|
|
111
|
+
*
|
|
112
|
+
* The reasoning behind not including the `match` attributes of the clauses in the rules above, stems
|
|
113
|
+
* in the fact that the AST clauses are ANDed, and having two similar clauses with two different
|
|
114
|
+
* match attributes creates a logically contradicted AST (e.g. what does it mean to
|
|
115
|
+
* "(must have x) AND (must not have x)"?)
|
|
116
|
+
*
|
|
117
|
+
* note: in-place replacement means the given clause will be placed in the same position as the one it
|
|
118
|
+
* replaced
|
|
119
|
+
*/
|
|
120
|
+
addClause(newClause: Clause): _AST;
|
|
121
|
+
}
|
|
122
|
+
export declare const AST: Readonly<{
|
|
123
|
+
Match: Readonly<{
|
|
124
|
+
MUST: "must";
|
|
125
|
+
MUST_NOT: "must_not";
|
|
126
|
+
isMust(match: MatchType | undefined): match is "must";
|
|
127
|
+
isMustClause(clause: Clause): boolean;
|
|
128
|
+
}>;
|
|
129
|
+
Operator: Readonly<{
|
|
130
|
+
EQ: "eq";
|
|
131
|
+
EXACT: "exact";
|
|
132
|
+
GT: "gt";
|
|
133
|
+
GTE: "gte";
|
|
134
|
+
LT: "lt";
|
|
135
|
+
LTE: "lte";
|
|
136
|
+
isEQ(match: OperatorType | undefined): match is "eq";
|
|
137
|
+
isEQClause(clause: Clause): boolean;
|
|
138
|
+
isEXACT(match: OperatorType | undefined): match is "exact";
|
|
139
|
+
isEXACTClause(clause: Clause): boolean;
|
|
140
|
+
isRange(match: OperatorType | undefined): match is "gt" | "gte" | "lt" | "lte";
|
|
141
|
+
isRangeClause(clause: Clause): boolean;
|
|
142
|
+
isGT(match: OperatorType | undefined): match is "gt";
|
|
143
|
+
isGTClause(clause: Clause): boolean;
|
|
144
|
+
isGTE(match: OperatorType | undefined): match is "gte";
|
|
145
|
+
isGTEClause(clause: Clause): boolean;
|
|
146
|
+
isLT(match: OperatorType | undefined): match is "lt";
|
|
147
|
+
isLTClause(clause: Clause): boolean;
|
|
148
|
+
isLTE(match: OperatorType | undefined): match is "lte";
|
|
149
|
+
isLTEClause(clause: Clause): boolean;
|
|
150
|
+
}>;
|
|
151
|
+
Term: Readonly<{
|
|
152
|
+
TYPE: "term";
|
|
153
|
+
isInstance: (clause: Clause) => clause is TermClause;
|
|
154
|
+
must: (value: Value) => {
|
|
155
|
+
type: "term";
|
|
156
|
+
value: Value;
|
|
157
|
+
match: "must";
|
|
158
|
+
};
|
|
159
|
+
mustNot: (value: Value) => {
|
|
160
|
+
type: "term";
|
|
161
|
+
value: Value;
|
|
162
|
+
match: "must_not";
|
|
163
|
+
};
|
|
164
|
+
}>;
|
|
165
|
+
Group: Readonly<{
|
|
166
|
+
TYPE: "group";
|
|
167
|
+
isInstance: (clause: Clause) => clause is GroupClause;
|
|
168
|
+
must: (value: Clause[]) => {
|
|
169
|
+
type: "group";
|
|
170
|
+
value: Clause[];
|
|
171
|
+
match: "must";
|
|
172
|
+
};
|
|
173
|
+
mustNot: (value: Clause[]) => {
|
|
174
|
+
type: "group";
|
|
175
|
+
value: Clause[];
|
|
176
|
+
match: "must_not";
|
|
177
|
+
};
|
|
178
|
+
}>;
|
|
179
|
+
Field: Readonly<{
|
|
180
|
+
TYPE: "field";
|
|
181
|
+
isInstance: (clause: Clause) => clause is FieldClause;
|
|
182
|
+
must: {
|
|
183
|
+
eq: (field: string, value: Value | Value[]) => {
|
|
184
|
+
type: "field";
|
|
185
|
+
field: string;
|
|
186
|
+
value: Value | Value[];
|
|
187
|
+
match: "must";
|
|
188
|
+
operator: "eq";
|
|
189
|
+
};
|
|
190
|
+
exact: (field: string, value: Value | Value[]) => {
|
|
191
|
+
type: "field";
|
|
192
|
+
field: string;
|
|
193
|
+
value: Value | Value[];
|
|
194
|
+
match: "must";
|
|
195
|
+
operator: "exact";
|
|
196
|
+
};
|
|
197
|
+
gt: (field: string, value: Value | Value[]) => {
|
|
198
|
+
type: "field";
|
|
199
|
+
field: string;
|
|
200
|
+
value: Value | Value[];
|
|
201
|
+
match: "must";
|
|
202
|
+
operator: "gt";
|
|
203
|
+
};
|
|
204
|
+
gte: (field: string, value: Value | Value[]) => {
|
|
205
|
+
type: "field";
|
|
206
|
+
field: string;
|
|
207
|
+
value: Value | Value[];
|
|
208
|
+
match: "must";
|
|
209
|
+
operator: "gte";
|
|
210
|
+
};
|
|
211
|
+
lt: (field: string, value: Value | Value[]) => {
|
|
212
|
+
type: "field";
|
|
213
|
+
field: string;
|
|
214
|
+
value: Value | Value[];
|
|
215
|
+
match: "must";
|
|
216
|
+
operator: "lt";
|
|
217
|
+
};
|
|
218
|
+
lte: (field: string, value: Value | Value[]) => {
|
|
219
|
+
type: "field";
|
|
220
|
+
field: string;
|
|
221
|
+
value: Value | Value[];
|
|
222
|
+
match: "must";
|
|
223
|
+
operator: "lte";
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
mustNot: {
|
|
227
|
+
eq: (field: string, value: Value | Value[]) => {
|
|
228
|
+
type: "field";
|
|
229
|
+
field: string;
|
|
230
|
+
value: Value | Value[];
|
|
231
|
+
match: "must_not";
|
|
232
|
+
operator: "eq";
|
|
233
|
+
};
|
|
234
|
+
exact: (field: string, value: Value | Value[]) => {
|
|
235
|
+
type: "field";
|
|
236
|
+
field: string;
|
|
237
|
+
value: Value | Value[];
|
|
238
|
+
match: "must_not";
|
|
239
|
+
operator: "exact";
|
|
240
|
+
};
|
|
241
|
+
gt: (field: string, value: Value | Value[]) => {
|
|
242
|
+
type: "field";
|
|
243
|
+
field: string;
|
|
244
|
+
value: Value | Value[];
|
|
245
|
+
match: "must_not";
|
|
246
|
+
operator: "gt";
|
|
247
|
+
};
|
|
248
|
+
gte: (field: string, value: Value | Value[]) => {
|
|
249
|
+
type: "field";
|
|
250
|
+
field: string;
|
|
251
|
+
value: Value | Value[];
|
|
252
|
+
match: "must_not";
|
|
253
|
+
operator: "gte";
|
|
254
|
+
};
|
|
255
|
+
lt: (field: string, value: Value | Value[]) => {
|
|
256
|
+
type: "field";
|
|
257
|
+
field: string;
|
|
258
|
+
value: Value | Value[];
|
|
259
|
+
match: "must_not";
|
|
260
|
+
operator: "lt";
|
|
261
|
+
};
|
|
262
|
+
lte: (field: string, value: Value | Value[]) => {
|
|
263
|
+
type: "field";
|
|
264
|
+
field: string;
|
|
265
|
+
value: Value | Value[];
|
|
266
|
+
match: "must_not";
|
|
267
|
+
operator: "lte";
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
}>;
|
|
271
|
+
Is: Readonly<{
|
|
272
|
+
TYPE: "is";
|
|
273
|
+
isInstance: (clause: Clause) => clause is IsClause;
|
|
274
|
+
must: (flag: string) => {
|
|
275
|
+
type: "is";
|
|
276
|
+
flag: string;
|
|
277
|
+
match: "must";
|
|
278
|
+
};
|
|
279
|
+
mustNot: (flag: string) => {
|
|
280
|
+
type: "is";
|
|
281
|
+
flag: string;
|
|
282
|
+
match: "must_not";
|
|
283
|
+
};
|
|
284
|
+
}>;
|
|
285
|
+
create: (clauses: Clause[]) => _AST;
|
|
286
|
+
}>;
|
|
287
|
+
//# sourceMappingURL=ast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../../../../src/utils/eui/search-bar/ast.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Moment, MomentInput } from 'moment';
|
|
2
|
+
export interface EuiMoment extends Moment {
|
|
3
|
+
__eui_granularity?: GranularityType;
|
|
4
|
+
__eui_format?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface GranularityType {
|
|
7
|
+
es: 'd' | 'w' | 'M' | 'y';
|
|
8
|
+
js: 'day' | 'week' | 'month' | 'year';
|
|
9
|
+
isSame: (d1: Moment, d2: Moment) => boolean;
|
|
10
|
+
start: (date: Moment) => Moment;
|
|
11
|
+
startOfNext: (date: Moment) => Moment;
|
|
12
|
+
iso8601: (date: Moment) => string;
|
|
13
|
+
}
|
|
14
|
+
interface GranularitiesType {
|
|
15
|
+
DAY: GranularityType;
|
|
16
|
+
WEEK: GranularityType;
|
|
17
|
+
MONTH: GranularityType;
|
|
18
|
+
YEAR: GranularityType;
|
|
19
|
+
}
|
|
20
|
+
export declare const Granularity: Readonly<GranularitiesType>;
|
|
21
|
+
export declare const printIso8601: (value: MomentInput) => string;
|
|
22
|
+
export declare const dateGranularity: (parsedDate: EuiMoment) => GranularityType;
|
|
23
|
+
export declare const dateFormat: Readonly<{
|
|
24
|
+
parse(value: string): EuiMoment;
|
|
25
|
+
print(date: EuiMoment | MomentInput, defaultGranularity?: undefined): string;
|
|
26
|
+
}>;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=date-format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-format.d.ts","sourceRoot":"","sources":["../../../../src/utils/eui/search-bar/date-format.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAOlD,MAAM,WAAW,SAAU,SAAQ,MAAM;IACvC,iBAAiB,CAAC,EAAE,eAAe,CAAC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IAC1B,EAAE,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IACtC,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;IAC5C,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAChC,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IACtC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;CACnC;AAED,UAAU,iBAAiB;IACzB,GAAG,EAAE,eAAe,CAAC;IACrB,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,eAAe,CAAC;IACvB,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,eAAO,MAAM,WAAW,6BAiCtB,CAAC;AAkQH,eAAO,MAAM,YAAY,GAAI,OAAO,WAAW,WAE9C,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,YAAY,SAAS,oBAEpD,CAAC;AAEF,eAAO,MAAM,UAAU;iBACR,MAAM;gBAcP,SAAS,GAAG,WAAW;EAsBnC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GranularityType } from './date-format.ts';
|
|
2
|
+
import moment from 'moment';
|
|
3
|
+
import type { MomentInput } from 'moment';
|
|
4
|
+
export declare const DATE_TYPE = "date";
|
|
5
|
+
export interface DateValue {
|
|
6
|
+
type: 'date';
|
|
7
|
+
raw: MomentInput;
|
|
8
|
+
granularity: GranularityType | undefined;
|
|
9
|
+
text: string;
|
|
10
|
+
resolve: () => moment.Moment;
|
|
11
|
+
}
|
|
12
|
+
export declare const dateValuesEqual: (v1: DateValue, v2: DateValue) => boolean;
|
|
13
|
+
export declare const isDateValue: (value: any) => value is DateValue;
|
|
14
|
+
export declare const dateValue: (raw: MomentInput, granularity?: GranularityType, dateFormat?: any) => DateValue | undefined;
|
|
15
|
+
export declare const dateValueParser: (format?: Readonly<{
|
|
16
|
+
parse(value: string): import("./date-format.ts").EuiMoment;
|
|
17
|
+
print(date: import("./date-format.ts").EuiMoment | MomentInput, defaultGranularity?: undefined): string;
|
|
18
|
+
}>) => (text: string) => DateValue | undefined;
|
|
19
|
+
//# sourceMappingURL=date-value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-value.d.ts","sourceRoot":"","sources":["../../../../src/utils/eui/search-bar/date-value.ts"],"names":[],"mappings":"AAYA,OAAO,EAGL,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAE1C,eAAO,MAAM,SAAS,SAAS,CAAC;AAEhC,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,WAAW,CAAC;IACjB,WAAW,EAAE,eAAe,GAAG,SAAS,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,eAAe,GAAI,IAAI,SAAS,EAAE,IAAI,SAAS,YAM3D,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,OAAO,GAAG,KAAG,KAAK,IAAI,SAQjD,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,CACtB,GAAG,EAAE,WAAW,EAChB,WAAW,CAAC,EAAE,eAAe,EAC7B,UAAU,CAAC,EAAE,GAAG,KACb,SAAS,GAAG,SAoChB,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI;;;EAA0B,MAChD,MAAM,MAAM,0BAIrB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const parser: {
|
|
2
|
+
SyntaxError: {
|
|
3
|
+
(message: any, expected: any, found: any, location: any): void;
|
|
4
|
+
buildMessage(expected: any, found: any): string;
|
|
5
|
+
};
|
|
6
|
+
parse: (input: any, options: any) => any;
|
|
7
|
+
};
|
|
8
|
+
export default parser;
|
|
9
|
+
//# sourceMappingURL=default-syntax-parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-syntax-parser.d.ts","sourceRoot":"","sources":["../../../../src/utils/eui/search-bar/default-syntax-parser.ts"],"names":[],"mappings":"AAmBA,QAAA,MAAM,MAAM;;;;;;CAixFT,CAAC;AAEJ,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { _AST, Clause } from './ast.ts';
|
|
2
|
+
export interface ParseOptions {
|
|
3
|
+
dateFormat?: any;
|
|
4
|
+
schema?: {
|
|
5
|
+
strict?: boolean;
|
|
6
|
+
fields?: string[] | Record<string, any>;
|
|
7
|
+
recognizedFields?: string[];
|
|
8
|
+
};
|
|
9
|
+
escapeValue?: (value: any) => string;
|
|
10
|
+
}
|
|
11
|
+
export type Syntax = Readonly<{
|
|
12
|
+
printClause: (clause: Clause, text: string, options: any) => string;
|
|
13
|
+
print: (ast: _AST, options?: {}) => string;
|
|
14
|
+
parse: (query: string, options?: ParseOptions) => _AST;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const defaultSyntax: Syntax;
|
|
17
|
+
//# sourceMappingURL=default-syntax.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-syntax.d.ts","sourceRoot":"","sources":["../../../../src/utils/eui/search-bar/default-syntax.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,IAAI,EAAO,MAAM,EAAuB,MAAM,UAAU,CAAC;AAsClE,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,MAAM,CAAC,EAAE;QACP,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QACxC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;KAC7B,CAAC;IACF,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,MAAM,CAAC;CACtC;AAgOD,MAAM,MAAM,MAAM,GAAG,QAAQ,CAAC;IAC5B,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,MAAM,CAAC;IACpE,KAAK,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,EAAE,KAAK,MAAM,CAAC;IAC3C,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,KAAK,IAAI,CAAC;CACxD,CAAC,CAAC;AAEH,eAAO,MAAM,aAAa,EAAE,MA6D1B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { _AST, Clause, IsClause, MatchType, Value } from './ast.ts';
|
|
2
|
+
interface Explain {
|
|
3
|
+
hit: boolean;
|
|
4
|
+
type: Clause['type'];
|
|
5
|
+
field?: string;
|
|
6
|
+
value?: Value | Value[];
|
|
7
|
+
flag?: string;
|
|
8
|
+
match?: MatchType;
|
|
9
|
+
operator?: any;
|
|
10
|
+
}
|
|
11
|
+
declare const defaultIsClauseMatcher: <T extends object>(item: T, clause: IsClause, explain?: Explain[]) => boolean;
|
|
12
|
+
export declare const createFilter: <T extends {}>(ast: _AST, defaultFields: string[] | undefined, isClauseMatcher?: <T_1 extends object>(item: T_1, clause: IsClause, explain?: Explain[]) => boolean, explain?: boolean) => (item: T) => boolean;
|
|
13
|
+
interface Options {
|
|
14
|
+
isClauseMatcher?: typeof defaultIsClauseMatcher;
|
|
15
|
+
defaultFields?: string[];
|
|
16
|
+
explain?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare function executeAst<T extends object>(ast: _AST, items: T[], options?: Options): T[];
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=execute-ast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute-ast.d.ts","sourceRoot":"","sources":["../../../../src/utils/eui/search-bar/execute-ast.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,IAAI,EAEJ,MAAM,EAEN,QAAQ,EACR,SAAS,EAET,KAAK,EACN,MAAM,UAAU,CAAC;AAalB,UAAU,OAAO;IACf,GAAG,EAAE,OAAO,CAAC;IACb,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,KAAK,GAAG,KAAK,EAAE,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AAED,QAAA,MAAM,sBAAsB,GAAI,CAAC,SAAS,MAAM,EAC9C,MAAM,CAAC,EACP,QAAQ,QAAQ,EAChB,UAAU,OAAO,EAAE,YAUpB,CAAC;AA+EF,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,EAAE,EACvC,KAAK,IAAI,EACT,eAAe,MAAM,EAAE,GAAG,SAAS,EACnC,+BA/FwC,MAAM,QACxC,GAAC,UACC,QAAQ,YACN,OAAO,EAAE,YA4FqB,EACxC,iBAAe,MAIP,MAAM,CAAC,YAwDhB,CAAC;AAEF,UAAU,OAAO;IACf,eAAe,CAAC,EAAE,OAAO,sBAAsB,CAAC;IAChD,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,EACzC,GAAG,EAAE,IAAI,EACT,KAAK,EAAE,CAAC,EAAE,EACV,OAAO,GAAE,OAAY,GACpB,CAAC,EAAE,CAIL"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { Query } from './query.ts';
|
|
2
|
+
export { AST, Operator, Match } from './ast.ts';
|
|
3
|
+
export { defaultSyntax } from './default-syntax.ts';
|
|
4
|
+
export { executeAst } from './execute-ast.ts';
|
|
5
|
+
export { dateValue, isDateValue } from './date-value.ts';
|
|
6
|
+
export { dateFormat } from './date-format.ts';
|
|
7
|
+
export type { _AST, Clause, FieldClause, GroupClause, IsClause, OperatorType, TermClause, Value } from './ast.ts';
|
|
8
|
+
export type { ParseOptions, Syntax } from './default-syntax.ts';
|
|
9
|
+
export type { DateValue } from './date-value.ts';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/eui/search-bar/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,YAAY,EACV,IAAI,EACJ,MAAM,EACN,WAAW,EACX,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,KAAK,EACN,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAChE,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import moment from 'moment';
|
|
2
|
+
import { Value } from './ast.ts';
|
|
3
|
+
export type FieldValue = string | number | boolean | any[] | Date | moment.Moment | null | undefined;
|
|
4
|
+
export type ClauseValue = Value | Date | moment.Moment | null | undefined;
|
|
5
|
+
type Options = Partial<{
|
|
6
|
+
exactMatch: boolean;
|
|
7
|
+
ignoreCase: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const eq: (fieldValue: FieldValue, clauseValue: ClauseValue, options?: Options) => boolean;
|
|
10
|
+
export declare const exact: (fieldValue: FieldValue, clauseValue: ClauseValue, options?: {}) => boolean;
|
|
11
|
+
export declare const gt: (fieldValue: FieldValue, clauseValue: ClauseValue) => boolean;
|
|
12
|
+
export declare const gte: (fieldValue: FieldValue, clauseValue: ClauseValue) => boolean;
|
|
13
|
+
export declare const lt: (fieldValue: FieldValue, clauseValue: ClauseValue) => boolean;
|
|
14
|
+
export declare const lte: (fieldValue: FieldValue, clauseValue: ClauseValue) => boolean;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=operators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operators.d.ts","sourceRoot":"","sources":["../../../../src/utils/eui/search-bar/operators.ts"],"names":[],"mappings":"AAkBA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,MAAM,MAAM,UAAU,GAClB,MAAM,GACN,MAAM,GACN,OAAO,GACP,GAAG,EAAE,GACL,IAAI,GACJ,MAAM,CAAC,MAAM,GACb,IAAI,GACJ,SAAS,CAAC;AAEd,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,IAAI,GAAG,MAAM,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AAc1E,KAAK,OAAO,GAAG,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC,CAAC;AAMH,eAAO,MAAM,EAAE,GACb,YAAY,UAAU,EACtB,aAAa,WAAW,EACxB,UAAS,OAAY,KACpB,OA8DF,CAAC;AAEF,eAAO,MAAM,KAAK,GAChB,YAAY,UAAU,EACtB,aAAa,WAAW,EACxB,YAAY,YAGb,CAAC;AA6DF,eAAO,MAAM,EAAE,GAAI,YAAY,UAAU,EAAE,aAAa,WAAW,YAKlE,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,YAAY,UAAU,EAAE,aAAa,WAAW,YAKnE,CAAC;AAEF,eAAO,MAAM,EAAE,GAAI,YAAY,UAAU,EAAE,aAAa,WAAW,YAKlE,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,YAAY,UAAU,EAAE,aAAa,WAAW,YAKnE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import moment from 'moment';
|
|
2
|
+
export { isArray, isBoolean, isFunction, isNaN, isNil, isNumber, isObject, isString } from '../../predicate/index.ts';
|
|
3
|
+
export declare const isMoment: (value: any) => value is moment.Moment;
|
|
4
|
+
export declare const isDate: (value: any) => value is Date;
|
|
5
|
+
export declare const isDateLike: (value: any) => value is moment.Moment | Date;
|
|
6
|
+
export declare const get: (object: {}, path: string[] | string, defaultValue?: any) => any;
|
|
7
|
+
export declare const keysOf: <T extends {}, K extends keyof T>(obj: T) => K[];
|
|
8
|
+
//# sourceMappingURL=predicate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"predicate.d.ts","sourceRoot":"","sources":["../../../../src/utils/eui/search-bar/predicate.ts"],"names":[],"mappings":"AAcA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,OAAO,EACP,SAAS,EACT,UAAU,EACV,KAAK,EACL,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACT,MAAM,0BAA0B,CAAC;AAElC,eAAO,MAAM,QAAQ,GAAI,OAAO,GAAG,KAAG,KAAK,IAAI,MAAM,CAAC,MAErD,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,OAAO,GAAG,KAAG,KAAK,IAAI,IAE5C,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,GAAG,KAAG,KAAK,IAAI,MAAM,CAAC,MAAM,GAAG,IAEhE,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,QAAQ,EAAE,EAAE,MAAM,MAAM,EAAE,GAAG,MAAM,EAAE,eAAe,GAAG,QACzC,CAAC;AAEnC,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,MAAM,CAAC,EAAE,KAAK,CAAC,KAAG,CAAC,EACzC,CAAC"}
|