@skyux/popovers 5.9.3 → 5.9.4
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/bundles/skyux-popovers-testing.umd.js +12 -6
- package/bundles/skyux-popovers.umd.js +1531 -1536
- package/documentation.json +317 -284
- package/esm2015/lib/modules/dropdown/dropdown-item.component.js.map +1 -1
- package/esm2015/lib/modules/dropdown/dropdown-menu.component.js +1 -4
- package/esm2015/lib/modules/dropdown/dropdown-menu.component.js.map +1 -1
- package/esm2015/lib/modules/dropdown/dropdown.component.js +10 -7
- package/esm2015/lib/modules/dropdown/dropdown.component.js.map +1 -1
- package/esm2015/lib/modules/popover/popover-content.component.js +18 -34
- package/esm2015/lib/modules/popover/popover-content.component.js.map +1 -1
- package/esm2015/lib/modules/popover/popover.component.js +11 -2
- package/esm2015/lib/modules/popover/popover.component.js.map +1 -1
- package/esm2015/lib/modules/popover/popover.directive.js +0 -1
- package/esm2015/lib/modules/popover/popover.directive.js.map +1 -1
- package/esm2015/testing/dropdown/dropdown-fixture.js +7 -1
- package/esm2015/testing/dropdown/dropdown-fixture.js.map +1 -1
- package/esm2015/testing/dropdown/popovers-fixture-dropdown.js.map +1 -1
- package/esm2015/testing/popover/popover-fixture.js +8 -8
- package/esm2015/testing/popover/popover-fixture.js.map +1 -1
- package/fesm2015/skyux-popovers-testing.js +15 -9
- package/fesm2015/skyux-popovers-testing.js.map +1 -1
- package/fesm2015/skyux-popovers.js +40 -49
- package/fesm2015/skyux-popovers.js.map +1 -1
- package/lib/modules/dropdown/dropdown-item.component.d.ts +1 -1
- package/lib/modules/dropdown/dropdown-menu.component.d.ts +3 -3
- package/lib/modules/dropdown/dropdown.component.d.ts +12 -12
- package/lib/modules/popover/popover-content.component.d.ts +13 -12
- package/lib/modules/popover/popover.component.d.ts +6 -4
- package/lib/modules/popover/popover.directive.d.ts +3 -5
- package/package.json +6 -6
- package/testing/dropdown/dropdown-fixture.d.ts +7 -7
- package/testing/dropdown/popovers-fixture-dropdown.d.ts +2 -2
- package/testing/popover/popover-fixture.d.ts +6 -6
|
@@ -451,6 +451,9 @@
|
|
|
451
451
|
var itemEls;
|
|
452
452
|
return __generator(this, function (_a) {
|
|
453
453
|
itemEls = this.getDropdownItemEls();
|
|
454
|
+
if (!itemEls) {
|
|
455
|
+
return [2 /*return*/];
|
|
456
|
+
}
|
|
454
457
|
if (index >= itemEls.length) {
|
|
455
458
|
throw new Error("There is no dropdown item at index " + index + ".");
|
|
456
459
|
}
|
|
@@ -465,6 +468,9 @@
|
|
|
465
468
|
*/
|
|
466
469
|
SkyDropdownFixture.prototype.getDropdownItem = function (index) {
|
|
467
470
|
var itemEls = this.getDropdownItemEls();
|
|
471
|
+
if (!itemEls) {
|
|
472
|
+
return;
|
|
473
|
+
}
|
|
468
474
|
if (index >= itemEls.length) {
|
|
469
475
|
throw new Error("There is no dropdown item at index " + index + ".");
|
|
470
476
|
}
|
|
@@ -616,38 +622,38 @@
|
|
|
616
622
|
Object.defineProperty(SkyPopoverFixture.prototype, "contentElement", {
|
|
617
623
|
//#region helpers
|
|
618
624
|
get: function () {
|
|
619
|
-
return this.queryOverlay('sky-popover-content');
|
|
625
|
+
return this.queryOverlay('sky-popover-content') || undefined;
|
|
620
626
|
},
|
|
621
627
|
enumerable: false,
|
|
622
628
|
configurable: true
|
|
623
629
|
});
|
|
624
630
|
Object.defineProperty(SkyPopoverFixture.prototype, "containerElement", {
|
|
625
631
|
get: function () {
|
|
626
|
-
return this.queryOverlay('.sky-popover-container');
|
|
632
|
+
return this.queryOverlay('.sky-popover-container') || undefined;
|
|
627
633
|
},
|
|
628
634
|
enumerable: false,
|
|
629
635
|
configurable: true
|
|
630
636
|
});
|
|
631
637
|
Object.defineProperty(SkyPopoverFixture.prototype, "titleElement", {
|
|
632
638
|
get: function () {
|
|
633
|
-
return this.queryOverlay('.sky-popover-title');
|
|
639
|
+
return this.queryOverlay('.sky-popover-title') || undefined;
|
|
634
640
|
},
|
|
635
641
|
enumerable: false,
|
|
636
642
|
configurable: true
|
|
637
643
|
});
|
|
638
644
|
Object.defineProperty(SkyPopoverFixture.prototype, "bodyElement", {
|
|
639
645
|
get: function () {
|
|
640
|
-
return this.queryOverlay('.sky-popover-body');
|
|
646
|
+
return this.queryOverlay('.sky-popover-body') || undefined;
|
|
641
647
|
},
|
|
642
648
|
enumerable: false,
|
|
643
649
|
configurable: true
|
|
644
650
|
});
|
|
645
651
|
SkyPopoverFixture.prototype.getOverlay = function () {
|
|
646
|
-
return document.querySelector('sky-overlay');
|
|
652
|
+
return document.querySelector('sky-overlay') || undefined;
|
|
647
653
|
};
|
|
648
654
|
SkyPopoverFixture.prototype.queryOverlay = function (query) {
|
|
649
655
|
var overlay = this.getOverlay();
|
|
650
|
-
return !overlay ?
|
|
656
|
+
return !overlay ? null : overlay.querySelector(query);
|
|
651
657
|
};
|
|
652
658
|
/**
|
|
653
659
|
* Searches the element's class names for a class which matches a given prefix.
|