@ember-eui/core 8.0.13 → 8.0.15
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-combo-box/search-message.d.ts +11 -0
- package/declarations/components/eui-combo-box/search-message.d.ts.map +1 -0
- package/declarations/components/eui-combo-box/trigger.d.ts.map +1 -1
- package/declarations/components/eui-combo-box.d.ts +1 -0
- package/declarations/components/eui-combo-box.d.ts.map +1 -1
- package/declarations/components/eui-icon.d.ts +1 -1
- package/declarations/components/eui-key-pad-menu-item.d.ts +1 -1
- package/declarations/components/eui-key-pad-menu-item.d.ts.map +1 -1
- package/declarations/components/eui-popover.d.ts +4 -0
- package/declarations/components/eui-popover.d.ts.map +1 -1
- package/declarations/modifiers/validatable-control.d.ts +1 -1
- package/dist/_app_/components/eui-combo-box/search-message.js +1 -0
- package/dist/components/eui-combo-box/search-message.js +22 -0
- package/dist/components/eui-combo-box/search-message.js.map +1 -0
- package/dist/components/eui-combo-box/trigger/input.js +0 -2
- package/dist/components/eui-combo-box/trigger/input.js.map +1 -1
- package/dist/components/eui-combo-box.js +7 -0
- package/dist/components/eui-combo-box.js.map +1 -1
- package/dist/components/eui-key-pad-menu-item.js.map +1 -1
- package/dist/components/eui-popover.js +40 -27
- package/dist/components/eui-popover.js.map +1 -1
- package/package.json +2 -1
|
@@ -30,7 +30,7 @@ import { getTransitionTimings, getWaitDuration, performOnFrame } from '../utils/
|
|
|
30
30
|
import EuiPanel from './eui-panel.js';
|
|
31
31
|
import EuiPortal from './eui-portal.js';
|
|
32
32
|
|
|
33
|
-
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18;
|
|
33
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20;
|
|
34
34
|
const anchorPositionToPopoverPositionMap = {
|
|
35
35
|
up: 'top',
|
|
36
36
|
right: 'right',
|
|
@@ -154,9 +154,10 @@ let EuiPopoverComponent = setComponentTemplate(precompileTemplate(`
|
|
|
154
154
|
(not this.ownFocus) (not this.isOpenStable) this.isClosing
|
|
155
155
|
)
|
|
156
156
|
)
|
|
157
|
+
shouldSelfFocus=this.shouldSelfFocus
|
|
158
|
+
isPaused=this.isFocusTrapPaused
|
|
157
159
|
focusTrapOptions=(merge
|
|
158
160
|
(hash
|
|
159
|
-
shouldSelfFocus=true
|
|
160
161
|
returnFocusOnDeactivate=this.isOpenStable
|
|
161
162
|
initialFocus=(or @initialFocus this.panel)
|
|
162
163
|
onDeactivate=(optional @onTrapDeactivation)
|
|
@@ -228,7 +229,7 @@ let EuiPopoverComponent = setComponentTemplate(precompileTemplate(`
|
|
|
228
229
|
screenReaderOnly,
|
|
229
230
|
mutationObserver
|
|
230
231
|
})
|
|
231
|
-
}), (_dec = argOrDefaultDecorator(false), _dec2 = argOrDefaultDecorator(true), _dec3 = argOrDefaultDecorator('downCenter'), _dec4 = argOrDefaultDecorator('m'), _dec5 = argOrDefaultDecorator(true), _dec6 = argOrDefaultDecorator('inlineBlock'), (_class = class EuiPopoverComponent extends Component {
|
|
232
|
+
}), (_dec = argOrDefaultDecorator(false), _dec2 = argOrDefaultDecorator(true), _dec3 = argOrDefaultDecorator('downCenter'), _dec4 = argOrDefaultDecorator('m'), _dec5 = argOrDefaultDecorator(true), _dec6 = argOrDefaultDecorator('inlineBlock'), _dec7 = argOrDefaultDecorator(true), _dec8 = argOrDefaultDecorator(false), (_class = class EuiPopoverComponent extends Component {
|
|
232
233
|
constructor(owner, args) {
|
|
233
234
|
super(owner, args);
|
|
234
235
|
// Defaults
|
|
@@ -238,25 +239,27 @@ let EuiPopoverComponent = setComponentTemplate(precompileTemplate(`
|
|
|
238
239
|
_initializerDefineProperty(this, "panelPaddingSize", _descriptor4, this);
|
|
239
240
|
_initializerDefineProperty(this, "hasArrow", _descriptor5, this);
|
|
240
241
|
_initializerDefineProperty(this, "display", _descriptor6, this);
|
|
242
|
+
_initializerDefineProperty(this, "shouldSelfFocus", _descriptor7, this);
|
|
243
|
+
_initializerDefineProperty(this, "isFocusTrapPaused", _descriptor8, this);
|
|
241
244
|
//State
|
|
242
|
-
_initializerDefineProperty(this, "prevIsOpen",
|
|
243
|
-
_initializerDefineProperty(this, "suppressingPopover",
|
|
244
|
-
_initializerDefineProperty(this, "isClosing",
|
|
245
|
-
_initializerDefineProperty(this, "isOpening",
|
|
246
|
-
_initializerDefineProperty(this, "popoverStyles",
|
|
247
|
-
_initializerDefineProperty(this, "arrowStyles",
|
|
248
|
-
_initializerDefineProperty(this, "arrowPosition",
|
|
249
|
-
_initializerDefineProperty(this, "openPosition",
|
|
250
|
-
_initializerDefineProperty(this, "isOpenStable",
|
|
251
|
-
_initializerDefineProperty(this, "isCurrentlyOpen",
|
|
245
|
+
_initializerDefineProperty(this, "prevIsOpen", _descriptor9, this);
|
|
246
|
+
_initializerDefineProperty(this, "suppressingPopover", _descriptor10, this);
|
|
247
|
+
_initializerDefineProperty(this, "isClosing", _descriptor11, this);
|
|
248
|
+
_initializerDefineProperty(this, "isOpening", _descriptor12, this);
|
|
249
|
+
_initializerDefineProperty(this, "popoverStyles", _descriptor13, this);
|
|
250
|
+
_initializerDefineProperty(this, "arrowStyles", _descriptor14, this);
|
|
251
|
+
_initializerDefineProperty(this, "arrowPosition", _descriptor15, this);
|
|
252
|
+
_initializerDefineProperty(this, "openPosition", _descriptor16, this);
|
|
253
|
+
_initializerDefineProperty(this, "isOpenStable", _descriptor17, this);
|
|
254
|
+
_initializerDefineProperty(this, "isCurrentlyOpen", _descriptor18, this);
|
|
252
255
|
///
|
|
253
256
|
_defineProperty(this, "respositionTimeout", null);
|
|
254
257
|
_defineProperty(this, "closingTransitionTimeout", null);
|
|
255
258
|
_defineProperty(this, "closingTransitionAnimationFrame", void 0);
|
|
256
259
|
_defineProperty(this, "updateFocusAnimationFrame", void 0);
|
|
257
260
|
_defineProperty(this, "hasSetInitialFocus", false);
|
|
258
|
-
_initializerDefineProperty(this, "button",
|
|
259
|
-
_initializerDefineProperty(this, "panel",
|
|
261
|
+
_initializerDefineProperty(this, "button", _descriptor19, this);
|
|
262
|
+
_initializerDefineProperty(this, "panel", _descriptor20, this);
|
|
260
263
|
assert(`Must provide closePopover function`, this.args.closePopover);
|
|
261
264
|
this.prevIsOpen = this.isOpen;
|
|
262
265
|
this.suppressingPopover = this.isOpen;
|
|
@@ -561,78 +564,88 @@ let EuiPopoverComponent = setComponentTemplate(precompileTemplate(`
|
|
|
561
564
|
enumerable: true,
|
|
562
565
|
writable: true,
|
|
563
566
|
initializer: null
|
|
564
|
-
}), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, "
|
|
567
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, "shouldSelfFocus", [_dec7], {
|
|
565
568
|
configurable: true,
|
|
566
569
|
enumerable: true,
|
|
567
570
|
writable: true,
|
|
568
571
|
initializer: null
|
|
569
|
-
}), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, "
|
|
572
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, "isFocusTrapPaused", [_dec8], {
|
|
570
573
|
configurable: true,
|
|
571
574
|
enumerable: true,
|
|
572
575
|
writable: true,
|
|
573
576
|
initializer: null
|
|
574
|
-
}), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, "
|
|
577
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class.prototype, "prevIsOpen", [tracked], {
|
|
578
|
+
configurable: true,
|
|
579
|
+
enumerable: true,
|
|
580
|
+
writable: true,
|
|
581
|
+
initializer: null
|
|
582
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class.prototype, "suppressingPopover", [tracked], {
|
|
583
|
+
configurable: true,
|
|
584
|
+
enumerable: true,
|
|
585
|
+
writable: true,
|
|
586
|
+
initializer: null
|
|
587
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class.prototype, "isClosing", [tracked], {
|
|
575
588
|
configurable: true,
|
|
576
589
|
enumerable: true,
|
|
577
590
|
writable: true,
|
|
578
591
|
initializer: function () {
|
|
579
592
|
return false;
|
|
580
593
|
}
|
|
581
|
-
}),
|
|
594
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class.prototype, "isOpening", [tracked], {
|
|
582
595
|
configurable: true,
|
|
583
596
|
enumerable: true,
|
|
584
597
|
writable: true,
|
|
585
598
|
initializer: function () {
|
|
586
599
|
return false;
|
|
587
600
|
}
|
|
588
|
-
}),
|
|
601
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class.prototype, "popoverStyles", [tracked], {
|
|
589
602
|
configurable: true,
|
|
590
603
|
enumerable: true,
|
|
591
604
|
writable: true,
|
|
592
605
|
initializer: function () {
|
|
593
606
|
return {};
|
|
594
607
|
}
|
|
595
|
-
}),
|
|
608
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class.prototype, "arrowStyles", [tracked], {
|
|
596
609
|
configurable: true,
|
|
597
610
|
enumerable: true,
|
|
598
611
|
writable: true,
|
|
599
612
|
initializer: function () {
|
|
600
613
|
return {};
|
|
601
614
|
}
|
|
602
|
-
}),
|
|
615
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class.prototype, "arrowPosition", [tracked], {
|
|
603
616
|
configurable: true,
|
|
604
617
|
enumerable: true,
|
|
605
618
|
writable: true,
|
|
606
619
|
initializer: function () {
|
|
607
620
|
return null;
|
|
608
621
|
}
|
|
609
|
-
}),
|
|
622
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class.prototype, "openPosition", [tracked], {
|
|
610
623
|
configurable: true,
|
|
611
624
|
enumerable: true,
|
|
612
625
|
writable: true,
|
|
613
626
|
initializer: function () {
|
|
614
627
|
return null;
|
|
615
628
|
}
|
|
616
|
-
}),
|
|
629
|
+
}), _descriptor17 = _applyDecoratedDescriptor(_class.prototype, "isOpenStable", [tracked], {
|
|
617
630
|
configurable: true,
|
|
618
631
|
enumerable: true,
|
|
619
632
|
writable: true,
|
|
620
633
|
initializer: function () {
|
|
621
634
|
return false;
|
|
622
635
|
}
|
|
623
|
-
}),
|
|
636
|
+
}), _descriptor18 = _applyDecoratedDescriptor(_class.prototype, "isCurrentlyOpen", [tracked], {
|
|
624
637
|
configurable: true,
|
|
625
638
|
enumerable: true,
|
|
626
639
|
writable: true,
|
|
627
640
|
initializer: null
|
|
628
|
-
}),
|
|
641
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class.prototype, "button", [tracked], {
|
|
629
642
|
configurable: true,
|
|
630
643
|
enumerable: true,
|
|
631
644
|
writable: true,
|
|
632
645
|
initializer: function () {
|
|
633
646
|
return null;
|
|
634
647
|
}
|
|
635
|
-
}),
|
|
648
|
+
}), _descriptor20 = _applyDecoratedDescriptor(_class.prototype, "panel", [tracked], {
|
|
636
649
|
configurable: true,
|
|
637
650
|
enumerable: true,
|
|
638
651
|
writable: true,
|