raise-common-lib 0.0.226 → 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 +31 -15
- 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/dashboard/dashboard-properties/data-mart-new/data-mart-new.component.js +2 -2
- package/esm2015/lib/dashboard/dashboardPorlets.service.js +2 -2
- package/esm2015/lib/dashboard/dialog-group/download/index.component.js +2 -2
- package/esm2015/lib/dashboard/pane-group-new.component.js +2 -2
- package/esm2015/lib/dashboard/sidebar-iconlist/field-format/field-format.component.js +2 -2
- package/esm2015/lib/float-box/index.component.js +19 -3
- package/esm5/lib/dashboard/dashboard-properties/data-mart-new/data-mart-new.component.js +2 -2
- package/esm5/lib/dashboard/dashboardPorlets.service.js +2 -2
- package/esm5/lib/dashboard/dialog-group/download/index.component.js +2 -2
- package/esm5/lib/dashboard/pane-group-new.component.js +2 -2
- package/esm5/lib/dashboard/sidebar-iconlist/field-format/field-format.component.js +2 -2
- package/esm5/lib/float-box/index.component.js +19 -3
- package/fesm2015/raise-common-lib.js +27 -12
- package/fesm2015/raise-common-lib.js.map +1 -1
- package/fesm5/raise-common-lib.js +27 -12
- package/fesm5/raise-common-lib.js.map +1 -1
- package/lib/dashboard/dashboard-properties/data-mart-new/data-mart-new.component.d.ts +1 -1
- package/lib/dashboard/dashboardPorlets.service.d.ts +1 -1
- package/lib/dashboard/dialog-group/download/index.component.d.ts +1 -1
- package/lib/dashboard/pane-group-new.component.d.ts +2 -1
- package/lib/dashboard/sidebar-iconlist/field-format/field-format.component.d.ts +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
|
@@ -15,7 +15,6 @@ import { setCulture, L10n, addClass, enableRipple, Browser, createElement } from
|
|
|
15
15
|
import ResizeObserver from 'resize-observer-polyfill';
|
|
16
16
|
import { Query, DataUtil } from '@syncfusion/ej2-data';
|
|
17
17
|
import moment from 'moment';
|
|
18
|
-
import { MatDialog as MatDialog$1, MatDialogRef as MatDialogRef$1, MAT_DIALOG_DATA as MAT_DIALOG_DATA$1 } from '@angular/material';
|
|
19
18
|
import CircularJSON from 'circular-json';
|
|
20
19
|
import { MAT_DATE_FORMATS } from '@angular/material/core';
|
|
21
20
|
import { DashboardLayoutModule } from '@syncfusion/ej2-angular-layouts';
|
|
@@ -972,6 +971,7 @@ class FloatBoxComponent {
|
|
|
972
971
|
this._trigger = "hover";
|
|
973
972
|
this._animation = "no";
|
|
974
973
|
this._fixed = "no";
|
|
974
|
+
this._floatClass = "";
|
|
975
975
|
this.openChange = new EventEmitter();
|
|
976
976
|
this.FIXED_CONTAINER_ID = "kt-float-box-fixed-container";
|
|
977
977
|
this.opened = "no";
|
|
@@ -980,8 +980,14 @@ class FloatBoxComponent {
|
|
|
980
980
|
* @return {?}
|
|
981
981
|
*/
|
|
982
982
|
(event) => {
|
|
983
|
+
/** @type {?} */
|
|
984
|
+
let floatElement;
|
|
985
|
+
if (this._floatClass) {
|
|
986
|
+
floatElement = document.querySelector(`${this._floatClass}`);
|
|
987
|
+
}
|
|
983
988
|
if (!this.rootElement.nativeElement.contains((/** @type {?} */ (event.target))) &&
|
|
984
|
-
!this.fixedContainerEl.contains((/** @type {?} */ (event.target)))
|
|
989
|
+
!this.fixedContainerEl.contains((/** @type {?} */ (event.target))) &&
|
|
990
|
+
(!floatElement || !floatElement.contains((/** @type {?} */ (event.target))))) {
|
|
985
991
|
this.opened = "no";
|
|
986
992
|
this.openChange.emit(false);
|
|
987
993
|
window.removeEventListener("click", this.onClickOutside);
|
|
@@ -993,8 +999,14 @@ class FloatBoxComponent {
|
|
|
993
999
|
* @return {?}
|
|
994
1000
|
*/
|
|
995
1001
|
(event) => {
|
|
1002
|
+
/** @type {?} */
|
|
1003
|
+
let floatElement;
|
|
1004
|
+
if (this._floatClass) {
|
|
1005
|
+
floatElement = document.querySelector(`${this._floatClass}`);
|
|
1006
|
+
}
|
|
996
1007
|
if (!this.rootElement.nativeElement.contains((/** @type {?} */ (event.target))) &&
|
|
997
|
-
!this.contentElement.nativeElement.contains((/** @type {?} */ (event.target)))
|
|
1008
|
+
!this.contentElement.nativeElement.contains((/** @type {?} */ (event.target))) &&
|
|
1009
|
+
(!floatElement || !floatElement.contains((/** @type {?} */ (event.target))))) {
|
|
998
1010
|
this.opened = "no";
|
|
999
1011
|
this.openChange.emit(false);
|
|
1000
1012
|
window.removeEventListener("click", this.onMoveOutside);
|
|
@@ -1215,6 +1227,7 @@ FloatBoxComponent.propDecorators = {
|
|
|
1215
1227
|
_trigger: [{ type: Input, args: ["trigger",] }],
|
|
1216
1228
|
_animation: [{ type: Input, args: ["animation",] }],
|
|
1217
1229
|
_fixed: [{ type: Input, args: ["fixed",] }],
|
|
1230
|
+
_floatClass: [{ type: Input, args: ["floatClass",] }],
|
|
1218
1231
|
openChange: [{ type: Output, args: ["openChange",] }],
|
|
1219
1232
|
rootElement: [{ type: ViewChild, args: ["element", { static: false },] }],
|
|
1220
1233
|
contentElement: [{ type: ViewChild, args: ["content", { static: false },] }]
|
|
@@ -1231,6 +1244,8 @@ if (false) {
|
|
|
1231
1244
|
/** @type {?} */
|
|
1232
1245
|
FloatBoxComponent.prototype._fixed;
|
|
1233
1246
|
/** @type {?} */
|
|
1247
|
+
FloatBoxComponent.prototype._floatClass;
|
|
1248
|
+
/** @type {?} */
|
|
1234
1249
|
FloatBoxComponent.prototype.openChange;
|
|
1235
1250
|
/** @type {?} */
|
|
1236
1251
|
FloatBoxComponent.prototype.rootElement;
|
|
@@ -27669,7 +27684,7 @@ DashboardPorletsService.decorators = [
|
|
|
27669
27684
|
/** @nocollapse */
|
|
27670
27685
|
DashboardPorletsService.ctorParameters = () => [
|
|
27671
27686
|
{ type: ApiList },
|
|
27672
|
-
{ type: MatDialog
|
|
27687
|
+
{ type: MatDialog },
|
|
27673
27688
|
{ type: DialogService },
|
|
27674
27689
|
{ type: DashboardService },
|
|
27675
27690
|
{ type: HttpClient },
|
|
@@ -28813,8 +28828,8 @@ FieldFormatComponent.ctorParameters = () => [
|
|
|
28813
28828
|
{ type: DashboardService },
|
|
28814
28829
|
{ type: DashboardPorletsService },
|
|
28815
28830
|
{ type: DialogService },
|
|
28816
|
-
{ type: MatDialogRef
|
|
28817
|
-
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA
|
|
28831
|
+
{ type: MatDialogRef },
|
|
28832
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
|
|
28818
28833
|
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [PBF_TOKEN,] }] }
|
|
28819
28834
|
];
|
|
28820
28835
|
FieldFormatComponent.propDecorators = {
|
|
@@ -29509,10 +29524,10 @@ DataMartNewComponent.decorators = [
|
|
|
29509
29524
|
];
|
|
29510
29525
|
/** @nocollapse */
|
|
29511
29526
|
DataMartNewComponent.ctorParameters = () => [
|
|
29512
|
-
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA
|
|
29513
|
-
{ type: MatDialogRef
|
|
29527
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
|
|
29528
|
+
{ type: MatDialogRef },
|
|
29514
29529
|
{ type: DialogService },
|
|
29515
|
-
{ type: MatDialog
|
|
29530
|
+
{ type: MatDialog },
|
|
29516
29531
|
{ type: ApiList },
|
|
29517
29532
|
{ type: DashboardService },
|
|
29518
29533
|
{ type: DashboardPorletsService },
|
|
@@ -29929,8 +29944,8 @@ PaneDownloadComponent.decorators = [
|
|
|
29929
29944
|
];
|
|
29930
29945
|
/** @nocollapse */
|
|
29931
29946
|
PaneDownloadComponent.ctorParameters = () => [
|
|
29932
|
-
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA
|
|
29933
|
-
{ type: MatDialogRef
|
|
29947
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
|
|
29948
|
+
{ type: MatDialogRef },
|
|
29934
29949
|
{ type: DashboardPorletsService },
|
|
29935
29950
|
{ type: HttpClient },
|
|
29936
29951
|
{ type: ApiList },
|
|
@@ -32647,7 +32662,7 @@ PaneGroupNewComponent.decorators = [
|
|
|
32647
32662
|
];
|
|
32648
32663
|
/** @nocollapse */
|
|
32649
32664
|
PaneGroupNewComponent.ctorParameters = () => [
|
|
32650
|
-
{ type: MatDialog
|
|
32665
|
+
{ type: MatDialog },
|
|
32651
32666
|
{ type: DialogService },
|
|
32652
32667
|
{ type: DashboardService },
|
|
32653
32668
|
{ type: ApiList },
|