@ember-eui/core 8.0.0-beta.9 → 8.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/declarations/components/eui-accordion.d.ts +1 -1
- package/declarations/components/eui-accordion.d.ts.map +1 -1
- package/declarations/components/eui-auto-sizer.d.ts.map +1 -1
- package/declarations/components/eui-avatar.d.ts +2 -2
- package/declarations/components/eui-avatar.d.ts.map +1 -1
- package/declarations/components/eui-badge-group.d.ts +1 -1
- package/declarations/components/eui-badge-group.d.ts.map +1 -1
- package/declarations/components/eui-badge.d.ts +3 -2
- package/declarations/components/eui-badge.d.ts.map +1 -1
- package/declarations/components/eui-beta-badge.d.ts +2 -2
- package/declarations/components/eui-beta-badge.d.ts.map +1 -1
- package/declarations/components/eui-bottom-bar.d.ts.map +1 -1
- package/declarations/components/eui-breadcrumbs.d.ts.map +1 -1
- package/declarations/components/eui-button-content.d.ts +1 -1
- package/declarations/components/eui-button-content.d.ts.map +1 -1
- package/declarations/components/eui-button-empty.d.ts +2 -2
- package/declarations/components/eui-button-empty.d.ts.map +1 -1
- package/declarations/components/eui-button-group-button.d.ts +1 -1
- package/declarations/components/eui-button-group-button.d.ts.map +1 -1
- package/declarations/components/eui-button-group.d.ts +1 -1
- package/declarations/components/eui-button-group.d.ts.map +1 -1
- package/declarations/components/eui-button-icon.d.ts +2 -2
- package/declarations/components/eui-button-icon.d.ts.map +1 -1
- package/declarations/components/eui-button.d.ts +1 -1
- package/declarations/components/eui-button.d.ts.map +1 -1
- package/declarations/components/eui-call-out.d.ts +2 -2
- package/declarations/components/eui-call-out.d.ts.map +1 -1
- package/declarations/components/eui-card-select.d.ts +1 -1
- package/declarations/components/eui-card-select.d.ts.map +1 -1
- package/declarations/components/eui-card.d.ts +4 -4
- package/declarations/components/eui-card.d.ts.map +1 -1
- package/declarations/components/eui-checkable-card.d.ts +2 -2
- package/declarations/components/eui-checkable-card.d.ts.map +1 -1
- package/declarations/components/eui-checkbox-group.d.ts +3 -3
- package/declarations/components/eui-checkbox-group.d.ts.map +1 -1
- package/declarations/components/eui-code-block/controls.d.ts.map +1 -1
- package/declarations/components/eui-code-block/full-screen-display.d.ts.map +1 -1
- package/declarations/components/eui-code-block/virtualized.d.ts.map +1 -1
- package/declarations/components/eui-code-block.d.ts.map +1 -1
- package/declarations/components/eui-code.d.ts.map +1 -1
- package/declarations/components/eui-collapsible-nav-group.d.ts +3 -3
- package/declarations/components/eui-collapsible-nav-group.d.ts.map +1 -1
- package/declarations/components/eui-collapsible-nav.d.ts +1 -1
- package/declarations/components/eui-collapsible-nav.d.ts.map +1 -1
- package/declarations/components/eui-combo-box/create-option.d.ts.map +1 -1
- package/declarations/components/eui-combo-box/no-matches-message.d.ts +1 -1
- package/declarations/components/eui-combo-box/no-matches-message.d.ts.map +1 -1
- package/declarations/components/eui-combo-box/options.d.ts +1 -1
- package/declarations/components/eui-combo-box/options.d.ts.map +1 -1
- package/declarations/components/eui-combo-box/trigger/input.d.ts.map +1 -1
- package/declarations/components/eui-combo-box/trigger.d.ts.map +1 -1
- package/declarations/components/eui-combo-box-pill.d.ts +1 -1
- package/declarations/components/eui-combo-box-pill.d.ts.map +1 -1
- package/declarations/components/eui-combo-box.d.ts +35 -8
- package/declarations/components/eui-combo-box.d.ts.map +1 -1
- package/declarations/components/eui-comment-timeline.d.ts +1 -1
- package/declarations/components/eui-comment-timeline.d.ts.map +1 -1
- package/declarations/components/eui-comment.d.ts +1 -1
- package/declarations/components/eui-comment.d.ts.map +1 -1
- package/declarations/components/eui-confirm-modal.d.ts +1 -1
- package/declarations/components/eui-confirm-modal.d.ts.map +1 -1
- package/declarations/components/eui-context-menu-item.d.ts +2 -2
- package/declarations/components/eui-context-menu-item.d.ts.map +1 -1
- package/declarations/components/eui-copy.d.ts +1 -1
- package/declarations/components/eui-copy.d.ts.map +1 -1
- package/declarations/components/eui-described-form-group.d.ts +3 -3
- package/declarations/components/eui-described-form-group.d.ts.map +1 -1
- package/declarations/components/eui-description-list.d.ts +1 -1
- package/declarations/components/eui-description-list.d.ts.map +1 -1
- package/declarations/components/eui-dual-range.d.ts +8 -9
- package/declarations/components/eui-dual-range.d.ts.map +1 -1
- package/declarations/components/eui-empty-prompt.d.ts +4 -4
- package/declarations/components/eui-empty-prompt.d.ts.map +1 -1
- package/declarations/components/eui-field-number.d.ts +2 -2
- package/declarations/components/eui-field-number.d.ts.map +1 -1
- package/declarations/components/eui-field-password.d.ts +2 -1
- package/declarations/components/eui-field-password.d.ts.map +1 -1
- package/declarations/components/eui-field-search.d.ts +1 -1
- package/declarations/components/eui-field-search.d.ts.map +1 -1
- package/declarations/components/eui-field-text.d.ts +1 -1
- package/declarations/components/eui-field-text.d.ts.map +1 -1
- package/declarations/components/eui-file-picker.d.ts +1 -1
- package/declarations/components/eui-file-picker.d.ts.map +1 -1
- package/declarations/components/eui-flex-grid.d.ts +1 -1
- package/declarations/components/eui-flex-grid.d.ts.map +1 -1
- package/declarations/components/eui-flex-group.d.ts +1 -1
- package/declarations/components/eui-flex-group.d.ts.map +1 -1
- package/declarations/components/eui-flex-item.d.ts +1 -1
- package/declarations/components/eui-flex-item.d.ts.map +1 -1
- package/declarations/components/eui-flyout-body.d.ts.map +1 -1
- package/declarations/components/eui-flyout-header.d.ts.map +1 -1
- package/declarations/components/eui-flyout.d.ts.map +1 -1
- package/declarations/components/eui-form-control-layout-clear-button.d.ts +1 -1
- package/declarations/components/eui-form-control-layout-clear-button.d.ts.map +1 -1
- package/declarations/components/eui-form-control-layout-custom-icon.d.ts +1 -1
- package/declarations/components/eui-form-control-layout-custom-icon.d.ts.map +1 -1
- package/declarations/components/eui-form-control-layout-delimited.d.ts +1 -1
- package/declarations/components/eui-form-control-layout-delimited.d.ts.map +1 -1
- package/declarations/components/eui-form-control-layout-icons.d.ts +1 -1
- package/declarations/components/eui-form-control-layout-icons.d.ts.map +1 -1
- package/declarations/components/eui-form-control-layout.d.ts +1 -1
- package/declarations/components/eui-form-control-layout.d.ts.map +1 -1
- package/declarations/components/eui-form-fieldset.d.ts +1 -1
- package/declarations/components/eui-form-fieldset.d.ts.map +1 -1
- package/declarations/components/eui-form-label.d.ts.map +1 -1
- package/declarations/components/eui-form-legend.d.ts.map +1 -1
- package/declarations/components/eui-form-row.d.ts +3 -2
- package/declarations/components/eui-form-row.d.ts.map +1 -1
- package/declarations/components/eui-form.d.ts.map +1 -1
- package/declarations/components/eui-global-toast-list.d.ts +2 -2
- package/declarations/components/eui-global-toast-list.d.ts.map +1 -1
- package/declarations/components/eui-header-alert.d.ts.map +1 -1
- package/declarations/components/eui-header-breadcrumbs.d.ts +1 -1
- package/declarations/components/eui-header-breadcrumbs.d.ts.map +1 -1
- package/declarations/components/eui-header-link.d.ts +1 -1
- package/declarations/components/eui-header-link.d.ts.map +1 -1
- package/declarations/components/eui-header-links.d.ts +3 -3
- package/declarations/components/eui-header-links.d.ts.map +1 -1
- package/declarations/components/eui-header-logo.d.ts +1 -1
- package/declarations/components/eui-header-logo.d.ts.map +1 -1
- package/declarations/components/eui-header-section-item-button.d.ts.map +1 -1
- package/declarations/components/eui-header-section-item.d.ts +1 -1
- package/declarations/components/eui-header-section-item.d.ts.map +1 -1
- package/declarations/components/eui-header-section.d.ts +1 -1
- package/declarations/components/eui-header-section.d.ts.map +1 -1
- package/declarations/components/eui-header.d.ts +2 -2
- package/declarations/components/eui-header.d.ts.map +1 -1
- package/declarations/components/eui-health.d.ts +1 -1
- package/declarations/components/eui-health.d.ts.map +1 -1
- package/declarations/components/eui-hide-for.d.ts.map +1 -1
- package/declarations/components/eui-horizontal-rule.d.ts +1 -1
- package/declarations/components/eui-horizontal-rule.d.ts.map +1 -1
- package/declarations/components/eui-i18n.d.ts +1 -1
- package/declarations/components/eui-i18n.d.ts.map +1 -1
- package/declarations/components/eui-icon-tip.d.ts +2 -2
- package/declarations/components/eui-icon-tip.d.ts.map +1 -1
- package/declarations/components/eui-icon.d.ts +2 -2
- package/declarations/components/eui-icon.d.ts.map +1 -1
- package/declarations/components/eui-image.d.ts.map +1 -1
- package/declarations/components/eui-inner-text.d.ts.map +1 -1
- package/declarations/components/eui-input-popover.d.ts +1 -1
- package/declarations/components/eui-input-popover.d.ts.map +1 -1
- package/declarations/components/eui-key-pad-menu-item.d.ts.map +1 -1
- package/declarations/components/eui-link.d.ts.map +1 -1
- package/declarations/components/eui-list-group-item.d.ts +1 -1
- package/declarations/components/eui-list-group-item.d.ts.map +1 -1
- package/declarations/components/eui-list-group.d.ts.map +1 -1
- package/declarations/components/eui-loading-content.d.ts.map +1 -1
- package/declarations/components/eui-loading-logo.d.ts.map +1 -1
- package/declarations/components/eui-loading-spinner.d.ts +1 -1
- package/declarations/components/eui-loading-spinner.d.ts.map +1 -1
- package/declarations/components/eui-markdown-editor-drop-zone.d.ts +1 -1
- package/declarations/components/eui-markdown-editor-drop-zone.d.ts.map +1 -1
- package/declarations/components/eui-markdown-editor-text-area.d.ts.map +1 -1
- package/declarations/components/eui-markdown-editor-toolbar.d.ts.map +1 -1
- package/declarations/components/eui-markdown-editor.d.ts +6 -11
- package/declarations/components/eui-markdown-editor.d.ts.map +1 -1
- package/declarations/components/eui-markdown-format/markdown-checkbox.d.ts +3 -3
- package/declarations/components/eui-markdown-format/markdown-checkbox.d.ts.map +1 -1
- package/declarations/components/eui-markdown-format/markdown-code-block.d.ts +1 -1
- package/declarations/components/eui-markdown-format/markdown-code-block.d.ts.map +1 -1
- package/declarations/components/eui-markdown-format/markdown-code.d.ts +1 -1
- package/declarations/components/eui-markdown-format/markdown-code.d.ts.map +1 -1
- package/declarations/components/eui-markdown-format/markdown-tooltip.d.ts.map +1 -1
- package/declarations/components/eui-markdown-format.d.ts +1 -1
- package/declarations/components/eui-markdown-format.d.ts.map +1 -1
- package/declarations/components/eui-modal-header-title.d.ts.map +1 -1
- package/declarations/components/eui-modal-header.d.ts.map +1 -1
- package/declarations/components/eui-modal.d.ts.map +1 -1
- package/declarations/components/eui-notification-badge.d.ts +1 -1
- package/declarations/components/eui-notification-badge.d.ts.map +1 -1
- package/declarations/components/eui-notification-event-messages.d.ts.map +1 -1
- package/declarations/components/eui-notification-event-meta.d.ts +2 -2
- package/declarations/components/eui-notification-event-meta.d.ts.map +1 -1
- package/declarations/components/eui-notification-event-read-button.d.ts +1 -1
- package/declarations/components/eui-notification-event-read-button.d.ts.map +1 -1
- package/declarations/components/eui-notification-event-read-icon.d.ts +1 -1
- package/declarations/components/eui-notification-event-read-icon.d.ts.map +1 -1
- package/declarations/components/eui-notification-event.d.ts +3 -3
- package/declarations/components/eui-notification-event.d.ts.map +1 -1
- package/declarations/components/eui-overlay-mask.d.ts.map +1 -1
- package/declarations/components/eui-page-body.d.ts +1 -1
- package/declarations/components/eui-page-body.d.ts.map +1 -1
- package/declarations/components/eui-page-content-body.d.ts +1 -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-header-content.d.ts +4 -4
- package/declarations/components/eui-page-header-content.d.ts.map +1 -1
- package/declarations/components/eui-page-header.d.ts +2 -2
- package/declarations/components/eui-page-header.d.ts.map +1 -1
- package/declarations/components/eui-page-side-bar.d.ts +1 -1
- package/declarations/components/eui-page-side-bar.d.ts.map +1 -1
- package/declarations/components/eui-page-template.d.ts +6 -6
- package/declarations/components/eui-page-template.d.ts.map +1 -1
- package/declarations/components/eui-page.d.ts.map +1 -1
- package/declarations/components/eui-pagination/button-wrapper.d.ts.map +1 -1
- package/declarations/components/eui-pagination/next-button.d.ts +2 -2
- package/declarations/components/eui-pagination/next-button.d.ts.map +1 -1
- package/declarations/components/eui-pagination/previous-button.d.ts +2 -2
- package/declarations/components/eui-pagination/previous-button.d.ts.map +1 -1
- package/declarations/components/eui-pagination-button.d.ts +2 -2
- package/declarations/components/eui-pagination-button.d.ts.map +1 -1
- package/declarations/components/eui-pagination.d.ts.map +1 -1
- package/declarations/components/eui-panel.d.ts +1 -1
- package/declarations/components/eui-panel.d.ts.map +1 -1
- package/declarations/components/eui-popover-footer.d.ts +1 -1
- package/declarations/components/eui-popover-footer.d.ts.map +1 -1
- package/declarations/components/eui-popover-title.d.ts +1 -1
- package/declarations/components/eui-popover-title.d.ts.map +1 -1
- package/declarations/components/eui-popover.d.ts +3 -3
- package/declarations/components/eui-popover.d.ts.map +1 -1
- package/declarations/components/eui-portal.d.ts.map +1 -1
- package/declarations/components/eui-progress.d.ts +1 -1
- package/declarations/components/eui-progress.d.ts.map +1 -1
- package/declarations/components/eui-radio-group.d.ts.map +1 -1
- package/declarations/components/eui-radio.d.ts.map +1 -1
- package/declarations/components/eui-range-highlight.d.ts.map +1 -1
- package/declarations/components/eui-range-input.d.ts +2 -2
- package/declarations/components/eui-range-input.d.ts.map +1 -1
- package/declarations/components/eui-range-label.d.ts.map +1 -1
- package/declarations/components/eui-range-levels.d.ts.map +1 -1
- package/declarations/components/eui-range-slider.d.ts.map +1 -1
- package/declarations/components/eui-range-ticks.d.ts.map +1 -1
- package/declarations/components/eui-range-tooltip.d.ts.map +1 -1
- package/declarations/components/eui-range-track.d.ts +2 -2
- package/declarations/components/eui-range-track.d.ts.map +1 -1
- package/declarations/components/eui-range.d.ts +4 -2
- package/declarations/components/eui-range.d.ts.map +1 -1
- package/declarations/components/eui-select.d.ts +1 -1
- package/declarations/components/eui-select.d.ts.map +1 -1
- package/declarations/components/eui-selectable-list-item.d.ts.map +1 -1
- package/declarations/components/eui-show-for.d.ts +1 -1
- package/declarations/components/eui-show-for.d.ts.map +1 -1
- package/declarations/components/eui-side-nav-item/button.d.ts.map +1 -1
- package/declarations/components/eui-side-nav-item.d.ts +1 -1
- package/declarations/components/eui-side-nav-item.d.ts.map +1 -1
- package/declarations/components/eui-side-nav.d.ts +1 -1
- package/declarations/components/eui-side-nav.d.ts.map +1 -1
- package/declarations/components/eui-spacer.d.ts +1 -1
- package/declarations/components/eui-spacer.d.ts.map +1 -1
- package/declarations/components/eui-split-panel/inner.d.ts +1 -1
- package/declarations/components/eui-split-panel/inner.d.ts.map +1 -1
- package/declarations/components/eui-split-panel/outer.d.ts +1 -1
- package/declarations/components/eui-split-panel/outer.d.ts.map +1 -1
- package/declarations/components/eui-stat/description.d.ts.map +1 -1
- package/declarations/components/eui-stat/title.d.ts +1 -1
- package/declarations/components/eui-stat/title.d.ts.map +1 -1
- package/declarations/components/eui-stat.d.ts +4 -3
- package/declarations/components/eui-stat.d.ts.map +1 -1
- package/declarations/components/eui-step-horizontal.d.ts +1 -1
- package/declarations/components/eui-step-horizontal.d.ts.map +1 -1
- package/declarations/components/eui-step-number.d.ts +2 -2
- package/declarations/components/eui-step-number.d.ts.map +1 -1
- package/declarations/components/eui-step.d.ts +1 -1
- package/declarations/components/eui-step.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/date-popover/absolute-tab.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/date-popover/datetime-picker.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/date-popover/eui-date-popover-button.d.ts +1 -1
- package/declarations/components/eui-super-date-picker/date-popover/eui-date-popover-button.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/date-popover/eui-date-popover-content.d.ts +5 -5
- package/declarations/components/eui-super-date-picker/date-popover/eui-date-popover-content.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/date-popover/now-tab.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/date-popover/relative-tab.d.ts +1 -1
- package/declarations/components/eui-super-date-picker/date-popover/relative-tab.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/eui-quick-select-popover/eui-commonly-used-time-ranges.d.ts +1 -1
- package/declarations/components/eui-super-date-picker/eui-quick-select-popover/eui-commonly-used-time-ranges.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select.d.ts +1 -1
- package/declarations/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/eui-quick-select-popover/eui-recently-used.d.ts +1 -1
- package/declarations/components/eui-super-date-picker/eui-quick-select-popover/eui-recently-used.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/eui-quick-select-popover.d.ts +3 -3
- package/declarations/components/eui-super-date-picker/eui-quick-select-popover.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/eui-super-update-button.d.ts +2 -2
- package/declarations/components/eui-super-date-picker/eui-super-update-button.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/utils/index.d.ts +1 -1
- package/declarations/components/eui-super-date-picker/utils/index.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/utils/pretty-duration.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/utils/quick-select.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/utils/time-options.d.ts +1 -1
- package/declarations/components/eui-super-date-picker/utils/time-options.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker.d.ts +2 -2
- package/declarations/components/eui-super-date-picker.d.ts.map +1 -1
- package/declarations/components/eui-switch.d.ts +18 -20
- package/declarations/components/eui-switch.d.ts.map +1 -1
- package/declarations/components/eui-tabbed-content.d.ts +2 -2
- package/declarations/components/eui-tabbed-content.d.ts.map +1 -1
- package/declarations/components/eui-tabs.d.ts +1 -1
- package/declarations/components/eui-tabs.d.ts.map +1 -1
- package/declarations/components/eui-text-align.d.ts +0 -5
- package/declarations/components/eui-text-align.d.ts.map +1 -1
- package/declarations/components/eui-text-area.d.ts +1 -1
- package/declarations/components/eui-text-area.d.ts.map +1 -1
- package/declarations/components/eui-text-color.d.ts +0 -5
- package/declarations/components/eui-text-color.d.ts.map +1 -1
- package/declarations/components/eui-text.d.ts +3 -8
- package/declarations/components/eui-text.d.ts.map +1 -1
- package/declarations/components/eui-title.d.ts +2 -2
- package/declarations/components/eui-title.d.ts.map +1 -1
- package/declarations/components/eui-toast.d.ts.map +1 -1
- package/declarations/components/eui-tool-tip-popover.d.ts.map +1 -1
- package/declarations/components/eui-tool-tip.d.ts +1 -1
- package/declarations/components/eui-tool-tip.d.ts.map +1 -1
- package/declarations/components.d.ts +150 -0
- package/declarations/components.d.ts.map +1 -0
- package/declarations/helpers/eui-palette.d.ts.map +1 -1
- package/declarations/helpers/get-eui-config.d.ts.map +1 -1
- package/declarations/helpers/get-range-tick.d.ts +1 -1
- package/declarations/helpers/get-range-tick.d.ts.map +1 -1
- package/declarations/helpers/hex-to-rgb.d.ts.map +1 -1
- package/declarations/helpers/inline-styles.d.ts.map +1 -1
- package/declarations/helpers/is-color-dark.d.ts.map +1 -1
- package/declarations/helpers/is-item-open.d.ts.map +1 -1
- package/declarations/helpers/is-within-number.d.ts.map +1 -1
- package/declarations/helpers/merge.d.ts.map +1 -1
- package/declarations/helpers/to-initials.d.ts +1 -1
- package/declarations/helpers/to-initials.d.ts.map +1 -1
- package/declarations/helpers/use-state.d.ts.map +1 -1
- package/declarations/helpers.d.ts +9 -0
- package/declarations/helpers.d.ts.map +1 -0
- package/declarations/i18n/util.d.ts.map +1 -1
- package/declarations/modifiers/mutation-observer.d.ts.map +1 -1
- package/declarations/modifiers/open-collapsible-nav.d.ts.map +1 -1
- package/declarations/modifiers/outside-click-detector.d.ts.map +1 -1
- package/declarations/modifiers/resize-observer.d.ts +1 -1
- package/declarations/modifiers/resize-observer.d.ts.map +1 -1
- package/declarations/modifiers/use-is-within-breakpoints.d.ts.map +1 -1
- package/declarations/modifiers/validatable-control.d.ts.map +1 -1
- package/declarations/modifiers.d.ts +8 -0
- package/declarations/modifiers.d.ts.map +1 -0
- package/declarations/services/eui-config.d.ts +0 -1
- package/declarations/services/eui-config.d.ts.map +1 -1
- package/declarations/services/eui-i18n.d.ts.map +1 -1
- package/declarations/template-registry.d.ts +152 -149
- package/declarations/template-registry.d.ts.map +1 -1
- package/declarations/utils/breakpoint.d.ts.map +1 -1
- package/declarations/utils/code/utils.d.ts +1 -1
- package/declarations/utils/code/utils.d.ts.map +1 -1
- package/declarations/utils/color/color_palette.d.ts.map +1 -1
- package/declarations/utils/color/eui_palettes.d.ts.map +1 -1
- package/declarations/utils/color/index.d.ts +3 -3
- package/declarations/utils/color/index.d.ts.map +1 -1
- package/declarations/utils/copy-to-clipboard.d.ts.map +1 -1
- package/declarations/utils/css-mappings/eui-range-highlight.d.ts.map +1 -1
- package/declarations/utils/css-mappings/eui-range-levels.d.ts.map +1 -1
- package/declarations/utils/detect-element-resize.d.ts.map +1 -1
- package/declarations/utils/index.d.ts +1 -1
- package/declarations/utils/index.d.ts.map +1 -1
- package/declarations/utils/markdown/markdown-actions.d.ts.map +1 -1
- package/declarations/utils/markdown/markdown-types.d.ts +5 -5
- package/declarations/utils/markdown/markdown-types.d.ts.map +1 -1
- package/declarations/utils/markdown/plugins/markdown-add-components/index.d.ts +2 -2
- package/declarations/utils/markdown/plugins/markdown-add-components/index.d.ts.map +1 -1
- package/declarations/utils/markdown/plugins/markdown-add-components/processor.d.ts.map +1 -1
- package/declarations/utils/markdown/plugins/markdown-checkbox/parser.d.ts.map +1 -1
- package/declarations/utils/markdown/plugins/markdown-default-plugins/index.d.ts +2 -2
- package/declarations/utils/markdown/plugins/markdown-default-plugins/index.d.ts.map +1 -1
- package/declarations/utils/markdown/plugins/markdown-default-plugins/parsing-plugins.d.ts.map +1 -1
- package/declarations/utils/markdown/plugins/markdown-default-plugins/plugins.d.ts +1 -1
- package/declarations/utils/markdown/plugins/markdown-default-plugins/plugins.d.ts.map +1 -1
- package/declarations/utils/markdown/plugins/markdown-default-plugins/processing-plugins.d.ts +2 -2
- package/declarations/utils/markdown/plugins/markdown-default-plugins/processing-plugins.d.ts.map +1 -1
- package/declarations/utils/markdown/plugins/markdown-default-plugins/ui-plugins.d.ts.map +1 -1
- package/declarations/utils/markdown/plugins/markdown-tooltip/parser.d.ts.map +1 -1
- package/declarations/utils/markdown/plugins/to-dom.d.ts +1 -1
- package/declarations/utils/markdown/plugins/to-dom.d.ts.map +1 -1
- package/declarations/utils/markdown/remark/remark-prismjs.d.ts.map +1 -1
- package/declarations/utils/maybe-unwrap-proxy.d.ts.map +1 -1
- package/declarations/utils/number/number.d.ts.map +1 -1
- package/declarations/utils/popover/index.d.ts.map +1 -1
- package/declarations/utils/timer.d.ts.map +1 -1
- package/declarations/utils/transition.d.ts.map +1 -1
- package/dist/{_rollupPluginBabelHelpers-_w_srC8C.js → _rollupPluginBabelHelpers-9wjJaosZ.js} +15 -15
- package/dist/_rollupPluginBabelHelpers-9wjJaosZ.js.map +1 -0
- package/dist/components/eui-accordion.js +3 -3
- package/dist/components/eui-accordion.js.map +1 -1
- package/dist/components/eui-auto-sizer.js +3 -3
- package/dist/components/eui-auto-sizer.js.map +1 -1
- package/dist/components/eui-avatar.js +5 -5
- package/dist/components/eui-avatar.js.map +1 -1
- package/dist/components/eui-badge-group.js +1 -1
- package/dist/components/eui-badge-group.js.map +1 -1
- package/dist/components/eui-badge.js +4 -2
- package/dist/components/eui-badge.js.map +1 -1
- package/dist/components/eui-beta-badge.js +2 -2
- package/dist/components/eui-beta-badge.js.map +1 -1
- package/dist/components/eui-bottom-bar.js +3 -3
- package/dist/components/eui-bottom-bar.js.map +1 -1
- package/dist/components/eui-breadcrumbs.js +16 -12
- package/dist/components/eui-breadcrumbs.js.map +1 -1
- package/dist/components/eui-button-content.js +3 -3
- package/dist/components/eui-button-content.js.map +1 -1
- package/dist/components/eui-button-empty.js +1 -1
- package/dist/components/eui-button-empty.js.map +1 -1
- package/dist/components/eui-button-group-button.js +1 -1
- package/dist/components/eui-button-group-button.js.map +1 -1
- package/dist/components/eui-button-group.js +2 -2
- package/dist/components/eui-button-group.js.map +1 -1
- package/dist/components/eui-button-icon.js +1 -1
- package/dist/components/eui-button-icon.js.map +1 -1
- package/dist/components/eui-button.js.map +1 -1
- package/dist/components/eui-call-out.js +3 -3
- package/dist/components/eui-call-out.js.map +1 -1
- package/dist/components/eui-card-select.js +2 -2
- package/dist/components/eui-card-select.js.map +1 -1
- package/dist/components/eui-card.js +3 -3
- package/dist/components/eui-card.js.map +1 -1
- package/dist/components/eui-checkable-card.js +3 -3
- package/dist/components/eui-checkable-card.js.map +1 -1
- package/dist/components/eui-checkbox-group.js +4 -4
- package/dist/components/eui-checkbox-group.js.map +1 -1
- package/dist/components/eui-checkbox.js +1 -1
- package/dist/components/eui-checkbox.js.map +1 -1
- package/dist/components/eui-code-block/controls.js +2 -2
- package/dist/components/eui-code-block/controls.js.map +1 -1
- package/dist/components/eui-code-block/full-screen-display.js +2 -2
- package/dist/components/eui-code-block/full-screen-display.js.map +1 -1
- package/dist/components/eui-code-block/virtualized.js +2 -2
- package/dist/components/eui-code-block/virtualized.js.map +1 -1
- package/dist/components/eui-code-block.js +14 -14
- package/dist/components/eui-code-block.js.map +1 -1
- package/dist/components/eui-code.js +7 -7
- package/dist/components/eui-code.js.map +1 -1
- package/dist/components/eui-collapsible-nav-group.js +1 -1
- package/dist/components/eui-collapsible-nav-group.js.map +1 -1
- package/dist/components/eui-collapsible-nav.js +3 -3
- package/dist/components/eui-collapsible-nav.js.map +1 -1
- package/dist/components/eui-combo-box/create-option.js +4 -4
- package/dist/components/eui-combo-box/create-option.js.map +1 -1
- package/dist/components/eui-combo-box/no-matches-message.js.map +1 -1
- package/dist/components/eui-combo-box/options.js +10 -8
- package/dist/components/eui-combo-box/options.js.map +1 -1
- package/dist/components/eui-combo-box/trigger/input.js +8 -7
- package/dist/components/eui-combo-box/trigger/input.js.map +1 -1
- package/dist/components/eui-combo-box/trigger.js +3 -3
- package/dist/components/eui-combo-box/trigger.js.map +1 -1
- package/dist/components/eui-combo-box-pill.js.map +1 -1
- package/dist/components/eui-combo-box.js +5 -2
- package/dist/components/eui-combo-box.js.map +1 -1
- package/dist/components/eui-comment-timeline.js +1 -1
- package/dist/components/eui-comment-timeline.js.map +1 -1
- package/dist/components/eui-comment.js +1 -1
- package/dist/components/eui-comment.js.map +1 -1
- package/dist/components/eui-confirm-modal.js +5 -5
- package/dist/components/eui-confirm-modal.js.map +1 -1
- package/dist/components/eui-context-menu-item.js +5 -5
- package/dist/components/eui-context-menu-item.js.map +1 -1
- package/dist/components/eui-copy.js +2 -2
- package/dist/components/eui-copy.js.map +1 -1
- package/dist/components/eui-described-form-group.js.map +1 -1
- package/dist/components/eui-description-list.js +1 -1
- package/dist/components/eui-description-list.js.map +1 -1
- package/dist/components/eui-dual-range.js +1 -1
- package/dist/components/eui-dual-range.js.map +1 -1
- package/dist/components/eui-empty-prompt.js +8 -8
- package/dist/components/eui-empty-prompt.js.map +1 -1
- package/dist/components/eui-field-number.js +2 -2
- package/dist/components/eui-field-number.js.map +1 -1
- package/dist/components/eui-field-password.js +4 -3
- package/dist/components/eui-field-password.js.map +1 -1
- package/dist/components/eui-field-search.js +6 -5
- package/dist/components/eui-field-search.js.map +1 -1
- package/dist/components/eui-field-text.js +2 -2
- package/dist/components/eui-field-text.js.map +1 -1
- package/dist/components/eui-file-picker.js +3 -3
- package/dist/components/eui-file-picker.js.map +1 -1
- package/dist/components/eui-flex-grid.js +2 -2
- package/dist/components/eui-flex-grid.js.map +1 -1
- package/dist/components/eui-flex-group.js +1 -1
- package/dist/components/eui-flex-group.js.map +1 -1
- package/dist/components/eui-flex-item.js +2 -2
- package/dist/components/eui-flex-item.js.map +1 -1
- package/dist/components/eui-flyout-body.js +1 -1
- package/dist/components/eui-flyout-body.js.map +1 -1
- package/dist/components/eui-flyout-header.js.map +1 -1
- package/dist/components/eui-flyout.js +15 -15
- package/dist/components/eui-flyout.js.map +1 -1
- package/dist/components/eui-form-control-layout-clear-button.js +1 -1
- package/dist/components/eui-form-control-layout-clear-button.js.map +1 -1
- package/dist/components/eui-form-control-layout-custom-icon.js.map +1 -1
- package/dist/components/eui-form-control-layout-delimited.js +1 -1
- package/dist/components/eui-form-control-layout-delimited.js.map +1 -1
- package/dist/components/eui-form-control-layout-icons.js.map +1 -1
- package/dist/components/eui-form-control-layout.js.map +1 -1
- package/dist/components/eui-form-fieldset.js.map +1 -1
- package/dist/components/eui-form-label.js +1 -1
- package/dist/components/eui-form-label.js.map +1 -1
- package/dist/components/eui-form-legend.js +1 -1
- package/dist/components/eui-form-legend.js.map +1 -1
- package/dist/components/eui-form-row.js +12 -8
- package/dist/components/eui-form-row.js.map +1 -1
- package/dist/components/eui-form.js +2 -2
- package/dist/components/eui-form.js.map +1 -1
- package/dist/components/eui-global-toast-list.js +5 -5
- package/dist/components/eui-global-toast-list.js.map +1 -1
- package/dist/components/eui-header-alert.js +1 -1
- package/dist/components/eui-header-alert.js.map +1 -1
- package/dist/components/eui-header-breadcrumbs.js.map +1 -1
- package/dist/components/eui-header-link.js.map +1 -1
- package/dist/components/eui-header-links.js +7 -7
- package/dist/components/eui-header-links.js.map +1 -1
- package/dist/components/eui-header-logo.js.map +1 -1
- package/dist/components/eui-header-section-item-button.js +5 -5
- package/dist/components/eui-header-section-item-button.js.map +1 -1
- package/dist/components/eui-header-section-item.js.map +1 -1
- package/dist/components/eui-header-section.js.map +1 -1
- package/dist/components/eui-header.js +1 -1
- package/dist/components/eui-header.js.map +1 -1
- package/dist/components/eui-health.js.map +1 -1
- package/dist/components/eui-hide-for.js +3 -3
- package/dist/components/eui-hide-for.js.map +1 -1
- package/dist/components/eui-horizontal-rule.js.map +1 -1
- package/dist/components/eui-i18n.js +2 -2
- package/dist/components/eui-i18n.js.map +1 -1
- package/dist/components/eui-icon-tip.js +3 -3
- package/dist/components/eui-icon-tip.js.map +1 -1
- package/dist/components/eui-icon.js +5 -6
- package/dist/components/eui-icon.js.map +1 -1
- package/dist/components/eui-image.js +8 -8
- package/dist/components/eui-image.js.map +1 -1
- package/dist/components/eui-inner-text.js +1 -1
- package/dist/components/eui-inner-text.js.map +1 -1
- package/dist/components/eui-input-popover.js +9 -9
- package/dist/components/eui-input-popover.js.map +1 -1
- package/dist/components/eui-key-pad-menu-item.js +6 -6
- package/dist/components/eui-key-pad-menu-item.js.map +1 -1
- package/dist/components/eui-link.js +2 -2
- package/dist/components/eui-link.js.map +1 -1
- package/dist/components/eui-list-group-item.js +3 -3
- package/dist/components/eui-list-group-item.js.map +1 -1
- package/dist/components/eui-list-group.js +4 -4
- package/dist/components/eui-list-group.js.map +1 -1
- package/dist/components/eui-loading-content.js +2 -2
- package/dist/components/eui-loading-content.js.map +1 -1
- package/dist/components/eui-loading-logo.js +2 -2
- package/dist/components/eui-loading-logo.js.map +1 -1
- package/dist/components/eui-loading-spinner.js +1 -1
- package/dist/components/eui-loading-spinner.js.map +1 -1
- package/dist/components/eui-markdown-editor-drop-zone.js.map +1 -1
- package/dist/components/eui-markdown-editor-footer.js +12 -12
- package/dist/components/eui-markdown-editor-footer.js.map +1 -1
- package/dist/components/eui-markdown-editor-text-area.js.map +1 -1
- package/dist/components/eui-markdown-editor-toolbar.js +10 -8
- package/dist/components/eui-markdown-editor-toolbar.js.map +1 -1
- package/dist/components/eui-markdown-editor.js +22 -24
- package/dist/components/eui-markdown-editor.js.map +1 -1
- package/dist/components/eui-markdown-format/markdown-checkbox.js +2 -2
- package/dist/components/eui-markdown-format/markdown-checkbox.js.map +1 -1
- package/dist/components/eui-markdown-format/markdown-code-block.js.map +1 -1
- package/dist/components/eui-markdown-format/markdown-code.js.map +1 -1
- package/dist/components/eui-markdown-format/markdown-tooltip.js +1 -1
- package/dist/components/eui-markdown-format/markdown-tooltip.js.map +1 -1
- package/dist/components/eui-markdown-format.js +9 -7
- package/dist/components/eui-markdown-format.js.map +1 -1
- package/dist/components/eui-modal-header-title.js.map +1 -1
- package/dist/components/eui-modal-header.js.map +1 -1
- package/dist/components/eui-modal.js +10 -10
- package/dist/components/eui-modal.js.map +1 -1
- package/dist/components/eui-notification-badge.js.map +1 -1
- package/dist/components/eui-notification-event-messages.js +5 -5
- package/dist/components/eui-notification-event-messages.js.map +1 -1
- package/dist/components/eui-notification-event-meta.js +2 -2
- package/dist/components/eui-notification-event-meta.js.map +1 -1
- package/dist/components/eui-notification-event-read-button.js +2 -2
- package/dist/components/eui-notification-event-read-button.js.map +1 -1
- package/dist/components/eui-notification-event-read-icon.js +1 -1
- package/dist/components/eui-notification-event-read-icon.js.map +1 -1
- package/dist/components/eui-notification-event.js +9 -9
- package/dist/components/eui-notification-event.js.map +1 -1
- package/dist/components/eui-overlay-mask.js +4 -4
- package/dist/components/eui-overlay-mask.js.map +1 -1
- package/dist/components/eui-page-body.js +5 -5
- package/dist/components/eui-page-body.js.map +1 -1
- package/dist/components/eui-page-content-body.js +2 -2
- package/dist/components/eui-page-content-body.js.map +1 -1
- package/dist/components/eui-page-content.js +1 -1
- package/dist/components/eui-page-content.js.map +1 -1
- package/dist/components/eui-page-header-content.js +16 -16
- package/dist/components/eui-page-header-content.js.map +1 -1
- package/dist/components/eui-page-header.js +3 -3
- package/dist/components/eui-page-header.js.map +1 -1
- package/dist/components/eui-page-side-bar.js.map +1 -1
- package/dist/components/eui-page-template.js +8 -8
- package/dist/components/eui-page-template.js.map +1 -1
- package/dist/components/eui-page.js +3 -3
- package/dist/components/eui-page.js.map +1 -1
- package/dist/components/eui-pagination/button-wrapper.js +3 -3
- package/dist/components/eui-pagination/button-wrapper.js.map +1 -1
- package/dist/components/eui-pagination/next-button.js +4 -4
- package/dist/components/eui-pagination/next-button.js.map +1 -1
- package/dist/components/eui-pagination/previous-button.js +3 -3
- package/dist/components/eui-pagination/previous-button.js.map +1 -1
- package/dist/components/eui-pagination-button.js +4 -4
- package/dist/components/eui-pagination-button.js.map +1 -1
- package/dist/components/eui-pagination.js +6 -6
- package/dist/components/eui-pagination.js.map +1 -1
- package/dist/components/eui-panel.js +2 -2
- package/dist/components/eui-panel.js.map +1 -1
- package/dist/components/eui-popover-footer.js.map +1 -1
- package/dist/components/eui-popover-title.js.map +1 -1
- package/dist/components/eui-popover.js +17 -16
- package/dist/components/eui-popover.js.map +1 -1
- package/dist/components/eui-portal.js +1 -1
- package/dist/components/eui-portal.js.map +1 -1
- package/dist/components/eui-progress.js +1 -1
- package/dist/components/eui-progress.js.map +1 -1
- package/dist/components/eui-radio-group.js +2 -2
- package/dist/components/eui-radio-group.js.map +1 -1
- package/dist/components/eui-radio.js +4 -4
- package/dist/components/eui-radio.js.map +1 -1
- package/dist/components/eui-range-highlight.js +2 -2
- package/dist/components/eui-range-highlight.js.map +1 -1
- package/dist/components/eui-range-input.js +5 -5
- package/dist/components/eui-range-input.js.map +1 -1
- package/dist/components/eui-range-label.js +2 -2
- package/dist/components/eui-range-label.js.map +1 -1
- package/dist/components/eui-range-levels.js +5 -5
- package/dist/components/eui-range-levels.js.map +1 -1
- package/dist/components/eui-range-slider.js.map +1 -1
- package/dist/components/eui-range-thumb.js +1 -1
- package/dist/components/eui-range-thumb.js.map +1 -1
- package/dist/components/eui-range-ticks.js +1 -1
- package/dist/components/eui-range-ticks.js.map +1 -1
- package/dist/components/eui-range-tooltip.js +1 -1
- package/dist/components/eui-range-tooltip.js.map +1 -1
- package/dist/components/eui-range-track.js +11 -9
- package/dist/components/eui-range-track.js.map +1 -1
- package/dist/components/eui-range.js +12 -12
- package/dist/components/eui-range.js.map +1 -1
- package/dist/components/eui-select.js +1 -1
- package/dist/components/eui-select.js.map +1 -1
- package/dist/components/eui-selectable-list-item.js +1 -1
- package/dist/components/eui-selectable-list-item.js.map +1 -1
- package/dist/components/eui-show-for.js +4 -4
- package/dist/components/eui-show-for.js.map +1 -1
- package/dist/components/eui-side-nav-item/button.js +3 -3
- package/dist/components/eui-side-nav-item/button.js.map +1 -1
- package/dist/components/eui-side-nav-item.js +4 -4
- package/dist/components/eui-side-nav-item.js.map +1 -1
- package/dist/components/eui-side-nav.js +8 -8
- package/dist/components/eui-side-nav.js.map +1 -1
- package/dist/components/eui-spacer.js +1 -1
- package/dist/components/eui-spacer.js.map +1 -1
- package/dist/components/eui-split-panel/inner.js.map +1 -1
- package/dist/components/eui-split-panel/outer.js +3 -3
- package/dist/components/eui-split-panel/outer.js.map +1 -1
- package/dist/components/eui-stat/description.js.map +1 -1
- package/dist/components/eui-stat/title.js +1 -1
- package/dist/components/eui-stat/title.js.map +1 -1
- package/dist/components/eui-stat.js +4 -4
- package/dist/components/eui-stat.js.map +1 -1
- package/dist/components/eui-step-horizontal.js.map +1 -1
- package/dist/components/eui-step-number.js +3 -3
- package/dist/components/eui-step-number.js.map +1 -1
- package/dist/components/eui-step.js +2 -2
- package/dist/components/eui-step.js.map +1 -1
- package/dist/components/eui-super-date-picker/date-popover/absolute-tab.js +9 -9
- package/dist/components/eui-super-date-picker/date-popover/absolute-tab.js.map +1 -1
- package/dist/components/eui-super-date-picker/date-popover/datetime-picker.js +9 -7
- package/dist/components/eui-super-date-picker/date-popover/datetime-picker.js.map +1 -1
- package/dist/components/eui-super-date-picker/date-popover/eui-date-popover-button.js +6 -6
- package/dist/components/eui-super-date-picker/date-popover/eui-date-popover-button.js.map +1 -1
- package/dist/components/eui-super-date-picker/date-popover/eui-date-popover-content.js +5 -5
- package/dist/components/eui-super-date-picker/date-popover/eui-date-popover-content.js.map +1 -1
- package/dist/components/eui-super-date-picker/date-popover/now-tab.js +4 -4
- package/dist/components/eui-super-date-picker/date-popover/now-tab.js.map +1 -1
- package/dist/components/eui-super-date-picker/date-popover/relative-tab.js +10 -10
- package/dist/components/eui-super-date-picker/date-popover/relative-tab.js.map +1 -1
- package/dist/components/eui-super-date-picker/eui-date-picker-range.js +1 -1
- package/dist/components/eui-super-date-picker/eui-date-picker-range.js.map +1 -1
- package/dist/components/eui-super-date-picker/eui-quick-select-popover/eui-commonly-used-time-ranges.js +5 -5
- package/dist/components/eui-super-date-picker/eui-quick-select-popover/eui-commonly-used-time-ranges.js.map +1 -1
- package/dist/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select.js +15 -16
- package/dist/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select.js.map +1 -1
- package/dist/components/eui-super-date-picker/eui-quick-select-popover/eui-recently-used.js +5 -5
- package/dist/components/eui-super-date-picker/eui-quick-select-popover/eui-recently-used.js.map +1 -1
- package/dist/components/eui-super-date-picker/eui-quick-select-popover.js +6 -6
- package/dist/components/eui-super-date-picker/eui-quick-select-popover.js.map +1 -1
- package/dist/components/eui-super-date-picker/eui-super-update-button.js +3 -3
- package/dist/components/eui-super-date-picker/eui-super-update-button.js.map +1 -1
- package/dist/components/eui-super-date-picker/utils/index.js +1 -1
- package/dist/components/eui-super-date-picker/utils/index.js.map +1 -1
- package/dist/components/eui-super-date-picker/utils/pretty-duration.js.map +1 -1
- package/dist/components/eui-super-date-picker/utils/quick-select.js +2 -2
- package/dist/components/eui-super-date-picker/utils/quick-select.js.map +1 -1
- package/dist/components/eui-super-date-picker/utils/time-options.js.map +1 -1
- package/dist/components/eui-super-date-picker.js +9 -9
- package/dist/components/eui-super-date-picker.js.map +1 -1
- package/dist/components/eui-switch.js +2 -2
- package/dist/components/eui-switch.js.map +1 -1
- package/dist/components/eui-tab.js +1 -1
- package/dist/components/eui-tab.js.map +1 -1
- package/dist/components/eui-tabbed-content.js +3 -3
- package/dist/components/eui-tabbed-content.js.map +1 -1
- package/dist/components/eui-tabs.js +2 -2
- package/dist/components/eui-tabs.js.map +1 -1
- package/dist/components/eui-text-align.js.map +1 -1
- package/dist/components/eui-text-area.js +2 -2
- package/dist/components/eui-text-area.js.map +1 -1
- package/dist/components/eui-text-color.js.map +1 -1
- package/dist/components/eui-text.js.map +1 -1
- package/dist/components/eui-title.js +1 -1
- package/dist/components/eui-title.js.map +1 -1
- package/dist/components/eui-toast.js +3 -3
- package/dist/components/eui-toast.js.map +1 -1
- package/dist/components/eui-tool-tip-popover.js +2 -2
- package/dist/components/eui-tool-tip-popover.js.map +1 -1
- package/dist/components/eui-tool-tip.js +7 -5
- package/dist/components/eui-tool-tip.js.map +1 -1
- package/dist/components.js +28 -28
- package/dist/helpers/eui-palette.js.map +1 -1
- package/dist/helpers/get-eui-config.js +1 -1
- package/dist/helpers/get-eui-config.js.map +1 -1
- package/dist/helpers/get-range-tick.js.map +1 -1
- package/dist/helpers/hex-to-rgb.js.map +1 -1
- package/dist/helpers/inline-styles.js.map +1 -1
- package/dist/helpers/is-color-dark.js.map +1 -1
- package/dist/helpers/is-item-open.js.map +1 -1
- package/dist/helpers/is-within-number.js.map +1 -1
- package/dist/helpers/merge.js.map +1 -1
- package/dist/helpers/to-initials.js +1 -0
- package/dist/helpers/to-initials.js.map +1 -1
- package/dist/helpers/use-state.js +2 -2
- package/dist/helpers/use-state.js.map +1 -1
- package/dist/helpers.js +1 -1
- package/dist/i18n/util.js +2 -2
- package/dist/i18n/util.js.map +1 -1
- package/dist/modifiers/mutation-observer.js.map +1 -1
- package/dist/modifiers/open-collapsible-nav.js.map +1 -1
- package/dist/modifiers/outside-click-detector.js +1 -1
- package/dist/modifiers/outside-click-detector.js.map +1 -1
- package/dist/modifiers/resize-observer.js +3 -5
- package/dist/modifiers/resize-observer.js.map +1 -1
- package/dist/modifiers/use-is-within-breakpoints.js +1 -1
- package/dist/modifiers/use-is-within-breakpoints.js.map +1 -1
- package/dist/modifiers/validatable-control.js +1 -1
- package/dist/modifiers/validatable-control.js.map +1 -1
- package/dist/services/eui-config.js +2 -2
- package/dist/services/eui-config.js.map +1 -1
- package/dist/services/eui-i18n.js +2 -2
- package/dist/services/eui-i18n.js.map +1 -1
- package/dist/services/eui-toaster.js +1 -1
- package/dist/utils/accesibility/combo-box-keys.js.map +1 -1
- package/dist/utils/breakpoint.js.map +1 -1
- package/dist/utils/code/utils.js.map +1 -1
- package/dist/utils/color/color_palette.js +0 -2
- package/dist/utils/color/color_palette.js.map +1 -1
- package/dist/utils/color/eui_palettes.js +1 -1
- package/dist/utils/color/eui_palettes.js.map +1 -1
- package/dist/utils/color/index.js +2 -2
- package/dist/utils/copy-to-clipboard.js.map +1 -1
- package/dist/utils/css-mappings/eui-badge.js +3 -3
- package/dist/utils/css-mappings/eui-badge.js.map +1 -1
- package/dist/utils/css-mappings/eui-range-highlight.js.map +1 -1
- package/dist/utils/css-mappings/eui-range-levels.js.map +1 -1
- package/dist/utils/css-mappings/index.js +1 -1
- package/dist/utils/css-mappings/index.js.map +1 -1
- package/dist/utils/detect-element-resize.js.map +1 -1
- package/dist/utils/index.js +2 -2
- package/dist/utils/markdown/markdown-actions.js +2 -1
- package/dist/utils/markdown/markdown-actions.js.map +1 -1
- package/dist/utils/markdown/markdown-types.js.map +1 -1
- package/dist/utils/markdown/plugins/markdown-add-components/processor.js +1 -1
- package/dist/utils/markdown/plugins/markdown-add-components/processor.js.map +1 -1
- package/dist/utils/markdown/plugins/markdown-checkbox/parser.js.map +1 -1
- package/dist/utils/markdown/plugins/markdown-default-plugins/index.js +2 -2
- package/dist/utils/markdown/plugins/markdown-default-plugins/parsing-plugins.js +2 -2
- package/dist/utils/markdown/plugins/markdown-default-plugins/parsing-plugins.js.map +1 -1
- package/dist/utils/markdown/plugins/markdown-default-plugins/plugins.js +1 -1
- package/dist/utils/markdown/plugins/markdown-default-plugins/plugins.js.map +1 -1
- package/dist/utils/markdown/plugins/markdown-default-plugins/processing-plugins.js +5 -3
- package/dist/utils/markdown/plugins/markdown-default-plugins/processing-plugins.js.map +1 -1
- package/dist/utils/markdown/plugins/markdown-default-plugins/ui-plugins.js +1 -0
- package/dist/utils/markdown/plugins/markdown-default-plugins/ui-plugins.js.map +1 -1
- package/dist/utils/markdown/plugins/markdown-tooltip/parser.js.map +1 -1
- package/dist/utils/markdown/plugins/to-dom.js.map +1 -1
- package/dist/utils/markdown/remark/remark-prismjs.js.map +1 -1
- package/dist/utils/maybe-unwrap-proxy.js +1 -1
- package/dist/utils/maybe-unwrap-proxy.js.map +1 -1
- package/dist/utils/number/number.js.map +1 -1
- package/dist/utils/popover/index.js +1 -2
- package/dist/utils/popover/index.js.map +1 -1
- package/dist/utils/predicate/lodash_predicates.js +3 -3
- package/dist/utils/predicate/lodash_predicates.js.map +1 -1
- package/dist/utils/timer.js +1 -1
- package/dist/utils/timer.js.map +1 -1
- package/dist/utils/transition.js +2 -0
- package/dist/utils/transition.js.map +1 -1
- package/package.json +68 -63
- package/vendor/icon/svgs/aggregate.svg +0 -0
- package/vendor/icon/svgs/color.svg +0 -0
- package/vendor/icon/svgs/continuityAbove.svg +0 -0
- package/vendor/icon/svgs/continuityAboveBelow.svg +0 -0
- package/vendor/icon/svgs/continuityBelow.svg +0 -0
- package/vendor/icon/svgs/continuityWithin.svg +0 -0
- package/vendor/icon/svgs/documentation.svg +0 -0
- package/vendor/icon/svgs/eraser.svg +0 -0
- package/vendor/icon/svgs/folder_check.svg +0 -0
- package/vendor/icon/svgs/folder_closed.svg +0 -0
- package/vendor/icon/svgs/folder_exclamation.svg +0 -0
- package/vendor/icon/svgs/folder_open.svg +0 -0
- package/vendor/icon/svgs/fullScreenExit.svg +0 -0
- package/vendor/icon/svgs/function.svg +0 -0
- package/vendor/icon/svgs/layers.svg +0 -0
- package/vendor/icon/svgs/menu.svg +0 -0
- package/vendor/icon/svgs/ml_data_visualizer.svg +0 -0
- package/vendor/icon/svgs/pageSelect.svg +0 -0
- package/vendor/icon/svgs/pagesSelect.svg +0 -0
- package/vendor/icon/svgs/percent.svg +0 -0
- package/vendor/icon/svgs/push.svg +0 -0
- package/vendor/icon/svgs/quote.svg +0 -0
- package/vendor/icon/svgs/reporter.svg +0 -0
- package/vendor/icon/svgs/securitySignal.svg +0 -0
- package/vendor/icon/svgs/securitySignalDetected.svg +0 -0
- package/vendor/icon/svgs/securitySignalResolved.svg +0 -0
- package/vendor/icon/svgs/timeline.svg +0 -0
- package/vendor/icon/svgs/users.svg +0 -0
- package/vendor/icon/svgs/wordWrap.svg +0 -0
- package/vendor/icon/svgs/wordWrapDisabled.svg +0 -0
- package/dist/_app_/helpers/unique-id.js +0 -1
- package/dist/_rollupPluginBabelHelpers-_w_srC8C.js.map +0 -1
- package/dist/helpers/unique-id.js +0 -13
- package/dist/helpers/unique-id.js.map +0 -1
package/dist/components.js
CHANGED
|
@@ -2,40 +2,41 @@ export { default as EuiAccordion } from './components/eui-accordion.js';
|
|
|
2
2
|
export { default as EuiAutoSizer } from './components/eui-auto-sizer.js';
|
|
3
3
|
export { default as EuiAvatar } from './components/eui-avatar.js';
|
|
4
4
|
export { default as EuiBadge } from './components/eui-badge.js';
|
|
5
|
-
export { default as EuiBetaBadge } from './components/eui-beta-badge.js';
|
|
6
|
-
export { default as EuiBreadcrumbs } from './components/eui-breadcrumbs.js';
|
|
7
5
|
export { default as EuiBadgeGroup } from './components/eui-badge-group.js';
|
|
6
|
+
export { default as EuiBetaBadge } from './components/eui-beta-badge.js';
|
|
8
7
|
export { default as EuiBottomBar } from './components/eui-bottom-bar.js';
|
|
8
|
+
export { default as EuiBreadcrumbs } from './components/eui-breadcrumbs.js';
|
|
9
|
+
export { default as EuiButton } from './components/eui-button.js';
|
|
10
|
+
export { default as EuiButtonEmpty } from './components/eui-button-empty.js';
|
|
9
11
|
export { EuiButtonGroup } from './components/eui-button-group.js';
|
|
10
12
|
export { default as EuiButtonIcon } from './components/eui-button-icon.js';
|
|
11
13
|
export { default as EuiCallOut } from './components/eui-call-out.js';
|
|
14
|
+
export { default as EuiCard } from './components/eui-card.js';
|
|
12
15
|
export { default as EuiCardSelect } from './components/eui-card-select.js';
|
|
16
|
+
export { default as EuiCheckableCard } from './components/eui-checkable-card.js';
|
|
13
17
|
export { default as EuiCheckbox } from './components/eui-checkbox.js';
|
|
18
|
+
export { default as EuiCheckboxGroup } from './components/eui-checkbox-group.js';
|
|
14
19
|
export { default as EuiCode } from './components/eui-code.js';
|
|
15
20
|
export { default as EuiCodeBlock } from './components/eui-code-block.js';
|
|
16
|
-
export { default as EuiCard } from './components/eui-card.js';
|
|
17
|
-
export { default as EuiCheckableCard } from './components/eui-checkable-card.js';
|
|
18
|
-
export { default as EuiCheckboxGroup } from './components/eui-checkbox-group.js';
|
|
19
21
|
export { default as EuiCollapsibleNav } from './components/eui-collapsible-nav.js';
|
|
20
|
-
export { default as EuiComboBoxPill } from './components/eui-combo-box-pill.js';
|
|
21
22
|
export { default as EuiComboBox } from './components/eui-combo-box.js';
|
|
22
|
-
export { default as
|
|
23
|
+
export { default as EuiComboBoxPill } from './components/eui-combo-box-pill.js';
|
|
23
24
|
export { default as EuiComment } from './components/eui-comment.js';
|
|
25
|
+
export { default as EuiCommentList } from './components/eui-comment-list.js';
|
|
24
26
|
export { default as EuiConfirmModal } from './components/eui-confirm-modal.js';
|
|
25
27
|
export { default as EuiContextMenuItem } from './components/eui-context-menu-item.js';
|
|
26
28
|
export { default as EuiContextMenuPanel } from './components/eui-context-menu-panel.js';
|
|
27
29
|
export { default as EuiCopy } from './components/eui-copy.js';
|
|
28
30
|
export { default as EuiDescribedFormGroup } from './components/eui-described-form-group.js';
|
|
29
31
|
export { default as EuiDescriptionList } from './components/eui-description-list.js';
|
|
30
|
-
export { default as EuiDescriptionListTitle } from './components/eui-description-list-title.js';
|
|
31
32
|
export { default as EuiDescriptionListDescription } from './components/eui-description-list-description.js';
|
|
33
|
+
export { default as EuiDescriptionListTitle } from './components/eui-description-list-title.js';
|
|
32
34
|
export { default as EuiDualRange } from './components/eui-dual-range.js';
|
|
33
35
|
export { default as EuiEmptyPrompt } from './components/eui-empty-prompt.js';
|
|
34
36
|
export { default as EuiFieldNumber } from './components/eui-field-number.js';
|
|
35
37
|
export { default as EuiFieldPassword } from './components/eui-field-password.js';
|
|
36
38
|
export { default as EuiFieldSearch } from './components/eui-field-search.js';
|
|
37
39
|
export { default as EuiFieldText } from './components/eui-field-text.js';
|
|
38
|
-
export { default as EuiTextArea } from './components/eui-text-area.js';
|
|
39
40
|
export { default as EuiFilePicker } from './components/eui-file-picker.js';
|
|
40
41
|
export { default as EuiFlexGrid } from './components/eui-flex-grid.js';
|
|
41
42
|
export { default as EuiFlexGroup } from './components/eui-flex-group.js';
|
|
@@ -69,22 +70,25 @@ export { default as EuiIconTip } from './components/eui-icon-tip.js';
|
|
|
69
70
|
export { default as EuiImage } from './components/eui-image.js';
|
|
70
71
|
export { default as EuiKeyPadMenu } from './components/eui-key-pad-menu.js';
|
|
71
72
|
export { default as EuiKeyPadMenuItem } from './components/eui-key-pad-menu-item.js';
|
|
72
|
-
export { default as EuiButton } from './components/eui-button.js';
|
|
73
|
-
export { default as EuiButtonEmpty } from './components/eui-button-empty.js';
|
|
74
73
|
export { default as EuiLink } from './components/eui-link.js';
|
|
75
|
-
export { default as EuiListGroupItem } from './components/eui-list-group-item.js';
|
|
76
74
|
export { default as EuiListGroup } from './components/eui-list-group.js';
|
|
75
|
+
export { default as EuiListGroupItem } from './components/eui-list-group-item.js';
|
|
77
76
|
export { default as EuiLoadingContent } from './components/eui-loading-content.js';
|
|
78
77
|
export { default as EuiLoadingLogo } from './components/eui-loading-logo.js';
|
|
79
78
|
export { default as EuiLoadingSpinner } from './components/eui-loading-spinner.js';
|
|
79
|
+
export { default as EuiMarkdownEditor } from './components/eui-markdown-editor.js';
|
|
80
|
+
export { default as EuiMarkdownFormat } from './components/eui-markdown-format.js';
|
|
80
81
|
export { default as EuiModal } from './components/eui-modal.js';
|
|
81
82
|
export { default as EuiModalBody } from './components/eui-modal-body.js';
|
|
82
83
|
export { default as EuiModalFooter } from './components/eui-modal-footer.js';
|
|
83
84
|
export { default as EuiModalHeader } from './components/eui-modal-header.js';
|
|
84
85
|
export { default as EuiModalHeaderTitle } from './components/eui-modal-header-title.js';
|
|
85
|
-
export { default as EuiMarkdownEditor } from './components/eui-markdown-editor.js';
|
|
86
|
-
export { default as EuiMarkdownFormat } from './components/eui-markdown-format.js';
|
|
87
86
|
export { default as EuiNotificationBadge } from './components/eui-notification-badge.js';
|
|
87
|
+
export { default as EuiNotificationEvent } from './components/eui-notification-event.js';
|
|
88
|
+
export { default as EuiNotificationEventMessages } from './components/eui-notification-event-messages.js';
|
|
89
|
+
export { default as EuiNotificationEventMeta } from './components/eui-notification-event-meta.js';
|
|
90
|
+
export { default as EuiNotificationEventReadButton } from './components/eui-notification-event-read-button.js';
|
|
91
|
+
export { default as EuiNotificationEventReadIcon } from './components/eui-notification-event-read-icon.js';
|
|
88
92
|
export { default as EuiOverlayMask } from './components/eui-overlay-mask.js';
|
|
89
93
|
export { default as EuiPage } from './components/eui-page.js';
|
|
90
94
|
export { default as EuiPageBody } from './components/eui-page-body.js';
|
|
@@ -95,21 +99,18 @@ export { default as EuiPageContentHeaderSection } from './components/eui-page-co
|
|
|
95
99
|
export { default as EuiPageHeader } from './components/eui-page-header.js';
|
|
96
100
|
export { default as EuiPageHeaderSection } from './components/eui-page-header-section.js';
|
|
97
101
|
export { default as EuiPageSideBar } from './components/eui-page-side-bar.js';
|
|
102
|
+
export { default as EuiPageTemplate } from './components/eui-page-template.js';
|
|
98
103
|
export { default as EuiPagination } from './components/eui-pagination.js';
|
|
104
|
+
export { default as EuiPaginationButton } from './components/eui-pagination-button.js';
|
|
99
105
|
export { default as EuiPanel } from './components/eui-panel.js';
|
|
100
106
|
export { default as EuiPopover } from './components/eui-popover.js';
|
|
101
|
-
export { default as EuiPopoverTitle } from './components/eui-popover-title.js';
|
|
102
107
|
export { default as EuiPopoverFooter } from './components/eui-popover-footer.js';
|
|
108
|
+
export { default as EuiPopoverTitle } from './components/eui-popover-title.js';
|
|
103
109
|
export { default as EuiPortal } from './components/eui-portal.js';
|
|
104
110
|
export { default as EuiProgress } from './components/eui-progress.js';
|
|
111
|
+
export { default as EuiRadio } from './components/eui-radio.js';
|
|
112
|
+
export { default as EuiRadioGroup } from './components/eui-radio-group.js';
|
|
105
113
|
export { default as EuiRange } from './components/eui-range.js';
|
|
106
|
-
export { default as EuiNotificationEvent } from './components/eui-notification-event.js';
|
|
107
|
-
export { default as EuiNotificationEventMessages } from './components/eui-notification-event-messages.js';
|
|
108
|
-
export { default as EuiNotificationEventMeta } from './components/eui-notification-event-meta.js';
|
|
109
|
-
export { default as EuiNotificationEventReadButton } from './components/eui-notification-event-read-button.js';
|
|
110
|
-
export { default as EuiNotificationEventReadIcon } from './components/eui-notification-event-read-icon.js';
|
|
111
|
-
export { default as EuiPageTemplate } from './components/eui-page-template.js';
|
|
112
|
-
export { default as EuiPaginationButton } from './components/eui-pagination-button.js';
|
|
113
114
|
export { default as EuiRangeHighlight } from './components/eui-range-highlight.js';
|
|
114
115
|
export { default as EuiRangeInput } from './components/eui-range-input.js';
|
|
115
116
|
export { default as EuiRangeLabel } from './components/eui-range-label.js';
|
|
@@ -117,8 +118,6 @@ export { default as EuiRangeLevels } from './components/eui-range-levels.js';
|
|
|
117
118
|
export { default as EuiRangeSlider } from './components/eui-range-slider.js';
|
|
118
119
|
export { default as EuiRangeThumb } from './components/eui-range-thumb.js';
|
|
119
120
|
export { default as EuiRangeTicks } from './components/eui-range-ticks.js';
|
|
120
|
-
export { default as EuiRadio } from './components/eui-radio.js';
|
|
121
|
-
export { default as EuiRadioGroup } from './components/eui-radio-group.js';
|
|
122
121
|
export { default as EuiRangeTooltip } from './components/eui-range-tooltip.js';
|
|
123
122
|
export { default as EuiRangeTrack } from './components/eui-range-track.js';
|
|
124
123
|
export { default as EuiRangeWrapper } from './components/eui-range-wrapper.js';
|
|
@@ -129,21 +128,22 @@ export { default as EuiSideNav } from './components/eui-side-nav.js';
|
|
|
129
128
|
export { default as EuiSpacer } from './components/eui-spacer.js';
|
|
130
129
|
export { default as EuiStat } from './components/eui-stat.js';
|
|
131
130
|
export { default as EuiStep } from './components/eui-step.js';
|
|
132
|
-
export { default as EuiSteps } from './components/eui-steps.js';
|
|
133
131
|
export { default as EuiStepHorizontal } from './components/eui-step-horizontal.js';
|
|
134
132
|
export { default as EuiStepNumber } from './components/eui-step-number.js';
|
|
133
|
+
export { default as EuiSteps } from './components/eui-steps.js';
|
|
135
134
|
export { default as EuiSubSteps } from './components/eui-sub-steps.js';
|
|
136
135
|
export { default as EuiSuperDatePicker } from './components/eui-super-date-picker.js';
|
|
137
136
|
export { default as EuiSwitch } from './components/eui-switch.js';
|
|
138
137
|
export { default as EuiTab } from './components/eui-tab.js';
|
|
139
138
|
export { default as EuiTabbedContent } from './components/eui-tabbed-content.js';
|
|
140
139
|
export { default as EuiTabs } from './components/eui-tabs.js';
|
|
140
|
+
export { default as EuiText } from './components/eui-text.js';
|
|
141
141
|
export { default as EuiTextAlign } from './components/eui-text-align.js';
|
|
142
|
+
export { default as EuiTextArea } from './components/eui-text-area.js';
|
|
142
143
|
export { default as EuiTextColor } from './components/eui-text-color.js';
|
|
143
|
-
export { default as EuiText } from './components/eui-text.js';
|
|
144
|
-
export { default as EuiToast } from './components/eui-toast.js';
|
|
145
144
|
export { default as EuiTitle } from './components/eui-title.js';
|
|
146
|
-
export { default as
|
|
145
|
+
export { default as EuiToast } from './components/eui-toast.js';
|
|
147
146
|
export { default as EuiToolTip } from './components/eui-tool-tip.js';
|
|
147
|
+
export { default as EuiToolTipPopover } from './components/eui-tool-tip-popover.js';
|
|
148
148
|
export { default as TextBlock } from './components/text-block.js';
|
|
149
149
|
//# sourceMappingURL=components.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-palette.js","sources":["../../src/helpers/eui-palette.ts"],"sourcesContent":["import { helper } from '@ember/component/helper';\nimport {\n
|
|
1
|
+
{"version":3,"file":"eui-palette.js","sources":["../../src/helpers/eui-palette.ts"],"sourcesContent":["import { helper } from '@ember/component/helper';\n\nimport {\n euiPaletteColorBlind,\n euiPaletteColorBlindBehindText,\n euiPaletteComplimentary,\n euiPaletteCool,\n euiPaletteForDarkBackground,\n euiPaletteForLightBackground,\n euiPaletteForStatus,\n euiPaletteForTemperature,\n euiPaletteGray,\n euiPaletteNegative,\n euiPalettePositive,\n euiPaletteWarm} from '../utils/color/eui_palettes';\n\nimport type { EuiPalette } from '../utils/color/eui_palettes';\n\nexport const PALETTES = {\n euiPaletteForLightBackground,\n euiPaletteForDarkBackground,\n euiPaletteColorBlind,\n euiPaletteColorBlindBehindText,\n euiPaletteForStatus,\n euiPaletteForTemperature,\n euiPaletteComplimentary,\n euiPaletteNegative,\n euiPalettePositive,\n euiPaletteCool,\n euiPaletteWarm,\n euiPaletteGray\n};\n\nexport type palette_keys = keyof typeof PALETTES;\n\nexport default helper(function ([paletteName, steps]: [\n palette_keys,\n number\n]): EuiPalette {\n return PALETTES[paletteName](steps);\n});\n"],"names":["PALETTES","euiPaletteForLightBackground","euiPaletteForDarkBackground","euiPaletteColorBlind","euiPaletteColorBlindBehindText","euiPaletteForStatus","euiPaletteForTemperature","euiPaletteComplimentary","euiPaletteNegative","euiPalettePositive","euiPaletteCool","euiPaletteWarm","euiPaletteGray","helper","paletteName","steps"],"mappings":";;;AAkBO,MAAMA,QAAQ,GAAG;EACtBC,4BAA4B;EAC5BC,2BAA2B;EAC3BC,oBAAoB;EACpBC,8BAA8B;EAC9BC,mBAAmB;EACnBC,wBAAwB;EACxBC,uBAAuB;EACvBC,kBAAkB;EAClBC,kBAAkB;EAClBC,cAAc;EACdC,cAAc;AACdC,EAAAA,cAAAA;AACF,EAAC;AAID,iBAAeC,MAAM,CAAC,UAAU,CAACC,WAAW,EAAEC,KAAK,CAGlD,EAAc;AACb,EAAA,OAAOf,QAAQ,CAACc,WAAW,CAAC,CAACC,KAAK,CAAC,CAAA;AACrC,CAAC,CAAC;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _applyDecoratedDescriptor, a as _initializerDefineProperty } from '../_rollupPluginBabelHelpers-
|
|
1
|
+
import { _ as _applyDecoratedDescriptor, a as _initializerDefineProperty } from '../_rollupPluginBabelHelpers-9wjJaosZ.js';
|
|
2
2
|
import Helper from '@ember/component/helper';
|
|
3
3
|
import { inject } from '@ember/service';
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-eui-config.js","sources":["../../src/helpers/get-eui-config.ts"],"sourcesContent":["import Helper from '@ember/component/helper';\nimport { inject as service } from '@ember/service';\nimport type EuiConfigService from '../services/eui-config';\nimport type { EuiConfig } from '../services/eui-config';\n\nexport interface GetEuiConfigSignature<T extends keyof EuiConfig> {\n Args: {\n Positional: [T];\n };\n Returns: EuiConfig[T];\n}\n\nexport default class GetEuiConfig<T extends keyof EuiConfig> extends Helper<\n GetEuiConfigSignature<T>\n> {\n @service declare euiConfig: EuiConfigService;\n\n compute([key]: [T]) {\n return this.euiConfig.getConfig(key);\n }\n}\n"],"names":["GetEuiConfig","_class","Helper","constructor","args","_initializerDefineProperty","_descriptor","compute","key","euiConfig","getConfig","_applyDecoratedDescriptor","prototype","service","configurable","enumerable","writable","initializer"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"get-eui-config.js","sources":["../../src/helpers/get-eui-config.ts"],"sourcesContent":["import Helper from '@ember/component/helper';\nimport { inject as service } from '@ember/service';\n\nimport type EuiConfigService from '../services/eui-config';\nimport type { EuiConfig } from '../services/eui-config';\n\nexport interface GetEuiConfigSignature<T extends keyof EuiConfig> {\n Args: {\n Positional: [T];\n };\n Returns: EuiConfig[T];\n}\n\nexport default class GetEuiConfig<T extends keyof EuiConfig> extends Helper<\n GetEuiConfigSignature<T>\n> {\n @service declare euiConfig: EuiConfigService;\n\n compute([key]: [T]) {\n return this.euiConfig.getConfig(key);\n }\n}\n"],"names":["GetEuiConfig","_class","Helper","constructor","args","_initializerDefineProperty","_descriptor","compute","key","euiConfig","getConfig","_applyDecoratedDescriptor","prototype","service","configurable","enumerable","writable","initializer"],"mappings":";;;;;AAaqBA,IAAAA,YAAY,IAAAC,MAAA,GAAlB,MAAMD,YAAY,SAAoCE,MAAM,CAEzE;AAAAC,EAAAA,WAAAA,CAAA,GAAAC,IAAA,EAAA;AAAA,IAAA,KAAA,CAAA,GAAAA,IAAA,CAAA,CAAA;AAAAC,IAAAA,0BAAA,oBAAAC,WAAA,EAAA,IAAA,CAAA,CAAA;AAAA,GAAA;AAGAC,EAAAA,OAAOA,CAAC,CAACC,GAAG,CAAM,EAAE;AAClB,IAAA,OAAO,IAAI,CAACC,SAAS,CAACC,SAAS,CAACF,GAAG,CAAC,CAAA;AACtC,GAAA;AACF,CAAC,GAAAF,WAAA,GAAAK,yBAAA,CAAAV,MAAA,CAAAW,SAAA,EAAA,WAAA,EAAA,CALEC,MAAO,CAAA,EAAA;EAAAC,YAAA,EAAA,IAAA;EAAAC,UAAA,EAAA,IAAA;EAAAC,QAAA,EAAA,IAAA;EAAAC,WAAA,EAAA,IAAA;AAAA,CAAA,CAAA,GAAAhB,MAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-range-tick.js","sources":["../../src/helpers/get-range-tick.ts"],"sourcesContent":["import { helper } from '@ember/component/helper';\nimport { EUI_THUMB_SIZE } from '../utils/range';\nimport type { EuiRangeTick } from '../components/eui-range-ticks
|
|
1
|
+
{"version":3,"file":"get-range-tick.js","sources":["../../src/helpers/get-range-tick.ts"],"sourcesContent":["import { helper } from '@ember/component/helper';\n\nimport { EUI_THUMB_SIZE } from '../utils/range';\n\nimport type { EuiRangeTick } from '../components/eui-range-ticks';\n\nexport function calculateOffset(\n position: number,\n value: number,\n bound: number\n) {\n const threshold = 30;\n let offset = value === bound ? 0 : EUI_THUMB_SIZE / 2;\n\n if (offset !== 0) {\n // Estimating offset by eye. Trying to account for range scaling at both ends.\n offset =\n position <= threshold ? offset + (1 / position) * threshold : offset;\n offset =\n position >= 100 - threshold\n ? offset - (1 / (100 - position)) * threshold\n : offset;\n }\n\n return offset;\n}\n\nexport function calculateThumbPosition(\n value: number,\n min: number,\n max: number,\n width: number,\n thumbSize: number = EUI_THUMB_SIZE\n): number {\n // Calculate the left position based on value\n const decimal = (value - min) / (max - min);\n // Must be between 0-100%\n let valuePosition = decimal <= 1 ? decimal : 1;\n\n valuePosition = valuePosition >= 0 ? valuePosition : 0;\n\n const trackWidth = width ?? 0;\n const thumbToTrackRatio = thumbSize / trackWidth;\n const trackPositionScale = (1 - thumbToTrackRatio) * 100;\n\n return valuePosition * trackPositionScale;\n}\n\nexport function getRangeTick([\n ticks,\n tickValue,\n min,\n max,\n percentageWidth,\n trackWidth = 0\n]: [EuiRangeTick[], number, number, number, number, number]) {\n let tickStyle: string = '';\n let customTick;\n\n if (ticks) {\n customTick = ticks.find((o) => o.value === tickValue);\n\n if (customTick) {\n tickStyle = `left: ${((customTick.value - min) / (max - min)) * 100}%;`;\n }\n } else {\n let position = calculateThumbPosition(tickValue, min, max, trackWidth);\n\n tickStyle = `left: calc(${position}% + ${EUI_THUMB_SIZE / 2}px);`;\n tickStyle += `width: ${percentageWidth}%;`;\n }\n\n return {\n style: tickStyle,\n customTick,\n label: customTick ? customTick.label : tickValue\n };\n}\n\nexport default helper(getRangeTick);\n"],"names":["calculateOffset","position","value","bound","threshold","offset","EUI_THUMB_SIZE","calculateThumbPosition","min","max","width","thumbSize","decimal","valuePosition","trackWidth","thumbToTrackRatio","trackPositionScale","getRangeTick","ticks","tickValue","percentageWidth","tickStyle","customTick","find","o","style","label","helper"],"mappings":";;;AAMO,SAASA,eAAeA,CAC7BC,QAAgB,EAChBC,KAAa,EACbC,KAAa,EACb;EACA,MAAMC,SAAS,GAAG,EAAE,CAAA;EACpB,IAAIC,MAAM,GAAGH,KAAK,KAAKC,KAAK,GAAG,CAAC,GAAGG,cAAc,GAAG,CAAC,CAAA;EAErD,IAAID,MAAM,KAAK,CAAC,EAAE;AAChB;AACAA,IAAAA,MAAM,GACJJ,QAAQ,IAAIG,SAAS,GAAGC,MAAM,GAAI,CAAC,GAAGJ,QAAQ,GAAIG,SAAS,GAAGC,MAAM,CAAA;AACtEA,IAAAA,MAAM,GACJJ,QAAQ,IAAI,GAAG,GAAGG,SAAS,GACvBC,MAAM,GAAI,CAAC,IAAI,GAAG,GAAGJ,QAAQ,CAAC,GAAIG,SAAS,GAC3CC,MAAM,CAAA;AACd,GAAA;AAEA,EAAA,OAAOA,MAAM,CAAA;AACf,CAAA;AAEO,SAASE,sBAAsBA,CACpCL,KAAa,EACbM,GAAW,EACXC,GAAW,EACXC,KAAa,EACbC,SAAiB,GAAGL,cAAc,EAC1B;AACR;EACA,MAAMM,OAAO,GAAG,CAACV,KAAK,GAAGM,GAAG,KAAKC,GAAG,GAAGD,GAAG,CAAC,CAAA;AAC3C;EACA,IAAIK,aAAa,GAAGD,OAAO,IAAI,CAAC,GAAGA,OAAO,GAAG,CAAC,CAAA;AAE9CC,EAAAA,aAAa,GAAGA,aAAa,IAAI,CAAC,GAAGA,aAAa,GAAG,CAAC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;GACxC,CAAA;AACH,CAAA;AAEA,qBAAeQ,MAAM,CAACV,YAAY,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hex-to-rgb.js","sources":["../../src/helpers/hex-to-rgb.ts"],"sourcesContent":["/*\n * Licensed to Elasticsearch B.V. under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * ownership. Elasticsearch B.V. licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n// Convert hexadecimal color into an array of RGB integer values\n// Modified from https://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb\n\nimport { helper } from '@ember/component/helper';\n\nexport function hexToRgb(hex: string): rgbDef {\n // Expand shorthand form (e.g. \"03F\") to full form (e.g. \"0033FF\")\n const shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n hex = hex.replace(\n shorthandRegex,\n (_m, r1, g1, b1) => r1 + r1 + g1 + g1 + b1 + b1\n );\n\n const result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex)!;\n\n if (result) {\n const [, r, g, b] = result;\n return [parseInt(r!, 16), parseInt(g!, 16), parseInt(b!, 16)];\n }\n\n // fallback to prevent errors\n return [0, 0, 0];\n}\n\nexport default helper(function ([hex]: [string]) {\n return hexToRgb(hex);\n});\n"],"names":["hexToRgb","hex","shorthandRegex","replace","_m","r1","g1","b1","result","exec","r","g","b","parseInt","helper"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAOO,SAASA,QAAQA,CAACC,GAAW,EAAU;AAC5C;EACA,MAAMC,cAAc,GAAG,kCAAkC,CAAA;
|
|
1
|
+
{"version":3,"file":"hex-to-rgb.js","sources":["../../src/helpers/hex-to-rgb.ts"],"sourcesContent":["/*\n * Licensed to Elasticsearch B.V. under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * ownership. Elasticsearch B.V. licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n// Convert hexadecimal color into an array of RGB integer values\n// Modified from https://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb\n\nimport { helper } from '@ember/component/helper';\n\nexport function hexToRgb(hex: string): rgbDef {\n // Expand shorthand form (e.g. \"03F\") to full form (e.g. \"0033FF\")\n const shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n\n hex = hex.replace(\n shorthandRegex,\n (_m, r1, g1, b1) => r1 + r1 + g1 + g1 + b1 + b1\n );\n\n const result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex)!;\n\n if (result) {\n const [, r, g, b] = result;\n\n return [parseInt(r!, 16), parseInt(g!, 16), parseInt(b!, 16)];\n }\n\n // fallback to prevent errors\n return [0, 0, 0];\n}\n\nexport default helper(function ([hex]: [string]) {\n return hexToRgb(hex);\n});\n"],"names":["hexToRgb","hex","shorthandRegex","replace","_m","r1","g1","b1","result","exec","r","g","b","parseInt","helper"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAOO,SAASA,QAAQA,CAACC,GAAW,EAAU;AAC5C;EACA,MAAMC,cAAc,GAAG,kCAAkC,CAAA;EAEzDD,GAAG,GAAGA,GAAG,CAACE,OAAO,CACfD,cAAc,EACd,CAACE,EAAE,EAAEC,EAAE,EAAEC,EAAE,EAAEC,EAAE,KAAKF,EAAE,GAAGA,EAAE,GAAGC,EAAE,GAAGA,EAAE,GAAGC,EAAE,GAAGA,EAC/C,CAAC,CAAA;AAED,EAAA,MAAMC,MAAM,GAAG,2CAA2C,CAACC,IAAI,CAACR,GAAG,CAAE,CAAA;AAErE,EAAA,IAAIO,MAAM,EAAE;IACV,MAAM,GAAGE,CAAC,EAAEC,CAAC,EAAEC,CAAC,CAAC,GAAGJ,MAAM,CAAA;IAE1B,OAAO,CAACK,QAAQ,CAACH,CAAC,EAAG,EAAE,CAAC,EAAEG,QAAQ,CAACF,CAAC,EAAG,EAAE,CAAC,EAAEE,QAAQ,CAACD,CAAC,EAAG,EAAE,CAAC,CAAC,CAAA;AAC/D,GAAA;;AAEA;AACA,EAAA,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;AAClB,CAAA;AAEA,iBAAeE,MAAM,CAAC,UAAU,CAACb,GAAG,CAAW,EAAE;EAC/C,OAAOD,QAAQ,CAACC,GAAG,CAAC,CAAA;AACtB,CAAC,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-styles.js","sources":["../../src/helpers/inline-styles.ts"],"sourcesContent":["import { helper } from '@ember/component/helper';\nimport { assert } from '@ember/debug';\nimport cssMappings from '../utils/css-mappings';\n\ninterface InlineStylesParams {\n componentName?: string;\n componentArgs?: Record<string, unknown>;\n [property: string]: unknown;\n}\n\nexport function inlineStyles(_: unknown, params: InlineStylesParams) {\n const { componentName, componentArgs = {}, ...properties } = params;\n let componentStyles = {};\n\n if (componentName) {\n assert(\n `Could not find component ${componentName} in cssMappings.`,\n cssMappings[componentName]\n );\n assert(\n `Could not find inlineStyles in ${componentName}'s cssMapping.`,\n cssMappings[componentName]?.inlineStyles\n );\n componentStyles =\n cssMappings[componentName]?.inlineStyles?.(componentArgs) || {};\n }\n\n let finalProperties: {\n [name: string]: string | undefined;\n } = {\n ...properties,\n ...componentStyles\n };\n\n for (let property in finalProperties) {\n if (\n property === 'background-image' &&\n finalProperties[property] !== 'none'\n ) {\n finalProperties[property] = `url(${finalProperties[property]})`;\n } else {\n finalProperties[property] = `${finalProperties[property]}`;\n }\n }\n\n return finalProperties;\n}\n\nexport default helper(inlineStyles);\n"],"names":["inlineStyles","_","params","componentName","componentArgs","properties","componentStyles","assert","cssMappings","finalProperties","property","helper"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"inline-styles.js","sources":["../../src/helpers/inline-styles.ts"],"sourcesContent":["import { helper } from '@ember/component/helper';\nimport { assert } from '@ember/debug';\n\nimport cssMappings from '../utils/css-mappings';\n\ninterface InlineStylesParams {\n componentName?: string;\n componentArgs?: Record<string, unknown>;\n [property: string]: unknown;\n}\n\nexport function inlineStyles(_: unknown, params: InlineStylesParams) {\n const { componentName, componentArgs = {}, ...properties } = params;\n let componentStyles = {};\n\n if (componentName) {\n assert(\n `Could not find component ${componentName} in cssMappings.`,\n cssMappings[componentName]\n );\n assert(\n `Could not find inlineStyles in ${componentName}'s cssMapping.`,\n cssMappings[componentName]?.inlineStyles\n );\n componentStyles =\n cssMappings[componentName]?.inlineStyles?.(componentArgs) || {};\n }\n\n let finalProperties: {\n [name: string]: string | undefined;\n } = {\n ...properties,\n ...componentStyles\n };\n\n for (let property in finalProperties) {\n if (\n property === 'background-image' &&\n finalProperties[property] !== 'none'\n ) {\n finalProperties[property] = `url(${finalProperties[property]})`;\n } else {\n finalProperties[property] = `${finalProperties[property]}`;\n }\n }\n\n return finalProperties;\n}\n\nexport default helper(inlineStyles);\n"],"names":["inlineStyles","_","params","componentName","componentArgs","properties","componentStyles","assert","cssMappings","finalProperties","property","helper"],"mappings":";;;;AAWO,SAASA,YAAYA,CAACC,CAAU,EAAEC,MAA0B,EAAE;EACnE,MAAM;IAAEC,aAAa;IAAEC,aAAa,GAAG,EAAE;IAAE,GAAGC,UAAAA;AAAW,GAAC,GAAGH,MAAM,CAAA;EACnE,IAAII,eAAe,GAAG,EAAE,CAAA;AAExB,EAAA,IAAIH,aAAa,EAAE;IACjBI,MAAM,CACH,4BAA2BJ,aAAc,CAAA,gBAAA,CAAiB,EAC3DK,OAAW,CAACL,aAAa,CAC3B,CAAC,CAAA;IACDI,MAAM,CACH,CAAiCJ,+BAAAA,EAAAA,aAAc,CAAe,cAAA,CAAA,EAC/DK,OAAW,CAACL,aAAa,CAAC,EAAEH,YAC9B,CAAC,CAAA;AACDM,IAAAA,eAAe,GACbE,OAAW,CAACL,aAAa,CAAC,EAAEH,YAAY,GAAGI,aAAa,CAAC,IAAI,EAAE,CAAA;AACnE,GAAA;AAEA,EAAA,IAAIK,eAEH,GAAG;AACF,IAAA,GAAGJ,UAAU;IACb,GAAGC,eAAAA;GACJ,CAAA;AAED,EAAA,KAAK,IAAII,QAAQ,IAAID,eAAe,EAAE;IACpC,IACEC,QAAQ,KAAK,kBAAkB,IAC/BD,eAAe,CAACC,QAAQ,CAAC,KAAK,MAAM,EACpC;MACAD,eAAe,CAACC,QAAQ,CAAC,GAAI,OAAMD,eAAe,CAACC,QAAQ,CAAE,CAAE,CAAA,CAAA,CAAA;AACjE,KAAC,MAAM;MACLD,eAAe,CAACC,QAAQ,CAAC,GAAI,GAAED,eAAe,CAACC,QAAQ,CAAE,CAAC,CAAA,CAAA;AAC5D,KAAA;AACF,GAAA;AAEA,EAAA,OAAOD,eAAe,CAAA;AACxB,CAAA;AAEA,qBAAeE,MAAM,CAACX,YAAY,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-color-dark.js","sources":["../../src/helpers/is-color-dark.ts"],"sourcesContent":["/*\n * Licensed to Elasticsearch B.V. under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * ownership. Elasticsearch B.V. licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n/**\n * This function calculates if the specified color is \"dark\", which usually means\n * you need light text if you use it as a background color to fulfill WCAG contrast\n * requirement.\n * The color must be specified via its red, green and blue value in the range of\n * 0 to 255.\n * The formula is based on this Stackoverflow answer: https://stackoverflow.com/a/3943023\n * which itself is based upon the WCAG recommendation for color contrast.\n *\n * @param {number} red The red component in the range 0 to 255\n * @param {number} green The green component in the range 0 to 255\n * @param {number} blue The blue component in the range 0 to 255\n * @returns {boolean} True if the color is dark, false otherwise.\n */\nimport { helper } from '@ember/component/helper';\n\nexport function isColorDark(red: number, green: number, blue: number): boolean {\n const [r, g, b] = [red, green, blue]\n .map((c) => c / 255.0)\n .map((c) => (c <= 0.03928 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4));\n const luminance = 0.2126 * r! + 0.7152 * g! + 0.0722 * b!;\n return luminance <= 0.179;\n}\n\nexport default helper(function (rgb: [number, number, number]) {\n return isColorDark(...rgb);\n});\n"],"names":["isColorDark","red","green","blue","r","g","b","map","c","luminance","helper","rgb"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAkBO,SAASA,WAAWA,CAACC,GAAW,EAAEC,KAAa,EAAEC,IAAY,EAAW;EAC7E,MAAM,CAACC,CAAC,EAAEC,CAAC,EAAEC,CAAC,CAAC,GAAG,CAACL,GAAG,EAAEC,KAAK,EAAEC,IAAI,CAAC,CACjCI,GAAG,CAAEC,CAAC,IAAKA,CAAC,GAAG,KAAK,CAAC,CACrBD,GAAG,CAAEC,CAAC,IAAMA,CAAC,IAAI,OAAO,GAAGA,CAAC,GAAG,KAAK,GAAG,CAAC,CAACA,CAAC,GAAG,KAAK,IAAI,KAAK,KAAK,GAAI,CAAC,CAAA;AACxE,EAAA,MAAMC,SAAS,GAAG,MAAM,GAAGL,CAAE,GAAG,MAAM,GAAGC,CAAE,GAAG,MAAM,GAAGC,CAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"is-color-dark.js","sources":["../../src/helpers/is-color-dark.ts"],"sourcesContent":["/*\n * Licensed to Elasticsearch B.V. under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * ownership. Elasticsearch B.V. licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n/**\n * This function calculates if the specified color is \"dark\", which usually means\n * you need light text if you use it as a background color to fulfill WCAG contrast\n * requirement.\n * The color must be specified via its red, green and blue value in the range of\n * 0 to 255.\n * The formula is based on this Stackoverflow answer: https://stackoverflow.com/a/3943023\n * which itself is based upon the WCAG recommendation for color contrast.\n *\n * @param {number} red The red component in the range 0 to 255\n * @param {number} green The green component in the range 0 to 255\n * @param {number} blue The blue component in the range 0 to 255\n * @returns {boolean} True if the color is dark, false otherwise.\n */\nimport { helper } from '@ember/component/helper';\n\nexport function isColorDark(red: number, green: number, blue: number): boolean {\n const [r, g, b] = [red, green, blue]\n .map((c) => c / 255.0)\n .map((c) => (c <= 0.03928 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4));\n const luminance = 0.2126 * r! + 0.7152 * g! + 0.0722 * b!;\n\n return luminance <= 0.179;\n}\n\nexport default helper(function (rgb: [number, number, number]) {\n return isColorDark(...rgb);\n});\n"],"names":["isColorDark","red","green","blue","r","g","b","map","c","luminance","helper","rgb"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAkBO,SAASA,WAAWA,CAACC,GAAW,EAAEC,KAAa,EAAEC,IAAY,EAAW;EAC7E,MAAM,CAACC,CAAC,EAAEC,CAAC,EAAEC,CAAC,CAAC,GAAG,CAACL,GAAG,EAAEC,KAAK,EAAEC,IAAI,CAAC,CACjCI,GAAG,CAAEC,CAAC,IAAKA,CAAC,GAAG,KAAK,CAAC,CACrBD,GAAG,CAAEC,CAAC,IAAMA,CAAC,IAAI,OAAO,GAAGA,CAAC,GAAG,KAAK,GAAG,CAAC,CAACA,CAAC,GAAG,KAAK,IAAI,KAAK,KAAK,GAAI,CAAC,CAAA;AACxE,EAAA,MAAMC,SAAS,GAAG,MAAM,GAAGL,CAAE,GAAG,MAAM,GAAGC,CAAE,GAAG,MAAM,GAAGC,CAAE,CAAA;EAEzD,OAAOG,SAAS,IAAI,KAAK,CAAA;AAC3B,CAAA;AAEA,oBAAeC,MAAM,CAAC,UAAUC,GAA6B,EAAE;AAC7D,EAAA,OAAOX,WAAW,CAAC,GAAGW,GAAG,CAAC,CAAA;AAC5B,CAAC,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-item-open.js","sources":["../../src/helpers/is-item-open.ts"],"sourcesContent":["import { helper } from '@ember/component/helper';\n\nexport function isItemOpen(item: any, selectedItem?: string): boolean {\n // The developer can force the item to be open.\n if (item.forceOpen) {\n return true;\n }\n\n // Of course a selected item is open.\n if (item.id === selectedItem) {\n return true;\n }\n\n // The item has to be open if it has a child that's open.\n if (item.items) {\n return item.items.some((item: any) => isItemOpen(item, selectedItem));\n }\n return false;\n}\n\n/**\n * Retuns wether an item is open taking into account his childs\n *\n * @param { any } ref\n */\nexport function isItemOpenHelper([item, selectedItem]: [any, string?]): boolean {\n return isItemOpen(item, selectedItem);\n}\n\nexport default helper(isItemOpenHelper);\n"],"names":["isItemOpen","item","selectedItem","forceOpen","id","items","some","isItemOpenHelper","helper"],"mappings":";;AAEO,SAASA,UAAUA,CAACC,IAAS,EAAEC,YAAqB,EAAW;AACpE;EACA,IAAID,IAAI,CAACE,SAAS,EAAE;AAClB,IAAA,OAAO,IAAI,CAAA;AACb,GAAA;;AAEA;AACA,EAAA,IAAIF,IAAI,CAACG,EAAE,KAAKF,YAAY,EAAE;AAC5B,IAAA,OAAO,IAAI,CAAA;AACb,GAAA;;AAEA;EACA,IAAID,IAAI,CAACI,KAAK,EAAE;AACd,IAAA,OAAOJ,IAAI,CAACI,KAAK,CAACC,IAAI,CAAEL,IAAS,IAAKD,UAAU,CAACC,IAAI,EAAEC,YAAY,CAAC,CAAC,CAAA;AACvE,GAAA;
|
|
1
|
+
{"version":3,"file":"is-item-open.js","sources":["../../src/helpers/is-item-open.ts"],"sourcesContent":["import { helper } from '@ember/component/helper';\n\nexport function isItemOpen(item: any, selectedItem?: string): boolean {\n // The developer can force the item to be open.\n if (item.forceOpen) {\n return true;\n }\n\n // Of course a selected item is open.\n if (item.id === selectedItem) {\n return true;\n }\n\n // The item has to be open if it has a child that's open.\n if (item.items) {\n return item.items.some((item: any) => isItemOpen(item, selectedItem));\n }\n\n return false;\n}\n\n/**\n * Retuns wether an item is open taking into account his childs\n *\n * @param { any } ref\n */\nexport function isItemOpenHelper([item, selectedItem]: [any, string?]): boolean {\n return isItemOpen(item, selectedItem);\n}\n\nexport default helper(isItemOpenHelper);\n"],"names":["isItemOpen","item","selectedItem","forceOpen","id","items","some","isItemOpenHelper","helper"],"mappings":";;AAEO,SAASA,UAAUA,CAACC,IAAS,EAAEC,YAAqB,EAAW;AACpE;EACA,IAAID,IAAI,CAACE,SAAS,EAAE;AAClB,IAAA,OAAO,IAAI,CAAA;AACb,GAAA;;AAEA;AACA,EAAA,IAAIF,IAAI,CAACG,EAAE,KAAKF,YAAY,EAAE;AAC5B,IAAA,OAAO,IAAI,CAAA;AACb,GAAA;;AAEA;EACA,IAAID,IAAI,CAACI,KAAK,EAAE;AACd,IAAA,OAAOJ,IAAI,CAACI,KAAK,CAACC,IAAI,CAAEL,IAAS,IAAKD,UAAU,CAACC,IAAI,EAAEC,YAAY,CAAC,CAAC,CAAA;AACvE,GAAA;AAEA,EAAA,OAAO,KAAK,CAAA;AACd,CAAA;;AAEA;AACA;AACA;AACA;AACA;AACO,SAASK,gBAAgBA,CAAC,CAACN,IAAI,EAAEC,YAAY,CAAiB,EAAW;AAC9E,EAAA,OAAOF,UAAU,CAACC,IAAI,EAAEC,YAAY,CAAC,CAAA;AACvC,CAAA;AAEA,mBAAeM,MAAM,CAACD,gBAAgB,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-within-number.js","sources":["../../src/helpers/is-within-number.ts"],"sourcesContent":["import { helper } from '@ember/component/helper';\nimport { isWithinRange as isWithin } from '../utils/number';\n\ntype Comparator = {\n min: number | string;\n max: number | string;\n value: number | string;\n};\n\nexport function isWithinRange(\n _: unknown[],\n { min, max, value }: Comparator\n): boolean {\n return isWithin(min, max, value);\n}\n\nexport default helper(isWithinRange);\n"],"names":["isWithinRange","_","min","max","value","isWithin","helper"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"is-within-number.js","sources":["../../src/helpers/is-within-number.ts"],"sourcesContent":["import { helper } from '@ember/component/helper';\n\nimport { isWithinRange as isWithin } from '../utils/number';\n\ntype Comparator = {\n min: number | string;\n max: number | string;\n value: number | string;\n};\n\nexport function isWithinRange(\n _: unknown[],\n { min, max, value }: Comparator\n): boolean {\n return isWithin(min, max, value);\n}\n\nexport default helper(isWithinRange);\n"],"names":["isWithinRange","_","min","max","value","isWithin","helper"],"mappings":";;;AAUO,SAASA,aAAaA,CAC3BC,CAAY,EACZ;EAAEC,GAAG;EAAEC,GAAG;AAAEC,EAAAA,KAAAA;AAAkB,CAAC,EACtB;AACT,EAAA,OAAOC,eAAQ,CAACH,GAAG,EAAEC,GAAG,EAAEC,KAAK,CAAC,CAAA;AAClC,CAAA;AAEA,qBAAeE,MAAM,CAACN,aAAa,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge.js","sources":["../../src/helpers/merge.ts"],"sourcesContent":["import { helper } from '@ember/component/helper';\nimport { merge } from 'lodash-es';\n\nexport default helper(function (\n hashes: Array<Record<string, unknown>>,\n hash: Record<string, unknown> = {}\n) {\n return merge({}, ...hashes, hash);\n});\n"],"names":["helper","hashes","hash","merge"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"merge.js","sources":["../../src/helpers/merge.ts"],"sourcesContent":["import { helper } from '@ember/component/helper';\n\nimport { merge } from 'lodash-es';\n\nexport default helper(function (\n hashes: Array<Record<string, unknown>>,\n hash: Record<string, unknown> = {}\n) {\n return merge({}, ...hashes, hash);\n});\n"],"names":["helper","hashes","hash","merge"],"mappings":";;;AAIA,YAAeA,MAAM,CAAC,UACpBC,MAAsC,EACtCC,IAA6B,GAAG,EAAE,EAClC;EACA,OAAOC,OAAK,CAAC,EAAE,EAAE,GAAGF,MAAM,EAAEC,IAAI,CAAC,CAAA;AACnC,CAAC,CAAC;;;;"}
|
|
@@ -11,6 +11,7 @@ function toInitials(name, initialsLength, initials) {
|
|
|
11
11
|
calculatedInitialsLength = initialsLength <= MAX_INITIALS ? initialsLength : MAX_INITIALS;
|
|
12
12
|
}
|
|
13
13
|
let calculatedInitials;
|
|
14
|
+
|
|
14
15
|
// A. Set to initials prop if exists (but truncate to 2 characters max unless length is supplied)
|
|
15
16
|
if (initials) {
|
|
16
17
|
calculatedInitials = initials.substring(0, calculatedInitialsLength);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-initials.js","sources":["../../src/helpers/to-initials.ts"],"sourcesContent":["import { helper } from '@ember/component/helper';\n\nexport const MAX_INITIALS = 2;\n\nexport function toInitials(\n name: string,\n initialsLength?: 1 | 2,\n initials?: string\n): string | null {\n // Calculate the number of initials to show, maxing out at MAX_INITIALS\n let calculatedInitialsLength: number =\n (initials ? initials?.split(' ')?.length : name?.split(' ')?.length) || 1;\n\n calculatedInitialsLength =\n calculatedInitialsLength > MAX_INITIALS\n ? MAX_INITIALS\n : calculatedInitialsLength;\n\n // Check if initialsLength was passed and set to calculated, unless greater than MAX_INITIALS\n if (initialsLength) {\n calculatedInitialsLength =\n initialsLength <= MAX_INITIALS ? initialsLength : MAX_INITIALS;\n }\n\n let calculatedInitials;\n // A. Set to initials prop if exists (but truncate to 2 characters max unless length is supplied)\n if (initials) {\n calculatedInitials = initials.substring(0, calculatedInitialsLength);\n } else {\n if (name.trim() && name.split(' ').length > 1) {\n // B. If there are any spaces in the name, set to first letter of each word\n calculatedInitials = name.match(/\\b(\\w)/g);\n calculatedInitials =\n calculatedInitials &&\n calculatedInitials.join('').substring(0, calculatedInitialsLength);\n } else {\n // C. Set to the name's initials truncated based on calculated length\n calculatedInitials = name.substring(0, calculatedInitialsLength);\n }\n }\n\n return calculatedInitials;\n}\n\nexport default helper(function ([name, initialsLength, initials]: [\n string,\n 1 | 2,\n string\n]) {\n if (name === undefined && initials === undefined) {\n return '';\n }\n return toInitials(name, initialsLength, initials);\n});\n"],"names":["MAX_INITIALS","toInitials","name","initialsLength","initials","calculatedInitialsLength","split","length","calculatedInitials","substring","trim","match","join","helper","undefined"],"mappings":";;AAEO,MAAMA,YAAY,GAAG,EAAC;AAEtB,SAASC,UAAUA,CACxBC,IAAY,EACZC,cAAsB,EACtBC,QAAiB,EACF;AACf;EACA,IAAIC,wBAAgC,GAClC,CAACD,QAAQ,GAAGA,QAAQ,EAAEE,KAAK,CAAC,GAAG,CAAC,EAAEC,MAAM,GAAGL,IAAI,EAAEI,KAAK,CAAC,GAAG,CAAC,EAAEC,MAAM,KAAK,CAAC,CAAA;AAE3EF,EAAAA,wBAAwB,GACtBA,wBAAwB,GAAGL,YAAY,GACnCA,YAAY,GACZK,wBAAwB,CAAA;;AAE9B;AACA,EAAA,IAAIF,cAAc,EAAE;AAClBE,IAAAA,wBAAwB,GACtBF,cAAc,IAAIH,YAAY,GAAGG,cAAc,GAAGH,YAAY,CAAA;AAClE,GAAA;AAEA,EAAA,IAAIQ,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"to-initials.js","sources":["../../src/helpers/to-initials.ts"],"sourcesContent":["import { helper } from '@ember/component/helper';\n\nexport const MAX_INITIALS = 2;\n\nexport function toInitials(\n name: string,\n initialsLength?: 1 | 2,\n initials?: string\n): string | null {\n // Calculate the number of initials to show, maxing out at MAX_INITIALS\n let calculatedInitialsLength: number =\n (initials ? initials?.split(' ')?.length : name?.split(' ')?.length) || 1;\n\n calculatedInitialsLength =\n calculatedInitialsLength > MAX_INITIALS\n ? MAX_INITIALS\n : calculatedInitialsLength;\n\n // Check if initialsLength was passed and set to calculated, unless greater than MAX_INITIALS\n if (initialsLength) {\n calculatedInitialsLength =\n initialsLength <= MAX_INITIALS ? initialsLength : MAX_INITIALS;\n }\n\n let calculatedInitials;\n\n // A. Set to initials prop if exists (but truncate to 2 characters max unless length is supplied)\n if (initials) {\n calculatedInitials = initials.substring(0, calculatedInitialsLength);\n } else {\n if (name.trim() && name.split(' ').length > 1) {\n // B. If there are any spaces in the name, set to first letter of each word\n calculatedInitials = name.match(/\\b(\\w)/g);\n calculatedInitials =\n calculatedInitials &&\n calculatedInitials.join('').substring(0, calculatedInitialsLength);\n } else {\n // C. Set to the name's initials truncated based on calculated length\n calculatedInitials = name.substring(0, calculatedInitialsLength);\n }\n }\n\n return calculatedInitials;\n}\n\nexport default helper(function ([name, initialsLength, initials]: [\n string,\n 1 | 2,\n string\n]) {\n if (name === undefined && initials === undefined) {\n return '';\n }\n\n return toInitials(name, initialsLength, initials);\n});\n"],"names":["MAX_INITIALS","toInitials","name","initialsLength","initials","calculatedInitialsLength","split","length","calculatedInitials","substring","trim","match","join","helper","undefined"],"mappings":";;AAEO,MAAMA,YAAY,GAAG,EAAC;AAEtB,SAASC,UAAUA,CACxBC,IAAY,EACZC,cAAsB,EACtBC,QAAiB,EACF;AACf;EACA,IAAIC,wBAAgC,GAClC,CAACD,QAAQ,GAAGA,QAAQ,EAAEE,KAAK,CAAC,GAAG,CAAC,EAAEC,MAAM,GAAGL,IAAI,EAAEI,KAAK,CAAC,GAAG,CAAC,EAAEC,MAAM,KAAK,CAAC,CAAA;AAE3EF,EAAAA,wBAAwB,GACtBA,wBAAwB,GAAGL,YAAY,GACnCA,YAAY,GACZK,wBAAwB,CAAA;;AAE9B;AACA,EAAA,IAAIF,cAAc,EAAE;AAClBE,IAAAA,wBAAwB,GACtBF,cAAc,IAAIH,YAAY,GAAGG,cAAc,GAAGH,YAAY,CAAA;AAClE,GAAA;AAEA,EAAA,IAAIQ,kBAAkB,CAAA;;AAEtB;AACA,EAAA,IAAIJ,QAAQ,EAAE;IACZI,kBAAkB,GAAGJ,QAAQ,CAACK,SAAS,CAAC,CAAC,EAAEJ,wBAAwB,CAAC,CAAA;AACtE,GAAC,MAAM;AACL,IAAA,IAAIH,IAAI,CAACQ,IAAI,EAAE,IAAIR,IAAI,CAACI,KAAK,CAAC,GAAG,CAAC,CAACC,MAAM,GAAG,CAAC,EAAE;AAC7C;AACAC,MAAAA,kBAAkB,GAAGN,IAAI,CAACS,KAAK,CAAC,SAAS,CAAC,CAAA;AAC1CH,MAAAA,kBAAkB,GAChBA,kBAAkB,IAClBA,kBAAkB,CAACI,IAAI,CAAC,EAAE,CAAC,CAACH,SAAS,CAAC,CAAC,EAAEJ,wBAAwB,CAAC,CAAA;AACtE,KAAC,MAAM;AACL;MACAG,kBAAkB,GAAGN,IAAI,CAACO,SAAS,CAAC,CAAC,EAAEJ,wBAAwB,CAAC,CAAA;AAClE,KAAA;AACF,GAAA;AAEA,EAAA,OAAOG,kBAAkB,CAAA;AAC3B,CAAA;AAEA,mBAAeK,MAAM,CAAC,UAAU,CAACX,IAAI,EAAEC,cAAc,EAAEC,QAAQ,CAI9D,EAAE;AACD,EAAA,IAAIF,IAAI,KAAKY,SAAS,IAAIV,QAAQ,KAAKU,SAAS,EAAE;AAChD,IAAA,OAAO,EAAE,CAAA;AACX,GAAA;AAEA,EAAA,OAAOb,UAAU,CAACC,IAAI,EAAEC,cAAc,EAAEC,QAAQ,CAAC,CAAA;AACnD,CAAC,CAAC;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as _applyDecoratedDescriptor, a as _initializerDefineProperty } from '../_rollupPluginBabelHelpers-
|
|
1
|
+
import { _ as _applyDecoratedDescriptor, a as _initializerDefineProperty } from '../_rollupPluginBabelHelpers-9wjJaosZ.js';
|
|
2
|
+
import { tracked } from '@glimmer/tracking';
|
|
2
3
|
import { helper } from '@ember/component/helper';
|
|
3
4
|
import { action } from '@ember/object';
|
|
4
|
-
import { tracked } from '@glimmer/tracking';
|
|
5
5
|
import { scheduleOnce } from '@ember/runloop';
|
|
6
6
|
|
|
7
7
|
var _class, _descriptor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-state.js","sources":["../../src/helpers/use-state.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"use-state.js","sources":["../../src/helpers/use-state.ts"],"sourcesContent":["import { tracked } from '@glimmer/tracking';\nimport { helper } from '@ember/component/helper';\nimport { action } from '@ember/object';\nimport { scheduleOnce } from '@ember/runloop';\n\n/**\n * @param value - initial value to use, undefined if not provided.\n *\n * @returns - Object with a `value` property and `setState` method to set the\n * `value`\n */\nclass SingleUseState<T> {\n @tracked value: T;\n\n constructor(value: T) {\n this.value = value;\n }\n\n @action\n setState(value: T): T {\n const updater = () => {\n this.value = value;\n };\n\n scheduleOnce('afterRender', this, updater);\n\n return value;\n }\n}\n\nexport function useState<T>([initialValue]: [T]): SingleUseState<T> {\n return new SingleUseState(initialValue);\n}\n\nexport default helper(useState);\n"],"names":["SingleUseState","_class","constructor","value","_initializerDefineProperty","_descriptor","setState","updater","scheduleOnce","_applyDecoratedDescriptor","prototype","tracked","configurable","enumerable","writable","initializer","action","Object","getOwnPropertyDescriptor","useState","initialValue","helper"],"mappings":";;;;;;;;AAKA;AACA;AACA;AACA;AACA;AACA;AALA,IAMMA,cAAc,IAAAC,MAAA,GAApB,MAAMD,cAAc,CAAI;EAGtBE,WAAWA,CAACC,KAAQ,EAAE;AAAAC,IAAAA,0BAAA,gBAAAC,WAAA,EAAA,IAAA,CAAA,CAAA;IACpB,IAAI,CAACF,KAAK,GAAGA,KAAK,CAAA;AACpB,GAAA;EAGAG,QAAQA,CAACH,KAAQ,EAAK;IACpB,MAAMI,OAAO,GAAGA,MAAM;MACpB,IAAI,CAACJ,KAAK,GAAGA,KAAK,CAAA;KACnB,CAAA;AAEDK,IAAAA,YAAY,CAAC,aAAa,EAAE,IAAI,EAAED,OAAO,CAAC,CAAA;AAE1C,IAAA,OAAOJ,KAAK,CAAA;AACd,GAAA;AACF,CAAC,GAAAE,WAAA,GAAAI,yBAAA,CAAAR,MAAA,CAAAS,SAAA,EAAA,OAAA,EAAA,CAhBEC,OAAO,CAAA,EAAA;EAAAC,YAAA,EAAA,IAAA;EAAAC,UAAA,EAAA,IAAA;EAAAC,QAAA,EAAA,IAAA;EAAAC,WAAA,EAAA,IAAA;AAAA,CAAAN,CAAAA,EAAAA,yBAAA,CAAAR,MAAA,CAAAS,SAAA,EAMPM,UAAAA,EAAAA,CAAAA,MAAM,GAAAC,MAAA,CAAAC,wBAAA,CAAAjB,MAAA,CAAAS,SAAA,EAAA,UAAA,CAAA,EAAAT,MAAA,CAAAS,SAAA,IAAAT,MAAA,CAAA,CAAA;AAYF,SAASkB,QAAQA,CAAI,CAACC,YAAY,CAAM,EAAqB;AAClE,EAAA,OAAO,IAAIpB,cAAc,CAACoB,YAAY,CAAC,CAAA;AACzC,CAAA;AAEA,iBAAeC,MAAM,CAACF,QAAQ,CAAC;;;;"}
|
package/dist/helpers.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { default as argOrDefault } from './helpers/arg-or-default.js';
|
|
2
2
|
export { default as castTo } from './helpers/cast-to.js';
|
|
3
3
|
export { default as classNames } from './helpers/class-names.js';
|
|
4
|
+
export { default as getEuiConfig } from './helpers/get-eui-config.js';
|
|
4
5
|
export { default as inlineStyles } from './helpers/inline-styles.js';
|
|
5
6
|
export { default as isColorDark } from './helpers/is-color-dark.js';
|
|
6
7
|
export { default as useState } from './helpers/use-state.js';
|
|
7
|
-
export { default as getEuiConfig } from './helpers/get-eui-config.js';
|
|
8
8
|
//# sourceMappingURL=helpers.js.map
|
package/dist/i18n/util.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { assert } from '@ember/debug';
|
|
2
|
+
import { get } from '@ember/object';
|
|
1
3
|
import { isUndefined } from '../utils/predicate/common_predicates.js';
|
|
2
4
|
import { isBoolean, isString, isNumber } from '../utils/predicate/lodash_predicates.js';
|
|
3
|
-
import { get } from '@ember/object';
|
|
4
|
-
import { assert } from '@ember/debug';
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
package/dist/i18n/util.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sources":["../../src/i18n/util.ts"],"sourcesContent":["/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0 and the Server Side Public License, v 1; you may not use this file except\n * in compliance with, at your election, the Elastic License 2.0 or the Server\n * Side Public License, v 1.\n */\n\nimport {
|
|
1
|
+
{"version":3,"file":"util.js","sources":["../../src/i18n/util.ts"],"sourcesContent":["/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0 and the Server Side Public License, v 1; you may not use this file except\n * in compliance with, at your election, the Elastic License 2.0 or the Server\n * Side Public License, v 1.\n */\n\nimport { assert } from '@ember/debug';\nimport { get } from '@ember/object';\n\nimport { isBoolean, isNumber, isString, isUndefined } from '../utils/predicate';\n\nfunction isPrimitive(value: any) {\n return (\n isBoolean(value) || isString(value) || isNumber(value) || isUndefined(value)\n );\n}\n\ntype Child = string | { propName: string };\n\nfunction hasPropName(child: Child): child is { propName: string } {\n return child\n ? typeof child === 'object' && child.hasOwnProperty('propName')\n : false;\n}\n\nfunction isElement(value: any) {\n return value.hasOwnProperty('propName') && !isPrimitive(value);\n}\n\n/**\n * Replaces placeholder values in `input` with their matching value in `values`\n * e.g. input:'Hello, {name}' will replace `{name}` with `values[name]`\n * @param {string} input\n * @param {RenderableValues} values\n * @param {Function} i18nMappingFunc\n * @returns {string}\n */\nexport function processStringToChildren(\n input: string,\n values: { [key: string]: any },\n i18nMappingFunc?: (token: string) => string\n): any[] | string {\n const children: any[] = [];\n\n let child: Child | undefined = { propName: '' };\n\n function appendCharToChild(char: string) {\n if (child === undefined) {\n // starting a new string literal\n child = char;\n } else if (typeof child === 'string') {\n // existing string literal\n child = child + char;\n } else if (hasPropName(child)) {\n // adding to the propName of a values lookup\n child.propName = child.propName + char;\n }\n }\n\n function appendValueToChildren(value?: Child) {\n if (value === undefined) {\n return;\n } else if (hasPropName(value)) {\n // an array with any ReactElements will be kept as an array\n // so they need to be assigned a key\n // children.push(cloneElement(value, { key: children.length }));\n children.push(value.propName);\n } else if (isElement(value)) {\n // this won't be called, propName children are converted to a ReactChild before calling this\n } else {\n // everything else can go straight in\n if (i18nMappingFunc !== undefined && typeof value === 'string') {\n value = i18nMappingFunc(value);\n }\n\n children.push(value);\n }\n }\n\n // if we don't encounter a non-primitive\n // then `children` can be concatenated together at the end\n let encounteredNonPrimitive = false;\n\n for (let i = 0; i < input.length; i++) {\n const char = input[i];\n\n if (char === '\\\\') {\n // peek at the next character to know if this is an escape\n const nextChar = input[i + 1];\n let charToAdd = char; // if this isn't an escape sequence then we will add the backslash\n\n if (nextChar === '{' || nextChar === '}') {\n // escaping a brace\n i += 1; // advance passed the brace\n charToAdd = input[i]!;\n }\n\n appendCharToChild(charToAdd);\n } else if (char === '{') {\n appendValueToChildren(child);\n child = { propName: '' };\n } else if (char === '}') {\n const propName = (child as { propName: string }).propName as string;\n\n if (get(values, propName) === undefined) {\n assert(\n `Key \"${propName}\" not found in ${JSON.stringify(values, null, 2)}`,\n true\n );\n }\n\n const propValue = values[propName];\n\n encounteredNonPrimitive =\n encounteredNonPrimitive || !isPrimitive(propValue);\n appendValueToChildren(propValue);\n child = undefined;\n } else {\n appendCharToChild(char!);\n }\n }\n\n // include any remaining child value\n appendValueToChildren(child);\n\n return encounteredNonPrimitive ? children : children.join('');\n}\n"],"names":["isPrimitive","value","isBoolean","isString","isNumber","isUndefined","hasPropName","child","hasOwnProperty","isElement","processStringToChildren","input","values","i18nMappingFunc","children","propName","appendCharToChild","char","undefined","appendValueToChildren","push","encounteredNonPrimitive","i","length","nextChar","charToAdd","get","assert","JSON","stringify","propValue","join"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAOA,SAASA,WAAWA,CAACC,KAAU,EAAE;AAC/B,EAAA,OACEC,SAAS,CAACD,KAAK,CAAC,IAAIE,QAAQ,CAACF,KAAK,CAAC,IAAIG,QAAQ,CAACH,KAAK,CAAC,IAAII,WAAW,CAACJ,KAAK,CAAC,CAAA;AAEhF,CAAA;AAIA,SAASK,WAAWA,CAACC,KAAY,EAAiC;AAChE,EAAA,OAAOA,KAAK,GACR,OAAOA,KAAK,KAAK,QAAQ,IAAIA,KAAK,CAACC,cAAc,CAAC,UAAU,CAAC,GAC7D,KAAK,CAAA;AACX,CAAA;AAEA,SAASC,SAASA,CAACR,KAAU,EAAE;EAC7B,OAAOA,KAAK,CAACO,cAAc,CAAC,UAAU,CAAC,IAAI,CAACR,WAAW,CAACC,KAAK,CAAC,CAAA;AAChE,C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,qBAAqB,CAACW,SAAS,CAAC,CAAA;AAChCvB,MAAAA,KAAK,GAAGW,SAAS,CAAA;AACnB,KAAC,MAAM;MACLF,iBAAiB,CAACC,IAAK,CAAC,CAAA;AAC1B,KAAA;AACF,GAAA;;AAEA;EACAE,qBAAqB,CAACZ,KAAK,CAAC,CAAA;EAE5B,OAAOc,uBAAuB,GAAGP,QAAQ,GAAGA,QAAQ,CAACiB,IAAI,CAAC,EAAE,CAAC,CAAA;AAC/D;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutation-observer.js","sources":["../../src/modifiers/mutation-observer.ts"],"sourcesContent":["import { modifier } from 'ember-modifier';\n\nconst hasOwnProperty = function (\n obj: MutationObserverInit,\n name: string\n): boolean {\n return Object.prototype.hasOwnProperty.call(obj, name);\n};\n\nconst makeMutationObserver = (\n node: Element,\n _observerOptions: MutationObserverInit | undefined,\n callback: MutationCallback\n) => {\n // IE11 and the MutationObserver polyfill used in Kibana (for Jest) implement\n // an older spec in which specifying `attributeOldValue` or `attributeFilter`\n // without specifying `attributes` results in a `SyntaxError`.\n // The following logic patches the newer spec in which `attributes: true` can be\n // implied when appropriate (`attributeOldValue` or `attributeFilter` is specified).\n const observerOptions: MutationObserverInit = {\n ..._observerOptions\n };\n const needsAttributes =\n hasOwnProperty(observerOptions, 'attributeOldValue') ||\n hasOwnProperty(observerOptions, 'attributeFilter');\n if (needsAttributes && !hasOwnProperty(observerOptions, 'attributes')) {\n observerOptions.attributes = true;\n }\n\n const observer = new MutationObserver(callback);\n\n //eslint-disable-next-line\n observer.observe(node, observerOptions);\n\n return observer;\n};\n\nexport default modifier(function useMutationObserver(\n element: HTMLElement,\n _positional,\n {\n onMutation,\n observerOptions\n }: { onMutation: MutationCallback; observerOptions: MutationObserverInit }\n): void | (() => unknown) {\n if (element != null) {\n const observer = makeMutationObserver(element, observerOptions, onMutation);\n //eslint-disable-next-line\n return () => observer.disconnect();\n }\n});\n"],"names":["hasOwnProperty","obj","name","Object","prototype","call","makeMutationObserver","node","_observerOptions","callback","observerOptions","needsAttributes","attributes","observer","MutationObserver","observe","modifier","useMutationObserver","element","_positional","onMutation","disconnect"],"mappings":";;AAEA,MAAMA,cAAc,GAAG,UACrBC,GAAyB,EACzBC,IAAY,EACH;EACT,OAAOC,MAAM,CAACC,SAAS,CAACJ,cAAc,CAACK,IAAI,CAACJ,GAAG,EAAEC,IAAI,CAAC,CAAA;AACxD,CAAC,CAAA;AAED,MAAMI,oBAAoB,GAAGA,CAC3BC,IAAa,EACbC,gBAAkD,EAClDC,QAA0B,KACvB;AACH;AACA;AACA;AACA;AACA;AACA,EAAA,MAAMC,eAAqC,GAAG;IAC5C,GAAGF,gBAAAA;GACJ,CAAA;AACD,EAAA,MAAMG,eAAe,GACnBX,cAAc,CAACU,eAAe,EAAE,mBAAmB,CAAC,IACpDV,cAAc,CAACU,eAAe,EAAE,iBAAiB,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"mutation-observer.js","sources":["../../src/modifiers/mutation-observer.ts"],"sourcesContent":["import { modifier } from 'ember-modifier';\n\nconst hasOwnProperty = function (\n obj: MutationObserverInit,\n name: string\n): boolean {\n return Object.prototype.hasOwnProperty.call(obj, name);\n};\n\nconst makeMutationObserver = (\n node: Element,\n _observerOptions: MutationObserverInit | undefined,\n callback: MutationCallback\n) => {\n // IE11 and the MutationObserver polyfill used in Kibana (for Jest) implement\n // an older spec in which specifying `attributeOldValue` or `attributeFilter`\n // without specifying `attributes` results in a `SyntaxError`.\n // The following logic patches the newer spec in which `attributes: true` can be\n // implied when appropriate (`attributeOldValue` or `attributeFilter` is specified).\n const observerOptions: MutationObserverInit = {\n ..._observerOptions\n };\n const needsAttributes =\n hasOwnProperty(observerOptions, 'attributeOldValue') ||\n hasOwnProperty(observerOptions, 'attributeFilter');\n\n if (needsAttributes && !hasOwnProperty(observerOptions, 'attributes')) {\n observerOptions.attributes = true;\n }\n\n const observer = new MutationObserver(callback);\n\n //eslint-disable-next-line\n observer.observe(node, observerOptions);\n\n return observer;\n};\n\nexport default modifier(function useMutationObserver(\n element: HTMLElement,\n _positional,\n {\n onMutation,\n observerOptions\n }: { onMutation: MutationCallback; observerOptions: MutationObserverInit }\n): void | (() => unknown) {\n if (element != null) {\n const observer = makeMutationObserver(element, observerOptions, onMutation);\n //eslint-disable-next-line\n return () => observer.disconnect();\n }\n});\n"],"names":["hasOwnProperty","obj","name","Object","prototype","call","makeMutationObserver","node","_observerOptions","callback","observerOptions","needsAttributes","attributes","observer","MutationObserver","observe","modifier","useMutationObserver","element","_positional","onMutation","disconnect"],"mappings":";;AAEA,MAAMA,cAAc,GAAG,UACrBC,GAAyB,EACzBC,IAAY,EACH;EACT,OAAOC,MAAM,CAACC,SAAS,CAACJ,cAAc,CAACK,IAAI,CAACJ,GAAG,EAAEC,IAAI,CAAC,CAAA;AACxD,CAAC,CAAA;AAED,MAAMI,oBAAoB,GAAGA,CAC3BC,IAAa,EACbC,gBAAkD,EAClDC,QAA0B,KACvB;AACH;AACA;AACA;AACA;AACA;AACA,EAAA,MAAMC,eAAqC,GAAG;IAC5C,GAAGF,gBAAAA;GACJ,CAAA;AACD,EAAA,MAAMG,eAAe,GACnBX,cAAc,CAACU,eAAe,EAAE,mBAAmB,CAAC,IACpDV,cAAc,CAACU,eAAe,EAAE,iBAAiB,CAAC,CAAA;EAEpD,IAAIC,eAAe,IAAI,CAACX,cAAc,CAACU,eAAe,EAAE,YAAY,CAAC,EAAE;IACrEA,eAAe,CAACE,UAAU,GAAG,IAAI,CAAA;AACnC,GAAA;AAEA,EAAA,MAAMC,QAAQ,GAAG,IAAIC,gBAAgB,CAACL,QAAQ,CAAC,CAAA;;AAE/C;AACAI,EAAAA,QAAQ,CAACE,OAAO,CAACR,IAAI,EAAEG,eAAe,CAAC,CAAA;AAEvC,EAAA,OAAOG,QAAQ,CAAA;AACjB,CAAC,CAAA;AAED,uBAAeG,QAAQ,CAAC,SAASC,mBAAmBA,CAClDC,OAAoB,EACpBC,WAAW,EACX;EACEC,UAAU;AACVV,EAAAA,eAAAA;AACuE,CAAC,EAClD;EACxB,IAAIQ,OAAO,IAAI,IAAI,EAAE;IACnB,MAAML,QAAQ,GAAGP,oBAAoB,CAACY,OAAO,EAAER,eAAe,EAAEU,UAAU,CAAC,CAAA;AAC3E;AACA,IAAA,OAAO,MAAMP,QAAQ,CAACQ,UAAU,EAAE,CAAA;AACpC,GAAA;AACF,CAAC,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open-collapsible-nav.js","sources":["../../src/modifiers/open-collapsible-nav.ts"],"sourcesContent":["import { modifier } from 'ember-modifier';\nlet counter = 0;\n\nexport default modifier(function openCollapsibleNav(\n _,\n [navIsDocked]: [boolean]\n) {\n counter++;\n if (navIsDocked) {\n document.body.classList.add('euiBody--collapsibleNavIsDocked');\n }\n document.body.classList.add('euiBody--collapsibleNavIsOpen');\n\n return (): void => {\n counter--;\n if (!counter) {\n if (navIsDocked) {\n document.body.classList.remove('euiBody--collapsibleNavIsDocked');\n }\n document.body.classList.remove('euiBody--collapsibleNavIsOpen');\n }\n };\n});\n"],"names":["counter","modifier","openCollapsibleNav","_","navIsDocked","document","body","classList","add","remove"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"open-collapsible-nav.js","sources":["../../src/modifiers/open-collapsible-nav.ts"],"sourcesContent":["import { modifier } from 'ember-modifier';\n\nlet counter = 0;\n\nexport default modifier(function openCollapsibleNav(\n _,\n [navIsDocked]: [boolean]\n) {\n counter++;\n\n if (navIsDocked) {\n document.body.classList.add('euiBody--collapsibleNavIsDocked');\n }\n\n document.body.classList.add('euiBody--collapsibleNavIsOpen');\n\n return (): void => {\n counter--;\n\n if (!counter) {\n if (navIsDocked) {\n document.body.classList.remove('euiBody--collapsibleNavIsDocked');\n }\n\n document.body.classList.remove('euiBody--collapsibleNavIsOpen');\n }\n };\n});\n"],"names":["counter","modifier","openCollapsibleNav","_","navIsDocked","document","body","classList","add","remove"],"mappings":";;AAEA,IAAIA,OAAO,GAAG,CAAC,CAAA;AAEf,yBAAeC,QAAQ,CAAC,SAASC,kBAAkBA,CACjDC,CAAC,EACD,CAACC,WAAW,CAAY,EACxB;AACAJ,EAAAA,OAAO,EAAE,CAAA;AAET,EAAA,IAAII,WAAW,EAAE;IACfC,QAAQ,CAACC,IAAI,CAACC,SAAS,CAACC,GAAG,CAAC,iCAAiC,CAAC,CAAA;AAChE,GAAA;EAEAH,QAAQ,CAACC,IAAI,CAACC,SAAS,CAACC,GAAG,CAAC,+BAA+B,CAAC,CAAA;AAE5D,EAAA,OAAO,MAAY;AACjBR,IAAAA,OAAO,EAAE,CAAA;IAET,IAAI,CAACA,OAAO,EAAE;AACZ,MAAA,IAAII,WAAW,EAAE;QACfC,QAAQ,CAACC,IAAI,CAACC,SAAS,CAACE,MAAM,CAAC,iCAAiC,CAAC,CAAA;AACnE,OAAA;MAEAJ,QAAQ,CAACC,IAAI,CAACC,SAAS,CAACE,MAAM,CAAC,+BAA+B,CAAC,CAAA;AACjE,KAAA;GACD,CAAA;AACH,CAAC,CAAC;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _applyDecoratedDescriptor, b as _defineProperty } from '../_rollupPluginBabelHelpers-
|
|
1
|
+
import { _ as _applyDecoratedDescriptor, b as _defineProperty } from '../_rollupPluginBabelHelpers-9wjJaosZ.js';
|
|
2
2
|
import { registerDestructor } from '@ember/destroyable';
|
|
3
3
|
import { action } from '@ember/object';
|
|
4
4
|
import { guidFor } from '@ember/object/internals';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outside-click-detector.js","sources":["../../src/modifiers/outside-click-detector.ts"],"sourcesContent":["import { registerDestructor } from '@ember/destroyable';\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\n\nimport Modifier from 'ember-modifier';\n\ninterface Named {\n onOutsideClick: (event: Event) => void;\n isDisabled?: boolean;\n onMouseDown?: (event: MouseEvent | TouchEvent) => void;\n onMouseUp?: (event: MouseEvent | TouchEvent) => void;\n onTouchStart?: (event: MouseEvent | TouchEvent) => void;\n onTouchEnd?: (event: MouseEvent | TouchEvent) => void;\n}\n\ntype Positional = [];\n\ninterface OutsideClickDetectorModifierArgs {\n Element: Element;\n Args: {\n Positional: Positional;\n Named: Named;\n };\n}\n\nexport interface EuiEvent extends Event {\n euiGeneratedBy: string[];\n}\n\nexport default class OutsideClickDetector extends Modifier<OutsideClickDetectorModifierArgs> {\n id!: string;\n capturedDownIds: string[] = [];\n\n element?: HTMLElement;\n named?: Named;\n positional?: Positional;\n\n @action\n onClickOutside(e: Event): void {\n const { isDisabled, onOutsideClick } = this.named!;\n\n if (isDisabled) {\n this.capturedDownIds = [];\n return;\n }\n\n const event = e as unknown as EuiEvent;\n\n if (\n (event.euiGeneratedBy && event.euiGeneratedBy.includes(this.id)) ||\n this.capturedDownIds.includes(this.id)\n ) {\n this.capturedDownIds = [];\n return;\n }\n\n this.capturedDownIds = [];\n return onOutsideClick(event);\n }\n\n modify(element: HTMLElement, positional: Positional, named: Named): void {\n this.element = element;\n this.named = named;\n this.positional = positional;\n this._setup();\n registerDestructor(this, () => this._teardown());\n }\n\n _setup(): void {\n this.id = guidFor({});\n document.addEventListener('mouseup', this.onClickOutside);\n document.addEventListener('touchend', this.onClickOutside);\n this.addElementEvents();\n }\n\n _teardown(): void {\n document.removeEventListener('mouseup', this.onClickOutside);\n document.removeEventListener('touchend', this.onClickOutside);\n this.removeElementEvents();\n }\n\n addElementEvents(): void {\n if (this.element) {\n this.element.addEventListener('mousedown', this.onChildMouseDown);\n this.element.addEventListener('touchstart', this.onChildMouseDown);\n this.element.addEventListener('mouseup', this.onChildMouseUp);\n this.element.addEventListener('touchend', this.onChildMouseUp);\n }\n }\n\n removeElementEvents(): void {\n if (this.element) {\n this.element.removeEventListener('mousedown', this.onChildMouseDown);\n this.element.removeEventListener('touchstart', this.onChildMouseDown);\n this.element.removeEventListener('mouseup', this.onChildMouseUp);\n this.element.removeEventListener('touchend', this.onChildMouseUp);\n }\n }\n\n @action\n onChildClick(\n event: MouseEvent | TouchEvent,\n cb: (event: MouseEvent | TouchEvent) => void\n ): void {\n // to support nested click detectors, build an array\n // of detector ids that have been encountered;\n\n if (event.hasOwnProperty('euiGeneratedBy')) {\n (event as unknown as EuiEvent).euiGeneratedBy.push(this.id);\n } else {\n (event as unknown as EuiEvent).euiGeneratedBy = [this.id];\n }\n if (cb) cb(event);\n }\n\n @action\n onChildMouseDown(event: MouseEvent | TouchEvent): any {\n this.onChildClick(event, (e) => {\n const nativeEvent = e as unknown as EuiEvent;\n this.capturedDownIds = nativeEvent.euiGeneratedBy;\n this.named?.onMouseDown?.(e);\n this.named?.onTouchStart?.(e);\n });\n }\n\n @action\n onChildMouseUp(event: TouchEvent | MouseEvent): any {\n this.onChildClick(event, (e) => {\n this.named?.onMouseUp?.(e);\n this.named?.onTouchEnd?.(e);\n });\n }\n}\n"],"names":["OutsideClickDetector","_class","Modifier","constructor","args","_defineProperty","onClickOutside","e","isDisabled","onOutsideClick","named","capturedDownIds","event","euiGeneratedBy","includes","id","modify","element","positional","_setup","registerDestructor","_teardown","guidFor","document","addEventListener","addElementEvents","removeEventListener","removeElementEvents","onChildMouseDown","onChildMouseUp","onChildClick","cb","hasOwnProperty","push","nativeEvent","onMouseDown","onTouchStart","onMouseUp","onTouchEnd","_applyDecoratedDescriptor","prototype","action","Object","getOwnPropertyDescriptor"],"mappings":";;;;;;;AA6BqBA,IAAAA,oBAAoB,IAAAC,MAAA,GAA1B,MAAMD,oBAAoB,SAASE,QAAQ,CAAmC;AAAAC,EAAAA,WAAAA,CAAA,GAAAC,IAAA,EAAA;AAAA,IAAA,KAAA,CAAA,GAAAA,IAAA,CAAA,CAAA;IAAAC,eAAA,CAAA,IAAA,EAAA,IAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAAAA,IAAAA,eAAA,0BAE/D,EAAE,CAAA,CAAA;IAAAA,eAAA,CAAA,IAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA,CAAA;IAAAA,eAAA,CAAA,IAAA,EAAA,OAAA,EAAA,KAAA,CAAA,CAAA,CAAA;IAAAA,eAAA,CAAA,IAAA,EAAA,YAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAAA,GAAA;EAO9BC,cAAcA,CAACC,CAAQ,EAAQ;IAC7B,MAAM;MAAEC,UAAU;AAAEC,MAAAA,cAAAA;KAAgB,GAAG,IAAI,CAACC,KAAM,CAAA;AAElD,IAAA,IAAIF,UAAU,EAAE;MACd,IAAI,CAACG,eAAe,GAAG,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"outside-click-detector.js","sources":["../../src/modifiers/outside-click-detector.ts"],"sourcesContent":["import { registerDestructor } from '@ember/destroyable';\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\n\nimport Modifier from 'ember-modifier';\n\ninterface Named {\n onOutsideClick: (event: Event) => void;\n isDisabled?: boolean;\n onMouseDown?: (event: MouseEvent | TouchEvent) => void;\n onMouseUp?: (event: MouseEvent | TouchEvent) => void;\n onTouchStart?: (event: MouseEvent | TouchEvent) => void;\n onTouchEnd?: (event: MouseEvent | TouchEvent) => void;\n}\n\ntype Positional = [];\n\ninterface OutsideClickDetectorModifierArgs {\n Element: Element;\n Args: {\n Positional: Positional;\n Named: Named;\n };\n}\n\nexport interface EuiEvent extends Event {\n euiGeneratedBy: string[];\n}\n\nexport default class OutsideClickDetector extends Modifier<OutsideClickDetectorModifierArgs> {\n id!: string;\n capturedDownIds: string[] = [];\n\n element?: HTMLElement;\n named?: Named;\n positional?: Positional;\n\n @action\n onClickOutside(e: Event): void {\n const { isDisabled, onOutsideClick } = this.named!;\n\n if (isDisabled) {\n this.capturedDownIds = [];\n\n return;\n }\n\n const event = e as unknown as EuiEvent;\n\n if (\n (event.euiGeneratedBy && event.euiGeneratedBy.includes(this.id)) ||\n this.capturedDownIds.includes(this.id)\n ) {\n this.capturedDownIds = [];\n\n return;\n }\n\n this.capturedDownIds = [];\n\n return onOutsideClick(event);\n }\n\n modify(element: HTMLElement, positional: Positional, named: Named): void {\n this.element = element;\n this.named = named;\n this.positional = positional;\n this._setup();\n registerDestructor(this, () => this._teardown());\n }\n\n _setup(): void {\n this.id = guidFor({});\n document.addEventListener('mouseup', this.onClickOutside);\n document.addEventListener('touchend', this.onClickOutside);\n this.addElementEvents();\n }\n\n _teardown(): void {\n document.removeEventListener('mouseup', this.onClickOutside);\n document.removeEventListener('touchend', this.onClickOutside);\n this.removeElementEvents();\n }\n\n addElementEvents(): void {\n if (this.element) {\n this.element.addEventListener('mousedown', this.onChildMouseDown);\n this.element.addEventListener('touchstart', this.onChildMouseDown);\n this.element.addEventListener('mouseup', this.onChildMouseUp);\n this.element.addEventListener('touchend', this.onChildMouseUp);\n }\n }\n\n removeElementEvents(): void {\n if (this.element) {\n this.element.removeEventListener('mousedown', this.onChildMouseDown);\n this.element.removeEventListener('touchstart', this.onChildMouseDown);\n this.element.removeEventListener('mouseup', this.onChildMouseUp);\n this.element.removeEventListener('touchend', this.onChildMouseUp);\n }\n }\n\n @action\n onChildClick(\n event: MouseEvent | TouchEvent,\n cb: (event: MouseEvent | TouchEvent) => void\n ): void {\n // to support nested click detectors, build an array\n // of detector ids that have been encountered;\n\n if (event.hasOwnProperty('euiGeneratedBy')) {\n (event as unknown as EuiEvent).euiGeneratedBy.push(this.id);\n } else {\n (event as unknown as EuiEvent).euiGeneratedBy = [this.id];\n }\n\n if (cb) cb(event);\n }\n\n @action\n onChildMouseDown(event: MouseEvent | TouchEvent): any {\n this.onChildClick(event, (e) => {\n const nativeEvent = e as unknown as EuiEvent;\n\n this.capturedDownIds = nativeEvent.euiGeneratedBy;\n this.named?.onMouseDown?.(e);\n this.named?.onTouchStart?.(e);\n });\n }\n\n @action\n onChildMouseUp(event: TouchEvent | MouseEvent): any {\n this.onChildClick(event, (e) => {\n this.named?.onMouseUp?.(e);\n this.named?.onTouchEnd?.(e);\n });\n }\n}\n"],"names":["OutsideClickDetector","_class","Modifier","constructor","args","_defineProperty","onClickOutside","e","isDisabled","onOutsideClick","named","capturedDownIds","event","euiGeneratedBy","includes","id","modify","element","positional","_setup","registerDestructor","_teardown","guidFor","document","addEventListener","addElementEvents","removeEventListener","removeElementEvents","onChildMouseDown","onChildMouseUp","onChildClick","cb","hasOwnProperty","push","nativeEvent","onMouseDown","onTouchStart","onMouseUp","onTouchEnd","_applyDecoratedDescriptor","prototype","action","Object","getOwnPropertyDescriptor"],"mappings":";;;;;;;AA6BqBA,IAAAA,oBAAoB,IAAAC,MAAA,GAA1B,MAAMD,oBAAoB,SAASE,QAAQ,CAAmC;AAAAC,EAAAA,WAAAA,CAAA,GAAAC,IAAA,EAAA;AAAA,IAAA,KAAA,CAAA,GAAAA,IAAA,CAAA,CAAA;IAAAC,eAAA,CAAA,IAAA,EAAA,IAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAAAA,IAAAA,eAAA,0BAE/D,EAAE,CAAA,CAAA;IAAAA,eAAA,CAAA,IAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA,CAAA;IAAAA,eAAA,CAAA,IAAA,EAAA,OAAA,EAAA,KAAA,CAAA,CAAA,CAAA;IAAAA,eAAA,CAAA,IAAA,EAAA,YAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAAA,GAAA;EAO9BC,cAAcA,CAACC,CAAQ,EAAQ;IAC7B,MAAM;MAAEC,UAAU;AAAEC,MAAAA,cAAAA;KAAgB,GAAG,IAAI,CAACC,KAAM,CAAA;AAElD,IAAA,IAAIF,UAAU,EAAE;MACd,IAAI,CAACG,eAAe,GAAG,EAAE,CAAA;AAEzB,MAAA,OAAA;AACF,KAAA;IAEA,MAAMC,KAAK,GAAGL,CAAwB,CAAA;IAEtC,IACGK,KAAK,CAACC,cAAc,IAAID,KAAK,CAACC,cAAc,CAACC,QAAQ,CAAC,IAAI,CAACC,EAAE,CAAC,IAC/D,IAAI,CAACJ,eAAe,CAACG,QAAQ,CAAC,I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A,CAAAuC,SAAA,EAAA,gBAAA,CAAA,EAAAvC,MAAA,CAAAuC,SAAA,IAAAvC,MAAA;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as _applyDecoratedDescriptor, b as _defineProperty } from '../_rollupPluginBabelHelpers-
|
|
2
|
-
import Modifier from 'ember-modifier';
|
|
3
|
-
import { action } from '@ember/object';
|
|
1
|
+
import { _ as _applyDecoratedDescriptor, b as _defineProperty } from '../_rollupPluginBabelHelpers-9wjJaosZ.js';
|
|
4
2
|
import { registerDestructor } from '@ember/destroyable';
|
|
3
|
+
import { action } from '@ember/object';
|
|
4
|
+
import Modifier from 'ember-modifier';
|
|
5
5
|
|
|
6
6
|
var _class;
|
|
7
7
|
|
|
@@ -17,7 +17,6 @@ const mutationObserverOptions = {
|
|
|
17
17
|
// Account for adding/removing child nodes
|
|
18
18
|
subtree: true // Account for deep child nodes
|
|
19
19
|
};
|
|
20
|
-
|
|
21
20
|
const makeCompatibleObserver = (node, callback) => {
|
|
22
21
|
const observer = new MutationObserver(callback);
|
|
23
22
|
//eslint-disable-next-line
|
|
@@ -39,7 +38,6 @@ const makeResizeObserver = (node, callback) => {
|
|
|
39
38
|
observer = makeCompatibleObserver(node, callback);
|
|
40
39
|
requestAnimationFrame(callback); // Mimic ResizeObserver behavior of triggering a resize event on init
|
|
41
40
|
}
|
|
42
|
-
|
|
43
41
|
return observer;
|
|
44
42
|
};
|
|
45
43
|
let ResizeObserver = (_class = class ResizeObserver extends Modifier {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resize-observer.js","sources":["../../src/modifiers/resize-observer.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"resize-observer.js","sources":["../../src/modifiers/resize-observer.ts"],"sourcesContent":["import { registerDestructor } from '@ember/destroyable';\nimport { action } from '@ember/object';\n\nimport Modifier from 'ember-modifier';\n\n// IE11 and Safari don't support the `ResizeObserver` API at the time of writing\nconst hasResizeObserver =\n typeof window !== 'undefined' &&\n typeof (window as any).ResizeObserver !== 'undefined';\n\nexport interface Observer {\n disconnect: () => void;\n observe: (element: Element, options?: { [key: string]: any }) => void;\n}\n\nconst mutationObserverOptions = {\n // [MutationObserverInit](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserverInit)\n attributes: true, // Account for style changes from `className` or `style`\n characterData: true, // Account for text content size differences\n childList: true, // Account for adding/removing child nodes\n subtree: true // Account for deep child nodes\n};\n\ninterface ResizeObserverSignature {\n Element: Element;\n Args: {\n Positional: [('width' | 'height')] | [];\n Named: {\n onResize: (dimensions: { height: number; width: number }) => void;\n };\n }\n}\n\nconst makeCompatibleObserver = (node: Element, callback: () => void) => {\n const observer = new MutationObserver(callback);\n //eslint-disable-next-line\n observer.observe(node, mutationObserverOptions);\n\n window.addEventListener('resize', callback);\n\n const _disconnect = observer.disconnect.bind(observer);\n\n observer.disconnect = () => {\n _disconnect();\n window.removeEventListener('resize', callback);\n };\n\n return observer;\n};\n\nconst makeResizeObserver = (node: Element, callback: () => void) => {\n let observer: Observer | undefined;\n\n if (hasResizeObserver) {\n observer = new (window as any).ResizeObserver(callback);\n observer!.observe(node);\n } else {\n observer = makeCompatibleObserver(node, callback);\n requestAnimationFrame(callback); // Mimic ResizeObserver behavior of triggering a resize event on init\n }\n\n return observer;\n};\n\nexport default class ResizeObserver extends Modifier<ResizeObserverSignature> {\n height: number = 0;\n width: number = 0;\n observer: Observer | null = null;\n\n element!: Element;\n named!: ResizeObserverSignature['Args']['Named'];\n positional!: ResizeObserverSignature['Args']['Positional'];\n\n @action\n setSize({ width, height }: { width: number; height: number }) {\n let [dimension] = this.positional;\n const doesWidthMatter = dimension !== 'height';\n const doesHeightMatter = dimension !== 'width';\n\n if (\n (doesWidthMatter && width !== this.width) ||\n (doesHeightMatter && height !== this.height)\n ) {\n this.width = width;\n this.height = height;\n this.named?.onResize({ width, height });\n }\n }\n\n\n modify(\n element: Element,\n positional: ResizeObserverSignature['Args']['Positional'] = [],\n named: ResizeObserverSignature['Args']['Named']\n ) {\n this.element = element;\n this.named = named;\n this.positional = positional;\n this._setup();\n registerDestructor(this, () => this._teardown());\n }\n\n _setup() {\n let { setSize, element } = this;\n\n if (element != null) {\n // ResizeObserver's first call to the observation callback is scheduled in the future\n // so find the element's initial dimensions now\n const boundingRect = element.getBoundingClientRect();\n\n setSize({\n width: boundingRect.width,\n height: boundingRect.height\n });\n\n this.observer = makeResizeObserver(element, () => {\n const boundingRect = element.getBoundingClientRect();\n\n setSize({\n width: boundingRect.width,\n height: boundingRect.height\n });\n })!;\n } else {\n setSize({\n width: 0,\n height: 0\n });\n }\n }\n\n _teardown() {\n this.observer?.disconnect();\n }\n}\n"],"names":["hasResizeObserver","window","ResizeObserver","mutationObserverOptions","attributes","characterData","childList","subtree","makeCompatibleObserver","node","callback","observer","MutationObserver","observe","addEventListener","_disconnect","disconnect","bind","removeEventListener","makeResizeObserver","requestAnimationFrame","_class","Modifier","constructor","args","_defineProperty","setSize","width","height","dimension","positional","doesWidthMatter","doesHeightMatter","named","onResize","modify","element","_setup","registerDestructor","_teardown","boundingRect","getBoundingClientRect","_applyDecoratedDescriptor","prototype","action","Object","getOwnPropertyDescriptor"],"mappings":";;;;;;;AAKA;AACA,MAAMA,iBAAiB,GACrB,OAAOC,MAAM,KAAK,WAAW,IAC7B,OAAQA,MAAM,CAASC,cAAc,KAAK,WAAW,CAAA;AAOvD,MAAMC,uBAAuB,GAAG;AAC9B;AACAC,EAAAA,UAAU,EAAE,IAAI;AAAE;AAClBC,EAAAA,aAAa,EAAE,IAAI;AAAE;AACrBC,EAAAA,SAAS,EAAE,IAAI;AAAE;EACjBC,OAAO,EAAE,IAAI;AACf,CAAC,CAAA;AAYD,MAAMC,sBAAsB,GAAGA,CAACC,IAAa,EAAEC,QAAoB,KAAK;AACtE,EAAA,MAAMC,QAAQ,GAAG,IAAIC,gBAAgB,CAACF,QAAQ,CAAC,CAAA;AAC/C;AACAC,EAAAA,QAAQ,CAACE,OAAO,CAACJ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AO,IAAI,IAAI,EAAE;AACnB;AACA;AACA,MAAA,MAAMI,YAAY,GAAGJ,OAAO,CAACK,qBAAqB,EAAE,CAAA;AAEpDf,MAAAA,OAAO,CAAC;QACNC,KAAK,EAAEa,YAAY,CAACb,KAAK;QACzBC,MAAM,EAAEY,YAAY,CAACZ,MAAAA;AACvB,OAAC,CAAC,CAAA;AAEF,MAAA,IAAI,CAACjB,QAAQ,GAAGQ,kBAAkB,CAACiB,OAAO,EAAE,MAAM;AAChD,QAAA,MAAMI,YAAY,GAAGJ,OAAO,CAACK,qBAAqB,EAAE,CAAA;AAEpDf,QAAAA,OAAO,CAAC;UACNC,KAAK,EAAEa,YAAY,CAACb,KAAK;UACzBC,MAAM,EAAEY,YAAY,CAACZ,MAAAA;AACvB,SAAC,CAAC,CAAA;AACJ,OAAC,CAAE,CAAA;AACL,KAAC,MAAM;AACLF,MAAAA,OAAO,CAAC;AACNC,QAAAA,KAAK,EAAE,CAAC;AACRC,QAAAA,MAAM,EAAE,CAAA;AACV,OAAC,CAAC,CAAA;AACJ,KAAA;AACF,GAAA;AAEAW,EAAAA,SAASA,GAAG;AACV,IAAA,IAAI,CAAC5B,QAAQ,EAAEK,UAAU,EAAE,CAAA;AAC7B,GAAA;AACF,CAAC,GAAA0B,yBAAA,CAAArB,MAAA,CAAAsB,SAAA,EAAA,SAAA,EAAA,CA7DEC,MAAM,CAAAC,EAAAA,MAAA,CAAAC,wBAAA,CAAAzB,MAAA,CAAAsB,SAAA,cAAAtB,MAAA,CAAAsB,SAAA,CAAA,GAAAtB,MAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-is-within-breakpoints.js","sources":["../../src/modifiers/use-is-within-breakpoints.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"use-is-within-breakpoints.js","sources":["../../src/modifiers/use-is-within-breakpoints.ts"],"sourcesContent":["import { modifier } from \"ember-modifier\";\n\nimport { isWithinBreakpoints } from \"../utils/breakpoint\";\n\nimport type { EuiBreakpointSize } from \"../utils/breakpoint\";\n\nexport interface Named {\n sizes: EuiBreakpointSize[];\n isActive: boolean;\n setIsWithinBreakpointsValue: (value: boolean) => void;\n}\n\nexport default modifier(function (\n _element: Element,\n _pos: any[],\n {\n sizes,\n isActive = true,\n setIsWithinBreakpointsValue,\n }: Named,\n) {\n function handleResize() {\n setIsWithinBreakpointsValue(isWithinBreakpoints(window.innerWidth, sizes));\n }\n\n if (isActive) {\n window.removeEventListener(\"resize\", handleResize);\n window.addEventListener(\"resize\", handleResize);\n handleResize();\n }\n\n return () => window.removeEventListener(\"resize\", handleResize);\n});\n"],"names":["modifier","_element","_pos","sizes","isActive","setIsWithinBreakpointsValue","handleResize","isWithinBreakpoints","window","innerWidth","removeEventListener","addEventListener"],"mappings":";;;AAYA,6BAAeA,QAAQ,CAAC,UACtBC,QAAiB,EACjBC,IAAW,EACX;EACEC,KAAK;AACLC,EAAAA,QAAQ,GAAG,IAAI;AACfC,EAAAA,2BAAAA;AACK,CAAC,EACR;EACA,SAASC,YAAYA,GAAG;IACtBD,2BAA2B,CAACE,mBAAmB,CAACC,MAAM,CAACC,UAAU,EAAEN,KAAK,CAAC,CAAC,CAAA;AAC5E,GAAA;AAEA,EAAA,IAAIC,QAAQ,EAAE;AACZI,IAAAA,MAAM,CAACE,mBAAmB,CAAC,QAAQ,EAAEJ,YAAY,CAAC,CAAA;AAClDE,IAAAA,MAAM,CAACG,gBAAgB,CAAC,QAAQ,EAAEL,YAAY,CAAC,CAAA;AAC/CA,IAAAA,YAAY,EAAE,CAAA;AAChB,GAAA;EAEA,OAAO,MAAME,MAAM,CAACE,mBAAmB,CAAC,QAAQ,EAAEJ,YAAY,CAAC,CAAA;AACjE,CAAC,CAAC;;;;"}
|