raise-common-lib 0.0.227 → 0.0.228
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/raise-common-lib.umd.js +18 -2
- package/bundles/raise-common-lib.umd.js.map +1 -1
- package/bundles/raise-common-lib.umd.min.js +1 -1
- package/bundles/raise-common-lib.umd.min.js.map +1 -1
- package/esm2015/lib/float-box/index.component.js +19 -3
- package/esm5/lib/float-box/index.component.js +19 -3
- package/fesm2015/raise-common-lib.js +18 -2
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +18 -2
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/float-box/index.component.d.ts +1 -0
- package/package.json +1 -1
- package/raise-common-lib.metadata.json +1 -1
|
@@ -1507,6 +1507,7 @@
|
|
|
1507
1507
|
this._trigger = "hover";
|
|
1508
1508
|
this._animation = "no";
|
|
1509
1509
|
this._fixed = "no";
|
|
1510
|
+
this._floatClass = "";
|
|
1510
1511
|
this.openChange = new core.EventEmitter();
|
|
1511
1512
|
this.FIXED_CONTAINER_ID = "kt-float-box-fixed-container";
|
|
1512
1513
|
this.opened = "no";
|
|
@@ -1515,8 +1516,14 @@
|
|
|
1515
1516
|
* @return {?}
|
|
1516
1517
|
*/
|
|
1517
1518
|
function (event) {
|
|
1519
|
+
/** @type {?} */
|
|
1520
|
+
var floatElement;
|
|
1521
|
+
if (_this._floatClass) {
|
|
1522
|
+
floatElement = document.querySelector("" + _this._floatClass);
|
|
1523
|
+
}
|
|
1518
1524
|
if (!_this.rootElement.nativeElement.contains((/** @type {?} */ (event.target))) &&
|
|
1519
|
-
!_this.fixedContainerEl.contains((/** @type {?} */ (event.target)))
|
|
1525
|
+
!_this.fixedContainerEl.contains((/** @type {?} */ (event.target))) &&
|
|
1526
|
+
(!floatElement || !floatElement.contains((/** @type {?} */ (event.target))))) {
|
|
1520
1527
|
_this.opened = "no";
|
|
1521
1528
|
_this.openChange.emit(false);
|
|
1522
1529
|
window.removeEventListener("click", _this.onClickOutside);
|
|
@@ -1528,8 +1535,14 @@
|
|
|
1528
1535
|
* @return {?}
|
|
1529
1536
|
*/
|
|
1530
1537
|
function (event) {
|
|
1538
|
+
/** @type {?} */
|
|
1539
|
+
var floatElement;
|
|
1540
|
+
if (_this._floatClass) {
|
|
1541
|
+
floatElement = document.querySelector("" + _this._floatClass);
|
|
1542
|
+
}
|
|
1531
1543
|
if (!_this.rootElement.nativeElement.contains((/** @type {?} */ (event.target))) &&
|
|
1532
|
-
!_this.contentElement.nativeElement.contains((/** @type {?} */ (event.target)))
|
|
1544
|
+
!_this.contentElement.nativeElement.contains((/** @type {?} */ (event.target))) &&
|
|
1545
|
+
(!floatElement || !floatElement.contains((/** @type {?} */ (event.target))))) {
|
|
1533
1546
|
_this.opened = "no";
|
|
1534
1547
|
_this.openChange.emit(false);
|
|
1535
1548
|
window.removeEventListener("click", _this.onMoveOutside);
|
|
@@ -1791,6 +1804,7 @@
|
|
|
1791
1804
|
_trigger: [{ type: core.Input, args: ["trigger",] }],
|
|
1792
1805
|
_animation: [{ type: core.Input, args: ["animation",] }],
|
|
1793
1806
|
_fixed: [{ type: core.Input, args: ["fixed",] }],
|
|
1807
|
+
_floatClass: [{ type: core.Input, args: ["floatClass",] }],
|
|
1794
1808
|
openChange: [{ type: core.Output, args: ["openChange",] }],
|
|
1795
1809
|
rootElement: [{ type: core.ViewChild, args: ["element", { static: false },] }],
|
|
1796
1810
|
contentElement: [{ type: core.ViewChild, args: ["content", { static: false },] }]
|
|
@@ -1809,6 +1823,8 @@
|
|
|
1809
1823
|
/** @type {?} */
|
|
1810
1824
|
FloatBoxComponent.prototype._fixed;
|
|
1811
1825
|
/** @type {?} */
|
|
1826
|
+
FloatBoxComponent.prototype._floatClass;
|
|
1827
|
+
/** @type {?} */
|
|
1812
1828
|
FloatBoxComponent.prototype.openChange;
|
|
1813
1829
|
/** @type {?} */
|
|
1814
1830
|
FloatBoxComponent.prototype.rootElement;
|