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.
@@ -1141,6 +1141,7 @@ var FloatBoxComponent = /** @class */ (function () {
1141
1141
  this._trigger = "hover";
1142
1142
  this._animation = "no";
1143
1143
  this._fixed = "no";
1144
+ this._floatClass = "";
1144
1145
  this.openChange = new EventEmitter();
1145
1146
  this.FIXED_CONTAINER_ID = "kt-float-box-fixed-container";
1146
1147
  this.opened = "no";
@@ -1149,8 +1150,14 @@ var FloatBoxComponent = /** @class */ (function () {
1149
1150
  * @return {?}
1150
1151
  */
1151
1152
  function (event) {
1153
+ /** @type {?} */
1154
+ var floatElement;
1155
+ if (_this._floatClass) {
1156
+ floatElement = document.querySelector("" + _this._floatClass);
1157
+ }
1152
1158
  if (!_this.rootElement.nativeElement.contains((/** @type {?} */ (event.target))) &&
1153
- !_this.fixedContainerEl.contains((/** @type {?} */ (event.target)))) {
1159
+ !_this.fixedContainerEl.contains((/** @type {?} */ (event.target))) &&
1160
+ (!floatElement || !floatElement.contains((/** @type {?} */ (event.target))))) {
1154
1161
  _this.opened = "no";
1155
1162
  _this.openChange.emit(false);
1156
1163
  window.removeEventListener("click", _this.onClickOutside);
@@ -1162,8 +1169,14 @@ var FloatBoxComponent = /** @class */ (function () {
1162
1169
  * @return {?}
1163
1170
  */
1164
1171
  function (event) {
1172
+ /** @type {?} */
1173
+ var floatElement;
1174
+ if (_this._floatClass) {
1175
+ floatElement = document.querySelector("" + _this._floatClass);
1176
+ }
1165
1177
  if (!_this.rootElement.nativeElement.contains((/** @type {?} */ (event.target))) &&
1166
- !_this.contentElement.nativeElement.contains((/** @type {?} */ (event.target)))) {
1178
+ !_this.contentElement.nativeElement.contains((/** @type {?} */ (event.target))) &&
1179
+ (!floatElement || !floatElement.contains((/** @type {?} */ (event.target))))) {
1167
1180
  _this.opened = "no";
1168
1181
  _this.openChange.emit(false);
1169
1182
  window.removeEventListener("click", _this.onMoveOutside);
@@ -1425,6 +1438,7 @@ var FloatBoxComponent = /** @class */ (function () {
1425
1438
  _trigger: [{ type: Input, args: ["trigger",] }],
1426
1439
  _animation: [{ type: Input, args: ["animation",] }],
1427
1440
  _fixed: [{ type: Input, args: ["fixed",] }],
1441
+ _floatClass: [{ type: Input, args: ["floatClass",] }],
1428
1442
  openChange: [{ type: Output, args: ["openChange",] }],
1429
1443
  rootElement: [{ type: ViewChild, args: ["element", { static: false },] }],
1430
1444
  contentElement: [{ type: ViewChild, args: ["content", { static: false },] }]
@@ -1443,6 +1457,8 @@ if (false) {
1443
1457
  /** @type {?} */
1444
1458
  FloatBoxComponent.prototype._fixed;
1445
1459
  /** @type {?} */
1460
+ FloatBoxComponent.prototype._floatClass;
1461
+ /** @type {?} */
1446
1462
  FloatBoxComponent.prototype.openChange;
1447
1463
  /** @type {?} */
1448
1464
  FloatBoxComponent.prototype.rootElement;