@ember-eui/core 5.14.0 → 5.14.2

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.
@@ -1,7 +1,7 @@
1
1
  {{#let
2
2
  (unique-id)
3
3
  (class-names
4
- (if this.isOpening 'euiPopover-isOpen')
4
+ (if this.isOpening "euiPopover-isOpen")
5
5
  position=this.anchorPosition
6
6
  display=this.display
7
7
  componentName="EuiPopover"
@@ -19,14 +19,14 @@
19
19
  <div
20
20
  class={{classes}}
21
21
  ...attributes
22
- {{on-key "_all" this.onKeyDown}}
22
+ {{on-key "_all" this.onKeyDown priority=1}}
23
23
  {{did-insert this.didInsertPopover}}
24
24
  {{did-update this.didUpdateIsOpen @isOpen}}
25
25
  {{did-update this.didUpdateRepositionOnScroll @repositionOnScroll}}
26
26
  {{did-insert (optional @popoverRef)}}
27
27
  >
28
28
 
29
- {{!-- button --}}
29
+ {{! button }}
30
30
  <div
31
31
  class="euiPopover__anchor {{@anchorClassName}}"
32
32
  {{did-insert this.registerButton}}
@@ -34,11 +34,10 @@
34
34
  {{yield to="button"}}
35
35
  </div>
36
36
 
37
- {{!-- content --}}
37
+ {{! content }}
38
38
  {{#if
39
39
  (and
40
- (not this.suppressingPopover)
41
- (or this.isCurrentlyOpen this.isClosing)
40
+ (not this.suppressingPopover) (or this.isCurrentlyOpen this.isClosing)
42
41
  )
43
42
  }}
44
43
  <EuiPortal @insert={{@insert}}>
@@ -61,11 +60,7 @@
61
60
  {{on-key "Escape" this.onEscapeKey}}
62
61
  {{focus-trap
63
62
  isActive=(not
64
- (or
65
- (not this.ownFocus)
66
- (not this.isOpenStable)
67
- this.isClosing
68
- )
63
+ (or (not this.ownFocus) (not this.isOpenStable) this.isClosing)
69
64
  )
70
65
  focusTrapOptions=(merge
71
66
  (hash
@@ -75,7 +70,7 @@
75
70
  onDeactivate=(optional @onTrapDeactivation)
76
71
  preventScroll=true
77
72
  clickOutsideDeactivates=true
78
- fallbackFocus=(concat '#' panelId)
73
+ fallbackFocus=(concat "#" panelId)
79
74
  )
80
75
  @focusTrapOptions
81
76
  )
@@ -283,8 +283,10 @@ export default class EuiPopoverComponent extends Component<EuiPopoverArgs> {
283
283
  }
284
284
 
285
285
  @action
286
- onEscapeKey(event: Event): void {
286
+ onEscapeKey(event: Event, ekEvent?: Event): void {
287
287
  if (this.isOpen) {
288
+ ekEvent?.stopPropagation();
289
+ ekEvent?.stopImmediatePropagation();
288
290
  event.preventDefault();
289
291
  event.stopPropagation();
290
292
  this.closePopover();
@@ -292,9 +294,9 @@ export default class EuiPopoverComponent extends Component<EuiPopoverArgs> {
292
294
  }
293
295
 
294
296
  @action
295
- onKeyDown(event: KeyboardEvent): void {
297
+ onKeyDown(event: KeyboardEvent, ekEvent: KeyboardEvent): void {
296
298
  if (event.key === cascadingMenuKeys.ESCAPE) {
297
- this.onEscapeKey(event as unknown as Event);
299
+ this.onEscapeKey(event as unknown as Event, ekEvent as unknown as Event);
298
300
  }
299
301
  }
300
302
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ember-eui/core",
3
- "version": "5.14.0",
3
+ "version": "5.14.2",
4
4
  "description": "Ember Components for Elastic UI",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -186,5 +186,5 @@
186
186
  "volta": {
187
187
  "extends": "../../package.json"
188
188
  },
189
- "gitHead": "edae1f225594be9f1ac0eafdb9c25e9409984d5c"
189
+ "gitHead": "1c81c42977c5d57fb2968656d0d2c1d1200258d9"
190
190
  }