barsa-develop-components 1.0.417 → 1.0.418
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/esm2020/lib/service-desk-header/service-desk-header.component.mjs +9 -5
- package/fesm2015/barsa-develop-components.mjs +8 -4
- package/fesm2015/barsa-develop-components.mjs.map +1 -1
- package/fesm2020/barsa-develop-components.mjs +8 -4
- package/fesm2020/barsa-develop-components.mjs.map +1 -1
- package/lib/service-desk-header/service-desk-header.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -984,6 +984,7 @@ class ServiceDeskHeaderComponent extends TilesViewerContainerComponent {
|
|
|
984
984
|
this._enableScroll = false;
|
|
985
985
|
this._stickyTopPosition = 66;
|
|
986
986
|
this.observerList = [];
|
|
987
|
+
this.appGroups = [];
|
|
987
988
|
const root = document.documentElement;
|
|
988
989
|
root.style.setProperty('--absolute-page-top', this._stickyTopPosition + 'px');
|
|
989
990
|
}
|
|
@@ -993,7 +994,10 @@ class ServiceDeskHeaderComponent extends TilesViewerContainerComponent {
|
|
|
993
994
|
this.searchTerm = term;
|
|
994
995
|
this._cdr.detectChanges();
|
|
995
996
|
});
|
|
996
|
-
this.appTileGroups$.subscribe((appTileGroups) =>
|
|
997
|
+
this.appTileGroups$.subscribe((appTileGroups) => {
|
|
998
|
+
appTileGroups.forEach((c) => this._tilesViewerService.loadAppGroup(c));
|
|
999
|
+
this.appGroups = appTileGroups;
|
|
1000
|
+
});
|
|
997
1001
|
this._renderer.setStyle(this.navHolder.nativeElement, 'top', this._stickyTopPosition + 'px');
|
|
998
1002
|
this.setGridTemplateRows(this.heightOfSpaceHolder);
|
|
999
1003
|
this.deviceSize$ = this._portalService.deviceSize$;
|
|
@@ -1045,18 +1049,18 @@ class ServiceDeskHeaderComponent extends TilesViewerContainerComponent {
|
|
|
1045
1049
|
if (event === null) {
|
|
1046
1050
|
return;
|
|
1047
1051
|
}
|
|
1048
|
-
if (event?.url !== '/
|
|
1052
|
+
if (event?.url !== '/servicedesk' && event?.url !== '/' && !this._disableIntersection) {
|
|
1049
1053
|
this.prepareForm();
|
|
1050
1054
|
}
|
|
1051
1055
|
});
|
|
1052
1056
|
this._portalService.navigationEnd$.pipe(takeUntil$1(this._onDestroy$)).subscribe((event) => {
|
|
1053
|
-
if (event !== null && (event?.url === '/
|
|
1057
|
+
if (event !== null && (event?.url === '/servicedesk' || event?.url === '/')) {
|
|
1054
1058
|
this.unPrepareForm();
|
|
1055
1059
|
}
|
|
1056
1060
|
});
|
|
1057
1061
|
}
|
|
1058
1062
|
onSearchSubmit() {
|
|
1059
|
-
this._router.navigateByUrl('
|
|
1063
|
+
this._router.navigateByUrl('servicedesk/search?term=' + this.searchTerm);
|
|
1060
1064
|
// var searchMo = BarsaApi.Bw.RunBlMethod('GetSearchMo', this.searchTerm);
|
|
1061
1065
|
// BarsaApi.Bw.Form.Show({ Mo: searchMo });
|
|
1062
1066
|
}
|